@nocobase/plugin-field-code 2.0.21 → 2.1.0-alpha.10

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.
@@ -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([["707"],{374:function(e,t,i){i.r(t),i.d(t,{pythonLanguage:function(){return iU},globalCompletion:function(){return iW},localCompletionSource:function(){return i$},python:function(){return iE}});var n,r,s,o,l,O,a,h,d=i(973),u=i(619);let f=new Set([25,49,50,263,65,130,56,57,238,62,63,72,73,77,60,61,151,152,155,112]);function p(e){return 10==e||13==e}function c(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}let m=new d.Lu((e,t)=>{let i;if(e.next<0)e.acceptToken(199);else if(t.context.flags&Q)p(e.next)&&e.acceptToken(198,1);else if(((i=e.peek(-1))<0||p(i))&&t.canShift(197)){let t=0;for(;32==e.next||9==e.next;)e.advance(),t++;(10==e.next||13==e.next||35==e.next)&&e.acceptToken(197,-t)}else p(e.next)&&e.acceptToken(196,1)},{contextual:!0}),g=new d.Lu((e,t)=>{let i=t.context;if(i.flags)return;let n=e.peek(-1);if(10==n||13==n){let t=0,n=0;for(;;){if(32==e.next)t++;else if(9==e.next)t+=8-t%8;else break;e.advance(),n++}t!=i.indent&&10!=e.next&&13!=e.next&&35!=e.next&&(t<i.indent?e.acceptToken(195,-n):e.acceptToken(194))}}),Q=1;function y(e,t,i){this.parent=e,this.indent=t,this.flags=i,this.hash=(e?e.hash+e.hash<<8:0)+t+(t<<4)+i+(i<<6)}let S=new y(null,0,0),T=new Map([[241,0],[242,4],[243,8],[244,12],[245,16],[246,20],[247,24],[248,28],[249,32],[250,36],[251,40],[252,44],[253,48],[254,52],[255,56],[256,60]].map(([e,t])=>[e,2|t])),x=new d.Aj({start:S,reduce:(e,t,i,n)=>e.flags&Q&&f.has(t)||(71==t||72==t)&&2&e.flags?e.parent:e,shift:(e,t,i,n)=>194==t?new y(e,function(e){let t=0;for(let i=0;i<e.length;i++)t+=9==e.charCodeAt(i)?8-t%8:1;return t}(n.read(n.pos,i.pos)),0):195==t?e.parent:24==t||55==t||59==t||3==t?new y(e,0,Q):T.has(t)?new y(e,0,T.get(t)|e.flags&Q):e,hash:e=>e.hash}),v=new d.Lu(e=>{for(let t=0;t<5;t++){if(e.next!="print".charCodeAt(t))return;e.advance()}if(!/\w/.test(String.fromCharCode(e.next)))for(let t=0;;t++){let i=e.peek(t);if(32!=i&&9!=i){40!=i&&46!=i&&10!=i&&13!=i&&35!=i&&e.acceptToken(1);return}}}),b=new d.Lu((e,t)=>{let{flags:i}=t.context,n=4&i?34:39,r=(8&i)>0,s=!(16&i),o=(32&i)>0,l=e.pos;for(;;)if(e.next<0)break;else if(o&&123==e.next)if(123==e.peek(1))e.advance(2);else{if(e.pos==l)return void e.acceptToken(3,1);break}else if(s&&92==e.next){if(e.pos==l){e.advance();let t=e.next;t>=0&&(e.advance(),function(e,t){if(111==t)for(let t=0;t<2&&e.next>=48&&e.next<=55;t++)e.advance();else if(120==t)for(let t=0;t<2&&c(e.next);t++)e.advance();else if(117==t)for(let t=0;t<4&&c(e.next);t++)e.advance();else if(85==t)for(let t=0;t<8&&c(e.next);t++)e.advance();else if(78==t&&123==e.next){for(e.advance();e.next>=0&&125!=e.next&&39!=e.next&&34!=e.next&&10!=e.next;)e.advance();125==e.next&&e.advance()}}(e,t)),e.acceptToken(2);return}break}else if(92==e.next&&!s&&e.peek(1)>-1)e.advance(2);else if(e.next!=n||r&&(e.peek(1)!=n||e.peek(2)!=n))if(10==e.next){if(r)e.advance();else if(e.pos==l)return void e.acceptToken(201);break}else e.advance();else{if(e.pos==l)return void e.acceptToken(201,r?3:1);break}e.pos>l&&e.acceptToken(200)}),k=(0,u.pn)({'async "*" "**" FormatConversion FormatSpec':u._A.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":u._A.controlKeyword,"in not and or is del":u._A.operatorKeyword,"from def class global nonlocal lambda":u._A.definitionKeyword,import:u._A.moduleKeyword,"with as print":u._A.keyword,Boolean:u._A.bool,None:u._A.null,VariableName:u._A.variableName,"CallExpression/VariableName":u._A.function(u._A.variableName),"FunctionDefinition/VariableName":u._A.function(u._A.definition(u._A.variableName)),"ClassDefinition/VariableName":u._A.definition(u._A.className),PropertyName:u._A.propertyName,"CallExpression/MemberExpression/PropertyName":u._A.function(u._A.propertyName),Comment:u._A.lineComment,Number:u._A.number,String:u._A.string,FormatString:u._A.special(u._A.string),Escape:u._A.escape,UpdateOp:u._A.updateOperator,"ArithOp!":u._A.arithmeticOperator,BitOp:u._A.bitwiseOperator,CompareOp:u._A.compareOperator,AssignOp:u._A.definitionOperator,Ellipsis:u._A.punctuation,At:u._A.meta,"( )":u._A.paren,"[ ]":u._A.squareBracket,"{ }":u._A.brace,".":u._A.derefOperator,", ;":u._A.separator}),P={__proto__:null,await:44,or:54,and:56,in:60,not:62,is:64,if:70,else:72,lambda:76,yield:94,from:96,async:102,for:104,None:162,True:164,False:164,del:178,pass:182,break:186,continue:190,return:194,raise:202,import:206,as:208,global:212,nonlocal:214,assert:218,type:223,elif:236,while:240,try:246,except:248,finally:250,with:254,def:258,class:268,match:279,case:285},w=d.U1.deserialize({version:14,states:"##jO`QeOOP$}OSOOO&WQtO'#HUOOQS'#Co'#CoOOQS'#Cp'#CpO'vQdO'#CnO*UQtO'#HTOOQS'#HU'#HUOOQS'#DU'#DUOOQS'#HT'#HTO*rQdO'#D_O+VQdO'#DfO+gQdO'#DjO+zOWO'#DuO,VOWO'#DvO.[QtO'#GuOOQS'#Gu'#GuO'vQdO'#GtO0ZQtO'#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i!k#[#y#{#}$Q$h$}%S%^%`%g%l%n%w&Z&j&k&u&x'P'W'Z'l'm'p'r's(O(W(^(d(g(z)^)e)g)p)z*O*Y*d*g*h*k*q*t*v*y*z*}+U+V+Y+a+d+k,X,Y,],g,h,i,k,l,o,s,u,w,y,z-O-d-f-m-p.f.g/V/Z0i0j0kQ#qpW%W!o!s0d0nQ%X!pQ%Y!qQ%[!tQ%f0cS'v%Z0hQ'x0eQ'y0fQ,p*rQ-u,qS.i-s/sR0p0rU#uq.k0qR(w&][cOn#g$j)t,PZ!xY#[#}$Q+YQ#W[Q#zrR$TxQ%b!yQ%i!}Q%o#RQ'j${Q(V%eQ(Z%jQ(c%pQ(f%qQ*|(`Q,f*bQ-t,pQ.m-uR/].lQ$StQ(R%cR*s(SQ.l-sR/}/sR#QZR#V[R%Q!iQ%O!iV*c'm*d,g!Z!lQ!n#c#p$R$d$p$u$v$w$x$y$z%e%j%p%q&`'O'g(q(|)j*o*x+w,v0gR%T!kT#]^#_Q%x#[R,{+YQ(m%xS+_(n(oQ,}+`Q-x,{S.n-y-zR/^.oT+Z(k+]Q$`}Q&g$QQ)o'PR+{)pQ$XzQ)W&qR+i)XQ$XzQ&o$WQ)W&qR+i)XQ#khW$Vz$W&q)XQ$[{Q&r$ZZ)R&l)S+f+g-RR$^|R)c&wXlOn)t,PQ$f!RR'Q$gQ$m!UR'R$hR*X'_Q*V'_V-g,`-h.TQ.d-lQ/P.^R/Q._U.]-l.^._Q/U.aQ/b.tQ/g.zU/i.|/j/yQ/n/RQ/|/oQ0O/tU0Q/u0S0[Q0]0UQ0a0ZR0b0^R/T.`R/d.t",nodeNames:"⚠ print Escape { Comment Script AssignStatement * BinaryExpression BitOp BitOp BitOp BitOp ArithOp ArithOp @ ArithOp ** UnaryExpression ArithOp BitOp AwaitExpression await ) ( ParenthesizedExpression BinaryExpression or and CompareOp in not is UnaryExpression ConditionalExpression if else LambdaExpression lambda ParamList VariableName AssignOp , : NamedExpression AssignOp YieldExpression yield from TupleExpression ComprehensionExpression async for LambdaExpression ] [ ArrayExpression ArrayComprehensionExpression } { DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression CallExpression ArgList AssignOp MemberExpression . PropertyName Number String FormatString FormatReplacement FormatSelfDoc FormatConversion FormatSpec FormatReplacement FormatSelfDoc ContinuedString Ellipsis None Boolean TypeDef AssignOp UpdateStatement UpdateOp ExpressionStatement DeleteStatement del PassStatement pass BreakStatement break ContinueStatement continue ReturnStatement return YieldStatement PrintStatement RaiseStatement raise ImportStatement import as ScopeStatement global nonlocal AssertStatement assert TypeDefinition type TypeParamList TypeParam StatementGroup ; IfStatement Body elif WhileStatement while ForStatement TryStatement try except finally WithStatement with FunctionDefinition def ParamList AssignOp TypeDef ClassDefinition class DecoratedStatement Decorator At MatchStatement match MatchBody MatchClause case CapturePattern LiteralPattern ArithOp ArithOp AsPattern OrPattern LogicOp AttributePattern SequencePattern MappingPattern StarPattern ClassPattern PatternArgList KeywordPattern KeywordPattern Guard",maxTerm:277,context:x,nodeProps:[["isolate",-5,4,71,72,73,77,""],["group",-15,6,85,87,88,90,92,94,96,98,99,100,102,105,108,110,"Statement Statement",-22,8,18,21,25,40,49,50,56,57,60,61,62,63,64,67,70,71,72,79,80,81,82,"Expression",-10,114,116,119,121,122,126,128,133,135,138,"Statement",-9,143,144,147,148,150,151,152,153,154,"Pattern"],["openedBy",23,"(",54,"[",58,"{"],["closedBy",24,")",55,"]",59,"}"]],propSources:[k],skippedNodes:[0,4],repeatNodeCount:34,tokenData:"!2|~R!`OX%TXY%oY[%T[]%o]p%Tpq%oqr'ars)Yst*xtu%Tuv,dvw-hwx.Uxy/tyz0[z{0r{|2S|}2p}!O3W!O!P4_!P!Q:Z!Q!R;k!R![>_![!]Do!]!^Es!^!_FZ!_!`Gk!`!aHX!a!b%T!b!cIf!c!dJU!d!eK^!e!hJU!h!i!#f!i!tJU!t!u!,|!u!wJU!w!x!.t!x!}JU!}#O!0S#O#P&o#P#Q!0j#Q#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ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!0ZT!XZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc!0qT!WR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj!1XV%kQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!1sO!]~k!1zV%jR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!2fO![~i!2mT%tX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T",tokenizers:[v,g,m,b,0,1,2,3,4],topRules:{Script:[0,5]},specialized:[{term:221,get:e=>P[e]||-1}],tokenPrec:7668}),_=0;class q{constructor(e,t){this.from=e,this.to=t}}class ${constructor(e={}){this.id=_++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=W.match(e)),t=>{let i=e(t);return void 0===i?null:[this,i]}}}$.closedBy=new $({deserialize:e=>e.split(" ")}),$.openedBy=new $({deserialize:e=>e.split(" ")}),$.group=new $({deserialize:e=>e.split(" ")}),$.isolate=new $({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw RangeError("Invalid value for isolate: "+e);return e||"auto"}}),$.contextHash=new $({perNode:!0}),$.lookAhead=new $({perNode:!0}),$.mounted=new $({perNode:!0});class z{constructor(e,t,i,n=!1){this.tree=e,this.overlay=t,this.parser=i,this.bracketed=n}static get(e){return e&&e.props&&e.props[$.mounted.id]}}let X=Object.create(null);class W{constructor(e,t,i,n=0){this.name=e,this.props=t,this.id=i,this.flags=n}static define(e){let t=e.props&&e.props.length?Object.create(null):X,i=!!e.top|2*!!e.skipped|4*!!e.error|8*(null==e.name),n=new W(e.name||"",t,e.id,i);if(e.props){for(let i of e.props)if(Array.isArray(i)||(i=i(n)),i){if(i[0].perNode)throw RangeError("Can't store a per-node prop on a node type");t[i[0].id]=i[1]}}return n}prop(e){return this.props[e.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(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop($.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let i in e)for(let n of i.split(" "))t[n]=e[i];return e=>{for(let i=e.prop($.group),n=-1;n<(i?i.length:0);n++){let r=t[n<0?e.name:i[n]];if(r)return r}}}}W.none=new W("",Object.create(null),0,8);let R=new WeakMap,A=new WeakMap;(n=l||(l={}))[n.ExcludeBuffers=1]="ExcludeBuffers",n[n.IncludeAnonymous=2]="IncludeAnonymous",n[n.IgnoreMounts=4]="IgnoreMounts",n[n.IgnoreOverlays=8]="IgnoreOverlays",n[n.EnterBracketed=16]="EnterBracketed";class U{constructor(e,t,i,n,r){if(this.type=e,this.children=t,this.positions=i,this.length=n,this.props=null,r&&r.length)for(let[e,t]of(this.props=Object.create(null),r))this.props["number"==typeof e?e:e.id]=t}toString(){let e=z.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let i=e.toString();i&&(t&&(t+=","),t+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new L(this.topNode,e)}cursorAt(e,t=0,i=0){let n=new L(R.get(this)||this.topNode);return n.moveTo(e,t),R.set(this,n._tree),n}get topNode(){return new Z(this,0,0,null)}resolve(e,t=0){let i=j(R.get(this)||this.topNode,e,t,!1);return R.set(this,i),i}resolveInner(e,t=0){let i=j(A.get(this)||this.topNode,e,t,!0);return A.set(this,i),i}resolveStack(e,t=0){return function(e,t,i){let n=e.resolveInner(t,i),r=null;for(let e=n instanceof Z?n:n.context.parent;e;e=e.parent)if(e.index<0){let s=e.parent;(r||(r=[n])).push(s.resolve(t,i)),e=s}else{let s=z.get(e.tree);if(s&&s.overlay&&s.overlay[0].from<=t&&s.overlay[s.overlay.length-1].to>=t){let o=new Z(s.tree,s.overlay[0].from+e.from,-1,e);(r||(r=[n])).push(j(o,t,i,!1))}}return r?D(r):n}(this,e,t)}iterate(e){let{enter:t,leave:i,from:n=0,to:r=this.length}=e,s=e.mode||0,o=(s&l.IncludeAnonymous)>0;for(let e=this.cursor(s|l.IncludeAnonymous);;){let s=!1;if(e.from<=r&&e.to>=n&&(!o&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;s=!0}for(;s&&i&&(o||!e.type.isAnonymous)&&i(e),!e.nextSibling();){if(!e.parent())return;s=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:K(W.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,i)=>new U(this.type,e,t,i,this.propValues),e.makeTree||((e,t,i)=>new U(W.none,e,t,i)))}static build(e){return function(e){var t;let{buffer:i,nodeSet:n,maxBufferLength:r=1024,reused:s=[],minRepeatType:o=n.types.length}=e,l=Array.isArray(i)?new E(i,i.length):i,O=n.types,a=0,h=0;function d(e,t,i,r,s,o,l,O,a){let h=[],d=[];for(;e.length>r;)h.push(e.pop()),d.push(t.pop()+i-s);e.push(u(n.types[l],h,d,o-s,O-o,a)),t.push(s-i)}function u(e,t,i,n,r,s,o){if(s){let e=[$.contextHash,s];o=o?[e].concat(o):[e]}if(r>25){let e=[$.lookAhead,r];o=o?[e].concat(o):[e]}return new U(e,t,i,n,o)}let f=[],p=[];for(;l.pos>0;)!function e(t,i,f,p,c,m){let{id:g,start:Q,end:y,size:S}=l,T=h,x=a;if(S<0){if(l.next(),-1==S){let e=s[g];f.push(e),p.push(Q-t);return}if(-3==S){a=g;return}if(-4==S){h=g;return}else throw RangeError(`Unrecognized record size: ${S}`)}let v=O[g],b,k,P=Q-t;if(y-Q<=r&&(k=function(e,t){let i=l.fork(),n=0,s=0,O=0,a=i.end-r,h={size:0,start:0,skip:0};e:for(let r=i.pos-e;i.pos>r;){let e=i.size;if(i.id==t&&e>=0){h.size=n,h.start=s,h.skip=O,O+=4,n+=4,i.next();continue}let l=i.pos-e;if(e<0||l<r||i.start<a)break;let d=4*(i.id>=o),u=i.start;for(i.next();i.pos>l;){if(i.size<0)if(-3==i.size||-4==i.size)d+=4;else break e;else i.id>=o&&(d+=4);i.next()}s=u,n+=e,O+=d}return(t<0||n==e)&&(h.size=n,h.start=s,h.skip=O),h.size>4?h:void 0}(l.pos-i,c))){let e=new Uint16Array(k.size-k.skip),i=l.pos-k.size,r=e.length;for(;l.pos>i;)r=function e(t,i,n){let{id:r,start:s,end:O,size:d}=l;if(l.next(),d>=0&&r<o){let o=n;if(d>4){let r=l.pos-(d-4);for(;l.pos>r;)n=e(t,i,n)}i[--n]=o,i[--n]=O-t,i[--n]=s-t,i[--n]=r}else -3==d?a=r:-4==d&&(h=r);return n}(k.start,e,r);b=new C(e,y-k.start,n),P=k.start-t}else{let t=l.pos-S;l.next();let i=[],s=[],O=g>=o?g:-1,a=0,h=y;for(;l.pos>t;)O>=0&&l.id==O&&l.size>=0?(l.end<=h-r&&(d(i,s,Q,a,l.end,h,O,T,x),a=i.length,h=l.end),l.next()):m>2500?function(e,t,i,s){let o=[],O=0,a=-1;for(;l.pos>t;){let{id:e,start:t,end:i,size:n}=l;if(n>4)l.next();else if(a>-1&&t<a)break;else a<0&&(a=i-r),o.push(e,t,i),O++,l.next()}if(O){let t=new Uint16Array(4*O),r=o[o.length-2];for(let e=o.length-3,i=0;e>=0;e-=3)t[i++]=o[e],t[i++]=o[e+1]-r,t[i++]=o[e+2]-r,t[i++]=i;i.push(new C(t,o[2]-r,n)),s.push(r-e)}}(Q,t,i,s):e(Q,t,i,s,O,m+1);if(O>=0&&a>0&&a<i.length&&d(i,s,Q,a,Q,h,O,T,x),i.reverse(),s.reverse(),O>-1&&a>0){let e=function(e,t){return(i,n,r)=>{let s=0,o=i.length-1,l,O;if(o>=0&&(l=i[o])instanceof U){if(!o&&l.type==e&&l.length==r)return l;(O=l.prop($.lookAhead))&&(s=n[o]+l.length+O)}return u(e,i,n,r,s,t)}}(v,x);b=K(v,i,s,0,i.length,0,y-Q,e,e)}else b=u(v,i,s,y-Q,T-y,x)}f.push(b),p.push(P)}(e.start||0,e.bufferStart||0,f,p,-1,0);let c=null!=(t=e.length)?t:f.length?p[0]+f[0].length:0;return new U(O[e.topID],f.reverse(),p.reverse(),c)}(e)}}U.empty=new U(W.none,[],[],0);class E{constructor(e,t){this.buffer=e,this.index=t}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 E(this.buffer,this.index)}}class C{constructor(e,t,i){this.buffer=e,this.length=t,this.set=i}get type(){return W.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],i=this.buffer[e+3],n=this.set.types[t],r=n.name;if(/\W/.test(r)&&!n.isError&&(r=JSON.stringify(r)),i==(e+=4))return r;let s=[];for(;e<i;)s.push(this.childString(e)),e=this.buffer[e+3];return r+"("+s.join(",")+")"}findChild(e,t,i,n,r){let{buffer:s}=this,o=-1;for(let l=e;l!=t&&(!V(r,n,s[l+1],s[l+2])||(o=l,!(i>0)));l=s[l+3]);return o}slice(e,t,i){let n=this.buffer,r=new Uint16Array(t-e),s=0;for(let o=e,l=0;o<t;){r[l++]=n[o++],r[l++]=n[o++]-i;let t=r[l++]=n[o++]-i;r[l++]=n[o++]-e,s=Math.max(s,t)}return new C(r,s,this.set)}}function V(e,t,i,n){switch(e){case -2:return i<t;case -1:return n>=t&&i<t;case 0:return i<t&&n>t;case 1:return i<=t&&n>t;case 2:return n>t;case 4:return!0}}function j(e,t,i,n){for(var r;e.from==e.to||(i<1?e.from>=t:e.from>t)||(i>-1?e.to<=t:e.to<t);){let t=!n&&e instanceof Z&&e.index<0?null:e.parent;if(!t)return e;e=t}let s=n?0:l.IgnoreOverlays;if(n)for(let n=e,o=n.parent;o;o=(n=o).parent)n instanceof Z&&n.index<0&&(null==(r=o.enter(t,i,s))?void 0:r.from)!=n.from&&(e=o);for(;;){let n=e.enter(t,i,s);if(!n)return e;e=n}}class G{cursor(e=0){return new L(this,e)}getChild(e,t=null,i=null){let n=N(this,e,t,i);return n.length?n[0]:null}getChildren(e,t=null,i=null){return N(this,e,t,i)}resolve(e,t=0){return j(this,e,t,!1)}resolveInner(e,t=0){return j(this,e,t,!0)}matchContext(e){return I(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),i=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(i=t,t=e.prevSibling):t=e}return i}get node(){return this}get next(){return this.parent}}class Z extends G{constructor(e,t,i,n){super(),this._tree=e,this.from=t,this.index=i,this._parent=n}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,i,n,r=0){for(let s=this;;){for(let{children:o,positions:O}=s._tree,a=t>0?o.length:-1;e!=a;e+=t){let a=o[e],h=O[e]+s.from,d;if(r&l.EnterBracketed&&a instanceof U&&(d=z.get(a))&&!d.overlay&&d.bracketed&&i>=h&&i<=h+a.length||V(n,i,h,h+a.length)){if(a instanceof C){if(r&l.ExcludeBuffers)continue;let o=a.findChild(0,a.buffer.length,t,i-h,n);if(o>-1)return new B(new Y(s,a,e,h),null,o)}else if(r&l.IncludeAnonymous||!a.type.isAnonymous||J(a)){let o;if(!(r&l.IgnoreMounts)&&(o=z.get(a))&&!o.overlay)return new Z(o.tree,h,e,s);let O=new Z(a,h,e,s);return r&l.IncludeAnonymous||!O.type.isAnonymous?O:O.nextChild(t<0?a.children.length-1:0,t,i,n,r)}}}if(r&l.IncludeAnonymous||!s.type.isAnonymous||(e=s.index>=0?s.index+t:t<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(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,t,i=0){let n;if(!(i&l.IgnoreOverlays)&&(n=z.get(this._tree))&&n.overlay){let r=e-this.from,s=i&l.EnterBracketed&&n.bracketed;for(let{from:e,to:i}of n.overlay)if((t>0||s?e<=r:e<r)&&(t<0||s?i>=r:i>r))return new Z(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function N(e,t,i,n){let r=e.cursor(),s=[];if(!r.firstChild())return s;if(null!=i){for(let e=!1;!e;)if(e=r.type.is(i),!r.nextSibling())return s}for(;;){if(null!=n&&r.type.is(n))return s;if(r.type.is(t)&&s.push(r.node),!r.nextSibling())return null==n?s:[]}}function I(e,t,i=t.length-1){for(let n=e;i>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(t[i]&&t[i]!=n.name)return!1;i--}}return!0}class Y{constructor(e,t,i,n){this.parent=e,this.buffer=t,this.index=i,this.start=n}}class B extends G{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,i){super(),this.context=e,this._parent=t,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,t,i){let{buffer:n}=this.context,r=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.context.start,i);return r<0?null:new B(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,t,i=0){if(i&l.ExcludeBuffers)return null;let{buffer:n}=this.context,r=n.findChild(this.index+4,n.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return r<0?null:new B(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new B(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new B(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:i}=this.context,n=this.index+4,r=i.buffer[this.index+3];if(r>n){let s=i.buffer[this.index+1];e.push(i.slice(n,r,s)),t.push(0)}return new U(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function D(e){if(!e.length)return null;let t=0,i=e[0];for(let n=1;n<e.length;n++){let r=e[n];(r.from>i.from||r.to<i.to)&&(i=r,t=n)}let n=i instanceof Z&&i.index<0?null:i.parent,r=e.slice();return n?r[t]=n:r.splice(t,1),new F(r,i)}class F{constructor(e,t){this.heads=e,this.node=t}get next(){return D(this.heads)}}class L{get name(){return this.type.name}constructor(e,t=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=t&~l.EnterBracketed,e instanceof Z)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:i,buffer:n}=this.buffer;return this.type=t||n.set.types[n.buffer[e]],this.from=i+n.buffer[e+1],this.to=i+n.buffer[e+2],!0}yield(e){return!!e&&(e instanceof Z?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,i,this.mode));let{buffer:n}=this.buffer,r=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.buffer.start,i);return!(r<0)&&(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,i=this.mode){return this.buffer?!(i&l.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&l.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&l.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,i=this.stack.length-1;if(e<0){let e=i<0?0:this.stack[i]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(i<0?t.buffer.length:t.buffer[this.stack[i]+3]))return this.yieldBuf(e)}return i<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,i,{buffer:n}=this;if(n){if(e>0){if(this.index<n.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(n.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:i}=n)}else({index:t,_parent:i}=this._tree);for(;i;{index:t,_parent:i}=i)if(t>-1)for(let n=t+e,r=e<0?-1:i._tree.children.length;n!=r;n+=e){let e=i._tree.children[n];if(this.mode&l.IncludeAnonymous||e instanceof C||!e.type.isAnonymous||J(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,i=0;if(e&&e.context==this.buffer)e:for(let n=this.index,r=this.stack.length;r>=0;){for(let s=e;s;s=s._parent)if(s.index==n){if(n==this.index)return s;t=s,i=r+1;break e}n=this.stack[--r]}for(let e=i;e<this.stack.length;e++)t=new B(this.buffer,t,this.stack[e]);return this.bufferNode=new B(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let i=0;;){let n=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){i++;continue}this.type.isAnonymous||(n=!0)}for(;;){if(n&&t&&t(this),n=this.type.isAnonymous,!i)return;if(this.nextSibling())break;this.parent(),i--,n=!0}}}matchContext(e){if(!this.buffer)return I(this.node.parent,e);let{buffer:t}=this.buffer,{types:i}=t.set;for(let n=e.length-1,r=this.stack.length-1;n>=0;r--){if(r<0)return I(this._tree,e,n);let s=i[t.buffer[this.stack[r]]];if(!s.isAnonymous){if(e[n]&&e[n]!=s.name)return!1;n--}}return!0}}function J(e){return e.children.some(e=>e instanceof C||!e.type.isAnonymous||J(e))}let M=new WeakMap;function H(e,t){if(!e.isAnonymous||t instanceof C||t.type!=e)return 1;let i=M.get(t);if(null==i){for(let n of(i=1,t.children)){if(n.type!=e||!(n instanceof U)){i=1;break}i+=H(e,n)}M.set(t,i)}return i}function K(e,t,i,n,r,s,o,l,O){let a=0;for(let i=n;i<r;i++)a+=H(e,t[i]);let h=Math.ceil(1.5*a/8),d=[],u=[];return!function t(i,n,r,o,l){for(let a=r;a<o;){let r=a,f=n[a],p=H(e,i[a]);for(a++;a<o;a++){let t=H(e,i[a]);if(p+t>=h)break;p+=t}if(a==r+1){if(p>h){let e=i[r];t(e.children,e.positions,0,e.children.length,n[r]+l);continue}d.push(i[r])}else{let t=n[a-1]+i[a-1].length-f;d.push(K(e,i,n,r,a,f,t,null,O))}u.push(f+l-s)}}(t,i,n,r,0),(l||O)(d,u,o)}class ee{constructor(e,t,i,n,r=!1,s=!1){this.from=e,this.to=t,this.tree=i,this.offset=n,this.open=!!r|2*!!s}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],i=!1){let n=[new ee(0,e.length,e,0,!1,i)];for(let i of t)i.to>e.length&&n.push(i);return n}static applyChanges(e,t,i=128){if(!t.length)return e;let n=[],r=1,s=e.length?e[0]:null;for(let o=0,l=0,O=0;;o++){let a=o<t.length?t[o]:null,h=a?a.fromA:1e9;if(h-l>=i)for(;s&&s.from<h;){let t=s;if(l>=t.from||h<=t.to||O){let e=Math.max(t.from,l)-O,i=Math.min(t.to,h)-O;t=e>=i?null:new ee(e,i,t.tree,t.offset+O,o>0,!!a)}if(t&&n.push(t),s.to>h)break;s=r<e.length?e[r++]:null}if(!a)break;l=a.toA,O=a.toA-a.toB}return n}}class et{startParse(e,t,i){return"string"==typeof e&&(e=new ei(e)),i=i?i.length?i.map(e=>new q(e.from,e.to)):[new q(0,0)]:[new q(0,e.length)],this.createParse(e,t||[],i)}parse(e,t,i){let n=this.startParse(e,t,i);for(;;){let e=n.advance();if(e)return e}}}class ei{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new $({perNode:!0});var en=i(492),er=i(867),es=i(690);let eo=new $,el=new $;class eO{constructor(e,t,i=[],n=""){this.data=e,this.name=n,en.$t.prototype.hasOwnProperty("tree")||Object.defineProperty(en.$t.prototype,"tree",{get(){return ed(this)}}),this.parser=t,this.extension=[eS.of(this),en.$t.languageData.of((e,t,i)=>{let n=ea(e,t,i),r=n.type.prop(eo);if(!r)return[];let s=e.facet(r),o=n.type.prop(el);if(o){let r=n.resolve(t-n.from,i);for(let t of o)if(t.test(r,e)){let i=e.facet(t.facet);return"replace"==t.type?i:i.concat(s)}}return s})].concat(i)}isActiveAt(e,t,i=-1){return ea(e,t,i).type.prop(eo)==this.data}findRegions(e){let t=e.facet(eS);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let i=[],n=(e,t)=>{if(e.prop(eo)==this.data)return void i.push({from:t,to:t+e.length});let r=e.prop($.mounted);if(r){if(r.tree.prop(eo)==this.data){if(r.overlay)for(let e of r.overlay)i.push({from:e.from+t,to:e.to+t});else i.push({from:t,to:t+e.length});return}else if(r.overlay){let e=i.length;if(n(r.tree,r.overlay[0].from+t),i.length>e)return}}for(let i=0;i<e.children.length;i++){let r=e.children[i];r instanceof U&&n(r,e.positions[i]+t)}};return n(ed(e),0),i}get allowsNesting(){return!0}}function ea(e,t,i){let n=e.facet(eS),r=ed(e).topNode;if(!n||n.allowsNesting)for(let e=r;e;e=e.enter(t,i,l.ExcludeBuffers|l.EnterBracketed))e.type.isTop&&(r=e);return r}eO.setState=en.Pe.define();class eh extends eO{constructor(e,t,i){super(e,t,[],i),this.parser=t}static define(e){var t;let i=(t=e.languageData,en.sj.define({combine:t?e=>e.concat(t):void 0}));return new eh(i,e.parser.configure({props:[eo.add(e=>e.isTop?i:void 0)]}),e.name)}configure(e,t){return new eh(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function ed(e){let t=e.field(eO.state,!1);return t?t.tree:U.empty}class eu{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let i=this.cursorPos-this.string.length;return e<i||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-i,t-i)}}let ef=null;class ep{constructor(e,t,i=[],n,r,s,o,l){this.parser=e,this.state=t,this.fragments=i,this.tree=n,this.treeLen=r,this.viewport=s,this.skipped=o,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,t,i){return new ep(e,t,[],U.empty,0,i,[],null)}startParse(){return this.parser.startParse(new eu(this.state.doc),this.fragments)}work(e,t){return(null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=U.empty&&this.isDone(null!=t?t:this.state.doc.length))?(this.takeTree(),!0):this.withContext(()=>{var i;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let n=this.parse.advance();if(n){if(this.fragments=this.withoutTempSkipped(ee.addTree(n,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!=(i=this.parse.stoppedAt)?i:this.state.doc.length,this.tree=n,this.parse=null,!(this.treeLen<(null!=t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(ee.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=ef;ef=this;try{return e()}finally{ef=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=ec(e,t.from,t.to);return e}changes(e,t){let{fragments:i,tree:n,treeLen:r,viewport:s,skipped:o}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges((e,i,n,r)=>t.push({fromA:e,toA:i,fromB:n,toB:r})),i=ee.applyChanges(i,t),n=U.empty,r=0,s={from:e.mapPos(s.from,-1),to:e.mapPos(s.to,1)},this.skipped.length)for(let t of(o=[],this.skipped)){let i=e.mapPos(t.from,1),n=e.mapPos(t.to,-1);i<n&&o.push({from:i,to:n})}}return new ep(this.parser,t,i,n,r,s,o,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let t=0;t<this.skipped.length;t++){let{from:i,to:n}=this.skipped[t];i<e.to&&n>e.from&&(this.fragments=ec(this.fragments,i,n),this.skipped.splice(t--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends et{createParse(t,i,n){let r=n[0].from,s=n[n.length-1].to;return{parsedPos:r,advance(){let t=ef;if(t){for(let e of n)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=s,new U(W.none,[],[],s-r)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return ef}}function ec(e,t,i){return ee.applyChanges(e,[{fromA:t,toA:i,fromB:t,toB:i}])}class em{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),i=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,i)||t.takeTree(),new em(t)}static init(e){let t=Math.min(3e3,e.doc.length),i=ep.create(e.facet(eS).parser,e,{from:0,to:t});return i.work(20,t)||i.takeTree(),new em(i)}}eO.state=en.sU.define({create:em.init,update(e,t){for(let e of t.effects)if(e.is(eO.setState))return e.value;return t.startState.facet(eS)!=t.state.facet(eS)?em.init(t.state):e.apply(t)}});let eg=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};"u">typeof requestIdleCallback&&(eg=e=>{let t=-1,i=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(i):cancelIdleCallback(t)});let eQ="u">typeof navigator&&(null==(O=navigator.scheduling)?void 0:O.isInputPending)?()=>navigator.scheduling.isInputPending():null,ey=er.Z9.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(eO.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(eO.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=eg(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:i,viewport:{to:n}}=this.view,r=i.field(eO.state);if(r.tree==r.context.tree&&r.context.isDone(n+1e5))return;let s=Date.now()+Math.min(this.chunkBudget,100,e&&!eQ?Math.max(25,e.timeRemaining()-5):1e9),o=r.context.treeLen<n&&i.doc.length>n+1e3,l=r.context.work(()=>eQ&&eQ()||Date.now()>s,n+1e5*!o);this.chunkBudget-=Date.now()-t,(l||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:eO.setState.of(new em(r.context))})),this.chunkBudget>0&&!(l&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(e=>(0,er.c_)(this.view.state,e)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),eS=en.sj.define({combine:e=>e.length?e[0]:null,enables:e=>[eO.state,ey,er.Lz.contentAttributes.compute([e],t=>{let i=t.facet(e);return i&&i.name?{"data-language":i.name}:{}})]});class eT{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}let ex=new $;function ev({closing:e,align:t=!0,units:i=1}){return n=>{var r,s,o,l;let O,a,h,d;return r=n,s=t,o=i,l=e,a=(O=r.textAfter).match(/^\s*/)[0].length,h=l&&O.slice(a,a+l.length)==l||void 0==r.pos+a,(d=s?function(e){let t=e.node,i=t.childAfter(t.from),n=t.lastChild;if(!i)return null;let r=e.options.simulateBreak,s=e.state.doc.lineAt(i.from),o=null==r||r<=s.from?s.to:Math.min(s.to,r);for(let e=i.to;;){let r=t.childAfter(e);if(!r||r==n)return null;if(!r.type.isSkipped){if(r.from>=o)return null;let e=/^ */.exec(s.text.slice(i.to-s.from))[0].length;return{from:i.from,to:i.to+e}}e=r.to}}(r):null)?h?r.column(d.from):r.column(d.to):r.baseIndent+(h?0:r.unit*o)}}let eb=new $;function ek(e,t){let i=t.mapPos(e.from,1),n=t.mapPos(e.to,-1);return i>=n?void 0:{from:i,to:n}}let eP=en.Pe.define({map:ek}),ew=en.Pe.define({map:ek}),e_=en.sU.define({create:()=>er.NZ.none,update(e,t){for(let i of(t.isUserEvent("delete")&&t.changes.iterChangedRanges((t,i)=>e=eq(e,t,i)),e=e.map(t.changes),t.effects))if(i.is(eP)&&!function(e,t,i){let n=!1;return e.between(t,t,(e,r)=>{e==t&&r==i&&(n=!0)}),n}(e,i.value.from,i.value.to)){let{preparePlaceholder:n}=t.state.facet(ez),r=n?er.NZ.replace({widget:new eR(n(t.state,i.value))}):eW;e=e.update({add:[r.range(i.value.from,i.value.to)]})}else i.is(ew)&&(e=e.update({filter:(e,t)=>i.value.from!=e||i.value.to!=t,filterFrom:i.value.from,filterTo:i.value.to}));return t.selection&&(e=eq(e,t.selection.main.head)),e},provide:e=>er.Lz.decorations.from(e),toJSON(e,t){let i=[];return e.between(0,t.doc.length,(e,t)=>{i.push(e,t)}),i},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw RangeError("Invalid JSON for fold state");let t=[];for(let i=0;i<e.length;){let n=e[i++],r=e[i++];if("number"!=typeof n||"number"!=typeof r)throw RangeError("Invalid JSON for fold state");t.push(eW.range(n,r))}return er.NZ.set(t,!0)}});function eq(e,t,i=t){let n=!1;return e.between(t,i,(e,r)=>{e<i&&r>t&&(n=!0)}),n?e.update({filterFrom:t,filterTo:i,filter:(e,n)=>e>=i||n<=t}):e}let e$={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},ez=en.sj.define({combine:e=>(0,en.QR)(e,e$)});function eX(e,t){let{state:i}=e,n=i.facet(ez),r=t=>{var i,n,r,s;let o,l=e.lineBlockAt(e.posAtDOM(t.target)),O=(i=e.state,n=l.from,r=l.to,o=null,null==(s=i.field(e_,!1))||s.between(n,r,(e,t)=>{(!o||o.from>e)&&(o={from:e,to:t})}),o);O&&e.dispatch({effects:ew.of(O)}),t.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(e,r,t);let s=document.createElement("span");return s.textContent=n.placeholderText,s.setAttribute("aria-label",i.phrase("folded code")),s.title=i.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=r,s}let eW=er.NZ.replace({widget:new class extends er.xO{toDOM(e){return eX(e,null)}}});class eR extends er.xO{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return eX(e,this.value)}}er.wJ;u._A.meta,u._A.link,u._A.heading,u._A.emphasis,u._A.strong,u._A.strikethrough,u._A.keyword,u._A.atom,u._A.bool,u._A.url,u._A.contentSeparator,u._A.labelName,u._A.literal,u._A.inserted,u._A.string,u._A.deleted,u._A.regexp,u._A.escape,u._A.string,u._A.variableName,u._A.variableName,u._A.typeName,u._A.namespace,u._A.className,u._A.variableName,u._A.macroName,u._A.propertyName,u._A.comment,u._A.invalid;let eA=Object.create(null),eU=[W.none],eE=[],eC=Object.create(null),eV=Object.create(null);for(let[e,t]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"]])eV[e]=function(e,t){let i=[];for(let n of t.split(" ")){let t=[];for(let i of n.split(".")){let n=e[i]||u._A[i];n?"function"==typeof n?t.length?t=t.map(n):ej(i,`Modifier ${i} used at start of tag`):t.length?ej(i,`Tag ${i} used as modifier`):t=Array.isArray(n)?n:[n]:ej(i,`Unknown highlighting tag ${i}`)}for(let e of t)i.push(e)}if(!i.length)return 0;let n=t.replace(/ /g,"_"),r=n+" "+i.map(e=>e.id),s=eC[r];if(s)return s.id;let o=eC[r]=W.define({id:eU.length,name:n,props:[(0,u.pn)({[n]:i})]});return eU.push(o),o.id}(eA,t);function ej(e,t){eE.indexOf(e)>-1||(eE.push(e),console.warn(t))}er.OP.RTL,er.OP.LTR;let eG=0;class eZ{constructor(e,t){this.from=e,this.to=t}}class eN{constructor(e={}){this.id=eG++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=eB.match(e)),t=>{let i=e(t);return void 0===i?null:[this,i]}}}eN.closedBy=new eN({deserialize:e=>e.split(" ")}),eN.openedBy=new eN({deserialize:e=>e.split(" ")}),eN.group=new eN({deserialize:e=>e.split(" ")}),eN.isolate=new eN({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw RangeError("Invalid value for isolate: "+e);return e||"auto"}}),eN.contextHash=new eN({perNode:!0}),eN.lookAhead=new eN({perNode:!0}),eN.mounted=new eN({perNode:!0});class eI{constructor(e,t,i){this.tree=e,this.overlay=t,this.parser=i}static get(e){return e&&e.props&&e.props[eN.mounted.id]}}let eY=Object.create(null);class eB{constructor(e,t,i,n=0){this.name=e,this.props=t,this.id=i,this.flags=n}static define(e){let t=e.props&&e.props.length?Object.create(null):eY,i=!!e.top|2*!!e.skipped|4*!!e.error|8*(null==e.name),n=new eB(e.name||"",t,e.id,i);if(e.props){for(let i of e.props)if(Array.isArray(i)||(i=i(n)),i){if(i[0].perNode)throw RangeError("Can't store a per-node prop on a node type");t[i[0].id]=i[1]}}return n}prop(e){return this.props[e.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(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(eN.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let i in e)for(let n of i.split(" "))t[n]=e[i];return e=>{for(let i=e.prop(eN.group),n=-1;n<(i?i.length:0);n++){let r=t[n<0?e.name:i[n]];if(r)return r}}}}eB.none=new eB("",Object.create(null),0,8);let eD=new WeakMap,eF=new WeakMap;(r=a||(a={}))[r.ExcludeBuffers=1]="ExcludeBuffers",r[r.IncludeAnonymous=2]="IncludeAnonymous",r[r.IgnoreMounts=4]="IgnoreMounts",r[r.IgnoreOverlays=8]="IgnoreOverlays";class eL{constructor(e,t,i,n,r){if(this.type=e,this.children=t,this.positions=i,this.length=n,this.props=null,r&&r.length)for(let[e,t]of(this.props=Object.create(null),r))this.props["number"==typeof e?e:e.id]=t}toString(){let e=eI.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let i=e.toString();i&&(t&&(t+=","),t+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new e8(this.topNode,e)}cursorAt(e,t=0,i=0){let n=new e8(eD.get(this)||this.topNode);return n.moveTo(e,t),eD.set(this,n._tree),n}get topNode(){return new e1(this,0,0,null)}resolve(e,t=0){let i=eK(eD.get(this)||this.topNode,e,t,!1);return eD.set(this,i),i}resolveInner(e,t=0){let i=eK(eF.get(this)||this.topNode,e,t,!0);return eF.set(this,i),i}resolveStack(e,t=0){return function(e,t,i){let n=e.resolveInner(t,i),r=null;for(let e=n instanceof e1?n:n.context.parent;e;e=e.parent)if(e.index<0){let s=e.parent;(r||(r=[n])).push(s.resolve(t,i)),e=s}else{let s=eI.get(e.tree);if(s&&s.overlay&&s.overlay[0].from<=t&&s.overlay[s.overlay.length-1].to>=t){let o=new e1(s.tree,s.overlay[0].from+e.from,-1,e);(r||(r=[n])).push(eK(o,t,i,!1))}}return r?e3(r):n}(this,e,t)}iterate(e){let{enter:t,leave:i,from:n=0,to:r=this.length}=e,s=e.mode||0,o=(s&a.IncludeAnonymous)>0;for(let e=this.cursor(s|a.IncludeAnonymous);;){let s=!1;if(e.from<=r&&e.to>=n&&(!o&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;s=!0}for(;s&&i&&(o||!e.type.isAnonymous)&&i(e),!e.nextSibling();){if(!e.parent())return;s=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:ti(eB.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,i)=>new eL(this.type,e,t,i,this.propValues),e.makeTree||((e,t,i)=>new eL(eB.none,e,t,i)))}static build(e){return function(e){var t;let{buffer:i,nodeSet:n,maxBufferLength:r=1024,reused:s=[],minRepeatType:o=n.types.length}=e,l=Array.isArray(i)?new eJ(i,i.length):i,O=n.types,a=0,h=0;function d(e,t,i,r,s,o,l,O,a){let h=[],d=[];for(;e.length>r;)h.push(e.pop()),d.push(t.pop()+i-s);e.push(u(n.types[l],h,d,o-s,O-o,a)),t.push(s-i)}function u(e,t,i,n,r,s,o){if(s){let e=[eN.contextHash,s];o=o?[e].concat(o):[e]}if(r>25){let e=[eN.lookAhead,r];o=o?[e].concat(o):[e]}return new eL(e,t,i,n,o)}let f=[],p=[];for(;l.pos>0;)!function e(t,i,f,p,c,m){let{id:g,start:Q,end:y,size:S}=l,T=h,x=a;for(;S<0;){if(l.next(),-1==S){let e=s[g];f.push(e),p.push(Q-t);return}if(-3==S){a=g;return}if(-4==S){h=g;return}else throw RangeError(`Unrecognized record size: ${S}`)}let v=O[g],b,k,P=Q-t;if(y-Q<=r&&(k=function(e,t){let i=l.fork(),n=0,s=0,O=0,a=i.end-r,h={size:0,start:0,skip:0};e:for(let r=i.pos-e;i.pos>r;){let e=i.size;if(i.id==t&&e>=0){h.size=n,h.start=s,h.skip=O,O+=4,n+=4,i.next();continue}let l=i.pos-e;if(e<0||l<r||i.start<a)break;let d=4*(i.id>=o),u=i.start;for(i.next();i.pos>l;){if(i.size<0)if(-3==i.size)d+=4;else break e;else i.id>=o&&(d+=4);i.next()}s=u,n+=e,O+=d}return(t<0||n==e)&&(h.size=n,h.start=s,h.skip=O),h.size>4?h:void 0}(l.pos-i,c))){let e=new Uint16Array(k.size-k.skip),i=l.pos-k.size,r=e.length;for(;l.pos>i;)r=function e(t,i,n){let{id:r,start:s,end:O,size:d}=l;if(l.next(),d>=0&&r<o){let o=n;if(d>4){let r=l.pos-(d-4);for(;l.pos>r;)n=e(t,i,n)}i[--n]=o,i[--n]=O-t,i[--n]=s-t,i[--n]=r}else -3==d?a=r:-4==d&&(h=r);return n}(k.start,e,r);b=new eM(e,y-k.start,n),P=k.start-t}else{let t=l.pos-S;l.next();let i=[],s=[],O=g>=o?g:-1,a=0,h=y;for(;l.pos>t;)O>=0&&l.id==O&&l.size>=0?(l.end<=h-r&&(d(i,s,Q,a,l.end,h,O,T,x),a=i.length,h=l.end),l.next()):m>2500?function(e,t,i,s){let o=[],O=0,a=-1;for(;l.pos>t;){let{id:e,start:t,end:i,size:n}=l;if(n>4)l.next();else if(a>-1&&t<a)break;else a<0&&(a=i-r),o.push(e,t,i),O++,l.next()}if(O){let t=new Uint16Array(4*O),r=o[o.length-2];for(let e=o.length-3,i=0;e>=0;e-=3)t[i++]=o[e],t[i++]=o[e+1]-r,t[i++]=o[e+2]-r,t[i++]=i;i.push(new eM(t,o[2]-r,n)),s.push(r-e)}}(Q,t,i,s):e(Q,t,i,s,O,m+1);if(O>=0&&a>0&&a<i.length&&d(i,s,Q,a,Q,h,O,T,x),i.reverse(),s.reverse(),O>-1&&a>0){let e=function(e,t){return(i,n,r)=>{let s=0,o=i.length-1,l,O;if(o>=0&&(l=i[o])instanceof eL){if(!o&&l.type==e&&l.length==r)return l;(O=l.prop(eN.lookAhead))&&(s=n[o]+l.length+O)}return u(e,i,n,r,s,t)}}(v,x);b=ti(v,i,s,0,i.length,0,y-Q,e,e)}else b=u(v,i,s,y-Q,T-y,x)}f.push(b),p.push(P)}(e.start||0,e.bufferStart||0,f,p,-1,0);let c=null!=(t=e.length)?t:f.length?p[0]+f[0].length:0;return new eL(O[e.topID],f.reverse(),p.reverse(),c)}(e)}}eL.empty=new eL(eB.none,[],[],0);class eJ{constructor(e,t){this.buffer=e,this.index=t}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 eJ(this.buffer,this.index)}}class eM{constructor(e,t,i){this.buffer=e,this.length=t,this.set=i}get type(){return eB.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],i=this.buffer[e+3],n=this.set.types[t],r=n.name;if(/\W/.test(r)&&!n.isError&&(r=JSON.stringify(r)),i==(e+=4))return r;let s=[];for(;e<i;)s.push(this.childString(e)),e=this.buffer[e+3];return r+"("+s.join(",")+")"}findChild(e,t,i,n,r){let{buffer:s}=this,o=-1;for(let l=e;l!=t&&(!eH(r,n,s[l+1],s[l+2])||(o=l,!(i>0)));l=s[l+3]);return o}slice(e,t,i){let n=this.buffer,r=new Uint16Array(t-e),s=0;for(let o=e,l=0;o<t;){r[l++]=n[o++],r[l++]=n[o++]-i;let t=r[l++]=n[o++]-i;r[l++]=n[o++]-e,s=Math.max(s,t)}return new eM(r,s,this.set)}}function eH(e,t,i,n){switch(e){case -2:return i<t;case -1:return n>=t&&i<t;case 0:return i<t&&n>t;case 1:return i<=t&&n>t;case 2:return n>t;case 4:return!0}}function eK(e,t,i,n){for(var r;e.from==e.to||(i<1?e.from>=t:e.from>t)||(i>-1?e.to<=t:e.to<t);){let t=!n&&e instanceof e1&&e.index<0?null:e.parent;if(!t)return e;e=t}let s=n?0:a.IgnoreOverlays;if(n)for(let n=e,o=n.parent;o;o=(n=o).parent)n instanceof e1&&n.index<0&&(null==(r=o.enter(t,i,s))?void 0:r.from)!=n.from&&(e=o);for(;;){let n=e.enter(t,i,s);if(!n)return e;e=n}}class e0{cursor(e=0){return new e8(this,e)}getChild(e,t=null,i=null){let n=e5(this,e,t,i);return n.length?n[0]:null}getChildren(e,t=null,i=null){return e5(this,e,t,i)}resolve(e,t=0){return eK(this,e,t,!1)}resolveInner(e,t=0){return eK(this,e,t,!0)}matchContext(e){return e2(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),i=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(i=t,t=e.prevSibling):t=e}return i}get node(){return this}get next(){return this.parent}}class e1 extends e0{constructor(e,t,i,n){super(),this._tree=e,this.from=t,this.index=i,this._parent=n}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,i,n,r=0){for(let s=this;;){for(let{children:o,positions:l}=s._tree,O=t>0?o.length:-1;e!=O;e+=t){let O=o[e],h=l[e]+s.from;if(eH(n,i,h,h+O.length)){if(O instanceof eM){if(r&a.ExcludeBuffers)continue;let o=O.findChild(0,O.buffer.length,t,i-h,n);if(o>-1)return new e7(new e4(s,O,e,h),null,o)}else if(r&a.IncludeAnonymous||!O.type.isAnonymous||e6(O)){let o;if(!(r&a.IgnoreMounts)&&(o=eI.get(O))&&!o.overlay)return new e1(o.tree,h,e,s);let l=new e1(O,h,e,s);return r&a.IncludeAnonymous||!l.type.isAnonymous?l:l.nextChild(t<0?O.children.length-1:0,t,i,n)}}}if(r&a.IncludeAnonymous||!s.type.isAnonymous||(e=s.index>=0?s.index+t:t<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(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,i=0){let n;if(!(i&a.IgnoreOverlays)&&(n=eI.get(this._tree))&&n.overlay){let i=e-this.from;for(let{from:e,to:r}of n.overlay)if((t>0?e<=i:e<i)&&(t<0?r>=i:r>i))return new e1(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function e5(e,t,i,n){let r=e.cursor(),s=[];if(!r.firstChild())return s;if(null!=i){for(let e=!1;!e;)if(e=r.type.is(i),!r.nextSibling())return s}for(;;){if(null!=n&&r.type.is(n))return s;if(r.type.is(t)&&s.push(r.node),!r.nextSibling())return null==n?s:[]}}function e2(e,t,i=t.length-1){for(let n=e;i>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(t[i]&&t[i]!=n.name)return!1;i--}}return!0}class e4{constructor(e,t,i,n){this.parent=e,this.buffer=t,this.index=i,this.start=n}}class e7 extends e0{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,i){super(),this.context=e,this._parent=t,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,t,i){let{buffer:n}=this.context,r=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.context.start,i);return r<0?null:new e7(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,i=0){if(i&a.ExcludeBuffers)return null;let{buffer:n}=this.context,r=n.findChild(this.index+4,n.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return r<0?null:new e7(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new e7(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new e7(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:i}=this.context,n=this.index+4,r=i.buffer[this.index+3];if(r>n){let s=i.buffer[this.index+1];e.push(i.slice(n,r,s)),t.push(0)}return new eL(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function e3(e){if(!e.length)return null;let t=0,i=e[0];for(let n=1;n<e.length;n++){let r=e[n];(r.from>i.from||r.to<i.to)&&(i=r,t=n)}let n=i instanceof e1&&i.index<0?null:i.parent,r=e.slice();return n?r[t]=n:r.splice(t,1),new e9(r,i)}class e9{constructor(e,t){this.heads=e,this.node=t}get next(){return e3(this.heads)}}class e8{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof e1)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:i,buffer:n}=this.buffer;return this.type=t||n.set.types[n.buffer[e]],this.from=i+n.buffer[e+1],this.to=i+n.buffer[e+2],!0}yield(e){return!!e&&(e instanceof e1?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,i,this.mode));let{buffer:n}=this.buffer,r=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.buffer.start,i);return!(r<0)&&(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,i=this.mode){return this.buffer?!(i&a.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&a.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&a.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,i=this.stack.length-1;if(e<0){let e=i<0?0:this.stack[i]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(i<0?t.buffer.length:t.buffer[this.stack[i]+3]))return this.yieldBuf(e)}return i<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,i,{buffer:n}=this;if(n){if(e>0){if(this.index<n.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(n.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:i}=n)}else({index:t,_parent:i}=this._tree);for(;i;{index:t,_parent:i}=i)if(t>-1)for(let n=t+e,r=e<0?-1:i._tree.children.length;n!=r;n+=e){let e=i._tree.children[n];if(this.mode&a.IncludeAnonymous||e instanceof eM||!e.type.isAnonymous||e6(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,i=0;if(e&&e.context==this.buffer)e:for(let n=this.index,r=this.stack.length;r>=0;){for(let s=e;s;s=s._parent)if(s.index==n){if(n==this.index)return s;t=s,i=r+1;break e}n=this.stack[--r]}for(let e=i;e<this.stack.length;e++)t=new e7(this.buffer,t,this.stack[e]);return this.bufferNode=new e7(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let i=0;;){let n=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){i++;continue}this.type.isAnonymous||(n=!0)}for(;;){if(n&&t&&t(this),n=this.type.isAnonymous,!i)return;if(this.nextSibling())break;this.parent(),i--,n=!0}}}matchContext(e){if(!this.buffer)return e2(this.node.parent,e);let{buffer:t}=this.buffer,{types:i}=t.set;for(let n=e.length-1,r=this.stack.length-1;n>=0;r--){if(r<0)return e2(this._tree,e,n);let s=i[t.buffer[this.stack[r]]];if(!s.isAnonymous){if(e[n]&&e[n]!=s.name)return!1;n--}}return!0}}function e6(e){return e.children.some(e=>e instanceof eM||!e.type.isAnonymous||e6(e))}let te=new WeakMap;function tt(e,t){if(!e.isAnonymous||t instanceof eM||t.type!=e)return 1;let i=te.get(t);if(null==i){for(let n of(i=1,t.children)){if(n.type!=e||!(n instanceof eL)){i=1;break}i+=tt(e,n)}te.set(t,i)}return i}function ti(e,t,i,n,r,s,o,l,O){let a=0;for(let i=n;i<r;i++)a+=tt(e,t[i]);let h=Math.ceil(1.5*a/8),d=[],u=[];return!function t(i,n,r,o,l){for(let a=r;a<o;){let r=a,f=n[a],p=tt(e,i[a]);for(a++;a<o;a++){let t=tt(e,i[a]);if(p+t>=h)break;p+=t}if(a==r+1){if(p>h){let e=i[r];t(e.children,e.positions,0,e.children.length,n[r]+l);continue}d.push(i[r])}else{let t=n[a-1]+i[a-1].length-f;d.push(ti(e,i,n,r,a,f,t,null,O))}u.push(f+l-s)}}(t,i,n,r,0),(l||O)(d,u,o)}class tn{constructor(e,t,i,n,r=!1,s=!1){this.from=e,this.to=t,this.tree=i,this.offset=n,this.open=!!r|2*!!s}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],i=!1){let n=[new tn(0,e.length,e,0,!1,i)];for(let i of t)i.to>e.length&&n.push(i);return n}static applyChanges(e,t,i=128){if(!t.length)return e;let n=[],r=1,s=e.length?e[0]:null;for(let o=0,l=0,O=0;;o++){let a=o<t.length?t[o]:null,h=a?a.fromA:1e9;if(h-l>=i)for(;s&&s.from<h;){let t=s;if(l>=t.from||h<=t.to||O){let e=Math.max(t.from,l)-O,i=Math.min(t.to,h)-O;t=e>=i?null:new tn(e,i,t.tree,t.offset+O,o>0,!!a)}if(t&&n.push(t),s.to>h)break;s=r<e.length?e[r++]:null}if(!a)break;l=a.toA,O=a.toA-a.toB}return n}}class tr{startParse(e,t,i){return"string"==typeof e&&(e=new ts(e)),i=i?i.length?i.map(e=>new eZ(e.from,e.to)):[new eZ(0,0)]:[new eZ(0,e.length)],this.createParse(e,t||[],i)}parse(e,t,i){let n=this.startParse(e,t,i);for(;;){let e=n.advance();if(e)return e}}}class ts{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new eN({perNode:!0});let to=new eN,tl=new eN;class tO{constructor(e,t,i=[],n=""){this.data=e,this.name=n,en.$t.prototype.hasOwnProperty("tree")||Object.defineProperty(en.$t.prototype,"tree",{get(){return th(this)}}),this.parser=t,this.extension=[ty.of(this),en.$t.languageData.of((e,t,i)=>{let n=ta(e,t,i),r=n.type.prop(to);if(!r)return[];let s=e.facet(r),o=n.type.prop(tl);if(o){let r=n.resolve(t-n.from,i);for(let t of o)if(t.test(r,e)){let i=e.facet(t.facet);return"replace"==t.type?i:i.concat(s)}}return s})].concat(i)}isActiveAt(e,t,i=-1){return ta(e,t,i).type.prop(to)==this.data}findRegions(e){let t=e.facet(ty);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let i=[],n=(e,t)=>{if(e.prop(to)==this.data)return void i.push({from:t,to:t+e.length});let r=e.prop(eN.mounted);if(r){if(r.tree.prop(to)==this.data){if(r.overlay)for(let e of r.overlay)i.push({from:e.from+t,to:e.to+t});else i.push({from:t,to:t+e.length});return}else if(r.overlay){let e=i.length;if(n(r.tree,r.overlay[0].from+t),i.length>e)return}}for(let i=0;i<e.children.length;i++){let r=e.children[i];r instanceof eL&&n(r,e.positions[i]+t)}};return n(th(e),0),i}get allowsNesting(){return!0}}function ta(e,t,i){let n=e.facet(ty),r=th(e).topNode;if(!n||n.allowsNesting)for(let e=r;e;e=e.enter(t,i,a.ExcludeBuffers))e.type.isTop&&(r=e);return r}function th(e){let t=e.field(tO.state,!1);return t?t.tree:eL.empty}tO.setState=en.Pe.define();class td{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let i=this.cursorPos-this.string.length;return e<i||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-i,t-i)}}let tu=null;class tf{constructor(e,t,i=[],n,r,s,o,l){this.parser=e,this.state=t,this.fragments=i,this.tree=n,this.treeLen=r,this.viewport=s,this.skipped=o,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,t,i){return new tf(e,t,[],eL.empty,0,i,[],null)}startParse(){return this.parser.startParse(new td(this.state.doc),this.fragments)}work(e,t){return(null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=eL.empty&&this.isDone(null!=t?t:this.state.doc.length))?(this.takeTree(),!0):this.withContext(()=>{var i;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let n=this.parse.advance();if(n){if(this.fragments=this.withoutTempSkipped(tn.addTree(n,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!=(i=this.parse.stoppedAt)?i:this.state.doc.length,this.tree=n,this.parse=null,!(this.treeLen<(null!=t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(tn.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=tu;tu=this;try{return e()}finally{tu=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=tp(e,t.from,t.to);return e}changes(e,t){let{fragments:i,tree:n,treeLen:r,viewport:s,skipped:o}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges((e,i,n,r)=>t.push({fromA:e,toA:i,fromB:n,toB:r})),i=tn.applyChanges(i,t),n=eL.empty,r=0,s={from:e.mapPos(s.from,-1),to:e.mapPos(s.to,1)},this.skipped.length)for(let t of(o=[],this.skipped)){let i=e.mapPos(t.from,1),n=e.mapPos(t.to,-1);i<n&&o.push({from:i,to:n})}}return new tf(this.parser,t,i,n,r,s,o,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let t=0;t<this.skipped.length;t++){let{from:i,to:n}=this.skipped[t];i<e.to&&n>e.from&&(this.fragments=tp(this.fragments,i,n),this.skipped.splice(t--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends tr{createParse(t,i,n){let r=n[0].from,s=n[n.length-1].to;return{parsedPos:r,advance(){let t=tu;if(t){for(let e of n)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=s,new eL(eB.none,[],[],s-r)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return tu}}function tp(e,t,i){return tn.applyChanges(e,[{fromA:t,toA:i,fromB:t,toB:i}])}class tc{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),i=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,i)||t.takeTree(),new tc(t)}static init(e){let t=Math.min(3e3,e.doc.length),i=tf.create(e.facet(ty).parser,e,{from:0,to:t});return i.work(20,t)||i.takeTree(),new tc(i)}}tO.state=en.sU.define({create:tc.init,update(e,t){for(let e of t.effects)if(e.is(tO.setState))return e.value;return t.startState.facet(ty)!=t.state.facet(ty)?tc.init(t.state):e.apply(t)}});let tm=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};"u">typeof requestIdleCallback&&(tm=e=>{let t=-1,i=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(i):cancelIdleCallback(t)});let tg="u">typeof navigator&&(null==(h=navigator.scheduling)?void 0:h.isInputPending)?()=>navigator.scheduling.isInputPending():null,tQ=er.Z9.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(tO.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(tO.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=tm(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:i,viewport:{to:n}}=this.view,r=i.field(tO.state);if(r.tree==r.context.tree&&r.context.isDone(n+1e5))return;let s=Date.now()+Math.min(this.chunkBudget,100,e&&!tg?Math.max(25,e.timeRemaining()-5):1e9),o=r.context.treeLen<n&&i.doc.length>n+1e3,l=r.context.work(()=>tg&&tg()||Date.now()>s,n+1e5*!o);this.chunkBudget-=Date.now()-t,(l||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:tO.setState.of(new tc(r.context))})),this.chunkBudget>0&&!(l&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(e=>(0,er.c_)(this.view.state,e)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),ty=en.sj.define({combine:e=>e.length?e[0]:null,enables:e=>[tO.state,tQ,er.Lz.contentAttributes.compute([e],t=>{let i=t.facet(e);return i&&i.name?{"data-language":i.name}:{}})]}),tS=en.sj.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function tT(e,t){let i=t.mapPos(e.from,1),n=t.mapPos(e.to,-1);return i>=n?void 0:{from:i,to:n}}let tx=en.Pe.define({map:tT}),tv=en.Pe.define({map:tT}),tb=en.sU.define({create:()=>er.NZ.none,update(e,t){for(let i of(t.isUserEvent("delete")&&t.changes.iterChangedRanges((t,i)=>e=tk(e,t,i)),e=e.map(t.changes),t.effects))if(i.is(tx)&&!function(e,t,i){let n=!1;return e.between(t,t,(e,r)=>{e==t&&r==i&&(n=!0)}),n}(e,i.value.from,i.value.to)){let{preparePlaceholder:n}=t.state.facet(tw),r=n?er.NZ.replace({widget:new t$(n(t.state,i.value))}):tq;e=e.update({add:[r.range(i.value.from,i.value.to)]})}else i.is(tv)&&(e=e.update({filter:(e,t)=>i.value.from!=e||i.value.to!=t,filterFrom:i.value.from,filterTo:i.value.to}));return t.selection&&(e=tk(e,t.selection.main.head)),e},provide:e=>er.Lz.decorations.from(e),toJSON(e,t){let i=[];return e.between(0,t.doc.length,(e,t)=>{i.push(e,t)}),i},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw RangeError("Invalid JSON for fold state");let t=[];for(let i=0;i<e.length;){let n=e[i++],r=e[i++];if("number"!=typeof n||"number"!=typeof r)throw RangeError("Invalid JSON for fold state");t.push(tq.range(n,r))}return er.NZ.set(t,!0)}});function tk(e,t,i=t){let n=!1;return e.between(t,i,(e,r)=>{e<i&&r>t&&(n=!0)}),n?e.update({filterFrom:t,filterTo:i,filter:(e,n)=>e>=i||n<=t}):e}let tP={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},tw=en.sj.define({combine:e=>(0,en.QR)(e,tP)});function t_(e,t){let{state:i}=e,n=i.facet(tw),r=t=>{var i,n,r,s;let o,l=e.lineBlockAt(e.posAtDOM(t.target)),O=(i=e.state,n=l.from,r=l.to,o=null,null==(s=i.field(tb,!1))||s.between(n,r,(e,t)=>{(!o||o.from>e)&&(o={from:e,to:t})}),o);O&&e.dispatch({effects:tv.of(O)}),t.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(e,r,t);let s=document.createElement("span");return s.textContent=n.placeholderText,s.setAttribute("aria-label",i.phrase("folded code")),s.title=i.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=r,s}let tq=er.NZ.replace({widget:new class extends er.xO{toDOM(e){return t_(e,null)}}});class t$ extends er.xO{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return t_(e,this.value)}}er.wJ;u._A.meta,u._A.link,u._A.heading,u._A.emphasis,u._A.strong,u._A.strikethrough,u._A.keyword,u._A.atom,u._A.bool,u._A.url,u._A.contentSeparator,u._A.labelName,u._A.literal,u._A.inserted,u._A.string,u._A.deleted,u._A.regexp,u._A.escape,u._A.string,u._A.variableName,u._A.variableName,u._A.typeName,u._A.namespace,u._A.className,u._A.variableName,u._A.macroName,u._A.propertyName,u._A.comment,u._A.invalid;let tz=Object.create(null),tX=[eB.none],tW=[],tR=Object.create(null),tA=Object.create(null);for(let[e,t]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"]])tA[e]=function(e,t){let i=[];for(let n of t.split(" ")){let t=[];for(let i of n.split(".")){let n=e[i]||u._A[i];n?"function"==typeof n?t.length?t=t.map(n):tU(i,`Modifier ${i} used at start of tag`):t.length?tU(i,`Tag ${i} used as modifier`):t=Array.isArray(n)?n:[n]:tU(i,`Unknown highlighting tag ${i}`)}for(let e of t)i.push(e)}if(!i.length)return 0;let n=t.replace(/ /g,"_"),r=n+" "+i.map(e=>e.id),s=tR[r];if(s)return s.id;let o=tR[r]=eB.define({id:tX.length,name:n,props:[(0,u.pn)({[n]:i})]});return tX.push(o),o.id}(tz,t);function tU(e,t){tW.indexOf(e)>-1||(tW.push(e),console.warn(t))}er.OP.RTL,er.OP.LTR;class tE{constructor(e,t,i,n){this.state=e,this.pos=t,this.explicit=i,this.view=n,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=th(this.state).resolveInner(this.pos,-1);for(;t&&0>e.indexOf(t.name);)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),i=Math.max(t.from,this.pos-250),n=t.text.slice(i-t.from,this.pos-t.from),r=n.search(tZ(e,!1));return r<0?null:{from:i+r,to:this.pos,text:n.slice(r)}}get aborted(){return null==this.abortListeners}addEventListener(e,t,i){"abort"==e&&this.abortListeners&&(this.abortListeners.push(t),i&&i.onDocChange&&(this.abortOnDocChange=!0))}}function tC(e){let t=Object.keys(e).join(""),i=/\w/.test(t);return i&&(t=t.replace(/\w/g,"")),`[${i?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function tV(e){let t=e.map(e=>"string"==typeof e?{label:e}:e),[i,n]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),i=Object.create(null);for(let{label:n}of e){t[n[0]]=!0;for(let e=1;e<n.length;e++)i[n[e]]=!0}let n=tC(t)+tC(i)+"*$";return[RegExp("^"+n),new RegExp(n)]}(t);return e=>{let r=e.matchBefore(n);return r||e.explicit?{from:r?r.from:e.pos,options:t,validFor:i}:null}}class tj{constructor(e,t,i,n){this.completion=e,this.source=t,this.match=i,this.score=n}}function tG(e){return e.selection.main.from}function tZ(e,t){var i;let{source:n}=e,r=t&&"^"!=n[0],s="$"!=n[n.length-1];return r||s?RegExp(`${r?"^":""}(?:${n})${s?"$":""}`,null!=(i=e.flags)?i:e.ignoreCase?"i":""):e}let tN=en.YH.define(),tI=new WeakMap;function tY(e){if(!Array.isArray(e))return e;let t=tI.get(e);return t||tI.set(e,t=tV(e)),t}let tB=en.Pe.define(),tD=en.Pe.define();class tF{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let i=(0,en.vS)(e,t),n=(0,en.Fh)(i);this.chars.push(i);let r=e.slice(t,t+n),s=r.toUpperCase();this.folded.push((0,en.vS)(s==r?r.toLowerCase():s,0)),t+=n}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(0==this.pattern.length)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:i,any:n,precise:r,byWord:s}=this;if(1==t.length){let n=(0,en.vS)(e,0),r=(0,en.Fh)(n),s=r==e.length?0:-100;if(n==t[0]);else{if(n!=i[0])return null;s+=-200}return this.ret(s,[0,r])}let o=e.indexOf(this.pattern);if(0==o)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let l=t.length,O=0;if(o<0){for(let r=0,s=Math.min(e.length,200);r<s&&O<l;){let s=(0,en.vS)(e,r);(s==t[O]||s==i[O])&&(n[O++]=r),r+=(0,en.Fh)(s)}if(O<l)return null}let a=0,h=0,d=!1,u=0,f=-1,p=-1,c=/[a-z]/.test(e),m=!0;for(let n=0,O=Math.min(e.length,200),g=0;n<O&&h<l;){let O=(0,en.vS)(e,n);o<0&&(a<l&&O==t[a]&&(r[a++]=n),u<l&&(O==t[u]||O==i[u]?(0==u&&(f=n),p=n+1,u++):u=0));let Q,y=O<255?O>=48&&O<=57||O>=97&&O<=122?2:+(O>=65&&O<=90):(Q=(0,en.MK)(O))!=Q.toLowerCase()?1:2*(Q!=Q.toUpperCase());(!n||1==y&&c||0==g&&0!=y)&&(t[h]==O||i[h]==O&&(d=!0)?s[h++]=n:s.length&&(m=!1)),g=y,n+=(0,en.Fh)(O)}return h==l&&0==s[0]&&m?this.result(-100+(d?-200:0),s,e):u==l&&0==f?this.ret(-200-e.length+(p==e.length?0:-100),[0,p]):o>-1?this.ret(-700-e.length,[o,o+this.pattern.length]):u==l?this.ret(-900-e.length,[f,p]):h==l?this.result(-100+(d?-200:0)+-700+(m?0:-1100),s,e):2==t.length?null:this.result((n[0]?-700:0)+-200+-1100,n,e)}result(e,t,i){let n=[],r=0;for(let e of t){let t=e+(this.astral?(0,en.Fh)((0,en.vS)(i,e)):1);r&&n[r-1]==e?n[r-1]=t:(n[r++]=e,n[r++]=t)}return this.ret(e-i.length,n)}}class tL{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),i=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return null==i?null:(this.matched=[0,t.length],this.score=i+(e.length==this.pattern.length?0:-100),this)}}let tJ=en.sj.define({combine:e=>(0,en.QR)(e,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:tH,filterStrict:!1,compareCompletions:(e,t)=>(e.sortText||e.label).localeCompare(t.sortText||t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>i=>tM(e(i),t(i)),optionClass:(e,t)=>i=>tM(e(i),t(i)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})});function tM(e,t){return e?t?e+" "+t:e:t}function tH(e,t,i,n,r,s){let o=e.textDirection==er.OP.RTL,l=o,O=!1,a="top",h,d,u=t.left-r.left,f=r.right-t.right,p=n.right-n.left,c=n.bottom-n.top;if(l&&u<Math.min(p,f)?l=!1:!l&&f<Math.min(p,u)&&(l=!0),p<=(l?u:f))h=Math.max(r.top,Math.min(i.top,r.bottom-c))-t.top,d=Math.min(400,l?u:f);else{O=!0,d=Math.min(400,(o?t.right:r.right-t.left)-30);let e=r.bottom-t.bottom;e>=c||e>t.top?h=i.bottom-t.top:(a="bottom",h=t.bottom-i.top)}let m=(t.bottom-t.top)/s.offsetHeight,g=(t.right-t.left)/s.offsetWidth;return{style:`${a}: ${h/m}px; max-width: ${d/g}px`,class:"cm-completionInfo-"+(O?o?"left-narrow":"right-narrow":l?"left":"right")}}function tK(e,t,i){if(e<=i)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/i);return{from:e*i,to:(e+1)*i}}let n=Math.floor((e-t)/i);return{from:e-(n+1)*i,to:e-n*i}}class t0{constructor(e,t,i){this.view=e,this.stateField=t,this.applyCompletion=i,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let n=e.state.field(t),{options:r,selected:s}=n.open,o=e.state.facet(tJ);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map(e=>"cm-completionIcon-"+e)),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,i,n){let r=document.createElement("span");r.className="cm-completionLabel";let s=e.displayLabel||e.label,o=0;for(let e=0;e<n.length;){let t=n[e++],i=n[e++];t>o&&r.appendChild(document.createTextNode(s.slice(o,t)));let l=r.appendChild(document.createElement("span"));l.appendChild(document.createTextNode(s.slice(t,i))),l.className="cm-completionMatchedText",o=i}return o<s.length&&r.appendChild(document.createTextNode(s.slice(o))),r},position:50},{render(e){if(!e.detail)return null;let t=document.createElement("span");return t.className="cm-completionDetail",t.textContent=e.detail,t},position:80}),t.sort((e,t)=>e.position-t.position).map(e=>e.render)}(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=tK(r.length,s,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",i=>{let{options:n}=e.state.field(t).open;for(let t=i.target,r;t&&t!=this.dom;t=t.parentNode)if("LI"==t.nodeName&&(r=/-(\d+)$/.exec(t.id))&&+r[1]<n.length){this.applyCompletion(e,n[+r[1]]),i.preventDefault();return}}),this.dom.addEventListener("focusout",t=>{let i=e.state.field(this.stateField,!1);i&&i.tooltip&&e.state.facet(tJ).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:tD.of(null)})}),this.showOptions(r,n.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let i=e.state.field(this.stateField),n=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),i!=n){let{options:r,selected:s,disabled:o}=i.open;n.open&&n.open.options==r||(this.range=tK(r.length,s,e.state.facet(tJ).maxRenderedOptions),this.showOptions(r,i.id)),this.updateSel(),o!=(null==(t=n.open)?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!o)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;(t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=tK(t.options.length,t.selected,this.view.state.facet(tJ).maxRenderedOptions),this.showOptions(t.options,e.id));let i=this.updateSelectedOption(t.selected);if(i){this.destroyInfo();let{completion:n}=t.options[t.selected],{info:r}=n;if(!r)return;let s="string"==typeof r?document.createTextNode(r):r(n);if(!s)return;"then"in s?s.then(t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,n)}).catch(e=>(0,er.c_)(this.view.state,e,"completion info")):(this.addInfoPane(s,n),i.setAttribute("aria-describedby",this.info.id))}}addInfoPane(e,t){this.destroyInfo();let i=this.info=document.createElement("div");if(i.className="cm-tooltip cm-completionInfo",i.id="cm-completionInfo-"+Math.floor(65535*Math.random()).toString(16),null!=e.nodeType)i.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:n}=e;i.appendChild(t),this.infoDestroy=n||null}this.dom.appendChild(i),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){var t,i;let n,r,s,o=null;for(let t=this.list.firstChild,i=this.range.from;t;t=t.nextSibling,i++)"LI"==t.nodeName&&t.id?i==e?t.hasAttribute("aria-selected")||(t.setAttribute("aria-selected","true"),o=t):t.hasAttribute("aria-selected")&&(t.removeAttribute("aria-selected"),t.removeAttribute("aria-describedby")):i--;return o&&(t=this.list,i=o,n=t.getBoundingClientRect(),r=i.getBoundingClientRect(),s=n.height/t.offsetHeight,r.top<n.top?t.scrollTop-=(n.top-r.top)/s:r.bottom>n.bottom&&(t.scrollTop+=(r.bottom-n.bottom)/s)),o}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),n=e.getBoundingClientRect(),r=this.space;if(!r){let e=this.dom.ownerDocument.documentElement;r={left:0,top:0,right:e.clientWidth,bottom:e.clientHeight}}return n.top>Math.min(r.bottom,t.bottom)-10||n.bottom<Math.max(r.top,t.top)+10?null:this.view.state.facet(tJ).positionInfo(this.view,t,n,i,r,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,i){let n=document.createElement("ul");n.id=t,n.setAttribute("role","listbox"),n.setAttribute("aria-expanded","true"),n.setAttribute("aria-label",this.view.state.phrase("Completions")),n.addEventListener("mousedown",e=>{e.target==n&&e.preventDefault()});let r=null;for(let s=i.from;s<i.to;s++){let{completion:o,match:l}=e[s],{section:O}=o;if(O){let e="string"==typeof O?O:O.name;e!=r&&(s>i.from||0==i.from)&&(r=e,"string"!=typeof O&&O.header?n.appendChild(O.header(O)):n.appendChild(document.createElement("completion-section")).textContent=e)}let a=n.appendChild(document.createElement("li"));a.id=t+"-"+s,a.setAttribute("role","option");let h=this.optionClass(o);for(let e of(h&&(a.className=h),this.optionContent)){let t=e(o,this.view.state,this.view,l);t&&a.appendChild(t)}}return i.from&&n.classList.add("cm-completionListIncompleteTop"),i.to<e.length&&n.classList.add("cm-completionListIncompleteBottom"),n}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function t1(e){return 100*(e.boost||0)+10*!!e.apply+5*!!e.info+ +!!e.type}class t5{constructor(e,t,i,n,r,s){this.options=e,this.attrs=t,this.tooltip=i,this.timestamp=n,this.selected=r,this.disabled=s}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new t5(this.options,t3(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,i,n,r,s){if(n&&!s&&e.some(e=>e.isPending))return n.setDisabled();let o=function(e,t){let i=[],n=null,r=null,s=e=>{i.push(e);let{section:t}=e.completion;if(t){n||(n=[]);let e="string"==typeof t?t:t.name;n.some(t=>t.name==e)||n.push("string"==typeof t?{name:e}:t)}},o=t.facet(tJ);for(let n of e)if(n.hasResult()){let e=n.result.getMatch;if(!1===n.result.filter)for(let t of n.result.options)s(new tj(t,n.source,e?e(t):[],1e9-i.length));else{let i=t.sliceDoc(n.from,n.to),l,O=o.filterStrict?new tL(i):new tF(i);for(let t of n.result.options)if(l=O.match(t.label)){let i=t.displayLabel?e?e(t,l.matched):[]:l.matched,o=l.score+(t.boost||0);if(s(new tj(t,n.source,i,o)),"object"==typeof t.section&&"dynamic"===t.section.rank){let{name:e}=t.section;r||(r=Object.create(null)),r[e]=Math.max(o,r[e]||-1e9)}}}}if(n){let e=Object.create(null),t=0;for(let i of n.sort((e,t)=>("dynamic"===e.rank&&"dynamic"===t.rank?r[t.name]-r[e.name]:0)||("number"==typeof e.rank?e.rank:1e9)-("number"==typeof t.rank?t.rank:1e9)||(e.name<t.name?-1:1)))t-=1e5,e[i.name]=t;for(let t of i){let{section:i}=t.completion;i&&(t.score+=e["string"==typeof i?i:i.name])}}let l=[],O=null,a=o.compareCompletions;for(let e of i.sort((e,t)=>t.score-e.score||a(e.completion,t.completion))){let t=e.completion;O&&O.label==t.label&&O.detail==t.detail&&(null==O.type||null==t.type||O.type==t.type)&&O.apply==t.apply&&O.boost==t.boost?t1(e.completion)>t1(O)&&(l[l.length-1]=e):l.push(e),O=e.completion}return l}(e,t);if(!o.length)return n&&e.some(e=>e.isPending)?n.setDisabled():null;let l=t.facet(tJ).selectOnOpen?0:-1;if(n&&n.selected!=l&&-1!=n.selected){let e=n.options[n.selected].completion;for(let t=0;t<o.length;t++)if(o[t].completion==e){l=t;break}}return new t5(o,t3(i,l),{pos:e.reduce((e,t)=>t.hasResult()?Math.min(e,t.from):e,1e8),create:ir,above:r.aboveCursor},n?n.timestamp:Date.now(),l,!1)}map(e){return new t5(this.options,this.attrs,{...this.tooltip,pos:e.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new t5(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class t2{constructor(e,t,i){this.active=e,this.id=t,this.open=i}static start(){return new t2(t9,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,i=t.facet(tJ),n=(i.override||t.languageDataAt("autocomplete",tG(t)).map(tY)).map(t=>(this.active.find(e=>e.source==t)||new t8(t,+!!this.active.some(e=>0!=e.state))).update(e,i));n.length==this.active.length&&n.every((e,t)=>e==this.active[t])&&(n=this.active);let r=this.open,s=e.effects.some(e=>e.is(ie));for(let o of(r&&e.docChanged&&(r=r.map(e.changes)),e.selection||n.some(t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to))||!function(e,t){if(e==t)return!0;for(let i=0,n=0;;){for(;i<e.length&&!e[i].hasResult();)i++;for(;n<t.length&&!t[n].hasResult();)n++;let r=i==e.length,s=n==t.length;if(r||s)return r==s;if(e[i++].result!=t[n++].result)return!1}}(n,this.active)||s?r=t5.build(n,t,this.id,r,i,s):r&&r.disabled&&!n.some(e=>e.isPending)&&(r=null),!r&&n.every(e=>!e.isPending)&&n.some(e=>e.hasResult())&&(n=n.map(e=>e.hasResult()?new t8(e.source,0):e)),e.effects))o.is(it)&&(r=r&&r.setSelected(o.value,this.id));return n==this.active&&r==this.open?this:new t2(n,this.id,r)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?t4:t7}}let t4={"aria-autocomplete":"list"},t7={};function t3(e,t){let i={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(i["aria-activedescendant"]=e+"-"+t),i}let t9=[];class t8{constructor(e,t,i=!1){this.source=e,this.state=t,this.explicit=i}hasResult(){return!1}get isPending(){return 1==this.state}update(e,t){let i=function(e,t){if(e.isUserEvent("input.complete")){let i=e.annotation(tN);if(i&&t.activateOnCompletion(i))return 12}let i=e.isUserEvent("input.type");return i&&t.activateOnTyping?5:i?1:e.isUserEvent("delete.backward")?2:e.selection?8:16*!!e.docChanged}(e,t),n=this;for(let t of((8&i||16&i&&this.touches(e))&&(n=new t8(n.source,0)),4&i&&0==n.state&&(n=new t8(this.source,1)),n=n.updateFor(e,i),e.effects))if(t.is(tB))n=new t8(n.source,1,t.value);else if(t.is(tD))n=new t8(n.source,0);else if(t.is(ie))for(let e of t.value)e.source==n.source&&(n=e);return n}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(tG(e.state))}}class t6 extends t8{constructor(e,t,i,n,r,s){super(e,3,t),this.limit=i,this.result=n,this.from=r,this.to=s}hasResult(){return!0}updateFor(e,t){var i;if(!(3&t))return this.map(e.changes);let n=this.result;n.map&&!e.changes.empty&&(n=n.map(n,e.changes));let r=e.changes.mapPos(this.from),s=e.changes.mapPos(this.to,1),o=tG(e.state);if(o>s||!n||2&t&&(tG(e.startState)==this.from||o<this.limit))return new t8(this.source,4&t?1:0);let l=e.changes.mapPos(this.limit);return!function(e,t,i,n){if(!e)return!1;let r=t.sliceDoc(i,n);return"function"==typeof e?e(r,i,n,t):tZ(e,!0).test(r)}(n.validFor,e.state,r,s)?n.update&&(n=n.update(n,r,s,new tE(e.state,o,!1)))?new t6(this.source,this.explicit,l,n,n.from,null!=(i=n.to)?i:tG(e.state)):new t8(this.source,1,this.explicit):new t6(this.source,this.explicit,l,n,r,s)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new t6(this.source,this.explicit,e.mapPos(this.limit),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new t8(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}let ie=en.Pe.define({map:(e,t)=>e.map(e=>e.map(t))}),it=en.Pe.define(),ii=en.sU.define({create:()=>t2.start(),update:(e,t)=>e.update(t),provide:e=>[er.DK.from(e,e=>e.tooltip),er.Lz.contentAttributes.from(e,e=>e.attrs)]}),ir=(s=function(e,t){let i=t.completion.apply||t.completion.label,n=e.state.field(ii).active.find(e=>e.source==t.source);return n instanceof t6&&("string"==typeof i?e.dispatch({...function(e,t,i,n){let{main:r}=e.selection,s=i-r.from,o=n-r.from;return{...e.changeByRange(l=>{if(l!=r&&i!=n&&e.sliceDoc(l.from+s,l.from+o)!=e.sliceDoc(i,n))return{range:l};let O=e.toText(t);return{changes:{from:l.from+s,to:n==r.from?l.to:l.from+o,insert:O},range:en.OF.cursor(l.from+s+O.length)}}),scrollIntoView:!0,userEvent:"input.complete"}}(e.state,i,n.from,n.to),annotations:tN.of(t.completion)}):i(e,t.completion,n.from,n.to),!0)},e=>new t0(e,ii,s));"object"==typeof navigator&&navigator.platform;let is=er.Lz.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 io{constructor(e,t,i,n){this.field=e,this.line=t,this.from=i,this.to=n}}class il{constructor(e,t,i){this.field=e,this.from=t,this.to=i}map(e){let t=e.mapPos(this.from,-1,en.iR.TrackDel),i=e.mapPos(this.to,1,en.iR.TrackDel);return null==t||null==i?null:new il(this.field,t,i)}}class iO{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let i=[],n=[t],r=e.doc.lineAt(t),s=/^\s*/.exec(r.text)[0];for(let r of this.lines){if(i.length){let i=s,o=/^\t*/.exec(r)[0].length;for(let t=0;t<o;t++)i+=e.facet(tS);n.push(t+i.length-o),r=i+r.slice(o)}i.push(r),t+=r.length+1}return{text:i,ranges:this.fieldPositions.map(e=>new il(e.field,n[e.line]+e.from,n[e.line]+e.to))}}static parse(e){let t=[],i=[],n=[],r;for(let s of e.split(/\r\n?|\n/)){for(;r=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(s);){let e=r[1]?+r[1]:null,o=r[2]||r[3]||"",l=-1,O=o.replace(/\\[{}]/g,e=>e[1]);for(let i=0;i<t.length;i++)(null!=e?t[i].seq==e:O&&t[i].name==O)&&(l=i);if(l<0){let i=0;for(;i<t.length&&(null==e||null!=t[i].seq&&t[i].seq<e);)i++;for(let r of(t.splice(i,0,{seq:e,name:O}),l=i,n))r.field>=l&&r.field++}for(let e of n)if(e.line==i.length&&e.from>r.index){let t=r[2]?3+(r[1]||"").length:2;e.from-=t,e.to-=t}n.push(new io(l,i.length,r.index,r.index+O.length)),s=s.slice(0,r.index)+o+s.slice(r.index+r[0].length)}s=s.replace(/\\([{}])/g,(e,t,r)=>{for(let e of n)e.line==i.length&&e.from>r&&(e.from--,e.to--);return t}),i.push(s)}return new iO(i,n)}}let ia=er.NZ.widget({widget:new class extends er.xO{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),ih=er.NZ.mark({class:"cm-snippetField"});class id{constructor(e,t){this.ranges=e,this.active=t,this.deco=er.NZ.set(e.map(e=>(e.from==e.to?ia:ih).range(e.from,e.to)),!0)}map(e){let t=[];for(let i of this.ranges){let n=i.map(e);if(!n)return null;t.push(n)}return new id(t,this.active)}selectionInsideField(e){return e.ranges.every(e=>this.ranges.some(t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))}}let iu=en.Pe.define({map:(e,t)=>e&&e.map(t)}),ip=en.Pe.define(),ic=en.sU.define({create:()=>null,update(e,t){for(let i of t.effects){if(i.is(iu))return i.value;if(i.is(ip)&&e)return new id(e.ranges,i.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>er.Lz.decorations.from(e,e=>e?e.deco:er.NZ.none)});function im(e,t){return en.OF.create(e.filter(e=>e.field==t).map(e=>en.OF.range(e.from,e.to)))}function ig(e){return({state:t,dispatch:i})=>{let n=t.field(ic,!1);if(!n||e<0&&0==n.active)return!1;let r=n.active+e,s=e>0&&!n.ranges.some(t=>t.field==r+e);return i(t.update({selection:im(n.ranges,r),effects:iu.of(s?null:new id(n.ranges,r)),scrollIntoView:!0})),!0}}let iQ=[{key:"Tab",run:ig(1),shift:ig(-1)},{key:"Escape",run:({state:e,dispatch:t})=>!!e.field(ic,!1)&&(t(e.update({effects:iu.of(null)})),!0)}],iy=en.sj.define({combine:e=>e.length?e[0]:iQ}),iS=en.Nb.highest(er.w4.compute([iy],e=>e.facet(iy)));function iT(e,t){let i;return{...t,apply:(i=iO.parse(e),(e,t,n,r)=>{let{text:s,ranges:o}=i.instantiate(e.state,n),{main:l}=e.state.selection,O={changes:{from:n,to:r==l.from?l.to:r,insert:en.EY.of(s)},scrollIntoView:!0,annotations:t?[tN.of(t),en.ZX.userEvent.of("input.complete")]:void 0};if(o.length&&(O.selection=im(o,0)),o.some(e=>e.field>0)){let t=new id(o,0),i=O.effects=[iu.of(t)];void 0===e.state.field(ic,!1)&&i.push(en.Pe.appendConfig.of([ic,iS,ix,is]))}e.dispatch(e.state.update(O))})}}let ix=er.Lz.domEventHandlers({mousedown(e,t){let i=t.state.field(ic,!1),n;if(!i||null==(n=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let r=i.ranges.find(e=>e.from<=n&&e.to>=n);return!!r&&r.field!=i.active&&(t.dispatch({selection:im(i.ranges,r.field),effects:iu.of(i.ranges.some(e=>e.field>r.field)?new id(i.ranges,r.field):null),scrollIntoView:!0}),!0)}}),iv=new class extends en.FB{};iv.startSide=1,iv.endSide=-1,"object"==typeof navigator&&navigator.userAgent;let ib=new class{constructor(){this.map=new WeakMap}setBuffer(e,t,i){let n=this.map.get(e);n||this.map.set(e,n=new Map),n.set(t,i)}getBuffer(e,t){let i=this.map.get(e);return i&&i.get(t)}set(e,t){e instanceof B?this.setBuffer(e.context.buffer,e.index,t):e instanceof Z&&this.map.set(e.tree,t)}get(e){return e instanceof B?this.getBuffer(e.context.buffer,e.index):e instanceof Z?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}},ik=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function iP(e){return(t,i,n)=>{if(n)return!1;let r=t.node.getChild("VariableName");return r&&i(r,e),!0}}let iw={FunctionDefinition:iP("function"),ClassDefinition:iP("class"),ForStatement(e,t,i){if(i){for(let i=e.node.firstChild;i;i=i.nextSibling)if("VariableName"==i.name)t(i,"variable");else if("in"==i.name)break}},ImportStatement(e,t){var i,n;let{node:r}=e,s=(null==(i=r.firstChild)?void 0:i.name)=="from";for(let e=r.getChild("import");e;e=e.nextSibling)"VariableName"==e.name&&(null==(n=e.nextSibling)?void 0:n.name)!="as"&&t(e,s?"variable":"namespace")},AssignStatement(e,t){for(let i=e.node.firstChild;i;i=i.nextSibling)if("VariableName"==i.name)t(i,"variable");else if(":"==i.name||"AssignOp"==i.name)break},ParamList(e,t){for(let i=null,n=e.node.firstChild;n;n=n.nextSibling)"VariableName"!=n.name||i&&/\*|AssignOp/.test(i.name)||t(n,"variable"),i=n},CapturePattern:iP("variable"),AsPattern:iP("variable"),__proto__:null},i_=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,iq=["String","FormatString","Comment","PropertyName"];function i$(e){let t=ed(e.state).resolveInner(e.pos,-1);if(iq.indexOf(t.name)>-1)return null;let i="VariableName"==t.name||t.to-t.from<20&&i_.test(e.state.sliceDoc(t.from,t.to));if(!i&&!e.explicit)return null;let n=[];for(let i=t;i;i=i.parent)ik.has(i.name)&&(n=n.concat(function e(t,i){let n=ib.get(i);if(n)return n;let r=[],s=!0;function o(e,i){let n=t.sliceString(e.from,e.to);r.push({label:n,type:i})}return i.cursor(l.IncludeAnonymous).iterate(i=>{if(i.name){let e=iw[i.name];if(e&&e(i,o,s)||!s&&ik.has(i.name))return!1;s=!1}else if(i.to-i.from>8192){for(let n of e(t,i.node))r.push(n);return!1}}),ib.set(i,r),r}(e.state.doc,i)));return{options:n,from:i?t.from:e.pos,validFor:i_}}let iz=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(e=>({label:e,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(e=>({label:e,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(e=>({label:e,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(e=>({label:e,type:"function"}))),iX=[iT("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),iT("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),iT("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),iT("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),iT("if ${}:\n \n",{label:"if",detail:"block",type:"keyword"}),iT("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),iT("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),iT("import ${module}",{label:"import",detail:"statement",type:"keyword"}),iT("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],iW=(o=tV(iz.concat(iX)),e=>{for(let t=th(e.state).resolveInner(e.pos,-1);t;t=t.parent){if(iq.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return o(e)});function iR(e){let{node:t,pos:i}=e,n=e.lineIndent(i,-1),r=null;for(;;){let s=t.childBefore(i);if(s)if("Comment"==s.name)i=s.from;else if("Body"==s.name||"MatchBody"==s.name)e.baseIndentFor(s)+e.unit<=n&&(r=s),t=s;else if("MatchClause"==s.name)t=s;else if(s.type.is("Statement"))t=s;else break;else break}return r}function iA(e,t){let i=e.baseIndentFor(t),n=e.lineAt(e.pos,-1),r=n.from+n.text.length;return/^\s*($|#)/.test(n.text)&&e.node.to<r+100&&!/\S/.test(e.state.sliceDoc(r,e.node.to))&&e.lineIndent(e.pos,-1)<=i||/^\s*(else:|elif |except |finally:|case\s+[^=:]+:)/.test(e.textAfter)&&e.lineIndent(e.pos,-1)>i?null:i+e.unit}let iU=eh.define({name:"python",parser:w.configure({props:[ex.add({Body:e=>{var t;let i=/^\s*(#|$)/.test(e.textAfter)&&iR(e)||e.node;return null!=(t=iA(e,i))?t:e.continue()},MatchBody:e=>{var t;let i=iR(e);return null!=(t=iA(e,i||e.node))?t:e.continue()},IfStatement:e=>/^\s*(else:|elif )/.test(e.textAfter)?e.baseIndent:e.continue(),"ForStatement WhileStatement":e=>/^\s*else:/.test(e.textAfter)?e.baseIndent:e.continue(),TryStatement:e=>/^\s*(except[ :]|finally:|else:)/.test(e.textAfter)?e.baseIndent:e.continue(),MatchStatement:e=>/^\s*case /.test(e.textAfter)?e.baseIndent+e.unit:e.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":ev({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":ev({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":ev({closing:"]"}),MemberExpression:e=>e.baseIndent+e.unit,"String FormatString":()=>null,Script:e=>{var t;let i=iR(e);return null!=(t=i&&iA(e,i))?t:e.continue()}}),eb.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":function(e){let t=e.firstChild,i=e.lastChild;return t&&t.to<i.from?{from:t.to,to:i.type.isError?e.to:i.from}:null},Body:(e,t)=>({from:e.from+1,to:e.to-(e.to!=t.doc.length)}),"String FormatString":(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:|case\s+[^:]*:?)$/}});function iE(){return new eT(iU,[iU.data.of({autocomplete:i$}),iU.data.of({autocomplete:iW})])}}}]);
@@ -7,4 +7,4 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
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:["(","[","{","'",'"',"'''",'"""']}}}}}]);
10
+ "use strict";(self.webpackChunk_nocobase_plugin_field_code=self.webpackChunk_nocobase_plugin_field_code||[]).push([["815"],{922: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:["(","[","{","'",'"',"'''",'"""']}}}}}]);
@@ -7,4 +7,4 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
 
