@nocobase/plugin-field-code 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +99 -0
- package/client.d.ts +2 -0
- package/client.js +1 -0
- package/dist/client/16aa9f37d369f6e2.js +10 -0
- package/dist/client/19f99a0c5a40ead1.js +10 -0
- package/dist/client/2c65737397b4cb3b.js +10 -0
- package/dist/client/493578e28b69643e.js +10 -0
- package/dist/client/74267117e0d4b7ff.js +10 -0
- package/dist/client/82436e2d7ff0bc4b.js +10 -0
- package/dist/client/876bd327755c8631.js +10 -0
- package/dist/client/CodeEditor.d.ts +16 -0
- package/dist/client/ccd3cdd796458d5f.js +10 -0
- package/dist/client/cdf9d585d88e9a91.js +10 -0
- package/dist/client/d171f7d76492119d.js +10 -0
- package/dist/client/d2978b5b98ec2eb9.js +10 -0
- package/dist/client/f5d42ec1ec8c6c8a.js +10 -0
- package/dist/client/index.d.ts +14 -0
- package/dist/client/index.js +10 -0
- package/dist/client/interface.d.ts +61 -0
- package/dist/client/lang.d.ts +9 -0
- package/dist/client/languages/index.d.ts +36 -0
- package/dist/common/constants.d.ts +9 -0
- package/dist/common/constants.js +36 -0
- package/dist/externalVersion.js +17 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +48 -0
- package/dist/locale/de-DE.json +7 -0
- package/dist/locale/en-US.json +7 -0
- package/dist/locale/es-ES.json +7 -0
- package/dist/locale/fr-FR.json +7 -0
- package/dist/locale/hu-HU.json +7 -0
- package/dist/locale/id-ID.json +7 -0
- package/dist/locale/it-IT.json +7 -0
- package/dist/locale/ja-JP.json +7 -0
- package/dist/locale/ko-KR.json +7 -0
- package/dist/locale/nl-NL.json +7 -0
- package/dist/locale/pt-BR.json +7 -0
- package/dist/locale/ru-RU.json +7 -0
- package/dist/locale/tr-TR.json +7 -0
- package/dist/locale/uk-UA.json +7 -0
- package/dist/locale/vi-VN.json +7 -0
- package/dist/locale/zh-CN.json +7 -0
- package/dist/locale/zh-TW.json +7 -0
- package/dist/server/index.d.ts +9 -0
- package/dist/server/index.js +42 -0
- package/dist/server/plugin.d.ts +19 -0
- package/dist/server/plugin.js +54 -0
- package/package.json +40 -0
- package/server.d.ts +2 -0
- package/server.js +1 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
"use strict";(self.webpackChunk_nocobase_plugin_field_code=self.webpackChunk_nocobase_plugin_field_code||[]).push([["558"],{220:function(t,e,n){n.r(e),n.d(e,{sublanguageProp:function(){return U},foldInside:function(){return tP},codeFolding:function(){return tH},flatIndent:function(){return tw},unfoldEffect:function(){return tN},HighlightStyle:function(){return t0},indentUnit:function(){return th},foldAll:function(){return tW},foldState:function(){return tO},bracketMatching:function(){return es},Language:function(){return j},languageDataProp:function(){return W},continuedIndent:function(){return tv},getIndentation:function(){return tc},matchBrackets:function(){return eh},foldable:function(){return tI},indentService:function(){return ta},indentString:function(){return tf},LanguageDescription:function(){return tl},foldEffect:function(){return t_},syntaxTree:function(){return H},syntaxTreeAvailable:function(){return Q},bracketMatchingHandle:function(){return eo},indentNodeProp:function(){return tg},highlightingFor:function(){return t3},indentRange:function(){return td},DocInput:function(){return K},forceParsing:function(){return q},StringStream:function(){return ef},bidiIsolates:function(){return eB},LRLanguage:function(){return V},getIndentUnit:function(){return tu},defineLanguageFacet:function(){return $},IndentContext:function(){return tp},syntaxParserRunning:function(){return X},foldCode:function(){return tJ},ensureSyntaxTree:function(){return G},ParseContext:function(){return Z},delimitedIndent:function(){return ty},foldKeymap:function(){return tj},StreamLanguage:function(){return ep},defaultHighlightStyle:function(){return t9},foldedRanges:function(){return tE},syntaxHighlighting:function(){return t5},toggleFold:function(){return tU},foldGutter:function(){return tY},indentOnInput:function(){return tS},unfoldAll:function(){return t$},unfoldCode:function(){return tR},language:function(){return ts},foldNodeProp:function(){return tA},foldService:function(){return tC},TreeIndentContext:function(){return tx},LanguageSupport:function(){return to}});let r=0;class i{constructor(t,e){this.from=t,this.to=e}}class s{constructor(t={}){this.id=r++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw Error("This node type doesn't define a deserialize function")}),this.combine=t.combine||null}add(t){if(this.perNode)throw RangeError("Can't add per-node props to node types");return"function"!=typeof t&&(t=a.match(t)),e=>{let n=t(e);return void 0===n?null:[this,n]}}}s.closedBy=new s({deserialize:t=>t.split(" ")}),s.openedBy=new s({deserialize:t=>t.split(" ")}),s.group=new s({deserialize:t=>t.split(" ")}),s.isolate=new s({deserialize:t=>{if(t&&"rtl"!=t&&"ltr"!=t&&"auto"!=t)throw RangeError("Invalid value for isolate: "+t);return t||"auto"}}),s.contextHash=new s({perNode:!0}),s.lookAhead=new s({perNode:!0}),s.mounted=new s({perNode:!0});class o{constructor(t,e,n,r=!1){this.tree=t,this.overlay=e,this.parser=n,this.bracketed=r}static get(t){return t&&t.props&&t.props[s.mounted.id]}}let l=Object.create(null);class a{constructor(t,e,n,r=0){this.name=t,this.props=e,this.id=n,this.flags=r}static define(t){let e=t.props&&t.props.length?Object.create(null):l,n=+!!t.top|2*!!t.skipped|4*!!t.error|8*(null==t.name),r=new a(t.name||"",e,t.id,n);if(t.props){for(let n of t.props)if(Array.isArray(n)||(n=n(r)),n){if(n[0].perNode)throw RangeError("Can't store a per-node prop on a node type");e[n[0].id]=n[1]}}return r}prop(t){return this.props[t.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(t){if("string"==typeof t){if(this.name==t)return!0;let e=this.prop(s.group);return!!e&&e.indexOf(t)>-1}return this.id==t}static match(t){let e=Object.create(null);for(let n in t)for(let r of n.split(" "))e[r]=t[n];return t=>{for(let n=t.prop(s.group),r=-1;r<(n?n.length:0);r++){let i=e[r<0?t.name:n[r]];if(i)return i}}}}a.none=new a("",Object.create(null),0,8);class h{constructor(t){this.types=t;for(let e=0;e<t.length;e++)if(t[e].id!=e)throw RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...t){let e=[];for(let n of this.types){let r=null;for(let e of t){let t=e(n);if(t){r||(r=Object.assign({},n.props));let e=t[1],i=t[0];i.combine&&i.id in r&&(e=i.combine(r[i.id],e)),r[i.id]=e}}e.push(r?new a(n.name,r,n.id,n.flags):n)}return new h(e)}}let u=new WeakMap,f=new WeakMap;(D=E||(E={}))[D.ExcludeBuffers=1]="ExcludeBuffers",D[D.IncludeAnonymous=2]="IncludeAnonymous",D[D.IgnoreMounts=4]="IgnoreMounts",D[D.IgnoreOverlays=8]="IgnoreOverlays",D[D.EnterBracketed=16]="EnterBracketed";class c{constructor(t,e,n,r,i){if(this.type=t,this.children=e,this.positions=n,this.length=r,this.props=null,i&&i.length)for(let[t,e]of(this.props=Object.create(null),i))this.props["number"==typeof t?t:t.id]=e}toString(){let t=o.get(this);if(t&&!t.overlay)return t.tree.toString();let e="";for(let t of this.children){let n=t.toString();n&&(e&&(e+=","),e+=n)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(e.length?"("+e+")":""):e}cursor(t=0){return new A(this.topNode,t)}cursorAt(t,e=0,n=0){let r=new A(u.get(this)||this.topNode);return r.moveTo(t,e),u.set(this,r._tree),r}get topNode(){return new x(this,0,0,null)}resolve(t,e=0){let n=m(u.get(this)||this.topNode,t,e,!1);return u.set(this,n),n}resolveInner(t,e=0){let n=m(f.get(this)||this.topNode,t,e,!0);return f.set(this,n),n}resolveStack(t,e=0){return function(t,e,n){let r=t.resolveInner(e,n),i=null;for(let t=r instanceof x?r:r.context.parent;t;t=t.parent)if(t.index<0){let s=t.parent;(i||(i=[r])).push(s.resolve(e,n)),t=s}else{let s=o.get(t.tree);if(s&&s.overlay&&s.overlay[0].from<=e&&s.overlay[s.overlay.length-1].to>=e){let o=new x(s.tree,s.overlay[0].from+t.from,-1,t);(i||(i=[r])).push(m(o,e,n,!1))}}return i?S(i):r}(this,t,e)}iterate(t){let{enter:e,leave:n,from:r=0,to:i=this.length}=t,s=t.mode||0,o=(s&E.IncludeAnonymous)>0;for(let t=this.cursor(s|E.IncludeAnonymous);;){let s=!1;if(t.from<=i&&t.to>=r&&(!o&&t.type.isAnonymous||!1!==e(t))){if(t.firstChild())continue;s=!0}for(;s&&n&&(o||!t.type.isAnonymous)&&n(t),!t.nextSibling();){if(!t.parent())return;s=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let e in this.props)t.push([+e,this.props[e]]);return t}balance(t={}){return this.children.length<=8?this:_(a.none,this.children,this.positions,0,this.children.length,0,this.length,(t,e,n)=>new c(this.type,t,e,n,this.propValues),t.makeTree||((t,e,n)=>new c(a.none,t,e,n)))}static build(t){return function(t){var e;let{buffer:n,nodeSet:r,maxBufferLength:i=1024,reused:o=[],minRepeatType:l=r.types.length}=t,a=Array.isArray(n)?new d(n,n.length):n,h=r.types,u=0,f=0;function g(t,e,n,i,s,o,l,a,h){let u=[],f=[];for(;t.length>i;)u.push(t.pop()),f.push(e.pop()+n-s);t.push(m(r.types[l],u,f,o-s,a-o,h)),e.push(s-n)}function m(t,e,n,r,i,o,l){if(o){let t=[s.contextHash,o];l=l?[t].concat(l):[t]}if(i>25){let t=[s.lookAhead,i];l=l?[t].concat(l):[t]}return new c(t,e,n,r,l)}let k=[],x=[];for(;a.pos>0;)!function t(e,n,d,k,x,y){let{id:b,start:w,end:v,size:S}=a,C=f,A=u;if(S<0){if(a.next(),-1==S){let t=o[b];d.push(t),k.push(w-e);return}if(-3==S){u=b;return}if(-4==S){f=b;return}else throw RangeError(`Unrecognized record size: ${S}`)}let P=h[b],I,T,N=w-e;if(v-w<=i&&(T=function(t,e){let n=a.fork(),r=0,s=0,o=0,h=n.end-i,u={size:0,start:0,skip:0};t:for(let i=n.pos-t;n.pos>i;){let t=n.size;if(n.id==e&&t>=0){u.size=r,u.start=s,u.skip=o,o+=4,r+=4,n.next();continue}let a=n.pos-t;if(t<0||a<i||n.start<h)break;let f=4*(n.id>=l),c=n.start;for(n.next();n.pos>a;){if(n.size<0)if(-3==n.size||-4==n.size)f+=4;else break t;else n.id>=l&&(f+=4);n.next()}s=c,r+=t,o+=f}return(e<0||r==t)&&(u.size=r,u.start=s,u.skip=o),u.size>4?u:void 0}(a.pos-n,x))){let t=new Uint16Array(T.size-T.skip),n=a.pos-T.size,i=t.length;for(;a.pos>n;)i=function t(e,n,r){let{id:i,start:s,end:o,size:h}=a;if(a.next(),h>=0&&i<l){let l=r;if(h>4){let i=a.pos-(h-4);for(;a.pos>i;)r=t(e,n,r)}n[--r]=l,n[--r]=o-e,n[--r]=s-e,n[--r]=i}else -3==h?u=i:-4==h&&(f=i);return r}(T.start,t,i);I=new p(t,v-T.start,r),N=T.start-e}else{let e=a.pos-S;a.next();let n=[],o=[],h=b>=l?b:-1,u=0,f=v;for(;a.pos>e;)h>=0&&a.id==h&&a.size>=0?(a.end<=f-i&&(g(n,o,w,u,a.end,f,h,C,A),u=n.length,f=a.end),a.next()):y>2500?function(t,e,n,s){let o=[],l=0,h=-1;for(;a.pos>e;){let{id:t,start:e,end:n,size:r}=a;if(r>4)a.next();else if(h>-1&&e<h)break;else h<0&&(h=n-i),o.push(t,e,n),l++,a.next()}if(l){let e=new Uint16Array(4*l),i=o[o.length-2];for(let t=o.length-3,n=0;t>=0;t-=3)e[n++]=o[t],e[n++]=o[t+1]-i,e[n++]=o[t+2]-i,e[n++]=n;n.push(new p(e,o[2]-i,r)),s.push(i-t)}}(w,e,n,o):t(w,e,n,o,h,y+1);if(h>=0&&u>0&&u<n.length&&g(n,o,w,u,w,f,h,C,A),n.reverse(),o.reverse(),h>-1&&u>0){let t=function(t,e){return(n,r,i)=>{let o=0,l=n.length-1,a,h;if(l>=0&&(a=n[l])instanceof c){if(!l&&a.type==t&&a.length==i)return a;(h=a.prop(s.lookAhead))&&(o=r[l]+a.length+h)}return m(t,n,r,i,o,e)}}(P,A);I=_(P,n,o,0,n.length,0,v-w,t,t)}else I=m(P,n,o,v-w,C-v,A)}d.push(I),k.push(N)}(t.start||0,t.bufferStart||0,k,x,-1,0);let y=null!=(e=t.length)?e:k.length?x[0]+k[0].length:0;return new c(h[t.topID],k.reverse(),x.reverse(),y)}(t)}}c.empty=new c(a.none,[],[],0);class d{constructor(t,e){this.buffer=t,this.index=e}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new d(this.buffer,this.index)}}class p{constructor(t,e,n){this.buffer=t,this.length=e,this.set=n}get type(){return a.none}toString(){let t=[];for(let e=0;e<this.buffer.length;)t.push(this.childString(e)),e=this.buffer[e+3];return t.join(",")}childString(t){let e=this.buffer[t],n=this.buffer[t+3],r=this.set.types[e],i=r.name;if(/\W/.test(i)&&!r.isError&&(i=JSON.stringify(i)),n==(t+=4))return i;let s=[];for(;t<n;)s.push(this.childString(t)),t=this.buffer[t+3];return i+"("+s.join(",")+")"}findChild(t,e,n,r,i){let{buffer:s}=this,o=-1;for(let l=t;l!=e&&(!g(i,r,s[l+1],s[l+2])||(o=l,!(n>0)));l=s[l+3]);return o}slice(t,e,n){let r=this.buffer,i=new Uint16Array(e-t),s=0;for(let o=t,l=0;o<e;){i[l++]=r[o++],i[l++]=r[o++]-n;let e=i[l++]=r[o++]-n;i[l++]=r[o++]-t,s=Math.max(s,e)}return new p(i,s,this.set)}}function g(t,e,n,r){switch(t){case -2:return n<e;case -1:return r>=e&&n<e;case 0:return n<e&&r>e;case 1:return n<=e&&r>e;case 2:return r>e;case 4:return!0}}function m(t,e,n,r){for(var i;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to<e);){let e=!r&&t instanceof x&&t.index<0?null:t.parent;if(!e)return t;t=e}let s=r?0:E.IgnoreOverlays;if(r)for(let r=t,o=r.parent;o;o=(r=o).parent)r instanceof x&&r.index<0&&(null==(i=o.enter(e,n,s))?void 0:i.from)!=r.from&&(t=o);for(;;){let r=t.enter(e,n,s);if(!r)return t;t=r}}class k{cursor(t=0){return new A(this,t)}getChild(t,e=null,n=null){let r=y(this,t,e,n);return r.length?r[0]:null}getChildren(t,e=null,n=null){return y(this,t,e,n)}resolve(t,e=0){return m(this,t,e,!1)}resolveInner(t,e=0){return m(this,t,e,!0)}matchContext(t){return b(this.parent,t)}enterUnfinishedNodesBefore(t){let e=this.childBefore(t),n=this;for(;e;){let t=e.lastChild;if(!t||t.to!=e.to)break;t.type.isError&&t.from==t.to?(n=e,e=t.prevSibling):e=t}return n}get node(){return this}get next(){return this.parent}}class x extends k{constructor(t,e,n,r){super(),this._tree=t,this.from=e,this.index=n,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(t,e,n,r,i=0){for(let s=this;;){for(let{children:l,positions:a}=s._tree,h=e>0?l.length:-1;t!=h;t+=e){let h=l[t],u=a[t]+s.from,f;if(i&E.EnterBracketed&&h instanceof c&&(f=o.get(h))&&!f.overlay&&f.bracketed&&n>=u&&n<=u+h.length||g(r,n,u,u+h.length)){if(h instanceof p){if(i&E.ExcludeBuffers)continue;let o=h.findChild(0,h.buffer.length,e,n-u,r);if(o>-1)return new v(new w(s,h,t,u),null,o)}else if(i&E.IncludeAnonymous||!h.type.isAnonymous||P(h)){let l;if(!(i&E.IgnoreMounts)&&(l=o.get(h))&&!l.overlay)return new x(l.tree,u,t,s);let a=new x(h,u,t,s);return i&E.IncludeAnonymous||!a.type.isAnonymous?a:a.nextChild(e<0?h.children.length-1:0,e,n,r,i)}}}if(i&E.IncludeAnonymous||!s.type.isAnonymous||(t=s.index>=0?s.index+e:e<0?-1:s._parent._tree.children.length,!(s=s._parent)))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}prop(t){return this._tree.prop(t)}enter(t,e,n=0){let r;if(!(n&E.IgnoreOverlays)&&(r=o.get(this._tree))&&r.overlay){let i=t-this.from,s=n&E.EnterBracketed&&r.bracketed;for(let{from:t,to:n}of r.overlay)if((e>0||s?t<=i:t<i)&&(e<0||s?n>=i:n>i))return new x(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,e,n)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function y(t,e,n,r){let i=t.cursor(),s=[];if(!i.firstChild())return s;if(null!=n){for(let t=!1;!t;)if(t=i.type.is(n),!i.nextSibling())return s}for(;;){if(null!=r&&i.type.is(r))return s;if(i.type.is(e)&&s.push(i.node),!i.nextSibling())return null==r?s:[]}}function b(t,e,n=e.length-1){for(let r=t;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(e[n]&&e[n]!=r.name)return!1;n--}}return!0}class w{constructor(t,e,n,r){this.parent=t,this.buffer=e,this.index=n,this.start=r}}class v extends k{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,e,n){super(),this.context=t,this._parent=e,this.index=n,this.type=t.buffer.set.types[t.buffer.buffer[n]]}child(t,e,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],t,e-this.context.start,n);return i<0?null:new v(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}prop(t){return this.type.prop(t)}enter(t,e,n=0){if(n&E.ExcludeBuffers)return null;let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e>0?1:-1,t-this.context.start,e);return i<0?null:new v(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,e=t.buffer[this.index+3];return e<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new v(this.context,this._parent,e):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new v(this.context,this._parent,t.findChild(e,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],e=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let s=n.buffer[this.index+1];t.push(n.slice(r,i,s)),e.push(0)}return new c(this.type,t,e,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function S(t){if(!t.length)return null;let e=0,n=t[0];for(let r=1;r<t.length;r++){let i=t[r];(i.from>n.from||i.to<n.to)&&(n=i,e=r)}let r=n instanceof x&&n.index<0?null:n.parent,i=t.slice();return r?i[e]=r:i.splice(e,1),new C(i,n)}class C{constructor(t,e){this.heads=t,this.node=e}get next(){return S(this.heads)}}class A{get name(){return this.type.name}constructor(t,e=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=e&~E.EnterBracketed,t instanceof x)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let e=t._parent;e;e=e._parent)this.stack.unshift(e.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return!!t&&(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0)}yieldBuf(t,e){this.index=t;let{start:n,buffer:r}=this.buffer;return this.type=e||r.set.types[r.buffer[t]],this.from=n+r.buffer[t+1],this.to=n+r.buffer[t+2],!0}yield(t){return!!t&&(t instanceof x?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,e,n){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,e,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],t,e-this.buffer.start,n);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,e,n=this.mode){return this.buffer?!(n&E.ExcludeBuffers)&&this.enterChild(1,t,e):this.yield(this._tree.enter(t,e,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&E.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&E.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode));let{buffer:e}=this.buffer,n=this.stack.length-1;if(t<0){let t=n<0?0:this.stack[n]+4;if(this.index!=t)return this.yieldBuf(e.findChild(t,this.index,-1,0,4))}else{let t=e.buffer[this.index+3];if(t<(n<0?e.buffer.length:e.buffer[this.stack[n]+3]))return this.yieldBuf(t)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let e,n,{buffer:r}=this;if(r){if(t>0){if(this.index<r.buffer.buffer.length)return!1}else for(let t=0;t<this.index;t++)if(r.buffer.buffer[t+3]<this.index)return!1;({index:e,parent:n}=r)}else({index:e,_parent:n}=this._tree);for(;n;{index:e,_parent:n}=n)if(e>-1)for(let r=e+t,i=t<0?-1:n._tree.children.length;r!=i;r+=t){let t=n._tree.children[r];if(this.mode&E.IncludeAnonymous||t instanceof p||!t.type.isAnonymous||P(t))return!1}return!0}move(t,e){if(e&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,e=0){for(;(this.from==this.to||(e<1?this.from>=t:this.from>t)||(e>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,e););return this}get node(){if(!this.buffer)return this._tree;let t=this.bufferNode,e=null,n=0;if(t&&t.context==this.buffer)t:for(let r=this.index,i=this.stack.length;i>=0;){for(let s=t;s;s=s._parent)if(s.index==r){if(r==this.index)return s;e=s,n=i+1;break t}r=this.stack[--i]}for(let t=n;t<this.stack.length;t++)e=new v(this.buffer,e,this.stack[t]);return this.bufferNode=new v(this.buffer,e,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(t,e){for(let n=0;;){let r=!1;if(this.type.isAnonymous||!1!==t(this)){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;;){if(r&&e&&e(this),r=this.type.isAnonymous,!n)return;if(this.nextSibling())break;this.parent(),n--,r=!0}}}matchContext(t){if(!this.buffer)return b(this.node.parent,t);let{buffer:e}=this.buffer,{types:n}=e.set;for(let r=t.length-1,i=this.stack.length-1;r>=0;i--){if(i<0)return b(this._tree,t,r);let s=n[e.buffer[this.stack[i]]];if(!s.isAnonymous){if(t[r]&&t[r]!=s.name)return!1;r--}}return!0}}function P(t){return t.children.some(t=>t instanceof p||!t.type.isAnonymous||P(t))}let I=new WeakMap;function T(t,e){if(!t.isAnonymous||e instanceof p||e.type!=t)return 1;let n=I.get(e);if(null==n){for(let r of(n=1,e.children)){if(r.type!=t||!(r instanceof c)){n=1;break}n+=T(t,r)}I.set(e,n)}return n}function _(t,e,n,r,i,s,o,l,a){let h=0;for(let n=r;n<i;n++)h+=T(t,e[n]);let u=Math.ceil(1.5*h/8),f=[],c=[];return!function e(n,r,i,o,l){for(let h=i;h<o;){let i=h,d=r[h],p=T(t,n[h]);for(h++;h<o;h++){let e=T(t,n[h]);if(p+e>=u)break;p+=e}if(h==i+1){if(p>u){let t=n[i];e(t.children,t.positions,0,t.children.length,r[i]+l);continue}f.push(n[i])}else{let e=r[h-1]+n[h-1].length-d;f.push(_(t,n,r,i,h,d,e,null,a))}c.push(d+l-s)}}(e,n,r,i,0),(l||a)(f,c,o)}class N{constructor(t,e,n,r,i=!1,s=!1){this.from=t,this.to=e,this.tree=n,this.offset=r,this.open=+!!i|2*!!s}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(t,e=[],n=!1){let r=[new N(0,t.length,t,0,!1,n)];for(let n of e)n.to>t.length&&r.push(n);return r}static applyChanges(t,e,n=128){if(!e.length)return t;let r=[],i=1,s=t.length?t[0]:null;for(let o=0,l=0,a=0;;o++){let h=o<e.length?e[o]:null,u=h?h.fromA:1e9;if(u-l>=n)for(;s&&s.from<u;){let e=s;if(l>=e.from||u<=e.to||a){let t=Math.max(e.from,l)-a,n=Math.min(e.to,u)-a;e=t>=n?null:new N(t,n,e.tree,e.offset+a,o>0,!!h)}if(e&&r.push(e),s.to>u)break;s=i<t.length?t[i++]:null}if(!h)break;l=h.toA,a=h.toA-h.toB}return r}}class B{startParse(t,e,n){return"string"==typeof t&&(t=new O(t)),n=n?n.length?n.map(t=>new i(t.from,t.to)):[new i(0,0)]:[new i(0,t.length)],this.createParse(t,e||[],n)}parse(t,e,n){let r=this.startParse(t,e,n);for(;;){let t=r.advance();if(t)return t}}}class O{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,e){return this.string.slice(t,e)}}new s({perNode:!0});var D,E,L,M=n(263),J=n(990),R=n(930),z=n(502);let W=new s;function $(t){return M.r$.define({combine:t?e=>e.concat(t):void 0})}let U=new s;class j{constructor(t,e,n=[],r=""){this.data=t,this.name=r,M.yy.prototype.hasOwnProperty("tree")||Object.defineProperty(M.yy.prototype,"tree",{get(){return H(this)}}),this.parser=e,this.extension=[ts.of(this),M.yy.languageData.of((t,e,n)=>{let r=F(t,e,n),i=r.type.prop(W);if(!i)return[];let s=t.facet(i),o=r.type.prop(U);if(o){let i=r.resolve(e-r.from,n);for(let e of o)if(e.test(i,t)){let n=t.facet(e.facet);return"replace"==e.type?n:n.concat(s)}}return s})].concat(n)}isActiveAt(t,e,n=-1){return F(t,e,n).type.prop(W)==this.data}findRegions(t){let e=t.facet(ts);if((null==e?void 0:e.data)==this.data)return[{from:0,to:t.doc.length}];if(!e||!e.allowsNesting)return[];let n=[],r=(t,e)=>{if(t.prop(W)==this.data)return void n.push({from:e,to:e+t.length});let i=t.prop(s.mounted);if(i){if(i.tree.prop(W)==this.data){if(i.overlay)for(let t of i.overlay)n.push({from:t.from+e,to:t.to+e});else n.push({from:e,to:e+t.length});return}else if(i.overlay){let t=n.length;if(r(i.tree,i.overlay[0].from+e),n.length>t)return}}for(let n=0;n<t.children.length;n++){let i=t.children[n];i instanceof c&&r(i,t.positions[n]+e)}};return r(H(t),0),n}get allowsNesting(){return!0}}function F(t,e,n){let r=t.facet(ts),i=H(t).topNode;if(!r||r.allowsNesting)for(let t=i;t;t=t.enter(e,n,E.ExcludeBuffers|E.EnterBracketed))t.type.isTop&&(i=t);return i}j.setState=M.Py.define();class V extends j{constructor(t,e,n){super(t,e,[],n),this.parser=e}static define(t){let e=$(t.languageData);return new V(e,t.parser.configure({props:[W.add(t=>t.isTop?e:void 0)]}),t.name)}configure(t,e){return new V(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function H(t){let e=t.field(j.state,!1);return e?e.tree:c.empty}function G(t,e,n=50){var r;let i=null==(r=t.field(j.state,!1))?void 0:r.context;if(!i)return null;let s=i.viewport;i.updateViewport({from:0,to:e});let o=i.isDone(e)||i.work(n,e)?i.tree:null;return i.updateViewport(s),o}function Q(t,e=t.doc.length){var n;return(null==(n=t.field(j.state,!1))?void 0:n.context.isDone(e))||!1}function q(t,e=t.viewport.to,n=100){let r=G(t.state,e,n);return r!=H(t.state)&&t.dispatch({}),!!r}function X(t){var e;return(null==(e=t.plugin(ti))?void 0:e.isWorking())||!1}class K{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,e){let n=this.cursorPos-this.string.length;return t<n||e>=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-n,e-n)}}let Y=null;class Z{constructor(t,e,n=[],r,i,s,o,l){this.parser=t,this.state=e,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=s,this.skipped=o,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,e,n){return new Z(t,e,[],c.empty,0,n,[],null)}startParse(){return this.parser.startParse(new K(this.state.doc),this.fragments)}work(t,e){return(null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=c.empty&&this.isDone(null!=e?e:this.state.doc.length))?(this.takeTree(),!0):this.withContext(()=>{var n;if("number"==typeof t){let e=Date.now()+t;t=()=>Date.now()>e}for(this.parse||(this.parse=this.startParse()),null!=e&&(null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&e<this.state.doc.length&&this.parse.stopAt(e);;){let r=this.parse.advance();if(r){if(this.fragments=this.withoutTempSkipped(N.addTree(r,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!=(n=this.parse.stoppedAt)?n:this.state.doc.length,this.tree=r,this.parse=null,!(this.treeLen<(null!=e?e:this.state.doc.length)))return!0;this.parse=this.startParse()}if(t())return!1}})}takeTree(){let t,e;this.parse&&(t=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(e=this.parse.advance()););}),this.treeLen=t,this.tree=e,this.fragments=this.withoutTempSkipped(N.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let e=Y;Y=this;try{return t()}finally{Y=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=tt(t,e.from,e.to);return t}changes(t,e){let{fragments:n,tree:r,treeLen:i,viewport:s,skipped:o}=this;if(this.takeTree(),!t.empty){let e=[];if(t.iterChangedRanges((t,n,r,i)=>e.push({fromA:t,toA:n,fromB:r,toB:i})),n=N.applyChanges(n,e),r=c.empty,i=0,s={from:t.mapPos(s.from,-1),to:t.mapPos(s.to,1)},this.skipped.length)for(let e of(o=[],this.skipped)){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);n<r&&o.push({from:n,to:r})}}return new Z(this.parser,e,n,r,i,s,o,this.scheduleOn)}updateViewport(t){if(this.viewport.from==t.from&&this.viewport.to==t.to)return!1;this.viewport=t;let e=this.skipped.length;for(let e=0;e<this.skipped.length;e++){let{from:n,to:r}=this.skipped[e];n<t.to&&r>t.from&&(this.fragments=tt(this.fragments,n,r),this.skipped.splice(e--,1))}return!(this.skipped.length>=e)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends B{createParse(e,n,r){let i=r[0].from,s=r[r.length-1].to;return{parsedPos:i,advance(){let e=Y;if(e){for(let t of r)e.tempSkipped.push(t);t&&(e.scheduleOn=e.scheduleOn?Promise.all([e.scheduleOn,t]):t)}return this.parsedPos=s,new c(a.none,[],[],s-i)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&0==e[0].from&&e[0].to>=t}static get(){return Y}}function tt(t,e,n){return N.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class te{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state),n=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,n)||e.takeTree(),new te(e)}static init(t){let e=Math.min(3e3,t.doc.length),n=Z.create(t.facet(ts).parser,t,{from:0,to:e});return n.work(20,e)||n.takeTree(),new te(n)}}j.state=M.QQ.define({create:te.init,update(t,e){for(let t of e.effects)if(t.is(j.setState))return t.value;return e.startState.facet(ts)!=e.state.facet(ts)?te.init(e.state):t.apply(e)}});let tn=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};"undefined"!=typeof requestIdleCallback&&(tn=t=>{let e=-1,n=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});let tr="undefined"!=typeof navigator&&(null==(L=navigator.scheduling)?void 0:L.isInputPending)?()=>navigator.scheduling.isInputPending():null,ti=J.lg.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let e=this.view.state.field(j.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(j.state);e.tree==e.context.tree&&e.context.isDone(t.doc.length)||(this.working=tn(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEnd<e&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=e+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,i=n.field(j.state);if(i.tree==i.context.tree&&i.context.isDone(r+1e5))return;let s=Date.now()+Math.min(this.chunkBudget,100,t&&!tr?Math.max(25,t.timeRemaining()-5):1e9),o=i.context.treeLen<r&&n.doc.length>r+1e3,l=i.context.work(()=>tr&&tr()||Date.now()>s,r+1e5*!o);this.chunkBudget-=Date.now()-e,(l||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:j.setState.of(new te(i.context))})),this.chunkBudget>0&&!(l&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(t=>(0,J.OO)(this.view.state,t)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),ts=M.r$.define({combine:t=>t.length?t[0]:null,enables:t=>[j.state,ti,J.tk.contentAttributes.compute([t],e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}})]});class to{constructor(t,e=[]){this.language=t,this.support=e,this.extension=[t,e]}}class tl{constructor(t,e,n,r,i,s){this.name=t,this.alias=e,this.extensions=n,this.filename=r,this.loadFunc=i,this.support=s,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(t=>this.support=t,t=>{throw this.loading=null,t}))}static of(t){let{load:e,support:n}=t;if(!e){if(!n)throw RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");e=()=>Promise.resolve(n)}return new tl(t.name,(t.alias||[]).concat(t.name).map(t=>t.toLowerCase()),t.extensions||[],t.filename,e,n)}static matchFilename(t,e){for(let n of t)if(n.filename&&n.filename.test(e))return n;let n=/\.([^.]+)$/.exec(e);if(n){for(let e of t)if(e.extensions.indexOf(n[1])>-1)return e}return null}static matchLanguageName(t,e,n=!0){for(let n of(e=e.toLowerCase(),t))if(n.alias.some(t=>t==e))return n;if(n)for(let n of t)for(let t of n.alias){let r=e.indexOf(t);if(r>-1&&(t.length>2||!/\w/.test(e[r-1])&&!/\w/.test(e[r+t.length])))return n}return null}}let ta=M.r$.define(),th=M.r$.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function tu(t){let e=t.facet(th);return 9==e.charCodeAt(0)?t.tabSize*e.length:e.length}function tf(t,e){let n="",r=t.tabSize,i=t.facet(th)[0];if(" "==i){for(;e>=r;)n+=" ",e-=r;i=" "}for(let t=0;t<e;t++)n+=i;return n}function tc(t,e){for(let n of(t instanceof M.yy&&(t=new tp(t)),t.state.facet(ta))){let r=n(t,e);if(void 0!==r)return r}let n=H(t.state);return n.length>=e?function(t,e,n){let r=e.resolveStack(n),i=e.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(i!=r.node){let t=[];for(let e=i;e&&!(e.from<r.node.from||e.to>r.node.to||e.from==r.node.from&&e.type==r.node.type);e=e.parent)t.push(e);for(let e=t.length-1;e>=0;e--)r={node:t[e],next:r}}return tm(r,t,n)}(t,n,e):null}function td(t,e,n){let r=Object.create(null),i=new tp(t,{overrideIndentation:t=>{var e;return null!=(e=r[t])?e:-1}}),s=[];for(let o=e;o<=n;){let e=t.doc.lineAt(o);o=e.to+1;let n=tc(i,e.from);if(null==n)continue;/\S/.test(e.text)||(n=0);let l=/^\s*/.exec(e.text)[0],a=tf(t,n);l!=a&&(r[e.from]=n,s.push({from:e.from,to:e.from+l.length,insert:a}))}return t.changes(s)}class tp{constructor(t,e={}){this.state=t,this.options=e,this.unit=tu(t)}lineAt(t,e=1){let n=this.state.doc.lineAt(t),{simulateBreak:r,simulateDoubleBreak:i}=this.options;if(null!=r&&r>=n.from&&r<=n.to)if(i&&r==t)return{text:"",from:t};else if(e<0?r<t:r<=t)return{text:n.text.slice(r-n.from),from:r};else return{text:n.text.slice(0,r-n.from),from:n.from};return n}textAfterPos(t,e=1){if(this.options.simulateDoubleBreak&&t==this.options.simulateBreak)return"";let{text:n,from:r}=this.lineAt(t,e);return n.slice(t-r,Math.min(n.length,t+100-r))}column(t,e=1){let{text:n,from:r}=this.lineAt(t,e),i=this.countColumn(n,t-r),s=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return s>-1&&(i+=s-this.countColumn(n,n.search(/\S|$/))),i}countColumn(t,e=t.length){return(0,M.IS)(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:n,from:r}=this.lineAt(t,e),i=this.options.overrideIndentation;if(i){let t=i(r);if(t>-1)return t}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}let tg=new s;function tm(t,e,n){for(let r=t;r;r=r.next){let t=function(t){let e=t.type.prop(tg);if(e)return e;let n=t.firstChild,r;if(n&&(r=n.type.prop(s.closedBy))){let e=t.lastChild,n=e&&r.indexOf(e.name)>-1;return t=>tb(t,!0,1,void 0,n&&!(t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak)?e.from:void 0)}return null==t.parent?tk:null}(r.node);if(t)return t(tx.create(e,n,r))}return 0}function tk(){return 0}class tx extends tp{constructor(t,e,n){super(t.state,t.options),this.base=t,this.pos=e,this.context=n}get node(){return this.context.node}static create(t,e,n){return new tx(t,e,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let e=this.state.doc.lineAt(t.from);for(;;){let n=t.resolve(e.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(function(t,e){for(let n=e;n;n=n.parent)if(t==n)return!0;return!1}(n,t))break;e=this.state.doc.lineAt(n.from)}return this.lineIndent(e.from)}continue(){return tm(this.context.next,this.base,this.pos)}}function ty({closing:t,align:e=!0,units:n=1}){return r=>tb(r,e,n,t)}function tb(t,e,n,r,i){let s=t.textAfter,o=s.match(/^\s*/)[0].length,l=r&&s.slice(o,o+r.length)==r||i==t.pos+o,a=e?function(t){let e=t.node,n=e.childAfter(e.from),r=e.lastChild;if(!n)return null;let i=t.options.simulateBreak,s=t.state.doc.lineAt(n.from),o=null==i||i<=s.from?s.to:Math.min(s.to,i);for(let t=n.to;;){let i=e.childAfter(t);if(!i||i==r)return null;if(!i.type.isSkipped){if(i.from>=o)return null;let t=/^ */.exec(s.text.slice(n.to-s.from))[0].length;return{from:n.from,to:n.to+t}}t=i.to}}(t):null;return a?l?t.column(a.from):t.column(a.to):t.baseIndent+(l?0:t.unit*n)}let tw=t=>t.baseIndent;function tv({except:t,units:e=1}={}){return n=>{let r=t&&t.test(n.textAfter);return n.baseIndent+(r?0:e*n.unit)}}function tS(){return M.yy.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:r}=t.newSelection.main,i=n.lineAt(r);if(r>i.from+200)return t;let s=n.sliceString(i.from,r);if(!e.some(t=>t.test(s)))return t;let{state:o}=t,l=-1,a=[];for(let{head:t}of o.selection.ranges){let e=o.doc.lineAt(t);if(e.from==l)continue;l=e.from;let n=tc(o,e.from);if(null==n)continue;let r=/^\s*/.exec(e.text)[0],i=tf(o,n);r!=i&&a.push({from:e.from,to:e.from+r.length,insert:i})}return a.length?[t,{changes:a,sequential:!0}]:t})}let tC=M.r$.define(),tA=new s;function tP(t){let e=t.firstChild,n=t.lastChild;return e&&e.to<n.from?{from:e.to,to:n.type.isError?t.to:n.from}:null}function tI(t,e,n){for(let r of t.facet(tC)){let i=r(t,e,n);if(i)return i}return function(t,e,n){let r=H(t);if(r.length<n)return null;let i=r.resolveStack(n,1),s=null;for(let o=i;o;o=o.next){let i=o.node;if(i.to<=n||i.from>n)continue;if(s&&i.from<e)break;let l=i.type.prop(tA);if(l&&(i.to<r.length-50||r.length==t.doc.length||!function(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}(i))){let r=l(i,t);r&&r.from<=n&&r.from>=e&&r.to>n&&(s=r)}}return s}(t,e,n)}function tT(t,e){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);return n>=r?void 0:{from:n,to:r}}let t_=M.Py.define({map:tT}),tN=M.Py.define({map:tT});function tB(t){let e=[];for(let{head:n}of t.state.selection.ranges)e.some(t=>t.from<=n&&t.to>=n)||e.push(t.lineBlockAt(n));return e}let tO=M.QQ.define({create:()=>J.p.none,update(t,e){for(let n of(e.isUserEvent("delete")&&e.changes.iterChangedRanges((e,n)=>t=tD(t,e,n)),t=t.map(e.changes),e.effects))if(n.is(t_)&&!function(t,e,n){let r=!1;return t.between(e,e,(t,i)=>{t==e&&i==n&&(r=!0)}),r}(t,n.value.from,n.value.to)){let{preparePlaceholder:r}=e.state.facet(tV),i=r?J.p.replace({widget:new tq(r(e.state,n.value))}):tQ;t=t.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(tN)&&(t=t.update({filter:(t,e)=>n.value.from!=t||n.value.to!=e,filterFrom:n.value.from,filterTo:n.value.to}));return e.selection&&(t=tD(t,e.selection.main.head)),t},provide:t=>J.tk.decorations.from(t),toJSON(t,e){let n=[];return t.between(0,e.doc.length,(t,e)=>{n.push(t,e)}),n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n<t.length;){let r=t[n++],i=t[n++];if("number"!=typeof r||"number"!=typeof i)throw RangeError("Invalid JSON for fold state");e.push(tQ.range(r,i))}return J.p.set(e,!0)}});function tD(t,e,n=e){let r=!1;return t.between(e,n,(t,i)=>{t<n&&i>e&&(r=!0)}),r?t.update({filterFrom:e,filterTo:n,filter:(t,r)=>t>=n||r<=e}):t}function tE(t){return t.field(tO,!1)||M.Xs.empty}function tL(t,e,n){var r;let i=null;return null==(r=t.field(tO,!1))||r.between(e,n,(t,e)=>{(!i||i.from>t)&&(i={from:t,to:e})}),i}function tM(t,e){return t.field(tO,!1)?e:e.concat(M.Py.appendConfig.of(tH()))}let tJ=t=>{for(let e of tB(t)){let n=tI(t.state,e.from,e.to);if(n)return t.dispatch({effects:tM(t.state,[t_.of(n),tz(t,n)])}),!0}return!1},tR=t=>{if(!t.state.field(tO,!1))return!1;let e=[];for(let n of tB(t)){let r=tL(t.state,n.from,n.to);r&&e.push(tN.of(r),tz(t,r,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function tz(t,e,n=!0){let r=t.state.doc.lineAt(e.from).number,i=t.state.doc.lineAt(e.to).number;return J.tk.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${t.state.phrase("to")} ${i}.`)}let tW=t=>{let{state:e}=t,n=[];for(let r=0;r<e.doc.length;){let i=t.lineBlockAt(r),s=tI(e,i.from,i.to);s&&n.push(t_.of(s)),r=(s?t.lineBlockAt(s.to):i).to+1}return n.length&&t.dispatch({effects:tM(t.state,n)}),!!n.length},t$=t=>{let e=t.state.field(tO,!1);if(!e||!e.size)return!1;let n=[];return e.between(0,t.state.doc.length,(t,e)=>{n.push(tN.of({from:t,to:e}))}),t.dispatch({effects:n}),!0},tU=t=>{let e=[];for(let n of tB(t)){let r=tL(t.state,n.from,n.to);if(r)e.push(tN.of(r),tz(t,r,!1));else{let r=function(t,e){for(let n=e;;){let r=tI(t.state,n.from,n.to);if(r&&r.to>e.from)return r;if(!n.from)return null;n=t.lineBlockAt(n.from-1)}}(t,n);r&&e.push(t_.of(r),tz(t,r))}}return e.length>0&&t.dispatch({effects:tM(t.state,e)}),!!e.length},tj=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:tJ},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:tR},{key:"Ctrl-Alt-[",run:tW},{key:"Ctrl-Alt-]",run:t$}],tF={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},tV=M.r$.define({combine:t=>(0,M.BO)(t,tF)});function tH(t){let e=[tO,tZ];return t&&e.push(tV.of(t)),e}function tG(t,e){let{state:n}=t,r=n.facet(tV),i=e=>{let n=t.lineBlockAt(t.posAtDOM(e.target)),r=tL(t.state,n.from,n.to);r&&t.dispatch({effects:tN.of(r)}),e.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(t,i,e);let s=document.createElement("span");return s.textContent=r.placeholderText,s.setAttribute("aria-label",n.phrase("folded code")),s.title=n.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=i,s}let tQ=J.p.replace({widget:new class extends J.l9{toDOM(t){return tG(t,null)}}});class tq extends J.l9{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return tG(t,this.value)}}let tX={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class tK extends J.SJ{constructor(t,e){super(),this.config=t,this.open=e}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let e=document.createElement("span");return e.textContent=this.open?this.config.openText:this.config.closedText,e.title=t.state.phrase(this.open?"Fold line":"Unfold line"),e}}function tY(t={}){let e={...tX,...t},n=new tK(e,!0),r=new tK(e,!1),i=J.lg.fromClass(class{constructor(t){this.from=t.viewport.from,this.markers=this.buildMarkers(t)}update(t){(t.docChanged||t.viewportChanged||t.startState.facet(ts)!=t.state.facet(ts)||t.startState.field(tO,!1)!=t.state.field(tO,!1)||H(t.startState)!=H(t.state)||e.foldingChanged(t))&&(this.markers=this.buildMarkers(t.view))}buildMarkers(t){let e=new M.f_;for(let i of t.viewportLineBlocks){let s=tL(t.state,i.from,i.to)?r:tI(t.state,i.from,i.to)?n:null;s&&e.add(i.from,i.from,s)}return e.finish()}}),{domEventHandlers:s}=e;return[i,(0,J.v5)({class:"cm-foldGutter",markers(t){var e;return(null==(e=t.plugin(i))?void 0:e.markers)||M.Xs.empty},initialSpacer:()=>new tK(e,!1),domEventHandlers:{...s,click:(t,e,n)=>{if(s.click&&s.click(t,e,n))return!0;let r=tL(t.state,e.from,e.to);if(r)return t.dispatch({effects:tN.of(r)}),!0;let i=tI(t.state,e.from,e.to);return!!i&&(t.dispatch({effects:t_.of(i)}),!0)}}}),tH()]}let tZ=J.tk.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class t0{constructor(t,e){let n;function r(t){let e=z.V.newName();return(n||(n=Object.create(null)))["."+e]=t,e}this.specs=t;let i="string"==typeof e.all?e.all:e.all?r(e.all):void 0,s=e.scope;this.scope=s instanceof j?t=>t.prop(W)==s.data:s?t=>t==s:void 0,this.style=(0,R.QR)(t.map(t=>({tag:t.tag,class:t.class||r(Object.assign({},t,{tag:null}))})),{all:i}).style,this.module=n?new z.V(n):null,this.themeType=e.themeType}static define(t,e){return new t0(t,e||{})}}let t1=M.r$.define(),t4=M.r$.define({combine:t=>t.length?[t[0]]:null});function t2(t){let e=t.facet(t1);return e.length?e:t.facet(t4)}function t5(t,e){let n=[t8],r;return t instanceof t0&&(t.module&&n.push(J.tk.styleModule.of(t.module)),r=t.themeType),(null==e?void 0:e.fallback)?n.push(t4.of(t)):r?n.push(t1.computeN([J.tk.darkTheme],e=>e.facet(J.tk.darkTheme)==("dark"==r)?[t]:[])):n.push(t1.of(t)),n}function t3(t,e,n){let r=t2(t),i=null;if(r){for(let t of r)if(!t.scope||n&&t.scope(n)){let n=t.style(e);n&&(i=i?i+" "+n:n)}}return i}let t8=M.Wl.high(J.lg.fromClass(class{constructor(t){this.markCache=Object.create(null),this.tree=H(t.state),this.decorations=this.buildDeco(t,t2(t.state)),this.decoratedTo=t.viewport.to}update(t){let e=H(t.state),n=t2(t.state),r=n!=t2(t.startState),{viewport:i}=t.view,s=t.changes.mapPos(this.decoratedTo,1);e.length<i.to&&!r&&e.type==this.tree.type&&s>=i.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=s):(e!=this.tree||t.viewportChanged||r)&&(this.tree=e,this.decorations=this.buildDeco(t.view,n),this.decoratedTo=i.to)}buildDeco(t,e){if(!e||!this.tree.length)return J.p.none;let n=new M.f_;for(let{from:r,to:i}of t.visibleRanges)(0,R.bW)(this.tree,e,(t,e,r)=>{n.add(t,e,this.markCache[r]||(this.markCache[r]=J.p.mark({class:r})))},r,i);return n.finish()}},{decorations:t=>t.decorations})),t9=t0.define([{tag:R.pJ.meta,color:"#404740"},{tag:R.pJ.link,textDecoration:"underline"},{tag:R.pJ.heading,textDecoration:"underline",fontWeight:"bold"},{tag:R.pJ.emphasis,fontStyle:"italic"},{tag:R.pJ.strong,fontWeight:"bold"},{tag:R.pJ.strikethrough,textDecoration:"line-through"},{tag:R.pJ.keyword,color:"#708"},{tag:[R.pJ.atom,R.pJ.bool,R.pJ.url,R.pJ.contentSeparator,R.pJ.labelName],color:"#219"},{tag:[R.pJ.literal,R.pJ.inserted],color:"#164"},{tag:[R.pJ.string,R.pJ.deleted],color:"#a11"},{tag:[R.pJ.regexp,R.pJ.escape,R.pJ.special(R.pJ.string)],color:"#e40"},{tag:R.pJ.definition(R.pJ.variableName),color:"#00f"},{tag:R.pJ.local(R.pJ.variableName),color:"#30a"},{tag:[R.pJ.typeName,R.pJ.namespace],color:"#085"},{tag:R.pJ.className,color:"#167"},{tag:[R.pJ.special(R.pJ.variableName),R.pJ.macroName],color:"#256"},{tag:R.pJ.definition(R.pJ.propertyName),color:"#00c"},{tag:R.pJ.comment,color:"#940"},{tag:R.pJ.invalid,color:"#f00"}]),t6=J.tk.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),t7="()[]{}",et=M.r$.define({combine:t=>(0,M.BO)(t,{afterCursor:!0,brackets:t7,maxScanDistance:1e4,renderMatch:er})}),ee=J.p.mark({class:"cm-matchingBracket"}),en=J.p.mark({class:"cm-nonmatchingBracket"});function er(t){let e=[],n=t.matched?ee:en;return e.push(n.range(t.start.from,t.start.to)),t.end&&e.push(n.range(t.end.from,t.end.to)),e}let ei=[M.QQ.define({create:()=>J.p.none,update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[],r=e.state.facet(et);for(let t of e.state.selection.ranges){if(!t.empty)continue;let i=eh(e.state,t.head,-1,r)||t.head>0&&eh(e.state,t.head-1,1,r)||r.afterCursor&&(eh(e.state,t.head,1,r)||t.head<e.state.doc.length&&eh(e.state,t.head+1,-1,r));i&&(n=n.concat(r.renderMatch(i,e.state)))}return J.p.set(n,!0)},provide:t=>J.tk.decorations.from(t)}),t6];function es(t={}){return[et.of(t),ei]}let eo=new s;function el(t,e,n){let r=t.prop(e<0?s.openedBy:s.closedBy);if(r)return r;if(1==t.name.length){let r=n.indexOf(t.name);if(r>-1&&r%2==+(e<0))return[n[r+e]]}return null}function ea(t){let e=t.type.prop(eo);return e?e(t.node):t}function eh(t,e,n,r={}){let i=r.maxScanDistance||1e4,s=r.brackets||t7,o=H(t),l=o.resolveInner(e,n);for(let t=l;t;t=t.parent){let r=el(t.type,n,s);if(r&&t.from<t.to){let i=ea(t);if(i&&(n>0?e>=i.from&&e<i.to:e>i.from&&e<=i.to))return function(t,e,n,r,i,s,o){let l=r.parent,a={from:i.from,to:i.to},h=0,u=null==l?void 0:l.cursor();if(u&&(n<0?u.childBefore(r.from):u.childAfter(r.to)))do if(n<0?u.to<=r.from:u.from>=r.to){if(0==h&&s.indexOf(u.type.name)>-1&&u.from<u.to){let t=ea(u);return{start:a,end:t?{from:t.from,to:t.to}:void 0,matched:!0}}else if(el(u.type,n,o))h++;else if(el(u.type,-n,o)){if(0==h){let t=ea(u);return{start:a,end:t&&t.from<t.to?{from:t.from,to:t.to}:void 0,matched:!1}}h--}}while(n<0?u.prevSibling():u.nextSibling());return{start:a,matched:!1}}(0,0,n,t,i,r,s)}}return function(t,e,n,r,i,s,o){let l=n<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),a=o.indexOf(l);if(a<0||a%2==0!=n>0)return null;let h={from:n<0?e-1:e,to:n>0?e+1:e},u=t.doc.iterRange(e,n>0?t.doc.length:0),f=0;for(let t=0;!u.next().done&&t<=s;){let s=u.value;n<0&&(t+=s.length);let l=e+t*n;for(let t=n>0?0:s.length-1,e=n>0?s.length:-1;t!=e;t+=n){let e=o.indexOf(s[t]);if(!(e<0)&&r.resolveInner(l+t,1).type==i)if(e%2==0==n>0)f++;else{if(1==f)return{start:h,end:{from:l+t,to:l+t+1},matched:e>>1==a>>1};f--}}n>0&&(t+=s.length)}return u.done?{start:h,matched:!1}:null}(t,e,n,o,l.type,i,s)}function eu(t,e,n,r=0,i=0){null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length);let s=i;for(let i=r;i<e;i++)9==t.charCodeAt(i)?s+=n-s%n:s++;return s}class ef{constructor(t,e,n,r){this.string=t,this.tabSize=e,this.indentUnit=n,this.overrideIndent=r,this.pos=0,this.start=0,this.lastColumnPos=0,this.lastColumnValue=0}eol(){return this.pos>=this.string.length}sol(){return 0==this.pos}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)}eat(t){let e,n=this.string.charAt(this.pos);if("string"==typeof t?n==t:n&&(t instanceof RegExp?t.test(n):t(n)))return++this.pos,n}eatWhile(t){let e=this.pos;for(;this.eat(t););return this.pos>e}eatSpace(){let t=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t}skipToEnd(){this.pos=this.string.length}skipTo(t){let e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0}backUp(t){this.pos-=t}column(){return this.lastColumnPos<this.start&&(this.lastColumnValue=eu(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue}indentation(){var t;return null!=(t=this.overrideIndent)?t:eu(this.string,null,this.tabSize)}match(t,e,n){if("string"==typeof t){let r=t=>n?t.toLowerCase():t;return r(this.string.substr(this.pos,t.length))==r(t)?(!1!==e&&(this.pos+=t.length),!0):null}{let n=this.string.slice(this.pos).match(t);return n&&n.index>0?null:(n&&!1!==e&&(this.pos+=n[0].length),n)}}current(){return this.string.slice(this.start,this.pos)}}function ec(t){if("object"!=typeof t)return t;let e={};for(let n in t){let r=t[n];e[n]=r instanceof Array?r.slice():r}return e}let ed=new WeakMap;class ep extends j{constructor(t){var e,n;let r,i=$(t.languageData),o={name:t.name||"",token:t.token,blankLine:t.blankLine||(()=>{}),startState:t.startState||(()=>!0),copyState:t.copyState||ec,indent:t.indent||(()=>null),languageData:t.languageData||{},tokenTable:t.tokenTable||ex,mergeTokens:!1!==t.mergeTokens},l;super(i,new class extends B{createParse(t,e,n){return new em(l,t,e,n)}},[],t.name),this.topNode=(e=i,n=this,r=a.define({id:ey.length,name:"Document",props:[W.add(()=>e),tg.add(()=>t=>n.getIndent(t))],top:!0}),ey.push(r),r),l=this,this.streamParser=o,this.stateAfter=new s({perNode:!0}),this.tokenTable=t.tokenTable?new eC(o.tokenTable):eA}static define(t){return new ep(t)}getIndent(t){let e,{overrideIndentation:n}=t.options;n&&null!=(e=ed.get(t.state))&&e<t.pos-1e4&&(e=void 0);let r=eg(this,t.node.tree,t.node.from,t.node.from,null!=e?e:t.pos),i,s;if(r?(s=r.state,i=r.pos+1):(s=this.streamParser.startState(t.unit),i=t.node.from),t.pos-i>1e4)return null;for(;i<t.pos;){let e=t.state.doc.lineAt(i),r=Math.min(t.pos,e.to);if(e.length){let i=n?n(e.from):-1,o=new ef(e.text,t.state.tabSize,t.unit,i<0?void 0:i);for(;o.pos<r-e.from;)ek(this.streamParser.token,o,s)}else this.streamParser.blankLine(s,t.unit);if(r==t.pos)break;i=e.to+1}let o=t.lineAt(t.pos);return n&&null==e&&ed.set(t.state,o.from),this.streamParser.indent(s,/^\s*(.*)/.exec(o.text)[1],t)}get allowsNesting(){return!1}}function eg(t,e,n,r,i){let s=n>=r&&n+e.length<=i&&e.prop(t.stateAfter);if(s)return{state:t.streamParser.copyState(s),pos:n+e.length};for(let s=e.children.length-1;s>=0;s--){let o=e.children[s],l=n+e.positions[s],a=o instanceof c&&l<i&&eg(t,o,l,r,i);if(a)return a}return null}class em{constructor(t,e,n,r){this.lang=t,this.input=e,this.fragments=n,this.ranges=r,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=r[r.length-1].to;let i=Z.get(),s=r[0].from,{state:o,tree:l}=function(t,e,n,r,i){for(let i of e){let e=i.from+25*!!i.openStart,s=i.to-25*!!i.openEnd,o=e<=n&&s>n&&eg(t,i.tree,0-i.offset,n,s),l;if(o&&o.pos<=r&&(l=function t(e,n,r,i,s){if(s&&r<=0&&i>=n.length)return n;s||0!=r||n.type!=e.topNode||(s=!0);for(let o=n.children.length-1;o>=0;o--){let l=n.positions[o],a=n.children[o],h;if(l<i&&a instanceof c){if(!(h=t(e,a,r-l,i-l,s)))break;return s?new c(n.type,n.children.slice(0,o).concat(h),n.positions.slice(0,o+1),l+h.length):h}}return null}(t,i.tree,n+i.offset,o.pos+i.offset,!1)))return{state:o.state,tree:l}}return{state:t.streamParser.startState(i?tu(i):4),tree:c.empty}}(t,n,s,this.to,null==i?void 0:i.state);this.state=o,this.parsedPos=this.chunkStart=s+l.length;for(let t=0;t<l.children.length;t++)this.chunks.push(l.children[t]),this.chunkPos.push(l.positions[t]);i&&this.parsedPos<i.viewport.from-1e5&&r.some(t=>t.from<=i.viewport.from&&t.to>=i.viewport.from)&&(this.state=this.lang.streamParser.startState(tu(i.state)),i.skipUntilInView(this.parsedPos,i.viewport.from),this.parsedPos=i.viewport.from),this.moveRangeIndex()}advance(){let t=Z.get(),e=null==this.stoppedAt?this.to:Math.min(this.to,this.stoppedAt),n=Math.min(e,this.chunkStart+512);for(t&&(n=Math.min(n,t.viewport.to));this.parsedPos<n;)this.parseLine(t);return(this.chunkStart<this.parsedPos&&this.finishChunk(),this.parsedPos>=e)?this.finish():t&&this.parsedPos>=t.viewport.to?(t.skipUntilInView(this.parsedPos,e),this.finish()):null}stopAt(t){this.stoppedAt=t}lineAfter(t){let e=this.input.chunk(t);if(this.input.lineChunks)"\n"==e&&(e="");else{let t=e.indexOf("\n");t>-1&&(e=e.slice(0,t))}return t+e.length<=this.to?e:e.slice(0,this.to-t)}nextLine(){let t=this.parsedPos,e=this.lineAfter(t),n=t+e.length;for(let t=this.rangeIndex;;){let r=this.ranges[t].to;if(r>=n||(e=e.slice(0,r-(n-e.length)),++t==this.ranges.length))break;let i=this.ranges[t].from,s=this.lineAfter(i);e+=s,n=i+s.length}return{line:e,end:n}}skipGapsTo(t,e,n){for(;;){let r=this.ranges[this.rangeIndex].to,i=t+e;if(n>0?r>i:r>=i)break;let s=this.ranges[++this.rangeIndex].from;e+=s-r}return e}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to<this.parsedPos;)this.rangeIndex++}emitToken(t,e,n,r){let i=4;if(this.ranges.length>1){r=this.skipGapsTo(e,r,1),e+=r;let t=this.chunk.length;r=this.skipGapsTo(n,r,-1),n+=r,i+=this.chunk.length-t}let s=this.chunk.length-4;return this.lang.streamParser.mergeTokens&&4==i&&s>=0&&this.chunk[s]==t&&this.chunk[s+2]==e?this.chunk[s+2]=n:this.chunk.push(t,e,n,i),r}parseLine(t){let{line:e,end:n}=this.nextLine(),r=0,{streamParser:i}=this.lang,s=new ef(e,t?t.state.tabSize:4,t?tu(t.state):2);if(s.eol())i.blankLine(this.state,s.indentUnit);else for(;!s.eol();){let t=ek(i.token,s,this.state);if(t&&(r=this.emitToken(this.lang.tokenTable.resolve(t),this.parsedPos+s.start,this.parsedPos+s.pos,r)),s.start>1e4)break}this.parsedPos=n,this.moveRangeIndex(),this.parsedPos<this.to&&this.parsedPos++}finishChunk(){let t=c.build({buffer:this.chunk,start:this.chunkStart,length:this.parsedPos-this.chunkStart,nodeSet:eb,topID:0,maxBufferLength:512,reused:this.chunkReused});t=new c(t.type,t.children,t.positions,t.length,[[this.lang.stateAfter,this.lang.streamParser.copyState(this.state)]]),this.chunks.push(t),this.chunkPos.push(this.chunkStart-this.ranges[0].from),this.chunk=[],this.chunkReused=void 0,this.chunkStart=this.parsedPos}finish(){return new c(this.lang.topNode,this.chunks,this.chunkPos,this.parsedPos-this.ranges[0].from).balance()}}function ek(t,e,n){e.start=e.pos;for(let r=0;r<10;r++){let r=t(e,n);if(e.pos>e.start)return r}throw Error("Stream parser failed to advance stream.")}let ex=Object.create(null),ey=[a.none],eb=new h(ey),ew=[],ev=Object.create(null),eS=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"]])eS[t]=eI(ex,e);class eC{constructor(t){this.extra=t,this.table=Object.assign(Object.create(null),eS)}resolve(t){return t?this.table[t]||(this.table[t]=eI(this.extra,t)):0}}let eA=new eC(ex);function eP(t,e){ew.indexOf(t)>-1||(ew.push(t),console.warn(e))}function eI(t,e){let n=[];for(let r of e.split(" ")){let e=[];for(let n of r.split(".")){let r=t[n]||R.pJ[n];r?"function"==typeof r?e.length?e=e.map(r):eP(n,`Modifier ${n} used at start of tag`):e.length?eP(n,`Tag ${n} used as modifier`):e=Array.isArray(r)?r:[r]:eP(n,`Unknown highlighting tag ${n}`)}for(let t of e)n.push(t)}if(!n.length)return 0;let r=e.replace(/ /g,"_"),i=r+" "+n.map(t=>t.id),s=ev[i];if(s)return s.id;let o=ev[i]=a.define({id:ey.length,name:r,props:[(0,R.Gv)({[r]:n})]});return ey.push(o),o.id}function eT(t){return t.length<=4096&&/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/.test(t)}function e_(t){for(let e=t.iter();!e.next().done;)if(eT(e.value))return!0;return!1}let eN=M.r$.define({combine:t=>t.some(t=>t)});function eB(t={}){let e=[eO];return t.alwaysIsolate&&e.push(eN.of(!0)),e}let eO=J.lg.fromClass(class{constructor(t){this.always=t.state.facet(eN)||t.textDirection!=J.Nm.LTR||t.state.facet(J.tk.perLineTextDirection),this.hasRTL=!this.always&&e_(t.state.doc),this.tree=H(t.state),this.decorations=this.always||this.hasRTL?eD(t,this.tree,this.always):J.p.none}update(t){var e;let n,r=t.state.facet(eN)||t.view.textDirection!=J.Nm.LTR||t.state.facet(J.tk.perLineTextDirection);if(r||this.hasRTL||(e=t.changes,n=!1,e.iterChanges((t,e,r,i,s)=>{!n&&e_(s)&&(n=!0)}),!n)||(this.hasRTL=!0),!r&&!this.hasRTL)return;let i=H(t.state);(r!=this.always||i!=this.tree||t.docChanged||t.viewportChanged)&&(this.tree=i,this.always=r,this.decorations=eD(t.view,i,r))}},{provide:t=>{function e(e){var n,r;return null!=(r=null==(n=e.plugin(t))?void 0:n.decorations)?r:J.p.none}return[J.tk.outerDecorations.of(e),M.Wl.lowest(J.tk.bidiIsolatedRanges.of(e))]}});function eD(t,e,n){let r=new M.f_,i=t.visibleRanges;for(let{from:o,to:l}of(n||(i=function(t,e){let n=e.iter(),r=0,i=[],s=null;for(let{from:e,to:o}of t)if(!s||!(s.to>e)||!((e=s.to)>=o))for(r+n.value.length<e&&(n.next(e-(r+n.value.length)),r=e);;){let t=r,e=r+n.value.length;if(!n.lineBreak&&eT(n.value)&&(s&&s.to>t-10?s.to=Math.min(o,e):i.push(s={from:t,to:Math.min(o,e)})),e>=o)break;r=e,n.next()}return i}(i,t.state.doc)),i))e.iterate({enter:t=>{let e=t.type.prop(s.isolate);e&&r.add(t.from,t.to,eE[e])},from:o,to:l});return r.finish()}let eE={rtl:J.p.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"rtl"},bidiIsolate:J.Nm.RTL}),ltr:J.p.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"ltr"},bidiIsolate:J.Nm.LTR}),auto:J.p.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"auto"},bidiIsolate:null})}}}]);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
"use strict";(self.webpackChunk_nocobase_plugin_field_code=self.webpackChunk_nocobase_plugin_field_code||[]).push([["555"],{517:function(O,Q,$){$.r(Q),$.d(Q,{java:function(){return l},javaLanguage:function(){return X}});var P=$(856),i=$(930);let a=(0,i.Gv)({null:i.pJ.null,instanceof:i.pJ.operatorKeyword,this:i.pJ.self,"new super assert open to with void":i.pJ.keyword,"class interface extends implements enum var":i.pJ.definitionKeyword,"module package import":i.pJ.moduleKeyword,"switch while for if else case default do break continue return try catch finally throw":i.pJ.controlKeyword,"requires exports opens uses provides public private protected static transitive abstract final strictfp synchronized native transient volatile throws":i.pJ.modifier,IntegerLiteral:i.pJ.integer,FloatingPointLiteral:i.pJ.float,"StringLiteral TextBlock":i.pJ.string,CharacterLiteral:i.pJ.character,LineComment:i.pJ.lineComment,BlockComment:i.pJ.blockComment,BooleanLiteral:i.pJ.bool,PrimitiveType:i.pJ.standard(i.pJ.typeName),TypeName:i.pJ.typeName,Identifier:i.pJ.variableName,"MethodName/Identifier":i.pJ.function(i.pJ.variableName),Definition:i.pJ.definition(i.pJ.variableName),ArithOp:i.pJ.arithmeticOperator,LogicOp:i.pJ.logicOperator,BitOp:i.pJ.bitwiseOperator,CompareOp:i.pJ.compareOperator,AssignOp:i.pJ.definitionOperator,UpdateOp:i.pJ.updateOperator,Asterisk:i.pJ.punctuation,Label:i.pJ.labelName,"( )":i.pJ.paren,"[ ]":i.pJ.squareBracket,"{ }":i.pJ.brace,".":i.pJ.derefOperator,", ;":i.pJ.separator}),r={__proto__:null,true:34,false:34,null:42,void:46,byte:48,short:48,int:48,long:48,char:48,float:48,double:48,boolean:48,extends:62,super:64,class:76,this:78,new:84,public:100,protected:102,private:104,abstract:106,static:108,final:110,strictfp:112,default:114,synchronized:116,native:118,transient:120,volatile:122,throws:150,implements:160,interface:166,enum:176,instanceof:238,open:267,module:269,requires:274,transitive:276,exports:278,to:280,opens:282,uses:284,provides:286,with:288,package:292,import:296,if:308,else:310,while:314,for:318,var:325,assert:332,switch:336,case:342,do:346,break:350,continue:354,return:358,throw:364,try:368,catch:372,finally:380},e=P.WQ.deserialize({version:14,states:"##jQ]QPOOQ$wQPOOO(bQQO'#H^O*iQQO'#CbOOQO'#Cb'#CbO*pQPO'#CaO*xOSO'#CpOOQO'#Hc'#HcOOQO'#Cu'#CuO,eQPO'#D_O-OQQO'#HmOOQO'#Hm'#HmO/gQQO'#HhO/nQQO'#HhOOQO'#Hh'#HhOOQO'#Hg'#HgO1rQPO'#DUO2PQPO'#GnO4wQPO'#D_O5OQPO'#DzO*pQPO'#E[O5qQPO'#E[OOQO'#DV'#DVO7SQQO'#HaO9^QQO'#EeO9eQPO'#EdO9jQPO'#EfOOQO'#Hb'#HbO7jQQO'#HbO:pQQO'#FhO:wQPO'#ExO:|QPO'#E}O:|QPO'#FPOOQO'#Ha'#HaOOQO'#HY'#HYOOQO'#Gh'#GhOOQO'#HX'#HXO<^QPO'#FiOOQO'#HW'#HWOOQO'#Gg'#GgQ]QPOOOOQO'#Hs'#HsO<cQPO'#HsO<hQPO'#D{O<hQPO'#EVO<hQPO'#EQO<pQPO'#HpO=RQQO'#EfO*pQPO'#C`O=ZQPO'#C`O*pQPO'#FcO=`QPO'#FeO=kQPO'#FkO=kQPO'#FnO<hQPO'#FsO=pQPO'#FpO:|QPO'#FwO=kQPO'#FyO]QPO'#GOO=uQPO'#GQO>QQPO'#GSO>]QPO'#GUO=kQPO'#GWO:|QPO'#GXO>dQPO'#GZO?QQQO'#HiO?mQQO'#CuO?t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iR*y'e[!lP!o'^*q-^/OR%X!gR#h`R,b)]R)a%kT-j+]-kQ/V-mR/z/WR/z/X",nodeNames:"⚠ LineComment BlockComment Program ModuleDeclaration MarkerAnnotation Identifier ScopedIdentifier . Annotation ) ( AnnotationArgumentList AssignmentExpression FieldAccess IntegerLiteral FloatingPointLiteral BooleanLiteral CharacterLiteral StringLiteral TextBlock null ClassLiteral void PrimitiveType TypeName ScopedTypeName GenericType TypeArguments AnnotatedType Wildcard extends super , ArrayType ] Dimension [ class this ParenthesizedExpression ObjectCreationExpression new ArgumentList } { ClassBody ; FieldDeclaration Modifiers public protected private abstract static final strictfp default synchronized native transient volatile VariableDeclarator Definition AssignOp ArrayInitializer MethodDeclaration TypeParameters TypeParameter TypeBound FormalParameters ReceiverParameter FormalParameter SpreadParameter Throws throws Block ClassDeclaration Superclass SuperInterfaces implements InterfaceTypeList InterfaceDeclaration interface ExtendsInterfaces InterfaceBody ConstantDeclaration EnumDeclaration enum EnumBody EnumConstant EnumBodyDeclarations AnnotationTypeDeclaration AnnotationTypeBody AnnotationTypeElementDeclaration StaticInitializer ConstructorDeclaration ConstructorBody ExplicitConstructorInvocation ArrayAccess MethodInvocation MethodName MethodReference ArrayCreationExpression Dimension AssignOp BinaryExpression CompareOp CompareOp LogicOp LogicOp BitOp BitOp BitOp ArithOp ArithOp ArithOp BitOp InstanceofExpression instanceof LambdaExpression InferredParameters TernaryExpression LogicOp : UpdateExpression UpdateOp UnaryExpression LogicOp BitOp CastExpression ElementValueArrayInitializer ElementValuePair open module ModuleBody ModuleDirective requires transitive exports to opens uses provides with PackageDeclaration package ImportDeclaration import Asterisk ExpressionStatement LabeledStatement Label IfStatement if else WhileStatement while ForStatement for ForSpec LocalVariableDeclaration var EnhancedForStatement ForSpec AssertStatement assert SwitchStatement switch SwitchBlock SwitchLabel case DoStatement do BreakStatement break ContinueStatement continue ReturnStatement return SynchronizedStatement ThrowStatement throw TryStatement try CatchClause catch CatchFormalParameter CatchType FinallyClause finally TryWithResourcesStatement ResourceSpecification Resource ClassContent",maxTerm:276,nodeProps:[["isolate",-4,1,2,18,19,""],["group",-26,4,47,76,77,82,87,92,145,147,150,151,153,156,158,161,163,165,167,172,174,176,178,180,181,183,191,"Statement",-25,6,13,14,15,16,17,18,19,20,21,22,39,40,41,99,100,102,103,106,118,120,122,125,127,130,"Expression",-7,23,24,25,26,27,29,34,"Type"],["openedBy",10,"(",44,"{"],["closedBy",11,")",45,"}"]],propSources:[a],skippedNodes:[0,1,2],repeatNodeCount:28,tokenData:"#'f_R!_OX%QXY'fYZ)bZ^'f^p%Qpq'fqr*|rs,^st%Qtu4euv5zvw7[wx8rxyAZyzAwz{Be{|CZ|}Dq}!OE_!O!PFx!P!Q! r!Q!R!,h!R![!0`![!]!>p!]!^!@Q!^!_!@n!_!`!BX!`!a!B{!a!b!Di!b!c!EX!c!}!LT!}#O!Mj#O#P%Q#P#Q!NW#Q#R!Nt#R#S4e#S#T%Q#T#o4e#o#p# h#p#q#!U#q#r##n#r#s#$[#s#y%Q#y#z'f#z$f%Q$f$g'f$g#BY4e#BY#BZ#$x#BZ$IS4e$IS$I_#$x$I_$I|4e$I|$JO#$x$JO$JT4e$JT$JU#$x$JU$KV4e$KV$KW#$x$KW&FU4e&FU&FV#$x&FV;'S4e;'S;=`5t<%lO4eS%VV&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QS%qO&YSS%tVOY&ZYZ%lZr&Zrs&ys;'S&Z;'S;=`'`<%lO&ZS&^VOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QS&vP;=`<%l%QS&|UOY&ZYZ%lZr&Zs;'S&Z;'S;=`'`<%lO&ZS'cP;=`<%l&Z_'mk&YS%yZOX%QXY'fYZ)bZ^'f^p%Qpq'fqr%Qrs%qs#y%Q#y#z'f#z$f%Q$f$g'f$g#BY%Q#BY#BZ'f#BZ$IS%Q$IS$I_'f$I_$I|%Q$I|$JO'f$JO$JT%Q$JT$JU'f$JU$K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\s*({|else\b)/}),TryStatement:(0,s.tC)({except:/^\s*({|catch|finally)\b/}),LabeledStatement:s.ze,SwitchBlock:O=>{let Q=O.textAfter,$=/^\s*\}/.test(Q),P=/^\s*(case|default)\b/.test(Q);return O.baseIndent+($?0:P?1:2)*O.unit},Block:(0,s.vw)({closing:"}"}),BlockComment:()=>null,Statement:(0,s.tC)({except:/^{/})}),s.x0.add({"Block SwitchBlock ClassBody ElementValueArrayInitializer ModuleBody EnumBody ConstructorBody InterfaceBody ArrayInitializer":s.Dv,BlockComment:O=>({from:O.from+2,to:O.to-2})})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/}});function l(){return new s.ri(X)}}}]);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
10
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Partial<{
|
|
11
|
+
[x: string]: any;
|
|
12
|
+
language: any;
|
|
13
|
+
height: any;
|
|
14
|
+
indentUnit: any;
|
|
15
|
+
}>, "ref"> & React.RefAttributes<unknown>>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
"use strict";(self.webpackChunk_nocobase_plugin_field_code=self.webpackChunk_nocobase_plugin_field_code||[]).push([["685"],{858:function(t,e,r){r.d(e,{Dv:function(){return U},Gn:function(){return B},K0:function(){return P},KC:function(){return h},Qf:function(){return th},R_:function(){return tk},SS:function(){return D},Um:function(){return tD},c:function(){return O},e7:function(){return tt},kU:function(){return c},mi:function(){return tu},n$:function(){return tC},nF:function(){return tm},nY:function(){return _},qp:function(){return p},qz:function(){return m},ri:function(){return C},tC:function(){return W},uj:function(){return N},vw:function(){return E},x0:function(){return F},y1:function(){return T},ze:function(){return R}});var n,o=r(419),i=r(263),s=r(990),l=r(930),a=r(502);let u=new o.md;function c(t){return i.r$.define({combine:t?e=>e.concat(t):void 0})}let h=new o.md;class f{constructor(t,e,r=[],n=""){this.data=t,this.name=n,i.yy.prototype.hasOwnProperty("tree")||Object.defineProperty(i.yy.prototype,"tree",{get(){return m(this)}}),this.parser=e,this.extension=[A.of(this),i.yy.languageData.of((t,e,r)=>{let n=d(t,e,r),o=n.type.prop(u);if(!o)return[];let i=t.facet(o),s=n.type.prop(h);if(s){let o=n.resolve(e-n.from,r);for(let e of s)if(e.test(o,t)){let r=t.facet(e.facet);return"replace"==e.type?r:r.concat(i)}}return i})].concat(r)}isActiveAt(t,e,r=-1){return d(t,e,r).type.prop(u)==this.data}findRegions(t){let e=t.facet(A);if((null==e?void 0:e.data)==this.data)return[{from:0,to:t.doc.length}];if(!e||!e.allowsNesting)return[];let r=[],n=(t,e)=>{if(t.prop(u)==this.data)return void r.push({from:e,to:e+t.length});let i=t.prop(o.md.mounted);if(i){if(i.tree.prop(u)==this.data){if(i.overlay)for(let t of i.overlay)r.push({from:t.from+e,to:t.to+e});else r.push({from:e,to:e+t.length});return}else if(i.overlay){let t=r.length;if(n(i.tree,i.overlay[0].from+e),r.length>t)return}}for(let r=0;r<t.children.length;r++){let i=t.children[r];i instanceof o.mp&&n(i,t.positions[r]+e)}};return n(m(t),0),r}get allowsNesting(){return!0}}function d(t,e,r){let n=t.facet(A),i=m(t).topNode;if(!n||n.allowsNesting)for(let t=i;t;t=t.enter(e,r,o.vj.ExcludeBuffers))t.type.isTop&&(i=t);return i}f.setState=i.Py.define();class p extends f{constructor(t,e,r){super(t,e,[],r),this.parser=e}static define(t){let e=c(t.languageData);return new p(e,t.parser.configure({props:[u.add(t=>t.isTop?e:void 0)]}),t.name)}configure(t,e){return new p(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function m(t){let e=t.field(f.state,!1);return e?e.tree:o.mp.empty}class g{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,e){let r=this.cursorPos-this.string.length;return t<r||e>=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-r,e-r)}}let k=null;class v{constructor(t,e,r=[],n,o,i,s,l){this.parser=t,this.state=e,this.fragments=r,this.tree=n,this.treeLen=o,this.viewport=i,this.skipped=s,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,e,r){return new v(t,e,[],o.mp.empty,0,r,[],null)}startParse(){return this.parser.startParse(new g(this.state.doc),this.fragments)}work(t,e){return(null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=o.mp.empty&&this.isDone(null!=e?e:this.state.doc.length))?(this.takeTree(),!0):this.withContext(()=>{var r;if("number"==typeof t){let e=Date.now()+t;t=()=>Date.now()>e}for(this.parse||(this.parse=this.startParse()),null!=e&&(null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&e<this.state.doc.length&&this.parse.stopAt(e);;){let n=this.parse.advance();if(n){if(this.fragments=this.withoutTempSkipped(o.i9.addTree(n,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!=(r=this.parse.stoppedAt)?r:this.state.doc.length,this.tree=n,this.parse=null,!(this.treeLen<(null!=e?e:this.state.doc.length)))return!0;this.parse=this.startParse()}if(t())return!1}})}takeTree(){let t,e;this.parse&&(t=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(e=this.parse.advance()););}),this.treeLen=t,this.tree=e,this.fragments=this.withoutTempSkipped(o.i9.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let e=k;k=this;try{return t()}finally{k=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=w(t,e.from,e.to);return t}changes(t,e){let{fragments:r,tree:n,treeLen:i,viewport:s,skipped:l}=this;if(this.takeTree(),!t.empty){let e=[];if(t.iterChangedRanges((t,r,n,o)=>e.push({fromA:t,toA:r,fromB:n,toB:o})),r=o.i9.applyChanges(r,e),n=o.mp.empty,i=0,s={from:t.mapPos(s.from,-1),to:t.mapPos(s.to,1)},this.skipped.length)for(let e of(l=[],this.skipped)){let r=t.mapPos(e.from,1),n=t.mapPos(e.to,-1);r<n&&l.push({from:r,to:n})}}return new v(this.parser,e,r,n,i,s,l,this.scheduleOn)}updateViewport(t){if(this.viewport.from==t.from&&this.viewport.to==t.to)return!1;this.viewport=t;let e=this.skipped.length;for(let e=0;e<this.skipped.length;e++){let{from:r,to:n}=this.skipped[e];r<t.to&&n>t.from&&(this.fragments=w(this.fragments,r,n),this.skipped.splice(e--,1))}return!(this.skipped.length>=e)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends o._b{createParse(e,r,n){let i=n[0].from,s=n[n.length-1].to;return{parsedPos:i,advance(){let e=k;if(e){for(let t of n)e.tempSkipped.push(t);t&&(e.scheduleOn=e.scheduleOn?Promise.all([e.scheduleOn,t]):t)}return this.parsedPos=s,new o.mp(o.Jq.none,[],[],s-i)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&0==e[0].from&&e[0].to>=t}static get(){return k}}function w(t,e,r){return o.i9.applyChanges(t,[{fromA:e,toA:r,fromB:e,toB:r}])}class y{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state),r=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,r)||e.takeTree(),new y(e)}static init(t){let e=Math.min(3e3,t.doc.length),r=v.create(t.facet(A).parser,t,{from:0,to:e});return r.work(20,e)||r.takeTree(),new y(r)}}f.state=i.QQ.define({create:y.init,update(t,e){for(let t of e.effects)if(t.is(f.setState))return t.value;return e.startState.facet(A)!=e.state.facet(A)?y.init(e.state):t.apply(e)}});let b=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};"undefined"!=typeof requestIdleCallback&&(b=t=>{let e=-1,r=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(r):cancelIdleCallback(e)});let x="undefined"!=typeof navigator&&(null==(n=navigator.scheduling)?void 0:n.isInputPending)?()=>navigator.scheduling.isInputPending():null,S=s.lg.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let e=this.view.state.field(f.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(f.state);e.tree==e.context.tree&&e.context.isDone(t.doc.length)||(this.working=b(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEnd<e&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=e+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:r,viewport:{to:n}}=this.view,o=r.field(f.state);if(o.tree==o.context.tree&&o.context.isDone(n+1e5))return;let i=Date.now()+Math.min(this.chunkBudget,100,t&&!x?Math.max(25,t.timeRemaining()-5):1e9),s=o.context.treeLen<n&&r.doc.length>n+1e3,l=o.context.work(()=>x&&x()||Date.now()>i,n+1e5*!s);this.chunkBudget-=Date.now()-e,(l||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:f.setState.of(new y(o.context))})),this.chunkBudget>0&&!(l&&!s)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(t=>(0,s.OO)(this.view.state,t)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),A=i.r$.define({combine:t=>t.length?t[0]:null,enables:t=>[f.state,S,s.tk.contentAttributes.compute([t],e=>{let r=e.facet(t);return r&&r.name?{"data-language":r.name}:{}})]});class C{constructor(t,e=[]){this.language=t,this.support=e,this.extension=[t,e]}}let J=i.r$.define(),O=i.r$.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function T(t){let e=t.facet(O);return 9==e.charCodeAt(0)?t.tabSize*e.length:e.length}function D(t,e){let r="",n=t.tabSize,o=t.facet(O)[0];if(" "==o){for(;e>=n;)r+=" ",e-=n;o=" "}for(let t=0;t<e;t++)r+=o;return r}function P(t,e){for(let r of(t instanceof i.yy&&(t=new B(t)),t.state.facet(J))){let n=r(t,e);if(void 0!==n)return n}let r=m(t.state);return r.length>=e?function(t,e,r){let n=e.resolveStack(r),o=e.resolveInner(r,-1).resolve(r,0).enterUnfinishedNodesBefore(r);if(o!=n.node){let t=[];for(let e=o;e&&!(e.from<n.node.from||e.to>n.node.to||e.from==n.node.from&&e.type==n.node.type);e=e.parent)t.push(e);for(let e=t.length-1;e>=0;e--)n={node:t[e],next:n}}return I(n,t,r)}(t,r,e):null}class B{constructor(t,e={}){this.state=t,this.options=e,this.unit=T(t)}lineAt(t,e=1){let r=this.state.doc.lineAt(t),{simulateBreak:n,simulateDoubleBreak:o}=this.options;if(null!=n&&n>=r.from&&n<=r.to)if(o&&n==t)return{text:"",from:t};else if(e<0?n<t:n<=t)return{text:r.text.slice(n-r.from),from:n};else return{text:r.text.slice(0,n-r.from),from:r.from};return r}textAfterPos(t,e=1){if(this.options.simulateDoubleBreak&&t==this.options.simulateBreak)return"";let{text:r,from:n}=this.lineAt(t,e);return r.slice(t-n,Math.min(r.length,t+100-n))}column(t,e=1){let{text:r,from:n}=this.lineAt(t,e),o=this.countColumn(r,t-n),i=this.options.overrideIndentation?this.options.overrideIndentation(n):-1;return i>-1&&(o+=i-this.countColumn(r,r.search(/\S|$/))),o}countColumn(t,e=t.length){return(0,i.IS)(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:r,from:n}=this.lineAt(t,e),o=this.options.overrideIndentation;if(o){let t=o(n);if(t>-1)return t}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}let N=new o.md;function I(t,e,r){for(let n=t;n;n=n.next){let t=function(t){let e=t.type.prop(N);if(e)return e;let r=t.firstChild,n;if(r&&(n=r.type.prop(o.md.closedBy))){let e=t.lastChild,r=e&&n.indexOf(e.name)>-1;return t=>L(t,!0,1,void 0,r&&!(t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak)?e.from:void 0)}return null==t.parent?M:null}(n.node);if(t)return t($.create(e,r,n))}return 0}function M(){return 0}class $ extends B{constructor(t,e,r){super(t.state,t.options),this.base=t,this.pos=e,this.context=r}get node(){return this.context.node}static create(t,e,r){return new $(t,e,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let e=this.state.doc.lineAt(t.from);for(;;){let r=t.resolve(e.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(function(t,e){for(let r=e;r;r=r.parent)if(t==r)return!0;return!1}(r,t))break;e=this.state.doc.lineAt(r.from)}return this.lineIndent(e.from)}continue(){return I(this.context.next,this.base,this.pos)}}function E({closing:t,align:e=!0,units:r=1}){return n=>L(n,e,r,t)}function L(t,e,r,n,o){let i=t.textAfter,s=i.match(/^\s*/)[0].length,l=n&&i.slice(s,s+n.length)==n||o==t.pos+s,a=e?function(t){let e=t.node,r=e.childAfter(e.from),n=e.lastChild;if(!r)return null;let o=t.options.simulateBreak,i=t.state.doc.lineAt(r.from),s=null==o||o<=i.from?i.to:Math.min(i.to,o);for(let t=r.to;;){let o=e.childAfter(t);if(!o||o==n)return null;if(!o.type.isSkipped){if(o.from>=s)return null;let t=/^ */.exec(i.text.slice(r.to-i.from))[0].length;return{from:r.from,to:r.to+t}}t=o.to}}(t):null;return a?l?t.column(a.from):t.column(a.to):t.baseIndent+(l?0:t.unit*r)}let R=t=>t.baseIndent;function W({except:t,units:e=1}={}){return r=>{let n=t&&t.test(r.textAfter);return r.baseIndent+(n?0:e*r.unit)}}function _(){return i.yy.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let r=t.newDoc,{head:n}=t.newSelection.main,o=r.lineAt(n);if(n>o.from+200)return t;let i=r.sliceString(o.from,n);if(!e.some(t=>t.test(i)))return t;let{state:s}=t,l=-1,a=[];for(let{head:t}of s.selection.ranges){let e=s.doc.lineAt(t);if(e.from==l)continue;l=e.from;let r=P(s,e.from);if(null==r)continue;let n=/^\s*/.exec(e.text)[0],o=D(s,r);n!=o&&a.push({from:e.from,to:e.from+n.length,insert:o})}return a.length?[t,{changes:a,sequential:!0}]:t})}let q=i.r$.define(),F=new o.md;function U(t){let e=t.firstChild,r=t.lastChild;return e&&e.to<r.from?{from:e.to,to:r.type.isError?t.to:r.from}:null}function j(t,e,r){for(let n of t.facet(q)){let o=n(t,e,r);if(o)return o}return function(t,e,r){let n=m(t);if(n.length<r)return null;let o=n.resolveStack(r,1),i=null;for(let s=o;s;s=s.next){let o=s.node;if(o.to<=r||o.from>r)continue;if(i&&o.from<e)break;let l=o.type.prop(F);if(l&&(o.to<n.length-50||n.length==t.doc.length||!function(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}(o))){let n=l(o,t);n&&n.from<=r&&n.from>=e&&n.to>r&&(i=n)}}return i}(t,e,r)}function Q(t,e){let r=e.mapPos(t.from,1),n=e.mapPos(t.to,-1);return r>=n?void 0:{from:r,to:n}}let z=i.Py.define({map:Q}),V=i.Py.define({map:Q});function G(t){let e=[];for(let{head:r}of t.state.selection.ranges)e.some(t=>t.from<=r&&t.to>=r)||e.push(t.lineBlockAt(r));return e}let H=i.QQ.define({create:()=>s.p.none,update(t,e){for(let r of(e.isUserEvent("delete")&&e.changes.iterChangedRanges((e,r)=>t=K(t,e,r)),t=t.map(e.changes),e.effects))if(r.is(z)&&!function(t,e,r){let n=!1;return t.between(e,e,(t,o)=>{t==e&&o==r&&(n=!0)}),n}(t,r.value.from,r.value.to)){let{preparePlaceholder:n}=e.state.facet(tr),o=n?s.p.replace({widget:new ts(n(e.state,r.value))}):ti;t=t.update({add:[o.range(r.value.from,r.value.to)]})}else r.is(V)&&(t=t.update({filter:(t,e)=>r.value.from!=t||r.value.to!=e,filterFrom:r.value.from,filterTo:r.value.to}));return e.selection&&(t=K(t,e.selection.main.head)),t},provide:t=>s.tk.decorations.from(t),toJSON(t,e){let r=[];return t.between(0,e.doc.length,(t,e)=>{r.push(t,e)}),r},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw RangeError("Invalid JSON for fold state");let e=[];for(let r=0;r<t.length;){let n=t[r++],o=t[r++];if("number"!=typeof n||"number"!=typeof o)throw RangeError("Invalid JSON for fold state");e.push(ti.range(n,o))}return s.p.set(e,!0)}});function K(t,e,r=e){let n=!1;return t.between(e,r,(t,o)=>{t<r&&o>e&&(n=!0)}),n?t.update({filterFrom:e,filterTo:r,filter:(t,n)=>t>=r||n<=e}):t}function X(t,e,r){var n;let o=null;return null==(n=t.field(H,!1))||n.between(e,r,(t,e)=>{(!o||o.from>t)&&(o={from:t,to:e})}),o}function Y(t,e){return t.field(H,!1)?e:e.concat(i.Py.appendConfig.of(tn()))}function Z(t,e,r=!0){let n=t.state.doc.lineAt(e.from).number,o=t.state.doc.lineAt(e.to).number;return s.tk.announce.of(`${t.state.phrase(r?"Folded lines":"Unfolded lines")} ${n} ${t.state.phrase("to")} ${o}.`)}let tt=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:t=>{for(let e of G(t)){let r=j(t.state,e.from,e.to);if(r)return t.dispatch({effects:Y(t.state,[z.of(r),Z(t,r)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:t=>{if(!t.state.field(H,!1))return!1;let e=[];for(let r of G(t)){let n=X(t.state,r.from,r.to);n&&e.push(V.of(n),Z(t,n,!1))}return e.length&&t.dispatch({effects:e}),e.length>0}},{key:"Ctrl-Alt-[",run:t=>{let{state:e}=t,r=[];for(let n=0;n<e.doc.length;){let o=t.lineBlockAt(n),i=j(e,o.from,o.to);i&&r.push(z.of(i)),n=(i?t.lineBlockAt(i.to):o).to+1}return r.length&&t.dispatch({effects:Y(t.state,r)}),!!r.length}},{key:"Ctrl-Alt-]",run:t=>{let e=t.state.field(H,!1);if(!e||!e.size)return!1;let r=[];return e.between(0,t.state.doc.length,(t,e)=>{r.push(V.of({from:t,to:e}))}),t.dispatch({effects:r}),!0}}],te={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},tr=i.r$.define({combine:t=>(0,i.BO)(t,te)});function tn(t){let e=[H,tc];return t&&e.push(tr.of(t)),e}function to(t,e){let{state:r}=t,n=r.facet(tr),o=e=>{let r=t.lineBlockAt(t.posAtDOM(e.target)),n=X(t.state,r.from,r.to);n&&t.dispatch({effects:V.of(n)}),e.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(t,o,e);let i=document.createElement("span");return i.textContent=n.placeholderText,i.setAttribute("aria-label",r.phrase("folded code")),i.title=r.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=o,i}let ti=s.p.replace({widget:new class extends s.l9{toDOM(t){return to(t,null)}}});class ts extends s.l9{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return to(t,this.value)}}let tl={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class ta extends s.SJ{constructor(t,e){super(),this.config=t,this.open=e}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let e=document.createElement("span");return e.textContent=this.open?this.config.openText:this.config.closedText,e.title=t.state.phrase(this.open?"Fold line":"Unfold line"),e}}function tu(t={}){let e={...tl,...t},r=new ta(e,!0),n=new ta(e,!1),o=s.lg.fromClass(class{constructor(t){this.from=t.viewport.from,this.markers=this.buildMarkers(t)}update(t){(t.docChanged||t.viewportChanged||t.startState.facet(A)!=t.state.facet(A)||t.startState.field(H,!1)!=t.state.field(H,!1)||m(t.startState)!=m(t.state)||e.foldingChanged(t))&&(this.markers=this.buildMarkers(t.view))}buildMarkers(t){let e=new i.f_;for(let o of t.viewportLineBlocks){let i=X(t.state,o.from,o.to)?n:j(t.state,o.from,o.to)?r:null;i&&e.add(o.from,o.from,i)}return e.finish()}}),{domEventHandlers:l}=e;return[o,(0,s.v5)({class:"cm-foldGutter",markers(t){var e;return(null==(e=t.plugin(o))?void 0:e.markers)||i.Xs.empty},initialSpacer:()=>new ta(e,!1),domEventHandlers:{...l,click:(t,e,r)=>{if(l.click&&l.click(t,e,r))return!0;let n=X(t.state,e.from,e.to);if(n)return t.dispatch({effects:V.of(n)}),!0;let o=j(t.state,e.from,e.to);return!!o&&(t.dispatch({effects:z.of(o)}),!0)}}}),tn()]}let tc=s.tk.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class th{constructor(t,e){let r;function n(t){let e=a.V.newName();return(r||(r=Object.create(null)))["."+e]=t,e}this.specs=t;let o="string"==typeof e.all?e.all:e.all?n(e.all):void 0,i=e.scope;this.scope=i instanceof f?t=>t.prop(u)==i.data:i?t=>t==i:void 0,this.style=(0,l.QR)(t.map(t=>({tag:t.tag,class:t.class||n(Object.assign({},t,{tag:null}))})),{all:o}).style,this.module=r?new a.V(r):null,this.themeType=e.themeType}static define(t,e){return new th(t,e||{})}}let tf=i.r$.define(),td=i.r$.define({combine:t=>t.length?[t[0]]:null});function tp(t){let e=t.facet(tf);return e.length?e:t.facet(td)}function tm(t,e){let r=[tg],n;return t instanceof th&&(t.module&&r.push(s.tk.styleModule.of(t.module)),n=t.themeType),(null==e?void 0:e.fallback)?r.push(td.of(t)):n?r.push(tf.computeN([s.tk.darkTheme],e=>e.facet(s.tk.darkTheme)==("dark"==n)?[t]:[])):r.push(tf.of(t)),r}let tg=i.Wl.high(s.lg.fromClass(class{constructor(t){this.markCache=Object.create(null),this.tree=m(t.state),this.decorations=this.buildDeco(t,tp(t.state)),this.decoratedTo=t.viewport.to}update(t){let e=m(t.state),r=tp(t.state),n=r!=tp(t.startState),{viewport:o}=t.view,i=t.changes.mapPos(this.decoratedTo,1);e.length<o.to&&!n&&e.type==this.tree.type&&i>=o.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=i):(e!=this.tree||t.viewportChanged||n)&&(this.tree=e,this.decorations=this.buildDeco(t.view,r),this.decoratedTo=o.to)}buildDeco(t,e){if(!e||!this.tree.length)return s.p.none;let r=new i.f_;for(let{from:n,to:o}of t.visibleRanges)(0,l.bW)(this.tree,e,(t,e,n)=>{r.add(t,e,this.markCache[n]||(this.markCache[n]=s.p.mark({class:n})))},n,o);return r.finish()}},{decorations:t=>t.decorations})),tk=th.define([{tag:l.pJ.meta,color:"#404740"},{tag:l.pJ.link,textDecoration:"underline"},{tag:l.pJ.heading,textDecoration:"underline",fontWeight:"bold"},{tag:l.pJ.emphasis,fontStyle:"italic"},{tag:l.pJ.strong,fontWeight:"bold"},{tag:l.pJ.strikethrough,textDecoration:"line-through"},{tag:l.pJ.keyword,color:"#708"},{tag:[l.pJ.atom,l.pJ.bool,l.pJ.url,l.pJ.contentSeparator,l.pJ.labelName],color:"#219"},{tag:[l.pJ.literal,l.pJ.inserted],color:"#164"},{tag:[l.pJ.string,l.pJ.deleted],color:"#a11"},{tag:[l.pJ.regexp,l.pJ.escape,l.pJ.special(l.pJ.string)],color:"#e40"},{tag:l.pJ.definition(l.pJ.variableName),color:"#00f"},{tag:l.pJ.local(l.pJ.variableName),color:"#30a"},{tag:[l.pJ.typeName,l.pJ.namespace],color:"#085"},{tag:l.pJ.className,color:"#167"},{tag:[l.pJ.special(l.pJ.variableName),l.pJ.macroName],color:"#256"},{tag:l.pJ.definition(l.pJ.propertyName),color:"#00c"},{tag:l.pJ.comment,color:"#940"},{tag:l.pJ.invalid,color:"#f00"}]),tv=s.tk.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),tw="()[]{}",ty=i.r$.define({combine:t=>(0,i.BO)(t,{afterCursor:!0,brackets:tw,maxScanDistance:1e4,renderMatch:tS})}),tb=s.p.mark({class:"cm-matchingBracket"}),tx=s.p.mark({class:"cm-nonmatchingBracket"});function tS(t){let e=[],r=t.matched?tb:tx;return e.push(r.range(t.start.from,t.start.to)),t.end&&e.push(r.range(t.end.from,t.end.to)),e}let tA=[i.QQ.define({create:()=>s.p.none,update(t,e){if(!e.docChanged&&!e.selection)return t;let r=[],n=e.state.facet(ty);for(let t of e.state.selection.ranges){if(!t.empty)continue;let o=tD(e.state,t.head,-1,n)||t.head>0&&tD(e.state,t.head-1,1,n)||n.afterCursor&&(tD(e.state,t.head,1,n)||t.head<e.state.doc.length&&tD(e.state,t.head+1,-1,n));o&&(r=r.concat(n.renderMatch(o,e.state)))}return s.p.set(r,!0)},provide:t=>s.tk.decorations.from(t)}),tv];function tC(t={}){return[ty.of(t),tA]}let tJ=new o.md;function tO(t,e,r){let n=t.prop(e<0?o.md.openedBy:o.md.closedBy);if(n)return n;if(1==t.name.length){let n=r.indexOf(t.name);if(n>-1&&n%2==+(e<0))return[r[n+e]]}return null}function tT(t){let e=t.type.prop(tJ);return e?e(t.node):t}function tD(t,e,r,n={}){let o=n.maxScanDistance||1e4,i=n.brackets||tw,s=m(t),l=s.resolveInner(e,r);for(let t=l;t;t=t.parent){let n=tO(t.type,r,i);if(n&&t.from<t.to){let o=tT(t);if(o&&(r>0?e>=o.from&&e<o.to:e>o.from&&e<=o.to))return function(t,e,r,n,o,i,s){let l=n.parent,a={from:o.from,to:o.to},u=0,c=null==l?void 0:l.cursor();if(c&&(r<0?c.childBefore(n.from):c.childAfter(n.to)))do if(r<0?c.to<=n.from:c.from>=n.to){if(0==u&&i.indexOf(c.type.name)>-1&&c.from<c.to){let t=tT(c);return{start:a,end:t?{from:t.from,to:t.to}:void 0,matched:!0}}else if(tO(c.type,r,s))u++;else if(tO(c.type,-r,s)){if(0==u){let t=tT(c);return{start:a,end:t&&t.from<t.to?{from:t.from,to:t.to}:void 0,matched:!1}}u--}}while(r<0?c.prevSibling():c.nextSibling());return{start:a,matched:!1}}(0,0,r,t,o,n,i)}}return function(t,e,r,n,o,i,s){let l=r<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),a=s.indexOf(l);if(a<0||a%2==0!=r>0)return null;let u={from:r<0?e-1:e,to:r>0?e+1:e},c=t.doc.iterRange(e,r>0?t.doc.length:0),h=0;for(let t=0;!c.next().done&&t<=i;){let i=c.value;r<0&&(t+=i.length);let l=e+t*r;for(let t=r>0?0:i.length-1,e=r>0?i.length:-1;t!=e;t+=r){let e=s.indexOf(i[t]);if(!(e<0)&&n.resolveInner(l+t,1).type==o)if(e%2==0==r>0)h++;else{if(1==h)return{start:u,end:{from:l+t,to:l+t+1},matched:e>>1==a>>1};h--}}r>0&&(t+=i.length)}return c.done?{start:u,matched:!1}:null}(t,e,r,s,l.type,o,i)}let tP=Object.create(null),tB=[o.Jq.none],tN=[],tI=Object.create(null),tM=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"]])tM[t]=function(t,e){let r=[];for(let n of e.split(" ")){let e=[];for(let r of n.split(".")){let n=t[r]||l.pJ[r];n?"function"==typeof n?e.length?e=e.map(n):t$(r,`Modifier ${r} used at start of tag`):e.length?t$(r,`Tag ${r} used as modifier`):e=Array.isArray(n)?n:[n]:t$(r,`Unknown highlighting tag ${r}`)}for(let t of e)r.push(t)}if(!r.length)return 0;let n=e.replace(/ /g,"_"),i=n+" "+r.map(t=>t.id),s=tI[i];if(s)return s.id;let a=tI[i]=o.Jq.define({id:tB.length,name:n,props:[(0,l.Gv)({[n]:r})]});return tB.push(a),a.id}(tP,e);function t$(t,e){tN.indexOf(t)>-1||(tN.push(t),console.warn(e))}s.Nm.RTL,s.Nm.LTR}}]);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
"use strict";(self.webpackChunk_nocobase_plugin_field_code=self.webpackChunk_nocobase_plugin_field_code||[]).push([["320"],{509:function(e,t,n){function r(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}n.r(t),n.d(t,{groovy:function(){return y}});var i,a=r("abstract as assert boolean break byte case catch char class const continue def default do double else enum extends final finally float for goto if implements import in instanceof int interface long native new package private protected public return short static strictfp super switch synchronized threadsafe throw throws trait transient try void volatile while"),o=r("catch class def do else enum finally for if interface switch trait try while"),l=r("return break continue"),s=r("null true false this");function u(e,t){var n=e.next();if('"'==n||"'"==n)return c(n,e,t);if(/[\[\]{}\(\),;\:\.]/.test(n))return i=n,null;if(/\d/.test(n))return e.eatWhile(/[\w\.]/),e.eat(/eE/)&&(e.eat(/\+\-/),e.eatWhile(/\d/)),"number";if("/"==n){if(e.eat("*"))return t.tokenize.push(p),p(e,t);if(e.eat("/"))return e.skipToEnd(),"comment";if(k(t.lastToken,!1))return c(n,e,t)}if("-"==n&&e.eat(">"))return i="->",null;if(/[+\-*&%=<>!?|\/~]/.test(n))return e.eatWhile(/[+\-*&%=<>|~]/),"operator";if(e.eatWhile(/[\w\$_]/),"@"==n)return e.eatWhile(/[\w\$_\.]/),"meta";if("."==t.lastToken)return"property";if(e.eat(":"))return i="proplabel","property";var r=e.current();return s.propertyIsEnumerable(r)?"atom":a.propertyIsEnumerable(r)?(o.propertyIsEnumerable(r)?i="newstatement":l.propertyIsEnumerable(r)&&(i="standalone"),"keyword"):"variable"}function c(e,t,n){var r=!1;if("/"!=e&&t.eat(e))if(!t.eat(e))return"string";else r=!0;function i(t,n){for(var i,a=!1,o=!r;null!=(i=t.next());){if(i==e&&!a){if(!r)break;if(t.match(e+e)){o=!0;break}}if('"'==e&&"$"==i&&!a){if(t.eat("{"))return n.tokenize.push(function(){var e=1;function t(t,n){if("}"==t.peek()){if(0==--e)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n)}else"{"==t.peek()&&e++;return u(t,n)}return t.isBase=!0,t}()),"string";else if(t.match(/^\w/,!1))return n.tokenize.push(f),"string"}a=!a&&"\\"==i}return o&&n.tokenize.pop(),"string"}return n.tokenize.push(i),i(t,n)}function f(e,t){var n=e.match(/^(\.|[\w\$_]+)/);return(n&&e.match("."==n[0]?/^[\w$_]/:/^\./)||t.tokenize.pop(),n)?"."==n[0]?null:"variable":t.tokenize[t.tokenize.length-1](e,t)}function p(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize.pop();break}r="*"==n}return"comment"}function k(e,t){return!e||"operator"==e||"->"==e||/[\.\[\{\(,;:]/.test(e)||"newstatement"==e||"keyword"==e||"proplabel"==e||"standalone"==e&&!t}function m(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function d(e,t,n){return e.context=new m(e.indented,t,n,null,e.context)}function h(e){var t=e.context.type;return(")"==t||"]"==t||"}"==t)&&(e.indented=e.context.indented),e.context=e.context.prev}u.isBase=!0;let y={name:"groovy",startState:function(e){return{tokenize:[u],context:new m(-e,0,"top",!1),indented:0,startOfLine:!0,lastToken:null}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"statement"!=n.type||k(t.lastToken,!0)||(h(t),n=t.context)),e.eatSpace())return null;i=null;var r=t.tokenize[t.tokenize.length-1](e,t);if("comment"==r)return r;if(null==n.align&&(n.align=!0),(";"==i||":"==i)&&"statement"==n.type)h(t);else if("->"==i&&"statement"==n.type&&"}"==n.prev.type)h(t),t.context.align=!1;else if("{"==i)d(t,e.column(),"}");else if("["==i)d(t,e.column(),"]");else if("("==i)d(t,e.column(),")");else if("}"==i){for(;"statement"==n.type;)n=h(t);for("}"==n.type&&(n=h(t));"statement"==n.type;)n=h(t)}else i==n.type?h(t):("}"==n.type||"top"==n.type||"statement"==n.type&&"newstatement"==i)&&d(t,e.column(),"statement");return t.startOfLine=!1,t.lastToken=i||r,r},indent:function(e,t,n){if(!e.tokenize[e.tokenize.length-1].isBase)return null;var r=t&&t.charAt(0),i=e.context;"statement"!=i.type||k(e.lastToken,!0)||(i=i.prev);var a=r==i.type;return"statement"==i.type?i.indented+("{"==r?0:n.unit):i.align?i.column+ +!a:i.indented+(a?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""']}}}}}]);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
"use strict";(self.webpackChunk_nocobase_plugin_field_code=self.webpackChunk_nocobase_plugin_field_code||[]).push([["856"],{490:function(t,e,n){n.d(e,{B1:function(){return tk},GA:function(){return ty},Gn:function(){return tr},Mb:function(){return a},eC:function(){return c},vQ:function(){return tu},ys:function(){return tO}});var i=n(263),o=n(990),s=n(858);class l{constructor(t,e,n,i){this.state=t,this.pos=e,this.explicit=n,this.view=i,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(t){let e=(0,s.qz)(this.state).resolveInner(this.pos,-1);for(;e&&0>t.indexOf(e.name);)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}matchBefore(t){let e=this.state.doc.lineAt(this.pos),n=Math.max(e.from,this.pos-250),i=e.text.slice(n-e.from,this.pos-e.from),o=i.search(f(t,!1));return o<0?null:{from:n+o,to:this.pos,text:i.slice(o)}}get aborted(){return null==this.abortListeners}addEventListener(t,e,n){"abort"==t&&this.abortListeners&&(this.abortListeners.push(e),n&&n.onDocChange&&(this.abortOnDocChange=!0))}}function r(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function a(t){let e=t.map(t=>"string"==typeof t?{label:t}:t),[n,i]=e.every(t=>/^\w+$/.test(t.label))?[/\w*$/,/\w+$/]:function(t){let e=Object.create(null),n=Object.create(null);for(let{label:i}of t){e[i[0]]=!0;for(let t=1;t<i.length;t++)n[i[t]]=!0}let i=r(e)+r(n)+"*$";return[RegExp("^"+i),new RegExp(i)]}(e);return t=>{let o=t.matchBefore(i);return o||t.explicit?{from:o?o.from:t.pos,options:e,validFor:n}:null}}function c(t,e){return n=>{for(let e=(0,s.qz)(n.state).resolveInner(n.pos,-1);e;e=e.parent){if(t.indexOf(e.name)>-1)return null;if(e.type.isTop)break}return e(n)}}class h{constructor(t,e,n,i){this.completion=t,this.source=e,this.match=n,this.score=i}}function p(t){return t.selection.main.from}function f(t,e){var n;let{source:i}=t,o=e&&"^"!=i[0],s="$"!=i[i.length-1];return o||s?RegExp(`${o?"^":""}(?:${i})${s?"$":""}`,null!=(n=t.flags)?n:t.ignoreCase?"i":""):t}let u=i.q6.define(),d=new WeakMap;function m(t){if(!Array.isArray(t))return t;let e=d.get(t);return e||d.set(t,e=a(t)),e}let g=i.Py.define(),b=i.Py.define();class v{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let e=0;e<t.length;){let n=(0,i.gm)(t,e),o=(0,i.nZ)(n);this.chars.push(n);let s=t.slice(e,e+o),l=s.toUpperCase();this.folded.push((0,i.gm)(l==s?s.toLowerCase():l,0)),e+=o}this.astral=t.length!=this.chars.length}ret(t,e){return this.score=t,this.matched=e,this}match(t){if(0==this.pattern.length)return this.ret(-100,[]);if(t.length<this.pattern.length)return null;let{chars:e,folded:n,any:o,precise:s,byWord:l}=this;if(1==e.length){let o=(0,i.gm)(t,0),s=(0,i.nZ)(o),l=s==t.length?0:-100;if(o==e[0]);else{if(o!=n[0])return null;l+=-200}return this.ret(l,[0,s])}let r=t.indexOf(this.pattern);if(0==r)return this.ret(t.length==this.pattern.length?0:-100,[0,this.pattern.length]);let a=e.length,c=0;if(r<0){for(let s=0,l=Math.min(t.length,200);s<l&&c<a;){let l=(0,i.gm)(t,s);(l==e[c]||l==n[c])&&(o[c++]=s),s+=(0,i.nZ)(l)}if(c<a)return null}let h=0,p=0,f=!1,u=0,d=-1,m=-1,g=/[a-z]/.test(t),b=!0;for(let o=0,c=Math.min(t.length,200),v=0;o<c&&p<a;){let c=(0,i.gm)(t,o);r<0&&(h<a&&c==e[h]&&(s[h++]=o),u<a&&(c==e[u]||c==n[u]?(0==u&&(d=o),m=o+1,u++):u=0));let y,w=c<255?c>=48&&c<=57||c>=97&&c<=122?2:+(c>=65&&c<=90):(y=(0,i.bg)(c))!=y.toLowerCase()?1:2*(y!=y.toUpperCase());(!o||1==w&&g||0==v&&0!=w)&&(e[p]==c||n[p]==c&&(f=!0)?l[p++]=o:l.length&&(b=!1)),v=w,o+=(0,i.nZ)(c)}return p==a&&0==l[0]&&b?this.result(-100+(f?-200:0),l,t):u==a&&0==d?this.ret(-200-t.length+(m==t.length?0:-100),[0,m]):r>-1?this.ret(-700-t.length,[r,r+this.pattern.length]):u==a?this.ret(-900-t.length,[d,m]):p==a?this.result(-100+(f?-200:0)+-700+(b?0:-1100),l,t):2==e.length?null:this.result((o[0]?-700:0)+-200+-1100,o,t)}result(t,e,n){let o=[],s=0;for(let t of e){let e=t+(this.astral?(0,i.nZ)((0,i.gm)(n,t)):1);s&&o[s-1]==t?o[s-1]=e:(o[s++]=t,o[s++]=e)}return this.ret(t-n.length,o)}}class y{constructor(t){this.pattern=t,this.matched=[],this.score=0,this.folded=t.toLowerCase()}match(t){if(t.length<this.pattern.length)return null;let e=t.slice(0,this.pattern.length),n=e==this.pattern?0:e.toLowerCase()==this.folded?-200:null;return null==n?null:(this.matched=[0,e.length],this.score=n+(t.length==this.pattern.length?0:-100),this)}}let w=i.r$.define({combine:t=>(0,i.BO)(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:C,filterStrict:!1,compareCompletions:(t,e)=>t.label.localeCompare(e.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,e)=>t&&e,closeOnBlur:(t,e)=>t&&e,icons:(t,e)=>t&&e,tooltipClass:(t,e)=>n=>x(t(n),e(n)),optionClass:(t,e)=>n=>x(t(n),e(n)),addToOptions:(t,e)=>t.concat(e),filterStrict:(t,e)=>t||e})});function x(t,e){return t?e?t+" "+e:t:e}function C(t,e,n,i,s,l){let r=t.textDirection==o.Nm.RTL,a=r,c=!1,h="top",p,f,u=e.left-s.left,d=s.right-e.right,m=i.right-i.left,g=i.bottom-i.top;if(a&&u<Math.min(m,d)?a=!1:!a&&d<Math.min(m,u)&&(a=!0),m<=(a?u:d))p=Math.max(s.top,Math.min(n.top,s.bottom-g))-e.top,f=Math.min(400,a?u:d);else{c=!0,f=Math.min(400,(r?e.right:s.right-e.left)-30);let t=s.bottom-e.bottom;t>=g||t>e.top?p=n.bottom-e.top:(h="bottom",p=e.bottom-n.top)}let b=(e.bottom-e.top)/l.offsetHeight,v=(e.right-e.left)/l.offsetWidth;return{style:`${h}: ${p/b}px; max-width: ${f/v}px`,class:"cm-completionInfo-"+(c?r?"left-narrow":"right-narrow":a?"left":"right")}}function I(t,e,n){if(t<=n)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let t=Math.floor(e/n);return{from:t*n,to:(t+1)*n}}let i=Math.floor((t-e)/n);return{from:t-(i+1)*n,to:t-i*n}}class O{constructor(t,e,n){let i;this.view=t,this.stateField=e,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:t=>this.placeInfo(t),key:this},this.space=null,this.currentClass="";let o=t.state.field(e),{options:s,selected:l}=o.open,r=t.state.facet(w);this.optionContent=(i=r.addToOptions.slice(),r.icons&&i.push({render(t){let e=document.createElement("div");return e.classList.add("cm-completionIcon"),t.type&&e.classList.add(...t.type.split(/\s+/g).map(t=>"cm-completionIcon-"+t)),e.setAttribute("aria-hidden","true"),e},position:20}),i.push({render(t,e,n,i){let o=document.createElement("span");o.className="cm-completionLabel";let s=t.displayLabel||t.label,l=0;for(let t=0;t<i.length;){let e=i[t++],n=i[t++];e>l&&o.appendChild(document.createTextNode(s.slice(l,e)));let r=o.appendChild(document.createElement("span"));r.appendChild(document.createTextNode(s.slice(e,n))),r.className="cm-completionMatchedText",l=n}return l<s.length&&o.appendChild(document.createTextNode(s.slice(l))),o},position:50},{render(t){if(!t.detail)return null;let e=document.createElement("span");return e.className="cm-completionDetail",e.textContent=t.detail,e},position:80}),i.sort((t,e)=>t.position-e.position).map(t=>t.render)),this.optionClass=r.optionClass,this.tooltipClass=r.tooltipClass,this.range=I(s.length,l,r.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",n=>{let{options:i}=t.state.field(e).open;for(let e=n.target,o;e&&e!=this.dom;e=e.parentNode)if("LI"==e.nodeName&&(o=/-(\d+)$/.exec(e.id))&&+o[1]<i.length){this.applyCompletion(t,i[+o[1]]),n.preventDefault();return}}),this.dom.addEventListener("focusout",e=>{let n=t.state.field(this.stateField,!1);n&&n.tooltip&&t.state.facet(w).closeOnBlur&&e.relatedTarget!=t.contentDOM&&t.dispatch({effects:b.of(null)})}),this.showOptions(s,o.id)}mount(){this.updateSel()}showOptions(t,e){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,e,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(t){var e;let n=t.state.field(this.stateField),i=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),n!=i){let{options:o,selected:s,disabled:l}=n.open;i.open&&i.open.options==o||(this.range=I(o.length,s,t.state.facet(w).maxRenderedOptions),this.showOptions(o,n.id)),this.updateSel(),l!=(null==(e=i.open)?void 0:e.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!l)}}updateTooltipClass(t){let e=this.tooltipClass(t);if(e!=this.currentClass){for(let t of this.currentClass.split(" "))t&&this.dom.classList.remove(t);for(let t of e.split(" "))t&&this.dom.classList.add(t);this.currentClass=e}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),e=t.open;if((e.selected>-1&&e.selected<this.range.from||e.selected>=this.range.to)&&(this.range=I(e.options.length,e.selected,this.view.state.facet(w).maxRenderedOptions),this.showOptions(e.options,t.id)),this.updateSelectedOption(e.selected)){this.destroyInfo();let{completion:n}=e.options[e.selected],{info:i}=n;if(!i)return;let s="string"==typeof i?document.createTextNode(i):i(n);if(!s)return;"then"in s?s.then(e=>{e&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(e,n)}).catch(t=>(0,o.OO)(this.view.state,t,"completion info")):this.addInfoPane(s,n)}}addInfoPane(t,e){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",null!=t.nodeType)n.appendChild(t),this.infoDestroy=null;else{let{dom:e,destroy:i}=t;n.appendChild(e),this.infoDestroy=i||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){var e,n;let i,o,s,l=null;for(let e=this.list.firstChild,n=this.range.from;e;e=e.nextSibling,n++)"LI"==e.nodeName&&e.id?n==t?e.hasAttribute("aria-selected")||(e.setAttribute("aria-selected","true"),l=e):e.hasAttribute("aria-selected")&&e.removeAttribute("aria-selected"):n--;return l&&(e=this.list,n=l,i=e.getBoundingClientRect(),o=n.getBoundingClientRect(),s=i.height/e.offsetHeight,o.top<i.top?e.scrollTop-=(i.top-o.top)/s:o.bottom>i.bottom&&(e.scrollTop+=(o.bottom-i.bottom)/s)),l}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let e=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),i=t.getBoundingClientRect(),o=this.space;if(!o){let t=this.dom.ownerDocument.documentElement;o={left:0,top:0,right:t.clientWidth,bottom:t.clientHeight}}return i.top>Math.min(o.bottom,e.bottom)-10||i.bottom<Math.max(o.top,e.top)+10?null:this.view.state.facet(w).positionInfo(this.view,e,i,n,o,this.dom)}placeInfo(t){this.info&&(t?(t.style&&(this.info.style.cssText=t.style),this.info.className="cm-tooltip cm-completionInfo "+(t.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(t,e,n){let i=document.createElement("ul");i.id=e,i.setAttribute("role","listbox"),i.setAttribute("aria-expanded","true"),i.setAttribute("aria-label",this.view.state.phrase("Completions")),i.addEventListener("mousedown",t=>{t.target==i&&t.preventDefault()});let o=null;for(let s=n.from;s<n.to;s++){let{completion:l,match:r}=t[s],{section:a}=l;if(a){let t="string"==typeof a?a:a.name;t!=o&&(s>n.from||0==n.from)&&(o=t,"string"!=typeof a&&a.header?i.appendChild(a.header(a)):i.appendChild(document.createElement("completion-section")).textContent=t)}let c=i.appendChild(document.createElement("li"));c.id=e+"-"+s,c.setAttribute("role","option");let h=this.optionClass(l);for(let t of(h&&(c.className=h),this.optionContent)){let e=t(l,this.view.state,this.view,r);e&&c.appendChild(e)}}return n.from&&i.classList.add("cm-completionListIncompleteTop"),n.to<t.length&&i.classList.add("cm-completionListIncompleteBottom"),i}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function k(t){return 100*(t.boost||0)+10*!!t.apply+5*!!t.info+ +!!t.type}class T{constructor(t,e,n,i,o,s){this.options=t,this.attrs=e,this.tooltip=n,this.timestamp=i,this.selected=o,this.disabled=s}setSelected(t,e){return t==this.selected||t>=this.options.length?this:new T(this.options,S(e,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,e,n,i,o,s){if(i&&!s&&t.some(t=>t.isPending))return i.setDisabled();let l=function(t,e){let n=[],i=null,o=t=>{n.push(t);let{section:e}=t.completion;if(e){i||(i=[]);let t="string"==typeof e?e:e.name;i.some(e=>e.name==t)||i.push("string"==typeof e?{name:t}:e)}},s=e.facet(w);for(let i of t)if(i.hasResult()){let t=i.result.getMatch;if(!1===i.result.filter)for(let e of i.result.options)o(new h(e,i.source,t?t(e):[],1e9-n.length));else{let n=e.sliceDoc(i.from,i.to),l,r=s.filterStrict?new y(n):new v(n);for(let e of i.result.options)if(l=r.match(e.label)){let n=e.displayLabel?t?t(e,l.matched):[]:l.matched;o(new h(e,i.source,n,l.score+(e.boost||0)))}}}if(i){let t=Object.create(null),e=0;for(let n of i.sort((t,e)=>{var n,i;return(null!=(n=t.rank)?n:1e9)-(null!=(i=e.rank)?i:1e9)||(t.name<e.name?-1:1)}))e-=1e5,t[n.name]=e;for(let e of n){let{section:n}=e.completion;n&&(e.score+=t["string"==typeof n?n:n.name])}}let l=[],r=null,a=s.compareCompletions;for(let t of n.sort((t,e)=>e.score-t.score||a(t.completion,e.completion))){let e=t.completion;r&&r.label==e.label&&r.detail==e.detail&&(null==r.type||null==e.type||r.type==e.type)&&r.apply==e.apply&&r.boost==e.boost?k(t.completion)>k(r)&&(l[l.length-1]=t):l.push(t),r=t.completion}return l}(t,e);if(!l.length)return i&&t.some(t=>t.isPending)?i.setDisabled():null;let r=e.facet(w).selectOnOpen?0:-1;if(i&&i.selected!=r&&-1!=i.selected){let t=i.options[i.selected].completion;for(let e=0;e<l.length;e++)if(l[e].completion==t){r=e;break}}return new T(l,S(n,r),{pos:t.reduce((t,e)=>e.hasResult()?Math.min(t,e.from):t,1e8),create:q,above:o.aboveCursor},i?i.timestamp:Date.now(),r,!1)}map(t){return new T(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.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)}}class D{constructor(t,e,n){this.active=t,this.id=e,this.open=n}static start(){return new D(L,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(t){let{state:e}=t,n=e.facet(w),i=(n.override||e.languageDataAt("autocomplete",p(e)).map(m)).map(e=>(this.active.find(t=>t.source==e)||new E(e,+!!this.active.some(t=>0!=t.state))).update(t,n));i.length==this.active.length&&i.every((t,e)=>t==this.active[e])&&(i=this.active);let o=this.open,s=t.effects.some(t=>t.is(B));for(let l of(o&&t.docChanged&&(o=o.map(t.changes)),t.selection||i.some(e=>e.hasResult()&&t.changes.touchesRange(e.from,e.to))||!function(t,e){if(t==e)return!0;for(let n=0,i=0;;){for(;n<t.length&&!t[n].hasResult();)n++;for(;i<e.length&&!e[i].hasResult();)i++;let o=n==t.length,s=i==e.length;if(o||s)return o==s;if(t[n++].result!=e[i++].result)return!1}}(i,this.active)||s?o=T.build(i,e,this.id,o,n,s):o&&o.disabled&&!i.some(t=>t.isPending)&&(o=null),!o&&i.every(t=>!t.isPending)&&i.some(t=>t.hasResult())&&(i=i.map(t=>t.hasResult()?new E(t.source,0):t)),t.effects))l.is(j)&&(o=o&&o.setSelected(l.value,this.id));return i==this.active&&o==this.open?this:new D(i,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?P:A}}let P={"aria-autocomplete":"list"},A={};function S(t,e){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(n["aria-activedescendant"]=t+"-"+e),n}let L=[];function R(t,e){if(t.isUserEvent("input.complete")){let n=t.annotation(u);if(n&&e.activateOnCompletion(n))return 12}let n=t.isUserEvent("input.type");return n&&e.activateOnTyping?5:n?1:t.isUserEvent("delete.backward")?2:t.selection?8:16*!!t.docChanged}class E{constructor(t,e,n=!1){this.source=t,this.state=e,this.explicit=n}hasResult(){return!1}get isPending(){return 1==this.state}update(t,e){let n=R(t,e),i=this;for(let e of((8&n||16&n&&this.touches(t))&&(i=new E(i.source,0)),4&n&&0==i.state&&(i=new E(this.source,1)),i=i.updateFor(t,n),t.effects))if(e.is(g))i=new E(i.source,1,e.value);else if(e.is(b))i=new E(i.source,0);else if(e.is(B))for(let t of e.value)t.source==i.source&&(i=t);return i}updateFor(t,e){return this.map(t.changes)}map(t){return this}touches(t){return t.changes.touchesRange(p(t.state))}}class M extends E{constructor(t,e,n,i,o,s){super(t,3,e),this.limit=n,this.result=i,this.from=o,this.to=s}hasResult(){return!0}updateFor(t,e){var n;if(!(3&e))return this.map(t.changes);let i=this.result;i.map&&!t.changes.empty&&(i=i.map(i,t.changes));let o=t.changes.mapPos(this.from),s=t.changes.mapPos(this.to,1),r=p(t.state);if(r>s||!i||2&e&&(p(t.startState)==this.from||r<this.limit))return new E(this.source,4&e?1:0);let a=t.changes.mapPos(this.limit);return!function(t,e,n,i){if(!t)return!1;let o=e.sliceDoc(n,i);return"function"==typeof t?t(o,n,i,e):f(t,!0).test(o)}(i.validFor,t.state,o,s)?i.update&&(i=i.update(i,o,s,new l(t.state,r,!1)))?new M(this.source,this.explicit,a,i,i.from,null!=(n=i.to)?n:p(t.state)):new E(this.source,1,this.explicit):new M(this.source,this.explicit,a,i,o,s)}map(t){return t.empty?this:(this.result.map?this.result.map(this.result,t):this.result)?new M(this.source,this.explicit,t.mapPos(this.limit),this.result,t.mapPos(this.from),t.mapPos(this.to,1)):new E(this.source,0)}touches(t){return t.changes.touchesRange(this.from,this.to)}}let B=i.Py.define({map:(t,e)=>t.map(t=>t.map(e))}),j=i.Py.define(),$=i.QQ.define({create:()=>D.start(),update:(t,e)=>t.update(e),provide:t=>[o.hJ.from(t,t=>t.tooltip),o.tk.contentAttributes.from(t,t=>t.attrs)]});function F(t,e){let n=e.completion.apply||e.completion.label,o=t.state.field($).active.find(t=>t.source==e.source);return o instanceof M&&("string"==typeof n?t.dispatch(Object.assign(Object.assign({},function(t,e,n,o){let{main:s}=t.selection,l=n-s.from,r=o-s.from;return Object.assign(Object.assign({},t.changeByRange(a=>{if(a!=s&&n!=o&&t.sliceDoc(a.from+l,a.from+r)!=t.sliceDoc(n,o))return{range:a};let c=t.toText(e);return{changes:{from:a.from+l,to:o==s.from?a.to:a.from+r,insert:c},range:i.jT.cursor(a.from+l+c.length)}})),{scrollIntoView:!0,userEvent:"input.complete"})}(t.state,n,o.from,o.to)),{annotations:u.of(e.completion)})):n(t,e.completion,o.from,o.to),!0)}let q=t=>new O(t,$,F);function N(t,e="option"){return n=>{let i=n.state.field($,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp<n.state.facet(w).interactionDelay)return!1;let s=1,l;"page"==e&&(l=(0,o.gB)(n,i.open.tooltip))&&(s=Math.max(2,Math.floor(l.dom.offsetHeight/l.dom.querySelector("li").offsetHeight)-1));let{length:r}=i.open.options,a=i.open.selected>-1?i.open.selected+s*(t?1:-1):t?0:r-1;return a<0?a="page"==e?0:r-1:a>=r&&(a="page"==e?r-1:0),n.dispatch({effects:j.of(a)}),!0}}let U=t=>!!t.state.field($,!1)&&(t.dispatch({effects:g.of(!0)}),!0);class W{constructor(t,e){this.active=t,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}}let z=o.lg.fromClass(class{constructor(t){for(let e of(this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0,t.state.field($).active))e.isPending&&this.startQuery(e)}update(t){let e=t.state.field($),n=t.state.facet(w);if(!t.selectionSet&&!t.docChanged&&t.startState.field($)==e)return;let i=t.transactions.some(t=>{let e=R(t,n);return 8&e||(t.selection||t.docChanged)&&!(3&e)});for(let e=0;e<this.running.length;e++){let n=this.running[e];if(i||n.context.abortOnDocChange&&t.docChanged||n.updates.length+t.transactions.length>50&&Date.now()-n.time>1e3){for(let t of n.context.abortListeners)try{t()}catch(t){(0,o.OO)(this.view.state,t)}n.context.abortListeners=null,this.running.splice(e--,1)}else n.updates.push(...t.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some(t=>t.effects.some(t=>t.is(g)))&&(this.pendingStart=!0);let s=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(t=>t.isPending&&!this.running.some(e=>e.active.source==t.source))?setTimeout(()=>this.startUpdate(),s):-1,0!=this.composing)for(let e of t.transactions)e.isUserEvent("input.type")?this.composing=2:2==this.composing&&e.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:t}=this.view,e=t.field($);for(let t of e.active)t.isPending&&!this.running.some(e=>e.active.source==t.source)&&this.startQuery(t);this.running.length&&e.open&&e.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(w).updateSyncTime))}startQuery(t){let{state:e}=this.view,n=p(e),i=new l(e,n,t.explicit,this.view),s=new W(t,i);this.running.push(s),Promise.resolve(t.source(i)).then(t=>{s.context.aborted||(s.done=t||null,this.scheduleAccept())},t=>{this.view.dispatch({effects:b.of(null)}),(0,o.OO)(this.view.state,t)})}scheduleAccept(){this.running.every(t=>void 0!==t.done)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(w).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],n=this.view.state.facet(w),i=this.view.state.field($);for(let o=0;o<this.running.length;o++){let s=this.running[o];if(void 0===s.done)continue;if(this.running.splice(o--,1),s.done){let i=p(s.updates.length?s.updates[0].startState:this.view.state),o=Math.min(i,s.done.from+ +!s.active.explicit),l=new M(s.active.source,s.active.explicit,o,s.done,s.done.from,null!=(t=s.done.to)?t:i);for(let t of s.updates)l=l.update(t,n);if(l.hasResult()){e.push(l);continue}}let l=i.active.find(t=>t.source==s.active.source);if(l&&l.isPending)if(null==s.done){let t=new E(s.active.source,0);for(let e of s.updates)t=t.update(e,n);t.isPending||e.push(t)}else this.startQuery(l)}(e.length||i.open&&i.open.disabled)&&this.view.dispatch({effects:B.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field($,!1);if(e&&e.tooltip&&this.view.state.facet(w).closeOnBlur){let n=e.open&&(0,o.gB)(this.view,e.open.tooltip);n&&n.dom.contains(t.relatedTarget)||setTimeout(()=>this.view.dispatch({effects:b.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout(()=>this.view.dispatch({effects:g.of(!1)}),20),this.composing=0}}}),H="object"==typeof navigator&&/Win/.test(navigator.platform),Q=i.Wl.highest(o.tk.domEventHandlers({keydown(t,e){let n=e.state.field($,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||t.key.length>1||t.ctrlKey&&!(H&&t.altKey)||t.metaKey)return!1;let i=n.open.options[n.open.selected],o=n.active.find(t=>t.source==i.source),s=i.completion.commitCharacters||o.result.commitCharacters;return s&&s.indexOf(t.key)>-1&&F(e,i),!1}})),_=o.tk.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:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'\uD835\uDC65'"}},".cm-completionIcon-constant":{"&:after":{content:"'\uD835\uDC36'"}},".cm-completionIcon-type":{"&:after":{content:"'\uD835\uDC61'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\uD83D\uDD11︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class V{constructor(t,e,n,i){this.field=t,this.line=e,this.from=n,this.to=i}}class Z{constructor(t,e,n){this.field=t,this.from=e,this.to=n}map(t){let e=t.mapPos(this.from,-1,i.gc.TrackDel),n=t.mapPos(this.to,1,i.gc.TrackDel);return null==e||null==n?null:new Z(this.field,e,n)}}class K{constructor(t,e){this.lines=t,this.fieldPositions=e}instantiate(t,e){let n=[],i=[e],o=t.doc.lineAt(e),l=/^\s*/.exec(o.text)[0];for(let o of this.lines){if(n.length){let n=l,r=/^\t*/.exec(o)[0].length;for(let e=0;e<r;e++)n+=t.facet(s.c);i.push(e+n.length-r),o=n+o.slice(r)}n.push(o),e+=o.length+1}return{text:n,ranges:this.fieldPositions.map(t=>new Z(t.field,i[t.line]+t.from,i[t.line]+t.to))}}static parse(t){let e=[],n=[],i=[],o;for(let s of t.split(/\r\n?|\n/)){for(;o=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(s);){let t=o[1]?+o[1]:null,l=o[2]||o[3]||"",r=-1,a=l.replace(/\\[{}]/g,t=>t[1]);for(let n=0;n<e.length;n++)(null!=t?e[n].seq==t:a&&e[n].name==a)&&(r=n);if(r<0){let n=0;for(;n<e.length&&(null==t||null!=e[n].seq&&e[n].seq<t);)n++;for(let o of(e.splice(n,0,{seq:t,name:a}),r=n,i))o.field>=r&&o.field++}i.push(new V(r,n.length,o.index,o.index+a.length)),s=s.slice(0,o.index)+l+s.slice(o.index+o[0].length)}s=s.replace(/\\([{}])/g,(t,e,o)=>{for(let t of i)t.line==n.length&&t.from>o&&(t.from--,t.to--);return e}),n.push(s)}return new K(n,i)}}let X=o.p.widget({widget:new class extends o.l9{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),G=o.p.mark({class:"cm-snippetField"});class Y{constructor(t,e){this.ranges=t,this.active=e,this.deco=o.p.set(t.map(t=>(t.from==t.to?X:G).range(t.from,t.to)))}map(t){let e=[];for(let n of this.ranges){let i=n.map(t);if(!i)return null;e.push(i)}return new Y(e,this.active)}selectionInsideField(t){return t.ranges.every(t=>this.ranges.some(e=>e.field==this.active&&e.from<=t.from&&e.to>=t.to))}}let J=i.Py.define({map:(t,e)=>t&&t.map(e)}),tt=i.Py.define(),te=i.QQ.define({create:()=>null,update(t,e){for(let n of e.effects){if(n.is(J))return n.value;if(n.is(tt)&&t)return new Y(t.ranges,n.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>o.tk.decorations.from(t,t=>t?t.deco:o.p.none)});function tn(t,e){return i.jT.create(t.filter(t=>t.field==e).map(t=>i.jT.range(t.from,t.to)))}function ti(t){return({state:e,dispatch:n})=>{let i=e.field(te,!1);if(!i||t<0&&0==i.active)return!1;let o=i.active+t,s=t>0&&!i.ranges.some(e=>e.field==o+t);return n(e.update({selection:tn(i.ranges,o),effects:J.of(s?null:new Y(i.ranges,o)),scrollIntoView:!0})),!0}}let to=[{key:"Tab",run:ti(1),shift:ti(-1)},{key:"Escape",run:({state:t,dispatch:e})=>!!t.field(te,!1)&&(e(t.update({effects:J.of(null)})),!0)}],ts=i.r$.define({combine:t=>t.length?t[0]:to}),tl=i.Wl.highest(o.$f.compute([ts],t=>t.facet(ts)));function tr(t,e){let n;return Object.assign(Object.assign({},e),{apply:(n=K.parse(t),(t,e,o,s)=>{let{text:l,ranges:r}=n.instantiate(t.state,o),{main:a}=t.state.selection,c={changes:{from:o,to:s==a.from?a.to:s,insert:i.xv.of(l)},scrollIntoView:!0,annotations:e?[u.of(e),i.YW.userEvent.of("input.complete")]:void 0};if(r.length&&(c.selection=tn(r,0)),r.some(t=>t.field>0)){let e=new Y(r,0),n=c.effects=[J.of(e)];void 0===t.state.field(te,!1)&&n.push(i.Py.appendConfig.of([te,tl,ta,_]))}t.dispatch(t.state.update(c))})})}let ta=o.tk.domEventHandlers({mousedown(t,e){let n=e.state.field(te,!1),i;if(!n||null==(i=e.posAtCoords({x:t.clientX,y:t.clientY})))return!1;let o=n.ranges.find(t=>t.from<=i&&t.to>=i);return!!o&&o.field!=n.active&&(e.dispatch({selection:tn(n.ranges,o.field),effects:J.of(n.ranges.some(t=>t.field>o.field)?new Y(n.ranges,o.field):null),scrollIntoView:!0}),!0)}}),tc={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},th=i.Py.define({map(t,e){let n=e.mapPos(t,-1,i.gc.TrackAfter);return null==n?void 0:n}}),tp=new class extends i.uU{};tp.startSide=1,tp.endSide=-1;let tf=i.QQ.define({create:()=>i.Xs.empty,update(t,e){if(t=t.map(e.changes),e.selection){let n=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:t=>t>=n.from&&t<=n.to})}for(let n of e.effects)n.is(th)&&(t=t.update({add:[tp.range(n.value,n.value+1)]}));return t}});function tu(){return[tv,tf]}let td="()[]{}<>\xab\xbb\xbb\xab[]{}";function tm(t){for(let e=0;e<td.length;e+=2)if(td.charCodeAt(e)==t)return td.charAt(e+1);return(0,i.bg)(t<128?t:t+1)}function tg(t,e){return t.languageDataAt("closeBrackets",e)[0]||tc}let tb="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),tv=o.tk.inputHandler.of((t,e,n,o)=>{if((tb?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let l=t.state.selection.main;if(o.length>2||2==o.length&&1==(0,i.nZ)((0,i.gm)(o,0))||e!=l.from||n!=l.to)return!1;let r=function(t,e){let n=tg(t,t.selection.main.head),o=n.brackets||tc.brackets;for(let l of o){let r=tm((0,i.gm)(l,0));if(e==l)return r==l?function(t,e,n,o){let l=o.stringPrefixes||tc.stringPrefixes,r=null,a=t.changeByRange(o=>{if(!o.empty)return{changes:[{insert:e,from:o.from},{insert:e,from:o.to}],effects:th.of(o.to+e.length),range:i.jT.range(o.anchor+e.length,o.head+e.length)};let a=o.head,c=tx(t.doc,a),h;if(c==e){if(tC(t,a))return{changes:{insert:e+e,from:a},effects:th.of(a+e.length),range:i.jT.cursor(a+e.length)};else if(tw(t,a)){let o=n&&t.sliceDoc(a,a+3*e.length)==e+e+e?e+e+e:e;return{changes:{from:a,to:a+o.length,insert:o},range:i.jT.cursor(a+o.length)}}}else if(n&&t.sliceDoc(a-2*e.length,a)==e+e&&(h=tI(t,a-2*e.length,l))>-1&&tC(t,h))return{changes:{insert:e+e+e+e,from:a},effects:th.of(a+e.length),range:i.jT.cursor(a+e.length)};else if(t.charCategorizer(a)(c)!=i.D0.Word&&tI(t,a,l)>-1&&!function(t,e,n,i){let o=(0,s.qz)(t).resolveInner(e,-1),l=i.reduce((t,e)=>Math.max(t,e.length),0);for(let s=0;s<5;s++){let s=t.sliceDoc(o.from,Math.min(o.to,o.from+n.length+l)),r=s.indexOf(n);if(!r||r>-1&&i.indexOf(s.slice(0,r))>-1){let e=o.firstChild;for(;e&&e.from==o.from&&e.to-e.from>n.length+r;){if(t.sliceDoc(e.to-n.length,e.to)==n)return!1;e=e.firstChild}return!0}let a=o.to==e&&o.parent;if(!a)break;o=a}return!1}(t,a,e,l))return{changes:{insert:e+e,from:a},effects:th.of(a+e.length),range:i.jT.cursor(a+e.length)};return{range:r=o}});return r?null:t.update(a,{scrollIntoView:!0,userEvent:"input.type"})}(t,l,o.indexOf(l+l+l)>-1,n):function(t,e,n,o){let s=null,l=t.changeByRange(l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:n,from:l.to}],effects:th.of(l.to+e.length),range:i.jT.range(l.anchor+e.length,l.head+e.length)};let r=tx(t.doc,l.head);return!r||/\s/.test(r)||o.indexOf(r)>-1?{changes:{insert:e+n,from:l.head},effects:th.of(l.head+e.length),range:i.jT.cursor(l.head+e.length)}:{range:s=l}});return s?null:t.update(l,{scrollIntoView:!0,userEvent:"input.type"})}(t,l,r,n.before||tc.before);if(e==r&&tw(t,t.selection.main.from))return function(t,e,n){let o=null,s=t.changeByRange(e=>e.empty&&tx(t.doc,e.head)==n?{changes:{from:e.head,to:e.head+n.length,insert:n},range:i.jT.cursor(e.head+n.length)}:o={range:e});return o?null:t.update(s,{scrollIntoView:!0,userEvent:"input.type"})}(t,0,r)}return null}(t.state,o);return!!r&&(t.dispatch(r),!0)}),ty=[{key:"Backspace",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=tg(t,t.selection.main.head).brackets||tc.brackets,o=null,s=t.changeByRange(e=>{if(e.empty){var s,l;let o,r=(s=t.doc,l=e.head,o=s.sliceString(l-2,l),(0,i.nZ)((0,i.gm)(o,0))==o.length?o:o.slice(1));for(let o of n)if(o==r&&tx(t.doc,e.head)==tm((0,i.gm)(o,0)))return{changes:{from:e.head-o.length,to:e.head+o.length},range:i.jT.cursor(e.head-o.length)}}return{range:o=e}});return o||e(t.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!o}}];function tw(t,e){let n=!1;return t.field(tf).between(0,t.doc.length,t=>{t==e&&(n=!0)}),n}function tx(t,e){let n=t.sliceString(e,e+2);return n.slice(0,(0,i.nZ)((0,i.gm)(n,0)))}function tC(t,e){let n=(0,s.qz)(t).resolveInner(e+1);return n.parent&&n.from==e}function tI(t,e,n){let o=t.charCategorizer(e);if(o(t.sliceDoc(e-1,e))!=i.D0.Word)return e;for(let s of n){let n=e-s.length;if(t.sliceDoc(n,e)==s&&o(t.sliceDoc(n-1,n))!=i.D0.Word)return n}return -1}function tO(t={}){return[Q,$,w.of(t),z,tT,_]}let tk=[{key:"Ctrl-Space",run:U},{mac:"Alt-`",run:U},{key:"Escape",run:t=>{let e=t.state.field($,!1);return!!e&&!!e.active.some(t=>0!=t.state)&&(t.dispatch({effects:b.of(null)}),!0)}},{key:"ArrowDown",run:N(!0)},{key:"ArrowUp",run:N(!1)},{key:"PageDown",run:N(!0,"page")},{key:"PageUp",run:N(!1,"page")},{key:"Enter",run:t=>{let e=t.state.field($,!1);return!(t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<t.state.facet(w).interactionDelay)&&F(t,e.open.options[e.open.selected])}}],tT=i.Wl.highest(o.$f.computeN([w],t=>t.facet(w).defaultKeymap?[tk]:[]))}}]);
|