From 815f8d79ed2d4dcb30be3a7b17b257c1a0208eb6 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Tue, 1 Feb 2022 11:52:24 +0000 Subject: [PATCH] Updated version and assets for release v21.12.4 --- public/dist/app.js | 86 +++++++++++++++++++++++----------------------- version | 2 +- 2 files changed, 44 insertions(+), 44 deletions(-) diff --git a/public/dist/app.js b/public/dist/app.js index 6d034bd34..79e138825 100644 --- a/public/dist/app.js +++ b/public/dist/app.js @@ -1,62 +1,62 @@ -(()=>{var Sx=Object.create;var Xo=Object.defineProperty;var Ex=Object.getOwnPropertyDescriptor;var Cx=Object.getOwnPropertyNames;var Tx=Object.getPrototypeOf,Ax=Object.prototype.hasOwnProperty;var zc=i=>Xo(i,"__esModule",{value:!0});var Lx=(i,t)=>()=>(i&&(t=i(i=0)),t);var Me=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports),Dx=(i,t)=>{for(var n in t)Xo(i,n,{get:t[n],enumerable:!0})},Nc=(i,t,n,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of Cx(t))!Ax.call(i,c)&&(n||c!=="default")&&Xo(i,c,{get:()=>t[c],enumerable:!(l=Ex(t,c))||l.enumerable});return i},_t=(i,t)=>Nc(zc(Xo(i!=null?Sx(Tx(i)):{},"default",!t&&i&&i.__esModule?{get:()=>i.default,enumerable:!0}:{value:i,enumerable:!0})),i),Ix=(i=>(t,n)=>i&&i.get(t)||(n=Nc(zc({}),t,1),i&&i.set(t,n),n))(typeof WeakMap!="undefined"?new WeakMap:0);var Tt=Me((Xs,Zs)=>{(function(i,t){typeof Xs=="object"&&typeof Zs!="undefined"?Zs.exports=t():typeof define=="function"&&define.amd?define(t):(i=i||self,i.CodeMirror=t())})(Xs,function(){"use strict";var i=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(i),l=/MSIE \d/.test(i),c=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i),d=/Edge\/(\d+)/.exec(i),o=l||c||d,h=o&&(l?document.documentMode||6:+(d||c)[1]),f=!d&&/WebKit\//.test(i),p=f&&/Qt\/\d+\.\d+/.test(i),y=!d&&/Chrome\//.test(i),m=/Opera\//.test(i),v=/Apple Computer/.test(navigator.vendor),b=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i),k=/PhantomJS/.test(i),E=v&&(/Mobile\/\w+/.test(i)||navigator.maxTouchPoints>2),w=/Android/.test(i),I=E||w||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i),S=E||/Mac/.test(t),N=/\bCrOS\b/.test(i),O=/win/i.test(t),j=m&&i.match(/Version\/(\d*\.\d*)/);j&&(j=Number(j[1])),j&&j>=15&&(m=!1,f=!0);var U=S&&(p||m&&(j==null||j<12.11)),ee=n||o&&h>=9;function V(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var W=function(e,r){var s=e.className,a=V(r).exec(s);if(a){var u=s.slice(a.index+a[0].length);e.className=s.slice(0,a.index)+(u?a[1]+u:"")}};function K(e){for(var r=e.childNodes.length;r>0;--r)e.removeChild(e.firstChild);return e}function q(e,r){return K(e).appendChild(r)}function R(e,r,s,a){var u=document.createElement(e);if(s&&(u.className=s),a&&(u.style.cssText=a),typeof r=="string")u.appendChild(document.createTextNode(r));else if(r)for(var g=0;g=r)return x+(r-g);x+=_-g,x+=s-x%s,g=_+1}}var Fe=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};Fe.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Fe.prototype.set=function(e,r){this.f=r;var s=+new Date+e;(!this.id||s=r)return a+Math.min(x,r-u);if(u+=g-a,u+=s-u%s,a=g+1,u>=r)return a}}var at=[""];function gt(e){for(;at.length<=e;)at.push(Re(at)+" ");return at[e]}function Re(e){return e[e.length-1]}function Ie(e,r){for(var s=[],a=0;a"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Je.test(e))}function X(e,r){return r?r.source.indexOf("\\w")>-1&&Se(e)?!0:r.test(e):Se(e)}function de(e){for(var r in e)if(e.hasOwnProperty(r)&&e[r])return!1;return!0}var ue=/[\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 it(e){return e.charCodeAt(0)>=768&&ue.test(e)}function Ne(e,r,s){for(;(s<0?r>0:rs?-1:1;;){if(r==s)return r;var u=(r+s)/2,g=a<0?Math.ceil(u):Math.floor(u);if(g==r)return e(g)?r:s;e(g)?s=g:r=g+a}}function Xe(e,r,s,a){if(!e)return a(r,s,"ltr",0);for(var u=!1,g=0;gr||r==s&&x.to==r)&&(a(Math.max(x.from,r),Math.min(x.to,s),x.level==1?"rtl":"ltr",g),u=!0)}u||a(r,s,"ltr")}var et=null;function We(e,r,s){var a;et=null;for(var u=0;ur)return u;g.to==r&&(g.from!=g.to&&s=="before"?a=u:et=u),g.from==r&&(g.from!=g.to&&s!="before"?a=u:et=u)}return a!=null?a:et}var $t=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function s(L){return L<=247?e.charAt(L):1424<=L&&L<=1524?"R":1536<=L&&L<=1785?r.charAt(L-1536):1774<=L&&L<=2220?"r":8192<=L&&L<=8203?"w":L==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,g=/[LRr]/,x=/[Lb1n]/,_=/[1n]/;function C(L,Y,J){this.level=L,this.from=Y,this.to=J}return function(L,Y){var J=Y=="ltr"?"L":"R";if(L.length==0||Y=="ltr"&&!a.test(L))return!1;for(var fe=L.length,le=[],ye=0;ye-1&&(a[r]=u.slice(0,g).concat(u.slice(g+1)))}}}function rt(e,r){var s=Mt(e,r);if(!!s.length)for(var a=Array.prototype.slice.call(arguments,2),u=0;u0}function Vt(e){e.prototype.on=function(r,s){lt(this,r,s)},e.prototype.off=function(r,s){pt(this,r,s)}}function kt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function st(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ht(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Ir(e){kt(e),st(e)}function hr(e){return e.target||e.srcElement}function pr(e){var r=e.which;return r==null&&(e.button&1?r=1:e.button&2?r=3:e.button&4&&(r=2)),S&&e.ctrlKey&&r==1&&(r=3),r}var $r=function(){if(o&&h<9)return!1;var e=R("div");return"draggable"in e||"dragDrop"in e}(),zt;function yr(e){if(zt==null){var r=R("span","\u200B");q(e,R("span",[r,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(zt=r.offsetWidth<=1&&r.offsetHeight>2&&!(o&&h<8))}var s=zt?R("span","\u200B"):R("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return s.setAttribute("cm-text",""),s}var ur;function Qt(e){if(ur!=null)return ur;var r=q(e,document.createTextNode("A\u062EA")),s=H(r,0,1).getBoundingClientRect(),a=H(r,1,2).getBoundingClientRect();return K(e),!s||s.left==s.right?!1:ur=a.right-s.right<3}var ie=` +(()=>{var kx=Object.create;var Xo=Object.defineProperty;var _x=Object.getOwnPropertyDescriptor;var Sx=Object.getOwnPropertyNames;var Ex=Object.getPrototypeOf,Cx=Object.prototype.hasOwnProperty;var zc=i=>Xo(i,"__esModule",{value:!0});var Tx=(i,t)=>()=>(i&&(t=i(i=0)),t);var Me=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports),Ax=(i,t)=>{zc(i);for(var n in t)Xo(i,n,{get:t[n],enumerable:!0})},Lx=(i,t,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of Sx(t))!Cx.call(i,l)&&l!=="default"&&Xo(i,l,{get:()=>t[l],enumerable:!(n=_x(t,l))||n.enumerable});return i},_t=i=>Lx(zc(Xo(i!=null?kx(Ex(i)):{},"default",i&&i.__esModule&&"default"in i?{get:()=>i.default,enumerable:!0}:{value:i,enumerable:!0})),i);var Tt=Me((Ys,Xs)=>{(function(i,t){typeof Ys=="object"&&typeof Xs!="undefined"?Xs.exports=t():typeof define=="function"&&define.amd?define(t):(i=i||self,i.CodeMirror=t())})(Ys,function(){"use strict";var i=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(i),l=/MSIE \d/.test(i),c=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i),d=/Edge\/(\d+)/.exec(i),a=l||c||d,h=a&&(l?document.documentMode||6:+(d||c)[1]),f=!d&&/WebKit\//.test(i),p=f&&/Qt\/\d+\.\d+/.test(i),y=!d&&/Chrome\//.test(i),g=/Opera\//.test(i),v=/Apple Computer/.test(navigator.vendor),b=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i),k=/PhantomJS/.test(i),E=v&&(/Mobile\/\w+/.test(i)||navigator.maxTouchPoints>2),w=/Android/.test(i),I=E||w||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i),S=E||/Mac/.test(t),P=/\bCrOS\b/.test(i),F=/win/i.test(t),H=g&&i.match(/Version\/(\d*\.\d*)/);H&&(H=Number(H[1])),H&&H>=15&&(g=!1,f=!0);var $=S&&(p||g&&(H==null||H<12.11)),J=n||a&&h>=9;function K(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var Y=function(e,r){var s=e.className,o=K(r).exec(s);if(o){var u=s.slice(o.index+o[0].length);e.className=s.slice(0,o.index)+(u?o[1]+u:"")}};function G(e){for(var r=e.childNodes.length;r>0;--r)e.removeChild(e.firstChild);return e}function j(e,r){return G(e).appendChild(r)}function z(e,r,s,o){var u=document.createElement(e);if(s&&(u.className=s),o&&(u.style.cssText=o),typeof r=="string")u.appendChild(document.createTextNode(r));else if(r)for(var m=0;m=r)return x+(r-m);x+=_-m,x+=s-x%s,m=_+1}}var Fe=function(){this.id=null,this.f=null,this.time=0,this.handler=M(this.onTimeout,this)};Fe.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Fe.prototype.set=function(e,r){this.f=r;var s=+new Date+e;(!this.id||s=r)return o+Math.min(x,r-u);if(u+=m-o,u+=s-u%s,o=m+1,u>=r)return o}}var at=[""];function gt(e){for(;at.length<=e;)at.push(Re(at)+" ");return at[e]}function Re(e){return e[e.length-1]}function Ie(e,r){for(var s=[],o=0;o"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Je.test(e))}function X(e,r){return r?r.source.indexOf("\\w")>-1&&Se(e)?!0:r.test(e):Se(e)}function de(e){for(var r in e)if(e.hasOwnProperty(r)&&e[r])return!1;return!0}var ue=/[\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 it(e){return e.charCodeAt(0)>=768&&ue.test(e)}function Ne(e,r,s){for(;(s<0?r>0:rs?-1:1;;){if(r==s)return r;var u=(r+s)/2,m=o<0?Math.ceil(u):Math.floor(u);if(m==r)return e(m)?r:s;e(m)?s=m:r=m+o}}function Xe(e,r,s,o){if(!e)return o(r,s,"ltr",0);for(var u=!1,m=0;mr||r==s&&x.to==r)&&(o(Math.max(x.from,r),Math.min(x.to,s),x.level==1?"rtl":"ltr",m),u=!0)}u||o(r,s,"ltr")}var et=null;function We(e,r,s){var o;et=null;for(var u=0;ur)return u;m.to==r&&(m.from!=m.to&&s=="before"?o=u:et=u),m.from==r&&(m.from!=m.to&&s!="before"?o=u:et=u)}return o!=null?o:et}var jt=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function s(L){return L<=247?e.charAt(L):1424<=L&&L<=1524?"R":1536<=L&&L<=1785?r.charAt(L-1536):1774<=L&&L<=2220?"r":8192<=L&&L<=8203?"w":L==8204?"b":"L"}var o=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,m=/[LRr]/,x=/[Lb1n]/,_=/[1n]/;function T(L,V,ee){this.level=L,this.from=V,this.to=ee}return function(L,V){var ee=V=="ltr"?"L":"R";if(L.length==0||V=="ltr"&&!o.test(L))return!1;for(var fe=L.length,le=[],ye=0;ye-1&&(o[r]=u.slice(0,m).concat(u.slice(m+1)))}}}function rt(e,r){var s=Mt(e,r);if(!!s.length)for(var o=Array.prototype.slice.call(arguments,2),u=0;u0}function Vt(e){e.prototype.on=function(r,s){lt(this,r,s)},e.prototype.off=function(r,s){pt(this,r,s)}}function kt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function st(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ht(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Ir(e){kt(e),st(e)}function hr(e){return e.target||e.srcElement}function pr(e){var r=e.which;return r==null&&(e.button&1?r=1:e.button&2?r=3:e.button&4&&(r=2)),S&&e.ctrlKey&&r==1&&(r=3),r}var jr=function(){if(a&&h<9)return!1;var e=z("div");return"draggable"in e||"dragDrop"in e}(),zt;function yr(e){if(zt==null){var r=z("span","\u200B");j(e,z("span",[r,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(zt=r.offsetWidth<=1&&r.offsetHeight>2&&!(a&&h<8))}var s=zt?z("span","\u200B"):z("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return s.setAttribute("cm-text",""),s}var ur;function Qt(e){if(ur!=null)return ur;var r=j(e,document.createTextNode("A\u062EA")),s=U(r,0,1).getBoundingClientRect(),o=U(r,1,2).getBoundingClientRect();return G(e),!s||s.left==s.right?!1:ur=o.right-s.right<3}var ie=` -b`.split(/\n/).length!=3?function(e){for(var r=0,s=[],a=e.length;r<=a;){var u=e.indexOf(` -`,r);u==-1&&(u=e.length);var g=e.slice(r,e.charAt(u-1)=="\r"?u-1:u),x=g.indexOf("\r");x!=-1?(s.push(g.slice(0,x)),r+=x+1):(s.push(g),r=u+1)}return s}:function(e){return e.split(/\r\n?|\n/)},oe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var r;try{r=e.ownerDocument.selection.createRange()}catch{}return!r||r.parentElement()!=e?!1:r.compareEndPoints("StartToEnd",r)!=0},Q=function(){var e=R("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),re=null;function M(e){if(re!=null)return re;var r=q(e,R("span","x")),s=r.getBoundingClientRect(),a=H(r,0,1).getBoundingClientRect();return re=Math.abs(s.left-a.left)>1}var B={},te={};function ce(e,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),B[e]=r}function me(e,r){te[e]=r}function ve(e){if(typeof e=="string"&&te.hasOwnProperty(e))e=te[e];else if(e&&typeof e.name=="string"&&te.hasOwnProperty(e.name)){var r=te[e.name];typeof r=="string"&&(r={name:r}),e=He(r,e),e.name=r.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return ve("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return ve("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Le(e,r){r=ve(r);var s=B[r.name];if(!s)return Le(e,"text/plain");var a=s(e,r);if(Oe.hasOwnProperty(r.name)){var u=Oe[r.name];for(var g in u)!u.hasOwnProperty(g)||(a.hasOwnProperty(g)&&(a["_"+g]=a[g]),a[g]=u[g])}if(a.name=r.name,r.helperType&&(a.helperType=r.helperType),r.modeProps)for(var x in r.modeProps)a[x]=r.modeProps[x];return a}var Oe={};function Ce(e,r){var s=Oe.hasOwnProperty(e)?Oe[e]:Oe[e]={};A(r,s)}function Ve(e,r){if(r===!0)return r;if(e.copyState)return e.copyState(r);var s={};for(var a in r){var u=r[a];u instanceof Array&&(u=u.concat([])),s[a]=u}return s}function St(e,r){for(var s;e.innerMode&&(s=e.innerMode(r),!(!s||s.mode==e));)r=s.state,e=s.mode;return s||{mode:e,state:r}}function mt(e,r,s){return e.startState?e.startState(r,s):!0}var G=function(e,r,s){this.pos=this.start=0,this.string=e,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=s};G.prototype.eol=function(){return this.pos>=this.string.length},G.prototype.sol=function(){return this.pos==this.lineStart},G.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},G.prototype.next=function(){if(this.posr},G.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},G.prototype.skipToEnd=function(){this.pos=this.string.length},G.prototype.skipTo=function(e){var r=this.string.indexOf(e,this.pos);if(r>-1)return this.pos=r,!0},G.prototype.backUp=function(e){this.pos-=e},G.prototype.column=function(){return this.lastColumnPos0?null:(g&&r!==!1&&(this.pos+=g[0].length),g)}},G.prototype.current=function(){return this.string.slice(this.start,this.pos)},G.prototype.hideFirstChars=function(e,r){this.lineStart+=e;try{return r()}finally{this.lineStart-=e}},G.prototype.lookAhead=function(e){var r=this.lineOracle;return r&&r.lookAhead(e)},G.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function se(e,r){if(r-=e.first,r<0||r>=e.size)throw new Error("There is no line "+(r+e.first)+" in the document.");for(var s=e;!s.lines;)for(var a=0;;++a){var u=s.children[a],g=u.chunkSize();if(r=e.first&&rs?we(s,se(e,s).text.length):Yt(r,se(e,r.line).text.length)}function Yt(e,r){var s=e.ch;return s==null||s>r?we(e.line,r):s<0?we(e.line,0):e}function Fr(e,r){for(var s=[],a=0;athis.maxLookAhead&&(this.maxLookAhead=e),r},Vr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Vr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Vr.fromSaved=function(e,r,s){return r instanceof Wn?new Vr(e,Ve(e.mode,r.state),s,r.lookAhead):new Vr(e,Ve(e.mode,r),s)},Vr.prototype.save=function(e){var r=e!==!1?Ve(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Wn(r,this.maxLookAhead):r};function Bl(e,r,s,a){var u=[e.state.modeGen],g={};Wl(e,r.text,e.doc.mode,s,function(L,Y){return u.push(L,Y)},g,a);for(var x=s.state,_=function(L){s.baseTokens=u;var Y=e.state.overlays[L],J=1,fe=0;s.state=!0,Wl(e,r.text,Y.mode,s,function(le,ye){for(var Ee=J;fele&&u.splice(J,1,le,u[J+1],Pe),J+=2,fe=Math.min(le,Pe)}if(!!ye)if(Y.opaque)u.splice(Ee,J-Ee,le,"overlay "+ye),J=Ee+2;else for(;Eee.options.maxHighlightLength&&Ve(e.doc.mode,a.state),g=Bl(e,r,a);u&&(a.state=u),r.stateAfter=a.save(!u),r.styles=g.styles,g.classes?r.styleClasses=g.classes:r.styleClasses&&(r.styleClasses=null),s===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return r.styles}function Ci(e,r,s){var a=e.doc,u=e.display;if(!a.mode.startState)return new Vr(a,!0,r);var g=Cy(e,r,s),x=g>a.first&&se(a,g-1).stateAfter,_=x?Vr.fromSaved(a,x,g):new Vr(a,mt(a.mode),g);return a.iter(g,r,function(C){$a(e,C.text,_);var L=_.line;C.stateAfter=L==r-1||L%5==0||L>=u.viewFrom&&Lr.start)return g}throw new Error("Mode "+e.name+" failed to advance stream.")}var Ul=function(e,r,s){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=r||null,this.state=s};function jl(e,r,s,a){var u=e.doc,g=u.mode,x;r=Ze(u,r);var _=se(u,r.line),C=Ci(e,r.line,s),L=new G(_.text,e.options.tabSize,C),Y;for(a&&(Y=[]);(a||L.pose.options.maxHighlightLength?(_=!1,x&&$a(e,r,a,Y.pos),Y.pos=r.length,J=null):J=Hl(Ua(s,Y,a.state,fe),g),fe){var le=fe[0].name;le&&(J="m-"+(J?le+" "+J:le))}if(!_||L!=J){for(;Cx;--_){if(_<=g.first)return g.first;var C=se(g,_-1),L=C.stateAfter;if(L&&(!s||_+(L instanceof Wn?L.lookAhead:0)<=g.modeFrontier))return _;var Y=be(C.text,null,e.options.tabSize);(u==null||a>Y)&&(u=_-1,a=Y)}return u}function Ty(e,r){if(e.modeFrontier=Math.min(e.modeFrontier,r),!(e.highlightFrontiers;a--){var u=se(e,a).stateAfter;if(u&&(!(u instanceof Wn)||a+u.lookAhead=r:g.to>r);(a||(a=[])).push(new wo(x,g.from,C?null:g.to))}}return a}function My(e,r,s){var a;if(e)for(var u=0;u=r:g.to>r);if(_||g.from==r&&x.type=="bookmark"&&(!s||g.marker.insertLeft)){var C=g.from==null||(x.inclusiveLeft?g.from<=r:g.from0&&_)for(var nt=0;nt<_.length;++nt)_[nt].to==null&&(Ue||(Ue=[])).push(new wo(_[nt].marker,null,null));for(var ct=0;ct0)){var Y=[C,1],J=D(L.from,_.from),fe=D(L.to,_.to);(J<0||!x.inclusiveLeft&&!J)&&Y.push({from:L.from,to:_.from}),(fe>0||!x.inclusiveRight&&!fe)&&Y.push({from:_.to,to:L.to}),u.splice.apply(u,Y),C+=Y.length-3}}return u}function Vl(e){var r=e.markedSpans;if(!!r){for(var s=0;sr)&&(!a||Ha(a,g.marker)<0)&&(a=g.marker)}return a}function Ql(e,r,s,a,u){var g=se(e,r),x=an&&g.markedSpans;if(x)for(var _=0;_=0&&J<=0||Y<=0&&J>=0)&&(Y<=0&&(C.marker.inclusiveRight&&u.inclusiveLeft?D(L.to,s)>=0:D(L.to,s)>0)||Y>=0&&(C.marker.inclusiveRight&&u.inclusiveLeft?D(L.from,a)<=0:D(L.from,a)<0)))return!0}}}function Ur(e){for(var r;r=Zl(e);)e=r.find(-1,!0).line;return e}function Ry(e){for(var r;r=So(e);)e=r.find(1,!0).line;return e}function zy(e){for(var r,s;r=So(e);)e=r.find(1,!0).line,(s||(s=[])).push(e);return s}function Wa(e,r){var s=se(e,r),a=Ur(s);return s==a?r:Ye(a)}function Jl(e,r){if(r>e.lastLine())return r;var s=se(e,r),a;if(!gn(e,s))return r;for(;a=So(s);)s=a.find(1,!0).line;return Ye(s)+1}function gn(e,r){var s=an&&r.markedSpans;if(s){for(var a=void 0,u=0;ur.maxLineLength&&(r.maxLineLength=u,r.maxLine=a)})}var Gn=function(e,r,s){this.text=e,Yl(this,r),this.height=s?s(this):1};Gn.prototype.lineNo=function(){return Ye(this)},Vt(Gn);function Ny(e,r,s,a){e.text=r,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Vl(e),Yl(e,s);var u=a?a(e):1;u!=e.height&&Ae(e,u)}function By(e){e.parent=null,Vl(e)}var qy={},$y={};function eu(e,r){if(!e||/^\s*$/.test(e))return null;var s=r.addModeClass?$y:qy;return s[e]||(s[e]=e.replace(/\S+/g,"cm-$&"))}function tu(e,r){var s=T("span",null,null,f?"padding-right: .1px":null),a={pre:T("pre",[s],"CodeMirror-line"),content:s,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};r.measure={};for(var u=0;u<=(r.rest?r.rest.length:0);u++){var g=u?r.rest[u-1]:r.line,x=void 0;a.pos=0,a.addToken=jy,Qt(e.display.measure)&&(x=Lt(g,e.doc.direction))&&(a.addToken=Wy(a.addToken,x)),a.map=[];var _=r!=e.display.externalMeasured&&Ye(g);Gy(g,a,ql(e,g,_)),g.styleClasses&&(g.styleClasses.bgClass&&(a.bgClass=ne(g.styleClasses.bgClass,a.bgClass||"")),g.styleClasses.textClass&&(a.textClass=ne(g.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(yr(e.display.measure))),u==0?(r.measure.map=a.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(a.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(f){var C=a.content.lastChild;(/\bcm-tab\b/.test(C.className)||C.querySelector&&C.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return rt(e,"renderLine",e,r.line,a.pre),a.pre.className&&(a.textClass=ne(a.pre.className,a.textClass||"")),a}function Uy(e){var r=R("span","\u2022","cm-invalidchar");return r.title="\\u"+e.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function jy(e,r,s,a,u,g,x){if(!!r){var _=e.splitSpaces?Hy(r,e.trailingSpace):r,C=e.cm.state.specialChars,L=!1,Y;if(!C.test(r))e.col+=r.length,Y=document.createTextNode(_),e.map.push(e.pos,e.pos+r.length,Y),o&&h<9&&(L=!0),e.pos+=r.length;else{Y=document.createDocumentFragment();for(var J=0;;){C.lastIndex=J;var fe=C.exec(r),le=fe?fe.index-J:r.length-J;if(le){var ye=document.createTextNode(_.slice(J,J+le));o&&h<9?Y.appendChild(R("span",[ye])):Y.appendChild(ye),e.map.push(e.pos,e.pos+le,ye),e.col+=le,e.pos+=le}if(!fe)break;J+=le+1;var Ee=void 0;if(fe[0]==" "){var Pe=e.cm.options.tabSize,$e=Pe-e.col%Pe;Ee=Y.appendChild(R("span",gt($e),"cm-tab")),Ee.setAttribute("role","presentation"),Ee.setAttribute("cm-text"," "),e.col+=$e}else fe[0]=="\r"||fe[0]==` -`?(Ee=Y.appendChild(R("span",fe[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ee.setAttribute("cm-text",fe[0]),e.col+=1):(Ee=e.cm.options.specialCharPlaceholder(fe[0]),Ee.setAttribute("cm-text",fe[0]),o&&h<9?Y.appendChild(R("span",[Ee])):Y.appendChild(Ee),e.col+=1);e.map.push(e.pos,e.pos+1,Ee),e.pos++}}if(e.trailingSpace=_.charCodeAt(r.length-1)==32,s||a||u||L||g||x){var Qe=s||"";a&&(Qe+=a),u&&(Qe+=u);var Ue=R("span",[Y],Qe,g);if(x)for(var nt in x)x.hasOwnProperty(nt)&&nt!="style"&&nt!="class"&&Ue.setAttribute(nt,x[nt]);return e.content.appendChild(Ue)}e.content.appendChild(Y)}}function Hy(e,r){if(e.length>1&&!/ /.test(e))return e;for(var s=r,a="",u=0;uL&&J.from<=L));fe++);if(J.to>=Y)return e(s,a,u,g,x,_,C);e(s,a.slice(0,J.to-L),u,g,null,_,C),g=null,a=a.slice(J.to-L),L=J.to}}}function ru(e,r,s,a){var u=!a&&s.widgetNode;u&&e.map.push(e.pos,e.pos+r,u),!a&&e.cm.display.input.needsContentAttribute&&(u||(u=e.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",s.id)),u&&(e.cm.display.input.setUneditable(u),e.content.appendChild(u)),e.pos+=r,e.trailingSpace=!1}function Gy(e,r,s){var a=e.markedSpans,u=e.text,g=0;if(!a){for(var x=1;xC||vt.collapsed&&ut.to==C&&ut.from==C)){if(ut.to!=null&&ut.to!=C&&le>ut.to&&(le=ut.to,Ee=""),vt.className&&(ye+=" "+vt.className),vt.css&&(fe=(fe?fe+";":"")+vt.css),vt.startStyle&&ut.from==C&&(Pe+=" "+vt.startStyle),vt.endStyle&&ut.to==le&&(nt||(nt=[])).push(vt.endStyle,ut.to),vt.title&&((Qe||(Qe={})).title=vt.title),vt.attributes)for(var Pt in vt.attributes)(Qe||(Qe={}))[Pt]=vt.attributes[Pt];vt.collapsed&&(!$e||Ha($e.marker,vt)<0)&&($e=ut)}else ut.from>C&&le>ut.from&&(le=ut.from)}if(nt)for(var ir=0;ir=_)break;for(var Lr=Math.min(_,le);;){if(Y){var Sr=C+Y.length;if(!$e){var Xt=Sr>Lr?Y.slice(0,Lr-C):Y;r.addToken(r,Xt,J?J+ye:ye,Pe,C+Xt.length==le?Ee:"",fe,Qe)}if(Sr>=Lr){Y=Y.slice(Lr-C),C=Lr;break}C=Sr,Pe=""}Y=u.slice(g,g=s[L++]),J=eu(s[L++],r.cm.options)}}}function nu(e,r,s){this.line=r,this.rest=zy(r),this.size=this.rest?Ye(Re(this.rest))-s+1:1,this.node=this.text=null,this.hidden=gn(e,r)}function Co(e,r,s){for(var a=[],u,g=r;g2&&g.push((C.bottom+L.top)/2-s.top)}}g.push(s.bottom-s.top)}}function cu(e,r,s){if(e.line==r)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var a=0;as)return{map:e.measure.maps[u],cache:e.measure.caches[u],before:!0}}}function nb(e,r){r=Ur(r);var s=Ye(r),a=e.display.externalMeasured=new nu(e.doc,r,s);a.lineN=s;var u=a.built=tu(e,a);return a.text=u.pre,q(e.display.lineMeasure,u.pre),a}function fu(e,r,s,a){return Xr(e,Vn(e,r),s,a)}function Za(e,r){if(r>=e.display.viewFrom&&r=s.lineN&&rr)&&(g=C-_,u=g-1,r>=C&&(x="right")),u!=null){if(a=e[L+2],_==C&&s==(a.insertLeft?"left":"right")&&(x=s),s=="left"&&u==0)for(;L&&e[L-2]==e[L-3]&&e[L-1].insertLeft;)a=e[(L-=3)+2],x="left";if(s=="right"&&u==C-_)for(;L=0&&(s=e[u]).left==s.right;u--);return s}function ob(e,r,s,a){var u=hu(r.map,s,a),g=u.node,x=u.start,_=u.end,C=u.collapse,L;if(g.nodeType==3){for(var Y=0;Y<4;Y++){for(;x&&it(r.line.text.charAt(u.coverStart+x));)--x;for(;u.coverStart+_0&&(C=a="right");var J;e.options.lineWrapping&&(J=g.getClientRects()).length>1?L=J[a=="right"?J.length-1:0]:L=g.getBoundingClientRect()}if(o&&h<9&&!x&&(!L||!L.left&&!L.right)){var fe=g.parentNode.getClientRects()[0];fe?L={left:fe.left,right:fe.left+Xn(e.display),top:fe.top,bottom:fe.bottom}:L=du}for(var le=L.top-r.rect.top,ye=L.bottom-r.rect.top,Ee=(le+ye)/2,Pe=r.view.measure.heights,$e=0;$e=a.text.length?(C=a.text.length,L="before"):C<=0&&(C=0,L="after"),!_)return x(L=="before"?C-1:C,L=="before");function Y(ye,Ee,Pe){var $e=_[Ee],Qe=$e.level==1;return x(Pe?ye-1:ye,Qe!=Pe)}var J=We(_,C,L),fe=et,le=Y(C,J,L=="before");return fe!=null&&(le.other=Y(C,fe,L!="before")),le}function bu(e,r){var s=0;r=Ze(e.doc,r),e.options.lineWrapping||(s=Xn(e.display)*r.ch);var a=se(e.doc,r.line),u=sn(a)+To(e.display);return{left:s,right:s,top:u,bottom:u+a.height}}function Ja(e,r,s,a,u){var g=we(e,r,s);return g.xRel=u,a&&(g.outside=a),g}function es(e,r,s){var a=e.doc;if(s+=e.display.viewOffset,s<0)return Ja(a.first,0,null,-1,-1);var u=tt(a,s),g=a.first+a.size-1;if(u>g)return Ja(a.first+a.size-1,se(a,g).text.length,null,1,1);r<0&&(r=0);for(var x=se(a,u);;){var _=sb(e,x,u,r,s),C=Py(x,_.ch+(_.xRel>0||_.outside>0?1:0));if(!C)return _;var L=C.find(1);if(L.line==u)return L;x=se(a,u=L.line)}}function xu(e,r,s,a){a-=Qa(r);var u=r.text.length,g=ot(function(x){return Xr(e,s,x-1).bottom<=a},u,0);return u=ot(function(x){return Xr(e,s,x).top>a},g,u),{begin:g,end:u}}function wu(e,r,s,a){s||(s=Vn(e,r));var u=Ao(e,r,Xr(e,s,a),"line").top;return xu(e,r,s,u)}function ts(e,r,s,a){return e.bottom<=s?!1:e.top>s?!0:(a?e.left:e.right)>r}function sb(e,r,s,a,u){u-=sn(r);var g=Vn(e,r),x=Qa(r),_=0,C=r.text.length,L=!0,Y=Lt(r,e.doc.direction);if(Y){var J=(e.options.lineWrapping?ub:lb)(e,r,s,g,Y,a,u);L=J.level!=1,_=L?J.from:J.to-1,C=L?J.to:J.from-1}var fe=null,le=null,ye=ot(function(ct){var ut=Xr(e,g,ct);return ut.top+=x,ut.bottom+=x,ts(ut,a,u,!1)?(ut.top<=u&&ut.left<=a&&(fe=ct,le=ut),!0):!1},_,C),Ee,Pe,$e=!1;if(le){var Qe=a-le.left=nt.bottom?1:0}return ye=Ne(r.text,ye,1),Ja(s,ye,Pe,$e,a-Ee)}function lb(e,r,s,a,u,g,x){var _=ot(function(J){var fe=u[J],le=fe.level!=1;return ts(jr(e,we(s,le?fe.to:fe.from,le?"before":"after"),"line",r,a),g,x,!0)},0,u.length-1),C=u[_];if(_>0){var L=C.level!=1,Y=jr(e,we(s,L?C.from:C.to,L?"after":"before"),"line",r,a);ts(Y,g,x,!0)&&Y.top>x&&(C=u[_-1])}return C}function ub(e,r,s,a,u,g,x){var _=xu(e,r,a,x),C=_.begin,L=_.end;/\s/.test(r.text.charAt(L-1))&&L--;for(var Y=null,J=null,fe=0;fe=L||le.to<=C)){var ye=le.level!=1,Ee=Xr(e,a,ye?Math.min(L,le.to)-1:Math.max(C,le.from)).right,Pe=EePe)&&(Y=le,J=Pe)}}return Y||(Y=u[u.length-1]),Y.fromL&&(Y={from:Y.from,to:L,level:Y.level}),Y}var Ln;function Yn(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ln==null){Ln=R("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)Ln.appendChild(document.createTextNode("x")),Ln.appendChild(R("br"));Ln.appendChild(document.createTextNode("x"))}q(e.measure,Ln);var s=Ln.offsetHeight/50;return s>3&&(e.cachedTextHeight=s),K(e.measure),s||1}function Xn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var r=R("span","xxxxxxxxxx"),s=R("pre",[r],"CodeMirror-line-like");q(e.measure,s);var a=r.getBoundingClientRect(),u=(a.right-a.left)/10;return u>2&&(e.cachedCharWidth=u),u||10}function rs(e){for(var r=e.display,s={},a={},u=r.gutters.clientLeft,g=r.gutters.firstChild,x=0;g;g=g.nextSibling,++x){var _=e.display.gutterSpecs[x].className;s[_]=g.offsetLeft+g.clientLeft+u,a[_]=g.clientWidth}return{fixedPos:ns(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:s,gutterWidth:a,wrapperWidth:r.wrapper.clientWidth}}function ns(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function ku(e){var r=Yn(e.display),s=e.options.lineWrapping,a=s&&Math.max(5,e.display.scroller.clientWidth/Xn(e.display)-3);return function(u){if(gn(e.doc,u))return 0;var g=0;if(u.widgets)for(var x=0;x0&&(L=se(e.doc,C.line).text).length==C.ch){var Y=be(L,L.length,e.options.tabSize)-L.length;C=we(C.line,Math.max(0,Math.round((g-uu(e.display).left)/Xn(e.display))-Y))}return C}function In(e,r){if(r>=e.display.viewTo||(r-=e.display.viewFrom,r<0))return null;for(var s=e.display.view,a=0;ar)&&(u.updateLineNumbers=r),e.curOp.viewChanged=!0,r>=u.viewTo)an&&Wa(e.doc,r)u.viewFrom?yn(e):(u.viewFrom+=a,u.viewTo+=a);else if(r<=u.viewFrom&&s>=u.viewTo)yn(e);else if(r<=u.viewFrom){var g=Do(e,s,s+a,1);g?(u.view=u.view.slice(g.index),u.viewFrom=g.lineN,u.viewTo+=a):yn(e)}else if(s>=u.viewTo){var x=Do(e,r,r,-1);x?(u.view=u.view.slice(0,x.index),u.viewTo=x.lineN):yn(e)}else{var _=Do(e,r,r,-1),C=Do(e,s,s+a,1);_&&C?(u.view=u.view.slice(0,_.index).concat(Co(e,_.lineN,C.lineN)).concat(u.view.slice(C.index)),u.viewTo+=a):yn(e)}var L=u.externalMeasured;L&&(s=u.lineN&&r=a.viewTo)){var g=a.view[In(e,r)];if(g.node!=null){var x=g.changes||(g.changes=[]);xe(x,s)==-1&&x.push(s)}}}function yn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Do(e,r,s,a){var u=In(e,r),g,x=e.display.view;if(!an||s==e.doc.first+e.doc.size)return{index:u,lineN:s};for(var _=e.display.viewFrom,C=0;C0){if(u==x.length-1)return null;g=_+x[u].size-r,u++}else g=_-r;r+=g,s+=g}for(;Wa(e.doc,s)!=s;){if(u==(a<0?0:x.length-1))return null;s+=a*x[u-(a<0?1:0)].size,u+=a}return{index:u,lineN:s}}function cb(e,r,s){var a=e.display,u=a.view;u.length==0||r>=a.viewTo||s<=a.viewFrom?(a.view=Co(e,r,s),a.viewFrom=r):(a.viewFrom>r?a.view=Co(e,r,a.viewFrom).concat(a.view):a.viewFroms&&(a.view=a.view.slice(0,In(e,s)))),a.viewTo=s}function _u(e){for(var r=e.display.view,s=0,a=0;a=e.display.viewTo||C.to().line0?x:e.defaultCharWidth())+"px"}if(a.other){var _=s.appendChild(R("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));_.style.display="",_.style.left=a.other.left+"px",_.style.top=a.other.top+"px",_.style.height=(a.other.bottom-a.other.top)*.85+"px"}}function Io(e,r){return e.top-r.top||e.left-r.left}function fb(e,r,s){var a=e.display,u=e.doc,g=document.createDocumentFragment(),x=uu(e.display),_=x.left,C=Math.max(a.sizerWidth,An(e)-a.sizer.offsetLeft)-x.right,L=u.direction=="ltr";function Y(Ue,nt,ct,ut){nt<0&&(nt=0),nt=Math.round(nt),ut=Math.round(ut),g.appendChild(R("div",null,"CodeMirror-selected","position: absolute; left: "+Ue+`px; - top: `+nt+"px; width: "+(ct==null?C-Ue:ct)+`px; - height: `+(ut-nt)+"px"))}function J(Ue,nt,ct){var ut=se(u,Ue),vt=ut.text.length,Pt,ir;function Bt(Xt,Er){return Lo(e,we(Ue,Xt),"div",ut,Er)}function Lr(Xt,Er,cr){var Jt=wu(e,ut,null,Xt),Zt=Er=="ltr"==(cr=="after")?"left":"right",Ut=cr=="after"?Jt.begin:Jt.end-(/\s/.test(ut.text.charAt(Jt.end-1))?2:1);return Bt(Ut,Zt)[Zt]}var Sr=Lt(ut,u.direction);return Xe(Sr,nt||0,ct==null?vt:ct,function(Xt,Er,cr,Jt){var Zt=cr=="ltr",Ut=Bt(Xt,Zt?"left":"right"),Cr=Bt(Er-1,Zt?"right":"left"),ui=nt==null&&Xt==0,Sn=ct==null&&Er==vt,gr=Jt==0,Zr=!Sr||Jt==Sr.length-1;if(Cr.top-Ut.top<=3){var or=(L?ui:Sn)&&gr,Is=(L?Sn:ui)&&Zr,fn=or?_:(Zt?Ut:Cr).left,Rn=Is?C:(Zt?Cr:Ut).right;Y(fn,Ut.top,Rn-fn,Ut.bottom)}else{var zn,xr,ci,Fs;Zt?(zn=L&&ui&&gr?_:Ut.left,xr=L?C:Lr(Xt,cr,"before"),ci=L?_:Lr(Er,cr,"after"),Fs=L&&Sn&&Zr?C:Cr.right):(zn=L?Lr(Xt,cr,"before"):_,xr=!L&&ui&&gr?C:Ut.right,ci=!L&&Sn&&Zr?_:Cr.left,Fs=L?Lr(Er,cr,"after"):C),Y(zn,Ut.top,xr-zn,Ut.bottom),Ut.bottom0?r.blinker=setInterval(function(){e.hasFocus()||Zn(e),r.cursorDiv.style.visibility=(s=!s)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}}function Eu(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||ls(e))}function ss(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Zn(e))},100)}function ls(e,r){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(rt(e,"focus",e,r),e.state.focused=!0,z(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),f&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),as(e))}function Zn(e,r){e.state.delayingBlurEvent||(e.state.focused&&(rt(e,"blur",e,r),e.state.focused=!1,W(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Fo(e){for(var r=e.display,s=r.lineDiv.offsetTop,a=Math.max(0,r.scroller.getBoundingClientRect().top),u=r.lineDiv.getBoundingClientRect().top,g=0,x=0;x.005||le<-.005)&&(ue.display.sizerWidth){var Ee=Math.ceil(Y/Xn(e.display));Ee>e.display.maxLineLength&&(e.display.maxLineLength=Ee,e.display.maxLine=_.line,e.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(r.scroller.scrollTop+=g)}function Cu(e){if(e.widgets)for(var r=0;r=x&&(g=tt(r,sn(se(r,C))-e.wrapper.clientHeight),x=C)}return{from:g,to:Math.max(x,g+1)}}function db(e,r){if(!wt(e,"scrollCursorIntoView")){var s=e.display,a=s.sizer.getBoundingClientRect(),u=null;if(r.top+a.top<0?u=!0:r.bottom+a.top>(window.innerHeight||document.documentElement.clientHeight)&&(u=!1),u!=null&&!k){var g=R("div","\u200B",null,`position: absolute; +b`.split(/\n/).length!=3?function(e){for(var r=0,s=[],o=e.length;r<=o;){var u=e.indexOf(` +`,r);u==-1&&(u=e.length);var m=e.slice(r,e.charAt(u-1)=="\r"?u-1:u),x=m.indexOf("\r");x!=-1?(s.push(m.slice(0,x)),r+=x+1):(s.push(m),r=u+1)}return s}:function(e){return e.split(/\r\n?|\n/)},oe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var r;try{r=e.ownerDocument.selection.createRange()}catch{}return!r||r.parentElement()!=e?!1:r.compareEndPoints("StartToEnd",r)!=0},Q=function(){var e=z("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),re=null;function O(e){if(re!=null)return re;var r=j(e,z("span","x")),s=r.getBoundingClientRect(),o=U(r,0,1).getBoundingClientRect();return re=Math.abs(s.left-o.left)>1}var B={},te={};function ce(e,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),B[e]=r}function me(e,r){te[e]=r}function ve(e){if(typeof e=="string"&&te.hasOwnProperty(e))e=te[e];else if(e&&typeof e.name=="string"&&te.hasOwnProperty(e.name)){var r=te[e.name];typeof r=="string"&&(r={name:r}),e=He(r,e),e.name=r.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return ve("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return ve("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Le(e,r){r=ve(r);var s=B[r.name];if(!s)return Le(e,"text/plain");var o=s(e,r);if(Oe.hasOwnProperty(r.name)){var u=Oe[r.name];for(var m in u)!u.hasOwnProperty(m)||(o.hasOwnProperty(m)&&(o["_"+m]=o[m]),o[m]=u[m])}if(o.name=r.name,r.helperType&&(o.helperType=r.helperType),r.modeProps)for(var x in r.modeProps)o[x]=r.modeProps[x];return o}var Oe={};function Ce(e,r){var s=Oe.hasOwnProperty(e)?Oe[e]:Oe[e]={};A(r,s)}function Ve(e,r){if(r===!0)return r;if(e.copyState)return e.copyState(r);var s={};for(var o in r){var u=r[o];u instanceof Array&&(u=u.concat([])),s[o]=u}return s}function St(e,r){for(var s;e.innerMode&&(s=e.innerMode(r),!(!s||s.mode==e));)r=s.state,e=s.mode;return s||{mode:e,state:r}}function mt(e,r,s){return e.startState?e.startState(r,s):!0}var W=function(e,r,s){this.pos=this.start=0,this.string=e,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=s};W.prototype.eol=function(){return this.pos>=this.string.length},W.prototype.sol=function(){return this.pos==this.lineStart},W.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},W.prototype.next=function(){if(this.posr},W.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},W.prototype.skipToEnd=function(){this.pos=this.string.length},W.prototype.skipTo=function(e){var r=this.string.indexOf(e,this.pos);if(r>-1)return this.pos=r,!0},W.prototype.backUp=function(e){this.pos-=e},W.prototype.column=function(){return this.lastColumnPos0?null:(m&&r!==!1&&(this.pos+=m[0].length),m)}},W.prototype.current=function(){return this.string.slice(this.start,this.pos)},W.prototype.hideFirstChars=function(e,r){this.lineStart+=e;try{return r()}finally{this.lineStart-=e}},W.prototype.lookAhead=function(e){var r=this.lineOracle;return r&&r.lookAhead(e)},W.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function se(e,r){if(r-=e.first,r<0||r>=e.size)throw new Error("There is no line "+(r+e.first)+" in the document.");for(var s=e;!s.lines;)for(var o=0;;++o){var u=s.children[o],m=u.chunkSize();if(r=e.first&&rs?we(s,se(e,s).text.length):Yt(r,se(e,r.line).text.length)}function Yt(e,r){var s=e.ch;return s==null||s>r?we(e.line,r):s<0?we(e.line,0):e}function Fr(e,r){for(var s=[],o=0;othis.maxLookAhead&&(this.maxLookAhead=e),r},Kr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Kr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Kr.fromSaved=function(e,r,s){return r instanceof Wn?new Kr(e,Ve(e.mode,r.state),s,r.lookAhead):new Kr(e,Ve(e.mode,r),s)},Kr.prototype.save=function(e){var r=e!==!1?Ve(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Wn(r,this.maxLookAhead):r};function Nl(e,r,s,o){var u=[e.state.modeGen],m={};Hl(e,r.text,e.doc.mode,s,function(L,V){return u.push(L,V)},m,o);for(var x=s.state,_=function(L){s.baseTokens=u;var V=e.state.overlays[L],ee=1,fe=0;s.state=!0,Hl(e,r.text,V.mode,s,function(le,ye){for(var Ee=ee;fele&&u.splice(ee,1,le,u[ee+1],Pe),ee+=2,fe=Math.min(le,Pe)}if(!!ye)if(V.opaque)u.splice(Ee,ee-Ee,le,"overlay "+ye),ee=Ee+2;else for(;Eee.options.maxHighlightLength&&Ve(e.doc.mode,o.state),m=Nl(e,r,o);u&&(o.state=u),r.stateAfter=o.save(!u),r.styles=m.styles,m.classes?r.styleClasses=m.classes:r.styleClasses&&(r.styleClasses=null),s===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return r.styles}function Ci(e,r,s){var o=e.doc,u=e.display;if(!o.mode.startState)return new Kr(o,!0,r);var m=Sy(e,r,s),x=m>o.first&&se(o,m-1).stateAfter,_=x?Kr.fromSaved(o,x,m):new Kr(o,mt(o.mode),m);return o.iter(m,r,function(T){ja(e,T.text,_);var L=_.line;T.stateAfter=L==r-1||L%5==0||L>=u.viewFrom&&Lr.start)return m}throw new Error("Mode "+e.name+" failed to advance stream.")}var jl=function(e,r,s){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=r||null,this.state=s};function $l(e,r,s,o){var u=e.doc,m=u.mode,x;r=Ze(u,r);var _=se(u,r.line),T=Ci(e,r.line,s),L=new W(_.text,e.options.tabSize,T),V;for(o&&(V=[]);(o||L.pose.options.maxHighlightLength?(_=!1,x&&ja(e,r,o,V.pos),V.pos=r.length,ee=null):ee=Ul($a(s,V,o.state,fe),m),fe){var le=fe[0].name;le&&(ee="m-"+(ee?le+" "+ee:le))}if(!_||L!=ee){for(;Tx;--_){if(_<=m.first)return m.first;var T=se(m,_-1),L=T.stateAfter;if(L&&(!s||_+(L instanceof Wn?L.lookAhead:0)<=m.modeFrontier))return _;var V=be(T.text,null,e.options.tabSize);(u==null||o>V)&&(u=_-1,o=V)}return u}function Ey(e,r){if(e.modeFrontier=Math.min(e.modeFrontier,r),!(e.highlightFrontiers;o--){var u=se(e,o).stateAfter;if(u&&(!(u instanceof Wn)||o+u.lookAhead=r:m.to>r);(o||(o=[])).push(new wo(x,m.from,T?null:m.to))}}return o}function Iy(e,r,s){var o;if(e)for(var u=0;u=r:m.to>r);if(_||m.from==r&&x.type=="bookmark"&&(!s||m.marker.insertLeft)){var T=m.from==null||(x.inclusiveLeft?m.from<=r:m.from0&&_)for(var nt=0;nt<_.length;++nt)_[nt].to==null&&($e||($e=[])).push(new wo(_[nt].marker,null,null));for(var ct=0;ct0)){var V=[T,1],ee=D(L.from,_.from),fe=D(L.to,_.to);(ee<0||!x.inclusiveLeft&&!ee)&&V.push({from:L.from,to:_.from}),(fe>0||!x.inclusiveRight&&!fe)&&V.push({from:_.to,to:L.to}),u.splice.apply(u,V),T+=V.length-3}}return u}function Kl(e){var r=e.markedSpans;if(!!r){for(var s=0;sr)&&(!o||Ha(o,m.marker)<0)&&(o=m.marker)}return o}function Zl(e,r,s,o,u){var m=se(e,r),x=an&&m.markedSpans;if(x)for(var _=0;_=0&&ee<=0||V<=0&&ee>=0)&&(V<=0&&(T.marker.inclusiveRight&&u.inclusiveLeft?D(L.to,s)>=0:D(L.to,s)>0)||V>=0&&(T.marker.inclusiveRight&&u.inclusiveLeft?D(L.from,o)<=0:D(L.from,o)<0)))return!0}}}function Vr(e){for(var r;r=Xl(e);)e=r.find(-1,!0).line;return e}function Oy(e){for(var r;r=So(e);)e=r.find(1,!0).line;return e}function Py(e){for(var r,s;r=So(e);)e=r.find(1,!0).line,(s||(s=[])).push(e);return s}function Wa(e,r){var s=se(e,r),o=Vr(s);return s==o?r:Ye(o)}function Ql(e,r){if(r>e.lastLine())return r;var s=se(e,r),o;if(!gn(e,s))return r;for(;o=So(s);)s=o.find(1,!0).line;return Ye(s)+1}function gn(e,r){var s=an&&r.markedSpans;if(s){for(var o=void 0,u=0;ur.maxLineLength&&(r.maxLineLength=u,r.maxLine=o)})}var Gn=function(e,r,s){this.text=e,Vl(this,r),this.height=s?s(this):1};Gn.prototype.lineNo=function(){return Ye(this)},Vt(Gn);function Ry(e,r,s,o){e.text=r,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Kl(e),Vl(e,s);var u=o?o(e):1;u!=e.height&&Ae(e,u)}function zy(e){e.parent=null,Kl(e)}var Ny={},By={};function Jl(e,r){if(!e||/^\s*$/.test(e))return null;var s=r.addModeClass?By:Ny;return s[e]||(s[e]=e.replace(/\S+/g,"cm-$&"))}function eu(e,r){var s=C("span",null,null,f?"padding-right: .1px":null),o={pre:C("pre",[s],"CodeMirror-line"),content:s,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};r.measure={};for(var u=0;u<=(r.rest?r.rest.length:0);u++){var m=u?r.rest[u-1]:r.line,x=void 0;o.pos=0,o.addToken=jy,Qt(e.display.measure)&&(x=Lt(m,e.doc.direction))&&(o.addToken=Uy(o.addToken,x)),o.map=[];var _=r!=e.display.externalMeasured&&Ye(m);Hy(m,o,Bl(e,m,_)),m.styleClasses&&(m.styleClasses.bgClass&&(o.bgClass=ne(m.styleClasses.bgClass,o.bgClass||"")),m.styleClasses.textClass&&(o.textClass=ne(m.styleClasses.textClass,o.textClass||""))),o.map.length==0&&o.map.push(0,0,o.content.appendChild(yr(e.display.measure))),u==0?(r.measure.map=o.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(o.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(f){var T=o.content.lastChild;(/\bcm-tab\b/.test(T.className)||T.querySelector&&T.querySelector(".cm-tab"))&&(o.content.className="cm-tab-wrap-hack")}return rt(e,"renderLine",e,r.line,o.pre),o.pre.className&&(o.textClass=ne(o.pre.className,o.textClass||"")),o}function qy(e){var r=z("span","\u2022","cm-invalidchar");return r.title="\\u"+e.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function jy(e,r,s,o,u,m,x){if(!!r){var _=e.splitSpaces?$y(r,e.trailingSpace):r,T=e.cm.state.specialChars,L=!1,V;if(!T.test(r))e.col+=r.length,V=document.createTextNode(_),e.map.push(e.pos,e.pos+r.length,V),a&&h<9&&(L=!0),e.pos+=r.length;else{V=document.createDocumentFragment();for(var ee=0;;){T.lastIndex=ee;var fe=T.exec(r),le=fe?fe.index-ee:r.length-ee;if(le){var ye=document.createTextNode(_.slice(ee,ee+le));a&&h<9?V.appendChild(z("span",[ye])):V.appendChild(ye),e.map.push(e.pos,e.pos+le,ye),e.col+=le,e.pos+=le}if(!fe)break;ee+=le+1;var Ee=void 0;if(fe[0]==" "){var Pe=e.cm.options.tabSize,je=Pe-e.col%Pe;Ee=V.appendChild(z("span",gt(je),"cm-tab")),Ee.setAttribute("role","presentation"),Ee.setAttribute("cm-text"," "),e.col+=je}else fe[0]=="\r"||fe[0]==` +`?(Ee=V.appendChild(z("span",fe[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ee.setAttribute("cm-text",fe[0]),e.col+=1):(Ee=e.cm.options.specialCharPlaceholder(fe[0]),Ee.setAttribute("cm-text",fe[0]),a&&h<9?V.appendChild(z("span",[Ee])):V.appendChild(Ee),e.col+=1);e.map.push(e.pos,e.pos+1,Ee),e.pos++}}if(e.trailingSpace=_.charCodeAt(r.length-1)==32,s||o||u||L||m||x){var Qe=s||"";o&&(Qe+=o),u&&(Qe+=u);var $e=z("span",[V],Qe,m);if(x)for(var nt in x)x.hasOwnProperty(nt)&&nt!="style"&&nt!="class"&&$e.setAttribute(nt,x[nt]);return e.content.appendChild($e)}e.content.appendChild(V)}}function $y(e,r){if(e.length>1&&!/ /.test(e))return e;for(var s=r,o="",u=0;uL&&ee.from<=L));fe++);if(ee.to>=V)return e(s,o,u,m,x,_,T);e(s,o.slice(0,ee.to-L),u,m,null,_,T),m=null,o=o.slice(ee.to-L),L=ee.to}}}function tu(e,r,s,o){var u=!o&&s.widgetNode;u&&e.map.push(e.pos,e.pos+r,u),!o&&e.cm.display.input.needsContentAttribute&&(u||(u=e.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",s.id)),u&&(e.cm.display.input.setUneditable(u),e.content.appendChild(u)),e.pos+=r,e.trailingSpace=!1}function Hy(e,r,s){var o=e.markedSpans,u=e.text,m=0;if(!o){for(var x=1;xT||vt.collapsed&&ut.to==T&&ut.from==T)){if(ut.to!=null&&ut.to!=T&&le>ut.to&&(le=ut.to,Ee=""),vt.className&&(ye+=" "+vt.className),vt.css&&(fe=(fe?fe+";":"")+vt.css),vt.startStyle&&ut.from==T&&(Pe+=" "+vt.startStyle),vt.endStyle&&ut.to==le&&(nt||(nt=[])).push(vt.endStyle,ut.to),vt.title&&((Qe||(Qe={})).title=vt.title),vt.attributes)for(var Pt in vt.attributes)(Qe||(Qe={}))[Pt]=vt.attributes[Pt];vt.collapsed&&(!je||Ha(je.marker,vt)<0)&&(je=ut)}else ut.from>T&&le>ut.from&&(le=ut.from)}if(nt)for(var ir=0;ir=_)break;for(var Lr=Math.min(_,le);;){if(V){var Sr=T+V.length;if(!je){var Xt=Sr>Lr?V.slice(0,Lr-T):V;r.addToken(r,Xt,ee?ee+ye:ye,Pe,T+Xt.length==le?Ee:"",fe,Qe)}if(Sr>=Lr){V=V.slice(Lr-T),T=Lr;break}T=Sr,Pe=""}V=u.slice(m,m=s[L++]),ee=Jl(s[L++],r.cm.options)}}}function ru(e,r,s){this.line=r,this.rest=Py(r),this.size=this.rest?Ye(Re(this.rest))-s+1:1,this.node=this.text=null,this.hidden=gn(e,r)}function Co(e,r,s){for(var o=[],u,m=r;m2&&m.push((T.bottom+L.top)/2-s.top)}}m.push(s.bottom-s.top)}}function uu(e,r,s){if(e.line==r)return{map:e.measure.map,cache:e.measure.cache};for(var o=0;os)return{map:e.measure.maps[u],cache:e.measure.caches[u],before:!0}}function tb(e,r){r=Vr(r);var s=Ye(r),o=e.display.externalMeasured=new ru(e.doc,r,s);o.lineN=s;var u=o.built=eu(e,o);return o.text=u.pre,j(e.display.lineMeasure,u.pre),o}function cu(e,r,s,o){return Xr(e,Vn(e,r),s,o)}function Za(e,r){if(r>=e.display.viewFrom&&r=s.lineN&&rr)&&(m=T-_,u=m-1,r>=T&&(x="right")),u!=null){if(o=e[L+2],_==T&&s==(o.insertLeft?"left":"right")&&(x=s),s=="left"&&u==0)for(;L&&e[L-2]==e[L-3]&&e[L-1].insertLeft;)o=e[(L-=3)+2],x="left";if(s=="right"&&u==T-_)for(;L=0&&(s=e[u]).left==s.right;u--);return s}function nb(e,r,s,o){var u=du(r.map,s,o),m=u.node,x=u.start,_=u.end,T=u.collapse,L;if(m.nodeType==3){for(var V=0;V<4;V++){for(;x&&it(r.line.text.charAt(u.coverStart+x));)--x;for(;u.coverStart+_0&&(T=o="right");var ee;e.options.lineWrapping&&(ee=m.getClientRects()).length>1?L=ee[o=="right"?ee.length-1:0]:L=m.getBoundingClientRect()}if(a&&h<9&&!x&&(!L||!L.left&&!L.right)){var fe=m.parentNode.getClientRects()[0];fe?L={left:fe.left,right:fe.left+Xn(e.display),top:fe.top,bottom:fe.bottom}:L=fu}for(var le=L.top-r.rect.top,ye=L.bottom-r.rect.top,Ee=(le+ye)/2,Pe=r.view.measure.heights,je=0;je=o.text.length?(T=o.text.length,L="before"):T<=0&&(T=0,L="after"),!_)return x(L=="before"?T-1:T,L=="before");function V(ye,Ee,Pe){var je=_[Ee],Qe=je.level==1;return x(Pe?ye-1:ye,Qe!=Pe)}var ee=We(_,T,L),fe=et,le=V(T,ee,L=="before");return fe!=null&&(le.other=V(T,fe,L!="before")),le}function yu(e,r){var s=0;r=Ze(e.doc,r),e.options.lineWrapping||(s=Xn(e.display)*r.ch);var o=se(e.doc,r.line),u=sn(o)+To(e.display);return{left:s,right:s,top:u,bottom:u+o.height}}function Ja(e,r,s,o,u){var m=we(e,r,s);return m.xRel=u,o&&(m.outside=o),m}function es(e,r,s){var o=e.doc;if(s+=e.display.viewOffset,s<0)return Ja(o.first,0,null,-1,-1);var u=tt(o,s),m=o.first+o.size-1;if(u>m)return Ja(o.first+o.size-1,se(o,m).text.length,null,1,1);r<0&&(r=0);for(var x=se(o,u);;){var _=ob(e,x,u,r,s),T=My(x,_.ch+(_.xRel>0||_.outside>0?1:0));if(!T)return _;var L=T.find(1);if(L.line==u)return L;x=se(o,u=L.line)}}function bu(e,r,s,o){o-=Qa(r);var u=r.text.length,m=ot(function(x){return Xr(e,s,x-1).bottom<=o},u,0);return u=ot(function(x){return Xr(e,s,x).top>o},m,u),{begin:m,end:u}}function xu(e,r,s,o){s||(s=Vn(e,r));var u=Ao(e,r,Xr(e,s,o),"line").top;return bu(e,r,s,u)}function ts(e,r,s,o){return e.bottom<=s?!1:e.top>s?!0:(o?e.left:e.right)>r}function ob(e,r,s,o,u){u-=sn(r);var m=Vn(e,r),x=Qa(r),_=0,T=r.text.length,L=!0,V=Lt(r,e.doc.direction);if(V){var ee=(e.options.lineWrapping?sb:ab)(e,r,s,m,V,o,u);L=ee.level!=1,_=L?ee.from:ee.to-1,T=L?ee.to:ee.from-1}var fe=null,le=null,ye=ot(function(ct){var ut=Xr(e,m,ct);return ut.top+=x,ut.bottom+=x,ts(ut,o,u,!1)?(ut.top<=u&&ut.left<=o&&(fe=ct,le=ut),!0):!1},_,T),Ee,Pe,je=!1;if(le){var Qe=o-le.left=nt.bottom?1:0}return ye=Ne(r.text,ye,1),Ja(s,ye,Pe,je,o-Ee)}function ab(e,r,s,o,u,m,x){var _=ot(function(ee){var fe=u[ee],le=fe.level!=1;return ts($r(e,we(s,le?fe.to:fe.from,le?"before":"after"),"line",r,o),m,x,!0)},0,u.length-1),T=u[_];if(_>0){var L=T.level!=1,V=$r(e,we(s,L?T.from:T.to,L?"after":"before"),"line",r,o);ts(V,m,x,!0)&&V.top>x&&(T=u[_-1])}return T}function sb(e,r,s,o,u,m,x){var _=bu(e,r,o,x),T=_.begin,L=_.end;/\s/.test(r.text.charAt(L-1))&&L--;for(var V=null,ee=null,fe=0;fe=L||le.to<=T)){var ye=le.level!=1,Ee=Xr(e,o,ye?Math.min(L,le.to)-1:Math.max(T,le.from)).right,Pe=EePe)&&(V=le,ee=Pe)}}return V||(V=u[u.length-1]),V.fromL&&(V={from:V.from,to:L,level:V.level}),V}var Ln;function Yn(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ln==null){Ln=z("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)Ln.appendChild(document.createTextNode("x")),Ln.appendChild(z("br"));Ln.appendChild(document.createTextNode("x"))}j(e.measure,Ln);var s=Ln.offsetHeight/50;return s>3&&(e.cachedTextHeight=s),G(e.measure),s||1}function Xn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var r=z("span","xxxxxxxxxx"),s=z("pre",[r],"CodeMirror-line-like");j(e.measure,s);var o=r.getBoundingClientRect(),u=(o.right-o.left)/10;return u>2&&(e.cachedCharWidth=u),u||10}function rs(e){for(var r=e.display,s={},o={},u=r.gutters.clientLeft,m=r.gutters.firstChild,x=0;m;m=m.nextSibling,++x){var _=e.display.gutterSpecs[x].className;s[_]=m.offsetLeft+m.clientLeft+u,o[_]=m.clientWidth}return{fixedPos:ns(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:s,gutterWidth:o,wrapperWidth:r.wrapper.clientWidth}}function ns(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function wu(e){var r=Yn(e.display),s=e.options.lineWrapping,o=s&&Math.max(5,e.display.scroller.clientWidth/Xn(e.display)-3);return function(u){if(gn(e.doc,u))return 0;var m=0;if(u.widgets)for(var x=0;x0&&(L=se(e.doc,T.line).text).length==T.ch){var V=be(L,L.length,e.options.tabSize)-L.length;T=we(T.line,Math.max(0,Math.round((m-lu(e.display).left)/Xn(e.display))-V))}return T}function In(e,r){if(r>=e.display.viewTo||(r-=e.display.viewFrom,r<0))return null;for(var s=e.display.view,o=0;or)&&(u.updateLineNumbers=r),e.curOp.viewChanged=!0,r>=u.viewTo)an&&Wa(e.doc,r)u.viewFrom?yn(e):(u.viewFrom+=o,u.viewTo+=o);else if(r<=u.viewFrom&&s>=u.viewTo)yn(e);else if(r<=u.viewFrom){var m=Do(e,s,s+o,1);m?(u.view=u.view.slice(m.index),u.viewFrom=m.lineN,u.viewTo+=o):yn(e)}else if(s>=u.viewTo){var x=Do(e,r,r,-1);x?(u.view=u.view.slice(0,x.index),u.viewTo=x.lineN):yn(e)}else{var _=Do(e,r,r,-1),T=Do(e,s,s+o,1);_&&T?(u.view=u.view.slice(0,_.index).concat(Co(e,_.lineN,T.lineN)).concat(u.view.slice(T.index)),u.viewTo+=o):yn(e)}var L=u.externalMeasured;L&&(s=u.lineN&&r=o.viewTo)){var m=o.view[In(e,r)];if(m.node!=null){var x=m.changes||(m.changes=[]);xe(x,s)==-1&&x.push(s)}}}function yn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Do(e,r,s,o){var u=In(e,r),m,x=e.display.view;if(!an||s==e.doc.first+e.doc.size)return{index:u,lineN:s};for(var _=e.display.viewFrom,T=0;T0){if(u==x.length-1)return null;m=_+x[u].size-r,u++}else m=_-r;r+=m,s+=m}for(;Wa(e.doc,s)!=s;){if(u==(o<0?0:x.length-1))return null;s+=o*x[u-(o<0?1:0)].size,u+=o}return{index:u,lineN:s}}function lb(e,r,s){var o=e.display,u=o.view;u.length==0||r>=o.viewTo||s<=o.viewFrom?(o.view=Co(e,r,s),o.viewFrom=r):(o.viewFrom>r?o.view=Co(e,r,o.viewFrom).concat(o.view):o.viewFroms&&(o.view=o.view.slice(0,In(e,s)))),o.viewTo=s}function ku(e){for(var r=e.display.view,s=0,o=0;o=e.display.viewTo||_.to().line0&&(u.style.width=m.right-m.left+"px")}if(o.other){var x=s.appendChild(z("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));x.style.display="",x.style.left=o.other.left+"px",x.style.top=o.other.top+"px",x.style.height=(o.other.bottom-o.other.top)*.85+"px"}}function Io(e,r){return e.top-r.top||e.left-r.left}function ub(e,r,s){var o=e.display,u=e.doc,m=document.createDocumentFragment(),x=lu(e.display),_=x.left,T=Math.max(o.sizerWidth,An(e)-o.sizer.offsetLeft)-x.right,L=u.direction=="ltr";function V($e,nt,ct,ut){nt<0&&(nt=0),nt=Math.round(nt),ut=Math.round(ut),m.appendChild(z("div",null,"CodeMirror-selected","position: absolute; left: "+$e+`px; + top: `+nt+"px; width: "+(ct==null?T-$e:ct)+`px; + height: `+(ut-nt)+"px"))}function ee($e,nt,ct){var ut=se(u,$e),vt=ut.text.length,Pt,ir;function Bt(Xt,Er){return Lo(e,we($e,Xt),"div",ut,Er)}function Lr(Xt,Er,cr){var Jt=xu(e,ut,null,Xt),Zt=Er=="ltr"==(cr=="after")?"left":"right",$t=cr=="after"?Jt.begin:Jt.end-(/\s/.test(ut.text.charAt(Jt.end-1))?2:1);return Bt($t,Zt)[Zt]}var Sr=Lt(ut,u.direction);return Xe(Sr,nt||0,ct==null?vt:ct,function(Xt,Er,cr,Jt){var Zt=cr=="ltr",$t=Bt(Xt,Zt?"left":"right"),Cr=Bt(Er-1,Zt?"right":"left"),ui=nt==null&&Xt==0,Sn=ct==null&&Er==vt,gr=Jt==0,Zr=!Sr||Jt==Sr.length-1;if(Cr.top-$t.top<=3){var or=(L?ui:Sn)&&gr,Ds=(L?Sn:ui)&&Zr,fn=or?_:(Zt?$t:Cr).left,Rn=Ds?T:(Zt?Cr:$t).right;V(fn,$t.top,Rn-fn,$t.bottom)}else{var zn,xr,ci,Is;Zt?(zn=L&&ui&&gr?_:$t.left,xr=L?T:Lr(Xt,cr,"before"),ci=L?_:Lr(Er,cr,"after"),Is=L&&Sn&&Zr?T:Cr.right):(zn=L?Lr(Xt,cr,"before"):_,xr=!L&&ui&&gr?T:$t.right,ci=!L&&Sn&&Zr?_:Cr.left,Is=L?Lr(Er,cr,"after"):T),V(zn,$t.top,xr-zn,$t.bottom),$t.bottom0?r.blinker=setInterval(function(){e.hasFocus()||Zn(e),r.cursorDiv.style.visibility=(s=!s)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}}function Eu(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||ss(e))}function as(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Zn(e))},100)}function ss(e,r){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(rt(e,"focus",e,r),e.state.focused=!0,N(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),f&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),os(e))}function Zn(e,r){e.state.delayingBlurEvent||(e.state.focused&&(rt(e,"blur",e,r),e.state.focused=!1,Y(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Fo(e){for(var r=e.display,s=r.lineDiv.offsetTop,o=Math.max(0,r.scroller.getBoundingClientRect().top),u=r.lineDiv.getBoundingClientRect().top,m=0,x=0;x.005||le<-.005)&&(ue.display.sizerWidth){var Ee=Math.ceil(V/Xn(e.display));Ee>e.display.maxLineLength&&(e.display.maxLineLength=Ee,e.display.maxLine=_.line,e.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(r.scroller.scrollTop+=m)}function Cu(e){if(e.widgets)for(var r=0;r=x&&(m=tt(r,sn(se(r,T))-e.wrapper.clientHeight),x=T)}return{from:m,to:Math.max(x,m+1)}}function cb(e,r){if(!wt(e,"scrollCursorIntoView")){var s=e.display,o=s.sizer.getBoundingClientRect(),u=null;if(r.top+o.top<0?u=!0:r.bottom+o.top>(window.innerHeight||document.documentElement.clientHeight)&&(u=!1),u!=null&&!k){var m=z("div","\u200B",null,`position: absolute; top: `+(r.top-s.viewOffset-To(e.display))+`px; height: `+(r.bottom-r.top+Yr(e)+s.barHeight)+`px; - left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");e.display.lineSpace.appendChild(g),g.scrollIntoView(u),e.display.lineSpace.removeChild(g)}}}function hb(e,r,s,a){a==null&&(a=0);var u;!e.options.lineWrapping&&r==s&&(s=r.sticky=="before"?we(r.line,r.ch+1,"before"):r,r=r.ch?we(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r);for(var g=0;g<5;g++){var x=!1,_=jr(e,r),C=!s||s==r?_:jr(e,s);u={left:Math.min(_.left,C.left),top:Math.min(_.top,C.top)-a,right:Math.max(_.left,C.left),bottom:Math.max(_.bottom,C.bottom)+a};var L=us(e,u),Y=e.doc.scrollTop,J=e.doc.scrollLeft;if(L.scrollTop!=null&&(Oi(e,L.scrollTop),Math.abs(e.doc.scrollTop-Y)>1&&(x=!0)),L.scrollLeft!=null&&(Fn(e,L.scrollLeft),Math.abs(e.doc.scrollLeft-J)>1&&(x=!0)),!x)break}return u}function pb(e,r){var s=us(e,r);s.scrollTop!=null&&Oi(e,s.scrollTop),s.scrollLeft!=null&&Fn(e,s.scrollLeft)}function us(e,r){var s=e.display,a=Yn(e.display);r.top<0&&(r.top=0);var u=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:s.scroller.scrollTop,g=Xa(e),x={};r.bottom-r.top>g&&(r.bottom=r.top+g);var _=e.doc.height+Ya(s),C=r.top_-a;if(r.topu+g){var Y=Math.min(r.top,(L?_:r.bottom)-g);Y!=u&&(x.scrollTop=Y)}var J=e.options.fixedGutter?0:s.gutters.offsetWidth,fe=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:s.scroller.scrollLeft-J,le=An(e)-s.gutters.offsetWidth,ye=r.right-r.left>le;return ye&&(r.right=r.left+le),r.left<10?x.scrollLeft=0:r.leftle+fe-3&&(x.scrollLeft=r.right+(ye?0:10)-le),x}function cs(e,r){r!=null&&(Oo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+r)}function Qn(e){Oo(e);var r=e.getCursor();e.curOp.scrollToPos={from:r,to:r,margin:e.options.cursorScrollMargin}}function Mi(e,r,s){(r!=null||s!=null)&&Oo(e),r!=null&&(e.curOp.scrollLeft=r),s!=null&&(e.curOp.scrollTop=s)}function mb(e,r){Oo(e),e.curOp.scrollToPos=r}function Oo(e){var r=e.curOp.scrollToPos;if(r){e.curOp.scrollToPos=null;var s=bu(e,r.from),a=bu(e,r.to);Tu(e,s,a,r.margin)}}function Tu(e,r,s,a){var u=us(e,{left:Math.min(r.left,s.left),top:Math.min(r.top,s.top)-a,right:Math.max(r.right,s.right),bottom:Math.max(r.bottom,s.bottom)+a});Mi(e,u.scrollLeft,u.scrollTop)}function Oi(e,r){Math.abs(e.doc.scrollTop-r)<2||(n||ds(e,{top:r}),Au(e,r,!0),n&&ds(e),zi(e,100))}function Au(e,r,s){r=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,r)),!(e.display.scroller.scrollTop==r&&!s)&&(e.doc.scrollTop=r,e.display.scrollbars.setScrollTop(r),e.display.scroller.scrollTop!=r&&(e.display.scroller.scrollTop=r))}function Fn(e,r,s,a){r=Math.max(0,Math.min(r,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((s?r==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-r)<2)&&!a)&&(e.doc.scrollLeft=r,Mu(e),e.display.scroller.scrollLeft!=r&&(e.display.scroller.scrollLeft=r),e.display.scrollbars.setScrollLeft(r))}function Pi(e){var r=e.display,s=r.gutters.offsetWidth,a=Math.round(e.doc.height+Ya(e.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:e.options.fixedGutter?s:0,docHeight:a,scrollHeight:a+Yr(e)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:s}}var Mn=function(e,r,s){this.cm=s;var a=this.vert=R("div",[R("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=R("div",[R("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=u.tabIndex=-1,e(a),e(u),lt(a,"scroll",function(){a.clientHeight&&r(a.scrollTop,"vertical")}),lt(u,"scroll",function(){u.clientWidth&&r(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,o&&h<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Mn.prototype.update=function(e){var r=e.scrollWidth>e.clientWidth+1,s=e.scrollHeight>e.clientHeight+1,a=e.nativeBarWidth;if(s){this.vert.style.display="block",this.vert.style.bottom=r?a+"px":"0";var u=e.viewHeight-(r?a:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+u)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=s?a+"px":"0",this.horiz.style.left=e.barLeft+"px";var g=e.viewWidth-e.barLeft-(s?a:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+g)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:s?a:0,bottom:r?a:0}},Mn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Mn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Mn.prototype.zeroWidthHack=function(){var e=S&&!b?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Fe,this.disableVert=new Fe},Mn.prototype.enableZeroWidthBar=function(e,r,s){e.style.pointerEvents="auto";function a(){var u=e.getBoundingClientRect(),g=s=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);g!=e?e.style.pointerEvents="none":r.set(1e3,a)}r.set(1e3,a)},Mn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ri=function(){};Ri.prototype.update=function(){return{bottom:0,right:0}},Ri.prototype.setScrollLeft=function(){},Ri.prototype.setScrollTop=function(){},Ri.prototype.clear=function(){};function Jn(e,r){r||(r=Pi(e));var s=e.display.barWidth,a=e.display.barHeight;Lu(e,r);for(var u=0;u<4&&s!=e.display.barWidth||a!=e.display.barHeight;u++)s!=e.display.barWidth&&e.options.lineWrapping&&Fo(e),Lu(e,Pi(e)),s=e.display.barWidth,a=e.display.barHeight}function Lu(e,r){var s=e.display,a=s.scrollbars.update(r);s.sizer.style.paddingRight=(s.barWidth=a.right)+"px",s.sizer.style.paddingBottom=(s.barHeight=a.bottom)+"px",s.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(s.scrollbarFiller.style.display="block",s.scrollbarFiller.style.height=a.bottom+"px",s.scrollbarFiller.style.width=a.right+"px"):s.scrollbarFiller.style.display="",a.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(s.gutterFiller.style.display="block",s.gutterFiller.style.height=a.bottom+"px",s.gutterFiller.style.width=r.gutterWidth+"px"):s.gutterFiller.style.display=""}var Du={native:Mn,null:Ri};function Iu(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&W(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Du[e.options.scrollbarStyle](function(r){e.display.wrapper.insertBefore(r,e.display.scrollbarFiller),lt(r,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,s){s=="horizontal"?Fn(e,r):Oi(e,r)},e),e.display.scrollbars.addClass&&z(e.display.wrapper,e.display.scrollbars.addClass)}var gb=0;function On(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:++gb,markArrays:null},Ky(e.curOp)}function Pn(e){var r=e.curOp;r&&Yy(r,function(s){for(var a=0;a=s.viewTo)||s.maxLineChanged&&r.options.lineWrapping,e.update=e.mustUpdate&&new Po(r,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function bb(e){e.updatedDisplay=e.mustUpdate&&fs(e.cm,e.update)}function xb(e){var r=e.cm,s=r.display;e.updatedDisplay&&Fo(r),e.barMeasure=Pi(r),s.maxLineChanged&&!r.options.lineWrapping&&(e.adjustWidthTo=fu(r,s.maxLine,s.maxLine.text.length).left+3,r.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(s.scroller.clientWidth,s.sizer.offsetLeft+e.adjustWidthTo+Yr(r)+r.display.barWidth),e.maxScrollLeft=Math.max(0,s.sizer.offsetLeft+e.adjustWidthTo-An(r))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=s.input.prepareSelection())}function wb(e){var r=e.cm;e.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var s=+new Date+e.options.workTime,a=Ci(e,r.highlightFrontier),u=[];r.iter(a.line,Math.min(r.first+r.size,e.display.viewTo+500),function(g){if(a.line>=e.display.viewFrom){var x=g.styles,_=g.text.length>e.options.maxHighlightLength?Ve(r.mode,a.state):null,C=Bl(e,g,a,!0);_&&(a.state=_),g.styles=C.styles;var L=g.styleClasses,Y=C.classes;Y?g.styleClasses=Y:L&&(g.styleClasses=null);for(var J=!x||x.length!=g.styles.length||L!=Y&&(!L||!Y||L.bgClass!=Y.bgClass||L.textClass!=Y.textClass),fe=0;!J&&fes)return zi(e,e.options.workDelay),!0}),r.highlightFrontier=a.line,r.modeFrontier=Math.max(r.modeFrontier,a.line),u.length&&Ar(e,function(){for(var g=0;g=s.viewFrom&&r.visible.to<=s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo)&&s.renderedView==s.view&&_u(e)==0)return!1;Ou(e)&&(yn(e),r.dims=rs(e));var u=a.first+a.size,g=Math.max(r.visible.from-e.options.viewportMargin,a.first),x=Math.min(u,r.visible.to+e.options.viewportMargin);s.viewFromx&&s.viewTo-x<20&&(x=Math.min(u,s.viewTo)),an&&(g=Wa(e.doc,g),x=Jl(e.doc,x));var _=g!=s.viewFrom||x!=s.viewTo||s.lastWrapHeight!=r.wrapperHeight||s.lastWrapWidth!=r.wrapperWidth;cb(e,g,x),s.viewOffset=sn(se(e.doc,s.viewFrom)),e.display.mover.style.top=s.viewOffset+"px";var C=_u(e);if(!_&&C==0&&!r.force&&s.renderedView==s.view&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo))return!1;var L=Eb(e);return C>4&&(s.lineDiv.style.display="none"),Tb(e,s.updateLineNumbers,r.dims),C>4&&(s.lineDiv.style.display=""),s.renderedView=s.view,Cb(L),K(s.cursorDiv),K(s.selectionDiv),s.gutters.style.height=s.sizer.style.minHeight=0,_&&(s.lastWrapHeight=r.wrapperHeight,s.lastWrapWidth=r.wrapperWidth,zi(e,400)),s.updateLineNumbers=null,!0}function Fu(e,r){for(var s=r.viewport,a=!0;;a=!1){if(!a||!e.options.lineWrapping||r.oldDisplayWidth==An(e)){if(s&&s.top!=null&&(s={top:Math.min(e.doc.height+Ya(e.display)-Xa(e),s.top)}),r.visible=Mo(e.display,e.doc,s),r.visible.from>=e.display.viewFrom&&r.visible.to<=e.display.viewTo)break}else a&&(r.visible=Mo(e.display,e.doc,s));if(!fs(e,r))break;Fo(e);var u=Pi(e);Fi(e),Jn(e,u),ps(e,u),r.force=!1}r.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(r.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ds(e,r){var s=new Po(e,r);if(fs(e,s)){Fo(e),Fu(e,s);var a=Pi(e);Fi(e),Jn(e,a),ps(e,a),s.finish()}}function Tb(e,r,s){var a=e.display,u=e.options.lineNumbers,g=a.lineDiv,x=g.firstChild;function _(ye){var Ee=ye.nextSibling;return f&&S&&e.display.currentWheelTarget==ye?ye.style.display="none":ye.parentNode.removeChild(ye),Ee}for(var C=a.view,L=a.viewFrom,Y=0;Y-1&&(le=!1),iu(e,J,L,s)),le&&(K(J.lineNumber),J.lineNumber.appendChild(document.createTextNode(Dt(e.options,L)))),x=J.node.nextSibling}L+=J.size}for(;x;)x=_(x)}function hs(e){var r=e.gutters.offsetWidth;e.sizer.style.marginLeft=r+"px",tr(e,"gutterChanged",e)}function ps(e,r){e.display.sizer.style.minHeight=r.docHeight+"px",e.display.heightForcer.style.top=r.docHeight+"px",e.display.gutters.style.height=r.docHeight+e.display.barHeight+Yr(e)+"px"}function Mu(e){var r=e.display,s=r.view;if(!(!r.alignWidgets&&(!r.gutters.firstChild||!e.options.fixedGutter))){for(var a=ns(r)-r.scroller.scrollLeft+e.doc.scrollLeft,u=r.gutters.offsetWidth,g=a+"px",x=0;x_.clientWidth,L=_.scrollHeight>_.clientHeight;if(!!(a&&C||u&&L)){if(u&&S&&f){e:for(var Y=r.target,J=x.view;Y!=_;Y=Y.parentNode)for(var fe=0;fe=0&&D(e,a.to())<=0)return s}return-1};var At=function(e,r){this.anchor=e,this.head=r};At.prototype.from=function(){return ft(this.anchor,this.head)},At.prototype.to=function(){return De(this.anchor,this.head)},At.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Hr(e,r,s){var a=e&&e.options.selectionsMayTouch,u=r[s];r.sort(function(fe,le){return D(fe.from(),le.from())}),s=xe(r,u);for(var g=1;g0:C>=0){var L=ft(_.from(),x.from()),Y=De(_.to(),x.to()),J=_.empty()?x.from()==x.head:_.from()==_.head;g<=s&&--s,r.splice(--g,2,new At(J?Y:L,J?L:Y))}}return new Mr(r,s)}function bn(e,r){return new Mr([new At(e,r||e)],0)}function xn(e){return e.text?we(e.from.line+e.text.length-1,Re(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Nu(e,r){if(D(e,r.from)<0)return e;if(D(e,r.to)<=0)return xn(r);var s=e.line+r.text.length-(r.to.line-r.from.line)-1,a=e.ch;return e.line==r.to.line&&(a+=xn(r).ch-r.to.ch),we(s,a)}function gs(e,r){for(var s=[],a=0;a1&&e.remove(_.line+1,ye-1),e.insert(_.line+1,$e)}tr(e,"change",e,r)}function wn(e,r,s){function a(u,g,x){if(u.linked)for(var _=0;_1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Re(e.done)}function Hu(e,r,s,a){var u=e.history;u.undone.length=0;var g=+new Date,x,_;if((u.lastOp==a||u.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&u.lastModTime>g-(e.cm?e.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(x=Fb(u,u.lastOp==a)))_=Re(x.changes),D(r.from,r.to)==0&&D(r.from,_.to)==0?_.to=xn(r):x.changes.push(bs(e,r));else{var C=Re(u.done);for((!C||!C.ranges)&&No(e.sel,u.done),x={changes:[bs(e,r)],generation:u.generation},u.done.push(x);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(s),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=g,u.lastOp=u.lastSelOp=a,u.lastOrigin=u.lastSelOrigin=r.origin,_||rt(e,"historyAdded")}function Mb(e,r,s,a){var u=r.charAt(0);return u=="*"||u=="+"&&s.ranges.length==a.ranges.length&&s.somethingSelected()==a.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Ob(e,r,s,a){var u=e.history,g=a&&a.origin;s==u.lastSelOp||g&&u.lastSelOrigin==g&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==g||Mb(e,g,Re(u.done),r))?u.done[u.done.length-1]=r:No(r,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=g,u.lastSelOp=s,a&&a.clearRedo!==!1&&ju(u.undone)}function No(e,r){var s=Re(r);s&&s.ranges&&s.equals(e)||r.push(e)}function Wu(e,r,s,a){var u=r["spans_"+e.id],g=0;e.iter(Math.max(e.first,s),Math.min(e.first+e.size,a),function(x){x.markedSpans&&((u||(u=r["spans_"+e.id]={}))[g]=x.markedSpans),++g})}function Pb(e){if(!e)return null;for(var r,s=0;s-1&&(Re(_)[J]=L[J],delete L[J])}}return a}function xs(e,r,s,a){if(a){var u=e.anchor;if(s){var g=D(r,u)<0;g!=D(s,u)<0?(u=r,r=s):g!=D(r,s)<0&&(r=s)}return new At(u,r)}else return new At(s||r,r)}function Bo(e,r,s,a,u){u==null&&(u=e.cm&&(e.cm.display.shift||e.extend)),mr(e,new Mr([xs(e.sel.primary(),r,s,u)],0),a)}function Ku(e,r,s){for(var a=[],u=e.cm&&(e.cm.display.shift||e.extend),g=0;g=r.ch:_.to>r.ch))){if(u&&(rt(C,"beforeCursorEnter"),C.explicitlyCleared))if(g.markedSpans){--x;continue}else break;if(!C.atomic)continue;if(s){var J=C.find(a<0?1:-1),fe=void 0;if((a<0?Y:L)&&(J=Ju(e,J,-a,J&&J.line==r.line?g:null)),J&&J.line==r.line&&(fe=D(J,s))&&(a<0?fe<0:fe>0))return ti(e,J,r,a,u)}var le=C.find(a<0?-1:1);return(a<0?L:Y)&&(le=Ju(e,le,a,le.line==r.line?g:null)),le?ti(e,le,r,a,u):null}}return r}function $o(e,r,s,a,u){var g=a||1,x=ti(e,r,s,g,u)||!u&&ti(e,r,s,g,!0)||ti(e,r,s,-g,u)||!u&&ti(e,r,s,-g,!0);return x||(e.cantEdit=!0,we(e.first,0))}function Ju(e,r,s,a){return s<0&&r.ch==0?r.line>e.first?Ze(e,we(r.line-1)):null:s>0&&r.ch==(a||se(e,r.line)).text.length?r.line=0;--u)rc(e,{from:a[u].from,to:a[u].to,text:u?[""]:r.text,origin:r.origin});else rc(e,r)}}function rc(e,r){if(!(r.text.length==1&&r.text[0]==""&&D(r.from,r.to)==0)){var s=gs(e,r);Hu(e,r,s,e.cm?e.cm.curOp.id:NaN),qi(e,r,s,ja(e,r));var a=[];wn(e,function(u,g){!g&&xe(a,u.history)==-1&&(ac(u.history,r),a.push(u.history)),qi(u,r,null,ja(u,r))})}}function Uo(e,r,s){var a=e.cm&&e.cm.state.suppressEdits;if(!(a&&!s)){for(var u=e.history,g,x=e.sel,_=r=="undo"?u.done:u.undone,C=r=="undo"?u.undone:u.done,L=0;L<_.length&&(g=_[L],!(s?g.ranges&&!g.equals(e.sel):!g.ranges));L++);if(L!=_.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(g=_.pop(),g.ranges){if(No(g,C),s&&!g.equals(e.sel)){mr(e,g,{clearRedo:!1});return}x=g}else if(a){_.push(g);return}else break;var Y=[];No(x,C),C.push({changes:Y,generation:u.generation}),u.generation=g.generation||++u.maxGeneration;for(var J=Et(e,"beforeChange")||e.cm&&Et(e.cm,"beforeChange"),fe=function(Ee){var Pe=g.changes[Ee];if(Pe.origin=r,J&&!tc(e,Pe,!1))return _.length=0,{};Y.push(bs(e,Pe));var $e=Ee?gs(e,Pe):Re(_);qi(e,Pe,$e,Gu(e,Pe)),!Ee&&e.cm&&e.cm.scrollIntoView({from:Pe.from,to:xn(Pe)});var Qe=[];wn(e,function(Ue,nt){!nt&&xe(Qe,Ue.history)==-1&&(ac(Ue.history,Pe),Qe.push(Ue.history)),qi(Ue,Pe,null,Gu(Ue,Pe))})},le=g.changes.length-1;le>=0;--le){var ye=fe(le);if(ye)return ye.v}}}}function nc(e,r){if(r!=0&&(e.first+=r,e.sel=new Mr(Ie(e.sel.ranges,function(u){return new At(we(u.anchor.line+r,u.anchor.ch),we(u.head.line+r,u.head.ch))}),e.sel.primIndex),e.cm)){kr(e.cm,e.first,e.first-r,r);for(var s=e.cm.display,a=s.viewFrom;ae.lastLine())){if(r.from.lineg&&(r={from:r.from,to:we(g,se(e,g).text.length),text:[r.text[0]],origin:r.origin}),r.removed=pe(e,r.from,r.to),s||(s=gs(e,r)),e.cm?Nb(e.cm,r,a):ys(e,r,a),qo(e,s,qe),e.cantEdit&&$o(e,we(e.firstLine(),0))&&(e.cantEdit=!1)}}function Nb(e,r,s){var a=e.doc,u=e.display,g=r.from,x=r.to,_=!1,C=g.line;e.options.lineWrapping||(C=Ye(Ur(se(a,g.line))),a.iter(C,x.line+1,function(le){if(le==u.maxLine)return _=!0,!0})),a.sel.contains(r.from,r.to)>-1&&dr(e),ys(a,r,s,ku(e)),e.options.lineWrapping||(a.iter(C,g.line+r.text.length,function(le){var ye=Eo(le);ye>u.maxLineLength&&(u.maxLine=le,u.maxLineLength=ye,u.maxLineChanged=!0,_=!1)}),_&&(e.curOp.updateMaxLine=!0)),Ty(a,g.line),zi(e,400);var L=r.text.length-(x.line-g.line)-1;r.full?kr(e):g.line==x.line&&r.text.length==1&&!qu(e.doc,r)?vn(e,g.line,"text"):kr(e,g.line,x.line+1,L);var Y=Et(e,"changes"),J=Et(e,"change");if(J||Y){var fe={from:g,to:x,text:r.text,removed:r.removed,origin:r.origin};J&&tr(e,"change",e,fe),Y&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(fe)}e.display.selForContextMenu=null}function ni(e,r,s,a,u){var g;a||(a=s),D(a,s)<0&&(g=[a,s],s=g[0],a=g[1]),typeof r=="string"&&(r=e.splitLines(r)),ri(e,{from:s,to:a,text:r,origin:u})}function ic(e,r,s,a){s1||!(this.children[0]instanceof Ui))){var _=[];this.collapse(_),this.children=[new Ui(_)],this.children[0].parent=this}},collapse:function(e){for(var r=0;r50){for(var x=u.lines.length%25+25,_=x;_10);e.parent.maybeSpill()}},iterN:function(e,r,s){for(var a=0;ae.display.maxLineLength&&(e.display.maxLine=L,e.display.maxLineLength=Y,e.display.maxLineChanged=!0)}a!=null&&e&&this.collapsed&&kr(e,a,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Zu(e.doc)),e&&tr(e,"markerCleared",e,this,a,u),r&&Pn(e),this.parent&&this.parent.clear()}},kn.prototype.find=function(e,r){e==null&&this.type=="bookmark"&&(e=1);for(var s,a,u=0;u0||x==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=T("span",[g.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(Ql(e,r.line,r,s,g)||r.line!=s.line&&Ql(e,s.line,r,s,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ly()}g.addToHistory&&Hu(e,{from:r,to:s,origin:"markText"},e.sel,NaN);var _=r.line,C=e.cm,L;if(e.iter(_,s.line+1,function(J){C&&g.collapsed&&!C.options.lineWrapping&&Ur(J)==C.display.maxLine&&(L=!0),g.collapsed&&_!=r.line&&Ae(J,0),Iy(J,new wo(g,_==r.line?r.ch:null,_==s.line?s.ch:null),e.cm&&e.cm.curOp),++_}),g.collapsed&&e.iter(r.line,s.line+1,function(J){gn(e,J)&&Ae(J,0)}),g.clearOnEnter&<(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(Ay(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),g.collapsed&&(g.id=++lc,g.atomic=!0),C){if(L&&(C.curOp.updateMaxLine=!0),g.collapsed)kr(C,r.line,s.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var Y=r.line;Y<=s.line;Y++)vn(C,Y,"text");g.atomic&&Zu(C.doc),tr(C,"markerAdded",C,g)}return g}var Wi=function(e,r){this.markers=e,this.primary=r;for(var s=0;s=0;C--)ri(this,a[C]);_?Yu(this,_):this.cm&&Qn(this.cm)}),undo:nr(function(){Uo(this,"undo")}),redo:nr(function(){Uo(this,"redo")}),undoSelection:nr(function(){Uo(this,"undo",!0)}),redoSelection:nr(function(){Uo(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,r=0,s=0,a=0;a=e.ch)&&r.push(u.marker.parent||u.marker)}return r},findMarks:function(e,r,s){e=Ze(this,e),r=Ze(this,r);var a=[],u=e.line;return this.iter(e.line,r.line+1,function(g){var x=g.markedSpans;if(x)for(var _=0;_=C.to||C.from==null&&u!=e.line||C.from!=null&&u==r.line&&C.from>=r.ch)&&(!s||s(C.marker))&&a.push(C.marker.parent||C.marker)}++u}),a},getAllMarks:function(){var e=[];return this.iter(function(r){var s=r.markedSpans;if(s)for(var a=0;ae)return r=e,!0;e-=g,++s}),Ze(this,we(s,r))},indexFromPos:function(e){e=Ze(this,e);var r=e.ch;if(e.liner&&(r=e.from),e.to!=null&&e.to-1){r.state.draggingText(e),setTimeout(function(){return r.display.input.focus()},20);return}try{var Y=e.dataTransfer.getData("Text");if(Y){var J;if(r.state.draggingText&&!r.state.draggingText.copy&&(J=r.listSelections()),qo(r.doc,bn(s,s)),J)for(var fe=0;fe=0;_--)ni(e.doc,"",a[_].from,a[_].to,"+delete");Qn(e)})}function ks(e,r,s){var a=Ne(e.text,r+s,s);return a<0||a>e.text.length?null:a}function _s(e,r,s){var a=ks(e,r.ch,s);return a==null?null:new we(r.line,a,s<0?"after":"before")}function Ss(e,r,s,a,u){if(e){r.doc.direction=="rtl"&&(u=-u);var g=Lt(s,r.doc.direction);if(g){var x=u<0?Re(g):g[0],_=u<0==(x.level==1),C=_?"after":"before",L;if(x.level>0||r.doc.direction=="rtl"){var Y=Vn(r,s);L=u<0?s.text.length-1:0;var J=Xr(r,Y,L).top;L=ot(function(fe){return Xr(r,Y,fe).top==J},u<0==(x.level==1)?x.from:x.to-1,L),C=="before"&&(L=ks(s,L,1))}else L=u<0?x.to:x.from;return new we(a,L,C)}}return new we(a,u<0?s.text.length:0,u<0?"before":"after")}function Qb(e,r,s,a){var u=Lt(r,e.doc.direction);if(!u)return _s(r,s,a);s.ch>=r.text.length?(s.ch=r.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var g=We(u,s.ch,s.sticky),x=u[g];if(e.doc.direction=="ltr"&&x.level%2==0&&(a>0?x.to>s.ch:x.from=x.from&&fe>=Y.begin)){var le=J?"before":"after";return new we(s.line,fe,le)}}var ye=function($e,Qe,Ue){for(var nt=function(Pt,ir){return ir?new we(s.line,_(Pt,1),"before"):new we(s.line,Pt,"after")};$e>=0&&$e0==(ct.level!=1),vt=ut?Ue.begin:_(Ue.end,-1);if(ct.from<=vt&&vt0?Y.end:_(Y.begin,-1);return Pe!=null&&!(a>0&&Pe==r.text.length)&&(Ee=ye(a>0?0:u.length-1,a,L(Pe)),Ee)?Ee:null}var Vi={selectAll:ec,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),qe)},killLine:function(e){return ai(e,function(r){if(r.empty()){var s=se(e.doc,r.head.line).text.length;return r.head.ch==s&&r.head.line0)u=new we(u.line,u.ch+1),e.replaceRange(g.charAt(u.ch-1)+g.charAt(u.ch-2),we(u.line,u.ch-2),u,"+transpose");else if(u.line>e.doc.first){var x=se(e.doc,u.line-1).text;x&&(u=new we(u.line,1),e.replaceRange(g.charAt(0)+e.doc.lineSeparator()+x.charAt(x.length-1),we(u.line-1,x.length-1),u,"+transpose"))}}s.push(new At(u,u))}e.setSelections(s)})},newlineAndIndent:function(e){return Ar(e,function(){for(var r=e.listSelections(),s=r.length-1;s>=0;s--)e.replaceRange(e.doc.lineSeparator(),r[s].anchor,r[s].head,"+input");r=e.listSelections();for(var a=0;ae&&D(r,this.pos)==0&&s==this.button};var Xi,Zi;function ox(e,r){var s=+new Date;return Zi&&Zi.compare(s,e,r)?(Xi=Zi=null,"triple"):Xi&&Xi.compare(s,e,r)?(Zi=new Cs(s,e,r),Xi=null,"double"):(Xi=new Cs(s,e,r),Zi=null,"single")}function Sc(e){var r=this,s=r.display;if(!(wt(r,e)||s.activeTouch&&s.input.supportsTouch())){if(s.input.ensurePolled(),s.shift=e.shiftKey,ln(s,e)){f||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(!Ts(r,e)){var a=Dn(r,e),u=pr(e),g=a?ox(a,u):"single";window.focus(),u==1&&r.state.selectingText&&r.state.selectingText(e),!(a&&ax(r,u,a,g,e))&&(u==1?a?lx(r,a,g,e):hr(e)==s.scroller&&kt(e):u==2?(a&&Bo(r.doc,a),setTimeout(function(){return s.input.focus()},20)):u==3&&(ee?r.display.input.onContextMenu(e):ss(r)))}}}function ax(e,r,s,a,u){var g="Click";return a=="double"?g="Double"+g:a=="triple"&&(g="Triple"+g),g=(r==1?"Left":r==2?"Middle":"Right")+g,Yi(e,mc(g,u),u,function(x){if(typeof x=="string"&&(x=Vi[x]),!x)return!1;var _=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),_=x(e,s)!=ze}finally{e.state.suppressEdits=!1}return _})}function sx(e,r,s){var a=e.getOption("configureMouse"),u=a?a(e,r,s):{};if(u.unit==null){var g=N?s.shiftKey&&s.metaKey:s.altKey;u.unit=g?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(u.extend==null||e.doc.extend)&&(u.extend=e.doc.extend||s.shiftKey),u.addNew==null&&(u.addNew=S?s.metaKey:s.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(S?s.altKey:s.ctrlKey)),u}function lx(e,r,s,a){o?setTimeout(F(Eu,e),0):e.curOp.focus=P();var u=sx(e,s,a),g=e.doc.sel,x;e.options.dragDrop&&$r&&!e.isReadOnly()&&s=="single"&&(x=g.contains(r))>-1&&(D((x=g.ranges[x]).from(),r)<0||r.xRel>0)&&(D(x.to(),r)>0||r.xRel<0)?ux(e,a,r,u):cx(e,a,r,u)}function ux(e,r,s,a){var u=e.display,g=!1,x=rr(e,function(L){f&&(u.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:ss(e)),pt(u.wrapper.ownerDocument,"mouseup",x),pt(u.wrapper.ownerDocument,"mousemove",_),pt(u.scroller,"dragstart",C),pt(u.scroller,"drop",x),g||(kt(L),a.addNew||Bo(e.doc,s,null,null,a.extend),f&&!v||o&&h==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),_=function(L){g=g||Math.abs(r.clientX-L.clientX)+Math.abs(r.clientY-L.clientY)>=10},C=function(){return g=!0};f&&(u.scroller.draggable=!0),e.state.draggingText=x,x.copy=!a.moveOnDrag,lt(u.wrapper.ownerDocument,"mouseup",x),lt(u.wrapper.ownerDocument,"mousemove",_),lt(u.scroller,"dragstart",C),lt(u.scroller,"drop",x),e.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function Ec(e,r,s){if(s=="char")return new At(r,r);if(s=="word")return e.findWordAt(r);if(s=="line")return new At(we(r.line,0),Ze(e.doc,we(r.line+1,0)));var a=s(e,r);return new At(a.from,a.to)}function cx(e,r,s,a){o&&ss(e);var u=e.display,g=e.doc;kt(r);var x,_,C=g.sel,L=C.ranges;if(a.addNew&&!a.extend?(_=g.sel.contains(s),_>-1?x=L[_]:x=new At(s,s)):(x=g.sel.primary(),_=g.sel.primIndex),a.unit=="rectangle")a.addNew||(x=new At(s,s)),s=Dn(e,r,!0,!0),_=-1;else{var Y=Ec(e,s,a.unit);a.extend?x=xs(x,Y.anchor,Y.head,a.extend):x=Y}a.addNew?_==-1?(_=L.length,mr(g,Hr(e,L.concat([x]),_),{scroll:!1,origin:"*mouse"})):L.length>1&&L[_].empty()&&a.unit=="char"&&!a.extend?(mr(g,Hr(e,L.slice(0,_).concat(L.slice(_+1)),0),{scroll:!1,origin:"*mouse"}),C=g.sel):ws(g,_,x,ge):(_=0,mr(g,new Mr([x],0),ge),C=g.sel);var J=s;function fe(Ue){if(D(J,Ue)!=0)if(J=Ue,a.unit=="rectangle"){for(var nt=[],ct=e.options.tabSize,ut=be(se(g,s.line).text,s.ch,ct),vt=be(se(g,Ue.line).text,Ue.ch,ct),Pt=Math.min(ut,vt),ir=Math.max(ut,vt),Bt=Math.min(s.line,Ue.line),Lr=Math.min(e.lastLine(),Math.max(s.line,Ue.line));Bt<=Lr;Bt++){var Sr=se(g,Bt).text,Xt=je(Sr,Pt,ct);Pt==ir?nt.push(new At(we(Bt,Xt),we(Bt,Xt))):Sr.length>Xt&&nt.push(new At(we(Bt,Xt),we(Bt,je(Sr,ir,ct))))}nt.length||nt.push(new At(s,s)),mr(g,Hr(e,C.ranges.slice(0,_).concat(nt),_),{origin:"*mouse",scroll:!1}),e.scrollIntoView(Ue)}else{var Er=x,cr=Ec(e,Ue,a.unit),Jt=Er.anchor,Zt;D(cr.anchor,Jt)>0?(Zt=cr.head,Jt=ft(Er.from(),cr.anchor)):(Zt=cr.anchor,Jt=De(Er.to(),cr.head));var Ut=C.ranges.slice(0);Ut[_]=fx(e,new At(Ze(g,Jt),Zt)),mr(g,Hr(e,Ut,_),ge)}}var le=u.wrapper.getBoundingClientRect(),ye=0;function Ee(Ue){var nt=++ye,ct=Dn(e,Ue,!0,a.unit=="rectangle");if(!!ct)if(D(ct,J)!=0){e.curOp.focus=P(),fe(ct);var ut=Mo(u,g);(ct.line>=ut.to||ct.linele.bottom?20:0;vt&&setTimeout(rr(e,function(){ye==nt&&(u.scroller.scrollTop+=vt,Ee(Ue))}),50)}}function Pe(Ue){e.state.selectingText=!1,ye=1/0,Ue&&(kt(Ue),u.input.focus()),pt(u.wrapper.ownerDocument,"mousemove",$e),pt(u.wrapper.ownerDocument,"mouseup",Qe),g.history.lastSelOrigin=null}var $e=rr(e,function(Ue){Ue.buttons===0||!pr(Ue)?Pe(Ue):Ee(Ue)}),Qe=rr(e,Pe);e.state.selectingText=Qe,lt(u.wrapper.ownerDocument,"mousemove",$e),lt(u.wrapper.ownerDocument,"mouseup",Qe)}function fx(e,r){var s=r.anchor,a=r.head,u=se(e.doc,s.line);if(D(s,a)==0&&s.sticky==a.sticky)return r;var g=Lt(u);if(!g)return r;var x=We(g,s.ch,s.sticky),_=g[x];if(_.from!=s.ch&&_.to!=s.ch)return r;var C=x+(_.from==s.ch==(_.level!=1)?0:1);if(C==0||C==g.length)return r;var L;if(a.line!=s.line)L=(a.line-s.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var Y=We(g,a.ch,a.sticky),J=Y-x||(a.ch-s.ch)*(_.level==1?-1:1);Y==C-1||Y==C?L=J<0:L=J>0}var fe=g[C+(L?-1:0)],le=L==(fe.level==1),ye=le?fe.from:fe.to,Ee=le?"after":"before";return s.ch==ye&&s.sticky==Ee?r:new At(new we(s.line,ye,Ee),a)}function Cc(e,r,s,a){var u,g;if(r.touches)u=r.touches[0].clientX,g=r.touches[0].clientY;else try{u=r.clientX,g=r.clientY}catch{return!1}if(u>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;a&&kt(r);var x=e.display,_=x.lineDiv.getBoundingClientRect();if(g>_.bottom||!Et(e,s))return Ht(r);g-=_.top-x.viewOffset;for(var C=0;C=u){var Y=tt(e.doc,g),J=e.display.gutterSpecs[C];return rt(e,s,e,Y,J.className,r),Ht(r)}}}function Ts(e,r){return Cc(e,r,"gutterClick",!0)}function Tc(e,r){ln(e.display,r)||dx(e,r)||wt(e,r,"contextmenu")||ee||e.display.input.onContextMenu(r)}function dx(e,r){return Et(e,"gutterContextMenu")?Cc(e,r,"gutterContextMenu",!1):!1}function Ac(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ii(e)}var si={toString:function(){return"CodeMirror.Init"}},Lc={},Go={};function hx(e){var r=e.optionHandlers;function s(a,u,g,x){e.defaults[a]=u,g&&(r[a]=x?function(_,C,L){L!=si&&g(_,C,L)}:g)}e.defineOption=s,e.Init=si,s("value","",function(a,u){return a.setValue(u)},!0),s("mode",null,function(a,u){a.doc.modeOption=u,vs(a)},!0),s("indentUnit",2,vs,!0),s("indentWithTabs",!1),s("smartIndent",!0),s("tabSize",4,function(a){Bi(a),Ii(a),kr(a)},!0),s("lineSeparator",null,function(a,u){if(a.doc.lineSep=u,!!u){var g=[],x=a.doc.first;a.doc.iter(function(C){for(var L=0;;){var Y=C.text.indexOf(u,L);if(Y==-1)break;L=Y+u.length,g.push(we(x,Y))}x++});for(var _=g.length-1;_>=0;_--)ni(a.doc,u,g[_],we(g[_].line,g[_].ch+u.length))}}),s("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(a,u,g){a.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),g!=si&&a.refresh()}),s("specialCharPlaceholder",Uy,function(a){return a.refresh()},!0),s("electricChars",!0),s("inputStyle",I?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),s("spellcheck",!1,function(a,u){return a.getInputField().spellcheck=u},!0),s("autocorrect",!1,function(a,u){return a.getInputField().autocorrect=u},!0),s("autocapitalize",!1,function(a,u){return a.getInputField().autocapitalize=u},!0),s("rtlMoveVisually",!O),s("wholeLineUpdateBefore",!0),s("theme","default",function(a){Ac(a),Ni(a)},!0),s("keyMap","default",function(a,u,g){var x=Ho(u),_=g!=si&&Ho(g);_&&_.detach&&_.detach(a,x),x.attach&&x.attach(a,_||null)}),s("extraKeys",null),s("configureMouse",null),s("lineWrapping",!1,mx,!0),s("gutters",[],function(a,u){a.display.gutterSpecs=ms(u,a.options.lineNumbers),Ni(a)},!0),s("fixedGutter",!0,function(a,u){a.display.gutters.style.left=u?ns(a.display)+"px":"0",a.refresh()},!0),s("coverGutterNextToScrollbar",!1,function(a){return Jn(a)},!0),s("scrollbarStyle","native",function(a){Iu(a),Jn(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),s("lineNumbers",!1,function(a,u){a.display.gutterSpecs=ms(a.options.gutters,u),Ni(a)},!0),s("firstLineNumber",1,Ni,!0),s("lineNumberFormatter",function(a){return a},Ni,!0),s("showCursorWhenSelecting",!1,Fi,!0),s("resetSelectionOnContextMenu",!0),s("lineWiseCopyCut",!0),s("pasteLinesPerSelection",!0),s("selectionsMayTouch",!1),s("readOnly",!1,function(a,u){u=="nocursor"&&(Zn(a),a.display.input.blur()),a.display.input.readOnlyChanged(u)}),s("screenReaderLabel",null,function(a,u){u=u===""?null:u,a.display.input.screenReaderLabelChanged(u)}),s("disableInput",!1,function(a,u){u||a.display.input.reset()},!0),s("dragDrop",!0,px),s("allowDropFileTypes",null),s("cursorBlinkRate",530),s("cursorScrollMargin",0),s("cursorHeight",1,Fi,!0),s("singleCursorHeightPerLine",!0,Fi,!0),s("workTime",100),s("workDelay",100),s("flattenSpans",!0,Bi,!0),s("addModeClass",!1,Bi,!0),s("pollInterval",100),s("undoDepth",200,function(a,u){return a.doc.history.undoDepth=u}),s("historyEventDelay",1250),s("viewportMargin",10,function(a){return a.refresh()},!0),s("maxHighlightLength",1e4,Bi,!0),s("moveInputWithCursor",!0,function(a,u){u||a.display.input.resetPosition()}),s("tabindex",null,function(a,u){return a.display.input.getField().tabIndex=u||""}),s("autofocus",null),s("direction","ltr",function(a,u){return a.doc.setDirection(u)},!0),s("phrases",null)}function px(e,r,s){var a=s&&s!=si;if(!r!=!a){var u=e.display.dragFunctions,g=r?lt:pt;g(e.display.scroller,"dragstart",u.start),g(e.display.scroller,"dragenter",u.enter),g(e.display.scroller,"dragover",u.over),g(e.display.scroller,"dragleave",u.leave),g(e.display.scroller,"drop",u.drop)}}function mx(e){e.options.lineWrapping?(z(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(W(e.display.wrapper,"CodeMirror-wrap"),Ka(e)),is(e),kr(e),Ii(e),setTimeout(function(){return Jn(e)},100)}function Nt(e,r){var s=this;if(!(this instanceof Nt))return new Nt(e,r);this.options=r=r?A(r):{},A(Lc,r,!1);var a=r.value;typeof a=="string"?a=new _r(a,r.mode,null,r.lineSeparator,r.direction):r.mode&&(a.modeOption=r.mode),this.doc=a;var u=new Nt.inputStyles[r.inputStyle](this),g=this.display=new Ab(e,a,u,r);g.wrapper.CodeMirror=this,Ac(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Iu(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 Fe,keySeq:null,specialChars:null},r.autofocus&&!I&&g.input.focus(),o&&h<11&&setTimeout(function(){return s.display.input.reset(!0)},20),gx(this),Kb(),On(this),this.curOp.forceUpdate=!0,$u(this,a),r.autofocus&&!I||this.hasFocus()?setTimeout(function(){s.hasFocus()&&!s.state.focused&&ls(s)},20):Zn(this);for(var x in Go)Go.hasOwnProperty(x)&&Go[x](this,r[x],si);Ou(this),r.finishInit&&r.finishInit(this);for(var _=0;_20*20}lt(r.scroller,"touchstart",function(C){if(!wt(e,C)&&!g(C)&&!Ts(e,C)){r.input.ensurePolled(),clearTimeout(s);var L=+new Date;r.activeTouch={start:L,moved:!1,prev:L-a.end<=300?a:null},C.touches.length==1&&(r.activeTouch.left=C.touches[0].pageX,r.activeTouch.top=C.touches[0].pageY)}}),lt(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),lt(r.scroller,"touchend",function(C){var L=r.activeTouch;if(L&&!ln(r,C)&&L.left!=null&&!L.moved&&new Date-L.start<300){var Y=e.coordsChar(r.activeTouch,"page"),J;!L.prev||x(L,L.prev)?J=new At(Y,Y):!L.prev.prev||x(L,L.prev.prev)?J=e.findWordAt(Y):J=new At(we(Y.line,0),Ze(e.doc,we(Y.line+1,0))),e.setSelection(J.anchor,J.head),e.focus(),kt(C)}u()}),lt(r.scroller,"touchcancel",u),lt(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Oi(e,r.scroller.scrollTop),Fn(e,r.scroller.scrollLeft,!0),rt(e,"scroll",e))}),lt(r.scroller,"mousewheel",function(C){return zu(e,C)}),lt(r.scroller,"DOMMouseScroll",function(C){return zu(e,C)}),lt(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(C){wt(e,C)||Ir(C)},over:function(C){wt(e,C)||(Gb(e,C),Ir(C))},start:function(C){return Wb(e,C)},drop:rr(e,Hb),leave:function(C){wt(e,C)||fc(e)}};var _=r.input.getField();lt(_,"keyup",function(C){return kc.call(e,C)}),lt(_,"keydown",rr(e,wc)),lt(_,"keypress",rr(e,_c)),lt(_,"focus",function(C){return ls(e,C)}),lt(_,"blur",function(C){return Zn(e,C)})}var As=[];Nt.defineInitHook=function(e){return As.push(e)};function Qi(e,r,s,a){var u=e.doc,g;s==null&&(s="add"),s=="smart"&&(u.mode.indent?g=Ci(e,r).state:s="prev");var x=e.options.tabSize,_=se(u,r),C=be(_.text,null,x);_.stateAfter&&(_.stateAfter=null);var L=_.text.match(/^\s*/)[0],Y;if(!a&&!/\S/.test(_.text))Y=0,s="not";else if(s=="smart"&&(Y=u.mode.indent(g,_.text.slice(L.length),_.text),Y==ze||Y>150)){if(!a)return;s="prev"}s=="prev"?r>u.first?Y=be(se(u,r-1).text,null,x):Y=0:s=="add"?Y=C+e.options.indentUnit:s=="subtract"?Y=C-e.options.indentUnit:typeof s=="number"&&(Y=C+s),Y=Math.max(0,Y);var J="",fe=0;if(e.options.indentWithTabs)for(var le=Math.floor(Y/x);le;--le)fe+=x,J+=" ";if(fex,C=ie(r),L=null;if(_&&a.ranges.length>1)if(Wr&&Wr.text.join(` -`)==r){if(a.ranges.length%Wr.text.length==0){L=[];for(var Y=0;Y=0;fe--){var le=a.ranges[fe],ye=le.from(),Ee=le.to();le.empty()&&(s&&s>0?ye=we(ye.line,ye.ch-s):e.state.overwrite&&!_?Ee=we(Ee.line,Math.min(se(g,Ee.line).text.length,Ee.ch+Re(C).length)):_&&Wr&&Wr.lineWise&&Wr.text.join(` -`)==C.join(` -`)&&(ye=Ee=we(ye.line,0)));var Pe={from:ye,to:Ee,text:L?L[fe%L.length]:C,origin:u||(_?"paste":e.state.cutIncoming>x?"cut":"+input")};ri(e.doc,Pe),tr(e,"inputRead",e,Pe)}r&&!_&&Ic(e,r),Qn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=J),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Dc(e,r){var s=e.clipboardData&&e.clipboardData.getData("Text");if(s)return e.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&Ar(r,function(){return Ls(r,s,0,null,"paste")}),!0}function Ic(e,r){if(!(!e.options.electricChars||!e.options.smartIndent))for(var s=e.doc.sel,a=s.ranges.length-1;a>=0;a--){var u=s.ranges[a];if(!(u.head.ch>100||a&&s.ranges[a-1].head.line==u.head.line)){var g=e.getModeAt(u.head),x=!1;if(g.electricChars){for(var _=0;_-1){x=Qi(e,u.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(se(e.doc,u.head.line).text.slice(0,u.head.ch))&&(x=Qi(e,u.head.line,"smart"));x&&tr(e,"electricInput",e,u.head.line)}}}function Fc(e){for(var r=[],s=[],a=0;ag&&(Qi(this,_.head.line,a,!0),g=_.head.line,x==this.doc.sel.primIndex&&Qn(this));else{var C=_.from(),L=_.to(),Y=Math.max(g,C.line);g=Math.min(this.lastLine(),L.line-(L.ch?0:1))+1;for(var J=Y;J0&&ws(this.doc,x,new At(C,fe[x].to()),qe)}}}),getTokenAt:function(a,u){return jl(this,a,u)},getLineTokens:function(a,u){return jl(this,we(a),u,!0)},getTokenTypeAt:function(a){a=Ze(this.doc,a);var u=ql(this,se(this.doc,a.line)),g=0,x=(u.length-1)/2,_=a.ch,C;if(_==0)C=u[2];else for(;;){var L=g+x>>1;if((L?u[L*2-1]:0)>=_)x=L;else if(u[L*2+1]<_)g=L+1;else{C=u[L*2+2];break}}var Y=C?C.indexOf("overlay "):-1;return Y<0?C:Y==0?null:C.slice(0,Y-1)},getModeAt:function(a){var u=this.doc.mode;return u.innerMode?e.innerMode(u,this.getTokenAt(a).state).mode:u},getHelper:function(a,u){return this.getHelpers(a,u)[0]},getHelpers:function(a,u){var g=[];if(!s.hasOwnProperty(u))return g;var x=s[u],_=this.getModeAt(a);if(typeof _[u]=="string")x[_[u]]&&g.push(x[_[u]]);else if(_[u])for(var C=0;C<_[u].length;C++){var L=x[_[u][C]];L&&g.push(L)}else _.helperType&&x[_.helperType]?g.push(x[_.helperType]):x[_.name]&&g.push(x[_.name]);for(var Y=0;YC&&(a=C,x=!0),_=se(this.doc,a)}else _=a;return Ao(this,_,{top:0,left:0},u||"page",g||x).top+(x?this.doc.height-sn(_):0)},defaultTextHeight:function(){return Yn(this.display)},defaultCharWidth:function(){return Xn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,u,g,x,_){var C=this.display;a=jr(this,Ze(this.doc,a));var L=a.bottom,Y=a.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),C.sizer.appendChild(u),x=="over")L=a.top;else if(x=="above"||x=="near"){var J=Math.max(C.wrapper.clientHeight,this.doc.height),fe=Math.max(C.sizer.clientWidth,C.lineSpace.clientWidth);(x=="above"||a.bottom+u.offsetHeight>J)&&a.top>u.offsetHeight?L=a.top-u.offsetHeight:a.bottom+u.offsetHeight<=J&&(L=a.bottom),Y+u.offsetWidth>fe&&(Y=fe-u.offsetWidth)}u.style.top=L+"px",u.style.left=u.style.right="",_=="right"?(Y=C.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(_=="left"?Y=0:_=="middle"&&(Y=(C.sizer.clientWidth-u.offsetWidth)/2),u.style.left=Y+"px"),g&&pb(this,{left:Y,top:L,right:Y+u.offsetWidth,bottom:L+u.offsetHeight})},triggerOnKeyDown:br(wc),triggerOnKeyPress:br(_c),triggerOnKeyUp:kc,triggerOnMouseDown:br(Sc),execCommand:function(a){if(Vi.hasOwnProperty(a))return Vi[a].call(null,this)},triggerElectric:br(function(a){Ic(this,a)}),findPosH:function(a,u,g,x){var _=1;u<0&&(_=-1,u=-u);for(var C=Ze(this.doc,a),L=0;L0&&Y(g.charAt(x-1));)--x;for(;_.5||this.options.lineWrapping)&&is(this),rt(this,"refresh",this)}),swapDoc:br(function(a){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),$u(this,a),Ii(this),this.display.input.reset(),Mi(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,tr(this,"swapDoc",this,u),u}),phrase:function(a){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,a)?u[a]:a},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}},Vt(e),e.registerHelper=function(a,u,g){s.hasOwnProperty(a)||(s[a]=e[a]={_global:[]}),s[a][u]=g},e.registerGlobalHelper=function(a,u,g,x){e.registerHelper(a,u,x),s[a]._global.push({pred:g,val:x})}}function Ds(e,r,s,a,u){var g=r,x=s,_=se(e,r.line),C=u&&e.direction=="rtl"?-s:s;function L(){var Qe=r.line+C;return Qe=e.first+e.size?!1:(r=new we(Qe,r.ch,r.sticky),_=se(e,Qe))}function Y(Qe){var Ue;if(a=="codepoint"){var nt=_.text.charCodeAt(r.ch+(s>0?0:-1));if(isNaN(nt))Ue=null;else{var ct=s>0?nt>=55296&&nt<56320:nt>=56320&&nt<57343;Ue=new we(r.line,Math.max(0,Math.min(_.text.length,r.ch+s*(ct?2:1))),-s)}}else u?Ue=Qb(e.cm,_,r,s):Ue=_s(_,r,s);if(Ue==null)if(!Qe&&L())r=Ss(u,e.cm,_,r.line,C);else return!1;else r=Ue;return!0}if(a=="char"||a=="codepoint")Y();else if(a=="column")Y(!0);else if(a=="word"||a=="group")for(var J=null,fe=a=="group",le=e.cm&&e.cm.getHelper(r,"wordChars"),ye=!0;!(s<0&&!Y(!ye));ye=!1){var Ee=_.text.charAt(r.ch)||` + left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");e.display.lineSpace.appendChild(m),m.scrollIntoView(u),e.display.lineSpace.removeChild(m)}}}function fb(e,r,s,o){o==null&&(o=0);var u;!e.options.lineWrapping&&r==s&&(s=r.sticky=="before"?we(r.line,r.ch+1,"before"):r,r=r.ch?we(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r);for(var m=0;m<5;m++){var x=!1,_=$r(e,r),T=!s||s==r?_:$r(e,s);u={left:Math.min(_.left,T.left),top:Math.min(_.top,T.top)-o,right:Math.max(_.left,T.left),bottom:Math.max(_.bottom,T.bottom)+o};var L=ls(e,u),V=e.doc.scrollTop,ee=e.doc.scrollLeft;if(L.scrollTop!=null&&(Oi(e,L.scrollTop),Math.abs(e.doc.scrollTop-V)>1&&(x=!0)),L.scrollLeft!=null&&(Fn(e,L.scrollLeft),Math.abs(e.doc.scrollLeft-ee)>1&&(x=!0)),!x)break}return u}function db(e,r){var s=ls(e,r);s.scrollTop!=null&&Oi(e,s.scrollTop),s.scrollLeft!=null&&Fn(e,s.scrollLeft)}function ls(e,r){var s=e.display,o=Yn(e.display);r.top<0&&(r.top=0);var u=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:s.scroller.scrollTop,m=Xa(e),x={};r.bottom-r.top>m&&(r.bottom=r.top+m);var _=e.doc.height+Ya(s),T=r.top_-o;if(r.topu+m){var V=Math.min(r.top,(L?_:r.bottom)-m);V!=u&&(x.scrollTop=V)}var ee=e.options.fixedGutter?0:s.gutters.offsetWidth,fe=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:s.scroller.scrollLeft-ee,le=An(e)-s.gutters.offsetWidth,ye=r.right-r.left>le;return ye&&(r.right=r.left+le),r.left<10?x.scrollLeft=0:r.leftle+fe-3&&(x.scrollLeft=r.right+(ye?0:10)-le),x}function us(e,r){r!=null&&(Oo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+r)}function Qn(e){Oo(e);var r=e.getCursor();e.curOp.scrollToPos={from:r,to:r,margin:e.options.cursorScrollMargin}}function Mi(e,r,s){(r!=null||s!=null)&&Oo(e),r!=null&&(e.curOp.scrollLeft=r),s!=null&&(e.curOp.scrollTop=s)}function hb(e,r){Oo(e),e.curOp.scrollToPos=r}function Oo(e){var r=e.curOp.scrollToPos;if(r){e.curOp.scrollToPos=null;var s=yu(e,r.from),o=yu(e,r.to);Tu(e,s,o,r.margin)}}function Tu(e,r,s,o){var u=ls(e,{left:Math.min(r.left,s.left),top:Math.min(r.top,s.top)-o,right:Math.max(r.right,s.right),bottom:Math.max(r.bottom,s.bottom)+o});Mi(e,u.scrollLeft,u.scrollTop)}function Oi(e,r){Math.abs(e.doc.scrollTop-r)<2||(n||fs(e,{top:r}),Au(e,r,!0),n&&fs(e),zi(e,100))}function Au(e,r,s){r=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,r)),!(e.display.scroller.scrollTop==r&&!s)&&(e.doc.scrollTop=r,e.display.scrollbars.setScrollTop(r),e.display.scroller.scrollTop!=r&&(e.display.scroller.scrollTop=r))}function Fn(e,r,s,o){r=Math.max(0,Math.min(r,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((s?r==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-r)<2)&&!o)&&(e.doc.scrollLeft=r,Mu(e),e.display.scroller.scrollLeft!=r&&(e.display.scroller.scrollLeft=r),e.display.scrollbars.setScrollLeft(r))}function Pi(e){var r=e.display,s=r.gutters.offsetWidth,o=Math.round(e.doc.height+Ya(e.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:e.options.fixedGutter?s:0,docHeight:o,scrollHeight:o+Yr(e)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:s}}var Mn=function(e,r,s){this.cm=s;var o=this.vert=z("div",[z("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=z("div",[z("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");o.tabIndex=u.tabIndex=-1,e(o),e(u),lt(o,"scroll",function(){o.clientHeight&&r(o.scrollTop,"vertical")}),lt(u,"scroll",function(){u.clientWidth&&r(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&h<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Mn.prototype.update=function(e){var r=e.scrollWidth>e.clientWidth+1,s=e.scrollHeight>e.clientHeight+1,o=e.nativeBarWidth;if(s){this.vert.style.display="block",this.vert.style.bottom=r?o+"px":"0";var u=e.viewHeight-(r?o:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+u)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=s?o+"px":"0",this.horiz.style.left=e.barLeft+"px";var m=e.viewWidth-e.barLeft-(s?o:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(o==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:s?o:0,bottom:r?o:0}},Mn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Mn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Mn.prototype.zeroWidthHack=function(){var e=S&&!b?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Fe,this.disableVert=new Fe},Mn.prototype.enableZeroWidthBar=function(e,r,s){e.style.pointerEvents="auto";function o(){var u=e.getBoundingClientRect(),m=s=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);m!=e?e.style.pointerEvents="none":r.set(1e3,o)}r.set(1e3,o)},Mn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ri=function(){};Ri.prototype.update=function(){return{bottom:0,right:0}},Ri.prototype.setScrollLeft=function(){},Ri.prototype.setScrollTop=function(){},Ri.prototype.clear=function(){};function Jn(e,r){r||(r=Pi(e));var s=e.display.barWidth,o=e.display.barHeight;Lu(e,r);for(var u=0;u<4&&s!=e.display.barWidth||o!=e.display.barHeight;u++)s!=e.display.barWidth&&e.options.lineWrapping&&Fo(e),Lu(e,Pi(e)),s=e.display.barWidth,o=e.display.barHeight}function Lu(e,r){var s=e.display,o=s.scrollbars.update(r);s.sizer.style.paddingRight=(s.barWidth=o.right)+"px",s.sizer.style.paddingBottom=(s.barHeight=o.bottom)+"px",s.heightForcer.style.borderBottom=o.bottom+"px solid transparent",o.right&&o.bottom?(s.scrollbarFiller.style.display="block",s.scrollbarFiller.style.height=o.bottom+"px",s.scrollbarFiller.style.width=o.right+"px"):s.scrollbarFiller.style.display="",o.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(s.gutterFiller.style.display="block",s.gutterFiller.style.height=o.bottom+"px",s.gutterFiller.style.width=r.gutterWidth+"px"):s.gutterFiller.style.display=""}var Du={native:Mn,null:Ri};function Iu(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&Y(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Du[e.options.scrollbarStyle](function(r){e.display.wrapper.insertBefore(r,e.display.scrollbarFiller),lt(r,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,s){s=="horizontal"?Fn(e,r):Oi(e,r)},e),e.display.scrollbars.addClass&&N(e.display.wrapper,e.display.scrollbars.addClass)}var pb=0;function On(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:++pb,markArrays:null},Wy(e.curOp)}function Pn(e){var r=e.curOp;r&&Ky(r,function(s){for(var o=0;o=s.viewTo)||s.maxLineChanged&&r.options.lineWrapping,e.update=e.mustUpdate&&new Po(r,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function vb(e){e.updatedDisplay=e.mustUpdate&&cs(e.cm,e.update)}function yb(e){var r=e.cm,s=r.display;e.updatedDisplay&&Fo(r),e.barMeasure=Pi(r),s.maxLineChanged&&!r.options.lineWrapping&&(e.adjustWidthTo=cu(r,s.maxLine,s.maxLine.text.length).left+3,r.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(s.scroller.clientWidth,s.sizer.offsetLeft+e.adjustWidthTo+Yr(r)+r.display.barWidth),e.maxScrollLeft=Math.max(0,s.sizer.offsetLeft+e.adjustWidthTo-An(r))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=s.input.prepareSelection())}function bb(e){var r=e.cm;e.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var s=+new Date+e.options.workTime,o=Ci(e,r.highlightFrontier),u=[];r.iter(o.line,Math.min(r.first+r.size,e.display.viewTo+500),function(m){if(o.line>=e.display.viewFrom){var x=m.styles,_=m.text.length>e.options.maxHighlightLength?Ve(r.mode,o.state):null,T=Nl(e,m,o,!0);_&&(o.state=_),m.styles=T.styles;var L=m.styleClasses,V=T.classes;V?m.styleClasses=V:L&&(m.styleClasses=null);for(var ee=!x||x.length!=m.styles.length||L!=V&&(!L||!V||L.bgClass!=V.bgClass||L.textClass!=V.textClass),fe=0;!ee&&fes)return zi(e,e.options.workDelay),!0}),r.highlightFrontier=o.line,r.modeFrontier=Math.max(r.modeFrontier,o.line),u.length&&Ar(e,function(){for(var m=0;m=s.viewFrom&&r.visible.to<=s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo)&&s.renderedView==s.view&&ku(e)==0)return!1;Ou(e)&&(yn(e),r.dims=rs(e));var u=o.first+o.size,m=Math.max(r.visible.from-e.options.viewportMargin,o.first),x=Math.min(u,r.visible.to+e.options.viewportMargin);s.viewFromx&&s.viewTo-x<20&&(x=Math.min(u,s.viewTo)),an&&(m=Wa(e.doc,m),x=Ql(e.doc,x));var _=m!=s.viewFrom||x!=s.viewTo||s.lastWrapHeight!=r.wrapperHeight||s.lastWrapWidth!=r.wrapperWidth;lb(e,m,x),s.viewOffset=sn(se(e.doc,s.viewFrom)),e.display.mover.style.top=s.viewOffset+"px";var T=ku(e);if(!_&&T==0&&!r.force&&s.renderedView==s.view&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo))return!1;var L=_b(e);return T>4&&(s.lineDiv.style.display="none"),Eb(e,s.updateLineNumbers,r.dims),T>4&&(s.lineDiv.style.display=""),s.renderedView=s.view,Sb(L),G(s.cursorDiv),G(s.selectionDiv),s.gutters.style.height=s.sizer.style.minHeight=0,_&&(s.lastWrapHeight=r.wrapperHeight,s.lastWrapWidth=r.wrapperWidth,zi(e,400)),s.updateLineNumbers=null,!0}function Fu(e,r){for(var s=r.viewport,o=!0;;o=!1){if(!o||!e.options.lineWrapping||r.oldDisplayWidth==An(e)){if(s&&s.top!=null&&(s={top:Math.min(e.doc.height+Ya(e.display)-Xa(e),s.top)}),r.visible=Mo(e.display,e.doc,s),r.visible.from>=e.display.viewFrom&&r.visible.to<=e.display.viewTo)break}else o&&(r.visible=Mo(e.display,e.doc,s));if(!cs(e,r))break;Fo(e);var u=Pi(e);Fi(e),Jn(e,u),hs(e,u),r.force=!1}r.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(r.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function fs(e,r){var s=new Po(e,r);if(cs(e,s)){Fo(e),Fu(e,s);var o=Pi(e);Fi(e),Jn(e,o),hs(e,o),s.finish()}}function Eb(e,r,s){var o=e.display,u=e.options.lineNumbers,m=o.lineDiv,x=m.firstChild;function _(ye){var Ee=ye.nextSibling;return f&&S&&e.display.currentWheelTarget==ye?ye.style.display="none":ye.parentNode.removeChild(ye),Ee}for(var T=o.view,L=o.viewFrom,V=0;V-1&&(le=!1),nu(e,ee,L,s)),le&&(G(ee.lineNumber),ee.lineNumber.appendChild(document.createTextNode(Dt(e.options,L)))),x=ee.node.nextSibling}L+=ee.size}for(;x;)x=_(x)}function ds(e){var r=e.gutters.offsetWidth;e.sizer.style.marginLeft=r+"px",tr(e,"gutterChanged",e)}function hs(e,r){e.display.sizer.style.minHeight=r.docHeight+"px",e.display.heightForcer.style.top=r.docHeight+"px",e.display.gutters.style.height=r.docHeight+e.display.barHeight+Yr(e)+"px"}function Mu(e){var r=e.display,s=r.view;if(!(!r.alignWidgets&&(!r.gutters.firstChild||!e.options.fixedGutter))){for(var o=ns(r)-r.scroller.scrollLeft+e.doc.scrollLeft,u=r.gutters.offsetWidth,m=o+"px",x=0;x_.clientWidth,L=_.scrollHeight>_.clientHeight;if(!!(o&&T||u&&L)){if(u&&S&&f){e:for(var V=r.target,ee=x.view;V!=_;V=V.parentNode)for(var fe=0;fe=0&&D(e,o.to())<=0)return s}return-1};var At=function(e,r){this.anchor=e,this.head=r};At.prototype.from=function(){return ft(this.anchor,this.head)},At.prototype.to=function(){return De(this.anchor,this.head)},At.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ur(e,r,s){var o=e&&e.options.selectionsMayTouch,u=r[s];r.sort(function(fe,le){return D(fe.from(),le.from())}),s=xe(r,u);for(var m=1;m0:T>=0){var L=ft(_.from(),x.from()),V=De(_.to(),x.to()),ee=_.empty()?x.from()==x.head:_.from()==_.head;m<=s&&--s,r.splice(--m,2,new At(ee?V:L,ee?L:V))}}return new Mr(r,s)}function bn(e,r){return new Mr([new At(e,r||e)],0)}function xn(e){return e.text?we(e.from.line+e.text.length-1,Re(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Nu(e,r){if(D(e,r.from)<0)return e;if(D(e,r.to)<=0)return xn(r);var s=e.line+r.text.length-(r.to.line-r.from.line)-1,o=e.ch;return e.line==r.to.line&&(o+=xn(r).ch-r.to.ch),we(s,o)}function ms(e,r){for(var s=[],o=0;o1&&e.remove(_.line+1,ye-1),e.insert(_.line+1,je)}tr(e,"change",e,r)}function wn(e,r,s){function o(u,m,x){if(u.linked)for(var _=0;_1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Re(e.done)}function Hu(e,r,s,o){var u=e.history;u.undone.length=0;var m=+new Date,x,_;if((u.lastOp==o||u.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&u.lastModTime>m-(e.cm?e.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(x=Db(u,u.lastOp==o)))_=Re(x.changes),D(r.from,r.to)==0&&D(r.from,_.to)==0?_.to=xn(r):x.changes.push(ys(e,r));else{var T=Re(u.done);for((!T||!T.ranges)&&No(e.sel,u.done),x={changes:[ys(e,r)],generation:u.generation},u.done.push(x);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(s),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=m,u.lastOp=u.lastSelOp=o,u.lastOrigin=u.lastSelOrigin=r.origin,_||rt(e,"historyAdded")}function Ib(e,r,s,o){var u=r.charAt(0);return u=="*"||u=="+"&&s.ranges.length==o.ranges.length&&s.somethingSelected()==o.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Fb(e,r,s,o){var u=e.history,m=o&&o.origin;s==u.lastSelOp||m&&u.lastSelOrigin==m&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==m||Ib(e,m,Re(u.done),r))?u.done[u.done.length-1]=r:No(r,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=m,u.lastSelOp=s,o&&o.clearRedo!==!1&&Uu(u.undone)}function No(e,r){var s=Re(r);s&&s.ranges&&s.equals(e)||r.push(e)}function Wu(e,r,s,o){var u=r["spans_"+e.id],m=0;e.iter(Math.max(e.first,s),Math.min(e.first+e.size,o),function(x){x.markedSpans&&((u||(u=r["spans_"+e.id]={}))[m]=x.markedSpans),++m})}function Mb(e){if(!e)return null;for(var r,s=0;s-1&&(Re(_)[ee]=L[ee],delete L[ee])}}return o}function bs(e,r,s,o){if(o){var u=e.anchor;if(s){var m=D(r,u)<0;m!=D(s,u)<0?(u=r,r=s):m!=D(r,s)<0&&(r=s)}return new At(u,r)}else return new At(s||r,r)}function Bo(e,r,s,o,u){u==null&&(u=e.cm&&(e.cm.display.shift||e.extend)),mr(e,new Mr([bs(e.sel.primary(),r,s,u)],0),o)}function Ku(e,r,s){for(var o=[],u=e.cm&&(e.cm.display.shift||e.extend),m=0;m=r.ch:_.to>r.ch))){if(u&&(rt(T,"beforeCursorEnter"),T.explicitlyCleared))if(m.markedSpans){--x;continue}else break;if(!T.atomic)continue;if(s){var ee=T.find(o<0?1:-1),fe=void 0;if((o<0?V:L)&&(ee=Ju(e,ee,-o,ee&&ee.line==r.line?m:null)),ee&&ee.line==r.line&&(fe=D(ee,s))&&(o<0?fe<0:fe>0))return ti(e,ee,r,o,u)}var le=T.find(o<0?-1:1);return(o<0?L:V)&&(le=Ju(e,le,o,le.line==r.line?m:null)),le?ti(e,le,r,o,u):null}}return r}function jo(e,r,s,o,u){var m=o||1,x=ti(e,r,s,m,u)||!u&&ti(e,r,s,m,!0)||ti(e,r,s,-m,u)||!u&&ti(e,r,s,-m,!0);return x||(e.cantEdit=!0,we(e.first,0))}function Ju(e,r,s,o){return s<0&&r.ch==0?r.line>e.first?Ze(e,we(r.line-1)):null:s>0&&r.ch==(o||se(e,r.line)).text.length?r.line=0;--u)rc(e,{from:o[u].from,to:o[u].to,text:u?[""]:r.text,origin:r.origin});else rc(e,r)}}function rc(e,r){if(!(r.text.length==1&&r.text[0]==""&&D(r.from,r.to)==0)){var s=ms(e,r);Hu(e,r,s,e.cm?e.cm.curOp.id:NaN),qi(e,r,s,Ua(e,r));var o=[];wn(e,function(u,m){!m&&xe(o,u.history)==-1&&(ac(u.history,r),o.push(u.history)),qi(u,r,null,Ua(u,r))})}}function $o(e,r,s){var o=e.cm&&e.cm.state.suppressEdits;if(!(o&&!s)){for(var u=e.history,m,x=e.sel,_=r=="undo"?u.done:u.undone,T=r=="undo"?u.undone:u.done,L=0;L<_.length&&(m=_[L],!(s?m.ranges&&!m.equals(e.sel):!m.ranges));L++);if(L!=_.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(m=_.pop(),m.ranges){if(No(m,T),s&&!m.equals(e.sel)){mr(e,m,{clearRedo:!1});return}x=m}else if(o){_.push(m);return}else break;var V=[];No(x,T),T.push({changes:V,generation:u.generation}),u.generation=m.generation||++u.maxGeneration;for(var ee=Et(e,"beforeChange")||e.cm&&Et(e.cm,"beforeChange"),fe=function(Ee){var Pe=m.changes[Ee];if(Pe.origin=r,ee&&!tc(e,Pe,!1))return _.length=0,{};V.push(ys(e,Pe));var je=Ee?ms(e,Pe):Re(_);qi(e,Pe,je,Gu(e,Pe)),!Ee&&e.cm&&e.cm.scrollIntoView({from:Pe.from,to:xn(Pe)});var Qe=[];wn(e,function($e,nt){!nt&&xe(Qe,$e.history)==-1&&(ac($e.history,Pe),Qe.push($e.history)),qi($e,Pe,null,Gu($e,Pe))})},le=m.changes.length-1;le>=0;--le){var ye=fe(le);if(ye)return ye.v}}}}function nc(e,r){if(r!=0&&(e.first+=r,e.sel=new Mr(Ie(e.sel.ranges,function(u){return new At(we(u.anchor.line+r,u.anchor.ch),we(u.head.line+r,u.head.ch))}),e.sel.primIndex),e.cm)){kr(e.cm,e.first,e.first-r,r);for(var s=e.cm.display,o=s.viewFrom;oe.lastLine())){if(r.from.linem&&(r={from:r.from,to:we(m,se(e,m).text.length),text:[r.text[0]],origin:r.origin}),r.removed=pe(e,r.from,r.to),s||(s=ms(e,r)),e.cm?Rb(e.cm,r,o):vs(e,r,o),qo(e,s,qe),e.cantEdit&&jo(e,we(e.firstLine(),0))&&(e.cantEdit=!1)}}function Rb(e,r,s){var o=e.doc,u=e.display,m=r.from,x=r.to,_=!1,T=m.line;e.options.lineWrapping||(T=Ye(Vr(se(o,m.line))),o.iter(T,x.line+1,function(le){if(le==u.maxLine)return _=!0,!0})),o.sel.contains(r.from,r.to)>-1&&dr(e),vs(o,r,s,wu(e)),e.options.lineWrapping||(o.iter(T,m.line+r.text.length,function(le){var ye=Eo(le);ye>u.maxLineLength&&(u.maxLine=le,u.maxLineLength=ye,u.maxLineChanged=!0,_=!1)}),_&&(e.curOp.updateMaxLine=!0)),Ey(o,m.line),zi(e,400);var L=r.text.length-(x.line-m.line)-1;r.full?kr(e):m.line==x.line&&r.text.length==1&&!qu(e.doc,r)?vn(e,m.line,"text"):kr(e,m.line,x.line+1,L);var V=Et(e,"changes"),ee=Et(e,"change");if(ee||V){var fe={from:m,to:x,text:r.text,removed:r.removed,origin:r.origin};ee&&tr(e,"change",e,fe),V&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(fe)}e.display.selForContextMenu=null}function ni(e,r,s,o,u){var m;o||(o=s),D(o,s)<0&&(m=[o,s],s=m[0],o=m[1]),typeof r=="string"&&(r=e.splitLines(r)),ri(e,{from:s,to:o,text:r,origin:u})}function ic(e,r,s,o){s1||!(this.children[0]instanceof $i))){var _=[];this.collapse(_),this.children=[new $i(_)],this.children[0].parent=this}},collapse:function(e){for(var r=0;r50){for(var x=u.lines.length%25+25,_=x;_10);e.parent.maybeSpill()}},iterN:function(e,r,s){for(var o=0;oe.display.maxLineLength&&(e.display.maxLine=L,e.display.maxLineLength=V,e.display.maxLineChanged=!0)}o!=null&&e&&this.collapsed&&kr(e,o,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Zu(e.doc)),e&&tr(e,"markerCleared",e,this,o,u),r&&Pn(e),this.parent&&this.parent.clear()}},kn.prototype.find=function(e,r){e==null&&this.type=="bookmark"&&(e=1);for(var s,o,u=0;u0||x==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=C("span",[m.replacedWith],"CodeMirror-widget"),o.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),o.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(Zl(e,r.line,r,s,m)||r.line!=s.line&&Zl(e,s.line,r,s,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ty()}m.addToHistory&&Hu(e,{from:r,to:s,origin:"markText"},e.sel,NaN);var _=r.line,T=e.cm,L;if(e.iter(_,s.line+1,function(ee){T&&m.collapsed&&!T.options.lineWrapping&&Vr(ee)==T.display.maxLine&&(L=!0),m.collapsed&&_!=r.line&&Ae(ee,0),Ly(ee,new wo(m,_==r.line?r.ch:null,_==s.line?s.ch:null),e.cm&&e.cm.curOp),++_}),m.collapsed&&e.iter(r.line,s.line+1,function(ee){gn(e,ee)&&Ae(ee,0)}),m.clearOnEnter&<(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(Cy(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),m.collapsed&&(m.id=++lc,m.atomic=!0),T){if(L&&(T.curOp.updateMaxLine=!0),m.collapsed)kr(T,r.line,s.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var V=r.line;V<=s.line;V++)vn(T,V,"text");m.atomic&&Zu(T.doc),tr(T,"markerAdded",T,m)}return m}var Wi=function(e,r){this.markers=e,this.primary=r;for(var s=0;s=0;T--)ri(this,o[T]);_?Yu(this,_):this.cm&&Qn(this.cm)}),undo:nr(function(){$o(this,"undo")}),redo:nr(function(){$o(this,"redo")}),undoSelection:nr(function(){$o(this,"undo",!0)}),redoSelection:nr(function(){$o(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,r=0,s=0,o=0;o=e.ch)&&r.push(u.marker.parent||u.marker)}return r},findMarks:function(e,r,s){e=Ze(this,e),r=Ze(this,r);var o=[],u=e.line;return this.iter(e.line,r.line+1,function(m){var x=m.markedSpans;if(x)for(var _=0;_=T.to||T.from==null&&u!=e.line||T.from!=null&&u==r.line&&T.from>=r.ch)&&(!s||s(T.marker))&&o.push(T.marker.parent||T.marker)}++u}),o},getAllMarks:function(){var e=[];return this.iter(function(r){var s=r.markedSpans;if(s)for(var o=0;oe)return r=e,!0;e-=m,++s}),Ze(this,we(s,r))},indexFromPos:function(e){e=Ze(this,e);var r=e.ch;if(e.liner&&(r=e.from),e.to!=null&&e.to-1){r.state.draggingText(e),setTimeout(function(){return r.display.input.focus()},20);return}try{var V=e.dataTransfer.getData("Text");if(V){var ee;if(r.state.draggingText&&!r.state.draggingText.copy&&(ee=r.listSelections()),qo(r.doc,bn(s,s)),ee)for(var fe=0;fe=0;_--)ni(e.doc,"",o[_].from,o[_].to,"+delete");Qn(e)})}function ws(e,r,s){var o=Ne(e.text,r+s,s);return o<0||o>e.text.length?null:o}function ks(e,r,s){var o=ws(e,r.ch,s);return o==null?null:new we(r.line,o,s<0?"after":"before")}function _s(e,r,s,o,u){if(e){r.doc.direction=="rtl"&&(u=-u);var m=Lt(s,r.doc.direction);if(m){var x=u<0?Re(m):m[0],_=u<0==(x.level==1),T=_?"after":"before",L;if(x.level>0||r.doc.direction=="rtl"){var V=Vn(r,s);L=u<0?s.text.length-1:0;var ee=Xr(r,V,L).top;L=ot(function(fe){return Xr(r,V,fe).top==ee},u<0==(x.level==1)?x.from:x.to-1,L),T=="before"&&(L=ws(s,L,1))}else L=u<0?x.to:x.from;return new we(o,L,T)}}return new we(o,u<0?s.text.length:0,u<0?"before":"after")}function Xb(e,r,s,o){var u=Lt(r,e.doc.direction);if(!u)return ks(r,s,o);s.ch>=r.text.length?(s.ch=r.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var m=We(u,s.ch,s.sticky),x=u[m];if(e.doc.direction=="ltr"&&x.level%2==0&&(o>0?x.to>s.ch:x.from=x.from&&fe>=V.begin)){var le=ee?"before":"after";return new we(s.line,fe,le)}}var ye=function(je,Qe,$e){for(var nt=function(Pt,ir){return ir?new we(s.line,_(Pt,1),"before"):new we(s.line,Pt,"after")};je>=0&&je0==(ct.level!=1),vt=ut?$e.begin:_($e.end,-1);if(ct.from<=vt&&vt0?V.end:_(V.begin,-1);return Pe!=null&&!(o>0&&Pe==r.text.length)&&(Ee=ye(o>0?0:u.length-1,o,L(Pe)),Ee)?Ee:null}var Vi={selectAll:ec,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),qe)},killLine:function(e){return ai(e,function(r){if(r.empty()){var s=se(e.doc,r.head.line).text.length;return r.head.ch==s&&r.head.line0)u=new we(u.line,u.ch+1),e.replaceRange(m.charAt(u.ch-1)+m.charAt(u.ch-2),we(u.line,u.ch-2),u,"+transpose");else if(u.line>e.doc.first){var x=se(e.doc,u.line-1).text;x&&(u=new we(u.line,1),e.replaceRange(m.charAt(0)+e.doc.lineSeparator()+x.charAt(x.length-1),we(u.line-1,x.length-1),u,"+transpose"))}}s.push(new At(u,u))}e.setSelections(s)})},newlineAndIndent:function(e){return Ar(e,function(){for(var r=e.listSelections(),s=r.length-1;s>=0;s--)e.replaceRange(e.doc.lineSeparator(),r[s].anchor,r[s].head,"+input");r=e.listSelections();for(var o=0;oe&&D(r,this.pos)==0&&s==this.button};var Xi,Zi;function nx(e,r){var s=+new Date;return Zi&&Zi.compare(s,e,r)?(Xi=Zi=null,"triple"):Xi&&Xi.compare(s,e,r)?(Zi=new Es(s,e,r),Xi=null,"double"):(Xi=new Es(s,e,r),Zi=null,"single")}function Sc(e){var r=this,s=r.display;if(!(wt(r,e)||s.activeTouch&&s.input.supportsTouch())){if(s.input.ensurePolled(),s.shift=e.shiftKey,ln(s,e)){f||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(!Cs(r,e)){var o=Dn(r,e),u=pr(e),m=o?nx(o,u):"single";window.focus(),u==1&&r.state.selectingText&&r.state.selectingText(e),!(o&&ix(r,u,o,m,e))&&(u==1?o?ax(r,o,m,e):hr(e)==s.scroller&&kt(e):u==2?(o&&Bo(r.doc,o),setTimeout(function(){return s.input.focus()},20)):u==3&&(J?r.display.input.onContextMenu(e):as(r)))}}}function ix(e,r,s,o,u){var m="Click";return o=="double"?m="Double"+m:o=="triple"&&(m="Triple"+m),m=(r==1?"Left":r==2?"Middle":"Right")+m,Yi(e,mc(m,u),u,function(x){if(typeof x=="string"&&(x=Vi[x]),!x)return!1;var _=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),_=x(e,s)!=ze}finally{e.state.suppressEdits=!1}return _})}function ox(e,r,s){var o=e.getOption("configureMouse"),u=o?o(e,r,s):{};if(u.unit==null){var m=P?s.shiftKey&&s.metaKey:s.altKey;u.unit=m?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(u.extend==null||e.doc.extend)&&(u.extend=e.doc.extend||s.shiftKey),u.addNew==null&&(u.addNew=S?s.metaKey:s.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(S?s.altKey:s.ctrlKey)),u}function ax(e,r,s,o){a?setTimeout(M(Eu,e),0):e.curOp.focus=R();var u=ox(e,s,o),m=e.doc.sel,x;e.options.dragDrop&&jr&&!e.isReadOnly()&&s=="single"&&(x=m.contains(r))>-1&&(D((x=m.ranges[x]).from(),r)<0||r.xRel>0)&&(D(x.to(),r)>0||r.xRel<0)?sx(e,o,r,u):lx(e,o,r,u)}function sx(e,r,s,o){var u=e.display,m=!1,x=rr(e,function(L){f&&(u.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:as(e)),pt(u.wrapper.ownerDocument,"mouseup",x),pt(u.wrapper.ownerDocument,"mousemove",_),pt(u.scroller,"dragstart",T),pt(u.scroller,"drop",x),m||(kt(L),o.addNew||Bo(e.doc,s,null,null,o.extend),f&&!v||a&&h==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),_=function(L){m=m||Math.abs(r.clientX-L.clientX)+Math.abs(r.clientY-L.clientY)>=10},T=function(){return m=!0};f&&(u.scroller.draggable=!0),e.state.draggingText=x,x.copy=!o.moveOnDrag,lt(u.wrapper.ownerDocument,"mouseup",x),lt(u.wrapper.ownerDocument,"mousemove",_),lt(u.scroller,"dragstart",T),lt(u.scroller,"drop",x),e.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function Ec(e,r,s){if(s=="char")return new At(r,r);if(s=="word")return e.findWordAt(r);if(s=="line")return new At(we(r.line,0),Ze(e.doc,we(r.line+1,0)));var o=s(e,r);return new At(o.from,o.to)}function lx(e,r,s,o){a&&as(e);var u=e.display,m=e.doc;kt(r);var x,_,T=m.sel,L=T.ranges;if(o.addNew&&!o.extend?(_=m.sel.contains(s),_>-1?x=L[_]:x=new At(s,s)):(x=m.sel.primary(),_=m.sel.primIndex),o.unit=="rectangle")o.addNew||(x=new At(s,s)),s=Dn(e,r,!0,!0),_=-1;else{var V=Ec(e,s,o.unit);o.extend?x=bs(x,V.anchor,V.head,o.extend):x=V}o.addNew?_==-1?(_=L.length,mr(m,Ur(e,L.concat([x]),_),{scroll:!1,origin:"*mouse"})):L.length>1&&L[_].empty()&&o.unit=="char"&&!o.extend?(mr(m,Ur(e,L.slice(0,_).concat(L.slice(_+1)),0),{scroll:!1,origin:"*mouse"}),T=m.sel):xs(m,_,x,ge):(_=0,mr(m,new Mr([x],0),ge),T=m.sel);var ee=s;function fe($e){if(D(ee,$e)!=0)if(ee=$e,o.unit=="rectangle"){for(var nt=[],ct=e.options.tabSize,ut=be(se(m,s.line).text,s.ch,ct),vt=be(se(m,$e.line).text,$e.ch,ct),Pt=Math.min(ut,vt),ir=Math.max(ut,vt),Bt=Math.min(s.line,$e.line),Lr=Math.min(e.lastLine(),Math.max(s.line,$e.line));Bt<=Lr;Bt++){var Sr=se(m,Bt).text,Xt=Ue(Sr,Pt,ct);Pt==ir?nt.push(new At(we(Bt,Xt),we(Bt,Xt))):Sr.length>Xt&&nt.push(new At(we(Bt,Xt),we(Bt,Ue(Sr,ir,ct))))}nt.length||nt.push(new At(s,s)),mr(m,Ur(e,T.ranges.slice(0,_).concat(nt),_),{origin:"*mouse",scroll:!1}),e.scrollIntoView($e)}else{var Er=x,cr=Ec(e,$e,o.unit),Jt=Er.anchor,Zt;D(cr.anchor,Jt)>0?(Zt=cr.head,Jt=ft(Er.from(),cr.anchor)):(Zt=cr.anchor,Jt=De(Er.to(),cr.head));var $t=T.ranges.slice(0);$t[_]=ux(e,new At(Ze(m,Jt),Zt)),mr(m,Ur(e,$t,_),ge)}}var le=u.wrapper.getBoundingClientRect(),ye=0;function Ee($e){var nt=++ye,ct=Dn(e,$e,!0,o.unit=="rectangle");if(!!ct)if(D(ct,ee)!=0){e.curOp.focus=R(),fe(ct);var ut=Mo(u,m);(ct.line>=ut.to||ct.linele.bottom?20:0;vt&&setTimeout(rr(e,function(){ye==nt&&(u.scroller.scrollTop+=vt,Ee($e))}),50)}}function Pe($e){e.state.selectingText=!1,ye=1/0,$e&&(kt($e),u.input.focus()),pt(u.wrapper.ownerDocument,"mousemove",je),pt(u.wrapper.ownerDocument,"mouseup",Qe),m.history.lastSelOrigin=null}var je=rr(e,function($e){$e.buttons===0||!pr($e)?Pe($e):Ee($e)}),Qe=rr(e,Pe);e.state.selectingText=Qe,lt(u.wrapper.ownerDocument,"mousemove",je),lt(u.wrapper.ownerDocument,"mouseup",Qe)}function ux(e,r){var s=r.anchor,o=r.head,u=se(e.doc,s.line);if(D(s,o)==0&&s.sticky==o.sticky)return r;var m=Lt(u);if(!m)return r;var x=We(m,s.ch,s.sticky),_=m[x];if(_.from!=s.ch&&_.to!=s.ch)return r;var T=x+(_.from==s.ch==(_.level!=1)?0:1);if(T==0||T==m.length)return r;var L;if(o.line!=s.line)L=(o.line-s.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var V=We(m,o.ch,o.sticky),ee=V-x||(o.ch-s.ch)*(_.level==1?-1:1);V==T-1||V==T?L=ee<0:L=ee>0}var fe=m[T+(L?-1:0)],le=L==(fe.level==1),ye=le?fe.from:fe.to,Ee=le?"after":"before";return s.ch==ye&&s.sticky==Ee?r:new At(new we(s.line,ye,Ee),o)}function Cc(e,r,s,o){var u,m;if(r.touches)u=r.touches[0].clientX,m=r.touches[0].clientY;else try{u=r.clientX,m=r.clientY}catch{return!1}if(u>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;o&&kt(r);var x=e.display,_=x.lineDiv.getBoundingClientRect();if(m>_.bottom||!Et(e,s))return Ht(r);m-=_.top-x.viewOffset;for(var T=0;T=u){var V=tt(e.doc,m),ee=e.display.gutterSpecs[T];return rt(e,s,e,V,ee.className,r),Ht(r)}}}function Cs(e,r){return Cc(e,r,"gutterClick",!0)}function Tc(e,r){ln(e.display,r)||cx(e,r)||wt(e,r,"contextmenu")||J||e.display.input.onContextMenu(r)}function cx(e,r){return Et(e,"gutterContextMenu")?Cc(e,r,"gutterContextMenu",!1):!1}function Ac(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ii(e)}var si={toString:function(){return"CodeMirror.Init"}},Lc={},Go={};function fx(e){var r=e.optionHandlers;function s(o,u,m,x){e.defaults[o]=u,m&&(r[o]=x?function(_,T,L){L!=si&&m(_,T,L)}:m)}e.defineOption=s,e.Init=si,s("value","",function(o,u){return o.setValue(u)},!0),s("mode",null,function(o,u){o.doc.modeOption=u,gs(o)},!0),s("indentUnit",2,gs,!0),s("indentWithTabs",!1),s("smartIndent",!0),s("tabSize",4,function(o){Bi(o),Ii(o),kr(o)},!0),s("lineSeparator",null,function(o,u){if(o.doc.lineSep=u,!!u){var m=[],x=o.doc.first;o.doc.iter(function(T){for(var L=0;;){var V=T.text.indexOf(u,L);if(V==-1)break;L=V+u.length,m.push(we(x,V))}x++});for(var _=m.length-1;_>=0;_--)ni(o.doc,u,m[_],we(m[_].line,m[_].ch+u.length))}}),s("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(o,u,m){o.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),m!=si&&o.refresh()}),s("specialCharPlaceholder",qy,function(o){return o.refresh()},!0),s("electricChars",!0),s("inputStyle",I?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),s("spellcheck",!1,function(o,u){return o.getInputField().spellcheck=u},!0),s("autocorrect",!1,function(o,u){return o.getInputField().autocorrect=u},!0),s("autocapitalize",!1,function(o,u){return o.getInputField().autocapitalize=u},!0),s("rtlMoveVisually",!F),s("wholeLineUpdateBefore",!0),s("theme","default",function(o){Ac(o),Ni(o)},!0),s("keyMap","default",function(o,u,m){var x=Ho(u),_=m!=si&&Ho(m);_&&_.detach&&_.detach(o,x),x.attach&&x.attach(o,_||null)}),s("extraKeys",null),s("configureMouse",null),s("lineWrapping",!1,hx,!0),s("gutters",[],function(o,u){o.display.gutterSpecs=ps(u,o.options.lineNumbers),Ni(o)},!0),s("fixedGutter",!0,function(o,u){o.display.gutters.style.left=u?ns(o.display)+"px":"0",o.refresh()},!0),s("coverGutterNextToScrollbar",!1,function(o){return Jn(o)},!0),s("scrollbarStyle","native",function(o){Iu(o),Jn(o),o.display.scrollbars.setScrollTop(o.doc.scrollTop),o.display.scrollbars.setScrollLeft(o.doc.scrollLeft)},!0),s("lineNumbers",!1,function(o,u){o.display.gutterSpecs=ps(o.options.gutters,u),Ni(o)},!0),s("firstLineNumber",1,Ni,!0),s("lineNumberFormatter",function(o){return o},Ni,!0),s("showCursorWhenSelecting",!1,Fi,!0),s("resetSelectionOnContextMenu",!0),s("lineWiseCopyCut",!0),s("pasteLinesPerSelection",!0),s("selectionsMayTouch",!1),s("readOnly",!1,function(o,u){u=="nocursor"&&(Zn(o),o.display.input.blur()),o.display.input.readOnlyChanged(u)}),s("screenReaderLabel",null,function(o,u){u=u===""?null:u,o.display.input.screenReaderLabelChanged(u)}),s("disableInput",!1,function(o,u){u||o.display.input.reset()},!0),s("dragDrop",!0,dx),s("allowDropFileTypes",null),s("cursorBlinkRate",530),s("cursorScrollMargin",0),s("cursorHeight",1,Fi,!0),s("singleCursorHeightPerLine",!0,Fi,!0),s("workTime",100),s("workDelay",100),s("flattenSpans",!0,Bi,!0),s("addModeClass",!1,Bi,!0),s("pollInterval",100),s("undoDepth",200,function(o,u){return o.doc.history.undoDepth=u}),s("historyEventDelay",1250),s("viewportMargin",10,function(o){return o.refresh()},!0),s("maxHighlightLength",1e4,Bi,!0),s("moveInputWithCursor",!0,function(o,u){u||o.display.input.resetPosition()}),s("tabindex",null,function(o,u){return o.display.input.getField().tabIndex=u||""}),s("autofocus",null),s("direction","ltr",function(o,u){return o.doc.setDirection(u)},!0),s("phrases",null)}function dx(e,r,s){var o=s&&s!=si;if(!r!=!o){var u=e.display.dragFunctions,m=r?lt:pt;m(e.display.scroller,"dragstart",u.start),m(e.display.scroller,"dragenter",u.enter),m(e.display.scroller,"dragover",u.over),m(e.display.scroller,"dragleave",u.leave),m(e.display.scroller,"drop",u.drop)}}function hx(e){e.options.lineWrapping?(N(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Y(e.display.wrapper,"CodeMirror-wrap"),Ka(e)),is(e),kr(e),Ii(e),setTimeout(function(){return Jn(e)},100)}function Nt(e,r){var s=this;if(!(this instanceof Nt))return new Nt(e,r);this.options=r=r?A(r):{},A(Lc,r,!1);var o=r.value;typeof o=="string"?o=new _r(o,r.mode,null,r.lineSeparator,r.direction):r.mode&&(o.modeOption=r.mode),this.doc=o;var u=new Nt.inputStyles[r.inputStyle](this),m=this.display=new Cb(e,o,u,r);m.wrapper.CodeMirror=this,Ac(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Iu(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 Fe,keySeq:null,specialChars:null},r.autofocus&&!I&&m.input.focus(),a&&h<11&&setTimeout(function(){return s.display.input.reset(!0)},20),px(this),Wb(),On(this),this.curOp.forceUpdate=!0,ju(this,o),r.autofocus&&!I||this.hasFocus()?setTimeout(function(){s.hasFocus()&&!s.state.focused&&ss(s)},20):Zn(this);for(var x in Go)Go.hasOwnProperty(x)&&Go[x](this,r[x],si);Ou(this),r.finishInit&&r.finishInit(this);for(var _=0;_20*20}lt(r.scroller,"touchstart",function(T){if(!wt(e,T)&&!m(T)&&!Cs(e,T)){r.input.ensurePolled(),clearTimeout(s);var L=+new Date;r.activeTouch={start:L,moved:!1,prev:L-o.end<=300?o:null},T.touches.length==1&&(r.activeTouch.left=T.touches[0].pageX,r.activeTouch.top=T.touches[0].pageY)}}),lt(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),lt(r.scroller,"touchend",function(T){var L=r.activeTouch;if(L&&!ln(r,T)&&L.left!=null&&!L.moved&&new Date-L.start<300){var V=e.coordsChar(r.activeTouch,"page"),ee;!L.prev||x(L,L.prev)?ee=new At(V,V):!L.prev.prev||x(L,L.prev.prev)?ee=e.findWordAt(V):ee=new At(we(V.line,0),Ze(e.doc,we(V.line+1,0))),e.setSelection(ee.anchor,ee.head),e.focus(),kt(T)}u()}),lt(r.scroller,"touchcancel",u),lt(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Oi(e,r.scroller.scrollTop),Fn(e,r.scroller.scrollLeft,!0),rt(e,"scroll",e))}),lt(r.scroller,"mousewheel",function(T){return zu(e,T)}),lt(r.scroller,"DOMMouseScroll",function(T){return zu(e,T)}),lt(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(T){wt(e,T)||Ir(T)},over:function(T){wt(e,T)||(Hb(e,T),Ir(T))},start:function(T){return Ub(e,T)},drop:rr(e,$b),leave:function(T){wt(e,T)||fc(e)}};var _=r.input.getField();lt(_,"keyup",function(T){return kc.call(e,T)}),lt(_,"keydown",rr(e,wc)),lt(_,"keypress",rr(e,_c)),lt(_,"focus",function(T){return ss(e,T)}),lt(_,"blur",function(T){return Zn(e,T)})}var Ts=[];Nt.defineInitHook=function(e){return Ts.push(e)};function Qi(e,r,s,o){var u=e.doc,m;s==null&&(s="add"),s=="smart"&&(u.mode.indent?m=Ci(e,r).state:s="prev");var x=e.options.tabSize,_=se(u,r),T=be(_.text,null,x);_.stateAfter&&(_.stateAfter=null);var L=_.text.match(/^\s*/)[0],V;if(!o&&!/\S/.test(_.text))V=0,s="not";else if(s=="smart"&&(V=u.mode.indent(m,_.text.slice(L.length),_.text),V==ze||V>150)){if(!o)return;s="prev"}s=="prev"?r>u.first?V=be(se(u,r-1).text,null,x):V=0:s=="add"?V=T+e.options.indentUnit:s=="subtract"?V=T-e.options.indentUnit:typeof s=="number"&&(V=T+s),V=Math.max(0,V);var ee="",fe=0;if(e.options.indentWithTabs)for(var le=Math.floor(V/x);le;--le)fe+=x,ee+=" ";if(fex,T=ie(r),L=null;if(_&&o.ranges.length>1)if(Hr&&Hr.text.join(` +`)==r){if(o.ranges.length%Hr.text.length==0){L=[];for(var V=0;V=0;fe--){var le=o.ranges[fe],ye=le.from(),Ee=le.to();le.empty()&&(s&&s>0?ye=we(ye.line,ye.ch-s):e.state.overwrite&&!_?Ee=we(Ee.line,Math.min(se(m,Ee.line).text.length,Ee.ch+Re(T).length)):_&&Hr&&Hr.lineWise&&Hr.text.join(` +`)==T.join(` +`)&&(ye=Ee=we(ye.line,0)));var Pe={from:ye,to:Ee,text:L?L[fe%L.length]:T,origin:u||(_?"paste":e.state.cutIncoming>x?"cut":"+input")};ri(e.doc,Pe),tr(e,"inputRead",e,Pe)}r&&!_&&Ic(e,r),Qn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=ee),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Dc(e,r){var s=e.clipboardData&&e.clipboardData.getData("Text");if(s)return e.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&Ar(r,function(){return As(r,s,0,null,"paste")}),!0}function Ic(e,r){if(!(!e.options.electricChars||!e.options.smartIndent))for(var s=e.doc.sel,o=s.ranges.length-1;o>=0;o--){var u=s.ranges[o];if(!(u.head.ch>100||o&&s.ranges[o-1].head.line==u.head.line)){var m=e.getModeAt(u.head),x=!1;if(m.electricChars){for(var _=0;_-1){x=Qi(e,u.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(se(e.doc,u.head.line).text.slice(0,u.head.ch))&&(x=Qi(e,u.head.line,"smart"));x&&tr(e,"electricInput",e,u.head.line)}}}function Fc(e){for(var r=[],s=[],o=0;om&&(Qi(this,_.head.line,o,!0),m=_.head.line,x==this.doc.sel.primIndex&&Qn(this));else{var T=_.from(),L=_.to(),V=Math.max(m,T.line);m=Math.min(this.lastLine(),L.line-(L.ch?0:1))+1;for(var ee=V;ee0&&xs(this.doc,x,new At(T,fe[x].to()),qe)}}}),getTokenAt:function(o,u){return $l(this,o,u)},getLineTokens:function(o,u){return $l(this,we(o),u,!0)},getTokenTypeAt:function(o){o=Ze(this.doc,o);var u=Bl(this,se(this.doc,o.line)),m=0,x=(u.length-1)/2,_=o.ch,T;if(_==0)T=u[2];else for(;;){var L=m+x>>1;if((L?u[L*2-1]:0)>=_)x=L;else if(u[L*2+1]<_)m=L+1;else{T=u[L*2+2];break}}var V=T?T.indexOf("overlay "):-1;return V<0?T:V==0?null:T.slice(0,V-1)},getModeAt:function(o){var u=this.doc.mode;return u.innerMode?e.innerMode(u,this.getTokenAt(o).state).mode:u},getHelper:function(o,u){return this.getHelpers(o,u)[0]},getHelpers:function(o,u){var m=[];if(!s.hasOwnProperty(u))return m;var x=s[u],_=this.getModeAt(o);if(typeof _[u]=="string")x[_[u]]&&m.push(x[_[u]]);else if(_[u])for(var T=0;T<_[u].length;T++){var L=x[_[u][T]];L&&m.push(L)}else _.helperType&&x[_.helperType]?m.push(x[_.helperType]):x[_.name]&&m.push(x[_.name]);for(var V=0;VT&&(o=T,x=!0),_=se(this.doc,o)}else _=o;return Ao(this,_,{top:0,left:0},u||"page",m||x).top+(x?this.doc.height-sn(_):0)},defaultTextHeight:function(){return Yn(this.display)},defaultCharWidth:function(){return Xn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(o,u,m,x,_){var T=this.display;o=$r(this,Ze(this.doc,o));var L=o.bottom,V=o.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),T.sizer.appendChild(u),x=="over")L=o.top;else if(x=="above"||x=="near"){var ee=Math.max(T.wrapper.clientHeight,this.doc.height),fe=Math.max(T.sizer.clientWidth,T.lineSpace.clientWidth);(x=="above"||o.bottom+u.offsetHeight>ee)&&o.top>u.offsetHeight?L=o.top-u.offsetHeight:o.bottom+u.offsetHeight<=ee&&(L=o.bottom),V+u.offsetWidth>fe&&(V=fe-u.offsetWidth)}u.style.top=L+"px",u.style.left=u.style.right="",_=="right"?(V=T.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(_=="left"?V=0:_=="middle"&&(V=(T.sizer.clientWidth-u.offsetWidth)/2),u.style.left=V+"px"),m&&db(this,{left:V,top:L,right:V+u.offsetWidth,bottom:L+u.offsetHeight})},triggerOnKeyDown:br(wc),triggerOnKeyPress:br(_c),triggerOnKeyUp:kc,triggerOnMouseDown:br(Sc),execCommand:function(o){if(Vi.hasOwnProperty(o))return Vi[o].call(null,this)},triggerElectric:br(function(o){Ic(this,o)}),findPosH:function(o,u,m,x){var _=1;u<0&&(_=-1,u=-u);for(var T=Ze(this.doc,o),L=0;L0&&V(m.charAt(x-1));)--x;for(;_.5||this.options.lineWrapping)&&is(this),rt(this,"refresh",this)}),swapDoc:br(function(o){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),ju(this,o),Ii(this),this.display.input.reset(),Mi(this,o.scrollLeft,o.scrollTop),this.curOp.forceScroll=!0,tr(this,"swapDoc",this,u),u}),phrase:function(o){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,o)?u[o]:o},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}},Vt(e),e.registerHelper=function(o,u,m){s.hasOwnProperty(o)||(s[o]=e[o]={_global:[]}),s[o][u]=m},e.registerGlobalHelper=function(o,u,m,x){e.registerHelper(o,u,x),s[o]._global.push({pred:m,val:x})}}function Ls(e,r,s,o,u){var m=r,x=s,_=se(e,r.line),T=u&&e.direction=="rtl"?-s:s;function L(){var Qe=r.line+T;return Qe=e.first+e.size?!1:(r=new we(Qe,r.ch,r.sticky),_=se(e,Qe))}function V(Qe){var $e;if(o=="codepoint"){var nt=_.text.charCodeAt(r.ch+(s>0?0:-1));if(isNaN(nt))$e=null;else{var ct=s>0?nt>=55296&&nt<56320:nt>=56320&&nt<57343;$e=new we(r.line,Math.max(0,Math.min(_.text.length,r.ch+s*(ct?2:1))),-s)}}else u?$e=Xb(e.cm,_,r,s):$e=ks(_,r,s);if($e==null)if(!Qe&&L())r=_s(u,e.cm,_,r.line,T);else return!1;else r=$e;return!0}if(o=="char"||o=="codepoint")V();else if(o=="column")V(!0);else if(o=="word"||o=="group")for(var ee=null,fe=o=="group",le=e.cm&&e.cm.getHelper(r,"wordChars"),ye=!0;!(s<0&&!V(!ye));ye=!1){var Ee=_.text.charAt(r.ch)||` `,Pe=X(Ee,le)?"w":fe&&Ee==` -`?"n":!fe||/\s/.test(Ee)?null:"p";if(fe&&!ye&&!Pe&&(Pe="s"),J&&J!=Pe){s<0&&(s=1,Y(),r.sticky="after");break}if(Pe&&(J=Pe),s>0&&!Y(!ye))break}var $e=$o(e,r,g,x,!0);return $(g,$e)&&($e.hitSide=!0),$e}function Pc(e,r,s,a){var u=e.doc,g=r.left,x;if(a=="page"){var _=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),C=Math.max(_-.5*Yn(e.display),3);x=(s>0?r.bottom:r.top)+s*C}else a=="line"&&(x=s>0?r.bottom+3:r.top-3);for(var L;L=es(e,g,x),!!L.outside;){if(s<0?x<=0:x>=u.height){L.hitSide=!0;break}x+=s*5}return L}var Ot=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Fe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ot.prototype.init=function(e){var r=this,s=this,a=s.cm,u=s.div=e.lineDiv;u.contentEditable=!0,Mc(u,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize);function g(_){for(var C=_.target;C;C=C.parentNode){if(C==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(C.className))break}return!1}lt(u,"paste",function(_){!g(_)||wt(a,_)||Dc(_,a)||h<=11&&setTimeout(rr(a,function(){return r.updateFromDOM()}),20)}),lt(u,"compositionstart",function(_){r.composing={data:_.data,done:!1}}),lt(u,"compositionupdate",function(_){r.composing||(r.composing={data:_.data,done:!1})}),lt(u,"compositionend",function(_){r.composing&&(_.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),lt(u,"touchstart",function(){return s.forceCompositionEnd()}),lt(u,"input",function(){r.composing||r.readFromDOMSoon()});function x(_){if(!(!g(_)||wt(a,_))){if(a.somethingSelected())Ko({lineWise:!1,text:a.getSelections()}),_.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var C=Fc(a);Ko({lineWise:!0,text:C.text}),_.type=="cut"&&a.operation(function(){a.setSelections(C.ranges,0,qe),a.replaceSelection("",null,"cut")})}else return;if(_.clipboardData){_.clipboardData.clearData();var L=Wr.text.join(` -`);if(_.clipboardData.setData("Text",L),_.clipboardData.getData("Text")==L){_.preventDefault();return}}var Y=Oc(),J=Y.firstChild;a.display.lineSpace.insertBefore(Y,a.display.lineSpace.firstChild),J.value=Wr.text.join(` -`);var fe=P();ae(J),setTimeout(function(){a.display.lineSpace.removeChild(Y),fe.focus(),fe==u&&s.showPrimarySelection()},50)}}lt(u,"copy",x),lt(u,"cut",x)},Ot.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ot.prototype.prepareSelection=function(){var e=Su(this.cm,!1);return e.focus=P()==this.div,e},Ot.prototype.showSelection=function(e,r){!e||!this.cm.display.view.length||((e.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ot.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ot.prototype.showPrimarySelection=function(){var e=this.getSelection(),r=this.cm,s=r.doc.sel.primary(),a=s.from(),u=s.to();if(r.display.viewTo==r.display.viewFrom||a.line>=r.display.viewTo||u.line=r.display.viewFrom&&Rc(r,a)||{node:_[0].measure.map[2],offset:0},L=u.linee.firstLine()&&(a=we(a.line-1,se(e.doc,a.line-1).length)),u.ch==se(e.doc,u.line).text.length&&u.liner.viewTo-1)return!1;var g,x,_;a.line==r.viewFrom||(g=In(e,a.line))==0?(x=Ye(r.view[0].line),_=r.view[0].node):(x=Ye(r.view[g].line),_=r.view[g-1].node.nextSibling);var C=In(e,u.line),L,Y;if(C==r.view.length-1?(L=r.viewTo-1,Y=r.lineDiv.lastChild):(L=Ye(r.view[C+1].line)-1,Y=r.view[C+1].node.previousSibling),!_)return!1;for(var J=e.doc.splitLines(bx(e,_,Y,x,L)),fe=pe(e.doc,we(x,0),we(L,se(e.doc,L).text.length));J.length>1&&fe.length>1;)if(Re(J)==Re(fe))J.pop(),fe.pop(),L--;else if(J[0]==fe[0])J.shift(),fe.shift(),x++;else break;for(var le=0,ye=0,Ee=J[0],Pe=fe[0],$e=Math.min(Ee.length,Pe.length);le<$e&&Ee.charCodeAt(le)==Pe.charCodeAt(le);)++le;for(var Qe=Re(J),Ue=Re(fe),nt=Math.min(Qe.length-(J.length==1?le:0),Ue.length-(fe.length==1?le:0));yea.ch&&Qe.charCodeAt(Qe.length-ye-1)==Ue.charCodeAt(Ue.length-ye-1);)le--,ye++;J[J.length-1]=Qe.slice(0,Qe.length-ye).replace(/^\u200b+/,""),J[0]=J[0].slice(le).replace(/\u200b+$/,"");var ct=we(x,le),ut=we(L,fe.length?Re(fe).length-ye:0);if(J.length>1||J[0]||D(ct,ut))return ni(e.doc,J,ct,ut,"+input"),!0},Ot.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ot.prototype.reset=function(){this.forceCompositionEnd()},Ot.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ot.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))},Ot.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ar(this.cm,function(){return kr(e.cm)})},Ot.prototype.setUneditable=function(e){e.contentEditable="false"},Ot.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||rr(this.cm,Ls)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Ot.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Ot.prototype.onContextMenu=function(){},Ot.prototype.resetPosition=function(){},Ot.prototype.needsContentAttribute=!0;function Rc(e,r){var s=Za(e,r.line);if(!s||s.hidden)return null;var a=se(e.doc,r.line),u=cu(s,a,r.line),g=Lt(a,e.doc.direction),x="left";if(g){var _=We(g,r.ch);x=_%2?"right":"left"}var C=hu(u.map,r.ch,x);return C.offset=C.collapse=="right"?C.end:C.start,C}function yx(e){for(var r=e;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function li(e,r){return r&&(e.bad=!0),e}function bx(e,r,s,a,u){var g="",x=!1,_=e.doc.lineSeparator(),C=!1;function L(le){return function(ye){return ye.id==le}}function Y(){x&&(g+=_,C&&(g+=_),x=C=!1)}function J(le){le&&(Y(),g+=le)}function fe(le){if(le.nodeType==1){var ye=le.getAttribute("cm-text");if(ye){J(ye);return}var Ee=le.getAttribute("cm-marker"),Pe;if(Ee){var $e=e.findMarks(we(a,0),we(u+1,0),L(+Ee));$e.length&&(Pe=$e[0].find(0))&&J(pe(e.doc,Pe.from,Pe.to).join(_));return}if(le.getAttribute("contenteditable")=="false")return;var Qe=/^(pre|div|p|li|table|br)$/i.test(le.nodeName);if(!/^br$/i.test(le.nodeName)&&le.textContent.length==0)return;Qe&&Y();for(var Ue=0;Ue=9&&r.hasSelection&&(r.hasSelection=null),s.poll()}),lt(u,"paste",function(x){wt(a,x)||Dc(x,a)||(a.state.pasteIncoming=+new Date,s.fastPoll())});function g(x){if(!wt(a,x)){if(a.somethingSelected())Ko({lineWise:!1,text:a.getSelections()});else if(a.options.lineWiseCopyCut){var _=Fc(a);Ko({lineWise:!0,text:_.text}),x.type=="cut"?a.setSelections(_.ranges,null,qe):(s.prevInput="",u.value=_.text.join(` -`),ae(u))}else return;x.type=="cut"&&(a.state.cutIncoming=+new Date)}}lt(u,"cut",g),lt(u,"copy",g),lt(e.scroller,"paste",function(x){if(!(ln(e,x)||wt(a,x))){if(!u.dispatchEvent){a.state.pasteIncoming=+new Date,s.focus();return}var _=new Event("paste");_.clipboardData=x.clipboardData,u.dispatchEvent(_)}}),lt(e.lineSpace,"selectstart",function(x){ln(e,x)||kt(x)}),lt(u,"compositionstart",function(){var x=a.getCursor("from");s.composing&&s.composing.range.clear(),s.composing={start:x,range:a.markText(x,a.getCursor("to"),{className:"CodeMirror-composing"})}}),lt(u,"compositionend",function(){s.composing&&(s.poll(),s.composing.range.clear(),s.composing=null)})},Wt.prototype.createField=function(e){this.wrapper=Oc(),this.textarea=this.wrapper.firstChild},Wt.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Wt.prototype.prepareSelection=function(){var e=this.cm,r=e.display,s=e.doc,a=Su(e);if(e.options.moveInputWithCursor){var u=jr(e,s.sel.primary().head,"div"),g=r.wrapper.getBoundingClientRect(),x=r.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,u.top+x.top-g.top)),a.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,u.left+x.left-g.left))}return a},Wt.prototype.showSelection=function(e){var r=this.cm,s=r.display;q(s.cursorDiv,e.cursors),q(s.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Wt.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var r=this.cm;if(r.somethingSelected()){this.prevInput="";var s=r.getSelection();this.textarea.value=s,r.state.focused&&ae(this.textarea),o&&h>=9&&(this.hasSelection=s)}else e||(this.prevInput=this.textarea.value="",o&&h>=9&&(this.hasSelection=null))}},Wt.prototype.getField=function(){return this.textarea},Wt.prototype.supportsTouch=function(){return!1},Wt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!I||P()!=this.textarea))try{this.textarea.focus()}catch{}},Wt.prototype.blur=function(){this.textarea.blur()},Wt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wt.prototype.receivedFocus=function(){this.slowPoll()},Wt.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Wt.prototype.fastPoll=function(){var e=!1,r=this;r.pollingFast=!0;function s(){var a=r.poll();!a&&!e?(e=!0,r.polling.set(60,s)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,s)},Wt.prototype.poll=function(){var e=this,r=this.cm,s=this.textarea,a=this.prevInput;if(this.contextMenuPending||!r.state.focused||oe(s)&&!a&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var u=s.value;if(u==a&&!r.somethingSelected())return!1;if(o&&h>=9&&this.hasSelection===u||S&&/[\uf700-\uf7ff]/.test(u))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var g=u.charCodeAt(0);if(g==8203&&!a&&(a="\u200B"),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var x=0,_=Math.min(a.length,u.length);x<_&&a.charCodeAt(x)==u.charCodeAt(x);)++x;return Ar(r,function(){Ls(r,u.slice(x),a.length-x,null,e.composing?"*compose":null),u.length>1e3||u.indexOf(` -`)>-1?s.value=e.prevInput="":e.prevInput=u,e.composing&&(e.composing.range.clear(),e.composing.range=r.markText(e.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Wt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wt.prototype.onKeyPress=function(){o&&h>=9&&(this.hasSelection=null),this.fastPoll()},Wt.prototype.onContextMenu=function(e){var r=this,s=r.cm,a=s.display,u=r.textarea;r.contextMenuPending&&r.contextMenuPending();var g=Dn(s,e),x=a.scroller.scrollTop;if(!g||m)return;var _=s.options.resetSelectionOnContextMenu;_&&s.doc.sel.contains(g)==-1&&rr(s,mr)(s.doc,bn(g),qe);var C=u.style.cssText,L=r.wrapper.style.cssText,Y=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px; - top: `+(e.clientY-Y.top-5)+"px; left: "+(e.clientX-Y.left-5)+`px; - z-index: 1000; background: `+(o?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var J;f&&(J=window.scrollY),a.input.focus(),f&&window.scrollTo(null,J),a.input.reset(),s.somethingSelected()||(u.value=r.prevInput=" "),r.contextMenuPending=le,a.selForContextMenu=s.doc.sel,clearTimeout(a.detectingSelectAll);function fe(){if(u.selectionStart!=null){var Ee=s.somethingSelected(),Pe="\u200B"+(Ee?u.value:"");u.value="\u21DA",u.value=Pe,r.prevInput=Ee?"":"\u200B",u.selectionStart=1,u.selectionEnd=Pe.length,a.selForContextMenu=s.doc.sel}}function le(){if(r.contextMenuPending==le&&(r.contextMenuPending=!1,r.wrapper.style.cssText=L,u.style.cssText=C,o&&h<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=x),u.selectionStart!=null)){(!o||o&&h<9)&&fe();var Ee=0,Pe=function(){a.selForContextMenu==s.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&r.prevInput=="\u200B"?rr(s,ec)(s):Ee++<10?a.detectingSelectAll=setTimeout(Pe,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(Pe,200)}}if(o&&h>=9&&fe(),ee){Ir(e);var ye=function(){pt(window,"mouseup",ye),setTimeout(le,20)};lt(window,"mouseup",ye)}else setTimeout(le,50)},Wt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Wt.prototype.setUneditable=function(){},Wt.prototype.needsContentAttribute=!1;function wx(e,r){if(r=r?A(r):{},r.value=e.value,!r.tabindex&&e.tabIndex&&(r.tabindex=e.tabIndex),!r.placeholder&&e.placeholder&&(r.placeholder=e.placeholder),r.autofocus==null){var s=P();r.autofocus=s==e||e.getAttribute("autofocus")!=null&&s==document.body}function a(){e.value=_.getValue()}var u;if(e.form&&(lt(e.form,"submit",a),!r.leaveSubmitMethodAlone)){var g=e.form;u=g.submit;try{var x=g.submit=function(){a(),g.submit=u,g.submit(),g.submit=x}}catch{}}r.finishInit=function(C){C.save=a,C.getTextArea=function(){return e},C.toTextArea=function(){C.toTextArea=isNaN,a(),e.parentNode.removeChild(C.getWrapperElement()),e.style.display="",e.form&&(pt(e.form,"submit",a),!r.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=u))}},e.style.display="none";var _=Nt(function(C){return e.parentNode.insertBefore(C,e.nextSibling)},r);return _}function kx(e){e.off=pt,e.on=lt,e.wheelEventPixels=Lb,e.Doc=_r,e.splitLines=ie,e.countColumn=be,e.findColumn=je,e.isWordChar=Se,e.Pass=ze,e.signal=rt,e.Line=Gn,e.changeEnd=xn,e.scrollbarModel=Du,e.Pos=we,e.cmpPos=D,e.modes=B,e.mimeModes=te,e.resolveMode=ve,e.getMode=Le,e.modeExtensions=Oe,e.extendMode=Ce,e.copyState=Ve,e.startState=mt,e.innerMode=St,e.commands=Vi,e.keyMap=cn,e.keyName=gc,e.isModifierKey=pc,e.lookupKey=oi,e.normalizeKeyMap=Zb,e.StringStream=G,e.SharedTextMarker=Wi,e.TextMarker=kn,e.LineWidget=Hi,e.e_preventDefault=kt,e.e_stopPropagation=st,e.e_stop=Ir,e.addClass=z,e.contains=Z,e.rmClass=W,e.keyNames=_n}hx(Nt),vx(Nt);var _x="iter insert remove copy getEditor constructor".split(" ");for(var Yo in _r.prototype)_r.prototype.hasOwnProperty(Yo)&&xe(_x,Yo)<0&&(Nt.prototype[Yo]=function(e){return function(){return e.apply(this.doc,arguments)}}(_r.prototype[Yo]));return Vt(_r),Nt.inputStyles={textarea:Wt,contenteditable:Ot},Nt.defineMode=function(e){!Nt.defaults.mode&&e!="null"&&(Nt.defaults.mode=e),ce.apply(this,arguments)},Nt.defineMIME=me,Nt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Nt.defineMIME("text/plain","null"),Nt.defineExtension=function(e,r){Nt.prototype[e]=r},Nt.defineDocExtension=function(e,r){_r.prototype[e]=r},Nt.fromTextArea=wx,kx(Nt),Nt.version="5.65.1",Nt})});var Js=Me((po,Qs)=>{(function(i,t){typeof po=="object"&&typeof Qs=="object"?Qs.exports=t():typeof define=="function"&&define.amd?define([],t):typeof po=="object"?po.ClipboardJS=t():i.ClipboardJS=t()})(po,function(){return t={134:function(l,f,d){"use strict";d.d(f,{default:function(){return N}});var f=d(279),o=d.n(f),f=d(370),h=d.n(f),f=d(817),p=d.n(f);function y(O){return(y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j})(O)}function m(O,j){for(var U=0;U{(function(i){typeof zf=="object"&&typeof Nf=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("css",function(V,W){var K=W.inline;W.propertyKeywords||(W=i.resolveMode("text/css"));var q=V.indentUnit,R=W.tokenHooks,T=W.documentTypes||{},H=W.mediaTypes||{},Z=W.mediaFeatures||{},P=W.mediaValueKeywords||{},z=W.propertyKeywords||{},ne=W.nonStandardPropertyKeywords||{},ae=W.fontProperties||{},F=W.counterDescriptors||{},A=W.colorKeywords||{},be=W.valueKeywords||{},Fe=W.allowNested,xe=W.lineComment,_e=W.supportsAtComponent===!0,ze=V.highlightNonStandardPropertyKeywords!==!1,qe,ge;function ke(X,de){return qe=de,X}function je(X,de){var ue=X.next();if(R[ue]){var it=R[ue](X,de);if(it!==!1)return it}if(ue=="@")return X.eatWhile(/[\w\\\-]/),ke("def",X.current());if(ue=="="||(ue=="~"||ue=="|")&&X.eat("="))return ke(null,"compare");if(ue=='"'||ue=="'")return de.tokenize=at(ue),de.tokenize(X,de);if(ue=="#")return X.eatWhile(/[\w\\\-]/),ke("atom","hash");if(ue=="!")return X.match(/^\s*\w*/),ke("keyword","important");if(/\d/.test(ue)||ue=="."&&X.eat(/\d/))return X.eatWhile(/[\w.%]/),ke("number","unit");if(ue==="-"){if(/[\d.]/.test(X.peek()))return X.eatWhile(/[\w.%]/),ke("number","unit");if(X.match(/^-[\w\\\-]*/))return X.eatWhile(/[\w\\\-]/),X.match(/^\s*:/,!1)?ke("variable-2","variable-definition"):ke("variable-2","variable");if(X.match(/^\w+-/))return ke("meta","meta")}else return/[,+>*\/]/.test(ue)?ke(null,"select-op"):ue=="."&&X.match(/^-?[_a-z][_a-z0-9-]*/i)?ke("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(ue)?ke(null,ue):X.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(X.current())&&(de.tokenize=gt),ke("variable callee","variable")):/[\w\\\-]/.test(ue)?(X.eatWhile(/[\w\\\-]/),ke("property","word")):ke(null,null)}function at(X){return function(de,ue){for(var it=!1,Ne;(Ne=de.next())!=null;){if(Ne==X&&!it){X==")"&&de.backUp(1);break}it=!it&&Ne=="\\"}return(Ne==X||!it&&X!=")")&&(ue.tokenize=null),ke("string","string")}}function gt(X,de){return X.next(),X.match(/^\s*[\"\')]/,!1)?de.tokenize=null:de.tokenize=at(")"),ke(null,"(")}function Re(X,de,ue){this.type=X,this.indent=de,this.prev=ue}function Ie(X,de,ue,it){return X.context=new Re(ue,de.indentation()+(it===!1?0:q),X.context),ue}function Be(X){return X.context.prev&&(X.context=X.context.prev),X.context.type}function Ke(X,de,ue){return Se[ue.context.type](X,de,ue)}function He(X,de,ue,it){for(var Ne=it||1;Ne>0;Ne--)ue.context=ue.context.prev;return Ke(X,de,ue)}function Je(X){var de=X.current().toLowerCase();be.hasOwnProperty(de)?ge="atom":A.hasOwnProperty(de)?ge="keyword":ge="variable"}var Se={};return Se.top=function(X,de,ue){if(X=="{")return Ie(ue,de,"block");if(X=="}"&&ue.context.prev)return Be(ue);if(_e&&/@component/i.test(X))return Ie(ue,de,"atComponentBlock");if(/^@(-moz-)?document$/i.test(X))return Ie(ue,de,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(X))return Ie(ue,de,"atBlock");if(/^@(font-face|counter-style)/i.test(X))return ue.stateArg=X,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(X))return"keyframes";if(X&&X.charAt(0)=="@")return Ie(ue,de,"at");if(X=="hash")ge="builtin";else if(X=="word")ge="tag";else{if(X=="variable-definition")return"maybeprop";if(X=="interpolation")return Ie(ue,de,"interpolation");if(X==":")return"pseudo";if(Fe&&X=="(")return Ie(ue,de,"parens")}return ue.context.type},Se.block=function(X,de,ue){if(X=="word"){var it=de.current().toLowerCase();return z.hasOwnProperty(it)?(ge="property","maybeprop"):ne.hasOwnProperty(it)?(ge=ze?"string-2":"property","maybeprop"):Fe?(ge=de.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(ge+=" error","maybeprop")}else return X=="meta"?"block":!Fe&&(X=="hash"||X=="qualifier")?(ge="error","block"):Se.top(X,de,ue)},Se.maybeprop=function(X,de,ue){return X==":"?Ie(ue,de,"prop"):Ke(X,de,ue)},Se.prop=function(X,de,ue){if(X==";")return Be(ue);if(X=="{"&&Fe)return Ie(ue,de,"propBlock");if(X=="}"||X=="{")return He(X,de,ue);if(X=="(")return Ie(ue,de,"parens");if(X=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(de.current()))ge+=" error";else if(X=="word")Je(de);else if(X=="interpolation")return Ie(ue,de,"interpolation");return"prop"},Se.propBlock=function(X,de,ue){return X=="}"?Be(ue):X=="word"?(ge="property","maybeprop"):ue.context.type},Se.parens=function(X,de,ue){return X=="{"||X=="}"?He(X,de,ue):X==")"?Be(ue):X=="("?Ie(ue,de,"parens"):X=="interpolation"?Ie(ue,de,"interpolation"):(X=="word"&&Je(de),"parens")},Se.pseudo=function(X,de,ue){return X=="meta"?"pseudo":X=="word"?(ge="variable-3",ue.context.type):Ke(X,de,ue)},Se.documentTypes=function(X,de,ue){return X=="word"&&T.hasOwnProperty(de.current())?(ge="tag",ue.context.type):Se.atBlock(X,de,ue)},Se.atBlock=function(X,de,ue){if(X=="(")return Ie(ue,de,"atBlock_parens");if(X=="}"||X==";")return He(X,de,ue);if(X=="{")return Be(ue)&&Ie(ue,de,Fe?"block":"top");if(X=="interpolation")return Ie(ue,de,"interpolation");if(X=="word"){var it=de.current().toLowerCase();it=="only"||it=="not"||it=="and"||it=="or"?ge="keyword":H.hasOwnProperty(it)?ge="attribute":Z.hasOwnProperty(it)?ge="property":P.hasOwnProperty(it)?ge="keyword":z.hasOwnProperty(it)?ge="property":ne.hasOwnProperty(it)?ge=ze?"string-2":"property":be.hasOwnProperty(it)?ge="atom":A.hasOwnProperty(it)?ge="keyword":ge="error"}return ue.context.type},Se.atComponentBlock=function(X,de,ue){return X=="}"?He(X,de,ue):X=="{"?Be(ue)&&Ie(ue,de,Fe?"block":"top",!1):(X=="word"&&(ge="error"),ue.context.type)},Se.atBlock_parens=function(X,de,ue){return X==")"?Be(ue):X=="{"||X=="}"?He(X,de,ue,2):Se.atBlock(X,de,ue)},Se.restricted_atBlock_before=function(X,de,ue){return X=="{"?Ie(ue,de,"restricted_atBlock"):X=="word"&&ue.stateArg=="@counter-style"?(ge="variable","restricted_atBlock_before"):Ke(X,de,ue)},Se.restricted_atBlock=function(X,de,ue){return X=="}"?(ue.stateArg=null,Be(ue)):X=="word"?(ue.stateArg=="@font-face"&&!ae.hasOwnProperty(de.current().toLowerCase())||ue.stateArg=="@counter-style"&&!F.hasOwnProperty(de.current().toLowerCase())?ge="error":ge="property","maybeprop"):"restricted_atBlock"},Se.keyframes=function(X,de,ue){return X=="word"?(ge="variable","keyframes"):X=="{"?Ie(ue,de,"top"):Ke(X,de,ue)},Se.at=function(X,de,ue){return X==";"?Be(ue):X=="{"||X=="}"?He(X,de,ue):(X=="word"?ge="tag":X=="hash"&&(ge="builtin"),"at")},Se.interpolation=function(X,de,ue){return X=="}"?Be(ue):X=="{"||X==";"?He(X,de,ue):(X=="word"?ge="variable":X!="variable"&&X!="("&&X!=")"&&(ge="error"),"interpolation")},{startState:function(X){return{tokenize:null,state:K?"block":"top",stateArg:null,context:new Re(K?"block":"top",X||0,null)}},token:function(X,de){if(!de.tokenize&&X.eatSpace())return null;var ue=(de.tokenize||je)(X,de);return ue&&typeof ue=="object"&&(qe=ue[1],ue=ue[0]),ge=ue,qe!="comment"&&(de.state=Se[de.state](qe,X,de)),ge},indent:function(X,de){var ue=X.context,it=de&&de.charAt(0),Ne=ue.indent;return ue.type=="prop"&&(it=="}"||it==")")&&(ue=ue.prev),ue.prev&&(it=="}"&&(ue.type=="block"||ue.type=="top"||ue.type=="interpolation"||ue.type=="restricted_atBlock")?(ue=ue.prev,Ne=ue.indent):(it==")"&&(ue.type=="parens"||ue.type=="atBlock_parens")||it=="{"&&(ue.type=="at"||ue.type=="atBlock"))&&(Ne=Math.max(0,ue.indent-q))),Ne},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:xe,fold:"brace"}});function t(V){for(var W={},K=0;K{(function(i){typeof Bf=="object"&&typeof qf=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function t(P,z,ne,ae,F,A){this.indented=P,this.column=z,this.type=ne,this.info=ae,this.align=F,this.prev=A}function n(P,z,ne,ae){var F=P.indented;return P.context&&P.context.type=="statement"&&ne!="statement"&&(F=P.context.indented),P.context=new t(F,z,ne,ae,null,P.context)}function l(P){var z=P.context.type;return(z==")"||z=="]"||z=="}")&&(P.indented=P.context.indented),P.context=P.context.prev}function c(P,z,ne){if(z.prevToken=="variable"||z.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(P.string.slice(0,ne))||z.typeAtEndOfLine&&P.column()==P.indentation())return!0}function d(P){for(;;){if(!P||P.type=="top")return!0;if(P.type=="}"&&P.prev.info!="namespace")return!1;P=P.prev}}i.defineMode("clike",function(P,z){var ne=P.indentUnit,ae=z.statementIndentUnit||ne,F=z.dontAlignCalls,A=z.keywords||{},be=z.types||{},Fe=z.builtin||{},xe=z.blockKeywords||{},_e=z.defKeywords||{},ze=z.atoms||{},qe=z.hooks||{},ge=z.multiLineStrings,ke=z.indentStatements!==!1,je=z.indentSwitch!==!1,at=z.namespaceSeparator,gt=z.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,Re=z.numberStart||/[\d\.]/,Ie=z.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,Be=z.isOperatorChar||/[+\-*&%=<>!?|\/]/,Ke=z.isIdentifierChar||/[\w\$_\xa1-\uffff]/,He=z.isReservedIdentifier||!1,Je,Se;function X(Ne,ot){var Xe=Ne.next();if(qe[Xe]){var et=qe[Xe](Ne,ot);if(et!==!1)return et}if(Xe=='"'||Xe=="'")return ot.tokenize=de(Xe),ot.tokenize(Ne,ot);if(Re.test(Xe)){if(Ne.backUp(1),Ne.match(Ie))return"number";Ne.next()}if(gt.test(Xe))return Je=Xe,null;if(Xe=="/"){if(Ne.eat("*"))return ot.tokenize=ue,ue(Ne,ot);if(Ne.eat("/"))return Ne.skipToEnd(),"comment"}if(Be.test(Xe)){for(;!Ne.match(/^\/[\/*]/,!1)&&Ne.eat(Be););return"operator"}if(Ne.eatWhile(Ke),at)for(;Ne.match(at);)Ne.eatWhile(Ke);var We=Ne.current();return h(A,We)?(h(xe,We)&&(Je="newstatement"),h(_e,We)&&(Se=!0),"keyword"):h(be,We)?"type":h(Fe,We)||He&&He(We)?(h(xe,We)&&(Je="newstatement"),"builtin"):h(ze,We)?"atom":"variable"}function de(Ne){return function(ot,Xe){for(var et=!1,We,$t=!1;(We=ot.next())!=null;){if(We==Ne&&!et){$t=!0;break}et=!et&&We=="\\"}return($t||!(et||ge))&&(Xe.tokenize=null),"string"}}function ue(Ne,ot){for(var Xe=!1,et;et=Ne.next();){if(et=="/"&&Xe){ot.tokenize=null;break}Xe=et=="*"}return"comment"}function it(Ne,ot){z.typeFirstDefinitions&&Ne.eol()&&d(ot.context)&&(ot.typeAtEndOfLine=c(Ne,ot,Ne.pos))}return{startState:function(Ne){return{tokenize:null,context:new t((Ne||0)-ne,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(Ne,ot){var Xe=ot.context;if(Ne.sol()&&(Xe.align==null&&(Xe.align=!1),ot.indented=Ne.indentation(),ot.startOfLine=!0),Ne.eatSpace())return it(Ne,ot),null;Je=Se=null;var et=(ot.tokenize||X)(Ne,ot);if(et=="comment"||et=="meta")return et;if(Xe.align==null&&(Xe.align=!0),Je==";"||Je==":"||Je==","&&Ne.match(/^\s*(?:\/\/.*)?$/,!1))for(;ot.context.type=="statement";)l(ot);else if(Je=="{")n(ot,Ne.column(),"}");else if(Je=="[")n(ot,Ne.column(),"]");else if(Je=="(")n(ot,Ne.column(),")");else if(Je=="}"){for(;Xe.type=="statement";)Xe=l(ot);for(Xe.type=="}"&&(Xe=l(ot));Xe.type=="statement";)Xe=l(ot)}else Je==Xe.type?l(ot):ke&&((Xe.type=="}"||Xe.type=="top")&&Je!=";"||Xe.type=="statement"&&Je=="newstatement")&&n(ot,Ne.column(),"statement",Ne.current());if(et=="variable"&&(ot.prevToken=="def"||z.typeFirstDefinitions&&c(Ne,ot,Ne.start)&&d(ot.context)&&Ne.match(/^\s*\(/,!1))&&(et="def"),qe.token){var We=qe.token(Ne,ot,et);We!==void 0&&(et=We)}return et=="def"&&z.styleDefs===!1&&(et="variable"),ot.startOfLine=!1,ot.prevToken=Se?"def":et||Je,it(Ne,ot),et},indent:function(Ne,ot){if(Ne.tokenize!=X&&Ne.tokenize!=null||Ne.typeAtEndOfLine)return i.Pass;var Xe=Ne.context,et=ot&&ot.charAt(0),We=et==Xe.type;if(Xe.type=="statement"&&et=="}"&&(Xe=Xe.prev),z.dontIndentStatements)for(;Xe.type=="statement"&&z.dontIndentStatements.test(Xe.info);)Xe=Xe.prev;if(qe.indent){var $t=qe.indent(Ne,Xe,ot,ne);if(typeof $t=="number")return $t}var Lt=Xe.prev&&Xe.prev.info=="switch";if(z.allmanIndentation&&/[{(]/.test(et)){for(;Xe.type!="top"&&Xe.type!="}";)Xe=Xe.prev;return Xe.indented}return Xe.type=="statement"?Xe.indented+(et=="{"?0:ae):Xe.align&&(!F||Xe.type!=")")?Xe.column+(We?0:1):Xe.type==")"&&!We?Xe.indented+ae:Xe.indented+(We?0:ne)+(!We&&Lt&&!/^(?:case|default)\b/.test(ot)?ne:0)},electricInput:je?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function o(P){for(var z={},ne=P.split(" "),ae=0;ae!?|\/#:@]/,hooks:{"@":function(P){return P.eatWhile(/[\w\$_]/),"meta"},'"':function(P,z){return P.match('""')?(z.tokenize=q,z.tokenize(P,z)):!1},"'":function(P){return P.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(P,z){var ne=z.context;return ne.type=="}"&&ne.align&&P.eat(">")?(z.context=new t(ne.indented,ne.column,ne.type,ne.info,null,ne.prev),"operator"):!1},"/":function(P,z){return P.eat("*")?(z.tokenize=R(1),z.tokenize(P,z)):!1}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});function T(P){return function(z,ne){for(var ae=!1,F,A=!1;!z.eol();){if(!P&&!ae&&z.match('"')){A=!0;break}if(P&&z.match('"""')){A=!0;break}F=z.next(),!ae&&F=="$"&&z.match("{")&&z.skipTo("}"),ae=!ae&&F=="\\"&&!P}return(A||!P)&&(ne.tokenize=null),"string"}}K("text/x-kotlin",{name:"clike",keywords:o("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"),types:o("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:o("catch class do else finally for if where try while enum"),defKeywords:o("class val var object interface fun"),atoms:o("true false null this"),hooks:{"@":function(P){return P.eatWhile(/[\w\$_]/),"meta"},"*":function(P,z){return z.prevToken=="."?"variable":"operator"},'"':function(P,z){return z.tokenize=T(P.match('""')),z.tokenize(P,z)},"/":function(P,z){return P.eat("*")?(z.tokenize=R(1),z.tokenize(P,z)):!1},indent:function(P,z,ne,ae){var F=ne&&ne.charAt(0);if((P.prevToken=="}"||P.prevToken==")")&&ne=="")return P.indented;if(P.prevToken=="operator"&&ne!="}"&&P.context.type!="}"||P.prevToken=="variable"&&F=="."||(P.prevToken=="}"||P.prevToken==")")&&F==".")return ae*2+z.indented;if(z.align&&z.type=="}")return z.indented+(P.context.type==(ne||"").charAt(0)?0:ae)}},modeProps:{closeBrackets:{triples:'"'}}}),K(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:o("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:o("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:o("for while do if else struct"),builtin:o("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:o("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":S},modeProps:{fold:["brace","include"]}}),K("text/x-nesc",{name:"clike",keywords:o(f+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:k,blockKeywords:o(w),atoms:o("null true false"),hooks:{"#":S},modeProps:{fold:["brace","include"]}}),K("text/x-objectivec",{name:"clike",keywords:o(f+" "+y),types:E,builtin:o(m),blockKeywords:o(w+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:o(I+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:o("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:O,hooks:{"#":S,"*":N},modeProps:{fold:["brace","include"]}}),K("text/x-objectivec++",{name:"clike",keywords:o(f+" "+y+" "+p),types:E,builtin:o(m),blockKeywords:o(w+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:o(I+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:o("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:O,hooks:{"#":S,"*":N,u:U,U,L:U,R:U,"0":j,"1":j,"2":j,"3":j,"4":j,"5":j,"6":j,"7":j,"8":j,"9":j,token:function(P,z,ne){if(ne=="variable"&&P.peek()=="("&&(z.prevToken==";"||z.prevToken==null||z.prevToken=="}")&&ee(P.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),K("text/x-squirrel",{name:"clike",keywords:o("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:k,blockKeywords:o("case catch class else for foreach if switch try while"),defKeywords:o("function local class"),typeFirstDefinitions:!0,atoms:o("true false null"),hooks:{"#":S},modeProps:{fold:["brace","include"]}});var H=null;function Z(P){return function(z,ne){for(var ae=!1,F,A=!1;!z.eol();){if(!ae&&z.match('"')&&(P=="single"||z.match('""'))){A=!0;break}if(!ae&&z.match("``")){H=Z(P),A=!0;break}F=z.next(),ae=P=="single"&&!ae&&F=="\\"}return A&&(ne.tokenize=null),"string"}}K("text/x-ceylon",{name:"clike",keywords:o("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(P){var z=P.charAt(0);return z===z.toUpperCase()&&z!==z.toLowerCase()},blockKeywords:o("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:o("class dynamic function interface module object package value"),builtin:o("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:o("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(P){return P.eatWhile(/[\w\$_]/),"meta"},'"':function(P,z){return z.tokenize=Z(P.match('""')?"triple":"single"),z.tokenize(P,z)},"`":function(P,z){return!H||!P.match("`")?!1:(z.tokenize=H,H=null,z.tokenize(P,z))},"'":function(P){return P.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(P,z,ne){if((ne=="variable"||ne=="type")&&z.prevToken==".")return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})});var jf=Me(($f,Uf)=>{(function(i){typeof $f=="object"&&typeof Uf=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("diff",function(){var t={"+":"positive","-":"negative","@":"meta"};return{token:function(n){var l=n.string.search(/[\t ]+?$/);if(!n.sol()||l===0)return n.skipToEnd(),("error "+(t[n.string.charAt(0)]||"")).replace(/ $/,"");var c=t[n.peek()]||n.skipToEnd();return l===-1?n.skipToEnd():n.pos=l,c}}}),i.defineMIME("text/x-diff","diff")})});var Gf=Me((Hf,Wf)=>{(function(i){typeof Hf=="object"&&typeof Wf=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("fortran",function(){function t(p){for(var y={},m=0;m\/\:]/,o=/^\.(and|or|eq|lt|le|gt|ge|ne|not|eqv|neqv)\./i;function h(p,y){if(p.match(o))return"operator";var m=p.next();if(m=="!")return p.skipToEnd(),"comment";if(m=='"'||m=="'")return y.tokenize=f(m),y.tokenize(p,y);if(/[\[\]\(\),]/.test(m))return null;if(/\d/.test(m))return p.eatWhile(/[\w\.]/),"number";if(d.test(m))return p.eatWhile(d),"operator";p.eatWhile(/[\w\$_]/);var v=p.current().toLowerCase();return n.hasOwnProperty(v)?"keyword":l.hasOwnProperty(v)||c.hasOwnProperty(v)?"builtin":"variable"}function f(p){return function(y,m){for(var v=!1,b,k=!1;(b=y.next())!=null;){if(b==p&&!v){k=!0;break}v=!v&&b=="\\"}return(k||!v)&&(m.tokenize=null),"string"}}return{startState:function(){return{tokenize:null}},token:function(p,y){if(p.eatSpace())return null;var m=(y.tokenize||h)(p,y);return m=="comment"||m=="meta",m}}}),i.defineMIME("text/x-fortran","fortran")})});var Yf=Me((Kf,Vf)=>{(function(i){typeof Kf=="object"&&typeof Vf=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("go",function(t){var n=t.indentUnit,l={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0},c={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},d=/[+\-*&^%:=<>!|\/]/,o;function h(b,k){var E=b.next();if(E=='"'||E=="'"||E=="`")return k.tokenize=f(E),k.tokenize(b,k);if(/[\d\.]/.test(E))return E=="."?b.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):E=="0"?b.match(/^[xX][0-9a-fA-F]+/)||b.match(/^0[0-7]+/):b.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(E))return o=E,null;if(E=="/"){if(b.eat("*"))return k.tokenize=p,p(b,k);if(b.eat("/"))return b.skipToEnd(),"comment"}if(d.test(E))return b.eatWhile(d),"operator";b.eatWhile(/[\w\$_\xa1-\uffff]/);var w=b.current();return l.propertyIsEnumerable(w)?((w=="case"||w=="default")&&(o="case"),"keyword"):c.propertyIsEnumerable(w)?"atom":"variable"}function f(b){return function(k,E){for(var w=!1,I,S=!1;(I=k.next())!=null;){if(I==b&&!w){S=!0;break}w=!w&&b!="`"&&I=="\\"}return(S||!(w||b=="`"))&&(E.tokenize=h),"string"}}function p(b,k){for(var E=!1,w;w=b.next();){if(w=="/"&&E){k.tokenize=h;break}E=w=="*"}return"comment"}function y(b,k,E,w,I){this.indented=b,this.column=k,this.type=E,this.align=w,this.prev=I}function m(b,k,E){return b.context=new y(b.indented,k,E,null,b.context)}function v(b){if(!!b.context.prev){var k=b.context.type;return(k==")"||k=="]"||k=="}")&&(b.indented=b.context.indented),b.context=b.context.prev}}return{startState:function(b){return{tokenize:null,context:new y((b||0)-n,0,"top",!1),indented:0,startOfLine:!0}},token:function(b,k){var E=k.context;if(b.sol()&&(E.align==null&&(E.align=!1),k.indented=b.indentation(),k.startOfLine=!0,E.type=="case"&&(E.type="}")),b.eatSpace())return null;o=null;var w=(k.tokenize||h)(b,k);return w=="comment"||(E.align==null&&(E.align=!0),o=="{"?m(k,b.column(),"}"):o=="["?m(k,b.column(),"]"):o=="("?m(k,b.column(),")"):o=="case"?E.type="case":(o=="}"&&E.type=="}"||o==E.type)&&v(k),k.startOfLine=!1),w},indent:function(b,k){if(b.tokenize!=h&&b.tokenize!=null)return i.Pass;var E=b.context,w=k&&k.charAt(0);if(E.type=="case"&&/^(?:case|default)\b/.test(k))return b.context.type="}",E.indented;var I=w==E.type;return E.align?E.column+(I?0:1):E.indented+(I?0:n)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),i.defineMIME("text/x-go","go")})});var Qf=Me((Xf,Zf)=>{(function(i){typeof Xf=="object"&&typeof Zf=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("haskell",function(t,n){function l(S,N,O){return N(O),O(S,N)}var c=/[a-z_]/,d=/[A-Z]/,o=/\d/,h=/[0-9A-Fa-f]/,f=/[0-7]/,p=/[a-z_A-Z0-9'\xa1-\uffff]/,y=/[-!#$%&*+.\/<=>?@\\^|~:]/,m=/[(),;[\]`{}]/,v=/[ \t\v\f]/;function b(S,N){if(S.eatWhile(v))return null;var O=S.next();if(m.test(O)){if(O=="{"&&S.eat("-")){var j="comment";return S.eat("#")&&(j="meta"),l(S,N,k(j,1))}return null}if(O=="'")return S.eat("\\"),S.next(),S.eat("'")?"string":"string error";if(O=='"')return l(S,N,E);if(d.test(O))return S.eatWhile(p),S.eat(".")?"qualifier":"variable-2";if(c.test(O))return S.eatWhile(p),"variable";if(o.test(O)){if(O=="0"){if(S.eat(/[xX]/))return S.eatWhile(h),"integer";if(S.eat(/[oO]/))return S.eatWhile(f),"number"}S.eatWhile(o);var j="number";return S.match(/^\.\d+/)&&(j="number"),S.eat(/[eE]/)&&(j="number",S.eat(/[-+]/),S.eatWhile(o)),j}if(O=="."&&S.eat("."))return"keyword";if(y.test(O)){if(O=="-"&&S.eat(/-/)&&(S.eatWhile(/-/),!S.eat(y)))return S.skipToEnd(),"comment";var j="variable";return O==":"&&(j="variable-2"),S.eatWhile(y),j}return"error"}function k(S,N){return N==0?b:function(O,j){for(var U=N;!O.eol();){var ee=O.next();if(ee=="{"&&O.eat("-"))++U;else if(ee=="-"&&O.eat("}")&&(--U,U==0))return j(b),S}return j(k(S,U)),S}}function E(S,N){for(;!S.eol();){var O=S.next();if(O=='"')return N(b),"string";if(O=="\\"){if(S.eol()||S.eat(v))return N(w),"string";S.eat("&")||S.next()}}return N(b),"string error"}function w(S,N){return S.eat("\\")?l(S,N,E):(S.next(),N(b),"error")}var I=function(){var S={};function N(U){return function(){for(var ee=0;ee","@","~","=>"),N("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<*","<=","<$>","<*>","=<<","==",">",">=",">>",">>=","^","^^","||","*","*>","**"),N("builtin")("Applicative","Bool","Bounded","Char","Double","EQ","Either","Enum","Eq","False","FilePath","Float","Floating","Fractional","Functor","GT","IO","IOError","Int","Integer","Integral","Just","LT","Left","Maybe","Monad","Nothing","Num","Ord","Ordering","Rational","Read","ReadS","Real","RealFloat","RealFrac","Right","Show","ShowS","String","True"),N("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","pure","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3");var O=n.overrideKeywords;if(O)for(var j in O)O.hasOwnProperty(j)&&(S[j]=O[j]);return S}();return{startState:function(){return{f:b}},copyState:function(S){return{f:S.f}},token:function(S,N){var O=N.f(S,function(U){N.f=U}),j=S.current();return I.hasOwnProperty(j)?I[j]:O},blockCommentStart:"{-",blockCommentEnd:"-}",lineComment:"--"}}),i.defineMIME("text/x-haskell","haskell")})});var wa=Me((Jf,ed)=>{(function(i){typeof Jf=="object"&&typeof ed=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};i.defineMode("xml",function(l,c){var d=l.indentUnit,o={},h=c.htmlMode?t:n;for(var f in h)o[f]=h[f];for(var f in c)o[f]=c[f];var p,y;function m(T,H){function Z(ne){return H.tokenize=ne,ne(T,H)}var P=T.next();if(P=="<")return T.eat("!")?T.eat("[")?T.match("CDATA[")?Z(k("atom","]]>")):null:T.match("--")?Z(k("comment","-->")):T.match("DOCTYPE",!0,!0)?(T.eatWhile(/[\w\._\-]/),Z(E(1))):null:T.eat("?")?(T.eatWhile(/[\w\._\-]/),H.tokenize=k("meta","?>"),"meta"):(p=T.eat("/")?"closeTag":"openTag",H.tokenize=v,"tag bracket");if(P=="&"){var z;return T.eat("#")?T.eat("x")?z=T.eatWhile(/[a-fA-F\d]/)&&T.eat(";"):z=T.eatWhile(/[\d]/)&&T.eat(";"):z=T.eatWhile(/[\w\.\-:]/)&&T.eat(";"),z?"atom":"error"}else return T.eatWhile(/[^&<]/),null}m.isInText=!0;function v(T,H){var Z=T.next();if(Z==">"||Z=="/"&&T.eat(">"))return H.tokenize=m,p=Z==">"?"endTag":"selfcloseTag","tag bracket";if(Z=="=")return p="equals",null;if(Z=="<"){H.tokenize=m,H.state=O,H.tagName=H.tagStart=null;var P=H.tokenize(T,H);return P?P+" tag error":"tag error"}else return/[\'\"]/.test(Z)?(H.tokenize=b(Z),H.stringStartCol=T.column(),H.tokenize(T,H)):(T.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function b(T){var H=function(Z,P){for(;!Z.eol();)if(Z.next()==T){P.tokenize=v;break}return"string"};return H.isInAttribute=!0,H}function k(T,H){return function(Z,P){for(;!Z.eol();){if(Z.match(H)){P.tokenize=m;break}Z.next()}return T}}function E(T){return function(H,Z){for(var P;(P=H.next())!=null;){if(P=="<")return Z.tokenize=E(T+1),Z.tokenize(H,Z);if(P==">")if(T==1){Z.tokenize=m;break}else return Z.tokenize=E(T-1),Z.tokenize(H,Z)}return"meta"}}function w(T){return T&&T.toLowerCase()}function I(T,H,Z){this.prev=T.context,this.tagName=H||"",this.indent=T.indented,this.startOfLine=Z,(o.doNotIndent.hasOwnProperty(H)||T.context&&T.context.noIndent)&&(this.noIndent=!0)}function S(T){T.context&&(T.context=T.context.prev)}function N(T,H){for(var Z;;){if(!T.context||(Z=T.context.tagName,!o.contextGrabbers.hasOwnProperty(w(Z))||!o.contextGrabbers[w(Z)].hasOwnProperty(w(H))))return;S(T)}}function O(T,H,Z){return T=="openTag"?(Z.tagStart=H.column(),j):T=="closeTag"?U:O}function j(T,H,Z){return T=="word"?(Z.tagName=H.current(),y="tag",W):o.allowMissingTagName&&T=="endTag"?(y="tag bracket",W(T,H,Z)):(y="error",j)}function U(T,H,Z){if(T=="word"){var P=H.current();return Z.context&&Z.context.tagName!=P&&o.implicitlyClosed.hasOwnProperty(w(Z.context.tagName))&&S(Z),Z.context&&Z.context.tagName==P||o.matchClosing===!1?(y="tag",ee):(y="tag error",V)}else return o.allowMissingTagName&&T=="endTag"?(y="tag bracket",ee(T,H,Z)):(y="error",V)}function ee(T,H,Z){return T!="endTag"?(y="error",ee):(S(Z),O)}function V(T,H,Z){return y="error",ee(T,H,Z)}function W(T,H,Z){if(T=="word")return y="attribute",K;if(T=="endTag"||T=="selfcloseTag"){var P=Z.tagName,z=Z.tagStart;return Z.tagName=Z.tagStart=null,T=="selfcloseTag"||o.autoSelfClosers.hasOwnProperty(w(P))?N(Z,P):(N(Z,P),Z.context=new I(Z,P,z==Z.indented)),O}return y="error",W}function K(T,H,Z){return T=="equals"?q:(o.allowMissing||(y="error"),W(T,H,Z))}function q(T,H,Z){return T=="string"?R:T=="word"&&o.allowUnquoted?(y="string",W):(y="error",W(T,H,Z))}function R(T,H,Z){return T=="string"?R:W(T,H,Z)}return{startState:function(T){var H={tokenize:m,state:O,indented:T||0,tagName:null,tagStart:null,context:null};return T!=null&&(H.baseIndent=T),H},token:function(T,H){if(!H.tagName&&T.sol()&&(H.indented=T.indentation()),T.eatSpace())return null;p=null;var Z=H.tokenize(T,H);return(Z||p)&&Z!="comment"&&(y=null,H.state=H.state(p||Z,T,H),y&&(Z=y=="error"?Z+" error":y)),Z},indent:function(T,H,Z){var P=T.context;if(T.tokenize.isInAttribute)return T.tagStart==T.indented?T.stringStartCol+1:T.indented+d;if(P&&P.noIndent)return i.Pass;if(T.tokenize!=v&&T.tokenize!=m)return Z?Z.match(/^(\s*)/)[0].length:0;if(T.tagName)return o.multilineTagIndentPastTag!==!1?T.tagStart+T.tagName.length+2:T.tagStart+d*(o.multilineTagIndentFactor||1);if(o.alignCDATA&&/$/,blockCommentStart:"",configuration:o.htmlMode?"html":"xml",helperType:o.htmlMode?"html":"xml",skipAttribute:function(T){T.state==q&&(T.state=W)},xmlCurrentTag:function(T){return T.tagName?{name:T.tagName,close:T.type=="closeTag"}:null},xmlCurrentContext:function(T){for(var H=[],Z=T.context;Z;Z=Z.prev)H.push(Z.tagName);return H.reverse()}}}),i.defineMIME("text/xml","xml"),i.defineMIME("application/xml","xml"),i.mimeModes.hasOwnProperty("text/html")||i.defineMIME("text/html",{name:"xml",htmlMode:!0})})});var rl=Me((td,rd)=>{(function(i){typeof td=="object"&&typeof rd=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("javascript",function(t,n){var l=t.indentUnit,c=n.statementIndent,d=n.jsonld,o=n.json||d,h=n.trackScope!==!1,f=n.typescript,p=n.wordCharacters||/[\w$\xa1-\uffff]/,y=function(){function D(Yt){return{type:Yt,style:"keyword"}}var $=D("keyword a"),he=D("keyword b"),De=D("keyword c"),ft=D("keyword d"),xt=D("operator"),Ze={type:"atom",style:"atom"};return{if:D("if"),while:$,with:$,else:he,do:he,try:he,finally:he,return:ft,break:ft,continue:ft,new:D("new"),delete:De,void:De,throw:De,debugger:D("debugger"),var:D("var"),const:D("var"),let:D("var"),function:D("function"),catch:D("catch"),for:D("for"),switch:D("switch"),case:D("case"),default:D("default"),in:xt,typeof:xt,instanceof:xt,true:Ze,false:Ze,null:Ze,undefined:Ze,NaN:Ze,Infinity:Ze,this:D("this"),class:D("class"),super:D("atom"),yield:De,export:D("export"),import:D("import"),extends:De,await:De}}(),m=/[+\-*&%=<>!?|~^@]/,v=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function b(D){for(var $=!1,he,De=!1;(he=D.next())!=null;){if(!$){if(he=="/"&&!De)return;he=="["?De=!0:De&&he=="]"&&(De=!1)}$=!$&&he=="\\"}}var k,E;function w(D,$,he){return k=D,E=he,$}function I(D,$){var he=D.next();if(he=='"'||he=="'")return $.tokenize=S(he),$.tokenize(D,$);if(he=="."&&D.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return w("number","number");if(he=="."&&D.match(".."))return w("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(he))return w(he);if(he=="="&&D.eat(">"))return w("=>","operator");if(he=="0"&&D.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return w("number","number");if(/\d/.test(he))return D.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),w("number","number");if(he=="/")return D.eat("*")?($.tokenize=N,N(D,$)):D.eat("/")?(D.skipToEnd(),w("comment","comment")):we(D,$,1)?(b(D),D.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),w("regexp","string-2")):(D.eat("="),w("operator","operator",D.current()));if(he=="`")return $.tokenize=O,O(D,$);if(he=="#"&&D.peek()=="!")return D.skipToEnd(),w("meta","meta");if(he=="#"&&D.eatWhile(p))return w("variable","property");if(he=="<"&&D.match("!--")||he=="-"&&D.match("->")&&!/\S/.test(D.string.slice(0,D.start)))return D.skipToEnd(),w("comment","comment");if(m.test(he))return(he!=">"||!$.lexical||$.lexical.type!=">")&&(D.eat("=")?(he=="!"||he=="=")&&D.eat("="):/[<>*+\-|&?]/.test(he)&&(D.eat(he),he==">"&&D.eat(he))),he=="?"&&D.eat(".")?w("."):w("operator","operator",D.current());if(p.test(he)){D.eatWhile(p);var De=D.current();if($.lastType!="."){if(y.propertyIsEnumerable(De)){var ft=y[De];return w(ft.type,ft.style,De)}if(De=="async"&&D.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return w("async","keyword",De)}return w("variable","variable",De)}}function S(D){return function($,he){var De=!1,ft;if(d&&$.peek()=="@"&&$.match(v))return he.tokenize=I,w("jsonld-keyword","meta");for(;(ft=$.next())!=null&&!(ft==D&&!De);)De=!De&&ft=="\\";return De||(he.tokenize=I),w("string","string")}}function N(D,$){for(var he=!1,De;De=D.next();){if(De=="/"&&he){$.tokenize=I;break}he=De=="*"}return w("comment","comment")}function O(D,$){for(var he=!1,De;(De=D.next())!=null;){if(!he&&(De=="`"||De=="$"&&D.eat("{"))){$.tokenize=I;break}he=!he&&De=="\\"}return w("quasi","string-2",D.current())}var j="([{}])";function U(D,$){$.fatArrowAt&&($.fatArrowAt=null);var he=D.string.indexOf("=>",D.start);if(!(he<0)){if(f){var De=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(D.string.slice(D.start,he));De&&(he=De.index)}for(var ft=0,xt=!1,Ze=he-1;Ze>=0;--Ze){var Yt=D.string.charAt(Ze),Fr=j.indexOf(Yt);if(Fr>=0&&Fr<3){if(!ft){++Ze;break}if(--ft==0){Yt=="("&&(xt=!0);break}}else if(Fr>=3&&Fr<6)++ft;else if(p.test(Yt))xt=!0;else if(/["'\/`]/.test(Yt))for(;;--Ze){if(Ze==0)return;var Wn=D.string.charAt(Ze-1);if(Wn==Yt&&D.string.charAt(Ze-2)!="\\"){Ze--;break}}else if(xt&&!ft){++Ze;break}}xt&&!ft&&($.fatArrowAt=Ze)}}var ee={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function V(D,$,he,De,ft,xt){this.indented=D,this.column=$,this.type=he,this.prev=ft,this.info=xt,De!=null&&(this.align=De)}function W(D,$){if(!h)return!1;for(var he=D.localVars;he;he=he.next)if(he.name==$)return!0;for(var De=D.context;De;De=De.prev)for(var he=De.vars;he;he=he.next)if(he.name==$)return!0}function K(D,$,he,De,ft){var xt=D.cc;for(q.state=D,q.stream=ft,q.marked=null,q.cc=xt,q.style=$,D.lexical.hasOwnProperty("align")||(D.lexical.align=!0);;){var Ze=xt.length?xt.pop():o?ke:qe;if(Ze(he,De)){for(;xt.length&&xt[xt.length-1].lex;)xt.pop()();return q.marked?q.marked:he=="variable"&&W(D,De)?"variable-2":$}}}var q={state:null,column:null,marked:null,cc:null};function R(){for(var D=arguments.length-1;D>=0;D--)q.cc.push(arguments[D])}function T(){return R.apply(null,arguments),!0}function H(D,$){for(var he=$;he;he=he.next)if(he.name==D)return!0;return!1}function Z(D){var $=q.state;if(q.marked="def",!!h){if($.context){if($.lexical.info=="var"&&$.context&&$.context.block){var he=P(D,$.context);if(he!=null){$.context=he;return}}else if(!H(D,$.localVars)){$.localVars=new ae(D,$.localVars);return}}n.globalVars&&!H(D,$.globalVars)&&($.globalVars=new ae(D,$.globalVars))}}function P(D,$){if($)if($.block){var he=P(D,$.prev);return he?he==$.prev?$:new ne(he,$.vars,!0):null}else return H(D,$.vars)?$:new ne($.prev,new ae(D,$.vars),!1);else return null}function z(D){return D=="public"||D=="private"||D=="protected"||D=="abstract"||D=="readonly"}function ne(D,$,he){this.prev=D,this.vars=$,this.block=he}function ae(D,$){this.name=D,this.next=$}var F=new ae("this",new ae("arguments",null));function A(){q.state.context=new ne(q.state.context,q.state.localVars,!1),q.state.localVars=F}function be(){q.state.context=new ne(q.state.context,q.state.localVars,!0),q.state.localVars=null}A.lex=be.lex=!0;function Fe(){q.state.localVars=q.state.context.vars,q.state.context=q.state.context.prev}Fe.lex=!0;function xe(D,$){var he=function(){var De=q.state,ft=De.indented;if(De.lexical.type=="stat")ft=De.lexical.indented;else for(var xt=De.lexical;xt&&xt.type==")"&&xt.align;xt=xt.prev)ft=xt.indented;De.lexical=new V(ft,q.stream.column(),D,null,De.lexical,$)};return he.lex=!0,he}function _e(){var D=q.state;D.lexical.prev&&(D.lexical.type==")"&&(D.indented=D.lexical.indented),D.lexical=D.lexical.prev)}_e.lex=!0;function ze(D){function $(he){return he==D?T():D==";"||he=="}"||he==")"||he=="]"?R():T($)}return $}function qe(D,$){return D=="var"?T(xe("vardef",$),$r,ze(";"),_e):D=="keyword a"?T(xe("form"),at,qe,_e):D=="keyword b"?T(xe("form"),qe,_e):D=="keyword d"?q.stream.match(/^\s*$/,!1)?T():T(xe("stat"),Re,ze(";"),_e):D=="debugger"?T(ze(";")):D=="{"?T(xe("}"),be,Lt,_e,Fe):D==";"?T():D=="if"?(q.state.lexical.info=="else"&&q.state.cc[q.state.cc.length-1]==_e&&q.state.cc.pop()(),T(xe("form"),at,qe,_e,oe)):D=="function"?T(B):D=="for"?T(xe("form"),be,Q,qe,Fe,_e):D=="class"||f&&$=="interface"?(q.marked="keyword",T(xe("form",D=="class"?D:$),Le,_e)):D=="variable"?f&&$=="declare"?(q.marked="keyword",T(qe)):f&&($=="module"||$=="enum"||$=="type")&&q.stream.match(/^\s*\w/,!1)?(q.marked="keyword",$=="enum"?T(tt):$=="type"?T(ce,ze("operator"),rt,ze(";")):T(xe("form"),zt,ze("{"),xe("}"),Lt,_e,_e)):f&&$=="namespace"?(q.marked="keyword",T(xe("form"),ke,qe,_e)):f&&$=="abstract"?(q.marked="keyword",T(qe)):T(xe("stat"),it):D=="switch"?T(xe("form"),at,ze("{"),xe("}","switch"),be,Lt,_e,_e,Fe):D=="case"?T(ke,ze(":")):D=="default"?T(ze(":")):D=="catch"?T(xe("form"),A,ge,qe,_e,Fe):D=="export"?T(xe("stat"),St,_e):D=="import"?T(xe("stat"),G,_e):D=="async"?T(qe):$=="@"?T(ke,qe):R(xe("stat"),ke,ze(";"),_e)}function ge(D){if(D=="(")return T(me,ze(")"))}function ke(D,$){return gt(D,$,!1)}function je(D,$){return gt(D,$,!0)}function at(D){return D!="("?R():T(xe(")"),Re,ze(")"),_e)}function gt(D,$,he){if(q.state.fatArrowAt==q.stream.start){var De=he?Se:Je;if(D=="(")return T(A,xe(")"),We(me,")"),_e,ze("=>"),De,Fe);if(D=="variable")return R(A,zt,ze("=>"),De,Fe)}var ft=he?Be:Ie;return ee.hasOwnProperty(D)?T(ft):D=="function"?T(B,ft):D=="class"||f&&$=="interface"?(q.marked="keyword",T(xe("form"),ve,_e)):D=="keyword c"||D=="async"?T(he?je:ke):D=="("?T(xe(")"),Re,ze(")"),_e,ft):D=="operator"||D=="spread"?T(he?je:ke):D=="["?T(xe("]"),Ye,_e,ft):D=="{"?$t(ot,"}",null,ft):D=="quasi"?R(Ke,ft):D=="new"?T(X(he)):T()}function Re(D){return D.match(/[;\}\)\],]/)?R():R(ke)}function Ie(D,$){return D==","?T(Re):Be(D,$,!1)}function Be(D,$,he){var De=he==!1?Ie:Be,ft=he==!1?ke:je;if(D=="=>")return T(A,he?Se:Je,Fe);if(D=="operator")return/\+\+|--/.test($)||f&&$=="!"?T(De):f&&$=="<"&&q.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?T(xe(">"),We(rt,">"),_e,De):$=="?"?T(ke,ze(":"),ft):T(ft);if(D=="quasi")return R(Ke,De);if(D!=";"){if(D=="(")return $t(je,")","call",De);if(D==".")return T(Ne,De);if(D=="[")return T(xe("]"),Re,ze("]"),_e,De);if(f&&$=="as")return q.marked="keyword",T(rt,De);if(D=="regexp")return q.state.lastType=q.marked="operator",q.stream.backUp(q.stream.pos-q.stream.start-1),T(ft)}}function Ke(D,$){return D!="quasi"?R():$.slice($.length-2)!="${"?T(Ke):T(Re,He)}function He(D){if(D=="}")return q.marked="string-2",q.state.tokenize=O,T(Ke)}function Je(D){return U(q.stream,q.state),R(D=="{"?qe:ke)}function Se(D){return U(q.stream,q.state),R(D=="{"?qe:je)}function X(D){return function($){return $=="."?T(D?ue:de):$=="variable"&&f?T(Ir,D?Be:Ie):R(D?je:ke)}}function de(D,$){if($=="target")return q.marked="keyword",T(Ie)}function ue(D,$){if($=="target")return q.marked="keyword",T(Be)}function it(D){return D==":"?T(_e,qe):R(Ie,ze(";"),_e)}function Ne(D){if(D=="variable")return q.marked="property",T()}function ot(D,$){if(D=="async")return q.marked="property",T(ot);if(D=="variable"||q.style=="keyword"){if(q.marked="property",$=="get"||$=="set")return T(Xe);var he;return f&&q.state.fatArrowAt==q.stream.start&&(he=q.stream.match(/^\s*:\s*/,!1))&&(q.state.fatArrowAt=q.stream.pos+he[0].length),T(et)}else{if(D=="number"||D=="string")return q.marked=d?"property":q.style+" property",T(et);if(D=="jsonld-keyword")return T(et);if(f&&z($))return q.marked="keyword",T(ot);if(D=="[")return T(ke,fr,ze("]"),et);if(D=="spread")return T(je,et);if($=="*")return q.marked="keyword",T(ot);if(D==":")return R(et)}}function Xe(D){return D!="variable"?R(et):(q.marked="property",T(B))}function et(D){if(D==":")return T(je);if(D=="(")return R(B)}function We(D,$,he){function De(ft,xt){if(he?he.indexOf(ft)>-1:ft==","){var Ze=q.state.lexical;return Ze.info=="call"&&(Ze.pos=(Ze.pos||0)+1),T(function(Yt,Fr){return Yt==$||Fr==$?R():R(D)},De)}return ft==$||xt==$?T():he&&he.indexOf(";")>-1?R(D):T(ze($))}return function(ft,xt){return ft==$||xt==$?T():R(D,De)}}function $t(D,$,he){for(var De=3;De"),rt);if(D=="quasi")return R(Vt,Ht)}function wt(D){if(D=="=>")return T(rt)}function dr(D){return D.match(/[\}\)\]]/)?T():D==","||D==";"?T(dr):R(Et,dr)}function Et(D,$){if(D=="variable"||q.style=="keyword")return q.marked="property",T(Et);if($=="?"||D=="number"||D=="string")return T(Et);if(D==":")return T(rt);if(D=="[")return T(ze("variable"),lt,ze("]"),Et);if(D=="(")return R(te,Et);if(!D.match(/[;\}\)\],]/))return T()}function Vt(D,$){return D!="quasi"?R():$.slice($.length-2)!="${"?T(Vt):T(rt,kt)}function kt(D){if(D=="}")return q.marked="string-2",q.state.tokenize=O,T(Vt)}function st(D,$){return D=="variable"&&q.stream.match(/^\s*[?:]/,!1)||$=="?"?T(st):D==":"?T(rt):D=="spread"?T(st):R(rt)}function Ht(D,$){if($=="<")return T(xe(">"),We(rt,">"),_e,Ht);if($=="|"||D=="."||$=="&")return T(rt);if(D=="[")return T(rt,ze("]"),Ht);if($=="extends"||$=="implements")return q.marked="keyword",T(rt);if($=="?")return T(rt,ze(":"),rt)}function Ir(D,$){if($=="<")return T(xe(">"),We(rt,">"),_e,Ht)}function hr(){return R(rt,pr)}function pr(D,$){if($=="=")return T(rt)}function $r(D,$){return $=="enum"?(q.marked="keyword",T(tt)):R(zt,fr,Qt,ie)}function zt(D,$){if(f&&z($))return q.marked="keyword",T(zt);if(D=="variable")return Z($),T();if(D=="spread")return T(zt);if(D=="[")return $t(ur,"]");if(D=="{")return $t(yr,"}")}function yr(D,$){return D=="variable"&&!q.stream.match(/^\s*:/,!1)?(Z($),T(Qt)):(D=="variable"&&(q.marked="property"),D=="spread"?T(zt):D=="}"?R():D=="["?T(ke,ze("]"),ze(":"),yr):T(ze(":"),zt,Qt))}function ur(){return R(zt,Qt)}function Qt(D,$){if($=="=")return T(je)}function ie(D){if(D==",")return T($r)}function oe(D,$){if(D=="keyword b"&&$=="else")return T(xe("form","else"),qe,_e)}function Q(D,$){if($=="await")return T(Q);if(D=="(")return T(xe(")"),re,_e)}function re(D){return D=="var"?T($r,M):D=="variable"?T(M):R(M)}function M(D,$){return D==")"?T():D==";"?T(M):$=="in"||$=="of"?(q.marked="keyword",T(ke,M)):R(ke,M)}function B(D,$){if($=="*")return q.marked="keyword",T(B);if(D=="variable")return Z($),T(B);if(D=="(")return T(A,xe(")"),We(me,")"),_e,Mt,qe,Fe);if(f&&$=="<")return T(xe(">"),We(hr,">"),_e,B)}function te(D,$){if($=="*")return q.marked="keyword",T(te);if(D=="variable")return Z($),T(te);if(D=="(")return T(A,xe(")"),We(me,")"),_e,Mt,Fe);if(f&&$=="<")return T(xe(">"),We(hr,">"),_e,te)}function ce(D,$){if(D=="keyword"||D=="variable")return q.marked="type",T(ce);if($=="<")return T(xe(">"),We(hr,">"),_e)}function me(D,$){return $=="@"&&T(ke,me),D=="spread"?T(me):f&&z($)?(q.marked="keyword",T(me)):f&&D=="this"?T(fr,Qt):R(zt,fr,Qt)}function ve(D,$){return D=="variable"?Le(D,$):Oe(D,$)}function Le(D,$){if(D=="variable")return Z($),T(Oe)}function Oe(D,$){if($=="<")return T(xe(">"),We(hr,">"),_e,Oe);if($=="extends"||$=="implements"||f&&D==",")return $=="implements"&&(q.marked="keyword"),T(f?rt:ke,Oe);if(D=="{")return T(xe("}"),Ce,_e)}function Ce(D,$){if(D=="async"||D=="variable"&&($=="static"||$=="get"||$=="set"||f&&z($))&&q.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return q.marked="keyword",T(Ce);if(D=="variable"||q.style=="keyword")return q.marked="property",T(Ve,Ce);if(D=="number"||D=="string")return T(Ve,Ce);if(D=="[")return T(ke,fr,ze("]"),Ve,Ce);if($=="*")return q.marked="keyword",T(Ce);if(f&&D=="(")return R(te,Ce);if(D==";"||D==",")return T(Ce);if(D=="}")return T();if($=="@")return T(ke,Ce)}function Ve(D,$){if($=="!"||$=="?")return T(Ve);if(D==":")return T(rt,Qt);if($=="=")return T(je);var he=q.state.lexical.prev,De=he&&he.info=="interface";return R(De?te:B)}function St(D,$){return $=="*"?(q.marked="keyword",T(Ae,ze(";"))):$=="default"?(q.marked="keyword",T(ke,ze(";"))):D=="{"?T(We(mt,"}"),Ae,ze(";")):R(qe)}function mt(D,$){if($=="as")return q.marked="keyword",T(ze("variable"));if(D=="variable")return R(je,mt)}function G(D){return D=="string"?T():D=="("?R(ke):D=="."?R(Ie):R(se,pe,Ae)}function se(D,$){return D=="{"?$t(se,"}"):(D=="variable"&&Z($),$=="*"&&(q.marked="keyword"),T(Te))}function pe(D){if(D==",")return T(se,pe)}function Te(D,$){if($=="as")return q.marked="keyword",T(se)}function Ae(D,$){if($=="from")return q.marked="keyword",T(ke)}function Ye(D){return D=="]"?T():R(We(je,"]"))}function tt(){return R(xe("form"),zt,ze("{"),xe("}"),We(bt,"}"),_e,_e)}function bt(){return R(zt,Qt)}function Dt(D,$){return D.lastType=="operator"||D.lastType==","||m.test($.charAt(0))||/[,.]/.test($.charAt(0))}function we(D,$,he){return $.tokenize==I&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test($.lastType)||$.lastType=="quasi"&&/\{\s*$/.test(D.string.slice(0,D.pos-(he||0)))}return{startState:function(D){var $={tokenize:I,lastType:"sof",cc:[],lexical:new V((D||0)-l,0,"block",!1),localVars:n.localVars,context:n.localVars&&new ne(null,null,!1),indented:D||0};return n.globalVars&&typeof n.globalVars=="object"&&($.globalVars=n.globalVars),$},token:function(D,$){if(D.sol()&&($.lexical.hasOwnProperty("align")||($.lexical.align=!1),$.indented=D.indentation(),U(D,$)),$.tokenize!=N&&D.eatSpace())return null;var he=$.tokenize(D,$);return k=="comment"?he:($.lastType=k=="operator"&&(E=="++"||E=="--")?"incdec":k,K($,he,k,E,D))},indent:function(D,$){if(D.tokenize==N||D.tokenize==O)return i.Pass;if(D.tokenize!=I)return 0;var he=$&&$.charAt(0),De=D.lexical,ft;if(!/^\s*else\b/.test($))for(var xt=D.cc.length-1;xt>=0;--xt){var Ze=D.cc[xt];if(Ze==_e)De=De.prev;else if(Ze!=oe&&Ze!=Fe)break}for(;(De.type=="stat"||De.type=="form")&&(he=="}"||(ft=D.cc[D.cc.length-1])&&(ft==Ie||ft==Be)&&!/^[,\.=+\-*:?[\(]/.test($));)De=De.prev;c&&De.type==")"&&De.prev.type=="stat"&&(De=De.prev);var Yt=De.type,Fr=he==Yt;return Yt=="vardef"?De.indented+(D.lastType=="operator"||D.lastType==","?De.info.length+1:0):Yt=="form"&&he=="{"?De.indented:Yt=="form"?De.indented+l:Yt=="stat"?De.indented+(Dt(D,$)?c||l:0):De.info=="switch"&&!Fr&&n.doubleIndentSwitch!=!1?De.indented+(/^(?:case|default)\b/.test($)?l:2*l):De.align?De.column+(Fr?0:1):De.indented+(Fr?0:l)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:o?null:"/*",blockCommentEnd:o?null:"*/",blockCommentContinue:o?null:" * ",lineComment:o?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:o?"json":"javascript",jsonldMode:d,jsonMode:o,expressionAllowed:we,skipExpression:function(D){K(D,"atom","atom","true",new i.StringStream("",2,null))}}}),i.registerHelper("wordChars","javascript",/[\w$]/),i.defineMIME("text/javascript","javascript"),i.defineMIME("text/ecmascript","javascript"),i.defineMIME("application/javascript","javascript"),i.defineMIME("application/x-javascript","javascript"),i.defineMIME("application/ecmascript","javascript"),i.defineMIME("application/json",{name:"javascript",json:!0}),i.defineMIME("application/x-json",{name:"javascript",json:!0}),i.defineMIME("application/manifest+json",{name:"javascript",json:!0}),i.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),i.defineMIME("text/typescript",{name:"javascript",typescript:!0}),i.defineMIME("application/typescript",{name:"javascript",typescript:!0})})});var nl=Me((nd,id)=>{(function(i){typeof nd=="object"&&typeof id=="object"?i(Tt(),wa(),rl(),el()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],i):i(CodeMirror)})(function(i){"use strict";var t={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function n(p,y,m){var v=p.current(),b=v.search(y);return b>-1?p.backUp(v.length-b):v.match(/<\/?$/)&&(p.backUp(v.length),p.match(y,!1)||p.match(v)),m}var l={};function c(p){var y=l[p];return y||(l[p]=new RegExp("\\s+"+p+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function d(p,y){var m=p.match(c(y));return m?/^\s*(.*?)\s*$/.exec(m[2])[1]:""}function o(p,y){return new RegExp((y?"^":"")+"","i")}function h(p,y){for(var m in p)for(var v=y[m]||(y[m]=[]),b=p[m],k=b.length-1;k>=0;k--)v.unshift(b[k])}function f(p,y){for(var m=0;m=0;E--)v.script.unshift(["type",k[E].matches,k[E].mode]);function w(I,S){var N=m.token(I,S.htmlState),O=/\btag\b/.test(N),j;if(O&&!/[<>\s\/]/.test(I.current())&&(j=S.htmlState.tagName&&S.htmlState.tagName.toLowerCase())&&v.hasOwnProperty(j))S.inTag=j+" ";else if(S.inTag&&O&&/>$/.test(I.current())){var U=/^([\S]+) (.*)/.exec(S.inTag);S.inTag=null;var ee=I.current()==">"&&f(v[U[1]],U[2]),V=i.getMode(p,ee),W=o(U[1],!0),K=o(U[1],!1);S.token=function(q,R){return q.match(W,!1)?(R.token=w,R.localState=R.localMode=null,null):n(q,K,R.localMode.token(q,R.localState))},S.localMode=V,S.localState=i.startState(V,m.indent(S.htmlState,"",""))}else S.inTag&&(S.inTag+=I.current(),I.eol()&&(S.inTag+=" "));return N}return{startState:function(){var I=i.startState(m);return{token:w,inTag:null,localMode:null,localState:null,htmlState:I}},copyState:function(I){var S;return I.localState&&(S=i.copyState(I.localMode,I.localState)),{token:I.token,inTag:I.inTag,localMode:I.localMode,localState:S,htmlState:i.copyState(m,I.htmlState)}},token:function(I,S){return S.token(I,S)},indent:function(I,S,N){return!I.localMode||/^\s*<\//.test(S)?m.indent(I.htmlState,S,N):I.localMode.indent?I.localMode.indent(I.localState,S,N):i.Pass},innerMode:function(I){return{state:I.localState||I.htmlState,mode:I.localMode||m}}}},"xml","javascript","css"),i.defineMIME("text/html","htmlmixed")})});var sd=Me((od,ad)=>{(function(i){typeof od=="object"&&typeof ad=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("julia",function(t,n){function l(ae,F,A){return typeof A=="undefined"&&(A=""),typeof F=="undefined"&&(F="\\b"),new RegExp("^"+A+"(("+ae.join(")|(")+"))"+F)}var c="\\\\[0-7]{1,3}",d="\\\\x[A-Fa-f0-9]{1,2}",o=`\\\\[abefnrtv0%?'"\\\\]`,h="([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])",f=["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","\\.{2,3}","[\\.\\\\%*+\\-<>!\\/^|&]=?","\\?","\\$","~",":"],p=n.operators||l(["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],""),y=n.delimiters||/^[;,()[\]{}]/,m=n.identifiers||/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,v=l([c,d,o,h],"'"),b=["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"],k=["end","else","elseif","catch","finally"],E=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"],w=["true","false","nothing","NaN","Inf"];i.registerHelper("hintWords","julia",E.concat(w));var I=l(b),S=l(k),N=l(E),O=l(w),j=/^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,U=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,ee=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/,V=l(f,"","@"),W=l(f,"",":");function K(ae){return ae.nestedArrays>0}function q(ae){return ae.nestedGenerators>0}function R(ae,F){return typeof F=="undefined"&&(F=0),ae.scopes.length<=F?null:ae.scopes[ae.scopes.length-(F+1)]}function T(ae,F){if(ae.match("#=",!1))return F.tokenize=Z,F.tokenize(ae,F);var A=F.leavingExpr;if(ae.sol()&&(A=!1),F.leavingExpr=!1,A&&ae.match(/^'+/))return"operator";if(ae.match(/\.{4,}/))return"error";if(ae.match(/\.{1,3}/))return"operator";if(ae.eatSpace())return null;var be=ae.peek();if(be==="#")return ae.skipToEnd(),"comment";if(be==="["&&(F.scopes.push("["),F.nestedArrays++),be==="("&&(F.scopes.push("("),F.nestedGenerators++),K(F)&&be==="]"){for(;F.scopes.length&&R(F)!=="[";)F.scopes.pop();F.scopes.pop(),F.nestedArrays--,F.leavingExpr=!0}if(q(F)&&be===")"){for(;F.scopes.length&&R(F)!=="(";)F.scopes.pop();F.scopes.pop(),F.nestedGenerators--,F.leavingExpr=!0}if(K(F)){if(F.lastToken=="end"&&ae.match(":"))return"operator";if(ae.match("end"))return"number"}var Fe;if((Fe=ae.match(I,!1))&&F.scopes.push(Fe[0]),ae.match(S,!1)&&F.scopes.pop(),ae.match(/^::(?![:\$])/))return F.tokenize=H,F.tokenize(ae,F);if(!A&&(ae.match(U)||ae.match(W)))return"builtin";if(ae.match(p))return"operator";if(ae.match(/^\.?\d/,!1)){var xe=RegExp(/^im\b/),_e=!1;if(ae.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(_e=!0),ae.match(/^0x[0-9a-f_]+/i)&&(_e=!0),ae.match(/^0b[01_]+/i)&&(_e=!0),ae.match(/^0o[0-7_]+/i)&&(_e=!0),ae.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(_e=!0),ae.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(_e=!0),_e)return ae.match(xe),F.leavingExpr=!0,"number"}if(ae.match("'"))return F.tokenize=P,F.tokenize(ae,F);if(ae.match(ee))return F.tokenize=z(ae.current()),F.tokenize(ae,F);if(ae.match(j)||ae.match(V))return"meta";if(ae.match(y))return null;if(ae.match(N))return"keyword";if(ae.match(O))return"builtin";var ze=F.isDefinition||F.lastToken=="function"||F.lastToken=="macro"||F.lastToken=="type"||F.lastToken=="struct"||F.lastToken=="immutable";return ae.match(m)?ze?ae.peek()==="."?(F.isDefinition=!0,"variable"):(F.isDefinition=!1,"def"):(F.leavingExpr=!0,"variable"):(ae.next(),"error")}function H(ae,F){return ae.match(/.*?(?=[,;{}()=\s]|$)/),ae.match("{")?F.nestedParameters++:ae.match("}")&&F.nestedParameters>0&&F.nestedParameters--,F.nestedParameters>0?ae.match(/.*?(?={|})/)||ae.next():F.nestedParameters==0&&(F.tokenize=T),"builtin"}function Z(ae,F){return ae.match("#=")&&F.nestedComments++,ae.match(/.*?(?=(#=|=#))/)||ae.skipToEnd(),ae.match("=#")&&(F.nestedComments--,F.nestedComments==0&&(F.tokenize=T)),"comment"}function P(ae,F){var A=!1,be;if(ae.match(v))A=!0;else if(be=ae.match(/\\u([a-f0-9]{1,4})(?=')/i)){var Fe=parseInt(be[1],16);(Fe<=55295||Fe>=57344)&&(A=!0,ae.next())}else if(be=ae.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var Fe=parseInt(be[1],16);Fe<=1114111&&(A=!0,ae.next())}return A?(F.leavingExpr=!0,F.tokenize=T,"string"):(ae.match(/^[^']+(?=')/)||ae.skipToEnd(),ae.match("'")&&(F.tokenize=T),"error")}function z(ae){ae.substr(-3)==='"""'?ae='"""':ae.substr(-1)==='"'&&(ae='"');function F(A,be){if(A.eat("\\"))A.next();else{if(A.match(ae))return be.tokenize=T,be.leavingExpr=!0,"string";A.eat(/[`"]/)}return A.eatWhile(/[^\\`"]/),"string"}return F}var ne={startState:function(){return{tokenize:T,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(ae,F){var A=F.tokenize(ae,F),be=ae.current();return be&&A&&(F.lastToken=be),A},indent:function(ae,F){var A=0;return(F==="]"||F===")"||/^end\b/.test(F)||/^else/.test(F)||/^catch\b/.test(F)||/^elseif\b/.test(F)||/^finally/.test(F))&&(A=-1),(ae.scopes.length+A)*t.indentUnit},electricInput:/\b(end|else|catch|finally)\b/,blockCommentStart:"#=",blockCommentEnd:"=#",lineComment:"#",closeBrackets:'()[]{}""',fold:"indent"};return ne}),i.defineMIME("text/x-julia","julia")})});var cd=Me((ld,ud)=>{(function(i){typeof ld=="object"&&typeof ud=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("lua",function(t,n){var l=t.indentUnit;function c(w){return new RegExp("^(?:"+w.join("|")+")","i")}function d(w){return new RegExp("^(?:"+w.join("|")+")$","i")}var o=d(n.specials||[]),h=d(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),f=d(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),p=d(["function","if","repeat","do","\\(","{"]),y=d(["end","until","\\)","}"]),m=c(["end","until","\\)","}","else","elseif"]);function v(w){for(var I=0;w.eat("=");)++I;return w.eat("["),I}function b(w,I){var S=w.next();return S=="-"&&w.eat("-")?w.eat("[")&&w.eat("[")?(I.cur=k(v(w),"comment"))(w,I):(w.skipToEnd(),"comment"):S=='"'||S=="'"?(I.cur=E(S))(w,I):S=="["&&/[\[=]/.test(w.peek())?(I.cur=k(v(w),"string"))(w,I):/\d/.test(S)?(w.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(S)?(w.eatWhile(/[\w\\\-_.]/),"variable"):null}function k(w,I){return function(S,N){for(var O=null,j;(j=S.next())!=null;)if(O==null)j=="]"&&(O=0);else if(j=="=")++O;else if(j=="]"&&O==w){N.cur=b;break}else O=null;return I}}function E(w){return function(I,S){for(var N=!1,O;(O=I.next())!=null&&!(O==w&&!N);)N=!N&&O=="\\";return N||(S.cur=b),"string"}}return{startState:function(w){return{basecol:w||0,indentDepth:0,cur:b}},token:function(w,I){if(w.eatSpace())return null;var S=I.cur(w,I),N=w.current();return S=="variable"&&(f.test(N)?S="keyword":h.test(N)?S="builtin":o.test(N)&&(S="variable-2")),S!="comment"&&S!="string"&&(p.test(N)?++I.indentDepth:y.test(N)&&--I.indentDepth),S},indent:function(w,I){var S=m.test(I);return w.basecol+l*(w.indentDepth-(S?1:0))},electricInput:/^\s*(?:end|until|else|\)|\})$/,lineComment:"--",blockCommentStart:"--[[",blockCommentEnd:"]]"}}),i.defineMIME("text/x-lua","lua")})});var hd=Me((fd,dd)=>{(function(i){typeof fd=="object"&&typeof dd=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var t=0;t-1&&l.substring(o+1,l.length);if(h)return i.findModeByExtension(h)},i.findModeByName=function(l){l=l.toLowerCase();for(var c=0;c{(function(i){typeof pd=="object"&&typeof md=="object"?i(Tt(),wa(),hd()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../meta"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("markdown",function(t,n){var l=i.getMode(t,"text/html"),c=l.name=="null";function d(F){if(i.findModeByName){var A=i.findModeByName(F);A&&(F=A.mime||A.mimes[0])}var be=i.getMode(t,F);return be.name=="null"?null:be}n.highlightFormatting===void 0&&(n.highlightFormatting=!1),n.maxBlockquoteDepth===void 0&&(n.maxBlockquoteDepth=0),n.taskLists===void 0&&(n.taskLists=!1),n.strikethrough===void 0&&(n.strikethrough=!1),n.emoji===void 0&&(n.emoji=!1),n.fencedCodeBlockHighlighting===void 0&&(n.fencedCodeBlockHighlighting=!0),n.fencedCodeBlockDefaultMode===void 0&&(n.fencedCodeBlockDefaultMode="text/plain"),n.xml===void 0&&(n.xml=!0),n.tokenTypeOverrides===void 0&&(n.tokenTypeOverrides={});var o={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var h in o)o.hasOwnProperty(h)&&n.tokenTypeOverrides[h]&&(o[h]=n.tokenTypeOverrides[h]);var f=/^([*\-_])(?:\s*\1){2,}\s*$/,p=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,y=/^\[(x| )\](?=\s)/i,m=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,v=/^ {0,3}(?:\={1,}|-{2,})\s*$/,b=/^[^#!\[\]*_\\<>` "'(~:]+/,k=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,E=/^\s*\[[^\]]+?\]:.*$/,w=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,I=" ";function S(F,A,be){return A.f=A.inline=be,be(F,A)}function N(F,A,be){return A.f=A.block=be,be(F,A)}function O(F){return!F||!/\S/.test(F.string)}function j(F){if(F.linkTitle=!1,F.linkHref=!1,F.linkText=!1,F.em=!1,F.strong=!1,F.strikethrough=!1,F.quote=0,F.indentedCode=!1,F.f==ee){var A=c;if(!A){var be=i.innerMode(l,F.htmlState);A=be.mode.name=="xml"&&be.state.tagStart===null&&!be.state.context&&be.state.tokenize.isInText}A&&(F.f=q,F.block=U,F.htmlState=null)}return F.trailingSpace=0,F.trailingSpaceNewLine=!1,F.prevLine=F.thisLine,F.thisLine={stream:null},null}function U(F,A){var be=F.column()===A.indentation,Fe=O(A.prevLine.stream),xe=A.indentedCode,_e=A.prevLine.hr,ze=A.list!==!1,qe=(A.listStack[A.listStack.length-1]||0)+3;A.indentedCode=!1;var ge=A.indentation;if(A.indentationDiff===null&&(A.indentationDiff=A.indentation,ze)){for(A.list=null;ge=4&&(xe||A.prevLine.fencedCodeEnd||A.prevLine.header||Fe))return F.skipToEnd(),A.indentedCode=!0,o.code;if(F.eatSpace())return null;if(be&&A.indentation<=qe&&(at=F.match(m))&&at[1].length<=6)return A.quote=0,A.header=at[1].length,A.thisLine.header=!0,n.highlightFormatting&&(A.formatting="header"),A.f=A.inline,W(A);if(A.indentation<=qe&&F.eat(">"))return A.quote=be?1:A.quote+1,n.highlightFormatting&&(A.formatting="quote"),F.eatSpace(),W(A);if(!je&&!A.setext&&be&&A.indentation<=qe&&(at=F.match(p))){var gt=at[1]?"ol":"ul";return A.indentation=ge+F.current().length,A.list=!0,A.quote=0,A.listStack.push(A.indentation),A.em=!1,A.strong=!1,A.code=!1,A.strikethrough=!1,n.taskLists&&F.match(y,!1)&&(A.taskList=!0),A.f=A.inline,n.highlightFormatting&&(A.formatting=["list","list-"+gt]),W(A)}else{if(be&&A.indentation<=qe&&(at=F.match(k,!0)))return A.quote=0,A.fencedEndRE=new RegExp(at[1]+"+ *$"),A.localMode=n.fencedCodeBlockHighlighting&&d(at[2]||n.fencedCodeBlockDefaultMode),A.localMode&&(A.localState=i.startState(A.localMode)),A.f=A.block=V,n.highlightFormatting&&(A.formatting="code-block"),A.code=-1,W(A);if(A.setext||(!ke||!ze)&&!A.quote&&A.list===!1&&!A.code&&!je&&!E.test(F.string)&&(at=F.lookAhead(1))&&(at=at.match(v)))return A.setext?(A.header=A.setext,A.setext=0,F.skipToEnd(),n.highlightFormatting&&(A.formatting="header")):(A.header=at[0].charAt(0)=="="?1:2,A.setext=A.header),A.thisLine.header=!0,A.f=A.inline,W(A);if(je)return F.skipToEnd(),A.hr=!0,A.thisLine.hr=!0,o.hr;if(F.peek()==="[")return S(F,A,P)}return S(F,A,A.inline)}function ee(F,A){var be=l.token(F,A.htmlState);if(!c){var Fe=i.innerMode(l,A.htmlState);(Fe.mode.name=="xml"&&Fe.state.tagStart===null&&!Fe.state.context&&Fe.state.tokenize.isInText||A.md_inside&&F.current().indexOf(">")>-1)&&(A.f=q,A.block=U,A.htmlState=null)}return be}function V(F,A){var be=A.listStack[A.listStack.length-1]||0,Fe=A.indentation=F.quote?A.push(o.formatting+"-"+F.formatting[be]+"-"+F.quote):A.push("error"))}if(F.taskOpen)return A.push("meta"),A.length?A.join(" "):null;if(F.taskClosed)return A.push("property"),A.length?A.join(" "):null;if(F.linkHref?A.push(o.linkHref,"url"):(F.strong&&A.push(o.strong),F.em&&A.push(o.em),F.strikethrough&&A.push(o.strikethrough),F.emoji&&A.push(o.emoji),F.linkText&&A.push(o.linkText),F.code&&A.push(o.code),F.image&&A.push(o.image),F.imageAltText&&A.push(o.imageAltText,"link"),F.imageMarker&&A.push(o.imageMarker)),F.header&&A.push(o.header,o.header+"-"+F.header),F.quote&&(A.push(o.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=F.quote?A.push(o.quote+"-"+F.quote):A.push(o.quote+"-"+n.maxBlockquoteDepth)),F.list!==!1){var Fe=(F.listStack.length-1)%3;Fe?Fe===1?A.push(o.list2):A.push(o.list3):A.push(o.list1)}return F.trailingSpaceNewLine?A.push("trailing-space-new-line"):F.trailingSpace&&A.push("trailing-space-"+(F.trailingSpace%2?"a":"b")),A.length?A.join(" "):null}function K(F,A){if(F.match(b,!0))return W(A)}function q(F,A){var be=A.text(F,A);if(typeof be!="undefined")return be;if(A.list)return A.list=null,W(A);if(A.taskList){var Fe=F.match(y,!0)[1]===" ";return Fe?A.taskOpen=!0:A.taskClosed=!0,n.highlightFormatting&&(A.formatting="task"),A.taskList=!1,W(A)}if(A.taskOpen=!1,A.taskClosed=!1,A.header&&F.match(/^#+$/,!0))return n.highlightFormatting&&(A.formatting="header"),W(A);var xe=F.next();if(A.linkTitle){A.linkTitle=!1;var _e=xe;xe==="("&&(_e=")"),_e=(_e+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ze="^\\s*(?:[^"+_e+"\\\\]+|\\\\\\\\|\\\\.)"+_e;if(F.match(new RegExp(ze),!0))return o.linkHref}if(xe==="`"){var qe=A.formatting;n.highlightFormatting&&(A.formatting="code"),F.eatWhile("`");var ge=F.current().length;if(A.code==0&&(!A.quote||ge==1))return A.code=ge,W(A);if(ge==A.code){var ke=W(A);return A.code=0,ke}else return A.formatting=qe,W(A)}else if(A.code)return W(A);if(xe==="\\"&&(F.next(),n.highlightFormatting)){var je=W(A),at=o.formatting+"-escape";return je?je+" "+at:at}if(xe==="!"&&F.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return A.imageMarker=!0,A.image=!0,n.highlightFormatting&&(A.formatting="image"),W(A);if(xe==="["&&A.imageMarker&&F.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return A.imageMarker=!1,A.imageAltText=!0,n.highlightFormatting&&(A.formatting="image"),W(A);if(xe==="]"&&A.imageAltText){n.highlightFormatting&&(A.formatting="image");var je=W(A);return A.imageAltText=!1,A.image=!1,A.inline=A.f=T,je}if(xe==="["&&!A.image)return A.linkText&&F.match(/^.*?\]/)||(A.linkText=!0,n.highlightFormatting&&(A.formatting="link")),W(A);if(xe==="]"&&A.linkText){n.highlightFormatting&&(A.formatting="link");var je=W(A);return A.linkText=!1,A.inline=A.f=F.match(/\(.*?\)| ?\[.*?\]/,!1)?T:q,je}if(xe==="<"&&F.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){A.f=A.inline=R,n.highlightFormatting&&(A.formatting="link");var je=W(A);return je?je+=" ":je="",je+o.linkInline}if(xe==="<"&&F.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){A.f=A.inline=R,n.highlightFormatting&&(A.formatting="link");var je=W(A);return je?je+=" ":je="",je+o.linkEmail}if(n.xml&&xe==="<"&&F.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var gt=F.string.indexOf(">",F.pos);if(gt!=-1){var Re=F.string.substring(F.start,gt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Re)&&(A.md_inside=!0)}return F.backUp(1),A.htmlState=i.startState(l),N(F,A,ee)}if(n.xml&&xe==="<"&&F.match(/^\/\w*?>/))return A.md_inside=!1,"tag";if(xe==="*"||xe==="_"){for(var Ie=1,Be=F.pos==1?" ":F.string.charAt(F.pos-2);Ie<3&&F.eat(xe);)Ie++;var Ke=F.peek()||" ",He=!/\s/.test(Ke)&&(!w.test(Ke)||/\s/.test(Be)||w.test(Be)),Je=!/\s/.test(Be)&&(!w.test(Be)||/\s/.test(Ke)||w.test(Ke)),Se=null,X=null;if(Ie%2&&(!A.em&&He&&(xe==="*"||!Je||w.test(Be))?Se=!0:A.em==xe&&Je&&(xe==="*"||!He||w.test(Ke))&&(Se=!1)),Ie>1&&(!A.strong&&He&&(xe==="*"||!Je||w.test(Be))?X=!0:A.strong==xe&&Je&&(xe==="*"||!He||w.test(Ke))&&(X=!1)),X!=null||Se!=null){n.highlightFormatting&&(A.formatting=Se==null?"strong":X==null?"em":"strong em"),Se===!0&&(A.em=xe),X===!0&&(A.strong=xe);var ke=W(A);return Se===!1&&(A.em=!1),X===!1&&(A.strong=!1),ke}}else if(xe===" "&&(F.eat("*")||F.eat("_"))){if(F.peek()===" ")return W(A);F.backUp(1)}if(n.strikethrough){if(xe==="~"&&F.eatWhile(xe)){if(A.strikethrough){n.highlightFormatting&&(A.formatting="strikethrough");var ke=W(A);return A.strikethrough=!1,ke}else if(F.match(/^[^\s]/,!1))return A.strikethrough=!0,n.highlightFormatting&&(A.formatting="strikethrough"),W(A)}else if(xe===" "&&F.match("~~",!0)){if(F.peek()===" ")return W(A);F.backUp(2)}}if(n.emoji&&xe===":"&&F.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){A.emoji=!0,n.highlightFormatting&&(A.formatting="emoji");var de=W(A);return A.emoji=!1,de}return xe===" "&&(F.match(/^ +$/,!1)?A.trailingSpace++:A.trailingSpace&&(A.trailingSpaceNewLine=!0)),W(A)}function R(F,A){var be=F.next();if(be===">"){A.f=A.inline=q,n.highlightFormatting&&(A.formatting="link");var Fe=W(A);return Fe?Fe+=" ":Fe="",Fe+o.linkInline}return F.match(/^[^>]+/,!0),o.linkInline}function T(F,A){if(F.eatSpace())return null;var be=F.next();return be==="("||be==="["?(A.f=A.inline=Z(be==="("?")":"]"),n.highlightFormatting&&(A.formatting="link-string"),A.linkHref=!0,W(A)):"error"}var H={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Z(F){return function(A,be){var Fe=A.next();if(Fe===F){be.f=be.inline=q,n.highlightFormatting&&(be.formatting="link-string");var xe=W(be);return be.linkHref=!1,xe}return A.match(H[F]),be.linkHref=!0,W(be)}}function P(F,A){return F.match(/^([^\]\\]|\\.)*\]:/,!1)?(A.f=z,F.next(),n.highlightFormatting&&(A.formatting="link"),A.linkText=!0,W(A)):S(F,A,q)}function z(F,A){if(F.match("]:",!0)){A.f=A.inline=ne,n.highlightFormatting&&(A.formatting="link");var be=W(A);return A.linkText=!1,be}return F.match(/^([^\]\\]|\\.)+/,!0),o.linkText}function ne(F,A){return F.eatSpace()?null:(F.match(/^[^\s]+/,!0),F.peek()===void 0?A.linkTitle=!0:F.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),A.f=A.inline=q,o.linkHref+" url")}var ae={startState:function(){return{f:U,prevLine:{stream:null},thisLine:{stream:null},block:U,htmlState:null,indentation:0,inline:q,text:K,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(F){return{f:F.f,prevLine:F.prevLine,thisLine:F.thisLine,block:F.block,htmlState:F.htmlState&&i.copyState(l,F.htmlState),indentation:F.indentation,localMode:F.localMode,localState:F.localMode?i.copyState(F.localMode,F.localState):null,inline:F.inline,text:F.text,formatting:!1,linkText:F.linkText,linkTitle:F.linkTitle,linkHref:F.linkHref,code:F.code,em:F.em,strong:F.strong,strikethrough:F.strikethrough,emoji:F.emoji,header:F.header,setext:F.setext,hr:F.hr,taskList:F.taskList,list:F.list,listStack:F.listStack.slice(0),quote:F.quote,indentedCode:F.indentedCode,trailingSpace:F.trailingSpace,trailingSpaceNewLine:F.trailingSpaceNewLine,md_inside:F.md_inside,fencedEndRE:F.fencedEndRE}},token:function(F,A){if(A.formatting=!1,F!=A.thisLine.stream){if(A.header=0,A.hr=!1,F.match(/^\s*$/,!0))return j(A),null;if(A.prevLine=A.thisLine,A.thisLine={stream:F},A.taskList=!1,A.trailingSpace=0,A.trailingSpaceNewLine=!1,!A.localState&&(A.f=A.block,A.f!=ee)){var be=F.match(/^\s*/,!0)[0].replace(/\t/g,I).length;if(A.indentation=be,A.indentationDiff=null,be>0)return null}}return A.f(F,A)},innerMode:function(F){return F.block==ee?{state:F.htmlState,mode:l}:F.localState?{state:F.localState,mode:F.localMode}:{state:F,mode:ae}},indent:function(F,A,be){return F.block==ee&&l.indent?l.indent(F.htmlState,A,be):F.localState&&F.localMode.indent?F.localMode.indent(F.localState,A,be):i.Pass},blankLine:j,getType:W,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ae},"xml"),i.defineMIME("text/markdown","markdown"),i.defineMIME("text/x-markdown","markdown")})});var bd=Me((vd,yd)=>{(function(i){typeof vd=="object"&&typeof yd=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("mllike",function(t,n){var l={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"},c=n.extraWords||{};for(var d in c)c.hasOwnProperty(d)&&(l[d]=n.extraWords[d]);var o=[];for(var h in l)o.push(h);i.registerHelper("hintWords","mllike",o);function f(v,b){var k=v.next();if(k==='"')return b.tokenize=p,b.tokenize(v,b);if(k==="{"&&v.eat("|"))return b.longString=!0,b.tokenize=m,b.tokenize(v,b);if(k==="("&&v.match(/^\*(?!\))/))return b.commentLevel++,b.tokenize=y,b.tokenize(v,b);if(k==="~"||k==="?")return v.eatWhile(/\w/),"variable-2";if(k==="`")return v.eatWhile(/\w/),"quote";if(k==="/"&&n.slashComments&&v.eat("/"))return v.skipToEnd(),"comment";if(/\d/.test(k))return k==="0"&&v.eat(/[bB]/)&&v.eatWhile(/[01]/),k==="0"&&v.eat(/[xX]/)&&v.eatWhile(/[0-9a-fA-F]/),k==="0"&&v.eat(/[oO]/)?v.eatWhile(/[0-7]/):(v.eatWhile(/[\d_]/),v.eat(".")&&v.eatWhile(/[\d]/),v.eat(/[eE]/)&&v.eatWhile(/[\d\-+]/)),"number";if(/[+\-*&%=<>!?|@\.~:]/.test(k))return"operator";if(/[\w\xa1-\uffff]/.test(k)){v.eatWhile(/[\w\xa1-\uffff]/);var E=v.current();return l.hasOwnProperty(E)?l[E]:"variable"}return null}function p(v,b){for(var k,E=!1,w=!1;(k=v.next())!=null;){if(k==='"'&&!w){E=!0;break}w=!w&&k==="\\"}return E&&!w&&(b.tokenize=f),"string"}function y(v,b){for(var k,E;b.commentLevel>0&&(E=v.next())!=null;)k==="("&&E==="*"&&b.commentLevel++,k==="*"&&E===")"&&b.commentLevel--,k=E;return b.commentLevel<=0&&(b.tokenize=f),"comment"}function m(v,b){for(var k,E;b.longString&&(E=v.next())!=null;)k==="|"&&E==="}"&&(b.longString=!1),k=E;return b.longString||(b.tokenize=f),"string"}return{startState:function(){return{tokenize:f,commentLevel:0,longString:!1}},token:function(v,b){return v.eatSpace()?null:b.tokenize(v,b)},blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:n.slashComments?"//":null}}),i.defineMIME("text/x-ocaml",{name:"mllike",extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}}),i.defineMIME("text/x-fsharp",{name:"mllike",extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:!0}),i.defineMIME("text/x-sml",{name:"mllike",extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:!0})})});var kd=Me((xd,wd)=>{(function(i){typeof xd=="object"&&typeof wd=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("nginx",function(t){function n(b){for(var k={},E=b.split(" "),w=0;w*\/]/.test(w)?f(null,"select-op"):/[;{}:\[\]]/.test(w)?f(null,w):(b.eatWhile(/[\w\\\-]/),f("variable","variable"))}function y(b,k){for(var E=!1,w;(w=b.next())!=null;){if(E&&w=="/"){k.tokenize=p;break}E=w=="*"}return f("comment","comment")}function m(b,k){for(var E=0,w;(w=b.next())!=null;){if(E>=2&&w==">"){k.tokenize=p;break}E=w=="-"?E+1:0}return f("comment","comment")}function v(b){return function(k,E){for(var w=!1,I;(I=k.next())!=null&&!(I==b&&!w);)w=!w&&I=="\\";return w||(E.tokenize=p),f("string","string")}}return{startState:function(b){return{tokenize:p,baseIndent:b||0,stack:[]}},token:function(b,k){if(b.eatSpace())return null;h=null;var E=k.tokenize(b,k),w=k.stack[k.stack.length-1];return h=="hash"&&w=="rule"?E="atom":E=="variable"&&(w=="rule"?E="number":(!w||w=="@media{")&&(E="tag")),w=="rule"&&/^[\{\};]$/.test(h)&&k.stack.pop(),h=="{"?w=="@media"?k.stack[k.stack.length-1]="@media{":k.stack.push("{"):h=="}"?k.stack.pop():h=="@media"?k.stack.push("@media"):w=="{"&&h!="comment"&&k.stack.push("rule"),E},indent:function(b,k){var E=b.stack.length;return/^\}/.test(k)&&(E-=b.stack[b.stack.length-1]=="rule"?2:1),b.baseIndent+E*o},electricChars:"}"}}),i.defineMIME("text/x-nginx-conf","nginx")})});var Ed=Me((_d,Sd)=>{(function(i){typeof _d=="object"&&typeof Sd=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("perl",function(){var d={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},o="string-2",h=/[goseximacplud]/;function f(m,v,b,k,E){return v.chain=null,v.style=null,v.tail=null,v.tokenize=function(w,I){for(var S=!1,N,O=0;N=w.next();){if(N===b[O]&&!S)return b[++O]!==void 0?(I.chain=b[O],I.style=k,I.tail=E):E&&w.eatWhile(E),I.tokenize=y,k;S=!S&&N=="\\"}return k},v.tokenize(m,v)}function p(m,v,b){return v.tokenize=function(k,E){return k.string==b&&(E.tokenize=y),k.skipToEnd(),"string"},v.tokenize(m,v)}function y(m,v){if(m.eatSpace())return null;if(v.chain)return f(m,v,v.chain,v.style,v.tail);if(m.match(/^(\-?((\d[\d_]*)?\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F_]+|0b[01_]+|\d[\d_]*(e[+-]?\d+)?)/))return"number";if(m.match(/^<<(?=[_a-zA-Z])/))return m.eatWhile(/\w/),p(m,v,m.current().substr(2));if(m.sol()&&m.match(/^\=item(?!\w)/))return p(m,v,"=cut");var b=m.next();if(b=='"'||b=="'"){if(n(m,3)=="<<"+b){var k=m.pos;m.eatWhile(/\w/);var E=m.current().substr(1);if(E&&m.eat(b))return p(m,v,E);m.pos=k}return f(m,v,[b],"string")}if(b=="q"){var w=t(m,-2);if(!(w&&/\w/.test(w))){if(w=t(m,0),w=="x"){if(w=t(m,1),w=="(")return c(m,2),f(m,v,[")"],o,h);if(w=="[")return c(m,2),f(m,v,["]"],o,h);if(w=="{")return c(m,2),f(m,v,["}"],o,h);if(w=="<")return c(m,2),f(m,v,[">"],o,h);if(/[\^'"!~\/]/.test(w))return c(m,1),f(m,v,[m.eat(w)],o,h)}else if(w=="q"){if(w=t(m,1),w=="(")return c(m,2),f(m,v,[")"],"string");if(w=="[")return c(m,2),f(m,v,["]"],"string");if(w=="{")return c(m,2),f(m,v,["}"],"string");if(w=="<")return c(m,2),f(m,v,[">"],"string");if(/[\^'"!~\/]/.test(w))return c(m,1),f(m,v,[m.eat(w)],"string")}else if(w=="w"){if(w=t(m,1),w=="(")return c(m,2),f(m,v,[")"],"bracket");if(w=="[")return c(m,2),f(m,v,["]"],"bracket");if(w=="{")return c(m,2),f(m,v,["}"],"bracket");if(w=="<")return c(m,2),f(m,v,[">"],"bracket");if(/[\^'"!~\/]/.test(w))return c(m,1),f(m,v,[m.eat(w)],"bracket")}else if(w=="r"){if(w=t(m,1),w=="(")return c(m,2),f(m,v,[")"],o,h);if(w=="[")return c(m,2),f(m,v,["]"],o,h);if(w=="{")return c(m,2),f(m,v,["}"],o,h);if(w=="<")return c(m,2),f(m,v,[">"],o,h);if(/[\^'"!~\/]/.test(w))return c(m,1),f(m,v,[m.eat(w)],o,h)}else if(/[\^'"!~\/(\[{<]/.test(w)){if(w=="(")return c(m,1),f(m,v,[")"],"string");if(w=="[")return c(m,1),f(m,v,["]"],"string");if(w=="{")return c(m,1),f(m,v,["}"],"string");if(w=="<")return c(m,1),f(m,v,[">"],"string");if(/[\^'"!~\/]/.test(w))return f(m,v,[m.eat(w)],"string")}}}if(b=="m"){var w=t(m,-2);if(!(w&&/\w/.test(w))&&(w=m.eat(/[(\[{<\^'"!~\/]/),w)){if(/[\^'"!~\/]/.test(w))return f(m,v,[w],o,h);if(w=="(")return f(m,v,[")"],o,h);if(w=="[")return f(m,v,["]"],o,h);if(w=="{")return f(m,v,["}"],o,h);if(w=="<")return f(m,v,[">"],o,h)}}if(b=="s"){var w=/[\/>\]})\w]/.test(t(m,-2));if(!w&&(w=m.eat(/[(\[{<\^'"!~\/]/),w))return w=="["?f(m,v,["]","]"],o,h):w=="{"?f(m,v,["}","}"],o,h):w=="<"?f(m,v,[">",">"],o,h):w=="("?f(m,v,[")",")"],o,h):f(m,v,[w,w],o,h)}if(b=="y"){var w=/[\/>\]})\w]/.test(t(m,-2));if(!w&&(w=m.eat(/[(\[{<\^'"!~\/]/),w))return w=="["?f(m,v,["]","]"],o,h):w=="{"?f(m,v,["}","}"],o,h):w=="<"?f(m,v,[">",">"],o,h):w=="("?f(m,v,[")",")"],o,h):f(m,v,[w,w],o,h)}if(b=="t"){var w=/[\/>\]})\w]/.test(t(m,-2));if(!w&&(w=m.eat("r"),w&&(w=m.eat(/[(\[{<\^'"!~\/]/),w)))return w=="["?f(m,v,["]","]"],o,h):w=="{"?f(m,v,["}","}"],o,h):w=="<"?f(m,v,[">",">"],o,h):w=="("?f(m,v,[")",")"],o,h):f(m,v,[w,w],o,h)}if(b=="`")return f(m,v,[b],"variable-2");if(b=="/")return/~\s*$/.test(n(m))?f(m,v,[b],o,h):"operator";if(b=="$"){var k=m.pos;if(m.eatWhile(/\d/)||m.eat("{")&&m.eatWhile(/\d/)&&m.eat("}"))return"variable-2";m.pos=k}if(/[$@%]/.test(b)){var k=m.pos;if(m.eat("^")&&m.eat(/[A-Z]/)||!/[@$%&]/.test(t(m,-2))&&m.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var w=m.current();if(d[w])return"variable-2"}m.pos=k}if(/[$@%&]/.test(b)&&(m.eatWhile(/[\w$]/)||m.eat("{")&&m.eatWhile(/[\w$]/)&&m.eat("}"))){var w=m.current();return d[w]?"variable-2":"variable"}if(b=="#"&&t(m,-2)!="$")return m.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(b)){var k=m.pos;if(m.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),d[m.current()])return"operator";m.pos=k}if(b=="_"&&m.pos==1){if(l(m,6)=="_END__")return f(m,v,["\0"],"comment");if(l(m,7)=="_DATA__")return f(m,v,["\0"],"variable-2");if(l(m,7)=="_C__")return f(m,v,["\0"],"string")}if(/\w/.test(b)){var k=m.pos;if(t(m,-2)=="{"&&(t(m,0)=="}"||m.eatWhile(/\w/)&&t(m,0)=="}"))return"string";m.pos=k}if(/[A-Z]/.test(b)){var I=t(m,-2),k=m.pos;if(m.eatWhile(/[A-Z_]/),/[\da-z]/.test(t(m,0)))m.pos=k;else{var w=d[m.current()];return w?(w[1]&&(w=w[0]),I!=":"?w==1?"keyword":w==2?"def":w==3?"atom":w==4?"operator":w==5?"variable-2":"meta":"meta"):"meta"}}if(/[a-zA-Z_]/.test(b)){var I=t(m,-2);m.eatWhile(/\w/);var w=d[m.current()];return w?(w[1]&&(w=w[0]),I!=":"?w==1?"keyword":w==2?"def":w==3?"atom":w==4?"operator":w==5?"variable-2":"meta":"meta"):"meta"}return null}return{startState:function(){return{tokenize:y,chain:null,style:null,tail:null}},token:function(m,v){return(v.tokenize||y)(m,v)},lineComment:"#"}}),i.registerHelper("wordChars","perl",/[\w$]/),i.defineMIME("text/x-perl","perl");function t(d,o){return d.string.charAt(d.pos+(o||0))}function n(d,o){if(o){var h=d.pos-o;return d.string.substr(h>=0?h:0,o)}else return d.string.substr(0,d.pos-1)}function l(d,o){var h=d.string.length,f=h-d.pos+1;return d.string.substr(d.pos,o&&o=(f=d.string.length-1)?d.pos=f:d.pos=h}})});var Ad=Me((Cd,Td)=>{(function(i){typeof Cd=="object"&&typeof Td=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("pascal",function(){function t(p){for(var y={},m=p.split(" "),v=0;v!?|\/]/;function d(p,y){var m=p.next();if(m=="#"&&y.startOfLine)return p.skipToEnd(),"meta";if(m=='"'||m=="'")return y.tokenize=o(m),y.tokenize(p,y);if(m=="("&&p.eat("*"))return y.tokenize=h,h(p,y);if(m=="{")return y.tokenize=f,f(p,y);if(/[\[\]\(\),;\:\.]/.test(m))return null;if(/\d/.test(m))return p.eatWhile(/[\w\.]/),"number";if(m=="/"&&p.eat("/"))return p.skipToEnd(),"comment";if(c.test(m))return p.eatWhile(c),"operator";p.eatWhile(/[\w\$_]/);var v=p.current();return n.propertyIsEnumerable(v)?"keyword":l.propertyIsEnumerable(v)?"atom":"variable"}function o(p){return function(y,m){for(var v=!1,b,k=!1;(b=y.next())!=null;){if(b==p&&!v){k=!0;break}v=!v&&b=="\\"}return(k||!v)&&(m.tokenize=null),"string"}}function h(p,y){for(var m=!1,v;v=p.next();){if(v==")"&&m){y.tokenize=null;break}m=v=="*"}return"comment"}function f(p,y){for(var m;m=p.next();)if(m=="}"){y.tokenize=null;break}return"comment"}return{startState:function(){return{tokenize:null}},token:function(p,y){if(p.eatSpace())return null;var m=(y.tokenize||d)(p,y);return m=="comment"||m=="meta",m},electricChars:"{}"}}),i.defineMIME("text/x-pascal","pascal")})});var Id=Me((Ld,Dd)=>{(function(i){typeof Ld=="object"&&typeof Dd=="object"?i(Tt(),nl(),tl()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],i):i(CodeMirror)})(function(i){"use strict";function t(p){for(var y={},m=p.split(" "),v=0;v\w/,!1)&&(y.tokenize=n([[["->",null]],[[/[\w]+/,"variable"]]],m,v)),"variable-2";for(var b=!1;!p.eol()&&(b||v===!1||!p.match("{$",!1)&&!p.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!b&&p.match(m)){y.tokenize=null,y.tokStack.pop(),y.tokStack.pop();break}b=p.next()=="\\"&&!b}return"string"}var d="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile enum extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally readonly match",o="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",h="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage memory_get_peak_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";i.registerHelper("hintWords","php",[d,o,h].join(" ").split(" ")),i.registerHelper("wordChars","php",/[\w$]/);var f={name:"clike",helperType:"php",keywords:t(d),blockKeywords:t("catch do else elseif for foreach if switch try while finally"),defKeywords:t("class enum function interface namespace trait"),atoms:t(o),builtin:t(h),multiLineStrings:!0,hooks:{$:function(p){return p.eatWhile(/[\w\$_]/),"variable-2"},"<":function(p,y){var m;if(m=p.match(/^<<\s*/)){var v=p.eat(/['"]/);p.eatWhile(/[\w\.]/);var b=p.current().slice(m[0].length+(v?2:1));if(v&&p.eat(v),b)return(y.tokStack||(y.tokStack=[])).push(b,0),y.tokenize=l(b,v!="'"),"string"}return!1},"#":function(p){for(;!p.eol()&&!p.match("?>",!1);)p.next();return"comment"},"/":function(p){if(p.eat("/")){for(;!p.eol()&&!p.match("?>",!1);)p.next();return"comment"}return!1},'"':function(p,y){return(y.tokStack||(y.tokStack=[])).push('"',0),y.tokenize=l('"'),"string"},"{":function(p,y){return y.tokStack&&y.tokStack.length&&y.tokStack[y.tokStack.length-1]++,!1},"}":function(p,y){return y.tokStack&&y.tokStack.length>0&&!--y.tokStack[y.tokStack.length-1]&&(y.tokenize=l(y.tokStack[y.tokStack.length-2])),!1}}};i.defineMode("php",function(p,y){var m=i.getMode(p,y&&y.htmlMode||"text/html"),v=i.getMode(p,f);function b(k,E){var w=E.curMode==v;if(k.sol()&&E.pending&&E.pending!='"'&&E.pending!="'"&&(E.pending=null),w)return w&&E.php.tokenize==null&&k.match("?>")?(E.curMode=m,E.curState=E.html,E.php.context.prev||(E.php=null),"meta"):v.token(k,E.curState);if(k.match(/^<\?\w*/))return E.curMode=v,E.php||(E.php=i.startState(v,m.indent(E.html,"",""))),E.curState=E.php,"meta";if(E.pending=='"'||E.pending=="'"){for(;!k.eol()&&k.next()!=E.pending;);var I="string"}else if(E.pending&&k.pos/.test(S)?E.pending=O[0]:E.pending={end:k.pos,style:I},k.backUp(S.length-N)),I}return{startState:function(){var k=i.startState(m),E=y.startOpen?i.startState(v):null;return{html:k,php:E,curMode:y.startOpen?v:m,curState:y.startOpen?E:k,pending:null}},copyState:function(k){var E=k.html,w=i.copyState(m,E),I=k.php,S=I&&i.copyState(v,I),N;return k.curMode==m?N=w:N=S,{html:w,php:S,curMode:k.curMode,curState:N,pending:k.pending}},token:b,indent:function(k,E,w){return k.curMode!=v&&/^\s*<\//.test(E)||k.curMode==v&&/^\?>/.test(E)?m.indent(k.html,E,w):k.curMode.indent(k.curState,E,w)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(k){return{state:k.curState,mode:k.curMode}}}},"htmlmixed","clike"),i.defineMIME("application/x-httpd-php","php"),i.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),i.defineMIME("text/x-php",f)})});var Od=Me((Fd,Md)=>{(function(i){"use strict";typeof Fd=="object"&&typeof Md=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(window.CodeMirror)})(function(i){"use strict";i.defineMode("powershell",function(){function t(R,T){T=T||{};for(var H=T.prefix!==void 0?T.prefix:"^",Z=T.suffix!==void 0?T.suffix:"\\b",P=0;P/,f=t([o,h],{suffix:""}),p=/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,y=/^[A-Za-z\_][A-Za-z\-\_\d]*\b/,m=/[A-Z]:|%|\?/i,v=t([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""}),b=t([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""}),k=t([m,v,b],{suffix:n}),E={keyword:c,number:p,operator:f,builtin:k,punctuation:d,identifier:y};function w(R,T){var H=T.returnStack[T.returnStack.length-1];if(H&&H.shouldReturnFrom(T))return T.tokenize=H.tokenize,T.returnStack.pop(),T.tokenize(R,T);if(R.eatSpace())return null;if(R.eat("("))return T.bracketNesting+=1,"punctuation";if(R.eat(")"))return T.bracketNesting-=1,"punctuation";for(var Z in E)if(R.match(E[Z]))return Z;var P=R.next();if(P==="'")return I(R,T);if(P==="$")return V(R,T);if(P==='"')return S(R,T);if(P==="<"&&R.eat("#"))return T.tokenize=ee,ee(R,T);if(P==="#")return R.skipToEnd(),"comment";if(P==="@"){var z=R.eat(/["']/);if(z&&R.eol())return T.tokenize=K,T.startQuote=z[0],K(R,T);if(R.eol())return"error";if(R.peek().match(/[({]/))return"punctuation";if(R.peek().match(l))return V(R,T)}return"error"}function I(R,T){for(var H;(H=R.peek())!=null;)if(R.next(),H==="'"&&!R.eat("'"))return T.tokenize=w,"string";return"error"}function S(R,T){for(var H;(H=R.peek())!=null;){if(H==="$")return T.tokenize=N,"string";if(R.next(),H==="`"){R.next();continue}if(H==='"'&&!R.eat('"'))return T.tokenize=w,"string"}return"error"}function N(R,T){return U(R,T,S)}function O(R,T){return T.tokenize=K,T.startQuote='"',K(R,T)}function j(R,T){return U(R,T,O)}function U(R,T,H){if(R.match("$(")){var Z=T.bracketNesting;return T.returnStack.push({shouldReturnFrom:function(P){return P.bracketNesting===Z},tokenize:H}),T.tokenize=w,T.bracketNesting+=1,"punctuation"}else return R.next(),T.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:H}),T.tokenize=V,T.tokenize(R,T)}function ee(R,T){for(var H=!1,Z;(Z=R.next())!=null;){if(H&&Z==">"){T.tokenize=w;break}H=Z==="#"}return"comment"}function V(R,T){var H=R.peek();return R.eat("{")?(T.tokenize=W,W(R,T)):H!=null&&H.match(l)?(R.eatWhile(l),T.tokenize=w,"variable-2"):(T.tokenize=w,"error")}function W(R,T){for(var H;(H=R.next())!=null;)if(H==="}"){T.tokenize=w;break}return"variable-2"}function K(R,T){var H=T.startQuote;if(R.sol()&&R.match(new RegExp(H+"@")))T.tokenize=w;else if(H==='"')for(;!R.eol();){var Z=R.peek();if(Z==="$")return T.tokenize=j,"string";R.next(),Z==="`"&&R.next()}else R.skipToEnd();return"string"}var q={startState:function(){return{returnStack:[],bracketNesting:0,tokenize:w}},token:function(R,T){return T.tokenize(R,T)},blockCommentStart:"<#",blockCommentEnd:"#>",lineComment:"#",fold:"brace"};return q}),i.defineMIME("application/x-powershell","powershell")})});var zd=Me((Pd,Rd)=>{(function(i){typeof Pd=="object"&&typeof Rd=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("properties",function(){return{token:function(t,n){var l=t.sol()||n.afterSection,c=t.eol();if(n.afterSection=!1,l&&(n.nextMultiline?(n.inMultiline=!0,n.nextMultiline=!1):n.position="def"),c&&!n.nextMultiline&&(n.inMultiline=!1,n.position="def"),l)for(;t.eatSpace(););var d=t.next();return l&&(d==="#"||d==="!"||d===";")?(n.position="comment",t.skipToEnd(),"comment"):l&&d==="["?(n.afterSection=!0,t.skipTo("]"),t.eat("]"),"header"):d==="="||d===":"?(n.position="quote",null):(d==="\\"&&n.position==="quote"&&t.eol()&&(n.nextMultiline=!0),n.position)},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}}),i.defineMIME("text/x-properties","properties"),i.defineMIME("text/x-ini","properties")})});var qd=Me((Nd,Bd)=>{(function(i){typeof Nd=="object"&&typeof Bd=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function t(h){return new RegExp("^(("+h.join(")|(")+"))\\b")}var n=t(["and","or","not","is"]),l=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],c=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];i.registerHelper("hintWords","python",l.concat(c));function d(h){return h.scopes[h.scopes.length-1]}i.defineMode("python",function(h,f){for(var p="error",y=f.delimiters||f.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,m=[f.singleOperators,f.doubleOperators,f.doubleDelimiters,f.tripleDelimiters,f.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],v=0;vz?W(Z):ne0&&q(H,Z)&&(ae+=" "+p),ae}}return U(H,Z)}function U(H,Z,P){if(H.eatSpace())return null;if(!P&&H.match(/^#.*/))return"comment";if(H.match(/^[0-9\.]/,!1)){var z=!1;if(H.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(z=!0),H.match(/^[\d_]+\.\d*/)&&(z=!0),H.match(/^\.\d+/)&&(z=!0),z)return H.eat(/J/i),"number";var ne=!1;if(H.match(/^0x[0-9a-f_]+/i)&&(ne=!0),H.match(/^0b[01_]+/i)&&(ne=!0),H.match(/^0o[0-7_]+/i)&&(ne=!0),H.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(H.eat(/J/i),ne=!0),H.match(/^0(?![\dx])/i)&&(ne=!0),ne)return H.eat(/L/i),"number"}if(H.match(S)){var ae=H.current().toLowerCase().indexOf("f")!==-1;return ae?(Z.tokenize=ee(H.current(),Z.tokenize),Z.tokenize(H,Z)):(Z.tokenize=V(H.current(),Z.tokenize),Z.tokenize(H,Z))}for(var F=0;F=0;)H=H.substr(1);var P=H.length==1,z="string";function ne(F){return function(A,be){var Fe=U(A,be,!0);return Fe=="punctuation"&&(A.current()=="{"?be.tokenize=ne(F+1):A.current()=="}"&&(F>1?be.tokenize=ne(F-1):be.tokenize=ae)),Fe}}function ae(F,A){for(;!F.eol();)if(F.eatWhile(/[^'"\{\}\\]/),F.eat("\\")){if(F.next(),P&&F.eol())return z}else{if(F.match(H))return A.tokenize=Z,z;if(F.match("{{"))return z;if(F.match("{",!1))return A.tokenize=ne(0),F.current()?z:A.tokenize(F,A);if(F.match("}}"))return z;if(F.match("}"))return p;F.eat(/['"]/)}if(P){if(f.singleLineStringErrors)return p;A.tokenize=Z}return z}return ae.isString=!0,ae}function V(H,Z){for(;"rubf".indexOf(H.charAt(0).toLowerCase())>=0;)H=H.substr(1);var P=H.length==1,z="string";function ne(ae,F){for(;!ae.eol();)if(ae.eatWhile(/[^'"\\]/),ae.eat("\\")){if(ae.next(),P&&ae.eol())return z}else{if(ae.match(H))return F.tokenize=Z,z;ae.eat(/['"]/)}if(P){if(f.singleLineStringErrors)return p;F.tokenize=Z}return z}return ne.isString=!0,ne}function W(H){for(;d(H).type!="py";)H.scopes.pop();H.scopes.push({offset:d(H).offset+h.indentUnit,type:"py",align:null})}function K(H,Z,P){var z=H.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:H.column()+1;Z.scopes.push({offset:Z.indent+b,type:P,align:z})}function q(H,Z){for(var P=H.indentation();Z.scopes.length>1&&d(Z).offset>P;){if(d(Z).type!="py")return!0;Z.scopes.pop()}return d(Z).offset!=P}function R(H,Z){H.sol()&&(Z.beginningOfLine=!0,Z.dedent=!1);var P=Z.tokenize(H,Z),z=H.current();if(Z.beginningOfLine&&z=="@")return H.match(I,!1)?"meta":w?"operator":p;if(/\S/.test(z)&&(Z.beginningOfLine=!1),(P=="variable"||P=="builtin")&&Z.lastToken=="meta"&&(P="meta"),(z=="pass"||z=="return")&&(Z.dedent=!0),z=="lambda"&&(Z.lambda=!0),z==":"&&!Z.lambda&&d(Z).type=="py"&&H.match(/^\s*(?:#|$)/,!1)&&W(Z),z.length==1&&!/string|comment/.test(P)){var ne="[({".indexOf(z);if(ne!=-1&&K(H,Z,"])}".slice(ne,ne+1)),ne="])}".indexOf(z),ne!=-1)if(d(Z).type==z)Z.indent=Z.scopes.pop().offset-b;else return p}return Z.dedent&&H.eol()&&d(Z).type=="py"&&Z.scopes.length>1&&Z.scopes.pop(),P}var T={startState:function(H){return{tokenize:j,scopes:[{offset:H||0,type:"py",align:null}],indent:H||0,lastToken:null,lambda:!1,dedent:0}},token:function(H,Z){var P=Z.errorToken;P&&(Z.errorToken=!1);var z=R(H,Z);return z&&z!="comment"&&(Z.lastToken=z=="keyword"||z=="punctuation"?H.current():z),z=="punctuation"&&(z=null),H.eol()&&Z.lambda&&(Z.lambda=!1),P?z+" "+p:z},indent:function(H,Z){if(H.tokenize!=j)return H.tokenize.isString?i.Pass:0;var P=d(H),z=P.type==Z.charAt(0)||P.type=="py"&&!H.dedent&&/^(else:|elif |except |finally:)/.test(Z);return P.align!=null?P.align-(z?1:0):P.offset-(z?b:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:`'"`},lineComment:"#",fold:"indent"};return T}),i.defineMIME("text/x-python","python");var o=function(h){return h.split(" ")};i.defineMIME("text/x-cython",{name:"python",extra_keywords:o("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})});var jd=Me(($d,Ud)=>{(function(i){typeof $d=="object"&&typeof Ud=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function t(f){for(var p={},y=0,m=f.length;y]/)?(S.eat(/[\<\>]/),"atom"):S.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":S.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(S.eatWhile(/[\w$\xa1-\uffff]/),S.eat(/[\?\!\=]/),"atom"):"operator";if(O=="@"&&S.match(/^@?[a-zA-Z_\xa1-\uffff]/))return S.eat("@"),S.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if(O=="$")return S.eat(/[a-zA-Z_]/)?S.eatWhile(/[\w]/):S.eat(/\d/)?S.eat(/\d/):S.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(O))return S.eatWhile(/[\w\xa1-\uffff]/),S.eat(/[\?\!]/),S.eat(":")?"atom":"ident";if(O=="|"&&(N.varList||N.lastTok=="{"||N.lastTok=="do"))return p="|",null;if(/[\(\)\[\]{}\\;]/.test(O))return p=O,null;if(O=="-"&&S.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(O)){var W=S.eatWhile(/[=+\-\/*:\.^%<>~|]/);return O=="."&&!W&&(p="."),"operator"}else return null}}}function v(S){for(var N=S.pos,O=0,j,U=!1,ee=!1;(j=S.next())!=null;)if(ee)ee=!1;else{if("[{(".indexOf(j)>-1)O++;else if("]})".indexOf(j)>-1){if(O--,O<0)break}else if(j=="/"&&O==0){U=!0;break}ee=j=="\\"}return S.backUp(S.pos-N),U}function b(S){return S||(S=1),function(N,O){if(N.peek()=="}"){if(S==1)return O.tokenize.pop(),O.tokenize[O.tokenize.length-1](N,O);O.tokenize[O.tokenize.length-1]=b(S-1)}else N.peek()=="{"&&(O.tokenize[O.tokenize.length-1]=b(S+1));return m(N,O)}}function k(){var S=!1;return function(N,O){return S?(O.tokenize.pop(),O.tokenize[O.tokenize.length-1](N,O)):(S=!0,m(N,O))}}function E(S,N,O,j){return function(U,ee){var V=!1,W;for(ee.context.type==="read-quoted-paused"&&(ee.context=ee.context.prev,U.eat("}"));(W=U.next())!=null;){if(W==S&&(j||!V)){ee.tokenize.pop();break}if(O&&W=="#"&&!V){if(U.eat("{")){S=="}"&&(ee.context={prev:ee.context,type:"read-quoted-paused"}),ee.tokenize.push(b());break}else if(/[@\$]/.test(U.peek())){ee.tokenize.push(k());break}}V=!V&&W=="\\"}return N}}function w(S,N){return function(O,j){return N&&O.eatSpace(),O.match(S)?j.tokenize.pop():O.skipToEnd(),"string"}}function I(S,N){return S.sol()&&S.match("=end")&&S.eol()&&N.tokenize.pop(),S.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[m],indented:0,context:{type:"top",indented:-f.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(S,N){p=null,S.sol()&&(N.indented=S.indentation());var O=N.tokenize[N.tokenize.length-1](S,N),j,U=p;if(O=="ident"){var ee=S.current();O=N.lastTok=="."?"property":l.propertyIsEnumerable(S.current())?"keyword":/^[A-Z]/.test(ee)?"tag":N.lastTok=="def"||N.lastTok=="class"||N.varList?"def":"variable",O=="keyword"&&(U=ee,c.propertyIsEnumerable(ee)?j="indent":d.propertyIsEnumerable(ee)?j="dedent":((ee=="if"||ee=="unless")&&S.column()==S.indentation()||ee=="do"&&N.context.indented{(function(i){typeof Hd=="object"&&typeof Wd=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineSimpleMode=function(y,m){i.defineMode(y,function(v){return i.simpleMode(v,m)})},i.simpleMode=function(y,m){t(m,"start");var v={},b=m.meta||{},k=!1;for(var E in m)if(E!=b&&m.hasOwnProperty(E))for(var w=v[E]=[],I=m[E],S=0;S2&&N.token&&typeof N.token!="string"){for(var U=2;U-1)return i.Pass;var E=v.indent.length-1,w=y[v.state];e:for(;;){for(var I=0;I{(function(i){typeof Kd=="object"&&typeof Vd=="object"?i(Tt(),Gd()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../../addon/mode/simple"],i):i(CodeMirror)})(function(i){"use strict";i.defineSimpleMode("rust",{start:[{regex:/b?"/,token:"string",next:"string"},{regex:/b?r"/,token:"string",next:"string_raw"},{regex:/b?r#+"/,token:"string",next:"string_raw_hash"},{regex:/'(?:[^'\\]|\\(?:[nrt0'"]|x[\da-fA-F]{2}|u\{[\da-fA-F]{6}\}))'/,token:"string-2"},{regex:/b'(?:[^']|\\(?:['\\nrt0]|x[\da-fA-F]{2}))'/,token:"string-2"},{regex:/(?:(?:[0-9][0-9_]*)(?:(?:[Ee][+-]?[0-9_]+)|\.[0-9_]+(?:[Ee][+-]?[0-9_]+)?)(?:f32|f64)?)|(?:0(?:b[01_]+|(?:o[0-7_]+)|(?:x[0-9a-fA-F_]+))|(?:[0-9][0-9_]*))(?:u8|u16|u32|u64|i8|i16|i32|i64|isize|usize)?/,token:"number"},{regex:/(let(?:\s+mut)?|fn|enum|mod|struct|type|union)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/(?:abstract|alignof|as|async|await|box|break|continue|const|crate|do|dyn|else|enum|extern|fn|for|final|if|impl|in|loop|macro|match|mod|move|offsetof|override|priv|proc|pub|pure|ref|return|self|sizeof|static|struct|super|trait|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,token:"keyword"},{regex:/\b(?:Self|isize|usize|char|bool|u8|u16|u32|u64|f16|f32|f64|i8|i16|i32|i64|str|Option)\b/,token:"atom"},{regex:/\b(?:true|false|Some|None|Ok|Err)\b/,token:"builtin"},{regex:/\b(fn)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/#!?\[.*\]/,token:"meta"},{regex:/\/\/.*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/[a-zA-Z_]\w*!/,token:"variable-3"},{regex:/[a-zA-Z_]\w*/,token:"variable"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0}],string:[{regex:/"/,token:"string",next:"start"},{regex:/(?:[^\\"]|\\(?:.|$))*/,token:"string"}],string_raw:[{regex:/"/,token:"string",next:"start"},{regex:/[^"]*/,token:"string"}],string_raw_hash:[{regex:/"#+/,token:"string",next:"start"},{regex:/(?:[^"]|"(?!#))*/,token:"string"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"],electricInput:/^\s*\}$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}}),i.defineMIME("text/x-rustsrc","rust"),i.defineMIME("text/rust","rust")})});var Qd=Me((Xd,Zd)=>{(function(i){typeof Xd=="object"&&typeof Zd=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("shell",function(){var t={};function n(v,b){for(var k=0;k1&&v.eat("$");var k=v.next();return/['"({]/.test(k)?(b.tokens[0]=h(k,k=="("?"quote":k=="{"?"def":"string"),m(v,b)):(/\d/.test(k)||v.eatWhile(/\w/),b.tokens.shift(),"def")};function y(v){return function(b,k){return b.sol()&&b.string==v&&k.tokens.shift(),b.skipToEnd(),"string-2"}}function m(v,b){return(b.tokens[0]||o)(v,b)}return{startState:function(){return{tokens:[]}},token:function(v,b){return m(v,b)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}}),i.defineMIME("text/x-sh","shell"),i.defineMIME("application/x-sh","shell")})});var th=Me((Jd,eh)=>{(function(i){typeof Jd=="object"&&typeof eh=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("sql",function(f,p){var y=p.client||{},m=p.atoms||{false:!0,true:!0,null:!0},v=p.builtin||o(h),b=p.keywords||o(d),k=p.operatorChars||/^[*+\-%<>!=&|~^\/]/,E=p.support||{},w=p.hooks||{},I=p.dateSQL||{date:!0,time:!0,timestamp:!0},S=p.backslashStringEscapes!==!1,N=p.brackets||/^[\{}\(\)\[\]]/,O=p.punctuation||/^[;.,:]/;function j(K,q){var R=K.next();if(w[R]){var T=w[R](K,q);if(T!==!1)return T}if(E.hexNumber&&(R=="0"&&K.match(/^[xX][0-9a-fA-F]+/)||(R=="x"||R=="X")&&K.match(/^'[0-9a-fA-F]+'/)))return"number";if(E.binaryNumber&&((R=="b"||R=="B")&&K.match(/^'[01]+'/)||R=="0"&&K.match(/^b[01]+/)))return"number";if(R.charCodeAt(0)>47&&R.charCodeAt(0)<58)return K.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),E.decimallessFloat&&K.match(/^\.(?!\.)/),"number";if(R=="?"&&(K.eatSpace()||K.eol()||K.eat(";")))return"variable-3";if(R=="'"||R=='"'&&E.doubleQuote)return q.tokenize=U(R),q.tokenize(K,q);if((E.nCharCast&&(R=="n"||R=="N")||E.charsetCast&&R=="_"&&K.match(/[a-z][a-z0-9]*/i))&&(K.peek()=="'"||K.peek()=='"'))return"keyword";if(E.escapeConstant&&(R=="e"||R=="E")&&(K.peek()=="'"||K.peek()=='"'&&E.doubleQuote))return q.tokenize=function(Z,P){return(P.tokenize=U(Z.next(),!0))(Z,P)},"keyword";if(E.commentSlashSlash&&R=="/"&&K.eat("/"))return K.skipToEnd(),"comment";if(E.commentHash&&R=="#"||R=="-"&&K.eat("-")&&(!E.commentSpaceRequired||K.eat(" ")))return K.skipToEnd(),"comment";if(R=="/"&&K.eat("*"))return q.tokenize=ee(1),q.tokenize(K,q);if(R=="."){if(E.zerolessFloat&&K.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return"number";if(K.match(/^\.+/))return null;if(E.ODBCdotTable&&K.match(/^[\w\d_$#]+/))return"variable-2"}else{if(k.test(R))return K.eatWhile(k),"operator";if(N.test(R))return"bracket";if(O.test(R))return K.eatWhile(O),"punctuation";if(R=="{"&&(K.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||K.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";K.eatWhile(/^[_\w\d]/);var H=K.current().toLowerCase();return I.hasOwnProperty(H)&&(K.match(/^( )+'[^']*'/)||K.match(/^( )+"[^"]*"/))?"number":m.hasOwnProperty(H)?"atom":v.hasOwnProperty(H)?"type":b.hasOwnProperty(H)?"keyword":y.hasOwnProperty(H)?"builtin":null}}function U(K,q){return function(R,T){for(var H=!1,Z;(Z=R.next())!=null;){if(Z==K&&!H){T.tokenize=j;break}H=(S||q)&&!H&&Z=="\\"}return"string"}}function ee(K){return function(q,R){var T=q.match(/^.*?(\/\*|\*\/)/);return T?T[1]=="/*"?R.tokenize=ee(K+1):K>1?R.tokenize=ee(K-1):R.tokenize=j:q.skipToEnd(),"comment"}}function V(K,q,R){q.context={prev:q.context,indent:K.indentation(),col:K.column(),type:R}}function W(K){K.indent=K.context.indent,K.context=K.context.prev}return{startState:function(){return{tokenize:j,context:null}},token:function(K,q){if(K.sol()&&q.context&&q.context.align==null&&(q.context.align=!1),q.tokenize==j&&K.eatSpace())return null;var R=q.tokenize(K,q);if(R=="comment")return R;q.context&&q.context.align==null&&(q.context.align=!0);var T=K.current();return T=="("?V(K,q,")"):T=="["?V(K,q,"]"):q.context&&q.context.type==T&&W(q),R},indent:function(K,q){var R=K.context;if(!R)return i.Pass;var T=q.charAt(0)==R.type;return R.align?R.col+(T?0:1):R.indent+(T?0:f.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:E.commentSlashSlash?"//":E.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``"}});function t(f){for(var p;(p=f.next())!=null;)if(p=="`"&&!f.eat("`"))return"variable-2";return f.backUp(f.current().length-1),f.eatWhile(/\w/)?"variable-2":null}function n(f){for(var p;(p=f.next())!=null;)if(p=='"'&&!f.eat('"'))return"variable-2";return f.backUp(f.current().length-1),f.eatWhile(/\w/)?"variable-2":null}function l(f){return f.eat("@")&&(f.match("session."),f.match("local."),f.match("global.")),f.eat("'")?(f.match(/^.*'/),"variable-2"):f.eat('"')?(f.match(/^.*"/),"variable-2"):f.eat("`")?(f.match(/^.*`/),"variable-2"):f.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function c(f){return f.eat("N")?"atom":f.match(/^[a-zA-Z.#!?]/)?"variable-2":null}var d="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function o(f){for(var p={},y=f.split(" "),m=0;m!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:o("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":l}}),i.defineMIME("text/x-mysql",{name:"sql",client:o("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:o(d+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":l,"`":t,"\\":c}}),i.defineMIME("text/x-mariadb",{name:"sql",client:o("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:o(d+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":l,"`":t,"\\":c}}),i.defineMIME("text/x-sqlite",{name:"sql",client:o("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:o(d+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:o("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:o("date time timestamp datetime"),support:o("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":l,":":l,"?":l,$:l,'"':n,"`":t}}),i.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:o("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:o("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:o("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:o("commentSlashSlash decimallessFloat"),hooks:{}}),i.defineMIME("text/x-plsql",{name:"sql",client:o("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:o("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:o("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:o("date time timestamp"),support:o("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),i.defineMIME("text/x-hive",{name:"sql",keywords:o("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:o("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:o("date timestamp"),support:o("ODBCdotTable doubleQuote binaryNumber hexNumber")}),i.defineMIME("text/x-pgsql",{name:"sql",client:o("source"),keywords:o(d+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:o("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:o("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),i.defineMIME("text/x-gql",{name:"sql",keywords:o("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:o("false true"),builtin:o("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),i.defineMIME("text/x-gpsql",{name:"sql",client:o("source"),keywords:o("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:o("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),i.defineMIME("text/x-sparksql",{name:"sql",keywords:o("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:o("abs acos acosh add_months aggregate and any approx_count_distinct approx_percentile array array_contains array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_repeat array_sort array_union arrays_overlap arrays_zip ascii asin asinh assert_true atan atan2 atanh avg base64 between bigint bin binary bit_and bit_count bit_get bit_length bit_or bit_xor bool_and bool_or boolean bround btrim cardinality case cast cbrt ceil ceiling char char_length character_length chr coalesce collect_list collect_set concat concat_ws conv corr cos cosh cot count count_if count_min_sketch covar_pop covar_samp crc32 cume_dist current_catalog current_database current_date current_timestamp current_timezone current_user date date_add date_format date_from_unix_date date_part date_sub date_trunc datediff day dayofmonth dayofweek dayofyear decimal decode degrees delimited dense_rank div double e element_at elt encode every exists exp explode explode_outer expm1 extract factorial filter find_in_set first first_value flatten float floor forall format_number format_string from_csv from_json from_unixtime from_utc_timestamp get_json_object getbit greatest grouping grouping_id hash hex hour hypot if ifnull in initcap inline inline_outer input_file_block_length input_file_block_start input_file_name inputformat instr int isnan isnotnull isnull java_method json_array_length json_object_keys json_tuple kurtosis lag last last_day last_value lcase lead least left length levenshtein like ln locate log log10 log1p log2 lower lpad ltrim make_date make_dt_interval make_interval make_timestamp make_ym_interval map map_concat map_entries map_filter map_from_arrays map_from_entries map_keys map_values map_zip_with max max_by md5 mean min min_by minute mod monotonically_increasing_id month months_between named_struct nanvl negative next_day not now nth_value ntile nullif nvl nvl2 octet_length or outputformat overlay parse_url percent_rank percentile percentile_approx pi pmod posexplode posexplode_outer position positive pow power printf quarter radians raise_error rand randn random rank rcfile reflect regexp regexp_extract regexp_extract_all regexp_like regexp_replace repeat replace reverse right rint rlike round row_number rpad rtrim schema_of_csv schema_of_json second sentences sequence sequencefile serde session_window sha sha1 sha2 shiftleft shiftright shiftrightunsigned shuffle sign signum sin sinh size skewness slice smallint some sort_array soundex space spark_partition_id split sqrt stack std stddev stddev_pop stddev_samp str_to_map string struct substr substring substring_index sum tan tanh textfile timestamp timestamp_micros timestamp_millis timestamp_seconds tinyint to_csv to_date to_json to_timestamp to_unix_timestamp to_utc_timestamp transform transform_keys transform_values translate trim trunc try_add try_divide typeof ucase unbase64 unhex uniontype unix_date unix_micros unix_millis unix_seconds unix_timestamp upper uuid var_pop var_samp variance version weekday weekofyear when width_bucket window xpath xpath_boolean xpath_double xpath_float xpath_int xpath_long xpath_number xpath_short xpath_string xxhash64 year zip_with"),atoms:o("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable doubleQuote zerolessFloat")}),i.defineMIME("text/x-esper",{name:"sql",client:o("source"),keywords:o("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:o("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:o("time"),support:o("decimallessFloat zerolessFloat binaryNumber hexNumber")})})});var ih=Me((rh,nh)=>{(function(i){typeof rh=="object"&&typeof nh=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("toml",function(){return{startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(t,n){if(!n.inString&&(t.peek()=='"'||t.peek()=="'")&&(n.stringType=t.peek(),t.next(),n.inString=!0),t.sol()&&n.inArray===0&&(n.lhs=!0),n.inString){for(;n.inString&&!t.eol();)t.peek()===n.stringType?(t.next(),n.inString=!1):t.peek()==="\\"?(t.next(),t.next()):t.match(/^.[^\\\"\']*/);return n.lhs?"property string":"string"}else{if(n.inArray&&t.peek()==="]")return t.next(),n.inArray--,"bracket";if(n.lhs&&t.peek()==="["&&t.skipTo("]"))return t.next(),t.peek()==="]"&&t.next(),"atom";if(t.peek()==="#")return t.skipToEnd(),"comment";if(t.eatSpace())return null;if(n.lhs&&t.eatWhile(function(l){return l!="="&&l!=" "}))return"property";if(n.lhs&&t.peek()==="=")return t.next(),n.lhs=!1,null;if(!n.lhs&&t.match(/^\d\d\d\d[\d\-\:\.T]*Z/))return"atom";if(!n.lhs&&(t.match("true")||t.match("false")))return"atom";if(!n.lhs&&t.peek()==="[")return n.inArray++,t.next(),"bracket";if(!n.lhs&&t.match(/^\-?\d+(?:\.\d+)?/))return"number";t.eatSpace()||t.next()}return null}}}),i.defineMIME("text/x-toml","toml")})});var sh=Me((oh,ah)=>{(function(i){typeof oh=="object"&&typeof ah=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("vb",function(t,n){var l="error";function c(z){return new RegExp("^(("+z.join(")|(")+"))\\b","i")}var d=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),o=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),h=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),f=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),p=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),y=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),m=["class","module","sub","enum","select","while","if","function","get","set","property","try","structure","synclock","using","with"],v=["else","elseif","case","catch","finally"],b=["next","loop"],k=["and","andalso","or","orelse","xor","in","not","is","isnot","like"],E=c(k),w=["#const","#else","#elseif","#end","#if","#region","addhandler","addressof","alias","as","byref","byval","cbool","cbyte","cchar","cdate","cdbl","cdec","cint","clng","cobj","compare","const","continue","csbyte","cshort","csng","cstr","cuint","culng","cushort","declare","default","delegate","dim","directcast","each","erase","error","event","exit","explicit","false","for","friend","gettype","goto","handles","implements","imports","infer","inherits","interface","isfalse","istrue","lib","me","mod","mustinherit","mustoverride","my","mybase","myclass","namespace","narrowing","new","nothing","notinheritable","notoverridable","of","off","on","operator","option","optional","out","overloads","overridable","overrides","paramarray","partial","private","protected","public","raiseevent","readonly","redim","removehandler","resume","return","shadows","shared","static","step","stop","strict","then","throw","to","true","trycast","typeof","until","until","when","widening","withevents","writeonly"],I=["object","boolean","char","string","byte","sbyte","short","ushort","int16","uint16","integer","uinteger","int32","uint32","long","ulong","int64","uint64","decimal","single","double","float","date","datetime","intptr","uintptr"],S=c(w),N=c(I),O='"',j=c(m),U=c(v),ee=c(b),V=c(["end"]),W=c(["do"]),K=null;i.registerHelper("hintWords","vb",m.concat(v).concat(b).concat(k).concat(w).concat(I));function q(z,ne){ne.currentIndent++}function R(z,ne){ne.currentIndent--}function T(z,ne){if(z.eatSpace())return null;var ae=z.peek();if(ae==="'")return z.skipToEnd(),"comment";if(z.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var F=!1;if((z.match(/^\d*\.\d+F?/i)||z.match(/^\d+\.\d*F?/)||z.match(/^\.\d+F?/))&&(F=!0),F)return z.eat(/J/i),"number";var A=!1;if(z.match(/^&H[0-9a-f]+/i)||z.match(/^&O[0-7]+/i)?A=!0:z.match(/^[1-9]\d*F?/)?(z.eat(/J/i),A=!0):z.match(/^0(?![\dx])/i)&&(A=!0),A)return z.eat(/L/i),"number"}return z.match(O)?(ne.tokenize=H(z.current()),ne.tokenize(z,ne)):z.match(p)||z.match(f)?null:z.match(h)||z.match(d)||z.match(E)?"operator":z.match(o)?null:z.match(W)?(q(z,ne),ne.doInCurrentLine=!0,"keyword"):z.match(j)?(ne.doInCurrentLine?ne.doInCurrentLine=!1:q(z,ne),"keyword"):z.match(U)?"keyword":z.match(V)?(R(z,ne),R(z,ne),"keyword"):z.match(ee)?(R(z,ne),"keyword"):z.match(N)||z.match(S)?"keyword":z.match(y)?"variable":(z.next(),l)}function H(z){var ne=z.length==1,ae="string";return function(F,A){for(;!F.eol();){if(F.eatWhile(/[^'"]/),F.match(z))return A.tokenize=T,ae;F.eat(/['"]/)}if(ne){if(n.singleLineStringErrors)return l;A.tokenize=T}return ae}}function Z(z,ne){var ae=ne.tokenize(z,ne),F=z.current();if(F===".")return ae=ne.tokenize(z,ne),ae==="variable"?"variable":l;var A="[({".indexOf(F);return A!==-1&&q(z,ne),K==="dedent"&&R(z,ne)||(A="])}".indexOf(F),A!==-1&&R(z,ne))?l:ae}var P={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:T,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(z,ne){z.sol()&&(ne.currentIndent+=ne.nextLineIndent,ne.nextLineIndent=0,ne.doInCurrentLine=0);var ae=Z(z,ne);return ne.lastToken={style:ae,content:z.current()},ae},indent:function(z,ne){var ae=ne.replace(/^\s+|\s+$/g,"");return ae.match(ee)||ae.match(V)||ae.match(U)?t.indentUnit*(z.currentIndent-1):z.currentIndent<0?0:z.currentIndent*t.indentUnit},lineComment:"'"};return P}),i.defineMIME("text/x-vb","vb")})});var ch=Me((lh,uh)=>{(function(i){typeof lh=="object"&&typeof uh=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("vbscript",function(t,n){var l="error";function c(ge){return new RegExp("^(("+ge.join(")|(")+"))\\b","i")}var d=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),o=new RegExp("^((<>)|(<=)|(>=))"),h=new RegExp("^[\\.,]"),f=new RegExp("^[\\(\\)]"),p=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),y=["class","sub","select","while","if","function","property","with","for"],m=["else","elseif","case"],v=["next","loop","wend"],b=c(["and","or","not","xor","is","mod","eqv","imp"]),k=["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"],E=["true","false","nothing","empty","null"],w=["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"],I=["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"],S=["WScript","err","debug","RegExp"],N=["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"],O=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"],j=["server","response","request","session","application"],U=["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"],ee=["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],V=O.concat(N);S=S.concat(I),t.isASP&&(S=S.concat(j),V=V.concat(ee,U));var W=c(k),K=c(E),q=c(w),R=c(S),T=c(V),H='"',Z=c(y),P=c(m),z=c(v),ne=c(["end"]),ae=c(["do"]),F=c(["on error resume next","exit"]),A=c(["rem"]);function be(ge,ke){ke.currentIndent++}function Fe(ge,ke){ke.currentIndent--}function xe(ge,ke){if(ge.eatSpace())return"space";var je=ge.peek();if(je==="'"||ge.match(A))return ge.skipToEnd(),"comment";if(ge.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!ge.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var at=!1;if((ge.match(/^\d*\.\d+/i)||ge.match(/^\d+\.\d*/)||ge.match(/^\.\d+/))&&(at=!0),at)return ge.eat(/J/i),"number";var gt=!1;if(ge.match(/^&H[0-9a-f]+/i)||ge.match(/^&O[0-7]+/i)?gt=!0:ge.match(/^[1-9]\d*F?/)?(ge.eat(/J/i),gt=!0):ge.match(/^0(?![\dx])/i)&&(gt=!0),gt)return ge.eat(/L/i),"number"}return ge.match(H)?(ke.tokenize=_e(ge.current()),ke.tokenize(ge,ke)):ge.match(o)||ge.match(d)||ge.match(b)?"operator":ge.match(h)?null:ge.match(f)?"bracket":ge.match(F)?(ke.doInCurrentLine=!0,"keyword"):ge.match(ae)?(be(ge,ke),ke.doInCurrentLine=!0,"keyword"):ge.match(Z)?(ke.doInCurrentLine?ke.doInCurrentLine=!1:be(ge,ke),"keyword"):ge.match(P)?"keyword":ge.match(ne)?(Fe(ge,ke),Fe(ge,ke),"keyword"):ge.match(z)?(ke.doInCurrentLine?ke.doInCurrentLine=!1:Fe(ge,ke),"keyword"):ge.match(W)?"keyword":ge.match(K)?"atom":ge.match(T)?"variable-2":ge.match(q)?"builtin":ge.match(R)?"variable-2":ge.match(p)?"variable":(ge.next(),l)}function _e(ge){var ke=ge.length==1,je="string";return function(at,gt){for(;!at.eol();){if(at.eatWhile(/[^'"]/),at.match(ge))return gt.tokenize=xe,je;at.eat(/['"]/)}if(ke){if(n.singleLineStringErrors)return l;gt.tokenize=xe}return je}}function ze(ge,ke){var je=ke.tokenize(ge,ke),at=ge.current();return at==="."?(je=ke.tokenize(ge,ke),at=ge.current(),je&&(je.substr(0,8)==="variable"||je==="builtin"||je==="keyword")?((je==="builtin"||je==="keyword")&&(je="variable"),V.indexOf(at.substr(1))>-1&&(je="variable-2"),je):l):je}var qe={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:xe,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(ge,ke){ge.sol()&&(ke.currentIndent+=ke.nextLineIndent,ke.nextLineIndent=0,ke.doInCurrentLine=0);var je=ze(ge,ke);return ke.lastToken={style:je,content:ge.current()},je==="space"&&(je=null),je},indent:function(ge,ke){var je=ke.replace(/^\s+|\s+$/g,"");return je.match(z)||je.match(ne)||je.match(P)?t.indentUnit*(ge.currentIndent-1):ge.currentIndent<0?0:ge.currentIndent*t.indentUnit}};return qe}),i.defineMIME("text/vbscript","vbscript")})});var hh=Me((fh,dh)=>{(function(i){typeof fh=="object"&&typeof dh=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("yaml",function(){var t=["true","false","on","off","yes","no"],n=new RegExp("\\b(("+t.join(")|(")+"))$","i");return{token:function(l,c){var d=l.peek(),o=c.escaped;if(c.escaped=!1,d=="#"&&(l.pos==0||/\s/.test(l.string.charAt(l.pos-1))))return l.skipToEnd(),"comment";if(l.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(c.literal&&l.indentation()>c.keyCol)return l.skipToEnd(),"string";if(c.literal&&(c.literal=!1),l.sol()){if(c.keyCol=0,c.pair=!1,c.pairStart=!1,l.match("---")||l.match("..."))return"def";if(l.match(/\s*-\s+/))return"meta"}if(l.match(/^(\{|\}|\[|\])/))return d=="{"?c.inlinePairs++:d=="}"?c.inlinePairs--:d=="["?c.inlineList++:c.inlineList--,"meta";if(c.inlineList>0&&!o&&d==",")return l.next(),"meta";if(c.inlinePairs>0&&!o&&d==",")return c.keyCol=0,c.pair=!1,c.pairStart=!1,l.next(),"meta";if(c.pairStart){if(l.match(/^\s*(\||\>)\s*/))return c.literal=!0,"meta";if(l.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(c.inlinePairs==0&&l.match(/^\s*-?[0-9\.\,]+\s?$/)||c.inlinePairs>0&&l.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(l.match(n))return"keyword"}return!c.pair&&l.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(c.pair=!0,c.keyCol=l.indentation(),"atom"):c.pair&&l.match(/^:\s*/)?(c.pairStart=!0,"meta"):(c.pairStart=!1,c.escaped=d=="\\",l.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),i.defineMIME("text/x-yaml","yaml"),i.defineMIME("text/yaml","yaml")})});var gh=Me((ph,mh)=>{(function(i){typeof ph=="object"&&typeof mh=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineOption("scrollPastEnd",!1,function(l,c,d){d&&d!=i.Init&&(l.off("change",t),l.off("refresh",n),l.display.lineSpace.parentNode.style.paddingBottom="",l.state.scrollPastEndPadding=null),c&&(l.on("change",t),l.on("refresh",n),n(l))});function t(l,c){i.changeEnd(c).line==l.lastLine()&&n(l)}function n(l){var c="";if(l.lineCount()>1){var d=l.display.scroller.clientHeight-30,o=l.getLineHandle(l.lastLine()).height;c=d-o+"px"}l.state.scrollPastEndPadding!=c&&(l.state.scrollPastEndPadding=c,l.display.lineSpace.parentNode.style.paddingBottom=c,l.off("refresh",n),l.setSize(),l.on("refresh",n))}})});var Ph=Me((Sa,ol)=>{(function(t,n){if(typeof Sa=="object"&&typeof ol=="object")ol.exports=n();else if(typeof define=="function"&&define.amd)define([],n);else{var l=n();for(var c in l)(typeof Sa=="object"?Sa:t)[c]=l[c]}})(self,function(){return function(){var i={3099:function(c){c.exports=function(d){if(typeof d!="function")throw TypeError(String(d)+" is not a function");return d}},6077:function(c,d,o){var h=o(111);c.exports=function(f){if(!h(f)&&f!==null)throw TypeError("Can't set "+String(f)+" as a prototype");return f}},1223:function(c,d,o){var h=o(5112),f=o(30),p=o(3070),y=h("unscopables"),m=Array.prototype;m[y]==null&&p.f(m,y,{configurable:!0,value:f(null)}),c.exports=function(v){m[y][v]=!0}},1530:function(c,d,o){"use strict";var h=o(8710).charAt;c.exports=function(f,p,y){return p+(y?h(f,p).length:1)}},5787:function(c){c.exports=function(d,o,h){if(!(d instanceof o))throw TypeError("Incorrect "+(h?h+" ":"")+"invocation");return d}},9670:function(c,d,o){var h=o(111);c.exports=function(f){if(!h(f))throw TypeError(String(f)+" is not an object");return f}},4019:function(c){c.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},260:function(c,d,o){"use strict";var h=o(4019),f=o(9781),p=o(7854),y=o(111),m=o(6656),v=o(648),b=o(8880),k=o(1320),E=o(3070).f,w=o(9518),I=o(7674),S=o(5112),N=o(9711),O=p.Int8Array,j=O&&O.prototype,U=p.Uint8ClampedArray,ee=U&&U.prototype,V=O&&w(O),W=j&&w(j),K=Object.prototype,q=K.isPrototypeOf,R=S("toStringTag"),T=N("TYPED_ARRAY_TAG"),H=h&&!!I&&v(p.opera)!=="Opera",Z=!1,P,z={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},ne={BigInt64Array:8,BigUint64Array:8},ae=function(ze){if(!y(ze))return!1;var qe=v(ze);return qe==="DataView"||m(z,qe)||m(ne,qe)},F=function(_e){if(!y(_e))return!1;var ze=v(_e);return m(z,ze)||m(ne,ze)},A=function(_e){if(F(_e))return _e;throw TypeError("Target is not a typed array")},be=function(_e){if(I){if(q.call(V,_e))return _e}else for(var ze in z)if(m(z,P)){var qe=p[ze];if(qe&&(_e===qe||q.call(qe,_e)))return _e}throw TypeError("Target is not a typed array constructor")},Fe=function(_e,ze,qe){if(!!f){if(qe)for(var ge in z){var ke=p[ge];ke&&m(ke.prototype,_e)&&delete ke.prototype[_e]}(!W[_e]||qe)&&k(W,_e,qe?ze:H&&j[_e]||ze)}},xe=function(_e,ze,qe){var ge,ke;if(!!f){if(I){if(qe)for(ge in z)ke=p[ge],ke&&m(ke,_e)&&delete ke[_e];if(!V[_e]||qe)try{return k(V,_e,qe?ze:H&&O[_e]||ze)}catch{}else return}for(ge in z)ke=p[ge],ke&&(!ke[_e]||qe)&&k(ke,_e,ze)}};for(P in z)p[P]||(H=!1);if((!H||typeof V!="function"||V===Function.prototype)&&(V=function(){throw TypeError("Incorrect invocation")},H))for(P in z)p[P]&&I(p[P],V);if((!H||!W||W===K)&&(W=V.prototype,H))for(P in z)p[P]&&I(p[P].prototype,W);if(H&&w(ee)!==W&&I(ee,W),f&&!m(W,R)){Z=!0,E(W,R,{get:function(){return y(this)?this[T]:void 0}});for(P in z)p[P]&&b(p[P],T,P)}c.exports={NATIVE_ARRAY_BUFFER_VIEWS:H,TYPED_ARRAY_TAG:Z&&T,aTypedArray:A,aTypedArrayConstructor:be,exportTypedArrayMethod:Fe,exportTypedArrayStaticMethod:xe,isView:ae,isTypedArray:F,TypedArray:V,TypedArrayPrototype:W}},3331:function(c,d,o){"use strict";var h=o(7854),f=o(9781),p=o(4019),y=o(8880),m=o(2248),v=o(7293),b=o(5787),k=o(9958),E=o(7466),w=o(7067),I=o(1179),S=o(9518),N=o(7674),O=o(8006).f,j=o(3070).f,U=o(1285),ee=o(8003),V=o(9909),W=V.get,K=V.set,q="ArrayBuffer",R="DataView",T="prototype",H="Wrong length",Z="Wrong index",P=h[q],z=P,ne=h[R],ae=ne&&ne[T],F=Object.prototype,A=h.RangeError,be=I.pack,Fe=I.unpack,xe=function(Se){return[Se&255]},_e=function(Se){return[Se&255,Se>>8&255]},ze=function(Se){return[Se&255,Se>>8&255,Se>>16&255,Se>>24&255]},qe=function(Se){return Se[3]<<24|Se[2]<<16|Se[1]<<8|Se[0]},ge=function(Se){return be(Se,23,4)},ke=function(Se){return be(Se,52,8)},je=function(Se,X){j(Se[T],X,{get:function(){return W(this)[X]}})},at=function(Se,X,de,ue){var it=w(de),Ne=W(Se);if(it+X>Ne.byteLength)throw A(Z);var ot=W(Ne.buffer).bytes,Xe=it+Ne.byteOffset,et=ot.slice(Xe,Xe+X);return ue?et:et.reverse()},gt=function(Se,X,de,ue,it,Ne){var ot=w(de),Xe=W(Se);if(ot+X>Xe.byteLength)throw A(Z);for(var et=W(Xe.buffer).bytes,We=ot+Xe.byteOffset,$t=ue(+it),Lt=0;Ltit)throw A("Wrong offset");if(ue=ue===void 0?it-Ne:E(ue),Ne+ue>it)throw A(H);K(this,{buffer:X,byteLength:ue,byteOffset:Ne}),f||(this.buffer=X,this.byteLength=ue,this.byteOffset=Ne)},f&&(je(z,"byteLength"),je(ne,"buffer"),je(ne,"byteLength"),je(ne,"byteOffset")),m(ne[T],{getInt8:function(X){return at(this,1,X)[0]<<24>>24},getUint8:function(X){return at(this,1,X)[0]},getInt16:function(X){var de=at(this,2,X,arguments.length>1?arguments[1]:void 0);return(de[1]<<8|de[0])<<16>>16},getUint16:function(X){var de=at(this,2,X,arguments.length>1?arguments[1]:void 0);return de[1]<<8|de[0]},getInt32:function(X){return qe(at(this,4,X,arguments.length>1?arguments[1]:void 0))},getUint32:function(X){return qe(at(this,4,X,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(X){return Fe(at(this,4,X,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(X){return Fe(at(this,8,X,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(X,de){gt(this,1,X,xe,de)},setUint8:function(X,de){gt(this,1,X,xe,de)},setInt16:function(X,de){gt(this,2,X,_e,de,arguments.length>2?arguments[2]:void 0)},setUint16:function(X,de){gt(this,2,X,_e,de,arguments.length>2?arguments[2]:void 0)},setInt32:function(X,de){gt(this,4,X,ze,de,arguments.length>2?arguments[2]:void 0)},setUint32:function(X,de){gt(this,4,X,ze,de,arguments.length>2?arguments[2]:void 0)},setFloat32:function(X,de){gt(this,4,X,ge,de,arguments.length>2?arguments[2]:void 0)},setFloat64:function(X,de){gt(this,8,X,ke,de,arguments.length>2?arguments[2]:void 0)}});else{if(!v(function(){P(1)})||!v(function(){new P(-1)})||v(function(){return new P,new P(1.5),new P(NaN),P.name!=q})){z=function(X){return b(this,z),new P(w(X))};for(var Re=z[T]=P[T],Ie=O(P),Be=0,Ke;Ie.length>Be;)(Ke=Ie[Be++])in z||y(z,Ke,P[Ke]);Re.constructor=z}N&&S(ae)!==F&&N(ae,F);var He=new ne(new z(2)),Je=ae.setInt8;He.setInt8(0,2147483648),He.setInt8(1,2147483649),(He.getInt8(0)||!He.getInt8(1))&&m(ae,{setInt8:function(X,de){Je.call(this,X,de<<24>>24)},setUint8:function(X,de){Je.call(this,X,de<<24>>24)}},{unsafe:!0})}ee(z,q),ee(ne,R),c.exports={ArrayBuffer:z,DataView:ne}},1048:function(c,d,o){"use strict";var h=o(7908),f=o(1400),p=o(7466),y=Math.min;c.exports=[].copyWithin||function(v,b){var k=h(this),E=p(k.length),w=f(v,E),I=f(b,E),S=arguments.length>2?arguments[2]:void 0,N=y((S===void 0?E:f(S,E))-I,E-w),O=1;for(I0;)I in k?k[w]=k[I]:delete k[w],w+=O,I+=O;return k}},1285:function(c,d,o){"use strict";var h=o(7908),f=o(1400),p=o(7466);c.exports=function(m){for(var v=h(this),b=p(v.length),k=arguments.length,E=f(k>1?arguments[1]:void 0,b),w=k>2?arguments[2]:void 0,I=w===void 0?b:f(w,b);I>E;)v[E++]=m;return v}},8533:function(c,d,o){"use strict";var h=o(2092).forEach,f=o(9341),p=f("forEach");c.exports=p?[].forEach:function(m){return h(this,m,arguments.length>1?arguments[1]:void 0)}},8457:function(c,d,o){"use strict";var h=o(9974),f=o(7908),p=o(3411),y=o(7659),m=o(7466),v=o(6135),b=o(1246);c.exports=function(E){var w=f(E),I=typeof this=="function"?this:Array,S=arguments.length,N=S>1?arguments[1]:void 0,O=N!==void 0,j=b(w),U=0,ee,V,W,K,q,R;if(O&&(N=h(N,S>2?arguments[2]:void 0,2)),j!=null&&!(I==Array&&y(j)))for(K=j.call(w),q=K.next,V=new I;!(W=q.call(K)).done;U++)R=O?p(K,N,[W.value,U],!0):W.value,v(V,U,R);else for(ee=m(w.length),V=new I(ee);ee>U;U++)R=O?N(w[U],U):w[U],v(V,U,R);return V.length=U,V}},1318:function(c,d,o){var h=o(5656),f=o(7466),p=o(1400),y=function(m){return function(v,b,k){var E=h(v),w=f(E.length),I=p(k,w),S;if(m&&b!=b){for(;w>I;)if(S=E[I++],S!=S)return!0}else for(;w>I;I++)if((m||I in E)&&E[I]===b)return m||I||0;return!m&&-1}};c.exports={includes:y(!0),indexOf:y(!1)}},2092:function(c,d,o){var h=o(9974),f=o(8361),p=o(7908),y=o(7466),m=o(5417),v=[].push,b=function(k){var E=k==1,w=k==2,I=k==3,S=k==4,N=k==6,O=k==7,j=k==5||N;return function(U,ee,V,W){for(var K=p(U),q=f(K),R=h(ee,V,3),T=y(q.length),H=0,Z=W||m,P=E?Z(U,T):w||O?Z(U,0):void 0,z,ne;T>H;H++)if((j||H in q)&&(z=q[H],ne=R(z,H,K),k))if(E)P[H]=ne;else if(ne)switch(k){case 3:return!0;case 5:return z;case 6:return H;case 2:v.call(P,z)}else switch(k){case 4:return!1;case 7:v.call(P,z)}return N?-1:I||S?S:P}};c.exports={forEach:b(0),map:b(1),filter:b(2),some:b(3),every:b(4),find:b(5),findIndex:b(6),filterOut:b(7)}},6583:function(c,d,o){"use strict";var h=o(5656),f=o(9958),p=o(7466),y=o(9341),m=Math.min,v=[].lastIndexOf,b=!!v&&1/[1].lastIndexOf(1,-0)<0,k=y("lastIndexOf"),E=b||!k;c.exports=E?function(I){if(b)return v.apply(this,arguments)||0;var S=h(this),N=p(S.length),O=N-1;for(arguments.length>1&&(O=m(O,f(arguments[1]))),O<0&&(O=N+O);O>=0;O--)if(O in S&&S[O]===I)return O||0;return-1}:v},1194:function(c,d,o){var h=o(7293),f=o(5112),p=o(7392),y=f("species");c.exports=function(m){return p>=51||!h(function(){var v=[],b=v.constructor={};return b[y]=function(){return{foo:1}},v[m](Boolean).foo!==1})}},9341:function(c,d,o){"use strict";var h=o(7293);c.exports=function(f,p){var y=[][f];return!!y&&h(function(){y.call(null,p||function(){throw 1},1)})}},3671:function(c,d,o){var h=o(3099),f=o(7908),p=o(8361),y=o(7466),m=function(v){return function(b,k,E,w){h(k);var I=f(b),S=p(I),N=y(I.length),O=v?N-1:0,j=v?-1:1;if(E<2)for(;;){if(O in S){w=S[O],O+=j;break}if(O+=j,v?O<0:N<=O)throw TypeError("Reduce of empty array with no initial value")}for(;v?O>=0:N>O;O+=j)O in S&&(w=k(w,S[O],O,I));return w}};c.exports={left:m(!1),right:m(!0)}},5417:function(c,d,o){var h=o(111),f=o(3157),p=o(5112),y=p("species");c.exports=function(m,v){var b;return f(m)&&(b=m.constructor,typeof b=="function"&&(b===Array||f(b.prototype))?b=void 0:h(b)&&(b=b[y],b===null&&(b=void 0))),new(b===void 0?Array:b)(v===0?0:v)}},3411:function(c,d,o){var h=o(9670),f=o(9212);c.exports=function(p,y,m,v){try{return v?y(h(m)[0],m[1]):y(m)}catch(b){throw f(p),b}}},7072:function(c,d,o){var h=o(5112),f=h("iterator"),p=!1;try{var y=0,m={next:function(){return{done:!!y++}},return:function(){p=!0}};m[f]=function(){return this},Array.from(m,function(){throw 2})}catch{}c.exports=function(v,b){if(!b&&!p)return!1;var k=!1;try{var E={};E[f]=function(){return{next:function(){return{done:k=!0}}}},v(E)}catch{}return k}},4326:function(c){var d={}.toString;c.exports=function(o){return d.call(o).slice(8,-1)}},648:function(c,d,o){var h=o(1694),f=o(4326),p=o(5112),y=p("toStringTag"),m=f(function(){return arguments}())=="Arguments",v=function(b,k){try{return b[k]}catch{}};c.exports=h?f:function(b){var k,E,w;return b===void 0?"Undefined":b===null?"Null":typeof(E=v(k=Object(b),y))=="string"?E:m?f(k):(w=f(k))=="Object"&&typeof k.callee=="function"?"Arguments":w}},9920:function(c,d,o){var h=o(6656),f=o(3887),p=o(1236),y=o(3070);c.exports=function(m,v){for(var b=f(v),k=y.f,E=p.f,w=0;w=74)&&(v=f.match(/Chrome\/(\d+)/),v&&(b=v[1]))),c.exports=b&&+b},748:function(c){c.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(c,d,o){var h=o(7854),f=o(1236).f,p=o(8880),y=o(1320),m=o(3505),v=o(9920),b=o(4705);c.exports=function(k,E){var w=k.target,I=k.global,S=k.stat,N,O,j,U,ee,V;if(I?O=h:S?O=h[w]||m(w,{}):O=(h[w]||{}).prototype,O)for(j in E){if(ee=E[j],k.noTargetGet?(V=f(O,j),U=V&&V.value):U=O[j],N=b(I?j:w+(S?".":"#")+j,k.forced),!N&&U!==void 0){if(typeof ee==typeof U)continue;v(ee,U)}(k.sham||U&&U.sham)&&p(ee,"sham",!0),y(O,j,ee,k)}}},7293:function(c){c.exports=function(d){try{return!!d()}catch{return!0}}},7007:function(c,d,o){"use strict";o(4916);var h=o(1320),f=o(7293),p=o(5112),y=o(2261),m=o(8880),v=p("species"),b=!f(function(){var S=/./;return S.exec=function(){var N=[];return N.groups={a:"7"},N},"".replace(S,"$")!=="7"}),k=function(){return"a".replace(/./,"$0")==="$0"}(),E=p("replace"),w=function(){return/./[E]?/./[E]("a","$0")==="":!1}(),I=!f(function(){var S=/(?:)/,N=S.exec;S.exec=function(){return N.apply(this,arguments)};var O="ab".split(S);return O.length!==2||O[0]!=="a"||O[1]!=="b"});c.exports=function(S,N,O,j){var U=p(S),ee=!f(function(){var T={};return T[U]=function(){return 7},""[S](T)!=7}),V=ee&&!f(function(){var T=!1,H=/a/;return S==="split"&&(H={},H.constructor={},H.constructor[v]=function(){return H},H.flags="",H[U]=/./[U]),H.exec=function(){return T=!0,null},H[U](""),!T});if(!ee||!V||S==="replace"&&!(b&&k&&!w)||S==="split"&&!I){var W=/./[U],K=O(U,""[S],function(T,H,Z,P,z){return H.exec===y?ee&&!z?{done:!0,value:W.call(H,Z,P)}:{done:!0,value:T.call(Z,H,P)}:{done:!1}},{REPLACE_KEEPS_$0:k,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:w}),q=K[0],R=K[1];h(String.prototype,S,q),h(RegExp.prototype,U,N==2?function(T,H){return R.call(T,this,H)}:function(T){return R.call(T,this)})}j&&m(RegExp.prototype[U],"sham",!0)}},9974:function(c,d,o){var h=o(3099);c.exports=function(f,p,y){if(h(f),p===void 0)return f;switch(y){case 0:return function(){return f.call(p)};case 1:return function(m){return f.call(p,m)};case 2:return function(m,v){return f.call(p,m,v)};case 3:return function(m,v,b){return f.call(p,m,v,b)}}return function(){return f.apply(p,arguments)}}},5005:function(c,d,o){var h=o(857),f=o(7854),p=function(y){return typeof y=="function"?y:void 0};c.exports=function(y,m){return arguments.length<2?p(h[y])||p(f[y]):h[y]&&h[y][m]||f[y]&&f[y][m]}},1246:function(c,d,o){var h=o(648),f=o(7497),p=o(5112),y=p("iterator");c.exports=function(m){if(m!=null)return m[y]||m["@@iterator"]||f[h(m)]}},8554:function(c,d,o){var h=o(9670),f=o(1246);c.exports=function(p){var y=f(p);if(typeof y!="function")throw TypeError(String(p)+" is not iterable");return h(y.call(p))}},647:function(c,d,o){var h=o(7908),f=Math.floor,p="".replace,y=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g;c.exports=function(v,b,k,E,w,I){var S=k+v.length,N=E.length,O=m;return w!==void 0&&(w=h(w),O=y),p.call(I,O,function(j,U){var ee;switch(U.charAt(0)){case"$":return"$";case"&":return v;case"`":return b.slice(0,k);case"'":return b.slice(S);case"<":ee=w[U.slice(1,-1)];break;default:var V=+U;if(V===0)return j;if(V>N){var W=f(V/10);return W===0?j:W<=N?E[W-1]===void 0?U.charAt(1):E[W-1]+U.charAt(1):j}ee=E[V-1]}return ee===void 0?"":ee})}},7854:function(c,d,o){var h=function(f){return f&&f.Math==Math&&f};c.exports=h(typeof globalThis=="object"&&globalThis)||h(typeof window=="object"&&window)||h(typeof self=="object"&&self)||h(typeof o.g=="object"&&o.g)||function(){return this}()||Function("return this")()},6656:function(c){var d={}.hasOwnProperty;c.exports=function(o,h){return d.call(o,h)}},3501:function(c){c.exports={}},490:function(c,d,o){var h=o(5005);c.exports=h("document","documentElement")},4664:function(c,d,o){var h=o(9781),f=o(7293),p=o(317);c.exports=!h&&!f(function(){return Object.defineProperty(p("div"),"a",{get:function(){return 7}}).a!=7})},1179:function(c){var d=Math.abs,o=Math.pow,h=Math.floor,f=Math.log,p=Math.LN2,y=function(v,b,k){var E=new Array(k),w=k*8-b-1,I=(1<>1,N=b===23?o(2,-24)-o(2,-77):0,O=v<0||v===0&&1/v<0?1:0,j=0,U,ee,V;for(v=d(v),v!=v||v===1/0?(ee=v!=v?1:0,U=I):(U=h(f(v)/p),v*(V=o(2,-U))<1&&(U--,V*=2),U+S>=1?v+=N/V:v+=N*o(2,1-S),v*V>=2&&(U++,V/=2),U+S>=I?(ee=0,U=I):U+S>=1?(ee=(v*V-1)*o(2,b),U=U+S):(ee=v*o(2,S-1)*o(2,b),U=0));b>=8;E[j++]=ee&255,ee/=256,b-=8);for(U=U<0;E[j++]=U&255,U/=256,w-=8);return E[--j]|=O*128,E},m=function(v,b){var k=v.length,E=k*8-b-1,w=(1<>1,S=E-7,N=k-1,O=v[N--],j=O&127,U;for(O>>=7;S>0;j=j*256+v[N],N--,S-=8);for(U=j&(1<<-S)-1,j>>=-S,S+=b;S>0;U=U*256+v[N],N--,S-=8);if(j===0)j=1-I;else{if(j===w)return U?NaN:O?-1/0:1/0;U=U+o(2,b),j=j-I}return(O?-1:1)*U*o(2,j-b)};c.exports={pack:y,unpack:m}},8361:function(c,d,o){var h=o(7293),f=o(4326),p="".split;c.exports=h(function(){return!Object("z").propertyIsEnumerable(0)})?function(y){return f(y)=="String"?p.call(y,""):Object(y)}:Object},9587:function(c,d,o){var h=o(111),f=o(7674);c.exports=function(p,y,m){var v,b;return f&&typeof(v=y.constructor)=="function"&&v!==m&&h(b=v.prototype)&&b!==m.prototype&&f(p,b),p}},2788:function(c,d,o){var h=o(5465),f=Function.toString;typeof h.inspectSource!="function"&&(h.inspectSource=function(p){return f.call(p)}),c.exports=h.inspectSource},9909:function(c,d,o){var h=o(8536),f=o(7854),p=o(111),y=o(8880),m=o(6656),v=o(5465),b=o(6200),k=o(3501),E=f.WeakMap,w,I,S,N=function(K){return S(K)?I(K):w(K,{})},O=function(K){return function(q){var R;if(!p(q)||(R=I(q)).type!==K)throw TypeError("Incompatible receiver, "+K+" required");return R}};if(h){var j=v.state||(v.state=new E),U=j.get,ee=j.has,V=j.set;w=function(K,q){return q.facade=K,V.call(j,K,q),q},I=function(K){return U.call(j,K)||{}},S=function(K){return ee.call(j,K)}}else{var W=b("state");k[W]=!0,w=function(K,q){return q.facade=K,y(K,W,q),q},I=function(K){return m(K,W)?K[W]:{}},S=function(K){return m(K,W)}}c.exports={set:w,get:I,has:S,enforce:N,getterFor:O}},7659:function(c,d,o){var h=o(5112),f=o(7497),p=h("iterator"),y=Array.prototype;c.exports=function(m){return m!==void 0&&(f.Array===m||y[p]===m)}},3157:function(c,d,o){var h=o(4326);c.exports=Array.isArray||function(p){return h(p)=="Array"}},4705:function(c,d,o){var h=o(7293),f=/#|\.prototype\./,p=function(k,E){var w=m[y(k)];return w==b?!0:w==v?!1:typeof E=="function"?h(E):!!E},y=p.normalize=function(k){return String(k).replace(f,".").toLowerCase()},m=p.data={},v=p.NATIVE="N",b=p.POLYFILL="P";c.exports=p},111:function(c){c.exports=function(d){return typeof d=="object"?d!==null:typeof d=="function"}},1913:function(c){c.exports=!1},7850:function(c,d,o){var h=o(111),f=o(4326),p=o(5112),y=p("match");c.exports=function(m){var v;return h(m)&&((v=m[y])!==void 0?!!v:f(m)=="RegExp")}},9212:function(c,d,o){var h=o(9670);c.exports=function(f){var p=f.return;if(p!==void 0)return h(p.call(f)).value}},3383:function(c,d,o){"use strict";var h=o(7293),f=o(9518),p=o(8880),y=o(6656),m=o(5112),v=o(1913),b=m("iterator"),k=!1,E=function(){return this},w,I,S;[].keys&&(S=[].keys(),"next"in S?(I=f(f(S)),I!==Object.prototype&&(w=I)):k=!0);var N=w==null||h(function(){var O={};return w[b].call(O)!==O});N&&(w={}),(!v||N)&&!y(w,b)&&p(w,b,E),c.exports={IteratorPrototype:w,BUGGY_SAFARI_ITERATORS:k}},7497:function(c){c.exports={}},133:function(c,d,o){var h=o(7293);c.exports=!!Object.getOwnPropertySymbols&&!h(function(){return!String(Symbol())})},590:function(c,d,o){var h=o(7293),f=o(5112),p=o(1913),y=f("iterator");c.exports=!h(function(){var m=new URL("b?a=1&b=2&c=3","http://a"),v=m.searchParams,b="";return m.pathname="c%20d",v.forEach(function(k,E){v.delete("b"),b+=E+k}),p&&!m.toJSON||!v.sort||m.href!=="http://a/c%20d?a=1&c=3"||v.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!v[y]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||b!=="a1c3"||new URL("http://x",void 0).host!=="x"})},8536:function(c,d,o){var h=o(7854),f=o(2788),p=h.WeakMap;c.exports=typeof p=="function"&&/native code/.test(f(p))},1574:function(c,d,o){"use strict";var h=o(9781),f=o(7293),p=o(1956),y=o(5181),m=o(5296),v=o(7908),b=o(8361),k=Object.assign,E=Object.defineProperty;c.exports=!k||f(function(){if(h&&k({b:1},k(E({},"a",{enumerable:!0,get:function(){E(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var w={},I={},S=Symbol(),N="abcdefghijklmnopqrst";return w[S]=7,N.split("").forEach(function(O){I[O]=O}),k({},w)[S]!=7||p(k({},I)).join("")!=N})?function(I,S){for(var N=v(I),O=arguments.length,j=1,U=y.f,ee=m.f;O>j;)for(var V=b(arguments[j++]),W=U?p(V).concat(U(V)):p(V),K=W.length,q=0,R;K>q;)R=W[q++],(!h||ee.call(V,R))&&(N[R]=V[R]);return N}:k},30:function(c,d,o){var h=o(9670),f=o(6048),p=o(748),y=o(3501),m=o(490),v=o(317),b=o(6200),k=">",E="<",w="prototype",I="script",S=b("IE_PROTO"),N=function(){},O=function(W){return E+I+k+W+E+"/"+I+k},j=function(W){W.write(O("")),W.close();var K=W.parentWindow.Object;return W=null,K},U=function(){var W=v("iframe"),K="java"+I+":",q;return W.style.display="none",m.appendChild(W),W.src=String(K),q=W.contentWindow.document,q.open(),q.write(O("document.F=Object")),q.close(),q.F},ee,V=function(){try{ee=document.domain&&new ActiveXObject("htmlfile")}catch{}V=ee?j(ee):U();for(var W=p.length;W--;)delete V[w][p[W]];return V()};y[S]=!0,c.exports=Object.create||function(K,q){var R;return K!==null?(N[w]=h(K),R=new N,N[w]=null,R[S]=K):R=V(),q===void 0?R:f(R,q)}},6048:function(c,d,o){var h=o(9781),f=o(3070),p=o(9670),y=o(1956);c.exports=h?Object.defineProperties:function(v,b){p(v);for(var k=y(b),E=k.length,w=0,I;E>w;)f.f(v,I=k[w++],b[I]);return v}},3070:function(c,d,o){var h=o(9781),f=o(4664),p=o(9670),y=o(7593),m=Object.defineProperty;d.f=h?m:function(b,k,E){if(p(b),k=y(k,!0),p(E),f)try{return m(b,k,E)}catch{}if("get"in E||"set"in E)throw TypeError("Accessors not supported");return"value"in E&&(b[k]=E.value),b}},1236:function(c,d,o){var h=o(9781),f=o(5296),p=o(9114),y=o(5656),m=o(7593),v=o(6656),b=o(4664),k=Object.getOwnPropertyDescriptor;d.f=h?k:function(w,I){if(w=y(w),I=m(I,!0),b)try{return k(w,I)}catch{}if(v(w,I))return p(!f.f.call(w,I),w[I])}},8006:function(c,d,o){var h=o(6324),f=o(748),p=f.concat("length","prototype");d.f=Object.getOwnPropertyNames||function(m){return h(m,p)}},5181:function(c,d){d.f=Object.getOwnPropertySymbols},9518:function(c,d,o){var h=o(6656),f=o(7908),p=o(6200),y=o(8544),m=p("IE_PROTO"),v=Object.prototype;c.exports=y?Object.getPrototypeOf:function(b){return b=f(b),h(b,m)?b[m]:typeof b.constructor=="function"&&b instanceof b.constructor?b.constructor.prototype:b instanceof Object?v:null}},6324:function(c,d,o){var h=o(6656),f=o(5656),p=o(1318).indexOf,y=o(3501);c.exports=function(m,v){var b=f(m),k=0,E=[],w;for(w in b)!h(y,w)&&h(b,w)&&E.push(w);for(;v.length>k;)h(b,w=v[k++])&&(~p(E,w)||E.push(w));return E}},1956:function(c,d,o){var h=o(6324),f=o(748);c.exports=Object.keys||function(y){return h(y,f)}},5296:function(c,d){"use strict";var o={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,f=h&&!o.call({1:2},1);d.f=f?function(y){var m=h(this,y);return!!m&&m.enumerable}:o},7674:function(c,d,o){var h=o(9670),f=o(6077);c.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var p=!1,y={},m;try{m=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,m.call(y,[]),p=y instanceof Array}catch{}return function(b,k){return h(b),f(k),p?m.call(b,k):b.__proto__=k,b}}():void 0)},288:function(c,d,o){"use strict";var h=o(1694),f=o(648);c.exports=h?{}.toString:function(){return"[object "+f(this)+"]"}},3887:function(c,d,o){var h=o(5005),f=o(8006),p=o(5181),y=o(9670);c.exports=h("Reflect","ownKeys")||function(v){var b=f.f(y(v)),k=p.f;return k?b.concat(k(v)):b}},857:function(c,d,o){var h=o(7854);c.exports=h},2248:function(c,d,o){var h=o(1320);c.exports=function(f,p,y){for(var m in p)h(f,m,p[m],y);return f}},1320:function(c,d,o){var h=o(7854),f=o(8880),p=o(6656),y=o(3505),m=o(2788),v=o(9909),b=v.get,k=v.enforce,E=String(String).split("String");(c.exports=function(w,I,S,N){var O=N?!!N.unsafe:!1,j=N?!!N.enumerable:!1,U=N?!!N.noTargetGet:!1,ee;if(typeof S=="function"&&(typeof I=="string"&&!p(S,"name")&&f(S,"name",I),ee=k(S),ee.source||(ee.source=E.join(typeof I=="string"?I:""))),w===h){j?w[I]=S:y(I,S);return}else O?!U&&w[I]&&(j=!0):delete w[I];j?w[I]=S:f(w,I,S)})(Function.prototype,"toString",function(){return typeof this=="function"&&b(this).source||m(this)})},7651:function(c,d,o){var h=o(4326),f=o(2261);c.exports=function(p,y){var m=p.exec;if(typeof m=="function"){var v=m.call(p,y);if(typeof v!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return v}if(h(p)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return f.call(p,y)}},2261:function(c,d,o){"use strict";var h=o(7066),f=o(2999),p=RegExp.prototype.exec,y=String.prototype.replace,m=p,v=function(){var w=/a/,I=/b*/g;return p.call(w,"a"),p.call(I,"a"),w.lastIndex!==0||I.lastIndex!==0}(),b=f.UNSUPPORTED_Y||f.BROKEN_CARET,k=/()??/.exec("")[1]!==void 0,E=v||k||b;E&&(m=function(I){var S=this,N,O,j,U,ee=b&&S.sticky,V=h.call(S),W=S.source,K=0,q=I;return ee&&(V=V.replace("y",""),V.indexOf("g")===-1&&(V+="g"),q=String(I).slice(S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&I[S.lastIndex-1]!==` -`)&&(W="(?: "+W+")",q=" "+q,K++),O=new RegExp("^(?:"+W+")",V)),k&&(O=new RegExp("^"+W+"$(?!\\s)",V)),v&&(N=S.lastIndex),j=p.call(ee?O:S,q),ee?j?(j.input=j.input.slice(K),j[0]=j[0].slice(K),j.index=S.lastIndex,S.lastIndex+=j[0].length):S.lastIndex=0:v&&j&&(S.lastIndex=S.global?j.index+j[0].length:N),k&&j&&j.length>1&&y.call(j[0],O,function(){for(U=1;U=E?y?"":void 0:(w=b.charCodeAt(k),w<55296||w>56319||k+1===E||(I=b.charCodeAt(k+1))<56320||I>57343?y?b.charAt(k):w:y?b.slice(k,k+2):(w-55296<<10)+(I-56320)+65536)}};c.exports={codeAt:p(!1),charAt:p(!0)}},3197:function(c){"use strict";var d=2147483647,o=36,h=1,f=26,p=38,y=700,m=72,v=128,b="-",k=/[^\0-\u007E]/,E=/[.\u3002\uFF0E\uFF61]/g,w="Overflow: input needs wider integers to process",I=o-h,S=Math.floor,N=String.fromCharCode,O=function(V){for(var W=[],K=0,q=V.length;K=55296&&R<=56319&&K>1,V+=S(V/W);V>I*f>>1;q+=o)V=S(V/I);return S(q+(I+1)*V/(V+p))},ee=function(V){var W=[];V=O(V);var K=V.length,q=v,R=0,T=m,H,Z;for(H=0;H=q&&ZS((d-R)/ae))throw RangeError(w);for(R+=(ne-q)*ae,q=ne,H=0;Hd)throw RangeError(w);if(Z==q){for(var F=R,A=o;;A+=o){var be=A<=T?h:A>=T+f?f:A-T;if(F0?o:d)(h)}},7466:function(c,d,o){var h=o(9958),f=Math.min;c.exports=function(p){return p>0?f(h(p),9007199254740991):0}},7908:function(c,d,o){var h=o(4488);c.exports=function(f){return Object(h(f))}},4590:function(c,d,o){var h=o(3002);c.exports=function(f,p){var y=h(f);if(y%p)throw RangeError("Wrong offset");return y}},3002:function(c,d,o){var h=o(9958);c.exports=function(f){var p=h(f);if(p<0)throw RangeError("The argument can't be less than 0");return p}},7593:function(c,d,o){var h=o(111);c.exports=function(f,p){if(!h(f))return f;var y,m;if(p&&typeof(y=f.toString)=="function"&&!h(m=y.call(f))||typeof(y=f.valueOf)=="function"&&!h(m=y.call(f))||!p&&typeof(y=f.toString)=="function"&&!h(m=y.call(f)))return m;throw TypeError("Can't convert object to primitive value")}},1694:function(c,d,o){var h=o(5112),f=h("toStringTag"),p={};p[f]="z",c.exports=String(p)==="[object z]"},9843:function(c,d,o){"use strict";var h=o(2109),f=o(7854),p=o(9781),y=o(3832),m=o(260),v=o(3331),b=o(5787),k=o(9114),E=o(8880),w=o(7466),I=o(7067),S=o(4590),N=o(7593),O=o(6656),j=o(648),U=o(111),ee=o(30),V=o(7674),W=o(8006).f,K=o(7321),q=o(2092).forEach,R=o(6340),T=o(3070),H=o(1236),Z=o(9909),P=o(9587),z=Z.get,ne=Z.set,ae=T.f,F=H.f,A=Math.round,be=f.RangeError,Fe=v.ArrayBuffer,xe=v.DataView,_e=m.NATIVE_ARRAY_BUFFER_VIEWS,ze=m.TYPED_ARRAY_TAG,qe=m.TypedArray,ge=m.TypedArrayPrototype,ke=m.aTypedArrayConstructor,je=m.isTypedArray,at="BYTES_PER_ELEMENT",gt="Wrong length",Re=function(Se,X){for(var de=0,ue=X.length,it=new(ke(Se))(ue);ue>de;)it[de]=X[de++];return it},Ie=function(Se,X){ae(Se,X,{get:function(){return z(this)[X]}})},Be=function(Se){var X;return Se instanceof Fe||(X=j(Se))=="ArrayBuffer"||X=="SharedArrayBuffer"},Ke=function(Se,X){return je(Se)&&typeof X!="symbol"&&X in Se&&String(+X)==String(X)},He=function(X,de){return Ke(X,de=N(de,!0))?k(2,X[de]):F(X,de)},Je=function(X,de,ue){return Ke(X,de=N(de,!0))&&U(ue)&&O(ue,"value")&&!O(ue,"get")&&!O(ue,"set")&&!ue.configurable&&(!O(ue,"writable")||ue.writable)&&(!O(ue,"enumerable")||ue.enumerable)?(X[de]=ue.value,X):ae(X,de,ue)};p?(_e||(H.f=He,T.f=Je,Ie(ge,"buffer"),Ie(ge,"byteOffset"),Ie(ge,"byteLength"),Ie(ge,"length")),h({target:"Object",stat:!0,forced:!_e},{getOwnPropertyDescriptor:He,defineProperty:Je}),c.exports=function(Se,X,de){var ue=Se.match(/\d+$/)[0]/8,it=Se+(de?"Clamped":"")+"Array",Ne="get"+Se,ot="set"+Se,Xe=f[it],et=Xe,We=et&&et.prototype,$t={},Lt=function(Mt,pt){var rt=z(Mt);return rt.view[Ne](pt*ue+rt.byteOffset,!0)},fr=function(Mt,pt,rt){var wt=z(Mt);de&&(rt=(rt=A(rt))<0?0:rt>255?255:rt&255),wt.view[ot](pt*ue+wt.byteOffset,rt,!0)},lt=function(Mt,pt){ae(Mt,pt,{get:function(){return Lt(this,pt)},set:function(rt){return fr(this,pt,rt)},enumerable:!0})};_e?y&&(et=X(function(Mt,pt,rt,wt){return b(Mt,et,it),P(function(){return U(pt)?Be(pt)?wt!==void 0?new Xe(pt,S(rt,ue),wt):rt!==void 0?new Xe(pt,S(rt,ue)):new Xe(pt):je(pt)?Re(et,pt):K.call(et,pt):new Xe(I(pt))}(),Mt,et)}),V&&V(et,qe),q(W(Xe),function(Mt){Mt in et||E(et,Mt,Xe[Mt])}),et.prototype=We):(et=X(function(Mt,pt,rt,wt){b(Mt,et,it);var dr=0,Et=0,Vt,kt,st;if(!U(pt))st=I(pt),kt=st*ue,Vt=new Fe(kt);else if(Be(pt)){Vt=pt,Et=S(rt,ue);var Ht=pt.byteLength;if(wt===void 0){if(Ht%ue||(kt=Ht-Et,kt<0))throw be(gt)}else if(kt=w(wt)*ue,kt+Et>Ht)throw be(gt);st=kt/ue}else return je(pt)?Re(et,pt):K.call(et,pt);for(ne(Mt,{buffer:Vt,byteOffset:Et,byteLength:kt,length:st,view:new xe(Vt)});drv;)k[v]=y[v++];return k}},7321:function(c,d,o){var h=o(7908),f=o(7466),p=o(1246),y=o(7659),m=o(9974),v=o(260).aTypedArrayConstructor;c.exports=function(k){var E=h(k),w=arguments.length,I=w>1?arguments[1]:void 0,S=I!==void 0,N=p(E),O,j,U,ee,V,W;if(N!=null&&!y(N))for(V=N.call(E),W=V.next,E=[];!(ee=W.call(V)).done;)E.push(ee.value);for(S&&w>2&&(I=m(I,arguments[2],2)),j=f(E.length),U=new(v(this))(j),O=0;j>O;O++)U[O]=S?I(E[O],O):E[O];return U}},9711:function(c){var d=0,o=Math.random();c.exports=function(h){return"Symbol("+String(h===void 0?"":h)+")_"+(++d+o).toString(36)}},3307:function(c,d,o){var h=o(133);c.exports=h&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},5112:function(c,d,o){var h=o(7854),f=o(2309),p=o(6656),y=o(9711),m=o(133),v=o(3307),b=f("wks"),k=h.Symbol,E=v?k:k&&k.withoutSetter||y;c.exports=function(w){return p(b,w)||(m&&p(k,w)?b[w]=k[w]:b[w]=E("Symbol."+w)),b[w]}},1361:function(c){c.exports=` -\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},8264:function(c,d,o){"use strict";var h=o(2109),f=o(7854),p=o(3331),y=o(6340),m="ArrayBuffer",v=p[m],b=f[m];h({global:!0,forced:b!==v},{ArrayBuffer:v}),y(m)},2222:function(c,d,o){"use strict";var h=o(2109),f=o(7293),p=o(3157),y=o(111),m=o(7908),v=o(7466),b=o(6135),k=o(5417),E=o(1194),w=o(5112),I=o(7392),S=w("isConcatSpreadable"),N=9007199254740991,O="Maximum allowed index exceeded",j=I>=51||!f(function(){var W=[];return W[S]=!1,W.concat()[0]!==W}),U=E("concat"),ee=function(W){if(!y(W))return!1;var K=W[S];return K!==void 0?!!K:p(W)},V=!j||!U;h({target:"Array",proto:!0,forced:V},{concat:function(K){var q=m(this),R=k(q,0),T=0,H,Z,P,z,ne;for(H=-1,P=arguments.length;HN)throw TypeError(O);for(Z=0;Z=N)throw TypeError(O);b(R,T++,ne)}return R.length=T,R}})},7327:function(c,d,o){"use strict";var h=o(2109),f=o(2092).filter,p=o(1194),y=p("filter");h({target:"Array",proto:!0,forced:!y},{filter:function(v){return f(this,v,arguments.length>1?arguments[1]:void 0)}})},2772:function(c,d,o){"use strict";var h=o(2109),f=o(1318).indexOf,p=o(9341),y=[].indexOf,m=!!y&&1/[1].indexOf(1,-0)<0,v=p("indexOf");h({target:"Array",proto:!0,forced:m||!v},{indexOf:function(k){return m?y.apply(this,arguments)||0:f(this,k,arguments.length>1?arguments[1]:void 0)}})},6992:function(c,d,o){"use strict";var h=o(5656),f=o(1223),p=o(7497),y=o(9909),m=o(654),v="Array Iterator",b=y.set,k=y.getterFor(v);c.exports=m(Array,"Array",function(E,w){b(this,{type:v,target:h(E),index:0,kind:w})},function(){var E=k(this),w=E.target,I=E.kind,S=E.index++;return!w||S>=w.length?(E.target=void 0,{value:void 0,done:!0}):I=="keys"?{value:S,done:!1}:I=="values"?{value:w[S],done:!1}:{value:[S,w[S]],done:!1}},"values"),p.Arguments=p.Array,f("keys"),f("values"),f("entries")},1249:function(c,d,o){"use strict";var h=o(2109),f=o(2092).map,p=o(1194),y=p("map");h({target:"Array",proto:!0,forced:!y},{map:function(v){return f(this,v,arguments.length>1?arguments[1]:void 0)}})},7042:function(c,d,o){"use strict";var h=o(2109),f=o(111),p=o(3157),y=o(1400),m=o(7466),v=o(5656),b=o(6135),k=o(5112),E=o(1194),w=E("slice"),I=k("species"),S=[].slice,N=Math.max;h({target:"Array",proto:!0,forced:!w},{slice:function(j,U){var ee=v(this),V=m(ee.length),W=y(j,V),K=y(U===void 0?V:U,V),q,R,T;if(p(ee)&&(q=ee.constructor,typeof q=="function"&&(q===Array||p(q.prototype))?q=void 0:f(q)&&(q=q[I],q===null&&(q=void 0)),q===Array||q===void 0))return S.call(ee,W,K);for(R=new(q===void 0?Array:q)(N(K-W,0)),T=0;WS)throw TypeError(N);for(T=v(ee,R),H=0;HV-R+q;H--)delete ee[H-1]}else if(q>R)for(H=V-R;H>W;H--)Z=H+R-1,P=H+q-1,Z in ee?ee[P]=ee[Z]:delete ee[P];for(H=0;H=E.length?{value:void 0,done:!0}:(I=h(E,w),k.index+=I.length,{value:I,done:!1})})},4723:function(c,d,o){"use strict";var h=o(7007),f=o(9670),p=o(7466),y=o(4488),m=o(1530),v=o(7651);h("match",1,function(b,k,E){return[function(I){var S=y(this),N=I==null?void 0:I[b];return N!==void 0?N.call(I,S):new RegExp(I)[b](String(S))},function(w){var I=E(k,w,this);if(I.done)return I.value;var S=f(w),N=String(this);if(!S.global)return v(S,N);var O=S.unicode;S.lastIndex=0;for(var j=[],U=0,ee;(ee=v(S,N))!==null;){var V=String(ee[0]);j[U]=V,V===""&&(S.lastIndex=m(N,p(S.lastIndex),O)),U++}return U===0?null:j}]})},5306:function(c,d,o){"use strict";var h=o(7007),f=o(9670),p=o(7466),y=o(9958),m=o(4488),v=o(1530),b=o(647),k=o(7651),E=Math.max,w=Math.min,I=function(S){return S===void 0?S:String(S)};h("replace",2,function(S,N,O,j){var U=j.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,ee=j.REPLACE_KEEPS_$0,V=U?"$":"$0";return[function(K,q){var R=m(this),T=K==null?void 0:K[S];return T!==void 0?T.call(K,R,q):N.call(String(R),K,q)},function(W,K){if(!U&&ee||typeof K=="string"&&K.indexOf(V)===-1){var q=O(N,W,this,K);if(q.done)return q.value}var R=f(W),T=String(this),H=typeof K=="function";H||(K=String(K));var Z=R.global;if(Z){var P=R.unicode;R.lastIndex=0}for(var z=[];;){var ne=k(R,T);if(ne===null||(z.push(ne),!Z))break;var ae=String(ne[0]);ae===""&&(R.lastIndex=v(T,p(R.lastIndex),P))}for(var F="",A=0,be=0;be=A&&(F+=T.slice(A,xe)+ke,A=xe+Fe.length)}return F+T.slice(A)}]})},3123:function(c,d,o){"use strict";var h=o(7007),f=o(7850),p=o(9670),y=o(4488),m=o(6707),v=o(1530),b=o(7466),k=o(7651),E=o(2261),w=o(7293),I=[].push,S=Math.min,N=4294967295,O=!w(function(){return!RegExp(N,"y")});h("split",2,function(j,U,ee){var V;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?V=function(W,K){var q=String(y(this)),R=K===void 0?N:K>>>0;if(R===0)return[];if(W===void 0)return[q];if(!f(W))return U.call(q,W,R);for(var T=[],H=(W.ignoreCase?"i":"")+(W.multiline?"m":"")+(W.unicode?"u":"")+(W.sticky?"y":""),Z=0,P=new RegExp(W.source,H+"g"),z,ne,ae;(z=E.call(P,q))&&(ne=P.lastIndex,!(ne>Z&&(T.push(q.slice(Z,z.index)),z.length>1&&z.index=R)));)P.lastIndex===z.index&&P.lastIndex++;return Z===q.length?(ae||!P.test(""))&&T.push(""):T.push(q.slice(Z)),T.length>R?T.slice(0,R):T}:"0".split(void 0,0).length?V=function(W,K){return W===void 0&&K===0?[]:U.call(this,W,K)}:V=U,[function(K,q){var R=y(this),T=K==null?void 0:K[j];return T!==void 0?T.call(K,R,q):V.call(String(R),K,q)},function(W,K){var q=ee(V,W,this,K,V!==U);if(q.done)return q.value;var R=p(W),T=String(this),H=m(R,RegExp),Z=R.unicode,P=(R.ignoreCase?"i":"")+(R.multiline?"m":"")+(R.unicode?"u":"")+(O?"y":"g"),z=new H(O?R:"^(?:"+R.source+")",P),ne=K===void 0?N:K>>>0;if(ne===0)return[];if(T.length===0)return k(z,T)===null?[T]:[];for(var ae=0,F=0,A=[];F2?arguments[2]:void 0)})},8927:function(c,d,o){"use strict";var h=o(260),f=o(2092).every,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("every",function(v){return f(p(this),v,arguments.length>1?arguments[1]:void 0)})},3105:function(c,d,o){"use strict";var h=o(260),f=o(1285),p=h.aTypedArray,y=h.exportTypedArrayMethod;y("fill",function(v){return f.apply(p(this),arguments)})},5035:function(c,d,o){"use strict";var h=o(260),f=o(2092).filter,p=o(3074),y=h.aTypedArray,m=h.exportTypedArrayMethod;m("filter",function(b){var k=f(y(this),b,arguments.length>1?arguments[1]:void 0);return p(this,k)})},7174:function(c,d,o){"use strict";var h=o(260),f=o(2092).findIndex,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("findIndex",function(v){return f(p(this),v,arguments.length>1?arguments[1]:void 0)})},4345:function(c,d,o){"use strict";var h=o(260),f=o(2092).find,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("find",function(v){return f(p(this),v,arguments.length>1?arguments[1]:void 0)})},2846:function(c,d,o){"use strict";var h=o(260),f=o(2092).forEach,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("forEach",function(v){f(p(this),v,arguments.length>1?arguments[1]:void 0)})},4731:function(c,d,o){"use strict";var h=o(260),f=o(1318).includes,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("includes",function(v){return f(p(this),v,arguments.length>1?arguments[1]:void 0)})},7209:function(c,d,o){"use strict";var h=o(260),f=o(1318).indexOf,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("indexOf",function(v){return f(p(this),v,arguments.length>1?arguments[1]:void 0)})},6319:function(c,d,o){"use strict";var h=o(7854),f=o(260),p=o(6992),y=o(5112),m=y("iterator"),v=h.Uint8Array,b=p.values,k=p.keys,E=p.entries,w=f.aTypedArray,I=f.exportTypedArrayMethod,S=v&&v.prototype[m],N=!!S&&(S.name=="values"||S.name==null),O=function(){return b.call(w(this))};I("entries",function(){return E.call(w(this))}),I("keys",function(){return k.call(w(this))}),I("values",O,!N),I(m,O,!N)},8867:function(c,d,o){"use strict";var h=o(260),f=h.aTypedArray,p=h.exportTypedArrayMethod,y=[].join;p("join",function(v){return y.apply(f(this),arguments)})},7789:function(c,d,o){"use strict";var h=o(260),f=o(6583),p=h.aTypedArray,y=h.exportTypedArrayMethod;y("lastIndexOf",function(v){return f.apply(p(this),arguments)})},3739:function(c,d,o){"use strict";var h=o(260),f=o(2092).map,p=o(6707),y=h.aTypedArray,m=h.aTypedArrayConstructor,v=h.exportTypedArrayMethod;v("map",function(k){return f(y(this),k,arguments.length>1?arguments[1]:void 0,function(E,w){return new(m(p(E,E.constructor)))(w)})})},4483:function(c,d,o){"use strict";var h=o(260),f=o(3671).right,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("reduceRight",function(v){return f(p(this),v,arguments.length,arguments.length>1?arguments[1]:void 0)})},9368:function(c,d,o){"use strict";var h=o(260),f=o(3671).left,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("reduce",function(v){return f(p(this),v,arguments.length,arguments.length>1?arguments[1]:void 0)})},2056:function(c,d,o){"use strict";var h=o(260),f=h.aTypedArray,p=h.exportTypedArrayMethod,y=Math.floor;p("reverse",function(){for(var v=this,b=f(v).length,k=y(b/2),E=0,w;E1?arguments[1]:void 0,1),S=this.length,N=y(w),O=f(N.length),j=0;if(O+I>S)throw RangeError("Wrong length");for(;jO;)U[O]=S[O++];return U},k)},7462:function(c,d,o){"use strict";var h=o(260),f=o(2092).some,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("some",function(v){return f(p(this),v,arguments.length>1?arguments[1]:void 0)})},3824:function(c,d,o){"use strict";var h=o(260),f=h.aTypedArray,p=h.exportTypedArrayMethod,y=[].sort;p("sort",function(v){return y.call(f(this),v)})},5021:function(c,d,o){"use strict";var h=o(260),f=o(7466),p=o(1400),y=o(6707),m=h.aTypedArray,v=h.exportTypedArrayMethod;v("subarray",function(k,E){var w=m(this),I=w.length,S=p(k,I);return new(y(w,w.constructor))(w.buffer,w.byteOffset+S*w.BYTES_PER_ELEMENT,f((E===void 0?I:p(E,I))-S))})},2974:function(c,d,o){"use strict";var h=o(7854),f=o(260),p=o(7293),y=h.Int8Array,m=f.aTypedArray,v=f.exportTypedArrayMethod,b=[].toLocaleString,k=[].slice,E=!!y&&p(function(){b.call(new y(1))}),w=p(function(){return[1,2].toLocaleString()!=new y([1,2]).toLocaleString()})||!p(function(){y.prototype.toLocaleString.call([1,2])});v("toLocaleString",function(){return b.apply(E?k.call(m(this)):m(this),arguments)},w)},5016:function(c,d,o){"use strict";var h=o(260).exportTypedArrayMethod,f=o(7293),p=o(7854),y=p.Uint8Array,m=y&&y.prototype||{},v=[].toString,b=[].join;f(function(){v.call({})})&&(v=function(){return b.call(this)});var k=m.toString!=v;h("toString",v,k)},2472:function(c,d,o){var h=o(9843);h("Uint8",function(f){return function(y,m,v){return f(this,y,m,v)}})},4747:function(c,d,o){var h=o(7854),f=o(8324),p=o(8533),y=o(8880);for(var m in f){var v=h[m],b=v&&v.prototype;if(b&&b.forEach!==p)try{y(b,"forEach",p)}catch{b.forEach=p}}},3948:function(c,d,o){var h=o(7854),f=o(8324),p=o(6992),y=o(8880),m=o(5112),v=m("iterator"),b=m("toStringTag"),k=p.values;for(var E in f){var w=h[E],I=w&&w.prototype;if(I){if(I[v]!==k)try{y(I,v,k)}catch{I[v]=k}if(I[b]||y(I,b,E),f[E]){for(var S in p)if(I[S]!==p[S])try{y(I,S,p[S])}catch{I[S]=p[S]}}}}},1637:function(c,d,o){"use strict";o(6992);var h=o(2109),f=o(5005),p=o(590),y=o(1320),m=o(2248),v=o(8003),b=o(4994),k=o(9909),E=o(5787),w=o(6656),I=o(9974),S=o(648),N=o(9670),O=o(111),j=o(30),U=o(9114),ee=o(8554),V=o(1246),W=o(5112),K=f("fetch"),q=f("Headers"),R=W("iterator"),T="URLSearchParams",H=T+"Iterator",Z=k.set,P=k.getterFor(T),z=k.getterFor(H),ne=/\+/g,ae=Array(4),F=function(Re){return ae[Re-1]||(ae[Re-1]=RegExp("((?:%[\\da-f]{2}){"+Re+"})","gi"))},A=function(Re){try{return decodeURIComponent(Re)}catch{return Re}},be=function(Re){var Ie=Re.replace(ne," "),Be=4;try{return decodeURIComponent(Ie)}catch{for(;Be;)Ie=Ie.replace(F(Be--),A);return Ie}},Fe=/[!'()~]|%20/g,xe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},_e=function(Re){return xe[Re]},ze=function(Re){return encodeURIComponent(Re).replace(Fe,_e)},qe=function(Re,Ie){if(Ie)for(var Be=Ie.split("&"),Ke=0,He,Je;Ke0?arguments[0]:void 0,Be=this,Ke=[],He,Je,Se,X,de,ue,it,Ne,ot;if(Z(Be,{type:T,entries:Ke,updateURL:function(){},updateSearchParams:ge}),Ie!==void 0)if(O(Ie))if(He=V(Ie),typeof He=="function")for(Je=He.call(Ie),Se=Je.next;!(X=Se.call(Je)).done;){if(de=ee(N(X.value)),ue=de.next,(it=ue.call(de)).done||(Ne=ue.call(de)).done||!ue.call(de).done)throw TypeError("Expected sequence with length 2");Ke.push({key:it.value+"",value:Ne.value+""})}else for(ot in Ie)w(Ie,ot)&&Ke.push({key:ot,value:Ie[ot]+""});else qe(Ke,typeof Ie=="string"?Ie.charAt(0)==="?"?Ie.slice(1):Ie:Ie+"")},gt=at.prototype;m(gt,{append:function(Ie,Be){ke(arguments.length,2);var Ke=P(this);Ke.entries.push({key:Ie+"",value:Be+""}),Ke.updateURL()},delete:function(Re){ke(arguments.length,1);for(var Ie=P(this),Be=Ie.entries,Ke=Re+"",He=0;HeHe.key){Be.splice(Je,0,He);break}Je===Se&&Be.push(He)}Ie.updateURL()},forEach:function(Ie){for(var Be=P(this).entries,Ke=I(Ie,arguments.length>1?arguments[1]:void 0,3),He=0,Je;He1&&(Ke=arguments[1],O(Ke)&&(He=Ke.body,S(He)===T&&(Je=Ke.headers?new q(Ke.headers):new q,Je.has("content-type")||Je.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),Ke=j(Ke,{body:U(0,String(He)),headers:U(0,Je)}))),Be.push(Ke)),K.apply(this,Be)}}),c.exports={URLSearchParams:at,getState:P}},285:function(c,d,o){"use strict";o(8783);var h=o(2109),f=o(9781),p=o(590),y=o(7854),m=o(6048),v=o(1320),b=o(5787),k=o(6656),E=o(1574),w=o(8457),I=o(8710).codeAt,S=o(3197),N=o(8003),O=o(1637),j=o(9909),U=y.URL,ee=O.URLSearchParams,V=O.getState,W=j.set,K=j.getterFor("URL"),q=Math.floor,R=Math.pow,T="Invalid authority",H="Invalid scheme",Z="Invalid host",P="Invalid port",z=/[A-Za-z]/,ne=/[\d+-.A-Za-z]/,ae=/\d/,F=/^(0x|0X)/,A=/^[0-7]+$/,be=/^\d+$/,Fe=/^[\dA-Fa-f]+$/,xe=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,_e=/[\u0000\t\u000A\u000D #/:?@[\\]]/,ze=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,qe=/[\t\u000A\u000D]/g,ge,ke=function(G,se){var pe,Te,Ae;if(se.charAt(0)=="["){if(se.charAt(se.length-1)!="]"||(pe=at(se.slice(1,-1)),!pe))return Z;G.host=pe}else if(X(G)){if(se=S(se),xe.test(se)||(pe=je(se),pe===null))return Z;G.host=pe}else{if(_e.test(se))return Z;for(pe="",Te=w(se),Ae=0;Ae4)return G;for(Te=[],Ae=0;Ae1&&Ye.charAt(0)=="0"&&(tt=F.test(Ye)?16:8,Ye=Ye.slice(tt==8?1:2)),Ye==="")bt=0;else{if(!(tt==10?be:tt==8?A:Fe).test(Ye))return G;bt=parseInt(Ye,tt)}Te.push(bt)}for(Ae=0;Ae=R(256,5-pe))return null}else if(bt>255)return null;for(Dt=Te.pop(),Ae=0;Ae6))return;for(bt=0;he();){if(Dt=null,bt>0)if(he()=="."&&bt<4)Ae++;else return;if(!ae.test(he()))return;for(;ae.test(he());){if(we=parseInt(he(),10),Dt===null)Dt=we;else{if(Dt==0)return;Dt=Dt*10+we}if(Dt>255)return;Ae++}se[pe]=se[pe]*256+Dt,bt++,(bt==2||bt==4)&&pe++}if(bt!=4)return;break}else if(he()==":"){if(Ae++,!he())return}else if(he())return;se[pe++]=Ye}if(Te!==null)for(D=pe-Te,pe=7;pe!=0&&D>0;)$=se[pe],se[pe--]=se[Te+D-1],se[Te+--D]=$;else if(pe!=8)return;return se},gt=function(G){for(var se=null,pe=1,Te=null,Ae=0,Ye=0;Ye<8;Ye++)G[Ye]!==0?(Ae>pe&&(se=Te,pe=Ae),Te=null,Ae=0):(Te===null&&(Te=Ye),++Ae);return Ae>pe&&(se=Te,pe=Ae),se},Re=function(G){var se,pe,Te,Ae;if(typeof G=="number"){for(se=[],pe=0;pe<4;pe++)se.unshift(G%256),G=q(G/256);return se.join(".")}else if(typeof G=="object"){for(se="",Te=gt(G),pe=0;pe<8;pe++)Ae&&G[pe]===0||(Ae&&(Ae=!1),Te===pe?(se+=pe?":":"::",Ae=!0):(se+=G[pe].toString(16),pe<7&&(se+=":")));return"["+se+"]"}return G},Ie={},Be=E({},Ie,{" ":1,'"':1,"<":1,">":1,"`":1}),Ke=E({},Be,{"#":1,"?":1,"{":1,"}":1}),He=E({},Ke,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Je=function(G,se){var pe=I(G,0);return pe>32&&pe<127&&!k(se,G)?G:encodeURIComponent(G)},Se={ftp:21,file:null,http:80,https:443,ws:80,wss:443},X=function(G){return k(Se,G.scheme)},de=function(G){return G.username!=""||G.password!=""},ue=function(G){return!G.host||G.cannotBeABaseURL||G.scheme=="file"},it=function(G,se){var pe;return G.length==2&&z.test(G.charAt(0))&&((pe=G.charAt(1))==":"||!se&&pe=="|")},Ne=function(G){var se;return G.length>1&&it(G.slice(0,2))&&(G.length==2||(se=G.charAt(2))==="/"||se==="\\"||se==="?"||se==="#")},ot=function(G){var se=G.path,pe=se.length;pe&&(G.scheme!="file"||pe!=1||!it(se[0],!0))&&se.pop()},Xe=function(G){return G==="."||G.toLowerCase()==="%2e"},et=function(G){return G=G.toLowerCase(),G===".."||G==="%2e."||G===".%2e"||G==="%2e%2e"},We={},$t={},Lt={},fr={},lt={},Mt={},pt={},rt={},wt={},dr={},Et={},Vt={},kt={},st={},Ht={},Ir={},hr={},pr={},$r={},zt={},yr={},ur=function(G,se,pe,Te){var Ae=pe||We,Ye=0,tt="",bt=!1,Dt=!1,we=!1,D,$,he,De;for(pe||(G.scheme="",G.username="",G.password="",G.host=null,G.port=null,G.path=[],G.query=null,G.fragment=null,G.cannotBeABaseURL=!1,se=se.replace(ze,"")),se=se.replace(qe,""),D=w(se);Ye<=D.length;){switch($=D[Ye],Ae){case We:if($&&z.test($))tt+=$.toLowerCase(),Ae=$t;else{if(pe)return H;Ae=Lt;continue}break;case $t:if($&&(ne.test($)||$=="+"||$=="-"||$=="."))tt+=$.toLowerCase();else if($==":"){if(pe&&(X(G)!=k(Se,tt)||tt=="file"&&(de(G)||G.port!==null)||G.scheme=="file"&&!G.host))return;if(G.scheme=tt,pe){X(G)&&Se[G.scheme]==G.port&&(G.port=null);return}tt="",G.scheme=="file"?Ae=st:X(G)&&Te&&Te.scheme==G.scheme?Ae=fr:X(G)?Ae=rt:D[Ye+1]=="/"?(Ae=lt,Ye++):(G.cannotBeABaseURL=!0,G.path.push(""),Ae=$r)}else{if(pe)return H;tt="",Ae=Lt,Ye=0;continue}break;case Lt:if(!Te||Te.cannotBeABaseURL&&$!="#")return H;if(Te.cannotBeABaseURL&&$=="#"){G.scheme=Te.scheme,G.path=Te.path.slice(),G.query=Te.query,G.fragment="",G.cannotBeABaseURL=!0,Ae=yr;break}Ae=Te.scheme=="file"?st:Mt;continue;case fr:if($=="/"&&D[Ye+1]=="/")Ae=wt,Ye++;else{Ae=Mt;continue}break;case lt:if($=="/"){Ae=dr;break}else{Ae=pr;continue}case Mt:if(G.scheme=Te.scheme,$==ge)G.username=Te.username,G.password=Te.password,G.host=Te.host,G.port=Te.port,G.path=Te.path.slice(),G.query=Te.query;else if($=="/"||$=="\\"&&X(G))Ae=pt;else if($=="?")G.username=Te.username,G.password=Te.password,G.host=Te.host,G.port=Te.port,G.path=Te.path.slice(),G.query="",Ae=zt;else if($=="#")G.username=Te.username,G.password=Te.password,G.host=Te.host,G.port=Te.port,G.path=Te.path.slice(),G.query=Te.query,G.fragment="",Ae=yr;else{G.username=Te.username,G.password=Te.password,G.host=Te.host,G.port=Te.port,G.path=Te.path.slice(),G.path.pop(),Ae=pr;continue}break;case pt:if(X(G)&&($=="/"||$=="\\"))Ae=wt;else if($=="/")Ae=dr;else{G.username=Te.username,G.password=Te.password,G.host=Te.host,G.port=Te.port,Ae=pr;continue}break;case rt:if(Ae=wt,$!="/"||tt.charAt(Ye+1)!="/")continue;Ye++;break;case wt:if($!="/"&&$!="\\"){Ae=dr;continue}break;case dr:if($=="@"){bt&&(tt="%40"+tt),bt=!0,he=w(tt);for(var ft=0;ft65535)return P;G.port=X(G)&&Yt===Se[G.scheme]?null:Yt,tt=""}if(pe)return;Ae=hr;continue}else return P;break;case st:if(G.scheme="file",$=="/"||$=="\\")Ae=Ht;else if(Te&&Te.scheme=="file")if($==ge)G.host=Te.host,G.path=Te.path.slice(),G.query=Te.query;else if($=="?")G.host=Te.host,G.path=Te.path.slice(),G.query="",Ae=zt;else if($=="#")G.host=Te.host,G.path=Te.path.slice(),G.query=Te.query,G.fragment="",Ae=yr;else{Ne(D.slice(Ye).join(""))||(G.host=Te.host,G.path=Te.path.slice(),ot(G)),Ae=pr;continue}else{Ae=pr;continue}break;case Ht:if($=="/"||$=="\\"){Ae=Ir;break}Te&&Te.scheme=="file"&&!Ne(D.slice(Ye).join(""))&&(it(Te.path[0],!0)?G.path.push(Te.path[0]):G.host=Te.host),Ae=pr;continue;case Ir:if($==ge||$=="/"||$=="\\"||$=="?"||$=="#"){if(!pe&&it(tt))Ae=pr;else if(tt==""){if(G.host="",pe)return;Ae=hr}else{if(De=ke(G,tt),De)return De;if(G.host=="localhost"&&(G.host=""),pe)return;tt="",Ae=hr}continue}else tt+=$;break;case hr:if(X(G)){if(Ae=pr,$!="/"&&$!="\\")continue}else if(!pe&&$=="?")G.query="",Ae=zt;else if(!pe&&$=="#")G.fragment="",Ae=yr;else if($!=ge&&(Ae=pr,$!="/"))continue;break;case pr:if($==ge||$=="/"||$=="\\"&&X(G)||!pe&&($=="?"||$=="#")){if(et(tt)?(ot(G),$!="/"&&!($=="\\"&&X(G))&&G.path.push("")):Xe(tt)?$!="/"&&!($=="\\"&&X(G))&&G.path.push(""):(G.scheme=="file"&&!G.path.length&&it(tt)&&(G.host&&(G.host=""),tt=tt.charAt(0)+":"),G.path.push(tt)),tt="",G.scheme=="file"&&($==ge||$=="?"||$=="#"))for(;G.path.length>1&&G.path[0]==="";)G.path.shift();$=="?"?(G.query="",Ae=zt):$=="#"&&(G.fragment="",Ae=yr)}else tt+=Je($,Ke);break;case $r:$=="?"?(G.query="",Ae=zt):$=="#"?(G.fragment="",Ae=yr):$!=ge&&(G.path[0]+=Je($,Ie));break;case zt:!pe&&$=="#"?(G.fragment="",Ae=yr):$!=ge&&($=="'"&&X(G)?G.query+="%27":$=="#"?G.query+="%23":G.query+=Je($,Ie));break;case yr:$!=ge&&(G.fragment+=Je($,Be));break}Ye++}},Qt=function(se){var pe=b(this,Qt,"URL"),Te=arguments.length>1?arguments[1]:void 0,Ae=String(se),Ye=W(pe,{type:"URL"}),tt,bt;if(Te!==void 0){if(Te instanceof Qt)tt=K(Te);else if(bt=ur(tt={},String(Te)),bt)throw TypeError(bt)}if(bt=ur(Ye,Ae,null,tt),bt)throw TypeError(bt);var Dt=Ye.searchParams=new ee,we=V(Dt);we.updateSearchParams(Ye.query),we.updateURL=function(){Ye.query=String(Dt)||null},f||(pe.href=oe.call(pe),pe.origin=Q.call(pe),pe.protocol=re.call(pe),pe.username=M.call(pe),pe.password=B.call(pe),pe.host=te.call(pe),pe.hostname=ce.call(pe),pe.port=me.call(pe),pe.pathname=ve.call(pe),pe.search=Le.call(pe),pe.searchParams=Oe.call(pe),pe.hash=Ce.call(pe))},ie=Qt.prototype,oe=function(){var G=K(this),se=G.scheme,pe=G.username,Te=G.password,Ae=G.host,Ye=G.port,tt=G.path,bt=G.query,Dt=G.fragment,we=se+":";return Ae!==null?(we+="//",de(G)&&(we+=pe+(Te?":"+Te:"")+"@"),we+=Re(Ae),Ye!==null&&(we+=":"+Ye)):se=="file"&&(we+="//"),we+=G.cannotBeABaseURL?tt[0]:tt.length?"/"+tt.join("/"):"",bt!==null&&(we+="?"+bt),Dt!==null&&(we+="#"+Dt),we},Q=function(){var G=K(this),se=G.scheme,pe=G.port;if(se=="blob")try{return new URL(se.path[0]).origin}catch{return"null"}return se=="file"||!X(G)?"null":se+"://"+Re(G.host)+(pe!==null?":"+pe:"")},re=function(){return K(this).scheme+":"},M=function(){return K(this).username},B=function(){return K(this).password},te=function(){var G=K(this),se=G.host,pe=G.port;return se===null?"":pe===null?Re(se):Re(se)+":"+pe},ce=function(){var G=K(this).host;return G===null?"":Re(G)},me=function(){var G=K(this).port;return G===null?"":String(G)},ve=function(){var G=K(this),se=G.path;return G.cannotBeABaseURL?se[0]:se.length?"/"+se.join("/"):""},Le=function(){var G=K(this).query;return G?"?"+G:""},Oe=function(){return K(this).searchParams},Ce=function(){var G=K(this).fragment;return G?"#"+G:""},Ve=function(G,se){return{get:G,set:se,configurable:!0,enumerable:!0}};if(f&&m(ie,{href:Ve(oe,function(G){var se=K(this),pe=String(G),Te=ur(se,pe);if(Te)throw TypeError(Te);V(se.searchParams).updateSearchParams(se.query)}),origin:Ve(Q),protocol:Ve(re,function(G){var se=K(this);ur(se,String(G)+":",We)}),username:Ve(M,function(G){var se=K(this),pe=w(String(G));if(!ue(se)){se.username="";for(var Te=0;Te=ie.length?{done:!0}:{done:!1,value:ie[re++]}},e:function(ve){throw ve},f:M}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B=!0,te=!1,ce;return{s:function(){Q=ie[Symbol.iterator]()},n:function(){var ve=Q.next();return B=ve.done,ve},e:function(ve){te=!0,ce=ve},f:function(){try{!B&&Q.return!=null&&Q.return()}finally{if(te)throw ce}}}}function Ie(ie,oe){if(!!ie){if(typeof ie=="string")return Be(ie,oe);var Q=Object.prototype.toString.call(ie).slice(8,-1);if(Q==="Object"&&ie.constructor&&(Q=ie.constructor.name),Q==="Map"||Q==="Set")return Array.from(ie);if(Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q))return Be(ie,oe)}}function Be(ie,oe){(oe==null||oe>ie.length)&&(oe=ie.length);for(var Q=0,re=new Array(oe);Q1?M-1:0),te=1;te=ie.length?{done:!0}:{done:!1,value:ie[re++]}},e:function(ve){throw ve},f:M}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B=!0,te=!1,ce;return{s:function(){Q=ie[Symbol.iterator]()},n:function(){var ve=Q.next();return B=ve.done,ve},e:function(ve){te=!0,ce=ve},f:function(){try{!B&&Q.return!=null&&Q.return()}finally{if(te)throw ce}}}}function it(ie,oe){if(!!ie){if(typeof ie=="string")return Ne(ie,oe);var Q=Object.prototype.toString.call(ie).slice(8,-1);if(Q==="Object"&&ie.constructor&&(Q=ie.constructor.name),Q==="Map"||Q==="Set")return Array.from(ie);if(Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q))return Ne(ie,oe)}}function Ne(ie,oe){(oe==null||oe>ie.length)&&(oe=ie.length);for(var Q=0,re=new Array(oe);Q'),this.element.appendChild(oe));var B=oe.getElementsByTagName("span")[0];return B&&(B.textContent!=null?B.textContent=this.options.dictFallbackMessage:B.innerText!=null&&(B.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(oe,Q,re,M){var B={srcX:0,srcY:0,srcWidth:oe.width,srcHeight:oe.height},te=oe.width/oe.height;Q==null&&re==null?(Q=B.srcWidth,re=B.srcHeight):Q==null?Q=re*te:re==null&&(re=Q/te),Q=Math.min(Q,B.srcWidth),re=Math.min(re,B.srcHeight);var ce=Q/re;if(B.srcWidth>Q||B.srcHeight>re)if(M==="crop")te>ce?(B.srcHeight=oe.height,B.srcWidth=B.srcHeight*ce):(B.srcWidth=oe.width,B.srcHeight=B.srcWidth/ce);else if(M==="contain")te>ce?re=Q/te:Q=re*te;else throw new Error("Unknown resizeMethod '".concat(M,"'"));return B.srcX=(oe.width-B.srcWidth)/2,B.srcY=(oe.height-B.srcHeight)/2,B.trgWidth=Q,B.trgHeight=re,B},transformFile:function(oe,Q){return(this.options.resizeWidth||this.options.resizeHeight)&&oe.type.match(/image.*/)?this.resizeImage(oe,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,Q):Q(oe)},previewTemplate:de,drop:function(oe){return this.element.classList.remove("dz-drag-hover")},dragstart:function(oe){},dragend:function(oe){return this.element.classList.remove("dz-drag-hover")},dragenter:function(oe){return this.element.classList.add("dz-drag-hover")},dragover:function(oe){return this.element.classList.add("dz-drag-hover")},dragleave:function(oe){return this.element.classList.remove("dz-drag-hover")},paste:function(oe){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(oe){var Q=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){oe.previewElement=st.createElement(this.options.previewTemplate.trim()),oe.previewTemplate=oe.previewElement,this.previewsContainer.appendChild(oe.previewElement);var re=ue(oe.previewElement.querySelectorAll("[data-dz-name]"),!0),M;try{for(re.s();!(M=re.n()).done;){var B=M.value;B.textContent=oe.name}}catch(Ce){re.e(Ce)}finally{re.f()}var te=ue(oe.previewElement.querySelectorAll("[data-dz-size]"),!0),ce;try{for(te.s();!(ce=te.n()).done;)B=ce.value,B.innerHTML=this.filesize(oe.size)}catch(Ce){te.e(Ce)}finally{te.f()}this.options.addRemoveLinks&&(oe._removeLink=st.createElement(''.concat(this.options.dictRemoveFile,"")),oe.previewElement.appendChild(oe._removeLink));var me=function(Ve){return Ve.preventDefault(),Ve.stopPropagation(),oe.status===st.UPLOADING?st.confirm(Q.options.dictCancelUploadConfirmation,function(){return Q.removeFile(oe)}):Q.options.dictRemoveFileConfirmation?st.confirm(Q.options.dictRemoveFileConfirmation,function(){return Q.removeFile(oe)}):Q.removeFile(oe)},ve=ue(oe.previewElement.querySelectorAll("[data-dz-remove]"),!0),Le;try{for(ve.s();!(Le=ve.n()).done;){var Oe=Le.value;Oe.addEventListener("click",me)}}catch(Ce){ve.e(Ce)}finally{ve.f()}}},removedfile:function(oe){return oe.previewElement!=null&&oe.previewElement.parentNode!=null&&oe.previewElement.parentNode.removeChild(oe.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(oe,Q){if(oe.previewElement){oe.previewElement.classList.remove("dz-file-preview");var re=ue(oe.previewElement.querySelectorAll("[data-dz-thumbnail]"),!0),M;try{for(re.s();!(M=re.n()).done;){var B=M.value;B.alt=oe.name,B.src=Q}}catch(te){re.e(te)}finally{re.f()}return setTimeout(function(){return oe.previewElement.classList.add("dz-image-preview")},1)}},error:function(oe,Q){if(oe.previewElement){oe.previewElement.classList.add("dz-error"),typeof Q!="string"&&Q.error&&(Q=Q.error);var re=ue(oe.previewElement.querySelectorAll("[data-dz-errormessage]"),!0),M;try{for(re.s();!(M=re.n()).done;){var B=M.value;B.textContent=Q}}catch(te){re.e(te)}finally{re.f()}}},errormultiple:function(){},processing:function(oe){if(oe.previewElement&&(oe.previewElement.classList.add("dz-processing"),oe._removeLink))return oe._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(oe,Q,re){if(oe.previewElement){var M=ue(oe.previewElement.querySelectorAll("[data-dz-uploadprogress]"),!0),B;try{for(M.s();!(B=M.n()).done;){var te=B.value;te.nodeName==="PROGRESS"?te.value=Q:te.style.width="".concat(Q,"%")}}catch(ce){M.e(ce)}finally{M.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(oe){if(oe.previewElement)return oe.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(oe){return this.emit("error",oe,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(oe){if(oe._removeLink&&(oe._removeLink.innerHTML=this.options.dictRemoveFile),oe.previewElement)return oe.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},Xe=ot;function et(ie){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?et=function(Q){return typeof Q}:et=function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},et(ie)}function We(ie,oe){var Q;if(typeof Symbol=="undefined"||ie[Symbol.iterator]==null){if(Array.isArray(ie)||(Q=$t(ie))||oe&&ie&&typeof ie.length=="number"){Q&&(ie=Q);var re=0,M=function(){};return{s:M,n:function(){return re>=ie.length?{done:!0}:{done:!1,value:ie[re++]}},e:function(ve){throw ve},f:M}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B=!0,te=!1,ce;return{s:function(){Q=ie[Symbol.iterator]()},n:function(){var ve=Q.next();return B=ve.done,ve},e:function(ve){te=!0,ce=ve},f:function(){try{!B&&Q.return!=null&&Q.return()}finally{if(te)throw ce}}}}function $t(ie,oe){if(!!ie){if(typeof ie=="string")return Lt(ie,oe);var Q=Object.prototype.toString.call(ie).slice(8,-1);if(Q==="Object"&&ie.constructor&&(Q=ie.constructor.name),Q==="Map"||Q==="Set")return Array.from(ie);if(Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q))return Lt(ie,oe)}}function Lt(ie,oe){(oe==null||oe>ie.length)&&(oe=ie.length);for(var Q=0,re=new Array(oe);Q"))),this.clickableElements.length){var B=function Oe(){M.hiddenFileInput&&M.hiddenFileInput.parentNode.removeChild(M.hiddenFileInput),M.hiddenFileInput=document.createElement("input"),M.hiddenFileInput.setAttribute("type","file"),(M.options.maxFiles===null||M.options.maxFiles>1)&&M.hiddenFileInput.setAttribute("multiple","multiple"),M.hiddenFileInput.className="dz-hidden-input",M.options.acceptedFiles!==null&&M.hiddenFileInput.setAttribute("accept",M.options.acceptedFiles),M.options.capture!==null&&M.hiddenFileInput.setAttribute("capture",M.options.capture),M.hiddenFileInput.setAttribute("tabindex","-1"),M.hiddenFileInput.style.visibility="hidden",M.hiddenFileInput.style.position="absolute",M.hiddenFileInput.style.top="0",M.hiddenFileInput.style.left="0",M.hiddenFileInput.style.height="0",M.hiddenFileInput.style.width="0",Q.getElement(M.options.hiddenInputContainer,"hiddenInputContainer").appendChild(M.hiddenFileInput),M.hiddenFileInput.addEventListener("change",function(){var Ce=M.hiddenFileInput.files;if(Ce.length){var Ve=We(Ce,!0),St;try{for(Ve.s();!(St=Ve.n()).done;){var mt=St.value;M.addFile(mt)}}catch(G){Ve.e(G)}finally{Ve.f()}}M.emit("addedfiles",Ce),Oe()})};B()}this.URL=window.URL!==null?window.URL:window.webkitURL;var te=We(this.events,!0),ce;try{for(te.s();!(ce=te.n()).done;){var me=ce.value;this.on(me,this.options[me])}}catch(Oe){te.e(Oe)}finally{te.f()}this.on("uploadprogress",function(){return M.updateTotalUploadProgress()}),this.on("removedfile",function(){return M.updateTotalUploadProgress()}),this.on("canceled",function(Oe){return M.emit("complete",Oe)}),this.on("complete",function(Oe){if(M.getAddedFiles().length===0&&M.getUploadingFiles().length===0&&M.getQueuedFiles().length===0)return setTimeout(function(){return M.emit("queuecomplete")},0)});var ve=function(Ce){if(Ce.dataTransfer.types){for(var Ve=0;Ve")),te+='');var ce=Q.createElement(te);return this.element.tagName!=="FORM"?(B=Q.createElement('
')),B.appendChild(ce)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),B!=null?B:ce}},{key:"getExistingFallback",value:function(){for(var M=function(Le){var Oe=We(Le,!0),Ce;try{for(Oe.s();!(Ce=Oe.n()).done;){var Ve=Ce.value;if(/(^| )fallback($| )/.test(Ve.className))return Ve}}catch(St){Oe.e(St)}finally{Oe.f()}},B=0,te=["div","form"];B0){for(var ce=["tb","gb","mb","kb","b"],me=0;me=Le){B=M/Math.pow(this.options.filesizeBase,4-me),te=ve;break}}B=Math.round(10*B)/10}return"".concat(B," ").concat(this.options.dictFileSizeUnits[te])}},{key:"_updateMaxFilesReachedClass",value:function(){return this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(M){if(!!M.dataTransfer){this.emit("drop",M);for(var B=[],te=0;te0){var Ce=We(Oe,!0),Ve;try{for(Ce.s();!(Ve=Ce.n()).done;){var St=Ve.value;St.isFile?St.file(function(mt){if(!(te.options.ignoreHiddenFiles&&mt.name.substring(0,1)==="."))return mt.fullPath="".concat(B,"/").concat(mt.name),te.addFile(mt)}):St.isDirectory&&te._addFilesFromDirectory(St,"".concat(B,"/").concat(St.name))}}catch(mt){Ce.e(mt)}finally{Ce.f()}Le()}return null},me)};return ve()}},{key:"accept",value:function(M,B){this.options.maxFilesize&&M.size>this.options.maxFilesize*1024*1024?B(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(M.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):Q.isValidFile(M,this.options.acceptedFiles)?this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(B(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",M)):this.options.accept.call(this,M,B):B(this.options.dictInvalidFileType)}},{key:"addFile",value:function(M){var B=this;M.upload={uuid:Q.uuidv4(),progress:0,total:M.size,bytesSent:0,filename:this._renameFile(M)},this.files.push(M),M.status=Q.ADDED,this.emit("addedfile",M),this._enqueueThumbnail(M),this.accept(M,function(te){te?(M.accepted=!1,B._errorProcessing([M],te)):(M.accepted=!0,B.options.autoQueue&&B.enqueueFile(M)),B._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(M){var B=We(M,!0),te;try{for(B.s();!(te=B.n()).done;){var ce=te.value;this.enqueueFile(ce)}}catch(me){B.e(me)}finally{B.f()}return null}},{key:"enqueueFile",value:function(M){var B=this;if(M.status===Q.ADDED&&M.accepted===!0){if(M.status=Q.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return B.processQueue()},0)}else throw new Error("This file can't be queued because it has already been processed or was rejected.")}},{key:"_enqueueThumbnail",value:function(M){var B=this;if(this.options.createImageThumbnails&&M.type.match(/image.*/)&&M.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(M),setTimeout(function(){return B._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var M=this;if(!(this._processingThumbnail||this._thumbnailQueue.length===0)){this._processingThumbnail=!0;var B=this._thumbnailQueue.shift();return this.createThumbnail(B,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(te){return M.emit("thumbnail",B,te),M._processingThumbnail=!1,M._processThumbnailQueue()})}}},{key:"removeFile",value:function(M){if(M.status===Q.UPLOADING&&this.cancelUpload(M),this.files=Ht(this.files,M),this.emit("removedfile",M),this.files.length===0)return this.emit("reset")}},{key:"removeAllFiles",value:function(M){M==null&&(M=!1);var B=We(this.files.slice(),!0),te;try{for(B.s();!(te=B.n()).done;){var ce=te.value;(ce.status!==Q.UPLOADING||M)&&this.removeFile(ce)}}catch(me){B.e(me)}finally{B.f()}return null}},{key:"resizeImage",value:function(M,B,te,ce,me){var ve=this;return this.createThumbnail(M,B,te,ce,!0,function(Le,Oe){if(Oe==null)return me(M);var Ce=ve.options.resizeMimeType;Ce==null&&(Ce=M.type);var Ve=Oe.toDataURL(Ce,ve.options.resizeQuality);return(Ce==="image/jpeg"||Ce==="image/jpg")&&(Ve=$r.restore(M.dataURL,Ve)),me(Q.dataURItoBlob(Ve))})}},{key:"createThumbnail",value:function(M,B,te,ce,me,ve){var Le=this,Oe=new FileReader;Oe.onload=function(){if(M.dataURL=Oe.result,M.type==="image/svg+xml"){ve!=null&&ve(Oe.result);return}Le.createThumbnailFromUrl(M,B,te,ce,me,ve)},Oe.readAsDataURL(M)}},{key:"displayExistingFile",value:function(M,B,te,ce){var me=this,ve=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(this.emit("addedfile",M),this.emit("complete",M),!ve)this.emit("thumbnail",M,B),te&&te();else{var Le=function(Ce){me.emit("thumbnail",M,Ce),te&&te()};M.dataURL=B,this.createThumbnailFromUrl(M,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,Le,ce)}}},{key:"createThumbnailFromUrl",value:function(M,B,te,ce,me,ve,Le){var Oe=this,Ce=document.createElement("img");return Le&&(Ce.crossOrigin=Le),me=getComputedStyle(document.body).imageOrientation=="from-image"?!1:me,Ce.onload=function(){var Ve=function(mt){return mt(1)};return typeof EXIF!="undefined"&&EXIF!==null&&me&&(Ve=function(mt){return EXIF.getData(Ce,function(){return mt(EXIF.getTag(this,"Orientation"))})}),Ve(function(St){M.width=Ce.width,M.height=Ce.height;var mt=Oe.options.resize.call(Oe,M,B,te,ce),G=document.createElement("canvas"),se=G.getContext("2d");switch(G.width=mt.trgWidth,G.height=mt.trgHeight,St>4&&(G.width=mt.trgHeight,G.height=mt.trgWidth),St){case 2:se.translate(G.width,0),se.scale(-1,1);break;case 3:se.translate(G.width,G.height),se.rotate(Math.PI);break;case 4:se.translate(0,G.height),se.scale(1,-1);break;case 5:se.rotate(.5*Math.PI),se.scale(1,-1);break;case 6:se.rotate(.5*Math.PI),se.translate(0,-G.width);break;case 7:se.rotate(.5*Math.PI),se.translate(G.height,-G.width),se.scale(-1,1);break;case 8:se.rotate(-.5*Math.PI),se.translate(-G.height,0);break}pr(se,Ce,mt.srcX!=null?mt.srcX:0,mt.srcY!=null?mt.srcY:0,mt.srcWidth,mt.srcHeight,mt.trgX!=null?mt.trgX:0,mt.trgY!=null?mt.trgY:0,mt.trgWidth,mt.trgHeight);var pe=G.toDataURL("image/png");if(ve!=null)return ve(pe,G)})},ve!=null&&(Ce.onerror=ve),Ce.src=M.dataURL}},{key:"processQueue",value:function(){var M=this.options.parallelUploads,B=this.getUploadingFiles().length,te=B;if(!(B>=M)){var ce=this.getQueuedFiles();if(ce.length>0){if(this.options.uploadMultiple)return this.processFiles(ce.slice(0,M-B));for(;te1?B-1:0),ce=1;ceB.options.chunkSize),M[0].upload.totalChunkCount=Math.ceil(ce.size/B.options.chunkSize)}if(M[0].upload.chunked){var me=M[0],ve=te[0],Le=0;me.upload.chunks=[];var Oe=function(){for(var G=0;me.upload.chunks[G]!==void 0;)G++;if(!(G>=me.upload.totalChunkCount)){Le++;var se=G*B.options.chunkSize,pe=Math.min(se+B.options.chunkSize,ve.size),Te={name:B._getParamName(0),data:ve.webkitSlice?ve.webkitSlice(se,pe):ve.slice(se,pe),filename:me.upload.filename,chunkIndex:G};me.upload.chunks[G]={file:me,index:G,dataBlock:Te,status:Q.UPLOADING,progress:0,retries:0},B._uploadData(M,[Te])}};if(me.upload.finishedChunkUpload=function(mt,G){var se=!0;mt.status=Q.SUCCESS,mt.dataBlock=null,mt.xhr=null;for(var pe=0;pe1?B-1:0),ce=1;ce=te;ce?B++:B--)M[B]=oe.charCodeAt(B);return new Blob([re],{type:Q})};var Ht=function(oe,Q){return oe.filter(function(re){return re!==Q}).map(function(re){return re})},Ir=function(oe){return oe.replace(/[\-_](\w)/g,function(Q){return Q.charAt(1).toUpperCase()})};st.createElement=function(ie){var oe=document.createElement("div");return oe.innerHTML=ie,oe.childNodes[0]},st.elementInside=function(ie,oe){if(ie===oe)return!0;for(;ie=ie.parentNode;)if(ie===oe)return!0;return!1},st.getElement=function(ie,oe){var Q;if(typeof ie=="string"?Q=document.querySelector(ie):ie.nodeType!=null&&(Q=ie),Q==null)throw new Error("Invalid `".concat(oe,"` option provided. Please provide a CSS selector or a plain HTML element."));return Q},st.getElements=function(ie,oe){var Q,re;if(ie instanceof Array){re=[];try{var M=We(ie,!0),B;try{for(M.s();!(B=M.n()).done;)Q=B.value,re.push(this.getElement(Q,oe))}catch(me){M.e(me)}finally{M.f()}}catch{re=null}}else if(typeof ie=="string"){re=[];var te=We(document.querySelectorAll(ie),!0),ce;try{for(te.s();!(ce=te.n()).done;)Q=ce.value,re.push(Q)}catch(me){te.e(me)}finally{te.f()}}else ie.nodeType!=null&&(re=[ie]);if(re==null||!re.length)throw new Error("Invalid `".concat(oe,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return re},st.confirm=function(ie,oe,Q){if(window.confirm(ie))return oe();if(Q!=null)return Q()},st.isValidFile=function(ie,oe){if(!oe)return!0;oe=oe.split(",");var Q=ie.type,re=Q.replace(/\/.*$/,""),M=We(oe,!0),B;try{for(M.s();!(B=M.n()).done;){var te=B.value;if(te=te.trim(),te.charAt(0)==="."){if(ie.name.toLowerCase().indexOf(te.toLowerCase(),ie.name.length-te.length)!==-1)return!0}else if(/\/\*$/.test(te)){if(re===te.replace(/\/.*$/,""))return!0}else if(Q===te)return!0}}catch(ce){M.e(ce)}finally{M.f()}return!1},typeof jQuery!="undefined"&&jQuery!==null&&(jQuery.fn.dropzone=function(ie){return this.each(function(){return new st(this,ie)})}),st.ADDED="added",st.QUEUED="queued",st.ACCEPTED=st.QUEUED,st.UPLOADING="uploading",st.PROCESSING=st.UPLOADING,st.CANCELED="canceled",st.ERROR="error",st.SUCCESS="success";var hr=function(oe){var Q=oe.naturalWidth,re=oe.naturalHeight,M=document.createElement("canvas");M.width=1,M.height=re;var B=M.getContext("2d");B.drawImage(oe,0,0);for(var te=B.getImageData(1,0,1,re),ce=te.data,me=0,ve=re,Le=re;Le>me;){var Oe=ce[(Le-1)*4+3];Oe===0?ve=Le:me=Le,Le=ve+me>>1}var Ce=Le/re;return Ce===0?1:Ce},pr=function(oe,Q,re,M,B,te,ce,me,ve,Le){var Oe=hr(Q);return oe.drawImage(Q,re,M,B,te,ce,me,ve,Le/Oe)},$r=function(){function ie(){fr(this,ie)}return Mt(ie,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(Q){for(var re="",M=void 0,B=void 0,te="",ce=void 0,me=void 0,ve=void 0,Le="",Oe=0;M=Q[Oe++],B=Q[Oe++],te=Q[Oe++],ce=M>>2,me=(M&3)<<4|B>>4,ve=(B&15)<<2|te>>6,Le=te&63,isNaN(B)?ve=Le=64:isNaN(te)&&(Le=64),re=re+this.KEY_STR.charAt(ce)+this.KEY_STR.charAt(me)+this.KEY_STR.charAt(ve)+this.KEY_STR.charAt(Le),M=B=te="",ce=me=ve=Le="",OeQ.length)break}return M}},{key:"decode64",value:function(Q){var re="",M=void 0,B=void 0,te="",ce=void 0,me=void 0,ve=void 0,Le="",Oe=0,Ce=[],Ve=/[^A-Za-z0-9\+\/\=]/g;for(Ve.exec(Q)&&console.warn(`There were invalid base64 characters in the input text. +`?"n":!fe||/\s/.test(Ee)?null:"p";if(fe&&!ye&&!Pe&&(Pe="s"),ee&&ee!=Pe){s<0&&(s=1,V(),r.sticky="after");break}if(Pe&&(ee=Pe),s>0&&!V(!ye))break}var je=jo(e,r,m,x,!0);return q(m,je)&&(je.hitSide=!0),je}function Pc(e,r,s,o){var u=e.doc,m=r.left,x;if(o=="page"){var _=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),T=Math.max(_-.5*Yn(e.display),3);x=(s>0?r.bottom:r.top)+s*T}else o=="line"&&(x=s>0?r.bottom+3:r.top-3);for(var L;L=es(e,m,x),!!L.outside;){if(s<0?x<=0:x>=u.height){L.hitSide=!0;break}x+=s*5}return L}var Ot=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Fe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ot.prototype.init=function(e){var r=this,s=this,o=s.cm,u=s.div=e.lineDiv;u.contentEditable=!0,Mc(u,o.options.spellcheck,o.options.autocorrect,o.options.autocapitalize);function m(_){for(var T=_.target;T;T=T.parentNode){if(T==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(T.className))break}return!1}lt(u,"paste",function(_){!m(_)||wt(o,_)||Dc(_,o)||h<=11&&setTimeout(rr(o,function(){return r.updateFromDOM()}),20)}),lt(u,"compositionstart",function(_){r.composing={data:_.data,done:!1}}),lt(u,"compositionupdate",function(_){r.composing||(r.composing={data:_.data,done:!1})}),lt(u,"compositionend",function(_){r.composing&&(_.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),lt(u,"touchstart",function(){return s.forceCompositionEnd()}),lt(u,"input",function(){r.composing||r.readFromDOMSoon()});function x(_){if(!(!m(_)||wt(o,_))){if(o.somethingSelected())Ko({lineWise:!1,text:o.getSelections()}),_.type=="cut"&&o.replaceSelection("",null,"cut");else if(o.options.lineWiseCopyCut){var T=Fc(o);Ko({lineWise:!0,text:T.text}),_.type=="cut"&&o.operation(function(){o.setSelections(T.ranges,0,qe),o.replaceSelection("",null,"cut")})}else return;if(_.clipboardData){_.clipboardData.clearData();var L=Hr.text.join(` +`);if(_.clipboardData.setData("Text",L),_.clipboardData.getData("Text")==L){_.preventDefault();return}}var V=Oc(),ee=V.firstChild;o.display.lineSpace.insertBefore(V,o.display.lineSpace.firstChild),ee.value=Hr.text.join(` +`);var fe=R();ae(ee),setTimeout(function(){o.display.lineSpace.removeChild(V),fe.focus(),fe==u&&s.showPrimarySelection()},50)}}lt(u,"copy",x),lt(u,"cut",x)},Ot.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ot.prototype.prepareSelection=function(){var e=_u(this.cm,!1);return e.focus=R()==this.div,e},Ot.prototype.showSelection=function(e,r){!e||!this.cm.display.view.length||((e.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ot.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ot.prototype.showPrimarySelection=function(){var e=this.getSelection(),r=this.cm,s=r.doc.sel.primary(),o=s.from(),u=s.to();if(r.display.viewTo==r.display.viewFrom||o.line>=r.display.viewTo||u.line=r.display.viewFrom&&Rc(r,o)||{node:_[0].measure.map[2],offset:0},L=u.linee.firstLine()&&(o=we(o.line-1,se(e.doc,o.line-1).length)),u.ch==se(e.doc,u.line).text.length&&u.liner.viewTo-1)return!1;var m,x,_;o.line==r.viewFrom||(m=In(e,o.line))==0?(x=Ye(r.view[0].line),_=r.view[0].node):(x=Ye(r.view[m].line),_=r.view[m-1].node.nextSibling);var T=In(e,u.line),L,V;if(T==r.view.length-1?(L=r.viewTo-1,V=r.lineDiv.lastChild):(L=Ye(r.view[T+1].line)-1,V=r.view[T+1].node.previousSibling),!_)return!1;for(var ee=e.doc.splitLines(vx(e,_,V,x,L)),fe=pe(e.doc,we(x,0),we(L,se(e.doc,L).text.length));ee.length>1&&fe.length>1;)if(Re(ee)==Re(fe))ee.pop(),fe.pop(),L--;else if(ee[0]==fe[0])ee.shift(),fe.shift(),x++;else break;for(var le=0,ye=0,Ee=ee[0],Pe=fe[0],je=Math.min(Ee.length,Pe.length);leo.ch&&Qe.charCodeAt(Qe.length-ye-1)==$e.charCodeAt($e.length-ye-1);)le--,ye++;ee[ee.length-1]=Qe.slice(0,Qe.length-ye).replace(/^\u200b+/,""),ee[0]=ee[0].slice(le).replace(/\u200b+$/,"");var ct=we(x,le),ut=we(L,fe.length?Re(fe).length-ye:0);if(ee.length>1||ee[0]||D(ct,ut))return ni(e.doc,ee,ct,ut,"+input"),!0},Ot.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ot.prototype.reset=function(){this.forceCompositionEnd()},Ot.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ot.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))},Ot.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ar(this.cm,function(){return kr(e.cm)})},Ot.prototype.setUneditable=function(e){e.contentEditable="false"},Ot.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||rr(this.cm,As)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Ot.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Ot.prototype.onContextMenu=function(){},Ot.prototype.resetPosition=function(){},Ot.prototype.needsContentAttribute=!0;function Rc(e,r){var s=Za(e,r.line);if(!s||s.hidden)return null;var o=se(e.doc,r.line),u=uu(s,o,r.line),m=Lt(o,e.doc.direction),x="left";if(m){var _=We(m,r.ch);x=_%2?"right":"left"}var T=du(u.map,r.ch,x);return T.offset=T.collapse=="right"?T.end:T.start,T}function gx(e){for(var r=e;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function li(e,r){return r&&(e.bad=!0),e}function vx(e,r,s,o,u){var m="",x=!1,_=e.doc.lineSeparator(),T=!1;function L(le){return function(ye){return ye.id==le}}function V(){x&&(m+=_,T&&(m+=_),x=T=!1)}function ee(le){le&&(V(),m+=le)}function fe(le){if(le.nodeType==1){var ye=le.getAttribute("cm-text");if(ye){ee(ye);return}var Ee=le.getAttribute("cm-marker"),Pe;if(Ee){var je=e.findMarks(we(o,0),we(u+1,0),L(+Ee));je.length&&(Pe=je[0].find(0))&&ee(pe(e.doc,Pe.from,Pe.to).join(_));return}if(le.getAttribute("contenteditable")=="false")return;var Qe=/^(pre|div|p|li|table|br)$/i.test(le.nodeName);if(!/^br$/i.test(le.nodeName)&&le.textContent.length==0)return;Qe&&V();for(var $e=0;$e=9&&r.hasSelection&&(r.hasSelection=null),s.poll()}),lt(u,"paste",function(x){wt(o,x)||Dc(x,o)||(o.state.pasteIncoming=+new Date,s.fastPoll())});function m(x){if(!wt(o,x)){if(o.somethingSelected())Ko({lineWise:!1,text:o.getSelections()});else if(o.options.lineWiseCopyCut){var _=Fc(o);Ko({lineWise:!0,text:_.text}),x.type=="cut"?o.setSelections(_.ranges,null,qe):(s.prevInput="",u.value=_.text.join(` +`),ae(u))}else return;x.type=="cut"&&(o.state.cutIncoming=+new Date)}}lt(u,"cut",m),lt(u,"copy",m),lt(e.scroller,"paste",function(x){if(!(ln(e,x)||wt(o,x))){if(!u.dispatchEvent){o.state.pasteIncoming=+new Date,s.focus();return}var _=new Event("paste");_.clipboardData=x.clipboardData,u.dispatchEvent(_)}}),lt(e.lineSpace,"selectstart",function(x){ln(e,x)||kt(x)}),lt(u,"compositionstart",function(){var x=o.getCursor("from");s.composing&&s.composing.range.clear(),s.composing={start:x,range:o.markText(x,o.getCursor("to"),{className:"CodeMirror-composing"})}}),lt(u,"compositionend",function(){s.composing&&(s.poll(),s.composing.range.clear(),s.composing=null)})},Wt.prototype.createField=function(e){this.wrapper=Oc(),this.textarea=this.wrapper.firstChild},Wt.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Wt.prototype.prepareSelection=function(){var e=this.cm,r=e.display,s=e.doc,o=_u(e);if(e.options.moveInputWithCursor){var u=$r(e,s.sel.primary().head,"div"),m=r.wrapper.getBoundingClientRect(),x=r.lineDiv.getBoundingClientRect();o.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,u.top+x.top-m.top)),o.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,u.left+x.left-m.left))}return o},Wt.prototype.showSelection=function(e){var r=this.cm,s=r.display;j(s.cursorDiv,e.cursors),j(s.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Wt.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var r=this.cm;if(r.somethingSelected()){this.prevInput="";var s=r.getSelection();this.textarea.value=s,r.state.focused&&ae(this.textarea),a&&h>=9&&(this.hasSelection=s)}else e||(this.prevInput=this.textarea.value="",a&&h>=9&&(this.hasSelection=null))}},Wt.prototype.getField=function(){return this.textarea},Wt.prototype.supportsTouch=function(){return!1},Wt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!I||R()!=this.textarea))try{this.textarea.focus()}catch{}},Wt.prototype.blur=function(){this.textarea.blur()},Wt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wt.prototype.receivedFocus=function(){this.slowPoll()},Wt.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Wt.prototype.fastPoll=function(){var e=!1,r=this;r.pollingFast=!0;function s(){var o=r.poll();!o&&!e?(e=!0,r.polling.set(60,s)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,s)},Wt.prototype.poll=function(){var e=this,r=this.cm,s=this.textarea,o=this.prevInput;if(this.contextMenuPending||!r.state.focused||oe(s)&&!o&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var u=s.value;if(u==o&&!r.somethingSelected())return!1;if(a&&h>=9&&this.hasSelection===u||S&&/[\uf700-\uf7ff]/.test(u))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var m=u.charCodeAt(0);if(m==8203&&!o&&(o="\u200B"),m==8666)return this.reset(),this.cm.execCommand("undo")}for(var x=0,_=Math.min(o.length,u.length);x<_&&o.charCodeAt(x)==u.charCodeAt(x);)++x;return Ar(r,function(){As(r,u.slice(x),o.length-x,null,e.composing?"*compose":null),u.length>1e3||u.indexOf(` +`)>-1?s.value=e.prevInput="":e.prevInput=u,e.composing&&(e.composing.range.clear(),e.composing.range=r.markText(e.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Wt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wt.prototype.onKeyPress=function(){a&&h>=9&&(this.hasSelection=null),this.fastPoll()},Wt.prototype.onContextMenu=function(e){var r=this,s=r.cm,o=s.display,u=r.textarea;r.contextMenuPending&&r.contextMenuPending();var m=Dn(s,e),x=o.scroller.scrollTop;if(!m||g)return;var _=s.options.resetSelectionOnContextMenu;_&&s.doc.sel.contains(m)==-1&&rr(s,mr)(s.doc,bn(m),qe);var T=u.style.cssText,L=r.wrapper.style.cssText,V=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px; + top: `+(e.clientY-V.top-5)+"px; left: "+(e.clientX-V.left-5)+`px; + z-index: 1000; background: `+(a?"rgba(255, 255, 255, .05)":"transparent")+`; + outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ee;f&&(ee=window.scrollY),o.input.focus(),f&&window.scrollTo(null,ee),o.input.reset(),s.somethingSelected()||(u.value=r.prevInput=" "),r.contextMenuPending=le,o.selForContextMenu=s.doc.sel,clearTimeout(o.detectingSelectAll);function fe(){if(u.selectionStart!=null){var Ee=s.somethingSelected(),Pe="\u200B"+(Ee?u.value:"");u.value="\u21DA",u.value=Pe,r.prevInput=Ee?"":"\u200B",u.selectionStart=1,u.selectionEnd=Pe.length,o.selForContextMenu=s.doc.sel}}function le(){if(r.contextMenuPending==le&&(r.contextMenuPending=!1,r.wrapper.style.cssText=L,u.style.cssText=T,a&&h<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=x),u.selectionStart!=null)){(!a||a&&h<9)&&fe();var Ee=0,Pe=function(){o.selForContextMenu==s.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&r.prevInput=="\u200B"?rr(s,ec)(s):Ee++<10?o.detectingSelectAll=setTimeout(Pe,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(Pe,200)}}if(a&&h>=9&&fe(),J){Ir(e);var ye=function(){pt(window,"mouseup",ye),setTimeout(le,20)};lt(window,"mouseup",ye)}else setTimeout(le,50)},Wt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Wt.prototype.setUneditable=function(){},Wt.prototype.needsContentAttribute=!1;function bx(e,r){if(r=r?A(r):{},r.value=e.value,!r.tabindex&&e.tabIndex&&(r.tabindex=e.tabIndex),!r.placeholder&&e.placeholder&&(r.placeholder=e.placeholder),r.autofocus==null){var s=R();r.autofocus=s==e||e.getAttribute("autofocus")!=null&&s==document.body}function o(){e.value=_.getValue()}var u;if(e.form&&(lt(e.form,"submit",o),!r.leaveSubmitMethodAlone)){var m=e.form;u=m.submit;try{var x=m.submit=function(){o(),m.submit=u,m.submit(),m.submit=x}}catch{}}r.finishInit=function(T){T.save=o,T.getTextArea=function(){return e},T.toTextArea=function(){T.toTextArea=isNaN,o(),e.parentNode.removeChild(T.getWrapperElement()),e.style.display="",e.form&&(pt(e.form,"submit",o),!r.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=u))}},e.style.display="none";var _=Nt(function(T){return e.parentNode.insertBefore(T,e.nextSibling)},r);return _}function xx(e){e.off=pt,e.on=lt,e.wheelEventPixels=Tb,e.Doc=_r,e.splitLines=ie,e.countColumn=be,e.findColumn=Ue,e.isWordChar=Se,e.Pass=ze,e.signal=rt,e.Line=Gn,e.changeEnd=xn,e.scrollbarModel=Du,e.Pos=we,e.cmpPos=D,e.modes=B,e.mimeModes=te,e.resolveMode=ve,e.getMode=Le,e.modeExtensions=Oe,e.extendMode=Ce,e.copyState=Ve,e.startState=mt,e.innerMode=St,e.commands=Vi,e.keyMap=cn,e.keyName=gc,e.isModifierKey=pc,e.lookupKey=oi,e.normalizeKeyMap=Yb,e.StringStream=W,e.SharedTextMarker=Wi,e.TextMarker=kn,e.LineWidget=Hi,e.e_preventDefault=kt,e.e_stopPropagation=st,e.e_stop=Ir,e.addClass=N,e.contains=Z,e.rmClass=Y,e.keyNames=_n}fx(Nt),mx(Nt);var wx="iter insert remove copy getEditor constructor".split(" ");for(var Yo in _r.prototype)_r.prototype.hasOwnProperty(Yo)&&xe(wx,Yo)<0&&(Nt.prototype[Yo]=function(e){return function(){return e.apply(this.doc,arguments)}}(_r.prototype[Yo]));return Vt(_r),Nt.inputStyles={textarea:Wt,contenteditable:Ot},Nt.defineMode=function(e){!Nt.defaults.mode&&e!="null"&&(Nt.defaults.mode=e),ce.apply(this,arguments)},Nt.defineMIME=me,Nt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Nt.defineMIME("text/plain","null"),Nt.defineExtension=function(e,r){Nt.prototype[e]=r},Nt.defineDocExtension=function(e,r){_r.prototype[e]=r},Nt.fromTextArea=bx,xx(Nt),Nt.version="5.63.3",Nt})});var Qs=Me((po,Zs)=>{(function(i,t){typeof po=="object"&&typeof Zs=="object"?Zs.exports=t():typeof define=="function"&&define.amd?define([],t):typeof po=="object"?po.ClipboardJS=t():i.ClipboardJS=t()})(po,function(){return t={134:function(l,c,d){"use strict";d.d(c,{default:function(){return S}});var c=d(279),a=d.n(c),c=d(370),h=d.n(c),c=d(817),f=d.n(c);function p(P){return(p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F})(P)}function y(P,F){for(var H=0;H{(function(i){typeof Pf=="object"&&typeof Rf=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("css",function(K,Y){var G=Y.inline;Y.propertyKeywords||(Y=i.resolveMode("text/css"));var j=K.indentUnit,z=Y.tokenHooks,C=Y.documentTypes||{},U=Y.mediaTypes||{},Z=Y.mediaFeatures||{},R=Y.mediaValueKeywords||{},N=Y.propertyKeywords||{},ne=Y.nonStandardPropertyKeywords||{},ae=Y.fontProperties||{},M=Y.counterDescriptors||{},A=Y.colorKeywords||{},be=Y.valueKeywords||{},Fe=Y.allowNested,xe=Y.lineComment,_e=Y.supportsAtComponent===!0,ze=K.highlightNonStandardPropertyKeywords!==!1,qe,ge;function ke(X,de){return qe=de,X}function Ue(X,de){var ue=X.next();if(z[ue]){var it=z[ue](X,de);if(it!==!1)return it}if(ue=="@")return X.eatWhile(/[\w\\\-]/),ke("def",X.current());if(ue=="="||(ue=="~"||ue=="|")&&X.eat("="))return ke(null,"compare");if(ue=='"'||ue=="'")return de.tokenize=at(ue),de.tokenize(X,de);if(ue=="#")return X.eatWhile(/[\w\\\-]/),ke("atom","hash");if(ue=="!")return X.match(/^\s*\w*/),ke("keyword","important");if(/\d/.test(ue)||ue=="."&&X.eat(/\d/))return X.eatWhile(/[\w.%]/),ke("number","unit");if(ue==="-"){if(/[\d.]/.test(X.peek()))return X.eatWhile(/[\w.%]/),ke("number","unit");if(X.match(/^-[\w\\\-]*/))return X.eatWhile(/[\w\\\-]/),X.match(/^\s*:/,!1)?ke("variable-2","variable-definition"):ke("variable-2","variable");if(X.match(/^\w+-/))return ke("meta","meta")}else return/[,+>*\/]/.test(ue)?ke(null,"select-op"):ue=="."&&X.match(/^-?[_a-z][_a-z0-9-]*/i)?ke("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(ue)?ke(null,ue):X.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(X.current())&&(de.tokenize=gt),ke("variable callee","variable")):/[\w\\\-]/.test(ue)?(X.eatWhile(/[\w\\\-]/),ke("property","word")):ke(null,null)}function at(X){return function(de,ue){for(var it=!1,Ne;(Ne=de.next())!=null;){if(Ne==X&&!it){X==")"&&de.backUp(1);break}it=!it&&Ne=="\\"}return(Ne==X||!it&&X!=")")&&(ue.tokenize=null),ke("string","string")}}function gt(X,de){return X.next(),X.match(/^\s*[\"\')]/,!1)?de.tokenize=null:de.tokenize=at(")"),ke(null,"(")}function Re(X,de,ue){this.type=X,this.indent=de,this.prev=ue}function Ie(X,de,ue,it){return X.context=new Re(ue,de.indentation()+(it===!1?0:j),X.context),ue}function Be(X){return X.context.prev&&(X.context=X.context.prev),X.context.type}function Ke(X,de,ue){return Se[ue.context.type](X,de,ue)}function He(X,de,ue,it){for(var Ne=it||1;Ne>0;Ne--)ue.context=ue.context.prev;return Ke(X,de,ue)}function Je(X){var de=X.current().toLowerCase();be.hasOwnProperty(de)?ge="atom":A.hasOwnProperty(de)?ge="keyword":ge="variable"}var Se={};return Se.top=function(X,de,ue){if(X=="{")return Ie(ue,de,"block");if(X=="}"&&ue.context.prev)return Be(ue);if(_e&&/@component/i.test(X))return Ie(ue,de,"atComponentBlock");if(/^@(-moz-)?document$/i.test(X))return Ie(ue,de,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(X))return Ie(ue,de,"atBlock");if(/^@(font-face|counter-style)/i.test(X))return ue.stateArg=X,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(X))return"keyframes";if(X&&X.charAt(0)=="@")return Ie(ue,de,"at");if(X=="hash")ge="builtin";else if(X=="word")ge="tag";else{if(X=="variable-definition")return"maybeprop";if(X=="interpolation")return Ie(ue,de,"interpolation");if(X==":")return"pseudo";if(Fe&&X=="(")return Ie(ue,de,"parens")}return ue.context.type},Se.block=function(X,de,ue){if(X=="word"){var it=de.current().toLowerCase();return N.hasOwnProperty(it)?(ge="property","maybeprop"):ne.hasOwnProperty(it)?(ge=ze?"string-2":"property","maybeprop"):Fe?(ge=de.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(ge+=" error","maybeprop")}else return X=="meta"?"block":!Fe&&(X=="hash"||X=="qualifier")?(ge="error","block"):Se.top(X,de,ue)},Se.maybeprop=function(X,de,ue){return X==":"?Ie(ue,de,"prop"):Ke(X,de,ue)},Se.prop=function(X,de,ue){if(X==";")return Be(ue);if(X=="{"&&Fe)return Ie(ue,de,"propBlock");if(X=="}"||X=="{")return He(X,de,ue);if(X=="(")return Ie(ue,de,"parens");if(X=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(de.current()))ge+=" error";else if(X=="word")Je(de);else if(X=="interpolation")return Ie(ue,de,"interpolation");return"prop"},Se.propBlock=function(X,de,ue){return X=="}"?Be(ue):X=="word"?(ge="property","maybeprop"):ue.context.type},Se.parens=function(X,de,ue){return X=="{"||X=="}"?He(X,de,ue):X==")"?Be(ue):X=="("?Ie(ue,de,"parens"):X=="interpolation"?Ie(ue,de,"interpolation"):(X=="word"&&Je(de),"parens")},Se.pseudo=function(X,de,ue){return X=="meta"?"pseudo":X=="word"?(ge="variable-3",ue.context.type):Ke(X,de,ue)},Se.documentTypes=function(X,de,ue){return X=="word"&&C.hasOwnProperty(de.current())?(ge="tag",ue.context.type):Se.atBlock(X,de,ue)},Se.atBlock=function(X,de,ue){if(X=="(")return Ie(ue,de,"atBlock_parens");if(X=="}"||X==";")return He(X,de,ue);if(X=="{")return Be(ue)&&Ie(ue,de,Fe?"block":"top");if(X=="interpolation")return Ie(ue,de,"interpolation");if(X=="word"){var it=de.current().toLowerCase();it=="only"||it=="not"||it=="and"||it=="or"?ge="keyword":U.hasOwnProperty(it)?ge="attribute":Z.hasOwnProperty(it)?ge="property":R.hasOwnProperty(it)?ge="keyword":N.hasOwnProperty(it)?ge="property":ne.hasOwnProperty(it)?ge=ze?"string-2":"property":be.hasOwnProperty(it)?ge="atom":A.hasOwnProperty(it)?ge="keyword":ge="error"}return ue.context.type},Se.atComponentBlock=function(X,de,ue){return X=="}"?He(X,de,ue):X=="{"?Be(ue)&&Ie(ue,de,Fe?"block":"top",!1):(X=="word"&&(ge="error"),ue.context.type)},Se.atBlock_parens=function(X,de,ue){return X==")"?Be(ue):X=="{"||X=="}"?He(X,de,ue,2):Se.atBlock(X,de,ue)},Se.restricted_atBlock_before=function(X,de,ue){return X=="{"?Ie(ue,de,"restricted_atBlock"):X=="word"&&ue.stateArg=="@counter-style"?(ge="variable","restricted_atBlock_before"):Ke(X,de,ue)},Se.restricted_atBlock=function(X,de,ue){return X=="}"?(ue.stateArg=null,Be(ue)):X=="word"?(ue.stateArg=="@font-face"&&!ae.hasOwnProperty(de.current().toLowerCase())||ue.stateArg=="@counter-style"&&!M.hasOwnProperty(de.current().toLowerCase())?ge="error":ge="property","maybeprop"):"restricted_atBlock"},Se.keyframes=function(X,de,ue){return X=="word"?(ge="variable","keyframes"):X=="{"?Ie(ue,de,"top"):Ke(X,de,ue)},Se.at=function(X,de,ue){return X==";"?Be(ue):X=="{"||X=="}"?He(X,de,ue):(X=="word"?ge="tag":X=="hash"&&(ge="builtin"),"at")},Se.interpolation=function(X,de,ue){return X=="}"?Be(ue):X=="{"||X==";"?He(X,de,ue):(X=="word"?ge="variable":X!="variable"&&X!="("&&X!=")"&&(ge="error"),"interpolation")},{startState:function(X){return{tokenize:null,state:G?"block":"top",stateArg:null,context:new Re(G?"block":"top",X||0,null)}},token:function(X,de){if(!de.tokenize&&X.eatSpace())return null;var ue=(de.tokenize||Ue)(X,de);return ue&&typeof ue=="object"&&(qe=ue[1],ue=ue[0]),ge=ue,qe!="comment"&&(de.state=Se[de.state](qe,X,de)),ge},indent:function(X,de){var ue=X.context,it=de&&de.charAt(0),Ne=ue.indent;return ue.type=="prop"&&(it=="}"||it==")")&&(ue=ue.prev),ue.prev&&(it=="}"&&(ue.type=="block"||ue.type=="top"||ue.type=="interpolation"||ue.type=="restricted_atBlock")?(ue=ue.prev,Ne=ue.indent):(it==")"&&(ue.type=="parens"||ue.type=="atBlock_parens")||it=="{"&&(ue.type=="at"||ue.type=="atBlock"))&&(Ne=Math.max(0,ue.indent-j))),Ne},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:xe,fold:"brace"}});function t(K){for(var Y={},G=0;G{(function(i){typeof zf=="object"&&typeof Nf=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function t(R,N,ne,ae,M,A){this.indented=R,this.column=N,this.type=ne,this.info=ae,this.align=M,this.prev=A}function n(R,N,ne,ae){var M=R.indented;return R.context&&R.context.type=="statement"&&ne!="statement"&&(M=R.context.indented),R.context=new t(M,N,ne,ae,null,R.context)}function l(R){var N=R.context.type;return(N==")"||N=="]"||N=="}")&&(R.indented=R.context.indented),R.context=R.context.prev}function c(R,N,ne){if(N.prevToken=="variable"||N.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(R.string.slice(0,ne))||N.typeAtEndOfLine&&R.column()==R.indentation())return!0}function d(R){for(;;){if(!R||R.type=="top")return!0;if(R.type=="}"&&R.prev.info!="namespace")return!1;R=R.prev}}i.defineMode("clike",function(R,N){var ne=R.indentUnit,ae=N.statementIndentUnit||ne,M=N.dontAlignCalls,A=N.keywords||{},be=N.types||{},Fe=N.builtin||{},xe=N.blockKeywords||{},_e=N.defKeywords||{},ze=N.atoms||{},qe=N.hooks||{},ge=N.multiLineStrings,ke=N.indentStatements!==!1,Ue=N.indentSwitch!==!1,at=N.namespaceSeparator,gt=N.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,Re=N.numberStart||/[\d\.]/,Ie=N.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,Be=N.isOperatorChar||/[+\-*&%=<>!?|\/]/,Ke=N.isIdentifierChar||/[\w\$_\xa1-\uffff]/,He=N.isReservedIdentifier||!1,Je,Se;function X(Ne,ot){var Xe=Ne.next();if(qe[Xe]){var et=qe[Xe](Ne,ot);if(et!==!1)return et}if(Xe=='"'||Xe=="'")return ot.tokenize=de(Xe),ot.tokenize(Ne,ot);if(Re.test(Xe)){if(Ne.backUp(1),Ne.match(Ie))return"number";Ne.next()}if(gt.test(Xe))return Je=Xe,null;if(Xe=="/"){if(Ne.eat("*"))return ot.tokenize=ue,ue(Ne,ot);if(Ne.eat("/"))return Ne.skipToEnd(),"comment"}if(Be.test(Xe)){for(;!Ne.match(/^\/[\/*]/,!1)&&Ne.eat(Be););return"operator"}if(Ne.eatWhile(Ke),at)for(;Ne.match(at);)Ne.eatWhile(Ke);var We=Ne.current();return h(A,We)?(h(xe,We)&&(Je="newstatement"),h(_e,We)&&(Se=!0),"keyword"):h(be,We)?"type":h(Fe,We)||He&&He(We)?(h(xe,We)&&(Je="newstatement"),"builtin"):h(ze,We)?"atom":"variable"}function de(Ne){return function(ot,Xe){for(var et=!1,We,jt=!1;(We=ot.next())!=null;){if(We==Ne&&!et){jt=!0;break}et=!et&&We=="\\"}return(jt||!(et||ge))&&(Xe.tokenize=null),"string"}}function ue(Ne,ot){for(var Xe=!1,et;et=Ne.next();){if(et=="/"&&Xe){ot.tokenize=null;break}Xe=et=="*"}return"comment"}function it(Ne,ot){N.typeFirstDefinitions&&Ne.eol()&&d(ot.context)&&(ot.typeAtEndOfLine=c(Ne,ot,Ne.pos))}return{startState:function(Ne){return{tokenize:null,context:new t((Ne||0)-ne,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(Ne,ot){var Xe=ot.context;if(Ne.sol()&&(Xe.align==null&&(Xe.align=!1),ot.indented=Ne.indentation(),ot.startOfLine=!0),Ne.eatSpace())return it(Ne,ot),null;Je=Se=null;var et=(ot.tokenize||X)(Ne,ot);if(et=="comment"||et=="meta")return et;if(Xe.align==null&&(Xe.align=!0),Je==";"||Je==":"||Je==","&&Ne.match(/^\s*(?:\/\/.*)?$/,!1))for(;ot.context.type=="statement";)l(ot);else if(Je=="{")n(ot,Ne.column(),"}");else if(Je=="[")n(ot,Ne.column(),"]");else if(Je=="(")n(ot,Ne.column(),")");else if(Je=="}"){for(;Xe.type=="statement";)Xe=l(ot);for(Xe.type=="}"&&(Xe=l(ot));Xe.type=="statement";)Xe=l(ot)}else Je==Xe.type?l(ot):ke&&((Xe.type=="}"||Xe.type=="top")&&Je!=";"||Xe.type=="statement"&&Je=="newstatement")&&n(ot,Ne.column(),"statement",Ne.current());if(et=="variable"&&(ot.prevToken=="def"||N.typeFirstDefinitions&&c(Ne,ot,Ne.start)&&d(ot.context)&&Ne.match(/^\s*\(/,!1))&&(et="def"),qe.token){var We=qe.token(Ne,ot,et);We!==void 0&&(et=We)}return et=="def"&&N.styleDefs===!1&&(et="variable"),ot.startOfLine=!1,ot.prevToken=Se?"def":et||Je,it(Ne,ot),et},indent:function(Ne,ot){if(Ne.tokenize!=X&&Ne.tokenize!=null||Ne.typeAtEndOfLine)return i.Pass;var Xe=Ne.context,et=ot&&ot.charAt(0),We=et==Xe.type;if(Xe.type=="statement"&&et=="}"&&(Xe=Xe.prev),N.dontIndentStatements)for(;Xe.type=="statement"&&N.dontIndentStatements.test(Xe.info);)Xe=Xe.prev;if(qe.indent){var jt=qe.indent(Ne,Xe,ot,ne);if(typeof jt=="number")return jt}var Lt=Xe.prev&&Xe.prev.info=="switch";if(N.allmanIndentation&&/[{(]/.test(et)){for(;Xe.type!="top"&&Xe.type!="}";)Xe=Xe.prev;return Xe.indented}return Xe.type=="statement"?Xe.indented+(et=="{"?0:ae):Xe.align&&(!M||Xe.type!=")")?Xe.column+(We?0:1):Xe.type==")"&&!We?Xe.indented+ae:Xe.indented+(We?0:ne)+(!We&&Lt&&!/^(?:case|default)\b/.test(ot)?ne:0)},electricInput:Ue?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function a(R){for(var N={},ne=R.split(" "),ae=0;ae!?|\/#:@]/,hooks:{"@":function(R){return R.eatWhile(/[\w\$_]/),"meta"},'"':function(R,N){return R.match('""')?(N.tokenize=j,N.tokenize(R,N)):!1},"'":function(R){return R.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(R,N){var ne=N.context;return ne.type=="}"&&ne.align&&R.eat(">")?(N.context=new t(ne.indented,ne.column,ne.type,ne.info,null,ne.prev),"operator"):!1},"/":function(R,N){return R.eat("*")?(N.tokenize=z(1),N.tokenize(R,N)):!1}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});function C(R){return function(N,ne){for(var ae=!1,M,A=!1;!N.eol();){if(!R&&!ae&&N.match('"')){A=!0;break}if(R&&N.match('"""')){A=!0;break}M=N.next(),!ae&&M=="$"&&N.match("{")&&N.skipTo("}"),ae=!ae&&M=="\\"&&!R}return(A||!R)&&(ne.tokenize=null),"string"}}G("text/x-kotlin",{name:"clike",keywords:a("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"),types:a("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:a("catch class do else finally for if where try while enum"),defKeywords:a("class val var object interface fun"),atoms:a("true false null this"),hooks:{"@":function(R){return R.eatWhile(/[\w\$_]/),"meta"},"*":function(R,N){return N.prevToken=="."?"variable":"operator"},'"':function(R,N){return N.tokenize=C(R.match('""')),N.tokenize(R,N)},"/":function(R,N){return R.eat("*")?(N.tokenize=z(1),N.tokenize(R,N)):!1},indent:function(R,N,ne,ae){var M=ne&&ne.charAt(0);if((R.prevToken=="}"||R.prevToken==")")&&ne=="")return R.indented;if(R.prevToken=="operator"&&ne!="}"&&R.context.type!="}"||R.prevToken=="variable"&&M=="."||(R.prevToken=="}"||R.prevToken==")")&&M==".")return ae*2+N.indented;if(N.align&&N.type=="}")return N.indented+(R.context.type==(ne||"").charAt(0)?0:ae)}},modeProps:{closeBrackets:{triples:'"'}}}),G(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:a("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:a("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:a("for while do if else struct"),builtin:a("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:a("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":S},modeProps:{fold:["brace","include"]}}),G("text/x-nesc",{name:"clike",keywords:a(f+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:k,blockKeywords:a(w),atoms:a("null true false"),hooks:{"#":S},modeProps:{fold:["brace","include"]}}),G("text/x-objectivec",{name:"clike",keywords:a(f+" "+y),types:E,builtin:a(g),blockKeywords:a(w+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:a(I+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:F,hooks:{"#":S,"*":P},modeProps:{fold:["brace","include"]}}),G("text/x-objectivec++",{name:"clike",keywords:a(f+" "+y+" "+p),types:E,builtin:a(g),blockKeywords:a(w+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:a(I+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:F,hooks:{"#":S,"*":P,u:$,U:$,L:$,R:$,"0":H,"1":H,"2":H,"3":H,"4":H,"5":H,"6":H,"7":H,"8":H,"9":H,token:function(R,N,ne){if(ne=="variable"&&R.peek()=="("&&(N.prevToken==";"||N.prevToken==null||N.prevToken=="}")&&J(R.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),G("text/x-squirrel",{name:"clike",keywords:a("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:k,blockKeywords:a("case catch class else for foreach if switch try while"),defKeywords:a("function local class"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"#":S},modeProps:{fold:["brace","include"]}});var U=null;function Z(R){return function(N,ne){for(var ae=!1,M,A=!1;!N.eol();){if(!ae&&N.match('"')&&(R=="single"||N.match('""'))){A=!0;break}if(!ae&&N.match("``")){U=Z(R),A=!0;break}M=N.next(),ae=R=="single"&&!ae&&M=="\\"}return A&&(ne.tokenize=null),"string"}}G("text/x-ceylon",{name:"clike",keywords:a("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(R){var N=R.charAt(0);return N===N.toUpperCase()&&N!==N.toLowerCase()},blockKeywords:a("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:a("class dynamic function interface module object package value"),builtin:a("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:a("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(R){return R.eatWhile(/[\w\$_]/),"meta"},'"':function(R,N){return N.tokenize=Z(R.match('""')?"triple":"single"),N.tokenize(R,N)},"`":function(R,N){return!U||!R.match("`")?!1:(N.tokenize=U,U=null,N.tokenize(R,N))},"'":function(R){return R.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(R,N,ne){if((ne=="variable"||ne=="type")&&N.prevToken==".")return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})});var jf=Me((Bf,qf)=>{(function(i){typeof Bf=="object"&&typeof qf=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("diff",function(){var t={"+":"positive","-":"negative","@":"meta"};return{token:function(n){var l=n.string.search(/[\t ]+?$/);if(!n.sol()||l===0)return n.skipToEnd(),("error "+(t[n.string.charAt(0)]||"")).replace(/ $/,"");var c=t[n.peek()]||n.skipToEnd();return l===-1?n.skipToEnd():n.pos=l,c}}}),i.defineMIME("text/x-diff","diff")})});var Hf=Me(($f,Uf)=>{(function(i){typeof $f=="object"&&typeof Uf=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("fortran",function(){function t(p){for(var y={},g=0;g\/\:]/,a=new RegExp("(.and.|.or.|.eq.|.lt.|.le.|.gt.|.ge.|.ne.|.not.|.eqv.|.neqv.)","i");function h(p,y){if(p.match(a))return"operator";var g=p.next();if(g=="!")return p.skipToEnd(),"comment";if(g=='"'||g=="'")return y.tokenize=f(g),y.tokenize(p,y);if(/[\[\]\(\),]/.test(g))return null;if(/\d/.test(g))return p.eatWhile(/[\w\.]/),"number";if(d.test(g))return p.eatWhile(d),"operator";p.eatWhile(/[\w\$_]/);var v=p.current().toLowerCase();return n.hasOwnProperty(v)?"keyword":l.hasOwnProperty(v)||c.hasOwnProperty(v)?"builtin":"variable"}function f(p){return function(y,g){for(var v=!1,b,k=!1;(b=y.next())!=null;){if(b==p&&!v){k=!0;break}v=!v&&b=="\\"}return(k||!v)&&(g.tokenize=null),"string"}}return{startState:function(){return{tokenize:null}},token:function(p,y){if(p.eatSpace())return null;var g=(y.tokenize||h)(p,y);return g=="comment"||g=="meta",g}}}),i.defineMIME("text/x-fortran","fortran")})});var Kf=Me((Wf,Gf)=>{(function(i){typeof Wf=="object"&&typeof Gf=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("go",function(t){var n=t.indentUnit,l={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0},c={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},d=/[+\-*&^%:=<>!|\/]/,a;function h(b,k){var E=b.next();if(E=='"'||E=="'"||E=="`")return k.tokenize=f(E),k.tokenize(b,k);if(/[\d\.]/.test(E))return E=="."?b.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):E=="0"?b.match(/^[xX][0-9a-fA-F]+/)||b.match(/^0[0-7]+/):b.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(E))return a=E,null;if(E=="/"){if(b.eat("*"))return k.tokenize=p,p(b,k);if(b.eat("/"))return b.skipToEnd(),"comment"}if(d.test(E))return b.eatWhile(d),"operator";b.eatWhile(/[\w\$_\xa1-\uffff]/);var w=b.current();return l.propertyIsEnumerable(w)?((w=="case"||w=="default")&&(a="case"),"keyword"):c.propertyIsEnumerable(w)?"atom":"variable"}function f(b){return function(k,E){for(var w=!1,I,S=!1;(I=k.next())!=null;){if(I==b&&!w){S=!0;break}w=!w&&b!="`"&&I=="\\"}return(S||!(w||b=="`"))&&(E.tokenize=h),"string"}}function p(b,k){for(var E=!1,w;w=b.next();){if(w=="/"&&E){k.tokenize=h;break}E=w=="*"}return"comment"}function y(b,k,E,w,I){this.indented=b,this.column=k,this.type=E,this.align=w,this.prev=I}function g(b,k,E){return b.context=new y(b.indented,k,E,null,b.context)}function v(b){if(!!b.context.prev){var k=b.context.type;return(k==")"||k=="]"||k=="}")&&(b.indented=b.context.indented),b.context=b.context.prev}}return{startState:function(b){return{tokenize:null,context:new y((b||0)-n,0,"top",!1),indented:0,startOfLine:!0}},token:function(b,k){var E=k.context;if(b.sol()&&(E.align==null&&(E.align=!1),k.indented=b.indentation(),k.startOfLine=!0,E.type=="case"&&(E.type="}")),b.eatSpace())return null;a=null;var w=(k.tokenize||h)(b,k);return w=="comment"||(E.align==null&&(E.align=!0),a=="{"?g(k,b.column(),"}"):a=="["?g(k,b.column(),"]"):a=="("?g(k,b.column(),")"):a=="case"?E.type="case":(a=="}"&&E.type=="}"||a==E.type)&&v(k),k.startOfLine=!1),w},indent:function(b,k){if(b.tokenize!=h&&b.tokenize!=null)return i.Pass;var E=b.context,w=k&&k.charAt(0);if(E.type=="case"&&/^(?:case|default)\b/.test(k))return b.context.type="}",E.indented;var I=w==E.type;return E.align?E.column+(I?0:1):E.indented+(I?0:n)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),i.defineMIME("text/x-go","go")})});var Xf=Me((Vf,Yf)=>{(function(i){typeof Vf=="object"&&typeof Yf=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("haskell",function(t,n){function l(S,P,F){return P(F),F(S,P)}var c=/[a-z_]/,d=/[A-Z]/,a=/\d/,h=/[0-9A-Fa-f]/,f=/[0-7]/,p=/[a-z_A-Z0-9'\xa1-\uffff]/,y=/[-!#$%&*+.\/<=>?@\\^|~:]/,g=/[(),;[\]`{}]/,v=/[ \t\v\f]/;function b(S,P){if(S.eatWhile(v))return null;var F=S.next();if(g.test(F)){if(F=="{"&&S.eat("-")){var H="comment";return S.eat("#")&&(H="meta"),l(S,P,k(H,1))}return null}if(F=="'")return S.eat("\\"),S.next(),S.eat("'")?"string":"string error";if(F=='"')return l(S,P,E);if(d.test(F))return S.eatWhile(p),S.eat(".")?"qualifier":"variable-2";if(c.test(F))return S.eatWhile(p),"variable";if(a.test(F)){if(F=="0"){if(S.eat(/[xX]/))return S.eatWhile(h),"integer";if(S.eat(/[oO]/))return S.eatWhile(f),"number"}S.eatWhile(a);var H="number";return S.match(/^\.\d+/)&&(H="number"),S.eat(/[eE]/)&&(H="number",S.eat(/[-+]/),S.eatWhile(a)),H}if(F=="."&&S.eat("."))return"keyword";if(y.test(F)){if(F=="-"&&S.eat(/-/)&&(S.eatWhile(/-/),!S.eat(y)))return S.skipToEnd(),"comment";var H="variable";return F==":"&&(H="variable-2"),S.eatWhile(y),H}return"error"}function k(S,P){return P==0?b:function(F,H){for(var $=P;!F.eol();){var J=F.next();if(J=="{"&&F.eat("-"))++$;else if(J=="-"&&F.eat("}")&&(--$,$==0))return H(b),S}return H(k(S,$)),S}}function E(S,P){for(;!S.eol();){var F=S.next();if(F=='"')return P(b),"string";if(F=="\\"){if(S.eol()||S.eat(v))return P(w),"string";S.eat("&")||S.next()}}return P(b),"string error"}function w(S,P){return S.eat("\\")?l(S,P,E):(S.next(),P(b),"error")}var I=function(){var S={};function P($){return function(){for(var J=0;J","@","~","=>"),P("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<*","<=","<$>","<*>","=<<","==",">",">=",">>",">>=","^","^^","||","*","*>","**"),P("builtin")("Applicative","Bool","Bounded","Char","Double","EQ","Either","Enum","Eq","False","FilePath","Float","Floating","Fractional","Functor","GT","IO","IOError","Int","Integer","Integral","Just","LT","Left","Maybe","Monad","Nothing","Num","Ord","Ordering","Rational","Read","ReadS","Real","RealFloat","RealFrac","Right","Show","ShowS","String","True"),P("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","pure","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3");var F=n.overrideKeywords;if(F)for(var H in F)F.hasOwnProperty(H)&&(S[H]=F[H]);return S}();return{startState:function(){return{f:b}},copyState:function(S){return{f:S.f}},token:function(S,P){var F=P.f(S,function($){P.f=$}),H=S.current();return I.hasOwnProperty(H)?I[H]:F},blockCommentStart:"{-",blockCommentEnd:"-}",lineComment:"--"}}),i.defineMIME("text/x-haskell","haskell")})});var wa=Me((Zf,Qf)=>{(function(i){typeof Zf=="object"&&typeof Qf=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};i.defineMode("xml",function(l,c){var d=l.indentUnit,a={},h=c.htmlMode?t:n;for(var f in h)a[f]=h[f];for(var f in c)a[f]=c[f];var p,y;function g(C,U){function Z(ne){return U.tokenize=ne,ne(C,U)}var R=C.next();if(R=="<")return C.eat("!")?C.eat("[")?C.match("CDATA[")?Z(k("atom","]]>")):null:C.match("--")?Z(k("comment","-->")):C.match("DOCTYPE",!0,!0)?(C.eatWhile(/[\w\._\-]/),Z(E(1))):null:C.eat("?")?(C.eatWhile(/[\w\._\-]/),U.tokenize=k("meta","?>"),"meta"):(p=C.eat("/")?"closeTag":"openTag",U.tokenize=v,"tag bracket");if(R=="&"){var N;return C.eat("#")?C.eat("x")?N=C.eatWhile(/[a-fA-F\d]/)&&C.eat(";"):N=C.eatWhile(/[\d]/)&&C.eat(";"):N=C.eatWhile(/[\w\.\-:]/)&&C.eat(";"),N?"atom":"error"}else return C.eatWhile(/[^&<]/),null}g.isInText=!0;function v(C,U){var Z=C.next();if(Z==">"||Z=="/"&&C.eat(">"))return U.tokenize=g,p=Z==">"?"endTag":"selfcloseTag","tag bracket";if(Z=="=")return p="equals",null;if(Z=="<"){U.tokenize=g,U.state=F,U.tagName=U.tagStart=null;var R=U.tokenize(C,U);return R?R+" tag error":"tag error"}else return/[\'\"]/.test(Z)?(U.tokenize=b(Z),U.stringStartCol=C.column(),U.tokenize(C,U)):(C.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function b(C){var U=function(Z,R){for(;!Z.eol();)if(Z.next()==C){R.tokenize=v;break}return"string"};return U.isInAttribute=!0,U}function k(C,U){return function(Z,R){for(;!Z.eol();){if(Z.match(U)){R.tokenize=g;break}Z.next()}return C}}function E(C){return function(U,Z){for(var R;(R=U.next())!=null;){if(R=="<")return Z.tokenize=E(C+1),Z.tokenize(U,Z);if(R==">")if(C==1){Z.tokenize=g;break}else return Z.tokenize=E(C-1),Z.tokenize(U,Z)}return"meta"}}function w(C){return C&&C.toLowerCase()}function I(C,U,Z){this.prev=C.context,this.tagName=U||"",this.indent=C.indented,this.startOfLine=Z,(a.doNotIndent.hasOwnProperty(U)||C.context&&C.context.noIndent)&&(this.noIndent=!0)}function S(C){C.context&&(C.context=C.context.prev)}function P(C,U){for(var Z;;){if(!C.context||(Z=C.context.tagName,!a.contextGrabbers.hasOwnProperty(w(Z))||!a.contextGrabbers[w(Z)].hasOwnProperty(w(U))))return;S(C)}}function F(C,U,Z){return C=="openTag"?(Z.tagStart=U.column(),H):C=="closeTag"?$:F}function H(C,U,Z){return C=="word"?(Z.tagName=U.current(),y="tag",Y):a.allowMissingTagName&&C=="endTag"?(y="tag bracket",Y(C,U,Z)):(y="error",H)}function $(C,U,Z){if(C=="word"){var R=U.current();return Z.context&&Z.context.tagName!=R&&a.implicitlyClosed.hasOwnProperty(w(Z.context.tagName))&&S(Z),Z.context&&Z.context.tagName==R||a.matchClosing===!1?(y="tag",J):(y="tag error",K)}else return a.allowMissingTagName&&C=="endTag"?(y="tag bracket",J(C,U,Z)):(y="error",K)}function J(C,U,Z){return C!="endTag"?(y="error",J):(S(Z),F)}function K(C,U,Z){return y="error",J(C,U,Z)}function Y(C,U,Z){if(C=="word")return y="attribute",G;if(C=="endTag"||C=="selfcloseTag"){var R=Z.tagName,N=Z.tagStart;return Z.tagName=Z.tagStart=null,C=="selfcloseTag"||a.autoSelfClosers.hasOwnProperty(w(R))?P(Z,R):(P(Z,R),Z.context=new I(Z,R,N==Z.indented)),F}return y="error",Y}function G(C,U,Z){return C=="equals"?j:(a.allowMissing||(y="error"),Y(C,U,Z))}function j(C,U,Z){return C=="string"?z:C=="word"&&a.allowUnquoted?(y="string",Y):(y="error",Y(C,U,Z))}function z(C,U,Z){return C=="string"?z:Y(C,U,Z)}return{startState:function(C){var U={tokenize:g,state:F,indented:C||0,tagName:null,tagStart:null,context:null};return C!=null&&(U.baseIndent=C),U},token:function(C,U){if(!U.tagName&&C.sol()&&(U.indented=C.indentation()),C.eatSpace())return null;p=null;var Z=U.tokenize(C,U);return(Z||p)&&Z!="comment"&&(y=null,U.state=U.state(p||Z,C,U),y&&(Z=y=="error"?Z+" error":y)),Z},indent:function(C,U,Z){var R=C.context;if(C.tokenize.isInAttribute)return C.tagStart==C.indented?C.stringStartCol+1:C.indented+d;if(R&&R.noIndent)return i.Pass;if(C.tokenize!=v&&C.tokenize!=g)return Z?Z.match(/^(\s*)/)[0].length:0;if(C.tagName)return a.multilineTagIndentPastTag!==!1?C.tagStart+C.tagName.length+2:C.tagStart+d*(a.multilineTagIndentFactor||1);if(a.alignCDATA&&/$/,blockCommentStart:"",configuration:a.htmlMode?"html":"xml",helperType:a.htmlMode?"html":"xml",skipAttribute:function(C){C.state==j&&(C.state=Y)},xmlCurrentTag:function(C){return C.tagName?{name:C.tagName,close:C.type=="closeTag"}:null},xmlCurrentContext:function(C){for(var U=[],Z=C.context;Z;Z=Z.prev)U.push(Z.tagName);return U.reverse()}}}),i.defineMIME("text/xml","xml"),i.defineMIME("application/xml","xml"),i.mimeModes.hasOwnProperty("text/html")||i.defineMIME("text/html",{name:"xml",htmlMode:!0})})});var tl=Me((Jf,ed)=>{(function(i){typeof Jf=="object"&&typeof ed=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("javascript",function(t,n){var l=t.indentUnit,c=n.statementIndent,d=n.jsonld,a=n.json||d,h=n.trackScope!==!1,f=n.typescript,p=n.wordCharacters||/[\w$\xa1-\uffff]/,y=function(){function D(Yt){return{type:Yt,style:"keyword"}}var q=D("keyword a"),he=D("keyword b"),De=D("keyword c"),ft=D("keyword d"),xt=D("operator"),Ze={type:"atom",style:"atom"};return{if:D("if"),while:q,with:q,else:he,do:he,try:he,finally:he,return:ft,break:ft,continue:ft,new:D("new"),delete:De,void:De,throw:De,debugger:D("debugger"),var:D("var"),const:D("var"),let:D("var"),function:D("function"),catch:D("catch"),for:D("for"),switch:D("switch"),case:D("case"),default:D("default"),in:xt,typeof:xt,instanceof:xt,true:Ze,false:Ze,null:Ze,undefined:Ze,NaN:Ze,Infinity:Ze,this:D("this"),class:D("class"),super:D("atom"),yield:De,export:D("export"),import:D("import"),extends:De,await:De}}(),g=/[+\-*&%=<>!?|~^@]/,v=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function b(D){for(var q=!1,he,De=!1;(he=D.next())!=null;){if(!q){if(he=="/"&&!De)return;he=="["?De=!0:De&&he=="]"&&(De=!1)}q=!q&&he=="\\"}}var k,E;function w(D,q,he){return k=D,E=he,q}function I(D,q){var he=D.next();if(he=='"'||he=="'")return q.tokenize=S(he),q.tokenize(D,q);if(he=="."&&D.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return w("number","number");if(he=="."&&D.match(".."))return w("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(he))return w(he);if(he=="="&&D.eat(">"))return w("=>","operator");if(he=="0"&&D.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return w("number","number");if(/\d/.test(he))return D.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),w("number","number");if(he=="/")return D.eat("*")?(q.tokenize=P,P(D,q)):D.eat("/")?(D.skipToEnd(),w("comment","comment")):we(D,q,1)?(b(D),D.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),w("regexp","string-2")):(D.eat("="),w("operator","operator",D.current()));if(he=="`")return q.tokenize=F,F(D,q);if(he=="#"&&D.peek()=="!")return D.skipToEnd(),w("meta","meta");if(he=="#"&&D.eatWhile(p))return w("variable","property");if(he=="<"&&D.match("!--")||he=="-"&&D.match("->")&&!/\S/.test(D.string.slice(0,D.start)))return D.skipToEnd(),w("comment","comment");if(g.test(he))return(he!=">"||!q.lexical||q.lexical.type!=">")&&(D.eat("=")?(he=="!"||he=="=")&&D.eat("="):/[<>*+\-|&?]/.test(he)&&(D.eat(he),he==">"&&D.eat(he))),he=="?"&&D.eat(".")?w("."):w("operator","operator",D.current());if(p.test(he)){D.eatWhile(p);var De=D.current();if(q.lastType!="."){if(y.propertyIsEnumerable(De)){var ft=y[De];return w(ft.type,ft.style,De)}if(De=="async"&&D.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return w("async","keyword",De)}return w("variable","variable",De)}}function S(D){return function(q,he){var De=!1,ft;if(d&&q.peek()=="@"&&q.match(v))return he.tokenize=I,w("jsonld-keyword","meta");for(;(ft=q.next())!=null&&!(ft==D&&!De);)De=!De&&ft=="\\";return De||(he.tokenize=I),w("string","string")}}function P(D,q){for(var he=!1,De;De=D.next();){if(De=="/"&&he){q.tokenize=I;break}he=De=="*"}return w("comment","comment")}function F(D,q){for(var he=!1,De;(De=D.next())!=null;){if(!he&&(De=="`"||De=="$"&&D.eat("{"))){q.tokenize=I;break}he=!he&&De=="\\"}return w("quasi","string-2",D.current())}var H="([{}])";function $(D,q){q.fatArrowAt&&(q.fatArrowAt=null);var he=D.string.indexOf("=>",D.start);if(!(he<0)){if(f){var De=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(D.string.slice(D.start,he));De&&(he=De.index)}for(var ft=0,xt=!1,Ze=he-1;Ze>=0;--Ze){var Yt=D.string.charAt(Ze),Fr=H.indexOf(Yt);if(Fr>=0&&Fr<3){if(!ft){++Ze;break}if(--ft==0){Yt=="("&&(xt=!0);break}}else if(Fr>=3&&Fr<6)++ft;else if(p.test(Yt))xt=!0;else if(/["'\/`]/.test(Yt))for(;;--Ze){if(Ze==0)return;var Wn=D.string.charAt(Ze-1);if(Wn==Yt&&D.string.charAt(Ze-2)!="\\"){Ze--;break}}else if(xt&&!ft){++Ze;break}}xt&&!ft&&(q.fatArrowAt=Ze)}}var J={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function K(D,q,he,De,ft,xt){this.indented=D,this.column=q,this.type=he,this.prev=ft,this.info=xt,De!=null&&(this.align=De)}function Y(D,q){if(!h)return!1;for(var he=D.localVars;he;he=he.next)if(he.name==q)return!0;for(var De=D.context;De;De=De.prev)for(var he=De.vars;he;he=he.next)if(he.name==q)return!0}function G(D,q,he,De,ft){var xt=D.cc;for(j.state=D,j.stream=ft,j.marked=null,j.cc=xt,j.style=q,D.lexical.hasOwnProperty("align")||(D.lexical.align=!0);;){var Ze=xt.length?xt.pop():a?ke:qe;if(Ze(he,De)){for(;xt.length&&xt[xt.length-1].lex;)xt.pop()();return j.marked?j.marked:he=="variable"&&Y(D,De)?"variable-2":q}}}var j={state:null,column:null,marked:null,cc:null};function z(){for(var D=arguments.length-1;D>=0;D--)j.cc.push(arguments[D])}function C(){return z.apply(null,arguments),!0}function U(D,q){for(var he=q;he;he=he.next)if(he.name==D)return!0;return!1}function Z(D){var q=j.state;if(j.marked="def",!!h){if(q.context){if(q.lexical.info=="var"&&q.context&&q.context.block){var he=R(D,q.context);if(he!=null){q.context=he;return}}else if(!U(D,q.localVars)){q.localVars=new ae(D,q.localVars);return}}n.globalVars&&!U(D,q.globalVars)&&(q.globalVars=new ae(D,q.globalVars))}}function R(D,q){if(q)if(q.block){var he=R(D,q.prev);return he?he==q.prev?q:new ne(he,q.vars,!0):null}else return U(D,q.vars)?q:new ne(q.prev,new ae(D,q.vars),!1);else return null}function N(D){return D=="public"||D=="private"||D=="protected"||D=="abstract"||D=="readonly"}function ne(D,q,he){this.prev=D,this.vars=q,this.block=he}function ae(D,q){this.name=D,this.next=q}var M=new ae("this",new ae("arguments",null));function A(){j.state.context=new ne(j.state.context,j.state.localVars,!1),j.state.localVars=M}function be(){j.state.context=new ne(j.state.context,j.state.localVars,!0),j.state.localVars=null}function Fe(){j.state.localVars=j.state.context.vars,j.state.context=j.state.context.prev}Fe.lex=!0;function xe(D,q){var he=function(){var De=j.state,ft=De.indented;if(De.lexical.type=="stat")ft=De.lexical.indented;else for(var xt=De.lexical;xt&&xt.type==")"&&xt.align;xt=xt.prev)ft=xt.indented;De.lexical=new K(ft,j.stream.column(),D,null,De.lexical,q)};return he.lex=!0,he}function _e(){var D=j.state;D.lexical.prev&&(D.lexical.type==")"&&(D.indented=D.lexical.indented),D.lexical=D.lexical.prev)}_e.lex=!0;function ze(D){function q(he){return he==D?C():D==";"||he=="}"||he==")"||he=="]"?z():C(q)}return q}function qe(D,q){return D=="var"?C(xe("vardef",q),jr,ze(";"),_e):D=="keyword a"?C(xe("form"),at,qe,_e):D=="keyword b"?C(xe("form"),qe,_e):D=="keyword d"?j.stream.match(/^\s*$/,!1)?C():C(xe("stat"),Re,ze(";"),_e):D=="debugger"?C(ze(";")):D=="{"?C(xe("}"),be,Lt,_e,Fe):D==";"?C():D=="if"?(j.state.lexical.info=="else"&&j.state.cc[j.state.cc.length-1]==_e&&j.state.cc.pop()(),C(xe("form"),at,qe,_e,oe)):D=="function"?C(B):D=="for"?C(xe("form"),be,Q,qe,Fe,_e):D=="class"||f&&q=="interface"?(j.marked="keyword",C(xe("form",D=="class"?D:q),Le,_e)):D=="variable"?f&&q=="declare"?(j.marked="keyword",C(qe)):f&&(q=="module"||q=="enum"||q=="type")&&j.stream.match(/^\s*\w/,!1)?(j.marked="keyword",q=="enum"?C(tt):q=="type"?C(ce,ze("operator"),rt,ze(";")):C(xe("form"),zt,ze("{"),xe("}"),Lt,_e,_e)):f&&q=="namespace"?(j.marked="keyword",C(xe("form"),ke,qe,_e)):f&&q=="abstract"?(j.marked="keyword",C(qe)):C(xe("stat"),it):D=="switch"?C(xe("form"),at,ze("{"),xe("}","switch"),be,Lt,_e,_e,Fe):D=="case"?C(ke,ze(":")):D=="default"?C(ze(":")):D=="catch"?C(xe("form"),A,ge,qe,_e,Fe):D=="export"?C(xe("stat"),St,_e):D=="import"?C(xe("stat"),W,_e):D=="async"?C(qe):q=="@"?C(ke,qe):z(xe("stat"),ke,ze(";"),_e)}function ge(D){if(D=="(")return C(me,ze(")"))}function ke(D,q){return gt(D,q,!1)}function Ue(D,q){return gt(D,q,!0)}function at(D){return D!="("?z():C(xe(")"),Re,ze(")"),_e)}function gt(D,q,he){if(j.state.fatArrowAt==j.stream.start){var De=he?Se:Je;if(D=="(")return C(A,xe(")"),We(me,")"),_e,ze("=>"),De,Fe);if(D=="variable")return z(A,zt,ze("=>"),De,Fe)}var ft=he?Be:Ie;return J.hasOwnProperty(D)?C(ft):D=="function"?C(B,ft):D=="class"||f&&q=="interface"?(j.marked="keyword",C(xe("form"),ve,_e)):D=="keyword c"||D=="async"?C(he?Ue:ke):D=="("?C(xe(")"),Re,ze(")"),_e,ft):D=="operator"||D=="spread"?C(he?Ue:ke):D=="["?C(xe("]"),Ye,_e,ft):D=="{"?jt(ot,"}",null,ft):D=="quasi"?z(Ke,ft):D=="new"?C(X(he)):C()}function Re(D){return D.match(/[;\}\)\],]/)?z():z(ke)}function Ie(D,q){return D==","?C(Re):Be(D,q,!1)}function Be(D,q,he){var De=he==!1?Ie:Be,ft=he==!1?ke:Ue;if(D=="=>")return C(A,he?Se:Je,Fe);if(D=="operator")return/\+\+|--/.test(q)||f&&q=="!"?C(De):f&&q=="<"&&j.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?C(xe(">"),We(rt,">"),_e,De):q=="?"?C(ke,ze(":"),ft):C(ft);if(D=="quasi")return z(Ke,De);if(D!=";"){if(D=="(")return jt(Ue,")","call",De);if(D==".")return C(Ne,De);if(D=="[")return C(xe("]"),Re,ze("]"),_e,De);if(f&&q=="as")return j.marked="keyword",C(rt,De);if(D=="regexp")return j.state.lastType=j.marked="operator",j.stream.backUp(j.stream.pos-j.stream.start-1),C(ft)}}function Ke(D,q){return D!="quasi"?z():q.slice(q.length-2)!="${"?C(Ke):C(Re,He)}function He(D){if(D=="}")return j.marked="string-2",j.state.tokenize=F,C(Ke)}function Je(D){return $(j.stream,j.state),z(D=="{"?qe:ke)}function Se(D){return $(j.stream,j.state),z(D=="{"?qe:Ue)}function X(D){return function(q){return q=="."?C(D?ue:de):q=="variable"&&f?C(Ir,D?Be:Ie):z(D?Ue:ke)}}function de(D,q){if(q=="target")return j.marked="keyword",C(Ie)}function ue(D,q){if(q=="target")return j.marked="keyword",C(Be)}function it(D){return D==":"?C(_e,qe):z(Ie,ze(";"),_e)}function Ne(D){if(D=="variable")return j.marked="property",C()}function ot(D,q){if(D=="async")return j.marked="property",C(ot);if(D=="variable"||j.style=="keyword"){if(j.marked="property",q=="get"||q=="set")return C(Xe);var he;return f&&j.state.fatArrowAt==j.stream.start&&(he=j.stream.match(/^\s*:\s*/,!1))&&(j.state.fatArrowAt=j.stream.pos+he[0].length),C(et)}else{if(D=="number"||D=="string")return j.marked=d?"property":j.style+" property",C(et);if(D=="jsonld-keyword")return C(et);if(f&&N(q))return j.marked="keyword",C(ot);if(D=="[")return C(ke,fr,ze("]"),et);if(D=="spread")return C(Ue,et);if(q=="*")return j.marked="keyword",C(ot);if(D==":")return z(et)}}function Xe(D){return D!="variable"?z(et):(j.marked="property",C(B))}function et(D){if(D==":")return C(Ue);if(D=="(")return z(B)}function We(D,q,he){function De(ft,xt){if(he?he.indexOf(ft)>-1:ft==","){var Ze=j.state.lexical;return Ze.info=="call"&&(Ze.pos=(Ze.pos||0)+1),C(function(Yt,Fr){return Yt==q||Fr==q?z():z(D)},De)}return ft==q||xt==q?C():he&&he.indexOf(";")>-1?z(D):C(ze(q))}return function(ft,xt){return ft==q||xt==q?C():z(D,De)}}function jt(D,q,he){for(var De=3;De"),rt);if(D=="quasi")return z(Vt,Ht)}function wt(D){if(D=="=>")return C(rt)}function dr(D){return D.match(/[\}\)\]]/)?C():D==","||D==";"?C(dr):z(Et,dr)}function Et(D,q){if(D=="variable"||j.style=="keyword")return j.marked="property",C(Et);if(q=="?"||D=="number"||D=="string")return C(Et);if(D==":")return C(rt);if(D=="[")return C(ze("variable"),lt,ze("]"),Et);if(D=="(")return z(te,Et);if(!D.match(/[;\}\)\],]/))return C()}function Vt(D,q){return D!="quasi"?z():q.slice(q.length-2)!="${"?C(Vt):C(rt,kt)}function kt(D){if(D=="}")return j.marked="string-2",j.state.tokenize=F,C(Vt)}function st(D,q){return D=="variable"&&j.stream.match(/^\s*[?:]/,!1)||q=="?"?C(st):D==":"?C(rt):D=="spread"?C(st):z(rt)}function Ht(D,q){if(q=="<")return C(xe(">"),We(rt,">"),_e,Ht);if(q=="|"||D=="."||q=="&")return C(rt);if(D=="[")return C(rt,ze("]"),Ht);if(q=="extends"||q=="implements")return j.marked="keyword",C(rt);if(q=="?")return C(rt,ze(":"),rt)}function Ir(D,q){if(q=="<")return C(xe(">"),We(rt,">"),_e,Ht)}function hr(){return z(rt,pr)}function pr(D,q){if(q=="=")return C(rt)}function jr(D,q){return q=="enum"?(j.marked="keyword",C(tt)):z(zt,fr,Qt,ie)}function zt(D,q){if(f&&N(q))return j.marked="keyword",C(zt);if(D=="variable")return Z(q),C();if(D=="spread")return C(zt);if(D=="[")return jt(ur,"]");if(D=="{")return jt(yr,"}")}function yr(D,q){return D=="variable"&&!j.stream.match(/^\s*:/,!1)?(Z(q),C(Qt)):(D=="variable"&&(j.marked="property"),D=="spread"?C(zt):D=="}"?z():D=="["?C(ke,ze("]"),ze(":"),yr):C(ze(":"),zt,Qt))}function ur(){return z(zt,Qt)}function Qt(D,q){if(q=="=")return C(Ue)}function ie(D){if(D==",")return C(jr)}function oe(D,q){if(D=="keyword b"&&q=="else")return C(xe("form","else"),qe,_e)}function Q(D,q){if(q=="await")return C(Q);if(D=="(")return C(xe(")"),re,_e)}function re(D){return D=="var"?C(jr,O):D=="variable"?C(O):z(O)}function O(D,q){return D==")"?C():D==";"?C(O):q=="in"||q=="of"?(j.marked="keyword",C(ke,O)):z(ke,O)}function B(D,q){if(q=="*")return j.marked="keyword",C(B);if(D=="variable")return Z(q),C(B);if(D=="(")return C(A,xe(")"),We(me,")"),_e,Mt,qe,Fe);if(f&&q=="<")return C(xe(">"),We(hr,">"),_e,B)}function te(D,q){if(q=="*")return j.marked="keyword",C(te);if(D=="variable")return Z(q),C(te);if(D=="(")return C(A,xe(")"),We(me,")"),_e,Mt,Fe);if(f&&q=="<")return C(xe(">"),We(hr,">"),_e,te)}function ce(D,q){if(D=="keyword"||D=="variable")return j.marked="type",C(ce);if(q=="<")return C(xe(">"),We(hr,">"),_e)}function me(D,q){return q=="@"&&C(ke,me),D=="spread"?C(me):f&&N(q)?(j.marked="keyword",C(me)):f&&D=="this"?C(fr,Qt):z(zt,fr,Qt)}function ve(D,q){return D=="variable"?Le(D,q):Oe(D,q)}function Le(D,q){if(D=="variable")return Z(q),C(Oe)}function Oe(D,q){if(q=="<")return C(xe(">"),We(hr,">"),_e,Oe);if(q=="extends"||q=="implements"||f&&D==",")return q=="implements"&&(j.marked="keyword"),C(f?rt:ke,Oe);if(D=="{")return C(xe("}"),Ce,_e)}function Ce(D,q){if(D=="async"||D=="variable"&&(q=="static"||q=="get"||q=="set"||f&&N(q))&&j.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return j.marked="keyword",C(Ce);if(D=="variable"||j.style=="keyword")return j.marked="property",C(Ve,Ce);if(D=="number"||D=="string")return C(Ve,Ce);if(D=="[")return C(ke,fr,ze("]"),Ve,Ce);if(q=="*")return j.marked="keyword",C(Ce);if(f&&D=="(")return z(te,Ce);if(D==";"||D==",")return C(Ce);if(D=="}")return C();if(q=="@")return C(ke,Ce)}function Ve(D,q){if(q=="!"||q=="?")return C(Ve);if(D==":")return C(rt,Qt);if(q=="=")return C(Ue);var he=j.state.lexical.prev,De=he&&he.info=="interface";return z(De?te:B)}function St(D,q){return q=="*"?(j.marked="keyword",C(Ae,ze(";"))):q=="default"?(j.marked="keyword",C(ke,ze(";"))):D=="{"?C(We(mt,"}"),Ae,ze(";")):z(qe)}function mt(D,q){if(q=="as")return j.marked="keyword",C(ze("variable"));if(D=="variable")return z(Ue,mt)}function W(D){return D=="string"?C():D=="("?z(ke):D=="."?z(Ie):z(se,pe,Ae)}function se(D,q){return D=="{"?jt(se,"}"):(D=="variable"&&Z(q),q=="*"&&(j.marked="keyword"),C(Te))}function pe(D){if(D==",")return C(se,pe)}function Te(D,q){if(q=="as")return j.marked="keyword",C(se)}function Ae(D,q){if(q=="from")return j.marked="keyword",C(ke)}function Ye(D){return D=="]"?C():z(We(Ue,"]"))}function tt(){return z(xe("form"),zt,ze("{"),xe("}"),We(bt,"}"),_e,_e)}function bt(){return z(zt,Qt)}function Dt(D,q){return D.lastType=="operator"||D.lastType==","||g.test(q.charAt(0))||/[,.]/.test(q.charAt(0))}function we(D,q,he){return q.tokenize==I&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(q.lastType)||q.lastType=="quasi"&&/\{\s*$/.test(D.string.slice(0,D.pos-(he||0)))}return{startState:function(D){var q={tokenize:I,lastType:"sof",cc:[],lexical:new K((D||0)-l,0,"block",!1),localVars:n.localVars,context:n.localVars&&new ne(null,null,!1),indented:D||0};return n.globalVars&&typeof n.globalVars=="object"&&(q.globalVars=n.globalVars),q},token:function(D,q){if(D.sol()&&(q.lexical.hasOwnProperty("align")||(q.lexical.align=!1),q.indented=D.indentation(),$(D,q)),q.tokenize!=P&&D.eatSpace())return null;var he=q.tokenize(D,q);return k=="comment"?he:(q.lastType=k=="operator"&&(E=="++"||E=="--")?"incdec":k,G(q,he,k,E,D))},indent:function(D,q){if(D.tokenize==P||D.tokenize==F)return i.Pass;if(D.tokenize!=I)return 0;var he=q&&q.charAt(0),De=D.lexical,ft;if(!/^\s*else\b/.test(q))for(var xt=D.cc.length-1;xt>=0;--xt){var Ze=D.cc[xt];if(Ze==_e)De=De.prev;else if(Ze!=oe&&Ze!=Fe)break}for(;(De.type=="stat"||De.type=="form")&&(he=="}"||(ft=D.cc[D.cc.length-1])&&(ft==Ie||ft==Be)&&!/^[,\.=+\-*:?[\(]/.test(q));)De=De.prev;c&&De.type==")"&&De.prev.type=="stat"&&(De=De.prev);var Yt=De.type,Fr=he==Yt;return Yt=="vardef"?De.indented+(D.lastType=="operator"||D.lastType==","?De.info.length+1:0):Yt=="form"&&he=="{"?De.indented:Yt=="form"?De.indented+l:Yt=="stat"?De.indented+(Dt(D,q)?c||l:0):De.info=="switch"&&!Fr&&n.doubleIndentSwitch!=!1?De.indented+(/^(?:case|default)\b/.test(q)?l:2*l):De.align?De.column+(Fr?0:1):De.indented+(Fr?0:l)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:a?null:"/*",blockCommentEnd:a?null:"*/",blockCommentContinue:a?null:" * ",lineComment:a?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:a?"json":"javascript",jsonldMode:d,jsonMode:a,expressionAllowed:we,skipExpression:function(D){G(D,"atom","atom","true",new i.StringStream("",2,null))}}}),i.registerHelper("wordChars","javascript",/[\w$]/),i.defineMIME("text/javascript","javascript"),i.defineMIME("text/ecmascript","javascript"),i.defineMIME("application/javascript","javascript"),i.defineMIME("application/x-javascript","javascript"),i.defineMIME("application/ecmascript","javascript"),i.defineMIME("application/json",{name:"javascript",json:!0}),i.defineMIME("application/x-json",{name:"javascript",json:!0}),i.defineMIME("application/manifest+json",{name:"javascript",json:!0}),i.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),i.defineMIME("text/typescript",{name:"javascript",typescript:!0}),i.defineMIME("application/typescript",{name:"javascript",typescript:!0})})});var rl=Me((td,rd)=>{(function(i){typeof td=="object"&&typeof rd=="object"?i(Tt(),wa(),tl(),Js()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],i):i(CodeMirror)})(function(i){"use strict";var t={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function n(p,y,g){var v=p.current(),b=v.search(y);return b>-1?p.backUp(v.length-b):v.match(/<\/?$/)&&(p.backUp(v.length),p.match(y,!1)||p.match(v)),g}var l={};function c(p){var y=l[p];return y||(l[p]=new RegExp("\\s+"+p+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function d(p,y){var g=p.match(c(y));return g?/^\s*(.*?)\s*$/.exec(g[2])[1]:""}function a(p,y){return new RegExp((y?"^":"")+"","i")}function h(p,y){for(var g in p)for(var v=y[g]||(y[g]=[]),b=p[g],k=b.length-1;k>=0;k--)v.unshift(b[k])}function f(p,y){for(var g=0;g=0;E--)v.script.unshift(["type",k[E].matches,k[E].mode]);function w(I,S){var P=g.token(I,S.htmlState),F=/\btag\b/.test(P),H;if(F&&!/[<>\s\/]/.test(I.current())&&(H=S.htmlState.tagName&&S.htmlState.tagName.toLowerCase())&&v.hasOwnProperty(H))S.inTag=H+" ";else if(S.inTag&&F&&/>$/.test(I.current())){var $=/^([\S]+) (.*)/.exec(S.inTag);S.inTag=null;var J=I.current()==">"&&f(v[$[1]],$[2]),K=i.getMode(p,J),Y=a($[1],!0),G=a($[1],!1);S.token=function(j,z){return j.match(Y,!1)?(z.token=w,z.localState=z.localMode=null,null):n(j,G,z.localMode.token(j,z.localState))},S.localMode=K,S.localState=i.startState(K,g.indent(S.htmlState,"",""))}else S.inTag&&(S.inTag+=I.current(),I.eol()&&(S.inTag+=" "));return P}return{startState:function(){var I=i.startState(g);return{token:w,inTag:null,localMode:null,localState:null,htmlState:I}},copyState:function(I){var S;return I.localState&&(S=i.copyState(I.localMode,I.localState)),{token:I.token,inTag:I.inTag,localMode:I.localMode,localState:S,htmlState:i.copyState(g,I.htmlState)}},token:function(I,S){return S.token(I,S)},indent:function(I,S,P){return!I.localMode||/^\s*<\//.test(S)?g.indent(I.htmlState,S,P):I.localMode.indent?I.localMode.indent(I.localState,S,P):i.Pass},innerMode:function(I){return{state:I.localState||I.htmlState,mode:I.localMode||g}}}},"xml","javascript","css"),i.defineMIME("text/html","htmlmixed")})});var od=Me((nd,id)=>{(function(i){typeof nd=="object"&&typeof id=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("julia",function(t,n){function l(ae,M,A){return typeof A=="undefined"&&(A=""),typeof M=="undefined"&&(M="\\b"),new RegExp("^"+A+"(("+ae.join(")|(")+"))"+M)}var c="\\\\[0-7]{1,3}",d="\\\\x[A-Fa-f0-9]{1,2}",a=`\\\\[abefnrtv0%?'"\\\\]`,h="([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])",f=["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","\\.{2,3}","[\\.\\\\%*+\\-<>!\\/^|&]=?","\\?","\\$","~",":"],p=n.operators||l(["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],""),y=n.delimiters||/^[;,()[\]{}]/,g=n.identifiers||/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,v=l([c,d,a,h],"'"),b=["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"],k=["end","else","elseif","catch","finally"],E=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"],w=["true","false","nothing","NaN","Inf"];i.registerHelper("hintWords","julia",E.concat(w));var I=l(b),S=l(k),P=l(E),F=l(w),H=/^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,$=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,J=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/,K=l(f,"","@"),Y=l(f,"",":");function G(ae){return ae.nestedArrays>0}function j(ae){return ae.nestedGenerators>0}function z(ae,M){return typeof M=="undefined"&&(M=0),ae.scopes.length<=M?null:ae.scopes[ae.scopes.length-(M+1)]}function C(ae,M){if(ae.match("#=",!1))return M.tokenize=Z,M.tokenize(ae,M);var A=M.leavingExpr;if(ae.sol()&&(A=!1),M.leavingExpr=!1,A&&ae.match(/^'+/))return"operator";if(ae.match(/\.{4,}/))return"error";if(ae.match(/\.{1,3}/))return"operator";if(ae.eatSpace())return null;var be=ae.peek();if(be==="#")return ae.skipToEnd(),"comment";if(be==="["&&(M.scopes.push("["),M.nestedArrays++),be==="("&&(M.scopes.push("("),M.nestedGenerators++),G(M)&&be==="]"){for(;M.scopes.length&&z(M)!=="[";)M.scopes.pop();M.scopes.pop(),M.nestedArrays--,M.leavingExpr=!0}if(j(M)&&be===")"){for(;M.scopes.length&&z(M)!=="(";)M.scopes.pop();M.scopes.pop(),M.nestedGenerators--,M.leavingExpr=!0}if(G(M)){if(M.lastToken=="end"&&ae.match(":"))return"operator";if(ae.match("end"))return"number"}var Fe;if((Fe=ae.match(I,!1))&&M.scopes.push(Fe[0]),ae.match(S,!1)&&M.scopes.pop(),ae.match(/^::(?![:\$])/))return M.tokenize=U,M.tokenize(ae,M);if(!A&&(ae.match($)||ae.match(Y)))return"builtin";if(ae.match(p))return"operator";if(ae.match(/^\.?\d/,!1)){var xe=RegExp(/^im\b/),_e=!1;if(ae.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(_e=!0),ae.match(/^0x[0-9a-f_]+/i)&&(_e=!0),ae.match(/^0b[01_]+/i)&&(_e=!0),ae.match(/^0o[0-7_]+/i)&&(_e=!0),ae.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(_e=!0),ae.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(_e=!0),_e)return ae.match(xe),M.leavingExpr=!0,"number"}if(ae.match("'"))return M.tokenize=R,M.tokenize(ae,M);if(ae.match(J))return M.tokenize=N(ae.current()),M.tokenize(ae,M);if(ae.match(H)||ae.match(K))return"meta";if(ae.match(y))return null;if(ae.match(P))return"keyword";if(ae.match(F))return"builtin";var ze=M.isDefinition||M.lastToken=="function"||M.lastToken=="macro"||M.lastToken=="type"||M.lastToken=="struct"||M.lastToken=="immutable";return ae.match(g)?ze?ae.peek()==="."?(M.isDefinition=!0,"variable"):(M.isDefinition=!1,"def"):(M.leavingExpr=!0,"variable"):(ae.next(),"error")}function U(ae,M){return ae.match(/.*?(?=[,;{}()=\s]|$)/),ae.match("{")?M.nestedParameters++:ae.match("}")&&M.nestedParameters>0&&M.nestedParameters--,M.nestedParameters>0?ae.match(/.*?(?={|})/)||ae.next():M.nestedParameters==0&&(M.tokenize=C),"builtin"}function Z(ae,M){return ae.match("#=")&&M.nestedComments++,ae.match(/.*?(?=(#=|=#))/)||ae.skipToEnd(),ae.match("=#")&&(M.nestedComments--,M.nestedComments==0&&(M.tokenize=C)),"comment"}function R(ae,M){var A=!1,be;if(ae.match(v))A=!0;else if(be=ae.match(/\\u([a-f0-9]{1,4})(?=')/i)){var Fe=parseInt(be[1],16);(Fe<=55295||Fe>=57344)&&(A=!0,ae.next())}else if(be=ae.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var Fe=parseInt(be[1],16);Fe<=1114111&&(A=!0,ae.next())}return A?(M.leavingExpr=!0,M.tokenize=C,"string"):(ae.match(/^[^']+(?=')/)||ae.skipToEnd(),ae.match("'")&&(M.tokenize=C),"error")}function N(ae){ae.substr(-3)==='"""'?ae='"""':ae.substr(-1)==='"'&&(ae='"');function M(A,be){if(A.eat("\\"))A.next();else{if(A.match(ae))return be.tokenize=C,be.leavingExpr=!0,"string";A.eat(/[`"]/)}return A.eatWhile(/[^\\`"]/),"string"}return M}var ne={startState:function(){return{tokenize:C,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(ae,M){var A=M.tokenize(ae,M),be=ae.current();return be&&A&&(M.lastToken=be),A},indent:function(ae,M){var A=0;return(M==="]"||M===")"||/^end\b/.test(M)||/^else/.test(M)||/^catch\b/.test(M)||/^elseif\b/.test(M)||/^finally/.test(M))&&(A=-1),(ae.scopes.length+A)*t.indentUnit},electricInput:/\b(end|else|catch|finally)\b/,blockCommentStart:"#=",blockCommentEnd:"=#",lineComment:"#",closeBrackets:'()[]{}""',fold:"indent"};return ne}),i.defineMIME("text/x-julia","julia")})});var ld=Me((ad,sd)=>{(function(i){typeof ad=="object"&&typeof sd=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("lua",function(t,n){var l=t.indentUnit;function c(w){return new RegExp("^(?:"+w.join("|")+")","i")}function d(w){return new RegExp("^(?:"+w.join("|")+")$","i")}var a=d(n.specials||[]),h=d(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),f=d(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),p=d(["function","if","repeat","do","\\(","{"]),y=d(["end","until","\\)","}"]),g=c(["end","until","\\)","}","else","elseif"]);function v(w){for(var I=0;w.eat("=");)++I;return w.eat("["),I}function b(w,I){var S=w.next();return S=="-"&&w.eat("-")?w.eat("[")&&w.eat("[")?(I.cur=k(v(w),"comment"))(w,I):(w.skipToEnd(),"comment"):S=='"'||S=="'"?(I.cur=E(S))(w,I):S=="["&&/[\[=]/.test(w.peek())?(I.cur=k(v(w),"string"))(w,I):/\d/.test(S)?(w.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(S)?(w.eatWhile(/[\w\\\-_.]/),"variable"):null}function k(w,I){return function(S,P){for(var F=null,H;(H=S.next())!=null;)if(F==null)H=="]"&&(F=0);else if(H=="=")++F;else if(H=="]"&&F==w){P.cur=b;break}else F=null;return I}}function E(w){return function(I,S){for(var P=!1,F;(F=I.next())!=null&&!(F==w&&!P);)P=!P&&F=="\\";return P||(S.cur=b),"string"}}return{startState:function(w){return{basecol:w||0,indentDepth:0,cur:b}},token:function(w,I){if(w.eatSpace())return null;var S=I.cur(w,I),P=w.current();return S=="variable"&&(f.test(P)?S="keyword":h.test(P)?S="builtin":a.test(P)&&(S="variable-2")),S!="comment"&&S!="string"&&(p.test(P)?++I.indentDepth:y.test(P)&&--I.indentDepth),S},indent:function(w,I){var S=g.test(I);return w.basecol+l*(w.indentDepth-(S?1:0))},electricInput:/^\s*(?:end|until|else|\)|\})$/,lineComment:"--",blockCommentStart:"--[[",blockCommentEnd:"]]"}}),i.defineMIME("text/x-lua","lua")})});var fd=Me((ud,cd)=>{(function(i){typeof ud=="object"&&typeof cd=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var t=0;t-1&&l.substring(a+1,l.length);if(h)return i.findModeByExtension(h)},i.findModeByName=function(l){l=l.toLowerCase();for(var c=0;c{(function(i){typeof dd=="object"&&typeof hd=="object"?i(Tt(),wa(),fd()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../meta"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("markdown",function(t,n){var l=i.getMode(t,"text/html"),c=l.name=="null";function d(M){if(i.findModeByName){var A=i.findModeByName(M);A&&(M=A.mime||A.mimes[0])}var be=i.getMode(t,M);return be.name=="null"?null:be}n.highlightFormatting===void 0&&(n.highlightFormatting=!1),n.maxBlockquoteDepth===void 0&&(n.maxBlockquoteDepth=0),n.taskLists===void 0&&(n.taskLists=!1),n.strikethrough===void 0&&(n.strikethrough=!1),n.emoji===void 0&&(n.emoji=!1),n.fencedCodeBlockHighlighting===void 0&&(n.fencedCodeBlockHighlighting=!0),n.fencedCodeBlockDefaultMode===void 0&&(n.fencedCodeBlockDefaultMode="text/plain"),n.xml===void 0&&(n.xml=!0),n.tokenTypeOverrides===void 0&&(n.tokenTypeOverrides={});var a={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var h in a)a.hasOwnProperty(h)&&n.tokenTypeOverrides[h]&&(a[h]=n.tokenTypeOverrides[h]);var f=/^([*\-_])(?:\s*\1){2,}\s*$/,p=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,y=/^\[(x| )\](?=\s)/i,g=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,v=/^ {0,3}(?:\={1,}|-{2,})\s*$/,b=/^[^#!\[\]*_\\<>` "'(~:]+/,k=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,E=/^\s*\[[^\]]+?\]:.*$/,w=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,I=" ";function S(M,A,be){return A.f=A.inline=be,be(M,A)}function P(M,A,be){return A.f=A.block=be,be(M,A)}function F(M){return!M||!/\S/.test(M.string)}function H(M){if(M.linkTitle=!1,M.linkHref=!1,M.linkText=!1,M.em=!1,M.strong=!1,M.strikethrough=!1,M.quote=0,M.indentedCode=!1,M.f==J){var A=c;if(!A){var be=i.innerMode(l,M.htmlState);A=be.mode.name=="xml"&&be.state.tagStart===null&&!be.state.context&&be.state.tokenize.isInText}A&&(M.f=j,M.block=$,M.htmlState=null)}return M.trailingSpace=0,M.trailingSpaceNewLine=!1,M.prevLine=M.thisLine,M.thisLine={stream:null},null}function $(M,A){var be=M.column()===A.indentation,Fe=F(A.prevLine.stream),xe=A.indentedCode,_e=A.prevLine.hr,ze=A.list!==!1,qe=(A.listStack[A.listStack.length-1]||0)+3;A.indentedCode=!1;var ge=A.indentation;if(A.indentationDiff===null&&(A.indentationDiff=A.indentation,ze)){for(A.list=null;ge=4&&(xe||A.prevLine.fencedCodeEnd||A.prevLine.header||Fe))return M.skipToEnd(),A.indentedCode=!0,a.code;if(M.eatSpace())return null;if(be&&A.indentation<=qe&&(at=M.match(g))&&at[1].length<=6)return A.quote=0,A.header=at[1].length,A.thisLine.header=!0,n.highlightFormatting&&(A.formatting="header"),A.f=A.inline,Y(A);if(A.indentation<=qe&&M.eat(">"))return A.quote=be?1:A.quote+1,n.highlightFormatting&&(A.formatting="quote"),M.eatSpace(),Y(A);if(!Ue&&!A.setext&&be&&A.indentation<=qe&&(at=M.match(p))){var gt=at[1]?"ol":"ul";return A.indentation=ge+M.current().length,A.list=!0,A.quote=0,A.listStack.push(A.indentation),A.em=!1,A.strong=!1,A.code=!1,A.strikethrough=!1,n.taskLists&&M.match(y,!1)&&(A.taskList=!0),A.f=A.inline,n.highlightFormatting&&(A.formatting=["list","list-"+gt]),Y(A)}else{if(be&&A.indentation<=qe&&(at=M.match(k,!0)))return A.quote=0,A.fencedEndRE=new RegExp(at[1]+"+ *$"),A.localMode=n.fencedCodeBlockHighlighting&&d(at[2]||n.fencedCodeBlockDefaultMode),A.localMode&&(A.localState=i.startState(A.localMode)),A.f=A.block=K,n.highlightFormatting&&(A.formatting="code-block"),A.code=-1,Y(A);if(A.setext||(!ke||!ze)&&!A.quote&&A.list===!1&&!A.code&&!Ue&&!E.test(M.string)&&(at=M.lookAhead(1))&&(at=at.match(v)))return A.setext?(A.header=A.setext,A.setext=0,M.skipToEnd(),n.highlightFormatting&&(A.formatting="header")):(A.header=at[0].charAt(0)=="="?1:2,A.setext=A.header),A.thisLine.header=!0,A.f=A.inline,Y(A);if(Ue)return M.skipToEnd(),A.hr=!0,A.thisLine.hr=!0,a.hr;if(M.peek()==="[")return S(M,A,R)}return S(M,A,A.inline)}function J(M,A){var be=l.token(M,A.htmlState);if(!c){var Fe=i.innerMode(l,A.htmlState);(Fe.mode.name=="xml"&&Fe.state.tagStart===null&&!Fe.state.context&&Fe.state.tokenize.isInText||A.md_inside&&M.current().indexOf(">")>-1)&&(A.f=j,A.block=$,A.htmlState=null)}return be}function K(M,A){var be=A.listStack[A.listStack.length-1]||0,Fe=A.indentation=M.quote?A.push(a.formatting+"-"+M.formatting[be]+"-"+M.quote):A.push("error"))}if(M.taskOpen)return A.push("meta"),A.length?A.join(" "):null;if(M.taskClosed)return A.push("property"),A.length?A.join(" "):null;if(M.linkHref?A.push(a.linkHref,"url"):(M.strong&&A.push(a.strong),M.em&&A.push(a.em),M.strikethrough&&A.push(a.strikethrough),M.emoji&&A.push(a.emoji),M.linkText&&A.push(a.linkText),M.code&&A.push(a.code),M.image&&A.push(a.image),M.imageAltText&&A.push(a.imageAltText,"link"),M.imageMarker&&A.push(a.imageMarker)),M.header&&A.push(a.header,a.header+"-"+M.header),M.quote&&(A.push(a.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=M.quote?A.push(a.quote+"-"+M.quote):A.push(a.quote+"-"+n.maxBlockquoteDepth)),M.list!==!1){var Fe=(M.listStack.length-1)%3;Fe?Fe===1?A.push(a.list2):A.push(a.list3):A.push(a.list1)}return M.trailingSpaceNewLine?A.push("trailing-space-new-line"):M.trailingSpace&&A.push("trailing-space-"+(M.trailingSpace%2?"a":"b")),A.length?A.join(" "):null}function G(M,A){if(M.match(b,!0))return Y(A)}function j(M,A){var be=A.text(M,A);if(typeof be!="undefined")return be;if(A.list)return A.list=null,Y(A);if(A.taskList){var Fe=M.match(y,!0)[1]===" ";return Fe?A.taskOpen=!0:A.taskClosed=!0,n.highlightFormatting&&(A.formatting="task"),A.taskList=!1,Y(A)}if(A.taskOpen=!1,A.taskClosed=!1,A.header&&M.match(/^#+$/,!0))return n.highlightFormatting&&(A.formatting="header"),Y(A);var xe=M.next();if(A.linkTitle){A.linkTitle=!1;var _e=xe;xe==="("&&(_e=")"),_e=(_e+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ze="^\\s*(?:[^"+_e+"\\\\]+|\\\\\\\\|\\\\.)"+_e;if(M.match(new RegExp(ze),!0))return a.linkHref}if(xe==="`"){var qe=A.formatting;n.highlightFormatting&&(A.formatting="code"),M.eatWhile("`");var ge=M.current().length;if(A.code==0&&(!A.quote||ge==1))return A.code=ge,Y(A);if(ge==A.code){var ke=Y(A);return A.code=0,ke}else return A.formatting=qe,Y(A)}else if(A.code)return Y(A);if(xe==="\\"&&(M.next(),n.highlightFormatting)){var Ue=Y(A),at=a.formatting+"-escape";return Ue?Ue+" "+at:at}if(xe==="!"&&M.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return A.imageMarker=!0,A.image=!0,n.highlightFormatting&&(A.formatting="image"),Y(A);if(xe==="["&&A.imageMarker&&M.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return A.imageMarker=!1,A.imageAltText=!0,n.highlightFormatting&&(A.formatting="image"),Y(A);if(xe==="]"&&A.imageAltText){n.highlightFormatting&&(A.formatting="image");var Ue=Y(A);return A.imageAltText=!1,A.image=!1,A.inline=A.f=C,Ue}if(xe==="["&&!A.image)return A.linkText&&M.match(/^.*?\]/)||(A.linkText=!0,n.highlightFormatting&&(A.formatting="link")),Y(A);if(xe==="]"&&A.linkText){n.highlightFormatting&&(A.formatting="link");var Ue=Y(A);return A.linkText=!1,A.inline=A.f=M.match(/\(.*?\)| ?\[.*?\]/,!1)?C:j,Ue}if(xe==="<"&&M.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){A.f=A.inline=z,n.highlightFormatting&&(A.formatting="link");var Ue=Y(A);return Ue?Ue+=" ":Ue="",Ue+a.linkInline}if(xe==="<"&&M.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){A.f=A.inline=z,n.highlightFormatting&&(A.formatting="link");var Ue=Y(A);return Ue?Ue+=" ":Ue="",Ue+a.linkEmail}if(n.xml&&xe==="<"&&M.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var gt=M.string.indexOf(">",M.pos);if(gt!=-1){var Re=M.string.substring(M.start,gt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Re)&&(A.md_inside=!0)}return M.backUp(1),A.htmlState=i.startState(l),P(M,A,J)}if(n.xml&&xe==="<"&&M.match(/^\/\w*?>/))return A.md_inside=!1,"tag";if(xe==="*"||xe==="_"){for(var Ie=1,Be=M.pos==1?" ":M.string.charAt(M.pos-2);Ie<3&&M.eat(xe);)Ie++;var Ke=M.peek()||" ",He=!/\s/.test(Ke)&&(!w.test(Ke)||/\s/.test(Be)||w.test(Be)),Je=!/\s/.test(Be)&&(!w.test(Be)||/\s/.test(Ke)||w.test(Ke)),Se=null,X=null;if(Ie%2&&(!A.em&&He&&(xe==="*"||!Je||w.test(Be))?Se=!0:A.em==xe&&Je&&(xe==="*"||!He||w.test(Ke))&&(Se=!1)),Ie>1&&(!A.strong&&He&&(xe==="*"||!Je||w.test(Be))?X=!0:A.strong==xe&&Je&&(xe==="*"||!He||w.test(Ke))&&(X=!1)),X!=null||Se!=null){n.highlightFormatting&&(A.formatting=Se==null?"strong":X==null?"em":"strong em"),Se===!0&&(A.em=xe),X===!0&&(A.strong=xe);var ke=Y(A);return Se===!1&&(A.em=!1),X===!1&&(A.strong=!1),ke}}else if(xe===" "&&(M.eat("*")||M.eat("_"))){if(M.peek()===" ")return Y(A);M.backUp(1)}if(n.strikethrough){if(xe==="~"&&M.eatWhile(xe)){if(A.strikethrough){n.highlightFormatting&&(A.formatting="strikethrough");var ke=Y(A);return A.strikethrough=!1,ke}else if(M.match(/^[^\s]/,!1))return A.strikethrough=!0,n.highlightFormatting&&(A.formatting="strikethrough"),Y(A)}else if(xe===" "&&M.match("~~",!0)){if(M.peek()===" ")return Y(A);M.backUp(2)}}if(n.emoji&&xe===":"&&M.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){A.emoji=!0,n.highlightFormatting&&(A.formatting="emoji");var de=Y(A);return A.emoji=!1,de}return xe===" "&&(M.match(/^ +$/,!1)?A.trailingSpace++:A.trailingSpace&&(A.trailingSpaceNewLine=!0)),Y(A)}function z(M,A){var be=M.next();if(be===">"){A.f=A.inline=j,n.highlightFormatting&&(A.formatting="link");var Fe=Y(A);return Fe?Fe+=" ":Fe="",Fe+a.linkInline}return M.match(/^[^>]+/,!0),a.linkInline}function C(M,A){if(M.eatSpace())return null;var be=M.next();return be==="("||be==="["?(A.f=A.inline=Z(be==="("?")":"]"),n.highlightFormatting&&(A.formatting="link-string"),A.linkHref=!0,Y(A)):"error"}var U={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Z(M){return function(A,be){var Fe=A.next();if(Fe===M){be.f=be.inline=j,n.highlightFormatting&&(be.formatting="link-string");var xe=Y(be);return be.linkHref=!1,xe}return A.match(U[M]),be.linkHref=!0,Y(be)}}function R(M,A){return M.match(/^([^\]\\]|\\.)*\]:/,!1)?(A.f=N,M.next(),n.highlightFormatting&&(A.formatting="link"),A.linkText=!0,Y(A)):S(M,A,j)}function N(M,A){if(M.match("]:",!0)){A.f=A.inline=ne,n.highlightFormatting&&(A.formatting="link");var be=Y(A);return A.linkText=!1,be}return M.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function ne(M,A){return M.eatSpace()?null:(M.match(/^[^\s]+/,!0),M.peek()===void 0?A.linkTitle=!0:M.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),A.f=A.inline=j,a.linkHref+" url")}var ae={startState:function(){return{f:$,prevLine:{stream:null},thisLine:{stream:null},block:$,htmlState:null,indentation:0,inline:j,text:G,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(M){return{f:M.f,prevLine:M.prevLine,thisLine:M.thisLine,block:M.block,htmlState:M.htmlState&&i.copyState(l,M.htmlState),indentation:M.indentation,localMode:M.localMode,localState:M.localMode?i.copyState(M.localMode,M.localState):null,inline:M.inline,text:M.text,formatting:!1,linkText:M.linkText,linkTitle:M.linkTitle,linkHref:M.linkHref,code:M.code,em:M.em,strong:M.strong,strikethrough:M.strikethrough,emoji:M.emoji,header:M.header,setext:M.setext,hr:M.hr,taskList:M.taskList,list:M.list,listStack:M.listStack.slice(0),quote:M.quote,indentedCode:M.indentedCode,trailingSpace:M.trailingSpace,trailingSpaceNewLine:M.trailingSpaceNewLine,md_inside:M.md_inside,fencedEndRE:M.fencedEndRE}},token:function(M,A){if(A.formatting=!1,M!=A.thisLine.stream){if(A.header=0,A.hr=!1,M.match(/^\s*$/,!0))return H(A),null;if(A.prevLine=A.thisLine,A.thisLine={stream:M},A.taskList=!1,A.trailingSpace=0,A.trailingSpaceNewLine=!1,!A.localState&&(A.f=A.block,A.f!=J)){var be=M.match(/^\s*/,!0)[0].replace(/\t/g,I).length;if(A.indentation=be,A.indentationDiff=null,be>0)return null}}return A.f(M,A)},innerMode:function(M){return M.block==J?{state:M.htmlState,mode:l}:M.localState?{state:M.localState,mode:M.localMode}:{state:M,mode:ae}},indent:function(M,A,be){return M.block==J&&l.indent?l.indent(M.htmlState,A,be):M.localState&&M.localMode.indent?M.localMode.indent(M.localState,A,be):i.Pass},blankLine:H,getType:Y,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ae},"xml"),i.defineMIME("text/markdown","markdown"),i.defineMIME("text/x-markdown","markdown")})});var vd=Me((md,gd)=>{(function(i){typeof md=="object"&&typeof gd=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("mllike",function(t,n){var l={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"},c=n.extraWords||{};for(var d in c)c.hasOwnProperty(d)&&(l[d]=n.extraWords[d]);var a=[];for(var h in l)a.push(h);i.registerHelper("hintWords","mllike",a);function f(v,b){var k=v.next();if(k==='"')return b.tokenize=p,b.tokenize(v,b);if(k==="{"&&v.eat("|"))return b.longString=!0,b.tokenize=g,b.tokenize(v,b);if(k==="("&&v.eat("*"))return b.commentLevel++,b.tokenize=y,b.tokenize(v,b);if(k==="~"||k==="?")return v.eatWhile(/\w/),"variable-2";if(k==="`")return v.eatWhile(/\w/),"quote";if(k==="/"&&n.slashComments&&v.eat("/"))return v.skipToEnd(),"comment";if(/\d/.test(k))return k==="0"&&v.eat(/[bB]/)&&v.eatWhile(/[01]/),k==="0"&&v.eat(/[xX]/)&&v.eatWhile(/[0-9a-fA-F]/),k==="0"&&v.eat(/[oO]/)?v.eatWhile(/[0-7]/):(v.eatWhile(/[\d_]/),v.eat(".")&&v.eatWhile(/[\d]/),v.eat(/[eE]/)&&v.eatWhile(/[\d\-+]/)),"number";if(/[+\-*&%=<>!?|@\.~:]/.test(k))return"operator";if(/[\w\xa1-\uffff]/.test(k)){v.eatWhile(/[\w\xa1-\uffff]/);var E=v.current();return l.hasOwnProperty(E)?l[E]:"variable"}return null}function p(v,b){for(var k,E=!1,w=!1;(k=v.next())!=null;){if(k==='"'&&!w){E=!0;break}w=!w&&k==="\\"}return E&&!w&&(b.tokenize=f),"string"}function y(v,b){for(var k,E;b.commentLevel>0&&(E=v.next())!=null;)k==="("&&E==="*"&&b.commentLevel++,k==="*"&&E===")"&&b.commentLevel--,k=E;return b.commentLevel<=0&&(b.tokenize=f),"comment"}function g(v,b){for(var k,E;b.longString&&(E=v.next())!=null;)k==="|"&&E==="}"&&(b.longString=!1),k=E;return b.longString||(b.tokenize=f),"string"}return{startState:function(){return{tokenize:f,commentLevel:0,longString:!1}},token:function(v,b){return v.eatSpace()?null:b.tokenize(v,b)},blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:n.slashComments?"//":null}}),i.defineMIME("text/x-ocaml",{name:"mllike",extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}}),i.defineMIME("text/x-fsharp",{name:"mllike",extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:!0}),i.defineMIME("text/x-sml",{name:"mllike",extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:!0})})});var xd=Me((yd,bd)=>{(function(i){typeof yd=="object"&&typeof bd=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("nginx",function(t){function n(b){for(var k={},E=b.split(" "),w=0;w*\/]/.test(w)?f(null,"select-op"):/[;{}:\[\]]/.test(w)?f(null,w):(b.eatWhile(/[\w\\\-]/),f("variable","variable"))}function y(b,k){for(var E=!1,w;(w=b.next())!=null;){if(E&&w=="/"){k.tokenize=p;break}E=w=="*"}return f("comment","comment")}function g(b,k){for(var E=0,w;(w=b.next())!=null;){if(E>=2&&w==">"){k.tokenize=p;break}E=w=="-"?E+1:0}return f("comment","comment")}function v(b){return function(k,E){for(var w=!1,I;(I=k.next())!=null&&!(I==b&&!w);)w=!w&&I=="\\";return w||(E.tokenize=p),f("string","string")}}return{startState:function(b){return{tokenize:p,baseIndent:b||0,stack:[]}},token:function(b,k){if(b.eatSpace())return null;h=null;var E=k.tokenize(b,k),w=k.stack[k.stack.length-1];return h=="hash"&&w=="rule"?E="atom":E=="variable"&&(w=="rule"?E="number":(!w||w=="@media{")&&(E="tag")),w=="rule"&&/^[\{\};]$/.test(h)&&k.stack.pop(),h=="{"?w=="@media"?k.stack[k.stack.length-1]="@media{":k.stack.push("{"):h=="}"?k.stack.pop():h=="@media"?k.stack.push("@media"):w=="{"&&h!="comment"&&k.stack.push("rule"),E},indent:function(b,k){var E=b.stack.length;return/^\}/.test(k)&&(E-=b.stack[b.stack.length-1]=="rule"?2:1),b.baseIndent+E*a},electricChars:"}"}}),i.defineMIME("text/x-nginx-conf","nginx")})});var _d=Me((wd,kd)=>{(function(i){typeof wd=="object"&&typeof kd=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("perl",function(){var d={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},a="string-2",h=/[goseximacplud]/;function f(g,v,b,k,E){return v.chain=null,v.style=null,v.tail=null,v.tokenize=function(w,I){for(var S=!1,P,F=0;P=w.next();){if(P===b[F]&&!S)return b[++F]!==void 0?(I.chain=b[F],I.style=k,I.tail=E):E&&w.eatWhile(E),I.tokenize=y,k;S=!S&&P=="\\"}return k},v.tokenize(g,v)}function p(g,v,b){return v.tokenize=function(k,E){return k.string==b&&(E.tokenize=y),k.skipToEnd(),"string"},v.tokenize(g,v)}function y(g,v){if(g.eatSpace())return null;if(v.chain)return f(g,v,v.chain,v.style,v.tail);if(g.match(/^\-?[\d\.]/,!1)&&g.match(/^(\-?(\d*\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F]+|0b[01]+|\d+(e[+-]?\d+)?)/))return"number";if(g.match(/^<<(?=[_a-zA-Z])/))return g.eatWhile(/\w/),p(g,v,g.current().substr(2));if(g.sol()&&g.match(/^\=item(?!\w)/))return p(g,v,"=cut");var b=g.next();if(b=='"'||b=="'"){if(n(g,3)=="<<"+b){var k=g.pos;g.eatWhile(/\w/);var E=g.current().substr(1);if(E&&g.eat(b))return p(g,v,E);g.pos=k}return f(g,v,[b],"string")}if(b=="q"){var w=t(g,-2);if(!(w&&/\w/.test(w))){if(w=t(g,0),w=="x"){if(w=t(g,1),w=="(")return c(g,2),f(g,v,[")"],a,h);if(w=="[")return c(g,2),f(g,v,["]"],a,h);if(w=="{")return c(g,2),f(g,v,["}"],a,h);if(w=="<")return c(g,2),f(g,v,[">"],a,h);if(/[\^'"!~\/]/.test(w))return c(g,1),f(g,v,[g.eat(w)],a,h)}else if(w=="q"){if(w=t(g,1),w=="(")return c(g,2),f(g,v,[")"],"string");if(w=="[")return c(g,2),f(g,v,["]"],"string");if(w=="{")return c(g,2),f(g,v,["}"],"string");if(w=="<")return c(g,2),f(g,v,[">"],"string");if(/[\^'"!~\/]/.test(w))return c(g,1),f(g,v,[g.eat(w)],"string")}else if(w=="w"){if(w=t(g,1),w=="(")return c(g,2),f(g,v,[")"],"bracket");if(w=="[")return c(g,2),f(g,v,["]"],"bracket");if(w=="{")return c(g,2),f(g,v,["}"],"bracket");if(w=="<")return c(g,2),f(g,v,[">"],"bracket");if(/[\^'"!~\/]/.test(w))return c(g,1),f(g,v,[g.eat(w)],"bracket")}else if(w=="r"){if(w=t(g,1),w=="(")return c(g,2),f(g,v,[")"],a,h);if(w=="[")return c(g,2),f(g,v,["]"],a,h);if(w=="{")return c(g,2),f(g,v,["}"],a,h);if(w=="<")return c(g,2),f(g,v,[">"],a,h);if(/[\^'"!~\/]/.test(w))return c(g,1),f(g,v,[g.eat(w)],a,h)}else if(/[\^'"!~\/(\[{<]/.test(w)){if(w=="(")return c(g,1),f(g,v,[")"],"string");if(w=="[")return c(g,1),f(g,v,["]"],"string");if(w=="{")return c(g,1),f(g,v,["}"],"string");if(w=="<")return c(g,1),f(g,v,[">"],"string");if(/[\^'"!~\/]/.test(w))return f(g,v,[g.eat(w)],"string")}}}if(b=="m"){var w=t(g,-2);if(!(w&&/\w/.test(w))&&(w=g.eat(/[(\[{<\^'"!~\/]/),w)){if(/[\^'"!~\/]/.test(w))return f(g,v,[w],a,h);if(w=="(")return f(g,v,[")"],a,h);if(w=="[")return f(g,v,["]"],a,h);if(w=="{")return f(g,v,["}"],a,h);if(w=="<")return f(g,v,[">"],a,h)}}if(b=="s"){var w=/[\/>\]})\w]/.test(t(g,-2));if(!w&&(w=g.eat(/[(\[{<\^'"!~\/]/),w))return w=="["?f(g,v,["]","]"],a,h):w=="{"?f(g,v,["}","}"],a,h):w=="<"?f(g,v,[">",">"],a,h):w=="("?f(g,v,[")",")"],a,h):f(g,v,[w,w],a,h)}if(b=="y"){var w=/[\/>\]})\w]/.test(t(g,-2));if(!w&&(w=g.eat(/[(\[{<\^'"!~\/]/),w))return w=="["?f(g,v,["]","]"],a,h):w=="{"?f(g,v,["}","}"],a,h):w=="<"?f(g,v,[">",">"],a,h):w=="("?f(g,v,[")",")"],a,h):f(g,v,[w,w],a,h)}if(b=="t"){var w=/[\/>\]})\w]/.test(t(g,-2));if(!w&&(w=g.eat("r"),w&&(w=g.eat(/[(\[{<\^'"!~\/]/),w)))return w=="["?f(g,v,["]","]"],a,h):w=="{"?f(g,v,["}","}"],a,h):w=="<"?f(g,v,[">",">"],a,h):w=="("?f(g,v,[")",")"],a,h):f(g,v,[w,w],a,h)}if(b=="`")return f(g,v,[b],"variable-2");if(b=="/")return/~\s*$/.test(n(g))?f(g,v,[b],a,h):"operator";if(b=="$"){var k=g.pos;if(g.eatWhile(/\d/)||g.eat("{")&&g.eatWhile(/\d/)&&g.eat("}"))return"variable-2";g.pos=k}if(/[$@%]/.test(b)){var k=g.pos;if(g.eat("^")&&g.eat(/[A-Z]/)||!/[@$%&]/.test(t(g,-2))&&g.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var w=g.current();if(d[w])return"variable-2"}g.pos=k}if(/[$@%&]/.test(b)&&(g.eatWhile(/[\w$]/)||g.eat("{")&&g.eatWhile(/[\w$]/)&&g.eat("}"))){var w=g.current();return d[w]?"variable-2":"variable"}if(b=="#"&&t(g,-2)!="$")return g.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(b)){var k=g.pos;if(g.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),d[g.current()])return"operator";g.pos=k}if(b=="_"&&g.pos==1){if(l(g,6)=="_END__")return f(g,v,["\0"],"comment");if(l(g,7)=="_DATA__")return f(g,v,["\0"],"variable-2");if(l(g,7)=="_C__")return f(g,v,["\0"],"string")}if(/\w/.test(b)){var k=g.pos;if(t(g,-2)=="{"&&(t(g,0)=="}"||g.eatWhile(/\w/)&&t(g,0)=="}"))return"string";g.pos=k}if(/[A-Z]/.test(b)){var I=t(g,-2),k=g.pos;if(g.eatWhile(/[A-Z_]/),/[\da-z]/.test(t(g,0)))g.pos=k;else{var w=d[g.current()];return w?(w[1]&&(w=w[0]),I!=":"?w==1?"keyword":w==2?"def":w==3?"atom":w==4?"operator":w==5?"variable-2":"meta":"meta"):"meta"}}if(/[a-zA-Z_]/.test(b)){var I=t(g,-2);g.eatWhile(/\w/);var w=d[g.current()];return w?(w[1]&&(w=w[0]),I!=":"?w==1?"keyword":w==2?"def":w==3?"atom":w==4?"operator":w==5?"variable-2":"meta":"meta"):"meta"}return null}return{startState:function(){return{tokenize:y,chain:null,style:null,tail:null}},token:function(g,v){return(v.tokenize||y)(g,v)},lineComment:"#"}}),i.registerHelper("wordChars","perl",/[\w$]/),i.defineMIME("text/x-perl","perl");function t(d,a){return d.string.charAt(d.pos+(a||0))}function n(d,a){if(a){var h=d.pos-a;return d.string.substr(h>=0?h:0,a)}else return d.string.substr(0,d.pos-1)}function l(d,a){var h=d.string.length,f=h-d.pos+1;return d.string.substr(d.pos,a&&a=(f=d.string.length-1)?d.pos=f:d.pos=h}})});var Cd=Me((Sd,Ed)=>{(function(i){typeof Sd=="object"&&typeof Ed=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("pascal",function(){function t(p){for(var y={},g=p.split(" "),v=0;v!?|\/]/;function d(p,y){var g=p.next();if(g=="#"&&y.startOfLine)return p.skipToEnd(),"meta";if(g=='"'||g=="'")return y.tokenize=a(g),y.tokenize(p,y);if(g=="("&&p.eat("*"))return y.tokenize=h,h(p,y);if(g=="{")return y.tokenize=f,f(p,y);if(/[\[\]\(\),;\:\.]/.test(g))return null;if(/\d/.test(g))return p.eatWhile(/[\w\.]/),"number";if(g=="/"&&p.eat("/"))return p.skipToEnd(),"comment";if(c.test(g))return p.eatWhile(c),"operator";p.eatWhile(/[\w\$_]/);var v=p.current();return n.propertyIsEnumerable(v)?"keyword":l.propertyIsEnumerable(v)?"atom":"variable"}function a(p){return function(y,g){for(var v=!1,b,k=!1;(b=y.next())!=null;){if(b==p&&!v){k=!0;break}v=!v&&b=="\\"}return(k||!v)&&(g.tokenize=null),"string"}}function h(p,y){for(var g=!1,v;v=p.next();){if(v==")"&&g){y.tokenize=null;break}g=v=="*"}return"comment"}function f(p,y){for(var g;g=p.next();)if(g=="}"){y.tokenize=null;break}return"comment"}return{startState:function(){return{tokenize:null}},token:function(p,y){if(p.eatSpace())return null;var g=(y.tokenize||d)(p,y);return g=="comment"||g=="meta",g},electricChars:"{}"}}),i.defineMIME("text/x-pascal","pascal")})});var Ld=Me((Td,Ad)=>{(function(i){typeof Td=="object"&&typeof Ad=="object"?i(Tt(),rl(),el()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],i):i(CodeMirror)})(function(i){"use strict";function t(p){for(var y={},g=p.split(" "),v=0;v\w/,!1)&&(y.tokenize=n([[["->",null]],[[/[\w]+/,"variable"]]],g,v)),"variable-2";for(var b=!1;!p.eol()&&(b||v===!1||!p.match("{$",!1)&&!p.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!b&&p.match(g)){y.tokenize=null,y.tokStack.pop(),y.tokStack.pop();break}b=p.next()=="\\"&&!b}return"string"}var d="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally",a="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",h="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage memory_get_peak_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";i.registerHelper("hintWords","php",[d,a,h].join(" ").split(" ")),i.registerHelper("wordChars","php",/[\w$]/);var f={name:"clike",helperType:"php",keywords:t(d),blockKeywords:t("catch do else elseif for foreach if switch try while finally"),defKeywords:t("class function interface namespace trait"),atoms:t(a),builtin:t(h),multiLineStrings:!0,hooks:{$:function(p){return p.eatWhile(/[\w\$_]/),"variable-2"},"<":function(p,y){var g;if(g=p.match(/^<<\s*/)){var v=p.eat(/['"]/);p.eatWhile(/[\w\.]/);var b=p.current().slice(g[0].length+(v?2:1));if(v&&p.eat(v),b)return(y.tokStack||(y.tokStack=[])).push(b,0),y.tokenize=l(b,v!="'"),"string"}return!1},"#":function(p){for(;!p.eol()&&!p.match("?>",!1);)p.next();return"comment"},"/":function(p){if(p.eat("/")){for(;!p.eol()&&!p.match("?>",!1);)p.next();return"comment"}return!1},'"':function(p,y){return(y.tokStack||(y.tokStack=[])).push('"',0),y.tokenize=l('"'),"string"},"{":function(p,y){return y.tokStack&&y.tokStack.length&&y.tokStack[y.tokStack.length-1]++,!1},"}":function(p,y){return y.tokStack&&y.tokStack.length>0&&!--y.tokStack[y.tokStack.length-1]&&(y.tokenize=l(y.tokStack[y.tokStack.length-2])),!1}}};i.defineMode("php",function(p,y){var g=i.getMode(p,y&&y.htmlMode||"text/html"),v=i.getMode(p,f);function b(k,E){var w=E.curMode==v;if(k.sol()&&E.pending&&E.pending!='"'&&E.pending!="'"&&(E.pending=null),w)return w&&E.php.tokenize==null&&k.match("?>")?(E.curMode=g,E.curState=E.html,E.php.context.prev||(E.php=null),"meta"):v.token(k,E.curState);if(k.match(/^<\?\w*/))return E.curMode=v,E.php||(E.php=i.startState(v,g.indent(E.html,"",""))),E.curState=E.php,"meta";if(E.pending=='"'||E.pending=="'"){for(;!k.eol()&&k.next()!=E.pending;);var I="string"}else if(E.pending&&k.pos/.test(S)?E.pending=F[0]:E.pending={end:k.pos,style:I},k.backUp(S.length-P)),I}return{startState:function(){var k=i.startState(g),E=y.startOpen?i.startState(v):null;return{html:k,php:E,curMode:y.startOpen?v:g,curState:y.startOpen?E:k,pending:null}},copyState:function(k){var E=k.html,w=i.copyState(g,E),I=k.php,S=I&&i.copyState(v,I),P;return k.curMode==g?P=w:P=S,{html:w,php:S,curMode:k.curMode,curState:P,pending:k.pending}},token:b,indent:function(k,E,w){return k.curMode!=v&&/^\s*<\//.test(E)||k.curMode==v&&/^\?>/.test(E)?g.indent(k.html,E,w):k.curMode.indent(k.curState,E,w)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(k){return{state:k.curState,mode:k.curMode}}}},"htmlmixed","clike"),i.defineMIME("application/x-httpd-php","php"),i.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),i.defineMIME("text/x-php",f)})});var Fd=Me((Dd,Id)=>{(function(i){"use strict";typeof Dd=="object"&&typeof Id=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(window.CodeMirror)})(function(i){"use strict";i.defineMode("powershell",function(){function t(z,C){C=C||{};for(var U=C.prefix!==void 0?C.prefix:"^",Z=C.suffix!==void 0?C.suffix:"\\b",R=0;R/,f=t([a,h],{suffix:""}),p=/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,y=/^[A-Za-z\_][A-Za-z\-\_\d]*\b/,g=/[A-Z]:|%|\?/i,v=t([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""}),b=t([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""}),k=t([g,v,b],{suffix:n}),E={keyword:c,number:p,operator:f,builtin:k,punctuation:d,identifier:y};function w(z,C){var U=C.returnStack[C.returnStack.length-1];if(U&&U.shouldReturnFrom(C))return C.tokenize=U.tokenize,C.returnStack.pop(),C.tokenize(z,C);if(z.eatSpace())return null;if(z.eat("("))return C.bracketNesting+=1,"punctuation";if(z.eat(")"))return C.bracketNesting-=1,"punctuation";for(var Z in E)if(z.match(E[Z]))return Z;var R=z.next();if(R==="'")return I(z,C);if(R==="$")return K(z,C);if(R==='"')return S(z,C);if(R==="<"&&z.eat("#"))return C.tokenize=J,J(z,C);if(R==="#")return z.skipToEnd(),"comment";if(R==="@"){var N=z.eat(/["']/);if(N&&z.eol())return C.tokenize=G,C.startQuote=N[0],G(z,C);if(z.eol())return"error";if(z.peek().match(/[({]/))return"punctuation";if(z.peek().match(l))return K(z,C)}return"error"}function I(z,C){for(var U;(U=z.peek())!=null;)if(z.next(),U==="'"&&!z.eat("'"))return C.tokenize=w,"string";return"error"}function S(z,C){for(var U;(U=z.peek())!=null;){if(U==="$")return C.tokenize=P,"string";if(z.next(),U==="`"){z.next();continue}if(U==='"'&&!z.eat('"'))return C.tokenize=w,"string"}return"error"}function P(z,C){return $(z,C,S)}function F(z,C){return C.tokenize=G,C.startQuote='"',G(z,C)}function H(z,C){return $(z,C,F)}function $(z,C,U){if(z.match("$(")){var Z=C.bracketNesting;return C.returnStack.push({shouldReturnFrom:function(R){return R.bracketNesting===Z},tokenize:U}),C.tokenize=w,C.bracketNesting+=1,"punctuation"}else return z.next(),C.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:U}),C.tokenize=K,C.tokenize(z,C)}function J(z,C){for(var U=!1,Z;(Z=z.next())!=null;){if(U&&Z==">"){C.tokenize=w;break}U=Z==="#"}return"comment"}function K(z,C){var U=z.peek();return z.eat("{")?(C.tokenize=Y,Y(z,C)):U!=null&&U.match(l)?(z.eatWhile(l),C.tokenize=w,"variable-2"):(C.tokenize=w,"error")}function Y(z,C){for(var U;(U=z.next())!=null;)if(U==="}"){C.tokenize=w;break}return"variable-2"}function G(z,C){var U=C.startQuote;if(z.sol()&&z.match(new RegExp(U+"@")))C.tokenize=w;else if(U==='"')for(;!z.eol();){var Z=z.peek();if(Z==="$")return C.tokenize=H,"string";z.next(),Z==="`"&&z.next()}else z.skipToEnd();return"string"}var j={startState:function(){return{returnStack:[],bracketNesting:0,tokenize:w}},token:function(z,C){return C.tokenize(z,C)},blockCommentStart:"<#",blockCommentEnd:"#>",lineComment:"#",fold:"brace"};return j}),i.defineMIME("application/x-powershell","powershell")})});var Pd=Me((Md,Od)=>{(function(i){typeof Md=="object"&&typeof Od=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("properties",function(){return{token:function(t,n){var l=t.sol()||n.afterSection,c=t.eol();if(n.afterSection=!1,l&&(n.nextMultiline?(n.inMultiline=!0,n.nextMultiline=!1):n.position="def"),c&&!n.nextMultiline&&(n.inMultiline=!1,n.position="def"),l)for(;t.eatSpace(););var d=t.next();return l&&(d==="#"||d==="!"||d===";")?(n.position="comment",t.skipToEnd(),"comment"):l&&d==="["?(n.afterSection=!0,t.skipTo("]"),t.eat("]"),"header"):d==="="||d===":"?(n.position="quote",null):(d==="\\"&&n.position==="quote"&&t.eol()&&(n.nextMultiline=!0),n.position)},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}}),i.defineMIME("text/x-properties","properties"),i.defineMIME("text/x-ini","properties")})});var Nd=Me((Rd,zd)=>{(function(i){typeof Rd=="object"&&typeof zd=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function t(h){return new RegExp("^(("+h.join(")|(")+"))\\b")}var n=t(["and","or","not","is"]),l=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],c=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];i.registerHelper("hintWords","python",l.concat(c));function d(h){return h.scopes[h.scopes.length-1]}i.defineMode("python",function(h,f){for(var p="error",y=f.delimiters||f.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,g=[f.singleOperators,f.doubleOperators,f.doubleDelimiters,f.tripleDelimiters,f.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],v=0;vN?Y(Z):ne0&&j(U,Z)&&(ae+=" "+p),ae}}return $(U,Z)}function $(U,Z,R){if(U.eatSpace())return null;if(!R&&U.match(/^#.*/))return"comment";if(U.match(/^[0-9\.]/,!1)){var N=!1;if(U.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(N=!0),U.match(/^[\d_]+\.\d*/)&&(N=!0),U.match(/^\.\d+/)&&(N=!0),N)return U.eat(/J/i),"number";var ne=!1;if(U.match(/^0x[0-9a-f_]+/i)&&(ne=!0),U.match(/^0b[01_]+/i)&&(ne=!0),U.match(/^0o[0-7_]+/i)&&(ne=!0),U.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(U.eat(/J/i),ne=!0),U.match(/^0(?![\dx])/i)&&(ne=!0),ne)return U.eat(/L/i),"number"}if(U.match(S)){var ae=U.current().toLowerCase().indexOf("f")!==-1;return ae?(Z.tokenize=J(U.current(),Z.tokenize),Z.tokenize(U,Z)):(Z.tokenize=K(U.current(),Z.tokenize),Z.tokenize(U,Z))}for(var M=0;M=0;)U=U.substr(1);var R=U.length==1,N="string";function ne(M){return function(A,be){var Fe=$(A,be,!0);return Fe=="punctuation"&&(A.current()=="{"?be.tokenize=ne(M+1):A.current()=="}"&&(M>1?be.tokenize=ne(M-1):be.tokenize=ae)),Fe}}function ae(M,A){for(;!M.eol();)if(M.eatWhile(/[^'"\{\}\\]/),M.eat("\\")){if(M.next(),R&&M.eol())return N}else{if(M.match(U))return A.tokenize=Z,N;if(M.match("{{"))return N;if(M.match("{",!1))return A.tokenize=ne(0),M.current()?N:A.tokenize(M,A);if(M.match("}}"))return N;if(M.match("}"))return p;M.eat(/['"]/)}if(R){if(f.singleLineStringErrors)return p;A.tokenize=Z}return N}return ae.isString=!0,ae}function K(U,Z){for(;"rubf".indexOf(U.charAt(0).toLowerCase())>=0;)U=U.substr(1);var R=U.length==1,N="string";function ne(ae,M){for(;!ae.eol();)if(ae.eatWhile(/[^'"\\]/),ae.eat("\\")){if(ae.next(),R&&ae.eol())return N}else{if(ae.match(U))return M.tokenize=Z,N;ae.eat(/['"]/)}if(R){if(f.singleLineStringErrors)return p;M.tokenize=Z}return N}return ne.isString=!0,ne}function Y(U){for(;d(U).type!="py";)U.scopes.pop();U.scopes.push({offset:d(U).offset+h.indentUnit,type:"py",align:null})}function G(U,Z,R){var N=U.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:U.column()+1;Z.scopes.push({offset:Z.indent+b,type:R,align:N})}function j(U,Z){for(var R=U.indentation();Z.scopes.length>1&&d(Z).offset>R;){if(d(Z).type!="py")return!0;Z.scopes.pop()}return d(Z).offset!=R}function z(U,Z){U.sol()&&(Z.beginningOfLine=!0,Z.dedent=!1);var R=Z.tokenize(U,Z),N=U.current();if(Z.beginningOfLine&&N=="@")return U.match(I,!1)?"meta":w?"operator":p;if(/\S/.test(N)&&(Z.beginningOfLine=!1),(R=="variable"||R=="builtin")&&Z.lastToken=="meta"&&(R="meta"),(N=="pass"||N=="return")&&(Z.dedent=!0),N=="lambda"&&(Z.lambda=!0),N==":"&&!Z.lambda&&d(Z).type=="py"&&U.match(/^\s*(?:#|$)/,!1)&&Y(Z),N.length==1&&!/string|comment/.test(R)){var ne="[({".indexOf(N);if(ne!=-1&&G(U,Z,"])}".slice(ne,ne+1)),ne="])}".indexOf(N),ne!=-1)if(d(Z).type==N)Z.indent=Z.scopes.pop().offset-b;else return p}return Z.dedent&&U.eol()&&d(Z).type=="py"&&Z.scopes.length>1&&Z.scopes.pop(),R}var C={startState:function(U){return{tokenize:H,scopes:[{offset:U||0,type:"py",align:null}],indent:U||0,lastToken:null,lambda:!1,dedent:0}},token:function(U,Z){var R=Z.errorToken;R&&(Z.errorToken=!1);var N=z(U,Z);return N&&N!="comment"&&(Z.lastToken=N=="keyword"||N=="punctuation"?U.current():N),N=="punctuation"&&(N=null),U.eol()&&Z.lambda&&(Z.lambda=!1),R?N+" "+p:N},indent:function(U,Z){if(U.tokenize!=H)return U.tokenize.isString?i.Pass:0;var R=d(U),N=R.type==Z.charAt(0)||R.type=="py"&&!U.dedent&&/^(else:|elif |except |finally:)/.test(Z);return R.align!=null?R.align-(N?1:0):R.offset-(N?b:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:`'"`},lineComment:"#",fold:"indent"};return C}),i.defineMIME("text/x-python","python");var a=function(h){return h.split(" ")};i.defineMIME("text/x-cython",{name:"python",extra_keywords:a("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})});var jd=Me((Bd,qd)=>{(function(i){typeof Bd=="object"&&typeof qd=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function t(f){for(var p={},y=0,g=f.length;y]/)?(S.eat(/[\<\>]/),"atom"):S.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":S.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(S.eatWhile(/[\w$\xa1-\uffff]/),S.eat(/[\?\!\=]/),"atom"):"operator";if(F=="@"&&S.match(/^@?[a-zA-Z_\xa1-\uffff]/))return S.eat("@"),S.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if(F=="$")return S.eat(/[a-zA-Z_]/)?S.eatWhile(/[\w]/):S.eat(/\d/)?S.eat(/\d/):S.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(F))return S.eatWhile(/[\w\xa1-\uffff]/),S.eat(/[\?\!]/),S.eat(":")?"atom":"ident";if(F=="|"&&(P.varList||P.lastTok=="{"||P.lastTok=="do"))return p="|",null;if(/[\(\)\[\]{}\\;]/.test(F))return p=F,null;if(F=="-"&&S.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(F)){var Y=S.eatWhile(/[=+\-\/*:\.^%<>~|]/);return F=="."&&!Y&&(p="."),"operator"}else return null}}}function v(S){for(var P=S.pos,F=0,H,$=!1,J=!1;(H=S.next())!=null;)if(J)J=!1;else{if("[{(".indexOf(H)>-1)F++;else if("]})".indexOf(H)>-1){if(F--,F<0)break}else if(H=="/"&&F==0){$=!0;break}J=H=="\\"}return S.backUp(S.pos-P),$}function b(S){return S||(S=1),function(P,F){if(P.peek()=="}"){if(S==1)return F.tokenize.pop(),F.tokenize[F.tokenize.length-1](P,F);F.tokenize[F.tokenize.length-1]=b(S-1)}else P.peek()=="{"&&(F.tokenize[F.tokenize.length-1]=b(S+1));return g(P,F)}}function k(){var S=!1;return function(P,F){return S?(F.tokenize.pop(),F.tokenize[F.tokenize.length-1](P,F)):(S=!0,g(P,F))}}function E(S,P,F,H){return function($,J){var K=!1,Y;for(J.context.type==="read-quoted-paused"&&(J.context=J.context.prev,$.eat("}"));(Y=$.next())!=null;){if(Y==S&&(H||!K)){J.tokenize.pop();break}if(F&&Y=="#"&&!K){if($.eat("{")){S=="}"&&(J.context={prev:J.context,type:"read-quoted-paused"}),J.tokenize.push(b());break}else if(/[@\$]/.test($.peek())){J.tokenize.push(k());break}}K=!K&&Y=="\\"}return P}}function w(S,P){return function(F,H){return P&&F.eatSpace(),F.match(S)?H.tokenize.pop():F.skipToEnd(),"string"}}function I(S,P){return S.sol()&&S.match("=end")&&S.eol()&&P.tokenize.pop(),S.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[g],indented:0,context:{type:"top",indented:-f.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(S,P){p=null,S.sol()&&(P.indented=S.indentation());var F=P.tokenize[P.tokenize.length-1](S,P),H,$=p;if(F=="ident"){var J=S.current();F=P.lastTok=="."?"property":l.propertyIsEnumerable(S.current())?"keyword":/^[A-Z]/.test(J)?"tag":P.lastTok=="def"||P.lastTok=="class"||P.varList?"def":"variable",F=="keyword"&&($=J,c.propertyIsEnumerable(J)?H="indent":d.propertyIsEnumerable(J)?H="dedent":((J=="if"||J=="unless")&&S.column()==S.indentation()||J=="do"&&P.context.indented{(function(i){typeof $d=="object"&&typeof Ud=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineSimpleMode=function(y,g){i.defineMode(y,function(v){return i.simpleMode(v,g)})},i.simpleMode=function(y,g){t(g,"start");var v={},b=g.meta||{},k=!1;for(var E in g)if(E!=b&&g.hasOwnProperty(E))for(var w=v[E]=[],I=g[E],S=0;S2&&P.token&&typeof P.token!="string"){for(var $=2;$-1)return i.Pass;var E=v.indent.length-1,w=y[v.state];e:for(;;){for(var I=0;I{(function(i){typeof Wd=="object"&&typeof Gd=="object"?i(Tt(),Hd()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../../addon/mode/simple"],i):i(CodeMirror)})(function(i){"use strict";i.defineSimpleMode("rust",{start:[{regex:/b?"/,token:"string",next:"string"},{regex:/b?r"/,token:"string",next:"string_raw"},{regex:/b?r#+"/,token:"string",next:"string_raw_hash"},{regex:/'(?:[^'\\]|\\(?:[nrt0'"]|x[\da-fA-F]{2}|u\{[\da-fA-F]{6}\}))'/,token:"string-2"},{regex:/b'(?:[^']|\\(?:['\\nrt0]|x[\da-fA-F]{2}))'/,token:"string-2"},{regex:/(?:(?:[0-9][0-9_]*)(?:(?:[Ee][+-]?[0-9_]+)|\.[0-9_]+(?:[Ee][+-]?[0-9_]+)?)(?:f32|f64)?)|(?:0(?:b[01_]+|(?:o[0-7_]+)|(?:x[0-9a-fA-F_]+))|(?:[0-9][0-9_]*))(?:u8|u16|u32|u64|i8|i16|i32|i64|isize|usize)?/,token:"number"},{regex:/(let(?:\s+mut)?|fn|enum|mod|struct|type|union)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/(?:abstract|alignof|as|async|await|box|break|continue|const|crate|do|dyn|else|enum|extern|fn|for|final|if|impl|in|loop|macro|match|mod|move|offsetof|override|priv|proc|pub|pure|ref|return|self|sizeof|static|struct|super|trait|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,token:"keyword"},{regex:/\b(?:Self|isize|usize|char|bool|u8|u16|u32|u64|f16|f32|f64|i8|i16|i32|i64|str|Option)\b/,token:"atom"},{regex:/\b(?:true|false|Some|None|Ok|Err)\b/,token:"builtin"},{regex:/\b(fn)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/#!?\[.*\]/,token:"meta"},{regex:/\/\/.*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/[a-zA-Z_]\w*!/,token:"variable-3"},{regex:/[a-zA-Z_]\w*/,token:"variable"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0}],string:[{regex:/"/,token:"string",next:"start"},{regex:/(?:[^\\"]|\\(?:.|$))*/,token:"string"}],string_raw:[{regex:/"/,token:"string",next:"start"},{regex:/[^"]*/,token:"string"}],string_raw_hash:[{regex:/"#+/,token:"string",next:"start"},{regex:/(?:[^"]|"(?!#))*/,token:"string"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"],electricInput:/^\s*\}$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}}),i.defineMIME("text/x-rustsrc","rust"),i.defineMIME("text/rust","rust")})});var Xd=Me((Vd,Yd)=>{(function(i){typeof Vd=="object"&&typeof Yd=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("shell",function(){var t={};function n(v,b){for(var k=0;k1&&v.eat("$");var k=v.next();return/['"({]/.test(k)?(b.tokens[0]=h(k,k=="("?"quote":k=="{"?"def":"string"),g(v,b)):(/\d/.test(k)||v.eatWhile(/\w/),b.tokens.shift(),"def")};function y(v){return function(b,k){return b.sol()&&b.string==v&&k.tokens.shift(),b.skipToEnd(),"string-2"}}function g(v,b){return(b.tokens[0]||a)(v,b)}return{startState:function(){return{tokens:[]}},token:function(v,b){return g(v,b)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}}),i.defineMIME("text/x-sh","shell"),i.defineMIME("application/x-sh","shell")})});var Jd=Me((Zd,Qd)=>{(function(i){typeof Zd=="object"&&typeof Qd=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("sql",function(f,p){var y=p.client||{},g=p.atoms||{false:!0,true:!0,null:!0},v=p.builtin||a(h),b=p.keywords||a(d),k=p.operatorChars||/^[*+\-%<>!=&|~^\/]/,E=p.support||{},w=p.hooks||{},I=p.dateSQL||{date:!0,time:!0,timestamp:!0},S=p.backslashStringEscapes!==!1,P=p.brackets||/^[\{}\(\)\[\]]/,F=p.punctuation||/^[;.,:]/;function H(G,j){var z=G.next();if(w[z]){var C=w[z](G,j);if(C!==!1)return C}if(E.hexNumber&&(z=="0"&&G.match(/^[xX][0-9a-fA-F]+/)||(z=="x"||z=="X")&&G.match(/^'[0-9a-fA-F]+'/)))return"number";if(E.binaryNumber&&((z=="b"||z=="B")&&G.match(/^'[01]+'/)||z=="0"&&G.match(/^b[01]+/)))return"number";if(z.charCodeAt(0)>47&&z.charCodeAt(0)<58)return G.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),E.decimallessFloat&&G.match(/^\.(?!\.)/),"number";if(z=="?"&&(G.eatSpace()||G.eol()||G.eat(";")))return"variable-3";if(z=="'"||z=='"'&&E.doubleQuote)return j.tokenize=$(z),j.tokenize(G,j);if((E.nCharCast&&(z=="n"||z=="N")||E.charsetCast&&z=="_"&&G.match(/[a-z][a-z0-9]*/i))&&(G.peek()=="'"||G.peek()=='"'))return"keyword";if(E.escapeConstant&&(z=="e"||z=="E")&&(G.peek()=="'"||G.peek()=='"'&&E.doubleQuote))return j.tokenize=function(Z,R){return(R.tokenize=$(Z.next(),!0))(Z,R)},"keyword";if(E.commentSlashSlash&&z=="/"&&G.eat("/"))return G.skipToEnd(),"comment";if(E.commentHash&&z=="#"||z=="-"&&G.eat("-")&&(!E.commentSpaceRequired||G.eat(" ")))return G.skipToEnd(),"comment";if(z=="/"&&G.eat("*"))return j.tokenize=J(1),j.tokenize(G,j);if(z=="."){if(E.zerolessFloat&&G.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return"number";if(G.match(/^\.+/))return null;if(E.ODBCdotTable&&G.match(/^[\w\d_$#]+/))return"variable-2"}else{if(k.test(z))return G.eatWhile(k),"operator";if(P.test(z))return"bracket";if(F.test(z))return G.eatWhile(F),"punctuation";if(z=="{"&&(G.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||G.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";G.eatWhile(/^[_\w\d]/);var U=G.current().toLowerCase();return I.hasOwnProperty(U)&&(G.match(/^( )+'[^']*'/)||G.match(/^( )+"[^"]*"/))?"number":g.hasOwnProperty(U)?"atom":v.hasOwnProperty(U)?"builtin":b.hasOwnProperty(U)?"keyword":y.hasOwnProperty(U)?"string-2":null}}function $(G,j){return function(z,C){for(var U=!1,Z;(Z=z.next())!=null;){if(Z==G&&!U){C.tokenize=H;break}U=(S||j)&&!U&&Z=="\\"}return"string"}}function J(G){return function(j,z){var C=j.match(/^.*?(\/\*|\*\/)/);return C?C[1]=="/*"?z.tokenize=J(G+1):G>1?z.tokenize=J(G-1):z.tokenize=H:j.skipToEnd(),"comment"}}function K(G,j,z){j.context={prev:j.context,indent:G.indentation(),col:G.column(),type:z}}function Y(G){G.indent=G.context.indent,G.context=G.context.prev}return{startState:function(){return{tokenize:H,context:null}},token:function(G,j){if(G.sol()&&j.context&&j.context.align==null&&(j.context.align=!1),j.tokenize==H&&G.eatSpace())return null;var z=j.tokenize(G,j);if(z=="comment")return z;j.context&&j.context.align==null&&(j.context.align=!0);var C=G.current();return C=="("?K(G,j,")"):C=="["?K(G,j,"]"):j.context&&j.context.type==C&&Y(j),z},indent:function(G,j){var z=G.context;if(!z)return i.Pass;var C=j.charAt(0)==z.type;return z.align?z.col+(C?0:1):z.indent+(C?0:f.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:E.commentSlashSlash?"//":E.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``"}});function t(f){for(var p;(p=f.next())!=null;)if(p=="`"&&!f.eat("`"))return"variable-2";return f.backUp(f.current().length-1),f.eatWhile(/\w/)?"variable-2":null}function n(f){for(var p;(p=f.next())!=null;)if(p=='"'&&!f.eat('"'))return"variable-2";return f.backUp(f.current().length-1),f.eatWhile(/\w/)?"variable-2":null}function l(f){return f.eat("@")&&(f.match("session."),f.match("local."),f.match("global.")),f.eat("'")?(f.match(/^.*'/),"variable-2"):f.eat('"')?(f.match(/^.*"/),"variable-2"):f.eat("`")?(f.match(/^.*`/),"variable-2"):f.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function c(f){return f.eat("N")?"atom":f.match(/^[a-zA-Z.#!?]/)?"variable-2":null}var d="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function a(f){for(var p={},y=f.split(" "),g=0;g!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:a("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":l}}),i.defineMIME("text/x-mysql",{name:"sql",client:a("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:a(d+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:a("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":l,"`":t,"\\":c}}),i.defineMIME("text/x-mariadb",{name:"sql",client:a("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:a(d+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group groupby_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:a("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":l,"`":t,"\\":c}}),i.defineMIME("text/x-sqlite",{name:"sql",client:a("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:a(d+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:a("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:a("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:a("date time timestamp datetime"),support:a("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":l,":":l,"?":l,$:l,'"':n,"`":t}}),i.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:a("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:a("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:a("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:a("commentSlashSlash decimallessFloat"),hooks:{}}),i.defineMIME("text/x-plsql",{name:"sql",client:a("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:a("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:a("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:a("date time timestamp"),support:a("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),i.defineMIME("text/x-hive",{name:"sql",keywords:a("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:a("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:a("date timestamp"),support:a("ODBCdotTable doubleQuote binaryNumber hexNumber")}),i.defineMIME("text/x-pgsql",{name:"sql",client:a("source"),keywords:a(d+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:a("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:a("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),i.defineMIME("text/x-gql",{name:"sql",keywords:a("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:a("false true"),builtin:a("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),i.defineMIME("text/x-gpsql",{name:"sql",client:a("source"),keywords:a("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:a("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),i.defineMIME("text/x-sparksql",{name:"sql",keywords:a("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:a("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:a("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable doubleQuote zerolessFloat")}),i.defineMIME("text/x-esper",{name:"sql",client:a("source"),keywords:a("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:a("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:a("time"),support:a("decimallessFloat zerolessFloat binaryNumber hexNumber")})})});var rh=Me((eh,th)=>{(function(i){typeof eh=="object"&&typeof th=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("toml",function(){return{startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(t,n){if(!n.inString&&(t.peek()=='"'||t.peek()=="'")&&(n.stringType=t.peek(),t.next(),n.inString=!0),t.sol()&&n.inArray===0&&(n.lhs=!0),n.inString){for(;n.inString&&!t.eol();)t.peek()===n.stringType?(t.next(),n.inString=!1):t.peek()==="\\"?(t.next(),t.next()):t.match(/^.[^\\\"\']*/);return n.lhs?"property string":"string"}else{if(n.inArray&&t.peek()==="]")return t.next(),n.inArray--,"bracket";if(n.lhs&&t.peek()==="["&&t.skipTo("]"))return t.next(),t.peek()==="]"&&t.next(),"atom";if(t.peek()==="#")return t.skipToEnd(),"comment";if(t.eatSpace())return null;if(n.lhs&&t.eatWhile(function(l){return l!="="&&l!=" "}))return"property";if(n.lhs&&t.peek()==="=")return t.next(),n.lhs=!1,null;if(!n.lhs&&t.match(/^\d\d\d\d[\d\-\:\.T]*Z/))return"atom";if(!n.lhs&&(t.match("true")||t.match("false")))return"atom";if(!n.lhs&&t.peek()==="[")return n.inArray++,t.next(),"bracket";if(!n.lhs&&t.match(/^\-?\d+(?:\.\d+)?/))return"number";t.eatSpace()||t.next()}return null}}}),i.defineMIME("text/x-toml","toml")})});var oh=Me((nh,ih)=>{(function(i){typeof nh=="object"&&typeof ih=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("vb",function(t,n){var l="error";function c(N){return new RegExp("^(("+N.join(")|(")+"))\\b","i")}var d=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),a=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),h=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),f=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),p=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),y=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),g=["class","module","sub","enum","select","while","if","function","get","set","property","try","structure","synclock","using","with"],v=["else","elseif","case","catch","finally"],b=["next","loop"],k=["and","andalso","or","orelse","xor","in","not","is","isnot","like"],E=c(k),w=["#const","#else","#elseif","#end","#if","#region","addhandler","addressof","alias","as","byref","byval","cbool","cbyte","cchar","cdate","cdbl","cdec","cint","clng","cobj","compare","const","continue","csbyte","cshort","csng","cstr","cuint","culng","cushort","declare","default","delegate","dim","directcast","each","erase","error","event","exit","explicit","false","for","friend","gettype","goto","handles","implements","imports","infer","inherits","interface","isfalse","istrue","lib","me","mod","mustinherit","mustoverride","my","mybase","myclass","namespace","narrowing","new","nothing","notinheritable","notoverridable","of","off","on","operator","option","optional","out","overloads","overridable","overrides","paramarray","partial","private","protected","public","raiseevent","readonly","redim","removehandler","resume","return","shadows","shared","static","step","stop","strict","then","throw","to","true","trycast","typeof","until","until","when","widening","withevents","writeonly"],I=["object","boolean","char","string","byte","sbyte","short","ushort","int16","uint16","integer","uinteger","int32","uint32","long","ulong","int64","uint64","decimal","single","double","float","date","datetime","intptr","uintptr"],S=c(w),P=c(I),F='"',H=c(g),$=c(v),J=c(b),K=c(["end"]),Y=c(["do"]),G=null;i.registerHelper("hintWords","vb",g.concat(v).concat(b).concat(k).concat(w).concat(I));function j(N,ne){ne.currentIndent++}function z(N,ne){ne.currentIndent--}function C(N,ne){if(N.eatSpace())return null;var ae=N.peek();if(ae==="'")return N.skipToEnd(),"comment";if(N.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var M=!1;if((N.match(/^\d*\.\d+F?/i)||N.match(/^\d+\.\d*F?/)||N.match(/^\.\d+F?/))&&(M=!0),M)return N.eat(/J/i),"number";var A=!1;if(N.match(/^&H[0-9a-f]+/i)||N.match(/^&O[0-7]+/i)?A=!0:N.match(/^[1-9]\d*F?/)?(N.eat(/J/i),A=!0):N.match(/^0(?![\dx])/i)&&(A=!0),A)return N.eat(/L/i),"number"}return N.match(F)?(ne.tokenize=U(N.current()),ne.tokenize(N,ne)):N.match(p)||N.match(f)?null:N.match(h)||N.match(d)||N.match(E)?"operator":N.match(a)?null:N.match(Y)?(j(N,ne),ne.doInCurrentLine=!0,"keyword"):N.match(H)?(ne.doInCurrentLine?ne.doInCurrentLine=!1:j(N,ne),"keyword"):N.match($)?"keyword":N.match(K)?(z(N,ne),z(N,ne),"keyword"):N.match(J)?(z(N,ne),"keyword"):N.match(P)||N.match(S)?"keyword":N.match(y)?"variable":(N.next(),l)}function U(N){var ne=N.length==1,ae="string";return function(M,A){for(;!M.eol();){if(M.eatWhile(/[^'"]/),M.match(N))return A.tokenize=C,ae;M.eat(/['"]/)}if(ne){if(n.singleLineStringErrors)return l;A.tokenize=C}return ae}}function Z(N,ne){var ae=ne.tokenize(N,ne),M=N.current();if(M===".")return ae=ne.tokenize(N,ne),ae==="variable"?"variable":l;var A="[({".indexOf(M);return A!==-1&&j(N,ne),G==="dedent"&&z(N,ne)||(A="])}".indexOf(M),A!==-1&&z(N,ne))?l:ae}var R={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:C,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(N,ne){N.sol()&&(ne.currentIndent+=ne.nextLineIndent,ne.nextLineIndent=0,ne.doInCurrentLine=0);var ae=Z(N,ne);return ne.lastToken={style:ae,content:N.current()},ae},indent:function(N,ne){var ae=ne.replace(/^\s+|\s+$/g,"");return ae.match(J)||ae.match(K)||ae.match($)?t.indentUnit*(N.currentIndent-1):N.currentIndent<0?0:N.currentIndent*t.indentUnit},lineComment:"'"};return R}),i.defineMIME("text/x-vb","vb")})});var lh=Me((ah,sh)=>{(function(i){typeof ah=="object"&&typeof sh=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("vbscript",function(t,n){var l="error";function c(ge){return new RegExp("^(("+ge.join(")|(")+"))\\b","i")}var d=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),a=new RegExp("^((<>)|(<=)|(>=))"),h=new RegExp("^[\\.,]"),f=new RegExp("^[\\(\\)]"),p=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),y=["class","sub","select","while","if","function","property","with","for"],g=["else","elseif","case"],v=["next","loop","wend"],b=c(["and","or","not","xor","is","mod","eqv","imp"]),k=["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"],E=["true","false","nothing","empty","null"],w=["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"],I=["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"],S=["WScript","err","debug","RegExp"],P=["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"],F=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"],H=["server","response","request","session","application"],$=["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"],J=["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],K=F.concat(P);S=S.concat(I),t.isASP&&(S=S.concat(H),K=K.concat(J,$));var Y=c(k),G=c(E),j=c(w),z=c(S),C=c(K),U='"',Z=c(y),R=c(g),N=c(v),ne=c(["end"]),ae=c(["do"]),M=c(["on error resume next","exit"]),A=c(["rem"]);function be(ge,ke){ke.currentIndent++}function Fe(ge,ke){ke.currentIndent--}function xe(ge,ke){if(ge.eatSpace())return"space";var Ue=ge.peek();if(Ue==="'"||ge.match(A))return ge.skipToEnd(),"comment";if(ge.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!ge.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var at=!1;if((ge.match(/^\d*\.\d+/i)||ge.match(/^\d+\.\d*/)||ge.match(/^\.\d+/))&&(at=!0),at)return ge.eat(/J/i),"number";var gt=!1;if(ge.match(/^&H[0-9a-f]+/i)||ge.match(/^&O[0-7]+/i)?gt=!0:ge.match(/^[1-9]\d*F?/)?(ge.eat(/J/i),gt=!0):ge.match(/^0(?![\dx])/i)&&(gt=!0),gt)return ge.eat(/L/i),"number"}return ge.match(U)?(ke.tokenize=_e(ge.current()),ke.tokenize(ge,ke)):ge.match(a)||ge.match(d)||ge.match(b)?"operator":ge.match(h)?null:ge.match(f)?"bracket":ge.match(M)?(ke.doInCurrentLine=!0,"keyword"):ge.match(ae)?(be(ge,ke),ke.doInCurrentLine=!0,"keyword"):ge.match(Z)?(ke.doInCurrentLine?ke.doInCurrentLine=!1:be(ge,ke),"keyword"):ge.match(R)?"keyword":ge.match(ne)?(Fe(ge,ke),Fe(ge,ke),"keyword"):ge.match(N)?(ke.doInCurrentLine?ke.doInCurrentLine=!1:Fe(ge,ke),"keyword"):ge.match(Y)?"keyword":ge.match(G)?"atom":ge.match(C)?"variable-2":ge.match(j)?"builtin":ge.match(z)?"variable-2":ge.match(p)?"variable":(ge.next(),l)}function _e(ge){var ke=ge.length==1,Ue="string";return function(at,gt){for(;!at.eol();){if(at.eatWhile(/[^'"]/),at.match(ge))return gt.tokenize=xe,Ue;at.eat(/['"]/)}if(ke){if(n.singleLineStringErrors)return l;gt.tokenize=xe}return Ue}}function ze(ge,ke){var Ue=ke.tokenize(ge,ke),at=ge.current();return at==="."?(Ue=ke.tokenize(ge,ke),at=ge.current(),Ue&&(Ue.substr(0,8)==="variable"||Ue==="builtin"||Ue==="keyword")?((Ue==="builtin"||Ue==="keyword")&&(Ue="variable"),K.indexOf(at.substr(1))>-1&&(Ue="variable-2"),Ue):l):Ue}var qe={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:xe,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(ge,ke){ge.sol()&&(ke.currentIndent+=ke.nextLineIndent,ke.nextLineIndent=0,ke.doInCurrentLine=0);var Ue=ze(ge,ke);return ke.lastToken={style:Ue,content:ge.current()},Ue==="space"&&(Ue=null),Ue},indent:function(ge,ke){var Ue=ke.replace(/^\s+|\s+$/g,"");return Ue.match(N)||Ue.match(ne)||Ue.match(R)?t.indentUnit*(ge.currentIndent-1):ge.currentIndent<0?0:ge.currentIndent*t.indentUnit}};return qe}),i.defineMIME("text/vbscript","vbscript")})});var fh=Me((uh,ch)=>{(function(i){typeof uh=="object"&&typeof ch=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("yaml",function(){var t=["true","false","on","off","yes","no"],n=new RegExp("\\b(("+t.join(")|(")+"))$","i");return{token:function(l,c){var d=l.peek(),a=c.escaped;if(c.escaped=!1,d=="#"&&(l.pos==0||/\s/.test(l.string.charAt(l.pos-1))))return l.skipToEnd(),"comment";if(l.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(c.literal&&l.indentation()>c.keyCol)return l.skipToEnd(),"string";if(c.literal&&(c.literal=!1),l.sol()){if(c.keyCol=0,c.pair=!1,c.pairStart=!1,l.match("---")||l.match("..."))return"def";if(l.match(/\s*-\s+/))return"meta"}if(l.match(/^(\{|\}|\[|\])/))return d=="{"?c.inlinePairs++:d=="}"?c.inlinePairs--:d=="["?c.inlineList++:c.inlineList--,"meta";if(c.inlineList>0&&!a&&d==",")return l.next(),"meta";if(c.inlinePairs>0&&!a&&d==",")return c.keyCol=0,c.pair=!1,c.pairStart=!1,l.next(),"meta";if(c.pairStart){if(l.match(/^\s*(\||\>)\s*/))return c.literal=!0,"meta";if(l.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(c.inlinePairs==0&&l.match(/^\s*-?[0-9\.\,]+\s?$/)||c.inlinePairs>0&&l.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(l.match(n))return"keyword"}return!c.pair&&l.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(c.pair=!0,c.keyCol=l.indentation(),"atom"):c.pair&&l.match(/^:\s*/)?(c.pairStart=!0,"meta"):(c.pairStart=!1,c.escaped=d=="\\",l.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),i.defineMIME("text/x-yaml","yaml"),i.defineMIME("text/yaml","yaml")})});var ph=Me((dh,hh)=>{(function(i){typeof dh=="object"&&typeof hh=="object"?i(Tt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineOption("scrollPastEnd",!1,function(l,c,d){d&&d!=i.Init&&(l.off("change",t),l.off("refresh",n),l.display.lineSpace.parentNode.style.paddingBottom="",l.state.scrollPastEndPadding=null),c&&(l.on("change",t),l.on("refresh",n),n(l))});function t(l,c){i.changeEnd(c).line==l.lastLine()&&n(l)}function n(l){var c="";if(l.lineCount()>1){var d=l.display.scroller.clientHeight-30,a=l.getLineHandle(l.lastLine()).height;c=d-a+"px"}l.state.scrollPastEndPadding!=c&&(l.state.scrollPastEndPadding=c,l.display.lineSpace.parentNode.style.paddingBottom=c,l.off("refresh",n),l.setSize(),l.on("refresh",n))}})});var Mh=Me((Sa,il)=>{(function(t,n){if(typeof Sa=="object"&&typeof il=="object")il.exports=n();else if(typeof define=="function"&&define.amd)define([],n);else{var l=n();for(var c in l)(typeof Sa=="object"?Sa:t)[c]=l[c]}})(self,function(){return function(){var i={3099:function(c){c.exports=function(d){if(typeof d!="function")throw TypeError(String(d)+" is not a function");return d}},6077:function(c,d,a){var h=a(111);c.exports=function(f){if(!h(f)&&f!==null)throw TypeError("Can't set "+String(f)+" as a prototype");return f}},1223:function(c,d,a){var h=a(5112),f=a(30),p=a(3070),y=h("unscopables"),g=Array.prototype;g[y]==null&&p.f(g,y,{configurable:!0,value:f(null)}),c.exports=function(v){g[y][v]=!0}},1530:function(c,d,a){"use strict";var h=a(8710).charAt;c.exports=function(f,p,y){return p+(y?h(f,p).length:1)}},5787:function(c){c.exports=function(d,a,h){if(!(d instanceof a))throw TypeError("Incorrect "+(h?h+" ":"")+"invocation");return d}},9670:function(c,d,a){var h=a(111);c.exports=function(f){if(!h(f))throw TypeError(String(f)+" is not an object");return f}},4019:function(c){c.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},260:function(c,d,a){"use strict";var h=a(4019),f=a(9781),p=a(7854),y=a(111),g=a(6656),v=a(648),b=a(8880),k=a(1320),E=a(3070).f,w=a(9518),I=a(7674),S=a(5112),P=a(9711),F=p.Int8Array,H=F&&F.prototype,$=p.Uint8ClampedArray,J=$&&$.prototype,K=F&&w(F),Y=H&&w(H),G=Object.prototype,j=G.isPrototypeOf,z=S("toStringTag"),C=P("TYPED_ARRAY_TAG"),U=h&&!!I&&v(p.opera)!=="Opera",Z=!1,R,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},ne={BigInt64Array:8,BigUint64Array:8},ae=function(ze){if(!y(ze))return!1;var qe=v(ze);return qe==="DataView"||g(N,qe)||g(ne,qe)},M=function(_e){if(!y(_e))return!1;var ze=v(_e);return g(N,ze)||g(ne,ze)},A=function(_e){if(M(_e))return _e;throw TypeError("Target is not a typed array")},be=function(_e){if(I){if(j.call(K,_e))return _e}else for(var ze in N)if(g(N,R)){var qe=p[ze];if(qe&&(_e===qe||j.call(qe,_e)))return _e}throw TypeError("Target is not a typed array constructor")},Fe=function(_e,ze,qe){if(!!f){if(qe)for(var ge in N){var ke=p[ge];ke&&g(ke.prototype,_e)&&delete ke.prototype[_e]}(!Y[_e]||qe)&&k(Y,_e,qe?ze:U&&H[_e]||ze)}},xe=function(_e,ze,qe){var ge,ke;if(!!f){if(I){if(qe)for(ge in N)ke=p[ge],ke&&g(ke,_e)&&delete ke[_e];if(!K[_e]||qe)try{return k(K,_e,qe?ze:U&&F[_e]||ze)}catch{}else return}for(ge in N)ke=p[ge],ke&&(!ke[_e]||qe)&&k(ke,_e,ze)}};for(R in N)p[R]||(U=!1);if((!U||typeof K!="function"||K===Function.prototype)&&(K=function(){throw TypeError("Incorrect invocation")},U))for(R in N)p[R]&&I(p[R],K);if((!U||!Y||Y===G)&&(Y=K.prototype,U))for(R in N)p[R]&&I(p[R].prototype,Y);if(U&&w(J)!==Y&&I(J,Y),f&&!g(Y,z)){Z=!0,E(Y,z,{get:function(){return y(this)?this[C]:void 0}});for(R in N)p[R]&&b(p[R],C,R)}c.exports={NATIVE_ARRAY_BUFFER_VIEWS:U,TYPED_ARRAY_TAG:Z&&C,aTypedArray:A,aTypedArrayConstructor:be,exportTypedArrayMethod:Fe,exportTypedArrayStaticMethod:xe,isView:ae,isTypedArray:M,TypedArray:K,TypedArrayPrototype:Y}},3331:function(c,d,a){"use strict";var h=a(7854),f=a(9781),p=a(4019),y=a(8880),g=a(2248),v=a(7293),b=a(5787),k=a(9958),E=a(7466),w=a(7067),I=a(1179),S=a(9518),P=a(7674),F=a(8006).f,H=a(3070).f,$=a(1285),J=a(8003),K=a(9909),Y=K.get,G=K.set,j="ArrayBuffer",z="DataView",C="prototype",U="Wrong length",Z="Wrong index",R=h[j],N=R,ne=h[z],ae=ne&&ne[C],M=Object.prototype,A=h.RangeError,be=I.pack,Fe=I.unpack,xe=function(Se){return[Se&255]},_e=function(Se){return[Se&255,Se>>8&255]},ze=function(Se){return[Se&255,Se>>8&255,Se>>16&255,Se>>24&255]},qe=function(Se){return Se[3]<<24|Se[2]<<16|Se[1]<<8|Se[0]},ge=function(Se){return be(Se,23,4)},ke=function(Se){return be(Se,52,8)},Ue=function(Se,X){H(Se[C],X,{get:function(){return Y(this)[X]}})},at=function(Se,X,de,ue){var it=w(de),Ne=Y(Se);if(it+X>Ne.byteLength)throw A(Z);var ot=Y(Ne.buffer).bytes,Xe=it+Ne.byteOffset,et=ot.slice(Xe,Xe+X);return ue?et:et.reverse()},gt=function(Se,X,de,ue,it,Ne){var ot=w(de),Xe=Y(Se);if(ot+X>Xe.byteLength)throw A(Z);for(var et=Y(Xe.buffer).bytes,We=ot+Xe.byteOffset,jt=ue(+it),Lt=0;Ltit)throw A("Wrong offset");if(ue=ue===void 0?it-Ne:E(ue),Ne+ue>it)throw A(U);G(this,{buffer:X,byteLength:ue,byteOffset:Ne}),f||(this.buffer=X,this.byteLength=ue,this.byteOffset=Ne)},f&&(Ue(N,"byteLength"),Ue(ne,"buffer"),Ue(ne,"byteLength"),Ue(ne,"byteOffset")),g(ne[C],{getInt8:function(X){return at(this,1,X)[0]<<24>>24},getUint8:function(X){return at(this,1,X)[0]},getInt16:function(X){var de=at(this,2,X,arguments.length>1?arguments[1]:void 0);return(de[1]<<8|de[0])<<16>>16},getUint16:function(X){var de=at(this,2,X,arguments.length>1?arguments[1]:void 0);return de[1]<<8|de[0]},getInt32:function(X){return qe(at(this,4,X,arguments.length>1?arguments[1]:void 0))},getUint32:function(X){return qe(at(this,4,X,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(X){return Fe(at(this,4,X,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(X){return Fe(at(this,8,X,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(X,de){gt(this,1,X,xe,de)},setUint8:function(X,de){gt(this,1,X,xe,de)},setInt16:function(X,de){gt(this,2,X,_e,de,arguments.length>2?arguments[2]:void 0)},setUint16:function(X,de){gt(this,2,X,_e,de,arguments.length>2?arguments[2]:void 0)},setInt32:function(X,de){gt(this,4,X,ze,de,arguments.length>2?arguments[2]:void 0)},setUint32:function(X,de){gt(this,4,X,ze,de,arguments.length>2?arguments[2]:void 0)},setFloat32:function(X,de){gt(this,4,X,ge,de,arguments.length>2?arguments[2]:void 0)},setFloat64:function(X,de){gt(this,8,X,ke,de,arguments.length>2?arguments[2]:void 0)}});else{if(!v(function(){R(1)})||!v(function(){new R(-1)})||v(function(){return new R,new R(1.5),new R(NaN),R.name!=j})){N=function(X){return b(this,N),new R(w(X))};for(var Re=N[C]=R[C],Ie=F(R),Be=0,Ke;Ie.length>Be;)(Ke=Ie[Be++])in N||y(N,Ke,R[Ke]);Re.constructor=N}P&&S(ae)!==M&&P(ae,M);var He=new ne(new N(2)),Je=ae.setInt8;He.setInt8(0,2147483648),He.setInt8(1,2147483649),(He.getInt8(0)||!He.getInt8(1))&&g(ae,{setInt8:function(X,de){Je.call(this,X,de<<24>>24)},setUint8:function(X,de){Je.call(this,X,de<<24>>24)}},{unsafe:!0})}J(N,j),J(ne,z),c.exports={ArrayBuffer:N,DataView:ne}},1048:function(c,d,a){"use strict";var h=a(7908),f=a(1400),p=a(7466),y=Math.min;c.exports=[].copyWithin||function(v,b){var k=h(this),E=p(k.length),w=f(v,E),I=f(b,E),S=arguments.length>2?arguments[2]:void 0,P=y((S===void 0?E:f(S,E))-I,E-w),F=1;for(I0;)I in k?k[w]=k[I]:delete k[w],w+=F,I+=F;return k}},1285:function(c,d,a){"use strict";var h=a(7908),f=a(1400),p=a(7466);c.exports=function(g){for(var v=h(this),b=p(v.length),k=arguments.length,E=f(k>1?arguments[1]:void 0,b),w=k>2?arguments[2]:void 0,I=w===void 0?b:f(w,b);I>E;)v[E++]=g;return v}},8533:function(c,d,a){"use strict";var h=a(2092).forEach,f=a(9341),p=f("forEach");c.exports=p?[].forEach:function(g){return h(this,g,arguments.length>1?arguments[1]:void 0)}},8457:function(c,d,a){"use strict";var h=a(9974),f=a(7908),p=a(3411),y=a(7659),g=a(7466),v=a(6135),b=a(1246);c.exports=function(E){var w=f(E),I=typeof this=="function"?this:Array,S=arguments.length,P=S>1?arguments[1]:void 0,F=P!==void 0,H=b(w),$=0,J,K,Y,G,j,z;if(F&&(P=h(P,S>2?arguments[2]:void 0,2)),H!=null&&!(I==Array&&y(H)))for(G=H.call(w),j=G.next,K=new I;!(Y=j.call(G)).done;$++)z=F?p(G,P,[Y.value,$],!0):Y.value,v(K,$,z);else for(J=g(w.length),K=new I(J);J>$;$++)z=F?P(w[$],$):w[$],v(K,$,z);return K.length=$,K}},1318:function(c,d,a){var h=a(5656),f=a(7466),p=a(1400),y=function(g){return function(v,b,k){var E=h(v),w=f(E.length),I=p(k,w),S;if(g&&b!=b){for(;w>I;)if(S=E[I++],S!=S)return!0}else for(;w>I;I++)if((g||I in E)&&E[I]===b)return g||I||0;return!g&&-1}};c.exports={includes:y(!0),indexOf:y(!1)}},2092:function(c,d,a){var h=a(9974),f=a(8361),p=a(7908),y=a(7466),g=a(5417),v=[].push,b=function(k){var E=k==1,w=k==2,I=k==3,S=k==4,P=k==6,F=k==7,H=k==5||P;return function($,J,K,Y){for(var G=p($),j=f(G),z=h(J,K,3),C=y(j.length),U=0,Z=Y||g,R=E?Z($,C):w||F?Z($,0):void 0,N,ne;C>U;U++)if((H||U in j)&&(N=j[U],ne=z(N,U,G),k))if(E)R[U]=ne;else if(ne)switch(k){case 3:return!0;case 5:return N;case 6:return U;case 2:v.call(R,N)}else switch(k){case 4:return!1;case 7:v.call(R,N)}return P?-1:I||S?S:R}};c.exports={forEach:b(0),map:b(1),filter:b(2),some:b(3),every:b(4),find:b(5),findIndex:b(6),filterOut:b(7)}},6583:function(c,d,a){"use strict";var h=a(5656),f=a(9958),p=a(7466),y=a(9341),g=Math.min,v=[].lastIndexOf,b=!!v&&1/[1].lastIndexOf(1,-0)<0,k=y("lastIndexOf"),E=b||!k;c.exports=E?function(I){if(b)return v.apply(this,arguments)||0;var S=h(this),P=p(S.length),F=P-1;for(arguments.length>1&&(F=g(F,f(arguments[1]))),F<0&&(F=P+F);F>=0;F--)if(F in S&&S[F]===I)return F||0;return-1}:v},1194:function(c,d,a){var h=a(7293),f=a(5112),p=a(7392),y=f("species");c.exports=function(g){return p>=51||!h(function(){var v=[],b=v.constructor={};return b[y]=function(){return{foo:1}},v[g](Boolean).foo!==1})}},9341:function(c,d,a){"use strict";var h=a(7293);c.exports=function(f,p){var y=[][f];return!!y&&h(function(){y.call(null,p||function(){throw 1},1)})}},3671:function(c,d,a){var h=a(3099),f=a(7908),p=a(8361),y=a(7466),g=function(v){return function(b,k,E,w){h(k);var I=f(b),S=p(I),P=y(I.length),F=v?P-1:0,H=v?-1:1;if(E<2)for(;;){if(F in S){w=S[F],F+=H;break}if(F+=H,v?F<0:P<=F)throw TypeError("Reduce of empty array with no initial value")}for(;v?F>=0:P>F;F+=H)F in S&&(w=k(w,S[F],F,I));return w}};c.exports={left:g(!1),right:g(!0)}},5417:function(c,d,a){var h=a(111),f=a(3157),p=a(5112),y=p("species");c.exports=function(g,v){var b;return f(g)&&(b=g.constructor,typeof b=="function"&&(b===Array||f(b.prototype))?b=void 0:h(b)&&(b=b[y],b===null&&(b=void 0))),new(b===void 0?Array:b)(v===0?0:v)}},3411:function(c,d,a){var h=a(9670),f=a(9212);c.exports=function(p,y,g,v){try{return v?y(h(g)[0],g[1]):y(g)}catch(b){throw f(p),b}}},7072:function(c,d,a){var h=a(5112),f=h("iterator"),p=!1;try{var y=0,g={next:function(){return{done:!!y++}},return:function(){p=!0}};g[f]=function(){return this},Array.from(g,function(){throw 2})}catch{}c.exports=function(v,b){if(!b&&!p)return!1;var k=!1;try{var E={};E[f]=function(){return{next:function(){return{done:k=!0}}}},v(E)}catch{}return k}},4326:function(c){var d={}.toString;c.exports=function(a){return d.call(a).slice(8,-1)}},648:function(c,d,a){var h=a(1694),f=a(4326),p=a(5112),y=p("toStringTag"),g=f(function(){return arguments}())=="Arguments",v=function(b,k){try{return b[k]}catch{}};c.exports=h?f:function(b){var k,E,w;return b===void 0?"Undefined":b===null?"Null":typeof(E=v(k=Object(b),y))=="string"?E:g?f(k):(w=f(k))=="Object"&&typeof k.callee=="function"?"Arguments":w}},9920:function(c,d,a){var h=a(6656),f=a(3887),p=a(1236),y=a(3070);c.exports=function(g,v){for(var b=f(v),k=y.f,E=p.f,w=0;w=74)&&(v=f.match(/Chrome\/(\d+)/),v&&(b=v[1]))),c.exports=b&&+b},748:function(c){c.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(c,d,a){var h=a(7854),f=a(1236).f,p=a(8880),y=a(1320),g=a(3505),v=a(9920),b=a(4705);c.exports=function(k,E){var w=k.target,I=k.global,S=k.stat,P,F,H,$,J,K;if(I?F=h:S?F=h[w]||g(w,{}):F=(h[w]||{}).prototype,F)for(H in E){if(J=E[H],k.noTargetGet?(K=f(F,H),$=K&&K.value):$=F[H],P=b(I?H:w+(S?".":"#")+H,k.forced),!P&&$!==void 0){if(typeof J==typeof $)continue;v(J,$)}(k.sham||$&&$.sham)&&p(J,"sham",!0),y(F,H,J,k)}}},7293:function(c){c.exports=function(d){try{return!!d()}catch{return!0}}},7007:function(c,d,a){"use strict";a(4916);var h=a(1320),f=a(7293),p=a(5112),y=a(2261),g=a(8880),v=p("species"),b=!f(function(){var S=/./;return S.exec=function(){var P=[];return P.groups={a:"7"},P},"".replace(S,"$")!=="7"}),k=function(){return"a".replace(/./,"$0")==="$0"}(),E=p("replace"),w=function(){return/./[E]?/./[E]("a","$0")==="":!1}(),I=!f(function(){var S=/(?:)/,P=S.exec;S.exec=function(){return P.apply(this,arguments)};var F="ab".split(S);return F.length!==2||F[0]!=="a"||F[1]!=="b"});c.exports=function(S,P,F,H){var $=p(S),J=!f(function(){var C={};return C[$]=function(){return 7},""[S](C)!=7}),K=J&&!f(function(){var C=!1,U=/a/;return S==="split"&&(U={},U.constructor={},U.constructor[v]=function(){return U},U.flags="",U[$]=/./[$]),U.exec=function(){return C=!0,null},U[$](""),!C});if(!J||!K||S==="replace"&&!(b&&k&&!w)||S==="split"&&!I){var Y=/./[$],G=F($,""[S],function(C,U,Z,R,N){return U.exec===y?J&&!N?{done:!0,value:Y.call(U,Z,R)}:{done:!0,value:C.call(Z,U,R)}:{done:!1}},{REPLACE_KEEPS_$0:k,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:w}),j=G[0],z=G[1];h(String.prototype,S,j),h(RegExp.prototype,$,P==2?function(C,U){return z.call(C,this,U)}:function(C){return z.call(C,this)})}H&&g(RegExp.prototype[$],"sham",!0)}},9974:function(c,d,a){var h=a(3099);c.exports=function(f,p,y){if(h(f),p===void 0)return f;switch(y){case 0:return function(){return f.call(p)};case 1:return function(g){return f.call(p,g)};case 2:return function(g,v){return f.call(p,g,v)};case 3:return function(g,v,b){return f.call(p,g,v,b)}}return function(){return f.apply(p,arguments)}}},5005:function(c,d,a){var h=a(857),f=a(7854),p=function(y){return typeof y=="function"?y:void 0};c.exports=function(y,g){return arguments.length<2?p(h[y])||p(f[y]):h[y]&&h[y][g]||f[y]&&f[y][g]}},1246:function(c,d,a){var h=a(648),f=a(7497),p=a(5112),y=p("iterator");c.exports=function(g){if(g!=null)return g[y]||g["@@iterator"]||f[h(g)]}},8554:function(c,d,a){var h=a(9670),f=a(1246);c.exports=function(p){var y=f(p);if(typeof y!="function")throw TypeError(String(p)+" is not iterable");return h(y.call(p))}},647:function(c,d,a){var h=a(7908),f=Math.floor,p="".replace,y=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g;c.exports=function(v,b,k,E,w,I){var S=k+v.length,P=E.length,F=g;return w!==void 0&&(w=h(w),F=y),p.call(I,F,function(H,$){var J;switch($.charAt(0)){case"$":return"$";case"&":return v;case"`":return b.slice(0,k);case"'":return b.slice(S);case"<":J=w[$.slice(1,-1)];break;default:var K=+$;if(K===0)return H;if(K>P){var Y=f(K/10);return Y===0?H:Y<=P?E[Y-1]===void 0?$.charAt(1):E[Y-1]+$.charAt(1):H}J=E[K-1]}return J===void 0?"":J})}},7854:function(c,d,a){var h=function(f){return f&&f.Math==Math&&f};c.exports=h(typeof globalThis=="object"&&globalThis)||h(typeof window=="object"&&window)||h(typeof self=="object"&&self)||h(typeof a.g=="object"&&a.g)||function(){return this}()||Function("return this")()},6656:function(c){var d={}.hasOwnProperty;c.exports=function(a,h){return d.call(a,h)}},3501:function(c){c.exports={}},490:function(c,d,a){var h=a(5005);c.exports=h("document","documentElement")},4664:function(c,d,a){var h=a(9781),f=a(7293),p=a(317);c.exports=!h&&!f(function(){return Object.defineProperty(p("div"),"a",{get:function(){return 7}}).a!=7})},1179:function(c){var d=Math.abs,a=Math.pow,h=Math.floor,f=Math.log,p=Math.LN2,y=function(v,b,k){var E=new Array(k),w=k*8-b-1,I=(1<>1,P=b===23?a(2,-24)-a(2,-77):0,F=v<0||v===0&&1/v<0?1:0,H=0,$,J,K;for(v=d(v),v!=v||v===1/0?(J=v!=v?1:0,$=I):($=h(f(v)/p),v*(K=a(2,-$))<1&&($--,K*=2),$+S>=1?v+=P/K:v+=P*a(2,1-S),v*K>=2&&($++,K/=2),$+S>=I?(J=0,$=I):$+S>=1?(J=(v*K-1)*a(2,b),$=$+S):(J=v*a(2,S-1)*a(2,b),$=0));b>=8;E[H++]=J&255,J/=256,b-=8);for($=$<0;E[H++]=$&255,$/=256,w-=8);return E[--H]|=F*128,E},g=function(v,b){var k=v.length,E=k*8-b-1,w=(1<>1,S=E-7,P=k-1,F=v[P--],H=F&127,$;for(F>>=7;S>0;H=H*256+v[P],P--,S-=8);for($=H&(1<<-S)-1,H>>=-S,S+=b;S>0;$=$*256+v[P],P--,S-=8);if(H===0)H=1-I;else{if(H===w)return $?NaN:F?-1/0:1/0;$=$+a(2,b),H=H-I}return(F?-1:1)*$*a(2,H-b)};c.exports={pack:y,unpack:g}},8361:function(c,d,a){var h=a(7293),f=a(4326),p="".split;c.exports=h(function(){return!Object("z").propertyIsEnumerable(0)})?function(y){return f(y)=="String"?p.call(y,""):Object(y)}:Object},9587:function(c,d,a){var h=a(111),f=a(7674);c.exports=function(p,y,g){var v,b;return f&&typeof(v=y.constructor)=="function"&&v!==g&&h(b=v.prototype)&&b!==g.prototype&&f(p,b),p}},2788:function(c,d,a){var h=a(5465),f=Function.toString;typeof h.inspectSource!="function"&&(h.inspectSource=function(p){return f.call(p)}),c.exports=h.inspectSource},9909:function(c,d,a){var h=a(8536),f=a(7854),p=a(111),y=a(8880),g=a(6656),v=a(5465),b=a(6200),k=a(3501),E=f.WeakMap,w,I,S,P=function(G){return S(G)?I(G):w(G,{})},F=function(G){return function(j){var z;if(!p(j)||(z=I(j)).type!==G)throw TypeError("Incompatible receiver, "+G+" required");return z}};if(h){var H=v.state||(v.state=new E),$=H.get,J=H.has,K=H.set;w=function(G,j){return j.facade=G,K.call(H,G,j),j},I=function(G){return $.call(H,G)||{}},S=function(G){return J.call(H,G)}}else{var Y=b("state");k[Y]=!0,w=function(G,j){return j.facade=G,y(G,Y,j),j},I=function(G){return g(G,Y)?G[Y]:{}},S=function(G){return g(G,Y)}}c.exports={set:w,get:I,has:S,enforce:P,getterFor:F}},7659:function(c,d,a){var h=a(5112),f=a(7497),p=h("iterator"),y=Array.prototype;c.exports=function(g){return g!==void 0&&(f.Array===g||y[p]===g)}},3157:function(c,d,a){var h=a(4326);c.exports=Array.isArray||function(p){return h(p)=="Array"}},4705:function(c,d,a){var h=a(7293),f=/#|\.prototype\./,p=function(k,E){var w=g[y(k)];return w==b?!0:w==v?!1:typeof E=="function"?h(E):!!E},y=p.normalize=function(k){return String(k).replace(f,".").toLowerCase()},g=p.data={},v=p.NATIVE="N",b=p.POLYFILL="P";c.exports=p},111:function(c){c.exports=function(d){return typeof d=="object"?d!==null:typeof d=="function"}},1913:function(c){c.exports=!1},7850:function(c,d,a){var h=a(111),f=a(4326),p=a(5112),y=p("match");c.exports=function(g){var v;return h(g)&&((v=g[y])!==void 0?!!v:f(g)=="RegExp")}},9212:function(c,d,a){var h=a(9670);c.exports=function(f){var p=f.return;if(p!==void 0)return h(p.call(f)).value}},3383:function(c,d,a){"use strict";var h=a(7293),f=a(9518),p=a(8880),y=a(6656),g=a(5112),v=a(1913),b=g("iterator"),k=!1,E=function(){return this},w,I,S;[].keys&&(S=[].keys(),"next"in S?(I=f(f(S)),I!==Object.prototype&&(w=I)):k=!0);var P=w==null||h(function(){var F={};return w[b].call(F)!==F});P&&(w={}),(!v||P)&&!y(w,b)&&p(w,b,E),c.exports={IteratorPrototype:w,BUGGY_SAFARI_ITERATORS:k}},7497:function(c){c.exports={}},133:function(c,d,a){var h=a(7293);c.exports=!!Object.getOwnPropertySymbols&&!h(function(){return!String(Symbol())})},590:function(c,d,a){var h=a(7293),f=a(5112),p=a(1913),y=f("iterator");c.exports=!h(function(){var g=new URL("b?a=1&b=2&c=3","http://a"),v=g.searchParams,b="";return g.pathname="c%20d",v.forEach(function(k,E){v.delete("b"),b+=E+k}),p&&!g.toJSON||!v.sort||g.href!=="http://a/c%20d?a=1&c=3"||v.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!v[y]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||b!=="a1c3"||new URL("http://x",void 0).host!=="x"})},8536:function(c,d,a){var h=a(7854),f=a(2788),p=h.WeakMap;c.exports=typeof p=="function"&&/native code/.test(f(p))},1574:function(c,d,a){"use strict";var h=a(9781),f=a(7293),p=a(1956),y=a(5181),g=a(5296),v=a(7908),b=a(8361),k=Object.assign,E=Object.defineProperty;c.exports=!k||f(function(){if(h&&k({b:1},k(E({},"a",{enumerable:!0,get:function(){E(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var w={},I={},S=Symbol(),P="abcdefghijklmnopqrst";return w[S]=7,P.split("").forEach(function(F){I[F]=F}),k({},w)[S]!=7||p(k({},I)).join("")!=P})?function(I,S){for(var P=v(I),F=arguments.length,H=1,$=y.f,J=g.f;F>H;)for(var K=b(arguments[H++]),Y=$?p(K).concat($(K)):p(K),G=Y.length,j=0,z;G>j;)z=Y[j++],(!h||J.call(K,z))&&(P[z]=K[z]);return P}:k},30:function(c,d,a){var h=a(9670),f=a(6048),p=a(748),y=a(3501),g=a(490),v=a(317),b=a(6200),k=">",E="<",w="prototype",I="script",S=b("IE_PROTO"),P=function(){},F=function(Y){return E+I+k+Y+E+"/"+I+k},H=function(Y){Y.write(F("")),Y.close();var G=Y.parentWindow.Object;return Y=null,G},$=function(){var Y=v("iframe"),G="java"+I+":",j;return Y.style.display="none",g.appendChild(Y),Y.src=String(G),j=Y.contentWindow.document,j.open(),j.write(F("document.F=Object")),j.close(),j.F},J,K=function(){try{J=document.domain&&new ActiveXObject("htmlfile")}catch{}K=J?H(J):$();for(var Y=p.length;Y--;)delete K[w][p[Y]];return K()};y[S]=!0,c.exports=Object.create||function(G,j){var z;return G!==null?(P[w]=h(G),z=new P,P[w]=null,z[S]=G):z=K(),j===void 0?z:f(z,j)}},6048:function(c,d,a){var h=a(9781),f=a(3070),p=a(9670),y=a(1956);c.exports=h?Object.defineProperties:function(v,b){p(v);for(var k=y(b),E=k.length,w=0,I;E>w;)f.f(v,I=k[w++],b[I]);return v}},3070:function(c,d,a){var h=a(9781),f=a(4664),p=a(9670),y=a(7593),g=Object.defineProperty;d.f=h?g:function(b,k,E){if(p(b),k=y(k,!0),p(E),f)try{return g(b,k,E)}catch{}if("get"in E||"set"in E)throw TypeError("Accessors not supported");return"value"in E&&(b[k]=E.value),b}},1236:function(c,d,a){var h=a(9781),f=a(5296),p=a(9114),y=a(5656),g=a(7593),v=a(6656),b=a(4664),k=Object.getOwnPropertyDescriptor;d.f=h?k:function(w,I){if(w=y(w),I=g(I,!0),b)try{return k(w,I)}catch{}if(v(w,I))return p(!f.f.call(w,I),w[I])}},8006:function(c,d,a){var h=a(6324),f=a(748),p=f.concat("length","prototype");d.f=Object.getOwnPropertyNames||function(g){return h(g,p)}},5181:function(c,d){d.f=Object.getOwnPropertySymbols},9518:function(c,d,a){var h=a(6656),f=a(7908),p=a(6200),y=a(8544),g=p("IE_PROTO"),v=Object.prototype;c.exports=y?Object.getPrototypeOf:function(b){return b=f(b),h(b,g)?b[g]:typeof b.constructor=="function"&&b instanceof b.constructor?b.constructor.prototype:b instanceof Object?v:null}},6324:function(c,d,a){var h=a(6656),f=a(5656),p=a(1318).indexOf,y=a(3501);c.exports=function(g,v){var b=f(g),k=0,E=[],w;for(w in b)!h(y,w)&&h(b,w)&&E.push(w);for(;v.length>k;)h(b,w=v[k++])&&(~p(E,w)||E.push(w));return E}},1956:function(c,d,a){var h=a(6324),f=a(748);c.exports=Object.keys||function(y){return h(y,f)}},5296:function(c,d){"use strict";var a={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,f=h&&!a.call({1:2},1);d.f=f?function(y){var g=h(this,y);return!!g&&g.enumerable}:a},7674:function(c,d,a){var h=a(9670),f=a(6077);c.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var p=!1,y={},g;try{g=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,g.call(y,[]),p=y instanceof Array}catch{}return function(b,k){return h(b),f(k),p?g.call(b,k):b.__proto__=k,b}}():void 0)},288:function(c,d,a){"use strict";var h=a(1694),f=a(648);c.exports=h?{}.toString:function(){return"[object "+f(this)+"]"}},3887:function(c,d,a){var h=a(5005),f=a(8006),p=a(5181),y=a(9670);c.exports=h("Reflect","ownKeys")||function(v){var b=f.f(y(v)),k=p.f;return k?b.concat(k(v)):b}},857:function(c,d,a){var h=a(7854);c.exports=h},2248:function(c,d,a){var h=a(1320);c.exports=function(f,p,y){for(var g in p)h(f,g,p[g],y);return f}},1320:function(c,d,a){var h=a(7854),f=a(8880),p=a(6656),y=a(3505),g=a(2788),v=a(9909),b=v.get,k=v.enforce,E=String(String).split("String");(c.exports=function(w,I,S,P){var F=P?!!P.unsafe:!1,H=P?!!P.enumerable:!1,$=P?!!P.noTargetGet:!1,J;if(typeof S=="function"&&(typeof I=="string"&&!p(S,"name")&&f(S,"name",I),J=k(S),J.source||(J.source=E.join(typeof I=="string"?I:""))),w===h){H?w[I]=S:y(I,S);return}else F?!$&&w[I]&&(H=!0):delete w[I];H?w[I]=S:f(w,I,S)})(Function.prototype,"toString",function(){return typeof this=="function"&&b(this).source||g(this)})},7651:function(c,d,a){var h=a(4326),f=a(2261);c.exports=function(p,y){var g=p.exec;if(typeof g=="function"){var v=g.call(p,y);if(typeof v!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return v}if(h(p)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return f.call(p,y)}},2261:function(c,d,a){"use strict";var h=a(7066),f=a(2999),p=RegExp.prototype.exec,y=String.prototype.replace,g=p,v=function(){var w=/a/,I=/b*/g;return p.call(w,"a"),p.call(I,"a"),w.lastIndex!==0||I.lastIndex!==0}(),b=f.UNSUPPORTED_Y||f.BROKEN_CARET,k=/()??/.exec("")[1]!==void 0,E=v||k||b;E&&(g=function(I){var S=this,P,F,H,$,J=b&&S.sticky,K=h.call(S),Y=S.source,G=0,j=I;return J&&(K=K.replace("y",""),K.indexOf("g")===-1&&(K+="g"),j=String(I).slice(S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&I[S.lastIndex-1]!==` +`)&&(Y="(?: "+Y+")",j=" "+j,G++),F=new RegExp("^(?:"+Y+")",K)),k&&(F=new RegExp("^"+Y+"$(?!\\s)",K)),v&&(P=S.lastIndex),H=p.call(J?F:S,j),J?H?(H.input=H.input.slice(G),H[0]=H[0].slice(G),H.index=S.lastIndex,S.lastIndex+=H[0].length):S.lastIndex=0:v&&H&&(S.lastIndex=S.global?H.index+H[0].length:P),k&&H&&H.length>1&&y.call(H[0],F,function(){for($=1;$=E?y?"":void 0:(w=b.charCodeAt(k),w<55296||w>56319||k+1===E||(I=b.charCodeAt(k+1))<56320||I>57343?y?b.charAt(k):w:y?b.slice(k,k+2):(w-55296<<10)+(I-56320)+65536)}};c.exports={codeAt:p(!1),charAt:p(!0)}},3197:function(c){"use strict";var d=2147483647,a=36,h=1,f=26,p=38,y=700,g=72,v=128,b="-",k=/[^\0-\u007E]/,E=/[.\u3002\uFF0E\uFF61]/g,w="Overflow: input needs wider integers to process",I=a-h,S=Math.floor,P=String.fromCharCode,F=function(K){for(var Y=[],G=0,j=K.length;G=55296&&z<=56319&&G>1,K+=S(K/Y);K>I*f>>1;j+=a)K=S(K/I);return S(j+(I+1)*K/(K+p))},J=function(K){var Y=[];K=F(K);var G=K.length,j=v,z=0,C=g,U,Z;for(U=0;U=j&&ZS((d-z)/ae))throw RangeError(w);for(z+=(ne-j)*ae,j=ne,U=0;Ud)throw RangeError(w);if(Z==j){for(var M=z,A=a;;A+=a){var be=A<=C?h:A>=C+f?f:A-C;if(M0?a:d)(h)}},7466:function(c,d,a){var h=a(9958),f=Math.min;c.exports=function(p){return p>0?f(h(p),9007199254740991):0}},7908:function(c,d,a){var h=a(4488);c.exports=function(f){return Object(h(f))}},4590:function(c,d,a){var h=a(3002);c.exports=function(f,p){var y=h(f);if(y%p)throw RangeError("Wrong offset");return y}},3002:function(c,d,a){var h=a(9958);c.exports=function(f){var p=h(f);if(p<0)throw RangeError("The argument can't be less than 0");return p}},7593:function(c,d,a){var h=a(111);c.exports=function(f,p){if(!h(f))return f;var y,g;if(p&&typeof(y=f.toString)=="function"&&!h(g=y.call(f))||typeof(y=f.valueOf)=="function"&&!h(g=y.call(f))||!p&&typeof(y=f.toString)=="function"&&!h(g=y.call(f)))return g;throw TypeError("Can't convert object to primitive value")}},1694:function(c,d,a){var h=a(5112),f=h("toStringTag"),p={};p[f]="z",c.exports=String(p)==="[object z]"},9843:function(c,d,a){"use strict";var h=a(2109),f=a(7854),p=a(9781),y=a(3832),g=a(260),v=a(3331),b=a(5787),k=a(9114),E=a(8880),w=a(7466),I=a(7067),S=a(4590),P=a(7593),F=a(6656),H=a(648),$=a(111),J=a(30),K=a(7674),Y=a(8006).f,G=a(7321),j=a(2092).forEach,z=a(6340),C=a(3070),U=a(1236),Z=a(9909),R=a(9587),N=Z.get,ne=Z.set,ae=C.f,M=U.f,A=Math.round,be=f.RangeError,Fe=v.ArrayBuffer,xe=v.DataView,_e=g.NATIVE_ARRAY_BUFFER_VIEWS,ze=g.TYPED_ARRAY_TAG,qe=g.TypedArray,ge=g.TypedArrayPrototype,ke=g.aTypedArrayConstructor,Ue=g.isTypedArray,at="BYTES_PER_ELEMENT",gt="Wrong length",Re=function(Se,X){for(var de=0,ue=X.length,it=new(ke(Se))(ue);ue>de;)it[de]=X[de++];return it},Ie=function(Se,X){ae(Se,X,{get:function(){return N(this)[X]}})},Be=function(Se){var X;return Se instanceof Fe||(X=H(Se))=="ArrayBuffer"||X=="SharedArrayBuffer"},Ke=function(Se,X){return Ue(Se)&&typeof X!="symbol"&&X in Se&&String(+X)==String(X)},He=function(X,de){return Ke(X,de=P(de,!0))?k(2,X[de]):M(X,de)},Je=function(X,de,ue){return Ke(X,de=P(de,!0))&&$(ue)&&F(ue,"value")&&!F(ue,"get")&&!F(ue,"set")&&!ue.configurable&&(!F(ue,"writable")||ue.writable)&&(!F(ue,"enumerable")||ue.enumerable)?(X[de]=ue.value,X):ae(X,de,ue)};p?(_e||(U.f=He,C.f=Je,Ie(ge,"buffer"),Ie(ge,"byteOffset"),Ie(ge,"byteLength"),Ie(ge,"length")),h({target:"Object",stat:!0,forced:!_e},{getOwnPropertyDescriptor:He,defineProperty:Je}),c.exports=function(Se,X,de){var ue=Se.match(/\d+$/)[0]/8,it=Se+(de?"Clamped":"")+"Array",Ne="get"+Se,ot="set"+Se,Xe=f[it],et=Xe,We=et&&et.prototype,jt={},Lt=function(Mt,pt){var rt=N(Mt);return rt.view[Ne](pt*ue+rt.byteOffset,!0)},fr=function(Mt,pt,rt){var wt=N(Mt);de&&(rt=(rt=A(rt))<0?0:rt>255?255:rt&255),wt.view[ot](pt*ue+wt.byteOffset,rt,!0)},lt=function(Mt,pt){ae(Mt,pt,{get:function(){return Lt(this,pt)},set:function(rt){return fr(this,pt,rt)},enumerable:!0})};_e?y&&(et=X(function(Mt,pt,rt,wt){return b(Mt,et,it),R(function(){return $(pt)?Be(pt)?wt!==void 0?new Xe(pt,S(rt,ue),wt):rt!==void 0?new Xe(pt,S(rt,ue)):new Xe(pt):Ue(pt)?Re(et,pt):G.call(et,pt):new Xe(I(pt))}(),Mt,et)}),K&&K(et,qe),j(Y(Xe),function(Mt){Mt in et||E(et,Mt,Xe[Mt])}),et.prototype=We):(et=X(function(Mt,pt,rt,wt){b(Mt,et,it);var dr=0,Et=0,Vt,kt,st;if(!$(pt))st=I(pt),kt=st*ue,Vt=new Fe(kt);else if(Be(pt)){Vt=pt,Et=S(rt,ue);var Ht=pt.byteLength;if(wt===void 0){if(Ht%ue||(kt=Ht-Et,kt<0))throw be(gt)}else if(kt=w(wt)*ue,kt+Et>Ht)throw be(gt);st=kt/ue}else return Ue(pt)?Re(et,pt):G.call(et,pt);for(ne(Mt,{buffer:Vt,byteOffset:Et,byteLength:kt,length:st,view:new xe(Vt)});drv;)k[v]=y[v++];return k}},7321:function(c,d,a){var h=a(7908),f=a(7466),p=a(1246),y=a(7659),g=a(9974),v=a(260).aTypedArrayConstructor;c.exports=function(k){var E=h(k),w=arguments.length,I=w>1?arguments[1]:void 0,S=I!==void 0,P=p(E),F,H,$,J,K,Y;if(P!=null&&!y(P))for(K=P.call(E),Y=K.next,E=[];!(J=Y.call(K)).done;)E.push(J.value);for(S&&w>2&&(I=g(I,arguments[2],2)),H=f(E.length),$=new(v(this))(H),F=0;H>F;F++)$[F]=S?I(E[F],F):E[F];return $}},9711:function(c){var d=0,a=Math.random();c.exports=function(h){return"Symbol("+String(h===void 0?"":h)+")_"+(++d+a).toString(36)}},3307:function(c,d,a){var h=a(133);c.exports=h&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},5112:function(c,d,a){var h=a(7854),f=a(2309),p=a(6656),y=a(9711),g=a(133),v=a(3307),b=f("wks"),k=h.Symbol,E=v?k:k&&k.withoutSetter||y;c.exports=function(w){return p(b,w)||(g&&p(k,w)?b[w]=k[w]:b[w]=E("Symbol."+w)),b[w]}},1361:function(c){c.exports=` +\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},8264:function(c,d,a){"use strict";var h=a(2109),f=a(7854),p=a(3331),y=a(6340),g="ArrayBuffer",v=p[g],b=f[g];h({global:!0,forced:b!==v},{ArrayBuffer:v}),y(g)},2222:function(c,d,a){"use strict";var h=a(2109),f=a(7293),p=a(3157),y=a(111),g=a(7908),v=a(7466),b=a(6135),k=a(5417),E=a(1194),w=a(5112),I=a(7392),S=w("isConcatSpreadable"),P=9007199254740991,F="Maximum allowed index exceeded",H=I>=51||!f(function(){var Y=[];return Y[S]=!1,Y.concat()[0]!==Y}),$=E("concat"),J=function(Y){if(!y(Y))return!1;var G=Y[S];return G!==void 0?!!G:p(Y)},K=!H||!$;h({target:"Array",proto:!0,forced:K},{concat:function(G){var j=g(this),z=k(j,0),C=0,U,Z,R,N,ne;for(U=-1,R=arguments.length;UP)throw TypeError(F);for(Z=0;Z=P)throw TypeError(F);b(z,C++,ne)}return z.length=C,z}})},7327:function(c,d,a){"use strict";var h=a(2109),f=a(2092).filter,p=a(1194),y=p("filter");h({target:"Array",proto:!0,forced:!y},{filter:function(v){return f(this,v,arguments.length>1?arguments[1]:void 0)}})},2772:function(c,d,a){"use strict";var h=a(2109),f=a(1318).indexOf,p=a(9341),y=[].indexOf,g=!!y&&1/[1].indexOf(1,-0)<0,v=p("indexOf");h({target:"Array",proto:!0,forced:g||!v},{indexOf:function(k){return g?y.apply(this,arguments)||0:f(this,k,arguments.length>1?arguments[1]:void 0)}})},6992:function(c,d,a){"use strict";var h=a(5656),f=a(1223),p=a(7497),y=a(9909),g=a(654),v="Array Iterator",b=y.set,k=y.getterFor(v);c.exports=g(Array,"Array",function(E,w){b(this,{type:v,target:h(E),index:0,kind:w})},function(){var E=k(this),w=E.target,I=E.kind,S=E.index++;return!w||S>=w.length?(E.target=void 0,{value:void 0,done:!0}):I=="keys"?{value:S,done:!1}:I=="values"?{value:w[S],done:!1}:{value:[S,w[S]],done:!1}},"values"),p.Arguments=p.Array,f("keys"),f("values"),f("entries")},1249:function(c,d,a){"use strict";var h=a(2109),f=a(2092).map,p=a(1194),y=p("map");h({target:"Array",proto:!0,forced:!y},{map:function(v){return f(this,v,arguments.length>1?arguments[1]:void 0)}})},7042:function(c,d,a){"use strict";var h=a(2109),f=a(111),p=a(3157),y=a(1400),g=a(7466),v=a(5656),b=a(6135),k=a(5112),E=a(1194),w=E("slice"),I=k("species"),S=[].slice,P=Math.max;h({target:"Array",proto:!0,forced:!w},{slice:function(H,$){var J=v(this),K=g(J.length),Y=y(H,K),G=y($===void 0?K:$,K),j,z,C;if(p(J)&&(j=J.constructor,typeof j=="function"&&(j===Array||p(j.prototype))?j=void 0:f(j)&&(j=j[I],j===null&&(j=void 0)),j===Array||j===void 0))return S.call(J,Y,G);for(z=new(j===void 0?Array:j)(P(G-Y,0)),C=0;YS)throw TypeError(P);for(C=v(J,z),U=0;UK-z+j;U--)delete J[U-1]}else if(j>z)for(U=K-z;U>Y;U--)Z=U+z-1,R=U+j-1,Z in J?J[R]=J[Z]:delete J[R];for(U=0;U=E.length?{value:void 0,done:!0}:(I=h(E,w),k.index+=I.length,{value:I,done:!1})})},4723:function(c,d,a){"use strict";var h=a(7007),f=a(9670),p=a(7466),y=a(4488),g=a(1530),v=a(7651);h("match",1,function(b,k,E){return[function(I){var S=y(this),P=I==null?void 0:I[b];return P!==void 0?P.call(I,S):new RegExp(I)[b](String(S))},function(w){var I=E(k,w,this);if(I.done)return I.value;var S=f(w),P=String(this);if(!S.global)return v(S,P);var F=S.unicode;S.lastIndex=0;for(var H=[],$=0,J;(J=v(S,P))!==null;){var K=String(J[0]);H[$]=K,K===""&&(S.lastIndex=g(P,p(S.lastIndex),F)),$++}return $===0?null:H}]})},5306:function(c,d,a){"use strict";var h=a(7007),f=a(9670),p=a(7466),y=a(9958),g=a(4488),v=a(1530),b=a(647),k=a(7651),E=Math.max,w=Math.min,I=function(S){return S===void 0?S:String(S)};h("replace",2,function(S,P,F,H){var $=H.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,J=H.REPLACE_KEEPS_$0,K=$?"$":"$0";return[function(G,j){var z=g(this),C=G==null?void 0:G[S];return C!==void 0?C.call(G,z,j):P.call(String(z),G,j)},function(Y,G){if(!$&&J||typeof G=="string"&&G.indexOf(K)===-1){var j=F(P,Y,this,G);if(j.done)return j.value}var z=f(Y),C=String(this),U=typeof G=="function";U||(G=String(G));var Z=z.global;if(Z){var R=z.unicode;z.lastIndex=0}for(var N=[];;){var ne=k(z,C);if(ne===null||(N.push(ne),!Z))break;var ae=String(ne[0]);ae===""&&(z.lastIndex=v(C,p(z.lastIndex),R))}for(var M="",A=0,be=0;be=A&&(M+=C.slice(A,xe)+ke,A=xe+Fe.length)}return M+C.slice(A)}]})},3123:function(c,d,a){"use strict";var h=a(7007),f=a(7850),p=a(9670),y=a(4488),g=a(6707),v=a(1530),b=a(7466),k=a(7651),E=a(2261),w=a(7293),I=[].push,S=Math.min,P=4294967295,F=!w(function(){return!RegExp(P,"y")});h("split",2,function(H,$,J){var K;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?K=function(Y,G){var j=String(y(this)),z=G===void 0?P:G>>>0;if(z===0)return[];if(Y===void 0)return[j];if(!f(Y))return $.call(j,Y,z);for(var C=[],U=(Y.ignoreCase?"i":"")+(Y.multiline?"m":"")+(Y.unicode?"u":"")+(Y.sticky?"y":""),Z=0,R=new RegExp(Y.source,U+"g"),N,ne,ae;(N=E.call(R,j))&&(ne=R.lastIndex,!(ne>Z&&(C.push(j.slice(Z,N.index)),N.length>1&&N.index=z)));)R.lastIndex===N.index&&R.lastIndex++;return Z===j.length?(ae||!R.test(""))&&C.push(""):C.push(j.slice(Z)),C.length>z?C.slice(0,z):C}:"0".split(void 0,0).length?K=function(Y,G){return Y===void 0&&G===0?[]:$.call(this,Y,G)}:K=$,[function(G,j){var z=y(this),C=G==null?void 0:G[H];return C!==void 0?C.call(G,z,j):K.call(String(z),G,j)},function(Y,G){var j=J(K,Y,this,G,K!==$);if(j.done)return j.value;var z=p(Y),C=String(this),U=g(z,RegExp),Z=z.unicode,R=(z.ignoreCase?"i":"")+(z.multiline?"m":"")+(z.unicode?"u":"")+(F?"y":"g"),N=new U(F?z:"^(?:"+z.source+")",R),ne=G===void 0?P:G>>>0;if(ne===0)return[];if(C.length===0)return k(N,C)===null?[C]:[];for(var ae=0,M=0,A=[];M2?arguments[2]:void 0)})},8927:function(c,d,a){"use strict";var h=a(260),f=a(2092).every,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("every",function(v){return f(p(this),v,arguments.length>1?arguments[1]:void 0)})},3105:function(c,d,a){"use strict";var h=a(260),f=a(1285),p=h.aTypedArray,y=h.exportTypedArrayMethod;y("fill",function(v){return f.apply(p(this),arguments)})},5035:function(c,d,a){"use strict";var h=a(260),f=a(2092).filter,p=a(3074),y=h.aTypedArray,g=h.exportTypedArrayMethod;g("filter",function(b){var k=f(y(this),b,arguments.length>1?arguments[1]:void 0);return p(this,k)})},7174:function(c,d,a){"use strict";var h=a(260),f=a(2092).findIndex,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("findIndex",function(v){return f(p(this),v,arguments.length>1?arguments[1]:void 0)})},4345:function(c,d,a){"use strict";var h=a(260),f=a(2092).find,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("find",function(v){return f(p(this),v,arguments.length>1?arguments[1]:void 0)})},2846:function(c,d,a){"use strict";var h=a(260),f=a(2092).forEach,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("forEach",function(v){f(p(this),v,arguments.length>1?arguments[1]:void 0)})},4731:function(c,d,a){"use strict";var h=a(260),f=a(1318).includes,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("includes",function(v){return f(p(this),v,arguments.length>1?arguments[1]:void 0)})},7209:function(c,d,a){"use strict";var h=a(260),f=a(1318).indexOf,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("indexOf",function(v){return f(p(this),v,arguments.length>1?arguments[1]:void 0)})},6319:function(c,d,a){"use strict";var h=a(7854),f=a(260),p=a(6992),y=a(5112),g=y("iterator"),v=h.Uint8Array,b=p.values,k=p.keys,E=p.entries,w=f.aTypedArray,I=f.exportTypedArrayMethod,S=v&&v.prototype[g],P=!!S&&(S.name=="values"||S.name==null),F=function(){return b.call(w(this))};I("entries",function(){return E.call(w(this))}),I("keys",function(){return k.call(w(this))}),I("values",F,!P),I(g,F,!P)},8867:function(c,d,a){"use strict";var h=a(260),f=h.aTypedArray,p=h.exportTypedArrayMethod,y=[].join;p("join",function(v){return y.apply(f(this),arguments)})},7789:function(c,d,a){"use strict";var h=a(260),f=a(6583),p=h.aTypedArray,y=h.exportTypedArrayMethod;y("lastIndexOf",function(v){return f.apply(p(this),arguments)})},3739:function(c,d,a){"use strict";var h=a(260),f=a(2092).map,p=a(6707),y=h.aTypedArray,g=h.aTypedArrayConstructor,v=h.exportTypedArrayMethod;v("map",function(k){return f(y(this),k,arguments.length>1?arguments[1]:void 0,function(E,w){return new(g(p(E,E.constructor)))(w)})})},4483:function(c,d,a){"use strict";var h=a(260),f=a(3671).right,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("reduceRight",function(v){return f(p(this),v,arguments.length,arguments.length>1?arguments[1]:void 0)})},9368:function(c,d,a){"use strict";var h=a(260),f=a(3671).left,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("reduce",function(v){return f(p(this),v,arguments.length,arguments.length>1?arguments[1]:void 0)})},2056:function(c,d,a){"use strict";var h=a(260),f=h.aTypedArray,p=h.exportTypedArrayMethod,y=Math.floor;p("reverse",function(){for(var v=this,b=f(v).length,k=y(b/2),E=0,w;E1?arguments[1]:void 0,1),S=this.length,P=y(w),F=f(P.length),H=0;if(F+I>S)throw RangeError("Wrong length");for(;HF;)$[F]=S[F++];return $},k)},7462:function(c,d,a){"use strict";var h=a(260),f=a(2092).some,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("some",function(v){return f(p(this),v,arguments.length>1?arguments[1]:void 0)})},3824:function(c,d,a){"use strict";var h=a(260),f=h.aTypedArray,p=h.exportTypedArrayMethod,y=[].sort;p("sort",function(v){return y.call(f(this),v)})},5021:function(c,d,a){"use strict";var h=a(260),f=a(7466),p=a(1400),y=a(6707),g=h.aTypedArray,v=h.exportTypedArrayMethod;v("subarray",function(k,E){var w=g(this),I=w.length,S=p(k,I);return new(y(w,w.constructor))(w.buffer,w.byteOffset+S*w.BYTES_PER_ELEMENT,f((E===void 0?I:p(E,I))-S))})},2974:function(c,d,a){"use strict";var h=a(7854),f=a(260),p=a(7293),y=h.Int8Array,g=f.aTypedArray,v=f.exportTypedArrayMethod,b=[].toLocaleString,k=[].slice,E=!!y&&p(function(){b.call(new y(1))}),w=p(function(){return[1,2].toLocaleString()!=new y([1,2]).toLocaleString()})||!p(function(){y.prototype.toLocaleString.call([1,2])});v("toLocaleString",function(){return b.apply(E?k.call(g(this)):g(this),arguments)},w)},5016:function(c,d,a){"use strict";var h=a(260).exportTypedArrayMethod,f=a(7293),p=a(7854),y=p.Uint8Array,g=y&&y.prototype||{},v=[].toString,b=[].join;f(function(){v.call({})})&&(v=function(){return b.call(this)});var k=g.toString!=v;h("toString",v,k)},2472:function(c,d,a){var h=a(9843);h("Uint8",function(f){return function(y,g,v){return f(this,y,g,v)}})},4747:function(c,d,a){var h=a(7854),f=a(8324),p=a(8533),y=a(8880);for(var g in f){var v=h[g],b=v&&v.prototype;if(b&&b.forEach!==p)try{y(b,"forEach",p)}catch{b.forEach=p}}},3948:function(c,d,a){var h=a(7854),f=a(8324),p=a(6992),y=a(8880),g=a(5112),v=g("iterator"),b=g("toStringTag"),k=p.values;for(var E in f){var w=h[E],I=w&&w.prototype;if(I){if(I[v]!==k)try{y(I,v,k)}catch{I[v]=k}if(I[b]||y(I,b,E),f[E]){for(var S in p)if(I[S]!==p[S])try{y(I,S,p[S])}catch{I[S]=p[S]}}}}},1637:function(c,d,a){"use strict";a(6992);var h=a(2109),f=a(5005),p=a(590),y=a(1320),g=a(2248),v=a(8003),b=a(4994),k=a(9909),E=a(5787),w=a(6656),I=a(9974),S=a(648),P=a(9670),F=a(111),H=a(30),$=a(9114),J=a(8554),K=a(1246),Y=a(5112),G=f("fetch"),j=f("Headers"),z=Y("iterator"),C="URLSearchParams",U=C+"Iterator",Z=k.set,R=k.getterFor(C),N=k.getterFor(U),ne=/\+/g,ae=Array(4),M=function(Re){return ae[Re-1]||(ae[Re-1]=RegExp("((?:%[\\da-f]{2}){"+Re+"})","gi"))},A=function(Re){try{return decodeURIComponent(Re)}catch{return Re}},be=function(Re){var Ie=Re.replace(ne," "),Be=4;try{return decodeURIComponent(Ie)}catch{for(;Be;)Ie=Ie.replace(M(Be--),A);return Ie}},Fe=/[!'()~]|%20/g,xe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},_e=function(Re){return xe[Re]},ze=function(Re){return encodeURIComponent(Re).replace(Fe,_e)},qe=function(Re,Ie){if(Ie)for(var Be=Ie.split("&"),Ke=0,He,Je;Ke0?arguments[0]:void 0,Be=this,Ke=[],He,Je,Se,X,de,ue,it,Ne,ot;if(Z(Be,{type:C,entries:Ke,updateURL:function(){},updateSearchParams:ge}),Ie!==void 0)if(F(Ie))if(He=K(Ie),typeof He=="function")for(Je=He.call(Ie),Se=Je.next;!(X=Se.call(Je)).done;){if(de=J(P(X.value)),ue=de.next,(it=ue.call(de)).done||(Ne=ue.call(de)).done||!ue.call(de).done)throw TypeError("Expected sequence with length 2");Ke.push({key:it.value+"",value:Ne.value+""})}else for(ot in Ie)w(Ie,ot)&&Ke.push({key:ot,value:Ie[ot]+""});else qe(Ke,typeof Ie=="string"?Ie.charAt(0)==="?"?Ie.slice(1):Ie:Ie+"")},gt=at.prototype;g(gt,{append:function(Ie,Be){ke(arguments.length,2);var Ke=R(this);Ke.entries.push({key:Ie+"",value:Be+""}),Ke.updateURL()},delete:function(Re){ke(arguments.length,1);for(var Ie=R(this),Be=Ie.entries,Ke=Re+"",He=0;HeHe.key){Be.splice(Je,0,He);break}Je===Se&&Be.push(He)}Ie.updateURL()},forEach:function(Ie){for(var Be=R(this).entries,Ke=I(Ie,arguments.length>1?arguments[1]:void 0,3),He=0,Je;He1&&(Ke=arguments[1],F(Ke)&&(He=Ke.body,S(He)===C&&(Je=Ke.headers?new j(Ke.headers):new j,Je.has("content-type")||Je.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),Ke=H(Ke,{body:$(0,String(He)),headers:$(0,Je)}))),Be.push(Ke)),G.apply(this,Be)}}),c.exports={URLSearchParams:at,getState:R}},285:function(c,d,a){"use strict";a(8783);var h=a(2109),f=a(9781),p=a(590),y=a(7854),g=a(6048),v=a(1320),b=a(5787),k=a(6656),E=a(1574),w=a(8457),I=a(8710).codeAt,S=a(3197),P=a(8003),F=a(1637),H=a(9909),$=y.URL,J=F.URLSearchParams,K=F.getState,Y=H.set,G=H.getterFor("URL"),j=Math.floor,z=Math.pow,C="Invalid authority",U="Invalid scheme",Z="Invalid host",R="Invalid port",N=/[A-Za-z]/,ne=/[\d+-.A-Za-z]/,ae=/\d/,M=/^(0x|0X)/,A=/^[0-7]+$/,be=/^\d+$/,Fe=/^[\dA-Fa-f]+$/,xe=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,_e=/[\u0000\t\u000A\u000D #/:?@[\\]]/,ze=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,qe=/[\t\u000A\u000D]/g,ge,ke=function(W,se){var pe,Te,Ae;if(se.charAt(0)=="["){if(se.charAt(se.length-1)!="]"||(pe=at(se.slice(1,-1)),!pe))return Z;W.host=pe}else if(X(W)){if(se=S(se),xe.test(se)||(pe=Ue(se),pe===null))return Z;W.host=pe}else{if(_e.test(se))return Z;for(pe="",Te=w(se),Ae=0;Ae4)return W;for(Te=[],Ae=0;Ae1&&Ye.charAt(0)=="0"&&(tt=M.test(Ye)?16:8,Ye=Ye.slice(tt==8?1:2)),Ye==="")bt=0;else{if(!(tt==10?be:tt==8?A:Fe).test(Ye))return W;bt=parseInt(Ye,tt)}Te.push(bt)}for(Ae=0;Ae=z(256,5-pe))return null}else if(bt>255)return null;for(Dt=Te.pop(),Ae=0;Ae6))return;for(bt=0;he();){if(Dt=null,bt>0)if(he()=="."&&bt<4)Ae++;else return;if(!ae.test(he()))return;for(;ae.test(he());){if(we=parseInt(he(),10),Dt===null)Dt=we;else{if(Dt==0)return;Dt=Dt*10+we}if(Dt>255)return;Ae++}se[pe]=se[pe]*256+Dt,bt++,(bt==2||bt==4)&&pe++}if(bt!=4)return;break}else if(he()==":"){if(Ae++,!he())return}else if(he())return;se[pe++]=Ye}if(Te!==null)for(D=pe-Te,pe=7;pe!=0&&D>0;)q=se[pe],se[pe--]=se[Te+D-1],se[Te+--D]=q;else if(pe!=8)return;return se},gt=function(W){for(var se=null,pe=1,Te=null,Ae=0,Ye=0;Ye<8;Ye++)W[Ye]!==0?(Ae>pe&&(se=Te,pe=Ae),Te=null,Ae=0):(Te===null&&(Te=Ye),++Ae);return Ae>pe&&(se=Te,pe=Ae),se},Re=function(W){var se,pe,Te,Ae;if(typeof W=="number"){for(se=[],pe=0;pe<4;pe++)se.unshift(W%256),W=j(W/256);return se.join(".")}else if(typeof W=="object"){for(se="",Te=gt(W),pe=0;pe<8;pe++)Ae&&W[pe]===0||(Ae&&(Ae=!1),Te===pe?(se+=pe?":":"::",Ae=!0):(se+=W[pe].toString(16),pe<7&&(se+=":")));return"["+se+"]"}return W},Ie={},Be=E({},Ie,{" ":1,'"':1,"<":1,">":1,"`":1}),Ke=E({},Be,{"#":1,"?":1,"{":1,"}":1}),He=E({},Ke,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Je=function(W,se){var pe=I(W,0);return pe>32&&pe<127&&!k(se,W)?W:encodeURIComponent(W)},Se={ftp:21,file:null,http:80,https:443,ws:80,wss:443},X=function(W){return k(Se,W.scheme)},de=function(W){return W.username!=""||W.password!=""},ue=function(W){return!W.host||W.cannotBeABaseURL||W.scheme=="file"},it=function(W,se){var pe;return W.length==2&&N.test(W.charAt(0))&&((pe=W.charAt(1))==":"||!se&&pe=="|")},Ne=function(W){var se;return W.length>1&&it(W.slice(0,2))&&(W.length==2||(se=W.charAt(2))==="/"||se==="\\"||se==="?"||se==="#")},ot=function(W){var se=W.path,pe=se.length;pe&&(W.scheme!="file"||pe!=1||!it(se[0],!0))&&se.pop()},Xe=function(W){return W==="."||W.toLowerCase()==="%2e"},et=function(W){return W=W.toLowerCase(),W===".."||W==="%2e."||W===".%2e"||W==="%2e%2e"},We={},jt={},Lt={},fr={},lt={},Mt={},pt={},rt={},wt={},dr={},Et={},Vt={},kt={},st={},Ht={},Ir={},hr={},pr={},jr={},zt={},yr={},ur=function(W,se,pe,Te){var Ae=pe||We,Ye=0,tt="",bt=!1,Dt=!1,we=!1,D,q,he,De;for(pe||(W.scheme="",W.username="",W.password="",W.host=null,W.port=null,W.path=[],W.query=null,W.fragment=null,W.cannotBeABaseURL=!1,se=se.replace(ze,"")),se=se.replace(qe,""),D=w(se);Ye<=D.length;){switch(q=D[Ye],Ae){case We:if(q&&N.test(q))tt+=q.toLowerCase(),Ae=jt;else{if(pe)return U;Ae=Lt;continue}break;case jt:if(q&&(ne.test(q)||q=="+"||q=="-"||q=="."))tt+=q.toLowerCase();else if(q==":"){if(pe&&(X(W)!=k(Se,tt)||tt=="file"&&(de(W)||W.port!==null)||W.scheme=="file"&&!W.host))return;if(W.scheme=tt,pe){X(W)&&Se[W.scheme]==W.port&&(W.port=null);return}tt="",W.scheme=="file"?Ae=st:X(W)&&Te&&Te.scheme==W.scheme?Ae=fr:X(W)?Ae=rt:D[Ye+1]=="/"?(Ae=lt,Ye++):(W.cannotBeABaseURL=!0,W.path.push(""),Ae=jr)}else{if(pe)return U;tt="",Ae=Lt,Ye=0;continue}break;case Lt:if(!Te||Te.cannotBeABaseURL&&q!="#")return U;if(Te.cannotBeABaseURL&&q=="#"){W.scheme=Te.scheme,W.path=Te.path.slice(),W.query=Te.query,W.fragment="",W.cannotBeABaseURL=!0,Ae=yr;break}Ae=Te.scheme=="file"?st:Mt;continue;case fr:if(q=="/"&&D[Ye+1]=="/")Ae=wt,Ye++;else{Ae=Mt;continue}break;case lt:if(q=="/"){Ae=dr;break}else{Ae=pr;continue}case Mt:if(W.scheme=Te.scheme,q==ge)W.username=Te.username,W.password=Te.password,W.host=Te.host,W.port=Te.port,W.path=Te.path.slice(),W.query=Te.query;else if(q=="/"||q=="\\"&&X(W))Ae=pt;else if(q=="?")W.username=Te.username,W.password=Te.password,W.host=Te.host,W.port=Te.port,W.path=Te.path.slice(),W.query="",Ae=zt;else if(q=="#")W.username=Te.username,W.password=Te.password,W.host=Te.host,W.port=Te.port,W.path=Te.path.slice(),W.query=Te.query,W.fragment="",Ae=yr;else{W.username=Te.username,W.password=Te.password,W.host=Te.host,W.port=Te.port,W.path=Te.path.slice(),W.path.pop(),Ae=pr;continue}break;case pt:if(X(W)&&(q=="/"||q=="\\"))Ae=wt;else if(q=="/")Ae=dr;else{W.username=Te.username,W.password=Te.password,W.host=Te.host,W.port=Te.port,Ae=pr;continue}break;case rt:if(Ae=wt,q!="/"||tt.charAt(Ye+1)!="/")continue;Ye++;break;case wt:if(q!="/"&&q!="\\"){Ae=dr;continue}break;case dr:if(q=="@"){bt&&(tt="%40"+tt),bt=!0,he=w(tt);for(var ft=0;ft65535)return R;W.port=X(W)&&Yt===Se[W.scheme]?null:Yt,tt=""}if(pe)return;Ae=hr;continue}else return R;break;case st:if(W.scheme="file",q=="/"||q=="\\")Ae=Ht;else if(Te&&Te.scheme=="file")if(q==ge)W.host=Te.host,W.path=Te.path.slice(),W.query=Te.query;else if(q=="?")W.host=Te.host,W.path=Te.path.slice(),W.query="",Ae=zt;else if(q=="#")W.host=Te.host,W.path=Te.path.slice(),W.query=Te.query,W.fragment="",Ae=yr;else{Ne(D.slice(Ye).join(""))||(W.host=Te.host,W.path=Te.path.slice(),ot(W)),Ae=pr;continue}else{Ae=pr;continue}break;case Ht:if(q=="/"||q=="\\"){Ae=Ir;break}Te&&Te.scheme=="file"&&!Ne(D.slice(Ye).join(""))&&(it(Te.path[0],!0)?W.path.push(Te.path[0]):W.host=Te.host),Ae=pr;continue;case Ir:if(q==ge||q=="/"||q=="\\"||q=="?"||q=="#"){if(!pe&&it(tt))Ae=pr;else if(tt==""){if(W.host="",pe)return;Ae=hr}else{if(De=ke(W,tt),De)return De;if(W.host=="localhost"&&(W.host=""),pe)return;tt="",Ae=hr}continue}else tt+=q;break;case hr:if(X(W)){if(Ae=pr,q!="/"&&q!="\\")continue}else if(!pe&&q=="?")W.query="",Ae=zt;else if(!pe&&q=="#")W.fragment="",Ae=yr;else if(q!=ge&&(Ae=pr,q!="/"))continue;break;case pr:if(q==ge||q=="/"||q=="\\"&&X(W)||!pe&&(q=="?"||q=="#")){if(et(tt)?(ot(W),q!="/"&&!(q=="\\"&&X(W))&&W.path.push("")):Xe(tt)?q!="/"&&!(q=="\\"&&X(W))&&W.path.push(""):(W.scheme=="file"&&!W.path.length&&it(tt)&&(W.host&&(W.host=""),tt=tt.charAt(0)+":"),W.path.push(tt)),tt="",W.scheme=="file"&&(q==ge||q=="?"||q=="#"))for(;W.path.length>1&&W.path[0]==="";)W.path.shift();q=="?"?(W.query="",Ae=zt):q=="#"&&(W.fragment="",Ae=yr)}else tt+=Je(q,Ke);break;case jr:q=="?"?(W.query="",Ae=zt):q=="#"?(W.fragment="",Ae=yr):q!=ge&&(W.path[0]+=Je(q,Ie));break;case zt:!pe&&q=="#"?(W.fragment="",Ae=yr):q!=ge&&(q=="'"&&X(W)?W.query+="%27":q=="#"?W.query+="%23":W.query+=Je(q,Ie));break;case yr:q!=ge&&(W.fragment+=Je(q,Be));break}Ye++}},Qt=function(se){var pe=b(this,Qt,"URL"),Te=arguments.length>1?arguments[1]:void 0,Ae=String(se),Ye=Y(pe,{type:"URL"}),tt,bt;if(Te!==void 0){if(Te instanceof Qt)tt=G(Te);else if(bt=ur(tt={},String(Te)),bt)throw TypeError(bt)}if(bt=ur(Ye,Ae,null,tt),bt)throw TypeError(bt);var Dt=Ye.searchParams=new J,we=K(Dt);we.updateSearchParams(Ye.query),we.updateURL=function(){Ye.query=String(Dt)||null},f||(pe.href=oe.call(pe),pe.origin=Q.call(pe),pe.protocol=re.call(pe),pe.username=O.call(pe),pe.password=B.call(pe),pe.host=te.call(pe),pe.hostname=ce.call(pe),pe.port=me.call(pe),pe.pathname=ve.call(pe),pe.search=Le.call(pe),pe.searchParams=Oe.call(pe),pe.hash=Ce.call(pe))},ie=Qt.prototype,oe=function(){var W=G(this),se=W.scheme,pe=W.username,Te=W.password,Ae=W.host,Ye=W.port,tt=W.path,bt=W.query,Dt=W.fragment,we=se+":";return Ae!==null?(we+="//",de(W)&&(we+=pe+(Te?":"+Te:"")+"@"),we+=Re(Ae),Ye!==null&&(we+=":"+Ye)):se=="file"&&(we+="//"),we+=W.cannotBeABaseURL?tt[0]:tt.length?"/"+tt.join("/"):"",bt!==null&&(we+="?"+bt),Dt!==null&&(we+="#"+Dt),we},Q=function(){var W=G(this),se=W.scheme,pe=W.port;if(se=="blob")try{return new URL(se.path[0]).origin}catch{return"null"}return se=="file"||!X(W)?"null":se+"://"+Re(W.host)+(pe!==null?":"+pe:"")},re=function(){return G(this).scheme+":"},O=function(){return G(this).username},B=function(){return G(this).password},te=function(){var W=G(this),se=W.host,pe=W.port;return se===null?"":pe===null?Re(se):Re(se)+":"+pe},ce=function(){var W=G(this).host;return W===null?"":Re(W)},me=function(){var W=G(this).port;return W===null?"":String(W)},ve=function(){var W=G(this),se=W.path;return W.cannotBeABaseURL?se[0]:se.length?"/"+se.join("/"):""},Le=function(){var W=G(this).query;return W?"?"+W:""},Oe=function(){return G(this).searchParams},Ce=function(){var W=G(this).fragment;return W?"#"+W:""},Ve=function(W,se){return{get:W,set:se,configurable:!0,enumerable:!0}};if(f&&g(ie,{href:Ve(oe,function(W){var se=G(this),pe=String(W),Te=ur(se,pe);if(Te)throw TypeError(Te);K(se.searchParams).updateSearchParams(se.query)}),origin:Ve(Q),protocol:Ve(re,function(W){var se=G(this);ur(se,String(W)+":",We)}),username:Ve(O,function(W){var se=G(this),pe=w(String(W));if(!ue(se)){se.username="";for(var Te=0;Te=ie.length?{done:!0}:{done:!1,value:ie[re++]}},e:function(ve){throw ve},f:O}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B=!0,te=!1,ce;return{s:function(){Q=ie[Symbol.iterator]()},n:function(){var ve=Q.next();return B=ve.done,ve},e:function(ve){te=!0,ce=ve},f:function(){try{!B&&Q.return!=null&&Q.return()}finally{if(te)throw ce}}}}function Ie(ie,oe){if(!!ie){if(typeof ie=="string")return Be(ie,oe);var Q=Object.prototype.toString.call(ie).slice(8,-1);if(Q==="Object"&&ie.constructor&&(Q=ie.constructor.name),Q==="Map"||Q==="Set")return Array.from(ie);if(Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q))return Be(ie,oe)}}function Be(ie,oe){(oe==null||oe>ie.length)&&(oe=ie.length);for(var Q=0,re=new Array(oe);Q1?O-1:0),te=1;te=ie.length?{done:!0}:{done:!1,value:ie[re++]}},e:function(ve){throw ve},f:O}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B=!0,te=!1,ce;return{s:function(){Q=ie[Symbol.iterator]()},n:function(){var ve=Q.next();return B=ve.done,ve},e:function(ve){te=!0,ce=ve},f:function(){try{!B&&Q.return!=null&&Q.return()}finally{if(te)throw ce}}}}function it(ie,oe){if(!!ie){if(typeof ie=="string")return Ne(ie,oe);var Q=Object.prototype.toString.call(ie).slice(8,-1);if(Q==="Object"&&ie.constructor&&(Q=ie.constructor.name),Q==="Map"||Q==="Set")return Array.from(ie);if(Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q))return Ne(ie,oe)}}function Ne(ie,oe){(oe==null||oe>ie.length)&&(oe=ie.length);for(var Q=0,re=new Array(oe);Q'),this.element.appendChild(oe));var B=oe.getElementsByTagName("span")[0];return B&&(B.textContent!=null?B.textContent=this.options.dictFallbackMessage:B.innerText!=null&&(B.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(oe,Q,re,O){var B={srcX:0,srcY:0,srcWidth:oe.width,srcHeight:oe.height},te=oe.width/oe.height;Q==null&&re==null?(Q=B.srcWidth,re=B.srcHeight):Q==null?Q=re*te:re==null&&(re=Q/te),Q=Math.min(Q,B.srcWidth),re=Math.min(re,B.srcHeight);var ce=Q/re;if(B.srcWidth>Q||B.srcHeight>re)if(O==="crop")te>ce?(B.srcHeight=oe.height,B.srcWidth=B.srcHeight*ce):(B.srcWidth=oe.width,B.srcHeight=B.srcWidth/ce);else if(O==="contain")te>ce?re=Q/te:Q=re*te;else throw new Error("Unknown resizeMethod '".concat(O,"'"));return B.srcX=(oe.width-B.srcWidth)/2,B.srcY=(oe.height-B.srcHeight)/2,B.trgWidth=Q,B.trgHeight=re,B},transformFile:function(oe,Q){return(this.options.resizeWidth||this.options.resizeHeight)&&oe.type.match(/image.*/)?this.resizeImage(oe,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,Q):Q(oe)},previewTemplate:de,drop:function(oe){return this.element.classList.remove("dz-drag-hover")},dragstart:function(oe){},dragend:function(oe){return this.element.classList.remove("dz-drag-hover")},dragenter:function(oe){return this.element.classList.add("dz-drag-hover")},dragover:function(oe){return this.element.classList.add("dz-drag-hover")},dragleave:function(oe){return this.element.classList.remove("dz-drag-hover")},paste:function(oe){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(oe){var Q=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){oe.previewElement=st.createElement(this.options.previewTemplate.trim()),oe.previewTemplate=oe.previewElement,this.previewsContainer.appendChild(oe.previewElement);var re=ue(oe.previewElement.querySelectorAll("[data-dz-name]"),!0),O;try{for(re.s();!(O=re.n()).done;){var B=O.value;B.textContent=oe.name}}catch(Ce){re.e(Ce)}finally{re.f()}var te=ue(oe.previewElement.querySelectorAll("[data-dz-size]"),!0),ce;try{for(te.s();!(ce=te.n()).done;)B=ce.value,B.innerHTML=this.filesize(oe.size)}catch(Ce){te.e(Ce)}finally{te.f()}this.options.addRemoveLinks&&(oe._removeLink=st.createElement(''.concat(this.options.dictRemoveFile,"")),oe.previewElement.appendChild(oe._removeLink));var me=function(Ve){return Ve.preventDefault(),Ve.stopPropagation(),oe.status===st.UPLOADING?st.confirm(Q.options.dictCancelUploadConfirmation,function(){return Q.removeFile(oe)}):Q.options.dictRemoveFileConfirmation?st.confirm(Q.options.dictRemoveFileConfirmation,function(){return Q.removeFile(oe)}):Q.removeFile(oe)},ve=ue(oe.previewElement.querySelectorAll("[data-dz-remove]"),!0),Le;try{for(ve.s();!(Le=ve.n()).done;){var Oe=Le.value;Oe.addEventListener("click",me)}}catch(Ce){ve.e(Ce)}finally{ve.f()}}},removedfile:function(oe){return oe.previewElement!=null&&oe.previewElement.parentNode!=null&&oe.previewElement.parentNode.removeChild(oe.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(oe,Q){if(oe.previewElement){oe.previewElement.classList.remove("dz-file-preview");var re=ue(oe.previewElement.querySelectorAll("[data-dz-thumbnail]"),!0),O;try{for(re.s();!(O=re.n()).done;){var B=O.value;B.alt=oe.name,B.src=Q}}catch(te){re.e(te)}finally{re.f()}return setTimeout(function(){return oe.previewElement.classList.add("dz-image-preview")},1)}},error:function(oe,Q){if(oe.previewElement){oe.previewElement.classList.add("dz-error"),typeof Q!="string"&&Q.error&&(Q=Q.error);var re=ue(oe.previewElement.querySelectorAll("[data-dz-errormessage]"),!0),O;try{for(re.s();!(O=re.n()).done;){var B=O.value;B.textContent=Q}}catch(te){re.e(te)}finally{re.f()}}},errormultiple:function(){},processing:function(oe){if(oe.previewElement&&(oe.previewElement.classList.add("dz-processing"),oe._removeLink))return oe._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(oe,Q,re){if(oe.previewElement){var O=ue(oe.previewElement.querySelectorAll("[data-dz-uploadprogress]"),!0),B;try{for(O.s();!(B=O.n()).done;){var te=B.value;te.nodeName==="PROGRESS"?te.value=Q:te.style.width="".concat(Q,"%")}}catch(ce){O.e(ce)}finally{O.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(oe){if(oe.previewElement)return oe.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(oe){return this.emit("error",oe,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(oe){if(oe._removeLink&&(oe._removeLink.innerHTML=this.options.dictRemoveFile),oe.previewElement)return oe.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},Xe=ot;function et(ie){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?et=function(Q){return typeof Q}:et=function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},et(ie)}function We(ie,oe){var Q;if(typeof Symbol=="undefined"||ie[Symbol.iterator]==null){if(Array.isArray(ie)||(Q=jt(ie))||oe&&ie&&typeof ie.length=="number"){Q&&(ie=Q);var re=0,O=function(){};return{s:O,n:function(){return re>=ie.length?{done:!0}:{done:!1,value:ie[re++]}},e:function(ve){throw ve},f:O}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B=!0,te=!1,ce;return{s:function(){Q=ie[Symbol.iterator]()},n:function(){var ve=Q.next();return B=ve.done,ve},e:function(ve){te=!0,ce=ve},f:function(){try{!B&&Q.return!=null&&Q.return()}finally{if(te)throw ce}}}}function jt(ie,oe){if(!!ie){if(typeof ie=="string")return Lt(ie,oe);var Q=Object.prototype.toString.call(ie).slice(8,-1);if(Q==="Object"&&ie.constructor&&(Q=ie.constructor.name),Q==="Map"||Q==="Set")return Array.from(ie);if(Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q))return Lt(ie,oe)}}function Lt(ie,oe){(oe==null||oe>ie.length)&&(oe=ie.length);for(var Q=0,re=new Array(oe);Q"))),this.clickableElements.length){var B=function Oe(){O.hiddenFileInput&&O.hiddenFileInput.parentNode.removeChild(O.hiddenFileInput),O.hiddenFileInput=document.createElement("input"),O.hiddenFileInput.setAttribute("type","file"),(O.options.maxFiles===null||O.options.maxFiles>1)&&O.hiddenFileInput.setAttribute("multiple","multiple"),O.hiddenFileInput.className="dz-hidden-input",O.options.acceptedFiles!==null&&O.hiddenFileInput.setAttribute("accept",O.options.acceptedFiles),O.options.capture!==null&&O.hiddenFileInput.setAttribute("capture",O.options.capture),O.hiddenFileInput.setAttribute("tabindex","-1"),O.hiddenFileInput.style.visibility="hidden",O.hiddenFileInput.style.position="absolute",O.hiddenFileInput.style.top="0",O.hiddenFileInput.style.left="0",O.hiddenFileInput.style.height="0",O.hiddenFileInput.style.width="0",Q.getElement(O.options.hiddenInputContainer,"hiddenInputContainer").appendChild(O.hiddenFileInput),O.hiddenFileInput.addEventListener("change",function(){var Ce=O.hiddenFileInput.files;if(Ce.length){var Ve=We(Ce,!0),St;try{for(Ve.s();!(St=Ve.n()).done;){var mt=St.value;O.addFile(mt)}}catch(W){Ve.e(W)}finally{Ve.f()}}O.emit("addedfiles",Ce),Oe()})};B()}this.URL=window.URL!==null?window.URL:window.webkitURL;var te=We(this.events,!0),ce;try{for(te.s();!(ce=te.n()).done;){var me=ce.value;this.on(me,this.options[me])}}catch(Oe){te.e(Oe)}finally{te.f()}this.on("uploadprogress",function(){return O.updateTotalUploadProgress()}),this.on("removedfile",function(){return O.updateTotalUploadProgress()}),this.on("canceled",function(Oe){return O.emit("complete",Oe)}),this.on("complete",function(Oe){if(O.getAddedFiles().length===0&&O.getUploadingFiles().length===0&&O.getQueuedFiles().length===0)return setTimeout(function(){return O.emit("queuecomplete")},0)});var ve=function(Ce){if(Ce.dataTransfer.types){for(var Ve=0;Ve")),te+='');var ce=Q.createElement(te);return this.element.tagName!=="FORM"?(B=Q.createElement('
')),B.appendChild(ce)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),B!=null?B:ce}},{key:"getExistingFallback",value:function(){for(var O=function(Le){var Oe=We(Le,!0),Ce;try{for(Oe.s();!(Ce=Oe.n()).done;){var Ve=Ce.value;if(/(^| )fallback($| )/.test(Ve.className))return Ve}}catch(St){Oe.e(St)}finally{Oe.f()}},B=0,te=["div","form"];B0){for(var ce=["tb","gb","mb","kb","b"],me=0;me=Le){B=O/Math.pow(this.options.filesizeBase,4-me),te=ve;break}}B=Math.round(10*B)/10}return"".concat(B," ").concat(this.options.dictFileSizeUnits[te])}},{key:"_updateMaxFilesReachedClass",value:function(){return this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(O){if(!!O.dataTransfer){this.emit("drop",O);for(var B=[],te=0;te0){var Ce=We(Oe,!0),Ve;try{for(Ce.s();!(Ve=Ce.n()).done;){var St=Ve.value;St.isFile?St.file(function(mt){if(!(te.options.ignoreHiddenFiles&&mt.name.substring(0,1)==="."))return mt.fullPath="".concat(B,"/").concat(mt.name),te.addFile(mt)}):St.isDirectory&&te._addFilesFromDirectory(St,"".concat(B,"/").concat(St.name))}}catch(mt){Ce.e(mt)}finally{Ce.f()}Le()}return null},me)};return ve()}},{key:"accept",value:function(O,B){this.options.maxFilesize&&O.size>this.options.maxFilesize*1024*1024?B(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(O.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):Q.isValidFile(O,this.options.acceptedFiles)?this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(B(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",O)):this.options.accept.call(this,O,B):B(this.options.dictInvalidFileType)}},{key:"addFile",value:function(O){var B=this;O.upload={uuid:Q.uuidv4(),progress:0,total:O.size,bytesSent:0,filename:this._renameFile(O)},this.files.push(O),O.status=Q.ADDED,this.emit("addedfile",O),this._enqueueThumbnail(O),this.accept(O,function(te){te?(O.accepted=!1,B._errorProcessing([O],te)):(O.accepted=!0,B.options.autoQueue&&B.enqueueFile(O)),B._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(O){var B=We(O,!0),te;try{for(B.s();!(te=B.n()).done;){var ce=te.value;this.enqueueFile(ce)}}catch(me){B.e(me)}finally{B.f()}return null}},{key:"enqueueFile",value:function(O){var B=this;if(O.status===Q.ADDED&&O.accepted===!0){if(O.status=Q.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return B.processQueue()},0)}else throw new Error("This file can't be queued because it has already been processed or was rejected.")}},{key:"_enqueueThumbnail",value:function(O){var B=this;if(this.options.createImageThumbnails&&O.type.match(/image.*/)&&O.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(O),setTimeout(function(){return B._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var O=this;if(!(this._processingThumbnail||this._thumbnailQueue.length===0)){this._processingThumbnail=!0;var B=this._thumbnailQueue.shift();return this.createThumbnail(B,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(te){return O.emit("thumbnail",B,te),O._processingThumbnail=!1,O._processThumbnailQueue()})}}},{key:"removeFile",value:function(O){if(O.status===Q.UPLOADING&&this.cancelUpload(O),this.files=Ht(this.files,O),this.emit("removedfile",O),this.files.length===0)return this.emit("reset")}},{key:"removeAllFiles",value:function(O){O==null&&(O=!1);var B=We(this.files.slice(),!0),te;try{for(B.s();!(te=B.n()).done;){var ce=te.value;(ce.status!==Q.UPLOADING||O)&&this.removeFile(ce)}}catch(me){B.e(me)}finally{B.f()}return null}},{key:"resizeImage",value:function(O,B,te,ce,me){var ve=this;return this.createThumbnail(O,B,te,ce,!0,function(Le,Oe){if(Oe==null)return me(O);var Ce=ve.options.resizeMimeType;Ce==null&&(Ce=O.type);var Ve=Oe.toDataURL(Ce,ve.options.resizeQuality);return(Ce==="image/jpeg"||Ce==="image/jpg")&&(Ve=jr.restore(O.dataURL,Ve)),me(Q.dataURItoBlob(Ve))})}},{key:"createThumbnail",value:function(O,B,te,ce,me,ve){var Le=this,Oe=new FileReader;Oe.onload=function(){if(O.dataURL=Oe.result,O.type==="image/svg+xml"){ve!=null&&ve(Oe.result);return}Le.createThumbnailFromUrl(O,B,te,ce,me,ve)},Oe.readAsDataURL(O)}},{key:"displayExistingFile",value:function(O,B,te,ce){var me=this,ve=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(this.emit("addedfile",O),this.emit("complete",O),!ve)this.emit("thumbnail",O,B),te&&te();else{var Le=function(Ce){me.emit("thumbnail",O,Ce),te&&te()};O.dataURL=B,this.createThumbnailFromUrl(O,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,Le,ce)}}},{key:"createThumbnailFromUrl",value:function(O,B,te,ce,me,ve,Le){var Oe=this,Ce=document.createElement("img");return Le&&(Ce.crossOrigin=Le),me=getComputedStyle(document.body).imageOrientation=="from-image"?!1:me,Ce.onload=function(){var Ve=function(mt){return mt(1)};return typeof EXIF!="undefined"&&EXIF!==null&&me&&(Ve=function(mt){return EXIF.getData(Ce,function(){return mt(EXIF.getTag(this,"Orientation"))})}),Ve(function(St){O.width=Ce.width,O.height=Ce.height;var mt=Oe.options.resize.call(Oe,O,B,te,ce),W=document.createElement("canvas"),se=W.getContext("2d");switch(W.width=mt.trgWidth,W.height=mt.trgHeight,St>4&&(W.width=mt.trgHeight,W.height=mt.trgWidth),St){case 2:se.translate(W.width,0),se.scale(-1,1);break;case 3:se.translate(W.width,W.height),se.rotate(Math.PI);break;case 4:se.translate(0,W.height),se.scale(1,-1);break;case 5:se.rotate(.5*Math.PI),se.scale(1,-1);break;case 6:se.rotate(.5*Math.PI),se.translate(0,-W.width);break;case 7:se.rotate(.5*Math.PI),se.translate(W.height,-W.width),se.scale(-1,1);break;case 8:se.rotate(-.5*Math.PI),se.translate(-W.height,0);break}pr(se,Ce,mt.srcX!=null?mt.srcX:0,mt.srcY!=null?mt.srcY:0,mt.srcWidth,mt.srcHeight,mt.trgX!=null?mt.trgX:0,mt.trgY!=null?mt.trgY:0,mt.trgWidth,mt.trgHeight);var pe=W.toDataURL("image/png");if(ve!=null)return ve(pe,W)})},ve!=null&&(Ce.onerror=ve),Ce.src=O.dataURL}},{key:"processQueue",value:function(){var O=this.options.parallelUploads,B=this.getUploadingFiles().length,te=B;if(!(B>=O)){var ce=this.getQueuedFiles();if(ce.length>0){if(this.options.uploadMultiple)return this.processFiles(ce.slice(0,O-B));for(;te1?B-1:0),ce=1;ceB.options.chunkSize),O[0].upload.totalChunkCount=Math.ceil(ce.size/B.options.chunkSize)}if(O[0].upload.chunked){var me=O[0],ve=te[0],Le=0;me.upload.chunks=[];var Oe=function(){for(var W=0;me.upload.chunks[W]!==void 0;)W++;if(!(W>=me.upload.totalChunkCount)){Le++;var se=W*B.options.chunkSize,pe=Math.min(se+B.options.chunkSize,ve.size),Te={name:B._getParamName(0),data:ve.webkitSlice?ve.webkitSlice(se,pe):ve.slice(se,pe),filename:me.upload.filename,chunkIndex:W};me.upload.chunks[W]={file:me,index:W,dataBlock:Te,status:Q.UPLOADING,progress:0,retries:0},B._uploadData(O,[Te])}};if(me.upload.finishedChunkUpload=function(mt,W){var se=!0;mt.status=Q.SUCCESS,mt.dataBlock=null,mt.xhr=null;for(var pe=0;pe1?B-1:0),ce=1;ce=te;ce?B++:B--)O[B]=oe.charCodeAt(B);return new Blob([re],{type:Q})};var Ht=function(oe,Q){return oe.filter(function(re){return re!==Q}).map(function(re){return re})},Ir=function(oe){return oe.replace(/[\-_](\w)/g,function(Q){return Q.charAt(1).toUpperCase()})};st.createElement=function(ie){var oe=document.createElement("div");return oe.innerHTML=ie,oe.childNodes[0]},st.elementInside=function(ie,oe){if(ie===oe)return!0;for(;ie=ie.parentNode;)if(ie===oe)return!0;return!1},st.getElement=function(ie,oe){var Q;if(typeof ie=="string"?Q=document.querySelector(ie):ie.nodeType!=null&&(Q=ie),Q==null)throw new Error("Invalid `".concat(oe,"` option provided. Please provide a CSS selector or a plain HTML element."));return Q},st.getElements=function(ie,oe){var Q,re;if(ie instanceof Array){re=[];try{var O=We(ie,!0),B;try{for(O.s();!(B=O.n()).done;)Q=B.value,re.push(this.getElement(Q,oe))}catch(me){O.e(me)}finally{O.f()}}catch{re=null}}else if(typeof ie=="string"){re=[];var te=We(document.querySelectorAll(ie),!0),ce;try{for(te.s();!(ce=te.n()).done;)Q=ce.value,re.push(Q)}catch(me){te.e(me)}finally{te.f()}}else ie.nodeType!=null&&(re=[ie]);if(re==null||!re.length)throw new Error("Invalid `".concat(oe,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return re},st.confirm=function(ie,oe,Q){if(window.confirm(ie))return oe();if(Q!=null)return Q()},st.isValidFile=function(ie,oe){if(!oe)return!0;oe=oe.split(",");var Q=ie.type,re=Q.replace(/\/.*$/,""),O=We(oe,!0),B;try{for(O.s();!(B=O.n()).done;){var te=B.value;if(te=te.trim(),te.charAt(0)==="."){if(ie.name.toLowerCase().indexOf(te.toLowerCase(),ie.name.length-te.length)!==-1)return!0}else if(/\/\*$/.test(te)){if(re===te.replace(/\/.*$/,""))return!0}else if(Q===te)return!0}}catch(ce){O.e(ce)}finally{O.f()}return!1},typeof jQuery!="undefined"&&jQuery!==null&&(jQuery.fn.dropzone=function(ie){return this.each(function(){return new st(this,ie)})}),st.ADDED="added",st.QUEUED="queued",st.ACCEPTED=st.QUEUED,st.UPLOADING="uploading",st.PROCESSING=st.UPLOADING,st.CANCELED="canceled",st.ERROR="error",st.SUCCESS="success";var hr=function(oe){var Q=oe.naturalWidth,re=oe.naturalHeight,O=document.createElement("canvas");O.width=1,O.height=re;var B=O.getContext("2d");B.drawImage(oe,0,0);for(var te=B.getImageData(1,0,1,re),ce=te.data,me=0,ve=re,Le=re;Le>me;){var Oe=ce[(Le-1)*4+3];Oe===0?ve=Le:me=Le,Le=ve+me>>1}var Ce=Le/re;return Ce===0?1:Ce},pr=function(oe,Q,re,O,B,te,ce,me,ve,Le){var Oe=hr(Q);return oe.drawImage(Q,re,O,B,te,ce,me,ve,Le/Oe)},jr=function(){function ie(){fr(this,ie)}return Mt(ie,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(Q){for(var re="",O=void 0,B=void 0,te="",ce=void 0,me=void 0,ve=void 0,Le="",Oe=0;O=Q[Oe++],B=Q[Oe++],te=Q[Oe++],ce=O>>2,me=(O&3)<<4|B>>4,ve=(B&15)<<2|te>>6,Le=te&63,isNaN(B)?ve=Le=64:isNaN(te)&&(Le=64),re=re+this.KEY_STR.charAt(ce)+this.KEY_STR.charAt(me)+this.KEY_STR.charAt(ve)+this.KEY_STR.charAt(Le),O=B=te="",ce=me=ve=Le="",OeQ.length)break}return O}},{key:"decode64",value:function(Q){var re="",O=void 0,B=void 0,te="",ce=void 0,me=void 0,ve=void 0,Le="",Oe=0,Ce=[],Ve=/[^A-Za-z0-9\+\/\=]/g;for(Ve.exec(Q)&&console.warn(`There were invalid base64 characters in the input text. Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '=' -Expect errors in decoding.`),Q=Q.replace(/[^A-Za-z0-9\+\/\=]/g,"");ce=this.KEY_STR.indexOf(Q.charAt(Oe++)),me=this.KEY_STR.indexOf(Q.charAt(Oe++)),ve=this.KEY_STR.indexOf(Q.charAt(Oe++)),Le=this.KEY_STR.indexOf(Q.charAt(Oe++)),M=ce<<2|me>>4,B=(me&15)<<4|ve>>2,te=(ve&3)<<6|Le,Ce.push(M),ve!==64&&Ce.push(B),Le!==64&&Ce.push(te),M=B=te="",ce=me=ve=Le="",Oe{S0.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` -`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var al=Me((HS,cp)=>{"use strict";cp.exports=up()});var Ea=Me((WS,fp)=>{fp.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/});var pp=Me((GS,hp)=>{"use strict";var dp={};function E0(i){var t,n,l=dp[i];if(l)return l;for(l=dp[i]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?l.push(n):l.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t=55296&&d<=57343){if(d>=55296&&d<=56319&&l+1=56320&&o<=57343)){f+=encodeURIComponent(i[l]+i[l+1]),l++;continue}f+="%EF%BF%BD";continue}f+=encodeURIComponent(i[l])}return f}Ca.defaultChars=";/?:@&=+$,-_.!~*'()#";Ca.componentChars="-_.!~*'()";hp.exports=Ca});var vp=Me((KS,gp)=>{"use strict";var mp={};function C0(i){var t,n,l=mp[i];if(l)return l;for(l=mp[i]=[],t=0;t<128;t++)n=String.fromCharCode(t),l.push(n);for(t=0;t=55296&&y<=57343?m+="\uFFFD\uFFFD\uFFFD":m+=String.fromCharCode(y),c+=6;continue}if((o&248)===240&&c+91114111?m+="\uFFFD\uFFFD\uFFFD\uFFFD":(y-=65536,m+=String.fromCharCode(55296+(y>>10),56320+(y&1023))),c+=9;continue}m+="\uFFFD"}return m})}Ta.defaultChars=";/?:@&=+$,#";Ta.componentChars="";gp.exports=Ta});var bp=Me((VS,yp)=>{"use strict";yp.exports=function(t){var n="";return n+=t.protocol||"",n+=t.slashes?"//":"",n+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?n+="["+t.hostname+"]":n+=t.hostname||"",n+=t.port?":"+t.port:"",n+=t.pathname||"",n+=t.search||"",n+=t.hash||"",n}});var Cp=Me((YS,Ep)=>{"use strict";function Aa(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var T0=/^([a-z0-9.+-]+:)/i,A0=/:[0-9]*$/,L0=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,D0=["<",">",'"',"`"," ","\r",` -`," "],I0=["{","}","|","\\","^","`"].concat(D0),F0=["'"].concat(I0),xp=["%","/","?",";","#"].concat(F0),wp=["/","?","#"],M0=255,kp=/^[+a-z0-9A-Z_-]{0,63}$/,O0=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_p={javascript:!0,"javascript:":!0},Sp={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function P0(i,t){if(i&&i instanceof Aa)return i;var n=new Aa;return n.parse(i,t),n}Aa.prototype.parse=function(i,t){var n,l,c,d,o,h=i;if(h=h.trim(),!t&&i.split("#").length===1){var f=L0.exec(h);if(f)return this.pathname=f[1],f[2]&&(this.search=f[2]),this}var p=T0.exec(h);if(p&&(p=p[0],c=p.toLowerCase(),this.protocol=p,h=h.substr(p.length)),(t||p||h.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=h.substr(0,2)==="//",o&&!(p&&_p[p])&&(h=h.substr(2),this.slashes=!0)),!_p[p]&&(o||p&&!Sp[p])){var y=-1;for(n=0;n127?I+="x":I+=w[S];if(!I.match(kp)){var O=E.slice(0,n),j=E.slice(n+1),U=w.match(O0);U&&(O.push(U[1]),j.unshift(U[2])),j.length&&(h=j.join(".")+h),this.hostname=O.join(".");break}}}}this.hostname.length>M0&&(this.hostname=""),k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var ee=h.indexOf("#");ee!==-1&&(this.hash=h.substr(ee),h=h.slice(0,ee));var V=h.indexOf("?");return V!==-1&&(this.search=h.substr(V),h=h.slice(0,V)),h&&(this.pathname=h),Sp[c]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Aa.prototype.parseHost=function(i){var t=A0.exec(i);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),i=i.substr(0,i.length-t.length)),i&&(this.hostname=i)};Ep.exports=P0});var sl=Me((XS,mo)=>{"use strict";mo.exports.encode=pp();mo.exports.decode=vp();mo.exports.format=bp();mo.exports.parse=Cp()});var ll=Me((ZS,Tp)=>{Tp.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/});var ul=Me((QS,Ap)=>{Ap.exports=/[\0-\x1F\x7F-\x9F]/});var Dp=Me((JS,Lp)=>{Lp.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/});var cl=Me((e1,Ip)=>{Ip.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/});var Fp=Me(xi=>{"use strict";xi.Any=ll();xi.Cc=ul();xi.Cf=Dp();xi.P=Ea();xi.Z=cl()});var Ft=Me(lr=>{"use strict";function R0(i){return Object.prototype.toString.call(i)}function z0(i){return R0(i)==="[object String]"}var N0=Object.prototype.hasOwnProperty;function Mp(i,t){return N0.call(i,t)}function B0(i){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(n){if(!!n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(l){i[l]=n[l]})}}),i}function q0(i,t,n){return[].concat(i.slice(0,t),n,i.slice(t+1))}function Op(i){return!(i>=55296&&i<=57343||i>=64976&&i<=65007||(i&65535)===65535||(i&65535)===65534||i>=0&&i<=8||i===11||i>=14&&i<=31||i>=127&&i<=159||i>1114111)}function Pp(i){if(i>65535){i-=65536;var t=55296+(i>>10),n=56320+(i&1023);return String.fromCharCode(t,n)}return String.fromCharCode(i)}var Rp=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,$0=/&([a-z#][a-z0-9]{1,31});/gi,U0=new RegExp(Rp.source+"|"+$0.source,"gi"),j0=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,zp=al();function H0(i,t){var n=0;return Mp(zp,t)?zp[t]:t.charCodeAt(0)===35&&j0.test(t)&&(n=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),Op(n))?Pp(n):i}function W0(i){return i.indexOf("\\")<0?i:i.replace(Rp,"$1")}function G0(i){return i.indexOf("\\")<0&&i.indexOf("&")<0?i:i.replace(U0,function(t,n,l){return n||H0(t,l)})}var K0=/[&<>"]/,V0=/[&<>"]/g,Y0={"&":"&","<":"<",">":">",'"':"""};function X0(i){return Y0[i]}function Z0(i){return K0.test(i)?i.replace(V0,X0):i}var Q0=/[.?*+^$[\]\\(){}|-]/g;function J0(i){return i.replace(Q0,"\\$&")}function ew(i){switch(i){case 9:case 32:return!0}return!1}function tw(i){if(i>=8192&&i<=8202)return!0;switch(i){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var rw=Ea();function nw(i){return rw.test(i)}function iw(i){switch(i){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function ow(i){return i=i.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(i=i.replace(/ẞ/g,"\xDF")),i.toLowerCase().toUpperCase()}lr.lib={};lr.lib.mdurl=sl();lr.lib.ucmicro=Fp();lr.assign=B0;lr.isString=z0;lr.has=Mp;lr.unescapeMd=W0;lr.unescapeAll=G0;lr.isValidEntityCode=Op;lr.fromCodePoint=Pp;lr.escapeHtml=Z0;lr.arrayReplaceAt=q0;lr.isSpace=ew;lr.isWhiteSpace=tw;lr.isMdAsciiPunct=iw;lr.isPunctChar=nw;lr.escapeRE=J0;lr.normalizeReference=ow});var Bp=Me((n1,Np)=>{"use strict";Np.exports=function(t,n,l){var c,d,o,h,f=-1,p=t.posMax,y=t.pos;for(t.pos=n+1,c=1;t.pos{"use strict";var qp=Ft().unescapeAll;$p.exports=function(t,n,l){var c,d,o=0,h=n,f={ok:!1,pos:0,lines:0,str:""};if(t.charCodeAt(n)===60){for(n++;n32))return f;if(c===41){if(d===0)break;d--}n++}return h===n||d!==0||(f.str=qp(t.slice(h,n)),f.lines=o,f.pos=n,f.ok=!0),f}});var Hp=Me((o1,jp)=>{"use strict";var aw=Ft().unescapeAll;jp.exports=function(t,n,l){var c,d,o=0,h=n,f={ok:!1,pos:0,lines:0,str:""};if(n>=l||(d=t.charCodeAt(n),d!==34&&d!==39&&d!==40))return f;for(n++,d===40&&(d=41);n{"use strict";La.parseLinkLabel=Bp();La.parseLinkDestination=Up();La.parseLinkTitle=Hp()});var Kp=Me((s1,Gp)=>{"use strict";var sw=Ft().assign,lw=Ft().unescapeAll,Un=Ft().escapeHtml,tn={};tn.code_inline=function(i,t,n,l,c){var d=i[t];return""+Un(i[t].content)+""};tn.code_block=function(i,t,n,l,c){var d=i[t];return""+Un(i[t].content)+` -`};tn.fence=function(i,t,n,l,c){var d=i[t],o=d.info?lw(d.info).trim():"",h="",f="",p,y,m,v,b;return o&&(m=o.split(/(\s+)/g),h=m[0],f=m.slice(2).join("")),n.highlight?p=n.highlight(d.content,h,f)||Un(d.content):p=Un(d.content),p.indexOf(""+p+` +Expect errors in decoding.`),Q=Q.replace(/[^A-Za-z0-9\+\/\=]/g,"");ce=this.KEY_STR.indexOf(Q.charAt(Oe++)),me=this.KEY_STR.indexOf(Q.charAt(Oe++)),ve=this.KEY_STR.indexOf(Q.charAt(Oe++)),Le=this.KEY_STR.indexOf(Q.charAt(Oe++)),O=ce<<2|me>>4,B=(me&15)<<4|ve>>2,te=(ve&3)<<6|Le,Ce.push(O),ve!==64&&Ce.push(B),Le!==64&&Ce.push(te),O=B=te="",ce=me=ve=Le="",Oe{k0.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var ol=Me(($S,lp)=>{"use strict";lp.exports=sp()});var Ea=Me((US,up)=>{up.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/});var dp=Me((HS,fp)=>{"use strict";var cp={};function _0(i){var t,n,l=cp[i];if(l)return l;for(l=cp[i]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?l.push(n):l.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t=55296&&d<=57343){if(d>=55296&&d<=56319&&l+1=56320&&a<=57343)){f+=encodeURIComponent(i[l]+i[l+1]),l++;continue}f+="%EF%BF%BD";continue}f+=encodeURIComponent(i[l])}return f}Ca.defaultChars=";/?:@&=+$,-_.!~*'()#";Ca.componentChars="-_.!~*'()";fp.exports=Ca});var mp=Me((WS,pp)=>{"use strict";var hp={};function S0(i){var t,n,l=hp[i];if(l)return l;for(l=hp[i]=[],t=0;t<128;t++)n=String.fromCharCode(t),l.push(n);for(t=0;t=55296&&y<=57343?g+="\uFFFD\uFFFD\uFFFD":g+=String.fromCharCode(y),c+=6;continue}if((a&248)==240&&c+91114111?g+="\uFFFD\uFFFD\uFFFD\uFFFD":(y-=65536,g+=String.fromCharCode(55296+(y>>10),56320+(y&1023))),c+=9;continue}g+="\uFFFD"}return g})}Ta.defaultChars=";/?:@&=+$,#";Ta.componentChars="";pp.exports=Ta});var vp=Me((GS,gp)=>{"use strict";gp.exports=function(t){var n="";return n+=t.protocol||"",n+=t.slashes?"//":"",n+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?n+="["+t.hostname+"]":n+=t.hostname||"",n+=t.port?":"+t.port:"",n+=t.pathname||"",n+=t.search||"",n+=t.hash||"",n}});var Sp=Me((KS,_p)=>{"use strict";function Aa(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var E0=/^([a-z0-9.+-]+:)/i,C0=/:[0-9]*$/,T0=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,A0=["<",">",'"',"`"," ","\r",` +`," "],L0=["{","}","|","\\","^","`"].concat(A0),D0=["'"].concat(L0),yp=["%","/","?",";","#"].concat(D0),bp=["/","?","#"],I0=255,xp=/^[+a-z0-9A-Z_-]{0,63}$/,F0=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,wp={javascript:!0,"javascript:":!0},kp={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function M0(i,t){if(i&&i instanceof Aa)return i;var n=new Aa;return n.parse(i,t),n}Aa.prototype.parse=function(i,t){var n,l,c,d,a,h=i;if(h=h.trim(),!t&&i.split("#").length===1){var f=T0.exec(h);if(f)return this.pathname=f[1],f[2]&&(this.search=f[2]),this}var p=E0.exec(h);if(p&&(p=p[0],c=p.toLowerCase(),this.protocol=p,h=h.substr(p.length)),(t||p||h.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=h.substr(0,2)==="//",a&&!(p&&wp[p])&&(h=h.substr(2),this.slashes=!0)),!wp[p]&&(a||p&&!kp[p])){var y=-1;for(n=0;n127?I+="x":I+=w[S];if(!I.match(xp)){var F=E.slice(0,n),H=E.slice(n+1),$=w.match(F0);$&&(F.push($[1]),H.unshift($[2])),H.length&&(h=H.join(".")+h),this.hostname=F.join(".");break}}}}this.hostname.length>I0&&(this.hostname=""),k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var J=h.indexOf("#");J!==-1&&(this.hash=h.substr(J),h=h.slice(0,J));var K=h.indexOf("?");return K!==-1&&(this.search=h.substr(K),h=h.slice(0,K)),h&&(this.pathname=h),kp[c]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Aa.prototype.parseHost=function(i){var t=C0.exec(i);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),i=i.substr(0,i.length-t.length)),i&&(this.hostname=i)};_p.exports=M0});var al=Me((VS,mo)=>{"use strict";mo.exports.encode=dp();mo.exports.decode=mp();mo.exports.format=vp();mo.exports.parse=Sp()});var sl=Me((YS,Ep)=>{Ep.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/});var ll=Me((XS,Cp)=>{Cp.exports=/[\0-\x1F\x7F-\x9F]/});var Ap=Me((ZS,Tp)=>{Tp.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/});var ul=Me((QS,Lp)=>{Lp.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/});var Dp=Me(xi=>{"use strict";xi.Any=sl();xi.Cc=ll();xi.Cf=Ap();xi.P=Ea();xi.Z=ul()});var Ft=Me(lr=>{"use strict";function O0(i){return Object.prototype.toString.call(i)}function P0(i){return O0(i)==="[object String]"}var R0=Object.prototype.hasOwnProperty;function Ip(i,t){return R0.call(i,t)}function z0(i){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(n){if(!!n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(l){i[l]=n[l]})}}),i}function N0(i,t,n){return[].concat(i.slice(0,t),n,i.slice(t+1))}function Fp(i){return!(i>=55296&&i<=57343||i>=64976&&i<=65007||(i&65535)==65535||(i&65535)==65534||i>=0&&i<=8||i===11||i>=14&&i<=31||i>=127&&i<=159||i>1114111)}function Mp(i){if(i>65535){i-=65536;var t=55296+(i>>10),n=56320+(i&1023);return String.fromCharCode(t,n)}return String.fromCharCode(i)}var Op=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,B0=/&([a-z#][a-z0-9]{1,31});/gi,q0=new RegExp(Op.source+"|"+B0.source,"gi"),j0=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,Pp=ol();function $0(i,t){var n=0;return Ip(Pp,t)?Pp[t]:t.charCodeAt(0)===35&&j0.test(t)&&(n=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),Fp(n))?Mp(n):i}function U0(i){return i.indexOf("\\")<0?i:i.replace(Op,"$1")}function H0(i){return i.indexOf("\\")<0&&i.indexOf("&")<0?i:i.replace(q0,function(t,n,l){return n||$0(t,l)})}var W0=/[&<>"]/,G0=/[&<>"]/g,K0={"&":"&","<":"<",">":">",'"':"""};function V0(i){return K0[i]}function Y0(i){return W0.test(i)?i.replace(G0,V0):i}var X0=/[.?*+^$[\]\\(){}|-]/g;function Z0(i){return i.replace(X0,"\\$&")}function Q0(i){switch(i){case 9:case 32:return!0}return!1}function J0(i){if(i>=8192&&i<=8202)return!0;switch(i){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var ew=Ea();function tw(i){return ew.test(i)}function rw(i){switch(i){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function nw(i){return i=i.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(i=i.replace(/ẞ/g,"\xDF")),i.toLowerCase().toUpperCase()}lr.lib={};lr.lib.mdurl=al();lr.lib.ucmicro=Dp();lr.assign=z0;lr.isString=P0;lr.has=Ip;lr.unescapeMd=U0;lr.unescapeAll=H0;lr.isValidEntityCode=Fp;lr.fromCodePoint=Mp;lr.escapeHtml=Y0;lr.arrayReplaceAt=N0;lr.isSpace=Q0;lr.isWhiteSpace=J0;lr.isMdAsciiPunct=rw;lr.isPunctChar=tw;lr.escapeRE=Z0;lr.normalizeReference=nw});var zp=Me((t1,Rp)=>{"use strict";Rp.exports=function(t,n,l){var c,d,a,h,f=-1,p=t.posMax,y=t.pos;for(t.pos=n+1,c=1;t.pos{"use strict";var Np=Ft().unescapeAll;Bp.exports=function(t,n,l){var c,d,a=0,h=n,f={ok:!1,pos:0,lines:0,str:""};if(t.charCodeAt(n)===60){for(n++;n32))return f;if(c===41){if(d===0)break;d--}n++}return h===n||d!==0||(f.str=Np(t.slice(h,n)),f.lines=a,f.pos=n,f.ok=!0),f}});var $p=Me((n1,jp)=>{"use strict";var iw=Ft().unescapeAll;jp.exports=function(t,n,l){var c,d,a=0,h=n,f={ok:!1,pos:0,lines:0,str:""};if(n>=l||(d=t.charCodeAt(n),d!==34&&d!==39&&d!==40))return f;for(n++,d===40&&(d=41);n{"use strict";La.parseLinkLabel=zp();La.parseLinkDestination=qp();La.parseLinkTitle=$p()});var Wp=Me((o1,Hp)=>{"use strict";var ow=Ft().assign,aw=Ft().unescapeAll,$n=Ft().escapeHtml,tn={};tn.code_inline=function(i,t,n,l,c){var d=i[t];return""+$n(i[t].content)+""};tn.code_block=function(i,t,n,l,c){var d=i[t];return""+$n(i[t].content)+` +`};tn.fence=function(i,t,n,l,c){var d=i[t],a=d.info?aw(d.info).trim():"",h="",f="",p,y,g,v,b;return a&&(g=a.split(/(\s+)/g),h=g[0],f=g.slice(2).join("")),n.highlight?p=n.highlight(d.content,h,f)||$n(d.content):p=$n(d.content),p.indexOf(""+p+` `):"
"+p+`
`};tn.image=function(i,t,n,l,c){var d=i[t];return d.attrs[d.attrIndex("alt")][1]=c.renderInlineAsText(d.children,n,l),c.renderToken(i,t,n)};tn.hardbreak=function(i,t,n){return n.xhtmlOut?`
`:`
`};tn.softbreak=function(i,t,n){return n.breaks?n.xhtmlOut?`
`:`
`:` -`};tn.text=function(i,t){return Un(i[t].content)};tn.html_block=function(i,t){return i[t].content};tn.html_inline=function(i,t){return i[t].content};function wi(){this.rules=sw({},tn)}wi.prototype.renderAttrs=function(t){var n,l,c;if(!t.attrs)return"";for(c="",n=0,l=t.attrs.length;n -`:">",d)};wi.prototype.renderInline=function(i,t,n){for(var l,c="",d=this.rules,o=0,h=i.length;o{"use strict";function Kr(){this.__rules__=[],this.__cache__=null}Kr.prototype.__find__=function(i){for(var t=0;t{"use strict";var uw=/\r\n?|\n/g,cw=/\0/g;Yp.exports=function(t){var n;n=t.src.replace(uw,` -`),n=n.replace(cw,"\uFFFD"),t.src=n}});var Qp=Me((c1,Zp)=>{"use strict";Zp.exports=function(t){var n;t.inlineMode?(n=new t.Token("inline","",0),n.content=t.src,n.map=[0,1],n.children=[],t.tokens.push(n)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}});var em=Me((f1,Jp)=>{"use strict";Jp.exports=function(t){var n=t.tokens,l,c,d;for(c=0,d=n.length;c{"use strict";var fw=Ft().arrayReplaceAt;function dw(i){return/^\s]/i.test(i)}function hw(i){return/^<\/a\s*>/i.test(i)}tm.exports=function(t){var n,l,c,d,o,h,f,p,y,m,v,b,k,E,w,I,S=t.tokens,N;if(!!t.md.options.linkify){for(l=0,c=S.length;l=0;n--){if(h=d[n],h.type==="link_close"){for(n--;d[n].level!==h.level&&d[n].type!=="link_open";)n--;continue}if(h.type==="html_inline"&&(dw(h.content)&&k>0&&k--,hw(h.content)&&k++),!(k>0)&&h.type==="text"&&t.md.linkify.test(h.content)){for(y=h.content,N=t.md.linkify.match(y),f=[],b=h.level,v=0,p=0;pv&&(o=new t.Token("text","",0),o.content=y.slice(v,m),o.level=b,f.push(o)),o=new t.Token("link_open","a",1),o.attrs=[["href",w]],o.level=b++,o.markup="linkify",o.info="auto",f.push(o),o=new t.Token("text","",0),o.content=I,o.level=b,f.push(o),o=new t.Token("link_close","a",-1),o.level=--b,o.markup="linkify",o.info="auto",f.push(o),v=N[p].lastIndex);v{"use strict";var nm=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,pw=/\((c|tm|r|p)\)/i,mw=/\((c|tm|r|p)\)/ig,gw={c:"\xA9",r:"\xAE",p:"\xA7",tm:"\u2122"};function vw(i,t){return gw[t.toLowerCase()]}function yw(i){var t,n,l=0;for(t=i.length-1;t>=0;t--)n=i[t],n.type==="text"&&!l&&(n.content=n.content.replace(mw,vw)),n.type==="link_open"&&n.info==="auto"&&l--,n.type==="link_close"&&n.info==="auto"&&l++}function bw(i){var t,n,l=0;for(t=i.length-1;t>=0;t--)n=i[t],n.type==="text"&&!l&&nm.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),n.type==="link_open"&&n.info==="auto"&&l--,n.type==="link_close"&&n.info==="auto"&&l++}im.exports=function(t){var n;if(!!t.md.options.typographer)for(n=t.tokens.length-1;n>=0;n--)t.tokens[n].type==="inline"&&(pw.test(t.tokens[n].content)&&yw(t.tokens[n].children),nm.test(t.tokens[n].content)&&bw(t.tokens[n].children))}});var dm=Me((p1,fm)=>{"use strict";var am=Ft().isWhiteSpace,sm=Ft().isPunctChar,lm=Ft().isMdAsciiPunct,xw=/['"]/,um=/['"]/g,cm="\u2019";function Ia(i,t,n){return i.substr(0,t)+n+i.substr(t+1)}function ww(i,t){var n,l,c,d,o,h,f,p,y,m,v,b,k,E,w,I,S,N,O,j,U;for(O=[],n=0;n=0&&!(O[S].level<=f);S--);if(O.length=S+1,l.type!=="text")continue;c=l.content,o=0,h=c.length;e:for(;o=0)y=c.charCodeAt(d.index-1);else for(S=n-1;S>=0&&!(i[S].type==="softbreak"||i[S].type==="hardbreak");S--)if(!!i[S].content){y=i[S].content.charCodeAt(i[S].content.length-1);break}if(m=32,o=48&&y<=57&&(I=w=!1),w&&I&&(w=v,I=b),!w&&!I){N&&(l.content=Ia(l.content,d.index,cm));continue}if(I){for(S=O.length-1;S>=0&&(p=O[S],!(O[S].level=0;n--)t.tokens[n].type!=="inline"||!xw.test(t.tokens[n].content)||ww(t.tokens[n].children,t)}});var Fa=Me((m1,hm)=>{"use strict";function ki(i,t,n){this.type=i,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}ki.prototype.attrIndex=function(t){var n,l,c;if(!this.attrs)return-1;for(n=this.attrs,l=0,c=n.length;l=0&&(l=this.attrs[n][1]),l};ki.prototype.attrJoin=function(t,n){var l=this.attrIndex(t);l<0?this.attrPush([t,n]):this.attrs[l][1]=this.attrs[l][1]+" "+n};hm.exports=ki});var gm=Me((g1,mm)=>{"use strict";var kw=Fa();function pm(i,t,n){this.src=i,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}pm.prototype.Token=kw;mm.exports=pm});var ym=Me((v1,vm)=>{"use strict";var _w=Da(),fl=[["normalize",Xp()],["block",Qp()],["inline",em()],["linkify",rm()],["replacements",om()],["smartquotes",dm()]];function dl(){this.ruler=new _w;for(var i=0;i{"use strict";var hl=Ft().isSpace;function pl(i,t){var n=i.bMarks[t]+i.tShift[t],l=i.eMarks[t];return i.src.substr(n,l-n)}function bm(i){var t=[],n=0,l=i.length,c,d=!1,o=0,h="";for(c=i.charCodeAt(n);nl||(y=n+1,t.sCount[y]=4||(h=t.bMarks[y]+t.tShift[y],h>=t.eMarks[y])||(j=t.src.charCodeAt(h++),j!==124&&j!==45&&j!==58)||h>=t.eMarks[y]||(U=t.src.charCodeAt(h++),U!==124&&U!==45&&U!==58&&!hl(U))||j===45&&hl(U))return!1;for(;h=4||(m=bm(o),m.length&&m[0]===""&&m.shift(),m.length&&m[m.length-1]===""&&m.pop(),v=m.length,v===0||v!==k.length))return!1;if(c)return!0;for(S=t.parentType,t.parentType="table",O=t.md.block.ruler.getRules("blockquote"),b=t.push("table_open","table",1),b.map=w=[n,0],b=t.push("thead_open","thead",1),b.map=[n,n+1],b=t.push("tr_open","tr",1),b.map=[n,n+1],f=0;f=4)break;for(m=bm(o),m.length&&m[0]===""&&m.shift(),m.length&&m[m.length-1]===""&&m.pop(),y===n+2&&(b=t.push("tbody_open","tbody",1),b.map=I=[n+2,0]),b=t.push("tr_open","tr",1),b.map=[y,y+1],f=0;f{"use strict";km.exports=function(t,n,l){var c,d,o;if(t.sCount[n]-t.blkIndent<4)return!1;for(d=c=n+1;c=4){c++,d=c;continue}break}return t.line=d,o=t.push("code_block","code",0),o.content=t.getLines(n,d,4+t.blkIndent,!1)+` -`,o.map=[n,t.line],!0}});var Em=Me((x1,Sm)=>{"use strict";Sm.exports=function(t,n,l,c){var d,o,h,f,p,y,m,v=!1,b=t.bMarks[n]+t.tShift[n],k=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||b+3>k||(d=t.src.charCodeAt(b),d!==126&&d!==96)||(p=b,b=t.skipChars(b,d),o=b-p,o<3)||(m=t.src.slice(p,b),h=t.src.slice(b,k),d===96&&h.indexOf(String.fromCharCode(d))>=0))return!1;if(c)return!0;for(f=n;f++,!(f>=l||(b=p=t.bMarks[f]+t.tShift[f],k=t.eMarks[f],b=4)&&(b=t.skipChars(b,d),!(b-p{"use strict";var Cm=Ft().isSpace;Tm.exports=function(t,n,l,c){var d,o,h,f,p,y,m,v,b,k,E,w,I,S,N,O,j,U,ee,V,W=t.lineMax,K=t.bMarks[n]+t.tShift[n],q=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||t.src.charCodeAt(K++)!==62)return!1;if(c)return!0;for(f=b=t.sCount[n]+1,t.src.charCodeAt(K)===32?(K++,f++,b++,d=!1,O=!0):t.src.charCodeAt(K)===9?(O=!0,(t.bsCount[n]+b)%4===3?(K++,f++,b++,d=!1):d=!0):O=!1,k=[t.bMarks[n]],t.bMarks[n]=K;K=q,S=[t.sCount[n]],t.sCount[n]=b-f,N=[t.tShift[n]],t.tShift[n]=K-t.bMarks[n],U=t.md.block.ruler.getRules("blockquote"),I=t.parentType,t.parentType="blockquote",v=n+1;v=q));v++){if(t.src.charCodeAt(K++)===62&&!V){for(f=b=t.sCount[v]+1,t.src.charCodeAt(K)===32?(K++,f++,b++,d=!1,O=!0):t.src.charCodeAt(K)===9?(O=!0,(t.bsCount[v]+b)%4===3?(K++,f++,b++,d=!1):d=!0):O=!1,k.push(t.bMarks[v]),t.bMarks[v]=K;K=q,E.push(t.bsCount[v]),t.bsCount[v]=t.sCount[v]+1+(O?1:0),S.push(t.sCount[v]),t.sCount[v]=b-f,N.push(t.tShift[v]),t.tShift[v]=K-t.bMarks[v];continue}if(y)break;for(j=!1,h=0,p=U.length;h",ee.map=m=[n,0],t.md.block.tokenize(t,n,v),ee=t.push("blockquote_close","blockquote",-1),ee.markup=">",t.lineMax=W,t.parentType=I,m[1]=t.line,h=0;h{"use strict";var Sw=Ft().isSpace;Lm.exports=function(t,n,l,c){var d,o,h,f,p=t.bMarks[n]+t.tShift[n],y=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||(d=t.src.charCodeAt(p++),d!==42&&d!==45&&d!==95))return!1;for(o=1;p{"use strict";var Im=Ft().isSpace;function Fm(i,t){var n,l,c,d;return l=i.bMarks[t]+i.tShift[t],c=i.eMarks[t],n=i.src.charCodeAt(l++),n!==42&&n!==45&&n!==43||l=d||(n=i.src.charCodeAt(c++),n<48||n>57))return-1;for(;;){if(c>=d)return-1;if(n=i.src.charCodeAt(c++),n>=48&&n<=57){if(c-l>=10)return-1;continue}if(n===41||n===46)break;return-1}return c=4||t.listIndent>=0&&t.sCount[n]-t.listIndent>=4&&t.sCount[n]=t.blkIndent&&(z=!0),(q=Mm(t,n))>=0){if(m=!0,T=t.bMarks[n]+t.tShift[n],I=Number(t.src.slice(T,q-1)),z&&I!==1)return!1}else if((q=Fm(t,n))>=0)m=!1;else return!1;if(z&&t.skipSpaces(q)>=t.eMarks[n])return!1;if(w=t.src.charCodeAt(q-1),c)return!0;for(E=t.tokens.length,m?(P=t.push("ordered_list_open","ol",1),I!==1&&(P.attrs=[["start",I]])):P=t.push("bullet_list_open","ul",1),P.map=k=[n,0],P.markup=String.fromCharCode(w),N=n,R=!1,Z=t.md.block.ruler.getRules("list"),U=t.parentType,t.parentType="list";N=S?p=1:p=O-y,p>4&&(p=1),f=y+p,P=t.push("list_item_open","li",1),P.markup=String.fromCharCode(w),P.map=v=[n,0],m&&(P.info=t.src.slice(T,q-1)),W=t.tight,V=t.tShift[n],ee=t.sCount[n],j=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=f,t.tight=!0,t.tShift[n]=o-t.bMarks[n],t.sCount[n]=O,o>=S&&t.isEmpty(n+1)?t.line=Math.min(t.line+2,l):t.md.block.tokenize(t,n,l,!0),(!t.tight||R)&&(ne=!1),R=t.line-n>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=j,t.tShift[n]=V,t.sCount[n]=ee,t.tight=W,P=t.push("list_item_close","li",-1),P.markup=String.fromCharCode(w),N=n=t.line,v[1]=N,o=t.bMarks[n],N>=l||t.sCount[N]=4)break;for(H=!1,h=0,b=Z.length;h{"use strict";var Cw=Ft().normalizeReference,Ma=Ft().isSpace;Rm.exports=function(t,n,l,c){var d,o,h,f,p,y,m,v,b,k,E,w,I,S,N,O,j=0,U=t.bMarks[n]+t.tShift[n],ee=t.eMarks[n],V=n+1;if(t.sCount[n]-t.blkIndent>=4||t.src.charCodeAt(U)!==91)return!1;for(;++U3)&&!(t.sCount[V]<0)){for(S=!1,y=0,m=N.length;y{"use strict";Nm.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var gl=Me((C1,ml)=>{"use strict";var Tw="[a-zA-Z_:][a-zA-Z0-9:._-]*",Aw="[^\"'=<>`\\x00-\\x20]+",Lw="'[^']*'",Dw='"[^"]*"',Iw="(?:"+Aw+"|"+Lw+"|"+Dw+")",Fw="(?:\\s+"+Tw+"(?:\\s*=\\s*"+Iw+")?)",qm="<[A-Za-z][A-Za-z0-9\\-]*"+Fw+"*\\s*\\/?>",$m="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Mw="|",Ow="<[?][\\s\\S]*?[?]>",Pw="]*>",Rw="",zw=new RegExp("^(?:"+qm+"|"+$m+"|"+Mw+"|"+Ow+"|"+Pw+"|"+Rw+")"),Nw=new RegExp("^(?:"+qm+"|"+$m+")");ml.exports.HTML_TAG_RE=zw;ml.exports.HTML_OPEN_CLOSE_TAG_RE=Nw});var jm=Me((T1,Um)=>{"use strict";var Bw=Bm(),qw=gl().HTML_OPEN_CLOSE_TAG_RE,_i=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(qw.source+"\\s*$"),/^$/,!1]];Um.exports=function(t,n,l,c){var d,o,h,f,p=t.bMarks[n]+t.tShift[n],y=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(p)!==60)return!1;for(f=t.src.slice(p,y),d=0;d<_i.length&&!_i[d][0].test(f);d++);if(d===_i.length)return!1;if(c)return _i[d][2];if(o=n+1,!_i[d][1].test(f)){for(;o{"use strict";var Hm=Ft().isSpace;Wm.exports=function(t,n,l,c){var d,o,h,f,p=t.bMarks[n]+t.tShift[n],y=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||(d=t.src.charCodeAt(p),d!==35||p>=y))return!1;for(o=1,d=t.src.charCodeAt(++p);d===35&&p6||pp&&Hm(t.src.charCodeAt(h-1))&&(y=h),t.line=n+1,f=t.push("heading_open","h"+String(o),1),f.markup="########".slice(0,o),f.map=[n,t.line],f=t.push("inline","",0),f.content=t.src.slice(p,y).trim(),f.map=[n,t.line],f.children=[],f=t.push("heading_close","h"+String(o),-1),f.markup="########".slice(0,o)),!0)}});var Vm=Me((L1,Km)=>{"use strict";Km.exports=function(t,n,l){var c,d,o,h,f,p,y,m,v,b=n+1,k,E=t.md.block.ruler.getRules("paragraph");if(t.sCount[n]-t.blkIndent>=4)return!1;for(k=t.parentType,t.parentType="paragraph";b3)){if(t.sCount[b]>=t.blkIndent&&(p=t.bMarks[b]+t.tShift[b],y=t.eMarks[b],p=y)))){m=v===61?1:2;break}if(!(t.sCount[b]<0)){for(d=!1,o=0,h=E.length;o{"use strict";Ym.exports=function(t,n){var l,c,d,o,h,f,p=n+1,y=t.md.block.ruler.getRules("paragraph"),m=t.lineMax;for(f=t.parentType,t.parentType="paragraph";p3)&&!(t.sCount[p]<0)){for(c=!1,d=0,o=y.length;d{"use strict";var Zm=Fa(),Oa=Ft().isSpace;function rn(i,t,n,l){var c,d,o,h,f,p,y,m;for(this.src=i,this.md=t,this.env=n,this.tokens=l,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",d=this.src,m=!1,o=h=p=y=0,f=d.length;h0&&this.level++,this.tokens.push(l),l};rn.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};rn.prototype.skipEmptyLines=function(t){for(var n=this.lineMax;tn;)if(!Oa(this.src.charCodeAt(--t)))return t+1;return t};rn.prototype.skipChars=function(t,n){for(var l=this.src.length;tl;)if(n!==this.src.charCodeAt(--t))return t+1;return t};rn.prototype.getLines=function(t,n,l,c){var d,o,h,f,p,y,m,v=t;if(t>=n)return"";for(y=new Array(n-t),d=0;vl?y[d]=new Array(o-l+1).join(" ")+this.src.slice(f,p):y[d]=this.src.slice(f,p)}return y.join("")};rn.prototype.Token=Zm;Qm.exports=rn});var tg=Me((F1,eg)=>{"use strict";var $w=Da(),Pa=[["table",wm(),["paragraph","reference"]],["code",_m()],["fence",Em(),["paragraph","reference","blockquote","list"]],["blockquote",Am(),["paragraph","reference","blockquote","list"]],["hr",Dm(),["paragraph","reference","blockquote","list"]],["list",Pm(),["paragraph","reference","blockquote"]],["reference",zm()],["html_block",jm(),["paragraph","reference","blockquote"]],["heading",Gm(),["paragraph","reference","blockquote"]],["lheading",Vm()],["paragraph",Xm()]];function Ra(){this.ruler=new $w;for(var i=0;i=n||i.sCount[h]=p){i.line=n;break}for(c=0;c{"use strict";function Uw(i){switch(i){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}rg.exports=function(t,n){for(var l=t.pos;l{"use strict";var jw=Ft().isSpace;ig.exports=function(t,n){var l,c,d,o=t.pos;if(t.src.charCodeAt(o)!==10)return!1;if(l=t.pending.length-1,c=t.posMax,!n)if(l>=0&&t.pending.charCodeAt(l)===32)if(l>=1&&t.pending.charCodeAt(l-1)===32){for(d=l-1;d>=1&&t.pending.charCodeAt(d-1)===32;)d--;t.pending=t.pending.slice(0,d),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(o++;o{"use strict";var Hw=Ft().isSpace,vl=[];for(yl=0;yl<256;yl++)vl.push(0);var yl;"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(i){vl[i.charCodeAt(0)]=1});ag.exports=function(t,n){var l,c=t.pos,d=t.posMax;if(t.src.charCodeAt(c)!==92)return!1;if(c++,c{"use strict";lg.exports=function(t,n){var l,c,d,o,h,f,p,y,m=t.pos,v=t.src.charCodeAt(m);if(v!==96)return!1;for(l=m,m++,c=t.posMax;m{"use strict";bl.exports.tokenize=function(t,n){var l,c,d,o,h,f=t.pos,p=t.src.charCodeAt(f);if(n||p!==126||(c=t.scanDelims(t.pos,!0),o=c.length,h=String.fromCharCode(p),o<2))return!1;for(o%2&&(d=t.push("text","",0),d.content=h,o--),l=0;l{"use strict";wl.exports.tokenize=function(t,n){var l,c,d,o=t.pos,h=t.src.charCodeAt(o);if(n||h!==95&&h!==42)return!1;for(c=t.scanDelims(t.pos,h===42),l=0;l=0;n--)l=t[n],!(l.marker!==95&&l.marker!==42)&&l.end!==-1&&(c=t[l.end],h=n>0&&t[n-1].end===l.end+1&&t[n-1].marker===l.marker&&t[n-1].token===l.token-1&&t[l.end+1].token===c.token+1,o=String.fromCharCode(l.marker),d=i.tokens[l.token],d.type=h?"strong_open":"em_open",d.tag=h?"strong":"em",d.nesting=1,d.markup=h?o+o:o,d.content="",d=i.tokens[c.token],d.type=h?"strong_close":"em_close",d.tag=h?"strong":"em",d.nesting=-1,d.markup=h?o+o:o,d.content="",h&&(i.tokens[t[n-1].token].content="",i.tokens[t[l.end+1].token].content="",n--))}wl.exports.postProcess=function(t){var n,l=t.tokens_meta,c=t.tokens_meta.length;for(fg(t,t.delimiters),n=0;n{"use strict";var Ww=Ft().normalizeReference,_l=Ft().isSpace;dg.exports=function(t,n){var l,c,d,o,h,f,p,y,m,v="",b="",k=t.pos,E=t.posMax,w=t.pos,I=!0;if(t.src.charCodeAt(t.pos)!==91||(h=t.pos+1,o=t.md.helpers.parseLinkLabel(t,t.pos,!0),o<0))return!1;if(f=o+1,f=E)return!1;if(w=f,p=t.md.helpers.parseLinkDestination(t.src,f,t.posMax),p.ok){for(v=t.md.normalizeLink(p.str),t.md.validateLink(v)?f=p.pos:v="",w=f;f=E||t.src.charCodeAt(f)!==41)&&(I=!0),f++}if(I){if(typeof t.env.references=="undefined")return!1;if(f=0?d=t.src.slice(w,f++):f=o+1):f=o+1,d||(d=t.src.slice(h,o)),y=t.env.references[Ww(d)],!y)return t.pos=k,!1;v=y.href,b=y.title}return n||(t.pos=h,t.posMax=o,m=t.push("link_open","a",1),m.attrs=l=[["href",v]],b&&l.push(["title",b]),t.md.inline.tokenize(t),m=t.push("link_close","a",-1)),t.pos=f,t.posMax=E,!0}});var mg=Me((q1,pg)=>{"use strict";var Gw=Ft().normalizeReference,Sl=Ft().isSpace;pg.exports=function(t,n){var l,c,d,o,h,f,p,y,m,v,b,k,E,w="",I=t.pos,S=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91||(f=t.pos+2,h=t.md.helpers.parseLinkLabel(t,t.pos+1,!1),h<0))return!1;if(p=h+1,p=S)return!1;for(E=p,m=t.md.helpers.parseLinkDestination(t.src,p,t.posMax),m.ok&&(w=t.md.normalizeLink(m.str),t.md.validateLink(w)?p=m.pos:w=""),E=p;p=S||t.src.charCodeAt(p)!==41)return t.pos=I,!1;p++}else{if(typeof t.env.references=="undefined")return!1;if(p=0?o=t.src.slice(E,p++):p=h+1):p=h+1,o||(o=t.src.slice(f,h)),y=t.env.references[Gw(o)],!y)return t.pos=I,!1;w=y.href,v=y.title}return n||(d=t.src.slice(f,h),t.md.inline.parse(d,t.md,t.env,k=[]),b=t.push("image","img",0),b.attrs=l=[["src",w],["alt",""]],b.children=k,b.content=d,v&&l.push(["title",v])),t.pos=p,t.posMax=S,!0}});var vg=Me(($1,gg)=>{"use strict";var Kw=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Vw=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;gg.exports=function(t,n){var l,c,d,o,h,f,p=t.pos;if(t.src.charCodeAt(p)!==60)return!1;for(h=t.pos,f=t.posMax;;){if(++p>=f||(o=t.src.charCodeAt(p),o===60))return!1;if(o===62)break}return l=t.src.slice(h+1,p),Vw.test(l)?(c=t.md.normalizeLink(l),t.md.validateLink(c)?(n||(d=t.push("link_open","a",1),d.attrs=[["href",c]],d.markup="autolink",d.info="auto",d=t.push("text","",0),d.content=t.md.normalizeLinkText(l),d=t.push("link_close","a",-1),d.markup="autolink",d.info="auto"),t.pos+=l.length+2,!0):!1):Kw.test(l)?(c=t.md.normalizeLink("mailto:"+l),t.md.validateLink(c)?(n||(d=t.push("link_open","a",1),d.attrs=[["href",c]],d.markup="autolink",d.info="auto",d=t.push("text","",0),d.content=t.md.normalizeLinkText(l),d=t.push("link_close","a",-1),d.markup="autolink",d.info="auto"),t.pos+=l.length+2,!0):!1):!1}});var bg=Me((U1,yg)=>{"use strict";var Yw=gl().HTML_TAG_RE;function Xw(i){var t=i|32;return t>=97&&t<=122}yg.exports=function(t,n){var l,c,d,o,h=t.pos;return!t.md.options.html||(d=t.posMax,t.src.charCodeAt(h)!==60||h+2>=d)||(l=t.src.charCodeAt(h+1),l!==33&&l!==63&&l!==47&&!Xw(l))||(c=t.src.slice(h).match(Yw),!c)?!1:(n||(o=t.push("html_inline","",0),o.content=t.src.slice(h,h+c[0].length)),t.pos+=c[0].length,!0)}});var _g=Me((j1,kg)=>{"use strict";var xg=al(),Zw=Ft().has,Qw=Ft().isValidEntityCode,wg=Ft().fromCodePoint,Jw=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,ek=/^&([a-z][a-z0-9]{1,31});/i;kg.exports=function(t,n){var l,c,d,o=t.pos,h=t.posMax;if(t.src.charCodeAt(o)!==38)return!1;if(o+1{"use strict";function Sg(i,t){var n,l,c,d,o,h,f,p,y={},m=t.length;if(!!m){var v=0,b=-2,k=[];for(n=0;no;l-=k[l]+1)if(d=t[l],d.marker===c.marker&&d.open&&d.end<0&&(f=!1,(d.close||c.open)&&(d.length+c.length)%3===0&&(d.length%3!==0||c.length%3!==0)&&(f=!0),!f)){p=l>0&&!t[l-1].open?k[l-1]+1:0,k[n]=n-l+p,k[l]=p,c.open=!1,d.end=n,d.close=!1,h=-1,b=-2;break}h!==-1&&(y[c.marker][(c.open?3:0)+(c.length||0)%3]=h)}}}Eg.exports=function(t){var n,l=t.tokens_meta,c=t.tokens_meta.length;for(Sg(t,t.delimiters),n=0;n{"use strict";Tg.exports=function(t){var n,l,c=0,d=t.tokens,o=t.tokens.length;for(n=l=0;n0&&c++,d[n].type==="text"&&n+1{"use strict";var El=Fa(),Lg=Ft().isWhiteSpace,Dg=Ft().isPunctChar,Ig=Ft().isMdAsciiPunct;function go(i,t,n,l){this.src=i,this.env=n,this.md=t,this.tokens=l,this.tokens_meta=Array(l.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}go.prototype.pushPending=function(){var i=new El("text","",0);return i.content=this.pending,i.level=this.pendingLevel,this.tokens.push(i),this.pending="",i};go.prototype.push=function(i,t,n){this.pending&&this.pushPending();var l=new El(i,t,n),c=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),l.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],c={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(l),this.tokens_meta.push(c),l};go.prototype.scanDelims=function(i,t){var n=i,l,c,d,o,h,f,p,y,m,v=!0,b=!0,k=this.posMax,E=this.src.charCodeAt(i);for(l=i>0?this.src.charCodeAt(i-1):32;n{"use strict";var Og=Da(),Cl=[["text",ng()],["newline",og()],["escape",sg()],["backticks",ug()],["strikethrough",xl().tokenize],["emphasis",kl().tokenize],["link",hg()],["image",mg()],["autolink",vg()],["html_inline",bg()],["entity",_g()]],Tl=[["balance_pairs",Cg()],["strikethrough",xl().postProcess],["emphasis",kl().postProcess],["text_collapse",Ag()]];function vo(){var i;for(this.ruler=new Og,i=0;i=d)break;continue}i.pending+=i.src[i.pos++]}i.pending&&i.pushPending()};vo.prototype.parse=function(i,t,n,l){var c,d,o,h=new this.State(i,t,n,l);for(this.tokenize(h),d=this.ruler2.getRules(""),o=d.length,c=0;c{"use strict";zg.exports=function(i){var t={};t.src_Any=ll().source,t.src_Cc=ul().source,t.src_Z=cl().source,t.src_P=Ea().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><\uFF5C]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(i&&i["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}});var Hg=Me((Y1,jg)=>{"use strict";function Al(i){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(n){!n||Object.keys(n).forEach(function(l){i[l]=n[l]})}),i}function za(i){return Object.prototype.toString.call(i)}function tk(i){return za(i)==="[object String]"}function rk(i){return za(i)==="[object Object]"}function nk(i){return za(i)==="[object RegExp]"}function Bg(i){return za(i)==="[object Function]"}function ik(i){return i.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var qg={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function ok(i){return Object.keys(i||{}).reduce(function(t,n){return t||qg.hasOwnProperty(n)},!1)}var ak={"http:":{validate:function(i,t,n){var l=i.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(l)?l.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(i,t,n){var l=i.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(l)?t>=3&&i[t-3]===":"||t>=3&&i[t-3]==="/"?0:l.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(i,t,n){var l=i.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(l)?l.match(n.re.mailto)[0].length:0}}},sk="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",lk="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function uk(i){i.__index__=-1,i.__text_cache__=""}function ck(i){return function(t,n){var l=t.slice(n);return i.test(l)?l.match(i)[0].length:0}}function $g(){return function(i,t){t.normalize(i)}}function Na(i){var t=i.re=Ng()(i.__opts__),n=i.__tlds__.slice();i.onCompile(),i.__tlds_replaced__||n.push(sk),n.push(t.src_xn),t.src_tlds=n.join("|");function l(h){return h.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(l(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(l(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(l(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(l(t.tpl_host_fuzzy_test),"i");var c=[];i.__compiled__={};function d(h,f){throw new Error('(LinkifyIt) Invalid schema "'+h+'": '+f)}Object.keys(i.__schemas__).forEach(function(h){var f=i.__schemas__[h];if(f!==null){var p={validate:null,link:null};if(i.__compiled__[h]=p,rk(f)){nk(f.validate)?p.validate=ck(f.validate):Bg(f.validate)?p.validate=f.validate:d(h,f),Bg(f.normalize)?p.normalize=f.normalize:f.normalize?d(h,f):p.normalize=$g();return}if(tk(f)){c.push(h);return}d(h,f)}}),c.forEach(function(h){!i.__compiled__[i.__schemas__[h]]||(i.__compiled__[h].validate=i.__compiled__[i.__schemas__[h]].validate,i.__compiled__[h].normalize=i.__compiled__[i.__schemas__[h]].normalize)}),i.__compiled__[""]={validate:null,normalize:$g()};var o=Object.keys(i.__compiled__).filter(function(h){return h.length>0&&i.__compiled__[h]}).map(ik).join("|");i.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+o+")","i"),i.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+o+")","ig"),i.re.pretest=RegExp("("+i.re.schema_test.source+")|("+i.re.host_fuzzy_test.source+")|@","i"),uk(i)}function fk(i,t){var n=i.__index__,l=i.__last_index__,c=i.__text_cache__.slice(n,l);this.schema=i.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=l+t,this.raw=c,this.text=c,this.url=c}function Ug(i,t){var n=new fk(i,t);return i.__compiled__[n.schema].normalize(n,i),n}function Br(i,t){if(!(this instanceof Br))return new Br(i,t);t||ok(i)&&(t=i,i={}),this.__opts__=Al({},qg,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Al({},ak,i),this.__compiled__={},this.__tlds__=lk,this.__tlds_replaced__=!1,this.re={},Na(this)}Br.prototype.add=function(t,n){return this.__schemas__[t]=n,Na(this),this};Br.prototype.set=function(t){return this.__opts__=Al(this.__opts__,t),this};Br.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var n,l,c,d,o,h,f,p,y;if(this.re.schema_test.test(t)){for(f=this.re.schema_search,f.lastIndex=0;(n=f.exec(t))!==null;)if(d=this.testSchemaAt(t,n[2],f.lastIndex),d){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+d;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(p=t.search(this.re.host_fuzzy_test),p>=0&&(this.__index__<0||p=0&&(c=t.match(this.re.email_fuzzy))!==null&&(o=c.index+c[1].length,h=c.index+c[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=h))),this.__index__>=0};Br.prototype.pretest=function(t){return this.re.pretest.test(t)};Br.prototype.testSchemaAt=function(t,n,l){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,l,this):0};Br.prototype.match=function(t){var n=0,l=[];this.__index__>=0&&this.__text_cache__===t&&(l.push(Ug(this,n)),n=this.__last_index__);for(var c=n?t.slice(n):t;this.test(c);)l.push(Ug(this,n)),c=c.slice(this.__last_index__),n+=this.__last_index__;return l.length?l:null};Br.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(l,c,d){return l!==d[c-1]}).reverse(),Na(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Na(this),this)};Br.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};Br.prototype.onCompile=function(){};jg.exports=Br});var ev={};Dx(ev,{decode:()=>Ml,default:()=>wk,encode:()=>Ol,toASCII:()=>Jg,toUnicode:()=>Qg,ucs2decode:()=>Fl,ucs2encode:()=>Yg});function jn(i){throw new RangeError(vk[i])}function yk(i,t){let n=[],l=i.length;for(;l--;)n[l]=t(i[l]);return n}function Vg(i,t){let n=i.split("@"),l="";n.length>1&&(l=n[0]+"@",i=n[1]),i=i.replace(gk,".");let c=i.split("."),d=yk(c,t).join(".");return l+d}function Fl(i){let t=[],n=0,l=i.length;for(;n=55296&&c<=56319&&n{"use strict";Si=2147483647,nn=36,Ll=1,yo=26,dk=38,hk=700,Wg=72,Gg=128,Kg="-",pk=/^xn--/,mk=/[^\0-\x7E]/,gk=/[\x2E\u3002\uFF0E\uFF61]/g,vk={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Dl=nn-Ll,on=Math.floor,Il=String.fromCharCode;Yg=i=>String.fromCodePoint(...i),bk=function(i){return i-48<10?i-22:i-65<26?i-65:i-97<26?i-97:nn},Xg=function(i,t){return i+22+75*(i<26)-((t!=0)<<5)},Zg=function(i,t,n){let l=0;for(i=n?on(i/hk):i>>1,i+=on(i/t);i>Dl*yo>>1;l+=nn)i=on(i/Dl);return on(l+(Dl+1)*i/(i+dk))},Ml=function(i){let t=[],n=i.length,l=0,c=Gg,d=Wg,o=i.lastIndexOf(Kg);o<0&&(o=0);for(let h=0;h=128&&jn("not-basic"),t.push(i.charCodeAt(h));for(let h=o>0?o+1:0;h=n&&jn("invalid-input");let v=bk(i.charCodeAt(h++));(v>=nn||v>on((Si-l)/y))&&jn("overflow"),l+=v*y;let b=m<=d?Ll:m>=d+yo?yo:m-d;if(von(Si/k)&&jn("overflow"),y*=k}let p=t.length+1;d=Zg(l-f,p,f==0),on(l/p)>Si-c&&jn("overflow"),c+=on(l/p),l%=p,t.splice(l++,0,c)}return String.fromCodePoint(...t)},Ol=function(i){let t=[];i=Fl(i);let n=i.length,l=Gg,c=0,d=Wg;for(let f of i)f<128&&t.push(Il(f));let o=t.length,h=o;for(o&&t.push(Kg);h=l&&yon((Si-c)/p)&&jn("overflow"),c+=(f-l)*p,l=f;for(let y of i)if(ySi&&jn("overflow"),y==l){let m=c;for(let v=nn;;v+=nn){let b=v<=d?Ll:v>=d+yo?yo:v-d;if(m{"use strict";rv.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}});var ov=Me((Z1,iv)=>{"use strict";iv.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}});var sv=Me((Q1,av)=>{"use strict";av.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}});var fv=Me((J1,cv)=>{"use strict";var bo=Ft(),kk=Wp(),_k=Kp(),Sk=ym(),Ek=tg(),Ck=Rg(),Tk=Hg(),Hn=sl(),lv=(tv(),Ix(ev)),Ak={default:nv(),zero:ov(),commonmark:sv()},Lk=/^(vbscript|javascript|file|data):/,Dk=/^data:image\/(gif|png|jpeg|webp);/;function Ik(i){var t=i.trim().toLowerCase();return Lk.test(t)?!!Dk.test(t):!0}var uv=["http:","https:","mailto:"];function Fk(i){var t=Hn.parse(i,!0);if(t.hostname&&(!t.protocol||uv.indexOf(t.protocol)>=0))try{t.hostname=lv.toASCII(t.hostname)}catch{}return Hn.encode(Hn.format(t))}function Mk(i){var t=Hn.parse(i,!0);if(t.hostname&&(!t.protocol||uv.indexOf(t.protocol)>=0))try{t.hostname=lv.toUnicode(t.hostname)}catch{}return Hn.decode(Hn.format(t),Hn.decode.defaultChars+"%")}function qr(i,t){if(!(this instanceof qr))return new qr(i,t);t||bo.isString(i)||(t=i||{},i="default"),this.inline=new Ck,this.block=new Ek,this.core=new Sk,this.renderer=new _k,this.linkify=new Tk,this.validateLink=Ik,this.normalizeLink=Fk,this.normalizeLinkText=Mk,this.utils=bo,this.helpers=bo.assign({},kk),this.options={},this.configure(i),t&&this.set(t)}qr.prototype.set=function(i){return bo.assign(this.options,i),this};qr.prototype.configure=function(i){var t=this,n;if(bo.isString(i)&&(n=i,i=Ak[n],!i))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!i)throw new Error("Wrong `markdown-it` preset, can't be empty");return i.options&&t.set(i.options),i.components&&Object.keys(i.components).forEach(function(l){i.components[l].rules&&t[l].ruler.enableOnly(i.components[l].rules),i.components[l].rules2&&t[l].ruler2.enableOnly(i.components[l].rules2)}),this};qr.prototype.enable=function(i,t){var n=[];Array.isArray(i)||(i=[i]),["core","block","inline"].forEach(function(c){n=n.concat(this[c].ruler.enable(i,!0))},this),n=n.concat(this.inline.ruler2.enable(i,!0));var l=i.filter(function(c){return n.indexOf(c)<0});if(l.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+l);return this};qr.prototype.disable=function(i,t){var n=[];Array.isArray(i)||(i=[i]),["core","block","inline"].forEach(function(c){n=n.concat(this[c].ruler.disable(i,!0))},this),n=n.concat(this.inline.ruler2.disable(i,!0));var l=i.filter(function(c){return n.indexOf(c)<0});if(l.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+l);return this};qr.prototype.use=function(i){var t=[this].concat(Array.prototype.slice.call(arguments,1));return i.apply(i,t),this};qr.prototype.parse=function(i,t){if(typeof i!="string")throw new Error("Input data should be a String");var n=new this.core.State(i,this,t);return this.core.process(n),n.tokens};qr.prototype.render=function(i,t){return t=t||{},this.renderer.render(this.parse(i,t),this.options,t)};qr.prototype.parseInline=function(i,t){var n=new this.core.State(i,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};qr.prototype.renderInline=function(i,t){return t=t||{},this.renderer.render(this.parseInline(i,t),this.options,t)};cv.exports=qr});var hv=Me((eE,dv)=>{"use strict";dv.exports=fv()});var yv=Me((tE,vv)=>{var Pl=!0,pv=!1,mv=!1;vv.exports=function(i,t){t&&(Pl=!t.enabled,pv=!!t.label,mv=!!t.labelAfter),i.core.ruler.after("inline","github-task-lists",function(n){for(var l=n.tokens,c=2;c=0;l--)if(i[l].level===n)return l;return-1}function Pk(i,t){return $k(i[t])&&Uk(i[t-1])&&jk(i[t-2])&&Hk(i[t])}function Rk(i,t){if(i.children.unshift(zk(i,t)),i.children[1].content=i.children[1].content.slice(3),i.content=i.content.slice(3),pv)if(mv){i.children.pop();var n="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);i.children[0].content=i.children[0].content.slice(0,-1)+' id="'+n+'">',i.children.push(qk(i.content,n,t))}else i.children.unshift(Nk(t)),i.children.push(Bk(t))}function zk(i,t){var n=new t("html_inline","",0),l=Pl?' disabled="" ':"";return i.content.indexOf("[ ] ")===0?n.content='':(i.content.indexOf("[x] ")===0||i.content.indexOf("[X] ")===0)&&(n.content=''),n}function Nk(i){var t=new i("html_inline","",0);return t.content="",t}function qk(i,t,n){var l=new n("html_inline","",0);return l.content='",l.attrs=[{for:t}],l}function $k(i){return i.type==="inline"}function Uk(i){return i.type==="paragraph_open"}function jk(i){return i.type==="list_item_open"}function Hk(i){return i.content.indexOf("[ ] ")===0||i.content.indexOf("[x] ")===0||i.content.indexOf("[X] ")===0}});var Ji={},Fx=[];function Zo(i,t){if(Fx.push({name:i,data:t}),typeof Ji[i]=="undefined")return this;let n=Ji[i];for(let l=0;lZo("success",i),error:i=>Zo("error",i),showValidationErrors:Px};async function Rx(i,t={}){return qc(i,{method:"GET",params:t})}async function zx(i,t=null){return Qo("POST",i,t)}async function Nx(i,t=null){return Qo("PUT",i,t)}async function Bx(i,t=null){return Qo("PATCH",i,t)}async function qx(i,t=null){return Qo("DELETE",i,t)}async function Qo(i,t,n=null){let l={method:i,body:n};return typeof n=="object"&&!(n instanceof FormData)&&(l.headers={"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},l.body=JSON.stringify(n)),n instanceof FormData&&i!=="post"&&(n.append("_method",i),l.method="post"),qc(t,l)}async function qc(i,t={}){if(i.startsWith("http")||(i=window.baseUrl(i)),t.params){let o=new URL(i);for(let h of Object.keys(t.params)){let f=t.params[h];typeof f!="undefined"&&f!==null&&o.searchParams.set(h,f)}i=o.toString()}let n=document.querySelector("meta[name=token]").getAttribute("content");t=Object.assign({},t,{credentials:"same-origin"}),t.headers=Object.assign({},t.headers||{},{baseURL:window.baseUrl(""),"X-CSRF-TOKEN":n});let l=await fetch(i,t),d={data:await $x(l),headers:l.headers,redirected:l.redirected,status:l.status,statusText:l.statusText,url:l.url,original:l};if(!l.ok)throw d;return d}async function $x(i){if(i.status===204)return null;let n=(i.headers.get("Content-Type")||"").split(";")[0].split("/").pop();return n==="javascript"||n==="json"?await i.json():await i.text()}var $c={get:Rx,post:zx,put:Nx,patch:Bx,delete:qx};var Uc=class{constructor(t){this.store=new Map,this.parseTranslations()}parseTranslations(){let t=document.querySelectorAll('meta[name="translation"]');for(let n of t){let l=n.getAttribute("key"),c=n.getAttribute("value");this.store.set(l,c)}}get(t,n){let l=this.getTransText(t);return this.performReplacements(l,n)}getPlural(t,n,l){let c=this.getTransText(t);return this.parsePlural(c,n,l)}parsePlural(t,n,l){let c=t.split("|"),d=/^{([0-9]+)}/,o=/^\[([0-9]+),([0-9*]+)]/,h=null;for(let f of c){let p=f.match(d);if(p!==null&&Number(p[1])===n){h=f.replace(d,"").trim();break}let y=f.match(o);if(y!==null&&Number(y[1])<=n&&(y[2]==="*"||Number(y[2])>=n)){h=f.replace(o,"").trim();break}}return h===null&&c.length>1&&(h=n===1?c[0]:c[1]),h===null&&(h=c[0]),this.performReplacements(h,l)}getTransText(t){let n=this.store.get(t);return n===void 0&&console.warn(`Translation with key "${t}" does not exist`),n}performReplacements(t,n){if(!n)return t;let l=t.match(/:([\S]+)/g);return l===null||l.forEach(c=>{let d=c.substring(1);typeof n[d]!="undefined"&&(t=t.replace(c,n[d]))}),t}},jc=Uc;function Jo(i,t){let n=document.querySelectorAll(i);for(let l of n)t(l)}function ea(i,t,n){for(let l of t)i.addEventListener(l,n)}function Rt(i,t){Array.isArray(i)||(i=[i]);for(let n of i)n.addEventListener("click",t),n.addEventListener("keydown",l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),t(l))})}function ta(i,t){Array.isArray(i)||(i=[i]);let n=l=>{l.key==="Enter"&&t(l)};i.forEach(l=>l.addEventListener("keypress",n))}function jt(i,t,n,l){i.addEventListener(n,function(c){let d=c.target.closest(t);d&&l.call(d,c,d)})}function Hc(i,t){let n=document.querySelectorAll(i);t=t.toLowerCase();for(let l of n)if(l.textContent.toLowerCase().includes(t))return l;return null}function eo(i){i.innerHTML='
'}function Wc(i){let t=i.querySelectorAll(".loading-container");for(let n of t)n.remove()}function to(i,t,n){let l;return function(){let c=this,d=arguments,o=function(){l=null,n||i.apply(c,d)},h=n&&!l;clearTimeout(l),l=setTimeout(o,t),h&&i.apply(c,d)}}function ro(i){if(!i)return;i.scrollIntoView({behavior:"smooth"});let t=document.getElementById("custom-styles").getAttribute("data-color-light"),n=window.getComputedStyle(i).getPropertyValue("background-color");i.style.backgroundColor=t,setTimeout(()=>{i.classList.add("selectFade"),i.style.backgroundColor=n},10),setTimeout(()=>{i.classList.remove("selectFade"),i.style.backgroundColor=""},3e3)}function Kc(i){return i.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function Vc(){let i=()=>((1+Math.random())*65536|0).toString(16).substring(1);return i()+i()+"-"+i()+"-"+i()+"-"+i()+"-"+i()+i()+i()}var Yc=class{setup(){this.modelRow=this.$refs.model,this.addButton=this.$refs.add,this.removeSelector=this.$opts.removeSelector,this.rowSelector=this.$opts.rowSelector,this.setupListeners()}setupListeners(){this.addButton.addEventListener("click",this.add.bind(this)),jt(this.$el,this.removeSelector,"click",t=>{t.target.closest(this.rowSelector).remove()})}add(){let t=this.modelRow.cloneNode(!0);t.classList.remove("hidden"),this.setClonedInputNames(t),this.modelRow.parentNode.insertBefore(t,this.modelRow),window.components.init(t)}setClonedInputNames(t){let n=Vc(),l=t.querySelectorAll('[name*="randrowid"]');for(let c of l)c.name=c.name.split("randrowid").join(n)}},Xc=Yc;var Zc=class{setup(){this.row=this.$el,this.url=this.$opts.url,this.deleteButtons=this.$manyRefs.delete,Rt(this.deleteButtons,this.runDelete.bind(this))}runDelete(){this.row.style.opacity="0.7",this.row.style.pointerEvents="none",window.$http.delete(this.url).then(t=>{typeof t.data=="object"&&t.data.message&&window.$events.emit("success",t.data.message),this.row.remove()}).catch(t=>{this.row.style.opacity=null,this.row.style.pointerEvents=null})}},Qc=Zc;var Jc=class{setup(){this.container=this.$el,this.responseContainer=this.container,this.url=this.$opts.url,this.method=this.$opts.method||"post",this.successMessage=this.$opts.successMessage,this.submitButtons=this.$manyRefs.submit||[],this.$opts.responseContainer&&(this.responseContainer=this.container.closest(this.$opts.responseContainer)),this.setupListeners()}setupListeners(){if(this.container.tagName==="FORM"){this.container.addEventListener("submit",this.submitRealForm.bind(this));return}ta(this.container,t=>{this.submitFakeForm(),t.preventDefault()}),this.submitButtons.forEach(t=>Rt(t,this.submitFakeForm.bind(this)))}submitFakeForm(){let t=new FormData,n=this.container.querySelectorAll("[name]");for(let l of n)t.append(l.getAttribute("name"),l.value);this.submit(t)}submitRealForm(t){t.preventDefault();let n=new FormData(this.container);this.submit(n)}async submit(t){this.responseContainer.style.opacity="0.7",this.responseContainer.style.pointerEvents="none";try{let n=await window.$http[this.method.toLowerCase()](this.url,t);this.$emit("success",{formData:t}),this.responseContainer.innerHTML=n.data,this.successMessage&&window.$events.emit("success",this.successMessage)}catch(n){this.responseContainer.innerHTML=n.data}window.components.init(this.responseContainer),this.responseContainer.style.opacity=null,this.responseContainer.style.pointerEvents=null}},ef=Jc;var tf=class{setup(){this.container=this.$el,this.pageId=this.$opts.pageId,this.editContainer=this.$refs.editContainer,this.listContainer=this.$refs.listContainer,this.mainTabs=this.$refs.mainTabs,this.list=this.$refs.list,this.setupListeners()}setupListeners(){let t=this.reloadList.bind(this);this.container.addEventListener("dropzone-success",t),this.container.addEventListener("ajax-form-success",t),this.container.addEventListener("sortable-list-sort",n=>{this.updateOrder(n.detail.ids)}),this.container.addEventListener("event-emit-select-edit",n=>{this.startEdit(n.detail.id)}),this.container.addEventListener("event-emit-select-edit-back",n=>{this.stopEdit()}),this.container.addEventListener("event-emit-select-insert",n=>{let l=n.target.closest("[data-drag-content]").getAttribute("data-drag-content"),c=JSON.parse(l);window.$events.emit("editor::insert",{html:c["text/html"],markdown:c["text/plain"]})})}reloadList(){this.stopEdit(),this.mainTabs.components.tabs.show("items"),window.$http.get(`/attachments/get/page/${this.pageId}`).then(t=>{this.list.innerHTML=t.data,window.components.init(this.list)})}updateOrder(t){window.$http.put(`/attachments/sort/page/${this.pageId}`,{order:t}).then(n=>{window.$events.emit("success",n.data.message)})}async startEdit(t){this.editContainer.classList.remove("hidden"),this.listContainer.classList.add("hidden"),eo(this.editContainer);let n=await window.$http.get(`/attachments/edit/${t}`);this.editContainer.innerHTML=n.data,window.components.init(this.editContainer)}stopEdit(){this.editContainer.classList.add("hidden"),this.listContainer.classList.remove("hidden")}},rf=tf;var nf=class{setup(){this.container=this.$el,this.setupListeners()}setupListeners(){let t=n=>n.key==="Control"||n.key==="Meta";window.addEventListener("keydown",n=>{t(n)&&this.addOpenQueryToLinks()},{passive:!0}),window.addEventListener("keyup",n=>{t(n)&&this.removeOpenQueryFromLinks()},{passive:!0})}addOpenQueryToLinks(){let t=this.container.querySelectorAll("a.attachment-file");for(let n of t)n.href.split("?")[1]!=="open=true"&&(n.href=n.href+"?open=true",n.setAttribute("target","_blank"))}removeOpenQueryFromLinks(){let t=this.container.querySelectorAll("a.attachment-file");for(let n of t)n.href=n.href.split("?")[0],n.removeAttribute("target")}},of=nf;var Ms={},af=class{setup(){this.parent=this.$el.parentElement,this.container=this.$el,this.type=this.$opts.type,this.url=this.$opts.url,this.input=this.$refs.input,this.list=this.$refs.list,this.lastPopulated=0,this.setupListeners()}setupListeners(){this.input.addEventListener("input",this.requestSuggestions.bind(this)),this.input.addEventListener("focus",this.requestSuggestions.bind(this)),this.input.addEventListener("keydown",t=>{t.key==="Tab"&&this.hideSuggestions()}),this.input.addEventListener("blur",this.hideSuggestionsIfFocusedLost.bind(this)),this.container.addEventListener("keydown",this.containerKeyDown.bind(this)),jt(this.list,"button","click",(t,n)=>{this.selectSuggestion(n.textContent)}),jt(this.list,"button","keydown",(t,n)=>{t.key==="Enter"&&this.selectSuggestion(n.textContent)})}selectSuggestion(t){this.input.value=t,this.lastPopulated=Date.now(),this.input.focus(),this.input.dispatchEvent(new Event("input",{bubbles:!0})),this.input.dispatchEvent(new Event("change",{bubbles:!0})),this.hideSuggestions()}containerKeyDown(t){t.key==="Enter"&&t.preventDefault(),!this.list.classList.contains("hidden")&&(t.key==="ArrowDown"?(this.moveFocus(!0),t.preventDefault()):t.key==="ArrowUp"?(this.moveFocus(!1),t.preventDefault()):t.key==="Escape"&&(this.hideSuggestions(),t.preventDefault()))}moveFocus(t=!0){let n=Array.from(this.container.querySelectorAll("input,button")),l=n.indexOf(document.activeElement),c=n[l+(t?1:-1)];c&&c.focus()}async requestSuggestions(){if(Date.now()-this.lastPopulated<50)return;let t=this.getNameFilterIfNeeded(),n=this.input.value.slice(0,3).toLowerCase(),l=await this.loadSuggestions(n,t),c=l.slice(0,6);n.length>0&&(c=l.filter(d=>d.toLowerCase().includes(n)).slice(0,6)),this.displaySuggestions(c)}getNameFilterIfNeeded(){return this.type!=="value"?null:this.parent.querySelector("input").value}async loadSuggestions(t,n=null){let l={search:t,name:n},c=`${this.url}:${JSON.stringify(l)}`;if(Ms[c])return Ms[c];let d=await window.$http.get(this.url,l);return Ms[c]=d.data,d.data}displaySuggestions(t){if(t.length===0)return this.hideSuggestions();this.list.innerHTML=t.map(n=>`
  • `).join(""),this.list.style.display="block";for(let n of this.list.querySelectorAll("button"))n.addEventListener("blur",this.hideSuggestionsIfFocusedLost.bind(this))}hideSuggestions(){this.list.style.display="none"}hideSuggestionsIfFocusedLost(t){this.container.contains(t.relatedTarget)||this.hideSuggestions()}},sf=af;var lf=class{constructor(t){if(this.elem=t,this.targetElem=document.getElementById("header"),this.showing=!1,this.breakPoint=1200,document.body.classList.contains("flexbox")){this.elem.style.display="none";return}this.elem.addEventListener("click",this.scrollToTop.bind(this)),window.addEventListener("scroll",this.onPageScroll.bind(this))}onPageScroll(){let t=document.documentElement.scrollTop||document.body.scrollTop||0;!this.showing&&t>this.breakPoint?(this.elem.style.display="block",this.showing=!0,setTimeout(()=>{this.elem.style.opacity=.4},1)):this.showing&&t{this.elem.style.display="none"},500))}scrollToTop(){let t=this.targetElem.getBoundingClientRect().top,n=document.documentElement.scrollTop?document.documentElement:document.body,l=300,c=Date.now(),d=this.targetElem.getBoundingClientRect().top;function o(){let h=1-(Date.now()-c)/l,f=Math.abs(h*d);h>0?(n.scrollTop=f,requestAnimationFrame(o.bind(this))):n.scrollTop=t}requestAnimationFrame(o.bind(this))}},uf=lf;function cf(i,t){var n=Object.keys(i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);t&&(l=l.filter(function(c){return Object.getOwnPropertyDescriptor(i,c).enumerable})),n.push.apply(n,l)}return n}function Qr(i){for(var t=1;t=0)&&(n[c]=i[c]);return n}function Hx(i,t){if(i==null)return{};var n=jx(i,t),l,c;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(i);for(c=0;c=0)&&(!Object.prototype.propertyIsEnumerable.call(i,l)||(n[l]=i[l]))}return n}var Wx="1.14.0";function hn(i){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(i)}var pn=hn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),no=hn(/Edge/i),ff=hn(/firefox/i),io=hn(/safari/i)&&!hn(/chrome/i)&&!hn(/android/i),df=hn(/iP(ad|od|hone)/i),Gx=hn(/chrome/i)&&hn(/android/i),hf={capture:!1,passive:!1};function It(i,t,n){i.addEventListener(t,n,!pn&&hf)}function Ct(i,t,n){i.removeEventListener(t,n,!pn&&hf)}function na(i,t){if(!!t){if(t[0]===">"&&(t=t.substring(1)),i)try{if(i.matches)return i.matches(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t)}catch{return!1}return!1}}function Kx(i){return i.host&&i!==document&&i.host.nodeType?i.host:i.parentNode}function Jr(i,t,n,l){if(i){n=n||document;do{if(t!=null&&(t[0]===">"?i.parentNode===n&&na(i,t):na(i,t))||l&&i===n)return i;if(i===n)break}while(i=Kx(i))}return null}var pf=/\s+/g;function Or(i,t,n){if(i&&t)if(i.classList)i.classList[n?"add":"remove"](t);else{var l=(" "+i.className+" ").replace(pf," ").replace(" "+t+" "," ");i.className=(l+(n?" "+t:"")).replace(pf," ")}}function dt(i,t,n){var l=i&&i.style;if(l){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(i,""):i.currentStyle&&(n=i.currentStyle),t===void 0?n:n[t];!(t in l)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),l[t]=n+(typeof n=="string"?"":"px")}}function fi(i,t){var n="";if(typeof i=="string")n=i;else do{var l=dt(i,"transform");l&&l!=="none"&&(n=l+" "+n)}while(!t&&(i=i.parentNode));var c=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return c&&new c(n)}function mf(i,t,n){if(i){var l=i.getElementsByTagName(t),c=0,d=l.length;if(n)for(;c=d:o=c<=d,!o)return l;if(l===en())break;l=En(l,!1)}return!1}function di(i,t,n,l){for(var c=0,d=0,o=i.children;d2&&arguments[2]!==void 0?arguments[2]:{},c=l.evt,d=Hx(l,t0);ao.pluginEvent.bind(ht)(t,n,Qr({dragEl:Ge,parentEl:Gt,ghostEl:yt,rootEl:qt,nextEl:Nn,lastDownEl:ia,cloneEl:Kt,cloneHidden:Cn,dragStarted:lo,putSortable:vr,activeSortable:ht.active,originalEvent:c,oldIndex:pi,oldDraggableIndex:so,newIndex:Rr,newDraggableIndex:Tn,hideGhostForTarget:Tf,unhideGhostForTarget:Af,cloneNowHidden:function(){Cn=!0},cloneNowShown:function(){Cn=!1},dispatchSortableEvent:function(h){Tr({sortable:n,name:h,originalEvent:c})}},d))};function Tr(i){e0(Qr({putSortable:vr,cloneEl:Kt,targetEl:Ge,rootEl:qt,oldIndex:pi,oldDraggableIndex:so,newIndex:Rr,newDraggableIndex:Tn},i))}var Ge,Gt,yt,qt,Nn,ia,Kt,Cn,pi,Rr,so,Tn,oa,vr,mi=!1,aa=!1,sa=[],Bn,Gr,zs,Ns,wf,kf,lo,gi,uo,co=!1,la=!1,ua,wr,Bs=[],qs=!1,ca=[],fa=typeof document!="undefined",da=df,_f=no||pn?"cssFloat":"float",r0=fa&&!Gx&&!df&&"draggable"in document.createElement("div"),Sf=function(){if(!!fa){if(pn)return!1;var i=document.createElement("x");return i.style.cssText="pointer-events:auto",i.style.pointerEvents==="auto"}}(),Ef=function(t,n){var l=dt(t),c=parseInt(l.width)-parseInt(l.paddingLeft)-parseInt(l.paddingRight)-parseInt(l.borderLeftWidth)-parseInt(l.borderRightWidth),d=di(t,0,n),o=di(t,1,n),h=d&&dt(d),f=o&&dt(o),p=h&&parseInt(h.marginLeft)+parseInt(h.marginRight)+ar(d).width,y=f&&parseInt(f.marginLeft)+parseInt(f.marginRight)+ar(o).width;if(l.display==="flex")return l.flexDirection==="column"||l.flexDirection==="column-reverse"?"vertical":"horizontal";if(l.display==="grid")return l.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(d&&h.float&&h.float!=="none"){var m=h.float==="left"?"left":"right";return o&&(f.clear==="both"||f.clear===m)?"vertical":"horizontal"}return d&&(h.display==="block"||h.display==="flex"||h.display==="table"||h.display==="grid"||p>=c&&l[_f]==="none"||o&&l[_f]==="none"&&p+y>c)?"vertical":"horizontal"},n0=function(t,n,l){var c=l?t.left:t.top,d=l?t.right:t.bottom,o=l?t.width:t.height,h=l?n.left:n.top,f=l?n.right:n.bottom,p=l?n.width:n.height;return c===h||d===f||c+o/2===h+p/2},i0=function(t,n){var l;return sa.some(function(c){var d=c[Pr].options.emptyInsertThreshold;if(!(!d||Os(c))){var o=ar(c),h=t>=o.left-d&&t<=o.right+d,f=n>=o.top-d&&n<=o.bottom+d;if(h&&f)return l=c}}),l},Cf=function(t){function n(d,o){return function(h,f,p,y){var m=h.options.group.name&&f.options.group.name&&h.options.group.name===f.options.group.name;if(d==null&&(o||m))return!0;if(d==null||d===!1)return!1;if(o&&d==="clone")return d;if(typeof d=="function")return n(d(h,f,p,y),o)(h,f,p,y);var v=(o?h:f).options.group.name;return d===!0||typeof d=="string"&&d===v||d.join&&d.indexOf(v)>-1}}var l={},c=t.group;(!c||ra(c)!="object")&&(c={name:c}),l.name=c.name,l.checkPull=n(c.pull,!0),l.checkPut=n(c.put),l.revertClone=c.revertClone,t.group=l},Tf=function(){!Sf&&yt&&dt(yt,"display","none")},Af=function(){!Sf&&yt&&dt(yt,"display","")};fa&&document.addEventListener("click",function(i){if(aa)return i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.stopImmediatePropagation&&i.stopImmediatePropagation(),aa=!1,!1},!0);var qn=function(t){if(Ge){t=t.touches?t.touches[0]:t;var n=i0(t.clientX,t.clientY);if(n){var l={};for(var c in t)t.hasOwnProperty(c)&&(l[c]=t[c]);l.target=l.rootEl=n,l.preventDefault=void 0,l.stopPropagation=void 0,n[Pr]._onDragOver(l)}}},o0=function(t){Ge&&Ge.parentNode[Pr]._isOutsideThisEl(t.target)};function ht(i,t){if(!(i&&i.nodeType&&i.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));this.el=i,this.options=t=dn({},t),i[Pr]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(i.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ef(i,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,h){o.setData("Text",h.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:ht.supportPointer!==!1&&"PointerEvent"in window&&!io,emptyInsertThreshold:5};ao.initializePlugins(this,i,n);for(var l in n)!(l in t)&&(t[l]=n[l]);Cf(t);for(var c in this)c.charAt(0)==="_"&&typeof this[c]=="function"&&(this[c]=this[c].bind(this));this.nativeDraggable=t.forceFallback?!1:r0,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?It(i,"pointerdown",this._onTapStart):(It(i,"mousedown",this._onTapStart),It(i,"touchstart",this._onTapStart)),this.nativeDraggable&&(It(i,"dragover",this),It(i,"dragenter",this)),sa.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),dn(this,Zx())}ht.prototype={constructor:ht,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(gi=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,Ge):this.options.direction},_onTapStart:function(t){if(!!t.cancelable){var n=this,l=this.el,c=this.options,d=c.preventOnFilter,o=t.type,h=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,f=(h||t).target,p=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||f,y=c.filter;if(h0(l),!Ge&&!(/mousedown|pointerdown/.test(o)&&t.button!==0||c.disabled)&&!p.isContentEditable&&!(!this.nativeDraggable&&io&&f&&f.tagName.toUpperCase()==="SELECT")&&(f=Jr(f,c.draggable,l,!1),!(f&&f.animated)&&ia!==f)){if(pi=Nr(f),so=Nr(f,c.draggable),typeof y=="function"){if(y.call(this,t,f,this)){Tr({sortable:n,rootEl:p,name:"filter",targetEl:f,toEl:l,fromEl:l}),Dr("filter",n,{evt:t}),d&&t.cancelable&&t.preventDefault();return}}else if(y&&(y=y.split(",").some(function(m){if(m=Jr(p,m.trim(),l,!1),m)return Tr({sortable:n,rootEl:m,name:"filter",targetEl:f,fromEl:l,toEl:l}),Dr("filter",n,{evt:t}),!0}),y)){d&&t.cancelable&&t.preventDefault();return}c.handle&&!Jr(p,c.handle,l,!1)||this._prepareDragStart(t,h,f)}}},_prepareDragStart:function(t,n,l){var c=this,d=c.el,o=c.options,h=d.ownerDocument,f;if(l&&!Ge&&l.parentNode===d){var p=ar(l);if(qt=d,Ge=l,Gt=Ge.parentNode,Nn=Ge.nextSibling,ia=l,oa=o.group,ht.dragged=Ge,Bn={target:Ge,clientX:(n||t).clientX,clientY:(n||t).clientY},wf=Bn.clientX-p.left,kf=Bn.clientY-p.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,Ge.style["will-change"]="all",f=function(){if(Dr("delayEnded",c,{evt:t}),ht.eventCanceled){c._onDrop();return}c._disableDelayedDragEvents(),!ff&&c.nativeDraggable&&(Ge.draggable=!0),c._triggerDragStart(t,n),Tr({sortable:c,name:"choose",originalEvent:t}),Or(Ge,o.chosenClass,!0)},o.ignore.split(",").forEach(function(y){mf(Ge,y.trim(),$s)}),It(h,"dragover",qn),It(h,"mousemove",qn),It(h,"touchmove",qn),It(h,"mouseup",c._onDrop),It(h,"touchend",c._onDrop),It(h,"touchcancel",c._onDrop),ff&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ge.draggable=!0),Dr("delayStart",this,{evt:t}),o.delay&&(!o.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(no||pn))){if(ht.eventCanceled){this._onDrop();return}It(h,"mouseup",c._disableDelayedDrag),It(h,"touchend",c._disableDelayedDrag),It(h,"touchcancel",c._disableDelayedDrag),It(h,"mousemove",c._delayedDragTouchMoveHandler),It(h,"touchmove",c._delayedDragTouchMoveHandler),o.supportPointer&&It(h,"pointermove",c._delayedDragTouchMoveHandler),c._dragStartTimer=setTimeout(f,o.delay)}else f()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Ge&&$s(Ge),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;Ct(t,"mouseup",this._disableDelayedDrag),Ct(t,"touchend",this._disableDelayedDrag),Ct(t,"touchcancel",this._disableDelayedDrag),Ct(t,"mousemove",this._delayedDragTouchMoveHandler),Ct(t,"touchmove",this._delayedDragTouchMoveHandler),Ct(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?It(document,"pointermove",this._onTouchMove):n?It(document,"touchmove",this._onTouchMove):It(document,"mousemove",this._onTouchMove):(It(Ge,"dragend",this),It(qt,"dragstart",this._onDragStart));try{document.selection?pa(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(mi=!1,qt&&Ge){Dr("dragStarted",this,{evt:n}),this.nativeDraggable&&It(document,"dragover",o0);var l=this.options;!t&&Or(Ge,l.dragClass,!1),Or(Ge,l.ghostClass,!0),ht.active=this,t&&this._appendGhost(),Tr({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Gr){this._lastX=Gr.clientX,this._lastY=Gr.clientY,Tf();for(var t=document.elementFromPoint(Gr.clientX,Gr.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Gr.clientX,Gr.clientY),t!==n);)n=t;if(Ge.parentNode[Pr]._isOutsideThisEl(t),n)do{if(n[Pr]){var l=void 0;if(l=n[Pr]._onDragOver({clientX:Gr.clientX,clientY:Gr.clientY,target:t,rootEl:n}),l&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);Af()}},_onTouchMove:function(t){if(Bn){var n=this.options,l=n.fallbackTolerance,c=n.fallbackOffset,d=t.touches?t.touches[0]:t,o=yt&&fi(yt,!0),h=yt&&o&&o.a,f=yt&&o&&o.d,p=da&&wr&&vf(wr),y=(d.clientX-Bn.clientX+c.x)/(h||1)+(p?p[0]-Bs[0]:0)/(h||1),m=(d.clientY-Bn.clientY+c.y)/(f||1)+(p?p[1]-Bs[1]:0)/(f||1);if(!ht.active&&!mi){if(l&&Math.max(Math.abs(d.clientX-this._lastX),Math.abs(d.clientY-this._lastY))=0&&(Tr({rootEl:Gt,name:"add",toEl:Gt,fromEl:qt,originalEvent:t}),Tr({sortable:this,name:"remove",toEl:Gt,originalEvent:t}),Tr({rootEl:Gt,name:"sort",toEl:Gt,fromEl:qt,originalEvent:t}),Tr({sortable:this,name:"sort",toEl:Gt,originalEvent:t})),vr&&vr.save()):Rr!==pi&&Rr>=0&&(Tr({sortable:this,name:"update",toEl:Gt,originalEvent:t}),Tr({sortable:this,name:"sort",toEl:Gt,originalEvent:t})),ht.active&&((Rr==null||Rr===-1)&&(Rr=pi,Tn=so),Tr({sortable:this,name:"end",toEl:Gt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Dr("nulling",this),qt=Ge=Gt=yt=Nn=Kt=ia=Cn=Bn=Gr=lo=Rr=Tn=pi=so=gi=uo=vr=oa=ht.dragged=ht.ghost=ht.clone=ht.active=null,ca.forEach(function(t){t.checked=!0}),ca.length=zs=Ns=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Ge&&(this._onDragOver(t),a0(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,l=this.el.children,c=0,d=l.length,o=this.options;cl.right+c||i.clientX<=l.right&&i.clientY>l.bottom&&i.clientX>=l.left:i.clientX>l.right&&i.clientY>l.top||i.clientX<=l.right&&i.clientY>l.bottom+c}function c0(i,t,n,l,c,d,o,h){var f=l?i.clientY:i.clientX,p=l?n.height:n.width,y=l?n.top:n.left,m=l?n.bottom:n.right,v=!1;if(!o){if(h&&uay+p*d/2:fm-ua)return-uo}else if(f>y+p*(1-c)/2&&fm-p*d/2)?f>y+p/2?1:-1:0}function f0(i){return Nr(Ge){let d=c.target.closest(".sort-box-options [data-sort]");if(!d)return;c.preventDefault();let o=d.closest(".sort-box").querySelectorAll("ul"),h=d.getAttribute("data-sort");n=t===h?!n:!1;let f=If[h];n&&l.includes(h)&&(f=function(p,y){return 0-If[h](p,y)});for(let p of o)Array.from(p.children).filter(m=>m.matches("li")).sort(f).forEach(m=>{p.appendChild(m)});t=h,this.updateMapInput()})}bookSelect(t){if(this.elem.querySelector(`[data-type="book"][data-id="${t.id}"]`)!==null)return;let l=t.link+"/sort-item";window.$http.get(l).then(c=>{let d=document.createElement("div");d.innerHTML=c.data;let o=d.children[0];this.sortContainer.append(o),this.setupBookSortable(o)})}setupBookSortable(t){let n=[t.querySelector(".sort-list")];n.push(...t.querySelectorAll(".entity-list-item + ul"));let l={name:"book",pull:["book","chapter"],put:["book","chapter"]},c={name:"chapter",pull:["book","chapter"],put:function(d,o,h){return h.getAttribute("data-type")==="page"}};for(let d of n)new vi(d,{group:d.classList.contains("sort-list")?l:c,animation:150,fallbackOnBody:!0,swapThreshold:.65,onSort:this.updateMapInput.bind(this),dragClass:"bg-white",ghostClass:"primary-background-light",multiDrag:!0,multiDragKey:"CTRL",selectedClass:"sortable-selected"})}updateMapInput(){let t=this.buildEntityMap();this.input.value=JSON.stringify(t)}buildEntityMap(){let t=[],n=this.elem.querySelectorAll(".sort-list");for(let l of n){let c=l.closest('[data-type="book"]').getAttribute("data-id"),d=Array.from(l.children).filter(o=>o.matches('[data-type="page"], [data-type="chapter"]'));for(let o=0;o{n&&n()})}function ya(i,t=400,n=null){xa(i),ba(i,{opacity:["1","0"]},t,()=>{i.style.display="none",n&&n()})}function yi(i,t=400){xa(i);let n=i.getBoundingClientRect().height,l=getComputedStyle(i),c=l.getPropertyValue("padding-top"),d=l.getPropertyValue("padding-bottom"),o={height:[`${n}px`,"0px"],overflow:["hidden","hidden"],paddingTop:[c,"0px"],paddingBottom:[d,"0px"]};ba(i,o,t,()=>{i.style.display="none"})}function bi(i,t=400){xa(i),i.style.display="block";let n=i.getBoundingClientRect().height,l=getComputedStyle(i),c=l.getPropertyValue("padding-top"),d=l.getPropertyValue("padding-bottom"),o={height:["0px",`${n}px`],overflow:["hidden","hidden"],paddingTop:["0px",c],paddingBottom:["0px",d]};ba(i,o,t)}function ba(i,t,n=400,l=null){let c=Object.keys(t);for(let o of c)i.style[o]=t[o][0];let d=()=>{for(let o of c)i.style[o]=null;i.style.transition=null,i.removeEventListener("transitionend",d),va.delete(i),l&&l()};setTimeout(()=>{i.style.transition=`all ease-in-out ${n}ms`;for(let o of c)i.style[o]=t[o][1];i.addEventListener("transitionend",d),va.set(i,d)},15)}function xa(i){va.has(i)&&va.get(i)()}var Pf=class{constructor(t){this.elem=t,this.isOpen=t.classList.contains("open"),t.addEventListener("click",this.click.bind(this))}open(){let t=this.elem.parentNode.querySelector(".inset-list");this.elem.classList.add("open"),this.elem.setAttribute("aria-expanded","true"),bi(t,240)}close(){let t=this.elem.parentNode.querySelector(".inset-list");this.elem.classList.remove("open"),this.elem.setAttribute("aria-expanded","false"),yi(t,240)}click(t){t.preventDefault(),this.isOpen?this.close():this.open(),this.isOpen=!this.isOpen}},Rf=Pf;var $n=_t(Tt()),vh=_t(Js()),O_=_t(el()),P_=_t(tl()),R_=_t(jf()),z_=_t(Gf()),N_=_t(Yf()),B_=_t(Qf()),q_=_t(nl()),$_=_t(rl()),U_=_t(sd()),j_=_t(cd()),H_=_t(gd()),W_=_t(bd()),G_=_t(kd()),K_=_t(Ed()),V_=_t(Ad()),Y_=_t(Id()),X_=_t(Od()),Z_=_t(zd()),Q_=_t(qd()),J_=_t(jd()),eS=_t(Yd()),tS=_t(Qd()),rS=_t(th()),nS=_t(ih()),iS=_t(sh()),oS=_t(ch()),aS=_t(wa()),sS=_t(hh()),lS=_t(gh()),il={css:"css",c:"text/x-csrc",java:"text/x-java",scala:"text/x-scala",kotlin:"text/x-kotlin","c++":"text/x-c++src","c#":"text/x-csharp",csharp:"text/x-csharp",diff:"diff",for:"fortran",fortran:"fortran",go:"go",haskell:"haskell",hs:"haskell",html:"htmlmixed",ini:"properties",javascript:"javascript",json:{name:"javascript",json:!0},js:"javascript",jl:"julia",julia:"julia",lua:"lua",md:"markdown",mdown:"markdown",markdown:"markdown",ml:"mllike",nginx:"nginx",perl:"perl",pl:"perl",powershell:"powershell",properties:"properties",ocaml:"mllike",pascal:"text/x-pascal",pas:"text/x-pascal",php:i=>i.includes("/gi,` -`);let n=i.textContent.trimEnd(),l="";if(t!==null){let d=t.className.replace("language-","");l=ka(d,n)}let c=(0,$n.default)(function(d){i.parentNode.replaceChild(d,i)},{value:n,mode:l,lineNumbers:!0,lineWrapping:!1,theme:_a(),readOnly:!0});v0(c)}function v0(i){let t='',n=document.createElement("div");n.classList.add("CodeMirror-copy"),n.innerHTML=t,i.display.wrapper.appendChild(n),new vh.default(n,{text:function(c){return i.getValue()}}).on("success",c=>{n.classList.add("success"),setTimeout(()=>{n.classList.remove("success")},240)})}function ka(i,t){i=i.trim().replace(/^\./g,"").toLowerCase();let n=typeof il[i];return n==="undefined"?"":n==="function"?il[i](t):il[i]}function _a(){let i=document.documentElement.classList.contains("dark-mode");return window.codeTheme||(i?"darcula":"default")}function y0(i){let t=i.ownerDocument,n=i.querySelector("code"),l=bh(i.className||"");!l&&n&&(l=bh(n.className||"")),i.innerHTML=i.innerHTML.replace(//gi,` -`);let c=i.textContent,d=t.createElement("div"),o=t.createElement("textarea");d.className="CodeMirrorContainer",d.setAttribute("data-lang",l),d.setAttribute("dir","ltr"),o.style.display="none",i.parentNode.replaceChild(d,i),d.appendChild(o),d.contentEditable="false",o.textContent=c;let h=(0,$n.default)(function(f){d.appendChild(f)},{value:c,mode:ka(l,c),lineNumbers:!0,lineWrapping:!1,theme:_a(),readOnly:!0});return{wrap:d,editor:h}}function bh(i){return(i.split(" ").filter(n=>n.startsWith("language-"))[0]||"").replace("language-","")}function b0(i,t){let n=i.textContent;return(0,$n.default)(function(l){i.parentNode.insertBefore(l,i),i.style.display="none"},{value:n,mode:ka(t,n),lineNumbers:!0,lineWrapping:!1,theme:_a()})}function x0(i,t,n){i.setOption("mode",ka(t,n))}function w0(i,t){i.setValue(t),setTimeout(()=>{xh(i)},10)}function xh(i){i.refresh()}function k0(i){let n={value:i.textContent,mode:"markdown",lineNumbers:!0,lineWrapping:!0,theme:_a(),scrollPastEnd:!0};return window.$events.emitPublic(i,"editor-markdown-cm::pre-init",{config:n}),(0,$n.default)(function(l){i.parentNode.insertBefore(l,i),i.style.display="none"},n)}function _0(){return $n.default.keyMap.default==$n.default.keyMap.macDefault?"Cmd":"Ctrl"}var sr={highlight:m0,highlightWithin:g0,wysiwygView:y0,popupEditor:b0,setMode:x0,setContent:w0,updateLayout:xh,markdownEditor:k0,getMetaKey:_0};var wh=class{setup(){this.container=this.$refs.container,this.popup=this.$el,this.editorInput=this.$refs.editor,this.languageLinks=this.$manyRefs.languageLink,this.saveButton=this.$refs.saveButton,this.languageInput=this.$refs.languageInput,this.historyDropDown=this.$refs.historyDropDown,this.historyList=this.$refs.historyList,this.callback=null,this.editor=null,this.history={},this.historyKey="code_history",this.setupListeners()}setupListeners(){this.container.addEventListener("keydown",t=>{t.ctrlKey&&t.key==="Enter"&&this.save()}),Rt(this.languageLinks,t=>{let n=t.target.dataset.lang;this.languageInput.value=n,this.updateEditorMode(n)}),ta(this.languageInput,t=>this.save()),Rt(this.saveButton,t=>this.save()),jt(this.historyList,"button","click",(t,n)=>{t.preventDefault();let l=n.dataset.time;this.editor&&this.editor.setValue(this.history[l])})}save(){this.callback&&this.callback(this.editor.getValue(),this.languageInput.value),this.hide()}open(t,n,l){this.languageInput.value=n,this.callback=l,this.show(),this.updateEditorMode(n),sr.setContent(this.editor,t)}show(){this.editor||(this.editor=sr.popupEditor(this.editorInput,this.languageInput.value)),this.loadHistory(),this.popup.components.popup.show(()=>{sr.updateLayout(this.editor),this.editor.focus()},()=>{this.addHistory()})}hide(){this.popup.components.popup.hide(),this.addHistory()}updateEditorMode(t){sr.setMode(this.editor,t,this.editor.getValue())}loadHistory(){this.history=JSON.parse(window.sessionStorage.getItem(this.historyKey)||"{}");let t=Object.keys(this.history).reverse();this.historyDropDown.classList.toggle("hidden",t.length===0),this.historyList.innerHTML=t.map(n=>{let l=new Date(parseInt(n)).toLocaleTimeString();return`
  • `}).join("")}addHistory(){if(!this.editor)return;let t=this.editor.getValue();if(!t)return;let n=Object.keys(this.history).pop();if(this.history[n]===t)return;this.history[String(Date.now())]=t;let l=JSON.stringify(this.history);window.sessionStorage.setItem(this.historyKey,l)}},kh=wh;var _h=class{constructor(t){sr.highlightWithin(t)}},Sh=_h;var Eh=class{constructor(t){this.elem=t,this.trigger=t.querySelector("[collapsible-trigger]"),this.content=t.querySelector("[collapsible-content]"),!!this.trigger&&(this.trigger.addEventListener("click",this.toggle.bind(this)),this.openIfContainsError())}open(){this.elem.classList.add("open"),this.trigger.setAttribute("aria-expanded","true"),bi(this.content,300)}close(){this.elem.classList.remove("open"),this.trigger.setAttribute("aria-expanded","false"),yi(this.content,300)}toggle(){this.elem.classList.contains("open")?this.close():this.open()}openIfContainsError(){this.content.querySelector(".text-neg.text-small")&&this.open()}},Ch=Eh;var Th=class{constructor(t){this.elem=t,this.checkbox=t.querySelector("input[type=checkbox]"),this.display=t.querySelector('[role="checkbox"]'),this.checkbox.addEventListener("change",this.stateChange.bind(this)),this.elem.addEventListener("keydown",this.onKeyDown.bind(this))}onKeyDown(t){(t.keyCode===32||t.keyCode===13)&&(t.preventDefault(),this.toggle())}toggle(){this.checkbox.checked=!this.checkbox.checked,this.checkbox.dispatchEvent(new Event("change")),this.stateChange()}stateChange(){let t=this.checkbox.checked?"true":"false";this.display.setAttribute("aria-checked",t)}},Ah=Th;var Lh=class{constructor(t){this.elem=t,this.dealtWith=!1,t.addEventListener("toggle",this.onToggle.bind(this))}onToggle(){this.dealtWith||(sr.highlightWithin(this.elem),this.dealtWith=!0)}},Dh=Lh;var Ih=class{setup(){this.container=this.$el,this.menu=this.$refs.menu,this.toggle=this.$refs.toggle,this.moveMenu=this.$opts.moveMenu,this.bubbleEscapes=this.$opts.bubbleEscapes==="true",this.direction=document.dir==="rtl"?"right":"left",this.body=document.body,this.showing=!1,this.setupListeners(),this.hide=this.hide.bind(this)}show(t=null){this.hideAll(),this.menu.style.display="block",this.menu.classList.add("anim","menuIn"),this.toggle.setAttribute("aria-expanded","true"),this.moveMenu&&(this.rect=this.menu.getBoundingClientRect(),this.body.appendChild(this.menu),this.menu.style.position="fixed",this.direction==="right"?this.menu.style.right=`${this.rect.right-this.rect.width}px`:this.menu.style.left=`${this.rect.left}px`,this.menu.style.top=`${this.rect.top}px`,this.menu.style.width=`${this.rect.width}px`),this.menu.addEventListener("mouseleave",this.hide.bind(this)),window.addEventListener("click",c=>{this.menu.contains(c.target)||this.hide()});let n=this.menu.querySelector("input");n!==null&&n.focus(),this.showing=!0;let l=new Event("show");this.container.dispatchEvent(l),t&&t.stopPropagation()}hideAll(){for(let t of window.components.dropdown)t.hide()}hide(){this.menu.style.display="none",this.menu.classList.remove("anim","menuIn"),this.toggle.setAttribute("aria-expanded","false"),this.moveMenu&&(this.menu.style.position="",this.menu.style[this.direction]="",this.menu.style.top="",this.menu.style.width="",this.container.appendChild(this.menu)),this.showing=!1}getFocusable(){return Array.from(this.menu.querySelectorAll("[tabindex],[href],button,input:not([type=hidden])"))}focusNext(){let t=this.getFocusable(),l=t.indexOf(document.activeElement)+1;l>=t.length&&(l=0),t[l].focus()}focusPrevious(){let t=this.getFocusable(),l=t.indexOf(document.activeElement)-1;l<0&&(l=t.length-1),t[l].focus()}setupListeners(){this.container.addEventListener("click",n=>{Array.from(this.menu.querySelectorAll("a")).includes(n.target)&&this.hide()}),Rt(this.toggle,n=>{n.stopPropagation(),this.show(n),n instanceof KeyboardEvent&&this.focusNext()});let t=n=>{n.key==="ArrowDown"||n.key==="ArrowRight"?(this.focusNext(),n.preventDefault()):n.key==="ArrowUp"||n.key==="ArrowLeft"?(this.focusPrevious(),n.preventDefault()):n.key==="Escape"&&(this.hide(),this.toggle.focus(),this.bubbleEscapes||n.stopPropagation())};this.container.addEventListener("keydown",t),this.moveMenu&&this.menu.addEventListener("keydown",t),this.menu.addEventListener("keydown ",n=>{n.key==="Enter"&&(n.preventDefault(),n.stopPropagation(),this.hide())})}},Fh=Ih;var Mh=class{setup(){this.elem=this.$el,this.searchInput=this.$refs.searchInput,this.loadingElem=this.$refs.loading,this.listContainerElem=this.$refs.listContainer,this.localSearchSelector=this.$opts.localSearchSelector,this.url=this.$opts.url,this.elem.addEventListener("show",this.onShow.bind(this)),this.searchInput.addEventListener("input",this.onSearch.bind(this)),this.runAjaxSearch=to(this.runAjaxSearch,300,!1)}onShow(){this.loadList()}onSearch(){let t=this.searchInput.value.toLowerCase().trim();this.localSearchSelector?this.runLocalSearch(t):(this.toggleLoading(!0),this.listContainerElem.innerHTML="",this.runAjaxSearch(t))}runAjaxSearch(t){this.loadList(t)}runLocalSearch(t){let n=this.listContainerElem.querySelectorAll(this.localSearchSelector);for(let l of n){let c=!t||l.textContent.toLowerCase().includes(t);l.style.display=c?"flex":"none",l.classList.toggle("hidden",!c)}}async loadList(t=""){this.listContainerElem.innerHTML="",this.toggleLoading(!0);try{let n=await window.$http.get(this.getAjaxUrl(t));this.listContainerElem.innerHTML=n.data}catch(n){console.error(n)}this.toggleLoading(!1),this.localSearchSelector&&this.onSearch()}getAjaxUrl(t=null){if(!t)return this.url;let n=this.url.includes("?")?"&":"?";return`${this.url}${n}search=${encodeURIComponent(t)}`}toggleLoading(t=!1){this.loadingElem.style.display=t?"block":"none"}},Oh=Mh;var Rh=_t(Ph());var zh=class{setup(){this.container=this.$el,this.url=this.$opts.url,this.successMessage=this.$opts.successMessage,this.removeMessage=this.$opts.removeMessage,this.uploadLimit=Number(this.$opts.uploadLimit),this.uploadLimitMessage=this.$opts.uploadLimitMessage,this.timeoutMessage=this.$opts.timeoutMessage;let t=this;this.dz=new Rh.default(this.container,{addRemoveLinks:!0,dictRemoveFile:this.removeMessage,timeout:Number(window.uploadTimeout)||6e4,maxFilesize:this.uploadLimit,url:this.url,withCredentials:!0,init(){this.dz=this,this.dz.on("sending",t.onSending.bind(t)),this.dz.on("success",t.onSuccess.bind(t)),this.dz.on("error",t.onError.bind(t))}})}onSending(t,n,l){let c=window.document.querySelector("meta[name=token]").getAttribute("content");l.append("_token",c),n.ontimeout=d=>{this.dz.emit("complete",t),this.dz.emit("error",t,this.timeoutMessage)}}onSuccess(t,n){this.$emit("success",{file:t,data:n}),this.successMessage&&window.$events.emit("success",this.successMessage),ya(t.previewElement,800,()=>{this.dz.removeFile(t)})}onError(t,n,l){this.$emit("error",{file:t,errorMessage:n,xhr:l});let c=d=>{let o=t.previewElement.querySelector("[data-dz-errormessage]");o.textContent=d};l&&l.status===413?c(this.uploadLimitMessage):n.file&&c(n.file)}removeAll(){this.dz.removeAllFiles(!0)}},Nh=zh;var Bh=class{constructor(t){this.elem=t,this.buttons=t.querySelectorAll("[toolbox-tab-button]"),this.contentElements=t.querySelectorAll("[toolbox-tab-content]"),this.toggleButton=t.querySelector("[toolbox-toggle]"),this.toggleButton.addEventListener("click",this.toggle.bind(this)),this.elem.addEventListener("click",n=>{let l=n.target.closest("[toolbox-tab-button]");if(l===null)return;let c=l.getAttribute("toolbox-tab-button");this.setActiveTab(c,!0)}),this.setActiveTab(this.contentElements[0].getAttribute("toolbox-tab-content"))}toggle(){this.elem.classList.toggle("open");let t=this.elem.classList.contains("open")?"true":"false";this.toggleButton.setAttribute("aria-expanded",t)}setActiveTab(t,n=!1){for(let l=0,c=this.buttons.length;l{t.preventDefault(),this.runSearch()}),Rt(this.clearButton,this.clearSearch.bind(this))}runSearch(){let t=this.searchInput.value.trim();if(t.length===0)return this.clearSearch();this.searchView.classList.remove("hidden"),this.contentView.classList.add("hidden"),this.loadingBlock.classList.remove("hidden");let n=window.baseUrl(`/search/${this.entityType}/${this.entityId}`);window.$http.get(n,{term:t}).then(l=>{this.searchResults.innerHTML=l.data}).catch(console.error).then(()=>{this.loadingBlock.classList.add("hidden")})}clearSearch(){this.searchView.classList.add("hidden"),this.contentView.classList.remove("hidden"),this.loadingBlock.classList.add("hidden"),this.searchInput.value=""}},Hh=jh;var Wh=class{setup(){this.elem=this.$el,this.entityTypes=this.$opts.entityTypes||"page,book,chapter",this.entityPermission=this.$opts.entityPermission||"view",this.input=this.$refs.input,this.searchInput=this.$refs.search,this.loading=this.$refs.loading,this.resultsContainer=this.$refs.results,this.addButton=this.$refs.add,this.search="",this.lastClick=0,this.selectedItemData=null,this.setupListeners(),this.showLoading(),this.initialLoad()}setupListeners(){this.elem.addEventListener("click",this.onClick.bind(this));let t=0;this.searchInput.addEventListener("input",n=>{t=Date.now(),this.showLoading(),setTimeout(()=>{Date.now()-t<199||this.searchEntities(this.searchInput.value)},200)}),this.searchInput.addEventListener("keydown",n=>{n.keyCode===13&&n.preventDefault()}),this.addButton&&this.addButton.addEventListener("click",n=>{this.selectedItemData&&(this.confirmSelection(this.selectedItemData),this.unselectAll())}),jt(this.$el,"[data-entity-type]","keydown",(n,l)=>{if(n.ctrlKey&&n.code==="Enter"){let c=this.$el.closest("form");if(c){c.submit(),n.preventDefault();return}}n.code==="ArrowDown"&&this.focusAdjacent(!0),n.code==="ArrowUp"&&this.focusAdjacent(!1)}),this.searchInput.addEventListener("keydown",n=>{n.code==="ArrowDown"&&this.focusAdjacent(!0)})}focusAdjacent(t=!0){let n=Array.from(this.resultsContainer.querySelectorAll("[data-entity-type]")),l=n.indexOf(document.activeElement),c=n[l+(t?1:-1)]||n[0];c&&c.focus()}showLoading(){this.loading.style.display="block",this.resultsContainer.style.display="none"}hideLoading(){this.loading.style.display="none",this.resultsContainer.style.display="block"}initialLoad(){window.$http.get(this.searchUrl()).then(t=>{this.resultsContainer.innerHTML=t.data,this.hideLoading()})}searchUrl(){return`/ajax/search/entities?types=${encodeURIComponent(this.entityTypes)}&permission=${encodeURIComponent(this.entityPermission)}`}searchEntities(t){this.input.value="";let n=`${this.searchUrl()}&term=${encodeURIComponent(t)}`;window.$http.get(n).then(l=>{this.resultsContainer.innerHTML=l.data,this.hideLoading()})}isDoubleClick(){let t=Date.now(),n=t-this.lastClick<300;return this.lastClick=t,n}onClick(t){let n=t.target.closest("[data-entity-type]");n&&(t.preventDefault(),t.stopPropagation(),this.selectItem(n))}selectItem(t){let n=this.isDoubleClick(),l=t.getAttribute("data-entity-type"),c=t.getAttribute("data-entity-id"),d=!t.classList.contains("selected")||n;this.unselectAll(),this.input.value=d?`${l}:${c}`:"";let o=t.getAttribute("href"),h=t.querySelector(".entity-list-item-name").textContent,f={id:Number(c),name:h,link:o};d?(t.classList.add("selected"),this.selectedItemData=f):window.$events.emit("entity-select-change",null),!(!n&&!d)&&(n&&this.confirmSelection(f),d&&window.$events.emit("entity-select-change",f))}confirmSelection(t){window.$events.emit("entity-select-confirm",t)}unselectAll(){let t=this.elem.querySelectorAll(".selected");for(let n of t)n.classList.remove("selected","primary-background");this.selectedItemData=null}},Gh=Wh;var Kh=class{setup(){this.elem=this.$el,this.selectButton=this.$refs.select,this.searchInput=this.$refs.searchInput,window.EntitySelectorPopup=this,this.callback=null,this.selection=null,this.selectButton.addEventListener("click",this.onSelectButtonClick.bind(this)),window.$events.listen("entity-select-change",this.onSelectionChange.bind(this)),window.$events.listen("entity-select-confirm",this.onSelectionConfirm.bind(this))}show(t){this.callback=t,this.elem.components.popup.show(),this.searchInput.focus()}hide(){this.elem.components.popup.hide()}onSelectButtonClick(){this.hide(),this.selection!==null&&this.callback&&this.callback(this.selection)}onSelectionConfirm(t){this.hide(),this.callback&&t&&this.callback(t)}onSelectionChange(t){this.selection=t,t===null?this.selectButton.setAttribute("disabled","true"):this.selectButton.removeAttribute("disabled")}},Vh=Kh;var Yh=class{setup(){this.container=this.$el,this.name=this.$opts.name,Rt(this.$el,()=>{this.$emit(this.name,this.$opts)})}},Xh=Yh;var Zh=class{constructor(t){this.elem=t,this.isOpen=t.getAttribute("expand-toggle-is-open")==="yes",this.updateEndpoint=t.getAttribute("expand-toggle-update-endpoint"),this.selector=t.getAttribute("expand-toggle"),t.addEventListener("click",this.click.bind(this))}open(t){bi(t,200)}close(t){yi(t,200)}click(t){t.preventDefault();let n=document.querySelectorAll(this.selector);for(let l of n)this.isOpen?this.close(l):this.open(l);this.isOpen=!this.isOpen,this.updateSystemAjax(this.isOpen)}updateSystemAjax(t){window.$http.patch(this.updateEndpoint,{expand:t?"true":"false"})}},Qh=Zh;var Jh=class{setup(){this.elem=this.$el,this.toggleButton=this.$refs.toggle,this.menu=this.$refs.menu,this.open=!1,this.toggleButton.addEventListener("click",this.onToggle.bind(this)),this.onWindowClick=this.onWindowClick.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}onToggle(t){this.open=!this.open,this.menu.classList.toggle("show",this.open),this.toggleButton.setAttribute("aria-expanded",this.open?"true":"false"),this.open?(this.elem.addEventListener("keydown",this.onKeyDown),window.addEventListener("click",this.onWindowClick)):(this.elem.removeEventListener("keydown",this.onKeyDown),window.removeEventListener("click",this.onWindowClick)),t.stopPropagation()}onKeyDown(t){t.code==="Escape"&&this.onToggle(t)}onWindowClick(t){this.onToggle(t)}},ep=Jh;var tp=class{constructor(t){this.elem=t,this.typeControl=t.querySelector('[name="setting-app-homepage-type"]'),this.pagePickerContainer=t.querySelector("[page-picker-container]"),this.typeControl.addEventListener("change",this.controlPagePickerVisibility.bind(this)),this.controlPagePickerVisibility()}controlPagePickerVisibility(){let t=this.typeControl.value==="page";this.pagePickerContainer.style.display=t?"block":"none"}},rp=tp;var np=class{setup(){this.uploadedTo=this.$opts.uploadedTo,this.container=this.$el,this.popupEl=this.$refs.popup,this.searchForm=this.$refs.searchForm,this.searchInput=this.$refs.searchInput,this.cancelSearch=this.$refs.cancelSearch,this.listContainer=this.$refs.listContainer,this.filterTabs=this.$manyRefs.filterTabs,this.selectButton=this.$refs.selectButton,this.formContainer=this.$refs.formContainer,this.dropzoneContainer=this.$refs.dropzoneContainer,this.type="gallery",this.lastSelected={},this.lastSelectedTime=0,this.callback=null,this.resetState=()=>{this.hasData=!1,this.page=1,this.filter="all"},this.resetState(),this.setupListeners(),window.ImageManager=this}setupListeners(){Rt(this.filterTabs,t=>{this.resetAll(),this.filter=t.target.dataset.filter,this.setActiveFilterTab(this.filter),this.loadGallery()}),this.searchForm.addEventListener("submit",t=>{this.resetListView(),this.loadGallery(),t.preventDefault()}),Rt(this.cancelSearch,t=>{this.resetListView(),this.resetSearchView(),this.loadGallery(),this.cancelSearch.classList.remove("active")}),this.searchInput.addEventListener("input",t=>{this.cancelSearch.classList.toggle("active",this.searchInput.value.trim())}),jt(this.listContainer,".load-more","click",async t=>{eo(t.target),this.page++,await this.loadGallery(),t.target.remove()}),this.listContainer.addEventListener("event-emit-select-image",this.onImageSelectEvent.bind(this)),this.listContainer.addEventListener("error",t=>{t.target.src=baseUrl("loading_error.png")},!0),Rt(this.selectButton,()=>{this.callback&&this.callback(this.lastSelected),this.hide()}),jt(this.formContainer,"#image-manager-delete","click",t=>{this.lastSelected&&this.loadImageEditForm(this.lastSelected.id,!0)}),this.formContainer.addEventListener("ajax-form-success",this.refreshGallery.bind(this)),this.container.addEventListener("dropzone-success",this.refreshGallery.bind(this))}show(t,n="gallery"){this.resetAll(),this.callback=t,this.type=n,this.popupEl.components.popup.show(),this.dropzoneContainer.classList.toggle("hidden",n!=="gallery"),this.hasData||(this.loadGallery(),this.hasData=!0)}hide(){this.popupEl.components.popup.hide()}async loadGallery(){let t={page:this.page,search:this.searchInput.value||null,uploaded_to:this.uploadedTo,filter_type:this.filter==="all"?null:this.filter},{data:n}=await window.$http.get(`images/${this.type}`,t);t.page===1&&(this.listContainer.innerHTML=""),this.addReturnedHtmlElementsToList(n),Wc(this.listContainer)}addReturnedHtmlElementsToList(t){let n=document.createElement("div");n.innerHTML=t,window.components.init(n);for(let l of[...n.children])this.listContainer.appendChild(l)}setActiveFilterTab(t){this.filterTabs.forEach(l=>l.classList.remove("selected"));let n=this.filterTabs.find(l=>l.dataset.filter===t);n&&n.classList.add("selected")}resetAll(){this.resetState(),this.resetListView(),this.resetSearchView(),this.resetEditForm(),this.setActiveFilterTab("all"),this.selectButton.classList.add("hidden")}resetSearchView(){this.searchInput.value=""}resetEditForm(){this.formContainer.innerHTML=""}resetListView(){eo(this.listContainer),this.page=1}refreshGallery(){this.resetListView(),this.loadGallery()}onImageSelectEvent(t){let n=JSON.parse(t.detail.data),l=n&&n.id===this.lastSelected.id&&Date.now()-this.lastSelectedTime<400,c=t.target.classList.contains("selected");[...this.listContainer.querySelectorAll(".selected")].forEach(d=>{d.classList.remove("selected")}),c?this.resetEditForm():(t.target.classList.add("selected"),this.loadImageEditForm(n.id)),this.selectButton.classList.toggle("hidden",c),l&&this.callback&&(this.callback(n),this.hide()),this.lastSelected=n,this.lastSelectedTime=Date.now()}async loadImageEditForm(t,n=!1){n||(this.formContainer.innerHTML="");let l=n?{delete:!0}:{},{data:c}=await window.$http.get(`/images/edit/${t}`,l);this.formContainer.innerHTML=c,window.components.init(this.formContainer)}},ip=np;var op=class{constructor(t){this.elem=t,this.imageElem=t.querySelector("img"),this.imageInput=t.querySelector("input[type=file]"),this.resetInput=t.querySelector("input[data-reset-input]"),this.removeInput=t.querySelector("input[data-remove-input]"),this.defaultImage=t.getAttribute("data-default-image"),t.querySelector('button[data-action="reset-image"]').addEventListener("click",this.reset.bind(this));let l=t.querySelector('button[data-action="remove-image"]');l&&l.addEventListener("click",this.removeImage.bind(this)),this.imageInput.addEventListener("change",this.fileInputChange.bind(this))}fileInputChange(){this.resetInput.setAttribute("disabled","disabled"),this.removeInput&&this.removeInput.setAttribute("disabled","disabled");for(let t of this.imageInput.files)this.imageElem.src=window.URL.createObjectURL(t);this.imageElem.classList.remove("none")}reset(){this.imageInput.value="",this.imageElem.src=this.defaultImage,this.resetInput.removeAttribute("disabled"),this.removeInput&&this.removeInput.setAttribute("disabled","disabled"),this.imageElem.classList.remove("none")}removeImage(){this.imageInput.value="",this.imageElem.classList.add("none"),this.removeInput.removeAttribute("disabled"),this.resetInput.setAttribute("disabled","disabled")}},ap=op;var sp=class{constructor(t){this.elem=t,this.menu=t.querySelector("ul"),this.sortInput=t.querySelector('[name="sort"]'),this.orderInput=t.querySelector('[name="order"]'),this.form=t.querySelector("form"),this.menu.addEventListener("click",n=>{n.target.closest("[data-sort-value]")!==null&&this.sortOptionClick(n)}),this.elem.addEventListener("click",n=>{n.target.closest("[data-sort-dir]")!==null&&this.sortDirectionClick(n)})}sortOptionClick(t){let n=t.target.closest("[data-sort-value]");this.sortInput.value=n.getAttribute("data-sort-value"),t.preventDefault(),this.form.submit()}sortDirectionClick(t){let l=this.orderInput.value==="asc"?"desc":"asc";this.orderInput.value=l,t.preventDefault(),this.form.submit()}},lp=sp;var _v=_t(hv()),Sv=_t(yv());var bv=class{constructor(t){this.data=t}hasItems(){return Boolean(this.data)&&Boolean(this.data.types)&&this.data.types.length>0}containsTabularData(){let t=this.data.getData("text/rtf");return t&&t.includes("\\trowd")}getImages(){let t=this.data.types,n=this.data.files,l=[];for(let c of t)if(c.includes("image")){let d=this.data.getData(c);l.push(d.getAsFile())}for(let c of n)c.type.includes("image")&&l.push(c);return l}},xo=bv;var mn=null,Rl,zl,Nl;function Wk(i,t,n){zl=t,Nl=n,mn=document.createElement("iframe"),mn.setAttribute("frameborder","0"),window.addEventListener("message",xv),mn.setAttribute("src",i),mn.setAttribute("class","fullscreen"),mn.style.backgroundColor="#FFFFFF",document.body.appendChild(mn),Rl=new URL(i).origin}function Gk(){wv()}function xv(i){if(!i.data||i.data.length<1||i.origin!==Rl)return;let t=JSON.parse(i.data);t.event==="init"?Yk():t.event==="exit"?wv():t.event==="save"?Vk(t):t.event==="export"&&Kk(t)}function Kk(i){Nl&&Nl(i.data)}function Vk(i){kv({action:"export",format:"xmlpng",xml:i.xml,spin:"Updating drawing"})}function Yk(){!zl||zl().then(i=>{kv({action:"load",autosave:1,xml:i})})}function wv(){window.removeEventListener("message",xv),mn&&document.body.removeChild(mn)}function kv(i){mn.contentWindow.postMessage(JSON.stringify(i),Rl)}async function Xk(i,t){let n={image:i,uploaded_to:t};return(await window.$http.post(window.baseUrl("/images/drawio"),n)).data}async function Zk(i){return`data:image/png;base64,${(await window.$http.get(window.baseUrl(`/images/drawio/base64/${i}`))).data.content}`}var zr={show:Wk,close:Gk,upload:Xk,load:Zk};var Ev=class{setup(){this.elem=this.$el,this.pageId=this.$opts.pageId,this.textDirection=this.$opts.textDirection,this.imageUploadErrorText=this.$opts.imageUploadErrorText,this.serverUploadLimitText=this.$opts.serverUploadLimitText,this.markdown=new _v.default({html:!0}),this.markdown.use(Sv.default,{label:!0}),this.display=this.elem.querySelector(".markdown-display"),this.displayStylesLoaded=!1,this.input=this.elem.querySelector("textarea"),this.cm=sr.markdownEditor(this.input),this.onMarkdownScroll=this.onMarkdownScroll.bind(this);let t=()=>{this.displayDoc=this.display.contentDocument,this.init()};this.display.contentDocument.readyState==="complete"?t():this.display.addEventListener("load",t.bind(this)),window.$events.emitPublic(this.elem,"editor-markdown::setup",{markdownIt:this.markdown,displayEl:this.display,codeMirrorInstance:this.cm})}init(){let t=0;this.displayDoc.addEventListener("click",o=>{let h=Date.now()-t<300,f=o.target.closest("a");if(f!==null){o.preventDefault(),window.open(f.getAttribute("href"));return}let p=o.target.closest("[drawio-diagram]");if(p!==null&&h){this.actionEditDrawing(p);return}t=Date.now()}),this.elem.addEventListener("click",o=>{let h=o.target.closest("button[data-action]");if(h===null)return;let f=h.getAttribute("data-action");if(f==="insertImage"&&this.actionInsertImage(),f==="insertLink"&&this.actionShowLinkSelector(),f==="insertDrawing"&&(o.ctrlKey||o.metaKey)){this.actionShowImageManager();return}f==="insertDrawing"&&this.actionStartDrawing(),f==="fullscreen"&&this.actionFullScreen()}),this.elem.addEventListener("click",o=>{let h=o.target.closest(".editor-toolbar-label");if(!h)return;let f=this.elem.querySelectorAll(".markdown-editor-wrap");for(let p of f)p.classList.remove("active");h.closest(".markdown-editor-wrap").classList.add("active")}),window.$events.listen("editor-markdown-update",o=>{this.cm.setValue(o),this.updateAndRender()}),this.codeMirrorSetup(),this.listenForBookStackEditorEvents();let l=new URL(window.location).searchParams.get("content-text");l&&this.scrollToText(l);let c=to(()=>sr.updateLayout(this.cm),100,!1);new ResizeObserver(c).observe(this.elem)}updateAndRender(){let t=this.cm.getValue();this.input.value=t;let n=this.markdown.render(t);window.$events.emit("editor-html-change",n),window.$events.emit("editor-markdown-change",t),this.displayDoc.body.className="page-content",this.displayDoc.body.innerHTML=n,this.loadStylesIntoDisplay()}loadStylesIntoDisplay(){if(this.displayStylesLoaded)return;this.displayDoc.documentElement.classList.add("markdown-editor-display"),document.documentElement.classList.contains("dark-mode")&&(this.displayDoc.documentElement.style.backgroundColor="#222",this.displayDoc.documentElement.classList.add("dark-mode")),this.displayDoc.head.innerHTML="";let t=document.head.querySelectorAll("style,link[rel=stylesheet]");for(let n of t){let l=n.cloneNode(!0);this.displayDoc.head.appendChild(l)}this.displayStylesLoaded=!0}onMarkdownScroll(t){let n=this.displayDoc.body.children;if(n.length<=t)return;(t===-1?n[n.length-1]:n[t]).scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"})}codeMirrorSetup(){let t=this.cm,n=this;t.setOption("direction","ltr");let l=sr.getMetaKey(),c={};c[`${l}-Alt-I`]=function(v){let k=`![${v.getSelection()}](http://)`,E=v.getCursor("from");v.replaceSelection(k),v.setCursor(E.line,E.ch+k.length-1)},c[`${l}-S`]=v=>{window.$events.emit("editor-save-draft")},c[`${l}-Enter`]=v=>{window.$events.emit("editor-save-page")},c[`Shift-${l}-K`]=v=>{this.actionShowLinkSelector()},c[`${l}-K`]=v=>{m()},c[`${l}-1`]=v=>{h("##")},c[`${l}-2`]=v=>{h("###")},c[`${l}-3`]=v=>{h("####")},c[`${l}-4`]=v=>{h("#####")},c[`${l}-5`]=v=>{h("")},c[`${l}-d`]=v=>{h("")},c[`${l}-6`]=v=>{h(">")},c[`${l}-q`]=v=>{h(">")},c[`${l}-7`]=v=>{p("\n```\n","\n```")},c[`${l}-8`]=v=>{p("`","`")},c[`Shift-${l}-E`]=v=>{p("`","`")},c[`${l}-9`]=v=>{p('

    ',"

    ")},t.setOption("extraKeys",c),t.on("change",(v,b)=>{this.updateAndRender()});let d=to(v=>{let b=v.getScrollInfo();if(b.top+b.clientHeight===b.height){this.onMarkdownScroll(-1);return}let E=v.lineAtHeight(b.top,"local"),w=v.getRange({line:0,ch:null},{line:E,ch:null}),N=new DOMParser().parseFromString(this.markdown.render(w),"text/html").documentElement.querySelectorAll("body > *");this.onMarkdownScroll(N.length)},100);t.on("scroll",v=>{d(v)}),t.on("paste",(v,b)=>{let k=new xo(b.clipboardData||b.dataTransfer);if(!k.hasItems()||k.containsTabularData())return;let E=k.getImages();for(let w of E)y(w)}),t.on("drop",(v,b)=>{let k=b.dataTransfer.getData("bookstack/template");if(k){let w=v.coordsChar({left:b.pageX,top:b.pageY});v.setCursor(w),b.preventDefault(),window.$http.get(`/templates/${k}`).then(I=>{let S=I.data.markdown||I.data.html;v.replaceSelection(S)})}let E=new xo(b.dataTransfer);if(E.hasItems()&&E.getImages().length>0){let w=v.coordsChar({left:b.pageX,top:b.pageY});v.setCursor(w),b.stopPropagation(),b.preventDefault();let I=E.getImages();for(let S of I)y(S)}});function o(v,b){let k=t.getValue(),E=t.listSelections();t.setValue(k.replace(v,b)),t.setSelections(E)}function h(v){let b=t.getCursor(),k=t.getLine(b.line),E=k.length,w=k.split(" ")[0];if(w===v){k=k.replace(`${v} `,""),t.replaceRange(k,{line:b.line,ch:0},{line:b.line,ch:E}),t.setCursor({line:b.line,ch:b.ch-(v.length+1)});return}let I=/^[#>`]/.test(w),S=0;I?(S=v.length-w.length,k=k.replace(w,v).trim()):v!==""&&(S=v.length+1,k=v+" "+k),t.replaceRange(k,{line:b.line,ch:0},{line:b.line,ch:E}),t.setCursor({line:b.line,ch:b.ch+S})}function f(v,b){let k=t.getCursor(),E=t.getLine(k.line),w=E.length,I=E;E.indexOf(v)===0&&E.slice(-b.length)===b?I=E.slice(v.length,E.length-b.length):I=`${v}${E}${b}`,t.replaceRange(I,{line:k.line,ch:0},{line:k.line,ch:w}),t.setCursor({line:k.line,ch:k.ch+v.length})}function p(v,b){let k=t.getSelection();if(k==="")return f(v,b);let E=k,w=0,I=0;k.indexOf(v)===0&&k.slice(-b.length)===b?(E=k.slice(v.length,k.length-b.length),I=-(b.length+v.length)):(E=`${v}${k}${b}`,I=v.length+b.length);let S=t.listSelections()[0];t.replaceSelection(E);let N=S.head.ch<=S.anchor.ch;S.head.ch+=N?w:I,S.anchor.ch+=N?I:w,t.setSelections([S])}function y(v){if(v===null||v.type.indexOf("image")!==0)return;let b="png";if(v.name){let j=v.name.match(/\.(.+)$/);j.length>1&&(b=j[1])}let k="image-"+Math.random().toString(16).slice(2),E=window.baseUrl(`/loading.gif#upload${k}`),w=t.getSelection(),I=`![${w}](${E})`,S=t.getCursor();t.replaceSelection(I),t.setCursor({line:S.line,ch:S.ch+w.length+3});let N="image-"+Date.now()+"."+b,O=new FormData;O.append("file",v,N),O.append("uploaded_to",n.pageId),window.$http.post("/images/gallery",O).then(j=>{let U=`[![${w}](${j.data.thumbs.display})](${j.data.url})`;o(I,U)}).catch(j=>{window.$events.emit("error",n.imageUploadErrorText),o(I,w),console.log(j)})}function m(){let v=t.getCursor("from"),b=t.getSelection()||"",k=`[${b}]()`;t.focus(),t.replaceSelection(k);let E=b===""?-3:-1;t.setCursor(v.line,v.ch+k.length+E)}this.updateAndRender()}actionInsertImage(){let t=this.cm.getCursor("from");window.ImageManager.show(n=>{let l=n.thumbs.display||n.url,c=this.cm.getSelection(),d="[!["+(c||n.name)+"]("+l+")]("+n.url+")";this.cm.focus(),this.cm.replaceSelection(d),this.cm.setCursor(t.line,t.ch+d.length)},"gallery")}actionShowImageManager(){let t=this.cm.getCursor("from");window.ImageManager.show(n=>{this.insertDrawing(n,t)},"drawio")}actionShowLinkSelector(){let t=this.cm.getCursor("from");window.EntitySelectorPopup.show(n=>{let c=`[${this.cm.getSelection()||n.name}](${n.link})`;this.cm.focus(),this.cm.replaceSelection(c),this.cm.setCursor(t.line,t.ch+c.length)})}getDrawioUrl(){let t=document.querySelector("[drawio-url]");return t?t.getAttribute("drawio-url"):!1}actionStartDrawing(){let t=this.getDrawioUrl();if(!t)return;let n=this.cm.getCursor("from");zr.show(t,()=>Promise.resolve(""),l=>{let c={image:l,uploaded_to:Number(this.pageId)};window.$http.post("/images/drawio",c).then(d=>{this.insertDrawing(d.data,n),zr.close()}).catch(d=>{this.handleDrawingUploadError(d)})})}insertDrawing(t,n){let l=`
    `;this.cm.focus(),this.cm.replaceSelection(l),this.cm.setCursor(n.line,n.ch+l.length)}actionEditDrawing(t){let n=this.getDrawioUrl();if(!n)return;let l=this.cm.getCursor("from"),c=t.getAttribute("drawio-diagram");zr.show(n,()=>zr.load(c),d=>{let o={image:d,uploaded_to:Number(this.pageId)};window.$http.post("/images/drawio",o).then(h=>{let f=`
    `,p=this.cm.getValue().split(` +`};tn.text=function(i,t){return $n(i[t].content)};tn.html_block=function(i,t){return i[t].content};tn.html_inline=function(i,t){return i[t].content};function wi(){this.rules=ow({},tn)}wi.prototype.renderAttrs=function(t){var n,l,c;if(!t.attrs)return"";for(c="",n=0,l=t.attrs.length;n +`:">",d)};wi.prototype.renderInline=function(i,t,n){for(var l,c="",d=this.rules,a=0,h=i.length;a{"use strict";function Gr(){this.__rules__=[],this.__cache__=null}Gr.prototype.__find__=function(i){for(var t=0;t{"use strict";var sw=/\r\n?|\n/g,lw=/\0/g;Kp.exports=function(t){var n;n=t.src.replace(sw,` +`),n=n.replace(lw,"\uFFFD"),t.src=n}});var Xp=Me((l1,Yp)=>{"use strict";Yp.exports=function(t){var n;t.inlineMode?(n=new t.Token("inline","",0),n.content=t.src,n.map=[0,1],n.children=[],t.tokens.push(n)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}});var Qp=Me((u1,Zp)=>{"use strict";Zp.exports=function(t){var n=t.tokens,l,c,d;for(c=0,d=n.length;c{"use strict";var uw=Ft().arrayReplaceAt;function cw(i){return/^\s]/i.test(i)}function fw(i){return/^<\/a\s*>/i.test(i)}Jp.exports=function(t){var n,l,c,d,a,h,f,p,y,g,v,b,k,E,w,I,S=t.tokens,P;if(!!t.md.options.linkify){for(l=0,c=S.length;l=0;n--){if(h=d[n],h.type==="link_close"){for(n--;d[n].level!==h.level&&d[n].type!=="link_open";)n--;continue}if(h.type==="html_inline"&&(cw(h.content)&&k>0&&k--,fw(h.content)&&k++),!(k>0)&&h.type==="text"&&t.md.linkify.test(h.content)){for(y=h.content,P=t.md.linkify.match(y),f=[],b=h.level,v=0,p=0;pv&&(a=new t.Token("text","",0),a.content=y.slice(v,g),a.level=b,f.push(a)),a=new t.Token("link_open","a",1),a.attrs=[["href",w]],a.level=b++,a.markup="linkify",a.info="auto",f.push(a),a=new t.Token("text","",0),a.content=I,a.level=b,f.push(a),a=new t.Token("link_close","a",-1),a.level=--b,a.markup="linkify",a.info="auto",f.push(a),v=P[p].lastIndex);v{"use strict";var tm=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,dw=/\((c|tm|r|p)\)/i,hw=/\((c|tm|r|p)\)/ig,pw={c:"\xA9",r:"\xAE",p:"\xA7",tm:"\u2122"};function mw(i,t){return pw[t.toLowerCase()]}function gw(i){var t,n,l=0;for(t=i.length-1;t>=0;t--)n=i[t],n.type==="text"&&!l&&(n.content=n.content.replace(hw,mw)),n.type==="link_open"&&n.info==="auto"&&l--,n.type==="link_close"&&n.info==="auto"&&l++}function vw(i){var t,n,l=0;for(t=i.length-1;t>=0;t--)n=i[t],n.type==="text"&&!l&&tm.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),n.type==="link_open"&&n.info==="auto"&&l--,n.type==="link_close"&&n.info==="auto"&&l++}rm.exports=function(t){var n;if(!!t.md.options.typographer)for(n=t.tokens.length-1;n>=0;n--)t.tokens[n].type==="inline"&&(dw.test(t.tokens[n].content)&&gw(t.tokens[n].children),tm.test(t.tokens[n].content)&&vw(t.tokens[n].children))}});var cm=Me((d1,um)=>{"use strict";var im=Ft().isWhiteSpace,om=Ft().isPunctChar,am=Ft().isMdAsciiPunct,yw=/['"]/,sm=/['"]/g,lm="\u2019";function Ia(i,t,n){return i.substr(0,t)+n+i.substr(t+1)}function bw(i,t){var n,l,c,d,a,h,f,p,y,g,v,b,k,E,w,I,S,P,F,H,$;for(F=[],n=0;n=0&&!(F[S].level<=f);S--);if(F.length=S+1,l.type!=="text")continue;c=l.content,a=0,h=c.length;e:for(;a=0)y=c.charCodeAt(d.index-1);else for(S=n-1;S>=0&&!(i[S].type==="softbreak"||i[S].type==="hardbreak");S--)if(!!i[S].content){y=i[S].content.charCodeAt(i[S].content.length-1);break}if(g=32,a=48&&y<=57&&(I=w=!1),w&&I&&(w=v,I=b),!w&&!I){P&&(l.content=Ia(l.content,d.index,lm));continue}if(I){for(S=F.length-1;S>=0&&(p=F[S],!(F[S].level=0;n--)t.tokens[n].type!=="inline"||!yw.test(t.tokens[n].content)||bw(t.tokens[n].children,t)}});var Fa=Me((h1,fm)=>{"use strict";function ki(i,t,n){this.type=i,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}ki.prototype.attrIndex=function(t){var n,l,c;if(!this.attrs)return-1;for(n=this.attrs,l=0,c=n.length;l=0&&(l=this.attrs[n][1]),l};ki.prototype.attrJoin=function(t,n){var l=this.attrIndex(t);l<0?this.attrPush([t,n]):this.attrs[l][1]=this.attrs[l][1]+" "+n};fm.exports=ki});var pm=Me((p1,hm)=>{"use strict";var xw=Fa();function dm(i,t,n){this.src=i,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}dm.prototype.Token=xw;hm.exports=dm});var gm=Me((m1,mm)=>{"use strict";var ww=Da(),cl=[["normalize",Vp()],["block",Xp()],["inline",Qp()],["linkify",em()],["replacements",nm()],["smartquotes",cm()]];function fl(){this.ruler=new ww;for(var i=0;i{"use strict";var dl=Ft().isSpace;function hl(i,t){var n=i.bMarks[t]+i.tShift[t],l=i.eMarks[t];return i.src.substr(n,l-n)}function vm(i){var t=[],n=0,l=i.length,c,d=!1,a=0,h="";for(c=i.charCodeAt(n);nl||(y=n+1,t.sCount[y]=4||(h=t.bMarks[y]+t.tShift[y],h>=t.eMarks[y])||(H=t.src.charCodeAt(h++),H!==124&&H!==45&&H!==58)||h>=t.eMarks[y]||($=t.src.charCodeAt(h++),$!==124&&$!==45&&$!==58&&!dl($))||H===45&&dl($))return!1;for(;h=4||(g=vm(a),g.length&&g[0]===""&&g.shift(),g.length&&g[g.length-1]===""&&g.pop(),v=g.length,v===0||v!==k.length))return!1;if(c)return!0;for(S=t.parentType,t.parentType="table",F=t.md.block.ruler.getRules("blockquote"),b=t.push("table_open","table",1),b.map=w=[n,0],b=t.push("thead_open","thead",1),b.map=[n,n+1],b=t.push("tr_open","tr",1),b.map=[n,n+1],f=0;f=4)break;for(g=vm(a),g.length&&g[0]===""&&g.shift(),g.length&&g[g.length-1]===""&&g.pop(),y===n+2&&(b=t.push("tbody_open","tbody",1),b.map=I=[n+2,0]),b=t.push("tr_open","tr",1),b.map=[y,y+1],f=0;f{"use strict";xm.exports=function(t,n,l){var c,d,a;if(t.sCount[n]-t.blkIndent<4)return!1;for(d=c=n+1;c=4){c++,d=c;continue}break}return t.line=d,a=t.push("code_block","code",0),a.content=t.getLines(n,d,4+t.blkIndent,!1)+` +`,a.map=[n,t.line],!0}});var _m=Me((y1,km)=>{"use strict";km.exports=function(t,n,l,c){var d,a,h,f,p,y,g,v=!1,b=t.bMarks[n]+t.tShift[n],k=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||b+3>k||(d=t.src.charCodeAt(b),d!==126&&d!==96)||(p=b,b=t.skipChars(b,d),a=b-p,a<3)||(g=t.src.slice(p,b),h=t.src.slice(b,k),d===96&&h.indexOf(String.fromCharCode(d))>=0))return!1;if(c)return!0;for(f=n;f++,!(f>=l||(b=p=t.bMarks[f]+t.tShift[f],k=t.eMarks[f],b=4)&&(b=t.skipChars(b,d),!(b-p{"use strict";var Sm=Ft().isSpace;Em.exports=function(t,n,l,c){var d,a,h,f,p,y,g,v,b,k,E,w,I,S,P,F,H,$,J,K,Y=t.lineMax,G=t.bMarks[n]+t.tShift[n],j=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||t.src.charCodeAt(G++)!==62)return!1;if(c)return!0;for(f=b=t.sCount[n]+1,t.src.charCodeAt(G)===32?(G++,f++,b++,d=!1,F=!0):t.src.charCodeAt(G)===9?(F=!0,(t.bsCount[n]+b)%4==3?(G++,f++,b++,d=!1):d=!0):F=!1,k=[t.bMarks[n]],t.bMarks[n]=G;G=j,S=[t.sCount[n]],t.sCount[n]=b-f,P=[t.tShift[n]],t.tShift[n]=G-t.bMarks[n],$=t.md.block.ruler.getRules("blockquote"),I=t.parentType,t.parentType="blockquote",v=n+1;v=j));v++){if(t.src.charCodeAt(G++)===62&&!K){for(f=b=t.sCount[v]+1,t.src.charCodeAt(G)===32?(G++,f++,b++,d=!1,F=!0):t.src.charCodeAt(G)===9?(F=!0,(t.bsCount[v]+b)%4==3?(G++,f++,b++,d=!1):d=!0):F=!1,k.push(t.bMarks[v]),t.bMarks[v]=G;G=j,E.push(t.bsCount[v]),t.bsCount[v]=t.sCount[v]+1+(F?1:0),S.push(t.sCount[v]),t.sCount[v]=b-f,P.push(t.tShift[v]),t.tShift[v]=G-t.bMarks[v];continue}if(y)break;for(H=!1,h=0,p=$.length;h",J.map=g=[n,0],t.md.block.tokenize(t,n,v),J=t.push("blockquote_close","blockquote",-1),J.markup=">",t.lineMax=Y,t.parentType=I,g[1]=t.line,h=0;h{"use strict";var kw=Ft().isSpace;Tm.exports=function(t,n,l,c){var d,a,h,f,p=t.bMarks[n]+t.tShift[n],y=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||(d=t.src.charCodeAt(p++),d!==42&&d!==45&&d!==95))return!1;for(a=1;p{"use strict";var Lm=Ft().isSpace;function Dm(i,t){var n,l,c,d;return l=i.bMarks[t]+i.tShift[t],c=i.eMarks[t],n=i.src.charCodeAt(l++),n!==42&&n!==45&&n!==43||l=d||(n=i.src.charCodeAt(c++),n<48||n>57))return-1;for(;;){if(c>=d)return-1;if(n=i.src.charCodeAt(c++),n>=48&&n<=57){if(c-l>=10)return-1;continue}if(n===41||n===46)break;return-1}return c=4||t.listIndent>=0&&t.sCount[n]-t.listIndent>=4&&t.sCount[n]=t.blkIndent&&(N=!0),(j=Im(t,n))>=0){if(g=!0,C=t.bMarks[n]+t.tShift[n],I=Number(t.src.slice(C,j-1)),N&&I!==1)return!1}else if((j=Dm(t,n))>=0)g=!1;else return!1;if(N&&t.skipSpaces(j)>=t.eMarks[n])return!1;if(w=t.src.charCodeAt(j-1),c)return!0;for(E=t.tokens.length,g?(R=t.push("ordered_list_open","ol",1),I!==1&&(R.attrs=[["start",I]])):R=t.push("bullet_list_open","ul",1),R.map=k=[n,0],R.markup=String.fromCharCode(w),P=n,z=!1,Z=t.md.block.ruler.getRules("list"),$=t.parentType,t.parentType="list";P=S?p=1:p=F-y,p>4&&(p=1),f=y+p,R=t.push("list_item_open","li",1),R.markup=String.fromCharCode(w),R.map=v=[n,0],g&&(R.info=t.src.slice(C,j-1)),Y=t.tight,K=t.tShift[n],J=t.sCount[n],H=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=f,t.tight=!0,t.tShift[n]=a-t.bMarks[n],t.sCount[n]=F,a>=S&&t.isEmpty(n+1)?t.line=Math.min(t.line+2,l):t.md.block.tokenize(t,n,l,!0),(!t.tight||z)&&(ne=!1),z=t.line-n>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=H,t.tShift[n]=K,t.sCount[n]=J,t.tight=Y,R=t.push("list_item_close","li",-1),R.markup=String.fromCharCode(w),P=n=t.line,v[1]=P,a=t.bMarks[n],P>=l||t.sCount[P]=4)break;for(U=!1,h=0,b=Z.length;h{"use strict";var Sw=Ft().normalizeReference,Ma=Ft().isSpace;Om.exports=function(t,n,l,c){var d,a,h,f,p,y,g,v,b,k,E,w,I,S,P,F,H=0,$=t.bMarks[n]+t.tShift[n],J=t.eMarks[n],K=n+1;if(t.sCount[n]-t.blkIndent>=4||t.src.charCodeAt($)!==91)return!1;for(;++$3)&&!(t.sCount[K]<0)){for(S=!1,y=0,g=P.length;y{"use strict";Rm.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var ml=Me((S1,pl)=>{"use strict";var Ew="[a-zA-Z_:][a-zA-Z0-9:._-]*",Cw="[^\"'=<>`\\x00-\\x20]+",Tw="'[^']*'",Aw='"[^"]*"',Lw="(?:"+Cw+"|"+Tw+"|"+Aw+")",Dw="(?:\\s+"+Ew+"(?:\\s*=\\s*"+Lw+")?)",Nm="<[A-Za-z][A-Za-z0-9\\-]*"+Dw+"*\\s*\\/?>",Bm="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Iw="|",Fw="<[?][\\s\\S]*?[?]>",Mw="]*>",Ow="",Pw=new RegExp("^(?:"+Nm+"|"+Bm+"|"+Iw+"|"+Fw+"|"+Mw+"|"+Ow+")"),Rw=new RegExp("^(?:"+Nm+"|"+Bm+")");pl.exports.HTML_TAG_RE=Pw;pl.exports.HTML_OPEN_CLOSE_TAG_RE=Rw});var jm=Me((E1,qm)=>{"use strict";var zw=zm(),Nw=ml().HTML_OPEN_CLOSE_TAG_RE,_i=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(Nw.source+"\\s*$"),/^$/,!1]];qm.exports=function(t,n,l,c){var d,a,h,f,p=t.bMarks[n]+t.tShift[n],y=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(p)!==60)return!1;for(f=t.src.slice(p,y),d=0;d<_i.length&&!_i[d][0].test(f);d++);if(d===_i.length)return!1;if(c)return _i[d][2];if(a=n+1,!_i[d][1].test(f)){for(;a{"use strict";var $m=Ft().isSpace;Um.exports=function(t,n,l,c){var d,a,h,f,p=t.bMarks[n]+t.tShift[n],y=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||(d=t.src.charCodeAt(p),d!==35||p>=y))return!1;for(a=1,d=t.src.charCodeAt(++p);d===35&&p6||pp&&$m(t.src.charCodeAt(h-1))&&(y=h),t.line=n+1,f=t.push("heading_open","h"+String(a),1),f.markup="########".slice(0,a),f.map=[n,t.line],f=t.push("inline","",0),f.content=t.src.slice(p,y).trim(),f.map=[n,t.line],f.children=[],f=t.push("heading_close","h"+String(a),-1),f.markup="########".slice(0,a)),!0)}});var Gm=Me((T1,Wm)=>{"use strict";Wm.exports=function(t,n,l){var c,d,a,h,f,p,y,g,v,b=n+1,k,E=t.md.block.ruler.getRules("paragraph");if(t.sCount[n]-t.blkIndent>=4)return!1;for(k=t.parentType,t.parentType="paragraph";b3)){if(t.sCount[b]>=t.blkIndent&&(p=t.bMarks[b]+t.tShift[b],y=t.eMarks[b],p=y)))){g=v===61?1:2;break}if(!(t.sCount[b]<0)){for(d=!1,a=0,h=E.length;a{"use strict";Km.exports=function(t,n){var l,c,d,a,h,f,p=n+1,y=t.md.block.ruler.getRules("paragraph"),g=t.lineMax;for(f=t.parentType,t.parentType="paragraph";p3)&&!(t.sCount[p]<0)){for(c=!1,d=0,a=y.length;d{"use strict";var Ym=Fa(),Oa=Ft().isSpace;function rn(i,t,n,l){var c,d,a,h,f,p,y,g;for(this.src=i,this.md=t,this.env=n,this.tokens=l,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",d=this.src,g=!1,a=h=p=y=0,f=d.length;h0&&this.level++,this.tokens.push(l),l};rn.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};rn.prototype.skipEmptyLines=function(t){for(var n=this.lineMax;tn;)if(!Oa(this.src.charCodeAt(--t)))return t+1;return t};rn.prototype.skipChars=function(t,n){for(var l=this.src.length;tl;)if(n!==this.src.charCodeAt(--t))return t+1;return t};rn.prototype.getLines=function(t,n,l,c){var d,a,h,f,p,y,g,v=t;if(t>=n)return"";for(y=new Array(n-t),d=0;vl?y[d]=new Array(a-l+1).join(" ")+this.src.slice(f,p):y[d]=this.src.slice(f,p)}return y.join("")};rn.prototype.Token=Ym;Xm.exports=rn});var Jm=Me((D1,Qm)=>{"use strict";var Bw=Da(),Pa=[["table",bm(),["paragraph","reference"]],["code",wm()],["fence",_m(),["paragraph","reference","blockquote","list"]],["blockquote",Cm(),["paragraph","reference","blockquote","list"]],["hr",Am(),["paragraph","reference","blockquote","list"]],["list",Mm(),["paragraph","reference","blockquote"]],["reference",Pm()],["html_block",jm(),["paragraph","reference","blockquote"]],["heading",Hm(),["paragraph","reference","blockquote"]],["lheading",Gm()],["paragraph",Vm()]];function Ra(){this.ruler=new Bw;for(var i=0;i=n||i.sCount[h]=p){i.line=n;break}for(c=0;c{"use strict";function qw(i){switch(i){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}eg.exports=function(t,n){for(var l=t.pos;l{"use strict";var jw=Ft().isSpace;rg.exports=function(t,n){var l,c,d=t.pos;if(t.src.charCodeAt(d)!==10)return!1;for(l=t.pending.length-1,c=t.posMax,n||(l>=0&&t.pending.charCodeAt(l)===32?l>=1&&t.pending.charCodeAt(l-1)===32?(t.pending=t.pending.replace(/ +$/,""),t.push("hardbreak","br",0)):(t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0)):t.push("softbreak","br",0)),d++;d{"use strict";var $w=Ft().isSpace,gl=[];for(vl=0;vl<256;vl++)gl.push(0);var vl;"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(i){gl[i.charCodeAt(0)]=1});ig.exports=function(t,n){var l,c=t.pos,d=t.posMax;if(t.src.charCodeAt(c)!==92)return!1;if(c++,c{"use strict";ag.exports=function(t,n){var l,c,d,a,h,f,p,y,g=t.pos,v=t.src.charCodeAt(g);if(v!==96)return!1;for(l=g,g++,c=t.posMax;g{"use strict";yl.exports.tokenize=function(t,n){var l,c,d,a,h,f=t.pos,p=t.src.charCodeAt(f);if(n||p!==126||(c=t.scanDelims(t.pos,!0),a=c.length,h=String.fromCharCode(p),a<2))return!1;for(a%2&&(d=t.push("text","",0),d.content=h,a--),l=0;l{"use strict";xl.exports.tokenize=function(t,n){var l,c,d,a=t.pos,h=t.src.charCodeAt(a);if(n||h!==95&&h!==42)return!1;for(c=t.scanDelims(t.pos,h===42),l=0;l=0;n--)l=t[n],!(l.marker!==95&&l.marker!==42)&&l.end!==-1&&(c=t[l.end],h=n>0&&t[n-1].end===l.end+1&&t[n-1].token===l.token-1&&t[l.end+1].token===c.token+1&&t[n-1].marker===l.marker,a=String.fromCharCode(l.marker),d=i.tokens[l.token],d.type=h?"strong_open":"em_open",d.tag=h?"strong":"em",d.nesting=1,d.markup=h?a+a:a,d.content="",d=i.tokens[c.token],d.type=h?"strong_close":"em_close",d.tag=h?"strong":"em",d.nesting=-1,d.markup=h?a+a:a,d.content="",h&&(i.tokens[t[n-1].token].content="",i.tokens[t[l.end+1].token].content="",n--))}xl.exports.postProcess=function(t){var n,l=t.tokens_meta,c=t.tokens_meta.length;for(ug(t,t.delimiters),n=0;n{"use strict";var Uw=Ft().normalizeReference,kl=Ft().isSpace;cg.exports=function(t,n){var l,c,d,a,h,f,p,y,g,v="",b="",k=t.pos,E=t.posMax,w=t.pos,I=!0;if(t.src.charCodeAt(t.pos)!==91||(h=t.pos+1,a=t.md.helpers.parseLinkLabel(t,t.pos,!0),a<0))return!1;if(f=a+1,f=E)return!1;if(w=f,p=t.md.helpers.parseLinkDestination(t.src,f,t.posMax),p.ok){for(v=t.md.normalizeLink(p.str),t.md.validateLink(v)?f=p.pos:v="",w=f;f=E||t.src.charCodeAt(f)!==41)&&(I=!0),f++}if(I){if(typeof t.env.references=="undefined")return!1;if(f=0?d=t.src.slice(w,f++):f=a+1):f=a+1,d||(d=t.src.slice(h,a)),y=t.env.references[Uw(d)],!y)return t.pos=k,!1;v=y.href,b=y.title}return n||(t.pos=h,t.posMax=a,g=t.push("link_open","a",1),g.attrs=l=[["href",v]],b&&l.push(["title",b]),t.md.inline.tokenize(t),g=t.push("link_close","a",-1)),t.pos=f,t.posMax=E,!0}});var hg=Me((N1,dg)=>{"use strict";var Hw=Ft().normalizeReference,_l=Ft().isSpace;dg.exports=function(t,n){var l,c,d,a,h,f,p,y,g,v,b,k,E,w="",I=t.pos,S=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91||(f=t.pos+2,h=t.md.helpers.parseLinkLabel(t,t.pos+1,!1),h<0))return!1;if(p=h+1,p=S)return!1;for(E=p,g=t.md.helpers.parseLinkDestination(t.src,p,t.posMax),g.ok&&(w=t.md.normalizeLink(g.str),t.md.validateLink(w)?p=g.pos:w=""),E=p;p=S||t.src.charCodeAt(p)!==41)return t.pos=I,!1;p++}else{if(typeof t.env.references=="undefined")return!1;if(p=0?a=t.src.slice(E,p++):p=h+1):p=h+1,a||(a=t.src.slice(f,h)),y=t.env.references[Hw(a)],!y)return t.pos=I,!1;w=y.href,v=y.title}return n||(d=t.src.slice(f,h),t.md.inline.parse(d,t.md,t.env,k=[]),b=t.push("image","img",0),b.attrs=l=[["src",w],["alt",""]],b.children=k,b.content=d,v&&l.push(["title",v])),t.pos=p,t.posMax=S,!0}});var mg=Me((B1,pg)=>{"use strict";var Ww=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Gw=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;pg.exports=function(t,n){var l,c,d,a,h,f,p=t.pos;if(t.src.charCodeAt(p)!==60)return!1;for(h=t.pos,f=t.posMax;;){if(++p>=f||(a=t.src.charCodeAt(p),a===60))return!1;if(a===62)break}return l=t.src.slice(h+1,p),Gw.test(l)?(c=t.md.normalizeLink(l),t.md.validateLink(c)?(n||(d=t.push("link_open","a",1),d.attrs=[["href",c]],d.markup="autolink",d.info="auto",d=t.push("text","",0),d.content=t.md.normalizeLinkText(l),d=t.push("link_close","a",-1),d.markup="autolink",d.info="auto"),t.pos+=l.length+2,!0):!1):Ww.test(l)?(c=t.md.normalizeLink("mailto:"+l),t.md.validateLink(c)?(n||(d=t.push("link_open","a",1),d.attrs=[["href",c]],d.markup="autolink",d.info="auto",d=t.push("text","",0),d.content=t.md.normalizeLinkText(l),d=t.push("link_close","a",-1),d.markup="autolink",d.info="auto"),t.pos+=l.length+2,!0):!1):!1}});var vg=Me((q1,gg)=>{"use strict";var Kw=ml().HTML_TAG_RE;function Vw(i){var t=i|32;return t>=97&&t<=122}gg.exports=function(t,n){var l,c,d,a,h=t.pos;return!t.md.options.html||(d=t.posMax,t.src.charCodeAt(h)!==60||h+2>=d)||(l=t.src.charCodeAt(h+1),l!==33&&l!==63&&l!==47&&!Vw(l))||(c=t.src.slice(h).match(Kw),!c)?!1:(n||(a=t.push("html_inline","",0),a.content=t.src.slice(h,h+c[0].length)),t.pos+=c[0].length,!0)}});var wg=Me((j1,xg)=>{"use strict";var yg=ol(),Yw=Ft().has,Xw=Ft().isValidEntityCode,bg=Ft().fromCodePoint,Zw=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Qw=/^&([a-z][a-z0-9]{1,31});/i;xg.exports=function(t,n){var l,c,d,a=t.pos,h=t.posMax;if(t.src.charCodeAt(a)!==38)return!1;if(a+1{"use strict";function kg(i,t){var n,l,c,d,a,h,f,p,y={},g=t.length;for(n=0;na;l-=d.jump+1)if(d=t[l],d.marker===c.marker&&d.open&&d.end<0&&(f=!1,(d.close||c.open)&&(d.length+c.length)%3==0&&(d.length%3!=0||c.length%3!=0)&&(f=!0),!f)){p=l>0&&!t[l-1].open?t[l-1].jump+1:0,c.jump=n-l+p,c.open=!1,d.end=n,d.jump=p,d.close=!1,h=-1;break}h!==-1&&(y[c.marker][(c.open?3:0)+(c.length||0)%3]=h)}}_g.exports=function(t){var n,l=t.tokens_meta,c=t.tokens_meta.length;for(kg(t,t.delimiters),n=0;n{"use strict";Eg.exports=function(t){var n,l,c=0,d=t.tokens,a=t.tokens.length;for(n=l=0;n0&&c++,d[n].type==="text"&&n+1{"use strict";var Sl=Fa(),Tg=Ft().isWhiteSpace,Ag=Ft().isPunctChar,Lg=Ft().isMdAsciiPunct;function go(i,t,n,l){this.src=i,this.env=n,this.md=t,this.tokens=l,this.tokens_meta=Array(l.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}go.prototype.pushPending=function(){var i=new Sl("text","",0);return i.content=this.pending,i.level=this.pendingLevel,this.tokens.push(i),this.pending="",i};go.prototype.push=function(i,t,n){this.pending&&this.pushPending();var l=new Sl(i,t,n),c=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),l.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],c={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(l),this.tokens_meta.push(c),l};go.prototype.scanDelims=function(i,t){var n=i,l,c,d,a,h,f,p,y,g,v=!0,b=!0,k=this.posMax,E=this.src.charCodeAt(i);for(l=i>0?this.src.charCodeAt(i-1):32;n{"use strict";var Fg=Da(),El=[["text",tg()],["newline",ng()],["escape",og()],["backticks",sg()],["strikethrough",bl().tokenize],["emphasis",wl().tokenize],["link",fg()],["image",hg()],["autolink",mg()],["html_inline",vg()],["entity",wg()]],Cl=[["balance_pairs",Sg()],["strikethrough",bl().postProcess],["emphasis",wl().postProcess],["text_collapse",Cg()]];function vo(){var i;for(this.ruler=new Fg,i=0;i=d)break;continue}i.pending+=i.src[i.pos++]}i.pending&&i.pushPending()};vo.prototype.parse=function(i,t,n,l){var c,d,a,h=new this.State(i,t,n,l);for(this.tokenize(h),d=this.ruler2.getRules(""),a=d.length,c=0;c{"use strict";Pg.exports=function(i){var t={};t.src_Any=sl().source,t.src_Cc=ll().source,t.src_Z=ul().source,t.src_P=Ea().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><\uFF5C]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(i&&i["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}});var $g=Me((K1,jg)=>{"use strict";function Tl(i){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(n){!n||Object.keys(n).forEach(function(l){i[l]=n[l]})}),i}function za(i){return Object.prototype.toString.call(i)}function Jw(i){return za(i)==="[object String]"}function ek(i){return za(i)==="[object Object]"}function tk(i){return za(i)==="[object RegExp]"}function zg(i){return za(i)==="[object Function]"}function rk(i){return i.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Ng={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function nk(i){return Object.keys(i||{}).reduce(function(t,n){return t||Ng.hasOwnProperty(n)},!1)}var ik={"http:":{validate:function(i,t,n){var l=i.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(l)?l.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(i,t,n){var l=i.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(l)?t>=3&&i[t-3]===":"||t>=3&&i[t-3]==="/"?0:l.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(i,t,n){var l=i.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(l)?l.match(n.re.mailto)[0].length:0}}},ok="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",ak="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function sk(i){i.__index__=-1,i.__text_cache__=""}function lk(i){return function(t,n){var l=t.slice(n);return i.test(l)?l.match(i)[0].length:0}}function Bg(){return function(i,t){t.normalize(i)}}function Na(i){var t=i.re=Rg()(i.__opts__),n=i.__tlds__.slice();i.onCompile(),i.__tlds_replaced__||n.push(ok),n.push(t.src_xn),t.src_tlds=n.join("|");function l(h){return h.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(l(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(l(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(l(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(l(t.tpl_host_fuzzy_test),"i");var c=[];i.__compiled__={};function d(h,f){throw new Error('(LinkifyIt) Invalid schema "'+h+'": '+f)}Object.keys(i.__schemas__).forEach(function(h){var f=i.__schemas__[h];if(f!==null){var p={validate:null,link:null};if(i.__compiled__[h]=p,ek(f)){tk(f.validate)?p.validate=lk(f.validate):zg(f.validate)?p.validate=f.validate:d(h,f),zg(f.normalize)?p.normalize=f.normalize:f.normalize?d(h,f):p.normalize=Bg();return}if(Jw(f)){c.push(h);return}d(h,f)}}),c.forEach(function(h){!i.__compiled__[i.__schemas__[h]]||(i.__compiled__[h].validate=i.__compiled__[i.__schemas__[h]].validate,i.__compiled__[h].normalize=i.__compiled__[i.__schemas__[h]].normalize)}),i.__compiled__[""]={validate:null,normalize:Bg()};var a=Object.keys(i.__compiled__).filter(function(h){return h.length>0&&i.__compiled__[h]}).map(rk).join("|");i.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+a+")","i"),i.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+a+")","ig"),i.re.pretest=RegExp("("+i.re.schema_test.source+")|("+i.re.host_fuzzy_test.source+")|@","i"),sk(i)}function uk(i,t){var n=i.__index__,l=i.__last_index__,c=i.__text_cache__.slice(n,l);this.schema=i.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=l+t,this.raw=c,this.text=c,this.url=c}function qg(i,t){var n=new uk(i,t);return i.__compiled__[n.schema].normalize(n,i),n}function Br(i,t){if(!(this instanceof Br))return new Br(i,t);t||nk(i)&&(t=i,i={}),this.__opts__=Tl({},Ng,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Tl({},ik,i),this.__compiled__={},this.__tlds__=ak,this.__tlds_replaced__=!1,this.re={},Na(this)}Br.prototype.add=function(t,n){return this.__schemas__[t]=n,Na(this),this};Br.prototype.set=function(t){return this.__opts__=Tl(this.__opts__,t),this};Br.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var n,l,c,d,a,h,f,p,y;if(this.re.schema_test.test(t)){for(f=this.re.schema_search,f.lastIndex=0;(n=f.exec(t))!==null;)if(d=this.testSchemaAt(t,n[2],f.lastIndex),d){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+d;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(p=t.search(this.re.host_fuzzy_test),p>=0&&(this.__index__<0||p=0&&(c=t.match(this.re.email_fuzzy))!==null&&(a=c.index+c[1].length,h=c.index+c[0].length,(this.__index__<0||athis.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=h))),this.__index__>=0};Br.prototype.pretest=function(t){return this.re.pretest.test(t)};Br.prototype.testSchemaAt=function(t,n,l){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,l,this):0};Br.prototype.match=function(t){var n=0,l=[];this.__index__>=0&&this.__text_cache__===t&&(l.push(qg(this,n)),n=this.__last_index__);for(var c=n?t.slice(n):t;this.test(c);)l.push(qg(this,n)),c=c.slice(this.__last_index__),n+=this.__last_index__;return l.length?l:null};Br.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(l,c,d){return l!==d[c-1]}).reverse(),Na(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Na(this),this)};Br.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};Br.prototype.onCompile=function(){};jg.exports=Br});var Qg={};Ax(Qg,{decode:()=>Fl,default:()=>bk,encode:()=>Ml,toASCII:()=>Zg,toUnicode:()=>Xg,ucs2decode:()=>Il,ucs2encode:()=>Kg});function Un(i){throw new RangeError(mk[i])}function gk(i,t){let n=[],l=i.length;for(;l--;)n[l]=t(i[l]);return n}function Gg(i,t){let n=i.split("@"),l="";n.length>1&&(l=n[0]+"@",i=n[1]),i=i.replace(pk,".");let c=i.split("."),d=gk(c,t).join(".");return l+d}function Il(i){let t=[],n=0,l=i.length;for(;n=55296&&c<=56319&&n{"use strict";Si=2147483647,nn=36,Al=1,yo=26,ck=38,fk=700,Ug=72,Hg=128,Wg="-",dk=/^xn--/,hk=/[^\0-\x7E]/,pk=/[\x2E\u3002\uFF0E\uFF61]/g,mk={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ll=nn-Al,on=Math.floor,Dl=String.fromCharCode;Kg=i=>String.fromCodePoint(...i),vk=function(i){return i-48<10?i-22:i-65<26?i-65:i-97<26?i-97:nn},Vg=function(i,t){return i+22+75*(i<26)-((t!=0)<<5)},Yg=function(i,t,n){let l=0;for(i=n?on(i/fk):i>>1,i+=on(i/t);i>Ll*yo>>1;l+=nn)i=on(i/Ll);return on(l+(Ll+1)*i/(i+ck))},Fl=function(i){let t=[],n=i.length,l=0,c=Hg,d=Ug,a=i.lastIndexOf(Wg);a<0&&(a=0);for(let h=0;h=128&&Un("not-basic"),t.push(i.charCodeAt(h));for(let h=a>0?a+1:0;h=n&&Un("invalid-input");let v=vk(i.charCodeAt(h++));(v>=nn||v>on((Si-l)/y))&&Un("overflow"),l+=v*y;let b=g<=d?Al:g>=d+yo?yo:g-d;if(von(Si/k)&&Un("overflow"),y*=k}let p=t.length+1;d=Yg(l-f,p,f==0),on(l/p)>Si-c&&Un("overflow"),c+=on(l/p),l%=p,t.splice(l++,0,c)}return String.fromCodePoint(...t)},Ml=function(i){let t=[];i=Il(i);let n=i.length,l=Hg,c=0,d=Ug;for(let f of i)f<128&&t.push(Dl(f));let a=t.length,h=a;for(a&&t.push(Wg);h=l&&yon((Si-c)/p)&&Un("overflow"),c+=(f-l)*p,l=f;for(let y of i)if(ySi&&Un("overflow"),y==l){let g=c;for(let v=nn;;v+=nn){let b=v<=d?Al:v>=d+yo?yo:v-d;if(g{"use strict";ev.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}});var nv=Me((Y1,rv)=>{"use strict";rv.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}});var ov=Me((X1,iv)=>{"use strict";iv.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}});var uv=Me((Z1,lv)=>{"use strict";var bo=Ft(),xk=Up(),wk=Wp(),kk=gm(),_k=Jm(),Sk=Og(),Ek=$g(),Hn=al(),av=(Jg(),Qg),Ck={default:tv(),zero:nv(),commonmark:ov()},Tk=/^(vbscript|javascript|file|data):/,Ak=/^data:image\/(gif|png|jpeg|webp);/;function Lk(i){var t=i.trim().toLowerCase();return Tk.test(t)?!!Ak.test(t):!0}var sv=["http:","https:","mailto:"];function Dk(i){var t=Hn.parse(i,!0);if(t.hostname&&(!t.protocol||sv.indexOf(t.protocol)>=0))try{t.hostname=av.toASCII(t.hostname)}catch{}return Hn.encode(Hn.format(t))}function Ik(i){var t=Hn.parse(i,!0);if(t.hostname&&(!t.protocol||sv.indexOf(t.protocol)>=0))try{t.hostname=av.toUnicode(t.hostname)}catch{}return Hn.decode(Hn.format(t),Hn.decode.defaultChars+"%")}function qr(i,t){if(!(this instanceof qr))return new qr(i,t);t||bo.isString(i)||(t=i||{},i="default"),this.inline=new Sk,this.block=new _k,this.core=new kk,this.renderer=new wk,this.linkify=new Ek,this.validateLink=Lk,this.normalizeLink=Dk,this.normalizeLinkText=Ik,this.utils=bo,this.helpers=bo.assign({},xk),this.options={},this.configure(i),t&&this.set(t)}qr.prototype.set=function(i){return bo.assign(this.options,i),this};qr.prototype.configure=function(i){var t=this,n;if(bo.isString(i)&&(n=i,i=Ck[n],!i))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!i)throw new Error("Wrong `markdown-it` preset, can't be empty");return i.options&&t.set(i.options),i.components&&Object.keys(i.components).forEach(function(l){i.components[l].rules&&t[l].ruler.enableOnly(i.components[l].rules),i.components[l].rules2&&t[l].ruler2.enableOnly(i.components[l].rules2)}),this};qr.prototype.enable=function(i,t){var n=[];Array.isArray(i)||(i=[i]),["core","block","inline"].forEach(function(c){n=n.concat(this[c].ruler.enable(i,!0))},this),n=n.concat(this.inline.ruler2.enable(i,!0));var l=i.filter(function(c){return n.indexOf(c)<0});if(l.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+l);return this};qr.prototype.disable=function(i,t){var n=[];Array.isArray(i)||(i=[i]),["core","block","inline"].forEach(function(c){n=n.concat(this[c].ruler.disable(i,!0))},this),n=n.concat(this.inline.ruler2.disable(i,!0));var l=i.filter(function(c){return n.indexOf(c)<0});if(l.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+l);return this};qr.prototype.use=function(i){var t=[this].concat(Array.prototype.slice.call(arguments,1));return i.apply(i,t),this};qr.prototype.parse=function(i,t){if(typeof i!="string")throw new Error("Input data should be a String");var n=new this.core.State(i,this,t);return this.core.process(n),n.tokens};qr.prototype.render=function(i,t){return t=t||{},this.renderer.render(this.parse(i,t),this.options,t)};qr.prototype.parseInline=function(i,t){var n=new this.core.State(i,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};qr.prototype.renderInline=function(i,t){return t=t||{},this.renderer.render(this.parseInline(i,t),this.options,t)};lv.exports=qr});var fv=Me((Q1,cv)=>{"use strict";cv.exports=uv()});var gv=Me((J1,mv)=>{var Ol=!0,dv=!1,hv=!1;mv.exports=function(i,t){t&&(Ol=!t.enabled,dv=!!t.label,hv=!!t.labelAfter),i.core.ruler.after("inline","github-task-lists",function(n){for(var l=n.tokens,c=2;c=0;l--)if(i[l].level===n)return l;return-1}function Mk(i,t){return Bk(i[t])&&qk(i[t-1])&&jk(i[t-2])&&$k(i[t])}function Ok(i,t){if(i.children.unshift(Pk(i,t)),i.children[1].content=i.children[1].content.slice(3),i.content=i.content.slice(3),dv)if(hv){i.children.pop();var n="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);i.children[0].content=i.children[0].content.slice(0,-1)+' id="'+n+'">',i.children.push(Nk(i.content,n,t))}else i.children.unshift(Rk(t)),i.children.push(zk(t))}function Pk(i,t){var n=new t("html_inline","",0),l=Ol?' disabled="" ':"";return i.content.indexOf("[ ] ")===0?n.content='':(i.content.indexOf("[x] ")===0||i.content.indexOf("[X] ")===0)&&(n.content=''),n}function Rk(i){var t=new i("html_inline","",0);return t.content="",t}function Nk(i,t,n){var l=new n("html_inline","",0);return l.content='",l.attrs=[{for:t}],l}function Bk(i){return i.type==="inline"}function qk(i){return i.type==="paragraph_open"}function jk(i){return i.type==="list_item_open"}function $k(i){return i.content.indexOf("[ ] ")===0||i.content.indexOf("[x] ")===0||i.content.indexOf("[X] ")===0}});var Ji={},Dx=[];function Zo(i,t){if(Dx.push({name:i,data:t}),typeof Ji[i]=="undefined")return this;let n=Ji[i];for(let l=0;lZo("success",i),error:i=>Zo("error",i),showValidationErrors:Mx};async function Ox(i,t={}){return Bc(i,{method:"GET",params:t})}async function Px(i,t=null){return Qo("POST",i,t)}async function Rx(i,t=null){return Qo("PUT",i,t)}async function zx(i,t=null){return Qo("PATCH",i,t)}async function Nx(i,t=null){return Qo("DELETE",i,t)}async function Qo(i,t,n=null){let l={method:i,body:n};return typeof n=="object"&&!(n instanceof FormData)&&(l.headers={"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},l.body=JSON.stringify(n)),n instanceof FormData&&i!=="post"&&(n.append("_method",i),l.method="post"),Bc(t,l)}async function Bc(i,t={}){if(i.startsWith("http")||(i=window.baseUrl(i)),t.params){let a=new URL(i);for(let h of Object.keys(t.params)){let f=t.params[h];typeof f!="undefined"&&f!==null&&a.searchParams.set(h,f)}i=a.toString()}let n=document.querySelector("meta[name=token]").getAttribute("content");t=Object.assign({},t,{credentials:"same-origin"}),t.headers=Object.assign({},t.headers||{},{baseURL:window.baseUrl(""),"X-CSRF-TOKEN":n});let l=await fetch(i,t),d={data:await Bx(l),headers:l.headers,redirected:l.redirected,status:l.status,statusText:l.statusText,url:l.url,original:l};if(!l.ok)throw d;return d}async function Bx(i){if(i.status===204)return null;let n=(i.headers.get("Content-Type")||"").split(";")[0].split("/").pop();return n==="javascript"||n==="json"?await i.json():await i.text()}var qc={get:Ox,post:Px,put:Rx,patch:zx,delete:Nx};var jc=class{constructor(t){this.store=new Map,this.parseTranslations()}parseTranslations(){let t=document.querySelectorAll('meta[name="translation"]');for(let n of t){let l=n.getAttribute("key"),c=n.getAttribute("value");this.store.set(l,c)}}get(t,n){let l=this.getTransText(t);return this.performReplacements(l,n)}getPlural(t,n,l){let c=this.getTransText(t);return this.parsePlural(c,n,l)}parsePlural(t,n,l){let c=t.split("|"),d=/^{([0-9]+)}/,a=/^\[([0-9]+),([0-9*]+)]/,h=null;for(let f of c){let p=f.match(d);if(p!==null&&Number(p[1])===n){h=f.replace(d,"").trim();break}let y=f.match(a);if(y!==null&&Number(y[1])<=n&&(y[2]==="*"||Number(y[2])>=n)){h=f.replace(a,"").trim();break}}return h===null&&c.length>1&&(h=n===1?c[0]:c[1]),h===null&&(h=c[0]),this.performReplacements(h,l)}getTransText(t){let n=this.store.get(t);return n===void 0&&console.warn(`Translation with key "${t}" does not exist`),n}performReplacements(t,n){if(!n)return t;let l=t.match(/:([\S]+)/g);return l===null||l.forEach(c=>{let d=c.substring(1);typeof n[d]!="undefined"&&(t=t.replace(c,n[d]))}),t}},$c=jc;function Jo(i,t){let n=document.querySelectorAll(i);for(let l of n)t(l)}function ea(i,t,n){for(let l of t)i.addEventListener(l,n)}function Rt(i,t){Array.isArray(i)||(i=[i]);for(let n of i)n.addEventListener("click",t),n.addEventListener("keydown",l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),t(l))})}function ta(i,t){Array.isArray(i)||(i=[i]);let n=l=>{l.key==="Enter"&&t(l)};i.forEach(l=>l.addEventListener("keypress",n))}function Ut(i,t,n,l){i.addEventListener(n,function(c){let d=c.target.closest(t);d&&l.call(d,c,d)})}function Uc(i,t){let n=document.querySelectorAll(i);t=t.toLowerCase();for(let l of n)if(l.textContent.toLowerCase().includes(t))return l;return null}function eo(i){i.innerHTML='
    '}function Hc(i){let t=i.querySelectorAll(".loading-container");for(let n of t)n.remove()}function to(i,t,n){let l;return function(){let c=this,d=arguments,a=function(){l=null,n||i.apply(c,d)},h=n&&!l;clearTimeout(l),l=setTimeout(a,t),h&&i.apply(c,d)}}function ro(i){if(!i)return;i.scrollIntoView({behavior:"smooth"});let t=document.getElementById("custom-styles").getAttribute("data-color-light"),n=window.getComputedStyle(i).getPropertyValue("background-color");i.style.backgroundColor=t,setTimeout(()=>{i.classList.add("selectFade"),i.style.backgroundColor=n},10),setTimeout(()=>{i.classList.remove("selectFade"),i.style.backgroundColor=""},3e3)}function Wc(i){return i.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function Gc(){let i=()=>((1+Math.random())*65536|0).toString(16).substring(1);return i()+i()+"-"+i()+"-"+i()+"-"+i()+"-"+i()+i()+i()}var Kc=class{setup(){this.modelRow=this.$refs.model,this.addButton=this.$refs.add,this.removeSelector=this.$opts.removeSelector,this.rowSelector=this.$opts.rowSelector,this.setupListeners()}setupListeners(){this.addButton.addEventListener("click",this.add.bind(this)),Ut(this.$el,this.removeSelector,"click",t=>{t.target.closest(this.rowSelector).remove()})}add(){let t=this.modelRow.cloneNode(!0);t.classList.remove("hidden"),this.setClonedInputNames(t),this.modelRow.parentNode.insertBefore(t,this.modelRow),window.components.init(t)}setClonedInputNames(t){let n=Gc(),l=t.querySelectorAll('[name*="randrowid"]');for(let c of l)c.name=c.name.split("randrowid").join(n)}},Vc=Kc;var Yc=class{setup(){this.row=this.$el,this.url=this.$opts.url,this.deleteButtons=this.$manyRefs.delete,Rt(this.deleteButtons,this.runDelete.bind(this))}runDelete(){this.row.style.opacity="0.7",this.row.style.pointerEvents="none",window.$http.delete(this.url).then(t=>{typeof t.data=="object"&&t.data.message&&window.$events.emit("success",t.data.message),this.row.remove()}).catch(t=>{this.row.style.opacity=null,this.row.style.pointerEvents=null})}},Xc=Yc;var Zc=class{setup(){this.container=this.$el,this.responseContainer=this.container,this.url=this.$opts.url,this.method=this.$opts.method||"post",this.successMessage=this.$opts.successMessage,this.submitButtons=this.$manyRefs.submit||[],this.$opts.responseContainer&&(this.responseContainer=this.container.closest(this.$opts.responseContainer)),this.setupListeners()}setupListeners(){if(this.container.tagName==="FORM"){this.container.addEventListener("submit",this.submitRealForm.bind(this));return}ta(this.container,t=>{this.submitFakeForm(),t.preventDefault()}),this.submitButtons.forEach(t=>Rt(t,this.submitFakeForm.bind(this)))}submitFakeForm(){let t=new FormData,n=this.container.querySelectorAll("[name]");for(let l of n)t.append(l.getAttribute("name"),l.value);this.submit(t)}submitRealForm(t){t.preventDefault();let n=new FormData(this.container);this.submit(n)}async submit(t){this.responseContainer.style.opacity="0.7",this.responseContainer.style.pointerEvents="none";try{let n=await window.$http[this.method.toLowerCase()](this.url,t);this.$emit("success",{formData:t}),this.responseContainer.innerHTML=n.data,this.successMessage&&window.$events.emit("success",this.successMessage)}catch(n){this.responseContainer.innerHTML=n.data}window.components.init(this.responseContainer),this.responseContainer.style.opacity=null,this.responseContainer.style.pointerEvents=null}},Qc=Zc;var Jc=class{setup(){this.container=this.$el,this.pageId=this.$opts.pageId,this.editContainer=this.$refs.editContainer,this.listContainer=this.$refs.listContainer,this.mainTabs=this.$refs.mainTabs,this.list=this.$refs.list,this.setupListeners()}setupListeners(){let t=this.reloadList.bind(this);this.container.addEventListener("dropzone-success",t),this.container.addEventListener("ajax-form-success",t),this.container.addEventListener("sortable-list-sort",n=>{this.updateOrder(n.detail.ids)}),this.container.addEventListener("event-emit-select-edit",n=>{this.startEdit(n.detail.id)}),this.container.addEventListener("event-emit-select-edit-back",n=>{this.stopEdit()}),this.container.addEventListener("event-emit-select-insert",n=>{let l=n.target.closest("[data-drag-content]").getAttribute("data-drag-content"),c=JSON.parse(l);window.$events.emit("editor::insert",{html:c["text/html"],markdown:c["text/plain"]})})}reloadList(){this.stopEdit(),this.mainTabs.components.tabs.show("items"),window.$http.get(`/attachments/get/page/${this.pageId}`).then(t=>{this.list.innerHTML=t.data,window.components.init(this.list)})}updateOrder(t){window.$http.put(`/attachments/sort/page/${this.pageId}`,{order:t}).then(n=>{window.$events.emit("success",n.data.message)})}async startEdit(t){this.editContainer.classList.remove("hidden"),this.listContainer.classList.add("hidden"),eo(this.editContainer);let n=await window.$http.get(`/attachments/edit/${t}`);this.editContainer.innerHTML=n.data,window.components.init(this.editContainer)}stopEdit(){this.editContainer.classList.add("hidden"),this.listContainer.classList.remove("hidden")}},ef=Jc;var tf=class{setup(){this.container=this.$el,this.setupListeners()}setupListeners(){let t=n=>n.key==="Control"||n.key==="Meta";window.addEventListener("keydown",n=>{t(n)&&this.addOpenQueryToLinks()},{passive:!0}),window.addEventListener("keyup",n=>{t(n)&&this.removeOpenQueryFromLinks()},{passive:!0})}addOpenQueryToLinks(){let t=this.container.querySelectorAll("a.attachment-file");for(let n of t)n.href.split("?")[1]!=="open=true"&&(n.href=n.href+"?open=true",n.setAttribute("target","_blank"))}removeOpenQueryFromLinks(){let t=this.container.querySelectorAll("a.attachment-file");for(let n of t)n.href=n.href.split("?")[0],n.removeAttribute("target")}},rf=tf;var Fs={},nf=class{setup(){this.parent=this.$el.parentElement,this.container=this.$el,this.type=this.$opts.type,this.url=this.$opts.url,this.input=this.$refs.input,this.list=this.$refs.list,this.lastPopulated=0,this.setupListeners()}setupListeners(){this.input.addEventListener("input",this.requestSuggestions.bind(this)),this.input.addEventListener("focus",this.requestSuggestions.bind(this)),this.input.addEventListener("keydown",t=>{t.key==="Tab"&&this.hideSuggestions()}),this.input.addEventListener("blur",this.hideSuggestionsIfFocusedLost.bind(this)),this.container.addEventListener("keydown",this.containerKeyDown.bind(this)),Ut(this.list,"button","click",(t,n)=>{this.selectSuggestion(n.textContent)}),Ut(this.list,"button","keydown",(t,n)=>{t.key==="Enter"&&this.selectSuggestion(n.textContent)})}selectSuggestion(t){this.input.value=t,this.lastPopulated=Date.now(),this.input.focus(),this.input.dispatchEvent(new Event("input",{bubbles:!0})),this.input.dispatchEvent(new Event("change",{bubbles:!0})),this.hideSuggestions()}containerKeyDown(t){t.key==="Enter"&&t.preventDefault(),!this.list.classList.contains("hidden")&&(t.key==="ArrowDown"?(this.moveFocus(!0),t.preventDefault()):t.key==="ArrowUp"?(this.moveFocus(!1),t.preventDefault()):t.key==="Escape"&&(this.hideSuggestions(),t.preventDefault()))}moveFocus(t=!0){let n=Array.from(this.container.querySelectorAll("input,button")),l=n.indexOf(document.activeElement),c=n[l+(t?1:-1)];c&&c.focus()}async requestSuggestions(){if(Date.now()-this.lastPopulated<50)return;let t=this.getNameFilterIfNeeded(),n=this.input.value.slice(0,3).toLowerCase(),l=await this.loadSuggestions(n,t),c=l.slice(0,6);n.length>0&&(c=l.filter(d=>d.toLowerCase().includes(n)).slice(0,6)),this.displaySuggestions(c)}getNameFilterIfNeeded(){return this.type!=="value"?null:this.parent.querySelector("input").value}async loadSuggestions(t,n=null){let l={search:t,name:n},c=`${this.url}:${JSON.stringify(l)}`;if(Fs[c])return Fs[c];let d=await window.$http.get(this.url,l);return Fs[c]=d.data,d.data}displaySuggestions(t){if(t.length===0)return this.hideSuggestions();this.list.innerHTML=t.map(n=>`
  • `).join(""),this.list.style.display="block";for(let n of this.list.querySelectorAll("button"))n.addEventListener("blur",this.hideSuggestionsIfFocusedLost.bind(this))}hideSuggestions(){this.list.style.display="none"}hideSuggestionsIfFocusedLost(t){this.container.contains(t.relatedTarget)||this.hideSuggestions()}},of=nf;var af=class{constructor(t){if(this.elem=t,this.targetElem=document.getElementById("header"),this.showing=!1,this.breakPoint=1200,document.body.classList.contains("flexbox")){this.elem.style.display="none";return}this.elem.addEventListener("click",this.scrollToTop.bind(this)),window.addEventListener("scroll",this.onPageScroll.bind(this))}onPageScroll(){let t=document.documentElement.scrollTop||document.body.scrollTop||0;!this.showing&&t>this.breakPoint?(this.elem.style.display="block",this.showing=!0,setTimeout(()=>{this.elem.style.opacity=.4},1)):this.showing&&t{this.elem.style.display="none"},500))}scrollToTop(){let t=this.targetElem.getBoundingClientRect().top,n=document.documentElement.scrollTop?document.documentElement:document.body,l=300,c=Date.now(),d=this.targetElem.getBoundingClientRect().top;function a(){let h=1-(Date.now()-c)/l,f=Math.abs(h*d);h>0?(n.scrollTop=f,requestAnimationFrame(a.bind(this))):n.scrollTop=t}requestAnimationFrame(a.bind(this))}},sf=af;function lf(i,t){var n=Object.keys(i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);t&&(l=l.filter(function(c){return Object.getOwnPropertyDescriptor(i,c).enumerable})),n.push.apply(n,l)}return n}function Qr(i){for(var t=1;t=0)&&(n[c]=i[c]);return n}function $x(i,t){if(i==null)return{};var n=jx(i,t),l,c;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(i);for(c=0;c=0)&&(!Object.prototype.propertyIsEnumerable.call(i,l)||(n[l]=i[l]))}return n}var Ux="1.14.0";function hn(i){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(i)}var pn=hn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),no=hn(/Edge/i),uf=hn(/firefox/i),io=hn(/safari/i)&&!hn(/chrome/i)&&!hn(/android/i),cf=hn(/iP(ad|od|hone)/i),Hx=hn(/chrome/i)&&hn(/android/i),ff={capture:!1,passive:!1};function It(i,t,n){i.addEventListener(t,n,!pn&&ff)}function Ct(i,t,n){i.removeEventListener(t,n,!pn&&ff)}function na(i,t){if(!!t){if(t[0]===">"&&(t=t.substring(1)),i)try{if(i.matches)return i.matches(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t)}catch{return!1}return!1}}function Wx(i){return i.host&&i!==document&&i.host.nodeType?i.host:i.parentNode}function Jr(i,t,n,l){if(i){n=n||document;do{if(t!=null&&(t[0]===">"?i.parentNode===n&&na(i,t):na(i,t))||l&&i===n)return i;if(i===n)break}while(i=Wx(i))}return null}var df=/\s+/g;function Or(i,t,n){if(i&&t)if(i.classList)i.classList[n?"add":"remove"](t);else{var l=(" "+i.className+" ").replace(df," ").replace(" "+t+" "," ");i.className=(l+(n?" "+t:"")).replace(df," ")}}function dt(i,t,n){var l=i&&i.style;if(l){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(i,""):i.currentStyle&&(n=i.currentStyle),t===void 0?n:n[t];!(t in l)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),l[t]=n+(typeof n=="string"?"":"px")}}function fi(i,t){var n="";if(typeof i=="string")n=i;else do{var l=dt(i,"transform");l&&l!=="none"&&(n=l+" "+n)}while(!t&&(i=i.parentNode));var c=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return c&&new c(n)}function hf(i,t,n){if(i){var l=i.getElementsByTagName(t),c=0,d=l.length;if(n)for(;c=d:a=c<=d,!a)return l;if(l===en())break;l=En(l,!1)}return!1}function di(i,t,n,l){for(var c=0,d=0,a=i.children;d2&&arguments[2]!==void 0?arguments[2]:{},c=l.evt,d=$x(l,Jx);ao.pluginEvent.bind(ht)(t,n,Qr({dragEl:Ge,parentEl:Gt,ghostEl:yt,rootEl:qt,nextEl:Nn,lastDownEl:ia,cloneEl:Kt,cloneHidden:Cn,dragStarted:lo,putSortable:vr,activeSortable:ht.active,originalEvent:c,oldIndex:pi,oldDraggableIndex:so,newIndex:Rr,newDraggableIndex:Tn,hideGhostForTarget:Ef,unhideGhostForTarget:Cf,cloneNowHidden:function(){Cn=!0},cloneNowShown:function(){Cn=!1},dispatchSortableEvent:function(h){Tr({sortable:n,name:h,originalEvent:c})}},d))};function Tr(i){Qx(Qr({putSortable:vr,cloneEl:Kt,targetEl:Ge,rootEl:qt,oldIndex:pi,oldDraggableIndex:so,newIndex:Rr,newDraggableIndex:Tn},i))}var Ge,Gt,yt,qt,Nn,ia,Kt,Cn,pi,Rr,so,Tn,oa,vr,mi=!1,aa=!1,sa=[],Bn,Wr,Rs,zs,bf,xf,lo,gi,uo,co=!1,la=!1,ua,wr,Ns=[],Bs=!1,ca=[],fa=typeof document!="undefined",da=cf,wf=no||pn?"cssFloat":"float",e0=fa&&!Hx&&!cf&&"draggable"in document.createElement("div"),kf=function(){if(!!fa){if(pn)return!1;var i=document.createElement("x");return i.style.cssText="pointer-events:auto",i.style.pointerEvents==="auto"}}(),_f=function(t,n){var l=dt(t),c=parseInt(l.width)-parseInt(l.paddingLeft)-parseInt(l.paddingRight)-parseInt(l.borderLeftWidth)-parseInt(l.borderRightWidth),d=di(t,0,n),a=di(t,1,n),h=d&&dt(d),f=a&&dt(a),p=h&&parseInt(h.marginLeft)+parseInt(h.marginRight)+ar(d).width,y=f&&parseInt(f.marginLeft)+parseInt(f.marginRight)+ar(a).width;if(l.display==="flex")return l.flexDirection==="column"||l.flexDirection==="column-reverse"?"vertical":"horizontal";if(l.display==="grid")return l.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(d&&h.float&&h.float!=="none"){var g=h.float==="left"?"left":"right";return a&&(f.clear==="both"||f.clear===g)?"vertical":"horizontal"}return d&&(h.display==="block"||h.display==="flex"||h.display==="table"||h.display==="grid"||p>=c&&l[wf]==="none"||a&&l[wf]==="none"&&p+y>c)?"vertical":"horizontal"},t0=function(t,n,l){var c=l?t.left:t.top,d=l?t.right:t.bottom,a=l?t.width:t.height,h=l?n.left:n.top,f=l?n.right:n.bottom,p=l?n.width:n.height;return c===h||d===f||c+a/2===h+p/2},r0=function(t,n){var l;return sa.some(function(c){var d=c[Pr].options.emptyInsertThreshold;if(!(!d||Ms(c))){var a=ar(c),h=t>=a.left-d&&t<=a.right+d,f=n>=a.top-d&&n<=a.bottom+d;if(h&&f)return l=c}}),l},Sf=function(t){function n(d,a){return function(h,f,p,y){var g=h.options.group.name&&f.options.group.name&&h.options.group.name===f.options.group.name;if(d==null&&(a||g))return!0;if(d==null||d===!1)return!1;if(a&&d==="clone")return d;if(typeof d=="function")return n(d(h,f,p,y),a)(h,f,p,y);var v=(a?h:f).options.group.name;return d===!0||typeof d=="string"&&d===v||d.join&&d.indexOf(v)>-1}}var l={},c=t.group;(!c||ra(c)!="object")&&(c={name:c}),l.name=c.name,l.checkPull=n(c.pull,!0),l.checkPut=n(c.put),l.revertClone=c.revertClone,t.group=l},Ef=function(){!kf&&yt&&dt(yt,"display","none")},Cf=function(){!kf&&yt&&dt(yt,"display","")};fa&&document.addEventListener("click",function(i){if(aa)return i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.stopImmediatePropagation&&i.stopImmediatePropagation(),aa=!1,!1},!0);var qn=function(t){if(Ge){t=t.touches?t.touches[0]:t;var n=r0(t.clientX,t.clientY);if(n){var l={};for(var c in t)t.hasOwnProperty(c)&&(l[c]=t[c]);l.target=l.rootEl=n,l.preventDefault=void 0,l.stopPropagation=void 0,n[Pr]._onDragOver(l)}}},n0=function(t){Ge&&Ge.parentNode[Pr]._isOutsideThisEl(t.target)};function ht(i,t){if(!(i&&i.nodeType&&i.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));this.el=i,this.options=t=dn({},t),i[Pr]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(i.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return _f(i,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,h){a.setData("Text",h.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:ht.supportPointer!==!1&&"PointerEvent"in window&&!io,emptyInsertThreshold:5};ao.initializePlugins(this,i,n);for(var l in n)!(l in t)&&(t[l]=n[l]);Sf(t);for(var c in this)c.charAt(0)==="_"&&typeof this[c]=="function"&&(this[c]=this[c].bind(this));this.nativeDraggable=t.forceFallback?!1:e0,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?It(i,"pointerdown",this._onTapStart):(It(i,"mousedown",this._onTapStart),It(i,"touchstart",this._onTapStart)),this.nativeDraggable&&(It(i,"dragover",this),It(i,"dragenter",this)),sa.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),dn(this,Yx())}ht.prototype={constructor:ht,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(gi=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,Ge):this.options.direction},_onTapStart:function(t){if(!!t.cancelable){var n=this,l=this.el,c=this.options,d=c.preventOnFilter,a=t.type,h=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,f=(h||t).target,p=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||f,y=c.filter;if(f0(l),!Ge&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||c.disabled)&&!p.isContentEditable&&!(!this.nativeDraggable&&io&&f&&f.tagName.toUpperCase()==="SELECT")&&(f=Jr(f,c.draggable,l,!1),!(f&&f.animated)&&ia!==f)){if(pi=Nr(f),so=Nr(f,c.draggable),typeof y=="function"){if(y.call(this,t,f,this)){Tr({sortable:n,rootEl:p,name:"filter",targetEl:f,toEl:l,fromEl:l}),Dr("filter",n,{evt:t}),d&&t.cancelable&&t.preventDefault();return}}else if(y&&(y=y.split(",").some(function(g){if(g=Jr(p,g.trim(),l,!1),g)return Tr({sortable:n,rootEl:g,name:"filter",targetEl:f,fromEl:l,toEl:l}),Dr("filter",n,{evt:t}),!0}),y)){d&&t.cancelable&&t.preventDefault();return}c.handle&&!Jr(p,c.handle,l,!1)||this._prepareDragStart(t,h,f)}}},_prepareDragStart:function(t,n,l){var c=this,d=c.el,a=c.options,h=d.ownerDocument,f;if(l&&!Ge&&l.parentNode===d){var p=ar(l);if(qt=d,Ge=l,Gt=Ge.parentNode,Nn=Ge.nextSibling,ia=l,oa=a.group,ht.dragged=Ge,Bn={target:Ge,clientX:(n||t).clientX,clientY:(n||t).clientY},bf=Bn.clientX-p.left,xf=Bn.clientY-p.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,Ge.style["will-change"]="all",f=function(){if(Dr("delayEnded",c,{evt:t}),ht.eventCanceled){c._onDrop();return}c._disableDelayedDragEvents(),!uf&&c.nativeDraggable&&(Ge.draggable=!0),c._triggerDragStart(t,n),Tr({sortable:c,name:"choose",originalEvent:t}),Or(Ge,a.chosenClass,!0)},a.ignore.split(",").forEach(function(y){hf(Ge,y.trim(),qs)}),It(h,"dragover",qn),It(h,"mousemove",qn),It(h,"touchmove",qn),It(h,"mouseup",c._onDrop),It(h,"touchend",c._onDrop),It(h,"touchcancel",c._onDrop),uf&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ge.draggable=!0),Dr("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(no||pn))){if(ht.eventCanceled){this._onDrop();return}It(h,"mouseup",c._disableDelayedDrag),It(h,"touchend",c._disableDelayedDrag),It(h,"touchcancel",c._disableDelayedDrag),It(h,"mousemove",c._delayedDragTouchMoveHandler),It(h,"touchmove",c._delayedDragTouchMoveHandler),a.supportPointer&&It(h,"pointermove",c._delayedDragTouchMoveHandler),c._dragStartTimer=setTimeout(f,a.delay)}else f()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Ge&&qs(Ge),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;Ct(t,"mouseup",this._disableDelayedDrag),Ct(t,"touchend",this._disableDelayedDrag),Ct(t,"touchcancel",this._disableDelayedDrag),Ct(t,"mousemove",this._delayedDragTouchMoveHandler),Ct(t,"touchmove",this._delayedDragTouchMoveHandler),Ct(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?It(document,"pointermove",this._onTouchMove):n?It(document,"touchmove",this._onTouchMove):It(document,"mousemove",this._onTouchMove):(It(Ge,"dragend",this),It(qt,"dragstart",this._onDragStart));try{document.selection?pa(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(mi=!1,qt&&Ge){Dr("dragStarted",this,{evt:n}),this.nativeDraggable&&It(document,"dragover",n0);var l=this.options;!t&&Or(Ge,l.dragClass,!1),Or(Ge,l.ghostClass,!0),ht.active=this,t&&this._appendGhost(),Tr({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Wr){this._lastX=Wr.clientX,this._lastY=Wr.clientY,Ef();for(var t=document.elementFromPoint(Wr.clientX,Wr.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Wr.clientX,Wr.clientY),t!==n);)n=t;if(Ge.parentNode[Pr]._isOutsideThisEl(t),n)do{if(n[Pr]){var l=void 0;if(l=n[Pr]._onDragOver({clientX:Wr.clientX,clientY:Wr.clientY,target:t,rootEl:n}),l&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);Cf()}},_onTouchMove:function(t){if(Bn){var n=this.options,l=n.fallbackTolerance,c=n.fallbackOffset,d=t.touches?t.touches[0]:t,a=yt&&fi(yt,!0),h=yt&&a&&a.a,f=yt&&a&&a.d,p=da&&wr&&mf(wr),y=(d.clientX-Bn.clientX+c.x)/(h||1)+(p?p[0]-Ns[0]:0)/(h||1),g=(d.clientY-Bn.clientY+c.y)/(f||1)+(p?p[1]-Ns[1]:0)/(f||1);if(!ht.active&&!mi){if(l&&Math.max(Math.abs(d.clientX-this._lastX),Math.abs(d.clientY-this._lastY))=0&&(Tr({rootEl:Gt,name:"add",toEl:Gt,fromEl:qt,originalEvent:t}),Tr({sortable:this,name:"remove",toEl:Gt,originalEvent:t}),Tr({rootEl:Gt,name:"sort",toEl:Gt,fromEl:qt,originalEvent:t}),Tr({sortable:this,name:"sort",toEl:Gt,originalEvent:t})),vr&&vr.save()):Rr!==pi&&Rr>=0&&(Tr({sortable:this,name:"update",toEl:Gt,originalEvent:t}),Tr({sortable:this,name:"sort",toEl:Gt,originalEvent:t})),ht.active&&((Rr==null||Rr===-1)&&(Rr=pi,Tn=so),Tr({sortable:this,name:"end",toEl:Gt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Dr("nulling",this),qt=Ge=Gt=yt=Nn=Kt=ia=Cn=Bn=Wr=lo=Rr=Tn=pi=so=gi=uo=vr=oa=ht.dragged=ht.ghost=ht.clone=ht.active=null,ca.forEach(function(t){t.checked=!0}),ca.length=Rs=zs=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Ge&&(this._onDragOver(t),i0(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,l=this.el.children,c=0,d=l.length,a=this.options;cl.right+c||i.clientX<=l.right&&i.clientY>l.bottom&&i.clientX>=l.left:i.clientX>l.right&&i.clientY>l.top||i.clientX<=l.right&&i.clientY>l.bottom+c}function l0(i,t,n,l,c,d,a,h){var f=l?i.clientY:i.clientX,p=l?n.height:n.width,y=l?n.top:n.left,g=l?n.bottom:n.right,v=!1;if(!a){if(h&&uay+p*d/2:fg-ua)return-uo}else if(f>y+p*(1-c)/2&&fg-p*d/2)?f>y+p/2?1:-1:0}function u0(i){return Nr(Ge){let d=c.target.closest(".sort-box-options [data-sort]");if(!d)return;c.preventDefault();let a=d.closest(".sort-box").querySelectorAll("ul"),h=d.getAttribute("data-sort");n=t===h?!n:!1;let f=Lf[h];n&&l.includes(h)&&(f=function(p,y){return 0-Lf[h](p,y)});for(let p of a)Array.from(p.children).filter(g=>g.matches("li")).sort(f).forEach(g=>{p.appendChild(g)});t=h,this.updateMapInput()})}bookSelect(t){if(this.elem.querySelector(`[data-type="book"][data-id="${t.id}"]`)!==null)return;let l=t.link+"/sort-item";window.$http.get(l).then(c=>{let d=document.createElement("div");d.innerHTML=c.data;let a=d.children[0];this.sortContainer.append(a),this.setupBookSortable(a)})}setupBookSortable(t){let n=[t.querySelector(".sort-list")];n.push(...t.querySelectorAll(".entity-list-item + ul"));let l={name:"book",pull:["book","chapter"],put:["book","chapter"]},c={name:"chapter",pull:["book","chapter"],put:function(d,a,h){return h.getAttribute("data-type")==="page"}};for(let d of n)new vi(d,{group:d.classList.contains("sort-list")?l:c,animation:150,fallbackOnBody:!0,swapThreshold:.65,onSort:this.updateMapInput.bind(this),dragClass:"bg-white",ghostClass:"primary-background-light",multiDrag:!0,multiDragKey:"CTRL",selectedClass:"sortable-selected"})}updateMapInput(){let t=this.buildEntityMap();this.input.value=JSON.stringify(t)}buildEntityMap(){let t=[],n=this.elem.querySelectorAll(".sort-list");for(let l of n){let c=l.closest('[data-type="book"]').getAttribute("data-id"),d=Array.from(l.children).filter(a=>a.matches('[data-type="page"], [data-type="chapter"]'));for(let a=0;a{n&&n()})}function ya(i,t=400,n=null){xa(i),ba(i,{opacity:["1","0"]},t,()=>{i.style.display="none",n&&n()})}function yi(i,t=400){xa(i);let n=i.getBoundingClientRect().height,l=getComputedStyle(i),c=l.getPropertyValue("padding-top"),d=l.getPropertyValue("padding-bottom"),a={height:[`${n}px`,"0px"],overflow:["hidden","hidden"],paddingTop:[c,"0px"],paddingBottom:[d,"0px"]};ba(i,a,t,()=>{i.style.display="none"})}function bi(i,t=400){xa(i),i.style.display="block";let n=i.getBoundingClientRect().height,l=getComputedStyle(i),c=l.getPropertyValue("padding-top"),d=l.getPropertyValue("padding-bottom"),a={height:["0px",`${n}px`],overflow:["hidden","hidden"],paddingTop:["0px",c],paddingBottom:["0px",d]};ba(i,a,t)}function ba(i,t,n=400,l=null){let c=Object.keys(t);for(let a of c)i.style[a]=t[a][0];let d=()=>{for(let a of c)i.style[a]=null;i.style.transition=null,i.removeEventListener("transitionend",d),va.delete(i),l&&l()};setTimeout(()=>{i.style.transition=`all ease-in-out ${n}ms`;for(let a of c)i.style[a]=t[a][1];i.addEventListener("transitionend",d),va.set(i,d)},15)}function xa(i){va.has(i)&&va.get(i)()}var Mf=class{constructor(t){this.elem=t,this.isOpen=t.classList.contains("open"),t.addEventListener("click",this.click.bind(this))}open(){let t=this.elem.parentNode.querySelector(".inset-list");this.elem.classList.add("open"),this.elem.setAttribute("aria-expanded","true"),bi(t,240)}close(){let t=this.elem.parentNode.querySelector(".inset-list");this.elem.classList.remove("open"),this.elem.setAttribute("aria-expanded","false"),yi(t,240)}click(t){t.preventDefault(),this.isOpen?this.close():this.open(),this.isOpen=!this.isOpen}},Of=Mf;var jn=_t(Tt()),mh=_t(Qs()),F_=_t(Js()),M_=_t(el()),O_=_t(jf()),P_=_t(Hf()),R_=_t(Kf()),z_=_t(Xf()),N_=_t(rl()),B_=_t(tl()),q_=_t(od()),j_=_t(ld()),$_=_t(pd()),U_=_t(vd()),H_=_t(xd()),W_=_t(_d()),G_=_t(Cd()),K_=_t(Ld()),V_=_t(Fd()),Y_=_t(Pd()),X_=_t(Nd()),Z_=_t(jd()),Q_=_t(Kd()),J_=_t(Xd()),eS=_t(Jd()),tS=_t(rh()),rS=_t(oh()),nS=_t(lh()),iS=_t(wa()),oS=_t(fh()),aS=_t(ph()),nl={css:"css",c:"text/x-csrc",java:"text/x-java",scala:"text/x-scala",kotlin:"text/x-kotlin","c++":"text/x-c++src","c#":"text/x-csharp",csharp:"text/x-csharp",diff:"diff",for:"fortran",fortran:"fortran",go:"go",haskell:"haskell",hs:"haskell",html:"htmlmixed",ini:"properties",javascript:"javascript",json:{name:"javascript",json:!0},js:"javascript",jl:"julia",julia:"julia",lua:"lua",md:"markdown",mdown:"markdown",markdown:"markdown",ml:"mllike",nginx:"nginx",perl:"perl",pl:"perl",powershell:"powershell",properties:"properties",ocaml:"mllike",pascal:"text/x-pascal",pas:"text/x-pascal",php:i=>i.includes("/gi,` +`);let n=i.textContent.trimEnd(),l="";if(t!==null){let d=t.className.replace("language-","");l=ka(d,n)}let c=(0,jn.default)(function(d){i.parentNode.replaceChild(d,i)},{value:n,mode:l,lineNumbers:!0,lineWrapping:!1,theme:_a(),readOnly:!0});m0(c)}function m0(i){let t='',n=document.createElement("div");n.classList.add("CodeMirror-copy"),n.innerHTML=t,i.display.wrapper.appendChild(n),new mh.default(n,{text:function(c){return i.getValue()}}).on("success",c=>{n.classList.add("success"),setTimeout(()=>{n.classList.remove("success")},240)})}function ka(i,t){i=i.trim().replace(/^\./g,"").toLowerCase();let n=typeof nl[i];return n==="undefined"?"":n==="function"?nl[i](t):nl[i]}function _a(){let i=document.documentElement.classList.contains("dark-mode");return window.codeTheme||(i?"darcula":"default")}function g0(i){let t=i.ownerDocument,n=i.querySelector("code"),l=vh(i.className||"");!l&&n&&(l=vh(n.className||"")),i.innerHTML=i.innerHTML.replace(//gi,` +`);let c=i.textContent,d=t.createElement("div"),a=t.createElement("textarea");d.className="CodeMirrorContainer",d.setAttribute("data-lang",l),d.setAttribute("dir","ltr"),a.style.display="none",i.parentNode.replaceChild(d,i),d.appendChild(a),d.contentEditable="false",a.textContent=c;let h=(0,jn.default)(function(f){d.appendChild(f)},{value:c,mode:ka(l,c),lineNumbers:!0,lineWrapping:!1,theme:_a(),readOnly:!0});return{wrap:d,editor:h}}function vh(i){return(i.split(" ").filter(n=>n.startsWith("language-"))[0]||"").replace("language-","")}function v0(i,t){let n=i.textContent;return(0,jn.default)(function(l){i.parentNode.insertBefore(l,i),i.style.display="none"},{value:n,mode:ka(t,n),lineNumbers:!0,lineWrapping:!1,theme:_a()})}function y0(i,t,n){i.setOption("mode",ka(t,n))}function b0(i,t){i.setValue(t),setTimeout(()=>{yh(i)},10)}function yh(i){i.refresh()}function x0(i){let n={value:i.textContent,mode:"markdown",lineNumbers:!0,lineWrapping:!0,theme:_a(),scrollPastEnd:!0};return window.$events.emitPublic(i,"editor-markdown-cm::pre-init",{config:n}),(0,jn.default)(function(l){i.parentNode.insertBefore(l,i),i.style.display="none"},n)}function w0(){return jn.default.keyMap.default==jn.default.keyMap.macDefault?"Cmd":"Ctrl"}var sr={highlight:h0,highlightWithin:p0,wysiwygView:g0,popupEditor:v0,setMode:y0,setContent:b0,updateLayout:yh,markdownEditor:x0,getMetaKey:w0};var bh=class{setup(){this.container=this.$refs.container,this.popup=this.$el,this.editorInput=this.$refs.editor,this.languageLinks=this.$manyRefs.languageLink,this.saveButton=this.$refs.saveButton,this.languageInput=this.$refs.languageInput,this.historyDropDown=this.$refs.historyDropDown,this.historyList=this.$refs.historyList,this.callback=null,this.editor=null,this.history={},this.historyKey="code_history",this.setupListeners()}setupListeners(){this.container.addEventListener("keydown",t=>{t.ctrlKey&&t.key==="Enter"&&this.save()}),Rt(this.languageLinks,t=>{let n=t.target.dataset.lang;this.languageInput.value=n,this.updateEditorMode(n)}),ta(this.languageInput,t=>this.save()),Rt(this.saveButton,t=>this.save()),Ut(this.historyList,"button","click",(t,n)=>{t.preventDefault();let l=n.dataset.time;this.editor&&this.editor.setValue(this.history[l])})}save(){this.callback&&this.callback(this.editor.getValue(),this.languageInput.value),this.hide()}open(t,n,l){this.languageInput.value=n,this.callback=l,this.show(),this.updateEditorMode(n),sr.setContent(this.editor,t)}show(){this.editor||(this.editor=sr.popupEditor(this.editorInput,this.languageInput.value)),this.loadHistory(),this.popup.components.popup.show(()=>{sr.updateLayout(this.editor),this.editor.focus()},()=>{this.addHistory()})}hide(){this.popup.components.popup.hide(),this.addHistory()}updateEditorMode(t){sr.setMode(this.editor,t,this.editor.getValue())}loadHistory(){this.history=JSON.parse(window.sessionStorage.getItem(this.historyKey)||"{}");let t=Object.keys(this.history).reverse();this.historyDropDown.classList.toggle("hidden",t.length===0),this.historyList.innerHTML=t.map(n=>{let l=new Date(parseInt(n)).toLocaleTimeString();return`
  • `}).join("")}addHistory(){if(!this.editor)return;let t=this.editor.getValue();if(!t)return;let n=Object.keys(this.history).pop();if(this.history[n]===t)return;this.history[String(Date.now())]=t;let l=JSON.stringify(this.history);window.sessionStorage.setItem(this.historyKey,l)}},xh=bh;var wh=class{constructor(t){sr.highlightWithin(t)}},kh=wh;var _h=class{constructor(t){this.elem=t,this.trigger=t.querySelector("[collapsible-trigger]"),this.content=t.querySelector("[collapsible-content]"),!!this.trigger&&(this.trigger.addEventListener("click",this.toggle.bind(this)),this.openIfContainsError())}open(){this.elem.classList.add("open"),this.trigger.setAttribute("aria-expanded","true"),bi(this.content,300)}close(){this.elem.classList.remove("open"),this.trigger.setAttribute("aria-expanded","false"),yi(this.content,300)}toggle(){this.elem.classList.contains("open")?this.close():this.open()}openIfContainsError(){this.content.querySelector(".text-neg.text-small")&&this.open()}},Sh=_h;var Eh=class{constructor(t){this.elem=t,this.checkbox=t.querySelector("input[type=checkbox]"),this.display=t.querySelector('[role="checkbox"]'),this.checkbox.addEventListener("change",this.stateChange.bind(this)),this.elem.addEventListener("keydown",this.onKeyDown.bind(this))}onKeyDown(t){(t.keyCode===32||t.keyCode===13)&&(t.preventDefault(),this.toggle())}toggle(){this.checkbox.checked=!this.checkbox.checked,this.checkbox.dispatchEvent(new Event("change")),this.stateChange()}stateChange(){let t=this.checkbox.checked?"true":"false";this.display.setAttribute("aria-checked",t)}},Ch=Eh;var Th=class{constructor(t){this.elem=t,this.dealtWith=!1,t.addEventListener("toggle",this.onToggle.bind(this))}onToggle(){this.dealtWith||(sr.highlightWithin(this.elem),this.dealtWith=!0)}},Ah=Th;var Lh=class{setup(){this.container=this.$el,this.menu=this.$refs.menu,this.toggle=this.$refs.toggle,this.moveMenu=this.$opts.moveMenu,this.bubbleEscapes=this.$opts.bubbleEscapes==="true",this.direction=document.dir==="rtl"?"right":"left",this.body=document.body,this.showing=!1,this.setupListeners(),this.hide=this.hide.bind(this)}show(t=null){this.hideAll(),this.menu.style.display="block",this.menu.classList.add("anim","menuIn"),this.toggle.setAttribute("aria-expanded","true"),this.moveMenu&&(this.rect=this.menu.getBoundingClientRect(),this.body.appendChild(this.menu),this.menu.style.position="fixed",this.direction==="right"?this.menu.style.right=`${this.rect.right-this.rect.width}px`:this.menu.style.left=`${this.rect.left}px`,this.menu.style.top=`${this.rect.top}px`,this.menu.style.width=`${this.rect.width}px`),this.menu.addEventListener("mouseleave",this.hide.bind(this)),window.addEventListener("click",c=>{this.menu.contains(c.target)||this.hide()});let n=this.menu.querySelector("input");n!==null&&n.focus(),this.showing=!0;let l=new Event("show");this.container.dispatchEvent(l),t&&t.stopPropagation()}hideAll(){for(let t of window.components.dropdown)t.hide()}hide(){this.menu.style.display="none",this.menu.classList.remove("anim","menuIn"),this.toggle.setAttribute("aria-expanded","false"),this.moveMenu&&(this.menu.style.position="",this.menu.style[this.direction]="",this.menu.style.top="",this.menu.style.width="",this.container.appendChild(this.menu)),this.showing=!1}getFocusable(){return Array.from(this.menu.querySelectorAll("[tabindex],[href],button,input:not([type=hidden])"))}focusNext(){let t=this.getFocusable(),l=t.indexOf(document.activeElement)+1;l>=t.length&&(l=0),t[l].focus()}focusPrevious(){let t=this.getFocusable(),l=t.indexOf(document.activeElement)-1;l<0&&(l=t.length-1),t[l].focus()}setupListeners(){this.container.addEventListener("click",n=>{Array.from(this.menu.querySelectorAll("a")).includes(n.target)&&this.hide()}),Rt(this.toggle,n=>{n.stopPropagation(),this.show(n),n instanceof KeyboardEvent&&this.focusNext()});let t=n=>{n.key==="ArrowDown"||n.key==="ArrowRight"?(this.focusNext(),n.preventDefault()):n.key==="ArrowUp"||n.key==="ArrowLeft"?(this.focusPrevious(),n.preventDefault()):n.key==="Escape"&&(this.hide(),this.toggle.focus(),this.bubbleEscapes||n.stopPropagation())};this.container.addEventListener("keydown",t),this.moveMenu&&this.menu.addEventListener("keydown",t),this.menu.addEventListener("keydown ",n=>{n.key==="Enter"&&(n.preventDefault(),n.stopPropagation(),this.hide())})}},Dh=Lh;var Ih=class{setup(){this.elem=this.$el,this.searchInput=this.$refs.searchInput,this.loadingElem=this.$refs.loading,this.listContainerElem=this.$refs.listContainer,this.localSearchSelector=this.$opts.localSearchSelector,this.url=this.$opts.url,this.elem.addEventListener("show",this.onShow.bind(this)),this.searchInput.addEventListener("input",this.onSearch.bind(this)),this.runAjaxSearch=to(this.runAjaxSearch,300,!1)}onShow(){this.loadList()}onSearch(){let t=this.searchInput.value.toLowerCase().trim();this.localSearchSelector?this.runLocalSearch(t):(this.toggleLoading(!0),this.listContainerElem.innerHTML="",this.runAjaxSearch(t))}runAjaxSearch(t){this.loadList(t)}runLocalSearch(t){let n=this.listContainerElem.querySelectorAll(this.localSearchSelector);for(let l of n){let c=!t||l.textContent.toLowerCase().includes(t);l.style.display=c?"flex":"none",l.classList.toggle("hidden",!c)}}async loadList(t=""){this.listContainerElem.innerHTML="",this.toggleLoading(!0);try{let n=await window.$http.get(this.getAjaxUrl(t));this.listContainerElem.innerHTML=n.data}catch(n){console.error(n)}this.toggleLoading(!1),this.localSearchSelector&&this.onSearch()}getAjaxUrl(t=null){if(!t)return this.url;let n=this.url.includes("?")?"&":"?";return`${this.url}${n}search=${encodeURIComponent(t)}`}toggleLoading(t=!1){this.loadingElem.style.display=t?"block":"none"}},Fh=Ih;var Oh=_t(Mh());var Ph=class{setup(){this.container=this.$el,this.url=this.$opts.url,this.successMessage=this.$opts.successMessage,this.removeMessage=this.$opts.removeMessage,this.uploadLimit=Number(this.$opts.uploadLimit),this.uploadLimitMessage=this.$opts.uploadLimitMessage,this.timeoutMessage=this.$opts.timeoutMessage;let t=this;this.dz=new Oh.default(this.container,{addRemoveLinks:!0,dictRemoveFile:this.removeMessage,timeout:Number(window.uploadTimeout)||6e4,maxFilesize:this.uploadLimit,url:this.url,withCredentials:!0,init(){this.dz=this,this.dz.on("sending",t.onSending.bind(t)),this.dz.on("success",t.onSuccess.bind(t)),this.dz.on("error",t.onError.bind(t))}})}onSending(t,n,l){let c=window.document.querySelector("meta[name=token]").getAttribute("content");l.append("_token",c),n.ontimeout=d=>{this.dz.emit("complete",t),this.dz.emit("error",t,this.timeoutMessage)}}onSuccess(t,n){this.$emit("success",{file:t,data:n}),this.successMessage&&window.$events.emit("success",this.successMessage),ya(t.previewElement,800,()=>{this.dz.removeFile(t)})}onError(t,n,l){this.$emit("error",{file:t,errorMessage:n,xhr:l});let c=d=>{let a=t.previewElement.querySelector("[data-dz-errormessage]");a.textContent=d};l&&l.status===413?c(this.uploadLimitMessage):n.file&&c(n.file)}removeAll(){this.dz.removeAllFiles(!0)}},Rh=Ph;var zh=class{constructor(t){this.elem=t,this.buttons=t.querySelectorAll("[toolbox-tab-button]"),this.contentElements=t.querySelectorAll("[toolbox-tab-content]"),this.toggleButton=t.querySelector("[toolbox-toggle]"),this.toggleButton.addEventListener("click",this.toggle.bind(this)),this.elem.addEventListener("click",n=>{let l=n.target.closest("[toolbox-tab-button]");if(l===null)return;let c=l.getAttribute("toolbox-tab-button");this.setActiveTab(c,!0)}),this.setActiveTab(this.contentElements[0].getAttribute("toolbox-tab-content"))}toggle(){this.elem.classList.toggle("open");let t=this.elem.classList.contains("open")?"true":"false";this.toggleButton.setAttribute("aria-expanded",t)}setActiveTab(t,n=!1){for(let l=0,c=this.buttons.length;l{t.preventDefault(),this.runSearch()}),Rt(this.clearButton,this.clearSearch.bind(this))}runSearch(){let t=this.searchInput.value.trim();if(t.length===0)return this.clearSearch();this.searchView.classList.remove("hidden"),this.contentView.classList.add("hidden"),this.loadingBlock.classList.remove("hidden");let n=window.baseUrl(`/search/${this.entityType}/${this.entityId}`);window.$http.get(n,{term:t}).then(l=>{this.searchResults.innerHTML=l.data}).catch(console.error).then(()=>{this.loadingBlock.classList.add("hidden")})}clearSearch(){this.searchView.classList.add("hidden"),this.contentView.classList.remove("hidden"),this.loadingBlock.classList.add("hidden"),this.searchInput.value=""}},$h=jh;var Uh=class{setup(){this.elem=this.$el,this.entityTypes=this.$opts.entityTypes||"page,book,chapter",this.entityPermission=this.$opts.entityPermission||"view",this.input=this.$refs.input,this.searchInput=this.$refs.search,this.loading=this.$refs.loading,this.resultsContainer=this.$refs.results,this.addButton=this.$refs.add,this.search="",this.lastClick=0,this.selectedItemData=null,this.setupListeners(),this.showLoading(),this.initialLoad()}setupListeners(){this.elem.addEventListener("click",this.onClick.bind(this));let t=0;this.searchInput.addEventListener("input",n=>{t=Date.now(),this.showLoading(),setTimeout(()=>{Date.now()-t<199||this.searchEntities(this.searchInput.value)},200)}),this.searchInput.addEventListener("keydown",n=>{n.keyCode===13&&n.preventDefault()}),this.addButton&&this.addButton.addEventListener("click",n=>{this.selectedItemData&&(this.confirmSelection(this.selectedItemData),this.unselectAll())}),Ut(this.$el,"[data-entity-type]","keydown",(n,l)=>{if(n.ctrlKey&&n.code==="Enter"){let c=this.$el.closest("form");if(c){c.submit(),n.preventDefault();return}}n.code==="ArrowDown"&&this.focusAdjacent(!0),n.code==="ArrowUp"&&this.focusAdjacent(!1)}),this.searchInput.addEventListener("keydown",n=>{n.code==="ArrowDown"&&this.focusAdjacent(!0)})}focusAdjacent(t=!0){let n=Array.from(this.resultsContainer.querySelectorAll("[data-entity-type]")),l=n.indexOf(document.activeElement),c=n[l+(t?1:-1)]||n[0];c&&c.focus()}showLoading(){this.loading.style.display="block",this.resultsContainer.style.display="none"}hideLoading(){this.loading.style.display="none",this.resultsContainer.style.display="block"}initialLoad(){window.$http.get(this.searchUrl()).then(t=>{this.resultsContainer.innerHTML=t.data,this.hideLoading()})}searchUrl(){return`/ajax/search/entities?types=${encodeURIComponent(this.entityTypes)}&permission=${encodeURIComponent(this.entityPermission)}`}searchEntities(t){this.input.value="";let n=`${this.searchUrl()}&term=${encodeURIComponent(t)}`;window.$http.get(n).then(l=>{this.resultsContainer.innerHTML=l.data,this.hideLoading()})}isDoubleClick(){let t=Date.now(),n=t-this.lastClick<300;return this.lastClick=t,n}onClick(t){let n=t.target.closest("[data-entity-type]");n&&(t.preventDefault(),t.stopPropagation(),this.selectItem(n))}selectItem(t){let n=this.isDoubleClick(),l=t.getAttribute("data-entity-type"),c=t.getAttribute("data-entity-id"),d=!t.classList.contains("selected")||n;this.unselectAll(),this.input.value=d?`${l}:${c}`:"";let a=t.getAttribute("href"),h=t.querySelector(".entity-list-item-name").textContent,f={id:Number(c),name:h,link:a};d?(t.classList.add("selected"),this.selectedItemData=f):window.$events.emit("entity-select-change",null),!(!n&&!d)&&(n&&this.confirmSelection(f),d&&window.$events.emit("entity-select-change",f))}confirmSelection(t){window.$events.emit("entity-select-confirm",t)}unselectAll(){let t=this.elem.querySelectorAll(".selected");for(let n of t)n.classList.remove("selected","primary-background");this.selectedItemData=null}},Hh=Uh;var Wh=class{setup(){this.elem=this.$el,this.selectButton=this.$refs.select,this.searchInput=this.$refs.searchInput,window.EntitySelectorPopup=this,this.callback=null,this.selection=null,this.selectButton.addEventListener("click",this.onSelectButtonClick.bind(this)),window.$events.listen("entity-select-change",this.onSelectionChange.bind(this)),window.$events.listen("entity-select-confirm",this.onSelectionConfirm.bind(this))}show(t){this.callback=t,this.elem.components.popup.show(),this.searchInput.focus()}hide(){this.elem.components.popup.hide()}onSelectButtonClick(){this.hide(),this.selection!==null&&this.callback&&this.callback(this.selection)}onSelectionConfirm(t){this.hide(),this.callback&&t&&this.callback(t)}onSelectionChange(t){this.selection=t,t===null?this.selectButton.setAttribute("disabled","true"):this.selectButton.removeAttribute("disabled")}},Gh=Wh;var Kh=class{setup(){this.container=this.$el,this.name=this.$opts.name,Rt(this.$el,()=>{this.$emit(this.name,this.$opts)})}},Vh=Kh;var Yh=class{constructor(t){this.elem=t,this.isOpen=t.getAttribute("expand-toggle-is-open")==="yes",this.updateEndpoint=t.getAttribute("expand-toggle-update-endpoint"),this.selector=t.getAttribute("expand-toggle"),t.addEventListener("click",this.click.bind(this))}open(t){bi(t,200)}close(t){yi(t,200)}click(t){t.preventDefault();let n=document.querySelectorAll(this.selector);for(let l of n)this.isOpen?this.close(l):this.open(l);this.isOpen=!this.isOpen,this.updateSystemAjax(this.isOpen)}updateSystemAjax(t){window.$http.patch(this.updateEndpoint,{expand:t?"true":"false"})}},Xh=Yh;var Zh=class{setup(){this.elem=this.$el,this.toggleButton=this.$refs.toggle,this.menu=this.$refs.menu,this.open=!1,this.toggleButton.addEventListener("click",this.onToggle.bind(this)),this.onWindowClick=this.onWindowClick.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}onToggle(t){this.open=!this.open,this.menu.classList.toggle("show",this.open),this.toggleButton.setAttribute("aria-expanded",this.open?"true":"false"),this.open?(this.elem.addEventListener("keydown",this.onKeyDown),window.addEventListener("click",this.onWindowClick)):(this.elem.removeEventListener("keydown",this.onKeyDown),window.removeEventListener("click",this.onWindowClick)),t.stopPropagation()}onKeyDown(t){t.code==="Escape"&&this.onToggle(t)}onWindowClick(t){this.onToggle(t)}},Qh=Zh;var Jh=class{constructor(t){this.elem=t,this.typeControl=t.querySelector('[name="setting-app-homepage-type"]'),this.pagePickerContainer=t.querySelector("[page-picker-container]"),this.typeControl.addEventListener("change",this.controlPagePickerVisibility.bind(this)),this.controlPagePickerVisibility()}controlPagePickerVisibility(){let t=this.typeControl.value==="page";this.pagePickerContainer.style.display=t?"block":"none"}},ep=Jh;var tp=class{setup(){this.uploadedTo=this.$opts.uploadedTo,this.container=this.$el,this.popupEl=this.$refs.popup,this.searchForm=this.$refs.searchForm,this.searchInput=this.$refs.searchInput,this.cancelSearch=this.$refs.cancelSearch,this.listContainer=this.$refs.listContainer,this.filterTabs=this.$manyRefs.filterTabs,this.selectButton=this.$refs.selectButton,this.formContainer=this.$refs.formContainer,this.dropzoneContainer=this.$refs.dropzoneContainer,this.type="gallery",this.lastSelected={},this.lastSelectedTime=0,this.callback=null,this.resetState=()=>{this.hasData=!1,this.page=1,this.filter="all"},this.resetState(),this.setupListeners(),window.ImageManager=this}setupListeners(){Rt(this.filterTabs,t=>{this.resetAll(),this.filter=t.target.dataset.filter,this.setActiveFilterTab(this.filter),this.loadGallery()}),this.searchForm.addEventListener("submit",t=>{this.resetListView(),this.loadGallery(),t.preventDefault()}),Rt(this.cancelSearch,t=>{this.resetListView(),this.resetSearchView(),this.loadGallery(),this.cancelSearch.classList.remove("active")}),this.searchInput.addEventListener("input",t=>{this.cancelSearch.classList.toggle("active",this.searchInput.value.trim())}),Ut(this.listContainer,".load-more","click",async t=>{eo(t.target),this.page++,await this.loadGallery(),t.target.remove()}),this.listContainer.addEventListener("event-emit-select-image",this.onImageSelectEvent.bind(this)),this.listContainer.addEventListener("error",t=>{t.target.src=baseUrl("loading_error.png")},!0),Rt(this.selectButton,()=>{this.callback&&this.callback(this.lastSelected),this.hide()}),Ut(this.formContainer,"#image-manager-delete","click",t=>{this.lastSelected&&this.loadImageEditForm(this.lastSelected.id,!0)}),this.formContainer.addEventListener("ajax-form-success",this.refreshGallery.bind(this)),this.container.addEventListener("dropzone-success",this.refreshGallery.bind(this))}show(t,n="gallery"){this.resetAll(),this.callback=t,this.type=n,this.popupEl.components.popup.show(),this.dropzoneContainer.classList.toggle("hidden",n!=="gallery"),this.hasData||(this.loadGallery(),this.hasData=!0)}hide(){this.popupEl.components.popup.hide()}async loadGallery(){let t={page:this.page,search:this.searchInput.value||null,uploaded_to:this.uploadedTo,filter_type:this.filter==="all"?null:this.filter},{data:n}=await window.$http.get(`images/${this.type}`,t);t.page===1&&(this.listContainer.innerHTML=""),this.addReturnedHtmlElementsToList(n),Hc(this.listContainer)}addReturnedHtmlElementsToList(t){let n=document.createElement("div");n.innerHTML=t,window.components.init(n);for(let l of[...n.children])this.listContainer.appendChild(l)}setActiveFilterTab(t){this.filterTabs.forEach(l=>l.classList.remove("selected"));let n=this.filterTabs.find(l=>l.dataset.filter===t);n&&n.classList.add("selected")}resetAll(){this.resetState(),this.resetListView(),this.resetSearchView(),this.resetEditForm(),this.setActiveFilterTab("all"),this.selectButton.classList.add("hidden")}resetSearchView(){this.searchInput.value=""}resetEditForm(){this.formContainer.innerHTML=""}resetListView(){eo(this.listContainer),this.page=1}refreshGallery(){this.resetListView(),this.loadGallery()}onImageSelectEvent(t){let n=JSON.parse(t.detail.data),l=n&&n.id===this.lastSelected.id&&Date.now()-this.lastSelectedTime<400,c=t.target.classList.contains("selected");[...this.listContainer.querySelectorAll(".selected")].forEach(d=>{d.classList.remove("selected")}),c?this.resetEditForm():(t.target.classList.add("selected"),this.loadImageEditForm(n.id)),this.selectButton.classList.toggle("hidden",c),l&&this.callback&&(this.callback(n),this.hide()),this.lastSelected=n,this.lastSelectedTime=Date.now()}async loadImageEditForm(t,n=!1){n||(this.formContainer.innerHTML="");let l=n?{delete:!0}:{},{data:c}=await window.$http.get(`/images/edit/${t}`,l);this.formContainer.innerHTML=c,window.components.init(this.formContainer)}},rp=tp;var np=class{constructor(t){this.elem=t,this.imageElem=t.querySelector("img"),this.imageInput=t.querySelector("input[type=file]"),this.resetInput=t.querySelector("input[data-reset-input]"),this.removeInput=t.querySelector("input[data-remove-input]"),this.defaultImage=t.getAttribute("data-default-image"),t.querySelector('button[data-action="reset-image"]').addEventListener("click",this.reset.bind(this));let l=t.querySelector('button[data-action="remove-image"]');l&&l.addEventListener("click",this.removeImage.bind(this)),this.imageInput.addEventListener("change",this.fileInputChange.bind(this))}fileInputChange(){this.resetInput.setAttribute("disabled","disabled"),this.removeInput&&this.removeInput.setAttribute("disabled","disabled");for(let t of this.imageInput.files)this.imageElem.src=window.URL.createObjectURL(t);this.imageElem.classList.remove("none")}reset(){this.imageInput.value="",this.imageElem.src=this.defaultImage,this.resetInput.removeAttribute("disabled"),this.removeInput&&this.removeInput.setAttribute("disabled","disabled"),this.imageElem.classList.remove("none")}removeImage(){this.imageInput.value="",this.imageElem.classList.add("none"),this.removeInput.removeAttribute("disabled"),this.resetInput.setAttribute("disabled","disabled")}},ip=np;var op=class{constructor(t){this.elem=t,this.menu=t.querySelector("ul"),this.sortInput=t.querySelector('[name="sort"]'),this.orderInput=t.querySelector('[name="order"]'),this.form=t.querySelector("form"),this.menu.addEventListener("click",n=>{n.target.closest("[data-sort-value]")!==null&&this.sortOptionClick(n)}),this.elem.addEventListener("click",n=>{n.target.closest("[data-sort-dir]")!==null&&this.sortDirectionClick(n)})}sortOptionClick(t){let n=t.target.closest("[data-sort-value]");this.sortInput.value=n.getAttribute("data-sort-value"),t.preventDefault(),this.form.submit()}sortDirectionClick(t){let l=this.orderInput.value==="asc"?"desc":"asc";this.orderInput.value=l,t.preventDefault(),this.form.submit()}},ap=op;var wv=_t(fv()),kv=_t(gv());var vv=class{constructor(t){this.data=t}hasItems(){return Boolean(this.data)&&Boolean(this.data.types)&&this.data.types.length>0}containsTabularData(){let t=this.data.getData("text/rtf");return t&&t.includes("\\trowd")}getImages(){let t=this.data.types,n=this.data.files,l=[];for(let c of t)if(c.includes("image")){let d=this.data.getData(c);l.push(d.getAsFile())}for(let c of n)c.type.includes("image")&&l.push(c);return l}},xo=vv;var mn=null,Pl,Rl,zl;function Uk(i,t,n){Rl=t,zl=n,mn=document.createElement("iframe"),mn.setAttribute("frameborder","0"),window.addEventListener("message",yv),mn.setAttribute("src",i),mn.setAttribute("class","fullscreen"),mn.style.backgroundColor="#FFFFFF",document.body.appendChild(mn),Pl=new URL(i).origin}function Hk(){bv()}function yv(i){if(!i.data||i.data.length<1||i.origin!==Pl)return;let t=JSON.parse(i.data);t.event==="init"?Kk():t.event==="exit"?bv():t.event==="save"?Gk(t):t.event==="export"&&Wk(t)}function Wk(i){zl&&zl(i.data)}function Gk(i){xv({action:"export",format:"xmlpng",xml:i.xml,spin:"Updating drawing"})}function Kk(){!Rl||Rl().then(i=>{xv({action:"load",autosave:1,xml:i})})}function bv(){window.removeEventListener("message",yv),mn&&document.body.removeChild(mn)}function xv(i){mn.contentWindow.postMessage(JSON.stringify(i),Pl)}async function Vk(i,t){let n={image:i,uploaded_to:t};return(await window.$http.post(window.baseUrl("/images/drawio"),n)).data}async function Yk(i){return`data:image/png;base64,${(await window.$http.get(window.baseUrl(`/images/drawio/base64/${i}`))).data.content}`}var zr={show:Uk,close:Hk,upload:Vk,load:Yk};var _v=class{setup(){this.elem=this.$el,this.pageId=this.$opts.pageId,this.textDirection=this.$opts.textDirection,this.imageUploadErrorText=this.$opts.imageUploadErrorText,this.serverUploadLimitText=this.$opts.serverUploadLimitText,this.markdown=new wv.default({html:!0}),this.markdown.use(kv.default,{label:!0}),this.display=this.elem.querySelector(".markdown-display"),this.displayStylesLoaded=!1,this.input=this.elem.querySelector("textarea"),this.cm=sr.markdownEditor(this.input),this.onMarkdownScroll=this.onMarkdownScroll.bind(this);let t=()=>{this.displayDoc=this.display.contentDocument,this.init()};this.display.contentDocument.readyState==="complete"?t():this.display.addEventListener("load",t.bind(this)),window.$events.emitPublic(this.elem,"editor-markdown::setup",{markdownIt:this.markdown,displayEl:this.display,codeMirrorInstance:this.cm})}init(){let t=0;this.displayDoc.addEventListener("click",a=>{let h=Date.now()-t<300,f=a.target.closest("a");if(f!==null){a.preventDefault(),window.open(f.getAttribute("href"));return}let p=a.target.closest("[drawio-diagram]");if(p!==null&&h){this.actionEditDrawing(p);return}t=Date.now()}),this.elem.addEventListener("click",a=>{let h=a.target.closest("button[data-action]");if(h===null)return;let f=h.getAttribute("data-action");if(f==="insertImage"&&this.actionInsertImage(),f==="insertLink"&&this.actionShowLinkSelector(),f==="insertDrawing"&&(a.ctrlKey||a.metaKey)){this.actionShowImageManager();return}f==="insertDrawing"&&this.actionStartDrawing(),f==="fullscreen"&&this.actionFullScreen()}),this.elem.addEventListener("click",a=>{let h=a.target.closest(".editor-toolbar-label");if(!h)return;let f=this.elem.querySelectorAll(".markdown-editor-wrap");for(let p of f)p.classList.remove("active");h.closest(".markdown-editor-wrap").classList.add("active")}),window.$events.listen("editor-markdown-update",a=>{this.cm.setValue(a),this.updateAndRender()}),this.codeMirrorSetup(),this.listenForBookStackEditorEvents();let l=new URL(window.location).searchParams.get("content-text");l&&this.scrollToText(l);let c=to(()=>sr.updateLayout(this.cm),100,!1);new ResizeObserver(c).observe(this.elem)}updateAndRender(){let t=this.cm.getValue();this.input.value=t;let n=this.markdown.render(t);window.$events.emit("editor-html-change",n),window.$events.emit("editor-markdown-change",t),this.displayDoc.body.className="page-content",this.displayDoc.body.innerHTML=n,this.loadStylesIntoDisplay()}loadStylesIntoDisplay(){if(this.displayStylesLoaded)return;this.displayDoc.documentElement.classList.add("markdown-editor-display"),document.documentElement.classList.contains("dark-mode")&&(this.displayDoc.documentElement.style.backgroundColor="#222",this.displayDoc.documentElement.classList.add("dark-mode")),this.displayDoc.head.innerHTML="";let t=document.head.querySelectorAll("style,link[rel=stylesheet]");for(let n of t){let l=n.cloneNode(!0);this.displayDoc.head.appendChild(l)}this.displayStylesLoaded=!0}onMarkdownScroll(t){let n=this.displayDoc.body.children;if(n.length<=t)return;(t===-1?n[n.length-1]:n[t]).scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"})}codeMirrorSetup(){let t=this.cm,n=this;t.setOption("direction","ltr");let l=sr.getMetaKey(),c={};c[`${l}-Alt-I`]=function(v){let k=`![${v.getSelection()}](http://)`,E=v.getCursor("from");v.replaceSelection(k),v.setCursor(E.line,E.ch+k.length-1)},c[`${l}-S`]=v=>{window.$events.emit("editor-save-draft")},c[`${l}-Enter`]=v=>{window.$events.emit("editor-save-page")},c[`Shift-${l}-K`]=v=>{this.actionShowLinkSelector()},c[`${l}-K`]=v=>{g()},c[`${l}-1`]=v=>{h("##")},c[`${l}-2`]=v=>{h("###")},c[`${l}-3`]=v=>{h("####")},c[`${l}-4`]=v=>{h("#####")},c[`${l}-5`]=v=>{h("")},c[`${l}-d`]=v=>{h("")},c[`${l}-6`]=v=>{h(">")},c[`${l}-q`]=v=>{h(">")},c[`${l}-7`]=v=>{p("\n```\n","\n```")},c[`${l}-8`]=v=>{p("`","`")},c[`Shift-${l}-E`]=v=>{p("`","`")},c[`${l}-9`]=v=>{p('

    ',"

    ")},t.setOption("extraKeys",c),t.on("change",(v,b)=>{this.updateAndRender()});let d=to(v=>{let b=v.getScrollInfo();if(b.top+b.clientHeight===b.height){this.onMarkdownScroll(-1);return}let E=v.lineAtHeight(b.top,"local"),w=v.getRange({line:0,ch:null},{line:E,ch:null}),P=new DOMParser().parseFromString(this.markdown.render(w),"text/html").documentElement.querySelectorAll("body > *");this.onMarkdownScroll(P.length)},100);t.on("scroll",v=>{d(v)}),t.on("paste",(v,b)=>{let k=new xo(b.clipboardData||b.dataTransfer);if(!k.hasItems()||k.containsTabularData())return;let E=k.getImages();for(let w of E)y(w)}),t.on("drop",(v,b)=>{let k=b.dataTransfer.getData("bookstack/template");if(k){let w=v.coordsChar({left:b.pageX,top:b.pageY});v.setCursor(w),b.preventDefault(),window.$http.get(`/templates/${k}`).then(I=>{let S=I.data.markdown||I.data.html;v.replaceSelection(S)})}let E=new xo(b.dataTransfer);if(E.hasItems()&&E.getImages().length>0){let w=v.coordsChar({left:b.pageX,top:b.pageY});v.setCursor(w),b.stopPropagation(),b.preventDefault();let I=E.getImages();for(let S of I)y(S)}});function a(v,b){let k=t.getValue(),E=t.listSelections();t.setValue(k.replace(v,b)),t.setSelections(E)}function h(v){let b=t.getCursor(),k=t.getLine(b.line),E=k.length,w=k.split(" ")[0];if(w===v){k=k.replace(`${v} `,""),t.replaceRange(k,{line:b.line,ch:0},{line:b.line,ch:E}),t.setCursor({line:b.line,ch:b.ch-(v.length+1)});return}let I=/^[#>`]/.test(w),S=0;I?(S=v.length-w.length,k=k.replace(w,v).trim()):v!==""&&(S=v.length+1,k=v+" "+k),t.replaceRange(k,{line:b.line,ch:0},{line:b.line,ch:E}),t.setCursor({line:b.line,ch:b.ch+S})}function f(v,b){let k=t.getCursor(),E=t.getLine(k.line),w=E.length,I=E;E.indexOf(v)===0&&E.slice(-b.length)===b?I=E.slice(v.length,E.length-b.length):I=`${v}${E}${b}`,t.replaceRange(I,{line:k.line,ch:0},{line:k.line,ch:w}),t.setCursor({line:k.line,ch:k.ch+v.length})}function p(v,b){let k=t.getSelection();if(k==="")return f(v,b);let E=k,w=0,I=0;k.indexOf(v)===0&&k.slice(-b.length)===b?(E=k.slice(v.length,k.length-b.length),I=-(b.length+v.length)):(E=`${v}${k}${b}`,I=v.length+b.length);let S=t.listSelections()[0];t.replaceSelection(E);let P=S.head.ch<=S.anchor.ch;S.head.ch+=P?w:I,S.anchor.ch+=P?I:w,t.setSelections([S])}function y(v){if(v===null||v.type.indexOf("image")!==0)return;let b="png";if(v.name){let H=v.name.match(/\.(.+)$/);H.length>1&&(b=H[1])}let k="image-"+Math.random().toString(16).slice(2),E=window.baseUrl(`/loading.gif#upload${k}`),w=t.getSelection(),I=`![${w}](${E})`,S=t.getCursor();t.replaceSelection(I),t.setCursor({line:S.line,ch:S.ch+w.length+3});let P="image-"+Date.now()+"."+b,F=new FormData;F.append("file",v,P),F.append("uploaded_to",n.pageId),window.$http.post("/images/gallery",F).then(H=>{let $=`[![${w}](${H.data.thumbs.display})](${H.data.url})`;a(I,$)}).catch(H=>{window.$events.emit("error",n.imageUploadErrorText),a(I,w),console.log(H)})}function g(){let v=t.getCursor("from"),b=t.getSelection()||"",k=`[${b}]()`;t.focus(),t.replaceSelection(k);let E=b===""?-3:-1;t.setCursor(v.line,v.ch+k.length+E)}this.updateAndRender()}actionInsertImage(){let t=this.cm.getCursor("from");window.ImageManager.show(n=>{let l=n.thumbs.display||n.url,c=this.cm.getSelection(),d="[!["+(c||n.name)+"]("+l+")]("+n.url+")";this.cm.focus(),this.cm.replaceSelection(d),this.cm.setCursor(t.line,t.ch+d.length)},"gallery")}actionShowImageManager(){let t=this.cm.getCursor("from");window.ImageManager.show(n=>{this.insertDrawing(n,t)},"drawio")}actionShowLinkSelector(){let t=this.cm.getCursor("from");window.EntitySelectorPopup.show(n=>{let c=`[${this.cm.getSelection()||n.name}](${n.link})`;this.cm.focus(),this.cm.replaceSelection(c),this.cm.setCursor(t.line,t.ch+c.length)})}getDrawioUrl(){let t=document.querySelector("[drawio-url]");return t?t.getAttribute("drawio-url"):!1}actionStartDrawing(){let t=this.getDrawioUrl();if(!t)return;let n=this.cm.getCursor("from");zr.show(t,()=>Promise.resolve(""),l=>{let c={image:l,uploaded_to:Number(this.pageId)};window.$http.post("/images/drawio",c).then(d=>{this.insertDrawing(d.data,n),zr.close()}).catch(d=>{this.handleDrawingUploadError(d)})})}insertDrawing(t,n){let l=`
    `;this.cm.focus(),this.cm.replaceSelection(l),this.cm.setCursor(n.line,n.ch+l.length)}actionEditDrawing(t){let n=this.getDrawioUrl();if(!n)return;let l=this.cm.getCursor("from"),c=t.getAttribute("drawio-diagram");zr.show(n,()=>zr.load(c),d=>{let a={image:d,uploaded_to:Number(this.pageId)};window.$http.post("/images/drawio",a).then(h=>{let f=`
    `,p=this.cm.getValue().split(` `).map(y=>y.indexOf(`drawio-diagram="${c}"`)!==-1?f:y).join(` `);this.cm.setValue(p),this.cm.setCursor(l),this.cm.focus(),zr.close()}).catch(h=>{this.handleDrawingUploadError(h)})})}handleDrawingUploadError(t){t.status===413?window.$events.emit("error",this.serverUploadLimitText):window.$events.emit("error",this.imageUploadErrorText),console.log(t)}actionFullScreen(){let t=this.elem.classList.contains("fullscreen");this.elem.classList.toggle("fullscreen",!t),document.body.classList.toggle("markdown-fullscreen",!t)}scrollToText(t){if(!t)return;let l=this.cm.getValue().split(/\r?\n/),c=l.findIndex(d=>d&&d.indexOf(t)!==-1);c!==-1&&(this.cm.scrollIntoView({line:c},200),this.cm.focus(),this.cm.setCursor({line:c,char:l[c].length}))}listenForBookStackEditorEvents(){function t({html:n,markdown:l}){return l||n}window.$events.listen("editor::replace",n=>{let l=t(n);this.cm.setValue(l)}),window.$events.listen("editor::append",n=>{let l=this.cm.getCursor("from"),c=t(n),d=this.cm.getValue()+` `+c;this.cm.setValue(d),this.cm.setCursor(l.line,l.ch)}),window.$events.listen("editor::prepend",n=>{let l=this.cm.getCursor("from"),c=t(n),d=c+` -`+this.cm.getValue();this.cm.setValue(d);let o=c.split(` -`).length;this.cm.setCursor(l.line+o,l.ch)}),window.$events.listen("editor::insert",n=>{let l=t(n);this.cm.replaceSelection(l)}),window.$events.listen("editor::focus",()=>{this.cm.focus()})}},Cv=Ev;var Tv=class{constructor(t){this.elem=t,this.inviteOption=t.querySelector("input[name=send_invite]"),this.inviteOption&&(this.inviteOption.addEventListener("change",this.inviteOptionChange.bind(this)),this.inviteOptionChange())}inviteOptionChange(){let t=this.inviteOption.value==="true",n=this.elem.querySelectorAll("input[type=password]");for(let c of n)c.disabled=t;let l=this.elem.querySelector("#password-input-container");l&&(l.style.display=t?"none":"block")}},Av=Tv;var Lv=class{constructor(t){this.elem=t,this.type=t.getAttribute("notification"),this.textElem=t.querySelector("span"),this.autohide=this.elem.hasAttribute("data-autohide"),this.elem.style.display="grid",window.$events.listen(this.type,n=>{this.show(n)}),t.addEventListener("click",this.hide.bind(this)),t.hasAttribute("data-show")&&setTimeout(()=>this.show(this.textElem.textContent),100),this.hideCleanup=this.hideCleanup.bind(this)}show(t=""){if(this.elem.removeEventListener("transitionend",this.hideCleanup),this.textElem.textContent=t,this.elem.style.display="grid",setTimeout(()=>{this.elem.classList.add("showing")},1),this.autohide){let n=t.split(" ").length,l=Math.max(2e3,1e3+250*n);setTimeout(this.hide.bind(this),l)}}hide(){this.elem.classList.remove("showing"),this.elem.addEventListener("transitionend",this.hideCleanup)}hideCleanup(){this.elem.style.display="none",this.elem.removeEventListener("transitionend",this.hideCleanup)}},Dv=Lv;var Iv=class{setup(){this.removeButton=this.$refs.remove,this.showButton=this.$refs.show,this.input=this.$refs.input,this.setupListeners()}setupListeners(){Rt(this.removeButton,()=>{this.input.value="",this.input.classList.add("hidden"),this.removeButton.classList.add("hidden"),this.showButton.classList.remove("hidden")}),Rt(this.showButton,()=>{this.input.classList.remove("hidden"),this.removeButton.classList.remove("hidden"),this.showButton.classList.add("hidden")})}},Fv=Iv;var Mv=class{setup(){this.elem=this.$el,this.pageId=Number(this.$opts.pageId),this.container=this.$refs.commentContainer,this.formContainer=this.$refs.formContainer,this.commentCountBar=this.$refs.commentCountBar,this.addButtonContainer=this.$refs.addButtonContainer,this.replyToRow=this.$refs.replyToRow,this.updatedText=this.$opts.updatedText,this.deletedText=this.$opts.deletedText,this.createdText=this.$opts.createdText,this.countText=this.$opts.countText,this.editingComment=null,this.parentId=null,this.formContainer&&(this.form=this.formContainer.querySelector("form"),this.formInput=this.form.querySelector("textarea"),this.form.addEventListener("submit",this.saveComment.bind(this))),this.elem.addEventListener("click",this.handleAction.bind(this)),this.elem.addEventListener("submit",this.updateComment.bind(this))}handleAction(t){let n=t.target.closest("[action]");if(t.target.matches('a[href^="#"]')){let d=t.target.href.split("#")[1];ro(document.querySelector("#"+d))}if(n===null)return;t.preventDefault();let l=n.getAttribute("action"),c=n.closest("[comment]");l==="edit"&&this.editComment(c),l==="closeUpdateForm"&&this.closeUpdateForm(),l==="delete"&&this.deleteComment(c),l==="addComment"&&this.showForm(),l==="hideForm"&&this.hideForm(),l==="reply"&&this.setReply(c),l==="remove-reply-to"&&this.removeReplyTo()}closeUpdateForm(){!this.editingComment||(this.editingComment.querySelector("[comment-content]").style.display="block",this.editingComment.querySelector("[comment-edit-container]").style.display="none")}editComment(t){this.hideForm(),this.editingComment&&this.closeUpdateForm(),t.querySelector("[comment-content]").style.display="none",t.querySelector("[comment-edit-container]").style.display="block";let n=t.querySelector("[comment-edit-container] textarea"),l=n.value.split(` -`).length;n.style.height=l*20+40+"px",this.editingComment=t}updateComment(t){let n=t.target;t.preventDefault();let c={text:n.querySelector("textarea").value,parent_id:this.parentId||null};this.showLoading(n);let d=this.editingComment.getAttribute("comment");window.$http.put(`/comment/${d}`,c).then(o=>{let h=document.createElement("div");h.innerHTML=o.data,this.editingComment.innerHTML=h.children[0].innerHTML,window.$events.success(this.updatedText),window.components.init(this.editingComment),this.closeUpdateForm(),this.editingComment=null}).catch(window.$events.showValidationErrors).then(()=>{this.hideLoading(n)})}deleteComment(t){let n=t.getAttribute("comment");this.showLoading(t.querySelector("[comment-content]")),window.$http.delete(`/comment/${n}`).then(l=>{t.parentNode.removeChild(t),window.$events.success(this.deletedText),this.updateCount(),this.hideForm()})}saveComment(t){t.preventDefault(),t.stopPropagation();let l={text:this.formInput.value,parent_id:this.parentId||null};this.showLoading(this.form),window.$http.post(`/comment/${this.pageId}`,l).then(c=>{let d=document.createElement("div");d.innerHTML=c.data;let o=d.children[0];this.container.appendChild(o),window.components.init(o),window.$events.success(this.createdText),this.resetForm(),this.updateCount()}).catch(c=>{window.$events.showValidationErrors(c),this.hideLoading(this.form)})}updateCount(){let t=this.container.children.length;this.elem.querySelector("[comments-title]").textContent=window.trans_plural(this.countText,t,{count:t})}resetForm(){this.formInput.value="",this.formContainer.appendChild(this.form),this.hideForm(),this.removeReplyTo(),this.hideLoading(this.form)}showForm(){this.formContainer.style.display="block",this.formContainer.parentNode.style.display="block",this.addButtonContainer.style.display="none",this.formInput.focus(),this.formInput.scrollIntoView({behavior:"smooth"})}hideForm(){this.formContainer.style.display="none",this.formContainer.parentNode.style.display="none",this.getCommentCount()>0?this.elem.appendChild(this.addButtonContainer):this.commentCountBar.appendChild(this.addButtonContainer),this.addButtonContainer.style.display="block"}getCommentCount(){return this.elem.querySelectorAll(".comment-box[comment]").length}setReply(t){this.showForm(),this.parentId=Number(t.getAttribute("local-id")),this.replyToRow.style.display="block";let n=this.replyToRow.querySelector("a");n.textContent=`#${this.parentId}`,n.href=`#comment${this.parentId}`}removeReplyTo(){this.parentId=null,this.replyToRow.style.display="none"}showLoading(t){let n=t.querySelectorAll(".form-group");for(let l of n)l.style.display="none";t.querySelector(".form-group.loading").style.display="block"}hideLoading(t){let n=t.querySelectorAll(".form-group");for(let l of n)l.style.display="block";t.querySelector(".form-group.loading").style.display="none"}},Ov=Mv;var Pv=_t(Js());var Rv=class{constructor(t){if(this.elem=t,this.pageId=t.getAttribute("page-display"),sr.highlight(),this.setupPointer(),this.setupNavHighlighting(),this.setupDetailsCodeBlockRefresh(),window.location.hash){let l=window.location.hash.replace(/\%20/g," ").substr(1);this.goToText(l)}let n=document.querySelector(".sidebar-page-nav");n&&jt(n,"a","click",(l,c)=>{l.preventDefault(),window.components["tri-layout"][0].showContent();let d=c.getAttribute("href").substr(1);this.goToText(d),window.history.pushState(null,null,"#"+d)})}goToText(t){let n=document.getElementById(t);if(Jo(".page-content [data-highlighted]",l=>{l.removeAttribute("data-highlighted"),l.style.backgroundColor=null}),n!==null)ro(n);else{let l=Hc(".page-content > div > *",t);l&&ro(l)}}setupPointer(){let t=document.getElementById("pointer");if(!t)return;t=t.parentNode.removeChild(t);let n=t.querySelector("div.pointer"),l=!1,c=!1,d=!0,o="";jt(t,"input","click",(f,p)=>{p.select(),f.stopPropagation()}),ea(t,["click","focus"],f=>{f.stopPropagation()}),jt(t,"span.icon","click",(f,p)=>{f.stopPropagation(),d=!d,p.querySelector('[data-icon="include"]').style.display=d?"none":"inline",p.querySelector('[data-icon="link"]').style.display=d?"inline":"none",h()}),new Pv.default(t.querySelector("button")),ea(document.body,["click","focus"],f=>{!l||c||(t=t.parentElement.removeChild(t),l=!1)});let h=f=>{let p=d?window.baseUrl(`/link/${this.pageId}#${o}`):`{{@${this.pageId}#${o}}}`;d&&!p.startsWith("http")&&(p=window.location.protocol+"//"+window.location.host+p),t.querySelector("input").value=p;let y=t.querySelector("#pointer-edit");if(y&&f){let m=y.dataset.editHref,v=f.id,b=f.textContent&&f.textContent.substring(0,50);y.href=`${m}?content-id=${v}&content-text=${encodeURIComponent(b)}`}};Jo('.page-content [id^="bkmrk"]',f=>{ea(f,["mouseup","keyup"],p=>{p.stopPropagation(),window.getSelection().toString().length!==0&&(o=f.id,h(f),f.parentNode.insertBefore(t,f),t.style.display="block",l=!0,c=!0,requestAnimationFrame(()=>{let m=f.getBoundingClientRect(),v=p.pageX-m.left-164;v<0&&(v=0);let b=v/m.width*100;n.style.left=b+"%",setTimeout(()=>{c=!1},100)}))})})}setupNavHighlighting(){if(!("IntersectionObserver"in window)||!("IntersectionObserverEntry"in window)||!("intersectionRatio"in window.IntersectionObserverEntry.prototype))return;let t=document.querySelector(".sidebar-page-nav"),n=document.querySelector(".page-content").querySelectorAll("h1, h2, h3, h4, h5, h6");n.length>0&&t!==null&&l(n);function l(o){let h={rootMargin:"0px 0px 0px 0px",threshold:1},f=new IntersectionObserver(c,h);for(let p of o)f.observe(p)}function c(o,h){for(let f of o){let p=f.intersectionRatio===1;d(f.target.id,p)}}function d(o,h){Jo('a[href="#'+o+'"]',f=>{f.closest("li").classList.toggle("current-heading",h)})}}setupDetailsCodeBlockRefresh(){let t=l=>{[...l.target.querySelectorAll(".CodeMirror")].forEach(d=>d.CodeMirror&&d.CodeMirror.refresh())};[...this.elem.querySelectorAll("details")].forEach(l=>l.addEventListener("toggle",t))}},zv=Rv;function Nv(i){let t=new Date(i*1e3),n=t.getHours(),l=t.getMinutes();return`${(n>9?"":"0")+n}:${(l>9?"":"0")+l}`}var Bv=class{setup(){this.draftsEnabled=this.$opts.draftsEnabled==="true",this.editorType=this.$opts.editorType,this.pageId=Number(this.$opts.pageId),this.isNewDraft=this.$opts.pageNewDraft==="true",this.hasDefaultTitle=this.$opts.hasDefaultTitle||!1,this.container=this.$el,this.titleElem=this.$refs.titleContainer.querySelector("input"),this.saveDraftButton=this.$refs.saveDraft,this.discardDraftButton=this.$refs.discardDraft,this.discardDraftWrap=this.$refs.discardDraftWrap,this.draftDisplay=this.$refs.draftDisplay,this.draftDisplayIcon=this.$refs.draftDisplayIcon,this.changelogInput=this.$refs.changelogInput,this.changelogDisplay=this.$refs.changelogDisplay,this.draftText=this.$opts.draftText,this.autosaveFailText=this.$opts.autosaveFailText,this.editingPageText=this.$opts.editingPageText,this.draftDiscardedText=this.$opts.draftDiscardedText,this.setChangelogText=this.$opts.setChangelogText,this.editorHTML="",this.editorMarkdown="",this.autoSave={interval:null,frequency:3e4,last:0},this.shownWarningsCache=new Set,this.pageId!==0&&this.draftsEnabled&&window.setTimeout(()=>{this.startAutoSave()},1e3),this.draftDisplay.innerHTML=this.draftText,this.setupListeners(),this.setInitialFocus()}setupListeners(){window.$events.listen("editor-save-draft",this.saveDraft.bind(this)),window.$events.listen("editor-save-page",this.savePage.bind(this)),window.$events.listen("editor-html-change",t=>{this.editorHTML=t}),window.$events.listen("editor-markdown-change",t=>{this.editorMarkdown=t}),this.changelogInput.addEventListener("change",this.updateChangelogDisplay.bind(this)),Rt(this.saveDraftButton,this.saveDraft.bind(this)),Rt(this.discardDraftButton,this.discardDraft.bind(this))}setInitialFocus(){if(this.hasDefaultTitle)return this.titleElem.select();window.setTimeout(()=>{window.$events.emit("editor::focus","")},500)}startAutoSave(){let t=this.titleElem.value.trim()+"::"+this.editorHTML;this.autoSaveInterval=window.setInterval(()=>{if(Date.now()-this.autoSave.last{this.draftDisplayIcon.classList.remove("visible")},2e3)}async discardDraft(){let t;try{t=await window.$http.get(`/ajax/page/${this.pageId}`)}catch(n){return console.error(n)}this.autoSave.interval&&window.clearInterval(this.autoSave.interval),this.draftDisplay.innerText=this.editingPageText,this.toggleDiscardDraftVisibility(!1),window.$events.emit("editor-html-update",t.data.html||""),window.$events.emit("editor-markdown-update",t.data.markdown||t.data.html),this.titleElem.value=t.data.name,window.setTimeout(()=>{this.startAutoSave()},1e3),window.$events.emit("success",this.draftDiscardedText)}updateChangelogDisplay(){let t=this.changelogInput.value.trim();t.length===0?t=this.setChangelogText:t.length>16&&(t=t.slice(0,16)+"..."),this.changelogDisplay.innerText=t}toggleDiscardDraftVisibility(t){this.discardDraftWrap.classList.toggle("hidden",!t)}},qv=Bv;var $v=class{constructor(t){this.elem=t,this.input=t.querySelector("input"),this.resetButton=t.querySelector("[page-picker-reset]"),this.selectButton=t.querySelector("[page-picker-select]"),this.display=t.querySelector("[page-picker-display]"),this.defaultDisplay=t.querySelector("[page-picker-default]"),this.buttonSep=t.querySelector("span.sep"),this.value=this.input.value,this.setupListeners()}setupListeners(){this.selectButton.addEventListener("click",this.showPopup.bind(this)),this.display.parentElement.addEventListener("click",this.showPopup.bind(this)),this.resetButton.addEventListener("click",t=>{this.setValue("","")})}showPopup(){window.EntitySelectorPopup.show(t=>{this.setValue(t.id,t.name)})}setValue(t,n){this.value=t,this.input.value=t,this.controlView(n)}controlView(t){let n=this.value&&this.value!==0;if(Ba(this.resetButton,n),Ba(this.buttonSep,n),Ba(this.defaultDisplay,!n),Ba(this.display,n),n){let l=this.getAssetIdFromVal();this.display.textContent=`#${l}, ${t}`,this.display.href=window.baseUrl(`/link/${l}`)}}getAssetIdFromVal(){return Number(this.value)}};function Ba(i,t){let n=i.tagName==="BUTTON"||i.tagName==="SPAN"?"inline-block":"block";i.style.display=t?n:"none"}var Uv=$v;var jv=class{constructor(t){this.container=t,t.querySelector("[permissions-table-toggle-all]").addEventListener("click",this.toggleAllClick.bind(this));let l=t.querySelectorAll("[permissions-table-toggle-all-in-row]");for(let d of l)d.addEventListener("click",this.toggleRowClick.bind(this));let c=t.querySelectorAll("[permissions-table-toggle-all-in-column]");for(let d of c)d.addEventListener("click",this.toggleColumnClick.bind(this))}toggleAllClick(t){t.preventDefault(),this.toggleAllInElement(this.container)}toggleRowClick(t){t.preventDefault(),this.toggleAllInElement(t.target.closest("tr"))}toggleColumnClick(t){t.preventDefault();let n=t.target.closest("th,td"),l=Array.from(n.parentElement.children).indexOf(n),c=n.closest("table").querySelectorAll("tr"),d=[];for(let o of c){let h=o.children[l];h&&d.push(...h.querySelectorAll("input[type=checkbox]"))}this.toggleAllInputs(d)}toggleAllInElement(t){let n=t.querySelectorAll("input[type=checkbox]");this.toggleAllInputs(n)}toggleAllInputs(t){let n=t.length>0?t[0].checked:!1;for(let l of t)l.checked=!n,l.dispatchEvent(new Event("change"))}},Hv=jv;var Wv=class{setup(){this.container=this.$el,this.hideButtons=this.$manyRefs.hide||[],this.onkeyup=null,this.onHide=null,this.setupListeners()}setupListeners(){let t=null;this.container.addEventListener("mousedown",n=>{t=n.target}),this.container.addEventListener("click",n=>{if(n.target===this.container&&t===this.container)return this.hide()}),Rt(this.hideButtons,n=>this.hide())}hide(t=null){ya(this.container,240,t),this.onkeyup&&(window.removeEventListener("keyup",this.onkeyup),this.onkeyup=null),this.onHide&&this.onHide()}show(t=null,n=null){Of(this.container,240,t),this.onkeyup=l=>{l.key==="Escape"&&this.hide()},window.addEventListener("keyup",this.onkeyup),this.onHide=n}},Gv=Wv;var Kv=class{constructor(t){this.elem=t,this.colorInput=t.querySelector("input[type=color]"),this.lightColorInput=t.querySelector('input[name="setting-app-color-light"]'),this.resetButton=t.querySelector("[setting-app-color-picker-reset]"),this.defaultButton=t.querySelector("[setting-app-color-picker-default]"),this.colorInput.addEventListener("change",this.updateColor.bind(this)),this.colorInput.addEventListener("input",this.updateColor.bind(this)),this.resetButton.addEventListener("click",n=>{this.colorInput.value=this.colorInput.dataset.current,this.updateColor()}),this.defaultButton.addEventListener("click",n=>{this.colorInput.value=this.colorInput.dataset.default,this.updateColor()})}updateColor(){let t=this.colorInput.value,n=this.hexToRgb(t),l="rgba("+[n.r,n.g,n.b,"0.15"].join(",")+")";this.lightColorInput.value=l;let c=document.getElementById("custom-styles"),d=c.getAttribute("data-color"),o=c.getAttribute("data-color-light");c.innerHTML=c.innerHTML.split(d).join(t),c.innerHTML=c.innerHTML.split(o).join(l),c.setAttribute("data-color",t),c.setAttribute("data-color-light",l)}hexToRgb(t){let n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return{r:n?parseInt(n[1],16):0,g:n?parseInt(n[2],16):0,b:n?parseInt(n[3],16):0}}},Vv=Kv;var Yv=class{constructor(t){this.elem=t,this.colorInput=t.querySelector("input[type=color]"),this.resetButton=t.querySelector("[setting-color-picker-reset]"),this.defaultButton=t.querySelector("[setting-color-picker-default]"),this.resetButton.addEventListener("click",n=>{this.colorInput.value=this.colorInput.dataset.current}),this.defaultButton.addEventListener("click",n=>{this.colorInput.value=this.colorInput.dataset.default})}},Xv=Yv;var Zv=class{constructor(t){this.elem=t,this.input=document.getElementById("books-input"),this.shelfBooksList=t.querySelector("[shelf-sort-assigned-books]"),this.initSortable(),this.setupListeners()}initSortable(){let t=this.elem.querySelectorAll(".scroll-box");for(let n of t)new vi(n,{group:"shelf-books",ghostClass:"primary-background-light",animation:150,onSort:this.onChange.bind(this)})}setupListeners(){this.elem.addEventListener("click",t=>{let n=t.target.closest(".scroll-box-item:not(.instruction)");n&&(t.preventDefault(),this.sortItemClick(n))})}sortItemClick(t){let n=this.elem.querySelectorAll(".scroll-box"),l=Array.from(n).filter(c=>t.parentElement!==c);l.length>0&&l[0].appendChild(t),this.onChange()}onChange(){let t=Array.from(this.shelfBooksList.querySelectorAll("[data-id]"));this.input.value=t.map(n=>n.getAttribute("data-id")).join(",")}},Qv=Zv;var Jv=class{constructor(t){this.elem=t,this.toggleElem=t.querySelector(".sidebar-toggle"),this.toggleElem.addEventListener("click",this.toggle.bind(this))}toggle(t=!0){this.elem.classList.toggle("open")}},ey=Jv;var ty=class{setup(){this.container=this.$el,this.handleSelector=this.$opts.handleSelector;let t=new vi(this.container,{handle:this.handleSelector,animation:150,onSort:()=>{this.$emit("sort",{ids:t.toArray()})},setData(n,l){let c=l.getAttribute("data-drag-content");if(c){let d=JSON.parse(c);for(let[o,h]of Object.entries(d))n.setData(o,h)}},revertOnSpill:!0,dropBubble:!0,dragoverBubble:!1})}},ry=ty;var ny=class{setup(){this.filter=this.$opts.filter,this.$el.addEventListener("change",t=>{if(this.filter&&!t.target.matches(this.filter))return;let n=this.$el.closest("form");n&&n.submit()})}},iy=ny;var oy=class{setup(){this.tabContentsByName={},this.tabButtonsByName={},this.allContents=[],this.allButtons=[];for(let[t,n]of Object.entries(this.$manyRefs||{})){if(t.startsWith("toggle")){let l=t.replace("toggle","").toLowerCase();Rt(n,c=>this.show(l)),this.allButtons.push(...n),this.tabButtonsByName[l]=n}if(t.startsWith("content")){let l=t.replace("content","").toLowerCase();this.tabContentsByName[l]=n,this.allContents.push(...n)}}}show(t){this.allContents.forEach(c=>{c.classList.add("hidden"),c.classList.remove("selected")}),this.allButtons.forEach(c=>c.classList.remove("selected"));let n=this.tabContentsByName[t]||[],l=this.tabButtonsByName[t]||[];n.length>0&&(n.forEach(c=>{c.classList.remove("hidden"),c.classList.add("selected")}),l.forEach(c=>c.classList.add("selected")))}},ay=oy;var sy=class{setup(){this.addRemoveComponentEl=this.$refs.addRemove,this.container=this.$el,this.rowSelector=this.$opts.rowSelector,this.setupListeners()}setupListeners(){this.container.addEventListener("change",t=>{let n=this.addRemoveComponentEl.components["add-remove-rows"];this.hasEmptyRows()||n.add()})}hasEmptyRows(){return[...this.container.querySelectorAll(this.rowSelector)].find(l=>[...l.querySelectorAll("input")].filter(c=>c.value).length===0)!==void 0}},ly=sy;var uy=class{constructor(t){this.elem=t,this.list=t.querySelector("[template-manager-list]"),this.searching=!1,jt(this.elem,"[template-action]","click",this.handleTemplateActionClick.bind(this)),jt(this.elem,".pagination a","click",this.handlePaginationClick.bind(this)),jt(this.elem,".template-item-content","click",this.handleTemplateItemClick.bind(this)),jt(this.elem,".template-item","dragstart",this.handleTemplateItemDragStart.bind(this)),this.setupSearchBox()}handleTemplateItemClick(t,n){let l=n.closest("[template-id]").getAttribute("template-id");this.insertTemplate(l,"replace")}handleTemplateItemDragStart(t,n){let l=n.closest("[template-id]").getAttribute("template-id");t.dataTransfer.setData("bookstack/template",l),t.dataTransfer.setData("text/plain",l)}handleTemplateActionClick(t,n){t.stopPropagation();let l=n.getAttribute("template-action"),c=n.closest("[template-id]").getAttribute("template-id");this.insertTemplate(c,l)}async insertTemplate(t,n="replace"){let l=await window.$http.get(`/templates/${t}`),c="editor::"+n;window.$events.emit(c,l.data)}async handlePaginationClick(t,n){t.preventDefault();let l=n.getAttribute("href"),c=await window.$http.get(l);this.list.innerHTML=c.data}setupSearchBox(){let t=this.elem.querySelector(".search-box");if(!t)return;let n=t.querySelector("input"),l=t.querySelector("button"),c=t.querySelector("button.search-box-cancel");async function d(){let o=n.value,h=await window.$http.get("/templates",{search:o});c.style.display=o?"block":"none",this.list.innerHTML=h.data}d=d.bind(this),t.addEventListener("keypress",o=>{o.key==="Enter"&&(o.preventDefault(),d())}),l.addEventListener("click",o=>{d()}),c.addEventListener("click",o=>{n.value="",d()})}},cy=uy;var fy=class{constructor(t){this.elem=t,this.input=t.querySelector("input[type=hidden]"),this.checkbox=t.querySelector("input[type=checkbox]"),this.checkbox.addEventListener("change",this.stateChange.bind(this))}stateChange(){this.input.value=this.checkbox.checked?"true":"false";let t=new Event("change");this.input.dispatchEvent(t)}},dy=fy;var hy=class{setup(){this.container=this.$refs.container,this.tabs=this.$manyRefs.tab,this.lastLayoutType="none",this.onDestroy=null,this.scrollCache={content:0,info:0},this.lastTabShown="content",this.mobileTabClick=this.mobileTabClick.bind(this),this.updateLayout(),window.addEventListener("resize",t=>{this.updateLayout()},{passive:!0})}updateLayout(){let t="tablet";window.innerWidth<=1e3&&(t="mobile"),window.innerWidth>=1400&&(t="desktop"),t!==this.lastLayoutType&&(this.onDestroy&&(this.onDestroy(),this.onDestroy=null),t==="desktop"?this.setupDesktop():t==="mobile"&&this.setupMobile(),this.lastLayoutType=t)}setupMobile(){for(let t of this.tabs)t.addEventListener("click",this.mobileTabClick);this.onDestroy=()=>{for(let t of this.tabs)t.removeEventListener("click",this.mobileTabClick)}}setupDesktop(){}mobileTabClick(t){let n=t.target.dataset.tab;this.showTab(n)}showContent(){this.showTab("content",!1)}showTab(t,n=!0){this.scrollCache[this.lastTabShown]=document.documentElement.scrollTop;for(let c of this.tabs){let d=c.dataset.tab===t;c.setAttribute("aria-selected",d?"true":"false")}let l=t==="info";if(this.container.classList.toggle("show-info",l),n){let d=document.querySelector("header").getBoundingClientRect().bottom;document.documentElement.scrollTop=this.scrollCache[t]||d,setTimeout(()=>{document.documentElement.scrollTop=this.scrollCache[t]||d},50)}this.lastTabShown=t}},py=hy;var my=class{setup(){this.input=this.$refs.input,this.userInfoContainer=this.$refs.userInfo,this.hide=this.$el.components.dropdown.hide,jt(this.$el,"a.dropdown-search-item","click",this.selectUser.bind(this))}selectUser(t,n){t.preventDefault();let l=n.getAttribute("data-id");this.input.value=l,this.userInfoContainer.innerHTML=n.innerHTML,this.input.dispatchEvent(new Event("change",{bubbles:!0})),this.hide()}},gy=my;var vy=class{setup(){this.checkboxes=this.$el.querySelectorAll('input[type="checkbox"]'),this.allCheckbox=this.$el.querySelector('input[type="checkbox"][value="all"]'),this.$el.addEventListener("change",t=>{t.target.checked&&t.target===this.allCheckbox?this.deselectIndividualEvents():t.target.checked&&(this.allCheckbox.checked=!1)})}deselectIndividualEvents(){for(let t of this.checkboxes)t!==this.allCheckbox&&(t.checked=!1)}},yy=vy;function by(i,t,n){let l=new xo(i.clipboardData||i.dataTransfer);if(!l.hasItems()||l.containsTabularData())return;let c=l.getImages();for(let d of c){let o="image-"+Math.random().toString(16).slice(2),h=window.baseUrl("/loading.gif");i.preventDefault(),setTimeout(()=>{t.insertContent(`

    `),Jk(d,n).then(f=>{let p=f.name.replace(/"/g,""),y=`${p}`,m=t.dom.create("a",{target:"_blank",href:f.url},y);t.dom.replace(m,o)}).catch(f=>{t.dom.remove(o),window.$events.emit("error",n.imageUploadErrorText),console.log(f)})},10)}}async function Jk(i,t){if(i===null||i.type.indexOf("image")!==0)throw new Error("Not an image file");let n="png";if(i.name){let o=i.name.match(/\.(.+)$/);o.length>1&&(n=o[1])}let l="image-"+Date.now()+"."+n,c=new FormData;return c.append("file",i,l),c.append("uploaded_to",t.pageId),(await window.$http.post(window.baseUrl("/images/gallery"),c)).data}function e_(i){for(let t=1;t<5;t++)i.shortcuts.add("meta+"+t,"",["FormatBlock",!1,"h"+(t+1)]);i.shortcuts.add("meta+5","",["FormatBlock",!1,"p"]),i.shortcuts.add("meta+d","",["FormatBlock",!1,"p"]),i.shortcuts.add("meta+6","",["FormatBlock",!1,"blockquote"]),i.shortcuts.add("meta+q","",["FormatBlock",!1,"blockquote"]),i.shortcuts.add("meta+7","",["codeeditor",!1,"pre"]),i.shortcuts.add("meta+e","",["codeeditor",!1,"pre"]),i.shortcuts.add("meta+8","",["FormatBlock",!1,"code"]),i.shortcuts.add("meta+shift+E","",["FormatBlock",!1,"code"]),i.shortcuts.add("meta+S","",()=>{window.$events.emit("editor-save-draft")}),i.shortcuts.add("meta+13","",()=>{window.$events.emit("editor-save-page")}),i.shortcuts.add("meta+9","",function(){let t=i.selection.getNode(),n=t?t.closest(".callout"):null,l=["info","success","warning","danger"],d=(l.findIndex(h=>n&&n.classList.contains(h))+1)%l.length,o=l[d];i.formatter.apply("callout"+o)})}function t_(i){window.$http.get(window.baseUrl("/custom-head-content")).then(t=>{if(!t.data)return;let n=i.getDoc().querySelector("head");n.innerHTML+=t.data})}function r_(){function i(l){return l.className==="CodeMirrorContainer"}function t(l){let c=l.selection.getNode();if(!i(c)){let h=l.selection.getNode().textContent;window.components.first("code-editor").open(h,"",(f,p)=>{let y=document.createElement("div");y.innerHTML=`
    `,y.querySelector("code").innerText=f,l.formatter.toggle("pre");let m=l.selection.getNode();l.dom.setHTML(m,y.querySelector("pre").innerHTML),l.fire("SetContent"),l.focus()});return}let d=c.hasAttribute("data-lang")?c.getAttribute("data-lang"):"",o=c.querySelector("textarea").textContent;window.components.first("code-editor").open(o,d,(h,f)=>{let y=c.querySelector(".CodeMirror").CodeMirror;y&&(sr.setContent(y,h),sr.setMode(y,f,h));let m=c.querySelector("textarea");m&&(m.textContent=h),c.setAttribute("data-lang",f),l.focus()})}function n(l){let d=l.querySelector("textarea").textContent,o=l.getAttribute("data-lang");l.removeAttribute("contentEditable");let h=document.createElement("pre"),f=document.createElement("code");f.classList.add(`language-${o}`),f.textContent=d,h.appendChild(f),l.parentElement.replaceChild(h,l)}window.tinymce.PluginManager.add("codeeditor",function(l,c){let d=l.$;l.addButton("codeeditor",{text:"Code block",icon:!1,cmd:"codeeditor"}),l.addCommand("codeeditor",()=>{t(l)}),l.on("PreProcess",function(h){d("div.CodeMirrorContainer",h.node).each((f,p)=>{n(p)})}),l.on("dblclick",h=>{let f=l.selection.getNode();!i(f)||t(l)});function o(){d(".CodeMirrorContainer").filter((f,p)=>typeof p.querySelector(".CodeMirror").CodeMirror=="undefined").each((f,p)=>{n(p)}),d("body > pre").filter((f,p)=>p.contentEditable!=="false").each((f,p)=>{sr.wysiwygView(p)})}l.on("init",function(){l.undoManager.transact(function(){o()}),setTimeout(()=>{l.on("SetContent",()=>{setTimeout(o,100)})},200)})})}function n_(i,t,n,l){let c=null,d=null;function o(m){return m.hasAttribute("drawio-diagram")}function h(m,v=null){c=m,d=v,window.ImageManager.show(function(b){if(v){let k=v.querySelector("img");c.dom.setAttrib(k,"src",b.url),c.dom.setAttrib(v,"drawio-diagram",b.id)}else{let k=`
    `;c.insertContent(k)}},"drawio")}function f(m,v=null){c=m,d=v,zr.show(i,y,p)}async function p(m){let v="image-"+Math.random().toString(16).slice(2),b=window.baseUrl("/loading.gif"),k=E=>{E.status===413?window.$events.emit("error",l.serverUploadLimitText):window.$events.emit("error",l.imageUploadErrorText),console.log(E)};if(d){zr.close();let E=d.querySelector("img");try{let w=await zr.upload(m,n);c.dom.setAttrib(E,"src",w.url),c.dom.setAttrib(d,"drawio-diagram",w.id)}catch(w){k(w)}return}setTimeout(async()=>{c.insertContent(`
    `),zr.close();try{let E=await zr.upload(m,n);c.dom.setAttrib(v,"src",E.url),c.dom.get(v).parentNode.setAttribute("drawio-diagram",E.id)}catch(E){c.dom.remove(v),k(E)}},5)}function y(){if(!d)return Promise.resolve("");let m=d.getAttribute("drawio-diagram");return zr.load(m)}window.tinymce.PluginManager.add("drawio",function(m,v){m.addCommand("drawio",()=>{let b=m.selection.getNode();f(m,o(b)?b:null)}),m.addButton("drawio",{type:"splitbutton",tooltip:"Drawing",image:`data:image/svg+xml;base64,${btoa(` +`+this.cm.getValue();this.cm.setValue(d);let a=c.split(` +`).length;this.cm.setCursor(l.line+a,l.ch)}),window.$events.listen("editor::insert",n=>{let l=t(n);this.cm.replaceSelection(l)}),window.$events.listen("editor::focus",()=>{this.cm.focus()})}},Sv=_v;var Ev=class{constructor(t){this.elem=t,this.inviteOption=t.querySelector("input[name=send_invite]"),this.inviteOption&&(this.inviteOption.addEventListener("change",this.inviteOptionChange.bind(this)),this.inviteOptionChange())}inviteOptionChange(){let t=this.inviteOption.value==="true",n=this.elem.querySelectorAll("input[type=password]");for(let c of n)c.disabled=t;let l=this.elem.querySelector("#password-input-container");l&&(l.style.display=t?"none":"block")}},Cv=Ev;var Tv=class{constructor(t){this.elem=t,this.type=t.getAttribute("notification"),this.textElem=t.querySelector("span"),this.autohide=this.elem.hasAttribute("data-autohide"),this.elem.style.display="grid",window.$events.listen(this.type,n=>{this.show(n)}),t.addEventListener("click",this.hide.bind(this)),t.hasAttribute("data-show")&&setTimeout(()=>this.show(this.textElem.textContent),100),this.hideCleanup=this.hideCleanup.bind(this)}show(t=""){if(this.elem.removeEventListener("transitionend",this.hideCleanup),this.textElem.textContent=t,this.elem.style.display="grid",setTimeout(()=>{this.elem.classList.add("showing")},1),this.autohide){let n=t.split(" ").length,l=Math.max(2e3,1e3+250*n);setTimeout(this.hide.bind(this),l)}}hide(){this.elem.classList.remove("showing"),this.elem.addEventListener("transitionend",this.hideCleanup)}hideCleanup(){this.elem.style.display="none",this.elem.removeEventListener("transitionend",this.hideCleanup)}},Av=Tv;var Lv=class{setup(){this.removeButton=this.$refs.remove,this.showButton=this.$refs.show,this.input=this.$refs.input,this.setupListeners()}setupListeners(){Rt(this.removeButton,()=>{this.input.value="",this.input.classList.add("hidden"),this.removeButton.classList.add("hidden"),this.showButton.classList.remove("hidden")}),Rt(this.showButton,()=>{this.input.classList.remove("hidden"),this.removeButton.classList.remove("hidden"),this.showButton.classList.add("hidden")})}},Dv=Lv;var Iv=class{setup(){this.elem=this.$el,this.pageId=Number(this.$opts.pageId),this.container=this.$refs.commentContainer,this.formContainer=this.$refs.formContainer,this.commentCountBar=this.$refs.commentCountBar,this.addButtonContainer=this.$refs.addButtonContainer,this.replyToRow=this.$refs.replyToRow,this.updatedText=this.$opts.updatedText,this.deletedText=this.$opts.deletedText,this.createdText=this.$opts.createdText,this.countText=this.$opts.countText,this.editingComment=null,this.parentId=null,this.formContainer&&(this.form=this.formContainer.querySelector("form"),this.formInput=this.form.querySelector("textarea"),this.form.addEventListener("submit",this.saveComment.bind(this))),this.elem.addEventListener("click",this.handleAction.bind(this)),this.elem.addEventListener("submit",this.updateComment.bind(this))}handleAction(t){let n=t.target.closest("[action]");if(t.target.matches('a[href^="#"]')){let d=t.target.href.split("#")[1];ro(document.querySelector("#"+d))}if(n===null)return;t.preventDefault();let l=n.getAttribute("action"),c=n.closest("[comment]");l==="edit"&&this.editComment(c),l==="closeUpdateForm"&&this.closeUpdateForm(),l==="delete"&&this.deleteComment(c),l==="addComment"&&this.showForm(),l==="hideForm"&&this.hideForm(),l==="reply"&&this.setReply(c),l==="remove-reply-to"&&this.removeReplyTo()}closeUpdateForm(){!this.editingComment||(this.editingComment.querySelector("[comment-content]").style.display="block",this.editingComment.querySelector("[comment-edit-container]").style.display="none")}editComment(t){this.hideForm(),this.editingComment&&this.closeUpdateForm(),t.querySelector("[comment-content]").style.display="none",t.querySelector("[comment-edit-container]").style.display="block";let n=t.querySelector("[comment-edit-container] textarea"),l=n.value.split(` +`).length;n.style.height=l*20+40+"px",this.editingComment=t}updateComment(t){let n=t.target;t.preventDefault();let c={text:n.querySelector("textarea").value,parent_id:this.parentId||null};this.showLoading(n);let d=this.editingComment.getAttribute("comment");window.$http.put(`/comment/${d}`,c).then(a=>{let h=document.createElement("div");h.innerHTML=a.data,this.editingComment.innerHTML=h.children[0].innerHTML,window.$events.success(this.updatedText),window.components.init(this.editingComment),this.closeUpdateForm(),this.editingComment=null}).catch(window.$events.showValidationErrors).then(()=>{this.hideLoading(n)})}deleteComment(t){let n=t.getAttribute("comment");this.showLoading(t.querySelector("[comment-content]")),window.$http.delete(`/comment/${n}`).then(l=>{t.parentNode.removeChild(t),window.$events.success(this.deletedText),this.updateCount(),this.hideForm()})}saveComment(t){t.preventDefault(),t.stopPropagation();let l={text:this.formInput.value,parent_id:this.parentId||null};this.showLoading(this.form),window.$http.post(`/comment/${this.pageId}`,l).then(c=>{let d=document.createElement("div");d.innerHTML=c.data;let a=d.children[0];this.container.appendChild(a),window.components.init(a),window.$events.success(this.createdText),this.resetForm(),this.updateCount()}).catch(c=>{window.$events.showValidationErrors(c),this.hideLoading(this.form)})}updateCount(){let t=this.container.children.length;this.elem.querySelector("[comments-title]").textContent=window.trans_plural(this.countText,t,{count:t})}resetForm(){this.formInput.value="",this.formContainer.appendChild(this.form),this.hideForm(),this.removeReplyTo(),this.hideLoading(this.form)}showForm(){this.formContainer.style.display="block",this.formContainer.parentNode.style.display="block",this.addButtonContainer.style.display="none",this.formInput.focus(),this.formInput.scrollIntoView({behavior:"smooth"})}hideForm(){this.formContainer.style.display="none",this.formContainer.parentNode.style.display="none",this.getCommentCount()>0?this.elem.appendChild(this.addButtonContainer):this.commentCountBar.appendChild(this.addButtonContainer),this.addButtonContainer.style.display="block"}getCommentCount(){return this.elem.querySelectorAll(".comment-box[comment]").length}setReply(t){this.showForm(),this.parentId=Number(t.getAttribute("local-id")),this.replyToRow.style.display="block";let n=this.replyToRow.querySelector("a");n.textContent=`#${this.parentId}`,n.href=`#comment${this.parentId}`}removeReplyTo(){this.parentId=null,this.replyToRow.style.display="none"}showLoading(t){let n=t.querySelectorAll(".form-group");for(let l of n)l.style.display="none";t.querySelector(".form-group.loading").style.display="block"}hideLoading(t){let n=t.querySelectorAll(".form-group");for(let l of n)l.style.display="block";t.querySelector(".form-group.loading").style.display="none"}},Fv=Iv;var Mv=_t(Qs());var Ov=class{constructor(t){if(this.elem=t,this.pageId=t.getAttribute("page-display"),sr.highlight(),this.setupPointer(),this.setupNavHighlighting(),this.setupDetailsCodeBlockRefresh(),window.location.hash){let l=window.location.hash.replace(/\%20/g," ").substr(1);this.goToText(l)}let n=document.querySelector(".sidebar-page-nav");n&&Ut(n,"a","click",(l,c)=>{l.preventDefault(),window.components["tri-layout"][0].showContent();let d=c.getAttribute("href").substr(1);this.goToText(d),window.history.pushState(null,null,"#"+d)})}goToText(t){let n=document.getElementById(t);if(Jo(".page-content [data-highlighted]",l=>{l.removeAttribute("data-highlighted"),l.style.backgroundColor=null}),n!==null)ro(n);else{let l=Uc(".page-content > div > *",t);l&&ro(l)}}setupPointer(){let t=document.getElementById("pointer");if(!t)return;t=t.parentNode.removeChild(t);let n=t.querySelector("div.pointer"),l=!1,c=!1,d=!0,a="";Ut(t,"input","click",(f,p)=>{p.select(),f.stopPropagation()}),ea(t,["click","focus"],f=>{f.stopPropagation()}),Ut(t,"span.icon","click",(f,p)=>{f.stopPropagation(),d=!d,p.querySelector('[data-icon="include"]').style.display=d?"none":"inline",p.querySelector('[data-icon="link"]').style.display=d?"inline":"none",h()}),new Mv.default(t.querySelector("button")),ea(document.body,["click","focus"],f=>{!l||c||(t=t.parentElement.removeChild(t),l=!1)});let h=f=>{let p=d?window.baseUrl(`/link/${this.pageId}#${a}`):`{{@${this.pageId}#${a}}}`;d&&!p.startsWith("http")&&(p=window.location.protocol+"//"+window.location.host+p),t.querySelector("input").value=p;let y=t.querySelector("#pointer-edit");if(y&&f){let g=y.dataset.editHref,v=f.id,b=f.textContent&&f.textContent.substring(0,50);y.href=`${g}?content-id=${v}&content-text=${encodeURIComponent(b)}`}};Jo('.page-content [id^="bkmrk"]',f=>{ea(f,["mouseup","keyup"],p=>{p.stopPropagation(),window.getSelection().toString().length!==0&&(a=f.id,h(f),f.parentNode.insertBefore(t,f),t.style.display="block",l=!0,c=!0,requestAnimationFrame(()=>{let g=f.getBoundingClientRect(),v=p.pageX-g.left-164;v<0&&(v=0);let b=v/g.width*100;n.style.left=b+"%",setTimeout(()=>{c=!1},100)}))})})}setupNavHighlighting(){if(!("IntersectionObserver"in window)||!("IntersectionObserverEntry"in window)||!("intersectionRatio"in window.IntersectionObserverEntry.prototype))return;let t=document.querySelector(".sidebar-page-nav"),n=document.querySelector(".page-content").querySelectorAll("h1, h2, h3, h4, h5, h6");n.length>0&&t!==null&&l(n);function l(a){let h={rootMargin:"0px 0px 0px 0px",threshold:1},f=new IntersectionObserver(c,h);for(let p of a)f.observe(p)}function c(a,h){for(let f of a){let p=f.intersectionRatio===1;d(f.target.id,p)}}function d(a,h){Jo('a[href="#'+a+'"]',f=>{f.closest("li").classList.toggle("current-heading",h)})}}setupDetailsCodeBlockRefresh(){let t=l=>{[...l.target.querySelectorAll(".CodeMirror")].forEach(d=>d.CodeMirror&&d.CodeMirror.refresh())};[...this.elem.querySelectorAll("details")].forEach(l=>l.addEventListener("toggle",t))}},Pv=Ov;function Rv(i){let t=new Date(i*1e3),n=t.getHours(),l=t.getMinutes();return`${(n>9?"":"0")+n}:${(l>9?"":"0")+l}`}var zv=class{setup(){this.draftsEnabled=this.$opts.draftsEnabled==="true",this.editorType=this.$opts.editorType,this.pageId=Number(this.$opts.pageId),this.isNewDraft=this.$opts.pageNewDraft==="true",this.hasDefaultTitle=this.$opts.hasDefaultTitle||!1,this.container=this.$el,this.titleElem=this.$refs.titleContainer.querySelector("input"),this.saveDraftButton=this.$refs.saveDraft,this.discardDraftButton=this.$refs.discardDraft,this.discardDraftWrap=this.$refs.discardDraftWrap,this.draftDisplay=this.$refs.draftDisplay,this.draftDisplayIcon=this.$refs.draftDisplayIcon,this.changelogInput=this.$refs.changelogInput,this.changelogDisplay=this.$refs.changelogDisplay,this.draftText=this.$opts.draftText,this.autosaveFailText=this.$opts.autosaveFailText,this.editingPageText=this.$opts.editingPageText,this.draftDiscardedText=this.$opts.draftDiscardedText,this.setChangelogText=this.$opts.setChangelogText,this.editorHTML="",this.editorMarkdown="",this.autoSave={interval:null,frequency:3e4,last:0},this.shownWarningsCache=new Set,this.pageId!==0&&this.draftsEnabled&&window.setTimeout(()=>{this.startAutoSave()},1e3),this.draftDisplay.innerHTML=this.draftText,this.setupListeners(),this.setInitialFocus()}setupListeners(){window.$events.listen("editor-save-draft",this.saveDraft.bind(this)),window.$events.listen("editor-save-page",this.savePage.bind(this)),window.$events.listen("editor-html-change",t=>{this.editorHTML=t}),window.$events.listen("editor-markdown-change",t=>{this.editorMarkdown=t}),this.changelogInput.addEventListener("change",this.updateChangelogDisplay.bind(this)),Rt(this.saveDraftButton,this.saveDraft.bind(this)),Rt(this.discardDraftButton,this.discardDraft.bind(this))}setInitialFocus(){if(this.hasDefaultTitle)return this.titleElem.select();window.setTimeout(()=>{window.$events.emit("editor::focus","")},500)}startAutoSave(){let t=this.titleElem.value.trim()+"::"+this.editorHTML;this.autoSaveInterval=window.setInterval(()=>{if(Date.now()-this.autoSave.last{this.draftDisplayIcon.classList.remove("visible")},2e3)}async discardDraft(){let t;try{t=await window.$http.get(`/ajax/page/${this.pageId}`)}catch(n){return console.error(n)}this.autoSave.interval&&window.clearInterval(this.autoSave.interval),this.draftDisplay.innerText=this.editingPageText,this.toggleDiscardDraftVisibility(!1),window.$events.emit("editor-html-update",t.data.html||""),window.$events.emit("editor-markdown-update",t.data.markdown||t.data.html),this.titleElem.value=t.data.name,window.setTimeout(()=>{this.startAutoSave()},1e3),window.$events.emit("success",this.draftDiscardedText)}updateChangelogDisplay(){let t=this.changelogInput.value.trim();t.length===0?t=this.setChangelogText:t.length>16&&(t=t.slice(0,16)+"..."),this.changelogDisplay.innerText=t}toggleDiscardDraftVisibility(t){this.discardDraftWrap.classList.toggle("hidden",!t)}},Nv=zv;var Bv=class{constructor(t){this.elem=t,this.input=t.querySelector("input"),this.resetButton=t.querySelector("[page-picker-reset]"),this.selectButton=t.querySelector("[page-picker-select]"),this.display=t.querySelector("[page-picker-display]"),this.defaultDisplay=t.querySelector("[page-picker-default]"),this.buttonSep=t.querySelector("span.sep"),this.value=this.input.value,this.setupListeners()}setupListeners(){this.selectButton.addEventListener("click",this.showPopup.bind(this)),this.display.parentElement.addEventListener("click",this.showPopup.bind(this)),this.resetButton.addEventListener("click",t=>{this.setValue("","")})}showPopup(){window.EntitySelectorPopup.show(t=>{this.setValue(t.id,t.name)})}setValue(t,n){this.value=t,this.input.value=t,this.controlView(n)}controlView(t){let n=this.value&&this.value!==0;if(Ba(this.resetButton,n),Ba(this.buttonSep,n),Ba(this.defaultDisplay,!n),Ba(this.display,n),n){let l=this.getAssetIdFromVal();this.display.textContent=`#${l}, ${t}`,this.display.href=window.baseUrl(`/link/${l}`)}}getAssetIdFromVal(){return Number(this.value)}};function Ba(i,t){let n=i.tagName==="BUTTON"||i.tagName==="SPAN"?"inline-block":"block";i.style.display=t?n:"none"}var qv=Bv;var jv=class{constructor(t){this.container=t,t.querySelector("[permissions-table-toggle-all]").addEventListener("click",this.toggleAllClick.bind(this));let l=t.querySelectorAll("[permissions-table-toggle-all-in-row]");for(let d of l)d.addEventListener("click",this.toggleRowClick.bind(this));let c=t.querySelectorAll("[permissions-table-toggle-all-in-column]");for(let d of c)d.addEventListener("click",this.toggleColumnClick.bind(this))}toggleAllClick(t){t.preventDefault(),this.toggleAllInElement(this.container)}toggleRowClick(t){t.preventDefault(),this.toggleAllInElement(t.target.closest("tr"))}toggleColumnClick(t){t.preventDefault();let n=t.target.closest("th,td"),l=Array.from(n.parentElement.children).indexOf(n),c=n.closest("table").querySelectorAll("tr"),d=[];for(let a of c){let h=a.children[l];h&&d.push(...h.querySelectorAll("input[type=checkbox]"))}this.toggleAllInputs(d)}toggleAllInElement(t){let n=t.querySelectorAll("input[type=checkbox]");this.toggleAllInputs(n)}toggleAllInputs(t){let n=t.length>0?t[0].checked:!1;for(let l of t)l.checked=!n,l.dispatchEvent(new Event("change"))}},$v=jv;var Uv=class{setup(){this.container=this.$el,this.hideButtons=this.$manyRefs.hide||[],this.onkeyup=null,this.onHide=null,this.setupListeners()}setupListeners(){let t=null;this.container.addEventListener("mousedown",n=>{t=n.target}),this.container.addEventListener("click",n=>{if(n.target===this.container&&t===this.container)return this.hide()}),Rt(this.hideButtons,n=>this.hide())}hide(t=null){ya(this.container,240,t),this.onkeyup&&(window.removeEventListener("keyup",this.onkeyup),this.onkeyup=null),this.onHide&&this.onHide()}show(t=null,n=null){Ff(this.container,240,t),this.onkeyup=l=>{l.key==="Escape"&&this.hide()},window.addEventListener("keyup",this.onkeyup),this.onHide=n}},Hv=Uv;var Wv=class{constructor(t){this.elem=t,this.colorInput=t.querySelector("input[type=color]"),this.lightColorInput=t.querySelector('input[name="setting-app-color-light"]'),this.resetButton=t.querySelector("[setting-app-color-picker-reset]"),this.defaultButton=t.querySelector("[setting-app-color-picker-default]"),this.colorInput.addEventListener("change",this.updateColor.bind(this)),this.colorInput.addEventListener("input",this.updateColor.bind(this)),this.resetButton.addEventListener("click",n=>{this.colorInput.value=this.colorInput.dataset.current,this.updateColor()}),this.defaultButton.addEventListener("click",n=>{this.colorInput.value=this.colorInput.dataset.default,this.updateColor()})}updateColor(){let t=this.colorInput.value,n=this.hexToRgb(t),l="rgba("+[n.r,n.g,n.b,"0.15"].join(",")+")";this.lightColorInput.value=l;let c=document.getElementById("custom-styles"),d=c.getAttribute("data-color"),a=c.getAttribute("data-color-light");c.innerHTML=c.innerHTML.split(d).join(t),c.innerHTML=c.innerHTML.split(a).join(l),c.setAttribute("data-color",t),c.setAttribute("data-color-light",l)}hexToRgb(t){let n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return{r:n?parseInt(n[1],16):0,g:n?parseInt(n[2],16):0,b:n?parseInt(n[3],16):0}}},Gv=Wv;var Kv=class{constructor(t){this.elem=t,this.colorInput=t.querySelector("input[type=color]"),this.resetButton=t.querySelector("[setting-color-picker-reset]"),this.defaultButton=t.querySelector("[setting-color-picker-default]"),this.resetButton.addEventListener("click",n=>{this.colorInput.value=this.colorInput.dataset.current}),this.defaultButton.addEventListener("click",n=>{this.colorInput.value=this.colorInput.dataset.default})}},Vv=Kv;var Yv=class{constructor(t){this.elem=t,this.input=document.getElementById("books-input"),this.shelfBooksList=t.querySelector("[shelf-sort-assigned-books]"),this.initSortable(),this.setupListeners()}initSortable(){let t=this.elem.querySelectorAll(".scroll-box");for(let n of t)new vi(n,{group:"shelf-books",ghostClass:"primary-background-light",animation:150,onSort:this.onChange.bind(this)})}setupListeners(){this.elem.addEventListener("click",t=>{let n=t.target.closest(".scroll-box-item:not(.instruction)");n&&(t.preventDefault(),this.sortItemClick(n))})}sortItemClick(t){let n=this.elem.querySelectorAll(".scroll-box"),l=Array.from(n).filter(c=>t.parentElement!==c);l.length>0&&l[0].appendChild(t),this.onChange()}onChange(){let t=Array.from(this.shelfBooksList.querySelectorAll("[data-id]"));this.input.value=t.map(n=>n.getAttribute("data-id")).join(",")}},Xv=Yv;var Zv=class{constructor(t){this.elem=t,this.toggleElem=t.querySelector(".sidebar-toggle"),this.toggleElem.addEventListener("click",this.toggle.bind(this))}toggle(t=!0){this.elem.classList.toggle("open")}},Qv=Zv;var Jv=class{setup(){this.container=this.$el,this.handleSelector=this.$opts.handleSelector;let t=new vi(this.container,{handle:this.handleSelector,animation:150,onSort:()=>{this.$emit("sort",{ids:t.toArray()})},setData(n,l){let c=l.getAttribute("data-drag-content");if(c){let d=JSON.parse(c);for(let[a,h]of Object.entries(d))n.setData(a,h)}},revertOnSpill:!0,dropBubble:!0,dragoverBubble:!1})}},ey=Jv;var ty=class{setup(){this.filter=this.$opts.filter,this.$el.addEventListener("change",t=>{if(this.filter&&!t.target.matches(this.filter))return;let n=this.$el.closest("form");n&&n.submit()})}},ry=ty;var ny=class{setup(){this.tabContentsByName={},this.tabButtonsByName={},this.allContents=[],this.allButtons=[];for(let[t,n]of Object.entries(this.$manyRefs||{})){if(t.startsWith("toggle")){let l=t.replace("toggle","").toLowerCase();Rt(n,c=>this.show(l)),this.allButtons.push(...n),this.tabButtonsByName[l]=n}if(t.startsWith("content")){let l=t.replace("content","").toLowerCase();this.tabContentsByName[l]=n,this.allContents.push(...n)}}}show(t){this.allContents.forEach(c=>{c.classList.add("hidden"),c.classList.remove("selected")}),this.allButtons.forEach(c=>c.classList.remove("selected"));let n=this.tabContentsByName[t]||[],l=this.tabButtonsByName[t]||[];n.length>0&&(n.forEach(c=>{c.classList.remove("hidden"),c.classList.add("selected")}),l.forEach(c=>c.classList.add("selected")))}},iy=ny;var oy=class{setup(){this.addRemoveComponentEl=this.$refs.addRemove,this.container=this.$el,this.rowSelector=this.$opts.rowSelector,this.setupListeners()}setupListeners(){this.container.addEventListener("change",t=>{let n=this.addRemoveComponentEl.components["add-remove-rows"];this.hasEmptyRows()||n.add()})}hasEmptyRows(){return[...this.container.querySelectorAll(this.rowSelector)].find(l=>[...l.querySelectorAll("input")].filter(c=>c.value).length===0)!==void 0}},ay=oy;var sy=class{constructor(t){this.elem=t,this.list=t.querySelector("[template-manager-list]"),this.searching=!1,Ut(this.elem,"[template-action]","click",this.handleTemplateActionClick.bind(this)),Ut(this.elem,".pagination a","click",this.handlePaginationClick.bind(this)),Ut(this.elem,".template-item-content","click",this.handleTemplateItemClick.bind(this)),Ut(this.elem,".template-item","dragstart",this.handleTemplateItemDragStart.bind(this)),this.setupSearchBox()}handleTemplateItemClick(t,n){let l=n.closest("[template-id]").getAttribute("template-id");this.insertTemplate(l,"replace")}handleTemplateItemDragStart(t,n){let l=n.closest("[template-id]").getAttribute("template-id");t.dataTransfer.setData("bookstack/template",l),t.dataTransfer.setData("text/plain",l)}handleTemplateActionClick(t,n){t.stopPropagation();let l=n.getAttribute("template-action"),c=n.closest("[template-id]").getAttribute("template-id");this.insertTemplate(c,l)}async insertTemplate(t,n="replace"){let l=await window.$http.get(`/templates/${t}`),c="editor::"+n;window.$events.emit(c,l.data)}async handlePaginationClick(t,n){t.preventDefault();let l=n.getAttribute("href"),c=await window.$http.get(l);this.list.innerHTML=c.data}setupSearchBox(){let t=this.elem.querySelector(".search-box");if(!t)return;let n=t.querySelector("input"),l=t.querySelector("button"),c=t.querySelector("button.search-box-cancel");async function d(){let a=n.value,h=await window.$http.get("/templates",{search:a});c.style.display=a?"block":"none",this.list.innerHTML=h.data}d=d.bind(this),t.addEventListener("keypress",a=>{a.key==="Enter"&&(a.preventDefault(),d())}),l.addEventListener("click",a=>{d()}),c.addEventListener("click",a=>{n.value="",d()})}},ly=sy;var uy=class{constructor(t){this.elem=t,this.input=t.querySelector("input[type=hidden]"),this.checkbox=t.querySelector("input[type=checkbox]"),this.checkbox.addEventListener("change",this.stateChange.bind(this))}stateChange(){this.input.value=this.checkbox.checked?"true":"false";let t=new Event("change");this.input.dispatchEvent(t)}},cy=uy;var fy=class{setup(){this.container=this.$refs.container,this.tabs=this.$manyRefs.tab,this.lastLayoutType="none",this.onDestroy=null,this.scrollCache={content:0,info:0},this.lastTabShown="content",this.mobileTabClick=this.mobileTabClick.bind(this),this.updateLayout(),window.addEventListener("resize",t=>{this.updateLayout()},{passive:!0})}updateLayout(){let t="tablet";window.innerWidth<=1e3&&(t="mobile"),window.innerWidth>=1400&&(t="desktop"),t!==this.lastLayoutType&&(this.onDestroy&&(this.onDestroy(),this.onDestroy=null),t==="desktop"?this.setupDesktop():t==="mobile"&&this.setupMobile(),this.lastLayoutType=t)}setupMobile(){for(let t of this.tabs)t.addEventListener("click",this.mobileTabClick);this.onDestroy=()=>{for(let t of this.tabs)t.removeEventListener("click",this.mobileTabClick)}}setupDesktop(){}mobileTabClick(t){let n=t.target.dataset.tab;this.showTab(n)}showContent(){this.showTab("content",!1)}showTab(t,n=!0){this.scrollCache[this.lastTabShown]=document.documentElement.scrollTop;for(let c of this.tabs){let d=c.dataset.tab===t;c.setAttribute("aria-selected",d?"true":"false")}let l=t==="info";if(this.container.classList.toggle("show-info",l),n){let d=document.querySelector("header").getBoundingClientRect().bottom;document.documentElement.scrollTop=this.scrollCache[t]||d,setTimeout(()=>{document.documentElement.scrollTop=this.scrollCache[t]||d},50)}this.lastTabShown=t}},dy=fy;var hy=class{setup(){this.input=this.$refs.input,this.userInfoContainer=this.$refs.userInfo,this.hide=this.$el.components.dropdown.hide,Ut(this.$el,"a.dropdown-search-item","click",this.selectUser.bind(this))}selectUser(t,n){t.preventDefault();let l=n.getAttribute("data-id");this.input.value=l,this.userInfoContainer.innerHTML=n.innerHTML,this.input.dispatchEvent(new Event("change",{bubbles:!0})),this.hide()}},py=hy;var my=class{setup(){this.checkboxes=this.$el.querySelectorAll('input[type="checkbox"]'),this.allCheckbox=this.$el.querySelector('input[type="checkbox"][value="all"]'),this.$el.addEventListener("change",t=>{t.target.checked&&t.target===this.allCheckbox?this.deselectIndividualEvents():t.target.checked&&(this.allCheckbox.checked=!1)})}deselectIndividualEvents(){for(let t of this.checkboxes)t!==this.allCheckbox&&(t.checked=!1)}},gy=my;function vy(i,t,n){let l=new xo(i.clipboardData||i.dataTransfer);if(!l.hasItems()||l.containsTabularData())return;let c=l.getImages();for(let d of c){let a="image-"+Math.random().toString(16).slice(2),h=window.baseUrl("/loading.gif");i.preventDefault(),setTimeout(()=>{t.insertContent(`

    `),Xk(d,n).then(f=>{let p=f.name.replace(/"/g,""),y=`${p}`,g=t.dom.create("a",{target:"_blank",href:f.url},y);t.dom.replace(g,a)}).catch(f=>{t.dom.remove(a),window.$events.emit("error",n.imageUploadErrorText),console.log(f)})},10)}}async function Xk(i,t){if(i===null||i.type.indexOf("image")!==0)throw new Error("Not an image file");let n="png";if(i.name){let a=i.name.match(/\.(.+)$/);a.length>1&&(n=a[1])}let l="image-"+Date.now()+"."+n,c=new FormData;return c.append("file",i,l),c.append("uploaded_to",t.pageId),(await window.$http.post(window.baseUrl("/images/gallery"),c)).data}function Zk(i){for(let t=1;t<5;t++)i.shortcuts.add("meta+"+t,"",["FormatBlock",!1,"h"+(t+1)]);i.shortcuts.add("meta+5","",["FormatBlock",!1,"p"]),i.shortcuts.add("meta+d","",["FormatBlock",!1,"p"]),i.shortcuts.add("meta+6","",["FormatBlock",!1,"blockquote"]),i.shortcuts.add("meta+q","",["FormatBlock",!1,"blockquote"]),i.shortcuts.add("meta+7","",["codeeditor",!1,"pre"]),i.shortcuts.add("meta+e","",["codeeditor",!1,"pre"]),i.shortcuts.add("meta+8","",["FormatBlock",!1,"code"]),i.shortcuts.add("meta+shift+E","",["FormatBlock",!1,"code"]),i.shortcuts.add("meta+S","",()=>{window.$events.emit("editor-save-draft")}),i.shortcuts.add("meta+13","",()=>{window.$events.emit("editor-save-page")}),i.shortcuts.add("meta+9","",function(){let t=i.selection.getNode(),n=t?t.closest(".callout"):null,l=["info","success","warning","danger"],d=(l.findIndex(h=>n&&n.classList.contains(h))+1)%l.length,a=l[d];i.formatter.apply("callout"+a)})}function Qk(i){window.$http.get(window.baseUrl("/custom-head-content")).then(t=>{if(!t.data)return;let n=i.getDoc().querySelector("head");n.innerHTML+=t.data})}function Jk(){function i(l){return l.className==="CodeMirrorContainer"}function t(l){let c=l.selection.getNode();if(!i(c)){let h=l.selection.getNode().textContent;window.components.first("code-editor").open(h,"",(f,p)=>{let y=document.createElement("div");y.innerHTML=`
    `,y.querySelector("code").innerText=f,l.formatter.toggle("pre");let g=l.selection.getNode();l.dom.setHTML(g,y.querySelector("pre").innerHTML),l.fire("SetContent"),l.focus()});return}let d=c.hasAttribute("data-lang")?c.getAttribute("data-lang"):"",a=c.querySelector("textarea").textContent;window.components.first("code-editor").open(a,d,(h,f)=>{let y=c.querySelector(".CodeMirror").CodeMirror;y&&(sr.setContent(y,h),sr.setMode(y,f,h));let g=c.querySelector("textarea");g&&(g.textContent=h),c.setAttribute("data-lang",f),l.focus()})}function n(l){let d=l.querySelector("textarea").textContent,a=l.getAttribute("data-lang");l.removeAttribute("contentEditable");let h=document.createElement("pre"),f=document.createElement("code");f.classList.add(`language-${a}`),f.textContent=d,h.appendChild(f),l.parentElement.replaceChild(h,l)}window.tinymce.PluginManager.add("codeeditor",function(l,c){let d=l.$;l.addButton("codeeditor",{text:"Code block",icon:!1,cmd:"codeeditor"}),l.addCommand("codeeditor",()=>{t(l)}),l.on("PreProcess",function(h){d("div.CodeMirrorContainer",h.node).each((f,p)=>{n(p)})}),l.on("dblclick",h=>{let f=l.selection.getNode();!i(f)||t(l)});function a(){d(".CodeMirrorContainer").filter((f,p)=>typeof p.querySelector(".CodeMirror").CodeMirror=="undefined").each((f,p)=>{n(p)}),d("body > pre").filter((f,p)=>p.contentEditable!=="false").each((f,p)=>{sr.wysiwygView(p)})}l.on("init",function(){l.undoManager.transact(function(){a()}),setTimeout(()=>{l.on("SetContent",()=>{setTimeout(a,100)})},200)})})}function e_(i,t,n,l){let c=null,d=null;function a(g){return g.hasAttribute("drawio-diagram")}function h(g,v=null){c=g,d=v,window.ImageManager.show(function(b){if(v){let k=v.querySelector("img");c.dom.setAttrib(k,"src",b.url),c.dom.setAttrib(v,"drawio-diagram",b.id)}else{let k=`
    `;c.insertContent(k)}},"drawio")}function f(g,v=null){c=g,d=v,zr.show(i,y,p)}async function p(g){let v="image-"+Math.random().toString(16).slice(2),b=window.baseUrl("/loading.gif"),k=E=>{E.status===413?window.$events.emit("error",l.serverUploadLimitText):window.$events.emit("error",l.imageUploadErrorText),console.log(E)};if(d){zr.close();let E=d.querySelector("img");try{let w=await zr.upload(g,n);c.dom.setAttrib(E,"src",w.url),c.dom.setAttrib(d,"drawio-diagram",w.id)}catch(w){k(w)}return}setTimeout(async()=>{c.insertContent(`
    `),zr.close();try{let E=await zr.upload(g,n);c.dom.setAttrib(v,"src",E.url),c.dom.get(v).parentNode.setAttribute("drawio-diagram",E.id)}catch(E){c.dom.remove(v),k(E)}},5)}function y(){if(!d)return Promise.resolve("");let g=d.getAttribute("drawio-diagram");return zr.load(g)}window.tinymce.PluginManager.add("drawio",function(g,v){g.addCommand("drawio",()=>{let b=g.selection.getNode();f(g,a(b)?b:null)}),g.addButton("drawio",{type:"splitbutton",tooltip:"Drawing",image:`data:image/svg+xml;base64,${btoa(` -`)}`,cmd:"drawio",menu:[{text:"Drawing Manager",onclick(){let b=m.selection.getNode();h(m,o(b)?b:null)}}]}),m.on("dblclick",b=>{let k=m.selection.getNode();!o(k)||f(m,k)}),m.on("SetContent",function(){let b=m.$("body > div[drawio-diagram]");!b.length||m.undoManager.transact(function(){b.each((k,E)=>{E.setAttribute("contenteditable","false")})})})})}function i_(){window.tinymce.PluginManager.add("customhr",function(i){i.addCommand("InsertHorizontalRule",function(){let t=document.createElement("hr"),n=i.selection.getNode();n.parentNode.insertBefore(t,n)}),i.addButton("hr",{icon:"hr",tooltip:"Horizontal line",cmd:"InsertHorizontalRule"}),i.addMenuItem("hr",{icon:"hr",text:"Horizontal line",cmd:"InsertHorizontalRule",context:"insert"})})}function o_(i){window.$events.listen("editor::replace",({html:t})=>{i.setContent(t)}),window.$events.listen("editor::append",({html:t})=>{let n=i.getContent()+t;i.setContent(n)}),window.$events.listen("editor::prepend",({html:t})=>{let n=t+i.getContent();i.setContent(n)}),window.$events.listen("editor::insert",({html:t})=>{i.insertContent(t)}),window.$events.listen("editor::focus",()=>{i.focus()})}var xy=class{setup(){this.elem=this.$el,this.pageId=this.$opts.pageId,this.textDirection=this.$opts.textDirection,this.imageUploadErrorText=this.$opts.imageUploadErrorText,this.serverUploadLimitText=this.$opts.serverUploadLimitText,this.isDarkMode=document.documentElement.classList.contains("dark-mode"),this.plugins="image imagetools table textcolor paste link autolink fullscreen code customhr autosave lists codeeditor media",this.loadPlugins(),this.tinyMceConfig=this.getTinyMceConfig(),window.$events.emitPublic(this.elem,"editor-tinymce::pre-init",{config:this.tinyMceConfig}),window.tinymce.init(this.tinyMceConfig)}loadPlugins(){r_(),i_();let t=document.querySelector("[drawio-url]");if(t){let n=t.getAttribute("drawio-url");n_(n,this.isDarkMode,this.pageId,this),this.plugins+=" drawio"}this.textDirection==="rtl"&&(this.plugins+=" directionality")}getToolBar(){return`undo redo | styleselect | bold italic underline strikethrough superscript subscript | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | table image-insert link hr drawio media | removeformat code ${this.textDirection==="rtl"?"ltr rtl":""} fullscreen`}getTinyMceConfig(){let t=this;return{selector:"#html-editor",content_css:[window.baseUrl("/dist/styles.css")],branding:!1,skin:this.isDarkMode?"dark":"lightgray",body_class:"page-content",browser_spellcheck:!0,relative_urls:!1,directionality:this.textDirection,remove_script_host:!1,document_base_url:window.baseUrl("/"),end_container_on_empty_block:!0,statusbar:!1,menubar:!1,paste_data_images:!1,extended_valid_elements:"pre[*],svg[*],div[drawio-diagram]",automatic_uploads:!1,valid_children:"-div[p|h1|h2|h3|h4|h5|h6|blockquote],+div[pre],+div[img]",plugins:this.plugins,imagetools_toolbar:"imageoptions",toolbar:this.getToolBar(),content_style:`html, body, html.dark-mode {background: ${this.isDarkMode?"#222":"#fff"};} body {padding-left: 15px !important; padding-right: 15px !important; margin:0!important; margin-left:auto!important;margin-right:auto!important;}`,style_formats:[{title:"Header Large",format:"h2"},{title:"Header Medium",format:"h3"},{title:"Header Small",format:"h4"},{title:"Header Tiny",format:"h5"},{title:"Paragraph",format:"p",exact:!0,classes:""},{title:"Blockquote",format:"blockquote"},{title:"Code Block",icon:"code",cmd:"codeeditor",format:"codeeditor"},{title:"Inline Code",icon:"code",inline:"code"},{title:"Callouts",items:[{title:"Info",format:"calloutinfo"},{title:"Success",format:"calloutsuccess"},{title:"Warning",format:"calloutwarning"},{title:"Danger",format:"calloutdanger"}]}],style_formats_merge:!1,media_alt_source:!1,media_poster:!1,formats:{codeeditor:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div"},alignleft:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-left"},aligncenter:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-center"},alignright:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-right"},calloutsuccess:{block:"p",exact:!0,attributes:{class:"callout success"}},calloutinfo:{block:"p",exact:!0,attributes:{class:"callout info"}},calloutwarning:{block:"p",exact:!0,attributes:{class:"callout warning"}},calloutdanger:{block:"p",exact:!0,attributes:{class:"callout danger"}}},file_browser_callback:function(n,l,c,d){c==="file"&&window.EntitySelectorPopup.show(function(o){let h=d.document.getElementById(n);h.value=o.link;let p=h.closest(".mce-form").querySelectorAll("input");p[1].value||(p[1].value=o.name),p[2].value=o.name}),c==="image"&&window.ImageManager.show(function(o){if(d.document.getElementById(n).value=o.url,"createEvent"in document){let p=document.createEvent("HTMLEvents");p.initEvent("change",!1,!0),d.document.getElementById(n).dispatchEvent(p)}else d.document.getElementById(n).fireEvent("onchange");let h=o.thumbs.display||o.url,f=``;f+=`${o.name}`,f+="",d.tinyMCE.activeEditor.execCommand("mceInsertContent",!1,f)},"gallery")},paste_preprocess:function(n,l){l.content.indexOf('{l();let p=new URL(window.location).searchParams.get("content-id");p&&c(p);let m=n.getContainer().querySelectorAll(".mce-btn");for(let v of m)v.addEventListener("touchstart",b=>{b.stopPropagation()});window.editor=n});function l(){let f=n.getContent();t.isDarkMode&&n.contentDocument.documentElement.classList.add("dark-mode"),window.$events.emit("editor-html-change",f)}function c(f){let p=n.dom.get(encodeURIComponent(f).replace(/!/g,"%21"));!p||(p.scrollIntoView(),n.selection.select(p,!0),n.selection.collapse(!1),n.focus())}o_(n),window.$events.listen("editor-html-update",f=>{n.setContent(f),n.selection.select(n.getBody(),!0),n.selection.collapse(!1),l(f)}),e_(n);let d,o;function h(f){return f&&!!(f.textContent||f.innerText)}n.on("dragstart",function(){let f=n.selection.getNode();f.nodeName==="IMG"&&(d=n.dom.getParent(f,".mceTemp"),!d&&f.parentNode.nodeName==="A"&&!h(f.parentNode)&&(d=f.parentNode)),f.hasAttribute("contenteditable")&&f.getAttribute("contenteditable")==="false"&&(o=f)}),n.on("drop",function(f){let p=n.dom,y=tinymce.dom.RangeUtils.getCaretRangeFromPoint(f.clientX,f.clientY,n.getDoc()),m=f.dataTransfer&&f.dataTransfer.getData("bookstack/template");m&&(f.preventDefault(),window.$http.get(`/templates/${m}`).then(v=>{n.selection.setRng(y),n.undoManager.transact(function(){n.execCommand("mceInsertContent",!1,v.data.html)})})),p.getParent(y.startContainer,".mceTemp")?f.preventDefault():d&&(f.preventDefault(),n.undoManager.transact(function(){n.selection.setRng(y),n.selection.setNode(d),p.remove(d)})),!f.isDefaultPrevented()&&o&&(f.preventDefault(),n.undoManager.transact(function(){let v=n.selection.getNode(),b=n.selection.getRng(),k=v.closest("body > *");b.startOffset>b.startContainer.length/2?n.$(k).after(o):n.$(k).before(o)})),f.isDefaultPrevented()||by(f,n,t),d=null}),n.addButton("image-insert",{title:"My title",icon:"image",tooltip:"Insert an image",onclick:function(){window.ImageManager.show(function(f){let p=f.thumbs.display||f.url,y=``;y+=`${f.name}`,y+="",n.execCommand("mceInsertContent",!1,y)},"gallery")}}),n.on("paste",f=>by(f,n,t)),window.$events.emitPublic(t.elem,"editor-tinymce::setup",{editor:n})}}}},wy=xy;var ky={"add-remove-rows":Xc,"ajax-delete-row":Qc,"ajax-form":ef,attachments:rf,"attachments-list":of,"auto-suggest":sf,"back-to-top":uf,"book-sort":Mf,"chapter-toggle":Rf,"code-editor":kh,"code-highlighter":Sh,collapsible:Ch,"custom-checkbox":Ah,"details-highlighter":Dh,dropdown:Fh,"dropdown-search":Oh,dropzone:Nh,"editor-toolbox":qh,"entity-permissions-editor":Uh,"entity-search":Hh,"entity-selector":Gh,"entity-selector-popup":Vh,"event-emit-select":Xh,"expand-toggle":Qh,"header-mobile-toggle":ep,"homepage-control":rp,"image-manager":ip,"image-picker":ap,index:qa,"list-sort-control":lp,"markdown-editor":Cv,"new-user-password":Av,notification:Dv,"optional-input":Fv,"page-comments":Ov,"page-display":zv,"page-editor":qv,"page-picker":Uv,"permissions-table":Hv,popup:Gv,"setting-app-color-picker":Vv,"setting-color-picker":Xv,"shelf-sort":Qv,sidebar:ey,"sortable-list":ry,"submit-on-change":iy,tabs:ay,"tag-manager":ly,"template-manager":cy,"toggle-switch":dy,"tri-layout":py,"user-select":gy,"webhook-events":yy,"wysiwyg-editor":wy};window.components={};function a_(i,t){let n=t.querySelectorAll(`[${i}]`);for(let l=0,c=n.length;l{o.from=l;let h=new CustomEvent(`${i}-${d}`,{bubbles:!0,detail:o});l.$el.dispatchEvent(h)},typeof l.setup=="function"&&l.setup()}catch(c){console.error("Failed to create component",c,i,t)}typeof window.components[i]=="undefined"&&(window.components[i]=[]),window.components[i].push(l),typeof t.components=="undefined"&&(t.components={}),t.components[i]=l}function s_(i,t){let n={},l={},c=`${i}@`,d=`[refs*="${c}"]`,o=[...t.querySelectorAll(d)];t.matches(d)&&o.push(t);for(let h of o){let f=h.getAttribute("refs").split(" ").filter(p=>p.startsWith(c)).map(p=>p.replace(c,"")).map(Sy);for(let p of f)n[p]=h,typeof l[p]=="undefined"&&(l[p]=[]),l[p].push(h)}return{refs:n,manyRefs:l}}function l_(i,t){let n={},l=`option:${i}:`;for(let{name:c,value:d}of t.attributes)if(c.startsWith(l)){let o=c.replace(l,"");n[Sy(o)]=d||""}return n}function Sy(i){let t=l=>l.slice(0,1).toUpperCase()+l.slice(1),n=i.split("-");return n[0]+n.slice(1).map(t).join("")}function Ey(i){typeof i=="undefined"&&(i=document);for(let n of Object.keys(ky))a_(n,i);let t=i.querySelectorAll("[component],[components]");for(let n of t){let l=`${n.getAttribute("component")||""} ${n.getAttribute("components")}`.toLowerCase().split(" ").filter(Boolean);for(let c of l)_y(c,n)}}window.components.init=Ey;window.components.first=i=>(window.components[i]||[null])[0];var qa=Ey;window.baseUrl=function(i){let t=document.querySelector('meta[name="base-url"]').getAttribute("content");return t[t.length-1]==="/"&&(t=t.slice(0,t.length-1)),i[0]==="/"&&(i=i.slice(1)),t+"/"+i};window.$http=$c;window.$events=Bc;var Ei=new jc;window.trans=Ei.get.bind(Ei);window.trans_choice=Ei.getPlural.bind(Ei);window.trans_plural=Ei.parsePlural.bind(Ei);qa();})(); +`)}`,cmd:"drawio",menu:[{text:"Drawing Manager",onclick(){let b=g.selection.getNode();h(g,a(b)?b:null)}}]}),g.on("dblclick",b=>{let k=g.selection.getNode();!a(k)||f(g,k)}),g.on("SetContent",function(){let b=g.$("body > div[drawio-diagram]");!b.length||g.undoManager.transact(function(){b.each((k,E)=>{E.setAttribute("contenteditable","false")})})})})}function t_(){window.tinymce.PluginManager.add("customhr",function(i){i.addCommand("InsertHorizontalRule",function(){let t=document.createElement("hr"),n=i.selection.getNode();n.parentNode.insertBefore(t,n)}),i.addButton("hr",{icon:"hr",tooltip:"Horizontal line",cmd:"InsertHorizontalRule"}),i.addMenuItem("hr",{icon:"hr",text:"Horizontal line",cmd:"InsertHorizontalRule",context:"insert"})})}function r_(i){window.$events.listen("editor::replace",({html:t})=>{i.setContent(t)}),window.$events.listen("editor::append",({html:t})=>{let n=i.getContent()+t;i.setContent(n)}),window.$events.listen("editor::prepend",({html:t})=>{let n=t+i.getContent();i.setContent(n)}),window.$events.listen("editor::insert",({html:t})=>{i.insertContent(t)}),window.$events.listen("editor::focus",()=>{i.focus()})}var yy=class{setup(){this.elem=this.$el,this.pageId=this.$opts.pageId,this.textDirection=this.$opts.textDirection,this.imageUploadErrorText=this.$opts.imageUploadErrorText,this.serverUploadLimitText=this.$opts.serverUploadLimitText,this.isDarkMode=document.documentElement.classList.contains("dark-mode"),this.plugins="image imagetools table textcolor paste link autolink fullscreen code customhr autosave lists codeeditor media",this.loadPlugins(),this.tinyMceConfig=this.getTinyMceConfig(),window.$events.emitPublic(this.elem,"editor-tinymce::pre-init",{config:this.tinyMceConfig}),window.tinymce.init(this.tinyMceConfig)}loadPlugins(){Jk(),t_();let t=document.querySelector("[drawio-url]");if(t){let n=t.getAttribute("drawio-url");e_(n,this.isDarkMode,this.pageId,this),this.plugins+=" drawio"}this.textDirection==="rtl"&&(this.plugins+=" directionality")}getToolBar(){return`undo redo | styleselect | bold italic underline strikethrough superscript subscript | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | table image-insert link hr drawio media | removeformat code ${this.textDirection==="rtl"?"ltr rtl":""} fullscreen`}getTinyMceConfig(){let t=this;return{selector:"#html-editor",content_css:[window.baseUrl("/dist/styles.css")],branding:!1,skin:this.isDarkMode?"dark":"lightgray",body_class:"page-content",browser_spellcheck:!0,relative_urls:!1,directionality:this.textDirection,remove_script_host:!1,document_base_url:window.baseUrl("/"),end_container_on_empty_block:!0,statusbar:!1,menubar:!1,paste_data_images:!1,extended_valid_elements:"pre[*],svg[*],div[drawio-diagram]",automatic_uploads:!1,valid_children:"-div[p|h1|h2|h3|h4|h5|h6|blockquote],+div[pre],+div[img]",plugins:this.plugins,imagetools_toolbar:"imageoptions",toolbar:this.getToolBar(),content_style:`html, body, html.dark-mode {background: ${this.isDarkMode?"#222":"#fff"};} body {padding-left: 15px !important; padding-right: 15px !important; margin:0!important; margin-left:auto!important;margin-right:auto!important;}`,style_formats:[{title:"Header Large",format:"h2"},{title:"Header Medium",format:"h3"},{title:"Header Small",format:"h4"},{title:"Header Tiny",format:"h5"},{title:"Paragraph",format:"p",exact:!0,classes:""},{title:"Blockquote",format:"blockquote"},{title:"Code Block",icon:"code",cmd:"codeeditor",format:"codeeditor"},{title:"Inline Code",icon:"code",inline:"code"},{title:"Callouts",items:[{title:"Info",format:"calloutinfo"},{title:"Success",format:"calloutsuccess"},{title:"Warning",format:"calloutwarning"},{title:"Danger",format:"calloutdanger"}]}],style_formats_merge:!1,media_alt_source:!1,media_poster:!1,formats:{codeeditor:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div"},alignleft:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-left"},aligncenter:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-center"},alignright:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-right"},calloutsuccess:{block:"p",exact:!0,attributes:{class:"callout success"}},calloutinfo:{block:"p",exact:!0,attributes:{class:"callout info"}},calloutwarning:{block:"p",exact:!0,attributes:{class:"callout warning"}},calloutdanger:{block:"p",exact:!0,attributes:{class:"callout danger"}}},file_browser_callback:function(n,l,c,d){c==="file"&&window.EntitySelectorPopup.show(function(a){let h=d.document.getElementById(n);h.value=a.link;let p=h.closest(".mce-form").querySelectorAll("input");p[1].value||(p[1].value=a.name),p[2].value=a.name}),c==="image"&&window.ImageManager.show(function(a){if(d.document.getElementById(n).value=a.url,"createEvent"in document){let p=document.createEvent("HTMLEvents");p.initEvent("change",!1,!0),d.document.getElementById(n).dispatchEvent(p)}else d.document.getElementById(n).fireEvent("onchange");let h=a.thumbs.display||a.url,f=``;f+=`${a.name}`,f+="",d.tinyMCE.activeEditor.execCommand("mceInsertContent",!1,f)},"gallery")},paste_preprocess:function(n,l){l.content.indexOf('{l();let p=new URL(window.location).searchParams.get("content-id");p&&c(p);let g=n.getContainer().querySelectorAll(".mce-btn");for(let v of g)v.addEventListener("touchstart",b=>{b.stopPropagation()});window.editor=n});function l(){let f=n.getContent();t.isDarkMode&&n.contentDocument.documentElement.classList.add("dark-mode"),window.$events.emit("editor-html-change",f)}function c(f){let p=n.dom.get(encodeURIComponent(f).replace(/!/g,"%21"));!p||(p.scrollIntoView(),n.selection.select(p,!0),n.selection.collapse(!1),n.focus())}r_(n),window.$events.listen("editor-html-update",f=>{n.setContent(f),n.selection.select(n.getBody(),!0),n.selection.collapse(!1),l(f)}),Zk(n);let d,a;function h(f){return f&&!!(f.textContent||f.innerText)}n.on("dragstart",function(){let f=n.selection.getNode();f.nodeName==="IMG"&&(d=n.dom.getParent(f,".mceTemp"),!d&&f.parentNode.nodeName==="A"&&!h(f.parentNode)&&(d=f.parentNode)),f.hasAttribute("contenteditable")&&f.getAttribute("contenteditable")==="false"&&(a=f)}),n.on("drop",function(f){let p=n.dom,y=tinymce.dom.RangeUtils.getCaretRangeFromPoint(f.clientX,f.clientY,n.getDoc()),g=f.dataTransfer&&f.dataTransfer.getData("bookstack/template");g&&(f.preventDefault(),window.$http.get(`/templates/${g}`).then(v=>{n.selection.setRng(y),n.undoManager.transact(function(){n.execCommand("mceInsertContent",!1,v.data.html)})})),p.getParent(y.startContainer,".mceTemp")?f.preventDefault():d&&(f.preventDefault(),n.undoManager.transact(function(){n.selection.setRng(y),n.selection.setNode(d),p.remove(d)})),!f.isDefaultPrevented()&&a&&(f.preventDefault(),n.undoManager.transact(function(){let v=n.selection.getNode(),b=n.selection.getRng(),k=v.closest("body > *");b.startOffset>b.startContainer.length/2?n.$(k).after(a):n.$(k).before(a)})),f.isDefaultPrevented()||vy(f,n,t),d=null}),n.addButton("image-insert",{title:"My title",icon:"image",tooltip:"Insert an image",onclick:function(){window.ImageManager.show(function(f){let p=f.thumbs.display||f.url,y=``;y+=`${f.name}`,y+="",n.execCommand("mceInsertContent",!1,y)},"gallery")}}),n.on("paste",f=>vy(f,n,t)),window.$events.emitPublic(t.elem,"editor-tinymce::setup",{editor:n})}}}},by=yy;var xy={"add-remove-rows":Vc,"ajax-delete-row":Xc,"ajax-form":Qc,attachments:ef,"attachments-list":rf,"auto-suggest":of,"back-to-top":sf,"book-sort":If,"chapter-toggle":Of,"code-editor":xh,"code-highlighter":kh,collapsible:Sh,"custom-checkbox":Ch,"details-highlighter":Ah,dropdown:Dh,"dropdown-search":Fh,dropzone:Rh,"editor-toolbox":Nh,"entity-permissions-editor":qh,"entity-search":$h,"entity-selector":Hh,"entity-selector-popup":Gh,"event-emit-select":Vh,"expand-toggle":Xh,"header-mobile-toggle":Qh,"homepage-control":ep,"image-manager":rp,"image-picker":ip,index:qa,"list-sort-control":ap,"markdown-editor":Sv,"new-user-password":Cv,notification:Av,"optional-input":Dv,"page-comments":Fv,"page-display":Pv,"page-editor":Nv,"page-picker":qv,"permissions-table":$v,popup:Hv,"setting-app-color-picker":Gv,"setting-color-picker":Vv,"shelf-sort":Xv,sidebar:Qv,"sortable-list":ey,"submit-on-change":ry,tabs:iy,"tag-manager":ay,"template-manager":ly,"toggle-switch":cy,"tri-layout":dy,"user-select":py,"webhook-events":gy,"wysiwyg-editor":by};window.components={};function n_(i,t){let n=t.querySelectorAll(`[${i}]`);for(let l=0,c=n.length;l{a.from=l;let h=new CustomEvent(`${i}-${d}`,{bubbles:!0,detail:a});l.$el.dispatchEvent(h)},typeof l.setup=="function"&&l.setup()}catch(c){console.error("Failed to create component",c,i,t)}typeof window.components[i]=="undefined"&&(window.components[i]=[]),window.components[i].push(l),typeof t.components=="undefined"&&(t.components={}),t.components[i]=l}function i_(i,t){let n={},l={},c=`${i}@`,d=`[refs*="${c}"]`,a=[...t.querySelectorAll(d)];t.matches(d)&&a.push(t);for(let h of a){let f=h.getAttribute("refs").split(" ").filter(p=>p.startsWith(c)).map(p=>p.replace(c,"")).map(ky);for(let p of f)n[p]=h,typeof l[p]=="undefined"&&(l[p]=[]),l[p].push(h)}return{refs:n,manyRefs:l}}function o_(i,t){let n={},l=`option:${i}:`;for(let{name:c,value:d}of t.attributes)if(c.startsWith(l)){let a=c.replace(l,"");n[ky(a)]=d||""}return n}function ky(i){let t=l=>l.slice(0,1).toUpperCase()+l.slice(1),n=i.split("-");return n[0]+n.slice(1).map(t).join("")}function _y(i){typeof i=="undefined"&&(i=document);for(let n of Object.keys(xy))n_(n,i);let t=i.querySelectorAll("[component],[components]");for(let n of t){let l=`${n.getAttribute("component")||""} ${n.getAttribute("components")}`.toLowerCase().split(" ").filter(Boolean);for(let c of l)wy(c,n)}}window.components.init=_y;window.components.first=i=>(window.components[i]||[null])[0];var qa=_y;window.baseUrl=function(i){let t=document.querySelector('meta[name="base-url"]').getAttribute("content");return t[t.length-1]==="/"&&(t=t.slice(0,t.length-1)),i[0]==="/"&&(i=i.slice(1)),t+"/"+i};window.$http=qc;window.$events=Nc;var Ei=new $c;window.trans=Ei.get.bind(Ei);window.trans_choice=Ei.getPlural.bind(Ei);window.trans_plural=Ei.parsePlural.bind(Ei);qa();})(); /*! * clipboard.js v2.0.8 * https://clipboardjs.com/ diff --git a/version b/version index 39c040248..d69406060 100644 --- a/version +++ b/version @@ -1 +1 @@ -v21.12.3 +v21.12.4