10
- "use strict";(self.webpackChunk_nocobase_plugin_field_code=self.webpackChunk_nocobase_plugin_field_code||[]).push([["155"],{670:function(e,t,r){r.r(t),r.d(t,{Cassandra:function(){return G},MSSQL:function(){return E},MariaSQL:function(){return A},MySQL:function(){return $},PLSQL:function(){return M},PostgreSQL:function(){return L},SQLDialect:function(){return X},SQLite:function(){return W},StandardSQL:function(){return Z},keywordCompletionSource:function(){return I},schemaCompletionSource:function(){return J},sql:function(){return R}});var n=r(858),a=r(930),i=r(856),s=r(490);function o(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57}function l(e,t,r){for(let n=!1;;){if(e.next<0)return;if(e.next==t&&!n)return void e.advance();n=r&&!n&&92==e.next,e.advance()}}function c(e,t){for(;95==e.next||o(e.next);)null!=t&&(t+=String.fromCharCode(e.next)),e.advance();return t}function d(e,t){for(;48==e.next||49==e.next;)e.advance();t&&e.next==t&&e.advance()}function u(e,t){for(;;){if(46==e.next){if(t)break;t=!0}else if(e.next<48||e.next>57)break;e.advance()}if(69==e.next||101==e.next)for(e.advance(),(43==e.next||45==e.next)&&e.advance();e.next>=48&&e.next<=57;)e.advance()}function p(e){for(;!(e.next<0||10==e.next);)e.advance()}function m(e,t){for(let r=0;r<t.length;r++)if(t.charCodeAt(r)==e)return!0;return!1}let f=" \r\n";function _(e,t,r){let n=Object.create(null);for(let t of(n.true=n.false=5,n.null=n.unknown=6,e.split(" ")))t&&(n[t]=20);for(let e of t.split(" "))e&&(n[e]=21);for(let e of(r||"").split(" "))e&&(n[e]=24);return n}let g="array binary bit boolean char character clob date decimal double float int integer interval large national nchar nclob numeric object precision real smallint time timestamp varchar varying ",h="absolute action add after all allocate alter and any are as asc assertion at authorization before begin between both breadth by call cascade cascaded case cast catalog check close collate collation column commit condition connect connection constraint constraints constructor continue corresponding count create cross cube current current_date current_default_transform_group current_transform_group_for_type current_path current_role current_time current_timestamp current_user cursor cycle data day deallocate declare default deferrable deferred delete depth deref desc describe descriptor deterministic diagnostics disconnect distinct do domain drop dynamic each else elseif end end-exec equals escape except exception exec execute exists exit external fetch first for foreign found from free full function general get global go goto grant group grouping handle having hold hour identity if immediate in indicator initially inner inout input insert intersect into is isolation join key language last lateral leading leave left level like limit local localtime localtimestamp locator loop map match method minute modifies module month names natural nesting new next no none not of old on only open option or order ordinality out outer output overlaps pad parameter partial path prepare preserve primary prior privileges procedure public read reads recursive redo ref references referencing relative release repeat resignal restrict result return returns revoke right role rollback rollup routine row rows savepoint schema scroll search second section select session session_user set sets signal similar size some space specific specifictype sql sqlexception sqlstate sqlwarning start state static system_user table temporary then timezone_hour timezone_minute to trailing transaction translation treat trigger under undo union unique unnest until update usage user using value values view when whenever where while with without work write year zone ",b={backslashEscapes:!1,hashComments:!1,spaceAfterDashes:!1,slashComments:!1,doubleQuotedStrings:!1,doubleDollarQuotedStrings:!1,unquotedBitLiterals:!1,treatBitsAsBytes:!1,charSetCasts:!1,plsqlQuotingMechanism:!1,operatorChars:"*+-%<>!=&|~^/",specialVar:"?",identifierQuotes:'"',caseInsensitiveIdentifiers:!1,words:_(h,g)};function y(e){return new i.Jq(t=>{let{next:r}=t;if(t.advance(),m(r,f)){for(;m(t.next,f);)t.advance();t.acceptToken(36)}else if(36==r&&e.doubleDollarQuotedStrings){let e=c(t,"");36==t.next&&(t.advance(),function(e,t){e:for(;;){if(e.next<0)return;if(36==e.next){e.advance();for(let r=0;r<t.length;r++){if(e.next!=t.charCodeAt(r))continue e;e.advance()}if(36==e.next)return void e.advance()}else e.advance()}}(t,e),t.acceptToken(3))}else if(39==r||34==r&&e.doubleQuotedStrings)l(t,r,e.backslashEscapes),t.acceptToken(3);else if(35==r&&e.hashComments||47==r&&47==t.next&&e.slashComments)p(t),t.acceptToken(1);else if(45!=r||45!=t.next||e.spaceAfterDashes&&32!=t.peek(1)){if(47==r&&42==t.next){t.advance();for(let e=1;;){let r=t.next;if(t.next<0)break;if(t.advance(),42==r&&47==t.next){if(e--,t.advance(),!e)break}else 47==r&&42==t.next&&(e++,t.advance())}t.acceptToken(2)}else if((101==r||69==r)&&39==t.next)t.advance(),l(t,39,!0),t.acceptToken(3);else if((110==r||78==r)&&39==t.next&&e.charSetCasts)t.advance(),l(t,39,e.backslashEscapes),t.acceptToken(3);else if(95==r&&e.charSetCasts)for(let r=0;;r++){if(39==t.next&&r>1){t.advance(),l(t,39,e.backslashEscapes),t.acceptToken(3);break}if(!o(t.next))break;t.advance()}else if(e.plsqlQuotingMechanism&&(113==r||81==r)&&39==t.next&&t.peek(1)>0&&!m(t.peek(1),f)){let e=t.peek(1);t.advance(2),function(e,t){let r="[{<(".indexOf(String.fromCharCode(t)),n=r<0?t:"]}>)".charCodeAt(r);for(;;){if(e.next<0)return;if(e.next==n&&39==e.peek(1))return void e.advance(2);e.advance()}}(t,e),t.acceptToken(3)}else if(m(r,e.identifierQuotes))l(t,91==r?93:r,!1),t.acceptToken(19);else if(40==r)t.acceptToken(7);else if(41==r)t.acceptToken(8);else if(123==r)t.acceptToken(9);else if(125==r)t.acceptToken(10);else if(91==r)t.acceptToken(11);else if(93==r)t.acceptToken(12);else if(59==r)t.acceptToken(13);else if(e.unquotedBitLiterals&&48==r&&98==t.next)t.advance(),d(t),t.acceptToken(22);else if((98==r||66==r)&&(39==t.next||34==t.next)){let r=t.next;t.advance(),e.treatBitsAsBytes?(l(t,r,e.backslashEscapes),t.acceptToken(23)):(d(t,r),t.acceptToken(22))}else if(48==r&&(120==t.next||88==t.next)||(120==r||88==r)&&39==t.next){let e=39==t.next;for(t.advance();(a=t.next)>=48&&a<=57||a>=97&&a<=102||a>=65&&a<=70;)t.advance();e&&39==t.next&&t.advance(),t.acceptToken(4)}else if(46==r&&t.next>=48&&t.next<=57)u(t,!0),t.acceptToken(4);else if(46==r)t.acceptToken(14);else if(r>=48&&r<=57)u(t,!1),t.acceptToken(4);else if(m(r,e.operatorChars)){for(;m(t.next,e.operatorChars);)t.advance();t.acceptToken(15)}else if(m(r,e.specialVar)){var n,a;if(t.next==r&&t.advance(),39==t.next||34==t.next||96==t.next){let e=t.next;t.advance(),l(t,e,!1)}else c(t);t.acceptToken(17)}else if(58==r||44==r)t.acceptToken(16);else if(o(r)){let a=c(t,String.fromCharCode(r));t.acceptToken(46==t.next||46==t.peek(-a.length-1)?18:null!=(n=e.words[a.toLowerCase()])?n:18)}}else p(t),t.acceptToken(1)})}let v=y(b),k=i.WQ.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",stateData:",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",goto:"#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",nodeNames:"⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,nodeProps:[["isolate",-4,1,2,3,19,""]],skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,v],topRules:{Script:[0,25]},tokenPrec:0});function x(e){let t=e.cursor().moveTo(e.from,-1);for(;/Comment/.test(t.name);)t.moveTo(t.from,-1);return t.node}function O(e,t){let r=e.sliceString(t.from,t.to),n=/^([`'"\[])(.*)([`'"\]])$/.exec(r);return n?n[2]:r}function w(e){return e&&("Identifier"==e.name||"QuotedIdentifier"==e.name)}function Q(e,t){for(let r=[];;){if(!t||"."!=t.name)return r;let n=x(t);if(!w(n))return r;r.unshift(O(e,n)),t=x(n)}}let C=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" ")),q=/^\w*$/,S=/^[`'"\[]?\w*[`'"\]]?$/;function P(e){return e.self&&"string"==typeof e.self.label}class T{constructor(e,t){this.idQuote=e,this.idCaseInsensitive=t,this.list=[],this.children=void 0}child(e){let t=this.children||(this.children=Object.create(null)),r=t[e];return r||(e&&!this.list.some(t=>t.label==e)&&this.list.push(j(e,"type",this.idQuote,this.idCaseInsensitive)),t[e]=new T(this.idQuote,this.idCaseInsensitive))}maybeChild(e){return this.children?this.children[e]:null}addCompletion(e){let t=this.list.findIndex(t=>t.label==e.label);t>-1?this.list[t]=e:this.list.push(e)}addCompletions(e){for(let t of e)this.addCompletion("string"==typeof t?j(t,"property",this.idQuote,this.idCaseInsensitive):t)}addNamespace(e){Array.isArray(e)?this.addCompletions(e):P(e)?this.addNamespace(e.children):this.addNamespaceObject(e)}addNamespaceObject(e){for(let t of Object.keys(e)){let r=e[t],n=null,a=t.replace(/\\?\./g,e=>"."==e?"\0":e).split("\0"),i=this;P(r)&&(n=r.self,r=r.children);for(let e=0;e<a.length;e++)n&&e==a.length-1&&i.addCompletion(n),i=i.child(a[e].replace(/\\\./g,"."));i.addNamespace(r)}}}function j(e,t,r,n){return RegExp("^[a-z_][a-z_\\d]*$",n?"i":"").test(e)?{label:e,type:t}:{label:e,type:t,apply:r+e+z(r)}}function z(e){return"["===e?"]":e}let U=k.configure({props:[n.uj.add({Statement:(0,n.tC)()}),n.x0.add({Statement:(e,t)=>({from:Math.min(e.from+100,t.doc.lineAt(e.from).to),to:e.to}),BlockComment:e=>({from:e.from+2,to:e.to-2})}),(0,a.Gv)({Keyword:a.pJ.keyword,Type:a.pJ.typeName,Builtin:a.pJ.standard(a.pJ.name),Bits:a.pJ.number,Bytes:a.pJ.string,Bool:a.pJ.bool,Null:a.pJ.null,Number:a.pJ.number,String:a.pJ.string,Identifier:a.pJ.name,QuotedIdentifier:a.pJ.special(a.pJ.string),SpecialVar:a.pJ.special(a.pJ.name),LineComment:a.pJ.lineComment,BlockComment:a.pJ.blockComment,Operator:a.pJ.operator,"Semi Punctuation":a.pJ.punctuation,"( )":a.pJ.paren,"{ }":a.pJ.brace,"[ ]":a.pJ.squareBracket})]});class X{constructor(e,t,r){this.dialect=e,this.language=t,this.spec=r}get extension(){return this.language.extension}configureLanguage(e,t){return new X(this.dialect,this.language.configure(e,t),this.spec)}static define(e){let t=function(e,t,r,n){let a={};for(let t in b)a[t]=(e.hasOwnProperty(t)?e:b)[t];return t&&(a.words=_(t,r||"",n)),a}(e,e.keywords,e.types,e.builtin),r=n.qp.define({name:"sql",parser:U.configure({tokenizers:[{from:v,to:y(t)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new X(t,r,e)}}function B(e,t){return{label:e,type:t,boost:-1}}function I(e,t=!1,r){var n,a;let i;return n=e.dialect.words,a=r||B,i=Object.keys(n).map(e=>{var r;return a(t?e.toUpperCase():e,21==(r=n[e])?"type":20==r?"keyword":"variable")}),(0,s.eC)(["QuotedIdentifier","String","LineComment","BlockComment","."],(0,s.Mb)(i))}function J(e){var t,r,a,i,s,o,l;let c,d;return e.schema?(t=e.schema,r=e.tables,a=e.schemas,i=e.defaultTable,s=e.defaultSchema,c=new T((null==(l=null==(o=e.dialect||Z)?void 0:o.spec.identifierQuotes)?void 0:l[0])||'"',!!(null==o?void 0:o.spec.caseInsensitiveIdentifiers)),d=s?c.child(s):null,c.addNamespace(t),r&&(d||c).addCompletions(r),a&&c.addCompletions(a),d&&c.addCompletions(d.list),i&&c.addCompletions((d||c).child(i).list),e=>{var t,r;let a,s,{parents:o,from:l,quoted:u,empty:p,aliases:m}=(t=e.state,r=e.pos,a=(0,n.qz)(t).resolveInner(r,-1),s=function(e,t){let r;for(let e=t;!r;e=e.parent){if(!e)return null;"Statement"==e.name&&(r=e)}let n=null;for(let t=r.firstChild,a=!1,i=null;t;t=t.nextSibling){let r="Keyword"==t.name?e.sliceString(t.from,t.to).toLowerCase():null,s=null;if(a)if("as"==r&&i&&w(t.nextSibling))s=O(e,t.nextSibling);else if(r&&C.has(r))break;else i&&w(t)&&(s=O(e,t));else a="from"==r;s&&(n||(n=Object.create(null)),n[s]=function(e,t){if("CompositeIdentifier"==t.name){let r=[];for(let n=t.firstChild;n;n=n.nextSibling)w(n)&&r.push(O(e,n));return r}return[O(e,t)]}(e,i)),i=/Identifier$/.test(t.name)?t:null}return n}(t.doc,a),"Identifier"==a.name||"QuotedIdentifier"==a.name||"Keyword"==a.name?{from:a.from,quoted:"QuotedIdentifier"==a.name?t.doc.sliceString(a.from,a.from+1):null,parents:Q(t.doc,x(a)),aliases:s}:"."==a.name?{from:r,quoted:null,parents:Q(t.doc,a),aliases:s}:{from:r,quoted:null,parents:[],empty:!0,aliases:s});if(p&&!e.explicit)return null;m&&1==o.length&&(o=m[o[0]]||o);let f=c;for(let e of o){for(;!f.children||!f.children[e];)if(f==c&&d)f=d;else{if(f!=d||!i)return null;f=f.child(i)}let t=f.maybeChild(e);if(!t)return null;f=t}let _=f.list;if(f==c&&m&&(_=_.concat(Object.keys(m).map(e=>({label:e,type:"constant"})))),!u)return{from:l,options:_,validFor:q};{let t=u[0],r=z(t);return{from:l,to:e.state.sliceDoc(e.pos,e.pos+1)==r?e.pos+1:void 0,options:_.map(e=>({...e,label:e.label[0]==t?e.label:t+e.label+r,apply:void 0})),validFor:S}}}):()=>null}function R(e={}){let t=e.dialect||Z;return new n.ri(t.language,[e.schema?(e.dialect||Z).language.data.of({autocomplete:J(e)}):[],t.language.data.of({autocomplete:I(t,e.upperCaseKeywords,e.keywordCompletion)})])}let Z=X.define({}),L=X.define({charSetCasts:!0,doubleDollarQuotedStrings:!0,operatorChars:"+-*/<>=~!@#%^&|`?",specialVar:"",keywords:h+"abort abs absent access according ada admin aggregate alias also always analyse analyze array_agg array_max_cardinality asensitive assert assignment asymmetric atomic attach attribute attributes avg backward base64 begin_frame begin_partition bernoulli bit_length blocked bom cache called cardinality catalog_name ceil ceiling chain char_length character_length character_set_catalog character_set_name character_set_schema characteristics characters checkpoint class class_origin cluster coalesce cobol collation_catalog collation_name collation_schema collect column_name columns command_function command_function_code comment comments committed concurrently condition_number configuration conflict connection_name constant constraint_catalog constraint_name constraint_schema contains content control conversion convert copy corr cost covar_pop covar_samp csv cume_dist current_catalog current_row current_schema cursor_name database datalink datatype datetime_interval_code datetime_interval_precision db debug defaults defined definer degree delimiter delimiters dense_rank depends derived detach detail dictionary disable discard dispatch dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue document dump dynamic_function dynamic_function_code element elsif empty enable encoding encrypted end_frame end_partition endexec enforced enum errcode error event every exclude excluding exclusive exp explain expression extension extract family file filter final first_value flag floor following force foreach fortran forward frame_row freeze fs functions fusion generated granted greatest groups handler header hex hierarchy hint id ignore ilike immediately immutable implementation implicit import include including increment indent index indexes info inherit inherits inline insensitive instance instantiable instead integrity intersection invoker isnull key_member key_type label lag last_value lead leakproof least length library like_regex link listen ln load location lock locked log logged lower mapping matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text min minvalue mod mode more move multiset mumps name namespace nfc nfd nfkc nfkd nil normalize normalized nothing notice notify notnull nowait nth_value ntile nullable nullif nulls number occurrences_regex octet_length octets off offset oids operator options ordering others over overlay overriding owned owner parallel parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partition pascal passing passthrough password percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding prepared print_strict_params procedural procedures program publication query quote raise range rank reassign recheck recovery refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex rename repeatable replace replica requiring reset respect restart restore result_oid returned_cardinality returned_length returned_octet_length returned_sqlstate returning reverse routine_catalog routine_name routine_schema routines row_count row_number rowtype rule scale schema_name schemas scope scope_catalog scope_name scope_schema security selective self sensitive sequence sequences serializable server server_name setof share show simple skip slice snapshot source specific_name sqlcode sqlerror sqrt stable stacked standalone statement statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time table_name tables tablesample tablespace temp template ties token top_level_count transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex trigger_catalog trigger_name trigger_schema trim trim_array truncate trusted type types uescape unbounded uncommitted unencrypted unlink unlisten unlogged unnamed untyped upper uri use_column use_variable user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema vacuum valid validate validator value_of var_pop var_samp varbinary variable_conflict variadic verbose version versioning views volatile warning whitespace width_bucket window within wrapper xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate yes",types:g+"bigint int8 bigserial serial8 varbit bool box bytea cidr circle precision float8 inet int4 json jsonb line lseg macaddr macaddr8 money numeric pg_lsn point polygon float4 int2 smallserial serial2 serial serial4 text timetz timestamptz tsquery tsvector txid_snapshot uuid xml"}),D="accessible algorithm analyze asensitive authors auto_increment autocommit avg avg_row_length binlog btree cache catalog_name chain change changed checkpoint checksum class_origin client_statistics coalesce code collations columns comment committed completion concurrent consistent contains contributors convert database databases day_hour day_microsecond day_minute day_second delay_key_write delayed delimiter des_key_file dev_pop dev_samp deviance directory disable discard distinctrow div dual dumpfile enable enclosed ends engine engines enum errors escaped even event events every explain extended fast field fields flush force found_rows fulltext grants handler hash high_priority hosts hour_microsecond hour_minute hour_second ignore ignore_server_ids import index index_statistics infile innodb insensitive insert_method install invoker iterate keys kill linear lines list load lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modify mutex mysql_errno no_write_to_binlog offline offset one online optimize optionally outfile pack_keys parser partition partitions password phase plugin plugins prev processlist profile profiles purge query quick range read_write rebuild recover regexp relaylog remove rename reorganize repair repeatable replace require resume rlike row_format rtree schedule schema_name schemas second_microsecond security sensitive separator serializable server share show slave slow snapshot soname spatial sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result ssl starting starts std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace terminated triggers truncate uncommitted uninstall unlock upgrade use use_frm user_resources user_statistics utc_date utc_time utc_timestamp variables views warnings xa xor year_month zerofill",V=g+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int1 int2 int3 int4 int8 float4 float8 varbinary varcharacter precision datetime unsigned signed",N="charset clear edit ego help nopager notee nowarning pager print prompt quit rehash source status system tee",$=X.define({operatorChars:"*+-%<>!=&|^",charSetCasts:!0,doubleQuotedStrings:!0,unquotedBitLiterals:!0,hashComments:!0,spaceAfterDashes:!0,specialVar:"@?",identifierQuotes:"`",keywords:h+"group_concat "+D,types:V,builtin:N}),A=X.define({operatorChars:"*+-%<>!=&|^",charSetCasts:!0,doubleQuotedStrings:!0,unquotedBitLiterals:!0,hashComments:!0,spaceAfterDashes:!0,specialVar:"@?",identifierQuotes:"`",keywords:h+"always generated groupby_concat hard persistent shutdown soft virtual "+D,types:V,builtin:N}),E=X.define({keywords:h+"add external procedure all fetch public alter file raiserror and fillfactor read any for readtext as foreign reconfigure asc freetext references authorization freetexttable replication backup from restore begin full restrict between function return break goto revert browse grant revoke bulk group right by having rollback cascade holdlock rowcount case identity rowguidcol check identity_insert rule checkpoint identitycol save close if schema clustered in securityaudit coalesce index select collate inner semantickeyphrasetable column insert semanticsimilaritydetailstable commit intersect semanticsimilaritytable compute into session_user constraint is set contains join setuser containstable key shutdown continue kill some convert left statistics create like system_user cross lineno table current load tablesample current_date merge textsize current_time national then current_timestamp nocheck to current_user nonclustered top cursor not tran database null transaction dbcc nullif trigger deallocate of truncate declare off try_convert default offsets tsequal delete on union deny open unique desc opendatasource unpivot disk openquery update distinct openrowset updatetext distributed openxml use double option user drop or values dump order varying else outer view end over waitfor errlvl percent when escape pivot where except plan while exec precision with execute primary within group exists print writetext exit proc noexpand index forceseek forcescan holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot spatial_window_max_cells tablock tablockx updlock xlock keepidentity keepdefaults ignore_constraints ignore_triggers",types:g+"smalldatetime datetimeoffset datetime2 datetime bigint smallint smallmoney tinyint money real text nvarchar ntext varbinary image hierarchyid uniqueidentifier sql_variant xml",builtin:"approx_count_distinct approx_percentile_cont approx_percentile_disc avg checksum_agg count count_big grouping grouping_id max min product stdev stdevp sum var varp ai_generate_embeddings ai_generate_chunks cume_dist first_value lag last_value lead percentile_cont percentile_disc percent_rank left_shift right_shift bit_count get_bit set_bit collationproperty tertiary_weights @@datefirst @@dbts @@langid @@language @@lock_timeout @@max_connections @@max_precision @@nestlevel @@options @@remserver @@servername @@servicename @@spid @@textsize @@version cast convert parse try_cast try_convert try_parse asymkey_id asymkeyproperty certproperty cert_id crypt_gen_random decryptbyasymkey decryptbycert decryptbykey decryptbykeyautoasymkey decryptbykeyautocert decryptbypassphrase encryptbyasymkey encryptbycert encryptbykey encryptbypassphrase hashbytes is_objectsigned key_guid key_id key_name signbyasymkey signbycert symkeyproperty verifysignedbycert verifysignedbyasymkey @@cursor_rows @@fetch_status cursor_status datalength ident_current ident_incr ident_seed identity sql_variant_property @@datefirst current_timestamp current_timezone current_timezone_id date_bucket dateadd datediff datediff_big datefromparts datename datepart datetime2fromparts datetimefromparts datetimeoffsetfromparts datetrunc day eomonth getdate getutcdate isdate month smalldatetimefromparts switchoffset sysdatetime sysdatetimeoffset sysutcdatetime timefromparts todatetimeoffset year edit_distance edit_distance_similarity jaro_winkler_distance jaro_winkler_similarity edge_id_from_parts graph_id_from_edge_id graph_id_from_node_id node_id_from_parts object_id_from_edge_id object_id_from_node_id json isjson json_array json_contains json_modify json_object json_path_exists json_query json_value regexp_like regexp_replace regexp_substr regexp_instr regexp_count regexp_matches regexp_split_to_table abs acos asin atan atn2 ceiling cos cot degrees exp floor log log10 pi power radians rand round sign sin sqrt square tan choose greatest iif least @@procid app_name applock_mode applock_test assemblyproperty col_length col_name columnproperty databasepropertyex db_id db_name file_id file_idex file_name filegroup_id filegroup_name filegroupproperty fileproperty filepropertyex fulltextcatalogproperty fulltextserviceproperty index_col indexkey_property indexproperty next value for object_definition object_id object_name object_schema_name objectproperty objectpropertyex original_db_name parsename schema_id schema_name scope_identity serverproperty stats_date type_id type_name typeproperty dense_rank ntile rank row_number publishingservername certenclosed certprivatekey current_user database_principal_id has_dbaccess has_perms_by_name is_member is_rolemember is_srvrolemember loginproperty original_login permissions pwdencrypt pwdcompare session_user sessionproperty suser_id suser_name suser_sid suser_sname system_user user user_id user_name ascii char charindex concat concat_ws difference format left len lower ltrim nchar patindex quotename replace replicate reverse right rtrim soundex space str string_agg string_escape stuff substring translate trim unicode upper $partition @@error @@identity @@pack_received @@rowcount @@trancount binary_checksum checksum compress connectionproperty context_info current_request_id current_transaction_id decompress error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big session_context xact_state @@connections @@cpu_busy @@idle @@io_busy @@pack_sent @@packet_errors @@timeticks @@total_errors @@total_read @@total_write textptr textvalid columns_updated eventdata trigger_nestlevel vector_distance vectorproperty vector_search generate_series opendatasource openjson openquery openrowset openxml predict string_split coalesce nullif apply catch filter force include keep keepfixed modify optimize parameterization parameters partition recompile sequence set",operatorChars:"*+-%<>!=^&|/",specialVar:"@",identifierQuotes:'"['}),W=X.define({keywords:h+"abort analyze attach autoincrement conflict database detach exclusive fail glob ignore index indexed instead isnull notnull offset plan pragma query raise regexp reindex rename replace temp vacuum virtual",types:g+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int2 int8 unsigned signed real",builtin:"auth backup bail changes clone databases dbinfo dump echo eqp explain fullschema headers help import imposter indexes iotrace lint load log mode nullvalue once print prompt quit restore save scanstats separator shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width",operatorChars:"*+-%<>!=&|/~",identifierQuotes:'`"',specialVar:"@:?$"}),G=X.define({keywords:"add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime infinity NaN",types:g+"ascii bigint blob counter frozen inet list map static text timeuuid tuple uuid varint",slashComments:!0}),M=X.define({keywords:h+"abort accept access add all alter and any arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body by case cast char_base check close cluster clusters colauth column comment commit compress connected constant constraint crash create current currval cursor data_base database dba deallocate debugoff debugon declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry exception exception_init exchange exclusive exists external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base of off offline on online only option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw rebuild record ref references refresh rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work",builtin:"appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define echo editfile embedded feedback flagger flush heading headsep instance linesize lno loboffset logsource longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar repfooter repheader serveroutput shiftinout show showmode spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout timing trimout trimspool ttitle underline verify version wrap",types:g+"ascii bfile bfilename bigserial bit blob dec long number nvarchar nvarchar2 serial smallint string text uid varchar2 xml",operatorChars:"*/+-%<>!=~",doubleQuotedStrings:!0,charSetCasts:!0,plsqlQuotingMechanism:!0})}}]);
10
+ "use strict";(self.webpackChunk_nocobase_plugin_field_code=self.webpackChunk_nocobase_plugin_field_code||[]).push([["613"],{124:function(e,t,r){r.r(t),r.d(t,{Cassandra:function(){return Y},MSSQL:function(){return W},MariaSQL:function(){return E},MySQL:function(){return $},PLSQL:function(){return M},PostgreSQL:function(){return L},SQLDialect:function(){return A},SQLite:function(){return G},StandardSQL:function(){return Z},keywordCompletionSource:function(){return B},schemaCompletionSource:function(){return I},sql:function(){return R}});var n=r(169),a=r(619),i=r(973),s=r(547);function o(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57}function l(e,t,r){for(let n=!1;;){if(e.next<0)return;if(e.next==t&&!n)return void e.advance();n=r&&!n&&92==e.next,e.advance()}}function c(e,t){for(;95==e.next||o(e.next);)null!=t&&(t+=String.fromCharCode(e.next)),e.advance();return t}function d(e,t){for(;48==e.next||49==e.next;)e.advance();t&&e.next==t&&e.advance()}function u(e,t){for(;;){if(46==e.next){if(t)break;t=!0}else if(e.next<48||e.next>57)break;e.advance()}if(69==e.next||101==e.next)for(e.advance(),(43==e.next||45==e.next)&&e.advance();e.next>=48&&e.next<=57;)e.advance()}function p(e){for(;!(e.next<0||10==e.next);)e.advance()}function m(e,t){for(let r=0;r<t.length;r++)if(t.charCodeAt(r)==e)return!0;return!1}let f=" \r\n";function _(e,t,r){let n=Object.create(null);for(let t of(n.true=n.false=5,n.null=n.unknown=6,e.split(" ")))t&&(n[t]=20);for(let e of t.split(" "))e&&(n[e]=21);for(let e of(r||"").split(" "))e&&(n[e]=24);return n}let g="array binary bit boolean char character clob date decimal double float int integer interval large national nchar nclob numeric object precision real smallint time timestamp varchar varying ",h="absolute action add after all allocate alter and any are as asc assertion at authorization before begin between both breadth by call cascade cascaded case cast catalog check close collate collation column commit condition connect connection constraint constraints constructor continue corresponding count create cross cube current current_date current_default_transform_group current_transform_group_for_type current_path current_role current_time current_timestamp current_user cursor cycle data day deallocate declare default deferrable deferred delete depth deref desc describe descriptor deterministic diagnostics disconnect distinct do domain drop dynamic each else elseif end end-exec equals escape except exception exec execute exists exit external fetch first for foreign found from free full function general get global go goto grant group grouping handle having hold hour identity if immediate in indicator initially inner inout input insert intersect into is isolation join key language last lateral leading leave left level like limit local localtime localtimestamp locator loop map match method minute modifies module month names natural nesting new next no none not of old on only open option or order ordinality out outer output overlaps pad parameter partial path prepare preserve primary prior privileges procedure public read reads recursive redo ref references referencing relative release repeat resignal restrict result return returns revoke right role rollback rollup routine row rows savepoint schema scroll search second section select session session_user set sets signal similar size some space specific specifictype sql sqlexception sqlstate sqlwarning start state static system_user table temporary then timezone_hour timezone_minute to trailing transaction translation treat trigger under undo union unique unnest until update usage user using value values view when whenever where while with without work write year zone ",b={backslashEscapes:!1,hashComments:!1,spaceAfterDashes:!1,slashComments:!1,doubleQuotedStrings:!1,doubleDollarQuotedStrings:!1,unquotedBitLiterals:!1,treatBitsAsBytes:!1,charSetCasts:!1,plsqlQuotingMechanism:!1,operatorChars:"*+-%<>!=&|~^/",specialVar:"?",identifierQuotes:'"',caseInsensitiveIdentifiers:!1,words:_(h,g)};function y(e){return new i.Lu(t=>{let{next:r}=t;if(t.advance(),m(r,f)){for(;m(t.next,f);)t.advance();t.acceptToken(36)}else if(36==r&&e.doubleDollarQuotedStrings){let e=c(t,"");36==t.next&&(t.advance(),function(e,t){e:for(;;){if(e.next<0)return;if(36==e.next){e.advance();for(let r=0;r<t.length;r++){if(e.next!=t.charCodeAt(r))continue e;e.advance()}if(36==e.next)return void e.advance()}else e.advance()}}(t,e),t.acceptToken(3))}else if(39==r||34==r&&e.doubleQuotedStrings)l(t,r,e.backslashEscapes),t.acceptToken(3);else if(35==r&&e.hashComments||47==r&&47==t.next&&e.slashComments)p(t),t.acceptToken(1);else if(45!=r||45!=t.next||e.spaceAfterDashes&&32!=t.peek(1)){if(47==r&&42==t.next){t.advance();for(let e=1;;){let r=t.next;if(t.next<0)break;if(t.advance(),42==r&&47==t.next){if(e--,t.advance(),!e)break}else 47==r&&42==t.next&&(e++,t.advance())}t.acceptToken(2)}else if((101==r||69==r)&&39==t.next)t.advance(),l(t,39,!0),t.acceptToken(3);else if((110==r||78==r)&&39==t.next&&e.charSetCasts)t.advance(),l(t,39,e.backslashEscapes),t.acceptToken(3);else if(95==r&&e.charSetCasts)for(let r=0;;r++){if(39==t.next&&r>1){t.advance(),l(t,39,e.backslashEscapes),t.acceptToken(3);break}if(!o(t.next))break;t.advance()}else if(e.plsqlQuotingMechanism&&(113==r||81==r)&&39==t.next&&t.peek(1)>0&&!m(t.peek(1),f)){let e=t.peek(1);t.advance(2),function(e,t){let r="[{<(".indexOf(String.fromCharCode(t)),n=r<0?t:"]}>)".charCodeAt(r);for(;;){if(e.next<0)return;if(e.next==n&&39==e.peek(1))return void e.advance(2);e.advance()}}(t,e),t.acceptToken(3)}else if(m(r,e.identifierQuotes))l(t,91==r?93:r,!1),t.acceptToken(19);else if(40==r)t.acceptToken(7);else if(41==r)t.acceptToken(8);else if(123==r)t.acceptToken(9);else if(125==r)t.acceptToken(10);else if(91==r)t.acceptToken(11);else if(93==r)t.acceptToken(12);else if(59==r)t.acceptToken(13);else if(e.unquotedBitLiterals&&48==r&&98==t.next)t.advance(),d(t),t.acceptToken(22);else if((98==r||66==r)&&(39==t.next||34==t.next)){let r=t.next;t.advance(),e.treatBitsAsBytes?(l(t,r,e.backslashEscapes),t.acceptToken(23)):(d(t,r),t.acceptToken(22))}else if(48==r&&(120==t.next||88==t.next)||(120==r||88==r)&&39==t.next){let e=39==t.next;for(t.advance();(a=t.next)>=48&&a<=57||a>=97&&a<=102||a>=65&&a<=70;)t.advance();e&&39==t.next&&t.advance(),t.acceptToken(4)}else if(46==r&&t.next>=48&&t.next<=57)u(t,!0),t.acceptToken(4);else if(46==r)t.acceptToken(14);else if(r>=48&&r<=57)u(t,!1),t.acceptToken(4);else if(m(r,e.operatorChars)){for(;m(t.next,e.operatorChars);)t.advance();t.acceptToken(15)}else if(m(r,e.specialVar)){var n,a;if(t.next==r&&t.advance(),39==t.next||34==t.next||96==t.next){let e=t.next;t.advance(),l(t,e,!1)}else c(t);t.acceptToken(17)}else if(58==r||44==r)t.acceptToken(16);else if(o(r)){let a=c(t,String.fromCharCode(r));t.acceptToken(46==t.next||46==t.peek(-a.length-1)?18:null!=(n=e.words[a.toLowerCase()])?n:18)}}else p(t),t.acceptToken(1)})}let v=y(b),k=i.U1.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",stateData:",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",goto:"#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",nodeNames:"⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,nodeProps:[["isolate",-4,1,2,3,19,""]],skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,v],topRules:{Script:[0,25]},tokenPrec:0});function x(e){let t=e.cursor().moveTo(e.from,-1);for(;/Comment/.test(t.name);)t.moveTo(t.from,-1);return t.node}function O(e,t){let r=e.sliceString(t.from,t.to),n=/^([`'"\[])(.*)([`'"\]])$/.exec(r);return n?n[2]:r}function w(e){return e&&("Identifier"==e.name||"QuotedIdentifier"==e.name)}function Q(e,t){for(let r=[];;){if(!t||"."!=t.name)return r;let n=x(t);if(!w(n))return r;r.unshift(O(e,n)),t=x(n)}}let C=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" ")),q=/^\w*$/,S=/^[`'"\[]?\w*[`'"\]]?$/;function P(e){return e.self&&"string"==typeof e.self.label}class T{constructor(e,t){this.idQuote=e,this.idCaseInsensitive=t,this.list=[],this.children=void 0}child(e){let t=this.children||(this.children=Object.create(null)),r=t[e];return r||(e&&!this.list.some(t=>t.label==e)&&this.list.push(j(e,"type",this.idQuote,this.idCaseInsensitive)),t[e]=new T(this.idQuote,this.idCaseInsensitive))}maybeChild(e){return this.children?this.children[e]:null}addCompletion(e){let t=this.list.findIndex(t=>t.label==e.label);t>-1?this.list[t]=e:this.list.push(e)}addCompletions(e){for(let t of e)this.addCompletion("string"==typeof t?j(t,"property",this.idQuote,this.idCaseInsensitive):t)}addNamespace(e){Array.isArray(e)?this.addCompletions(e):P(e)?this.addNamespace(e.children):this.addNamespaceObject(e)}addNamespaceObject(e){for(let t of Object.keys(e)){let r=e[t],n=null,a=t.replace(/\\?\./g,e=>"."==e?"\0":e).split("\0"),i=this;P(r)&&(n=r.self,r=r.children);for(let e=0;e<a.length;e++)n&&e==a.length-1&&i.addCompletion(n),i=i.child(a[e].replace(/\\\./g,"."));i.addNamespace(r)}}}function j(e,t,r,n){return RegExp("^[a-z_][a-z_\\d]*$",n?"i":"").test(e)?{label:e,type:t}:{label:e,type:t,apply:r+e+z(r)}}function z(e){return"["===e?"]":e}let U=k.configure({props:[n.Oh.add({Statement:(0,n.mz)()}),n.b_.add({Statement:(e,t)=>({from:Math.min(e.from+100,t.doc.lineAt(e.from).to),to:e.to}),BlockComment:e=>({from:e.from+2,to:e.to-2})}),(0,a.pn)({Keyword:a._A.keyword,Type:a._A.typeName,Builtin:a._A.standard(a._A.name),Bits:a._A.number,Bytes:a._A.string,Bool:a._A.bool,Null:a._A.null,Number:a._A.number,String:a._A.string,Identifier:a._A.name,QuotedIdentifier:a._A.special(a._A.string),SpecialVar:a._A.special(a._A.name),LineComment:a._A.lineComment,BlockComment:a._A.blockComment,Operator:a._A.operator,"Semi Punctuation":a._A.punctuation,"( )":a._A.paren,"{ }":a._A.brace,"[ ]":a._A.squareBracket})]});class A{constructor(e,t,r){this.dialect=e,this.language=t,this.spec=r}get extension(){return this.language.extension}configureLanguage(e,t){return new A(this.dialect,this.language.configure(e,t),this.spec)}static define(e){let t=function(e,t,r,n){let a={};for(let t in b)a[t]=(e.hasOwnProperty(t)?e:b)[t];return t&&(a.words=_(t,r||"",n)),a}(e,e.keywords,e.types,e.builtin),r=n.bj.define({name:"sql",parser:U.configure({tokenizers:[{from:v,to:y(t)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new A(t,r,e)}}function X(e,t){return{label:e,type:t,boost:-1}}function B(e,t=!1,r){var n,a;let i;return n=e.dialect.words,a=r||X,i=Object.keys(n).map(e=>{var r;return a(t?e.toUpperCase():e,21==(r=n[e])?"type":20==r?"keyword":"variable")}),(0,s.Ar)(["QuotedIdentifier","String","LineComment","BlockComment","."],(0,s.et)(i))}function I(e){var t,r,a,i,s,o,l;let c,d;return e.schema?(t=e.schema,r=e.tables,a=e.schemas,i=e.defaultTable,s=e.defaultSchema,c=new T((null==(l=null==(o=e.dialect||Z)?void 0:o.spec.identifierQuotes)?void 0:l[0])||'"',!!(null==o?void 0:o.spec.caseInsensitiveIdentifiers)),d=s?c.child(s):null,c.addNamespace(t),r&&(d||c).addCompletions(r),a&&c.addCompletions(a),d&&c.addCompletions(d.list),i&&c.addCompletions((d||c).child(i).list),e=>{var t,r;let a,s,{parents:o,from:l,quoted:u,empty:p,aliases:m}=(t=e.state,r=e.pos,a=(0,n.mv)(t).resolveInner(r,-1),s=function(e,t){let r;for(let e=t;!r;e=e.parent){if(!e)return null;"Statement"==e.name&&(r=e)}let n=null;for(let t=r.firstChild,a=!1,i=null;t;t=t.nextSibling){let r="Keyword"==t.name?e.sliceString(t.from,t.to).toLowerCase():null,s=null;if(a)if("as"==r&&i&&w(t.nextSibling))s=O(e,t.nextSibling);else if(r&&C.has(r))break;else i&&w(t)&&(s=O(e,t));else a="from"==r;s&&(n||(n=Object.create(null)),n[s]=function(e,t){if("CompositeIdentifier"==t.name){let r=[];for(let n=t.firstChild;n;n=n.nextSibling)w(n)&&r.push(O(e,n));return r}return[O(e,t)]}(e,i)),i=/Identifier$/.test(t.name)?t:null}return n}(t.doc,a),"Identifier"==a.name||"QuotedIdentifier"==a.name||"Keyword"==a.name?{from:a.from,quoted:"QuotedIdentifier"==a.name?t.doc.sliceString(a.from,a.from+1):null,parents:Q(t.doc,x(a)),aliases:s}:"."==a.name?{from:r,quoted:null,parents:Q(t.doc,a),aliases:s}:{from:r,quoted:null,parents:[],empty:!0,aliases:s});if(p&&!e.explicit)return null;m&&1==o.length&&(o=m[o[0]]||o);let f=c;for(let e of o){for(;!f.children||!f.children[e];)if(f==c&&d)f=d;else{if(f!=d||!i)return null;f=f.child(i)}let t=f.maybeChild(e);if(!t)return null;f=t}let _=f.list;if(f==c&&m&&(_=_.concat(Object.keys(m).map(e=>({label:e,type:"constant"})))),!u)return{from:l,options:_,validFor:q};{let t=u[0],r=z(t);return{from:l,to:e.state.sliceDoc(e.pos,e.pos+1)==r?e.pos+1:void 0,options:_.map(e=>({...e,label:e.label[0]==t?e.label:t+e.label+r,apply:void 0})),validFor:S}}}):()=>null}function R(e={}){let t=e.dialect||Z;return new n.Yy(t.language,[e.schema?(e.dialect||Z).language.data.of({autocomplete:I(e)}):[],t.language.data.of({autocomplete:B(t,e.upperCaseKeywords,e.keywordCompletion)})])}let Z=A.define({}),L=A.define({charSetCasts:!0,doubleDollarQuotedStrings:!0,operatorChars:"+-*/<>=~!@#%^&|`?",specialVar:"",keywords:h+"abort abs absent access according ada admin aggregate alias also always analyse analyze array_agg array_max_cardinality asensitive assert assignment asymmetric atomic attach attribute attributes avg backward base64 begin_frame begin_partition bernoulli bit_length blocked bom cache called cardinality catalog_name ceil ceiling chain char_length character_length character_set_catalog character_set_name character_set_schema characteristics characters checkpoint class class_origin cluster coalesce cobol collation_catalog collation_name collation_schema collect column_name columns command_function command_function_code comment comments committed concurrently condition_number configuration conflict connection_name constant constraint_catalog constraint_name constraint_schema contains content control conversion convert copy corr cost covar_pop covar_samp csv cume_dist current_catalog current_row current_schema cursor_name database datalink datatype datetime_interval_code datetime_interval_precision db debug defaults defined definer degree delimiter delimiters dense_rank depends derived detach detail dictionary disable discard dispatch dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue document dump dynamic_function dynamic_function_code element elsif empty enable encoding encrypted end_frame end_partition endexec enforced enum errcode error event every exclude excluding exclusive exp explain expression extension extract family file filter final first_value flag floor following force foreach fortran forward frame_row freeze fs functions fusion generated granted greatest groups handler header hex hierarchy hint id ignore ilike immediately immutable implementation implicit import include including increment indent index indexes info inherit inherits inline insensitive instance instantiable instead integrity intersection invoker isnull key_member key_type label lag last_value lead leakproof least length library like_regex link listen ln load location lock locked log logged lower mapping matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text min minvalue mod mode more move multiset mumps name namespace nfc nfd nfkc nfkd nil normalize normalized nothing notice notify notnull nowait nth_value ntile nullable nullif nulls number occurrences_regex octet_length octets off offset oids operator options ordering others over overlay overriding owned owner parallel parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partition pascal passing passthrough password percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding prepared print_strict_params procedural procedures program publication query quote raise range rank reassign recheck recovery refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex rename repeatable replace replica requiring reset respect restart restore result_oid returned_cardinality returned_length returned_octet_length returned_sqlstate returning reverse routine_catalog routine_name routine_schema routines row_count row_number rowtype rule scale schema_name schemas scope scope_catalog scope_name scope_schema security selective self sensitive sequence sequences serializable server server_name setof share show simple skip slice snapshot source specific_name sqlcode sqlerror sqrt stable stacked standalone statement statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time table_name tables tablesample tablespace temp template ties token top_level_count transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex trigger_catalog trigger_name trigger_schema trim trim_array truncate trusted type types uescape unbounded uncommitted unencrypted unlink unlisten unlogged unnamed untyped upper uri use_column use_variable user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema vacuum valid validate validator value_of var_pop var_samp varbinary variable_conflict variadic verbose version versioning views volatile warning whitespace width_bucket window within wrapper xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate yes",types:g+"bigint int8 bigserial serial8 varbit bool box bytea cidr circle precision float8 inet int4 json jsonb line lseg macaddr macaddr8 money numeric pg_lsn point polygon float4 int2 smallserial serial2 serial serial4 text timetz timestamptz tsquery tsvector txid_snapshot uuid xml"}),D="accessible algorithm analyze asensitive authors auto_increment autocommit avg avg_row_length binlog btree cache catalog_name chain change changed checkpoint checksum class_origin client_statistics coalesce code collations columns comment committed completion concurrent consistent contains contributors convert database databases day_hour day_microsecond day_minute day_second delay_key_write delayed delimiter des_key_file dev_pop dev_samp deviance directory disable discard distinctrow div dual dumpfile enable enclosed ends engine engines enum errors escaped even event events every explain extended fast field fields flush force found_rows fulltext grants handler hash high_priority hosts hour_microsecond hour_minute hour_second ignore ignore_server_ids import index index_statistics infile innodb insensitive insert_method install invoker iterate keys kill linear lines list load lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modify mutex mysql_errno no_write_to_binlog offline offset one online optimize optionally outfile pack_keys parser partition partitions password phase plugin plugins prev processlist profile profiles purge query quick range read_write rebuild recover regexp relaylog remove rename reorganize repair repeatable replace require resume rlike row_format rtree schedule schema_name schemas second_microsecond security sensitive separator serializable server share show slave slow snapshot soname spatial sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result ssl starting starts std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace terminated triggers truncate uncommitted uninstall unlock upgrade use use_frm user_resources user_statistics utc_date utc_time utc_timestamp variables views warnings xa xor year_month zerofill",V=g+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int1 int2 int3 int4 int8 float4 float8 varbinary varcharacter precision datetime unsigned signed",N="charset clear edit ego help nopager notee nowarning pager print prompt quit rehash source status system tee",$=A.define({operatorChars:"*+-%<>!=&|^",charSetCasts:!0,doubleQuotedStrings:!0,unquotedBitLiterals:!0,hashComments:!0,spaceAfterDashes:!0,specialVar:"@?",identifierQuotes:"`",keywords:h+"group_concat "+D,types:V,builtin:N}),E=A.define({operatorChars:"*+-%<>!=&|^",charSetCasts:!0,doubleQuotedStrings:!0,unquotedBitLiterals:!0,hashComments:!0,spaceAfterDashes:!0,specialVar:"@?",identifierQuotes:"`",keywords:h+"always generated groupby_concat hard persistent shutdown soft virtual "+D,types:V,builtin:N}),W=A.define({keywords:h+"add external procedure all fetch public alter file raiserror and fillfactor read any for readtext as foreign reconfigure asc freetext references authorization freetexttable replication backup from restore begin full restrict between function return break goto revert browse grant revoke bulk group right by having rollback cascade holdlock rowcount case identity rowguidcol check identity_insert rule checkpoint identitycol save close if schema clustered in securityaudit coalesce index select collate inner semantickeyphrasetable column insert semanticsimilaritydetailstable commit intersect semanticsimilaritytable compute into session_user constraint is set contains join setuser containstable key shutdown continue kill some convert left statistics create like system_user cross lineno table current load tablesample current_date merge textsize current_time national then current_timestamp nocheck to current_user nonclustered top cursor not tran database null transaction dbcc nullif trigger deallocate of truncate declare off try_convert default offsets tsequal delete on union deny open unique desc opendatasource unpivot disk openquery update distinct openrowset updatetext distributed openxml use double option user drop or values dump order varying else outer view end over waitfor errlvl percent when escape pivot where except plan while exec precision with execute primary within group exists print writetext exit proc noexpand index forceseek forcescan holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot spatial_window_max_cells tablock tablockx updlock xlock keepidentity keepdefaults ignore_constraints ignore_triggers",types:g+"smalldatetime datetimeoffset datetime2 datetime bigint smallint smallmoney tinyint money real text nvarchar ntext varbinary image hierarchyid uniqueidentifier sql_variant xml",builtin:"approx_count_distinct approx_percentile_cont approx_percentile_disc avg checksum_agg count count_big grouping grouping_id max min product stdev stdevp sum var varp ai_generate_embeddings ai_generate_chunks cume_dist first_value lag last_value lead percentile_cont percentile_disc percent_rank left_shift right_shift bit_count get_bit set_bit collationproperty tertiary_weights @@datefirst @@dbts @@langid @@language @@lock_timeout @@max_connections @@max_precision @@nestlevel @@options @@remserver @@servername @@servicename @@spid @@textsize @@version cast convert parse try_cast try_convert try_parse asymkey_id asymkeyproperty certproperty cert_id crypt_gen_random decryptbyasymkey decryptbycert decryptbykey decryptbykeyautoasymkey decryptbykeyautocert decryptbypassphrase encryptbyasymkey encryptbycert encryptbykey encryptbypassphrase hashbytes is_objectsigned key_guid key_id key_name signbyasymkey signbycert symkeyproperty verifysignedbycert verifysignedbyasymkey @@cursor_rows @@fetch_status cursor_status datalength ident_current ident_incr ident_seed identity sql_variant_property @@datefirst current_timestamp current_timezone current_timezone_id date_bucket dateadd datediff datediff_big datefromparts datename datepart datetime2fromparts datetimefromparts datetimeoffsetfromparts datetrunc day eomonth getdate getutcdate isdate month smalldatetimefromparts switchoffset sysdatetime sysdatetimeoffset sysutcdatetime timefromparts todatetimeoffset year edit_distance edit_distance_similarity jaro_winkler_distance jaro_winkler_similarity edge_id_from_parts graph_id_from_edge_id graph_id_from_node_id node_id_from_parts object_id_from_edge_id object_id_from_node_id json isjson json_array json_contains json_modify json_object json_path_exists json_query json_value regexp_like regexp_replace regexp_substr regexp_instr regexp_count regexp_matches regexp_split_to_table abs acos asin atan atn2 ceiling cos cot degrees exp floor log log10 pi power radians rand round sign sin sqrt square tan choose greatest iif least @@procid app_name applock_mode applock_test assemblyproperty col_length col_name columnproperty databasepropertyex db_id db_name file_id file_idex file_name filegroup_id filegroup_name filegroupproperty fileproperty filepropertyex fulltextcatalogproperty fulltextserviceproperty index_col indexkey_property indexproperty next value for object_definition object_id object_name object_schema_name objectproperty objectpropertyex original_db_name parsename schema_id schema_name scope_identity serverproperty stats_date type_id type_name typeproperty dense_rank ntile rank row_number publishingservername certenclosed certprivatekey current_user database_principal_id has_dbaccess has_perms_by_name is_member is_rolemember is_srvrolemember loginproperty original_login permissions pwdencrypt pwdcompare session_user sessionproperty suser_id suser_name suser_sid suser_sname system_user user user_id user_name ascii char charindex concat concat_ws difference format left len lower ltrim nchar patindex quotename replace replicate reverse right rtrim soundex space str string_agg string_escape stuff substring translate trim unicode upper $partition @@error @@identity @@pack_received @@rowcount @@trancount binary_checksum checksum compress connectionproperty context_info current_request_id current_transaction_id decompress error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big session_context xact_state @@connections @@cpu_busy @@idle @@io_busy @@pack_sent @@packet_errors @@timeticks @@total_errors @@total_read @@total_write textptr textvalid columns_updated eventdata trigger_nestlevel vector_distance vectorproperty vector_search generate_series opendatasource openjson openquery openrowset openxml predict string_split coalesce nullif apply catch filter force include keep keepfixed modify optimize parameterization parameters partition recompile sequence set",operatorChars:"*+-%<>!=^&|/",specialVar:"@",identifierQuotes:'"['}),G=A.define({keywords:h+"abort analyze attach autoincrement conflict database detach exclusive fail glob ignore index indexed instead isnull notnull offset plan pragma query raise regexp reindex rename replace temp vacuum virtual",types:g+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int2 int8 unsigned signed real",builtin:"auth backup bail changes clone databases dbinfo dump echo eqp explain fullschema headers help import imposter indexes iotrace lint load log mode nullvalue once print prompt quit restore save scanstats separator shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width",operatorChars:"*+-%<>!=&|/~",identifierQuotes:'`"',specialVar:"@:?$"}),Y=A.define({keywords:"add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime infinity NaN",types:g+"ascii bigint blob counter frozen inet list map static text timeuuid tuple uuid varint",slashComments:!0}),M=A.define({keywords:h+"abort accept access add all alter and any arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body by case cast char_base check close cluster clusters colauth column comment commit compress connected constant constraint crash create current currval cursor data_base database dba deallocate debugoff debugon declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry exception exception_init exchange exclusive exists external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base of off offline on online only option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw rebuild record ref references refresh rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work",builtin:"appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define echo editfile embedded feedback flagger flush heading headsep instance linesize lno loboffset logsource longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar repfooter repheader serveroutput shiftinout show showmode spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout timing trimout trimspool ttitle underline verify version wrap",types:g+"ascii bfile bfilename bigserial bit blob dec long number nvarchar nvarchar2 serial smallint string text uid varchar2 xml",operatorChars:"*/+-%<>!=~",doubleQuotedStrings:!0,charSetCasts:!0,plsqlQuotingMechanism:!0})}}]);