@matdata/yasqe 5.0.1 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +196 -111
- package/build/ts/src/index.js +8 -0
- package/build/ts/src/index.js.map +1 -1
- package/build/yasqe.min.css +1 -1
- package/build/yasqe.min.css.map +3 -3
- package/build/yasqe.min.js +29 -29
- package/build/yasqe.min.js.map +3 -3
- package/package.json +1 -1
- package/src/index.ts +11 -0
- package/src/scss/codemirrorMods.scss +5 -4
- package/src/scss/yasqe.scss +2 -2
package/build/yasqe.min.js
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
"use strict";var Yasqe=(()=>{var Sm=Object.create;var zo=Object.defineProperty;var Lm=Object.getOwnPropertyDescriptor;var Rm=Object.getOwnPropertyNames;var ym=Object.getPrototypeOf,bm=Object.prototype.hasOwnProperty;var Se=(n,s)=>()=>(s||n((s={exports:{}}).exports,s),s.exports),Tp=(n,s)=>{for(var a in s)zo(n,a,{get:s[a],enumerable:!0})},Cp=(n,s,a,u)=>{if(s&&typeof s=="object"||typeof s=="function")for(let h of Rm(s))!bm.call(n,h)&&h!==a&&zo(n,h,{get:()=>s[h],enumerable:!(u=Lm(s,h))||u.enumerable});return n};var ft=(n,s,a)=>(a=n!=null?Sm(ym(n)):{},Cp(s||!n||!n.__esModule?zo(a,"default",{value:n,enumerable:!0}):a,n)),Om=n=>Cp(zo({},"__esModule",{value:!0}),n);var Nt=Se((Fa,Ba)=>{(function(n,s){typeof Fa=="object"&&typeof Ba<"u"?Ba.exports=s():typeof define=="function"&&define.amd?define(s):(n=n||self,n.CodeMirror=s())})(Fa,function(){"use strict";var n=navigator.userAgent,s=navigator.platform,a=/gecko\/\d/i.test(n),u=/MSIE \d/.test(n),h=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),g=/Edge\/(\d+)/.exec(n),m=u||h||g,I=m&&(u?document.documentMode||6:+(g||h)[1]),T=!g&&/WebKit\//.test(n),U=T&&/Qt\/\d+\.\d+/.test(n),L=!g&&/Chrome\/(\d+)/.exec(n),V=L&&+L[1],y=/Opera\//.test(n),M=/Apple Computer/.test(navigator.vendor),F=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),S=/PhantomJS/.test(n),x=M&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),v=/Android/.test(n),A=x||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),R=x||/Mac/.test(s),B=/\bCrOS\b/.test(n),D=/win/i.test(s),w=y&&n.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(y=!1,T=!0);var Q=R&&(U||y&&(w==null||w<12.11)),de=a||m&&I>=9;function te(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ue=function(e,t){var i=e.className,r=te(t).exec(i);if(r){var o=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(o?r[1]+o:"")}};function le(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function me(e,t){return le(e).appendChild(t)}function Y(e,t,i,r){var o=document.createElement(e);if(i&&(o.className=i),r&&(o.style.cssText=r),typeof t=="string")o.appendChild(document.createTextNode(t));else if(t)for(var l=0;l<t.length;++l)o.appendChild(t[l]);return o}function Oe(e,t,i,r){var o=Y(e,t,i,r);return o.setAttribute("role","presentation"),o}var Be;document.createRange?Be=function(e,t,i,r){var o=document.createRange();return o.setEnd(r||e,i),o.setStart(e,t),o}:Be=function(e,t,i){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd("character",i),r.moveStart("character",t),r};function et(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function je(e){var t=e.ownerDocument||e,i;try{i=e.activeElement}catch{i=t.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function Le(e,t){var i=e.className;te(t).test(i)||(e.className+=(i?" ":"")+t)}function Tt(e,t){for(var i=e.split(" "),r=0;r<i.length;r++)i[r]&&!te(i[r]).test(t)&&(t+=" "+i[r]);return t}var Ct=function(e){e.select()};x?Ct=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:m&&(Ct=function(e){try{e.select()}catch{}});function Ce(e){return e.display.wrapper.ownerDocument}function At(e){return Ie(e.display.wrapper)}function Ie(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function Ht(e){return Ce(e).defaultView}function he(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function ze(e,t,i){t||(t={});for(var r in e)e.hasOwnProperty(r)&&(i!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function De(e,t,i,r,o){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var l=r||0,p=o||0;;){var c=e.indexOf(" ",l);if(c<0||c>=t)return p+(t-l);p+=c-l,p+=i-p%i,l=c+1}}var tt=function(){this.id=null,this.f=null,this.time=0,this.handler=he(this.onTimeout,this)};tt.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},tt.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=i)};function Ge(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}var Jt=50,re={toString:function(){return"CodeMirror.Pass"}},k={scroll:!1},Ze={origin:"*mouse"},Te={origin:"+move"};function ve(e,t,i){for(var r=0,o=0;;){var l=e.indexOf(" ",r);l==-1&&(l=e.length);var p=l-r;if(l==e.length||o+p>=t)return r+Math.min(p,t-o);if(o+=l-r,o+=i-o%i,r=l+1,o>=t)return r}}var We=[""];function jt(e){for(;We.length<=e;)We.push($(We)+" ");return We[e]}function $(e){return e[e.length-1]}function Qt(e,t){for(var i=[],r=0;r<e.length;r++)i[r]=t(e[r],r);return i}function dt(e,t,i){for(var r=0,o=i(t);r<e.length&&i(e[r])<=o;)r++;e.splice(r,0,t)}function Pt(){}function Gr(e,t){var i;return Object.create?i=Object.create(e):(Pt.prototype=e,i=new Pt),t&&ze(t,i),i}var ti=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function tr(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||ti.test(e))}function ie(e,t){return t?t.source.indexOf("\\w")>-1&&tr(e)?!0:t.test(e):tr(e)}function He(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var zt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function qt(e){return e.charCodeAt(0)>=768&&zt.test(e)}function Kt(e,t,i){for(;(i<0?t>0:t<e.length)&&qt(e.charAt(t));)t+=i;return t}function Fr(e,t,i){for(var r=t>i?-1:1;;){if(t==i)return t;var o=(t+i)/2,l=r<0?Math.ceil(o):Math.floor(o);if(l==t)return e(l)?t:i;e(l)?i=l:t=l+r}}function vn(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var o=!1,l=0;l<e.length;++l){var p=e[l];(p.from<i&&p.to>t||t==i&&p.to==t)&&(r(Math.max(p.from,t),Math.min(p.to,i),p.level==1?"rtl":"ltr",l),o=!0)}o||r(t,i,"ltr")}var Br=null;function pr(e,t,i){var r;Br=null;for(var o=0;o<e.length;++o){var l=e[o];if(l.from<t&&l.to>t)return o;l.to==t&&(l.from!=l.to&&i=="before"?r=o:Br=o),l.from==t&&(l.from!=l.to&&i!="before"?r=o:Br=o)}return r??Br}var Ci=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(E){return E<=247?e.charAt(E):1424<=E&&E<=1524?"R":1536<=E&&E<=1785?t.charAt(E-1536):1774<=E&&E<=2220?"r":8192<=E&&E<=8203?"w":E==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,l=/[LRr]/,p=/[Lb1n]/,c=/[1n]/;function d(E,N,C){this.level=E,this.from=N,this.to=C}return function(E,N){var C=N=="ltr"?"L":"R";if(E.length==0||N=="ltr"&&!r.test(E))return!1;for(var G=E.length,O=[],P=0;P<G;++P)O.push(i(E.charCodeAt(P)));for(var _=0,Z=C;_<G;++_){var X=O[_];X=="m"?O[_]=Z:Z=X}for(var z=0,J=C;z<G;++z){var K=O[z];K=="1"&&J=="r"?O[z]="n":l.test(K)&&(J=K,K=="r"&&(O[z]="R"))}for(var ae=1,ne=O[0];ae<G-1;++ae){var Ee=O[ae];Ee=="+"&&ne=="1"&&O[ae+1]=="1"?O[ae]="1":Ee==","&&ne==O[ae+1]&&(ne=="1"||ne=="n")&&(O[ae]=ne),ne=Ee}for(var ye=0;ye<G;++ye){var at=O[ye];if(at==",")O[ye]="N";else if(at=="%"){var we=void 0;for(we=ye+1;we<G&&O[we]=="%";++we);for(var Wt=ye&&O[ye-1]=="!"||we<G&&O[we]=="1"?"1":"N",yt=ye;yt<we;++yt)O[yt]=Wt;ye=we-1}}for(var Xe=0,bt=C;Xe<G;++Xe){var ct=O[Xe];bt=="L"&&ct=="1"?O[Xe]="L":l.test(ct)&&(bt=ct)}for(var qe=0;qe<G;++qe)if(o.test(O[qe])){var Je=void 0;for(Je=qe+1;Je<G&&o.test(O[Je]);++Je);for(var ke=(qe?O[qe-1]:C)=="L",Ot=(Je<G?O[Je]:C)=="L",Ji=ke==Ot?ke?"L":"R":C,Qr=qe;Qr<Je;++Qr)O[Qr]=Ji;qe=Je-1}for(var mt=[],mr,lt=0;lt<G;)if(p.test(O[lt])){var Ua=lt;for(++lt;lt<G&&p.test(O[lt]);++lt);mt.push(new d(0,Ua,lt))}else{var Rr=lt,fi=mt.length,di=N=="rtl"?1:0;for(++lt;lt<G&&O[lt]!="L";++lt);for(var It=Rr;It<lt;)if(c.test(O[It])){Rr<It&&(mt.splice(fi,0,new d(1,Rr,It)),fi+=di);var ji=It;for(++It;It<lt&&c.test(O[It]);++It);mt.splice(fi,0,new d(2,ji,It)),fi+=di,Rr=It}else++It;Rr<lt&&mt.splice(fi,0,new d(1,Rr,lt))}return N=="ltr"&&(mt[0].level==1&&(mr=E.match(/^\s+/))&&(mt[0].from=mr[0].length,mt.unshift(new d(0,0,mr[0].length))),$(mt).level==1&&(mr=E.match(/\s+$/))&&($(mt).to-=mr[0].length,mt.push(new d(0,G-mr[0].length,G)))),N=="rtl"?mt.reverse():mt}}();function rt(e,t){var i=e.order;return i==null&&(i=e.order=Ci(e.text,t)),i}var vr=[],se=function(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else if(e.attachEvent)e.attachEvent("on"+t,i);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||vr).concat(i)}};function ri(e,t){return e._handlers&&e._handlers[t]||vr}function St(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else if(e.detachEvent)e.detachEvent("on"+t,i);else{var r=e._handlers,o=r&&r[t];if(o){var l=Ge(o,i);l>-1&&(r[t]=o.slice(0,l).concat(o.slice(l+1)))}}}function Fe(e,t){var i=ri(e,t);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),o=0;o<i.length;++o)i[o].apply(null,r)}function Ve(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Fe(e,i||t.type,e,t),cr(t)||t.codemirrorIgnore}function fo(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var i=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)Ge(i,t[r])==-1&&i.push(t[r])}function pt(e,t){return ri(e,t).length>0}function Dr(e){e.prototype.on=function(t,i){se(this,t,i)},e.prototype.off=function(t,i){St(this,t,i)}}function ht(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ye(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function cr(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function ii(e){ht(e),Ye(e)}function Ai(e){return e.target||e.srcElement}function Si(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),R&&e.ctrlKey&&t==1&&(t=3),t}var ho=function(){if(m&&I<9)return!1;var e=Y("div");return"draggable"in e||"dragDrop"in e}(),Li;function Ms(e){if(Li==null){var t=Y("span","\u200B");me(e,Y("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Li=t.offsetWidth<=1&&t.offsetHeight>2&&!(m&&I<8))}var i=Li?Y("span","\u200B"):Y("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var Vt;function Ir(e){if(Vt!=null)return Vt;var t=me(e,document.createTextNode("A\u062EA")),i=Be(t,0,1).getBoundingClientRect(),r=Be(t,1,2).getBoundingClientRect();return le(e),!i||i.left==i.right?!1:Vt=r.right-i.right<3}var Ri=`
|
|
1
|
+
"use strict";var Yasqe=(()=>{var Sm=Object.create;var zo=Object.defineProperty;var Lm=Object.getOwnPropertyDescriptor;var Rm=Object.getOwnPropertyNames;var ym=Object.getPrototypeOf,bm=Object.prototype.hasOwnProperty;var Se=(n,s)=>()=>(s||n((s={exports:{}}).exports,s),s.exports),Tp=(n,s)=>{for(var a in s)zo(n,a,{get:s[a],enumerable:!0})},Ap=(n,s,a,u)=>{if(s&&typeof s=="object"||typeof s=="function")for(let h of Rm(s))!bm.call(n,h)&&h!==a&&zo(n,h,{get:()=>s[h],enumerable:!(u=Lm(s,h))||u.enumerable});return n};var ft=(n,s,a)=>(a=n!=null?Sm(ym(n)):{},Ap(s||!n||!n.__esModule?zo(a,"default",{value:n,enumerable:!0}):a,n)),Om=n=>Ap(zo({},"__esModule",{value:!0}),n);var Nt=Se((Fa,Ba)=>{(function(n,s){typeof Fa=="object"&&typeof Ba<"u"?Ba.exports=s():typeof define=="function"&&define.amd?define(s):(n=n||self,n.CodeMirror=s())})(Fa,function(){"use strict";var n=navigator.userAgent,s=navigator.platform,a=/gecko\/\d/i.test(n),u=/MSIE \d/.test(n),h=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),g=/Edge\/(\d+)/.exec(n),m=u||h||g,I=m&&(u?document.documentMode||6:+(g||h)[1]),T=!g&&/WebKit\//.test(n),G=T&&/Qt\/\d+\.\d+/.test(n),L=!g&&/Chrome\/(\d+)/.exec(n),V=L&&+L[1],y=/Opera\//.test(n),M=/Apple Computer/.test(navigator.vendor),F=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),S=/PhantomJS/.test(n),x=M&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),v=/Android/.test(n),C=x||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),R=x||/Mac/.test(s),B=/\bCrOS\b/.test(n),D=/win/i.test(s),w=y&&n.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(y=!1,T=!0);var Q=R&&(G||y&&(w==null||w<12.11)),de=a||m&&I>=9;function te(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ue=function(e,t){var i=e.className,r=te(t).exec(i);if(r){var o=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(o?r[1]+o:"")}};function le(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function me(e,t){return le(e).appendChild(t)}function Y(e,t,i,r){var o=document.createElement(e);if(i&&(o.className=i),r&&(o.style.cssText=r),typeof t=="string")o.appendChild(document.createTextNode(t));else if(t)for(var l=0;l<t.length;++l)o.appendChild(t[l]);return o}function Oe(e,t,i,r){var o=Y(e,t,i,r);return o.setAttribute("role","presentation"),o}var Be;document.createRange?Be=function(e,t,i,r){var o=document.createRange();return o.setEnd(r||e,i),o.setStart(e,t),o}:Be=function(e,t,i){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd("character",i),r.moveStart("character",t),r};function et(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function je(e){var t=e.ownerDocument||e,i;try{i=e.activeElement}catch{i=t.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function Le(e,t){var i=e.className;te(t).test(i)||(e.className+=(i?" ":"")+t)}function Tt(e,t){for(var i=e.split(" "),r=0;r<i.length;r++)i[r]&&!te(i[r]).test(t)&&(t+=" "+i[r]);return t}var At=function(e){e.select()};x?At=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:m&&(At=function(e){try{e.select()}catch{}});function Ae(e){return e.display.wrapper.ownerDocument}function Ct(e){return Ie(e.display.wrapper)}function Ie(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function Ht(e){return Ae(e).defaultView}function he(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function ze(e,t,i){t||(t={});for(var r in e)e.hasOwnProperty(r)&&(i!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function De(e,t,i,r,o){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var l=r||0,p=o||0;;){var c=e.indexOf(" ",l);if(c<0||c>=t)return p+(t-l);p+=c-l,p+=i-p%i,l=c+1}}var tt=function(){this.id=null,this.f=null,this.time=0,this.handler=he(this.onTimeout,this)};tt.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},tt.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=i)};function Ue(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}var Jt=50,re={toString:function(){return"CodeMirror.Pass"}},k={scroll:!1},Ze={origin:"*mouse"},Te={origin:"+move"};function ve(e,t,i){for(var r=0,o=0;;){var l=e.indexOf(" ",r);l==-1&&(l=e.length);var p=l-r;if(l==e.length||o+p>=t)return r+Math.min(p,t-o);if(o+=l-r,o+=i-o%i,r=l+1,o>=t)return r}}var We=[""];function jt(e){for(;We.length<=e;)We.push($(We)+" ");return We[e]}function $(e){return e[e.length-1]}function Qt(e,t){for(var i=[],r=0;r<e.length;r++)i[r]=t(e[r],r);return i}function dt(e,t,i){for(var r=0,o=i(t);r<e.length&&i(e[r])<=o;)r++;e.splice(r,0,t)}function Pt(){}function Ur(e,t){var i;return Object.create?i=Object.create(e):(Pt.prototype=e,i=new Pt),t&&ze(t,i),i}var ti=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function tr(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||ti.test(e))}function ie(e,t){return t?t.source.indexOf("\\w")>-1&&tr(e)?!0:t.test(e):tr(e)}function He(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var zt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function qt(e){return e.charCodeAt(0)>=768&&zt.test(e)}function Kt(e,t,i){for(;(i<0?t>0:t<e.length)&&qt(e.charAt(t));)t+=i;return t}function Fr(e,t,i){for(var r=t>i?-1:1;;){if(t==i)return t;var o=(t+i)/2,l=r<0?Math.ceil(o):Math.floor(o);if(l==t)return e(l)?t:i;e(l)?i=l:t=l+r}}function vn(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var o=!1,l=0;l<e.length;++l){var p=e[l];(p.from<i&&p.to>t||t==i&&p.to==t)&&(r(Math.max(p.from,t),Math.min(p.to,i),p.level==1?"rtl":"ltr",l),o=!0)}o||r(t,i,"ltr")}var Br=null;function pr(e,t,i){var r;Br=null;for(var o=0;o<e.length;++o){var l=e[o];if(l.from<t&&l.to>t)return o;l.to==t&&(l.from!=l.to&&i=="before"?r=o:Br=o),l.from==t&&(l.from!=l.to&&i!="before"?r=o:Br=o)}return r??Br}var Ai=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(E){return E<=247?e.charAt(E):1424<=E&&E<=1524?"R":1536<=E&&E<=1785?t.charAt(E-1536):1774<=E&&E<=2220?"r":8192<=E&&E<=8203?"w":E==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,l=/[LRr]/,p=/[Lb1n]/,c=/[1n]/;function d(E,N,A){this.level=E,this.from=N,this.to=A}return function(E,N){var A=N=="ltr"?"L":"R";if(E.length==0||N=="ltr"&&!r.test(E))return!1;for(var U=E.length,O=[],P=0;P<U;++P)O.push(i(E.charCodeAt(P)));for(var _=0,Z=A;_<U;++_){var X=O[_];X=="m"?O[_]=Z:Z=X}for(var z=0,J=A;z<U;++z){var K=O[z];K=="1"&&J=="r"?O[z]="n":l.test(K)&&(J=K,K=="r"&&(O[z]="R"))}for(var ae=1,ne=O[0];ae<U-1;++ae){var Ee=O[ae];Ee=="+"&&ne=="1"&&O[ae+1]=="1"?O[ae]="1":Ee==","&&ne==O[ae+1]&&(ne=="1"||ne=="n")&&(O[ae]=ne),ne=Ee}for(var ye=0;ye<U;++ye){var at=O[ye];if(at==",")O[ye]="N";else if(at=="%"){var we=void 0;for(we=ye+1;we<U&&O[we]=="%";++we);for(var Wt=ye&&O[ye-1]=="!"||we<U&&O[we]=="1"?"1":"N",yt=ye;yt<we;++yt)O[yt]=Wt;ye=we-1}}for(var Xe=0,bt=A;Xe<U;++Xe){var ct=O[Xe];bt=="L"&&ct=="1"?O[Xe]="L":l.test(ct)&&(bt=ct)}for(var qe=0;qe<U;++qe)if(o.test(O[qe])){var Je=void 0;for(Je=qe+1;Je<U&&o.test(O[Je]);++Je);for(var ke=(qe?O[qe-1]:A)=="L",Ot=(Je<U?O[Je]:A)=="L",Ji=ke==Ot?ke?"L":"R":A,Qr=qe;Qr<Je;++Qr)O[Qr]=Ji;qe=Je-1}for(var mt=[],mr,lt=0;lt<U;)if(p.test(O[lt])){var Ga=lt;for(++lt;lt<U&&p.test(O[lt]);++lt);mt.push(new d(0,Ga,lt))}else{var Rr=lt,fi=mt.length,di=N=="rtl"?1:0;for(++lt;lt<U&&O[lt]!="L";++lt);for(var It=Rr;It<lt;)if(c.test(O[It])){Rr<It&&(mt.splice(fi,0,new d(1,Rr,It)),fi+=di);var ji=It;for(++It;It<lt&&c.test(O[It]);++It);mt.splice(fi,0,new d(2,ji,It)),fi+=di,Rr=It}else++It;Rr<lt&&mt.splice(fi,0,new d(1,Rr,lt))}return N=="ltr"&&(mt[0].level==1&&(mr=E.match(/^\s+/))&&(mt[0].from=mr[0].length,mt.unshift(new d(0,0,mr[0].length))),$(mt).level==1&&(mr=E.match(/\s+$/))&&($(mt).to-=mr[0].length,mt.push(new d(0,U-mr[0].length,U)))),N=="rtl"?mt.reverse():mt}}();function rt(e,t){var i=e.order;return i==null&&(i=e.order=Ai(e.text,t)),i}var vr=[],se=function(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else if(e.attachEvent)e.attachEvent("on"+t,i);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||vr).concat(i)}};function ri(e,t){return e._handlers&&e._handlers[t]||vr}function St(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else if(e.detachEvent)e.detachEvent("on"+t,i);else{var r=e._handlers,o=r&&r[t];if(o){var l=Ue(o,i);l>-1&&(r[t]=o.slice(0,l).concat(o.slice(l+1)))}}}function Fe(e,t){var i=ri(e,t);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),o=0;o<i.length;++o)i[o].apply(null,r)}function Ve(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Fe(e,i||t.type,e,t),cr(t)||t.codemirrorIgnore}function fo(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var i=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)Ue(i,t[r])==-1&&i.push(t[r])}function pt(e,t){return ri(e,t).length>0}function Dr(e){e.prototype.on=function(t,i){se(this,t,i)},e.prototype.off=function(t,i){St(this,t,i)}}function ht(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ye(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function cr(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function ii(e){ht(e),Ye(e)}function Ci(e){return e.target||e.srcElement}function Si(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),R&&e.ctrlKey&&t==1&&(t=3),t}var ho=function(){if(m&&I<9)return!1;var e=Y("div");return"draggable"in e||"dragDrop"in e}(),Li;function Ms(e){if(Li==null){var t=Y("span","\u200B");me(e,Y("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Li=t.offsetWidth<=1&&t.offsetHeight>2&&!(m&&I<8))}var i=Li?Y("span","\u200B"):Y("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var Vt;function Ir(e){if(Vt!=null)return Vt;var t=me(e,document.createTextNode("A\u062EA")),i=Be(t,0,1).getBoundingClientRect(),r=Be(t,1,2).getBoundingClientRect();return le(e),!i||i.left==i.right?!1:Vt=r.right-i.right<3}var Ri=`
|
|
2
2
|
|
|
3
3
|
b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],r=e.length;t<=r;){var o=e.indexOf(`
|
|
4
|
-
`,t);o==-1&&(o=e.length);var l=e.slice(t,e.charAt(o-1)=="\r"?o-1:o),p=l.indexOf("\r");p!=-1?(i.push(l.slice(0,p)),t+=p+1):(i.push(l),t=o+1)}return i}:function(e){return e.split(/\r\n?|\n/)},go=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},In=function(){var e=Y("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),yi=null;function rr(e){if(yi!=null)return yi;var t=me(e,Y("span","x")),i=t.getBoundingClientRect(),r=Be(t,0,1).getBoundingClientRect();return yi=Math.abs(i.left-r.left)>1}var bi={},Nr={};function Eo(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),bi[e]=t}function mo(e,t){Nr[e]=t}function Oi(e){if(typeof e=="string"&&Nr.hasOwnProperty(e))e=Nr[e];else if(e&&typeof e.name=="string"&&Nr.hasOwnProperty(e.name)){var t=Nr[e.name];typeof t=="string"&&(t={name:t}),e=Gr(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Oi("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Oi("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function oe(e,t){t=Oi(t);var i=bi[t.name];if(!i)return oe(e,"text/plain");var r=i(e,t);if(b.hasOwnProperty(t.name)){var o=b[t.name];for(var l in o)o.hasOwnProperty(l)&&(r.hasOwnProperty(l)&&(r["_"+l]=r[l]),r[l]=o[l])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var p in t.modeProps)r[p]=t.modeProps[p];return r}var b={};function H(e,t){var i=b.hasOwnProperty(e)?b[e]:b[e]={};ze(t,i)}function ee(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var r in t){var o=t[r];o instanceof Array&&(o=o.concat([])),i[r]=o}return i}function Re(e,t){for(var i;e.innerMode&&(i=e.innerMode(t),!(!i||i.mode==e));)t=i.state,e=i.mode;return i||{mode:e,state:t}}function it(e,t,i){return e.startState?e.startState(t,i):!0}var ge=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};ge.prototype.eol=function(){return this.pos>=this.string.length},ge.prototype.sol=function(){return this.pos==this.lineStart},ge.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ge.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ge.prototype.eat=function(e){var t=this.string.charAt(this.pos),i;if(typeof e=="string"?i=t==e:i=t&&(e.test?e.test(t):e(t)),i)return++this.pos,t},ge.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},ge.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},ge.prototype.skipToEnd=function(){this.pos=this.string.length},ge.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},ge.prototype.backUp=function(e){this.pos-=e},ge.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=De(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?De(this.string,this.lineStart,this.tabSize):0)},ge.prototype.indentation=function(){return De(this.string,null,this.tabSize)-(this.lineStart?De(this.string,this.lineStart,this.tabSize):0)},ge.prototype.match=function(e,t,i){if(typeof e=="string"){var r=function(p){return i?p.toLowerCase():p},o=this.string.substr(this.pos,e.length);if(r(o)==r(e))return t!==!1&&(this.pos+=e.length),!0}else{var l=this.string.slice(this.pos).match(e);return l&&l.index>0?null:(l&&t!==!1&&(this.pos+=l[0].length),l)}},ge.prototype.current=function(){return this.string.slice(this.start,this.pos)},ge.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},ge.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},ge.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function q(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var r=0;;++r){var o=i.children[r],l=o.chunkSize();if(t<l){i=o;break}t-=l}return i.lines[t]}function gt(e,t,i){var r=[],o=t.line;return e.iter(t.line,i.line+1,function(l){var p=l.text;o==i.line&&(p=p.slice(0,i.ch)),o==t.line&&(p=p.slice(t.ch)),r.push(p),++o}),r}function fr(e,t,i){var r=[];return e.iter(t,i,function(o){r.push(o.text)}),r}function wt(e,t){var i=t-e.height;if(i)for(var r=e;r;r=r.parent)r.height+=i}function pe(e){if(e.parent==null)return null;for(var t=e.parent,i=Ge(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var o=0;r.children[o]!=t;++o)i+=r.children[o].chunkSize();return i+t.first}function dr(e,t){var i=e.first;e:do{for(var r=0;r<e.children.length;++r){var o=e.children[r],l=o.height;if(t<l){e=o;continue e}t-=l,i+=o.chunkSize()}return i}while(!e.lines);for(var p=0;p<e.lines.length;++p){var c=e.lines[p],d=c.height;if(t<d)break;t-=d}return i+p}function Mr(e,t){return t>=e.first&&t<e.first+e.size}function Ps(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function W(e,t,i){if(i===void 0&&(i=null),!(this instanceof W))return new W(e,t,i);this.line=e,this.ch=t,this.sticky=i}function ce(e,t){return e.line-t.line||e.ch-t.ch}function Vs(e,t){return e.sticky==t.sticky&&ce(e,t)==0}function ws(e){return W(e.line,e.ch)}function xo(e,t){return ce(e,t)<0?t:e}function vo(e,t){return ce(e,t)<0?e:t}function Cl(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function fe(e,t){if(t.line<e.first)return W(e.first,0);var i=e.first+e.size-1;return t.line>i?W(i,q(e,i).text.length):Lg(t,q(e,t.line).text.length)}function Lg(e,t){var i=e.ch;return i==null||i>t?W(e.line,t):i<0?W(e.line,0):e}function Al(e,t){for(var i=[],r=0;r<t.length;r++)i[r]=fe(e,t[r]);return i}var Io=function(e,t){this.state=e,this.lookAhead=t},hr=function(e,t,i,r){this.state=t,this.doc=e,this.line=i,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};hr.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},hr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},hr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},hr.fromSaved=function(e,t,i){return t instanceof Io?new hr(e,ee(e.mode,t.state),i,t.lookAhead):new hr(e,ee(e.mode,t),i)},hr.prototype.save=function(e){var t=e!==!1?ee(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Io(t,this.maxLookAhead):t};function Sl(e,t,i,r){var o=[e.state.modeGen],l={};Ul(e,t.text,e.doc.mode,i,function(E,N){return o.push(E,N)},l,r);for(var p=i.state,c=function(E){i.baseTokens=o;var N=e.state.overlays[E],C=1,G=0;i.state=!0,Ul(e,t.text,N.mode,i,function(O,P){for(var _=C;G<O;){var Z=o[C];Z>O&&o.splice(C,1,O,o[C+1],Z),C+=2,G=Math.min(O,Z)}if(P)if(N.opaque)o.splice(_,C-_,O,"overlay "+P),C=_+2;else for(;_<C;_+=2){var X=o[_+1];o[_+1]=(X?X+" ":"")+"overlay "+P}},l),i.state=p,i.baseTokens=null,i.baseTokenPos=1},d=0;d<e.state.overlays.length;++d)c(d);return{styles:o,classes:l.bgClass||l.textClass?l:null}}function Ll(e,t,i){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Nn(e,pe(t)),o=t.text.length>e.options.maxHighlightLength&&ee(e.doc.mode,r.state),l=Sl(e,t,r);o&&(r.state=o),t.stateAfter=r.save(!o),t.styles=l.styles,l.classes?t.styleClasses=l.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Nn(e,t,i){var r=e.doc,o=e.display;if(!r.mode.startState)return new hr(r,!0,t);var l=Rg(e,t,i),p=l>r.first&&q(r,l-1).stateAfter,c=p?hr.fromSaved(r,p,l):new hr(r,it(r.mode),l);return r.iter(l,t,function(d){_s(e,d.text,c);var E=c.line;d.stateAfter=E==t-1||E%5==0||E>=o.viewFrom&&E<o.viewTo?c.save():null,c.nextLine()}),i&&(r.modeFrontier=c.line),c}function _s(e,t,i,r){var o=e.doc.mode,l=new ge(t,e.options.tabSize,i);for(l.start=l.pos=r||0,t==""&&Rl(o,i.state);!l.eol();)Ws(o,l,i.state),l.start=l.pos}function Rl(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var i=Re(e,t);if(i.mode.blankLine)return i.mode.blankLine(i.state)}}function Ws(e,t,i,r){for(var o=0;o<10;o++){r&&(r[0]=Re(e,i).mode);var l=e.token(t,i);if(t.pos>t.start)return l}throw new Error("Mode "+e.name+" failed to advance stream.")}var yl=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function bl(e,t,i,r){var o=e.doc,l=o.mode,p;t=fe(o,t);var c=q(o,t.line),d=Nn(e,t.line,i),E=new ge(c.text,e.options.tabSize,d),N;for(r&&(N=[]);(r||E.pos<t.ch)&&!E.eol();)E.start=E.pos,p=Ws(l,E,d.state),r&&N.push(new yl(E,p,ee(o.mode,d.state)));return r?N:new yl(E,p,d.state)}function Ol(e,t){if(e)for(;;){var i=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!i)break;e=e.slice(0,i.index)+e.slice(i.index+i[0].length);var r=i[1]?"bgClass":"textClass";t[r]==null?t[r]=i[2]:new RegExp("(?:^|\\s)"+i[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+i[2])}return e}function Ul(e,t,i,r,o,l,p){var c=i.flattenSpans;c==null&&(c=e.options.flattenSpans);var d=0,E=null,N=new ge(t,e.options.tabSize,r),C,G=e.options.addModeClass&&[null];for(t==""&&Ol(Rl(i,r.state),l);!N.eol();){if(N.pos>e.options.maxHighlightLength?(c=!1,p&&_s(e,t,r,N.pos),N.pos=t.length,C=null):C=Ol(Ws(i,N,r.state,G),l),G){var O=G[0].name;O&&(C="m-"+(C?O+" "+C:O))}if(!c||E!=C){for(;d<N.start;)d=Math.min(N.start,d+5e3),o(d,E);E=C}N.start=N.pos}for(;d<N.pos;){var P=Math.min(N.pos,d+5e3);o(P,E),d=P}}function Rg(e,t,i){for(var r,o,l=e.doc,p=i?-1:t-(e.doc.mode.innerMode?1e3:100),c=t;c>p;--c){if(c<=l.first)return l.first;var d=q(l,c-1),E=d.stateAfter;if(E&&(!i||c+(E instanceof Io?E.lookAhead:0)<=l.modeFrontier))return c;var N=De(d.text,null,e.options.tabSize);(o==null||r>N)&&(o=c-1,r=N)}return o}function yg(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var i=e.first,r=t-1;r>i;r--){var o=q(e,r).stateAfter;if(o&&(!(o instanceof Io)||r+o.lookAhead<t)){i=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,i)}}var Gl=!1,Tr=!1;function bg(){Gl=!0}function Og(){Tr=!0}function No(e,t,i){this.marker=e,this.from=t,this.to=i}function Tn(e,t){if(e)for(var i=0;i<e.length;++i){var r=e[i];if(r.marker==t)return r}}function Ug(e,t){for(var i,r=0;r<e.length;++r)e[r]!=t&&(i||(i=[])).push(e[r]);return i}function Gg(e,t,i){var r=i&&window.WeakSet&&(i.markedSpans||(i.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function Fg(e,t,i){var r;if(e)for(var o=0;o<e.length;++o){var l=e[o],p=l.marker,c=l.from==null||(p.inclusiveLeft?l.from<=t:l.from<t);if(c||l.from==t&&p.type=="bookmark"&&(!i||!l.marker.insertLeft)){var d=l.to==null||(p.inclusiveRight?l.to>=t:l.to>t);(r||(r=[])).push(new No(p,l.from,d?null:l.to))}}return r}function Bg(e,t,i){var r;if(e)for(var o=0;o<e.length;++o){var l=e[o],p=l.marker,c=l.to==null||(p.inclusiveRight?l.to>=t:l.to>t);if(c||l.from==t&&p.type=="bookmark"&&(!i||l.marker.insertLeft)){var d=l.from==null||(p.inclusiveLeft?l.from<=t:l.from<t);(r||(r=[])).push(new No(p,d?null:l.from-t,l.to==null?null:l.to-t))}}return r}function ks(e,t){if(t.full)return null;var i=Mr(e,t.from.line)&&q(e,t.from.line).markedSpans,r=Mr(e,t.to.line)&&q(e,t.to.line).markedSpans;if(!i&&!r)return null;var o=t.from.ch,l=t.to.ch,p=ce(t.from,t.to)==0,c=Fg(i,o,p),d=Bg(r,l,p),E=t.text.length==1,N=$(t.text).length+(E?o:0);if(c)for(var C=0;C<c.length;++C){var G=c[C];if(G.to==null){var O=Tn(d,G.marker);O?E&&(G.to=O.to==null?null:O.to+N):G.to=o}}if(d)for(var P=0;P<d.length;++P){var _=d[P];if(_.to!=null&&(_.to+=N),_.from==null){var Z=Tn(c,_.marker);Z||(_.from=N,E&&(c||(c=[])).push(_))}else _.from+=N,E&&(c||(c=[])).push(_)}c&&(c=Fl(c)),d&&d!=c&&(d=Fl(d));var X=[c];if(!E){var z=t.text.length-2,J;if(z>0&&c)for(var K=0;K<c.length;++K)c[K].to==null&&(J||(J=[])).push(new No(c[K].marker,null,null));for(var ae=0;ae<z;++ae)X.push(J);X.push(d)}return X}function Fl(e){for(var t=0;t<e.length;++t){var i=e[t];i.from!=null&&i.from==i.to&&i.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function Dg(e,t,i){var r=null;if(e.iter(t.line,i.line+1,function(O){if(O.markedSpans)for(var P=0;P<O.markedSpans.length;++P){var _=O.markedSpans[P].marker;_.readOnly&&(!r||Ge(r,_)==-1)&&(r||(r=[])).push(_)}}),!r)return null;for(var o=[{from:t,to:i}],l=0;l<r.length;++l)for(var p=r[l],c=p.find(0),d=0;d<o.length;++d){var E=o[d];if(!(ce(E.to,c.from)<0||ce(E.from,c.to)>0)){var N=[d,1],C=ce(E.from,c.from),G=ce(E.to,c.to);(C<0||!p.inclusiveLeft&&!C)&&N.push({from:E.from,to:c.from}),(G>0||!p.inclusiveRight&&!G)&&N.push({from:c.to,to:E.to}),o.splice.apply(o,N),d+=N.length-3}}return o}function Bl(e){var t=e.markedSpans;if(t){for(var i=0;i<t.length;++i)t[i].marker.detachLine(e);e.markedSpans=null}}function Dl(e,t){if(t){for(var i=0;i<t.length;++i)t[i].marker.attachLine(e);e.markedSpans=t}}function To(e){return e.inclusiveLeft?-1:0}function Co(e){return e.inclusiveRight?1:0}function Zs(e,t){var i=e.lines.length-t.lines.length;if(i!=0)return i;var r=e.find(),o=t.find(),l=ce(r.from,o.from)||To(e)-To(t);if(l)return-l;var p=ce(r.to,o.to)||Co(e)-Co(t);return p||t.id-e.id}function Ml(e,t){var i=Tr&&e.markedSpans,r;if(i)for(var o=void 0,l=0;l<i.length;++l)o=i[l],o.marker.collapsed&&(t?o.from:o.to)==null&&(!r||Zs(r,o.marker)<0)&&(r=o.marker);return r}function Pl(e){return Ml(e,!0)}function Ao(e){return Ml(e,!1)}function Mg(e,t){var i=Tr&&e.markedSpans,r;if(i)for(var o=0;o<i.length;++o){var l=i[o];l.marker.collapsed&&(l.from==null||l.from<t)&&(l.to==null||l.to>t)&&(!r||Zs(r,l.marker)<0)&&(r=l.marker)}return r}function Vl(e,t,i,r,o){var l=q(e,t),p=Tr&&l.markedSpans;if(p)for(var c=0;c<p.length;++c){var d=p[c];if(d.marker.collapsed){var E=d.marker.find(0),N=ce(E.from,i)||To(d.marker)-To(o),C=ce(E.to,r)||Co(d.marker)-Co(o);if(!(N>=0&&C<=0||N<=0&&C>=0)&&(N<=0&&(d.marker.inclusiveRight&&o.inclusiveLeft?ce(E.to,i)>=0:ce(E.to,i)>0)||N>=0&&(d.marker.inclusiveRight&&o.inclusiveLeft?ce(E.from,r)<=0:ce(E.from,r)<0)))return!0}}}function ir(e){for(var t;t=Pl(e);)e=t.find(-1,!0).line;return e}function Pg(e){for(var t;t=Ao(e);)e=t.find(1,!0).line;return e}function Vg(e){for(var t,i;t=Ao(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function Hs(e,t){var i=q(e,t),r=ir(i);return i==r?t:pe(r)}function wl(e,t){if(t>e.lastLine())return t;var i=q(e,t),r;if(!Pr(e,i))return t;for(;r=Ao(i);)i=r.find(1,!0).line;return pe(i)+1}function Pr(e,t){var i=Tr&&t.markedSpans;if(i){for(var r=void 0,o=0;o<i.length;++o)if(r=i[o],!!r.marker.collapsed){if(r.from==null)return!0;if(!r.marker.widgetNode&&r.from==0&&r.marker.inclusiveLeft&&Qs(e,t,r))return!0}}}function Qs(e,t,i){if(i.to==null){var r=i.marker.find(1,!0);return Qs(e,r.line,Tn(r.line.markedSpans,i.marker))}if(i.marker.inclusiveRight&&i.to==t.text.length)return!0;for(var o=void 0,l=0;l<t.markedSpans.length;++l)if(o=t.markedSpans[l],o.marker.collapsed&&!o.marker.widgetNode&&o.from==i.to&&(o.to==null||o.to!=i.from)&&(o.marker.inclusiveLeft||i.marker.inclusiveRight)&&Qs(e,t,o))return!0}function Cr(e){e=ir(e);for(var t=0,i=e.parent,r=0;r<i.lines.length;++r){var o=i.lines[r];if(o==e)break;t+=o.height}for(var l=i.parent;l;i=l,l=i.parent)for(var p=0;p<l.children.length;++p){var c=l.children[p];if(c==i)break;t+=c.height}return t}function So(e){if(e.height==0)return 0;for(var t=e.text.length,i,r=e;i=Pl(r);){var o=i.find(0,!0);r=o.from.line,t+=o.from.ch-o.to.ch}for(r=e;i=Ao(r);){var l=i.find(0,!0);t-=r.text.length-l.from.ch,r=l.to.line,t+=r.text.length-l.to.ch}return t}function Ys(e){var t=e.display,i=e.doc;t.maxLine=q(i,i.first),t.maxLineLength=So(t.maxLine),t.maxLineChanged=!0,i.iter(function(r){var o=So(r);o>t.maxLineLength&&(t.maxLineLength=o,t.maxLine=r)})}var Ui=function(e,t,i){this.text=e,Dl(this,t),this.height=i?i(this):1};Ui.prototype.lineNo=function(){return pe(this)},Dr(Ui);function wg(e,t,i,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Bl(e),Dl(e,i);var o=r?r(e):1;o!=e.height&&wt(e,o)}function _g(e){e.parent=null,Bl(e)}var Wg={},kg={};function _l(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?kg:Wg;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function Wl(e,t){var i=Oe("span",null,null,T?"padding-right: .1px":null),r={pre:Oe("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var l=o?t.rest[o-1]:t.line,p=void 0;r.pos=0,r.addToken=Hg,Ir(e.display.measure)&&(p=rt(l,e.doc.direction))&&(r.addToken=Yg(r.addToken,p)),r.map=[];var c=t!=e.display.externalMeasured&&pe(l);Xg(l,r,Ll(e,l,c)),l.styleClasses&&(l.styleClasses.bgClass&&(r.bgClass=Tt(l.styleClasses.bgClass,r.bgClass||"")),l.styleClasses.textClass&&(r.textClass=Tt(l.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(Ms(e.display.measure))),o==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(T){var d=r.content.lastChild;(/\bcm-tab\b/.test(d.className)||d.querySelector&&d.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return Fe(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=Tt(r.pre.className,r.textClass||"")),r}function Zg(e){var t=Y("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Hg(e,t,i,r,o,l,p){if(t){var c=e.splitSpaces?Qg(t,e.trailingSpace):t,d=e.cm.state.specialChars,E=!1,N;if(!d.test(t))e.col+=t.length,N=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,N),m&&I<9&&(E=!0),e.pos+=t.length;else{N=document.createDocumentFragment();for(var C=0;;){d.lastIndex=C;var G=d.exec(t),O=G?G.index-C:t.length-C;if(O){var P=document.createTextNode(c.slice(C,C+O));m&&I<9?N.appendChild(Y("span",[P])):N.appendChild(P),e.map.push(e.pos,e.pos+O,P),e.col+=O,e.pos+=O}if(!G)break;C+=O+1;var _=void 0;if(G[0]==" "){var Z=e.cm.options.tabSize,X=Z-e.col%Z;_=N.appendChild(Y("span",jt(X),"cm-tab")),_.setAttribute("role","presentation"),_.setAttribute("cm-text"," "),e.col+=X}else G[0]=="\r"||G[0]==`
|
|
5
|
-
`?(_=N.appendChild(Y("span",G[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),_.setAttribute("cm-text",G[0]),e.col+=1):(_=e.cm.options.specialCharPlaceholder(G[0]),_.setAttribute("cm-text",G[0]),m&&I<9?N.appendChild(Y("span",[_])):N.appendChild(_),e.col+=1);e.map.push(e.pos,e.pos+1,_),e.pos++}}if(e.trailingSpace=c.charCodeAt(t.length-1)==32,i||r||o||E||l||p){var z=i||"";r&&(z+=r),o&&(z+=o);var J=Y("span",[N],z,l);if(p)for(var K in p)p.hasOwnProperty(K)&&K!="style"&&K!="class"&&J.setAttribute(K,p[K]);return e.content.appendChild(J)}e.content.appendChild(N)}}function Qg(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,r="",o=0;o<e.length;o++){var l=e.charAt(o);l==" "&&i&&(o==e.length-1||e.charCodeAt(o+1)==32)&&(l="\xA0"),r+=l,i=l==" "}return r}function Yg(e,t){return function(i,r,o,l,p,c,d){o=o?o+" cm-force-border":"cm-force-border";for(var E=i.pos,N=E+r.length;;){for(var C=void 0,G=0;G<t.length&&(C=t[G],!(C.to>E&&C.from<=E));G++);if(C.to>=N)return e(i,r,o,l,p,c,d);e(i,r.slice(0,C.to-E),o,l,null,c,d),l=null,r=r.slice(C.to-E),E=C.to}}}function kl(e,t,i,r){var o=!r&&i.widgetNode;o&&e.map.push(e.pos,e.pos+t,o),!r&&e.cm.display.input.needsContentAttribute&&(o||(o=e.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",i.id)),o&&(e.cm.display.input.setUneditable(o),e.content.appendChild(o)),e.pos+=t,e.trailingSpace=!1}function Xg(e,t,i){var r=e.markedSpans,o=e.text,l=0;if(!r){for(var p=1;p<i.length;p+=2)t.addToken(t,o.slice(l,l=i[p]),_l(i[p+1],t.cm.options));return}for(var c=o.length,d=0,E=1,N="",C,G,O=0,P,_,Z,X,z;;){if(O==d){P=_=Z=G="",z=null,X=null,O=1/0;for(var J=[],K=void 0,ae=0;ae<r.length;++ae){var ne=r[ae],Ee=ne.marker;if(Ee.type=="bookmark"&&ne.from==d&&Ee.widgetNode)J.push(Ee);else if(ne.from<=d&&(ne.to==null||ne.to>d||Ee.collapsed&&ne.to==d&&ne.from==d)){if(ne.to!=null&&ne.to!=d&&O>ne.to&&(O=ne.to,_=""),Ee.className&&(P+=" "+Ee.className),Ee.css&&(G=(G?G+";":"")+Ee.css),Ee.startStyle&&ne.from==d&&(Z+=" "+Ee.startStyle),Ee.endStyle&&ne.to==O&&(K||(K=[])).push(Ee.endStyle,ne.to),Ee.title&&((z||(z={})).title=Ee.title),Ee.attributes)for(var ye in Ee.attributes)(z||(z={}))[ye]=Ee.attributes[ye];Ee.collapsed&&(!X||Zs(X.marker,Ee)<0)&&(X=ne)}else ne.from>d&&O>ne.from&&(O=ne.from)}if(K)for(var at=0;at<K.length;at+=2)K[at+1]==O&&(_+=" "+K[at]);if(!X||X.from==d)for(var we=0;we<J.length;++we)kl(t,0,J[we]);if(X&&(X.from||0)==d){if(kl(t,(X.to==null?c+1:X.to)-d,X.marker,X.from==null),X.to==null)return;X.to==d&&(X=!1)}}if(d>=c)break;for(var Wt=Math.min(c,O);;){if(N){var yt=d+N.length;if(!X){var Xe=yt>Wt?N.slice(0,Wt-d):N;t.addToken(t,Xe,C?C+P:P,Z,d+Xe.length==O?_:"",G,z)}if(yt>=Wt){N=N.slice(Wt-d),d=Wt;break}d=yt,Z=""}N=o.slice(l,l=i[E++]),C=_l(i[E++],t.cm.options)}}}function Zl(e,t,i){this.line=t,this.rest=Vg(t),this.size=this.rest?pe($(this.rest))-i+1:1,this.node=this.text=null,this.hidden=Pr(e,t)}function Lo(e,t,i){for(var r=[],o,l=t;l<i;l=o){var p=new Zl(e.doc,q(e.doc,l),l);o=l+p.size,r.push(p)}return r}var Gi=null;function Jg(e){Gi?Gi.ops.push(e):e.ownsGroup=Gi={ops:[e],delayedCallbacks:[]}}function jg(e){var t=e.delayedCallbacks,i=0;do{for(;i<t.length;i++)t[i].call(null);for(var r=0;r<e.ops.length;r++){var o=e.ops[r];if(o.cursorActivityHandlers)for(;o.cursorActivityCalled<o.cursorActivityHandlers.length;)o.cursorActivityHandlers[o.cursorActivityCalled++].call(null,o.cm)}}while(i<t.length)}function zg(e,t){var i=e.ownsGroup;if(i)try{jg(i)}finally{Gi=null,t(i)}}var Cn=null;function nt(e,t){var i=ri(e,t);if(i.length){var r=Array.prototype.slice.call(arguments,2),o;Gi?o=Gi.delayedCallbacks:Cn?o=Cn:(o=Cn=[],setTimeout(qg,0));for(var l=function(c){o.push(function(){return i[c].apply(null,r)})},p=0;p<i.length;++p)l(p)}}function qg(){var e=Cn;Cn=null;for(var t=0;t<e.length;++t)e[t]()}function Hl(e,t,i,r){for(var o=0;o<t.changes.length;o++){var l=t.changes[o];l=="text"?$g(e,t):l=="gutter"?Yl(e,t,i,r):l=="class"?Xs(e,t):l=="widget"&&eE(e,t,r)}t.changes=null}function An(e){return e.node==e.text&&(e.node=Y("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),m&&I<8&&(e.node.style.zIndex=2)),e.node}function Kg(e,t){var i=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(i&&(i+=" CodeMirror-linebackground"),t.background)i?t.background.className=i:(t.background.parentNode.removeChild(t.background),t.background=null);else if(i){var r=An(t);t.background=r.insertBefore(Y("div",null,i),r.firstChild),e.display.input.setUneditable(t.background)}}function Ql(e,t){var i=e.display.externalMeasured;return i&&i.line==t.line?(e.display.externalMeasured=null,t.measure=i.measure,i.built):Wl(e,t)}function $g(e,t){var i=t.text.className,r=Ql(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,Xs(e,t)):i&&(t.text.className=i)}function Xs(e,t){Kg(e,t),t.line.wrapClass?An(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var i=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=i||""}function Yl(e,t,i,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var o=An(t);t.gutterBackground=Y("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),o.insertBefore(t.gutterBackground,t.text)}var l=t.line.gutterMarkers;if(e.options.lineNumbers||l){var p=An(t),c=t.gutter=Y("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(c.setAttribute("aria-hidden","true"),e.display.input.setUneditable(c),p.insertBefore(c,t.text),t.line.gutterClass&&(c.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!l||!l["CodeMirror-linenumbers"])&&(t.lineNumber=c.appendChild(Y("div",Ps(e.options,i),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),l)for(var d=0;d<e.display.gutterSpecs.length;++d){var E=e.display.gutterSpecs[d].className,N=l.hasOwnProperty(E)&&l[E];N&&c.appendChild(Y("div",[N],"CodeMirror-gutter-elt","left: "+r.gutterLeft[E]+"px; width: "+r.gutterWidth[E]+"px"))}}}function eE(e,t,i){t.alignable&&(t.alignable=null);for(var r=te("CodeMirror-linewidget"),o=t.node.firstChild,l=void 0;o;o=l)l=o.nextSibling,r.test(o.className)&&t.node.removeChild(o);Xl(e,t,i)}function tE(e,t,i,r){var o=Ql(e,t);return t.text=t.node=o.pre,o.bgClass&&(t.bgClass=o.bgClass),o.textClass&&(t.textClass=o.textClass),Xs(e,t),Yl(e,t,i,r),Xl(e,t,r),t.node}function Xl(e,t,i){if(Jl(e,t.line,t,i,!0),t.rest)for(var r=0;r<t.rest.length;r++)Jl(e,t.rest[r],t,i,!1)}function Jl(e,t,i,r,o){if(t.widgets)for(var l=An(i),p=0,c=t.widgets;p<c.length;++p){var d=c[p],E=Y("div",[d.node],"CodeMirror-linewidget"+(d.className?" "+d.className:""));d.handleMouseEvents||E.setAttribute("cm-ignore-events","true"),rE(d,E,i,r),e.display.input.setUneditable(E),o&&d.above?l.insertBefore(E,i.gutter||i.text):l.appendChild(E),nt(d,"redraw")}}function rE(e,t,i,r){if(e.noHScroll){(i.alignable||(i.alignable=[])).push(t);var o=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(o-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=o+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Sn(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!et(document.body,e.node)){var i="position: relative;";e.coverGutter&&(i+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(i+="width: "+t.display.wrapper.clientWidth+"px;"),me(t.display.measure,Y("div",[e.node],null,i))}return e.height=e.node.parentNode.offsetHeight}function Ar(e,t){for(var i=Ai(t);i!=e.wrapper;i=i.parentNode)if(!i||i.nodeType==1&&i.getAttribute("cm-ignore-events")=="true"||i.parentNode==e.sizer&&i!=e.mover)return!0}function Ro(e){return e.lineSpace.offsetTop}function Js(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function jl(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=me(e.measure,Y("pre","x","CodeMirror-line-like")),i=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(i.paddingLeft),right:parseInt(i.paddingRight)};return!isNaN(r.left)&&!isNaN(r.right)&&(e.cachedPaddingH=r),r}function gr(e){return Jt-e.display.nativeBarWidth}function ni(e){return e.display.scroller.clientWidth-gr(e)-e.display.barWidth}function js(e){return e.display.scroller.clientHeight-gr(e)-e.display.barHeight}function iE(e,t,i){var r=e.options.lineWrapping,o=r&&ni(e);if(!t.measure.heights||r&&t.measure.width!=o){var l=t.measure.heights=[];if(r){t.measure.width=o;for(var p=t.text.firstChild.getClientRects(),c=0;c<p.length-1;c++){var d=p[c],E=p[c+1];Math.abs(d.bottom-E.bottom)>2&&l.push((d.bottom+E.top)/2-i.top)}}l.push(i.bottom-i.top)}}function zl(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var o=0;o<e.rest.length;o++)if(pe(e.rest[o])>i)return{map:e.measure.maps[o],cache:e.measure.caches[o],before:!0}}}function nE(e,t){t=ir(t);var i=pe(t),r=e.display.externalMeasured=new Zl(e.doc,t,i);r.lineN=i;var o=r.built=Wl(e,r);return r.text=o.pre,me(e.display.lineMeasure,o.pre),r}function ql(e,t,i,r){return Er(e,Fi(e,t),i,r)}function zs(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[ai(e,t)];var i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size)return i}function Fi(e,t){var i=pe(t),r=zs(e,i);r&&!r.text?r=null:r&&r.changes&&(Hl(e,r,i,ta(e)),e.curOp.forceUpdate=!0),r||(r=nE(e,t));var o=zl(r,t,i);return{line:t,view:r,rect:null,map:o.map,cache:o.cache,before:o.before,hasHeights:!1}}function Er(e,t,i,r,o){t.before&&(i=-1);var l=i+(r||""),p;return t.cache.hasOwnProperty(l)?p=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(iE(e,t.view,t.rect),t.hasHeights=!0),p=sE(e,t,i,r),p.bogus||(t.cache[l]=p)),{left:p.left,right:p.right,top:o?p.rtop:p.top,bottom:o?p.rbottom:p.bottom}}var Kl={left:0,right:0,top:0,bottom:0};function $l(e,t,i){for(var r,o,l,p,c,d,E=0;E<e.length;E+=3)if(c=e[E],d=e[E+1],t<c?(o=0,l=1,p="left"):t<d?(o=t-c,l=o+1):(E==e.length-3||t==d&&e[E+3]>t)&&(l=d-c,o=l-1,t>=d&&(p="right")),o!=null){if(r=e[E+2],c==d&&i==(r.insertLeft?"left":"right")&&(p=i),i=="left"&&o==0)for(;E&&e[E-2]==e[E-3]&&e[E-1].insertLeft;)r=e[(E-=3)+2],p="left";if(i=="right"&&o==d-c)for(;E<e.length-3&&e[E+3]==e[E+4]&&!e[E+5].insertLeft;)r=e[(E+=3)+2],p="right";break}return{node:r,start:o,end:l,collapse:p,coverStart:c,coverEnd:d}}function oE(e,t){var i=Kl;if(t=="left")for(var r=0;r<e.length&&(i=e[r]).left==i.right;r++);else for(var o=e.length-1;o>=0&&(i=e[o]).left==i.right;o--);return i}function sE(e,t,i,r){var o=$l(t.map,i,r),l=o.node,p=o.start,c=o.end,d=o.collapse,E;if(l.nodeType==3){for(var N=0;N<4;N++){for(;p&&qt(t.line.text.charAt(o.coverStart+p));)--p;for(;o.coverStart+c<o.coverEnd&&qt(t.line.text.charAt(o.coverStart+c));)++c;if(m&&I<9&&p==0&&c==o.coverEnd-o.coverStart?E=l.parentNode.getBoundingClientRect():E=oE(Be(l,p,c).getClientRects(),r),E.left||E.right||p==0)break;c=p,p=p-1,d="right"}m&&I<11&&(E=aE(e.display.measure,E))}else{p>0&&(d=r="right");var C;e.options.lineWrapping&&(C=l.getClientRects()).length>1?E=C[r=="right"?C.length-1:0]:E=l.getBoundingClientRect()}if(m&&I<9&&!p&&(!E||!E.left&&!E.right)){var G=l.parentNode.getClientRects()[0];G?E={left:G.left,right:G.left+Di(e.display),top:G.top,bottom:G.bottom}:E=Kl}for(var O=E.top-t.rect.top,P=E.bottom-t.rect.top,_=(O+P)/2,Z=t.view.measure.heights,X=0;X<Z.length-1&&!(_<Z[X]);X++);var z=X?Z[X-1]:0,J=Z[X],K={left:(d=="right"?E.right:E.left)-t.rect.left,right:(d=="left"?E.left:E.right)-t.rect.left,top:z,bottom:J};return!E.left&&!E.right&&(K.bogus=!0),e.options.singleCursorHeightPerLine||(K.rtop=O,K.rbottom=P),K}function aE(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!rr(e))return t;var i=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*i,right:t.right*i,top:t.top*r,bottom:t.bottom*r}}function eu(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function tu(e){e.display.externalMeasure=null,le(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)eu(e.display.view[t])}function Ln(e){tu(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function ru(e){return L&&v?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function iu(e){return L&&v?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function qs(e){var t=ir(e),i=t.widgets,r=0;if(i)for(var o=0;o<i.length;++o)i[o].above&&(r+=Sn(i[o]));return r}function yo(e,t,i,r,o){if(!o){var l=qs(t);i.top+=l,i.bottom+=l}if(r=="line")return i;r||(r="local");var p=Cr(t);if(r=="local"?p+=Ro(e.display):p-=e.display.viewOffset,r=="page"||r=="window"){var c=e.display.lineSpace.getBoundingClientRect();p+=c.top+(r=="window"?0:iu(Ce(e)));var d=c.left+(r=="window"?0:ru(Ce(e)));i.left+=d,i.right+=d}return i.top+=p,i.bottom+=p,i}function nu(e,t,i){if(i=="div")return t;var r=t.left,o=t.top;if(i=="page")r-=ru(Ce(e)),o-=iu(Ce(e));else if(i=="local"||!i){var l=e.display.sizer.getBoundingClientRect();r+=l.left,o+=l.top}var p=e.display.lineSpace.getBoundingClientRect();return{left:r-p.left,top:o-p.top}}function bo(e,t,i,r,o){return r||(r=q(e.doc,t.line)),yo(e,r,ql(e,r,t.ch,o),i)}function nr(e,t,i,r,o,l){r=r||q(e.doc,t.line),o||(o=Fi(e,r));function p(P,_){var Z=Er(e,o,P,_?"right":"left",l);return _?Z.left=Z.right:Z.right=Z.left,yo(e,r,Z,i)}var c=rt(r,e.doc.direction),d=t.ch,E=t.sticky;if(d>=r.text.length?(d=r.text.length,E="before"):d<=0&&(d=0,E="after"),!c)return p(E=="before"?d-1:d,E=="before");function N(P,_,Z){var X=c[_],z=X.level==1;return p(Z?P-1:P,z!=Z)}var C=pr(c,d,E),G=Br,O=N(d,C,E=="before");return G!=null&&(O.other=N(d,G,E!="before")),O}function ou(e,t){var i=0;t=fe(e.doc,t),e.options.lineWrapping||(i=Di(e.display)*t.ch);var r=q(e.doc,t.line),o=Cr(r)+Ro(e.display);return{left:i,right:i,top:o,bottom:o+r.height}}function Ks(e,t,i,r,o){var l=W(e,t,i);return l.xRel=o,r&&(l.outside=r),l}function $s(e,t,i){var r=e.doc;if(i+=e.display.viewOffset,i<0)return Ks(r.first,0,null,-1,-1);var o=dr(r,i),l=r.first+r.size-1;if(o>l)return Ks(r.first+r.size-1,q(r,l).text.length,null,1,1);t<0&&(t=0);for(var p=q(r,o);;){var c=lE(e,p,o,t,i),d=Mg(p,c.ch+(c.xRel>0||c.outside>0?1:0));if(!d)return c;var E=d.find(1);if(E.line==o)return E;p=q(r,o=E.line)}}function su(e,t,i,r){r-=qs(t);var o=t.text.length,l=Fr(function(p){return Er(e,i,p-1).bottom<=r},o,0);return o=Fr(function(p){return Er(e,i,p).top>r},l,o),{begin:l,end:o}}function au(e,t,i,r){i||(i=Fi(e,t));var o=yo(e,t,Er(e,i,r),"line").top;return su(e,t,i,o)}function ea(e,t,i,r){return e.bottom<=i?!1:e.top>i?!0:(r?e.left:e.right)>t}function lE(e,t,i,r,o){o-=Cr(t);var l=Fi(e,t),p=qs(t),c=0,d=t.text.length,E=!0,N=rt(t,e.doc.direction);if(N){var C=(e.options.lineWrapping?pE:uE)(e,t,i,l,N,r,o);E=C.level!=1,c=E?C.from:C.to-1,d=E?C.to:C.from-1}var G=null,O=null,P=Fr(function(ae){var ne=Er(e,l,ae);return ne.top+=p,ne.bottom+=p,ea(ne,r,o,!1)?(ne.top<=o&&ne.left<=r&&(G=ae,O=ne),!0):!1},c,d),_,Z,X=!1;if(O){var z=r-O.left<O.right-r,J=z==E;P=G+(J?0:1),Z=J?"after":"before",_=z?O.left:O.right}else{!E&&(P==d||P==c)&&P++,Z=P==0?"after":P==t.text.length?"before":Er(e,l,P-(E?1:0)).bottom+p<=o==E?"after":"before";var K=nr(e,W(i,P,Z),"line",t,l);_=K.left,X=o<K.top?-1:o>=K.bottom?1:0}return P=Kt(t.text,P,1),Ks(i,P,Z,X,r-_)}function uE(e,t,i,r,o,l,p){var c=Fr(function(C){var G=o[C],O=G.level!=1;return ea(nr(e,W(i,O?G.to:G.from,O?"before":"after"),"line",t,r),l,p,!0)},0,o.length-1),d=o[c];if(c>0){var E=d.level!=1,N=nr(e,W(i,E?d.from:d.to,E?"after":"before"),"line",t,r);ea(N,l,p,!0)&&N.top>p&&(d=o[c-1])}return d}function pE(e,t,i,r,o,l,p){var c=su(e,t,r,p),d=c.begin,E=c.end;/\s/.test(t.text.charAt(E-1))&&E--;for(var N=null,C=null,G=0;G<o.length;G++){var O=o[G];if(!(O.from>=E||O.to<=d)){var P=O.level!=1,_=Er(e,r,P?Math.min(E,O.to)-1:Math.max(d,O.from)).right,Z=_<l?l-_+1e9:_-l;(!N||C>Z)&&(N=O,C=Z)}}return N||(N=o[o.length-1]),N.from<d&&(N={from:d,to:N.to,level:N.level}),N.to>E&&(N={from:N.from,to:E,level:N.level}),N}var oi;function Bi(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(oi==null){oi=Y("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)oi.appendChild(document.createTextNode("x")),oi.appendChild(Y("br"));oi.appendChild(document.createTextNode("x"))}me(e.measure,oi);var i=oi.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),le(e.measure),i||1}function Di(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=Y("span","xxxxxxxxxx"),i=Y("pre",[t],"CodeMirror-line-like");me(e.measure,i);var r=t.getBoundingClientRect(),o=(r.right-r.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}function ta(e){for(var t=e.display,i={},r={},o=t.gutters.clientLeft,l=t.gutters.firstChild,p=0;l;l=l.nextSibling,++p){var c=e.display.gutterSpecs[p].className;i[c]=l.offsetLeft+l.clientLeft+o,r[c]=l.clientWidth}return{fixedPos:ra(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function ra(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function lu(e){var t=Bi(e.display),i=e.options.lineWrapping,r=i&&Math.max(5,e.display.scroller.clientWidth/Di(e.display)-3);return function(o){if(Pr(e.doc,o))return 0;var l=0;if(o.widgets)for(var p=0;p<o.widgets.length;p++)o.widgets[p].height&&(l+=o.widgets[p].height);return i?l+(Math.ceil(o.text.length/r)||1)*t:l+t}}function ia(e){var t=e.doc,i=lu(e);t.iter(function(r){var o=i(r);o!=r.height&&wt(r,o)})}function si(e,t,i,r){var o=e.display;if(!i&&Ai(t).getAttribute("cm-not-content")=="true")return null;var l,p,c=o.lineSpace.getBoundingClientRect();try{l=t.clientX-c.left,p=t.clientY-c.top}catch{return null}var d=$s(e,l,p),E;if(r&&d.xRel>0&&(E=q(e.doc,d.line).text).length==d.ch){var N=De(E,E.length,e.options.tabSize)-E.length;d=W(d.line,Math.max(0,Math.round((l-jl(e.display).left)/Di(e.display))-N))}return d}function ai(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var i=e.display.view,r=0;r<i.length;r++)if(t-=i[r].size,t<0)return r}function Lt(e,t,i,r){t==null&&(t=e.doc.first),i==null&&(i=e.doc.first+e.doc.size),r||(r=0);var o=e.display;if(r&&i<o.viewTo&&(o.updateLineNumbers==null||o.updateLineNumbers>t)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)Tr&&Hs(e.doc,t)<o.viewTo&&wr(e);else if(i<=o.viewFrom)Tr&&wl(e.doc,i+r)>o.viewFrom?wr(e):(o.viewFrom+=r,o.viewTo+=r);else if(t<=o.viewFrom&&i>=o.viewTo)wr(e);else if(t<=o.viewFrom){var l=Oo(e,i,i+r,1);l?(o.view=o.view.slice(l.index),o.viewFrom=l.lineN,o.viewTo+=r):wr(e)}else if(i>=o.viewTo){var p=Oo(e,t,t,-1);p?(o.view=o.view.slice(0,p.index),o.viewTo=p.lineN):wr(e)}else{var c=Oo(e,t,t,-1),d=Oo(e,i,i+r,1);c&&d?(o.view=o.view.slice(0,c.index).concat(Lo(e,c.lineN,d.lineN)).concat(o.view.slice(d.index)),o.viewTo+=r):wr(e)}var E=o.externalMeasured;E&&(i<E.lineN?E.lineN+=r:t<E.lineN+E.size&&(o.externalMeasured=null))}function Vr(e,t,i){e.curOp.viewChanged=!0;var r=e.display,o=e.display.externalMeasured;if(o&&t>=o.lineN&&t<o.lineN+o.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var l=r.view[ai(e,t)];if(l.node!=null){var p=l.changes||(l.changes=[]);Ge(p,i)==-1&&p.push(i)}}}function wr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Oo(e,t,i,r){var o=ai(e,t),l,p=e.display.view;if(!Tr||i==e.doc.first+e.doc.size)return{index:o,lineN:i};for(var c=e.display.viewFrom,d=0;d<o;d++)c+=p[d].size;if(c!=t){if(r>0){if(o==p.length-1)return null;l=c+p[o].size-t,o++}else l=c-t;t+=l,i+=l}for(;Hs(e.doc,i)!=i;){if(o==(r<0?0:p.length-1))return null;i+=r*p[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:i}}function cE(e,t,i){var r=e.display,o=r.view;o.length==0||t>=r.viewTo||i<=r.viewFrom?(r.view=Lo(e,t,i),r.viewFrom=t):(r.viewFrom>t?r.view=Lo(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(ai(e,t))),r.viewFrom=t,r.viewTo<i?r.view=r.view.concat(Lo(e,r.viewTo,i)):r.viewTo>i&&(r.view=r.view.slice(0,ai(e,i)))),r.viewTo=i}function uu(e){for(var t=e.display.view,i=0,r=0;r<t.length;r++){var o=t[r];!o.hidden&&(!o.node||o.changes)&&++i}return i}function Rn(e){e.display.input.showSelection(e.display.input.prepareSelection())}function pu(e,t){t===void 0&&(t=!0);var i=e.doc,r={},o=r.cursors=document.createDocumentFragment(),l=r.selection=document.createDocumentFragment(),p=e.options.$customCursor;p&&(t=!0);for(var c=0;c<i.sel.ranges.length;c++)if(!(!t&&c==i.sel.primIndex)){var d=i.sel.ranges[c];if(!(d.from().line>=e.display.viewTo||d.to().line<e.display.viewFrom)){var E=d.empty();if(p){var N=p(e,d);N&&na(e,N,o)}else(E||e.options.showCursorWhenSelecting)&&na(e,d.head,o);E||fE(e,d,l)}}return r}function na(e,t,i){var r=nr(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),o=i.appendChild(Y("div","\xA0","CodeMirror-cursor"));if(o.style.left=r.left+"px",o.style.top=r.top+"px",o.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var l=bo(e,t,"div",null,null),p=l.right-l.left;o.style.width=(p>0?p:e.defaultCharWidth())+"px"}if(r.other){var c=i.appendChild(Y("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));c.style.display="",c.style.left=r.other.left+"px",c.style.top=r.other.top+"px",c.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function Uo(e,t){return e.top-t.top||e.left-t.left}function fE(e,t,i){var r=e.display,o=e.doc,l=document.createDocumentFragment(),p=jl(e.display),c=p.left,d=Math.max(r.sizerWidth,ni(e)-r.sizer.offsetLeft)-p.right,E=o.direction=="ltr";function N(J,K,ae,ne){K<0&&(K=0),K=Math.round(K),ne=Math.round(ne),l.appendChild(Y("div",null,"CodeMirror-selected","position: absolute; left: "+J+`px;
|
|
4
|
+
`,t);o==-1&&(o=e.length);var l=e.slice(t,e.charAt(o-1)=="\r"?o-1:o),p=l.indexOf("\r");p!=-1?(i.push(l.slice(0,p)),t+=p+1):(i.push(l),t=o+1)}return i}:function(e){return e.split(/\r\n?|\n/)},go=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},In=function(){var e=Y("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),yi=null;function rr(e){if(yi!=null)return yi;var t=me(e,Y("span","x")),i=t.getBoundingClientRect(),r=Be(t,0,1).getBoundingClientRect();return yi=Math.abs(i.left-r.left)>1}var bi={},Nr={};function Eo(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),bi[e]=t}function mo(e,t){Nr[e]=t}function Oi(e){if(typeof e=="string"&&Nr.hasOwnProperty(e))e=Nr[e];else if(e&&typeof e.name=="string"&&Nr.hasOwnProperty(e.name)){var t=Nr[e.name];typeof t=="string"&&(t={name:t}),e=Ur(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Oi("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Oi("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function oe(e,t){t=Oi(t);var i=bi[t.name];if(!i)return oe(e,"text/plain");var r=i(e,t);if(b.hasOwnProperty(t.name)){var o=b[t.name];for(var l in o)o.hasOwnProperty(l)&&(r.hasOwnProperty(l)&&(r["_"+l]=r[l]),r[l]=o[l])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var p in t.modeProps)r[p]=t.modeProps[p];return r}var b={};function H(e,t){var i=b.hasOwnProperty(e)?b[e]:b[e]={};ze(t,i)}function ee(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var r in t){var o=t[r];o instanceof Array&&(o=o.concat([])),i[r]=o}return i}function Re(e,t){for(var i;e.innerMode&&(i=e.innerMode(t),!(!i||i.mode==e));)t=i.state,e=i.mode;return i||{mode:e,state:t}}function it(e,t,i){return e.startState?e.startState(t,i):!0}var ge=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};ge.prototype.eol=function(){return this.pos>=this.string.length},ge.prototype.sol=function(){return this.pos==this.lineStart},ge.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ge.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ge.prototype.eat=function(e){var t=this.string.charAt(this.pos),i;if(typeof e=="string"?i=t==e:i=t&&(e.test?e.test(t):e(t)),i)return++this.pos,t},ge.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},ge.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},ge.prototype.skipToEnd=function(){this.pos=this.string.length},ge.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},ge.prototype.backUp=function(e){this.pos-=e},ge.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=De(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?De(this.string,this.lineStart,this.tabSize):0)},ge.prototype.indentation=function(){return De(this.string,null,this.tabSize)-(this.lineStart?De(this.string,this.lineStart,this.tabSize):0)},ge.prototype.match=function(e,t,i){if(typeof e=="string"){var r=function(p){return i?p.toLowerCase():p},o=this.string.substr(this.pos,e.length);if(r(o)==r(e))return t!==!1&&(this.pos+=e.length),!0}else{var l=this.string.slice(this.pos).match(e);return l&&l.index>0?null:(l&&t!==!1&&(this.pos+=l[0].length),l)}},ge.prototype.current=function(){return this.string.slice(this.start,this.pos)},ge.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},ge.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},ge.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function q(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var r=0;;++r){var o=i.children[r],l=o.chunkSize();if(t<l){i=o;break}t-=l}return i.lines[t]}function gt(e,t,i){var r=[],o=t.line;return e.iter(t.line,i.line+1,function(l){var p=l.text;o==i.line&&(p=p.slice(0,i.ch)),o==t.line&&(p=p.slice(t.ch)),r.push(p),++o}),r}function fr(e,t,i){var r=[];return e.iter(t,i,function(o){r.push(o.text)}),r}function wt(e,t){var i=t-e.height;if(i)for(var r=e;r;r=r.parent)r.height+=i}function pe(e){if(e.parent==null)return null;for(var t=e.parent,i=Ue(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var o=0;r.children[o]!=t;++o)i+=r.children[o].chunkSize();return i+t.first}function dr(e,t){var i=e.first;e:do{for(var r=0;r<e.children.length;++r){var o=e.children[r],l=o.height;if(t<l){e=o;continue e}t-=l,i+=o.chunkSize()}return i}while(!e.lines);for(var p=0;p<e.lines.length;++p){var c=e.lines[p],d=c.height;if(t<d)break;t-=d}return i+p}function Mr(e,t){return t>=e.first&&t<e.first+e.size}function Ps(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function W(e,t,i){if(i===void 0&&(i=null),!(this instanceof W))return new W(e,t,i);this.line=e,this.ch=t,this.sticky=i}function ce(e,t){return e.line-t.line||e.ch-t.ch}function Vs(e,t){return e.sticky==t.sticky&&ce(e,t)==0}function ws(e){return W(e.line,e.ch)}function xo(e,t){return ce(e,t)<0?t:e}function vo(e,t){return ce(e,t)<0?e:t}function Al(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function fe(e,t){if(t.line<e.first)return W(e.first,0);var i=e.first+e.size-1;return t.line>i?W(i,q(e,i).text.length):Lg(t,q(e,t.line).text.length)}function Lg(e,t){var i=e.ch;return i==null||i>t?W(e.line,t):i<0?W(e.line,0):e}function Cl(e,t){for(var i=[],r=0;r<t.length;r++)i[r]=fe(e,t[r]);return i}var Io=function(e,t){this.state=e,this.lookAhead=t},hr=function(e,t,i,r){this.state=t,this.doc=e,this.line=i,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};hr.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},hr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},hr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},hr.fromSaved=function(e,t,i){return t instanceof Io?new hr(e,ee(e.mode,t.state),i,t.lookAhead):new hr(e,ee(e.mode,t),i)},hr.prototype.save=function(e){var t=e!==!1?ee(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Io(t,this.maxLookAhead):t};function Sl(e,t,i,r){var o=[e.state.modeGen],l={};Gl(e,t.text,e.doc.mode,i,function(E,N){return o.push(E,N)},l,r);for(var p=i.state,c=function(E){i.baseTokens=o;var N=e.state.overlays[E],A=1,U=0;i.state=!0,Gl(e,t.text,N.mode,i,function(O,P){for(var _=A;U<O;){var Z=o[A];Z>O&&o.splice(A,1,O,o[A+1],Z),A+=2,U=Math.min(O,Z)}if(P)if(N.opaque)o.splice(_,A-_,O,"overlay "+P),A=_+2;else for(;_<A;_+=2){var X=o[_+1];o[_+1]=(X?X+" ":"")+"overlay "+P}},l),i.state=p,i.baseTokens=null,i.baseTokenPos=1},d=0;d<e.state.overlays.length;++d)c(d);return{styles:o,classes:l.bgClass||l.textClass?l:null}}function Ll(e,t,i){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Nn(e,pe(t)),o=t.text.length>e.options.maxHighlightLength&&ee(e.doc.mode,r.state),l=Sl(e,t,r);o&&(r.state=o),t.stateAfter=r.save(!o),t.styles=l.styles,l.classes?t.styleClasses=l.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Nn(e,t,i){var r=e.doc,o=e.display;if(!r.mode.startState)return new hr(r,!0,t);var l=Rg(e,t,i),p=l>r.first&&q(r,l-1).stateAfter,c=p?hr.fromSaved(r,p,l):new hr(r,it(r.mode),l);return r.iter(l,t,function(d){_s(e,d.text,c);var E=c.line;d.stateAfter=E==t-1||E%5==0||E>=o.viewFrom&&E<o.viewTo?c.save():null,c.nextLine()}),i&&(r.modeFrontier=c.line),c}function _s(e,t,i,r){var o=e.doc.mode,l=new ge(t,e.options.tabSize,i);for(l.start=l.pos=r||0,t==""&&Rl(o,i.state);!l.eol();)Ws(o,l,i.state),l.start=l.pos}function Rl(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var i=Re(e,t);if(i.mode.blankLine)return i.mode.blankLine(i.state)}}function Ws(e,t,i,r){for(var o=0;o<10;o++){r&&(r[0]=Re(e,i).mode);var l=e.token(t,i);if(t.pos>t.start)return l}throw new Error("Mode "+e.name+" failed to advance stream.")}var yl=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function bl(e,t,i,r){var o=e.doc,l=o.mode,p;t=fe(o,t);var c=q(o,t.line),d=Nn(e,t.line,i),E=new ge(c.text,e.options.tabSize,d),N;for(r&&(N=[]);(r||E.pos<t.ch)&&!E.eol();)E.start=E.pos,p=Ws(l,E,d.state),r&&N.push(new yl(E,p,ee(o.mode,d.state)));return r?N:new yl(E,p,d.state)}function Ol(e,t){if(e)for(;;){var i=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!i)break;e=e.slice(0,i.index)+e.slice(i.index+i[0].length);var r=i[1]?"bgClass":"textClass";t[r]==null?t[r]=i[2]:new RegExp("(?:^|\\s)"+i[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+i[2])}return e}function Gl(e,t,i,r,o,l,p){var c=i.flattenSpans;c==null&&(c=e.options.flattenSpans);var d=0,E=null,N=new ge(t,e.options.tabSize,r),A,U=e.options.addModeClass&&[null];for(t==""&&Ol(Rl(i,r.state),l);!N.eol();){if(N.pos>e.options.maxHighlightLength?(c=!1,p&&_s(e,t,r,N.pos),N.pos=t.length,A=null):A=Ol(Ws(i,N,r.state,U),l),U){var O=U[0].name;O&&(A="m-"+(A?O+" "+A:O))}if(!c||E!=A){for(;d<N.start;)d=Math.min(N.start,d+5e3),o(d,E);E=A}N.start=N.pos}for(;d<N.pos;){var P=Math.min(N.pos,d+5e3);o(P,E),d=P}}function Rg(e,t,i){for(var r,o,l=e.doc,p=i?-1:t-(e.doc.mode.innerMode?1e3:100),c=t;c>p;--c){if(c<=l.first)return l.first;var d=q(l,c-1),E=d.stateAfter;if(E&&(!i||c+(E instanceof Io?E.lookAhead:0)<=l.modeFrontier))return c;var N=De(d.text,null,e.options.tabSize);(o==null||r>N)&&(o=c-1,r=N)}return o}function yg(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var i=e.first,r=t-1;r>i;r--){var o=q(e,r).stateAfter;if(o&&(!(o instanceof Io)||r+o.lookAhead<t)){i=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,i)}}var Ul=!1,Tr=!1;function bg(){Ul=!0}function Og(){Tr=!0}function No(e,t,i){this.marker=e,this.from=t,this.to=i}function Tn(e,t){if(e)for(var i=0;i<e.length;++i){var r=e[i];if(r.marker==t)return r}}function Gg(e,t){for(var i,r=0;r<e.length;++r)e[r]!=t&&(i||(i=[])).push(e[r]);return i}function Ug(e,t,i){var r=i&&window.WeakSet&&(i.markedSpans||(i.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function Fg(e,t,i){var r;if(e)for(var o=0;o<e.length;++o){var l=e[o],p=l.marker,c=l.from==null||(p.inclusiveLeft?l.from<=t:l.from<t);if(c||l.from==t&&p.type=="bookmark"&&(!i||!l.marker.insertLeft)){var d=l.to==null||(p.inclusiveRight?l.to>=t:l.to>t);(r||(r=[])).push(new No(p,l.from,d?null:l.to))}}return r}function Bg(e,t,i){var r;if(e)for(var o=0;o<e.length;++o){var l=e[o],p=l.marker,c=l.to==null||(p.inclusiveRight?l.to>=t:l.to>t);if(c||l.from==t&&p.type=="bookmark"&&(!i||l.marker.insertLeft)){var d=l.from==null||(p.inclusiveLeft?l.from<=t:l.from<t);(r||(r=[])).push(new No(p,d?null:l.from-t,l.to==null?null:l.to-t))}}return r}function ks(e,t){if(t.full)return null;var i=Mr(e,t.from.line)&&q(e,t.from.line).markedSpans,r=Mr(e,t.to.line)&&q(e,t.to.line).markedSpans;if(!i&&!r)return null;var o=t.from.ch,l=t.to.ch,p=ce(t.from,t.to)==0,c=Fg(i,o,p),d=Bg(r,l,p),E=t.text.length==1,N=$(t.text).length+(E?o:0);if(c)for(var A=0;A<c.length;++A){var U=c[A];if(U.to==null){var O=Tn(d,U.marker);O?E&&(U.to=O.to==null?null:O.to+N):U.to=o}}if(d)for(var P=0;P<d.length;++P){var _=d[P];if(_.to!=null&&(_.to+=N),_.from==null){var Z=Tn(c,_.marker);Z||(_.from=N,E&&(c||(c=[])).push(_))}else _.from+=N,E&&(c||(c=[])).push(_)}c&&(c=Fl(c)),d&&d!=c&&(d=Fl(d));var X=[c];if(!E){var z=t.text.length-2,J;if(z>0&&c)for(var K=0;K<c.length;++K)c[K].to==null&&(J||(J=[])).push(new No(c[K].marker,null,null));for(var ae=0;ae<z;++ae)X.push(J);X.push(d)}return X}function Fl(e){for(var t=0;t<e.length;++t){var i=e[t];i.from!=null&&i.from==i.to&&i.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function Dg(e,t,i){var r=null;if(e.iter(t.line,i.line+1,function(O){if(O.markedSpans)for(var P=0;P<O.markedSpans.length;++P){var _=O.markedSpans[P].marker;_.readOnly&&(!r||Ue(r,_)==-1)&&(r||(r=[])).push(_)}}),!r)return null;for(var o=[{from:t,to:i}],l=0;l<r.length;++l)for(var p=r[l],c=p.find(0),d=0;d<o.length;++d){var E=o[d];if(!(ce(E.to,c.from)<0||ce(E.from,c.to)>0)){var N=[d,1],A=ce(E.from,c.from),U=ce(E.to,c.to);(A<0||!p.inclusiveLeft&&!A)&&N.push({from:E.from,to:c.from}),(U>0||!p.inclusiveRight&&!U)&&N.push({from:c.to,to:E.to}),o.splice.apply(o,N),d+=N.length-3}}return o}function Bl(e){var t=e.markedSpans;if(t){for(var i=0;i<t.length;++i)t[i].marker.detachLine(e);e.markedSpans=null}}function Dl(e,t){if(t){for(var i=0;i<t.length;++i)t[i].marker.attachLine(e);e.markedSpans=t}}function To(e){return e.inclusiveLeft?-1:0}function Ao(e){return e.inclusiveRight?1:0}function Zs(e,t){var i=e.lines.length-t.lines.length;if(i!=0)return i;var r=e.find(),o=t.find(),l=ce(r.from,o.from)||To(e)-To(t);if(l)return-l;var p=ce(r.to,o.to)||Ao(e)-Ao(t);return p||t.id-e.id}function Ml(e,t){var i=Tr&&e.markedSpans,r;if(i)for(var o=void 0,l=0;l<i.length;++l)o=i[l],o.marker.collapsed&&(t?o.from:o.to)==null&&(!r||Zs(r,o.marker)<0)&&(r=o.marker);return r}function Pl(e){return Ml(e,!0)}function Co(e){return Ml(e,!1)}function Mg(e,t){var i=Tr&&e.markedSpans,r;if(i)for(var o=0;o<i.length;++o){var l=i[o];l.marker.collapsed&&(l.from==null||l.from<t)&&(l.to==null||l.to>t)&&(!r||Zs(r,l.marker)<0)&&(r=l.marker)}return r}function Vl(e,t,i,r,o){var l=q(e,t),p=Tr&&l.markedSpans;if(p)for(var c=0;c<p.length;++c){var d=p[c];if(d.marker.collapsed){var E=d.marker.find(0),N=ce(E.from,i)||To(d.marker)-To(o),A=ce(E.to,r)||Ao(d.marker)-Ao(o);if(!(N>=0&&A<=0||N<=0&&A>=0)&&(N<=0&&(d.marker.inclusiveRight&&o.inclusiveLeft?ce(E.to,i)>=0:ce(E.to,i)>0)||N>=0&&(d.marker.inclusiveRight&&o.inclusiveLeft?ce(E.from,r)<=0:ce(E.from,r)<0)))return!0}}}function ir(e){for(var t;t=Pl(e);)e=t.find(-1,!0).line;return e}function Pg(e){for(var t;t=Co(e);)e=t.find(1,!0).line;return e}function Vg(e){for(var t,i;t=Co(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function Hs(e,t){var i=q(e,t),r=ir(i);return i==r?t:pe(r)}function wl(e,t){if(t>e.lastLine())return t;var i=q(e,t),r;if(!Pr(e,i))return t;for(;r=Co(i);)i=r.find(1,!0).line;return pe(i)+1}function Pr(e,t){var i=Tr&&t.markedSpans;if(i){for(var r=void 0,o=0;o<i.length;++o)if(r=i[o],!!r.marker.collapsed){if(r.from==null)return!0;if(!r.marker.widgetNode&&r.from==0&&r.marker.inclusiveLeft&&Qs(e,t,r))return!0}}}function Qs(e,t,i){if(i.to==null){var r=i.marker.find(1,!0);return Qs(e,r.line,Tn(r.line.markedSpans,i.marker))}if(i.marker.inclusiveRight&&i.to==t.text.length)return!0;for(var o=void 0,l=0;l<t.markedSpans.length;++l)if(o=t.markedSpans[l],o.marker.collapsed&&!o.marker.widgetNode&&o.from==i.to&&(o.to==null||o.to!=i.from)&&(o.marker.inclusiveLeft||i.marker.inclusiveRight)&&Qs(e,t,o))return!0}function Ar(e){e=ir(e);for(var t=0,i=e.parent,r=0;r<i.lines.length;++r){var o=i.lines[r];if(o==e)break;t+=o.height}for(var l=i.parent;l;i=l,l=i.parent)for(var p=0;p<l.children.length;++p){var c=l.children[p];if(c==i)break;t+=c.height}return t}function So(e){if(e.height==0)return 0;for(var t=e.text.length,i,r=e;i=Pl(r);){var o=i.find(0,!0);r=o.from.line,t+=o.from.ch-o.to.ch}for(r=e;i=Co(r);){var l=i.find(0,!0);t-=r.text.length-l.from.ch,r=l.to.line,t+=r.text.length-l.to.ch}return t}function Ys(e){var t=e.display,i=e.doc;t.maxLine=q(i,i.first),t.maxLineLength=So(t.maxLine),t.maxLineChanged=!0,i.iter(function(r){var o=So(r);o>t.maxLineLength&&(t.maxLineLength=o,t.maxLine=r)})}var Gi=function(e,t,i){this.text=e,Dl(this,t),this.height=i?i(this):1};Gi.prototype.lineNo=function(){return pe(this)},Dr(Gi);function wg(e,t,i,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Bl(e),Dl(e,i);var o=r?r(e):1;o!=e.height&&wt(e,o)}function _g(e){e.parent=null,Bl(e)}var Wg={},kg={};function _l(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?kg:Wg;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function Wl(e,t){var i=Oe("span",null,null,T?"padding-right: .1px":null),r={pre:Oe("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var l=o?t.rest[o-1]:t.line,p=void 0;r.pos=0,r.addToken=Hg,Ir(e.display.measure)&&(p=rt(l,e.doc.direction))&&(r.addToken=Yg(r.addToken,p)),r.map=[];var c=t!=e.display.externalMeasured&&pe(l);Xg(l,r,Ll(e,l,c)),l.styleClasses&&(l.styleClasses.bgClass&&(r.bgClass=Tt(l.styleClasses.bgClass,r.bgClass||"")),l.styleClasses.textClass&&(r.textClass=Tt(l.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(Ms(e.display.measure))),o==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(T){var d=r.content.lastChild;(/\bcm-tab\b/.test(d.className)||d.querySelector&&d.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return Fe(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=Tt(r.pre.className,r.textClass||"")),r}function Zg(e){var t=Y("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Hg(e,t,i,r,o,l,p){if(t){var c=e.splitSpaces?Qg(t,e.trailingSpace):t,d=e.cm.state.specialChars,E=!1,N;if(!d.test(t))e.col+=t.length,N=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,N),m&&I<9&&(E=!0),e.pos+=t.length;else{N=document.createDocumentFragment();for(var A=0;;){d.lastIndex=A;var U=d.exec(t),O=U?U.index-A:t.length-A;if(O){var P=document.createTextNode(c.slice(A,A+O));m&&I<9?N.appendChild(Y("span",[P])):N.appendChild(P),e.map.push(e.pos,e.pos+O,P),e.col+=O,e.pos+=O}if(!U)break;A+=O+1;var _=void 0;if(U[0]==" "){var Z=e.cm.options.tabSize,X=Z-e.col%Z;_=N.appendChild(Y("span",jt(X),"cm-tab")),_.setAttribute("role","presentation"),_.setAttribute("cm-text"," "),e.col+=X}else U[0]=="\r"||U[0]==`
|
|
5
|
+
`?(_=N.appendChild(Y("span",U[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),_.setAttribute("cm-text",U[0]),e.col+=1):(_=e.cm.options.specialCharPlaceholder(U[0]),_.setAttribute("cm-text",U[0]),m&&I<9?N.appendChild(Y("span",[_])):N.appendChild(_),e.col+=1);e.map.push(e.pos,e.pos+1,_),e.pos++}}if(e.trailingSpace=c.charCodeAt(t.length-1)==32,i||r||o||E||l||p){var z=i||"";r&&(z+=r),o&&(z+=o);var J=Y("span",[N],z,l);if(p)for(var K in p)p.hasOwnProperty(K)&&K!="style"&&K!="class"&&J.setAttribute(K,p[K]);return e.content.appendChild(J)}e.content.appendChild(N)}}function Qg(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,r="",o=0;o<e.length;o++){var l=e.charAt(o);l==" "&&i&&(o==e.length-1||e.charCodeAt(o+1)==32)&&(l="\xA0"),r+=l,i=l==" "}return r}function Yg(e,t){return function(i,r,o,l,p,c,d){o=o?o+" cm-force-border":"cm-force-border";for(var E=i.pos,N=E+r.length;;){for(var A=void 0,U=0;U<t.length&&(A=t[U],!(A.to>E&&A.from<=E));U++);if(A.to>=N)return e(i,r,o,l,p,c,d);e(i,r.slice(0,A.to-E),o,l,null,c,d),l=null,r=r.slice(A.to-E),E=A.to}}}function kl(e,t,i,r){var o=!r&&i.widgetNode;o&&e.map.push(e.pos,e.pos+t,o),!r&&e.cm.display.input.needsContentAttribute&&(o||(o=e.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",i.id)),o&&(e.cm.display.input.setUneditable(o),e.content.appendChild(o)),e.pos+=t,e.trailingSpace=!1}function Xg(e,t,i){var r=e.markedSpans,o=e.text,l=0;if(!r){for(var p=1;p<i.length;p+=2)t.addToken(t,o.slice(l,l=i[p]),_l(i[p+1],t.cm.options));return}for(var c=o.length,d=0,E=1,N="",A,U,O=0,P,_,Z,X,z;;){if(O==d){P=_=Z=U="",z=null,X=null,O=1/0;for(var J=[],K=void 0,ae=0;ae<r.length;++ae){var ne=r[ae],Ee=ne.marker;if(Ee.type=="bookmark"&&ne.from==d&&Ee.widgetNode)J.push(Ee);else if(ne.from<=d&&(ne.to==null||ne.to>d||Ee.collapsed&&ne.to==d&&ne.from==d)){if(ne.to!=null&&ne.to!=d&&O>ne.to&&(O=ne.to,_=""),Ee.className&&(P+=" "+Ee.className),Ee.css&&(U=(U?U+";":"")+Ee.css),Ee.startStyle&&ne.from==d&&(Z+=" "+Ee.startStyle),Ee.endStyle&&ne.to==O&&(K||(K=[])).push(Ee.endStyle,ne.to),Ee.title&&((z||(z={})).title=Ee.title),Ee.attributes)for(var ye in Ee.attributes)(z||(z={}))[ye]=Ee.attributes[ye];Ee.collapsed&&(!X||Zs(X.marker,Ee)<0)&&(X=ne)}else ne.from>d&&O>ne.from&&(O=ne.from)}if(K)for(var at=0;at<K.length;at+=2)K[at+1]==O&&(_+=" "+K[at]);if(!X||X.from==d)for(var we=0;we<J.length;++we)kl(t,0,J[we]);if(X&&(X.from||0)==d){if(kl(t,(X.to==null?c+1:X.to)-d,X.marker,X.from==null),X.to==null)return;X.to==d&&(X=!1)}}if(d>=c)break;for(var Wt=Math.min(c,O);;){if(N){var yt=d+N.length;if(!X){var Xe=yt>Wt?N.slice(0,Wt-d):N;t.addToken(t,Xe,A?A+P:P,Z,d+Xe.length==O?_:"",U,z)}if(yt>=Wt){N=N.slice(Wt-d),d=Wt;break}d=yt,Z=""}N=o.slice(l,l=i[E++]),A=_l(i[E++],t.cm.options)}}}function Zl(e,t,i){this.line=t,this.rest=Vg(t),this.size=this.rest?pe($(this.rest))-i+1:1,this.node=this.text=null,this.hidden=Pr(e,t)}function Lo(e,t,i){for(var r=[],o,l=t;l<i;l=o){var p=new Zl(e.doc,q(e.doc,l),l);o=l+p.size,r.push(p)}return r}var Ui=null;function Jg(e){Ui?Ui.ops.push(e):e.ownsGroup=Ui={ops:[e],delayedCallbacks:[]}}function jg(e){var t=e.delayedCallbacks,i=0;do{for(;i<t.length;i++)t[i].call(null);for(var r=0;r<e.ops.length;r++){var o=e.ops[r];if(o.cursorActivityHandlers)for(;o.cursorActivityCalled<o.cursorActivityHandlers.length;)o.cursorActivityHandlers[o.cursorActivityCalled++].call(null,o.cm)}}while(i<t.length)}function zg(e,t){var i=e.ownsGroup;if(i)try{jg(i)}finally{Ui=null,t(i)}}var An=null;function nt(e,t){var i=ri(e,t);if(i.length){var r=Array.prototype.slice.call(arguments,2),o;Ui?o=Ui.delayedCallbacks:An?o=An:(o=An=[],setTimeout(qg,0));for(var l=function(c){o.push(function(){return i[c].apply(null,r)})},p=0;p<i.length;++p)l(p)}}function qg(){var e=An;An=null;for(var t=0;t<e.length;++t)e[t]()}function Hl(e,t,i,r){for(var o=0;o<t.changes.length;o++){var l=t.changes[o];l=="text"?$g(e,t):l=="gutter"?Yl(e,t,i,r):l=="class"?Xs(e,t):l=="widget"&&eE(e,t,r)}t.changes=null}function Cn(e){return e.node==e.text&&(e.node=Y("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),m&&I<8&&(e.node.style.zIndex=2)),e.node}function Kg(e,t){var i=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(i&&(i+=" CodeMirror-linebackground"),t.background)i?t.background.className=i:(t.background.parentNode.removeChild(t.background),t.background=null);else if(i){var r=Cn(t);t.background=r.insertBefore(Y("div",null,i),r.firstChild),e.display.input.setUneditable(t.background)}}function Ql(e,t){var i=e.display.externalMeasured;return i&&i.line==t.line?(e.display.externalMeasured=null,t.measure=i.measure,i.built):Wl(e,t)}function $g(e,t){var i=t.text.className,r=Ql(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,Xs(e,t)):i&&(t.text.className=i)}function Xs(e,t){Kg(e,t),t.line.wrapClass?Cn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var i=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=i||""}function Yl(e,t,i,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var o=Cn(t);t.gutterBackground=Y("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),o.insertBefore(t.gutterBackground,t.text)}var l=t.line.gutterMarkers;if(e.options.lineNumbers||l){var p=Cn(t),c=t.gutter=Y("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(c.setAttribute("aria-hidden","true"),e.display.input.setUneditable(c),p.insertBefore(c,t.text),t.line.gutterClass&&(c.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!l||!l["CodeMirror-linenumbers"])&&(t.lineNumber=c.appendChild(Y("div",Ps(e.options,i),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),l)for(var d=0;d<e.display.gutterSpecs.length;++d){var E=e.display.gutterSpecs[d].className,N=l.hasOwnProperty(E)&&l[E];N&&c.appendChild(Y("div",[N],"CodeMirror-gutter-elt","left: "+r.gutterLeft[E]+"px; width: "+r.gutterWidth[E]+"px"))}}}function eE(e,t,i){t.alignable&&(t.alignable=null);for(var r=te("CodeMirror-linewidget"),o=t.node.firstChild,l=void 0;o;o=l)l=o.nextSibling,r.test(o.className)&&t.node.removeChild(o);Xl(e,t,i)}function tE(e,t,i,r){var o=Ql(e,t);return t.text=t.node=o.pre,o.bgClass&&(t.bgClass=o.bgClass),o.textClass&&(t.textClass=o.textClass),Xs(e,t),Yl(e,t,i,r),Xl(e,t,r),t.node}function Xl(e,t,i){if(Jl(e,t.line,t,i,!0),t.rest)for(var r=0;r<t.rest.length;r++)Jl(e,t.rest[r],t,i,!1)}function Jl(e,t,i,r,o){if(t.widgets)for(var l=Cn(i),p=0,c=t.widgets;p<c.length;++p){var d=c[p],E=Y("div",[d.node],"CodeMirror-linewidget"+(d.className?" "+d.className:""));d.handleMouseEvents||E.setAttribute("cm-ignore-events","true"),rE(d,E,i,r),e.display.input.setUneditable(E),o&&d.above?l.insertBefore(E,i.gutter||i.text):l.appendChild(E),nt(d,"redraw")}}function rE(e,t,i,r){if(e.noHScroll){(i.alignable||(i.alignable=[])).push(t);var o=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(o-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=o+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Sn(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!et(document.body,e.node)){var i="position: relative;";e.coverGutter&&(i+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(i+="width: "+t.display.wrapper.clientWidth+"px;"),me(t.display.measure,Y("div",[e.node],null,i))}return e.height=e.node.parentNode.offsetHeight}function Cr(e,t){for(var i=Ci(t);i!=e.wrapper;i=i.parentNode)if(!i||i.nodeType==1&&i.getAttribute("cm-ignore-events")=="true"||i.parentNode==e.sizer&&i!=e.mover)return!0}function Ro(e){return e.lineSpace.offsetTop}function Js(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function jl(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=me(e.measure,Y("pre","x","CodeMirror-line-like")),i=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(i.paddingLeft),right:parseInt(i.paddingRight)};return!isNaN(r.left)&&!isNaN(r.right)&&(e.cachedPaddingH=r),r}function gr(e){return Jt-e.display.nativeBarWidth}function ni(e){return e.display.scroller.clientWidth-gr(e)-e.display.barWidth}function js(e){return e.display.scroller.clientHeight-gr(e)-e.display.barHeight}function iE(e,t,i){var r=e.options.lineWrapping,o=r&&ni(e);if(!t.measure.heights||r&&t.measure.width!=o){var l=t.measure.heights=[];if(r){t.measure.width=o;for(var p=t.text.firstChild.getClientRects(),c=0;c<p.length-1;c++){var d=p[c],E=p[c+1];Math.abs(d.bottom-E.bottom)>2&&l.push((d.bottom+E.top)/2-i.top)}}l.push(i.bottom-i.top)}}function zl(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var o=0;o<e.rest.length;o++)if(pe(e.rest[o])>i)return{map:e.measure.maps[o],cache:e.measure.caches[o],before:!0}}}function nE(e,t){t=ir(t);var i=pe(t),r=e.display.externalMeasured=new Zl(e.doc,t,i);r.lineN=i;var o=r.built=Wl(e,r);return r.text=o.pre,me(e.display.lineMeasure,o.pre),r}function ql(e,t,i,r){return Er(e,Fi(e,t),i,r)}function zs(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[ai(e,t)];var i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size)return i}function Fi(e,t){var i=pe(t),r=zs(e,i);r&&!r.text?r=null:r&&r.changes&&(Hl(e,r,i,ta(e)),e.curOp.forceUpdate=!0),r||(r=nE(e,t));var o=zl(r,t,i);return{line:t,view:r,rect:null,map:o.map,cache:o.cache,before:o.before,hasHeights:!1}}function Er(e,t,i,r,o){t.before&&(i=-1);var l=i+(r||""),p;return t.cache.hasOwnProperty(l)?p=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(iE(e,t.view,t.rect),t.hasHeights=!0),p=sE(e,t,i,r),p.bogus||(t.cache[l]=p)),{left:p.left,right:p.right,top:o?p.rtop:p.top,bottom:o?p.rbottom:p.bottom}}var Kl={left:0,right:0,top:0,bottom:0};function $l(e,t,i){for(var r,o,l,p,c,d,E=0;E<e.length;E+=3)if(c=e[E],d=e[E+1],t<c?(o=0,l=1,p="left"):t<d?(o=t-c,l=o+1):(E==e.length-3||t==d&&e[E+3]>t)&&(l=d-c,o=l-1,t>=d&&(p="right")),o!=null){if(r=e[E+2],c==d&&i==(r.insertLeft?"left":"right")&&(p=i),i=="left"&&o==0)for(;E&&e[E-2]==e[E-3]&&e[E-1].insertLeft;)r=e[(E-=3)+2],p="left";if(i=="right"&&o==d-c)for(;E<e.length-3&&e[E+3]==e[E+4]&&!e[E+5].insertLeft;)r=e[(E+=3)+2],p="right";break}return{node:r,start:o,end:l,collapse:p,coverStart:c,coverEnd:d}}function oE(e,t){var i=Kl;if(t=="left")for(var r=0;r<e.length&&(i=e[r]).left==i.right;r++);else for(var o=e.length-1;o>=0&&(i=e[o]).left==i.right;o--);return i}function sE(e,t,i,r){var o=$l(t.map,i,r),l=o.node,p=o.start,c=o.end,d=o.collapse,E;if(l.nodeType==3){for(var N=0;N<4;N++){for(;p&&qt(t.line.text.charAt(o.coverStart+p));)--p;for(;o.coverStart+c<o.coverEnd&&qt(t.line.text.charAt(o.coverStart+c));)++c;if(m&&I<9&&p==0&&c==o.coverEnd-o.coverStart?E=l.parentNode.getBoundingClientRect():E=oE(Be(l,p,c).getClientRects(),r),E.left||E.right||p==0)break;c=p,p=p-1,d="right"}m&&I<11&&(E=aE(e.display.measure,E))}else{p>0&&(d=r="right");var A;e.options.lineWrapping&&(A=l.getClientRects()).length>1?E=A[r=="right"?A.length-1:0]:E=l.getBoundingClientRect()}if(m&&I<9&&!p&&(!E||!E.left&&!E.right)){var U=l.parentNode.getClientRects()[0];U?E={left:U.left,right:U.left+Di(e.display),top:U.top,bottom:U.bottom}:E=Kl}for(var O=E.top-t.rect.top,P=E.bottom-t.rect.top,_=(O+P)/2,Z=t.view.measure.heights,X=0;X<Z.length-1&&!(_<Z[X]);X++);var z=X?Z[X-1]:0,J=Z[X],K={left:(d=="right"?E.right:E.left)-t.rect.left,right:(d=="left"?E.left:E.right)-t.rect.left,top:z,bottom:J};return!E.left&&!E.right&&(K.bogus=!0),e.options.singleCursorHeightPerLine||(K.rtop=O,K.rbottom=P),K}function aE(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!rr(e))return t;var i=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*i,right:t.right*i,top:t.top*r,bottom:t.bottom*r}}function eu(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function tu(e){e.display.externalMeasure=null,le(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)eu(e.display.view[t])}function Ln(e){tu(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function ru(e){return L&&v?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function iu(e){return L&&v?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function qs(e){var t=ir(e),i=t.widgets,r=0;if(i)for(var o=0;o<i.length;++o)i[o].above&&(r+=Sn(i[o]));return r}function yo(e,t,i,r,o){if(!o){var l=qs(t);i.top+=l,i.bottom+=l}if(r=="line")return i;r||(r="local");var p=Ar(t);if(r=="local"?p+=Ro(e.display):p-=e.display.viewOffset,r=="page"||r=="window"){var c=e.display.lineSpace.getBoundingClientRect();p+=c.top+(r=="window"?0:iu(Ae(e)));var d=c.left+(r=="window"?0:ru(Ae(e)));i.left+=d,i.right+=d}return i.top+=p,i.bottom+=p,i}function nu(e,t,i){if(i=="div")return t;var r=t.left,o=t.top;if(i=="page")r-=ru(Ae(e)),o-=iu(Ae(e));else if(i=="local"||!i){var l=e.display.sizer.getBoundingClientRect();r+=l.left,o+=l.top}var p=e.display.lineSpace.getBoundingClientRect();return{left:r-p.left,top:o-p.top}}function bo(e,t,i,r,o){return r||(r=q(e.doc,t.line)),yo(e,r,ql(e,r,t.ch,o),i)}function nr(e,t,i,r,o,l){r=r||q(e.doc,t.line),o||(o=Fi(e,r));function p(P,_){var Z=Er(e,o,P,_?"right":"left",l);return _?Z.left=Z.right:Z.right=Z.left,yo(e,r,Z,i)}var c=rt(r,e.doc.direction),d=t.ch,E=t.sticky;if(d>=r.text.length?(d=r.text.length,E="before"):d<=0&&(d=0,E="after"),!c)return p(E=="before"?d-1:d,E=="before");function N(P,_,Z){var X=c[_],z=X.level==1;return p(Z?P-1:P,z!=Z)}var A=pr(c,d,E),U=Br,O=N(d,A,E=="before");return U!=null&&(O.other=N(d,U,E!="before")),O}function ou(e,t){var i=0;t=fe(e.doc,t),e.options.lineWrapping||(i=Di(e.display)*t.ch);var r=q(e.doc,t.line),o=Ar(r)+Ro(e.display);return{left:i,right:i,top:o,bottom:o+r.height}}function Ks(e,t,i,r,o){var l=W(e,t,i);return l.xRel=o,r&&(l.outside=r),l}function $s(e,t,i){var r=e.doc;if(i+=e.display.viewOffset,i<0)return Ks(r.first,0,null,-1,-1);var o=dr(r,i),l=r.first+r.size-1;if(o>l)return Ks(r.first+r.size-1,q(r,l).text.length,null,1,1);t<0&&(t=0);for(var p=q(r,o);;){var c=lE(e,p,o,t,i),d=Mg(p,c.ch+(c.xRel>0||c.outside>0?1:0));if(!d)return c;var E=d.find(1);if(E.line==o)return E;p=q(r,o=E.line)}}function su(e,t,i,r){r-=qs(t);var o=t.text.length,l=Fr(function(p){return Er(e,i,p-1).bottom<=r},o,0);return o=Fr(function(p){return Er(e,i,p).top>r},l,o),{begin:l,end:o}}function au(e,t,i,r){i||(i=Fi(e,t));var o=yo(e,t,Er(e,i,r),"line").top;return su(e,t,i,o)}function ea(e,t,i,r){return e.bottom<=i?!1:e.top>i?!0:(r?e.left:e.right)>t}function lE(e,t,i,r,o){o-=Ar(t);var l=Fi(e,t),p=qs(t),c=0,d=t.text.length,E=!0,N=rt(t,e.doc.direction);if(N){var A=(e.options.lineWrapping?pE:uE)(e,t,i,l,N,r,o);E=A.level!=1,c=E?A.from:A.to-1,d=E?A.to:A.from-1}var U=null,O=null,P=Fr(function(ae){var ne=Er(e,l,ae);return ne.top+=p,ne.bottom+=p,ea(ne,r,o,!1)?(ne.top<=o&&ne.left<=r&&(U=ae,O=ne),!0):!1},c,d),_,Z,X=!1;if(O){var z=r-O.left<O.right-r,J=z==E;P=U+(J?0:1),Z=J?"after":"before",_=z?O.left:O.right}else{!E&&(P==d||P==c)&&P++,Z=P==0?"after":P==t.text.length?"before":Er(e,l,P-(E?1:0)).bottom+p<=o==E?"after":"before";var K=nr(e,W(i,P,Z),"line",t,l);_=K.left,X=o<K.top?-1:o>=K.bottom?1:0}return P=Kt(t.text,P,1),Ks(i,P,Z,X,r-_)}function uE(e,t,i,r,o,l,p){var c=Fr(function(A){var U=o[A],O=U.level!=1;return ea(nr(e,W(i,O?U.to:U.from,O?"before":"after"),"line",t,r),l,p,!0)},0,o.length-1),d=o[c];if(c>0){var E=d.level!=1,N=nr(e,W(i,E?d.from:d.to,E?"after":"before"),"line",t,r);ea(N,l,p,!0)&&N.top>p&&(d=o[c-1])}return d}function pE(e,t,i,r,o,l,p){var c=su(e,t,r,p),d=c.begin,E=c.end;/\s/.test(t.text.charAt(E-1))&&E--;for(var N=null,A=null,U=0;U<o.length;U++){var O=o[U];if(!(O.from>=E||O.to<=d)){var P=O.level!=1,_=Er(e,r,P?Math.min(E,O.to)-1:Math.max(d,O.from)).right,Z=_<l?l-_+1e9:_-l;(!N||A>Z)&&(N=O,A=Z)}}return N||(N=o[o.length-1]),N.from<d&&(N={from:d,to:N.to,level:N.level}),N.to>E&&(N={from:N.from,to:E,level:N.level}),N}var oi;function Bi(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(oi==null){oi=Y("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)oi.appendChild(document.createTextNode("x")),oi.appendChild(Y("br"));oi.appendChild(document.createTextNode("x"))}me(e.measure,oi);var i=oi.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),le(e.measure),i||1}function Di(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=Y("span","xxxxxxxxxx"),i=Y("pre",[t],"CodeMirror-line-like");me(e.measure,i);var r=t.getBoundingClientRect(),o=(r.right-r.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}function ta(e){for(var t=e.display,i={},r={},o=t.gutters.clientLeft,l=t.gutters.firstChild,p=0;l;l=l.nextSibling,++p){var c=e.display.gutterSpecs[p].className;i[c]=l.offsetLeft+l.clientLeft+o,r[c]=l.clientWidth}return{fixedPos:ra(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function ra(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function lu(e){var t=Bi(e.display),i=e.options.lineWrapping,r=i&&Math.max(5,e.display.scroller.clientWidth/Di(e.display)-3);return function(o){if(Pr(e.doc,o))return 0;var l=0;if(o.widgets)for(var p=0;p<o.widgets.length;p++)o.widgets[p].height&&(l+=o.widgets[p].height);return i?l+(Math.ceil(o.text.length/r)||1)*t:l+t}}function ia(e){var t=e.doc,i=lu(e);t.iter(function(r){var o=i(r);o!=r.height&&wt(r,o)})}function si(e,t,i,r){var o=e.display;if(!i&&Ci(t).getAttribute("cm-not-content")=="true")return null;var l,p,c=o.lineSpace.getBoundingClientRect();try{l=t.clientX-c.left,p=t.clientY-c.top}catch{return null}var d=$s(e,l,p),E;if(r&&d.xRel>0&&(E=q(e.doc,d.line).text).length==d.ch){var N=De(E,E.length,e.options.tabSize)-E.length;d=W(d.line,Math.max(0,Math.round((l-jl(e.display).left)/Di(e.display))-N))}return d}function ai(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var i=e.display.view,r=0;r<i.length;r++)if(t-=i[r].size,t<0)return r}function Lt(e,t,i,r){t==null&&(t=e.doc.first),i==null&&(i=e.doc.first+e.doc.size),r||(r=0);var o=e.display;if(r&&i<o.viewTo&&(o.updateLineNumbers==null||o.updateLineNumbers>t)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)Tr&&Hs(e.doc,t)<o.viewTo&&wr(e);else if(i<=o.viewFrom)Tr&&wl(e.doc,i+r)>o.viewFrom?wr(e):(o.viewFrom+=r,o.viewTo+=r);else if(t<=o.viewFrom&&i>=o.viewTo)wr(e);else if(t<=o.viewFrom){var l=Oo(e,i,i+r,1);l?(o.view=o.view.slice(l.index),o.viewFrom=l.lineN,o.viewTo+=r):wr(e)}else if(i>=o.viewTo){var p=Oo(e,t,t,-1);p?(o.view=o.view.slice(0,p.index),o.viewTo=p.lineN):wr(e)}else{var c=Oo(e,t,t,-1),d=Oo(e,i,i+r,1);c&&d?(o.view=o.view.slice(0,c.index).concat(Lo(e,c.lineN,d.lineN)).concat(o.view.slice(d.index)),o.viewTo+=r):wr(e)}var E=o.externalMeasured;E&&(i<E.lineN?E.lineN+=r:t<E.lineN+E.size&&(o.externalMeasured=null))}function Vr(e,t,i){e.curOp.viewChanged=!0;var r=e.display,o=e.display.externalMeasured;if(o&&t>=o.lineN&&t<o.lineN+o.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var l=r.view[ai(e,t)];if(l.node!=null){var p=l.changes||(l.changes=[]);Ue(p,i)==-1&&p.push(i)}}}function wr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Oo(e,t,i,r){var o=ai(e,t),l,p=e.display.view;if(!Tr||i==e.doc.first+e.doc.size)return{index:o,lineN:i};for(var c=e.display.viewFrom,d=0;d<o;d++)c+=p[d].size;if(c!=t){if(r>0){if(o==p.length-1)return null;l=c+p[o].size-t,o++}else l=c-t;t+=l,i+=l}for(;Hs(e.doc,i)!=i;){if(o==(r<0?0:p.length-1))return null;i+=r*p[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:i}}function cE(e,t,i){var r=e.display,o=r.view;o.length==0||t>=r.viewTo||i<=r.viewFrom?(r.view=Lo(e,t,i),r.viewFrom=t):(r.viewFrom>t?r.view=Lo(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(ai(e,t))),r.viewFrom=t,r.viewTo<i?r.view=r.view.concat(Lo(e,r.viewTo,i)):r.viewTo>i&&(r.view=r.view.slice(0,ai(e,i)))),r.viewTo=i}function uu(e){for(var t=e.display.view,i=0,r=0;r<t.length;r++){var o=t[r];!o.hidden&&(!o.node||o.changes)&&++i}return i}function Rn(e){e.display.input.showSelection(e.display.input.prepareSelection())}function pu(e,t){t===void 0&&(t=!0);var i=e.doc,r={},o=r.cursors=document.createDocumentFragment(),l=r.selection=document.createDocumentFragment(),p=e.options.$customCursor;p&&(t=!0);for(var c=0;c<i.sel.ranges.length;c++)if(!(!t&&c==i.sel.primIndex)){var d=i.sel.ranges[c];if(!(d.from().line>=e.display.viewTo||d.to().line<e.display.viewFrom)){var E=d.empty();if(p){var N=p(e,d);N&&na(e,N,o)}else(E||e.options.showCursorWhenSelecting)&&na(e,d.head,o);E||fE(e,d,l)}}return r}function na(e,t,i){var r=nr(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),o=i.appendChild(Y("div","\xA0","CodeMirror-cursor"));if(o.style.left=r.left+"px",o.style.top=r.top+"px",o.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var l=bo(e,t,"div",null,null),p=l.right-l.left;o.style.width=(p>0?p:e.defaultCharWidth())+"px"}if(r.other){var c=i.appendChild(Y("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));c.style.display="",c.style.left=r.other.left+"px",c.style.top=r.other.top+"px",c.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function Go(e,t){return e.top-t.top||e.left-t.left}function fE(e,t,i){var r=e.display,o=e.doc,l=document.createDocumentFragment(),p=jl(e.display),c=p.left,d=Math.max(r.sizerWidth,ni(e)-r.sizer.offsetLeft)-p.right,E=o.direction=="ltr";function N(J,K,ae,ne){K<0&&(K=0),K=Math.round(K),ne=Math.round(ne),l.appendChild(Y("div",null,"CodeMirror-selected","position: absolute; left: "+J+`px;
|
|
6
6
|
top: `+K+"px; width: "+(ae??d-J)+`px;
|
|
7
|
-
height: `+(ne-K)+"px"))}function
|
|
7
|
+
height: `+(ne-K)+"px"))}function A(J,K,ae){var ne=q(o,J),Ee=ne.text.length,ye,at;function we(Xe,bt){return bo(e,W(J,Xe),"div",ne,bt)}function Wt(Xe,bt,ct){var qe=au(e,ne,null,Xe),Je=bt=="ltr"==(ct=="after")?"left":"right",ke=ct=="after"?qe.begin:qe.end-(/\s/.test(ne.text.charAt(qe.end-1))?2:1);return we(ke,Je)[Je]}var yt=rt(ne,o.direction);return vn(yt,K||0,ae??Ee,function(Xe,bt,ct,qe){var Je=ct=="ltr",ke=we(Xe,Je?"left":"right"),Ot=we(bt-1,Je?"right":"left"),Ji=K==null&&Xe==0,Qr=ae==null&&bt==Ee,mt=qe==0,mr=!yt||qe==yt.length-1;if(Ot.top-ke.top<=3){var lt=(E?Ji:Qr)&&mt,Ga=(E?Qr:Ji)&&mr,Rr=lt?c:(Je?ke:Ot).left,fi=Ga?d:(Je?Ot:ke).right;N(Rr,ke.top,fi-Rr,ke.bottom)}else{var di,It,ji,Ua;Je?(di=E&&Ji&&mt?c:ke.left,It=E?d:Wt(Xe,ct,"before"),ji=E?c:Wt(bt,ct,"after"),Ua=E&&Qr&&mr?d:Ot.right):(di=E?Wt(Xe,ct,"before"):c,It=!E&&Ji&&mt?d:ke.right,ji=!E&&Qr&&mr?c:Ot.left,Ua=E?Wt(bt,ct,"after"):d),N(di,ke.top,It-di,ke.bottom),ke.bottom<Ot.top&&N(c,ke.bottom,null,Ot.top),N(ji,Ot.top,Ua-ji,Ot.bottom)}(!ye||Go(ke,ye)<0)&&(ye=ke),Go(Ot,ye)<0&&(ye=Ot),(!at||Go(ke,at)<0)&&(at=ke),Go(Ot,at)<0&&(at=Ot)}),{start:ye,end:at}}var U=t.from(),O=t.to();if(U.line==O.line)A(U.line,U.ch,O.ch);else{var P=q(o,U.line),_=q(o,O.line),Z=ir(P)==ir(_),X=A(U.line,U.ch,Z?P.text.length+1:null).end,z=A(O.line,Z?0:null,O.ch).start;Z&&(X.top<z.top-2?(N(X.right,X.top,null,X.bottom),N(c,z.top,z.left,z.bottom)):N(X.right,X.top,z.left-X.right,X.bottom)),X.bottom<z.top&&N(c,X.bottom,null,z.top)}i.appendChild(l)}function oa(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var i=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||Mi(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function cu(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||aa(e))}function sa(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Mi(e))},100)}function aa(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Fe(e,"focus",e,t),e.state.focused=!0,Le(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),T&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),oa(e))}function Mi(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Fe(e,"blur",e,t),e.state.focused=!1,ue(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Uo(e){for(var t=e.display,i=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),o=t.lineDiv.getBoundingClientRect().top,l=0,p=0;p<t.view.length;p++){var c=t.view[p],d=e.options.lineWrapping,E=void 0,N=0;if(!c.hidden){if(o+=c.line.height,m&&I<8){var A=c.node.offsetTop+c.node.offsetHeight;E=A-i,i=A}else{var U=c.node.getBoundingClientRect();E=U.bottom-U.top,!d&&c.text.firstChild&&(N=c.text.firstChild.getBoundingClientRect().right-U.left-1)}var O=c.line.height-E;if((O>.005||O<-.005)&&(o<r&&(l-=O),wt(c.line,E),fu(c.line),c.rest))for(var P=0;P<c.rest.length;P++)fu(c.rest[P]);if(N>e.display.sizerWidth){var _=Math.ceil(N/Di(e.display));_>e.display.maxLineLength&&(e.display.maxLineLength=_,e.display.maxLine=c.line,e.display.maxLineChanged=!0)}}}Math.abs(l)>2&&(t.scroller.scrollTop+=l)}function fu(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var i=e.widgets[t],r=i.node.parentNode;r&&(i.height=r.offsetHeight)}}function Fo(e,t,i){var r=i&&i.top!=null?Math.max(0,i.top):e.scroller.scrollTop;r=Math.floor(r-Ro(e));var o=i&&i.bottom!=null?i.bottom:r+e.wrapper.clientHeight,l=dr(t,r),p=dr(t,o);if(i&&i.ensure){var c=i.ensure.from.line,d=i.ensure.to.line;c<l?(l=c,p=dr(t,Ar(q(t,c))+e.wrapper.clientHeight)):Math.min(d,t.lastLine())>=p&&(l=dr(t,Ar(q(t,d))-e.wrapper.clientHeight),p=d)}return{from:l,to:Math.max(p,l+1)}}function dE(e,t){if(!Ve(e,"scrollCursorIntoView")){var i=e.display,r=i.sizer.getBoundingClientRect(),o=null,l=i.wrapper.ownerDocument;if(t.top+r.top<0?o=!0:t.bottom+r.top>(l.defaultView.innerHeight||l.documentElement.clientHeight)&&(o=!1),o!=null&&!S){var p=Y("div","\u200B",null,`position: absolute;
|
|
8
8
|
top: `+(t.top-i.viewOffset-Ro(e.display))+`px;
|
|
9
9
|
height: `+(t.bottom-t.top+gr(e)+i.barHeight)+`px;
|
|
10
|
-
left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(p),p.scrollIntoView(o),e.display.lineSpace.removeChild(p)}}}function hE(e,t,i,r){r==null&&(r=0);var o;!e.options.lineWrapping&&t==i&&(i=t.sticky=="before"?W(t.line,t.ch+1,"before"):t,t=t.ch?W(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var l=0;l<5;l++){var p=!1,c=nr(e,t),d=!i||i==t?c:nr(e,i);o={left:Math.min(c.left,d.left),top:Math.min(c.top,d.top)-r,right:Math.max(c.left,d.left),bottom:Math.max(c.bottom,d.bottom)+r};var E=la(e,o),N=e.doc.scrollTop,C=e.doc.scrollLeft;if(E.scrollTop!=null&&(bn(e,E.scrollTop),Math.abs(e.doc.scrollTop-N)>1&&(p=!0)),E.scrollLeft!=null&&(li(e,E.scrollLeft),Math.abs(e.doc.scrollLeft-C)>1&&(p=!0)),!p)break}return o}function gE(e,t){var i=la(e,t);i.scrollTop!=null&&bn(e,i.scrollTop),i.scrollLeft!=null&&li(e,i.scrollLeft)}function la(e,t){var i=e.display,r=Bi(e.display);t.top<0&&(t.top=0);var o=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,l=js(e),p={};t.bottom-t.top>l&&(t.bottom=t.top+l);var c=e.doc.height+Js(i),d=t.top<r,E=t.bottom>c-r;if(t.top<o)p.scrollTop=d?0:t.top;else if(t.bottom>o+l){var N=Math.min(t.top,(E?c:t.bottom)-l);N!=o&&(p.scrollTop=N)}var C=e.options.fixedGutter?0:i.gutters.offsetWidth,G=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-C,O=ni(e)-i.gutters.offsetWidth,P=t.right-t.left>O;return P&&(t.right=t.left+O),t.left<10?p.scrollLeft=0:t.left<G?p.scrollLeft=Math.max(0,t.left+C-(P?0:10)):t.right>O+G-3&&(p.scrollLeft=t.right+(P?0:10)-O),p}function ua(e,t){t!=null&&(Bo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Pi(e){Bo(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function yn(e,t,i){(t!=null||i!=null)&&Bo(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function EE(e,t){Bo(e),e.curOp.scrollToPos=t}function Bo(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=ou(e,t.from),r=ou(e,t.to);du(e,i,r,t.margin)}}function du(e,t,i,r){var o=la(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-r,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+r});yn(e,o.scrollLeft,o.scrollTop)}function bn(e,t){Math.abs(e.doc.scrollTop-t)<2||(a||ca(e,{top:t}),hu(e,t,!0),a&&ca(e),Gn(e,100))}function hu(e,t,i){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!i)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function li(e,t,i,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,vu(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function On(e){var t=e.display,i=t.gutters.offsetWidth,r=Math.round(e.doc.height+Js(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?i:0,docHeight:r,scrollHeight:r+gr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var ui=function(e,t,i){this.cm=i;var r=this.vert=Y("div",[Y("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=Y("div",[Y("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=o.tabIndex=-1,e(r),e(o),se(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),se(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,m&&I<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ui.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var o=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var l=e.viewWidth-e.barLeft-(i?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+l)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?r:0,bottom:t?r:0}},ui.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ui.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ui.prototype.zeroWidthHack=function(){var e=R&&!F?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new tt,this.disableVert=new tt},ui.prototype.enableZeroWidthBar=function(e,t,i){e.style.visibility="";function r(){var o=e.getBoundingClientRect(),l=i=="vert"?document.elementFromPoint(o.right-1,(o.top+o.bottom)/2):document.elementFromPoint((o.right+o.left)/2,o.bottom-1);l!=e?e.style.visibility="hidden":t.set(1e3,r)}t.set(1e3,r)},ui.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Un=function(){};Un.prototype.update=function(){return{bottom:0,right:0}},Un.prototype.setScrollLeft=function(){},Un.prototype.setScrollTop=function(){},Un.prototype.clear=function(){};function Vi(e,t){t||(t=On(e));var i=e.display.barWidth,r=e.display.barHeight;gu(e,t);for(var o=0;o<4&&i!=e.display.barWidth||r!=e.display.barHeight;o++)i!=e.display.barWidth&&e.options.lineWrapping&&Go(e),gu(e,On(e)),i=e.display.barWidth,r=e.display.barHeight}function gu(e,t){var i=e.display,r=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=r.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=r.bottom)+"px",i.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=r.bottom+"px",i.scrollbarFiller.style.width=r.right+"px"):i.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=r.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var Eu={native:ui,null:Un};function mu(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ue(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Eu[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),se(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?li(e,t):bn(e,t)},e),e.display.scrollbars.addClass&&Le(e.display.wrapper,e.display.scrollbars.addClass)}var mE=0;function pi(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++mE,markArrays:null},Jg(e.curOp)}function ci(e){var t=e.curOp;t&&zg(t,function(i){for(var r=0;r<i.ops.length;r++)i.ops[r].cm.curOp=null;xE(i)})}function xE(e){for(var t=e.ops,i=0;i<t.length;i++)vE(t[i]);for(var r=0;r<t.length;r++)IE(t[r]);for(var o=0;o<t.length;o++)NE(t[o]);for(var l=0;l<t.length;l++)TE(t[l]);for(var p=0;p<t.length;p++)CE(t[p])}function vE(e){var t=e.cm,i=t.display;SE(t),e.updateMaxLine&&Ys(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<i.viewFrom||e.scrollToPos.to.line>=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Do(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function IE(e){e.updatedDisplay=e.mustUpdate&&pa(e.cm,e.update)}function NE(e){var t=e.cm,i=t.display;e.updatedDisplay&&Go(t),e.barMeasure=On(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ql(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+gr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-ni(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function TE(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&li(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var i=e.focus&&e.focus==je(At(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,i),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Vi(t,e.barMeasure),e.updatedDisplay&&da(t,e.barMeasure),e.selectionChanged&&oa(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),i&&cu(e.cm)}function CE(e){var t=e.cm,i=t.display,r=t.doc;if(e.updatedDisplay&&xu(t,e.update),i.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(i.wheelStartX=i.wheelStartY=null),e.scrollTop!=null&&hu(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&li(t,e.scrollLeft,!0,!0),e.scrollToPos){var o=hE(t,fe(r,e.scrollToPos.from),fe(r,e.scrollToPos.to),e.scrollToPos.margin);dE(t,o)}var l=e.maybeHiddenMarkers,p=e.maybeUnhiddenMarkers;if(l)for(var c=0;c<l.length;++c)l[c].lines.length||Fe(l[c],"hide");if(p)for(var d=0;d<p.length;++d)p[d].lines.length&&Fe(p[d],"unhide");i.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Fe(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function _t(e,t){if(e.curOp)return t();pi(e);try{return t()}finally{ci(e)}}function ot(e,t){return function(){if(e.curOp)return t.apply(e,arguments);pi(e);try{return t.apply(e,arguments)}finally{ci(e)}}}function vt(e){return function(){if(this.curOp)return e.apply(this,arguments);pi(this);try{return e.apply(this,arguments)}finally{ci(this)}}}function st(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);pi(t);try{return e.apply(this,arguments)}finally{ci(t)}}}function Gn(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,he(AE,e))}function AE(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var i=+new Date+e.options.workTime,r=Nn(e,t.highlightFrontier),o=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(l){if(r.line>=e.display.viewFrom){var p=l.styles,c=l.text.length>e.options.maxHighlightLength?ee(t.mode,r.state):null,d=Sl(e,l,r,!0);c&&(r.state=c),l.styles=d.styles;var E=l.styleClasses,N=d.classes;N?l.styleClasses=N:E&&(l.styleClasses=null);for(var C=!p||p.length!=l.styles.length||E!=N&&(!E||!N||E.bgClass!=N.bgClass||E.textClass!=N.textClass),G=0;!C&&G<p.length;++G)C=p[G]!=l.styles[G];C&&o.push(r.line),l.stateAfter=r.save(),r.nextLine()}else l.text.length<=e.options.maxHighlightLength&&_s(e,l.text,r),l.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>i)return Gn(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),o.length&&_t(e,function(){for(var l=0;l<o.length;l++)Vr(e,o[l],"text")})}}var Do=function(e,t,i){var r=e.display;this.viewport=t,this.visible=Fo(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=ni(e),this.force=i,this.dims=ta(e),this.events=[]};Do.prototype.signal=function(e,t){pt(e,t)&&this.events.push(arguments)},Do.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Fe.apply(null,this.events[e])};function SE(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=gr(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=gr(e)+"px",t.scrollbarsClipped=!0)}function LE(e){if(e.hasFocus())return null;var t=je(At(e));if(!t||!et(e.display.lineDiv,t))return null;var i={activeElt:t};if(window.getSelection){var r=Ht(e).getSelection();r.anchorNode&&r.extend&&et(e.display.lineDiv,r.anchorNode)&&(i.anchorNode=r.anchorNode,i.anchorOffset=r.anchorOffset,i.focusNode=r.focusNode,i.focusOffset=r.focusOffset)}return i}function RE(e){if(!(!e||!e.activeElt||e.activeElt==je(Ie(e.activeElt)))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&et(document.body,e.anchorNode)&&et(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,i=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),i.removeAllRanges(),i.addRange(r),i.extend(e.focusNode,e.focusOffset)}}function pa(e,t){var i=e.display,r=e.doc;if(t.editorIsHidden)return wr(e),!1;if(!t.force&&t.visible.from>=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&uu(e)==0)return!1;Iu(e)&&(wr(e),t.dims=ta(e));var o=r.first+r.size,l=Math.max(t.visible.from-e.options.viewportMargin,r.first),p=Math.min(o,t.visible.to+e.options.viewportMargin);i.viewFrom<l&&l-i.viewFrom<20&&(l=Math.max(r.first,i.viewFrom)),i.viewTo>p&&i.viewTo-p<20&&(p=Math.min(o,i.viewTo)),Tr&&(l=Hs(e.doc,l),p=wl(e.doc,p));var c=l!=i.viewFrom||p!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;cE(e,l,p),i.viewOffset=Cr(q(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var d=uu(e);if(!c&&d==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var E=LE(e);return d>4&&(i.lineDiv.style.display="none"),yE(e,i.updateLineNumbers,t.dims),d>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,RE(E),le(i.cursorDiv),le(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,c&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,Gn(e,400)),i.updateLineNumbers=null,!0}function xu(e,t){for(var i=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==ni(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+Js(e.display)-js(e),i.top)}),t.visible=Fo(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=Fo(e.display,e.doc,i));if(!pa(e,t))break;Go(e);var o=On(e);Rn(e),Vi(e,o),da(e,o),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ca(e,t){var i=new Do(e,t);if(pa(e,i)){Go(e),xu(e,i);var r=On(e);Rn(e),Vi(e,r),da(e,r),i.finish()}}function yE(e,t,i){var r=e.display,o=e.options.lineNumbers,l=r.lineDiv,p=l.firstChild;function c(P){var _=P.nextSibling;return T&&R&&e.display.currentWheelTarget==P?P.style.display="none":P.parentNode.removeChild(P),_}for(var d=r.view,E=r.viewFrom,N=0;N<d.length;N++){var C=d[N];if(!C.hidden)if(!C.node||C.node.parentNode!=l){var G=tE(e,C,E,i);l.insertBefore(G,p)}else{for(;p!=C.node;)p=c(p);var O=o&&t!=null&&t<=E&&C.lineNumber;C.changes&&(Ge(C.changes,"gutter")>-1&&(O=!1),Hl(e,C,E,i)),O&&(le(C.lineNumber),C.lineNumber.appendChild(document.createTextNode(Ps(e.options,E)))),p=C.node.nextSibling}E+=C.size}for(;p;)p=c(p)}function fa(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",nt(e,"gutterChanged",e)}function da(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+gr(e)+"px"}function vu(e){var t=e.display,i=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=ra(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,l=r+"px",p=0;p<i.length;p++)if(!i[p].hidden){e.options.fixedGutter&&(i[p].gutter&&(i[p].gutter.style.left=l),i[p].gutterBackground&&(i[p].gutterBackground.style.left=l));var c=i[p].alignable;if(c)for(var d=0;d<c.length;d++)c[d].style.left=l}e.options.fixedGutter&&(t.gutters.style.left=r+o+"px")}}function Iu(e){if(!e.options.lineNumbers)return!1;var t=e.doc,i=Ps(e.options,t.first+t.size-1),r=e.display;if(i.length!=r.lineNumChars){var o=r.measure.appendChild(Y("div",[Y("div",i)],"CodeMirror-linenumber CodeMirror-gutter-elt")),l=o.firstChild.offsetWidth,p=o.offsetWidth-l;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(l,r.lineGutter.offsetWidth-p)+1,r.lineNumWidth=r.lineNumInnerWidth+p,r.lineNumChars=r.lineNumInnerWidth?i.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",fa(e.display),!0}return!1}function ha(e,t){for(var i=[],r=!1,o=0;o<e.length;o++){var l=e[o],p=null;if(typeof l!="string"&&(p=l.style,l=l.className),l=="CodeMirror-linenumbers")if(t)r=!0;else continue;i.push({className:l,style:p})}return t&&!r&&i.push({className:"CodeMirror-linenumbers",style:null}),i}function Nu(e){var t=e.gutters,i=e.gutterSpecs;le(t),e.lineGutter=null;for(var r=0;r<i.length;++r){var o=i[r],l=o.className,p=o.style,c=t.appendChild(Y("div",null,"CodeMirror-gutter "+l));p&&(c.style.cssText=p),l=="CodeMirror-linenumbers"&&(e.lineGutter=c,c.style.width=(e.lineNumWidth||1)+"px")}t.style.display=i.length?"":"none",fa(e)}function Fn(e){Nu(e.display),Lt(e),vu(e)}function bE(e,t,i,r){var o=this;this.input=i,o.scrollbarFiller=Y("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=Y("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=Oe("div",null,"CodeMirror-code"),o.selectionDiv=Y("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=Y("div",null,"CodeMirror-cursors"),o.measure=Y("div",null,"CodeMirror-measure"),o.lineMeasure=Y("div",null,"CodeMirror-measure"),o.lineSpace=Oe("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var l=Oe("div",[o.lineSpace],"CodeMirror-lines");o.mover=Y("div",[l],null,"position: relative"),o.sizer=Y("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=Y("div",null,null,"position: absolute; height: "+Jt+"px; width: 1px;"),o.gutters=Y("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=Y("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=Y("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),L&&V===105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),m&&I<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),!T&&!(a&&A)&&(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=ha(r.gutters,r.lineNumbers),Nu(o),i.init(o)}var Mo=0,Sr=null;m?Sr=-.53:a?Sr=15:L?Sr=-.7:M&&(Sr=-1/3);function Tu(e){var t=e.wheelDeltaX,i=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),i==null&&e.detail&&e.axis==e.VERTICAL_AXIS?i=e.detail:i==null&&(i=e.wheelDelta),{x:t,y:i}}function OE(e){var t=Tu(e);return t.x*=Sr,t.y*=Sr,t}function Cu(e,t){L&&V==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var i=Tu(t),r=i.x,o=i.y,l=Sr;t.deltaMode===0&&(r=t.deltaX,o=t.deltaY,l=1);var p=e.display,c=p.scroller,d=c.scrollWidth>c.clientWidth,E=c.scrollHeight>c.clientHeight;if(r&&d||o&&E){if(o&&R&&T){e:for(var N=t.target,C=p.view;N!=c;N=N.parentNode)for(var G=0;G<C.length;G++)if(C[G].node==N){e.display.currentWheelTarget=N;break e}}if(r&&!a&&!y&&l!=null){o&&E&&bn(e,Math.max(0,c.scrollTop+o*l)),li(e,Math.max(0,c.scrollLeft+r*l)),(!o||o&&E)&&ht(t),p.wheelStartX=null;return}if(o&&l!=null){var O=o*l,P=e.doc.scrollTop,_=P+p.wrapper.clientHeight;O<0?P=Math.max(0,P+O-50):_=Math.min(e.doc.height,_+O+50),ca(e,{top:P,bottom:_})}Mo<20&&t.deltaMode!==0&&(p.wheelStartX==null?(p.wheelStartX=c.scrollLeft,p.wheelStartY=c.scrollTop,p.wheelDX=r,p.wheelDY=o,setTimeout(function(){if(p.wheelStartX!=null){var Z=c.scrollLeft-p.wheelStartX,X=c.scrollTop-p.wheelStartY,z=X&&p.wheelDY&&X/p.wheelDY||Z&&p.wheelDX&&Z/p.wheelDX;p.wheelStartX=p.wheelStartY=null,z&&(Sr=(Sr*Mo+z)/(Mo+1),++Mo)}},200)):(p.wheelDX+=r,p.wheelDY+=o))}}var Yt=function(e,t){this.ranges=e,this.primIndex=t};Yt.prototype.primary=function(){return this.ranges[this.primIndex]},Yt.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var i=this.ranges[t],r=e.ranges[t];if(!Vs(i.anchor,r.anchor)||!Vs(i.head,r.head))return!1}return!0},Yt.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Ne(ws(this.ranges[t].anchor),ws(this.ranges[t].head));return new Yt(e,this.primIndex)},Yt.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Yt.prototype.contains=function(e,t){t||(t=e);for(var i=0;i<this.ranges.length;i++){var r=this.ranges[i];if(ce(t,r.from())>=0&&ce(e,r.to())<=0)return i}return-1};var Ne=function(e,t){this.anchor=e,this.head=t};Ne.prototype.from=function(){return vo(this.anchor,this.head)},Ne.prototype.to=function(){return xo(this.anchor,this.head)},Ne.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function or(e,t,i){var r=e&&e.options.selectionsMayTouch,o=t[i];t.sort(function(G,O){return ce(G.from(),O.from())}),i=Ge(t,o);for(var l=1;l<t.length;l++){var p=t[l],c=t[l-1],d=ce(c.to(),p.from());if(r&&!p.empty()?d>0:d>=0){var E=vo(c.from(),p.from()),N=xo(c.to(),p.to()),C=c.empty()?p.from()==p.head:c.from()==c.head;l<=i&&--i,t.splice(--l,2,new Ne(C?N:E,C?E:N))}}return new Yt(t,i)}function _r(e,t){return new Yt([new Ne(e,t||e)],0)}function Wr(e){return e.text?W(e.from.line+e.text.length-1,$(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Au(e,t){if(ce(e,t.from)<0)return e;if(ce(e,t.to)<=0)return Wr(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Wr(t).ch-t.to.ch),W(i,r)}function ga(e,t){for(var i=[],r=0;r<e.sel.ranges.length;r++){var o=e.sel.ranges[r];i.push(new Ne(Au(o.anchor,t),Au(o.head,t)))}return or(e.cm,i,e.sel.primIndex)}function Su(e,t,i){return e.line==t.line?W(i.line,e.ch-t.ch+i.ch):W(i.line+(e.line-t.line),e.ch)}function UE(e,t,i){for(var r=[],o=W(e.first,0),l=o,p=0;p<t.length;p++){var c=t[p],d=Su(c.from,o,l),E=Su(Wr(c),o,l);if(o=c.to,l=E,i=="around"){var N=e.sel.ranges[p],C=ce(N.head,N.anchor)<0;r[p]=new Ne(C?E:d,C?d:E)}else r[p]=new Ne(d,d)}return new Yt(r,e.sel.primIndex)}function Ea(e){e.doc.mode=oe(e.options,e.doc.modeOption),Bn(e)}function Bn(e){e.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Gn(e,100),e.state.modeGen++,e.curOp&&Lt(e)}function Lu(e,t){return t.from.ch==0&&t.to.ch==0&&$(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ma(e,t,i,r){function o(z){return i?i[z]:null}function l(z,J,K){wg(z,J,K,r),nt(z,"change",z,t)}function p(z,J){for(var K=[],ae=z;ae<J;++ae)K.push(new Ui(E[ae],o(ae),r));return K}var c=t.from,d=t.to,E=t.text,N=q(e,c.line),C=q(e,d.line),G=$(E),O=o(E.length-1),P=d.line-c.line;if(t.full)e.insert(0,p(0,E.length)),e.remove(E.length,e.size-E.length);else if(Lu(e,t)){var _=p(0,E.length-1);l(C,C.text,O),P&&e.remove(c.line,P),_.length&&e.insert(c.line,_)}else if(N==C)if(E.length==1)l(N,N.text.slice(0,c.ch)+G+N.text.slice(d.ch),O);else{var Z=p(1,E.length-1);Z.push(new Ui(G+N.text.slice(d.ch),O,r)),l(N,N.text.slice(0,c.ch)+E[0],o(0)),e.insert(c.line+1,Z)}else if(E.length==1)l(N,N.text.slice(0,c.ch)+E[0]+C.text.slice(d.ch),o(0)),e.remove(c.line+1,P);else{l(N,N.text.slice(0,c.ch)+E[0],o(0)),l(C,G+C.text.slice(d.ch),O);var X=p(1,E.length-1);P>1&&e.remove(c.line+1,P-1),e.insert(c.line+1,X)}nt(e,"change",e,t)}function kr(e,t,i){function r(o,l,p){if(o.linked)for(var c=0;c<o.linked.length;++c){var d=o.linked[c];if(d.doc!=l){var E=p&&d.sharedHist;i&&!E||(t(d.doc,E),r(d.doc,o,E))}}}r(e,null,!0)}function Ru(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,ia(e),Ea(e),yu(e),e.options.direction=t.direction,e.options.lineWrapping||Ys(e),e.options.mode=t.modeOption,Lt(e)}function yu(e){(e.doc.direction=="rtl"?Le:ue)(e.display.lineDiv,"CodeMirror-rtl")}function GE(e){_t(e,function(){yu(e),Lt(e)})}function Po(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function xa(e,t){var i={from:ws(t.from),to:Wr(t),text:gt(e,t.from,t.to)};return Uu(e,i,t.from.line,t.to.line+1),kr(e,function(r){return Uu(r,i,t.from.line,t.to.line+1)},!0),i}function bu(e){for(;e.length;){var t=$(e);if(t.ranges)e.pop();else break}}function FE(e,t){if(t)return bu(e.done),$(e.done);if(e.done.length&&!$(e.done).ranges)return $(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),$(e.done)}function Ou(e,t,i,r){var o=e.history;o.undone.length=0;var l=+new Date,p,c;if((o.lastOp==r||o.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&o.lastModTime>l-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(p=FE(o,o.lastOp==r)))c=$(p.changes),ce(t.from,t.to)==0&&ce(t.from,c.to)==0?c.to=Wr(t):p.changes.push(xa(e,t));else{var d=$(o.done);for((!d||!d.ranges)&&Vo(e.sel,o.done),p={changes:[xa(e,t)],generation:o.generation},o.done.push(p);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(i),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=l,o.lastOp=o.lastSelOp=r,o.lastOrigin=o.lastSelOrigin=t.origin,c||Fe(e,"historyAdded")}function BE(e,t,i,r){var o=t.charAt(0);return o=="*"||o=="+"&&i.ranges.length==r.ranges.length&&i.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function DE(e,t,i,r){var o=e.history,l=r&&r.origin;i==o.lastSelOp||l&&o.lastSelOrigin==l&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==l||BE(e,l,$(o.done),t))?o.done[o.done.length-1]=t:Vo(t,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=l,o.lastSelOp=i,r&&r.clearRedo!==!1&&bu(o.undone)}function Vo(e,t){var i=$(t);i&&i.ranges&&i.equals(e)||t.push(e)}function Uu(e,t,i,r){var o=t["spans_"+e.id],l=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,r),function(p){p.markedSpans&&((o||(o=t["spans_"+e.id]={}))[l]=p.markedSpans),++l})}function ME(e){if(!e)return null;for(var t,i=0;i<e.length;++i)e[i].marker.explicitlyCleared?t||(t=e.slice(0,i)):t&&t.push(e[i]);return t?t.length?t:null:e}function PE(e,t){var i=t["spans_"+e.id];if(!i)return null;for(var r=[],o=0;o<t.text.length;++o)r.push(ME(i[o]));return r}function Gu(e,t){var i=PE(e,t),r=ks(e,t);if(!i)return r;if(!r)return i;for(var o=0;o<i.length;++o){var l=i[o],p=r[o];if(l&&p)e:for(var c=0;c<p.length;++c){for(var d=p[c],E=0;E<l.length;++E)if(l[E].marker==d.marker)continue e;l.push(d)}else p&&(i[o]=p)}return i}function wi(e,t,i){for(var r=[],o=0;o<e.length;++o){var l=e[o];if(l.ranges){r.push(i?Yt.prototype.deepCopy.call(l):l);continue}var p=l.changes,c=[];r.push({changes:c});for(var d=0;d<p.length;++d){var E=p[d],N=void 0;if(c.push({from:E.from,to:E.to,text:E.text}),t)for(var C in E)(N=C.match(/^spans_(\d+)$/))&&Ge(t,Number(N[1]))>-1&&($(c)[C]=E[C],delete E[C])}}return r}function va(e,t,i,r){if(r){var o=e.anchor;if(i){var l=ce(t,o)<0;l!=ce(i,o)<0?(o=t,t=i):l!=ce(t,i)<0&&(t=i)}return new Ne(o,t)}else return new Ne(i||t,t)}function wo(e,t,i,r,o){o==null&&(o=e.cm&&(e.cm.display.shift||e.extend)),Et(e,new Yt([va(e.sel.primary(),t,i,o)],0),r)}function Fu(e,t,i){for(var r=[],o=e.cm&&(e.cm.display.shift||e.extend),l=0;l<e.sel.ranges.length;l++)r[l]=va(e.sel.ranges[l],t[l],null,o);var p=or(e.cm,r,e.sel.primIndex);Et(e,p,i)}function Ia(e,t,i,r){var o=e.sel.ranges.slice(0);o[t]=i,Et(e,or(e.cm,o,e.sel.primIndex),r)}function Bu(e,t,i,r){Et(e,_r(t,i),r)}function VE(e,t,i){var r={ranges:t.ranges,update:function(o){this.ranges=[];for(var l=0;l<o.length;l++)this.ranges[l]=new Ne(fe(e,o[l].anchor),fe(e,o[l].head))},origin:i&&i.origin};return Fe(e,"beforeSelectionChange",e,r),e.cm&&Fe(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?or(e.cm,r.ranges,r.ranges.length-1):t}function Du(e,t,i){var r=e.history.done,o=$(r);o&&o.ranges?(r[r.length-1]=t,_o(e,t,i)):Et(e,t,i)}function Et(e,t,i){_o(e,t,i),DE(e,e.sel,e.cm?e.cm.curOp.id:NaN,i)}function _o(e,t,i){(pt(e,"beforeSelectionChange")||e.cm&&pt(e.cm,"beforeSelectionChange"))&&(t=VE(e,t,i));var r=i&&i.bias||(ce(t.primary().head,e.sel.primary().head)<0?-1:1);Mu(e,Vu(e,t,r,!0)),!(i&&i.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&Pi(e.cm)}function Mu(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,fo(e.cm)),nt(e,"cursorActivity",e))}function Pu(e){Mu(e,Vu(e,e.sel,null,!1))}function Vu(e,t,i,r){for(var o,l=0;l<t.ranges.length;l++){var p=t.ranges[l],c=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[l],d=Wo(e,p.anchor,c&&c.anchor,i,r),E=p.head==p.anchor?d:Wo(e,p.head,c&&c.head,i,r);(o||d!=p.anchor||E!=p.head)&&(o||(o=t.ranges.slice(0,l)),o[l]=new Ne(d,E))}return o?or(e.cm,o,t.primIndex):t}function _i(e,t,i,r,o){var l=q(e,t.line);if(l.markedSpans)for(var p=0;p<l.markedSpans.length;++p){var c=l.markedSpans[p],d=c.marker,E="selectLeft"in d?!d.selectLeft:d.inclusiveLeft,N="selectRight"in d?!d.selectRight:d.inclusiveRight;if((c.from==null||(E?c.from<=t.ch:c.from<t.ch))&&(c.to==null||(N?c.to>=t.ch:c.to>t.ch))){if(o&&(Fe(d,"beforeCursorEnter"),d.explicitlyCleared))if(l.markedSpans){--p;continue}else break;if(!d.atomic)continue;if(i){var C=d.find(r<0?1:-1),G=void 0;if((r<0?N:E)&&(C=wu(e,C,-r,C&&C.line==t.line?l:null)),C&&C.line==t.line&&(G=ce(C,i))&&(r<0?G<0:G>0))return _i(e,C,t,r,o)}var O=d.find(r<0?-1:1);return(r<0?E:N)&&(O=wu(e,O,r,O.line==t.line?l:null)),O?_i(e,O,t,r,o):null}}return t}function Wo(e,t,i,r,o){var l=r||1,p=_i(e,t,i,l,o)||!o&&_i(e,t,i,l,!0)||_i(e,t,i,-l,o)||!o&&_i(e,t,i,-l,!0);return p||(e.cantEdit=!0,W(e.first,0))}function wu(e,t,i,r){return i<0&&t.ch==0?t.line>e.first?fe(e,W(t.line-1)):null:i>0&&t.ch==(r||q(e,t.line)).text.length?t.line<e.first+e.size-1?W(t.line+1,0):null:new W(t.line,t.ch+i)}function _u(e){e.setSelection(W(e.firstLine(),0),W(e.lastLine()),k)}function Wu(e,t,i){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return i&&(r.update=function(o,l,p,c){o&&(r.from=fe(e,o)),l&&(r.to=fe(e,l)),p&&(r.text=p),c!==void 0&&(r.origin=c)}),Fe(e,"beforeChange",e,r),e.cm&&Fe(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Wi(e,t,i){if(e.cm){if(!e.cm.curOp)return ot(e.cm,Wi)(e,t,i);if(e.cm.state.suppressEdits)return}if(!((pt(e,"beforeChange")||e.cm&&pt(e.cm,"beforeChange"))&&(t=Wu(e,t,!0),!t))){var r=Gl&&!i&&Dg(e,t.from,t.to);if(r)for(var o=r.length-1;o>=0;--o)ku(e,{from:r[o].from,to:r[o].to,text:o?[""]:t.text,origin:t.origin});else ku(e,t)}}function ku(e,t){if(!(t.text.length==1&&t.text[0]==""&&ce(t.from,t.to)==0)){var i=ga(e,t);Ou(e,t,i,e.cm?e.cm.curOp.id:NaN),Dn(e,t,i,ks(e,t));var r=[];kr(e,function(o,l){!l&&Ge(r,o.history)==-1&&(Yu(o.history,t),r.push(o.history)),Dn(o,t,null,ks(o,t))})}}function ko(e,t,i){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!i)){for(var o=e.history,l,p=e.sel,c=t=="undo"?o.done:o.undone,d=t=="undo"?o.undone:o.done,E=0;E<c.length&&(l=c[E],!(i?l.ranges&&!l.equals(e.sel):!l.ranges));E++);if(E!=c.length){for(o.lastOrigin=o.lastSelOrigin=null;;)if(l=c.pop(),l.ranges){if(Vo(l,d),i&&!l.equals(e.sel)){Et(e,l,{clearRedo:!1});return}p=l}else if(r){c.push(l);return}else break;var N=[];Vo(p,d),d.push({changes:N,generation:o.generation}),o.generation=l.generation||++o.maxGeneration;for(var C=pt(e,"beforeChange")||e.cm&&pt(e.cm,"beforeChange"),G=function(_){var Z=l.changes[_];if(Z.origin=t,C&&!Wu(e,Z,!1))return c.length=0,{};N.push(xa(e,Z));var X=_?ga(e,Z):$(c);Dn(e,Z,X,Gu(e,Z)),!_&&e.cm&&e.cm.scrollIntoView({from:Z.from,to:Wr(Z)});var z=[];kr(e,function(J,K){!K&&Ge(z,J.history)==-1&&(Yu(J.history,Z),z.push(J.history)),Dn(J,Z,null,Gu(J,Z))})},O=l.changes.length-1;O>=0;--O){var P=G(O);if(P)return P.v}}}}function Zu(e,t){if(t!=0&&(e.first+=t,e.sel=new Yt(Qt(e.sel.ranges,function(o){return new Ne(W(o.anchor.line+t,o.anchor.ch),W(o.head.line+t,o.head.ch))}),e.sel.primIndex),e.cm)){Lt(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,r=i.viewFrom;r<i.viewTo;r++)Vr(e.cm,r,"gutter")}}function Dn(e,t,i,r){if(e.cm&&!e.cm.curOp)return ot(e.cm,Dn)(e,t,i,r);if(t.to.line<e.first){Zu(e,t.text.length-1-(t.to.line-t.from.line));return}if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var o=t.text.length-1-(e.first-t.from.line);Zu(e,o),t={from:W(e.first,0),to:W(t.to.line+o,t.to.ch),text:[$(t.text)],origin:t.origin}}var l=e.lastLine();t.to.line>l&&(t={from:t.from,to:W(l,q(e,l).text.length),text:[t.text[0]],origin:t.origin}),t.removed=gt(e,t.from,t.to),i||(i=ga(e,t)),e.cm?wE(e.cm,t,r):ma(e,t,r),_o(e,i,k),e.cantEdit&&Wo(e,W(e.firstLine(),0))&&(e.cantEdit=!1)}}function wE(e,t,i){var r=e.doc,o=e.display,l=t.from,p=t.to,c=!1,d=l.line;e.options.lineWrapping||(d=pe(ir(q(r,l.line))),r.iter(d,p.line+1,function(O){if(O==o.maxLine)return c=!0,!0})),r.sel.contains(t.from,t.to)>-1&&fo(e),ma(r,t,i,lu(e)),e.options.lineWrapping||(r.iter(d,l.line+t.text.length,function(O){var P=So(O);P>o.maxLineLength&&(o.maxLine=O,o.maxLineLength=P,o.maxLineChanged=!0,c=!1)}),c&&(e.curOp.updateMaxLine=!0)),yg(r,l.line),Gn(e,400);var E=t.text.length-(p.line-l.line)-1;t.full?Lt(e):l.line==p.line&&t.text.length==1&&!Lu(e.doc,t)?Vr(e,l.line,"text"):Lt(e,l.line,p.line+1,E);var N=pt(e,"changes"),C=pt(e,"change");if(C||N){var G={from:l,to:p,text:t.text,removed:t.removed,origin:t.origin};C&&nt(e,"change",e,G),N&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(G)}e.display.selForContextMenu=null}function ki(e,t,i,r,o){var l;r||(r=i),ce(r,i)<0&&(l=[r,i],i=l[0],r=l[1]),typeof t=="string"&&(t=e.splitLines(t)),Wi(e,{from:i,to:r,text:t,origin:o})}function Hu(e,t,i,r){i<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function Qu(e,t,i,r){for(var o=0;o<e.length;++o){var l=e[o],p=!0;if(l.ranges){l.copied||(l=e[o]=l.deepCopy(),l.copied=!0);for(var c=0;c<l.ranges.length;c++)Hu(l.ranges[c].anchor,t,i,r),Hu(l.ranges[c].head,t,i,r);continue}for(var d=0;d<l.changes.length;++d){var E=l.changes[d];if(i<E.from.line)E.from=W(E.from.line+r,E.from.ch),E.to=W(E.to.line+r,E.to.ch);else if(t<=E.to.line){p=!1;break}}p||(e.splice(0,o+1),o=0)}}function Yu(e,t){var i=t.from.line,r=t.to.line,o=t.text.length-(r-i)-1;Qu(e.done,i,r,o),Qu(e.undone,i,r,o)}function Mn(e,t,i,r){var o=t,l=t;return typeof t=="number"?l=q(e,Cl(e,t)):o=pe(t),o==null?null:(r(l,o)&&e.cm&&Vr(e.cm,o,i),l)}function Pn(e){this.lines=e,this.parent=null;for(var t=0,i=0;i<e.length;++i)e[i].parent=this,t+=e[i].height;this.height=t}Pn.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var i=e,r=e+t;i<r;++i){var o=this.lines[i];this.height-=o.height,_g(o),nt(o,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,i){this.height+=i,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,i){for(var r=e+t;e<r;++e)if(i(this.lines[e]))return!0}};function Vn(e){this.children=e;for(var t=0,i=0,r=0;r<e.length;++r){var o=e[r];t+=o.chunkSize(),i+=o.height,o.parent=this}this.size=t,this.height=i,this.parent=null}Vn.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var i=0;i<this.children.length;++i){var r=this.children[i],o=r.chunkSize();if(e<o){var l=Math.min(t,o-e),p=r.height;if(r.removeInner(e,l),this.height-=p-r.height,o==l&&(this.children.splice(i--,1),r.parent=null),(t-=l)==0)break;e=0}else e-=o}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Pn))){var c=[];this.collapse(c),this.children=[new Pn(c)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,i){this.size+=t.length,this.height+=i;for(var r=0;r<this.children.length;++r){var o=this.children[r],l=o.chunkSize();if(e<=l){if(o.insertInner(e,t,i),o.lines&&o.lines.length>50){for(var p=o.lines.length%25+25,c=p;c<o.lines.length;){var d=new Pn(o.lines.slice(c,c+=25));o.height-=d.height,this.children.splice(++r,0,d),d.parent=this}o.lines=o.lines.slice(0,p),this.maybeSpill()}break}e-=l}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),i=new Vn(t);if(e.parent){e.size-=i.size,e.height-=i.height;var o=Ge(e.parent.children,e);e.parent.children.splice(o+1,0,i)}else{var r=new Vn(e.children);r.parent=e,e.children=[r,i],e=r}i.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,i){for(var r=0;r<this.children.length;++r){var o=this.children[r],l=o.chunkSize();if(e<l){var p=Math.min(t,l-e);if(o.iterN(e,p,i))return!0;if((t-=p)==0)break;e=0}else e-=l}}};var wn=function(e,t,i){if(i)for(var r in i)i.hasOwnProperty(r)&&(this[r]=i[r]);this.doc=e,this.node=t};wn.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,i=this.line,r=pe(i);if(!(r==null||!t)){for(var o=0;o<t.length;++o)t[o]==this&&t.splice(o--,1);t.length||(i.widgets=null);var l=Sn(this);wt(i,Math.max(0,i.height-l)),e&&(_t(e,function(){Xu(e,i,-l),Vr(e,r,"widget")}),nt(e,"lineWidgetCleared",e,this,r))}},wn.prototype.changed=function(){var e=this,t=this.height,i=this.doc.cm,r=this.line;this.height=null;var o=Sn(this)-t;o&&(Pr(this.doc,r)||wt(r,r.height+o),i&&_t(i,function(){i.curOp.forceUpdate=!0,Xu(i,r,o),nt(i,"lineWidgetChanged",i,e,pe(r))}))},Dr(wn);function Xu(e,t,i){Cr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ua(e,i)}function _E(e,t,i,r){var o=new wn(e,i,r),l=e.cm;return l&&o.noHScroll&&(l.display.alignWidgets=!0),Mn(e,t,"widget",function(p){var c=p.widgets||(p.widgets=[]);if(o.insertAt==null?c.push(o):c.splice(Math.min(c.length,Math.max(0,o.insertAt)),0,o),o.line=p,l&&!Pr(e,p)){var d=Cr(p)<e.scrollTop;wt(p,p.height+Sn(o)),d&&ua(l,o.height),l.curOp.forceUpdate=!0}return!0}),l&&nt(l,"lineWidgetAdded",l,o,typeof t=="number"?t:pe(t)),o}var Ju=0,Zr=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Ju};Zr.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&pi(e),pt(this,"clear")){var i=this.find();i&&nt(this,"clear",i.from,i.to)}for(var r=null,o=null,l=0;l<this.lines.length;++l){var p=this.lines[l],c=Tn(p.markedSpans,this);e&&!this.collapsed?Vr(e,pe(p),"text"):e&&(c.to!=null&&(o=pe(p)),c.from!=null&&(r=pe(p))),p.markedSpans=Ug(p.markedSpans,c),c.from==null&&this.collapsed&&!Pr(this.doc,p)&&e&&wt(p,Bi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var d=0;d<this.lines.length;++d){var E=ir(this.lines[d]),N=So(E);N>e.display.maxLineLength&&(e.display.maxLine=E,e.display.maxLineLength=N,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&Lt(e,r,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Pu(e.doc)),e&&nt(e,"markerCleared",e,this,r,o),t&&ci(e),this.parent&&this.parent.clear()}},Zr.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,r,o=0;o<this.lines.length;++o){var l=this.lines[o],p=Tn(l.markedSpans,this);if(p.from!=null&&(i=W(t?l:pe(l),p.from),e==-1))return i;if(p.to!=null&&(r=W(t?l:pe(l),p.to),e==1))return r}return i&&{from:i,to:r}},Zr.prototype.changed=function(){var e=this,t=this.find(-1,!0),i=this,r=this.doc.cm;!t||!r||_t(r,function(){var o=t.line,l=pe(t.line),p=zs(r,l);if(p&&(eu(p),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Pr(i.doc,o)&&i.height!=null){var c=i.height;i.height=null;var d=Sn(i)-c;d&&wt(o,o.height+d)}nt(r,"markerChanged",r,e)})},Zr.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||Ge(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Zr.prototype.detachLine=function(e){if(this.lines.splice(Ge(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Dr(Zr);function Zi(e,t,i,r,o){if(r&&r.shared)return WE(e,t,i,r,o);if(e.cm&&!e.cm.curOp)return ot(e.cm,Zi)(e,t,i,r,o);var l=new Zr(e,o),p=ce(t,i);if(r&&ze(r,l,!1),p>0||p==0&&l.clearWhenEmpty!==!1)return l;if(l.replacedWith&&(l.collapsed=!0,l.widgetNode=Oe("span",[l.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||l.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(l.widgetNode.insertLeft=!0)),l.collapsed){if(Vl(e,t.line,t,i,l)||t.line!=i.line&&Vl(e,i.line,t,i,l))throw new Error("Inserting collapsed marker partially overlapping an existing one");Og()}l.addToHistory&&Ou(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var c=t.line,d=e.cm,E;if(e.iter(c,i.line+1,function(C){d&&l.collapsed&&!d.options.lineWrapping&&ir(C)==d.display.maxLine&&(E=!0),l.collapsed&&c!=t.line&&wt(C,0),Gg(C,new No(l,c==t.line?t.ch:null,c==i.line?i.ch:null),e.cm&&e.cm.curOp),++c}),l.collapsed&&e.iter(t.line,i.line+1,function(C){Pr(e,C)&&wt(C,0)}),l.clearOnEnter&&se(l,"beforeCursorEnter",function(){return l.clear()}),l.readOnly&&(bg(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),l.collapsed&&(l.id=++Ju,l.atomic=!0),d){if(E&&(d.curOp.updateMaxLine=!0),l.collapsed)Lt(d,t.line,i.line+1);else if(l.className||l.startStyle||l.endStyle||l.css||l.attributes||l.title)for(var N=t.line;N<=i.line;N++)Vr(d,N,"text");l.atomic&&Pu(d.doc),nt(d,"markerAdded",d,l)}return l}var _n=function(e,t){this.markers=e,this.primary=t;for(var i=0;i<e.length;++i)e[i].parent=this};_n.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();nt(this,"clear")}},_n.prototype.find=function(e,t){return this.primary.find(e,t)},Dr(_n);function WE(e,t,i,r,o){r=ze(r),r.shared=!1;var l=[Zi(e,t,i,r,o)],p=l[0],c=r.widgetNode;return kr(e,function(d){c&&(r.widgetNode=c.cloneNode(!0)),l.push(Zi(d,fe(d,t),fe(d,i),r,o));for(var E=0;E<d.linked.length;++E)if(d.linked[E].isParent)return;p=$(l)}),new _n(l,p)}function ju(e){return e.findMarks(W(e.first,0),e.clipPos(W(e.lastLine())),function(t){return t.parent})}function kE(e,t){for(var i=0;i<t.length;i++){var r=t[i],o=r.find(),l=e.clipPos(o.from),p=e.clipPos(o.to);if(ce(l,p)){var c=Zi(e,l,p,r.primary,r.primary.type);r.markers.push(c),c.parent=r}}}function ZE(e){for(var t=function(r){var o=e[r],l=[o.primary.doc];kr(o.primary.doc,function(d){return l.push(d)});for(var p=0;p<o.markers.length;p++){var c=o.markers[p];Ge(l,c.doc)==-1&&(c.parent=null,o.markers.splice(p--,1))}},i=0;i<e.length;i++)t(i)}var HE=0,Rt=function(e,t,i,r,o){if(!(this instanceof Rt))return new Rt(e,t,i,r,o);i==null&&(i=0),Vn.call(this,[new Pn([new Ui("",null)])]),this.first=i,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=i;var l=W(i,0);this.sel=_r(l),this.history=new Po(null),this.id=++HE,this.modeOption=t,this.lineSep=r,this.direction=o=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),ma(this,{from:l,to:l,text:e}),Et(this,_r(l),k)};Rt.prototype=Gr(Vn.prototype,{constructor:Rt,iter:function(e,t,i){i?this.iterN(e-this.first,t-e,i):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var i=0,r=0;r<t.length;++r)i+=t[r].height;this.insertInner(e-this.first,t,i)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=fr(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:st(function(e){var t=W(this.first,0),i=this.first+this.size-1;Wi(this,{from:t,to:W(i,q(this,i).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&yn(this.cm,0,0),Et(this,_r(t),k)}),replaceRange:function(e,t,i,r){t=fe(this,t),i=i?fe(this,i):t,ki(this,e,t,i,r)},getRange:function(e,t,i){var r=gt(this,fe(this,e),fe(this,t));return i===!1?r:i===""?r.join(""):r.join(i||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Mr(this,e))return q(this,e)},getLineNumber:function(e){return pe(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=q(this,e)),ir(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return fe(this,e)},getCursor:function(e){var t=this.sel.primary(),i;return e==null||e=="head"?i=t.head:e=="anchor"?i=t.anchor:e=="end"||e=="to"||e===!1?i=t.to():i=t.from(),i},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:st(function(e,t,i){Bu(this,fe(this,typeof e=="number"?W(e,t||0):e),null,i)}),setSelection:st(function(e,t,i){Bu(this,fe(this,e),fe(this,t||e),i)}),extendSelection:st(function(e,t,i){wo(this,fe(this,e),t&&fe(this,t),i)}),extendSelections:st(function(e,t){Fu(this,Al(this,e),t)}),extendSelectionsBy:st(function(e,t){var i=Qt(this.sel.ranges,e);Fu(this,Al(this,i),t)}),setSelections:st(function(e,t,i){if(e.length){for(var r=[],o=0;o<e.length;o++)r[o]=new Ne(fe(this,e[o].anchor),fe(this,e[o].head||e[o].anchor));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),Et(this,or(this.cm,r,t),i)}}),addSelection:st(function(e,t,i){var r=this.sel.ranges.slice(0);r.push(new Ne(fe(this,e),fe(this,t||e))),Et(this,or(this.cm,r,r.length-1),i)}),getSelection:function(e){for(var t=this.sel.ranges,i,r=0;r<t.length;r++){var o=gt(this,t[r].from(),t[r].to());i=i?i.concat(o):o}return e===!1?i:i.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],i=this.sel.ranges,r=0;r<i.length;r++){var o=gt(this,i[r].from(),i[r].to());e!==!1&&(o=o.join(e||this.lineSeparator())),t[r]=o}return t},replaceSelection:function(e,t,i){for(var r=[],o=0;o<this.sel.ranges.length;o++)r[o]=e;this.replaceSelections(r,t,i||"+input")},replaceSelections:st(function(e,t,i){for(var r=[],o=this.sel,l=0;l<o.ranges.length;l++){var p=o.ranges[l];r[l]={from:p.from(),to:p.to(),text:this.splitLines(e[l]),origin:i}}for(var c=t&&t!="end"&&UE(this,r,t),d=r.length-1;d>=0;d--)Wi(this,r[d]);c?Du(this,c):this.cm&&Pi(this.cm)}),undo:st(function(){ko(this,"undo")}),redo:st(function(){ko(this,"redo")}),undoSelection:st(function(){ko(this,"undo",!0)}),redoSelection:st(function(){ko(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var o=0;o<e.undone.length;o++)e.undone[o].ranges||++i;return{undo:t,redo:i}},clearHistory:function(){var e=this;this.history=new Po(this.history),kr(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:wi(this.history.done),undone:wi(this.history.undone)}},setHistory:function(e){var t=this.history=new Po(this.history);t.done=wi(e.done.slice(0),null,!0),t.undone=wi(e.undone.slice(0),null,!0)},setGutterMarker:st(function(e,t,i){return Mn(this,e,"gutter",function(r){var o=r.gutterMarkers||(r.gutterMarkers={});return o[t]=i,!i&&He(o)&&(r.gutterMarkers=null),!0})}),clearGutter:st(function(e){var t=this;this.iter(function(i){i.gutterMarkers&&i.gutterMarkers[e]&&Mn(t,i,"gutter",function(){return i.gutterMarkers[e]=null,He(i.gutterMarkers)&&(i.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!Mr(this,e)||(t=e,e=q(this,e),!e))return null}else if(t=pe(e),t==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:st(function(e,t,i){return Mn(this,e,t=="gutter"?"gutter":"class",function(r){var o=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!r[o])r[o]=i;else{if(te(i).test(r[o]))return!1;r[o]+=" "+i}return!0})}),removeLineClass:st(function(e,t,i){return Mn(this,e,t=="gutter"?"gutter":"class",function(r){var o=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",l=r[o];if(l)if(i==null)r[o]=null;else{var p=l.match(te(i));if(!p)return!1;var c=p.index+p[0].length;r[o]=l.slice(0,p.index)+(!p.index||c==l.length?"":" ")+l.slice(c)||null}else return!1;return!0})}),addLineWidget:st(function(e,t,i){return _E(this,e,t,i)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,i){return Zi(this,fe(this,e),fe(this,t),i,i&&i.type||"range")},setBookmark:function(e,t){var i={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=fe(this,e),Zi(this,e,e,i,"bookmark")},findMarksAt:function(e){e=fe(this,e);var t=[],i=q(this,e.line).markedSpans;if(i)for(var r=0;r<i.length;++r){var o=i[r];(o.from==null||o.from<=e.ch)&&(o.to==null||o.to>=e.ch)&&t.push(o.marker.parent||o.marker)}return t},findMarks:function(e,t,i){e=fe(this,e),t=fe(this,t);var r=[],o=e.line;return this.iter(e.line,t.line+1,function(l){var p=l.markedSpans;if(p)for(var c=0;c<p.length;c++){var d=p[c];!(d.to!=null&&o==e.line&&e.ch>=d.to||d.from==null&&o!=e.line||d.from!=null&&o==t.line&&d.from>=t.ch)&&(!i||i(d.marker))&&r.push(d.marker.parent||d.marker)}++o}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var r=0;r<i.length;++r)i[r].from!=null&&e.push(i[r].marker)}),e},posFromIndex:function(e){var t,i=this.first,r=this.lineSeparator().length;return this.iter(function(o){var l=o.text.length+r;if(l>e)return t=e,!0;e-=l,++i}),fe(this,W(i,t))},indexFromPos:function(e){e=fe(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var i=this.lineSeparator().length;return this.iter(this.first,e.line,function(r){t+=r.text.length+i}),t},copy:function(e){var t=new Rt(fr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,i=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<i&&(i=e.to);var r=new Rt(fr(this,t,i),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],kE(r,ju(this)),r},unlinkDoc:function(e){if(e instanceof Me&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var i=this.linked[t];if(i.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),ZE(ju(this));break}}if(e.history==this.history){var r=[e.id];kr(e,function(o){return r.push(o.id)},!0),e.history=new Po(null),e.history.done=wi(this.history.done,r),e.history.undone=wi(this.history.undone,r)}},iterLinkedDocs:function(e){kr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Ri(e)},lineSeparator:function(){return this.lineSep||`
|
|
11
|
-
`},setDirection:st(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&GE(this.cm))})}),Rt.prototype.eachLine=Rt.prototype.iter;var zu=0;function QE(e){var t=this;if(qu(t),!(Ve(t,e)||Ar(t.display,e))){ht(e),m&&(zu=+new Date);var i=si(t,e,!0),r=e.dataTransfer.files;if(!(!i||t.isReadOnly()))if(r&&r.length&&window.FileReader&&window.File)for(var o=r.length,l=Array(o),p=0,c=function(){++p==o&&ot(t,function(){i=fe(t.doc,i);var O={from:i,to:i,text:t.doc.splitLines(l.filter(function(P){return P!=null}).join(t.doc.lineSeparator())),origin:"paste"};Wi(t.doc,O),Du(t.doc,_r(fe(t.doc,i),fe(t.doc,Wr(O))))})()},d=function(O,P){if(t.options.allowDropFileTypes&&Ge(t.options.allowDropFileTypes,O.type)==-1){c();return}var _=new FileReader;_.onerror=function(){return c()},_.onload=function(){var Z=_.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Z)){c();return}l[P]=Z,c()},_.readAsText(O)},E=0;E<r.length;E++)d(r[E],E);else{if(t.state.draggingText&&t.doc.sel.contains(i)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var N=e.dataTransfer.getData("Text");if(N){var C;if(t.state.draggingText&&!t.state.draggingText.copy&&(C=t.listSelections()),_o(t.doc,_r(i,i)),C)for(var G=0;G<C.length;++G)ki(t.doc,"",C[G].anchor,C[G].head,"drag");t.replaceSelection(N,"around","paste"),t.display.input.focus()}}catch{}}}}function YE(e,t){if(m&&(!e.state.draggingText||+new Date-zu<100)){ii(t);return}if(!(Ve(e,t)||Ar(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!M)){var i=Y("img",null,null,"position: fixed; left: 0; top: 0;");i.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",y&&(i.width=i.height=1,e.display.wrapper.appendChild(i),i._top=i.offsetTop),t.dataTransfer.setDragImage(i,0,0),y&&i.parentNode.removeChild(i)}}function XE(e,t){var i=si(e,t);if(i){var r=document.createDocumentFragment();na(e,i,r),e.display.dragCursor||(e.display.dragCursor=Y("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),me(e.display.dragCursor,r)}}function qu(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Ku(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),i=[],r=0;r<t.length;r++){var o=t[r].CodeMirror;o&&i.push(o)}i.length&&i[0].operation(function(){for(var l=0;l<i.length;l++)e(i[l])})}}var $u=!1;function JE(){$u||(jE(),$u=!0)}function jE(){var e;se(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Ku(zE)},100))}),se(window,"blur",function(){return Ku(Mi)})}function zE(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Hr={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Wn=0;Wn<10;Wn++)Hr[Wn+48]=Hr[Wn+96]=String(Wn);for(var Zo=65;Zo<=90;Zo++)Hr[Zo]=String.fromCharCode(Zo);for(var kn=1;kn<=12;kn++)Hr[kn+111]=Hr[kn+63235]="F"+kn;var Lr={};Lr.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Lr.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Lr.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Lr.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Lr.default=R?Lr.macDefault:Lr.pcDefault;function qE(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var i,r,o,l,p=0;p<t.length-1;p++){var c=t[p];if(/^(cmd|meta|m)$/i.test(c))l=!0;else if(/^a(lt)?$/i.test(c))i=!0;else if(/^(c|ctrl|control)$/i.test(c))r=!0;else if(/^s(hift)?$/i.test(c))o=!0;else throw new Error("Unrecognized modifier name: "+c)}return i&&(e="Alt-"+e),r&&(e="Ctrl-"+e),l&&(e="Cmd-"+e),o&&(e="Shift-"+e),e}function KE(e){var t={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(/^(name|fallthrough|(de|at)tach)$/.test(i))continue;if(r=="..."){delete e[i];continue}for(var o=Qt(i.split(" "),qE),l=0;l<o.length;l++){var p=void 0,c=void 0;l==o.length-1?(c=o.join(" "),p=r):(c=o.slice(0,l+1).join(" "),p="...");var d=t[c];if(!d)t[c]=p;else if(d!=p)throw new Error("Inconsistent bindings for "+c)}delete e[i]}for(var E in t)e[E]=t[E];return e}function Hi(e,t,i,r){t=Ho(t);var o=t.call?t.call(e,r):t[e];if(o===!1)return"nothing";if(o==="...")return"multi";if(o!=null&&i(o))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Hi(e,t.fallthrough,i,r);for(var l=0;l<t.fallthrough.length;l++){var p=Hi(e,t.fallthrough[l],i,r);if(p)return p}}}function ep(e){var t=typeof e=="string"?e:Hr[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function tp(e,t,i){var r=e;return t.altKey&&r!="Alt"&&(e="Alt-"+e),(Q?t.metaKey:t.ctrlKey)&&r!="Ctrl"&&(e="Ctrl-"+e),(Q?t.ctrlKey:t.metaKey)&&r!="Mod"&&(e="Cmd-"+e),!i&&t.shiftKey&&r!="Shift"&&(e="Shift-"+e),e}function rp(e,t){if(y&&e.keyCode==34&&e.char)return!1;var i=Hr[e.keyCode];return i==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(i=e.code),tp(i,e,t))}function Ho(e){return typeof e=="string"?Lr[e]:e}function Qi(e,t){for(var i=e.doc.sel.ranges,r=[],o=0;o<i.length;o++){for(var l=t(i[o]);r.length&&ce(l.from,$(r).to)<=0;){var p=r.pop();if(ce(p.from,l.from)<0){l.from=p.from;break}}r.push(l)}_t(e,function(){for(var c=r.length-1;c>=0;c--)ki(e.doc,"",r[c].from,r[c].to,"+delete");Pi(e)})}function Na(e,t,i){var r=Kt(e.text,t+i,i);return r<0||r>e.text.length?null:r}function Ta(e,t,i){var r=Na(e,t.ch,i);return r==null?null:new W(t.line,r,i<0?"after":"before")}function Ca(e,t,i,r,o){if(e){t.doc.direction=="rtl"&&(o=-o);var l=rt(i,t.doc.direction);if(l){var p=o<0?$(l):l[0],c=o<0==(p.level==1),d=c?"after":"before",E;if(p.level>0||t.doc.direction=="rtl"){var N=Fi(t,i);E=o<0?i.text.length-1:0;var C=Er(t,N,E).top;E=Fr(function(G){return Er(t,N,G).top==C},o<0==(p.level==1)?p.from:p.to-1,E),d=="before"&&(E=Na(i,E,1))}else E=o<0?p.to:p.from;return new W(r,E,d)}}return new W(r,o<0?i.text.length:0,o<0?"before":"after")}function $E(e,t,i,r){var o=rt(t,e.doc.direction);if(!o)return Ta(t,i,r);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var l=pr(o,i.ch,i.sticky),p=o[l];if(e.doc.direction=="ltr"&&p.level%2==0&&(r>0?p.to>i.ch:p.from<i.ch))return Ta(t,i,r);var c=function(X,z){return Na(t,X instanceof W?X.ch:X,z)},d,E=function(X){return e.options.lineWrapping?(d=d||Fi(e,t),au(e,t,d,X)):{begin:0,end:t.text.length}},N=E(i.sticky=="before"?c(i,-1):i.ch);if(e.doc.direction=="rtl"||p.level==1){var C=p.level==1==r<0,G=c(i,C?1:-1);if(G!=null&&(C?G<=p.to&&G<=N.end:G>=p.from&&G>=N.begin)){var O=C?"before":"after";return new W(i.line,G,O)}}var P=function(X,z,J){for(var K=function(ye,at){return at?new W(i.line,c(ye,1),"before"):new W(i.line,ye,"after")};X>=0&&X<o.length;X+=z){var ae=o[X],ne=z>0==(ae.level!=1),Ee=ne?J.begin:c(J.end,-1);if(ae.from<=Ee&&Ee<ae.to||(Ee=ne?ae.from:c(ae.to,-1),J.begin<=Ee&&Ee<J.end))return K(Ee,ne)}},_=P(l+r,r,N);if(_)return _;var Z=r>0?N.end:c(N.begin,-1);return Z!=null&&!(r>0&&Z==t.text.length)&&(_=P(r>0?0:o.length-1,r,E(Z)),_)?_:null}var Zn={selectAll:_u,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),k)},killLine:function(e){return Qi(e,function(t){if(t.empty()){var i=q(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line<e.lastLine()?{from:t.head,to:W(t.head.line+1,0)}:{from:t.head,to:W(t.head.line,i)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Qi(e,function(t){return{from:W(t.from().line,0),to:fe(e.doc,W(t.to().line+1,0))}})},delLineLeft:function(e){return Qi(e,function(t){return{from:W(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return Qi(e,function(t){var i=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:i},"div");return{from:r,to:t.from()}})},delWrappedLineRight:function(e){return Qi(e,function(t){var i=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:i},"div");return{from:t.from(),to:r}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(W(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(W(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return ip(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return np(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return em(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:i},"div")},Te)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:i},"div")},Te)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:i},"div");return r.ch<e.getLine(r.line).search(/\S/)?np(e,t.head):r},Te)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var t=[],i=e.listSelections(),r=e.options.tabSize,o=0;o<i.length;o++){var l=i[o].from(),p=De(e.getLine(l.line),l.ch,r);t.push(jt(r-p%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return _t(e,function(){for(var t=e.listSelections(),i=[],r=0;r<t.length;r++)if(t[r].empty()){var o=t[r].head,l=q(e.doc,o.line).text;if(l){if(o.ch==l.length&&(o=new W(o.line,o.ch-1)),o.ch>0)o=new W(o.line,o.ch+1),e.replaceRange(l.charAt(o.ch-1)+l.charAt(o.ch-2),W(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var p=q(e.doc,o.line-1).text;p&&(o=new W(o.line,1),e.replaceRange(l.charAt(0)+e.doc.lineSeparator()+p.charAt(p.length-1),W(o.line-1,p.length-1),o,"+transpose"))}}i.push(new Ne(o,o))}e.setSelections(i)})},newlineAndIndent:function(e){return _t(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Pi(e)})},openLine:function(e){return e.replaceSelection(`
|
|
12
|
-
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function ip(e,t){var i=q(e.doc,t),r=ir(i);return r!=i&&(t=pe(r)),Ca(!0,e,r,t,1)}function em(e,t){var i=q(e.doc,t),r=Pg(i);return r!=i&&(t=pe(r)),Ca(!0,e,i,t,-1)}function np(e,t){var i=ip(e,t.line),r=q(e.doc,i.line),o=rt(r,e.doc.direction);if(!o||o[0].level==0){var l=Math.max(i.ch,r.text.search(/\S/)),p=t.line==i.line&&t.ch<=l&&t.ch;return W(i.line,p?0:l,i.sticky)}return i}function Qo(e,t,i){if(typeof t=="string"&&(t=Zn[t],!t))return!1;e.display.input.ensurePolled();var r=e.display.shift,o=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),i&&(e.display.shift=!1),o=t(e)!=re}finally{e.display.shift=r,e.state.suppressEdits=!1}return o}function tm(e,t,i){for(var r=0;r<e.state.keyMaps.length;r++){var o=Hi(t,e.state.keyMaps[r],i,e);if(o)return o}return e.options.extraKeys&&Hi(t,e.options.extraKeys,i,e)||Hi(t,e.options.keyMap,i,e)}var rm=new tt;function Hn(e,t,i,r){var o=e.state.keySeq;if(o){if(ep(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:rm.set(50,function(){e.state.keySeq==o&&(e.state.keySeq=null,e.display.input.reset())}),op(e,o+" "+t,i,r))return!0}return op(e,t,i,r)}function op(e,t,i,r){var o=tm(e,t,r);return o=="multi"&&(e.state.keySeq=t),o=="handled"&&nt(e,"keyHandled",e,t,i),(o=="handled"||o=="multi")&&(ht(i),oa(e)),!!o}function sp(e,t){var i=rp(t,!0);return i?t.shiftKey&&!e.state.keySeq?Hn(e,"Shift-"+i,t,function(r){return Qo(e,r,!0)})||Hn(e,i,t,function(r){if(typeof r=="string"?/^go[A-Z]/.test(r):r.motion)return Qo(e,r)}):Hn(e,i,t,function(r){return Qo(e,r)}):!1}function im(e,t,i){return Hn(e,"'"+i+"'",t,function(r){return Qo(e,r,!0)})}var Aa=null;function ap(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=je(At(t)),!Ve(t,e))){m&&I<11&&e.keyCode==27&&(e.returnValue=!1);var i=e.keyCode;t.display.shift=i==16||e.shiftKey;var r=sp(t,e);y&&(Aa=r?i:null,!r&&i==88&&!In&&(R?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),a&&!R&&!r&&i==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),i==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&nm(t)}}function nm(e){var t=e.display.lineDiv;Le(t,"CodeMirror-crosshair");function i(r){(r.keyCode==18||!r.altKey)&&(ue(t,"CodeMirror-crosshair"),St(document,"keyup",i),St(document,"mouseover",i))}se(document,"keyup",i),se(document,"mouseover",i)}function lp(e){e.keyCode==16&&(this.doc.sel.shift=!1),Ve(this,e)}function up(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(Ar(t.display,e)||Ve(t,e)||e.ctrlKey&&!e.altKey||R&&e.metaKey)){var i=e.keyCode,r=e.charCode;if(y&&i==Aa){Aa=null,ht(e);return}if(!(y&&(!e.which||e.which<10)&&sp(t,e))){var o=String.fromCharCode(r??i);o!="\b"&&(im(t,e,o)||t.display.input.onKeyPress(e))}}}var om=400,Sa=function(e,t,i){this.time=e,this.pos=t,this.button=i};Sa.prototype.compare=function(e,t,i){return this.time+om>e&&ce(t,this.pos)==0&&i==this.button};var Qn,Yn;function sm(e,t){var i=+new Date;return Yn&&Yn.compare(i,e,t)?(Qn=Yn=null,"triple"):Qn&&Qn.compare(i,e,t)?(Yn=new Sa(i,e,t),Qn=null,"double"):(Qn=new Sa(i,e,t),Yn=null,"single")}function pp(e){var t=this,i=t.display;if(!(Ve(t,e)||i.activeTouch&&i.input.supportsTouch())){if(i.input.ensurePolled(),i.shift=e.shiftKey,Ar(i,e)){T||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(!La(t,e)){var r=si(t,e),o=Si(e),l=r?sm(r,o):"single";Ht(t).focus(),o==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&am(t,o,r,l,e))&&(o==1?r?um(t,r,l,e):Ai(e)==i.scroller&&ht(e):o==2?(r&&wo(t.doc,r),setTimeout(function(){return i.input.focus()},20)):o==3&&(de?t.display.input.onContextMenu(e):sa(t)))}}}function am(e,t,i,r,o){var l="Click";return r=="double"?l="Double"+l:r=="triple"&&(l="Triple"+l),l=(t==1?"Left":t==2?"Middle":"Right")+l,Hn(e,tp(l,o),o,function(p){if(typeof p=="string"&&(p=Zn[p]),!p)return!1;var c=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),c=p(e,i)!=re}finally{e.state.suppressEdits=!1}return c})}function lm(e,t,i){var r=e.getOption("configureMouse"),o=r?r(e,t,i):{};if(o.unit==null){var l=B?i.shiftKey&&i.metaKey:i.altKey;o.unit=l?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(o.extend==null||e.doc.extend)&&(o.extend=e.doc.extend||i.shiftKey),o.addNew==null&&(o.addNew=R?i.metaKey:i.ctrlKey),o.moveOnDrag==null&&(o.moveOnDrag=!(R?i.altKey:i.ctrlKey)),o}function um(e,t,i,r){m?setTimeout(he(cu,e),0):e.curOp.focus=je(At(e));var o=lm(e,i,r),l=e.doc.sel,p;e.options.dragDrop&&ho&&!e.isReadOnly()&&i=="single"&&(p=l.contains(t))>-1&&(ce((p=l.ranges[p]).from(),t)<0||t.xRel>0)&&(ce(p.to(),t)>0||t.xRel<0)?pm(e,r,t,o):cm(e,r,t,o)}function pm(e,t,i,r){var o=e.display,l=!1,p=ot(e,function(E){T&&(o.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:sa(e)),St(o.wrapper.ownerDocument,"mouseup",p),St(o.wrapper.ownerDocument,"mousemove",c),St(o.scroller,"dragstart",d),St(o.scroller,"drop",p),l||(ht(E),r.addNew||wo(e.doc,i,null,null,r.extend),T&&!M||m&&I==9?setTimeout(function(){o.wrapper.ownerDocument.body.focus({preventScroll:!0}),o.input.focus()},20):o.input.focus())}),c=function(E){l=l||Math.abs(t.clientX-E.clientX)+Math.abs(t.clientY-E.clientY)>=10},d=function(){return l=!0};T&&(o.scroller.draggable=!0),e.state.draggingText=p,p.copy=!r.moveOnDrag,se(o.wrapper.ownerDocument,"mouseup",p),se(o.wrapper.ownerDocument,"mousemove",c),se(o.scroller,"dragstart",d),se(o.scroller,"drop",p),e.state.delayingBlurEvent=!0,setTimeout(function(){return o.input.focus()},20),o.scroller.dragDrop&&o.scroller.dragDrop()}function cp(e,t,i){if(i=="char")return new Ne(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new Ne(W(t.line,0),fe(e.doc,W(t.line+1,0)));var r=i(e,t);return new Ne(r.from,r.to)}function cm(e,t,i,r){m&&sa(e);var o=e.display,l=e.doc;ht(t);var p,c,d=l.sel,E=d.ranges;if(r.addNew&&!r.extend?(c=l.sel.contains(i),c>-1?p=E[c]:p=new Ne(i,i)):(p=l.sel.primary(),c=l.sel.primIndex),r.unit=="rectangle")r.addNew||(p=new Ne(i,i)),i=si(e,t,!0,!0),c=-1;else{var N=cp(e,i,r.unit);r.extend?p=va(p,N.anchor,N.head,r.extend):p=N}r.addNew?c==-1?(c=E.length,Et(l,or(e,E.concat([p]),c),{scroll:!1,origin:"*mouse"})):E.length>1&&E[c].empty()&&r.unit=="char"&&!r.extend?(Et(l,or(e,E.slice(0,c).concat(E.slice(c+1)),0),{scroll:!1,origin:"*mouse"}),d=l.sel):Ia(l,c,p,Ze):(c=0,Et(l,new Yt([p],0),Ze),d=l.sel);var C=i;function G(J){if(ce(C,J)!=0)if(C=J,r.unit=="rectangle"){for(var K=[],ae=e.options.tabSize,ne=De(q(l,i.line).text,i.ch,ae),Ee=De(q(l,J.line).text,J.ch,ae),ye=Math.min(ne,Ee),at=Math.max(ne,Ee),we=Math.min(i.line,J.line),Wt=Math.min(e.lastLine(),Math.max(i.line,J.line));we<=Wt;we++){var yt=q(l,we).text,Xe=ve(yt,ye,ae);ye==at?K.push(new Ne(W(we,Xe),W(we,Xe))):yt.length>Xe&&K.push(new Ne(W(we,Xe),W(we,ve(yt,at,ae))))}K.length||K.push(new Ne(i,i)),Et(l,or(e,d.ranges.slice(0,c).concat(K),c),{origin:"*mouse",scroll:!1}),e.scrollIntoView(J)}else{var bt=p,ct=cp(e,J,r.unit),qe=bt.anchor,Je;ce(ct.anchor,qe)>0?(Je=ct.head,qe=vo(bt.from(),ct.anchor)):(Je=ct.anchor,qe=xo(bt.to(),ct.head));var ke=d.ranges.slice(0);ke[c]=fm(e,new Ne(fe(l,qe),Je)),Et(l,or(e,ke,c),Ze)}}var O=o.wrapper.getBoundingClientRect(),P=0;function _(J){var K=++P,ae=si(e,J,!0,r.unit=="rectangle");if(ae)if(ce(ae,C)!=0){e.curOp.focus=je(At(e)),G(ae);var ne=Fo(o,l);(ae.line>=ne.to||ae.line<ne.from)&&setTimeout(ot(e,function(){P==K&&_(J)}),150)}else{var Ee=J.clientY<O.top?-20:J.clientY>O.bottom?20:0;Ee&&setTimeout(ot(e,function(){P==K&&(o.scroller.scrollTop+=Ee,_(J))}),50)}}function Z(J){e.state.selectingText=!1,P=1/0,J&&(ht(J),o.input.focus()),St(o.wrapper.ownerDocument,"mousemove",X),St(o.wrapper.ownerDocument,"mouseup",z),l.history.lastSelOrigin=null}var X=ot(e,function(J){J.buttons===0||!Si(J)?Z(J):_(J)}),z=ot(e,Z);e.state.selectingText=z,se(o.wrapper.ownerDocument,"mousemove",X),se(o.wrapper.ownerDocument,"mouseup",z)}function fm(e,t){var i=t.anchor,r=t.head,o=q(e.doc,i.line);if(ce(i,r)==0&&i.sticky==r.sticky)return t;var l=rt(o);if(!l)return t;var p=pr(l,i.ch,i.sticky),c=l[p];if(c.from!=i.ch&&c.to!=i.ch)return t;var d=p+(c.from==i.ch==(c.level!=1)?0:1);if(d==0||d==l.length)return t;var E;if(r.line!=i.line)E=(r.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var N=pr(l,r.ch,r.sticky),C=N-p||(r.ch-i.ch)*(c.level==1?-1:1);N==d-1||N==d?E=C<0:E=C>0}var G=l[d+(E?-1:0)],O=E==(G.level==1),P=O?G.from:G.to,_=O?"after":"before";return i.ch==P&&i.sticky==_?t:new Ne(new W(i.line,P,_),r)}function fp(e,t,i,r){var o,l;if(t.touches)o=t.touches[0].clientX,l=t.touches[0].clientY;else try{o=t.clientX,l=t.clientY}catch{return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ht(t);var p=e.display,c=p.lineDiv.getBoundingClientRect();if(l>c.bottom||!pt(e,i))return cr(t);l-=c.top-p.viewOffset;for(var d=0;d<e.display.gutterSpecs.length;++d){var E=p.gutters.childNodes[d];if(E&&E.getBoundingClientRect().right>=o){var N=dr(e.doc,l),C=e.display.gutterSpecs[d];return Fe(e,i,e,N,C.className,t),cr(t)}}}function La(e,t){return fp(e,t,"gutterClick",!0)}function dp(e,t){Ar(e.display,t)||dm(e,t)||Ve(e,t,"contextmenu")||de||e.display.input.onContextMenu(t)}function dm(e,t){return pt(e,"gutterContextMenu")?fp(e,t,"gutterContextMenu",!1):!1}function hp(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ln(e)}var Yi={toString:function(){return"CodeMirror.Init"}},gp={},Yo={};function hm(e){var t=e.optionHandlers;function i(r,o,l,p){e.defaults[r]=o,l&&(t[r]=p?function(c,d,E){E!=Yi&&l(c,d,E)}:l)}e.defineOption=i,e.Init=Yi,i("value","",function(r,o){return r.setValue(o)},!0),i("mode",null,function(r,o){r.doc.modeOption=o,Ea(r)},!0),i("indentUnit",2,Ea,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(r){Bn(r),Ln(r),Lt(r)},!0),i("lineSeparator",null,function(r,o){if(r.doc.lineSep=o,!!o){var l=[],p=r.doc.first;r.doc.iter(function(d){for(var E=0;;){var N=d.text.indexOf(o,E);if(N==-1)break;E=N+o.length,l.push(W(p,N))}p++});for(var c=l.length-1;c>=0;c--)ki(r.doc,o,l[c],W(l[c].line,l[c].ch+o.length))}}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(r,o,l){r.state.specialChars=new RegExp(o.source+(o.test(" ")?"":"| "),"g"),l!=Yi&&r.refresh()}),i("specialCharPlaceholder",Zg,function(r){return r.refresh()},!0),i("electricChars",!0),i("inputStyle",A?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(r,o){return r.getInputField().spellcheck=o},!0),i("autocorrect",!1,function(r,o){return r.getInputField().autocorrect=o},!0),i("autocapitalize",!1,function(r,o){return r.getInputField().autocapitalize=o},!0),i("rtlMoveVisually",!D),i("wholeLineUpdateBefore",!0),i("theme","default",function(r){hp(r),Fn(r)},!0),i("keyMap","default",function(r,o,l){var p=Ho(o),c=l!=Yi&&Ho(l);c&&c.detach&&c.detach(r,p),p.attach&&p.attach(r,c||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,Em,!0),i("gutters",[],function(r,o){r.display.gutterSpecs=ha(o,r.options.lineNumbers),Fn(r)},!0),i("fixedGutter",!0,function(r,o){r.display.gutters.style.left=o?ra(r.display)+"px":"0",r.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(r){return Vi(r)},!0),i("scrollbarStyle","native",function(r){mu(r),Vi(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),i("lineNumbers",!1,function(r,o){r.display.gutterSpecs=ha(r.options.gutters,o),Fn(r)},!0),i("firstLineNumber",1,Fn,!0),i("lineNumberFormatter",function(r){return r},Fn,!0),i("showCursorWhenSelecting",!1,Rn,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(r,o){o=="nocursor"&&(Mi(r),r.display.input.blur()),r.display.input.readOnlyChanged(o)}),i("screenReaderLabel",null,function(r,o){o=o===""?null:o,r.display.input.screenReaderLabelChanged(o)}),i("disableInput",!1,function(r,o){o||r.display.input.reset()},!0),i("dragDrop",!0,gm),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,Rn,!0),i("singleCursorHeightPerLine",!0,Rn,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,Bn,!0),i("addModeClass",!1,Bn,!0),i("pollInterval",100),i("undoDepth",200,function(r,o){return r.doc.history.undoDepth=o}),i("historyEventDelay",1250),i("viewportMargin",10,function(r){return r.refresh()},!0),i("maxHighlightLength",1e4,Bn,!0),i("moveInputWithCursor",!0,function(r,o){o||r.display.input.resetPosition()}),i("tabindex",null,function(r,o){return r.display.input.getField().tabIndex=o||""}),i("autofocus",null),i("direction","ltr",function(r,o){return r.doc.setDirection(o)},!0),i("phrases",null)}function gm(e,t,i){var r=i&&i!=Yi;if(!t!=!r){var o=e.display.dragFunctions,l=t?se:St;l(e.display.scroller,"dragstart",o.start),l(e.display.scroller,"dragenter",o.enter),l(e.display.scroller,"dragover",o.over),l(e.display.scroller,"dragleave",o.leave),l(e.display.scroller,"drop",o.drop)}}function Em(e){e.options.lineWrapping?(Le(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ue(e.display.wrapper,"CodeMirror-wrap"),Ys(e)),ia(e),Lt(e),Ln(e),setTimeout(function(){return Vi(e)},100)}function Me(e,t){var i=this;if(!(this instanceof Me))return new Me(e,t);this.options=t=t?ze(t):{},ze(gp,t,!1);var r=t.value;typeof r=="string"?r=new Rt(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var o=new Me.inputStyles[t.inputStyle](this),l=this.display=new bE(e,r,o,t);l.wrapper.CodeMirror=this,hp(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),mu(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new tt,keySeq:null,specialChars:null},t.autofocus&&!A&&l.input.focus(),m&&I<11&&setTimeout(function(){return i.display.input.reset(!0)},20),mm(this),JE(),pi(this),this.curOp.forceUpdate=!0,Ru(this,r),t.autofocus&&!A||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&aa(i)},20):Mi(this);for(var p in Yo)Yo.hasOwnProperty(p)&&Yo[p](this,t[p],Yi);Iu(this),t.finishInit&&t.finishInit(this);for(var c=0;c<Ra.length;++c)Ra[c](this);ci(this),T&&t.lineWrapping&&getComputedStyle(l.lineDiv).textRendering=="optimizelegibility"&&(l.lineDiv.style.textRendering="auto")}Me.defaults=gp,Me.optionHandlers=Yo;function mm(e){var t=e.display;se(t.scroller,"mousedown",ot(e,pp)),m&&I<11?se(t.scroller,"dblclick",ot(e,function(d){if(!Ve(e,d)){var E=si(e,d);if(!(!E||La(e,d)||Ar(e.display,d))){ht(d);var N=e.findWordAt(E);wo(e.doc,N.anchor,N.head)}}})):se(t.scroller,"dblclick",function(d){return Ve(e,d)||ht(d)}),se(t.scroller,"contextmenu",function(d){return dp(e,d)}),se(t.input.getField(),"contextmenu",function(d){t.scroller.contains(d.target)||dp(e,d)});var i,r={end:0};function o(){t.activeTouch&&(i=setTimeout(function(){return t.activeTouch=null},1e3),r=t.activeTouch,r.end=+new Date)}function l(d){if(d.touches.length!=1)return!1;var E=d.touches[0];return E.radiusX<=1&&E.radiusY<=1}function p(d,E){if(E.left==null)return!0;var N=E.left-d.left,C=E.top-d.top;return N*N+C*C>20*20}se(t.scroller,"touchstart",function(d){if(!Ve(e,d)&&!l(d)&&!La(e,d)){t.input.ensurePolled(),clearTimeout(i);var E=+new Date;t.activeTouch={start:E,moved:!1,prev:E-r.end<=300?r:null},d.touches.length==1&&(t.activeTouch.left=d.touches[0].pageX,t.activeTouch.top=d.touches[0].pageY)}}),se(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),se(t.scroller,"touchend",function(d){var E=t.activeTouch;if(E&&!Ar(t,d)&&E.left!=null&&!E.moved&&new Date-E.start<300){var N=e.coordsChar(t.activeTouch,"page"),C;!E.prev||p(E,E.prev)?C=new Ne(N,N):!E.prev.prev||p(E,E.prev.prev)?C=e.findWordAt(N):C=new Ne(W(N.line,0),fe(e.doc,W(N.line+1,0))),e.setSelection(C.anchor,C.head),e.focus(),ht(d)}o()}),se(t.scroller,"touchcancel",o),se(t.scroller,"scroll",function(){t.scroller.clientHeight&&(bn(e,t.scroller.scrollTop),li(e,t.scroller.scrollLeft,!0),Fe(e,"scroll",e))}),se(t.scroller,"mousewheel",function(d){return Cu(e,d)}),se(t.scroller,"DOMMouseScroll",function(d){return Cu(e,d)}),se(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(d){Ve(e,d)||ii(d)},over:function(d){Ve(e,d)||(XE(e,d),ii(d))},start:function(d){return YE(e,d)},drop:ot(e,QE),leave:function(d){Ve(e,d)||qu(e)}};var c=t.input.getField();se(c,"keyup",function(d){return lp.call(e,d)}),se(c,"keydown",ot(e,ap)),se(c,"keypress",ot(e,up)),se(c,"focus",function(d){return aa(e,d)}),se(c,"blur",function(d){return Mi(e,d)})}var Ra=[];Me.defineInitHook=function(e){return Ra.push(e)};function Xn(e,t,i,r){var o=e.doc,l;i==null&&(i="add"),i=="smart"&&(o.mode.indent?l=Nn(e,t).state:i="prev");var p=e.options.tabSize,c=q(o,t),d=De(c.text,null,p);c.stateAfter&&(c.stateAfter=null);var E=c.text.match(/^\s*/)[0],N;if(!r&&!/\S/.test(c.text))N=0,i="not";else if(i=="smart"&&(N=o.mode.indent(l,c.text.slice(E.length),c.text),N==re||N>150)){if(!r)return;i="prev"}i=="prev"?t>o.first?N=De(q(o,t-1).text,null,p):N=0:i=="add"?N=d+e.options.indentUnit:i=="subtract"?N=d-e.options.indentUnit:typeof i=="number"&&(N=d+i),N=Math.max(0,N);var C="",G=0;if(e.options.indentWithTabs)for(var O=Math.floor(N/p);O;--O)G+=p,C+=" ";if(G<N&&(C+=jt(N-G)),C!=E)return ki(o,C,W(t,0),W(t,E.length),"+input"),c.stateAfter=null,!0;for(var P=0;P<o.sel.ranges.length;P++){var _=o.sel.ranges[P];if(_.head.line==t&&_.head.ch<E.length){var Z=W(t,E.length);Ia(o,P,new Ne(Z,Z));break}}}var sr=null;function Xo(e){sr=e}function ya(e,t,i,r,o){var l=e.doc;e.display.shift=!1,r||(r=l.sel);var p=+new Date-200,c=o=="paste"||e.state.pasteIncoming>p,d=Ri(t),E=null;if(c&&r.ranges.length>1)if(sr&&sr.text.join(`
|
|
13
|
-
`)==t){if(r.ranges.length%sr.text.length==0){E=[];for(var N=0;N<sr.text.length;N++)E.push(l.splitLines(sr.text[N]))}}else d.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(E=Qt(d,function(X){return[X]}));for(var
|
|
10
|
+
left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(p),p.scrollIntoView(o),e.display.lineSpace.removeChild(p)}}}function hE(e,t,i,r){r==null&&(r=0);var o;!e.options.lineWrapping&&t==i&&(i=t.sticky=="before"?W(t.line,t.ch+1,"before"):t,t=t.ch?W(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var l=0;l<5;l++){var p=!1,c=nr(e,t),d=!i||i==t?c:nr(e,i);o={left:Math.min(c.left,d.left),top:Math.min(c.top,d.top)-r,right:Math.max(c.left,d.left),bottom:Math.max(c.bottom,d.bottom)+r};var E=la(e,o),N=e.doc.scrollTop,A=e.doc.scrollLeft;if(E.scrollTop!=null&&(bn(e,E.scrollTop),Math.abs(e.doc.scrollTop-N)>1&&(p=!0)),E.scrollLeft!=null&&(li(e,E.scrollLeft),Math.abs(e.doc.scrollLeft-A)>1&&(p=!0)),!p)break}return o}function gE(e,t){var i=la(e,t);i.scrollTop!=null&&bn(e,i.scrollTop),i.scrollLeft!=null&&li(e,i.scrollLeft)}function la(e,t){var i=e.display,r=Bi(e.display);t.top<0&&(t.top=0);var o=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,l=js(e),p={};t.bottom-t.top>l&&(t.bottom=t.top+l);var c=e.doc.height+Js(i),d=t.top<r,E=t.bottom>c-r;if(t.top<o)p.scrollTop=d?0:t.top;else if(t.bottom>o+l){var N=Math.min(t.top,(E?c:t.bottom)-l);N!=o&&(p.scrollTop=N)}var A=e.options.fixedGutter?0:i.gutters.offsetWidth,U=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-A,O=ni(e)-i.gutters.offsetWidth,P=t.right-t.left>O;return P&&(t.right=t.left+O),t.left<10?p.scrollLeft=0:t.left<U?p.scrollLeft=Math.max(0,t.left+A-(P?0:10)):t.right>O+U-3&&(p.scrollLeft=t.right+(P?0:10)-O),p}function ua(e,t){t!=null&&(Bo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Pi(e){Bo(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function yn(e,t,i){(t!=null||i!=null)&&Bo(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function EE(e,t){Bo(e),e.curOp.scrollToPos=t}function Bo(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=ou(e,t.from),r=ou(e,t.to);du(e,i,r,t.margin)}}function du(e,t,i,r){var o=la(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-r,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+r});yn(e,o.scrollLeft,o.scrollTop)}function bn(e,t){Math.abs(e.doc.scrollTop-t)<2||(a||ca(e,{top:t}),hu(e,t,!0),a&&ca(e),Un(e,100))}function hu(e,t,i){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!i)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function li(e,t,i,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,vu(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function On(e){var t=e.display,i=t.gutters.offsetWidth,r=Math.round(e.doc.height+Js(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?i:0,docHeight:r,scrollHeight:r+gr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var ui=function(e,t,i){this.cm=i;var r=this.vert=Y("div",[Y("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=Y("div",[Y("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=o.tabIndex=-1,e(r),e(o),se(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),se(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,m&&I<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ui.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var o=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var l=e.viewWidth-e.barLeft-(i?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+l)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?r:0,bottom:t?r:0}},ui.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ui.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ui.prototype.zeroWidthHack=function(){var e=R&&!F?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new tt,this.disableVert=new tt},ui.prototype.enableZeroWidthBar=function(e,t,i){e.style.visibility="";function r(){var o=e.getBoundingClientRect(),l=i=="vert"?document.elementFromPoint(o.right-1,(o.top+o.bottom)/2):document.elementFromPoint((o.right+o.left)/2,o.bottom-1);l!=e?e.style.visibility="hidden":t.set(1e3,r)}t.set(1e3,r)},ui.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Gn=function(){};Gn.prototype.update=function(){return{bottom:0,right:0}},Gn.prototype.setScrollLeft=function(){},Gn.prototype.setScrollTop=function(){},Gn.prototype.clear=function(){};function Vi(e,t){t||(t=On(e));var i=e.display.barWidth,r=e.display.barHeight;gu(e,t);for(var o=0;o<4&&i!=e.display.barWidth||r!=e.display.barHeight;o++)i!=e.display.barWidth&&e.options.lineWrapping&&Uo(e),gu(e,On(e)),i=e.display.barWidth,r=e.display.barHeight}function gu(e,t){var i=e.display,r=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=r.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=r.bottom)+"px",i.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=r.bottom+"px",i.scrollbarFiller.style.width=r.right+"px"):i.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=r.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var Eu={native:ui,null:Gn};function mu(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ue(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Eu[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),se(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?li(e,t):bn(e,t)},e),e.display.scrollbars.addClass&&Le(e.display.wrapper,e.display.scrollbars.addClass)}var mE=0;function pi(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++mE,markArrays:null},Jg(e.curOp)}function ci(e){var t=e.curOp;t&&zg(t,function(i){for(var r=0;r<i.ops.length;r++)i.ops[r].cm.curOp=null;xE(i)})}function xE(e){for(var t=e.ops,i=0;i<t.length;i++)vE(t[i]);for(var r=0;r<t.length;r++)IE(t[r]);for(var o=0;o<t.length;o++)NE(t[o]);for(var l=0;l<t.length;l++)TE(t[l]);for(var p=0;p<t.length;p++)AE(t[p])}function vE(e){var t=e.cm,i=t.display;SE(t),e.updateMaxLine&&Ys(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<i.viewFrom||e.scrollToPos.to.line>=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Do(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function IE(e){e.updatedDisplay=e.mustUpdate&&pa(e.cm,e.update)}function NE(e){var t=e.cm,i=t.display;e.updatedDisplay&&Uo(t),e.barMeasure=On(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ql(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+gr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-ni(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function TE(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&li(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var i=e.focus&&e.focus==je(Ct(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,i),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Vi(t,e.barMeasure),e.updatedDisplay&&da(t,e.barMeasure),e.selectionChanged&&oa(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),i&&cu(e.cm)}function AE(e){var t=e.cm,i=t.display,r=t.doc;if(e.updatedDisplay&&xu(t,e.update),i.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(i.wheelStartX=i.wheelStartY=null),e.scrollTop!=null&&hu(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&li(t,e.scrollLeft,!0,!0),e.scrollToPos){var o=hE(t,fe(r,e.scrollToPos.from),fe(r,e.scrollToPos.to),e.scrollToPos.margin);dE(t,o)}var l=e.maybeHiddenMarkers,p=e.maybeUnhiddenMarkers;if(l)for(var c=0;c<l.length;++c)l[c].lines.length||Fe(l[c],"hide");if(p)for(var d=0;d<p.length;++d)p[d].lines.length&&Fe(p[d],"unhide");i.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Fe(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function _t(e,t){if(e.curOp)return t();pi(e);try{return t()}finally{ci(e)}}function ot(e,t){return function(){if(e.curOp)return t.apply(e,arguments);pi(e);try{return t.apply(e,arguments)}finally{ci(e)}}}function vt(e){return function(){if(this.curOp)return e.apply(this,arguments);pi(this);try{return e.apply(this,arguments)}finally{ci(this)}}}function st(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);pi(t);try{return e.apply(this,arguments)}finally{ci(t)}}}function Un(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,he(CE,e))}function CE(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var i=+new Date+e.options.workTime,r=Nn(e,t.highlightFrontier),o=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(l){if(r.line>=e.display.viewFrom){var p=l.styles,c=l.text.length>e.options.maxHighlightLength?ee(t.mode,r.state):null,d=Sl(e,l,r,!0);c&&(r.state=c),l.styles=d.styles;var E=l.styleClasses,N=d.classes;N?l.styleClasses=N:E&&(l.styleClasses=null);for(var A=!p||p.length!=l.styles.length||E!=N&&(!E||!N||E.bgClass!=N.bgClass||E.textClass!=N.textClass),U=0;!A&&U<p.length;++U)A=p[U]!=l.styles[U];A&&o.push(r.line),l.stateAfter=r.save(),r.nextLine()}else l.text.length<=e.options.maxHighlightLength&&_s(e,l.text,r),l.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>i)return Un(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),o.length&&_t(e,function(){for(var l=0;l<o.length;l++)Vr(e,o[l],"text")})}}var Do=function(e,t,i){var r=e.display;this.viewport=t,this.visible=Fo(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=ni(e),this.force=i,this.dims=ta(e),this.events=[]};Do.prototype.signal=function(e,t){pt(e,t)&&this.events.push(arguments)},Do.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Fe.apply(null,this.events[e])};function SE(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=gr(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=gr(e)+"px",t.scrollbarsClipped=!0)}function LE(e){if(e.hasFocus())return null;var t=je(Ct(e));if(!t||!et(e.display.lineDiv,t))return null;var i={activeElt:t};if(window.getSelection){var r=Ht(e).getSelection();r.anchorNode&&r.extend&&et(e.display.lineDiv,r.anchorNode)&&(i.anchorNode=r.anchorNode,i.anchorOffset=r.anchorOffset,i.focusNode=r.focusNode,i.focusOffset=r.focusOffset)}return i}function RE(e){if(!(!e||!e.activeElt||e.activeElt==je(Ie(e.activeElt)))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&et(document.body,e.anchorNode)&&et(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,i=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),i.removeAllRanges(),i.addRange(r),i.extend(e.focusNode,e.focusOffset)}}function pa(e,t){var i=e.display,r=e.doc;if(t.editorIsHidden)return wr(e),!1;if(!t.force&&t.visible.from>=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&uu(e)==0)return!1;Iu(e)&&(wr(e),t.dims=ta(e));var o=r.first+r.size,l=Math.max(t.visible.from-e.options.viewportMargin,r.first),p=Math.min(o,t.visible.to+e.options.viewportMargin);i.viewFrom<l&&l-i.viewFrom<20&&(l=Math.max(r.first,i.viewFrom)),i.viewTo>p&&i.viewTo-p<20&&(p=Math.min(o,i.viewTo)),Tr&&(l=Hs(e.doc,l),p=wl(e.doc,p));var c=l!=i.viewFrom||p!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;cE(e,l,p),i.viewOffset=Ar(q(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var d=uu(e);if(!c&&d==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var E=LE(e);return d>4&&(i.lineDiv.style.display="none"),yE(e,i.updateLineNumbers,t.dims),d>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,RE(E),le(i.cursorDiv),le(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,c&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,Un(e,400)),i.updateLineNumbers=null,!0}function xu(e,t){for(var i=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==ni(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+Js(e.display)-js(e),i.top)}),t.visible=Fo(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=Fo(e.display,e.doc,i));if(!pa(e,t))break;Uo(e);var o=On(e);Rn(e),Vi(e,o),da(e,o),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ca(e,t){var i=new Do(e,t);if(pa(e,i)){Uo(e),xu(e,i);var r=On(e);Rn(e),Vi(e,r),da(e,r),i.finish()}}function yE(e,t,i){var r=e.display,o=e.options.lineNumbers,l=r.lineDiv,p=l.firstChild;function c(P){var _=P.nextSibling;return T&&R&&e.display.currentWheelTarget==P?P.style.display="none":P.parentNode.removeChild(P),_}for(var d=r.view,E=r.viewFrom,N=0;N<d.length;N++){var A=d[N];if(!A.hidden)if(!A.node||A.node.parentNode!=l){var U=tE(e,A,E,i);l.insertBefore(U,p)}else{for(;p!=A.node;)p=c(p);var O=o&&t!=null&&t<=E&&A.lineNumber;A.changes&&(Ue(A.changes,"gutter")>-1&&(O=!1),Hl(e,A,E,i)),O&&(le(A.lineNumber),A.lineNumber.appendChild(document.createTextNode(Ps(e.options,E)))),p=A.node.nextSibling}E+=A.size}for(;p;)p=c(p)}function fa(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",nt(e,"gutterChanged",e)}function da(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+gr(e)+"px"}function vu(e){var t=e.display,i=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=ra(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,l=r+"px",p=0;p<i.length;p++)if(!i[p].hidden){e.options.fixedGutter&&(i[p].gutter&&(i[p].gutter.style.left=l),i[p].gutterBackground&&(i[p].gutterBackground.style.left=l));var c=i[p].alignable;if(c)for(var d=0;d<c.length;d++)c[d].style.left=l}e.options.fixedGutter&&(t.gutters.style.left=r+o+"px")}}function Iu(e){if(!e.options.lineNumbers)return!1;var t=e.doc,i=Ps(e.options,t.first+t.size-1),r=e.display;if(i.length!=r.lineNumChars){var o=r.measure.appendChild(Y("div",[Y("div",i)],"CodeMirror-linenumber CodeMirror-gutter-elt")),l=o.firstChild.offsetWidth,p=o.offsetWidth-l;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(l,r.lineGutter.offsetWidth-p)+1,r.lineNumWidth=r.lineNumInnerWidth+p,r.lineNumChars=r.lineNumInnerWidth?i.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",fa(e.display),!0}return!1}function ha(e,t){for(var i=[],r=!1,o=0;o<e.length;o++){var l=e[o],p=null;if(typeof l!="string"&&(p=l.style,l=l.className),l=="CodeMirror-linenumbers")if(t)r=!0;else continue;i.push({className:l,style:p})}return t&&!r&&i.push({className:"CodeMirror-linenumbers",style:null}),i}function Nu(e){var t=e.gutters,i=e.gutterSpecs;le(t),e.lineGutter=null;for(var r=0;r<i.length;++r){var o=i[r],l=o.className,p=o.style,c=t.appendChild(Y("div",null,"CodeMirror-gutter "+l));p&&(c.style.cssText=p),l=="CodeMirror-linenumbers"&&(e.lineGutter=c,c.style.width=(e.lineNumWidth||1)+"px")}t.style.display=i.length?"":"none",fa(e)}function Fn(e){Nu(e.display),Lt(e),vu(e)}function bE(e,t,i,r){var o=this;this.input=i,o.scrollbarFiller=Y("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=Y("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=Oe("div",null,"CodeMirror-code"),o.selectionDiv=Y("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=Y("div",null,"CodeMirror-cursors"),o.measure=Y("div",null,"CodeMirror-measure"),o.lineMeasure=Y("div",null,"CodeMirror-measure"),o.lineSpace=Oe("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var l=Oe("div",[o.lineSpace],"CodeMirror-lines");o.mover=Y("div",[l],null,"position: relative"),o.sizer=Y("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=Y("div",null,null,"position: absolute; height: "+Jt+"px; width: 1px;"),o.gutters=Y("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=Y("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=Y("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),L&&V===105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),m&&I<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),!T&&!(a&&C)&&(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=ha(r.gutters,r.lineNumbers),Nu(o),i.init(o)}var Mo=0,Sr=null;m?Sr=-.53:a?Sr=15:L?Sr=-.7:M&&(Sr=-1/3);function Tu(e){var t=e.wheelDeltaX,i=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),i==null&&e.detail&&e.axis==e.VERTICAL_AXIS?i=e.detail:i==null&&(i=e.wheelDelta),{x:t,y:i}}function OE(e){var t=Tu(e);return t.x*=Sr,t.y*=Sr,t}function Au(e,t){L&&V==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var i=Tu(t),r=i.x,o=i.y,l=Sr;t.deltaMode===0&&(r=t.deltaX,o=t.deltaY,l=1);var p=e.display,c=p.scroller,d=c.scrollWidth>c.clientWidth,E=c.scrollHeight>c.clientHeight;if(r&&d||o&&E){if(o&&R&&T){e:for(var N=t.target,A=p.view;N!=c;N=N.parentNode)for(var U=0;U<A.length;U++)if(A[U].node==N){e.display.currentWheelTarget=N;break e}}if(r&&!a&&!y&&l!=null){o&&E&&bn(e,Math.max(0,c.scrollTop+o*l)),li(e,Math.max(0,c.scrollLeft+r*l)),(!o||o&&E)&&ht(t),p.wheelStartX=null;return}if(o&&l!=null){var O=o*l,P=e.doc.scrollTop,_=P+p.wrapper.clientHeight;O<0?P=Math.max(0,P+O-50):_=Math.min(e.doc.height,_+O+50),ca(e,{top:P,bottom:_})}Mo<20&&t.deltaMode!==0&&(p.wheelStartX==null?(p.wheelStartX=c.scrollLeft,p.wheelStartY=c.scrollTop,p.wheelDX=r,p.wheelDY=o,setTimeout(function(){if(p.wheelStartX!=null){var Z=c.scrollLeft-p.wheelStartX,X=c.scrollTop-p.wheelStartY,z=X&&p.wheelDY&&X/p.wheelDY||Z&&p.wheelDX&&Z/p.wheelDX;p.wheelStartX=p.wheelStartY=null,z&&(Sr=(Sr*Mo+z)/(Mo+1),++Mo)}},200)):(p.wheelDX+=r,p.wheelDY+=o))}}var Yt=function(e,t){this.ranges=e,this.primIndex=t};Yt.prototype.primary=function(){return this.ranges[this.primIndex]},Yt.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var i=this.ranges[t],r=e.ranges[t];if(!Vs(i.anchor,r.anchor)||!Vs(i.head,r.head))return!1}return!0},Yt.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Ne(ws(this.ranges[t].anchor),ws(this.ranges[t].head));return new Yt(e,this.primIndex)},Yt.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Yt.prototype.contains=function(e,t){t||(t=e);for(var i=0;i<this.ranges.length;i++){var r=this.ranges[i];if(ce(t,r.from())>=0&&ce(e,r.to())<=0)return i}return-1};var Ne=function(e,t){this.anchor=e,this.head=t};Ne.prototype.from=function(){return vo(this.anchor,this.head)},Ne.prototype.to=function(){return xo(this.anchor,this.head)},Ne.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function or(e,t,i){var r=e&&e.options.selectionsMayTouch,o=t[i];t.sort(function(U,O){return ce(U.from(),O.from())}),i=Ue(t,o);for(var l=1;l<t.length;l++){var p=t[l],c=t[l-1],d=ce(c.to(),p.from());if(r&&!p.empty()?d>0:d>=0){var E=vo(c.from(),p.from()),N=xo(c.to(),p.to()),A=c.empty()?p.from()==p.head:c.from()==c.head;l<=i&&--i,t.splice(--l,2,new Ne(A?N:E,A?E:N))}}return new Yt(t,i)}function _r(e,t){return new Yt([new Ne(e,t||e)],0)}function Wr(e){return e.text?W(e.from.line+e.text.length-1,$(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Cu(e,t){if(ce(e,t.from)<0)return e;if(ce(e,t.to)<=0)return Wr(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Wr(t).ch-t.to.ch),W(i,r)}function ga(e,t){for(var i=[],r=0;r<e.sel.ranges.length;r++){var o=e.sel.ranges[r];i.push(new Ne(Cu(o.anchor,t),Cu(o.head,t)))}return or(e.cm,i,e.sel.primIndex)}function Su(e,t,i){return e.line==t.line?W(i.line,e.ch-t.ch+i.ch):W(i.line+(e.line-t.line),e.ch)}function GE(e,t,i){for(var r=[],o=W(e.first,0),l=o,p=0;p<t.length;p++){var c=t[p],d=Su(c.from,o,l),E=Su(Wr(c),o,l);if(o=c.to,l=E,i=="around"){var N=e.sel.ranges[p],A=ce(N.head,N.anchor)<0;r[p]=new Ne(A?E:d,A?d:E)}else r[p]=new Ne(d,d)}return new Yt(r,e.sel.primIndex)}function Ea(e){e.doc.mode=oe(e.options,e.doc.modeOption),Bn(e)}function Bn(e){e.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Un(e,100),e.state.modeGen++,e.curOp&&Lt(e)}function Lu(e,t){return t.from.ch==0&&t.to.ch==0&&$(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ma(e,t,i,r){function o(z){return i?i[z]:null}function l(z,J,K){wg(z,J,K,r),nt(z,"change",z,t)}function p(z,J){for(var K=[],ae=z;ae<J;++ae)K.push(new Gi(E[ae],o(ae),r));return K}var c=t.from,d=t.to,E=t.text,N=q(e,c.line),A=q(e,d.line),U=$(E),O=o(E.length-1),P=d.line-c.line;if(t.full)e.insert(0,p(0,E.length)),e.remove(E.length,e.size-E.length);else if(Lu(e,t)){var _=p(0,E.length-1);l(A,A.text,O),P&&e.remove(c.line,P),_.length&&e.insert(c.line,_)}else if(N==A)if(E.length==1)l(N,N.text.slice(0,c.ch)+U+N.text.slice(d.ch),O);else{var Z=p(1,E.length-1);Z.push(new Gi(U+N.text.slice(d.ch),O,r)),l(N,N.text.slice(0,c.ch)+E[0],o(0)),e.insert(c.line+1,Z)}else if(E.length==1)l(N,N.text.slice(0,c.ch)+E[0]+A.text.slice(d.ch),o(0)),e.remove(c.line+1,P);else{l(N,N.text.slice(0,c.ch)+E[0],o(0)),l(A,U+A.text.slice(d.ch),O);var X=p(1,E.length-1);P>1&&e.remove(c.line+1,P-1),e.insert(c.line+1,X)}nt(e,"change",e,t)}function kr(e,t,i){function r(o,l,p){if(o.linked)for(var c=0;c<o.linked.length;++c){var d=o.linked[c];if(d.doc!=l){var E=p&&d.sharedHist;i&&!E||(t(d.doc,E),r(d.doc,o,E))}}}r(e,null,!0)}function Ru(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,ia(e),Ea(e),yu(e),e.options.direction=t.direction,e.options.lineWrapping||Ys(e),e.options.mode=t.modeOption,Lt(e)}function yu(e){(e.doc.direction=="rtl"?Le:ue)(e.display.lineDiv,"CodeMirror-rtl")}function UE(e){_t(e,function(){yu(e),Lt(e)})}function Po(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function xa(e,t){var i={from:ws(t.from),to:Wr(t),text:gt(e,t.from,t.to)};return Gu(e,i,t.from.line,t.to.line+1),kr(e,function(r){return Gu(r,i,t.from.line,t.to.line+1)},!0),i}function bu(e){for(;e.length;){var t=$(e);if(t.ranges)e.pop();else break}}function FE(e,t){if(t)return bu(e.done),$(e.done);if(e.done.length&&!$(e.done).ranges)return $(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),$(e.done)}function Ou(e,t,i,r){var o=e.history;o.undone.length=0;var l=+new Date,p,c;if((o.lastOp==r||o.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&o.lastModTime>l-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(p=FE(o,o.lastOp==r)))c=$(p.changes),ce(t.from,t.to)==0&&ce(t.from,c.to)==0?c.to=Wr(t):p.changes.push(xa(e,t));else{var d=$(o.done);for((!d||!d.ranges)&&Vo(e.sel,o.done),p={changes:[xa(e,t)],generation:o.generation},o.done.push(p);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(i),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=l,o.lastOp=o.lastSelOp=r,o.lastOrigin=o.lastSelOrigin=t.origin,c||Fe(e,"historyAdded")}function BE(e,t,i,r){var o=t.charAt(0);return o=="*"||o=="+"&&i.ranges.length==r.ranges.length&&i.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function DE(e,t,i,r){var o=e.history,l=r&&r.origin;i==o.lastSelOp||l&&o.lastSelOrigin==l&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==l||BE(e,l,$(o.done),t))?o.done[o.done.length-1]=t:Vo(t,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=l,o.lastSelOp=i,r&&r.clearRedo!==!1&&bu(o.undone)}function Vo(e,t){var i=$(t);i&&i.ranges&&i.equals(e)||t.push(e)}function Gu(e,t,i,r){var o=t["spans_"+e.id],l=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,r),function(p){p.markedSpans&&((o||(o=t["spans_"+e.id]={}))[l]=p.markedSpans),++l})}function ME(e){if(!e)return null;for(var t,i=0;i<e.length;++i)e[i].marker.explicitlyCleared?t||(t=e.slice(0,i)):t&&t.push(e[i]);return t?t.length?t:null:e}function PE(e,t){var i=t["spans_"+e.id];if(!i)return null;for(var r=[],o=0;o<t.text.length;++o)r.push(ME(i[o]));return r}function Uu(e,t){var i=PE(e,t),r=ks(e,t);if(!i)return r;if(!r)return i;for(var o=0;o<i.length;++o){var l=i[o],p=r[o];if(l&&p)e:for(var c=0;c<p.length;++c){for(var d=p[c],E=0;E<l.length;++E)if(l[E].marker==d.marker)continue e;l.push(d)}else p&&(i[o]=p)}return i}function wi(e,t,i){for(var r=[],o=0;o<e.length;++o){var l=e[o];if(l.ranges){r.push(i?Yt.prototype.deepCopy.call(l):l);continue}var p=l.changes,c=[];r.push({changes:c});for(var d=0;d<p.length;++d){var E=p[d],N=void 0;if(c.push({from:E.from,to:E.to,text:E.text}),t)for(var A in E)(N=A.match(/^spans_(\d+)$/))&&Ue(t,Number(N[1]))>-1&&($(c)[A]=E[A],delete E[A])}}return r}function va(e,t,i,r){if(r){var o=e.anchor;if(i){var l=ce(t,o)<0;l!=ce(i,o)<0?(o=t,t=i):l!=ce(t,i)<0&&(t=i)}return new Ne(o,t)}else return new Ne(i||t,t)}function wo(e,t,i,r,o){o==null&&(o=e.cm&&(e.cm.display.shift||e.extend)),Et(e,new Yt([va(e.sel.primary(),t,i,o)],0),r)}function Fu(e,t,i){for(var r=[],o=e.cm&&(e.cm.display.shift||e.extend),l=0;l<e.sel.ranges.length;l++)r[l]=va(e.sel.ranges[l],t[l],null,o);var p=or(e.cm,r,e.sel.primIndex);Et(e,p,i)}function Ia(e,t,i,r){var o=e.sel.ranges.slice(0);o[t]=i,Et(e,or(e.cm,o,e.sel.primIndex),r)}function Bu(e,t,i,r){Et(e,_r(t,i),r)}function VE(e,t,i){var r={ranges:t.ranges,update:function(o){this.ranges=[];for(var l=0;l<o.length;l++)this.ranges[l]=new Ne(fe(e,o[l].anchor),fe(e,o[l].head))},origin:i&&i.origin};return Fe(e,"beforeSelectionChange",e,r),e.cm&&Fe(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?or(e.cm,r.ranges,r.ranges.length-1):t}function Du(e,t,i){var r=e.history.done,o=$(r);o&&o.ranges?(r[r.length-1]=t,_o(e,t,i)):Et(e,t,i)}function Et(e,t,i){_o(e,t,i),DE(e,e.sel,e.cm?e.cm.curOp.id:NaN,i)}function _o(e,t,i){(pt(e,"beforeSelectionChange")||e.cm&&pt(e.cm,"beforeSelectionChange"))&&(t=VE(e,t,i));var r=i&&i.bias||(ce(t.primary().head,e.sel.primary().head)<0?-1:1);Mu(e,Vu(e,t,r,!0)),!(i&&i.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&Pi(e.cm)}function Mu(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,fo(e.cm)),nt(e,"cursorActivity",e))}function Pu(e){Mu(e,Vu(e,e.sel,null,!1))}function Vu(e,t,i,r){for(var o,l=0;l<t.ranges.length;l++){var p=t.ranges[l],c=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[l],d=Wo(e,p.anchor,c&&c.anchor,i,r),E=p.head==p.anchor?d:Wo(e,p.head,c&&c.head,i,r);(o||d!=p.anchor||E!=p.head)&&(o||(o=t.ranges.slice(0,l)),o[l]=new Ne(d,E))}return o?or(e.cm,o,t.primIndex):t}function _i(e,t,i,r,o){var l=q(e,t.line);if(l.markedSpans)for(var p=0;p<l.markedSpans.length;++p){var c=l.markedSpans[p],d=c.marker,E="selectLeft"in d?!d.selectLeft:d.inclusiveLeft,N="selectRight"in d?!d.selectRight:d.inclusiveRight;if((c.from==null||(E?c.from<=t.ch:c.from<t.ch))&&(c.to==null||(N?c.to>=t.ch:c.to>t.ch))){if(o&&(Fe(d,"beforeCursorEnter"),d.explicitlyCleared))if(l.markedSpans){--p;continue}else break;if(!d.atomic)continue;if(i){var A=d.find(r<0?1:-1),U=void 0;if((r<0?N:E)&&(A=wu(e,A,-r,A&&A.line==t.line?l:null)),A&&A.line==t.line&&(U=ce(A,i))&&(r<0?U<0:U>0))return _i(e,A,t,r,o)}var O=d.find(r<0?-1:1);return(r<0?E:N)&&(O=wu(e,O,r,O.line==t.line?l:null)),O?_i(e,O,t,r,o):null}}return t}function Wo(e,t,i,r,o){var l=r||1,p=_i(e,t,i,l,o)||!o&&_i(e,t,i,l,!0)||_i(e,t,i,-l,o)||!o&&_i(e,t,i,-l,!0);return p||(e.cantEdit=!0,W(e.first,0))}function wu(e,t,i,r){return i<0&&t.ch==0?t.line>e.first?fe(e,W(t.line-1)):null:i>0&&t.ch==(r||q(e,t.line)).text.length?t.line<e.first+e.size-1?W(t.line+1,0):null:new W(t.line,t.ch+i)}function _u(e){e.setSelection(W(e.firstLine(),0),W(e.lastLine()),k)}function Wu(e,t,i){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return i&&(r.update=function(o,l,p,c){o&&(r.from=fe(e,o)),l&&(r.to=fe(e,l)),p&&(r.text=p),c!==void 0&&(r.origin=c)}),Fe(e,"beforeChange",e,r),e.cm&&Fe(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Wi(e,t,i){if(e.cm){if(!e.cm.curOp)return ot(e.cm,Wi)(e,t,i);if(e.cm.state.suppressEdits)return}if(!((pt(e,"beforeChange")||e.cm&&pt(e.cm,"beforeChange"))&&(t=Wu(e,t,!0),!t))){var r=Ul&&!i&&Dg(e,t.from,t.to);if(r)for(var o=r.length-1;o>=0;--o)ku(e,{from:r[o].from,to:r[o].to,text:o?[""]:t.text,origin:t.origin});else ku(e,t)}}function ku(e,t){if(!(t.text.length==1&&t.text[0]==""&&ce(t.from,t.to)==0)){var i=ga(e,t);Ou(e,t,i,e.cm?e.cm.curOp.id:NaN),Dn(e,t,i,ks(e,t));var r=[];kr(e,function(o,l){!l&&Ue(r,o.history)==-1&&(Yu(o.history,t),r.push(o.history)),Dn(o,t,null,ks(o,t))})}}function ko(e,t,i){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!i)){for(var o=e.history,l,p=e.sel,c=t=="undo"?o.done:o.undone,d=t=="undo"?o.undone:o.done,E=0;E<c.length&&(l=c[E],!(i?l.ranges&&!l.equals(e.sel):!l.ranges));E++);if(E!=c.length){for(o.lastOrigin=o.lastSelOrigin=null;;)if(l=c.pop(),l.ranges){if(Vo(l,d),i&&!l.equals(e.sel)){Et(e,l,{clearRedo:!1});return}p=l}else if(r){c.push(l);return}else break;var N=[];Vo(p,d),d.push({changes:N,generation:o.generation}),o.generation=l.generation||++o.maxGeneration;for(var A=pt(e,"beforeChange")||e.cm&&pt(e.cm,"beforeChange"),U=function(_){var Z=l.changes[_];if(Z.origin=t,A&&!Wu(e,Z,!1))return c.length=0,{};N.push(xa(e,Z));var X=_?ga(e,Z):$(c);Dn(e,Z,X,Uu(e,Z)),!_&&e.cm&&e.cm.scrollIntoView({from:Z.from,to:Wr(Z)});var z=[];kr(e,function(J,K){!K&&Ue(z,J.history)==-1&&(Yu(J.history,Z),z.push(J.history)),Dn(J,Z,null,Uu(J,Z))})},O=l.changes.length-1;O>=0;--O){var P=U(O);if(P)return P.v}}}}function Zu(e,t){if(t!=0&&(e.first+=t,e.sel=new Yt(Qt(e.sel.ranges,function(o){return new Ne(W(o.anchor.line+t,o.anchor.ch),W(o.head.line+t,o.head.ch))}),e.sel.primIndex),e.cm)){Lt(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,r=i.viewFrom;r<i.viewTo;r++)Vr(e.cm,r,"gutter")}}function Dn(e,t,i,r){if(e.cm&&!e.cm.curOp)return ot(e.cm,Dn)(e,t,i,r);if(t.to.line<e.first){Zu(e,t.text.length-1-(t.to.line-t.from.line));return}if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var o=t.text.length-1-(e.first-t.from.line);Zu(e,o),t={from:W(e.first,0),to:W(t.to.line+o,t.to.ch),text:[$(t.text)],origin:t.origin}}var l=e.lastLine();t.to.line>l&&(t={from:t.from,to:W(l,q(e,l).text.length),text:[t.text[0]],origin:t.origin}),t.removed=gt(e,t.from,t.to),i||(i=ga(e,t)),e.cm?wE(e.cm,t,r):ma(e,t,r),_o(e,i,k),e.cantEdit&&Wo(e,W(e.firstLine(),0))&&(e.cantEdit=!1)}}function wE(e,t,i){var r=e.doc,o=e.display,l=t.from,p=t.to,c=!1,d=l.line;e.options.lineWrapping||(d=pe(ir(q(r,l.line))),r.iter(d,p.line+1,function(O){if(O==o.maxLine)return c=!0,!0})),r.sel.contains(t.from,t.to)>-1&&fo(e),ma(r,t,i,lu(e)),e.options.lineWrapping||(r.iter(d,l.line+t.text.length,function(O){var P=So(O);P>o.maxLineLength&&(o.maxLine=O,o.maxLineLength=P,o.maxLineChanged=!0,c=!1)}),c&&(e.curOp.updateMaxLine=!0)),yg(r,l.line),Un(e,400);var E=t.text.length-(p.line-l.line)-1;t.full?Lt(e):l.line==p.line&&t.text.length==1&&!Lu(e.doc,t)?Vr(e,l.line,"text"):Lt(e,l.line,p.line+1,E);var N=pt(e,"changes"),A=pt(e,"change");if(A||N){var U={from:l,to:p,text:t.text,removed:t.removed,origin:t.origin};A&&nt(e,"change",e,U),N&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(U)}e.display.selForContextMenu=null}function ki(e,t,i,r,o){var l;r||(r=i),ce(r,i)<0&&(l=[r,i],i=l[0],r=l[1]),typeof t=="string"&&(t=e.splitLines(t)),Wi(e,{from:i,to:r,text:t,origin:o})}function Hu(e,t,i,r){i<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function Qu(e,t,i,r){for(var o=0;o<e.length;++o){var l=e[o],p=!0;if(l.ranges){l.copied||(l=e[o]=l.deepCopy(),l.copied=!0);for(var c=0;c<l.ranges.length;c++)Hu(l.ranges[c].anchor,t,i,r),Hu(l.ranges[c].head,t,i,r);continue}for(var d=0;d<l.changes.length;++d){var E=l.changes[d];if(i<E.from.line)E.from=W(E.from.line+r,E.from.ch),E.to=W(E.to.line+r,E.to.ch);else if(t<=E.to.line){p=!1;break}}p||(e.splice(0,o+1),o=0)}}function Yu(e,t){var i=t.from.line,r=t.to.line,o=t.text.length-(r-i)-1;Qu(e.done,i,r,o),Qu(e.undone,i,r,o)}function Mn(e,t,i,r){var o=t,l=t;return typeof t=="number"?l=q(e,Al(e,t)):o=pe(t),o==null?null:(r(l,o)&&e.cm&&Vr(e.cm,o,i),l)}function Pn(e){this.lines=e,this.parent=null;for(var t=0,i=0;i<e.length;++i)e[i].parent=this,t+=e[i].height;this.height=t}Pn.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var i=e,r=e+t;i<r;++i){var o=this.lines[i];this.height-=o.height,_g(o),nt(o,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,i){this.height+=i,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,i){for(var r=e+t;e<r;++e)if(i(this.lines[e]))return!0}};function Vn(e){this.children=e;for(var t=0,i=0,r=0;r<e.length;++r){var o=e[r];t+=o.chunkSize(),i+=o.height,o.parent=this}this.size=t,this.height=i,this.parent=null}Vn.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var i=0;i<this.children.length;++i){var r=this.children[i],o=r.chunkSize();if(e<o){var l=Math.min(t,o-e),p=r.height;if(r.removeInner(e,l),this.height-=p-r.height,o==l&&(this.children.splice(i--,1),r.parent=null),(t-=l)==0)break;e=0}else e-=o}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Pn))){var c=[];this.collapse(c),this.children=[new Pn(c)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,i){this.size+=t.length,this.height+=i;for(var r=0;r<this.children.length;++r){var o=this.children[r],l=o.chunkSize();if(e<=l){if(o.insertInner(e,t,i),o.lines&&o.lines.length>50){for(var p=o.lines.length%25+25,c=p;c<o.lines.length;){var d=new Pn(o.lines.slice(c,c+=25));o.height-=d.height,this.children.splice(++r,0,d),d.parent=this}o.lines=o.lines.slice(0,p),this.maybeSpill()}break}e-=l}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),i=new Vn(t);if(e.parent){e.size-=i.size,e.height-=i.height;var o=Ue(e.parent.children,e);e.parent.children.splice(o+1,0,i)}else{var r=new Vn(e.children);r.parent=e,e.children=[r,i],e=r}i.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,i){for(var r=0;r<this.children.length;++r){var o=this.children[r],l=o.chunkSize();if(e<l){var p=Math.min(t,l-e);if(o.iterN(e,p,i))return!0;if((t-=p)==0)break;e=0}else e-=l}}};var wn=function(e,t,i){if(i)for(var r in i)i.hasOwnProperty(r)&&(this[r]=i[r]);this.doc=e,this.node=t};wn.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,i=this.line,r=pe(i);if(!(r==null||!t)){for(var o=0;o<t.length;++o)t[o]==this&&t.splice(o--,1);t.length||(i.widgets=null);var l=Sn(this);wt(i,Math.max(0,i.height-l)),e&&(_t(e,function(){Xu(e,i,-l),Vr(e,r,"widget")}),nt(e,"lineWidgetCleared",e,this,r))}},wn.prototype.changed=function(){var e=this,t=this.height,i=this.doc.cm,r=this.line;this.height=null;var o=Sn(this)-t;o&&(Pr(this.doc,r)||wt(r,r.height+o),i&&_t(i,function(){i.curOp.forceUpdate=!0,Xu(i,r,o),nt(i,"lineWidgetChanged",i,e,pe(r))}))},Dr(wn);function Xu(e,t,i){Ar(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ua(e,i)}function _E(e,t,i,r){var o=new wn(e,i,r),l=e.cm;return l&&o.noHScroll&&(l.display.alignWidgets=!0),Mn(e,t,"widget",function(p){var c=p.widgets||(p.widgets=[]);if(o.insertAt==null?c.push(o):c.splice(Math.min(c.length,Math.max(0,o.insertAt)),0,o),o.line=p,l&&!Pr(e,p)){var d=Ar(p)<e.scrollTop;wt(p,p.height+Sn(o)),d&&ua(l,o.height),l.curOp.forceUpdate=!0}return!0}),l&&nt(l,"lineWidgetAdded",l,o,typeof t=="number"?t:pe(t)),o}var Ju=0,Zr=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Ju};Zr.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&pi(e),pt(this,"clear")){var i=this.find();i&&nt(this,"clear",i.from,i.to)}for(var r=null,o=null,l=0;l<this.lines.length;++l){var p=this.lines[l],c=Tn(p.markedSpans,this);e&&!this.collapsed?Vr(e,pe(p),"text"):e&&(c.to!=null&&(o=pe(p)),c.from!=null&&(r=pe(p))),p.markedSpans=Gg(p.markedSpans,c),c.from==null&&this.collapsed&&!Pr(this.doc,p)&&e&&wt(p,Bi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var d=0;d<this.lines.length;++d){var E=ir(this.lines[d]),N=So(E);N>e.display.maxLineLength&&(e.display.maxLine=E,e.display.maxLineLength=N,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&Lt(e,r,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Pu(e.doc)),e&&nt(e,"markerCleared",e,this,r,o),t&&ci(e),this.parent&&this.parent.clear()}},Zr.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,r,o=0;o<this.lines.length;++o){var l=this.lines[o],p=Tn(l.markedSpans,this);if(p.from!=null&&(i=W(t?l:pe(l),p.from),e==-1))return i;if(p.to!=null&&(r=W(t?l:pe(l),p.to),e==1))return r}return i&&{from:i,to:r}},Zr.prototype.changed=function(){var e=this,t=this.find(-1,!0),i=this,r=this.doc.cm;!t||!r||_t(r,function(){var o=t.line,l=pe(t.line),p=zs(r,l);if(p&&(eu(p),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Pr(i.doc,o)&&i.height!=null){var c=i.height;i.height=null;var d=Sn(i)-c;d&&wt(o,o.height+d)}nt(r,"markerChanged",r,e)})},Zr.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||Ue(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Zr.prototype.detachLine=function(e){if(this.lines.splice(Ue(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Dr(Zr);function Zi(e,t,i,r,o){if(r&&r.shared)return WE(e,t,i,r,o);if(e.cm&&!e.cm.curOp)return ot(e.cm,Zi)(e,t,i,r,o);var l=new Zr(e,o),p=ce(t,i);if(r&&ze(r,l,!1),p>0||p==0&&l.clearWhenEmpty!==!1)return l;if(l.replacedWith&&(l.collapsed=!0,l.widgetNode=Oe("span",[l.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||l.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(l.widgetNode.insertLeft=!0)),l.collapsed){if(Vl(e,t.line,t,i,l)||t.line!=i.line&&Vl(e,i.line,t,i,l))throw new Error("Inserting collapsed marker partially overlapping an existing one");Og()}l.addToHistory&&Ou(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var c=t.line,d=e.cm,E;if(e.iter(c,i.line+1,function(A){d&&l.collapsed&&!d.options.lineWrapping&&ir(A)==d.display.maxLine&&(E=!0),l.collapsed&&c!=t.line&&wt(A,0),Ug(A,new No(l,c==t.line?t.ch:null,c==i.line?i.ch:null),e.cm&&e.cm.curOp),++c}),l.collapsed&&e.iter(t.line,i.line+1,function(A){Pr(e,A)&&wt(A,0)}),l.clearOnEnter&&se(l,"beforeCursorEnter",function(){return l.clear()}),l.readOnly&&(bg(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),l.collapsed&&(l.id=++Ju,l.atomic=!0),d){if(E&&(d.curOp.updateMaxLine=!0),l.collapsed)Lt(d,t.line,i.line+1);else if(l.className||l.startStyle||l.endStyle||l.css||l.attributes||l.title)for(var N=t.line;N<=i.line;N++)Vr(d,N,"text");l.atomic&&Pu(d.doc),nt(d,"markerAdded",d,l)}return l}var _n=function(e,t){this.markers=e,this.primary=t;for(var i=0;i<e.length;++i)e[i].parent=this};_n.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();nt(this,"clear")}},_n.prototype.find=function(e,t){return this.primary.find(e,t)},Dr(_n);function WE(e,t,i,r,o){r=ze(r),r.shared=!1;var l=[Zi(e,t,i,r,o)],p=l[0],c=r.widgetNode;return kr(e,function(d){c&&(r.widgetNode=c.cloneNode(!0)),l.push(Zi(d,fe(d,t),fe(d,i),r,o));for(var E=0;E<d.linked.length;++E)if(d.linked[E].isParent)return;p=$(l)}),new _n(l,p)}function ju(e){return e.findMarks(W(e.first,0),e.clipPos(W(e.lastLine())),function(t){return t.parent})}function kE(e,t){for(var i=0;i<t.length;i++){var r=t[i],o=r.find(),l=e.clipPos(o.from),p=e.clipPos(o.to);if(ce(l,p)){var c=Zi(e,l,p,r.primary,r.primary.type);r.markers.push(c),c.parent=r}}}function ZE(e){for(var t=function(r){var o=e[r],l=[o.primary.doc];kr(o.primary.doc,function(d){return l.push(d)});for(var p=0;p<o.markers.length;p++){var c=o.markers[p];Ue(l,c.doc)==-1&&(c.parent=null,o.markers.splice(p--,1))}},i=0;i<e.length;i++)t(i)}var HE=0,Rt=function(e,t,i,r,o){if(!(this instanceof Rt))return new Rt(e,t,i,r,o);i==null&&(i=0),Vn.call(this,[new Pn([new Gi("",null)])]),this.first=i,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=i;var l=W(i,0);this.sel=_r(l),this.history=new Po(null),this.id=++HE,this.modeOption=t,this.lineSep=r,this.direction=o=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),ma(this,{from:l,to:l,text:e}),Et(this,_r(l),k)};Rt.prototype=Ur(Vn.prototype,{constructor:Rt,iter:function(e,t,i){i?this.iterN(e-this.first,t-e,i):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var i=0,r=0;r<t.length;++r)i+=t[r].height;this.insertInner(e-this.first,t,i)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=fr(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:st(function(e){var t=W(this.first,0),i=this.first+this.size-1;Wi(this,{from:t,to:W(i,q(this,i).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&yn(this.cm,0,0),Et(this,_r(t),k)}),replaceRange:function(e,t,i,r){t=fe(this,t),i=i?fe(this,i):t,ki(this,e,t,i,r)},getRange:function(e,t,i){var r=gt(this,fe(this,e),fe(this,t));return i===!1?r:i===""?r.join(""):r.join(i||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Mr(this,e))return q(this,e)},getLineNumber:function(e){return pe(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=q(this,e)),ir(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return fe(this,e)},getCursor:function(e){var t=this.sel.primary(),i;return e==null||e=="head"?i=t.head:e=="anchor"?i=t.anchor:e=="end"||e=="to"||e===!1?i=t.to():i=t.from(),i},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:st(function(e,t,i){Bu(this,fe(this,typeof e=="number"?W(e,t||0):e),null,i)}),setSelection:st(function(e,t,i){Bu(this,fe(this,e),fe(this,t||e),i)}),extendSelection:st(function(e,t,i){wo(this,fe(this,e),t&&fe(this,t),i)}),extendSelections:st(function(e,t){Fu(this,Cl(this,e),t)}),extendSelectionsBy:st(function(e,t){var i=Qt(this.sel.ranges,e);Fu(this,Cl(this,i),t)}),setSelections:st(function(e,t,i){if(e.length){for(var r=[],o=0;o<e.length;o++)r[o]=new Ne(fe(this,e[o].anchor),fe(this,e[o].head||e[o].anchor));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),Et(this,or(this.cm,r,t),i)}}),addSelection:st(function(e,t,i){var r=this.sel.ranges.slice(0);r.push(new Ne(fe(this,e),fe(this,t||e))),Et(this,or(this.cm,r,r.length-1),i)}),getSelection:function(e){for(var t=this.sel.ranges,i,r=0;r<t.length;r++){var o=gt(this,t[r].from(),t[r].to());i=i?i.concat(o):o}return e===!1?i:i.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],i=this.sel.ranges,r=0;r<i.length;r++){var o=gt(this,i[r].from(),i[r].to());e!==!1&&(o=o.join(e||this.lineSeparator())),t[r]=o}return t},replaceSelection:function(e,t,i){for(var r=[],o=0;o<this.sel.ranges.length;o++)r[o]=e;this.replaceSelections(r,t,i||"+input")},replaceSelections:st(function(e,t,i){for(var r=[],o=this.sel,l=0;l<o.ranges.length;l++){var p=o.ranges[l];r[l]={from:p.from(),to:p.to(),text:this.splitLines(e[l]),origin:i}}for(var c=t&&t!="end"&&GE(this,r,t),d=r.length-1;d>=0;d--)Wi(this,r[d]);c?Du(this,c):this.cm&&Pi(this.cm)}),undo:st(function(){ko(this,"undo")}),redo:st(function(){ko(this,"redo")}),undoSelection:st(function(){ko(this,"undo",!0)}),redoSelection:st(function(){ko(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var o=0;o<e.undone.length;o++)e.undone[o].ranges||++i;return{undo:t,redo:i}},clearHistory:function(){var e=this;this.history=new Po(this.history),kr(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:wi(this.history.done),undone:wi(this.history.undone)}},setHistory:function(e){var t=this.history=new Po(this.history);t.done=wi(e.done.slice(0),null,!0),t.undone=wi(e.undone.slice(0),null,!0)},setGutterMarker:st(function(e,t,i){return Mn(this,e,"gutter",function(r){var o=r.gutterMarkers||(r.gutterMarkers={});return o[t]=i,!i&&He(o)&&(r.gutterMarkers=null),!0})}),clearGutter:st(function(e){var t=this;this.iter(function(i){i.gutterMarkers&&i.gutterMarkers[e]&&Mn(t,i,"gutter",function(){return i.gutterMarkers[e]=null,He(i.gutterMarkers)&&(i.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!Mr(this,e)||(t=e,e=q(this,e),!e))return null}else if(t=pe(e),t==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:st(function(e,t,i){return Mn(this,e,t=="gutter"?"gutter":"class",function(r){var o=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!r[o])r[o]=i;else{if(te(i).test(r[o]))return!1;r[o]+=" "+i}return!0})}),removeLineClass:st(function(e,t,i){return Mn(this,e,t=="gutter"?"gutter":"class",function(r){var o=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",l=r[o];if(l)if(i==null)r[o]=null;else{var p=l.match(te(i));if(!p)return!1;var c=p.index+p[0].length;r[o]=l.slice(0,p.index)+(!p.index||c==l.length?"":" ")+l.slice(c)||null}else return!1;return!0})}),addLineWidget:st(function(e,t,i){return _E(this,e,t,i)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,i){return Zi(this,fe(this,e),fe(this,t),i,i&&i.type||"range")},setBookmark:function(e,t){var i={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=fe(this,e),Zi(this,e,e,i,"bookmark")},findMarksAt:function(e){e=fe(this,e);var t=[],i=q(this,e.line).markedSpans;if(i)for(var r=0;r<i.length;++r){var o=i[r];(o.from==null||o.from<=e.ch)&&(o.to==null||o.to>=e.ch)&&t.push(o.marker.parent||o.marker)}return t},findMarks:function(e,t,i){e=fe(this,e),t=fe(this,t);var r=[],o=e.line;return this.iter(e.line,t.line+1,function(l){var p=l.markedSpans;if(p)for(var c=0;c<p.length;c++){var d=p[c];!(d.to!=null&&o==e.line&&e.ch>=d.to||d.from==null&&o!=e.line||d.from!=null&&o==t.line&&d.from>=t.ch)&&(!i||i(d.marker))&&r.push(d.marker.parent||d.marker)}++o}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var r=0;r<i.length;++r)i[r].from!=null&&e.push(i[r].marker)}),e},posFromIndex:function(e){var t,i=this.first,r=this.lineSeparator().length;return this.iter(function(o){var l=o.text.length+r;if(l>e)return t=e,!0;e-=l,++i}),fe(this,W(i,t))},indexFromPos:function(e){e=fe(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var i=this.lineSeparator().length;return this.iter(this.first,e.line,function(r){t+=r.text.length+i}),t},copy:function(e){var t=new Rt(fr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,i=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<i&&(i=e.to);var r=new Rt(fr(this,t,i),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],kE(r,ju(this)),r},unlinkDoc:function(e){if(e instanceof Me&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var i=this.linked[t];if(i.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),ZE(ju(this));break}}if(e.history==this.history){var r=[e.id];kr(e,function(o){return r.push(o.id)},!0),e.history=new Po(null),e.history.done=wi(this.history.done,r),e.history.undone=wi(this.history.undone,r)}},iterLinkedDocs:function(e){kr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Ri(e)},lineSeparator:function(){return this.lineSep||`
|
|
11
|
+
`},setDirection:st(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&UE(this.cm))})}),Rt.prototype.eachLine=Rt.prototype.iter;var zu=0;function QE(e){var t=this;if(qu(t),!(Ve(t,e)||Cr(t.display,e))){ht(e),m&&(zu=+new Date);var i=si(t,e,!0),r=e.dataTransfer.files;if(!(!i||t.isReadOnly()))if(r&&r.length&&window.FileReader&&window.File)for(var o=r.length,l=Array(o),p=0,c=function(){++p==o&&ot(t,function(){i=fe(t.doc,i);var O={from:i,to:i,text:t.doc.splitLines(l.filter(function(P){return P!=null}).join(t.doc.lineSeparator())),origin:"paste"};Wi(t.doc,O),Du(t.doc,_r(fe(t.doc,i),fe(t.doc,Wr(O))))})()},d=function(O,P){if(t.options.allowDropFileTypes&&Ue(t.options.allowDropFileTypes,O.type)==-1){c();return}var _=new FileReader;_.onerror=function(){return c()},_.onload=function(){var Z=_.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Z)){c();return}l[P]=Z,c()},_.readAsText(O)},E=0;E<r.length;E++)d(r[E],E);else{if(t.state.draggingText&&t.doc.sel.contains(i)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var N=e.dataTransfer.getData("Text");if(N){var A;if(t.state.draggingText&&!t.state.draggingText.copy&&(A=t.listSelections()),_o(t.doc,_r(i,i)),A)for(var U=0;U<A.length;++U)ki(t.doc,"",A[U].anchor,A[U].head,"drag");t.replaceSelection(N,"around","paste"),t.display.input.focus()}}catch{}}}}function YE(e,t){if(m&&(!e.state.draggingText||+new Date-zu<100)){ii(t);return}if(!(Ve(e,t)||Cr(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!M)){var i=Y("img",null,null,"position: fixed; left: 0; top: 0;");i.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",y&&(i.width=i.height=1,e.display.wrapper.appendChild(i),i._top=i.offsetTop),t.dataTransfer.setDragImage(i,0,0),y&&i.parentNode.removeChild(i)}}function XE(e,t){var i=si(e,t);if(i){var r=document.createDocumentFragment();na(e,i,r),e.display.dragCursor||(e.display.dragCursor=Y("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),me(e.display.dragCursor,r)}}function qu(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Ku(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),i=[],r=0;r<t.length;r++){var o=t[r].CodeMirror;o&&i.push(o)}i.length&&i[0].operation(function(){for(var l=0;l<i.length;l++)e(i[l])})}}var $u=!1;function JE(){$u||(jE(),$u=!0)}function jE(){var e;se(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Ku(zE)},100))}),se(window,"blur",function(){return Ku(Mi)})}function zE(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Hr={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Wn=0;Wn<10;Wn++)Hr[Wn+48]=Hr[Wn+96]=String(Wn);for(var Zo=65;Zo<=90;Zo++)Hr[Zo]=String.fromCharCode(Zo);for(var kn=1;kn<=12;kn++)Hr[kn+111]=Hr[kn+63235]="F"+kn;var Lr={};Lr.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Lr.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Lr.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Lr.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Lr.default=R?Lr.macDefault:Lr.pcDefault;function qE(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var i,r,o,l,p=0;p<t.length-1;p++){var c=t[p];if(/^(cmd|meta|m)$/i.test(c))l=!0;else if(/^a(lt)?$/i.test(c))i=!0;else if(/^(c|ctrl|control)$/i.test(c))r=!0;else if(/^s(hift)?$/i.test(c))o=!0;else throw new Error("Unrecognized modifier name: "+c)}return i&&(e="Alt-"+e),r&&(e="Ctrl-"+e),l&&(e="Cmd-"+e),o&&(e="Shift-"+e),e}function KE(e){var t={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(/^(name|fallthrough|(de|at)tach)$/.test(i))continue;if(r=="..."){delete e[i];continue}for(var o=Qt(i.split(" "),qE),l=0;l<o.length;l++){var p=void 0,c=void 0;l==o.length-1?(c=o.join(" "),p=r):(c=o.slice(0,l+1).join(" "),p="...");var d=t[c];if(!d)t[c]=p;else if(d!=p)throw new Error("Inconsistent bindings for "+c)}delete e[i]}for(var E in t)e[E]=t[E];return e}function Hi(e,t,i,r){t=Ho(t);var o=t.call?t.call(e,r):t[e];if(o===!1)return"nothing";if(o==="...")return"multi";if(o!=null&&i(o))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Hi(e,t.fallthrough,i,r);for(var l=0;l<t.fallthrough.length;l++){var p=Hi(e,t.fallthrough[l],i,r);if(p)return p}}}function ep(e){var t=typeof e=="string"?e:Hr[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function tp(e,t,i){var r=e;return t.altKey&&r!="Alt"&&(e="Alt-"+e),(Q?t.metaKey:t.ctrlKey)&&r!="Ctrl"&&(e="Ctrl-"+e),(Q?t.ctrlKey:t.metaKey)&&r!="Mod"&&(e="Cmd-"+e),!i&&t.shiftKey&&r!="Shift"&&(e="Shift-"+e),e}function rp(e,t){if(y&&e.keyCode==34&&e.char)return!1;var i=Hr[e.keyCode];return i==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(i=e.code),tp(i,e,t))}function Ho(e){return typeof e=="string"?Lr[e]:e}function Qi(e,t){for(var i=e.doc.sel.ranges,r=[],o=0;o<i.length;o++){for(var l=t(i[o]);r.length&&ce(l.from,$(r).to)<=0;){var p=r.pop();if(ce(p.from,l.from)<0){l.from=p.from;break}}r.push(l)}_t(e,function(){for(var c=r.length-1;c>=0;c--)ki(e.doc,"",r[c].from,r[c].to,"+delete");Pi(e)})}function Na(e,t,i){var r=Kt(e.text,t+i,i);return r<0||r>e.text.length?null:r}function Ta(e,t,i){var r=Na(e,t.ch,i);return r==null?null:new W(t.line,r,i<0?"after":"before")}function Aa(e,t,i,r,o){if(e){t.doc.direction=="rtl"&&(o=-o);var l=rt(i,t.doc.direction);if(l){var p=o<0?$(l):l[0],c=o<0==(p.level==1),d=c?"after":"before",E;if(p.level>0||t.doc.direction=="rtl"){var N=Fi(t,i);E=o<0?i.text.length-1:0;var A=Er(t,N,E).top;E=Fr(function(U){return Er(t,N,U).top==A},o<0==(p.level==1)?p.from:p.to-1,E),d=="before"&&(E=Na(i,E,1))}else E=o<0?p.to:p.from;return new W(r,E,d)}}return new W(r,o<0?i.text.length:0,o<0?"before":"after")}function $E(e,t,i,r){var o=rt(t,e.doc.direction);if(!o)return Ta(t,i,r);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var l=pr(o,i.ch,i.sticky),p=o[l];if(e.doc.direction=="ltr"&&p.level%2==0&&(r>0?p.to>i.ch:p.from<i.ch))return Ta(t,i,r);var c=function(X,z){return Na(t,X instanceof W?X.ch:X,z)},d,E=function(X){return e.options.lineWrapping?(d=d||Fi(e,t),au(e,t,d,X)):{begin:0,end:t.text.length}},N=E(i.sticky=="before"?c(i,-1):i.ch);if(e.doc.direction=="rtl"||p.level==1){var A=p.level==1==r<0,U=c(i,A?1:-1);if(U!=null&&(A?U<=p.to&&U<=N.end:U>=p.from&&U>=N.begin)){var O=A?"before":"after";return new W(i.line,U,O)}}var P=function(X,z,J){for(var K=function(ye,at){return at?new W(i.line,c(ye,1),"before"):new W(i.line,ye,"after")};X>=0&&X<o.length;X+=z){var ae=o[X],ne=z>0==(ae.level!=1),Ee=ne?J.begin:c(J.end,-1);if(ae.from<=Ee&&Ee<ae.to||(Ee=ne?ae.from:c(ae.to,-1),J.begin<=Ee&&Ee<J.end))return K(Ee,ne)}},_=P(l+r,r,N);if(_)return _;var Z=r>0?N.end:c(N.begin,-1);return Z!=null&&!(r>0&&Z==t.text.length)&&(_=P(r>0?0:o.length-1,r,E(Z)),_)?_:null}var Zn={selectAll:_u,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),k)},killLine:function(e){return Qi(e,function(t){if(t.empty()){var i=q(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line<e.lastLine()?{from:t.head,to:W(t.head.line+1,0)}:{from:t.head,to:W(t.head.line,i)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Qi(e,function(t){return{from:W(t.from().line,0),to:fe(e.doc,W(t.to().line+1,0))}})},delLineLeft:function(e){return Qi(e,function(t){return{from:W(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return Qi(e,function(t){var i=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:i},"div");return{from:r,to:t.from()}})},delWrappedLineRight:function(e){return Qi(e,function(t){var i=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:i},"div");return{from:t.from(),to:r}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(W(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(W(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return ip(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return np(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return em(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:i},"div")},Te)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:i},"div")},Te)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:i},"div");return r.ch<e.getLine(r.line).search(/\S/)?np(e,t.head):r},Te)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var t=[],i=e.listSelections(),r=e.options.tabSize,o=0;o<i.length;o++){var l=i[o].from(),p=De(e.getLine(l.line),l.ch,r);t.push(jt(r-p%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return _t(e,function(){for(var t=e.listSelections(),i=[],r=0;r<t.length;r++)if(t[r].empty()){var o=t[r].head,l=q(e.doc,o.line).text;if(l){if(o.ch==l.length&&(o=new W(o.line,o.ch-1)),o.ch>0)o=new W(o.line,o.ch+1),e.replaceRange(l.charAt(o.ch-1)+l.charAt(o.ch-2),W(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var p=q(e.doc,o.line-1).text;p&&(o=new W(o.line,1),e.replaceRange(l.charAt(0)+e.doc.lineSeparator()+p.charAt(p.length-1),W(o.line-1,p.length-1),o,"+transpose"))}}i.push(new Ne(o,o))}e.setSelections(i)})},newlineAndIndent:function(e){return _t(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Pi(e)})},openLine:function(e){return e.replaceSelection(`
|
|
12
|
+
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function ip(e,t){var i=q(e.doc,t),r=ir(i);return r!=i&&(t=pe(r)),Aa(!0,e,r,t,1)}function em(e,t){var i=q(e.doc,t),r=Pg(i);return r!=i&&(t=pe(r)),Aa(!0,e,i,t,-1)}function np(e,t){var i=ip(e,t.line),r=q(e.doc,i.line),o=rt(r,e.doc.direction);if(!o||o[0].level==0){var l=Math.max(i.ch,r.text.search(/\S/)),p=t.line==i.line&&t.ch<=l&&t.ch;return W(i.line,p?0:l,i.sticky)}return i}function Qo(e,t,i){if(typeof t=="string"&&(t=Zn[t],!t))return!1;e.display.input.ensurePolled();var r=e.display.shift,o=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),i&&(e.display.shift=!1),o=t(e)!=re}finally{e.display.shift=r,e.state.suppressEdits=!1}return o}function tm(e,t,i){for(var r=0;r<e.state.keyMaps.length;r++){var o=Hi(t,e.state.keyMaps[r],i,e);if(o)return o}return e.options.extraKeys&&Hi(t,e.options.extraKeys,i,e)||Hi(t,e.options.keyMap,i,e)}var rm=new tt;function Hn(e,t,i,r){var o=e.state.keySeq;if(o){if(ep(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:rm.set(50,function(){e.state.keySeq==o&&(e.state.keySeq=null,e.display.input.reset())}),op(e,o+" "+t,i,r))return!0}return op(e,t,i,r)}function op(e,t,i,r){var o=tm(e,t,r);return o=="multi"&&(e.state.keySeq=t),o=="handled"&&nt(e,"keyHandled",e,t,i),(o=="handled"||o=="multi")&&(ht(i),oa(e)),!!o}function sp(e,t){var i=rp(t,!0);return i?t.shiftKey&&!e.state.keySeq?Hn(e,"Shift-"+i,t,function(r){return Qo(e,r,!0)})||Hn(e,i,t,function(r){if(typeof r=="string"?/^go[A-Z]/.test(r):r.motion)return Qo(e,r)}):Hn(e,i,t,function(r){return Qo(e,r)}):!1}function im(e,t,i){return Hn(e,"'"+i+"'",t,function(r){return Qo(e,r,!0)})}var Ca=null;function ap(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=je(Ct(t)),!Ve(t,e))){m&&I<11&&e.keyCode==27&&(e.returnValue=!1);var i=e.keyCode;t.display.shift=i==16||e.shiftKey;var r=sp(t,e);y&&(Ca=r?i:null,!r&&i==88&&!In&&(R?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),a&&!R&&!r&&i==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),i==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&nm(t)}}function nm(e){var t=e.display.lineDiv;Le(t,"CodeMirror-crosshair");function i(r){(r.keyCode==18||!r.altKey)&&(ue(t,"CodeMirror-crosshair"),St(document,"keyup",i),St(document,"mouseover",i))}se(document,"keyup",i),se(document,"mouseover",i)}function lp(e){e.keyCode==16&&(this.doc.sel.shift=!1),Ve(this,e)}function up(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(Cr(t.display,e)||Ve(t,e)||e.ctrlKey&&!e.altKey||R&&e.metaKey)){var i=e.keyCode,r=e.charCode;if(y&&i==Ca){Ca=null,ht(e);return}if(!(y&&(!e.which||e.which<10)&&sp(t,e))){var o=String.fromCharCode(r??i);o!="\b"&&(im(t,e,o)||t.display.input.onKeyPress(e))}}}var om=400,Sa=function(e,t,i){this.time=e,this.pos=t,this.button=i};Sa.prototype.compare=function(e,t,i){return this.time+om>e&&ce(t,this.pos)==0&&i==this.button};var Qn,Yn;function sm(e,t){var i=+new Date;return Yn&&Yn.compare(i,e,t)?(Qn=Yn=null,"triple"):Qn&&Qn.compare(i,e,t)?(Yn=new Sa(i,e,t),Qn=null,"double"):(Qn=new Sa(i,e,t),Yn=null,"single")}function pp(e){var t=this,i=t.display;if(!(Ve(t,e)||i.activeTouch&&i.input.supportsTouch())){if(i.input.ensurePolled(),i.shift=e.shiftKey,Cr(i,e)){T||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(!La(t,e)){var r=si(t,e),o=Si(e),l=r?sm(r,o):"single";Ht(t).focus(),o==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&am(t,o,r,l,e))&&(o==1?r?um(t,r,l,e):Ci(e)==i.scroller&&ht(e):o==2?(r&&wo(t.doc,r),setTimeout(function(){return i.input.focus()},20)):o==3&&(de?t.display.input.onContextMenu(e):sa(t)))}}}function am(e,t,i,r,o){var l="Click";return r=="double"?l="Double"+l:r=="triple"&&(l="Triple"+l),l=(t==1?"Left":t==2?"Middle":"Right")+l,Hn(e,tp(l,o),o,function(p){if(typeof p=="string"&&(p=Zn[p]),!p)return!1;var c=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),c=p(e,i)!=re}finally{e.state.suppressEdits=!1}return c})}function lm(e,t,i){var r=e.getOption("configureMouse"),o=r?r(e,t,i):{};if(o.unit==null){var l=B?i.shiftKey&&i.metaKey:i.altKey;o.unit=l?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(o.extend==null||e.doc.extend)&&(o.extend=e.doc.extend||i.shiftKey),o.addNew==null&&(o.addNew=R?i.metaKey:i.ctrlKey),o.moveOnDrag==null&&(o.moveOnDrag=!(R?i.altKey:i.ctrlKey)),o}function um(e,t,i,r){m?setTimeout(he(cu,e),0):e.curOp.focus=je(Ct(e));var o=lm(e,i,r),l=e.doc.sel,p;e.options.dragDrop&&ho&&!e.isReadOnly()&&i=="single"&&(p=l.contains(t))>-1&&(ce((p=l.ranges[p]).from(),t)<0||t.xRel>0)&&(ce(p.to(),t)>0||t.xRel<0)?pm(e,r,t,o):cm(e,r,t,o)}function pm(e,t,i,r){var o=e.display,l=!1,p=ot(e,function(E){T&&(o.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:sa(e)),St(o.wrapper.ownerDocument,"mouseup",p),St(o.wrapper.ownerDocument,"mousemove",c),St(o.scroller,"dragstart",d),St(o.scroller,"drop",p),l||(ht(E),r.addNew||wo(e.doc,i,null,null,r.extend),T&&!M||m&&I==9?setTimeout(function(){o.wrapper.ownerDocument.body.focus({preventScroll:!0}),o.input.focus()},20):o.input.focus())}),c=function(E){l=l||Math.abs(t.clientX-E.clientX)+Math.abs(t.clientY-E.clientY)>=10},d=function(){return l=!0};T&&(o.scroller.draggable=!0),e.state.draggingText=p,p.copy=!r.moveOnDrag,se(o.wrapper.ownerDocument,"mouseup",p),se(o.wrapper.ownerDocument,"mousemove",c),se(o.scroller,"dragstart",d),se(o.scroller,"drop",p),e.state.delayingBlurEvent=!0,setTimeout(function(){return o.input.focus()},20),o.scroller.dragDrop&&o.scroller.dragDrop()}function cp(e,t,i){if(i=="char")return new Ne(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new Ne(W(t.line,0),fe(e.doc,W(t.line+1,0)));var r=i(e,t);return new Ne(r.from,r.to)}function cm(e,t,i,r){m&&sa(e);var o=e.display,l=e.doc;ht(t);var p,c,d=l.sel,E=d.ranges;if(r.addNew&&!r.extend?(c=l.sel.contains(i),c>-1?p=E[c]:p=new Ne(i,i)):(p=l.sel.primary(),c=l.sel.primIndex),r.unit=="rectangle")r.addNew||(p=new Ne(i,i)),i=si(e,t,!0,!0),c=-1;else{var N=cp(e,i,r.unit);r.extend?p=va(p,N.anchor,N.head,r.extend):p=N}r.addNew?c==-1?(c=E.length,Et(l,or(e,E.concat([p]),c),{scroll:!1,origin:"*mouse"})):E.length>1&&E[c].empty()&&r.unit=="char"&&!r.extend?(Et(l,or(e,E.slice(0,c).concat(E.slice(c+1)),0),{scroll:!1,origin:"*mouse"}),d=l.sel):Ia(l,c,p,Ze):(c=0,Et(l,new Yt([p],0),Ze),d=l.sel);var A=i;function U(J){if(ce(A,J)!=0)if(A=J,r.unit=="rectangle"){for(var K=[],ae=e.options.tabSize,ne=De(q(l,i.line).text,i.ch,ae),Ee=De(q(l,J.line).text,J.ch,ae),ye=Math.min(ne,Ee),at=Math.max(ne,Ee),we=Math.min(i.line,J.line),Wt=Math.min(e.lastLine(),Math.max(i.line,J.line));we<=Wt;we++){var yt=q(l,we).text,Xe=ve(yt,ye,ae);ye==at?K.push(new Ne(W(we,Xe),W(we,Xe))):yt.length>Xe&&K.push(new Ne(W(we,Xe),W(we,ve(yt,at,ae))))}K.length||K.push(new Ne(i,i)),Et(l,or(e,d.ranges.slice(0,c).concat(K),c),{origin:"*mouse",scroll:!1}),e.scrollIntoView(J)}else{var bt=p,ct=cp(e,J,r.unit),qe=bt.anchor,Je;ce(ct.anchor,qe)>0?(Je=ct.head,qe=vo(bt.from(),ct.anchor)):(Je=ct.anchor,qe=xo(bt.to(),ct.head));var ke=d.ranges.slice(0);ke[c]=fm(e,new Ne(fe(l,qe),Je)),Et(l,or(e,ke,c),Ze)}}var O=o.wrapper.getBoundingClientRect(),P=0;function _(J){var K=++P,ae=si(e,J,!0,r.unit=="rectangle");if(ae)if(ce(ae,A)!=0){e.curOp.focus=je(Ct(e)),U(ae);var ne=Fo(o,l);(ae.line>=ne.to||ae.line<ne.from)&&setTimeout(ot(e,function(){P==K&&_(J)}),150)}else{var Ee=J.clientY<O.top?-20:J.clientY>O.bottom?20:0;Ee&&setTimeout(ot(e,function(){P==K&&(o.scroller.scrollTop+=Ee,_(J))}),50)}}function Z(J){e.state.selectingText=!1,P=1/0,J&&(ht(J),o.input.focus()),St(o.wrapper.ownerDocument,"mousemove",X),St(o.wrapper.ownerDocument,"mouseup",z),l.history.lastSelOrigin=null}var X=ot(e,function(J){J.buttons===0||!Si(J)?Z(J):_(J)}),z=ot(e,Z);e.state.selectingText=z,se(o.wrapper.ownerDocument,"mousemove",X),se(o.wrapper.ownerDocument,"mouseup",z)}function fm(e,t){var i=t.anchor,r=t.head,o=q(e.doc,i.line);if(ce(i,r)==0&&i.sticky==r.sticky)return t;var l=rt(o);if(!l)return t;var p=pr(l,i.ch,i.sticky),c=l[p];if(c.from!=i.ch&&c.to!=i.ch)return t;var d=p+(c.from==i.ch==(c.level!=1)?0:1);if(d==0||d==l.length)return t;var E;if(r.line!=i.line)E=(r.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var N=pr(l,r.ch,r.sticky),A=N-p||(r.ch-i.ch)*(c.level==1?-1:1);N==d-1||N==d?E=A<0:E=A>0}var U=l[d+(E?-1:0)],O=E==(U.level==1),P=O?U.from:U.to,_=O?"after":"before";return i.ch==P&&i.sticky==_?t:new Ne(new W(i.line,P,_),r)}function fp(e,t,i,r){var o,l;if(t.touches)o=t.touches[0].clientX,l=t.touches[0].clientY;else try{o=t.clientX,l=t.clientY}catch{return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ht(t);var p=e.display,c=p.lineDiv.getBoundingClientRect();if(l>c.bottom||!pt(e,i))return cr(t);l-=c.top-p.viewOffset;for(var d=0;d<e.display.gutterSpecs.length;++d){var E=p.gutters.childNodes[d];if(E&&E.getBoundingClientRect().right>=o){var N=dr(e.doc,l),A=e.display.gutterSpecs[d];return Fe(e,i,e,N,A.className,t),cr(t)}}}function La(e,t){return fp(e,t,"gutterClick",!0)}function dp(e,t){Cr(e.display,t)||dm(e,t)||Ve(e,t,"contextmenu")||de||e.display.input.onContextMenu(t)}function dm(e,t){return pt(e,"gutterContextMenu")?fp(e,t,"gutterContextMenu",!1):!1}function hp(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ln(e)}var Yi={toString:function(){return"CodeMirror.Init"}},gp={},Yo={};function hm(e){var t=e.optionHandlers;function i(r,o,l,p){e.defaults[r]=o,l&&(t[r]=p?function(c,d,E){E!=Yi&&l(c,d,E)}:l)}e.defineOption=i,e.Init=Yi,i("value","",function(r,o){return r.setValue(o)},!0),i("mode",null,function(r,o){r.doc.modeOption=o,Ea(r)},!0),i("indentUnit",2,Ea,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(r){Bn(r),Ln(r),Lt(r)},!0),i("lineSeparator",null,function(r,o){if(r.doc.lineSep=o,!!o){var l=[],p=r.doc.first;r.doc.iter(function(d){for(var E=0;;){var N=d.text.indexOf(o,E);if(N==-1)break;E=N+o.length,l.push(W(p,N))}p++});for(var c=l.length-1;c>=0;c--)ki(r.doc,o,l[c],W(l[c].line,l[c].ch+o.length))}}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(r,o,l){r.state.specialChars=new RegExp(o.source+(o.test(" ")?"":"| "),"g"),l!=Yi&&r.refresh()}),i("specialCharPlaceholder",Zg,function(r){return r.refresh()},!0),i("electricChars",!0),i("inputStyle",C?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(r,o){return r.getInputField().spellcheck=o},!0),i("autocorrect",!1,function(r,o){return r.getInputField().autocorrect=o},!0),i("autocapitalize",!1,function(r,o){return r.getInputField().autocapitalize=o},!0),i("rtlMoveVisually",!D),i("wholeLineUpdateBefore",!0),i("theme","default",function(r){hp(r),Fn(r)},!0),i("keyMap","default",function(r,o,l){var p=Ho(o),c=l!=Yi&&Ho(l);c&&c.detach&&c.detach(r,p),p.attach&&p.attach(r,c||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,Em,!0),i("gutters",[],function(r,o){r.display.gutterSpecs=ha(o,r.options.lineNumbers),Fn(r)},!0),i("fixedGutter",!0,function(r,o){r.display.gutters.style.left=o?ra(r.display)+"px":"0",r.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(r){return Vi(r)},!0),i("scrollbarStyle","native",function(r){mu(r),Vi(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),i("lineNumbers",!1,function(r,o){r.display.gutterSpecs=ha(r.options.gutters,o),Fn(r)},!0),i("firstLineNumber",1,Fn,!0),i("lineNumberFormatter",function(r){return r},Fn,!0),i("showCursorWhenSelecting",!1,Rn,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(r,o){o=="nocursor"&&(Mi(r),r.display.input.blur()),r.display.input.readOnlyChanged(o)}),i("screenReaderLabel",null,function(r,o){o=o===""?null:o,r.display.input.screenReaderLabelChanged(o)}),i("disableInput",!1,function(r,o){o||r.display.input.reset()},!0),i("dragDrop",!0,gm),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,Rn,!0),i("singleCursorHeightPerLine",!0,Rn,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,Bn,!0),i("addModeClass",!1,Bn,!0),i("pollInterval",100),i("undoDepth",200,function(r,o){return r.doc.history.undoDepth=o}),i("historyEventDelay",1250),i("viewportMargin",10,function(r){return r.refresh()},!0),i("maxHighlightLength",1e4,Bn,!0),i("moveInputWithCursor",!0,function(r,o){o||r.display.input.resetPosition()}),i("tabindex",null,function(r,o){return r.display.input.getField().tabIndex=o||""}),i("autofocus",null),i("direction","ltr",function(r,o){return r.doc.setDirection(o)},!0),i("phrases",null)}function gm(e,t,i){var r=i&&i!=Yi;if(!t!=!r){var o=e.display.dragFunctions,l=t?se:St;l(e.display.scroller,"dragstart",o.start),l(e.display.scroller,"dragenter",o.enter),l(e.display.scroller,"dragover",o.over),l(e.display.scroller,"dragleave",o.leave),l(e.display.scroller,"drop",o.drop)}}function Em(e){e.options.lineWrapping?(Le(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ue(e.display.wrapper,"CodeMirror-wrap"),Ys(e)),ia(e),Lt(e),Ln(e),setTimeout(function(){return Vi(e)},100)}function Me(e,t){var i=this;if(!(this instanceof Me))return new Me(e,t);this.options=t=t?ze(t):{},ze(gp,t,!1);var r=t.value;typeof r=="string"?r=new Rt(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var o=new Me.inputStyles[t.inputStyle](this),l=this.display=new bE(e,r,o,t);l.wrapper.CodeMirror=this,hp(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),mu(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new tt,keySeq:null,specialChars:null},t.autofocus&&!C&&l.input.focus(),m&&I<11&&setTimeout(function(){return i.display.input.reset(!0)},20),mm(this),JE(),pi(this),this.curOp.forceUpdate=!0,Ru(this,r),t.autofocus&&!C||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&aa(i)},20):Mi(this);for(var p in Yo)Yo.hasOwnProperty(p)&&Yo[p](this,t[p],Yi);Iu(this),t.finishInit&&t.finishInit(this);for(var c=0;c<Ra.length;++c)Ra[c](this);ci(this),T&&t.lineWrapping&&getComputedStyle(l.lineDiv).textRendering=="optimizelegibility"&&(l.lineDiv.style.textRendering="auto")}Me.defaults=gp,Me.optionHandlers=Yo;function mm(e){var t=e.display;se(t.scroller,"mousedown",ot(e,pp)),m&&I<11?se(t.scroller,"dblclick",ot(e,function(d){if(!Ve(e,d)){var E=si(e,d);if(!(!E||La(e,d)||Cr(e.display,d))){ht(d);var N=e.findWordAt(E);wo(e.doc,N.anchor,N.head)}}})):se(t.scroller,"dblclick",function(d){return Ve(e,d)||ht(d)}),se(t.scroller,"contextmenu",function(d){return dp(e,d)}),se(t.input.getField(),"contextmenu",function(d){t.scroller.contains(d.target)||dp(e,d)});var i,r={end:0};function o(){t.activeTouch&&(i=setTimeout(function(){return t.activeTouch=null},1e3),r=t.activeTouch,r.end=+new Date)}function l(d){if(d.touches.length!=1)return!1;var E=d.touches[0];return E.radiusX<=1&&E.radiusY<=1}function p(d,E){if(E.left==null)return!0;var N=E.left-d.left,A=E.top-d.top;return N*N+A*A>20*20}se(t.scroller,"touchstart",function(d){if(!Ve(e,d)&&!l(d)&&!La(e,d)){t.input.ensurePolled(),clearTimeout(i);var E=+new Date;t.activeTouch={start:E,moved:!1,prev:E-r.end<=300?r:null},d.touches.length==1&&(t.activeTouch.left=d.touches[0].pageX,t.activeTouch.top=d.touches[0].pageY)}}),se(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),se(t.scroller,"touchend",function(d){var E=t.activeTouch;if(E&&!Cr(t,d)&&E.left!=null&&!E.moved&&new Date-E.start<300){var N=e.coordsChar(t.activeTouch,"page"),A;!E.prev||p(E,E.prev)?A=new Ne(N,N):!E.prev.prev||p(E,E.prev.prev)?A=e.findWordAt(N):A=new Ne(W(N.line,0),fe(e.doc,W(N.line+1,0))),e.setSelection(A.anchor,A.head),e.focus(),ht(d)}o()}),se(t.scroller,"touchcancel",o),se(t.scroller,"scroll",function(){t.scroller.clientHeight&&(bn(e,t.scroller.scrollTop),li(e,t.scroller.scrollLeft,!0),Fe(e,"scroll",e))}),se(t.scroller,"mousewheel",function(d){return Au(e,d)}),se(t.scroller,"DOMMouseScroll",function(d){return Au(e,d)}),se(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(d){Ve(e,d)||ii(d)},over:function(d){Ve(e,d)||(XE(e,d),ii(d))},start:function(d){return YE(e,d)},drop:ot(e,QE),leave:function(d){Ve(e,d)||qu(e)}};var c=t.input.getField();se(c,"keyup",function(d){return lp.call(e,d)}),se(c,"keydown",ot(e,ap)),se(c,"keypress",ot(e,up)),se(c,"focus",function(d){return aa(e,d)}),se(c,"blur",function(d){return Mi(e,d)})}var Ra=[];Me.defineInitHook=function(e){return Ra.push(e)};function Xn(e,t,i,r){var o=e.doc,l;i==null&&(i="add"),i=="smart"&&(o.mode.indent?l=Nn(e,t).state:i="prev");var p=e.options.tabSize,c=q(o,t),d=De(c.text,null,p);c.stateAfter&&(c.stateAfter=null);var E=c.text.match(/^\s*/)[0],N;if(!r&&!/\S/.test(c.text))N=0,i="not";else if(i=="smart"&&(N=o.mode.indent(l,c.text.slice(E.length),c.text),N==re||N>150)){if(!r)return;i="prev"}i=="prev"?t>o.first?N=De(q(o,t-1).text,null,p):N=0:i=="add"?N=d+e.options.indentUnit:i=="subtract"?N=d-e.options.indentUnit:typeof i=="number"&&(N=d+i),N=Math.max(0,N);var A="",U=0;if(e.options.indentWithTabs)for(var O=Math.floor(N/p);O;--O)U+=p,A+=" ";if(U<N&&(A+=jt(N-U)),A!=E)return ki(o,A,W(t,0),W(t,E.length),"+input"),c.stateAfter=null,!0;for(var P=0;P<o.sel.ranges.length;P++){var _=o.sel.ranges[P];if(_.head.line==t&&_.head.ch<E.length){var Z=W(t,E.length);Ia(o,P,new Ne(Z,Z));break}}}var sr=null;function Xo(e){sr=e}function ya(e,t,i,r,o){var l=e.doc;e.display.shift=!1,r||(r=l.sel);var p=+new Date-200,c=o=="paste"||e.state.pasteIncoming>p,d=Ri(t),E=null;if(c&&r.ranges.length>1)if(sr&&sr.text.join(`
|
|
13
|
+
`)==t){if(r.ranges.length%sr.text.length==0){E=[];for(var N=0;N<sr.text.length;N++)E.push(l.splitLines(sr.text[N]))}}else d.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(E=Qt(d,function(X){return[X]}));for(var A=e.curOp.updateInput,U=r.ranges.length-1;U>=0;U--){var O=r.ranges[U],P=O.from(),_=O.to();O.empty()&&(i&&i>0?P=W(P.line,P.ch-i):e.state.overwrite&&!c?_=W(_.line,Math.min(q(l,_.line).text.length,_.ch+$(d).length)):c&&sr&&sr.lineWise&&sr.text.join(`
|
|
14
14
|
`)==d.join(`
|
|
15
|
-
`)&&(P=_=W(P.line,0)));var Z={from:P,to:_,text:E?E[G%E.length]:d,origin:o||(c?"paste":e.state.cutIncoming>p?"cut":"+input")};Wi(e.doc,Z),nt(e,"inputRead",e,Z)}t&&!c&&mp(e,t),Pi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=C),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ep(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&_t(t,function(){return ya(t,i,0,null,"paste")}),!0}function mp(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var i=e.doc.sel,r=i.ranges.length-1;r>=0;r--){var o=i.ranges[r];if(!(o.head.ch>100||r&&i.ranges[r-1].head.line==o.head.line)){var l=e.getModeAt(o.head),p=!1;if(l.electricChars){for(var c=0;c<l.electricChars.length;c++)if(t.indexOf(l.electricChars.charAt(c))>-1){p=Xn(e,o.head.line,"smart");break}}else l.electricInput&&l.electricInput.test(q(e.doc,o.head.line).text.slice(0,o.head.ch))&&(p=Xn(e,o.head.line,"smart"));p&&nt(e,"electricInput",e,o.head.line)}}}function xp(e){for(var t=[],i=[],r=0;r<e.doc.sel.ranges.length;r++){var o=e.doc.sel.ranges[r].head.line,l={anchor:W(o,0),head:W(o+1,0)};i.push(l),t.push(e.getRange(l.anchor,l.head))}return{text:t,ranges:i}}function ba(e,t,i,r){e.setAttribute("autocorrect",i?"on":"off"),e.setAttribute("autocapitalize",r?"on":"off"),e.setAttribute("spellcheck",!!t)}function vp(){var e=Y("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=Y("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return T?e.style.width="1000px":e.setAttribute("wrap","off"),x&&(e.style.border="1px solid black"),t}function xm(e){var t=e.optionHandlers,i=e.helpers={};e.prototype={constructor:e,focus:function(){Ht(this).focus(),this.display.input.focus()},setOption:function(r,o){var l=this.options,p=l[r];l[r]==o&&r!="mode"||(l[r]=o,t.hasOwnProperty(r)&&ot(this,t[r])(this,o,p),Fe(this,"optionChange",this,r))},getOption:function(r){return this.options[r]},getDoc:function(){return this.doc},addKeyMap:function(r,o){this.state.keyMaps[o?"push":"unshift"](Ho(r))},removeKeyMap:function(r){for(var o=this.state.keyMaps,l=0;l<o.length;++l)if(o[l]==r||o[l].name==r)return o.splice(l,1),!0},addOverlay:vt(function(r,o){var l=r.token?r:e.getMode(this.options,r);if(l.startState)throw new Error("Overlays may not be stateful.");dt(this.state.overlays,{mode:l,modeSpec:r,opaque:o&&o.opaque,priority:o&&o.priority||0},function(p){return p.priority}),this.state.modeGen++,Lt(this)}),removeOverlay:vt(function(r){for(var o=this.state.overlays,l=0;l<o.length;++l){var p=o[l].modeSpec;if(p==r||typeof r=="string"&&p.name==r){o.splice(l,1),this.state.modeGen++,Lt(this);return}}}),indentLine:vt(function(r,o,l){typeof o!="string"&&typeof o!="number"&&(o==null?o=this.options.smartIndent?"smart":"prev":o=o?"add":"subtract"),Mr(this.doc,r)&&Xn(this,r,o,l)}),indentSelection:vt(function(r){for(var o=this.doc.sel.ranges,l=-1,p=0;p<o.length;p++){var c=o[p];if(c.empty())c.head.line>l&&(Xn(this,c.head.line,r,!0),l=c.head.line,p==this.doc.sel.primIndex&&Pi(this));else{var d=c.from(),E=c.to(),N=Math.max(l,d.line);l=Math.min(this.lastLine(),E.line-(E.ch?0:1))+1;for(var C=N;C<l;++C)Xn(this,C,r);var G=this.doc.sel.ranges;d.ch==0&&o.length==G.length&&G[p].from().ch>0&&Ia(this.doc,p,new Ne(d,G[p].to()),k)}}}),getTokenAt:function(r,o){return bl(this,r,o)},getLineTokens:function(r,o){return bl(this,W(r),o,!0)},getTokenTypeAt:function(r){r=fe(this.doc,r);var o=Ll(this,q(this.doc,r.line)),l=0,p=(o.length-1)/2,c=r.ch,d;if(c==0)d=o[2];else for(;;){var E=l+p>>1;if((E?o[E*2-1]:0)>=c)p=E;else if(o[E*2+1]<c)l=E+1;else{d=o[E*2+2];break}}var N=d?d.indexOf("overlay "):-1;return N<0?d:N==0?null:d.slice(0,N-1)},getModeAt:function(r){var o=this.doc.mode;return o.innerMode?e.innerMode(o,this.getTokenAt(r).state).mode:o},getHelper:function(r,o){return this.getHelpers(r,o)[0]},getHelpers:function(r,o){var l=[];if(!i.hasOwnProperty(o))return l;var p=i[o],c=this.getModeAt(r);if(typeof c[o]=="string")p[c[o]]&&l.push(p[c[o]]);else if(c[o])for(var d=0;d<c[o].length;d++){var E=p[c[o][d]];E&&l.push(E)}else c.helperType&&p[c.helperType]?l.push(p[c.helperType]):p[c.name]&&l.push(p[c.name]);for(var N=0;N<p._global.length;N++){var C=p._global[N];C.pred(c,this)&&Ge(l,C.val)==-1&&l.push(C.val)}return l},getStateAfter:function(r,o){var l=this.doc;return r=Cl(l,r??l.first+l.size-1),Nn(this,r+1,o).state},cursorCoords:function(r,o){var l,p=this.doc.sel.primary();return r==null?l=p.head:typeof r=="object"?l=fe(this.doc,r):l=r?p.from():p.to(),nr(this,l,o||"page")},charCoords:function(r,o){return bo(this,fe(this.doc,r),o||"page")},coordsChar:function(r,o){return r=nu(this,r,o||"page"),$s(this,r.left,r.top)},lineAtHeight:function(r,o){return r=nu(this,{top:r,left:0},o||"page").top,dr(this.doc,r+this.display.viewOffset)},heightAtLine:function(r,o,l){var p=!1,c;if(typeof r=="number"){var d=this.doc.first+this.doc.size-1;r<this.doc.first?r=this.doc.first:r>d&&(r=d,p=!0),c=q(this.doc,r)}else c=r;return yo(this,c,{top:0,left:0},o||"page",l||p).top+(p?this.doc.height-Cr(c):0)},defaultTextHeight:function(){return Bi(this.display)},defaultCharWidth:function(){return Di(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,o,l,p,c){var d=this.display;r=nr(this,fe(this.doc,r));var E=r.bottom,N=r.left;if(o.style.position="absolute",o.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(o),d.sizer.appendChild(o),p=="over")E=r.top;else if(p=="above"||p=="near"){var C=Math.max(d.wrapper.clientHeight,this.doc.height),G=Math.max(d.sizer.clientWidth,d.lineSpace.clientWidth);(p=="above"||r.bottom+o.offsetHeight>C)&&r.top>o.offsetHeight?E=r.top-o.offsetHeight:r.bottom+o.offsetHeight<=C&&(E=r.bottom),N+o.offsetWidth>G&&(N=G-o.offsetWidth)}o.style.top=E+"px",o.style.left=o.style.right="",c=="right"?(N=d.sizer.clientWidth-o.offsetWidth,o.style.right="0px"):(c=="left"?N=0:c=="middle"&&(N=(d.sizer.clientWidth-o.offsetWidth)/2),o.style.left=N+"px"),l&&gE(this,{left:N,top:E,right:N+o.offsetWidth,bottom:E+o.offsetHeight})},triggerOnKeyDown:vt(ap),triggerOnKeyPress:vt(up),triggerOnKeyUp:lp,triggerOnMouseDown:vt(pp),execCommand:function(r){if(Zn.hasOwnProperty(r))return Zn[r].call(null,this)},triggerElectric:vt(function(r){mp(this,r)}),findPosH:function(r,o,l,p){var c=1;o<0&&(c=-1,o=-o);for(var d=fe(this.doc,r),E=0;E<o&&(d=Oa(this.doc,d,c,l,p),!d.hitSide);++E);return d},moveH:vt(function(r,o){var l=this;this.extendSelectionsBy(function(p){return l.display.shift||l.doc.extend||p.empty()?Oa(l.doc,p.head,r,o,l.options.rtlMoveVisually):r<0?p.from():p.to()},Te)}),deleteH:vt(function(r,o){var l=this.doc.sel,p=this.doc;l.somethingSelected()?p.replaceSelection("",null,"+delete"):Qi(this,function(c){var d=Oa(p,c.head,r,o,!1);return r<0?{from:d,to:c.head}:{from:c.head,to:d}})}),findPosV:function(r,o,l,p){var c=1,d=p;o<0&&(c=-1,o=-o);for(var E=fe(this.doc,r),N=0;N<o;++N){var C=nr(this,E,"div");if(d==null?d=C.left:C.left=d,E=Ip(this,C,c,l),E.hitSide)break}return E},moveV:vt(function(r,o){var l=this,p=this.doc,c=[],d=!this.display.shift&&!p.extend&&p.sel.somethingSelected();if(p.extendSelectionsBy(function(N){if(d)return r<0?N.from():N.to();var C=nr(l,N.head,"div");N.goalColumn!=null&&(C.left=N.goalColumn),c.push(C.left);var G=Ip(l,C,r,o);return o=="page"&&N==p.sel.primary()&&ua(l,bo(l,G,"div").top-C.top),G},Te),c.length)for(var E=0;E<p.sel.ranges.length;E++)p.sel.ranges[E].goalColumn=c[E]}),findWordAt:function(r){var o=this.doc,l=q(o,r.line).text,p=r.ch,c=r.ch;if(l){var d=this.getHelper(r,"wordChars");(r.sticky=="before"||c==l.length)&&p?--p:++c;for(var E=l.charAt(p),N=ie(E,d)?function(C){return ie(C,d)}:/\s/.test(E)?function(C){return/\s/.test(C)}:function(C){return!/\s/.test(C)&&!ie(C)};p>0&&N(l.charAt(p-1));)--p;for(;c<l.length&&N(l.charAt(c));)++c}return new Ne(W(r.line,p),W(r.line,c))},toggleOverwrite:function(r){r!=null&&r==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Le(this.display.cursorDiv,"CodeMirror-overwrite"):ue(this.display.cursorDiv,"CodeMirror-overwrite"),Fe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==je(At(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:vt(function(r,o){yn(this,r,o)}),getScrollInfo:function(){var r=this.display.scroller;return{left:r.scrollLeft,top:r.scrollTop,height:r.scrollHeight-gr(this)-this.display.barHeight,width:r.scrollWidth-gr(this)-this.display.barWidth,clientHeight:js(this),clientWidth:ni(this)}},scrollIntoView:vt(function(r,o){r==null?(r={from:this.doc.sel.primary().head,to:null},o==null&&(o=this.options.cursorScrollMargin)):typeof r=="number"?r={from:W(r,0),to:null}:r.from==null&&(r={from:r,to:null}),r.to||(r.to=r.from),r.margin=o||0,r.from.line!=null?EE(this,r):du(this,r.from,r.to,r.margin)}),setSize:vt(function(r,o){var l=this,p=function(d){return typeof d=="number"||/^\d+$/.test(String(d))?d+"px":d};r!=null&&(this.display.wrapper.style.width=p(r)),o!=null&&(this.display.wrapper.style.height=p(o)),this.options.lineWrapping&&tu(this);var c=this.display.viewFrom;this.doc.iter(c,this.display.viewTo,function(d){if(d.widgets){for(var E=0;E<d.widgets.length;E++)if(d.widgets[E].noHScroll){Vr(l,c,"widget");break}}++c}),this.curOp.forceUpdate=!0,Fe(this,"refresh",this)}),operation:function(r){return _t(this,r)},startOperation:function(){return pi(this)},endOperation:function(){return ci(this)},refresh:vt(function(){var r=this.display.cachedTextHeight;Lt(this),this.curOp.forceUpdate=!0,Ln(this),yn(this,this.doc.scrollLeft,this.doc.scrollTop),fa(this.display),(r==null||Math.abs(r-Bi(this.display))>.5||this.options.lineWrapping)&&ia(this),Fe(this,"refresh",this)}),swapDoc:vt(function(r){var o=this.doc;return o.cm=null,this.state.selectingText&&this.state.selectingText(),Ru(this,r),Ln(this),this.display.input.reset(),yn(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,nt(this,"swapDoc",this,o),o}),phrase:function(r){var o=this.options.phrases;return o&&Object.prototype.hasOwnProperty.call(o,r)?o[r]:r},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Dr(e),e.registerHelper=function(r,o,l){i.hasOwnProperty(r)||(i[r]=e[r]={_global:[]}),i[r][o]=l},e.registerGlobalHelper=function(r,o,l,p){e.registerHelper(r,o,p),i[r]._global.push({pred:l,val:p})}}function Oa(e,t,i,r,o){var l=t,p=i,c=q(e,t.line),d=o&&e.direction=="rtl"?-i:i;function E(){var z=t.line+d;return z<e.first||z>=e.first+e.size?!1:(t=new W(z,t.ch,t.sticky),c=q(e,z))}function N(z){var J;if(r=="codepoint"){var K=c.text.charCodeAt(t.ch+(i>0?0:-1));if(isNaN(K))J=null;else{var ae=i>0?K>=55296&&K<56320:K>=56320&&K<57343;J=new W(t.line,Math.max(0,Math.min(c.text.length,t.ch+i*(ae?2:1))),-i)}}else o?J=$E(e.cm,c,t,i):J=Ta(c,t,i);if(J==null)if(!z&&E())t=Ca(o,e.cm,c,t.line,d);else return!1;else t=J;return!0}if(r=="char"||r=="codepoint")N();else if(r=="column")N(!0);else if(r=="word"||r=="group")for(var C=null,G=r=="group",O=e.cm&&e.cm.getHelper(t,"wordChars"),P=!0;!(i<0&&!N(!P));P=!1){var _=c.text.charAt(t.ch)||`
|
|
16
|
-
`,Z=ie(_,O)?"w":
|
|
17
|
-
`?"n":!
|
|
18
|
-
`);if(c.clipboardData.setData("Text",E),c.clipboardData.getData("Text")==E){c.preventDefault();return}}var N=vp(),
|
|
19
|
-
`);var
|
|
20
|
-
`),
|
|
15
|
+
`)&&(P=_=W(P.line,0)));var Z={from:P,to:_,text:E?E[U%E.length]:d,origin:o||(c?"paste":e.state.cutIncoming>p?"cut":"+input")};Wi(e.doc,Z),nt(e,"inputRead",e,Z)}t&&!c&&mp(e,t),Pi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=A),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ep(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&_t(t,function(){return ya(t,i,0,null,"paste")}),!0}function mp(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var i=e.doc.sel,r=i.ranges.length-1;r>=0;r--){var o=i.ranges[r];if(!(o.head.ch>100||r&&i.ranges[r-1].head.line==o.head.line)){var l=e.getModeAt(o.head),p=!1;if(l.electricChars){for(var c=0;c<l.electricChars.length;c++)if(t.indexOf(l.electricChars.charAt(c))>-1){p=Xn(e,o.head.line,"smart");break}}else l.electricInput&&l.electricInput.test(q(e.doc,o.head.line).text.slice(0,o.head.ch))&&(p=Xn(e,o.head.line,"smart"));p&&nt(e,"electricInput",e,o.head.line)}}}function xp(e){for(var t=[],i=[],r=0;r<e.doc.sel.ranges.length;r++){var o=e.doc.sel.ranges[r].head.line,l={anchor:W(o,0),head:W(o+1,0)};i.push(l),t.push(e.getRange(l.anchor,l.head))}return{text:t,ranges:i}}function ba(e,t,i,r){e.setAttribute("autocorrect",i?"on":"off"),e.setAttribute("autocapitalize",r?"on":"off"),e.setAttribute("spellcheck",!!t)}function vp(){var e=Y("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=Y("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return T?e.style.width="1000px":e.setAttribute("wrap","off"),x&&(e.style.border="1px solid black"),t}function xm(e){var t=e.optionHandlers,i=e.helpers={};e.prototype={constructor:e,focus:function(){Ht(this).focus(),this.display.input.focus()},setOption:function(r,o){var l=this.options,p=l[r];l[r]==o&&r!="mode"||(l[r]=o,t.hasOwnProperty(r)&&ot(this,t[r])(this,o,p),Fe(this,"optionChange",this,r))},getOption:function(r){return this.options[r]},getDoc:function(){return this.doc},addKeyMap:function(r,o){this.state.keyMaps[o?"push":"unshift"](Ho(r))},removeKeyMap:function(r){for(var o=this.state.keyMaps,l=0;l<o.length;++l)if(o[l]==r||o[l].name==r)return o.splice(l,1),!0},addOverlay:vt(function(r,o){var l=r.token?r:e.getMode(this.options,r);if(l.startState)throw new Error("Overlays may not be stateful.");dt(this.state.overlays,{mode:l,modeSpec:r,opaque:o&&o.opaque,priority:o&&o.priority||0},function(p){return p.priority}),this.state.modeGen++,Lt(this)}),removeOverlay:vt(function(r){for(var o=this.state.overlays,l=0;l<o.length;++l){var p=o[l].modeSpec;if(p==r||typeof r=="string"&&p.name==r){o.splice(l,1),this.state.modeGen++,Lt(this);return}}}),indentLine:vt(function(r,o,l){typeof o!="string"&&typeof o!="number"&&(o==null?o=this.options.smartIndent?"smart":"prev":o=o?"add":"subtract"),Mr(this.doc,r)&&Xn(this,r,o,l)}),indentSelection:vt(function(r){for(var o=this.doc.sel.ranges,l=-1,p=0;p<o.length;p++){var c=o[p];if(c.empty())c.head.line>l&&(Xn(this,c.head.line,r,!0),l=c.head.line,p==this.doc.sel.primIndex&&Pi(this));else{var d=c.from(),E=c.to(),N=Math.max(l,d.line);l=Math.min(this.lastLine(),E.line-(E.ch?0:1))+1;for(var A=N;A<l;++A)Xn(this,A,r);var U=this.doc.sel.ranges;d.ch==0&&o.length==U.length&&U[p].from().ch>0&&Ia(this.doc,p,new Ne(d,U[p].to()),k)}}}),getTokenAt:function(r,o){return bl(this,r,o)},getLineTokens:function(r,o){return bl(this,W(r),o,!0)},getTokenTypeAt:function(r){r=fe(this.doc,r);var o=Ll(this,q(this.doc,r.line)),l=0,p=(o.length-1)/2,c=r.ch,d;if(c==0)d=o[2];else for(;;){var E=l+p>>1;if((E?o[E*2-1]:0)>=c)p=E;else if(o[E*2+1]<c)l=E+1;else{d=o[E*2+2];break}}var N=d?d.indexOf("overlay "):-1;return N<0?d:N==0?null:d.slice(0,N-1)},getModeAt:function(r){var o=this.doc.mode;return o.innerMode?e.innerMode(o,this.getTokenAt(r).state).mode:o},getHelper:function(r,o){return this.getHelpers(r,o)[0]},getHelpers:function(r,o){var l=[];if(!i.hasOwnProperty(o))return l;var p=i[o],c=this.getModeAt(r);if(typeof c[o]=="string")p[c[o]]&&l.push(p[c[o]]);else if(c[o])for(var d=0;d<c[o].length;d++){var E=p[c[o][d]];E&&l.push(E)}else c.helperType&&p[c.helperType]?l.push(p[c.helperType]):p[c.name]&&l.push(p[c.name]);for(var N=0;N<p._global.length;N++){var A=p._global[N];A.pred(c,this)&&Ue(l,A.val)==-1&&l.push(A.val)}return l},getStateAfter:function(r,o){var l=this.doc;return r=Al(l,r??l.first+l.size-1),Nn(this,r+1,o).state},cursorCoords:function(r,o){var l,p=this.doc.sel.primary();return r==null?l=p.head:typeof r=="object"?l=fe(this.doc,r):l=r?p.from():p.to(),nr(this,l,o||"page")},charCoords:function(r,o){return bo(this,fe(this.doc,r),o||"page")},coordsChar:function(r,o){return r=nu(this,r,o||"page"),$s(this,r.left,r.top)},lineAtHeight:function(r,o){return r=nu(this,{top:r,left:0},o||"page").top,dr(this.doc,r+this.display.viewOffset)},heightAtLine:function(r,o,l){var p=!1,c;if(typeof r=="number"){var d=this.doc.first+this.doc.size-1;r<this.doc.first?r=this.doc.first:r>d&&(r=d,p=!0),c=q(this.doc,r)}else c=r;return yo(this,c,{top:0,left:0},o||"page",l||p).top+(p?this.doc.height-Ar(c):0)},defaultTextHeight:function(){return Bi(this.display)},defaultCharWidth:function(){return Di(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,o,l,p,c){var d=this.display;r=nr(this,fe(this.doc,r));var E=r.bottom,N=r.left;if(o.style.position="absolute",o.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(o),d.sizer.appendChild(o),p=="over")E=r.top;else if(p=="above"||p=="near"){var A=Math.max(d.wrapper.clientHeight,this.doc.height),U=Math.max(d.sizer.clientWidth,d.lineSpace.clientWidth);(p=="above"||r.bottom+o.offsetHeight>A)&&r.top>o.offsetHeight?E=r.top-o.offsetHeight:r.bottom+o.offsetHeight<=A&&(E=r.bottom),N+o.offsetWidth>U&&(N=U-o.offsetWidth)}o.style.top=E+"px",o.style.left=o.style.right="",c=="right"?(N=d.sizer.clientWidth-o.offsetWidth,o.style.right="0px"):(c=="left"?N=0:c=="middle"&&(N=(d.sizer.clientWidth-o.offsetWidth)/2),o.style.left=N+"px"),l&&gE(this,{left:N,top:E,right:N+o.offsetWidth,bottom:E+o.offsetHeight})},triggerOnKeyDown:vt(ap),triggerOnKeyPress:vt(up),triggerOnKeyUp:lp,triggerOnMouseDown:vt(pp),execCommand:function(r){if(Zn.hasOwnProperty(r))return Zn[r].call(null,this)},triggerElectric:vt(function(r){mp(this,r)}),findPosH:function(r,o,l,p){var c=1;o<0&&(c=-1,o=-o);for(var d=fe(this.doc,r),E=0;E<o&&(d=Oa(this.doc,d,c,l,p),!d.hitSide);++E);return d},moveH:vt(function(r,o){var l=this;this.extendSelectionsBy(function(p){return l.display.shift||l.doc.extend||p.empty()?Oa(l.doc,p.head,r,o,l.options.rtlMoveVisually):r<0?p.from():p.to()},Te)}),deleteH:vt(function(r,o){var l=this.doc.sel,p=this.doc;l.somethingSelected()?p.replaceSelection("",null,"+delete"):Qi(this,function(c){var d=Oa(p,c.head,r,o,!1);return r<0?{from:d,to:c.head}:{from:c.head,to:d}})}),findPosV:function(r,o,l,p){var c=1,d=p;o<0&&(c=-1,o=-o);for(var E=fe(this.doc,r),N=0;N<o;++N){var A=nr(this,E,"div");if(d==null?d=A.left:A.left=d,E=Ip(this,A,c,l),E.hitSide)break}return E},moveV:vt(function(r,o){var l=this,p=this.doc,c=[],d=!this.display.shift&&!p.extend&&p.sel.somethingSelected();if(p.extendSelectionsBy(function(N){if(d)return r<0?N.from():N.to();var A=nr(l,N.head,"div");N.goalColumn!=null&&(A.left=N.goalColumn),c.push(A.left);var U=Ip(l,A,r,o);return o=="page"&&N==p.sel.primary()&&ua(l,bo(l,U,"div").top-A.top),U},Te),c.length)for(var E=0;E<p.sel.ranges.length;E++)p.sel.ranges[E].goalColumn=c[E]}),findWordAt:function(r){var o=this.doc,l=q(o,r.line).text,p=r.ch,c=r.ch;if(l){var d=this.getHelper(r,"wordChars");(r.sticky=="before"||c==l.length)&&p?--p:++c;for(var E=l.charAt(p),N=ie(E,d)?function(A){return ie(A,d)}:/\s/.test(E)?function(A){return/\s/.test(A)}:function(A){return!/\s/.test(A)&&!ie(A)};p>0&&N(l.charAt(p-1));)--p;for(;c<l.length&&N(l.charAt(c));)++c}return new Ne(W(r.line,p),W(r.line,c))},toggleOverwrite:function(r){r!=null&&r==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Le(this.display.cursorDiv,"CodeMirror-overwrite"):ue(this.display.cursorDiv,"CodeMirror-overwrite"),Fe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==je(Ct(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:vt(function(r,o){yn(this,r,o)}),getScrollInfo:function(){var r=this.display.scroller;return{left:r.scrollLeft,top:r.scrollTop,height:r.scrollHeight-gr(this)-this.display.barHeight,width:r.scrollWidth-gr(this)-this.display.barWidth,clientHeight:js(this),clientWidth:ni(this)}},scrollIntoView:vt(function(r,o){r==null?(r={from:this.doc.sel.primary().head,to:null},o==null&&(o=this.options.cursorScrollMargin)):typeof r=="number"?r={from:W(r,0),to:null}:r.from==null&&(r={from:r,to:null}),r.to||(r.to=r.from),r.margin=o||0,r.from.line!=null?EE(this,r):du(this,r.from,r.to,r.margin)}),setSize:vt(function(r,o){var l=this,p=function(d){return typeof d=="number"||/^\d+$/.test(String(d))?d+"px":d};r!=null&&(this.display.wrapper.style.width=p(r)),o!=null&&(this.display.wrapper.style.height=p(o)),this.options.lineWrapping&&tu(this);var c=this.display.viewFrom;this.doc.iter(c,this.display.viewTo,function(d){if(d.widgets){for(var E=0;E<d.widgets.length;E++)if(d.widgets[E].noHScroll){Vr(l,c,"widget");break}}++c}),this.curOp.forceUpdate=!0,Fe(this,"refresh",this)}),operation:function(r){return _t(this,r)},startOperation:function(){return pi(this)},endOperation:function(){return ci(this)},refresh:vt(function(){var r=this.display.cachedTextHeight;Lt(this),this.curOp.forceUpdate=!0,Ln(this),yn(this,this.doc.scrollLeft,this.doc.scrollTop),fa(this.display),(r==null||Math.abs(r-Bi(this.display))>.5||this.options.lineWrapping)&&ia(this),Fe(this,"refresh",this)}),swapDoc:vt(function(r){var o=this.doc;return o.cm=null,this.state.selectingText&&this.state.selectingText(),Ru(this,r),Ln(this),this.display.input.reset(),yn(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,nt(this,"swapDoc",this,o),o}),phrase:function(r){var o=this.options.phrases;return o&&Object.prototype.hasOwnProperty.call(o,r)?o[r]:r},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Dr(e),e.registerHelper=function(r,o,l){i.hasOwnProperty(r)||(i[r]=e[r]={_global:[]}),i[r][o]=l},e.registerGlobalHelper=function(r,o,l,p){e.registerHelper(r,o,p),i[r]._global.push({pred:l,val:p})}}function Oa(e,t,i,r,o){var l=t,p=i,c=q(e,t.line),d=o&&e.direction=="rtl"?-i:i;function E(){var z=t.line+d;return z<e.first||z>=e.first+e.size?!1:(t=new W(z,t.ch,t.sticky),c=q(e,z))}function N(z){var J;if(r=="codepoint"){var K=c.text.charCodeAt(t.ch+(i>0?0:-1));if(isNaN(K))J=null;else{var ae=i>0?K>=55296&&K<56320:K>=56320&&K<57343;J=new W(t.line,Math.max(0,Math.min(c.text.length,t.ch+i*(ae?2:1))),-i)}}else o?J=$E(e.cm,c,t,i):J=Ta(c,t,i);if(J==null)if(!z&&E())t=Aa(o,e.cm,c,t.line,d);else return!1;else t=J;return!0}if(r=="char"||r=="codepoint")N();else if(r=="column")N(!0);else if(r=="word"||r=="group")for(var A=null,U=r=="group",O=e.cm&&e.cm.getHelper(t,"wordChars"),P=!0;!(i<0&&!N(!P));P=!1){var _=c.text.charAt(t.ch)||`
|
|
16
|
+
`,Z=ie(_,O)?"w":U&&_==`
|
|
17
|
+
`?"n":!U||/\s/.test(_)?null:"p";if(U&&!P&&!Z&&(Z="s"),A&&A!=Z){i<0&&(i=1,N(),t.sticky="after");break}if(Z&&(A=Z),i>0&&!N(!P))break}var X=Wo(e,t,l,p,!0);return Vs(l,X)&&(X.hitSide=!0),X}function Ip(e,t,i,r){var o=e.doc,l=t.left,p;if(r=="page"){var c=Math.min(e.display.wrapper.clientHeight,Ht(e).innerHeight||o(e).documentElement.clientHeight),d=Math.max(c-.5*Bi(e.display),3);p=(i>0?t.bottom:t.top)+i*d}else r=="line"&&(p=i>0?t.bottom+3:t.top-3);for(var E;E=$s(e,l,p),!!E.outside;){if(i<0?p<=0:p>=o.height){E.hitSide=!0;break}p+=i*5}return E}var Ce=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new tt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ce.prototype.init=function(e){var t=this,i=this,r=i.cm,o=i.div=e.lineDiv;o.contentEditable=!0,ba(o,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function l(c){for(var d=c.target;d;d=d.parentNode){if(d==o)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(d.className))break}return!1}se(o,"paste",function(c){!l(c)||Ve(r,c)||Ep(c,r)||I<=11&&setTimeout(ot(r,function(){return t.updateFromDOM()}),20)}),se(o,"compositionstart",function(c){t.composing={data:c.data,done:!1}}),se(o,"compositionupdate",function(c){t.composing||(t.composing={data:c.data,done:!1})}),se(o,"compositionend",function(c){t.composing&&(c.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),se(o,"touchstart",function(){return i.forceCompositionEnd()}),se(o,"input",function(){t.composing||t.readFromDOMSoon()});function p(c){if(!(!l(c)||Ve(r,c))){if(r.somethingSelected())Xo({lineWise:!1,text:r.getSelections()}),c.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var d=xp(r);Xo({lineWise:!0,text:d.text}),c.type=="cut"&&r.operation(function(){r.setSelections(d.ranges,0,k),r.replaceSelection("",null,"cut")})}else return;if(c.clipboardData){c.clipboardData.clearData();var E=sr.text.join(`
|
|
18
|
+
`);if(c.clipboardData.setData("Text",E),c.clipboardData.getData("Text")==E){c.preventDefault();return}}var N=vp(),A=N.firstChild;ba(A),r.display.lineSpace.insertBefore(N,r.display.lineSpace.firstChild),A.value=sr.text.join(`
|
|
19
|
+
`);var U=je(Ie(o));At(A),setTimeout(function(){r.display.lineSpace.removeChild(N),U.focus(),U==o&&i.showPrimarySelection()},50)}}se(o,"copy",p),se(o,"cut",p)},Ce.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ce.prototype.prepareSelection=function(){var e=pu(this.cm,!1);return e.focus=je(Ie(this.div))==this.div,e},Ce.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ce.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ce.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),r=i.from(),o=i.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||o.line<t.display.viewFrom){e.removeAllRanges();return}var l=Jo(t,e.anchorNode,e.anchorOffset),p=Jo(t,e.focusNode,e.focusOffset);if(!(l&&!l.bad&&p&&!p.bad&&ce(vo(l,p),r)==0&&ce(xo(l,p),o)==0)){var c=t.display.view,d=r.line>=t.display.viewFrom&&Np(t,r)||{node:c[0].measure.map[2],offset:0},E=o.line<t.display.viewTo&&Np(t,o);if(!E){var N=c[c.length-1].measure,A=N.maps?N.maps[N.maps.length-1]:N.map;E={node:A[A.length-1],offset:A[A.length-2]-A[A.length-3]}}if(!d||!E){e.removeAllRanges();return}var U=e.rangeCount&&e.getRangeAt(0),O;try{O=Be(d.node,d.offset,E.offset,E.node)}catch{}O&&(!a&&t.state.focused?(e.collapse(d.node,d.offset),O.collapsed||(e.removeAllRanges(),e.addRange(O))):(e.removeAllRanges(),e.addRange(O)),U&&e.anchorNode==null?e.addRange(U):a&&this.startGracePeriod()),this.rememberSelection()}},Ce.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Ce.prototype.showMultipleSelections=function(e){me(this.cm.display.cursorDiv,e.cursors),me(this.cm.display.selectionDiv,e.selection)},Ce.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ce.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return et(this.div,t)},Ce.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||je(Ie(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ce.prototype.blur=function(){this.div.blur()},Ce.prototype.getField=function(){return this.div},Ce.prototype.supportsTouch=function(){return!0},Ce.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):_t(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function i(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,i))}this.polling.set(this.cm.options.pollInterval,i)},Ce.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ce.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(v&&L&&this.cm.display.gutterSpecs.length&&vm(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var i=Jo(t,e.anchorNode,e.anchorOffset),r=Jo(t,e.focusNode,e.focusOffset);i&&r&&_t(t,function(){Et(t.doc,_r(i,r),k),(i.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},Ce.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,i=e.doc.sel.primary(),r=i.from(),o=i.to();if(r.ch==0&&r.line>e.firstLine()&&(r=W(r.line-1,q(e.doc,r.line-1).length)),o.ch==q(e.doc,o.line).text.length&&o.line<e.lastLine()&&(o=W(o.line+1,0)),r.line<t.viewFrom||o.line>t.viewTo-1)return!1;var l,p,c;r.line==t.viewFrom||(l=ai(e,r.line))==0?(p=pe(t.view[0].line),c=t.view[0].node):(p=pe(t.view[l].line),c=t.view[l-1].node.nextSibling);var d=ai(e,o.line),E,N;if(d==t.view.length-1?(E=t.viewTo-1,N=t.lineDiv.lastChild):(E=pe(t.view[d+1].line)-1,N=t.view[d+1].node.previousSibling),!c)return!1;for(var A=e.doc.splitLines(Im(e,c,N,p,E)),U=gt(e.doc,W(p,0),W(E,q(e.doc,E).text.length));A.length>1&&U.length>1;)if($(A)==$(U))A.pop(),U.pop(),E--;else if(A[0]==U[0])A.shift(),U.shift(),p++;else break;for(var O=0,P=0,_=A[0],Z=U[0],X=Math.min(_.length,Z.length);O<X&&_.charCodeAt(O)==Z.charCodeAt(O);)++O;for(var z=$(A),J=$(U),K=Math.min(z.length-(A.length==1?O:0),J.length-(U.length==1?O:0));P<K&&z.charCodeAt(z.length-P-1)==J.charCodeAt(J.length-P-1);)++P;if(A.length==1&&U.length==1&&p==r.line)for(;O&&O>r.ch&&z.charCodeAt(z.length-P-1)==J.charCodeAt(J.length-P-1);)O--,P++;A[A.length-1]=z.slice(0,z.length-P).replace(/^\u200b+/,""),A[0]=A[0].slice(O).replace(/\u200b+$/,"");var ae=W(p,O),ne=W(E,U.length?$(U).length-P:0);if(A.length>1||A[0]||ce(ae,ne))return ki(e.doc,A,ae,ne,"+input"),!0},Ce.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ce.prototype.reset=function(){this.forceCompositionEnd()},Ce.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ce.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},Ce.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&_t(this.cm,function(){return Lt(e.cm)})},Ce.prototype.setUneditable=function(e){e.contentEditable="false"},Ce.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ot(this.cm,ya)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Ce.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Ce.prototype.onContextMenu=function(){},Ce.prototype.resetPosition=function(){},Ce.prototype.needsContentAttribute=!0;function Np(e,t){var i=zs(e,t.line);if(!i||i.hidden)return null;var r=q(e.doc,t.line),o=zl(i,r,t.line),l=rt(r,e.doc.direction),p="left";if(l){var c=pr(l,t.ch);p=c%2?"right":"left"}var d=$l(o.map,t.ch,p);return d.offset=d.collapse=="right"?d.end:d.start,d}function vm(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Xi(e,t){return t&&(e.bad=!0),e}function Im(e,t,i,r,o){var l="",p=!1,c=e.doc.lineSeparator(),d=!1;function E(O){return function(P){return P.id==O}}function N(){p&&(l+=c,d&&(l+=c),p=d=!1)}function A(O){O&&(N(),l+=O)}function U(O){if(O.nodeType==1){var P=O.getAttribute("cm-text");if(P){A(P);return}var _=O.getAttribute("cm-marker"),Z;if(_){var X=e.findMarks(W(r,0),W(o+1,0),E(+_));X.length&&(Z=X[0].find(0))&&A(gt(e.doc,Z.from,Z.to).join(c));return}if(O.getAttribute("contenteditable")=="false")return;var z=/^(pre|div|p|li|table|br)$/i.test(O.nodeName);if(!/^br$/i.test(O.nodeName)&&O.textContent.length==0)return;z&&N();for(var J=0;J<O.childNodes.length;J++)U(O.childNodes[J]);/^(pre|p)$/i.test(O.nodeName)&&(d=!0),z&&(p=!0)}else O.nodeType==3&&A(O.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;U(t),t!=i;)t=t.nextSibling,d=!1;return l}function Jo(e,t,i){var r;if(t==e.display.lineDiv){if(r=e.display.lineDiv.childNodes[i],!r)return Xi(e.clipPos(W(e.display.viewTo-1)),!0);t=null,i=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var o=0;o<e.display.view.length;o++){var l=e.display.view[o];if(l.node==r)return Nm(l,t,i)}}function Nm(e,t,i){var r=e.text.firstChild,o=!1;if(!t||!et(r,t))return Xi(W(pe(e.line),0),!0);if(t==r&&(o=!0,t=r.childNodes[i],i=0,!t)){var l=e.rest?$(e.rest):e.line;return Xi(W(pe(l),l.text.length),o)}var p=t.nodeType==3?t:null,c=t;for(!p&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(p=t.firstChild,i&&(i=p.nodeValue.length));c.parentNode!=r;)c=c.parentNode;var d=e.measure,E=d.maps;function N(Z,X,z){for(var J=-1;J<(E?E.length:0);J++)for(var K=J<0?d.map:E[J],ae=0;ae<K.length;ae+=3){var ne=K[ae+2];if(ne==Z||ne==X){var Ee=pe(J<0?e.line:e.rest[J]),ye=K[ae]+z;return(z<0||ne!=Z)&&(ye=K[ae+(z?1:0)]),W(Ee,ye)}}}var A=N(p,c,i);if(A)return Xi(A,o);for(var U=c.nextSibling,O=p?p.nodeValue.length-i:0;U;U=U.nextSibling){if(A=N(U,U.firstChild,0),A)return Xi(W(A.line,A.ch-O),o);O+=U.textContent.length}for(var P=c.previousSibling,_=i;P;P=P.previousSibling){if(A=N(P,P.firstChild,-1),A)return Xi(W(A.line,A.ch+_),o);_+=P.textContent.length}}var Qe=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new tt,this.hasSelection=!1,this.composing=null,this.resetting=!1};Qe.prototype.init=function(e){var t=this,i=this,r=this.cm;this.createField(e);var o=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),x&&(o.style.width="0px"),se(o,"input",function(){m&&I>=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),se(o,"paste",function(p){Ve(r,p)||Ep(p,r)||(r.state.pasteIncoming=+new Date,i.fastPoll())});function l(p){if(!Ve(r,p)){if(r.somethingSelected())Xo({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var c=xp(r);Xo({lineWise:!0,text:c.text}),p.type=="cut"?r.setSelections(c.ranges,null,k):(i.prevInput="",o.value=c.text.join(`
|
|
20
|
+
`),At(o))}else return;p.type=="cut"&&(r.state.cutIncoming=+new Date)}}se(o,"cut",l),se(o,"copy",l),se(e.scroller,"paste",function(p){if(!(Cr(e,p)||Ve(r,p))){if(!o.dispatchEvent){r.state.pasteIncoming=+new Date,i.focus();return}var c=new Event("paste");c.clipboardData=p.clipboardData,o.dispatchEvent(c)}}),se(e.lineSpace,"selectstart",function(p){Cr(e,p)||ht(p)}),se(o,"compositionstart",function(){var p=r.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:p,range:r.markText(p,r.getCursor("to"),{className:"CodeMirror-composing"})}}),se(o,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},Qe.prototype.createField=function(e){this.wrapper=vp(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;ba(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},Qe.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Qe.prototype.prepareSelection=function(){var e=this.cm,t=e.display,i=e.doc,r=pu(e);if(e.options.moveInputWithCursor){var o=nr(e,i.sel.primary().head,"div"),l=t.wrapper.getBoundingClientRect(),p=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,o.top+p.top-l.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,o.left+p.left-l.left))}return r},Qe.prototype.showSelection=function(e){var t=this.cm,i=t.display;me(i.cursorDiv,e.cursors),me(i.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Qe.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var i=t.getSelection();this.textarea.value=i,t.state.focused&&At(this.textarea),m&&I>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",m&&I>=9&&(this.hasSelection=null));this.resetting=!1}},Qe.prototype.getField=function(){return this.textarea},Qe.prototype.supportsTouch=function(){return!1},Qe.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!C||je(Ie(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Qe.prototype.blur=function(){this.textarea.blur()},Qe.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Qe.prototype.receivedFocus=function(){this.slowPoll()},Qe.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Qe.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function i(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,i)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,i)},Qe.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||go(i)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var o=i.value;if(o==r&&!t.somethingSelected())return!1;if(m&&I>=9&&this.hasSelection===o||R&&/[\uf700-\uf7ff]/.test(o))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var l=o.charCodeAt(0);if(l==8203&&!r&&(r="\u200B"),l==8666)return this.reset(),this.cm.execCommand("undo")}for(var p=0,c=Math.min(r.length,o.length);p<c&&r.charCodeAt(p)==o.charCodeAt(p);)++p;return _t(t,function(){ya(t,o.slice(p),r.length-p,null,e.composing?"*compose":null),o.length>1e3||o.indexOf(`
|
|
21
21
|
`)>-1?i.value=e.prevInput="":e.prevInput=o,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Qe.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Qe.prototype.onKeyPress=function(){m&&I>=9&&(this.hasSelection=null),this.fastPoll()},Qe.prototype.onContextMenu=function(e){var t=this,i=t.cm,r=i.display,o=t.textarea;t.contextMenuPending&&t.contextMenuPending();var l=si(i,e),p=r.scroller.scrollTop;if(!l||y)return;var c=i.options.resetSelectionOnContextMenu;c&&i.doc.sel.contains(l)==-1&&ot(i,Et)(i.doc,_r(l),k);var d=o.style.cssText,E=t.wrapper.style.cssText,N=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",o.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
22
22
|
top: `+(e.clientY-N.top-5)+"px; left: "+(e.clientX-N.left-5)+`px;
|
|
23
23
|
z-index: 1000; background: `+(m?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
24
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var C;T&&(C=o.ownerDocument.defaultView.scrollY),r.input.focus(),T&&o.ownerDocument.defaultView.scrollTo(null,C),r.input.reset(),i.somethingSelected()||(o.value=t.prevInput=" "),t.contextMenuPending=O,r.selForContextMenu=i.doc.sel,clearTimeout(r.detectingSelectAll);function G(){if(o.selectionStart!=null){var _=i.somethingSelected(),Z="\u200B"+(_?o.value:"");o.value="\u21DA",o.value=Z,t.prevInput=_?"":"\u200B",o.selectionStart=1,o.selectionEnd=Z.length,r.selForContextMenu=i.doc.sel}}function O(){if(t.contextMenuPending==O&&(t.contextMenuPending=!1,t.wrapper.style.cssText=E,o.style.cssText=d,m&&I<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=p),o.selectionStart!=null)){(!m||m&&I<9)&&G();var _=0,Z=function(){r.selForContextMenu==i.doc.sel&&o.selectionStart==0&&o.selectionEnd>0&&t.prevInput=="\u200B"?ot(i,_u)(i):_++<10?r.detectingSelectAll=setTimeout(Z,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(Z,200)}}if(m&&I>=9&&G(),de){ii(e);var P=function(){St(window,"mouseup",P),setTimeout(O,20)};se(window,"mouseup",P)}else setTimeout(O,50)},Qe.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Qe.prototype.setUneditable=function(){},Qe.prototype.needsContentAttribute=!1;function Tm(e,t){if(t=t?ze(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var i=je(Ie(e));t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function r(){e.value=c.getValue()}var o;if(e.form&&(se(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var l=e.form;o=l.submit;try{var p=l.submit=function(){r(),l.submit=o,l.submit(),l.submit=p}}catch{}}t.finishInit=function(d){d.save=r,d.getTextArea=function(){return e},d.toTextArea=function(){d.toTextArea=isNaN,r(),e.parentNode.removeChild(d.getWrapperElement()),e.style.display="",e.form&&(St(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=o))}},e.style.display="none";var c=Me(function(d){return e.parentNode.insertBefore(d,e.nextSibling)},t);return c}function Cm(e){e.off=St,e.on=se,e.wheelEventPixels=OE,e.Doc=Rt,e.splitLines=Ri,e.countColumn=De,e.findColumn=ve,e.isWordChar=tr,e.Pass=re,e.signal=Fe,e.Line=Ui,e.changeEnd=Wr,e.scrollbarModel=Eu,e.Pos=W,e.cmpPos=ce,e.modes=bi,e.mimeModes=Nr,e.resolveMode=Oi,e.getMode=oe,e.modeExtensions=b,e.extendMode=H,e.copyState=ee,e.startState=it,e.innerMode=Re,e.commands=Zn,e.keyMap=Lr,e.keyName=rp,e.isModifierKey=ep,e.lookupKey=Hi,e.normalizeKeyMap=KE,e.StringStream=ge,e.SharedTextMarker=_n,e.TextMarker=Zr,e.LineWidget=wn,e.e_preventDefault=ht,e.e_stopPropagation=Ye,e.e_stop=ii,e.addClass=Le,e.contains=et,e.rmClass=ue,e.keyNames=Hr}hm(Me),xm(Me);var Am="iter insert remove copy getEditor constructor".split(" ");for(var jo in Rt.prototype)Rt.prototype.hasOwnProperty(jo)&&Ge(Am,jo)<0&&(Me.prototype[jo]=function(e){return function(){return e.apply(this.doc,arguments)}}(Rt.prototype[jo]));return Dr(Rt),Me.inputStyles={textarea:Qe,contenteditable:Ae},Me.defineMode=function(e){!Me.defaults.mode&&e!="null"&&(Me.defaults.mode=e),Eo.apply(this,arguments)},Me.defineMIME=mo,Me.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Me.defineMIME("text/plain","null"),Me.defineExtension=function(e,t){Me.prototype[e]=t},Me.defineDocExtension=function(e,t){Rt.prototype[e]=t},Me.fromTextArea=Tm,Cm(Me),Me.version="5.65.20",Me})});var hi=Se((rS,Jp)=>{var Qa=rx(),$m=ix(),ex=nx(),tx=typeof window<"u"?window:global;Jp.exports={assign:Qa,create:$m,trim:ex,bind:ox,slice:Ya,each:Xp,map:sx,pluck:Xa,isList:Ja,isFunction:ax,isObject:lx,Global:tx};function rx(){return Object.assign?Object.assign:function(s,a,u,h){for(var g=1;g<arguments.length;g++)Xp(Object(arguments[g]),function(m,I){s[I]=m});return s}}function ix(){if(Object.create)return function(a,u,h,g){var m=Ya(arguments,1);return Qa.apply(this,[Object.create(a)].concat(m))};{let s=function(){};var n=s;return function(u,h,g,m){var I=Ya(arguments,1);return s.prototype=u,Qa.apply(this,[new s].concat(I))}}}function nx(){return String.prototype.trim?function(s){return String.prototype.trim.call(s)}:function(s){return s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function ox(n,s){return function(){return s.apply(n,Array.prototype.slice.call(arguments,0))}}function Ya(n,s){return Array.prototype.slice.call(n,s||0)}function Xp(n,s){Xa(n,function(a,u){return s(a,u),!1})}function sx(n,s){var a=Ja(n)?[]:{};return Xa(n,function(u,h){return a[h]=s(u,h),!1}),a}function Xa(n,s){if(Ja(n)){for(var a=0;a<n.length;a++)if(s(n[a],a))return n[a]}else for(var u in n)if(n.hasOwnProperty(u)&&s(n[u],u))return n[u]}function Ja(n){return n!=null&&typeof n!="function"&&typeof n.length=="number"}function ax(n){return n&&{}.toString.call(n)==="[object Function]"}function lx(n){return n&&{}.toString.call(n)==="[object Object]"}});var zp=Se((iS,jp)=>{var Yr=hi(),ux=Yr.slice,px=Yr.pluck,qi=Yr.each,cx=Yr.bind,fx=Yr.create,ja=Yr.isList,za=Yr.isFunction,dx=Yr.isObject;jp.exports={createStore:qa};var hx={version:"2.0.12",enabled:!1,get:function(n,s){var a=this.storage.read(this._namespacePrefix+n);return this._deserialize(a,s)},set:function(n,s){return s===void 0?this.remove(n):(this.storage.write(this._namespacePrefix+n,this._serialize(s)),s)},remove:function(n){this.storage.remove(this._namespacePrefix+n)},each:function(n){var s=this;this.storage.each(function(a,u){n.call(s,s._deserialize(a),(u||"").replace(s._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(n){return this._namespacePrefix=="__storejs_"+n+"_"},createStore:function(){return qa.apply(this,arguments)},addPlugin:function(n){this._addPlugin(n)},namespace:function(n){return qa(this.storage,this.plugins,n)}};function gx(){var n=typeof console>"u"?null:console;if(n){var s=n.warn?n.warn:n.log;s.apply(n,arguments)}}function qa(n,s,a){a||(a=""),n&&!ja(n)&&(n=[n]),s&&!ja(s)&&(s=[s]);var u=a?"__storejs_"+a+"_":"",h=a?new RegExp("^"+u):null,g=/^[a-zA-Z0-9_\-]*$/;if(!g.test(a))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var m={_namespacePrefix:u,_namespaceRegexp:h,_testStorage:function(T){try{var U="__storejs__test__";T.write(U,U);var L=T.read(U)===U;return T.remove(U),L}catch{return!1}},_assignPluginFnProp:function(T,U){var L=this[U];this[U]=function(){var y=ux(arguments,0),M=this;function F(){if(L)return qi(arguments,function(x,v){y[v]=x}),L.apply(M,y)}var S=[F].concat(y);return T.apply(M,S)}},_serialize:function(T){return JSON.stringify(T)},_deserialize:function(T,U){if(!T)return U;var L="";try{L=JSON.parse(T)}catch{L=T}return L!==void 0?L:U},_addStorage:function(T){this.enabled||this._testStorage(T)&&(this.storage=T,this.enabled=!0)},_addPlugin:function(T){var U=this;if(ja(T)){qi(T,function(y){U._addPlugin(y)});return}var L=px(this.plugins,function(y){return T===y});if(!L){if(this.plugins.push(T),!za(T))throw new Error("Plugins must be function values that return objects");var V=T.call(this);if(!dx(V))throw new Error("Plugins must return an object of function properties");qi(V,function(y,M){if(!za(y))throw new Error("Bad plugin property: "+M+" from plugin "+T.name+". Plugins should only return functions.");U._assignPluginFnProp(y,M)})}},addStorage:function(T){gx("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(T)}},I=fx(m,hx,{plugins:[]});return I.raw={},qi(I,function(T,U){za(T)&&(I.raw[U]=cx(I,T))}),qi(n,function(T){I._addStorage(T)}),qi(s,function(T){I._addPlugin(T)}),I}});var $p=Se((nS,Kp)=>{var Ex=hi(),mx=Ex.Global;Kp.exports={name:"localStorage",read:qp,write:xx,each:vx,remove:Ix,clearAll:Nx};function Ki(){return mx.localStorage}function qp(n){return Ki().getItem(n)}function xx(n,s){return Ki().setItem(n,s)}function vx(n){for(var s=Ki().length-1;s>=0;s--){var a=Ki().key(s);n(qp(a),a)}}function Ix(n){return Ki().removeItem(n)}function Nx(){return Ki().clear()}});var rc=Se((oS,tc)=>{var Tx=hi(),Cx=Tx.Global;tc.exports={name:"oldFF-globalStorage",read:Ax,write:Sx,each:ec,remove:Lx,clearAll:Rx};var gi=Cx.globalStorage;function Ax(n){return gi[n]}function Sx(n,s){gi[n]=s}function ec(n){for(var s=gi.length-1;s>=0;s--){var a=gi.key(s);n(gi[a],a)}}function Lx(n){return gi.removeItem(n)}function Rx(){ec(function(n,s){delete gi[n]})}});var oc=Se((sS,nc)=>{var yx=hi(),Ka=yx.Global;nc.exports={name:"oldIE-userDataStorage",write:bx,read:Ox,each:Ux,remove:Gx,clearAll:Fx};var to="storejs",eo=Ka.document,ro=Dx(),ic=(Ka.navigator?Ka.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function bx(n,s){if(!ic){var a=$a(n);ro(function(u){u.setAttribute(a,s),u.save(to)})}}function Ox(n){if(!ic){var s=$a(n),a=null;return ro(function(u){a=u.getAttribute(s)}),a}}function Ux(n){ro(function(s){for(var a=s.XMLDocument.documentElement.attributes,u=a.length-1;u>=0;u--){var h=a[u];n(s.getAttribute(h.name),h.name)}})}function Gx(n){var s=$a(n);ro(function(a){a.removeAttribute(s),a.save(to)})}function Fx(){ro(function(n){var s=n.XMLDocument.documentElement.attributes;n.load(to);for(var a=s.length-1;a>=0;a--)n.removeAttribute(s[a].name);n.save(to)})}var Bx=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function $a(n){return n.replace(/^\d/,"___$&").replace(Bx,"___")}function Dx(){if(!eo||!eo.documentElement||!eo.documentElement.addBehavior)return null;var n="script",s,a,u;try{a=new ActiveXObject("htmlfile"),a.open(),a.write("<"+n+">document.w=window</"+n+'><iframe src="/favicon.ico"></iframe>'),a.close(),s=a.w.frames[0].document,u=s.createElement("div")}catch{u=eo.createElement("div"),s=eo.body}return function(h){var g=[].slice.call(arguments,0);g.unshift(u),s.appendChild(u),u.addBehavior("#default#userData"),u.load(to),h.apply(this,g),s.removeChild(u)}}});var cc=Se((aS,pc)=>{var sc=hi(),Mx=sc.Global,Px=sc.trim;pc.exports={name:"cookieStorage",read:Vx,write:wx,each:ac,remove:lc,clearAll:_x};var io=Mx.document;function Vx(n){if(!n||!uc(n))return null;var s="(?:^|.*;\\s*)"+escape(n).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(io.cookie.replace(new RegExp(s),"$1"))}function ac(n){for(var s=io.cookie.split(/; ?/g),a=s.length-1;a>=0;a--)if(Px(s[a])){var u=s[a].split("="),h=unescape(u[0]),g=unescape(u[1]);n(g,h)}}function wx(n,s){n&&(io.cookie=escape(n)+"="+escape(s)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function lc(n){!n||!uc(n)||(io.cookie=escape(n)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function _x(){ac(function(n,s){lc(s)})}function uc(n){return new RegExp("(?:^|;\\s*)"+escape(n).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(io.cookie)}});var hc=Se((lS,dc)=>{var Wx=hi(),kx=Wx.Global;dc.exports={name:"sessionStorage",read:fc,write:Zx,each:Hx,remove:Qx,clearAll:Yx};function $i(){return kx.sessionStorage}function fc(n){return $i().getItem(n)}function Zx(n,s){return $i().setItem(n,s)}function Hx(n){for(var s=$i().length-1;s>=0;s--){var a=$i().key(s);n(fc(a),a)}}function Qx(n){return $i().removeItem(n)}function Yx(){return $i().clear()}});var Ec=Se((uS,gc)=>{gc.exports={name:"memoryStorage",read:Xx,write:Jx,each:jx,remove:zx,clearAll:qx};var Ei={};function Xx(n){return Ei[n]}function Jx(n,s){Ei[n]=s}function jx(n){for(var s in Ei)Ei.hasOwnProperty(s)&&n(Ei[s],s)}function zx(n){delete Ei[n]}function qx(n){Ei={}}});var xc=Se((pS,mc)=>{mc.exports=[$p(),rc(),oc(),cc(),hc(),Ec()]});var vc=Se((exports,module)=>{typeof JSON!="object"&&(JSON={});(function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(n){return n<10?"0"+n:n}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(n){return rx_escapable.lastIndex=0,rx_escapable.test(n)?'"'+n.replace(rx_escapable,function(s){var a=meta[s];return typeof a=="string"?a:"\\u"+("0000"+s.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function str(n,s){var a,u,h,g,m=gap,I,T=s[n];switch(T&&typeof T=="object"&&typeof T.toJSON=="function"&&(T=T.toJSON(n)),typeof rep=="function"&&(T=rep.call(s,n,T)),typeof T){case"string":return quote(T);case"number":return isFinite(T)?String(T):"null";case"boolean":case"null":return String(T);case"object":if(!T)return"null";if(gap+=indent,I=[],Object.prototype.toString.apply(T)==="[object Array]"){for(g=T.length,a=0;a<g;a+=1)I[a]=str(a,T)||"null";return h=I.length===0?"[]":gap?`[
|
|
24
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var A;T&&(A=o.ownerDocument.defaultView.scrollY),r.input.focus(),T&&o.ownerDocument.defaultView.scrollTo(null,A),r.input.reset(),i.somethingSelected()||(o.value=t.prevInput=" "),t.contextMenuPending=O,r.selForContextMenu=i.doc.sel,clearTimeout(r.detectingSelectAll);function U(){if(o.selectionStart!=null){var _=i.somethingSelected(),Z="\u200B"+(_?o.value:"");o.value="\u21DA",o.value=Z,t.prevInput=_?"":"\u200B",o.selectionStart=1,o.selectionEnd=Z.length,r.selForContextMenu=i.doc.sel}}function O(){if(t.contextMenuPending==O&&(t.contextMenuPending=!1,t.wrapper.style.cssText=E,o.style.cssText=d,m&&I<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=p),o.selectionStart!=null)){(!m||m&&I<9)&&U();var _=0,Z=function(){r.selForContextMenu==i.doc.sel&&o.selectionStart==0&&o.selectionEnd>0&&t.prevInput=="\u200B"?ot(i,_u)(i):_++<10?r.detectingSelectAll=setTimeout(Z,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(Z,200)}}if(m&&I>=9&&U(),de){ii(e);var P=function(){St(window,"mouseup",P),setTimeout(O,20)};se(window,"mouseup",P)}else setTimeout(O,50)},Qe.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Qe.prototype.setUneditable=function(){},Qe.prototype.needsContentAttribute=!1;function Tm(e,t){if(t=t?ze(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var i=je(Ie(e));t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function r(){e.value=c.getValue()}var o;if(e.form&&(se(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var l=e.form;o=l.submit;try{var p=l.submit=function(){r(),l.submit=o,l.submit(),l.submit=p}}catch{}}t.finishInit=function(d){d.save=r,d.getTextArea=function(){return e},d.toTextArea=function(){d.toTextArea=isNaN,r(),e.parentNode.removeChild(d.getWrapperElement()),e.style.display="",e.form&&(St(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=o))}},e.style.display="none";var c=Me(function(d){return e.parentNode.insertBefore(d,e.nextSibling)},t);return c}function Am(e){e.off=St,e.on=se,e.wheelEventPixels=OE,e.Doc=Rt,e.splitLines=Ri,e.countColumn=De,e.findColumn=ve,e.isWordChar=tr,e.Pass=re,e.signal=Fe,e.Line=Gi,e.changeEnd=Wr,e.scrollbarModel=Eu,e.Pos=W,e.cmpPos=ce,e.modes=bi,e.mimeModes=Nr,e.resolveMode=Oi,e.getMode=oe,e.modeExtensions=b,e.extendMode=H,e.copyState=ee,e.startState=it,e.innerMode=Re,e.commands=Zn,e.keyMap=Lr,e.keyName=rp,e.isModifierKey=ep,e.lookupKey=Hi,e.normalizeKeyMap=KE,e.StringStream=ge,e.SharedTextMarker=_n,e.TextMarker=Zr,e.LineWidget=wn,e.e_preventDefault=ht,e.e_stopPropagation=Ye,e.e_stop=ii,e.addClass=Le,e.contains=et,e.rmClass=ue,e.keyNames=Hr}hm(Me),xm(Me);var Cm="iter insert remove copy getEditor constructor".split(" ");for(var jo in Rt.prototype)Rt.prototype.hasOwnProperty(jo)&&Ue(Cm,jo)<0&&(Me.prototype[jo]=function(e){return function(){return e.apply(this.doc,arguments)}}(Rt.prototype[jo]));return Dr(Rt),Me.inputStyles={textarea:Qe,contenteditable:Ce},Me.defineMode=function(e){!Me.defaults.mode&&e!="null"&&(Me.defaults.mode=e),Eo.apply(this,arguments)},Me.defineMIME=mo,Me.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Me.defineMIME("text/plain","null"),Me.defineExtension=function(e,t){Me.prototype[e]=t},Me.defineDocExtension=function(e,t){Rt.prototype[e]=t},Me.fromTextArea=Tm,Am(Me),Me.version="5.65.20",Me})});var hi=Se((rS,Jp)=>{var Qa=rx(),$m=ix(),ex=nx(),tx=typeof window<"u"?window:global;Jp.exports={assign:Qa,create:$m,trim:ex,bind:ox,slice:Ya,each:Xp,map:sx,pluck:Xa,isList:Ja,isFunction:ax,isObject:lx,Global:tx};function rx(){return Object.assign?Object.assign:function(s,a,u,h){for(var g=1;g<arguments.length;g++)Xp(Object(arguments[g]),function(m,I){s[I]=m});return s}}function ix(){if(Object.create)return function(a,u,h,g){var m=Ya(arguments,1);return Qa.apply(this,[Object.create(a)].concat(m))};{let s=function(){};var n=s;return function(u,h,g,m){var I=Ya(arguments,1);return s.prototype=u,Qa.apply(this,[new s].concat(I))}}}function nx(){return String.prototype.trim?function(s){return String.prototype.trim.call(s)}:function(s){return s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function ox(n,s){return function(){return s.apply(n,Array.prototype.slice.call(arguments,0))}}function Ya(n,s){return Array.prototype.slice.call(n,s||0)}function Xp(n,s){Xa(n,function(a,u){return s(a,u),!1})}function sx(n,s){var a=Ja(n)?[]:{};return Xa(n,function(u,h){return a[h]=s(u,h),!1}),a}function Xa(n,s){if(Ja(n)){for(var a=0;a<n.length;a++)if(s(n[a],a))return n[a]}else for(var u in n)if(n.hasOwnProperty(u)&&s(n[u],u))return n[u]}function Ja(n){return n!=null&&typeof n!="function"&&typeof n.length=="number"}function ax(n){return n&&{}.toString.call(n)==="[object Function]"}function lx(n){return n&&{}.toString.call(n)==="[object Object]"}});var zp=Se((iS,jp)=>{var Yr=hi(),ux=Yr.slice,px=Yr.pluck,qi=Yr.each,cx=Yr.bind,fx=Yr.create,ja=Yr.isList,za=Yr.isFunction,dx=Yr.isObject;jp.exports={createStore:qa};var hx={version:"2.0.12",enabled:!1,get:function(n,s){var a=this.storage.read(this._namespacePrefix+n);return this._deserialize(a,s)},set:function(n,s){return s===void 0?this.remove(n):(this.storage.write(this._namespacePrefix+n,this._serialize(s)),s)},remove:function(n){this.storage.remove(this._namespacePrefix+n)},each:function(n){var s=this;this.storage.each(function(a,u){n.call(s,s._deserialize(a),(u||"").replace(s._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(n){return this._namespacePrefix=="__storejs_"+n+"_"},createStore:function(){return qa.apply(this,arguments)},addPlugin:function(n){this._addPlugin(n)},namespace:function(n){return qa(this.storage,this.plugins,n)}};function gx(){var n=typeof console>"u"?null:console;if(n){var s=n.warn?n.warn:n.log;s.apply(n,arguments)}}function qa(n,s,a){a||(a=""),n&&!ja(n)&&(n=[n]),s&&!ja(s)&&(s=[s]);var u=a?"__storejs_"+a+"_":"",h=a?new RegExp("^"+u):null,g=/^[a-zA-Z0-9_\-]*$/;if(!g.test(a))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var m={_namespacePrefix:u,_namespaceRegexp:h,_testStorage:function(T){try{var G="__storejs__test__";T.write(G,G);var L=T.read(G)===G;return T.remove(G),L}catch{return!1}},_assignPluginFnProp:function(T,G){var L=this[G];this[G]=function(){var y=ux(arguments,0),M=this;function F(){if(L)return qi(arguments,function(x,v){y[v]=x}),L.apply(M,y)}var S=[F].concat(y);return T.apply(M,S)}},_serialize:function(T){return JSON.stringify(T)},_deserialize:function(T,G){if(!T)return G;var L="";try{L=JSON.parse(T)}catch{L=T}return L!==void 0?L:G},_addStorage:function(T){this.enabled||this._testStorage(T)&&(this.storage=T,this.enabled=!0)},_addPlugin:function(T){var G=this;if(ja(T)){qi(T,function(y){G._addPlugin(y)});return}var L=px(this.plugins,function(y){return T===y});if(!L){if(this.plugins.push(T),!za(T))throw new Error("Plugins must be function values that return objects");var V=T.call(this);if(!dx(V))throw new Error("Plugins must return an object of function properties");qi(V,function(y,M){if(!za(y))throw new Error("Bad plugin property: "+M+" from plugin "+T.name+". Plugins should only return functions.");G._assignPluginFnProp(y,M)})}},addStorage:function(T){gx("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(T)}},I=fx(m,hx,{plugins:[]});return I.raw={},qi(I,function(T,G){za(T)&&(I.raw[G]=cx(I,T))}),qi(n,function(T){I._addStorage(T)}),qi(s,function(T){I._addPlugin(T)}),I}});var $p=Se((nS,Kp)=>{var Ex=hi(),mx=Ex.Global;Kp.exports={name:"localStorage",read:qp,write:xx,each:vx,remove:Ix,clearAll:Nx};function Ki(){return mx.localStorage}function qp(n){return Ki().getItem(n)}function xx(n,s){return Ki().setItem(n,s)}function vx(n){for(var s=Ki().length-1;s>=0;s--){var a=Ki().key(s);n(qp(a),a)}}function Ix(n){return Ki().removeItem(n)}function Nx(){return Ki().clear()}});var rc=Se((oS,tc)=>{var Tx=hi(),Ax=Tx.Global;tc.exports={name:"oldFF-globalStorage",read:Cx,write:Sx,each:ec,remove:Lx,clearAll:Rx};var gi=Ax.globalStorage;function Cx(n){return gi[n]}function Sx(n,s){gi[n]=s}function ec(n){for(var s=gi.length-1;s>=0;s--){var a=gi.key(s);n(gi[a],a)}}function Lx(n){return gi.removeItem(n)}function Rx(){ec(function(n,s){delete gi[n]})}});var oc=Se((sS,nc)=>{var yx=hi(),Ka=yx.Global;nc.exports={name:"oldIE-userDataStorage",write:bx,read:Ox,each:Gx,remove:Ux,clearAll:Fx};var to="storejs",eo=Ka.document,ro=Dx(),ic=(Ka.navigator?Ka.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function bx(n,s){if(!ic){var a=$a(n);ro(function(u){u.setAttribute(a,s),u.save(to)})}}function Ox(n){if(!ic){var s=$a(n),a=null;return ro(function(u){a=u.getAttribute(s)}),a}}function Gx(n){ro(function(s){for(var a=s.XMLDocument.documentElement.attributes,u=a.length-1;u>=0;u--){var h=a[u];n(s.getAttribute(h.name),h.name)}})}function Ux(n){var s=$a(n);ro(function(a){a.removeAttribute(s),a.save(to)})}function Fx(){ro(function(n){var s=n.XMLDocument.documentElement.attributes;n.load(to);for(var a=s.length-1;a>=0;a--)n.removeAttribute(s[a].name);n.save(to)})}var Bx=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function $a(n){return n.replace(/^\d/,"___$&").replace(Bx,"___")}function Dx(){if(!eo||!eo.documentElement||!eo.documentElement.addBehavior)return null;var n="script",s,a,u;try{a=new ActiveXObject("htmlfile"),a.open(),a.write("<"+n+">document.w=window</"+n+'><iframe src="/favicon.ico"></iframe>'),a.close(),s=a.w.frames[0].document,u=s.createElement("div")}catch{u=eo.createElement("div"),s=eo.body}return function(h){var g=[].slice.call(arguments,0);g.unshift(u),s.appendChild(u),u.addBehavior("#default#userData"),u.load(to),h.apply(this,g),s.removeChild(u)}}});var cc=Se((aS,pc)=>{var sc=hi(),Mx=sc.Global,Px=sc.trim;pc.exports={name:"cookieStorage",read:Vx,write:wx,each:ac,remove:lc,clearAll:_x};var io=Mx.document;function Vx(n){if(!n||!uc(n))return null;var s="(?:^|.*;\\s*)"+escape(n).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(io.cookie.replace(new RegExp(s),"$1"))}function ac(n){for(var s=io.cookie.split(/; ?/g),a=s.length-1;a>=0;a--)if(Px(s[a])){var u=s[a].split("="),h=unescape(u[0]),g=unescape(u[1]);n(g,h)}}function wx(n,s){n&&(io.cookie=escape(n)+"="+escape(s)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function lc(n){!n||!uc(n)||(io.cookie=escape(n)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function _x(){ac(function(n,s){lc(s)})}function uc(n){return new RegExp("(?:^|;\\s*)"+escape(n).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(io.cookie)}});var hc=Se((lS,dc)=>{var Wx=hi(),kx=Wx.Global;dc.exports={name:"sessionStorage",read:fc,write:Zx,each:Hx,remove:Qx,clearAll:Yx};function $i(){return kx.sessionStorage}function fc(n){return $i().getItem(n)}function Zx(n,s){return $i().setItem(n,s)}function Hx(n){for(var s=$i().length-1;s>=0;s--){var a=$i().key(s);n(fc(a),a)}}function Qx(n){return $i().removeItem(n)}function Yx(){return $i().clear()}});var Ec=Se((uS,gc)=>{gc.exports={name:"memoryStorage",read:Xx,write:Jx,each:jx,remove:zx,clearAll:qx};var Ei={};function Xx(n){return Ei[n]}function Jx(n,s){Ei[n]=s}function jx(n){for(var s in Ei)Ei.hasOwnProperty(s)&&n(Ei[s],s)}function zx(n){delete Ei[n]}function qx(n){Ei={}}});var xc=Se((pS,mc)=>{mc.exports=[$p(),rc(),oc(),cc(),hc(),Ec()]});var vc=Se((exports,module)=>{typeof JSON!="object"&&(JSON={});(function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(n){return n<10?"0"+n:n}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(n){return rx_escapable.lastIndex=0,rx_escapable.test(n)?'"'+n.replace(rx_escapable,function(s){var a=meta[s];return typeof a=="string"?a:"\\u"+("0000"+s.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function str(n,s){var a,u,h,g,m=gap,I,T=s[n];switch(T&&typeof T=="object"&&typeof T.toJSON=="function"&&(T=T.toJSON(n)),typeof rep=="function"&&(T=rep.call(s,n,T)),typeof T){case"string":return quote(T);case"number":return isFinite(T)?String(T):"null";case"boolean":case"null":return String(T);case"object":if(!T)return"null";if(gap+=indent,I=[],Object.prototype.toString.apply(T)==="[object Array]"){for(g=T.length,a=0;a<g;a+=1)I[a]=str(a,T)||"null";return h=I.length===0?"[]":gap?`[
|
|
25
25
|
`+gap+I.join(`,
|
|
26
26
|
`+gap)+`
|
|
27
27
|
`+m+"]":"["+I.join(",")+"]",gap=m,h}if(rep&&typeof rep=="object")for(g=rep.length,a=0;a<g;a+=1)typeof rep[a]=="string"&&(u=rep[a],h=str(u,T),h&&I.push(quote(u)+(gap?": ":":")+h));else for(u in T)Object.prototype.hasOwnProperty.call(T,u)&&(h=str(u,T),h&&I.push(quote(u)+(gap?": ":":")+h));return h=I.length===0?"{}":gap?`{
|
|
28
28
|
`+gap+I.join(`,
|
|
29
29
|
`+gap)+`
|
|
30
|
-
`+m+"}":"{"+I.join(",")+"}",gap=m,h}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(n,s,a){var u;if(gap="",indent="",typeof a=="number")for(u=0;u<a;u+=1)indent+=" ";else typeof a=="string"&&(indent=a);if(rep=s,s&&typeof s!="function"&&(typeof s!="object"||typeof s.length!="number"))throw new Error("JSON.stringify");return str("",{"":n})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(n,s){var a,u,h=n[s];if(h&&typeof h=="object")for(a in h)Object.prototype.hasOwnProperty.call(h,a)&&(u=walk(h,a),u!==void 0?h[a]=u:delete h[a]);return reviver.call(n,s,h)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})})()});var Nc=Se((cS,Ic)=>{Ic.exports=Kx;function Kx(){return vc(),{}}});var Cc=Se((fS,Tc)=>{var $x=zp(),ev=xc(),tv=[Nc()];Tc.exports=$x.createStore(ev,tv)});var Lc=Se((xS,Sc)=>{"use strict";Sc.exports=n=>encodeURIComponent(n).replace(/[!'()*]/g,s=>`%${s.charCodeAt(0).toString(16).toUpperCase()}`)});var Uc=Se((vS,Oc)=>{"use strict";var bc="%[a-f0-9]{2}",Rc=new RegExp("("+bc+")|([^%]+?)","gi"),yc=new RegExp("("+bc+")+","gi");function el(n,s){try{return[decodeURIComponent(n.join(""))]}catch{}if(n.length===1)return n;s=s||1;var a=n.slice(0,s),u=n.slice(s);return Array.prototype.concat.call([],el(a),el(u))}function iv(n){try{return decodeURIComponent(n)}catch{for(var s=n.match(Rc)||[],a=1;a<s.length;a++)n=el(s,a).join(""),s=n.match(Rc)||[];return n}}function nv(n){for(var s={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},a=yc.exec(n);a;){try{s[a[0]]=decodeURIComponent(a[0])}catch{var u=iv(a[0]);u!==a[0]&&(s[a[0]]=u)}a=yc.exec(n)}s["%C2"]="\uFFFD";for(var h=Object.keys(s),g=0;g<h.length;g++){var m=h[g];n=n.replace(new RegExp(m,"g"),s[m])}return n}Oc.exports=function(n){if(typeof n!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof n+"`");try{return n=n.replace(/\+/g," "),decodeURIComponent(n)}catch{return nv(n)}}});var Fc=Se((IS,Gc)=>{"use strict";Gc.exports=(n,s)=>{if(!(typeof n=="string"&&typeof s=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(s==="")return[n];let a=n.indexOf(s);return a===-1?[n]:[n.slice(0,a),n.slice(a+s.length)]}});var Dc=Se((NS,Bc)=>{"use strict";Bc.exports=function(n,s){for(var a={},u=Object.keys(n),h=Array.isArray(s),g=0;g<u.length;g++){var m=u[g],I=n[m];(h?s.indexOf(m)!==-1:s(m,I,n))&&(a[m]=I)}return a}});var ts=Se(kt=>{"use strict";var ov=Lc(),sv=Uc(),Pc=Fc(),av=Dc(),lv=n=>n==null;function uv(n){switch(n.arrayFormat){case"index":return s=>(a,u)=>{let h=a.length;return u===void 0||n.skipNull&&u===null||n.skipEmptyString&&u===""?a:u===null?[...a,[xt(s,n),"[",h,"]"].join("")]:[...a,[xt(s,n),"[",xt(h,n),"]=",xt(u,n)].join("")]};case"bracket":return s=>(a,u)=>u===void 0||n.skipNull&&u===null||n.skipEmptyString&&u===""?a:u===null?[...a,[xt(s,n),"[]"].join("")]:[...a,[xt(s,n),"[]=",xt(u,n)].join("")];case"comma":case"separator":return s=>(a,u)=>u==null||u.length===0?a:a.length===0?[[xt(s,n),"=",xt(u,n)].join("")]:[[a,xt(u,n)].join(n.arrayFormatSeparator)];default:return s=>(a,u)=>u===void 0||n.skipNull&&u===null||n.skipEmptyString&&u===""?a:u===null?[...a,xt(s,n)]:[...a,[xt(s,n),"=",xt(u,n)].join("")]}}function pv(n){let s;switch(n.arrayFormat){case"index":return(a,u,h)=>{if(s=/\[(\d*)\]$/.exec(a),a=a.replace(/\[\d*\]$/,""),!s){h[a]=u;return}h[a]===void 0&&(h[a]={}),h[a][s[1]]=u};case"bracket":return(a,u,h)=>{if(s=/(\[\])$/.exec(a),a=a.replace(/\[\]$/,""),!s){h[a]=u;return}if(h[a]===void 0){h[a]=[u];return}h[a]=[].concat(h[a],u)};case"comma":case"separator":return(a,u,h)=>{let g=typeof u=="string"&&u.includes(n.arrayFormatSeparator),m=typeof u=="string"&&!g&&vi(u,n).includes(n.arrayFormatSeparator);u=m?vi(u,n):u;let I=g||m?u.split(n.arrayFormatSeparator).map(T=>vi(T,n)):u===null?u:vi(u,n);h[a]=I};default:return(a,u,h)=>{if(h[a]===void 0){h[a]=u;return}h[a]=[].concat(h[a],u)}}}function Vc(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function xt(n,s){return s.encode?s.strict?ov(n):encodeURIComponent(n):n}function vi(n,s){return s.decode?sv(n):n}function wc(n){return Array.isArray(n)?n.sort():typeof n=="object"?wc(Object.keys(n)).sort((s,a)=>Number(s)-Number(a)).map(s=>n[s]):n}function _c(n){let s=n.indexOf("#");return s!==-1&&(n=n.slice(0,s)),n}function cv(n){let s="",a=n.indexOf("#");return a!==-1&&(s=n.slice(a)),s}function Wc(n){n=_c(n);let s=n.indexOf("?");return s===-1?"":n.slice(s+1)}function Mc(n,s){return s.parseNumbers&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?n=Number(n):s.parseBooleans&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")&&(n=n.toLowerCase()==="true"),n}function kc(n,s){s=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},s),Vc(s.arrayFormatSeparator);let a=pv(s),u=Object.create(null);if(typeof n!="string"||(n=n.trim().replace(/^[?#&]/,""),!n))return u;for(let h of n.split("&")){if(h==="")continue;let[g,m]=Pc(s.decode?h.replace(/\+/g," "):h,"=");m=m===void 0?null:["comma","separator"].includes(s.arrayFormat)?m:vi(m,s),a(vi(g,s),m,u)}for(let h of Object.keys(u)){let g=u[h];if(typeof g=="object"&&g!==null)for(let m of Object.keys(g))g[m]=Mc(g[m],s);else u[h]=Mc(g,s)}return s.sort===!1?u:(s.sort===!0?Object.keys(u).sort():Object.keys(u).sort(s.sort)).reduce((h,g)=>{let m=u[g];return m&&typeof m=="object"&&!Array.isArray(m)?h[g]=wc(m):h[g]=m,h},Object.create(null))}kt.extract=Wc;kt.parse=kc;kt.stringify=(n,s)=>{if(!n)return"";s=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},s),Vc(s.arrayFormatSeparator);let a=m=>s.skipNull&&lv(n[m])||s.skipEmptyString&&n[m]==="",u=uv(s),h={};for(let m of Object.keys(n))a(m)||(h[m]=n[m]);let g=Object.keys(h);return s.sort!==!1&&g.sort(s.sort),g.map(m=>{let I=n[m];return I===void 0?"":I===null?xt(m,s):Array.isArray(I)?I.reduce(u(m),[]).join("&"):xt(m,s)+"="+xt(I,s)}).filter(m=>m.length>0).join("&")};kt.parseUrl=(n,s)=>{s=Object.assign({decode:!0},s);let[a,u]=Pc(n,"#");return Object.assign({url:a.split("?")[0]||"",query:kc(Wc(n),s)},s&&s.parseFragmentIdentifier&&u?{fragmentIdentifier:vi(u,s)}:{})};kt.stringifyUrl=(n,s)=>{s=Object.assign({encode:!0,strict:!0},s);let a=_c(n.url).split("?")[0]||"",u=kt.extract(n.url),h=kt.parse(u,{sort:!1}),g=Object.assign(h,n.query),m=kt.stringify(g,s);m&&(m=`?${m}`);let I=cv(n.url);return n.fragmentIdentifier&&(I=`#${xt(n.fragmentIdentifier,s)}`),`${a}${m}${I}`};kt.pick=(n,s,a)=>{a=Object.assign({parseFragmentIdentifier:!0},a);let{url:u,query:h,fragmentIdentifier:g}=kt.parseUrl(n,a);return kt.stringifyUrl({url:u,query:av(h,s),fragmentIdentifier:g},a)};kt.exclude=(n,s,a)=>{let u=Array.isArray(s)?h=>!s.includes(h):(h,g)=>!s(h,g);return kt.pick(n,u,a)}});var Mh=Se((lG,ml)=>{"use strict";var mn=typeof Reflect=="object"?Reflect:null,Lh=mn&&typeof mn.apply=="function"?mn.apply:function(s,a,u){return Function.prototype.apply.call(s,a,u)},Ls;mn&&typeof mn.ownKeys=="function"?Ls=mn.ownKeys:Object.getOwnPropertySymbols?Ls=function(s){return Object.getOwnPropertyNames(s).concat(Object.getOwnPropertySymbols(s))}:Ls=function(s){return Object.getOwnPropertyNames(s)};function UA(n){console&&console.warn&&console.warn(n)}var yh=Number.isNaN||function(s){return s!==s};function be(){be.init.call(this)}ml.exports=be;ml.exports.once=DA;be.EventEmitter=be;be.prototype._events=void 0;be.prototype._eventsCount=0;be.prototype._maxListeners=void 0;var Rh=10;function Rs(n){if(typeof n!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n)}Object.defineProperty(be,"defaultMaxListeners",{enumerable:!0,get:function(){return Rh},set:function(n){if(typeof n!="number"||n<0||yh(n))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+n+".");Rh=n}});be.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};be.prototype.setMaxListeners=function(s){if(typeof s!="number"||s<0||yh(s))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+s+".");return this._maxListeners=s,this};function bh(n){return n._maxListeners===void 0?be.defaultMaxListeners:n._maxListeners}be.prototype.getMaxListeners=function(){return bh(this)};be.prototype.emit=function(s){for(var a=[],u=1;u<arguments.length;u++)a.push(arguments[u]);var h=s==="error",g=this._events;if(g!==void 0)h=h&&g.error===void 0;else if(!h)return!1;if(h){var m;if(a.length>0&&(m=a[0]),m instanceof Error)throw m;var I=new Error("Unhandled error."+(m?" ("+m.message+")":""));throw I.context=m,I}var T=g[s];if(T===void 0)return!1;if(typeof T=="function")Lh(T,this,a);else for(var U=T.length,L=Bh(T,U),u=0;u<U;++u)Lh(L[u],this,a);return!0};function Oh(n,s,a,u){var h,g,m;if(Rs(a),g=n._events,g===void 0?(g=n._events=Object.create(null),n._eventsCount=0):(g.newListener!==void 0&&(n.emit("newListener",s,a.listener?a.listener:a),g=n._events),m=g[s]),m===void 0)m=g[s]=a,++n._eventsCount;else if(typeof m=="function"?m=g[s]=u?[a,m]:[m,a]:u?m.unshift(a):m.push(a),h=bh(n),h>0&&m.length>h&&!m.warned){m.warned=!0;var I=new Error("Possible EventEmitter memory leak detected. "+m.length+" "+String(s)+" listeners added. Use emitter.setMaxListeners() to increase limit");I.name="MaxListenersExceededWarning",I.emitter=n,I.type=s,I.count=m.length,UA(I)}return n}be.prototype.addListener=function(s,a){return Oh(this,s,a,!1)};be.prototype.on=be.prototype.addListener;be.prototype.prependListener=function(s,a){return Oh(this,s,a,!0)};function GA(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Uh(n,s,a){var u={fired:!1,wrapFn:void 0,target:n,type:s,listener:a},h=GA.bind(u);return h.listener=a,u.wrapFn=h,h}be.prototype.once=function(s,a){return Rs(a),this.on(s,Uh(this,s,a)),this};be.prototype.prependOnceListener=function(s,a){return Rs(a),this.prependListener(s,Uh(this,s,a)),this};be.prototype.removeListener=function(s,a){var u,h,g,m,I;if(Rs(a),h=this._events,h===void 0)return this;if(u=h[s],u===void 0)return this;if(u===a||u.listener===a)--this._eventsCount===0?this._events=Object.create(null):(delete h[s],h.removeListener&&this.emit("removeListener",s,u.listener||a));else if(typeof u!="function"){for(g=-1,m=u.length-1;m>=0;m--)if(u[m]===a||u[m].listener===a){I=u[m].listener,g=m;break}if(g<0)return this;g===0?u.shift():FA(u,g),u.length===1&&(h[s]=u[0]),h.removeListener!==void 0&&this.emit("removeListener",s,I||a)}return this};be.prototype.off=be.prototype.removeListener;be.prototype.removeAllListeners=function(s){var a,u,h;if(u=this._events,u===void 0)return this;if(u.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):u[s]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete u[s]),this;if(arguments.length===0){var g=Object.keys(u),m;for(h=0;h<g.length;++h)m=g[h],m!=="removeListener"&&this.removeAllListeners(m);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(a=u[s],typeof a=="function")this.removeListener(s,a);else if(a!==void 0)for(h=a.length-1;h>=0;h--)this.removeListener(s,a[h]);return this};function Gh(n,s,a){var u=n._events;if(u===void 0)return[];var h=u[s];return h===void 0?[]:typeof h=="function"?a?[h.listener||h]:[h]:a?BA(h):Bh(h,h.length)}be.prototype.listeners=function(s){return Gh(this,s,!0)};be.prototype.rawListeners=function(s){return Gh(this,s,!1)};be.listenerCount=function(n,s){return typeof n.listenerCount=="function"?n.listenerCount(s):Fh.call(n,s)};be.prototype.listenerCount=Fh;function Fh(n){var s=this._events;if(s!==void 0){var a=s[n];if(typeof a=="function")return 1;if(a!==void 0)return a.length}return 0}be.prototype.eventNames=function(){return this._eventsCount>0?Ls(this._events):[]};function Bh(n,s){for(var a=new Array(s),u=0;u<s;++u)a[u]=n[u];return a}function FA(n,s){for(;s+1<n.length;s++)n[s]=n[s+1];n.pop()}function BA(n){for(var s=new Array(n.length),a=0;a<s.length;++a)s[a]=n[a].listener||n[a];return s}function DA(n,s){return new Promise(function(a,u){function h(m){n.removeListener(s,g),u(m)}function g(){typeof n.removeListener=="function"&&n.removeListener("error",h),a([].slice.call(arguments))}Dh(n,s,g,{once:!0}),s!=="error"&&MA(n,h,{once:!0})})}function MA(n,s,a){typeof n.on=="function"&&Dh(n,"error",s,a)}function Dh(n,s,a,u){if(typeof n.on=="function")u.once?n.once(s,a):n.on(s,a);else if(typeof n.addEventListener=="function")n.addEventListener(s,function h(g){u.once&&n.removeEventListener(s,h),a(g)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof n)}});var Nl=Se((jh,zh)=>{(function(n){typeof jh=="object"&&typeof zh=="object"?n(Nt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){"use strict";function s(g,m,I,T){if(I&&I.call){var U=I;I=null}else var U=h(g,I,"rangeFinder");typeof m=="number"&&(m=n.Pos(m,0));var L=h(g,I,"minFoldSize");function V(S){var x=U(g,m);if(!x||x.to.line-x.from.line<L)return null;if(T==="fold")return x;for(var v=g.findMarksAt(x.from),A=0;A<v.length;++A)if(v[A].__isFold){if(!S)return null;x.cleared=!0,v[A].clear()}return x}var y=V(!0);if(h(g,I,"scanUp"))for(;!y&&m.line>g.firstLine();)m=n.Pos(m.line-1,0),y=V(!1);if(!(!y||y.cleared||T==="unfold")){var M=a(g,I,y);n.on(M,"mousedown",function(S){F.clear(),n.e_preventDefault(S)});var F=g.markText(y.from,y.to,{replacedWith:M,clearOnEnter:h(g,I,"clearOnEnter"),__isFold:!0});F.on("clear",function(S,x){n.signal(g,"unfold",g,S,x)}),n.signal(g,"fold",g,y.from,y.to)}}function a(g,m,I){var T=h(g,m,"widget");if(typeof T=="function"&&(T=T(I.from,I.to)),typeof T=="string"){var U=document.createTextNode(T);T=document.createElement("span"),T.appendChild(U),T.className="CodeMirror-foldmarker"}else T&&(T=T.cloneNode(!0));return T}n.newFoldFunction=function(g,m){return function(I,T){s(I,T,{rangeFinder:g,widget:m})}},n.defineExtension("foldCode",function(g,m,I){s(this,g,m,I)}),n.defineExtension("isFolded",function(g){for(var m=this.findMarksAt(g),I=0;I<m.length;++I)if(m[I].__isFold)return!0}),n.commands.toggleFold=function(g){g.foldCode(g.getCursor())},n.commands.fold=function(g){g.foldCode(g.getCursor(),null,"fold")},n.commands.unfold=function(g){g.foldCode(g.getCursor(),{scanUp:!1},"unfold")},n.commands.foldAll=function(g){g.operation(function(){for(var m=g.firstLine(),I=g.lastLine();m<=I;m++)g.foldCode(n.Pos(m,0),{scanUp:!1},"fold")})},n.commands.unfoldAll=function(g){g.operation(function(){for(var m=g.firstLine(),I=g.lastLine();m<=I;m++)g.foldCode(n.Pos(m,0),{scanUp:!1},"unfold")})},n.registerHelper("fold","combine",function(){var g=Array.prototype.slice.call(arguments,0);return function(m,I){for(var T=0;T<g.length;++T){var U=g[T](m,I);if(U)return U}}}),n.registerHelper("fold","auto",function(g,m){for(var I=g.getHelpers(m,"fold"),T=0;T<I.length;T++){var U=I[T](g,m);if(U)return U}});var u={rangeFinder:n.fold.auto,widget:"\u2194",minFoldSize:0,scanUp:!1,clearOnEnter:!0};n.defineOption("foldOptions",null);function h(g,m,I){if(m&&m[I]!==void 0)return m[I];var T=g.options.foldOptions;return T&&T[I]!==void 0?T[I]:u[I]}n.defineExtension("foldOption",function(g,m){return h(this,g,m)})})});var $h=Se((qh,Kh)=>{(function(n){typeof qh=="object"&&typeof Kh=="object"?n(Nt(),Nl()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./foldcode"],n):n(CodeMirror)})(function(n){"use strict";n.defineOption("foldGutter",!1,function(F,S,x){x&&x!=n.Init&&(F.clearGutter(F.state.foldGutter.options.gutter),F.state.foldGutter=null,F.off("gutterClick",U),F.off("changes",V),F.off("viewportChange",y),F.off("fold",M),F.off("unfold",M),F.off("swapDoc",V),F.off("optionChange",L)),S&&(F.state.foldGutter=new a(u(S)),T(F),F.on("gutterClick",U),F.on("changes",V),F.on("viewportChange",y),F.on("fold",M),F.on("unfold",M),F.on("swapDoc",V),F.on("optionChange",L))});var s=n.Pos;function a(F){this.options=F,this.from=this.to=0}function u(F){return F===!0&&(F={}),F.gutter==null&&(F.gutter="CodeMirror-foldgutter"),F.indicatorOpen==null&&(F.indicatorOpen="CodeMirror-foldgutter-open"),F.indicatorFolded==null&&(F.indicatorFolded="CodeMirror-foldgutter-folded"),F}function h(F,S){for(var x=F.findMarks(s(S,0),s(S+1,0)),v=0;v<x.length;++v)if(x[v].__isFold){var A=x[v].find(-1);if(A&&A.line===S)return x[v]}}function g(F){if(typeof F=="string"){var S=document.createElement("div");return S.className=F+" CodeMirror-guttermarker-subtle",S}else return F.cloneNode(!0)}function m(F,S,x){var v=F.state.foldGutter.options,A=S-1,R=F.foldOption(v,"minFoldSize"),B=F.foldOption(v,"rangeFinder"),D=typeof v.indicatorFolded=="string"&&I(v.indicatorFolded),w=typeof v.indicatorOpen=="string"&&I(v.indicatorOpen);F.eachLine(S,x,function(Q){++A;var de=null,te=Q.gutterMarkers;if(te&&(te=te[v.gutter]),h(F,A)){if(D&&te&&D.test(te.className))return;de=g(v.indicatorFolded)}else{var ue=s(A,0),le=B&&B(F,ue);if(le&&le.to.line-le.from.line>=R){if(w&&te&&w.test(te.className))return;de=g(v.indicatorOpen)}}!de&&!te||F.setGutterMarker(Q,v.gutter,de)})}function I(F){return new RegExp("(^|\\s)"+F+"(?:$|\\s)\\s*")}function T(F){var S=F.getViewport(),x=F.state.foldGutter;x&&(F.operation(function(){m(F,S.from,S.to)}),x.from=S.from,x.to=S.to)}function U(F,S,x){var v=F.state.foldGutter;if(v){var A=v.options;if(x==A.gutter){var R=h(F,S);R?R.clear():F.foldCode(s(S,0),A)}}}function L(F,S){S=="mode"&&V(F)}function V(F){var S=F.state.foldGutter;if(S){var x=S.options;S.from=S.to=0,clearTimeout(S.changeUpdate),S.changeUpdate=setTimeout(function(){T(F)},x.foldOnChangeTimeSpan||600)}}function y(F){var S=F.state.foldGutter;if(S){var x=S.options;clearTimeout(S.changeUpdate),S.changeUpdate=setTimeout(function(){var v=F.getViewport();S.from==S.to||v.from-S.to>20||S.from-v.to>20?T(F):F.operation(function(){v.from<S.from&&(m(F,v.from,S.from),S.from=v.from),v.to>S.to&&(m(F,S.to,v.to),S.to=v.to)})},x.updateViewportTimeSpan||400)}}function M(F,S){var x=F.state.foldGutter;if(x){var v=S.line;v>=x.from&&v<x.to&&m(F,v,v+1)}}})});var rg=Se((eg,tg)=>{(function(n){typeof eg=="object"&&typeof tg=="object"?n(Nt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){"use strict";var s=n.Pos;function a(x,v){return x.line-v.line||x.ch-v.ch}var u="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",h=u+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",g=new RegExp("<(/?)(["+u+"]["+h+"]*)","g");function m(x,v,A,R){this.line=v,this.ch=A,this.cm=x,this.text=x.getLine(v),this.min=R?Math.max(R.from,x.firstLine()):x.firstLine(),this.max=R?Math.min(R.to-1,x.lastLine()):x.lastLine()}function I(x,v){var A=x.cm.getTokenTypeAt(s(x.line,v));return A&&/\btag\b/.test(A)}function T(x){if(!(x.line>=x.max))return x.ch=0,x.text=x.cm.getLine(++x.line),!0}function U(x){if(!(x.line<=x.min))return x.text=x.cm.getLine(--x.line),x.ch=x.text.length,!0}function L(x){for(;;){var v=x.text.indexOf(">",x.ch);if(v==-1){if(T(x))continue;return}if(!I(x,v+1)){x.ch=v+1;continue}var A=x.text.lastIndexOf("/",v),R=A>-1&&!/\S/.test(x.text.slice(A+1,v));return x.ch=v+1,R?"selfClose":"regular"}}function V(x){for(;;){var v=x.ch?x.text.lastIndexOf("<",x.ch-1):-1;if(v==-1){if(U(x))continue;return}if(!I(x,v+1)){x.ch=v;continue}g.lastIndex=v,x.ch=v;var A=g.exec(x.text);if(A&&A.index==v)return A}}function y(x){for(;;){g.lastIndex=x.ch;var v=g.exec(x.text);if(!v){if(T(x))continue;return}if(!I(x,v.index+1)){x.ch=v.index+1;continue}return x.ch=v.index+v[0].length,v}}function M(x){for(;;){var v=x.ch?x.text.lastIndexOf(">",x.ch-1):-1;if(v==-1){if(U(x))continue;return}if(!I(x,v+1)){x.ch=v;continue}var A=x.text.lastIndexOf("/",v),R=A>-1&&!/\S/.test(x.text.slice(A+1,v));return x.ch=v+1,R?"selfClose":"regular"}}function F(x,v){for(var A=[];;){var R=y(x),B,D=x.line,w=x.ch-(R?R[0].length:0);if(!R||!(B=L(x)))return;if(B!="selfClose")if(R[1]){for(var Q=A.length-1;Q>=0;--Q)if(A[Q]==R[2]){A.length=Q;break}if(Q<0&&(!v||v==R[2]))return{tag:R[2],from:s(D,w),to:s(x.line,x.ch)}}else A.push(R[2])}}function S(x,v){for(var A=[];;){var R=M(x);if(!R)return;if(R=="selfClose"){V(x);continue}var B=x.line,D=x.ch,w=V(x);if(!w)return;if(w[1])A.push(w[2]);else{for(var Q=A.length-1;Q>=0;--Q)if(A[Q]==w[2]){A.length=Q;break}if(Q<0&&(!v||v==w[2]))return{tag:w[2],from:s(x.line,x.ch),to:s(B,D)}}}}n.registerHelper("fold","xml",function(x,v){for(var A=new m(x,v.line,0);;){var R=y(A);if(!R||A.line!=v.line)return;var B=L(A);if(!B)return;if(!R[1]&&B!="selfClose"){var D=s(A.line,A.ch),w=F(A,R[2]);return w&&a(w.from,D)>0?{from:D,to:w.from}:null}}}),n.findMatchingTag=function(x,v,A){var R=new m(x,v.line,v.ch,A);if(!(R.text.indexOf(">")==-1&&R.text.indexOf("<")==-1)){var B=L(R),D=B&&s(R.line,R.ch),w=B&&V(R);if(!(!B||!w||a(R,v)>0)){var Q={from:s(R.line,R.ch),to:D,tag:w[2]};return B=="selfClose"?{open:Q,close:null,at:"open"}:w[1]?{open:S(R,w[2]),close:Q,at:"close"}:(R=new m(x,D.line,D.ch,A),{open:Q,close:F(R,w[2]),at:"open"})}}},n.findEnclosingTag=function(x,v,A,R){for(var B=new m(x,v.line,v.ch,A);;){var D=S(B,R);if(!D)break;var w=new m(x,v.line,v.ch,A),Q=F(w,D.tag);if(Q)return{open:D,close:Q}}},n.scanForClosingTag=function(x,v,A,R){var B=new m(x,v.line,v.ch,R?{from:0,to:R}:null);return F(B,A)}})});var og=Se((ig,ng)=>{(function(n){typeof ig=="object"&&typeof ng=="object"?n(Nt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){"use strict";function s(a){return function(u,h){var g=h.line,m=u.getLine(g);function I(M){for(var F,S=h.ch,x=0;;){var v=S<=0?-1:m.lastIndexOf(M[0],S-1);if(v==-1){if(x==1)break;x=1,S=m.length;continue}if(x==1&&v<h.ch)break;if(F=u.getTokenTypeAt(n.Pos(g,v+1)),!/^(comment|string)/.test(F))return{ch:v+1,tokenType:F,pair:M};S=v-1}}function T(M){var F=1,S=u.lastLine(),x,v=M.ch,A;e:for(var R=g;R<=S;++R)for(var B=u.getLine(R),D=R==g?v:0;;){var w=B.indexOf(M.pair[0],D),Q=B.indexOf(M.pair[1],D);if(w<0&&(w=B.length),Q<0&&(Q=B.length),D=Math.min(w,Q),D==B.length)break;if(u.getTokenTypeAt(n.Pos(R,D+1))==M.tokenType){if(D==w)++F;else if(!--F){x=R,A=D;break e}}++D}return x==null||g==x?null:{from:n.Pos(g,v),to:n.Pos(x,A)}}for(var U=[],L=0;L<a.length;L++){var V=I(a[L]);V&&U.push(V)}U.sort(function(M,F){return M.ch-F.ch});for(var L=0;L<U.length;L++){var y=T(U[L]);if(y)return y}return null}}n.registerHelper("fold","brace",s([["{","}"],["[","]"]])),n.registerHelper("fold","brace-paren",s([["{","}"],["[","]"],["(",")"]])),n.registerHelper("fold","import",function(a,u){function h(L){if(L<a.firstLine()||L>a.lastLine())return null;var V=a.getTokenAt(n.Pos(L,1));if(/\S/.test(V.string)||(V=a.getTokenAt(n.Pos(L,V.end+1))),V.type!="keyword"||V.string!="import")return null;for(var y=L,M=Math.min(a.lastLine(),L+10);y<=M;++y){var F=a.getLine(y),S=F.indexOf(";");if(S!=-1)return{startCh:V.end,end:n.Pos(y,S)}}}var g=u.line,m=h(g),I;if(!m||h(g-1)||(I=h(g-2))&&I.end.line==g-1)return null;for(var T=m.end;;){var U=h(T.line+1);if(U==null)break;T=U.end}return{from:a.clipPos(n.Pos(g,m.startCh+1)),to:T}}),n.registerHelper("fold","include",function(a,u){function h(U){if(U<a.firstLine()||U>a.lastLine())return null;var L=a.getTokenAt(n.Pos(U,1));if(/\S/.test(L.string)||(L=a.getTokenAt(n.Pos(U,L.end+1))),L.type=="meta"&&L.string.slice(0,8)=="#include")return L.start+8}var g=u.line,m=h(g);if(m==null||h(g-1)!=null)return null;for(var I=g;;){var T=h(I+1);if(T==null)break;++I}return{from:n.Pos(g,m+1),to:a.clipPos(n.Pos(I))}})})});var lg=Se((sg,ag)=>{(function(n){typeof sg=="object"&&typeof ag=="object"?n(Nt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){"use strict";var s="CodeMirror-hint",a="CodeMirror-hint-active";n.showHint=function(S,x,v){if(!x)return S.showHint(v);v&&v.async&&(x.async=!0);var A={hint:x};if(v)for(var R in v)A[R]=v[R];return S.showHint(A)},n.defineExtension("showHint",function(S){S=m(this,this.getCursor("start"),S);var x=this.listSelections();if(!(x.length>1)){if(this.somethingSelected()){if(!S.hint.supportsSelection)return;for(var v=0;v<x.length;v++)if(x[v].head.line!=x[v].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var A=this.state.completionActive=new u(this,S);A.options.hint&&(n.signal(this,"startCompletion",this),A.update(!0))}}),n.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function u(S,x){if(this.cm=S,this.options=x,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var v=this;S.on("cursorActivity",this.activityFunc=function(){v.cursorActivity()})}}var h=window.requestAnimationFrame||function(S){return setTimeout(S,1e3/60)},g=window.cancelAnimationFrame||clearTimeout;u.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&n.signal(this.data,"close"),this.widget&&this.widget.close(),n.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(S,x){var v=S.list[x],A=this;this.cm.operation(function(){v.hint?v.hint(A.cm,S,v):A.cm.replaceRange(I(v),v.from||S.from,v.to||S.to,"complete"),n.signal(S,"pick",v),A.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(g(this.debounce),this.debounce=0);var S=this.startPos;this.data&&(S=this.data.from);var x=this.cm.getCursor(),v=this.cm.getLine(x.line);if(x.line!=this.startPos.line||v.length-x.ch!=this.startLen-this.startPos.ch||x.ch<S.ch||this.cm.somethingSelected()||!x.ch||this.options.closeCharacters.test(v.charAt(x.ch-1)))this.close();else{var A=this;this.debounce=h(function(){A.update()}),this.widget&&this.widget.disable()}},update:function(S){if(this.tick!=null){var x=this,v=++this.tick;y(this.options.hint,this.cm,this.options,function(A){x.tick==v&&x.finishUpdate(A,S)})}},finishUpdate:function(S,x){this.data&&n.signal(this.data,"update");var v=this.widget&&this.widget.picked||x&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=S,S&&S.list.length&&(v&&S.list.length==1?this.pick(S,0):(this.widget=new L(this,S),n.signal(S,"shown")))}};function m(S,x,v){var A=S.options.hintOptions,R={};for(var B in F)R[B]=F[B];if(A)for(var B in A)A[B]!==void 0&&(R[B]=A[B]);if(v)for(var B in v)v[B]!==void 0&&(R[B]=v[B]);return R.hint.resolve&&(R.hint=R.hint.resolve(S,x)),R}function I(S){return typeof S=="string"?S:S.text}function T(S,x){var v={Up:function(){x.moveFocus(-1)},Down:function(){x.moveFocus(1)},PageUp:function(){x.moveFocus(-x.menuSize()+1,!0)},PageDown:function(){x.moveFocus(x.menuSize()-1,!0)},Home:function(){x.setFocus(0)},End:function(){x.setFocus(x.length-1)},Enter:x.pick,Tab:x.pick,Esc:x.close},A=/Mac/.test(navigator.platform);A&&(v["Ctrl-P"]=function(){x.moveFocus(-1)},v["Ctrl-N"]=function(){x.moveFocus(1)});var R=S.options.customKeys,B=R?{}:v;function D(de,te){var ue;typeof te!="string"?ue=function(le){return te(le,x)}:v.hasOwnProperty(te)?ue=v[te]:ue=te,B[de]=ue}if(R)for(var w in R)R.hasOwnProperty(w)&&D(w,R[w]);var Q=S.options.extraKeys;if(Q)for(var w in Q)Q.hasOwnProperty(w)&&D(w,Q[w]);return B}function U(S,x){for(;x&&x!=S;){if(x.nodeName.toUpperCase()==="LI"&&x.parentNode==S)return x;x=x.parentNode}}function L(S,x){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=S,this.data=x,this.picked=!1;var v=this,A=S.cm,R=A.getInputField().ownerDocument,B=R.defaultView||R.parentWindow,D=this.hints=R.createElement("ul");D.setAttribute("role","listbox"),D.setAttribute("aria-expanded","true"),D.id=this.id;var w=S.cm.options.theme;D.className="CodeMirror-hints "+w,this.selectedHint=x.selectedHint||0;for(var Q=x.list,de=0;de<Q.length;++de){var te=D.appendChild(R.createElement("li")),ue=Q[de],le=s+(de!=this.selectedHint?"":" "+a);ue.className!=null&&(le=ue.className+" "+le),te.className=le,de==this.selectedHint&&te.setAttribute("aria-selected","true"),te.id=this.id+"-"+de,te.setAttribute("role","option"),ue.render?ue.render(te,x,ue):te.appendChild(R.createTextNode(ue.displayText||I(ue))),te.hintId=de}var me=S.options.container||R.body,Y=A.cursorCoords(S.options.alignWithWord?x.from:null),Oe=Y.left,Be=Y.bottom,et=!0,je=0,Le=0;if(me!==R.body){var Tt=["absolute","relative","fixed"].indexOf(B.getComputedStyle(me).position)!==-1,Ct=Tt?me:me.offsetParent,Ce=Ct.getBoundingClientRect(),At=R.body.getBoundingClientRect();je=Ce.left-At.left-Ct.scrollLeft,Le=Ce.top-At.top-Ct.scrollTop}D.style.left=Oe-je+"px",D.style.top=Be-Le+"px";var Ie=B.innerWidth||Math.max(R.body.offsetWidth,R.documentElement.offsetWidth),Ht=B.innerHeight||Math.max(R.body.offsetHeight,R.documentElement.offsetHeight);me.appendChild(D),A.getInputField().setAttribute("aria-autocomplete","list"),A.getInputField().setAttribute("aria-owns",this.id),A.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var he=S.options.moveOnOverlap?D.getBoundingClientRect():new DOMRect,ze=S.options.paddingForScrollbar?D.scrollHeight>D.clientHeight+1:!1,De;setTimeout(function(){De=A.getScrollInfo()});var tt=he.bottom-Ht;if(tt>0){var Ge=he.bottom-he.top,Jt=he.top-(Y.bottom-Y.top)-2;Ht-he.top<Jt?(Ge>Jt&&(D.style.height=(Ge=Jt)+"px"),D.style.top=(Be=Y.top-Ge)-Le+"px",et=!1):D.style.height=Ht-he.top-2+"px"}var re=he.right-Ie;if(ze&&(re+=A.display.nativeBarWidth),re>0&&(he.right-he.left>Ie&&(D.style.width=Ie-5+"px",re-=he.right-he.left-Ie),D.style.left=(Oe=Math.max(Y.left-re-je,0))+"px"),ze)for(var k=D.firstChild;k;k=k.nextSibling)k.style.paddingRight=A.display.nativeBarWidth+"px";if(A.addKeyMap(this.keyMap=T(S,{moveFocus:function(ve,We){v.changeActive(v.selectedHint+ve,We)},setFocus:function(ve){v.changeActive(ve)},menuSize:function(){return v.screenAmount()},length:Q.length,close:function(){S.close()},pick:function(){v.pick()},data:x})),S.options.closeOnUnfocus){var Ze;A.on("blur",this.onBlur=function(){Ze=setTimeout(function(){S.close()},100)}),A.on("focus",this.onFocus=function(){clearTimeout(Ze)})}A.on("scroll",this.onScroll=function(){var ve=A.getScrollInfo(),We=A.getWrapperElement().getBoundingClientRect();De||(De=A.getScrollInfo());var jt=Be+De.top-ve.top,$=jt-(B.pageYOffset||(R.documentElement||R.body).scrollTop);if(et||($+=D.offsetHeight),$<=We.top||$>=We.bottom)return S.close();D.style.top=jt+"px",D.style.left=Oe+De.left-ve.left+"px"}),n.on(D,"dblclick",function(ve){var We=U(D,ve.target||ve.srcElement);We&&We.hintId!=null&&(v.changeActive(We.hintId),v.pick())}),n.on(D,"click",function(ve){var We=U(D,ve.target||ve.srcElement);We&&We.hintId!=null&&(v.changeActive(We.hintId),S.options.completeOnSingleClick&&v.pick())}),n.on(D,"mousedown",function(){setTimeout(function(){A.focus()},20)});var Te=this.getSelectedHintRange();return(Te.from!==0||Te.to!==0)&&this.scrollToActive(),n.signal(x,"select",Q[this.selectedHint],D.childNodes[this.selectedHint]),!0}L.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var S=this.completion.cm.getInputField();S.removeAttribute("aria-activedescendant"),S.removeAttribute("aria-owns");var x=this.completion.cm;this.completion.options.closeOnUnfocus&&(x.off("blur",this.onBlur),x.off("focus",this.onFocus)),x.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var S=this;this.keyMap={Enter:function(){S.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(S,x){if(S>=this.data.list.length?S=x?this.data.list.length-1:0:S<0&&(S=x?0:this.data.list.length-1),this.selectedHint!=S){var v=this.hints.childNodes[this.selectedHint];v&&(v.className=v.className.replace(" "+a,""),v.removeAttribute("aria-selected")),v=this.hints.childNodes[this.selectedHint=S],v.className+=" "+a,v.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",v.id),this.scrollToActive(),n.signal(this.data,"select",this.data.list[this.selectedHint],v)}},scrollToActive:function(){var S=this.getSelectedHintRange(),x=this.hints.childNodes[S.from],v=this.hints.childNodes[S.to],A=this.hints.firstChild;x.offsetTop<this.hints.scrollTop?this.hints.scrollTop=x.offsetTop-A.offsetTop:v.offsetTop+v.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=v.offsetTop+v.offsetHeight-this.hints.clientHeight+A.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var S=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-S),to:Math.min(this.data.list.length-1,this.selectedHint+S)}}};function V(S,x){if(!S.somethingSelected())return x;for(var v=[],A=0;A<x.length;A++)x[A].supportsSelection&&v.push(x[A]);return v}function y(S,x,v,A){if(S.async)S(x,A,v);else{var R=S(x,v);R&&R.then?R.then(A):A(R)}}function M(S,x){var v=S.getHelpers(x,"hint"),A;if(v.length){var R=function(B,D,w){var Q=V(B,v);function de(te){if(te==Q.length)return D(null);y(Q[te],B,w,function(ue){ue&&ue.list.length>0?D(ue):de(te+1)})}de(0)};return R.async=!0,R.supportsSelection=!0,R}else return(A=S.getHelper(S.getCursor(),"hintWords"))?function(B){return n.hint.fromList(B,{words:A})}:n.hint.anyword?function(B,D){return n.hint.anyword(B,D)}:function(){}}n.registerHelper("hint","auto",{resolve:M}),n.registerHelper("hint","fromList",function(S,x){var v=S.getCursor(),A=S.getTokenAt(v),R,B=n.Pos(v.line,A.start),D=v;A.start<v.ch&&/\w/.test(A.string.charAt(v.ch-A.start-1))?R=A.string.substr(0,v.ch-A.start):(R="",B=v);for(var w=[],Q=0;Q<x.words.length;Q++){var de=x.words[Q];de.slice(0,R.length)==R&&w.push(de)}if(w.length)return{list:w,from:B,to:D}}),n.commands.autocomplete=n.showHint;var F={hint:n.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};n.defineOption("hintOptions",null)})});var Tl=Se((ug,pg)=>{(function(n){typeof ug=="object"&&typeof pg=="object"?n(Nt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){"use strict";var s=n.Pos;function a(x){var v=x.flags;return v??(x.ignoreCase?"i":"")+(x.global?"g":"")+(x.multiline?"m":"")}function u(x,v){for(var A=a(x),R=A,B=0;B<v.length;B++)R.indexOf(v.charAt(B))==-1&&(R+=v.charAt(B));return A==R?x:new RegExp(x.source,R)}function h(x){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(x.source)}function g(x,v,A){v=u(v,"g");for(var R=A.line,B=A.ch,D=x.lastLine();R<=D;R++,B=0){v.lastIndex=B;var w=x.getLine(R),Q=v.exec(w);if(Q)return{from:s(R,Q.index),to:s(R,Q.index+Q[0].length),match:Q}}}function m(x,v,A){if(!h(v))return g(x,v,A);v=u(v,"gm");for(var R,B=1,D=A.line,w=x.lastLine();D<=w;){for(var Q=0;Q<B&&!(D>w);Q++){var de=x.getLine(D++);R=R==null?de:R+`
|
|
31
|
-
`+de}B=B*2,v.lastIndex=
|
|
30
|
+
`+m+"}":"{"+I.join(",")+"}",gap=m,h}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(n,s,a){var u;if(gap="",indent="",typeof a=="number")for(u=0;u<a;u+=1)indent+=" ";else typeof a=="string"&&(indent=a);if(rep=s,s&&typeof s!="function"&&(typeof s!="object"||typeof s.length!="number"))throw new Error("JSON.stringify");return str("",{"":n})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(n,s){var a,u,h=n[s];if(h&&typeof h=="object")for(a in h)Object.prototype.hasOwnProperty.call(h,a)&&(u=walk(h,a),u!==void 0?h[a]=u:delete h[a]);return reviver.call(n,s,h)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})})()});var Nc=Se((cS,Ic)=>{Ic.exports=Kx;function Kx(){return vc(),{}}});var Ac=Se((fS,Tc)=>{var $x=zp(),ev=xc(),tv=[Nc()];Tc.exports=$x.createStore(ev,tv)});var Lc=Se((xS,Sc)=>{"use strict";Sc.exports=n=>encodeURIComponent(n).replace(/[!'()*]/g,s=>`%${s.charCodeAt(0).toString(16).toUpperCase()}`)});var Gc=Se((vS,Oc)=>{"use strict";var bc="%[a-f0-9]{2}",Rc=new RegExp("("+bc+")|([^%]+?)","gi"),yc=new RegExp("("+bc+")+","gi");function el(n,s){try{return[decodeURIComponent(n.join(""))]}catch{}if(n.length===1)return n;s=s||1;var a=n.slice(0,s),u=n.slice(s);return Array.prototype.concat.call([],el(a),el(u))}function iv(n){try{return decodeURIComponent(n)}catch{for(var s=n.match(Rc)||[],a=1;a<s.length;a++)n=el(s,a).join(""),s=n.match(Rc)||[];return n}}function nv(n){for(var s={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},a=yc.exec(n);a;){try{s[a[0]]=decodeURIComponent(a[0])}catch{var u=iv(a[0]);u!==a[0]&&(s[a[0]]=u)}a=yc.exec(n)}s["%C2"]="\uFFFD";for(var h=Object.keys(s),g=0;g<h.length;g++){var m=h[g];n=n.replace(new RegExp(m,"g"),s[m])}return n}Oc.exports=function(n){if(typeof n!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof n+"`");try{return n=n.replace(/\+/g," "),decodeURIComponent(n)}catch{return nv(n)}}});var Fc=Se((IS,Uc)=>{"use strict";Uc.exports=(n,s)=>{if(!(typeof n=="string"&&typeof s=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(s==="")return[n];let a=n.indexOf(s);return a===-1?[n]:[n.slice(0,a),n.slice(a+s.length)]}});var Dc=Se((NS,Bc)=>{"use strict";Bc.exports=function(n,s){for(var a={},u=Object.keys(n),h=Array.isArray(s),g=0;g<u.length;g++){var m=u[g],I=n[m];(h?s.indexOf(m)!==-1:s(m,I,n))&&(a[m]=I)}return a}});var ts=Se(kt=>{"use strict";var ov=Lc(),sv=Gc(),Pc=Fc(),av=Dc(),lv=n=>n==null;function uv(n){switch(n.arrayFormat){case"index":return s=>(a,u)=>{let h=a.length;return u===void 0||n.skipNull&&u===null||n.skipEmptyString&&u===""?a:u===null?[...a,[xt(s,n),"[",h,"]"].join("")]:[...a,[xt(s,n),"[",xt(h,n),"]=",xt(u,n)].join("")]};case"bracket":return s=>(a,u)=>u===void 0||n.skipNull&&u===null||n.skipEmptyString&&u===""?a:u===null?[...a,[xt(s,n),"[]"].join("")]:[...a,[xt(s,n),"[]=",xt(u,n)].join("")];case"comma":case"separator":return s=>(a,u)=>u==null||u.length===0?a:a.length===0?[[xt(s,n),"=",xt(u,n)].join("")]:[[a,xt(u,n)].join(n.arrayFormatSeparator)];default:return s=>(a,u)=>u===void 0||n.skipNull&&u===null||n.skipEmptyString&&u===""?a:u===null?[...a,xt(s,n)]:[...a,[xt(s,n),"=",xt(u,n)].join("")]}}function pv(n){let s;switch(n.arrayFormat){case"index":return(a,u,h)=>{if(s=/\[(\d*)\]$/.exec(a),a=a.replace(/\[\d*\]$/,""),!s){h[a]=u;return}h[a]===void 0&&(h[a]={}),h[a][s[1]]=u};case"bracket":return(a,u,h)=>{if(s=/(\[\])$/.exec(a),a=a.replace(/\[\]$/,""),!s){h[a]=u;return}if(h[a]===void 0){h[a]=[u];return}h[a]=[].concat(h[a],u)};case"comma":case"separator":return(a,u,h)=>{let g=typeof u=="string"&&u.includes(n.arrayFormatSeparator),m=typeof u=="string"&&!g&&vi(u,n).includes(n.arrayFormatSeparator);u=m?vi(u,n):u;let I=g||m?u.split(n.arrayFormatSeparator).map(T=>vi(T,n)):u===null?u:vi(u,n);h[a]=I};default:return(a,u,h)=>{if(h[a]===void 0){h[a]=u;return}h[a]=[].concat(h[a],u)}}}function Vc(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function xt(n,s){return s.encode?s.strict?ov(n):encodeURIComponent(n):n}function vi(n,s){return s.decode?sv(n):n}function wc(n){return Array.isArray(n)?n.sort():typeof n=="object"?wc(Object.keys(n)).sort((s,a)=>Number(s)-Number(a)).map(s=>n[s]):n}function _c(n){let s=n.indexOf("#");return s!==-1&&(n=n.slice(0,s)),n}function cv(n){let s="",a=n.indexOf("#");return a!==-1&&(s=n.slice(a)),s}function Wc(n){n=_c(n);let s=n.indexOf("?");return s===-1?"":n.slice(s+1)}function Mc(n,s){return s.parseNumbers&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?n=Number(n):s.parseBooleans&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")&&(n=n.toLowerCase()==="true"),n}function kc(n,s){s=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},s),Vc(s.arrayFormatSeparator);let a=pv(s),u=Object.create(null);if(typeof n!="string"||(n=n.trim().replace(/^[?#&]/,""),!n))return u;for(let h of n.split("&")){if(h==="")continue;let[g,m]=Pc(s.decode?h.replace(/\+/g," "):h,"=");m=m===void 0?null:["comma","separator"].includes(s.arrayFormat)?m:vi(m,s),a(vi(g,s),m,u)}for(let h of Object.keys(u)){let g=u[h];if(typeof g=="object"&&g!==null)for(let m of Object.keys(g))g[m]=Mc(g[m],s);else u[h]=Mc(g,s)}return s.sort===!1?u:(s.sort===!0?Object.keys(u).sort():Object.keys(u).sort(s.sort)).reduce((h,g)=>{let m=u[g];return m&&typeof m=="object"&&!Array.isArray(m)?h[g]=wc(m):h[g]=m,h},Object.create(null))}kt.extract=Wc;kt.parse=kc;kt.stringify=(n,s)=>{if(!n)return"";s=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},s),Vc(s.arrayFormatSeparator);let a=m=>s.skipNull&&lv(n[m])||s.skipEmptyString&&n[m]==="",u=uv(s),h={};for(let m of Object.keys(n))a(m)||(h[m]=n[m]);let g=Object.keys(h);return s.sort!==!1&&g.sort(s.sort),g.map(m=>{let I=n[m];return I===void 0?"":I===null?xt(m,s):Array.isArray(I)?I.reduce(u(m),[]).join("&"):xt(m,s)+"="+xt(I,s)}).filter(m=>m.length>0).join("&")};kt.parseUrl=(n,s)=>{s=Object.assign({decode:!0},s);let[a,u]=Pc(n,"#");return Object.assign({url:a.split("?")[0]||"",query:kc(Wc(n),s)},s&&s.parseFragmentIdentifier&&u?{fragmentIdentifier:vi(u,s)}:{})};kt.stringifyUrl=(n,s)=>{s=Object.assign({encode:!0,strict:!0},s);let a=_c(n.url).split("?")[0]||"",u=kt.extract(n.url),h=kt.parse(u,{sort:!1}),g=Object.assign(h,n.query),m=kt.stringify(g,s);m&&(m=`?${m}`);let I=cv(n.url);return n.fragmentIdentifier&&(I=`#${xt(n.fragmentIdentifier,s)}`),`${a}${m}${I}`};kt.pick=(n,s,a)=>{a=Object.assign({parseFragmentIdentifier:!0},a);let{url:u,query:h,fragmentIdentifier:g}=kt.parseUrl(n,a);return kt.stringifyUrl({url:u,query:av(h,s),fragmentIdentifier:g},a)};kt.exclude=(n,s,a)=>{let u=Array.isArray(s)?h=>!s.includes(h):(h,g)=>!s(h,g);return kt.pick(n,u,a)}});var Mh=Se((lU,ml)=>{"use strict";var mn=typeof Reflect=="object"?Reflect:null,Lh=mn&&typeof mn.apply=="function"?mn.apply:function(s,a,u){return Function.prototype.apply.call(s,a,u)},Ls;mn&&typeof mn.ownKeys=="function"?Ls=mn.ownKeys:Object.getOwnPropertySymbols?Ls=function(s){return Object.getOwnPropertyNames(s).concat(Object.getOwnPropertySymbols(s))}:Ls=function(s){return Object.getOwnPropertyNames(s)};function GC(n){console&&console.warn&&console.warn(n)}var yh=Number.isNaN||function(s){return s!==s};function be(){be.init.call(this)}ml.exports=be;ml.exports.once=DC;be.EventEmitter=be;be.prototype._events=void 0;be.prototype._eventsCount=0;be.prototype._maxListeners=void 0;var Rh=10;function Rs(n){if(typeof n!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n)}Object.defineProperty(be,"defaultMaxListeners",{enumerable:!0,get:function(){return Rh},set:function(n){if(typeof n!="number"||n<0||yh(n))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+n+".");Rh=n}});be.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};be.prototype.setMaxListeners=function(s){if(typeof s!="number"||s<0||yh(s))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+s+".");return this._maxListeners=s,this};function bh(n){return n._maxListeners===void 0?be.defaultMaxListeners:n._maxListeners}be.prototype.getMaxListeners=function(){return bh(this)};be.prototype.emit=function(s){for(var a=[],u=1;u<arguments.length;u++)a.push(arguments[u]);var h=s==="error",g=this._events;if(g!==void 0)h=h&&g.error===void 0;else if(!h)return!1;if(h){var m;if(a.length>0&&(m=a[0]),m instanceof Error)throw m;var I=new Error("Unhandled error."+(m?" ("+m.message+")":""));throw I.context=m,I}var T=g[s];if(T===void 0)return!1;if(typeof T=="function")Lh(T,this,a);else for(var G=T.length,L=Bh(T,G),u=0;u<G;++u)Lh(L[u],this,a);return!0};function Oh(n,s,a,u){var h,g,m;if(Rs(a),g=n._events,g===void 0?(g=n._events=Object.create(null),n._eventsCount=0):(g.newListener!==void 0&&(n.emit("newListener",s,a.listener?a.listener:a),g=n._events),m=g[s]),m===void 0)m=g[s]=a,++n._eventsCount;else if(typeof m=="function"?m=g[s]=u?[a,m]:[m,a]:u?m.unshift(a):m.push(a),h=bh(n),h>0&&m.length>h&&!m.warned){m.warned=!0;var I=new Error("Possible EventEmitter memory leak detected. "+m.length+" "+String(s)+" listeners added. Use emitter.setMaxListeners() to increase limit");I.name="MaxListenersExceededWarning",I.emitter=n,I.type=s,I.count=m.length,GC(I)}return n}be.prototype.addListener=function(s,a){return Oh(this,s,a,!1)};be.prototype.on=be.prototype.addListener;be.prototype.prependListener=function(s,a){return Oh(this,s,a,!0)};function UC(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Gh(n,s,a){var u={fired:!1,wrapFn:void 0,target:n,type:s,listener:a},h=UC.bind(u);return h.listener=a,u.wrapFn=h,h}be.prototype.once=function(s,a){return Rs(a),this.on(s,Gh(this,s,a)),this};be.prototype.prependOnceListener=function(s,a){return Rs(a),this.prependListener(s,Gh(this,s,a)),this};be.prototype.removeListener=function(s,a){var u,h,g,m,I;if(Rs(a),h=this._events,h===void 0)return this;if(u=h[s],u===void 0)return this;if(u===a||u.listener===a)--this._eventsCount===0?this._events=Object.create(null):(delete h[s],h.removeListener&&this.emit("removeListener",s,u.listener||a));else if(typeof u!="function"){for(g=-1,m=u.length-1;m>=0;m--)if(u[m]===a||u[m].listener===a){I=u[m].listener,g=m;break}if(g<0)return this;g===0?u.shift():FC(u,g),u.length===1&&(h[s]=u[0]),h.removeListener!==void 0&&this.emit("removeListener",s,I||a)}return this};be.prototype.off=be.prototype.removeListener;be.prototype.removeAllListeners=function(s){var a,u,h;if(u=this._events,u===void 0)return this;if(u.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):u[s]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete u[s]),this;if(arguments.length===0){var g=Object.keys(u),m;for(h=0;h<g.length;++h)m=g[h],m!=="removeListener"&&this.removeAllListeners(m);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(a=u[s],typeof a=="function")this.removeListener(s,a);else if(a!==void 0)for(h=a.length-1;h>=0;h--)this.removeListener(s,a[h]);return this};function Uh(n,s,a){var u=n._events;if(u===void 0)return[];var h=u[s];return h===void 0?[]:typeof h=="function"?a?[h.listener||h]:[h]:a?BC(h):Bh(h,h.length)}be.prototype.listeners=function(s){return Uh(this,s,!0)};be.prototype.rawListeners=function(s){return Uh(this,s,!1)};be.listenerCount=function(n,s){return typeof n.listenerCount=="function"?n.listenerCount(s):Fh.call(n,s)};be.prototype.listenerCount=Fh;function Fh(n){var s=this._events;if(s!==void 0){var a=s[n];if(typeof a=="function")return 1;if(a!==void 0)return a.length}return 0}be.prototype.eventNames=function(){return this._eventsCount>0?Ls(this._events):[]};function Bh(n,s){for(var a=new Array(s),u=0;u<s;++u)a[u]=n[u];return a}function FC(n,s){for(;s+1<n.length;s++)n[s]=n[s+1];n.pop()}function BC(n){for(var s=new Array(n.length),a=0;a<s.length;++a)s[a]=n[a].listener||n[a];return s}function DC(n,s){return new Promise(function(a,u){function h(m){n.removeListener(s,g),u(m)}function g(){typeof n.removeListener=="function"&&n.removeListener("error",h),a([].slice.call(arguments))}Dh(n,s,g,{once:!0}),s!=="error"&&MC(n,h,{once:!0})})}function MC(n,s,a){typeof n.on=="function"&&Dh(n,"error",s,a)}function Dh(n,s,a,u){if(typeof n.on=="function")u.once?n.once(s,a):n.on(s,a);else if(typeof n.addEventListener=="function")n.addEventListener(s,function h(g){u.once&&n.removeEventListener(s,h),a(g)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof n)}});var Nl=Se((jh,zh)=>{(function(n){typeof jh=="object"&&typeof zh=="object"?n(Nt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){"use strict";function s(g,m,I,T){if(I&&I.call){var G=I;I=null}else var G=h(g,I,"rangeFinder");typeof m=="number"&&(m=n.Pos(m,0));var L=h(g,I,"minFoldSize");function V(S){var x=G(g,m);if(!x||x.to.line-x.from.line<L)return null;if(T==="fold")return x;for(var v=g.findMarksAt(x.from),C=0;C<v.length;++C)if(v[C].__isFold){if(!S)return null;x.cleared=!0,v[C].clear()}return x}var y=V(!0);if(h(g,I,"scanUp"))for(;!y&&m.line>g.firstLine();)m=n.Pos(m.line-1,0),y=V(!1);if(!(!y||y.cleared||T==="unfold")){var M=a(g,I,y);n.on(M,"mousedown",function(S){F.clear(),n.e_preventDefault(S)});var F=g.markText(y.from,y.to,{replacedWith:M,clearOnEnter:h(g,I,"clearOnEnter"),__isFold:!0});F.on("clear",function(S,x){n.signal(g,"unfold",g,S,x)}),n.signal(g,"fold",g,y.from,y.to)}}function a(g,m,I){var T=h(g,m,"widget");if(typeof T=="function"&&(T=T(I.from,I.to)),typeof T=="string"){var G=document.createTextNode(T);T=document.createElement("span"),T.appendChild(G),T.className="CodeMirror-foldmarker"}else T&&(T=T.cloneNode(!0));return T}n.newFoldFunction=function(g,m){return function(I,T){s(I,T,{rangeFinder:g,widget:m})}},n.defineExtension("foldCode",function(g,m,I){s(this,g,m,I)}),n.defineExtension("isFolded",function(g){for(var m=this.findMarksAt(g),I=0;I<m.length;++I)if(m[I].__isFold)return!0}),n.commands.toggleFold=function(g){g.foldCode(g.getCursor())},n.commands.fold=function(g){g.foldCode(g.getCursor(),null,"fold")},n.commands.unfold=function(g){g.foldCode(g.getCursor(),{scanUp:!1},"unfold")},n.commands.foldAll=function(g){g.operation(function(){for(var m=g.firstLine(),I=g.lastLine();m<=I;m++)g.foldCode(n.Pos(m,0),{scanUp:!1},"fold")})},n.commands.unfoldAll=function(g){g.operation(function(){for(var m=g.firstLine(),I=g.lastLine();m<=I;m++)g.foldCode(n.Pos(m,0),{scanUp:!1},"unfold")})},n.registerHelper("fold","combine",function(){var g=Array.prototype.slice.call(arguments,0);return function(m,I){for(var T=0;T<g.length;++T){var G=g[T](m,I);if(G)return G}}}),n.registerHelper("fold","auto",function(g,m){for(var I=g.getHelpers(m,"fold"),T=0;T<I.length;T++){var G=I[T](g,m);if(G)return G}});var u={rangeFinder:n.fold.auto,widget:"\u2194",minFoldSize:0,scanUp:!1,clearOnEnter:!0};n.defineOption("foldOptions",null);function h(g,m,I){if(m&&m[I]!==void 0)return m[I];var T=g.options.foldOptions;return T&&T[I]!==void 0?T[I]:u[I]}n.defineExtension("foldOption",function(g,m){return h(this,g,m)})})});var $h=Se((qh,Kh)=>{(function(n){typeof qh=="object"&&typeof Kh=="object"?n(Nt(),Nl()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./foldcode"],n):n(CodeMirror)})(function(n){"use strict";n.defineOption("foldGutter",!1,function(F,S,x){x&&x!=n.Init&&(F.clearGutter(F.state.foldGutter.options.gutter),F.state.foldGutter=null,F.off("gutterClick",G),F.off("changes",V),F.off("viewportChange",y),F.off("fold",M),F.off("unfold",M),F.off("swapDoc",V),F.off("optionChange",L)),S&&(F.state.foldGutter=new a(u(S)),T(F),F.on("gutterClick",G),F.on("changes",V),F.on("viewportChange",y),F.on("fold",M),F.on("unfold",M),F.on("swapDoc",V),F.on("optionChange",L))});var s=n.Pos;function a(F){this.options=F,this.from=this.to=0}function u(F){return F===!0&&(F={}),F.gutter==null&&(F.gutter="CodeMirror-foldgutter"),F.indicatorOpen==null&&(F.indicatorOpen="CodeMirror-foldgutter-open"),F.indicatorFolded==null&&(F.indicatorFolded="CodeMirror-foldgutter-folded"),F}function h(F,S){for(var x=F.findMarks(s(S,0),s(S+1,0)),v=0;v<x.length;++v)if(x[v].__isFold){var C=x[v].find(-1);if(C&&C.line===S)return x[v]}}function g(F){if(typeof F=="string"){var S=document.createElement("div");return S.className=F+" CodeMirror-guttermarker-subtle",S}else return F.cloneNode(!0)}function m(F,S,x){var v=F.state.foldGutter.options,C=S-1,R=F.foldOption(v,"minFoldSize"),B=F.foldOption(v,"rangeFinder"),D=typeof v.indicatorFolded=="string"&&I(v.indicatorFolded),w=typeof v.indicatorOpen=="string"&&I(v.indicatorOpen);F.eachLine(S,x,function(Q){++C;var de=null,te=Q.gutterMarkers;if(te&&(te=te[v.gutter]),h(F,C)){if(D&&te&&D.test(te.className))return;de=g(v.indicatorFolded)}else{var ue=s(C,0),le=B&&B(F,ue);if(le&&le.to.line-le.from.line>=R){if(w&&te&&w.test(te.className))return;de=g(v.indicatorOpen)}}!de&&!te||F.setGutterMarker(Q,v.gutter,de)})}function I(F){return new RegExp("(^|\\s)"+F+"(?:$|\\s)\\s*")}function T(F){var S=F.getViewport(),x=F.state.foldGutter;x&&(F.operation(function(){m(F,S.from,S.to)}),x.from=S.from,x.to=S.to)}function G(F,S,x){var v=F.state.foldGutter;if(v){var C=v.options;if(x==C.gutter){var R=h(F,S);R?R.clear():F.foldCode(s(S,0),C)}}}function L(F,S){S=="mode"&&V(F)}function V(F){var S=F.state.foldGutter;if(S){var x=S.options;S.from=S.to=0,clearTimeout(S.changeUpdate),S.changeUpdate=setTimeout(function(){T(F)},x.foldOnChangeTimeSpan||600)}}function y(F){var S=F.state.foldGutter;if(S){var x=S.options;clearTimeout(S.changeUpdate),S.changeUpdate=setTimeout(function(){var v=F.getViewport();S.from==S.to||v.from-S.to>20||S.from-v.to>20?T(F):F.operation(function(){v.from<S.from&&(m(F,v.from,S.from),S.from=v.from),v.to>S.to&&(m(F,S.to,v.to),S.to=v.to)})},x.updateViewportTimeSpan||400)}}function M(F,S){var x=F.state.foldGutter;if(x){var v=S.line;v>=x.from&&v<x.to&&m(F,v,v+1)}}})});var rg=Se((eg,tg)=>{(function(n){typeof eg=="object"&&typeof tg=="object"?n(Nt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){"use strict";var s=n.Pos;function a(x,v){return x.line-v.line||x.ch-v.ch}var u="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",h=u+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",g=new RegExp("<(/?)(["+u+"]["+h+"]*)","g");function m(x,v,C,R){this.line=v,this.ch=C,this.cm=x,this.text=x.getLine(v),this.min=R?Math.max(R.from,x.firstLine()):x.firstLine(),this.max=R?Math.min(R.to-1,x.lastLine()):x.lastLine()}function I(x,v){var C=x.cm.getTokenTypeAt(s(x.line,v));return C&&/\btag\b/.test(C)}function T(x){if(!(x.line>=x.max))return x.ch=0,x.text=x.cm.getLine(++x.line),!0}function G(x){if(!(x.line<=x.min))return x.text=x.cm.getLine(--x.line),x.ch=x.text.length,!0}function L(x){for(;;){var v=x.text.indexOf(">",x.ch);if(v==-1){if(T(x))continue;return}if(!I(x,v+1)){x.ch=v+1;continue}var C=x.text.lastIndexOf("/",v),R=C>-1&&!/\S/.test(x.text.slice(C+1,v));return x.ch=v+1,R?"selfClose":"regular"}}function V(x){for(;;){var v=x.ch?x.text.lastIndexOf("<",x.ch-1):-1;if(v==-1){if(G(x))continue;return}if(!I(x,v+1)){x.ch=v;continue}g.lastIndex=v,x.ch=v;var C=g.exec(x.text);if(C&&C.index==v)return C}}function y(x){for(;;){g.lastIndex=x.ch;var v=g.exec(x.text);if(!v){if(T(x))continue;return}if(!I(x,v.index+1)){x.ch=v.index+1;continue}return x.ch=v.index+v[0].length,v}}function M(x){for(;;){var v=x.ch?x.text.lastIndexOf(">",x.ch-1):-1;if(v==-1){if(G(x))continue;return}if(!I(x,v+1)){x.ch=v;continue}var C=x.text.lastIndexOf("/",v),R=C>-1&&!/\S/.test(x.text.slice(C+1,v));return x.ch=v+1,R?"selfClose":"regular"}}function F(x,v){for(var C=[];;){var R=y(x),B,D=x.line,w=x.ch-(R?R[0].length:0);if(!R||!(B=L(x)))return;if(B!="selfClose")if(R[1]){for(var Q=C.length-1;Q>=0;--Q)if(C[Q]==R[2]){C.length=Q;break}if(Q<0&&(!v||v==R[2]))return{tag:R[2],from:s(D,w),to:s(x.line,x.ch)}}else C.push(R[2])}}function S(x,v){for(var C=[];;){var R=M(x);if(!R)return;if(R=="selfClose"){V(x);continue}var B=x.line,D=x.ch,w=V(x);if(!w)return;if(w[1])C.push(w[2]);else{for(var Q=C.length-1;Q>=0;--Q)if(C[Q]==w[2]){C.length=Q;break}if(Q<0&&(!v||v==w[2]))return{tag:w[2],from:s(x.line,x.ch),to:s(B,D)}}}}n.registerHelper("fold","xml",function(x,v){for(var C=new m(x,v.line,0);;){var R=y(C);if(!R||C.line!=v.line)return;var B=L(C);if(!B)return;if(!R[1]&&B!="selfClose"){var D=s(C.line,C.ch),w=F(C,R[2]);return w&&a(w.from,D)>0?{from:D,to:w.from}:null}}}),n.findMatchingTag=function(x,v,C){var R=new m(x,v.line,v.ch,C);if(!(R.text.indexOf(">")==-1&&R.text.indexOf("<")==-1)){var B=L(R),D=B&&s(R.line,R.ch),w=B&&V(R);if(!(!B||!w||a(R,v)>0)){var Q={from:s(R.line,R.ch),to:D,tag:w[2]};return B=="selfClose"?{open:Q,close:null,at:"open"}:w[1]?{open:S(R,w[2]),close:Q,at:"close"}:(R=new m(x,D.line,D.ch,C),{open:Q,close:F(R,w[2]),at:"open"})}}},n.findEnclosingTag=function(x,v,C,R){for(var B=new m(x,v.line,v.ch,C);;){var D=S(B,R);if(!D)break;var w=new m(x,v.line,v.ch,C),Q=F(w,D.tag);if(Q)return{open:D,close:Q}}},n.scanForClosingTag=function(x,v,C,R){var B=new m(x,v.line,v.ch,R?{from:0,to:R}:null);return F(B,C)}})});var og=Se((ig,ng)=>{(function(n){typeof ig=="object"&&typeof ng=="object"?n(Nt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){"use strict";function s(a){return function(u,h){var g=h.line,m=u.getLine(g);function I(M){for(var F,S=h.ch,x=0;;){var v=S<=0?-1:m.lastIndexOf(M[0],S-1);if(v==-1){if(x==1)break;x=1,S=m.length;continue}if(x==1&&v<h.ch)break;if(F=u.getTokenTypeAt(n.Pos(g,v+1)),!/^(comment|string)/.test(F))return{ch:v+1,tokenType:F,pair:M};S=v-1}}function T(M){var F=1,S=u.lastLine(),x,v=M.ch,C;e:for(var R=g;R<=S;++R)for(var B=u.getLine(R),D=R==g?v:0;;){var w=B.indexOf(M.pair[0],D),Q=B.indexOf(M.pair[1],D);if(w<0&&(w=B.length),Q<0&&(Q=B.length),D=Math.min(w,Q),D==B.length)break;if(u.getTokenTypeAt(n.Pos(R,D+1))==M.tokenType){if(D==w)++F;else if(!--F){x=R,C=D;break e}}++D}return x==null||g==x?null:{from:n.Pos(g,v),to:n.Pos(x,C)}}for(var G=[],L=0;L<a.length;L++){var V=I(a[L]);V&&G.push(V)}G.sort(function(M,F){return M.ch-F.ch});for(var L=0;L<G.length;L++){var y=T(G[L]);if(y)return y}return null}}n.registerHelper("fold","brace",s([["{","}"],["[","]"]])),n.registerHelper("fold","brace-paren",s([["{","}"],["[","]"],["(",")"]])),n.registerHelper("fold","import",function(a,u){function h(L){if(L<a.firstLine()||L>a.lastLine())return null;var V=a.getTokenAt(n.Pos(L,1));if(/\S/.test(V.string)||(V=a.getTokenAt(n.Pos(L,V.end+1))),V.type!="keyword"||V.string!="import")return null;for(var y=L,M=Math.min(a.lastLine(),L+10);y<=M;++y){var F=a.getLine(y),S=F.indexOf(";");if(S!=-1)return{startCh:V.end,end:n.Pos(y,S)}}}var g=u.line,m=h(g),I;if(!m||h(g-1)||(I=h(g-2))&&I.end.line==g-1)return null;for(var T=m.end;;){var G=h(T.line+1);if(G==null)break;T=G.end}return{from:a.clipPos(n.Pos(g,m.startCh+1)),to:T}}),n.registerHelper("fold","include",function(a,u){function h(G){if(G<a.firstLine()||G>a.lastLine())return null;var L=a.getTokenAt(n.Pos(G,1));if(/\S/.test(L.string)||(L=a.getTokenAt(n.Pos(G,L.end+1))),L.type=="meta"&&L.string.slice(0,8)=="#include")return L.start+8}var g=u.line,m=h(g);if(m==null||h(g-1)!=null)return null;for(var I=g;;){var T=h(I+1);if(T==null)break;++I}return{from:n.Pos(g,m+1),to:a.clipPos(n.Pos(I))}})})});var lg=Se((sg,ag)=>{(function(n){typeof sg=="object"&&typeof ag=="object"?n(Nt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){"use strict";var s="CodeMirror-hint",a="CodeMirror-hint-active";n.showHint=function(S,x,v){if(!x)return S.showHint(v);v&&v.async&&(x.async=!0);var C={hint:x};if(v)for(var R in v)C[R]=v[R];return S.showHint(C)},n.defineExtension("showHint",function(S){S=m(this,this.getCursor("start"),S);var x=this.listSelections();if(!(x.length>1)){if(this.somethingSelected()){if(!S.hint.supportsSelection)return;for(var v=0;v<x.length;v++)if(x[v].head.line!=x[v].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var C=this.state.completionActive=new u(this,S);C.options.hint&&(n.signal(this,"startCompletion",this),C.update(!0))}}),n.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function u(S,x){if(this.cm=S,this.options=x,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var v=this;S.on("cursorActivity",this.activityFunc=function(){v.cursorActivity()})}}var h=window.requestAnimationFrame||function(S){return setTimeout(S,1e3/60)},g=window.cancelAnimationFrame||clearTimeout;u.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&n.signal(this.data,"close"),this.widget&&this.widget.close(),n.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(S,x){var v=S.list[x],C=this;this.cm.operation(function(){v.hint?v.hint(C.cm,S,v):C.cm.replaceRange(I(v),v.from||S.from,v.to||S.to,"complete"),n.signal(S,"pick",v),C.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(g(this.debounce),this.debounce=0);var S=this.startPos;this.data&&(S=this.data.from);var x=this.cm.getCursor(),v=this.cm.getLine(x.line);if(x.line!=this.startPos.line||v.length-x.ch!=this.startLen-this.startPos.ch||x.ch<S.ch||this.cm.somethingSelected()||!x.ch||this.options.closeCharacters.test(v.charAt(x.ch-1)))this.close();else{var C=this;this.debounce=h(function(){C.update()}),this.widget&&this.widget.disable()}},update:function(S){if(this.tick!=null){var x=this,v=++this.tick;y(this.options.hint,this.cm,this.options,function(C){x.tick==v&&x.finishUpdate(C,S)})}},finishUpdate:function(S,x){this.data&&n.signal(this.data,"update");var v=this.widget&&this.widget.picked||x&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=S,S&&S.list.length&&(v&&S.list.length==1?this.pick(S,0):(this.widget=new L(this,S),n.signal(S,"shown")))}};function m(S,x,v){var C=S.options.hintOptions,R={};for(var B in F)R[B]=F[B];if(C)for(var B in C)C[B]!==void 0&&(R[B]=C[B]);if(v)for(var B in v)v[B]!==void 0&&(R[B]=v[B]);return R.hint.resolve&&(R.hint=R.hint.resolve(S,x)),R}function I(S){return typeof S=="string"?S:S.text}function T(S,x){var v={Up:function(){x.moveFocus(-1)},Down:function(){x.moveFocus(1)},PageUp:function(){x.moveFocus(-x.menuSize()+1,!0)},PageDown:function(){x.moveFocus(x.menuSize()-1,!0)},Home:function(){x.setFocus(0)},End:function(){x.setFocus(x.length-1)},Enter:x.pick,Tab:x.pick,Esc:x.close},C=/Mac/.test(navigator.platform);C&&(v["Ctrl-P"]=function(){x.moveFocus(-1)},v["Ctrl-N"]=function(){x.moveFocus(1)});var R=S.options.customKeys,B=R?{}:v;function D(de,te){var ue;typeof te!="string"?ue=function(le){return te(le,x)}:v.hasOwnProperty(te)?ue=v[te]:ue=te,B[de]=ue}if(R)for(var w in R)R.hasOwnProperty(w)&&D(w,R[w]);var Q=S.options.extraKeys;if(Q)for(var w in Q)Q.hasOwnProperty(w)&&D(w,Q[w]);return B}function G(S,x){for(;x&&x!=S;){if(x.nodeName.toUpperCase()==="LI"&&x.parentNode==S)return x;x=x.parentNode}}function L(S,x){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=S,this.data=x,this.picked=!1;var v=this,C=S.cm,R=C.getInputField().ownerDocument,B=R.defaultView||R.parentWindow,D=this.hints=R.createElement("ul");D.setAttribute("role","listbox"),D.setAttribute("aria-expanded","true"),D.id=this.id;var w=S.cm.options.theme;D.className="CodeMirror-hints "+w,this.selectedHint=x.selectedHint||0;for(var Q=x.list,de=0;de<Q.length;++de){var te=D.appendChild(R.createElement("li")),ue=Q[de],le=s+(de!=this.selectedHint?"":" "+a);ue.className!=null&&(le=ue.className+" "+le),te.className=le,de==this.selectedHint&&te.setAttribute("aria-selected","true"),te.id=this.id+"-"+de,te.setAttribute("role","option"),ue.render?ue.render(te,x,ue):te.appendChild(R.createTextNode(ue.displayText||I(ue))),te.hintId=de}var me=S.options.container||R.body,Y=C.cursorCoords(S.options.alignWithWord?x.from:null),Oe=Y.left,Be=Y.bottom,et=!0,je=0,Le=0;if(me!==R.body){var Tt=["absolute","relative","fixed"].indexOf(B.getComputedStyle(me).position)!==-1,At=Tt?me:me.offsetParent,Ae=At.getBoundingClientRect(),Ct=R.body.getBoundingClientRect();je=Ae.left-Ct.left-At.scrollLeft,Le=Ae.top-Ct.top-At.scrollTop}D.style.left=Oe-je+"px",D.style.top=Be-Le+"px";var Ie=B.innerWidth||Math.max(R.body.offsetWidth,R.documentElement.offsetWidth),Ht=B.innerHeight||Math.max(R.body.offsetHeight,R.documentElement.offsetHeight);me.appendChild(D),C.getInputField().setAttribute("aria-autocomplete","list"),C.getInputField().setAttribute("aria-owns",this.id),C.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var he=S.options.moveOnOverlap?D.getBoundingClientRect():new DOMRect,ze=S.options.paddingForScrollbar?D.scrollHeight>D.clientHeight+1:!1,De;setTimeout(function(){De=C.getScrollInfo()});var tt=he.bottom-Ht;if(tt>0){var Ue=he.bottom-he.top,Jt=he.top-(Y.bottom-Y.top)-2;Ht-he.top<Jt?(Ue>Jt&&(D.style.height=(Ue=Jt)+"px"),D.style.top=(Be=Y.top-Ue)-Le+"px",et=!1):D.style.height=Ht-he.top-2+"px"}var re=he.right-Ie;if(ze&&(re+=C.display.nativeBarWidth),re>0&&(he.right-he.left>Ie&&(D.style.width=Ie-5+"px",re-=he.right-he.left-Ie),D.style.left=(Oe=Math.max(Y.left-re-je,0))+"px"),ze)for(var k=D.firstChild;k;k=k.nextSibling)k.style.paddingRight=C.display.nativeBarWidth+"px";if(C.addKeyMap(this.keyMap=T(S,{moveFocus:function(ve,We){v.changeActive(v.selectedHint+ve,We)},setFocus:function(ve){v.changeActive(ve)},menuSize:function(){return v.screenAmount()},length:Q.length,close:function(){S.close()},pick:function(){v.pick()},data:x})),S.options.closeOnUnfocus){var Ze;C.on("blur",this.onBlur=function(){Ze=setTimeout(function(){S.close()},100)}),C.on("focus",this.onFocus=function(){clearTimeout(Ze)})}C.on("scroll",this.onScroll=function(){var ve=C.getScrollInfo(),We=C.getWrapperElement().getBoundingClientRect();De||(De=C.getScrollInfo());var jt=Be+De.top-ve.top,$=jt-(B.pageYOffset||(R.documentElement||R.body).scrollTop);if(et||($+=D.offsetHeight),$<=We.top||$>=We.bottom)return S.close();D.style.top=jt+"px",D.style.left=Oe+De.left-ve.left+"px"}),n.on(D,"dblclick",function(ve){var We=G(D,ve.target||ve.srcElement);We&&We.hintId!=null&&(v.changeActive(We.hintId),v.pick())}),n.on(D,"click",function(ve){var We=G(D,ve.target||ve.srcElement);We&&We.hintId!=null&&(v.changeActive(We.hintId),S.options.completeOnSingleClick&&v.pick())}),n.on(D,"mousedown",function(){setTimeout(function(){C.focus()},20)});var Te=this.getSelectedHintRange();return(Te.from!==0||Te.to!==0)&&this.scrollToActive(),n.signal(x,"select",Q[this.selectedHint],D.childNodes[this.selectedHint]),!0}L.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var S=this.completion.cm.getInputField();S.removeAttribute("aria-activedescendant"),S.removeAttribute("aria-owns");var x=this.completion.cm;this.completion.options.closeOnUnfocus&&(x.off("blur",this.onBlur),x.off("focus",this.onFocus)),x.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var S=this;this.keyMap={Enter:function(){S.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(S,x){if(S>=this.data.list.length?S=x?this.data.list.length-1:0:S<0&&(S=x?0:this.data.list.length-1),this.selectedHint!=S){var v=this.hints.childNodes[this.selectedHint];v&&(v.className=v.className.replace(" "+a,""),v.removeAttribute("aria-selected")),v=this.hints.childNodes[this.selectedHint=S],v.className+=" "+a,v.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",v.id),this.scrollToActive(),n.signal(this.data,"select",this.data.list[this.selectedHint],v)}},scrollToActive:function(){var S=this.getSelectedHintRange(),x=this.hints.childNodes[S.from],v=this.hints.childNodes[S.to],C=this.hints.firstChild;x.offsetTop<this.hints.scrollTop?this.hints.scrollTop=x.offsetTop-C.offsetTop:v.offsetTop+v.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=v.offsetTop+v.offsetHeight-this.hints.clientHeight+C.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var S=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-S),to:Math.min(this.data.list.length-1,this.selectedHint+S)}}};function V(S,x){if(!S.somethingSelected())return x;for(var v=[],C=0;C<x.length;C++)x[C].supportsSelection&&v.push(x[C]);return v}function y(S,x,v,C){if(S.async)S(x,C,v);else{var R=S(x,v);R&&R.then?R.then(C):C(R)}}function M(S,x){var v=S.getHelpers(x,"hint"),C;if(v.length){var R=function(B,D,w){var Q=V(B,v);function de(te){if(te==Q.length)return D(null);y(Q[te],B,w,function(ue){ue&&ue.list.length>0?D(ue):de(te+1)})}de(0)};return R.async=!0,R.supportsSelection=!0,R}else return(C=S.getHelper(S.getCursor(),"hintWords"))?function(B){return n.hint.fromList(B,{words:C})}:n.hint.anyword?function(B,D){return n.hint.anyword(B,D)}:function(){}}n.registerHelper("hint","auto",{resolve:M}),n.registerHelper("hint","fromList",function(S,x){var v=S.getCursor(),C=S.getTokenAt(v),R,B=n.Pos(v.line,C.start),D=v;C.start<v.ch&&/\w/.test(C.string.charAt(v.ch-C.start-1))?R=C.string.substr(0,v.ch-C.start):(R="",B=v);for(var w=[],Q=0;Q<x.words.length;Q++){var de=x.words[Q];de.slice(0,R.length)==R&&w.push(de)}if(w.length)return{list:w,from:B,to:D}}),n.commands.autocomplete=n.showHint;var F={hint:n.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};n.defineOption("hintOptions",null)})});var Tl=Se((ug,pg)=>{(function(n){typeof ug=="object"&&typeof pg=="object"?n(Nt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){"use strict";var s=n.Pos;function a(x){var v=x.flags;return v??(x.ignoreCase?"i":"")+(x.global?"g":"")+(x.multiline?"m":"")}function u(x,v){for(var C=a(x),R=C,B=0;B<v.length;B++)R.indexOf(v.charAt(B))==-1&&(R+=v.charAt(B));return C==R?x:new RegExp(x.source,R)}function h(x){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(x.source)}function g(x,v,C){v=u(v,"g");for(var R=C.line,B=C.ch,D=x.lastLine();R<=D;R++,B=0){v.lastIndex=B;var w=x.getLine(R),Q=v.exec(w);if(Q)return{from:s(R,Q.index),to:s(R,Q.index+Q[0].length),match:Q}}}function m(x,v,C){if(!h(v))return g(x,v,C);v=u(v,"gm");for(var R,B=1,D=C.line,w=x.lastLine();D<=w;){for(var Q=0;Q<B&&!(D>w);Q++){var de=x.getLine(D++);R=R==null?de:R+`
|
|
31
|
+
`+de}B=B*2,v.lastIndex=C.ch;var te=v.exec(R);if(te){var ue=R.slice(0,te.index).split(`
|
|
32
32
|
`),le=te[0].split(`
|
|
33
|
-
`),me=
|
|
33
|
+
`),me=C.line+ue.length-1,Y=ue[ue.length-1].length;return{from:s(me,Y),to:s(me+le.length-1,le.length==1?Y+le[0].length:le[le.length-1].length),match:te}}}}function I(x,v,C){for(var R,B=0;B<=x.length;){v.lastIndex=B;var D=v.exec(x);if(!D)break;var w=D.index+D[0].length;if(w>x.length-C)break;(!R||w>R.index+R[0].length)&&(R=D),B=D.index+1}return R}function T(x,v,C){v=u(v,"g");for(var R=C.line,B=C.ch,D=x.firstLine();R>=D;R--,B=-1){var w=x.getLine(R),Q=I(w,v,B<0?0:w.length-B);if(Q)return{from:s(R,Q.index),to:s(R,Q.index+Q[0].length),match:Q}}}function G(x,v,C){if(!h(v))return T(x,v,C);v=u(v,"gm");for(var R,B=1,D=x.getLine(C.line).length-C.ch,w=C.line,Q=x.firstLine();w>=Q;){for(var de=0;de<B&&w>=Q;de++){var te=x.getLine(w--);R=R==null?te:te+`
|
|
34
34
|
`+R}B*=2;var ue=I(R,v,D);if(ue){var le=R.slice(0,ue.index).split(`
|
|
35
35
|
`),me=ue[0].split(`
|
|
36
|
-
`),Y=w+le.length,Oe=le[le.length-1].length;return{from:s(Y,Oe),to:s(Y+me.length-1,me.length==1?Oe+me[0].length:me[me.length-1].length),match:ue}}}}var L,V;String.prototype.normalize?(L=function(x){return x.normalize("NFD").toLowerCase()},V=function(x){return x.normalize("NFD")}):(L=function(x){return x.toLowerCase()},V=function(x){return x});function y(x,v,A,R){if(x.length==v.length)return A;for(var B=0,D=A+Math.max(0,x.length-v.length);;){if(B==D)return B;var w=B+D>>1,Q=R(x.slice(0,w)).length;if(Q==A)return w;Q>A?D=w:B=w+1}}function M(x,v,A,R){if(!v.length)return null;var B=R?L:V,D=B(v).split(/\r|\n\r?/);e:for(var w=A.line,Q=A.ch,de=x.lastLine()+1-D.length;w<=de;w++,Q=0){var te=x.getLine(w).slice(Q),ue=B(te);if(D.length==1){var le=ue.indexOf(D[0]);if(le==-1)continue e;var A=y(te,ue,le,B)+Q;return{from:s(w,y(te,ue,le,B)+Q),to:s(w,y(te,ue,le+D[0].length,B)+Q)}}else{var me=ue.length-D[0].length;if(ue.slice(me)!=D[0])continue e;for(var Y=1;Y<D.length-1;Y++)if(B(x.getLine(w+Y))!=D[Y])continue e;var Oe=x.getLine(w+D.length-1),Be=B(Oe),et=D[D.length-1];if(Be.slice(0,et.length)!=et)continue e;return{from:s(w,y(te,ue,me,B)+Q),to:s(w+D.length-1,y(Oe,Be,et.length,B))}}}}function F(x,v,A,R){if(!v.length)return null;var B=R?L:V,D=B(v).split(/\r|\n\r?/);e:for(var w=A.line,Q=A.ch,de=x.firstLine()-1+D.length;w>=de;w--,Q=-1){var te=x.getLine(w);Q>-1&&(te=te.slice(0,Q));var ue=B(te);if(D.length==1){var le=ue.lastIndexOf(D[0]);if(le==-1)continue e;return{from:s(w,y(te,ue,le,B)),to:s(w,y(te,ue,le+D[0].length,B))}}else{var me=D[D.length-1];if(ue.slice(0,me.length)!=me)continue e;for(var Y=1,A=w-D.length+1;Y<D.length-1;Y++)if(B(x.getLine(A+Y))!=D[Y])continue e;var Oe=x.getLine(w+1-D.length),Be=B(Oe);if(Be.slice(Be.length-D[0].length)!=D[0])continue e;return{from:s(w+1-D.length,y(Oe,Be,Oe.length-D[0].length,B)),to:s(w,y(te,ue,me.length,B))}}}}function S(x,v,A,R){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=x,A=A?x.clipPos(A):s(0,0),this.pos={from:A,to:A};var B;typeof R=="object"?B=R.caseFold:(B=R,R=null),typeof v=="string"?(B==null&&(B=!1),this.matches=function(D,w){return(D?F:M)(x,v,w,B)}):(v=u(v,"gm"),!R||R.multiline!==!1?this.matches=function(D,w){return(D?U:m)(x,v,w)}:this.matches=function(D,w){return(D?T:g)(x,v,w)})}S.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(x){var v=this.doc.clipPos(x?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(v=s(v.line,v.ch),x?(v.ch--,v.ch<0&&(v.line--,v.ch=(this.doc.getLine(v.line)||"").length)):(v.ch++,v.ch>(this.doc.getLine(v.line)||"").length&&(v.ch=0,v.line++)),n.cmpPos(v,this.doc.clipPos(v))!=0))return this.atOccurrence=!1;var A=this.matches(x,v);if(this.afterEmptyMatch=A&&n.cmpPos(A.from,A.to)==0,A)return this.pos=A,this.atOccurrence=!0,this.pos.match||!0;var R=s(x?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:R,to:R},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(x,v){if(this.atOccurrence){var A=n.splitLines(x);this.doc.replaceRange(A,this.pos.from,this.pos.to,v),this.pos.to=s(this.pos.from.line+A.length-1,A[A.length-1].length+(A.length==1?this.pos.from.ch:0))}}},n.defineExtension("getSearchCursor",function(x,v,A){return new S(this.doc,x,v,A)}),n.defineDocExtension("getSearchCursor",function(x,v,A){return new S(this,x,v,A)}),n.defineExtension("selectMatches",function(x,v){for(var A=[],R=this.getSearchCursor(x,this.getCursor("from"),v);R.findNext()&&!(n.cmpPos(R.to(),this.getCursor("to"))>0);)A.push({anchor:R.from(),head:R.to()});A.length&&this.setSelections(A,0)})})});var dg=Se((cg,fg)=>{(function(n){typeof cg=="object"&&typeof fg=="object"?n(Nt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){"use strict";n.defineExtension("annotateScrollbar",function(a){return typeof a=="string"&&(a={className:a}),new s(this,a)}),n.defineOption("scrollButtonHeight",0);function s(a,u){this.cm=a,this.options=u,this.buttonHeight=u.scrollButtonHeight||a.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=a.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();function h(m){clearTimeout(g.doRedraw),g.doRedraw=setTimeout(function(){g.redraw()},m)}var g=this;a.on("refresh",this.resizeHandler=function(){clearTimeout(g.doUpdate),g.doUpdate=setTimeout(function(){g.computeScale()&&h(20)},100)}),a.on("markerAdded",this.resizeHandler),a.on("markerCleared",this.resizeHandler),u.listenForChanges!==!1&&a.on("changes",this.changeHandler=function(){h(250)})}s.prototype.computeScale=function(){var a=this.cm,u=(a.getWrapperElement().clientHeight-a.display.barHeight-this.buttonHeight*2)/a.getScrollerElement().scrollHeight;if(u!=this.hScale)return this.hScale=u,!0},s.prototype.update=function(a){this.annotations=a,this.redraw()},s.prototype.redraw=function(a){a!==!1&&this.computeScale();var u=this.cm,h=this.hScale,g=document.createDocumentFragment(),m=this.annotations,I=u.getOption("lineWrapping"),T=I&&u.defaultTextHeight()*1.5,U=null,L=null;function V(B,D){if(U!=B.line){U=B.line,L=u.getLineHandle(B.line);var w=u.getLineHandleVisualStart(L);w!=L&&(U=u.getLineNumber(w),L=w)}if(L.widgets&&L.widgets.length||I&&L.height>T)return u.charCoords(B,"local")[D?"top":"bottom"];var Q=u.heightAtLine(L,"local");return Q+(D?0:L.height)}var y=u.lastLine();if(u.display.barWidth)for(var M=0,F;M<m.length;M++){var S=m[M];if(!(S.to.line>y)){for(var x=F||V(S.from,!0)*h,v=V(S.to,!1)*h;M<m.length-1&&!(m[M+1].to.line>y||(F=V(m[M+1].from,!0)*h,F>v+.9));)S=m[++M],v=V(S.to,!1)*h;if(v!=x){var A=Math.max(v-x,3),R=g.appendChild(document.createElement("div"));R.style.cssText="position: absolute; right: 0px; width: "+Math.max(u.display.barWidth-1,2)+"px; top: "+(x+this.buttonHeight)+"px; height: "+A+"px",R.className=this.options.className,S.id&&R.setAttribute("annotation-id",S.id)}}}this.div.textContent="",this.div.appendChild(g)},s.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("changes",this.changeHandler),this.div.parentNode.removeChild(this.div)}})});var Eg=Se((hg,gg)=>{(function(n){typeof hg=="object"&&typeof gg=="object"?n(Nt(),Tl(),dg()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./searchcursor","../scroll/annotatescrollbar"],n):n(CodeMirror)})(function(n){"use strict";n.defineExtension("showMatchesOnScrollbar",function(h,g,m){return typeof m=="string"&&(m={className:m}),m||(m={}),new s(this,h,g,m)});function s(h,g,m,I){this.cm=h,this.options=I;var T={listenForChanges:!1};for(var U in I)T[U]=I[U];T.className||(T.className="CodeMirror-search-match"),this.annotation=h.annotateScrollbar(T),this.query=g,this.caseFold=m,this.gap={from:h.firstLine(),to:h.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var L=this;h.on("change",this.changeHandler=function(V,y){L.onChange(y)})}var a=1e3;s.prototype.findMatches=function(){if(this.gap){for(var h=0;h<this.matches.length;h++){var g=this.matches[h];if(g.from.line>=this.gap.to)break;g.to.line>=this.gap.from&&this.matches.splice(h--,1)}for(var m=this.cm.getSearchCursor(this.query,n.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),I=this.options&&this.options.maxMatches||a;m.findNext();){var g={from:m.from(),to:m.to()};if(g.from.line>=this.gap.to||(this.matches.splice(h++,0,g),this.matches.length>I))break}this.gap=null}};function u(h,g,m){return h<=g?h:Math.max(g,h+m)}s.prototype.onChange=function(h){var g=h.from.line,m=n.changeEnd(h).line,I=m-h.to.line;if(this.gap?(this.gap.from=Math.min(u(this.gap.from,g,I),h.from.line),this.gap.to=Math.max(u(this.gap.to,g,I),h.from.line)):this.gap={from:h.from.line,to:m+1},I)for(var T=0;T<this.matches.length;T++){var U=this.matches[T],L=u(U.from.line,g,I);L!=U.from.line&&(U.from=n.Pos(L,U.from.ch));var V=u(U.to.line,g,I);V!=U.to.line&&(U.to=n.Pos(V,U.to.ch))}clearTimeout(this.update);var y=this;this.update=setTimeout(function(){y.updateAfterChange()},250)},s.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},s.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}})});var vg=Se((mg,xg)=>{(function(n){typeof mg=="object"&&typeof xg=="object"?n(Nt(),Eg()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./matchesonscrollbar"],n):n(CodeMirror)})(function(n){"use strict";var s={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};function a(y){this.options={};for(var M in s)this.options[M]=(y&&y.hasOwnProperty(M)?y:s)[M];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}n.defineOption("highlightSelectionMatches",!1,function(y,M,F){if(F&&F!=n.Init&&(I(y),clearTimeout(y.state.matchHighlighter.timeout),y.state.matchHighlighter=null,y.off("cursorActivity",u),y.off("focus",h)),M){var S=y.state.matchHighlighter=new a(M);y.hasFocus()?(S.active=!0,T(y)):y.on("focus",h),y.on("cursorActivity",u)}});function u(y){var M=y.state.matchHighlighter;(M.active||y.hasFocus())&&g(y,M)}function h(y){var M=y.state.matchHighlighter;M.active||(M.active=!0,g(y,M))}function g(y,M){clearTimeout(M.timeout),M.timeout=setTimeout(function(){T(y)},M.options.delay)}function m(y,M,F,S){var x=y.state.matchHighlighter;if(y.addOverlay(x.overlay=V(M,F,S)),x.options.annotateScrollbar&&y.showMatchesOnScrollbar){var v=F?new RegExp((/\w/.test(M.charAt(0))?"\\b":"")+M.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+(/\w/.test(M.charAt(M.length-1))?"\\b":"")):M;x.matchesonscroll=y.showMatchesOnScrollbar(v,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function I(y){var M=y.state.matchHighlighter;M.overlay&&(y.removeOverlay(M.overlay),M.overlay=null,M.matchesonscroll&&(M.matchesonscroll.clear(),M.matchesonscroll=null))}function T(y){y.operation(function(){var M=y.state.matchHighlighter;if(I(y),!y.somethingSelected()&&M.options.showToken){for(var F=M.options.showToken===!0?/[\w$]/:M.options.showToken,S=y.getCursor(),x=y.getLine(S.line),v=S.ch,A=v;v&&F.test(x.charAt(v-1));)--v;for(;A<x.length&&F.test(x.charAt(A));)++A;v<A&&m(y,x.slice(v,A),F,M.options.style);return}var R=y.getCursor("from"),B=y.getCursor("to");if(R.line==B.line&&!(M.options.wordsOnly&&!U(y,R,B))){var D=y.getRange(R,B);M.options.trim&&(D=D.replace(/^\s+|\s+$/g,"")),D.length>=M.options.minChars&&m(y,D,!1,M.options.style)}})}function U(y,M,F){var S=y.getRange(M,F);if(S.match(/^\w+$/)!==null){if(M.ch>0){var x={line:M.line,ch:M.ch-1},v=y.getRange(x,M);if(v.match(/\W/)===null)return!1}if(F.ch<y.getLine(M.line).length){var x={line:F.line,ch:F.ch+1},v=y.getRange(F,x);if(v.match(/\W/)===null)return!1}return!0}else return!1}function L(y,M){return(!y.start||!M.test(y.string.charAt(y.start-1)))&&(y.pos==y.string.length||!M.test(y.string.charAt(y.pos)))}function V(y,M,F){return{token:function(S){if(S.match(y)&&(!M||L(S,M)))return F;S.next(),S.skipTo(y.charAt(0))||S.skipToEnd()}}}})});var Tg=Se((Ig,Ng)=>{(function(n){typeof Ig=="object"&&typeof Ng=="object"?n(Nt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){var s=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),a=n.Pos,u={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function h(L){return L&&L.bracketRegex||/[(){}[\]]/}function g(L,V,y){var M=L.getLineHandle(V.line),F=V.ch-1,S=y&&y.afterCursor;S==null&&(S=/(^| )cm-fat-cursor($| )/.test(L.getWrapperElement().className));var x=h(y),v=!S&&F>=0&&x.test(M.text.charAt(F))&&u[M.text.charAt(F)]||x.test(M.text.charAt(F+1))&&u[M.text.charAt(++F)];if(!v)return null;var A=v.charAt(1)==">"?1:-1;if(y&&y.strict&&A>0!=(F==V.ch))return null;var R=L.getTokenTypeAt(a(V.line,F+1)),B=m(L,a(V.line,F+(A>0?1:0)),A,R,y);return B==null?null:{from:a(V.line,F),to:B&&B.pos,match:B&&B.ch==v.charAt(0),forward:A>0}}function m(L,V,y,M,F){for(var S=F&&F.maxScanLineLength||1e4,x=F&&F.maxScanLines||1e3,v=[],A=h(F),R=y>0?Math.min(V.line+x,L.lastLine()+1):Math.max(L.firstLine()-1,V.line-x),B=V.line;B!=R;B+=y){var D=L.getLine(B);if(D){var w=y>0?0:D.length-1,Q=y>0?D.length:-1;if(!(D.length>S))for(B==V.line&&(w=V.ch-(y<0?1:0));w!=Q;w+=y){var de=D.charAt(w);if(A.test(de)&&(M===void 0||(L.getTokenTypeAt(a(B,w+1))||"")==(M||""))){var te=u[de];if(te&&te.charAt(1)==">"==y>0)v.push(de);else if(v.length)v.pop();else return{pos:a(B,w),ch:de}}}}}return B-y==(y>0?L.lastLine():L.firstLine())?!1:null}function I(L,V,y){for(var M=L.state.matchBrackets.maxHighlightLineLength||1e3,F=y&&y.highlightNonMatching,S=[],x=L.listSelections(),v=0;v<x.length;v++){var A=x[v].empty()&&g(L,x[v].head,y);if(A&&(A.match||F!==!1)&&L.getLine(A.from.line).length<=M){var R=A.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";S.push(L.markText(A.from,a(A.from.line,A.from.ch+1),{className:R})),A.to&&L.getLine(A.to.line).length<=M&&S.push(L.markText(A.to,a(A.to.line,A.to.ch+1),{className:R}))}}if(S.length){s&&L.state.focused&&L.focus();var B=function(){L.operation(function(){for(var D=0;D<S.length;D++)S[D].clear()})};if(V)setTimeout(B,800);else return B}}function T(L){L.operation(function(){L.state.matchBrackets.currentlyHighlighted&&(L.state.matchBrackets.currentlyHighlighted(),L.state.matchBrackets.currentlyHighlighted=null),L.state.matchBrackets.currentlyHighlighted=I(L,!1,L.state.matchBrackets)})}function U(L){L.state.matchBrackets&&L.state.matchBrackets.currentlyHighlighted&&(L.state.matchBrackets.currentlyHighlighted(),L.state.matchBrackets.currentlyHighlighted=null)}n.defineOption("matchBrackets",!1,function(L,V,y){y&&y!=n.Init&&(L.off("cursorActivity",T),L.off("focus",T),L.off("blur",U),U(L)),V&&(L.state.matchBrackets=typeof V=="object"?V:{},L.on("cursorActivity",T),L.on("focus",T),L.on("blur",U))}),n.defineExtension("matchBrackets",function(){I(this,!0)}),n.defineExtension("findMatchingBracket",function(L,V,y){return(y||typeof V=="boolean")&&(y?(y.strict=V,V=y):V=V?{strict:!0}:null),g(this,L,V)}),n.defineExtension("scanForBracket",function(L,V,y,M){return m(this,L,V,y,M)})})});var Sg=Se((Cg,Ag)=>{(function(n){typeof Cg=="object"&&typeof Ag=="object"?n(Nt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){"use strict";n.runMode=function(s,a,u,h){var g=n.getMode(n.defaults,a),m=h&&h.tabSize||n.defaults.tabSize;if(u.appendChild){var I=/MSIE \d/.test(navigator.userAgent),T=I&&(document.documentMode==null||document.documentMode<9),U=u,L=0;U.textContent="",u=function(v,A){if(v==`
|
|
37
|
-
`){
|
|
38
|
-
`);var S=new n.StringStream(V[M],null,{lookAhead:function(v){return V[M+v]},baseToken:function(){}});for(!S.string&&g.blankLine&&g.blankLine(y);!S.eol();){var x=g.token(S,y);u(S.current(),x,M,S.start,y,g),S.start=S.pos}}}})});var
|
|
39
|
-
`,{line:0,ch:0}),n.collapsePrefixes(!1)}function Gp(n,s){var a=function(h){return h.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")};for(var u in s)n.setValue(n.getValue().replace(new RegExp("PREFIX\\s*"+u+":\\s*"+a("<"+s[u]+">")+"\\s*","ig"),""));n.collapsePrefixes(!1)}function Fp(n){return n.getTokenAt({line:n.getDoc().lastLine(),ch:n.getDoc().getLine(n.getDoc().lastLine()).length},!0).state.prefixes}var{entries:kp,setPrototypeOf:Bp,isFrozen:Gm,getPrototypeOf:Fm,getOwnPropertyDescriptor:Bm}=Object,{freeze:Gt,seal:$t,create:ka}=Object,{apply:Za,construct:Ha}=typeof Reflect<"u"&&Reflect;Gt||(Gt=function(s){return s});$t||($t=function(s){return s});Za||(Za=function(s,a){for(var u=arguments.length,h=new Array(u>2?u-2:0),g=2;g<u;g++)h[g-2]=arguments[g];return s.apply(a,h)});Ha||(Ha=function(s){for(var a=arguments.length,u=new Array(a>1?a-1:0),h=1;h<a;h++)u[h-1]=arguments[h];return new s(...u)});var Ko=Ft(Array.prototype.forEach),Dm=Ft(Array.prototype.lastIndexOf),Dp=Ft(Array.prototype.pop),jn=Ft(Array.prototype.push),Mm=Ft(Array.prototype.splice),es=Ft(String.prototype.toLowerCase),Ma=Ft(String.prototype.toString),Pa=Ft(String.prototype.match),zn=Ft(String.prototype.replace),Pm=Ft(String.prototype.indexOf),Vm=Ft(String.prototype.trim),ar=Ft(Object.prototype.hasOwnProperty),Ut=Ft(RegExp.prototype.test),qn=wm(TypeError);function Ft(n){return function(s){s instanceof RegExp&&(s.lastIndex=0);for(var a=arguments.length,u=new Array(a>1?a-1:0),h=1;h<a;h++)u[h-1]=arguments[h];return Za(n,s,u)}}function wm(n){return function(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];return Ha(n,a)}}function xe(n,s){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:es;Bp&&Bp(n,null);let u=s.length;for(;u--;){let h=s[u];if(typeof h=="string"){let g=a(h);g!==h&&(Gm(s)||(s[u]=g),h=g)}n[h]=!0}return n}function _m(n){for(let s=0;s<n.length;s++)ar(n,s)||(n[s]=null);return n}function yr(n){let s=ka(null);for(let[a,u]of kp(n))ar(n,a)&&(Array.isArray(u)?s[a]=_m(u):u&&typeof u=="object"&&u.constructor===Object?s[a]=yr(u):s[a]=u);return s}function Kn(n,s){for(;n!==null;){let u=Bm(n,s);if(u){if(u.get)return Ft(u.get);if(typeof u.value=="function")return Ft(u.value)}n=Fm(n)}function a(){return null}return a}var Mp=Gt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Va=Gt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),wa=Gt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Wm=Gt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),_a=Gt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),km=Gt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Pp=Gt(["#text"]),Vp=Gt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Wa=Gt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),wp=Gt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),$o=Gt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Zm=$t(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Hm=$t(/<%[\w\W]*|[\w\W]*%>/gm),Qm=$t(/\$\{[\w\W]*/gm),Ym=$t(/^data-[\-\w.\u00B7-\uFFFF]+$/),Xm=$t(/^aria-[\-\w]+$/),Zp=$t(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Jm=$t(/^(?:\w+script|data):/i),jm=$t(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Hp=$t(/^html$/i),zm=$t(/^[a-z][.\w]*(-[.\w]+)+$/i),_p=Object.freeze({__proto__:null,ARIA_ATTR:Xm,ATTR_WHITESPACE:jm,CUSTOM_ELEMENT:zm,DATA_ATTR:Ym,DOCTYPE_NAME:Hp,ERB_EXPR:Hm,IS_ALLOWED_URI:Zp,IS_SCRIPT_OR_DATA:Jm,MUSTACHE_EXPR:Zm,TMPLIT_EXPR:Qm}),$n={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},qm=function(){return typeof window>"u"?null:window},Km=function(s,a){if(typeof s!="object"||typeof s.createPolicy!="function")return null;let u=null,h="data-tt-policy-suffix";a&&a.hasAttribute(h)&&(u=a.getAttribute(h));let g="dompurify"+(u?"#"+u:"");try{return s.createPolicy(g,{createHTML(m){return m},createScriptURL(m){return m}})}catch{return console.warn("TrustedTypes policy "+g+" could not be created."),null}},Wp=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Qp(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qm(),s=oe=>Qp(oe);if(s.version="3.3.0",s.removed=[],!n||!n.document||n.document.nodeType!==$n.document||!n.Element)return s.isSupported=!1,s;let{document:a}=n,u=a,h=u.currentScript,{DocumentFragment:g,HTMLTemplateElement:m,Node:I,Element:T,NodeFilter:U,NamedNodeMap:L=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:V,DOMParser:y,trustedTypes:M}=n,F=T.prototype,S=Kn(F,"cloneNode"),x=Kn(F,"remove"),v=Kn(F,"nextSibling"),A=Kn(F,"childNodes"),R=Kn(F,"parentNode");if(typeof m=="function"){let oe=a.createElement("template");oe.content&&oe.content.ownerDocument&&(a=oe.content.ownerDocument)}let B,D="",{implementation:w,createNodeIterator:Q,createDocumentFragment:de,getElementsByTagName:te}=a,{importNode:ue}=u,le=Wp();s.isSupported=typeof kp=="function"&&typeof R=="function"&&w&&w.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:me,ERB_EXPR:Y,TMPLIT_EXPR:Oe,DATA_ATTR:Be,ARIA_ATTR:et,IS_SCRIPT_OR_DATA:je,ATTR_WHITESPACE:Le,CUSTOM_ELEMENT:Tt}=_p,{IS_ALLOWED_URI:Ct}=_p,Ce=null,At=xe({},[...Mp,...Va,...wa,..._a,...Pp]),Ie=null,Ht=xe({},[...Vp,...Wa,...wp,...$o]),he=Object.seal(ka(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ze=null,De=null,tt=Object.seal(ka(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Ge=!0,Jt=!0,re=!1,k=!0,Ze=!1,Te=!0,ve=!1,We=!1,jt=!1,$=!1,Qt=!1,dt=!1,Pt=!0,Gr=!1,ti="user-content-",tr=!0,ie=!1,He={},zt=null,qt=xe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Kt=null,Fr=xe({},["audio","video","img","source","image","track"]),vn=null,Br=xe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pr="http://www.w3.org/1998/Math/MathML",Ci="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",vr=rt,se=!1,ri=null,St=xe({},[pr,Ci,rt],Ma),Fe=xe({},["mi","mo","mn","ms","mtext"]),Ve=xe({},["annotation-xml"]),fo=xe({},["title","style","font","a","script"]),pt=null,Dr=["application/xhtml+xml","text/html"],ht="text/html",Ye=null,cr=null,ii=a.createElement("form"),Ai=function(b){return b instanceof RegExp||b instanceof Function},Si=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(cr&&cr===b)){if((!b||typeof b!="object")&&(b={}),b=yr(b),pt=Dr.indexOf(b.PARSER_MEDIA_TYPE)===-1?ht:b.PARSER_MEDIA_TYPE,Ye=pt==="application/xhtml+xml"?Ma:es,Ce=ar(b,"ALLOWED_TAGS")?xe({},b.ALLOWED_TAGS,Ye):At,Ie=ar(b,"ALLOWED_ATTR")?xe({},b.ALLOWED_ATTR,Ye):Ht,ri=ar(b,"ALLOWED_NAMESPACES")?xe({},b.ALLOWED_NAMESPACES,Ma):St,vn=ar(b,"ADD_URI_SAFE_ATTR")?xe(yr(Br),b.ADD_URI_SAFE_ATTR,Ye):Br,Kt=ar(b,"ADD_DATA_URI_TAGS")?xe(yr(Fr),b.ADD_DATA_URI_TAGS,Ye):Fr,zt=ar(b,"FORBID_CONTENTS")?xe({},b.FORBID_CONTENTS,Ye):qt,ze=ar(b,"FORBID_TAGS")?xe({},b.FORBID_TAGS,Ye):yr({}),De=ar(b,"FORBID_ATTR")?xe({},b.FORBID_ATTR,Ye):yr({}),He=ar(b,"USE_PROFILES")?b.USE_PROFILES:!1,Ge=b.ALLOW_ARIA_ATTR!==!1,Jt=b.ALLOW_DATA_ATTR!==!1,re=b.ALLOW_UNKNOWN_PROTOCOLS||!1,k=b.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ze=b.SAFE_FOR_TEMPLATES||!1,Te=b.SAFE_FOR_XML!==!1,ve=b.WHOLE_DOCUMENT||!1,$=b.RETURN_DOM||!1,Qt=b.RETURN_DOM_FRAGMENT||!1,dt=b.RETURN_TRUSTED_TYPE||!1,jt=b.FORCE_BODY||!1,Pt=b.SANITIZE_DOM!==!1,Gr=b.SANITIZE_NAMED_PROPS||!1,tr=b.KEEP_CONTENT!==!1,ie=b.IN_PLACE||!1,Ct=b.ALLOWED_URI_REGEXP||Zp,vr=b.NAMESPACE||rt,Fe=b.MATHML_TEXT_INTEGRATION_POINTS||Fe,Ve=b.HTML_INTEGRATION_POINTS||Ve,he=b.CUSTOM_ELEMENT_HANDLING||{},b.CUSTOM_ELEMENT_HANDLING&&Ai(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(he.tagNameCheck=b.CUSTOM_ELEMENT_HANDLING.tagNameCheck),b.CUSTOM_ELEMENT_HANDLING&&Ai(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(he.attributeNameCheck=b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),b.CUSTOM_ELEMENT_HANDLING&&typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(he.allowCustomizedBuiltInElements=b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ze&&(Jt=!1),Qt&&($=!0),He&&(Ce=xe({},Pp),Ie=[],He.html===!0&&(xe(Ce,Mp),xe(Ie,Vp)),He.svg===!0&&(xe(Ce,Va),xe(Ie,Wa),xe(Ie,$o)),He.svgFilters===!0&&(xe(Ce,wa),xe(Ie,Wa),xe(Ie,$o)),He.mathMl===!0&&(xe(Ce,_a),xe(Ie,wp),xe(Ie,$o))),b.ADD_TAGS&&(typeof b.ADD_TAGS=="function"?tt.tagCheck=b.ADD_TAGS:(Ce===At&&(Ce=yr(Ce)),xe(Ce,b.ADD_TAGS,Ye))),b.ADD_ATTR&&(typeof b.ADD_ATTR=="function"?tt.attributeCheck=b.ADD_ATTR:(Ie===Ht&&(Ie=yr(Ie)),xe(Ie,b.ADD_ATTR,Ye))),b.ADD_URI_SAFE_ATTR&&xe(vn,b.ADD_URI_SAFE_ATTR,Ye),b.FORBID_CONTENTS&&(zt===qt&&(zt=yr(zt)),xe(zt,b.FORBID_CONTENTS,Ye)),tr&&(Ce["#text"]=!0),ve&&xe(Ce,["html","head","body"]),Ce.table&&(xe(Ce,["tbody"]),delete ze.tbody),b.TRUSTED_TYPES_POLICY){if(typeof b.TRUSTED_TYPES_POLICY.createHTML!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof b.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');B=b.TRUSTED_TYPES_POLICY,D=B.createHTML("")}else B===void 0&&(B=Km(M,h)),B!==null&&typeof D=="string"&&(D=B.createHTML(""));Gt&&Gt(b),cr=b}},ho=xe({},[...Va,...wa,...Wm]),Li=xe({},[..._a,...km]),Ms=function(b){let H=R(b);(!H||!H.tagName)&&(H={namespaceURI:vr,tagName:"template"});let ee=es(b.tagName),Re=es(H.tagName);return ri[b.namespaceURI]?b.namespaceURI===Ci?H.namespaceURI===rt?ee==="svg":H.namespaceURI===pr?ee==="svg"&&(Re==="annotation-xml"||Fe[Re]):!!ho[ee]:b.namespaceURI===pr?H.namespaceURI===rt?ee==="math":H.namespaceURI===Ci?ee==="math"&&Ve[Re]:!!Li[ee]:b.namespaceURI===rt?H.namespaceURI===Ci&&!Ve[Re]||H.namespaceURI===pr&&!Fe[Re]?!1:!Li[ee]&&(fo[ee]||!ho[ee]):!!(pt==="application/xhtml+xml"&&ri[b.namespaceURI]):!1},Vt=function(b){jn(s.removed,{element:b});try{R(b).removeChild(b)}catch{x(b)}},Ir=function(b,H){try{jn(s.removed,{attribute:H.getAttributeNode(b),from:H})}catch{jn(s.removed,{attribute:null,from:H})}if(H.removeAttribute(b),b==="is")if($||Qt)try{Vt(H)}catch{}else try{H.setAttribute(b,"")}catch{}},Ri=function(b){let H=null,ee=null;if(jt)b="<remove></remove>"+b;else{let ge=Pa(b,/^[\r\n\t ]+/);ee=ge&&ge[0]}pt==="application/xhtml+xml"&&vr===rt&&(b='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+b+"</body></html>");let Re=B?B.createHTML(b):b;if(vr===rt)try{H=new y().parseFromString(Re,pt)}catch{}if(!H||!H.documentElement){H=w.createDocument(vr,"template",null);try{H.documentElement.innerHTML=se?D:Re}catch{}}let it=H.body||H.documentElement;return b&&ee&&it.insertBefore(a.createTextNode(ee),it.childNodes[0]||null),vr===rt?te.call(H,ve?"html":"body")[0]:ve?H.documentElement:it},go=function(b){return Q.call(b.ownerDocument||b,b,U.SHOW_ELEMENT|U.SHOW_COMMENT|U.SHOW_TEXT|U.SHOW_PROCESSING_INSTRUCTION|U.SHOW_CDATA_SECTION,null)},In=function(b){return b instanceof V&&(typeof b.nodeName!="string"||typeof b.textContent!="string"||typeof b.removeChild!="function"||!(b.attributes instanceof L)||typeof b.removeAttribute!="function"||typeof b.setAttribute!="function"||typeof b.namespaceURI!="string"||typeof b.insertBefore!="function"||typeof b.hasChildNodes!="function")},yi=function(b){return typeof I=="function"&&b instanceof I};function rr(oe,b,H){Ko(oe,ee=>{ee.call(s,b,H,cr)})}let bi=function(b){let H=null;if(rr(le.beforeSanitizeElements,b,null),In(b))return Vt(b),!0;let ee=Ye(b.nodeName);if(rr(le.uponSanitizeElement,b,{tagName:ee,allowedTags:Ce}),Te&&b.hasChildNodes()&&!yi(b.firstElementChild)&&Ut(/<[/\w!]/g,b.innerHTML)&&Ut(/<[/\w!]/g,b.textContent)||b.nodeType===$n.progressingInstruction||Te&&b.nodeType===$n.comment&&Ut(/<[/\w]/g,b.data))return Vt(b),!0;if(!(tt.tagCheck instanceof Function&&tt.tagCheck(ee))&&(!Ce[ee]||ze[ee])){if(!ze[ee]&&Eo(ee)&&(he.tagNameCheck instanceof RegExp&&Ut(he.tagNameCheck,ee)||he.tagNameCheck instanceof Function&&he.tagNameCheck(ee)))return!1;if(tr&&!zt[ee]){let Re=R(b)||b.parentNode,it=A(b)||b.childNodes;if(it&&Re){let ge=it.length;for(let q=ge-1;q>=0;--q){let gt=S(it[q],!0);gt.__removalCount=(b.__removalCount||0)+1,Re.insertBefore(gt,v(b))}}}return Vt(b),!0}return b instanceof T&&!Ms(b)||(ee==="noscript"||ee==="noembed"||ee==="noframes")&&Ut(/<\/no(script|embed|frames)/i,b.innerHTML)?(Vt(b),!0):(Ze&&b.nodeType===$n.text&&(H=b.textContent,Ko([me,Y,Oe],Re=>{H=zn(H,Re," ")}),b.textContent!==H&&(jn(s.removed,{element:b.cloneNode()}),b.textContent=H)),rr(le.afterSanitizeElements,b,null),!1)},Nr=function(b,H,ee){if(Pt&&(H==="id"||H==="name")&&(ee in a||ee in ii))return!1;if(!(Jt&&!De[H]&&Ut(Be,H))){if(!(Ge&&Ut(et,H))){if(!(tt.attributeCheck instanceof Function&&tt.attributeCheck(H,b))){if(!Ie[H]||De[H]){if(!(Eo(b)&&(he.tagNameCheck instanceof RegExp&&Ut(he.tagNameCheck,b)||he.tagNameCheck instanceof Function&&he.tagNameCheck(b))&&(he.attributeNameCheck instanceof RegExp&&Ut(he.attributeNameCheck,H)||he.attributeNameCheck instanceof Function&&he.attributeNameCheck(H,b))||H==="is"&&he.allowCustomizedBuiltInElements&&(he.tagNameCheck instanceof RegExp&&Ut(he.tagNameCheck,ee)||he.tagNameCheck instanceof Function&&he.tagNameCheck(ee))))return!1}else if(!vn[H]){if(!Ut(Ct,zn(ee,Le,""))){if(!((H==="src"||H==="xlink:href"||H==="href")&&b!=="script"&&Pm(ee,"data:")===0&&Kt[b])){if(!(re&&!Ut(je,zn(ee,Le,"")))){if(ee)return!1}}}}}}}return!0},Eo=function(b){return b!=="annotation-xml"&&Pa(b,Tt)},mo=function(b){rr(le.beforeSanitizeAttributes,b,null);let{attributes:H}=b;if(!H||In(b))return;let ee={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ie,forceKeepAttr:void 0},Re=H.length;for(;Re--;){let it=H[Re],{name:ge,namespaceURI:q,value:gt}=it,fr=Ye(ge),wt=gt,pe=ge==="value"?wt:Vm(wt);if(ee.attrName=fr,ee.attrValue=pe,ee.keepAttr=!0,ee.forceKeepAttr=void 0,rr(le.uponSanitizeAttribute,b,ee),pe=ee.attrValue,Gr&&(fr==="id"||fr==="name")&&(Ir(ge,b),pe=ti+pe),Te&&Ut(/((--!?|])>)|<\/(style|title|textarea)/i,pe)){Ir(ge,b);continue}if(fr==="attributename"&&Pa(pe,"href")){Ir(ge,b);continue}if(ee.forceKeepAttr)continue;if(!ee.keepAttr){Ir(ge,b);continue}if(!k&&Ut(/\/>/i,pe)){Ir(ge,b);continue}Ze&&Ko([me,Y,Oe],Mr=>{pe=zn(pe,Mr," ")});let dr=Ye(b.nodeName);if(!Nr(dr,fr,pe)){Ir(ge,b);continue}if(B&&typeof M=="object"&&typeof M.getAttributeType=="function"&&!q)switch(M.getAttributeType(dr,fr)){case"TrustedHTML":{pe=B.createHTML(pe);break}case"TrustedScriptURL":{pe=B.createScriptURL(pe);break}}if(pe!==wt)try{q?b.setAttributeNS(q,ge,pe):b.setAttribute(ge,pe),In(b)?Vt(b):Dp(s.removed)}catch{Ir(ge,b)}}rr(le.afterSanitizeAttributes,b,null)},Oi=function oe(b){let H=null,ee=go(b);for(rr(le.beforeSanitizeShadowDOM,b,null);H=ee.nextNode();)rr(le.uponSanitizeShadowNode,H,null),bi(H),mo(H),H.content instanceof g&&oe(H.content);rr(le.afterSanitizeShadowDOM,b,null)};return s.sanitize=function(oe){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},H=null,ee=null,Re=null,it=null;if(se=!oe,se&&(oe="<!-->"),typeof oe!="string"&&!yi(oe))if(typeof oe.toString=="function"){if(oe=oe.toString(),typeof oe!="string")throw qn("dirty is not a string, aborting")}else throw qn("toString is not a function");if(!s.isSupported)return oe;if(We||Si(b),s.removed=[],typeof oe=="string"&&(ie=!1),ie){if(oe.nodeName){let gt=Ye(oe.nodeName);if(!Ce[gt]||ze[gt])throw qn("root node is forbidden and cannot be sanitized in-place")}}else if(oe instanceof I)H=Ri("<!---->"),ee=H.ownerDocument.importNode(oe,!0),ee.nodeType===$n.element&&ee.nodeName==="BODY"||ee.nodeName==="HTML"?H=ee:H.appendChild(ee);else{if(!$&&!Ze&&!ve&&oe.indexOf("<")===-1)return B&&dt?B.createHTML(oe):oe;if(H=Ri(oe),!H)return $?null:dt?D:""}H&&jt&&Vt(H.firstChild);let ge=go(ie?oe:H);for(;Re=ge.nextNode();)bi(Re),mo(Re),Re.content instanceof g&&Oi(Re.content);if(ie)return oe;if($){if(Qt)for(it=de.call(H.ownerDocument);H.firstChild;)it.appendChild(H.firstChild);else it=H;return(Ie.shadowroot||Ie.shadowrootmode)&&(it=ue.call(u,it,!0)),it}let q=ve?H.outerHTML:H.innerHTML;return ve&&Ce["!doctype"]&&H.ownerDocument&&H.ownerDocument.doctype&&H.ownerDocument.doctype.name&&Ut(Hp,H.ownerDocument.doctype.name)&&(q="<!DOCTYPE "+H.ownerDocument.doctype.name+`>
|
|
40
|
-
`+q),Ze&&Ko([me,Y,Oe],gt=>{q=zn(q,gt," ")}),B&&dt?B.createHTML(q):q},s.setConfig=function(){let oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Si(oe),We=!0},s.clearConfig=function(){cr=null,We=!1},s.isValidAttribute=function(oe,b,H){cr||Si({});let ee=Ye(oe),Re=Ye(b);return Nr(ee,Re,H)},s.addHook=function(oe,b){typeof b=="function"&&jn(le[oe],b)},s.removeHook=function(oe,b){if(b!==void 0){let H=Dm(le[oe],b);return H===-1?void 0:Mm(le[oe],H,1)[0]}return Dp(le[oe])},s.removeHooks=function(oe){le[oe]=[]},s.removeAllHooks=function(){le=Wp()},s}var Yp=Qp();var lr=ft(Cc()),mi=class{constructor(s){this.namespace=s}set(s,a,u,h){if(lr.default.enabled&&(this.removeExpiredKeys(),s&&a!==void 0)){a.documentElement&&(a=new XMLSerializer().serializeToString(a.documentElement));try{lr.default.set(s,{namespace:this.namespace,val:a,exp:u,time:new Date().getTime()/1e3})}catch(g){if(g instanceof Error){let m=g;if(m.quotaExceeded=rv(g),m.quotaExceeded&&h)h(g);else throw m}throw g}}}remove(s){lr.default.enabled&&s&&lr.default.remove(s)}removeExpiredKeys(){lr.default.enabled&&lr.default.each((s,a)=>{s&&s.exp&&new Date().getTime()/1e3-s.time>s.exp&&this.remove(a)})}removeAll(){lr.default.enabled}removeNamespace(){lr.default.each((s,a)=>{s.namespace&&s.namespace===this.namespace&&this.remove(a)})}get(s){if(lr.default.enabled&&s)if(this.removeExpiredKeys(),s){var a=lr.default.get(s);return a?a.val:void 0}else return}};function rv(n){var s=!1;if(n)if(n.code)switch(n.code){case 22:s=!0;break;case 1014:n.name==="NS_ERROR_DOM_QUOTA_REACHED"&&(s=!0);break}else n.number===-2147024882&&(s=!0);return s}var{sanitize:gS}=Yp;function xi(n){if(n&&n.trim().indexOf("<svg")==0){var s=new DOMParser,a=s.parseFromString(n,"text/xml"),u=a.documentElement;u.setAttribute("aria-hidden","true");var h=document.createElement("div");return h.className="svgImg",h.appendChild(u),h}throw new Error("No svg string given. Cannot draw")}function Ac(n,s){if(n)return n.classList?n.classList.contains(s):!!n.className.match(new RegExp("(\\s|^)"+s+"(\\s|$)"))}function Bt(n,...s){if(n)for(let a of s)n.classList?n.classList.add(a):Ac(n,a)||(n.className+=" "+a)}function no(n,s){if(n){if(n.classList)n.classList.remove(s);else if(Ac(n,s)){var a=new RegExp("(\\s|^)"+s+"(\\s|$)");n.className=n.className.replace(a," ")}}}var Ds=ft(ts());function rs(n,s,a){var u;s.onmouseover=function(){u||(u=document.createElement("div"),u.className="yasqe_tooltip"),u.style.display="block",u.innerHTML=a,s.appendChild(u)},s.onmouseout=function(){u&&(u.style.display="none"),u.innerHTML=a}}var gl={};Tp(gl,{executeQuery:()=>dl,getAcceptHeader:()=>Nh,getAjaxConfig:()=>fl,getAsCurlString:()=>hl,getUrlArguments:()=>Ih});var fv=typeof global=="object"&&global&&global.Object===Object&&global,is=fv;var dv=typeof self=="object"&&self&&self.Object===Object&&self,hv=is||dv||Function("return this")(),Ke=hv;var gv=Ke.Symbol,Dt=gv;var Zc=Object.prototype,Ev=Zc.hasOwnProperty,mv=Zc.toString,oo=Dt?Dt.toStringTag:void 0;function xv(n){var s=Ev.call(n,oo),a=n[oo];try{n[oo]=void 0;var u=!0}catch{}var h=mv.call(n);return u&&(s?n[oo]=a:delete n[oo]),h}var Hc=xv;var vv=Object.prototype,Iv=vv.toString;function Nv(n){return Iv.call(n)}var Qc=Nv;var Tv="[object Null]",Cv="[object Undefined]",Yc=Dt?Dt.toStringTag:void 0;function Av(n){return n==null?n===void 0?Cv:Tv:Yc&&Yc in Object(n)?Hc(n):Qc(n)}var Xt=Av;function Sv(n){return n!=null&&typeof n=="object"}var Mt=Sv;var Lv="[object Symbol]";function Rv(n){return typeof n=="symbol"||Mt(n)&&Xt(n)==Lv}var ur=Rv;function yv(n,s){for(var a=-1,u=n==null?0:n.length,h=Array(u);++a<u;)h[a]=s(n[a],a,n);return h}var en=yv;var bv=Array.isArray,_e=bv;var Ov=1/0,Xc=Dt?Dt.prototype:void 0,Jc=Xc?Xc.toString:void 0;function jc(n){if(typeof n=="string")return n;if(_e(n))return en(n,jc)+"";if(ur(n))return Jc?Jc.call(n):"";var s=n+"";return s=="0"&&1/n==-Ov?"-0":s}var zc=jc;var Uv=/\s/;function Gv(n){for(var s=n.length;s--&&Uv.test(n.charAt(s)););return s}var qc=Gv;var Fv=/^\s+/;function Bv(n){return n&&n.slice(0,qc(n)+1).replace(Fv,"")}var Kc=Bv;function Dv(n){var s=typeof n;return n!=null&&(s=="object"||s=="function")}var ut=Dv;var $c=NaN,Mv=/^[-+]0x[0-9a-f]+$/i,Pv=/^0b[01]+$/i,Vv=/^0o[0-7]+$/i,wv=parseInt;function _v(n){if(typeof n=="number")return n;if(ur(n))return $c;if(ut(n)){var s=typeof n.valueOf=="function"?n.valueOf():n;n=ut(s)?s+"":s}if(typeof n!="string")return n===0?n:+n;n=Kc(n);var a=Pv.test(n);return a||Vv.test(n)?wv(n.slice(2),a?2:8):Mv.test(n)?$c:+n}var ef=_v;var tf=1/0,Wv=17976931348623157e292;function kv(n){if(!n)return n===0?n:0;if(n=ef(n),n===tf||n===-tf){var s=n<0?-1:1;return s*Wv}return n===n?n:0}var rf=kv;function Zv(n){var s=rf(n),a=s%1;return s===s?a?s-a:s:0}var nf=Zv;function Hv(n){return n}var Xr=Hv;var Qv="[object AsyncFunction]",Yv="[object Function]",Xv="[object GeneratorFunction]",Jv="[object Proxy]";function jv(n){if(!ut(n))return!1;var s=Xt(n);return s==Yv||s==Xv||s==Qv||s==Jv}var $e=jv;var zv=Ke["__core-js_shared__"],ns=zv;var of=function(){var n=/[^.]+$/.exec(ns&&ns.keys&&ns.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function qv(n){return!!of&&of in n}var sf=qv;var Kv=Function.prototype,$v=Kv.toString;function eI(n){if(n!=null){try{return $v.call(n)}catch{}try{return n+""}catch{}}return""}var br=eI;var tI=/[\\^$.*+?()[\]{}|]/g,rI=/^\[object .+?Constructor\]$/,iI=Function.prototype,nI=Object.prototype,oI=iI.toString,sI=nI.hasOwnProperty,aI=RegExp("^"+oI.call(sI).replace(tI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function lI(n){if(!ut(n)||sf(n))return!1;var s=$e(n)?aI:rI;return s.test(br(n))}var af=lI;function uI(n,s){return n?.[s]}var lf=uI;function pI(n,s){var a=lf(n,s);return af(a)?a:void 0}var Zt=pI;var cI=Zt(Ke,"WeakMap"),os=cI;var uf=Object.create,fI=function(){function n(){}return function(s){if(!ut(s))return{};if(uf)return uf(s);n.prototype=s;var a=new n;return n.prototype=void 0,a}}(),pf=fI;function dI(n,s,a){switch(a.length){case 0:return n.call(s);case 1:return n.call(s,a[0]);case 2:return n.call(s,a[0],a[1]);case 3:return n.call(s,a[0],a[1],a[2])}return n.apply(s,a)}var cf=dI;function hI(n,s){var a=-1,u=n.length;for(s||(s=Array(u));++a<u;)s[a]=n[a];return s}var ff=hI;var gI=800,EI=16,mI=Date.now;function xI(n){var s=0,a=0;return function(){var u=mI(),h=EI-(u-a);if(a=u,h>0){if(++s>=gI)return arguments[0]}else s=0;return n.apply(void 0,arguments)}}var df=xI;function vI(n){return function(){return n}}var hf=vI;var II=function(){try{var n=Zt(Object,"defineProperty");return n({},"",{}),n}catch{}}(),tn=II;var NI=tn?function(n,s){return tn(n,"toString",{configurable:!0,enumerable:!1,value:hf(s),writable:!0})}:Xr,gf=NI;var TI=df(gf),Ef=TI;var CI=9007199254740991,AI=/^(?:0|[1-9]\d*)$/;function SI(n,s){var a=typeof n;return s=s??CI,!!s&&(a=="number"||a!="symbol"&&AI.test(n))&&n>-1&&n%1==0&&n<s}var rn=SI;function LI(n,s,a){s=="__proto__"&&tn?tn(n,s,{configurable:!0,enumerable:!0,value:a,writable:!0}):n[s]=a}var nn=LI;function RI(n,s){return n===s||n!==n&&s!==s}var xr=RI;var yI=Object.prototype,bI=yI.hasOwnProperty;function OI(n,s,a){var u=n[s];(!(bI.call(n,s)&&xr(u,a))||a===void 0&&!(s in n))&&nn(n,s,a)}var mf=OI;function UI(n,s,a,u){var h=!a;a||(a={});for(var g=-1,m=s.length;++g<m;){var I=s[g],T=u?u(a[I],n[I],I,a,n):void 0;T===void 0&&(T=n[I]),h?nn(a,I,T):mf(a,I,T)}return a}var xf=UI;var vf=Math.max;function GI(n,s,a){return s=vf(s===void 0?n.length-1:s,0),function(){for(var u=arguments,h=-1,g=vf(u.length-s,0),m=Array(g);++h<g;)m[h]=u[s+h];h=-1;for(var I=Array(s+1);++h<s;)I[h]=u[h];return I[s]=a(m),cf(n,this,I)}}var If=GI;function FI(n,s){return Ef(If(n,s,Xr),n+"")}var ss=FI;var BI=9007199254740991;function DI(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=BI}var on=DI;function MI(n){return n!=null&&on(n.length)&&!$e(n)}var er=MI;function PI(n,s,a){if(!ut(a))return!1;var u=typeof s;return(u=="number"?er(a)&&rn(s,a.length):u=="string"&&s in a)?xr(a[s],n):!1}var so=PI;function VI(n){return ss(function(s,a){var u=-1,h=a.length,g=h>1?a[h-1]:void 0,m=h>2?a[2]:void 0;for(g=n.length>3&&typeof g=="function"?(h--,g):void 0,m&&so(a[0],a[1],m)&&(g=h<3?void 0:g,h=1),s=Object(s);++u<h;){var I=a[u];I&&n(s,I,u,g)}return s})}var Nf=VI;var wI=Object.prototype;function _I(n){var s=n&&n.constructor,a=typeof s=="function"&&s.prototype||wI;return n===a}var sn=_I;function WI(n,s){for(var a=-1,u=Array(n);++a<n;)u[a]=s(a);return u}var Tf=WI;var kI="[object Arguments]";function ZI(n){return Mt(n)&&Xt(n)==kI}var tl=ZI;var Cf=Object.prototype,HI=Cf.hasOwnProperty,QI=Cf.propertyIsEnumerable,YI=tl(function(){return arguments}())?tl:function(n){return Mt(n)&&HI.call(n,"callee")&&!QI.call(n,"callee")},Or=YI;function XI(){return!1}var Af=XI;var Rf=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Sf=Rf&&typeof module=="object"&&module&&!module.nodeType&&module,JI=Sf&&Sf.exports===Rf,Lf=JI?Ke.Buffer:void 0,jI=Lf?Lf.isBuffer:void 0,zI=jI||Af,Ii=zI;var qI="[object Arguments]",KI="[object Array]",$I="[object Boolean]",eN="[object Date]",tN="[object Error]",rN="[object Function]",iN="[object Map]",nN="[object Number]",oN="[object Object]",sN="[object RegExp]",aN="[object Set]",lN="[object String]",uN="[object WeakMap]",pN="[object ArrayBuffer]",cN="[object DataView]",fN="[object Float32Array]",dN="[object Float64Array]",hN="[object Int8Array]",gN="[object Int16Array]",EN="[object Int32Array]",mN="[object Uint8Array]",xN="[object Uint8ClampedArray]",vN="[object Uint16Array]",IN="[object Uint32Array]",Pe={};Pe[fN]=Pe[dN]=Pe[hN]=Pe[gN]=Pe[EN]=Pe[mN]=Pe[xN]=Pe[vN]=Pe[IN]=!0;Pe[qI]=Pe[KI]=Pe[pN]=Pe[$I]=Pe[cN]=Pe[eN]=Pe[tN]=Pe[rN]=Pe[iN]=Pe[nN]=Pe[oN]=Pe[sN]=Pe[aN]=Pe[lN]=Pe[uN]=!1;function NN(n){return Mt(n)&&on(n.length)&&!!Pe[Xt(n)]}var yf=NN;function TN(n){return function(s){return n(s)}}var as=TN;var bf=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ao=bf&&typeof module=="object"&&module&&!module.nodeType&&module,CN=ao&&ao.exports===bf,rl=CN&&is.process,AN=function(){try{var n=ao&&ao.require&&ao.require("util").types;return n||rl&&rl.binding&&rl.binding("util")}catch{}}(),il=AN;var Of=il&&il.isTypedArray,SN=Of?as(Of):yf,an=SN;var LN=Object.prototype,RN=LN.hasOwnProperty;function yN(n,s){var a=_e(n),u=!a&&Or(n),h=!a&&!u&&Ii(n),g=!a&&!u&&!h&&an(n),m=a||u||h||g,I=m?Tf(n.length,String):[],T=I.length;for(var U in n)(s||RN.call(n,U))&&!(m&&(U=="length"||h&&(U=="offset"||U=="parent")||g&&(U=="buffer"||U=="byteLength"||U=="byteOffset")||rn(U,T)))&&I.push(U);return I}var ls=yN;function bN(n,s){return function(a){return n(s(a))}}var us=bN;var ON=us(Object.keys,Object),Uf=ON;var UN=Object.prototype,GN=UN.hasOwnProperty;function FN(n){if(!sn(n))return Uf(n);var s=[];for(var a in Object(n))GN.call(n,a)&&a!="constructor"&&s.push(a);return s}var Gf=FN;function BN(n){return er(n)?ls(n):Gf(n)}var ln=BN;function DN(n){var s=[];if(n!=null)for(var a in Object(n))s.push(a);return s}var Ff=DN;var MN=Object.prototype,PN=MN.hasOwnProperty;function VN(n){if(!ut(n))return Ff(n);var s=sn(n),a=[];for(var u in n)u=="constructor"&&(s||!PN.call(n,u))||a.push(u);return a}var Bf=VN;function wN(n){return er(n)?ls(n,!0):Bf(n)}var ps=wN;var _N=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,WN=/^\w*$/;function kN(n,s){if(_e(n))return!1;var a=typeof n;return a=="number"||a=="symbol"||a=="boolean"||n==null||ur(n)?!0:WN.test(n)||!_N.test(n)||s!=null&&n in Object(s)}var un=kN;var ZN=Zt(Object,"create"),Ur=ZN;function HN(){this.__data__=Ur?Ur(null):{},this.size=0}var Df=HN;function QN(n){var s=this.has(n)&&delete this.__data__[n];return this.size-=s?1:0,s}var Mf=QN;var YN="__lodash_hash_undefined__",XN=Object.prototype,JN=XN.hasOwnProperty;function jN(n){var s=this.__data__;if(Ur){var a=s[n];return a===YN?void 0:a}return JN.call(s,n)?s[n]:void 0}var Pf=jN;var zN=Object.prototype,qN=zN.hasOwnProperty;function KN(n){var s=this.__data__;return Ur?s[n]!==void 0:qN.call(s,n)}var Vf=KN;var $N="__lodash_hash_undefined__";function eT(n,s){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=Ur&&s===void 0?$N:s,this}var wf=eT;function pn(n){var s=-1,a=n==null?0:n.length;for(this.clear();++s<a;){var u=n[s];this.set(u[0],u[1])}}pn.prototype.clear=Df;pn.prototype.delete=Mf;pn.prototype.get=Pf;pn.prototype.has=Vf;pn.prototype.set=wf;var nl=pn;function tT(){this.__data__=[],this.size=0}var _f=tT;function rT(n,s){for(var a=n.length;a--;)if(xr(n[a][0],s))return a;return-1}var Jr=rT;var iT=Array.prototype,nT=iT.splice;function oT(n){var s=this.__data__,a=Jr(s,n);if(a<0)return!1;var u=s.length-1;return a==u?s.pop():nT.call(s,a,1),--this.size,!0}var Wf=oT;function sT(n){var s=this.__data__,a=Jr(s,n);return a<0?void 0:s[a][1]}var kf=sT;function aT(n){return Jr(this.__data__,n)>-1}var Zf=aT;function lT(n,s){var a=this.__data__,u=Jr(a,n);return u<0?(++this.size,a.push([n,s])):a[u][1]=s,this}var Hf=lT;function cn(n){var s=-1,a=n==null?0:n.length;for(this.clear();++s<a;){var u=n[s];this.set(u[0],u[1])}}cn.prototype.clear=_f;cn.prototype.delete=Wf;cn.prototype.get=kf;cn.prototype.has=Zf;cn.prototype.set=Hf;var jr=cn;var uT=Zt(Ke,"Map"),zr=uT;function pT(){this.size=0,this.__data__={hash:new nl,map:new(zr||jr),string:new nl}}var Qf=pT;function cT(n){var s=typeof n;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?n!=="__proto__":n===null}var Yf=cT;function fT(n,s){var a=n.__data__;return Yf(s)?a[typeof s=="string"?"string":"hash"]:a.map}var qr=fT;function dT(n){var s=qr(this,n).delete(n);return this.size-=s?1:0,s}var Xf=dT;function hT(n){return qr(this,n).get(n)}var Jf=hT;function gT(n){return qr(this,n).has(n)}var jf=gT;function ET(n,s){var a=qr(this,n),u=a.size;return a.set(n,s),this.size+=a.size==u?0:1,this}var zf=ET;function fn(n){var s=-1,a=n==null?0:n.length;for(this.clear();++s<a;){var u=n[s];this.set(u[0],u[1])}}fn.prototype.clear=Qf;fn.prototype.delete=Xf;fn.prototype.get=Jf;fn.prototype.has=jf;fn.prototype.set=zf;var Ni=fn;var mT="Expected a function";function ol(n,s){if(typeof n!="function"||s!=null&&typeof s!="function")throw new TypeError(mT);var a=function(){var u=arguments,h=s?s.apply(this,u):u[0],g=a.cache;if(g.has(h))return g.get(h);var m=n.apply(this,u);return a.cache=g.set(h,m)||g,m};return a.cache=new(ol.Cache||Ni),a}ol.Cache=Ni;var qf=ol;var xT=500;function vT(n){var s=qf(n,function(u){return a.size===xT&&a.clear(),u}),a=s.cache;return s}var Kf=vT;var IT=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,NT=/\\(\\)?/g,TT=Kf(function(n){var s=[];return n.charCodeAt(0)===46&&s.push(""),n.replace(IT,function(a,u,h,g){s.push(h?g.replace(NT,"$1"):u||a)}),s}),$f=TT;function CT(n){return n==null?"":zc(n)}var cs=CT;function AT(n,s){return _e(n)?n:un(n,s)?[n]:$f(cs(n))}var fs=AT;var ST=1/0;function LT(n){if(typeof n=="string"||ur(n))return n;var s=n+"";return s=="0"&&1/n==-ST?"-0":s}var Kr=LT;function RT(n,s){s=fs(s,n);for(var a=0,u=s.length;n!=null&&a<u;)n=n[Kr(s[a++])];return a&&a==u?n:void 0}var dn=RT;function yT(n,s,a){var u=n==null?void 0:dn(n,s);return u===void 0?a:u}var ed=yT;function bT(n,s){for(var a=-1,u=s.length,h=n.length;++a<u;)n[h+a]=s[a];return n}var ds=bT;var td=Dt?Dt.isConcatSpreadable:void 0;function OT(n){return _e(n)||Or(n)||!!(td&&n&&n[td])}var rd=OT;function id(n,s,a,u,h){var g=-1,m=n.length;for(a||(a=rd),h||(h=[]);++g<m;){var I=n[g];s>0&&a(I)?s>1?id(I,s-1,a,u,h):ds(h,I):u||(h[h.length]=I)}return h}var nd=id;var UT=us(Object.getPrototypeOf,Object),hs=UT;var GT="[object Object]",FT=Function.prototype,BT=Object.prototype,od=FT.toString,DT=BT.hasOwnProperty,MT=od.call(Object);function PT(n){if(!Mt(n)||Xt(n)!=GT)return!1;var s=hs(n);if(s===null)return!0;var a=DT.call(s,"constructor")&&s.constructor;return typeof a=="function"&&a instanceof a&&od.call(a)==MT}var sd=PT;function VT(n,s,a){var u=-1,h=n.length;s<0&&(s=-s>h?0:h+s),a=a>h?h:a,a<0&&(a+=h),h=s>a?0:a-s>>>0,s>>>=0;for(var g=Array(h);++u<h;)g[u]=n[u+s];return g}var ad=VT;function wT(n){return function(s){return n?.[s]}}var ld=wT;function _T(){this.__data__=new jr,this.size=0}var ud=_T;function WT(n){var s=this.__data__,a=s.delete(n);return this.size=s.size,a}var pd=WT;function kT(n){return this.__data__.get(n)}var cd=kT;function ZT(n){return this.__data__.has(n)}var fd=ZT;var HT=200;function QT(n,s){var a=this.__data__;if(a instanceof jr){var u=a.__data__;if(!zr||u.length<HT-1)return u.push([n,s]),this.size=++a.size,this;a=this.__data__=new Ni(u)}return a.set(n,s),this.size=a.size,this}var dd=QT;function hn(n){var s=this.__data__=new jr(n);this.size=s.size}hn.prototype.clear=ud;hn.prototype.delete=pd;hn.prototype.get=cd;hn.prototype.has=fd;hn.prototype.set=dd;var $r=hn;var md=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hd=md&&typeof module=="object"&&module&&!module.nodeType&&module,YT=hd&&hd.exports===md,gd=YT?Ke.Buffer:void 0,Ed=gd?gd.allocUnsafe:void 0;function XT(n,s){if(s)return n.slice();var a=n.length,u=Ed?Ed(a):new n.constructor(a);return n.copy(u),u}var xd=XT;function JT(n,s){for(var a=-1,u=n==null?0:n.length,h=0,g=[];++a<u;){var m=n[a];s(m,a,n)&&(g[h++]=m)}return g}var vd=JT;function jT(){return[]}var Id=jT;var zT=Object.prototype,qT=zT.propertyIsEnumerable,Nd=Object.getOwnPropertySymbols,KT=Nd?function(n){return n==null?[]:(n=Object(n),vd(Nd(n),function(s){return qT.call(n,s)}))}:Id,Td=KT;function $T(n,s,a){var u=s(n);return _e(n)?u:ds(u,a(n))}var Cd=$T;function eC(n){return Cd(n,ln,Td)}var sl=eC;var tC=Zt(Ke,"DataView"),gs=tC;var rC=Zt(Ke,"Promise"),Es=rC;var iC=Zt(Ke,"Set"),ms=iC;var Ad="[object Map]",nC="[object Object]",Sd="[object Promise]",Ld="[object Set]",Rd="[object WeakMap]",yd="[object DataView]",oC=br(gs),sC=br(zr),aC=br(Es),lC=br(ms),uC=br(os),Ti=Xt;(gs&&Ti(new gs(new ArrayBuffer(1)))!=yd||zr&&Ti(new zr)!=Ad||Es&&Ti(Es.resolve())!=Sd||ms&&Ti(new ms)!=Ld||os&&Ti(new os)!=Rd)&&(Ti=function(n){var s=Xt(n),a=s==nC?n.constructor:void 0,u=a?br(a):"";if(u)switch(u){case oC:return yd;case sC:return Ad;case aC:return Sd;case lC:return Ld;case uC:return Rd}return s});var al=Ti;var pC=Ke.Uint8Array,gn=pC;function cC(n){var s=new n.constructor(n.byteLength);return new gn(s).set(new gn(n)),s}var bd=cC;function fC(n,s){var a=s?bd(n.buffer):n.buffer;return new n.constructor(a,n.byteOffset,n.length)}var Od=fC;function dC(n){return typeof n.constructor=="function"&&!sn(n)?pf(hs(n)):{}}var Ud=dC;var hC="__lodash_hash_undefined__";function gC(n){return this.__data__.set(n,hC),this}var Gd=gC;function EC(n){return this.__data__.has(n)}var Fd=EC;function xs(n){var s=-1,a=n==null?0:n.length;for(this.__data__=new Ni;++s<a;)this.add(n[s])}xs.prototype.add=xs.prototype.push=Gd;xs.prototype.has=Fd;var Bd=xs;function mC(n,s){for(var a=-1,u=n==null?0:n.length;++a<u;)if(s(n[a],a,n))return!0;return!1}var Dd=mC;function xC(n,s){return n.has(s)}var Md=xC;var vC=1,IC=2;function NC(n,s,a,u,h,g){var m=a&vC,I=n.length,T=s.length;if(I!=T&&!(m&&T>I))return!1;var U=g.get(n),L=g.get(s);if(U&&L)return U==s&&L==n;var V=-1,y=!0,M=a&IC?new Bd:void 0;for(g.set(n,s),g.set(s,n);++V<I;){var F=n[V],S=s[V];if(u)var x=m?u(S,F,V,s,n,g):u(F,S,V,n,s,g);if(x!==void 0){if(x)continue;y=!1;break}if(M){if(!Dd(s,function(v,A){if(!Md(M,A)&&(F===v||h(F,v,a,u,g)))return M.push(A)})){y=!1;break}}else if(!(F===S||h(F,S,a,u,g))){y=!1;break}}return g.delete(n),g.delete(s),y}var vs=NC;function TC(n){var s=-1,a=Array(n.size);return n.forEach(function(u,h){a[++s]=[h,u]}),a}var Pd=TC;function CC(n){var s=-1,a=Array(n.size);return n.forEach(function(u){a[++s]=u}),a}var Vd=CC;var AC=1,SC=2,LC="[object Boolean]",RC="[object Date]",yC="[object Error]",bC="[object Map]",OC="[object Number]",UC="[object RegExp]",GC="[object Set]",FC="[object String]",BC="[object Symbol]",DC="[object ArrayBuffer]",MC="[object DataView]",wd=Dt?Dt.prototype:void 0,ll=wd?wd.valueOf:void 0;function PC(n,s,a,u,h,g,m){switch(a){case MC:if(n.byteLength!=s.byteLength||n.byteOffset!=s.byteOffset)return!1;n=n.buffer,s=s.buffer;case DC:return!(n.byteLength!=s.byteLength||!g(new gn(n),new gn(s)));case LC:case RC:case OC:return xr(+n,+s);case yC:return n.name==s.name&&n.message==s.message;case UC:case FC:return n==s+"";case bC:var I=Pd;case GC:var T=u&AC;if(I||(I=Vd),n.size!=s.size&&!T)return!1;var U=m.get(n);if(U)return U==s;u|=SC,m.set(n,s);var L=vs(I(n),I(s),u,h,g,m);return m.delete(n),L;case BC:if(ll)return ll.call(n)==ll.call(s)}return!1}var _d=PC;var VC=1,wC=Object.prototype,_C=wC.hasOwnProperty;function WC(n,s,a,u,h,g){var m=a&VC,I=sl(n),T=I.length,U=sl(s),L=U.length;if(T!=L&&!m)return!1;for(var V=T;V--;){var y=I[V];if(!(m?y in s:_C.call(s,y)))return!1}var M=g.get(n),F=g.get(s);if(M&&F)return M==s&&F==n;var S=!0;g.set(n,s),g.set(s,n);for(var x=m;++V<T;){y=I[V];var v=n[y],A=s[y];if(u)var R=m?u(A,v,y,s,n,g):u(v,A,y,n,s,g);if(!(R===void 0?v===A||h(v,A,a,u,g):R)){S=!1;break}x||(x=y=="constructor")}if(S&&!x){var B=n.constructor,D=s.constructor;B!=D&&"constructor"in n&&"constructor"in s&&!(typeof B=="function"&&B instanceof B&&typeof D=="function"&&D instanceof D)&&(S=!1)}return g.delete(n),g.delete(s),S}var Wd=WC;var kC=1,kd="[object Arguments]",Zd="[object Array]",Is="[object Object]",ZC=Object.prototype,Hd=ZC.hasOwnProperty;function HC(n,s,a,u,h,g){var m=_e(n),I=_e(s),T=m?Zd:al(n),U=I?Zd:al(s);T=T==kd?Is:T,U=U==kd?Is:U;var L=T==Is,V=U==Is,y=T==U;if(y&&Ii(n)){if(!Ii(s))return!1;m=!0,L=!1}if(y&&!L)return g||(g=new $r),m||an(n)?vs(n,s,a,u,h,g):_d(n,s,T,a,u,h,g);if(!(a&kC)){var M=L&&Hd.call(n,"__wrapped__"),F=V&&Hd.call(s,"__wrapped__");if(M||F){var S=M?n.value():n,x=F?s.value():s;return g||(g=new $r),h(S,x,a,u,g)}}return y?(g||(g=new $r),Wd(n,s,a,u,h,g)):!1}var Qd=HC;function Yd(n,s,a,u,h){return n===s?!0:n==null||s==null||!Mt(n)&&!Mt(s)?n!==n&&s!==s:Qd(n,s,a,u,Yd,h)}var Ns=Yd;var QC=1,YC=2;function XC(n,s,a,u){var h=a.length,g=h,m=!u;if(n==null)return!g;for(n=Object(n);h--;){var I=a[h];if(m&&I[2]?I[1]!==n[I[0]]:!(I[0]in n))return!1}for(;++h<g;){I=a[h];var T=I[0],U=n[T],L=I[1];if(m&&I[2]){if(U===void 0&&!(T in n))return!1}else{var V=new $r;if(u)var y=u(U,L,T,n,s,V);if(!(y===void 0?Ns(L,U,QC|YC,u,V):y))return!1}}return!0}var Xd=XC;function JC(n){return n===n&&!ut(n)}var Ts=JC;function jC(n){for(var s=ln(n),a=s.length;a--;){var u=s[a],h=n[u];s[a]=[u,h,Ts(h)]}return s}var Jd=jC;function zC(n,s){return function(a){return a==null?!1:a[n]===s&&(s!==void 0||n in Object(a))}}var Cs=zC;function qC(n){var s=Jd(n);return s.length==1&&s[0][2]?Cs(s[0][0],s[0][1]):function(a){return a===n||Xd(a,n,s)}}var jd=qC;function KC(n,s){return n!=null&&s in Object(n)}var zd=KC;function $C(n,s,a){s=fs(s,n);for(var u=-1,h=s.length,g=!1;++u<h;){var m=Kr(s[u]);if(!(g=n!=null&&a(n,m)))break;n=n[m]}return g||++u!=h?g:(h=n==null?0:n.length,!!h&&on(h)&&rn(m,h)&&(_e(n)||Or(n)))}var qd=$C;function eA(n,s){return n!=null&&qd(n,s,zd)}var Kd=eA;var tA=1,rA=2;function iA(n,s){return un(n)&&Ts(s)?Cs(Kr(n),s):function(a){var u=ed(a,n);return u===void 0&&u===s?Kd(a,n):Ns(s,u,tA|rA)}}var $d=iA;function nA(n){return function(s){return s?.[n]}}var eh=nA;function oA(n){return function(s){return dn(s,n)}}var th=oA;function sA(n){return un(n)?eh(Kr(n)):th(n)}var rh=sA;function aA(n){return typeof n=="function"?n:n==null?Xr:typeof n=="object"?_e(n)?$d(n[0],n[1]):jd(n):rh(n)}var ih=aA;function lA(n){return function(s,a,u){for(var h=-1,g=Object(s),m=u(s),I=m.length;I--;){var T=m[n?I:++h];if(a(g[T],T,g)===!1)break}return s}}var nh=lA;var uA=nh(),As=uA;function pA(n,s){return n&&As(n,s,ln)}var oh=pA;function cA(n,s){return function(a,u){if(a==null)return a;if(!er(a))return n(a,u);for(var h=a.length,g=s?h:-1,m=Object(a);(s?g--:++g<h)&&u(m[g],g,m)!==!1;);return a}}var sh=cA;var fA=sh(oh),ah=fA;function dA(n,s,a){(a!==void 0&&!xr(n[s],a)||a===void 0&&!(s in n))&&nn(n,s,a)}var lo=dA;function hA(n){return Mt(n)&&er(n)}var lh=hA;function gA(n,s){if(!(s==="constructor"&&typeof n[s]=="function")&&s!="__proto__")return n[s]}var uo=gA;function EA(n){return xf(n,ps(n))}var uh=EA;function mA(n,s,a,u,h,g,m){var I=uo(n,a),T=uo(s,a),U=m.get(T);if(U){lo(n,a,U);return}var L=g?g(I,T,a+"",n,s,m):void 0,V=L===void 0;if(V){var y=_e(T),M=!y&&Ii(T),F=!y&&!M&&an(T);L=T,y||M||F?_e(I)?L=I:lh(I)?L=ff(I):M?(V=!1,L=xd(T,!0)):F?(V=!1,L=Od(T,!0)):L=[]:sd(T)||Or(T)?(L=I,Or(I)?L=uh(I):(!ut(I)||$e(I))&&(L=Ud(T))):V=!1}V&&(m.set(T,L),h(L,T,u,g,m),m.delete(T)),lo(n,a,L)}var ph=mA;function ch(n,s,a,u,h){n!==s&&As(s,function(g,m){if(h||(h=new $r),ut(g))ph(n,s,m,a,ch,u,h);else{var I=u?u(uo(n,m),g,m+"",n,s,h):void 0;I===void 0&&(I=g),lo(n,m,I)}},ps)}var fh=ch;var xA={"&":"&","<":"<",">":">",'"':""","'":"'"},vA=ld(xA),dh=vA;var hh=/[&<>"']/g,IA=RegExp(hh.source);function NA(n){return n=cs(n),n&&IA.test(n)?n.replace(hh,dh):n}var Ss=NA;function TA(n,s){var a=-1,u=er(n)?Array(n.length):[];return ah(n,function(h,g,m){u[++a]=s(h,g,m)}),u}var gh=TA;var CA=Nf(function(n,s,a){fh(n,s,a)}),En=CA;function AA(n,s){var a=n.length;for(n.sort(s);a--;)n[a]=n[a].value;return n}var Eh=AA;function SA(n,s){if(n!==s){var a=n!==void 0,u=n===null,h=n===n,g=ur(n),m=s!==void 0,I=s===null,T=s===s,U=ur(s);if(!I&&!U&&!g&&n>s||g&&m&&T&&!I&&!U||u&&m&&T||!a&&T||!h)return 1;if(!u&&!g&&!U&&n<s||U&&a&&h&&!u&&!g||I&&a&&h||!m&&h||!T)return-1}return 0}var mh=SA;function LA(n,s,a){for(var u=-1,h=n.criteria,g=s.criteria,m=h.length,I=a.length;++u<m;){var T=mh(h[u],g[u]);if(T){if(u>=I)return T;var U=a[u];return T*(U=="desc"?-1:1)}}return n.index-s.index}var xh=LA;function RA(n,s,a){s.length?s=en(s,function(g){return _e(g)?function(m){return dn(m,g.length===1?g[0]:g)}:g}):s=[Xr];var u=-1;s=en(s,as(ih));var h=gh(n,function(g,m,I){var T=en(s,function(U){return U(g)});return{criteria:T,index:++u,value:g}});return Eh(h,function(g,m){return xh(g,m,a)})}var vh=RA;var yA=ss(function(n,s){if(n==null)return[];var a=s.length;return a>1&&so(n,s[0],s[1])?s=[]:a>2&&so(s[0],s[1],s[2])&&(s=[s[0]]),vh(n,nd(s,1),[])}),ul=yA;function bA(n,s,a){return n&&n.length?(s=a||s===void 0?1:nf(s),ad(n,0,s<0?0:s)):[]}var pl=bA;var cl=ft(ts());function po(n,s){return $e(s)?s(n):s??{}}function fl(n,s={}){let a=En({},po(n,n.config.requestConfig),po(n,s));if(!a.endpoint||a.endpoint.length==0)return;var u=n.getQueryMode();let h=$e(a.endpoint)?a.endpoint(n):a.endpoint;var g=u=="update"?"POST":$e(a.method)?a.method(n):a.method;let m=$e(a.headers)?a.headers(n):a.headers,I=$e(a.withCredentials)?a.withCredentials(n):a.withCredentials;return{reqMethod:g,url:h,args:Ih(n,a),headers:m,accept:Nh(n,a),withCredentials:I}}async function dl(n,s){let a=Date.now();try{n.emit("queryBefore",n,s);let u=fl(n,s);if(!u)return;let h=new AbortController,g={method:u.reqMethod,headers:{Accept:u.accept,...u.headers||{}},credentials:u.withCredentials?"include":"same-origin",signal:h.signal};g?.headers&&u.reqMethod==="POST"&&(g.headers["Content-Type"]="application/x-www-form-urlencoded");let m=new URLSearchParams;for(let L in u.args){let V=u.args[L];Array.isArray(V)?V.forEach(y=>m.append(L,y)):m.append(L,V)}if(u.reqMethod==="POST")g.body=m.toString();else{let L=new URL(u.url);m.forEach((V,y)=>{L.searchParams.append(y,V)}),u.url=L.toString()}let I=new Request(u.url,g);n.emit("query",I,h);let T=await fetch(I);if(!T.ok)throw new Error(await T.text()||T.statusText);let U={ok:T.ok,status:T.status,statusText:T.statusText,headers:T.headers,type:T.type,content:await T.text()};return n.emit("queryResponse",U,Date.now()-a),n.emit("queryResults",U.content,Date.now()-a),U}catch(u){throw u instanceof Error&&u.message==="Aborted"||n.emit("queryResponse",u,Date.now()-a),n.emit("error",u),u}}function Ih(n,s){var a=n.getQueryMode(),u={};let h=po(n,s);var g=$e(h.queryArgument)?h.queryArgument(n):h.queryArgument;g||(g=n.getQueryMode()),u[g]=h.adjustQueryBeforeRequest?h.adjustQueryBeforeRequest(n):n.getValue();let m=$e(h.namedGraphs)?h.namedGraphs(n):h.namedGraphs;if(m&&m.length>0){let U=a==="query"?"named-graph-uri":"using-named-graph-uri ";u[U]=m}let I=$e(h.defaultGraphs)?h.defaultGraphs(n):h.defaultGraphs;if(I&&I.length>0){let U=a=="query"?"default-graph-uri":"using-graph-uri ";u[U]=m}let T=$e(h.args)?h.args(n):h.args;return T&&T.length>0&&En(u,T.reduce((U,L)=>(U[L.name]?U[L.name].push(L.value):U[L.name]=[L.value],U),{})),u}function Nh(n,s){let a=po(n,s);var u=null;if(n.getQueryMode()=="update")u=$e(a.acceptHeaderUpdate)?a.acceptHeaderUpdate(n):a.acceptHeaderUpdate;else{var h=n.getQueryType();h=="DESCRIBE"||h=="CONSTRUCT"?u=$e(a.acceptHeaderGraph)?a.acceptHeaderGraph(n):a.acceptHeaderGraph:u=$e(a.acceptHeaderSelect)?a.acceptHeaderSelect(n):a.acceptHeaderSelect}return u}function hl(n,s){let a=fl(n,po(n,s));if(!a)return"";let u=a.url;a.url.indexOf("http")!==0&&(u=`${window.location.protocol}//${window.location.host}`,a.url.indexOf("/")===0?u+=a.url:u+=window.location.pathname+a.url);let h=["curl"];a.reqMethod==="GET"?(u+=`?${cl.stringify(a.args)}`,h.push(u)):a.reqMethod==="POST"?(h.push(u),h.push("--data",cl.stringify(a.args))):(console.warn("Unexpected request-method",a.reqMethod),h.push(u)),h.push("-X",a.reqMethod);for(let g in a.headers)h.push(`-H '${g}: ${a.headers[g]}'`);return h.join(" ")}var Th='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" height="81.9" width="72.9" version="1.1" y="0px" x="0px" viewBox="0 0 72.900002 81.900002"><path id="queryIcon" d="m69.6 35.2-60.3-34.3c-2.2-1.2-4.4-1.2-6.4 0s-2.9 3.4-2.9 5.6v68.8c0 2.2 1.2 4.4 2.9 5.6 1 0.5 2.2 1 3.4 1s2.2-0.5 2.9-1l60.3-34.3c2.2-1.2 3.4-3.4 3.4-5.6s-1.1-4.3-3.3-5.8z"/><path id="loadingIcon" d="m61.184 36.167-48.73-27.719c-1.7779-0.96976-3.5558-0.96976-5.172 0-1.6163 0.96976-2.3436 2.7476-2.3436 4.5255v55.599c0 1.7779 0.96976 3.5558 2.3436 4.5255 0.80813 0.40407 1.7779 0.80813 2.7476 0.80813 0.96975 0 1.7779-0.40406 2.3436-0.80813l48.73-27.719c1.7779-0.96976 2.7476-2.7476 2.7476-4.5255s-0.88894-3.475-2.6668-4.6872z" fill="none"/></svg>';var Ch='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M36.764 50c0 .308-.07.598-.088.905l32.247 16.12c2.76-2.34 6.293-3.798 10.195-3.798C87.89 63.227 95 70.337 95 79.11 95 87.89 87.89 95 79.118 95c-8.78 0-15.882-7.11-15.882-15.89 0-.317.07-.6.088-.906l-32.247-16.12c-2.77 2.33-6.293 3.79-10.195 3.79C12.11 65.873 5 58.77 5 50c0-8.78 7.11-15.89 15.882-15.89 3.902 0 7.427 1.467 10.195 3.796l32.247-16.12c-.018-.307-.088-.597-.088-.913C63.236 12.11 70.338 5 79.118 5 87.89 5 95 12.11 95 20.873c0 8.78-7.11 15.89-15.882 15.89-3.91 0-7.436-1.467-10.195-3.805L36.676 49.086c.017.308.088.598.088.914z"/></svg>',El='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 66.399998 66.399998"><g><path d="M33.2 0C14.9 0 0 14.9 0 33.2c0 18.3 14.9 33.2 33.2 33.2 18.3 0 33.2-14.9 33.2-33.2C66.4 14.9 51.5 0 33.2 0zm0 59.4C18.7 59.4 7 47.6 7 33.2 7 18.7 18.8 7 33.2 7c14.4 0 26.2 11.8 26.2 26.2 0 14.4-11.8 26.2-26.2 26.2z"/><path d="M33.1 45.6c-1.4 0-2.5.5-3.5 1.5-.9 1-1.4 2.2-1.4 3.6 0 1.6.5 2.8 1.5 3.8 1 .9 2.1 1.3 3.4 1.3 1.3 0 2.4-.5 3.4-1.4 1-.9 1.5-2.2 1.5-3.7 0-1.4-.5-2.6-1.4-3.6-.9-1-2.1-1.5-3.5-1.5zM33.3 12.4c-1.5 0-2.8.5-3.7 1.6-.9 1-1.4 2.4-1.4 4.2 0 1.1.1 2.9.2 5.6l.8 13.1c.2 1.8.4 3.2.9 4.1.5 1.2 1.5 1.8 2.9 1.8 1.3 0 2.3-.7 2.9-1.9.5-1 .7-2.3.9-4l1.1-13.4c.1-1.3.2-2.5.2-3.8 0-2.2-.3-3.9-.8-5.1-.5-1-1.6-2.2-4-2.2z"/></g></svg>',Ah='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>',Sh='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/></svg>';var co=class n{constructor(){this.words=0;this.prefixes=0;this.children={}}insert(s,a){if(s.length!=0){var u=this,h,g;if(a===void 0&&(a=0),a===s.length){u.words++;return}u.prefixes++,h=s[a],u.children[h]===void 0&&(u.children[h]=new n),g=u.children[h],g.insert(s,a+1)}}remove(s,a){if(s.length!=0){var u=this,h,g;if(a===void 0&&(a=0),u!==void 0){if(a===s.length){u.words--;return}u.prefixes--,h=s[a],g=u.children[h],g.remove(s,a+1)}}}update(s,a){s.length==0||a.length==0||(this.remove(s),this.insert(a))}countWord(s,a){if(s.length==0)return 0;var u=this,h,g,m=0;return a===void 0&&(a=0),a===s.length?u.words:(h=s[a],g=u.children[h],g!==void 0&&(m=g.countWord(s,a+1)),m)}countPrefix(s,a){if(s.length==0)return 0;var u=this,m,h,g=0;if(a===void 0&&(a=0),a===s.length)return u.prefixes;var m=s[a];return h=u.children[m],h!==void 0&&(g=h.countPrefix(s,a+1)),g}find(s){return s.length==0?!1:this.countWord(s)>0}getAllWords(s){var a=this,u,h,g=[];if(s===void 0&&(s=""),a===void 0)return[];a.words>0&&g.push(s);for(u in a.children)a.children.hasOwnProperty(u)&&(h=a.children[u],g=g.concat(h.getAllWords(s+u)));return g}autoComplete(s,a){var u=this,h,g;return s.length==0?a===void 0?u.getAllWords(s):[]:(a===void 0&&(a=0),h=s[a],g=u.children[h],g===void 0?[]:a===s.length-1?g.getAllWords(s):g.autoComplete(s,a+1))}};var Wh=ft(Mh());var vl=ft(Nt());var PA={name:"variables",isValidCompletionPosition:function(n){var s=n.getTokenAt(n.getDoc().getCursor());return!!(s.type!="ws"&&(s=n.getCompleteToken(s),s&&(s.string[0]==="?"||s.string[0]==="$")))},get:function(n,s){if(!s||s.string.length==0)return[];let a={},u=[],h=n.getWrapperElement().querySelectorAll(".cm-atom");for(let m=0;m<h.length;m++){let I=h[m];var g=I.innerHTML;if(g[0]==="?"||g[0]==="$"){let T=I.nextSibling;if(T&&T.className&&T.className.indexOf("cm-atom")>=0&&(g+=T.innerText),a[g]||g.length<=1||g.indexOf(s.string)!==0||g===s.string)continue;a[g]=!0,u.push(g)}}return u.sort()},bulk:!1,autoShow:!0},Ph=PA;var VA={"string-2":"prefixed",atom:"var"},wA={postprocessHints:function(n,s){return ul(s,a=>a.text.split(":")[0])},onInitialize:function(n){n.on("change",()=>{if(!(!n.config.autocompleters||n.config.autocompleters.indexOf(this.name)==-1)){var s=n.getDoc().getCursor(),a=n.getTokenAt(s);if(a.type&&VA[a.type]=="prefixed"){var u=a.string.indexOf(":");if(u!==-1){var h=n.getPreviousNonWsToken(s.line,a).string.toUpperCase(),g=n.getTokenAt({line:s.line,ch:a.start});if(h!=="PREFIX"&&(g.type=="ws"||g.type==null||g.type==="punc"&&(g.string==="|"||g.string==="/"||g.string=="^^"||g.string=="{"||g.string==="("))){var m=a.string.substring(0,u+1),I=n.getPrefixesFromQuery();I[m.slice(0,-1)]==null&&(a.autocompletionString=m,n.autocompleters[this.name]?.getCompletions(a).then(T=>{T.length&&(n.addPrefixes(T[0]),n.autocomplete())},console.warn))}}}}})},isValidCompletionPosition:function(n){var s=n.getDoc().getCursor(),a=n.getTokenAt(s);if(n.getDoc().getLine(s.line).length>s.ch||(a.type!="ws"&&(a=n.getCompleteToken()),a.string.indexOf("a")!==0&&a.state.possibleCurrent.indexOf("PNAME_NS")<0))return!1;var u=n.getPreviousNonWsToken(s.line,a);return!(!u||u.string.toUpperCase()!="PREFIX")},get:function(n){return fetch(n.config.prefixCcApi).then(s=>{if(!s.ok)throw new Error("Failed to fetch prefixes");return s.json()}).then(s=>{let a=[];for(let u in s){let h=`${u}: <${s[u]}>`;a.push(h)}return a.sort()})},preProcessToken:function(n,s){var a=n.getPreviousNonWsToken(n.getDoc().getCursor().line,s);return a&&a.string&&a.string.slice(-1)==":"&&(s={start:a.start,end:s.end,string:a.string+" "+s.string,state:s.state,type:s.type}),s},bulk:!0,autoShow:!0,persistenceId:"prefixes",name:"prefixes"},Vh=wA;var _A={onInitialize:function(n){},get:function(n,s){return Os(n,"property",s)},isValidCompletionPosition:function(n){let s=n.getCompleteToken();return s.string.length==0||s.string[0]==="?"||s.string[0]==="$"?!1:s.state.possibleCurrent.indexOf("a")>=0},preProcessToken:function(n,s){return ys(n,s)},postProcessSuggestion:function(n,s,a){return bs(n,s,a)},bulk:!1,name:"property"},wh=_A;var WA={onInitialize:function(n){},get:function(n,s){return Os(n,"class",s)},isValidCompletionPosition:function(n){let s=n.getCompleteToken();if(s.string[0]==="?"||s.string[0]==="$")return!1;let a=n.getDoc().getCursor(),u=n.getPreviousNonWsToken(a.line,s);return u.state.lastProperty==="a"||u.state.lastProperty==="rdf:type"||u.state.lastProperty==="rdfs:domain"||u.state.lastProperty==="rdfs:range"},preProcessToken:function(n,s){return ys(n,s)},postProcessSuggestion:function(n,s,a){return bs(n,s,a)},bulk:!1,name:"class"},_h=WA;var kA=100,Us=class extends Wh.EventEmitter{constructor(s,a){super(),this.yasqe=s,this.config=a}getStorageId(){return this.yasqe.getStorageId(this.config.persistenceId)}storeBulkCompletions(s){if(!(!s||!(s instanceof Array))){this.trie=new co;for(let u of s)this.trie.insert(u);var a=this.getStorageId();a&&this.yasqe.storage.set(a,s,60*60*24*30,this.yasqe.handleLocalStorageQuotaFull)}}getCompletions(s){if(!this.config.get)return Promise.resolve([]);if(!s)return this.config.get instanceof Array?Promise.resolve(this.config.get):Promise.resolve(this.config.get(this.yasqe)).then(u=>u instanceof Array?u:[]);let a=s.autocompletionString||s.string;return this.trie?Promise.resolve(pl(this.trie.autoComplete(a),kA)):this.config.get instanceof Array?Promise.resolve(this.config.get.filter(u=>u.indexOf(a)===0)):Promise.resolve(this.config.get(this.yasqe,s)).then(u=>u instanceof Array?u:[])}initialize(){if(this.config.onInitialize&&this.config.onInitialize(this.yasqe),this.config.bulk){if(this.config.get instanceof Array)return this.storeBulkCompletions(this.config.get),Promise.resolve();var s,a=this.getStorageId();return a&&(s=this.yasqe.storage.get(a)),s&&s.length>0?(this.storeBulkCompletions(s),Promise.resolve()):this.getCompletions().then(u=>this.storeBulkCompletions(u))}return Promise.resolve()}isValidPosition(){return this.config.isValidCompletionPosition?this.config.isValidCompletionPosition(this.yasqe)?(this.config.autoShow||this.yasqe.showNotification(this.config.name,"Press CTRL - <spacebar> to autocomplete"),this.emit("validPosition",this),!0):(this.emit("invalidPosition",this),this.yasqe.hideNotification(this.config.name),!1):!1}getHint(s,a){this.config.postProcessSuggestion&&(a=this.config.postProcessSuggestion(this.yasqe,s,a));let u,h,g=this.yasqe.getDoc().getCursor();s.from&&(u={...g,...s.from});let m=this.yasqe.getDoc().getCursor().line;return s.to?h={ch:s?.to?.ch||this.yasqe.getCompleteToken().end,line:m}:s.string.length>0?h={ch:this.yasqe.getCompleteToken().end,line:m}:h=s.from,{text:a,displayText:a,from:u,to:h}}getHints(s){return this.config.preProcessToken&&(s=this.config.preProcessToken(this.yasqe,s)),s?this.getCompletions(s).then(a=>a.map(u=>this.getHint(s,u))).then(a=>this.config.postprocessHints?this.config.postprocessHints(this.yasqe,a):a):Promise.resolve([])}autocomplete(s){if(!this.isValidPosition())return!1;let a=this.yasqe.state.completionActive,u=this.yasqe.getDoc().getCursor();if(a&&u.sticky&&u.ch!==a.startPos.ch?this.yasqe.state.completionActive.startPos=u:a&&!u.sticky&&u.ch<a.startPos.ch&&(u.sticky=a.startPos.sticky,this.yasqe.state.completionActive.startPos.ch=u.ch,this.yasqe.state.completionActive.startLen--),s&&(!this.config.autoShow||this.yasqe.state.completionActive))return!1;let h=()=>this.getHints(this.yasqe.getCompleteToken()).then(m=>{let I=this.yasqe.getDoc().getCursor(),T=this.yasqe.getCompleteToken(),U={list:m,from:{line:I.line,ch:T.start},to:{line:I.line,ch:T.end}};return vl.default.on(U,"shown",()=>{this.yasqe.emit("autocompletionShown",this.yasqe.state.completionActive.widget)}),vl.default.on(U,"close",()=>{this.yasqe.emit("autocompletionClose")}),U});h.async=!1;var g={closeCharacters:/[\s>"]/,completeSingle:!1,hint:h,container:this.yasqe.rootEl,extraKeys:{Home:(m,I)=>{m.getDoc().setCursor({ch:0,line:I.data.from.line})},End:(m,I)=>{m.getDoc().setCursor({ch:m.getLine(I.data.to.line).length,line:I.data.to.line})}},...this.yasqe.config.hintConfig};return this.yasqe.showHint(g),!0}};function ys(n,s){let a=n.getPrefixesFromQuery(),u=s.string;if(u.indexOf("<")<0&&(s.tokenPrefix=u.substring(0,u.indexOf(":")+1),a[s.tokenPrefix.slice(0,-1)]!=null&&(s.tokenPrefixUri=a[s.tokenPrefix.slice(0,-1)])),s.autocompletionString=u.trim(),u.indexOf("<")<0&&u.indexOf(":")>-1){for(var h in a)if(s.tokenPrefix===h+":"){s.autocompletionString=a[h],s.autocompletionString+=u.substring(h.length+1);break}}return s.autocompletionString.indexOf("<")==0&&(s.autocompletionString=s.autocompletionString.substring(1)),s.autocompletionString.indexOf(">",s.autocompletionString.length-1)>0&&(s.autocompletionString=s.autocompletionString.substring(0,s.autocompletionString.length-1)),s}function bs(n,s,a){return s.tokenPrefix&&s.autocompletionString&&s.tokenPrefixUri?a=s.tokenPrefix+a.substring(s.tokenPrefixUri.length):a="<"+a+">",a}var Os=(n,s,a)=>{var u=window.location.protocol.indexOf("http")===0?"https://":"http://";let h="autocomplete_"+s;if(!a||!a.string||a.string.trim().length==0)return n.showNotification(h,"Nothing to autocomplete yet!"),Promise.resolve([]);let g=new URLSearchParams;a.autocompletionString&&g.append("q",a.autocompletionString),g.append("page_size","50"),g.append("type",s);let m=`${u}lov.linkeddata.es/dataset/lov/api/v2/autocomplete/terms?${g.toString()}`;return fetch(m).then(I=>{if(!I.ok)throw new Error("Failed fetching suggestions from Linked Open Vocabularies");return I.json()}).then(I=>I.results?I.results.map(T=>T.uri[0]):[]).catch(I=>{n.showNotification(h,"Failed fetching suggestions")})},kh=[Ph,Vh,wh,_h];var Zh=ft(ts()),Gs=ft(Nt());function Il(){return{...{mode:"sparql11",value:`PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
|
36
|
+
`),Y=w+le.length,Oe=le[le.length-1].length;return{from:s(Y,Oe),to:s(Y+me.length-1,me.length==1?Oe+me[0].length:me[me.length-1].length),match:ue}}}}var L,V;String.prototype.normalize?(L=function(x){return x.normalize("NFD").toLowerCase()},V=function(x){return x.normalize("NFD")}):(L=function(x){return x.toLowerCase()},V=function(x){return x});function y(x,v,C,R){if(x.length==v.length)return C;for(var B=0,D=C+Math.max(0,x.length-v.length);;){if(B==D)return B;var w=B+D>>1,Q=R(x.slice(0,w)).length;if(Q==C)return w;Q>C?D=w:B=w+1}}function M(x,v,C,R){if(!v.length)return null;var B=R?L:V,D=B(v).split(/\r|\n\r?/);e:for(var w=C.line,Q=C.ch,de=x.lastLine()+1-D.length;w<=de;w++,Q=0){var te=x.getLine(w).slice(Q),ue=B(te);if(D.length==1){var le=ue.indexOf(D[0]);if(le==-1)continue e;var C=y(te,ue,le,B)+Q;return{from:s(w,y(te,ue,le,B)+Q),to:s(w,y(te,ue,le+D[0].length,B)+Q)}}else{var me=ue.length-D[0].length;if(ue.slice(me)!=D[0])continue e;for(var Y=1;Y<D.length-1;Y++)if(B(x.getLine(w+Y))!=D[Y])continue e;var Oe=x.getLine(w+D.length-1),Be=B(Oe),et=D[D.length-1];if(Be.slice(0,et.length)!=et)continue e;return{from:s(w,y(te,ue,me,B)+Q),to:s(w+D.length-1,y(Oe,Be,et.length,B))}}}}function F(x,v,C,R){if(!v.length)return null;var B=R?L:V,D=B(v).split(/\r|\n\r?/);e:for(var w=C.line,Q=C.ch,de=x.firstLine()-1+D.length;w>=de;w--,Q=-1){var te=x.getLine(w);Q>-1&&(te=te.slice(0,Q));var ue=B(te);if(D.length==1){var le=ue.lastIndexOf(D[0]);if(le==-1)continue e;return{from:s(w,y(te,ue,le,B)),to:s(w,y(te,ue,le+D[0].length,B))}}else{var me=D[D.length-1];if(ue.slice(0,me.length)!=me)continue e;for(var Y=1,C=w-D.length+1;Y<D.length-1;Y++)if(B(x.getLine(C+Y))!=D[Y])continue e;var Oe=x.getLine(w+1-D.length),Be=B(Oe);if(Be.slice(Be.length-D[0].length)!=D[0])continue e;return{from:s(w+1-D.length,y(Oe,Be,Oe.length-D[0].length,B)),to:s(w,y(te,ue,me.length,B))}}}}function S(x,v,C,R){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=x,C=C?x.clipPos(C):s(0,0),this.pos={from:C,to:C};var B;typeof R=="object"?B=R.caseFold:(B=R,R=null),typeof v=="string"?(B==null&&(B=!1),this.matches=function(D,w){return(D?F:M)(x,v,w,B)}):(v=u(v,"gm"),!R||R.multiline!==!1?this.matches=function(D,w){return(D?G:m)(x,v,w)}:this.matches=function(D,w){return(D?T:g)(x,v,w)})}S.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(x){var v=this.doc.clipPos(x?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(v=s(v.line,v.ch),x?(v.ch--,v.ch<0&&(v.line--,v.ch=(this.doc.getLine(v.line)||"").length)):(v.ch++,v.ch>(this.doc.getLine(v.line)||"").length&&(v.ch=0,v.line++)),n.cmpPos(v,this.doc.clipPos(v))!=0))return this.atOccurrence=!1;var C=this.matches(x,v);if(this.afterEmptyMatch=C&&n.cmpPos(C.from,C.to)==0,C)return this.pos=C,this.atOccurrence=!0,this.pos.match||!0;var R=s(x?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:R,to:R},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(x,v){if(this.atOccurrence){var C=n.splitLines(x);this.doc.replaceRange(C,this.pos.from,this.pos.to,v),this.pos.to=s(this.pos.from.line+C.length-1,C[C.length-1].length+(C.length==1?this.pos.from.ch:0))}}},n.defineExtension("getSearchCursor",function(x,v,C){return new S(this.doc,x,v,C)}),n.defineDocExtension("getSearchCursor",function(x,v,C){return new S(this,x,v,C)}),n.defineExtension("selectMatches",function(x,v){for(var C=[],R=this.getSearchCursor(x,this.getCursor("from"),v);R.findNext()&&!(n.cmpPos(R.to(),this.getCursor("to"))>0);)C.push({anchor:R.from(),head:R.to()});C.length&&this.setSelections(C,0)})})});var dg=Se((cg,fg)=>{(function(n){typeof cg=="object"&&typeof fg=="object"?n(Nt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){"use strict";n.defineExtension("annotateScrollbar",function(a){return typeof a=="string"&&(a={className:a}),new s(this,a)}),n.defineOption("scrollButtonHeight",0);function s(a,u){this.cm=a,this.options=u,this.buttonHeight=u.scrollButtonHeight||a.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=a.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();function h(m){clearTimeout(g.doRedraw),g.doRedraw=setTimeout(function(){g.redraw()},m)}var g=this;a.on("refresh",this.resizeHandler=function(){clearTimeout(g.doUpdate),g.doUpdate=setTimeout(function(){g.computeScale()&&h(20)},100)}),a.on("markerAdded",this.resizeHandler),a.on("markerCleared",this.resizeHandler),u.listenForChanges!==!1&&a.on("changes",this.changeHandler=function(){h(250)})}s.prototype.computeScale=function(){var a=this.cm,u=(a.getWrapperElement().clientHeight-a.display.barHeight-this.buttonHeight*2)/a.getScrollerElement().scrollHeight;if(u!=this.hScale)return this.hScale=u,!0},s.prototype.update=function(a){this.annotations=a,this.redraw()},s.prototype.redraw=function(a){a!==!1&&this.computeScale();var u=this.cm,h=this.hScale,g=document.createDocumentFragment(),m=this.annotations,I=u.getOption("lineWrapping"),T=I&&u.defaultTextHeight()*1.5,G=null,L=null;function V(B,D){if(G!=B.line){G=B.line,L=u.getLineHandle(B.line);var w=u.getLineHandleVisualStart(L);w!=L&&(G=u.getLineNumber(w),L=w)}if(L.widgets&&L.widgets.length||I&&L.height>T)return u.charCoords(B,"local")[D?"top":"bottom"];var Q=u.heightAtLine(L,"local");return Q+(D?0:L.height)}var y=u.lastLine();if(u.display.barWidth)for(var M=0,F;M<m.length;M++){var S=m[M];if(!(S.to.line>y)){for(var x=F||V(S.from,!0)*h,v=V(S.to,!1)*h;M<m.length-1&&!(m[M+1].to.line>y||(F=V(m[M+1].from,!0)*h,F>v+.9));)S=m[++M],v=V(S.to,!1)*h;if(v!=x){var C=Math.max(v-x,3),R=g.appendChild(document.createElement("div"));R.style.cssText="position: absolute; right: 0px; width: "+Math.max(u.display.barWidth-1,2)+"px; top: "+(x+this.buttonHeight)+"px; height: "+C+"px",R.className=this.options.className,S.id&&R.setAttribute("annotation-id",S.id)}}}this.div.textContent="",this.div.appendChild(g)},s.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("changes",this.changeHandler),this.div.parentNode.removeChild(this.div)}})});var Eg=Se((hg,gg)=>{(function(n){typeof hg=="object"&&typeof gg=="object"?n(Nt(),Tl(),dg()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./searchcursor","../scroll/annotatescrollbar"],n):n(CodeMirror)})(function(n){"use strict";n.defineExtension("showMatchesOnScrollbar",function(h,g,m){return typeof m=="string"&&(m={className:m}),m||(m={}),new s(this,h,g,m)});function s(h,g,m,I){this.cm=h,this.options=I;var T={listenForChanges:!1};for(var G in I)T[G]=I[G];T.className||(T.className="CodeMirror-search-match"),this.annotation=h.annotateScrollbar(T),this.query=g,this.caseFold=m,this.gap={from:h.firstLine(),to:h.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var L=this;h.on("change",this.changeHandler=function(V,y){L.onChange(y)})}var a=1e3;s.prototype.findMatches=function(){if(this.gap){for(var h=0;h<this.matches.length;h++){var g=this.matches[h];if(g.from.line>=this.gap.to)break;g.to.line>=this.gap.from&&this.matches.splice(h--,1)}for(var m=this.cm.getSearchCursor(this.query,n.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),I=this.options&&this.options.maxMatches||a;m.findNext();){var g={from:m.from(),to:m.to()};if(g.from.line>=this.gap.to||(this.matches.splice(h++,0,g),this.matches.length>I))break}this.gap=null}};function u(h,g,m){return h<=g?h:Math.max(g,h+m)}s.prototype.onChange=function(h){var g=h.from.line,m=n.changeEnd(h).line,I=m-h.to.line;if(this.gap?(this.gap.from=Math.min(u(this.gap.from,g,I),h.from.line),this.gap.to=Math.max(u(this.gap.to,g,I),h.from.line)):this.gap={from:h.from.line,to:m+1},I)for(var T=0;T<this.matches.length;T++){var G=this.matches[T],L=u(G.from.line,g,I);L!=G.from.line&&(G.from=n.Pos(L,G.from.ch));var V=u(G.to.line,g,I);V!=G.to.line&&(G.to=n.Pos(V,G.to.ch))}clearTimeout(this.update);var y=this;this.update=setTimeout(function(){y.updateAfterChange()},250)},s.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},s.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}})});var vg=Se((mg,xg)=>{(function(n){typeof mg=="object"&&typeof xg=="object"?n(Nt(),Eg()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./matchesonscrollbar"],n):n(CodeMirror)})(function(n){"use strict";var s={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};function a(y){this.options={};for(var M in s)this.options[M]=(y&&y.hasOwnProperty(M)?y:s)[M];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}n.defineOption("highlightSelectionMatches",!1,function(y,M,F){if(F&&F!=n.Init&&(I(y),clearTimeout(y.state.matchHighlighter.timeout),y.state.matchHighlighter=null,y.off("cursorActivity",u),y.off("focus",h)),M){var S=y.state.matchHighlighter=new a(M);y.hasFocus()?(S.active=!0,T(y)):y.on("focus",h),y.on("cursorActivity",u)}});function u(y){var M=y.state.matchHighlighter;(M.active||y.hasFocus())&&g(y,M)}function h(y){var M=y.state.matchHighlighter;M.active||(M.active=!0,g(y,M))}function g(y,M){clearTimeout(M.timeout),M.timeout=setTimeout(function(){T(y)},M.options.delay)}function m(y,M,F,S){var x=y.state.matchHighlighter;if(y.addOverlay(x.overlay=V(M,F,S)),x.options.annotateScrollbar&&y.showMatchesOnScrollbar){var v=F?new RegExp((/\w/.test(M.charAt(0))?"\\b":"")+M.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+(/\w/.test(M.charAt(M.length-1))?"\\b":"")):M;x.matchesonscroll=y.showMatchesOnScrollbar(v,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function I(y){var M=y.state.matchHighlighter;M.overlay&&(y.removeOverlay(M.overlay),M.overlay=null,M.matchesonscroll&&(M.matchesonscroll.clear(),M.matchesonscroll=null))}function T(y){y.operation(function(){var M=y.state.matchHighlighter;if(I(y),!y.somethingSelected()&&M.options.showToken){for(var F=M.options.showToken===!0?/[\w$]/:M.options.showToken,S=y.getCursor(),x=y.getLine(S.line),v=S.ch,C=v;v&&F.test(x.charAt(v-1));)--v;for(;C<x.length&&F.test(x.charAt(C));)++C;v<C&&m(y,x.slice(v,C),F,M.options.style);return}var R=y.getCursor("from"),B=y.getCursor("to");if(R.line==B.line&&!(M.options.wordsOnly&&!G(y,R,B))){var D=y.getRange(R,B);M.options.trim&&(D=D.replace(/^\s+|\s+$/g,"")),D.length>=M.options.minChars&&m(y,D,!1,M.options.style)}})}function G(y,M,F){var S=y.getRange(M,F);if(S.match(/^\w+$/)!==null){if(M.ch>0){var x={line:M.line,ch:M.ch-1},v=y.getRange(x,M);if(v.match(/\W/)===null)return!1}if(F.ch<y.getLine(M.line).length){var x={line:F.line,ch:F.ch+1},v=y.getRange(F,x);if(v.match(/\W/)===null)return!1}return!0}else return!1}function L(y,M){return(!y.start||!M.test(y.string.charAt(y.start-1)))&&(y.pos==y.string.length||!M.test(y.string.charAt(y.pos)))}function V(y,M,F){return{token:function(S){if(S.match(y)&&(!M||L(S,M)))return F;S.next(),S.skipTo(y.charAt(0))||S.skipToEnd()}}}})});var Tg=Se((Ig,Ng)=>{(function(n){typeof Ig=="object"&&typeof Ng=="object"?n(Nt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){var s=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),a=n.Pos,u={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function h(L){return L&&L.bracketRegex||/[(){}[\]]/}function g(L,V,y){var M=L.getLineHandle(V.line),F=V.ch-1,S=y&&y.afterCursor;S==null&&(S=/(^| )cm-fat-cursor($| )/.test(L.getWrapperElement().className));var x=h(y),v=!S&&F>=0&&x.test(M.text.charAt(F))&&u[M.text.charAt(F)]||x.test(M.text.charAt(F+1))&&u[M.text.charAt(++F)];if(!v)return null;var C=v.charAt(1)==">"?1:-1;if(y&&y.strict&&C>0!=(F==V.ch))return null;var R=L.getTokenTypeAt(a(V.line,F+1)),B=m(L,a(V.line,F+(C>0?1:0)),C,R,y);return B==null?null:{from:a(V.line,F),to:B&&B.pos,match:B&&B.ch==v.charAt(0),forward:C>0}}function m(L,V,y,M,F){for(var S=F&&F.maxScanLineLength||1e4,x=F&&F.maxScanLines||1e3,v=[],C=h(F),R=y>0?Math.min(V.line+x,L.lastLine()+1):Math.max(L.firstLine()-1,V.line-x),B=V.line;B!=R;B+=y){var D=L.getLine(B);if(D){var w=y>0?0:D.length-1,Q=y>0?D.length:-1;if(!(D.length>S))for(B==V.line&&(w=V.ch-(y<0?1:0));w!=Q;w+=y){var de=D.charAt(w);if(C.test(de)&&(M===void 0||(L.getTokenTypeAt(a(B,w+1))||"")==(M||""))){var te=u[de];if(te&&te.charAt(1)==">"==y>0)v.push(de);else if(v.length)v.pop();else return{pos:a(B,w),ch:de}}}}}return B-y==(y>0?L.lastLine():L.firstLine())?!1:null}function I(L,V,y){for(var M=L.state.matchBrackets.maxHighlightLineLength||1e3,F=y&&y.highlightNonMatching,S=[],x=L.listSelections(),v=0;v<x.length;v++){var C=x[v].empty()&&g(L,x[v].head,y);if(C&&(C.match||F!==!1)&&L.getLine(C.from.line).length<=M){var R=C.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";S.push(L.markText(C.from,a(C.from.line,C.from.ch+1),{className:R})),C.to&&L.getLine(C.to.line).length<=M&&S.push(L.markText(C.to,a(C.to.line,C.to.ch+1),{className:R}))}}if(S.length){s&&L.state.focused&&L.focus();var B=function(){L.operation(function(){for(var D=0;D<S.length;D++)S[D].clear()})};if(V)setTimeout(B,800);else return B}}function T(L){L.operation(function(){L.state.matchBrackets.currentlyHighlighted&&(L.state.matchBrackets.currentlyHighlighted(),L.state.matchBrackets.currentlyHighlighted=null),L.state.matchBrackets.currentlyHighlighted=I(L,!1,L.state.matchBrackets)})}function G(L){L.state.matchBrackets&&L.state.matchBrackets.currentlyHighlighted&&(L.state.matchBrackets.currentlyHighlighted(),L.state.matchBrackets.currentlyHighlighted=null)}n.defineOption("matchBrackets",!1,function(L,V,y){y&&y!=n.Init&&(L.off("cursorActivity",T),L.off("focus",T),L.off("blur",G),G(L)),V&&(L.state.matchBrackets=typeof V=="object"?V:{},L.on("cursorActivity",T),L.on("focus",T),L.on("blur",G))}),n.defineExtension("matchBrackets",function(){I(this,!0)}),n.defineExtension("findMatchingBracket",function(L,V,y){return(y||typeof V=="boolean")&&(y?(y.strict=V,V=y):V=V?{strict:!0}:null),g(this,L,V)}),n.defineExtension("scanForBracket",function(L,V,y,M){return m(this,L,V,y,M)})})});var Sg=Se((Ag,Cg)=>{(function(n){typeof Ag=="object"&&typeof Cg=="object"?n(Nt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){"use strict";n.runMode=function(s,a,u,h){var g=n.getMode(n.defaults,a),m=h&&h.tabSize||n.defaults.tabSize;if(u.appendChild){var I=/MSIE \d/.test(navigator.userAgent),T=I&&(document.documentMode==null||document.documentMode<9),G=u,L=0;G.textContent="",u=function(v,C){if(v==`
|
|
37
|
+
`){G.appendChild(document.createTextNode(T?"\r":v)),L=0;return}for(var R="",B=0;;){var D=v.indexOf(" ",B);if(D==-1){R+=v.slice(B),L+=v.length-B;break}else{L+=D-B,R+=v.slice(B,D);var w=m-L%m;L+=w;for(var Q=0;Q<w;++Q)R+=" ";B=D+1}}if(C){var de=G.appendChild(document.createElement("span"));de.className="cm-"+C.replace(/ +/g," cm-"),de.appendChild(document.createTextNode(R))}else G.appendChild(document.createTextNode(R))}}for(var V=n.splitLines(s),y=h&&h.state||n.startState(g),M=0,F=V.length;M<F;++M){M&&u(`
|
|
38
|
+
`);var S=new n.StringStream(V[M],null,{lookAhead:function(v){return V[M+v]},baseToken:function(){}});for(!S.string&&g.blankLine&&g.blankLine(y);!S.eol();){var x=g.token(S,y);u(S.current(),x,M,S.start,y,g),S.start=S.pos}}}})});var XC={};Tp(XC,{Yasqe:()=>xn,default:()=>YC});var Jn=ft(Nt());function Cp(n,s,a){return a||(a=n.getDoc().getCursor()),s||(s=n.getTokenAt(a)),Lp(n,Sp(n,s,a),a)}function Sp(n,s,a){var u=n.getTokenAt({line:a.line,ch:s.start});return(s.type==="punc"||s.type==="error")&&!s.state.possibleFullIri&&!s.state.inPrefixDecl?(s.state.possibleCurrent=s.state.possibleNext,s):u.type==="punc"&&!u.state.possibleFullIri&&!u.state.inPrefixDecl?s:u.type!=null&&u.type!="ws"&&s.type!=null&&s.type!="ws"?(s.start=u.start,s.string=u.string+s.string,Sp(n,s,{line:a.line,ch:u.start})):(s.type!=null&&s.type=="ws"&&(s.start=s.start+1,s.string=s.string.substring(1)),s)}function Lp(n,s,a){if(s.string.indexOf(" ")>=0){let h=s.string.indexOf(" ");return s.string=s.string.substr(0,h),s.end=s.start+s.string.length,s}if(!s.type)return s;var u=n.getTokenAt({line:a.line,ch:s.end+1});return u.type!=="ws"&&s.state.possibleFullIri&&s.type!==null&&s.type!=="ws"&&u.end!==s.end?(s.end=u.end,s.string=s.string+u.string,Lp(n,s,{line:a.line,ch:u.end})):(s.type==="ws"&&(s.end=s.end+1,s.string=s.string.substring(s.string.length-1)),s)}function Da(n,s,a){var u=n.getTokenAt({line:s,ch:a.start});return u!=null&&u.type=="ws"&&(u=Da(n,s,u)),u}function zi(n,s,a){a==null&&(a=1);var u=n.getTokenAt({line:s,ch:a});if(!(u==null||u==null||u.end<a))return u.type=="ws"?zi(n,s,u.end+1):u}var qo="PREFIX ";function Rp(n){for(var s=n.getDoc().lastLine(),a=0;a<=s;++a){let u=yp(n,a);if(u!=null&&u>=0)return a}}function yp(n,s,a=0,u){u||(u=n.getDoc().getLine(s)),u=u.toUpperCase();let h=u.indexOf(qo,a);if(h>=0&&n.getTokenTypeAt(Jn.default.Pos(s,h+1))==="keyword")return h}function bp(n,s){var a=s.line,u=n.getDoc().getLine(a);function h(){for(var v=!1,C=a-1;C>=0;C--)if(n.getDoc().getLine(C).toUpperCase().indexOf(qo)>=0){v=!0;break}return v}var g=function(v,C){var R=n.getTokenAt(Jn.default.Pos(v,C+1));if(!R||R.type!="keyword")return-1;var B=zi(n,v,R.end+1);if(!B||B.type!="string-2")return-1;var D=zi(n,v,B.end+1);return!D||D.type!="variable-3"?-1:D.end};if(!h()){var m=yp(n,a,s.ch,u);if(m!=null){for(var I="{",T=!1,G=n.getDoc().lastLine(),L,V=g(a,m),y=a,M=a;M<=G&&!T;++M)for(var F=n.getDoc().getLine(M),S=M==a?m+1:0;;){!T&&F.indexOf(I)>=0&&(T=!0);var x=F.toUpperCase().indexOf(qo,S);if(x>=0)(L=g(M,x))>0&&(V=L,y=M,S=V),S++;else break}return{from:Jn.default.Pos(a,m+qo.length),to:Jn.default.Pos(y,V)}}}}function Gp(n,s){var a=n.getPrefixesFromQuery();if(typeof s=="string")Op(n,s);else for(var u in s)u in a||Op(n,u+": <"+s[u]+">");n.collapsePrefixes(!1)}function Op(n,s){n.getDoc().replaceRange("PREFIX "+s+`
|
|
39
|
+
`,{line:0,ch:0}),n.collapsePrefixes(!1)}function Up(n,s){var a=function(h){return h.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")};for(var u in s)n.setValue(n.getValue().replace(new RegExp("PREFIX\\s*"+u+":\\s*"+a("<"+s[u]+">")+"\\s*","ig"),""));n.collapsePrefixes(!1)}function Fp(n){return n.getTokenAt({line:n.getDoc().lastLine(),ch:n.getDoc().getLine(n.getDoc().lastLine()).length},!0).state.prefixes}var{entries:kp,setPrototypeOf:Bp,isFrozen:Um,getPrototypeOf:Fm,getOwnPropertyDescriptor:Bm}=Object,{freeze:Ut,seal:$t,create:ka}=Object,{apply:Za,construct:Ha}=typeof Reflect<"u"&&Reflect;Ut||(Ut=function(s){return s});$t||($t=function(s){return s});Za||(Za=function(s,a){for(var u=arguments.length,h=new Array(u>2?u-2:0),g=2;g<u;g++)h[g-2]=arguments[g];return s.apply(a,h)});Ha||(Ha=function(s){for(var a=arguments.length,u=new Array(a>1?a-1:0),h=1;h<a;h++)u[h-1]=arguments[h];return new s(...u)});var Ko=Ft(Array.prototype.forEach),Dm=Ft(Array.prototype.lastIndexOf),Dp=Ft(Array.prototype.pop),jn=Ft(Array.prototype.push),Mm=Ft(Array.prototype.splice),es=Ft(String.prototype.toLowerCase),Ma=Ft(String.prototype.toString),Pa=Ft(String.prototype.match),zn=Ft(String.prototype.replace),Pm=Ft(String.prototype.indexOf),Vm=Ft(String.prototype.trim),ar=Ft(Object.prototype.hasOwnProperty),Gt=Ft(RegExp.prototype.test),qn=wm(TypeError);function Ft(n){return function(s){s instanceof RegExp&&(s.lastIndex=0);for(var a=arguments.length,u=new Array(a>1?a-1:0),h=1;h<a;h++)u[h-1]=arguments[h];return Za(n,s,u)}}function wm(n){return function(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];return Ha(n,a)}}function xe(n,s){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:es;Bp&&Bp(n,null);let u=s.length;for(;u--;){let h=s[u];if(typeof h=="string"){let g=a(h);g!==h&&(Um(s)||(s[u]=g),h=g)}n[h]=!0}return n}function _m(n){for(let s=0;s<n.length;s++)ar(n,s)||(n[s]=null);return n}function yr(n){let s=ka(null);for(let[a,u]of kp(n))ar(n,a)&&(Array.isArray(u)?s[a]=_m(u):u&&typeof u=="object"&&u.constructor===Object?s[a]=yr(u):s[a]=u);return s}function Kn(n,s){for(;n!==null;){let u=Bm(n,s);if(u){if(u.get)return Ft(u.get);if(typeof u.value=="function")return Ft(u.value)}n=Fm(n)}function a(){return null}return a}var Mp=Ut(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Va=Ut(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),wa=Ut(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Wm=Ut(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),_a=Ut(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),km=Ut(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Pp=Ut(["#text"]),Vp=Ut(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Wa=Ut(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),wp=Ut(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),$o=Ut(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Zm=$t(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Hm=$t(/<%[\w\W]*|[\w\W]*%>/gm),Qm=$t(/\$\{[\w\W]*/gm),Ym=$t(/^data-[\-\w.\u00B7-\uFFFF]+$/),Xm=$t(/^aria-[\-\w]+$/),Zp=$t(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Jm=$t(/^(?:\w+script|data):/i),jm=$t(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Hp=$t(/^html$/i),zm=$t(/^[a-z][.\w]*(-[.\w]+)+$/i),_p=Object.freeze({__proto__:null,ARIA_ATTR:Xm,ATTR_WHITESPACE:jm,CUSTOM_ELEMENT:zm,DATA_ATTR:Ym,DOCTYPE_NAME:Hp,ERB_EXPR:Hm,IS_ALLOWED_URI:Zp,IS_SCRIPT_OR_DATA:Jm,MUSTACHE_EXPR:Zm,TMPLIT_EXPR:Qm}),$n={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},qm=function(){return typeof window>"u"?null:window},Km=function(s,a){if(typeof s!="object"||typeof s.createPolicy!="function")return null;let u=null,h="data-tt-policy-suffix";a&&a.hasAttribute(h)&&(u=a.getAttribute(h));let g="dompurify"+(u?"#"+u:"");try{return s.createPolicy(g,{createHTML(m){return m},createScriptURL(m){return m}})}catch{return console.warn("TrustedTypes policy "+g+" could not be created."),null}},Wp=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Qp(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qm(),s=oe=>Qp(oe);if(s.version="3.3.0",s.removed=[],!n||!n.document||n.document.nodeType!==$n.document||!n.Element)return s.isSupported=!1,s;let{document:a}=n,u=a,h=u.currentScript,{DocumentFragment:g,HTMLTemplateElement:m,Node:I,Element:T,NodeFilter:G,NamedNodeMap:L=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:V,DOMParser:y,trustedTypes:M}=n,F=T.prototype,S=Kn(F,"cloneNode"),x=Kn(F,"remove"),v=Kn(F,"nextSibling"),C=Kn(F,"childNodes"),R=Kn(F,"parentNode");if(typeof m=="function"){let oe=a.createElement("template");oe.content&&oe.content.ownerDocument&&(a=oe.content.ownerDocument)}let B,D="",{implementation:w,createNodeIterator:Q,createDocumentFragment:de,getElementsByTagName:te}=a,{importNode:ue}=u,le=Wp();s.isSupported=typeof kp=="function"&&typeof R=="function"&&w&&w.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:me,ERB_EXPR:Y,TMPLIT_EXPR:Oe,DATA_ATTR:Be,ARIA_ATTR:et,IS_SCRIPT_OR_DATA:je,ATTR_WHITESPACE:Le,CUSTOM_ELEMENT:Tt}=_p,{IS_ALLOWED_URI:At}=_p,Ae=null,Ct=xe({},[...Mp,...Va,...wa,..._a,...Pp]),Ie=null,Ht=xe({},[...Vp,...Wa,...wp,...$o]),he=Object.seal(ka(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ze=null,De=null,tt=Object.seal(ka(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Ue=!0,Jt=!0,re=!1,k=!0,Ze=!1,Te=!0,ve=!1,We=!1,jt=!1,$=!1,Qt=!1,dt=!1,Pt=!0,Ur=!1,ti="user-content-",tr=!0,ie=!1,He={},zt=null,qt=xe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Kt=null,Fr=xe({},["audio","video","img","source","image","track"]),vn=null,Br=xe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pr="http://www.w3.org/1998/Math/MathML",Ai="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",vr=rt,se=!1,ri=null,St=xe({},[pr,Ai,rt],Ma),Fe=xe({},["mi","mo","mn","ms","mtext"]),Ve=xe({},["annotation-xml"]),fo=xe({},["title","style","font","a","script"]),pt=null,Dr=["application/xhtml+xml","text/html"],ht="text/html",Ye=null,cr=null,ii=a.createElement("form"),Ci=function(b){return b instanceof RegExp||b instanceof Function},Si=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(cr&&cr===b)){if((!b||typeof b!="object")&&(b={}),b=yr(b),pt=Dr.indexOf(b.PARSER_MEDIA_TYPE)===-1?ht:b.PARSER_MEDIA_TYPE,Ye=pt==="application/xhtml+xml"?Ma:es,Ae=ar(b,"ALLOWED_TAGS")?xe({},b.ALLOWED_TAGS,Ye):Ct,Ie=ar(b,"ALLOWED_ATTR")?xe({},b.ALLOWED_ATTR,Ye):Ht,ri=ar(b,"ALLOWED_NAMESPACES")?xe({},b.ALLOWED_NAMESPACES,Ma):St,vn=ar(b,"ADD_URI_SAFE_ATTR")?xe(yr(Br),b.ADD_URI_SAFE_ATTR,Ye):Br,Kt=ar(b,"ADD_DATA_URI_TAGS")?xe(yr(Fr),b.ADD_DATA_URI_TAGS,Ye):Fr,zt=ar(b,"FORBID_CONTENTS")?xe({},b.FORBID_CONTENTS,Ye):qt,ze=ar(b,"FORBID_TAGS")?xe({},b.FORBID_TAGS,Ye):yr({}),De=ar(b,"FORBID_ATTR")?xe({},b.FORBID_ATTR,Ye):yr({}),He=ar(b,"USE_PROFILES")?b.USE_PROFILES:!1,Ue=b.ALLOW_ARIA_ATTR!==!1,Jt=b.ALLOW_DATA_ATTR!==!1,re=b.ALLOW_UNKNOWN_PROTOCOLS||!1,k=b.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ze=b.SAFE_FOR_TEMPLATES||!1,Te=b.SAFE_FOR_XML!==!1,ve=b.WHOLE_DOCUMENT||!1,$=b.RETURN_DOM||!1,Qt=b.RETURN_DOM_FRAGMENT||!1,dt=b.RETURN_TRUSTED_TYPE||!1,jt=b.FORCE_BODY||!1,Pt=b.SANITIZE_DOM!==!1,Ur=b.SANITIZE_NAMED_PROPS||!1,tr=b.KEEP_CONTENT!==!1,ie=b.IN_PLACE||!1,At=b.ALLOWED_URI_REGEXP||Zp,vr=b.NAMESPACE||rt,Fe=b.MATHML_TEXT_INTEGRATION_POINTS||Fe,Ve=b.HTML_INTEGRATION_POINTS||Ve,he=b.CUSTOM_ELEMENT_HANDLING||{},b.CUSTOM_ELEMENT_HANDLING&&Ci(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(he.tagNameCheck=b.CUSTOM_ELEMENT_HANDLING.tagNameCheck),b.CUSTOM_ELEMENT_HANDLING&&Ci(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(he.attributeNameCheck=b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),b.CUSTOM_ELEMENT_HANDLING&&typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(he.allowCustomizedBuiltInElements=b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ze&&(Jt=!1),Qt&&($=!0),He&&(Ae=xe({},Pp),Ie=[],He.html===!0&&(xe(Ae,Mp),xe(Ie,Vp)),He.svg===!0&&(xe(Ae,Va),xe(Ie,Wa),xe(Ie,$o)),He.svgFilters===!0&&(xe(Ae,wa),xe(Ie,Wa),xe(Ie,$o)),He.mathMl===!0&&(xe(Ae,_a),xe(Ie,wp),xe(Ie,$o))),b.ADD_TAGS&&(typeof b.ADD_TAGS=="function"?tt.tagCheck=b.ADD_TAGS:(Ae===Ct&&(Ae=yr(Ae)),xe(Ae,b.ADD_TAGS,Ye))),b.ADD_ATTR&&(typeof b.ADD_ATTR=="function"?tt.attributeCheck=b.ADD_ATTR:(Ie===Ht&&(Ie=yr(Ie)),xe(Ie,b.ADD_ATTR,Ye))),b.ADD_URI_SAFE_ATTR&&xe(vn,b.ADD_URI_SAFE_ATTR,Ye),b.FORBID_CONTENTS&&(zt===qt&&(zt=yr(zt)),xe(zt,b.FORBID_CONTENTS,Ye)),tr&&(Ae["#text"]=!0),ve&&xe(Ae,["html","head","body"]),Ae.table&&(xe(Ae,["tbody"]),delete ze.tbody),b.TRUSTED_TYPES_POLICY){if(typeof b.TRUSTED_TYPES_POLICY.createHTML!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof b.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');B=b.TRUSTED_TYPES_POLICY,D=B.createHTML("")}else B===void 0&&(B=Km(M,h)),B!==null&&typeof D=="string"&&(D=B.createHTML(""));Ut&&Ut(b),cr=b}},ho=xe({},[...Va,...wa,...Wm]),Li=xe({},[..._a,...km]),Ms=function(b){let H=R(b);(!H||!H.tagName)&&(H={namespaceURI:vr,tagName:"template"});let ee=es(b.tagName),Re=es(H.tagName);return ri[b.namespaceURI]?b.namespaceURI===Ai?H.namespaceURI===rt?ee==="svg":H.namespaceURI===pr?ee==="svg"&&(Re==="annotation-xml"||Fe[Re]):!!ho[ee]:b.namespaceURI===pr?H.namespaceURI===rt?ee==="math":H.namespaceURI===Ai?ee==="math"&&Ve[Re]:!!Li[ee]:b.namespaceURI===rt?H.namespaceURI===Ai&&!Ve[Re]||H.namespaceURI===pr&&!Fe[Re]?!1:!Li[ee]&&(fo[ee]||!ho[ee]):!!(pt==="application/xhtml+xml"&&ri[b.namespaceURI]):!1},Vt=function(b){jn(s.removed,{element:b});try{R(b).removeChild(b)}catch{x(b)}},Ir=function(b,H){try{jn(s.removed,{attribute:H.getAttributeNode(b),from:H})}catch{jn(s.removed,{attribute:null,from:H})}if(H.removeAttribute(b),b==="is")if($||Qt)try{Vt(H)}catch{}else try{H.setAttribute(b,"")}catch{}},Ri=function(b){let H=null,ee=null;if(jt)b="<remove></remove>"+b;else{let ge=Pa(b,/^[\r\n\t ]+/);ee=ge&&ge[0]}pt==="application/xhtml+xml"&&vr===rt&&(b='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+b+"</body></html>");let Re=B?B.createHTML(b):b;if(vr===rt)try{H=new y().parseFromString(Re,pt)}catch{}if(!H||!H.documentElement){H=w.createDocument(vr,"template",null);try{H.documentElement.innerHTML=se?D:Re}catch{}}let it=H.body||H.documentElement;return b&&ee&&it.insertBefore(a.createTextNode(ee),it.childNodes[0]||null),vr===rt?te.call(H,ve?"html":"body")[0]:ve?H.documentElement:it},go=function(b){return Q.call(b.ownerDocument||b,b,G.SHOW_ELEMENT|G.SHOW_COMMENT|G.SHOW_TEXT|G.SHOW_PROCESSING_INSTRUCTION|G.SHOW_CDATA_SECTION,null)},In=function(b){return b instanceof V&&(typeof b.nodeName!="string"||typeof b.textContent!="string"||typeof b.removeChild!="function"||!(b.attributes instanceof L)||typeof b.removeAttribute!="function"||typeof b.setAttribute!="function"||typeof b.namespaceURI!="string"||typeof b.insertBefore!="function"||typeof b.hasChildNodes!="function")},yi=function(b){return typeof I=="function"&&b instanceof I};function rr(oe,b,H){Ko(oe,ee=>{ee.call(s,b,H,cr)})}let bi=function(b){let H=null;if(rr(le.beforeSanitizeElements,b,null),In(b))return Vt(b),!0;let ee=Ye(b.nodeName);if(rr(le.uponSanitizeElement,b,{tagName:ee,allowedTags:Ae}),Te&&b.hasChildNodes()&&!yi(b.firstElementChild)&&Gt(/<[/\w!]/g,b.innerHTML)&&Gt(/<[/\w!]/g,b.textContent)||b.nodeType===$n.progressingInstruction||Te&&b.nodeType===$n.comment&&Gt(/<[/\w]/g,b.data))return Vt(b),!0;if(!(tt.tagCheck instanceof Function&&tt.tagCheck(ee))&&(!Ae[ee]||ze[ee])){if(!ze[ee]&&Eo(ee)&&(he.tagNameCheck instanceof RegExp&&Gt(he.tagNameCheck,ee)||he.tagNameCheck instanceof Function&&he.tagNameCheck(ee)))return!1;if(tr&&!zt[ee]){let Re=R(b)||b.parentNode,it=C(b)||b.childNodes;if(it&&Re){let ge=it.length;for(let q=ge-1;q>=0;--q){let gt=S(it[q],!0);gt.__removalCount=(b.__removalCount||0)+1,Re.insertBefore(gt,v(b))}}}return Vt(b),!0}return b instanceof T&&!Ms(b)||(ee==="noscript"||ee==="noembed"||ee==="noframes")&&Gt(/<\/no(script|embed|frames)/i,b.innerHTML)?(Vt(b),!0):(Ze&&b.nodeType===$n.text&&(H=b.textContent,Ko([me,Y,Oe],Re=>{H=zn(H,Re," ")}),b.textContent!==H&&(jn(s.removed,{element:b.cloneNode()}),b.textContent=H)),rr(le.afterSanitizeElements,b,null),!1)},Nr=function(b,H,ee){if(Pt&&(H==="id"||H==="name")&&(ee in a||ee in ii))return!1;if(!(Jt&&!De[H]&&Gt(Be,H))){if(!(Ue&&Gt(et,H))){if(!(tt.attributeCheck instanceof Function&&tt.attributeCheck(H,b))){if(!Ie[H]||De[H]){if(!(Eo(b)&&(he.tagNameCheck instanceof RegExp&&Gt(he.tagNameCheck,b)||he.tagNameCheck instanceof Function&&he.tagNameCheck(b))&&(he.attributeNameCheck instanceof RegExp&&Gt(he.attributeNameCheck,H)||he.attributeNameCheck instanceof Function&&he.attributeNameCheck(H,b))||H==="is"&&he.allowCustomizedBuiltInElements&&(he.tagNameCheck instanceof RegExp&&Gt(he.tagNameCheck,ee)||he.tagNameCheck instanceof Function&&he.tagNameCheck(ee))))return!1}else if(!vn[H]){if(!Gt(At,zn(ee,Le,""))){if(!((H==="src"||H==="xlink:href"||H==="href")&&b!=="script"&&Pm(ee,"data:")===0&&Kt[b])){if(!(re&&!Gt(je,zn(ee,Le,"")))){if(ee)return!1}}}}}}}return!0},Eo=function(b){return b!=="annotation-xml"&&Pa(b,Tt)},mo=function(b){rr(le.beforeSanitizeAttributes,b,null);let{attributes:H}=b;if(!H||In(b))return;let ee={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ie,forceKeepAttr:void 0},Re=H.length;for(;Re--;){let it=H[Re],{name:ge,namespaceURI:q,value:gt}=it,fr=Ye(ge),wt=gt,pe=ge==="value"?wt:Vm(wt);if(ee.attrName=fr,ee.attrValue=pe,ee.keepAttr=!0,ee.forceKeepAttr=void 0,rr(le.uponSanitizeAttribute,b,ee),pe=ee.attrValue,Ur&&(fr==="id"||fr==="name")&&(Ir(ge,b),pe=ti+pe),Te&&Gt(/((--!?|])>)|<\/(style|title|textarea)/i,pe)){Ir(ge,b);continue}if(fr==="attributename"&&Pa(pe,"href")){Ir(ge,b);continue}if(ee.forceKeepAttr)continue;if(!ee.keepAttr){Ir(ge,b);continue}if(!k&&Gt(/\/>/i,pe)){Ir(ge,b);continue}Ze&&Ko([me,Y,Oe],Mr=>{pe=zn(pe,Mr," ")});let dr=Ye(b.nodeName);if(!Nr(dr,fr,pe)){Ir(ge,b);continue}if(B&&typeof M=="object"&&typeof M.getAttributeType=="function"&&!q)switch(M.getAttributeType(dr,fr)){case"TrustedHTML":{pe=B.createHTML(pe);break}case"TrustedScriptURL":{pe=B.createScriptURL(pe);break}}if(pe!==wt)try{q?b.setAttributeNS(q,ge,pe):b.setAttribute(ge,pe),In(b)?Vt(b):Dp(s.removed)}catch{Ir(ge,b)}}rr(le.afterSanitizeAttributes,b,null)},Oi=function oe(b){let H=null,ee=go(b);for(rr(le.beforeSanitizeShadowDOM,b,null);H=ee.nextNode();)rr(le.uponSanitizeShadowNode,H,null),bi(H),mo(H),H.content instanceof g&&oe(H.content);rr(le.afterSanitizeShadowDOM,b,null)};return s.sanitize=function(oe){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},H=null,ee=null,Re=null,it=null;if(se=!oe,se&&(oe="<!-->"),typeof oe!="string"&&!yi(oe))if(typeof oe.toString=="function"){if(oe=oe.toString(),typeof oe!="string")throw qn("dirty is not a string, aborting")}else throw qn("toString is not a function");if(!s.isSupported)return oe;if(We||Si(b),s.removed=[],typeof oe=="string"&&(ie=!1),ie){if(oe.nodeName){let gt=Ye(oe.nodeName);if(!Ae[gt]||ze[gt])throw qn("root node is forbidden and cannot be sanitized in-place")}}else if(oe instanceof I)H=Ri("<!---->"),ee=H.ownerDocument.importNode(oe,!0),ee.nodeType===$n.element&&ee.nodeName==="BODY"||ee.nodeName==="HTML"?H=ee:H.appendChild(ee);else{if(!$&&!Ze&&!ve&&oe.indexOf("<")===-1)return B&&dt?B.createHTML(oe):oe;if(H=Ri(oe),!H)return $?null:dt?D:""}H&&jt&&Vt(H.firstChild);let ge=go(ie?oe:H);for(;Re=ge.nextNode();)bi(Re),mo(Re),Re.content instanceof g&&Oi(Re.content);if(ie)return oe;if($){if(Qt)for(it=de.call(H.ownerDocument);H.firstChild;)it.appendChild(H.firstChild);else it=H;return(Ie.shadowroot||Ie.shadowrootmode)&&(it=ue.call(u,it,!0)),it}let q=ve?H.outerHTML:H.innerHTML;return ve&&Ae["!doctype"]&&H.ownerDocument&&H.ownerDocument.doctype&&H.ownerDocument.doctype.name&&Gt(Hp,H.ownerDocument.doctype.name)&&(q="<!DOCTYPE "+H.ownerDocument.doctype.name+`>
|
|
40
|
+
`+q),Ze&&Ko([me,Y,Oe],gt=>{q=zn(q,gt," ")}),B&&dt?B.createHTML(q):q},s.setConfig=function(){let oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Si(oe),We=!0},s.clearConfig=function(){cr=null,We=!1},s.isValidAttribute=function(oe,b,H){cr||Si({});let ee=Ye(oe),Re=Ye(b);return Nr(ee,Re,H)},s.addHook=function(oe,b){typeof b=="function"&&jn(le[oe],b)},s.removeHook=function(oe,b){if(b!==void 0){let H=Dm(le[oe],b);return H===-1?void 0:Mm(le[oe],H,1)[0]}return Dp(le[oe])},s.removeHooks=function(oe){le[oe]=[]},s.removeAllHooks=function(){le=Wp()},s}var Yp=Qp();var lr=ft(Ac()),mi=class{constructor(s){this.namespace=s}set(s,a,u,h){if(lr.default.enabled&&(this.removeExpiredKeys(),s&&a!==void 0)){a.documentElement&&(a=new XMLSerializer().serializeToString(a.documentElement));try{lr.default.set(s,{namespace:this.namespace,val:a,exp:u,time:new Date().getTime()/1e3})}catch(g){if(g instanceof Error){let m=g;if(m.quotaExceeded=rv(g),m.quotaExceeded&&h)h(g);else throw m}throw g}}}remove(s){lr.default.enabled&&s&&lr.default.remove(s)}removeExpiredKeys(){lr.default.enabled&&lr.default.each((s,a)=>{s&&s.exp&&new Date().getTime()/1e3-s.time>s.exp&&this.remove(a)})}removeAll(){lr.default.enabled}removeNamespace(){lr.default.each((s,a)=>{s.namespace&&s.namespace===this.namespace&&this.remove(a)})}get(s){if(lr.default.enabled&&s)if(this.removeExpiredKeys(),s){var a=lr.default.get(s);return a?a.val:void 0}else return}};function rv(n){var s=!1;if(n)if(n.code)switch(n.code){case 22:s=!0;break;case 1014:n.name==="NS_ERROR_DOM_QUOTA_REACHED"&&(s=!0);break}else n.number===-2147024882&&(s=!0);return s}var{sanitize:gS}=Yp;function xi(n){if(n&&n.trim().indexOf("<svg")==0){var s=new DOMParser,a=s.parseFromString(n,"text/xml"),u=a.documentElement;u.setAttribute("aria-hidden","true");var h=document.createElement("div");return h.className="svgImg",h.appendChild(u),h}throw new Error("No svg string given. Cannot draw")}function Cc(n,s){if(n)return n.classList?n.classList.contains(s):!!n.className.match(new RegExp("(\\s|^)"+s+"(\\s|$)"))}function Bt(n,...s){if(n)for(let a of s)n.classList?n.classList.add(a):Cc(n,a)||(n.className+=" "+a)}function no(n,s){if(n){if(n.classList)n.classList.remove(s);else if(Cc(n,s)){var a=new RegExp("(\\s|^)"+s+"(\\s|$)");n.className=n.className.replace(a," ")}}}var Ds=ft(ts());function rs(n,s,a){var u;s.onmouseover=function(){u||(u=document.createElement("div"),u.className="yasqe_tooltip"),u.style.display="block",u.innerHTML=a,s.appendChild(u)},s.onmouseout=function(){u&&(u.style.display="none"),u.innerHTML=a}}var gl={};Tp(gl,{executeQuery:()=>dl,getAcceptHeader:()=>Nh,getAjaxConfig:()=>fl,getAsCurlString:()=>hl,getUrlArguments:()=>Ih});var fv=typeof global=="object"&&global&&global.Object===Object&&global,is=fv;var dv=typeof self=="object"&&self&&self.Object===Object&&self,hv=is||dv||Function("return this")(),Ke=hv;var gv=Ke.Symbol,Dt=gv;var Zc=Object.prototype,Ev=Zc.hasOwnProperty,mv=Zc.toString,oo=Dt?Dt.toStringTag:void 0;function xv(n){var s=Ev.call(n,oo),a=n[oo];try{n[oo]=void 0;var u=!0}catch{}var h=mv.call(n);return u&&(s?n[oo]=a:delete n[oo]),h}var Hc=xv;var vv=Object.prototype,Iv=vv.toString;function Nv(n){return Iv.call(n)}var Qc=Nv;var Tv="[object Null]",Av="[object Undefined]",Yc=Dt?Dt.toStringTag:void 0;function Cv(n){return n==null?n===void 0?Av:Tv:Yc&&Yc in Object(n)?Hc(n):Qc(n)}var Xt=Cv;function Sv(n){return n!=null&&typeof n=="object"}var Mt=Sv;var Lv="[object Symbol]";function Rv(n){return typeof n=="symbol"||Mt(n)&&Xt(n)==Lv}var ur=Rv;function yv(n,s){for(var a=-1,u=n==null?0:n.length,h=Array(u);++a<u;)h[a]=s(n[a],a,n);return h}var en=yv;var bv=Array.isArray,_e=bv;var Ov=1/0,Xc=Dt?Dt.prototype:void 0,Jc=Xc?Xc.toString:void 0;function jc(n){if(typeof n=="string")return n;if(_e(n))return en(n,jc)+"";if(ur(n))return Jc?Jc.call(n):"";var s=n+"";return s=="0"&&1/n==-Ov?"-0":s}var zc=jc;var Gv=/\s/;function Uv(n){for(var s=n.length;s--&&Gv.test(n.charAt(s)););return s}var qc=Uv;var Fv=/^\s+/;function Bv(n){return n&&n.slice(0,qc(n)+1).replace(Fv,"")}var Kc=Bv;function Dv(n){var s=typeof n;return n!=null&&(s=="object"||s=="function")}var ut=Dv;var $c=NaN,Mv=/^[-+]0x[0-9a-f]+$/i,Pv=/^0b[01]+$/i,Vv=/^0o[0-7]+$/i,wv=parseInt;function _v(n){if(typeof n=="number")return n;if(ur(n))return $c;if(ut(n)){var s=typeof n.valueOf=="function"?n.valueOf():n;n=ut(s)?s+"":s}if(typeof n!="string")return n===0?n:+n;n=Kc(n);var a=Pv.test(n);return a||Vv.test(n)?wv(n.slice(2),a?2:8):Mv.test(n)?$c:+n}var ef=_v;var tf=1/0,Wv=17976931348623157e292;function kv(n){if(!n)return n===0?n:0;if(n=ef(n),n===tf||n===-tf){var s=n<0?-1:1;return s*Wv}return n===n?n:0}var rf=kv;function Zv(n){var s=rf(n),a=s%1;return s===s?a?s-a:s:0}var nf=Zv;function Hv(n){return n}var Xr=Hv;var Qv="[object AsyncFunction]",Yv="[object Function]",Xv="[object GeneratorFunction]",Jv="[object Proxy]";function jv(n){if(!ut(n))return!1;var s=Xt(n);return s==Yv||s==Xv||s==Qv||s==Jv}var $e=jv;var zv=Ke["__core-js_shared__"],ns=zv;var of=function(){var n=/[^.]+$/.exec(ns&&ns.keys&&ns.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function qv(n){return!!of&&of in n}var sf=qv;var Kv=Function.prototype,$v=Kv.toString;function eI(n){if(n!=null){try{return $v.call(n)}catch{}try{return n+""}catch{}}return""}var br=eI;var tI=/[\\^$.*+?()[\]{}|]/g,rI=/^\[object .+?Constructor\]$/,iI=Function.prototype,nI=Object.prototype,oI=iI.toString,sI=nI.hasOwnProperty,aI=RegExp("^"+oI.call(sI).replace(tI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function lI(n){if(!ut(n)||sf(n))return!1;var s=$e(n)?aI:rI;return s.test(br(n))}var af=lI;function uI(n,s){return n?.[s]}var lf=uI;function pI(n,s){var a=lf(n,s);return af(a)?a:void 0}var Zt=pI;var cI=Zt(Ke,"WeakMap"),os=cI;var uf=Object.create,fI=function(){function n(){}return function(s){if(!ut(s))return{};if(uf)return uf(s);n.prototype=s;var a=new n;return n.prototype=void 0,a}}(),pf=fI;function dI(n,s,a){switch(a.length){case 0:return n.call(s);case 1:return n.call(s,a[0]);case 2:return n.call(s,a[0],a[1]);case 3:return n.call(s,a[0],a[1],a[2])}return n.apply(s,a)}var cf=dI;function hI(n,s){var a=-1,u=n.length;for(s||(s=Array(u));++a<u;)s[a]=n[a];return s}var ff=hI;var gI=800,EI=16,mI=Date.now;function xI(n){var s=0,a=0;return function(){var u=mI(),h=EI-(u-a);if(a=u,h>0){if(++s>=gI)return arguments[0]}else s=0;return n.apply(void 0,arguments)}}var df=xI;function vI(n){return function(){return n}}var hf=vI;var II=function(){try{var n=Zt(Object,"defineProperty");return n({},"",{}),n}catch{}}(),tn=II;var NI=tn?function(n,s){return tn(n,"toString",{configurable:!0,enumerable:!1,value:hf(s),writable:!0})}:Xr,gf=NI;var TI=df(gf),Ef=TI;var AI=9007199254740991,CI=/^(?:0|[1-9]\d*)$/;function SI(n,s){var a=typeof n;return s=s??AI,!!s&&(a=="number"||a!="symbol"&&CI.test(n))&&n>-1&&n%1==0&&n<s}var rn=SI;function LI(n,s,a){s=="__proto__"&&tn?tn(n,s,{configurable:!0,enumerable:!0,value:a,writable:!0}):n[s]=a}var nn=LI;function RI(n,s){return n===s||n!==n&&s!==s}var xr=RI;var yI=Object.prototype,bI=yI.hasOwnProperty;function OI(n,s,a){var u=n[s];(!(bI.call(n,s)&&xr(u,a))||a===void 0&&!(s in n))&&nn(n,s,a)}var mf=OI;function GI(n,s,a,u){var h=!a;a||(a={});for(var g=-1,m=s.length;++g<m;){var I=s[g],T=u?u(a[I],n[I],I,a,n):void 0;T===void 0&&(T=n[I]),h?nn(a,I,T):mf(a,I,T)}return a}var xf=GI;var vf=Math.max;function UI(n,s,a){return s=vf(s===void 0?n.length-1:s,0),function(){for(var u=arguments,h=-1,g=vf(u.length-s,0),m=Array(g);++h<g;)m[h]=u[s+h];h=-1;for(var I=Array(s+1);++h<s;)I[h]=u[h];return I[s]=a(m),cf(n,this,I)}}var If=UI;function FI(n,s){return Ef(If(n,s,Xr),n+"")}var ss=FI;var BI=9007199254740991;function DI(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=BI}var on=DI;function MI(n){return n!=null&&on(n.length)&&!$e(n)}var er=MI;function PI(n,s,a){if(!ut(a))return!1;var u=typeof s;return(u=="number"?er(a)&&rn(s,a.length):u=="string"&&s in a)?xr(a[s],n):!1}var so=PI;function VI(n){return ss(function(s,a){var u=-1,h=a.length,g=h>1?a[h-1]:void 0,m=h>2?a[2]:void 0;for(g=n.length>3&&typeof g=="function"?(h--,g):void 0,m&&so(a[0],a[1],m)&&(g=h<3?void 0:g,h=1),s=Object(s);++u<h;){var I=a[u];I&&n(s,I,u,g)}return s})}var Nf=VI;var wI=Object.prototype;function _I(n){var s=n&&n.constructor,a=typeof s=="function"&&s.prototype||wI;return n===a}var sn=_I;function WI(n,s){for(var a=-1,u=Array(n);++a<n;)u[a]=s(a);return u}var Tf=WI;var kI="[object Arguments]";function ZI(n){return Mt(n)&&Xt(n)==kI}var tl=ZI;var Af=Object.prototype,HI=Af.hasOwnProperty,QI=Af.propertyIsEnumerable,YI=tl(function(){return arguments}())?tl:function(n){return Mt(n)&&HI.call(n,"callee")&&!QI.call(n,"callee")},Or=YI;function XI(){return!1}var Cf=XI;var Rf=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Sf=Rf&&typeof module=="object"&&module&&!module.nodeType&&module,JI=Sf&&Sf.exports===Rf,Lf=JI?Ke.Buffer:void 0,jI=Lf?Lf.isBuffer:void 0,zI=jI||Cf,Ii=zI;var qI="[object Arguments]",KI="[object Array]",$I="[object Boolean]",eN="[object Date]",tN="[object Error]",rN="[object Function]",iN="[object Map]",nN="[object Number]",oN="[object Object]",sN="[object RegExp]",aN="[object Set]",lN="[object String]",uN="[object WeakMap]",pN="[object ArrayBuffer]",cN="[object DataView]",fN="[object Float32Array]",dN="[object Float64Array]",hN="[object Int8Array]",gN="[object Int16Array]",EN="[object Int32Array]",mN="[object Uint8Array]",xN="[object Uint8ClampedArray]",vN="[object Uint16Array]",IN="[object Uint32Array]",Pe={};Pe[fN]=Pe[dN]=Pe[hN]=Pe[gN]=Pe[EN]=Pe[mN]=Pe[xN]=Pe[vN]=Pe[IN]=!0;Pe[qI]=Pe[KI]=Pe[pN]=Pe[$I]=Pe[cN]=Pe[eN]=Pe[tN]=Pe[rN]=Pe[iN]=Pe[nN]=Pe[oN]=Pe[sN]=Pe[aN]=Pe[lN]=Pe[uN]=!1;function NN(n){return Mt(n)&&on(n.length)&&!!Pe[Xt(n)]}var yf=NN;function TN(n){return function(s){return n(s)}}var as=TN;var bf=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ao=bf&&typeof module=="object"&&module&&!module.nodeType&&module,AN=ao&&ao.exports===bf,rl=AN&&is.process,CN=function(){try{var n=ao&&ao.require&&ao.require("util").types;return n||rl&&rl.binding&&rl.binding("util")}catch{}}(),il=CN;var Of=il&&il.isTypedArray,SN=Of?as(Of):yf,an=SN;var LN=Object.prototype,RN=LN.hasOwnProperty;function yN(n,s){var a=_e(n),u=!a&&Or(n),h=!a&&!u&&Ii(n),g=!a&&!u&&!h&&an(n),m=a||u||h||g,I=m?Tf(n.length,String):[],T=I.length;for(var G in n)(s||RN.call(n,G))&&!(m&&(G=="length"||h&&(G=="offset"||G=="parent")||g&&(G=="buffer"||G=="byteLength"||G=="byteOffset")||rn(G,T)))&&I.push(G);return I}var ls=yN;function bN(n,s){return function(a){return n(s(a))}}var us=bN;var ON=us(Object.keys,Object),Gf=ON;var GN=Object.prototype,UN=GN.hasOwnProperty;function FN(n){if(!sn(n))return Gf(n);var s=[];for(var a in Object(n))UN.call(n,a)&&a!="constructor"&&s.push(a);return s}var Uf=FN;function BN(n){return er(n)?ls(n):Uf(n)}var ln=BN;function DN(n){var s=[];if(n!=null)for(var a in Object(n))s.push(a);return s}var Ff=DN;var MN=Object.prototype,PN=MN.hasOwnProperty;function VN(n){if(!ut(n))return Ff(n);var s=sn(n),a=[];for(var u in n)u=="constructor"&&(s||!PN.call(n,u))||a.push(u);return a}var Bf=VN;function wN(n){return er(n)?ls(n,!0):Bf(n)}var ps=wN;var _N=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,WN=/^\w*$/;function kN(n,s){if(_e(n))return!1;var a=typeof n;return a=="number"||a=="symbol"||a=="boolean"||n==null||ur(n)?!0:WN.test(n)||!_N.test(n)||s!=null&&n in Object(s)}var un=kN;var ZN=Zt(Object,"create"),Gr=ZN;function HN(){this.__data__=Gr?Gr(null):{},this.size=0}var Df=HN;function QN(n){var s=this.has(n)&&delete this.__data__[n];return this.size-=s?1:0,s}var Mf=QN;var YN="__lodash_hash_undefined__",XN=Object.prototype,JN=XN.hasOwnProperty;function jN(n){var s=this.__data__;if(Gr){var a=s[n];return a===YN?void 0:a}return JN.call(s,n)?s[n]:void 0}var Pf=jN;var zN=Object.prototype,qN=zN.hasOwnProperty;function KN(n){var s=this.__data__;return Gr?s[n]!==void 0:qN.call(s,n)}var Vf=KN;var $N="__lodash_hash_undefined__";function eT(n,s){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=Gr&&s===void 0?$N:s,this}var wf=eT;function pn(n){var s=-1,a=n==null?0:n.length;for(this.clear();++s<a;){var u=n[s];this.set(u[0],u[1])}}pn.prototype.clear=Df;pn.prototype.delete=Mf;pn.prototype.get=Pf;pn.prototype.has=Vf;pn.prototype.set=wf;var nl=pn;function tT(){this.__data__=[],this.size=0}var _f=tT;function rT(n,s){for(var a=n.length;a--;)if(xr(n[a][0],s))return a;return-1}var Jr=rT;var iT=Array.prototype,nT=iT.splice;function oT(n){var s=this.__data__,a=Jr(s,n);if(a<0)return!1;var u=s.length-1;return a==u?s.pop():nT.call(s,a,1),--this.size,!0}var Wf=oT;function sT(n){var s=this.__data__,a=Jr(s,n);return a<0?void 0:s[a][1]}var kf=sT;function aT(n){return Jr(this.__data__,n)>-1}var Zf=aT;function lT(n,s){var a=this.__data__,u=Jr(a,n);return u<0?(++this.size,a.push([n,s])):a[u][1]=s,this}var Hf=lT;function cn(n){var s=-1,a=n==null?0:n.length;for(this.clear();++s<a;){var u=n[s];this.set(u[0],u[1])}}cn.prototype.clear=_f;cn.prototype.delete=Wf;cn.prototype.get=kf;cn.prototype.has=Zf;cn.prototype.set=Hf;var jr=cn;var uT=Zt(Ke,"Map"),zr=uT;function pT(){this.size=0,this.__data__={hash:new nl,map:new(zr||jr),string:new nl}}var Qf=pT;function cT(n){var s=typeof n;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?n!=="__proto__":n===null}var Yf=cT;function fT(n,s){var a=n.__data__;return Yf(s)?a[typeof s=="string"?"string":"hash"]:a.map}var qr=fT;function dT(n){var s=qr(this,n).delete(n);return this.size-=s?1:0,s}var Xf=dT;function hT(n){return qr(this,n).get(n)}var Jf=hT;function gT(n){return qr(this,n).has(n)}var jf=gT;function ET(n,s){var a=qr(this,n),u=a.size;return a.set(n,s),this.size+=a.size==u?0:1,this}var zf=ET;function fn(n){var s=-1,a=n==null?0:n.length;for(this.clear();++s<a;){var u=n[s];this.set(u[0],u[1])}}fn.prototype.clear=Qf;fn.prototype.delete=Xf;fn.prototype.get=Jf;fn.prototype.has=jf;fn.prototype.set=zf;var Ni=fn;var mT="Expected a function";function ol(n,s){if(typeof n!="function"||s!=null&&typeof s!="function")throw new TypeError(mT);var a=function(){var u=arguments,h=s?s.apply(this,u):u[0],g=a.cache;if(g.has(h))return g.get(h);var m=n.apply(this,u);return a.cache=g.set(h,m)||g,m};return a.cache=new(ol.Cache||Ni),a}ol.Cache=Ni;var qf=ol;var xT=500;function vT(n){var s=qf(n,function(u){return a.size===xT&&a.clear(),u}),a=s.cache;return s}var Kf=vT;var IT=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,NT=/\\(\\)?/g,TT=Kf(function(n){var s=[];return n.charCodeAt(0)===46&&s.push(""),n.replace(IT,function(a,u,h,g){s.push(h?g.replace(NT,"$1"):u||a)}),s}),$f=TT;function AT(n){return n==null?"":zc(n)}var cs=AT;function CT(n,s){return _e(n)?n:un(n,s)?[n]:$f(cs(n))}var fs=CT;var ST=1/0;function LT(n){if(typeof n=="string"||ur(n))return n;var s=n+"";return s=="0"&&1/n==-ST?"-0":s}var Kr=LT;function RT(n,s){s=fs(s,n);for(var a=0,u=s.length;n!=null&&a<u;)n=n[Kr(s[a++])];return a&&a==u?n:void 0}var dn=RT;function yT(n,s,a){var u=n==null?void 0:dn(n,s);return u===void 0?a:u}var ed=yT;function bT(n,s){for(var a=-1,u=s.length,h=n.length;++a<u;)n[h+a]=s[a];return n}var ds=bT;var td=Dt?Dt.isConcatSpreadable:void 0;function OT(n){return _e(n)||Or(n)||!!(td&&n&&n[td])}var rd=OT;function id(n,s,a,u,h){var g=-1,m=n.length;for(a||(a=rd),h||(h=[]);++g<m;){var I=n[g];s>0&&a(I)?s>1?id(I,s-1,a,u,h):ds(h,I):u||(h[h.length]=I)}return h}var nd=id;var GT=us(Object.getPrototypeOf,Object),hs=GT;var UT="[object Object]",FT=Function.prototype,BT=Object.prototype,od=FT.toString,DT=BT.hasOwnProperty,MT=od.call(Object);function PT(n){if(!Mt(n)||Xt(n)!=UT)return!1;var s=hs(n);if(s===null)return!0;var a=DT.call(s,"constructor")&&s.constructor;return typeof a=="function"&&a instanceof a&&od.call(a)==MT}var sd=PT;function VT(n,s,a){var u=-1,h=n.length;s<0&&(s=-s>h?0:h+s),a=a>h?h:a,a<0&&(a+=h),h=s>a?0:a-s>>>0,s>>>=0;for(var g=Array(h);++u<h;)g[u]=n[u+s];return g}var ad=VT;function wT(n){return function(s){return n?.[s]}}var ld=wT;function _T(){this.__data__=new jr,this.size=0}var ud=_T;function WT(n){var s=this.__data__,a=s.delete(n);return this.size=s.size,a}var pd=WT;function kT(n){return this.__data__.get(n)}var cd=kT;function ZT(n){return this.__data__.has(n)}var fd=ZT;var HT=200;function QT(n,s){var a=this.__data__;if(a instanceof jr){var u=a.__data__;if(!zr||u.length<HT-1)return u.push([n,s]),this.size=++a.size,this;a=this.__data__=new Ni(u)}return a.set(n,s),this.size=a.size,this}var dd=QT;function hn(n){var s=this.__data__=new jr(n);this.size=s.size}hn.prototype.clear=ud;hn.prototype.delete=pd;hn.prototype.get=cd;hn.prototype.has=fd;hn.prototype.set=dd;var $r=hn;var md=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hd=md&&typeof module=="object"&&module&&!module.nodeType&&module,YT=hd&&hd.exports===md,gd=YT?Ke.Buffer:void 0,Ed=gd?gd.allocUnsafe:void 0;function XT(n,s){if(s)return n.slice();var a=n.length,u=Ed?Ed(a):new n.constructor(a);return n.copy(u),u}var xd=XT;function JT(n,s){for(var a=-1,u=n==null?0:n.length,h=0,g=[];++a<u;){var m=n[a];s(m,a,n)&&(g[h++]=m)}return g}var vd=JT;function jT(){return[]}var Id=jT;var zT=Object.prototype,qT=zT.propertyIsEnumerable,Nd=Object.getOwnPropertySymbols,KT=Nd?function(n){return n==null?[]:(n=Object(n),vd(Nd(n),function(s){return qT.call(n,s)}))}:Id,Td=KT;function $T(n,s,a){var u=s(n);return _e(n)?u:ds(u,a(n))}var Ad=$T;function eA(n){return Ad(n,ln,Td)}var sl=eA;var tA=Zt(Ke,"DataView"),gs=tA;var rA=Zt(Ke,"Promise"),Es=rA;var iA=Zt(Ke,"Set"),ms=iA;var Cd="[object Map]",nA="[object Object]",Sd="[object Promise]",Ld="[object Set]",Rd="[object WeakMap]",yd="[object DataView]",oA=br(gs),sA=br(zr),aA=br(Es),lA=br(ms),uA=br(os),Ti=Xt;(gs&&Ti(new gs(new ArrayBuffer(1)))!=yd||zr&&Ti(new zr)!=Cd||Es&&Ti(Es.resolve())!=Sd||ms&&Ti(new ms)!=Ld||os&&Ti(new os)!=Rd)&&(Ti=function(n){var s=Xt(n),a=s==nA?n.constructor:void 0,u=a?br(a):"";if(u)switch(u){case oA:return yd;case sA:return Cd;case aA:return Sd;case lA:return Ld;case uA:return Rd}return s});var al=Ti;var pA=Ke.Uint8Array,gn=pA;function cA(n){var s=new n.constructor(n.byteLength);return new gn(s).set(new gn(n)),s}var bd=cA;function fA(n,s){var a=s?bd(n.buffer):n.buffer;return new n.constructor(a,n.byteOffset,n.length)}var Od=fA;function dA(n){return typeof n.constructor=="function"&&!sn(n)?pf(hs(n)):{}}var Gd=dA;var hA="__lodash_hash_undefined__";function gA(n){return this.__data__.set(n,hA),this}var Ud=gA;function EA(n){return this.__data__.has(n)}var Fd=EA;function xs(n){var s=-1,a=n==null?0:n.length;for(this.__data__=new Ni;++s<a;)this.add(n[s])}xs.prototype.add=xs.prototype.push=Ud;xs.prototype.has=Fd;var Bd=xs;function mA(n,s){for(var a=-1,u=n==null?0:n.length;++a<u;)if(s(n[a],a,n))return!0;return!1}var Dd=mA;function xA(n,s){return n.has(s)}var Md=xA;var vA=1,IA=2;function NA(n,s,a,u,h,g){var m=a&vA,I=n.length,T=s.length;if(I!=T&&!(m&&T>I))return!1;var G=g.get(n),L=g.get(s);if(G&&L)return G==s&&L==n;var V=-1,y=!0,M=a&IA?new Bd:void 0;for(g.set(n,s),g.set(s,n);++V<I;){var F=n[V],S=s[V];if(u)var x=m?u(S,F,V,s,n,g):u(F,S,V,n,s,g);if(x!==void 0){if(x)continue;y=!1;break}if(M){if(!Dd(s,function(v,C){if(!Md(M,C)&&(F===v||h(F,v,a,u,g)))return M.push(C)})){y=!1;break}}else if(!(F===S||h(F,S,a,u,g))){y=!1;break}}return g.delete(n),g.delete(s),y}var vs=NA;function TA(n){var s=-1,a=Array(n.size);return n.forEach(function(u,h){a[++s]=[h,u]}),a}var Pd=TA;function AA(n){var s=-1,a=Array(n.size);return n.forEach(function(u){a[++s]=u}),a}var Vd=AA;var CA=1,SA=2,LA="[object Boolean]",RA="[object Date]",yA="[object Error]",bA="[object Map]",OA="[object Number]",GA="[object RegExp]",UA="[object Set]",FA="[object String]",BA="[object Symbol]",DA="[object ArrayBuffer]",MA="[object DataView]",wd=Dt?Dt.prototype:void 0,ll=wd?wd.valueOf:void 0;function PA(n,s,a,u,h,g,m){switch(a){case MA:if(n.byteLength!=s.byteLength||n.byteOffset!=s.byteOffset)return!1;n=n.buffer,s=s.buffer;case DA:return!(n.byteLength!=s.byteLength||!g(new gn(n),new gn(s)));case LA:case RA:case OA:return xr(+n,+s);case yA:return n.name==s.name&&n.message==s.message;case GA:case FA:return n==s+"";case bA:var I=Pd;case UA:var T=u&CA;if(I||(I=Vd),n.size!=s.size&&!T)return!1;var G=m.get(n);if(G)return G==s;u|=SA,m.set(n,s);var L=vs(I(n),I(s),u,h,g,m);return m.delete(n),L;case BA:if(ll)return ll.call(n)==ll.call(s)}return!1}var _d=PA;var VA=1,wA=Object.prototype,_A=wA.hasOwnProperty;function WA(n,s,a,u,h,g){var m=a&VA,I=sl(n),T=I.length,G=sl(s),L=G.length;if(T!=L&&!m)return!1;for(var V=T;V--;){var y=I[V];if(!(m?y in s:_A.call(s,y)))return!1}var M=g.get(n),F=g.get(s);if(M&&F)return M==s&&F==n;var S=!0;g.set(n,s),g.set(s,n);for(var x=m;++V<T;){y=I[V];var v=n[y],C=s[y];if(u)var R=m?u(C,v,y,s,n,g):u(v,C,y,n,s,g);if(!(R===void 0?v===C||h(v,C,a,u,g):R)){S=!1;break}x||(x=y=="constructor")}if(S&&!x){var B=n.constructor,D=s.constructor;B!=D&&"constructor"in n&&"constructor"in s&&!(typeof B=="function"&&B instanceof B&&typeof D=="function"&&D instanceof D)&&(S=!1)}return g.delete(n),g.delete(s),S}var Wd=WA;var kA=1,kd="[object Arguments]",Zd="[object Array]",Is="[object Object]",ZA=Object.prototype,Hd=ZA.hasOwnProperty;function HA(n,s,a,u,h,g){var m=_e(n),I=_e(s),T=m?Zd:al(n),G=I?Zd:al(s);T=T==kd?Is:T,G=G==kd?Is:G;var L=T==Is,V=G==Is,y=T==G;if(y&&Ii(n)){if(!Ii(s))return!1;m=!0,L=!1}if(y&&!L)return g||(g=new $r),m||an(n)?vs(n,s,a,u,h,g):_d(n,s,T,a,u,h,g);if(!(a&kA)){var M=L&&Hd.call(n,"__wrapped__"),F=V&&Hd.call(s,"__wrapped__");if(M||F){var S=M?n.value():n,x=F?s.value():s;return g||(g=new $r),h(S,x,a,u,g)}}return y?(g||(g=new $r),Wd(n,s,a,u,h,g)):!1}var Qd=HA;function Yd(n,s,a,u,h){return n===s?!0:n==null||s==null||!Mt(n)&&!Mt(s)?n!==n&&s!==s:Qd(n,s,a,u,Yd,h)}var Ns=Yd;var QA=1,YA=2;function XA(n,s,a,u){var h=a.length,g=h,m=!u;if(n==null)return!g;for(n=Object(n);h--;){var I=a[h];if(m&&I[2]?I[1]!==n[I[0]]:!(I[0]in n))return!1}for(;++h<g;){I=a[h];var T=I[0],G=n[T],L=I[1];if(m&&I[2]){if(G===void 0&&!(T in n))return!1}else{var V=new $r;if(u)var y=u(G,L,T,n,s,V);if(!(y===void 0?Ns(L,G,QA|YA,u,V):y))return!1}}return!0}var Xd=XA;function JA(n){return n===n&&!ut(n)}var Ts=JA;function jA(n){for(var s=ln(n),a=s.length;a--;){var u=s[a],h=n[u];s[a]=[u,h,Ts(h)]}return s}var Jd=jA;function zA(n,s){return function(a){return a==null?!1:a[n]===s&&(s!==void 0||n in Object(a))}}var As=zA;function qA(n){var s=Jd(n);return s.length==1&&s[0][2]?As(s[0][0],s[0][1]):function(a){return a===n||Xd(a,n,s)}}var jd=qA;function KA(n,s){return n!=null&&s in Object(n)}var zd=KA;function $A(n,s,a){s=fs(s,n);for(var u=-1,h=s.length,g=!1;++u<h;){var m=Kr(s[u]);if(!(g=n!=null&&a(n,m)))break;n=n[m]}return g||++u!=h?g:(h=n==null?0:n.length,!!h&&on(h)&&rn(m,h)&&(_e(n)||Or(n)))}var qd=$A;function eC(n,s){return n!=null&&qd(n,s,zd)}var Kd=eC;var tC=1,rC=2;function iC(n,s){return un(n)&&Ts(s)?As(Kr(n),s):function(a){var u=ed(a,n);return u===void 0&&u===s?Kd(a,n):Ns(s,u,tC|rC)}}var $d=iC;function nC(n){return function(s){return s?.[n]}}var eh=nC;function oC(n){return function(s){return dn(s,n)}}var th=oC;function sC(n){return un(n)?eh(Kr(n)):th(n)}var rh=sC;function aC(n){return typeof n=="function"?n:n==null?Xr:typeof n=="object"?_e(n)?$d(n[0],n[1]):jd(n):rh(n)}var ih=aC;function lC(n){return function(s,a,u){for(var h=-1,g=Object(s),m=u(s),I=m.length;I--;){var T=m[n?I:++h];if(a(g[T],T,g)===!1)break}return s}}var nh=lC;var uC=nh(),Cs=uC;function pC(n,s){return n&&Cs(n,s,ln)}var oh=pC;function cC(n,s){return function(a,u){if(a==null)return a;if(!er(a))return n(a,u);for(var h=a.length,g=s?h:-1,m=Object(a);(s?g--:++g<h)&&u(m[g],g,m)!==!1;);return a}}var sh=cC;var fC=sh(oh),ah=fC;function dC(n,s,a){(a!==void 0&&!xr(n[s],a)||a===void 0&&!(s in n))&&nn(n,s,a)}var lo=dC;function hC(n){return Mt(n)&&er(n)}var lh=hC;function gC(n,s){if(!(s==="constructor"&&typeof n[s]=="function")&&s!="__proto__")return n[s]}var uo=gC;function EC(n){return xf(n,ps(n))}var uh=EC;function mC(n,s,a,u,h,g,m){var I=uo(n,a),T=uo(s,a),G=m.get(T);if(G){lo(n,a,G);return}var L=g?g(I,T,a+"",n,s,m):void 0,V=L===void 0;if(V){var y=_e(T),M=!y&&Ii(T),F=!y&&!M&&an(T);L=T,y||M||F?_e(I)?L=I:lh(I)?L=ff(I):M?(V=!1,L=xd(T,!0)):F?(V=!1,L=Od(T,!0)):L=[]:sd(T)||Or(T)?(L=I,Or(I)?L=uh(I):(!ut(I)||$e(I))&&(L=Gd(T))):V=!1}V&&(m.set(T,L),h(L,T,u,g,m),m.delete(T)),lo(n,a,L)}var ph=mC;function ch(n,s,a,u,h){n!==s&&Cs(s,function(g,m){if(h||(h=new $r),ut(g))ph(n,s,m,a,ch,u,h);else{var I=u?u(uo(n,m),g,m+"",n,s,h):void 0;I===void 0&&(I=g),lo(n,m,I)}},ps)}var fh=ch;var xC={"&":"&","<":"<",">":">",'"':""","'":"'"},vC=ld(xC),dh=vC;var hh=/[&<>"']/g,IC=RegExp(hh.source);function NC(n){return n=cs(n),n&&IC.test(n)?n.replace(hh,dh):n}var Ss=NC;function TC(n,s){var a=-1,u=er(n)?Array(n.length):[];return ah(n,function(h,g,m){u[++a]=s(h,g,m)}),u}var gh=TC;var AC=Nf(function(n,s,a){fh(n,s,a)}),En=AC;function CC(n,s){var a=n.length;for(n.sort(s);a--;)n[a]=n[a].value;return n}var Eh=CC;function SC(n,s){if(n!==s){var a=n!==void 0,u=n===null,h=n===n,g=ur(n),m=s!==void 0,I=s===null,T=s===s,G=ur(s);if(!I&&!G&&!g&&n>s||g&&m&&T&&!I&&!G||u&&m&&T||!a&&T||!h)return 1;if(!u&&!g&&!G&&n<s||G&&a&&h&&!u&&!g||I&&a&&h||!m&&h||!T)return-1}return 0}var mh=SC;function LC(n,s,a){for(var u=-1,h=n.criteria,g=s.criteria,m=h.length,I=a.length;++u<m;){var T=mh(h[u],g[u]);if(T){if(u>=I)return T;var G=a[u];return T*(G=="desc"?-1:1)}}return n.index-s.index}var xh=LC;function RC(n,s,a){s.length?s=en(s,function(g){return _e(g)?function(m){return dn(m,g.length===1?g[0]:g)}:g}):s=[Xr];var u=-1;s=en(s,as(ih));var h=gh(n,function(g,m,I){var T=en(s,function(G){return G(g)});return{criteria:T,index:++u,value:g}});return Eh(h,function(g,m){return xh(g,m,a)})}var vh=RC;var yC=ss(function(n,s){if(n==null)return[];var a=s.length;return a>1&&so(n,s[0],s[1])?s=[]:a>2&&so(s[0],s[1],s[2])&&(s=[s[0]]),vh(n,nd(s,1),[])}),ul=yC;function bC(n,s,a){return n&&n.length?(s=a||s===void 0?1:nf(s),ad(n,0,s<0?0:s)):[]}var pl=bC;var cl=ft(ts());function po(n,s){return $e(s)?s(n):s??{}}function fl(n,s={}){let a=En({},po(n,n.config.requestConfig),po(n,s));if(!a.endpoint||a.endpoint.length==0)return;var u=n.getQueryMode();let h=$e(a.endpoint)?a.endpoint(n):a.endpoint;var g=u=="update"?"POST":$e(a.method)?a.method(n):a.method;let m=$e(a.headers)?a.headers(n):a.headers,I=$e(a.withCredentials)?a.withCredentials(n):a.withCredentials;return{reqMethod:g,url:h,args:Ih(n,a),headers:m,accept:Nh(n,a),withCredentials:I}}async function dl(n,s){let a=Date.now();try{n.emit("queryBefore",n,s);let u=fl(n,s);if(!u)return;let h=new AbortController,g={method:u.reqMethod,headers:{Accept:u.accept,...u.headers||{}},credentials:u.withCredentials?"include":"same-origin",signal:h.signal};g?.headers&&u.reqMethod==="POST"&&(g.headers["Content-Type"]="application/x-www-form-urlencoded");let m=new URLSearchParams;for(let L in u.args){let V=u.args[L];Array.isArray(V)?V.forEach(y=>m.append(L,y)):m.append(L,V)}if(u.reqMethod==="POST")g.body=m.toString();else{let L=new URL(u.url);m.forEach((V,y)=>{L.searchParams.append(y,V)}),u.url=L.toString()}let I=new Request(u.url,g);n.emit("query",I,h);let T=await fetch(I);if(!T.ok)throw new Error(await T.text()||T.statusText);let G={ok:T.ok,status:T.status,statusText:T.statusText,headers:T.headers,type:T.type,content:await T.text()};return n.emit("queryResponse",G,Date.now()-a),n.emit("queryResults",G.content,Date.now()-a),G}catch(u){throw u instanceof Error&&u.message==="Aborted"||n.emit("queryResponse",u,Date.now()-a),n.emit("error",u),u}}function Ih(n,s){var a=n.getQueryMode(),u={};let h=po(n,s);var g=$e(h.queryArgument)?h.queryArgument(n):h.queryArgument;g||(g=n.getQueryMode()),u[g]=h.adjustQueryBeforeRequest?h.adjustQueryBeforeRequest(n):n.getValue();let m=$e(h.namedGraphs)?h.namedGraphs(n):h.namedGraphs;if(m&&m.length>0){let G=a==="query"?"named-graph-uri":"using-named-graph-uri ";u[G]=m}let I=$e(h.defaultGraphs)?h.defaultGraphs(n):h.defaultGraphs;if(I&&I.length>0){let G=a=="query"?"default-graph-uri":"using-graph-uri ";u[G]=m}let T=$e(h.args)?h.args(n):h.args;return T&&T.length>0&&En(u,T.reduce((G,L)=>(G[L.name]?G[L.name].push(L.value):G[L.name]=[L.value],G),{})),u}function Nh(n,s){let a=po(n,s);var u=null;if(n.getQueryMode()=="update")u=$e(a.acceptHeaderUpdate)?a.acceptHeaderUpdate(n):a.acceptHeaderUpdate;else{var h=n.getQueryType();h=="DESCRIBE"||h=="CONSTRUCT"?u=$e(a.acceptHeaderGraph)?a.acceptHeaderGraph(n):a.acceptHeaderGraph:u=$e(a.acceptHeaderSelect)?a.acceptHeaderSelect(n):a.acceptHeaderSelect}return u}function hl(n,s){let a=fl(n,po(n,s));if(!a)return"";let u=a.url;a.url.indexOf("http")!==0&&(u=`${window.location.protocol}//${window.location.host}`,a.url.indexOf("/")===0?u+=a.url:u+=window.location.pathname+a.url);let h=["curl"];a.reqMethod==="GET"?(u+=`?${cl.stringify(a.args)}`,h.push(u)):a.reqMethod==="POST"?(h.push(u),h.push("--data",cl.stringify(a.args))):(console.warn("Unexpected request-method",a.reqMethod),h.push(u)),h.push("-X",a.reqMethod);for(let g in a.headers)h.push(`-H '${g}: ${a.headers[g]}'`);return h.join(" ")}var Th='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" height="81.9" width="72.9" version="1.1" y="0px" x="0px" viewBox="0 0 72.900002 81.900002"><path id="queryIcon" d="m69.6 35.2-60.3-34.3c-2.2-1.2-4.4-1.2-6.4 0s-2.9 3.4-2.9 5.6v68.8c0 2.2 1.2 4.4 2.9 5.6 1 0.5 2.2 1 3.4 1s2.2-0.5 2.9-1l60.3-34.3c2.2-1.2 3.4-3.4 3.4-5.6s-1.1-4.3-3.3-5.8z"/><path id="loadingIcon" d="m61.184 36.167-48.73-27.719c-1.7779-0.96976-3.5558-0.96976-5.172 0-1.6163 0.96976-2.3436 2.7476-2.3436 4.5255v55.599c0 1.7779 0.96976 3.5558 2.3436 4.5255 0.80813 0.40407 1.7779 0.80813 2.7476 0.80813 0.96975 0 1.7779-0.40406 2.3436-0.80813l48.73-27.719c1.7779-0.96976 2.7476-2.7476 2.7476-4.5255s-0.88894-3.475-2.6668-4.6872z" fill="none"/></svg>';var Ah='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M36.764 50c0 .308-.07.598-.088.905l32.247 16.12c2.76-2.34 6.293-3.798 10.195-3.798C87.89 63.227 95 70.337 95 79.11 95 87.89 87.89 95 79.118 95c-8.78 0-15.882-7.11-15.882-15.89 0-.317.07-.6.088-.906l-32.247-16.12c-2.77 2.33-6.293 3.79-10.195 3.79C12.11 65.873 5 58.77 5 50c0-8.78 7.11-15.89 15.882-15.89 3.902 0 7.427 1.467 10.195 3.796l32.247-16.12c-.018-.307-.088-.597-.088-.913C63.236 12.11 70.338 5 79.118 5 87.89 5 95 12.11 95 20.873c0 8.78-7.11 15.89-15.882 15.89-3.91 0-7.436-1.467-10.195-3.805L36.676 49.086c.017.308.088.598.088.914z"/></svg>',El='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 66.399998 66.399998"><g><path d="M33.2 0C14.9 0 0 14.9 0 33.2c0 18.3 14.9 33.2 33.2 33.2 18.3 0 33.2-14.9 33.2-33.2C66.4 14.9 51.5 0 33.2 0zm0 59.4C18.7 59.4 7 47.6 7 33.2 7 18.7 18.8 7 33.2 7c14.4 0 26.2 11.8 26.2 26.2 0 14.4-11.8 26.2-26.2 26.2z"/><path d="M33.1 45.6c-1.4 0-2.5.5-3.5 1.5-.9 1-1.4 2.2-1.4 3.6 0 1.6.5 2.8 1.5 3.8 1 .9 2.1 1.3 3.4 1.3 1.3 0 2.4-.5 3.4-1.4 1-.9 1.5-2.2 1.5-3.7 0-1.4-.5-2.6-1.4-3.6-.9-1-2.1-1.5-3.5-1.5zM33.3 12.4c-1.5 0-2.8.5-3.7 1.6-.9 1-1.4 2.4-1.4 4.2 0 1.1.1 2.9.2 5.6l.8 13.1c.2 1.8.4 3.2.9 4.1.5 1.2 1.5 1.8 2.9 1.8 1.3 0 2.3-.7 2.9-1.9.5-1 .7-2.3.9-4l1.1-13.4c.1-1.3.2-2.5.2-3.8 0-2.2-.3-3.9-.8-5.1-.5-1-1.6-2.2-4-2.2z"/></g></svg>',Ch='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>',Sh='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/></svg>';var co=class n{constructor(){this.words=0;this.prefixes=0;this.children={}}insert(s,a){if(s.length!=0){var u=this,h,g;if(a===void 0&&(a=0),a===s.length){u.words++;return}u.prefixes++,h=s[a],u.children[h]===void 0&&(u.children[h]=new n),g=u.children[h],g.insert(s,a+1)}}remove(s,a){if(s.length!=0){var u=this,h,g;if(a===void 0&&(a=0),u!==void 0){if(a===s.length){u.words--;return}u.prefixes--,h=s[a],g=u.children[h],g.remove(s,a+1)}}}update(s,a){s.length==0||a.length==0||(this.remove(s),this.insert(a))}countWord(s,a){if(s.length==0)return 0;var u=this,h,g,m=0;return a===void 0&&(a=0),a===s.length?u.words:(h=s[a],g=u.children[h],g!==void 0&&(m=g.countWord(s,a+1)),m)}countPrefix(s,a){if(s.length==0)return 0;var u=this,m,h,g=0;if(a===void 0&&(a=0),a===s.length)return u.prefixes;var m=s[a];return h=u.children[m],h!==void 0&&(g=h.countPrefix(s,a+1)),g}find(s){return s.length==0?!1:this.countWord(s)>0}getAllWords(s){var a=this,u,h,g=[];if(s===void 0&&(s=""),a===void 0)return[];a.words>0&&g.push(s);for(u in a.children)a.children.hasOwnProperty(u)&&(h=a.children[u],g=g.concat(h.getAllWords(s+u)));return g}autoComplete(s,a){var u=this,h,g;return s.length==0?a===void 0?u.getAllWords(s):[]:(a===void 0&&(a=0),h=s[a],g=u.children[h],g===void 0?[]:a===s.length-1?g.getAllWords(s):g.autoComplete(s,a+1))}};var Wh=ft(Mh());var vl=ft(Nt());var PC={name:"variables",isValidCompletionPosition:function(n){var s=n.getTokenAt(n.getDoc().getCursor());return!!(s.type!="ws"&&(s=n.getCompleteToken(s),s&&(s.string[0]==="?"||s.string[0]==="$")))},get:function(n,s){if(!s||s.string.length==0)return[];let a={},u=[],h=n.getWrapperElement().querySelectorAll(".cm-atom");for(let m=0;m<h.length;m++){let I=h[m];var g=I.innerHTML;if(g[0]==="?"||g[0]==="$"){let T=I.nextSibling;if(T&&T.className&&T.className.indexOf("cm-atom")>=0&&(g+=T.innerText),a[g]||g.length<=1||g.indexOf(s.string)!==0||g===s.string)continue;a[g]=!0,u.push(g)}}return u.sort()},bulk:!1,autoShow:!0},Ph=PC;var VC={"string-2":"prefixed",atom:"var"},wC={postprocessHints:function(n,s){return ul(s,a=>a.text.split(":")[0])},onInitialize:function(n){n.on("change",()=>{if(!(!n.config.autocompleters||n.config.autocompleters.indexOf(this.name)==-1)){var s=n.getDoc().getCursor(),a=n.getTokenAt(s);if(a.type&&VC[a.type]=="prefixed"){var u=a.string.indexOf(":");if(u!==-1){var h=n.getPreviousNonWsToken(s.line,a).string.toUpperCase(),g=n.getTokenAt({line:s.line,ch:a.start});if(h!=="PREFIX"&&(g.type=="ws"||g.type==null||g.type==="punc"&&(g.string==="|"||g.string==="/"||g.string=="^^"||g.string=="{"||g.string==="("))){var m=a.string.substring(0,u+1),I=n.getPrefixesFromQuery();I[m.slice(0,-1)]==null&&(a.autocompletionString=m,n.autocompleters[this.name]?.getCompletions(a).then(T=>{T.length&&(n.addPrefixes(T[0]),n.autocomplete())},console.warn))}}}}})},isValidCompletionPosition:function(n){var s=n.getDoc().getCursor(),a=n.getTokenAt(s);if(n.getDoc().getLine(s.line).length>s.ch||(a.type!="ws"&&(a=n.getCompleteToken()),a.string.indexOf("a")!==0&&a.state.possibleCurrent.indexOf("PNAME_NS")<0))return!1;var u=n.getPreviousNonWsToken(s.line,a);return!(!u||u.string.toUpperCase()!="PREFIX")},get:function(n){return fetch(n.config.prefixCcApi).then(s=>{if(!s.ok)throw new Error("Failed to fetch prefixes");return s.json()}).then(s=>{let a=[];for(let u in s){let h=`${u}: <${s[u]}>`;a.push(h)}return a.sort()})},preProcessToken:function(n,s){var a=n.getPreviousNonWsToken(n.getDoc().getCursor().line,s);return a&&a.string&&a.string.slice(-1)==":"&&(s={start:a.start,end:s.end,string:a.string+" "+s.string,state:s.state,type:s.type}),s},bulk:!0,autoShow:!0,persistenceId:"prefixes",name:"prefixes"},Vh=wC;var _C={onInitialize:function(n){},get:function(n,s){return Os(n,"property",s)},isValidCompletionPosition:function(n){let s=n.getCompleteToken();return s.string.length==0||s.string[0]==="?"||s.string[0]==="$"?!1:s.state.possibleCurrent.indexOf("a")>=0},preProcessToken:function(n,s){return ys(n,s)},postProcessSuggestion:function(n,s,a){return bs(n,s,a)},bulk:!1,name:"property"},wh=_C;var WC={onInitialize:function(n){},get:function(n,s){return Os(n,"class",s)},isValidCompletionPosition:function(n){let s=n.getCompleteToken();if(s.string[0]==="?"||s.string[0]==="$")return!1;let a=n.getDoc().getCursor(),u=n.getPreviousNonWsToken(a.line,s);return u.state.lastProperty==="a"||u.state.lastProperty==="rdf:type"||u.state.lastProperty==="rdfs:domain"||u.state.lastProperty==="rdfs:range"},preProcessToken:function(n,s){return ys(n,s)},postProcessSuggestion:function(n,s,a){return bs(n,s,a)},bulk:!1,name:"class"},_h=WC;var kC=100,Gs=class extends Wh.EventEmitter{constructor(s,a){super(),this.yasqe=s,this.config=a}getStorageId(){return this.yasqe.getStorageId(this.config.persistenceId)}storeBulkCompletions(s){if(!(!s||!(s instanceof Array))){this.trie=new co;for(let u of s)this.trie.insert(u);var a=this.getStorageId();a&&this.yasqe.storage.set(a,s,60*60*24*30,this.yasqe.handleLocalStorageQuotaFull)}}getCompletions(s){if(!this.config.get)return Promise.resolve([]);if(!s)return this.config.get instanceof Array?Promise.resolve(this.config.get):Promise.resolve(this.config.get(this.yasqe)).then(u=>u instanceof Array?u:[]);let a=s.autocompletionString||s.string;return this.trie?Promise.resolve(pl(this.trie.autoComplete(a),kC)):this.config.get instanceof Array?Promise.resolve(this.config.get.filter(u=>u.indexOf(a)===0)):Promise.resolve(this.config.get(this.yasqe,s)).then(u=>u instanceof Array?u:[])}initialize(){if(this.config.onInitialize&&this.config.onInitialize(this.yasqe),this.config.bulk){if(this.config.get instanceof Array)return this.storeBulkCompletions(this.config.get),Promise.resolve();var s,a=this.getStorageId();return a&&(s=this.yasqe.storage.get(a)),s&&s.length>0?(this.storeBulkCompletions(s),Promise.resolve()):this.getCompletions().then(u=>this.storeBulkCompletions(u))}return Promise.resolve()}isValidPosition(){return this.config.isValidCompletionPosition?this.config.isValidCompletionPosition(this.yasqe)?(this.config.autoShow||this.yasqe.showNotification(this.config.name,"Press CTRL - <spacebar> to autocomplete"),this.emit("validPosition",this),!0):(this.emit("invalidPosition",this),this.yasqe.hideNotification(this.config.name),!1):!1}getHint(s,a){this.config.postProcessSuggestion&&(a=this.config.postProcessSuggestion(this.yasqe,s,a));let u,h,g=this.yasqe.getDoc().getCursor();s.from&&(u={...g,...s.from});let m=this.yasqe.getDoc().getCursor().line;return s.to?h={ch:s?.to?.ch||this.yasqe.getCompleteToken().end,line:m}:s.string.length>0?h={ch:this.yasqe.getCompleteToken().end,line:m}:h=s.from,{text:a,displayText:a,from:u,to:h}}getHints(s){return this.config.preProcessToken&&(s=this.config.preProcessToken(this.yasqe,s)),s?this.getCompletions(s).then(a=>a.map(u=>this.getHint(s,u))).then(a=>this.config.postprocessHints?this.config.postprocessHints(this.yasqe,a):a):Promise.resolve([])}autocomplete(s){if(!this.isValidPosition())return!1;let a=this.yasqe.state.completionActive,u=this.yasqe.getDoc().getCursor();if(a&&u.sticky&&u.ch!==a.startPos.ch?this.yasqe.state.completionActive.startPos=u:a&&!u.sticky&&u.ch<a.startPos.ch&&(u.sticky=a.startPos.sticky,this.yasqe.state.completionActive.startPos.ch=u.ch,this.yasqe.state.completionActive.startLen--),s&&(!this.config.autoShow||this.yasqe.state.completionActive))return!1;let h=()=>this.getHints(this.yasqe.getCompleteToken()).then(m=>{let I=this.yasqe.getDoc().getCursor(),T=this.yasqe.getCompleteToken(),G={list:m,from:{line:I.line,ch:T.start},to:{line:I.line,ch:T.end}};return vl.default.on(G,"shown",()=>{this.yasqe.emit("autocompletionShown",this.yasqe.state.completionActive.widget)}),vl.default.on(G,"close",()=>{this.yasqe.emit("autocompletionClose")}),G});h.async=!1;var g={closeCharacters:/[\s>"]/,completeSingle:!1,hint:h,container:this.yasqe.rootEl,extraKeys:{Home:(m,I)=>{m.getDoc().setCursor({ch:0,line:I.data.from.line})},End:(m,I)=>{m.getDoc().setCursor({ch:m.getLine(I.data.to.line).length,line:I.data.to.line})}},...this.yasqe.config.hintConfig};return this.yasqe.showHint(g),!0}};function ys(n,s){let a=n.getPrefixesFromQuery(),u=s.string;if(u.indexOf("<")<0&&(s.tokenPrefix=u.substring(0,u.indexOf(":")+1),a[s.tokenPrefix.slice(0,-1)]!=null&&(s.tokenPrefixUri=a[s.tokenPrefix.slice(0,-1)])),s.autocompletionString=u.trim(),u.indexOf("<")<0&&u.indexOf(":")>-1){for(var h in a)if(s.tokenPrefix===h+":"){s.autocompletionString=a[h],s.autocompletionString+=u.substring(h.length+1);break}}return s.autocompletionString.indexOf("<")==0&&(s.autocompletionString=s.autocompletionString.substring(1)),s.autocompletionString.indexOf(">",s.autocompletionString.length-1)>0&&(s.autocompletionString=s.autocompletionString.substring(0,s.autocompletionString.length-1)),s}function bs(n,s,a){return s.tokenPrefix&&s.autocompletionString&&s.tokenPrefixUri?a=s.tokenPrefix+a.substring(s.tokenPrefixUri.length):a="<"+a+">",a}var Os=(n,s,a)=>{var u=window.location.protocol.indexOf("http")===0?"https://":"http://";let h="autocomplete_"+s;if(!a||!a.string||a.string.trim().length==0)return n.showNotification(h,"Nothing to autocomplete yet!"),Promise.resolve([]);let g=new URLSearchParams;a.autocompletionString&&g.append("q",a.autocompletionString),g.append("page_size","50"),g.append("type",s);let m=`${u}lov.linkeddata.es/dataset/lov/api/v2/autocomplete/terms?${g.toString()}`;return fetch(m).then(I=>{if(!I.ok)throw new Error("Failed fetching suggestions from Linked Open Vocabularies");return I.json()}).then(I=>I.results?I.results.map(T=>T.uri[0]):[]).catch(I=>{n.showNotification(h,"Failed fetching suggestions")})},kh=[Ph,Vh,wh,_h];var Zh=ft(ts()),Us=ft(Nt());function Il(){return{...{mode:"sparql11",value:`PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
|
41
41
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
42
42
|
SELECT * WHERE {
|
|
43
43
|
?sub ?pred ?obj .
|
|
44
|
-
} LIMIT 10`,highlightSelectionMatches:{showToken:/\w/},tabMode:"indent",lineNumbers:!0,lineWrapping:!0,foldGutter:{rangeFinder:new Gs.default.fold.combine(Gs.default.fold.brace,Gs.default.fold.prefix)},collapsePrefixesOnLoad:!1,gutters:["gutterErrorBar","CodeMirror-linenumbers","CodeMirror-foldgutter"],matchBrackets:!0,fixedGutter:!0,syntaxErrorCheck:!0,autocompleters:[],extraKeys:{"Ctrl-Space":function(u){u.autocomplete()},"Shift-Ctrl-K":function(u){let h=u,g=h.getDoc().getCursor().line;return g===h.getDoc().lastLine()&&g>1?h.getDoc().replaceRange("",{ch:h.getDoc().getLine(g-1).length,line:g-1},{ch:h.getDoc().getLine(g).length,line:g}):h.getDoc().replaceRange("",{ch:0,line:g},{ch:0,line:g+1})},"Ctrl-/":function(u){u.commentLines()},"Shift-Ctrl-D":function(u){u.duplicateLine()},"Shift-Ctrl-F":function(u){u.autoformat()},"Ctrl-S":function(u){u.saveQuery()},"Cmd-Enter":function(u){u.query().catch(()=>{})},"Ctrl-Enter":function(u){u.query().catch(()=>{})},Esc:function(u){u.getInputField().blur()}},createShareableLink:function(u){return document.location.protocol+"//"+document.location.host+document.location.pathname+document.location.search+"#"+Zh.stringify(u.configToQueryParams())},pluginButtons:void 0,createShortLink:void 0,consumeShareLink:function(u){u.queryParamsToConfig(u.getUrlParams())},persistenceId:function(u){let h="",g=u.rootEl;for(g.id&&(h=g.id);g&&g!==document;g=g.parentNode)if(g){g.id&&(h=g.id);break}return"yasqe_"+h+"_query"},persistencyExpire:2592e3,showQueryButton:!0,hintConfig:{},resizeable:!0,editorHeight:"300px",queryingDisabled:void 0,prefixCcApi:"https://prefix.cc/popular/all.file.json"},requestConfig:{queryArgument:void 0,endpoint:"https://dbpedia.org/sparql",method:"POST",acceptHeaderGraph:"text/turtle,*/*;q=0.9",acceptHeaderSelect:"application/sparql-results+json,*/*;q=0.9",acceptHeaderUpdate:"text/plain,*/*;q=0.9",namedGraphs:[],defaultGraphs:[],args:[],headers:{},withCredentials:!1,adjustQueryBeforeRequest:!1}}}var Bs=ft(Nt());var Hh={"*[&&,valueLogical]":{"&&":["[&&,valueLogical]","*[&&,valueLogical]"],AS:[],")":[],",":[],"||":[],";":[]},"*[,,expression]":{",":["[,,expression]","*[,,expression]"],")":[]},"*[,,objectPath]":{",":["[,,objectPath]","*[,,objectPath]"],".":[],";":[],"]":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[,,object]":{",":["[,,object]","*[,,object]"],".":[],";":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"*[/,pathEltOrInverse]":{"/":["[/,pathEltOrInverse]","*[/,pathEltOrInverse]"],"|":[],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"*[;,?[or([verbPath,verbSimple]),objectListPath]]":{";":["[;,?[or([verbPath,verbSimple]),objectListPath]]","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],".":[],"]":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[;,?[verb,objectList]]":{";":["[;,?[verb,objectList]]","*[;,?[verb,objectList]]"],".":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"*[UNION,groupGraphPattern]":{UNION:["[UNION,groupGraphPattern]","*[UNION,groupGraphPattern]"],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],".":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[graphPatternNotTriples,?.,?triplesBlock]":{"{":["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],OPTIONAL:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],MINUS:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],GRAPH:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],SERVICE:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],FILTER:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],BIND:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],VALUES:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],"}":[]},"*[quadsNotTriples,?.,?triplesTemplate]":{GRAPH:["[quadsNotTriples,?.,?triplesTemplate]","*[quadsNotTriples,?.,?triplesTemplate]"],"}":[]},"*[|,pathOneInPropertySet]":{"|":["[|,pathOneInPropertySet]","*[|,pathOneInPropertySet]"],")":[]},"*[|,pathSequence]":{"|":["[|,pathSequence]","*[|,pathSequence]"],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"*[||,conditionalAndExpression]":{"||":["[||,conditionalAndExpression]","*[||,conditionalAndExpression]"],AS:[],")":[],",":[],";":[]},"*dataBlockValue":{UNDEF:["dataBlockValue","*dataBlockValue"],IRI_REF:["dataBlockValue","*dataBlockValue"],TRUE:["dataBlockValue","*dataBlockValue"],FALSE:["dataBlockValue","*dataBlockValue"],PNAME_LN:["dataBlockValue","*dataBlockValue"],PNAME_NS:["dataBlockValue","*dataBlockValue"],STRING_LITERAL1:["dataBlockValue","*dataBlockValue"],STRING_LITERAL2:["dataBlockValue","*dataBlockValue"],STRING_LITERAL_LONG1:["dataBlockValue","*dataBlockValue"],STRING_LITERAL_LONG2:["dataBlockValue","*dataBlockValue"],INTEGER:["dataBlockValue","*dataBlockValue"],DECIMAL:["dataBlockValue","*dataBlockValue"],DOUBLE:["dataBlockValue","*dataBlockValue"],INTEGER_POSITIVE:["dataBlockValue","*dataBlockValue"],DECIMAL_POSITIVE:["dataBlockValue","*dataBlockValue"],DOUBLE_POSITIVE:["dataBlockValue","*dataBlockValue"],INTEGER_NEGATIVE:["dataBlockValue","*dataBlockValue"],DECIMAL_NEGATIVE:["dataBlockValue","*dataBlockValue"],DOUBLE_NEGATIVE:["dataBlockValue","*dataBlockValue"],"}":[],")":[]},"*datasetClause":{FROM:["datasetClause","*datasetClause"],WHERE:[],"{":[]},"*describeDatasetClause":{FROM:["describeDatasetClause","*describeDatasetClause"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],WHERE:[],"{":[],VALUES:[],$:[]},"*graphNode":{"(":["graphNode","*graphNode"],"[":["graphNode","*graphNode"],VAR1:["graphNode","*graphNode"],VAR2:["graphNode","*graphNode"],NIL:["graphNode","*graphNode"],IRI_REF:["graphNode","*graphNode"],TRUE:["graphNode","*graphNode"],FALSE:["graphNode","*graphNode"],BLANK_NODE_LABEL:["graphNode","*graphNode"],ANON:["graphNode","*graphNode"],PNAME_LN:["graphNode","*graphNode"],PNAME_NS:["graphNode","*graphNode"],STRING_LITERAL1:["graphNode","*graphNode"],STRING_LITERAL2:["graphNode","*graphNode"],STRING_LITERAL_LONG1:["graphNode","*graphNode"],STRING_LITERAL_LONG2:["graphNode","*graphNode"],INTEGER:["graphNode","*graphNode"],DECIMAL:["graphNode","*graphNode"],DOUBLE:["graphNode","*graphNode"],INTEGER_POSITIVE:["graphNode","*graphNode"],DECIMAL_POSITIVE:["graphNode","*graphNode"],DOUBLE_POSITIVE:["graphNode","*graphNode"],INTEGER_NEGATIVE:["graphNode","*graphNode"],DECIMAL_NEGATIVE:["graphNode","*graphNode"],DOUBLE_NEGATIVE:["graphNode","*graphNode"],")":[]},"*graphNodePath":{"(":["graphNodePath","*graphNodePath"],"[":["graphNodePath","*graphNodePath"],VAR1:["graphNodePath","*graphNodePath"],VAR2:["graphNodePath","*graphNodePath"],NIL:["graphNodePath","*graphNodePath"],IRI_REF:["graphNodePath","*graphNodePath"],TRUE:["graphNodePath","*graphNodePath"],FALSE:["graphNodePath","*graphNodePath"],BLANK_NODE_LABEL:["graphNodePath","*graphNodePath"],ANON:["graphNodePath","*graphNodePath"],PNAME_LN:["graphNodePath","*graphNodePath"],PNAME_NS:["graphNodePath","*graphNodePath"],STRING_LITERAL1:["graphNodePath","*graphNodePath"],STRING_LITERAL2:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath","*graphNodePath"],INTEGER:["graphNodePath","*graphNodePath"],DECIMAL:["graphNodePath","*graphNodePath"],DOUBLE:["graphNodePath","*graphNodePath"],INTEGER_POSITIVE:["graphNodePath","*graphNodePath"],DECIMAL_POSITIVE:["graphNodePath","*graphNodePath"],DOUBLE_POSITIVE:["graphNodePath","*graphNodePath"],INTEGER_NEGATIVE:["graphNodePath","*graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath","*graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath","*graphNodePath"],")":[]},"*groupCondition":{"(":["groupCondition","*groupCondition"],STR:["groupCondition","*groupCondition"],LANG:["groupCondition","*groupCondition"],LANGMATCHES:["groupCondition","*groupCondition"],DATATYPE:["groupCondition","*groupCondition"],BOUND:["groupCondition","*groupCondition"],IRI:["groupCondition","*groupCondition"],URI:["groupCondition","*groupCondition"],BNODE:["groupCondition","*groupCondition"],RAND:["groupCondition","*groupCondition"],ABS:["groupCondition","*groupCondition"],CEIL:["groupCondition","*groupCondition"],FLOOR:["groupCondition","*groupCondition"],ROUND:["groupCondition","*groupCondition"],CONCAT:["groupCondition","*groupCondition"],STRLEN:["groupCondition","*groupCondition"],UCASE:["groupCondition","*groupCondition"],LCASE:["groupCondition","*groupCondition"],ENCODE_FOR_URI:["groupCondition","*groupCondition"],CONTAINS:["groupCondition","*groupCondition"],STRSTARTS:["groupCondition","*groupCondition"],STRENDS:["groupCondition","*groupCondition"],STRBEFORE:["groupCondition","*groupCondition"],STRAFTER:["groupCondition","*groupCondition"],YEAR:["groupCondition","*groupCondition"],MONTH:["groupCondition","*groupCondition"],DAY:["groupCondition","*groupCondition"],HOURS:["groupCondition","*groupCondition"],MINUTES:["groupCondition","*groupCondition"],SECONDS:["groupCondition","*groupCondition"],TIMEZONE:["groupCondition","*groupCondition"],TZ:["groupCondition","*groupCondition"],NOW:["groupCondition","*groupCondition"],UUID:["groupCondition","*groupCondition"],STRUUID:["groupCondition","*groupCondition"],MD5:["groupCondition","*groupCondition"],SHA1:["groupCondition","*groupCondition"],SHA256:["groupCondition","*groupCondition"],SHA384:["groupCondition","*groupCondition"],SHA512:["groupCondition","*groupCondition"],COALESCE:["groupCondition","*groupCondition"],IF:["groupCondition","*groupCondition"],STRLANG:["groupCondition","*groupCondition"],STRDT:["groupCondition","*groupCondition"],SAMETERM:["groupCondition","*groupCondition"],ISIRI:["groupCondition","*groupCondition"],ISURI:["groupCondition","*groupCondition"],ISBLANK:["groupCondition","*groupCondition"],ISLITERAL:["groupCondition","*groupCondition"],ISNUMERIC:["groupCondition","*groupCondition"],VAR1:["groupCondition","*groupCondition"],VAR2:["groupCondition","*groupCondition"],SUBSTR:["groupCondition","*groupCondition"],REPLACE:["groupCondition","*groupCondition"],REGEX:["groupCondition","*groupCondition"],EXISTS:["groupCondition","*groupCondition"],NOT:["groupCondition","*groupCondition"],IRI_REF:["groupCondition","*groupCondition"],PNAME_LN:["groupCondition","*groupCondition"],PNAME_NS:["groupCondition","*groupCondition"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],HAVING:[],$:[],"}":[]},"*havingCondition":{"(":["havingCondition","*havingCondition"],STR:["havingCondition","*havingCondition"],LANG:["havingCondition","*havingCondition"],LANGMATCHES:["havingCondition","*havingCondition"],DATATYPE:["havingCondition","*havingCondition"],BOUND:["havingCondition","*havingCondition"],IRI:["havingCondition","*havingCondition"],URI:["havingCondition","*havingCondition"],BNODE:["havingCondition","*havingCondition"],RAND:["havingCondition","*havingCondition"],ABS:["havingCondition","*havingCondition"],CEIL:["havingCondition","*havingCondition"],FLOOR:["havingCondition","*havingCondition"],ROUND:["havingCondition","*havingCondition"],CONCAT:["havingCondition","*havingCondition"],STRLEN:["havingCondition","*havingCondition"],UCASE:["havingCondition","*havingCondition"],LCASE:["havingCondition","*havingCondition"],ENCODE_FOR_URI:["havingCondition","*havingCondition"],CONTAINS:["havingCondition","*havingCondition"],STRSTARTS:["havingCondition","*havingCondition"],STRENDS:["havingCondition","*havingCondition"],STRBEFORE:["havingCondition","*havingCondition"],STRAFTER:["havingCondition","*havingCondition"],YEAR:["havingCondition","*havingCondition"],MONTH:["havingCondition","*havingCondition"],DAY:["havingCondition","*havingCondition"],HOURS:["havingCondition","*havingCondition"],MINUTES:["havingCondition","*havingCondition"],SECONDS:["havingCondition","*havingCondition"],TIMEZONE:["havingCondition","*havingCondition"],TZ:["havingCondition","*havingCondition"],NOW:["havingCondition","*havingCondition"],UUID:["havingCondition","*havingCondition"],STRUUID:["havingCondition","*havingCondition"],MD5:["havingCondition","*havingCondition"],SHA1:["havingCondition","*havingCondition"],SHA256:["havingCondition","*havingCondition"],SHA384:["havingCondition","*havingCondition"],SHA512:["havingCondition","*havingCondition"],COALESCE:["havingCondition","*havingCondition"],IF:["havingCondition","*havingCondition"],STRLANG:["havingCondition","*havingCondition"],STRDT:["havingCondition","*havingCondition"],SAMETERM:["havingCondition","*havingCondition"],ISIRI:["havingCondition","*havingCondition"],ISURI:["havingCondition","*havingCondition"],ISBLANK:["havingCondition","*havingCondition"],ISLITERAL:["havingCondition","*havingCondition"],ISNUMERIC:["havingCondition","*havingCondition"],SUBSTR:["havingCondition","*havingCondition"],REPLACE:["havingCondition","*havingCondition"],REGEX:["havingCondition","*havingCondition"],EXISTS:["havingCondition","*havingCondition"],NOT:["havingCondition","*havingCondition"],IRI_REF:["havingCondition","*havingCondition"],PNAME_LN:["havingCondition","*havingCondition"],PNAME_NS:["havingCondition","*havingCondition"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],$:[],"}":[]},"*or([[(,*dataBlockValue,)],NIL])":{"(":["or([[(,*dataBlockValue,)],NIL])","*or([[(,*dataBlockValue,)],NIL])"],NIL:["or([[(,*dataBlockValue,)],NIL])","*or([[(,*dataBlockValue,)],NIL])"],"}":[]},"*or([[*,unaryExpression],[/,unaryExpression]])":{"*":["or([[*,unaryExpression],[/,unaryExpression]])","*or([[*,unaryExpression],[/,unaryExpression]])"],"/":["or([[*,unaryExpression],[/,unaryExpression]])","*or([[*,unaryExpression],[/,unaryExpression]])"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],";":[]},"*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])":{"+":["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"-":["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],";":[]},"*or([baseDecl,prefixDecl])":{BASE:["or([baseDecl,prefixDecl])","*or([baseDecl,prefixDecl])"],PREFIX:["or([baseDecl,prefixDecl])","*or([baseDecl,prefixDecl])"],$:[],CONSTRUCT:[],DESCRIBE:[],ASK:[],INSERT:[],DELETE:[],SELECT:[],LOAD:[],CLEAR:[],DROP:[],ADD:[],MOVE:[],COPY:[],CREATE:[],WITH:[]},"*or([var,[(,expression,AS,var,)]])":{"(":["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR1:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR2:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],WHERE:[],"{":[],FROM:[]},"*orderCondition":{ASC:["orderCondition","*orderCondition"],DESC:["orderCondition","*orderCondition"],VAR1:["orderCondition","*orderCondition"],VAR2:["orderCondition","*orderCondition"],"(":["orderCondition","*orderCondition"],STR:["orderCondition","*orderCondition"],LANG:["orderCondition","*orderCondition"],LANGMATCHES:["orderCondition","*orderCondition"],DATATYPE:["orderCondition","*orderCondition"],BOUND:["orderCondition","*orderCondition"],IRI:["orderCondition","*orderCondition"],URI:["orderCondition","*orderCondition"],BNODE:["orderCondition","*orderCondition"],RAND:["orderCondition","*orderCondition"],ABS:["orderCondition","*orderCondition"],CEIL:["orderCondition","*orderCondition"],FLOOR:["orderCondition","*orderCondition"],ROUND:["orderCondition","*orderCondition"],CONCAT:["orderCondition","*orderCondition"],STRLEN:["orderCondition","*orderCondition"],UCASE:["orderCondition","*orderCondition"],LCASE:["orderCondition","*orderCondition"],ENCODE_FOR_URI:["orderCondition","*orderCondition"],CONTAINS:["orderCondition","*orderCondition"],STRSTARTS:["orderCondition","*orderCondition"],STRENDS:["orderCondition","*orderCondition"],STRBEFORE:["orderCondition","*orderCondition"],STRAFTER:["orderCondition","*orderCondition"],YEAR:["orderCondition","*orderCondition"],MONTH:["orderCondition","*orderCondition"],DAY:["orderCondition","*orderCondition"],HOURS:["orderCondition","*orderCondition"],MINUTES:["orderCondition","*orderCondition"],SECONDS:["orderCondition","*orderCondition"],TIMEZONE:["orderCondition","*orderCondition"],TZ:["orderCondition","*orderCondition"],NOW:["orderCondition","*orderCondition"],UUID:["orderCondition","*orderCondition"],STRUUID:["orderCondition","*orderCondition"],MD5:["orderCondition","*orderCondition"],SHA1:["orderCondition","*orderCondition"],SHA256:["orderCondition","*orderCondition"],SHA384:["orderCondition","*orderCondition"],SHA512:["orderCondition","*orderCondition"],COALESCE:["orderCondition","*orderCondition"],IF:["orderCondition","*orderCondition"],STRLANG:["orderCondition","*orderCondition"],STRDT:["orderCondition","*orderCondition"],SAMETERM:["orderCondition","*orderCondition"],ISIRI:["orderCondition","*orderCondition"],ISURI:["orderCondition","*orderCondition"],ISBLANK:["orderCondition","*orderCondition"],ISLITERAL:["orderCondition","*orderCondition"],ISNUMERIC:["orderCondition","*orderCondition"],SUBSTR:["orderCondition","*orderCondition"],REPLACE:["orderCondition","*orderCondition"],REGEX:["orderCondition","*orderCondition"],EXISTS:["orderCondition","*orderCondition"],NOT:["orderCondition","*orderCondition"],IRI_REF:["orderCondition","*orderCondition"],PNAME_LN:["orderCondition","*orderCondition"],PNAME_NS:["orderCondition","*orderCondition"],VALUES:[],LIMIT:[],OFFSET:[],$:[],"}":[]},"*usingClause":{USING:["usingClause","*usingClause"],WHERE:[]},"*var":{VAR1:["var","*var"],VAR2:["var","*var"],")":[]},"*varOrIRIref":{VAR1:["varOrIRIref","*varOrIRIref"],VAR2:["varOrIRIref","*varOrIRIref"],IRI_REF:["varOrIRIref","*varOrIRIref"],PNAME_LN:["varOrIRIref","*varOrIRIref"],PNAME_NS:["varOrIRIref","*varOrIRIref"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],WHERE:[],"{":[],FROM:[],VALUES:[],$:[]},"+graphNode":{"(":["graphNode","*graphNode"],"[":["graphNode","*graphNode"],VAR1:["graphNode","*graphNode"],VAR2:["graphNode","*graphNode"],NIL:["graphNode","*graphNode"],IRI_REF:["graphNode","*graphNode"],TRUE:["graphNode","*graphNode"],FALSE:["graphNode","*graphNode"],BLANK_NODE_LABEL:["graphNode","*graphNode"],ANON:["graphNode","*graphNode"],PNAME_LN:["graphNode","*graphNode"],PNAME_NS:["graphNode","*graphNode"],STRING_LITERAL1:["graphNode","*graphNode"],STRING_LITERAL2:["graphNode","*graphNode"],STRING_LITERAL_LONG1:["graphNode","*graphNode"],STRING_LITERAL_LONG2:["graphNode","*graphNode"],INTEGER:["graphNode","*graphNode"],DECIMAL:["graphNode","*graphNode"],DOUBLE:["graphNode","*graphNode"],INTEGER_POSITIVE:["graphNode","*graphNode"],DECIMAL_POSITIVE:["graphNode","*graphNode"],DOUBLE_POSITIVE:["graphNode","*graphNode"],INTEGER_NEGATIVE:["graphNode","*graphNode"],DECIMAL_NEGATIVE:["graphNode","*graphNode"],DOUBLE_NEGATIVE:["graphNode","*graphNode"]},"+graphNodePath":{"(":["graphNodePath","*graphNodePath"],"[":["graphNodePath","*graphNodePath"],VAR1:["graphNodePath","*graphNodePath"],VAR2:["graphNodePath","*graphNodePath"],NIL:["graphNodePath","*graphNodePath"],IRI_REF:["graphNodePath","*graphNodePath"],TRUE:["graphNodePath","*graphNodePath"],FALSE:["graphNodePath","*graphNodePath"],BLANK_NODE_LABEL:["graphNodePath","*graphNodePath"],ANON:["graphNodePath","*graphNodePath"],PNAME_LN:["graphNodePath","*graphNodePath"],PNAME_NS:["graphNodePath","*graphNodePath"],STRING_LITERAL1:["graphNodePath","*graphNodePath"],STRING_LITERAL2:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath","*graphNodePath"],INTEGER:["graphNodePath","*graphNodePath"],DECIMAL:["graphNodePath","*graphNodePath"],DOUBLE:["graphNodePath","*graphNodePath"],INTEGER_POSITIVE:["graphNodePath","*graphNodePath"],DECIMAL_POSITIVE:["graphNodePath","*graphNodePath"],DOUBLE_POSITIVE:["graphNodePath","*graphNodePath"],INTEGER_NEGATIVE:["graphNodePath","*graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath","*graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath","*graphNodePath"]},"+groupCondition":{"(":["groupCondition","*groupCondition"],STR:["groupCondition","*groupCondition"],LANG:["groupCondition","*groupCondition"],LANGMATCHES:["groupCondition","*groupCondition"],DATATYPE:["groupCondition","*groupCondition"],BOUND:["groupCondition","*groupCondition"],IRI:["groupCondition","*groupCondition"],URI:["groupCondition","*groupCondition"],BNODE:["groupCondition","*groupCondition"],RAND:["groupCondition","*groupCondition"],ABS:["groupCondition","*groupCondition"],CEIL:["groupCondition","*groupCondition"],FLOOR:["groupCondition","*groupCondition"],ROUND:["groupCondition","*groupCondition"],CONCAT:["groupCondition","*groupCondition"],STRLEN:["groupCondition","*groupCondition"],UCASE:["groupCondition","*groupCondition"],LCASE:["groupCondition","*groupCondition"],ENCODE_FOR_URI:["groupCondition","*groupCondition"],CONTAINS:["groupCondition","*groupCondition"],STRSTARTS:["groupCondition","*groupCondition"],STRENDS:["groupCondition","*groupCondition"],STRBEFORE:["groupCondition","*groupCondition"],STRAFTER:["groupCondition","*groupCondition"],YEAR:["groupCondition","*groupCondition"],MONTH:["groupCondition","*groupCondition"],DAY:["groupCondition","*groupCondition"],HOURS:["groupCondition","*groupCondition"],MINUTES:["groupCondition","*groupCondition"],SECONDS:["groupCondition","*groupCondition"],TIMEZONE:["groupCondition","*groupCondition"],TZ:["groupCondition","*groupCondition"],NOW:["groupCondition","*groupCondition"],UUID:["groupCondition","*groupCondition"],STRUUID:["groupCondition","*groupCondition"],MD5:["groupCondition","*groupCondition"],SHA1:["groupCondition","*groupCondition"],SHA256:["groupCondition","*groupCondition"],SHA384:["groupCondition","*groupCondition"],SHA512:["groupCondition","*groupCondition"],COALESCE:["groupCondition","*groupCondition"],IF:["groupCondition","*groupCondition"],STRLANG:["groupCondition","*groupCondition"],STRDT:["groupCondition","*groupCondition"],SAMETERM:["groupCondition","*groupCondition"],ISIRI:["groupCondition","*groupCondition"],ISURI:["groupCondition","*groupCondition"],ISBLANK:["groupCondition","*groupCondition"],ISLITERAL:["groupCondition","*groupCondition"],ISNUMERIC:["groupCondition","*groupCondition"],VAR1:["groupCondition","*groupCondition"],VAR2:["groupCondition","*groupCondition"],SUBSTR:["groupCondition","*groupCondition"],REPLACE:["groupCondition","*groupCondition"],REGEX:["groupCondition","*groupCondition"],EXISTS:["groupCondition","*groupCondition"],NOT:["groupCondition","*groupCondition"],IRI_REF:["groupCondition","*groupCondition"],PNAME_LN:["groupCondition","*groupCondition"],PNAME_NS:["groupCondition","*groupCondition"]},"+havingCondition":{"(":["havingCondition","*havingCondition"],STR:["havingCondition","*havingCondition"],LANG:["havingCondition","*havingCondition"],LANGMATCHES:["havingCondition","*havingCondition"],DATATYPE:["havingCondition","*havingCondition"],BOUND:["havingCondition","*havingCondition"],IRI:["havingCondition","*havingCondition"],URI:["havingCondition","*havingCondition"],BNODE:["havingCondition","*havingCondition"],RAND:["havingCondition","*havingCondition"],ABS:["havingCondition","*havingCondition"],CEIL:["havingCondition","*havingCondition"],FLOOR:["havingCondition","*havingCondition"],ROUND:["havingCondition","*havingCondition"],CONCAT:["havingCondition","*havingCondition"],STRLEN:["havingCondition","*havingCondition"],UCASE:["havingCondition","*havingCondition"],LCASE:["havingCondition","*havingCondition"],ENCODE_FOR_URI:["havingCondition","*havingCondition"],CONTAINS:["havingCondition","*havingCondition"],STRSTARTS:["havingCondition","*havingCondition"],STRENDS:["havingCondition","*havingCondition"],STRBEFORE:["havingCondition","*havingCondition"],STRAFTER:["havingCondition","*havingCondition"],YEAR:["havingCondition","*havingCondition"],MONTH:["havingCondition","*havingCondition"],DAY:["havingCondition","*havingCondition"],HOURS:["havingCondition","*havingCondition"],MINUTES:["havingCondition","*havingCondition"],SECONDS:["havingCondition","*havingCondition"],TIMEZONE:["havingCondition","*havingCondition"],TZ:["havingCondition","*havingCondition"],NOW:["havingCondition","*havingCondition"],UUID:["havingCondition","*havingCondition"],STRUUID:["havingCondition","*havingCondition"],MD5:["havingCondition","*havingCondition"],SHA1:["havingCondition","*havingCondition"],SHA256:["havingCondition","*havingCondition"],SHA384:["havingCondition","*havingCondition"],SHA512:["havingCondition","*havingCondition"],COALESCE:["havingCondition","*havingCondition"],IF:["havingCondition","*havingCondition"],STRLANG:["havingCondition","*havingCondition"],STRDT:["havingCondition","*havingCondition"],SAMETERM:["havingCondition","*havingCondition"],ISIRI:["havingCondition","*havingCondition"],ISURI:["havingCondition","*havingCondition"],ISBLANK:["havingCondition","*havingCondition"],ISLITERAL:["havingCondition","*havingCondition"],ISNUMERIC:["havingCondition","*havingCondition"],SUBSTR:["havingCondition","*havingCondition"],REPLACE:["havingCondition","*havingCondition"],REGEX:["havingCondition","*havingCondition"],EXISTS:["havingCondition","*havingCondition"],NOT:["havingCondition","*havingCondition"],IRI_REF:["havingCondition","*havingCondition"],PNAME_LN:["havingCondition","*havingCondition"],PNAME_NS:["havingCondition","*havingCondition"]},"+or([var,[(,expression,AS,var,)]])":{"(":["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR1:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR2:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"]},"+orderCondition":{ASC:["orderCondition","*orderCondition"],DESC:["orderCondition","*orderCondition"],VAR1:["orderCondition","*orderCondition"],VAR2:["orderCondition","*orderCondition"],"(":["orderCondition","*orderCondition"],STR:["orderCondition","*orderCondition"],LANG:["orderCondition","*orderCondition"],LANGMATCHES:["orderCondition","*orderCondition"],DATATYPE:["orderCondition","*orderCondition"],BOUND:["orderCondition","*orderCondition"],IRI:["orderCondition","*orderCondition"],URI:["orderCondition","*orderCondition"],BNODE:["orderCondition","*orderCondition"],RAND:["orderCondition","*orderCondition"],ABS:["orderCondition","*orderCondition"],CEIL:["orderCondition","*orderCondition"],FLOOR:["orderCondition","*orderCondition"],ROUND:["orderCondition","*orderCondition"],CONCAT:["orderCondition","*orderCondition"],STRLEN:["orderCondition","*orderCondition"],UCASE:["orderCondition","*orderCondition"],LCASE:["orderCondition","*orderCondition"],ENCODE_FOR_URI:["orderCondition","*orderCondition"],CONTAINS:["orderCondition","*orderCondition"],STRSTARTS:["orderCondition","*orderCondition"],STRENDS:["orderCondition","*orderCondition"],STRBEFORE:["orderCondition","*orderCondition"],STRAFTER:["orderCondition","*orderCondition"],YEAR:["orderCondition","*orderCondition"],MONTH:["orderCondition","*orderCondition"],DAY:["orderCondition","*orderCondition"],HOURS:["orderCondition","*orderCondition"],MINUTES:["orderCondition","*orderCondition"],SECONDS:["orderCondition","*orderCondition"],TIMEZONE:["orderCondition","*orderCondition"],TZ:["orderCondition","*orderCondition"],NOW:["orderCondition","*orderCondition"],UUID:["orderCondition","*orderCondition"],STRUUID:["orderCondition","*orderCondition"],MD5:["orderCondition","*orderCondition"],SHA1:["orderCondition","*orderCondition"],SHA256:["orderCondition","*orderCondition"],SHA384:["orderCondition","*orderCondition"],SHA512:["orderCondition","*orderCondition"],COALESCE:["orderCondition","*orderCondition"],IF:["orderCondition","*orderCondition"],STRLANG:["orderCondition","*orderCondition"],STRDT:["orderCondition","*orderCondition"],SAMETERM:["orderCondition","*orderCondition"],ISIRI:["orderCondition","*orderCondition"],ISURI:["orderCondition","*orderCondition"],ISBLANK:["orderCondition","*orderCondition"],ISLITERAL:["orderCondition","*orderCondition"],ISNUMERIC:["orderCondition","*orderCondition"],SUBSTR:["orderCondition","*orderCondition"],REPLACE:["orderCondition","*orderCondition"],REGEX:["orderCondition","*orderCondition"],EXISTS:["orderCondition","*orderCondition"],NOT:["orderCondition","*orderCondition"],IRI_REF:["orderCondition","*orderCondition"],PNAME_LN:["orderCondition","*orderCondition"],PNAME_NS:["orderCondition","*orderCondition"]},"+varOrIRIref":{VAR1:["varOrIRIref","*varOrIRIref"],VAR2:["varOrIRIref","*varOrIRIref"],IRI_REF:["varOrIRIref","*varOrIRIref"],PNAME_LN:["varOrIRIref","*varOrIRIref"],PNAME_NS:["varOrIRIref","*varOrIRIref"]},"?.":{".":["."],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?DISTINCT":{DISTINCT:["DISTINCT"],"!":[],"+":[],"-":[],VAR1:[],VAR2:[],"(":[],STR:[],LANG:[],LANGMATCHES:[],DATATYPE:[],BOUND:[],IRI:[],URI:[],BNODE:[],RAND:[],ABS:[],CEIL:[],FLOOR:[],ROUND:[],CONCAT:[],STRLEN:[],UCASE:[],LCASE:[],ENCODE_FOR_URI:[],CONTAINS:[],STRSTARTS:[],STRENDS:[],STRBEFORE:[],STRAFTER:[],YEAR:[],MONTH:[],DAY:[],HOURS:[],MINUTES:[],SECONDS:[],TIMEZONE:[],TZ:[],NOW:[],UUID:[],STRUUID:[],MD5:[],SHA1:[],SHA256:[],SHA384:[],SHA512:[],COALESCE:[],IF:[],STRLANG:[],STRDT:[],SAMETERM:[],ISIRI:[],ISURI:[],ISBLANK:[],ISLITERAL:[],ISNUMERIC:[],TRUE:[],FALSE:[],COUNT:[],SUM:[],MIN:[],MAX:[],AVG:[],SAMPLE:[],GROUP_CONCAT:[],SUBSTR:[],REPLACE:[],REGEX:[],EXISTS:[],NOT:[],IRI_REF:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],PNAME_LN:[],PNAME_NS:[],"*":[]},"?GRAPH":{GRAPH:["GRAPH"],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT":{SILENT:["SILENT"],VAR1:[],VAR2:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT_1":{SILENT:["SILENT"],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT_2":{SILENT:["SILENT"],GRAPH:[],DEFAULT:[],NAMED:[],ALL:[]},"?SILENT_3":{SILENT:["SILENT"],GRAPH:[]},"?SILENT_4":{SILENT:["SILENT"],DEFAULT:[],GRAPH:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?WHERE":{WHERE:["WHERE"],"{":[]},"?[,,expression]":{",":["[,,expression]"],")":[]},"?[.,?constructTriples]":{".":["[.,?constructTriples]"],"}":[]},"?[.,?triplesBlock]":{".":["[.,?triplesBlock]"],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?[.,?triplesTemplate]":{".":["[.,?triplesTemplate]"],"}":[],GRAPH:[]},"?[;,SEPARATOR,=,string]":{";":["[;,SEPARATOR,=,string]"],")":[]},"?[;,update]":{";":["[;,update]"],$:[]},"?[AS,var]":{AS:["[AS,var]"],")":[]},"?[INTO,graphRef]":{INTO:["[INTO,graphRef]"],";":[],$:[]},"?[or([verbPath,verbSimple]),objectListPath]":{VAR1:["[or([verbPath,verbSimple]),objectListPath]"],VAR2:["[or([verbPath,verbSimple]),objectListPath]"],"^":["[or([verbPath,verbSimple]),objectListPath]"],a:["[or([verbPath,verbSimple]),objectListPath]"],"!":["[or([verbPath,verbSimple]),objectListPath]"],"(":["[or([verbPath,verbSimple]),objectListPath]"],IRI_REF:["[or([verbPath,verbSimple]),objectListPath]"],PNAME_LN:["[or([verbPath,verbSimple]),objectListPath]"],PNAME_NS:["[or([verbPath,verbSimple]),objectListPath]"],";":[],".":[],"]":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?[pathOneInPropertySet,*[|,pathOneInPropertySet]]":{a:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],"^":["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],IRI_REF:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],PNAME_LN:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],PNAME_NS:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],")":[]},"?[update1,?[;,update]]":{INSERT:["[update1,?[;,update]]"],DELETE:["[update1,?[;,update]]"],LOAD:["[update1,?[;,update]]"],CLEAR:["[update1,?[;,update]]"],DROP:["[update1,?[;,update]]"],ADD:["[update1,?[;,update]]"],MOVE:["[update1,?[;,update]]"],COPY:["[update1,?[;,update]]"],CREATE:["[update1,?[;,update]]"],WITH:["[update1,?[;,update]]"],$:[]},"?[verb,objectList]":{a:["[verb,objectList]"],VAR1:["[verb,objectList]"],VAR2:["[verb,objectList]"],IRI_REF:["[verb,objectList]"],PNAME_LN:["[verb,objectList]"],PNAME_NS:["[verb,objectList]"],";":[],".":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"?argList":{NIL:["argList"],"(":["argList"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],"*":[],"/":[],";":[]},"?constructTriples":{VAR1:["constructTriples"],VAR2:["constructTriples"],NIL:["constructTriples"],"(":["constructTriples"],"[":["constructTriples"],IRI_REF:["constructTriples"],TRUE:["constructTriples"],FALSE:["constructTriples"],BLANK_NODE_LABEL:["constructTriples"],ANON:["constructTriples"],PNAME_LN:["constructTriples"],PNAME_NS:["constructTriples"],STRING_LITERAL1:["constructTriples"],STRING_LITERAL2:["constructTriples"],STRING_LITERAL_LONG1:["constructTriples"],STRING_LITERAL_LONG2:["constructTriples"],INTEGER:["constructTriples"],DECIMAL:["constructTriples"],DOUBLE:["constructTriples"],INTEGER_POSITIVE:["constructTriples"],DECIMAL_POSITIVE:["constructTriples"],DOUBLE_POSITIVE:["constructTriples"],INTEGER_NEGATIVE:["constructTriples"],DECIMAL_NEGATIVE:["constructTriples"],DOUBLE_NEGATIVE:["constructTriples"],"}":[]},"?groupClause":{GROUP:["groupClause"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],HAVING:[],$:[],"}":[]},"?havingClause":{HAVING:["havingClause"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],$:[],"}":[]},"?insertClause":{INSERT:["insertClause"],WHERE:[],USING:[]},"?limitClause":{LIMIT:["limitClause"],VALUES:[],$:[],"}":[]},"?limitOffsetClauses":{LIMIT:["limitOffsetClauses"],OFFSET:["limitOffsetClauses"],VALUES:[],$:[],"}":[]},"?offsetClause":{OFFSET:["offsetClause"],VALUES:[],$:[],"}":[]},"?or([DISTINCT,REDUCED])":{DISTINCT:["or([DISTINCT,REDUCED])"],REDUCED:["or([DISTINCT,REDUCED])"],"*":[],"(":[],VAR1:[],VAR2:[]},"?or([LANGTAG,[^^,iriRef]])":{LANGTAG:["or([LANGTAG,[^^,iriRef]])"],"^^":["or([LANGTAG,[^^,iriRef]])"],UNDEF:[],IRI_REF:[],TRUE:[],FALSE:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],a:[],VAR1:[],VAR2:[],"^":[],"!":[],"(":[],".":[],";":[],",":[],AS:[],")":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],"*":[],"/":[],"}":[],"[":[],NIL:[],BLANK_NODE_LABEL:[],ANON:[],"]":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"?or([[*,unaryExpression],[/,unaryExpression]])":{"*":["or([[*,unaryExpression],[/,unaryExpression]])"],"/":["or([[*,unaryExpression],[/,unaryExpression]])"],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],";":[]},"?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])":{"=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"!=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"<":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],">":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"<=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],">=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IN:["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOT:["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],AS:[],")":[],",":[],"||":[],"&&":[],";":[]},"?orderClause":{ORDER:["orderClause"],VALUES:[],LIMIT:[],OFFSET:[],$:[],"}":[]},"?pathMod":{"*":["pathMod"],"?":["pathMod"],"+":["pathMod"],"{":["pathMod"],"|":[],"/":[],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"?triplesBlock":{VAR1:["triplesBlock"],VAR2:["triplesBlock"],NIL:["triplesBlock"],"(":["triplesBlock"],"[":["triplesBlock"],IRI_REF:["triplesBlock"],TRUE:["triplesBlock"],FALSE:["triplesBlock"],BLANK_NODE_LABEL:["triplesBlock"],ANON:["triplesBlock"],PNAME_LN:["triplesBlock"],PNAME_NS:["triplesBlock"],STRING_LITERAL1:["triplesBlock"],STRING_LITERAL2:["triplesBlock"],STRING_LITERAL_LONG1:["triplesBlock"],STRING_LITERAL_LONG2:["triplesBlock"],INTEGER:["triplesBlock"],DECIMAL:["triplesBlock"],DOUBLE:["triplesBlock"],INTEGER_POSITIVE:["triplesBlock"],DECIMAL_POSITIVE:["triplesBlock"],DOUBLE_POSITIVE:["triplesBlock"],INTEGER_NEGATIVE:["triplesBlock"],DECIMAL_NEGATIVE:["triplesBlock"],DOUBLE_NEGATIVE:["triplesBlock"],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?triplesTemplate":{VAR1:["triplesTemplate"],VAR2:["triplesTemplate"],NIL:["triplesTemplate"],"(":["triplesTemplate"],"[":["triplesTemplate"],IRI_REF:["triplesTemplate"],TRUE:["triplesTemplate"],FALSE:["triplesTemplate"],BLANK_NODE_LABEL:["triplesTemplate"],ANON:["triplesTemplate"],PNAME_LN:["triplesTemplate"],PNAME_NS:["triplesTemplate"],STRING_LITERAL1:["triplesTemplate"],STRING_LITERAL2:["triplesTemplate"],STRING_LITERAL_LONG1:["triplesTemplate"],STRING_LITERAL_LONG2:["triplesTemplate"],INTEGER:["triplesTemplate"],DECIMAL:["triplesTemplate"],DOUBLE:["triplesTemplate"],INTEGER_POSITIVE:["triplesTemplate"],DECIMAL_POSITIVE:["triplesTemplate"],DOUBLE_POSITIVE:["triplesTemplate"],INTEGER_NEGATIVE:["triplesTemplate"],DECIMAL_NEGATIVE:["triplesTemplate"],DOUBLE_NEGATIVE:["triplesTemplate"],"}":[],GRAPH:[]},"?whereClause":{WHERE:["whereClause"],"{":["whereClause"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],VALUES:[],$:[]},"[!=,numericExpression]":{"!=":["!=","numericExpression"]},"[&&,valueLogical]":{"&&":["&&","valueLogical"]},"[(,*dataBlockValue,)]":{"(":["(","*dataBlockValue",")"]},"[(,*var,)]":{"(":["(","*var",")"]},"[(,expression,)]":{"(":["(","expression",")"]},"[(,expression,AS,var,)]":{"(":["(","expression","AS","var",")"]},"[*,unaryExpression]":{"*":["*","unaryExpression"]},"[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]":{WHERE:["*datasetClause","WHERE","{","?triplesTemplate","}","solutionModifier"],FROM:["*datasetClause","WHERE","{","?triplesTemplate","}","solutionModifier"]},"[+,multiplicativeExpression]":{"+":["+","multiplicativeExpression"]},"[,,expression]":{",":[",","expression"]},"[,,integer,}]":{",":[",","integer","}"]},"[,,objectPath]":{",":[",","objectPath"]},"[,,object]":{",":[",","object"]},"[,,or([},[integer,}]])]":{",":[",","or([},[integer,}]])"]},"[-,multiplicativeExpression]":{"-":["-","multiplicativeExpression"]},"[.,?constructTriples]":{".":[".","?constructTriples"]},"[.,?triplesBlock]":{".":[".","?triplesBlock"]},"[.,?triplesTemplate]":{".":[".","?triplesTemplate"]},"[/,pathEltOrInverse]":{"/":["/","pathEltOrInverse"]},"[/,unaryExpression]":{"/":["/","unaryExpression"]},"[;,?[or([verbPath,verbSimple]),objectListPath]]":{";":[";","?[or([verbPath,verbSimple]),objectListPath]"]},"[;,?[verb,objectList]]":{";":[";","?[verb,objectList]"]},"[;,SEPARATOR,=,string]":{";":[";","SEPARATOR","=","string"]},"[;,update]":{";":[";","update"]},"[<,numericExpression]":{"<":["<","numericExpression"]},"[<=,numericExpression]":{"<=":["<=","numericExpression"]},"[=,numericExpression]":{"=":["=","numericExpression"]},"[>,numericExpression]":{">":[">","numericExpression"]},"[>=,numericExpression]":{">=":[">=","numericExpression"]},"[AS,var]":{AS:["AS","var"]},"[IN,expressionList]":{IN:["IN","expressionList"]},"[INTO,graphRef]":{INTO:["INTO","graphRef"]},"[NAMED,iriRef]":{NAMED:["NAMED","iriRef"]},"[NOT,IN,expressionList]":{NOT:["NOT","IN","expressionList"]},"[UNION,groupGraphPattern]":{UNION:["UNION","groupGraphPattern"]},"[^^,iriRef]":{"^^":["^^","iriRef"]},"[constructTemplate,*datasetClause,whereClause,solutionModifier]":{"{":["constructTemplate","*datasetClause","whereClause","solutionModifier"]},"[deleteClause,?insertClause]":{DELETE:["deleteClause","?insertClause"]},"[graphPatternNotTriples,?.,?triplesBlock]":{"{":["graphPatternNotTriples","?.","?triplesBlock"],OPTIONAL:["graphPatternNotTriples","?.","?triplesBlock"],MINUS:["graphPatternNotTriples","?.","?triplesBlock"],GRAPH:["graphPatternNotTriples","?.","?triplesBlock"],SERVICE:["graphPatternNotTriples","?.","?triplesBlock"],FILTER:["graphPatternNotTriples","?.","?triplesBlock"],BIND:["graphPatternNotTriples","?.","?triplesBlock"],VALUES:["graphPatternNotTriples","?.","?triplesBlock"]},"[integer,or([[,,or([},[integer,}]])],}])]":{INTEGER:["integer","or([[,,or([},[integer,}]])],}])"]},"[integer,}]":{INTEGER:["integer","}"]},"[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]":{INTEGER_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"]},"[or([verbPath,verbSimple]),objectListPath]":{VAR1:["or([verbPath,verbSimple])","objectListPath"],VAR2:["or([verbPath,verbSimple])","objectListPath"],"^":["or([verbPath,verbSimple])","objectListPath"],a:["or([verbPath,verbSimple])","objectListPath"],"!":["or([verbPath,verbSimple])","objectListPath"],"(":["or([verbPath,verbSimple])","objectListPath"],IRI_REF:["or([verbPath,verbSimple])","objectListPath"],PNAME_LN:["or([verbPath,verbSimple])","objectListPath"],PNAME_NS:["or([verbPath,verbSimple])","objectListPath"]},"[pathOneInPropertySet,*[|,pathOneInPropertySet]]":{a:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],"^":["pathOneInPropertySet","*[|,pathOneInPropertySet]"],IRI_REF:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],PNAME_LN:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],PNAME_NS:["pathOneInPropertySet","*[|,pathOneInPropertySet]"]},"[quadsNotTriples,?.,?triplesTemplate]":{GRAPH:["quadsNotTriples","?.","?triplesTemplate"]},"[update1,?[;,update]]":{INSERT:["update1","?[;,update]"],DELETE:["update1","?[;,update]"],LOAD:["update1","?[;,update]"],CLEAR:["update1","?[;,update]"],DROP:["update1","?[;,update]"],ADD:["update1","?[;,update]"],MOVE:["update1","?[;,update]"],COPY:["update1","?[;,update]"],CREATE:["update1","?[;,update]"],WITH:["update1","?[;,update]"]},"[verb,objectList]":{a:["verb","objectList"],VAR1:["verb","objectList"],VAR2:["verb","objectList"],IRI_REF:["verb","objectList"],PNAME_LN:["verb","objectList"],PNAME_NS:["verb","objectList"]},"[|,pathOneInPropertySet]":{"|":["|","pathOneInPropertySet"]},"[|,pathSequence]":{"|":["|","pathSequence"]},"[||,conditionalAndExpression]":{"||":["||","conditionalAndExpression"]},add:{ADD:["ADD","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},additiveExpression:{"!":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"+":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"-":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],VAR1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],VAR2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"(":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LANG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LANGMATCHES:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DATATYPE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],BOUND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IRI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],URI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],BNODE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],RAND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ABS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CEIL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],FLOOR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ROUND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CONCAT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRLEN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],UCASE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LCASE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ENCODE_FOR_URI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CONTAINS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRSTARTS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRENDS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRBEFORE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRAFTER:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],YEAR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MONTH:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DAY:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],HOURS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MINUTES:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SECONDS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TIMEZONE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TZ:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],NOW:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],UUID:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRUUID:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MD5:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA256:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA384:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA512:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],COALESCE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IF:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRLANG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRDT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SAMETERM:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISIRI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISURI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISBLANK:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISLITERAL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISNUMERIC:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TRUE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],FALSE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],COUNT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SUM:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MIN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MAX:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],AVG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SAMPLE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],GROUP_CONCAT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SUBSTR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],REPLACE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],REGEX:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],EXISTS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],NOT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IRI_REF:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL_LONG1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL_LONG2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],PNAME_LN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],PNAME_NS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"]},aggregate:{COUNT:["COUNT","(","?DISTINCT","or([*,expression])",")"],SUM:["SUM","(","?DISTINCT","expression",")"],MIN:["MIN","(","?DISTINCT","expression",")"],MAX:["MAX","(","?DISTINCT","expression",")"],AVG:["AVG","(","?DISTINCT","expression",")"],SAMPLE:["SAMPLE","(","?DISTINCT","expression",")"],GROUP_CONCAT:["GROUP_CONCAT","(","?DISTINCT","expression","?[;,SEPARATOR,=,string]",")"]},allowBnodes:{"}":[]},allowVars:{"}":[]},argList:{NIL:["NIL"],"(":["(","?DISTINCT","expression","*[,,expression]",")"]},askQuery:{ASK:["ASK","*datasetClause","whereClause","solutionModifier"]},baseDecl:{BASE:["BASE","IRI_REF"]},bind:{BIND:["BIND","(","expression","AS","var",")"]},blankNode:{BLANK_NODE_LABEL:["BLANK_NODE_LABEL"],ANON:["ANON"]},blankNodePropertyList:{"[":["[","propertyListNotEmpty","]"]},blankNodePropertyListPath:{"[":["[","propertyListPathNotEmpty","]"]},booleanLiteral:{TRUE:["TRUE"],FALSE:["FALSE"]},brackettedExpression:{"(":["(","expression",")"]},builtInCall:{STR:["STR","(","expression",")"],LANG:["LANG","(","expression",")"],LANGMATCHES:["LANGMATCHES","(","expression",",","expression",")"],DATATYPE:["DATATYPE","(","expression",")"],BOUND:["BOUND","(","var",")"],IRI:["IRI","(","expression",")"],URI:["URI","(","expression",")"],BNODE:["BNODE","or([[(,expression,)],NIL])"],RAND:["RAND","or([[(,expression,)],NIL])"],ABS:["ABS","(","expression",")"],CEIL:["CEIL","(","expression",")"],FLOOR:["FLOOR","(","expression",")"],ROUND:["ROUND","(","expression",")"],CONCAT:["CONCAT","expressionList"],SUBSTR:["substringExpression"],STRLEN:["STRLEN","(","expression",")"],REPLACE:["strReplaceExpression"],UCASE:["UCASE","(","expression",")"],LCASE:["LCASE","(","expression",")"],ENCODE_FOR_URI:["ENCODE_FOR_URI","(","expression",")"],CONTAINS:["CONTAINS","(","expression",",","expression",")"],STRSTARTS:["STRSTARTS","(","expression",",","expression",")"],STRENDS:["STRENDS","(","expression",",","expression",")"],STRBEFORE:["STRBEFORE","(","expression",",","expression",")"],STRAFTER:["STRAFTER","(","expression",",","expression",")"],YEAR:["YEAR","(","expression",")"],MONTH:["MONTH","(","expression",")"],DAY:["DAY","(","expression",")"],HOURS:["HOURS","(","expression",")"],MINUTES:["MINUTES","(","expression",")"],SECONDS:["SECONDS","(","expression",")"],TIMEZONE:["TIMEZONE","(","expression",")"],TZ:["TZ","(","expression",")"],NOW:["NOW","NIL"],UUID:["UUID","NIL"],STRUUID:["STRUUID","NIL"],MD5:["MD5","(","expression",")"],SHA1:["SHA1","(","expression",")"],SHA256:["SHA256","(","expression",")"],SHA384:["SHA384","(","expression",")"],SHA512:["SHA512","(","expression",")"],COALESCE:["COALESCE","expressionList"],IF:["IF","(","expression",",","expression",",","expression",")"],STRLANG:["STRLANG","(","expression",",","expression",")"],STRDT:["STRDT","(","expression",",","expression",")"],SAMETERM:["SAMETERM","(","expression",",","expression",")"],ISIRI:["ISIRI","(","expression",")"],ISURI:["ISURI","(","expression",")"],ISBLANK:["ISBLANK","(","expression",")"],ISLITERAL:["ISLITERAL","(","expression",")"],ISNUMERIC:["ISNUMERIC","(","expression",")"],REGEX:["regexExpression"],EXISTS:["existsFunc"],NOT:["notExistsFunc"]},clear:{CLEAR:["CLEAR","?SILENT_2","graphRefAll"]},collection:{"(":["(","+graphNode",")"]},collectionPath:{"(":["(","+graphNodePath",")"]},conditionalAndExpression:{"!":["valueLogical","*[&&,valueLogical]"],"+":["valueLogical","*[&&,valueLogical]"],"-":["valueLogical","*[&&,valueLogical]"],VAR1:["valueLogical","*[&&,valueLogical]"],VAR2:["valueLogical","*[&&,valueLogical]"],"(":["valueLogical","*[&&,valueLogical]"],STR:["valueLogical","*[&&,valueLogical]"],LANG:["valueLogical","*[&&,valueLogical]"],LANGMATCHES:["valueLogical","*[&&,valueLogical]"],DATATYPE:["valueLogical","*[&&,valueLogical]"],BOUND:["valueLogical","*[&&,valueLogical]"],IRI:["valueLogical","*[&&,valueLogical]"],URI:["valueLogical","*[&&,valueLogical]"],BNODE:["valueLogical","*[&&,valueLogical]"],RAND:["valueLogical","*[&&,valueLogical]"],ABS:["valueLogical","*[&&,valueLogical]"],CEIL:["valueLogical","*[&&,valueLogical]"],FLOOR:["valueLogical","*[&&,valueLogical]"],ROUND:["valueLogical","*[&&,valueLogical]"],CONCAT:["valueLogical","*[&&,valueLogical]"],STRLEN:["valueLogical","*[&&,valueLogical]"],UCASE:["valueLogical","*[&&,valueLogical]"],LCASE:["valueLogical","*[&&,valueLogical]"],ENCODE_FOR_URI:["valueLogical","*[&&,valueLogical]"],CONTAINS:["valueLogical","*[&&,valueLogical]"],STRSTARTS:["valueLogical","*[&&,valueLogical]"],STRENDS:["valueLogical","*[&&,valueLogical]"],STRBEFORE:["valueLogical","*[&&,valueLogical]"],STRAFTER:["valueLogical","*[&&,valueLogical]"],YEAR:["valueLogical","*[&&,valueLogical]"],MONTH:["valueLogical","*[&&,valueLogical]"],DAY:["valueLogical","*[&&,valueLogical]"],HOURS:["valueLogical","*[&&,valueLogical]"],MINUTES:["valueLogical","*[&&,valueLogical]"],SECONDS:["valueLogical","*[&&,valueLogical]"],TIMEZONE:["valueLogical","*[&&,valueLogical]"],TZ:["valueLogical","*[&&,valueLogical]"],NOW:["valueLogical","*[&&,valueLogical]"],UUID:["valueLogical","*[&&,valueLogical]"],STRUUID:["valueLogical","*[&&,valueLogical]"],MD5:["valueLogical","*[&&,valueLogical]"],SHA1:["valueLogical","*[&&,valueLogical]"],SHA256:["valueLogical","*[&&,valueLogical]"],SHA384:["valueLogical","*[&&,valueLogical]"],SHA512:["valueLogical","*[&&,valueLogical]"],COALESCE:["valueLogical","*[&&,valueLogical]"],IF:["valueLogical","*[&&,valueLogical]"],STRLANG:["valueLogical","*[&&,valueLogical]"],STRDT:["valueLogical","*[&&,valueLogical]"],SAMETERM:["valueLogical","*[&&,valueLogical]"],ISIRI:["valueLogical","*[&&,valueLogical]"],ISURI:["valueLogical","*[&&,valueLogical]"],ISBLANK:["valueLogical","*[&&,valueLogical]"],ISLITERAL:["valueLogical","*[&&,valueLogical]"],ISNUMERIC:["valueLogical","*[&&,valueLogical]"],TRUE:["valueLogical","*[&&,valueLogical]"],FALSE:["valueLogical","*[&&,valueLogical]"],COUNT:["valueLogical","*[&&,valueLogical]"],SUM:["valueLogical","*[&&,valueLogical]"],MIN:["valueLogical","*[&&,valueLogical]"],MAX:["valueLogical","*[&&,valueLogical]"],AVG:["valueLogical","*[&&,valueLogical]"],SAMPLE:["valueLogical","*[&&,valueLogical]"],GROUP_CONCAT:["valueLogical","*[&&,valueLogical]"],SUBSTR:["valueLogical","*[&&,valueLogical]"],REPLACE:["valueLogical","*[&&,valueLogical]"],REGEX:["valueLogical","*[&&,valueLogical]"],EXISTS:["valueLogical","*[&&,valueLogical]"],NOT:["valueLogical","*[&&,valueLogical]"],IRI_REF:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL1:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL2:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL_LONG1:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL_LONG2:["valueLogical","*[&&,valueLogical]"],INTEGER:["valueLogical","*[&&,valueLogical]"],DECIMAL:["valueLogical","*[&&,valueLogical]"],DOUBLE:["valueLogical","*[&&,valueLogical]"],INTEGER_POSITIVE:["valueLogical","*[&&,valueLogical]"],DECIMAL_POSITIVE:["valueLogical","*[&&,valueLogical]"],DOUBLE_POSITIVE:["valueLogical","*[&&,valueLogical]"],INTEGER_NEGATIVE:["valueLogical","*[&&,valueLogical]"],DECIMAL_NEGATIVE:["valueLogical","*[&&,valueLogical]"],DOUBLE_NEGATIVE:["valueLogical","*[&&,valueLogical]"],PNAME_LN:["valueLogical","*[&&,valueLogical]"],PNAME_NS:["valueLogical","*[&&,valueLogical]"]},conditionalOrExpression:{"!":["conditionalAndExpression","*[||,conditionalAndExpression]"],"+":["conditionalAndExpression","*[||,conditionalAndExpression]"],"-":["conditionalAndExpression","*[||,conditionalAndExpression]"],VAR1:["conditionalAndExpression","*[||,conditionalAndExpression]"],VAR2:["conditionalAndExpression","*[||,conditionalAndExpression]"],"(":["conditionalAndExpression","*[||,conditionalAndExpression]"],STR:["conditionalAndExpression","*[||,conditionalAndExpression]"],LANG:["conditionalAndExpression","*[||,conditionalAndExpression]"],LANGMATCHES:["conditionalAndExpression","*[||,conditionalAndExpression]"],DATATYPE:["conditionalAndExpression","*[||,conditionalAndExpression]"],BOUND:["conditionalAndExpression","*[||,conditionalAndExpression]"],IRI:["conditionalAndExpression","*[||,conditionalAndExpression]"],URI:["conditionalAndExpression","*[||,conditionalAndExpression]"],BNODE:["conditionalAndExpression","*[||,conditionalAndExpression]"],RAND:["conditionalAndExpression","*[||,conditionalAndExpression]"],ABS:["conditionalAndExpression","*[||,conditionalAndExpression]"],CEIL:["conditionalAndExpression","*[||,conditionalAndExpression]"],FLOOR:["conditionalAndExpression","*[||,conditionalAndExpression]"],ROUND:["conditionalAndExpression","*[||,conditionalAndExpression]"],CONCAT:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRLEN:["conditionalAndExpression","*[||,conditionalAndExpression]"],UCASE:["conditionalAndExpression","*[||,conditionalAndExpression]"],LCASE:["conditionalAndExpression","*[||,conditionalAndExpression]"],ENCODE_FOR_URI:["conditionalAndExpression","*[||,conditionalAndExpression]"],CONTAINS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRSTARTS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRENDS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRBEFORE:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRAFTER:["conditionalAndExpression","*[||,conditionalAndExpression]"],YEAR:["conditionalAndExpression","*[||,conditionalAndExpression]"],MONTH:["conditionalAndExpression","*[||,conditionalAndExpression]"],DAY:["conditionalAndExpression","*[||,conditionalAndExpression]"],HOURS:["conditionalAndExpression","*[||,conditionalAndExpression]"],MINUTES:["conditionalAndExpression","*[||,conditionalAndExpression]"],SECONDS:["conditionalAndExpression","*[||,conditionalAndExpression]"],TIMEZONE:["conditionalAndExpression","*[||,conditionalAndExpression]"],TZ:["conditionalAndExpression","*[||,conditionalAndExpression]"],NOW:["conditionalAndExpression","*[||,conditionalAndExpression]"],UUID:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRUUID:["conditionalAndExpression","*[||,conditionalAndExpression]"],MD5:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA1:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA256:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA384:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA512:["conditionalAndExpression","*[||,conditionalAndExpression]"],COALESCE:["conditionalAndExpression","*[||,conditionalAndExpression]"],IF:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRLANG:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRDT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SAMETERM:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISIRI:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISURI:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISBLANK:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISLITERAL:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISNUMERIC:["conditionalAndExpression","*[||,conditionalAndExpression]"],TRUE:["conditionalAndExpression","*[||,conditionalAndExpression]"],FALSE:["conditionalAndExpression","*[||,conditionalAndExpression]"],COUNT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SUM:["conditionalAndExpression","*[||,conditionalAndExpression]"],MIN:["conditionalAndExpression","*[||,conditionalAndExpression]"],MAX:["conditionalAndExpression","*[||,conditionalAndExpression]"],AVG:["conditionalAndExpression","*[||,conditionalAndExpression]"],SAMPLE:["conditionalAndExpression","*[||,conditionalAndExpression]"],GROUP_CONCAT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SUBSTR:["conditionalAndExpression","*[||,conditionalAndExpression]"],REPLACE:["conditionalAndExpression","*[||,conditionalAndExpression]"],REGEX:["conditionalAndExpression","*[||,conditionalAndExpression]"],EXISTS:["conditionalAndExpression","*[||,conditionalAndExpression]"],NOT:["conditionalAndExpression","*[||,conditionalAndExpression]"],IRI_REF:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL1:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL2:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL_LONG1:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL_LONG2:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],PNAME_LN:["conditionalAndExpression","*[||,conditionalAndExpression]"],PNAME_NS:["conditionalAndExpression","*[||,conditionalAndExpression]"]},constraint:{"(":["brackettedExpression"],STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["functionCall"],PNAME_LN:["functionCall"],PNAME_NS:["functionCall"]},constructQuery:{CONSTRUCT:["CONSTRUCT","or([[constructTemplate,*datasetClause,whereClause,solutionModifier],[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]])"]},constructTemplate:{"{":["{","?constructTriples","}"]},constructTriples:{VAR1:["triplesSameSubject","?[.,?constructTriples]"],VAR2:["triplesSameSubject","?[.,?constructTriples]"],NIL:["triplesSameSubject","?[.,?constructTriples]"],"(":["triplesSameSubject","?[.,?constructTriples]"],"[":["triplesSameSubject","?[.,?constructTriples]"],IRI_REF:["triplesSameSubject","?[.,?constructTriples]"],TRUE:["triplesSameSubject","?[.,?constructTriples]"],FALSE:["triplesSameSubject","?[.,?constructTriples]"],BLANK_NODE_LABEL:["triplesSameSubject","?[.,?constructTriples]"],ANON:["triplesSameSubject","?[.,?constructTriples]"],PNAME_LN:["triplesSameSubject","?[.,?constructTriples]"],PNAME_NS:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL1:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL2:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL_LONG1:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL_LONG2:["triplesSameSubject","?[.,?constructTriples]"],INTEGER:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE:["triplesSameSubject","?[.,?constructTriples]"],INTEGER_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],INTEGER_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"]},copy:{COPY:["COPY","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},create:{CREATE:["CREATE","?SILENT_3","graphRef"]},dataBlock:{NIL:["or([inlineDataOneVar,inlineDataFull])"],"(":["or([inlineDataOneVar,inlineDataFull])"],VAR1:["or([inlineDataOneVar,inlineDataFull])"],VAR2:["or([inlineDataOneVar,inlineDataFull])"]},dataBlockValue:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],UNDEF:["UNDEF"]},datasetClause:{FROM:["FROM","or([defaultGraphClause,namedGraphClause])"]},defaultGraphClause:{IRI_REF:["sourceSelector"],PNAME_LN:["sourceSelector"],PNAME_NS:["sourceSelector"]},delete1:{DATA:["DATA","quadDataNoBnodes"],WHERE:["WHERE","quadPatternNoBnodes"],"{":["quadPatternNoBnodes","?insertClause","*usingClause","WHERE","groupGraphPattern"]},deleteClause:{DELETE:["DELETE","quadPattern"]},describeDatasetClause:{FROM:["FROM","or([defaultGraphClause,namedGraphClause])"]},describeQuery:{DESCRIBE:["DESCRIBE","or([+varOrIRIref,*])","*describeDatasetClause","?whereClause","solutionModifier"]},disallowBnodes:{"}":[],GRAPH:[],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},disallowVars:{"}":[],GRAPH:[],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},drop:{DROP:["DROP","?SILENT_2","graphRefAll"]},existsFunc:{EXISTS:["EXISTS","groupGraphPattern"]},expression:{"!":["conditionalOrExpression"],"+":["conditionalOrExpression"],"-":["conditionalOrExpression"],VAR1:["conditionalOrExpression"],VAR2:["conditionalOrExpression"],"(":["conditionalOrExpression"],STR:["conditionalOrExpression"],LANG:["conditionalOrExpression"],LANGMATCHES:["conditionalOrExpression"],DATATYPE:["conditionalOrExpression"],BOUND:["conditionalOrExpression"],IRI:["conditionalOrExpression"],URI:["conditionalOrExpression"],BNODE:["conditionalOrExpression"],RAND:["conditionalOrExpression"],ABS:["conditionalOrExpression"],CEIL:["conditionalOrExpression"],FLOOR:["conditionalOrExpression"],ROUND:["conditionalOrExpression"],CONCAT:["conditionalOrExpression"],STRLEN:["conditionalOrExpression"],UCASE:["conditionalOrExpression"],LCASE:["conditionalOrExpression"],ENCODE_FOR_URI:["conditionalOrExpression"],CONTAINS:["conditionalOrExpression"],STRSTARTS:["conditionalOrExpression"],STRENDS:["conditionalOrExpression"],STRBEFORE:["conditionalOrExpression"],STRAFTER:["conditionalOrExpression"],YEAR:["conditionalOrExpression"],MONTH:["conditionalOrExpression"],DAY:["conditionalOrExpression"],HOURS:["conditionalOrExpression"],MINUTES:["conditionalOrExpression"],SECONDS:["conditionalOrExpression"],TIMEZONE:["conditionalOrExpression"],TZ:["conditionalOrExpression"],NOW:["conditionalOrExpression"],UUID:["conditionalOrExpression"],STRUUID:["conditionalOrExpression"],MD5:["conditionalOrExpression"],SHA1:["conditionalOrExpression"],SHA256:["conditionalOrExpression"],SHA384:["conditionalOrExpression"],SHA512:["conditionalOrExpression"],COALESCE:["conditionalOrExpression"],IF:["conditionalOrExpression"],STRLANG:["conditionalOrExpression"],STRDT:["conditionalOrExpression"],SAMETERM:["conditionalOrExpression"],ISIRI:["conditionalOrExpression"],ISURI:["conditionalOrExpression"],ISBLANK:["conditionalOrExpression"],ISLITERAL:["conditionalOrExpression"],ISNUMERIC:["conditionalOrExpression"],TRUE:["conditionalOrExpression"],FALSE:["conditionalOrExpression"],COUNT:["conditionalOrExpression"],SUM:["conditionalOrExpression"],MIN:["conditionalOrExpression"],MAX:["conditionalOrExpression"],AVG:["conditionalOrExpression"],SAMPLE:["conditionalOrExpression"],GROUP_CONCAT:["conditionalOrExpression"],SUBSTR:["conditionalOrExpression"],REPLACE:["conditionalOrExpression"],REGEX:["conditionalOrExpression"],EXISTS:["conditionalOrExpression"],NOT:["conditionalOrExpression"],IRI_REF:["conditionalOrExpression"],STRING_LITERAL1:["conditionalOrExpression"],STRING_LITERAL2:["conditionalOrExpression"],STRING_LITERAL_LONG1:["conditionalOrExpression"],STRING_LITERAL_LONG2:["conditionalOrExpression"],INTEGER:["conditionalOrExpression"],DECIMAL:["conditionalOrExpression"],DOUBLE:["conditionalOrExpression"],INTEGER_POSITIVE:["conditionalOrExpression"],DECIMAL_POSITIVE:["conditionalOrExpression"],DOUBLE_POSITIVE:["conditionalOrExpression"],INTEGER_NEGATIVE:["conditionalOrExpression"],DECIMAL_NEGATIVE:["conditionalOrExpression"],DOUBLE_NEGATIVE:["conditionalOrExpression"],PNAME_LN:["conditionalOrExpression"],PNAME_NS:["conditionalOrExpression"]},expressionList:{NIL:["NIL"],"(":["(","expression","*[,,expression]",")"]},filter:{FILTER:["FILTER","constraint"]},functionCall:{IRI_REF:["iriRef","argList"],PNAME_LN:["iriRef","argList"],PNAME_NS:["iriRef","argList"]},graphGraphPattern:{GRAPH:["GRAPH","varOrIRIref","groupGraphPattern"]},graphNode:{VAR1:["varOrTerm"],VAR2:["varOrTerm"],NIL:["varOrTerm"],IRI_REF:["varOrTerm"],TRUE:["varOrTerm"],FALSE:["varOrTerm"],BLANK_NODE_LABEL:["varOrTerm"],ANON:["varOrTerm"],PNAME_LN:["varOrTerm"],PNAME_NS:["varOrTerm"],STRING_LITERAL1:["varOrTerm"],STRING_LITERAL2:["varOrTerm"],STRING_LITERAL_LONG1:["varOrTerm"],STRING_LITERAL_LONG2:["varOrTerm"],INTEGER:["varOrTerm"],DECIMAL:["varOrTerm"],DOUBLE:["varOrTerm"],INTEGER_POSITIVE:["varOrTerm"],DECIMAL_POSITIVE:["varOrTerm"],DOUBLE_POSITIVE:["varOrTerm"],INTEGER_NEGATIVE:["varOrTerm"],DECIMAL_NEGATIVE:["varOrTerm"],DOUBLE_NEGATIVE:["varOrTerm"],"(":["triplesNode"],"[":["triplesNode"]},graphNodePath:{VAR1:["varOrTerm"],VAR2:["varOrTerm"],NIL:["varOrTerm"],IRI_REF:["varOrTerm"],TRUE:["varOrTerm"],FALSE:["varOrTerm"],BLANK_NODE_LABEL:["varOrTerm"],ANON:["varOrTerm"],PNAME_LN:["varOrTerm"],PNAME_NS:["varOrTerm"],STRING_LITERAL1:["varOrTerm"],STRING_LITERAL2:["varOrTerm"],STRING_LITERAL_LONG1:["varOrTerm"],STRING_LITERAL_LONG2:["varOrTerm"],INTEGER:["varOrTerm"],DECIMAL:["varOrTerm"],DOUBLE:["varOrTerm"],INTEGER_POSITIVE:["varOrTerm"],DECIMAL_POSITIVE:["varOrTerm"],DOUBLE_POSITIVE:["varOrTerm"],INTEGER_NEGATIVE:["varOrTerm"],DECIMAL_NEGATIVE:["varOrTerm"],DOUBLE_NEGATIVE:["varOrTerm"],"(":["triplesNodePath"],"[":["triplesNodePath"]},graphOrDefault:{DEFAULT:["DEFAULT"],IRI_REF:["?GRAPH","iriRef"],PNAME_LN:["?GRAPH","iriRef"],PNAME_NS:["?GRAPH","iriRef"],GRAPH:["?GRAPH","iriRef"]},graphPatternNotTriples:{"{":["groupOrUnionGraphPattern"],OPTIONAL:["optionalGraphPattern"],MINUS:["minusGraphPattern"],GRAPH:["graphGraphPattern"],SERVICE:["serviceGraphPattern"],FILTER:["filter"],BIND:["bind"],VALUES:["inlineData"]},graphRef:{GRAPH:["GRAPH","iriRef"]},graphRefAll:{GRAPH:["graphRef"],DEFAULT:["DEFAULT"],NAMED:["NAMED"],ALL:["ALL"]},graphTerm:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],BLANK_NODE_LABEL:["blankNode"],ANON:["blankNode"],NIL:["NIL"]},groupClause:{GROUP:["GROUP","BY","+groupCondition"]},groupCondition:{STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["functionCall"],PNAME_LN:["functionCall"],PNAME_NS:["functionCall"],"(":["(","expression","?[AS,var]",")"],VAR1:["var"],VAR2:["var"]},groupGraphPattern:{"{":["{","or([subSelect,groupGraphPatternSub])","}"]},groupGraphPatternSub:{"{":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],OPTIONAL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],MINUS:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],GRAPH:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],SERVICE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],FILTER:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],BIND:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VALUES:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VAR1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VAR2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],NIL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"(":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"[":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],IRI_REF:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],TRUE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],FALSE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],BLANK_NODE_LABEL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],ANON:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],PNAME_LN:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],PNAME_NS:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL_LONG1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL_LONG2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"}":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"]},groupOrUnionGraphPattern:{"{":["groupGraphPattern","*[UNION,groupGraphPattern]"]},havingClause:{HAVING:["HAVING","+havingCondition"]},havingCondition:{"(":["constraint"],STR:["constraint"],LANG:["constraint"],LANGMATCHES:["constraint"],DATATYPE:["constraint"],BOUND:["constraint"],IRI:["constraint"],URI:["constraint"],BNODE:["constraint"],RAND:["constraint"],ABS:["constraint"],CEIL:["constraint"],FLOOR:["constraint"],ROUND:["constraint"],CONCAT:["constraint"],STRLEN:["constraint"],UCASE:["constraint"],LCASE:["constraint"],ENCODE_FOR_URI:["constraint"],CONTAINS:["constraint"],STRSTARTS:["constraint"],STRENDS:["constraint"],STRBEFORE:["constraint"],STRAFTER:["constraint"],YEAR:["constraint"],MONTH:["constraint"],DAY:["constraint"],HOURS:["constraint"],MINUTES:["constraint"],SECONDS:["constraint"],TIMEZONE:["constraint"],TZ:["constraint"],NOW:["constraint"],UUID:["constraint"],STRUUID:["constraint"],MD5:["constraint"],SHA1:["constraint"],SHA256:["constraint"],SHA384:["constraint"],SHA512:["constraint"],COALESCE:["constraint"],IF:["constraint"],STRLANG:["constraint"],STRDT:["constraint"],SAMETERM:["constraint"],ISIRI:["constraint"],ISURI:["constraint"],ISBLANK:["constraint"],ISLITERAL:["constraint"],ISNUMERIC:["constraint"],SUBSTR:["constraint"],REPLACE:["constraint"],REGEX:["constraint"],EXISTS:["constraint"],NOT:["constraint"],IRI_REF:["constraint"],PNAME_LN:["constraint"],PNAME_NS:["constraint"]},inlineData:{VALUES:["VALUES","dataBlock"]},inlineDataFull:{NIL:["or([NIL,[(,*var,)]])","{","*or([[(,*dataBlockValue,)],NIL])","}"],"(":["or([NIL,[(,*var,)]])","{","*or([[(,*dataBlockValue,)],NIL])","}"]},inlineDataOneVar:{VAR1:["var","{","*dataBlockValue","}"],VAR2:["var","{","*dataBlockValue","}"]},insert1:{DATA:["DATA","quadData"],"{":["quadPattern","*usingClause","WHERE","groupGraphPattern"]},insertClause:{INSERT:["INSERT","quadPattern"]},integer:{INTEGER:["INTEGER"]},iriRef:{IRI_REF:["IRI_REF"],PNAME_LN:["prefixedName"],PNAME_NS:["prefixedName"]},iriRefOrFunction:{IRI_REF:["iriRef","?argList"],PNAME_LN:["iriRef","?argList"],PNAME_NS:["iriRef","?argList"]},limitClause:{LIMIT:["LIMIT","INTEGER"]},limitOffsetClauses:{LIMIT:["limitClause","?offsetClause"],OFFSET:["offsetClause","?limitClause"]},load:{LOAD:["LOAD","?SILENT_1","iriRef","?[INTO,graphRef]"]},minusGraphPattern:{MINUS:["MINUS","groupGraphPattern"]},modify:{WITH:["WITH","iriRef","or([[deleteClause,?insertClause],insertClause])","*usingClause","WHERE","groupGraphPattern"]},move:{MOVE:["MOVE","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},multiplicativeExpression:{"!":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"+":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"-":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],VAR1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],VAR2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"(":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LANG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LANGMATCHES:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DATATYPE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],BOUND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IRI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],URI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],BNODE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],RAND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ABS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CEIL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],FLOOR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ROUND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CONCAT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRLEN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],UCASE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LCASE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ENCODE_FOR_URI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CONTAINS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRSTARTS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRENDS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRBEFORE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRAFTER:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],YEAR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MONTH:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DAY:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],HOURS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MINUTES:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SECONDS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TIMEZONE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TZ:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],NOW:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],UUID:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRUUID:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MD5:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA256:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA384:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA512:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],COALESCE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IF:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRLANG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRDT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SAMETERM:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISIRI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISURI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISBLANK:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISLITERAL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISNUMERIC:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TRUE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],FALSE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],COUNT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SUM:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MIN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MAX:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],AVG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SAMPLE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],GROUP_CONCAT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SUBSTR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],REPLACE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],REGEX:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],EXISTS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],NOT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IRI_REF:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL_LONG1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL_LONG2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],PNAME_LN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],PNAME_NS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"]},namedGraphClause:{NAMED:["NAMED","sourceSelector"]},notExistsFunc:{NOT:["NOT","EXISTS","groupGraphPattern"]},numericExpression:{"!":["additiveExpression"],"+":["additiveExpression"],"-":["additiveExpression"],VAR1:["additiveExpression"],VAR2:["additiveExpression"],"(":["additiveExpression"],STR:["additiveExpression"],LANG:["additiveExpression"],LANGMATCHES:["additiveExpression"],DATATYPE:["additiveExpression"],BOUND:["additiveExpression"],IRI:["additiveExpression"],URI:["additiveExpression"],BNODE:["additiveExpression"],RAND:["additiveExpression"],ABS:["additiveExpression"],CEIL:["additiveExpression"],FLOOR:["additiveExpression"],ROUND:["additiveExpression"],CONCAT:["additiveExpression"],STRLEN:["additiveExpression"],UCASE:["additiveExpression"],LCASE:["additiveExpression"],ENCODE_FOR_URI:["additiveExpression"],CONTAINS:["additiveExpression"],STRSTARTS:["additiveExpression"],STRENDS:["additiveExpression"],STRBEFORE:["additiveExpression"],STRAFTER:["additiveExpression"],YEAR:["additiveExpression"],MONTH:["additiveExpression"],DAY:["additiveExpression"],HOURS:["additiveExpression"],MINUTES:["additiveExpression"],SECONDS:["additiveExpression"],TIMEZONE:["additiveExpression"],TZ:["additiveExpression"],NOW:["additiveExpression"],UUID:["additiveExpression"],STRUUID:["additiveExpression"],MD5:["additiveExpression"],SHA1:["additiveExpression"],SHA256:["additiveExpression"],SHA384:["additiveExpression"],SHA512:["additiveExpression"],COALESCE:["additiveExpression"],IF:["additiveExpression"],STRLANG:["additiveExpression"],STRDT:["additiveExpression"],SAMETERM:["additiveExpression"],ISIRI:["additiveExpression"],ISURI:["additiveExpression"],ISBLANK:["additiveExpression"],ISLITERAL:["additiveExpression"],ISNUMERIC:["additiveExpression"],TRUE:["additiveExpression"],FALSE:["additiveExpression"],COUNT:["additiveExpression"],SUM:["additiveExpression"],MIN:["additiveExpression"],MAX:["additiveExpression"],AVG:["additiveExpression"],SAMPLE:["additiveExpression"],GROUP_CONCAT:["additiveExpression"],SUBSTR:["additiveExpression"],REPLACE:["additiveExpression"],REGEX:["additiveExpression"],EXISTS:["additiveExpression"],NOT:["additiveExpression"],IRI_REF:["additiveExpression"],STRING_LITERAL1:["additiveExpression"],STRING_LITERAL2:["additiveExpression"],STRING_LITERAL_LONG1:["additiveExpression"],STRING_LITERAL_LONG2:["additiveExpression"],INTEGER:["additiveExpression"],DECIMAL:["additiveExpression"],DOUBLE:["additiveExpression"],INTEGER_POSITIVE:["additiveExpression"],DECIMAL_POSITIVE:["additiveExpression"],DOUBLE_POSITIVE:["additiveExpression"],INTEGER_NEGATIVE:["additiveExpression"],DECIMAL_NEGATIVE:["additiveExpression"],DOUBLE_NEGATIVE:["additiveExpression"],PNAME_LN:["additiveExpression"],PNAME_NS:["additiveExpression"]},numericLiteral:{INTEGER:["numericLiteralUnsigned"],DECIMAL:["numericLiteralUnsigned"],DOUBLE:["numericLiteralUnsigned"],INTEGER_POSITIVE:["numericLiteralPositive"],DECIMAL_POSITIVE:["numericLiteralPositive"],DOUBLE_POSITIVE:["numericLiteralPositive"],INTEGER_NEGATIVE:["numericLiteralNegative"],DECIMAL_NEGATIVE:["numericLiteralNegative"],DOUBLE_NEGATIVE:["numericLiteralNegative"]},numericLiteralNegative:{INTEGER_NEGATIVE:["INTEGER_NEGATIVE"],DECIMAL_NEGATIVE:["DECIMAL_NEGATIVE"],DOUBLE_NEGATIVE:["DOUBLE_NEGATIVE"]},numericLiteralPositive:{INTEGER_POSITIVE:["INTEGER_POSITIVE"],DECIMAL_POSITIVE:["DECIMAL_POSITIVE"],DOUBLE_POSITIVE:["DOUBLE_POSITIVE"]},numericLiteralUnsigned:{INTEGER:["INTEGER"],DECIMAL:["DECIMAL"],DOUBLE:["DOUBLE"]},object:{"(":["graphNode"],"[":["graphNode"],VAR1:["graphNode"],VAR2:["graphNode"],NIL:["graphNode"],IRI_REF:["graphNode"],TRUE:["graphNode"],FALSE:["graphNode"],BLANK_NODE_LABEL:["graphNode"],ANON:["graphNode"],PNAME_LN:["graphNode"],PNAME_NS:["graphNode"],STRING_LITERAL1:["graphNode"],STRING_LITERAL2:["graphNode"],STRING_LITERAL_LONG1:["graphNode"],STRING_LITERAL_LONG2:["graphNode"],INTEGER:["graphNode"],DECIMAL:["graphNode"],DOUBLE:["graphNode"],INTEGER_POSITIVE:["graphNode"],DECIMAL_POSITIVE:["graphNode"],DOUBLE_POSITIVE:["graphNode"],INTEGER_NEGATIVE:["graphNode"],DECIMAL_NEGATIVE:["graphNode"],DOUBLE_NEGATIVE:["graphNode"]},objectList:{"(":["object","*[,,object]"],"[":["object","*[,,object]"],VAR1:["object","*[,,object]"],VAR2:["object","*[,,object]"],NIL:["object","*[,,object]"],IRI_REF:["object","*[,,object]"],TRUE:["object","*[,,object]"],FALSE:["object","*[,,object]"],BLANK_NODE_LABEL:["object","*[,,object]"],ANON:["object","*[,,object]"],PNAME_LN:["object","*[,,object]"],PNAME_NS:["object","*[,,object]"],STRING_LITERAL1:["object","*[,,object]"],STRING_LITERAL2:["object","*[,,object]"],STRING_LITERAL_LONG1:["object","*[,,object]"],STRING_LITERAL_LONG2:["object","*[,,object]"],INTEGER:["object","*[,,object]"],DECIMAL:["object","*[,,object]"],DOUBLE:["object","*[,,object]"],INTEGER_POSITIVE:["object","*[,,object]"],DECIMAL_POSITIVE:["object","*[,,object]"],DOUBLE_POSITIVE:["object","*[,,object]"],INTEGER_NEGATIVE:["object","*[,,object]"],DECIMAL_NEGATIVE:["object","*[,,object]"],DOUBLE_NEGATIVE:["object","*[,,object]"]},objectListPath:{"(":["objectPath","*[,,objectPath]"],"[":["objectPath","*[,,objectPath]"],VAR1:["objectPath","*[,,objectPath]"],VAR2:["objectPath","*[,,objectPath]"],NIL:["objectPath","*[,,objectPath]"],IRI_REF:["objectPath","*[,,objectPath]"],TRUE:["objectPath","*[,,objectPath]"],FALSE:["objectPath","*[,,objectPath]"],BLANK_NODE_LABEL:["objectPath","*[,,objectPath]"],ANON:["objectPath","*[,,objectPath]"],PNAME_LN:["objectPath","*[,,objectPath]"],PNAME_NS:["objectPath","*[,,objectPath]"],STRING_LITERAL1:["objectPath","*[,,objectPath]"],STRING_LITERAL2:["objectPath","*[,,objectPath]"],STRING_LITERAL_LONG1:["objectPath","*[,,objectPath]"],STRING_LITERAL_LONG2:["objectPath","*[,,objectPath]"],INTEGER:["objectPath","*[,,objectPath]"],DECIMAL:["objectPath","*[,,objectPath]"],DOUBLE:["objectPath","*[,,objectPath]"],INTEGER_POSITIVE:["objectPath","*[,,objectPath]"],DECIMAL_POSITIVE:["objectPath","*[,,objectPath]"],DOUBLE_POSITIVE:["objectPath","*[,,objectPath]"],INTEGER_NEGATIVE:["objectPath","*[,,objectPath]"],DECIMAL_NEGATIVE:["objectPath","*[,,objectPath]"],DOUBLE_NEGATIVE:["objectPath","*[,,objectPath]"]},objectPath:{"(":["graphNodePath"],"[":["graphNodePath"],VAR1:["graphNodePath"],VAR2:["graphNodePath"],NIL:["graphNodePath"],IRI_REF:["graphNodePath"],TRUE:["graphNodePath"],FALSE:["graphNodePath"],BLANK_NODE_LABEL:["graphNodePath"],ANON:["graphNodePath"],PNAME_LN:["graphNodePath"],PNAME_NS:["graphNodePath"],STRING_LITERAL1:["graphNodePath"],STRING_LITERAL2:["graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath"],INTEGER:["graphNodePath"],DECIMAL:["graphNodePath"],DOUBLE:["graphNodePath"],INTEGER_POSITIVE:["graphNodePath"],DECIMAL_POSITIVE:["graphNodePath"],DOUBLE_POSITIVE:["graphNodePath"],INTEGER_NEGATIVE:["graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath"]},offsetClause:{OFFSET:["OFFSET","INTEGER"]},optionalGraphPattern:{OPTIONAL:["OPTIONAL","groupGraphPattern"]},"or([*,expression])":{"*":["*"],"!":["expression"],"+":["expression"],"-":["expression"],VAR1:["expression"],VAR2:["expression"],"(":["expression"],STR:["expression"],LANG:["expression"],LANGMATCHES:["expression"],DATATYPE:["expression"],BOUND:["expression"],IRI:["expression"],URI:["expression"],BNODE:["expression"],RAND:["expression"],ABS:["expression"],CEIL:["expression"],FLOOR:["expression"],ROUND:["expression"],CONCAT:["expression"],STRLEN:["expression"],UCASE:["expression"],LCASE:["expression"],ENCODE_FOR_URI:["expression"],CONTAINS:["expression"],STRSTARTS:["expression"],STRENDS:["expression"],STRBEFORE:["expression"],STRAFTER:["expression"],YEAR:["expression"],MONTH:["expression"],DAY:["expression"],HOURS:["expression"],MINUTES:["expression"],SECONDS:["expression"],TIMEZONE:["expression"],TZ:["expression"],NOW:["expression"],UUID:["expression"],STRUUID:["expression"],MD5:["expression"],SHA1:["expression"],SHA256:["expression"],SHA384:["expression"],SHA512:["expression"],COALESCE:["expression"],IF:["expression"],STRLANG:["expression"],STRDT:["expression"],SAMETERM:["expression"],ISIRI:["expression"],ISURI:["expression"],ISBLANK:["expression"],ISLITERAL:["expression"],ISNUMERIC:["expression"],TRUE:["expression"],FALSE:["expression"],COUNT:["expression"],SUM:["expression"],MIN:["expression"],MAX:["expression"],AVG:["expression"],SAMPLE:["expression"],GROUP_CONCAT:["expression"],SUBSTR:["expression"],REPLACE:["expression"],REGEX:["expression"],EXISTS:["expression"],NOT:["expression"],IRI_REF:["expression"],STRING_LITERAL1:["expression"],STRING_LITERAL2:["expression"],STRING_LITERAL_LONG1:["expression"],STRING_LITERAL_LONG2:["expression"],INTEGER:["expression"],DECIMAL:["expression"],DOUBLE:["expression"],INTEGER_POSITIVE:["expression"],DECIMAL_POSITIVE:["expression"],DOUBLE_POSITIVE:["expression"],INTEGER_NEGATIVE:["expression"],DECIMAL_NEGATIVE:["expression"],DOUBLE_NEGATIVE:["expression"],PNAME_LN:["expression"],PNAME_NS:["expression"]},"or([+or([var,[(,expression,AS,var,)]]),*])":{"(":["+or([var,[(,expression,AS,var,)]])"],VAR1:["+or([var,[(,expression,AS,var,)]])"],VAR2:["+or([var,[(,expression,AS,var,)]])"],"*":["*"]},"or([+varOrIRIref,*])":{VAR1:["+varOrIRIref"],VAR2:["+varOrIRIref"],IRI_REF:["+varOrIRIref"],PNAME_LN:["+varOrIRIref"],PNAME_NS:["+varOrIRIref"],"*":["*"]},"or([ASC,DESC])":{ASC:["ASC"],DESC:["DESC"]},"or([DISTINCT,REDUCED])":{DISTINCT:["DISTINCT"],REDUCED:["REDUCED"]},"or([LANGTAG,[^^,iriRef]])":{LANGTAG:["LANGTAG"],"^^":["[^^,iriRef]"]},"or([NIL,[(,*var,)]])":{NIL:["NIL"],"(":["[(,*var,)]"]},"or([[(,*dataBlockValue,)],NIL])":{"(":["[(,*dataBlockValue,)]"],NIL:["NIL"]},"or([[(,expression,)],NIL])":{"(":["[(,expression,)]"],NIL:["NIL"]},"or([[*,unaryExpression],[/,unaryExpression]])":{"*":["[*,unaryExpression]"],"/":["[/,unaryExpression]"]},"or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])":{"+":["[+,multiplicativeExpression]"],"-":["[-,multiplicativeExpression]"],INTEGER_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DECIMAL_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DOUBLE_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],INTEGER_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DECIMAL_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DOUBLE_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"]},"or([[,,or([},[integer,}]])],}])":{",":["[,,or([},[integer,}]])]"],"}":["}"]},"or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])":{"=":["[=,numericExpression]"],"!=":["[!=,numericExpression]"],"<":["[<,numericExpression]"],">":["[>,numericExpression]"],"<=":["[<=,numericExpression]"],">=":["[>=,numericExpression]"],IN:["[IN,expressionList]"],NOT:["[NOT,IN,expressionList]"]},"or([[constructTemplate,*datasetClause,whereClause,solutionModifier],[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]])":{"{":["[constructTemplate,*datasetClause,whereClause,solutionModifier]"],WHERE:["[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]"],FROM:["[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]"]},"or([[deleteClause,?insertClause],insertClause])":{DELETE:["[deleteClause,?insertClause]"],INSERT:["insertClause"]},"or([[integer,or([[,,or([},[integer,}]])],}])],[,,integer,}]])":{INTEGER:["[integer,or([[,,or([},[integer,}]])],}])]"],",":["[,,integer,}]"]},"or([baseDecl,prefixDecl])":{BASE:["baseDecl"],PREFIX:["prefixDecl"]},"or([defaultGraphClause,namedGraphClause])":{IRI_REF:["defaultGraphClause"],PNAME_LN:["defaultGraphClause"],PNAME_NS:["defaultGraphClause"],NAMED:["namedGraphClause"]},"or([inlineDataOneVar,inlineDataFull])":{VAR1:["inlineDataOneVar"],VAR2:["inlineDataOneVar"],NIL:["inlineDataFull"],"(":["inlineDataFull"]},"or([iriRef,[NAMED,iriRef]])":{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],NAMED:["[NAMED,iriRef]"]},"or([iriRef,a])":{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],a:["a"]},"or([numericLiteralPositive,numericLiteralNegative])":{INTEGER_POSITIVE:["numericLiteralPositive"],DECIMAL_POSITIVE:["numericLiteralPositive"],DOUBLE_POSITIVE:["numericLiteralPositive"],INTEGER_NEGATIVE:["numericLiteralNegative"],DECIMAL_NEGATIVE:["numericLiteralNegative"],DOUBLE_NEGATIVE:["numericLiteralNegative"]},"or([queryAll,updateAll])":{CONSTRUCT:["queryAll"],DESCRIBE:["queryAll"],ASK:["queryAll"],SELECT:["queryAll"],INSERT:["updateAll"],DELETE:["updateAll"],LOAD:["updateAll"],CLEAR:["updateAll"],DROP:["updateAll"],ADD:["updateAll"],MOVE:["updateAll"],COPY:["updateAll"],CREATE:["updateAll"],WITH:["updateAll"],$:["updateAll"]},"or([selectQuery,constructQuery,describeQuery,askQuery])":{SELECT:["selectQuery"],CONSTRUCT:["constructQuery"],DESCRIBE:["describeQuery"],ASK:["askQuery"]},"or([subSelect,groupGraphPatternSub])":{SELECT:["subSelect"],"{":["groupGraphPatternSub"],OPTIONAL:["groupGraphPatternSub"],MINUS:["groupGraphPatternSub"],GRAPH:["groupGraphPatternSub"],SERVICE:["groupGraphPatternSub"],FILTER:["groupGraphPatternSub"],BIND:["groupGraphPatternSub"],VALUES:["groupGraphPatternSub"],VAR1:["groupGraphPatternSub"],VAR2:["groupGraphPatternSub"],NIL:["groupGraphPatternSub"],"(":["groupGraphPatternSub"],"[":["groupGraphPatternSub"],IRI_REF:["groupGraphPatternSub"],TRUE:["groupGraphPatternSub"],FALSE:["groupGraphPatternSub"],BLANK_NODE_LABEL:["groupGraphPatternSub"],ANON:["groupGraphPatternSub"],PNAME_LN:["groupGraphPatternSub"],PNAME_NS:["groupGraphPatternSub"],STRING_LITERAL1:["groupGraphPatternSub"],STRING_LITERAL2:["groupGraphPatternSub"],STRING_LITERAL_LONG1:["groupGraphPatternSub"],STRING_LITERAL_LONG2:["groupGraphPatternSub"],INTEGER:["groupGraphPatternSub"],DECIMAL:["groupGraphPatternSub"],DOUBLE:["groupGraphPatternSub"],INTEGER_POSITIVE:["groupGraphPatternSub"],DECIMAL_POSITIVE:["groupGraphPatternSub"],DOUBLE_POSITIVE:["groupGraphPatternSub"],INTEGER_NEGATIVE:["groupGraphPatternSub"],DECIMAL_NEGATIVE:["groupGraphPatternSub"],DOUBLE_NEGATIVE:["groupGraphPatternSub"],"}":["groupGraphPatternSub"]},"or([var,[(,expression,AS,var,)]])":{VAR1:["var"],VAR2:["var"],"(":["[(,expression,AS,var,)]"]},"or([verbPath,verbSimple])":{"^":["verbPath"],a:["verbPath"],"!":["verbPath"],"(":["verbPath"],IRI_REF:["verbPath"],PNAME_LN:["verbPath"],PNAME_NS:["verbPath"],VAR1:["verbSimple"],VAR2:["verbSimple"]},"or([},[integer,}]])":{"}":["}"],INTEGER:["[integer,}]"]},orderClause:{ORDER:["ORDER","BY","+orderCondition"]},orderCondition:{ASC:["or([ASC,DESC])","brackettedExpression"],DESC:["or([ASC,DESC])","brackettedExpression"],"(":["constraint"],STR:["constraint"],LANG:["constraint"],LANGMATCHES:["constraint"],DATATYPE:["constraint"],BOUND:["constraint"],IRI:["constraint"],URI:["constraint"],BNODE:["constraint"],RAND:["constraint"],ABS:["constraint"],CEIL:["constraint"],FLOOR:["constraint"],ROUND:["constraint"],CONCAT:["constraint"],STRLEN:["constraint"],UCASE:["constraint"],LCASE:["constraint"],ENCODE_FOR_URI:["constraint"],CONTAINS:["constraint"],STRSTARTS:["constraint"],STRENDS:["constraint"],STRBEFORE:["constraint"],STRAFTER:["constraint"],YEAR:["constraint"],MONTH:["constraint"],DAY:["constraint"],HOURS:["constraint"],MINUTES:["constraint"],SECONDS:["constraint"],TIMEZONE:["constraint"],TZ:["constraint"],NOW:["constraint"],UUID:["constraint"],STRUUID:["constraint"],MD5:["constraint"],SHA1:["constraint"],SHA256:["constraint"],SHA384:["constraint"],SHA512:["constraint"],COALESCE:["constraint"],IF:["constraint"],STRLANG:["constraint"],STRDT:["constraint"],SAMETERM:["constraint"],ISIRI:["constraint"],ISURI:["constraint"],ISBLANK:["constraint"],ISLITERAL:["constraint"],ISNUMERIC:["constraint"],SUBSTR:["constraint"],REPLACE:["constraint"],REGEX:["constraint"],EXISTS:["constraint"],NOT:["constraint"],IRI_REF:["constraint"],PNAME_LN:["constraint"],PNAME_NS:["constraint"],VAR1:["var"],VAR2:["var"]},path:{"^":["pathAlternative"],a:["pathAlternative"],"!":["pathAlternative"],"(":["pathAlternative"],IRI_REF:["pathAlternative"],PNAME_LN:["pathAlternative"],PNAME_NS:["pathAlternative"]},pathAlternative:{"^":["pathSequence","*[|,pathSequence]"],a:["pathSequence","*[|,pathSequence]"],"!":["pathSequence","*[|,pathSequence]"],"(":["pathSequence","*[|,pathSequence]"],IRI_REF:["pathSequence","*[|,pathSequence]"],PNAME_LN:["pathSequence","*[|,pathSequence]"],PNAME_NS:["pathSequence","*[|,pathSequence]"]},pathElt:{a:["pathPrimary","?pathMod"],"!":["pathPrimary","?pathMod"],"(":["pathPrimary","?pathMod"],IRI_REF:["pathPrimary","?pathMod"],PNAME_LN:["pathPrimary","?pathMod"],PNAME_NS:["pathPrimary","?pathMod"]},pathEltOrInverse:{a:["pathElt"],"!":["pathElt"],"(":["pathElt"],IRI_REF:["pathElt"],PNAME_LN:["pathElt"],PNAME_NS:["pathElt"],"^":["^","pathElt"]},pathMod:{"*":["*"],"?":["?"],"+":["+"],"{":["{","or([[integer,or([[,,or([},[integer,}]])],}])],[,,integer,}]])"]},pathNegatedPropertySet:{a:["pathOneInPropertySet"],"^":["pathOneInPropertySet"],IRI_REF:["pathOneInPropertySet"],PNAME_LN:["pathOneInPropertySet"],PNAME_NS:["pathOneInPropertySet"],"(":["(","?[pathOneInPropertySet,*[|,pathOneInPropertySet]]",")"]},pathOneInPropertySet:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],a:["a"],"^":["^","or([iriRef,a])"]},pathPrimary:{IRI_REF:["storeProperty","iriRef"],PNAME_LN:["storeProperty","iriRef"],PNAME_NS:["storeProperty","iriRef"],a:["storeProperty","a"],"!":["!","pathNegatedPropertySet"],"(":["(","path",")"]},pathSequence:{"^":["pathEltOrInverse","*[/,pathEltOrInverse]"],a:["pathEltOrInverse","*[/,pathEltOrInverse]"],"!":["pathEltOrInverse","*[/,pathEltOrInverse]"],"(":["pathEltOrInverse","*[/,pathEltOrInverse]"],IRI_REF:["pathEltOrInverse","*[/,pathEltOrInverse]"],PNAME_LN:["pathEltOrInverse","*[/,pathEltOrInverse]"],PNAME_NS:["pathEltOrInverse","*[/,pathEltOrInverse]"]},prefixDecl:{PREFIX:["PREFIX","PNAME_NS","IRI_REF"]},prefixedName:{PNAME_LN:["PNAME_LN"],PNAME_NS:["PNAME_NS"]},primaryExpression:{"(":["brackettedExpression"],STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["iriRefOrFunction"],PNAME_LN:["iriRefOrFunction"],PNAME_NS:["iriRefOrFunction"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],VAR1:["var"],VAR2:["var"],COUNT:["aggregate"],SUM:["aggregate"],MIN:["aggregate"],MAX:["aggregate"],AVG:["aggregate"],SAMPLE:["aggregate"],GROUP_CONCAT:["aggregate"]},prologue:{BASE:["*or([baseDecl,prefixDecl])"],PREFIX:["*or([baseDecl,prefixDecl])"],$:["*or([baseDecl,prefixDecl])"],CONSTRUCT:["*or([baseDecl,prefixDecl])"],DESCRIBE:["*or([baseDecl,prefixDecl])"],ASK:["*or([baseDecl,prefixDecl])"],INSERT:["*or([baseDecl,prefixDecl])"],DELETE:["*or([baseDecl,prefixDecl])"],SELECT:["*or([baseDecl,prefixDecl])"],LOAD:["*or([baseDecl,prefixDecl])"],CLEAR:["*or([baseDecl,prefixDecl])"],DROP:["*or([baseDecl,prefixDecl])"],ADD:["*or([baseDecl,prefixDecl])"],MOVE:["*or([baseDecl,prefixDecl])"],COPY:["*or([baseDecl,prefixDecl])"],CREATE:["*or([baseDecl,prefixDecl])"],WITH:["*or([baseDecl,prefixDecl])"]},propertyList:{a:["propertyListNotEmpty"],VAR1:["propertyListNotEmpty"],VAR2:["propertyListNotEmpty"],IRI_REF:["propertyListNotEmpty"],PNAME_LN:["propertyListNotEmpty"],PNAME_NS:["propertyListNotEmpty"],".":[],"}":[],GRAPH:[]},propertyListNotEmpty:{a:["verb","objectList","*[;,?[verb,objectList]]"],VAR1:["verb","objectList","*[;,?[verb,objectList]]"],VAR2:["verb","objectList","*[;,?[verb,objectList]]"],IRI_REF:["verb","objectList","*[;,?[verb,objectList]]"],PNAME_LN:["verb","objectList","*[;,?[verb,objectList]]"],PNAME_NS:["verb","objectList","*[;,?[verb,objectList]]"]},propertyListPath:{a:["propertyListNotEmpty"],VAR1:["propertyListNotEmpty"],VAR2:["propertyListNotEmpty"],IRI_REF:["propertyListNotEmpty"],PNAME_LN:["propertyListNotEmpty"],PNAME_NS:["propertyListNotEmpty"],".":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},propertyListPathNotEmpty:{VAR1:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],VAR2:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],"^":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],a:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],"!":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],"(":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],IRI_REF:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],PNAME_LN:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],PNAME_NS:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"]},quadData:{"{":["{","disallowVars","quads","allowVars","}"]},quadDataNoBnodes:{"{":["{","disallowBnodes","disallowVars","quads","allowVars","allowBnodes","}"]},quadPattern:{"{":["{","quads","}"]},quadPatternNoBnodes:{"{":["{","disallowBnodes","quads","allowBnodes","}"]},quads:{GRAPH:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],VAR1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],VAR2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],NIL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"(":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"[":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],IRI_REF:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],TRUE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],FALSE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],BLANK_NODE_LABEL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],ANON:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],PNAME_LN:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],PNAME_NS:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL_LONG1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL_LONG2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"}":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"]},quadsNotTriples:{GRAPH:["GRAPH","varOrIRIref","{","?triplesTemplate","}"]},queryAll:{CONSTRUCT:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],DESCRIBE:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],ASK:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],SELECT:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"]},rdfLiteral:{STRING_LITERAL1:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL2:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL_LONG1:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL_LONG2:["string","?or([LANGTAG,[^^,iriRef]])"]},regexExpression:{REGEX:["REGEX","(","expression",",","expression","?[,,expression]",")"]},relationalExpression:{"!":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"+":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"-":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],VAR1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],VAR2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"(":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LANG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LANGMATCHES:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DATATYPE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],BOUND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IRI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],URI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],BNODE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],RAND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ABS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CEIL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],FLOOR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ROUND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CONCAT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRLEN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],UCASE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LCASE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ENCODE_FOR_URI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CONTAINS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRSTARTS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRENDS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRBEFORE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRAFTER:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],YEAR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MONTH:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DAY:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],HOURS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MINUTES:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SECONDS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TIMEZONE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TZ:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOW:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],UUID:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRUUID:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MD5:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA256:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA384:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA512:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],COALESCE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IF:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRLANG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRDT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SAMETERM:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISIRI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISURI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISBLANK:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISLITERAL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISNUMERIC:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TRUE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],FALSE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],COUNT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SUM:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MIN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MAX:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],AVG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SAMPLE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],GROUP_CONCAT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SUBSTR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],REPLACE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],REGEX:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],EXISTS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IRI_REF:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL_LONG1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL_LONG2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],PNAME_LN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],PNAME_NS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"]},selectClause:{SELECT:["SELECT","?or([DISTINCT,REDUCED])","or([+or([var,[(,expression,AS,var,)]]),*])"]},selectQuery:{SELECT:["selectClause","*datasetClause","whereClause","solutionModifier"]},serviceGraphPattern:{SERVICE:["SERVICE","?SILENT","varOrIRIref","groupGraphPattern"]},solutionModifier:{LIMIT:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],OFFSET:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],ORDER:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],HAVING:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],GROUP:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],VALUES:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],$:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],"}":["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"]},sourceSelector:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"]},sparql11:{$:["prologue","or([queryAll,updateAll])","$"],CONSTRUCT:["prologue","or([queryAll,updateAll])","$"],DESCRIBE:["prologue","or([queryAll,updateAll])","$"],ASK:["prologue","or([queryAll,updateAll])","$"],INSERT:["prologue","or([queryAll,updateAll])","$"],DELETE:["prologue","or([queryAll,updateAll])","$"],SELECT:["prologue","or([queryAll,updateAll])","$"],LOAD:["prologue","or([queryAll,updateAll])","$"],CLEAR:["prologue","or([queryAll,updateAll])","$"],DROP:["prologue","or([queryAll,updateAll])","$"],ADD:["prologue","or([queryAll,updateAll])","$"],MOVE:["prologue","or([queryAll,updateAll])","$"],COPY:["prologue","or([queryAll,updateAll])","$"],CREATE:["prologue","or([queryAll,updateAll])","$"],WITH:["prologue","or([queryAll,updateAll])","$"],BASE:["prologue","or([queryAll,updateAll])","$"],PREFIX:["prologue","or([queryAll,updateAll])","$"]},storeProperty:{VAR1:[],VAR2:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[],a:[]},strReplaceExpression:{REPLACE:["REPLACE","(","expression",",","expression",",","expression","?[,,expression]",")"]},string:{STRING_LITERAL1:["STRING_LITERAL1"],STRING_LITERAL2:["STRING_LITERAL2"],STRING_LITERAL_LONG1:["STRING_LITERAL_LONG1"],STRING_LITERAL_LONG2:["STRING_LITERAL_LONG2"]},subSelect:{SELECT:["selectClause","whereClause","solutionModifier","valuesClause"]},substringExpression:{SUBSTR:["SUBSTR","(","expression",",","expression","?[,,expression]",")"]},triplesBlock:{VAR1:["triplesSameSubjectPath","?[.,?triplesBlock]"],VAR2:["triplesSameSubjectPath","?[.,?triplesBlock]"],NIL:["triplesSameSubjectPath","?[.,?triplesBlock]"],"(":["triplesSameSubjectPath","?[.,?triplesBlock]"],"[":["triplesSameSubjectPath","?[.,?triplesBlock]"],IRI_REF:["triplesSameSubjectPath","?[.,?triplesBlock]"],TRUE:["triplesSameSubjectPath","?[.,?triplesBlock]"],FALSE:["triplesSameSubjectPath","?[.,?triplesBlock]"],BLANK_NODE_LABEL:["triplesSameSubjectPath","?[.,?triplesBlock]"],ANON:["triplesSameSubjectPath","?[.,?triplesBlock]"],PNAME_LN:["triplesSameSubjectPath","?[.,?triplesBlock]"],PNAME_NS:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL1:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL2:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL_LONG1:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL_LONG2:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"]},triplesNode:{"(":["collection"],"[":["blankNodePropertyList"]},triplesNodePath:{"(":["collectionPath"],"[":["blankNodePropertyListPath"]},triplesSameSubject:{VAR1:["varOrTerm","propertyListNotEmpty"],VAR2:["varOrTerm","propertyListNotEmpty"],NIL:["varOrTerm","propertyListNotEmpty"],IRI_REF:["varOrTerm","propertyListNotEmpty"],TRUE:["varOrTerm","propertyListNotEmpty"],FALSE:["varOrTerm","propertyListNotEmpty"],BLANK_NODE_LABEL:["varOrTerm","propertyListNotEmpty"],ANON:["varOrTerm","propertyListNotEmpty"],PNAME_LN:["varOrTerm","propertyListNotEmpty"],PNAME_NS:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL1:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL2:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL_LONG1:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL_LONG2:["varOrTerm","propertyListNotEmpty"],INTEGER:["varOrTerm","propertyListNotEmpty"],DECIMAL:["varOrTerm","propertyListNotEmpty"],DOUBLE:["varOrTerm","propertyListNotEmpty"],INTEGER_POSITIVE:["varOrTerm","propertyListNotEmpty"],DECIMAL_POSITIVE:["varOrTerm","propertyListNotEmpty"],DOUBLE_POSITIVE:["varOrTerm","propertyListNotEmpty"],INTEGER_NEGATIVE:["varOrTerm","propertyListNotEmpty"],DECIMAL_NEGATIVE:["varOrTerm","propertyListNotEmpty"],DOUBLE_NEGATIVE:["varOrTerm","propertyListNotEmpty"],"(":["triplesNode","propertyList"],"[":["triplesNode","propertyList"]},triplesSameSubjectPath:{VAR1:["varOrTerm","propertyListPathNotEmpty"],VAR2:["varOrTerm","propertyListPathNotEmpty"],NIL:["varOrTerm","propertyListPathNotEmpty"],IRI_REF:["varOrTerm","propertyListPathNotEmpty"],TRUE:["varOrTerm","propertyListPathNotEmpty"],FALSE:["varOrTerm","propertyListPathNotEmpty"],BLANK_NODE_LABEL:["varOrTerm","propertyListPathNotEmpty"],ANON:["varOrTerm","propertyListPathNotEmpty"],PNAME_LN:["varOrTerm","propertyListPathNotEmpty"],PNAME_NS:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL1:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL2:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL_LONG1:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL_LONG2:["varOrTerm","propertyListPathNotEmpty"],INTEGER:["varOrTerm","propertyListPathNotEmpty"],DECIMAL:["varOrTerm","propertyListPathNotEmpty"],DOUBLE:["varOrTerm","propertyListPathNotEmpty"],INTEGER_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],DECIMAL_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],DOUBLE_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],INTEGER_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],DECIMAL_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],DOUBLE_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],"(":["triplesNodePath","propertyListPath"],"[":["triplesNodePath","propertyListPath"]},triplesTemplate:{VAR1:["triplesSameSubject","?[.,?triplesTemplate]"],VAR2:["triplesSameSubject","?[.,?triplesTemplate]"],NIL:["triplesSameSubject","?[.,?triplesTemplate]"],"(":["triplesSameSubject","?[.,?triplesTemplate]"],"[":["triplesSameSubject","?[.,?triplesTemplate]"],IRI_REF:["triplesSameSubject","?[.,?triplesTemplate]"],TRUE:["triplesSameSubject","?[.,?triplesTemplate]"],FALSE:["triplesSameSubject","?[.,?triplesTemplate]"],BLANK_NODE_LABEL:["triplesSameSubject","?[.,?triplesTemplate]"],ANON:["triplesSameSubject","?[.,?triplesTemplate]"],PNAME_LN:["triplesSameSubject","?[.,?triplesTemplate]"],PNAME_NS:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL1:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL2:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL_LONG1:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL_LONG2:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"]},unaryExpression:{"!":["!","primaryExpression"],"+":["+","primaryExpression"],"-":["-","primaryExpression"],VAR1:["primaryExpression"],VAR2:["primaryExpression"],"(":["primaryExpression"],STR:["primaryExpression"],LANG:["primaryExpression"],LANGMATCHES:["primaryExpression"],DATATYPE:["primaryExpression"],BOUND:["primaryExpression"],IRI:["primaryExpression"],URI:["primaryExpression"],BNODE:["primaryExpression"],RAND:["primaryExpression"],ABS:["primaryExpression"],CEIL:["primaryExpression"],FLOOR:["primaryExpression"],ROUND:["primaryExpression"],CONCAT:["primaryExpression"],STRLEN:["primaryExpression"],UCASE:["primaryExpression"],LCASE:["primaryExpression"],ENCODE_FOR_URI:["primaryExpression"],CONTAINS:["primaryExpression"],STRSTARTS:["primaryExpression"],STRENDS:["primaryExpression"],STRBEFORE:["primaryExpression"],STRAFTER:["primaryExpression"],YEAR:["primaryExpression"],MONTH:["primaryExpression"],DAY:["primaryExpression"],HOURS:["primaryExpression"],MINUTES:["primaryExpression"],SECONDS:["primaryExpression"],TIMEZONE:["primaryExpression"],TZ:["primaryExpression"],NOW:["primaryExpression"],UUID:["primaryExpression"],STRUUID:["primaryExpression"],MD5:["primaryExpression"],SHA1:["primaryExpression"],SHA256:["primaryExpression"],SHA384:["primaryExpression"],SHA512:["primaryExpression"],COALESCE:["primaryExpression"],IF:["primaryExpression"],STRLANG:["primaryExpression"],STRDT:["primaryExpression"],SAMETERM:["primaryExpression"],ISIRI:["primaryExpression"],ISURI:["primaryExpression"],ISBLANK:["primaryExpression"],ISLITERAL:["primaryExpression"],ISNUMERIC:["primaryExpression"],TRUE:["primaryExpression"],FALSE:["primaryExpression"],COUNT:["primaryExpression"],SUM:["primaryExpression"],MIN:["primaryExpression"],MAX:["primaryExpression"],AVG:["primaryExpression"],SAMPLE:["primaryExpression"],GROUP_CONCAT:["primaryExpression"],SUBSTR:["primaryExpression"],REPLACE:["primaryExpression"],REGEX:["primaryExpression"],EXISTS:["primaryExpression"],NOT:["primaryExpression"],IRI_REF:["primaryExpression"],STRING_LITERAL1:["primaryExpression"],STRING_LITERAL2:["primaryExpression"],STRING_LITERAL_LONG1:["primaryExpression"],STRING_LITERAL_LONG2:["primaryExpression"],INTEGER:["primaryExpression"],DECIMAL:["primaryExpression"],DOUBLE:["primaryExpression"],INTEGER_POSITIVE:["primaryExpression"],DECIMAL_POSITIVE:["primaryExpression"],DOUBLE_POSITIVE:["primaryExpression"],INTEGER_NEGATIVE:["primaryExpression"],DECIMAL_NEGATIVE:["primaryExpression"],DOUBLE_NEGATIVE:["primaryExpression"],PNAME_LN:["primaryExpression"],PNAME_NS:["primaryExpression"]},update:{INSERT:["prologue","?[update1,?[;,update]]"],DELETE:["prologue","?[update1,?[;,update]]"],LOAD:["prologue","?[update1,?[;,update]]"],CLEAR:["prologue","?[update1,?[;,update]]"],DROP:["prologue","?[update1,?[;,update]]"],ADD:["prologue","?[update1,?[;,update]]"],MOVE:["prologue","?[update1,?[;,update]]"],COPY:["prologue","?[update1,?[;,update]]"],CREATE:["prologue","?[update1,?[;,update]]"],WITH:["prologue","?[update1,?[;,update]]"],BASE:["prologue","?[update1,?[;,update]]"],PREFIX:["prologue","?[update1,?[;,update]]"],$:["prologue","?[update1,?[;,update]]"]},update1:{LOAD:["load"],CLEAR:["clear"],DROP:["drop"],ADD:["add"],MOVE:["move"],COPY:["copy"],CREATE:["create"],INSERT:["INSERT","insert1"],DELETE:["DELETE","delete1"],WITH:["modify"]},updateAll:{INSERT:["?[update1,?[;,update]]"],DELETE:["?[update1,?[;,update]]"],LOAD:["?[update1,?[;,update]]"],CLEAR:["?[update1,?[;,update]]"],DROP:["?[update1,?[;,update]]"],ADD:["?[update1,?[;,update]]"],MOVE:["?[update1,?[;,update]]"],COPY:["?[update1,?[;,update]]"],CREATE:["?[update1,?[;,update]]"],WITH:["?[update1,?[;,update]]"],$:["?[update1,?[;,update]]"]},usingClause:{USING:["USING","or([iriRef,[NAMED,iriRef]])"]},valueLogical:{"!":["relationalExpression"],"+":["relationalExpression"],"-":["relationalExpression"],VAR1:["relationalExpression"],VAR2:["relationalExpression"],"(":["relationalExpression"],STR:["relationalExpression"],LANG:["relationalExpression"],LANGMATCHES:["relationalExpression"],DATATYPE:["relationalExpression"],BOUND:["relationalExpression"],IRI:["relationalExpression"],URI:["relationalExpression"],BNODE:["relationalExpression"],RAND:["relationalExpression"],ABS:["relationalExpression"],CEIL:["relationalExpression"],FLOOR:["relationalExpression"],ROUND:["relationalExpression"],CONCAT:["relationalExpression"],STRLEN:["relationalExpression"],UCASE:["relationalExpression"],LCASE:["relationalExpression"],ENCODE_FOR_URI:["relationalExpression"],CONTAINS:["relationalExpression"],STRSTARTS:["relationalExpression"],STRENDS:["relationalExpression"],STRBEFORE:["relationalExpression"],STRAFTER:["relationalExpression"],YEAR:["relationalExpression"],MONTH:["relationalExpression"],DAY:["relationalExpression"],HOURS:["relationalExpression"],MINUTES:["relationalExpression"],SECONDS:["relationalExpression"],TIMEZONE:["relationalExpression"],TZ:["relationalExpression"],NOW:["relationalExpression"],UUID:["relationalExpression"],STRUUID:["relationalExpression"],MD5:["relationalExpression"],SHA1:["relationalExpression"],SHA256:["relationalExpression"],SHA384:["relationalExpression"],SHA512:["relationalExpression"],COALESCE:["relationalExpression"],IF:["relationalExpression"],STRLANG:["relationalExpression"],STRDT:["relationalExpression"],SAMETERM:["relationalExpression"],ISIRI:["relationalExpression"],ISURI:["relationalExpression"],ISBLANK:["relationalExpression"],ISLITERAL:["relationalExpression"],ISNUMERIC:["relationalExpression"],TRUE:["relationalExpression"],FALSE:["relationalExpression"],COUNT:["relationalExpression"],SUM:["relationalExpression"],MIN:["relationalExpression"],MAX:["relationalExpression"],AVG:["relationalExpression"],SAMPLE:["relationalExpression"],GROUP_CONCAT:["relationalExpression"],SUBSTR:["relationalExpression"],REPLACE:["relationalExpression"],REGEX:["relationalExpression"],EXISTS:["relationalExpression"],NOT:["relationalExpression"],IRI_REF:["relationalExpression"],STRING_LITERAL1:["relationalExpression"],STRING_LITERAL2:["relationalExpression"],STRING_LITERAL_LONG1:["relationalExpression"],STRING_LITERAL_LONG2:["relationalExpression"],INTEGER:["relationalExpression"],DECIMAL:["relationalExpression"],DOUBLE:["relationalExpression"],INTEGER_POSITIVE:["relationalExpression"],DECIMAL_POSITIVE:["relationalExpression"],DOUBLE_POSITIVE:["relationalExpression"],INTEGER_NEGATIVE:["relationalExpression"],DECIMAL_NEGATIVE:["relationalExpression"],DOUBLE_NEGATIVE:["relationalExpression"],PNAME_LN:["relationalExpression"],PNAME_NS:["relationalExpression"]},valuesClause:{VALUES:["VALUES","dataBlock"],$:[],"}":[]},var:{VAR1:["VAR1"],VAR2:["VAR2"]},varOrIRIref:{VAR1:["var"],VAR2:["var"],IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"]},varOrTerm:{VAR1:["var"],VAR2:["var"],NIL:["graphTerm"],IRI_REF:["graphTerm"],TRUE:["graphTerm"],FALSE:["graphTerm"],BLANK_NODE_LABEL:["graphTerm"],ANON:["graphTerm"],PNAME_LN:["graphTerm"],PNAME_NS:["graphTerm"],STRING_LITERAL1:["graphTerm"],STRING_LITERAL2:["graphTerm"],STRING_LITERAL_LONG1:["graphTerm"],STRING_LITERAL_LONG2:["graphTerm"],INTEGER:["graphTerm"],DECIMAL:["graphTerm"],DOUBLE:["graphTerm"],INTEGER_POSITIVE:["graphTerm"],DECIMAL_POSITIVE:["graphTerm"],DOUBLE_POSITIVE:["graphTerm"],INTEGER_NEGATIVE:["graphTerm"],DECIMAL_NEGATIVE:["graphTerm"],DOUBLE_NEGATIVE:["graphTerm"]},verb:{VAR1:["storeProperty","varOrIRIref"],VAR2:["storeProperty","varOrIRIref"],IRI_REF:["storeProperty","varOrIRIref"],PNAME_LN:["storeProperty","varOrIRIref"],PNAME_NS:["storeProperty","varOrIRIref"],a:["storeProperty","a"]},verbPath:{"^":["path"],a:["path"],"!":["path"],"(":["path"],IRI_REF:["path"],PNAME_LN:["path"],PNAME_NS:["path"]},verbSimple:{VAR1:["var"],VAR2:["var"]},whereClause:{"{":["?WHERE","groupGraphPattern"],WHERE:["?WHERE","groupGraphPattern"]}},Qh=/^(GROUP_CONCAT|DATATYPE|BASE|PREFIX|SELECT|CONSTRUCT|DESCRIBE|ASK|FROM|NAMED|ORDER|BY|LIMIT|ASC|DESC|OFFSET|DISTINCT|REDUCED|WHERE|GRAPH|OPTIONAL|UNION|FILTER|GROUP|HAVING|AS|VALUES|LOAD|CLEAR|DROP|CREATE|MOVE|COPY|SILENT|INSERT|DELETE|DATA|WITH|TO|USING|NAMED|MINUS|BIND|LANGMATCHES|LANG|BOUND|SAMETERM|ISIRI|ISURI|ISBLANK|ISLITERAL|REGEX|TRUE|FALSE|UNDEF|ADD|DEFAULT|ALL|SERVICE|INTO|IN|NOT|IRI|URI|BNODE|RAND|ABS|CEIL|FLOOR|ROUND|CONCAT|STRLEN|UCASE|LCASE|ENCODE_FOR_URI|CONTAINS|STRSTARTS|STRENDS|STRBEFORE|STRAFTER|YEAR|MONTH|DAY|HOURS|MINUTES|SECONDS|TIMEZONE|TZ|NOW|UUID|STRUUID|MD5|SHA1|SHA256|SHA384|SHA512|COALESCE|IF|STRLANG|STRDT|ISNUMERIC|SUBSTR|REPLACE|EXISTS|COUNT|SUM|MIN|MAX|AVG|SAMPLE|SEPARATOR|STR)/i,Yh=/^(\*|a|\.|\{|\}|,|\(|\)|;|\[|\]|\|\||&&|=|!=|!|<=|>=|<|>|\+|-|\/|\^\^|\?|\||\^)/,Fs="sparql11",Xh=!0;function Jh(n){let s=Hh,a='<[^<>"`|{}^\\\0- ]*>',u="[A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]",h=u+"|_",g="("+h+"|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])",m="("+h+"|[0-9])("+h+"|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])*",I="\\?"+m,T="\\$"+m,U="("+u+")((("+g+")|\\.)*("+g+"))?",L="[0-9A-Fa-f]",M="("+("(%"+L+L+")")+"|"+"(\\\\[_~\\.\\-!\\$&'\\(\\)\\*\\+,;=/\\?#@%])"+")",F="("+h+"|:|[0-9]|"+M+")(("+g+"|\\.|:|"+M+")*("+g+"|:|"+M+"))?",S="_:("+h+"|[0-9])(("+g+"|\\.)*"+g+")?",x="("+U+")?:",v=x+F,A="@[a-zA-Z]+(-[a-zA-Z0-9]+)*",R="[eE][\\+-]?[0-9]+",B="[0-9]+",D="[0-9]*\\.[0-9]+",w="(([0-9]+\\.[0-9]*"+R+")|(\\.[0-9]+"+R+")|([0-9]+"+R+"))",Q="\\+"+B,de="\\+"+D,te="\\+"+w,ue="-"+B,le="-"+D,me="-"+w,Y=`\\\\[tbnrf\\\\"']`,Oe=L+"{4}",Be="(\\\\u"+Oe+"|\\\\U00(10|0"+L+")"+Oe+")",et="'(([^\\x27\\x5C\\x0A\\x0D])|"+Y+"|"+Be+")*'",je='"(([^\\x22\\x5C\\x0A\\x0D])|'+Y+"|"+Be+')*"',Le={SINGLE:{CAT:"STRING_LITERAL_LONG1",QUOTES:"'''",CONTENTS:"(('|'')?([^'\\\\]|"+Y+"|"+Be+"))*"},DOUBLE:{CAT:"STRING_LITERAL_LONG2",QUOTES:'"""',CONTENTS:'(("|"")?([^"\\\\]|'+Y+"|"+Be+"))*"}};for(let re in Le)Le[re].COMPLETE=Le[re].QUOTES+Le[re].CONTENTS+Le[re].QUOTES;var Tt={};for(let re in Le)Tt[re]={complete:{name:"STRING_LITERAL_LONG_"+re,regex:new RegExp("^"+Le[re].COMPLETE),style:"string"},contents:{name:"STRING_LITERAL_LONG_"+re,regex:new RegExp("^"+Le[re].CONTENTS),style:"string"},closing:{name:"STRING_LITERAL_LONG_"+re,regex:new RegExp("^"+Le[re].CONTENTS+Le[re].QUOTES),style:"string"},quotes:{name:"STRING_LITERAL_LONG_QUOTES_"+re,regex:new RegExp("^"+Le[re].QUOTES),style:"string"}};let Ct="[\\x20\\x09\\x0D\\x0A]",Ce="#([^\\n\\r]*[\\n\\r]|[^\\n\\r]*$)",At="("+Ct+"|("+Ce+"))*",Ie="\\("+At+"\\)",Ht="\\["+At+"\\]",he=[{name:"WS",regex:new RegExp("^"+Ct+"+"),style:"ws"},{name:"COMMENT",regex:new RegExp("^"+Ce),style:"comment"},{name:"IRI_REF",regex:new RegExp("^"+a),style:"variable-3"},{name:"VAR1",regex:new RegExp("^"+I),style:"atom"},{name:"VAR2",regex:new RegExp("^"+T),style:"atom"},{name:"LANGTAG",regex:new RegExp("^"+A),style:"meta"},{name:"DOUBLE",regex:new RegExp("^"+w),style:"number"},{name:"DECIMAL",regex:new RegExp("^"+D),style:"number"},{name:"INTEGER",regex:new RegExp("^"+B),style:"number"},{name:"DOUBLE_POSITIVE",regex:new RegExp("^"+te),style:"number"},{name:"DECIMAL_POSITIVE",regex:new RegExp("^"+de),style:"number"},{name:"INTEGER_POSITIVE",regex:new RegExp("^"+Q),style:"number"},{name:"DOUBLE_NEGATIVE",regex:new RegExp("^"+me),style:"number"},{name:"DECIMAL_NEGATIVE",regex:new RegExp("^"+le),style:"number"},{name:"INTEGER_NEGATIVE",regex:new RegExp("^"+ue),style:"number"},{name:"STRING_LITERAL1",regex:new RegExp("^"+et),style:"string"},{name:"STRING_LITERAL2",regex:new RegExp("^"+je),style:"string"},{name:"NIL",regex:new RegExp("^"+Ie),style:"punc"},{name:"ANON",regex:new RegExp("^"+Ht),style:"punc"},{name:"PNAME_LN",regex:new RegExp("^"+v),style:"string-2"},{name:"PNAME_NS",regex:new RegExp("^"+x),style:"string-2"},{name:"BLANK_NODE_LABEL",regex:new RegExp("^"+S),style:"string-2"}];function ze(re){var k=[],Ze=s[re];if(Ze!=null)for(let Te in Ze)k.push(Te.toString());else k.push(re);return k}function De(re,k){function Ze(){let ie;if(k.inLiteral){var He=!1;if(ie=re.match(Tt[k.inLiteral].contents.regex,!0,!1),ie&&ie[0].length==0&&(ie=re.match(Tt[k.inLiteral].closing.regex,!0,!1),He=!0),ie&&ie[0].length>0){let Kt={quotePos:He?"end":"content",cat:Le[k.inLiteral].CAT,style:Tt[k.inLiteral].complete.style,string:ie[0],start:re.start};return He&&(k.inLiteral=void 0),Kt}}for(let Kt in Tt)if(ie=re.match(Tt[Kt].quotes.regex,!0,!1),ie){var zt;return k.inLiteral?(k.inLiteral=void 0,zt="end"):(k.inLiteral=Kt,zt="start"),{cat:Le[Kt].CAT,style:Tt[Kt].quotes.style,string:ie[0],quotePos:zt,start:re.start}}for(var qt=0;qt<he.length;++qt)if(ie=re.match(he[qt].regex,!0,!1),ie)return{cat:he[qt].name,style:he[qt].style,string:ie[0],start:re.start,quotePos:void 0};return ie=re.match(Qh,!0,!1),ie?{cat:re.current().toUpperCase(),style:"keyword",string:ie[0],start:re.start,quotePos:void 0}:(ie=re.match(Yh,!0,!1),ie?{cat:re.current(),style:"punc",string:ie[0],start:re.start,quotePos:void 0}:(ie=re.match(/^.[A-Za-z0-9]*/,!0,!1),{cat:"<invalid_token>",style:"error",string:ie[0],start:re.start,quotePos:void 0}))}function Te(){let ie=re.column();k.errorStartPos=ie,k.errorEndPos=ie+$.string.length}function ve(ie){if(k.queryType==null)switch(ie){case"SELECT":case"CONSTRUCT":case"ASK":case"DESCRIBE":case"INSERT":case"DELETE":case"LOAD":case"CLEAR":case"CREATE":case"DROP":case"COPY":case"MOVE":case"ADD":k.queryType=ie}}function We(ie){switch(ie==="prefixDecl"?k.inPrefixDecl=!0:k.inPrefixDecl=!1,ie){case"disallowVars":k.allowVars=!1;break;case"allowVars":k.allowVars=!0;break;case"disallowBnodes":k.allowBnodes=!1;break;case"allowBnodes":k.allowBnodes=!0;break;case"storeProperty":k.storeProperty=!0;break}}function jt(ie){return(k.allowVars||ie!="var")&&(k.allowBnodes||ie!="blankNode"&&ie!="blankNodePropertyList"&&ie!="blankNodePropertyListPath")}re.pos==0&&(k.possibleCurrent=k.possibleNext);let $=Ze();if($.cat=="<invalid_token>")return k.OK==!0&&(k.OK=!1,Te()),k.complete=!1,$.style;if($.cat==="WS"||$.cat==="COMMENT"||$.quotePos&&$.quotePos!="end")return k.possibleCurrent=k.possibleNext,k.possibleFullIri=!1,$.style;var Qt=!1,dt;let Pt=$.cat;if(k.possibleFullIri&&$.string===">"&&(k.possibleFullIri=!1),!k.possibleFullIri&&$.string==="<"&&(k.possibleFullIri=!0),!$.quotePos||$.quotePos=="end")for(;k.stack.length>0&&Pt&&k.OK&&!Qt;)if(dt=k.stack.pop(),dt==="var"&&$.string&&(k.variables[$.string]=$.string),s[dt]){let ie=s[dt][Pt];if(ie!=null&&jt(dt)){for(var tr=ie.length-1;tr>=0;--tr)k.stack.push(ie[tr]);We(dt)}else k.OK=!1,k.complete=!1,Te(),k.stack.push(dt)}else if(dt==Pt){k.inPrefixDecl&&(dt==="PNAME_NS"&&$.string.length>0?k.currentPnameNs=$.string.slice(0,-1):typeof k.currentPnameNs=="string"&&$.string.length>1&&(k.prefixes[k.currentPnameNs]=$.string.slice(1,-1),k.currentPnameNs=void 0)),Qt=!0,ve(dt);for(var Gr=!0,ti=k.stack.length;ti>0;--ti){let ie=s[k.stack[ti-1]];(!ie||!ie.$)&&(Gr=!1)}if(k.complete=Gr,k.storeProperty&&Pt!="punc"?(k.lastProperty=$.string,k.lastPropertyIndex=$.start,k.storeProperty=!1):(Pt==="."||Pt===";")&&(k.lastProperty="",k.lastPropertyIndex=0),!k.inPrefixDecl&&(Pt==="PNAME_NS"||Pt==="PNAME_LN")){let ie=$.string.indexOf(":");if(ie>=0){let He=$.string.slice(0,ie);k.prefixes[He]===void 0&&(k.OK=!1,Te(),k.errorMsg="Prefix '"+He+"' is not defined")}}}else k.OK=!1,k.complete=!1,Te();if(!Qt&&k.OK&&(k.OK=!1,k.complete=!1,Te()),k.possibleNext.indexOf("a")>=0){let ie=re.string;for(let He=$.start;He>=0;He--)if(ie[He-1]!==" "){ie[He-1]==="|"||ie[He-1]==="/"||$.style==="punc"||(k.lastPredicateOffset=$.start);break}}return k.possibleCurrent=k.possibleNext,k.possibleNext=ze(k.stack[k.stack.length-1]),$.style}let tt={"*[,, object]":3,"*[(,),object]":3,"*[(,),objectPath]":3,"*[/,pathEltOrInverse]":2,object:2,objectPath:2,objectList:2,objectListPath:2,storeProperty:2,pathMod:2,"?pathMod":2,propertyListNotEmpty:1,propertyList:1,propertyListPath:1,propertyListPathNotEmpty:1,"?[verb,objectList]":1},Ge={"}":1,"]":1,")":1,"{":-1,"(":-1,"[":-1};function Jt(re,k){if(re.inLiteral)return 0;if(re.lastPredicateOffset!==void 0&&re.stack.length&&re.stack[re.stack.length-1]=="?[or([verbPath,verbSimple]),objectListPath]")return re.lastPredicateOffset;var Ze=0,Te=re.stack.length-1;if(/^[\}\]\)]/.test(k)){let ve=k.substr(0,1);for(;Te>=0;--Te)if(re.stack[Te]==ve){--Te;break}}else{let ve=tt[re.stack[Te]];ve&&(Ze+=ve,--Te)}for(;Te>=0;--Te){let ve=Ge[re.stack[Te]];ve&&(Ze+=ve)}return Ze*(n.indentUnit??2)}return{token:De,startState:function(){return{tokenize:De,OK:!0,complete:Xh,errorStartPos:void 0,errorEndPos:void 0,queryType:void 0,possibleCurrent:ze(Fs),possibleNext:ze(Fs),allowVars:!0,allowBnodes:!0,storeProperty:!1,lastProperty:"",lastPropertyIndex:0,inLiteral:void 0,stack:[Fs],lastPredicateOffset:n.indentUnit||2,prefixes:{},variables:{},currentPnameNs:void 0,errorMsg:void 0,inPrefixDecl:!1,possibleFullIri:!1}},indent:Jt,electricChars:"}])"}}var UG=ft(Nl()),GG=ft($h()),FG=ft(rg()),BG=ft(og()),DG=ft(lg()),MG=ft(Tl()),PG=ft(vg()),VG=ft(Tg()),wG=ft(Sg());Bs.default.registerHelper("fold","prefix",bp);Bs.default.defineMode("sparql11",Jh);var QA=Bs.default,ei=QA;var Ue=class Ue extends ei{constructor(a,u={}){super();this.autocompleters={};this.prevQueryValid=!1;this.queryValid=!0;this.isFullscreen=!1;this.handleHashChange=()=>{this.config.consumeShareLink?.(this)};this.notificationEls={};if(!a)throw new Error("No parent passed as argument. Dont know where to draw YASQE");this.rootEl=document.createElement("div"),this.rootEl.className="yasqe",a.appendChild(this.rootEl),this.config=En({},Ue.defaults,u);let h=ei(this.rootEl,this.config);for(let m of Object.getOwnPropertyNames(Ue.prototype))h[m]=Ue.prototype[m].bind(this);Object.assign(this,ei.prototype,h),this.storage=new mi(Ue.storageNamespace),this.drawButtons();let g=this.getStorageId();if(g){let m=this.storage.get(g);m&&typeof m=="string"?this.persistentConfig={query:m,editorHeight:this.config.editorHeight}:this.persistentConfig=m,this.persistentConfig||(this.persistentConfig={query:this.getValue(),editorHeight:this.config.editorHeight}),this.persistentConfig&&this.persistentConfig.query&&this.setValue(this.persistentConfig.query)}this.config.autocompleters.forEach(m=>this.enableCompleter(m).then(()=>{},console.warn)),this.config.consumeShareLink&&(this.config.consumeShareLink(this),window.addEventListener("hashchange",this.handleHashChange)),this.checkSyntax(),this.persistentConfig&&this.persistentConfig.editorHeight?this.getWrapperElement().style.height=this.persistentConfig.editorHeight:this.config.editorHeight&&(this.getWrapperElement().style.height=this.config.editorHeight),this.config.resizeable&&this.drawResizer(),this.config.collapsePrefixesOnLoad&&this.collapsePrefixes(!0),this.registerEventListeners()}handleChange(){this.checkSyntax(),this.updateQueryButton()}handleBlur(){this.saveQuery()}handleChanges(){this.checkSyntax(),this.updateQueryButton()}handleCursorActivity(){this.autocomplete(!0)}handleQuery(a,u,h){this.req=u,this.abortController=h,this.updateQueryButton()}handleQueryResponse(a,u,h){this.lastQueryDuration=h,this.req=void 0,this.updateQueryButton()}handleQueryAbort(a,u){this.req=void 0,this.updateQueryButton()}registerEventListeners(){this.on("change",this.handleChange),this.on("blur",this.handleBlur),this.on("changes",this.handleChanges),this.on("cursorActivity",this.handleCursorActivity),this.on("query",this.handleQuery),this.on("queryResponse",this.handleQueryResponse),this.on("queryAbort",this.handleQueryAbort)}unregisterEventListeners(){this.off("change",this.handleChange),this.off("blur",this.handleBlur),this.off("changes",this.handleChanges),this.off("cursorActivity",this.handleCursorActivity),this.off("query",this.handleQuery),this.off("queryResponse",this.handleQueryResponse),this.off("queryAbort",this.handleQueryAbort)}emit(a,...u){ei.signal(this,a,this,...u)}getStorageId(a){let u=a||this.config.persistenceId;if(u)return typeof u=="string"?u:u(this)}drawButtons(){let a=document.createElement("div");if(a.className="yasqe_buttons",this.getWrapperElement().appendChild(a),this.config.pluginButtons){let m=this.config.pluginButtons();if(!m)return;if(Array.isArray(m))for(let I of m)a.append(I);else a.appendChild(m)}if(this.config.createShareableLink){var u=xi(Ch);let m=document.createElement("button");m.className="yasqe_share",m.title="Share query",m.setAttribute("aria-label","Share query"),m.appendChild(u),a.appendChild(m),m.addEventListener("click",T=>I(T)),m.addEventListener("keydown",T=>{T.code==="Enter"&&I(T)});let I=T=>{T.stopPropagation();let U=document.createElement("div");U.className="yasqe_sharePopup",a.appendChild(U),document.body.addEventListener("click",x=>{U&&x.target!==U&&!U.contains(x.target)&&(U.remove(),U=void 0)},!0);var L=document.createElement("input");L.type="text",L.value=this.config.createShareableLink(this),L.onfocus=function(){L.select()},L.onmouseup=function(){return!1},U.innerHTML="";var V=document.createElement("div");V.className="inputWrapper",V.appendChild(L),U.appendChild(V);let y=[],M=this.config.createShortLink;if(M){U.className=U.className+=" enableShort";let x=document.createElement("button");y.push(x),x.innerHTML="Shorten",x.className="yasqe_btn yasqe_btn-sm shorten",U.appendChild(x),x.onclick=()=>{y.forEach(v=>v.disabled=!0),M(this,L.value).then(v=>{L.value=v,L.focus()},v=>{let A=document.createElement("span");A.className="shortlinkErr";let R="An error has occurred";typeof v=="string"&&v.length!==0?R=v:v.message&&v.message.length!==0&&(R=v.message),A.textContent=R,L.replaceWith(A)})}}let F=document.createElement("button");y.push(F),F.innerText="cURL",F.className="yasqe_btn yasqe_btn-sm curl",U.appendChild(F),F.onclick=()=>{y.forEach(x=>x.disabled=!0),L.value=this.getAsCurlString(),L.focus(),U?.appendChild(F)};let S=u.getBoundingClientRect();U.style.top=u.offsetTop+S.height+"px",U.style.left=u.offsetLeft+u.clientWidth-U.clientWidth+"px",L.focus()}}if(this.config.showQueryButton){this.queryBtn=document.createElement("button"),Bt(this.queryBtn,"yasqe_queryButton");let m=xi(Th);Bt(m,"queryIcon"),this.queryBtn.appendChild(m);let I=xi(El);Bt(I,"warningIcon"),this.queryBtn.appendChild(I),this.queryBtn.onclick=()=>{this.config.queryingDisabled||(this.req?this.abortQuery():this.query().catch(()=>{}))},this.queryBtn.title="Run query",this.queryBtn.setAttribute("aria-label","Run query"),a.appendChild(this.queryBtn),this.updateQueryButton()}this.fullscreenBtn=document.createElement("button"),Bt(this.fullscreenBtn,"yasqe_fullscreenButton");let h=xi(Ah);Bt(h,"fullscreenIcon"),this.fullscreenBtn.appendChild(h);let g=xi(Sh);Bt(g,"fullscreenExitIcon"),this.fullscreenBtn.appendChild(g),this.fullscreenBtn.onclick=()=>{this.toggleFullscreen()},this.fullscreenBtn.title="Toggle fullscreen (F11)",this.fullscreenBtn.setAttribute("aria-label","Toggle fullscreen"),a.appendChild(this.fullscreenBtn)}toggleFullscreen(){this.isFullscreen=!this.isFullscreen,this.isFullscreen?(Bt(this.rootEl,"fullscreen"),this.fullscreenBtn?.setAttribute("title","Exit fullscreen (F11)")):(no(this.rootEl,"fullscreen"),this.fullscreenBtn?.setAttribute("title","Toggle fullscreen (F11)")),this.refresh()}getIsFullscreen(){return this.isFullscreen}drawResizer(){if(this.resizeWrapper)return;this.resizeWrapper=document.createElement("div"),Bt(this.resizeWrapper,"resizeWrapper");let a=document.createElement("div");Bt(a,"resizeChip"),this.resizeWrapper.appendChild(a),this.resizeWrapper.addEventListener("mousedown",this.initDrag,!1),this.resizeWrapper.addEventListener("dblclick",this.expandEditor),this.rootEl.appendChild(this.resizeWrapper)}initDrag(){document.documentElement.addEventListener("mousemove",this.doDrag,!1),document.documentElement.addEventListener("mouseup",this.stopDrag,!1)}calculateDragOffset(a,u){let h=0;u.offsetParent&&(h=u.offsetParent.offsetTop);let g=0,m=u.parentElement;for(;m;)g+=m.scrollTop,m=m.parentElement;return a.clientY-h-this.rootEl.offsetTop+g}doDrag(a){this.getWrapperElement().style.height=this.calculateDragOffset(a,this.rootEl)+"px"}stopDrag(){document.documentElement.removeEventListener("mousemove",this.doDrag,!1),document.documentElement.removeEventListener("mouseup",this.stopDrag,!1),this.emit("resize",this.getWrapperElement().style.height),this.getStorageId()&&this.persistentConfig&&(this.persistentConfig.editorHeight=this.getWrapperElement().style.height,this.saveQuery()),this.refresh()}duplicateLine(){let a=this.getDoc().getCursor();if(a){let u=this.getDoc().getLine(a.line);this.getDoc().replaceRange(u+`
|
|
45
|
-
`+u,{ch:0,line:a.line},{ch:u.length,line:a.line})}}updateQueryButton(a){this.queryBtn&&(this.config.queryingDisabled?(Bt(this.queryBtn,"query_disabled"),this.queryBtn.title=this.config.queryingDisabled):(no(this.queryBtn,"query_disabled"),this.queryBtn.title="Run query",this.queryBtn.setAttribute("aria-label","Run query")),a||(a=this.queryValid?"valid":"error"),a!=this.queryStatus&&(no(this.queryBtn,"query_"+this.queryStatus),Bt(this.queryBtn,"query_"+a),this.queryStatus=a),this.req&&this.queryBtn.className.indexOf("busy")<0&&(this.queryBtn.className=this.queryBtn.className+=" busy"),!this.req&&this.queryBtn.className.indexOf("busy")>=0&&(this.queryBtn.className=this.queryBtn.className.replace("busy","")))}handleLocalStorageQuotaFull(a){console.warn("Localstorage quota exceeded. Clearing all queries"),
|
|
44
|
+
} LIMIT 10`,highlightSelectionMatches:{showToken:/\w/},tabMode:"indent",lineNumbers:!0,lineWrapping:!0,foldGutter:{rangeFinder:new Us.default.fold.combine(Us.default.fold.brace,Us.default.fold.prefix)},collapsePrefixesOnLoad:!1,gutters:["gutterErrorBar","CodeMirror-linenumbers","CodeMirror-foldgutter"],matchBrackets:!0,fixedGutter:!0,syntaxErrorCheck:!0,autocompleters:[],extraKeys:{"Ctrl-Space":function(u){u.autocomplete()},"Shift-Ctrl-K":function(u){let h=u,g=h.getDoc().getCursor().line;return g===h.getDoc().lastLine()&&g>1?h.getDoc().replaceRange("",{ch:h.getDoc().getLine(g-1).length,line:g-1},{ch:h.getDoc().getLine(g).length,line:g}):h.getDoc().replaceRange("",{ch:0,line:g},{ch:0,line:g+1})},"Ctrl-/":function(u){u.commentLines()},"Shift-Ctrl-D":function(u){u.duplicateLine()},"Shift-Ctrl-F":function(u){u.autoformat()},"Ctrl-S":function(u){u.saveQuery()},"Cmd-Enter":function(u){u.query().catch(()=>{})},"Ctrl-Enter":function(u){u.query().catch(()=>{})},Esc:function(u){u.getInputField().blur()}},createShareableLink:function(u){return document.location.protocol+"//"+document.location.host+document.location.pathname+document.location.search+"#"+Zh.stringify(u.configToQueryParams())},pluginButtons:void 0,createShortLink:void 0,consumeShareLink:function(u){u.queryParamsToConfig(u.getUrlParams())},persistenceId:function(u){let h="",g=u.rootEl;for(g.id&&(h=g.id);g&&g!==document;g=g.parentNode)if(g){g.id&&(h=g.id);break}return"yasqe_"+h+"_query"},persistencyExpire:2592e3,showQueryButton:!0,hintConfig:{},resizeable:!0,editorHeight:"300px",queryingDisabled:void 0,prefixCcApi:"https://prefix.cc/popular/all.file.json"},requestConfig:{queryArgument:void 0,endpoint:"https://dbpedia.org/sparql",method:"POST",acceptHeaderGraph:"text/turtle,*/*;q=0.9",acceptHeaderSelect:"application/sparql-results+json,*/*;q=0.9",acceptHeaderUpdate:"text/plain,*/*;q=0.9",namedGraphs:[],defaultGraphs:[],args:[],headers:{},withCredentials:!1,adjustQueryBeforeRequest:!1}}}var Bs=ft(Nt());var Hh={"*[&&,valueLogical]":{"&&":["[&&,valueLogical]","*[&&,valueLogical]"],AS:[],")":[],",":[],"||":[],";":[]},"*[,,expression]":{",":["[,,expression]","*[,,expression]"],")":[]},"*[,,objectPath]":{",":["[,,objectPath]","*[,,objectPath]"],".":[],";":[],"]":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[,,object]":{",":["[,,object]","*[,,object]"],".":[],";":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"*[/,pathEltOrInverse]":{"/":["[/,pathEltOrInverse]","*[/,pathEltOrInverse]"],"|":[],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"*[;,?[or([verbPath,verbSimple]),objectListPath]]":{";":["[;,?[or([verbPath,verbSimple]),objectListPath]]","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],".":[],"]":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[;,?[verb,objectList]]":{";":["[;,?[verb,objectList]]","*[;,?[verb,objectList]]"],".":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"*[UNION,groupGraphPattern]":{UNION:["[UNION,groupGraphPattern]","*[UNION,groupGraphPattern]"],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],".":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[graphPatternNotTriples,?.,?triplesBlock]":{"{":["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],OPTIONAL:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],MINUS:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],GRAPH:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],SERVICE:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],FILTER:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],BIND:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],VALUES:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],"}":[]},"*[quadsNotTriples,?.,?triplesTemplate]":{GRAPH:["[quadsNotTriples,?.,?triplesTemplate]","*[quadsNotTriples,?.,?triplesTemplate]"],"}":[]},"*[|,pathOneInPropertySet]":{"|":["[|,pathOneInPropertySet]","*[|,pathOneInPropertySet]"],")":[]},"*[|,pathSequence]":{"|":["[|,pathSequence]","*[|,pathSequence]"],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"*[||,conditionalAndExpression]":{"||":["[||,conditionalAndExpression]","*[||,conditionalAndExpression]"],AS:[],")":[],",":[],";":[]},"*dataBlockValue":{UNDEF:["dataBlockValue","*dataBlockValue"],IRI_REF:["dataBlockValue","*dataBlockValue"],TRUE:["dataBlockValue","*dataBlockValue"],FALSE:["dataBlockValue","*dataBlockValue"],PNAME_LN:["dataBlockValue","*dataBlockValue"],PNAME_NS:["dataBlockValue","*dataBlockValue"],STRING_LITERAL1:["dataBlockValue","*dataBlockValue"],STRING_LITERAL2:["dataBlockValue","*dataBlockValue"],STRING_LITERAL_LONG1:["dataBlockValue","*dataBlockValue"],STRING_LITERAL_LONG2:["dataBlockValue","*dataBlockValue"],INTEGER:["dataBlockValue","*dataBlockValue"],DECIMAL:["dataBlockValue","*dataBlockValue"],DOUBLE:["dataBlockValue","*dataBlockValue"],INTEGER_POSITIVE:["dataBlockValue","*dataBlockValue"],DECIMAL_POSITIVE:["dataBlockValue","*dataBlockValue"],DOUBLE_POSITIVE:["dataBlockValue","*dataBlockValue"],INTEGER_NEGATIVE:["dataBlockValue","*dataBlockValue"],DECIMAL_NEGATIVE:["dataBlockValue","*dataBlockValue"],DOUBLE_NEGATIVE:["dataBlockValue","*dataBlockValue"],"}":[],")":[]},"*datasetClause":{FROM:["datasetClause","*datasetClause"],WHERE:[],"{":[]},"*describeDatasetClause":{FROM:["describeDatasetClause","*describeDatasetClause"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],WHERE:[],"{":[],VALUES:[],$:[]},"*graphNode":{"(":["graphNode","*graphNode"],"[":["graphNode","*graphNode"],VAR1:["graphNode","*graphNode"],VAR2:["graphNode","*graphNode"],NIL:["graphNode","*graphNode"],IRI_REF:["graphNode","*graphNode"],TRUE:["graphNode","*graphNode"],FALSE:["graphNode","*graphNode"],BLANK_NODE_LABEL:["graphNode","*graphNode"],ANON:["graphNode","*graphNode"],PNAME_LN:["graphNode","*graphNode"],PNAME_NS:["graphNode","*graphNode"],STRING_LITERAL1:["graphNode","*graphNode"],STRING_LITERAL2:["graphNode","*graphNode"],STRING_LITERAL_LONG1:["graphNode","*graphNode"],STRING_LITERAL_LONG2:["graphNode","*graphNode"],INTEGER:["graphNode","*graphNode"],DECIMAL:["graphNode","*graphNode"],DOUBLE:["graphNode","*graphNode"],INTEGER_POSITIVE:["graphNode","*graphNode"],DECIMAL_POSITIVE:["graphNode","*graphNode"],DOUBLE_POSITIVE:["graphNode","*graphNode"],INTEGER_NEGATIVE:["graphNode","*graphNode"],DECIMAL_NEGATIVE:["graphNode","*graphNode"],DOUBLE_NEGATIVE:["graphNode","*graphNode"],")":[]},"*graphNodePath":{"(":["graphNodePath","*graphNodePath"],"[":["graphNodePath","*graphNodePath"],VAR1:["graphNodePath","*graphNodePath"],VAR2:["graphNodePath","*graphNodePath"],NIL:["graphNodePath","*graphNodePath"],IRI_REF:["graphNodePath","*graphNodePath"],TRUE:["graphNodePath","*graphNodePath"],FALSE:["graphNodePath","*graphNodePath"],BLANK_NODE_LABEL:["graphNodePath","*graphNodePath"],ANON:["graphNodePath","*graphNodePath"],PNAME_LN:["graphNodePath","*graphNodePath"],PNAME_NS:["graphNodePath","*graphNodePath"],STRING_LITERAL1:["graphNodePath","*graphNodePath"],STRING_LITERAL2:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath","*graphNodePath"],INTEGER:["graphNodePath","*graphNodePath"],DECIMAL:["graphNodePath","*graphNodePath"],DOUBLE:["graphNodePath","*graphNodePath"],INTEGER_POSITIVE:["graphNodePath","*graphNodePath"],DECIMAL_POSITIVE:["graphNodePath","*graphNodePath"],DOUBLE_POSITIVE:["graphNodePath","*graphNodePath"],INTEGER_NEGATIVE:["graphNodePath","*graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath","*graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath","*graphNodePath"],")":[]},"*groupCondition":{"(":["groupCondition","*groupCondition"],STR:["groupCondition","*groupCondition"],LANG:["groupCondition","*groupCondition"],LANGMATCHES:["groupCondition","*groupCondition"],DATATYPE:["groupCondition","*groupCondition"],BOUND:["groupCondition","*groupCondition"],IRI:["groupCondition","*groupCondition"],URI:["groupCondition","*groupCondition"],BNODE:["groupCondition","*groupCondition"],RAND:["groupCondition","*groupCondition"],ABS:["groupCondition","*groupCondition"],CEIL:["groupCondition","*groupCondition"],FLOOR:["groupCondition","*groupCondition"],ROUND:["groupCondition","*groupCondition"],CONCAT:["groupCondition","*groupCondition"],STRLEN:["groupCondition","*groupCondition"],UCASE:["groupCondition","*groupCondition"],LCASE:["groupCondition","*groupCondition"],ENCODE_FOR_URI:["groupCondition","*groupCondition"],CONTAINS:["groupCondition","*groupCondition"],STRSTARTS:["groupCondition","*groupCondition"],STRENDS:["groupCondition","*groupCondition"],STRBEFORE:["groupCondition","*groupCondition"],STRAFTER:["groupCondition","*groupCondition"],YEAR:["groupCondition","*groupCondition"],MONTH:["groupCondition","*groupCondition"],DAY:["groupCondition","*groupCondition"],HOURS:["groupCondition","*groupCondition"],MINUTES:["groupCondition","*groupCondition"],SECONDS:["groupCondition","*groupCondition"],TIMEZONE:["groupCondition","*groupCondition"],TZ:["groupCondition","*groupCondition"],NOW:["groupCondition","*groupCondition"],UUID:["groupCondition","*groupCondition"],STRUUID:["groupCondition","*groupCondition"],MD5:["groupCondition","*groupCondition"],SHA1:["groupCondition","*groupCondition"],SHA256:["groupCondition","*groupCondition"],SHA384:["groupCondition","*groupCondition"],SHA512:["groupCondition","*groupCondition"],COALESCE:["groupCondition","*groupCondition"],IF:["groupCondition","*groupCondition"],STRLANG:["groupCondition","*groupCondition"],STRDT:["groupCondition","*groupCondition"],SAMETERM:["groupCondition","*groupCondition"],ISIRI:["groupCondition","*groupCondition"],ISURI:["groupCondition","*groupCondition"],ISBLANK:["groupCondition","*groupCondition"],ISLITERAL:["groupCondition","*groupCondition"],ISNUMERIC:["groupCondition","*groupCondition"],VAR1:["groupCondition","*groupCondition"],VAR2:["groupCondition","*groupCondition"],SUBSTR:["groupCondition","*groupCondition"],REPLACE:["groupCondition","*groupCondition"],REGEX:["groupCondition","*groupCondition"],EXISTS:["groupCondition","*groupCondition"],NOT:["groupCondition","*groupCondition"],IRI_REF:["groupCondition","*groupCondition"],PNAME_LN:["groupCondition","*groupCondition"],PNAME_NS:["groupCondition","*groupCondition"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],HAVING:[],$:[],"}":[]},"*havingCondition":{"(":["havingCondition","*havingCondition"],STR:["havingCondition","*havingCondition"],LANG:["havingCondition","*havingCondition"],LANGMATCHES:["havingCondition","*havingCondition"],DATATYPE:["havingCondition","*havingCondition"],BOUND:["havingCondition","*havingCondition"],IRI:["havingCondition","*havingCondition"],URI:["havingCondition","*havingCondition"],BNODE:["havingCondition","*havingCondition"],RAND:["havingCondition","*havingCondition"],ABS:["havingCondition","*havingCondition"],CEIL:["havingCondition","*havingCondition"],FLOOR:["havingCondition","*havingCondition"],ROUND:["havingCondition","*havingCondition"],CONCAT:["havingCondition","*havingCondition"],STRLEN:["havingCondition","*havingCondition"],UCASE:["havingCondition","*havingCondition"],LCASE:["havingCondition","*havingCondition"],ENCODE_FOR_URI:["havingCondition","*havingCondition"],CONTAINS:["havingCondition","*havingCondition"],STRSTARTS:["havingCondition","*havingCondition"],STRENDS:["havingCondition","*havingCondition"],STRBEFORE:["havingCondition","*havingCondition"],STRAFTER:["havingCondition","*havingCondition"],YEAR:["havingCondition","*havingCondition"],MONTH:["havingCondition","*havingCondition"],DAY:["havingCondition","*havingCondition"],HOURS:["havingCondition","*havingCondition"],MINUTES:["havingCondition","*havingCondition"],SECONDS:["havingCondition","*havingCondition"],TIMEZONE:["havingCondition","*havingCondition"],TZ:["havingCondition","*havingCondition"],NOW:["havingCondition","*havingCondition"],UUID:["havingCondition","*havingCondition"],STRUUID:["havingCondition","*havingCondition"],MD5:["havingCondition","*havingCondition"],SHA1:["havingCondition","*havingCondition"],SHA256:["havingCondition","*havingCondition"],SHA384:["havingCondition","*havingCondition"],SHA512:["havingCondition","*havingCondition"],COALESCE:["havingCondition","*havingCondition"],IF:["havingCondition","*havingCondition"],STRLANG:["havingCondition","*havingCondition"],STRDT:["havingCondition","*havingCondition"],SAMETERM:["havingCondition","*havingCondition"],ISIRI:["havingCondition","*havingCondition"],ISURI:["havingCondition","*havingCondition"],ISBLANK:["havingCondition","*havingCondition"],ISLITERAL:["havingCondition","*havingCondition"],ISNUMERIC:["havingCondition","*havingCondition"],SUBSTR:["havingCondition","*havingCondition"],REPLACE:["havingCondition","*havingCondition"],REGEX:["havingCondition","*havingCondition"],EXISTS:["havingCondition","*havingCondition"],NOT:["havingCondition","*havingCondition"],IRI_REF:["havingCondition","*havingCondition"],PNAME_LN:["havingCondition","*havingCondition"],PNAME_NS:["havingCondition","*havingCondition"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],$:[],"}":[]},"*or([[(,*dataBlockValue,)],NIL])":{"(":["or([[(,*dataBlockValue,)],NIL])","*or([[(,*dataBlockValue,)],NIL])"],NIL:["or([[(,*dataBlockValue,)],NIL])","*or([[(,*dataBlockValue,)],NIL])"],"}":[]},"*or([[*,unaryExpression],[/,unaryExpression]])":{"*":["or([[*,unaryExpression],[/,unaryExpression]])","*or([[*,unaryExpression],[/,unaryExpression]])"],"/":["or([[*,unaryExpression],[/,unaryExpression]])","*or([[*,unaryExpression],[/,unaryExpression]])"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],";":[]},"*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])":{"+":["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"-":["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],";":[]},"*or([baseDecl,prefixDecl])":{BASE:["or([baseDecl,prefixDecl])","*or([baseDecl,prefixDecl])"],PREFIX:["or([baseDecl,prefixDecl])","*or([baseDecl,prefixDecl])"],$:[],CONSTRUCT:[],DESCRIBE:[],ASK:[],INSERT:[],DELETE:[],SELECT:[],LOAD:[],CLEAR:[],DROP:[],ADD:[],MOVE:[],COPY:[],CREATE:[],WITH:[]},"*or([var,[(,expression,AS,var,)]])":{"(":["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR1:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR2:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],WHERE:[],"{":[],FROM:[]},"*orderCondition":{ASC:["orderCondition","*orderCondition"],DESC:["orderCondition","*orderCondition"],VAR1:["orderCondition","*orderCondition"],VAR2:["orderCondition","*orderCondition"],"(":["orderCondition","*orderCondition"],STR:["orderCondition","*orderCondition"],LANG:["orderCondition","*orderCondition"],LANGMATCHES:["orderCondition","*orderCondition"],DATATYPE:["orderCondition","*orderCondition"],BOUND:["orderCondition","*orderCondition"],IRI:["orderCondition","*orderCondition"],URI:["orderCondition","*orderCondition"],BNODE:["orderCondition","*orderCondition"],RAND:["orderCondition","*orderCondition"],ABS:["orderCondition","*orderCondition"],CEIL:["orderCondition","*orderCondition"],FLOOR:["orderCondition","*orderCondition"],ROUND:["orderCondition","*orderCondition"],CONCAT:["orderCondition","*orderCondition"],STRLEN:["orderCondition","*orderCondition"],UCASE:["orderCondition","*orderCondition"],LCASE:["orderCondition","*orderCondition"],ENCODE_FOR_URI:["orderCondition","*orderCondition"],CONTAINS:["orderCondition","*orderCondition"],STRSTARTS:["orderCondition","*orderCondition"],STRENDS:["orderCondition","*orderCondition"],STRBEFORE:["orderCondition","*orderCondition"],STRAFTER:["orderCondition","*orderCondition"],YEAR:["orderCondition","*orderCondition"],MONTH:["orderCondition","*orderCondition"],DAY:["orderCondition","*orderCondition"],HOURS:["orderCondition","*orderCondition"],MINUTES:["orderCondition","*orderCondition"],SECONDS:["orderCondition","*orderCondition"],TIMEZONE:["orderCondition","*orderCondition"],TZ:["orderCondition","*orderCondition"],NOW:["orderCondition","*orderCondition"],UUID:["orderCondition","*orderCondition"],STRUUID:["orderCondition","*orderCondition"],MD5:["orderCondition","*orderCondition"],SHA1:["orderCondition","*orderCondition"],SHA256:["orderCondition","*orderCondition"],SHA384:["orderCondition","*orderCondition"],SHA512:["orderCondition","*orderCondition"],COALESCE:["orderCondition","*orderCondition"],IF:["orderCondition","*orderCondition"],STRLANG:["orderCondition","*orderCondition"],STRDT:["orderCondition","*orderCondition"],SAMETERM:["orderCondition","*orderCondition"],ISIRI:["orderCondition","*orderCondition"],ISURI:["orderCondition","*orderCondition"],ISBLANK:["orderCondition","*orderCondition"],ISLITERAL:["orderCondition","*orderCondition"],ISNUMERIC:["orderCondition","*orderCondition"],SUBSTR:["orderCondition","*orderCondition"],REPLACE:["orderCondition","*orderCondition"],REGEX:["orderCondition","*orderCondition"],EXISTS:["orderCondition","*orderCondition"],NOT:["orderCondition","*orderCondition"],IRI_REF:["orderCondition","*orderCondition"],PNAME_LN:["orderCondition","*orderCondition"],PNAME_NS:["orderCondition","*orderCondition"],VALUES:[],LIMIT:[],OFFSET:[],$:[],"}":[]},"*usingClause":{USING:["usingClause","*usingClause"],WHERE:[]},"*var":{VAR1:["var","*var"],VAR2:["var","*var"],")":[]},"*varOrIRIref":{VAR1:["varOrIRIref","*varOrIRIref"],VAR2:["varOrIRIref","*varOrIRIref"],IRI_REF:["varOrIRIref","*varOrIRIref"],PNAME_LN:["varOrIRIref","*varOrIRIref"],PNAME_NS:["varOrIRIref","*varOrIRIref"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],WHERE:[],"{":[],FROM:[],VALUES:[],$:[]},"+graphNode":{"(":["graphNode","*graphNode"],"[":["graphNode","*graphNode"],VAR1:["graphNode","*graphNode"],VAR2:["graphNode","*graphNode"],NIL:["graphNode","*graphNode"],IRI_REF:["graphNode","*graphNode"],TRUE:["graphNode","*graphNode"],FALSE:["graphNode","*graphNode"],BLANK_NODE_LABEL:["graphNode","*graphNode"],ANON:["graphNode","*graphNode"],PNAME_LN:["graphNode","*graphNode"],PNAME_NS:["graphNode","*graphNode"],STRING_LITERAL1:["graphNode","*graphNode"],STRING_LITERAL2:["graphNode","*graphNode"],STRING_LITERAL_LONG1:["graphNode","*graphNode"],STRING_LITERAL_LONG2:["graphNode","*graphNode"],INTEGER:["graphNode","*graphNode"],DECIMAL:["graphNode","*graphNode"],DOUBLE:["graphNode","*graphNode"],INTEGER_POSITIVE:["graphNode","*graphNode"],DECIMAL_POSITIVE:["graphNode","*graphNode"],DOUBLE_POSITIVE:["graphNode","*graphNode"],INTEGER_NEGATIVE:["graphNode","*graphNode"],DECIMAL_NEGATIVE:["graphNode","*graphNode"],DOUBLE_NEGATIVE:["graphNode","*graphNode"]},"+graphNodePath":{"(":["graphNodePath","*graphNodePath"],"[":["graphNodePath","*graphNodePath"],VAR1:["graphNodePath","*graphNodePath"],VAR2:["graphNodePath","*graphNodePath"],NIL:["graphNodePath","*graphNodePath"],IRI_REF:["graphNodePath","*graphNodePath"],TRUE:["graphNodePath","*graphNodePath"],FALSE:["graphNodePath","*graphNodePath"],BLANK_NODE_LABEL:["graphNodePath","*graphNodePath"],ANON:["graphNodePath","*graphNodePath"],PNAME_LN:["graphNodePath","*graphNodePath"],PNAME_NS:["graphNodePath","*graphNodePath"],STRING_LITERAL1:["graphNodePath","*graphNodePath"],STRING_LITERAL2:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath","*graphNodePath"],INTEGER:["graphNodePath","*graphNodePath"],DECIMAL:["graphNodePath","*graphNodePath"],DOUBLE:["graphNodePath","*graphNodePath"],INTEGER_POSITIVE:["graphNodePath","*graphNodePath"],DECIMAL_POSITIVE:["graphNodePath","*graphNodePath"],DOUBLE_POSITIVE:["graphNodePath","*graphNodePath"],INTEGER_NEGATIVE:["graphNodePath","*graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath","*graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath","*graphNodePath"]},"+groupCondition":{"(":["groupCondition","*groupCondition"],STR:["groupCondition","*groupCondition"],LANG:["groupCondition","*groupCondition"],LANGMATCHES:["groupCondition","*groupCondition"],DATATYPE:["groupCondition","*groupCondition"],BOUND:["groupCondition","*groupCondition"],IRI:["groupCondition","*groupCondition"],URI:["groupCondition","*groupCondition"],BNODE:["groupCondition","*groupCondition"],RAND:["groupCondition","*groupCondition"],ABS:["groupCondition","*groupCondition"],CEIL:["groupCondition","*groupCondition"],FLOOR:["groupCondition","*groupCondition"],ROUND:["groupCondition","*groupCondition"],CONCAT:["groupCondition","*groupCondition"],STRLEN:["groupCondition","*groupCondition"],UCASE:["groupCondition","*groupCondition"],LCASE:["groupCondition","*groupCondition"],ENCODE_FOR_URI:["groupCondition","*groupCondition"],CONTAINS:["groupCondition","*groupCondition"],STRSTARTS:["groupCondition","*groupCondition"],STRENDS:["groupCondition","*groupCondition"],STRBEFORE:["groupCondition","*groupCondition"],STRAFTER:["groupCondition","*groupCondition"],YEAR:["groupCondition","*groupCondition"],MONTH:["groupCondition","*groupCondition"],DAY:["groupCondition","*groupCondition"],HOURS:["groupCondition","*groupCondition"],MINUTES:["groupCondition","*groupCondition"],SECONDS:["groupCondition","*groupCondition"],TIMEZONE:["groupCondition","*groupCondition"],TZ:["groupCondition","*groupCondition"],NOW:["groupCondition","*groupCondition"],UUID:["groupCondition","*groupCondition"],STRUUID:["groupCondition","*groupCondition"],MD5:["groupCondition","*groupCondition"],SHA1:["groupCondition","*groupCondition"],SHA256:["groupCondition","*groupCondition"],SHA384:["groupCondition","*groupCondition"],SHA512:["groupCondition","*groupCondition"],COALESCE:["groupCondition","*groupCondition"],IF:["groupCondition","*groupCondition"],STRLANG:["groupCondition","*groupCondition"],STRDT:["groupCondition","*groupCondition"],SAMETERM:["groupCondition","*groupCondition"],ISIRI:["groupCondition","*groupCondition"],ISURI:["groupCondition","*groupCondition"],ISBLANK:["groupCondition","*groupCondition"],ISLITERAL:["groupCondition","*groupCondition"],ISNUMERIC:["groupCondition","*groupCondition"],VAR1:["groupCondition","*groupCondition"],VAR2:["groupCondition","*groupCondition"],SUBSTR:["groupCondition","*groupCondition"],REPLACE:["groupCondition","*groupCondition"],REGEX:["groupCondition","*groupCondition"],EXISTS:["groupCondition","*groupCondition"],NOT:["groupCondition","*groupCondition"],IRI_REF:["groupCondition","*groupCondition"],PNAME_LN:["groupCondition","*groupCondition"],PNAME_NS:["groupCondition","*groupCondition"]},"+havingCondition":{"(":["havingCondition","*havingCondition"],STR:["havingCondition","*havingCondition"],LANG:["havingCondition","*havingCondition"],LANGMATCHES:["havingCondition","*havingCondition"],DATATYPE:["havingCondition","*havingCondition"],BOUND:["havingCondition","*havingCondition"],IRI:["havingCondition","*havingCondition"],URI:["havingCondition","*havingCondition"],BNODE:["havingCondition","*havingCondition"],RAND:["havingCondition","*havingCondition"],ABS:["havingCondition","*havingCondition"],CEIL:["havingCondition","*havingCondition"],FLOOR:["havingCondition","*havingCondition"],ROUND:["havingCondition","*havingCondition"],CONCAT:["havingCondition","*havingCondition"],STRLEN:["havingCondition","*havingCondition"],UCASE:["havingCondition","*havingCondition"],LCASE:["havingCondition","*havingCondition"],ENCODE_FOR_URI:["havingCondition","*havingCondition"],CONTAINS:["havingCondition","*havingCondition"],STRSTARTS:["havingCondition","*havingCondition"],STRENDS:["havingCondition","*havingCondition"],STRBEFORE:["havingCondition","*havingCondition"],STRAFTER:["havingCondition","*havingCondition"],YEAR:["havingCondition","*havingCondition"],MONTH:["havingCondition","*havingCondition"],DAY:["havingCondition","*havingCondition"],HOURS:["havingCondition","*havingCondition"],MINUTES:["havingCondition","*havingCondition"],SECONDS:["havingCondition","*havingCondition"],TIMEZONE:["havingCondition","*havingCondition"],TZ:["havingCondition","*havingCondition"],NOW:["havingCondition","*havingCondition"],UUID:["havingCondition","*havingCondition"],STRUUID:["havingCondition","*havingCondition"],MD5:["havingCondition","*havingCondition"],SHA1:["havingCondition","*havingCondition"],SHA256:["havingCondition","*havingCondition"],SHA384:["havingCondition","*havingCondition"],SHA512:["havingCondition","*havingCondition"],COALESCE:["havingCondition","*havingCondition"],IF:["havingCondition","*havingCondition"],STRLANG:["havingCondition","*havingCondition"],STRDT:["havingCondition","*havingCondition"],SAMETERM:["havingCondition","*havingCondition"],ISIRI:["havingCondition","*havingCondition"],ISURI:["havingCondition","*havingCondition"],ISBLANK:["havingCondition","*havingCondition"],ISLITERAL:["havingCondition","*havingCondition"],ISNUMERIC:["havingCondition","*havingCondition"],SUBSTR:["havingCondition","*havingCondition"],REPLACE:["havingCondition","*havingCondition"],REGEX:["havingCondition","*havingCondition"],EXISTS:["havingCondition","*havingCondition"],NOT:["havingCondition","*havingCondition"],IRI_REF:["havingCondition","*havingCondition"],PNAME_LN:["havingCondition","*havingCondition"],PNAME_NS:["havingCondition","*havingCondition"]},"+or([var,[(,expression,AS,var,)]])":{"(":["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR1:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR2:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"]},"+orderCondition":{ASC:["orderCondition","*orderCondition"],DESC:["orderCondition","*orderCondition"],VAR1:["orderCondition","*orderCondition"],VAR2:["orderCondition","*orderCondition"],"(":["orderCondition","*orderCondition"],STR:["orderCondition","*orderCondition"],LANG:["orderCondition","*orderCondition"],LANGMATCHES:["orderCondition","*orderCondition"],DATATYPE:["orderCondition","*orderCondition"],BOUND:["orderCondition","*orderCondition"],IRI:["orderCondition","*orderCondition"],URI:["orderCondition","*orderCondition"],BNODE:["orderCondition","*orderCondition"],RAND:["orderCondition","*orderCondition"],ABS:["orderCondition","*orderCondition"],CEIL:["orderCondition","*orderCondition"],FLOOR:["orderCondition","*orderCondition"],ROUND:["orderCondition","*orderCondition"],CONCAT:["orderCondition","*orderCondition"],STRLEN:["orderCondition","*orderCondition"],UCASE:["orderCondition","*orderCondition"],LCASE:["orderCondition","*orderCondition"],ENCODE_FOR_URI:["orderCondition","*orderCondition"],CONTAINS:["orderCondition","*orderCondition"],STRSTARTS:["orderCondition","*orderCondition"],STRENDS:["orderCondition","*orderCondition"],STRBEFORE:["orderCondition","*orderCondition"],STRAFTER:["orderCondition","*orderCondition"],YEAR:["orderCondition","*orderCondition"],MONTH:["orderCondition","*orderCondition"],DAY:["orderCondition","*orderCondition"],HOURS:["orderCondition","*orderCondition"],MINUTES:["orderCondition","*orderCondition"],SECONDS:["orderCondition","*orderCondition"],TIMEZONE:["orderCondition","*orderCondition"],TZ:["orderCondition","*orderCondition"],NOW:["orderCondition","*orderCondition"],UUID:["orderCondition","*orderCondition"],STRUUID:["orderCondition","*orderCondition"],MD5:["orderCondition","*orderCondition"],SHA1:["orderCondition","*orderCondition"],SHA256:["orderCondition","*orderCondition"],SHA384:["orderCondition","*orderCondition"],SHA512:["orderCondition","*orderCondition"],COALESCE:["orderCondition","*orderCondition"],IF:["orderCondition","*orderCondition"],STRLANG:["orderCondition","*orderCondition"],STRDT:["orderCondition","*orderCondition"],SAMETERM:["orderCondition","*orderCondition"],ISIRI:["orderCondition","*orderCondition"],ISURI:["orderCondition","*orderCondition"],ISBLANK:["orderCondition","*orderCondition"],ISLITERAL:["orderCondition","*orderCondition"],ISNUMERIC:["orderCondition","*orderCondition"],SUBSTR:["orderCondition","*orderCondition"],REPLACE:["orderCondition","*orderCondition"],REGEX:["orderCondition","*orderCondition"],EXISTS:["orderCondition","*orderCondition"],NOT:["orderCondition","*orderCondition"],IRI_REF:["orderCondition","*orderCondition"],PNAME_LN:["orderCondition","*orderCondition"],PNAME_NS:["orderCondition","*orderCondition"]},"+varOrIRIref":{VAR1:["varOrIRIref","*varOrIRIref"],VAR2:["varOrIRIref","*varOrIRIref"],IRI_REF:["varOrIRIref","*varOrIRIref"],PNAME_LN:["varOrIRIref","*varOrIRIref"],PNAME_NS:["varOrIRIref","*varOrIRIref"]},"?.":{".":["."],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?DISTINCT":{DISTINCT:["DISTINCT"],"!":[],"+":[],"-":[],VAR1:[],VAR2:[],"(":[],STR:[],LANG:[],LANGMATCHES:[],DATATYPE:[],BOUND:[],IRI:[],URI:[],BNODE:[],RAND:[],ABS:[],CEIL:[],FLOOR:[],ROUND:[],CONCAT:[],STRLEN:[],UCASE:[],LCASE:[],ENCODE_FOR_URI:[],CONTAINS:[],STRSTARTS:[],STRENDS:[],STRBEFORE:[],STRAFTER:[],YEAR:[],MONTH:[],DAY:[],HOURS:[],MINUTES:[],SECONDS:[],TIMEZONE:[],TZ:[],NOW:[],UUID:[],STRUUID:[],MD5:[],SHA1:[],SHA256:[],SHA384:[],SHA512:[],COALESCE:[],IF:[],STRLANG:[],STRDT:[],SAMETERM:[],ISIRI:[],ISURI:[],ISBLANK:[],ISLITERAL:[],ISNUMERIC:[],TRUE:[],FALSE:[],COUNT:[],SUM:[],MIN:[],MAX:[],AVG:[],SAMPLE:[],GROUP_CONCAT:[],SUBSTR:[],REPLACE:[],REGEX:[],EXISTS:[],NOT:[],IRI_REF:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],PNAME_LN:[],PNAME_NS:[],"*":[]},"?GRAPH":{GRAPH:["GRAPH"],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT":{SILENT:["SILENT"],VAR1:[],VAR2:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT_1":{SILENT:["SILENT"],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT_2":{SILENT:["SILENT"],GRAPH:[],DEFAULT:[],NAMED:[],ALL:[]},"?SILENT_3":{SILENT:["SILENT"],GRAPH:[]},"?SILENT_4":{SILENT:["SILENT"],DEFAULT:[],GRAPH:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?WHERE":{WHERE:["WHERE"],"{":[]},"?[,,expression]":{",":["[,,expression]"],")":[]},"?[.,?constructTriples]":{".":["[.,?constructTriples]"],"}":[]},"?[.,?triplesBlock]":{".":["[.,?triplesBlock]"],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?[.,?triplesTemplate]":{".":["[.,?triplesTemplate]"],"}":[],GRAPH:[]},"?[;,SEPARATOR,=,string]":{";":["[;,SEPARATOR,=,string]"],")":[]},"?[;,update]":{";":["[;,update]"],$:[]},"?[AS,var]":{AS:["[AS,var]"],")":[]},"?[INTO,graphRef]":{INTO:["[INTO,graphRef]"],";":[],$:[]},"?[or([verbPath,verbSimple]),objectListPath]":{VAR1:["[or([verbPath,verbSimple]),objectListPath]"],VAR2:["[or([verbPath,verbSimple]),objectListPath]"],"^":["[or([verbPath,verbSimple]),objectListPath]"],a:["[or([verbPath,verbSimple]),objectListPath]"],"!":["[or([verbPath,verbSimple]),objectListPath]"],"(":["[or([verbPath,verbSimple]),objectListPath]"],IRI_REF:["[or([verbPath,verbSimple]),objectListPath]"],PNAME_LN:["[or([verbPath,verbSimple]),objectListPath]"],PNAME_NS:["[or([verbPath,verbSimple]),objectListPath]"],";":[],".":[],"]":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?[pathOneInPropertySet,*[|,pathOneInPropertySet]]":{a:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],"^":["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],IRI_REF:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],PNAME_LN:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],PNAME_NS:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],")":[]},"?[update1,?[;,update]]":{INSERT:["[update1,?[;,update]]"],DELETE:["[update1,?[;,update]]"],LOAD:["[update1,?[;,update]]"],CLEAR:["[update1,?[;,update]]"],DROP:["[update1,?[;,update]]"],ADD:["[update1,?[;,update]]"],MOVE:["[update1,?[;,update]]"],COPY:["[update1,?[;,update]]"],CREATE:["[update1,?[;,update]]"],WITH:["[update1,?[;,update]]"],$:[]},"?[verb,objectList]":{a:["[verb,objectList]"],VAR1:["[verb,objectList]"],VAR2:["[verb,objectList]"],IRI_REF:["[verb,objectList]"],PNAME_LN:["[verb,objectList]"],PNAME_NS:["[verb,objectList]"],";":[],".":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"?argList":{NIL:["argList"],"(":["argList"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],"*":[],"/":[],";":[]},"?constructTriples":{VAR1:["constructTriples"],VAR2:["constructTriples"],NIL:["constructTriples"],"(":["constructTriples"],"[":["constructTriples"],IRI_REF:["constructTriples"],TRUE:["constructTriples"],FALSE:["constructTriples"],BLANK_NODE_LABEL:["constructTriples"],ANON:["constructTriples"],PNAME_LN:["constructTriples"],PNAME_NS:["constructTriples"],STRING_LITERAL1:["constructTriples"],STRING_LITERAL2:["constructTriples"],STRING_LITERAL_LONG1:["constructTriples"],STRING_LITERAL_LONG2:["constructTriples"],INTEGER:["constructTriples"],DECIMAL:["constructTriples"],DOUBLE:["constructTriples"],INTEGER_POSITIVE:["constructTriples"],DECIMAL_POSITIVE:["constructTriples"],DOUBLE_POSITIVE:["constructTriples"],INTEGER_NEGATIVE:["constructTriples"],DECIMAL_NEGATIVE:["constructTriples"],DOUBLE_NEGATIVE:["constructTriples"],"}":[]},"?groupClause":{GROUP:["groupClause"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],HAVING:[],$:[],"}":[]},"?havingClause":{HAVING:["havingClause"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],$:[],"}":[]},"?insertClause":{INSERT:["insertClause"],WHERE:[],USING:[]},"?limitClause":{LIMIT:["limitClause"],VALUES:[],$:[],"}":[]},"?limitOffsetClauses":{LIMIT:["limitOffsetClauses"],OFFSET:["limitOffsetClauses"],VALUES:[],$:[],"}":[]},"?offsetClause":{OFFSET:["offsetClause"],VALUES:[],$:[],"}":[]},"?or([DISTINCT,REDUCED])":{DISTINCT:["or([DISTINCT,REDUCED])"],REDUCED:["or([DISTINCT,REDUCED])"],"*":[],"(":[],VAR1:[],VAR2:[]},"?or([LANGTAG,[^^,iriRef]])":{LANGTAG:["or([LANGTAG,[^^,iriRef]])"],"^^":["or([LANGTAG,[^^,iriRef]])"],UNDEF:[],IRI_REF:[],TRUE:[],FALSE:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],a:[],VAR1:[],VAR2:[],"^":[],"!":[],"(":[],".":[],";":[],",":[],AS:[],")":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],"*":[],"/":[],"}":[],"[":[],NIL:[],BLANK_NODE_LABEL:[],ANON:[],"]":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"?or([[*,unaryExpression],[/,unaryExpression]])":{"*":["or([[*,unaryExpression],[/,unaryExpression]])"],"/":["or([[*,unaryExpression],[/,unaryExpression]])"],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],";":[]},"?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])":{"=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"!=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"<":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],">":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"<=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],">=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IN:["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOT:["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],AS:[],")":[],",":[],"||":[],"&&":[],";":[]},"?orderClause":{ORDER:["orderClause"],VALUES:[],LIMIT:[],OFFSET:[],$:[],"}":[]},"?pathMod":{"*":["pathMod"],"?":["pathMod"],"+":["pathMod"],"{":["pathMod"],"|":[],"/":[],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"?triplesBlock":{VAR1:["triplesBlock"],VAR2:["triplesBlock"],NIL:["triplesBlock"],"(":["triplesBlock"],"[":["triplesBlock"],IRI_REF:["triplesBlock"],TRUE:["triplesBlock"],FALSE:["triplesBlock"],BLANK_NODE_LABEL:["triplesBlock"],ANON:["triplesBlock"],PNAME_LN:["triplesBlock"],PNAME_NS:["triplesBlock"],STRING_LITERAL1:["triplesBlock"],STRING_LITERAL2:["triplesBlock"],STRING_LITERAL_LONG1:["triplesBlock"],STRING_LITERAL_LONG2:["triplesBlock"],INTEGER:["triplesBlock"],DECIMAL:["triplesBlock"],DOUBLE:["triplesBlock"],INTEGER_POSITIVE:["triplesBlock"],DECIMAL_POSITIVE:["triplesBlock"],DOUBLE_POSITIVE:["triplesBlock"],INTEGER_NEGATIVE:["triplesBlock"],DECIMAL_NEGATIVE:["triplesBlock"],DOUBLE_NEGATIVE:["triplesBlock"],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?triplesTemplate":{VAR1:["triplesTemplate"],VAR2:["triplesTemplate"],NIL:["triplesTemplate"],"(":["triplesTemplate"],"[":["triplesTemplate"],IRI_REF:["triplesTemplate"],TRUE:["triplesTemplate"],FALSE:["triplesTemplate"],BLANK_NODE_LABEL:["triplesTemplate"],ANON:["triplesTemplate"],PNAME_LN:["triplesTemplate"],PNAME_NS:["triplesTemplate"],STRING_LITERAL1:["triplesTemplate"],STRING_LITERAL2:["triplesTemplate"],STRING_LITERAL_LONG1:["triplesTemplate"],STRING_LITERAL_LONG2:["triplesTemplate"],INTEGER:["triplesTemplate"],DECIMAL:["triplesTemplate"],DOUBLE:["triplesTemplate"],INTEGER_POSITIVE:["triplesTemplate"],DECIMAL_POSITIVE:["triplesTemplate"],DOUBLE_POSITIVE:["triplesTemplate"],INTEGER_NEGATIVE:["triplesTemplate"],DECIMAL_NEGATIVE:["triplesTemplate"],DOUBLE_NEGATIVE:["triplesTemplate"],"}":[],GRAPH:[]},"?whereClause":{WHERE:["whereClause"],"{":["whereClause"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],VALUES:[],$:[]},"[!=,numericExpression]":{"!=":["!=","numericExpression"]},"[&&,valueLogical]":{"&&":["&&","valueLogical"]},"[(,*dataBlockValue,)]":{"(":["(","*dataBlockValue",")"]},"[(,*var,)]":{"(":["(","*var",")"]},"[(,expression,)]":{"(":["(","expression",")"]},"[(,expression,AS,var,)]":{"(":["(","expression","AS","var",")"]},"[*,unaryExpression]":{"*":["*","unaryExpression"]},"[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]":{WHERE:["*datasetClause","WHERE","{","?triplesTemplate","}","solutionModifier"],FROM:["*datasetClause","WHERE","{","?triplesTemplate","}","solutionModifier"]},"[+,multiplicativeExpression]":{"+":["+","multiplicativeExpression"]},"[,,expression]":{",":[",","expression"]},"[,,integer,}]":{",":[",","integer","}"]},"[,,objectPath]":{",":[",","objectPath"]},"[,,object]":{",":[",","object"]},"[,,or([},[integer,}]])]":{",":[",","or([},[integer,}]])"]},"[-,multiplicativeExpression]":{"-":["-","multiplicativeExpression"]},"[.,?constructTriples]":{".":[".","?constructTriples"]},"[.,?triplesBlock]":{".":[".","?triplesBlock"]},"[.,?triplesTemplate]":{".":[".","?triplesTemplate"]},"[/,pathEltOrInverse]":{"/":["/","pathEltOrInverse"]},"[/,unaryExpression]":{"/":["/","unaryExpression"]},"[;,?[or([verbPath,verbSimple]),objectListPath]]":{";":[";","?[or([verbPath,verbSimple]),objectListPath]"]},"[;,?[verb,objectList]]":{";":[";","?[verb,objectList]"]},"[;,SEPARATOR,=,string]":{";":[";","SEPARATOR","=","string"]},"[;,update]":{";":[";","update"]},"[<,numericExpression]":{"<":["<","numericExpression"]},"[<=,numericExpression]":{"<=":["<=","numericExpression"]},"[=,numericExpression]":{"=":["=","numericExpression"]},"[>,numericExpression]":{">":[">","numericExpression"]},"[>=,numericExpression]":{">=":[">=","numericExpression"]},"[AS,var]":{AS:["AS","var"]},"[IN,expressionList]":{IN:["IN","expressionList"]},"[INTO,graphRef]":{INTO:["INTO","graphRef"]},"[NAMED,iriRef]":{NAMED:["NAMED","iriRef"]},"[NOT,IN,expressionList]":{NOT:["NOT","IN","expressionList"]},"[UNION,groupGraphPattern]":{UNION:["UNION","groupGraphPattern"]},"[^^,iriRef]":{"^^":["^^","iriRef"]},"[constructTemplate,*datasetClause,whereClause,solutionModifier]":{"{":["constructTemplate","*datasetClause","whereClause","solutionModifier"]},"[deleteClause,?insertClause]":{DELETE:["deleteClause","?insertClause"]},"[graphPatternNotTriples,?.,?triplesBlock]":{"{":["graphPatternNotTriples","?.","?triplesBlock"],OPTIONAL:["graphPatternNotTriples","?.","?triplesBlock"],MINUS:["graphPatternNotTriples","?.","?triplesBlock"],GRAPH:["graphPatternNotTriples","?.","?triplesBlock"],SERVICE:["graphPatternNotTriples","?.","?triplesBlock"],FILTER:["graphPatternNotTriples","?.","?triplesBlock"],BIND:["graphPatternNotTriples","?.","?triplesBlock"],VALUES:["graphPatternNotTriples","?.","?triplesBlock"]},"[integer,or([[,,or([},[integer,}]])],}])]":{INTEGER:["integer","or([[,,or([},[integer,}]])],}])"]},"[integer,}]":{INTEGER:["integer","}"]},"[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]":{INTEGER_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"]},"[or([verbPath,verbSimple]),objectListPath]":{VAR1:["or([verbPath,verbSimple])","objectListPath"],VAR2:["or([verbPath,verbSimple])","objectListPath"],"^":["or([verbPath,verbSimple])","objectListPath"],a:["or([verbPath,verbSimple])","objectListPath"],"!":["or([verbPath,verbSimple])","objectListPath"],"(":["or([verbPath,verbSimple])","objectListPath"],IRI_REF:["or([verbPath,verbSimple])","objectListPath"],PNAME_LN:["or([verbPath,verbSimple])","objectListPath"],PNAME_NS:["or([verbPath,verbSimple])","objectListPath"]},"[pathOneInPropertySet,*[|,pathOneInPropertySet]]":{a:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],"^":["pathOneInPropertySet","*[|,pathOneInPropertySet]"],IRI_REF:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],PNAME_LN:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],PNAME_NS:["pathOneInPropertySet","*[|,pathOneInPropertySet]"]},"[quadsNotTriples,?.,?triplesTemplate]":{GRAPH:["quadsNotTriples","?.","?triplesTemplate"]},"[update1,?[;,update]]":{INSERT:["update1","?[;,update]"],DELETE:["update1","?[;,update]"],LOAD:["update1","?[;,update]"],CLEAR:["update1","?[;,update]"],DROP:["update1","?[;,update]"],ADD:["update1","?[;,update]"],MOVE:["update1","?[;,update]"],COPY:["update1","?[;,update]"],CREATE:["update1","?[;,update]"],WITH:["update1","?[;,update]"]},"[verb,objectList]":{a:["verb","objectList"],VAR1:["verb","objectList"],VAR2:["verb","objectList"],IRI_REF:["verb","objectList"],PNAME_LN:["verb","objectList"],PNAME_NS:["verb","objectList"]},"[|,pathOneInPropertySet]":{"|":["|","pathOneInPropertySet"]},"[|,pathSequence]":{"|":["|","pathSequence"]},"[||,conditionalAndExpression]":{"||":["||","conditionalAndExpression"]},add:{ADD:["ADD","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},additiveExpression:{"!":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"+":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"-":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],VAR1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],VAR2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"(":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LANG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LANGMATCHES:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DATATYPE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],BOUND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IRI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],URI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],BNODE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],RAND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ABS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CEIL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],FLOOR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ROUND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CONCAT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRLEN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],UCASE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LCASE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ENCODE_FOR_URI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CONTAINS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRSTARTS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRENDS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRBEFORE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRAFTER:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],YEAR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MONTH:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DAY:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],HOURS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MINUTES:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SECONDS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TIMEZONE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TZ:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],NOW:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],UUID:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRUUID:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MD5:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA256:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA384:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA512:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],COALESCE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IF:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRLANG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRDT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SAMETERM:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISIRI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISURI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISBLANK:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISLITERAL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISNUMERIC:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TRUE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],FALSE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],COUNT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SUM:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MIN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MAX:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],AVG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SAMPLE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],GROUP_CONCAT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SUBSTR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],REPLACE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],REGEX:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],EXISTS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],NOT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IRI_REF:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL_LONG1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL_LONG2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],PNAME_LN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],PNAME_NS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"]},aggregate:{COUNT:["COUNT","(","?DISTINCT","or([*,expression])",")"],SUM:["SUM","(","?DISTINCT","expression",")"],MIN:["MIN","(","?DISTINCT","expression",")"],MAX:["MAX","(","?DISTINCT","expression",")"],AVG:["AVG","(","?DISTINCT","expression",")"],SAMPLE:["SAMPLE","(","?DISTINCT","expression",")"],GROUP_CONCAT:["GROUP_CONCAT","(","?DISTINCT","expression","?[;,SEPARATOR,=,string]",")"]},allowBnodes:{"}":[]},allowVars:{"}":[]},argList:{NIL:["NIL"],"(":["(","?DISTINCT","expression","*[,,expression]",")"]},askQuery:{ASK:["ASK","*datasetClause","whereClause","solutionModifier"]},baseDecl:{BASE:["BASE","IRI_REF"]},bind:{BIND:["BIND","(","expression","AS","var",")"]},blankNode:{BLANK_NODE_LABEL:["BLANK_NODE_LABEL"],ANON:["ANON"]},blankNodePropertyList:{"[":["[","propertyListNotEmpty","]"]},blankNodePropertyListPath:{"[":["[","propertyListPathNotEmpty","]"]},booleanLiteral:{TRUE:["TRUE"],FALSE:["FALSE"]},brackettedExpression:{"(":["(","expression",")"]},builtInCall:{STR:["STR","(","expression",")"],LANG:["LANG","(","expression",")"],LANGMATCHES:["LANGMATCHES","(","expression",",","expression",")"],DATATYPE:["DATATYPE","(","expression",")"],BOUND:["BOUND","(","var",")"],IRI:["IRI","(","expression",")"],URI:["URI","(","expression",")"],BNODE:["BNODE","or([[(,expression,)],NIL])"],RAND:["RAND","or([[(,expression,)],NIL])"],ABS:["ABS","(","expression",")"],CEIL:["CEIL","(","expression",")"],FLOOR:["FLOOR","(","expression",")"],ROUND:["ROUND","(","expression",")"],CONCAT:["CONCAT","expressionList"],SUBSTR:["substringExpression"],STRLEN:["STRLEN","(","expression",")"],REPLACE:["strReplaceExpression"],UCASE:["UCASE","(","expression",")"],LCASE:["LCASE","(","expression",")"],ENCODE_FOR_URI:["ENCODE_FOR_URI","(","expression",")"],CONTAINS:["CONTAINS","(","expression",",","expression",")"],STRSTARTS:["STRSTARTS","(","expression",",","expression",")"],STRENDS:["STRENDS","(","expression",",","expression",")"],STRBEFORE:["STRBEFORE","(","expression",",","expression",")"],STRAFTER:["STRAFTER","(","expression",",","expression",")"],YEAR:["YEAR","(","expression",")"],MONTH:["MONTH","(","expression",")"],DAY:["DAY","(","expression",")"],HOURS:["HOURS","(","expression",")"],MINUTES:["MINUTES","(","expression",")"],SECONDS:["SECONDS","(","expression",")"],TIMEZONE:["TIMEZONE","(","expression",")"],TZ:["TZ","(","expression",")"],NOW:["NOW","NIL"],UUID:["UUID","NIL"],STRUUID:["STRUUID","NIL"],MD5:["MD5","(","expression",")"],SHA1:["SHA1","(","expression",")"],SHA256:["SHA256","(","expression",")"],SHA384:["SHA384","(","expression",")"],SHA512:["SHA512","(","expression",")"],COALESCE:["COALESCE","expressionList"],IF:["IF","(","expression",",","expression",",","expression",")"],STRLANG:["STRLANG","(","expression",",","expression",")"],STRDT:["STRDT","(","expression",",","expression",")"],SAMETERM:["SAMETERM","(","expression",",","expression",")"],ISIRI:["ISIRI","(","expression",")"],ISURI:["ISURI","(","expression",")"],ISBLANK:["ISBLANK","(","expression",")"],ISLITERAL:["ISLITERAL","(","expression",")"],ISNUMERIC:["ISNUMERIC","(","expression",")"],REGEX:["regexExpression"],EXISTS:["existsFunc"],NOT:["notExistsFunc"]},clear:{CLEAR:["CLEAR","?SILENT_2","graphRefAll"]},collection:{"(":["(","+graphNode",")"]},collectionPath:{"(":["(","+graphNodePath",")"]},conditionalAndExpression:{"!":["valueLogical","*[&&,valueLogical]"],"+":["valueLogical","*[&&,valueLogical]"],"-":["valueLogical","*[&&,valueLogical]"],VAR1:["valueLogical","*[&&,valueLogical]"],VAR2:["valueLogical","*[&&,valueLogical]"],"(":["valueLogical","*[&&,valueLogical]"],STR:["valueLogical","*[&&,valueLogical]"],LANG:["valueLogical","*[&&,valueLogical]"],LANGMATCHES:["valueLogical","*[&&,valueLogical]"],DATATYPE:["valueLogical","*[&&,valueLogical]"],BOUND:["valueLogical","*[&&,valueLogical]"],IRI:["valueLogical","*[&&,valueLogical]"],URI:["valueLogical","*[&&,valueLogical]"],BNODE:["valueLogical","*[&&,valueLogical]"],RAND:["valueLogical","*[&&,valueLogical]"],ABS:["valueLogical","*[&&,valueLogical]"],CEIL:["valueLogical","*[&&,valueLogical]"],FLOOR:["valueLogical","*[&&,valueLogical]"],ROUND:["valueLogical","*[&&,valueLogical]"],CONCAT:["valueLogical","*[&&,valueLogical]"],STRLEN:["valueLogical","*[&&,valueLogical]"],UCASE:["valueLogical","*[&&,valueLogical]"],LCASE:["valueLogical","*[&&,valueLogical]"],ENCODE_FOR_URI:["valueLogical","*[&&,valueLogical]"],CONTAINS:["valueLogical","*[&&,valueLogical]"],STRSTARTS:["valueLogical","*[&&,valueLogical]"],STRENDS:["valueLogical","*[&&,valueLogical]"],STRBEFORE:["valueLogical","*[&&,valueLogical]"],STRAFTER:["valueLogical","*[&&,valueLogical]"],YEAR:["valueLogical","*[&&,valueLogical]"],MONTH:["valueLogical","*[&&,valueLogical]"],DAY:["valueLogical","*[&&,valueLogical]"],HOURS:["valueLogical","*[&&,valueLogical]"],MINUTES:["valueLogical","*[&&,valueLogical]"],SECONDS:["valueLogical","*[&&,valueLogical]"],TIMEZONE:["valueLogical","*[&&,valueLogical]"],TZ:["valueLogical","*[&&,valueLogical]"],NOW:["valueLogical","*[&&,valueLogical]"],UUID:["valueLogical","*[&&,valueLogical]"],STRUUID:["valueLogical","*[&&,valueLogical]"],MD5:["valueLogical","*[&&,valueLogical]"],SHA1:["valueLogical","*[&&,valueLogical]"],SHA256:["valueLogical","*[&&,valueLogical]"],SHA384:["valueLogical","*[&&,valueLogical]"],SHA512:["valueLogical","*[&&,valueLogical]"],COALESCE:["valueLogical","*[&&,valueLogical]"],IF:["valueLogical","*[&&,valueLogical]"],STRLANG:["valueLogical","*[&&,valueLogical]"],STRDT:["valueLogical","*[&&,valueLogical]"],SAMETERM:["valueLogical","*[&&,valueLogical]"],ISIRI:["valueLogical","*[&&,valueLogical]"],ISURI:["valueLogical","*[&&,valueLogical]"],ISBLANK:["valueLogical","*[&&,valueLogical]"],ISLITERAL:["valueLogical","*[&&,valueLogical]"],ISNUMERIC:["valueLogical","*[&&,valueLogical]"],TRUE:["valueLogical","*[&&,valueLogical]"],FALSE:["valueLogical","*[&&,valueLogical]"],COUNT:["valueLogical","*[&&,valueLogical]"],SUM:["valueLogical","*[&&,valueLogical]"],MIN:["valueLogical","*[&&,valueLogical]"],MAX:["valueLogical","*[&&,valueLogical]"],AVG:["valueLogical","*[&&,valueLogical]"],SAMPLE:["valueLogical","*[&&,valueLogical]"],GROUP_CONCAT:["valueLogical","*[&&,valueLogical]"],SUBSTR:["valueLogical","*[&&,valueLogical]"],REPLACE:["valueLogical","*[&&,valueLogical]"],REGEX:["valueLogical","*[&&,valueLogical]"],EXISTS:["valueLogical","*[&&,valueLogical]"],NOT:["valueLogical","*[&&,valueLogical]"],IRI_REF:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL1:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL2:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL_LONG1:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL_LONG2:["valueLogical","*[&&,valueLogical]"],INTEGER:["valueLogical","*[&&,valueLogical]"],DECIMAL:["valueLogical","*[&&,valueLogical]"],DOUBLE:["valueLogical","*[&&,valueLogical]"],INTEGER_POSITIVE:["valueLogical","*[&&,valueLogical]"],DECIMAL_POSITIVE:["valueLogical","*[&&,valueLogical]"],DOUBLE_POSITIVE:["valueLogical","*[&&,valueLogical]"],INTEGER_NEGATIVE:["valueLogical","*[&&,valueLogical]"],DECIMAL_NEGATIVE:["valueLogical","*[&&,valueLogical]"],DOUBLE_NEGATIVE:["valueLogical","*[&&,valueLogical]"],PNAME_LN:["valueLogical","*[&&,valueLogical]"],PNAME_NS:["valueLogical","*[&&,valueLogical]"]},conditionalOrExpression:{"!":["conditionalAndExpression","*[||,conditionalAndExpression]"],"+":["conditionalAndExpression","*[||,conditionalAndExpression]"],"-":["conditionalAndExpression","*[||,conditionalAndExpression]"],VAR1:["conditionalAndExpression","*[||,conditionalAndExpression]"],VAR2:["conditionalAndExpression","*[||,conditionalAndExpression]"],"(":["conditionalAndExpression","*[||,conditionalAndExpression]"],STR:["conditionalAndExpression","*[||,conditionalAndExpression]"],LANG:["conditionalAndExpression","*[||,conditionalAndExpression]"],LANGMATCHES:["conditionalAndExpression","*[||,conditionalAndExpression]"],DATATYPE:["conditionalAndExpression","*[||,conditionalAndExpression]"],BOUND:["conditionalAndExpression","*[||,conditionalAndExpression]"],IRI:["conditionalAndExpression","*[||,conditionalAndExpression]"],URI:["conditionalAndExpression","*[||,conditionalAndExpression]"],BNODE:["conditionalAndExpression","*[||,conditionalAndExpression]"],RAND:["conditionalAndExpression","*[||,conditionalAndExpression]"],ABS:["conditionalAndExpression","*[||,conditionalAndExpression]"],CEIL:["conditionalAndExpression","*[||,conditionalAndExpression]"],FLOOR:["conditionalAndExpression","*[||,conditionalAndExpression]"],ROUND:["conditionalAndExpression","*[||,conditionalAndExpression]"],CONCAT:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRLEN:["conditionalAndExpression","*[||,conditionalAndExpression]"],UCASE:["conditionalAndExpression","*[||,conditionalAndExpression]"],LCASE:["conditionalAndExpression","*[||,conditionalAndExpression]"],ENCODE_FOR_URI:["conditionalAndExpression","*[||,conditionalAndExpression]"],CONTAINS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRSTARTS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRENDS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRBEFORE:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRAFTER:["conditionalAndExpression","*[||,conditionalAndExpression]"],YEAR:["conditionalAndExpression","*[||,conditionalAndExpression]"],MONTH:["conditionalAndExpression","*[||,conditionalAndExpression]"],DAY:["conditionalAndExpression","*[||,conditionalAndExpression]"],HOURS:["conditionalAndExpression","*[||,conditionalAndExpression]"],MINUTES:["conditionalAndExpression","*[||,conditionalAndExpression]"],SECONDS:["conditionalAndExpression","*[||,conditionalAndExpression]"],TIMEZONE:["conditionalAndExpression","*[||,conditionalAndExpression]"],TZ:["conditionalAndExpression","*[||,conditionalAndExpression]"],NOW:["conditionalAndExpression","*[||,conditionalAndExpression]"],UUID:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRUUID:["conditionalAndExpression","*[||,conditionalAndExpression]"],MD5:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA1:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA256:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA384:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA512:["conditionalAndExpression","*[||,conditionalAndExpression]"],COALESCE:["conditionalAndExpression","*[||,conditionalAndExpression]"],IF:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRLANG:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRDT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SAMETERM:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISIRI:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISURI:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISBLANK:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISLITERAL:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISNUMERIC:["conditionalAndExpression","*[||,conditionalAndExpression]"],TRUE:["conditionalAndExpression","*[||,conditionalAndExpression]"],FALSE:["conditionalAndExpression","*[||,conditionalAndExpression]"],COUNT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SUM:["conditionalAndExpression","*[||,conditionalAndExpression]"],MIN:["conditionalAndExpression","*[||,conditionalAndExpression]"],MAX:["conditionalAndExpression","*[||,conditionalAndExpression]"],AVG:["conditionalAndExpression","*[||,conditionalAndExpression]"],SAMPLE:["conditionalAndExpression","*[||,conditionalAndExpression]"],GROUP_CONCAT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SUBSTR:["conditionalAndExpression","*[||,conditionalAndExpression]"],REPLACE:["conditionalAndExpression","*[||,conditionalAndExpression]"],REGEX:["conditionalAndExpression","*[||,conditionalAndExpression]"],EXISTS:["conditionalAndExpression","*[||,conditionalAndExpression]"],NOT:["conditionalAndExpression","*[||,conditionalAndExpression]"],IRI_REF:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL1:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL2:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL_LONG1:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL_LONG2:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],PNAME_LN:["conditionalAndExpression","*[||,conditionalAndExpression]"],PNAME_NS:["conditionalAndExpression","*[||,conditionalAndExpression]"]},constraint:{"(":["brackettedExpression"],STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["functionCall"],PNAME_LN:["functionCall"],PNAME_NS:["functionCall"]},constructQuery:{CONSTRUCT:["CONSTRUCT","or([[constructTemplate,*datasetClause,whereClause,solutionModifier],[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]])"]},constructTemplate:{"{":["{","?constructTriples","}"]},constructTriples:{VAR1:["triplesSameSubject","?[.,?constructTriples]"],VAR2:["triplesSameSubject","?[.,?constructTriples]"],NIL:["triplesSameSubject","?[.,?constructTriples]"],"(":["triplesSameSubject","?[.,?constructTriples]"],"[":["triplesSameSubject","?[.,?constructTriples]"],IRI_REF:["triplesSameSubject","?[.,?constructTriples]"],TRUE:["triplesSameSubject","?[.,?constructTriples]"],FALSE:["triplesSameSubject","?[.,?constructTriples]"],BLANK_NODE_LABEL:["triplesSameSubject","?[.,?constructTriples]"],ANON:["triplesSameSubject","?[.,?constructTriples]"],PNAME_LN:["triplesSameSubject","?[.,?constructTriples]"],PNAME_NS:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL1:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL2:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL_LONG1:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL_LONG2:["triplesSameSubject","?[.,?constructTriples]"],INTEGER:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE:["triplesSameSubject","?[.,?constructTriples]"],INTEGER_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],INTEGER_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"]},copy:{COPY:["COPY","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},create:{CREATE:["CREATE","?SILENT_3","graphRef"]},dataBlock:{NIL:["or([inlineDataOneVar,inlineDataFull])"],"(":["or([inlineDataOneVar,inlineDataFull])"],VAR1:["or([inlineDataOneVar,inlineDataFull])"],VAR2:["or([inlineDataOneVar,inlineDataFull])"]},dataBlockValue:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],UNDEF:["UNDEF"]},datasetClause:{FROM:["FROM","or([defaultGraphClause,namedGraphClause])"]},defaultGraphClause:{IRI_REF:["sourceSelector"],PNAME_LN:["sourceSelector"],PNAME_NS:["sourceSelector"]},delete1:{DATA:["DATA","quadDataNoBnodes"],WHERE:["WHERE","quadPatternNoBnodes"],"{":["quadPatternNoBnodes","?insertClause","*usingClause","WHERE","groupGraphPattern"]},deleteClause:{DELETE:["DELETE","quadPattern"]},describeDatasetClause:{FROM:["FROM","or([defaultGraphClause,namedGraphClause])"]},describeQuery:{DESCRIBE:["DESCRIBE","or([+varOrIRIref,*])","*describeDatasetClause","?whereClause","solutionModifier"]},disallowBnodes:{"}":[],GRAPH:[],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},disallowVars:{"}":[],GRAPH:[],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},drop:{DROP:["DROP","?SILENT_2","graphRefAll"]},existsFunc:{EXISTS:["EXISTS","groupGraphPattern"]},expression:{"!":["conditionalOrExpression"],"+":["conditionalOrExpression"],"-":["conditionalOrExpression"],VAR1:["conditionalOrExpression"],VAR2:["conditionalOrExpression"],"(":["conditionalOrExpression"],STR:["conditionalOrExpression"],LANG:["conditionalOrExpression"],LANGMATCHES:["conditionalOrExpression"],DATATYPE:["conditionalOrExpression"],BOUND:["conditionalOrExpression"],IRI:["conditionalOrExpression"],URI:["conditionalOrExpression"],BNODE:["conditionalOrExpression"],RAND:["conditionalOrExpression"],ABS:["conditionalOrExpression"],CEIL:["conditionalOrExpression"],FLOOR:["conditionalOrExpression"],ROUND:["conditionalOrExpression"],CONCAT:["conditionalOrExpression"],STRLEN:["conditionalOrExpression"],UCASE:["conditionalOrExpression"],LCASE:["conditionalOrExpression"],ENCODE_FOR_URI:["conditionalOrExpression"],CONTAINS:["conditionalOrExpression"],STRSTARTS:["conditionalOrExpression"],STRENDS:["conditionalOrExpression"],STRBEFORE:["conditionalOrExpression"],STRAFTER:["conditionalOrExpression"],YEAR:["conditionalOrExpression"],MONTH:["conditionalOrExpression"],DAY:["conditionalOrExpression"],HOURS:["conditionalOrExpression"],MINUTES:["conditionalOrExpression"],SECONDS:["conditionalOrExpression"],TIMEZONE:["conditionalOrExpression"],TZ:["conditionalOrExpression"],NOW:["conditionalOrExpression"],UUID:["conditionalOrExpression"],STRUUID:["conditionalOrExpression"],MD5:["conditionalOrExpression"],SHA1:["conditionalOrExpression"],SHA256:["conditionalOrExpression"],SHA384:["conditionalOrExpression"],SHA512:["conditionalOrExpression"],COALESCE:["conditionalOrExpression"],IF:["conditionalOrExpression"],STRLANG:["conditionalOrExpression"],STRDT:["conditionalOrExpression"],SAMETERM:["conditionalOrExpression"],ISIRI:["conditionalOrExpression"],ISURI:["conditionalOrExpression"],ISBLANK:["conditionalOrExpression"],ISLITERAL:["conditionalOrExpression"],ISNUMERIC:["conditionalOrExpression"],TRUE:["conditionalOrExpression"],FALSE:["conditionalOrExpression"],COUNT:["conditionalOrExpression"],SUM:["conditionalOrExpression"],MIN:["conditionalOrExpression"],MAX:["conditionalOrExpression"],AVG:["conditionalOrExpression"],SAMPLE:["conditionalOrExpression"],GROUP_CONCAT:["conditionalOrExpression"],SUBSTR:["conditionalOrExpression"],REPLACE:["conditionalOrExpression"],REGEX:["conditionalOrExpression"],EXISTS:["conditionalOrExpression"],NOT:["conditionalOrExpression"],IRI_REF:["conditionalOrExpression"],STRING_LITERAL1:["conditionalOrExpression"],STRING_LITERAL2:["conditionalOrExpression"],STRING_LITERAL_LONG1:["conditionalOrExpression"],STRING_LITERAL_LONG2:["conditionalOrExpression"],INTEGER:["conditionalOrExpression"],DECIMAL:["conditionalOrExpression"],DOUBLE:["conditionalOrExpression"],INTEGER_POSITIVE:["conditionalOrExpression"],DECIMAL_POSITIVE:["conditionalOrExpression"],DOUBLE_POSITIVE:["conditionalOrExpression"],INTEGER_NEGATIVE:["conditionalOrExpression"],DECIMAL_NEGATIVE:["conditionalOrExpression"],DOUBLE_NEGATIVE:["conditionalOrExpression"],PNAME_LN:["conditionalOrExpression"],PNAME_NS:["conditionalOrExpression"]},expressionList:{NIL:["NIL"],"(":["(","expression","*[,,expression]",")"]},filter:{FILTER:["FILTER","constraint"]},functionCall:{IRI_REF:["iriRef","argList"],PNAME_LN:["iriRef","argList"],PNAME_NS:["iriRef","argList"]},graphGraphPattern:{GRAPH:["GRAPH","varOrIRIref","groupGraphPattern"]},graphNode:{VAR1:["varOrTerm"],VAR2:["varOrTerm"],NIL:["varOrTerm"],IRI_REF:["varOrTerm"],TRUE:["varOrTerm"],FALSE:["varOrTerm"],BLANK_NODE_LABEL:["varOrTerm"],ANON:["varOrTerm"],PNAME_LN:["varOrTerm"],PNAME_NS:["varOrTerm"],STRING_LITERAL1:["varOrTerm"],STRING_LITERAL2:["varOrTerm"],STRING_LITERAL_LONG1:["varOrTerm"],STRING_LITERAL_LONG2:["varOrTerm"],INTEGER:["varOrTerm"],DECIMAL:["varOrTerm"],DOUBLE:["varOrTerm"],INTEGER_POSITIVE:["varOrTerm"],DECIMAL_POSITIVE:["varOrTerm"],DOUBLE_POSITIVE:["varOrTerm"],INTEGER_NEGATIVE:["varOrTerm"],DECIMAL_NEGATIVE:["varOrTerm"],DOUBLE_NEGATIVE:["varOrTerm"],"(":["triplesNode"],"[":["triplesNode"]},graphNodePath:{VAR1:["varOrTerm"],VAR2:["varOrTerm"],NIL:["varOrTerm"],IRI_REF:["varOrTerm"],TRUE:["varOrTerm"],FALSE:["varOrTerm"],BLANK_NODE_LABEL:["varOrTerm"],ANON:["varOrTerm"],PNAME_LN:["varOrTerm"],PNAME_NS:["varOrTerm"],STRING_LITERAL1:["varOrTerm"],STRING_LITERAL2:["varOrTerm"],STRING_LITERAL_LONG1:["varOrTerm"],STRING_LITERAL_LONG2:["varOrTerm"],INTEGER:["varOrTerm"],DECIMAL:["varOrTerm"],DOUBLE:["varOrTerm"],INTEGER_POSITIVE:["varOrTerm"],DECIMAL_POSITIVE:["varOrTerm"],DOUBLE_POSITIVE:["varOrTerm"],INTEGER_NEGATIVE:["varOrTerm"],DECIMAL_NEGATIVE:["varOrTerm"],DOUBLE_NEGATIVE:["varOrTerm"],"(":["triplesNodePath"],"[":["triplesNodePath"]},graphOrDefault:{DEFAULT:["DEFAULT"],IRI_REF:["?GRAPH","iriRef"],PNAME_LN:["?GRAPH","iriRef"],PNAME_NS:["?GRAPH","iriRef"],GRAPH:["?GRAPH","iriRef"]},graphPatternNotTriples:{"{":["groupOrUnionGraphPattern"],OPTIONAL:["optionalGraphPattern"],MINUS:["minusGraphPattern"],GRAPH:["graphGraphPattern"],SERVICE:["serviceGraphPattern"],FILTER:["filter"],BIND:["bind"],VALUES:["inlineData"]},graphRef:{GRAPH:["GRAPH","iriRef"]},graphRefAll:{GRAPH:["graphRef"],DEFAULT:["DEFAULT"],NAMED:["NAMED"],ALL:["ALL"]},graphTerm:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],BLANK_NODE_LABEL:["blankNode"],ANON:["blankNode"],NIL:["NIL"]},groupClause:{GROUP:["GROUP","BY","+groupCondition"]},groupCondition:{STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["functionCall"],PNAME_LN:["functionCall"],PNAME_NS:["functionCall"],"(":["(","expression","?[AS,var]",")"],VAR1:["var"],VAR2:["var"]},groupGraphPattern:{"{":["{","or([subSelect,groupGraphPatternSub])","}"]},groupGraphPatternSub:{"{":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],OPTIONAL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],MINUS:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],GRAPH:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],SERVICE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],FILTER:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],BIND:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VALUES:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VAR1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VAR2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],NIL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"(":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"[":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],IRI_REF:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],TRUE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],FALSE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],BLANK_NODE_LABEL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],ANON:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],PNAME_LN:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],PNAME_NS:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL_LONG1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL_LONG2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"}":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"]},groupOrUnionGraphPattern:{"{":["groupGraphPattern","*[UNION,groupGraphPattern]"]},havingClause:{HAVING:["HAVING","+havingCondition"]},havingCondition:{"(":["constraint"],STR:["constraint"],LANG:["constraint"],LANGMATCHES:["constraint"],DATATYPE:["constraint"],BOUND:["constraint"],IRI:["constraint"],URI:["constraint"],BNODE:["constraint"],RAND:["constraint"],ABS:["constraint"],CEIL:["constraint"],FLOOR:["constraint"],ROUND:["constraint"],CONCAT:["constraint"],STRLEN:["constraint"],UCASE:["constraint"],LCASE:["constraint"],ENCODE_FOR_URI:["constraint"],CONTAINS:["constraint"],STRSTARTS:["constraint"],STRENDS:["constraint"],STRBEFORE:["constraint"],STRAFTER:["constraint"],YEAR:["constraint"],MONTH:["constraint"],DAY:["constraint"],HOURS:["constraint"],MINUTES:["constraint"],SECONDS:["constraint"],TIMEZONE:["constraint"],TZ:["constraint"],NOW:["constraint"],UUID:["constraint"],STRUUID:["constraint"],MD5:["constraint"],SHA1:["constraint"],SHA256:["constraint"],SHA384:["constraint"],SHA512:["constraint"],COALESCE:["constraint"],IF:["constraint"],STRLANG:["constraint"],STRDT:["constraint"],SAMETERM:["constraint"],ISIRI:["constraint"],ISURI:["constraint"],ISBLANK:["constraint"],ISLITERAL:["constraint"],ISNUMERIC:["constraint"],SUBSTR:["constraint"],REPLACE:["constraint"],REGEX:["constraint"],EXISTS:["constraint"],NOT:["constraint"],IRI_REF:["constraint"],PNAME_LN:["constraint"],PNAME_NS:["constraint"]},inlineData:{VALUES:["VALUES","dataBlock"]},inlineDataFull:{NIL:["or([NIL,[(,*var,)]])","{","*or([[(,*dataBlockValue,)],NIL])","}"],"(":["or([NIL,[(,*var,)]])","{","*or([[(,*dataBlockValue,)],NIL])","}"]},inlineDataOneVar:{VAR1:["var","{","*dataBlockValue","}"],VAR2:["var","{","*dataBlockValue","}"]},insert1:{DATA:["DATA","quadData"],"{":["quadPattern","*usingClause","WHERE","groupGraphPattern"]},insertClause:{INSERT:["INSERT","quadPattern"]},integer:{INTEGER:["INTEGER"]},iriRef:{IRI_REF:["IRI_REF"],PNAME_LN:["prefixedName"],PNAME_NS:["prefixedName"]},iriRefOrFunction:{IRI_REF:["iriRef","?argList"],PNAME_LN:["iriRef","?argList"],PNAME_NS:["iriRef","?argList"]},limitClause:{LIMIT:["LIMIT","INTEGER"]},limitOffsetClauses:{LIMIT:["limitClause","?offsetClause"],OFFSET:["offsetClause","?limitClause"]},load:{LOAD:["LOAD","?SILENT_1","iriRef","?[INTO,graphRef]"]},minusGraphPattern:{MINUS:["MINUS","groupGraphPattern"]},modify:{WITH:["WITH","iriRef","or([[deleteClause,?insertClause],insertClause])","*usingClause","WHERE","groupGraphPattern"]},move:{MOVE:["MOVE","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},multiplicativeExpression:{"!":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"+":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"-":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],VAR1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],VAR2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"(":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LANG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LANGMATCHES:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DATATYPE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],BOUND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IRI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],URI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],BNODE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],RAND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ABS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CEIL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],FLOOR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ROUND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CONCAT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRLEN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],UCASE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LCASE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ENCODE_FOR_URI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CONTAINS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRSTARTS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRENDS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRBEFORE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRAFTER:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],YEAR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MONTH:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DAY:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],HOURS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MINUTES:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SECONDS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TIMEZONE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TZ:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],NOW:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],UUID:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRUUID:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MD5:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA256:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA384:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA512:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],COALESCE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IF:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRLANG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRDT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SAMETERM:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISIRI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISURI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISBLANK:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISLITERAL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISNUMERIC:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TRUE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],FALSE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],COUNT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SUM:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MIN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MAX:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],AVG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SAMPLE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],GROUP_CONCAT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SUBSTR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],REPLACE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],REGEX:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],EXISTS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],NOT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IRI_REF:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL_LONG1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL_LONG2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],PNAME_LN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],PNAME_NS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"]},namedGraphClause:{NAMED:["NAMED","sourceSelector"]},notExistsFunc:{NOT:["NOT","EXISTS","groupGraphPattern"]},numericExpression:{"!":["additiveExpression"],"+":["additiveExpression"],"-":["additiveExpression"],VAR1:["additiveExpression"],VAR2:["additiveExpression"],"(":["additiveExpression"],STR:["additiveExpression"],LANG:["additiveExpression"],LANGMATCHES:["additiveExpression"],DATATYPE:["additiveExpression"],BOUND:["additiveExpression"],IRI:["additiveExpression"],URI:["additiveExpression"],BNODE:["additiveExpression"],RAND:["additiveExpression"],ABS:["additiveExpression"],CEIL:["additiveExpression"],FLOOR:["additiveExpression"],ROUND:["additiveExpression"],CONCAT:["additiveExpression"],STRLEN:["additiveExpression"],UCASE:["additiveExpression"],LCASE:["additiveExpression"],ENCODE_FOR_URI:["additiveExpression"],CONTAINS:["additiveExpression"],STRSTARTS:["additiveExpression"],STRENDS:["additiveExpression"],STRBEFORE:["additiveExpression"],STRAFTER:["additiveExpression"],YEAR:["additiveExpression"],MONTH:["additiveExpression"],DAY:["additiveExpression"],HOURS:["additiveExpression"],MINUTES:["additiveExpression"],SECONDS:["additiveExpression"],TIMEZONE:["additiveExpression"],TZ:["additiveExpression"],NOW:["additiveExpression"],UUID:["additiveExpression"],STRUUID:["additiveExpression"],MD5:["additiveExpression"],SHA1:["additiveExpression"],SHA256:["additiveExpression"],SHA384:["additiveExpression"],SHA512:["additiveExpression"],COALESCE:["additiveExpression"],IF:["additiveExpression"],STRLANG:["additiveExpression"],STRDT:["additiveExpression"],SAMETERM:["additiveExpression"],ISIRI:["additiveExpression"],ISURI:["additiveExpression"],ISBLANK:["additiveExpression"],ISLITERAL:["additiveExpression"],ISNUMERIC:["additiveExpression"],TRUE:["additiveExpression"],FALSE:["additiveExpression"],COUNT:["additiveExpression"],SUM:["additiveExpression"],MIN:["additiveExpression"],MAX:["additiveExpression"],AVG:["additiveExpression"],SAMPLE:["additiveExpression"],GROUP_CONCAT:["additiveExpression"],SUBSTR:["additiveExpression"],REPLACE:["additiveExpression"],REGEX:["additiveExpression"],EXISTS:["additiveExpression"],NOT:["additiveExpression"],IRI_REF:["additiveExpression"],STRING_LITERAL1:["additiveExpression"],STRING_LITERAL2:["additiveExpression"],STRING_LITERAL_LONG1:["additiveExpression"],STRING_LITERAL_LONG2:["additiveExpression"],INTEGER:["additiveExpression"],DECIMAL:["additiveExpression"],DOUBLE:["additiveExpression"],INTEGER_POSITIVE:["additiveExpression"],DECIMAL_POSITIVE:["additiveExpression"],DOUBLE_POSITIVE:["additiveExpression"],INTEGER_NEGATIVE:["additiveExpression"],DECIMAL_NEGATIVE:["additiveExpression"],DOUBLE_NEGATIVE:["additiveExpression"],PNAME_LN:["additiveExpression"],PNAME_NS:["additiveExpression"]},numericLiteral:{INTEGER:["numericLiteralUnsigned"],DECIMAL:["numericLiteralUnsigned"],DOUBLE:["numericLiteralUnsigned"],INTEGER_POSITIVE:["numericLiteralPositive"],DECIMAL_POSITIVE:["numericLiteralPositive"],DOUBLE_POSITIVE:["numericLiteralPositive"],INTEGER_NEGATIVE:["numericLiteralNegative"],DECIMAL_NEGATIVE:["numericLiteralNegative"],DOUBLE_NEGATIVE:["numericLiteralNegative"]},numericLiteralNegative:{INTEGER_NEGATIVE:["INTEGER_NEGATIVE"],DECIMAL_NEGATIVE:["DECIMAL_NEGATIVE"],DOUBLE_NEGATIVE:["DOUBLE_NEGATIVE"]},numericLiteralPositive:{INTEGER_POSITIVE:["INTEGER_POSITIVE"],DECIMAL_POSITIVE:["DECIMAL_POSITIVE"],DOUBLE_POSITIVE:["DOUBLE_POSITIVE"]},numericLiteralUnsigned:{INTEGER:["INTEGER"],DECIMAL:["DECIMAL"],DOUBLE:["DOUBLE"]},object:{"(":["graphNode"],"[":["graphNode"],VAR1:["graphNode"],VAR2:["graphNode"],NIL:["graphNode"],IRI_REF:["graphNode"],TRUE:["graphNode"],FALSE:["graphNode"],BLANK_NODE_LABEL:["graphNode"],ANON:["graphNode"],PNAME_LN:["graphNode"],PNAME_NS:["graphNode"],STRING_LITERAL1:["graphNode"],STRING_LITERAL2:["graphNode"],STRING_LITERAL_LONG1:["graphNode"],STRING_LITERAL_LONG2:["graphNode"],INTEGER:["graphNode"],DECIMAL:["graphNode"],DOUBLE:["graphNode"],INTEGER_POSITIVE:["graphNode"],DECIMAL_POSITIVE:["graphNode"],DOUBLE_POSITIVE:["graphNode"],INTEGER_NEGATIVE:["graphNode"],DECIMAL_NEGATIVE:["graphNode"],DOUBLE_NEGATIVE:["graphNode"]},objectList:{"(":["object","*[,,object]"],"[":["object","*[,,object]"],VAR1:["object","*[,,object]"],VAR2:["object","*[,,object]"],NIL:["object","*[,,object]"],IRI_REF:["object","*[,,object]"],TRUE:["object","*[,,object]"],FALSE:["object","*[,,object]"],BLANK_NODE_LABEL:["object","*[,,object]"],ANON:["object","*[,,object]"],PNAME_LN:["object","*[,,object]"],PNAME_NS:["object","*[,,object]"],STRING_LITERAL1:["object","*[,,object]"],STRING_LITERAL2:["object","*[,,object]"],STRING_LITERAL_LONG1:["object","*[,,object]"],STRING_LITERAL_LONG2:["object","*[,,object]"],INTEGER:["object","*[,,object]"],DECIMAL:["object","*[,,object]"],DOUBLE:["object","*[,,object]"],INTEGER_POSITIVE:["object","*[,,object]"],DECIMAL_POSITIVE:["object","*[,,object]"],DOUBLE_POSITIVE:["object","*[,,object]"],INTEGER_NEGATIVE:["object","*[,,object]"],DECIMAL_NEGATIVE:["object","*[,,object]"],DOUBLE_NEGATIVE:["object","*[,,object]"]},objectListPath:{"(":["objectPath","*[,,objectPath]"],"[":["objectPath","*[,,objectPath]"],VAR1:["objectPath","*[,,objectPath]"],VAR2:["objectPath","*[,,objectPath]"],NIL:["objectPath","*[,,objectPath]"],IRI_REF:["objectPath","*[,,objectPath]"],TRUE:["objectPath","*[,,objectPath]"],FALSE:["objectPath","*[,,objectPath]"],BLANK_NODE_LABEL:["objectPath","*[,,objectPath]"],ANON:["objectPath","*[,,objectPath]"],PNAME_LN:["objectPath","*[,,objectPath]"],PNAME_NS:["objectPath","*[,,objectPath]"],STRING_LITERAL1:["objectPath","*[,,objectPath]"],STRING_LITERAL2:["objectPath","*[,,objectPath]"],STRING_LITERAL_LONG1:["objectPath","*[,,objectPath]"],STRING_LITERAL_LONG2:["objectPath","*[,,objectPath]"],INTEGER:["objectPath","*[,,objectPath]"],DECIMAL:["objectPath","*[,,objectPath]"],DOUBLE:["objectPath","*[,,objectPath]"],INTEGER_POSITIVE:["objectPath","*[,,objectPath]"],DECIMAL_POSITIVE:["objectPath","*[,,objectPath]"],DOUBLE_POSITIVE:["objectPath","*[,,objectPath]"],INTEGER_NEGATIVE:["objectPath","*[,,objectPath]"],DECIMAL_NEGATIVE:["objectPath","*[,,objectPath]"],DOUBLE_NEGATIVE:["objectPath","*[,,objectPath]"]},objectPath:{"(":["graphNodePath"],"[":["graphNodePath"],VAR1:["graphNodePath"],VAR2:["graphNodePath"],NIL:["graphNodePath"],IRI_REF:["graphNodePath"],TRUE:["graphNodePath"],FALSE:["graphNodePath"],BLANK_NODE_LABEL:["graphNodePath"],ANON:["graphNodePath"],PNAME_LN:["graphNodePath"],PNAME_NS:["graphNodePath"],STRING_LITERAL1:["graphNodePath"],STRING_LITERAL2:["graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath"],INTEGER:["graphNodePath"],DECIMAL:["graphNodePath"],DOUBLE:["graphNodePath"],INTEGER_POSITIVE:["graphNodePath"],DECIMAL_POSITIVE:["graphNodePath"],DOUBLE_POSITIVE:["graphNodePath"],INTEGER_NEGATIVE:["graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath"]},offsetClause:{OFFSET:["OFFSET","INTEGER"]},optionalGraphPattern:{OPTIONAL:["OPTIONAL","groupGraphPattern"]},"or([*,expression])":{"*":["*"],"!":["expression"],"+":["expression"],"-":["expression"],VAR1:["expression"],VAR2:["expression"],"(":["expression"],STR:["expression"],LANG:["expression"],LANGMATCHES:["expression"],DATATYPE:["expression"],BOUND:["expression"],IRI:["expression"],URI:["expression"],BNODE:["expression"],RAND:["expression"],ABS:["expression"],CEIL:["expression"],FLOOR:["expression"],ROUND:["expression"],CONCAT:["expression"],STRLEN:["expression"],UCASE:["expression"],LCASE:["expression"],ENCODE_FOR_URI:["expression"],CONTAINS:["expression"],STRSTARTS:["expression"],STRENDS:["expression"],STRBEFORE:["expression"],STRAFTER:["expression"],YEAR:["expression"],MONTH:["expression"],DAY:["expression"],HOURS:["expression"],MINUTES:["expression"],SECONDS:["expression"],TIMEZONE:["expression"],TZ:["expression"],NOW:["expression"],UUID:["expression"],STRUUID:["expression"],MD5:["expression"],SHA1:["expression"],SHA256:["expression"],SHA384:["expression"],SHA512:["expression"],COALESCE:["expression"],IF:["expression"],STRLANG:["expression"],STRDT:["expression"],SAMETERM:["expression"],ISIRI:["expression"],ISURI:["expression"],ISBLANK:["expression"],ISLITERAL:["expression"],ISNUMERIC:["expression"],TRUE:["expression"],FALSE:["expression"],COUNT:["expression"],SUM:["expression"],MIN:["expression"],MAX:["expression"],AVG:["expression"],SAMPLE:["expression"],GROUP_CONCAT:["expression"],SUBSTR:["expression"],REPLACE:["expression"],REGEX:["expression"],EXISTS:["expression"],NOT:["expression"],IRI_REF:["expression"],STRING_LITERAL1:["expression"],STRING_LITERAL2:["expression"],STRING_LITERAL_LONG1:["expression"],STRING_LITERAL_LONG2:["expression"],INTEGER:["expression"],DECIMAL:["expression"],DOUBLE:["expression"],INTEGER_POSITIVE:["expression"],DECIMAL_POSITIVE:["expression"],DOUBLE_POSITIVE:["expression"],INTEGER_NEGATIVE:["expression"],DECIMAL_NEGATIVE:["expression"],DOUBLE_NEGATIVE:["expression"],PNAME_LN:["expression"],PNAME_NS:["expression"]},"or([+or([var,[(,expression,AS,var,)]]),*])":{"(":["+or([var,[(,expression,AS,var,)]])"],VAR1:["+or([var,[(,expression,AS,var,)]])"],VAR2:["+or([var,[(,expression,AS,var,)]])"],"*":["*"]},"or([+varOrIRIref,*])":{VAR1:["+varOrIRIref"],VAR2:["+varOrIRIref"],IRI_REF:["+varOrIRIref"],PNAME_LN:["+varOrIRIref"],PNAME_NS:["+varOrIRIref"],"*":["*"]},"or([ASC,DESC])":{ASC:["ASC"],DESC:["DESC"]},"or([DISTINCT,REDUCED])":{DISTINCT:["DISTINCT"],REDUCED:["REDUCED"]},"or([LANGTAG,[^^,iriRef]])":{LANGTAG:["LANGTAG"],"^^":["[^^,iriRef]"]},"or([NIL,[(,*var,)]])":{NIL:["NIL"],"(":["[(,*var,)]"]},"or([[(,*dataBlockValue,)],NIL])":{"(":["[(,*dataBlockValue,)]"],NIL:["NIL"]},"or([[(,expression,)],NIL])":{"(":["[(,expression,)]"],NIL:["NIL"]},"or([[*,unaryExpression],[/,unaryExpression]])":{"*":["[*,unaryExpression]"],"/":["[/,unaryExpression]"]},"or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])":{"+":["[+,multiplicativeExpression]"],"-":["[-,multiplicativeExpression]"],INTEGER_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DECIMAL_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DOUBLE_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],INTEGER_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DECIMAL_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DOUBLE_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"]},"or([[,,or([},[integer,}]])],}])":{",":["[,,or([},[integer,}]])]"],"}":["}"]},"or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])":{"=":["[=,numericExpression]"],"!=":["[!=,numericExpression]"],"<":["[<,numericExpression]"],">":["[>,numericExpression]"],"<=":["[<=,numericExpression]"],">=":["[>=,numericExpression]"],IN:["[IN,expressionList]"],NOT:["[NOT,IN,expressionList]"]},"or([[constructTemplate,*datasetClause,whereClause,solutionModifier],[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]])":{"{":["[constructTemplate,*datasetClause,whereClause,solutionModifier]"],WHERE:["[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]"],FROM:["[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]"]},"or([[deleteClause,?insertClause],insertClause])":{DELETE:["[deleteClause,?insertClause]"],INSERT:["insertClause"]},"or([[integer,or([[,,or([},[integer,}]])],}])],[,,integer,}]])":{INTEGER:["[integer,or([[,,or([},[integer,}]])],}])]"],",":["[,,integer,}]"]},"or([baseDecl,prefixDecl])":{BASE:["baseDecl"],PREFIX:["prefixDecl"]},"or([defaultGraphClause,namedGraphClause])":{IRI_REF:["defaultGraphClause"],PNAME_LN:["defaultGraphClause"],PNAME_NS:["defaultGraphClause"],NAMED:["namedGraphClause"]},"or([inlineDataOneVar,inlineDataFull])":{VAR1:["inlineDataOneVar"],VAR2:["inlineDataOneVar"],NIL:["inlineDataFull"],"(":["inlineDataFull"]},"or([iriRef,[NAMED,iriRef]])":{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],NAMED:["[NAMED,iriRef]"]},"or([iriRef,a])":{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],a:["a"]},"or([numericLiteralPositive,numericLiteralNegative])":{INTEGER_POSITIVE:["numericLiteralPositive"],DECIMAL_POSITIVE:["numericLiteralPositive"],DOUBLE_POSITIVE:["numericLiteralPositive"],INTEGER_NEGATIVE:["numericLiteralNegative"],DECIMAL_NEGATIVE:["numericLiteralNegative"],DOUBLE_NEGATIVE:["numericLiteralNegative"]},"or([queryAll,updateAll])":{CONSTRUCT:["queryAll"],DESCRIBE:["queryAll"],ASK:["queryAll"],SELECT:["queryAll"],INSERT:["updateAll"],DELETE:["updateAll"],LOAD:["updateAll"],CLEAR:["updateAll"],DROP:["updateAll"],ADD:["updateAll"],MOVE:["updateAll"],COPY:["updateAll"],CREATE:["updateAll"],WITH:["updateAll"],$:["updateAll"]},"or([selectQuery,constructQuery,describeQuery,askQuery])":{SELECT:["selectQuery"],CONSTRUCT:["constructQuery"],DESCRIBE:["describeQuery"],ASK:["askQuery"]},"or([subSelect,groupGraphPatternSub])":{SELECT:["subSelect"],"{":["groupGraphPatternSub"],OPTIONAL:["groupGraphPatternSub"],MINUS:["groupGraphPatternSub"],GRAPH:["groupGraphPatternSub"],SERVICE:["groupGraphPatternSub"],FILTER:["groupGraphPatternSub"],BIND:["groupGraphPatternSub"],VALUES:["groupGraphPatternSub"],VAR1:["groupGraphPatternSub"],VAR2:["groupGraphPatternSub"],NIL:["groupGraphPatternSub"],"(":["groupGraphPatternSub"],"[":["groupGraphPatternSub"],IRI_REF:["groupGraphPatternSub"],TRUE:["groupGraphPatternSub"],FALSE:["groupGraphPatternSub"],BLANK_NODE_LABEL:["groupGraphPatternSub"],ANON:["groupGraphPatternSub"],PNAME_LN:["groupGraphPatternSub"],PNAME_NS:["groupGraphPatternSub"],STRING_LITERAL1:["groupGraphPatternSub"],STRING_LITERAL2:["groupGraphPatternSub"],STRING_LITERAL_LONG1:["groupGraphPatternSub"],STRING_LITERAL_LONG2:["groupGraphPatternSub"],INTEGER:["groupGraphPatternSub"],DECIMAL:["groupGraphPatternSub"],DOUBLE:["groupGraphPatternSub"],INTEGER_POSITIVE:["groupGraphPatternSub"],DECIMAL_POSITIVE:["groupGraphPatternSub"],DOUBLE_POSITIVE:["groupGraphPatternSub"],INTEGER_NEGATIVE:["groupGraphPatternSub"],DECIMAL_NEGATIVE:["groupGraphPatternSub"],DOUBLE_NEGATIVE:["groupGraphPatternSub"],"}":["groupGraphPatternSub"]},"or([var,[(,expression,AS,var,)]])":{VAR1:["var"],VAR2:["var"],"(":["[(,expression,AS,var,)]"]},"or([verbPath,verbSimple])":{"^":["verbPath"],a:["verbPath"],"!":["verbPath"],"(":["verbPath"],IRI_REF:["verbPath"],PNAME_LN:["verbPath"],PNAME_NS:["verbPath"],VAR1:["verbSimple"],VAR2:["verbSimple"]},"or([},[integer,}]])":{"}":["}"],INTEGER:["[integer,}]"]},orderClause:{ORDER:["ORDER","BY","+orderCondition"]},orderCondition:{ASC:["or([ASC,DESC])","brackettedExpression"],DESC:["or([ASC,DESC])","brackettedExpression"],"(":["constraint"],STR:["constraint"],LANG:["constraint"],LANGMATCHES:["constraint"],DATATYPE:["constraint"],BOUND:["constraint"],IRI:["constraint"],URI:["constraint"],BNODE:["constraint"],RAND:["constraint"],ABS:["constraint"],CEIL:["constraint"],FLOOR:["constraint"],ROUND:["constraint"],CONCAT:["constraint"],STRLEN:["constraint"],UCASE:["constraint"],LCASE:["constraint"],ENCODE_FOR_URI:["constraint"],CONTAINS:["constraint"],STRSTARTS:["constraint"],STRENDS:["constraint"],STRBEFORE:["constraint"],STRAFTER:["constraint"],YEAR:["constraint"],MONTH:["constraint"],DAY:["constraint"],HOURS:["constraint"],MINUTES:["constraint"],SECONDS:["constraint"],TIMEZONE:["constraint"],TZ:["constraint"],NOW:["constraint"],UUID:["constraint"],STRUUID:["constraint"],MD5:["constraint"],SHA1:["constraint"],SHA256:["constraint"],SHA384:["constraint"],SHA512:["constraint"],COALESCE:["constraint"],IF:["constraint"],STRLANG:["constraint"],STRDT:["constraint"],SAMETERM:["constraint"],ISIRI:["constraint"],ISURI:["constraint"],ISBLANK:["constraint"],ISLITERAL:["constraint"],ISNUMERIC:["constraint"],SUBSTR:["constraint"],REPLACE:["constraint"],REGEX:["constraint"],EXISTS:["constraint"],NOT:["constraint"],IRI_REF:["constraint"],PNAME_LN:["constraint"],PNAME_NS:["constraint"],VAR1:["var"],VAR2:["var"]},path:{"^":["pathAlternative"],a:["pathAlternative"],"!":["pathAlternative"],"(":["pathAlternative"],IRI_REF:["pathAlternative"],PNAME_LN:["pathAlternative"],PNAME_NS:["pathAlternative"]},pathAlternative:{"^":["pathSequence","*[|,pathSequence]"],a:["pathSequence","*[|,pathSequence]"],"!":["pathSequence","*[|,pathSequence]"],"(":["pathSequence","*[|,pathSequence]"],IRI_REF:["pathSequence","*[|,pathSequence]"],PNAME_LN:["pathSequence","*[|,pathSequence]"],PNAME_NS:["pathSequence","*[|,pathSequence]"]},pathElt:{a:["pathPrimary","?pathMod"],"!":["pathPrimary","?pathMod"],"(":["pathPrimary","?pathMod"],IRI_REF:["pathPrimary","?pathMod"],PNAME_LN:["pathPrimary","?pathMod"],PNAME_NS:["pathPrimary","?pathMod"]},pathEltOrInverse:{a:["pathElt"],"!":["pathElt"],"(":["pathElt"],IRI_REF:["pathElt"],PNAME_LN:["pathElt"],PNAME_NS:["pathElt"],"^":["^","pathElt"]},pathMod:{"*":["*"],"?":["?"],"+":["+"],"{":["{","or([[integer,or([[,,or([},[integer,}]])],}])],[,,integer,}]])"]},pathNegatedPropertySet:{a:["pathOneInPropertySet"],"^":["pathOneInPropertySet"],IRI_REF:["pathOneInPropertySet"],PNAME_LN:["pathOneInPropertySet"],PNAME_NS:["pathOneInPropertySet"],"(":["(","?[pathOneInPropertySet,*[|,pathOneInPropertySet]]",")"]},pathOneInPropertySet:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],a:["a"],"^":["^","or([iriRef,a])"]},pathPrimary:{IRI_REF:["storeProperty","iriRef"],PNAME_LN:["storeProperty","iriRef"],PNAME_NS:["storeProperty","iriRef"],a:["storeProperty","a"],"!":["!","pathNegatedPropertySet"],"(":["(","path",")"]},pathSequence:{"^":["pathEltOrInverse","*[/,pathEltOrInverse]"],a:["pathEltOrInverse","*[/,pathEltOrInverse]"],"!":["pathEltOrInverse","*[/,pathEltOrInverse]"],"(":["pathEltOrInverse","*[/,pathEltOrInverse]"],IRI_REF:["pathEltOrInverse","*[/,pathEltOrInverse]"],PNAME_LN:["pathEltOrInverse","*[/,pathEltOrInverse]"],PNAME_NS:["pathEltOrInverse","*[/,pathEltOrInverse]"]},prefixDecl:{PREFIX:["PREFIX","PNAME_NS","IRI_REF"]},prefixedName:{PNAME_LN:["PNAME_LN"],PNAME_NS:["PNAME_NS"]},primaryExpression:{"(":["brackettedExpression"],STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["iriRefOrFunction"],PNAME_LN:["iriRefOrFunction"],PNAME_NS:["iriRefOrFunction"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],VAR1:["var"],VAR2:["var"],COUNT:["aggregate"],SUM:["aggregate"],MIN:["aggregate"],MAX:["aggregate"],AVG:["aggregate"],SAMPLE:["aggregate"],GROUP_CONCAT:["aggregate"]},prologue:{BASE:["*or([baseDecl,prefixDecl])"],PREFIX:["*or([baseDecl,prefixDecl])"],$:["*or([baseDecl,prefixDecl])"],CONSTRUCT:["*or([baseDecl,prefixDecl])"],DESCRIBE:["*or([baseDecl,prefixDecl])"],ASK:["*or([baseDecl,prefixDecl])"],INSERT:["*or([baseDecl,prefixDecl])"],DELETE:["*or([baseDecl,prefixDecl])"],SELECT:["*or([baseDecl,prefixDecl])"],LOAD:["*or([baseDecl,prefixDecl])"],CLEAR:["*or([baseDecl,prefixDecl])"],DROP:["*or([baseDecl,prefixDecl])"],ADD:["*or([baseDecl,prefixDecl])"],MOVE:["*or([baseDecl,prefixDecl])"],COPY:["*or([baseDecl,prefixDecl])"],CREATE:["*or([baseDecl,prefixDecl])"],WITH:["*or([baseDecl,prefixDecl])"]},propertyList:{a:["propertyListNotEmpty"],VAR1:["propertyListNotEmpty"],VAR2:["propertyListNotEmpty"],IRI_REF:["propertyListNotEmpty"],PNAME_LN:["propertyListNotEmpty"],PNAME_NS:["propertyListNotEmpty"],".":[],"}":[],GRAPH:[]},propertyListNotEmpty:{a:["verb","objectList","*[;,?[verb,objectList]]"],VAR1:["verb","objectList","*[;,?[verb,objectList]]"],VAR2:["verb","objectList","*[;,?[verb,objectList]]"],IRI_REF:["verb","objectList","*[;,?[verb,objectList]]"],PNAME_LN:["verb","objectList","*[;,?[verb,objectList]]"],PNAME_NS:["verb","objectList","*[;,?[verb,objectList]]"]},propertyListPath:{a:["propertyListNotEmpty"],VAR1:["propertyListNotEmpty"],VAR2:["propertyListNotEmpty"],IRI_REF:["propertyListNotEmpty"],PNAME_LN:["propertyListNotEmpty"],PNAME_NS:["propertyListNotEmpty"],".":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},propertyListPathNotEmpty:{VAR1:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],VAR2:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],"^":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],a:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],"!":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],"(":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],IRI_REF:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],PNAME_LN:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],PNAME_NS:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"]},quadData:{"{":["{","disallowVars","quads","allowVars","}"]},quadDataNoBnodes:{"{":["{","disallowBnodes","disallowVars","quads","allowVars","allowBnodes","}"]},quadPattern:{"{":["{","quads","}"]},quadPatternNoBnodes:{"{":["{","disallowBnodes","quads","allowBnodes","}"]},quads:{GRAPH:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],VAR1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],VAR2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],NIL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"(":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"[":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],IRI_REF:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],TRUE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],FALSE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],BLANK_NODE_LABEL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],ANON:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],PNAME_LN:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],PNAME_NS:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL_LONG1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL_LONG2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"}":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"]},quadsNotTriples:{GRAPH:["GRAPH","varOrIRIref","{","?triplesTemplate","}"]},queryAll:{CONSTRUCT:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],DESCRIBE:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],ASK:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],SELECT:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"]},rdfLiteral:{STRING_LITERAL1:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL2:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL_LONG1:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL_LONG2:["string","?or([LANGTAG,[^^,iriRef]])"]},regexExpression:{REGEX:["REGEX","(","expression",",","expression","?[,,expression]",")"]},relationalExpression:{"!":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"+":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"-":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],VAR1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],VAR2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"(":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LANG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LANGMATCHES:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DATATYPE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],BOUND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IRI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],URI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],BNODE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],RAND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ABS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CEIL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],FLOOR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ROUND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CONCAT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRLEN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],UCASE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LCASE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ENCODE_FOR_URI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CONTAINS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRSTARTS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRENDS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRBEFORE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRAFTER:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],YEAR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MONTH:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DAY:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],HOURS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MINUTES:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SECONDS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TIMEZONE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TZ:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOW:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],UUID:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRUUID:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MD5:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA256:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA384:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA512:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],COALESCE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IF:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRLANG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRDT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SAMETERM:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISIRI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISURI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISBLANK:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISLITERAL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISNUMERIC:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TRUE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],FALSE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],COUNT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SUM:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MIN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MAX:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],AVG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SAMPLE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],GROUP_CONCAT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SUBSTR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],REPLACE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],REGEX:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],EXISTS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IRI_REF:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL_LONG1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL_LONG2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],PNAME_LN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],PNAME_NS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"]},selectClause:{SELECT:["SELECT","?or([DISTINCT,REDUCED])","or([+or([var,[(,expression,AS,var,)]]),*])"]},selectQuery:{SELECT:["selectClause","*datasetClause","whereClause","solutionModifier"]},serviceGraphPattern:{SERVICE:["SERVICE","?SILENT","varOrIRIref","groupGraphPattern"]},solutionModifier:{LIMIT:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],OFFSET:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],ORDER:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],HAVING:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],GROUP:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],VALUES:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],$:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],"}":["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"]},sourceSelector:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"]},sparql11:{$:["prologue","or([queryAll,updateAll])","$"],CONSTRUCT:["prologue","or([queryAll,updateAll])","$"],DESCRIBE:["prologue","or([queryAll,updateAll])","$"],ASK:["prologue","or([queryAll,updateAll])","$"],INSERT:["prologue","or([queryAll,updateAll])","$"],DELETE:["prologue","or([queryAll,updateAll])","$"],SELECT:["prologue","or([queryAll,updateAll])","$"],LOAD:["prologue","or([queryAll,updateAll])","$"],CLEAR:["prologue","or([queryAll,updateAll])","$"],DROP:["prologue","or([queryAll,updateAll])","$"],ADD:["prologue","or([queryAll,updateAll])","$"],MOVE:["prologue","or([queryAll,updateAll])","$"],COPY:["prologue","or([queryAll,updateAll])","$"],CREATE:["prologue","or([queryAll,updateAll])","$"],WITH:["prologue","or([queryAll,updateAll])","$"],BASE:["prologue","or([queryAll,updateAll])","$"],PREFIX:["prologue","or([queryAll,updateAll])","$"]},storeProperty:{VAR1:[],VAR2:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[],a:[]},strReplaceExpression:{REPLACE:["REPLACE","(","expression",",","expression",",","expression","?[,,expression]",")"]},string:{STRING_LITERAL1:["STRING_LITERAL1"],STRING_LITERAL2:["STRING_LITERAL2"],STRING_LITERAL_LONG1:["STRING_LITERAL_LONG1"],STRING_LITERAL_LONG2:["STRING_LITERAL_LONG2"]},subSelect:{SELECT:["selectClause","whereClause","solutionModifier","valuesClause"]},substringExpression:{SUBSTR:["SUBSTR","(","expression",",","expression","?[,,expression]",")"]},triplesBlock:{VAR1:["triplesSameSubjectPath","?[.,?triplesBlock]"],VAR2:["triplesSameSubjectPath","?[.,?triplesBlock]"],NIL:["triplesSameSubjectPath","?[.,?triplesBlock]"],"(":["triplesSameSubjectPath","?[.,?triplesBlock]"],"[":["triplesSameSubjectPath","?[.,?triplesBlock]"],IRI_REF:["triplesSameSubjectPath","?[.,?triplesBlock]"],TRUE:["triplesSameSubjectPath","?[.,?triplesBlock]"],FALSE:["triplesSameSubjectPath","?[.,?triplesBlock]"],BLANK_NODE_LABEL:["triplesSameSubjectPath","?[.,?triplesBlock]"],ANON:["triplesSameSubjectPath","?[.,?triplesBlock]"],PNAME_LN:["triplesSameSubjectPath","?[.,?triplesBlock]"],PNAME_NS:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL1:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL2:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL_LONG1:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL_LONG2:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"]},triplesNode:{"(":["collection"],"[":["blankNodePropertyList"]},triplesNodePath:{"(":["collectionPath"],"[":["blankNodePropertyListPath"]},triplesSameSubject:{VAR1:["varOrTerm","propertyListNotEmpty"],VAR2:["varOrTerm","propertyListNotEmpty"],NIL:["varOrTerm","propertyListNotEmpty"],IRI_REF:["varOrTerm","propertyListNotEmpty"],TRUE:["varOrTerm","propertyListNotEmpty"],FALSE:["varOrTerm","propertyListNotEmpty"],BLANK_NODE_LABEL:["varOrTerm","propertyListNotEmpty"],ANON:["varOrTerm","propertyListNotEmpty"],PNAME_LN:["varOrTerm","propertyListNotEmpty"],PNAME_NS:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL1:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL2:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL_LONG1:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL_LONG2:["varOrTerm","propertyListNotEmpty"],INTEGER:["varOrTerm","propertyListNotEmpty"],DECIMAL:["varOrTerm","propertyListNotEmpty"],DOUBLE:["varOrTerm","propertyListNotEmpty"],INTEGER_POSITIVE:["varOrTerm","propertyListNotEmpty"],DECIMAL_POSITIVE:["varOrTerm","propertyListNotEmpty"],DOUBLE_POSITIVE:["varOrTerm","propertyListNotEmpty"],INTEGER_NEGATIVE:["varOrTerm","propertyListNotEmpty"],DECIMAL_NEGATIVE:["varOrTerm","propertyListNotEmpty"],DOUBLE_NEGATIVE:["varOrTerm","propertyListNotEmpty"],"(":["triplesNode","propertyList"],"[":["triplesNode","propertyList"]},triplesSameSubjectPath:{VAR1:["varOrTerm","propertyListPathNotEmpty"],VAR2:["varOrTerm","propertyListPathNotEmpty"],NIL:["varOrTerm","propertyListPathNotEmpty"],IRI_REF:["varOrTerm","propertyListPathNotEmpty"],TRUE:["varOrTerm","propertyListPathNotEmpty"],FALSE:["varOrTerm","propertyListPathNotEmpty"],BLANK_NODE_LABEL:["varOrTerm","propertyListPathNotEmpty"],ANON:["varOrTerm","propertyListPathNotEmpty"],PNAME_LN:["varOrTerm","propertyListPathNotEmpty"],PNAME_NS:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL1:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL2:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL_LONG1:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL_LONG2:["varOrTerm","propertyListPathNotEmpty"],INTEGER:["varOrTerm","propertyListPathNotEmpty"],DECIMAL:["varOrTerm","propertyListPathNotEmpty"],DOUBLE:["varOrTerm","propertyListPathNotEmpty"],INTEGER_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],DECIMAL_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],DOUBLE_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],INTEGER_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],DECIMAL_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],DOUBLE_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],"(":["triplesNodePath","propertyListPath"],"[":["triplesNodePath","propertyListPath"]},triplesTemplate:{VAR1:["triplesSameSubject","?[.,?triplesTemplate]"],VAR2:["triplesSameSubject","?[.,?triplesTemplate]"],NIL:["triplesSameSubject","?[.,?triplesTemplate]"],"(":["triplesSameSubject","?[.,?triplesTemplate]"],"[":["triplesSameSubject","?[.,?triplesTemplate]"],IRI_REF:["triplesSameSubject","?[.,?triplesTemplate]"],TRUE:["triplesSameSubject","?[.,?triplesTemplate]"],FALSE:["triplesSameSubject","?[.,?triplesTemplate]"],BLANK_NODE_LABEL:["triplesSameSubject","?[.,?triplesTemplate]"],ANON:["triplesSameSubject","?[.,?triplesTemplate]"],PNAME_LN:["triplesSameSubject","?[.,?triplesTemplate]"],PNAME_NS:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL1:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL2:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL_LONG1:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL_LONG2:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"]},unaryExpression:{"!":["!","primaryExpression"],"+":["+","primaryExpression"],"-":["-","primaryExpression"],VAR1:["primaryExpression"],VAR2:["primaryExpression"],"(":["primaryExpression"],STR:["primaryExpression"],LANG:["primaryExpression"],LANGMATCHES:["primaryExpression"],DATATYPE:["primaryExpression"],BOUND:["primaryExpression"],IRI:["primaryExpression"],URI:["primaryExpression"],BNODE:["primaryExpression"],RAND:["primaryExpression"],ABS:["primaryExpression"],CEIL:["primaryExpression"],FLOOR:["primaryExpression"],ROUND:["primaryExpression"],CONCAT:["primaryExpression"],STRLEN:["primaryExpression"],UCASE:["primaryExpression"],LCASE:["primaryExpression"],ENCODE_FOR_URI:["primaryExpression"],CONTAINS:["primaryExpression"],STRSTARTS:["primaryExpression"],STRENDS:["primaryExpression"],STRBEFORE:["primaryExpression"],STRAFTER:["primaryExpression"],YEAR:["primaryExpression"],MONTH:["primaryExpression"],DAY:["primaryExpression"],HOURS:["primaryExpression"],MINUTES:["primaryExpression"],SECONDS:["primaryExpression"],TIMEZONE:["primaryExpression"],TZ:["primaryExpression"],NOW:["primaryExpression"],UUID:["primaryExpression"],STRUUID:["primaryExpression"],MD5:["primaryExpression"],SHA1:["primaryExpression"],SHA256:["primaryExpression"],SHA384:["primaryExpression"],SHA512:["primaryExpression"],COALESCE:["primaryExpression"],IF:["primaryExpression"],STRLANG:["primaryExpression"],STRDT:["primaryExpression"],SAMETERM:["primaryExpression"],ISIRI:["primaryExpression"],ISURI:["primaryExpression"],ISBLANK:["primaryExpression"],ISLITERAL:["primaryExpression"],ISNUMERIC:["primaryExpression"],TRUE:["primaryExpression"],FALSE:["primaryExpression"],COUNT:["primaryExpression"],SUM:["primaryExpression"],MIN:["primaryExpression"],MAX:["primaryExpression"],AVG:["primaryExpression"],SAMPLE:["primaryExpression"],GROUP_CONCAT:["primaryExpression"],SUBSTR:["primaryExpression"],REPLACE:["primaryExpression"],REGEX:["primaryExpression"],EXISTS:["primaryExpression"],NOT:["primaryExpression"],IRI_REF:["primaryExpression"],STRING_LITERAL1:["primaryExpression"],STRING_LITERAL2:["primaryExpression"],STRING_LITERAL_LONG1:["primaryExpression"],STRING_LITERAL_LONG2:["primaryExpression"],INTEGER:["primaryExpression"],DECIMAL:["primaryExpression"],DOUBLE:["primaryExpression"],INTEGER_POSITIVE:["primaryExpression"],DECIMAL_POSITIVE:["primaryExpression"],DOUBLE_POSITIVE:["primaryExpression"],INTEGER_NEGATIVE:["primaryExpression"],DECIMAL_NEGATIVE:["primaryExpression"],DOUBLE_NEGATIVE:["primaryExpression"],PNAME_LN:["primaryExpression"],PNAME_NS:["primaryExpression"]},update:{INSERT:["prologue","?[update1,?[;,update]]"],DELETE:["prologue","?[update1,?[;,update]]"],LOAD:["prologue","?[update1,?[;,update]]"],CLEAR:["prologue","?[update1,?[;,update]]"],DROP:["prologue","?[update1,?[;,update]]"],ADD:["prologue","?[update1,?[;,update]]"],MOVE:["prologue","?[update1,?[;,update]]"],COPY:["prologue","?[update1,?[;,update]]"],CREATE:["prologue","?[update1,?[;,update]]"],WITH:["prologue","?[update1,?[;,update]]"],BASE:["prologue","?[update1,?[;,update]]"],PREFIX:["prologue","?[update1,?[;,update]]"],$:["prologue","?[update1,?[;,update]]"]},update1:{LOAD:["load"],CLEAR:["clear"],DROP:["drop"],ADD:["add"],MOVE:["move"],COPY:["copy"],CREATE:["create"],INSERT:["INSERT","insert1"],DELETE:["DELETE","delete1"],WITH:["modify"]},updateAll:{INSERT:["?[update1,?[;,update]]"],DELETE:["?[update1,?[;,update]]"],LOAD:["?[update1,?[;,update]]"],CLEAR:["?[update1,?[;,update]]"],DROP:["?[update1,?[;,update]]"],ADD:["?[update1,?[;,update]]"],MOVE:["?[update1,?[;,update]]"],COPY:["?[update1,?[;,update]]"],CREATE:["?[update1,?[;,update]]"],WITH:["?[update1,?[;,update]]"],$:["?[update1,?[;,update]]"]},usingClause:{USING:["USING","or([iriRef,[NAMED,iriRef]])"]},valueLogical:{"!":["relationalExpression"],"+":["relationalExpression"],"-":["relationalExpression"],VAR1:["relationalExpression"],VAR2:["relationalExpression"],"(":["relationalExpression"],STR:["relationalExpression"],LANG:["relationalExpression"],LANGMATCHES:["relationalExpression"],DATATYPE:["relationalExpression"],BOUND:["relationalExpression"],IRI:["relationalExpression"],URI:["relationalExpression"],BNODE:["relationalExpression"],RAND:["relationalExpression"],ABS:["relationalExpression"],CEIL:["relationalExpression"],FLOOR:["relationalExpression"],ROUND:["relationalExpression"],CONCAT:["relationalExpression"],STRLEN:["relationalExpression"],UCASE:["relationalExpression"],LCASE:["relationalExpression"],ENCODE_FOR_URI:["relationalExpression"],CONTAINS:["relationalExpression"],STRSTARTS:["relationalExpression"],STRENDS:["relationalExpression"],STRBEFORE:["relationalExpression"],STRAFTER:["relationalExpression"],YEAR:["relationalExpression"],MONTH:["relationalExpression"],DAY:["relationalExpression"],HOURS:["relationalExpression"],MINUTES:["relationalExpression"],SECONDS:["relationalExpression"],TIMEZONE:["relationalExpression"],TZ:["relationalExpression"],NOW:["relationalExpression"],UUID:["relationalExpression"],STRUUID:["relationalExpression"],MD5:["relationalExpression"],SHA1:["relationalExpression"],SHA256:["relationalExpression"],SHA384:["relationalExpression"],SHA512:["relationalExpression"],COALESCE:["relationalExpression"],IF:["relationalExpression"],STRLANG:["relationalExpression"],STRDT:["relationalExpression"],SAMETERM:["relationalExpression"],ISIRI:["relationalExpression"],ISURI:["relationalExpression"],ISBLANK:["relationalExpression"],ISLITERAL:["relationalExpression"],ISNUMERIC:["relationalExpression"],TRUE:["relationalExpression"],FALSE:["relationalExpression"],COUNT:["relationalExpression"],SUM:["relationalExpression"],MIN:["relationalExpression"],MAX:["relationalExpression"],AVG:["relationalExpression"],SAMPLE:["relationalExpression"],GROUP_CONCAT:["relationalExpression"],SUBSTR:["relationalExpression"],REPLACE:["relationalExpression"],REGEX:["relationalExpression"],EXISTS:["relationalExpression"],NOT:["relationalExpression"],IRI_REF:["relationalExpression"],STRING_LITERAL1:["relationalExpression"],STRING_LITERAL2:["relationalExpression"],STRING_LITERAL_LONG1:["relationalExpression"],STRING_LITERAL_LONG2:["relationalExpression"],INTEGER:["relationalExpression"],DECIMAL:["relationalExpression"],DOUBLE:["relationalExpression"],INTEGER_POSITIVE:["relationalExpression"],DECIMAL_POSITIVE:["relationalExpression"],DOUBLE_POSITIVE:["relationalExpression"],INTEGER_NEGATIVE:["relationalExpression"],DECIMAL_NEGATIVE:["relationalExpression"],DOUBLE_NEGATIVE:["relationalExpression"],PNAME_LN:["relationalExpression"],PNAME_NS:["relationalExpression"]},valuesClause:{VALUES:["VALUES","dataBlock"],$:[],"}":[]},var:{VAR1:["VAR1"],VAR2:["VAR2"]},varOrIRIref:{VAR1:["var"],VAR2:["var"],IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"]},varOrTerm:{VAR1:["var"],VAR2:["var"],NIL:["graphTerm"],IRI_REF:["graphTerm"],TRUE:["graphTerm"],FALSE:["graphTerm"],BLANK_NODE_LABEL:["graphTerm"],ANON:["graphTerm"],PNAME_LN:["graphTerm"],PNAME_NS:["graphTerm"],STRING_LITERAL1:["graphTerm"],STRING_LITERAL2:["graphTerm"],STRING_LITERAL_LONG1:["graphTerm"],STRING_LITERAL_LONG2:["graphTerm"],INTEGER:["graphTerm"],DECIMAL:["graphTerm"],DOUBLE:["graphTerm"],INTEGER_POSITIVE:["graphTerm"],DECIMAL_POSITIVE:["graphTerm"],DOUBLE_POSITIVE:["graphTerm"],INTEGER_NEGATIVE:["graphTerm"],DECIMAL_NEGATIVE:["graphTerm"],DOUBLE_NEGATIVE:["graphTerm"]},verb:{VAR1:["storeProperty","varOrIRIref"],VAR2:["storeProperty","varOrIRIref"],IRI_REF:["storeProperty","varOrIRIref"],PNAME_LN:["storeProperty","varOrIRIref"],PNAME_NS:["storeProperty","varOrIRIref"],a:["storeProperty","a"]},verbPath:{"^":["path"],a:["path"],"!":["path"],"(":["path"],IRI_REF:["path"],PNAME_LN:["path"],PNAME_NS:["path"]},verbSimple:{VAR1:["var"],VAR2:["var"]},whereClause:{"{":["?WHERE","groupGraphPattern"],WHERE:["?WHERE","groupGraphPattern"]}},Qh=/^(GROUP_CONCAT|DATATYPE|BASE|PREFIX|SELECT|CONSTRUCT|DESCRIBE|ASK|FROM|NAMED|ORDER|BY|LIMIT|ASC|DESC|OFFSET|DISTINCT|REDUCED|WHERE|GRAPH|OPTIONAL|UNION|FILTER|GROUP|HAVING|AS|VALUES|LOAD|CLEAR|DROP|CREATE|MOVE|COPY|SILENT|INSERT|DELETE|DATA|WITH|TO|USING|NAMED|MINUS|BIND|LANGMATCHES|LANG|BOUND|SAMETERM|ISIRI|ISURI|ISBLANK|ISLITERAL|REGEX|TRUE|FALSE|UNDEF|ADD|DEFAULT|ALL|SERVICE|INTO|IN|NOT|IRI|URI|BNODE|RAND|ABS|CEIL|FLOOR|ROUND|CONCAT|STRLEN|UCASE|LCASE|ENCODE_FOR_URI|CONTAINS|STRSTARTS|STRENDS|STRBEFORE|STRAFTER|YEAR|MONTH|DAY|HOURS|MINUTES|SECONDS|TIMEZONE|TZ|NOW|UUID|STRUUID|MD5|SHA1|SHA256|SHA384|SHA512|COALESCE|IF|STRLANG|STRDT|ISNUMERIC|SUBSTR|REPLACE|EXISTS|COUNT|SUM|MIN|MAX|AVG|SAMPLE|SEPARATOR|STR)/i,Yh=/^(\*|a|\.|\{|\}|,|\(|\)|;|\[|\]|\|\||&&|=|!=|!|<=|>=|<|>|\+|-|\/|\^\^|\?|\||\^)/,Fs="sparql11",Xh=!0;function Jh(n){let s=Hh,a='<[^<>"`|{}^\\\0- ]*>',u="[A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]",h=u+"|_",g="("+h+"|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])",m="("+h+"|[0-9])("+h+"|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])*",I="\\?"+m,T="\\$"+m,G="("+u+")((("+g+")|\\.)*("+g+"))?",L="[0-9A-Fa-f]",M="("+("(%"+L+L+")")+"|"+"(\\\\[_~\\.\\-!\\$&'\\(\\)\\*\\+,;=/\\?#@%])"+")",F="("+h+"|:|[0-9]|"+M+")(("+g+"|\\.|:|"+M+")*("+g+"|:|"+M+"))?",S="_:("+h+"|[0-9])(("+g+"|\\.)*"+g+")?",x="("+G+")?:",v=x+F,C="@[a-zA-Z]+(-[a-zA-Z0-9]+)*",R="[eE][\\+-]?[0-9]+",B="[0-9]+",D="[0-9]*\\.[0-9]+",w="(([0-9]+\\.[0-9]*"+R+")|(\\.[0-9]+"+R+")|([0-9]+"+R+"))",Q="\\+"+B,de="\\+"+D,te="\\+"+w,ue="-"+B,le="-"+D,me="-"+w,Y=`\\\\[tbnrf\\\\"']`,Oe=L+"{4}",Be="(\\\\u"+Oe+"|\\\\U00(10|0"+L+")"+Oe+")",et="'(([^\\x27\\x5C\\x0A\\x0D])|"+Y+"|"+Be+")*'",je='"(([^\\x22\\x5C\\x0A\\x0D])|'+Y+"|"+Be+')*"',Le={SINGLE:{CAT:"STRING_LITERAL_LONG1",QUOTES:"'''",CONTENTS:"(('|'')?([^'\\\\]|"+Y+"|"+Be+"))*"},DOUBLE:{CAT:"STRING_LITERAL_LONG2",QUOTES:'"""',CONTENTS:'(("|"")?([^"\\\\]|'+Y+"|"+Be+"))*"}};for(let re in Le)Le[re].COMPLETE=Le[re].QUOTES+Le[re].CONTENTS+Le[re].QUOTES;var Tt={};for(let re in Le)Tt[re]={complete:{name:"STRING_LITERAL_LONG_"+re,regex:new RegExp("^"+Le[re].COMPLETE),style:"string"},contents:{name:"STRING_LITERAL_LONG_"+re,regex:new RegExp("^"+Le[re].CONTENTS),style:"string"},closing:{name:"STRING_LITERAL_LONG_"+re,regex:new RegExp("^"+Le[re].CONTENTS+Le[re].QUOTES),style:"string"},quotes:{name:"STRING_LITERAL_LONG_QUOTES_"+re,regex:new RegExp("^"+Le[re].QUOTES),style:"string"}};let At="[\\x20\\x09\\x0D\\x0A]",Ae="#([^\\n\\r]*[\\n\\r]|[^\\n\\r]*$)",Ct="("+At+"|("+Ae+"))*",Ie="\\("+Ct+"\\)",Ht="\\["+Ct+"\\]",he=[{name:"WS",regex:new RegExp("^"+At+"+"),style:"ws"},{name:"COMMENT",regex:new RegExp("^"+Ae),style:"comment"},{name:"IRI_REF",regex:new RegExp("^"+a),style:"variable-3"},{name:"VAR1",regex:new RegExp("^"+I),style:"atom"},{name:"VAR2",regex:new RegExp("^"+T),style:"atom"},{name:"LANGTAG",regex:new RegExp("^"+C),style:"meta"},{name:"DOUBLE",regex:new RegExp("^"+w),style:"number"},{name:"DECIMAL",regex:new RegExp("^"+D),style:"number"},{name:"INTEGER",regex:new RegExp("^"+B),style:"number"},{name:"DOUBLE_POSITIVE",regex:new RegExp("^"+te),style:"number"},{name:"DECIMAL_POSITIVE",regex:new RegExp("^"+de),style:"number"},{name:"INTEGER_POSITIVE",regex:new RegExp("^"+Q),style:"number"},{name:"DOUBLE_NEGATIVE",regex:new RegExp("^"+me),style:"number"},{name:"DECIMAL_NEGATIVE",regex:new RegExp("^"+le),style:"number"},{name:"INTEGER_NEGATIVE",regex:new RegExp("^"+ue),style:"number"},{name:"STRING_LITERAL1",regex:new RegExp("^"+et),style:"string"},{name:"STRING_LITERAL2",regex:new RegExp("^"+je),style:"string"},{name:"NIL",regex:new RegExp("^"+Ie),style:"punc"},{name:"ANON",regex:new RegExp("^"+Ht),style:"punc"},{name:"PNAME_LN",regex:new RegExp("^"+v),style:"string-2"},{name:"PNAME_NS",regex:new RegExp("^"+x),style:"string-2"},{name:"BLANK_NODE_LABEL",regex:new RegExp("^"+S),style:"string-2"}];function ze(re){var k=[],Ze=s[re];if(Ze!=null)for(let Te in Ze)k.push(Te.toString());else k.push(re);return k}function De(re,k){function Ze(){let ie;if(k.inLiteral){var He=!1;if(ie=re.match(Tt[k.inLiteral].contents.regex,!0,!1),ie&&ie[0].length==0&&(ie=re.match(Tt[k.inLiteral].closing.regex,!0,!1),He=!0),ie&&ie[0].length>0){let Kt={quotePos:He?"end":"content",cat:Le[k.inLiteral].CAT,style:Tt[k.inLiteral].complete.style,string:ie[0],start:re.start};return He&&(k.inLiteral=void 0),Kt}}for(let Kt in Tt)if(ie=re.match(Tt[Kt].quotes.regex,!0,!1),ie){var zt;return k.inLiteral?(k.inLiteral=void 0,zt="end"):(k.inLiteral=Kt,zt="start"),{cat:Le[Kt].CAT,style:Tt[Kt].quotes.style,string:ie[0],quotePos:zt,start:re.start}}for(var qt=0;qt<he.length;++qt)if(ie=re.match(he[qt].regex,!0,!1),ie)return{cat:he[qt].name,style:he[qt].style,string:ie[0],start:re.start,quotePos:void 0};return ie=re.match(Qh,!0,!1),ie?{cat:re.current().toUpperCase(),style:"keyword",string:ie[0],start:re.start,quotePos:void 0}:(ie=re.match(Yh,!0,!1),ie?{cat:re.current(),style:"punc",string:ie[0],start:re.start,quotePos:void 0}:(ie=re.match(/^.[A-Za-z0-9]*/,!0,!1),{cat:"<invalid_token>",style:"error",string:ie[0],start:re.start,quotePos:void 0}))}function Te(){let ie=re.column();k.errorStartPos=ie,k.errorEndPos=ie+$.string.length}function ve(ie){if(k.queryType==null)switch(ie){case"SELECT":case"CONSTRUCT":case"ASK":case"DESCRIBE":case"INSERT":case"DELETE":case"LOAD":case"CLEAR":case"CREATE":case"DROP":case"COPY":case"MOVE":case"ADD":k.queryType=ie}}function We(ie){switch(ie==="prefixDecl"?k.inPrefixDecl=!0:k.inPrefixDecl=!1,ie){case"disallowVars":k.allowVars=!1;break;case"allowVars":k.allowVars=!0;break;case"disallowBnodes":k.allowBnodes=!1;break;case"allowBnodes":k.allowBnodes=!0;break;case"storeProperty":k.storeProperty=!0;break}}function jt(ie){return(k.allowVars||ie!="var")&&(k.allowBnodes||ie!="blankNode"&&ie!="blankNodePropertyList"&&ie!="blankNodePropertyListPath")}re.pos==0&&(k.possibleCurrent=k.possibleNext);let $=Ze();if($.cat=="<invalid_token>")return k.OK==!0&&(k.OK=!1,Te()),k.complete=!1,$.style;if($.cat==="WS"||$.cat==="COMMENT"||$.quotePos&&$.quotePos!="end")return k.possibleCurrent=k.possibleNext,k.possibleFullIri=!1,$.style;var Qt=!1,dt;let Pt=$.cat;if(k.possibleFullIri&&$.string===">"&&(k.possibleFullIri=!1),!k.possibleFullIri&&$.string==="<"&&(k.possibleFullIri=!0),!$.quotePos||$.quotePos=="end")for(;k.stack.length>0&&Pt&&k.OK&&!Qt;)if(dt=k.stack.pop(),dt==="var"&&$.string&&(k.variables[$.string]=$.string),s[dt]){let ie=s[dt][Pt];if(ie!=null&&jt(dt)){for(var tr=ie.length-1;tr>=0;--tr)k.stack.push(ie[tr]);We(dt)}else k.OK=!1,k.complete=!1,Te(),k.stack.push(dt)}else if(dt==Pt){k.inPrefixDecl&&(dt==="PNAME_NS"&&$.string.length>0?k.currentPnameNs=$.string.slice(0,-1):typeof k.currentPnameNs=="string"&&$.string.length>1&&(k.prefixes[k.currentPnameNs]=$.string.slice(1,-1),k.currentPnameNs=void 0)),Qt=!0,ve(dt);for(var Ur=!0,ti=k.stack.length;ti>0;--ti){let ie=s[k.stack[ti-1]];(!ie||!ie.$)&&(Ur=!1)}if(k.complete=Ur,k.storeProperty&&Pt!="punc"?(k.lastProperty=$.string,k.lastPropertyIndex=$.start,k.storeProperty=!1):(Pt==="."||Pt===";")&&(k.lastProperty="",k.lastPropertyIndex=0),!k.inPrefixDecl&&(Pt==="PNAME_NS"||Pt==="PNAME_LN")){let ie=$.string.indexOf(":");if(ie>=0){let He=$.string.slice(0,ie);k.prefixes[He]===void 0&&(k.OK=!1,Te(),k.errorMsg="Prefix '"+He+"' is not defined")}}}else k.OK=!1,k.complete=!1,Te();if(!Qt&&k.OK&&(k.OK=!1,k.complete=!1,Te()),k.possibleNext.indexOf("a")>=0){let ie=re.string;for(let He=$.start;He>=0;He--)if(ie[He-1]!==" "){ie[He-1]==="|"||ie[He-1]==="/"||$.style==="punc"||(k.lastPredicateOffset=$.start);break}}return k.possibleCurrent=k.possibleNext,k.possibleNext=ze(k.stack[k.stack.length-1]),$.style}let tt={"*[,, object]":3,"*[(,),object]":3,"*[(,),objectPath]":3,"*[/,pathEltOrInverse]":2,object:2,objectPath:2,objectList:2,objectListPath:2,storeProperty:2,pathMod:2,"?pathMod":2,propertyListNotEmpty:1,propertyList:1,propertyListPath:1,propertyListPathNotEmpty:1,"?[verb,objectList]":1},Ue={"}":1,"]":1,")":1,"{":-1,"(":-1,"[":-1};function Jt(re,k){if(re.inLiteral)return 0;if(re.lastPredicateOffset!==void 0&&re.stack.length&&re.stack[re.stack.length-1]=="?[or([verbPath,verbSimple]),objectListPath]")return re.lastPredicateOffset;var Ze=0,Te=re.stack.length-1;if(/^[\}\]\)]/.test(k)){let ve=k.substr(0,1);for(;Te>=0;--Te)if(re.stack[Te]==ve){--Te;break}}else{let ve=tt[re.stack[Te]];ve&&(Ze+=ve,--Te)}for(;Te>=0;--Te){let ve=Ue[re.stack[Te]];ve&&(Ze+=ve)}return Ze*(n.indentUnit??2)}return{token:De,startState:function(){return{tokenize:De,OK:!0,complete:Xh,errorStartPos:void 0,errorEndPos:void 0,queryType:void 0,possibleCurrent:ze(Fs),possibleNext:ze(Fs),allowVars:!0,allowBnodes:!0,storeProperty:!1,lastProperty:"",lastPropertyIndex:0,inLiteral:void 0,stack:[Fs],lastPredicateOffset:n.indentUnit||2,prefixes:{},variables:{},currentPnameNs:void 0,errorMsg:void 0,inPrefixDecl:!1,possibleFullIri:!1}},indent:Jt,electricChars:"}])"}}var GU=ft(Nl()),UU=ft($h()),FU=ft(rg()),BU=ft(og()),DU=ft(lg()),MU=ft(Tl()),PU=ft(vg()),VU=ft(Tg()),wU=ft(Sg());Bs.default.registerHelper("fold","prefix",bp);Bs.default.defineMode("sparql11",Jh);var QC=Bs.default,ei=QC;var Ge=class Ge extends ei{constructor(a,u={}){super();this.autocompleters={};this.prevQueryValid=!1;this.queryValid=!0;this.isFullscreen=!1;this.handleHashChange=()=>{this.config.consumeShareLink?.(this)};this.notificationEls={};if(!a)throw new Error("No parent passed as argument. Dont know where to draw YASQE");this.rootEl=document.createElement("div"),this.rootEl.className="yasqe",a.appendChild(this.rootEl),this.config=En({},Ge.defaults,u);let h=ei(this.rootEl,this.config);for(let m of Object.getOwnPropertyNames(Ge.prototype))h[m]=Ge.prototype[m].bind(this);Object.assign(this,ei.prototype,h),this.storage=new mi(Ge.storageNamespace),this.drawButtons();let g=this.getStorageId();if(g){let m=this.storage.get(g);m&&typeof m=="string"?this.persistentConfig={query:m,editorHeight:this.config.editorHeight}:this.persistentConfig=m,this.persistentConfig||(this.persistentConfig={query:this.getValue(),editorHeight:this.config.editorHeight}),this.persistentConfig&&this.persistentConfig.query&&this.setValue(this.persistentConfig.query)}this.config.autocompleters.forEach(m=>this.enableCompleter(m).then(()=>{},console.warn)),this.config.consumeShareLink&&(this.config.consumeShareLink(this),window.addEventListener("hashchange",this.handleHashChange)),this.checkSyntax(),this.persistentConfig&&this.persistentConfig.editorHeight?this.getWrapperElement().style.height=this.persistentConfig.editorHeight:this.config.editorHeight&&(this.getWrapperElement().style.height=this.config.editorHeight),this.config.resizeable&&this.drawResizer(),this.config.collapsePrefixesOnLoad&&this.collapsePrefixes(!0),this.registerEventListeners()}handleChange(){this.checkSyntax(),this.updateQueryButton()}handleBlur(){this.saveQuery()}handleChanges(){this.checkSyntax(),this.updateQueryButton()}handleCursorActivity(){this.autocomplete(!0);let a=this.getDoc().getCursor(),u=this.getTokenAt(a);u&&u.type==="variable-3"?this.showNotification("uri-describe-hint","Hold CTRL - left mouse click on URI to DESCRIBE"):this.hideNotification("uri-describe-hint")}handleQuery(a,u,h){this.req=u,this.abortController=h,this.updateQueryButton()}handleQueryResponse(a,u,h){this.lastQueryDuration=h,this.req=void 0,this.updateQueryButton()}handleQueryAbort(a,u){this.req=void 0,this.updateQueryButton()}registerEventListeners(){this.on("change",this.handleChange),this.on("blur",this.handleBlur),this.on("changes",this.handleChanges),this.on("cursorActivity",this.handleCursorActivity),this.on("query",this.handleQuery),this.on("queryResponse",this.handleQueryResponse),this.on("queryAbort",this.handleQueryAbort)}unregisterEventListeners(){this.off("change",this.handleChange),this.off("blur",this.handleBlur),this.off("changes",this.handleChanges),this.off("cursorActivity",this.handleCursorActivity),this.off("query",this.handleQuery),this.off("queryResponse",this.handleQueryResponse),this.off("queryAbort",this.handleQueryAbort)}emit(a,...u){ei.signal(this,a,this,...u)}getStorageId(a){let u=a||this.config.persistenceId;if(u)return typeof u=="string"?u:u(this)}drawButtons(){let a=document.createElement("div");if(a.className="yasqe_buttons",this.getWrapperElement().appendChild(a),this.config.pluginButtons){let m=this.config.pluginButtons();if(!m)return;if(Array.isArray(m))for(let I of m)a.append(I);else a.appendChild(m)}if(this.config.createShareableLink){var u=xi(Ah);let m=document.createElement("button");m.className="yasqe_share",m.title="Share query",m.setAttribute("aria-label","Share query"),m.appendChild(u),a.appendChild(m),m.addEventListener("click",T=>I(T)),m.addEventListener("keydown",T=>{T.code==="Enter"&&I(T)});let I=T=>{T.stopPropagation();let G=document.createElement("div");G.className="yasqe_sharePopup",a.appendChild(G),document.body.addEventListener("click",x=>{G&&x.target!==G&&!G.contains(x.target)&&(G.remove(),G=void 0)},!0);var L=document.createElement("input");L.type="text",L.value=this.config.createShareableLink(this),L.onfocus=function(){L.select()},L.onmouseup=function(){return!1},G.innerHTML="";var V=document.createElement("div");V.className="inputWrapper",V.appendChild(L),G.appendChild(V);let y=[],M=this.config.createShortLink;if(M){G.className=G.className+=" enableShort";let x=document.createElement("button");y.push(x),x.innerHTML="Shorten",x.className="yasqe_btn yasqe_btn-sm shorten",G.appendChild(x),x.onclick=()=>{y.forEach(v=>v.disabled=!0),M(this,L.value).then(v=>{L.value=v,L.focus()},v=>{let C=document.createElement("span");C.className="shortlinkErr";let R="An error has occurred";typeof v=="string"&&v.length!==0?R=v:v.message&&v.message.length!==0&&(R=v.message),C.textContent=R,L.replaceWith(C)})}}let F=document.createElement("button");y.push(F),F.innerText="cURL",F.className="yasqe_btn yasqe_btn-sm curl",G.appendChild(F),F.onclick=()=>{y.forEach(x=>x.disabled=!0),L.value=this.getAsCurlString(),L.focus(),G?.appendChild(F)};let S=u.getBoundingClientRect();G.style.top=u.offsetTop+S.height+"px",G.style.left=u.offsetLeft+u.clientWidth-G.clientWidth+"px",L.focus()}}if(this.config.showQueryButton){this.queryBtn=document.createElement("button"),Bt(this.queryBtn,"yasqe_queryButton");let m=xi(Th);Bt(m,"queryIcon"),this.queryBtn.appendChild(m);let I=xi(El);Bt(I,"warningIcon"),this.queryBtn.appendChild(I),this.queryBtn.onclick=()=>{this.config.queryingDisabled||(this.req?this.abortQuery():this.query().catch(()=>{}))},this.queryBtn.title="Run query",this.queryBtn.setAttribute("aria-label","Run query"),a.appendChild(this.queryBtn),this.updateQueryButton()}this.fullscreenBtn=document.createElement("button"),Bt(this.fullscreenBtn,"yasqe_fullscreenButton");let h=xi(Ch);Bt(h,"fullscreenIcon"),this.fullscreenBtn.appendChild(h);let g=xi(Sh);Bt(g,"fullscreenExitIcon"),this.fullscreenBtn.appendChild(g),this.fullscreenBtn.onclick=()=>{this.toggleFullscreen()},this.fullscreenBtn.title="Toggle fullscreen (F11)",this.fullscreenBtn.setAttribute("aria-label","Toggle fullscreen"),a.appendChild(this.fullscreenBtn)}toggleFullscreen(){this.isFullscreen=!this.isFullscreen,this.isFullscreen?(Bt(this.rootEl,"fullscreen"),this.fullscreenBtn?.setAttribute("title","Exit fullscreen (F11)")):(no(this.rootEl,"fullscreen"),this.fullscreenBtn?.setAttribute("title","Toggle fullscreen (F11)")),this.refresh()}getIsFullscreen(){return this.isFullscreen}drawResizer(){if(this.resizeWrapper)return;this.resizeWrapper=document.createElement("div"),Bt(this.resizeWrapper,"resizeWrapper");let a=document.createElement("div");Bt(a,"resizeChip"),this.resizeWrapper.appendChild(a),this.resizeWrapper.addEventListener("mousedown",this.initDrag,!1),this.resizeWrapper.addEventListener("dblclick",this.expandEditor),this.rootEl.appendChild(this.resizeWrapper)}initDrag(){document.documentElement.addEventListener("mousemove",this.doDrag,!1),document.documentElement.addEventListener("mouseup",this.stopDrag,!1)}calculateDragOffset(a,u){let h=0;u.offsetParent&&(h=u.offsetParent.offsetTop);let g=0,m=u.parentElement;for(;m;)g+=m.scrollTop,m=m.parentElement;return a.clientY-h-this.rootEl.offsetTop+g}doDrag(a){this.getWrapperElement().style.height=this.calculateDragOffset(a,this.rootEl)+"px"}stopDrag(){document.documentElement.removeEventListener("mousemove",this.doDrag,!1),document.documentElement.removeEventListener("mouseup",this.stopDrag,!1),this.emit("resize",this.getWrapperElement().style.height),this.getStorageId()&&this.persistentConfig&&(this.persistentConfig.editorHeight=this.getWrapperElement().style.height,this.saveQuery()),this.refresh()}duplicateLine(){let a=this.getDoc().getCursor();if(a){let u=this.getDoc().getLine(a.line);this.getDoc().replaceRange(u+`
|
|
45
|
+
`+u,{ch:0,line:a.line},{ch:u.length,line:a.line})}}updateQueryButton(a){this.queryBtn&&(this.config.queryingDisabled?(Bt(this.queryBtn,"query_disabled"),this.queryBtn.title=this.config.queryingDisabled):(no(this.queryBtn,"query_disabled"),this.queryBtn.title="Run query",this.queryBtn.setAttribute("aria-label","Run query")),a||(a=this.queryValid?"valid":"error"),a!=this.queryStatus&&(no(this.queryBtn,"query_"+this.queryStatus),Bt(this.queryBtn,"query_"+a),this.queryStatus=a),this.req&&this.queryBtn.className.indexOf("busy")<0&&(this.queryBtn.className=this.queryBtn.className+=" busy"),!this.req&&this.queryBtn.className.indexOf("busy")>=0&&(this.queryBtn.className=this.queryBtn.className.replace("busy","")))}handleLocalStorageQuotaFull(a){console.warn("Localstorage quota exceeded. Clearing all queries"),Ge.clearStorage()}saveQuery(){let a=this.getStorageId();!a||!this.persistentConfig||(this.persistentConfig.query=this.getValue(),this.storage.set(a,this.persistentConfig,this.config.persistencyExpire,this.handleLocalStorageQuotaFull))}getQueryType(){return this.getOption("queryType")}getQueryMode(){switch(this.getQueryType()){case"INSERT":case"DELETE":case"LOAD":case"CLEAR":case"CREATE":case"DROP":case"COPY":case"MOVE":case"ADD":return"update";default:return"query"}}getVariablesFromQuery(){let a=this.getTokenAt({line:this.getDoc().lastLine(),ch:this.getDoc().getLine(this.getDoc().lastLine()).length},!0),u=[];for(var h in a.state.variables)u.push(h);return u.sort()}autoformatSelection(a,u){var h=this.getValue();return h=h.substring(a,u),Ge.autoformatString(h)}static autoformatString(a){var u=[["keyword","ws","string-2","ws","variable-3"],["keyword","ws","variable-3"]],h=["}"],g=function(G){if(G==="{"||G===".")return 1;if(G===";")return T.length>2&&T[T.length-2]==="punc"?0:1;for(var L=0;L<u.length;L++)if(T.valueOf().toString()===u[L].valueOf().toString())return 1;for(var L=0;L<h.length;L++)if(I.trim()!==""&&G==h[L])return-1;return 0},m="",I="",T=[];return Ge.runMode(a,"sparql11",function(G,L){T.push(L);var V=g(G);V!=0?(V==1?(m+=G+`
|
|
46
46
|
`,I=""):(m+=`
|
|
47
|
-
`+
|
|
48
|
-
`).trim()}commentLines(){for(var a=this.getDoc().getCursor("start").line,u=this.getDoc().getCursor("end").line,h=Math.min(a,u),g=Math.max(a,u),m=!0,I=h;I<=g;I++){var T=this.getDoc().getLine(I);if(T.length==0||T.substring(0,1)!="#"){m=!1;break}}for(var I=h;I<=g;I++)m?this.getDoc().replaceRange("",{line:I,ch:0},{line:I,ch:1}):this.getDoc().replaceRange("#",{line:I,ch:0})}autoformat(){this.getDoc().somethingSelected()||this.execCommand("selectAll");let a=this.getDoc().getCursor("start");var u={line:this.getDoc().getCursor("end").line,ch:this.getDoc().getSelection().length},h=this.getDoc().indexFromPos(a),g=this.getDoc().indexFromPos(u);let m=this.autoformatSelection(h,g);this.operation(()=>{this.getDoc().replaceRange(m,a,u);for(var I=this.getDoc().posFromIndex(h).line,T=this.getDoc().posFromIndex(h+m.length).line,
|
|
47
|
+
`+G,I=G),T=[]):(I+=G,m+=G),T.length==1&&T[0]=="sp-ws"&&(T=[])}),m.replace(/\n\s*\n/g,`
|
|
48
|
+
`).trim()}commentLines(){for(var a=this.getDoc().getCursor("start").line,u=this.getDoc().getCursor("end").line,h=Math.min(a,u),g=Math.max(a,u),m=!0,I=h;I<=g;I++){var T=this.getDoc().getLine(I);if(T.length==0||T.substring(0,1)!="#"){m=!1;break}}for(var I=h;I<=g;I++)m?this.getDoc().replaceRange("",{line:I,ch:0},{line:I,ch:1}):this.getDoc().replaceRange("#",{line:I,ch:0})}autoformat(){this.getDoc().somethingSelected()||this.execCommand("selectAll");let a=this.getDoc().getCursor("start");var u={line:this.getDoc().getCursor("end").line,ch:this.getDoc().getSelection().length},h=this.getDoc().indexFromPos(a),g=this.getDoc().indexFromPos(u);let m=this.autoformatSelection(h,g);this.operation(()=>{this.getDoc().replaceRange(m,a,u);for(var I=this.getDoc().posFromIndex(h).line,T=this.getDoc().posFromIndex(h+m.length).line,G=I;G<=T;G++)this.indentLine(G,"smart")})}getQueryWithValues(a){if(!a)return this.getValue();var u;if(typeof a=="string")u=a;else{a instanceof Array||(a=[a]);var h=a.reduce(function(L,V){for(var y in V)L[y]=y;return L},{}),g=[];for(var m in h)g.push(m);if(!g.length)return this.getValue();u="VALUES ("+g.join(" ")+`) {
|
|
49
49
|
`,a.forEach(function(L){u+="( ",g.forEach(function(V){u+=L[V]||"UNDEF"}),u+=` )
|
|
50
50
|
`}),u+=`}
|
|
51
|
-
`}if(!u)return this.getValue();var I="",T=!1,
|
|
52
|
-
`+u)}),I}getValueWithoutComments(){var a="";return
|
|
51
|
+
`}if(!u)return this.getValue();var I="",T=!1,G=!1;return Ge.runMode(this.getValue(),"sparql11",function(L,V,y,M,F){V==="keyword"&&L.toLowerCase()==="select"&&(G=!0),I+=L,G&&!T&&V==="punc"&&L==="{"&&(T=!0,I+=`
|
|
52
|
+
`+u)}),I}getValueWithoutComments(){var a="";return Ge.runMode(this.getValue(),"sparql11",function(u,h){h!="comment"&&(a+=u)}),a}setCheckSyntaxErrors(a){this.config.syntaxErrorCheck=a,this.checkSyntax()}checkSyntax(){this.queryValid=!0,this.clearGutter("gutterErrorBar");for(var a,u=0;u<this.getDoc().lineCount();++u){var h=!1;this.prevQueryValid||(h=!0);var g=this.getTokenAt({line:u,ch:this.getDoc().getLine(u).length},h),a=g.state;if(this.setOption("queryType",a.queryType),a.OK==!1){if(!this.config.syntaxErrorCheck){let L=this.getWrapperElement().querySelectorAll(".sp-error");for(let V=0;V<L.length;V++){var m=L[V];m.style&&(m.style.color="black")}return}let G=xi(El);if(a.errorMsg)rs(this,G,Ss(g.state.errorMsg));else if(a.possibleCurrent&&a.possibleCurrent.length>0){var I=[];a.possibleCurrent.forEach(function(L){I.push("<strong style='text-decoration:underline'>"+Ss(L)+"</strong>")}),rs(this,G,"This line is invalid. Expected: "+I.join(", "))}G.className="parseErrorIcon",this.setGutterMarker(u,"gutterErrorBar",G),this.queryValid=!1;break}}}getCompleteToken(a,u){return Cp(this,a,u)}getPreviousNonWsToken(a,u){return Da(this,a,u)}getNextNonWsToken(a,u){return zi(this,a,u)}showNotification(a,u){if(!this.notificationEls[a]){let g=document.createElement("div");Bt(g,"notificationContainer"),this.getWrapperElement().appendChild(g),this.notificationEls[a]=document.createElement("div"),Bt(this.notificationEls[a],"notification","notif_"+a),g.appendChild(this.notificationEls[a])}for(let g in this.notificationEls)g!==a&&this.hideNotification(g);let h=this.notificationEls[a];Bt(h,"active"),h.innerText=u}hideNotification(a){this.notificationEls[a]&&no(this.notificationEls[a],"active")}enableCompleter(a){return Ge.Autocompleters[a]?(this.config.autocompleters.indexOf(a)<0&&this.config.autocompleters.push(a),(this.autocompleters[a]=new Gs(this,Ge.Autocompleters[a])).initialize()):Promise.reject(new Error("Autocompleter "+a+" is not a registered autocompleter"))}disableCompleter(a){this.config.autocompleters=this.config.autocompleters.filter(u=>u!==a),this.autocompleters[a]=void 0}autocomplete(a=!1){if(!this.getDoc().somethingSelected())for(let u in this.config.autocompleters){let h=this.autocompleters[this.config.autocompleters[u]];!h||h.autocomplete(a)}}collapsePrefixes(a=!0){let u=Rp(this);u!==void 0&&this.foldCode(u,ei.fold.prefix,a?"fold":"unfold")}getPrefixesFromQuery(){return Fp(this)}addPrefixes(a){return Gp(this,a)}removePrefixes(a){return Up(this,a)}updateWidget(){if(this.cursorCoords&&this.state.completionActive&&this.state.completionActive.widget){let a=this.cursorCoords(null).bottom;this.state.completionActive.widget.hints.style.top=a+"px"}}query(a){return this.config.queryingDisabled?Promise.reject("Querying is disabled."):(this.abortQuery(),dl(this,a))}getUrlParams(){let a={};return window.location.hash.length>1&&(a=Ds.parse(location.hash)),(!a||!("query"in a))&&window.location.search.length>1&&(a=Ds.parse(window.location.search)),a}configToQueryParams(){var a={};return window.location.hash.length>1&&(a=Ds.parse(window.location.hash)),a.query=this.getValue(),a}queryParamsToConfig(a){a&&a.query&&typeof a.query=="string"&&this.setValue(a.query)}getAsCurlString(a){return hl(this,a)}abortQuery(){this.req&&(this.abortController&&this.abortController.abort(),this.emit("queryAbort",this,this.req))}expandEditor(){this.setSize(null,"100%")}destroy(){this.abortQuery(),this.unregisterEventListeners(),this.resizeWrapper?.removeEventListener("mousedown",this.initDrag,!1),this.resizeWrapper?.removeEventListener("dblclick",this.expandEditor);for(let a in this.autocompleters)this.disableCompleter(a);window.removeEventListener("hashchange",this.handleHashChange),this.rootEl.remove()}static clearStorage(){new mi(Ge.storageNamespace).removeNamespace()}static registerAutocompleter(a,u=!0){let h=a.name;Ge.Autocompleters[h]=a,u&&Ge.defaults.autocompleters.indexOf(h)<0&&Ge.defaults.autocompleters.push(h)}static forkAutocompleter(a,u,h=!0){if(!Ge.Autocompleters[a])throw new Error("Autocompleter "+a+" does not exist");if(!u?.name)throw new Error("Expected a name for newly registered autocompleter");let g=u.name;Ge.Autocompleters[g]={...Ge.Autocompleters[a],...u},h&&Ge.defaults.autocompleters.indexOf(g)<0&&Ge.defaults.autocompleters.push(g)}};Ge.storageNamespace="triply",Ge.Sparql=gl,Ge.runMode=ei.runMode,Ge.Autocompleters={},Ge.defaults=Il();var xn=Ge;Object.assign(ei.prototype,xn.prototype);kh.forEach(n=>{xn.registerAutocompleter(n)});var YC=xn;return Om(XC);})();
|
|
53
53
|
/*! Bundled license information:
|
|
54
54
|
|
|
55
55
|
dompurify/dist/purify.es.mjs:
|