mirror of
https://github.com/mivodev/mivo.git
synced 2026-01-26 21:41:59 +07:00
39 lines
652 KiB
JavaScript
39 lines
652 KiB
JavaScript
(()=>{var K=(t,e)=>()=>(t&&(e=t(t=0)),e);var hy=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);function uy(t){if(t<768)return!1;for(let e=0,i=ol.length;;){let n=e+i>>1;if(t<ol[n])i=n;else if(t>=Zu[n])e=n+1;else return!0;if(e==i)return!1}}function Tu(t){return t>=127462&&t<=127487}function Ru(t,e,i=!0,n=!0){return(i?Xu:fy)(t,e,n)}function Xu(t,e,i){if(e==t.length)return e;e&&Mu(t.charCodeAt(e))&&Eu(t.charCodeAt(e-1))&&e--;let n=sl(t,e);for(e+=Au(n);e<t.length;){let r=sl(t,e);if(n==Cu||r==Cu||i&&uy(r))e+=Au(r),n=r;else if(Tu(r)){let s=0,o=e-2;for(;o>=0&&Tu(sl(t,o));)s++,o-=2;if(s%2==0)break;e+=2}else break}return e}function fy(t,e,i){for(;e>0;){let n=Xu(t,e-2,i);if(n<e)return n;e--}return 0}function sl(t,e){let i=t.charCodeAt(e);if(!Eu(i)||e+1==t.length)return i;let n=t.charCodeAt(e+1);return Mu(n)?(i-55296<<10)+(n-56320)+65536:i}function Mu(t){return t>=56320&&t<57344}function Eu(t){return t>=55296&&t<56320}function Au(t){return t<65536?1:2}var ol,Zu,Cu,zu=K(()=>{ol=[],Zu=[];(()=>{let t="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,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);for(let e=0,i=0;e<t.length;e++)(e%2?Zu:ol).push(i=i+t[e])})();Cu=8205});function dy(t){let e=-1;for(let i of t)e+=i.length+1;return e}function jr(t,e,i=0,n=1e9){for(let r=0,s=0,o=!0;s<t.length&&r<=n;s++){let l=t[s],a=r+l.length;a>=i&&(a>n&&(l=l.slice(0,n-r)),r<i&&(l=l.slice(i-r)),o?(e[e.length-1]+=l,o=!1):e.push(l)),r=a+1}return e}function Du(t,e,i){return jr(t,[""],e,i)}function Ki(t,e,i){return e=Math.max(0,Math.min(t.length,e)),[e,Math.max(e,Math.min(t.length,i))]}function le(t,e,i=!0,n=!0){return Ru(t,e,i,n)}function py(t){return t>=56320&&t<57344}function Oy(t){return t>=55296&&t<56320}function ge(t,e){let i=t.charCodeAt(e);if(!Oy(i)||e+1==t.length)return i;let n=t.charCodeAt(e+1);return py(n)?(i-55296<<10)+(n-56320)+65536:i}function In(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function qe(t){return t<65536?1:2}function we(t,e,i,n=!1){if(e==0&&i<=0)return;let r=t.length-2;r>=0&&i<=0&&i==t[r+1]?t[r]+=e:r>=0&&e==0&&t[r]==0?t[r+1]+=i:n?(t[r]+=e,t[r+1]+=i):t.push(e,i)}function Ut(t,e,i){if(i.length==0)return;let n=e.length-2>>1;if(n<t.length)t[t.length-1]=t[t.length-1].append(i);else{for(;t.length<n;)t.push(q.empty);t.push(i)}}function hl(t,e,i){let n=t.inserted;for(let r=0,s=0,o=0;o<t.sections.length;){let l=t.sections[o++],a=t.sections[o++];if(a<0)r+=l,s+=l;else{let c=r,h=s,u=q.empty;for(;c+=l,h+=a,a&&n&&(u=u.append(n[o-2>>1])),!(i||o==t.sections.length||t.sections[o+1]<0);)l=t.sections[o++],a=t.sections[o++];e(r,c,s,h,u),r=c,s=h}}}function ul(t,e,i,n=!1){let r=[],s=n?[]:null,o=new ki(t),l=new ki(e);for(let a=-1;;){if(o.done&&l.len||l.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&l.ins==-1){let c=Math.min(o.len,l.len);we(r,c,-1),o.forward(c),l.forward(c)}else if(l.ins>=0&&(o.ins<0||a==o.i||o.off==0&&(l.len<o.len||l.len==o.len&&!i))){let c=l.len;for(we(r,l.ins,-1);c;){let h=Math.min(o.len,c);o.ins>=0&&a<o.i&&o.len<=h&&(we(r,0,o.ins),s&&Ut(s,r,o.text),a=o.i),o.forward(h),c-=h}l.next()}else if(o.ins>=0){let c=0,h=o.len;for(;h;)if(l.ins==-1){let u=Math.min(h,l.len);c+=u,h-=u,l.forward(u)}else if(l.ins==0&&l.len<h)h-=l.len,l.next();else break;we(r,c,a<o.i?o.ins:0),s&&a<o.i&&Ut(s,r,o.text),a=o.i,o.forward(o.len-h)}else{if(o.done&&l.done)return s?Pe.createSet(r,s):Et.create(r);throw new Error("Mismatched change set lengths")}}}function Bu(t,e,i=!1){let n=[],r=i?[]:null,s=new ki(t),o=new ki(e);for(let l=!1;;){if(s.done&&o.done)return r?Pe.createSet(n,r):Et.create(n);if(s.ins==0)we(n,s.len,0,l),s.next();else if(o.len==0&&!o.done)we(n,0,o.ins,l),r&&Ut(r,n,o.text),o.next();else{if(s.done||o.done)throw new Error("Mismatched change set lengths");{let a=Math.min(s.len2,o.len),c=n.length;if(s.ins==-1){let h=o.ins==-1?-1:o.off?0:o.ins;we(n,a,h,l),r&&h&&Ut(r,n,o.text)}else o.ins==-1?(we(n,s.off?0:s.len,a,l),r&&Ut(r,n,s.textBit(a))):(we(n,s.off?0:s.len,o.off?0:o.ins,l),r&&!o.off&&Ut(r,n,o.text));l=(s.ins>a||o.ins>=0&&o.len>a)&&(l||n.length>c),s.forward2(a),o.forward(a)}}}}function Yu(t,e){for(let i of t.ranges)if(i.to>e)throw new RangeError("Selection points outside of document")}function Ql(t,e){return t==e||t.length==e.length&&t.every((i,n)=>i===e[n])}function Lu(t,e,i){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!i(t[n],e[n]))return!1;return!0}function fl(t,e){let i=!1;for(let n of e)Bn(t,n)&1&&(i=!0);return i}function my(t,e,i){let n=i.map(a=>t[a.id]),r=i.map(a=>a.type),s=n.filter(a=>!(a&1)),o=t[e.id]>>1;function l(a){let c=[];for(let h=0;h<n.length;h++){let u=Hr(a,n[h]);if(r[h]==2)for(let f of u)c.push(f);else c.push(u)}return e.combine(c)}return{create(a){for(let c of n)Bn(a,c);return a.values[o]=l(a),1},update(a,c){if(!fl(a,s))return 0;let h=l(a);return e.compare(h,a.values[o])?0:(a.values[o]=h,1)},reconfigure(a,c){let h=fl(a,n),u=c.config.facets[e.id],f=c.facet(e);if(u&&!h&&Ql(i,u))return a.values[o]=f,0;let d=l(a);return e.compare(d,f)?(a.values[o]=f,0):(a.values[o]=d,1)}}}function _n(t){return e=>new Fr(e,t)}function gy(t,e,i){let n=[[],[],[],[],[]],r=new Map;function s(o,l){let a=r.get(o);if(a!=null){if(a<=l)return;let c=n[a].indexOf(o);c>-1&&n[a].splice(c,1),o instanceof Yn&&i.delete(o.compartment)}if(r.set(o,l),Array.isArray(o))for(let c of o)s(c,l);else if(o instanceof Yn){if(i.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let c=e.get(o.compartment)||o.inner;i.set(o.compartment,c),s(c,l)}else if(o instanceof Fr)s(o.inner,o.prec);else if(o instanceof F)n[l].push(o),o.provides&&s(o.provides,l);else if(o instanceof Ui)n[l].push(o),o.facet.extensions&&s(o.facet.extensions,Qi.default);else{let c=o.extension;if(!c)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(c,l)}}return s(t,Qi.default),n.reduce((o,l)=>o.concat(l))}function Bn(t,e){if(e&1)return 2;let i=e>>1,n=t.status[i];if(n==4)throw new Error("Cyclic dependency between fields and/or facets");if(n&2)return n;t.status[i]=4;let r=t.computeSlot(t,t.config.dynamicSlots[i]);return t.status[i]=2|r}function Hr(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}function by(t,e){let i=[];for(let n=0,r=0;;){let s,o;if(n<t.length&&(r==e.length||e[r]>=t[n]))s=t[n++],o=t[n++];else if(r<e.length)s=e[r++],o=e[r++];else return i;!i.length||i[i.length-1]<s?i.push(s,o):i[i.length-1]<o&&(i[i.length-1]=o)}}function Uu(t,e,i){var n;let r,s,o;return i?(r=e.changes,s=Pe.empty(e.changes.length),o=t.changes.compose(e.changes)):(r=e.changes.map(t.changes),s=t.changes.mapDesc(e.changes,!0),o=t.changes.compose(r)),{changes:o,selection:e.selection?e.selection.map(s):(n=t.selection)===null||n===void 0?void 0:n.map(r),effects:R.mapEffects(t.effects,r).concat(R.mapEffects(e.effects,s)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function ml(t,e,i){let n=e.selection,r=Hi(e.annotations);return e.userEvent&&(r=r.concat(ce.userEvent.of(e.userEvent))),{changes:e.changes instanceof Pe?e.changes:Pe.of(e.changes||[],i,t.facet(ju)),selection:n&&(n instanceof y?n:y.single(n.anchor,n.head)),effects:Hi(e.effects),annotations:r,scrollIntoView:!!e.scrollIntoView}}function Hu(t,e,i){let n=ml(t,e.length?e[0]:{},t.doc.length);e.length&&e[0].filter===!1&&(i=!1);for(let s=1;s<e.length;s++){e[s].filter===!1&&(i=!1);let o=!!e[s].sequential;n=Uu(n,ml(t,e[s],o?n.changes.newLength:t.doc.length),o)}let r=ce.create(t,n.changes,n.selection,n.effects,n.annotations,n.scrollIntoView);return xy(i?yy(r):r)}function yy(t){let e=t.startState,i=!0;for(let r of e.facet(Iu)){let s=r(t);if(s===!1){i=!1;break}Array.isArray(s)&&(i=i===!0?s:by(i,s))}if(i!==!0){let r,s;if(i===!1)s=t.changes.invertedDesc,r=Pe.empty(e.doc.length);else{let o=t.changes.filter(i);r=o.changes,s=o.filtered.mapDesc(o.changes).invertedDesc}t=ce.create(e,r,t.selection&&t.selection.map(s),R.mapEffects(t.effects,s),t.annotations,t.scrollIntoView)}let n=e.facet(Nu);for(let r=n.length-1;r>=0;r--){let s=n[r](t);s instanceof ce?t=s:Array.isArray(s)&&s.length==1&&s[0]instanceof ce?t=s[0]:t=Hu(e,Hi(s),!1)}return t}function xy(t){let e=t.startState,i=e.facet(Fu),n=t;for(let r=i.length-1;r>=0;r--){let s=i[r](t);s&&Object.keys(s).length&&(n=Uu(n,ml(e,s,t.changes.newLength),!0))}return n==t?t:ce.create(e,t.changes,t.selection,n.effects,n.annotations,n.scrollIntoView)}function Hi(t){return t==null?Sy:Array.isArray(t)?t:[t]}function wy(t){if(gl)return gl.test(t);for(let e=0;e<t.length;e++){let i=t[e];if(/\w/.test(i)||i>"\x80"&&(i.toUpperCase()!=i.toLowerCase()||Qy.test(i)))return!0}return!1}function vy(t){return e=>{if(!/\S/.test(e))return te.Space;if(wy(e))return te.Word;for(let i=0;i<t.length;i++)if(e.indexOf(t[i])>-1)return te.Word;return te.Other}}function be(t,e,i={}){let n={};for(let r of t)for(let s of Object.keys(r)){let o=r[s],l=n[s];if(l===void 0)n[s]=o;else if(!(l===o||o===void 0))if(Object.hasOwnProperty.call(i,s))n[s]=i[s](l,o);else throw new Error("Config merge conflict for field "+s)}for(let r in e)n[r]===void 0&&(n[r]=e[r]);return n}function wl(t,e){return t==e||t.constructor==e.constructor&&t.eq(e)}function bl(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}function ky(t){if(t.length>1)for(let e=t[0],i=1;i<t.length;i++){let n=t[i];if(bl(e,n)>0)return t.slice().sort(bl);e=n}return t}function qu(t,e,i){let n=new Map;for(let s of t)for(let o=0;o<s.chunk.length;o++)s.chunk[o].maxPoint<=0&&n.set(s.chunk[o],s.chunkPos[o]);let r=new Set;for(let s of e)for(let o=0;o<s.chunk.length;o++){let l=n.get(s.chunk[o]);l!=null&&(i?i.mapPos(l):l)==s.chunkPos[o]&&!i?.touchesRange(l,l+s.chunk[o].length)&&r.add(s.chunk[o])}return r}function ll(t,e){for(let i=t[e];;){let n=(e<<1)+1;if(n>=t.length)break;let r=t[n];if(n+1<t.length&&r.compare(t[n+1])>=0&&(r=t[n+1],n++),i.compare(r)<0)break;t[n]=i,t[e]=r,e=n}}function Vu(t,e,i,n,r,s){t.goto(e),i.goto(n);let o=n+r,l=n,a=n-e,c=!!s.boundChange;for(let h=!1;;){let u=t.to+a-i.to,f=u||t.endSide-i.endSide,d=f<0?t.to+a:i.to,p=Math.min(d,o);if(t.point||i.point?(t.point&&i.point&&wl(t.point,i.point)&&xl(t.activeForPoint(t.to),i.activeForPoint(i.to))||s.comparePoint(l,p,t.point,i.point),h=!1):(h&&s.boundChange(l),p>l&&!xl(t.active,i.active)&&s.compareRange(l,p,t.active,i.active),c&&p<o&&(u||t.openEnd(d)!=i.openEnd(d))&&(h=!0)),d>o)break;l=d,f<=0&&t.next(),f>=0&&i.next()}}function xl(t,e){if(t.length!=e.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!=e[i]&&!wl(t[i],e[i]))return!1;return!0}function Yr(t,e){for(let i=e,n=t.length-1;i<n;i++)t[i]=t[i+1];t.pop()}function Wr(t,e,i){for(let n=t.length-1;n>=e;n--)t[n+1]=t[n];t[e]=i}function _u(t,e){let i=-1,n=1e9;for(let r=0;r<e.length;r++)(e[r]-n||t[r].endSide-t[i].endSide)<0&&(i=r,n=e[r]);return i}function zt(t,e,i=t.length){let n=0;for(let r=0;r<i&&r<t.length;)t.charCodeAt(r)==9?(n+=e-n%e,r++):(n++,r=le(t,r));return n}function Jr(t,e,i,n){for(let r=0,s=0;;){if(s>=e)return r;if(r==t.length)break;s+=t.charCodeAt(r)==9?i-s%i:1,r=le(t,r)}return n===!0?-1:t.length}var q,De,Gi,vi,Ir,Nr,al,cl,fe,Et,Pe,ki,Fi,y,Sl,k,Ui,Br,F,Qi,He,Fr,Gr,Yn,Ur,Wu,dl,ju,Iu,Nu,Fu,Gu,Ze,pl,Ol,R,ce,Sy,te,Qy,gl,I,Ue,Wn,yl,V,Le,Kr,jn,wi,Ke=K(()=>{zu();q=class t{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,i,n){[e,i]=Ki(this,e,i);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(i,this.length,r,1),Gi.from(r,this.length-(i-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,i=this.length){[e,i]=Ki(this,e,i);let n=[];return this.decompose(e,i,n,0),Gi.from(n,i-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let i=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new vi(this),s=new vi(e);for(let o=i,l=i;;){if(r.next(o),s.next(o),o=0,r.lineBreak!=s.lineBreak||r.done!=s.done||r.value!=s.value)return!1;if(l+=r.value.length,r.done||l>=n)return!0}}iter(e=1){return new vi(this,e)}iterRange(e,i=this.length){return new Ir(this,e,i)}iterLines(e,i){let n;if(e==null)n=this.iter();else{i==null&&(i=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,i==this.lines+1?this.length:i<=1?0:this.line(i-1).to))}return new Nr(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?t.empty:e.length<=32?new De(e):Gi.from(De.split(e,[]))}},De=class t extends q{constructor(e,i=dy(e)){super(),this.text=e,this.length=i}get lines(){return this.text.length}get children(){return null}lineInner(e,i,n,r){for(let s=0;;s++){let o=this.text[s],l=r+o.length;if((i?n:l)>=e)return new al(r,l,n,o);r=l+1,n++}}decompose(e,i,n,r){let s=e<=0&&i>=this.length?this:new t(Du(this.text,e,i),Math.min(i,this.length)-Math.max(0,e));if(r&1){let o=n.pop(),l=jr(s.text,o.text.slice(),0,s.length);if(l.length<=32)n.push(new t(l,o.length+s.length));else{let a=l.length>>1;n.push(new t(l.slice(0,a)),new t(l.slice(a)))}}else n.push(s)}replace(e,i,n){if(!(n instanceof t))return super.replace(e,i,n);[e,i]=Ki(this,e,i);let r=jr(this.text,jr(n.text,Du(this.text,0,e)),i),s=this.length+n.length-(i-e);return r.length<=32?new t(r,s):Gi.from(t.split(r,[]),s)}sliceString(e,i=this.length,n=`
|
||
`){[e,i]=Ki(this,e,i);let r="";for(let s=0,o=0;s<=i&&o<this.text.length;o++){let l=this.text[o],a=s+l.length;s>e&&o&&(r+=n),e<a&&i>s&&(r+=l.slice(Math.max(0,e-s),i-s)),s=a+1}return r}flatten(e){for(let i of this.text)e.push(i)}scanIdentical(){return 0}static split(e,i){let n=[],r=-1;for(let s of e)n.push(s),r+=s.length+1,n.length==32&&(i.push(new t(n,r)),n=[],r=-1);return r>-1&&i.push(new t(n,r)),i}},Gi=class t extends q{constructor(e,i){super(),this.children=e,this.length=i,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,i,n,r){for(let s=0;;s++){let o=this.children[s],l=r+o.length,a=n+o.lines-1;if((i?a:l)>=e)return o.lineInner(e,i,n,r);r=l+1,n=a+1}}decompose(e,i,n,r){for(let s=0,o=0;o<=i&&s<this.children.length;s++){let l=this.children[s],a=o+l.length;if(e<=a&&i>=o){let c=r&((o<=e?1:0)|(a>=i?2:0));o>=e&&a<=i&&!c?n.push(l):l.decompose(e-o,i-o,n,c)}o=a+1}}replace(e,i,n){if([e,i]=Ki(this,e,i),n.lines<this.lines)for(let r=0,s=0;r<this.children.length;r++){let o=this.children[r],l=s+o.length;if(e>=s&&i<=l){let a=o.replace(e-s,i-s,n),c=this.lines-o.lines+a.lines;if(a.lines<c>>4&&a.lines>c>>6){let h=this.children.slice();return h[r]=a,new t(h,this.length-(i-e)+n.length)}return super.replace(s,l,a)}s=l+1}return super.replace(e,i,n)}sliceString(e,i=this.length,n=`
|
||
`){[e,i]=Ki(this,e,i);let r="";for(let s=0,o=0;s<this.children.length&&o<=i;s++){let l=this.children[s],a=o+l.length;o>e&&s&&(r+=n),e<a&&i>o&&(r+=l.sliceString(e-o,i-o,n)),o=a+1}return r}flatten(e){for(let i of this.children)i.flatten(e)}scanIdentical(e,i){if(!(e instanceof t))return 0;let n=0,[r,s,o,l]=i>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=i,s+=i){if(r==o||s==l)return n;let a=this.children[r],c=e.children[s];if(a!=c)return n+a.scanIdentical(c,i);n+=a.length+1}}static from(e,i=e.reduce((n,r)=>n+r.length+1,-1)){let n=0;for(let d of e)n+=d.lines;if(n<32){let d=[];for(let p of e)p.flatten(d);return new De(d,i)}let r=Math.max(32,n>>5),s=r<<1,o=r>>1,l=[],a=0,c=-1,h=[];function u(d){let p;if(d.lines>s&&d instanceof t)for(let O of d.children)u(O);else d.lines>o&&(a>o||!a)?(f(),l.push(d)):d instanceof De&&a&&(p=h[h.length-1])instanceof De&&d.lines+p.lines<=32?(a+=d.lines,c+=d.length+1,h[h.length-1]=new De(p.text.concat(d.text),p.length+1+d.length)):(a+d.lines>r&&f(),a+=d.lines,c+=d.length+1,h.push(d))}function f(){a!=0&&(l.push(h.length==1?h[0]:t.from(h,c)),c=-1,a=h.length=0)}for(let d of e)u(d);return f(),l.length==1?l[0]:new t(l,i)}};q.empty=new De([""],0);vi=class{constructor(e,i=1){this.dir=i,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[i>0?1:(e instanceof De?e.text.length:e.children.length)<<1]}nextInner(e,i){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],s=this.offsets[n],o=s>>1,l=r instanceof De?r.text.length:r.children.length;if(o==(i>0?l:0)){if(n==0)return this.done=!0,this.value="",this;i>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((s&1)==(i>0?0:1)){if(this.offsets[n]+=i,e==0)return this.lineBreak=!0,this.value=`
|
||
`,this;e--}else if(r instanceof De){let a=r.text[o+(i<0?-1:0)];if(this.offsets[n]+=i,a.length>Math.max(0,e))return this.value=e==0?a:i>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=r.children[o+(i<0?-1:0)];e>a.length?(e-=a.length,this.offsets[n]+=i):(i<0&&this.offsets[n]--,this.nodes.push(a),this.offsets.push(i>0?1:(a instanceof De?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}},Ir=class{constructor(e,i,n){this.value="",this.done=!1,this.cursor=new vi(e,i>n?-1:1),this.pos=i>n?e.length:0,this.from=Math.min(i,n),this.to=Math.max(i,n)}nextInner(e,i){if(i<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,i<0?this.pos-this.to:this.from-this.pos);let n=i<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*i,this.value=r.length<=n?r:i<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}},Nr=class{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:i,lineBreak:n,value:r}=this.inner.next(e);return i&&this.afterBreak?(this.value="",this.afterBreak=!1):i?(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}};typeof Symbol<"u"&&(q.prototype[Symbol.iterator]=function(){return this.iter()},vi.prototype[Symbol.iterator]=Ir.prototype[Symbol.iterator]=Nr.prototype[Symbol.iterator]=function(){return this});al=class{constructor(e,i,n,r){this.from=e,this.to=i,this.number=n,this.text=r}get length(){return this.to-this.from}};cl=/\r\n?|\n/,fe=(function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t})(fe||(fe={})),Et=class t{constructor(e){this.sections=e}get length(){let e=0;for(let i=0;i<this.sections.length;i+=2)e+=this.sections[i];return e}get newLength(){let e=0;for(let i=0;i<this.sections.length;i+=2){let n=this.sections[i+1];e+=n<0?this.sections[i]:n}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let i=0,n=0,r=0;i<this.sections.length;){let s=this.sections[i++],o=this.sections[i++];o<0?(e(n,r,s),r+=s):r+=o,n+=s}}iterChangedRanges(e,i=!1){hl(this,e,i)}get invertedDesc(){let e=[];for(let i=0;i<this.sections.length;){let n=this.sections[i++],r=this.sections[i++];r<0?e.push(n,r):e.push(r,n)}return new t(e)}composeDesc(e){return this.empty?e:e.empty?this:Bu(this,e)}mapDesc(e,i=!1){return e.empty?this:ul(this,e,i)}mapPos(e,i=-1,n=fe.Simple){let r=0,s=0;for(let o=0;o<this.sections.length;){let l=this.sections[o++],a=this.sections[o++],c=r+l;if(a<0){if(c>e)return s+(e-r);s+=l}else{if(n!=fe.Simple&&c>=e&&(n==fe.TrackDel&&r<e&&c>e||n==fe.TrackBefore&&r<e||n==fe.TrackAfter&&c>e))return null;if(c>e||c==e&&i<0&&!l)return e==r||i<0?s:s+a;s+=a}r=c}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return s}touchesRange(e,i=e){for(let n=0,r=0;n<this.sections.length&&r<=i;){let s=this.sections[n++],o=this.sections[n++],l=r+s;if(o>=0&&r<=i&&l>=e)return r<e&&l>i?"cover":!0;r=l}return!1}toString(){let e="";for(let i=0;i<this.sections.length;){let n=this.sections[i++],r=this.sections[i++];e+=(e?" ":"")+n+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(i=>typeof i!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new t(e)}static create(e){return new t(e)}},Pe=class t extends Et{constructor(e,i){super(e),this.inserted=i}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return hl(this,(i,n,r,s,o)=>e=e.replace(r,r+(n-i),o),!1),e}mapDesc(e,i=!1){return ul(this,e,i,!0)}invert(e){let i=this.sections.slice(),n=[];for(let r=0,s=0;r<i.length;r+=2){let o=i[r],l=i[r+1];if(l>=0){i[r]=l,i[r+1]=o;let a=r>>1;for(;n.length<a;)n.push(q.empty);n.push(o?e.slice(s,s+o):q.empty)}s+=o}return new t(i,n)}compose(e){return this.empty?e:e.empty?this:Bu(this,e,!0)}map(e,i=!1){return e.empty?this:ul(this,e,i,!0)}iterChanges(e,i=!1){hl(this,e,i)}get desc(){return Et.create(this.sections)}filter(e){let i=[],n=[],r=[],s=new ki(this);e:for(let o=0,l=0;;){let a=o==e.length?1e9:e[o++];for(;l<a||l==a&&s.len==0;){if(s.done)break e;let h=Math.min(s.len,a-l);we(r,h,-1);let u=s.ins==-1?-1:s.off==0?s.ins:0;we(i,h,u),u>0&&Ut(n,i,s.text),s.forward(h),l+=h}let c=e[o++];for(;l<c;){if(s.done)break e;let h=Math.min(s.len,c-l);we(i,h,-1),we(r,h,s.ins==-1?-1:s.off==0?s.ins:0),s.forward(h),l+=h}}return{changes:new t(i,n),filtered:Et.create(r)}}toJSON(){let e=[];for(let i=0;i<this.sections.length;i+=2){let n=this.sections[i],r=this.sections[i+1];r<0?e.push(n):r==0?e.push([n]):e.push([n].concat(this.inserted[i>>1].toJSON()))}return e}static of(e,i,n){let r=[],s=[],o=0,l=null;function a(h=!1){if(!h&&!r.length)return;o<i&&we(r,i-o,-1);let u=new t(r,s);l=l?l.compose(u.map(l)):u,r=[],s=[],o=0}function c(h){if(Array.isArray(h))for(let u of h)c(u);else if(h instanceof t){if(h.length!=i)throw new RangeError(`Mismatched change set length (got ${h.length}, expected ${i})`);a(),l=l?l.compose(h.map(l)):h}else{let{from:u,to:f=u,insert:d}=h;if(u>f||u<0||f>i)throw new RangeError(`Invalid change range ${u} to ${f} (in doc of length ${i})`);let p=d?typeof d=="string"?q.of(d.split(n||cl)):d:q.empty,O=p.length;if(u==f&&O==0)return;u<o&&a(),u>o&&we(r,u-o,-1),we(r,f-u,O),Ut(s,r,p),o=f}}return c(e),a(!l),l}static empty(e){return new t(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let i=[],n=[];for(let r=0;r<e.length;r++){let s=e[r];if(typeof s=="number")i.push(s,-1);else{if(!Array.isArray(s)||typeof s[0]!="number"||s.some((o,l)=>l&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)i.push(s[0],0);else{for(;n.length<r;)n.push(q.empty);n[r]=q.of(s.slice(1)),i.push(s[0],n[r].length)}}}return new t(i,n)}static createSet(e,i){return new t(e,i)}};ki=class{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,i=this.i-2>>1;return i>=e.length?q.empty:e[i]}textBit(e){let{inserted:i}=this.set,n=this.i-2>>1;return n>=i.length&&!e?q.empty:i[n].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}},Fi=class t{constructor(e,i,n){this.from=e,this.to=i,this.flags=n}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,i=-1){let n,r;return this.empty?n=r=e.mapPos(this.from,i):(n=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new t(n,r,this.flags)}extend(e,i=e){if(e<=this.anchor&&i>=this.anchor)return y.range(e,i);let n=Math.abs(e-this.anchor)>Math.abs(i-this.anchor)?e:i;return y.range(this.anchor,n)}eq(e,i=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!i||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return y.range(e.anchor,e.head)}static create(e,i,n){return new t(e,i,n)}},y=class t{constructor(e,i){this.ranges=e,this.mainIndex=i}map(e,i=-1){return e.empty?this:t.create(this.ranges.map(n=>n.map(e,i)),this.mainIndex)}eq(e,i=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],i))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new t([this.main],0)}addRange(e,i=!0){return t.create([e].concat(this.ranges),i?0:this.mainIndex+1)}replaceRange(e,i=this.mainIndex){let n=this.ranges.slice();return n[i]=e,t.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new t(e.ranges.map(i=>Fi.fromJSON(i)),e.main)}static single(e,i=e){return new t([t.range(e,i)],0)}static create(e,i=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let n=0,r=0;r<e.length;r++){let s=e[r];if(s.empty?s.from<=n:s.from<n)return t.normalized(e.slice(),i);n=s.to}return new t(e,i)}static cursor(e,i=0,n,r){return Fi.create(e,e,(i==0?0:i<0?8:16)|(n==null?7:Math.min(6,n))|(r??16777215)<<6)}static range(e,i,n,r){let s=(n??16777215)<<6|(r==null?7:Math.min(6,r));return i<e?Fi.create(i,e,48|s):Fi.create(e,i,(i>e?8:0)|s)}static normalized(e,i=0){let n=e[i];e.sort((r,s)=>r.from-s.from),i=e.indexOf(n);for(let r=1;r<e.length;r++){let s=e[r],o=e[r-1];if(s.empty?s.from<=o.to:s.from<o.to){let l=o.from,a=Math.max(s.to,o.to);r<=i&&i--,e.splice(--r,2,s.anchor>s.head?t.range(a,l):t.range(l,a))}}return new t(e,i)}};Sl=0,k=class t{constructor(e,i,n,r,s){this.combine=e,this.compareInput=i,this.compare=n,this.isStatic=r,this.id=Sl++,this.default=e([]),this.extensions=typeof s=="function"?s(this):s}get reader(){return this}static define(e={}){return new t(e.combine||(i=>i),e.compareInput||((i,n)=>i===n),e.compare||(e.combine?(i,n)=>i===n:Ql),!!e.static,e.enables)}of(e){return new Ui([],this,0,e)}compute(e,i){if(this.isStatic)throw new Error("Can't compute a static facet");return new Ui(e,this,1,i)}computeN(e,i){if(this.isStatic)throw new Error("Can't compute a static facet");return new Ui(e,this,2,i)}from(e,i){return i||(i=n=>n),this.compute([e],n=>i(n.field(e)))}};Ui=class{constructor(e,i,n,r){this.dependencies=e,this.facet=i,this.type=n,this.value=r,this.id=Sl++}dynamicSlot(e){var i;let n=this.value,r=this.facet.compareInput,s=this.id,o=e[s]>>1,l=this.type==2,a=!1,c=!1,h=[];for(let u of this.dependencies)u=="doc"?a=!0:u=="selection"?c=!0:(((i=e[u.id])!==null&&i!==void 0?i:1)&1)==0&&h.push(e[u.id]);return{create(u){return u.values[o]=n(u),1},update(u,f){if(a&&f.docChanged||c&&(f.docChanged||f.selection)||fl(u,h)){let d=n(u);if(l?!Lu(d,u.values[o],r):!r(d,u.values[o]))return u.values[o]=d,1}return 0},reconfigure:(u,f)=>{let d,p=f.config.address[s];if(p!=null){let O=Hr(f,p);if(this.dependencies.every(g=>g instanceof k?f.facet(g)===u.facet(g):g instanceof F?f.field(g,!1)==u.field(g,!1):!0)||(l?Lu(d=n(u),O,r):r(d=n(u),O)))return u.values[o]=O,0}else d=n(u);return u.values[o]=d,1}}}};Br=k.define({static:!0}),F=class t{constructor(e,i,n,r,s){this.id=e,this.createF=i,this.updateF=n,this.compareF=r,this.spec=s,this.provides=void 0}static define(e){let i=new t(Sl++,e.create,e.update,e.compare||((n,r)=>n===r),e);return e.provide&&(i.provides=e.provide(i)),i}create(e){let i=e.facet(Br).find(n=>n.field==this);return(i?.create||this.createF)(e)}slot(e){let i=e[this.id]>>1;return{create:n=>(n.values[i]=this.create(n),1),update:(n,r)=>{let s=n.values[i],o=this.updateF(s,r);return this.compareF(s,o)?0:(n.values[i]=o,1)},reconfigure:(n,r)=>{let s=n.facet(Br),o=r.facet(Br),l;return(l=s.find(a=>a.field==this))&&l!=o.find(a=>a.field==this)?(n.values[i]=l.create(n),1):r.config.address[this.id]!=null?(n.values[i]=r.field(this),0):(n.values[i]=this.create(n),1)}}}init(e){return[this,Br.of({field:this,create:e})]}get extension(){return this}},Qi={lowest:4,low:3,default:2,high:1,highest:0};He={highest:_n(Qi.highest),high:_n(Qi.high),default:_n(Qi.default),low:_n(Qi.low),lowest:_n(Qi.lowest)},Fr=class{constructor(e,i){this.inner=e,this.prec=i}},Gr=class t{of(e){return new Yn(this,e)}reconfigure(e){return t.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}},Yn=class{constructor(e,i){this.compartment=e,this.inner=i}},Ur=class t{constructor(e,i,n,r,s,o){for(this.base=e,this.compartments=i,this.dynamicSlots=n,this.address=r,this.staticValues=s,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let i=this.address[e.id];return i==null?e.default:this.staticValues[i>>1]}static resolve(e,i,n){let r=[],s=Object.create(null),o=new Map;for(let f of gy(e,i,o))f instanceof F?r.push(f):(s[f.facet.id]||(s[f.facet.id]=[])).push(f);let l=Object.create(null),a=[],c=[];for(let f of r)l[f.id]=c.length<<1,c.push(d=>f.slot(d));let h=n?.config.facets;for(let f in s){let d=s[f],p=d[0].facet,O=h&&h[f]||[];if(d.every(g=>g.type==0))if(l[p.id]=a.length<<1|1,Ql(O,d))a.push(n.facet(p));else{let g=p.combine(d.map(b=>b.value));a.push(n&&p.compare(g,n.facet(p))?n.facet(p):g)}else{for(let g of d)g.type==0?(l[g.id]=a.length<<1|1,a.push(g.value)):(l[g.id]=c.length<<1,c.push(b=>g.dynamicSlot(b)));l[p.id]=c.length<<1,c.push(g=>my(g,p,d))}}let u=c.map(f=>f(l));return new t(e,o,u,l,a,s)}};Wu=k.define(),dl=k.define({combine:t=>t.some(e=>e),static:!0}),ju=k.define({combine:t=>t.length?t[0]:void 0,static:!0}),Iu=k.define(),Nu=k.define(),Fu=k.define(),Gu=k.define({combine:t=>t.length?t[0]:!1}),Ze=class{constructor(e,i){this.type=e,this.value=i}static define(){return new pl}},pl=class{of(e){return new Ze(this,e)}},Ol=class{constructor(e){this.map=e}of(e){return new R(this,e)}},R=class t{constructor(e,i){this.type=e,this.value=i}map(e){let i=this.type.map(this.value,e);return i===void 0?void 0:i==this.value?this:new t(this.type,i)}is(e){return this.type==e}static define(e={}){return new Ol(e.map||(i=>i))}static mapEffects(e,i){if(!e.length)return e;let n=[];for(let r of e){let s=r.map(i);s&&n.push(s)}return n}};R.reconfigure=R.define();R.appendConfig=R.define();ce=class t{constructor(e,i,n,r,s,o){this.startState=e,this.changes=i,this.selection=n,this.effects=r,this.annotations=s,this.scrollIntoView=o,this._doc=null,this._state=null,n&&Yu(n,i.newLength),s.some(l=>l.type==t.time)||(this.annotations=s.concat(t.time.of(Date.now())))}static create(e,i,n,r,s,o){return new t(e,i,n,r,s,o)}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(e){for(let i of this.annotations)if(i.type==e)return i.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let i=this.annotation(t.userEvent);return!!(i&&(i==e||i.length>e.length&&i.slice(0,e.length)==e&&i[e.length]=="."))}};ce.time=Ze.define();ce.userEvent=Ze.define();ce.addToHistory=Ze.define();ce.remote=Ze.define();Sy=[];te=(function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t})(te||(te={})),Qy=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{gl=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}I=class t{constructor(e,i,n,r,s,o){this.config=e,this.doc=i,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=s,o&&(o._state=this);for(let l=0;l<this.config.dynamicSlots.length;l++)Bn(this,l<<1);this.computeSlot=null}field(e,i=!0){let n=this.config.address[e.id];if(n==null){if(i)throw new RangeError("Field is not present in this state");return}return Bn(this,n),Hr(this,n)}update(...e){return Hu(this,e,!0)}applyTransaction(e){let i=this.config,{base:n,compartments:r}=i;for(let l of e.effects)l.is(Gr.reconfigure)?(i&&(r=new Map,i.compartments.forEach((a,c)=>r.set(c,a)),i=null),r.set(l.value.compartment,l.value.extension)):l.is(R.reconfigure)?(i=null,n=l.value):l.is(R.appendConfig)&&(i=null,n=Hi(n).concat(l.value));let s;i?s=e.startState.values.slice():(i=Ur.resolve(n,r,this),s=new t(i,this.doc,this.selection,i.dynamicSlots.map(()=>null),(a,c)=>c.reconfigure(a,this),null).values);let o=e.startState.facet(dl)?e.newSelection:e.newSelection.asSingle();new t(i,e.newDoc,o,s,(l,a)=>a.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:e},range:y.cursor(i.from+e.length)}))}changeByRange(e){let i=this.selection,n=e(i.ranges[0]),r=this.changes(n.changes),s=[n.range],o=Hi(n.effects);for(let l=1;l<i.ranges.length;l++){let a=e(i.ranges[l]),c=this.changes(a.changes),h=c.map(r);for(let f=0;f<l;f++)s[f]=s[f].map(h);let u=r.mapDesc(c,!0);s.push(a.range.map(u)),r=r.compose(h),o=R.mapEffects(o,h).concat(R.mapEffects(Hi(a.effects),u))}return{changes:r,selection:y.create(s,i.mainIndex),effects:o}}changes(e=[]){return e instanceof Pe?e:Pe.of(e,this.doc.length,this.facet(t.lineSeparator))}toText(e){return q.of(e.split(this.facet(t.lineSeparator)||cl))}sliceDoc(e=0,i=this.doc.length){return this.doc.sliceString(e,i,this.lineBreak)}facet(e){let i=this.config.address[e.id];return i==null?e.default:(Bn(this,i),Hr(this,i))}toJSON(e){let i={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let r=e[n];r instanceof F&&this.config.address[r.id]!=null&&(i[n]=r.spec.toJSON(this.field(e[n]),this))}return i}static fromJSON(e,i={},n){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let r=[];if(n){for(let s in n)if(Object.prototype.hasOwnProperty.call(e,s)){let o=n[s],l=e[s];r.push(o.init(a=>o.spec.fromJSON(l,a)))}}return t.create({doc:e.doc,selection:y.fromJSON(e.selection),extensions:i.extensions?r.concat([i.extensions]):r})}static create(e={}){let i=Ur.resolve(e.extensions||[],new Map),n=e.doc instanceof q?e.doc:q.of((e.doc||"").split(i.staticFacet(t.lineSeparator)||cl)),r=e.selection?e.selection instanceof y?e.selection:y.single(e.selection.anchor,e.selection.head):y.single(0);return Yu(r,n.length),i.staticFacet(dl)||(r=r.asSingle()),new t(i,n,r,i.dynamicSlots.map(()=>null),(s,o)=>o.create(s),null)}get tabSize(){return this.facet(t.tabSize)}get lineBreak(){return this.facet(t.lineSeparator)||`
|
||
`}get readOnly(){return this.facet(Gu)}phrase(e,...i){for(let n of this.facet(t.phrases))if(Object.prototype.hasOwnProperty.call(n,e)){e=n[e];break}return i.length&&(e=e.replace(/\$(\$|\d*)/g,(n,r)=>{if(r=="$")return"$";let s=+(r||1);return!s||s>i.length?n:i[s-1]})),e}languageDataAt(e,i,n=-1){let r=[];for(let s of this.facet(Wu))for(let o of s(this,i,n))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){let i=this.languageDataAt("wordChars",e);return vy(i.length?i[0]:"")}wordAt(e){let{text:i,from:n,length:r}=this.doc.lineAt(e),s=this.charCategorizer(e),o=e-n,l=e-n;for(;o>0;){let a=le(i,o,!1);if(s(i.slice(a,o))!=te.Word)break;o=a}for(;l<r;){let a=le(i,l);if(s(i.slice(l,a))!=te.Word)break;l=a}return o==l?null:y.range(o+n,l+n)}};I.allowMultipleSelections=dl;I.tabSize=k.define({combine:t=>t.length?t[0]:4});I.lineSeparator=ju;I.readOnly=Gu;I.phrases=k.define({compare(t,e){let i=Object.keys(t),n=Object.keys(e);return i.length==n.length&&i.every(r=>t[r]==e[r])}});I.languageData=Wu;I.changeFilter=Iu;I.transactionFilter=Nu;I.transactionExtender=Fu;Gr.reconfigure=R.define();Ue=class{eq(e){return this==e}range(e,i=e){return Wn.create(e,i,this)}};Ue.prototype.startSide=Ue.prototype.endSide=0;Ue.prototype.point=!1;Ue.prototype.mapMode=fe.TrackDel;Wn=class t{constructor(e,i,n){this.from=e,this.to=i,this.value=n}static create(e,i,n){return new t(e,i,n)}};yl=class t{constructor(e,i,n,r){this.from=e,this.to=i,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,i,n,r=0){let s=n?this.to:this.from;for(let o=r,l=s.length;;){if(o==l)return o;let a=o+l>>1,c=s[a]-e||(n?this.value[a].endSide:this.value[a].startSide)-i;if(a==o)return c>=0?o:l;c>=0?l=a:o=a+1}}between(e,i,n,r){for(let s=this.findIndex(i,-1e9,!0),o=this.findIndex(n,1e9,!1,s);s<o;s++)if(r(this.from[s]+e,this.to[s]+e,this.value[s])===!1)return!1}map(e,i){let n=[],r=[],s=[],o=-1,l=-1;for(let a=0;a<this.value.length;a++){let c=this.value[a],h=this.from[a]+e,u=this.to[a]+e,f,d;if(h==u){let p=i.mapPos(h,c.startSide,c.mapMode);if(p==null||(f=d=p,c.startSide!=c.endSide&&(d=i.mapPos(h,c.endSide),d<f)))continue}else if(f=i.mapPos(h,c.startSide),d=i.mapPos(u,c.endSide),f>d||f==d&&c.startSide>0&&c.endSide<=0)continue;(d-f||c.endSide-c.startSide)<0||(o<0&&(o=f),c.point&&(l=Math.max(l,d-f)),n.push(c),r.push(f-o),s.push(d-o))}return{mapped:n.length?new t(r,s,n,l):null,pos:o}}},V=class t{constructor(e,i,n,r){this.chunkPos=e,this.chunk=i,this.nextLayer=n,this.maxPoint=r}static create(e,i,n,r){return new t(e,i,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let i of this.chunk)e+=i.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:i=[],sort:n=!1,filterFrom:r=0,filterTo:s=this.length}=e,o=e.filter;if(i.length==0&&!o)return this;if(n&&(i=i.slice().sort(bl)),this.isEmpty)return i.length?t.of(i):this;let l=new Kr(this,null,-1).goto(0),a=0,c=[],h=new Le;for(;l.value||a<i.length;)if(a<i.length&&(l.from-i[a].from||l.startSide-i[a].value.startSide)>=0){let u=i[a++];h.addInner(u.from,u.to,u.value)||c.push(u)}else l.rangeIndex==1&&l.chunkIndex<this.chunk.length&&(a==i.length||this.chunkEnd(l.chunkIndex)<i[a].from)&&(!o||r>this.chunkEnd(l.chunkIndex)||s<this.chunkPos[l.chunkIndex])&&h.addChunk(this.chunkPos[l.chunkIndex],this.chunk[l.chunkIndex])?l.nextChunk():((!o||r>l.to||s<l.from||o(l.from,l.to,l.value))&&(h.addInner(l.from,l.to,l.value)||c.push(Wn.create(l.from,l.to,l.value))),l.next());return h.finishInner(this.nextLayer.isEmpty&&!c.length?t.empty:this.nextLayer.update({add:c,filter:o,filterFrom:r,filterTo:s}))}map(e){if(e.empty||this.isEmpty)return this;let i=[],n=[],r=-1;for(let o=0;o<this.chunk.length;o++){let l=this.chunkPos[o],a=this.chunk[o],c=e.touchesRange(l,l+a.length);if(c===!1)r=Math.max(r,a.maxPoint),i.push(a),n.push(e.mapPos(l));else if(c===!0){let{mapped:h,pos:u}=a.map(l,e);h&&(r=Math.max(r,h.maxPoint),i.push(h),n.push(u))}}let s=this.nextLayer.map(e);return i.length==0?s:new t(n,i,s||t.empty,r)}between(e,i,n){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let s=this.chunkPos[r],o=this.chunk[r];if(i>=s&&e<=s+o.length&&o.between(s,e-s,i-s,n)===!1)return}this.nextLayer.between(e,i,n)}}iter(e=0){return jn.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,i=0){return jn.from(e).goto(i)}static compare(e,i,n,r,s=-1){let o=e.filter(u=>u.maxPoint>0||!u.isEmpty&&u.maxPoint>=s),l=i.filter(u=>u.maxPoint>0||!u.isEmpty&&u.maxPoint>=s),a=qu(o,l,n),c=new wi(o,a,s),h=new wi(l,a,s);n.iterGaps((u,f,d)=>Vu(c,u,h,f,d,r)),n.empty&&n.length==0&&Vu(c,0,h,0,0,r)}static eq(e,i,n=0,r){r==null&&(r=999999999);let s=e.filter(h=>!h.isEmpty&&i.indexOf(h)<0),o=i.filter(h=>!h.isEmpty&&e.indexOf(h)<0);if(s.length!=o.length)return!1;if(!s.length)return!0;let l=qu(s,o),a=new wi(s,l,0).goto(n),c=new wi(o,l,0).goto(n);for(;;){if(a.to!=c.to||!xl(a.active,c.active)||a.point&&(!c.point||!wl(a.point,c.point)))return!1;if(a.to>r)return!0;a.next(),c.next()}}static spans(e,i,n,r,s=-1){let o=new wi(e,null,s).goto(i),l=i,a=o.openStart;for(;;){let c=Math.min(o.to,n);if(o.point){let h=o.activeForPoint(o.to),u=o.pointFrom<i?h.length+1:o.point.startSide<0?h.length:Math.min(h.length,a);r.point(l,c,o.point,h,u,o.pointRank),a=Math.min(o.openEnd(c),h.length)}else c>l&&(r.span(l,c,o.active,a),a=o.openEnd(c));if(o.to>n)return a+(o.point&&o.to>n?1:0);l=o.to,o.next()}}static of(e,i=!1){let n=new Le;for(let r of e instanceof Wn?[e]:i?ky(e):e)n.add(r.from,r.to,r.value);return n.finish()}static join(e){if(!e.length)return t.empty;let i=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let r=e[n];r!=t.empty;r=r.nextLayer)i=new t(r.chunkPos,r.chunk,i,Math.max(r.maxPoint,i.maxPoint));return i}};V.empty=new V([],[],null,-1);V.empty.nextLayer=V.empty;Le=class t{finishChunk(e){this.chunks.push(new yl(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,e&&(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(e,i,n){this.addInner(e,i,n)||(this.nextLayer||(this.nextLayer=new t)).add(e,i,n)}addInner(e,i,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return r<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(i-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=i,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,i-e)),!0)}addChunk(e,i){if((e-this.lastTo||i.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,i.maxPoint),this.chunks.push(i),this.chunkPos.push(e);let n=i.value.length-1;return this.last=i.value[n],this.lastFrom=i.from[n]+e,this.lastTo=i.to[n]+e,!0}finish(){return this.finishInner(V.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let i=V.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,i}};Kr=class{constructor(e,i,n,r=0){this.layer=e,this.skip=i,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(e,i=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,i,!1),this}gotoInner(e,i,n){for(;this.chunkIndex<this.layer.chunk.length;){let r=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(r)||this.layer.chunkEnd(this.chunkIndex)<e||r.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],i,!0);(!n||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(e,i){(this.to-e||this.endSide-i)<0&&this.gotoInner(e,i,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],i=this.layer.chunk[this.chunkIndex],n=e+i.from[this.rangeIndex];if(this.from=n,this.to=e+i.to[this.rangeIndex],this.value=i.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==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=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}},jn=class t{constructor(e){this.heap=e}static from(e,i=null,n=-1){let r=[];for(let s=0;s<e.length;s++)for(let o=e[s];!o.isEmpty;o=o.nextLayer)o.maxPoint>=n&&r.push(new Kr(o,i,n,s));return r.length==1?r[0]:new t(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,i=-1e9){for(let n of this.heap)n.goto(e,i);for(let n=this.heap.length>>1;n>=0;n--)ll(this.heap,n);return this.next(),this}forward(e,i){for(let n of this.heap)n.forward(e,i);for(let n=this.heap.length>>1;n>=0;n--)ll(this.heap,n);(this.to-e||this.value.endSide-i)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),ll(this.heap,0)}}};wi=class{constructor(e,i,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=jn.from(e,i,n)}goto(e,i=-1e9){return this.cursor.goto(e,i),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=i,this.openStart=-1,this.next(),this}forward(e,i){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-i)<0;)this.removeActive(this.minActive);this.cursor.forward(e,i)}removeActive(e){Yr(this.active,e),Yr(this.activeTo,e),Yr(this.activeRank,e),this.minActive=_u(this.active,this.activeTo)}addActive(e){let i=0,{value:n,to:r,rank:s}=this.cursor;for(;i<this.activeRank.length&&(s-this.activeRank[i]||r-this.activeTo[i])>0;)i++;Wr(this.active,i,n),Wr(this.activeTo,i,r),Wr(this.activeRank,i,s),e&&Wr(e,i,this.cursor.from),this.minActive=_u(this.active,this.activeTo)}next(){let e=this.to,i=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&Yr(n,r)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let s=this.cursor.value;if(!s.point)this.addActive(n),this.cursor.next();else if(i&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=s,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=s.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(n){this.openStart=0;for(let r=n.length-1;r>=0&&n[r]<e;r--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let i=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&i.push(this.active[n]);return i.reverse()}openEnd(e){let i=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)i++;return i}}});var Ku,vl,Ju,Je,ef,kl,$l=K(()=>{Ku=typeof Symbol>"u"?"__\u037C":Symbol.for("\u037C"),vl=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Ju=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},Je=class{constructor(e,i){this.rules=[];let{finish:n}=i||{};function r(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function s(o,l,a,c){let h=[],u=/^@(\w+)\b/.exec(o[0]),f=u&&u[1]=="keyframes";if(u&&l==null)return a.push(o[0]+";");for(let d in l){let p=l[d];if(/&/.test(d))s(d.split(/,\s*/).map(O=>o.map(g=>O.replace(/&/,g))).reduce((O,g)=>O.concat(g)),p,a);else if(p&&typeof p=="object"){if(!u)throw new RangeError("The value of a property ("+d+") should be a primitive value.");s(r(d),p,h,f)}else p!=null&&h.push(d.replace(/_.*/,"").replace(/[A-Z]/g,O=>"-"+O.toLowerCase())+": "+p+";")}(h.length||f)&&a.push((n&&!u&&!c?o.map(n):o).join(", ")+" {"+h.join(" ")+"}")}for(let o in e)s(r(o),e[o],this.rules)}getRules(){return this.rules.join(`
|
||
`)}static newName(){let e=Ju[Ku]||1;return Ju[Ku]=e+1,"\u037C"+e.toString(36)}static mount(e,i,n){let r=e[vl],s=n&&n.nonce;r?s&&r.setNonce(s):r=new kl(e,s),r.mount(Array.isArray(i)?i:[i],e)}},ef=new Map,kl=class{constructor(e,i){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let s=ef.get(n);if(s)return e[vl]=s;this.sheet=new r.CSSStyleSheet,ef.set(n,this)}else this.styleTag=n.createElement("style"),i&&this.styleTag.setAttribute("nonce",i);this.modules=[],e[vl]=this}mount(e,i){let n=this.sheet,r=0,s=0;for(let o=0;o<e.length;o++){let l=e[o],a=this.modules.indexOf(l);if(a<s&&a>-1&&(this.modules.splice(a,1),s--,a=-1),a==-1){if(this.modules.splice(s++,0,l),n)for(let c=0;c<l.rules.length;c++)n.insertRule(l.rules[c],r++)}else{for(;s<a;)r+=this.modules[s++].rules.length;r+=l.rules.length,s++}}if(n)i.adoptedStyleSheets.indexOf(this.sheet)<0&&(i.adoptedStyleSheets=[this.sheet,...i.adoptedStyleSheets]);else{let o="";for(let a=0;a<this.modules.length;a++)o+=this.modules[a].getRules()+`
|
||
`;this.styleTag.textContent=o;let l=i.head||i;this.styleTag.parentNode!=l&&l.insertBefore(this.styleTag,l.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}});function tf(t){var e=$y&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Py&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",i=!e&&t.key||(t.shiftKey?Ji:Dt)[t.keyCode]||t.key||"Unidentified";return i=="Esc"&&(i="Escape"),i=="Del"&&(i="Delete"),i=="Left"&&(i="ArrowLeft"),i=="Up"&&(i="ArrowUp"),i=="Right"&&(i="ArrowRight"),i=="Down"&&(i="ArrowDown"),i}var Dt,Ji,$y,Py,he,he,he,es,nf=K(()=>{Dt={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Ji={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},$y=typeof navigator<"u"&&/Mac/.test(navigator.platform),Py=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(he=0;he<10;he++)Dt[48+he]=Dt[96+he]=String(he);for(he=1;he<=24;he++)Dt[he+111]="F"+he;for(he=65;he<=90;he++)Dt[he]=String.fromCharCode(he+32),Ji[he]=String.fromCharCode(he);for(es in Dt)Ji.hasOwnProperty(es)||(Ji[es]=Dt[es])});function W(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,i=arguments[1];if(i&&typeof i=="object"&&i.nodeType==null&&!Array.isArray(i)){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var r=i[n];typeof r=="string"?t.setAttribute(n,r):r!=null&&(t[n]=r)}e++}for(;e<arguments.length;e++)rf(t,arguments[e]);return t}function rf(t,e){if(typeof e=="string")t.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)t.appendChild(e);else if(Array.isArray(e))for(var i=0;i<e.length;i++)rf(t,e[i]);else throw new RangeError("Unsupported child node: "+e)}var ts=K(()=>{});function Aa(t,e){for(let i in t)i=="class"&&e.class?e.class+=" "+t.class:i=="style"&&e.style?e.style+=";"+t.style:e[i]=t[i];return e}function Za(t,e,i){if(t==e)return!0;t||(t=ms),e||(e=ms);let n=Object.keys(t),r=Object.keys(e);if(n.length-(i&&n.indexOf(i)>-1?1:0)!=r.length-(i&&r.indexOf(i)>-1?1:0))return!1;for(let s of n)if(s!=i&&(r.indexOf(s)==-1||t[s]!==e[s]))return!1;return!0}function Ty(t,e){for(let i=t.attributes.length-1;i>=0;i--){let n=t.attributes[i].name;e[n]==null&&t.removeAttribute(n)}for(let i in e){let n=e[i];i=="style"?t.style.cssText=n:t.getAttribute(i)!=n&&t.setAttribute(i,n)}}function af(t,e,i){let n=!1;if(e)for(let r in e)i&&r in i||(n=!0,r=="style"?t.style.cssText="":t.removeAttribute(r));if(i)for(let r in i)e&&e[r]==i[r]||(n=!0,r=="style"?t.style.cssText=i[r]:t.setAttribute(r,i[r]));return n}function Cy(t){let e=Object.create(null);for(let i=0;i<t.attributes.length;i++){let n=t.attributes[i];e[n.name]=n.value}return e}function jf(t,e=!1){let{inclusiveStart:i,inclusiveEnd:n}=t;return i==null&&(i=t.inclusive),n==null&&(n=t.inclusive),{start:i??e,end:n??e}}function Ay(t,e){return t==e||!!(t&&e&&t.compare(e))}function sn(t,e,i,n=0){let r=i.length-1;r>=0&&i[r]+n>=t?i[r]=Math.max(i[r],e):i.push(t,e)}function ln(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function Vl(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function Hn(t,e){if(!e.anchorNode)return!1;try{return Vl(t,e.anchorNode)}catch{return!1}}function us(t){return t.nodeType==3?ar(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function Kn(t,e,i,n){return i?cf(t,e,i,n,-1)||cf(t,e,i,n,1):!1}function ei(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function bs(t){return t.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function cf(t,e,i,n,r){for(;;){if(t==i&&e==n)return!0;if(e==(r<0?0:qt(t))){if(t.nodeName=="DIV")return!1;let s=t.parentNode;if(!s||s.nodeType!=1)return!1;e=ei(t)+(r<0?0:1),t=s}else if(t.nodeType==1){if(t=t.childNodes[e+(r<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return!1;e=r<0?qt(t):0}else return!1}}function qt(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function ys(t,e){let i=e?t.left:t.right;return{left:i,right:i,top:t.top,bottom:t.bottom}}function Zy(t){let e=t.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function If(t,e){let i=e.width/t.offsetWidth,n=e.height/t.offsetHeight;return(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.width-t.offsetWidth)<1)&&(i=1),(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.height-t.offsetHeight)<1)&&(n=1),{scaleX:i,scaleY:n}}function Ry(t,e,i,n,r,s,o,l){let a=t.ownerDocument,c=a.defaultView||window;for(let h=t,u=!1;h&&!u;)if(h.nodeType==1){let f,d=h==a.body,p=1,O=1;if(d)f=Zy(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(h).position)&&(u=!0),h.scrollHeight<=h.clientHeight&&h.scrollWidth<=h.clientWidth){h=h.assignedSlot||h.parentNode;continue}let x=h.getBoundingClientRect();({scaleX:p,scaleY:O}=If(h,x)),f={left:x.left,right:x.left+h.clientWidth*p,top:x.top,bottom:x.top+h.clientHeight*O}}let g=0,b=0;if(r=="nearest")e.top<f.top?(b=e.top-(f.top+o),i>0&&e.bottom>f.bottom+b&&(b=e.bottom-f.bottom+o)):e.bottom>f.bottom&&(b=e.bottom-f.bottom+o,i<0&&e.top-b<f.top&&(b=e.top-(f.top+o)));else{let x=e.bottom-e.top,S=f.bottom-f.top;b=(r=="center"&&x<=S?e.top+x/2-S/2:r=="start"||r=="center"&&i<0?e.top-o:e.bottom-S+o)-f.top}if(n=="nearest"?e.left<f.left?(g=e.left-(f.left+s),i>0&&e.right>f.right+g&&(g=e.right-f.right+s)):e.right>f.right&&(g=e.right-f.right+s,i<0&&e.left<f.left+g&&(g=e.left-(f.left+s))):g=(n=="center"?e.left+(e.right-e.left)/2-(f.right-f.left)/2:n=="start"==l?e.left-s:e.right-(f.right-f.left)+s)-f.left,g||b)if(d)c.scrollBy(g,b);else{let x=0,S=0;if(b){let C=h.scrollTop;h.scrollTop+=b/O,S=(h.scrollTop-C)*O}if(g){let C=h.scrollLeft;h.scrollLeft+=g/p,x=(h.scrollLeft-C)*p}e={left:e.left-x,top:e.top-S,right:e.right-x,bottom:e.bottom-S},x&&Math.abs(x-g)<1&&(n="nearest"),S&&Math.abs(S-b)<1&&(r="nearest")}if(d)break;(e.top<f.top||e.bottom>f.bottom||e.left<f.left||e.right>f.right)&&(e={left:Math.max(e.left,f.left),right:Math.min(e.right,f.right),top:Math.max(e.top,f.top),bottom:Math.min(e.bottom,f.bottom)}),h=h.assignedSlot||h.parentNode}else if(h.nodeType==11)h=h.host;else break}function Xy(t){let e=t.ownerDocument,i,n;for(let r=t.parentNode;r&&!(r==e.body||i&&n);)if(r.nodeType==1)!n&&r.scrollHeight>r.clientHeight&&(n=r),!i&&r.scrollWidth>r.clientWidth&&(i=r),r=r.assignedSlot||r.parentNode;else if(r.nodeType==11)r=r.host;else break;return{x:i,y:n}}function Nf(t){if(t.setActive)return t.setActive();if($i)return t.focus($i);let e=[];for(let i=t;i&&(e.push(i,i.scrollTop,i.scrollLeft),i!=i.ownerDocument);i=i.parentNode);if(t.focus($i==null?{get preventScroll(){return $i={preventScroll:!0},!0}}:void 0),!$i){$i=!1;for(let i=0;i<e.length;){let n=e[i++],r=e[i++],s=e[i++];n.scrollTop!=r&&(n.scrollTop=r),n.scrollLeft!=s&&(n.scrollLeft=s)}}}function ar(t,e,i=e){let n=hf||(hf=document.createRange());return n.setEnd(t,i),n.setStart(t,e),n}function on(t,e,i,n){let r={key:e,code:e,keyCode:i,which:i,cancelable:!0};n&&({altKey:r.altKey,ctrlKey:r.ctrlKey,shiftKey:r.shiftKey,metaKey:r.metaKey}=n);let s=new KeyboardEvent("keydown",r);s.synthetic=!0,t.dispatchEvent(s);let o=new KeyboardEvent("keyup",r);return o.synthetic=!0,t.dispatchEvent(o),s.defaultPrevented||o.defaultPrevented}function My(t){for(;t;){if(t&&(t.nodeType==9||t.nodeType==11&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}function Ey(t,e){let i=e.focusNode,n=e.focusOffset;if(!i||e.anchorNode!=i||e.anchorOffset!=n)return!1;for(n=Math.min(n,qt(i));;)if(n){if(i.nodeType!=1)return!1;let r=i.childNodes[n-1];r.contentEditable=="false"?n--:(i=r,n=qt(i))}else{if(i==t)return!0;n=ei(i),i=i.parentNode}}function Ff(t){return t.scrollTop>Math.max(1,t.scrollHeight-t.clientHeight-4)}function Gf(t,e){for(let i=t,n=e;;){if(i.nodeType==3&&n>0)return{node:i,offset:n};if(i.nodeType==1&&n>0){if(i.contentEditable=="false")return null;i=i.childNodes[n-1],n=qt(i)}else if(i.parentNode&&!bs(i))n=ei(i),i=i.parentNode;else return null}}function Uf(t,e){for(let i=t,n=e;;){if(i.nodeType==3&&n<i.nodeValue.length)return{node:i,offset:n};if(i.nodeType==1&&n<i.childNodes.length){if(i.contentEditable=="false")return null;i=i.childNodes[n],n=0}else if(i.parentNode&&!bs(i))n=ei(i)+1,i=i.parentNode;else return null}}function Hf(t){let e=[];for(let i=0;i<t.length;i++)e.push(1<<+t[i]);return e}function Kf(t){return t<=247?zy[t]:1424<=t&&t<=1524?2:1536<=t&&t<=1785?Dy[t-1536]:1774<=t&&t<=2220?4:8192<=t&&t<=8204?256:64336<=t&&t<=65023?4:1}function Jf(t,e){if(t.length!=e.length)return!1;for(let i=0;i<t.length;i++){let n=t[i],r=e[i];if(n.from!=r.from||n.to!=r.to||n.direction!=r.direction||!Jf(n.inner,r.inner))return!1}return!0}function qy(t,e,i,n,r){for(let s=0;s<=n.length;s++){let o=s?n[s-1].to:e,l=s<n.length?n[s].from:i,a=s?256:r;for(let c=o,h=a,u=a;c<l;c++){let f=Kf(t.charCodeAt(c));f==512?f=h:f==8&&u==4&&(f=16),ne[c]=f==4?2:f,f&7&&(u=f),h=f}for(let c=o,h=a,u=a;c<l;c++){let f=ne[c];if(f==128)c<l-1&&h==ne[c+1]&&h&24?f=ne[c]=h:ne[c]=256;else if(f==64){let d=c+1;for(;d<l&&ne[d]==64;)d++;let p=c&&h==8||d<i&&ne[d]==8?u==1?1:8:256;for(let O=c;O<d;O++)ne[O]=p;c=d-1}else f==8&&u==1&&(ne[c]=1);h=f,f&7&&(u=f)}}}function Vy(t,e,i,n,r){let s=r==1?2:1;for(let o=0,l=0,a=0;o<=n.length;o++){let c=o?n[o-1].to:e,h=o<n.length?n[o].from:i;for(let u=c,f,d,p;u<h;u++)if(d=Bl[f=t.charCodeAt(u)])if(d<0){for(let O=l-3;O>=0;O-=3)if(vt[O+1]==-d){let g=vt[O+2],b=g&2?r:g&4?g&1?s:r:0;b&&(ne[u]=ne[vt[O]]=b),l=O;break}}else{if(vt.length==189)break;vt[l++]=u,vt[l++]=f,vt[l++]=a}else if((p=ne[u])==2||p==1){let O=p==r;a=O?0:1;for(let g=l-3;g>=0;g-=3){let b=vt[g+2];if(b&2)break;if(O)vt[g+2]|=2;else{if(b&4)break;vt[g+2]|=4}}}}}function _y(t,e,i,n){for(let r=0,s=n;r<=i.length;r++){let o=r?i[r-1].to:t,l=r<i.length?i[r].from:e;for(let a=o;a<l;){let c=ne[a];if(c==256){let h=a+1;for(;;)if(h==l){if(r==i.length)break;h=i[r++].to,l=r<i.length?i[r].from:e}else if(ne[h]==256)h++;else break;let u=s==1,f=(h<e?ne[h]:n)==1,d=u==f?u?1:2:n;for(let p=h,O=r,g=O?i[O-1].to:t;p>a;)p==g&&(p=i[--O].from,g=O?i[O-1].to:t),ne[--p]=d;a=h}else s=c,a++}}}function Yl(t,e,i,n,r,s,o){let l=n%2?2:1;if(n%2==r%2)for(let a=e,c=0;a<i;){let h=!0,u=!1;if(c==s.length||a<s[c].from){let O=ne[a];O!=l&&(h=!1,u=O==16)}let f=!h&&l==1?[]:null,d=h?n:n+1,p=a;e:for(;;)if(c<s.length&&p==s[c].from){if(u)break e;let O=s[c];if(!h)for(let g=O.to,b=c+1;;){if(g==i)break e;if(b<s.length&&s[b].from==g)g=s[b++].to;else{if(ne[g]==l)break e;break}}if(c++,f)f.push(O);else{O.from>a&&o.push(new ut(a,O.from,d));let g=O.direction==Ci!=!(d%2);Wl(t,g?n+1:n,r,O.inner,O.from,O.to,o),a=O.to}p=O.to}else{if(p==i||(h?ne[p]!=l:ne[p]==l))break;p++}f?Yl(t,a,p,n+1,r,f,o):a<p&&o.push(new ut(a,p,d)),a=p}else for(let a=i,c=s.length;a>e;){let h=!0,u=!1;if(!c||a>s[c-1].to){let O=ne[a-1];O!=l&&(h=!1,u=O==16)}let f=!h&&l==1?[]:null,d=h?n:n+1,p=a;e:for(;;)if(c&&p==s[c-1].to){if(u)break e;let O=s[--c];if(!h)for(let g=O.from,b=c;;){if(g==e)break e;if(b&&s[b-1].to==g)g=s[--b].from;else{if(ne[g-1]==l)break e;break}}if(f)f.push(O);else{O.to<a&&o.push(new ut(O.to,a,d));let g=O.direction==Ci!=!(d%2);Wl(t,g?n+1:n,r,O.inner,O.from,O.to,o),a=O.from}p=O.from}else{if(p==e||(h?ne[p-1]!=l:ne[p-1]==l))break;p--}f?Yl(t,p,a,n+1,r,f,o):p<a&&o.push(new ut(p,a,d)),a=p}}function Wl(t,e,i,n,r,s,o){let l=e%2?2:1;qy(t,r,s,n,l),Vy(t,r,s,n,l),_y(r,s,n,l),Yl(t,r,s,e,i,n,o)}function By(t,e,i){if(!t)return[new ut(0,0,e==Ra?1:0)];if(e==Ci&&!i.length&&!Ly.test(t))return ed(t.length);if(i.length)for(;t.length>ne.length;)ne[ne.length]=256;let n=[],r=e==Ci?0:1;return Wl(t,r,r,i,0,t.length,n),n}function ed(t){return[new ut(0,t,0)]}function Yy(t,e,i,n,r){var s;let o=n.head-t.from,l=ut.find(e,o,(s=n.bidiLevel)!==null&&s!==void 0?s:-1,n.assoc),a=e[l],c=a.side(r,i);if(o==c){let f=l+=r?1:-1;if(f<0||f>=e.length)return null;a=e[l=f],o=a.side(!r,i),c=a.side(r,i)}let h=le(t.text,o,a.forward(r,i));(h<a.from||h>a.to)&&(h=c),td=t.text.slice(Math.min(o,h),Math.max(o,h));let u=l==(r?e.length-1:0)?null:e[l+(r?1:-1)];return u&&h==c&&u.level+(r?0:1)<a.level?y.cursor(u.side(!r,i)+t.from,u.forward(r,i)?1:-1,u.level):y.cursor(h+t.from,a.forward(r,i)?-1:1,a.level)}function Wy(t,e,i){for(let n=e;n<i;n++){let r=Kf(t.charCodeAt(n));if(r==1)return Ci;if(r==2||r==4)return Ra}return Ci}function de(t,e,i){let n=t.facet(sd);n.length?n[0](e):window.onerror&&window.onerror(String(e),i,void 0,void 0,e)||(i?console.error(i+":",e):console.error(e))}function uf(t,e){let i=t.state.facet(pd);if(!i.length)return i;let n=i.map(s=>s instanceof Function?s(t):s),r=[];return V.spans(n,e.from,e.to,{point(){},span(s,o,l,a){let c=s-e.from,h=o-e.from,u=r;for(let f=l.length-1;f>=0;f--,a--){let d=l[f].spec.bidiIsolate,p;if(d==null&&(d=Wy(e.text,c,h)),a>0&&u.length&&(p=u[u.length-1]).to==c&&p.direction==d)p.to=h,u=p.inner;else{let O={from:c,to:h,direction:d,inner:[]};u.push(O),u=O.inner}}}}),r}function Da(t){let e=0,i=0,n=0,r=0;for(let s of t.state.facet(Od)){let o=s(t);o&&(o.left!=null&&(e=Math.max(e,o.left)),o.right!=null&&(i=Math.max(i,o.right)),o.top!=null&&(n=Math.max(n,o.top)),o.bottom!=null&&(r=Math.max(r,o.bottom)))}return{left:e,right:i,top:n,bottom:r}}function ff(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}function Ny(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let i=us(e);return i[i.length-1]||null}function Fy(t,e){let i=t.coordsIn(0,1),n=e.coordsIn(0,1);return i&&n&&n.top<i.bottom}function df(t,e){let i=n=>{for(let r of n.children)if((e?r.isText():r.length)||i(r))return!0;return!1};return i(t)}function Gy(t){let e=t.isReplace?(t.startSide<0?64:0)|(t.endSide>0?128:0):t.startSide>0?32:16;return t.block&&(e|=256),e}function Uy(t,e){let i=e.spec.attributes,n=e.spec.class;return!i&&!n||(t||(t={class:"cm-line"}),i&&Aa(i,t),n&&(t.class+=" "+n)),t}function Hy(t){let e=[];for(let i=t.parents.length;i>1;i--){let n=i==t.parents.length?t.tile:t.parents[i].tile;n instanceof Re&&e.push(n.mark)}return e}function Tl(t){let e=ae.get(t);return e&&e.setDOM(t.cloneNode()),t}function Kl(t,e){let i=e?.get(t);if(i!=1){i==null&&t.destroy();for(let n of t.children)Kl(n,e)}}function Ky(t){return t.node.nodeType==1&&t.node.firstChild&&(t.offset==0||t.node.childNodes[t.offset-1].contentEditable=="false")&&(t.offset==t.node.childNodes.length||t.node.childNodes[t.offset].contentEditable=="false")}function gd(t,e){let i=t.observer.selectionRange;if(!i.focusNode)return null;let n=Gf(i.focusNode,i.focusOffset),r=Uf(i.focusNode,i.focusOffset),s=n||r;if(r&&n&&r.node!=n.node){let l=ae.get(r.node);if(!l||l.isText()&&l.text!=r.node.nodeValue)s=r;else if(t.docView.lastCompositionAfterCursor){let a=ae.get(n.node);!a||a.isText()&&a.text!=n.node.nodeValue||(s=r)}}if(t.docView.lastCompositionAfterCursor=s!=n,!s)return null;let o=e-s.offset;return{from:o,to:o+s.node.nodeValue.length,node:s.node}}function Jy(t,e,i){let n=gd(t,i);if(!n)return null;let{node:r,from:s,to:o}=n,l=r.nodeValue;if(/[\n\r]/.test(l)||t.state.doc.sliceString(n.from,n.to)!=l)return null;let a=e.invertedDesc;return{range:new ft(a.mapPos(s),a.mapPos(o),s,o),text:r}}function e1(t,e){return t.nodeType!=1?0:(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e<t.childNodes.length&&t.childNodes[e].contentEditable=="false"?2:0)}function i1(t,e,i){let n=new t1;return V.compare(t,e,i,n),n.changes}function n1(t,e,i){let n=new Jl;return V.compare(t,e,i,n),n.changes}function r1(t,e){for(let i=t;i&&i!=e;i=i.assignedSlot||i.parentNode)if(i.nodeType==1&&i.contentEditable=="false")return!0;return!1}function s1(t,e){let i=!1;return e&&t.iterChangedRanges((n,r)=>{n<e.to&&r>e.from&&(i=!0)}),i}function o1(t,e,i=1){let n=t.charCategorizer(e),r=t.doc.lineAt(e),s=e-r.from;if(r.length==0)return y.cursor(e);s==0?i=1:s==r.length&&(i=-1);let o=s,l=s;i<0?o=le(r.text,s,!1):l=le(r.text,s);let a=n(r.text.slice(o,l));for(;o>0;){let c=le(r.text,o,!1);if(n(r.text.slice(c,o))!=a)break;o=c}for(;l<r.length;){let c=le(r.text,l);if(n(r.text.slice(l,c))!=a)break;l=c}return y.range(o+r.from,l+r.from)}function l1(t,e,i,n,r){let s=Math.round((n-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&i.height>t.defaultLineHeight*1.5){let l=t.viewState.heightOracle.textHeight,a=Math.floor((r-i.top-(t.defaultLineHeight-l)*.5)/l);s+=a*t.viewState.heightOracle.lineLength}let o=t.state.sliceDoc(i.from,i.to);return i.from+Jr(o,s,t.state.tabSize)}function ea(t,e,i){let n=t.lineBlockAt(e);if(Array.isArray(n.type)){let r;for(let s of n.type){if(s.from>e)break;if(!(s.to<e)){if(s.from<e&&s.to>e)return s;(!r||s.type==ye.Text&&(r.type!=s.type||(i<0?s.from<e:s.to>e)))&&(r=s)}}return r||n}return n}function a1(t,e,i,n){let r=ea(t,e.head,e.assoc||-1),s=!n||r.type!=ye.Text||!(t.lineWrapping||r.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>r.from?e.head-1:e.head);if(s){let o=t.dom.getBoundingClientRect(),l=t.textDirectionAt(r.from),a=t.posAtCoords({x:i==(l==G.LTR)?o.right-1:o.left+1,y:(s.top+s.bottom)/2});if(a!=null)return y.cursor(a,i?-1:1)}return y.cursor(i?r.to:r.from,i?-1:1)}function pf(t,e,i,n){let r=t.state.doc.lineAt(e.head),s=t.bidiSpans(r),o=t.textDirectionAt(r.from);for(let l=e,a=null;;){let c=Yy(r,s,o,l,i),h=td;if(!c){if(r.number==(i?t.state.doc.lines:1))return l;h=`
|
||
`,r=t.state.doc.line(r.number+(i?1:-1)),s=t.bidiSpans(r),c=t.visualLineSide(r,!i)}if(a){if(!a(h))return l}else{if(!n)return c;a=n(h)}l=c}}function c1(t,e,i){let n=t.state.charCategorizer(e),r=n(i);return s=>{let o=n(s);return r==te.Space&&(r=o),r==o}}function h1(t,e,i,n){let r=e.head,s=i?1:-1;if(r==(i?t.state.doc.length:0))return y.cursor(r,e.assoc);let o=e.goalColumn,l,a=t.contentDOM.getBoundingClientRect(),c=t.coordsAtPos(r,e.assoc||-1),h=t.documentTop;if(c)o==null&&(o=c.left-a.left),l=s<0?c.top:c.bottom;else{let p=t.viewState.lineBlockAt(r);o==null&&(o=Math.min(a.right-a.left,t.defaultCharacterWidth*(r-p.from))),l=(s<0?p.top:p.bottom)+h}let u=a.left+o,f=n??t.viewState.heightOracle.textHeight>>1,d=ta(t,{x:u,y:l+f*s},!1,s);return y.cursor(d.pos,d.assoc,void 0,o)}function ir(t,e,i){for(;;){let n=0;for(let r of t)r.between(e-1,e+1,(s,o,l)=>{if(e>s&&e<o){let a=n||i||(e-s<o-e?-1:1);e=a<0?s:o,n=a}});if(!n)return e}}function bd(t,e){let i=null;for(let n=0;n<e.ranges.length;n++){let r=e.ranges[n],s=null;if(r.empty){let o=ir(t,r.from,0);o!=r.from&&(s=y.cursor(o,-1))}else{let o=ir(t,r.from,-1),l=ir(t,r.to,1);(o!=r.from||l!=r.to)&&(s=y.range(r.from==r.anchor?o:l,r.from==r.head?o:l))}s&&(i||(i=e.ranges.slice()),i[n]=s)}return i?y.create(i,e.mainIndex):e}function Al(t,e,i){let n=ir(t.state.facet(ur).map(r=>r(t)),i.from,e.head>i.from?-1:1);return n==i.from?i:y.cursor(n,n<i.from?1:-1)}function ta(t,e,i,n){let r=t.contentDOM.getBoundingClientRect(),s=r.top+t.viewState.paddingTop,{x:o,y:l}=e,a=l-s,c;for(;;){if(a<0)return new tt(0,1);if(a>t.viewState.docHeight)return new tt(t.state.doc.length,-1);if(c=t.elementAtHeight(a),n==null)break;if(c.type==ye.Text){let f=t.docView.coordsAt(n<0?c.from:c.to,n);if(f&&(n<0?f.top<=a+s:f.bottom>=a+s))break}let u=t.viewState.heightOracle.textHeight/2;a=n>0?c.bottom+u:c.top-u}if(t.viewport.from>=c.to||t.viewport.to<=c.from){if(i)return null;if(c.type==ye.Text){let u=l1(t,r,c,o,l);return new tt(u,u==c.from?1:-1)}}if(c.type!=ye.Text)return a<(c.top+c.bottom)/2?new tt(c.from,1):new tt(c.to,-1);let h=t.docView.lineAt(c.from,2);return(!h||h.length!=c.length)&&(h=t.docView.lineAt(c.from,-2)),yd(t,h,c.from,o,l)}function yd(t,e,i,n,r){let s=-1,o=null,l=1e9,a=1e9,c=r,h=r,u=(f,d)=>{for(let p=0;p<f.length;p++){let O=f[p];if(O.top==O.bottom)continue;let g=O.left>n?O.left-n:O.right<n?n-O.right:0,b=O.top>r?O.top-r:O.bottom<r?r-O.bottom:0;O.top<=h&&O.bottom>=c&&(c=Math.min(O.top,c),h=Math.max(O.bottom,h),b=0),(s<0||(b-a||g-l)<0)&&(s>=0&&a&&l<g&&o.top<=h-2&&o.bottom>=c+2?a=0:(s=d,l=g,a=b,o=O))}};if(e.isText()){for(let d=0;d<e.length;){let p=le(e.text,d);if(u(ar(e.dom,d,p).getClientRects(),d),!l&&!a)break;d=p}return n>(o.left+o.right)/2==(Of(t,s+i)==G.LTR)?new tt(i+le(e.text,s),-1):new tt(i+s,1)}else{if(!e.length)return new tt(i,1);for(let O=0;O<e.children.length;O++){let g=e.children[O];if(g.flags&48)continue;let b=(g.dom.nodeType==1?g.dom:ar(g.dom,0,g.length)).getClientRects();if(u(b,O),!l&&!a)break}let f=e.children[s],d=e.posBefore(f,i);return f.isComposite()||f.isText()?yd(t,f,d,Math.max(o.left,Math.min(o.right,n)),r):n>(o.left+o.right)/2==(Of(t,s+i)==G.LTR)?new tt(d+f.length,-1):new tt(d,1)}}function Of(t,e){let i=t.state.doc.lineAt(e);return t.bidiSpans(i)[ut.find(t.bidiSpans(i),e-i.from,-1,1)].dir}function u1(t,e,i){for(;;){if(!e||i<qt(e))return!1;if(e==t)return!0;i=ei(e)+1,e=e.parentNode}}function f1(t,e){let i;for(;!(t==e||!t);t=t.nextSibling){let n=ae.get(t);if(!n?.isWidget())return!1;n&&(i||(i=[])).push(n)}if(i)for(let n of i){let r=n.overrideDOMText;if(r?.length)return!1}return!0}function xd(t,e,i,n){if(t.isComposite()){let r=-1,s=-1,o=-1,l=-1;for(let a=0,c=n,h=n;a<t.children.length;a++){let u=t.children[a],f=c+u.length;if(c<e&&f>i)return xd(u,e,i,c);if(f>=e&&r==-1&&(r=a,s=c),c>i&&u.dom.parentNode==t.dom){o=a,l=h;break}h=f,c=f+u.breakAfter}return{from:s,to:l<0?n+t.length:l,startDOM:(r?t.children[r-1].dom.nextSibling:null)||t.dom.firstChild,endDOM:o<t.children.length&&o>=0?t.children[o].dom:null}}else return t.isText()?{from:n,to:n+t.length,startDOM:t.dom,endDOM:t.dom.nextSibling}:null}function Sd(t,e){let i,{newSel:n}=e,r=t.state.selection.main,s=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:o,to:l}=e.bounds,a=r.from,c=null;(s===8||A.android&&e.text.length<l-o)&&(a=r.to,c="end");let h=Qd(t.state.doc.sliceString(o,l,Fn),e.text,a-o,c);h&&(A.chrome&&s==13&&h.toB==h.from+2&&e.text.slice(h.from,h.toB)==Fn+Fn&&h.toB--,i={from:o+h.from,to:o+h.toA,insert:q.of(e.text.slice(h.from,h.toB).split(Fn))})}else n&&(!t.hasFocus&&t.state.facet(Lt)||vs(n,r))&&(n=null);if(!i&&!n)return!1;if(!i&&e.typeOver&&!r.empty&&n&&n.main.empty?i={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,r.to)}:(A.mac||A.android)&&i&&i.from==i.to&&i.from==r.head-1&&/^\. ?$/.test(i.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(n&&i.insert.length==2&&(n=y.single(n.main.anchor-1,n.main.head-1)),i={from:i.from,to:i.to,insert:q.of([i.insert.toString().replace("."," ")])}):i&&i.from>=r.from&&i.to<=r.to&&(i.from!=r.from||i.to!=r.to)&&r.to-r.from-(i.to-i.from)<=4?i={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,i.from).append(i.insert).append(t.state.doc.slice(i.to,r.to))}:t.state.doc.lineAt(r.from).to<r.to&&t.docView.lineHasWidget(r.to)&&t.inputState.insertingTextAt>Date.now()-50?i={from:r.from,to:r.to,insert:t.state.toText(t.inputState.insertingText)}:A.chrome&&i&&i.from==i.to&&i.from==r.head&&i.insert.toString()==`
|
||
`&&t.lineWrapping&&(n&&(n=y.single(n.main.anchor-1,n.main.head-1)),i={from:r.from,to:r.to,insert:q.of([" "])}),i)return La(t,i,n,s);if(n&&!vs(n,r)){let o=!1,l="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(o=!0),l=t.inputState.lastSelectionOrigin,l=="select.pointer"&&(n=bd(t.state.facet(ur).map(a=>a(t)),n))),t.dispatch({selection:n,scrollIntoView:o,userEvent:l}),!0}else return!1}function La(t,e,i,n=-1){if(A.ios&&t.inputState.flushIOSKey(e))return!0;let r=t.state.selection.main;if(A.android&&(e.to==r.to&&(e.from==r.from||e.from==r.from-1&&t.state.sliceDoc(e.from,r.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&on(t.contentDOM,"Enter",13)||(e.from==r.from-1&&e.to==r.to&&e.insert.length==0||n==8&&e.insert.length<e.to-e.from&&e.to>r.head)&&on(t.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&e.insert.length==0&&on(t.contentDOM,"Delete",46)))return!0;let s=e.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let o,l=()=>o||(o=d1(t,e,i));return t.state.facet(od).some(a=>a(t,e.from,e.to,s,l))||t.dispatch(l()),!0}function d1(t,e,i){let n,r=t.state,s=r.selection.main,o=-1;if(e.from==e.to&&e.from<s.from||e.from>s.to){let a=e.from<s.from?-1:1,c=a<0?s.from:s.to,h=ir(r.facet(ur).map(u=>u(t)),c,a);e.from==h&&(o=h)}if(o>-1)n={changes:e,selection:y.cursor(e.from+e.insert.length,-1)};else if(e.from>=s.from&&e.to<=s.to&&e.to-e.from>=(s.to-s.from)/3&&(!i||i.main.empty&&i.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let a=s.from<e.from?r.sliceDoc(s.from,e.from):"",c=s.to>e.to?r.sliceDoc(e.to,s.to):"";n=r.replaceSelection(t.state.toText(a+e.insert.sliceString(0,void 0,t.state.lineBreak)+c))}else{let a=r.changes(e),c=i&&i.main.to<=a.newLength?i.main:void 0;if(r.selection.ranges.length>1&&(t.inputState.composing>=0||t.inputState.compositionPendingChange)&&e.to<=s.to+10&&e.to>=s.to-10){let h=t.state.sliceDoc(e.from,e.to),u,f=i&&gd(t,i.main.head);if(f){let p=e.insert.length-(e.to-e.from);u={from:f.from,to:f.to-p}}else u=t.state.doc.lineAt(s.head);let d=s.to-e.to;n=r.changeByRange(p=>{if(p.from==s.from&&p.to==s.to)return{changes:a,range:c||p.map(a)};let O=p.to-d,g=O-h.length;if(t.state.sliceDoc(g,O)!=h||O>=u.from&&g<=u.to)return{range:p};let b=r.changes({from:g,to:O,insert:e.insert}),x=p.to-s.to;return{changes:b,range:c?y.range(Math.max(0,c.anchor+x),Math.max(0,c.head+x)):p.map(b)}})}else n={changes:a,selection:c&&r.selection.replaceRange(c)}}let l="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,l+=".compose",t.inputState.compositionFirstChange&&(l+=".start",t.inputState.compositionFirstChange=!1)),r.update(n,{userEvent:l,scrollIntoView:!0})}function Qd(t,e,i,n){let r=Math.min(t.length,e.length),s=0;for(;s<r&&t.charCodeAt(s)==e.charCodeAt(s);)s++;if(s==r&&t.length==e.length)return null;let o=t.length,l=e.length;for(;o>0&&l>0&&t.charCodeAt(o-1)==e.charCodeAt(l-1);)o--,l--;if(n=="end"){let a=Math.max(0,s-Math.min(o,l));i-=o+a-s}if(o<s&&t.length<e.length){let a=i<=s&&i>=o?s-i:0;s-=a,l=s+(l-o),o=s}else if(l<s){let a=i<=s&&i>=l?s-i:0;s-=a,o=s+(o-l),l=s}return{from:s,toA:o,toB:l}}function p1(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:i,anchorOffset:n,focusNode:r,focusOffset:s}=t.observer.selectionRange;return i&&(e.push(new ws(i,n)),(r!=i||s!=n)&&e.push(new ws(r,s))),e}function O1(t,e){if(t.length==0)return null;let i=t[0].pos,n=t.length==2?t[1].pos:i;return i>-1&&n>-1?y.single(i+e,n+e):null}function vs(t,e){return e.head==t.main.head&&e.anchor==t.main.anchor}function mf(t,e){return(i,n)=>{try{return e.call(t,n,i)}catch(r){de(i.state,r)}}}function m1(t){let e=Object.create(null);function i(n){return e[n]||(e[n]={observers:[],handlers:[]})}for(let n of t){let r=n.spec,s=r&&r.plugin.domEventHandlers,o=r&&r.plugin.domEventObservers;if(s)for(let l in s){let a=s[l];a&&i(l).handlers.push(mf(n.value,a))}if(o)for(let l in o){let a=o[l];a&&i(l).observers.push(mf(n.value,a))}}for(let n in dt)i(n).handlers.push(dt[n]);for(let n in it)i(n).observers.push(it[n]);return e}function rs(t){return Math.max(0,t)*.7+8}function b1(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}function y1(t,e){let i=t.state.facet(id);return i.length?i[0](e):A.mac?e.metaKey:e.ctrlKey}function x1(t,e){let i=t.state.facet(nd);return i.length?i[0](e):A.mac?!e.altKey:!e.ctrlKey}function S1(t,e){let{main:i}=t.state.selection;if(i.empty)return!1;let n=ln(t.root);if(!n||n.rangeCount==0)return!0;let r=n.getRangeAt(0).getClientRects();for(let s=0;s<r.length;s++){let o=r[s];if(o.left<=e.clientX&&o.right>=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}function Q1(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let i=e.target,n;i!=t.contentDOM;i=i.parentNode)if(!i||i.nodeType==11||(n=ae.get(i))&&n.isWidget()&&!n.isHidden&&n.widget.ignoreEvent(e))return!1;return!0}function w1(t){let e=t.dom.parentNode;if(!e)return;let i=e.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout(()=>{t.focus(),i.remove(),$d(t,i.value)},50)}function zs(t,e,i){for(let n of t.facet(e))i=n(i,t);return i}function $d(t,e){e=zs(t.state,Xa,e);let{state:i}=t,n,r=1,s=i.toText(e),o=s.lines==i.selection.ranges.length;if(oa!=null&&i.selection.ranges.every(a=>a.empty)&&oa==s.toString()){let a=-1;n=i.changeByRange(c=>{let h=i.doc.lineAt(c.from);if(h.from==a)return{range:c};a=h.from;let u=i.toText((o?s.line(r++).text:e)+i.lineBreak);return{changes:{from:h.from,insert:u},range:y.cursor(c.from+u.length)}})}else o?n=i.changeByRange(a=>{let c=s.line(r++);return{changes:{from:a.from,to:a.to,insert:c.text},range:y.cursor(a.from+c.length)}}):n=i.replaceSelection(s);t.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function gf(t,e,i,n){if(n==1)return y.cursor(e,i);if(n==2)return o1(t.state,e,i);{let r=t.docView.lineAt(e,i),s=t.state.doc.lineAt(r?r.posAtEnd:e),o=r?r.posAtStart:s.from,l=r?r.posAtEnd:s.to;return l<t.state.doc.length&&l==s.to&&l++,y.range(o,l)}}function Pd(t){if(!v1)return t.detail;let e=bf,i=xf;return bf=t,xf=Date.now(),yf=!e||i>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(yf+1)%3:1}function k1(t,e){let i=t.posAndSideAtCoords({x:e.clientX,y:e.clientY},!1),n=Pd(e),r=t.state.selection;return{update(s){s.docChanged&&(i.pos=s.changes.mapPos(i.pos),r=r.map(s.changes))},get(s,o,l){let a=t.posAndSideAtCoords({x:s.clientX,y:s.clientY},!1),c,h=gf(t,a.pos,a.assoc,n);if(i.pos!=a.pos&&!o){let u=gf(t,i.pos,i.assoc,n),f=Math.min(u.from,h.from),d=Math.max(u.to,h.to);h=f<h.from?y.range(f,d):y.range(d,f)}return o?r.replaceRange(r.main.extend(h.from,h.to)):l&&n==1&&r.ranges.length>1&&(c=$1(r,a.pos))?c:l?r.addRange(h):y.create([h])}}}function $1(t,e){for(let i=0;i<t.ranges.length;i++){let{from:n,to:r}=t.ranges[i];if(n<=e&&r>=e)return y.create(t.ranges.slice(0,i).concat(t.ranges.slice(i+1)),t.mainIndex==i?0:t.mainIndex-(t.mainIndex>i?1:0))}return null}function Sf(t,e,i,n){if(i=zs(t.state,Xa,i),!i)return;let r=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:s}=t.inputState,o=n&&s&&x1(t,e)?{from:s.from,to:s.to}:null,l={from:r,insert:i},a=t.state.changes(o?[o,l]:l);t.focus(),t.dispatch({changes:a,selection:{anchor:a.mapPos(r,-1),head:a.mapPos(r,1)},userEvent:o?"move.drop":"input.drop"}),t.inputState.draggedContent=null}function P1(t,e){let i=t.dom.parentNode;if(!i)return;let n=i.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=e,n.focus(),n.selectionEnd=e.length,n.selectionStart=0,setTimeout(()=>{n.remove(),t.focus()},50)}function T1(t){let e=[],i=[],n=!1;for(let r of t.selection.ranges)r.empty||(e.push(t.sliceDoc(r.from,r.to)),i.push(r));if(!e.length){let r=-1;for(let{from:s}of t.selection.ranges){let o=t.doc.lineAt(s);o.number>r&&(e.push(o.text),i.push({from:o.from,to:Math.min(t.doc.length,o.to+1)})),r=o.number}n=!0}return{text:zs(t,Ma,e.join(t.lineBreak)),ranges:i,linewise:n}}function Cd(t,e){let i=[];for(let n of t.facet(ld)){let r=n(t,e);r&&i.push(r)}return i.length?t.update({effects:i,annotations:Td.of(!0)}):null}function Ad(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let i=Cd(t.state,e);i?t.dispatch(i):t.update([])}},10)}function C1(t){Qf.has(t)||(Qf.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}function vf(){fn=!1}function ks(t,e){return t==e?t:(t.constructor!=e.constructor&&(fn=!0),e)}function kf(t,e){let i,n;t[e]==null&&(i=t[e-1])instanceof Jt&&(n=t[e+1])instanceof Jt&&t.splice(e-1,3,new Jt(i.length+1+n.length))}function R1(t,e,i){let n=new ua;return V.compare(t,e,i,n,0),n.changes}function X1(t,e){let i=t.getBoundingClientRect(),n=t.ownerDocument,r=n.defaultView||window,s=Math.max(0,i.left),o=Math.min(r.innerWidth,i.right),l=Math.max(0,i.top),a=Math.min(r.innerHeight,i.bottom);for(let c=t.parentNode;c&&c!=n.body;)if(c.nodeType==1){let h=c,u=window.getComputedStyle(h);if((h.scrollHeight>h.clientHeight||h.scrollWidth>h.clientWidth)&&u.overflow!="visible"){let f=h.getBoundingClientRect();s=Math.max(s,f.left),o=Math.min(o,f.right),l=Math.max(l,f.top),a=Math.min(c==t.parentNode?r.innerHeight:a,f.bottom)}c=u.position=="absolute"||u.position=="fixed"?h.offsetParent:h.parentNode}else if(c.nodeType==11)c=c.host;else break;return{left:s-i.left,right:Math.max(s,o)-i.left,top:l-(i.top+e),bottom:Math.max(l,a)-(i.top+e)}}function M1(t){let e=t.getBoundingClientRect(),i=t.ownerDocument.defaultView||window;return e.left<i.innerWidth&&e.right>0&&e.top<i.innerHeight&&e.bottom>0}function E1(t,e){let i=t.getBoundingClientRect();return{left:0,right:i.right-i.left,top:e,bottom:i.bottom-(i.top+e)}}function z1(t,e,i){let n=[],r=t,s=0;return V.spans(i,t,e,{span(){},point(o,l){o>r&&(n.push({from:r,to:o}),s+=o-r),r=l}},20),r<e&&(n.push({from:r,to:e}),s+=e-r),{total:s,ranges:n}}function ss({total:t,ranges:e},i){if(i<=0)return e[0].from;if(i>=1)return e[e.length-1].to;let n=Math.floor(t*i);for(let r=0;;r++){let{from:s,to:o}=e[r],l=o-s;if(n<=l)return s+n;n-=l}}function os(t,e){let i=0;for(let{from:n,to:r}of t.ranges){if(e<=r){i+=e-n;break}i+=r-n}return i/t.total}function D1(t,e){for(let i of t)if(e(i))return i}function Pf(t){let e=t.facet(Es).filter(n=>typeof n!="function"),i=t.facet(za).filter(n=>typeof n!="function");return i.length&&e.push(V.join(i)),e}function Gn(t,e){if(e.scale==1)return t;let i=e.toDOM(t.top),n=e.toDOM(t.bottom);return new ht(t.from,t.length,i,n-i,Array.isArray(t._content)?t._content.map(r=>Gn(r,e)):t._content)}function ma(t,e,i){return new Je(e,{finish(n){return/&/.test(n)?n.replace(/&\w*/,r=>{if(r=="&")return t;if(!i||!i[r])throw new RangeError(`Unsupported selector: ${r}`);return i[r]}):t+" "+n}})}function Tf(t,e,i){for(;e;){let n=ae.get(e);if(n&&n.parent==t)return n;let r=e.parentNode;e=r!=t.dom?r:i>0?e.nextSibling:e.previousSibling}return null}function Cf(t,e){let i=e.startContainer,n=e.startOffset,r=e.endContainer,s=e.endOffset,o=t.docView.domAtPos(t.state.selection.main.anchor,1);return Kn(o.node,o.offset,r,s)&&([i,n,r,s]=[r,s,i,n]),{anchorNode:i,anchorOffset:n,focusNode:r,focusOffset:s}}function V1(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return Cf(t,r)}let i=null;function n(r){r.preventDefault(),r.stopImmediatePropagation(),i=r.getTargetRanges()[0]}return t.contentDOM.addEventListener("beforeinput",n,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",n,!0),i?Cf(t,i):null}function Zf(t,e,i){for(let n=t.state.facet(e),r=n.length-1;r>=0;r--){let s=n[r],o=typeof s=="function"?s(t):s;o&&Aa(o,i)}return i}function Y1(t,e){let i=t.split(/-(?!$)/),n=i[i.length-1];n=="Space"&&(n=" ");let r,s,o,l;for(let a=0;a<i.length-1;++a){let c=i[a];if(/^(cmd|meta|m)$/i.test(c))l=!0;else if(/^a(lt)?$/i.test(c))r=!0;else if(/^(c|ctrl|control)$/i.test(c))s=!0;else if(/^s(hift)?$/i.test(c))o=!0;else if(/^mod$/i.test(c))e=="mac"?l=!0:s=!0;else throw new Error("Unrecognized modifier name: "+c)}return r&&(n="Alt-"+n),s&&(n="Ctrl-"+n),l&&(n="Meta-"+n),o&&(n="Shift-"+n),n}function as(t,e,i){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),i!==!1&&e.shiftKey&&(t="Shift-"+t),t}function Md(t){let e=t.facet($t),i=Rf.get(e);return i||Rf.set(e,i=I1(e.reduce((n,r)=>n.concat(r),[]))),i}function Ed(t,e,i){return zd(Md(t.state),e,t,i)}function I1(t,e=B1){let i=Object.create(null),n=Object.create(null),r=(o,l)=>{let a=n[o];if(a==null)n[o]=l;else if(a!=l)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},s=(o,l,a,c,h)=>{var u,f;let d=i[o]||(i[o]=Object.create(null)),p=l.split(/ (?!$)/).map(b=>Y1(b,e));for(let b=1;b<p.length;b++){let x=p.slice(0,b).join(" ");r(x,!0),d[x]||(d[x]={preventDefault:!0,stopPropagation:!1,run:[S=>{let C=Ht={view:S,prefix:x,scope:o};return setTimeout(()=>{Ht==C&&(Ht=null)},j1),!0}]})}let O=p.join(" ");r(O,!1);let g=d[O]||(d[O]={preventDefault:!1,stopPropagation:!1,run:((f=(u=d._any)===null||u===void 0?void 0:u.run)===null||f===void 0?void 0:f.slice())||[]});a&&g.run.push(a),c&&(g.preventDefault=!0),h&&(g.stopPropagation=!0)};for(let o of t){let l=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let c of l){let h=i[c]||(i[c]=Object.create(null));h._any||(h._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:u}=o;for(let f in h)h[f].run.push(d=>u(d,ya))}let a=o[e]||o.key;if(a)for(let c of l)s(c,a,o.run,o.preventDefault,o.stopPropagation),o.shift&&s(c,"Shift-"+a,o.shift,o.preventDefault,o.stopPropagation)}return i}function zd(t,e,i,n){ya=e;let r=tf(e),s=ge(r,0),o=qe(s)==r.length&&r!=" ",l="",a=!1,c=!1,h=!1;Ht&&Ht.view==i&&Ht.scope==n&&(l=Ht.prefix+" ",vd.indexOf(e.keyCode)<0&&(c=!0,Ht=null));let u=new Set,f=g=>{if(g){for(let b of g.run)if(!u.has(b)&&(u.add(b),b(i)))return g.stopPropagation&&(h=!0),!0;g.preventDefault&&(g.stopPropagation&&(h=!0),c=!0)}return!1},d=t[n],p,O;return d&&(f(d[l+as(r,e,!o)])?a=!0:o&&(e.altKey||e.metaKey||e.ctrlKey)&&!(A.windows&&e.ctrlKey&&e.altKey)&&!(A.mac&&e.altKey&&!(e.ctrlKey||e.metaKey))&&(p=Dt[e.keyCode])&&p!=r?(f(d[l+as(p,e,!0)])||e.shiftKey&&(O=Ji[e.keyCode])!=r&&O!=p&&f(d[l+as(O,e,!1)]))&&(a=!0):o&&e.shiftKey&&f(d[l+as(r,e,!0)])&&(a=!0),!a&&f(d._any)&&(a=!0)),c&&(a=!0),a&&h&&e.stopPropagation(),ya=null,a}function Dd(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==G.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function Xf(t,e,i,n){let r=t.coordsAtPos(e,i*2);if(!r)return n;let s=t.dom.getBoundingClientRect(),o=(r.top+r.bottom)/2,l=t.posAtCoords({x:s.left+1,y:o}),a=t.posAtCoords({x:s.right-1,y:o});return l==null||a==null?n:{from:Math.max(n.from,Math.min(l,a)),to:Math.min(n.to,Math.max(l,a))}}function N1(t,e,i){if(i.to<=t.viewport.from||i.from>=t.viewport.to)return[];let n=Math.max(i.from,t.viewport.from),r=Math.min(i.to,t.viewport.to),s=t.textDirection==G.LTR,o=t.contentDOM,l=o.getBoundingClientRect(),a=Dd(t),c=o.querySelector(".cm-line"),h=c&&window.getComputedStyle(c),u=l.left+(h?parseInt(h.paddingLeft)+Math.min(0,parseInt(h.textIndent)):0),f=l.right-(h?parseInt(h.paddingRight):0),d=ea(t,n,1),p=ea(t,r,-1),O=d.type==ye.Text?d:null,g=p.type==ye.Text?p:null;if(O&&(t.lineWrapping||d.widgetLineBreaks)&&(O=Xf(t,n,1,O)),g&&(t.lineWrapping||p.widgetLineBreaks)&&(g=Xf(t,r,-1,g)),O&&g&&O.from==g.from&&O.to==g.to)return x(S(i.from,i.to,O));{let Q=O?S(i.from,null,O):C(d,!1),$=g?S(null,i.to,g):C(p,!0),v=[];return(O||d).to<(g||p).from-(O&&g?1:0)||d.widgetLineBreaks>1&&Q.bottom+t.defaultLineHeight/2<$.top?v.push(b(u,Q.bottom,f,$.top)):Q.bottom<$.top&&t.elementAtHeight((Q.bottom+$.top)/2).type==ye.Text&&(Q.bottom=$.top=(Q.bottom+$.top)/2),x(Q).concat(v).concat(x($))}function b(Q,$,v,E){return new cr(e,Q-a.left,$-a.top,v-Q,E-$)}function x({top:Q,bottom:$,horizontal:v}){let E=[];for(let D=0;D<v.length;D+=2)E.push(b(v[D],Q,v[D+1],$));return E}function S(Q,$,v){let E=1e9,D=-1e9,U=[];function L(j,re,$e,ze,Qt){let me=t.coordsAtPos(j,j==v.to?-2:2),Fe=t.coordsAtPos($e,$e==v.from?2:-2);!me||!Fe||(E=Math.min(me.top,Fe.top,E),D=Math.max(me.bottom,Fe.bottom,D),Qt==G.LTR?U.push(s&&re?u:me.left,s&&ze?f:Fe.right):U.push(!s&&ze?u:Fe.left,!s&&re?f:me.right))}let X=Q??v.from,H=$??v.to;for(let j of t.visibleRanges)if(j.to>X&&j.from<H)for(let re=Math.max(j.from,X),$e=Math.min(j.to,H);;){let ze=t.state.doc.lineAt(re);for(let Qt of t.bidiSpans(ze)){let me=Qt.from+ze.from,Fe=Qt.to+ze.from;if(me>=$e)break;Fe>re&&L(Math.max(me,re),Q==null&&me<=X,Math.min(Fe,$e),$==null&&Fe>=H,Qt.dir)}if(re=ze.to+1,re>=$e)break}return U.length==0&&L(X,Q==null,H,$==null,t.textDirection),{top:E,bottom:D,horizontal:U}}function C(Q,$){let v=l.top+($?Q.top:Q.bottom);return{top:v,bottom:v,horizontal:[]}}}function F1(t,e){return t.constructor==e.constructor&&t.eq(e)}function Ld(t){return[J.define(e=>new xa(e,t)),ds.of(t)]}function qd(t={}){return[hr.of(t),G1,U1,H1,cd.of(!0)]}function Vd(t){return t.startState.facet(hr)!=t.state.facet(hr)}function Mf(t,e){e.style.animationDuration=t.facet(hr).cursorBlinkRate+"ms"}function Bd(){return[Un,K1]}function Ef(t,e,i,n,r){e.lastIndex=0;for(let s=t.iterRange(i,n),o=i,l;!s.next().done;o+=s.value.length)if(!s.lineBreak)for(;l=e.exec(s.value);)r(o+l.index,l)}function J1(t,e){let i=t.visibleRanges;if(i.length==1&&i[0].from==t.viewport.from&&i[0].to==t.viewport.to)return i;let n=[];for(let{from:r,to:s}of i)r=Math.max(t.state.doc.lineAt(r).from,r-e),s=Math.min(t.state.doc.lineAt(s).to,s+e),n.length&&n[n.length-1].to>=r?n[n.length-1].to=s:n.push({from:r,to:s});return n}function ix(){var t;if(Rl==null&&typeof document<"u"&&document.body){let e=document.body.style;Rl=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return Rl||!1}function Yd(t={}){return[ps.of(t),nx()]}function nx(){return zf||(zf=J.fromClass(class{constructor(t){this.view=t,this.decorations=T.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(ps)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new Sa({regexp:t.specialChars,decoration:(e,i,n)=>{let{doc:r}=i.state,s=ge(e[0],0);if(s==9){let o=r.lineAt(n),l=i.state.tabSize,a=zt(o.text,l,n-o.from);return T.replace({widget:new va((l-a%l)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=T.replace({widget:new wa(t,s)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(ps);t.startState.facet(ps)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}function sx(t){return t>=32?rx:t==10?"\u2424":String.fromCharCode(9216+t)}function Wd(){return lx}function ax(t,e,i){let n=Math.min(e.line,i.line),r=Math.max(e.line,i.line),s=[];if(e.off>ka||i.off>ka||e.col<0||i.col<0){let o=Math.min(e.off,i.off),l=Math.max(e.off,i.off);for(let a=n;a<=r;a++){let c=t.doc.line(a);c.length<=l&&s.push(y.range(c.from+o,c.to+l))}}else{let o=Math.min(e.col,i.col),l=Math.max(e.col,i.col);for(let a=n;a<=r;a++){let c=t.doc.line(a),h=Jr(c.text,o,t.tabSize,!0);if(h<0)s.push(y.cursor(c.to));else{let u=Jr(c.text,l,t.tabSize);s.push(y.range(c.from+h,c.from+u))}}}return s}function cx(t,e){let i=t.coordsAtPos(t.viewport.from);return i?Math.round(Math.abs((i.left-e)/t.defaultCharacterWidth)):-1}function Df(t,e){let i=t.posAtCoords({x:e.clientX,y:e.clientY},!1),n=t.state.doc.lineAt(i),r=i-n.from,s=r>ka?-1:r==n.length?cx(t,e.clientX):zt(n.text,t.state.tabSize,i-n.from);return{line:n.number,col:s,off:r}}function hx(t,e){let i=Df(t,e),n=t.state.selection;return i?{update(r){if(r.docChanged){let s=r.changes.mapPos(r.startState.doc.line(i.line).from),o=r.state.doc.lineAt(s);i={line:o.number,col:i.col,off:Math.min(i.off,o.length)},n=n.map(r.changes)}},get(r,s,o){let l=Df(t,r);if(!l)return n;let a=ax(t.state,i,l);return a.length?o?y.create(a.concat(n.ranges)):y.create(a):n}}:null}function jd(t){let e=t?.eventFilter||(i=>i.altKey&&i.button==0);return w.mouseSelectionStyle.of((i,n)=>e(n)?hx(i,n):null)}function Id(t={}){let[e,i]=ux[t.key||"Alt"],n=J.fromClass(class{constructor(r){this.view=r,this.isDown=!1}set(r){this.isDown!=r&&(this.isDown=r,this.view.update([]))}},{eventObservers:{keydown(r){this.set(r.keyCode==e||i(r))},keyup(r){(r.keyCode==e||!i(r))&&this.set(!1)},mousemove(r){this.set(i(r))}}});return[n,w.contentAttributes.of(r=>{var s;return!((s=r.plugin(n))===null||s===void 0)&&s.isDown?fx:null})]}function dx(t){let e=t.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:e.clientHeight,right:e.clientWidth}}function qf(t,e){let i=parseInt(t.style.left,10);(isNaN(i)||Math.abs(e-i)>1)&&(t.style.left=e+"px")}function gx(t,e){let{left:i,right:n,top:r,bottom:s}=t.getBoundingClientRect(),o;if(o=t.querySelector(".cm-tooltip-arrow")){let l=o.getBoundingClientRect();r=Math.min(l.top,r),s=Math.max(l.bottom,s)}return e.clientX>=i-hs&&e.clientX<=n+hs&&e.clientY>=r-hs&&e.clientY<=s+hs}function bx(t,e,i,n,r,s){let o=t.scrollDOM.getBoundingClientRect(),l=t.documentTop+t.documentPadding.top+t.contentHeight;if(o.left>n||o.right<n||o.top>r||Math.min(o.bottom,l)<r)return!1;let a=t.posAtCoords({x:n,y:r},!1);return a>=e&&a<=i}function Nd(t,e={}){let i=R.define(),n=F.define({create(){return[]},update(r,s){if(r.length&&(e.hideOnChange&&(s.docChanged||s.selection)?r=[]:e.hideOn&&(r=r.filter(o=>!e.hideOn(s,o))),s.docChanged)){let o=[];for(let l of r){let a=s.changes.mapPos(l.pos,-1,fe.TrackDel);if(a!=null){let c=Object.assign(Object.create(null),l);c.pos=a,c.end!=null&&(c.end=s.changes.mapPos(c.end)),o.push(c)}}r=o}for(let o of s.effects)o.is(i)&&(r=o.value),o.is(yx)&&(r=[]);return r},provide:r=>As.from(r)});return{active:n,extension:[n,J.define(r=>new $a(r,t,n,i,e.hoverTime||300)),mx]}}function Va(t,e){let i=t.plugin(qa);if(!i)return null;let n=i.manager.tooltips.indexOf(e);return n<0?null:i.manager.tooltipViews[n]}function fr(t,e){let i=t.plugin(Fd),n=i?i.specs.indexOf(e):-1;return n>-1?i.panels[n]:null}function _f(t){let e=t.nextSibling;return t.remove(),e}function Gd(t,e){let i,n=new Promise(o=>i=o),r=o=>xx(o,e,i);t.state.field(Ml,!1)?t.dispatch({effects:Ud.of(r)}):t.dispatch({effects:R.appendConfig.of(Ml.init(()=>[r]))});let s=Hd.of(r);return{close:s,result:n.then(o=>((t.win.queueMicrotask||(a=>t.win.setTimeout(a,10)))(()=>{t.state.field(Ml).indexOf(r)>-1&&t.dispatch({effects:s})}),o))}}function xx(t,e,i){let n=e.content?e.content(t,()=>o(null)):null;if(!n){if(n=W("form"),e.input){let l=W("input",e.input);/^(text|password|number|email|tel|url)$/.test(l.type)&&l.classList.add("cm-textfield"),l.name||(l.name="input"),n.appendChild(W("label",(e.label||"")+": ",l))}else n.appendChild(document.createTextNode(e.label||""));n.appendChild(document.createTextNode(" ")),n.appendChild(W("button",{class:"cm-button",type:"submit"},e.submitLabel||"OK"))}let r=n.nodeName=="FORM"?[n]:n.querySelectorAll("form");for(let l=0;l<r.length;l++){let a=r[l];a.addEventListener("keydown",c=>{c.keyCode==27?(c.preventDefault(),o(null)):c.keyCode==13&&(c.preventDefault(),o(a))}),a.addEventListener("submit",c=>{c.preventDefault(),o(a)})}let s=W("div",n,W("button",{onclick:()=>o(null),"aria-label":t.state.phrase("close"),class:"cm-dialog-close",type:"button"},["\xD7"]));e.class&&(s.className=e.class),s.classList.add("cm-dialog");function o(l){s.contains(s.ownerDocument.activeElement)&&t.focus(),i(l)}return{dom:s,top:e.top,mount:()=>{if(e.focus){let l;typeof e.focus=="string"?l=n.querySelector(e.focus):l=n.querySelector("input")||n.querySelector("button"),l&&"select"in l?l.select():l&&"focus"in l&&l.focus()}}}}function Ds(t){return[Kd(),rr.of({...Qx,...t})]}function Kd(t){let e=[wx];return t&&t.fixed===!1&&e.push(Pa.of(!0)),e}function Bf(t){return Array.isArray(t)?t:[t]}function Ta(t,e,i){for(;t.value&&t.from<=i;)t.from==i&&e.push(t.value),t.next()}function vx(t,e){if(t.length!=e.length)return!1;for(let i=0;i<t.length;i++)if(!t[i].compare(e[i]))return!1;return!0}function El(t,e){return t.state.facet(rn).formatNumber(e,t.state)}function Jd(t={}){return[rn.of(t),Kd(),Px]}function Yf(t){let e=9;for(;e<t;)e=e*10+9;return e}function ep(){return Cx}var Te,zl,Dl,Wf,Ll,Ms,sf,Pl,of,ql,lf,A,ms,xe,ye,T,or,lr,Ti,gs,_l,$i,hf,kt,G,Ci,Ra,zy,Dy,Bl,vt,Ly,ut,ne,td,id,nd,rd,sd,jl,od,ld,Xa,Ma,ad,cd,hd,Jn,is,ud,Lt,jy,en,J,er,fd,Ea,Es,dd,za,ur,pd,Od,Nn,ft,xs,Iy,ae,an,cn,Kt,hn,Re,Pi,Ai,un,Il,Nl,Fl,Gl,Ss,Ul,Hl,md,ti,Cl,Qs,t1,Jl,tr,tt,Fn,ia,ws,na,ra,wd,g1,vd,ns,sa,dt,it,kd,v1,bf,yf,xf,oa,Td,Qf,wf,fn,la,aa,ht,se,fs,Ve,A1,$s,et,Jt,ca,Z1,ha,ua,nr,fa,Ps,tn,$f,da,ls,pa,Oa,Zd,Rd,Xd,L1,q1,Zl,ga,ba,w,_1,Af,Ts,B1,W1,$t,Rf,Ht,j1,ya,cr,xa,ds,hr,G1,U1,H1,_d,Un,K1,Sa,Qa,ex,tx,Rl,ps,zf,rx,wa,va,ox,lx,ka,ux,fx,cs,Cs,Xl,Lf,qa,px,Ox,ii,As,Zs,mx,$a,hs,yx,Vf,Fd,nn,Zi,Ml,Ud,Hd,Xe,Os,Sx,Qx,rr,Pa,wx,Ca,Rs,Xs,kx,$x,rn,sr,Px,Tx,Cx,_e=K(()=>{Ke();$l();nf();ts();Te=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},zl=typeof document<"u"?document:{documentElement:{style:{}}},Dl=/Edge\/(\d+)/.exec(Te.userAgent),Wf=/MSIE \d/.test(Te.userAgent),Ll=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Te.userAgent),Ms=!!(Wf||Ll||Dl),sf=!Ms&&/gecko\/(\d+)/i.test(Te.userAgent),Pl=!Ms&&/Chrome\/(\d+)/.exec(Te.userAgent),of="webkitFontSmoothing"in zl.documentElement.style,ql=!Ms&&/Apple Computer/.test(Te.vendor),lf=ql&&(/Mobile\/\w+/.test(Te.userAgent)||Te.maxTouchPoints>2),A={mac:lf||/Mac/.test(Te.platform),windows:/Win/.test(Te.platform),linux:/Linux|X11/.test(Te.platform),ie:Ms,ie_version:Wf?zl.documentMode||6:Ll?+Ll[1]:Dl?+Dl[1]:0,gecko:sf,gecko_version:sf?+(/Firefox\/(\d+)/.exec(Te.userAgent)||[0,0])[1]:0,chrome:!!Pl,chrome_version:Pl?+Pl[1]:0,ios:lf,android:/Android\b/.test(Te.userAgent),webkit:of,webkit_version:of?+(/\bAppleWebKit\/(\d+)/.exec(Te.userAgent)||[0,0])[1]:0,safari:ql,safari_version:ql?+(/\bVersion\/(\d+(\.\d+)?)/.exec(Te.userAgent)||[0,0])[1]:0,tabSize:zl.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};ms=Object.create(null);xe=class{eq(e){return!1}updateDOM(e,i){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,i,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}},ye=(function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t})(ye||(ye={})),T=class extends Ue{constructor(e,i,n,r){super(),this.startSide=e,this.endSide=i,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(e){return new or(e)}static widget(e){let i=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return i+=n&&!e.inlineOrder?i>0?3e8:-4e8:i>0?1e8:-1e8,new Ti(e,i,i,n,e.widget||null,!1)}static replace(e){let i=!!e.block,n,r;if(e.isBlockGap)n=-5e8,r=4e8;else{let{start:s,end:o}=jf(e,i);n=(s?i?-3e8:-1:5e8)-1,r=(o?i?2e8:1:-6e8)+1}return new Ti(e,n,r,i,e.widget||null,!0)}static line(e){return new lr(e)}static set(e,i=!1){return V.of(e,i)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}};T.none=V.empty;or=class t extends T{constructor(e){let{start:i,end:n}=jf(e);super(i?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.attrs=e.class&&e.attributes?Aa(e.attributes,{class:e.class}):e.class?{class:e.class}:e.attributes||ms}eq(e){return this==e||e instanceof t&&this.tagName==e.tagName&&Za(this.attrs,e.attrs)}range(e,i=e){if(e>=i)throw new RangeError("Mark decorations may not be empty");return super.range(e,i)}};or.prototype.point=!1;lr=class t extends T{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof t&&this.spec.class==e.spec.class&&Za(this.spec.attributes,e.spec.attributes)}range(e,i=e){if(i!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,i)}};lr.prototype.mapMode=fe.TrackBefore;lr.prototype.point=!0;Ti=class t extends T{constructor(e,i,n,r,s,o){super(i,n,s,e),this.block=r,this.isReplace=o,this.mapMode=r?i<=0?fe.TrackBefore:fe.TrackAfter:fe.TrackDel}get type(){return this.startSide!=this.endSide?ye.WidgetRange:this.startSide<=0?ye.WidgetBefore:ye.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof t&&Ay(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,i=e){if(this.isReplace&&(e>i||e==i&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&i!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,i)}};Ti.prototype.point=!0;gs=class t extends Ue{constructor(e,i){super(),this.tagName=e,this.attributes=i}eq(e){return e==this||e instanceof t&&this.tagName==e.tagName&&Za(this.attributes,e.attributes)}static create(e){return new t(e.tagName,e.attributes||ms)}static set(e,i=!1){return V.of(e,i)}};gs.prototype.startSide=gs.prototype.endSide=-1;_l=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:i,focusNode:n}=e;this.set(i,Math.min(e.anchorOffset,i?qt(i):0),n,Math.min(e.focusOffset,n?qt(n):0))}set(e,i,n,r){this.anchorNode=e,this.anchorOffset=i,this.focusNode=n,this.focusOffset=r}},$i=null;A.safari&&A.safari_version>=26&&($i=!1);kt=class t{constructor(e,i,n=!0){this.node=e,this.offset=i,this.precise=n}static before(e,i){return new t(e.parentNode,ei(e),i)}static after(e,i){return new t(e.parentNode,ei(e)+1,i)}},G=(function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t})(G||(G={})),Ci=G.LTR,Ra=G.RTL;zy=Hf("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),Dy=Hf("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),Bl=Object.create(null),vt=[];for(let t of["()","[]","{}"]){let e=t.charCodeAt(0),i=t.charCodeAt(1);Bl[e]=i,Bl[i]=-e}Ly=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/,ut=class{get dir(){return this.level%2?Ra:Ci}constructor(e,i,n){this.from=e,this.to=i,this.level=n}side(e,i){return this.dir==i==e?this.to:this.from}forward(e,i){return e==(this.dir==i)}static find(e,i,n,r){let s=-1;for(let o=0;o<e.length;o++){let l=e[o];if(l.from<=i&&l.to>=i){if(l.level==n)return o;(s<0||(r!=0?r<0?l.from<i:l.to>i:e[s].level>l.level))&&(s=o)}}if(s<0)throw new RangeError("Index out of range");return s}};ne=[];td="";id=k.define(),nd=k.define(),rd=k.define(),sd=k.define(),jl=k.define(),od=k.define(),ld=k.define(),Xa=k.define(),Ma=k.define(),ad=k.define({combine:t=>t.some(e=>e)}),cd=k.define({combine:t=>t.some(e=>e)}),hd=k.define(),Jn=class t{constructor(e,i="nearest",n="nearest",r=5,s=5,o=!1){this.range=e,this.y=i,this.x=n,this.yMargin=r,this.xMargin=s,this.isSnapshot=o}map(e){return e.empty?this:new t(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new t(y.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}},is=R.define({map:(t,e)=>t.map(e)}),ud=R.define();Lt=k.define({combine:t=>t.length?t[0]:!0}),jy=0,en=k.define({combine(t){return t.filter((e,i)=>{for(let n=0;n<i;n++)if(t[n].plugin==e.plugin)return!1;return!0})}}),J=class t{constructor(e,i,n,r,s){this.id=e,this.create=i,this.domEventHandlers=n,this.domEventObservers=r,this.baseExtensions=s(this),this.extension=this.baseExtensions.concat(en.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat(en.of({plugin:this,arg:e}))}static define(e,i){let{eventHandlers:n,eventObservers:r,provide:s,decorations:o}=i||{};return new t(jy++,e,n,r,l=>{let a=[];return o&&a.push(Es.of(c=>{let h=c.plugin(l);return h?o(h):T.none})),s&&a.push(s(l)),a})}static fromClass(e,i){return t.define((n,r)=>new e(n,r),i)}},er=class{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let i=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(i)}catch(n){if(de(i.state,n,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(i){de(e.state,i,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var i;if(!((i=this.value)===null||i===void 0)&&i.destroy)try{this.value.destroy()}catch(n){de(e.state,n,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}},fd=k.define(),Ea=k.define(),Es=k.define(),dd=k.define(),za=k.define(),ur=k.define(),pd=k.define();Od=k.define();Nn=k.define(),ft=class t{constructor(e,i,n,r){this.fromA=e,this.toA=i,this.fromB=n,this.toB=r}join(e){return new t(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let i=e.length,n=this;for(;i>0;i--){let r=e[i-1];if(!(r.fromA>n.toA)){if(r.toA<n.fromA)break;n=n.join(r),e.splice(i-1,1)}}return e.splice(i,0,n),e}static extendWithRanges(e,i){if(i.length==0)return e;let n=[];for(let r=0,s=0,o=0;;){let l=r<e.length?e[r].fromB:1e9,a=s<i.length?i[s]:1e9,c=Math.min(l,a);if(c==1e9)break;let h=c+o,u=c,f=h;for(;;)if(s<i.length&&i[s]<=u){let d=i[s+1];s+=2,u=Math.max(u,d);for(let p=r;p<e.length&&e[p].fromB<=u;p++)o=e[p].toA-e[p].toB;f=Math.max(f,d+o)}else if(r<e.length&&e[r].fromB<=u){let d=e[r++];u=Math.max(u,d.toB),f=Math.max(f,d.toA),o=d.toA-d.toB}else break;n.push(new t(h,f,c,u))}return n}},xs=class t{constructor(e,i,n){this.view=e,this.state=i,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=Pe.empty(this.startState.doc.length);for(let s of n)this.changes=this.changes.compose(s.changes);let r=[];this.changes.iterChangedRanges((s,o,l,a)=>r.push(new ft(s,o,l,a))),this.changedRanges=r}static create(e,i,n){return new t(e,i,n)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}},Iy=[],ae=class{constructor(e,i,n=0){this.dom=e,this.length=i,this.flags=n,this.parent=null,e.cmTile=this}get breakAfter(){return this.flags&1}get children(){return Iy}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(e){if(this.flags|=2,this.flags&4){this.flags&=-5;let i=this.domAttrs;i&&Ty(this.dom,i)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(e){this.dom=e,e.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e,i=this.posAtStart){let n=i;for(let r of this.children){if(r==e)return n;n+=r.length+r.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}covers(e){return!0}coordsIn(e,i){return null}domPosFor(e,i){let n=ei(this.dom),r=this.length?e>0:i>0;return new kt(this.parent.dom,n+(r?1:0),e==0||e==this.length)}markDirty(e){this.flags&=-3,e&&(this.flags|=4),this.parent&&this.parent.flags&2&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let e=this;e;e=e.parent)if(e instanceof cn)return e;return null}static get(e){return e.cmTile}},an=class extends ae{constructor(e){super(e,0),this._children=[]}isComposite(){return!0}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(e){this.children.push(e),e.parent=this}sync(e){if(this.flags&2)return;super.sync(e);let i=this.dom,n=null,r,s=e?.node==i?e:null,o=0;for(let l of this.children){if(l.sync(e),o+=l.length+l.breakAfter,r=n?n.nextSibling:i.firstChild,s&&r!=l.dom&&(s.written=!0),l.dom.parentNode==i)for(;r&&r!=l.dom;)r=ff(r);else i.insertBefore(l.dom,r);n=l.dom}for(r=n?n.nextSibling:i.firstChild,s&&r&&(s.written=!0);r;)r=ff(r);this.length=o}};cn=class extends an{constructor(e,i){super(i),this.view=e}owns(e){for(;e;e=e.parent)if(e==this)return!0;return!1}isBlock(){return!0}nearest(e){for(;;){if(!e)return null;let i=ae.get(e);if(i&&this.owns(i))return i;e=e.parentNode}}blockTiles(e){for(let i=[],n=this,r=0,s=0;;)if(r==n.children.length){if(!i.length)return;n=n.parent,n.breakAfter&&s++,r=i.pop()}else{let o=n.children[r++];if(o instanceof Kt)i.push(r),n=o,r=0;else{let l=s+o.length,a=e(o,s);if(a!==void 0)return a;s=l+o.breakAfter}}}resolveBlock(e,i){let n,r=-1,s,o=-1;if(this.blockTiles((l,a)=>{let c=a+l.length;if(e>=a&&e<=c){if(l.isWidget()&&i>=-1&&i<=1){if(l.flags&32)return!0;l.flags&16&&(n=void 0)}(a<e||e==c&&(i<-1?l.length:l.covers(1)))&&(!n||!l.isWidget()&&n.isWidget())&&(n=l,r=e-a),(c>e||e==a&&(i>1?l.length:l.covers(-1)))&&(!s||!l.isWidget()&&s.isWidget())&&(s=l,o=e-a)}}),!n&&!s)throw new Error("No tile at position "+e);return n&&i<0||!s?{tile:n,offset:r}:{tile:s,offset:o}}},Kt=class t extends an{constructor(e,i){super(e),this.wrapper=i}isBlock(){return!0}covers(e){return this.children.length?e<0?this.children[0].covers(-1):this.lastChild.covers(1):!1}get domAttrs(){return this.wrapper.attributes}static of(e,i){let n=new t(i||document.createElement(e.tagName),e);return i||(n.flags|=4),n}},hn=class t extends an{constructor(e,i){super(e),this.attrs=i}isLine(){return!0}static start(e,i,n){let r=new t(i||document.createElement("div"),e);return(!i||!n)&&(r.flags|=4),r}get domAttrs(){return this.attrs}resolveInline(e,i,n){let r=null,s=-1,o=null,l=-1;function a(h,u){for(let f=0,d=0;f<h.children.length&&d<=u;f++){let p=h.children[f],O=d+p.length;O>=u&&(p.isComposite()?a(p,u-d):(!o||o.isHidden&&(i>0||n&&Fy(o,p)))&&(O>u||p.flags&32)?(o=p,l=u-d):(d<u||p.flags&16&&!p.isHidden)&&(r=p,s=u-d)),d=O}}a(this,e);let c=(i<0?r:o)||r||o;return c?{tile:c,offset:c==r?s:l}:null}coordsIn(e,i){let n=this.resolveInline(e,i,!0);return n?n.tile.coordsIn(Math.max(0,n.offset),i):Ny(this)}domIn(e,i){let n=this.resolveInline(e,i);if(n){let{tile:r,offset:s}=n;if(this.dom.contains(r.dom))return r.isText()?new kt(r.dom,Math.min(r.dom.nodeValue.length,s)):r.domPosFor(s,r.flags&16?1:r.flags&32?-1:i);let o=n.tile.parent,l=!1;for(let a of o.children){if(l)return new kt(a.dom,0);a==n.tile&&(l=!0)}}return new kt(this.dom,0)}};Re=class t extends an{constructor(e,i){super(e),this.mark=i}get domAttrs(){return this.mark.attrs}static of(e,i){let n=new t(i||document.createElement(e.tagName),e);return i||(n.flags|=4),n}},Pi=class t extends ae{constructor(e,i){super(e,i.length),this.text=i}sync(e){this.flags&2||(super.sync(e),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text))}isText(){return!0}toString(){return JSON.stringify(this.text)}coordsIn(e,i){let n=this.dom.nodeValue.length;e>n&&(e=n);let r=e,s=e,o=0;e==0&&i<0||e==n&&i>=0?A.chrome||A.gecko||(e?(r--,o=1):s<n&&(s++,o=-1)):i<0?r--:s<n&&s++;let l=ar(this.dom,r,s).getClientRects();if(!l.length)return null;let a=l[(o?o<0:i>=0)?0:l.length-1];return A.safari&&!o&&a.width==0&&(a=Array.prototype.find.call(l,c=>c.width)||a),o?ys(a,o<0):a||null}static of(e,i){let n=new t(i||document.createTextNode(e),e);return i||(n.flags|=2),n}},Ai=class t extends ae{constructor(e,i,n,r){super(e,i,r),this.widget=n}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(e){return this.flags&48?!1:(this.flags&(e<0?64:128))>0}coordsIn(e,i){return this.coordsInWidget(e,i,!1)}coordsInWidget(e,i,n){let r=this.widget.coordsAt(this.dom,e,i);if(r)return r;if(n)return ys(this.dom.getBoundingClientRect(),this.length?e==0:i<=0);{let s=this.dom.getClientRects(),o=null;if(!s.length)return null;let l=this.flags&16?!0:this.flags&32?!1:e>0;for(let a=l?s.length-1:0;o=s[a],!(e>0?a==0:a==s.length-1||o.top<o.bottom);a+=l?-1:1);return ys(o,!l)}}get overrideDOMText(){if(!this.length)return q.empty;let{root:e}=this;if(!e)return q.empty;let i=this.posAtStart;return e.view.state.doc.slice(i,i+this.length)}destroy(){super.destroy(),this.widget.destroy(this.dom)}static of(e,i,n,r,s){return s||(s=e.toDOM(i),e.editable||(s.contentEditable="false")),new t(s,n,e,r)}},un=class extends ae{constructor(e){let i=document.createElement("img");i.className="cm-widgetBuffer",i.setAttribute("aria-hidden","true"),super(i,0,e)}get isHidden(){return!0}get overrideDOMText(){return q.empty}coordsIn(e){return this.dom.getBoundingClientRect()}},Il=class{constructor(e){this.index=0,this.beforeBreak=!1,this.parents=[],this.tile=e}advance(e,i,n){let{tile:r,index:s,beforeBreak:o,parents:l}=this;for(;e||i>0;)if(r.isComposite())if(o){if(!e)break;n&&n.break(),e--,o=!1}else if(s==r.children.length){if(!e&&!l.length)break;n&&n.leave(r),o=!!r.breakAfter,{tile:r,index:s}=l.pop(),s++}else{let a=r.children[s],c=a.breakAfter;(i>0?a.length<=e:a.length<e)&&(!n||n.skip(a,0,a.length)!==!1||!a.isComposite)?(o=!!c,s++,e-=a.length):(l.push({tile:r,index:s}),r=a,s=0,n&&a.isComposite()&&n.enter(a))}else if(s==r.length)o=!!r.breakAfter,{tile:r,index:s}=l.pop(),s++;else if(e){let a=Math.min(e,r.length-s);n&&n.skip(r,s,s+a),e-=a,s+=a}else break;return this.tile=r,this.index=s,this.beforeBreak=o,this}get root(){return this.parents.length?this.parents[0].tile:this.tile}},Nl=class{constructor(e,i,n,r){this.from=e,this.to=i,this.wrapper=n,this.rank=r}},Fl=class{constructor(e,i,n){this.cache=e,this.root=i,this.blockWrappers=n,this.curLine=null,this.lastBlock=null,this.afterWidget=null,this.pos=0,this.wrappers=[],this.wrapperPos=0}addText(e,i,n,r){var s;this.flushBuffer();let o=this.ensureMarks(i,n),l=o.lastChild;if(l&&l.isText()&&!(l.flags&8)){this.cache.reused.set(l,2);let a=o.children[o.children.length-1]=new Pi(l.dom,l.text+e);a.parent=o}else o.append(r||Pi.of(e,(s=this.cache.find(Pi))===null||s===void 0?void 0:s.dom));this.pos+=e.length,this.afterWidget=null}addComposition(e,i){let n=this.curLine;n.dom!=i.line.dom&&(n.setDOM(this.cache.reused.has(i.line)?Tl(i.line.dom):i.line.dom),this.cache.reused.set(i.line,2));let r=n;for(let l=i.marks.length-1;l>=0;l--){let a=i.marks[l],c=r.lastChild;if(c instanceof Re&&c.mark.eq(a.mark))c.dom!=a.dom&&c.setDOM(Tl(a.dom)),r=c;else{if(this.cache.reused.get(a)){let u=ae.get(a.dom);u&&u.setDOM(Tl(a.dom))}let h=Re.of(a.mark,a.dom);r.append(h),r=h}this.cache.reused.set(a,2)}let s=ae.get(e.text);s&&this.cache.reused.set(s,2);let o=new Pi(e.text,e.text.nodeValue);o.flags|=8,r.append(o)}addInlineWidget(e,i,n){let r=this.afterWidget&&e.flags&48&&(this.afterWidget.flags&48)==(e.flags&48);r||this.flushBuffer();let s=this.ensureMarks(i,n);!r&&!(e.flags&16)&&s.append(this.getBuffer(1)),s.append(e),this.pos+=e.length,this.afterWidget=e}addMark(e,i,n){this.flushBuffer(),this.ensureMarks(i,n).append(e),this.pos+=e.length,this.afterWidget=null}addBlockWidget(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}continueWidget(e){let i=this.afterWidget||this.lastBlock;i.length+=e,this.pos+=e}addLineStart(e,i){var n;e||(e=md);let r=hn.start(e,i||((n=this.cache.find(hn))===null||n===void 0?void 0:n.dom),!!i);this.getBlockPos().append(this.lastBlock=this.curLine=r)}addLine(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(e){this.blockPosCovered()||this.addLineStart(e)}ensureLine(e){this.curLine||this.addLineStart(e)}ensureMarks(e,i){var n;let r=this.curLine;for(let s=e.length-1;s>=0;s--){let o=e[s],l;if(i>0&&(l=r.lastChild)&&l instanceof Re&&l.mark.eq(o))r=l,i--;else{let a=Re.of(o,(n=this.cache.find(Re,c=>c.mark.eq(o)))===null||n===void 0?void 0:n.dom);r.append(a),r=a,i=0}}return r}endLine(){if(this.curLine){this.flushBuffer();let e=this.curLine.lastChild;(!e||!df(this.curLine,!1)||e.dom.nodeName!="BR"&&e.isWidget()&&!(A.ios&&df(this.curLine,!0)))&&this.curLine.append(this.cache.findWidget(Cl,0,32)||new Ai(Cl.toDOM(),0,Cl,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let e=this.wrappers.length-1;e>=0;e--)this.wrappers[e].to<this.pos&&this.wrappers.splice(e,1);for(let e=this.blockWrappers;e.value&&e.from<=this.pos;e.next())if(e.to>=this.pos){let i=new Nl(e.from,e.to,e.value,e.rank),n=this.wrappers.length;for(;n>0&&(this.wrappers[n-1].rank-i.rank||this.wrappers[n-1].to-i.to)<0;)n--;this.wrappers.splice(n,0,i)}this.wrapperPos=this.pos}getBlockPos(){var e;this.updateBlockWrappers();let i=this.root;for(let n of this.wrappers){let r=i.lastChild;if(n.from<this.pos&&r instanceof Kt&&r.wrapper.eq(n.wrapper))i=r;else{let s=Kt.of(n.wrapper,(e=this.cache.find(Kt,o=>o.wrapper.eq(n.wrapper)))===null||e===void 0?void 0:e.dom);i.append(s),i=s}}return i}blockPosCovered(){let e=this.lastBlock;return e!=null&&!e.breakAfter&&(!e.isWidget()||(e.flags&160)>0)}getBuffer(e){let i=2|(e<0?16:32),n=this.cache.find(un,void 0,1);return n&&(n.flags=i),n||new un(i)}flushBuffer(){this.afterWidget&&!(this.afterWidget.flags&32)&&(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}},Gl=class{constructor(e){this.skipCount=0,this.text="",this.textOff=0,this.cursor=e.iter()}skip(e){this.textOff+e<=this.text.length?this.textOff+=e:(this.skipCount+=e-(this.text.length-this.textOff),this.text="",this.textOff=0)}next(e){if(this.textOff==this.text.length){let{value:r,lineBreak:s,done:o}=this.cursor.next(this.skipCount);if(this.skipCount=0,o)throw new Error("Ran out of text content when drawing inline views");this.text=r;let l=this.textOff=Math.min(e,r.length);return s?null:r.slice(0,l)}let i=Math.min(this.text.length,this.textOff+e),n=this.text.slice(this.textOff,i);return this.textOff=i,n}},Ss=[Ai,hn,Pi,Re,un,Kt,cn];for(let t=0;t<Ss.length;t++)Ss[t].bucket=t;Ul=class{constructor(e){this.view=e,this.buckets=Ss.map(()=>[]),this.index=Ss.map(()=>0),this.reused=new Map}add(e){let i=e.constructor.bucket,n=this.buckets[i];n.length<6?n.push(e):n[this.index[i]=(this.index[i]+1)%6]=e}find(e,i,n=2){let r=e.bucket,s=this.buckets[r],o=this.index[r];for(let l=s.length-1;l>=0;l--){let a=(l+o)%s.length,c=s[a];if((!i||i(c))&&!this.reused.has(c))return s.splice(a,1),a<o&&this.index[r]--,this.reused.set(c,n),c}return null}findWidget(e,i,n){let r=this.buckets[0];if(r.length)for(let s=0,o=0;;s++){if(s==r.length){if(o)return null;o=1,s=0}let l=r[s];if(!this.reused.has(l)&&(o==0?l.widget.compare(e):l.widget.constructor==e.constructor&&e.updateDOM(l.dom,this.view)))return r.splice(s,1),s<this.index[0]&&this.index[0]--,l.widget==e&&l.length==i&&(l.flags&497)==n?(this.reused.set(l,1),l):(this.reused.set(l,2),new Ai(l.dom,i,e,l.flags&-498|n))}}reuse(e){return this.reused.set(e,1),e}maybeReuse(e,i=2){if(!this.reused.has(e))return this.reused.set(e,i),e.dom}clear(){for(let e=0;e<this.buckets.length;e++)this.buckets[e].length=this.index[e]=0}},Hl=class{constructor(e,i,n,r,s){this.view=e,this.decorations=r,this.disallowBlockEffectsFor=s,this.openWidget=!1,this.openMarks=0,this.cache=new Ul(e),this.text=new Gl(e.state.doc),this.builder=new Fl(this.cache,new cn(e,e.contentDOM),V.iter(n)),this.cache.reused.set(i,2),this.old=new Il(i),this.reuseWalker={skip:(o,l,a)=>{if(this.cache.add(o),o.isComposite())return!1},enter:o=>this.cache.add(o),leave:()=>{},break:()=>{}}}run(e,i){let n=i&&this.getCompositionContext(i.text);for(let r=0,s=0,o=0;;){let l=o<e.length?e[o++]:null,a=l?l.fromA:this.old.root.length;if(a>r){let c=a-r;this.preserve(c,!o,!l),r=a,s+=c}if(!l)break;i&&l.fromA<=i.range.fromA&&l.toA>=i.range.toA?(this.forward(l.fromA,i.range.fromA,i.range.fromA<i.range.toA?1:-1),this.emit(s,i.range.fromB),this.cache.clear(),this.builder.addComposition(i,n),this.text.skip(i.range.toB-i.range.fromB),this.forward(i.range.fromA,l.toA),this.emit(i.range.toB,l.toB)):(this.forward(l.fromA,l.toA),this.emit(s,l.toB)),s=l.toB,r=l.toA}return this.builder.curLine&&this.builder.endLine(),this.builder.root}preserve(e,i,n){let r=Hy(this.old),s=this.openMarks;this.old.advance(e,n?1:-1,{skip:(o,l,a)=>{if(o.isWidget())if(this.openWidget)this.builder.continueWidget(a-l);else{let c=a>0||l<o.length?Ai.of(o.widget,this.view,a-l,o.flags&496,this.cache.maybeReuse(o)):this.cache.reuse(o);c.flags&256?(c.flags&=-2,this.builder.addBlockWidget(c)):(this.builder.ensureLine(null),this.builder.addInlineWidget(c,r,s),s=r.length)}else if(o.isText())this.builder.ensureLine(null),!l&&a==o.length?this.builder.addText(o.text,r,s,this.cache.reuse(o)):(this.cache.add(o),this.builder.addText(o.text.slice(l,a),r,s)),s=r.length;else if(o.isLine())o.flags&=-2,this.cache.reused.set(o,1),this.builder.addLine(o);else if(o instanceof un)this.cache.add(o);else if(o instanceof Re)this.builder.ensureLine(null),this.builder.addMark(o,r,s),this.cache.reused.set(o,1),s=r.length;else return!1;this.openWidget=!1},enter:o=>{o.isLine()?this.builder.addLineStart(o.attrs,this.cache.maybeReuse(o)):(this.cache.add(o),o instanceof Re&&r.unshift(o.mark)),this.openWidget=!1},leave:o=>{o.isLine()?r.length&&(r.length=s=0):o instanceof Re&&(r.shift(),s=Math.min(s,r.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(e)}emit(e,i){let n=null,r=this.builder,s=0,o=V.spans(this.decorations,e,i,{point:(l,a,c,h,u,f)=>{if(c instanceof Ti){if(this.disallowBlockEffectsFor[f]){if(c.block)throw new RangeError("Block decorations may not be specified via plugins");if(a>this.view.state.doc.lineAt(l).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}if(s=h.length,u>h.length)r.continueWidget(a-l);else{let d=c.widget||(c.block?ti.block:ti.inline),p=Gy(c),O=this.cache.findWidget(d,a-l,p)||Ai.of(d,this.view,a-l,p);c.block?(c.startSide>0&&r.addLineStartIfNotCovered(n),r.addBlockWidget(O)):(r.ensureLine(n),r.addInlineWidget(O,h,u))}n=null}else n=Uy(n,c);a>l&&this.text.skip(a-l)},span:(l,a,c,h)=>{for(let u=l;u<a;){let f=this.text.next(Math.min(512,a-u));f==null?(r.addLineStartIfNotCovered(n),r.addBreak(),u++):(r.ensureLine(n),r.addText(f,c,h),u+=f.length),n=null}}});r.addLineStartIfNotCovered(n),this.openWidget=o>s,this.openMarks=o}forward(e,i,n=1){i-e<=10?this.old.advance(i-e,n,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(i-e-10,-1),this.old.advance(5,n,this.reuseWalker))}getCompositionContext(e){let i=[],n=null;for(let r=e.parentNode;;r=r.parentNode){let s=ae.get(r);if(r==this.view.contentDOM)break;s instanceof Re?i.push(s):s?.isLine()?n=s:r.nodeName=="DIV"&&!n&&r!=this.view.contentDOM?n=new hn(r,md):i.push(Re.of(new or({tagName:r.nodeName.toLowerCase(),attributes:Cy(r)}),r))}return{line:n,marks:i}}};md={class:"cm-line"};ti=class extends xe{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}};ti.inline=new ti("span");ti.block=new ti("div");Cl=new class extends xe{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}},Qs=class{constructor(e){this.view=e,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=T.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new cn(e,e.contentDOM),this.updateInner([new ft(0,0,0,e.state.doc.length)],null)}update(e){var i;let n=e.changedRanges;this.minWidth>0&&n.length&&(n.every(({fromA:h,toA:u})=>u<this.minWidthFrom||h>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let r=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((i=this.domChanged)===null||i===void 0)&&i.newSel?r=this.domChanged.newSel.head:!s1(e.changes,this.hasComposition)&&!e.selectionSet&&(r=e.state.selection.main.head));let s=r>-1?Jy(this.view,e.changes,r):null;if(this.domChanged=null,this.hasComposition){let{from:h,to:u}=this.hasComposition;n=new ft(h,u,e.changes.mapPos(h,-1),e.changes.mapPos(u,1)).addToSet(n.slice())}this.hasComposition=s?{from:s.range.fromB,to:s.range.toB}:null,(A.ie||A.chrome)&&!s&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,l=this.blockWrappers;this.updateDeco();let a=i1(o,this.decorations,e.changes);a.length&&(n=ft.extendWithRanges(n,a));let c=n1(l,this.blockWrappers,e.changes);return c.length&&(n=ft.extendWithRanges(n,c)),s&&!n.some(h=>h.fromA<=s.range.fromA&&h.toA>=s.range.toA)&&(n=s.range.addToSet(n.slice())),this.tile.flags&2&&n.length==0?!1:(this.updateInner(n,s),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,i){this.view.viewState.mustMeasureContent=!0;let{observer:n}=this.view;n.ignore(()=>{if(i||e.length){let o=this.tile,l=new Hl(this.view,o,this.blockWrappers,this.decorations,this.dynamicDecorationMap);this.tile=l.run(e,i),Kl(o,l.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let s=A.chrome||A.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(s),s&&(s.written||n.selectionRange.focusNode!=s.node||!this.tile.dom.contains(s.node))&&(this.forceSelection=!0),this.tile.dom.style.height=""});let r=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let s of this.tile.children)s.isWidget()&&s.widget instanceof tr&&r.push(s.dom);n.updateGaps(r)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let i of e.transactions)for(let n of i.effects)n.is(ud)&&(this.editContextFormatting=n.value)}updateSelection(e=!1,i=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let{dom:n}=this.tile,r=this.view.root.activeElement,s=r==n,o=!s&&!(this.view.state.facet(Lt)||n.tabIndex>-1)&&Hn(n,this.view.observer.selectionRange)&&!(r&&n.contains(r));if(!(s||i||o))return;let l=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,c,h;if(a.empty?h=c=this.inlineDOMNearPos(a.anchor,a.assoc||1):(h=this.inlineDOMNearPos(a.head,a.head==a.from?1:-1),c=this.inlineDOMNearPos(a.anchor,a.anchor==a.from?1:-1)),A.gecko&&a.empty&&!this.hasComposition&&Ky(c)){let f=document.createTextNode("");this.view.observer.ignore(()=>c.node.insertBefore(f,c.node.childNodes[c.offset]||null)),c=h=new kt(f,0),l=!0}let u=this.view.observer.selectionRange;(l||!u.focusNode||(!Kn(c.node,c.offset,u.anchorNode,u.anchorOffset)||!Kn(h.node,h.offset,u.focusNode,u.focusOffset))&&!this.suppressWidgetCursorChange(u,a))&&(this.view.observer.ignore(()=>{A.android&&A.chrome&&n.contains(u.focusNode)&&r1(u.focusNode,n)&&(n.blur(),n.focus({preventScroll:!0}));let f=ln(this.view.root);if(f)if(a.empty){if(A.gecko){let d=e1(c.node,c.offset);if(d&&d!=3){let p=(d==1?Gf:Uf)(c.node,c.offset);p&&(c=new kt(p.node,p.offset))}}f.collapse(c.node,c.offset),a.bidiLevel!=null&&f.caretBidiLevel!==void 0&&(f.caretBidiLevel=a.bidiLevel)}else if(f.extend){f.collapse(c.node,c.offset);try{f.extend(h.node,h.offset)}catch{}}else{let d=document.createRange();a.anchor>a.head&&([c,h]=[h,c]),d.setEnd(h.node,h.offset),d.setStart(c.node,c.offset),f.removeAllRanges(),f.addRange(d)}o&&this.view.root.activeElement==n&&(n.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(c,h)),this.impreciseAnchor=c.precise?null:new kt(u.anchorNode,u.anchorOffset),this.impreciseHead=h.precise?null:new kt(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(e,i){return this.hasComposition&&i.empty&&Kn(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==i.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,i=e.state.selection.main,n=ln(e.root),{anchorNode:r,anchorOffset:s}=e.observer.selectionRange;if(!n||!i.empty||!i.assoc||!n.modify)return;let o=this.lineAt(i.head,i.assoc);if(!o)return;let l=o.posAtStart;if(i.head==l||i.head==l+o.length)return;let a=this.coordsAt(i.head,-1),c=this.coordsAt(i.head,1);if(!a||!c||a.bottom>c.top)return;let h=this.domAtPos(i.head+i.assoc,i.assoc);n.collapse(h.node,h.offset),n.modify("move",i.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let u=e.observer.selectionRange;e.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=i.from&&n.collapse(r,s)}posFromDOM(e,i){let n=this.tile.nearest(e);if(!n)return this.tile.dom.compareDocumentPosition(e)&2?0:this.view.state.doc.length;let r=n.posAtStart;if(n.isComposite()){let s;if(e==n.dom)s=n.dom.childNodes[i];else{let o=qt(e)==0?0:i==0?-1:1;for(;;){let l=e.parentNode;if(l==n.dom)break;o==0&&l.firstChild!=l.lastChild&&(e==l.firstChild?o=-1:o=1),e=l}o<0?s=e:s=e.nextSibling}if(s==n.dom.firstChild)return r;for(;s&&!ae.get(s);)s=s.nextSibling;if(!s)return r+n.length;for(let o=0,l=r;;o++){let a=n.children[o];if(a.dom==s)return l;l+=a.length+a.breakAfter}}else return n.isText()?e==n.dom?r+i:r+(i?n.length:0):r}domAtPos(e,i){let{tile:n,offset:r}=this.tile.resolveBlock(e,i);return n.isWidget()?n.domPosFor(e,i):n.domIn(r,i)}inlineDOMNearPos(e,i){let n,r=-1,s=!1,o,l=-1,a=!1;return this.tile.blockTiles((c,h)=>{if(c.isWidget()){if(c.flags&32&&h>=e)return!0;c.flags&16&&(s=!0)}else{let u=h+c.length;if(h<=e&&(n=c,r=e-h,s=u<e),u>=e&&!o&&(o=c,l=e-h,a=h>e),h>e&&o)return!0}}),!n&&!o?this.domAtPos(e,i):(s&&o?n=null:a&&n&&(o=null),n&&i<0||!o?n.domIn(r,i):o.domIn(l,i))}coordsAt(e,i){let{tile:n,offset:r}=this.tile.resolveBlock(e,i);return n.isWidget()?n.widget instanceof tr?null:n.coordsInWidget(r,i,!0):n.coordsIn(r,i)}lineAt(e,i){let{tile:n}=this.tile.resolveBlock(e,i);return n.isLine()?n:null}coordsForChar(e){let{tile:i,offset:n}=this.tile.resolveBlock(e,1);if(!i.isLine())return null;function r(s,o){if(s.isComposite())for(let l of s.children){if(l.length>=o){let a=r(l,o);if(a)return a}if(o-=l.length,o<0)break}else if(s.isText()&&o<s.length){let l=le(s.text,o);if(l==o)return null;let a=ar(s.dom,o,l).getClientRects();for(let c=0;c<a.length;c++){let h=a[c];if(c==a.length-1||h.top<h.bottom&&h.left<h.right)return h}}return null}return r(i,n)}measureVisibleLineHeights(e){let i=[],{from:n,to:r}=e,s=this.view.contentDOM.clientWidth,o=s>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,a=this.view.textDirection==G.LTR,c=0,h=(u,f,d)=>{for(let p=0;p<u.children.length&&!(f>r);p++){let O=u.children[p],g=f+O.length,b=O.dom.getBoundingClientRect(),{height:x}=b;if(d&&!p&&(c+=b.top-d.top),O instanceof Kt)g>n&&h(O,f,b);else if(f>=n&&(c>0&&i.push(-c),i.push(x+c),c=0,o)){let S=O.dom.lastChild,C=S?us(S):[];if(C.length){let Q=C[C.length-1],$=a?Q.right-b.left:b.right-Q.left;$>l&&(l=$,this.minWidth=s,this.minWidthFrom=f,this.minWidthTo=g)}}d&&p==u.children.length-1&&(c+=d.bottom-b.bottom),f=g+O.breakAfter}};return h(this.tile,0,null),i}textDirectionAt(e){let{tile:i}=this.tile.resolveBlock(e,1);return getComputedStyle(i.dom).direction=="rtl"?G.RTL:G.LTR}measureTextSize(){let e=this.tile.blockTiles(o=>{if(o.isLine()&&o.children.length&&o.length<=20){let l=0,a;for(let c of o.children){if(!c.isText()||/[^ -~]/.test(c.text))return;let h=us(c.dom);if(h.length!=1)return;l+=h[0].width,a=h[0].height}if(l)return{lineHeight:o.dom.getBoundingClientRect().height,charWidth:l/o.length,textHeight:a}}});if(e)return e;let i=document.createElement("div"),n,r,s;return i.className="cm-line",i.style.width="99999px",i.style.position="absolute",i.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.tile.dom.appendChild(i);let o=us(i.firstChild)[0];n=i.getBoundingClientRect().height,r=o&&o.width?o.width/27:7,s=o&&o.height?o.height:n,i.remove()}),{lineHeight:n,charWidth:r,textHeight:s}}computeBlockGapDeco(){let e=[],i=this.view.viewState;for(let n=0,r=0;;r++){let s=r==i.viewports.length?null:i.viewports[r],o=s?s.from-1:this.view.state.doc.length;if(o>n){let l=(i.lineBlockAt(o).bottom-i.lineBlockAt(n).top)/this.view.scaleY;e.push(T.replace({widget:new tr(l),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!s)break;n=s.to+1}return T.set(e)}updateDeco(){let e=1,i=this.view.state.facet(Es).map(s=>(this.dynamicDecorationMap[e++]=typeof s=="function")?s(this.view):s),n=!1,r=this.view.state.facet(za).map((s,o)=>{let l=typeof s=="function";return l&&(n=!0),l?s(this.view):s});for(r.length&&(this.dynamicDecorationMap[e++]=n,i.push(V.join(r))),this.decorations=[this.editContextFormatting,...i,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;this.blockWrappers=this.view.state.facet(dd).map(s=>typeof s=="function"?s(this.view):s)}scrollIntoView(e){if(e.isSnapshot){let c=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=c.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let c of this.view.state.facet(hd))try{if(c(this.view,e.range,e))return!0}catch(h){de(this.view.state,h,"scroll handler")}let{range:i}=e,n=this.coordsAt(i.head,i.empty?i.assoc:i.head>i.anchor?-1:1),r;if(!n)return;!i.empty&&(r=this.coordsAt(i.anchor,i.anchor>i.head?-1:1))&&(n={left:Math.min(n.left,r.left),top:Math.min(n.top,r.top),right:Math.max(n.right,r.right),bottom:Math.max(n.bottom,r.bottom)});let s=Da(this.view),o={left:n.left-s.left,top:n.top-s.top,right:n.right+s.right,bottom:n.bottom+s.bottom},{offsetWidth:l,offsetHeight:a}=this.view.scrollDOM;Ry(this.view.scrollDOM,o,i.head<i.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,l),-l),Math.max(Math.min(e.yMargin,a),-a),this.view.textDirection==G.LTR)}lineHasWidget(e){let i=n=>n.isWidget()||n.children.some(i);return i(this.tile.resolveBlock(e,1).tile)}destroy(){Kl(this.tile)}};t1=class{constructor(){this.changes=[]}compareRange(e,i){sn(e,i,this.changes)}comparePoint(e,i){sn(e,i,this.changes)}boundChange(e){sn(e,e,this.changes)}};Jl=class{constructor(){this.changes=[]}compareRange(e,i){sn(e,i,this.changes)}comparePoint(){}boundChange(e){sn(e,e,this.changes)}};tr=class extends xe{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}};tt=class{constructor(e,i){this.pos=e,this.assoc=i}};Fn="\uFFFF",ia=class{constructor(e,i){this.points=e,this.view=i,this.text="",this.lineSeparator=i.state.facet(I.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Fn}readRange(e,i){if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r);let s=this.text.length;this.readNode(r);let o=ae.get(r),l=r.nextSibling;if(l==i){o?.breakAfter&&!l&&n!=this.view.contentDOM&&this.lineBreak();break}let a=ae.get(l);(o&&a?o.breakAfter:(o?o.breakAfter:bs(r))||bs(l)&&(r.nodeName!="BR"||o?.isWidget())&&this.text.length>s)&&!f1(l,i)&&this.lineBreak(),r=l}return this.findPointBefore(n,i),this}readTextNode(e){let i=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,i.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let s=-1,o=1,l;if(this.lineSeparator?(s=i.indexOf(this.lineSeparator,n),o=this.lineSeparator.length):(l=r.exec(i))&&(s=l.index,o=l[0].length),this.append(i.slice(n,s<0?i.length:s)),s<0)break;if(this.lineBreak(),o>1)for(let a of this.points)a.node==e&&a.pos>this.text.length&&(a.pos-=o-1);n=s+o}}readNode(e){let i=ae.get(e),n=i&&i.overrideDOMText;if(n!=null){this.findPointInside(e,n.length);for(let r=n.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,i){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==i&&(n.pos=this.text.length)}findPointInside(e,i){for(let n of this.points)(e.nodeType==3?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(u1(e,n.node,n.offset)?i:0))}};ws=class{constructor(e,i){this.node=e,this.offset=i,this.pos=-1}},na=class{constructor(e,i,n,r){this.typeOver=r,this.bounds=null,this.text="",this.domChanged=i>-1;let{impreciseHead:s,impreciseAnchor:o}=e.docView;if(e.state.readOnly&&i>-1)this.newSel=null;else if(i>-1&&(this.bounds=xd(e.docView.tile,i,n,0))){let l=s||o?[]:p1(e),a=new ia(l,e);a.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=a.text,this.newSel=O1(l,this.bounds.from)}else{let l=e.observer.selectionRange,a=s&&s.node==l.focusNode&&s.offset==l.focusOffset||!Vl(e.contentDOM,l.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(l.focusNode,l.focusOffset),c=o&&o.node==l.anchorNode&&o.offset==l.anchorOffset||!Vl(e.contentDOM,l.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(l.anchorNode,l.anchorOffset),h=e.viewport;if((A.ios||A.chrome)&&e.state.selection.main.empty&&a!=c&&(h.from>0||h.to<e.state.doc.length)){let u=Math.min(a,c),f=Math.max(a,c),d=h.from-u,p=h.to-f;(d==0||d==1||u==0)&&(p==0||p==-1||f==e.state.doc.length)&&(a=0,c=e.state.doc.length)}e.inputState.composing>-1&&e.state.selection.ranges.length>1?this.newSel=e.state.selection.replaceRange(y.range(c,a)):this.newSel=y.single(c,a)}}};ra=class{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,A.safari&&e.contentDOM.addEventListener("input",()=>null),A.gecko&&C1(e.contentDOM.ownerDocument)}handleEvent(e){!Q1(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,i){let n=this.handlers[e];if(n){for(let r of n.observers)r(this.view,i);for(let r of n.handlers){if(i.defaultPrevented)break;if(r(this.view,i)){i.preventDefault();break}}}}ensureHandlers(e){let i=m1(e),n=this.handlers,r=this.view.contentDOM;for(let s in i)if(s!="scroll"){let o=!i[s].handlers.length,l=n[s];l&&o!=!l.handlers.length&&(r.removeEventListener(s,this.handleEvent),l=null),l||r.addEventListener(s,this.handleEvent,{passive:o})}for(let s in n)s!="scroll"&&!i[s]&&r.removeEventListener(s,this.handleEvent);this.handlers=i}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&vd.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),A.android&&A.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let i;return A.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((i=wd.find(n=>n.keyCode==e.keyCode))&&!e.ctrlKey||g1.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=i||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let i=this.pendingIOSKey;return!i||i.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,on(this.view.contentDOM,i.key,i.keyCode,i instanceof KeyboardEvent?i:void 0))}ignoreDuringComposition(e){return!/^key/.test(e.type)||e.synthetic?!1:this.composing>0?!0:A.safari&&!A.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}};wd=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],g1="dthko",vd=[16,17,18,20,91,92,224,225],ns=6;sa=class{constructor(e,i,n,r){this.view=e,this.startEvent=i,this.style=n,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=i,this.scrollParents=Xy(e.contentDOM),this.atoms=e.state.facet(ur).map(o=>o(e));let s=e.contentDOM.ownerDocument;s.addEventListener("mousemove",this.move=this.move.bind(this)),s.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=i.shiftKey,this.multiple=e.state.facet(I.allowMultipleSelections)&&y1(e,i),this.dragging=S1(e,i)&&Pd(i)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&b1(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let i=0,n=0,r=0,s=0,o=this.view.win.innerWidth,l=this.view.win.innerHeight;this.scrollParents.x&&({left:r,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:s,bottom:l}=this.scrollParents.y.getBoundingClientRect());let a=Da(this.view);e.clientX-a.left<=r+ns?i=-rs(r-e.clientX):e.clientX+a.right>=o-ns&&(i=rs(e.clientX-o)),e.clientY-a.top<=s+ns?n=-rs(s-e.clientY):e.clientY+a.bottom>=l-ns&&(n=rs(e.clientY-l)),this.setScrollSpeed(i,n)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,i){this.scrollSpeed={x:e,y:i},e||i?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:i}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),i&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=i,i=0),(e||i)&&this.view.win.scrollBy(e,i),this.dragging===!1&&this.select(this.lastEvent)}select(e){let{view:i}=this,n=bd(this.atoms,this.style.get(e,this.extend,this.multiple));(this.mustSelect||!n.eq(i.state.selection,this.dragging===!1))&&this.view.dispatch({selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(i=>i.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}};dt=Object.create(null),it=Object.create(null),kd=A.ie&&A.ie_version<15||A.ios&&A.webkit_version<604;it.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft};dt.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&t.inputState.tabFocusMode!=0&&(t.inputState.tabFocusMode=Date.now()+2e3),!1);it.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")};it.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};dt.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let i=null;for(let n of t.state.facet(rd))if(i=n(t,e),i)break;if(!i&&e.button==0&&(i=k1(t,e)),i){let n=!t.hasFocus;t.inputState.startMouseSelection(new sa(t,e,i,n)),n&&t.observer.ignore(()=>{Nf(t.contentDOM);let s=t.root.activeElement;s&&!s.contains(t.contentDOM)&&s.blur()});let r=t.inputState.mouseSelection;if(r)return r.start(e),r.dragging===!1}else t.inputState.setSelectionOrigin("select.pointer");return!1};v1=A.ie&&A.ie_version<=11,bf=null,yf=0,xf=0;dt.dragstart=(t,e)=>{let{selection:{main:i}}=t.state;if(e.target.draggable){let r=t.docView.tile.nearest(e.target);if(r&&r.isWidget()){let s=r.posAtStart,o=s+r.length;(s>=i.to||o<=i.from)&&(i=y.range(s,o))}}let{inputState:n}=t;return n.mouseSelection&&(n.mouseSelection.dragging=!0),n.draggedContent=i,e.dataTransfer&&(e.dataTransfer.setData("Text",zs(t.state,Ma,t.state.sliceDoc(i.from,i.to))),e.dataTransfer.effectAllowed="copyMove"),!1};dt.dragend=t=>(t.inputState.draggedContent=null,!1);dt.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let i=e.dataTransfer.files;if(i&&i.length){let n=Array(i.length),r=0,s=()=>{++r==i.length&&Sf(t,e,n.filter(o=>o!=null).join(t.state.lineBreak),!1)};for(let o=0;o<i.length;o++){let l=new FileReader;l.onerror=s,l.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(n[o]=l.result),s()},l.readAsText(i[o])}return!0}else{let n=e.dataTransfer.getData("Text");if(n)return Sf(t,e,n,!0),!0}return!1};dt.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let i=kd?null:e.clipboardData;return i?($d(t,i.getData("text/plain")||i.getData("text/uri-list")),!0):(w1(t),!1)};oa=null;dt.copy=dt.cut=(t,e)=>{let i=ln(t.root);if(i&&!Hn(t.contentDOM,i))return!1;let{text:n,ranges:r,linewise:s}=T1(t.state);if(!n&&!s)return!1;oa=s?n:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let o=kd?null:e.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(P1(t,n),!1)};Td=Ze.define();it.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),Ad(t)};it.blur=t=>{t.observer.clearSelectionRange(),Ad(t)};it.compositionstart=it.compositionupdate=t=>{t.observer.editContext||(t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0))};it.compositionend=t=>{t.observer.editContext||(t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,A.chrome&&A.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50))};it.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};dt.beforeinput=(t,e)=>{var i,n;if((e.inputType=="insertText"||e.inputType=="insertCompositionText")&&(t.inputState.insertingText=e.data,t.inputState.insertingTextAt=Date.now()),e.inputType=="insertReplacementText"&&t.observer.editContext){let s=(i=e.dataTransfer)===null||i===void 0?void 0:i.getData("text/plain"),o=e.getTargetRanges();if(s&&o.length){let l=o[0],a=t.posAtDOM(l.startContainer,l.startOffset),c=t.posAtDOM(l.endContainer,l.endOffset);return La(t,{from:a,to:c,insert:t.state.toText(s)},null),!0}}let r;if(A.chrome&&A.android&&(r=wd.find(s=>s.inputType==e.inputType))&&(t.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){let s=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>s+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return A.ios&&e.inputType=="deleteContentForward"&&t.observer.flushSoon(),A.safari&&e.inputType=="insertText"&&t.inputState.composing>=0&&setTimeout(()=>it.compositionend(t,e),20),!1};Qf=new Set;wf=["pre-wrap","normal","pre-line","break-spaces"],fn=!1;la=class{constructor(e){this.lineWrapping=e,this.doc=q.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,i){let n=this.doc.lineAt(i).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((i-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return wf.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let i=!1;for(let n=0;n<e.length;n++){let r=e[n];r<0?n++:this.heightSamples[Math.floor(r*10)]||(i=!0,this.heightSamples[Math.floor(r*10)]=!0)}return i}refresh(e,i,n,r,s,o){let l=wf.indexOf(e)>-1,a=Math.abs(i-this.lineHeight)>.3||this.lineWrapping!=l||Math.abs(n-this.charWidth)>.1;if(this.lineWrapping=l,this.lineHeight=i,this.charWidth=n,this.textHeight=r,this.lineLength=s,a){this.heightSamples={};for(let c=0;c<o.length;c++){let h=o[c];h<0?c++:this.heightSamples[Math.floor(h*10)]=!0}}return a}},aa=class{constructor(e,i){this.from=e,this.heights=i,this.index=0}get more(){return this.index<this.heights.length}},ht=class t{constructor(e,i,n,r,s){this.from=e,this.length=i,this.top=n,this.height=r,this._content=s}get type(){return typeof this._content=="number"?ye.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof Ti?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let i=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new t(this.from,this.length+e.length,this.top,this.height+e.height,i)}},se=(function(t){return t[t.ByPos=0]="ByPos",t[t.ByHeight=1]="ByHeight",t[t.ByPosNoHeight=2]="ByPosNoHeight",t})(se||(se={})),fs=.001,Ve=class t{constructor(e,i,n=2){this.length=e,this.height=i,this.flags=n}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>fs&&(fn=!0),this.height=e)}replace(e,i,n){return t.of(n)}decomposeLeft(e,i){i.push(this)}decomposeRight(e,i){i.push(this)}applyChanges(e,i,n,r){let s=this,o=n.doc;for(let l=r.length-1;l>=0;l--){let{fromA:a,toA:c,fromB:h,toB:u}=r[l],f=s.lineAt(a,se.ByPosNoHeight,n.setDoc(i),0,0),d=f.to>=c?f:s.lineAt(c,se.ByPosNoHeight,n,0,0);for(u+=d.to-c,c=d.to;l>0&&f.from<=r[l-1].toA;)a=r[l-1].fromA,h=r[l-1].fromB,l--,a<f.from&&(f=s.lineAt(a,se.ByPosNoHeight,n,0,0));h+=f.from-a,a=f.from;let p=ha.build(n.setDoc(o),e,h,u);s=ks(s,s.replace(a,c,p))}return s.updateHeight(n,0)}static empty(){return new et(0,0,0)}static of(e){if(e.length==1)return e[0];let i=0,n=e.length,r=0,s=0;for(;;)if(i==n)if(r>s*2){let l=e[i-1];l.break?e.splice(--i,1,l.left,null,l.right):e.splice(--i,1,l.left,l.right),n+=1+l.break,r-=l.size}else if(s>r*2){let l=e[n];l.break?e.splice(n,1,l.left,null,l.right):e.splice(n,1,l.left,l.right),n+=2+l.break,s-=l.size}else break;else if(r<s){let l=e[i++];l&&(r+=l.size)}else{let l=e[--n];l&&(s+=l.size)}let o=0;return e[i-1]==null?(o=1,i--):e[i]==null&&(o=1,n++),new ca(t.of(e.slice(0,i)),o,t.of(e.slice(n)))}};Ve.prototype.size=1;A1=T.replace({}),$s=class extends Ve{constructor(e,i,n){super(e,i),this.deco=n,this.spaceAbove=0}mainBlock(e,i){return new ht(i,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.deco||0)}blockAt(e,i,n,r){return this.spaceAbove&&e<n+this.spaceAbove?new ht(r,0,n,this.spaceAbove,A1):this.mainBlock(n,r)}lineAt(e,i,n,r,s){let o=this.mainBlock(r,s);return this.spaceAbove?this.blockAt(0,n,r,s).join(o):o}forEachLine(e,i,n,r,s,o){e<=s+this.length&&i>=s&&o(this.lineAt(0,se.ByPos,n,r,s))}setMeasuredHeight(e){let i=e.heights[e.index++];i<0?(this.spaceAbove=-i,i=e.heights[e.index++]):this.spaceAbove=0,this.setHeight(i)}updateHeight(e,i=0,n=!1,r){return r&&r.from<=i&&r.more&&this.setMeasuredHeight(r),this.outdated=!1,this}toString(){return`block(${this.length})`}},et=class t extends $s{constructor(e,i,n){super(e,i,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=n}mainBlock(e,i){return new ht(i,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(e,i,n){let r=n[0];return n.length==1&&(r instanceof t||r instanceof Jt&&r.flags&4)&&Math.abs(this.length-r.length)<10?(r instanceof Jt?r=new t(r.length,this.height,this.spaceAbove):r.height=this.height,this.outdated||(r.outdated=!1),r):Ve.of(n)}updateHeight(e,i=0,n=!1,r){return r&&r.from<=i&&r.more?this.setMeasuredHeight(r):(n||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}},Jt=class t extends Ve{constructor(e){super(e,0)}heightMetrics(e,i){let n=e.doc.lineAt(i).number,r=e.doc.lineAt(i+this.length).number,s=r-n+1,o,l=0;if(e.lineWrapping){let a=Math.min(this.height,e.lineHeight*s);o=a/s,this.length>s+1&&(l=(this.height-a)/(this.length-s-1))}else o=this.height/s;return{firstLine:n,lastLine:r,perLine:o,perChar:l}}blockAt(e,i,n,r){let{firstLine:s,lastLine:o,perLine:l,perChar:a}=this.heightMetrics(i,r);if(i.lineWrapping){let c=r+(e<i.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length)),h=i.doc.lineAt(c),u=l+h.length*a,f=Math.max(n,e-u/2);return new ht(h.from,h.length,f,u,0)}else{let c=Math.max(0,Math.min(o-s,Math.floor((e-n)/l))),{from:h,length:u}=i.doc.line(s+c);return new ht(h,u,n+l*c,l,0)}}lineAt(e,i,n,r,s){if(i==se.ByHeight)return this.blockAt(e,n,r,s);if(i==se.ByPosNoHeight){let{from:d,to:p}=n.doc.lineAt(e);return new ht(d,p-d,0,0,0)}let{firstLine:o,perLine:l,perChar:a}=this.heightMetrics(n,s),c=n.doc.lineAt(e),h=l+c.length*a,u=c.number-o,f=r+l*u+a*(c.from-s-u);return new ht(c.from,c.length,Math.max(r,Math.min(f,r+this.height-h)),h,0)}forEachLine(e,i,n,r,s,o){e=Math.max(e,s),i=Math.min(i,s+this.length);let{firstLine:l,perLine:a,perChar:c}=this.heightMetrics(n,s);for(let h=e,u=r;h<=i;){let f=n.doc.lineAt(h);if(h==e){let p=f.number-l;u+=a*p+c*(e-s-p)}let d=a+c*f.length;o(new ht(f.from,f.length,u,d,0)),u+=d,h=f.to+1}}replace(e,i,n){let r=this.length-i;if(r>0){let s=n[n.length-1];s instanceof t?n[n.length-1]=new t(s.length+r):n.push(null,new t(r-1))}if(e>0){let s=n[0];s instanceof t?n[0]=new t(e+s.length):n.unshift(new t(e-1),null)}return Ve.of(n)}decomposeLeft(e,i){i.push(new t(e-1),null)}decomposeRight(e,i){i.push(null,new t(this.length-e-1))}updateHeight(e,i=0,n=!1,r){let s=i+this.length;if(r&&r.from<=i+this.length&&r.more){let o=[],l=Math.max(i,r.from),a=-1;for(r.from>i&&o.push(new t(r.from-i-1).updateHeight(e,i));l<=s&&r.more;){let h=e.doc.lineAt(l).length;o.length&&o.push(null);let u=r.heights[r.index++],f=0;u<0&&(f=-u,u=r.heights[r.index++]),a==-1?a=u:Math.abs(u-a)>=fs&&(a=-2);let d=new et(h,u,f);d.outdated=!1,o.push(d),l+=h+1}l<=s&&o.push(null,new t(s-l).updateHeight(e,l));let c=Ve.of(o);return(a<0||Math.abs(c.height-this.height)>=fs||Math.abs(a-this.heightMetrics(e,i).perLine)>=fs)&&(fn=!0),ks(this,c)}else(n||this.outdated)&&(this.setHeight(e.heightForGap(i,i+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}},ca=class extends Ve{constructor(e,i,n){super(e.length+i+n.length,e.height+n.height,i|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return this.flags&1}blockAt(e,i,n,r){let s=n+this.left.height;return e<s?this.left.blockAt(e,i,n,r):this.right.blockAt(e,i,s,r+this.left.length+this.break)}lineAt(e,i,n,r,s){let o=r+this.left.height,l=s+this.left.length+this.break,a=i==se.ByHeight?e<o:e<l,c=a?this.left.lineAt(e,i,n,r,s):this.right.lineAt(e,i,n,o,l);if(this.break||(a?c.to<l:c.from>l))return c;let h=i==se.ByPosNoHeight?se.ByPosNoHeight:se.ByPos;return a?c.join(this.right.lineAt(l,h,n,o,l)):this.left.lineAt(l,h,n,r,s).join(c)}forEachLine(e,i,n,r,s,o){let l=r+this.left.height,a=s+this.left.length+this.break;if(this.break)e<a&&this.left.forEachLine(e,i,n,r,s,o),i>=a&&this.right.forEachLine(e,i,n,l,a,o);else{let c=this.lineAt(a,se.ByPos,n,r,s);e<c.from&&this.left.forEachLine(e,c.from-1,n,r,s,o),c.to>=e&&c.from<=i&&o(c),i>c.to&&this.right.forEachLine(c.to+1,i,n,l,a,o)}}replace(e,i,n){let r=this.left.length+this.break;if(i<r)return this.balanced(this.left.replace(e,i,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-r,i-r,n));let s=[];e>0&&this.decomposeLeft(e,s);let o=s.length;for(let l of n)s.push(l);if(e>0&&kf(s,o-1),i<this.length){let l=s.length;this.decomposeRight(i,s),kf(s,l)}return Ve.of(s)}decomposeLeft(e,i){let n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,i);i.push(this.left),this.break&&(n++,e>=n&&i.push(null)),e>n&&this.right.decomposeLeft(e-n,i)}decomposeRight(e,i){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,i);e<n&&this.left.decomposeRight(e,i),this.break&&e<r&&i.push(null),i.push(this.right)}balanced(e,i){return e.size>2*i.size||i.size>2*e.size?Ve.of(this.break?[e,null,i]:[e,i]):(this.left=ks(this.left,e),this.right=ks(this.right,i),this.setHeight(e.height+i.height),this.outdated=e.outdated||i.outdated,this.size=e.size+i.size,this.length=e.length+this.break+i.length,this)}updateHeight(e,i=0,n=!1,r){let{left:s,right:o}=this,l=i+s.length+this.break,a=null;return r&&r.from<=i+s.length&&r.more?a=s=s.updateHeight(e,i,n,r):s.updateHeight(e,i,n),r&&r.from<=l+o.length&&r.more?a=o=o.updateHeight(e,l,n,r):o.updateHeight(e,l,n),a?this.balanced(s,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}};Z1=5,ha=class t{constructor(e,i){this.pos=e,this.oracle=i,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,i){if(this.lineStart>-1){let n=Math.min(i,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof et?r.length+=n-this.pos:(n>this.pos||!this.isCovered)&&this.nodes.push(new et(n-this.pos,-1,0)),this.writtenTo=n,i>n&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=i}point(e,i,n){if(e<i||n.heightRelevant){let r=n.widget?n.widget.estimatedHeight:0,s=n.widget?n.widget.lineBreaks:0;r<0&&(r=this.oracle.lineHeight);let o=i-e;n.block?this.addBlock(new $s(o,r,n)):(o||s||r>=Z1)&&this.addLineDeco(r,s,o)}else i>e&&this.span(e,i);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:i}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=i,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new et(this.pos-e,-1,0)),this.writtenTo=this.pos}blankContent(e,i){let n=new Jt(i-e);return this.oracle.doc.lineAt(e).to==i&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof et)return e;let i=new et(0,-1,0);return this.nodes.push(i),i}addBlock(e){this.enterLine();let i=e.deco;i&&i.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,i&&i.endSide>0&&(this.covering=e)}addLineDeco(e,i,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=i,this.writtenTo=this.pos=this.pos+n}finish(e){let i=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(i instanceof et)&&!this.isCovered?this.nodes.push(new et(0,-1,0)):(this.writtenTo<this.pos||i==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let n=e;for(let r of this.nodes)r instanceof et&&r.updateHeight(this.oracle,n),n+=r?r.length:1;return this.nodes}static build(e,i,n,r){let s=new t(n,e);return V.spans(i,n,r,s,0),s.finish(n)}};ua=class{constructor(){this.changes=[]}compareRange(){}comparePoint(e,i,n,r){(e<i||n&&n.heightRelevant||r&&r.heightRelevant)&&sn(e,i,this.changes,5)}};nr=class{constructor(e,i,n,r){this.from=e,this.to=i,this.size=n,this.displaySize=r}static same(e,i){if(e.length!=i.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],s=i[n];if(r.from!=s.from||r.to!=s.to||r.size!=s.size)return!1}return!0}draw(e,i){return T.replace({widget:new fa(this.displaySize*(i?e.scaleY:e.scaleX),i)}).range(this.from,this.to)}},fa=class extends xe{constructor(e,i){super(),this.size=e,this.vertical=i}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}},Ps=class{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=$f,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=G.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let i=e.facet(Ea).some(n=>typeof n!="function"&&n.class=="cm-lineWrapping");this.heightOracle=new la(i),this.stateDeco=Pf(e),this.heightMap=Ve.empty().applyChanges(this.stateDeco,q.empty,this.heightOracle.setDoc(e.doc),[new ft(0,0,0,e.doc.length)]);for(let n=0;n<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());n++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=T.set(this.lineGaps.map(n=>n.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:i}=this.state.selection;for(let n=0;n<=1;n++){let r=n?i.head:i.anchor;if(!e.some(({from:s,to:o})=>r>=s&&r<=o)){let{from:s,to:o}=this.lineBlockAt(r);e.push(new tn(s,o))}}return this.viewports=e.sort((n,r)=>n.from-r.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?$f:new da(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(Gn(e,this.scaler))})}update(e,i=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=Pf(this.state);let r=e.changedRanges,s=ft.extendWithRanges(r,R1(n,this.stateDeco,e?e.changes:Pe.empty(this.state.doc.length))),o=this.heightMap.height,l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);vf(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),(this.heightMap.height!=o||fn)&&(e.flags|=2),l?(this.scrollAnchorPos=e.changes.mapPos(l.from,-1),this.scrollAnchorHeight=l.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=o);let a=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(i&&(i.range.head<a.from||i.range.head>a.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,i));let c=a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,e.flags|=this.updateForViewport(),(c||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),i&&(this.scrollTarget=i),!this.mustEnforceCursorAssoc&&(e.selectionSet||e.focusChanged)&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(cd)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let i=e.contentDOM,n=window.getComputedStyle(i),r=this.heightOracle,s=n.whiteSpace;this.defaultTextDirection=n.direction=="rtl"?G.RTL:G.LTR;let o=this.heightOracle.mustRefreshForWrapping(s)||this.mustMeasureContent,l=i.getBoundingClientRect(),a=o||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height,this.mustMeasureContent=!1;let c=0,h=0;if(l.width&&l.height){let{scaleX:C,scaleY:Q}=If(i,l);(C>.005&&Math.abs(this.scaleX-C)>.005||Q>.005&&Math.abs(this.scaleY-Q)>.005)&&(this.scaleX=C,this.scaleY=Q,c|=16,o=a=!0)}let u=(parseInt(n.paddingTop)||0)*this.scaleY,f=(parseInt(n.paddingBottom)||0)*this.scaleY;(this.paddingTop!=u||this.paddingBottom!=f)&&(this.paddingTop=u,this.paddingBottom=f,c|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(a=!0),this.editorWidth=e.scrollDOM.clientWidth,c|=16);let d=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=d&&(this.scrollAnchorHeight=-1,this.scrollTop=d),this.scrolledToBottom=Ff(e.scrollDOM);let p=(this.printing?E1:X1)(i,this.paddingTop),O=p.top-this.pixelViewport.top,g=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let b=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(b!=this.inView&&(this.inView=b,b&&(a=!0)),!this.inView&&!this.scrollTarget&&!M1(e.dom))return 0;let x=l.width;if((this.contentDOMWidth!=x||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=l.width,this.editorHeight=e.scrollDOM.clientHeight,c|=16),a){let C=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(C)&&(o=!0),o||r.lineWrapping&&Math.abs(x-this.contentDOMWidth)>r.charWidth){let{lineHeight:Q,charWidth:$,textHeight:v}=e.docView.measureTextSize();o=Q>0&&r.refresh(s,Q,$,v,Math.max(5,x/$),C),o&&(e.docView.minWidth=0,c|=16)}O>0&&g>0?h=Math.max(O,g):O<0&&g<0&&(h=Math.min(O,g)),vf();for(let Q of this.viewports){let $=Q.from==this.viewport.from?C:e.docView.measureVisibleLineHeights(Q);this.heightMap=(o?Ve.empty().applyChanges(this.stateDeco,q.empty,this.heightOracle,[new ft(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,o,new aa(Q.from,$))}fn&&(c|=2)}let S=!this.viewportIsAppropriate(this.viewport,h)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return S&&(c&2&&(c|=this.updateScaler()),this.viewport=this.getViewport(h,this.scrollTarget),c|=this.updateForViewport()),(c&2||S)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,i){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,s=this.heightOracle,{visibleTop:o,visibleBottom:l}=this,a=new tn(r.lineAt(o-n*1e3,se.ByHeight,s,0,0).from,r.lineAt(l+(1-n)*1e3,se.ByHeight,s,0,0).to);if(i){let{head:c}=i.range;if(c<a.from||c>a.to){let h=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),u=r.lineAt(c,se.ByPos,s,0,0),f;i.y=="center"?f=(u.top+u.bottom)/2-h/2:i.y=="start"||i.y=="nearest"&&c<a.from?f=u.top:f=u.bottom-h,a=new tn(r.lineAt(f-1e3/2,se.ByHeight,s,0,0).from,r.lineAt(f+h+1e3/2,se.ByHeight,s,0,0).to)}}return a}mapViewport(e,i){let n=i.mapPos(e.from,-1),r=i.mapPos(e.to,1);return new tn(this.heightMap.lineAt(n,se.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(r,se.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:i},n=0){if(!this.inView)return!0;let{top:r}=this.heightMap.lineAt(e,se.ByPos,this.heightOracle,0,0),{bottom:s}=this.heightMap.lineAt(i,se.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:l}=this;return(e==0||r<=o-Math.max(10,Math.min(-n,250)))&&(i==this.state.doc.length||s>=l+Math.max(10,Math.min(n,250)))&&r>o-2*1e3&&s<l+2*1e3}mapLineGaps(e,i){if(!e.length||i.empty)return e;let n=[];for(let r of e)i.touchesRange(r.from,r.to)||n.push(new nr(i.mapPos(r.from),i.mapPos(r.to),r.size,r.displaySize));return n}ensureLineGaps(e,i){let n=this.heightOracle.lineWrapping,r=n?1e4:2e3,s=r>>1,o=r<<1;if(this.defaultTextDirection!=G.LTR&&!n)return[];let l=[],a=(h,u,f,d)=>{if(u-h<s)return;let p=this.state.selection.main,O=[p.from];p.empty||O.push(p.to);for(let b of O)if(b>h&&b<u){a(h,b-10,f,d),a(b+10,u,f,d);return}let g=D1(e,b=>b.from>=f.from&&b.to<=f.to&&Math.abs(b.from-h)<s&&Math.abs(b.to-u)<s&&!O.some(x=>b.from<x&&b.to>x));if(!g){if(u<f.to&&i&&n&&i.visibleRanges.some(S=>S.from<=u&&S.to>=u)){let S=i.moveToLineBoundary(y.cursor(u),!1,!0).head;S>h&&(u=S)}let b=this.gapSize(f,h,u,d),x=n||b<2e6?b:2e6;g=new nr(h,u,b,x)}l.push(g)},c=h=>{if(h.length<o||h.type!=ye.Text)return;let u=z1(h.from,h.to,this.stateDeco);if(u.total<o)return;let f=this.scrollTarget?this.scrollTarget.range.head:null,d,p;if(n){let O=r/this.heightOracle.lineLength*this.heightOracle.lineHeight,g,b;if(f!=null){let x=os(u,f),S=((this.visibleBottom-this.visibleTop)/2+O)/h.height;g=x-S,b=x+S}else g=(this.visibleTop-h.top-O)/h.height,b=(this.visibleBottom-h.top+O)/h.height;d=ss(u,g),p=ss(u,b)}else{let O=u.total*this.heightOracle.charWidth,g=r*this.heightOracle.charWidth,b=0;if(O>2e6)for(let $ of e)$.from>=h.from&&$.from<h.to&&$.size!=$.displaySize&&$.from*this.heightOracle.charWidth+b<this.pixelViewport.left&&(b=$.size-$.displaySize);let x=this.pixelViewport.left+b,S=this.pixelViewport.right+b,C,Q;if(f!=null){let $=os(u,f),v=((S-x)/2+g)/O;C=$-v,Q=$+v}else C=(x-g)/O,Q=(S+g)/O;d=ss(u,C),p=ss(u,Q)}d>h.from&&a(h.from,d,h,u),p<h.to&&a(p,h.to,h,u)};for(let h of this.viewportLines)Array.isArray(h.type)?h.type.forEach(c):c(h);return l}gapSize(e,i,n,r){let s=os(r,n)-os(r,i);return this.heightOracle.lineWrapping?e.height*s:r.total*this.heightOracle.charWidth*s}updateLineGaps(e){nr.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=T.set(e.map(i=>i.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let i=this.stateDeco;this.lineGaps.length&&(i=i.concat(this.lineGapDeco));let n=[];V.spans(i,this.viewport.from,this.viewport.to,{span(s,o){n.push({from:s,to:o})},point(){}},20);let r=0;if(n.length!=this.visibleRanges.length)r=12;else for(let s=0;s<n.length&&!(r&8);s++){let o=this.visibleRanges[s],l=n[s];(o.from!=l.from||o.to!=l.to)&&(r|=4,e&&e.mapPos(o.from,-1)==l.from&&e.mapPos(o.to,1)==l.to||(r|=8))}return this.visibleRanges=n,r}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(i=>i.from<=e&&i.to>=e)||Gn(this.heightMap.lineAt(e,se.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(i=>i.top<=e&&i.bottom>=e)||Gn(this.heightMap.lineAt(this.scaler.fromDOM(e),se.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let i=this.lineBlockAtHeight(e+8);return i.from>=this.viewport.from||this.viewportLines[0].top-e>200?i:this.viewportLines[0]}elementAtHeight(e){return Gn(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}},tn=class{constructor(e,i){this.from=e,this.to=i}};$f={toDOM(t){return t},fromDOM(t){return t},scale:1,eq(t){return t==this}};da=class t{constructor(e,i,n){let r=0,s=0,o=0;this.viewports=n.map(({from:l,to:a})=>{let c=i.lineAt(l,se.ByPos,e,0,0).top,h=i.lineAt(a,se.ByPos,e,0,0).bottom;return r+=h-c,{from:l,to:a,top:c,bottom:h,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(i.height-r);for(let l of this.viewports)l.domTop=o+(l.top-s)*this.scale,o=l.domBottom=l.domTop+(l.bottom-l.top),s=l.bottom}toDOM(e){for(let i=0,n=0,r=0;;i++){let s=i<this.viewports.length?this.viewports[i]:null;if(!s||e<s.top)return r+(e-n)*this.scale;if(e<=s.bottom)return s.domTop+(e-s.top);n=s.bottom,r=s.domBottom}}fromDOM(e){for(let i=0,n=0,r=0;;i++){let s=i<this.viewports.length?this.viewports[i]:null;if(!s||e<s.domTop)return n+(e-r)/this.scale;if(e<=s.domBottom)return s.top+(e-s.domTop);n=s.bottom,r=s.domBottom}}eq(e){return e instanceof t?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((i,n)=>i.from==e.viewports[n].from&&i.to==e.viewports[n].to):!1}};ls=k.define({combine:t=>t.join(" ")}),pa=k.define({combine:t=>t.indexOf(!0)>-1}),Oa=Je.newName(),Zd=Je.newName(),Rd=Je.newName(),Xd={"&light":"."+Zd,"&dark":"."+Rd};L1=ma("."+Oa,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Xd),q1={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Zl=A.ie&&A.ie_version<=11,ga=class{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new _l,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(i=>{for(let n of i)this.queue.push(n);(A.ie&&A.ie_version<=11||A.ios&&e.composing)&&i.some(n=>n.type=="childList"&&n.removedNodes.length||n.type=="characterData"&&n.oldValue.length>n.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&A.android&&e.constructor.EDIT_CONTEXT!==!1&&!(A.chrome&&A.chrome_version<126)&&(this.editContext=new ba(e),e.state.facet(Lt)&&(e.contentDOM.editContext=this.editContext.editContext)),Zl&&(this.onCharData=i=>{this.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var i;((i=this.view.docView)===null||i===void 0?void 0:i.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(i=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),i.length>0&&i[i.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(i=>{i.length>0&&i[i.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((i,n)=>i!=e[n]))){this.gapIntersection.disconnect();for(let i of e)this.gapIntersection.observe(i);this.gaps=e}}onSelectionChange(e){let i=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(Lt)?n.root.activeElement!=this.dom:!Hn(this.dom,r))return;let s=r.anchorNode&&n.docView.tile.nearest(r.anchorNode);if(s&&s.isWidget()&&s.widget.ignoreEvent(e)){i||(this.selectionChanged=!1);return}(A.ie&&A.ie_version<=11||A.android&&A.chrome)&&!n.state.selection.main.empty&&r.focusNode&&Kn(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,i=ln(e.root);if(!i)return!1;let n=A.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&V1(this.view,i)||i;if(!n||this.selectionRange.eq(n))return!1;let r=Hn(this.dom,n);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&Ey(this.dom,n)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(n),r&&(this.selectionChanged=!0),!0)}setSelectionRange(e,i){this.selectionRange.set(e.node,e.offset,i.node,i.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,i=null;for(let n=this.dom;n;)if(n.nodeType==1)!i&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:i||(i=this.scrollTargets.slice(0,e)),i&&i.push(n),n=n.assignedSlot||n.parentNode;else if(n.nodeType==11)n=n.host;else break;if(e<this.scrollTargets.length&&!i&&(i=this.scrollTargets.slice(0,e)),i){for(let n of this.scrollTargets)n.removeEventListener("scroll",this.onScroll);for(let n of this.scrollTargets=i)n.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,q1),Zl&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),Zl&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,i){var n;if(!this.delayedAndroidKey){let r=()=>{let s=this.delayedAndroidKey;s&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=s.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&s.force&&on(this.dom,s.key,s.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(r)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:i,force:this.lastChange<Date.now()-50||!!(!((n=this.delayedAndroidKey)===null||n===void 0)&&n.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let i=-1,n=-1,r=!1;for(let s of e){let o=this.readMutation(s);o&&(o.typeOver&&(r=!0),i==-1?{from:i,to:n}=o:(i=Math.min(o.from,i),n=Math.max(o.to,n)))}return{from:i,to:n,typeOver:r}}readChange(){let{from:e,to:i,typeOver:n}=this.processRecords(),r=this.selectionChanged&&Hn(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let s=new na(this.view,e,i,n);return this.view.docView.domChanged={newSel:s.newSel?s.newSel.main:null},s}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let i=this.readChange();if(!i)return this.view.requestMeasure(),!1;let n=this.view.state,r=Sd(this.view,i);return this.view.state==n&&(i.domChanged||i.newSel&&!vs(this.view.state.selection,i.newSel.main))&&this.view.update([]),r}readMutation(e){let i=this.view.docView.tile.nearest(e.target);if(!i||i.isWidget())return null;if(i.markDirty(e.type=="attributes"),e.type=="childList"){let n=Tf(i,e.previousSibling||e.target.previousSibling,-1),r=Tf(i,e.nextSibling||e.target.nextSibling,1);return{from:n?i.posAfter(n):i.posAtStart,to:r?i.posBefore(r):i.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:i.posAtStart,to:i.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(Lt)!=e.state.facet(Lt)&&(e.view.contentDOM.editContext=e.state.facet(Lt)?this.editContext.editContext:null))}destroy(){var e,i,n;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(i=this.gapIntersection)===null||i===void 0||i.disconnect(),(n=this.resizeScroll)===null||n===void 0||n.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}};ba=class{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let i=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=n=>{let r=e.state.selection.main,{anchor:s,head:o}=r,l=this.toEditorPos(n.updateRangeStart),a=this.toEditorPos(n.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:n.updateRangeStart,editorBase:l,drifted:!1});let c=a-l>n.text.length;l==this.from&&s<this.from?l=s:a==this.to&&s>this.to&&(a=s);let h=Qd(e.state.sliceDoc(l,a),n.text,(c?r.from:r.to)-l,c?"end":null);if(!h){let f=y.single(this.toEditorPos(n.selectionStart),this.toEditorPos(n.selectionEnd));vs(f,r)||e.dispatch({selection:f,userEvent:"select"});return}let u={from:h.from+l,to:h.toA+l,insert:q.of(n.text.slice(h.from,h.toB).split(`
|
||
`))};if((A.mac||A.android)&&u.from==o-1&&/^\. ?$/.test(n.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(u={from:l,to:a,insert:q.of([n.text.replace("."," ")])}),this.pendingContextChange=u,!e.state.readOnly){let f=this.to-this.from+(u.to-u.from+u.insert.length);La(e,u,y.single(this.toEditorPos(n.selectionStart,f),this.toEditorPos(n.selectionEnd,f)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),u.from<u.to&&!u.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(i.text.slice(Math.max(0,n.updateRangeStart-1),Math.min(i.text.length,n.updateRangeStart+1)))&&this.handlers.compositionend(n)},this.handlers.characterboundsupdate=n=>{let r=[],s=null;for(let o=this.toEditorPos(n.rangeStart),l=this.toEditorPos(n.rangeEnd);o<l;o++){let a=e.coordsForChar(o);s=a&&new DOMRect(a.left,a.top,a.right-a.left,a.bottom-a.top)||s||new DOMRect,r.push(s)}i.updateCharacterBounds(n.rangeStart,r)},this.handlers.textformatupdate=n=>{let r=[];for(let s of n.getTextFormats()){let o=s.underlineStyle,l=s.underlineThickness;if(!/none/i.test(o)&&!/none/i.test(l)){let a=this.toEditorPos(s.rangeStart),c=this.toEditorPos(s.rangeEnd);if(a<c){let h=`text-decoration: underline ${/^[a-z]/.test(o)?o+" ":o=="Dashed"?"dashed ":o=="Squiggle"?"wavy ":""}${/thin/i.test(l)?1:2}px`;r.push(T.mark({attributes:{style:h}}).range(a,c))}}}e.dispatch({effects:ud.of(T.set(r))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:n}=this.composing;this.composing=null,n&&this.reset(e.state)}};for(let n in this.handlers)i.addEventListener(n,this.handlers[n]);this.measureReq={read:n=>{this.editContext.updateControlBounds(n.contentDOM.getBoundingClientRect());let r=ln(n.root);r&&r.rangeCount&&this.editContext.updateSelectionBounds(r.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let i=0,n=!1,r=this.pendingContextChange;return e.changes.iterChanges((s,o,l,a,c)=>{if(n)return;let h=c.length-(o-s);if(r&&o>=r.to)if(r.from==s&&r.to==o&&r.insert.eq(c)){r=this.pendingContextChange=null,i+=h,this.to+=h;return}else r=null,this.revertPending(e.state);if(s+=i,o+=i,o<=this.from)this.from+=h,this.to+=h;else if(s<this.to){if(s<this.from||o>this.to||this.to-this.from+c.length>3e4){n=!0;return}this.editContext.updateText(this.toContextPos(s),this.toContextPos(o),c.toString()),this.to+=h}i+=h}),r&&!n&&this.revertPending(e.state),!n}update(e){let i=this.pendingContextChange,n=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(n.from,n.to)&&e.transactions.some(r=>!r.isUserEvent("input.type")&&r.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||i)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:i}=e.selection.main;this.from=Math.max(0,i-1e4),this.to=Math.min(e.doc.length,i+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let i=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(i.from),this.toContextPos(i.from+i.insert.length),e.doc.sliceString(i.from,i.to))}setSelection(e){let{main:i}=e.selection,n=this.toContextPos(Math.max(this.from,Math.min(this.to,i.anchor))),r=this.toContextPos(i.head);(this.editContext.selectionStart!=n||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(n,r)}rangeIsValid(e){let{head:i}=e.selection.main;return!(this.from>0&&i-this.from<500||this.to<e.doc.length&&this.to-i<500||this.to-this.from>1e4*3)}toEditorPos(e,i=this.to-this.from){e=Math.min(e,i);let n=this.composing;return n&&n.drifted?n.editorBase+(e-n.contextBase):e+this.from}toContextPos(e){let i=this.composing;return i&&i.drifted?i.contextBase+(e-i.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}},w=class t{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var i;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:n}=e;this.dispatchTransactions=e.dispatchTransactions||n&&(r=>r.forEach(s=>n(s,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=e.root||My(e.parent)||document,this.viewState=new Ps(e.state||I.create(e)),e.scrollTo&&e.scrollTo.is(is)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(en).map(r=>new er(r));for(let r of this.plugins)r.update(this);this.observer=new ga(this),this.inputState=new ra(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Qs(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((i=document.fonts)===null||i===void 0)&&i.ready&&document.fonts.ready.then(()=>{this.viewState.mustMeasureContent=!0,this.requestMeasure()})}dispatch(...e){let i=e.length==1&&e[0]instanceof ce?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(i,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let i=!1,n=!1,r,s=this.state;for(let f of e){if(f.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=f.state}if(this.destroyed){this.viewState.state=s;return}let o=this.hasFocus,l=0,a=null;e.some(f=>f.annotation(Td))?(this.inputState.notifiedFocused=o,l=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,a=Cd(s,o),a||(l=1));let c=this.observer.delayedAndroidKey,h=null;if(c?(this.observer.clearDelayedAndroidKey(),h=this.observer.readChange(),(h&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(h=null)):this.observer.clear(),s.facet(I.phrases)!=this.state.facet(I.phrases))return this.setState(s);r=xs.create(this,s,e),r.flags|=l;let u=this.viewState.scrollTarget;try{this.updateState=2;for(let f of e){if(u&&(u=u.map(f.changes)),f.scrollIntoView){let{main:d}=f.state.selection;u=new Jn(d.empty?d:y.cursor(d.head,d.head>d.anchor?-1:1))}for(let d of f.effects)d.is(is)&&(u=d.value.clip(this.state))}this.viewState.update(r,u),this.bidiCache=Ts.update(this.bidiCache,r.changes),r.empty||(this.updatePlugins(r),this.inputState.update(r)),i=this.docView.update(r),this.state.facet(Nn)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(i,e.some(f=>f.isUserEvent("select.pointer")))}finally{this.updateState=0}if(r.startState.facet(ls)!=r.state.facet(ls)&&(this.viewState.mustMeasureContent=!0),(i||n||u||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),i&&this.docViewUpdate(),!r.empty)for(let f of this.state.facet(jl))try{f(r)}catch(d){de(this.state,d,"update listener")}(a||h)&&Promise.resolve().then(()=>{a&&this.state==a.startState&&this.dispatch(a),h&&!Sd(this,h)&&c.force&&on(this.contentDOM,c.key,c.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let i=this.hasFocus;try{for(let n of this.plugins)n.destroy(this);this.viewState=new Ps(e),this.plugins=e.facet(en).map(n=>new er(n)),this.pluginMap.clear();for(let n of this.plugins)n.update(this);this.docView.destroy(),this.docView=new Qs(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}i&&this.focus(),this.requestMeasure()}updatePlugins(e){let i=e.startState.facet(en),n=e.state.facet(en);if(i!=n){let r=[];for(let s of n){let o=i.indexOf(s);if(o<0)r.push(new er(s));else{let l=this.plugins[o];l.mustUpdate=e,r.push(l)}}for(let s of this.plugins)s.mustUpdate!=e&&s.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let r of this.plugins)r.mustUpdate=e;for(let r=0;r<this.plugins.length;r++)this.plugins[r].update(this);i!=n&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let i=e.value;if(i&&i.docViewUpdate)try{i.docViewUpdate(this)}catch(n){de(this.state,n,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let i=null,n=this.scrollDOM,r=n.scrollTop*this.scaleY,{scrollAnchorPos:s,scrollAnchorHeight:o}=this.viewState;Math.abs(r-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(o<0)if(Ff(n))s=-1,o=this.viewState.heightMap.height;else{let d=this.viewState.scrollAnchorAt(r);s=d.from,o=d.top}this.updateState=1;let a=this.viewState.measure(this);if(!a&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];a&4||([this.measureRequests,c]=[c,this.measureRequests]);let h=c.map(d=>{try{return d.read(this)}catch(p){return de(this.state,p),Af}}),u=xs.create(this,this.state,[]),f=!1;u.flags|=a,i?i.flags|=a:i=u,this.updateState=2,u.empty||(this.updatePlugins(u),this.inputState.update(u),this.updateAttrs(),f=this.docView.update(u),f&&this.docViewUpdate());for(let d=0;d<c.length;d++)if(h[d]!=Af)try{let p=c[d];p.write&&p.write(h[d],this)}catch(p){de(this.state,p)}if(f&&this.docView.updateSelection(!0),!u.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,o=-1;continue}else{let p=(s<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(s).top)-o;if(p>1||p<-1){r=r+p,n.scrollTop=r/this.scaleY,o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(i&&!i.empty)for(let l of this.state.facet(jl))l(i)}get themeClasses(){return Oa+" "+(this.state.facet(pa)?Rd:Zd)+" "+this.state.facet(ls)}updateAttrs(){let e=Zf(this,fd,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),i={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(Lt)?"true":"false",class:"cm-content",style:`${A.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(i["aria-readonly"]="true"),Zf(this,Ea,i);let n=this.observer.ignore(()=>{let r=af(this.contentDOM,this.contentAttrs,i),s=af(this.dom,this.editorAttrs,e);return r||s});return this.editorAttrs=e,this.contentAttrs=i,n}showAnnouncements(e){let i=!0;for(let n of e)for(let r of n.effects)if(r.is(t.announce)){i&&(this.announceDOM.textContent=""),i=!1;let s=this.announceDOM.appendChild(document.createElement("div"));s.textContent=r.value}}mountStyles(){this.styleModules=this.state.facet(Nn);let e=this.state.facet(t.cspNonce);Je.mount(this.root,this.styleModules.concat(L1).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let i=0;i<this.measureRequests.length;i++)if(this.measureRequests[i].key===e.key){this.measureRequests[i]=e;return}}this.measureRequests.push(e)}}plugin(e){let i=this.pluginMap.get(e);return(i===void 0||i&&i.plugin!=e)&&this.pluginMap.set(e,i=this.plugins.find(n=>n.plugin==e)||null),i&&i.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,i,n){return Al(this,e,pf(this,e,i,n))}moveByGroup(e,i){return Al(this,e,pf(this,e,i,n=>c1(this,e.head,n)))}visualLineSide(e,i){let n=this.bidiSpans(e),r=this.textDirectionAt(e.from),s=n[i?n.length-1:0];return y.cursor(s.side(i,r)+e.from,s.forward(!i,r)?1:-1)}moveToLineBoundary(e,i,n=!0){return a1(this,e,i,n)}moveVertically(e,i,n){return Al(this,e,h1(this,e,i,n))}domAtPos(e,i=1){return this.docView.domAtPos(e,i)}posAtDOM(e,i=0){return this.docView.posFromDOM(e,i)}posAtCoords(e,i=!0){this.readMeasured();let n=ta(this,e,i);return n&&n.pos}posAndSideAtCoords(e,i=!0){return this.readMeasured(),ta(this,e,i)}coordsAtPos(e,i=1){this.readMeasured();let n=this.docView.coordsAt(e,i);if(!n||n.left==n.right)return n;let r=this.state.doc.lineAt(e),s=this.bidiSpans(r),o=s[ut.find(s,e-r.from,-1,i)];return ys(n,o.dir==G.LTR==i>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(ad)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>_1)return ed(e.length);let i=this.textDirectionAt(e.from),n;for(let s of this.bidiCache)if(s.from==e.from&&s.dir==i&&(s.fresh||Jf(s.isolates,n=uf(this,e))))return s.order;n||(n=uf(this,e));let r=By(e.text,i,n);return this.bidiCache.push(new Ts(e.from,e.to,i,n,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||A.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{Nf(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,i={}){return is.of(new Jn(typeof e=="number"?y.cursor(e):e,i.y,i.x,i.yMargin,i.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:i}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return is.of(new Jn(y.cursor(n.from),"start","start",n.top-e,i,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return J.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return J.define(()=>({}),{eventObservers:e})}static theme(e,i){let n=Je.newName(),r=[ls.of(n),Nn.of(ma(`.${n}`,e))];return i&&i.dark&&r.push(pa.of(!0)),r}static baseTheme(e){return He.lowest(Nn.of(ma("."+Oa,e,Xd)))}static findFromDOM(e){var i;let n=e.querySelector(".cm-content"),r=n&&ae.get(n)||ae.get(e);return((i=r?.root)===null||i===void 0?void 0:i.view)||null}};w.styleModule=Nn;w.inputHandler=od;w.clipboardInputFilter=Xa;w.clipboardOutputFilter=Ma;w.scrollHandler=hd;w.focusChangeEffect=ld;w.perLineTextDirection=ad;w.exceptionSink=sd;w.updateListener=jl;w.editable=Lt;w.mouseSelectionStyle=rd;w.dragMovesSelection=nd;w.clickAddsSelectionRange=id;w.decorations=Es;w.blockWrappers=dd;w.outerDecorations=za;w.atomicRanges=ur;w.bidiIsolatedRanges=pd;w.scrollMargins=Od;w.darkTheme=pa;w.cspNonce=k.define({combine:t=>t.length?t[0]:""});w.contentAttributes=Ea;w.editorAttributes=fd;w.lineWrapping=w.contentAttributes.of({class:"cm-lineWrapping"});w.announce=R.define();_1=4096,Af={},Ts=class t{constructor(e,i,n,r,s,o){this.from=e,this.to=i,this.dir=n,this.isolates=r,this.fresh=s,this.order=o}static update(e,i){if(i.empty&&!e.some(s=>s.fresh))return e;let n=[],r=e.length?e[e.length-1].dir:G.LTR;for(let s=Math.max(0,e.length-10);s<e.length;s++){let o=e[s];o.dir==r&&!i.touchesRange(o.from,o.to)&&n.push(new t(i.mapPos(o.from,1),i.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return n}};B1=A.mac?"mac":A.windows?"win":A.linux?"linux":"key";W1=He.default(w.domEventHandlers({keydown(t,e){return zd(Md(e.state),t,e,"editor")}})),$t=k.define({enables:W1}),Rf=new WeakMap;Ht=null,j1=4e3;ya=null;cr=class t{constructor(e,i,n,r,s){this.className=e,this.left=i,this.top=n,this.width=r,this.height=s}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,i){return i.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,i,n){if(n.empty){let r=e.coordsAtPos(n.head,n.assoc||1);if(!r)return[];let s=Dd(e);return[new t(i,r.left-s.left,r.top-s.top,null,r.bottom-r.top)]}else return N1(e,i,n)}};xa=class{constructor(e,i){this.view=e,this.layer=i,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),i.above&&this.dom.classList.add("cm-layer-above"),i.class&&this.dom.classList.add(i.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),i.mount&&i.mount(this.dom,e)}update(e){e.startState.facet(ds)!=e.state.facet(ds)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let i=0,n=e.facet(ds);for(;i<n.length&&n[i]!=this.layer;)i++;this.dom.style.zIndex=String((this.layer.above?150:-1)-i)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:i}=this.view;(e!=this.scaleX||i!=this.scaleY)&&(this.scaleX=e,this.scaleY=i,this.dom.style.transform=`scale(${1/e}, ${1/i})`)}draw(e){if(e.length!=this.drawn.length||e.some((i,n)=>!F1(i,this.drawn[n]))){let i=this.dom.firstChild,n=0;for(let r of e)r.update&&i&&r.constructor&&this.drawn[n].constructor&&r.update(i,this.drawn[n])?(i=i.nextSibling,n++):this.dom.insertBefore(r.draw(),i);for(;i;){let r=i.nextSibling;i.remove(),i=r}this.drawn=e,A.safari&&A.safari_version>=26&&(this.dom.style.display=this.dom.firstChild?"":"none")}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}},ds=k.define();hr=k.define({combine(t){return be(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,i)=>Math.min(e,i),drawRangeCursor:(e,i)=>e||i})}});G1=Ld({above:!0,markers(t){let{state:e}=t,i=e.facet(hr),n=[];for(let r of e.selection.ranges){let s=r==e.selection.main;if(r.empty||i.drawRangeCursor){let o=s?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",l=r.empty?r:y.cursor(r.head,r.head>r.anchor?-1:1);for(let a of cr.forRange(t,o,l))n.push(a)}}return n},update(t,e){t.transactions.some(n=>n.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let i=Vd(t);return i&&Mf(t.state,e),t.docChanged||t.selectionSet||i},mount(t,e){Mf(e.state,t)},class:"cm-cursorLayer"});U1=Ld({above:!1,markers(t){return t.state.selection.ranges.map(e=>e.empty?[]:cr.forRange(t,"cm-selectionBackground",e)).reduce((e,i)=>e.concat(i))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||Vd(t)},class:"cm-selectionLayer"}),H1=He.highest(w.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}})),_d=R.define({map(t,e){return t==null?null:e.mapPos(t)}}),Un=F.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((i,n)=>n.is(_d)?n.value:i,t)}}),K1=J.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let i=t.state.field(Un);i==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(Un)!=i||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(Un),i=e!=null&&t.coordsAtPos(e);if(!i)return null;let n=t.scrollDOM.getBoundingClientRect();return{left:i.left-n.left+t.scrollDOM.scrollLeft*t.scaleX,top:i.top-n.top+t.scrollDOM.scrollTop*t.scaleY,height:i.bottom-i.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:i}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/i+"px",this.cursor.style.height=t.height/i+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(Un)!=t&&this.view.dispatch({effects:_d.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});Sa=class{constructor(e){let{regexp:i,decoration:n,decorate:r,boundary:s,maxLength:o=1e3}=e;if(!i.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=i,r)this.addMatch=(l,a,c,h)=>r(h,c,c+l[0].length,l,a);else if(typeof n=="function")this.addMatch=(l,a,c,h)=>{let u=n(l,a,c);u&&h(c,c+l[0].length,u)};else if(n)this.addMatch=(l,a,c,h)=>h(c,c+l[0].length,n);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=s,this.maxLength=o}createDeco(e){let i=new Le,n=i.add.bind(i);for(let{from:r,to:s}of J1(e,this.maxLength))Ef(e.state.doc,this.regexp,r,s,(o,l)=>this.addMatch(l,e,o,n));return i.finish()}updateDeco(e,i){let n=1e9,r=-1;return e.docChanged&&e.changes.iterChanges((s,o,l,a)=>{a>=e.view.viewport.from&&l<=e.view.viewport.to&&(n=Math.min(l,n),r=Math.max(a,r))}),e.viewportMoved||r-n>1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,i.map(e.changes),n,r):i}updateRange(e,i,n,r){for(let s of e.visibleRanges){let o=Math.max(s.from,n),l=Math.min(s.to,r);if(l>=o){let a=e.state.doc.lineAt(o),c=a.to<l?e.state.doc.lineAt(l):a,h=Math.max(s.from,a.from),u=Math.min(s.to,c.to);if(this.boundary){for(;o>a.from;o--)if(this.boundary.test(a.text[o-1-a.from])){h=o;break}for(;l<c.to;l++)if(this.boundary.test(c.text[l-c.from])){u=l;break}}let f=[],d,p=(O,g,b)=>f.push(b.range(O,g));if(a==c)for(this.regexp.lastIndex=h-a.from;(d=this.regexp.exec(a.text))&&d.index<u-a.from;)this.addMatch(d,e,d.index+a.from,p);else Ef(e.state.doc,this.regexp,h,u,(O,g)=>this.addMatch(g,e,O,p));i=i.update({filterFrom:h,filterTo:u,filter:(O,g)=>O<h||g>u,add:f})}}return i}},Qa=/x/.unicode!=null?"gu":"g",ex=new RegExp(`[\0-\b
|
||
-\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`,Qa),tx={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},Rl=null;ps=k.define({combine(t){let e=be(t,{render:null,specialChars:ex,addSpecialChars:null});return(e.replaceTabs=!ix())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,Qa)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Qa)),e}});zf=null;rx="\u2022";wa=class extends xe{constructor(e,i){super(),this.options=e,this.code=i}eq(e){return e.code==this.code}toDOM(e){let i=sx(this.code),n=e.state.phrase("Control character")+" "+(tx[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,n,i);if(r)return r;let s=document.createElement("span");return s.textContent=i,s.title=n,s.setAttribute("aria-label",n),s.className="cm-specialChar",s}ignoreEvent(){return!1}},va=class extends xe{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}};ox=T.line({class:"cm-activeLine"}),lx=J.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,i=[];for(let n of t.state.selection.ranges){let r=t.lineBlockAt(n.head);r.from>e&&(i.push(ox.range(r.from)),e=r.from)}return T.set(i)}},{decorations:t=>t.decorations}),ka=2e3;ux={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},fx={style:"cursor: crosshair"};cs="-10000px",Cs=class{constructor(e,i,n,r){this.facet=i,this.createTooltipView=n,this.removeTooltipView=r,this.input=e.state.facet(i),this.tooltips=this.input.filter(o=>o);let s=null;this.tooltipViews=this.tooltips.map(o=>s=n(o,s))}update(e,i){var n;let r=e.state.facet(this.facet),s=r.filter(a=>a);if(r===this.input){for(let a of this.tooltipViews)a.update&&a.update(e);return!1}let o=[],l=i?[]:null;for(let a=0;a<s.length;a++){let c=s[a],h=-1;if(c){for(let u=0;u<this.tooltips.length;u++){let f=this.tooltips[u];f&&f.create==c.create&&(h=u)}if(h<0)o[a]=this.createTooltipView(c,a?o[a-1]:null),l&&(l[a]=!!c.above);else{let u=o[a]=this.tooltipViews[h];l&&(l[a]=i[h]),u.update&&u.update(e)}}}for(let a of this.tooltipViews)o.indexOf(a)<0&&(this.removeTooltipView(a),(n=a.destroy)===null||n===void 0||n.call(a));return i&&(l.forEach((a,c)=>i[c]=a),i.length=l.length),this.input=r,this.tooltips=s,this.tooltipViews=o,!0}};Xl=k.define({combine:t=>{var e,i,n;return{position:A.ios?"absolute":((e=t.find(r=>r.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((i=t.find(r=>r.parent))===null||i===void 0?void 0:i.parent)||null,tooltipSpace:((n=t.find(r=>r.tooltipSpace))===null||n===void 0?void 0:n.tooltipSpace)||dx}}}),Lf=new WeakMap,qa=J.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(Xl);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new Cs(t,ii,(i,n)=>this.createTooltip(i,n),i=>{this.resizeObserver&&this.resizeObserver.unobserve(i.dom),i.dom.remove()}),this.above=this.manager.tooltips.map(i=>!!i.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(i=>{Date.now()>this.lastTransaction-50&&i.length>0&&i[i.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let i=e||t.geometryChanged,n=t.state.facet(Xl);if(n.position!=this.position&&!this.madeAbsolute){this.position=n.position;for(let r of this.manager.tooltipViews)r.dom.style.position=this.position;i=!0}if(n.parent!=this.parent){this.parent&&this.container.remove(),this.parent=n.parent,this.createContainer();for(let r of this.manager.tooltipViews)this.container.appendChild(r.dom);i=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);i&&this.maybeMeasure()}createTooltip(t,e){let i=t.create(this.view),n=e?e.dom:null;if(i.dom.classList.add("cm-tooltip"),t.arrow&&!i.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let r=document.createElement("div");r.className="cm-tooltip-arrow",i.dom.appendChild(r)}return i.dom.style.position=this.position,i.dom.style.top=cs,i.dom.style.left="0px",this.container.insertBefore(i.dom,n),i.mount&&i.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(i.dom),i}destroy(){var t,e,i;this.view.win.removeEventListener("resize",this.measureSoon);for(let n of this.manager.tooltipViews)n.dom.remove(),(t=n.destroy)===null||t===void 0||t.call(n);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(i=this.intersectionObserver)===null||i===void 0||i.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=1,e=1,i=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:s}=this.manager.tooltipViews[0];if(A.safari){let o=s.getBoundingClientRect();i=Math.abs(o.top+1e4)>1||Math.abs(o.left)>1}else i=!!s.offsetParent&&s.offsetParent!=this.container.ownerDocument.body}if(i||this.position=="absolute")if(this.parent){let s=this.parent.getBoundingClientRect();s.width&&s.height&&(t=s.width/this.parent.offsetWidth,e=s.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:e}=this.view.viewState);let n=this.view.scrollDOM.getBoundingClientRect(),r=Da(this.view);return{visible:{left:n.left+r.left,top:n.top+r.top,right:n.right-r.right,bottom:n.bottom-r.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((s,o)=>{let l=this.manager.tooltipViews[o];return l.getCoords?l.getCoords(s.pos):this.view.coordsAtPos(s.pos)}),size:this.manager.tooltipViews.map(({dom:s})=>s.getBoundingClientRect()),space:this.view.state.facet(Xl).tooltipSpace(this.view),scaleX:t,scaleY:e,makeAbsolute:i}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let l of this.manager.tooltipViews)l.dom.style.position="absolute"}let{visible:i,space:n,scaleX:r,scaleY:s}=t,o=[];for(let l=0;l<this.manager.tooltips.length;l++){let a=this.manager.tooltips[l],c=this.manager.tooltipViews[l],{dom:h}=c,u=t.pos[l],f=t.size[l];if(!u||a.clip!==!1&&(u.bottom<=Math.max(i.top,n.top)||u.top>=Math.min(i.bottom,n.bottom)||u.right<Math.max(i.left,n.left)-.1||u.left>Math.min(i.right,n.right)+.1)){h.style.top=cs;continue}let d=a.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,p=d?7:0,O=f.right-f.left,g=(e=Lf.get(c))!==null&&e!==void 0?e:f.bottom-f.top,b=c.offset||Ox,x=this.view.textDirection==G.LTR,S=f.width>n.right-n.left?x?n.left:n.right-f.width:x?Math.max(n.left,Math.min(u.left-(d?14:0)+b.x,n.right-O)):Math.min(Math.max(n.left,u.left-O+(d?14:0)-b.x),n.right-O),C=this.above[l];!a.strictSide&&(C?u.top-g-p-b.y<n.top:u.bottom+g+p+b.y>n.bottom)&&C==n.bottom-u.bottom>u.top-n.top&&(C=this.above[l]=!C);let Q=(C?u.top-n.top:n.bottom-u.bottom)-p;if(Q<g&&c.resize!==!1){if(Q<this.view.defaultLineHeight){h.style.top=cs;continue}Lf.set(c,g),h.style.height=(g=Q)/s+"px"}else h.style.height&&(h.style.height="");let $=C?u.top-g-p-b.y:u.bottom+p+b.y,v=S+O;if(c.overlap!==!0)for(let E of o)E.left<v&&E.right>S&&E.top<$+g&&E.bottom>$&&($=C?E.top-g-2-p:E.bottom+p+2);if(this.position=="absolute"?(h.style.top=($-t.parent.top)/s+"px",qf(h,(S-t.parent.left)/r)):(h.style.top=$/s+"px",qf(h,S/r)),d){let E=u.left+(x?b.x:-b.x)-(S+14-7);d.style.left=E/r+"px"}c.overlap!==!0&&o.push({left:S,top:$,right:v,bottom:$+g}),h.classList.toggle("cm-tooltip-above",C),h.classList.toggle("cm-tooltip-below",!C),c.positioned&&c.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=cs}},{eventObservers:{scroll(){this.maybeMeasure()}}});px=w.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),Ox={x:0,y:0},ii=k.define({enables:[qa,px]}),As=k.define({combine:t=>t.reduce((e,i)=>e.concat(i),[])}),Zs=class t{static create(e){return new t(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Cs(e,As,(i,n)=>this.createHostedView(i,n),i=>i.dom.remove())}createHostedView(e,i){let n=e.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(n.dom,i?i.dom.nextSibling:this.dom.firstChild),this.mounted&&n.mount&&n.mount(this.view),n}mount(e){for(let i of this.manager.tooltipViews)i.mount&&i.mount(e);this.mounted=!0}positioned(e){for(let i of this.manager.tooltipViews)i.positioned&&i.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let i of this.manager.tooltipViews)(e=i.destroy)===null||e===void 0||e.call(i)}passProp(e){let i;for(let n of this.manager.tooltipViews){let r=n[e];if(r!==void 0){if(i===void 0)i=r;else if(i!==r)return}}return i}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}},mx=ii.compute([As],t=>{let e=t.facet(As);return e.length===0?null:{pos:Math.min(...e.map(i=>i.pos)),end:Math.max(...e.map(i=>{var n;return(n=i.end)!==null&&n!==void 0?n:i.pos})),create:Zs.create,above:e[0].above,arrow:e.some(i=>i.arrow)}}),$a=class{constructor(e,i,n,r,s){this.view=e,this.source=i,this.field=n,this.setHover=r,this.hoverTime=s,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:i}=this,n=e.docView.tile.nearest(i.target);if(!n)return;let r,s=1;if(n.isWidget())r=n.posAtStart;else{if(r=e.posAtCoords(i),r==null)return;let l=e.coordsAtPos(r);if(!l||i.y<l.top||i.y>l.bottom||i.x<l.left-e.defaultCharacterWidth||i.x>l.right+e.defaultCharacterWidth)return;let a=e.bidiSpans(e.state.doc.lineAt(r)).find(h=>h.from<=r&&h.to>=r),c=a&&a.dir==G.RTL?-1:1;s=i.x<l.left?-c:c}let o=this.source(e,r,s);if(o?.then){let l=this.pending={pos:r};o.then(a=>{this.pending==l&&(this.pending=null,a&&!(Array.isArray(a)&&!a.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(a)?a:[a])}))},a=>de(e.state,a,"hover tooltip"))}else o&&!(Array.isArray(o)&&!o.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(o)?o:[o])})}get tooltip(){let e=this.view.plugin(qa),i=e?e.manager.tooltips.findIndex(n=>n.create==Zs.create):-1;return i>-1?e.manager.tooltipViews[i]:null}mousemove(e){var i,n;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:s}=this;if(r.length&&s&&!gx(s.dom,e)||this.pending){let{pos:o}=r[0]||this.pending,l=(n=(i=r[0])===null||i===void 0?void 0:i.end)!==null&&n!==void 0?n:o;(o==l?this.view.posAtCoords(this.lastMove)!=o:!bx(this.view,o,l,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:i}=this;if(i.length){let{tooltip:n}=this;n&&n.dom.contains(e.relatedTarget)?this.watchTooltipLeave(n.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let i=n=>{e.removeEventListener("mouseleave",i),this.active.length&&!this.view.dom.contains(n.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",i)}destroy(){clearTimeout(this.hoverTimeout),clearTimeout(this.restartTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}},hs=4;yx=R.define(),Vf=k.define({combine(t){let e,i;for(let n of t)e=e||n.topContainer,i=i||n.bottomContainer;return{topContainer:e,bottomContainer:i}}});Fd=J.fromClass(class{constructor(t){this.input=t.state.facet(Zi),this.specs=this.input.filter(i=>i),this.panels=this.specs.map(i=>i(t));let e=t.state.facet(Vf);this.top=new nn(t,!0,e.topContainer),this.bottom=new nn(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(i=>i.top)),this.bottom.sync(this.panels.filter(i=>!i.top));for(let i of this.panels)i.dom.classList.add("cm-panel"),i.mount&&i.mount()}update(t){let e=t.state.facet(Vf);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new nn(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new nn(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let i=t.state.facet(Zi);if(i!=this.input){let n=i.filter(a=>a),r=[],s=[],o=[],l=[];for(let a of n){let c=this.specs.indexOf(a),h;c<0?(h=a(t.view),l.push(h)):(h=this.panels[c],h.update&&h.update(t)),r.push(h),(h.top?s:o).push(h)}this.specs=n,this.panels=r,this.top.sync(s),this.bottom.sync(o);for(let a of l)a.dom.classList.add("cm-panel"),a.mount&&a.mount()}else for(let n of this.panels)n.update&&n.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>w.scrollMargins.of(e=>{let i=e.plugin(t);return i&&{top:i.top.scrollMargin(),bottom:i.bottom.scrollMargin()}})}),nn=class{constructor(e,i,n){this.view=e,this.top=i,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let i of this.panels)i.destroy&&e.indexOf(i)<0&&i.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let i=this.container||this.view.dom;i.insertBefore(this.dom,this.top?i.firstChild:null)}let e=this.dom.firstChild;for(let i of this.panels)if(i.dom.parentNode==this.dom){for(;e!=i.dom;)e=_f(e);e=e.nextSibling}else this.dom.insertBefore(i.dom,e);for(;e;)e=_f(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}};Zi=k.define({enables:Fd});Ml=F.define({create(){return[]},update(t,e){for(let i of e.effects)i.is(Ud)?t=[i.value].concat(t):i.is(Hd)&&(t=t.filter(n=>n!=i.value));return t},provide:t=>Zi.computeN([t],e=>e.field(t))}),Ud=R.define(),Hd=R.define();Xe=class extends Ue{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}};Xe.prototype.elementClass="";Xe.prototype.toDOM=void 0;Xe.prototype.mapMode=fe.TrackBefore;Xe.prototype.startSide=Xe.prototype.endSide=-1;Xe.prototype.point=!0;Os=k.define(),Sx=k.define(),Qx={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>V.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},rr=k.define();Pa=k.define({combine:t=>t.some(e=>e)});wx=J.fromClass(class{constructor(t){this.view=t,this.domAfter=null,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(rr).map(e=>new Rs(t,e)),this.fixed=!t.state.facet(Pa);for(let e of this.gutters)e.config.side=="after"?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(t){if(this.updateGutters(t)){let e=this.prevViewport,i=t.view.viewport,n=Math.min(e.to,i.to)-Math.max(e.from,i.from);this.syncGutters(n<(i.to-i.from)*.8)}if(t.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=e,this.domAfter&&(this.domAfter.style.minHeight=e)}this.view.state.facet(Pa)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let i=V.iter(this.view.state.facet(Os),this.view.viewport.from),n=[],r=this.gutters.map(s=>new Ca(s,this.view.viewport,-this.view.documentPadding.top));for(let s of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(s.type)){let o=!0;for(let l of s.type)if(l.type==ye.Text&&o){Ta(i,n,l.from);for(let a of r)a.line(this.view,l,n);o=!1}else if(l.widget)for(let a of r)a.widget(this.view,l)}else if(s.type==ye.Text){Ta(i,n,s.from);for(let o of r)o.line(this.view,s,n)}else if(s.widget)for(let o of r)o.widget(this.view,s);for(let s of r)s.finish();t&&(this.view.scrollDOM.insertBefore(this.dom,e),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(t){let e=t.startState.facet(rr),i=t.state.facet(rr),n=t.docChanged||t.heightChanged||t.viewportChanged||!V.eq(t.startState.facet(Os),t.state.facet(Os),t.view.viewport.from,t.view.viewport.to);if(e==i)for(let r of this.gutters)r.update(t)&&(n=!0);else{n=!0;let r=[];for(let s of i){let o=e.indexOf(s);o<0?r.push(new Rs(this.view,s)):(this.gutters[o].update(t),r.push(this.gutters[o]))}for(let s of this.gutters)s.dom.remove(),r.indexOf(s)<0&&s.destroy();for(let s of r)s.config.side=="after"?this.getDOMAfter().appendChild(s.dom):this.dom.appendChild(s.dom);this.gutters=r}return n}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:t=>w.scrollMargins.of(e=>{let i=e.plugin(t);if(!i||i.gutters.length==0||!i.fixed)return null;let n=i.dom.offsetWidth*e.scaleX,r=i.domAfter?i.domAfter.offsetWidth*e.scaleX:0;return e.textDirection==G.LTR?{left:n,right:r}:{right:n,left:r}})});Ca=class{constructor(e,i,n){this.gutter=e,this.height=n,this.i=0,this.cursor=V.iter(e.markers,i.from)}addElement(e,i,n){let{gutter:r}=this,s=(i.top-this.height)/e.scaleY,o=i.height/e.scaleY;if(this.i==r.elements.length){let l=new Xs(e,o,s,n);r.elements.push(l),r.dom.appendChild(l.dom)}else r.elements[this.i].update(e,o,s,n);this.height=i.bottom,this.i++}line(e,i,n){let r=[];Ta(this.cursor,r,i.from),n.length&&(r=r.concat(n));let s=this.gutter.config.lineMarker(e,i,r);s&&r.unshift(s);let o=this.gutter;r.length==0&&!o.config.renderEmptyElements||this.addElement(e,i,r)}widget(e,i){let n=this.gutter.config.widgetMarker(e,i.widget,i),r=n?[n]:null;for(let s of e.state.facet(Sx)){let o=s(e,i.widget,i);o&&(r||(r=[])).push(o)}r&&this.addElement(e,i,r)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let i=e.elements.pop();e.dom.removeChild(i.dom),i.destroy()}}},Rs=class{constructor(e,i){this.view=e,this.config=i,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in i.domEventHandlers)this.dom.addEventListener(n,r=>{let s=r.target,o;if(s!=this.dom&&this.dom.contains(s)){for(;s.parentNode!=this.dom;)s=s.parentNode;let a=s.getBoundingClientRect();o=(a.top+a.bottom)/2}else o=r.clientY;let l=e.lineBlockAtHeight(o-e.documentTop);i.domEventHandlers[n](e,l,r)&&r.preventDefault()});this.markers=Bf(i.markers(e)),i.initialSpacer&&(this.spacer=new Xs(e,0,0,[i.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let i=this.markers;if(this.markers=Bf(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let r=this.config.updateSpacer(this.spacer.markers[0],e);r!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[r])}let n=e.view.viewport;return!V.eq(this.markers,i,n.from,n.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}},Xs=class{constructor(e,i,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,i,n,r)}update(e,i,n,r){this.height!=i&&(this.height=i,this.dom.style.height=i+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),vx(this.markers,r)||this.setMarkers(e,r)}setMarkers(e,i){let n="cm-gutterElement",r=this.dom.firstChild;for(let s=0,o=0;;){let l=o,a=s<i.length?i[s++]:null,c=!1;if(a){let h=a.elementClass;h&&(n+=" "+h);for(let u=o;u<this.markers.length;u++)if(this.markers[u].compare(a)){l=u,c=!0;break}}else l=this.markers.length;for(;o<l;){let h=this.markers[o++];if(h.toDOM){h.destroy(r);let u=r.nextSibling;r.remove(),r=u}}if(!a)break;a.toDOM&&(c?r=r.nextSibling:this.dom.insertBefore(a.toDOM(e),r)),c&&o++}this.dom.className=n,this.markers=i}destroy(){this.setMarkers(null,[])}};kx=k.define(),$x=k.define(),rn=k.define({combine(t){return be(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,i){let n=Object.assign({},e);for(let r in i){let s=n[r],o=i[r];n[r]=s?(l,a,c)=>s(l,a,c)||o(l,a,c):o}return n}})}}),sr=class extends Xe{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}};Px=rr.compute([rn],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(kx)},lineMarker(e,i,n){return n.some(r=>r.toDOM)?null:new sr(El(e,e.state.doc.lineAt(i.from).number))},widgetMarker:(e,i,n)=>{for(let r of e.state.facet($x)){let s=r(e,i,n);if(s)return s}return null},lineMarkerChange:e=>e.startState.facet(rn)!=e.state.facet(rn),initialSpacer(e){return new sr(El(e,Yf(e.state.doc.lines)))},updateSpacer(e,i){let n=El(i.view,Yf(i.view.state.doc.lines));return n==e.number?e:new sr(n)},domEventHandlers:t.facet(rn).domEventHandlers,side:"before"}));Tx=new class extends Xe{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},Cx=Os.compute(["selection"],t=>{let e=[],i=-1;for(let n of t.selection.ranges){let r=t.doc.lineAt(n.head).from;r>i&&(i=r,e.push(Tx.range(r)))}return V.of(e)})});function ap(t,e,i,n){switch(t){case-2:return i<e;case-1:return n>=e&&i<e;case 0:return i<e&&n>e;case 1:return i<=e&&n>e;case 2:return n>e;case 4:return!0}}function pr(t,e,i,n){for(var r;t.from==t.to||(i<1?t.from>=e:t.from>e)||(i>-1?t.to<=e:t.to<e);){let o=!n&&t instanceof Ee&&t.index<0?null:t.parent;if(!o)return t;t=o}let s=n?0:B.IgnoreOverlays;if(n)for(let o=t,l=o.parent;l;o=l,l=o.parent)o instanceof Ee&&o.index<0&&((r=l.enter(e,i,s))===null||r===void 0?void 0:r.from)!=o.from&&(t=l);for(;;){let o=t.enter(e,i,s);if(!o)return t;t=o}}function ip(t,e,i,n){let r=t.cursor(),s=[];if(!r.firstChild())return s;if(i!=null){for(let o=!1;!o;)if(o=r.type.is(i),!r.nextSibling())return s}for(;;){if(n!=null&&r.type.is(n))return s;if(r.type.is(e)&&s.push(r.node),!r.nextSibling())return n==null?s:[]}}function Ba(t,e,i=e.length-1){for(let n=t;i>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(e[i]&&e[i]!=n.name)return!1;i--}}return!0}function cp(t){if(!t.length)return null;let e=0,i=t[0];for(let s=1;s<t.length;s++){let o=t[s];(o.from>i.from||o.to<i.to)&&(i=o,e=s)}let n=i instanceof Ee&&i.index<0?null:i.parent,r=t.slice();return n?r[e]=n:r.splice(e,1),new Wa(r,i)}function Rx(t,e,i){let n=t.resolveInner(e,i),r=null;for(let s=n instanceof Ee?n:n.context.parent;s;s=s.parent)if(s.index<0){let o=s.parent;(r||(r=[n])).push(o.resolve(e,i)),s=o}else{let o=ni.get(s.tree);if(o&&o.overlay&&o.overlay[0].from<=e&&o.overlay[o.overlay.length-1].to>=e){let l=new Ee(o.tree,o.overlay[0].from+s.from,-1,s);(r||(r=[n])).push(pr(l,e,i,!1))}}return r?cp(r):n}function Ua(t){return t.children.some(e=>e instanceof ri||!e.type.isAnonymous||Ua(e))}function Xx(t){var e;let{buffer:i,nodeSet:n,maxBufferLength:r=1024,reused:s=[],minRepeatType:o=n.types.length}=t,l=Array.isArray(i)?new _a(i,i.length):i,a=n.types,c=0,h=0;function u(Q,$,v,E,D,U){let{id:L,start:X,end:H,size:j}=l,re=h,$e=c;if(j<0)if(l.next(),j==-1){let Mt=s[L];v.push(Mt),E.push(X-Q);return}else if(j==-3){c=L;return}else if(j==-4){h=L;return}else throw new RangeError(`Unrecognized record size: ${j}`);let ze=a[L],Qt,me,Fe=X-Q;if(H-X<=r&&(me=g(l.pos-$,D))){let Mt=new Uint16Array(me.size-me.skip),Ge=l.pos-me.size,wt=Mt.length;for(;l.pos>Ge;)wt=b(me.start,Mt,wt);Qt=new ri(Mt,H-me.start,n),Fe=me.start-Q}else{let Mt=l.pos-j;l.next();let Ge=[],wt=[],Si=L>=o?L:-1,Ni=0,_r=H;for(;l.pos>Mt;)Si>=0&&l.id==Si&&l.size>=0?(l.end<=_r-r&&(p(Ge,wt,X,Ni,l.end,_r,Si,re,$e),Ni=Ge.length,_r=l.end),l.next()):U>2500?f(X,Mt,Ge,wt):u(X,Mt,Ge,wt,Si,U+1);if(Si>=0&&Ni>0&&Ni<Ge.length&&p(Ge,wt,X,Ni,X,_r,Si,re,$e),Ge.reverse(),wt.reverse(),Si>-1&&Ni>0){let Pu=d(ze,$e);Qt=Ha(ze,Ge,wt,0,Ge.length,0,H-X,Pu,Pu)}else Qt=O(ze,Ge,wt,H-X,re-H,$e)}v.push(Qt),E.push(Fe)}function f(Q,$,v,E){let D=[],U=0,L=-1;for(;l.pos>$;){let{id:X,start:H,end:j,size:re}=l;if(re>4)l.next();else{if(L>-1&&H<L)break;L<0&&(L=j-r),D.push(X,H,j),U++,l.next()}}if(U){let X=new Uint16Array(U*4),H=D[D.length-2];for(let j=D.length-3,re=0;j>=0;j-=3)X[re++]=D[j],X[re++]=D[j+1]-H,X[re++]=D[j+2]-H,X[re++]=re;v.push(new ri(X,D[2]-H,n)),E.push(H-Q)}}function d(Q,$){return(v,E,D)=>{let U=0,L=v.length-1,X,H;if(L>=0&&(X=v[L])instanceof oe){if(!L&&X.type==Q&&X.length==D)return X;(H=X.prop(M.lookAhead))&&(U=E[L]+X.length+H)}return O(Q,v,E,D,U,$)}}function p(Q,$,v,E,D,U,L,X,H){let j=[],re=[];for(;Q.length>E;)j.push(Q.pop()),re.push($.pop()+v-D);Q.push(O(n.types[L],j,re,U-D,X-U,H)),$.push(D-v)}function O(Q,$,v,E,D,U,L){if(U){let X=[M.contextHash,U];L=L?[X].concat(L):[X]}if(D>25){let X=[M.lookAhead,D];L=L?[X].concat(L):[X]}return new oe(Q,$,v,E,L)}function g(Q,$){let v=l.fork(),E=0,D=0,U=0,L=v.end-r,X={size:0,start:0,skip:0};e:for(let H=v.pos-Q;v.pos>H;){let j=v.size;if(v.id==$&&j>=0){X.size=E,X.start=D,X.skip=U,U+=4,E+=4,v.next();continue}let re=v.pos-j;if(j<0||re<H||v.start<L)break;let $e=v.id>=o?4:0,ze=v.start;for(v.next();v.pos>re;){if(v.size<0)if(v.size==-3||v.size==-4)$e+=4;else break e;else v.id>=o&&($e+=4);v.next()}D=ze,E+=j,U+=$e}return($<0||E==Q)&&(X.size=E,X.start=D,X.skip=U),X.size>4?X:void 0}function b(Q,$,v){let{id:E,start:D,end:U,size:L}=l;if(l.next(),L>=0&&E<o){let X=v;if(L>4){let H=l.pos-(L-4);for(;l.pos>H;)v=b(Q,$,v)}$[--v]=X,$[--v]=U-Q,$[--v]=D-Q,$[--v]=E}else L==-3?c=E:L==-4&&(h=E);return v}let x=[],S=[];for(;l.pos>0;)u(t.start||0,t.bufferStart||0,x,S,-1,0);let C=(e=t.length)!==null&&e!==void 0?e:x.length?S[0]+x[0].length:0;return new oe(a[t.topID],x.reverse(),S.reverse(),C)}function qs(t,e){if(!t.isAnonymous||e instanceof ri||e.type!=t)return 1;let i=np.get(e);if(i==null){i=1;for(let n of e.children){if(n.type!=t||!(n instanceof oe)){i=1;break}i+=qs(t,n)}np.set(e,i)}return i}function Ha(t,e,i,n,r,s,o,l,a){let c=0;for(let p=n;p<r;p++)c+=qs(t,e[p]);let h=Math.ceil(c*1.5/8),u=[],f=[];function d(p,O,g,b,x){for(let S=g;S<b;){let C=S,Q=O[S],$=qs(t,p[S]);for(S++;S<b;S++){let v=qs(t,p[S]);if($+v>=h)break;$+=v}if(S==C+1){if($>h){let v=p[C];d(v.children,v.positions,0,v.children.length,O[C]+x);continue}u.push(p[C])}else{let v=O[S-1]+p[S-1].length-Q;u.push(Ha(t,p,O,C,S,Q,v,null,a))}f.push(Q+x-s)}}return d(e,i,n,r,0),(l||a)(u,f,o)}function hp(t){return(e,i,n,r)=>new Fa(e,t,i,n,r)}function rp(t){if(!t.length||t.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}function Mx(t,e,i){for(let n of t){if(n.from>=i)break;if(n.to>e)return n.from<=e&&n.to>=i?2:1}return 0}function sp(t,e,i,n,r,s){if(e<i){let o=t.buffer[e+1];n.push(t.slice(e,i,o)),r.push(o-s)}}function Ex(t){let{node:e}=t,i=[],n=e.context.buffer;do i.push(t.index),t.parent();while(!t.tree);let r=t.tree,s=r.children.indexOf(n),o=r.children[s],l=o.buffer,a=[s];function c(h,u,f,d,p,O){let g=i[O],b=[],x=[];sp(o,h,g,b,x,d);let S=l[g+1],C=l[g+2];a.push(b.length);let Q=O?c(g+4,l[g+3],o.set.types[l[g]],S,C-S,O-1):e.toTree();return b.push(Q),x.push(S-d),sp(o,l[g+3],u,b,x,d),new oe(f,b,x,p)}r.children[s]=c(0,l.length,Se.none,0,o.length,i.length-1);for(let h of a){let u=t.tree.children[h],f=t.tree.positions[h];t.yield(new Ee(u,f+t.from,h,t._tree))}}function op(t,e){let i=null,n=e;for(let r=1,s=0;r<t.length;r++){let o=t[r-1].to,l=t[r].from;for(;s<n.length;s++){let a=n[s];if(a.from>=l)break;a.to<=o||(i||(n=i=e.slice()),a.from<o?(i[s]=new Me(a.from,o),a.to>l&&i.splice(s+1,0,new Me(l,a.to))):a.to>l?i[s--]=new Me(l,a.to):i.splice(s--,1))}}return n}function zx(t,e,i,n){let r=0,s=0,o=!1,l=!1,a=-1e9,c=[];for(;;){let h=r==t.length?1e9:o?t[r].to:t[r].from,u=s==e.length?1e9:l?e[s].to:e[s].from;if(o!=l){let f=Math.max(a,i),d=Math.min(h,u,n);f<d&&c.push(new Me(f,d))}if(a=Math.min(h,u),a==1e9)break;h==a&&(o?(o=!1,r++):o=!0),u==a&&(l?(l=!1,s++):l=!0)}return c}function lp(t,e){let i=[];for(let{pos:n,mount:r,frag:s}of t){let o=n+(r.overlay?r.overlay[0].from:0),l=o+r.tree.length,a=Math.max(s.from,o),c=Math.min(s.to,l);if(r.overlay){let h=r.overlay.map(f=>new Me(f.from+n,f.to+n)),u=zx(e,h,a,c);for(let f=0,d=a;;f++){let p=f==u.length,O=p?c:u[f].from;if(O>d&&i.push(new Vt(d,O,r.tree,-o,s.from>=d||s.openStart,s.to<=O||s.openEnd)),p)break;d=u[f].to}}else i.push(new Vt(a,c,r.tree,-o,s.from>=o||s.openStart,s.to<=l||s.openEnd))}return i}var Ax,Me,M,ni,Zx,Se,dr,Ls,tp,B,oe,_a,ri,Vs,Ee,Ya,Ri,Wa,dn,np,pn,Vt,On,ja,_s,Ia,Na,Fa,Bs,Ga,si=K(()=>{Ax=0,Me=class{constructor(e,i){this.from=e,this.to=i}},M=class{constructor(e={}){this.id=Ax++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Se.match(e)),i=>{let n=e(i);return n===void 0?null:[this,n]}}};M.closedBy=new M({deserialize:t=>t.split(" ")});M.openedBy=new M({deserialize:t=>t.split(" ")});M.group=new M({deserialize:t=>t.split(" ")});M.isolate=new M({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}});M.contextHash=new M({perNode:!0});M.lookAhead=new M({perNode:!0});M.mounted=new M({perNode:!0});ni=class{constructor(e,i,n,r=!1){this.tree=e,this.overlay=i,this.parser=n,this.bracketed=r}static get(e){return e&&e.props&&e.props[M.mounted.id]}},Zx=Object.create(null),Se=class t{constructor(e,i,n,r=0){this.name=e,this.props=i,this.id=n,this.flags=r}static define(e){let i=e.props&&e.props.length?Object.create(null):Zx,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),r=new t(e.name||"",i,e.id,n);if(e.props){for(let s of e.props)if(Array.isArray(s)||(s=s(r)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");i[s[0].id]=s[1]}}return r}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let i=this.prop(M.group);return i?i.indexOf(e)>-1:!1}return this.id==e}static match(e){let i=Object.create(null);for(let n in e)for(let r of n.split(" "))i[r]=e[n];return n=>{for(let r=n.prop(M.group),s=-1;s<(r?r.length:0);s++){let o=i[s<0?n.name:r[s]];if(o)return o}}}};Se.none=new Se("",Object.create(null),0,8);dr=class t{constructor(e){this.types=e;for(let i=0;i<e.length;i++)if(e[i].id!=i)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let i=[];for(let n of this.types){let r=null;for(let s of e){let o=s(n);if(o){r||(r=Object.assign({},n.props));let l=o[1],a=o[0];a.combine&&a.id in r&&(l=a.combine(r[a.id],l)),r[a.id]=l}}i.push(r?new Se(n.name,r,n.id,n.flags):n)}return new t(i)}},Ls=new WeakMap,tp=new WeakMap;(function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays",t[t.EnterBracketed=16]="EnterBracketed"})(B||(B={}));oe=class t{constructor(e,i,n,r,s){if(this.type=e,this.children=i,this.positions=n,this.length=r,this.props=null,s&&s.length){this.props=Object.create(null);for(let[o,l]of s)this.props[typeof o=="number"?o:o.id]=l}}toString(){let e=ni.get(this);if(e&&!e.overlay)return e.tree.toString();let i="";for(let n of this.children){let r=n.toString();r&&(i&&(i+=","),i+=r)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(i.length?"("+i+")":""):i}cursor(e=0){return new dn(this.topNode,e)}cursorAt(e,i=0,n=0){let r=Ls.get(this)||this.topNode,s=new dn(r);return s.moveTo(e,i),Ls.set(this,s._tree),s}get topNode(){return new Ee(this,0,0,null)}resolve(e,i=0){let n=pr(Ls.get(this)||this.topNode,e,i,!1);return Ls.set(this,n),n}resolveInner(e,i=0){let n=pr(tp.get(this)||this.topNode,e,i,!0);return tp.set(this,n),n}resolveStack(e,i=0){return Rx(this,e,i)}iterate(e){let{enter:i,leave:n,from:r=0,to:s=this.length}=e,o=e.mode||0,l=(o&B.IncludeAnonymous)>0;for(let a=this.cursor(o|B.IncludeAnonymous);;){let c=!1;if(a.from<=s&&a.to>=r&&(!l&&a.type.isAnonymous||i(a)!==!1)){if(a.firstChild())continue;c=!0}for(;c&&n&&(l||!a.type.isAnonymous)&&n(a),!a.nextSibling();){if(!a.parent())return;c=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let i in this.props)e.push([+i,this.props[i]]);return e}balance(e={}){return this.children.length<=8?this:Ha(Se.none,this.children,this.positions,0,this.children.length,0,this.length,(i,n,r)=>new t(this.type,i,n,r,this.propValues),e.makeTree||((i,n,r)=>new t(Se.none,i,n,r)))}static build(e){return Xx(e)}};oe.empty=new oe(Se.none,[],[],0);_a=class t{constructor(e,i){this.buffer=e,this.index=i}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 t(this.buffer,this.index)}},ri=class t{constructor(e,i,n){this.buffer=e,this.length=i,this.set=n}get type(){return Se.none}toString(){let e=[];for(let i=0;i<this.buffer.length;)e.push(this.childString(i)),i=this.buffer[i+3];return e.join(",")}childString(e){let i=this.buffer[e],n=this.buffer[e+3],r=this.set.types[i],s=r.name;if(/\W/.test(s)&&!r.isError&&(s=JSON.stringify(s)),e+=4,n==e)return s;let o=[];for(;e<n;)o.push(this.childString(e)),e=this.buffer[e+3];return s+"("+o.join(",")+")"}findChild(e,i,n,r,s){let{buffer:o}=this,l=-1;for(let a=e;a!=i&&!(ap(s,r,o[a+1],o[a+2])&&(l=a,n>0));a=o[a+3]);return l}slice(e,i,n){let r=this.buffer,s=new Uint16Array(i-e),o=0;for(let l=e,a=0;l<i;){s[a++]=r[l++],s[a++]=r[l++]-n;let c=s[a++]=r[l++]-n;s[a++]=r[l++]-e,o=Math.max(o,c)}return new t(s,o,this.set)}};Vs=class{cursor(e=0){return new dn(this,e)}getChild(e,i=null,n=null){let r=ip(this,e,i,n);return r.length?r[0]:null}getChildren(e,i=null,n=null){return ip(this,e,i,n)}resolve(e,i=0){return pr(this,e,i,!1)}resolveInner(e,i=0){return pr(this,e,i,!0)}matchContext(e){return Ba(this.parent,e)}enterUnfinishedNodesBefore(e){let i=this.childBefore(e),n=this;for(;i;){let r=i.lastChild;if(!r||r.to!=i.to)break;r.type.isError&&r.from==r.to?(n=i,i=r.prevSibling):i=r}return n}get node(){return this}get next(){return this.parent}},Ee=class t extends Vs{constructor(e,i,n,r){super(),this._tree=e,this.from=i,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(e,i,n,r,s=0){var o;for(let l=this;;){for(let{children:a,positions:c}=l._tree,h=i>0?a.length:-1;e!=h;e+=i){let u=a[e],f=c[e]+l.from;if(!(!(s&B.EnterBracketed&&u instanceof oe&&((o=ni.get(u))===null||o===void 0?void 0:o.overlay)===null&&(f>=n||f+u.length<=n))&&!ap(r,n,f,f+u.length))){if(u instanceof ri){if(s&B.ExcludeBuffers)continue;let d=u.findChild(0,u.buffer.length,i,n-f,r);if(d>-1)return new Ri(new Ya(l,u,e,f),null,d)}else if(s&B.IncludeAnonymous||!u.type.isAnonymous||Ua(u)){let d;if(!(s&B.IgnoreMounts)&&(d=ni.get(u))&&!d.overlay)return new t(d.tree,f,e,l);let p=new t(u,f,e,l);return s&B.IncludeAnonymous||!p.type.isAnonymous?p:p.nextChild(i<0?u.children.length-1:0,i,n,r,s)}}}if(s&B.IncludeAnonymous||!l.type.isAnonymous||(l.index>=0?e=l.index+i:e=i<0?-1:l._parent._tree.children.length,l=l._parent,!l))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(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,i,n=0){let r;if(!(n&B.IgnoreOverlays)&&(r=ni.get(this._tree))&&r.overlay){let s=e-this.from,o=n&B.EnterBracketed&&r.bracketed;for(let{from:l,to:a}of r.overlay)if((i>0||o?l<=s:l<s)&&(i<0||o?a>=s:a>s))return new t(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,i,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}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}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}};Ya=class{constructor(e,i,n,r){this.parent=e,this.buffer=i,this.index=n,this.start=r}},Ri=class t extends Vs{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(e,i,n){super(),this.context=e,this._parent=i,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,i,n){let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],e,i-this.context.start,n);return s<0?null:new t(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,i,n=0){if(n&B.ExcludeBuffers)return null;let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],i>0?1:-1,e-this.context.start,i);return s<0?null:new t(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,i=e.buffer[this.index+3];return i<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new t(this.context,this._parent,i):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,i=this._parent?this._parent.index+4:0;return this.index==i?this.externalSibling(-1):new t(this.context,this._parent,e.findChild(i,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],i=[],{buffer:n}=this.context,r=this.index+4,s=n.buffer[this.index+3];if(s>r){let o=n.buffer[this.index+1];e.push(n.slice(r,s,o)),i.push(0)}return new oe(this.type,e,i,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}};Wa=class{constructor(e,i){this.heads=e,this.node=i}get next(){return cp(this.heads)}};dn=class{get name(){return this.type.name}constructor(e,i=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=i&~B.EnterBracketed,e instanceof Ee)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let n=e._parent;n;n=n._parent)this.stack.unshift(n.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,i){this.index=e;let{start:n,buffer:r}=this.buffer;return this.type=i||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){return e?e instanceof Ee?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,i,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,i,n,this.mode));let{buffer:r}=this.buffer,s=r.findChild(this.index+4,r.buffer[this.index+3],e,i-this.buffer.start,n);return s<0?!1:(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,i,n=this.mode){return this.buffer?n&B.ExcludeBuffers?!1:this.enterChild(1,e,i):this.yield(this._tree.enter(e,i,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&B.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&B.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:i}=this.buffer,n=this.stack.length-1;if(e<0){let r=n<0?0:this.stack[n]+4;if(this.index!=r)return this.yieldBuf(i.findChild(r,this.index,-1,0,4))}else{let r=i.buffer[this.index+3];if(r<(n<0?i.buffer.length:i.buffer[this.stack[n]+3]))return this.yieldBuf(r)}return n<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let i,n,{buffer:r}=this;if(r){if(e>0){if(this.index<r.buffer.buffer.length)return!1}else for(let s=0;s<this.index;s++)if(r.buffer.buffer[s+3]<this.index)return!1;({index:i,parent:n}=r)}else({index:i,_parent:n}=this._tree);for(;n;{index:i,_parent:n}=n)if(i>-1)for(let s=i+e,o=e<0?-1:n._tree.children.length;s!=o;s+=e){let l=n._tree.children[s];if(this.mode&B.IncludeAnonymous||l instanceof ri||!l.type.isAnonymous||Ua(l))return!1}return!0}move(e,i){if(i&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,i=0){for(;(this.from==this.to||(i<1?this.from>=e:this.from>e)||(i>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,i););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,i=null,n=0;if(e&&e.context==this.buffer)e:for(let r=this.index,s=this.stack.length;s>=0;){for(let o=e;o;o=o._parent)if(o.index==r){if(r==this.index)return o;i=o,n=s+1;break e}r=this.stack[--s]}for(let r=n;r<this.stack.length;r++)i=new Ri(this.buffer,i,this.stack[r]);return this.bufferNode=new Ri(this.buffer,i,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,i){for(let n=0;;){let r=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;;){if(r&&i&&i(this),r=this.type.isAnonymous,!n)return;if(this.nextSibling())break;this.parent(),n--,r=!0}}}matchContext(e){if(!this.buffer)return Ba(this.node.parent,e);let{buffer:i}=this.buffer,{types:n}=i.set;for(let r=e.length-1,s=this.stack.length-1;r>=0;s--){if(s<0)return Ba(this._tree,e,r);let o=n[i.buffer[this.stack[s]]];if(!o.isAnonymous){if(e[r]&&e[r]!=o.name)return!1;r--}}return!0}};np=new WeakMap;pn=class{constructor(){this.map=new WeakMap}setBuffer(e,i,n){let r=this.map.get(e);r||this.map.set(e,r=new Map),r.set(i,n)}getBuffer(e,i){let n=this.map.get(e);return n&&n.get(i)}set(e,i){e instanceof Ri?this.setBuffer(e.context.buffer,e.index,i):e instanceof Ee&&this.map.set(e.tree,i)}get(e){return e instanceof Ri?this.getBuffer(e.context.buffer,e.index):e instanceof Ee?this.map.get(e.tree):void 0}cursorSet(e,i){e.buffer?this.setBuffer(e.buffer.buffer,e.index,i):this.map.set(e.tree,i)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}},Vt=class t{constructor(e,i,n,r,s=!1,o=!1){this.from=e,this.to=i,this.tree=n,this.offset=r,this.open=(s?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,i=[],n=!1){let r=[new t(0,e.length,e,0,!1,n)];for(let s of i)s.to>e.length&&r.push(s);return r}static applyChanges(e,i,n=128){if(!i.length)return e;let r=[],s=1,o=e.length?e[0]:null;for(let l=0,a=0,c=0;;l++){let h=l<i.length?i[l]:null,u=h?h.fromA:1e9;if(u-a>=n)for(;o&&o.from<u;){let f=o;if(a>=f.from||u<=f.to||c){let d=Math.max(f.from,a)-c,p=Math.min(f.to,u)-c;f=d>=p?null:new t(d,p,f.tree,f.offset+c,l>0,!!h)}if(f&&r.push(f),o.to>u)break;o=s<e.length?e[s++]:null}if(!h)break;a=h.toA,c=h.toA-h.toB}return r}},On=class{startParse(e,i,n){return typeof e=="string"&&(e=new ja(e)),n=n?n.length?n.map(r=>new Me(r.from,r.to)):[new Me(0,0)]:[new Me(0,e.length)],this.createParse(e,i||[],n)}parse(e,i,n){let r=this.startParse(e,i,n);for(;;){let s=r.advance();if(s)return s}}},ja=class{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,i){return this.string.slice(e,i)}};_s=class{constructor(e,i,n,r,s,o){this.parser=e,this.parse=i,this.overlay=n,this.bracketed=r,this.target=s,this.from=o}};Ia=class{constructor(e,i,n,r,s,o,l,a){this.parser=e,this.predicate=i,this.mounts=n,this.index=r,this.start=s,this.bracketed=o,this.target=l,this.prev=a,this.depth=0,this.ranges=[]}},Na=new M({perNode:!0}),Fa=class{constructor(e,i,n,r,s){this.nest=i,this.input=n,this.fragments=r,this.ranges=s,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let n=this.baseParse.advance();if(!n)return null;if(this.baseParse=null,this.baseTree=n,this.startInner(),this.stoppedAt!=null)for(let r of this.inner)r.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let n=this.baseTree;return this.stoppedAt!=null&&(n=new oe(n.type,n.children,n.positions,n.length,n.propValues.concat([[Na,this.stoppedAt]]))),n}let e=this.inner[this.innerDone],i=e.parse.advance();if(i){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[M.mounted.id]=new ni(i,e.overlay,e.parser,e.bracketed),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let i=this.innerDone;i<this.inner.length;i++)this.inner[i].from<e&&(e=Math.min(e,this.inner[i].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let i=this.innerDone;i<this.inner.length;i++)this.inner[i].parse.stopAt(e)}startInner(){let e=new Ga(this.fragments),i=null,n=null,r=new dn(new Ee(this.baseTree,this.ranges[0].from,0,null),B.IncludeAnonymous|B.IgnoreMounts);e:for(let s,o;;){let l=!0,a;if(this.stoppedAt!=null&&r.from>=this.stoppedAt)l=!1;else if(e.hasNode(r)){if(i){let c=i.mounts.find(h=>h.frag.from<=r.from&&h.frag.to>=r.to&&h.mount.overlay);if(c)for(let h of c.mount.overlay){let u=h.from+c.pos,f=h.to+c.pos;u>=r.from&&f<=r.to&&!i.ranges.some(d=>d.from<f&&d.to>u)&&i.ranges.push({from:u,to:f})}}l=!1}else if(n&&(o=Mx(n.ranges,r.from,r.to)))l=o!=2;else if(!r.type.isAnonymous&&(s=this.nest(r,this.input))&&(r.from<r.to||!s.overlay)){r.tree||(Ex(r),i&&i.depth++,n&&n.depth++);let c=e.findMounts(r.from,s.parser);if(typeof s.overlay=="function")i=new Ia(s.parser,s.overlay,c,this.inner.length,r.from,!!s.bracketed,r.tree,i);else{let h=op(this.ranges,s.overlay||(r.from<r.to?[new Me(r.from,r.to)]:[]));h.length&&rp(h),(h.length||!s.overlay)&&this.inner.push(new _s(s.parser,h.length?s.parser.startParse(this.input,lp(c,h),h):s.parser.startParse(""),s.overlay?s.overlay.map(u=>new Me(u.from-r.from,u.to-r.from)):null,!!s.bracketed,r.tree,h.length?h[0].from:r.from)),s.overlay?h.length&&(n={ranges:h,depth:0,prev:n}):l=!1}}else if(i&&(a=i.predicate(r))&&(a===!0&&(a=new Me(r.from,r.to)),a.from<a.to)){let c=i.ranges.length-1;c>=0&&i.ranges[c].to==a.from?i.ranges[c]={from:i.ranges[c].from,to:a.to}:i.ranges.push(a)}if(l&&r.firstChild())i&&i.depth++,n&&n.depth++;else for(;!r.nextSibling();){if(!r.parent())break e;if(i&&!--i.depth){let c=op(this.ranges,i.ranges);c.length&&(rp(c),this.inner.splice(i.index,0,new _s(i.parser,i.parser.startParse(this.input,lp(i.mounts,c),c),i.ranges.map(h=>new Me(h.from-i.start,h.to-i.start)),i.bracketed,i.target,c[0].from))),i=i.prev}n&&!--n.depth&&(n=n.prev)}}}};Bs=class{constructor(e,i){this.offset=i,this.done=!1,this.cursor=e.cursor(B.IncludeAnonymous|B.IgnoreMounts)}moveTo(e){let{cursor:i}=this,n=e-this.offset;for(;!this.done&&i.from<n;)i.to>=e&&i.enter(n,1,B.IgnoreOverlays|B.ExcludeBuffers)||i.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let i=this.cursor.tree;;){if(i==e.tree)return!0;if(i.children.length&&i.positions[0]==0&&i.children[0]instanceof oe)i=i.children[0];else break}return!1}},Ga=class{constructor(e){var i;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=(i=n.tree.prop(Na))!==null&&i!==void 0?i:n.to,this.inner=new Bs(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let i=this.curFrag=this.fragments[this.fragI];this.curTo=(e=i.tree.prop(Na))!==null&&e!==void 0?e:i.to,this.inner=new Bs(i.tree,-i.offset)}}findMounts(e,i){var n;let r=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let s=this.inner.cursor.node;s;s=s.parent){let o=(n=s.tree)===null||n===void 0?void 0:n.prop(M.mounted);if(o&&o.parser==i)for(let l=this.fragI;l<this.fragments.length;l++){let a=this.fragments[l];if(a.from>=s.to)break;a.tree==this.curFrag.tree&&r.push({frag:a,pos:s.from-a.offset,mount:o})}}}return r}}});function qx(t,e){return t.length==e.length&&t.every((i,n)=>i==e[n])}function Vx(t){let e=[[]];for(let i=0;i<t.length;i++)for(let n=0,r=e.length;n<r;n++)e.push(e[n].concat(t[i]));return e.sort((i,n)=>n.length-i.length)}function ai(t){let e=Object.create(null);for(let i in t){let n=t[i];Array.isArray(n)||(n=[n]);for(let r of i.split(" "))if(r){let s=[],o=2,l=r;for(let u=0;;){if(l=="..."&&u>0&&u+3==r.length){o=1;break}let f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!f)throw new RangeError("Invalid path: "+r);if(s.push(f[0]=="*"?"":f[0][0]=='"'?JSON.parse(f[0]):f[0]),u+=f[0].length,u==r.length)break;let d=r[u++];if(u==r.length&&d=="!"){o=0;break}if(d!="/")throw new RangeError("Invalid path: "+r);l=r.slice(u)}let a=s.length-1,c=s[a];if(!c)throw new RangeError("Invalid path: "+r);let h=new Mi(n,o,a>0?s.slice(0,a):null);e[c]=h.sort(e[c])}}return dp.add(e)}function tc(t,e){let i=Object.create(null);for(let s of t)if(!Array.isArray(s.tag))i[s.tag.id]=s.class;else for(let o of s.tag)i[o.id]=s.class;let{scope:n,all:r=null}=e||{};return{style:s=>{let o=r;for(let l of s)for(let a of l.set){let c=i[a.id];if(c){o=o?o+" "+c:c;break}}return o},scope:n}}function _x(t,e){let i=null;for(let n of t){let r=n.style(e);r&&(i=i?i+" "+r:r)}return i}function pp(t,e,i,n=0,r=t.length){let s=new Ja(n,Array.isArray(e)?e:[e],i);s.highlightRange(t.cursor(),n,r,"",s.highlighters),s.flush(r)}function Bx(t){let e=t.type.prop(dp);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}var Dx,pt,Lx,Is,dp,Mi,Ja,P,Ys,oi,up,fp,li,Ws,Ka,Ct,Xi,Pt,Tt,ec,Or,js,m,RZ,mn=K(()=>{si();Dx=0,pt=class t{constructor(e,i,n,r){this.name=e,this.set=i,this.base=n,this.modified=r,this.id=Dx++}toString(){let{name:e}=this;for(let i of this.modified)i.name&&(e=`${i.name}(${e})`);return e}static define(e,i){let n=typeof e=="string"?e:"?";if(e instanceof t&&(i=e),i?.base)throw new Error("Can not derive from a modified tag");let r=new t(n,[],null,[]);if(r.set.push(r),i)for(let s of i.set)r.set.push(s);return r}static defineModifier(e){let i=new Is(e);return n=>n.modified.indexOf(i)>-1?n:Is.get(n.base||n,n.modified.concat(i).sort((r,s)=>r.id-s.id))}},Lx=0,Is=class t{constructor(e){this.name=e,this.instances=[],this.id=Lx++}static get(e,i){if(!i.length)return e;let n=i[0].instances.find(l=>l.base==e&&qx(i,l.modified));if(n)return n;let r=[],s=new pt(e.name,r,e,i);for(let l of i)l.instances.push(s);let o=Vx(i);for(let l of e.set)if(!l.modified.length)for(let a of o)r.push(t.get(l,a));return s}};dp=new M({combine(t,e){let i,n,r;for(;t||e;){if(!t||e&&t.depth>=e.depth?(r=e,e=e.next):(r=t,t=t.next),i&&i.mode==r.mode&&!r.context&&!i.context)continue;let s=new Mi(r.tags,r.mode,r.context);i?i.next=s:n=s,i=s}return n}}),Mi=class{constructor(e,i,n,r){this.tags=e,this.mode=i,this.context=n,this.next=r}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}};Mi.empty=new Mi([],2,null);Ja=class{constructor(e,i,n){this.at=e,this.highlighters=i,this.span=n,this.class=""}startSpan(e,i){i!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=i)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,i,n,r,s){let{type:o,from:l,to:a}=e;if(l>=n||a<=i)return;o.isTop&&(s=this.highlighters.filter(d=>!d.scope||d.scope(o)));let c=r,h=Bx(e)||Mi.empty,u=_x(s,h.tags);if(u&&(c&&(c+=" "),c+=u,h.mode==1&&(r+=(r?" ":"")+u)),this.startSpan(Math.max(i,l),c),h.opaque)return;let f=e.tree&&e.tree.prop(M.mounted);if(f&&f.overlay){let d=e.node.enter(f.overlay[0].from+l,1),p=this.highlighters.filter(g=>!g.scope||g.scope(f.tree.type)),O=e.firstChild();for(let g=0,b=l;;g++){let x=g<f.overlay.length?f.overlay[g]:null,S=x?x.from+l:a,C=Math.max(i,b),Q=Math.min(n,S);if(C<Q&&O)for(;e.from<Q&&(this.highlightRange(e,C,Q,r,s),this.startSpan(Math.min(Q,e.to),c),!(e.to>=S||!e.nextSibling())););if(!x||S>n)break;b=x.to+l,b>i&&(this.highlightRange(d.cursor(),Math.max(i,x.from+l),Math.min(n,b),"",p),this.startSpan(Math.min(n,b),c))}O&&e.parent()}else if(e.firstChild()){f&&(r="");do if(!(e.to<=i)){if(e.from>=n)break;this.highlightRange(e,i,n,r,s),this.startSpan(Math.min(n,e.to),c)}while(e.nextSibling());e.parent()}}};P=pt.define,Ys=P(),oi=P(),up=P(oi),fp=P(oi),li=P(),Ws=P(li),Ka=P(li),Ct=P(),Xi=P(Ct),Pt=P(),Tt=P(),ec=P(),Or=P(ec),js=P(),m={comment:Ys,lineComment:P(Ys),blockComment:P(Ys),docComment:P(Ys),name:oi,variableName:P(oi),typeName:up,tagName:P(up),propertyName:fp,attributeName:P(fp),className:P(oi),labelName:P(oi),namespace:P(oi),macroName:P(oi),literal:li,string:Ws,docString:P(Ws),character:P(Ws),attributeValue:P(Ws),number:Ka,integer:P(Ka),float:P(Ka),bool:P(li),regexp:P(li),escape:P(li),color:P(li),url:P(li),keyword:Pt,self:P(Pt),null:P(Pt),atom:P(Pt),unit:P(Pt),modifier:P(Pt),operatorKeyword:P(Pt),controlKeyword:P(Pt),definitionKeyword:P(Pt),moduleKeyword:P(Pt),operator:Tt,derefOperator:P(Tt),arithmeticOperator:P(Tt),logicOperator:P(Tt),bitwiseOperator:P(Tt),compareOperator:P(Tt),updateOperator:P(Tt),definitionOperator:P(Tt),typeOperator:P(Tt),controlOperator:P(Tt),punctuation:ec,separator:P(ec),bracket:Or,angleBracket:P(Or),squareBracket:P(Or),paren:P(Or),brace:P(Or),content:Ct,heading:Xi,heading1:P(Xi),heading2:P(Xi),heading3:P(Xi),heading4:P(Xi),heading5:P(Xi),heading6:P(Xi),contentSeparator:P(Ct),list:P(Ct),quote:P(Ct),emphasis:P(Ct),strong:P(Ct),link:P(Ct),monospace:P(Ct),strikethrough:P(Ct),inserted:P(),deleted:P(),changed:P(),invalid:P(),meta:js,documentMeta:P(js),annotation:P(js),processingInstruction:P(js),definition:pt.defineModifier("definition"),constant:pt.defineModifier("constant"),function:pt.defineModifier("function"),standard:pt.defineModifier("standard"),local:pt.defineModifier("local"),special:pt.defineModifier("special")};for(let t in m){let e=m[t];e instanceof pt&&(e.name=t)}RZ=tc([{tag:m.link,class:"tok-link"},{tag:m.heading,class:"tok-heading"},{tag:m.emphasis,class:"tok-emphasis"},{tag:m.strong,class:"tok-strong"},{tag:m.keyword,class:"tok-keyword"},{tag:m.atom,class:"tok-atom"},{tag:m.bool,class:"tok-bool"},{tag:m.url,class:"tok-url"},{tag:m.labelName,class:"tok-labelName"},{tag:m.inserted,class:"tok-inserted"},{tag:m.deleted,class:"tok-deleted"},{tag:m.literal,class:"tok-literal"},{tag:m.string,class:"tok-string"},{tag:m.number,class:"tok-number"},{tag:[m.regexp,m.escape,m.special(m.string)],class:"tok-string2"},{tag:m.variableName,class:"tok-variableName"},{tag:m.local(m.variableName),class:"tok-variableName tok-local"},{tag:m.definition(m.variableName),class:"tok-variableName tok-definition"},{tag:m.special(m.variableName),class:"tok-variableName2"},{tag:m.definition(m.propertyName),class:"tok-propertyName tok-definition"},{tag:m.typeName,class:"tok-typeName"},{tag:m.namespace,class:"tok-namespace"},{tag:m.className,class:"tok-className"},{tag:m.macroName,class:"tok-macroName"},{tag:m.propertyName,class:"tok-propertyName"},{tag:m.operator,class:"tok-operator"},{tag:m.comment,class:"tok-comment"},{tag:m.meta,class:"tok-meta"},{tag:m.invalid,class:"tok-invalid"},{tag:m.punctuation,class:"tok-punctuation"}])});function pc(t){return k.define({combine:t?e=>e.concat(t):void 0})}function Op(t,e,i){let n=t.facet(hi),r=_(t).topNode;if(!n||n.allowsNesting)for(let s=r;s;s=s.enter(e,i,B.ExcludeBuffers|B.EnterBracketed))s.type.isTop&&(r=s);return r}function _(t){let e=t.field(Be.state,!1);return e?e.tree:oe.empty}function mp(t,e,i){return Vt.applyChanges(t,[{fromA:e,toA:i,fromB:e,toB:i}])}function yr(t){let e=t.facet(yn);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function xn(t,e){let i="",n=t.tabSize,r=t.facet(yn)[0];if(r==" "){for(;e>=n;)i+=" ",e-=n;r=" "}for(let s=0;s<e;s++)i+=r;return i}function Us(t,e){t instanceof I&&(t=new Ei(t));for(let n of t.state.facet(Wx)){let r=n(t,e);if(r!==void 0)return r}let i=_(t.state);return i.length>=e?jx(t,i,e):null}function jx(t,e,i){let n=e.resolveStack(i),r=e.resolveInner(i,-1).resolve(i,0).enterUnfinishedNodesBefore(i);if(r!=n.node){let s=[];for(let o=r;o&&!(o.from<n.node.from||o.to>n.node.to||o.from==n.node.from&&o.type==n.node.type);o=o.parent)s.push(o);for(let o=s.length-1;o>=0;o--)n={node:s[o],next:n}}return wp(n,t,i)}function wp(t,e,i){for(let n=t;n;n=n.next){let r=Nx(n.node);if(r)return r(ac.create(e,i,n))}return 0}function Ix(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function Nx(t){let e=t.type.prop(Di);if(e)return e;let i=t.firstChild,n;if(i&&(n=i.type.prop(M.closedBy))){let r=t.lastChild,s=r&&n.indexOf(r.name)>-1;return o=>kp(o,!0,1,void 0,s&&!Ix(o)?r.from:void 0)}return t.parent==null?Fx:null}function Fx(){return 0}function Gx(t,e){for(let i=e;i;i=i.parent)if(t==i)return!0;return!1}function Ux(t){let e=t.node,i=e.childAfter(e.from),n=e.lastChild;if(!i)return null;let r=t.options.simulateBreak,s=t.state.doc.lineAt(i.from),o=r==null||r<=s.from?s.to:Math.min(s.to,r);for(let l=i.to;;){let a=e.childAfter(l);if(!a||a==n)return null;if(!a.type.isSkipped){if(a.from>=o)return null;let c=/^ */.exec(s.text.slice(i.to-s.from))[0].length;return{from:i.from,to:i.to+c}}l=a.to}}function vp({closing:t,align:e=!0,units:i=1}){return n=>kp(n,e,i,t)}function kp(t,e,i,n,r){let s=t.textAfter,o=s.match(/^\s*/)[0].length,l=n&&s.slice(o,o+n.length)==n||r==t.pos+o,a=e?Ux(t):null;return a?l?t.column(a.from):t.column(a.to):t.baseIndent+(l?0:t.unit*i)}function Sn({except:t,units:e=1}={}){return i=>{let n=t&&t.test(i.textAfter);return i.baseIndent+(n?0:e*i.unit)}}function Pp(){return I.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 i=t.newDoc,{head:n}=t.newSelection.main,r=i.lineAt(n);if(n>r.from+Hx)return t;let s=i.sliceString(r.from,n);if(!e.some(c=>c.test(s)))return t;let{state:o}=t,l=-1,a=[];for(let{head:c}of o.selection.ranges){let h=o.doc.lineAt(c);if(h.from==l)continue;l=h.from;let u=Us(o,h.from);if(u==null)continue;let f=/^\s*/.exec(h.text)[0],d=xn(o,u);f!=d&&a.push({from:h.from,to:h.from+f.length,insert:d})}return a.length?[t,{changes:a,sequential:!0}]:t})}function Hs(t){let e=t.firstChild,i=t.lastChild;return e&&e.to<i.from?{from:e.to,to:i.type.isError?t.to:i.from}:null}function Jx(t,e,i){let n=_(t);if(n.length<i)return null;let r=n.resolveStack(i,1),s=null;for(let o=r;o;o=o.next){let l=o.node;if(l.to<=i||l.from>i)continue;if(s&&l.from<e)break;let a=l.type.prop(Li);if(a&&(l.to<n.length-50||n.length==t.doc.length||!eS(l))){let c=a(l,t);c&&c.from<=i&&c.from>=e&&c.to>i&&(s=c)}}return s}function eS(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function Ns(t,e,i){for(let n of t.facet(Kx)){let r=n(t,e,i);if(r)return r}return Jx(t,e,i)}function Tp(t,e){let i=e.mapPos(t.from,1),n=e.mapPos(t.to,-1);return i>=n?void 0:{from:i,to:n}}function Cp(t){let e=[];for(let{head:i}of t.state.selection.ranges)e.some(n=>n.from<=i&&n.to>=i)||e.push(t.lineBlockAt(i));return e}function gp(t,e,i=e){let n=!1;return t.between(e,i,(r,s)=>{r<i&&s>e&&(n=!0)}),n?t.update({filterFrom:e,filterTo:i,filter:(r,s)=>r>=i||s<=e}):t}function Fs(t,e,i){var n;let r=null;return(n=t.field(zi,!1))===null||n===void 0||n.between(e,i,(s,o)=>{(!r||r.from>s)&&(r={from:s,to:o})}),r}function tS(t,e,i){let n=!1;return t.between(e,e,(r,s)=>{r==e&&s==i&&(n=!0)}),n}function Ap(t,e){return t.field(zi,!1)?e:e.concat(R.appendConfig.of(Xp()))}function Zp(t,e,i=!0){let n=t.state.doc.lineAt(e.from).number,r=t.state.doc.lineAt(e.to).number;return w.announce.of(`${t.state.phrase(i?"Folded lines":"Unfolded lines")} ${n} ${t.state.phrase("to")} ${r}.`)}function Xp(t){let e=[zi,aS];return t&&e.push(Oc.of(t)),e}function Mp(t,e){let{state:i}=t,n=i.facet(Oc),r=o=>{let l=t.lineBlockAt(t.posAtDOM(o.target)),a=Fs(t.state,l.from,l.to);a&&t.dispatch({effects:xr.of(a)}),o.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(t,r,e);let s=document.createElement("span");return s.textContent=n.placeholderText,s.setAttribute("aria-label",i.phrase("folded code")),s.title=i.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=r,s}function Ep(t={}){let e={...lS,...t},i=new gr(e,!0),n=new gr(e,!1),r=J.fromClass(class{constructor(o){this.from=o.viewport.from,this.markers=this.buildMarkers(o)}update(o){(o.docChanged||o.viewportChanged||o.startState.facet(hi)!=o.state.facet(hi)||o.startState.field(zi,!1)!=o.state.field(zi,!1)||_(o.startState)!=_(o.state)||e.foldingChanged(o))&&(this.markers=this.buildMarkers(o.view))}buildMarkers(o){let l=new Le;for(let a of o.viewportLineBlocks){let c=Fs(o.state,a.from,a.to)?n:Ns(o.state,a.from,a.to)?i:null;c&&l.add(a.from,a.from,c)}return l.finish()}}),{domEventHandlers:s}=e;return[r,Ds({class:"cm-foldGutter",markers(o){var l;return((l=o.plugin(r))===null||l===void 0?void 0:l.markers)||V.empty},initialSpacer(){return new gr(e,!1)},domEventHandlers:{...s,click:(o,l,a)=>{if(s.click&&s.click(o,l,a))return!0;let c=Fs(o.state,l.from,l.to);if(c)return o.dispatch({effects:xr.of(c)}),!0;let h=Ns(o.state,l.from,l.to);return h?(o.dispatch({effects:Ks.of(h)}),!0):!1}}}),Xp()]}function rc(t){let e=t.facet(hc);return e.length?e:t.facet(zp)}function Qn(t,e){let i=[cS],n;return t instanceof bn&&(t.module&&i.push(w.styleModule.of(t.module)),n=t.themeType),e?.fallback?i.push(zp.of(t)):n?i.push(hc.computeN([w.darkTheme],r=>r.facet(w.darkTheme)==(n=="dark")?[t]:[])):i.push(hc.of(t)),i}function dS(t){let e=[],i=t.matched?uS:fS;return e.push(i.range(t.start.from,t.start.to)),t.end&&e.push(i.range(t.end.from,t.end.to)),e}function Vp(t={}){return[qp.of(t),OS]}function fc(t,e,i){let n=t.prop(e<0?M.openedBy:M.closedBy);if(n)return n;if(t.name.length==1){let r=i.indexOf(t.name);if(r>-1&&r%2==(e<0?1:0))return[i[r+e]]}return null}function dc(t){let e=t.type.prop(mc);return e?e(t.node):t}function Ot(t,e,i,n={}){let r=n.maxScanDistance||Dp,s=n.brackets||Lp,o=_(t),l=o.resolveInner(e,i);for(let a=l;a;a=a.parent){let c=fc(a.type,i,s);if(c&&a.from<a.to){let h=dc(a);if(h&&(i>0?e>=h.from&&e<h.to:e>h.from&&e<=h.to))return mS(t,e,i,a,h,c,s)}}return gS(t,e,i,o,l.type,r,s)}function mS(t,e,i,n,r,s,o){let l=n.parent,a={from:r.from,to:r.to},c=0,h=l?.cursor();if(h&&(i<0?h.childBefore(n.from):h.childAfter(n.to)))do if(i<0?h.to<=n.from:h.from>=n.to){if(c==0&&s.indexOf(h.type.name)>-1&&h.from<h.to){let u=dc(h);return{start:a,end:u?{from:u.from,to:u.to}:void 0,matched:!0}}else if(fc(h.type,i,o))c++;else if(fc(h.type,-i,o)){if(c==0){let u=dc(h);return{start:a,end:u&&u.from<u.to?{from:u.from,to:u.to}:void 0,matched:!1}}c--}}while(i<0?h.prevSibling():h.nextSibling());return{start:a,matched:!1}}function gS(t,e,i,n,r,s,o){let l=i<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),a=o.indexOf(l);if(a<0||a%2==0!=i>0)return null;let c={from:i<0?e-1:e,to:i>0?e+1:e},h=t.doc.iterRange(e,i>0?t.doc.length:0),u=0;for(let f=0;!h.next().done&&f<=s;){let d=h.value;i<0&&(f+=d.length);let p=e+f*i;for(let O=i>0?0:d.length-1,g=i>0?d.length:-1;O!=g;O+=i){let b=o.indexOf(d[O]);if(!(b<0||n.resolveInner(p+O,1).type!=r))if(b%2==0==i>0)u++;else{if(u==1)return{start:c,end:{from:p+O,to:p+O+1},matched:b>>1==a>>1};u--}}i>0&&(f+=d.length)}return h.done?{start:c,matched:!1}:null}function sc(t,e){xp.indexOf(t)>-1||(xp.push(t),console.warn(e))}function xS(t,e){let i=[];for(let l of e.split(" ")){let a=[];for(let c of l.split(".")){let h=t[c]||m[c];h?typeof h=="function"?a.length?a=a.map(h):sc(c,`Modifier ${c} used at start of tag`):a.length?sc(c,`Tag ${c} used as modifier`):a=Array.isArray(h)?h:[h]:sc(c,`Unknown highlighting tag ${c}`)}for(let c of a)i.push(c)}if(!i.length)return 0;let n=e.replace(/ /g,"_"),r=n+" "+i.map(l=>l.id),s=Sp[r];if(s)return s.id;let o=Sp[r]=Se.define({id:yp.length,name:n,props:[ai({[n]:i})]});return yp.push(o),o.id}var ic,gn,Gs,Be,ci,oc,mr,lc,br,Qp,nc,Yx,hi,ui,Wx,yn,Ei,Di,ac,$p,Hx,Kx,Li,Ks,xr,zi,iS,nS,rS,sS,Rp,oS,Oc,bp,cc,lS,gr,aS,bn,hc,zp,uc,cS,Js,hS,Dp,Lp,qp,uS,fS,pS,OS,mc,bS,yp,xp,Sp,yS,VZ,mt=K(()=>{si();Ke();_e();mn();$l();gn=new M;Gs=new M,Be=class{constructor(e,i,n=[],r=""){this.data=e,this.name=r,I.prototype.hasOwnProperty("tree")||Object.defineProperty(I.prototype,"tree",{get(){return _(this)}}),this.parser=i,this.extension=[hi.of(this),I.languageData.of((s,o,l)=>{let a=Op(s,o,l),c=a.type.prop(gn);if(!c)return[];let h=s.facet(c),u=a.type.prop(Gs);if(u){let f=a.resolve(o-a.from,l);for(let d of u)if(d.test(f,s)){let p=s.facet(d.facet);return d.type=="replace"?p:p.concat(h)}}return h})].concat(n)}isActiveAt(e,i,n=-1){return Op(e,i,n).type.prop(gn)==this.data}findRegions(e){let i=e.facet(hi);if(i?.data==this.data)return[{from:0,to:e.doc.length}];if(!i||!i.allowsNesting)return[];let n=[],r=(s,o)=>{if(s.prop(gn)==this.data){n.push({from:o,to:o+s.length});return}let l=s.prop(M.mounted);if(l){if(l.tree.prop(gn)==this.data){if(l.overlay)for(let a of l.overlay)n.push({from:a.from+o,to:a.to+o});else n.push({from:o,to:o+s.length});return}else if(l.overlay){let a=n.length;if(r(l.tree,l.overlay[0].from+o),n.length>a)return}}for(let a=0;a<s.children.length;a++){let c=s.children[a];c instanceof oe&&r(c,s.positions[a]+o)}};return r(_(e),0),n}get allowsNesting(){return!0}};Be.setState=R.define();ci=class t extends Be{constructor(e,i,n){super(e,i,[],n),this.parser=i}static define(e){let i=pc(e.languageData);return new t(i,e.parser.configure({props:[gn.add(n=>n.isTop?i:void 0)]}),e.name)}configure(e,i){return new t(this.data,this.parser.configure(e),i||this.name)}get allowsNesting(){return this.parser.hasWrappers()}};oc=class{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,i){let n=this.cursorPos-this.string.length;return e<n||i>=this.cursorPos?this.doc.sliceString(e,i):this.string.slice(e-n,i-n)}},mr=null,lc=class t{constructor(e,i,n=[],r,s,o,l,a){this.parser=e,this.state=i,this.fragments=n,this.tree=r,this.treeLen=s,this.viewport=o,this.skipped=l,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,i,n){return new t(e,i,[],oe.empty,0,n,[],null)}startParse(){return this.parser.startParse(new oc(this.state.doc),this.fragments)}work(e,i){return i!=null&&i>=this.state.doc.length&&(i=void 0),this.tree!=oe.empty&&this.isDone(i??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if(typeof e=="number"){let r=Date.now()+e;e=()=>Date.now()>r}for(this.parse||(this.parse=this.startParse()),i!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>i)&&i<this.state.doc.length&&this.parse.stopAt(i);;){let r=this.parse.advance();if(r)if(this.fragments=this.withoutTempSkipped(Vt.addTree(r,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(n=this.parse.stoppedAt)!==null&&n!==void 0?n:this.state.doc.length,this.tree=r,this.parse=null,this.treeLen<(i??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,i;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(i=this.parse.advance()););}),this.treeLen=e,this.tree=i,this.fragments=this.withoutTempSkipped(Vt.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let i=mr;mr=this;try{return e()}finally{mr=i}}withoutTempSkipped(e){for(let i;i=this.tempSkipped.pop();)e=mp(e,i.from,i.to);return e}changes(e,i){let{fragments:n,tree:r,treeLen:s,viewport:o,skipped:l}=this;if(this.takeTree(),!e.empty){let a=[];if(e.iterChangedRanges((c,h,u,f)=>a.push({fromA:c,toA:h,fromB:u,toB:f})),n=Vt.applyChanges(n,a),r=oe.empty,s=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){l=[];for(let c of this.skipped){let h=e.mapPos(c.from,1),u=e.mapPos(c.to,-1);h<u&&l.push({from:h,to:u})}}}return new t(this.parser,i,n,r,s,o,l,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let i=this.skipped.length;for(let n=0;n<this.skipped.length;n++){let{from:r,to:s}=this.skipped[n];r<e.to&&s>e.from&&(this.fragments=mp(this.fragments,r,s),this.skipped.splice(n--,1))}return this.skipped.length>=i?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,i){this.skipped.push({from:e,to:i})}static getSkippingParser(e){return new class extends On{createParse(i,n,r){let s=r[0].from,o=r[r.length-1].to;return{parsedPos:s,advance(){let a=mr;if(a){for(let c of r)a.tempSkipped.push(c);e&&(a.scheduleOn=a.scheduleOn?Promise.all([a.scheduleOn,e]):e)}return this.parsedPos=o,new oe(Se.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let i=this.fragments;return this.treeLen>=e&&i.length&&i[0].from==0&&i[0].to>=e}static get(){return mr}};br=class t{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let i=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),i.viewport.to);return i.work(20,n)||i.takeTree(),new t(i)}static init(e){let i=Math.min(3e3,e.doc.length),n=lc.create(e.facet(hi).parser,e,{from:0,to:i});return n.work(20,i)||n.takeTree(),new t(n)}};Be.state=F.define({create:br.init,update(t,e){for(let i of e.effects)if(i.is(Be.setState))return i.value;return e.startState.facet(hi)!=e.state.facet(hi)?br.init(e.state):t.apply(e)}});Qp=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(Qp=t=>{let e=-1,i=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(i):cancelIdleCallback(e)});nc=typeof navigator<"u"&&(!((ic=navigator.scheduling)===null||ic===void 0)&&ic.isInputPending)?()=>navigator.scheduling.isInputPending():null,Yx=J.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let i=this.view.state.field(Be.state).context;(i.updateViewport(e.view.viewport)||this.view.viewport.to>i.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(i)}scheduleWork(){if(this.working)return;let{state:e}=this.view,i=e.field(Be.state);(i.tree!=i.context.tree||!i.context.isDone(e.doc.length))&&(this.working=Qp(this.work))}work(e){this.working=null;let i=Date.now();if(this.chunkEnd<i&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=i+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,s=n.field(Be.state);if(s.tree==s.context.tree&&s.context.isDone(r+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!nc?Math.max(25,e.timeRemaining()-5):1e9),l=s.context.treeLen<r&&n.doc.length>r+1e3,a=s.context.work(()=>nc&&nc()||Date.now()>o,r+(l?0:1e5));this.chunkBudget-=Date.now()-i,(a||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:Be.setState.of(new br(s.context))})),this.chunkBudget>0&&!(a&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(i=>de(this.view.state,i)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),hi=k.define({combine(t){return t.length?t[0]:null},enables:t=>[Be.state,Yx,w.contentAttributes.compute([t],e=>{let i=e.facet(t);return i&&i.name?{"data-language":i.name}:{}})]}),ui=class{constructor(e,i=[]){this.language=e,this.support=i,this.extension=[e,i]}},Wx=k.define(),yn=k.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(i=>i!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});Ei=class{constructor(e,i={}){this.state=e,this.options=i,this.unit=yr(e)}lineAt(e,i=1){let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:s}=this.options;return r!=null&&r>=n.from&&r<=n.to?s&&r==e?{text:"",from:e}:(i<0?r<e:r<=e)?{text:n.text.slice(r-n.from),from:r}:{text:n.text.slice(0,r-n.from),from:n.from}:n}textAfterPos(e,i=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:r}=this.lineAt(e,i);return n.slice(e-r,Math.min(n.length,e+100-r))}column(e,i=1){let{text:n,from:r}=this.lineAt(e,i),s=this.countColumn(n,e-r),o=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return o>-1&&(s+=o-this.countColumn(n,n.search(/\S|$/))),s}countColumn(e,i=e.length){return zt(e,this.state.tabSize,i)}lineIndent(e,i=1){let{text:n,from:r}=this.lineAt(e,i),s=this.options.overrideIndentation;if(s){let o=s(r);if(o>-1)return o}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}},Di=new M;ac=class t extends Ei{constructor(e,i,n){super(e.state,e.options),this.base=e,this.pos=i,this.context=n}get node(){return this.context.node}static create(e,i,n){return new t(e,i,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let i=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(i.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(Gx(n,e))break;i=this.state.doc.lineAt(n.from)}return this.lineIndent(i.from)}continue(){return wp(this.context.next,this.base,this.pos)}};$p=t=>t.baseIndent;Hx=200;Kx=k.define(),Li=new M;Ks=R.define({map:Tp}),xr=R.define({map:Tp});zi=F.define({create(){return T.none},update(t,e){e.isUserEvent("delete")&&e.changes.iterChangedRanges((i,n)=>t=gp(t,i,n)),t=t.map(e.changes);for(let i of e.effects)if(i.is(Ks)&&!tS(t,i.value.from,i.value.to)){let{preparePlaceholder:n}=e.state.facet(Oc),r=n?T.replace({widget:new cc(n(e.state,i.value))}):bp;t=t.update({add:[r.range(i.value.from,i.value.to)]})}else i.is(xr)&&(t=t.update({filter:(n,r)=>i.value.from!=n||i.value.to!=r,filterFrom:i.value.from,filterTo:i.value.to}));return e.selection&&(t=gp(t,e.selection.main.head)),t},provide:t=>w.decorations.from(t),toJSON(t,e){let i=[];return t.between(0,e.doc.length,(n,r)=>{i.push(n,r)}),i},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let i=0;i<t.length;){let n=t[i++],r=t[i++];if(typeof n!="number"||typeof r!="number")throw new RangeError("Invalid JSON for fold state");e.push(bp.range(n,r))}return T.set(e,!0)}});iS=t=>{for(let e of Cp(t)){let i=Ns(t.state,e.from,e.to);if(i)return t.dispatch({effects:Ap(t.state,[Ks.of(i),Zp(t,i)])}),!0}return!1},nS=t=>{if(!t.state.field(zi,!1))return!1;let e=[];for(let i of Cp(t)){let n=Fs(t.state,i.from,i.to);n&&e.push(xr.of(n),Zp(t,n,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};rS=t=>{let{state:e}=t,i=[];for(let n=0;n<e.doc.length;){let r=t.lineBlockAt(n),s=Ns(e,r.from,r.to);s&&i.push(Ks.of(s)),n=(s?t.lineBlockAt(s.to):r).to+1}return i.length&&t.dispatch({effects:Ap(t.state,i)}),!!i.length},sS=t=>{let e=t.state.field(zi,!1);if(!e||!e.size)return!1;let i=[];return e.between(0,t.state.doc.length,(n,r)=>{i.push(xr.of({from:n,to:r}))}),t.dispatch({effects:i}),!0},Rp=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:iS},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:nS},{key:"Ctrl-Alt-[",run:rS},{key:"Ctrl-Alt-]",run:sS}],oS={placeholderDOM:null,preparePlaceholder:null,placeholderText:"\u2026"},Oc=k.define({combine(t){return be(t,oS)}});bp=T.replace({widget:new class extends xe{toDOM(t){return Mp(t,null)}}}),cc=class extends xe{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return Mp(e,this.value)}},lS={openText:"\u2304",closedText:"\u203A",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1},gr=class extends Xe{constructor(e,i){super(),this.config=e,this.open=i}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let i=document.createElement("span");return i.textContent=this.open?this.config.openText:this.config.closedText,i.title=e.state.phrase(this.open?"Fold line":"Unfold line"),i}};aS=w.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"}}),bn=class t{constructor(e,i){this.specs=e;let n;function r(l){let a=Je.newName();return(n||(n=Object.create(null)))["."+a]=l,a}let s=typeof i.all=="string"?i.all:i.all?r(i.all):void 0,o=i.scope;this.scope=o instanceof Be?l=>l.prop(gn)==o.data:o?l=>l==o:void 0,this.style=tc(e.map(l=>({tag:l.tag,class:l.class||r(Object.assign({},l,{tag:null}))})),{all:s}).style,this.module=n?new Je(n):null,this.themeType=i.themeType}static define(e,i){return new t(e,i||{})}},hc=k.define(),zp=k.define({combine(t){return t.length?[t[0]]:null}});uc=class{constructor(e){this.markCache=Object.create(null),this.tree=_(e.state),this.decorations=this.buildDeco(e,rc(e.state)),this.decoratedTo=e.viewport.to}update(e){let i=_(e.state),n=rc(e.state),r=n!=rc(e.startState),{viewport:s}=e.view,o=e.changes.mapPos(this.decoratedTo,1);i.length<s.to&&!r&&i.type==this.tree.type&&o>=s.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(i!=this.tree||e.viewportChanged||r)&&(this.tree=i,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=s.to)}buildDeco(e,i){if(!i||!this.tree.length)return T.none;let n=new Le;for(let{from:r,to:s}of e.visibleRanges)pp(this.tree,i,(o,l,a)=>{n.add(o,l,this.markCache[a]||(this.markCache[a]=T.mark({class:a})))},r,s);return n.finish()}},cS=He.high(J.fromClass(uc,{decorations:t=>t.decorations})),Js=bn.define([{tag:m.meta,color:"#404740"},{tag:m.link,textDecoration:"underline"},{tag:m.heading,textDecoration:"underline",fontWeight:"bold"},{tag:m.emphasis,fontStyle:"italic"},{tag:m.strong,fontWeight:"bold"},{tag:m.strikethrough,textDecoration:"line-through"},{tag:m.keyword,color:"#708"},{tag:[m.atom,m.bool,m.url,m.contentSeparator,m.labelName],color:"#219"},{tag:[m.literal,m.inserted],color:"#164"},{tag:[m.string,m.deleted],color:"#a11"},{tag:[m.regexp,m.escape,m.special(m.string)],color:"#e40"},{tag:m.definition(m.variableName),color:"#00f"},{tag:m.local(m.variableName),color:"#30a"},{tag:[m.typeName,m.namespace],color:"#085"},{tag:m.className,color:"#167"},{tag:[m.special(m.variableName),m.macroName],color:"#256"},{tag:m.definition(m.propertyName),color:"#00c"},{tag:m.comment,color:"#940"},{tag:m.invalid,color:"#f00"}]),hS=w.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Dp=1e4,Lp="()[]{}",qp=k.define({combine(t){return be(t,{afterCursor:!0,brackets:Lp,maxScanDistance:Dp,renderMatch:dS})}}),uS=T.mark({class:"cm-matchingBracket"}),fS=T.mark({class:"cm-nonmatchingBracket"});pS=F.define({create(){return T.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let i=[],n=e.state.facet(qp);for(let r of e.state.selection.ranges){if(!r.empty)continue;let s=Ot(e.state,r.head,-1,n)||r.head>0&&Ot(e.state,r.head-1,1,n)||n.afterCursor&&(Ot(e.state,r.head,1,n)||r.head<e.state.doc.length&&Ot(e.state,r.head+1,-1,n));s&&(i=i.concat(n.renderMatch(s,e.state)))}return T.set(i,!0)},provide:t=>w.decorations.from(t)}),OS=[pS,hS];mc=new M;bS=Object.create(null),yp=[Se.none],xp=[],Sp=Object.create(null),yS=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"]])yS[t]=xS(bS,e);VZ={rtl:T.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"rtl"},bidiIsolate:G.RTL}),ltr:T.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"ltr"},bidiIsolate:G.LTR}),auto:T.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"auto"},bidiIsolate:null})}});function Qc(t,e){return({state:i,dispatch:n})=>{if(i.readOnly)return!1;let r=t(e,i);return r?(n(i.update(r)),!0):!1}}function wc(t,e){let i=t.languageDataAt("commentTokens",e,1);return i.length?i[0]:{}}function kS(t,{open:e,close:i},n,r){let s=t.sliceDoc(n-Sr,n),o=t.sliceDoc(r,r+Sr),l=/\s*$/.exec(s)[0].length,a=/^\s*/.exec(o)[0].length,c=s.length-l;if(s.slice(c-e.length,c)==e&&o.slice(a,a+i.length)==i)return{open:{pos:n-l,margin:l&&1},close:{pos:r+a,margin:a&&1}};let h,u;r-n<=2*Sr?h=u=t.sliceDoc(n,r):(h=t.sliceDoc(n,n+Sr),u=t.sliceDoc(r-Sr,r));let f=/^\s*/.exec(h)[0].length,d=/\s*$/.exec(u)[0].length,p=u.length-d-i.length;return h.slice(f,f+e.length)==e&&u.slice(p,p+i.length)==i?{open:{pos:n+f+e.length,margin:/\s/.test(h.charAt(f+e.length))?1:0},close:{pos:r-d-i.length,margin:/\s/.test(u.charAt(p-1))?1:0}}:null}function $S(t){let e=[];for(let i of t.selection.ranges){let n=t.doc.lineAt(i.from),r=i.to<=n.to?n:t.doc.lineAt(i.to);r.from>n.from&&r.from==i.to&&(r=i.to==n.to+1?n:t.doc.lineAt(i.to-1));let s=e.length-1;s>=0&&e[s].to>n.from?e[s].to=r.to:e.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:r.to})}return e}function Gp(t,e,i=e.selection.ranges){let n=i.map(s=>wc(e,s.from).block);if(!n.every(s=>s))return null;let r=i.map((s,o)=>kS(e,n[o],s.from,s.to));if(t!=2&&!r.every(s=>s))return{changes:e.changes(i.map((s,o)=>r[o]?[]:[{from:s.from,insert:n[o].open+" "},{from:s.to,insert:" "+n[o].close}]))};if(t!=1&&r.some(s=>s)){let s=[];for(let o=0,l;o<r.length;o++)if(l=r[o]){let a=n[o],{open:c,close:h}=l;s.push({from:c.pos-a.open.length,to:c.pos+c.margin},{from:h.pos-h.margin,to:h.pos+a.close.length})}return{changes:s}}return null}function PS(t,e,i=e.selection.ranges){let n=[],r=-1;for(let{from:s,to:o}of i){let l=n.length,a=1e9,c=wc(e,s).line;if(c){for(let h=s;h<=o;){let u=e.doc.lineAt(h);if(u.from>r&&(s==o||o>u.from)){r=u.from;let f=/^\s*/.exec(u.text)[0].length,d=f==u.length,p=u.text.slice(f,f+c.length)==c?f:-1;f<u.text.length&&f<a&&(a=f),n.push({line:u,comment:p,token:c,indent:f,empty:d,single:!1})}h=u.to+1}if(a<1e9)for(let h=l;h<n.length;h++)n[h].indent<n[h].line.text.length&&(n[h].indent=a);n.length==l+1&&(n[l].single=!0)}}if(t!=2&&n.some(s=>s.comment<0&&(!s.empty||s.single))){let s=[];for(let{line:l,token:a,indent:c,empty:h,single:u}of n)(u||!h)&&s.push({from:l.from+c,insert:a+" "});let o=e.changes(s);return{changes:o,selection:e.selection.map(o,1)}}else if(t!=1&&n.some(s=>s.comment>=0)){let s=[];for(let{line:o,comment:l,token:a}of n)if(l>=0){let c=o.from+l,h=c+a.length;o.text[h-o.from]==" "&&h++,s.push({from:c,to:h})}return{changes:s}}return null}function Kp(t={}){return[Hp,Up.of(t),w.domEventHandlers({beforeinput(e,i){let n=e.inputType=="historyUndo"?no:e.inputType=="historyRedo"?yc:null;return n?(e.preventDefault(),n(i)):!1}})]}function io(t,e){return function({state:i,dispatch:n}){if(!e&&i.readOnly)return!1;let r=i.field(Hp,!1);if(!r)return!1;let s=r.pop(t,i,e);return s?(n(s),!0):!1}}function to(t,e,i,n){let r=e+1>i+20?e-i-1:0,s=t.slice(r,e);return s.push(n),s}function RS(t,e){let i=[],n=!1;return t.iterChangedRanges((r,s)=>i.push(r,s)),e.iterChangedRanges((r,s,o,l)=>{for(let a=0;a<i.length;){let c=i[a++],h=i[a++];l>=c&&o<=h&&(n=!0)}}),n}function XS(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((i,n)=>i.empty!=e.ranges[n].empty).length===0}function Jp(t,e){return t.length?e.length?t.concat(e):t:e}function eO(t,e){if(t.length){let i=t[t.length-1],n=i.selectionsAfter.slice(Math.max(0,i.selectionsAfter.length-MS));return n.length&&n[n.length-1].eq(e)?t:(n.push(e),to(t,t.length-1,1e9,i.setSelAfter(n)))}else return[gt.selection([e])]}function ES(t){let e=t[t.length-1],i=t.slice();return i[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),i}function gc(t,e){if(!t.length)return t;let i=t.length,n=nt;for(;i;){let r=zS(t[i-1],e,n);if(r.changes&&!r.changes.empty||r.effects.length){let s=t.slice(0,i);return s[i-1]=r,s}else e=r.mapped,i--,n=r.selectionsAfter}return n.length?[gt.selection(n)]:nt}function zS(t,e,i){let n=Jp(t.selectionsAfter.length?t.selectionsAfter.map(l=>l.map(e)):nt,i);if(!t.changes)return gt.selection(n);let r=t.changes.map(e),s=e.mapDesc(t.changes,!0),o=t.mapped?t.mapped.composeDesc(s):s;return new gt(r,R.mapEffects(t.effects,e),o,t.startSelection.map(s),n)}function wn(t,e){return y.create(t.ranges.map(e),t.mainIndex)}function bt(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function yt({state:t,dispatch:e},i){let n=wn(t.selection,i);return n.eq(t.selection,!0)?!1:(e(bt(t,n)),!0)}function ro(t,e){return y.cursor(e?t.to:t.from)}function iO(t,e){return yt(t,i=>i.empty?t.moveByChar(i,e):ro(i,e))}function ve(t){return t.textDirectionAt(t.state.selection.main.head)==G.LTR}function sO(t,e){return yt(t,i=>i.empty?t.moveByGroup(i,e):ro(i,e))}function VS(t,e,i){if(e.type.prop(i))return!0;let n=e.to-e.from;return n&&(n>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function so(t,e,i){let n=_(t).resolveInner(e.head),r=i?M.closedBy:M.openedBy;for(let a=e.head;;){let c=i?n.childAfter(a):n.childBefore(a);if(!c)break;VS(t,c,r)?n=c:a=i?c.to:c.from}let s=n.type.prop(r),o,l;return s&&(o=i?Ot(t,n.from,1):Ot(t,n.to,-1))&&o.matched?l=i?o.end.to:o.end.from:l=i?n.to:n.from,y.cursor(l,i?-1:1)}function oO(t,e){return yt(t,i=>{if(!i.empty)return ro(i,e);let n=t.moveVertically(i,e);return n.head!=i.head?n:t.moveToLineBoundary(i,e)})}function cO(t){let e=t.scrollDOM.clientHeight<t.scrollDOM.scrollHeight-2,i=0,n=0,r;if(e){for(let s of t.state.facet(w.scrollMargins)){let o=s(t);o?.top&&(i=Math.max(o?.top,i)),o?.bottom&&(n=Math.max(o?.bottom,n))}r=t.scrollDOM.clientHeight-i-n}else r=(t.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:i,marginBottom:n,selfScroll:e,height:Math.max(t.defaultLineHeight,r-5)}}function hO(t,e){let i=cO(t),{state:n}=t,r=wn(n.selection,o=>o.empty?t.moveVertically(o,e,i.height):ro(o,e));if(r.eq(n.selection))return!1;let s;if(i.selfScroll){let o=t.coordsAtPos(n.selection.main.head),l=t.scrollDOM.getBoundingClientRect(),a=l.top+i.marginTop,c=l.bottom-i.marginBottom;o&&o.top>a&&o.bottom<c&&(s=w.scrollIntoView(r.main.head,{y:"start",yMargin:o.top-a}))}return t.dispatch(bt(n,r),{effects:s}),!0}function fi(t,e,i){let n=t.lineBlockAt(e.head),r=t.moveToLineBoundary(e,i);if(r.head==e.head&&r.head!=(i?n.to:n.from)&&(r=t.moveToLineBoundary(e,i,!1)),!i&&r.head==n.from&&n.length){let s=/^\s*/.exec(t.state.sliceDoc(n.from,Math.min(n.from+100,n.to)))[0].length;s&&e.head!=n.from+s&&(r=y.cursor(n.from+s))}return r}function GS(t,e,i){let n=!1,r=wn(t.selection,s=>{let o=Ot(t,s.head,-1)||Ot(t,s.head,1)||s.head>0&&Ot(t,s.head-1,1)||s.head<t.doc.length&&Ot(t,s.head+1,-1);if(!o||!o.end)return s;n=!0;let l=o.start.from==s.head?o.end.to:o.end.from;return i?y.range(s.anchor,l):y.cursor(l)});return n?(e(bt(t,r)),!0):!1}function rt(t,e){let i=wn(t.state.selection,n=>{let r=e(n);return y.range(n.anchor,r.head,r.goalColumn,r.bidiLevel||void 0)});return i.eq(t.state.selection)?!1:(t.dispatch(bt(t.state,i)),!0)}function uO(t,e){return rt(t,i=>t.moveByChar(i,e))}function pO(t,e){return rt(t,i=>t.moveByGroup(i,e))}function OO(t,e){return rt(t,i=>t.moveVertically(i,e))}function bO(t,e){return rt(t,i=>t.moveVertically(i,e,cO(t).height))}function yO(t,e){let{state:i}=t,n=i.selection,r=i.selection.ranges.slice();for(let s of i.selection.ranges){let o=i.doc.lineAt(s.head);if(e?o.to<t.state.doc.length:o.from>0)for(let l=s;;){let a=t.moveVertically(l,e);if(a.head<o.from||a.head>o.to){r.some(c=>c.head==a.head)||r.push(a);break}else{if(a.head==l.head)break;l=a}}}return r.length==n.ranges.length?!1:(t.dispatch(bt(i,y.create(r,r.length-1))),!0)}function Qr(t,e){if(t.state.readOnly)return!1;let i="delete.selection",{state:n}=t,r=n.changeByRange(s=>{let{from:o,to:l}=s;if(o==l){let a=e(s);a<o?(i="delete.backward",a=eo(t,a,!1)):a>o&&(i="delete.forward",a=eo(t,a,!0)),o=Math.min(o,a),l=Math.max(l,a)}else o=eo(t,o,!1),l=eo(t,l,!0);return o==l?{range:s}:{changes:{from:o,to:l},range:y.cursor(o,o<s.head?-1:1)}});return r.changes.empty?!1:(t.dispatch(n.update(r,{scrollIntoView:!0,userEvent:i,effects:i=="delete.selection"?w.announce.of(n.phrase("Selection deleted")):void 0})),!0)}function eo(t,e,i){if(t instanceof w)for(let n of t.state.facet(w.atomicRanges).map(r=>r(t)))n.between(e,e,(r,s)=>{r<e&&s>e&&(e=i?s:r)});return e}function oo(t){let e=[],i=-1;for(let n of t.selection.ranges){let r=t.doc.lineAt(n.from),s=t.doc.lineAt(n.to);if(!n.empty&&n.to==s.from&&(s=t.doc.lineAt(n.to-1)),i>=r.number){let o=e[e.length-1];o.to=s.to,o.ranges.push(n)}else e.push({from:r.from,to:s.to,ranges:[n]});i=s.number+1}return e}function vO(t,e,i){if(t.readOnly)return!1;let n=[],r=[];for(let s of oo(t)){if(i?s.to==t.doc.length:s.from==0)continue;let o=t.doc.lineAt(i?s.to+1:s.from-1),l=o.length+1;if(i){n.push({from:s.to,to:o.to},{from:s.from,insert:o.text+t.lineBreak});for(let a of s.ranges)r.push(y.range(Math.min(t.doc.length,a.anchor+l),Math.min(t.doc.length,a.head+l)))}else{n.push({from:o.from,to:s.from},{from:s.to,insert:t.lineBreak+o.text});for(let a of s.ranges)r.push(y.range(a.anchor-l,a.head-l))}}return n.length?(e(t.update({changes:n,scrollIntoView:!0,selection:y.create(r,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}function kO(t,e,i){if(t.readOnly)return!1;let n=[];for(let s of oo(t))i?n.push({from:s.from,insert:t.doc.slice(s.from,s.to)+t.lineBreak}):n.push({from:s.to,insert:t.lineBreak+t.doc.slice(s.from,s.to)});let r=t.changes(n);return e(t.update({changes:r,selection:t.selection.map(r,i?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}function vQ(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let i=_(t).resolveInner(e),n=i.childBefore(e),r=i.childAfter(e),s;return n&&r&&n.to<=e&&r.from>=e&&(s=n.type.prop(M.closedBy))&&s.indexOf(r.name)>-1&&t.doc.lineAt(n.to).from==t.doc.lineAt(r.from).from&&!/\S/.test(t.sliceDoc(n.to,r.from))?{from:n.to,to:r.from}:null}function $O(t){return({state:e,dispatch:i})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>{let{from:s,to:o}=r,l=e.doc.lineAt(s),a=!t&&s==o&&vQ(e,s);t&&(s=o=(o<=l.to?l:e.doc.lineAt(o)).to);let c=new Ei(e,{simulateBreak:s,simulateDoubleBreak:!!a}),h=Us(c,s);for(h==null&&(h=zt(/^\s*/.exec(e.doc.lineAt(s).text)[0],e.tabSize));o<l.to&&/\s/.test(l.text[o-l.from]);)o++;a?{from:s,to:o}=a:s>l.from&&s<l.from+100&&!/\S/.test(l.text.slice(0,s))&&(s=l.from);let u=["",xn(e,h)];return a&&u.push(xn(e,c.lineIndent(l.from,-1))),{changes:{from:s,to:o,insert:q.of(u)},range:y.cursor(s+1+u[1].length)}});return i(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}}function vc(t,e){let i=-1;return t.changeByRange(n=>{let r=[];for(let o=n.from;o<=n.to;){let l=t.doc.lineAt(o);l.number>i&&(n.empty||n.to>l.from)&&(e(l,r,n),i=l.number),o=l.to+1}let s=t.changes(r);return{changes:r,range:y.range(s.mapPos(n.anchor,1),s.mapPos(n.head,1))}})}var SS,QS,wS,vS,Sr,bc,TS,CS,Up,Hp,no,yc,AS,ZS,gt,nt,MS,DS,qi,tO,nO,rO,LS,qS,GZ,_S,BS,lO,aO,_p,xc,YS,WS,jS,IS,NS,FS,US,fO,dO,HS,KS,JS,eQ,mO,gO,Bp,Yp,tQ,iQ,nQ,rQ,sQ,oQ,Wp,jp,Ip,Np,lQ,aQ,cQ,hQ,uQ,fQ,xO,Sc,SO,QO,wO,dQ,pQ,OQ,mQ,gQ,bQ,yQ,xQ,SQ,QQ,wQ,Fp,kQ,$Q,PQ,TQ,CQ,AQ,ZQ,PO,kc=K(()=>{Ke();_e();mt();si();SS=t=>{let{state:e}=t,i=e.doc.lineAt(e.selection.main.from),n=wc(t.state,i.from);return n.line?QS(t):n.block?vS(t):!1};QS=Qc(PS,0),wS=Qc(Gp,0),vS=Qc((t,e)=>Gp(t,e,$S(e)),0);Sr=50;bc=Ze.define(),TS=Ze.define(),CS=k.define(),Up=k.define({combine(t){return be(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,i)=>i},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,i)=>(n,r)=>e(n,r)||i(n,r)})}}),Hp=F.define({create(){return qi.empty},update(t,e){let i=e.state.facet(Up),n=e.annotation(bc);if(n){let a=gt.fromTransaction(e,n.selection),c=n.side,h=c==0?t.undone:t.done;return a?h=to(h,h.length,i.minDepth,a):h=eO(h,e.startState.selection),new qi(c==0?n.rest:h,c==0?h:n.rest)}let r=e.annotation(TS);if((r=="full"||r=="before")&&(t=t.isolate()),e.annotation(ce.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let s=gt.fromTransaction(e),o=e.annotation(ce.time),l=e.annotation(ce.userEvent);return s?t=t.addChanges(s,o,l,i,e):e.selection&&(t=t.addSelection(e.startState.selection,o,l,i.newGroupDelay)),(r=="full"||r=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new qi(t.done.map(gt.fromJSON),t.undone.map(gt.fromJSON))}});no=io(0,!1),yc=io(1,!1),AS=io(0,!0),ZS=io(1,!0),gt=class t{constructor(e,i,n,r,s){this.changes=e,this.effects=i,this.mapped=n,this.startSelection=r,this.selectionsAfter=s}setSelAfter(e){return new t(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,i,n;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(i=this.mapped)===null||i===void 0?void 0:i.toJSON(),startSelection:(n=this.startSelection)===null||n===void 0?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(r=>r.toJSON())}}static fromJSON(e){return new t(e.changes&&Pe.fromJSON(e.changes),[],e.mapped&&Et.fromJSON(e.mapped),e.startSelection&&y.fromJSON(e.startSelection),e.selectionsAfter.map(y.fromJSON))}static fromTransaction(e,i){let n=nt;for(let r of e.startState.facet(CS)){let s=r(e);s.length&&(n=n.concat(s))}return!n.length&&e.changes.empty?null:new t(e.changes.invert(e.startState.doc),n,void 0,i||e.startState.selection,nt)}static selection(e){return new t(void 0,nt,void 0,void 0,e)}};nt=[],MS=200;DS=/^(input\.type|delete)($|\.)/,qi=class t{constructor(e,i,n=0,r=void 0){this.done=e,this.undone=i,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new t(this.done,this.undone):this}addChanges(e,i,n,r,s){let o=this.done,l=o[o.length-1];return l&&l.changes&&!l.changes.empty&&e.changes&&(!n||DS.test(n))&&(!l.selectionsAfter.length&&i-this.prevTime<r.newGroupDelay&&r.joinToEvent(s,RS(l.changes,e.changes))||n=="input.type.compose")?o=to(o,o.length-1,r.minDepth,new gt(e.changes.compose(l.changes),Jp(R.mapEffects(e.effects,l.changes),l.effects),l.mapped,l.startSelection,nt)):o=to(o,o.length,r.minDepth,e),new t(o,nt,i,n)}addSelection(e,i,n,r){let s=this.done.length?this.done[this.done.length-1].selectionsAfter:nt;return s.length>0&&i-this.prevTime<r&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&XS(s[s.length-1],e)?this:new t(eO(this.done,e),this.undone,i,n)}addMapping(e){return new t(gc(this.done,e),gc(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,i,n){let r=e==0?this.done:this.undone;if(r.length==0)return null;let s=r[r.length-1],o=s.selectionsAfter[0]||i.selection;if(n&&s.selectionsAfter.length)return i.update({selection:s.selectionsAfter[s.selectionsAfter.length-1],annotations:bc.of({side:e,rest:ES(r),selection:o}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(s.changes){let l=r.length==1?nt:r.slice(0,r.length-1);return s.mapped&&(l=gc(l,s.mapped)),i.update({changes:s.changes,selection:s.startSelection,effects:s.effects,annotations:bc.of({side:e,rest:l,selection:o}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}};qi.empty=new qi(nt,nt);tO=[{key:"Mod-z",run:no,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:yc,preventDefault:!0},{linux:"Ctrl-Shift-z",run:yc,preventDefault:!0},{key:"Mod-u",run:AS,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:ZS,preventDefault:!0}];nO=t=>iO(t,!ve(t)),rO=t=>iO(t,ve(t));LS=t=>sO(t,!ve(t)),qS=t=>sO(t,ve(t)),GZ=typeof Intl<"u"&&Intl.Segmenter?new Intl.Segmenter(void 0,{granularity:"word"}):null;_S=t=>yt(t,e=>so(t.state,e,!ve(t))),BS=t=>yt(t,e=>so(t.state,e,ve(t)));lO=t=>oO(t,!1),aO=t=>oO(t,!0);_p=t=>hO(t,!1),xc=t=>hO(t,!0);YS=t=>yt(t,e=>fi(t,e,!0)),WS=t=>yt(t,e=>fi(t,e,!1)),jS=t=>yt(t,e=>fi(t,e,!ve(t))),IS=t=>yt(t,e=>fi(t,e,ve(t))),NS=t=>yt(t,e=>y.cursor(t.lineBlockAt(e.head).from,1)),FS=t=>yt(t,e=>y.cursor(t.lineBlockAt(e.head).to,-1));US=({state:t,dispatch:e})=>GS(t,e,!1);fO=t=>uO(t,!ve(t)),dO=t=>uO(t,ve(t));HS=t=>pO(t,!ve(t)),KS=t=>pO(t,ve(t)),JS=t=>rt(t,e=>so(t.state,e,!ve(t))),eQ=t=>rt(t,e=>so(t.state,e,ve(t)));mO=t=>OO(t,!1),gO=t=>OO(t,!0);Bp=t=>bO(t,!1),Yp=t=>bO(t,!0),tQ=t=>rt(t,e=>fi(t,e,!0)),iQ=t=>rt(t,e=>fi(t,e,!1)),nQ=t=>rt(t,e=>fi(t,e,!ve(t))),rQ=t=>rt(t,e=>fi(t,e,ve(t))),sQ=t=>rt(t,e=>y.cursor(t.lineBlockAt(e.head).from)),oQ=t=>rt(t,e=>y.cursor(t.lineBlockAt(e.head).to)),Wp=({state:t,dispatch:e})=>(e(bt(t,{anchor:0})),!0),jp=({state:t,dispatch:e})=>(e(bt(t,{anchor:t.doc.length})),!0),Ip=({state:t,dispatch:e})=>(e(bt(t,{anchor:t.selection.main.anchor,head:0})),!0),Np=({state:t,dispatch:e})=>(e(bt(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),lQ=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),aQ=({state:t,dispatch:e})=>{let i=oo(t).map(({from:n,to:r})=>y.range(n,Math.min(r+1,t.doc.length)));return e(t.update({selection:y.create(i),userEvent:"select"})),!0},cQ=({state:t,dispatch:e})=>{let i=wn(t.selection,n=>{let r=_(t),s=r.resolveStack(n.from,1);if(n.empty){let o=r.resolveStack(n.from,-1);o.node.from>=s.node.from&&o.node.to<=s.node.to&&(s=o)}for(let o=s;o;o=o.next){let{node:l}=o;if((l.from<n.from&&l.to>=n.to||l.to>n.to&&l.from<=n.from)&&o.next)return y.range(l.to,l.from)}return n});return i.eq(t.selection)?!1:(e(bt(t,i)),!0)};hQ=t=>yO(t,!1),uQ=t=>yO(t,!0),fQ=({state:t,dispatch:e})=>{let i=t.selection,n=null;return i.ranges.length>1?n=y.create([i.main]):i.main.empty||(n=y.create([y.cursor(i.main.head)])),n?(e(bt(t,n)),!0):!1};xO=(t,e,i)=>Qr(t,n=>{let r=n.from,{state:s}=t,o=s.doc.lineAt(r),l,a;if(i&&!e&&r>o.from&&r<o.from+200&&!/[^ \t]/.test(l=o.text.slice(0,r-o.from))){if(l[l.length-1]==" ")return r-1;let c=zt(l,s.tabSize),h=c%yr(s)||yr(s);for(let u=0;u<h&&l[l.length-1-u]==" ";u++)r--;a=r}else a=le(o.text,r-o.from,e,e)+o.from,a==r&&o.number!=(e?s.doc.lines:1)?a+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(o.text.slice(a-o.from,r-o.from))&&(a=le(o.text,a-o.from,!1,!1)+o.from);return a}),Sc=t=>xO(t,!1,!0),SO=t=>xO(t,!0,!1),QO=(t,e)=>Qr(t,i=>{let n=i.head,{state:r}=t,s=r.doc.lineAt(n),o=r.charCategorizer(n);for(let l=null;;){if(n==(e?s.to:s.from)){n==i.head&&s.number!=(e?r.doc.lines:1)&&(n+=e?1:-1);break}let a=le(s.text,n-s.from,e)+s.from,c=s.text.slice(Math.min(n,a)-s.from,Math.max(n,a)-s.from),h=o(c);if(l!=null&&h!=l)break;(c!=" "||n!=i.head)&&(l=h),n=a}return n}),wO=t=>QO(t,!1),dQ=t=>QO(t,!0),pQ=t=>Qr(t,e=>{let i=t.lineBlockAt(e.head).to;return e.head<i?i:Math.min(t.state.doc.length,e.head+1)}),OQ=t=>Qr(t,e=>{let i=t.moveToLineBoundary(e,!1).head;return e.head>i?i:Math.max(0,e.head-1)}),mQ=t=>Qr(t,e=>{let i=t.moveToLineBoundary(e,!0).head;return e.head<i?i:Math.min(t.state.doc.length,e.head+1)}),gQ=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=t.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:q.of(["",""])},range:y.cursor(n.from)}));return e(t.update(i,{scrollIntoView:!0,userEvent:"input"})),!0},bQ=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=t.changeByRange(n=>{if(!n.empty||n.from==0||n.from==t.doc.length)return{range:n};let r=n.from,s=t.doc.lineAt(r),o=r==s.from?r-1:le(s.text,r-s.from,!1)+s.from,l=r==s.to?r+1:le(s.text,r-s.from,!0)+s.from;return{changes:{from:o,to:l,insert:t.doc.slice(r,l).append(t.doc.slice(o,r))},range:y.cursor(l)}});return i.changes.empty?!1:(e(t.update(i,{scrollIntoView:!0,userEvent:"move.character"})),!0)};yQ=({state:t,dispatch:e})=>vO(t,e,!1),xQ=({state:t,dispatch:e})=>vO(t,e,!0);SQ=({state:t,dispatch:e})=>kO(t,e,!1),QQ=({state:t,dispatch:e})=>kO(t,e,!0),wQ=t=>{if(t.state.readOnly)return!1;let{state:e}=t,i=e.changes(oo(e).map(({from:r,to:s})=>(r>0?r--:s<e.doc.length&&s++,{from:r,to:s}))),n=wn(e.selection,r=>{let s;if(t.lineWrapping){let o=t.lineBlockAt(r.head),l=t.coordsAtPos(r.head,r.assoc||1);l&&(s=o.bottom+t.documentTop-l.bottom+t.defaultLineHeight/2)}return t.moveVertically(r,!0,s)}).map(i);return t.dispatch({changes:i,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0};Fp=$O(!1),kQ=$O(!0);$Q=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=Object.create(null),n=new Ei(t,{overrideIndentation:s=>{let o=i[s];return o??-1}}),r=vc(t,(s,o,l)=>{let a=Us(n,s.from);if(a==null)return;/\S/.test(s.text)||(a=0);let c=/^\s*/.exec(s.text)[0],h=xn(t,a);(c!=h||l.from<s.from+c.length)&&(i[s.from]=a,o.push({from:s.from,to:s.from+c.length,insert:h}))});return r.changes.empty||e(t.update(r,{userEvent:"indent"})),!0},PQ=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(vc(t,(i,n)=>{n.push({from:i.from,insert:t.facet(yn)})}),{userEvent:"input.indent"})),!0),TQ=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(vc(t,(i,n)=>{let r=/^\s*/.exec(i.text)[0];if(!r)return;let s=zt(r,t.tabSize),o=0,l=xn(t,Math.max(0,s-yr(t)));for(;o<r.length&&o<l.length&&r.charCodeAt(o)==l.charCodeAt(o);)o++;n.push({from:i.from+o,to:i.from+r.length,insert:l.slice(o)})}),{userEvent:"delete.dedent"})),!0),CQ=t=>(t.setTabFocusMode(),!0),AQ=[{key:"Ctrl-b",run:nO,shift:fO,preventDefault:!0},{key:"Ctrl-f",run:rO,shift:dO},{key:"Ctrl-p",run:lO,shift:mO},{key:"Ctrl-n",run:aO,shift:gO},{key:"Ctrl-a",run:NS,shift:sQ},{key:"Ctrl-e",run:FS,shift:oQ},{key:"Ctrl-d",run:SO},{key:"Ctrl-h",run:Sc},{key:"Ctrl-k",run:pQ},{key:"Ctrl-Alt-h",run:wO},{key:"Ctrl-o",run:gQ},{key:"Ctrl-t",run:bQ},{key:"Ctrl-v",run:xc}],ZQ=[{key:"ArrowLeft",run:nO,shift:fO,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:LS,shift:HS,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:jS,shift:nQ,preventDefault:!0},{key:"ArrowRight",run:rO,shift:dO,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:qS,shift:KS,preventDefault:!0},{mac:"Cmd-ArrowRight",run:IS,shift:rQ,preventDefault:!0},{key:"ArrowUp",run:lO,shift:mO,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Wp,shift:Ip},{mac:"Ctrl-ArrowUp",run:_p,shift:Bp},{key:"ArrowDown",run:aO,shift:gO,preventDefault:!0},{mac:"Cmd-ArrowDown",run:jp,shift:Np},{mac:"Ctrl-ArrowDown",run:xc,shift:Yp},{key:"PageUp",run:_p,shift:Bp},{key:"PageDown",run:xc,shift:Yp},{key:"Home",run:WS,shift:iQ,preventDefault:!0},{key:"Mod-Home",run:Wp,shift:Ip},{key:"End",run:YS,shift:tQ,preventDefault:!0},{key:"Mod-End",run:jp,shift:Np},{key:"Enter",run:Fp,shift:Fp},{key:"Mod-a",run:lQ},{key:"Backspace",run:Sc,shift:Sc,preventDefault:!0},{key:"Delete",run:SO,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:wO,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:dQ,preventDefault:!0},{mac:"Mod-Backspace",run:OQ,preventDefault:!0},{mac:"Mod-Delete",run:mQ,preventDefault:!0}].concat(AQ.map(t=>({mac:t.key,run:t.run,shift:t.shift}))),PO=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:_S,shift:JS},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:BS,shift:eQ},{key:"Alt-ArrowUp",run:yQ},{key:"Shift-Alt-ArrowUp",run:SQ},{key:"Alt-ArrowDown",run:xQ},{key:"Shift-Alt-ArrowDown",run:QQ},{key:"Mod-Alt-ArrowUp",run:hQ},{key:"Mod-Alt-ArrowDown",run:uQ},{key:"Escape",run:fQ},{key:"Mod-Enter",run:kQ},{key:"Alt-l",mac:"Ctrl-l",run:aQ},{key:"Mod-i",run:cQ,preventDefault:!0},{key:"Mod-[",run:TQ},{key:"Mod-]",run:PQ},{key:"Mod-Alt-\\",run:$Q},{key:"Shift-Mod-k",run:wQ},{key:"Shift-Mod-\\",run:US},{key:"Mod-/",run:SS},{key:"Alt-A",run:wS},{key:"Ctrl-m",mac:"Shift-Alt-m",run:CQ}].concat(ZQ)});function RQ(t){try{return new RegExp(t,Zc),!0}catch{return!1}}function fo(t,e){if(e>=t.length)return e;let i=t.lineAt(e),n;for(;e<i.to&&(n=i.text.charCodeAt(e-i.from))>=56320&&n<57344;)e++;return e}function XO(t){let e=[qQ,LQ];return t&&e.push(RO.of(t)),e}function CO(t,e,i,n){return(i==0||t(e.sliceDoc(i-1,i))!=te.Word)&&(n==e.doc.length||t(e.sliceDoc(n,n+1))!=te.Word)}function DQ(t,e,i,n){return t(e.sliceDoc(i,i+1))==te.Word&&t(e.sliceDoc(n-1,n))==te.Word}function _Q(t,e){let{main:i,ranges:n}=t.selection,r=t.wordAt(i.head),s=r&&r.from==i.from&&r.to==i.to;for(let o=!1,l=new pi(t.doc,e,n[n.length-1].to);;)if(l.next(),l.done){if(o)return null;l=new pi(t.doc,e,0,Math.max(0,n[n.length-1].from-1)),o=!0}else{if(o&&n.some(a=>a.from==l.value.from))continue;if(s){let a=t.wordAt(l.value.from);if(!a||a.from!=l.value.from||a.to!=l.value.to)continue}return l.value}}function YQ(t,e,i){return(n,r,s,o)=>{if(i&&!i(n,r,s,o))return!1;let l=n>=o&&r<=o+s.length?s.slice(n-o,r-o):e.doc.sliceString(n,r);return t(l,e,n,r)}}function vn(t,e,i,n){let r;return t.wholeWord&&(r=WQ(e.doc,e.charCategorizer(e.selection.main.head))),t.test&&(r=YQ(t.test,e,r)),new pi(e.doc,t.unquoted,i,n,t.caseSensitive?void 0:s=>s.toLowerCase(),r)}function WQ(t,e){return(i,n,r,s)=>((s>i||s+r.length<n)&&(s=Math.max(0,i-2),r=t.sliceString(s,Math.min(t.length,n+2))),(e(mo(r,i-s))!=te.Word||e(go(r,i-s))!=te.Word)&&(e(go(r,n-s))!=te.Word||e(mo(r,n-s))!=te.Word))}function jQ(t,e,i){return(n,r,s)=>(!i||i(n,r,s))&&t(s[0],e,n,r)}function kn(t,e,i,n){let r;return t.wholeWord&&(r=IQ(e.charCategorizer(e.selection.main.head))),t.test&&(r=jQ(t.test,e,r)),new co(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:r},i,n)}function mo(t,e){return t.slice(le(t,e,!1),e)}function go(t,e){return t.slice(e,le(t,e))}function IQ(t){return(e,i,n)=>!n[0].length||(t(mo(n.input,n.index))!=te.Word||t(go(n.input,n.index))!=te.Word)&&(t(go(n.input,n.index+n[0].length))!=te.Word||t(mo(n.input,n.index+n[0].length))!=te.Word)}function kr(t){return e=>{let i=e.state.field(di,!1);return i&&i.query.spec.valid?t(e,i):zO(e)}}function Xc(t){return t.state.facet($n).createPanel(t)}function Cc(t,e){var i,n,r,s,o;let l=t.selection.main,a=l.empty||l.to>l.from+100?"":t.sliceDoc(l.from,l.to);if(e&&!a)return e;let c=t.facet($n);return new po({search:((i=e?.literal)!==null&&i!==void 0?i:c.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:(n=e?.caseSensitive)!==null&&n!==void 0?n:c.caseSensitive,literal:(r=e?.literal)!==null&&r!==void 0?r:c.literal,regexp:(s=e?.regexp)!==null&&s!==void 0?s:c.regexp,wholeWord:(o=e?.wholeWord)!==null&&o!==void 0?o:c.wholeWord})}function MO(t){let e=fr(t,Xc);return e&&e.dom.querySelector("[main-field]")}function EO(t){let e=MO(t);e&&e==t.root.activeElement&&e.select()}function Ye(t,e){return t.state.phrase(e)}function Mc(t,{from:e,to:i}){let n=t.state.doc.lineAt(e),r=t.state.doc.lineAt(i).to,s=Math.max(n.from,e-lo),o=Math.min(r,i+lo),l=t.state.sliceDoc(s,o);if(s!=n.from){for(let a=0;a<lo;a++)if(!ao.test(l[a+1])&&ao.test(l[a])){l=l.slice(a);break}}if(o!=r){for(let a=l.length-1;a>l.length-lo;a--)if(!ao.test(l[a-1])&&ao.test(l[a])){l=l.slice(0,a);break}}return w.announce.of(`${t.state.phrase("current match")}. ${l} ${t.state.phrase("on line")} ${n.number}.`)}var TO,pi,ZO,Zc,co,$c,ho,uo,XQ,MQ,RO,EQ,zQ,LQ,qQ,VQ,BQ,$n,po,Oo,Pc,Tc,vr,Rc,di,wr,NQ,FQ,GQ,bo,yo,UQ,HQ,AO,KQ,zO,DO,LO,Ac,lo,ao,JQ,ew,qO=K(()=>{_e();Ke();ts();TO=typeof String.prototype.normalize=="function"?t=>t.normalize("NFKD"):t=>t,pi=class{constructor(e,i,n=0,r=e.length,s,o){this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=s?l=>s(TO(l)):TO,this.query=this.normalize(i)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return ge(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let i=In(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=qe(e);let r=this.normalize(i);if(r.length)for(let s=0,o=n;;s++){let l=r.charCodeAt(s),a=this.match(l,o,this.bufferPos+this.bufferStart);if(s==r.length-1){if(a)return this.value=a,this;break}o==n&&s<i.length&&i.charCodeAt(s)==l&&o++}}}match(e,i,n){let r=null;for(let s=0;s<this.matches.length;s+=2){let o=this.matches[s],l=!1;this.query.charCodeAt(o)==e&&(o==this.query.length-1?r={from:this.matches[s+1],to:n}:(this.matches[s]++,l=!0)),l||(this.matches.splice(s,2),s-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?r={from:i,to:n}:this.matches.push(1,i)),r&&this.test&&!this.test(r.from,r.to,this.buffer,this.bufferStart)&&(r=null),r}};typeof Symbol<"u"&&(pi.prototype[Symbol.iterator]=function(){return this});ZO={from:-1,to:-1,match:/.*/.exec("")},Zc="gm"+(/x/.unicode==null?"":"u"),co=class{constructor(e,i,n,r=0,s=e.length){if(this.text=e,this.to=s,this.curLine="",this.done=!1,this.value=ZO,/\\[sWDnr]|\n|\r|\[\^/.test(i))return new uo(e,i,n,r,s);this.re=new RegExp(i,Zc+(n?.ignoreCase?"i":"")),this.test=n?.test,this.iter=e.iter();let o=e.lineAt(r);this.curLineStart=o.from,this.matchPos=fo(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let i=this.matchPos<=this.to&&this.re.exec(this.curLine);if(i){let n=this.curLineStart+i.index,r=n+i[0].length;if(this.matchPos=fo(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<r||n>this.value.to)&&(!this.test||this.test(n,r,i)))return this.value={from:n,to:r,match:i},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}},$c=new WeakMap,ho=class t{constructor(e,i){this.from=e,this.text=i}get to(){return this.from+this.text.length}static get(e,i,n){let r=$c.get(e);if(!r||r.from>=n||r.to<=i){let l=new t(i,e.sliceString(i,n));return $c.set(e,l),l}if(r.from==i&&r.to==n)return r;let{text:s,from:o}=r;return o>i&&(s=e.sliceString(i,o)+s,o=i),r.to<n&&(s+=e.sliceString(r.to,n)),$c.set(e,new t(o,s)),new t(i,s.slice(i-o,n-o))}},uo=class{constructor(e,i,n,r,s){this.text=e,this.to=s,this.done=!1,this.value=ZO,this.matchPos=fo(e,r),this.re=new RegExp(i,Zc+(n?.ignoreCase?"i":"")),this.test=n?.test,this.flat=ho.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,i=this.re.exec(this.flat.text);if(i&&!i[0]&&i.index==e&&(this.re.lastIndex=e+1,i=this.re.exec(this.flat.text)),i){let n=this.flat.from+i.index,r=n+i[0].length;if((this.flat.to>=this.to||i.index+i[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,r,i)))return this.value={from:n,to:r,match:i},this.matchPos=fo(this.text,r+(n==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=ho.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}};typeof Symbol<"u"&&(co.prototype[Symbol.iterator]=uo.prototype[Symbol.iterator]=function(){return this});XQ=t=>{let{state:e}=t,i=String(e.doc.lineAt(t.state.selection.main.head).number),{close:n,result:r}=Gd(t,{label:e.phrase("Go to line"),input:{type:"text",name:"line",value:i},focus:!0,submitLabel:e.phrase("go")});return r.then(s=>{let o=s&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(s.elements.line.value);if(!o){t.dispatch({effects:n});return}let l=e.doc.lineAt(e.selection.main.head),[,a,c,h,u]=o,f=h?+h.slice(1):0,d=c?+c:l.number;if(c&&u){let g=d/100;a&&(g=g*(a=="-"?-1:1)+l.number/e.doc.lines),d=Math.round(e.doc.lines*g)}else c&&a&&(d=d*(a=="-"?-1:1)+l.number);let p=e.doc.line(Math.max(1,Math.min(e.doc.lines,d))),O=y.cursor(p.from+Math.max(0,Math.min(f,p.length)));t.dispatch({effects:[n,w.scrollIntoView(O.from,{y:"center"})],selection:O})}),!0},MQ={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},RO=k.define({combine(t){return be(t,MQ,{highlightWordAroundCursor:(e,i)=>e||i,minSelectionLength:Math.min,maxMatches:Math.min})}});EQ=T.mark({class:"cm-selectionMatch"}),zQ=T.mark({class:"cm-selectionMatch cm-selectionMatch-main"});LQ=J.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(RO),{state:i}=t,n=i.selection;if(n.ranges.length>1)return T.none;let r=n.main,s,o=null;if(r.empty){if(!e.highlightWordAroundCursor)return T.none;let a=i.wordAt(r.head);if(!a)return T.none;o=i.charCategorizer(r.head),s=i.sliceDoc(a.from,a.to)}else{let a=r.to-r.from;if(a<e.minSelectionLength||a>200)return T.none;if(e.wholeWords){if(s=i.sliceDoc(r.from,r.to),o=i.charCategorizer(r.head),!(CO(o,i,r.from,r.to)&&DQ(o,i,r.from,r.to)))return T.none}else if(s=i.sliceDoc(r.from,r.to),!s)return T.none}let l=[];for(let a of t.visibleRanges){let c=new pi(i.doc,s,a.from,a.to);for(;!c.next().done;){let{from:h,to:u}=c.value;if((!o||CO(o,i,h,u))&&(r.empty&&h<=r.from&&u>=r.to?l.push(zQ.range(h,u)):(h>=r.to||u<=r.from)&&l.push(EQ.range(h,u)),l.length>e.maxMatches))return T.none}}return T.set(l)}},{decorations:t=>t.decorations}),qQ=w.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),VQ=({state:t,dispatch:e})=>{let{selection:i}=t,n=y.create(i.ranges.map(r=>t.wordAt(r.head)||y.cursor(r.head)),i.mainIndex);return n.eq(i)?!1:(e(t.update({selection:n})),!0)};BQ=({state:t,dispatch:e})=>{let{ranges:i}=t.selection;if(i.some(s=>s.from===s.to))return VQ({state:t,dispatch:e});let n=t.sliceDoc(i[0].from,i[0].to);if(t.selection.ranges.some(s=>t.sliceDoc(s.from,s.to)!=n))return!1;let r=_Q(t,n);return r?(e(t.update({selection:t.selection.addRange(y.range(r.from,r.to),!1),effects:w.scrollIntoView(r.to)})),!0):!1},$n=k.define({combine(t){return be(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new Ac(e),scrollToMatch:e=>w.scrollIntoView(e)})}}),po=class{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||RQ(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(i,n)=>n=="n"?`
|
||
`:n=="r"?"\r":n=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new Tc(this):new Pc(this)}getCursor(e,i=0,n){let r=e.doc?e:I.create({doc:e});return n==null&&(n=r.doc.length),this.regexp?kn(this,r,i,n):vn(this,r,i,n)}},Oo=class{constructor(e){this.spec=e}};Pc=class extends Oo{constructor(e){super(e)}nextMatch(e,i,n){let r=vn(this.spec,e,n,e.doc.length).nextOverlapping();if(r.done){let s=Math.min(e.doc.length,i+this.spec.unquoted.length);r=vn(this.spec,e,0,s).nextOverlapping()}return r.done||r.value.from==i&&r.value.to==n?null:r.value}prevMatchInRange(e,i,n){for(let r=n;;){let s=Math.max(i,r-1e4-this.spec.unquoted.length),o=vn(this.spec,e,s,r),l=null;for(;!o.nextOverlapping().done;)l=o.value;if(l)return l;if(s==i)return null;r-=1e4}}prevMatch(e,i,n){let r=this.prevMatchInRange(e,0,i);return r||(r=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length)),r&&(r.from!=i||r.to!=n)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,i){let n=vn(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=i)return null;r.push(n.value)}return r}highlight(e,i,n,r){let s=vn(this.spec,e,Math.max(0,i-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!s.next().done;)r(s.value.from,s.value.to)}};Tc=class extends Oo{nextMatch(e,i,n){let r=kn(this.spec,e,n,e.doc.length).next();return r.done&&(r=kn(this.spec,e,0,i).next()),r.done?null:r.value}prevMatchInRange(e,i,n){for(let r=1;;r++){let s=Math.max(i,n-r*1e4),o=kn(this.spec,e,s,n),l=null;for(;!o.next().done;)l=o.value;if(l&&(s==i||l.from>s+10))return l;if(s==i)return null}}prevMatch(e,i,n){return this.prevMatchInRange(e,0,i)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(i,n)=>{if(n=="&")return e.match[0];if(n=="$")return"$";for(let r=n.length;r>0;r--){let s=+n.slice(0,r);if(s>0&&s<e.match.length)return e.match[s]+n.slice(r)}return i})}matchAll(e,i){let n=kn(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=i)return null;r.push(n.value)}return r}highlight(e,i,n,r){let s=kn(this.spec,e,Math.max(0,i-250),Math.min(n+250,e.doc.length));for(;!s.next().done;)r(s.value.from,s.value.to)}},vr=R.define(),Rc=R.define(),di=F.define({create(t){return new wr(Cc(t).create(),null)},update(t,e){for(let i of e.effects)i.is(vr)?t=new wr(i.value.create(),t.panel):i.is(Rc)&&(t=new wr(t.query,i.value?Xc:null));return t},provide:t=>Zi.from(t,e=>e.panel)}),wr=class{constructor(e,i){this.query=e,this.panel=i}},NQ=T.mark({class:"cm-searchMatch"}),FQ=T.mark({class:"cm-searchMatch cm-searchMatch-selected"}),GQ=J.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(di))}update(t){let e=t.state.field(di);(e!=t.startState.field(di)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return T.none;let{view:i}=this,n=new Le;for(let r=0,s=i.visibleRanges,o=s.length;r<o;r++){let{from:l,to:a}=s[r];for(;r<o-1&&a>s[r+1].from-500;)a=s[++r].to;t.highlight(i.state,l,a,(c,h)=>{let u=i.state.selection.ranges.some(f=>f.from==c&&f.to==h);n.add(c,h,u?FQ:NQ)})}return n.finish()}},{decorations:t=>t.decorations});bo=kr((t,{query:e})=>{let{to:i}=t.state.selection.main,n=e.nextMatch(t.state,i,i);if(!n)return!1;let r=y.single(n.from,n.to),s=t.state.facet($n);return t.dispatch({selection:r,effects:[Mc(t,n),s.scrollToMatch(r.main,t)],userEvent:"select.search"}),EO(t),!0}),yo=kr((t,{query:e})=>{let{state:i}=t,{from:n}=i.selection.main,r=e.prevMatch(i,n,n);if(!r)return!1;let s=y.single(r.from,r.to),o=t.state.facet($n);return t.dispatch({selection:s,effects:[Mc(t,r),o.scrollToMatch(s.main,t)],userEvent:"select.search"}),EO(t),!0}),UQ=kr((t,{query:e})=>{let i=e.matchAll(t.state,1e3);return!i||!i.length?!1:(t.dispatch({selection:y.create(i.map(n=>y.range(n.from,n.to))),userEvent:"select.search.matches"}),!0)}),HQ=({state:t,dispatch:e})=>{let i=t.selection;if(i.ranges.length>1||i.main.empty)return!1;let{from:n,to:r}=i.main,s=[],o=0;for(let l=new pi(t.doc,t.sliceDoc(n,r));!l.next().done;){if(s.length>1e3)return!1;l.value.from==n&&(o=s.length),s.push(y.range(l.value.from,l.value.to))}return e(t.update({selection:y.create(s,o),userEvent:"select.search.matches"})),!0},AO=kr((t,{query:e})=>{let{state:i}=t,{from:n,to:r}=i.selection.main;if(i.readOnly)return!1;let s=e.nextMatch(i,n,n);if(!s)return!1;let o=s,l=[],a,c,h=[];o.from==n&&o.to==r&&(c=i.toText(e.getReplacement(o)),l.push({from:o.from,to:o.to,insert:c}),o=e.nextMatch(i,o.from,o.to),h.push(w.announce.of(i.phrase("replaced match on line $",i.doc.lineAt(n).number)+".")));let u=t.state.changes(l);return o&&(a=y.single(o.from,o.to).map(u),h.push(Mc(t,o)),h.push(i.facet($n).scrollToMatch(a.main,t))),t.dispatch({changes:u,selection:a,effects:h,userEvent:"input.replace"}),!0}),KQ=kr((t,{query:e})=>{if(t.state.readOnly)return!1;let i=e.matchAll(t.state,1e9).map(r=>{let{from:s,to:o}=r;return{from:s,to:o,insert:e.getReplacement(r)}});if(!i.length)return!1;let n=t.state.phrase("replaced $ matches",i.length)+".";return t.dispatch({changes:i,effects:w.announce.of(n),userEvent:"input.replace.all"}),!0});zO=t=>{let e=t.state.field(di,!1);if(e&&e.panel){let i=MO(t);if(i&&i!=t.root.activeElement){let n=Cc(t.state,e.query.spec);n.valid&&t.dispatch({effects:vr.of(n)}),i.focus(),i.select()}}else t.dispatch({effects:[Rc.of(!0),e?vr.of(Cc(t.state,e.query.spec)):R.appendConfig.of(ew)]});return!0},DO=t=>{let e=t.state.field(di,!1);if(!e||!e.panel)return!1;let i=fr(t,Xc);return i&&i.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:Rc.of(!1)}),!0},LO=[{key:"Mod-f",run:zO,scope:"editor search-panel"},{key:"F3",run:bo,shift:yo,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:bo,shift:yo,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:DO,scope:"editor search-panel"},{key:"Mod-Shift-l",run:HQ},{key:"Mod-Alt-g",run:XQ},{key:"Mod-d",run:BQ,preventDefault:!0}],Ac=class{constructor(e){this.view=e;let i=this.query=e.state.field(di).query.spec;this.commit=this.commit.bind(this),this.searchField=W("input",{value:i.search,placeholder:Ye(e,"Find"),"aria-label":Ye(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=W("input",{value:i.replace,placeholder:Ye(e,"Replace"),"aria-label":Ye(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=W("input",{type:"checkbox",name:"case",form:"",checked:i.caseSensitive,onchange:this.commit}),this.reField=W("input",{type:"checkbox",name:"re",form:"",checked:i.regexp,onchange:this.commit}),this.wordField=W("input",{type:"checkbox",name:"word",form:"",checked:i.wholeWord,onchange:this.commit});function n(r,s,o){return W("button",{class:"cm-button",name:r,onclick:s,type:"button"},o)}this.dom=W("div",{onkeydown:r=>this.keydown(r),class:"cm-search"},[this.searchField,n("next",()=>bo(e),[Ye(e,"next")]),n("prev",()=>yo(e),[Ye(e,"previous")]),n("select",()=>UQ(e),[Ye(e,"all")]),W("label",null,[this.caseField,Ye(e,"match case")]),W("label",null,[this.reField,Ye(e,"regexp")]),W("label",null,[this.wordField,Ye(e,"by word")]),...e.state.readOnly?[]:[W("br"),this.replaceField,n("replace",()=>AO(e),[Ye(e,"replace")]),n("replaceAll",()=>KQ(e),[Ye(e,"replace all")])],W("button",{name:"close",onclick:()=>DO(e),"aria-label":Ye(e,"close"),type:"button"},["\xD7"])])}commit(){let e=new po({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:vr.of(e)}))}keydown(e){Ed(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?yo:bo)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),AO(this.view))}update(e){for(let i of e.transactions)for(let n of i.effects)n.is(vr)&&!n.value.eq(this.query)&&this.setQuery(n.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet($n).top}};lo=30,ao=/[\s\.,:;?!]/;JQ=w.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),ew=[di,He.low(GQ),JQ]});function VO(t){let e=Object.keys(t).join(""),i=/\w/.test(e);return i&&(e=e.replace(/\w/g,"")),`[${i?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function tw(t){let e=Object.create(null),i=Object.create(null);for(let{label:r}of t){e[r[0]]=!0;for(let s=1;s<r.length;s++)i[r[s]]=!0}let n=VO(e)+VO(i)+"*$";return[new RegExp("^"+n),new RegExp(n)]}function Nc(t){let e=t.map(r=>typeof r=="string"?{label:r}:r),[i,n]=e.every(r=>/^\w+$/.test(r.label))?[/\w*$/,/\w+$/]:tw(e);return r=>{let s=r.matchBefore(n);return s||r.explicit?{from:s?s.from:r.pos,options:e,validFor:i}:null}}function FO(t,e){return i=>{for(let n=_(i.state).resolveInner(i.pos,-1);n;n=n.parent){if(t.indexOf(n.name)>-1)return null;if(n.type.isTop)break}return e(i)}}function _i(t){return t.selection.main.from}function GO(t,e){var i;let{source:n}=t,r=e&&n[0]!="^",s=n[n.length-1]!="$";return!r&&!s?t:new RegExp(`${r?"^":""}(?:${n})${s?"$":""}`,(i=t.flags)!==null&&i!==void 0?i:t.ignoreCase?"i":"")}function iw(t,e,i,n){let{main:r}=t.selection,s=i-r.from,o=n-r.from;return{...t.changeByRange(l=>{if(l!=r&&i!=n&&t.sliceDoc(l.from+s,l.from+o)!=t.sliceDoc(i,n))return{range:l};let a=t.toText(e);return{changes:{from:l.from+s,to:n==r.from?l.to:l.from+o,insert:a},range:y.cursor(l.from+s+a.length)}}),scrollIntoView:!0,userEvent:"input.complete"}}function nw(t){if(!Array.isArray(t))return t;let e=_O.get(t);return e||_O.set(t,e=Nc(t)),e}function BO(t,e){return t?e?t+" "+e:t:e}function rw(t,e,i,n,r,s){let o=t.textDirection==G.RTL,l=o,a=!1,c="top",h,u,f=e.left-r.left,d=r.right-e.right,p=n.right-n.left,O=n.bottom-n.top;if(l&&f<Math.min(p,d)?l=!1:!l&&d<Math.min(p,f)&&(l=!0),p<=(l?f:d))h=Math.max(r.top,Math.min(i.top,r.bottom-O))-e.top,u=Math.min(400,l?f:d);else{a=!0,u=Math.min(400,(o?e.right:r.right-e.left)-30);let x=r.bottom-e.bottom;x>=O||x>e.top?h=i.bottom-e.top:(c="bottom",h=e.bottom-i.top)}let g=(e.bottom-e.top)/s.offsetHeight,b=(e.right-e.left)/s.offsetWidth;return{style:`${c}: ${h/g}px; max-width: ${u/b}px`,class:"cm-completionInfo-"+(a?o?"left-narrow":"right-narrow":l?"left":"right")}}function sw(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(i){let n=document.createElement("div");return n.classList.add("cm-completionIcon"),i.type&&n.classList.add(...i.type.split(/\s+/g).map(r=>"cm-completionIcon-"+r)),n.setAttribute("aria-hidden","true"),n},position:20}),e.push({render(i,n,r,s){let o=document.createElement("span");o.className="cm-completionLabel";let l=i.displayLabel||i.label,a=0;for(let c=0;c<s.length;){let h=s[c++],u=s[c++];h>a&&o.appendChild(document.createTextNode(l.slice(a,h)));let f=o.appendChild(document.createElement("span"));f.appendChild(document.createTextNode(l.slice(h,u))),f.className="cm-completionMatchedText",a=u}return a<l.length&&o.appendChild(document.createTextNode(l.slice(a))),o},position:50},{render(i){if(!i.detail)return null;let n=document.createElement("span");return n.className="cm-completionDetail",n.textContent=i.detail,n},position:80}),e.sort((i,n)=>i.position-n.position).map(i=>i.render)}function Ec(t,e,i){if(t<=i)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let r=Math.floor(e/i);return{from:r*i,to:(r+1)*i}}let n=Math.floor((t-e)/i);return{from:t-(n+1)*i,to:t-n*i}}function ow(t,e){return i=>new Vc(i,t,e)}function lw(t,e){let i=t.getBoundingClientRect(),n=e.getBoundingClientRect(),r=i.height/t.offsetHeight;n.top<i.top?t.scrollTop-=(i.top-n.top)/r:n.bottom>i.bottom&&(t.scrollTop+=(n.bottom-i.bottom)/r)}function YO(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function aw(t,e){let i=[],n=null,r=null,s=h=>{i.push(h);let{section:u}=h.completion;if(u){n||(n=[]);let f=typeof u=="string"?u:u.name;n.some(d=>d.name==f)||n.push(typeof u=="string"?{name:f}:u)}},o=e.facet(pe);for(let h of t)if(h.hasResult()){let u=h.result.getMatch;if(h.result.filter===!1)for(let f of h.result.options)s(new Qo(f,h.source,u?u(f):[],1e9-i.length));else{let f=e.sliceDoc(h.from,h.to),d,p=o.filterStrict?new qc(f):new Lc(f);for(let O of h.result.options)if(d=p.match(O.label)){let g=O.displayLabel?u?u(O,d.matched):[]:d.matched,b=d.score+(O.boost||0);if(s(new Qo(O,h.source,g,b)),typeof O.section=="object"&&O.section.rank==="dynamic"){let{name:x}=O.section;r||(r=Object.create(null)),r[x]=Math.max(b,r[x]||-1e9)}}}}if(n){let h=Object.create(null),u=0,f=(d,p)=>(d.rank==="dynamic"&&p.rank==="dynamic"?r[p.name]-r[d.name]:0)||(typeof d.rank=="number"?d.rank:1e9)-(typeof p.rank=="number"?p.rank:1e9)||(d.name<p.name?-1:1);for(let d of n.sort(f))u-=1e5,h[d.name]=u;for(let d of i){let{section:p}=d.completion;p&&(d.score+=h[typeof p=="string"?p:p.name])}}let l=[],a=null,c=o.compareCompletions;for(let h of i.sort((u,f)=>f.score-u.score||c(u.completion,f.completion))){let u=h.completion;!a||a.label!=u.label||a.detail!=u.detail||a.type!=null&&u.type!=null&&a.type!=u.type||a.apply!=u.apply||a.boost!=u.boost?l.push(h):YO(h.completion)>YO(a)&&(l[l.length-1]=h),a=h.completion}return l}function cw(t,e){if(t==e)return!0;for(let i=0,n=0;;){for(;i<t.length&&!t[i].hasResult();)i++;for(;n<e.length&&!e[n].hasResult();)n++;let r=i==t.length,s=n==e.length;if(r||s)return r==s;if(t[i++].result!=e[n++].result)return!1}}function WO(t,e){let i={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(i["aria-activedescendant"]=t+"-"+e),i}function UO(t,e){if(t.isUserEvent("input.complete")){let n=t.annotation(Tn);if(n&&e.activateOnCompletion(n))return 12}let i=t.isUserEvent("input.type");return i&&e.activateOnTyping?5:i?1:t.isUserEvent("delete.backward")?2:t.selection?8:t.docChanged?16:0}function dw(t,e,i,n){if(!t)return!1;let r=e.sliceDoc(i,n);return typeof t=="function"?t(r,i,n,e):GO(t,!0).test(r)}function Gc(t,e){let i=e.completion.apply||e.completion.label,n=t.state.field(ke).active.find(r=>r.source==e.source);return n instanceof vo?(typeof i=="string"?t.dispatch({...iw(t.state,i,n.from,n.to),annotations:Tn.of(e.completion)}):i(t,e.completion,n.from,n.to),!0):!1}function xo(t,e="option"){return i=>{let n=i.state.field(ke,!1);if(!n||!n.open||n.open.disabled||Date.now()-n.open.timestamp<i.state.facet(pe).interactionDelay)return!1;let r=1,s;e=="page"&&(s=Va(i,n.open.tooltip))&&(r=Math.max(2,Math.floor(s.dom.offsetHeight/s.dom.querySelector("li").offsetHeight)-1));let{length:o}=n.open.options,l=n.open.selected>-1?n.open.selected+r*(t?1:-1):t?0:o-1;return l<0?l=e=="page"?0:o-1:l>=o&&(l=e=="page"?o-1:0),i.dispatch({effects:HO.of(l)}),!0}}function Hc(t,e){return y.create(t.filter(i=>i.field==e).map(i=>y.range(i.from,i.to)))}function ko(t){let e=Ic.parse(t);return(i,n,r,s)=>{let{text:o,ranges:l}=e.instantiate(i.state,r),{main:a}=i.state.selection,c={changes:{from:r,to:s==a.from?a.to:s,insert:q.of(o)},scrollIntoView:!0,annotations:n?[Tn.of(n),ce.userEvent.of("input.complete")]:void 0};if(l.length&&(c.selection=Hc(l,0)),l.some(h=>h.field>0)){let h=new Pn(l,0),u=c.effects=[Cr.of(h)];i.state.field(Pr,!1)===void 0&&u.push(R.appendConfig.of([Pr,Tw,Cw,KO]))}i.dispatch(i.state.update(c))}}function JO(t){return({state:e,dispatch:i})=>{let n=e.field(Pr,!1);if(!n||t<0&&n.active==0)return!1;let r=n.active+t,s=t>0&&!n.ranges.some(o=>o.field==r+t);return i(e.update({selection:Hc(n.ranges,r),effects:Cr.of(s?null:new Pn(n.ranges,r)),scrollIntoView:!0})),!0}}function Ce(t,e){return{...e,apply:ko(t)}}function tm(){return[Zw,em]}function im(t){for(let e=0;e<Dc.length;e+=2)if(Dc.charCodeAt(e)==t)return Dc.charAt(e+1);return In(t<128?t:t+1)}function nm(t,e){return t.languageDataAt("closeBrackets",e)[0]||Tr}function Xw(t,e){let i=nm(t,t.selection.main.head),n=i.brackets||Tr.brackets;for(let r of n){let s=im(ge(r,0));if(e==r)return s==r?Dw(t,r,n.indexOf(r+r+r)>-1,i):Ew(t,r,s,i.before||Tr.before);if(e==s&&sm(t,t.selection.main.from))return zw(t,r,s)}return null}function sm(t,e){let i=!1;return t.field(em).between(0,t.doc.length,n=>{n==e&&(i=!0)}),i}function $o(t,e){let i=t.sliceString(e,e+2);return i.slice(0,qe(ge(i,0)))}function Mw(t,e){let i=t.sliceString(e-2,e);return qe(ge(i,0))==i.length?i:i.slice(1)}function Ew(t,e,i,n){let r=null,s=t.changeByRange(o=>{if(!o.empty)return{changes:[{insert:e,from:o.from},{insert:i,from:o.to}],effects:Vi.of(o.to+e.length),range:y.range(o.anchor+e.length,o.head+e.length)};let l=$o(t.doc,o.head);return!l||/\s/.test(l)||n.indexOf(l)>-1?{changes:{insert:e+i,from:o.head},effects:Vi.of(o.head+e.length),range:y.cursor(o.head+e.length)}:{range:r=o}});return r?null:t.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function zw(t,e,i){let n=null,r=t.changeByRange(s=>s.empty&&$o(t.doc,s.head)==i?{changes:{from:s.head,to:s.head+i.length,insert:i},range:y.cursor(s.head+i.length)}:n={range:s});return n?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function Dw(t,e,i,n){let r=n.stringPrefixes||Tr.stringPrefixes,s=null,o=t.changeByRange(l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:e,from:l.to}],effects:Vi.of(l.to+e.length),range:y.range(l.anchor+e.length,l.head+e.length)};let a=l.head,c=$o(t.doc,a),h;if(c==e){if(IO(t,a))return{changes:{insert:e+e,from:a},effects:Vi.of(a+e.length),range:y.cursor(a+e.length)};if(sm(t,a)){let f=i&&t.sliceDoc(a,a+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:a,to:a+f.length,insert:f},range:y.cursor(a+f.length)}}}else{if(i&&t.sliceDoc(a-2*e.length,a)==e+e&&(h=NO(t,a-2*e.length,r))>-1&&IO(t,h))return{changes:{insert:e+e+e+e,from:a},effects:Vi.of(a+e.length),range:y.cursor(a+e.length)};if(t.charCategorizer(a)(c)!=te.Word&&NO(t,a,r)>-1&&!Lw(t,a,e,r))return{changes:{insert:e+e,from:a},effects:Vi.of(a+e.length),range:y.cursor(a+e.length)}}return{range:s=l}});return s?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function IO(t,e){let i=_(t).resolveInner(e+1);return i.parent&&i.from==e}function Lw(t,e,i,n){let r=_(t).resolveInner(e,-1),s=n.reduce((o,l)=>Math.max(o,l.length),0);for(let o=0;o<5;o++){let l=t.sliceDoc(r.from,Math.min(r.to,r.from+i.length+s)),a=l.indexOf(i);if(!a||a>-1&&n.indexOf(l.slice(0,a))>-1){let h=r.firstChild;for(;h&&h.from==r.from&&h.to-h.from>i.length+a;){if(t.sliceDoc(h.to-i.length,h.to)==i)return!1;h=h.firstChild}return!0}let c=r.to==e&&r.parent;if(!c)break;r=c}return!1}function NO(t,e,i){let n=t.charCategorizer(e);if(n(t.sliceDoc(e-1,e))!=te.Word)return e;for(let r of i){let s=e-r.length;if(t.sliceDoc(s,e)==r&&n(t.sliceDoc(s-1,s))!=te.Word)return s}return-1}function om(t={}){return[xw,ke,pe.of(t),bw,qw,KO]}function eh(t){let e=t.field(ke,!1);return e&&e.active.some(i=>i.isPending)?"pending":e&&e.active.some(i=>i.state!=0)?"active":null}function lm(t){var e;let i=(e=t.field(ke,!1))===null||e===void 0?void 0:e.open;return i&&!i.disabled&&i.selected>=0?i.options[i.selected].completion:null}var So,Qo,Tn,_O,wo,$r,Lc,qc,pe,Vc,_c,Bc,hw,uw,fw,_t,vo,Fc,HO,ke,pw,Uc,zc,Ow,Yc,mw,gw,bw,yw,xw,KO,Wc,jc,Ic,Sw,Qw,Pn,Cr,ww,Pr,vw,kw,$w,Pw,jO,Tw,Cw,Tr,Vi,Kc,em,Dc,Aw,Zw,Rw,rm,Jc,qw,Po=K(()=>{Ke();_e();mt();So=class{constructor(e,i,n,r){this.state=e,this.pos=i,this.explicit=n,this.view=r,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let i=_(this.state).resolveInner(this.pos,-1);for(;i&&e.indexOf(i.name)<0;)i=i.parent;return i?{from:i.from,to:this.pos,text:this.state.sliceDoc(i.from,this.pos),type:i.type}:null}matchBefore(e){let i=this.state.doc.lineAt(this.pos),n=Math.max(i.from,this.pos-250),r=i.text.slice(n-i.from,this.pos-i.from),s=r.search(GO(e,!1));return s<0?null:{from:n+s,to:this.pos,text:r.slice(s)}}get aborted(){return this.abortListeners==null}addEventListener(e,i,n){e=="abort"&&this.abortListeners&&(this.abortListeners.push(i),n&&n.onDocChange&&(this.abortOnDocChange=!0))}};Qo=class{constructor(e,i,n,r){this.completion=e,this.source=i,this.match=n,this.score=r}};Tn=Ze.define();_O=new WeakMap;wo=R.define(),$r=R.define(),Lc=class{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let i=0;i<e.length;){let n=ge(e,i),r=qe(n);this.chars.push(n);let s=e.slice(i,i+r),o=s.toUpperCase();this.folded.push(ge(o==s?s.toLowerCase():o,0)),i+=r}this.astral=e.length!=this.chars.length}ret(e,i){return this.score=e,this.matched=i,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:i,folded:n,any:r,precise:s,byWord:o}=this;if(i.length==1){let x=ge(e,0),S=qe(x),C=S==e.length?0:-100;if(x!=i[0])if(x==n[0])C+=-200;else return null;return this.ret(C,[0,S])}let l=e.indexOf(this.pattern);if(l==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let a=i.length,c=0;if(l<0){for(let x=0,S=Math.min(e.length,200);x<S&&c<a;){let C=ge(e,x);(C==i[c]||C==n[c])&&(r[c++]=x),x+=qe(C)}if(c<a)return null}let h=0,u=0,f=!1,d=0,p=-1,O=-1,g=/[a-z]/.test(e),b=!0;for(let x=0,S=Math.min(e.length,200),C=0;x<S&&u<a;){let Q=ge(e,x);l<0&&(h<a&&Q==i[h]&&(s[h++]=x),d<a&&(Q==i[d]||Q==n[d]?(d==0&&(p=x),O=x+1,d++):d=0));let $,v=Q<255?Q>=48&&Q<=57||Q>=97&&Q<=122?2:Q>=65&&Q<=90?1:0:($=In(Q))!=$.toLowerCase()?1:$!=$.toUpperCase()?2:0;(!x||v==1&&g||C==0&&v!=0)&&(i[u]==Q||n[u]==Q&&(f=!0)?o[u++]=x:o.length&&(b=!1)),C=v,x+=qe(Q)}return u==a&&o[0]==0&&b?this.result(-100+(f?-200:0),o,e):d==a&&p==0?this.ret(-200-e.length+(O==e.length?0:-100),[0,O]):l>-1?this.ret(-700-e.length,[l,l+this.pattern.length]):d==a?this.ret(-900-e.length,[p,O]):u==a?this.result(-100+(f?-200:0)+-700+(b?0:-1100),o,e):i.length==2?null:this.result((r[0]?-700:0)+-200+-1100,r,e)}result(e,i,n){let r=[],s=0;for(let o of i){let l=o+(this.astral?qe(ge(n,o)):1);s&&r[s-1]==o?r[s-1]=l:(r[s++]=o,r[s++]=l)}return this.ret(e-n.length,r)}},qc=class{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let i=e.slice(0,this.pattern.length),n=i==this.pattern?0:i.toLowerCase()==this.folded?-200:null;return n==null?null:(this.matched=[0,i.length],this.score=n+(e.length==this.pattern.length?0:-100),this)}},pe=k.define({combine(t){return be(t,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:rw,filterStrict:!1,compareCompletions:(e,i)=>(e.sortText||e.label).localeCompare(i.sortText||i.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,i)=>e&&i,closeOnBlur:(e,i)=>e&&i,icons:(e,i)=>e&&i,tooltipClass:(e,i)=>n=>BO(e(n),i(n)),optionClass:(e,i)=>n=>BO(e(n),i(n)),addToOptions:(e,i)=>e.concat(i),filterStrict:(e,i)=>e||i})}});Vc=class{constructor(e,i,n){this.view=e,this.stateField=i,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:a=>this.placeInfo(a),key:this},this.space=null,this.currentClass="";let r=e.state.field(i),{options:s,selected:o}=r.open,l=e.state.facet(pe);this.optionContent=sw(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=Ec(s.length,o,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",a=>{let{options:c}=e.state.field(i).open;for(let h=a.target,u;h&&h!=this.dom;h=h.parentNode)if(h.nodeName=="LI"&&(u=/-(\d+)$/.exec(h.id))&&+u[1]<c.length){this.applyCompletion(e,c[+u[1]]),a.preventDefault();return}}),this.dom.addEventListener("focusout",a=>{let c=e.state.field(this.stateField,!1);c&&c.tooltip&&e.state.facet(pe).closeOnBlur&&a.relatedTarget!=e.contentDOM&&e.dispatch({effects:$r.of(null)})}),this.showOptions(s,r.id)}mount(){this.updateSel()}showOptions(e,i){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,i,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var i;let n=e.state.field(this.stateField),r=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=r){let{options:s,selected:o,disabled:l}=n.open;(!r.open||r.open.options!=s)&&(this.range=Ec(s.length,o,e.state.facet(pe).maxRenderedOptions),this.showOptions(s,n.id)),this.updateSel(),l!=((i=r.open)===null||i===void 0?void 0:i.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!l)}}updateTooltipClass(e){let i=this.tooltipClass(e);if(i!=this.currentClass){for(let n of this.currentClass.split(" "))n&&this.dom.classList.remove(n);for(let n of i.split(" "))n&&this.dom.classList.add(n);this.currentClass=i}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),i=e.open;(i.selected>-1&&i.selected<this.range.from||i.selected>=this.range.to)&&(this.range=Ec(i.options.length,i.selected,this.view.state.facet(pe).maxRenderedOptions),this.showOptions(i.options,e.id));let n=this.updateSelectedOption(i.selected);if(n){this.destroyInfo();let{completion:r}=i.options[i.selected],{info:s}=r;if(!s)return;let o=typeof s=="string"?document.createTextNode(s):s(r);if(!o)return;"then"in o?o.then(l=>{l&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(l,r)}).catch(l=>de(this.view.state,l,"completion info")):(this.addInfoPane(o,r),n.setAttribute("aria-describedby",this.info.id))}}addInfoPane(e,i){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",n.id="cm-completionInfo-"+Math.floor(Math.random()*65535).toString(16),e.nodeType!=null)n.appendChild(e),this.infoDestroy=null;else{let{dom:r,destroy:s}=e;n.appendChild(r),this.infoDestroy=s||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let i=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)n.nodeName!="LI"||!n.id?r--:r==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),i=n):n.hasAttribute("aria-selected")&&(n.removeAttribute("aria-selected"),n.removeAttribute("aria-describedby"));return i&&lw(this.list,i),i}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let i=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),s=this.space;if(!s){let o=this.dom.ownerDocument.documentElement;s={left:0,top:0,right:o.clientWidth,bottom:o.clientHeight}}return r.top>Math.min(s.bottom,i.bottom)-10||r.bottom<Math.max(s.top,i.top)+10?null:this.view.state.facet(pe).positionInfo(this.view,i,r,n,s,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,i,n){let r=document.createElement("ul");r.id=i,r.setAttribute("role","listbox"),r.setAttribute("aria-expanded","true"),r.setAttribute("aria-label",this.view.state.phrase("Completions")),r.addEventListener("mousedown",o=>{o.target==r&&o.preventDefault()});let s=null;for(let o=n.from;o<n.to;o++){let{completion:l,match:a}=e[o],{section:c}=l;if(c){let f=typeof c=="string"?c:c.name;if(f!=s&&(o>n.from||n.from==0))if(s=f,typeof c!="string"&&c.header)r.appendChild(c.header(c));else{let d=r.appendChild(document.createElement("completion-section"));d.textContent=f}}let h=r.appendChild(document.createElement("li"));h.id=i+"-"+o,h.setAttribute("role","option");let u=this.optionClass(l);u&&(h.className=u);for(let f of this.optionContent){let d=f(l,this.view.state,this.view,a);d&&h.appendChild(d)}}return n.from&&r.classList.add("cm-completionListIncompleteTop"),n.to<e.length&&r.classList.add("cm-completionListIncompleteBottom"),r}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}};_c=class t{constructor(e,i,n,r,s,o){this.options=e,this.attrs=i,this.tooltip=n,this.timestamp=r,this.selected=s,this.disabled=o}setSelected(e,i){return e==this.selected||e>=this.options.length?this:new t(this.options,WO(i,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,i,n,r,s,o){if(r&&!o&&e.some(c=>c.isPending))return r.setDisabled();let l=aw(e,i);if(!l.length)return r&&e.some(c=>c.isPending)?r.setDisabled():null;let a=i.facet(pe).selectOnOpen?0:-1;if(r&&r.selected!=a&&r.selected!=-1){let c=r.options[r.selected].completion;for(let h=0;h<l.length;h++)if(l[h].completion==c){a=h;break}}return new t(l,WO(n,a),{pos:e.reduce((c,h)=>h.hasResult()?Math.min(c,h.from):c,1e8),create:pw,above:s.aboveCursor},r?r.timestamp:Date.now(),a,!1)}map(e){return new t(this.options,this.attrs,{...this.tooltip,pos:e.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new t(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}},Bc=class t{constructor(e,i,n){this.active=e,this.id=i,this.open=n}static start(){return new t(fw,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:i}=e,n=i.facet(pe),s=(n.override||i.languageDataAt("autocomplete",_i(i)).map(nw)).map(a=>(this.active.find(h=>h.source==a)||new _t(a,this.active.some(h=>h.state!=0)?1:0)).update(e,n));s.length==this.active.length&&s.every((a,c)=>a==this.active[c])&&(s=this.active);let o=this.open,l=e.effects.some(a=>a.is(Fc));o&&e.docChanged&&(o=o.map(e.changes)),e.selection||s.some(a=>a.hasResult()&&e.changes.touchesRange(a.from,a.to))||!cw(s,this.active)||l?o=_c.build(s,i,this.id,o,n,l):o&&o.disabled&&!s.some(a=>a.isPending)&&(o=null),!o&&s.every(a=>!a.isPending)&&s.some(a=>a.hasResult())&&(s=s.map(a=>a.hasResult()?new _t(a.source,0):a));for(let a of e.effects)a.is(HO)&&(o=o&&o.setSelected(a.value,this.id));return s==this.active&&o==this.open?this:new t(s,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?hw:uw}};hw={"aria-autocomplete":"list"},uw={};fw=[];_t=class t{constructor(e,i,n=!1){this.source=e,this.state=i,this.explicit=n}hasResult(){return!1}get isPending(){return this.state==1}update(e,i){let n=UO(e,i),r=this;(n&8||n&16&&this.touches(e))&&(r=new t(r.source,0)),n&4&&r.state==0&&(r=new t(this.source,1)),r=r.updateFor(e,n);for(let s of e.effects)if(s.is(wo))r=new t(r.source,1,s.value);else if(s.is($r))r=new t(r.source,0);else if(s.is(Fc))for(let o of s.value)o.source==r.source&&(r=o);return r}updateFor(e,i){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(_i(e.state))}},vo=class t extends _t{constructor(e,i,n,r,s,o){super(e,3,i),this.limit=n,this.result=r,this.from=s,this.to=o}hasResult(){return!0}updateFor(e,i){var n;if(!(i&3))return this.map(e.changes);let r=this.result;r.map&&!e.changes.empty&&(r=r.map(r,e.changes));let s=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),l=_i(e.state);if(l>o||!r||i&2&&(_i(e.startState)==this.from||l<this.limit))return new _t(this.source,i&4?1:0);let a=e.changes.mapPos(this.limit);return dw(r.validFor,e.state,s,o)?new t(this.source,this.explicit,a,r,s,o):r.update&&(r=r.update(r,s,o,new So(e.state,l,!1)))?new t(this.source,this.explicit,a,r,r.from,(n=r.to)!==null&&n!==void 0?n:_i(e.state)):new _t(this.source,1,this.explicit)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new t(this.source,this.explicit,e.mapPos(this.limit),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new _t(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}};Fc=R.define({map(t,e){return t.map(i=>i.map(e))}}),HO=R.define(),ke=F.define({create(){return Bc.start()},update(t,e){return t.update(e)},provide:t=>[ii.from(t,e=>e.tooltip),w.contentAttributes.from(t,e=>e.attrs)]});pw=ow(ke,Gc);Uc=t=>{let e=t.state.field(ke,!1);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<t.state.facet(pe).interactionDelay?!1:Gc(t,e.open.options[e.open.selected])},zc=t=>t.state.field(ke,!1)?(t.dispatch({effects:wo.of(!0)}),!0):!1,Ow=t=>{let e=t.state.field(ke,!1);return!e||!e.active.some(i=>i.state!=0)?!1:(t.dispatch({effects:$r.of(null)}),!0)},Yc=class{constructor(e,i){this.active=e,this.context=i,this.time=Date.now(),this.updates=[],this.done=void 0}},mw=50,gw=1e3,bw=J.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of t.state.field(ke).active)e.isPending&&this.startQuery(e)}update(t){let e=t.state.field(ke),i=t.state.facet(pe);if(!t.selectionSet&&!t.docChanged&&t.startState.field(ke)==e)return;let n=t.transactions.some(s=>{let o=UO(s,i);return o&8||(s.selection||s.docChanged)&&!(o&3)});for(let s=0;s<this.running.length;s++){let o=this.running[s];if(n||o.context.abortOnDocChange&&t.docChanged||o.updates.length+t.transactions.length>mw&&Date.now()-o.time>gw){for(let l of o.context.abortListeners)try{l()}catch(a){de(this.view.state,a)}o.context.abortListeners=null,this.running.splice(s--,1)}else o.updates.push(...t.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some(s=>s.effects.some(o=>o.is(wo)))&&(this.pendingStart=!0);let r=this.pendingStart?50:i.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(s=>s.isPending&&!this.running.some(o=>o.active.source==s.source))?setTimeout(()=>this.startUpdate(),r):-1,this.composing!=0)for(let s of t.transactions)s.isUserEvent("input.type")?this.composing=2:this.composing==2&&s.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:t}=this.view,e=t.field(ke);for(let i of e.active)i.isPending&&!this.running.some(n=>n.active.source==i.source)&&this.startQuery(i);this.running.length&&e.open&&e.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(pe).updateSyncTime))}startQuery(t){let{state:e}=this.view,i=_i(e),n=new So(e,i,t.explicit,this.view),r=new Yc(t,n);this.running.push(r),Promise.resolve(t.source(n)).then(s=>{r.context.aborted||(r.done=s||null,this.scheduleAccept())},s=>{this.view.dispatch({effects:$r.of(null)}),de(this.view.state,s)})}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(pe).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],i=this.view.state.facet(pe),n=this.view.state.field(ke);for(let r=0;r<this.running.length;r++){let s=this.running[r];if(s.done===void 0)continue;if(this.running.splice(r--,1),s.done){let l=_i(s.updates.length?s.updates[0].startState:this.view.state),a=Math.min(l,s.done.from+(s.active.explicit?0:1)),c=new vo(s.active.source,s.active.explicit,a,s.done,s.done.from,(t=s.done.to)!==null&&t!==void 0?t:l);for(let h of s.updates)c=c.update(h,i);if(c.hasResult()){e.push(c);continue}}let o=n.active.find(l=>l.source==s.active.source);if(o&&o.isPending)if(s.done==null){let l=new _t(s.active.source,0);for(let a of s.updates)l=l.update(a,i);l.isPending||e.push(l)}else this.startQuery(o)}(e.length||n.open&&n.open.disabled)&&this.view.dispatch({effects:Fc.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(ke,!1);if(e&&e.tooltip&&this.view.state.facet(pe).closeOnBlur){let i=e.open&&Va(this.view,e.open.tooltip);(!i||!i.dom.contains(t.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:$r.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:wo.of(!1)}),20),this.composing=0}}}),yw=typeof navigator=="object"&&/Win/.test(navigator.platform),xw=He.highest(w.domEventHandlers({keydown(t,e){let i=e.state.field(ke,!1);if(!i||!i.open||i.open.disabled||i.open.selected<0||t.key.length>1||t.ctrlKey&&!(yw&&t.altKey)||t.metaKey)return!1;let n=i.open.options[i.open.selected],r=i.active.find(o=>o.source==n.source),s=n.completion.commitCharacters||r.result.commitCharacters;return s&&s.indexOf(t.key)>-1&&Gc(e,n),!1}})),KO=w.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xB7\xB7\xB7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25CB'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25CC'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1D465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1D436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1D461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222A'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25A1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1F511}\uFE0E'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25A2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),Wc=class{constructor(e,i,n,r){this.field=e,this.line=i,this.from=n,this.to=r}},jc=class t{constructor(e,i,n){this.field=e,this.from=i,this.to=n}map(e){let i=e.mapPos(this.from,-1,fe.TrackDel),n=e.mapPos(this.to,1,fe.TrackDel);return i==null||n==null?null:new t(this.field,i,n)}},Ic=class t{constructor(e,i){this.lines=e,this.fieldPositions=i}instantiate(e,i){let n=[],r=[i],s=e.doc.lineAt(i),o=/^\s*/.exec(s.text)[0];for(let a of this.lines){if(n.length){let c=o,h=/^\t*/.exec(a)[0].length;for(let u=0;u<h;u++)c+=e.facet(yn);r.push(i+c.length-h),a=c+a.slice(h)}n.push(a),i+=a.length+1}let l=this.fieldPositions.map(a=>new jc(a.field,r[a.line]+a.from,r[a.line]+a.to));return{text:n,ranges:l}}static parse(e){let i=[],n=[],r=[],s;for(let o of e.split(/\r\n?|\n/)){for(;s=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(o);){let l=s[1]?+s[1]:null,a=s[2]||s[3]||"",c=-1,h=a.replace(/\\[{}]/g,u=>u[1]);for(let u=0;u<i.length;u++)(l!=null?i[u].seq==l:h&&i[u].name==h)&&(c=u);if(c<0){let u=0;for(;u<i.length&&(l==null||i[u].seq!=null&&i[u].seq<l);)u++;i.splice(u,0,{seq:l,name:h}),c=u;for(let f of r)f.field>=c&&f.field++}for(let u of r)if(u.line==n.length&&u.from>s.index){let f=s[2]?3+(s[1]||"").length:2;u.from-=f,u.to-=f}r.push(new Wc(c,n.length,s.index,s.index+h.length)),o=o.slice(0,s.index)+a+o.slice(s.index+s[0].length)}o=o.replace(/\\([{}])/g,(l,a,c)=>{for(let h of r)h.line==n.length&&h.from>c&&(h.from--,h.to--);return a}),n.push(o)}return new t(n,r)}},Sw=T.widget({widget:new class extends xe{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),Qw=T.mark({class:"cm-snippetField"}),Pn=class t{constructor(e,i){this.ranges=e,this.active=i,this.deco=T.set(e.map(n=>(n.from==n.to?Sw:Qw).range(n.from,n.to)),!0)}map(e){let i=[];for(let n of this.ranges){let r=n.map(e);if(!r)return null;i.push(r)}return new t(i,this.active)}selectionInsideField(e){return e.ranges.every(i=>this.ranges.some(n=>n.field==this.active&&n.from<=i.from&&n.to>=i.to))}},Cr=R.define({map(t,e){return t&&t.map(e)}}),ww=R.define(),Pr=F.define({create(){return null},update(t,e){for(let i of e.effects){if(i.is(Cr))return i.value;if(i.is(ww)&&t)return new Pn(t.ranges,i.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>w.decorations.from(t,e=>e?e.deco:T.none)});vw=({state:t,dispatch:e})=>t.field(Pr,!1)?(e(t.update({effects:Cr.of(null)})),!0):!1,kw=JO(1),$w=JO(-1),Pw=[{key:"Tab",run:kw,shift:$w},{key:"Escape",run:vw}],jO=k.define({combine(t){return t.length?t[0]:Pw}}),Tw=He.highest($t.compute([jO],t=>t.facet(jO)));Cw=w.domEventHandlers({mousedown(t,e){let i=e.state.field(Pr,!1),n;if(!i||(n=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let r=i.ranges.find(s=>s.from<=n&&s.to>=n);return!r||r.field==i.active?!1:(e.dispatch({selection:Hc(i.ranges,r.field),effects:Cr.of(i.ranges.some(s=>s.field>r.field)?new Pn(i.ranges,r.field):null),scrollIntoView:!0}),!0)}}),Tr={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Vi=R.define({map(t,e){let i=e.mapPos(t,-1,fe.TrackAfter);return i??void 0}}),Kc=new class extends Ue{};Kc.startSide=1;Kc.endSide=-1;em=F.define({create(){return V.empty},update(t,e){if(t=t.map(e.changes),e.selection){let i=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:n=>n>=i.from&&n<=i.to})}for(let i of e.effects)i.is(Vi)&&(t=t.update({add:[Kc.range(i.value,i.value+1)]}));return t}});Dc="()[]{}<>\xAB\xBB\xBB\xAB\uFF3B\uFF3D\uFF5B\uFF5D";Aw=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),Zw=w.inputHandler.of((t,e,i,n)=>{if((Aw?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let r=t.state.selection.main;if(n.length>2||n.length==2&&qe(ge(n,0))==1||e!=r.from||i!=r.to)return!1;let s=Xw(t.state,n);return s?(t.dispatch(s),!0):!1}),Rw=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=nm(t,t.selection.main.head).brackets||Tr.brackets,r=null,s=t.changeByRange(o=>{if(o.empty){let l=Mw(t.doc,o.head);for(let a of n)if(a==l&&$o(t.doc,o.head)==im(ge(a,0)))return{changes:{from:o.head-a.length,to:o.head+a.length},range:y.cursor(o.head-a.length)}}return{range:r=o}});return r||e(t.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!r},rm=[{key:"Backspace",run:Rw}];Jc=[{key:"Ctrl-Space",run:zc},{mac:"Alt-`",run:zc},{mac:"Alt-i",run:zc},{key:"Escape",run:Ow},{key:"ArrowDown",run:xo(!0)},{key:"ArrowUp",run:xo(!1)},{key:"PageDown",run:xo(!0,"page")},{key:"PageUp",run:xo(!1,"page")},{key:"Enter",run:Uc}],qw=He.highest($t.computeN([pe],t=>t.facet(pe).defaultKeymap?[Jc]:[]))});function Cn(t,e=null,i=0){let n=null;return t.between(i,1e9,(r,s,{spec:o})=>{if(!(e&&o.diagnostics.indexOf(e)<0))if(!n)n=new Ao(r,s,e||o.diagnostics[0]);else{if(o.diagnostics.indexOf(n.diagnostic)<0)return!1;n=new Ao(n.from,s,n.diagnostic)}}),n}function hm(t,e){let i=e.pos,n=e.end||i,r=t.state.facet(At).hideOn(t,i,n);if(r!=null)return r;let s=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(o=>o.is(Xo))||t.changes.touchesRange(s.from,Math.max(s.to,n)))}function um(t,e){return t.field(We,!1)?e:e.concat(R.appendConfig.of(xm))}function Vw(t,e){return{effects:um(t,[Xo.of(e)])}}function Bw(t,e,i){let{diagnostics:n}=t.state.field(We),r,s=-1,o=-1;n.between(e-(i<0?1:0),e+(i>0?1:0),(a,c,{spec:h})=>{if(e>=a&&e<=c&&(a==c||(e>a||i>0)&&(e<c||i<0)))return r=h.diagnostics,s=a,o=c,!1});let l=t.state.facet(At).tooltipFilter;return r&&l&&(r=l(r,t.state)),r?{pos:s,end:o,above:t.state.doc.lineAt(s).to<o,create(){return{dom:dm(t,r)}}}:null}function dm(t,e){return W("ul",{class:"cm-tooltip-lint"},e.map(i=>gm(t,i,!1)))}function Iw(t,e,i){let n=[],r=-1;for(let s of t)s.then(o=>{n.push(o),clearTimeout(r),n.length==t.length?e(n):r=setTimeout(()=>e(n),200)},i)}function cm(t,e){return t?e?(i,n)=>e(t(i,n),n):t:e}function Om(t,e={}){return[At.of({source:t,config:e}),jw,xm]}function mm(t){let e=[];if(t)e:for(let{name:i}of t){for(let n=0;n<i.length;n++){let r=i[n];if(/[a-zA-Z]/.test(r)&&!e.some(s=>s.toLowerCase()==r.toLowerCase())){e.push(r);continue e}}e.push("")}return e}function gm(t,e,i){var n;let r=i?mm(e.actions):[];return W("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},W("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(t):e.message),(n=e.actions)===null||n===void 0?void 0:n.map((s,o)=>{let l=!1,a=d=>{if(d.preventDefault(),l)return;l=!0;let p=Cn(t.state.field(We).diagnostics,e);p&&s.apply(t,p.from,p.to)},{name:c}=s,h=r[o]?c.indexOf(r[o]):-1,u=h<0?c:[c.slice(0,h),W("u",c.slice(h,h+1)),c.slice(h+1)],f=s.markClass?" "+s.markClass:"";return W("button",{type:"button",class:"cm-diagnosticAction"+f,onclick:a,onmousedown:a,"aria-label":` Action: ${c}${h<0?"":` (access key "${r[o]})"`}.`},u)}),e.source&&W("div",{class:"cm-diagnosticSource"},e.source))}function Co(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(t)}</svg>')`}function To(t){return Co(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${t}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}function Fw(t){return t=="error"?4:t=="warning"?3:t=="info"?2:1}function bm(t){let e="hint",i=1;for(let n of t){let r=Fw(n.severity);r>i&&(i=r,e=n.severity)}return e}function Gw(t,e){let i=n=>{let r=e.getBoundingClientRect();if(!(n.clientX>r.left-10&&n.clientX<r.right+10&&n.clientY>r.top-10&&n.clientY<r.bottom+10)){for(let s=n.target;s;s=s.parentNode)if(s.nodeType==1&&s.classList.contains("cm-tooltip-lint"))return;window.removeEventListener("mousemove",i),t.state.field(ym)&&t.dispatch({effects:rh.of(null)})}};window.addEventListener("mousemove",i)}function Uw(t,e,i){function n(){let o=t.elementAtHeight(e.getBoundingClientRect().top+5-t.documentTop);t.coordsAtPos(o.from)&&t.dispatch({effects:rh.of({pos:o.from,above:!1,clip:!1,create(){return{dom:dm(t,i),getCoords:()=>e.getBoundingClientRect()}}})}),e.onmouseout=e.onmousemove=null,Gw(t,e)}let{hoverTime:r}=t.state.facet(Mo),s=setTimeout(n,r);e.onmouseout=()=>{clearTimeout(s),e.onmouseout=e.onmousemove=null},e.onmousemove=()=>{clearTimeout(s),s=setTimeout(n,r)}}function Hw(t,e){let i=Object.create(null);for(let r of e){let s=t.lineAt(r.from);(i[s.from]||(i[s.from]=[])).push(r)}let n=[];for(let r in i)n.push(new Ro(i[r]).range(+r));return V.of(n,!0)}function Sm(t={}){return[Mo.of(t),ih,Kw,Jw,ym]}var Ao,Bi,Xo,nh,fm,We,_w,Yw,am,Ww,pm,jw,At,th,Zo,Ar,Nw,Ro,Kw,ih,rh,ym,Jw,xm,Mo,sh=K(()=>{_e();Ke();ts();Ao=class{constructor(e,i,n){this.from=e,this.to=i,this.diagnostic=n}},Bi=class t{constructor(e,i,n){this.diagnostics=e,this.panel=i,this.selected=n}static init(e,i,n){let r=n.facet(At).markerFilter;r&&(e=r(e,n));let s=e.slice().sort((d,p)=>d.from-p.from||d.to-p.to),o=new Le,l=[],a=0,c=n.doc.iter(),h=0,u=n.doc.length;for(let d=0;;){let p=d==s.length?null:s[d];if(!p&&!l.length)break;let O,g;if(l.length)O=a,g=l.reduce((S,C)=>Math.min(S,C.to),p&&p.from>O?p.from:1e8);else{if(O=p.from,O>u)break;g=p.to,l.push(p),d++}for(;d<s.length;){let S=s[d];if(S.from==O&&(S.to>S.from||S.to==O))l.push(S),d++,g=Math.min(S.to,g);else{g=Math.min(S.from,g);break}}g=Math.min(g,u);let b=!1;if(l.some(S=>S.from==O&&(S.to==g||g==u))&&(b=O==g,!b&&g-O<10)){let S=O-(h+c.value.length);S>0&&(c.next(S),h=O);for(let C=O;;){if(C>=g){b=!0;break}if(!c.lineBreak&&h+c.value.length>C)break;C=h+c.value.length,h+=c.value.length,c.next()}}let x=bm(l);if(b)o.add(O,O,T.widget({widget:new th(x),diagnostics:l.slice()}));else{let S=l.reduce((C,Q)=>Q.markClass?C+" "+Q.markClass:C,"");o.add(O,g,T.mark({class:"cm-lintRange cm-lintRange-"+x+S,diagnostics:l.slice(),inclusiveEnd:l.some(C=>C.to>g)}))}if(a=g,a==u)break;for(let S=0;S<l.length;S++)l[S].to<=a&&l.splice(S--,1)}let f=o.finish();return new t(f,i,Cn(f))}};Xo=R.define(),nh=R.define(),fm=R.define(),We=F.define({create(){return new Bi(T.none,null,null)},update(t,e){if(e.docChanged&&t.diagnostics.size){let i=t.diagnostics.map(e.changes),n=null,r=t.panel;if(t.selected){let s=e.changes.mapPos(t.selected.from,1);n=Cn(i,t.selected.diagnostic,s)||Cn(i,null,s)}!i.size&&r&&e.state.facet(At).autoPanel&&(r=null),t=new Bi(i,r,n)}for(let i of e.effects)if(i.is(Xo)){let n=e.state.facet(At).autoPanel?i.value.length?Ar.open:null:t.panel;t=Bi.init(i.value,n,e.state)}else i.is(nh)?t=new Bi(t.diagnostics,i.value?Ar.open:null,t.selected):i.is(fm)&&(t=new Bi(t.diagnostics,t.panel,i.value));return t},provide:t=>[Zi.from(t,e=>e.panel),w.decorations.from(t,e=>e.diagnostics)]}),_w=T.mark({class:"cm-lintRange cm-lintRange-active"});Yw=t=>{let e=t.state.field(We,!1);(!e||!e.panel)&&t.dispatch({effects:um(t.state,[nh.of(!0)])});let i=fr(t,Ar.open);return i&&i.dom.querySelector(".cm-panel-lint ul").focus(),!0},am=t=>{let e=t.state.field(We,!1);return!e||!e.panel?!1:(t.dispatch({effects:nh.of(!1)}),!0)},Ww=t=>{let e=t.state.field(We,!1);if(!e)return!1;let i=t.state.selection.main,n=e.diagnostics.iter(i.to+1);return!n.value&&(n=e.diagnostics.iter(0),!n.value||n.from==i.from&&n.to==i.to)?!1:(t.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0}),!0)},pm=[{key:"Mod-Shift-m",run:Yw,preventDefault:!0},{key:"F8",run:Ww}],jw=J.fromClass(class{constructor(t){this.view=t,this.timeout=-1,this.set=!0;let{delay:e}=t.state.facet(At);this.lintTime=Date.now()+e,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,e)}run(){clearTimeout(this.timeout);let t=Date.now();if(t<this.lintTime-10)this.timeout=setTimeout(this.run,this.lintTime-t);else{this.set=!1;let{state:e}=this.view,{sources:i}=e.facet(At);i.length&&Iw(i.map(n=>Promise.resolve(n(this.view))),n=>{this.view.state.doc==e.doc&&this.view.dispatch(Vw(this.view.state,n.reduce((r,s)=>r.concat(s))))},n=>{de(this.view.state,n)})}}update(t){let e=t.state.facet(At);(t.docChanged||e!=t.startState.facet(At)||e.needsRefresh&&e.needsRefresh(t))&&(this.lintTime=Date.now()+e.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,e.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}});At=k.define({combine(t){return{sources:t.map(e=>e.source).filter(e=>e!=null),...be(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:cm,tooltipFilter:cm,needsRefresh:(e,i)=>e?i?n=>e(n)||i(n):e:i,hideOn:(e,i)=>e?i?(n,r,s)=>e(n,r,s)||i(n,r,s):e:i,autoPanel:(e,i)=>e||i})}}});th=class extends xe{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return W("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}},Zo=class{constructor(e,i){this.diagnostic=i,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=gm(e,i,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}},Ar=class t{constructor(e){this.view=e,this.items=[];let i=r=>{if(r.keyCode==27)am(this.view),this.view.focus();else if(r.keyCode==38||r.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(r.keyCode==40||r.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(r.keyCode==36)this.moveSelection(0);else if(r.keyCode==35)this.moveSelection(this.items.length-1);else if(r.keyCode==13)this.view.focus();else if(r.keyCode>=65&&r.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:s}=this.items[this.selectedIndex],o=mm(s.actions);for(let l=0;l<o.length;l++)if(o[l].toUpperCase().charCodeAt(0)==r.keyCode){let a=Cn(this.view.state.field(We).diagnostics,s);a&&s.actions[l].apply(e,a.from,a.to)}}else return;r.preventDefault()},n=r=>{for(let s=0;s<this.items.length;s++)this.items[s].dom.contains(r.target)&&this.moveSelection(s)};this.list=W("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:i,onclick:n}),this.dom=W("div",{class:"cm-panel-lint"},this.list,W("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>am(this.view)},"\xD7")),this.update()}get selectedIndex(){let e=this.view.state.field(We).selected;if(!e)return-1;for(let i=0;i<this.items.length;i++)if(this.items[i].diagnostic==e.diagnostic)return i;return-1}update(){let{diagnostics:e,selected:i}=this.view.state.field(We),n=0,r=!1,s=null,o=new Set;for(e.between(0,this.view.state.doc.length,(l,a,{spec:c})=>{for(let h of c.diagnostics){if(o.has(h))continue;o.add(h);let u=-1,f;for(let d=n;d<this.items.length;d++)if(this.items[d].diagnostic==h){u=d;break}u<0?(f=new Zo(this.view,h),this.items.splice(n,0,f),r=!0):(f=this.items[u],u>n&&(this.items.splice(n,u-n),r=!0)),i&&f.diagnostic==i.diagnostic?f.dom.hasAttribute("aria-selected")||(f.dom.setAttribute("aria-selected","true"),s=f):f.dom.hasAttribute("aria-selected")&&f.dom.removeAttribute("aria-selected"),n++}});n<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)r=!0,this.items.pop();this.items.length==0&&(this.items.push(new Zo(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),r=!0),s?(this.list.setAttribute("aria-activedescendant",s.id),this.view.requestMeasure({key:this,read:()=>({sel:s.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:l,panel:a})=>{let c=a.height/this.list.offsetHeight;l.top<a.top?this.list.scrollTop-=(a.top-l.top)/c:l.bottom>a.bottom&&(this.list.scrollTop+=(l.bottom-a.bottom)/c)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function i(){let n=e;e=n.nextSibling,n.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)i();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)i()}moveSelection(e){if(this.selectedIndex<0)return;let i=this.view.state.field(We),n=Cn(i.diagnostics,this.items[e].diagnostic);n&&this.view.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0,effects:fm.of(n)})}static open(e){return new t(e)}};Nw=w.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:To("#d11")},".cm-lintRange-warning":{backgroundImage:To("orange")},".cm-lintRange-info":{backgroundImage:To("#999")},".cm-lintRange-hint":{backgroundImage:To("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});Ro=class extends Xe{constructor(e){super(),this.diagnostics=e,this.severity=bm(e)}toDOM(e){let i=document.createElement("div");i.className="cm-lint-marker cm-lint-marker-"+this.severity;let n=this.diagnostics,r=e.state.facet(Mo).tooltipFilter;return r&&(n=r(n,e.state)),n.length&&(i.onmouseover=()=>Uw(e,i,n)),i}};Kw=Ds({class:"cm-gutter-lint",markers:t=>t.state.field(ih),widgetMarker:(t,e,i)=>{let n=[];return t.state.field(ih).between(i.from,i.to,(r,s,o)=>{r>i.from&&r<i.to&&n.push(...o.diagnostics)}),n.length?new Ro(n):null}}),ih=F.define({create(){return V.empty},update(t,e){t=t.map(e.changes);let i=e.state.facet(Mo).markerFilter;for(let n of e.effects)if(n.is(Xo)){let r=n.value;i&&(r=i(r||[],e.state)),t=Hw(e.state.doc,r.slice(0))}return t}}),rh=R.define(),ym=F.define({create(){return null},update(t,e){return t&&e.docChanged&&(t=hm(e,t)?null:{...t,pos:e.changes.mapPos(t.pos)}),e.effects.reduce((i,n)=>n.is(rh)?n.value:i,t)},provide:t=>ii.from(t)}),Jw=w.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:Co('<path fill="#aaf" stroke="#77e" stroke-width="6" stroke-linejoin="round" d="M5 5L35 5L35 35L5 35Z"/>')},".cm-lint-marker-warning":{content:Co('<path fill="#fe8" stroke="#fd7" stroke-width="6" stroke-linejoin="round" d="M20 6L37 35L3 35Z"/>')},".cm-lint-marker-error":{content:Co('<circle cx="20" cy="20" r="15" fill="#f87" stroke="#f43" stroke-width="6"/>')}}),xm=[We,w.decorations.compute([We],t=>{let{selected:e,panel:i}=t.field(We);return!e||!i||e.from==e.to?T.none:T.set([_w.range(e.from,e.to)])}),Nd(Bw,{hideOn:hm}),Nw],Mo=k.define({combine(t){return be(t,{hoverTime:300,markerFilter:null,tooltipFilter:null})}})});var Qm,wm=K(()=>{_e();Ke();mt();kc();qO();Po();sh();Qm=[Jd(),ep(),Yd(),Kp(),Ep(),qd(),Bd(),I.allowMultipleSelections.of(!0),Pp(),Qn(Js,{fallback:!0}),Vp(),tm(),om(),jd(),Id(),Wd(),XO(),$t.of([...rm,...PO,...LO,...tO,...Rp,...Jc,...pm])]});function Zr(t,e=Uint16Array){if(typeof t!="string")return t;let i=null;for(let n=0,r=0;n<t.length;){let s=0;for(;;){let o=t.charCodeAt(n++),l=!1;if(o==126){s=65535;break}o>=92&&o--,o>=34&&o--;let a=o-32;if(a>=46&&(a-=46,l=!0),s+=a,l)break;s*=46}i?i[r++]=s:i=new e(s)}return i}function Cm(t,e,i,n,r,s){let o=0,l=1<<n,{dialect:a}=i.p.parser;e:for(;(l&t[o])!=0;){let c=t[o+1];for(let d=o+3;d<c;d+=2)if((t[d+1]&l)>0){let p=t[d];if(a.allows(p)&&(e.token.value==-1||e.token.value==p||tv(p,e.token.value,r,s))){e.acceptToken(p);break}}let h=e.next,u=0,f=t[o+2];if(e.next<0&&f>u&&t[c+f*3-3]==65535){o=t[c+f*3-1];continue e}for(;u<f;){let d=u+f>>1,p=c+d+(d<<1),O=t[p],g=t[p+1]||65536;if(h<O)f=d;else if(h>=g)u=d+1;else{o=t[p+2],e.advance();continue e}}break}}function km(t,e,i){for(let n=e,r;(r=t[n])!=65535;n++)if(r==i)return n-e;return-1}function tv(t,e,i,n){let r=km(i,n,e);return r<0||km(i,n,t)<r}function $m(t,e,i){let n=t.cursor(B.IncludeAnonymous);for(n.moveTo(e);;)if(!(i<0?n.childBefore(e):n.childAfter(e)))for(;;){if((i<0?n.to<e:n.from>e)&&!n.type.isError)return i<0?Math.max(0,Math.min(n.to-1,e-25)):Math.min(t.length,Math.max(n.from+1,e+25));if(i<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return i<0?0:t.length}}function Pm(t,e){for(let i=0;i<e.length;i++){let n=e[i];if(n.pos==t.pos&&n.sameState(t)){e[i].score<t.score&&(e[i]=t);return}}e.push(t)}function Bt(t,e){return t[e]|t[e+1]<<16}function iv(t){let e=null;for(let i of t){let n=i.p.stoppedAt;(i.pos==i.p.stream.end||n!=null&&i.pos>n)&&i.p.parser.stateFlag(i.state,2)&&(!e||e.score<i.score)&&(e=i)}return e}function Tm(t){if(t.external){let e=t.extend?1:0;return(i,n)=>t.external(i,n)<<1|e}return t.get}var ah,Eo,ch,hh,An,vm,uh,Oi,mi,Oe,je,oh,fh,dh,ph,Oh,lh,Zn,gi,zo=K(()=>{si();ah=class t{constructor(e,i,n,r,s,o,l,a,c,h=0,u){this.p=e,this.stack=i,this.state=n,this.reducePos=r,this.pos=s,this.score=o,this.buffer=l,this.bufferBase=a,this.curContext=c,this.lookAhead=h,this.parent=u}toString(){return`[${this.stack.filter((e,i)=>i%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,i,n=0){let r=e.parser.context;return new t(e,[],i,n,n,0,[],0,r?new Eo(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,i){this.stack.push(this.state,i,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var i;let n=e>>19,r=e&65535,{parser:s}=this.p,o=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),l=s.dynamicPrecedence(r);if(l&&(this.score+=l),n==0){this.pushState(s.getGoto(this.state,r,!0),this.reducePos),r<s.minRepeatTerm&&this.storeNode(r,this.reducePos,this.reducePos,o?8:4,!0),this.reduceContext(r,this.reducePos);return}let a=this.stack.length-(n-1)*3-(e&262144?6:0),c=a?this.stack[a-2]:this.p.ranges[0].from,h=this.reducePos-c;h>=2e3&&!(!((i=this.p.parser.nodeSet.types[r])===null||i===void 0)&&i.isAnonymous)&&(c==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=h):this.p.lastBigReductionSize<h&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=c,this.p.lastBigReductionSize=h));let u=a?this.stack[a-1]:0,f=this.bufferBase+this.buffer.length-u;if(r<s.minRepeatTerm||e&131072){let d=s.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,c,d,f+4,!0)}if(e&262144)this.state=this.stack[a];else{let d=this.stack[a-3];this.state=s.getGoto(d,r,!0)}for(;this.stack.length>a;)this.stack.pop();this.reduceContext(r,c)}storeNode(e,i,n,r=4,s=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let o=this,l=this.buffer.length;if(l==0&&o.parent&&(l=o.bufferBase-o.parent.bufferBase,o=o.parent),l>0&&o.buffer[l-4]==0&&o.buffer[l-1]>-1){if(i==n)return;if(o.buffer[l-2]>=i){o.buffer[l-2]=n;return}}}if(!s||this.pos==n)this.buffer.push(e,i,n,r);else{let o=this.buffer.length;if(o>0&&(this.buffer[o-4]!=0||this.buffer[o-1]<0)){let l=!1;for(let a=o;a>0&&this.buffer[a-2]>n;a-=4)if(this.buffer[a-1]>=0){l=!0;break}if(l)for(;o>0&&this.buffer[o-2]>n;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,r>4&&(r-=4)}this.buffer[o]=e,this.buffer[o+1]=i,this.buffer[o+2]=n,this.buffer[o+3]=r}}shift(e,i,n,r){if(e&131072)this.pushState(e&65535,this.pos);else if((e&262144)==0){let s=e,{parser:o}=this.p;this.pos=r,!o.stateFlag(s,1)&&(r>n||i<=o.maxNode)&&(this.reducePos=r),this.pushState(s,Math.min(n,this.reducePos)),this.shiftContext(i,n),i<=o.maxNode&&this.buffer.push(i,n,r,4)}else this.pos=r,this.shiftContext(i,n),i<=this.p.parser.maxNode&&this.buffer.push(i,n,r,4)}apply(e,i,n,r){e&65536?this.reduce(e):this.shift(e,i,n,r)}useNode(e,i){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(i,r),this.buffer.push(n,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,i=e.buffer.length;for(;i>0&&e.buffer[i-2]>e.reducePos;)i-=4;let n=e.buffer.slice(i),r=e.bufferBase+i;for(;e&&r==e.bufferBase;)e=e.parent;return new t(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,i){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,i,4),this.storeNode(0,this.pos,i,n?8:4),this.pos=this.reducePos=i,this.score-=190}canShift(e){for(let i=new ch(this);;){let n=this.p.parser.stateSlot(i.state,4)||this.p.parser.hasAction(i.state,e);if(n==0)return!1;if((n&65536)==0)return!0;i.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let i=this.p.parser.nextStates(this.state);if(i.length>8||this.stack.length>=120){let r=[];for(let s=0,o;s<i.length;s+=2)(o=i[s+1])!=this.state&&this.p.parser.hasAction(o,e)&&r.push(i[s],o);if(this.stack.length<120)for(let s=0;r.length<8&&s<i.length;s+=2){let o=i[s+1];r.some((l,a)=>a&1&&l==o)||r.push(i[s],o)}i=r}let n=[];for(let r=0;r<i.length&&n.length<4;r+=2){let s=i[r+1];if(s==this.state)continue;let o=this.split();o.pushState(s,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(i[r],this.pos),o.reducePos=this.pos,o.score-=200,n.push(o)}return n}forceReduce(){let{parser:e}=this.p,i=e.stateSlot(this.state,5);if((i&65536)==0)return!1;if(!e.validAction(this.state,i)){let n=i>>19,r=i&65535,s=this.stack.length-n*3;if(s<0||e.getGoto(this.stack[s],r,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;i=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(i),!0}findForcedReduction(){let{parser:e}=this.p,i=[],n=(r,s)=>{if(!i.includes(r))return i.push(r),e.allActions(r,o=>{if(!(o&393216))if(o&65536){let l=(o>>19)-s;if(l>1){let a=o&65535,c=this.stack.length-l*3;if(c>=0&&e.getGoto(this.stack[c],a,!1)>=0)return l<<19|65536|a}}else{let l=n(o,s+1);if(l!=null)return l}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let i=0;i<this.stack.length;i+=3)if(this.stack[i]!=e.stack[i])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,i){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(i)))}reduceContext(e,i){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(i)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let i=new Eo(this.curContext.tracker,e);i.hash!=this.curContext.hash&&this.emitContext(),this.curContext=i}}setLookAhead(e){return e<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=e,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}},Eo=class{constructor(e,i){this.tracker=e,this.context=i,this.hash=e.strict?e.hash(i):0}},ch=class{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let i=e&65535,n=e>>19;n==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(n-1)*3;let r=this.start.p.parser.getGoto(this.stack[this.base-3],i,!0);this.state=r}},hh=class t{constructor(e,i,n){this.stack=e,this.pos=i,this.index=n,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,i=e.bufferBase+e.buffer.length){return new t(e,i,i-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}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]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new t(this.stack,this.pos,this.index)}};An=class{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}},vm=new An,uh=class{constructor(e,i){this.input=e,this.ranges=i,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=vm,this.rangeIndex=0,this.pos=this.chunkPos=i[0].from,this.range=i[0],this.end=i[i.length-1].to,this.readNext()}resolveOffset(e,i){let n=this.range,r=this.rangeIndex,s=this.pos+e;for(;s<n.from;){if(!r)return null;let o=this.ranges[--r];s-=n.from-o.to,n=o}for(;i<0?s>n.to:s>=n.to;){if(r==this.ranges.length-1)return null;let o=this.ranges[++r];s+=o.from-n.to,n=o}return s}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let i of this.ranges)if(i.to>e)return Math.max(e,i.from);return this.end}peek(e){let i=this.chunkOff+e,n,r;if(i>=0&&i<this.chunk.length)n=this.pos+e,r=this.chunk.charCodeAt(i);else{let s=this.resolveOffset(e,1);if(s==null)return-1;if(n=s,n>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)r=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let o=this.rangeIndex,l=this.range;for(;l.to<=n;)l=this.ranges[++o];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>l.to&&(this.chunk2=this.chunk2.slice(0,l.to-n)),r=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),r}acceptToken(e,i=0){let n=i?this.resolveOffset(i,-1):this.pos;if(n==null||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}acceptTokenTo(e,i){this.token.value=e,this.token.end=i}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:i}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=i,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),i=this.pos+e.length;this.chunk=i>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,i){if(i?(this.token=i,i.start=e,i.lookAhead=e+1,i.value=i.extended=-1):this.token=vm,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,i){if(e>=this.chunkPos&&i<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,i-this.chunkPos);if(e>=this.chunk2Pos&&i<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,i-this.chunk2Pos);if(e>=this.range.from&&i<=this.range.to)return this.input.read(e,i);let n="";for(let r of this.ranges){if(r.from>=i)break;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,i)))}return n}},Oi=class{constructor(e,i){this.data=e,this.id=i}token(e,i){let{parser:n}=i.p;Cm(this.data,e,i,this.id,n.data,n.tokenPrecTable)}};Oi.prototype.contextual=Oi.prototype.fallback=Oi.prototype.extend=!1;mi=class{constructor(e,i,n){this.precTable=i,this.elseToken=n,this.data=typeof e=="string"?Zr(e):e}token(e,i){let n=e.pos,r=0;for(;;){let s=e.next<0,o=e.resolveOffset(1,1);if(Cm(this.data,e,i,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(s||r++,o==null)break;e.reset(o,e.token)}r&&(e.reset(n,e.token),e.acceptToken(this.elseToken,r))}};mi.prototype.contextual=Oi.prototype.fallback=Oi.prototype.extend=!1;Oe=class{constructor(e,i={}){this.token=e,this.contextual=!!i.contextual,this.fallback=!!i.fallback,this.extend=!!i.extend}};je=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG),oh=null;fh=class{constructor(e,i){this.fragments=e,this.nodeSet=i,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?$m(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?$m(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let i=this.trees.length-1;if(i<0)return this.nextFragment(),null;let n=this.trees[i],r=this.index[i];if(r==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let s=n.children[r],o=this.start[i]+n.positions[r];if(o>e)return this.nextStart=o,null;if(s instanceof oe){if(o==e){if(o<this.safeFrom)return null;let l=o+s.length;if(l<=this.safeTo){let a=s.prop(M.lookAhead);if(!a||l+a<this.fragment.to)return s}}this.index[i]++,o+s.length>=Math.max(this.safeFrom,e)&&(this.trees.push(s),this.start.push(o),this.index.push(0))}else this.index[i]++,this.nextStart=o+s.length}}},dh=class{constructor(e,i){this.stream=i,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(n=>new An)}getActions(e){let i=0,n=null,{parser:r}=e.p,{tokenizers:s}=r,o=r.stateSlot(e.state,3),l=e.curContext?e.curContext.hash:0,a=0;for(let c=0;c<s.length;c++){if((1<<c&o)==0)continue;let h=s[c],u=this.tokens[c];if(!(n&&!h.fallback)&&((h.contextual||u.start!=e.pos||u.mask!=o||u.context!=l)&&(this.updateCachedToken(u,h,e),u.mask=o,u.context=l),u.lookAhead>u.end+25&&(a=Math.max(u.lookAhead,a)),u.value!=0)){let f=i;if(u.extended>-1&&(i=this.addActions(e,u.extended,u.end,i)),i=this.addActions(e,u.value,u.end,i),!h.extend&&(n=u,i>f))break}}for(;this.actions.length>i;)this.actions.pop();return a&&e.setLookAhead(a),!n&&e.pos==this.stream.end&&(n=new An,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,i=this.addActions(e,n.value,n.end,i)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let i=new An,{pos:n,p:r}=e;return i.start=n,i.end=Math.min(n+1,r.stream.end),i.value=n==r.stream.end?r.parser.eofTerm:0,i}updateCachedToken(e,i,n){let r=this.stream.clipPos(n.pos);if(i.token(this.stream.reset(r,e),n),e.value>-1){let{parser:s}=n.p;for(let o=0;o<s.specialized.length;o++)if(s.specialized[o]==e.value){let l=s.specializers[o](this.stream.read(e.start,e.end),n);if(l>=0&&n.p.parser.dialect.allows(l>>1)){(l&1)==0?e.value=l>>1:e.extended=l>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,i,n,r){for(let s=0;s<r;s+=3)if(this.actions[s]==e)return r;return this.actions[r++]=e,this.actions[r++]=i,this.actions[r++]=n,r}addActions(e,i,n,r){let{state:s}=e,{parser:o}=e.p,{data:l}=o;for(let a=0;a<2;a++)for(let c=o.stateSlot(s,a?2:1);;c+=3){if(l[c]==65535)if(l[c+1]==1)c=Bt(l,c+2);else{r==0&&l[c+1]==2&&(r=this.putAction(Bt(l,c+2),i,n,r));break}l[c]==i&&(r=this.putAction(Bt(l,c+1),i,n,r))}return r}},ph=class{constructor(e,i,n,r){this.parser=e,this.input=i,this.ranges=r,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new uh(i,r),this.tokens=new dh(e,this.stream),this.topTerm=e.top[1];let{from:s}=r[0];this.stacks=[ah.start(this,e.top[0],s)],this.fragments=n.length&&this.stream.end-s>e.bufferLength*4?new fh(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,i=this.minStackPos,n=this.stacks=[],r,s;if(this.bigReductionCount>300&&e.length==1){let[o]=e;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<e.length;o++){let l=e[o];for(;;){if(this.tokens.mainToken=null,l.pos>i)n.push(l);else{if(this.advanceStack(l,n,e))continue;{r||(r=[],s=[]),r.push(l);let a=this.tokens.getMainToken(l);s.push(a.value,a.end)}}break}}if(!n.length){let o=r&&iv(r);if(o)return je&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw je&&r&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+i);this.recovering||(this.recovering=5)}if(this.recovering&&r){let o=this.stoppedAt!=null&&r[0].pos>this.stoppedAt?r[0]:this.runRecovery(r,s,n);if(o)return je&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(n.length>o)for(n.sort((l,a)=>a.score-l.score);n.length>o;)n.pop();n.some(l=>l.reducePos>i)&&this.recovering--}else if(n.length>1){e:for(let o=0;o<n.length-1;o++){let l=n[o];for(let a=o+1;a<n.length;a++){let c=n[a];if(l.sameState(c)||l.buffer.length>500&&c.buffer.length>500)if((l.score-c.score||l.buffer.length-c.buffer.length)>0)n.splice(a--,1);else{n.splice(o--,1);continue e}}}n.length>12&&(n.sort((o,l)=>l.score-o.score),n.splice(12,n.length-12))}this.minStackPos=n[0].pos;for(let o=1;o<n.length;o++)n[o].pos<this.minStackPos&&(this.minStackPos=n[o].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,i,n){let r=e.pos,{parser:s}=this,o=je?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let c=e.curContext&&e.curContext.tracker.strict,h=c?e.curContext.hash:0;for(let u=this.fragments.nodeAt(r);u;){let f=this.parser.nodeSet.types[u.type.id]==u.type?s.getGoto(e.state,u.type.id):-1;if(f>-1&&u.length&&(!c||(u.prop(M.contextHash)||0)==h))return e.useNode(u,f),je&&console.log(o+this.stackID(e)+` (via reuse of ${s.getName(u.type.id)})`),!0;if(!(u instanceof oe)||u.children.length==0||u.positions[0]>0)break;let d=u.children[0];if(d instanceof oe&&u.positions[0]==0)u=d;else break}}let l=s.stateSlot(e.state,4);if(l>0)return e.reduce(l),je&&console.log(o+this.stackID(e)+` (via always-reduce ${s.getName(l&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let a=this.tokens.getActions(e);for(let c=0;c<a.length;){let h=a[c++],u=a[c++],f=a[c++],d=c==a.length||!n,p=d?e:e.split(),O=this.tokens.mainToken;if(p.apply(h,u,O?O.start:p.pos,f),je&&console.log(o+this.stackID(p)+` (via ${(h&65536)==0?"shift":`reduce of ${s.getName(h&65535)}`} for ${s.getName(u)} @ ${r}${p==e?"":", split"})`),d)return!0;p.pos>r?i.push(p):n.push(p)}return!1}advanceFully(e,i){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return Pm(e,i),!0}}runRecovery(e,i,n){let r=null,s=!1;for(let o=0;o<e.length;o++){let l=e[o],a=i[o<<1],c=i[(o<<1)+1],h=je?this.stackID(l)+" -> ":"";if(l.deadEnd&&(s||(s=!0,l.restart(),je&&console.log(h+this.stackID(l)+" (restarted)"),this.advanceFully(l,n))))continue;let u=l.split(),f=h;for(let d=0;d<10&&u.forceReduce()&&(je&&console.log(f+this.stackID(u)+" (via force-reduce)"),!this.advanceFully(u,n));d++)je&&(f=this.stackID(u)+" -> ");for(let d of l.recoverByInsert(a))je&&console.log(h+this.stackID(d)+" (via recover-insert)"),this.advanceFully(d,n);this.stream.end>l.pos?(c==l.pos&&(c++,a=0),l.recoverByDelete(a,c),je&&console.log(h+this.stackID(l)+` (via recover-delete ${this.parser.getName(a)})`),Pm(l,n)):(!r||r.score<u.score)&&(r=u)}return r}stackToTree(e){return e.close(),oe.build({buffer:hh.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let i=(oh||(oh=new WeakMap)).get(e);return i||oh.set(e,i=String.fromCodePoint(this.nextStackID++)),i+e}};Oh=class{constructor(e,i,n){this.source=e,this.flags=i,this.disabled=n}allows(e){return!this.disabled||this.disabled[e]==0}},lh=t=>t,Zn=class{constructor(e){this.start=e.start,this.shift=e.shift||lh,this.reduce=e.reduce||lh,this.reuse=e.reuse||lh,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}},gi=class t extends On{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let i=e.nodeNames.split(" ");this.minRepeatTerm=i.length;for(let l=0;l<e.repeatNodeCount;l++)i.push("");let n=Object.keys(e.topRules).map(l=>e.topRules[l][1]),r=[];for(let l=0;l<i.length;l++)r.push([]);function s(l,a,c){r[l].push([a,a.deserialize(String(c))])}if(e.nodeProps)for(let l of e.nodeProps){let a=l[0];typeof a=="string"&&(a=M[a]);for(let c=1;c<l.length;){let h=l[c++];if(h>=0)s(h,a,l[c++]);else{let u=l[c+-h];for(let f=-h;f>0;f--)s(l[c++],a,u);c++}}}this.nodeSet=new dr(i.map((l,a)=>Se.define({name:a>=this.minRepeatTerm?void 0:l,id:a,props:r[a],top:n.indexOf(a)>-1,error:a==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(a)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=1024;let o=Zr(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let l=0;l<this.specializerSpecs.length;l++)this.specialized[l]=this.specializerSpecs[l].term;this.specializers=this.specializerSpecs.map(Tm),this.states=Zr(e.states,Uint32Array),this.data=Zr(e.stateData),this.goto=Zr(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(l=>typeof l=="number"?new Oi(o,l):l),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,i,n){let r=new ph(this,e,i,n);for(let s of this.wrappers)r=s(r,e,i,n);return r}getGoto(e,i,n=!1){let r=this.goto;if(i>=r[0])return-1;for(let s=r[i+1];;){let o=r[s++],l=o&1,a=r[s++];if(l&&n)return a;for(let c=s+(o>>1);s<c;s++)if(r[s]==e)return a;if(l)return-1}}hasAction(e,i){let n=this.data;for(let r=0;r<2;r++)for(let s=this.stateSlot(e,r?2:1),o;;s+=3){if((o=n[s])==65535)if(n[s+1]==1)o=n[s=Bt(n,s+2)];else{if(n[s+1]==2)return Bt(n,s+2);break}if(o==i||o==0)return Bt(n,s+1)}return 0}stateSlot(e,i){return this.states[e*6+i]}stateFlag(e,i){return(this.stateSlot(e,0)&i)>0}validAction(e,i){return!!this.allActions(e,n=>n==i?!0:null)}allActions(e,i){let n=this.stateSlot(e,4),r=n?i(n):void 0;for(let s=this.stateSlot(e,1);r==null;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=Bt(this.data,s+2);else break;r=i(Bt(this.data,s+1))}return r}nextStates(e){let i=[];for(let n=this.stateSlot(e,1);;n+=3){if(this.data[n]==65535)if(this.data[n+1]==1)n=Bt(this.data,n+2);else break;if((this.data[n+2]&1)==0){let r=this.data[n+1];i.some((s,o)=>o&1&&s==r)||i.push(this.data[n],r)}}return i}configure(e){let i=Object.assign(Object.create(t.prototype),this);if(e.props&&(i.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);i.top=n}return e.tokenizers&&(i.tokenizers=this.tokenizers.map(n=>{let r=e.tokenizers.find(s=>s.from==n);return r?r.to:n})),e.specializers&&(i.specializers=this.specializers.slice(),i.specializerSpecs=this.specializerSpecs.map((n,r)=>{let s=e.specializers.find(l=>l.from==n.external);if(!s)return n;let o=Object.assign(Object.assign({},n),{external:s.to});return i.specializers[r]=Tm(o),o})),e.contextTracker&&(i.context=e.contextTracker),e.dialect&&(i.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(i.strict=e.strict),e.wrap&&(i.wrappers=i.wrappers.concat(e.wrap)),e.bufferLength!=null&&(i.bufferLength=e.bufferLength),i}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let i=this.dynamicPrecedences;return i==null?0:i[e]||0}parseDialect(e){let i=Object.keys(this.dialects),n=i.map(()=>!1);if(e)for(let s of e.split(" ")){let o=i.indexOf(s);o>=0&&(n[o]=!0)}let r=null;for(let s=0;s<i.length;s++)if(!n[s])for(let o=this.dialects[i[s]],l;(l=this.data[o++])!=65535;)(r||(r=new Uint8Array(this.maxTerm+1)))[l]=1;return new Oh(e,n,r)}static deserialize(e){return new t(e)}}});function $v(t){return t==45||t==46||t==58||t>=65&&t<=90||t==95||t>=97&&t<=122||t>=161}function yh(t,e){let i=t.pos+e;if(Em==i&&Mm==t)return Xm;let n=t.peek(e),r="";for(;$v(n);)r+=String.fromCharCode(n),n=t.peek(++e);return Mm=t,Em=i,Xm=r?r.toLowerCase():n==Pv||n==Tv?void 0:null}function zm(t,e){this.name=t,this.parent=e}function Mv(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}function Qh(t,e,i){let n=2+t.length;return new Oe(r=>{for(let s=0,o=0,l=0;;l++){if(r.next<0){l&&r.acceptToken(e);break}if(s==0&&r.next==jm||s==1&&r.next==Sh||s>=2&&s<n&&r.next==t.charCodeAt(s-2))s++,o++;else if(s==n&&r.next==Do){l>o?r.acceptToken(e,-o):r.acceptToken(i,-(o-2));break}else if((r.next==10||r.next==13)&&l){r.acceptToken(e,1);break}else s=o=0;r.advance()}})}function Nm(t,e){let i=Object.create(null);for(let n of t.getChildren(Ym)){let r=n.getChild(mv),s=n.getChild(bh)||n.getChild(Wm);r&&(i[e.read(r.from,r.to)]=s?s.type.id==bh?e.read(s.from+1,s.to-1):e.read(s.from,s.to):"")}return i}function Dm(t,e){let i=t.getChild(Ov);return i?e.read(i.from,i.to):" "}function gh(t,e,i){let n;for(let r of i)if(!r.attrs||r.attrs(n||(n=Nm(t.node.parent.firstChild,e))))return{parser:r.parser,bracketed:!0};return null}function wh(t=[],e=[]){let i=[],n=[],r=[],s=[];for(let l of t)(l.tag=="script"?i:l.tag=="style"?n:l.tag=="textarea"?r:s).push(l);let o=e.length?Object.create(null):null;for(let l of e)(o[l.name]||(o[l.name]=[])).push(l);return hp((l,a)=>{let c=l.type.id;if(c==gv)return gh(l,a,i);if(c==bv)return gh(l,a,n);if(c==yv)return gh(l,a,r);if(c==Bm&&s.length){let h=l.node,u=h.firstChild,f=u&&Dm(u,a),d;if(f){for(let p of s)if(p.tag==f&&(!p.attrs||p.attrs(d||(d=Nm(u,a))))){let O=h.lastChild,g=O.type.id==Sv?O.from:h.to;if(g>u.to)return{parser:p.parser,overlay:[{from:u.to,to:g}]}}}}if(o&&c==Ym){let h=l.node,u;if(u=h.firstChild){let f=o[a.read(u.from,u.to)];if(f)for(let d of f){if(d.tagName&&d.tagName!=Dm(h.parent,a))continue;let p=h.lastChild;if(p.type.id==bh){let O=p.from+1,g=p.lastChild,b=p.to-(g&&g.isError?0:1);if(b>O)return{parser:d.parser,overlay:[{from:O,to:b}],bracketed:!0}}else if(p.type.id==Wm)return{parser:d.parser,overlay:[{from:p.from,to:p.to}]}}}}return null})}var nv,rv,sv,ov,lv,av,Am,cv,xh,Lm,qm,Vm,_m,hv,uv,fv,mh,dv,pv,Zm,Bm,Ov,Ym,mv,bh,Wm,gv,bv,yv,xv,Sv,Qv,wv,vv,kv,Rm,Xm,Mm,Em,jm,Do,Sh,Pv,Tv,Cv,Av,Zv,Rv,Xv,Ev,zv,Dv,Lv,qv,Im,Fm=K(()=>{zo();mn();si();nv=55,rv=1,sv=56,ov=2,lv=57,av=3,Am=4,cv=5,xh=6,Lm=7,qm=8,Vm=9,_m=10,hv=11,uv=12,fv=13,mh=58,dv=14,pv=15,Zm=59,Bm=21,Ov=23,Ym=24,mv=25,bh=27,Wm=28,gv=29,bv=32,yv=35,xv=37,Sv=38,Qv=0,wv=1,vv={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},kv={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Rm={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};Xm=null,Mm=null,Em=0;jm=60,Do=62,Sh=47,Pv=63,Tv=33,Cv=45;Av=[xh,_m,Lm,qm,Vm],Zv=new Zn({start:null,shift(t,e,i,n){return Av.indexOf(e)>-1?new zm(yh(n,1)||"",t):t},reduce(t,e){return e==Bm&&t?t.parent:t},reuse(t,e,i,n){let r=e.type.id;return r==xh||r==xv?new zm(yh(n,1)||"",t):t},strict:!1}),Rv=new Oe((t,e)=>{if(t.next!=jm){t.next<0&&e.context&&t.acceptToken(mh);return}t.advance();let i=t.next==Sh;i&&t.advance();let n=yh(t,0);if(n===void 0)return;if(!n)return t.acceptToken(i?pv:dv);let r=e.context?e.context.name:null;if(i){if(n==r)return t.acceptToken(hv);if(r&&kv[r])return t.acceptToken(mh,-2);if(e.dialectEnabled(Qv))return t.acceptToken(uv);for(let s=e.context;s;s=s.parent)if(s.name==n)return;t.acceptToken(fv)}else{if(n=="script")return t.acceptToken(Lm);if(n=="style")return t.acceptToken(qm);if(n=="textarea")return t.acceptToken(Vm);if(vv.hasOwnProperty(n))return t.acceptToken(_m);r&&Rm[r]&&Rm[r][n]?t.acceptToken(mh,-1):t.acceptToken(xh)}},{contextual:!0}),Xv=new Oe(t=>{for(let e=0,i=0;;i++){if(t.next<0){i&&t.acceptToken(Zm);break}if(t.next==Cv)e++;else if(t.next==Do&&e>=2){i>=3&&t.acceptToken(Zm,-2);break}else e=0;t.advance()}});Ev=new Oe((t,e)=>{if(t.next==Sh&&t.peek(1)==Do){let i=e.dialectEnabled(wv)||Mv(e.context);t.acceptToken(i?cv:Am,2)}else t.next==Do&&t.acceptToken(Am,1)});zv=Qh("script",nv,rv),Dv=Qh("style",sv,ov),Lv=Qh("textarea",lv,av),qv=ai({"Text RawText IncompleteTag IncompleteCloseTag":m.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":m.angleBracket,TagName:m.tagName,"MismatchedCloseTag/TagName":[m.tagName,m.invalid],AttributeName:m.attributeName,"AttributeValue UnquotedAttributeValue":m.attributeValue,Is:m.definitionOperator,"EntityReference CharacterReference":m.character,Comment:m.blockComment,ProcessingInst:m.processingInstruction,DoctypeDecl:m.documentMeta}),Im=gi.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO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ORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~",goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"\u26A0 StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:Zv,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,21,40,41,42,43,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5k;'S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[zv,Dv,Lv,Ev,Rv,Xv,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517})});function Rr(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function vh(t){return t>=48&&t<=57}function Um(t){return vh(t)||t>=97&&t<=102||t>=65&&t<=70}var Vv,Gm,_v,Bv,Hm,Yv,Wv,jv,Km,Iv,Nv,Jm,Fv,Lo,Gv,Uv,Hv,Kv,Jv,ek,tk,eg,ik,nk,rk,sk,ok,lk,ak,ck,hk,uk,tg,ig=K(()=>{zo();mn();Vv=122,Gm=1,_v=123,Bv=124,Hm=2,Yv=125,Wv=3,jv=4,Km=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Iv=58,Nv=40,Jm=95,Fv=91,Lo=45,Gv=46,Uv=35,Hv=37,Kv=38,Jv=92,ek=10,tk=42;eg=(t,e,i)=>(n,r)=>{for(let s=!1,o=0,l=0;;l++){let{next:a}=n;if(Rr(a)||a==Lo||a==Jm||s&&vh(a))!s&&(a!=Lo||l>0)&&(s=!0),o===l&&a==Lo&&o++,n.advance();else if(a==Jv&&n.peek(1)!=ek){if(n.advance(),Um(n.next)){do n.advance();while(Um(n.next));n.next==32&&n.advance()}else n.next>-1&&n.advance();s=!0}else{s&&n.acceptToken(o==2&&r.canShift(Hm)?e:a==Nv?i:t);break}}},ik=new Oe(eg(_v,Hm,Bv)),nk=new Oe(eg(Yv,Wv,jv)),rk=new Oe(t=>{if(Km.includes(t.peek(-1))){let{next:e}=t;(Rr(e)||e==Jm||e==Uv||e==Gv||e==tk||e==Fv||e==Iv&&Rr(t.peek(1))||e==Lo||e==Kv)&&t.acceptToken(Vv)}}),sk=new Oe(t=>{if(!Km.includes(t.peek(-1))){let{next:e}=t;if(e==Hv&&(t.advance(),t.acceptToken(Gm)),Rr(e)){do t.advance();while(Rr(t.next)||vh(t.next));t.acceptToken(Gm)}}}),ok=ai({"AtKeyword import charset namespace keyframes media supports":m.definitionKeyword,"from to selector":m.keyword,NamespaceName:m.namespace,KeyframeName:m.labelName,KeyframeRangeName:m.operatorKeyword,TagName:m.tagName,ClassName:m.className,PseudoClassName:m.constant(m.className),IdName:m.labelName,"FeatureName PropertyName":m.propertyName,AttributeName:m.attributeName,NumberLiteral:m.number,KeywordQuery:m.keyword,UnaryQueryOp:m.operatorKeyword,"CallTag ValueName":m.atom,VariableName:m.variableName,Callee:m.operatorKeyword,Unit:m.unit,"UniversalSelector NestingSelector":m.definitionOperator,"MatchOp CompareOp":m.compareOperator,"ChildOp SiblingOp, LogicOp":m.logicOperator,BinOp:m.arithmeticOperator,Important:m.modifier,Comment:m.blockComment,ColorLiteral:m.color,"ParenthesizedContent StringLiteral":m.string,":":m.punctuation,"PseudoOp #":m.derefOperator,"; ,":m.separator,"( )":m.paren,"[ ]":m.squareBracket,"{ }":m.brace}),lk={__proto__:null,lang:38,"nth-child":38,"nth-last-child":38,"nth-of-type":38,"nth-last-of-type":38,dir:38,"host-context":38,if:84,url:124,"url-prefix":124,domain:124,regexp:124},ak={__proto__:null,or:98,and:98,not:106,only:106,layer:170},ck={__proto__:null,selector:112,layer:166},hk={__proto__:null,"@import":162,"@media":174,"@charset":178,"@namespace":182,"@keyframes":188,"@supports":200,"@scope":204},uk={__proto__:null,to:207},tg=gi.deserialize({version:14,states:"EbQYQdOOO#qQdOOP#xO`OOOOQP'#Cf'#CfOOQP'#Ce'#CeO#}QdO'#ChO$nQaO'#CcO$xQdO'#CkO%TQdO'#DpO%YQdO'#DrO%_QdO'#DuO%_QdO'#DxOOQP'#FV'#FVO&eQhO'#EhOOQS'#FU'#FUOOQS'#Ek'#EkQYQdOOO&lQdO'#EOO&PQhO'#EUO&lQdO'#EWO'aQdO'#EYO'lQdO'#E]O'tQhO'#EcO(VQdO'#EeO(bQaO'#CfO)VQ`O'#D{O)[Q`O'#F`O)gQdO'#F`QOQ`OOP)qO&jO'#CaPOOO)C@t)C@tOOQP'#Cj'#CjOOQP,59S,59SO#}QdO,59SO)|QdO,59VO%TQdO,5:[O%YQdO,5:^O%_QdO,5:aO%_QdO,5:cO%_QdO,5:dO%_QdO'#ErO*XQ`O,58}O*aQdO'#DzOOQS,58},58}OOQP'#Cn'#CnOOQO'#Dn'#DnOOQP,59V,59VO*hQ`O,59VO*mQ`O,59VOOQP'#Dq'#DqOOQP,5:[,5:[OOQO'#Ds'#DsO*rQpO,5:^O+]QaO,5:aO+sQaO,5:dOOQW'#DZ'#DZO,ZQhO'#DdO,xQhO'#FaO'tQhO'#DbO-WQ`O'#DhOOQW'#F['#F[O-]Q`O,5;SO-eQ`O'#DeOOQS-E8i-E8iOOQ['#Cs'#CsO-jQdO'#CtO.QQdO'#CzO.hQdO'#C}O/OQ!pO'#DPO1RQ!jO,5:jOOQO'#DU'#DUO*mQ`O'#DTO1cQ!nO'#FXO3`Q`O'#DVO3eQ`O'#DkOOQ['#FX'#FXO-`Q`O,5:pO3jQ!bO,5:rOOQS'#E['#E[O3rQ`O,5:tO3wQdO,5:tOOQO'#E_'#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#{S%g$a%iQ%l$kQ&^%hR&p&P]#s!c!d!e#t#v#xW!Z]b!g$PQ!ufQ#f!YQ#l![Q$v#iQ$w#jQ$z#mS%V$R%XR&i%xQ#h!YQ%w$tR&w&hR$|#mR$n#`QlPR#_zQ!_]Q!nbQ$O!gR%U$P",nodeNames:"\u26A0 Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector CallQuery ArgList , CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to AtRule Styles",maxTerm:143,nodeProps:[["isolate",-2,5,36,""],["openedBy",20,"(",28,"[",31,"{"],["closedBy",21,")",29,"]",32,"}"]],propSources:[ok],skippedNodes:[0,5,106],repeatNodeCount:15,tokenData:"JQ~R!YOX$qX^%i^p$qpq%iqr({rs-ust/itu6Wuv$qvw7Qwx7cxy9Qyz9cz{9h{|:R|}>t}!O?V!O!P?t!P!Q@]!Q![AU![!]BP!]!^B{!^!_C^!_!`DY!`!aDm!a!b$q!b!cEn!c!}$q!}#OG{#O#P$q#P#QH^#Q#R6W#R#o$q#o#pHo#p#q6W#q#rIQ#r#sIc#s#y$q#y#z%i#z$f$q$f$g%i$g#BY$q#BY#BZ%i#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'S;=`%c<%lO%QhC|S!TW!a`Oy%Qz;'S%Q;'S;=`%c<%lO%QlDaS!TW!hSOy%Qz;'S%Q;'S;=`%c<%lO%QjDtV!jQ!TWOy%Qz!_%Q!_!`Cu!`!aEZ!a;'S%Q;'S;=`%c<%lO%QbEbS!jQ!a`Oy%Qz;'S%Q;'S;=`%c<%lO%QjEqYOy%Qz}%Q}!OFa!O!c%Q!c!}GO!}#T%Q#T#oGO#o;'S%Q;'S;=`%c<%lO%QjFfW!a`Oy%Qz!c%Q!c!}GO!}#T%Q#T#oGO#o;'S%Q;'S;=`%c<%lO%QjGV[iY!a`Oy%Qz}%Q}!OGO!O!Q%Q!Q![GO![!c%Q!c!}GO!}#T%Q#T#oGO#o;'S%Q;'S;=`%c<%lO%QjHQSmYOy%Qz;'S%Q;'S;=`%c<%lO%QnHcSl^Oy%Qz;'S%Q;'S;=`%c<%lO%QjHtSpYOy%Qz;'S%Q;'S;=`%c<%lO%QjIVSoYOy%Qz;'S%Q;'S;=`%c<%lO%QfIhU!mQOy%Qz!_%Q!_!`6m!`;'S%Q;'S;=`%c<%lO%Q`I}P;=`<%l$q",tokenizers:[rk,sk,ik,nk,1,2,3,4,new mi("m~RRYZ[z{a~~g~aO#v~~dP!P!Qg~lO#w~~",28,129)],topRules:{StyleSheet:[0,6],Styles:[1,105]},specialized:[{term:124,get:t=>lk[t]||-1},{term:125,get:t=>ak[t]||-1},{term:4,get:t=>ck[t]||-1},{term:25,get:t=>hk[t]||-1},{term:123,get:t=>uk[t]||-1}],tokenPrec:1963})});function $h(){if(!kh&&typeof document=="object"&&document.body){let{style:t}=document.body,e=[],i=new Set;for(let n in t)n!="cssText"&&n!="cssFloat"&&typeof t[n]=="string"&&(/[A-Z]/.test(n)&&(n=n.replace(/[A-Z]/g,r=>"-"+r.toLowerCase())),i.has(n)||(e.push(n),i.add(n)));kh=e.sort().map(n=>({type:"property",label:n,apply:n+": "}))}return kh||[]}function Ok(t,e){var i;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let n=(i=t.parent)===null||i===void 0?void 0:i.firstChild;return n?.name!="Callee"?!1:e.sliceString(n.from,n.to)=="var"}function gk(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function og(t,e,i){if(e.to-e.from>4096){let n=sg.get(e);if(n)return n;let r=[],s=new Set,o=e.cursor(B.IncludeAnonymous);if(o.firstChild())do for(let l of og(t,o.node,i))s.has(l.label)||(s.add(l.label),r.push(l));while(o.nextSibling());return sg.set(e,r),r}else{let n=[],r=new Set;return e.cursor().iterate(s=>{var o;if(i(s)&&s.matchContext(mk)&&((o=s.node.nextSibling)===null||o===void 0?void 0:o.name)==":"){let l=t.sliceString(s.from,s.to);r.has(l)||(r.add(l),n.push({label:l,type:"variable"}))}}),n}}function Xr(){return new ui(Zt,Zt.data.of({autocomplete:yk}))}var kh,ng,rg,fk,dk,Yt,pk,sg,mk,bk,yk,Zt,Ph=K(()=>{ig();mt();si();kh=null;ng=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),rg=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),fk=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),dk=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(t=>({type:"keyword",label:t})),Yt=/^(\w[\w-]*|-\w[\w-]*|)$/,pk=/^-(-[\w-]*)?$/;sg=new pn,mk=["Declaration"];bk=t=>e=>{let{state:i,pos:n}=e,r=_(i).resolveInner(n,-1),s=r.type.isError&&r.from==r.to-1&&i.doc.sliceString(r.from,r.to)=="-";if(r.name=="PropertyName"||(s||r.name=="TagName")&&/^(Block|Styles)$/.test(r.resolve(r.to).name))return{from:r.from,options:$h(),validFor:Yt};if(r.name=="ValueName")return{from:r.from,options:rg,validFor:Yt};if(r.name=="PseudoClassName")return{from:r.from,options:ng,validFor:Yt};if(t(r)||(e.explicit||s)&&Ok(r,i.doc))return{from:t(r)||s?r.from:n,options:og(i.doc,gk(r),t),validFor:pk};if(r.name=="TagName"){for(let{parent:a}=r;a;a=a.parent)if(a.name=="Block")return{from:r.from,options:$h(),validFor:Yt};return{from:r.from,options:fk,validFor:Yt}}if(r.name=="AtKeyword")return{from:r.from,options:dk,validFor:Yt};if(!e.explicit)return null;let o=r.resolve(n),l=o.childBefore(n);return l&&l.name==":"&&o.name=="PseudoClassSelector"?{from:n,options:ng,validFor:Yt}:l&&l.name==":"&&o.name=="Declaration"||o.name=="ArgList"?{from:n,options:rg,validFor:Yt}:o.name=="Block"||o.name=="Styles"?{from:n,options:$h(),validFor:Yt}:null},yk=bk(t=>t.name=="VariableName"),Zt=ci.define({name:"css",parser:tg.configure({props:[Di.add({Declaration:Sn()}),Li.add({"Block KeyframeList":Hs})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}})});function Th(t,e){return t>=65&&t<=90||t>=97&&t<=122||t==95||t>=192||!e&&t>=48&&t<=57}var xk,Sk,lg,Qk,wk,vk,kk,$k,Pk,Tk,Ck,Ak,Ch,ag,Zk,Ah,Rk,Xk,Mk,Ek,zk,Dk,Lk,qk,Vk,_k,Bk,Yk,Wk,jk,Ik,Nk,Fk,Gk,cg,hg=K(()=>{zo();mn();xk=316,Sk=317,lg=1,Qk=2,wk=3,vk=4,kk=318,$k=320,Pk=321,Tk=5,Ck=6,Ak=0,Ch=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],ag=125,Zk=59,Ah=47,Rk=42,Xk=43,Mk=45,Ek=60,zk=44,Dk=63,Lk=46,qk=91,Vk=new Zn({start:!1,shift(t,e){return e==Tk||e==Ck||e==$k?t:e==Pk},strict:!1}),_k=new Oe((t,e)=>{let{next:i}=t;(i==ag||i==-1||e.context)&&t.acceptToken(kk)},{contextual:!0,fallback:!0}),Bk=new Oe((t,e)=>{let{next:i}=t,n;Ch.indexOf(i)>-1||i==Ah&&((n=t.peek(1))==Ah||n==Rk)||i!=ag&&i!=Zk&&i!=-1&&!e.context&&t.acceptToken(xk)},{contextual:!0}),Yk=new Oe((t,e)=>{t.next==qk&&!e.context&&t.acceptToken(Sk)},{contextual:!0}),Wk=new Oe((t,e)=>{let{next:i}=t;if(i==Xk||i==Mk){if(t.advance(),i==t.next){t.advance();let n=!e.context&&e.canShift(lg);t.acceptToken(n?lg:Qk)}}else i==Dk&&t.peek(1)==Lk&&(t.advance(),t.advance(),(t.next<48||t.next>57)&&t.acceptToken(wk))},{contextual:!0});jk=new Oe((t,e)=>{if(t.next!=Ek||!e.dialectEnabled(Ak)||(t.advance(),t.next==Ah))return;let i=0;for(;Ch.indexOf(t.next)>-1;)t.advance(),i++;if(Th(t.next,!0)){for(t.advance(),i++;Th(t.next,!1);)t.advance(),i++;for(;Ch.indexOf(t.next)>-1;)t.advance(),i++;if(t.next==zk)return;for(let n=0;;n++){if(n==7){if(!Th(t.next,!0))return;break}if(t.next!="extends".charCodeAt(n))break;t.advance(),i++}}t.acceptToken(vk,-i)}),Ik=ai({"get set async static":m.modifier,"for while do if else switch try catch finally return throw break continue default case defer":m.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":m.operatorKeyword,"let var const using function class extends":m.definitionKeyword,"import export from":m.moduleKeyword,"with debugger new":m.keyword,TemplateString:m.special(m.string),super:m.atom,BooleanLiteral:m.bool,this:m.self,null:m.null,Star:m.modifier,VariableName:m.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":m.function(m.variableName),VariableDefinition:m.definition(m.variableName),Label:m.labelName,PropertyName:m.propertyName,PrivatePropertyName:m.special(m.propertyName),"CallExpression/MemberExpression/PropertyName":m.function(m.propertyName),"FunctionDeclaration/VariableDefinition":m.function(m.definition(m.variableName)),"ClassDeclaration/VariableDefinition":m.definition(m.className),"NewExpression/VariableName":m.className,PropertyDefinition:m.definition(m.propertyName),PrivatePropertyDefinition:m.definition(m.special(m.propertyName)),UpdateOp:m.updateOperator,"LineComment Hashbang":m.lineComment,BlockComment:m.blockComment,Number:m.number,String:m.string,Escape:m.escape,ArithOp:m.arithmeticOperator,LogicOp:m.logicOperator,BitOp:m.bitwiseOperator,CompareOp:m.compareOperator,RegExp:m.regexp,Equals:m.definitionOperator,Arrow:m.function(m.punctuation),": Spread":m.punctuation,"( )":m.paren,"[ ]":m.squareBracket,"{ }":m.brace,"InterpolationStart InterpolationEnd":m.special(m.brace),".":m.derefOperator,", ;":m.separator,"@":m.meta,TypeName:m.typeName,TypeDefinition:m.definition(m.typeName),"type enum interface implements namespace module declare":m.definitionKeyword,"abstract global Privacy readonly override":m.modifier,"is keyof unique infer asserts":m.operatorKeyword,JSXAttributeValue:m.attributeValue,JSXText:m.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":m.angleBracket,"JSXIdentifier JSXNameSpacedName":m.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":m.attributeName,"JSXBuiltin/JSXIdentifier":m.standard(m.tagName)}),Nk={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,defer:471,for:476,of:485,while:488,with:492,do:496,if:500,else:502,switch:506,case:512,try:518,catch:522,finally:526,return:530,throw:534,break:538,continue:542,debugger:546},Fk={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},Gk={__proto__:null,"<":193},cg=gi.deserialize({version:14,states:"$F|Q%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Declaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:380,context:Vk,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,207,211,215,216,218,221,224,234,237,243,245,247,249,252,258,264,266,268,270,272,274,275,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,"Expression",-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205,206,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",160,"JSXStartCloseTag"],["closedBy",-2,24,168,">",40,"InterpolationEnd",50,"]",61,"}",74,")",165,"JSXEndTag"]],propSources:[Ik],skippedNodes:[0,5,6,278],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<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W&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$i&j(Wp(Z!b'}0/l$]#t(T,2j(e$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[Bk,Yk,Wk,jk,2,3,4,5,6,7,8,9,10,11,12,13,14,_k,new mi("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(c~~",141,340),new mi("j~RQYZXz{^~^O(Q~~aP!P!Qd~iO(R~~",25,323)],topRules:{Script:[0,7],SingleExpression:[1,276],SingleClassItem:[2,277]},dialects:{jsx:0,ts:15175},dynamicPrecedences:{80:1,82:1,94:1,169:1,199:1},specialized:[{term:327,get:t=>Nk[t]||-1},{term:343,get:t=>Fk[t]||-1},{term:95,get:t=>Gk[t]||-1}],tokenPrec:15201})});function Mr(t){return(e,i)=>{let n=e.node.getChild("VariableDefinition");return n&&i(n,t),!0}}function mg(t,e){let i=ug.get(e);if(i)return i;let n=[],r=!0;function s(o,l){let a=t.sliceString(o.from,o.to);n.push({label:a,type:l})}return e.cursor(B.IncludeAnonymous).iterate(o=>{if(r)r=!1;else if(o.name){let l=Kk[o.name];if(l&&l(o,s)||Og.has(o.name))return!1}else if(o.to-o.from>8192){for(let l of mg(t,o.node))n.push(l);return!1}}),ug.set(e,n),n}function Jk(t){let e=_(t.state).resolveInner(t.pos,-1);if(gg.indexOf(e.name)>-1)return null;let i=e.name=="VariableName"||e.to-e.from<20&&fg.test(t.state.sliceDoc(e.from,e.to));if(!i&&!t.explicit)return null;let n=[];for(let r=e;r;r=r.parent)Og.has(r.name)&&(n=n.concat(mg(t.state.doc,r)));return{options:n,from:i?e.from:t.pos,validFor:fg}}function Sg(t={}){let e=t.jsx?t.typescript?Xh:Rh:t.typescript?Zh:xt,i=t.typescript?Uk.concat(e$):pg.concat(xg);return new ui(e,[xt.data.of({autocomplete:FO(gg,Nc(i))}),xt.data.of({autocomplete:Jk}),t.jsx?n$:[]])}function t$(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function dg(t,e,i=t.length){for(let n=e?.firstChild;n;n=n.nextSibling)if(n.name=="JSXIdentifier"||n.name=="JSXBuiltin"||n.name=="JSXNamespacedName"||n.name=="JSXMemberExpression")return t.sliceString(n.from,Math.min(n.to,i));return""}var pg,Uk,ug,Og,Hk,Kk,fg,gg,xt,bg,Zh,Rh,Xh,yg,xg,e$,i$,n$,Qg=K(()=>{hg();mt();Ke();_e();Po();si();pg=[Ce("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Ce("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Ce("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Ce("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Ce("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Ce(`try {
|
||
\${}
|
||
} catch (\${error}) {
|
||
\${}
|
||
}`,{label:"try",detail:"/ catch block",type:"keyword"}),Ce("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Ce(`if (\${}) {
|
||
\${}
|
||
} else {
|
||
\${}
|
||
}`,{label:"if",detail:"/ else block",type:"keyword"}),Ce(`class \${name} {
|
||
constructor(\${params}) {
|
||
\${}
|
||
}
|
||
}`,{label:"class",detail:"definition",type:"keyword"}),Ce('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Ce('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],Uk=pg.concat([Ce("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Ce("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Ce("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),ug=new pn,Og=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);Hk=["FunctionDeclaration"],Kk={FunctionDeclaration:Mr("function"),ClassDeclaration:Mr("class"),ClassExpression:()=>!0,EnumDeclaration:Mr("constant"),TypeAliasDeclaration:Mr("type"),NamespaceDeclaration:Mr("namespace"),VariableDefinition(t,e){t.matchContext(Hk)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};fg=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,gg=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];xt=ci.define({name:"javascript",parser:cg.configure({props:[Di.add({IfStatement:Sn({except:/^\s*({|else\b)/}),TryStatement:Sn({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:$p,SwitchBody:t=>{let e=t.textAfter,i=/^\s*\}/.test(e),n=/^\s*(case|default)\b/.test(e);return t.baseIndent+(i?0:n?1:2)*t.unit},Block:vp({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":Sn({except:/^\s*{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),Li.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Hs,BlockComment(t){return{from:t.from+2,to:t.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),bg={test:t=>/^JSX/.test(t.name),facet:pc({commentTokens:{block:{open:"{/*",close:"*/}"}}})},Zh=xt.configure({dialect:"ts"},"typescript"),Rh=xt.configure({dialect:"jsx",props:[Gs.add(t=>t.isTop?[bg]:void 0)]}),Xh=xt.configure({dialect:"jsx ts",props:[Gs.add(t=>t.isTop?[bg]:void 0)]},"typescript"),yg=t=>({label:t,type:"keyword"}),xg="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(yg),e$=xg.concat(["declare","implements","private","protected","public"].map(yg));i$=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),n$=w.inputHandler.of((t,e,i,n,r)=>{if((i$?t.composing:t.compositionStarted)||t.state.readOnly||e!=i||n!=">"&&n!="/"||!xt.isActiveAt(t.state,e,-1))return!1;let s=r(),{state:o}=s,l=o.changeByRange(a=>{var c;let{head:h}=a,u=_(o).resolveInner(h-1,-1),f;if(u.name=="JSXStartTag"&&(u=u.parent),!(o.doc.sliceString(h-1,h)!=n||u.name=="JSXAttributeValue"&&u.to>h)){if(n==">"&&u.name=="JSXFragmentTag")return{range:a,changes:{from:h,insert:"</>"}};if(n=="/"&&u.name=="JSXStartCloseTag"){let d=u.parent,p=d.parent;if(p&&d.from==h-2&&((f=dg(o.doc,p.firstChild,h))||((c=p.firstChild)===null||c===void 0?void 0:c.name)=="JSXFragmentTag")){let O=`${f}>`;return{range:y.cursor(h+O.length,-1),changes:{from:h,insert:O}}}}else if(n==">"){let d=t$(u);if(d&&d.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(o.doc.sliceString(h,h+2))&&(f=dg(o.doc,d,h)))return{range:a,changes:{from:h,insert:`</${f}>`}}}}return{range:a}});return l.changes.empty?!1:(t.dispatch([s,o.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)})});function Xn(t,e,i=t.length){if(!e)return"";let n=e.firstChild,r=n&&n.getChild("TagName");return r?t.sliceString(r.from,Math.min(r.to,i)):""}function Mn(t,e=!1){for(;t;t=t.parent)if(t.name=="Element")if(e)e=!1;else return t;return null}function Tg(t,e,i){let n=i.tags[Xn(t,Mn(e))];return n?.children||i.allTags}function Dh(t,e){let i=[];for(let n=Mn(e);n&&!n.type.isTop;n=Mn(n.parent)){let r=Xn(t,n);if(r&&n.lastChild.name=="CloseTag")break;r&&i.indexOf(r)<0&&(e.name=="EndTag"||e.from>=n.firstChild.to)&&i.push(r)}return i}function wg(t,e,i,n,r){let s=/\s*>/.test(t.sliceDoc(r,r+5))?"":">",o=Mn(i,i.name=="StartTag"||i.name=="TagName");return{from:n,to:r,options:Tg(t.doc,o,e).map(l=>({label:l,type:"type"})).concat(Dh(t.doc,i).map((l,a)=>({label:"/"+l,apply:"/"+l+s,type:"type",boost:99-a}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function vg(t,e,i,n){let r=/\s*>/.test(t.sliceDoc(n,n+5))?"":">";return{from:i,to:n,options:Dh(t.doc,e).map((s,o)=>({label:s,apply:s+r,type:"type",boost:99-o})),validFor:Cg}}function s$(t,e,i,n){let r=[],s=0;for(let o of Tg(t.doc,i,e))r.push({label:"<"+o,type:"type"});for(let o of Dh(t.doc,i))r.push({label:"</"+o+">",type:"type",boost:99-s++});return{from:n,to:n,options:r,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function o$(t,e,i,n,r){let s=Mn(i),o=s?e.tags[Xn(t.doc,s)]:null,l=o&&o.attrs?Object.keys(o.attrs):[],a=o&&o.globalAttrs===!1?l:l.length?l.concat(e.globalAttrNames):e.globalAttrNames;return{from:n,to:r,options:a.map(c=>({label:c,type:"property"})),validFor:Cg}}function l$(t,e,i,n,r){var s;let o=(s=i.parent)===null||s===void 0?void 0:s.getChild("AttributeName"),l=[],a;if(o){let c=t.sliceDoc(o.from,o.to),h=e.globalAttrs[c];if(!h){let u=Mn(i),f=u?e.tags[Xn(t.doc,u)]:null;h=f?.attrs&&f.attrs[c]}if(h){let u=t.sliceDoc(n,r).toLowerCase(),f='"',d='"';/^['"]/.test(u)?(a=u[0]=='"'?/^[^"]*$/:/^[^']*$/,f="",d=t.sliceDoc(r,r+1)==u[0]?"":u[0],u=u.slice(1),n++):a=/^[^\s<>='"]*$/;for(let p of h)l.push({label:p,apply:f+p+d,type:"constant"})}}return{from:n,to:r,options:l,validFor:a}}function a$(t,e){let{state:i,pos:n}=e,r=_(i).resolveInner(n,-1),s=r.resolve(n);for(let o=n,l;s==r&&(l=r.childBefore(o));){let a=l.lastChild;if(!a||!a.type.isError||a.from<a.to)break;s=r=l,o=a.from}return r.name=="TagName"?r.parent&&/CloseTag$/.test(r.parent.name)?vg(i,r,r.from,n):wg(i,t,r,r.from,n):r.name=="StartTag"||r.name=="IncompleteTag"?wg(i,t,r,n,n):r.name=="StartCloseTag"||r.name=="IncompleteCloseTag"?vg(i,r,n,n):r.name=="OpenTag"||r.name=="SelfClosingTag"||r.name=="AttributeName"?o$(i,t,r,r.name=="AttributeName"?r.from:n,n):r.name=="Is"||r.name=="AttributeValue"||r.name=="UnquotedAttributeValue"?l$(i,t,r,r.name=="Is"?n:r.from,n):e.explicit&&(s.name=="Element"||s.name=="Text"||s.name=="Document")?s$(i,t,r,n):null}function c$(t){let{extraTags:e,extraGlobalAttributes:i}=t,n=i||e?new Rn(e,i):Rn.default;return r=>a$(n,r)}function zr(t={}){let e="",i;t.matchClosingTags===!1&&(e="noMatch"),t.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(i=wh((t.nestedLanguages||[]).concat(Ag),(t.nestedAttributes||[]).concat(Zg)));let n=i?Rg.configure({wrap:i,dialect:e}):e?Yi.configure({dialect:e}):Yi;return new ui(n,[Yi.data.of({autocomplete:c$(t)}),t.autoCloseTags!==!1?u$:[],Sg().support,Xr().support])}var Er,Mh,Eh,zh,Ie,Z,r$,$g,Pg,Rn,Cg,h$,Ag,Zg,Rg,Yi,kg,u$,Lh=K(()=>{Fm();Ph();Qg();_e();Ke();mt();Er=["_blank","_self","_top","_parent"],Mh=["ascii","utf-8","utf-16","latin1","latin1"],Eh=["get","post","put","delete"],zh=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Ie=["true","false"],Z={},r$={a:{attrs:{href:null,ping:null,type:null,media:null,target:Er,hreflang:null}},abbr:Z,address:Z,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Z,aside:Z,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Z,base:{attrs:{href:null,target:Er}},bdi:Z,bdo:Z,blockquote:{attrs:{cite:null}},body:Z,br:Z,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:zh,formmethod:Eh,formnovalidate:["novalidate"],formtarget:Er,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Z,center:Z,cite:Z,code:Z,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Z,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Z,div:Z,dl:Z,dt:Z,em:Z,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Z,figure:Z,footer:Z,form:{attrs:{action:null,name:null,"accept-charset":Mh,autocomplete:["on","off"],enctype:zh,method:Eh,novalidate:["novalidate"],target:Er}},h1:Z,h2:Z,h3:Z,h4:Z,h5:Z,h6:Z,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Z,hgroup:Z,hr:Z,html:{attrs:{manifest:null}},i:Z,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:zh,formmethod:Eh,formnovalidate:["novalidate"],formtarget:Er,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Z,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Z,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Z,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Mh,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Z,noscript:Z,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Z,param:{attrs:{name:null,value:null}},pre:Z,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Z,rt:Z,ruby:Z,samp:Z,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Mh}},section:Z,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Z,source:{attrs:{src:null,type:null,media:null}},span:Z,strong:Z,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Z,summary:Z,sup:Z,table:Z,tbody:Z,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Z,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Z,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Z,time:{attrs:{datetime:null}},title:Z,tr:Z,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Z,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Z},$g={accesskey:null,class:null,contenteditable:Ie,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Ie,autocorrect:Ie,autocapitalize:Ie,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Ie,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Ie,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Ie,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Ie,"aria-hidden":Ie,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Ie,"aria-multiselectable":Ie,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Ie,"aria-relevant":null,"aria-required":Ie,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},Pg="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of Pg)$g[t]=null;Rn=class{constructor(e,i){this.tags={...r$,...e},this.globalAttrs={...$g,...i},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};Rn.default=new Rn;Cg=/^[:\-\.\w\u00b7-\uffff]*$/;h$=xt.parser.configure({top:"SingleExpression"}),Ag=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:Zh.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:Rh.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:Xh.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:h$},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:xt.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:Zt.parser}],Zg=[{name:"style",parser:Zt.parser.configure({top:"Styles"})}].concat(Pg.map(t=>({name:t,parser:xt.parser}))),Rg=ci.define({name:"html",parser:Im.configure({props:[Di.add({Element(t){let e=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+e[0].length?t.continue():t.lineIndent(t.node.from)+(e[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].length<t.node.to)return t.continue();let e=null,i;for(let n=t.node;;){let r=n.lastChild;if(!r||r.name!="Element"||r.to!=n.to)break;e=n=r}return e&&!((i=e.lastChild)&&(i.name=="CloseTag"||i.name=="SelfClosingTag"))?t.lineIndent(e.from)+t.unit:null}}),Li.add({Element(t){let e=t.firstChild,i=t.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:i.name=="CloseTag"?i.from:t.to}}}),mc.add({"OpenTag CloseTag":t=>t.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),Yi=Rg.configure({wrap:wh(Ag,Zg)});kg=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),u$=w.inputHandler.of((t,e,i,n,r)=>{if(t.composing||t.state.readOnly||e!=i||n!=">"&&n!="/"||!Yi.isActiveAt(t.state,e,-1))return!1;let s=r(),{state:o}=s,l=o.changeByRange(a=>{var c,h,u;let f=o.doc.sliceString(a.from-1,a.to)==n,{head:d}=a,p=_(o).resolveInner(d,-1),O;if(f&&n==">"&&p.name=="EndTag"){let g=p.parent;if(((h=(c=g.parent)===null||c===void 0?void 0:c.lastChild)===null||h===void 0?void 0:h.name)!="CloseTag"&&(O=Xn(o.doc,g.parent,d))&&!kg.has(O)){let b=d+(o.doc.sliceString(d,d+1)===">"?1:0),x=`</${O}>`;return{range:a,changes:{from:d,to:b,insert:x}}}}else if(f&&n=="/"&&p.name=="IncompleteCloseTag"){let g=p.parent;if(p.from==d-2&&((u=g.lastChild)===null||u===void 0?void 0:u.name)!="CloseTag"&&(O=Xn(o.doc,g,d))&&!kg.has(O)){let b=d+(o.doc.sliceString(d,d+1)===">"?1:0),x=`${O}>`;return{range:y.cursor(d+x.length,-1),changes:{from:d,to:b,insert:x}}}}return{range:a}});return l.changes.empty?!1:(t.dispatch([s,o.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)})});var f$,Xg,d$,p$,qo,Vh,O$,m$,Mg,g$,b$,Eg,zg,qh,y$,Dg,x$,S$,Lg,qg=K(()=>{_e();mt();mn();f$="#e5c07b",Xg="#e06c75",d$="#56b6c2",p$="#ffffff",qo="#abb2bf",Vh="#7d8799",O$="#61afef",m$="#98c379",Mg="#d19a66",g$="#c678dd",b$="#21252b",Eg="#2c313a",zg="#282c34",qh="#353a42",y$="#3E4451",Dg="#528bff",x$=w.theme({"&":{color:qo,backgroundColor:zg},".cm-content":{caretColor:Dg},".cm-cursor, .cm-dropCursor":{borderLeftColor:Dg},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:y$},".cm-panels":{backgroundColor:b$,color:qo},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:zg,color:Vh,border:"none"},".cm-activeLineGutter":{backgroundColor:Eg},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:qh},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:qh,borderBottomColor:qh},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Eg,color:qo}}},{dark:!0}),S$=bn.define([{tag:m.keyword,color:g$},{tag:[m.name,m.deleted,m.character,m.propertyName,m.macroName],color:Xg},{tag:[m.function(m.variableName),m.labelName],color:O$},{tag:[m.color,m.constant(m.name),m.standard(m.name)],color:Mg},{tag:[m.definition(m.name),m.separator],color:qo},{tag:[m.typeName,m.className,m.number,m.changed,m.annotation,m.modifier,m.self,m.namespace],color:f$},{tag:[m.operator,m.operatorKeyword,m.url,m.escape,m.regexp,m.link,m.special(m.string)],color:d$},{tag:[m.meta,m.comment],color:Vh},{tag:m.strong,fontWeight:"bold"},{tag:m.emphasis,fontStyle:"italic"},{tag:m.strikethrough,textDecoration:"line-through"},{tag:m.link,color:Vh,textDecoration:"underline"},{tag:m.heading,fontWeight:"bold",color:Xg},{tag:[m.atom,m.bool,m.special(m.variableName)],color:Mg},{tag:[m.processingInstruction,m.string,m.inserted],color:m$},{tag:m.invalid,color:p$}]),Lg=[x$,Qn(S$)]});function Vg(t,e){if(t==null)return{};var i={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;i[n]=t[n]}return i}var _g=K(()=>{});var Q$,_h,Bg=K(()=>{Q$=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],_h=Q$});var w$,Yg,Wg=K(()=>{w$=["#F0F8FF","#FAEBD7","#00FFFF","#7FFFD4","#F0FFFF","#F5F5DC","#FFE4C4","#000000","#FFEBCD","#0000FF","#8A2BE2","#A52A2A","#DEB887","#5F9EA0","#7FFF00","#D2691E","#FF7F50","#6495ED","#FFF8DC","#DC143C","#00FFFF","#00008B","#008B8B","#B8860B","#A9A9A9","#006400","#A9A9A9","#BDB76B","#8B008B","#556B2F","#FF8C00","#9932CC","#8B0000","#E9967A","#8FBC8F","#483D8B","#2F4F4F","#2F4F4F","#00CED1","#9400D3","#FF1493","#00BFFF","#696969","#696969","#1E90FF","#B22222","#FFFAF0","#228B22","#FF00FF","#DCDCDC","#F8F8FF","#FFD700","#DAA520","#808080","#008000","#ADFF2F","#808080","#F0FFF0","#FF69B4","#CD5C5C","#4B0082","#FFFFF0","#F0E68C","#E6E6FA","#FFF0F5","#7CFC00","#FFFACD","#ADD8E6","#F08080","#E0FFFF","#FAFAD2","#D3D3D3","#90EE90","#D3D3D3","#FFB6C1","#FFA07A","#20B2AA","#87CEFA","#778899","#778899","#B0C4DE","#FFFFE0","#00FF00","#32CD32","#FAF0E6","#FF00FF","#800000","#66CDAA","#0000CD","#BA55D3","#9370DB","#3CB371","#7B68EE","#00FA9A","#48D1CC","#C71585","#191970","#F5FFFA","#FFE4E1","#FFE4B5","#FFDEAD","#000080","#FDF5E6","#808000","#6B8E23","#FFA500","#FF4500","#DA70D6","#EEE8AA","#98FB98","#AFEEEE","#DB7093","#FFEFD5","#FFDAB9","#CD853F","#FFC0CB","#DDA0DD","#B0E0E6","#800080","#663399","#FF0000","#BC8F8F","#4169E1","#8B4513","#FA8072","#F4A460","#2E8B57","#FFF5EE","#A0522D","#C0C0C0","#87CEEB","#6A5ACD","#708090","#708090","#FFFAFA","#00FF7F","#4682B4","#D2B48C","#008080","#D8BFD8","#FF6347","#40E0D0","#EE82EE","#F5DEB3","#FFFFFF","#F5F5F5","#FFFF00","#9ACD32"],Yg=w$});function Vo(t=""){let e=v$.exec(t)||k$.exec(t);if(e){let[i,n,r,s,o]=e;return o&&/^(:?(\/|,)\s*-?\+?)$/.test(o.trim())?void 0:{h:n,s:r,l:s,a:$$(o)}}}function jg(t){let e=Vo(t);if(!e)return;let{h:i,s:n,l:r,a:s}=e,o=0,l=0,a=0;/\s*\d*turn\s*$/.test(i)?o=Number(i.replace(/turn\s*$/i,""))*360:/\s*\d*grad\s*$/.test(i)?o=P$(i.replace(/grad\s*$/i,"")):/\s*\d*rad\s*$/.test(i)&&(o=T$(Number(i.replace(/rad\s*$/i,"")))),/^((-|\+)?\d*|(-|\+)?\d*?.\d*(e\+)?\d*?)$/.test(i.replace(/deg$/i,""))&&(o=Number(i.replace(/deg$/i,""))),o>360&&(o=360),o<0&&(o=0),/^((-|\+)?\d*|(-|\+)?\d*?.\d*(e\+)?\d*?)%$/.test(n)&&(l=Number(n.replace(/%$/,""))),l>100&&(l=100),l<0&&(l=0),/^((-|\+)?\d*|(-|\+)?\d*?.\d*(e\+)?\d*?)%$/.test(r)&&(a=Number(r.replace(/%$/,""))),a>100&&(a=100),a<0&&(a=0),l/=100,a/=100;let c=d=>(d+o/30)%12,h=l*Math.min(a,1-a),u=d=>a-h*Math.max(-1,Math.min(c(d)-3,Math.min(9-c(d),1))),f=d=>Number(d.toFixed());if(s&&/^\+?-?\d*(E-\d*|.\d*%?)?$/.test(s)){let d=/%/g.test(s)?Number(s.replace(/%/g,""))/100:Number(s);return{r:f(255*u(0)),g:f(255*u(8)),b:f(255*u(4)),a:d}}return{r:f(255*u(0)),g:f(255*u(8)),b:f(255*u(4))}}function P$(t){let e=Number(t);return e=e%400,e<0&&(e+=400),e/400*360}function T$(t){return Number((t*(180/Math.PI)).toFixed())}var v$,k$,$$,Ig=K(()=>{v$=/hsla?\(\s*(\+?-?\d*\.?\d*(?:e\+)?(?:\d*)?(?:deg|rad|grad|turn)?)\s*,\s*(\+?\-?\d*\.?\d*(?:e\+)?(?:\d*)?%)\s*,\s*(\+?\-?\d*\.?\d*(?:e\+)?(?:\d*)?%)\s*(,\s*\+?\-?\s*(?:\d*\.?\d*(?:E-\d*)?%?)?)?\s*\)/i,k$=/hsla?\(\s*(\+?-?\d*\.?\d*(?:e\+)?(?:\d*)?(?:deg|rad|grad|turn)?)\s*(\+?\-?\d*\.?\d*(?:e\+)?(?:\d*)?%)\s*(\+?\-?\d*\.?\d*(?:e\+)?(?:\d*)?%)\s*(\/\s*\+?\-?\s*(?:\d*\.?\d*(?:E-\d*)?%?)?)?\s*\)/i,$$=t=>t&&t.replace(/^(,|\/)\s*/,"").trim()});function Ng(t){return t.length===4?["#"+t[1].repeat(2)+t[2].repeat(2)+t[3].repeat(2),""]:t.length===5?["#"+t[1].repeat(2)+t[2].repeat(2)+t[3].repeat(2),t[4].repeat(2)]:t.length===9?["#"+t.slice(1,-2),t.slice(-2)]:[t,""]}function Bh(t,e,i){return"#"+((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1)}function Yh(t){var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}function Fg(t,e,i){t/=255,e/=255,i/=255;var n=Math.max(t,e,i),r=Math.min(t,e,i),s=0,o,l=(n+r)/2;if(n==r)s=o=0;else{var a=n-r;switch(o=l>.5?a/(2-n-r):a/(n+r),n){case t:s=(e-i)/a+(e<i?6:0);break;case e:s=(i-t)/a+2;break;case i:s=(t-e)/a+4;break}s/=6}return{h:Math.floor(s*360),s:Math.floor(o*100),l:Math.floor(l*100)}}var Gg=K(()=>{});function Ug(t){var e=[];for(var i of t.visibleRanges)_(t.state).iterate({from:i.from,to:i.to,enter:n=>{var{type:r,from:s,to:o}=n,l=t.state.doc.sliceString(s,o);if(r.name==="CallExpression"&&l.startsWith("rgb")){var a=/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,?\s*(\d{1,3})\s*(,\s*\d*\.\d*\s*)?\)/i.exec(l)||/rgba?\(\s*(\d{1,3})\s*(\d{1,3})\s*(\d{1,3})\s*(\/?\s*\d+%)?(\/\s*\d+\.\d\s*)?\)/i.exec(l);if(!a)return;var[c,h,u,f,d]=a,p=Bh(Number(h),Number(u),Number(f)),O=T.widget({widget:new zn({colorType:En.rgb,color:p,colorRaw:l,from:s,to:o,alpha:d?d.replace(/(\/|,)/g,""):""}),side:0});e.push(O.range(s))}else if(r.name==="CallExpression"&&Vo(l)){var g=jg(l);if(!g)return;var{r:b,g:x,b:S}=g,C=Bh(Number(b),Number(x),Number(S)),Q=T.widget({widget:new zn({colorType:En.hsl,color:C,colorRaw:l,from:s,to:o,alpha:g.a?g.a.toString():""}),side:0});e.push(Q.range(s))}else if(r.name==="ColorLiteral"){var[$,v]=Ng(l),E=T.widget({widget:new zn({colorType:En.hex,color:$,colorRaw:l,from:s,to:o,alpha:v}),side:0});e.push(E.range(s))}else if(r.name==="ValueName"){var D=l;if(_h.includes(D)){var U=T.widget({widget:new zn({colorType:En.named,color:Yg[_h.indexOf(D)],colorRaw:l,from:s,to:o,alpha:""}),side:0});e.push(U.range(s))}}}});return T.set(e)}var C$,En,Hg,zn,A$,Z$,Kg,Jg=K(()=>{_g();_e();mt();Bg();Wg();Ig();Gg();C$=["color","colorRaw"],En=(function(t){return t.rgb="RGB",t.hex="HEX",t.named="NAMED",t.hsl="HSL",t})({}),Hg=new WeakMap;zn=class extends xe{constructor(e){var{color:i,colorRaw:n}=e,r=Vg(e,C$);super(),this.state=void 0,this.color=void 0,this.colorRaw=void 0,this.state=r,this.color=i,this.colorRaw=n}eq(e){return e.state.colorType===this.state.colorType&&e.color===this.color&&e.state.from===this.state.from&&e.state.to===this.state.to&&e.state.alpha===this.state.alpha}toDOM(){var e=document.createElement("input");Hg.set(e,this.state),e.type="color",e.value=this.color,e.dataset.color=this.color,e.dataset.colorraw=this.colorRaw;var i=document.createElement("span");return i.appendChild(e),i.dataset.color=this.color,i.style.backgroundColor=this.colorRaw,i}ignoreEvent(){return!1}},A$=function(e){return e===void 0&&(e=!0),J.fromClass(class{constructor(n){this.decorations=void 0,this.decorations=Ug(n)}update(n){(n.docChanged||n.viewportChanged)&&(this.decorations=Ug(n.view));var r=n.view.contentDOM.ariaReadOnly==="true",s=n.view.contentDOM.contentEditable==="true",o=r===!1&&s;this.changePicker(n.view,o)}changePicker(n,r){var s=n.contentDOM.querySelectorAll("input[type=color]");s.forEach(o=>{e&&r?o.removeAttribute("disabled"):o.setAttribute("disabled","")})}},{decorations:i=>i.decorations,eventHandlers:{change:(i,n)=>{var r=i.target;if(r.nodeName!=="INPUT"||!r.parentElement||!r.dataset.color&&!r.dataset.colorraw)return!1;var s=Hg.get(r),o=r.value,l=Yh(o),a=r.dataset.colorraw,c=(r.dataset.colorraw||"").indexOf("/")>4,h=(r.dataset.colorraw||"").indexOf(",")>4,u=r.value;if(s.colorType===En.rgb){var f=a!=null&&a.match(/^(rgba?)/)?a?.match(/^(rgba?)/)[0]:void 0;h?u=l?f+"("+l.r+", "+l.g+", "+l.b+(s.alpha?", "+s.alpha.trim():"")+")":o:c?u=l?f+"("+l.r+" "+l.g+" "+l.b+(s.alpha?" / "+s.alpha.trim():"")+")":o:u=l?f+"("+l.r+" "+l.g+" "+l.b+")":o}else if(s.colorType===En.hsl){var d=Yh(o);if(d){var{h:p,s:O,l:g}=Fg(d?.r,d?.g,d?.b);u="hsl("+p+"deg "+O+"% "+g+"%"+(s.alpha?" / "+s.alpha:"")+")"}}return n.dispatch({changes:{from:s.from,to:s.to,insert:u}}),!0}}})},Z$=w.baseTheme({"span[data-color]":{width:"12px",height:"12px",display:"inline-block",borderRadius:"2px",marginRight:"0.5ch",outline:"1px solid #00000040",overflow:"hidden",verticalAlign:"middle",marginTop:"-2px"},'span[data-color] input[type="color"]':{background:"transparent",display:"block",border:"none",outline:"0",paddingLeft:"24px",height:"12px"},'span[data-color] input[type="color"]::-webkit-color-swatch':{border:"none",paddingLeft:"24px"}}),Kg=[A$(),Z$]});function St(t){return t>47&&t<58}function Ko(t,e,i){return e=e||65,i=i||90,t&=-33,t>=e&&t<=i}function z0(t){return St(t)||Jo(t)}function Jo(t){return t===95||Ko(t)}function D$(t){return t===196||t==214||t===220||t===228||t===246||t===252}function L$(t){return t===32||t===9||t===160}function ou(t){return L$(t)||t===10||t===13}function lu(t){return t===39||t===34}function q$(t){return{tokens:t,start:0,pos:0,size:t.length}}function xi(t){return t.tokens[t.pos]}function cu(t){return t.tokens[t.pos++]}function Dn(t,e=t.start,i=t.pos){return t.tokens.slice(e,i)}function jt(t){return t.pos<t.size}function Qe(t,e){let i=xi(t);return i&&e(i)?(t.pos++,!0):!1}function hu(t,e,i=xi(t)){i&&i.start!=null&&(e+=` at ${i.start}`);let n=new Error(e);return n.pos=i&&i.start,n}function V$(t,e={}){let i=q$(t),n=q0(i,e);if(jt(i))throw hu(i,"Unexpected character");return n}function q0(t,e){let i={type:"TokenGroup",elements:[]},n=i,r,s=[];for(;jt(t)&&(r=B$(t,e)||_$(t,e));)if(n.elements.push(r),Qe(t,iP))s.push(n),n=r;else{if(Qe(t,nP))continue;if(Qe(t,r0))do s.length&&(n=s.pop());while(Qe(t,r0))}return i}function _$(t,e){if(Qe(t,eP)){let i=q0(t,e),n=cu(t);return at(n,"group",!1)&&(i.repeat=j$(t)),i}}function B$(t,e){let i,n={type:"TokenElement",name:void 0,attributes:void 0,value:void 0,repeat:void 0,selfClose:!1,elements:[]};for(I$(t,e)&&(n.name=Dn(t));jt(t);)if(t.start=t.pos,!n.repeat&&!Wh(n)&&Qe(t,jo))n.repeat=t.tokens[t.pos-1];else if(!n.value&&V0(t))n.value=_0(t);else if(i=t0(t,"id",e)||t0(t,"class",e)||Y$(t))n.attributes?n.attributes=n.attributes.concat(i):n.attributes=Array.isArray(i)?i.slice():[i];else{!Wh(n)&&Qe(t,rP)&&(n.selfClose=!0,!n.repeat&&Qe(t,jo)&&(n.repeat=t.tokens[t.pos-1]));break}return Wh(n)?void 0:n}function Y$(t){if(Qe(t,H$)){let e=[],i;for(;jt(t);)if(i=W$(t))e.push(i);else{if(Qe(t,K$))break;if(!Qe(t,B0))throw hu(t,`Unexpected "${xi(t).type}" token`)}return e}}function t0(t,e,i){if(It(xi(t),e)){t.pos++;let n=1;for(;It(xi(t),e);)t.pos++,n++;let r={name:[tP(e)]};return n>1&&(r.multiple=!0),i.jsx&&V0(t)?(r.value=_0(t),r.expression=!0):r.value=Kh(t)?Dn(t):void 0,r}}function W$(t){if(i0(t))return{value:Dn(t)};if(Kh(t,!0)){let e=Dn(t),i;return Qe(t,N$)&&(i0(t)||Kh(t,!0))&&(i=Dn(t)),{name:e,value:i}}}function j$(t){return jo(xi(t))?t.tokens[t.pos++]:void 0}function i0(t){let e=t.pos,i=xi(t);if(Wo(i)){for(t.pos++;jt(t);)if(Wo(cu(t),i.single))return t.start=e,!0;throw hu(t,"Unclosed quote",i)}return!1}function Kh(t,e){let i=t.pos,n={attribute:0,expression:0,group:0};for(;jt(t);){let r=xi(t);if(n.expression)at(r,"expression")&&(n[r.context]+=r.open?1:-1);else{if(Wo(r)||It(r)||B0(r)||jo(r))break;if(at(r)){if(!e)break;if(r.open)n[r.context]++;else if(n[r.context])n[r.context]--;else break}}t.pos++}return i!==t.pos?(t.start=i,!0):!1}function I$(t,e){let i=t.pos;if(e.jsx&&Qe(t,n0))for(;jt(t);){let{pos:n}=t;if(!Qe(t,U$)||!Qe(t,n0)){t.pos=n;break}}for(;jt(t)&&Qe(t,G$););return t.pos!==i?(t.start=i,!0):!1}function V0(t){let e=t.pos;if(Qe(t,J$)){let i=0;for(;jt(t);){let n=cu(t);if(at(n,"expression"))if(n.open)i++;else if(i)i--;else break}return t.start=e,!0}return!1}function _0(t){let e=t.start,i=t.pos;return at(t.tokens[e],"expression",!0)&&e++,at(t.tokens[i-1],"expression",!1)&&i--,Dn(t,e,i)}function at(t,e,i){return!!(t&&t.type==="Bracket"&&(!e||t.context===e)&&(i==null||t.open===i))}function It(t,e){return!!(t&&t.type==="Operator"&&(!e||t.operator===e))}function Wo(t,e){return!!(t&&t.type==="Quote"&&(e==null||t.single===e))}function B0(t){return!!(t&&t.type==="WhiteSpace")}function N$(t){return It(t,"equal")}function jo(t){return!!(t&&t.type==="Repeater")}function F$(t){return t.type==="Literal"}function n0(t){if(F$(t)){let e=t.value.charCodeAt(0);return e>=65&&e<=90}return!1}function G$(t){return t.type==="Literal"||t.type==="RepeaterNumber"||t.type==="RepeaterPlaceholder"}function U$(t){return It(t,"class")}function H$(t){return at(t,"attribute",!0)}function K$(t){return at(t,"attribute",!1)}function J$(t){return at(t,"expression",!0)}function eP(t){return at(t,"group",!0)}function tP(t){return{type:"Literal",value:t}}function Wh(t){return!t.name&&!t.value&&!t.attributes}function iP(t){return It(t,"child")}function nP(t){return It(t,"sibling")}function r0(t){return It(t,"climb")}function rP(t){return It(t,"close")}function sP(t){return t.eat(z.Escape)?(t.start=t.pos,t.eof()||t.pos++,!0):!1}function oP(t){let e=new D0(t),i=[],n={group:0,attribute:0,expression:0,quote:0},r=0,s;for(;!e.eof();)if(r=e.peek(),s=lP(e,n),s)i.push(s),s.type==="Quote"?n.quote=r===n.quote?0:r:s.type==="Bracket"&&(n[s.context]+=s.open?1:-1);else throw e.error("Unexpected character");return i}function lP(t,e){return mP(t,e)||pP(t)||OP(t)||dP(t)||cP(t)||aP(t,e)||fP(t)||hP(t)||uP(t)}function aP(t,e){let i=t.pos,n=e.expression,r="";for(;!t.eof();){if(sP(t)){r+=t.current();continue}let s=t.peek();if(s===z.Slash&&!e.quote&&!e.expression&&!e.attribute){let o=t.string.charCodeAt(t.pos-1),l=t.string.charCodeAt(t.pos+1);if(St(o)&&St(l)){r+=t.string[t.pos++];continue}}if(s===e.quote||s===z.Dollar||gP(s,e))break;if(n){if(s===z.CurlyBracketOpen)e.expression++;else if(s===z.CurlyBracketClose)if(e.expression>n)e.expression--;else break}else if(!e.quote&&(!e.attribute&&!SP(s)||bP(s,e)||yP(s,e)||lu(s)||Y0(s)))break;r+=t.string[t.pos++]}if(i!==t.pos)return t.start=i,{type:"Literal",value:r,start:i,end:t.pos}}function cP(t){let e=t.pos;if(t.eatWhile(ou))return{type:"WhiteSpace",start:e,end:t.pos,value:t.substring(e,t.pos)}}function hP(t){let e=t.peek();if(lu(e))return{type:"Quote",single:e===z.SingleQuote,start:t.pos++,end:t.pos}}function uP(t){let e=t.peek(),i=Y0(e);if(i)return{type:"Bracket",open:xP(e),context:i,start:t.pos++,end:t.pos}}function fP(t){let e=W0(t.peek());if(e)return{type:"Operator",operator:e,start:t.pos++,end:t.pos}}function dP(t){let e=t.pos;if(t.eat(z.Asterisk)){t.start=t.pos;let i=1,n=!1;return t.eatWhile(St)?i=Number(t.current()):n=!0,{type:"Repeater",count:i,value:0,implicit:n,start:e,end:t.pos}}}function pP(t){let e=t.pos;if(t.eat(z.Dollar)&&t.eat(z.Hash))return{type:"RepeaterPlaceholder",value:void 0,start:e,end:t.pos};t.pos=e}function OP(t){let e=t.pos;if(t.eatWhile(z.Dollar)){let i=t.pos-e,n=!1,r=1,s=0;if(t.eat(z.At)){for(;t.eat(z.Climb);)s++;n=t.eat(z.Dash),t.start=t.pos,t.eatWhile(St)&&(r=Number(t.current()))}return t.start=e,{type:"RepeaterNumber",size:i,reverse:n,base:r,parent:s,start:e,end:t.pos}}}function mP(t,e){let i=t.pos;if((e.expression||e.attribute)&&t.eat(z.Dollar)&&t.eat(z.CurlyBracketOpen)){t.start=t.pos;let n,r="";if(t.eatWhile(St)?(n=Number(t.current()),r=t.eat(z.Colon)?s0(t):""):Ko(t.peek())&&(r=s0(t)),t.eat(z.CurlyBracketClose))return{type:"Field",index:n,name:r,start:i,end:t.pos};throw t.error("Expecting }")}t.pos=i}function s0(t){let e=[];for(t.start=t.pos;!t.eof();)if(t.eat(z.CurlyBracketOpen))e.push(t.pos);else if(t.eat(z.CurlyBracketClose)){if(!e.length){t.pos--;break}e.pop()}else t.pos++;if(e.length)throw t.pos=e.pop(),t.error("Expecting }");return t.current()}function gP(t,e){let i=W0(t);return!i||e.quote||e.expression?!1:!e.attribute||i==="equal"}function bP(t,e){return ou(t)&&!e.expression}function yP(t,e){return t===z.Asterisk&&!e.attribute&&!e.expression}function Y0(t){if(t===z.RoundBracketOpen||t===z.RoundBracketClose)return"group";if(t===z.SquareBracketOpen||t===z.SquareBracketClose)return"attribute";if(t===z.CurlyBracketOpen||t===z.CurlyBracketClose)return"expression"}function W0(t){return t===z.Child&&"child"||t===z.Sibling&&"sibling"||t===z.Climb&&"climb"||t===z.Dot&&"class"||t===z.Hash&&"id"||t===z.Slash&&"close"||t===z.Equals&&"equal"||void 0}function xP(t){return t===z.CurlyBracketOpen||t===z.SquareBracketOpen||t===z.RoundBracketOpen}function SP(t){return z0(t)||D$(t)||t===z.Dash||t===z.Colon||t===z.Excl}function j0(t,e){if(!o0[t.type])throw new Error(`Unknown token ${t.type}`);return o0[t.type](t,e)}function kP(t,e={}){let i=!1,n;e.text&&(Array.isArray(e.text)?n=e.text.filter(s=>s.trim()):n=e.text);let r={type:"Abbreviation",children:Jh(t,{inserted:!1,repeaters:[],text:e.text,cleanText:n,repeatGuard:e.maxRepeat||Number.POSITIVE_INFINITY,getText(s){var o;i=!0;let l;if(Array.isArray(e.text)){if(s!==void 0&&s>=0&&s<n.length)return n[s];l=s!==void 0?e.text[s]:e.text.join(`
|
||
`)}else l=(o=e.text)!==null&&o!==void 0?o:"";return l},getVariable(s){let o=e.variables&&e.variables[s];return o??s}})};if(e.text!=null&&!i){let s=uu(Vn(r.children));if(s){let o=Array.isArray(e.text)?e.text.join(`
|
||
`):e.text;U0(s,o),s.name==="a"&&e.href&&PP(s,o)}}return r}function I0(t,e){let i=[];if(t.repeat){let n=t.repeat,r=Object.assign({},n);r.count=r.implicit&&Array.isArray(e.text)?e.cleanText.length:r.count||1;let s;e.repeaters.push(r);for(let o=0;o<r.count;o++){if(r.value=o,t.repeat=r,s=a0(t)?Jh(t,e):l0(t,e),r.implicit&&!e.inserted){let l=Vn(s),a=l&&uu(l);a&&U0(a,e.getText(r.value))}if(i=i.concat(s),--e.repeatGuard<=0)break}e.repeaters.pop(),t.repeat=n,r.implicit&&(e.inserted=!0)}else i=i.concat(a0(t)?Jh(t,e):l0(t,e));return i}function l0(t,e){let i=[],n={type:"AbbreviationNode",name:t.name&&N0(t.name,e),value:t.value&&F0(t.value,e),attributes:void 0,children:i,repeat:t.repeat&&Object.assign({},t.repeat),selfClosing:t.selfClose},r=[n];for(let s of t.elements)i=i.concat(I0(s,e));if(t.attributes){n.attributes=[];for(let s of t.attributes)n.attributes.push($P(s,e))}return!n.name&&!n.attributes&&n.value&&!n.value.some(G0)?r=r.concat(i):n.children=i,r}function Jh(t,e){let i=[];for(let n of t.elements)i=i.concat(I0(n,e));return t.repeat&&(i=TP(i,t.repeat)),i}function $P(t,e){let i=!1,n=!1,r=t.expression?"expression":"raw",s,o=t.name&&N0(t.name,e);if(o&&o[0]==="!"&&(i=!0),o&&o[o.length-1]==="."&&(n=!0),t.value){let l=t.value.slice();if(Wo(l[0])){let a=l.shift();l.length&&Vn(l).type===a.type&&l.pop(),r=a.single?"singleQuote":"doubleQuote"}else at(l[0],"expression",!0)&&(r="expression",l.shift(),at(Vn(l),"expression",!1)&&l.pop());s=F0(l,e)}return{name:n||i?o.slice(i?1:0,n?-1:void 0):o,value:s,boolean:n,implied:i,valueType:r,multiple:t.multiple}}function N0(t,e){let i="";for(let n=0;n<t.length;n++)i+=j0(t[n],e);return i}function F0(t,e){let i=[],n="";for(let r=0,s;r<t.length;r++)s=t[r],G0(s)?(n&&(i.push(n),n=""),i.push(s)):n+=j0(s,e);return n&&i.push(n),i}function a0(t){return t.type==="TokenGroup"}function G0(t){return typeof t=="object"&&t.type==="Field"&&t.index!=null}function Vn(t){return t[t.length-1]}function uu(t){return t.children.length?uu(Vn(t.children)):t}function U0(t,e){t.value?typeof Vn(t.value)=="string"?t.value[t.value.length-1]+=e:t.value.push(e):t.value=[e]}function PP(t,e){var i;let n="";wP.test(e)?(n=e,!/\w+:/.test(n)&&!n.startsWith("//")&&(n=`http://${n}`)):vP.test(e)&&(n=`mailto:${e}`);let r=(i=t.attributes)===null||i===void 0?void 0:i.find(s=>s.name==="href");r?r.value||(r.value=[n]):(t.attributes||(t.attributes=[]),t.attributes.push({name:"href",value:[n],valueType:"doubleQuote"}))}function TP(t,e){for(let i of t)i.repeat||(i.repeat=Object.assign({},e));return t}function fu(t,e){try{let i=typeof t=="string"?oP(t):t;return kP(V$(i,e),e)}catch(i){throw i instanceof au&&typeof t=="string"&&(i.message+=`
|
||
${t}
|
||
${"-".repeat(i.pos)}^`),i}}function CP(t,e){let i=0,n,r=new D0(t),s=[];for(;!r.eof();){if(n=AP(r,i===0&&!e),!n)throw r.error("Unexpected character");if(n.type==="Bracket"&&(!i&&n.open&&IP(r,s),i+=n.open?1:-1,i<0))throw r.error("Unexpected bracket",n.start);s.push(n),jP(n)&&(n=H0(r))&&s.push(n)}return s}function AP(t,e){return ZP(t)||DP(t)||XP(t)||EP(t)||MP(t)||LP(t)||H0(t)||zP(t)||RP(t,e)}function ZP(t){let e=t.pos;if(t.eat(N.Dollar)&&t.eat(N.CurlyBracketOpen)){t.start=t.pos;let i,n="";if(t.eatWhile(St)?(i=Number(t.current()),n=t.eat(N.Colon)?c0(t):""):Ko(t.peek())&&(n=c0(t)),t.eat(N.CurlyBracketClose))return{type:"Field",index:i,name:n,start:e,end:t.pos};throw t.error("Expecting }")}t.pos=e}function c0(t){let e=[];for(t.start=t.pos;!t.eof();)if(t.eat(N.CurlyBracketOpen))e.push(t.pos);else if(t.eat(N.CurlyBracketClose)){if(!e.length){t.pos--;break}e.pop()}else t.pos++;if(e.length)throw t.pos=e.pop(),t.error("Expecting }");return t.current()}function RP(t,e){let i=t.pos;if(t.eat(VP)?t.eatWhile(i?eu:Ih):t.eat(Jo)?t.eatWhile(e?Ih:eu):(t.eat(N.Dot),t.eatWhile(Ih)),i!==t.pos)return t.start=i,du(t,t.start=i)}function du(t,e=t.start,i=t.pos){return{type:"Literal",value:t.substring(e,i),start:e,end:i}}function XP(t){let e=t.pos;if(qP(t)){t.start=e;let i=t.current();return t.start=t.pos,t.eat(N.Percent)||t.eatWhile(Jo),{type:"NumberValue",value:Number(i),rawValue:i,unit:t.current(),start:e,end:t.pos}}}function MP(t){let e=t.peek(),i=t.pos,n=!1;if(lu(e)){for(t.pos++;!t.eof();)if(t.eat(e)){n=!0;break}else t.pos++;return t.start=i,{type:"StringValue",value:t.substring(i+1,t.pos-(n?1:0)),quote:e===N.SingleQuote?"single":"double",start:i,end:t.pos}}}function EP(t){let e=t.pos;if(t.eat(N.Hash)){let i=t.pos,n="",r="";if(t.eatWhile(BP)?(n=t.substring(i,t.pos),r=jh(t)):t.eat(N.Transparent)?(n="0",r=jh(t)||"0"):r=jh(t),n||r||t.eof()){let{r:s,g:o,b:l,a}=WP(n,r);return{type:"ColorValue",r:s,g:o,b:l,a,raw:t.substring(e+1,t.pos),start:e,end:t.pos}}else return du(t,e)}t.pos=e}function jh(t){let e=t.pos;return t.eat(N.Dot)?(t.start=e,t.eatWhile(St)?t.current():"1"):""}function zP(t){let e=t.pos;if(t.eatWhile(ou))return{type:"WhiteSpace",start:e,end:t.pos}}function DP(t){let e=t.pos;if(t.eat(N.Dash)&&t.eat(N.Dash))return t.start=e,t.eatWhile(eu),{type:"CustomProperty",value:t.current(),start:e,end:t.pos};t.pos=e}function LP(t){let e=t.peek();if(YP(e))return{type:"Bracket",open:e===N.RoundBracketOpen,start:t.pos++,end:t.pos}}function H0(t){let e=_P(t.peek());if(e)return{type:"Operator",operator:e,start:t.pos++,end:t.pos}}function qP(t){let e=t.pos;t.eat(N.Dash);let i=t.pos,n=t.eatWhile(St),r=t.pos;if(t.eat(N.Dot)){let s=t.eatWhile(St);!n&&!s&&(t.pos=r)}return t.pos===i&&(t.pos=e),t.pos!==e}function VP(t){return t===N.At||t===N.Dollar}function _P(t){return t===N.Sibling&&st.Sibling||t===N.Excl&&st.Important||t===N.Comma&&st.ArgumentDelimiter||t===N.Colon&&st.PropertyDelimiter||t===N.Dash&&st.ValueDelimiter||void 0}function BP(t){return St(t)||Ko(t,65,70)}function eu(t){return z0(t)||t===N.Dash}function YP(t){return t===N.RoundBracketOpen||t===N.RoundBracketClose}function Ih(t){return Jo(t)||t===N.Percent||t===N.Slash}function WP(t,e){let i="0",n="0",r="0",s=Number(e!=null&&e!==""?e:1);if(t==="t")s=0;else switch(t.length){case 0:break;case 1:i=n=r=t+t;break;case 2:i=n=r=t;break;case 3:i=t[0]+t[0],n=t[1]+t[1],r=t[2]+t[2];break;default:t+=t,i=t.slice(0,2),n=t.slice(2,4),r=t.slice(4,6)}return{r:parseInt(i,16),g:parseInt(n,16),b:parseInt(r,16),a:s}}function jP(t){return t.type==="ColorValue"||t.type==="NumberValue"&&!t.unit}function IP(t,e){let i=0,n=0;for(;e.length;){let r=NP(e);if(r.type==="Literal"||r.type==="NumberValue")i=r.start,n||(n=r.end),e.pop();else break}i!==n&&e.push(du(t,i,n))}function NP(t){return t[t.length-1]}function FP(t){return{tokens:t,start:0,pos:0,size:t.length}}function el(t){return t.tokens[t.pos]}function tl(t){return t.pos<t.size}function Wt(t,e){return e(el(t))?(t.pos++,!0):!1}function K0(t,e,i=el(t)){i&&i.start!=null&&(e+=` at ${i.start}`);let n=new Error(e);return n.pos=i&&i.start,n}function GP(t,e={}){let i=FP(t),n=[],r;for(;tl(i);)if(r=UP(i,e))n.push(r);else if(!Wt(i,eT))throw K0(i,"Unexpected token");return n}function UP(t,e){let i,n=!1,r,s=[],o=el(t),l=!!e.value;for(!l&&pu(o)&&!rT(t)&&(t.pos++,i=o.value,Wt(t,ib)),l&&Wt(t,Ou);tl(t);)if(Wt(t,iT))n=!0;else if(r=J0(t,l))s.push(r);else if(!Wt(t,tT))break;if(i||s.length||n)return{name:i,value:s,important:n}}function J0(t,e){let i=[],n,r;for(;tl(t);)if(n=el(t),nT(n))t.pos++,pu(n)&&(r=HP(t))?i.push({type:"FunctionCall",name:n.value,arguments:r}):i.push(n);else if(ib(n)||e&&Ou(n))t.pos++;else break;return i.length?{type:"CSSValue",value:i}:void 0}function HP(t){let e=t.pos;if(Wt(t,KP)){let i=[],n;for(;tl(t)&&!Wt(t,JP);)if(n=J0(t,!0))i.push(n);else if(!Wt(t,Ou)&&!Wt(t,tb))throw K0(t,"Unexpected token");return t.start=e,i}}function pu(t){return t&&t.type==="Literal"}function eb(t,e){return t&&t.type==="Bracket"&&(e==null||t.open===e)}function KP(t){return eb(t,!0)}function JP(t){return eb(t,!1)}function Ou(t){return t&&t.type==="WhiteSpace"}function Dr(t,e){return t&&t.type==="Operator"&&(!e||t.operator===e)}function eT(t){return Dr(t,st.Sibling)}function tb(t){return Dr(t,st.ArgumentDelimiter)}function tT(t){return tb(t)}function iT(t){return Dr(t,st.Important)}function nT(t){return t.type==="StringValue"||t.type==="ColorValue"||t.type==="NumberValue"||t.type==="Literal"||t.type==="Field"||t.type==="CustomProperty"}function ib(t){return Dr(t,st.PropertyDelimiter)||Dr(t,st.ValueDelimiter)}function rT(t){let e=t.tokens[t.pos],i=t.tokens[t.pos+1];return e&&i&&pu(e)&&i.type==="Bracket"}function nb(t,e){try{let i=typeof t=="string"?CP(t,e&&e.value):t;return GP(i,e)}catch(i){throw i instanceof au&&typeof t=="string"&&(i.message+=`
|
||
${t}
|
||
${"-".repeat(i.pos)}^`),i}}function sT(t,e){if(!t.attributes)return;let i=[],n={};for(let r of t.attributes)if(r.name){let s=r.name;if(s in n){let o=n[s];s==="class"?o.value=oT(o.value,r.value," "):lT(o,r,e)}else i.push(n[s]=Object.assign({},r))}else i.push(r);t.attributes=i}function oT(t,e,i){if(t&&e){t.length&&i&&h0(t,i);for(let r of e)h0(t,r);return t}let n=t||e;return n&&n.slice()}function lT(t,e,i){return t.name=e.name,i.options["output.reverseAttributes"]||(t.value=e.value),t.implied||(t.implied=e.implied),t.boolean||(t.boolean=e.boolean),t.valueType!=="expression"&&(t.valueType=e.valueType),t}function h0(t,e){let i=t.length-1;typeof t[i]=="string"&&typeof e=="string"?t[i]+=e:t.push(e)}function aT(t,e,i){let n=[t],r=s=>{e(s,n,i),n.push(s),s.children.forEach(r),n.pop()};t.children.forEach(r)}function rb(t,e){for(let i=0;i<t.children.length;i++){let n=t.children[i];if(e(n))return n;let r=rb(n,e);if(r)return r}}function cT(t){let e;for(;t.children.length;)e=t,t=t.children[t.children.length-1];return{parent:e,node:t}}function sb(t){return t.type==="AbbreviationNode"}function hT(t,e){let i=[],n=e.options["output.reverseAttributes"],{warn:r}=e,s=o=>{let l=o.name&&e.snippets[o.name];if(!l||i.includes(l))return null;let a;try{a=fu(l,e)}catch(c){return r?.(`Unable to parse "${l}" snippet`,c),null}i.push(l),Io(a,s),i.pop();for(let c of a.children){if(o.attributes){let h=c.attributes||[],u=o.attributes||[];c.attributes=n?u.concat(h):h.concat(u)}uT(o,c)}return a};return Io(t,s),t}function Io(t,e,i){let n=[];for(let r of t.children){let s=e(r);if(s){n=n.concat(s.children);let o=cT(s);sb(o.node)&&(o.node.children=o.node.children.concat(Io(r,e)))}else n.push(r),r.children=Io(r,e)}return t.children=n}function uT(t,e){t.selfClosing&&(e.selfClosing=!0),t.value!=null&&(e.value=t.value),t.repeat&&(e.repeat=t.repeat)}function ob(t,e=0){return{options:t,value:"",level:e,offset:0,line:0,column:0}}function ue(t,e){let i=t.options["output.text"];cb(t,i(e,t.offset,t.line,t.column))}function ie(t,e){let i=OT(e);for(let n=0,r=i.length-1;n<=r;n++)ue(t,i[n]),n!==r&&Rt(t,!0)}function Rt(t,e){let i=t.options["output.baseIndent"],n=t.options["output.newline"];ue(t,n+i),t.line++,t.column=i.length,e&&fT(t,e===!0?t.level:e)}function fT(t,e=t.level){let i=t.options["output.indent"];ue(t,i.repeat(Math.max(e,0)))}function mu(t,e,i){let n=t.options["output.field"];cb(t,n(e,i,t.offset,t.line,t.column))}function dT(t,e){return hb(t,e.options["output.tagCase"])}function lb(t,e){return hb(t,e.options["output.attributeCase"])}function No(t,e,i){return t.valueType==="expression"?i?tu:iu:e.options["output.attributeQuotes"]==="single"?"'":'"'}function ab(t,e){return t.boolean||e.options["output.booleanAttributes"].includes((t.name||"").toLowerCase())}function pT(t){switch(t.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}function Ln(t,e){return typeof t=="string"?e.options.inlineElements.includes(t.toLowerCase()):t.name?Ln(t.name,e):!!(t.value&&!t.attributes)}function OT(t){return t.split(/\r\n|\r|\n/g)}function cb(t,e){t.value+=e,t.offset+=e.length,t.column+=e.length}function hb(t,e){return e?e==="upper"?t.toUpperCase():t.toLowerCase():t}function gT(t,e,i){!t.name&&t.attributes&&ub(t,e,i)}function ub(t,e,i){let n=yT(e),r=i.context?i.context.name:"",s=bT(n?n.name:r);t.name=mT[s]||(Ln(s,i)?"span":"div")}function bT(t){return(t||"").toLowerCase()}function yT(t){for(let e=t.length-1;e>=0;e--){let i=t[e];if(sb(i))return i}}function vT(t,e,i){let n;if(t.name&&(n=t.name.match(wT))){let r=u0[n[1]]||u0.latin,s=n[2]?Math.max(1,Number(n[2])):30,o=n[3]?Math.max(s,Number(n[3].slice(1))):s,l=bi(s,o),a=t.repeat||CT(e);t.name=t.attributes=void 0,t.value=[TT(r,l,!a||a.value===0)],t.repeat&&e.length>1&&ub(t,e,i)}}function bi(t,e){return Math.floor(Math.random()*(e-t)+t)}function kT(t,e){let i=t.length,n=Math.min(i,e),r=[];for(;r.length<n;){let s=t[bi(0,i)];r.includes(s)||r.push(s)}return r}function $T(t){return t[bi(0,t.length-1)]}function f0(t,e){return t.length&&(t=[PT(t[0])].concat(t.slice(1))),t.join(" ")+(e||$T("?!..."))}function PT(t){return t[0].toUpperCase()+t.slice(1)}function d0(t){if(t.length<2)return t;t=t.slice();let e=t.length,i=/,$/,n=0;e>3&&e<=6?n=bi(0,1):e>6&&e<=12?n=bi(0,2):n=bi(1,4);for(let r=0,s;r<n;r++)s=bi(0,e-2),i.test(t[s])||(t[s]+=",");return t}function TT(t,e,i){let n=[],r=0,s;for(i&&t.common&&(s=t.common.slice(0,e),r+=s.length,n.push(f0(d0(s),".")));r<e;)s=kT(t.words,Math.min(bi(2,30),e-r)),r+=s.length,n.push(f0(d0(s)));return n.join(" ")}function CT(t){for(let e=t.length-1;e>=0;e--){let i=t[e];if(i.type==="AbbreviationNode"&&i.repeat)return i.repeat}}function AT(t){RT(t.name)&&t.attributes&&(t.children.length||t.value)&&(t.attributes=t.attributes.filter(ZT))}function ZT(t){return t.name!=="select"}function RT(t){return t==="xsl:variable"||t==="xsl:with-param"}function ET(t,e,i){zT(t),DT(t,e,i)}function zT(t){let e=gu(t),i=[];for(let n of e.classNames){let r=n.indexOf("_");r>0&&!n.startsWith("-")?(i.push(n.slice(0,r)),i.push(n.slice(r))):i.push(n)}i.length&&(e.classNames=i.filter(gb),e.block=Ob(e.classNames),mb(t,e.classNames.join(" ")))}function DT(t,e,i){let n=gu(t),r=[],{options:s}=i,o=e.slice(1).concat(t);for(let a of n.classNames){let c="",h,u=a;(h=a.match(fb))&&(c=p0(o,h[1].length,i.context)+s["bem.element"]+h[2],r.push(c),a=a.slice(h[0].length)),(h=a.match(db))&&(c||(c=p0(o,h[1].length),r.push(c)),r.push(`${c}${s["bem.modifier"]}${h[2]}`),a=a.slice(h[0].length)),a===u&&r.push(u)}let l=r.filter(gb);l.length&&mb(t,l.join(" "))}function gu(t){if(!t._bem){let e="";if(t.attributes){for(let i of t.attributes)if(i.name==="class"&&i.value){e=qT(i.value);break}}t._bem=pb(e)}return t._bem}function LT(t){return t._bem||(t._bem=pb(t.attributes&&t.attributes.class||"")),t._bem}function pb(t){let e=t?t.split(/\s+/):[];return{classNames:e,block:Ob(e)}}function p0(t,e=0,i){let r=Math.max(t.length-e,0);do{let s=t[r];if(s){let o=gu(s);if(o.block)return o.block}}while(0<r--);if(i){let s=LT(i);if(s.block)return s.block}return""}function Ob(t){return O0(t,XT)||O0(t,MT)||void 0}function O0(t,e){for(let i of t){if(fb.test(i)||db.test(i))break;if(e(i))return i}}function mb(t,e){for(let i of t.attributes)if(i.name==="class"){i.value=[e];break}}function qT(t){let e="";for(let i of t)e+=typeof i=="string"?i:i.name;return e}function gb(t,e,i){return!!t&&i.indexOf(t)===e}function VT(t){if(t.name==="label"){let e=rb(t,i=>i.name==="input"||i.name==="textarea");e&&(t.attributes&&(t.attributes=t.attributes.filter(i=>!(i.name==="for"&&m0(i)))),e.attributes&&(e.attributes=e.attributes.filter(i=>!(i.name==="id"&&m0(i)))))}}function m0(t){if(!t.value)return!0;if(t.value.length===1){let e=t.value[0];if(e&&typeof e!="string"&&!e.name)return!0}return!1}function bb(t,e,i){let n=(s,o,l)=>{let{parent:a,current:c}=i;i.parent=c,i.current=s,e(s,o,l,i,r),i.current=c,i.parent=a},r=(s,o,l)=>{i.ancestors.push(i.current),n(s,o,l),i.ancestors.pop()};t.children.forEach(n)}function yb(t){return{current:null,parent:void 0,ancestors:[],config:t,field:1,out:ob(t.options)}}function ji(t){return t?!t.name&&!t.attributes:!1}function g0(t,e){return t?Ln(t,e):!1}function xb(t){return typeof t=="object"&&t.type==="Field"}function lt(t,e){let{out:i}=e,n=-1;for(let r of t)typeof r=="string"?ie(i,r):(mu(i,e.field+r.index,r.name),r.index>n&&(n=r.index));n!==-1&&(e.field+=n+1)}function _T(t){let e=[],i=[];for(let n of t)if(typeof n=="string"){let r=n.split(/\r\n?|\n/g);for(i.push(r.shift()||"");r.length;)e.push(i),i=[r.shift()||""]}else i.push(n);return i.length&&e.push(i),e}function Sb(t){return!t.implied||t.valueType!=="raw"||!!t.value&&t.value.length>0}function b0(t){let e=[],i={pos:0,text:t},n,r=i.pos,s=i.pos;for(;i.pos<i.text.length;)s=i.pos,(n=BT(i))?(r!==i.pos&&e.push(t.slice(r,s)),e.push(n),r=i.pos):i.pos++;return r!==i.pos&&e.push(t.slice(r)),e}function BT(t){if(Nh(t)===Ii.Start){let e=++t.pos,i=e,n=e,r=1;for(;t.pos<t.text.length;){let s=Nh(t);if(Qb(s)){for(i=t.pos;YT(Nh(t));)t.pos++;n=t.pos}else{if(s===Ii.Start)r++;else if(s===Ii.End&&--r===0)return{before:t.text.slice(e,i),after:t.text.slice(n,t.pos++),name:t.text.slice(i,n)};t.pos++}}}}function Nh(t,e=t.pos){return t.text.charCodeAt(e)}function Qb(t){return t>=65&&t<=90}function YT(t){return Qb(t)||t>47&&t<58||t===Ii.Underscore||t===Ii.Dash}function WT(t){let{options:e}=t;return{enabled:e["comment.enabled"],trigger:e["comment.trigger"],before:e["comment.before"]?b0(e["comment.before"]):void 0,after:e["comment.after"]?b0(e["comment.after"]):void 0}}function jT(t,e){wb(t,e)&&e.comment.before&&vb(t,e.comment.before,e)}function IT(t,e){wb(t,e)&&e.comment.after&&vb(t,e.comment.after,e)}function wb(t,e){let{comment:i}=e;if(!i.enabled||!i.trigger||!t.name||!t.attributes)return!1;for(let n of t.attributes)if(n.name&&i.trigger.includes(n.name))return!0;return!1}function vb(t,e,i){let n={},{out:r}=i;for(let s of t.attributes)s.name&&s.value&&(n[s.name.toUpperCase()]=s.value);for(let s of e)typeof s=="string"?ie(r,s):n[s.name]&&(ie(r,s.before),lt(n[s.name],i),ie(r,s.after))}function kb(t,e){let i=yb(e);return i.comment=WT(e),bb(t,GT,i),i.out.value}function GT(t,e,i,n,r){let{out:s,config:o}=n,l=$b(t,e,i,n),a=HT(n);if(s.level+=a,l&&Rt(s,!0),t.name){let c=dT(t.name,o);if(jT(t,n),ie(s,`<${c}`),t.attributes)for(let h of t.attributes)Sb(h)&&UT(h,n);if(t.selfClosing&&!t.children.length&&!t.value)ie(s,`${pT(o)}>`);else{if(ie(s,">"),!y0(t,n,r)){if(t.value){let h=t.value.some(Pb)||KT(t.value,o);h&&Rt(n.out,++s.level),lt(t.value,n),h&&Rt(n.out,--s.level)}if(t.children.forEach(r),!t.value&&!t.children.length){let h=o.options["output.formatLeafNode"]||o.options["output.formatForce"].includes(t.name);h&&Rt(n.out,++s.level),lt(il,n),h&&Rt(n.out,--s.level)}}ie(s,`</${c}>`),IT(t,n)}}else!y0(t,n,r)&&t.value&&(lt(t.value,n),t.children.forEach(r));if(l&&e===i.length-1&&n.parent){let c=ji(n.parent)?0:1;Rt(s,s.level-c)}s.level-=a}function UT(t,e){let{out:i,config:n}=e;if(t.name){let r=n.options["markup.attributes"],s=n.options["markup.valuePrefix"],{name:o,value:l}=t,a=No(t,n,!0),c=No(t,n);r&&(o=x0(o,r,t.multiple)||o),o=lb(o,n),n.options["jsx.enabled"]&&t.multiple&&(a=tu,c=iu);let h=s?x0(t.name,s,t.multiple):null;if(h&&l?.length===1&&typeof l[0]=="string"){let u=l[0];l=[JT(u)?`${h}.${u}`:`${h}['${u}']`],n.options["jsx.enabled"]&&(a=tu,c=iu)}ab(t,n)&&!l?n.options["output.compactBoolean"]||(l=[o]):l||(l=il),ie(i," "+o),l?(ie(i,"="+a),lt(l,e),ie(i,c)):n.options["output.selfClosingStyle"]!=="html"&&ie(i,"="+a+c)}}function y0(t,e,i){if(t.value&&t.children.length){let n=t.value.findIndex(xb);if(n!==-1){lt(t.value.slice(0,n),e);let r=e.out.line,s=n+1;return t.children.forEach(i),e.out.line!==r&&typeof t.value[s]=="string"&&ie(e.out,t.value[s++].trimLeft()),lt(t.value.slice(s),e),!0}}return!1}function $b(t,e,i,n){let{config:r,parent:s}=n;if(!r.options["output.format"]||e===0&&!s||s&&ji(s)&&i.length===1)return!1;if(ji(t)&&(ji(i[e-1])||ji(i[e+1])||t.value.some(Pb)||t.value.some(xb)&&t.children.length))return!0;if(Ln(t,r)){if(e===0){for(let o=0;o<i.length;o++)if(!Ln(i[o],r))return!0}else if(!Ln(i[e-1],r))return!0;if(r.options["output.inlineBreak"]){let o=1,l=e,a=e;for(;g0(i[--l],r);)o++;for(;g0(i[++a],r);)o++;if(o>=r.options["output.inlineBreak"])return!0}for(let o=0,l=t.children.length;o<l;o++)if($b(t.children[o],o,t.children,n))return!0;return!1}return!0}function HT(t){let{config:e,parent:i}=t;return!i||ji(i)||i.name&&e.options["output.formatSkip"].includes(i.name)?0:1}function Pb(t){return typeof t=="string"&&/\r|\n/.test(t)}function KT(t,e){if(t.length&&typeof t[0]=="string"){let i=NT.exec(t[0]);if(i?.length&&!e.options.inlineElements.includes(i[1].toLowerCase()))return!0}return!1}function x0(t,e,i){return i&&e[`${t}*`]||e[t]}function JT(t){return!FT.has(t)&&/^[a-zA-Z_$][\w_$]*$/.test(t)}function bu(t,e,i){let n=yb(e);return n.options=i||{},bb(t,eC,n),n.out.value}function eC(t,e,i,n,r){let{out:s,options:o}=n,{primary:l,secondary:a}=tC(t),c=n.parent?1:0;s.level+=c,lC(t,e,i,n)&&Rt(s,!0),t.name&&(t.name!=="div"||!l.length)&&ie(s,(o.beforeName||"")+t.name+(o.afterName||"")),iC(l,n),nC(a.filter(Sb),n),t.selfClosing&&!t.value&&!t.children.length?n.options.selfClose&&ie(s,n.options.selfClose):(rC(t,n),t.children.forEach(r)),s.level-=c}function tC(t){let e=[],i=[];if(t.attributes)for(let n of t.attributes)sC(n)?e.push(n):i.push(n);return{primary:e,secondary:i}}function iC(t,e){for(let i of t)if(i.value)if(i.name==="class"){ie(e.out,".");let n=i.value.map(r=>typeof r=="string"?r.replace(/\s+/g,"."):r);lt(n,e)}else ie(e.out,"#"),lt(i.value,e)}function nC(t,e){if(t.length){let{out:i,config:n,options:r}=e;r.beforeAttribute&&ie(i,r.beforeAttribute);for(let s=0;s<t.length;s++){let o=t[s];ie(i,lb(o.name||"",n)),ab(o,n)&&!o.value?!n.options["output.compactBoolean"]&&r.booleanValue&&ie(i,"="+r.booleanValue):(ie(i,"="+No(o,n,!0)),lt(o.value||il,e),ie(i,No(o,n))),s!==t.length-1&&r.glueAttribute&&ie(i,r.glueAttribute)}r.afterAttribute&&ie(i,r.afterAttribute)}}function rC(t,e){if(!t.value&&t.children.length)return;let i=t.value||il,n=_T(i),{out:r,options:s}=e;if(n.length===1)(t.name||t.attributes)&&ue(r," "),lt(i,e);else{let o=[],l=0;for(let a of n){let c=oC(a);o.push(c),c>l&&(l=c)}r.level++;for(let a=0;a<n.length;a++)Rt(r,!0),s.beforeTextLine&&ue(r,s.beforeTextLine),lt(n[a],e),s.afterTextLine&&(ue(r," ".repeat(l-o[a])),ue(r,s.afterTextLine));r.level--}}function sC(t){return t.name==="class"||t.name==="id"}function oC(t){let e=0;for(let i of t)e+=typeof i=="string"?i.length:i.name.length;return e}function lC(t,e,i,n){return!n.parent&&e===0?!1:!ji(t)}function aC(t,e){return bu(t,e,{beforeName:"%",beforeAttribute:"(",afterAttribute:")",glueAttribute:" ",afterTextLine:" |",booleanValue:"true",selfClose:"/"})}function cC(t,e){return bu(t,e,{beforeAttribute:" ",glueAttribute:" ",beforeTextLine:"| ",selfClose:"/"})}function hC(t,e){return bu(t,e,{beforeAttribute:"(",afterAttribute:")",glueAttribute:", ",beforeTextLine:"| ",selfClose:e.options["output.selfClosingStyle"]==="xml"?"/":""})}function fC(t,e){let i;if(typeof t=="string"){let n=Object.assign({},e);e.options["jsx.enabled"]&&(n.jsx=!0),e.options["markup.href"]&&(n.href=!0),t=fu(t,n),i=e.text,e.text=void 0}return t=hT(t,e),aT(t,pC,e),e.text=i??e.text,t}function dC(t,e){return(uC[e.syntax]||kb)(t,e)}function pC(t,e,i){gT(t,e,i),sT(t,i),vT(t,e,i),i.syntax==="xsl"&&AT(t),i.type==="markup"&&VT(t),i.options["bem.enabled"]&&ET(t,e,i)}function gC(t,e){let i=e.match(OC);if(i){let n={},r=i[2]?i[2].split("|").map(xC):[];for(let s of r)for(let o of s)QC(o,n);return{type:Nt.Property,key:t,property:i[1],value:r,keywords:n,dependencies:[]}}return{type:Nt.Raw,key:t,value:e}}function bC(t){t=t.slice().sort(yC);let e=[],i;for(let n of t.filter(SC)){for(;e.length;){if(i=e[e.length-1],n.property.startsWith(i.property)&&n.property.charCodeAt(i.property.length)===45){i.dependencies.push(n),e.push(n);break}e.pop()}e.length||e.push(n)}return t}function yC(t,e){return t.key===e.key?0:t.key<e.key?-1:1}function xC(t){return nb(t.trim(),mC)[0].value}function SC(t){return t.type===Nt.Property}function QC(t,e){for(let i of t.value)if(i.type==="Literal")e[i.value]=i;else if(i.type==="FunctionCall")e[i.name]=i;else if(i.type==="Field"){let n=i.name.trim();n&&(e[n]={type:"Literal",value:n})}}function wC(t,e,i=!1){if(t=t.toLowerCase(),e=e.toLowerCase(),t===e)return 1;if(!t||!e||t.charCodeAt(0)!==e.charCodeAt(0))return 0;let n=t.length,r=e.length;if(!i&&n>r)return 0;let s=Math.min(n,r),o=Math.max(n,r),l=1,a=1,c=o,h=0,u=0,f=!1,d=!1;for(;l<n;){for(h=t.charCodeAt(l),f=!1,d=!1;a<r;){if(u=e.charCodeAt(a),h===u){f=!0,c+=o-(d?l:a);break}d=u===45,a++}if(!f){if(!i)return 0;break}l++}let p=l/o,O=o-s,g=S0(o)-S0(O);return c*p/g}function S0(t){return t*(t+1)/2}function Tb(t,e){return!t.r&&!t.g&&!t.b&&!t.a?"transparent":t.a===1?vC(t,e):kC(t)}function vC(t,e){let i=e&&Fh(t.r)&&Fh(t.g)&&Fh(t.b)?$C:PC;return"#"+i(t.r)+i(t.g)+i(t.b)}function kC(t){let e=[t.r,t.g,t.b];return t.a!==1&&e.push(Cb(t.a,8)),`${e.length===3?"rgb":"rgba"}(${e.join(", ")})`}function Cb(t,e=4){return t.toFixed(e).replace(/\.?0+$/,"")}function Fh(t){return!(t%17)}function $C(t){return(t>>4).toString(16)}function PC(t){return TC(t.toString(16),2)}function TC(t,e){for(;t.length<e;)t="0"+t;return t}function CC(t,e){var i;let n=ob(e.options),r=e.options["output.format"];((i=e.context)===null||i===void 0?void 0:i.name)===Fo.Section&&(t=t.filter(s=>s.snippet));for(let s=0;s<t.length;s++)r&&s!==0&&Rt(n,!0),AC(t[s],n,e);return n.value}function AC(t,e,i){let n=i.options["stylesheet.json"];if(t.name){let r=n?XC(t.name):t.name;ie(e,r+i.options["stylesheet.between"]),t.value.length?ZC(t,e,i):mu(e,0,""),n?ue(e,","):(Q0(t,e,!0),ue(e,i.options["stylesheet.after"]))}else{for(let r of t.value)for(let s of r.value)Zb(s,e,i);Q0(t,e,t.value.length>0)}}function ZC(t,e,i){let n=i.options["stylesheet.json"],r=n?RC(t):null;if(r&&(!r.unit||r.unit==="px"))ue(e,String(r.value));else{let s=MC(i);n&&ue(e,s);for(let o=0;o<t.value.length;o++)o!==0&&ue(e,", "),Ab(t.value[o],e,i);n&&ue(e,s)}}function Q0(t,e,i){t.important&&(i&&ue(e," "),ue(e,"!important"))}function Ab(t,e,i){for(let n=0,r=-1;n<t.value.length;n++){let s=t.value[n];n!==0&&(s.type!=="Field"||s.start!==r)&&ue(e," "),Zb(s,e,i),r=s.end}}function Zb(t,e,i){if(t.type==="ColorValue")ue(e,Tb(t,i.options["stylesheet.shortHex"]));else if(t.type==="Literal"||t.type==="CustomProperty")ie(e,t.value);else if(t.type==="NumberValue")ie(e,Cb(t.value,4)+t.unit);else if(t.type==="StringValue"){let n=t.quote==="double"?'"':"'";ie(e,n+t.value+n)}else if(t.type==="Field")mu(e,t.index,t.name);else if(t.type==="FunctionCall"){ue(e,t.name+"(");for(let n=0;n<t.arguments.length;n++)n&&ue(e,", "),Ab(t.arguments[n],e,i);ue(e,")")}}function RC(t){if(t.value.length===1){let e=t.value[0];if(e.value.length===1&&e.value[0].type==="NumberValue")return e.value[0]}}function XC(t){return t.replace(/\-(\w)/g,(e,i)=>i.toUpperCase())}function MC(t){return t.options["stylesheet.jsonDoubleQuotes"]?'"':"'"}function EC(t,e){var i;let n=((i=e.cache)===null||i===void 0?void 0:i.stylesheetSnippets)||zC(e.snippets),r=[];e.cache&&(e.cache.stylesheetSnippets=n),typeof t=="string"&&(t=nb(t,{value:Eb(e)}));let s=WC(n,e);for(let o of t){let l=DC(o,s,e);l&&r.push(l)}return r}function zC(t){let e=[];for(let i of Object.keys(t))e.push(gC(i,t[i]));return bC(e)}function DC(t,e,i){if(!LC(t,i)){let n=i.options["stylesheet.fuzzySearchMinScore"];if(Eb(i)){let r=i.context.name,s=e.find(o=>o.type===Nt.Property&&o.property===r);Rb(t,i,s,n),t.snippet=s}else if(t.name){let r=Bo(t.name,e,n,!0);if(t.snippet=r,r){let s=r.type===Nt.Property?qC(t,r,i):VC(t,r);if(s)t=s;else if(i.options["stylesheet.strictMatch"])return null}}}return(t.name||i.context)&&YC(t,i),t}function LC(t,e){let i=null,n=t.value.length===1?t.value[0]:null;if(n&&n.value.length===1){let r=n.value[0];r.type==="FunctionCall"&&r.name===w0&&(i=r)}return i||t.name===w0?(i?i=Object.assign(Object.assign({},i),{name:"linear-gradient"}):i={type:"FunctionCall",name:"linear-gradient",arguments:[Go(Wi(0,""))]},e.context||(t.name="background-image"),t.value=[Go(i)],!0):!1}function qC(t,e,i){let n=t.name,r=BC(n,e.key);if(r){if(t.value.length)return null;let s=nu(r,i,e);if(!s)return null;t.value.push(Go(s))}if(t.name=e.property,t.value.length)Rb(t,i,e);else if(e.value.length){let s=e.value[0];t.value=e.value.length===1||s.some(Xb)?s:s.map(o=>Mb(o,i))}return t}function Rb(t,e,i,n){for(let r of t.value){let s=[];for(let o of r.value)if(o.type==="Literal")s.push(nu(o.value,e,i,n)||o);else if(o.type==="FunctionCall"){let l=nu(o.name,e,i,n);l&&l.type==="FunctionCall"?s.push(Object.assign(Object.assign({},l),{arguments:o.arguments.concat(l.arguments.slice(o.arguments.length))})):s.push(o)}else s.push(o);r.value=s}}function VC(t,e){let i=0,n,r=/\$\{(\d+)(:[^}]+)?\}/g,s=t.value[0],o=[];for(;n=r.exec(e.value);)i!==n.index&&o.push(qn(e.value.slice(i,n.index))),i=n.index+n[0].length,s&&s.value.length?o.push(s.value.shift()):o.push(Wi(Number(n[1]),n[2]?n[2].slice(1):""));let l=e.value.slice(i);return l&&o.push(qn(l)),t.name=void 0,t.value=[Go(...o)],t}function Bo(t,e,i=0,n=!1){let r=null,s=0;for(let o of e){let l=wC(t,_C(o),n);if(l===1)return o;l&&l>=s&&(s=l,r=o)}return s>=i?r:null}function _C(t){return typeof t=="string"?t:t.key}function BC(t,e){for(let i=0,n=0;i<t.length;i++){if(n=e.indexOf(t[i],n),n===-1)return t.slice(i);n++}return""}function nu(t,e,i,n){let r;if(i){if(r=Bo(t,Object.keys(i.keywords),n))return i.keywords[r];for(let s of i.dependencies)if(r=Bo(t,Object.keys(s.keywords),n))return s.keywords[r]}return(r=Bo(t,e.options["stylesheet.keywords"],n))?qn(r):null}function YC(t,e){let i=e.options["stylesheet.unitAliases"],n=e.options["stylesheet.unitless"];for(let r of t.value)for(let s of r.value)s.type==="NumberValue"&&(s.unit?s.unit=i[s.unit]||s.unit:s.value!==0&&!n.includes(t.name)&&(s.unit=s.rawValue.includes(".")?e.options["stylesheet.floatUnit"]:e.options["stylesheet.intUnit"]))}function Go(...t){return{type:"CSSValue",value:t}}function qn(t){return{type:"Literal",value:t}}function Wi(t,e){return{type:"Field",index:t,name:e}}function Xb(t){for(let e of t.value)if(e.type==="Field"||e.type==="FunctionCall"&&e.arguments.some(Xb))return!0;return!1}function Mb(t,e,i={index:1}){let n=[];for(let r of t.value)switch(r.type){case"ColorValue":n.push(Wi(i.index++,Tb(r,e.options["stylesheet.shortHex"])));break;case"Literal":n.push(Wi(i.index++,r.value));break;case"NumberValue":n.push(Wi(i.index++,`${r.value}${r.unit}`));break;case"StringValue":let s=r.quote==="single"?"'":'"';n.push(Wi(i.index++,s+r.value+s));break;case"FunctionCall":n.push(Wi(i.index++,r.name),qn("("));for(let o=0,l=r.arguments.length;o<l;o++)n=n.concat(Mb(r.arguments[o],e,i).value),o!==l-1&&n.push(qn(", "));n.push(qn(")"));break;default:n.push(r)}return Object.assign(Object.assign({},t),{value:n})}function Eb(t){return t.context?t.context.name===Fo.Value||!t.context.name.startsWith("@@"):!1}function WC(t,e){if(e.context){if(e.context.name===Fo.Section)return t.filter(i=>i.type===Nt.Raw);if(e.context.name===Fo.Property)return t.filter(i=>i.type===Nt.Property)}return t}function _o(t){let e={};return Object.keys(t).forEach(i=>{for(let n of i.split("|"))e[n]=t[i]}),e}function Db(t={},e={}){let i=t.type||"markup",n=t.syntax||UC[i];return Object.assign(Object.assign(Object.assign({},zb),t),{type:i,syntax:n,variables:Gh(i,n,"variables",t,e),snippets:Gh(i,n,"snippets",t,e),options:Gh(i,n,"options",t,e)})}function Gh(t,e,i,n,r={}){let s=v0[t],o=r[t],l=v0[e],a=r[e];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zb[i]),s&&s[i]),l&&l[i]),o&&o[i]),a&&a[i]),n[i])}function Lb(t,e=0){return{text:t,start:e,pos:t.length}}function Gt(t){return t.pos===t.start}function Lr(t,e=0){return t.text.charCodeAt(t.pos-1+e)}function k0(t){if(!Gt(t))return t.text.charCodeAt(--t.pos)}function Ne(t,e){if(Gt(t))return!1;let i=typeof e=="function"?e(Lr(t)):e===Lr(t);return i&&t.pos--,!!i}function qb(t,e){let i=t.pos;for(;Ne(t,e););return t.pos<i}function yu(t){return t===qr.SingleQuote||t===qr.DoubleQuote}function KC(t){let e=t.pos,i=k0(t);if(yu(i)){for(;!Gt(t);)if(k0(t)===i&&Lr(t)!==qr.Escape)return!0}return t.pos=e,!1}function JC(t){let e=t.pos;if(!Ne(t,Ae.AngleRight))return!1;let i=!1;for(Ne(t,Ae.Slash);!Gt(t);){if(qb(t,ru),Uo(t)){if(Ne(t,Ae.Slash)){i=Ne(t,Ae.AngleLeft);break}else if(Ne(t,Ae.AngleLeft)){i=!0;break}else{if(Ne(t,ru))continue;if(Ne(t,Ae.Equals)){if(Uo(t))continue;break}else if(_b(t)){i=!0;break}}break}if(!eA(t))break}return t.pos=e,i}function eA(t){return tA(t)||_b(t)}function tA(t){let e=t.pos;return KC(t)&&Ne(t,Ae.Equals)&&Uo(t)?!0:(t.pos=e,!1)}function _b(t){let e=t.pos,i=[];for(;!Gt(t);){let n=Lr(t);if(lA(n))i.push(n);else if(oA(n)){if(i.pop()!==Vb[n])break}else if(!sA(n))break;t.pos--}return e!==t.pos&&Ne(t,Ae.Equals)&&Uo(t)?!0:(t.pos=e,!1)}function Uo(t){return qb(t,iA)}function iA(t){return t===Ae.Colon||t===Ae.Dash||nA(t)||rA(t)}function nA(t){return t&=-33,t>=65&&t<=90}function rA(t){return t>47&&t<58}function ru(t){return t===Ae.Space||t===Ae.Tab}function sA(t){return!isNaN(t)&&t!==Ae.Equals&&!ru(t)&&!yu(t)}function oA(t){return t===ee.CurlyL||t===ee.RoundL||t===ee.SquareL}function lA(t){return t===ee.CurlyR||t===ee.RoundR||t===ee.SquareR}function hA(t,e=t.length,i={}){let n=Object.assign(Object.assign({},cA),i);e=Math.min(t.length,Math.max(0,e??t.length)),n.lookAhead&&(e=uA(t,e,n));let r,s=fA(t,e,n.prefix||"");if(s===-1)return;let o=Lb(t,s);o.pos=e;let l=[];for(;!Gt(o);){if(r=Lr(o),l.includes(ee.CurlyR)){if(r===ee.CurlyR){l.push(r),o.pos--;continue}if(r!==ee.CurlyL){o.pos--;continue}}if(Yb(r,n.type))l.push(r);else if(OA(r,n.type)){if(l.pop()!==Vb[r])break}else if(l.includes(ee.SquareR)||l.includes(ee.CurlyR)){o.pos--;continue}else if(JC(o)||!pA(r))break;o.pos--}if(!l.length&&o.pos!==e){let a=t.slice(o.pos,e).replace(/^[*+>^]+/,"");return{abbreviation:a,location:e-a.length,start:i.prefix?s-i.prefix.length:e-a.length,end:e}}}function uA(t,e,i){for(yu(t.charCodeAt(e))&&e++;Yb(t.charCodeAt(e),i.type);)e++;return e}function fA(t,e,i){if(!i)return 0;let n=Lb(t),r=i.split("").map(Bb);n.pos=e;let s;for(;!Gt(n);)if(!($0(n,ee.SquareR,ee.SquareL)||$0(n,ee.CurlyR,ee.CurlyL))){if(s=n.pos,dA(n,r))return s;n.pos--}return-1}function $0(t,e,i){let n=t.pos;if(Ne(t,e))for(;!Gt(t);){if(Ne(t,i))return!0;t.pos--}return t.pos=n,!1}function dA(t,e){let i=t.pos,n=!1;for(let r=e.length-1;r>=0&&!Gt(t)&&Ne(t,e[r]);r--)n=r===0;return n||(t.pos=i),n}function pA(t){return t>64&&t<91||t>96&&t<123||t>47&&t<58||aA.includes(t)}function OA(t,e){return t===ee.RoundL||e==="markup"&&(t===ee.SquareL||t===ee.CurlyL)}function Yb(t,e){return t===ee.RoundR||e==="markup"&&(t===ee.SquareR||t===ee.CurlyR)}function mA(t,e){let i=Db(e);return i.type==="stylesheet"?bA(t,i):gA(t,i)}function gA(t,e){return dC(fC(t,e),e)}function bA(t,e){return CC(EC(t,e),e)}function Wb(t){return t.selection.main.from}function Xt(t,e){return t.doc.sliceString(e.from,e.to)}function ct(t,e){return e>=t.from&&e<=t.to}function T0(t){return t==='"'||t==="'"}function jb(t,e){let{from:i,to:n}=e,r=Xt(t,e);return T0(r[0])&&i++,T0(r[r.length-1])&&n--,{from:i,to:n}}function xA(t,e){let i={};for(let n of e.getChildren("Attribute")){let r=n.getChild("AttributeName");if(r){let s=Xt(t,r),o=n.getChild("AttributeValue");i[s]=o?Xt(t,jb(t,o)):null}}return i}function SA(t){return t.from===t.to}function Ib(t){return t.length>0?t[t.length-1]:void 0}function QA(t,e=0){let i=[],n="",r=null,s=0,o=0,l;for(;o<t.length;)l=t.charAt(o++),(l===P0||l===yA)&&(n+=t.slice(s,o-1),s=o,l===P0?(r={from:e+n.length,to:e+n.length},i.push(r)):r&&(r=null));return i.length||i.push({from:t.length+e,to:t.length+e}),{ranges:i,snippet:n+t.slice(s)}}function wA(t,e){if(Zt.isActiveAt(t,e))return Nb(t,e);if(Yi.isActiveAt(t,e))return Fb(t,e)}function Nb(t,e,i){let n={type:"css",ancestors:[],current:null,inline:!1,embedded:i},r=_(t).resolveInner(e,-1),s=[];for(let l=r;l;l=l.parent)if(l.name==="RuleSet"){let a=kA(l);s.push({name:Xt(t,a),type:"selector",range:l})}else if(l.name==="Declaration"){let{name:a,value:c}=$A(l);c&&ct(c,e)&&s.push({name:Xt(t,c),type:"propertyValue",range:c}),a&&s.push({name:Xt(t,a),type:"propertyName",range:a})}let o=s.shift();if(o){let l=o.type==="selector"?{from:o.range.from,to:o.range.from+o.name.length}:o.range;ct(l,e)?(n.current=o,o.range=l):s.unshift(o)}return n.ancestors=s.reverse(),n}function Fb(t,e){let i={type:"html",ancestors:[],current:null},n=_(t).resolveInner(e);for(let r=n;r;r=r?r.parent:null)if(r.name in C0){let s=A0(t,r);s&&(i.current=yi(ot({},s),{type:C0[r.name]}),r=r.parent)}else if(r.name==="Element"){let s=r.getChild("OpenTag");if(s){let o=A0(t,s);o&&i.ancestors.push(o)}}return i.ancestors.reverse(),vA(t,e,i),i}function vA(t,e,i){var n;if(((n=i.current)==null?void 0:n.type)==="open"){let r=_(t).resolve(i.current.range.from,1);for(;r&&r.name!=="OpenTag";)r=r.parent;if(r)for(let s of r.getChildren("Attribute")){if(s.from>e)break;if(ct(s,e)&&PA(t,s)==="style"){let o=s.getChild("AttributeValue");if(o){let l=jb(t,o);ct(l,e)&&(i.css=TA(Xt(t,l),e-l.from,l.from))}}}}}function A0(t,e){let i=e.getChild("TagName");if(i)return{name:Xt(t,i).toLowerCase(),range:e}}function kA(t){let e=t.from,i=e;for(let n=t.firstChild;n&&n.name!=="Block";n=n.nextSibling)i=n.to;return{from:e,to:i}}function $A(t){let e,i,n=t.firstChild;return n?.name==="PropertyName"&&(e=n,n=n.nextSibling,n?.name===":"&&(n=n.nextSibling),n&&(i={from:n.from,to:t.lastChild.to})),{name:e,value:i}}function PA(t,e){let i=e.getChild("AttributeName");return i?Xt(t,i).toLowerCase():""}function TA(t,e,i=0){let n={type:"css",ancestors:[],current:null,inline:!0,embedded:{from:e+i,to:e+i+t.length}},r=CA(t,e);for(let s of r)if(s.value&&ct(s.value,e)){n.current={name:t.substring(s.value.from,s.value.to).trim(),type:"propertyValue",range:{from:i+s.value.from,to:i+s.value.to}},n.ancestors.push({name:t.substring(s.name.from,s.name.to).trim(),type:"propertyName",range:{from:i+s.name.from,to:i+s.value.to}});break}else if(ct(s.name,e)){let o=s.value?s.value.to:s.name.to;n.current={name:t.substring(s.name.from,s.name.to).trim(),type:"propertyName",range:{from:i+s.name.from,to:i+o}};break}return n}function CA(t,e=t.length){var i;let n=`
|
||
\r`,r=[],s;for(let o=0;o<t.length;o++){let l=t[o];if(s&&(s.value?s.value.from!==-1&&(s.value.to=o):s.name.to=o),l===";"){if(s=void 0,o>e)break}else l===":"?s&&!s.value&&(s.value={from:-1,to:-1}):s?((i=s.value)==null?void 0:i.from)===-1&&!n.includes(l)&&(s.value.from=s.value.to=o):n.includes(l)||(s={name:{from:o,to:o}},r.push(s))}return s&&(s.value?s.value.to++:s.name.to++),r}function Ho(t,e){let i=Su(t)||Y.html,n=Vr(t),r={"output.field":Gb,"output.indent":" ","output.format":!e,"output.attributeQuotes":n.attributeQuotes,"stylesheet.shortHex":n.shortHex};return i===Y.html&&(r["output.selfClosingStyle"]=n.markupStyle,r["output.compactBoolean"]=n.markupStyle==="html"),ey(i)&&(n.comments&&(r["comment.enabled"]=!0,n.commentsTemplate&&(r["comment.after"]=n.commentsTemplate)),r["bem.enabled"]=n.bem),r}function Gb(t,e){return e?`\${${t}:${e}}`:`\${${t}}`}function nl(t,e,i){let n={cache:Ub},r={"output.field":Gb};i&&(Object.assign(n,i),i.options&&Object.assign(r,i.options)),n.options=r;let s=Vr(t);return s.config&&(n=Db(n,s.config)),mA(e,n)}function AA(t,e,i="markup",n){return hA(t,e,ot({lookAhead:i!=="stylesheet",type:i},n))}function ZA(t,e){let i=EA(t,e),{context:n}=i,r={type:i.type,syntax:i.syntax||Y.html,options:Ho(t,i.inline)};return n&&(n.type==="html"&&n.ancestors.length?r.context=iy(t,n):n.type==="css"&&(r.context=ny(n))),r}function RA(){Ub={}}function Vr(t,e){return t.facet(rl)}function EA(t,e){let i=Su(t),n,r=typeof e=="number"?wA(t,e):e;return r?.type==="html"&&r.css?(n=!0,i=Y.css,r=r.css):r?.type==="css"&&(i=Y.css),{type:Qu(i),syntax:i,inline:n,context:r}}function Su(t){return Vr(t).syntax}function Qu(t){return t&&MA.includes(t)?"stylesheet":"markup"}function zA(t){return Kb.includes(t)}function ey(t){return Hb.includes(t)||zA(t)}function ty(t){return Jb.includes(t)}function wu(t){return xu.includes(t)}function iy(t,e){let i=Ib(e.ancestors);if(i){let n=_(t).resolve(i.range.from,1);for(;n&&n.name!=="OpenTag";)n=n.parent;return{name:i.name,attributes:n?xA(t,n):{}}}}function ny(t){if(t.inline)return{name:"@@property"};let e=Ib(t.ancestors),i="@@global";return t.current?t.current.type==="propertyValue"&&e?i=e.name:(t.current.type==="selector"||t.current.type==="propertyName")&&!e&&(i="@@section"):e||(i="@@section"),{name:i}}function ry(t,e,i){let n=document.createElement("div");n.className="emmet-preview",e==="error"&&n.classList.add("emmet-preview_error");let r=e===Y.css?Xr:zr;i&&e in i&&(r=i[e]);let s=new w({doc:t,root:i?.root,extensions:[I.readOnly.of(!0),Qn(Js,{fallback:!0}),e===Y.css?Xr():zr(),r()],parent:n});return n.update=o=>{let l=s.state.update({changes:{from:0,to:s.state.doc.length,insert:o}});s.dispatch(l)},n}function Z0(t,e){let i=t.field(Ft);if(i&&!i.inactive&&eh(t)!=="active"){if(i.config.type==="stylesheet")return null;e&&e.tracker.type!==i.type&&(e=null);let{range:n}=i;if(nZ(t,i))return e||{pos:n.from,above:!1,arrow:!1,tracker:i,create(){let r=t.facet(rl).preview,s="",o="";i.type==="error"?(s=i.error.message,o="error"):(s=i.preview,o=i.config.syntax||Y.html);let l=ry(s,o,r);return{dom:l,update({state:a}){let c=a.field(Ft);if(c&&l.update){let h=c.type==="error"?c.error.message:c.preview;l.update(h)}}}}}}return null}function sy(t,e){let{from:i,to:n}=e.range,r=nl(t.state,e.abbreviation,e.config),s=ko(r);t.dispatch(t.state.update({effects:vu.of(null)})),s(t,{label:"expand"},i,n)}function oy(t){return[Ft,YA,BA,IA,qA,t?rl.of(t):[],$t.of([{key:"Tab",run:WA},{key:"Escape",run:jA}])]}function NA(t,e,i){var n;if(i.length!==1)return null;let r=t.doc.lineAt(e),s=r.text.substring(Math.max(0,e-r.from-1),e-r.from);if(!X0(s,i,tZ(t,e)))return null;let o=ku(t,e);if(!o)return null;if(o.type==="stylesheet"){if(!X0(s,i,Y.css))return null;let u=(n=o.context)==null?void 0:n.name;if(u&&!u.startsWith("@@")&&i!=="#")return null}let l=o.syntax||Y.html,a=e,c=e+i.length,h=0;return wu(l)&&s===su&&(h=su.length,a-=h),$u(t,{from:a,to:c},{config:o})}function ku(t,e){if(Zt.isActiveAt(t,e))return R0(t,e,Y.css,Nb(t,e));let i=Su(t);if(ey(i)){let n=Fb(t,e);if(n.css)return R0(t,e,Y.css,n.css);if(!n.current)return{syntax:i,type:"markup",context:iy(t,n),options:Ho(t)}}else return{syntax:i,type:Qu(i),options:Ho(t)}}function R0(t,e,i,n){if(!n.current||n.current.type==="propertyName"||n.current.type==="propertyValue"||FA(t,e,n))return{syntax:i,type:"stylesheet",context:ny(n),options:Ho(t,n.inline)}}function FA(t,e,{current:i}){return i?.type==="selector"&&i.range.from===e-1?t.doc.lineAt(i.range.from).text.trim().length===1:!1}function GA(t,e){return wu(e)?t===su:ty(e)?t===""||/^[\s>;"\']$/.test(t):t===""||/^[\s>;"\']$/.test(t)}function UA(t,e){return wu(e)?/^[a-zA-Z.#\[\(]$/.test(t):ty(e)?/^[a-zA-Z!@#]$/.test(t):/^[a-zA-Z.#!@\[\(]$/.test(t)}function $u(t,e,i){if(e.from>e.to)return null;let n=Xt(t,e),{config:r,forced:s}=i;if(i.offset&&(n=n.slice(i.offset)),!n&&!s||ly(n))return null;let o={abbreviation:n,range:e,config:r,forced:!!s,inactive:!1,offset:i.offset||0};try{let l,a=!1;r.type==="markup"&&(l=fu(n,{jsx:r.syntax==="jsx"}),a=HA(l));let c=KA(r),h=nl(t,l||n,c);return h?yi(ot({},o),{type:"abbreviation",simple:a,preview:h}):null}catch(l){return o.forced?yi(ot({},o),{type:"error",error:l}):null}}function ly(t){return/[\r\n]/.test(t)}function HA(t){if(t.children.length===1&&!t.children[0].children.length){let e=t.children[0];return!e.name||/^[a-z]/i.test(e.name)}return!t.children.length}function KA(t){return yi(ot({},t),{options:yi(ot({},t.options),{"output.field":JA,"output.indent":" ","output.baseIndent":""})})}function JA(t,e){return e}function eZ(t,e,i){return iZ(t)?null:((!e||e.inactive)&&(i.changes.iterChanges((n,r,s,o,l)=>{l.length&&(e=NA(t,s,l.toString())||e)}),!e||!e.inactive)||i.changes.iterChanges((n,r,s,o,l)=>{if(!e)return;let{range:a}=e;if(!ct(a,n))e.inactive||(e=null);else if(ct(a,s)){let c=r-n,h=o-n,u=a.to+h-c;if(u<=a.from||ly(l.toString()))e=null;else{let f=e.inactive?a:{from:a.from,to:u},d=$u(t,f,{config:e.config,forced:e.forced});d?e=d:e=yi(ot({},e),{inactive:!0})}}}),e)}function tZ(t,e){return Zt.isActiveAt(t,e)?Y.css:Yi.isActiveAt(t,e)?Y.html:""}function X0(t,e,i){return GA(t,i)&&UA(e,i)}function iZ(t){return Array.isArray(t.values)?t.values.some(e=>{var i;return e&&((i=e.constructor)==null?void 0:i.name)==="ActiveSnippet"}):!1}function nZ(t,e){if(eh(t)==="active")return!1;let i=Vr(t);if(!i.previewEnabled)return!1;if(Array.isArray(i.previewEnabled)){let{type:n,syntax:r}=e.config;if(!i.previewEnabled.includes(n)&&!i.previewEnabled.includes(r))return!1}return e.type==="error"||(!e.simple||e.forced)&&!!e.abbreviation&&ct(e.range,Wb(t))}function M0(t,e,i){let n=t.facet(rl);return[{label:"Emmet abbreviation",type:"emmet",boost:n.completionBoost,tracker:e,previewConfig:n.preview,preview:i?.preview,info:rZ,apply:(r,s)=>{r.dispatch({annotations:Tn.of(s)}),sy(r,e)}}]}function rZ(t){let{tracker:e,previewConfig:i,preview:n}=t;return n?.update?n.update(e.preview):t.preview=n=ry(e.preview,e.config.syntax||Y.html,i),n}function sZ(t,e,i=0){return{type:t,value:e,priority:i}}var R$,X$,M$,e0,E$,z$,Uh,ot,yi,Hh,D0,au,z,QP,o0,wP,vP,st,N,tu,iu,mT,xT,ST,QT,u0,wT,fb,db,XT,MT,il,Ii,NT,FT,uC,Nt,OC,mC,Fo,w0,jC,IC,NC,FC,GC,UC,HC,zb,v0,qr,ee,Vb,Ae,Bb,aA,cA,P0,yA,C0,Y,Ub,XA,rl,Hb,xu,Kb,Jb,MA,DA,LA,qA,su,VA,vu,_A,Ft,BA,YA,WA,jA,IA,ay,k2,Yo,E0,$2,P2,cy=K(()=>{_e();Ke();Lh();Ph();Po();mt();kc();R$=Object.defineProperty,X$=Object.defineProperties,M$=Object.getOwnPropertyDescriptors,e0=Object.getOwnPropertySymbols,E$=Object.prototype.hasOwnProperty,z$=Object.prototype.propertyIsEnumerable,Uh=(t,e,i)=>e in t?R$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ot=(t,e)=>{for(var i in e||(e={}))E$.call(e,i)&&Uh(t,i,e[i]);if(e0)for(var i of e0(e))z$.call(e,i)&&Uh(t,i,e[i]);return t},yi=(t,e)=>X$(t,M$(e)),Hh=(t,e,i)=>Uh(t,typeof e!="symbol"?e+"":e,i);D0=class L0{constructor(e,i,n){n==null&&typeof e=="string"&&(n=e.length),this.string=e,this.pos=this.start=i||0,this.end=n||0}eof(){return this.pos>=this.end}limit(e,i){return new L0(this.string,e,i)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(e){let i=this.peek(),n=typeof e=="function"?e(i):i===e;return n&&this.next(),n}eatWhile(e){let i=this.pos;for(;!this.eof()&&this.eat(e););return this.pos!==i}backUp(e){this.pos-=e||1}current(){return this.substring(this.start,this.pos)}substring(e,i){return this.string.slice(e,i)}error(e,i=this.pos){return new au(`${e} at ${i+1}`,i,this.string)}},au=class extends Error{constructor(e,i,n){super(e),this.pos=i,this.string=n}};(function(t){t[t.CurlyBracketOpen=123]="CurlyBracketOpen",t[t.CurlyBracketClose=125]="CurlyBracketClose",t[t.Escape=92]="Escape",t[t.Equals=61]="Equals",t[t.SquareBracketOpen=91]="SquareBracketOpen",t[t.SquareBracketClose=93]="SquareBracketClose",t[t.Asterisk=42]="Asterisk",t[t.Hash=35]="Hash",t[t.Dollar=36]="Dollar",t[t.Dash=45]="Dash",t[t.Dot=46]="Dot",t[t.Slash=47]="Slash",t[t.Colon=58]="Colon",t[t.Excl=33]="Excl",t[t.At=64]="At",t[t.Underscore=95]="Underscore",t[t.RoundBracketOpen=40]="RoundBracketOpen",t[t.RoundBracketClose=41]="RoundBracketClose",t[t.Sibling=43]="Sibling",t[t.Child=62]="Child",t[t.Climb=94]="Climb",t[t.SingleQuote=39]="SingleQuote",t[t.DoubleQuote=34]="DoubleQuote"})(z||(z={}));QP={child:">",class:".",climb:"^",id:"#",equal:"=",close:"/",sibling:"+"},o0={Literal(t){return t.value},Quote(t){return t.single?"'":'"'},Bracket(t){return t.context==="attribute"?t.open?"[":"]":t.context==="expression"?t.open?"{":"}":t.open?"(":"}"},Operator(t){return QP[t.operator]},Field(t,e){return t.index!=null?t.name?`\${${t.index}:${t.name}}`:`\${${t.index}`:t.name?e.getVariable(t.name):""},RepeaterPlaceholder(t,e){let i;for(let n=e.repeaters.length-1;n>=0;n--)if(e.repeaters[n].implicit){i=e.repeaters[n];break}return e.inserted=!0,e.getText(i&&i.value)},RepeaterNumber(t,e){let i=1,n=e.repeaters.length-1,r=e.repeaters[n];if(r&&(i=t.reverse?t.base+r.count-r.value-1:t.base+r.value,t.parent)){let o=Math.max(0,n-t.parent);if(o!==n){let l=e.repeaters[o];i+=r.count*l.value}}let s=String(i);for(;s.length<t.size;)s="0"+s;return s},WhiteSpace(t){return t.value}};wP=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,vP=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/;(function(t){t.Sibling="+",t.Important="!",t.ArgumentDelimiter=",",t.ValueDelimiter="-",t.PropertyDelimiter=":"})(st||(st={}));(function(t){t[t.Hash=35]="Hash",t[t.Dollar=36]="Dollar",t[t.Dash=45]="Dash",t[t.Dot=46]="Dot",t[t.Colon=58]="Colon",t[t.Comma=44]="Comma",t[t.Excl=33]="Excl",t[t.At=64]="At",t[t.Percent=37]="Percent",t[t.Underscore=95]="Underscore",t[t.RoundBracketOpen=40]="RoundBracketOpen",t[t.RoundBracketClose=41]="RoundBracketClose",t[t.CurlyBracketOpen=123]="CurlyBracketOpen",t[t.CurlyBracketClose=125]="CurlyBracketClose",t[t.Sibling=43]="Sibling",t[t.SingleQuote=39]="SingleQuote",t[t.DoubleQuote=34]="DoubleQuote",t[t.Transparent=116]="Transparent",t[t.Slash=47]="Slash"})(N||(N={}));tu="{",iu="}";mT={p:"span",ul:"li",ol:"li",table:"tr",tr:"td",tbody:"tr",thead:"tr",tfoot:"tr",colgroup:"col",select:"option",optgroup:"option",audio:"source",video:"source",object:"param",map:"area"};xT={common:["lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit"],words:["exercitationem","perferendis","perspiciatis","laborum","eveniet","sunt","iure","nam","nobis","eum","cum","officiis","excepturi","odio","consectetur","quasi","aut","quisquam","vel","eligendi","itaque","non","odit","tempore","quaerat","dignissimos","facilis","neque","nihil","expedita","vitae","vero","ipsum","nisi","animi","cumque","pariatur","velit","modi","natus","iusto","eaque","sequi","illo","sed","ex","et","voluptatibus","tempora","veritatis","ratione","assumenda","incidunt","nostrum","placeat","aliquid","fuga","provident","praesentium","rem","necessitatibus","suscipit","adipisci","quidem","possimus","voluptas","debitis","sint","accusantium","unde","sapiente","voluptate","qui","aspernatur","laudantium","soluta","amet","quo","aliquam","saepe","culpa","libero","ipsa","dicta","reiciendis","nesciunt","doloribus","autem","impedit","minima","maiores","repudiandae","ipsam","obcaecati","ullam","enim","totam","delectus","ducimus","quis","voluptates","dolores","molestiae","harum","dolorem","quia","voluptatem","molestias","magni","distinctio","omnis","illum","dolorum","voluptatum","ea","quas","quam","corporis","quae","blanditiis","atque","deserunt","laboriosam","earum","consequuntur","hic","cupiditate","quibusdam","accusamus","ut","rerum","error","minus","eius","ab","ad","nemo","fugit","officia","at","in","id","quos","reprehenderit","numquam","iste","fugiat","sit","inventore","beatae","repellendus","magnam","recusandae","quod","explicabo","doloremque","aperiam","consequatur","asperiores","commodi","optio","dolor","labore","temporibus","repellat","veniam","architecto","est","esse","mollitia","nulla","a","similique","eos","alias","dolore","tenetur","deleniti","porro","facere","maxime","corrupti"]},ST={common:["\u0434\u0430\u043B\u0435\u043A\u043E-\u0434\u0430\u043B\u0435\u043A\u043E","\u0437\u0430","\u0441\u043B\u043E\u0432\u0435\u0441\u043D\u044B\u043C\u0438","\u0433\u043E\u0440\u0430\u043C\u0438","\u0432 \u0441\u0442\u0440\u0430\u043D\u0435","\u0433\u043B\u0430\u0441\u043D\u044B\u0445","\u0438 \u0441\u043E\u0433\u043B\u0430\u0441\u043D\u044B\u0445","\u0436\u0438\u0432\u0443\u0442","\u0440\u044B\u0431\u043D\u044B\u0435","\u0442\u0435\u043A\u0441\u0442\u044B"],words:["\u0432\u0434\u0430\u043B\u0438","\u043E\u0442 \u0432\u0441\u0435\u0445","\u043E\u043D\u0438","\u0431\u0443\u043A\u0432\u0435\u043D\u043D\u044B\u0445","\u0434\u043E\u043C\u0430\u0445","\u043D\u0430 \u0431\u0435\u0440\u0435\u0433\u0443","\u0441\u0435\u043C\u0430\u043D\u0442\u0438\u043A\u0430","\u0431\u043E\u043B\u044C\u0448\u043E\u0433\u043E","\u044F\u0437\u044B\u043A\u043E\u0432\u043E\u0433\u043E","\u043E\u043A\u0435\u0430\u043D\u0430","\u043C\u0430\u043B\u0435\u043D\u044C\u043A\u0438\u0439","\u0440\u0443\u0447\u0435\u0435\u043A","\u0434\u0430\u043B\u044C","\u0436\u0443\u0440\u0447\u0438\u0442","\u043F\u043E \u0432\u0441\u0435\u0439","\u043E\u0431\u0435\u0441\u043F\u0435\u0447\u0438\u0432\u0430\u0435\u0442","\u0435\u0435","\u0432\u0441\u0435\u043C\u0438","\u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u043C\u0438","\u043F\u0440\u0430\u0432\u0438\u043B\u0430\u043C\u0438","\u044D\u0442\u0430","\u043F\u0430\u0440\u0430\u0434\u0438\u0433\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0430\u044F","\u0441\u0442\u0440\u0430\u043D\u0430","\u043A\u043E\u0442\u043E\u0440\u043E\u0439","\u0436\u0430\u0440\u0435\u043D\u043D\u044B\u0435","\u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F","\u0437\u0430\u043B\u0435\u0442\u0430\u044E\u0442","\u043F\u0440\u044F\u043C\u043E","\u0440\u043E\u0442","\u0434\u0430\u0436\u0435","\u0432\u0441\u0435\u043C\u043E\u0433\u0443\u0449\u0430\u044F","\u043F\u0443\u043D\u043A\u0442\u0443\u0430\u0446\u0438\u044F","\u043D\u0435","\u0438\u043C\u0435\u0435\u0442","\u0432\u043B\u0430\u0441\u0442\u0438","\u043D\u0430\u0434","\u0440\u044B\u0431\u043D\u044B\u043C\u0438","\u0442\u0435\u043A\u0441\u0442\u0430\u043C\u0438","\u0432\u0435\u0434\u0443\u0449\u0438\u043C\u0438","\u0431\u0435\u0437\u043E\u0440\u0444\u043E\u0433\u0440\u0430\u0444\u0438\u0447\u043D\u044B\u0439","\u043E\u0431\u0440\u0430\u0437","\u0436\u0438\u0437\u043D\u0438","\u043E\u0434\u043D\u0430\u0436\u0434\u044B","\u043E\u0434\u043D\u0430","\u043C\u0430\u043B\u0435\u043D\u044C\u043A\u0430\u044F","\u0441\u0442\u0440\u043E\u0447\u043A\u0430","\u0440\u044B\u0431\u043D\u043E\u0433\u043E","\u0442\u0435\u043A\u0441\u0442\u0430","\u0438\u043C\u0435\u043D\u0438","lorem","ipsum","\u0440\u0435\u0448\u0438\u043B\u0430","\u0432\u044B\u0439\u0442\u0438","\u0431\u043E\u043B\u044C\u0448\u043E\u0439","\u043C\u0438\u0440","\u0433\u0440\u0430\u043C\u043C\u0430\u0442\u0438\u043A\u0438","\u0432\u0435\u043B\u0438\u043A\u0438\u0439","\u043E\u043A\u0441\u043C\u043E\u043A\u0441","\u043F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0436\u0434\u0430\u043B","\u043E","\u0437\u043B\u044B\u0445","\u0437\u0430\u043F\u044F\u0442\u044B\u0445","\u0434\u0438\u043A\u0438\u0445","\u0437\u043D\u0430\u043A\u0430\u0445","\u0432\u043E\u043F\u0440\u043E\u0441\u0430","\u043A\u043E\u0432\u0430\u0440\u043D\u044B\u0445","\u0442\u043E\u0447\u043A\u0430\u0445","\u0437\u0430\u043F\u044F\u0442\u043E\u0439","\u043D\u043E","\u0442\u0435\u043A\u0441\u0442","\u0434\u0430\u043B","\u0441\u0431\u0438\u0442\u044C","\u0441\u0435\u0431\u044F","\u0442\u043E\u043B\u043A\u0443","\u043E\u043D","\u0441\u043E\u0431\u0440\u0430\u043B","\u0441\u0435\u043C\u044C","\u0441\u0432\u043E\u0438\u0445","\u0437\u0430\u0433\u043B\u0430\u0432\u043D\u044B\u0445","\u0431\u0443\u043A\u0432","\u043F\u043E\u0434\u043F\u043E\u044F\u0441\u0430\u043B","\u0438\u043D\u0438\u0446\u0438\u0430\u043B","\u0437\u0430","\u043F\u043E\u044F\u0441","\u043F\u0443\u0441\u0442\u0438\u043B\u0441\u044F","\u0434\u043E\u0440\u043E\u0433\u0443","\u0432\u0437\u043E\u0431\u0440\u0430\u0432\u0448\u0438\u0441\u044C","\u043F\u0435\u0440\u0432\u0443\u044E","\u0432\u0435\u0440\u0448\u0438\u043D\u0443","\u043A\u0443\u0440\u0441\u0438\u0432\u043D\u044B\u0445","\u0433\u043E\u0440","\u0431\u0440\u043E\u0441\u0438\u043B","\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0439","\u0432\u0437\u0433\u043B\u044F\u0434","\u043D\u0430\u0437\u0430\u0434","\u0441\u0438\u043B\u0443\u044D\u0442","\u0441\u0432\u043E\u0435\u0433\u043E","\u0440\u043E\u0434\u043D\u043E\u0433\u043E","\u0433\u043E\u0440\u043E\u0434\u0430","\u0431\u0443\u043A\u0432\u043E\u0433\u0440\u0430\u0434","\u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A","\u0434\u0435\u0440\u0435\u0432\u043D\u0438","\u0430\u043B\u0444\u0430\u0432\u0438\u0442","\u043F\u043E\u0434\u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A","\u0441\u0432\u043E\u0435\u0433\u043E","\u043F\u0435\u0440\u0435\u0443\u043B\u043A\u0430","\u0433\u0440\u0443\u0441\u0442\u043D\u044B\u0439","\u0440\u0435\u0442\u043E\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0439","\u0432\u043E\u043F\u0440\u043E\u0441","\u0441\u043A\u0430\u0442\u0438\u043B\u0441\u044F","\u0435\u0433\u043E","\u0449\u0435\u043A\u0435","\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u043B","\u0441\u0432\u043E\u0439","\u043F\u0443\u0442\u044C","\u0434\u043E\u0440\u043E\u0433\u0435","\u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043B","\u0440\u0443\u043A\u043E\u043F\u0438\u0441\u044C","\u043E\u043D\u0430","\u043F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0434\u0438\u043B\u0430","\u043C\u043E\u0435\u0439","\u0432\u0441\u0435","\u043F\u0435\u0440\u0435\u043F\u0438\u0441\u044B\u0432\u0430\u0435\u0442\u0441\u044F","\u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E","\u0440\u0430\u0437","\u0435\u0434\u0438\u043D\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0435","\u0447\u0442\u043E","\u043C\u0435\u043D\u044F","\u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C","\u044D\u0442\u043E","\u043F\u0440\u0438\u0441\u0442\u0430\u0432\u043A\u0430","\u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0439\u0441\u044F","\u0442\u044B","\u043B\u0443\u0447\u0448\u0435","\u0441\u0432\u043E\u044E","\u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u0443\u044E","\u0441\u0442\u0440\u0430\u043D\u0443","\u043F\u043E\u0441\u043B\u0443\u0448\u0430\u0432\u0448\u0438\u0441\u044C","\u0440\u0443\u043A\u043E\u043F\u0438\u0441\u0438","\u043D\u0430\u0448","\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u043B","\u0441\u0432\u043E\u0439","\u043F\u0443\u0442\u044C","\u0432\u0441\u043A\u043E\u0440\u0435","\u0435\u043C\u0443","\u043F\u043E\u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043B\u0441\u044F","\u043A\u043E\u0432\u0430\u0440\u043D\u044B\u0439","\u0441\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044C","\u0440\u0435\u043A\u043B\u0430\u043C\u043D\u044B\u0445","\u0442\u0435\u043A\u0441\u0442\u043E\u0432","\u043D\u0430\u043F\u043E\u0438\u0432\u0448\u0438\u0439","\u044F\u0437\u044B\u043A\u043E\u043C","\u0440\u0435\u0447\u044C\u044E","\u0437\u0430\u043C\u0430\u043D\u0438\u0432\u0448\u0438\u0439","\u0441\u0432\u043E\u0435","\u0430\u0433\u0435\u043D\u0442\u0441\u0442\u0432\u043E","\u043A\u043E\u0442\u043E\u0440\u043E\u0435","\u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043B\u043E","\u0441\u043D\u043E\u0432\u0430","\u0441\u043D\u043E\u0432\u0430","\u0441\u0432\u043E\u0438\u0445","\u043F\u0440\u043E\u0435\u043A\u0442\u0430\u0445","\u0435\u0441\u043B\u0438","\u043F\u0435\u0440\u0435\u043F\u0438\u0441\u0430\u043B\u0438","\u0442\u043E","\u0436\u0438\u0432\u0435\u0442","\u0442\u0430\u043C","\u0434\u043E","\u0441\u0438\u0445","\u043F\u043E\u0440"]},QT={common:["mujer","uno","dolor","m\xE1s","de","poder","mismo","si"],words:["ejercicio","preferencia","perspicacia","laboral","pa\xF1o","suntuoso","molde","namibia","planeador","mirar","dem\xE1s","oficinista","excepci\xF3n","odio","consecuencia","casi","auto","chicharra","velo","elixir","ataque","no","odio","temporal","cu\xF3rum","dign\xEDsimo","facilismo","letra","nihilista","expedici\xF3n","alma","alveolar","aparte","le\xF3n","animal","como","paria","belleza","modo","natividad","justo","ataque","s\xE9quito","pillo","sed","ex","y","voluminoso","temporalidad","verdades","racional","asunci\xF3n","incidente","marejada","placenta","amanecer","fuga","previsor","presentaci\xF3n","lejos","necesariamente","sospechoso","adiposidad","quind\xEDo","p\xF3cima","voluble","d\xE9bito","sinti\xF3","accesorio","falda","sapiencia","volutas","queso","permacultura","laudo","soluciones","entero","pan","litro","tonelada","culpa","libertario","mosca","dictado","reincidente","nascimiento","dolor","escolar","impedimento","m\xEDnima","mayores","repugnante","dulce","obcecado","monta\xF1a","enigma","total","delet\xE9reo","d\xE9cima","c\xE1bala","fotograf\xEDa","dolores","molesto","olvido","paciencia","resiliencia","voluntad","molestias","magn\xEDfico","distinci\xF3n","ovni","marejada","cerro","torre","y","abogada","manantial","corporal","agua","crep\xFAsculo","ataque","desierto","laboriosamente","angustia","afortunado","alma","encefalograma","materialidad","cosas","o","renuncia","error","menos","conejo","abad\xEDa","analfabeto","remo","fugacidad","oficio","en","alm\xE1cigo","vos","pan","represi\xF3n","n\xFAmeros","triste","refugiado","trote","inventor","corchea","repelente","magma","recusado","patr\xF3n","expl\xEDcito","paloma","s\xEDndrome","inmune","autoinmune","comodidad","ley","vietnamita","demonio","tasmania","repeler","ap\xE9ndice","arquitecto","columna","yugo","computador","mula","a","prop\xF3sito","fantas\xEDa","alias","rayo","tenedor","deleznable","ventana","cara","anemia","corrupto"]},u0={ru:ST,sp:QT,latin:xT},wT=/^lorem([a-z]*)(\d*)(-\d*)?$/i;fb=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,db=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,XT=t=>/^[a-z]\-/i.test(t),MT=t=>/^[a-z]/i.test(t);il=[{type:"Field",index:0,name:""}];(function(t){t[t.Start=91]="Start",t[t.End=93]="End",t[t.Underscore=95]="Underscore",t[t.Dash=45]="Dash"})(Ii||(Ii={}));NT=/^<([\w\-:]+)[\s>]/,FT=new Set(["for","while","of","async","await","const","let","var","continue","break","debugger","do","export","import","in","instanceof","new","return","switch","this","throw","try","catch","typeof","void","with","yield"]);uC={html:kb,haml:aC,slim:cC,pug:hC};(function(t){t.Raw="Raw",t.Property="Property"})(Nt||(Nt={}));OC=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,mC={value:!0};Fo={Global:"@@global",Section:"@@section",Property:"@@property",Value:"@@value"};w0="lg";jC={a:"a[href]","a:blank":"a[href='http://${0}' target='_blank' rel='noopener noreferrer']","a:link":"a[href='http://${0}']","a:mail":"a[href='mailto:${0}']","a:tel":"a[href='tel:+${0}']",abbr:"abbr[title]","acr|acronym":"acronym[title]",base:"base[href]/",basefont:"basefont/",br:"br/",frame:"frame/",hr:"hr/",bdo:"bdo[dir]","bdo:r":"bdo[dir=rtl]","bdo:l":"bdo[dir=ltr]",col:"col/",link:"link[rel=stylesheet href]/","link:css":"link[href='${1:style}.css']","link:print":"link[href='${1:print}.css' media=print]","link:favicon":"link[rel='shortcut icon' type=image/x-icon href='${1:favicon.ico}']","link:mf|link:manifest":"link[rel='manifest' href='${1:manifest.json}']","link:touch":"link[rel=apple-touch-icon href='${1:favicon.png}']","link:rss":"link[rel=alternate type=application/rss+xml title=RSS href='${1:rss.xml}']","link:atom":"link[rel=alternate type=application/atom+xml title=Atom href='${1:atom.xml}']","link:im|link:import":"link[rel=import href='${1:component}.html']",meta:"meta/","meta:utf":"meta[http-equiv=Content-Type content='text/html;charset=UTF-8']","meta:vp":"meta[name=viewport content='width=${1:device-width}, initial-scale=${2:1.0}']","meta:compat":"meta[http-equiv=X-UA-Compatible content='${1:IE=7}']","meta:edge":"meta:compat[content='${1:ie=edge}']","meta:redirect":"meta[http-equiv=refresh content='0; url=${1:http://example.com}']","meta:refresh":"meta[http-equiv=refresh content='${1:5}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]","script:module":"script[type=module src]",img:"img[src alt]/","img:s|img:srcset":"img[srcset src alt]","img:z|img:sizes":"img[sizes srcset src alt]",picture:"picture","src|source":"source/","src:sc|source:src":"source[src type]","src:s|source:srcset":"source[srcset]","src:t|source:type":"source[srcset type='${1:image/}']","src:z|source:sizes":"source[sizes srcset]","src:m|source:media":"source[media='(${1:min-width: })' srcset]","src:mt|source:media:type":"source:media[type='${2:image/}']","src:mz|source:media:sizes":"source:media[sizes srcset]","src:zt|source:sizes:type":"source[sizes srcset type='${1:image/}']",iframe:"iframe[src frameborder=0]",embed:"embed[src type]/",object:"object[data type]",param:"param[name value]/",map:"map[name]",area:"area[shape coords href alt]/","area:d":"area[shape=default]","area:c":"area[shape=circle]","area:r":"area[shape=rect]","area:p":"area[shape=poly]",form:"form[action]","form:get":"form[method=get]","form:post":"form[method=post]",label:"label[for]",input:"input[type=${1:text}]/",inp:"input[name=${1} id=${1}]","input:h|input:hidden":"input[type=hidden name]","input:t|input:text":"inp[type=text]","input:search":"inp[type=search]","input:email":"inp[type=email]","input:url":"inp[type=url]","input:p|input:password":"inp[type=password]","input:datetime":"inp[type=datetime]","input:date":"inp[type=date]","input:datetime-local":"inp[type=datetime-local]","input:month":"inp[type=month]","input:week":"inp[type=week]","input:time":"inp[type=time]","input:tel":"inp[type=tel]","input:number":"inp[type=number]","input:color":"inp[type=color]","input:c|input:checkbox":"inp[type=checkbox]","input:r|input:radio":"inp[type=radio]","input:range":"inp[type=range]","input:f|input:file":"inp[type=file]","input:s|input:submit":"input[type=submit value]","input:i|input:image":"input[type=image src alt]","input:b|input:btn|input:button":"input[type=button value]","input:reset":"input:button[type=reset]",isindex:"isindex/",select:"select[name=${1} id=${1}]","select:d|select:disabled":"select[disabled.]","opt|option":"option[value]",textarea:"textarea[name=${1} id=${1}]","tarea:c|textarea:cols":"textarea[name=${1} id=${1} cols=${2:30}]","tarea:r|textarea:rows":"textarea[name=${1} id=${1} rows=${3:10}]","tarea:cr|textarea:cols:rows":"textarea[name=${1} id=${1} cols=${2:30} rows=${3:10}]",marquee:"marquee[behavior direction]","menu:c|menu:context":"menu[type=context]","menu:t|menu:toolbar":"menu[type=toolbar]",video:"video[src]",audio:"audio[src]","html:xml":"html[xmlns=http://www.w3.org/1999/xhtml]",keygen:"keygen/",command:"command/","btn:s|button:s|button:submit":"button[type=submit]","btn:r|button:r|button:reset":"button[type=reset]","btn:b|button:b|button:button":"button[type=button]","btn:d|button:d|button:disabled":"button[disabled.]","fst:d|fset:d|fieldset:d|fieldset:disabled":"fieldset[disabled.]",bq:"blockquote",fig:"figure",figc:"figcaption",pic:"picture",ifr:"iframe",emb:"embed",obj:"object",cap:"caption",colg:"colgroup",fst:"fieldset",btn:"button",optg:"optgroup",tarea:"textarea",leg:"legend",sect:"section",art:"article",hdr:"header",ftr:"footer",adr:"address",dlg:"dialog",str:"strong",prog:"progress",mn:"main",tem:"template",fset:"fieldset",datal:"datalist",kg:"keygen",out:"output",det:"details",sum:"summary",cmd:"command",data:"data[value]",meter:"meter[value]",time:"time[datetime]","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{<!DOCTYPE html>}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{<!-- ${0} -->}","cc:ie":"{<!--[if IE]>${0}<![endif]-->}","cc:noie":"{<!--[if !IE]><!-->${0}<!--<![endif]-->}"},IC={"@f":`@font-face {
|
||
font-family: \${1};
|
||
src: url(\${2});
|
||
}`,"@ff":"@font-face {\n font-family: '${1:FontName}';\n src: url('${2:FileName}.eot');\n src: url('${2:FileName}.eot?#iefix') format('embedded-opentype'),\n url('${2:FileName}.woff') format('woff'),\n url('${2:FileName}.ttf') format('truetype'),\n url('${2:FileName}.svg#${1:FontName}') format('svg');\n font-style: ${3:normal};\n font-weight: ${4:normal};\n}","@i|@import":"@import url(${0});","@kf":"@keyframes ${1:identifier} {\n ${2}\n}","@m|@media":"@media ${1:screen} {\n ${0}\n}",ac:"align-content:start|end|flex-start|flex-end|center|space-between|space-around|stretch|space-evenly",ai:"align-items:start|end|flex-start|flex-end|center|baseline|stretch",anim:"animation:${1:name} ${2:duration} ${3:timing-function} ${4:delay} ${5:iteration-count} ${6:direction} ${7:fill-mode}",animdel:"animation-delay:time",animdir:"animation-direction:normal|reverse|alternate|alternate-reverse",animdur:"animation-duration:${1:0}s",animfm:"animation-fill-mode:both|forwards|backwards",animic:"animation-iteration-count:1|infinite",animn:"animation-name",animps:"animation-play-state:running|paused",animtf:"animation-timing-function:linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(${1:0.1}, ${2:0.7}, ${3:1.0}, ${3:0.1})",ap:"appearance:none",as:"align-self:start|end|auto|flex-start|flex-end|center|baseline|stretch",b:"bottom",bd:"border:${1:1px} ${2:solid} ${3:#000}",bdb:"border-bottom:${1:1px} ${2:solid} ${3:#000}",bdbc:"border-bottom-color:${1:#000}",bdbi:"border-bottom-image:url(${0})",bdbk:"border-break:close",bdbli:"border-bottom-left-image:url(${0})|continue",bdblrs:"border-bottom-left-radius",bdbri:"border-bottom-right-image:url(${0})|continue",bdbrrs:"border-bottom-right-radius",bdbs:"border-bottom-style",bdbw:"border-bottom-width",bdc:"border-color:${1:#000}",bdci:"border-corner-image:url(${0})|continue",bdcl:"border-collapse:collapse|separate",bdf:"border-fit:repeat|clip|scale|stretch|overwrite|overflow|space",bdi:"border-image:url(${0})",bdl:"border-left:${1:1px} ${2:solid} ${3:#000}",bdlc:"border-left-color:${1:#000}",bdlen:"border-length",bdli:"border-left-image:url(${0})",bdls:"border-left-style",bdlw:"border-left-width",bdr:"border-right:${1:1px} ${2:solid} ${3:#000}",bdrc:"border-right-color:${1:#000}",bdri:"border-right-image:url(${0})",bdrs:"border-radius",bdrst:"border-right-style",bdrw:"border-right-width",bds:"border-style:none|hidden|dotted|dashed|solid|double|dot-dash|dot-dot-dash|wave|groove|ridge|inset|outset",bdsp:"border-spacing",bdt:"border-top:${1:1px} ${2:solid} ${3:#000}",bdtc:"border-top-color:${1:#000}",bdti:"border-top-image:url(${0})",bdtli:"border-top-left-image:url(${0})|continue",bdtlrs:"border-top-left-radius",bdtri:"border-top-right-image:url(${0})|continue",bdtrrs:"border-top-right-radius",bdts:"border-top-style",bdtw:"border-top-width",bdw:"border-width",bbs:"border-block-start",bbe:"border-block-end",bis:"border-inline-start",bie:"border-inline-end",bfv:"backface-visibility:hidden|visible",bg:"background:${1:#000}","bg:n":"background: none",bga:"background-attachment:fixed|scroll",bgbk:"background-break:bounding-box|each-box|continuous",bgc:"background-color:${1:#fff}",bgcp:"background-clip:padding-box|border-box|content-box|no-clip",bgi:"background-image:url(${0})",bgo:"background-origin:padding-box|border-box|content-box",bgp:"background-position:${1:0} ${2:0}",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat:no-repeat|repeat-x|repeat-y|space|round",bgsz:"background-size:contain|cover",bs:"block-size",bxsh:"box-shadow:${1:inset }${2:hoff} ${3:voff} ${4:blur} ${5:#000}|none",bxsz:"box-sizing:border-box|content-box|border-box",c:"color:${1:#000}",cg:"column-gap",cr:"color:rgb(${1:0}, ${2:0}, ${3:0})",cra:"color:rgba(${1:0}, ${2:0}, ${3:0}, ${4:.5})",cl:"clear:both|left|right|none",cm:"/* ${0} */",cnt:"content:'${0}'|normal|open-quote|no-open-quote|close-quote|no-close-quote|attr(${0})|counter(${0})|counters(${0})",coi:"counter-increment",colm:"columns",colmc:"column-count",colmf:"column-fill",colmg:"column-gap",colmr:"column-rule",colmrc:"column-rule-color",colmrs:"column-rule-style",colmrw:"column-rule-width",colms:"column-span",colmw:"column-width",cor:"counter-reset",cp:"clip:auto|rect(${1:top} ${2:right} ${3:bottom} ${4:left})",cps:"caption-side:top|bottom",cur:"cursor:pointer|auto|default|crosshair|hand|help|move|pointer|text",d:"display:block|none|flex|inline-flex|inline|inline-block|grid|inline-grid|subgrid|list-item|run-in|contents|table|inline-table|table-caption|table-column|table-column-group|table-header-group|table-footer-group|table-row|table-row-group|table-cell|ruby|ruby-base|ruby-base-group|ruby-text|ruby-text-group",ec:"empty-cells:show|hide",f:"font:${1:1em} ${2:sans-serif}",fd:"font-display:auto|block|swap|fallback|optional",fef:"font-effect:none|engrave|emboss|outline",fem:"font-emphasize",femp:"font-emphasize-position:before|after",fems:"font-emphasize-style:none|accent|dot|circle|disc",ff:"font-family:serif|sans-serif|cursive|fantasy|monospace",fft:'font-family:"Times New Roman", Times, Baskerville, Georgia, serif',ffa:'font-family:Arial, "Helvetica Neue", Helvetica, sans-serif',ffv:"font-family:Verdana, Geneva, sans-serif",fl:"float:left|right|none",fs:"font-style:italic|normal|oblique",fsm:"font-smoothing:antialiased|subpixel-antialiased|none",fst:"font-stretch:normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",fv:"font-variant:normal|small-caps",fvs:"font-variation-settings:normal|inherit|initial|unset",fw:"font-weight:normal|bold|bolder|lighter",fx:"flex",fxb:"flex-basis:fill|max-content|min-content|fit-content|content",fxd:"flex-direction:row|row-reverse|column|column-reverse",fxf:"flex-flow",fxg:"flex-grow",fxsh:"flex-shrink",fxw:"flex-wrap:nowrap|wrap|wrap-reverse",fsz:"font-size",fsza:"font-size-adjust",g:"gap",gtc:"grid-template-columns:repeat(${0})|minmax()",gtr:"grid-template-rows:repeat(${0})|minmax()",gta:"grid-template-areas",gt:"grid-template",gg:"grid-gap",gcg:"grid-column-gap",grg:"grid-row-gap",gac:"grid-auto-columns:auto|minmax()",gar:"grid-auto-rows:auto|minmax()",gaf:"grid-auto-flow:row|column|dense|inherit|initial|unset",gd:"grid",gc:"grid-column",gcs:"grid-column-start",gce:"grid-column-end",gr:"grid-row",grs:"grid-row-start",gre:"grid-row-end",ga:"grid-area",h:"height",is:"inline-size",jc:"justify-content:start|end|stretch|flex-start|flex-end|center|space-between|space-around|space-evenly",ji:"justify-items:start|end|center|stretch",js:"justify-self:start|end|center|stretch",l:"left",lg:"background-image:linear-gradient(${1})",lh:"line-height",lis:"list-style",lisi:"list-style-image",lisp:"list-style-position:inside|outside",list:"list-style-type:disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman",lts:"letter-spacing:normal",m:"margin",mah:"max-height",mar:"max-resolution",maw:"max-width",mb:"margin-bottom",mih:"min-height",mir:"min-resolution",miw:"min-width",ml:"margin-left",mr:"margin-right",mt:"margin-top",mbs:"margin-block-start",mbe:"margin-block-end",mis:"margin-inline-start",mie:"margin-inline-end",ol:"outline",olc:"outline-color:${1:#000}|invert",olo:"outline-offset",ols:"outline-style:none|dotted|dashed|solid|double|groove|ridge|inset|outset",olw:"outline-width:thin|medium|thick","op|opa":"opacity",ord:"order",ori:"orientation:landscape|portrait",orp:"orphans",ov:"overflow:hidden|visible|hidden|scroll|auto",ovs:"overflow-style:scrollbar|auto|scrollbar|panner|move|marquee",ovx:"overflow-x:hidden|visible|hidden|scroll|auto",ovy:"overflow-y:hidden|visible|hidden|scroll|auto",p:"padding",pb:"padding-bottom",pgba:"page-break-after:auto|always|left|right",pgbb:"page-break-before:auto|always|left|right",pgbi:"page-break-inside:auto|avoid",pl:"padding-left",pos:"position:relative|absolute|relative|fixed|static",pr:"padding-right",pt:"padding-top",pbs:"padding-block-start",pbe:"padding-block-end",pis:"padding-inline-start",pie:"padding-inline-end",spbs:"scroll-padding-block-start",spbe:"scroll-padding-block-end",spis:"scroll-padding-inline-start",spie:"scroll-padding-inline-end",q:"quotes",qen:"quotes:'\\201C' '\\201D' '\\2018' '\\2019'",qru:"quotes:'\\00AB' '\\00BB' '\\201E' '\\201C'",r:"right",rg:"row-gap",rsz:"resize:none|both|horizontal|vertical",t:"top",ta:"text-align:left|center|right|justify",tal:"text-align-last:left|center|right",tbl:"table-layout:fixed",td:"text-decoration:none|underline|overline|line-through",te:"text-emphasis:none|accent|dot|circle|disc|before|after",th:"text-height:auto|font-size|text-size|max-size",ti:"text-indent",tj:"text-justify:auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|tibetan",to:"text-outline:${1:0} ${2:0} ${3:#000}",tov:"text-overflow:ellipsis|clip",tr:"text-replace",trf:"transform:${1}|skewX(${1:angle})|skewY(${1:angle})|scale(${1:x}, ${2:y})|scaleX(${1:x})|scaleY(${1:y})|scaleZ(${1:z})|scale3d(${1:x}, ${2:y}, ${3:z})|rotate(${1:angle})|rotateX(${1:angle})|rotateY(${1:angle})|rotateZ(${1:angle})|translate(${1:x}, ${2:y})|translateX(${1:x})|translateY(${1:y})|translateZ(${1:z})|translate3d(${1:tx}, ${2:ty}, ${3:tz})",trfo:"transform-origin",trfs:"transform-style:preserve-3d",trs:"transition:${1:prop} ${2:time}",trsde:"transition-delay:${1:time}",trsdu:"transition-duration:${1:time}",trsp:"transition-property:${1:prop}",trstf:"transition-timing-function:${1:fn}",tsh:"text-shadow:${1:hoff} ${2:voff} ${3:blur} ${4:#000}",tt:"text-transform:uppercase|lowercase|capitalize|none",tw:"text-wrap:none|normal|unrestricted|suppress",us:"user-select:none",v:"visibility:hidden|visible|collapse",va:"vertical-align:top|super|text-top|middle|baseline|bottom|text-bottom|sub","w|wid":"width",whs:"white-space:nowrap|pre|pre-wrap|pre-line|normal",whsc:"white-space-collapse:normal|keep-all|loose|break-strict|break-all",wido:"widows",wm:"writing-mode:lr-tb|lr-tb|lr-bt|rl-tb|rl-bt|tb-rl|tb-lr|bt-lr|bt-rl",wob:"word-break:normal|keep-all|break-all",wos:"word-spacing",wow:"word-wrap:none|unrestricted|suppress|break-word|normal",z:"z-index",zom:"zoom:1"},NC={"tm|tmatch":"xsl:template[match mode]","tn|tname":"xsl:template[name]",call:"xsl:call-template[name]",ap:"xsl:apply-templates[select mode]",api:"xsl:apply-imports",imp:"xsl:import[href]",inc:"xsl:include[href]",ch:"xsl:choose","wh|xsl:when":"xsl:when[test]",ot:"xsl:otherwise",if:"xsl:if[test]",par:"xsl:param[name]",pare:"xsl:param[name select]",var:"xsl:variable[name]",vare:"xsl:variable[name select]",wp:"xsl:with-param[name select]",key:"xsl:key[name match use]",elem:"xsl:element[name]",attr:"xsl:attribute[name]",attrs:"xsl:attribute-set[name]",cp:"xsl:copy[select]",co:"xsl:copy-of[select]",val:"xsl:value-of[select]","for|each":"xsl:for-each[select]",tex:"xsl:text",com:"xsl:comment",msg:"xsl:message[terminate=no]",fall:"xsl:fallback",num:"xsl:number[value]",nam:"namespace-alias[stylesheet-prefix result-prefix]",pres:"xsl:preserve-space[elements]",strip:"xsl:strip-space[elements]",proc:"xsl:processing-instruction[name]",sort:"xsl:sort[select order]",choose:"xsl:choose>xsl:when+xsl:otherwise",xsl:`!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{
|
||
|}`,"!!!":'{<?xml version="1.0" encoding="UTF-8"?>}'},FC={"!!!":"{doctype html}"},GC={lang:"en",locale:"en-US",charset:"UTF-8",indentation:" ",newline:`
|
||
`},UC={markup:"html",stylesheet:"css"},HC={inlineElements:["a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","iframe","img","input","ins","kbd","label","map","object","q","s","samp","select","small","span","strike","strong","sub","sup","textarea","tt","u","var"],"output.indent":" ","output.baseIndent":"","output.newline":`
|
||
`,"output.tagCase":"","output.attributeCase":"","output.attributeQuotes":"double","output.format":!0,"output.formatLeafNode":!1,"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":3,"output.compactBoolean":!1,"output.booleanAttributes":["contenteditable","seamless","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","novalidate","readonly","required","reversed","selected","typemustmatch"],"output.reverseAttributes":!1,"output.selfClosingStyle":"html","output.field":(t,e)=>e,"output.text":t=>t,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":`
|
||
<!-- /[#ID][.CLASS] -->`,"bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":!1,"stylesheet.keywords":["auto","inherit","unset","none"],"stylesheet.unitless":["z-index","line-height","opacity","font-weight","zoom","flex","flex-grow","flex-shrink"],"stylesheet.shortHex":!0,"stylesheet.between":": ","stylesheet.after":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.json":!1,"stylesheet.jsonDoubleQuotes":!1,"stylesheet.fuzzySearchMinScore":0,"stylesheet.strictMatch":!1},zb={type:"markup",syntax:"html",variables:GC,snippets:{},options:HC},v0={markup:{snippets:_o(jC)},xhtml:{options:{"output.selfClosingStyle":"xhtml"}},xml:{options:{"output.selfClosingStyle":"xml"}},xsl:{snippets:_o(NC),options:{"output.selfClosingStyle":"xml"}},jsx:{options:{"jsx.enabled":!0,"markup.attributes":{class:"className","class*":"styleName",for:"htmlFor"},"markup.valuePrefix":{"class*":"styles"}}},vue:{options:{"markup.attributes":{"class*":":class"}}},svelte:{options:{"jsx.enabled":!0}},pug:{snippets:_o(FC)},stylesheet:{snippets:_o(IC)},sass:{options:{"stylesheet.after":""}},stylus:{options:{"stylesheet.between":" ","stylesheet.after":""}}};(function(t){t[t.SingleQuote=39]="SingleQuote",t[t.DoubleQuote=34]="DoubleQuote",t[t.Escape=92]="Escape"})(qr||(qr={}));(function(t){t[t.SquareL=91]="SquareL",t[t.SquareR=93]="SquareR",t[t.RoundL=40]="RoundL",t[t.RoundR=41]="RoundR",t[t.CurlyL=123]="CurlyL",t[t.CurlyR=125]="CurlyR"})(ee||(ee={}));Vb={[ee.SquareL]:ee.SquareR,[ee.RoundL]:ee.RoundR,[ee.CurlyL]:ee.CurlyR};(function(t){t[t.Tab=9]="Tab",t[t.Space=32]="Space",t[t.Dash=45]="Dash",t[t.Slash=47]="Slash",t[t.Colon=58]="Colon",t[t.Equals=61]="Equals",t[t.AngleLeft=60]="AngleLeft",t[t.AngleRight=62]="AngleRight"})(Ae||(Ae={}));Bb=t=>t.charCodeAt(0),aA="#.*:$-_!@%^+>/".split("").map(Bb),cA={type:"markup",lookAhead:!0,prefix:""};P0=String.fromCodePoint(65520),yA=String.fromCodePoint(65521);C0={OpenTag:"open",CloseTag:"close",SelfClosingTag:"selfClose"};Y=(t=>(t.html="html",t.xml="xml",t.xsl="xsl",t.jsx="jsx",t.tsx="tsx",t.vue="vue",t.haml="haml",t.jade="jade",t.pug="pug",t.slim="slim",t.css="css",t.scss="scss",t.less="less",t.sass="sass",t.sss="sss",t.stylus="stylus",t.postcss="postcss",t))(Y||{});Ub={};XA={syntax:Y.html,mark:!0,preview:{},previewEnabled:!0,autoRenameTags:!0,markTagPairs:!0,previewOpenTag:!1,attributeQuotes:"double",markupStyle:"html",comments:!1,commentsTemplate:"<!-- /[#ID][.CLASS] -->",bem:!1,completionBoost:99},rl=k.define({combine(t){RA();let e=ot({},XA),{preview:i}=e;for(let n of t)Object.assign(e,n),n.preview&&(e.preview=ot(ot({},i),n.preview));return e}});Hb=[Y.html,Y.vue],xu=[Y.jsx,Y.tsx],Kb=[Y.xml,Y.xsl,...xu],Jb=[Y.css,Y.scss,Y.less];[Y.haml,Y.jade,Y.pug,Y.slim,...Hb,...Kb,...xu];MA=[Y.sass,Y.sss,Y.stylus,Y.postcss,...Jb];DA="data:image/svg+xml,%3csvg%20height='393'%20viewBox='0%200%20393%20393'%20width='393'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3clinearGradient%20id='a'%20x1='98.60869%25'%20x2='50%25'%20y1='50%25'%20y2='50%25'%3e%3cstop%20offset='0'%20stop-color='%23cefbad'/%3e%3cstop%20offset='.836972535'%20stop-color='%23cefbad'/%3e%3cstop%20offset='1'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3cpath%20id='b'%20d='m116%2048%20105%2063v34.985l-75-44.999289v67.667289l49.5%2029.347-49.5%2029.346v67.668289l75-45.000289v34.986l-105%2063zm145%2087%20105%2063-105%2063v-34.986l46.690481-28.014-46.690481-28.014z'/%3e%3c/defs%3e%3cg%20fill='none'%20fill-rule='evenodd'%20transform='matrix(.70710678%20-.70710678%20.70710678%20.70710678%20-81.392965%20196.5)'%3e%3ccircle%20cx='196.5'%20cy='196.5'%20fill='%2325272b'%20r='196.5'/%3e%3cuse%20fill='%2392c131'%20xlink:href='%23b'/%3e%3cuse%20fill='url(%23a)'%20xlink:href='%23b'/%3e%3c/g%3e%3c/svg%3e",LA=t=>{let e=t.state.field(Ft);return e?.type==="abbreviation"&&e.preview&&ct(e.range,t.pos)?{from:e.range.from,to:e.range.to,filter:!1,update(i,n,r,s){let o=s.state.field(Ft);return!o||o.type==="error"||!ct(o.range,s.pos)?null:yi(ot({},i),{from:o.range.from,to:o.range.to,options:M0(s.state,o)})},options:M0(t.state,e)}:null},qA=Zt.data.of({autocomplete:LA}),su="<",VA=T.mark({class:"emmet-tracker"}),vu=R.define(),_A=R.define(),Ft=F.define({create:()=>null,update(t,e){if(e.annotation(Tn))return null;for(let n of e.effects){if(n.is(vu))return null;if(n.is(_A)){let r=e.newSelection.main,s=ku(e.state,r.from);if(s)return $u(e.state,r,{forced:!0,config:s})}}return e.docChanged?eZ(e.state,t,e):t}}),BA=F.define({create:Z0,update(t,e){return!e.docChanged&&!e.selection?e.state.field(Ft)?t:null:Z0(e.state,t)},provide:t=>ii.from(t)});YA=J.fromClass(class{constructor(){Hh(this,"decorations"),this.decorations=T.none}update(t){let{state:e}=t,i=e.field(Ft),n=[];if(i&&!i.inactive){let{range:r}=i;SA(r)||n.push(VA.range(r.from,r.to)),this.decorations=T.set(n,!0)}else this.decorations=T.none}},{decorations:t=>t.decorations});WA=t=>{let{state:e}=t,i=lm(e),n=e.field(Ft,!1);if(i&&n)if(i.type==="emmet"){let{autocompleteTab:r}=Vr(e);if(!r)return!1;if(Array.isArray(r)){let{type:s,syntax:o}=n.config;if(!r.includes(s)&&!r.includes(o))return!1}return Uc(t),!0}else return!1;return n&&!n.inactive&&ct(n.range,Wb(e))?(sy(t,n),!0):!1},jA=({state:t,dispatch:e})=>t.field(Ft,!1)?(e({effects:vu.of(null)}),!0):!1,IA=w.baseTheme({".emmet-tracker":{textDecoration:"underline 1px green"},".emmet-preview":{fontSize:"0.9em"},".emmet-preview_error":{color:"red"},".cm-completionIcon-emmet::after":{content:'" "',background:`url("${DA}") center/contain no-repeat`,display:"inline-block",width:"11px",height:"11px",verticalAlign:"middle"}});ay=({state:t,dispatch:e})=>{let i=t.selection.main,n=t.doc.lineAt(i.anchor),r=ZA(t,i.anchor),s=AA(n.text,i.anchor-n.from,Qu(r.syntax));if(s){let o=n.from+s.start,l=nl(t,s.abbreviation,ku(t,o)||r);return ko(l)({state:t,dispatch:e},{label:"expand"},o,n.from+s.end),!0}return!1},k2=sZ("null",0);Yo=R.define(),E0=F.define({create:()=>null,update(t,e){for(let i of e.effects)i.is(Yo)&&(t=i.value);return t}}),$2=w.baseTheme({".emmet-wrap-with-abbreviation":{position:"absolute",top:0,zIndex:2,width:"100%"},".emmet-wrap-with-abbreviation__content":{background:"#fff",margin:"0 auto",padding:"5px",boxSizing:"border-box",width:"100%",maxWidth:"30em",borderBottomLeftRadius:"5px",borderBottomRightRadius:"5px",boxShadow:"0 3px 10px rgba(0, 0, 0, 0.3)"},".emmet-wrap-with-abbreviation__content input":{width:"100%",boxSizing:"border-box"}}),P2=J.fromClass(class{constructor(){Hh(this,"widget",null),Hh(this,"input",null)}update(e){let{state:i,view:n}=e,r=i.field(E0);r?(this.widget||this.createInputPanel(n),this.updateAbbreviation(r.abbreviation)):this.widget&&(this.disposeWidget(),n.focus())}createInputPanel(e){let i=document.createElement("div");i.className="emmet-wrap-with-abbreviation";let n=document.createElement("div");n.className="emmet-wrap-with-abbreviation__content";let r=document.createElement("input");r.placeholder="Enter abbreviation";let s=!1,o=()=>{s&&(no(e),s=!1)};r.addEventListener("input",()=>{let l=e.state.field(E0);if(l){let a=r.value;o();let c=yi(ot({},l),{abbreviation:a});if(c.abbreviation){s=!0;let{from:h,to:u}=c.range,f=nl(e.state,c.abbreviation,c.options),{ranges:d,snippet:p}=QA(f,h),O=d[0];e.dispatch({effects:[Yo.of(c)],changes:[{from:h,to:u,insert:p}],selection:{head:O.from,anchor:O.to}})}else e.dispatch({effects:[Yo.of(c)]})}}),r.addEventListener("keydown",l=>{(l.key==="Escape"||l.key==="Enter")&&(l.key==="Escape"&&o(),l.preventDefault(),e.dispatch({effects:[Yo.of(null)]}))}),n.append(r),i.append(n),e.dom.append(i),this.widget=i,this.input=r,r.focus()}updateAbbreviation(e){this.input&&this.input.value!==e&&(this.input.value=e)}disposeWidget(){this.widget&&(this.widget.remove(),this.widget=this.input=null)}})});var lZ=hy(()=>{wm();_e();Lh();qg();Ke();Jg();cy();sh();mt();var oZ=Om(t=>{let e=[];return _(t.state).iterate({enter:i=>{i.type.isError&&e.push({from:i.from,to:i.to,severity:"error",message:"Syntax error"})}}),e});window.MivoEditor={init:t=>{let{parent:e,initialValue:i,onChange:n,dark:r}=t,s=[Qm,zr(),Kg,oZ,Sm(),oy({syntax:"html"}),$t.of([{key:"Tab",run:ay}]),w.lineWrapping,w.updateListener.of(a=>{a.docChanged&&typeof n=="function"&&n(a.state.doc.toString())})];r&&s.push(Lg);let o=I.create({doc:i||"",extensions:s});return new w({state:o,parent:e})}}});lZ();})();
|