mirror of
https://github.com/jaandrle/deka-dom-el
synced 2024-11-22 07:49:38 +01:00
1081 lines
427 KiB
HTML
1081 lines
427 KiB
HTML
|
<html class="TridactylThemeDark" data-lt-installed="true"><script src="flems_soubory/page-script.js"></script><head>
|
||
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8"><style type="text/css">@media print {
|
||
|
.TridactylStatusIndicator {
|
||
|
display: none !important;
|
||
|
}
|
||
|
}</style></head><body>/*
|
||
|
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
<script type="text/javascript" charset="UTF-8">
|
||
|
(function(){"use strict";var v=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function W(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}var X={},Y=Object.freeze({__proto__:null,default:X}),Z=W(Y),A=typeof Map=="function"&&Map.prototype,M=Object.getOwnPropertyDescriptor&&A?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,P=A&&M&&typeof M.get=="function"?M.get:null,j=A&&Map.prototype.forEach,N=typeof Set=="function"&&Set.prototype,R=Object.getOwnPropertyDescriptor&&N?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,x=N&&R&&typeof R.get=="function"?R.get:null,ee=N&&Set.prototype.forEach,te=Boolean.prototype.valueOf,ne=Object.prototype.toString,re=typeof BigInt=="function"?BigInt.prototype.valueOf:null,T=Z.custom,I=T&&U(T)?T:null,oe=function e(t,n,r,o){if(n||(n={}),b(n,"quoteStyle")&&n.quoteStyle!=="single"&&n.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(typeof t=="undefined")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return ve(t,n);if(typeof t=="number")return t===0?1/0/t>0?"0":"-0":String(t);if(typeof t=="bigint")return String(t)+"n";var l=typeof n.depth=="undefined"?5:n.depth;if(typeof r=="undefined"&&(r=0),r>=l&&l>0&&typeof t=="object")return"[Object]";if(typeof o=="undefined")o=[];else if(ye(o,t)>=0)return"[Circular]";function c(h,y){return y&&(o=o.slice(),o.push(y)),e(h,n,r+1,o)}if(typeof t=="function"){var u=me(t);return"[Function"+(u?": "+u:"")+"]"}if(U(t)){var i=Symbol.prototype.toString.call(t);return typeof t=="object"?S(i):i}if(we(t)){for(var f="<"+String(t.nodeName).toLowerCase(),d=t.attributes||[],m=0;m<d.length;m++)f+=" "+d[m].name+"="+q(ie(d[m].value),"double",n);return f+=">",t.childNodes&&t.childNodes.length&&(f+="..."),f+="</"+String(t.nodeName).toLowerCase()+">",f}if(H(t))return t.length===0?"[]":"[ "+_(t,c).join(", ")+" ]";if(ue(t)){var s=_(t,c);return s.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+s.join(", ")+" }"}if(typeof t=="object"){if(I&&typeof t[I]=="function")return t[I]();if(typeof t.inspect=="function")return t.inspect()}if(ge(t)){var s=[];return j.call(t,function(y,Je){s.push(c(Je,t)+" => "+c(y,t))}),F("Map",P.call(t),s)}if(he(t)){var s=[];return ee.call(t,function(y){s.push(c(y,t))}),F("Set",x.call(t),s)}if(ae(t))return S(c(Number(t)));if(se(t))return S(c(re.call(t)));if(pe(t))return S(te.call(t));if(fe(t))return S(c(String(t)));if(!ce(t)&&!le(t)){var a=_(t,c);return a.length===0?"{}":"{ "+a.join(", ")+" }"}return String(t)};function q(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function ie(e){return String(e).replace(/"/g,""")}function H(e){return g(e)==="[object Array]"}function ce(e){return g(e)==="[object Date]"}function le(e){return g(e)==="[object RegExp]"}function ue(e){return g(e)==="[object Error]"}function U(e){return g(e)==="[object Symbol]"}function fe(e){return g(e)==="[object String]"}function ae(e){return g(e)==="[object Number]"}function se(e){return g(e)==="[object BigInt]"}function pe(e){return g(e)==="[object Boolean]"}var de=Object.prototype.hasOwnProperty||function(e){return e in this};function b(e,t){return de.call(e,t)}function g(e){return ne.call(e)}function me(e){if(e.name)return e.name;var t=String(e).match(/^function\s*([\w$]+)/);if(t)return t[1]}function ye(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function ge(e){if(!P)return!1;try{P.call(e);try{x.call(e)}catch(t){return!0}return e instanceof Map}catch(t){}return!1}function he(e){if(!x)return!1;try{x.call(e);try{P.call(e)}catch(t){return!0}return e instanceof Set}catch(t){}return!1}function we(e){return!e||typeof e!="object"?!1:typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof
|
||
|
`+(Array.isArray(i)?i.join(`
|
||
|
`):i),"error",{stack:""})})}function K(e){let t;return typeof Event=="function"?t=new Event(e):(t=document.createEvent("Event"),t.initEvent(e,!0,!0)),t}function _e(e){return Oe(e.reduce((t,n)=>{let r;for(;(r=Me.exec(n.content))!==null;){const o=ze(e,r[1]);o&&t.push([n.name,o.name])}return t},[])).reverse()}function ze(e,t){return e.filter(n=>n.name===t||n.name.substring(0,n.name.lastIndexOf("."))===t)[0]}function De(e,t,n){return function(r){return(e||B).apply(console,arguments),w(O(arguments),t,new Error,1),n&&r}}function O(e){return[].slice.apply(e).map(t=>typeof t=="string"||typeof t=="function"&&t.toString?(typeof t=="function"?"\u0192 ":"")+String(t):oe(t).replace(/\\n/g,`
|
||
|
`))}function w(e,t,n,r=0){const o=(n.stack||"").split(`
|
||
|
`).map(qe).filter(c=>c).slice(r);let l=-1;o.forEach((c,u)=>{l===-1&&c.function.indexOf("flemsLoadScript")>-1&&(l=u)}),$("console",{number:$e++,file:n.currentScript,content:(Array.isArray(e)?e:[e]).map(c=>c===""?"''":V.reduce((u,i)=>u.replace(i,C[i]?C[i].name:i),String(c))),stack:l>-1?o.slice(0,l):o,type:t,date:new Date})}const Be=/(.*)[ @(](.*):([\d]*):([\d]*)/i;function qe(e){const[t,n,r,o,l]=(" "+e.trim()).match(Be)||[],c=C[r];return t&&{function:n.trim().replace(/^(global code|at) ?/,""),select:c?c.url||c.name:r,file:c?c.name:r,line:parseInt(o,10),column:parseInt(l,10)}}function He(e){document.head.appendChild(k("link",{rel:"stylesheet",type:"text/css",href:e.url}))}function Ue(e){document.head.appendChild(k("style",{id:e.name,textContent:e.content}))}function Q(e){return new Promise((t,n)=>{if(e.content)return flemsLoadScript(e),t();const r=k("script",{charset:"utf-8",src:e.url});r.async=r.defer=!1,e.el&&Array.prototype.slice.call(e.el.attributes).forEach(o=>r.setAttribute(o.name,o.value)),r.onload=()=>t(),r.onerror=o=>n([e.url,o]),e.el?e.el.parentNode.replaceChild(r,e.el):document.body.appendChild(r)})}function Fe(e){return e.module=z(".mjs",e.name)||Ae.test(e.content),e}window.flemsLoadScript=function(t){return new Promise((n,r)=>{const o=t.module?Object.keys(E).reduce((u,i)=>u.replace(new RegExp(`(import\\s*[{}$\\w*,\\s]*\\s*(?: from |)['"])\\.?\\/`+i+`\\.?[a-z]*(['"])`,"i"),"$1"+E[i]+"$2").replace(new RegExp(`(import\\(['"])\\.?\\/${i}\\.?[a-z]*(['"]\\))`,"ig"),"$1"+E[i]+"$2"),t.content).replace(Ne,"$1https://unpkg.com/$2?module$3").replace(Re,"$1https://unpkg.com/$2?module$3"):t.content,l=URL.createObjectURL(new Blob([o],{type:"application/javascript"}));V.push(String(l)),C[l]=t,t.module&&(E[t.name]=E[t.name.substring(0,t.name.lastIndexOf("."))]=l);const c=k("script",{src:l,charset:"utf-8",type:t.module?"module":""});c.async=c.defer=!1,t.el&&Array.prototype.slice.call(t.el.attributes).forEach(u=>c.setAttribute(u.name,u.value)),c.onerror=r,c.onload=n,D=t,t.el?t.el.parentNode.replaceChild(c,t.el):document.body.appendChild(c)})};function k(e,t){const n=document.createElement(e);for(const r in t)t[r]&&(n[r]=t[r]);return n}})();
|
||
|
//# sourceURL=runtime.js
|
||
|
</script><style type="text/css">
|
||
|
html:before {
|
||
|
z-index: -2147483646;
|
||
|
}
|
||
|
html:before {
|
||
|
background: rgba(255,0,0,1);
|
||
|
opacity: 0.75;
|
||
|
transition: right 0.5s linear, opacity 0.85s ease-out;
|
||
|
position: fixed;
|
||
|
content: "";
|
||
|
z-index: 2147483647;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
height: 2px;
|
||
|
}
|
||
|
</style>
|
||
|
<!-- */
|
||
|
(function(Hn,fn){typeof exports=="object"&&typeof module!="undefined"?module.exports=fn():typeof define=="function"&&define.amd?define(fn):(Hn=typeof globalThis!="undefined"?globalThis:Hn||self,Hn.Flems=fn())})(this,function(){"use strict";var Hn=[":active",":any",":checked",":default",":disabled",":empty",":enabled",":first",":first-child",":first-of-type",":fullscreen",":focus",":hover",":indeterminate",":in-range",":invalid",":last-child",":last-of-type",":left",":link",":only-child",":only-of-type",":optional",":out-of-range",":read-only",":read-write",":required",":right",":root",":scope",":target",":valid",":visited",":dir",":lang",":not",":nth-child",":nth-last-child",":nth-last-of-type",":nth-of-type","::after","::before","::first-letter","::first-line","::selection","::backdrop","::placeholder","::marker","::spelling-error","::grammar-error"],fn={ai:"alignItems",b:"bottom",bc:"backgroundColor",br:"borderRadius",bs:"boxShadow",bi:"backgroundImage",c:"color",d:"display",f:"float",fd:"flexDirection",ff:"fontFamily",fs:"fontSize",h:"height",jc:"justifyContent",l:"left",lh:"lineHeight",ls:"letterSpacing",m:"margin",mb:"marginBottom",ml:"marginLeft",mr:"marginRight",mt:"marginTop",o:"opacity",p:"padding",pb:"paddingBottom",pl:"paddingLeft",pr:"paddingRight",pt:"paddingTop",r:"right",t:"top",ta:"textAlign",td:"textDecoration",tt:"textTransform",w:"width"},oa=["float"].concat(Object.keys(typeof document=="undefined"?{}:la(document.documentElement.style)).filter(function(o){return o.indexOf("-")===-1&&o!=="length"}));function la(o){return o?o.hasOwnProperty("width")?o:la(Object.getPrototypeOf(o)):{}}var Of=/^-?-?[a-z][a-z-_0-9]*$/i,aa=function(o,a){return a===void 0&&(a={}),function(l){return l in a?a[l]:a[l]=o(l)}};function Ei(o,a,l){a in o?Ei(o,"!"+a,l):o[a]=fa(a,l)}var Po=Object.create(null,{}),zo=Object.create(null,{}),Do=/^(o|O|ms|MS|Ms|moz|Moz|webkit|Webkit|WebKit)([A-Z])/,_f=aa(function(o){var a=document.createElement("div");try{return a.style[o]="1px",a.style.setProperty(o,"1px"),a.style[o].slice(-3)==="1px"?"px":""}catch(l){return""}},{flex:"",boxShadow:"px",border:"px",borderTop:"px",borderRight:"px",borderBottom:"px",borderLeft:"px"});function Ef(o){return o.charAt(0).toLowerCase()+o.slice(1)}function hr(o,a){for(var l in a)a.hasOwnProperty(l)&&(o[l]=typeof a[l]=="string"?a[l]:hr(o[l]||{},a[l]));return o}var Nf=/-([a-z])/g;function sa(o){return o.slice(o.charAt(0)==="-"?1:0).replace(Nf,function(a){return a[1].toUpperCase()})}var Pf=/(\B[A-Z])/g;function zf(o){return o.replace(Pf,"-$1").toLowerCase()}var Df=/([A-Z])/g;function If(o){return o.charAt(0)+(o.match(Df)||[]).join("").toLowerCase()}var Rf=/&/g;function Ni(o,a,l,u){l===void 0&&(l="");var h={},p=l.indexOf("&")>-1&&l.indexOf(",")===-1?"":"&",S=[];return Object.keys(o).forEach(function(b){b.charAt(0)==="@"?S.push(b+"{"+Ni(o[b],a,l,u).join("")+"}"):typeof o[b]=="object"?S=S.concat(Ni(o[b],a,l+b,u)):h[b]=o[b]}),Object.keys(h).length&&S.unshift(((u||l.charAt(0)===" "?"":"&")+p+l).replace(Rf,a).trim()+"{"+ua(h)+"}"),S}var Ff=/,(?=(?:(?:[^"]*"){2})*[^"]*$)/;function ua(o){return Object.keys(o).reduce(function(a,l){return a+Bf(l.charAt(0)==="!"?l.slice(1):l,o[l])},"")}function Bf(o,a){return o=o in Po?Po[o]:o,(Do.test(o)?"-":"")+(ha(o)?o:zf(o))+":"+a+";"}function fa(o,a){return Array.isArray(a)?a.map(function(l){return ca(o,l)}).join(" "):typeof a=="string"?fa(o,a.split(" ")):ca(o,a)}function ca(o,a){return a in zo?zo[a]:a+(isNaN(a)||a===null||a===0||a==="0"||typeof a=="boolean"||ha(o)?"":_f(o))}function ha(o){return o.charAt(0)==="-"&&o.charAt(1)==="-"}var Pi="b"+("000"+(Math.random()*46656|0).toString(36)).slice(-3)+("000"+(Math.random()*46656|0).toString(36)).slice(-3),Xr=typeof document=="object"&&document.createElement("style");Xr&&document.head&&document.head.appendChild(Xr),Xr&&(Xr.id=Pi);var Io=Xr&&Xr.sheet,da=!1,zi=Object.create(null,{}),Wn=[],pa=0;function Hf(o){da=o}function Wf(){var o=Wn.join("");return Wn=[],zi=Object.create(null,{}),pa=0,o}function Uf(){return Wn}function Di(o,a){if(Wn.push(o),da)return Xr.textContent=Wn.join(`
|
||
|
`);try{Io&&Io.insertRule(o,arguments.length>1?a:Io.cssRules.length)}catch(l){}}function Kf(o){var a=JSON.stringify(o);if(a in zi)return zi[a];for(var l=Pi+ ++pa,u=Ni(o,"."+l),h=0;h<u.length;h++)Di(u[h]);return zi[a]=l,l}var Ro=Object.create(null);function le(o,a){var l=dr(le);return o&&hr(l.__style,pr.apply(null,arguments)),l}function Nt(o,a){Object.defineProperty(le,o,{configurable:!0,value:a})}Object.defineProperties(le,{__style:{configurable:!0,writable:!0,value:{}},valueOf:{configurable:!0,writable:!0,value:function(){return"."+this.class}},toString:{configurable:!0,writable:!0,value:function(){return this.class}}}),Nt("setDebug",Hf),Nt("$keyframes",Vf),Nt("$media",Gf),Nt("$import",qf),Nt("$nest",Xf),Nt("getSheet",Wf),Nt("getRules",Uf),Nt("helper",Kt),Nt("css",Yf),Nt("classPrefix",Pi);function dr(o){var a=Object.create(le,{__style:{value:hr({},o.__style)},style:{enumerable:!0,get:function(){var l=this;return Object.keys(this.__style).reduce(function(u,h){return(typeof l.__style[h]=="number"||typeof l.__style[h]=="string")&&(u[h.charAt(0)==="!"?h.slice(1):h]=l.__style[h]),u},{})}}});return o===le&&(le.__style={}),a}oa.forEach(function(o){var a=o.match(Do);if(a){var l=Ef(o.replace(Do,"$2"));if(oa.indexOf(l)===-1){l==="flexDirection"&&(zo.flex="-"+a[1].toLowerCase()+"-flex"),Po[l]=o,Nt(l,va(o)),Nt(ya(l),le[l]);return}}Nt(o,va(o)),Nt(ya(o),le[o])}),Nt("content",function(a){var l=dr(this);return a==null||a===!1?delete l.__style.content:l.__style.content='"'+a+'"',l}),Object.defineProperty(le,"class",{set:function(o){this.__class=o},get:function(){return this.__class||Kf(this.__style)}});function Gf(o,a){var l=dr(this);return o&&(l.__style["@media "+o]=pr(a)),l}var jf=/^('|"|url\('|url\(")/i;function qf(o){return o&&Di("@import "+(jf.test(o)?o:'"'+o+'"')+";",0),dr(this)}function Xf(o,a){var l=dr(this);return arguments.length===1?Object.keys(o).forEach(function(u){return ga(l.__style,u,o[u])}):o&&ga(l.__style,o,a),l}function ga(o,a,l){var u=a.split(Ff).map(function(h){return h=h.trim(),(h.charAt(0)===":"||h.charAt(0)==="["?"":" ")+h}).join(",&");u in o?hr(o[u],pr(l)):o[u]=pr(l)}Hn.forEach(function(o){return Nt("$"+sa(o.replace(/:/g,"")),function(l,u){var h=dr(this);return Bo(l)?h.__style[o]=pr.apply(null,arguments):(l||u)&&(h.__style[o+(u?"("+l+")":"")]=pr(u||l)),h})});function va(o){return function(l){var u=dr(this);return!l&&l!==0?delete u.__style[o]:arguments.length>0&&Ei(u.__style,o,Array.prototype.slice.call(arguments)),u}}function Yf(o,a){return arguments.length===1?Object.keys(o).forEach(function(l){return ma(l,o[l])}):ma(o,a),dr(this)}function ma(o,a){Ni(pr(a),o,"",!0).forEach(function(l){return Di(l)})}function Kt(o,a){if(arguments.length===1)return Object.keys(o).forEach(function(l){return Kt(l,o[l])});delete le[o],typeof a=="function"?(Kt[o]=a,Object.defineProperty(le,o,{configurable:!0,value:function(u){var h=dr(this),p=Bo(u)?a(wa(u,arguments)):a.apply(null,arguments);return hr(h.__style,p.__style),h}})):(Kt[o]=pr(a),Object.defineProperty(le,o,{configurable:!0,get:function(){var l=dr(this);return hr(l.__style,pr(a)),l}}))}le.helper("$animate",function(o,a){return le.animation(le.$keyframes(a)+" "+o)});function ya(o){var a=If(o),l=fn[a]&&fn[a]!==o?o:a;return Ro[l]=o,l}var Qf=/;(?![^("]*[)"])|\n/,$f=/\/\*[\s\S]*?\*\/|([^:]|^)\/\/.*(?![^("]*[)"])/g,Zf=/[ :]+/,ba=aa(function(o){var a="",l;return o.trim().replace($f,"").split(Qf).reduce(function(u,h){if(!h)return u;h=a+h.trim();var p=h.replace(Zf," ").split(" "),S=p[0],b=p.slice(1);if(a=h.charAt(h.length-1)===","?h:"",a)return u;if(h.charAt(0)===","||!Of.test(S))return u[l]+=" "+h,u;if(!S)return u;var g=S.charAt(0)==="-"&&S.charAt(1)==="-"?S:sa(S);return l=Ro[g]||g,S in Kt?typeof Kt[S]=="function"?hr(u,Kt[S].apply(Kt,b).__style):hr(u,Kt[S]):g in Kt?typeof Kt[g]=="function"?hr(u,Kt[g].apply(Kt,b).__style):hr(u,Kt[g]):b.length>0&&Ei(u,l,b),u},{})}),Jf=0,Fo={};function Vf(o){var a=Object.keys(o).reduce(function(u,h){return u+h+"{"+ua(pr(o[h]))+"}"},"");if(a in Fo)return Fo[a];var l=Pi+Jf++;return Fo[a]=l,Di("@keyframes "+l+"{"+a+"}"),l}function pr(o,a){var l;return typ
|
||
|
|
||
|
b`.split(/\n/).length!=3?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf(`
|
||
|
`,t);i==-1&&(i=e.length);var s=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),f=s.indexOf("\r");f!=-1?(n.push(s.slice(0,f)),t+=f+1):(n.push(s),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},eo=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},to=function(){var e=D("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Vn=null;function Rr(e){if(Vn!=null)return Vn;var t=X(e,D("span","x")),n=t.getBoundingClientRect(),r=te(t,0,1).getBoundingClientRect();return Vn=Math.abs(n.left-r.left)>1}var nr={},Qt={};function ro(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),nr[e]=t}function Ar(e,t){Qt[e]=t}function yn(e){if(typeof e=="string"&&Qt.hasOwnProperty(e))e=Qt[e];else if(e&&typeof e.name=="string"&&Qt.hasOwnProperty(e.name)){var t=Qt[e.name];typeof t=="string"&&(t={name:t}),e=P(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return yn("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return yn("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function bn(e,t){t=yn(t);var n=nr[t.name];if(!n)return bn(e,"text/plain");var r=n(e,t);if(ar.hasOwnProperty(t.name)){var i=ar[t.name];for(var s in i)!i.hasOwnProperty(s)||(r.hasOwnProperty(s)&&(r["_"+s]=r[s]),r[s]=i[s])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var f in t.modeProps)r[f]=t.modeProps[f];return r}var ar={};function sr(e,t){var n=ar.hasOwnProperty(e)?ar[e]:ar[e]={};Ke(t,n)}function $t(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function ei(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),!(!n||n.mode==e));)t=n.state,e=n.mode;return n||{mode:e,state:t}}function ti(e,t,n){return e.startState?e.startState(t,n):!0}var ot=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};ot.prototype.eol=function(){return this.pos>=this.string.length},ot.prototype.sol=function(){return this.pos==this.lineStart},ot.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ot.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ot.prototype.eat=function(e){var t=this.string.charAt(this.pos),n;if(typeof e=="string"?n=t==e:n=t&&(e.test?e.test(t):e(t)),n)return++this.pos,t},ot.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},ot.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},ot.prototype.skipToEnd=function(){this.pos=this.string.length},ot.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},ot.prototype.backUp=function(e){this.pos-=e},ot.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=je(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?je(this.string,this.lineStart,this.tabSize):0)},ot.prototype.indentation=function(){return je(this.string,null,this.tabSize)-(this.lineStart?je(this.string,this.lineStart,this.tabSize):0)},ot.prototype.match=function(e,t,n){if(typeof e=="string"){var r=function(f){return n?f.toLowerCase():f},i=this.string.substr(this.pos,e.length);if(r(i)==r(e))return t!==!1&&(this.pos+=e.length),!0}else{var s=this.string.slice(this.pos).match(e);return s&&s.index>0?null:(s&&t!==!1&&(this.pos+=s[0].length),s)}},ot.prototype.current=function(){return this.string.slice(this.start,this.pos)},ot.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},ot.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e
|
||
|
`?(oe=H.appendChild(D("span",Z[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),oe.setAttribute("cm-text",Z[0]),e.col+=1):(oe=e.cm.options.specialCharPlaceholder(Z[0]),oe.setAttribute("cm-text",Z[0]),g&&x<9?H.appendChild(D("span",[oe])):H.appendChild(oe),e.col+=1);e.map.push(e.pos,e.pos+1,oe),e.pos++}}if(e.trailingSpace=d.charCodeAt(t.length-1)==32,n||r||i||C||s||f){var me=n||"";r&&(me+=r),i&&(me+=i);var he=D("span",[H],me,s);if(f)for(var ye in f)f.hasOwnProperty(ye)&&ye!="style"&&ye!="class"&&he.setAttribute(ye,f[ye]);return e.content.appendChild(he)}e.content.appendChild(H)}}function Qd(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var s=e.charAt(i);s==" "&&n&&(i==e.length-1||e.charCodeAt(i+1)==32)&&(s="\xA0"),r+=s,n=s==" "}return r}function $d(e,t){return function(n,r,i,s,f,d,v){i=i?i+" cm-force-border":"cm-force-border";for(var C=n.pos,H=C+r.length;;){for(var G=void 0,Z=0;Z<t.length&&(G=t[Z],!(G.to>C&&G.from<=C));Z++);if(G.to>=H)return e(n,r,i,s,f,d,v);e(n,r.slice(0,G.to-C),i,s,null,d,v),s=null,r=r.slice(G.to-C),C=G.to}}}function qs(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function Zd(e,t,n){var r=e.markedSpans,i=e.text,s=0;if(!r){for(var f=1;f<n.length;f+=2)t.addToken(t,i.slice(s,s=n[f]),Gs(n[f+1],t.cm.options));return}for(var d=i.length,v=0,C=1,H="",G,Z,$=0,ne,oe,fe,ce,me;;){if($==v){ne=oe=fe=Z="",me=null,ce=null,$=1/0;for(var he=[],ye=void 0,Te=0;Te<r.length;++Te){var Ce=r[Te],Re=Ce.marker;if(Re.type=="bookmark"&&Ce.from==v&&Re.widgetNode)he.push(Re);else if(Ce.from<=v&&(Ce.to==null||Ce.to>v||Re.collapsed&&Ce.to==v&&Ce.from==v)){if(Ce.to!=null&&Ce.to!=v&&$>Ce.to&&($=Ce.to,oe=""),Re.className&&(ne+=" "+Re.className),Re.css&&(Z=(Z?Z+";":"")+Re.css),Re.startStyle&&Ce.from==v&&(fe+=" "+Re.startStyle),Re.endStyle&&Ce.to==$&&(ye||(ye=[])).push(Re.endStyle,Ce.to),Re.title&&((me||(me={})).title=Re.title),Re.attributes)for(var et in Re.attributes)(me||(me={}))[et]=Re.attributes[et];Re.collapsed&&(!ce||ml(ce.marker,Re)<0)&&(ce=Ce)}else Ce.from>v&&$>Ce.from&&($=Ce.from)}if(ye)for(var St=0;St<ye.length;St+=2)ye[St+1]==$&&(oe+=" "+ye[St]);if(!ce||ce.from==v)for(var it=0;it<he.length;++it)qs(t,0,he[it]);if(ce&&(ce.from||0)==v){if(qs(t,(ce.to==null?d+1:ce.to)-v,ce.marker,ce.from==null),ce.to==null)return;ce.to==v&&(ce=!1)}}if(v>=d)break;for(var Xt=Math.min(d,$);;){if(H){var Ht=v+H.length;if(!ce){var gt=Ht>Xt?H.slice(0,Xt-v):H;t.addToken(t,gt,G?G+ne:ne,fe,v+gt.length==$?oe:"",Z,me)}if(Ht>=Xt){H=H.slice(Xt-v),v=Xt;break}v=Ht,fe=""}H=i.slice(s,s=n[C++]),G=Gs(n[C++],t.cm.options)}}}function Xs(e,t,n){this.line=t,this.rest=Ud(t),this.size=this.rest?qe(Pe(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Fr(e,t)}function so(e,t,n){for(var r=[],i,s=t;s<n;s=i){var f=new Xs(e.doc,xe(e.doc,s),s);i=s+f.size,r.push(f)}return r}var kn=null;function Jd(e){kn?kn.ops.push(e):e.ownsGroup=kn={ops:[e],delayedCallbacks:[]}}function Vd(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function ep(e,t){var n=e.ownsGroup;if(!!n)try{Vd(n)}finally{kn=null,t(n)}}var li=null;function wt(e,t){var n=Qe(e,t);if(!!n.length){var r=Array.prototype.slice.call(arguments,2),i;kn?i=kn.delayedCallbacks:li?i=li:(i=li=[],setTimeout(tp,0));for(var s=function(d){i.push(function(){return n[d].apply(null,r)})},f=0;f<n.length;++f)s(f)}}function tp(){var e=li;li=null;for(var t=0;t<e.length;++t)e[t]()}function Ys(e,t,n,r){for(var i=0;i<t.changes.length;i++){var s=t.changes[i];s=="text"?np(e,t):s=="gutter"?$s(e,t,n,r):s=="class"?xl(e,t):s=="widget"&&ip(e,t,r)}t.changes=null}function ai(e){return e.node==e.text&&(e.node=D("div",null,null,"position:
|
||
|
top: `+ye+"px; width: "+(Te==null?v-he:Te)+`px;
|
||
|
height: `+(Ce-ye)+"px"))}function G(he,ye,Te){var Ce=xe(i,he),Re=Ce.text.length,et,St;function it(gt,Wt){return co(e,ae(he,gt),"div",Ce,Wt)}function Xt(gt,Wt,Tt){var yt=cu(e,Ce,null,gt),vt=Wt=="ltr"==(Tt=="after")?"left":"right",lt=Tt=="after"?yt.begin:yt.end-(/\s/.test(Ce.text.charAt(yt.end-1))?2:1);return it(lt,vt)[vt]}var Ht=$e(Ce,i.direction);return Zr(Ht,ye||0,Te==null?Re:Te,function(gt,Wt,Tt,yt){var vt=Tt=="ltr",lt=it(gt,vt?"left":"right"),Ut=it(Wt-1,vt?"right":"left"),Fn=ye==null&>==0,qr=Te==null&&Wt==Re,Et=yt==0,Cr=!Ht||yt==Ht.length-1;if(Ut.top-lt.top<=3){var Ct=(C?Fn:qr)&&Et,na=(C?qr:Fn)&&Cr,Pr=Ct?d:(vt?lt:Ut).left,sn=na?v:(vt?Ut:lt).right;H(Pr,lt.top,sn-Pr,lt.bottom)}else{var un,Dt,Bn,ia;vt?(un=C&&Fn&&Et?d:lt.left,Dt=C?v:Xt(gt,Tt,"before"),Bn=C?d:Xt(Wt,Tt,"after"),ia=C&&qr&&Cr?v:Ut.right):(un=C?Xt(gt,Tt,"before"):d,Dt=!C&&Fn&&Et?v:lt.right,Bn=!C&&qr&&Cr?d:Ut.left,ia=C?Xt(Wt,Tt,"after"):v),H(un,lt.top,Dt-un,lt.bottom),lt.bottom<Ut.top&&H(d,lt.bottom,null,Ut.top),H(Bn,Ut.top,ia-Bn,Ut.bottom)}(!et||po(lt,et)<0)&&(et=lt),po(Ut,et)<0&&(et=Ut),(!St||po(lt,St)<0)&&(St=lt),po(Ut,St)<0&&(St=Ut)}),{start:et,end:St}}var Z=t.from(),$=t.to();if(Z.line==$.line)G(Z.line,Z.ch,$.ch);else{var ne=xe(i,Z.line),oe=xe(i,$.line),fe=xr(ne)==xr(oe),ce=G(Z.line,Z.ch,fe?ne.text.length+1:null).end,me=G($.line,fe?0:null,$.ch).start;fe&&(ce.top<me.top-2?(H(ce.right,ce.top,null,ce.bottom),H(d,me.top,me.left,me.bottom)):H(ce.right,ce.top,me.left-ce.right,ce.bottom)),ce.bottom<me.top&&H(d,ce.bottom,null,me.top)}n.appendChild(s)}function Nl(e){if(!!e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||Tn(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function vu(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||zl(e))}function Pl(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Tn(e))},100)}function zl(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(_e(e,"focus",e,t),e.state.focused=!0,Me(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),y&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Nl(e))}function Tn(e,t){e.state.delayingBlurEvent||(e.state.focused&&(_e(e,"blur",e,t),e.state.focused=!1,U(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function go(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],s=e.options.lineWrapping,f=void 0,d=0;if(!i.hidden){if(g&&x<8){var v=i.node.offsetTop+i.node.offsetHeight;f=v-n,n=v}else{var C=i.node.getBoundingClientRect();f=C.bottom-C.top,!s&&i.text.firstChild&&(d=i.text.firstChild.getBoundingClientRect().right-C.left-1)}var H=i.line.height-f;if((H>.005||H<-.005)&&(jt(i.line,f),mu(i.line),i.rest))for(var G=0;G<i.rest.length;G++)mu(i.rest[G]);if(d>e.display.sizerWidth){var Z=Math.ceil(d/Ln(e.display));Z>e.display.maxLineLength&&(e.display.maxLineLength=Z,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function mu(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function vo(e,t,n){var r=n&&n.top!=null?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-uo(e));var i=n&&n.bottom!=null?n.bottom:r+e.wrapper.clientHeight,s=br(t,r),f=br(t,i);if(n&&n.ensure){var d=n.ensure.from.line,v=n.ensure.to.line;d<s?(s=d,f=br(t,_r(xe(t,d))+e.wrapper.clientHeight)):Math.min(v,t.lastLine())>=f&&(s=br(t,_r(xe(t,v))-e.wrapper.clientHeight),f=v)}return{from:s,to:Math.max(f,s+1)}}function mp(e,t){if(!nt(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+
|
||
|
top: `+(t.top-n.viewOffset-uo(e.display))+`px;
|
||
|
height: `+(t.bottom-t.top+kr(e)+n.barHeight)+`px;
|
||
|
left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(s),s.scrollIntoView(i),e.display.lineSpace.removeChild(s)}}}function yp(e,t,n,r){r==null&&(r=0);var i;!e.options.lineWrapping&&t==n&&(n=t.sticky=="before"?ae(t.line,t.ch+1,"before"):t,t=t.ch?ae(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var s=0;s<5;s++){var f=!1,d=ur(e,t),v=!n||n==t?d:ur(e,n);i={left:Math.min(d.left,v.left),top:Math.min(d.top,v.top)-r,right:Math.max(d.left,v.left),bottom:Math.max(d.bottom,v.bottom)+r};var C=Dl(e,i),H=e.doc.scrollTop,G=e.doc.scrollLeft;if(C.scrollTop!=null&&(hi(e,C.scrollTop),Math.abs(e.doc.scrollTop-H)>1&&(f=!0)),C.scrollLeft!=null&&(nn(e,C.scrollLeft),Math.abs(e.doc.scrollLeft-G)>1&&(f=!0)),!f)break}return i}function bp(e,t){var n=Dl(e,t);n.scrollTop!=null&&hi(e,n.scrollTop),n.scrollLeft!=null&&nn(e,n.scrollLeft)}function Dl(e,t){var n=e.display,r=Cn(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop,s=Sl(e),f={};t.bottom-t.top>s&&(t.bottom=t.top+s);var d=e.doc.height+kl(n),v=t.top<r,C=t.bottom>d-r;if(t.top<i)f.scrollTop=v?0:t.top;else if(t.bottom>i+s){var H=Math.min(t.top,(C?d:t.bottom)-s);H!=i&&(f.scrollTop=H)}var G=e.options.fixedGutter?0:n.gutters.offsetWidth,Z=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft-G,$=Vr(e)-n.gutters.offsetWidth,ne=t.right-t.left>$;return ne&&(t.right=t.left+$),t.left<10?f.scrollLeft=0:t.left<Z?f.scrollLeft=Math.max(0,t.left+G-(ne?0:10)):t.right>$+Z-3&&(f.scrollLeft=t.right+(ne?0:10)-$),f}function Il(e,t){t!=null&&(mo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Mn(e){mo(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ci(e,t,n){(t!=null||n!=null)&&mo(e),t!=null&&(e.curOp.scrollLeft=t),n!=null&&(e.curOp.scrollTop=n)}function wp(e,t){mo(e),e.curOp.scrollToPos=t}function mo(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=uu(e,t.from),r=uu(e,t.to);yu(e,n,r,t.margin)}}function yu(e,t,n,r){var i=Dl(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});ci(e,i.scrollLeft,i.scrollTop)}function hi(e,t){Math.abs(e.doc.scrollTop-t)<2||(h||Fl(e,{top:t}),bu(e,t,!0),h&&Fl(e),gi(e,100))}function bu(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function nn(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,Cu(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function di(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+kl(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+kr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var on=function(e,t,n){this.cm=n;var r=this.vert=D("div",[D("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=D("div",[D("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),be(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),be(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,g&&x<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};on.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.s
|
||
|
`},setDirection:kt(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&Ip(this.cm))})}),Bt.prototype.eachLine=Bt.prototype.iter;var tf=0;function Qp(e){var t=this;if(rf(t),!(nt(t,e)||Er(t.display,e))){pt(e),g&&(tf=+new Date);var n=tn(t,e,!0),r=e.dataTransfer.files;if(!(!n||t.isReadOnly()))if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,s=Array(i),f=0,d=function(){++f==i&&xt(t,function(){n=ve(t.doc,n);var $={from:n,to:n,text:t.doc.splitLines(s.filter(function(ne){return ne!=null}).join(t.doc.lineSeparator())),origin:"paste"};En(t.doc,$),Hu(t.doc,Wr(ve(t.doc,n),ve(t.doc,Ur($))))})()},v=function($,ne){if(t.options.allowDropFileTypes&&Se(t.options.allowDropFileTypes,$.type)==-1){d();return}var oe=new FileReader;oe.onerror=function(){return d()},oe.onload=function(){var fe=oe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(fe)){d();return}s[ne]=fe,d()},oe.readAsText($)},C=0;C<r.length;C++)v(r[C],C);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var H=e.dataTransfer.getData("Text");if(H){var G;if(t.state.draggingText&&!t.state.draggingText.copy&&(G=t.listSelections()),So(t.doc,Wr(n,n)),G)for(var Z=0;Z<G.length;++Z)Nn(t.doc,"",G[Z].anchor,G[Z].head,"drag");t.replaceSelection(H,"around","paste"),t.display.input.focus()}}catch($){}}}}function $p(e,t){if(g&&(!e.state.draggingText||+new Date-tf<100)){Gt(t);return}if(!(nt(e,t)||Er(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!R)){var n=D("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",_&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),_&&n.parentNode.removeChild(n)}}function Zp(e,t){var n=tn(e,t);if(!!n){var r=document.createDocumentFragment();gu(e,n,r),e.display.dragCursor||(e.display.dragCursor=D("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),X(e.display.dragCursor,r)}}function rf(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function nf(e){if(!!document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation(function(){for(var s=0;s<n.length;s++)e(n[s])})}}var of=!1;function Jp(){of||(Vp(),of=!0)}function Vp(){var e;be(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,nf(eg)},100))}),be(window,"blur",function(){return nf(Tn)})}function eg(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var jr={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ci=0;Ci<10;Ci++)jr[Ci+48]=jr[Ci+96]=String(Ci);for(var To=65;To<=90;To++)jr[To]=String.fromCharCode(To);for(var Li=1;Li<=12;Li++)jr[Li+111]=jr[Li+63235]="F"+Li;var Nr={};Nr.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Nr.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"dele
|
||
|
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function uf(e,t){var n=xe(e.doc,t),r=xr(n);return r!=n&&(t=qe(r)),$l(!0,e,r,t,1)}function ig(e,t){var n=xe(e.doc,t),r=Wd(n);return r!=n&&(t=qe(r)),$l(!0,e,n,t,-1)}function ff(e,t){var n=uf(e,t.line),r=xe(e.doc,n.line),i=$e(r,e.doc.direction);if(!i||i[0].level==0){var s=Math.max(n.ch,r.text.search(/\S/)),f=t.line==n.line&&t.ch<=s&&t.ch;return ae(n.line,f?0:s,n.sticky)}return n}function Ao(e,t,n){if(typeof t=="string"&&(t=Ti[t],!t))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=ze}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function og(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=zn(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&zn(t,e.options.extraKeys,n,e)||zn(t,e.options.keyMap,n,e)}var lg=new Je;function Mi(e,t,n,r){var i=e.state.keySeq;if(i){if(lf(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:lg.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),cf(e,i+" "+t,n,r))return!0}return cf(e,t,n,r)}function cf(e,t,n,r){var i=og(e,t,r);return i=="multi"&&(e.state.keySeq=t),i=="handled"&&wt(e,"keyHandled",e,t,n),(i=="handled"||i=="multi")&&(pt(n),Nl(e)),!!i}function hf(e,t){var n=sf(t,!0);return n?t.shiftKey&&!e.state.keySeq?Mi(e,"Shift-"+n,t,function(r){return Ao(e,r,!0)})||Mi(e,n,t,function(r){if(typeof r=="string"?/^go[A-Z]/.test(r):r.motion)return Ao(e,r)}):Mi(e,n,t,function(r){return Ao(e,r)}):!1}function ag(e,t,n){return Mi(e,"'"+n+"'",t,function(r){return Ao(e,r,!0)})}var Zl=null;function df(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=de(),!nt(t,e))){g&&x<11&&e.keyCode==27&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=n==16||e.shiftKey;var r=hf(t,e);_&&(Zl=r?n:null,!r&&n==88&&!to&&(c?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),h&&!c&&!r&&n==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),n==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&sg(t)}}function sg(e){var t=e.display.lineDiv;Me(t,"CodeMirror-crosshair");function n(r){(r.keyCode==18||!r.altKey)&&(U(t,"CodeMirror-crosshair"),bt(document,"keyup",n),bt(document,"mouseover",n))}be(document,"keyup",n),be(document,"mouseover",n)}function pf(e){e.keyCode==16&&(this.doc.sel.shift=!1),nt(this,e)}function gf(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(Er(t.display,e)||nt(t,e)||e.ctrlKey&&!e.altKey||c&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(_&&n==Zl){Zl=null,pt(e);return}if(!(_&&(!e.which||e.which<10)&&hf(t,e))){var i=String.fromCharCode(r==null?n:r);i!="\b"&&(ag(t,e,i)||t.display.input.onKeyPress(e))}}}var ug=400,Jl=function(e,t,n){this.time=e,this.pos=t,this.button=n};Jl.prototype.compare=function(e,t,n){return this.time+ug>e&&M(t,this.pos)==0&&n==this.button};var Ai,Oi;function fg(e,t){var n=+new Date;return Oi&&Oi.compare(n,e,t)?(Ai=Oi=null,"triple"):Ai&&Ai.compare(n,e,t)?(Oi=new Jl(n,e,t),Ai=null,"double"):(Ai=new Jl(n,e,t),Oi=null,"single")}function vf(e){var t=this,n=t.display;if(!(nt(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=e.shiftKey,Er(n,e)){y||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));return}if(!Vl(t,e)){var r=tn(t,e),i=Ji(e),s=r?fg(r,i):"single";window.focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&cg(t,i,r,s,e))&&(i==1?r?dg(t,r,s,e):Ir(e)==n.scroller&&pt(e):i==2?(r&&ko(t.doc,r),setTimeout(function(){return n.input.focus()},20)):i==3&&(j?t.display.input.onContextMenu(e):Pl(t)))}}}function cg(e,t,n,r,i){var s="Click";return r=="double"?s="Double"+s:r=="triple"&&(s="Triple"+s),s=(t==1?"Left":t==2?"Middle":"Right")+s,Mi(e,af(s,i),i,function(f){if(typeof f=="string"&&(f=Ti[f]),!f)return!1;var d=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),d=f(e,n)!=ze}finally{e.state.suppressEdits=!1}return d})}function hg(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(i.u
|
||
|
`)==t){if(r.ranges.length%cr.text.length==0){C=[];for(var H=0;H<cr.text.length;H++)C.push(s.splitLines(cr.text[H]))}}else v.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(C=He(v,function(ce){return[ce]}));for(var G=e.curOp.updateInput,Z=r.ranges.length-1;Z>=0;Z--){var $=r.ranges[Z],ne=$.from(),oe=$.to();$.empty()&&(n&&n>0?ne=ae(ne.line,ne.ch-n):e.state.overwrite&&!d?oe=ae(oe.line,Math.min(xe(s,oe.line).text.length,oe.ch+Pe(v).length)):d&&cr&&cr.lineWise&&cr.text.join(`
|
||
|
`)==v.join(`
|
||
|
`)&&(ne=oe=ae(ne.line,0)));var fe={from:ne,to:oe,text:C?C[Z%C.length]:v,origin:i||(d?"paste":e.state.cutIncoming>f?"cut":"+input")};En(e.doc,fe),wt(e,"inputRead",e,fe)}t&&!d&&Sf(e,t),Mn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=G),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function kf(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&qt(t,function(){return ta(t,n,0,null,"paste")}),!0}function Sf(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var s=e.getModeAt(i.head),f=!1;if(s.electricChars){for(var d=0;d<s.electricChars.length;d++)if(t.indexOf(s.electricChars.charAt(d))>-1){f=_i(e,i.head.line,"smart");break}}else s.electricInput&&s.electricInput.test(xe(e.doc,i.head.line).text.slice(0,i.head.ch))&&(f=_i(e,i.head.line,"smart"));f&&wt(e,"electricInput",e,i.head.line)}}}function Cf(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,s={anchor:ae(i,0),head:ae(i+1,0)};n.push(s),t.push(e.getRange(s.anchor,s.head))}return{text:t,ranges:n}}function Lf(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function Tf(){var e=D("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=D("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return y?e.style.width="1000px":e.setAttribute("wrap","off"),N&&(e.style.border="1px solid black"),Lf(e),t}function kg(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(r,i){var s=this.options,f=s[r];s[r]==i&&r!="mode"||(s[r]=i,t.hasOwnProperty(r)&&xt(this,t[r])(this,i,f),_e(this,"optionChange",this,r))},getOption:function(r){return this.options[r]},getDoc:function(){return this.doc},addKeyMap:function(r,i){this.state.keyMaps[i?"push":"unshift"](Mo(r))},removeKeyMap:function(r){for(var i=this.state.keyMaps,s=0;s<i.length;++s)if(i[s]==r||i[s].name==r)return i.splice(s,1),!0},addOverlay:zt(function(r,i){var s=r.token?r:e.getMode(this.options,r);if(s.startState)throw new Error("Overlays may not be stateful.");dt(this.state.overlays,{mode:s,modeSpec:r,opaque:i&&i.opaque,priority:i&&i.priority||0},function(f){return f.priority}),this.state.modeGen++,Ft(this)}),removeOverlay:zt(function(r){for(var i=this.state.overlays,s=0;s<i.length;++s){var f=i[s].modeSpec;if(f==r||typeof r=="string"&&f.name==r){i.splice(s,1),this.state.modeGen++,Ft(this);return}}}),indentLine:zt(function(r,i,s){typeof i!="string"&&typeof i!="number"&&(i==null?i=this.options.smartIndent?"smart":"prev":i=i?"add":"subtract"),Jr(this.doc,r)&&_i(this,r,i,s)}),indentSelection:zt(function(r){for(var i=this.doc.sel.ranges,s=-1,f=0;f<i.length;f++){var d=i[f];if(d.empty())d.head.line>s&&(_i(this,d.head.line,r,!0),s=d.head.line,f==this.doc.sel.primIndex&&Mn(this));else{var v=d.from(),C=d.to(),H=Math.max(s,v.line);s=Math.min(this.lastLine(),C.line-(C.ch?0:1))+1;for(var G=H;G<s;++G)_i(this,G,r);var Z=this.doc.sel.ranges;v.ch==0&&i.length==Z.length&&Z[f].from().ch>0&&Xl(this.doc,f,new Xe(v,Z[f].to()),Be)}}}),getTokenAt:function(r,i){return Ps(this,r,i)},getLineTokens:function(r,i){return Ps(this,ae(r),i,!0)},getTokenTypeAt:function(r){r=ve(this.doc,r);var i=_s(this,xe(this.doc,r.line)),s=0,f=(i.length-1)/2,d=r.ch,v;if(d==0)v=i[2];else for(;;){var C=s+f>>1;if((C?i[C*2-1]:0)>=d)f=C;else if(i[C*2+1]<d)s=C+1;else{v=i[C*2+2];break}}var H=v?v.indexOf("overlay "):-1;return H<0?v:H==0?null:v.slice(0,H-1)},getModeAt:function(r){var i=this.doc.mode;return i.innerMode?e.innerMode(i,this.getTokenAt(r).state).mode:i},getHelper:function(r,i){return this.getHelpers(r,i)[0]},getHelpers:function(r,i){var s=[];if(!n.hasOwnProperty(i))return s;var f=n[i],d=this.getModeAt(r);if(typeof d[i]=="string")f[d[i]]&&s.push(f[d[i]]);else if(
|
||
|
`,fe=K(oe,$)?"w":Z&&oe==`
|
||
|
`?"n":!Z||/\s/.test(oe)?null:"p";if(Z&&!ne&&!fe&&(fe="s"),G&&G!=fe){n<0&&(n=1,H(),t.sticky="after");break}if(fe&&(G=fe),n>0&&!H(!ne))break}var ce=Co(e,t,s,f,!0);return q(s,ce)&&(ce.hitSide=!0),ce}function Mf(e,t,n,r){var i=e.doc,s=t.left,f;if(r=="page"){var d=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),v=Math.max(d-.5*Cn(e.display),3);f=(n>0?t.bottom:t.top)+n*v}else r=="line"&&(f=n>0?t.bottom+3:t.top-3);for(var C;C=Ml(e,s,f),!!C.outside;){if(n<0?f<=0:f>=i.height){C.hitSide=!0;break}f+=n*5}return C}var Ze=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Je,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ze.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;i.contentEditable=!0,Lf(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function s(d){for(var v=d.target;v;v=v.parentNode){if(v==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(v.className))break}return!1}be(i,"paste",function(d){!s(d)||nt(r,d)||kf(d,r)||x<=11&&setTimeout(xt(r,function(){return t.updateFromDOM()}),20)}),be(i,"compositionstart",function(d){t.composing={data:d.data,done:!1}}),be(i,"compositionupdate",function(d){t.composing||(t.composing={data:d.data,done:!1})}),be(i,"compositionend",function(d){t.composing&&(d.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),be(i,"touchstart",function(){return n.forceCompositionEnd()}),be(i,"input",function(){t.composing||t.readFromDOMSoon()});function f(d){if(!(!s(d)||nt(r,d))){if(r.somethingSelected())_o({lineWise:!1,text:r.getSelections()}),d.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var v=Cf(r);_o({lineWise:!0,text:v.text}),d.type=="cut"&&r.operation(function(){r.setSelections(v.ranges,0,Be),r.replaceSelection("",null,"cut")})}else return;if(d.clipboardData){d.clipboardData.clearData();var C=cr.text.join(`
|
||
|
`);if(d.clipboardData.setData("Text",C),d.clipboardData.getData("Text")==C){d.preventDefault();return}}var H=Tf(),G=H.firstChild;r.display.lineSpace.insertBefore(H,r.display.lineSpace.firstChild),G.value=cr.text.join(`
|
||
|
`);var Z=de();pe(G),setTimeout(function(){r.display.lineSpace.removeChild(H),Z.focus(),Z==i&&n.showPrimarySelection()},50)}}be(i,"copy",f),be(i,"cut",f)},Ze.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ze.prototype.prepareSelection=function(){var e=pu(this.cm,!1);return e.focus=de()==this.div,e},Ze.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ze.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ze.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),i=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line<t.display.viewFrom){e.removeAllRanges();return}var s=Eo(t,e.anchorNode,e.anchorOffset),f=Eo(t,e.focusNode,e.focusOffset);if(!(s&&!s.bad&&f&&!f.bad&&M(Ee(s,f),r)==0&&M(se(s,f),i)==0)){var d=t.display.view,v=r.line>=t.display.viewFrom&&Af(t,r)||{node:d[0].measure.map[2],offset:0},C=i.line<t.display.viewTo&&Af(t,i);if(!C){var H=d[d.length-1].measure,G=H.maps?H.maps[H.maps.length-1]:H.map;C={node:G[G.length-1],offset:G[G.length-2]-G[G.length-3]}}if(!v||!C){e.removeAllRanges();return}var Z=e.rangeCount&&e.getRangeAt(0),$;try{$=te(v.node,v.offset,C.offset,C.node)}catch(ne){}$&&(!h&&t.state.focused?(e.collapse(v.node,v.offset),$.collapsed||(e.removeAllRanges(),e.addRange($))):(e.removeAllRanges(),e.addRange($)),Z&&e.anchorNode==null?e.addRange(Z):h&&this.startGracePeriod()),this.rememberSelection()}},Ze.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Ze.prototype.showMultipleSelections=function(e){X(this.cm.display.cursorDiv,e.cursors),X(this.cm.display.selectionDiv,e.selection)},Ze.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ze.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return ue(this.div,t)},Ze.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||de()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ze.prototype.blur=function(){this.div.blur()},Ze.prototype.getField=function(){return this.div},Ze.prototype.supportsTouch=function(){return!0},Ze.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():qt(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}this.polling.set(this.cm.options.pollInterval,t)},Ze.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ze.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(T&&m&&this.cm.display.gutterSpecs.length&&Sg(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var n=Eo(t,e.anchorNode,e.anchorOffset),r=Eo(t,e.focusNode,e.focusOffset);n&&r&&qt(t,function(){_t(t.doc,Wr(n,r),Be),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},Ze.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,n=e.doc.sel.primary(),r=n.from(),i=n.to();if(r.ch==0&&r.line>e.firstLine()&&(r=ae(r.line-1,xe(e.doc,r.line-1).length)),i.ch==xe(e.doc,i.line).text.length&&i.line<e.lastLine()&&(i=ae(i.line+1,0)),r.line
|
||
|
`),pe(i))}else return;f.type=="cut"&&(r.state.cutIncoming=+new Date)}}be(i,"cut",s),be(i,"copy",s),be(e.scroller,"paste",function(f){if(!(Er(e,f)||nt(r,f))){if(!i.dispatchEvent){r.state.pasteIncoming=+new Date,n.focus();return}var d=new Event("paste");d.clipboardData=f.clipboardData,i.dispatchEvent(d)}}),be(e.lineSpace,"selectstart",function(f){Er(e,f)||pt(f)}),be(i,"compositionstart",function(){var f=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:f,range:r.markText(f,r.getCursor("to"),{className:"CodeMirror-composing"})}}),be(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},ft.prototype.createField=function(e){this.wrapper=Tf(),this.textarea=this.wrapper.firstChild},ft.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ft.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=pu(e);if(e.options.moveInputWithCursor){var i=ur(e,n.sel.primary().head,"div"),s=t.wrapper.getBoundingClientRect(),f=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+f.top-s.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+f.left-s.left))}return r},ft.prototype.showSelection=function(e){var t=this.cm,n=t.display;X(n.cursorDiv,e.cursors),X(n.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ft.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&pe(this.textarea),g&&x>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",g&&x>=9&&(this.hasSelection=null))}},ft.prototype.getField=function(){return this.textarea},ft.prototype.supportsTouch=function(){return!1},ft.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!E||de()!=this.textarea))try{this.textarea.focus()}catch(e){}},ft.prototype.blur=function(){this.textarea.blur()},ft.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ft.prototype.receivedFocus=function(){this.slowPoll()},ft.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},ft.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function n(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,n)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,n)},ft.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||eo(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(g&&x>=9&&this.hasSelection===i||c&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var s=i.charCodeAt(0);if(s==8203&&!r&&(r="\u200B"),s==8666)return this.reset(),this.cm.execCommand("undo")}for(var f=0,d=Math.min(r.length,i.length);f<d&&r.charCodeAt(f)==i.charCodeAt(f);)++f;return qt(t,function(){ta(t,i.slice(f),r.length-f,null,e.composing?"*compose":null),i.length>1e3||i.indexOf(`
|
||
|
`)>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ft.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ft.prototype.onKeyPress=function(){g&&x>=9&&(this.hasSelection=null),this.fastPoll()},ft.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var s=tn(n,e),f=r.scroller.scrollTop;if(!s||_)return;var d=n.options.resetSelectionOnContextMenu;d&&n.doc.sel.contains(s)==-1&&xt(n,_t)(n.doc,Wr(s),Be);var v=i.style.cssText,C=t.wrapper.style.cssText,H=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px;
|
||
|
top: `+(e.clientY-H.top-5)+"px; left: "+(e.clientX-H.left-5)+`px;
|
||
|
z-index: 1000; background: `+(g?"rgba(255, 255, 255, .05)":"transparent")+`;
|
||
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var G;y&&(G=window.scrollY),r.input.focus(),y&&window.scrollTo(null,G),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=$,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll);function Z(){if(i.selectionStart!=null){var oe=n.somethingSelected(),fe="\u200B"+(oe?i.value:"");i.value="\u21DA",i.value=fe,t.prevInput=oe?"":"\u200B",i.selectionStart=1,i.selectionEnd=fe.length,r.selForContextMenu=n.doc.sel}}function $(){if(t.contextMenuPending==$&&(t.contextMenuPending=!1,t.wrapper.style.cssText=C,i.style.cssText=v,g&&x<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=f),i.selectionStart!=null)){(!g||g&&x<9)&&Z();var oe=0,fe=function(){r.selForContextMenu==n.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="\u200B"?xt(n,ju)(n):oe++<10?r.detectingSelectAll=setTimeout(fe,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(fe,200)}}if(g&&x>=9&&Z(),j){Gt(e);var ne=function(){bt(window,"mouseup",ne),setTimeout($,20)};be(window,"mouseup",ne)}else setTimeout($,50)},ft.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},ft.prototype.setUneditable=function(){},ft.prototype.needsContentAttribute=!1;function Tg(e,t){if(t=t?Ke(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var n=de();t.autofocus=n==e||e.getAttribute("autofocus")!=null&&n==document.body}function r(){e.value=d.getValue()}var i;if(e.form&&(be(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var s=e.form;i=s.submit;try{var f=s.submit=function(){r(),s.submit=i,s.submit(),s.submit=f}}catch(v){}}t.finishInit=function(v){v.save=r,v.getTextArea=function(){return e},v.toTextArea=function(){v.toTextArea=isNaN,r(),e.parentNode.removeChild(v.getWrapperElement()),e.style.display="",e.form&&(bt(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var d=rt(function(v){return e.parentNode.insertBefore(v,e.nextSibling)},t);return d}function Mg(e){e.off=bt,e.on=be,e.wheelEventPixels=zp,e.Doc=Bt,e.splitLines=Jn,e.countColumn=je,e.findColumn=st,e.isWordChar=re,e.Pass=ze,e.signal=_e,e.Line=xn,e.changeEnd=Ur,e.scrollbarModel=xu,e.Pos=ae,e.cmpPos=M,e.modes=nr,e.mimeModes=Qt,e.resolveMode=yn,e.getMode=bn,e.modeExtensions=ar,e.extendMode=sr,e.copyState=$t,e.startState=ti,e.innerMode=ei,e.commands=Ti,e.keyMap=Nr,e.keyName=sf,e.isModifierKey=lf,e.lookupKey=zn,e.normalizeKeyMap=rg,e.StringStream=ot,e.SharedTextMarker=Si,e.TextMarker=Gr,e.LineWidget=ki,e.e_preventDefault=pt,e.e_stopPropagation=vr,e.e_stop=Gt,e.addClass=Me,e.contains=ue,e.rmClass=U,e.keyNames=jr}yg(rt),kg(rt);var Ag="iter insert remove copy getEditor constructor".split(" ");for(var No in Bt.prototype)Bt.prototype.hasOwnProperty(No)&&Se(Ag,No)<0&&(rt.prototype[No]=function(e){return function(){return e.apply(this.doc,arguments)}}(Bt.prototype[No]));return Ge(Bt),rt.inputStyles={textarea:ft,contenteditable:Ze},rt.defineMode=function(e){!rt.defaults.mode&&e!="null"&&(rt.defaults.mode=e),ro.apply(this,arguments)},rt.defineMIME=Ar,rt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),rt.defineMIME("text/plain","null"),rt.defineExtension=function(e,t){rt.prototype[e]=t},rt.defineDocExtension=function(e,t){Bt.prototype[e]=t},rt.fromTextArea=Tg,Mg(rt),rt.version="5.62.3",rt})})(ct);var dn=ct.exports,Ic={exports:{}};(function(o,a){(function(l){l(ct.exports)})(function(l){l.defineMode("javascript",function(u,h){var p=u.indentUnit,S=h.statementIndent,b=h.jsonld,g=h.json||b,x=h.trackScope!==!1,y=h.typescript,A=h.wordCharacters||/[\w$\xa1-\uffff]/,m=function(){function M(Ot){return{type:Ot,style:"keyword"}}var q=M("keyword a"),ie=M("keyword b"),se=M("keyword c"),Ee=M("keyword d"),We=M("operator"),ve={type:"atom",style:"atom"};return{if:M("if"),while:q,with:q,else:ie,do:ie,try:ie,finally:i
|
||
|
bracket");if(ue=="&"){var de;return
|
||
|
D.eat("#")?D.eat("x")?de=D.eatWhile(/[a-fA-F\d]/)&&D.eat(";"):de=D.eatWhile(/[\d]/)&&D.eat(";"):de=D.eatWhile(/[\w\.\-:]/)&&D.eat(";"),de?"atom":"error"}else
|
||
|
return D.eatWhile(/[^&<]/),null}_.isInText=!0;function
|
||
|
R(D,z){var
|
||
|
te=D.next();if(te==">"||te=="/"&&D.eat(">"))return
|
||
|
z.tokenize=_,A=te==">"?"endTag":"selfcloseTag","tag
|
||
|
bracket";if(te=="=")return
|
||
|
A="equals",null;if(te=="<"){z.tokenize=_,z.state=w,z.tagName=z.tagStart=null;var
|
||
|
ue=z.tokenize(D,z);return ue?ue+" tag error":"tag error"}else
|
||
|
return/[\'\"]/.test(te)?(z.tokenize=I(te),z.stringStartCol=D.column(),z.tokenize(D,z)):(D.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function
|
||
|
I(D){var
|
||
|
z=function(te,ue){for(;!te.eol();)if(te.next()==D){ue.tokenize=R;break}return"string"};return
|
||
|
z.isInAttribute=!0,z}function W(D,z){return
|
||
|
function(te,ue){for(;!te.eol();){if(te.match(z)){ue.tokenize=_;break}te.next()}return
|
||
|
D}}function N(D){return function(z,te){for(var
|
||
|
ue;(ue=z.next())!=null;){if(ue=="<")return
|
||
|
te.tokenize=N(D+1),te.tokenize(z,te);if(ue==">")if(D==1){te.tokenize=_;break}else
|
||
|
return te.tokenize=N(D-1),te.tokenize(z,te)}return"meta"}}function
|
||
|
T(D,z,te){this.prev=D.context,this.tagName=z||"",this.indent=D.indented,this.startOfLine=te,(g.doNotIndent.hasOwnProperty(z)||D.context&&D.context.noIndent)&&(this.noIndent=!0)}function
|
||
|
E(D){D.context&&(D.context=D.context.prev)}function
|
||
|
c(D,z){for(var
|
||
|
te;;){if(!D.context||(te=D.context.tagName,!g.contextGrabbers.hasOwnProperty(te)||!g.contextGrabbers[te].hasOwnProperty(z)))return;E(D)}}function
|
||
|
w(D,z,te){return
|
||
|
D=="openTag"?(te.tagStart=z.column(),k):D=="closeTag"?O:w}function
|
||
|
k(D,z,te){return
|
||
|
D=="word"?(te.tagName=z.current(),m="tag",B):g.allowMissingTagName&&D=="endTag"?(m="tag
|
||
|
bracket",B(D,z,te)):(m="error",k)}function O(D,z,te){if(D=="word"){var
|
||
|
ue=z.current();return
|
||
|
te.context&&te.context.tagName!=ue&&g.implicitlyClosed.hasOwnProperty(te.context.tagName)&&E(te),te.context&&te.context.tagName==ue||g.matchClosing===!1?(m="tag",L):(m="tag
|
||
|
error",j)}else return
|
||
|
g.allowMissingTagName&&D=="endTag"?(m="tag
|
||
|
bracket",L(D,z,te)):(m="error",j)}function L(D,z,te){return
|
||
|
D!="endTag"?(m="error",L):(E(te),w)}function j(D,z,te){return
|
||
|
m="error",L(D,z,te)}function B(D,z,te){if(D=="word")return
|
||
|
m="attribute",U;if(D=="endTag"||D=="selfcloseTag"){var
|
||
|
ue=te.tagName,de=te.tagStart;return
|
||
|
te.tagName=te.tagStart=null,D=="selfcloseTag"||g.autoSelfClosers.hasOwnProperty(ue)?c(te,ue):(c(te,ue),te.context=new
|
||
|
T(te,ue,de==te.indented)),w}return m="error",B}function
|
||
|
U(D,z,te){return
|
||
|
D=="equals"?Q:(g.allowMissing||(m="error"),B(D,z,te))}function
|
||
|
Q(D,z,te){return
|
||
|
D=="string"?X:D=="word"&&g.allowUnquoted?(m="string",B):(m="error",B(D,z,te))}function
|
||
|
X(D,z,te){return
|
||
|
D=="string"?X:B(D,z,te)}return{startState:function(D){var
|
||
|
z={tokenize:_,state:w,indented:D||0,tagName:null,tagStart:null,context:null};return
|
||
|
|
||
|
D!=null&&(z.baseIndent=D),z},token:function(D,z){if(!z.tagName&&D.sol()&&(z.indented=D.indentation()),D.eatSpace())return
|
||
|
null;A=null;var
|
||
|
te=z.tokenize(D,z);return(te||A)&&te!="comment"&&(m=null,z.state=z.state(A||te,D,z),m&&(te=m=="error"?te+"
|
||
|
error":m)),te},indent:function(D,z,te){var
|
||
|
ue=D.context;if(D.tokenize.isInAttribute)return
|
||
|
D.tagStart==D.indented?D.stringStartCol+1:D.indented+b;if(ue&&ue.noIndent)return
|
||
|
l.Pass;if(D.tokenize!=R&&D.tokenize!=_)return
|
||
|
te?te.match(/^(\s*)/)[0].length:0;if(D.tagName)return
|
||
|
g.multilineTagIndentPastTag!==!1?D.tagStart+D.tagName.length+2:D.tagStart+b*(g.multilineTagIndentFactor||1);if(g.alignCDATA&&/<!--\[CDATA\[/.test(z))return 0;var de=z&&/^<(\/)?([\w_:\.-]*)/.exec(z);if(de&&de[1])for(;ue;)if(ue.tagName==de[2]){ue=ue.prev;break}else if(g.implicitlyClosed.hasOwnProperty(ue.tagName))ue=ue.prev;else break;else if(de)for(;ue;){var Me=g.contextGrabbers[ue.tagName];if(Me&&Me.hasOwnProperty(de[2]))ue=ue.prev;else break}for(;ue&&ue.prev&&!ue.startOfLine;)ue=ue.prev;return ue?ue.indent+b:D.baseIndent||0},electricInput:/<\/[\s\w:]+-->$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:g.htmlMode?"html":"xml",helperType:g.htmlMode?"html":"xml",skipAttribute:function(D){D.state==Q&&(D.state=B)},xmlCurrentTag:function(D){return
|
||
|
|
||
|
D.tagName?{name:D.tagName,close:D.type=="closeTag"}:null},xmlCurrentContext:function(D){for(var
|
||
|
z=[],te=D.context;te;te=te.prev)z.push(te.tagName);return
|
||
|
z.reverse()}}}),l.defineMIME("text/xml","xml"),l.defineMIME("application/xml","xml"),l.mimeModes.hasOwnProperty("text/html")||l.defineMIME("text/html",{name:"xml",htmlMode:!0})})})(),function(o,a){(function(l){l(ct.exports,Fc.exports,Ic.exports,Rc.exports)})(function(l){var
|
||
|
|
||
|
u={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
|
||
|
h(A,m,_){var R=A.current(),I=R.search(m);return
|
||
|
I>-1?A.backUp(R.length-I):R.match(/<\/?$/)&&(A.backUp(R.length),A.match(m,!1)||A.match(R)),_}var
|
||
|
p={};function S(A){var m=p[A];return m||(p[A]=new
|
||
|
RegExp("\\s+"+A+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function
|
||
|
b(A,m){var _=A.match(S(m));return
|
||
|
_?/^\s*(.*?)\s*$/.exec(_[2])[1]:""}function g(A,m){return new
|
||
|
RegExp((m?"^":"")+"","i")}function x(A,m){for(var _ in A)for(var
|
||
|
R=m[_]||(m[_]=[]),I=A[_],W=I.length-1;W>=0;W--)R.unshift(I[W])}function
|
||
|
y(A,m){for(var _=0;_<a.length;_++){var r="A[_];if(!R[0]||R[1].test(b(m,R[0])))return" r[2]}}l.definemode("htmlmixed",function(a,m){var="" _="l.getMode(A,{name:"xml",htmlMode:!0,multilineTagIndentFactor:m.multilineTagIndentFactor,multilineTagIndentPastTag:m.multilineTagIndentPastTag,allowMissingTagName:m.allowMissingTagName}),R={},I=m&&m.tags,W=m&&m.scriptTypes;if(x(u,R),I&&x(I,R),W)for(var" n="W.length-1;N">=0;N--)R.script.unshift(["type",W[N].matches,W[N].mode]);function
|
||
|
T(E,c){var
|
||
|
w=_.token(E,c.htmlState),k=/\btag\b/.test(w),O;if(k&&!/[<>\s\/]/.test(E.current())&&(O=c.htmlState.tagName&&c.htmlState.tagName.toLowerCase())&&R.hasOwnProperty(O))c.inTag=O+"
|
||
|
";else if(c.inTag&&k&&/>$/.test(E.current())){var
|
||
|
L=/^([\S]+) (.*)/.exec(c.inTag);c.inTag=null;var
|
||
|
j=E.current()==">"&&y(R[L[1]],L[2]),B=l.getMode(A,j),U=g(L[1],!0),Q=g(L[1],!1);c.token=function(X,D){return
|
||
|
|
||
|
X.match(U,!1)?(D.token=T,D.localState=D.localMode=null,null):h(X,Q,D.localMode.token(X,D.localState))},c.localMode=B,c.localState=l.startState(B,_.indent(c.htmlState,"",""))}else
|
||
|
c.inTag&&(c.inTag+=E.current(),E.eol()&&(c.inTag+="
|
||
|
"));return w}return{startState:function(){var
|
||
|
E=l.startState(_);return{token:T,inTag:null,localMode:null,localState:null,htmlState:E}},copyState:function(E){var
|
||
|
c;return
|
||
|
E.localState&&(c=l.copyState(E.localMode,E.localState)),{token:E.token,inTag:E.inTag,localMode:E.localMode,localState:c,htmlState:l.copyState(_,E.htmlState)}},token:function(E,c){return
|
||
|
|
||
|
c.token(E,c)},indent:function(E,c,w){return!E.localMode||/^\s*<\//.test(c)?_.indent(E.htmlState,c,w):E.localMode.indent?E.localMode.indent(E.localState,c,w):l.Pass},innerMode:function(E){return{state:E.localState||E.htmlState,mode:E.localMode||_}}}},"xml","javascript","css"),l.defineMIME("text/html","htmlmixed")})}();var
|
||
|
|
||
|
Fa={exports:{}};(function(o,a){(function(l){l(ct.exports)})(function(l){var
|
||
|
u=l.Pos;function h(T){var E=T.flags;return
|
||
|
E!=null?E:(T.ignoreCase?"i":"")+(T.global?"g":"")+(T.multiline?"m":"")}function
|
||
|
p(T,E){for(var c=h(T),w=c,k=0;k<e.length;k++)w.indexof(e.charat(k))==-1&&(w+=e.charat(k));return c="=w?T:new" regexp(t.source,w)}function="" s(t){return="" \\s|\\n|\n|\\w|\\d|\[\^="" .test(t.source)}function="" b(t,e,c){e="p(E,"g");for(var" w="c.line,k=c.ch,O=T.lastLine();w<=O;w++,k=0){E.lastIndex=k;var" l="T.getLine(w),j=E.exec(L);if(j)return{from:u(w,j.index),to:u(w,j.index+j[0].length),match:j}}}function" g(t,e,c){if(!s(e))return="" b(t,e,c);e="p(E,"gm");for(var" w,k="1,O=c.line,L=T.lastLine();O<=L;){for(var" j="0;j<k&&!(O">L);j++){var
|
||
|
B=T.getLine(O++);w=w==null?B:w+`
|
||
|
`+B}k=k*2,E.lastIndex=c.ch;var U=E.exec(w);if(U){var
|
||
|
Q=w.slice(0,U.index).split(`
|
||
|
`),X=U[0].split(`
|
||
|
`),D=c.line+Q.length-1,z=Q[Q.length-1].length;return{from:u(D,z),to:u(D+X.length-1,X.length==1?z+X[0].length:X[X.length-1].length),match:U}}}}function
|
||
|
x(T,E,c){for(var w,k=0;k<=T.length;){E.lastIndex=k;var
|
||
|
O=E.exec(T);if(!O)break;var
|
||
|
L=O.index+O[0].length;if(L>T.length-c)break;(!w||L>w.index+w[0].length)&&(w=O),k=O.index+1}return
|
||
|
w}function y(T,E,c){E=p(E,"g");for(var
|
||
|
w=c.line,k=c.ch,O=T.firstLine();w>=O;w--,k=-1){var
|
||
|
L=T.getLine(w),j=x(L,E,k<0?0:L.length-k);if(j)return{from:u(w,j.index),to:u(w,j.index+j[0].length),match:j}}}function
|
||
|
A(T,E,c){if(!S(E))return y(T,E,c);E=p(E,"gm");for(var
|
||
|
w,k=1,O=T.getLine(c.line).length-c.ch,L=c.line,j=T.firstLine();L>=j;){for(var
|
||
|
B=0;B<k&&l>=j;B++){var U=T.getLine(L--);w=w==null?U:U+`
|
||
|
`+w}k*=2;var Q=x(w,E,O);if(Q){var X=w.slice(0,Q.index).split(`
|
||
|
`),D=Q[0].split(`
|
||
|
`),z=L+X.length,te=X[X.length-1].length;return{from:u(z,te),to:u(z+D.length-1,D.length==1?te+D[0].length:D[D.length-1].length),match:Q}}}}var
|
||
|
m,_;String.prototype.normalize?(m=function(T){return
|
||
|
T.normalize("NFD").toLowerCase()},_=function(T){return
|
||
|
T.normalize("NFD")}):(m=function(T){return
|
||
|
T.toLowerCase()},_=function(T){return T});function
|
||
|
R(T,E,c,w){if(T.length==E.length)return c;for(var
|
||
|
k=0,O=c+Math.max(0,T.length-E.length);;){if(k==O)return k;var
|
||
|
L=k+O>>1,j=w(T.slice(0,L)).length;if(j==c)return
|
||
|
L;j>c?O=L:k=L+1}}function I(T,E,c,w){if(!E.length)return null;var
|
||
|
k=w?m:_,O=k(E).split(/\r|\n\r?/);e:for(var
|
||
|
L=c.line,j=c.ch,B=T.lastLine()+1-O.length;L<=B;L++,j=0){var
|
||
|
U=T.getLine(L).slice(j),Q=k(U);if(O.length==1){var
|
||
|
X=Q.indexOf(O[0]);if(X==-1)continue e;var
|
||
|
c=R(U,Q,X,k)+j;return{from:u(L,R(U,Q,X,k)+j),to:u(L,R(U,Q,X+O[0].length,k)+j)}}else{var
|
||
|
D=Q.length-O[0].length;if(Q.slice(D)!=O[0])continue e;for(var z=1;z<o.length-1;z++)if(k(t.getline(l+z))!=o[z])continue e;var="" te="T.getLine(L+O.length-1),ue=k(te),de=O[O.length-1];if(ue.slice(0,de.length)!=de)continue" e;return{from:u(l,r(u,q,d,k)+j),to:u(l+o.length-1,r(te,ue,de.length,k))}}}}function="" w(t,e,c,w){if(!e.length)return="" null;var="" k="w?m:_,O=k(E).split(/\r|\n\r?/);e:for(var" l="c.line,j=c.ch,B=T.firstLine()-1+O.length;L">=B;L--,j=-1){var
|
||
|
U=T.getLine(L);j>-1&&(U=U.slice(0,j));var
|
||
|
Q=k(U);if(O.length==1){var X=Q.lastIndexOf(O[0]);if(X==-1)continue
|
||
|
e;return{from:u(L,R(U,Q,X,k)),to:u(L,R(U,Q,X+O[0].length,k))}}else{var
|
||
|
D=O[O.length-1];if(Q.slice(0,D.length)!=D)continue e;for(var
|
||
|
z=1,c=L-O.length+1;z<o.length-1;z++)if(k(t.getline(c+z))!=o[z])continue e;var="" te="T.getLine(L+1-O.length),ue=k(te);if(ue.slice(ue.length-O[0].length)!=O[0])continue" e;return{from:u(l+1-o.length,r(te,ue,te.length-o[0].length,k)),to:u(l,r(u,q,d.length,k))}}}}function="" n(t,e,c,w){this.atoccurrence="!1,this.doc=T,c=c?T.clipPos(c):u(0,0),this.pos={from:c,to:c};var" k;typeof="" w="="object"?k=w.caseFold:(k=w,w=null),typeof" e="="string"?(k==null&&(k=!1),this.matches=function(O,L){return(O?W:I)(T,E,L,k)}):(E=p(E,"gm"),!w||w.multiline!==!1?this.matches=function(O,L){return(O?A:g)(T,E,L)}:this.matches=function(O,L){return(O?y:b)(T,E,L)})}N.prototype={findNext:function(){return" this.find(!1)},findprevious:function(){return="" this.find(!0)},find:function(t){for(var="" this.pos="E,this.atOccurrence=!0,this.pos.match||!0;var" c="u(T?this.doc.firstLine():this.doc.lastLine()+1,0);return" this.pos.from},to:function(){if(this.atoccurrence)return="" this.pos.to},replace:function(t,e){if(!!this.atoccurrence){var="" new="" n(this.doc,t,e,c)}),l.definedocextension("getsearchcursor",function(t,e,c){return="" n(this,t,e,c)}),l.defineextension("selectmatches",function(t,e){for(var="">0);)c.push({anchor:w.from(),head:w.to()});c.length&&this.setSelections(c,0)})})})();var
|
||
|
|
||
|
Bc={exports:{}};(function(o,a){(function(l){l(ct.exports)})(function(l){var
|
||
|
u=/MSIE
|
||
|
\d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),h=l.Pos,p={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function
|
||
|
S(m){return m&&m.bracketRegex||/[(){}[\]]/}function
|
||
|
b(m,_,R){var
|
||
|
I=m.getLineHandle(_.line),W=_.ch-1,N=R&&R.afterCursor;N==null&&(N=/(^|
|
||
|
)cm-fat-cursor($| )/.test(m.getWrapperElement().className));var
|
||
|
T=S(R),E=!N&&W>=0&&T.test(I.text.charAt(W))&&p[I.text.charAt(W)]||T.test(I.text.charAt(W+1))&&p[I.text.charAt(++W)];if(!E)return
|
||
|
null;var
|
||
|
c=E.charAt(1)==">"?1:-1;if(R&&R.strict&&c>0!=(W==_.ch))return
|
||
|
null;var
|
||
|
w=m.getTokenTypeAt(h(_.line,W+1)),k=g(m,h(_.line,W+(c>0?1:0)),c,w,R);return
|
||
|
|
||
|
k==null?null:{from:h(_.line,W),to:k&&k.pos,match:k&&k.ch==E.charAt(0),forward:c>0}}function
|
||
|
g(m,_,R,I,W){for(var
|
||
|
N=W&&W.maxScanLineLength||1e4,T=W&&W.maxScanLines||1e3,E=[],c=S(W),w=R>0?Math.min(_.line+T,m.lastLine()+1):Math.max(m.firstLine()-1,_.line-T),k=_.line;k!=w;k+=R){var
|
||
|
O=m.getLine(k);if(!!O){var
|
||
|
L=R>0?0:O.length-1,j=R>0?O.length:-1;if(!(O.length>N))for(k==_.line&&(L=_.ch-(R<0?1:0));L!=j;L+=R){var
|
||
|
B=O.charAt(L);if(c.test(B)&&(I===void
|
||
|
0||(m.getTokenTypeAt(h(k,L+1))||"")==(I||""))){var
|
||
|
U=p[B];if(U&&U.charAt(1)==">"==R>0)E.push(B);else
|
||
|
if(E.length)E.pop();else return{pos:h(k,L),ch:B}}}}}return
|
||
|
k-R==(R>0?m.lastLine():m.firstLine())?!1:null}function
|
||
|
x(m,_,R){for(var
|
||
|
I=m.state.matchBrackets.maxHighlightLineLength||1e3,W=R&&R.highlightNonMatching,N=[],T=m.listSelections(),E=0;E<t.length;e++){var c="T[E].empty()&&b(m,T[E].head,R);if(c&&(c.match||W!==!1)&&m.getLine(c.from.line).length<=I){var" w="c.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";N.push(m.markText(c.from,h(c.from.line,c.from.ch+1),{className:w})),c.to&&m.getLine(c.to.line).length<=I&&N.push(m.markText(c.to,h(c.to.line,c.to.ch+1),{className:w}))}}if(N.length){u&&m.state.focused&&m.focus();var" k="function(){m.operation(function(){for(var" o="0;O<N.length;O++)N[O].clear()})};if(_)setTimeout(k,800);else" return="" k}}function="" y(m){m.operation(function(){m.state.matchbrackets.currentlyhighlighted&&(m.state.matchbrackets.currentlyhighlighted(),m.state.matchbrackets.currentlyhighlighted="null),m.state.matchBrackets.currentlyHighlighted=x(m,!1,m.state.matchBrackets)})}function" a(m){m.state.matchbrackets&&m.state.matchbrackets.currentlyhighlighted&&(m.state.matchbrackets.currentlyhighlighted(),m.state.matchbrackets.currentlyhighlighted="null)}l.defineOption("matchBrackets",!1,function(m,_,R){R&&R!=l.Init&&(m.off("cursorActivity",y),m.off("focus",y),m.off("blur",A),A(m)),_&&(m.state.matchBrackets=typeof" _="="object"?_:{},m.on("cursorActivity",y),m.on("focus",y),m.on("blur",A))}),l.defineExtension("matchBrackets",function(){x(this,!0)}),l.defineExtension("findMatchingBracket",function(m,_,R){return(R||typeof" g(this,m,_,r,i)})})})(),function(o,a){(function(l){l(ct.exports,fa.exports,bc.exports)})(function(l){var="" u="l.commands,h=l.Pos;function" p(c,w,k){if(k<0&&w.ch="=0)return" c.clippos(h(w.line-1));var="">0&&w.ch>=O.length)return
|
||
|
c.clipPos(h(w.line+1,0));for(var
|
||
|
L="start",j,B=w.ch,U=B,Q=k<0?0:O.length,X=0;U!=Q;U+=k,X++){var
|
||
|
D=O.charAt(k<0?U-1:U),z=D!="_"&&l.isWordChar(D)?"w":"o";if(z=="w"&&D.toUpperCase()==D&&(z="W"),L=="start")z!="o"?(L="in",j=z):B=U+k;else
|
||
|
|
||
|
if(L=="in"&&j!=z){if(j=="w"&&z=="W"&&k<0&&U--,j=="W"&&z=="w"&&k>0)if(U==B+1){j="w";continue}else
|
||
|
U--;break}}return h(w.line,U)}function
|
||
|
S(c,w){c.extendSelectionsBy(function(k){return
|
||
|
c.display.shift||c.doc.extend||k.empty()?p(c.doc,k.head,w):w<0?k.from():k.to()})}u.goSubwordLeft=function(c){S(c,-1)},u.goSubwordRight=function(c){S(c,1)},u.scrollLineUp=function(c){var
|
||
|
w=c.getScrollInfo();if(!c.somethingSelected()){var
|
||
|
k=c.lineAtHeight(w.top+w.clientHeight,"local");c.getCursor().line>=k&&c.execCommand("goLineUp")}c.scrollTo(null,w.top-c.defaultTextHeight())},u.scrollLineDown=function(c){var
|
||
|
w=c.getScrollInfo();if(!c.somethingSelected()){var
|
||
|
k=c.lineAtHeight(w.top,"local")+1;c.getCursor().line<=k&&c.execCommand("goLineDown")}c.scrollTo(null,w.top+c.defaultTextHeight())},u.splitSelectionByLine=function(c){for(var
|
||
|
w=c.listSelections(),k=[],O=0;O<w.length;o++)for(var l="w[O].from(),j=w[O].to(),B=L.line;B<=j.line;++B)j.line">L.line&&B==j.line&&j.ch==0||k.push({anchor:B==L.line?L:h(B,0),head:B==j.line?j:h(B)});c.setSelections(k,0)},u.singleSelectionTop=function(c){var
|
||
|
|
||
|
w=c.listSelections()[0];c.setSelection(w.anchor,w.head,{scroll:!1})},u.selectLine=function(c){for(var
|
||
|
w=c.listSelections(),k=[],O=0;O<w.length;o++){var l="w[O];k.push({anchor:h(L.from().line,0),head:h(L.to().line+1,0)})}c.setSelections(k)};function" b(c,w){if(c.isreadonly())return="" l.pass;c.operation(function(){for(var="" k="c.listSelections().length,O=[],L=-1,j=0;j<k;j++){var" b="c.listSelections()[j].head;if(!(B.line<=L)){var" u="h(B.line+(w?0:1),0);c.replaceRange(`" `,u,null,"+insertline"),c.indentline(u.line,null,!0),o.push({head:u,anchor:u}),l="B.line+1}}c.setSelections(O)}),c.execCommand("indentAuto")}u.insertLineAfter=function(c){return" b(c,!1)},u.insertlinebefore="function(c){return" b(c,!0)};function="" g(c,w){for(var="" w="c.getCursor("from"),k=c.getCursor("to"),O=c.state.sublimeFindFullWord==c.doc.sel;if(l.cmpPos(w,k)==0){var" j="c.getRange(w,k),B=O?new" regexp("\\b"+j+"\\b"):j,u="c.getSearchCursor(B,k),Q=U.findNext();if(Q||(U=c.getSearchCursor(B,h(c.firstLine(),0)),Q=U.findNext()),!Q||y(c.listSelections(),U.from(),U.to()))return;c.addSelection(U.from(),U.to())}O&&(c.state.sublimeFindFullWord=c.doc.sel)},u.skipAndSelectNextOccurrence=function(c){var" o.anchor!="w||O.head!=k}))};function" x(c,w){for(var="" q="{anchor:B,head:U};O.push(j),O.push(Q)}c.setSelections(O)}u.addCursorToPrevLine=function(c){x(c,-1)},u.addCursorToNextLine=function(c){x(c,1)};function" y(c,w,k){for(var="" o="0;O<c.length;O++)if(l.cmpPos(c[O].from(),w)==0&&l.cmpPos(c[O].to(),k)==0)return!0;return!1}var" a="(){}[]" ;function="" m(c){for(var="" c.setselections(k),!0}u.selectscope="function(c){m(c)||c.execCommand("selectAll")},u.selectBetweenBrackets=function(c){if(!m(c))return" l.pass};function="" _(c){return="" c?="" \bpunctuation\b="" .test(c)?c:void="" 0:null}u.gotobracket="function(c){c.extendSelectionsBy(function(w){var" k.pos;var="" o&&h(o.pos.line,o.pos.ch+1)||w.head})},u.swaplineup="function(c){if(c.isReadOnly())return" l.pass;for(var="">O?k.push(U,Q):k.length&&(k[k.length-1]=Q),O=Q}c.operation(function(){for(var X=0;X<k.length;x+=2){var d="k[X],z=k[X+1],te=c.getLine(D);c.replaceRange("",h(D,0),h(D+1,0),"+swapLine"),z">c.lastLine()?c.replaceRange(`
|
||
|
`+te,h(c.lastLine()),null,"+swapLine"):c.replaceRange(te+`
|
||
|
`,h(z,0),null,"+swapLine")}c.setSelections(L),c.scrollIntoView()})},u.swapLineDown=function(c){if(c.isReadOnly())return
|
||
|
l.Pass;for(var
|
||
|
w=c.listSelections(),k=[],O=c.lastLine()+1,L=w.length-1;L>=0;L--){var
|
||
|
|
||
|
j=w[L],B=j.to().line+1,U=j.from().line;j.to().ch==0&&!j.empty()&&B--,B<o?k.push(b,u):k.length&&(k[k.length-1]=u),o=u}c.operation(function(){for(var q="k.length-2;Q">=0;Q-=2){var
|
||
|
|
||
|
X=k[Q],D=k[Q+1],z=c.getLine(X);X==c.lastLine()?c.replaceRange("",h(X-1),h(X),"+swapLine"):c.replaceRange("",h(X,0),h(X+1,0),"+swapLine"),c.replaceRange(z+`
|
||
|
`,h(D,0),null,"+swapLine")}c.scrollIntoView()})},u.toggleCommentIndented=function(c){c.toggleComment({indent:!0})},u.joinLines=function(c){for(var
|
||
|
w=c.listSelections(),k=[],O=0;O<w.length;o++){for(var l="w[O],j=L.from(),B=j.line,U=L.to().line;O<w.length-1&&w[O+1].from().line==U;)U=w[++O].to().line;k.push({start:B,end:U,anchor:!L.empty()&&j})}c.operation(function(){for(var" q="0,X=[],D=0;D<k.length;D++){for(var" z="k[D],te=z.anchor&&h(z.anchor.line-Q,z.anchor.ch),ue,de=z.start;de<=z.end;de++){var" me="de-Q;de==z.end&&(ue=h(Me,c.getLine(Me).length+1)),Me<c.lastLine()&&(c.replaceRange("" ",h(me),h(me+1,="" ^\s*="" .exec(c.getline(me+1))[0].length)),++q)}x.push({anchor:te||ue,head:ue})}c.setselections(x,0)})},u.duplicateline="function(c){c.operation(function(){for(var" w="c.listSelections().length,k=0;k<w;k++){var" o="c.listSelections()[k];O.empty()?c.replaceRange(c.getLine(O.head.line)+`" `,h(o.head.line,0)):c.replacerange(c.getrange(o.from(),o.to()),o.from())}c.scrollintoview()})};function="" r(c,w,k){if(c.isreadonly())return="" l.pass;for(var="" u="O[B];if(!U.empty()){for(var" d="[],z=0;z<L.length;z+=2){var" te="L[z],ue=L[z+1],de=h(te,0),Me=h(ue),V=c.getRange(de,Me,!1);w?V.sort(function(pe,Ne){return" pe<ne?-k:pe="=Ne?0:k}):V.sort(function(pe,Ne){var" ke="pe.toUpperCase(),je=Ne.toUpperCase();return" ke!="je&&(pe=Ke,Ne=je),pe<Ne?-k:pe==Ne?0:k}),c.replaceRange(V,de,Me),j&&D.push({anchor:de,head:h(ue+1,0)})}j&&c.setSelections(D,0)})}u.sortLines=function(c){R(c,!0,1)},u.reverseSortLines=function(c){R(c,!0,-1)},u.sortLinesInsensitive=function(c){R(c,!1,1)},u.reverseSortLinesInsensitive=function(c){R(c,!1,-1)},u.nextBookmark=function(c){var" k="w.shift(),O=k.find();if(O)return" w.push(k),c.setselection(o.from,o.to)}},u.prevbookmark="function(c){var" return="" c.setselection(k.from,k.to)}},u.togglebookmark="function(c){for(var" i(c,w){c.operation(function(){for(var="" b="k[j];B.empty()?(O.push(j),L.push("")):L.push(w(c.getRange(B.from(),B.to())))}c.replaceSelections(L,"around","case");for(var" j="O.length-1,U;j">=0;j--){var
|
||
|
B=k[O[j]];if(!(U&&l.cmpPos(B.head,U)>0)){var
|
||
|
Q=g(c,B.head);U=Q.from,c.replaceRange(w(Q.word),Q.from,Q.to)}}})}u.smartBackspace=function(c){if(c.somethingSelected())return
|
||
|
l.Pass;c.operation(function(){for(var
|
||
|
w=c.listSelections(),k=c.getOption("indentUnit"),O=w.length-1;O>=0;O--){var
|
||
|
|
||
|
L=w[O].head,j=c.getRange({line:L.line,ch:0},L),B=l.countColumn(j,null,c.getOption("tabSize")),U=c.findPosH(L,-1,"char",!1);if(j&&!/\S/.test(j)&&B%k==0){var
|
||
|
Q=new
|
||
|
h(L.line,l.findColumn(j,B-k,k));Q.ch!=L.ch&&(U=Q)}c.replaceRange("",U,L,"+delete")}})},u.delLineRight=function(c){c.operation(function(){for(var
|
||
|
|
||
|
w=c.listSelections(),k=w.length-1;k>=0;k--)c.replaceRange("",w[k].anchor,h(w[k].to().line),"+delete");c.scrollIntoView()})},u.upcaseAtCursor=function(c){I(c,function(w){return
|
||
|
|
||
|
w.toUpperCase()})},u.downcaseAtCursor=function(c){I(c,function(w){return
|
||
|
|
||
|
w.toLowerCase()})},u.setSublimeMark=function(c){c.state.sublimeMark&&c.state.sublimeMark.clear(),c.state.sublimeMark=c.setBookmark(c.getCursor())},u.selectToSublimeMark=function(c){var
|
||
|
|
||
|
w=c.state.sublimeMark&&c.state.sublimeMark.find();w&&c.setSelection(c.getCursor(),w)},u.deleteToSublimeMark=function(c){var
|
||
|
w=c.state.sublimeMark&&c.state.sublimeMark.find();if(w){var
|
||
|
k=c.getCursor(),O=w;if(l.cmpPos(k,O)>0){var
|
||
|
L=O;O=k,k=L}c.state.sublimeKilled=c.getRange(k,O),c.replaceRange("",k,O)}},u.swapWithSublimeMark=function(c){var
|
||
|
|
||
|
w=c.state.sublimeMark&&c.state.sublimeMark.find();w&&(c.state.sublimeMark.clear(),c.state.sublimeMark=c.setBookmark(c.getCursor()),c.setCursor(w))},u.sublimeYank=function(c){c.state.sublimeKilled!=null&&c.replaceSelection(c.state.sublimeKilled,null,"paste")},u.showInCenter=function(c){var
|
||
|
|
||
|
w=c.cursorCoords(null,"local");c.scrollTo(null,(w.top+w.bottom)/2-c.getScrollInfo().clientHeight/2)};function
|
||
|
W(c){var
|
||
|
w=c.getCursor("from"),k=c.getCursor("to");if(l.cmpPos(w,k)==0){var
|
||
|
O=g(c,w);if(!O.word)return;w=O.from,k=O.to}return{from:w,to:k,query:c.getRange(w,k),word:O}}function
|
||
|
N(c,w){var k=W(c);if(!!k){var
|
||
|
O=k.query,L=c.getSearchCursor(O,w?k.to:k.from);(w?L.findNext():L.findPrevious())?c.setSelection(L.from(),L.to()):(L=c.getSearchCursor(O,w?h(c.firstLine(),0):c.clipPos(h(c.lastLine()))),(w?L.findNext():L.findPrevious())?c.setSelection(L.from(),L.to()):k.word&&c.setSelection(k.from,k.to))}}u.findUnder=function(c){N(c,!0)},u.findUnderPrevious=function(c){N(c,!1)},u.findAllUnder=function(c){var
|
||
|
w=W(c);if(!!w){for(var
|
||
|
k=c.getSearchCursor(w.query),O=[],L=-1;k.findNext();)O.push({anchor:k.from(),head:k.to()}),k.from().line<=w.from.line&&k.from().ch<=w.from.ch&&L++;c.setSelections(O,L)}};var
|
||
|
|
||
|
T=l.keyMap;T.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K
|
||
|
Cmd-D":"skipAndSelectNextOccurrence","Cmd-K
|
||
|
Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K
|
||
|
Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K
|
||
|
Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K
|
||
|
Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K
|
||
|
Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K
|
||
|
Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K
|
||
|
Cmd-0":"unfoldAll","Cmd-K
|
||
|
Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},l.normalizeKeyMap(T.macSublime),T.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K
|
||
|
Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K
|
||
|
Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K
|
||
|
Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K
|
||
|
Ctrl-A":"selectToSublimeMark","Ctrl-K
|
||
|
Ctrl-W":"deleteToSublimeMark","Ctrl-K
|
||
|
Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K
|
||
|
Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K
|
||
|
Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K
|
||
|
Ctrl-0":"unfoldAll","Ctrl-K
|
||
|
Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},l.normalizeKeyMap(T.pcSublime);var
|
||
|
|
||
|
E=T.default==T.macDefault;T.sublime=E?T.macSublime:T.pcSublime})}(),function(o,a){(function(l){l(ct.exports)})(function(l){var
|
||
|
u={},h=/[^\s\u00a0]/,p=l.Pos,S=l.cmpPos;function b(y){var
|
||
|
A=y.search(h);return
|
||
|
A==-1?0:A}l.commands.toggleComment=function(y){y.toggleComment()},l.defineExtension("toggleComment",function(y){y||(y=u);for(var
|
||
|
|
||
|
A=this,m=1/0,_=this.listSelections(),R=null,I=_.length-1;I>=0;I--){var
|
||
|
|
||
|
W=_[I].from(),N=_[I].to();W.line>=m||(N.line>=m&&(N=p(m,0)),m=W.line,R==null?A.uncomment(W,N,y)?R="un":(A.lineComment(W,N,y),R="line"):R=="un"?A.uncomment(W,N,y):A.lineComment(W,N,y))}});function
|
||
|
|
||
|
g(y,A,m){return/\bstring\b/.test(y.getTokenTypeAt(p(A.line,0)))&&!/^[\'\"\`]/.test(m)}function
|
||
|
x(y,A){var m=y.getMode();return
|
||
|
m.useInnerComments===!1||!m.innerMode?m:y.getModeAt(A)}l.defineExtension("lineComment",function(y,A,m){m||(m=u);var
|
||
|
_=this,R=x(_,y),I=_.getLine(y.line);if(!(I==null||g(_,y,I))){var
|
||
|
W=m.lineComment||R.lineComment;if(!W){(m.blockCommentStart||R.blockCommentStart)&&(m.fullLines=!0,_.blockComment(y,A,m));return}var
|
||
|
|
||
|
N=Math.min(A.ch!=0||A.line==y.line?A.line+1:A.line,_.lastLine()+1),T=m.padding==null?"
|
||
|
|
||
|
":m.padding,E=m.commentBlankLines||y.line==A.line;_.operation(function(){if(m.indent){for(var
|
||
|
c=null,w=y.line;w<n;++w){var k="_.getLine(w),O=k.slice(0,b(k));(c==null||c.length">O.length)&&(c=O)}for(var w=y.line;w<n;++w){var k="_.getLine(w),L=c.length;!E&&!h.test(k)||(k.slice(0,L)!=c&&(L=b(k)),_.replaceRange(c+W+T,p(w,0),p(w,L)))}}else" for(var="" w="y.line;w<N;++w)(E||h.test(_.getLine(w)))&&_.replaceRange(W+T,p(w,0))})}}),l.defineExtension("blockComment",function(y,A,m){m||(m=u);var" _="this,R=x(_,y),I=m.blockCommentStart||R.blockCommentStart,W=m.blockCommentEnd||R.blockCommentEnd;if(!I||!W){(m.lineComment||R.lineComment)&&m.fullLines!=!1&&_.lineComment(y,A,m);return}if(!/\bcomment\b/.test(_.getTokenTypeAt(p(y.line,0)))){var" n="Math.min(A.line,_.lastLine());N!=y.line&&A.ch==0&&h.test(_.getLine(N))&&--N;var" t="m.padding==null?"" ":m.padding;y.line="">N||_.operation(function(){if(m.fullLines!=!1){var
|
||
|
|
||
|
E=h.test(_.getLine(N));_.replaceRange(T+W,p(N)),_.replaceRange(I+T,p(y.line,0));var
|
||
|
c=m.blockCommentLead||R.blockCommentLead;if(c!=null)for(var
|
||
|
w=y.line+1;w<=N;++w)(w!=N||E)&&_.replaceRange(c+T,p(w,0))}else{var
|
||
|
|
||
|
k=S(_.getCursor("to"),A)==0,O=!_.somethingSelected();_.replaceRange(W,A),k&&_.setSelection(O?A:_.getCursor("from"),A),_.replaceRange(I,y)}})}}),l.defineExtension("uncomment",function(y,A,m){m||(m=u);var
|
||
|
|
||
|
_=this,R=x(_,y),I=Math.min(A.ch!=0||A.line==y.line?A.line:A.line-1,_.lastLine()),W=Math.min(y.line,I),N=m.lineComment||R.lineComment,T=[],E=m.padding==null?"
|
||
|
":m.padding,c;e:{if(!N)break e;for(var w=W;w<=I;++w){var
|
||
|
k=_.getLine(w),O=k.indexOf(N);if(O>-1&&!/comment/.test(_.getTokenTypeAt(p(w,O+1)))&&(O=-1),O==-1&&h.test(k)||O>-1&&h.test(k.slice(0,O)))break
|
||
|
e;T.push(k)}if(_.operation(function(){for(var V=W;V<=I;++V){var
|
||
|
pe=T[V-W],Ne=pe.indexOf(N),Ke=Ne+N.length;Ne<0||(pe.slice(Ke,Ke+E.length)==E&&(Ke+=E.length),c=!0,_.replaceRange("",p(V,Ne),p(V,Ke)))}}),c)return!0}var
|
||
|
|
||
|
L=m.blockCommentStart||R.blockCommentStart,j=m.blockCommentEnd||R.blockCommentEnd;if(!L||!j)return!1;var
|
||
|
|
||
|
B=m.blockCommentLead||R.blockCommentLead,U=_.getLine(W),Q=U.indexOf(L);if(Q==-1)return!1;var
|
||
|
|
||
|
X=I==W?U:_.getLine(I),D=X.indexOf(j,I==W?Q+L.length:0),z=p(W,Q+1),te=p(I,D+1);if(D==-1||!/comment/.test(_.getTokenTypeAt(z))||!/comment/.test(_.getTokenTypeAt(te))||_.getRange(z,te,`
|
||
|
`).indexOf(j)>-1)return!1;var
|
||
|
|
||
|
ue=U.lastIndexOf(L,y.ch),de=ue==-1?-1:U.slice(0,y.ch).indexOf(j,ue+L.length);if(ue!=-1&&de!=-1&&de+j.length!=y.ch)return!1;de=X.indexOf(j,A.ch);var
|
||
|
Me=X.slice(A.ch).lastIndexOf(L,de-A.ch);return
|
||
|
ue=de==-1||Me==-1?-1:A.ch+Me,de!=-1&&ue!=-1&&ue!=A.ch?!1:(_.operation(function(){_.replaceRange("",p(I,D-(E&&X.slice(D-E.length,D)==E?E.length:0)),p(I,D+j.length));var
|
||
|
|
||
|
V=Q+L.length;if(E&&U.slice(V,V+E.length)==E&&(V+=E.length),_.replaceRange("",p(W,Q),p(W,V)),B)for(var
|
||
|
pe=W+1;pe<=I;++pe){var
|
||
|
Ne=_.getLine(pe),Ke=Ne.indexOf(B);if(!(Ke==-1||h.test(Ne.slice(0,Ke)))){var
|
||
|
|
||
|
je=Ke+B.length;E&&Ne.slice(je,je+E.length)==E&&(je+=E.length),_.replaceRange("",p(pe,Ke),p(pe,je))}}}),!0)})})}(),function(o,a){(function(l){l(ct.exports)})(function(l){var
|
||
|
|
||
|
u={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},h=l.Pos;l.defineOption("autoCloseBrackets",!1,function(N,T,E){E&&E!=l.Init&&(N.removeKeyMap(S),N.state.closeBrackets=null),T&&(b(p(T,"pairs")),N.state.closeBrackets=T,N.addKeyMap(S))});function
|
||
|
p(N,T){return T=="pairs"&&typeof N=="string"?N:typeof
|
||
|
N=="object"&&N[T]!=null?N[T]:u[T]}var
|
||
|
S={Backspace:y,Enter:A};function b(N){for(var T=0;T<n.length;t++){var e="N.charAt(T),c="'"+E+"'";S[c]||(S[c]=g(E))}}b(u.pairs+"`");function" g(n){return="" function(t){return="" r(t,n)}}function="" x(n){var="" t="N.state.closeBrackets;if(!T||T.override)return" t;var="" e.closebrackets||t}function="" y(n){var="" l.pass;for(var="" l.pass;var="" k="I(N,c[w].head);if(!k||E.indexOf(k)%2!=0)return" l.pass}for(var="" w="c.length-1;w">=0;w--){var
|
||
|
|
||
|
O=c[w].head;N.replaceRange("",h(O.line,O.ch-1),h(O.line,O.ch+1),"+delete")}}function
|
||
|
A(N){var
|
||
|
T=x(N),E=T&&p(T,"explode");if(!E||N.getOption("disableInput"))return
|
||
|
l.Pass;for(var c=N.listSelections(),w=0;w<c.length;w++){if(!c[w].empty())return l.pass;var="" k="I(N,c[w].head);if(!k||E.indexOf(k)%2!=0)return" l.pass}n.operation(function(){var="" o="N.lineSeparator()||`" `;n.replaceselection(o+o,null),m(n,-1),c="N.listSelections();for(var" l="0;L<c.length;L++){var" j="c[L].head.line;N.indentLine(j,null,!0),N.indentLine(j+1,null,!0)}})}function" m(n,t){for(var="" e="[],c=N.listSelections(),w=0,k=0;k<c.length;k++){var">0?{line:O.head.line,ch:O.head.ch+T}:{line:O.head.line-1};E.push({anchor:L,head:L})}N.setSelections(E,w)}function
|
||
|
_(N){var T=l.cmpPos(N.anchor,N.head)>0;return{anchor:new
|
||
|
h(N.anchor.line,N.anchor.ch+(T?-1:1)),head:new
|
||
|
h(N.head.line,N.head.ch+(T?1:-1))}}function R(N,T){var
|
||
|
E=x(N);if(!E||N.getOption("disableInput"))return l.Pass;var
|
||
|
c=p(E,"pairs"),w=c.indexOf(T);if(w==-1)return l.Pass;for(var
|
||
|
k=p(E,"closeBefore"),O=p(E,"triples"),L=c.charAt(w+1)==T,j=N.listSelections(),B=w%2==0,U,Q=0;Q<j.length;q++){var x="j[Q],D=X.head,z,te=N.getRange(D,h(D.line,D.ch+1));if(B&&!X.empty())z="surround";else" if((l||!b)&&te="=T)L&&W(N,D)?z="both":O.indexOf(T)">=0&&N.getRange(D,h(D.line,D.ch+3))==T+T+T?z="skipThree":z="skip";else
|
||
|
|
||
|
if(L&&D.ch>1&&O.indexOf(T)>=0&&N.getRange(h(D.line,D.ch-2),D)==T+T){if(D.ch>2&&/\bstring/.test(N.getTokenTypeAt(h(D.line,D.ch-2))))return
|
||
|
l.Pass;z="addFour"}else if(L){var ue=D.ch==0?"
|
||
|
":N.getRange(h(D.line,D.ch-1),D);if(!l.isWordChar(te)&&ue!=T&&!l.isWordChar(ue))z="both";else
|
||
|
return l.Pass}else
|
||
|
if(B&&(te.length===0||/\s/.test(te)||k.indexOf(te)>-1))z="both";else
|
||
|
return l.Pass;if(!U)U=z;else if(U!=z)return l.Pass}var
|
||
|
de=w%2?c.charAt(w-1):T,Me=w%2?T:c.charAt(w+1);N.operation(function(){if(U=="skip")m(N,1);else
|
||
|
if(U=="skipThree")m(N,3);else if(U=="surround"){for(var
|
||
|
V=N.getSelections(),pe=0;pe<v.length;pe++)v[pe]=de+v[pe]+me;n.replaceselections(v,"around"),v=n.listselections().slice();for(var pe="0;pe<V.length;pe++)V[pe]=_(V[pe]);N.setSelections(V)}else" u="="both"?(N.replaceSelection(de+Me,null),N.triggerElectric(de+Me),m(N,-1)):U=="addFour"&&(N.replaceSelection(de+de+de+de,"before"),m(N,1))})}function" i(n,t){var="" e="N.getRange(h(T.line,T.ch-1),h(T.line,T.ch+1));return" e.length="=2?E:null}function" w(n,t){var="" hc="{exports:{}};(function(o,a){(function(l){l(ct.exports)})(function(l){var" h(t,e){return="" t.line-e.line||t.ch-e.ch}var="" p="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD" ,s="p+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",b=new" regexp("<(="" ?)(["+p+"]["+s+"]*)","g");function="" g(t,e,c,w){this.line="E,this.ch=c,this.cm=T,this.text=T.getLine(E),this.min=w?Math.max(w.from,T.firstLine()):T.firstLine(),this.max=w?Math.min(w.to-1,T.lastLine()):T.lastLine()}function" x(t,e){var="" c="T.cm.getTokenTypeAt(u(T.line,E));return" c&&="" \btag\b="" .test(c)}function="" y(t){if(!(t.line="">=T.max))return
|
||
|
T.ch=0,T.text=T.cm.getLine(++T.line),!0}function
|
||
|
A(T){if(!(T.line<=T.min))return
|
||
|
T.text=T.cm.getLine(--T.line),T.ch=T.text.length,!0}function
|
||
|
m(T){for(;;){var
|
||
|
E=T.text.indexOf(">",T.ch);if(E==-1){if(y(T))continue;return}if(!x(T,E+1)){T.ch=E+1;continue}var
|
||
|
|
||
|
c=T.text.lastIndexOf("/",E),w=c>-1&&!/\S/.test(T.text.slice(c+1,E));return
|
||
|
T.ch=E+1,w?"selfClose":"regular"}}function _(T){for(;;){var
|
||
|
E=T.ch?T.text.lastIndexOf("<",T.ch-1):-1;if(E==-1){if(A(T))continue;return}if(!x(T,E+1)){T.ch=E;continue}b.lastIndex=E,T.ch=E;var
|
||
|
c=b.exec(T.text);if(c&&c.index==E)return c}}function
|
||
|
R(T){for(;;){b.lastIndex=T.ch;var
|
||
|
E=b.exec(T.text);if(!E){if(y(T))continue;return}if(!x(T,E.index+1)){T.ch=E.index+1;continue}return
|
||
|
T.ch=E.index+E[0].length,E}}function I(T){for(;;){var
|
||
|
E=T.ch?T.text.lastIndexOf(">",T.ch-1):-1;if(E==-1){if(A(T))continue;return}if(!x(T,E+1)){T.ch=E;continue}var
|
||
|
|
||
|
c=T.text.lastIndexOf("/",E),w=c>-1&&!/\S/.test(T.text.slice(c+1,E));return
|
||
|
T.ch=E+1,w?"selfClose":"regular"}}function W(T,E){for(var c=[];;){var
|
||
|
w=R(T),k,O=T.line,L=T.ch-(w?w[0].length:0);if(!w||!(k=m(T)))return;if(k!="selfClose")if(w[1]){for(var
|
||
|
|
||
|
j=c.length-1;j>=0;--j)if(c[j]==w[2]){c.length=j;break}if(j<0&&(!E||E==w[2]))return{tag:w[2],from:u(O,L),to:u(T.line,T.ch)}}else
|
||
|
c.push(w[2])}}function N(T,E){for(var c=[];;){var
|
||
|
w=I(T);if(!w)return;if(w=="selfClose"){_(T);continue}var
|
||
|
k=T.line,O=T.ch,L=_(T);if(!L)return;if(L[1])c.push(L[2]);else{for(var
|
||
|
j=c.length-1;j>=0;--j)if(c[j]==L[2]){c.length=j;break}if(j<0&&(!E||E==L[2]))return{tag:L[2],from:u(T.line,T.ch),to:u(k,O)}}}}l.registerHelper("fold","xml",function(T,E){for(var
|
||
|
c=new g(T,E.line,0);;){var w=R(c);if(!w||c.line!=E.line)return;var
|
||
|
k=m(c);if(!k)return;if(!w[1]&&k!="selfClose"){var
|
||
|
O=u(c.line,c.ch),L=W(c,w[2]);return
|
||
|
L&&h(L.from,O)>0?{from:O,to:L.from}:null}}}),l.findMatchingTag=function(T,E,c){var
|
||
|
w=new
|
||
|
g(T,E.line,E.ch,c);if(!(w.text.indexOf(">")==-1&&w.text.indexOf("<")==-1)){var
|
||
|
|
||
|
k=m(w),O=k&&u(w.line,w.ch),L=k&&_(w);if(!(!k||!L||h(w,E)>0)){var
|
||
|
j={from:u(w.line,w.ch),to:O,tag:L[2]};return
|
||
|
k=="selfClose"?{open:j,close:null,at:"open"}:L[1]?{open:N(w,L[2]),close:j,at:"close"}:(w=new
|
||
|
|
||
|
g(T,O.line,O.ch,c),{open:j,close:W(w,L[2]),at:"open"})}}},l.findEnclosingTag=function(T,E,c,w){for(var
|
||
|
k=new g(T,E.line,E.ch,c);;){var O=N(k,w);if(!O)break;var L=new
|
||
|
g(T,E.line,E.ch,c),j=W(L,O.tag);if(j)return{open:O,close:j}}},l.scanForClosingTag=function(T,E,c,w){var
|
||
|
k=new g(T,E.line,E.ch,w?{from:0,to:w}:null);return
|
||
|
W(k,c)}})})(),function(o,a){(function(l){l(ct.exports,Hc.exports)})(function(l){l.defineOption("autoCloseTags",!1,function(y,A,m){if(m!=l.Init&&m&&y.removeKeyMap("autoCloseTags"),!!A){var
|
||
|
_={name:"autoCloseTags"};(typeof
|
||
|
A!="object"||A.whenClosing!==!1)&&(_["'/'"]=function(R){return
|
||
|
b(R)}),(typeof
|
||
|
A!="object"||A.whenOpening!==!1)&&(_["'>'"]=function(R){return
|
||
|
p(R)}),y.addKeyMap(_)}});var
|
||
|
u=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],h=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function
|
||
|
p(y){if(y.getOption("disableInput"))return l.Pass;for(var
|
||
|
A=y.listSelections(),m=[],_=y.getOption("autoCloseTags"),R=0;R<a.length;r++){if(!a[r].empty())return l.pass;var="" i="A[R].head,W=y.getTokenAt(I),N=l.innerMode(y.getMode(),W.state),T=N.state,E=N.mode.xmlCurrentTag&&N.mode.xmlCurrentTag(T),c=E&&E.name;if(!c)return" w="N.mode.configuration=="html",k=typeof" _="="object"&&_.dontCloseTags||w&&u,O=typeof">I.ch&&(c=c.slice(0,c.length-W.end+I.ch));var
|
||
|
|
||
|
L=c.toLowerCase();if(!c||W.type=="string"&&(W.end!=I.ch||!/[\"\']/.test(W.string.charAt(W.string.length-1))||W.string.length==1)||W.type=="tag"&&E.close||W.string.indexOf("/")==I.ch-W.start-1||k&&g(k,L)>-1||x(y,N.mode.xmlCurrentContext&&N.mode.xmlCurrentContext(T)||[],c,I,!0))return
|
||
|
l.Pass;var j=typeof
|
||
|
_=="object"&&_.emptyTags;if(j&&g(j,c)>-1){m[R]={text:"/>",newPos:l.Pos(I.line,I.ch+2)};continue}var
|
||
|
B=O&&g(O,L)>-1;m[R]={indent:B,text:">"+(B?`
|
||
|
|
||
|
`:"")+"<!--"+c+"-->",newPos:B?l.Pos(I.line+1,0):l.Pos(I.line,I.ch+1)}}for(var
|
||
|
U=typeof
|
||
|
_=="object"&&_.dontIndentOnAutoClose,R=A.length-1;R>=0;R--){var
|
||
|
Q=m[R];y.replaceRange(Q.text,A[R].head,A[R].anchor,"+insert");var
|
||
|
X=y.listSelections().slice(0);X[R]={head:Q.newPos,anchor:Q.newPos},y.setSelections(X),!U&&Q.indent&&(y.indentLine(Q.newPos.line,null,!0),y.indentLine(Q.newPos.line+1,null,!0))}}function
|
||
|
S(y,A){for(var m=y.listSelections(),_=[],R=A?"/":"<!--",I=y.getOption("autoCloseTags"),W=typeof I=="object"&&I.dontIndentOnSlash,N=0;N<m.length;N++){if(!m[N].empty())return l.Pass;var T=m[N].head,E=y.getTokenAt(T),c=l.innerMode(y.getMode(),E.state),w=c.state;if(A&&(E.type=="string"||E.string.charAt(0)!="<"||E.start!=T.ch-1))return l.Pass;var k,O=c.mode.name!="xml"&&y.getMode().name=="htmlmixed";if(O&&c.mode.name=="javascript")k=R+"script";else if(O&&c.mode.name=="css")k=R+"style";else{var L=c.mode.xmlCurrentContext&&c.mode.xmlCurrentContext(w),j=L.length?L[L.length-1]:"";if(!L||L.length&&x(y,L,j,T))return l.Pass;k=R+j}y.getLine(T.line).charAt(E.end)!="-->"&&(k+=">"),_[N]=k}if(y.replaceSelections(_),m=y.listSelections(),!W)for(var N=0;N<m.length;n++)(n==m.length-1||m[n].head.line<m[n+1].head.line)&&y.indentline(m[n].head.line)}function b(y){return="" y.getoption("disableinput")?l.pass:s(y,!0)}l.commands.closetag="function(y){return" s(y)};function="" g(y,a){if(y.indexof)return="" y.indexof(a);for(var="" m="0,_=y.length;m<_;++m)if(y[m]==A)return" m;return-1}function="" x(y,a,m,_,r){if(!l.scanforclosingtag)return!1;var="" i="Math.min(y.lastLine()+1,_.line+500),W=l.scanForClosingTag(y,_,null,I);if(!W||W.tag!=m)return!1;for(var" n="R?1:0,T=A.length-1;T">=0&&A[T]==m;T--)++N;_=W.to;for(var T=1;T<n;t++){var e="l.scanForClosingTag(y,_,null,I);if(!E||E.tag!=m)return!1;_=E.to}return!0}})}(),function(o,a){(function(l){l(ct.exports)})(function(l){var" u="CodeMirror-activeline" ,h="CodeMirror-activeline-background" ,p="CodeMirror-activeline-gutter" ;l.defineoption("styleactiveline",!1,function(y,a,m){var="" _="m==l.Init?!1:m;A!=_&&(_&&(y.off("beforeSelectionChange",x),S(y),delete" y.state.activelines),a&&(y.state.activelines="[],g(y,y.listSelections()),y.on("beforeSelectionChange",x)))});function" s(y){for(var="" a="0;A<y.state.activeLines.length;A++)y.removeLineClass(y.state.activeLines[A],"wrap",u),y.removeLineClass(y.state.activeLines[A],"background",h),y.removeLineClass(y.state.activeLines[A],"gutter",p)}function" b(y,a){if(y.length!="A.length)return!1;for(var" m="0;m<y.length;m++)if(y[m]!=A[m])return!1;return!0}function" g(y,a){for(var="" r="A[_],I=y.getOption("styleActiveLine");if(!(typeof" i="="object"&&I.nonEmpty?R.anchor.line!=R.head.line:!R.empty())){var" w="y.getLineHandleVisualStart(R.head.line);m[m.length-1]!=W&&m.push(W)}}b(y.state.activeLines,m)||y.operation(function(){S(y);for(var" n="0;N<m.length;N++)y.addLineClass(m[N],"wrap",u),y.addLineClass(m[N],"background",h),y.addLineClass(m[N],"gutter",p);y.state.activeLines=m})}function" x(y,a){g(y,a.ranges)}})}();var="" wc="{exports:{}};(function(o,a){(function(l){l(ct.exports)})(function(l){function" u(p,s,b){var="" g="p.getWrapperElement(),x;return" x="g.appendChild(document.createElement("div")),b?x.className="CodeMirror-dialog" codemirror-dialog-bottom":x.classname="CodeMirror-dialog CodeMirror-dialog-top" ,typeof="" s="="string"?x.innerHTML=S:x.appendChild(S),l.addClass(g,"dialog-opened"),x}function" h(p,s){p.state.currentnotificationclose&&p.state.currentnotificationclose(),p.state.currentnotificationclose="S}l.defineExtension("openDialog",function(p,S,b){b||(b={}),h(this,null);var" a(r){if(typeof="" m?(m.focus(),b.value&&(m.value="b.value,b.selectValueOnOpen!==!1&&m.select()),b.onInput&&l.on(m,"input",function(R){b.onInput(R,m.value,A)}),b.onKeyUp&&l.on(m,"keyup",function(R){b.onKeyUp(R,m.value,A)}),l.on(m,"keydown",function(R){b&&b.onKeyDown&&b.onKeyDown(R,m.value,A)||((R.keyCode==27||b.closeOnEnter!==!1&&R.keyCode==13)&&(m.blur(),l.e_stop(R),A()),R.keyCode==13&&S(m.value,R))}),b.closeOnBlur!==!1&&l.on(g,"focusout",function(R){R.relatedTarget!==null&&A()})):(_=g.getElementsByTagName("button")[0])&&(l.on(_,"click",fu
|
||
|
|
||
|
de=l.keyName(te),Me=L.getOption("extraKeys"),V=Me&&Me[de]||l.keyMap[L.getOption("keyMap")][de];V=="findNext"||V=="findPrev"||V=="findPersistentNext"||V=="findPersistentPrev"?(l.e_stop(te),_(L,p(L),ue),L.execCommand(V)):(V=="find"||V=="findPersistent")&&(l.e_stop(te),z(ue,te))}),U&&X&&(_(L,Q,X),I(L,j))}else
|
||
|
x(L,T(L),"Search
|
||
|
for:",X,function(te){te&&!Q.query&&L.operation(function(){_(L,Q,te),Q.posFrom=Q.posTo=L.getCursor(),I(L,j)})})}function
|
||
|
I(L,j,B){L.operation(function(){var
|
||
|
U=p(L),Q=b(L,U.query,j?U.posFrom:U.posTo);!Q.find(j)&&(Q=b(L,U.query,j?l.Pos(L.lastLine()):l.Pos(L.firstLine(),0)),!Q.find(j))||(L.setSelection(Q.from(),Q.to()),L.scrollIntoView({from:Q.from(),to:Q.to()},20),U.posFrom=Q.from(),U.posTo=Q.to(),B&&B(Q.from(),Q.to()))})}function
|
||
|
W(L){L.operation(function(){var
|
||
|
j=p(L);j.lastQuery=j.query,!!j.query&&(j.query=j.queryText=null,L.removeOverlay(j.overlay),j.annotate&&(j.annotate.clear(),j.annotate=null))})}function
|
||
|
N(L,j){var
|
||
|
B=L?document.createElement(L):document.createDocumentFragment();for(var U
|
||
|
in j)B[U]=j[U];for(var Q=2;Q<arguments.length;q++){var x="arguments[Q];B.appendChild(typeof" b}function="" t(l){return="" n("",null,n("span",{classname:"codemirror-search-label"},l.phrase("search:")),"="" ",n("input",{type:"text",style:"width:="" 10em",classname:"codemirror-search-field"}),"="" ",n("span",{style:"color:="" #888",classname:"codemirror-search-hint"},l.phrase("(use="" re="" syntax="" for="" regexp="" search)")))}function="" e(l){return="" n("",null,"="" c(l){return="" n("",null,n("span",{classname:"codemirror-search-label"},l.phrase("with:")),"="" 10em",classname:"codemirror-search-field"}))}function="" w(l){return="" n("",null,n("span",{classname:"codemirror-search-label"},l.phrase("replace?")),"="" ",n("button",{},l.phrase("yes")),"="" ",n("button",{},l.phrase("no")),"="" ",n("button",{},l.phrase("all")),"="" ",n("button",{},l.phrase("stop")))}function="" k(l,j,b){l.operation(function(){for(var="" u="b(L,j);U.findNext();)if(typeof" j!="string" ){var="" q="L.getRange(U.from(),U.to()).match(j);U.replace(B.replace(/\$(\d)/g,function(X,D){return" q[d]}))}else="" u.replace(b)})}function="" o(l,j){if(!l.getoption("readonly")){var="" b="L.getSelection()||p(L).lastQuery,U=j?L.phrase("Replace" all:"):l.phrase("replace:"),q="N("",null,N("span",{className:"CodeMirror-search-label"},U),E(L));x(L,Q,U,B,function(X){!X||(X=m(X),x(L,c(L),L.phrase("Replace" with:"),"",function(d){if(d="A(D),j)k(L,X,D);else{W(L);var" z="b(L,X,L.getCursor("from")),te=function(){var" de="z.from(),Me;!(Me=z.findNext())&&(z=b(L,X),!(Me=z.findNext())||de&&z.from().line==de.line&&z.from().ch==de.ch)||(L.setSelection(z.from(),z.to()),L.scrollIntoView({from:z.from(),to:z.to()}),y(L,w(L),L.phrase("Replace?"),[function(){ue(Me)},te,function(){k(L,X,D)}]))},ue=function(de){z.replace(typeof" de[v]})),te()};te()}}))})}}l.commands.find="function(L){W(L),R(L)},l.commands.findPersistent=function(L){W(L),R(L,!1,!0)},l.commands.findPersistentNext=function(L){R(L,!1,!0,!0)},l.commands.findPersistentPrev=function(L){R(L,!0,!0,!0)},l.commands.findNext=R,l.commands.findPrev=function(L){R(L,!0)},l.commands.clearSearch=W,l.commands.replace=O,l.commands.replaceAll=function(L){O(L,!0)}})}();var" uc="{exports:{}};(function(o,a){(function(l){l(ct.exports)})(function(l){function" u(b,g,x,y){if(x&&x.call){var="" a="x;x=null}else" var="" g="="number"&&(g=l.Pos(g,0));var" m="S(b,x,"minFoldSize");function" _(n){var="" t="A(b,g);if(!T||T.to.line-T.from.line<m)return" null;if(y="=="fold")return" t;for(var="" e="b.findMarksAt(T.from),c=0;c<E.length;++c)if(E[c].__isFold){if(!N)return" null;t.cleared="!0,E[c].clear()}return" t}var="" r="_(!0);if(S(b,x,"scanUp"))for(;!R&&g.line">b.firstLine();)g=l.Pos(g.line-1,0),R=_(!1);if(!(!R||R.cleared||y==="unfold")){var
|
||
|
|
||
|
I=h(b,x,R);l.on(I,"mousedown",function(N){W.clear(),l.e_preventDefault(N)});var
|
||
|
|
||
|
W=b.markText(R.from,R.to,{replacedWith:I,clearOnEnter:S(b,x,"clearOnEnter"),__isFold:!0});W.on("clear",function(N,T){l.signal(b,"unfold",b,N,T)}),l.signal(b,"fold",b,R.from,R.to)}}function
|
||
|
h(b,g,x){var y=S(b,g,"widget");if(typeof
|
||
|
y=="function"&&(y=y(x.from,x.to)),typeof y=="string"){var
|
||
|
A=document.createTextNode(y);y=document.createElement("span"),y.appendChild(A),y.className="CodeMirror-foldmarker"}else
|
||
|
y&&(y=y.cloneNode(!0));return
|
||
|
y}l.newFoldFunction=function(b,g){return
|
||
|
function(x,y){u(x,y,{rangeFinder:b,widget:g})}},l.defineExtension("foldCode",function(b,g,x){u(this,b,g,x)}),l.defineExtension("isFolded",function(b){for(var
|
||
|
g=this.findMarksAt(b),x=0;x<g.length;++x)if(g[x].__isfold)return!0}),l.commands.togglefold=function(b){b.foldcode(b.getcursor())},l.commands.fold=function(b){b.foldcode(b.getcursor(),null,"fold")},l.commands.unfold=function(b){b.foldcode(b.getcursor(),{scanup:!1},"unfold")},l.commands.foldall=function(b){b.operation(function(){for(var g="b.firstLine(),x=b.lastLine();g<=x;g++)b.foldCode(l.Pos(g,0),{scanUp:!1},"fold")})},l.commands.unfoldAll=function(b){b.operation(function(){for(var" b="Array.prototype.slice.call(arguments,0);return" function(g,x){for(var="" y="0;y<b.length;++y){var" a="b[y](g,x);if(A)return" a}}}),l.registerhelper("fold","auto",function(b,g){for(var="" x="b.getHelpers(g,"fold"),y=0;y<x.length;y++){var" a}});var="" p="{rangeFinder:l.fold.auto,widget:"\u2194",minFoldSize:0,scanUp:!1,clearOnEnter:!0};l.defineOption("foldOptions",null);function" s(b,g,x){if(g&&g[x]!="=void" 0)return="" g[x];var="" y&&y[x]!="=void" 0?y[x]:p[x]}l.defineextension("foldoption",function(b,g){return="" s(this,b,g)})})})(),function(o,a){(function(l){l(ct.exports,uc.exports)})(function(l){l.defineoption("foldgutter",!1,function(i,w,n){n&&n!="l.Init&&(I.clearGutter(I.state.foldGutter.options.gutter),I.state.foldGutter=null,I.off("gutterClick",A),I.off("changes",m),I.off("viewportChange",_),I.off("fold",R),I.off("unfold",R),I.off("swapDoc",m)),W&&(I.state.foldGutter=new" h(p(w)),y(i),i.on("gutterclick",a),i.on("changes",m),i.on("viewportchange",_),i.on("fold",r),i.on("unfold",r),i.on("swapdoc",m))});var="" u="l.Pos;function" h(i){this.options="I,this.from=this.to=0}function" p(i){return="" i="==!0&&(I={}),I.gutter==null&&(I.gutter="CodeMirror-foldgutter"),I.indicatorOpen==null&&(I.indicatorOpen="CodeMirror-foldgutter-open"),I.indicatorFolded==null&&(I.indicatorFolded="CodeMirror-foldgutter-folded"),I}function" s(i,w){for(var="" n="I.findMarks(u(W,0),u(W+1,0)),T=0;T<N.length;++T)if(N[T].__isFold){var" e="N[T].find(-1);if(E&&E.line===W)return" n[t]}}function="" b(i){if(typeof="" w="document.createElement("div");return" w.classname="I+"" codemirror-guttermarker-subtle",w}else="" return="" i.clonenode(!0)}function="" g(i,w,n){var="" t="I.state.foldGutter.options,E=W-1,c=I.foldOption(T,"minFoldSize"),w=I.foldOption(T,"rangeFinder"),k=typeof" t.indicatorfolded="="string"&&x(T.indicatorFolded),O=typeof" t.indicatoropen="="string"&&x(T.indicatorOpen);I.eachLine(W,N,function(L){++E;var" j="null,B=L.gutterMarkers;if(B&&(B=B[T.gutter]),S(I,E)){if(k&&B&&k.test(B.className))return;j=b(T.indicatorFolded)}else{var">=c){if(O&&B&&O.test(B.className))return;j=b(T.indicatorOpen)}}!j&&!B||I.setGutterMarker(L,T.gutter,j)})}function
|
||
|
x(I){return new RegExp("(^|\\s)"+I+"(?:$|\\s)\\s*")}function y(I){var
|
||
|
W=I.getViewport(),N=I.state.foldGutter;!N||(I.operation(function(){g(I,W.from,W.to)}),N.from=W.from,N.to=W.to)}function
|
||
|
A(I,W,N){var T=I.state.foldGutter;if(!!T){var
|
||
|
E=T.options;if(N==E.gutter){var
|
||
|
c=S(I,W);c?c.clear():I.foldCode(u(W,0),E)}}}function m(I){var
|
||
|
W=I.state.foldGutter;if(!!W){var
|
||
|
N=W.options;W.from=W.to=0,clearTimeout(W.changeUpdate),W.changeUpdate=setTimeout(function(){y(I)},N.foldOnChangeTimeSpan||600)}}function
|
||
|
_(I){var W=I.state.foldGutter;if(!!W){var
|
||
|
N=W.options;clearTimeout(W.changeUpdate),W.changeUpdate=setTimeout(function(){var
|
||
|
|
||
|
T=I.getViewport();W.from==W.to||T.from-W.to>20||W.from-T.to>20?y(I):I.operation(function(){T.from<w.from&&(g(i,t.from,w.from),w.from=t.from),t.to>W.to&&(g(I,W.to,T.to),W.to=T.to)})},N.updateViewportTimeSpan||400)}}function
|
||
|
R(I,W){var N=I.state.foldGutter;if(!!N){var
|
||
|
T=W.line;T>=N.from&&T<n.to&&g(i,t,t+1)}}})}(),function(o,a){(function(l){l(ct.exports)})(function(l){l.registerhelper("fold","brace",function(u,h){var p="h.line,S=u.getLine(p),b;function" g(o){for(var="" l="h.ch,j=0;;){var" b="L<=0?-1:S.lastIndexOf(O,L-1);if(B==-1){if(j==1)break;j=1,L=S.length;continue}if(j==1&&B<h.ch)break;if(b=u.getTokenTypeAt(l.Pos(p,B+1)),!/^(comment|string)/.test(b))return" b+1;l="B-1}}var" x="g("{"),y=g("["),A,m,_;if(x!=null&&(y==null||y">x))_=x,A="{",m="}";else
|
||
|
if(y!=null)_=y,A="[",m="]";else return;var
|
||
|
R=1,I=u.lastLine(),W,N;e:for(var T=p;T<=I;++T)for(var
|
||
|
E=u.getLine(T),c=T==p?_:0;;){var
|
||
|
w=E.indexOf(A,c),k=E.indexOf(m,c);if(w<0&&(w=E.length),k<0&&(k=E.length),c=Math.min(w,k),c==E.length)break;if(u.getTokenTypeAt(l.Pos(T,c+1))==b){if(c==w)++R;else
|
||
|
if(!--R){W=T,N=c;break
|
||
|
e}}++c}if(!(W==null||p==W))return{from:l.Pos(p,_),to:l.Pos(W,N)}}),l.registerHelper("fold","import",function(u,h){function
|
||
|
p(A){if(A<u.firstline()||a>u.lastLine())return null;var
|
||
|
m=u.getTokenAt(l.Pos(A,1));if(/\S/.test(m.string)||(m=u.getTokenAt(l.Pos(A,m.end+1))),m.type!="keyword"||m.string!="import")return
|
||
|
null;for(var _=A,R=Math.min(u.lastLine(),A+10);_<=R;++_){var
|
||
|
I=u.getLine(_),W=I.indexOf(";");if(W!=-1)return{startCh:m.end,end:l.Pos(_,W)}}}var
|
||
|
|
||
|
S=h.line,b=p(S),g;if(!b||p(S-1)||(g=p(S-2))&&g.end.line==S-1)return
|
||
|
null;for(var x=b.end;;){var
|
||
|
y=p(x.line+1);if(y==null)break;x=y.end}return{from:u.clipPos(l.Pos(S,b.startCh+1)),to:x}}),l.registerHelper("fold","include",function(u,h){function
|
||
|
p(y){if(y<u.firstline()||y>u.lastLine())return null;var
|
||
|
A=u.getTokenAt(l.Pos(y,1));if(/\S/.test(A.string)||(A=u.getTokenAt(l.Pos(y,A.end+1))),A.type=="meta"&&A.string.slice(0,8)=="#include")return
|
||
|
A.start+8}var S=h.line,b=p(S);if(b==null||p(S-1)!=null)return
|
||
|
null;for(var g=S;;){var
|
||
|
x=p(g+1);if(x==null)break;++g}return{from:l.Pos(S,b+1),to:u.clipPos(l.Pos(g))}})})}(),function(o,a){(function(l){l(ct.exports)})(function(l){l.registerGlobalHelper("fold","comment",function(u){return
|
||
|
u.blockCommentStart&&u.blockCommentEnd},function(u,h){var
|
||
|
p=u.getModeAt(h),S=p.blockCommentStart,b=p.blockCommentEnd;if(!S||!b)return;for(var
|
||
|
g=h.line,x=u.getLine(g),y,A=h.ch,m=0;;){var
|
||
|
_=A<=0?-1:x.lastIndexOf(S,A-1);if(_==-1){if(m==1)return;m=1,A=x.length;continue}if(m==1&&_<h.ch)return;if( comment="" .test(u.gettokentypeat(l.pos(g,_+1)))&&(_="=0||x.slice(_-b.length,_)==b||!/comment/.test(u.getTokenTypeAt(l.Pos(g,_))))){y=_+S.length;break}A=_-1}var" r="1,I=u.lastLine(),W,N;e:for(var" t="g;T<=I;++T)for(var" e="u.getLine(T),c=T==g?y:0;;){var" w="E.indexOf(S,c),k=E.indexOf(b,c);if(w<0&&(w=E.length),k<0&&(k=E.length),c=Math.min(w,k),c==E.length)break;if(c==w)++R;else" if(!--r){w="T,N=c;break" e}++c}if(!(w="=null||g==W&&N==y))return{from:l.Pos(g,y),to:l.Pos(W,N)}})})}();var" kc="<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M985.5 465.1L759.1 238.7c-4.6-4.6-11-7.3-17.5-7.3h-27.5c-34.5 0-65.2 22.1-76 54.9l-42.7 128.9c-3.3 10 4.1 20.4 14.7 20.4h76.2c10.5 0 17.9 10.3 14.6 20.2l-30.4 91.6c-3.4 10.1-12.8 17-23.5 17h-83.1c-10.7 0-20.2 6.8-23.5 17l-61.2 184.5c-18.8 56.4-61 99.5-114.5 119.4 11.7 11.7 21.1 12 28.5 12H613c6.6 0 12.9-2.6 17.5-7.3l355.2-355.2c19.1-19.2 19.1-50.4-.2-69.7zM403.5 584.5c3.3-9.9-4.1-20.1-14.5-20.1h-74.6c-10.2 0-17.5-10-14.3-19.7l30.5-92.1c3.4-10.1 12.8-17 23.5-17H435c10.7 0 20.2-6.8 23.5-17l61.1-184.1c18.7-56.5 61-99.9 114.6-119.8-11.7-11.7-21.1-12-28.5-12H387.2c-6.6 0-12.9 2.6-17.5 7.3L14.5 465.1c-19.3 19.3-19.3 50.6 0 69.9l226.4 226.4c4.6 4.6 11 7.3 17.5 7.3h26.2c34.6 0 65.2-22.2 76.1-55l42.8-129.2z"/></svg>" ;const="" gc="btoa(Kc),pn={document:{name:"htmlmixed",lineWrapping:!0},script:{name:"javascript",statementIndent:2},ts:{name:"text/typescript",statementIndent:2},coffee:{name:"text/coffeescript",statementIndent:2},style:"css"};pn.js=pn.script,pn.html=pn.document;var" jc="(o,a)=">Le("div"+le.position("absolute").w("100%").top(o.toolbar()).left(0).bottom(0).right(0).overflow("hidden").$after(le.content("").position("absolute").top("-7vh").width("100%").height("100vh").zIndex(3).opacity(.1).pointerEvents("none").backgroundImage("url(data:image/svg+xml;base64,"+Gc+")").backgroundSize("120%
|
||
|
auto").backgroundRepeat("no-repeat").backgroundPosition("center
|
||
|
center")).$nest(".CodeMirror",le.fontFamily("Source Code Pro,
|
||
|
monospace").lineHeight("22px").cursor("text").w("100%").h("100%").fontSize(14)).$nest(".cm-s-material.CodeMirror,
|
||
|
.cm-s-material
|
||
|
div.CodeMirror-gutters",le.backgroundColor(o.state.color)).$nest(".CodeMirror-activeline",le.background("rgba(255,255,255,0.07)")),{oncreate:({dom:l})=>{const
|
||
|
|
||
|
u=/[{([]$/,h=/[^{}[\]()]/g,p=dn(l,{theme:o.state.theme||"material",readOnly:!o.state.editable,autoCloseBrackets:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0,lineNumbers:!0,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],tabSize:2,viewportMargin:o.state.autoHeight?1/0:10,keyMap:"sublime",extraKeys:{"Alt-F":"findPersistent","Shift-Tab":"indentLess","Cmd-L":!1,"Cmd-M":!1,"Ctrl-L":!1,Enter:b=>{const
|
||
|
|
||
|
g=b.getCursor(),x=b.getRange({line:g.line,ch:0},g).trim(),y=u.test(x),A=!y&&u.test(x.replace(h,"")),m=jn("=>",x),_=jn(",",x);b.setOption("smartIndent",A&&!_),b.execCommand("newlineAndIndent"),b.setOption("smartIndent",!0),(m||y)&&b.execCommand("insertSoftTab")},Tab:b=>{b.somethingSelected()?b.indentSelection("add"):b.execCommand("insertSoftTab")},Backspace:b=>{const
|
||
|
|
||
|
g=b.getCursor(),x=b.getRange({line:g.line,ch:0},g);x.length%2==0&&jn("
|
||
|
|
||
|
",x)&&dn.commands.delCharBefore(b),dn.commands.delCharBefore(b)}}});p.on("gutterClick",qc),p.on("scrollCursorIntoView",(b,g)=>{g.codemirrorIgnore=!0});const
|
||
|
|
||
|
S=p.getDoc();o.refreshCm.map(()=>p.refresh()),o.focus.map(({line:b=0,column:g=0,scrollTo:x=!1}={})=>{p.setCursor(b-1,g-1),p.focus(),x&&requestAnimationFrame(()=>p.scrollIntoView({line:b,ch:g},100))}),o.selected.map(b=>{if(!b)return;const
|
||
|
|
||
|
g=b.patched||b.content||"",x=pn[Ri(b.name)]||pn[b.type]||"javascript",y=o.state.editable&&b.editable!==!1;p.setOption("lineWrapping",x.lineWrapping||!1),p.setOption("readOnly",!y),b.doc||(b.doc=dn.Doc(g,x),b.doc.ignoreCursor=!0,b.doc.on("change",(_,R)=>{R.origin!=="setValue"&&(b.doc.ignoreCursor=!0,Promise.resolve().then(()=>b.doc.ignoreCursor=!1),a.fileChange(b,b.doc.getValue(),Ba(b.doc.listSelections())))}),b.doc.on("cursorActivity",(_,R)=>{b.doc.ignoreCursor||a.fileSelectionChange(b,Ba(b.doc.listSelections()))})),b.doc.ignoreCursor=!0,Promise.resolve().then(()=>b.doc.ignoreCursor=!1),g!==b.doc.getValue()&&b.doc.setValue(g);const
|
||
|
|
||
|
A=p.getDoc()!==S||o.state.autoFocus;p.getDoc()!==b.doc&&p.swapDoc(b.doc);const
|
||
|
|
||
|
m=Xc(b.selections);m&&m.length&&(b.doc.setSelections(m),requestAnimationFrame(()=>{p.scrollIntoView(m[0].head,500)})),A&&p.focus(),!o.cmHeight&&o.state.autoHeight&&requestAnimationFrame(()=>o.cmHeight=l.querySelector(".CodeMirror-sizer").offsetHeight*(o.vertical()?2:1)+o.toolbar()*(o.vertical()?4:3))})}});function
|
||
|
qc(o,a,l,u){if(l==="CodeMirror-foldgutter")return;const
|
||
|
h=o.listSelections(),p=u.ctrlKey||u.metaKey?h:[],S=u.shiftKey&&h.length?h[0].anchor.line:a;let
|
||
|
b=u.shiftKey&&h.length&&S>a?a:a+1;y();const
|
||
|
g=function(A){const
|
||
|
m=o.lineAtHeight(A.clientY,"client");m!==b&&(b=m,y())},x=A=>{window.removeEventListener("mouseup",x),window.removeEventListener("mousemove",g)};window.addEventListener("mousemove",g),window.addEventListener("mouseup",x);function
|
||
|
|
||
|
y(){o.setSelections(p.concat([{anchor:dn.Pos(S,b>S?0:null),head:dn.Pos(b,0)}]),p.length,{origin:"*mouse"})}}function
|
||
|
Xc(o=""){return
|
||
|
o.split(",").map(a=>(a=a.split("-").map(l=>(l=l.split(":"),{line:parseInt(l[0])||0,ch:parseInt(l[1])||0})),{anchor:a[0],head:a[1]||a[0]}))}function
|
||
|
Ba(o){return
|
||
|
o.map(a=>a.anchor.line+":"+a.anchor.ch+(a.head&&(a.anchor.line!==a.head.line||a.anchor.ch!==a.head.ch)?"-"+a.head.line+":"+a.head.ch:"")).join(",")}var
|
||
|
|
||
|
qn=(o,a)=>Le("i"+le.w(o.size||18).h(o.size||18).display("flex").jc("center").ai("center").$nest("svg",le.w("100%").h("100%")),o,Le.trust(a)),Ha='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M784.2 355.2v-76.9c0-72.7-28.3-141.1-79.7-192.5C653.1 34.3 584.7 6 512 6S370.9 34.3 319.5 85.7c-51.4 51.4-79.7 119.8-79.7 192.5v76.9c-67.5 25-115.6 89.9-115.6 165.9v322.3c0 97.5 79.2 176.7 176.7 176.7h422.3c97.5 0 176.7-79.3 176.7-176.7V521c-.1-76-48.2-140.9-115.7-165.8zM512 90c103.8 0 188.2 84.4 188.2 188.2v66.1H323.8v-66.1C323.8 174.4 408.2 90 512 90zm302 753.3c0 50.1-40.8 90.9-90.9 90.9H300.8c-50.1 0-90.9-40.8-90.9-90.9V521c0-50.1 40.8-90.9 90.9-90.9h422.3c50.1 0 90.9 40.8 90.9 90.9v322.3z"></path></svg>',Yc=(o,a)=>Le("nav.toolbar"+le.position("relative").f("left").display("flex").c("gray").w("100%").minHeight(o.toolbar()).background("rgb(246,246,246)").fontSize(14).zi(20).boxShadow("0
|
||
|
1px 1px
|
||
|
rgba(0,0,0,0.35)").$after(le.content("").w(2).h("100%").position("absolute").right(-2).bc("inherit")),Le(".tabs"+le.display("flex").overflowX("auto").overflowY("hidden").flexGrow(1),o.state.fileTabs&&$c(o,a),o.state.linkTabs&&Qc(o,a)));function
|
||
|
Qc(o,a){return
|
||
|
o.state.links.map(l=>Wa(Le("div"+le.display("flex"),Le("a"+le.c("inherit"),{href:l.url,target:"_blank",onclick:u=>l.content&&u.preventDefault()},l.name),l.patches&&Le("span"+le.$animate("0.3s",{from:le.maxWidth(0).o(0),to:le.maxWidth(120).o(1)}).fontStyle("italic").ml(2).mt(2).fs(12),{onbeforeremove:({dom:u})=>(u.style.animation=le.$animate("0.3s",{from:le.maxWidth(120).o(1),to:le.maxWidth(0).o(0)}).style.animation,new
|
||
|
|
||
|
Promise(h=>setTimeout(h,300)))},"(modified)"),l.editable===!1&&qn({size:16,class:le.ml(6).class},Ha)),()=>l.content&&a.select(l),l===o.selected(),o))}function
|
||
|
$c(o,a){return
|
||
|
o.state.files.map(l=>Wa(Le("div"+le.display("flex"),l.name,l.editable===!1&&qn({size:16,class:le.ml(6).class},Ha)),()=>a.select(l),l===o.selected(),o))}function
|
||
|
Wa(o,a,l,u){return
|
||
|
Le(".tab"+le.display("flex").ai("center").transition("background .3s,
|
||
|
color
|
||
|
.3s").minWidth(40).maxWidth(200).cursor("pointer").flexShrink(2).$hover(le.flexShrink(0).background("#ddd").c("#333")),{style:l?le.background(u.state.color).zi(1).c("white").flexShrink(0).style:{},onclick:a},Le("span"+le.flexGrow(1).overflow("hidden").ta("center").whiteSpace("nowrap").p("0
|
||
|
12px"),o))}var
|
||
|
Ua=(o,a)=>Le("div"+le.position("absolute").w("100%").h("100%").zi(50).t(0).cursor("pointer").background("rgb(255,255,255)").transition("opacity
|
||
|
0.5s").$animate("0.5s",{from:le.o(0),to:le.o(1)}).boxShadow("0 0 10px
|
||
|
rgba(0,0,0,.35)").display("flex").jc("center").ai("center"),{onbeforeremove:l=>(l.dom.style.opacity=0,new
|
||
|
|
||
|
Promise(u=>setTimeout(u,500))),onclick:a},qn({class:le.h(28).w(28).class},o)),Zc='<svg viewBox="0 0 1024 1024"><path d="M295 590.5l-96 246.6 242.3-100.3L295 590.5zM998.5 63.8l-30.7-30.7c-33.9-34-89-34-123 0l-61.5 61.5L937 248.4l61.5-61.5c34-34 34-89.1 0-123.1zM299.9 578l22-22 153.7 153.7 430.6-430.6-153.7-153.7 30.7-30.8L299.9 578zM831 929.6l-740.5.3.1-740.5 518.5-.2 81.2-86.1H46.4c-24 0-43.5 19.4-43.5 43.5V973c0 24.1 19.5 43.5 43.5 43.5h826.4c24.1 0 43.5-19.4 43.5-43.5V361.5l-87.6 86 2.3 482.1z"></path></svg>',Jc=(o,a)=>Le(".handle"+le.position("absolute").zi(40),{style:o.vertical()?le.height(6).bottom(0).left(0).cursor("row-resize").w("100%").style:le.top(0).width("6px").right(0).cursor("col-resize").h("100%").style,onmousedown:l=>{a.startDragging(!0),window.addEventListener("mouseup",function
|
||
|
|
||
|
u(h){l.pageX===h.pageX&&l.pageY===h.pageY&&a.setMiddle(0),window.removeEventListener("mousemove",a.changeMiddle,!1),window.removeEventListener("mouseup",u,!1),a.stopDragging(!1),Le.redraw()},!1),window.addEventListener("mousemove",a.changeMiddle,!1)}}),Vc=(o,a)=>[(o.vertical()&&o.editor?o.editor.offsetHeight<=o.toolbar():o.state.middle<3)&&Ua(Zc,a.resetSize),o.state.toolbar&&Yc(o,a),jc(o,a),o.state.resizeable&&Jc(o,a)];const
|
||
|
|
||
|
Ka=(o,a)=>Le("iframe"+le.flexGrow(1).userSelect("none").minHeight(50).width("100%").h(0),{name:o.id,title:"Runtime
|
||
|
|
||
|
iframe",style:le.pointerEvents(o.dragging&&"none").style,sandbox:"allow-modals
|
||
|
allow-forms allow-same-origin allow-scripts
|
||
|
allow-popups",allow:"geolocation; microphone; camera; midi;
|
||
|
encrypted-media",allowfullscreen:!0,frameborder:"0",oncreate:l=>a.initIframe(l.dom)}),eh=(o,a)=>Le(".iframeScroller"+le.overflowScrolling("touch").flexGrow(1).overflowY("scroll").display("flex").fd("column").w("100%"),Ka(o,a));var
|
||
|
|
||
|
th=(o,a)=>o.iOS?eh(o,a):Ka(o,a),rh=(o,a)=>Le(".size"+le.position("absolute").fontFamily("Source
|
||
|
Code Pro, monospace").zi(1).fontSize(14).top(o.toolbar()+8).p("4px
|
||
|
8px").right(8).background("white").o(.65).transition("opacity
|
||
|
0.3s").$animate(".3s",{from:le.o(0),to:le.o(1)}).boxShadow("0 0 3px
|
||
|
rgba(0, 0, 0, .35)"),{onbeforeremove:nh},o.iframe.clientWidth," x
|
||
|
",o.iframe.clientHeight);function nh(o){return o.dom.style.opacity=0,new
|
||
|
Promise(a=>setTimeout(a,300))}var ih='<svg viewBox="0 0 448 512"><path d="M160 96h32v32h-32V96zm-64 0h32v32H96V96zm-64 0h32v32H32V96zm384 320H32V160h384v256zm0-288H224V96h192v32zm32-32c0-17.675-14.325-32-32-32H32C14.325 64 0 78.325 0 96v320c0 17.675 14.325 32 32 32h384c17.675 0 32-14.325 32-32V96z"></path></svg>';function
|
||
|
Ga(o,a){return
|
||
|
o.querySelector(a)||(o.parentElement?Ga(o.parentElement,a):null)}const
|
||
|
ja=o=>{const
|
||
|
l=(Ga(o,".flems")||document.body).parentElement.getBoundingClientRect(),u=o.parentElement.getBoundingClientRect();return{top:u.top-l.top,bottom:u.bottom-l.bottom,right:u.right-l.right,width:u.width}},oh=({dom:o})=>{ja(o).top<40?(o.style.bottom=0,o.style.borderBottom="5px
|
||
|
solid white"):(o.style.top=0,o.style.borderTop="5px solid
|
||
|
white")},lh=({dom:o})=>{const
|
||
|
a=ja(o),l=Math.min(-o.clientWidth/2+o.parentElement.clientWidth/2,-o.clientWidth+a.width+(-a.right-4));o.style.left=l+"px",a.top<40?(o.style.transformOrigin=Math.abs(l)+a.width/2+"px
|
||
|
|
||
|
0px",o.style.bottom="-26px"):(o.style.transformOrigin=Math.abs(l)+a.width/2+"px
|
||
|
|
||
|
26px",o.style.top="-26px")},ah=({dom:o})=>{o.parentElement.classList.add(le.$nest(":hover
|
||
|
.tooltip",le.o(1).transform("scale(1)")).class),lh({dom:o})};var
|
||
|
sh=({zIndex:o=11,title:a=""})=>Le(".tooltip"+le.position("absolute").o(0).c("gray").zi(o).transform("scale(0)").w("auto").h(26).fontSize(12).br(2).p("5px
|
||
|
8px").bc("white").bs("0 2px 8px rgba(0,0,0,0.35)").transition("opacity
|
||
|
0.3s, transform
|
||
|
0.3s").pointerEvents("none").textTransform("uppercase").textAlign("right").whiteSpace("nowrap"),{key:"tooltip",oncreate:ah},a,Le(".tooltip_triangle"+le.pointerEvents("none").o(0).zi(o+1).transform("scale(0)").position("absolute").transformOrigin("bottom
|
||
|
center").transition("opacity 0.3s, transform 0.3s").l("calc(50% -
|
||
|
5px)").w(0).h(0).borderLeft("5px solid transparent").borderRight("5px
|
||
|
solid
|
||
|
transparent").textAlign("right"),{oncreate:oh})),Fi=(o,a={})=>Le(".icon"+le.position("relative").cursor("pointer").borderRadius(3).$hover(le.background("#ddd").color("gray")),{style:a.attention?le.$animate("1s
|
||
|
linear
|
||
|
infinite",{"0%":le.transform("scale(1)").o(1),"50%":le.transform("scale(1.2)").o(.5),"100%":le.transform("scale(1)").o(1)}).style:{}},qn({key:"icon_"+o,style:le.o(a.disabled&&.65).style,onclick:a.onclick,size:26,class:le.p(5).position("relative").class+"
|
||
|
|
||
|
"+(a.iconClass?a.iconClass.class:"")},o),Le.fragment({key:"badge"},Boolean(a.badge)&&Le(".badge"+le.position("absolute").background("red").borderRadius(7).pointerEvents("none").p("0
|
||
|
|
||
|
3px").minWidth(14).h(14).top(0).right(0).c("white").fontStyle("normal").fontSize(10).textAlign("center"),a.badge)),sh({title:a.title})),uh='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M462.9 192.5v504.3h100V192.5L739.5 369l70.7-70.7L512.9 1 215.6 298.3l70.7 70.7z"></path><path d="M924 450v405.3c0 37.9-30.8 68.7-68.7 68.7H168.7c-37.9 0-68.7-30.8-68.7-68.7V450H0v405.3C0 948.5 75.5 1024 168.7 1024h686.6c93.2 0 168.7-75.5 168.7-168.7V450H924z"></path></svg>',qa='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M589.7 512l387.8-387.8c11.7-11.7 11.7-30.5 0-42.1l-35.6-35.6c-11.7-11.7-30.5-11.7-42.1 0L512 434.3 124.2 46.5c-11.7-11.7-30.5-11.7-42.1 0L46.5 82.1c-11.7 11.7-11.7 30.5 0 42.1L434.3 512 46.5 899.8c-11.7 11.7-11.7 30.5 0 42.1l35.6 35.6c11.7 11.7 30.6 11.7 42.1 0L512 589.7l387.8 387.8c11.7 11.7 30.5 11.7 42.1 0l35.6-35.6c11.7-11.7 11.7-30.6 0-42.1L589.7 512z"></path></svg>',fh='<svg viewBox="0 0 768 768"><path d="M616.5 151.3l96.2-96.2v288.5H424.2l132.7-132.7c-44.2-44.2-105.8-73.1-173.1-73.1-136.5 0-246.2 109.6-246.2 246.2s109.6 246.2 246.2 246.2c107.7 0 200-67.3 232.7-163.5h84.6C664.6 609 537.7 712.9 383.8 712.9c-180.8 0-327-148.1-327-328.9S203 55.1 383.8 55.1c90.4 0 173.1 36.6 232.7 96.2z"></path></svg>',ch='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M265.6 164.7L811.7 511 265.6 857.3V164.7M233.2 38c-35.2 0-67.7 28-67.7 67.7v810.7c0 39.7 32.6 67.7 67.7 67.7 12.1 0 24.5-3.3 36-10.6L908.5 568c41.8-26.5 41.8-87.5 0-114.1L269.3 48.6C257.8 41.4 245.4 38 233.2 38z"></path></svg>',hh='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M286.1 933.1h-50.3c-16.5 0-29.8-13.3-29.8-29.8V120.9c0-16.5 13.3-29.8 29.8-29.8h50.3c16.5 0 29.8 13.3 29.8 29.8v782.4c.1 16.4-13.3 29.8-29.8 29.8zM797.7 929.9h-50.8c-16.4 0-29.6-13.2-29.6-29.6V123.8c0-16.4 13.2-29.6 29.6-29.6h50.8c16.4 0 29.6 13.2 29.6 29.6v776.5c0 16.3-13.2 29.6-29.6 29.6z"></path></svg>',dh=(o,a)=>Le(".toolbar"+le.w("100%").h(o.toolbar()).p(4,6).position("relative").flexShrink(0).justifyContent("flex-end").alignItems("center").display("flex").c("gray").zi(20).background("rgb(246,246,246)").boxShadow("0
|
||
|
1px 1px
|
||
|
rgba(0,0,0,0.35)"),Fi(o.state.autoReload?hh:ch,{title:(o.state.autoReload?"Disable":"Enable")+"
|
||
|
auto
|
||
|
reload",onclick:a.toggleAutoReload}),o.state.reloadButton&&Fi(o.loading?qa:fh,{onclick:l=>a.refresh({force:!0}),attention:o.hasChanges,title:"Refresh"}),o.state.shareButton&&Le("a"+le.color("inherit"),{href:"https://flems.io",target:"_blank",oncreate:a.setShareUrl},Fi(uh,{title:"Open
|
||
|
/ share on
|
||
|
flems.io"}))),ph=o=>Le(".loading"+le.position("absolute").background("white").pointerEvents("none").top(o.toolbar()+1).left(0).bottom(0).right(0).display("flex").jc("center").ai("center").transition("opacity
|
||
|
|
||
|
0.3s"),{style:le.o(o.loading?1:0).style},Le("div"+le.w(120).h(120).borderRadius(30).bc("gray").o(.25).$animate("2s
|
||
|
linear
|
||
|
infinite",{from:le.transform("rotate(0deg)"),to:le.transform("rotate(360deg)")}))),gh=(o,a)=>[o.state.toolbar&&dh(o,a),th(o,a),o.state.middle>97&&Ua(ih,a.resetSize),ph(o),o.resizing&&o.state.middle<=98&&rh(o)],vh=(o,a)=>Le(".input"+le.display("flex").p(2,0).flexShrink(0).w("100%").ff("Source
|
||
|
Code Pro,
|
||
|
monospace"),{onbeforeremove:Ra(300)},Le("label"+le.display("flex").ai("center").m("0
|
||
|
6px 0
|
||
|
10px").flexShrink(0).c("blue"),{for:"input"},">"),Le("textarea#input"+le.p(0).flexGrow(1).fs(12).lineHeight(o.console.lineHeight).bc("transparent").resize("none").outline("none").maxHeight(o.console.lineHeight*5).border("none"),{resize:!1,style:le.minHeight(o.console.inputHeight()).maxHeight(o.console.inputHeight()).style,oninput:a.onConsoleInput,onkeydown:a.onConsoleKeyDown},o.console.input)),mh='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M505.2 292c11.5 0 22.9 3.6 32.7 10.7l447.2 330c24.4 18 29.6 52.5 11.6 76.9s-52.5 29.6-76.9 11.6L505 415.2 104 707.7c-24.5 17.9-58.9 12.5-76.8-12s-12.5-58.9 12-76.8l433.6-316.3c9.6-7.1 21-10.6 32.4-10.6z"></path></svg>',yh=(o,a)=>Le(".console"+le.bs("0
|
||
|
0 8px
|
||
|
rgba(0,0,0,.2)").position("relative").maxHeight(34).zi(30).display("flex").transition("max-height
|
||
|
|
||
|
0.3s").fd("column").background("rgb(246,246,246)"),{oncreate:({dom:l})=>o.console.dom=l,style:le.maxHeight(o.state.console===!0&&"50%").style},Le("div"+le.display("flex").jc("space-between").c("#777").flexShrink(0),{onclick:a.toggleConsole},Le("div"+le.display("flex").fs(12).tt("uppercase").p("8px
|
||
|
|
||
|
10px"),Le("span"+le.mr(4),"Console"),Xa("#d82c2c",a.clearErrors,o.console.errors()),Xa("gray",a.clearLogs,o.console.infos())),Le("div"+le.display("flex").p(2,6),Fi(mh,{iconClass:le.transition("transform
|
||
|
|
||
|
0.3s").transform(o.state.console===!0&&"rotate(180deg)"),title:o.state.console===!0?"Hide
|
||
|
console":"Show
|
||
|
console"}))),o.state.console===!0&&Le(".scroll"+le.overflow("auto"),{onscroll:l=>{if(l.redraw=!1,o.ignoreScroll){o.ignoreScroll=!1;return}o.console.manualScroll=l.target.scrollTop!==l.target.scrollHeight-l.target.offsetHeight},onbeforeremove:Ra(300),oncreate:({dom:l})=>{l.scrollTop=l.scrollHeight-l.clientHeight},onupdate:({state:l,dom:u})=>{o.console.manualScroll||(o.ignoreScroll=!0,u.scrollTop=u.scrollHeight-u.clientHeight)}},o.console.output.slice(-200).map(l=>Le(".logLine"+le.display("flex").ff("Source
|
||
|
Code Pro,
|
||
|
monospace").alignItems("center").p(2,10).minHeight(22).fs(12).borderBottom("1px
|
||
|
solid
|
||
|
#eee").c("#555").whiteSpace("pre-wrap").alignItems("center"),{key:l.number,onclick:()=>l.expand=!l.expand,title:l.date},[Le("div"+le.flexGrow(1).$nest(">span",le.mr(10)),l.content.length>1&&l.content[0].indexOf("%c")>-1&&Le("span",l.content[0].split("%c").filter(u=>u).map((u,h)=>Le("span"+le(l.content[h+1]||""),u))),l.content.slice(l.content.length>1&&l.content[0].indexOf("%c")>-1?l.content[0].match(/%c/g).length+1:0).map((u,h)=>Le("span",u))),l.stack&&Le(".stack"+le.ta("right").flexShrink(0).overflow("hidden"),l.stack.slice(0,!l.expand&&l.type!=="error"?1:void
|
||
|
0).map(u=>Le("div",(u.function||"")+" at
|
||
|
",Le("a"+(u.file?le.textDecoration("underline").cursor("pointer"):""),{onclick:h=>{h.stopPropagation(),u.select&&a.select(u.select),o.focus({line:u.line,column:u.column,scrollTo:!0})}},(u.file||0)+":"+(u.line||0)+":"+(u.column||0)))))]))),o.state.console===!0&&vh(o,a));function
|
||
|
Xa(o,a,l){return
|
||
|
Le("span"+le.bc(o).position("relative").m(0,4).p(0,10).ta("center").c("white").display("flex").ai("center").br(50).o(.2).transition("opacity
|
||
|
|
||
|
0.5s"),{style:le.o(l>0&&1).style},l,l>0&&qn({size:14,onclick:u=>{u.stopPropagation(),a(u)},class:le.p(3).ml(4).mr(-8).br(20).cursor("pointer").transition("opacity
|
||
|
|
||
|
0.3s").$hover(le.transform("scale").bc("rgba(255,255,255,0.25)")).class},qa))}var
|
||
|
bh=(o,a)=>Le(".flems"+le.fontFamily('-apple-system,
|
||
|
BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
|
||
|
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI
|
||
|
Symbol"').overflow("hidden").position("relative").display("flex").fd("column").boxSizing("border-box").lh(18).fs(16).$nest({"input,
|
||
|
textarea":le.fontFamily("inherit").m(0).p(0),"*, *:before,
|
||
|
*:after":le.boxSizing("inherit").fw("normal"),svg:le.fill("currentColor").va("middle"),"svg:not(:root)":le.overflow("hidden"),"a,
|
||
|
a:link,
|
||
|
a:visited":le.c("inherit").td("none").border("none")}),{style:le.h(o.state.autoHeight?o.cmHeight:"100%").userSelect(o.dragging&&"none").style},Le("main"+le.flexGrow(1).display("flex").flexDirection(o.vertical()&&"column").position(o.vertical()&&"relative"),{style:le.ai(!o.vertical()&&"stretch").style},Le(".editor"+le.position("relative").minWidth(50).minHeight(o.toolbar()).zIndex(30).flexGrow(1),{style:le.position(o.vertical()&&"absolute").width(o.vertical()&&"100%").height(o.vertical()&&o.state.middle+"%").maxWidth(!o.vertical()&&o.state.middle+"%").style},Vc(o,a)),Le(".runtime"+le.position("relative").minWidth(50).minHeight(o.toolbar()).b(0).r(0).display("flex").fd("column").flexGrow(1),{style:le.position(o.vertical()&&"absolute").width(o.vertical()&&"100%").height(o.vertical()&&100-o.state.middle+"%").maxHeight(o.vertical()&&"calc(100%
|
||
|
-
|
||
|
"+o.toolbar()+"px").maxWidth(!o.vertical()&&100-o.state.middle+"%").style},gh(o,a))),o.state.console&&yh(o,a)),Ya={exports:{}};(function(o){var
|
||
|
a=function(){var
|
||
|
l=String.fromCharCode,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",p={};function
|
||
|
S(g,x){if(!p[g]){p[g]={};for(var y=0;y<g.length;y++)p[g][g.charat(y)]=y}return p[g][x]}var="" b="{compressToBase64:function(g){if(g==null)return"";var" x="b._compress(g,6,function(y){return" u.charat(y)});switch(x.length%4){default:case="" 0:return="" x;case="" 1:return="" x+"="==";case" 2:return="" 3:return="" ":g="=""?null:b._decompress(g.length,32,function(x){return" s(u,g.charat(x))})},compresstoutf16:function(g){return="" g="=null?"":b._compress(g,15,function(x){return" l(x+32)})+"="" "},decompressfromutf16:function(g){return="" g.charcodeat(x)-32})},compresstouint8array:function(g){for(var="" uint8array(x.length*2),a="0,m=x.length;A<m;A++){var" _="x.charCodeAt(A);y[A*2]=_">>>8,y[A*2+1]=_%256}return
|
||
|
y},decompressFromUint8Array:function(g){if(g==null)return
|
||
|
b.decompress(g);for(var x=new Array(g.length/2),y=0,A=x.length;y<a;y++)x[y]=g[y*2]*256+g[y*2+1];var m="[];return" x.foreach(function(_){m.push(l(_))}),b.decompress(m.join(""))},compresstoencodeduricomponent:function(g){return="" g="=null?"":b._compress(g,6,function(x){return" h.charat(x)})},decompressfromencodeduricomponent:function(g){return="" g,"+"),b._decompress(g.length,32,function(x){return="" s(h,g.charat(x))}))},compress:function(g){return="" b._compress(g,16,function(x){return="" l(x)})},_compress:function(g,x,y){if(g="=null)return"";var" a,m,_="{},R={},I="",W="",N="",T=2,E=3,c=2,w=[],k=0,O=0,L;for(L=0;L<g.length;L+=1)if(I=g.charAt(L),Object.prototype.hasOwnProperty.call(_,I)||(_[I]=E++,R[I]=!0),W=N+I,Object.prototype.hasOwnProperty.call(_,W))N=W;else{if(Object.prototype.hasOwnProperty.call(R,N)){if(N.charCodeAt(0)<256){for(A=0;A<c;A++)k=k<<1,O==x-1?(O=0,w.push(y(k)),k=0):O++;for(m=N.charCodeAt(0),A=0;A<8;A++)k=k<<1|m&1,O==x-1?(O=0,w.push(y(k)),k=0):O++,m=m">>1}else{for(m=1,A=0;A<c;a++)k=k<<1|m,o==x-1?(o=0,w.push(y(k)),k=0):o++,m=0;for(m=n.charcodeat(0),a=0;a<16;a++)k=k<<1|m&1,o==x-1?(o=0,w.push(y(k)),k=0):o++,m=m>>1}T--,T==0&&(T=Math.pow(2,c),c++),delete R[N]}else for(m=_[N],A=0;A<c;a++)k=k<<1|m&1,o==x-1?(o=0,w.push(y(k)),k=0):o++,m=m>>1;T--,T==0&&(T=Math.pow(2,c),c++),_[W]=E++,N=String(I)}if(N!==""){if(Object.prototype.hasOwnProperty.call(R,N)){if(N.charCodeAt(0)<256){for(A=0;A<c;a++)k=k<<1,o==x-1?(o=0,w.push(y(k)),k=0):o++;for(m=n.charcodeat(0),a=0;a<8;a++)k=k<<1|m&1,o==x-1?(o=0,w.push(y(k)),k=0):o++,m=m>>1}else{for(m=1,A=0;A<c;a++)k=k<<1|m,o==x-1?(o=0,w.push(y(k)),k=0):o++,m=0;for(m=n.charcodeat(0),a=0;a<16;a++)k=k<<1|m&1,o==x-1?(o=0,w.push(y(k)),k=0):o++,m=m>>1}T--,T==0&&(T=Math.pow(2,c),c++),delete R[N]}else for(m=_[N],A=0;A<c;a++)k=k<<1|m&1,o==x-1?(o=0,w.push(y(k)),k=0):o++,m=m>>1;T--,T==0&&(T=Math.pow(2,c),c++)}for(m=2,A=0;A<c;a++)k=k<<1|m&1,o==x-1?(o=0,w.push(y(k)),k=0):o++,m=m>>1;for(;;)if(k=k<<1,O==x-1){w.push(y(k));break}else
|
||
|
O++;return w.join("")},decompress:function(g){return
|
||
|
g==null?"":g==""?null:b._decompress(g.length,32768,function(x){return
|
||
|
g.charCodeAt(x)})},_decompress:function(g,x,y){var
|
||
|
A=[],m=4,_=4,R=3,I="",W=[],N,T,E,c,w,k,O,L={val:y(0),position:x,index:1};for(N=0;N<3;N+=1)A[N]=N;for(E=0,w=Math.pow(2,2),k=1;k!=w;)c=L.val&L.position,L.position>>=1,L.position==0&&(L.position=x,L.val=y(L.index++)),E|=(c>0?1:0)*k,k<<=1;switch(E){case
|
||
|
|
||
|
0:for(E=0,w=Math.pow(2,8),k=1;k!=w;)c=L.val&L.position,L.position>>=1,L.position==0&&(L.position=x,L.val=y(L.index++)),E|=(c>0?1:0)*k,k<<=1;O=l(E);break;case
|
||
|
|
||
|
1:for(E=0,w=Math.pow(2,16),k=1;k!=w;)c=L.val&L.position,L.position>>=1,L.position==0&&(L.position=x,L.val=y(L.index++)),E|=(c>0?1:0)*k,k<<=1;O=l(E);break;case
|
||
|
|
||
|
2:return""}for(A[3]=O,T=O,W.push(O);;){if(L.index>g)return"";for(E=0,w=Math.pow(2,R),k=1;k!=w;)c=L.val&L.position,L.position>>=1,L.position==0&&(L.position=x,L.val=y(L.index++)),E|=(c>0?1:0)*k,k<<=1;switch(O=E){case
|
||
|
|
||
|
0:for(E=0,w=Math.pow(2,8),k=1;k!=w;)c=L.val&L.position,L.position>>=1,L.position==0&&(L.position=x,L.val=y(L.index++)),E|=(c>0?1:0)*k,k<<=1;A[_++]=l(E),O=_-1,m--;break;case
|
||
|
|
||
|
1:for(E=0,w=Math.pow(2,16),k=1;k!=w;)c=L.val&L.position,L.position>>=1,L.position==0&&(L.position=x,L.val=y(L.index++)),E|=(c>0?1:0)*k,k<<=1;A[_++]=l(E),O=_-1,m--;break;case
|
||
|
2:return
|
||
|
W.join("")}if(m==0&&(m=Math.pow(2,R),R++),A[O])I=A[O];else
|
||
|
if(O===_)I=T+T.charAt(0);else return
|
||
|
null;W.push(I),A[_++]=T+I.charAt(0),m--,T=I,m==0&&(m=Math.pow(2,R),R++)}}};return
|
||
|
b}();o!=null&&(o.exports=a)})(Ya);var wh=Ya.exports;const
|
||
|
gr=Dc(o=>new Promise((a,l)=>{const
|
||
|
u=document.createElement("script");u.async=!1,u.charset="utf-8",u.src=o,document.body.appendChild(u),u.onload=a,u.onerror=h=>l("Could
|
||
|
not load compiler from
|
||
|
"+o)})),Qa={styl:o=>gr("https://static.flems.io/compilers/stylus.min.js").then(()=>({code:window.stylus.render(o.content)})),scss:o=>gr("https://static.flems.io/compilers/sass.sync.js").then(()=>new
|
||
|
|
||
|
Promise((a,l)=>window.Sass.compile(o.content,u=>{u.message?l(u.message):a({code:u.text})}))),sass:o=>gr("https://static.flems.io/compilers/sass.sync.js").then(()=>new
|
||
|
|
||
|
Promise((a,l)=>window.Sass.compile(o.content,{indentedSyntax:!0},u=>{u.message?l(u.message):a({code:u.text})}))),less:o=>gr("https://static.flems.io/compilers/less.min.js").then(()=>window.less.render(o.content).then(a=>({code:a.css}))),ts:o=>gr("https://static.flems.io/compilers/typescriptServices.js").then(()=>{const
|
||
|
|
||
|
a=window.ts.transpileModule(o.content,{fileName:o.name,compilerOptions:{module:"ESNext",sourceMap:!0,jsx:"react"}});return{code:a.outputText.substring(0,a.outputText.lastIndexOf(`
|
||
|
`)),map:a.sourceMapText}}),babel:o=>gr("https://static.flems.io/compilers/babel.min.js").then(()=>window.Babel.transform(o.content,{presets:[["es2015",{modules:!1}],"stage-2","react"],sourceMaps:!0,sourceType:"unambiguous",sourceFileName:o.name})),ls:o=>gr("https://static.flems.io/compilers/livescript-min.js").then(()=>{window.livescript||(window.livescript=window.require("livescript"));const
|
||
|
|
||
|
a=window.livescript.compile(o.content,{map:"linked",filename:o.name});return{code:a.code,map:a.map.toString()}}),coffee:o=>Promise.all([gr("https://static.flems.io/compilers/babel.min.js"),gr("https://static.flems.io/compilers/coffeescript.js")]).then(()=>{const
|
||
|
|
||
|
a=window.CoffeeScript.compile(o.content,{sourceMap:!0,filename:o.name});return
|
||
|
|
||
|
window.Babel.transform(a.js,{presets:[["es2015",{modules:!1}],"stage-2","react"],sourceMaps:!0,inputSourceMap:JSON.parse(a.v3SourceMap),sourceFileName:o.name})}),sibilant:o=>gr("https://static.flems.io/compilers/sibilant.js").then(()=>({code:window.sibilant.sibilize(o.content)}))},qo={html:"document",js:"script",mjs:"script",ts:"script",ls:"script",coffee:"script",sibilant:"script",css:"style",styl:"style",less:"style",scss:"style",sass:"style"},Bi=()=>({middle:50,selected:".js",color:"rgb(38,50,56)",theme:"material",layout:"auto",resizeable:!0,editable:!0,toolbar:!0,fileTabs:!0,linkTabs:!0,shareButton:!0,reloadButton:!0,console:!0,autoReload:!0,autoReloadDelay:400,autoFocus:!1,autoHeight:!1,scroll:null,files:[{name:".html",content:""},{name:".js",content:""},{name:".css",content:""}],links:[]});function
|
||
|
$a(o){const a=Bi();return Object.keys(a).forEach(l=>{l in
|
||
|
o||(o[l]=a[l])}),o.middle=Math.min(Math.max(o.middle,0),100),o.files.forEach(l=>{if(l.type=l.type||qo[Ri(l.name)],l.content=l.content||"",typeof
|
||
|
l.compiler=="string"&&!(l.compiler in Qa))throw new
|
||
|
Error("Unknown compler:
|
||
|
"+l.compiler)}),o.files.reduce((l,u)=>{if(l.indexOf(u.name)>-1)throw
|
||
|
new Error("Multiple files with the same name: "+name);return
|
||
|
l.concat(u.name)},[]),o.links.forEach(l=>{if(!zc.test(l.url))throw
|
||
|
new Error("Link url's should start with http:// or
|
||
|
https://");l.type=qo[l.type]||l.type||qo[Ri(l.url)]||"script",l.name=l.name||l.url.slice(l.url.lastIndexOf("/")+1)}),Gn(o,o.selected)||(o.selected=(o.files[0]||{}).name||(o.links[0]||{}).url),o}const
|
||
|
|
||
|
Za=o=>"https://flems.io/#0="+wh.compressToEncodedURIComponent(JSON.stringify(xh(o)));function
|
||
|
xh(o){const a=Object.keys(Bi()).reduce((l,u)=>(u in
|
||
|
o&&o[u]!==Bi[u]&&(l[u]=o[u]),l),{});return
|
||
|
o.files&&o.files.length&&(a.files=Ja(o.files,["name","content","compiler","selections"])),o.links&&(a.links=Ja(o.links,["name","url","type","patches","selections"])),a}function
|
||
|
Ja(o=[],a){return o.map(l=>a.reduce((u,h)=>(u[h]=l[h],u),{}))}var
|
||
|
|
||
|
Va={exports:{}};(function(o){(function(){l.SKIP={},l.lift=b,l.scan=p,l.merge=h,l.combine=u,l.scanMerge=S,l["fantasy-land/of"]=l;var
|
||
|
a=!1;Object.defineProperty(l,"HALT",{get:function(){return
|
||
|
a||console.log("HALT is deprecated and has been renamed to
|
||
|
SKIP"),a=!0,l.SKIP}});function l(x){var y=[],A=[];function m(I){return
|
||
|
arguments.length&&I!==l.SKIP&&(x=I,g(m)&&(m._changing(),m._state="active",y.forEach(function(W,N){W(A[N](x))}))),x}m.constructor=l,m._state=arguments.length&&x!==l.SKIP?"active":"pending",m._parents=[],m._changing=function(){g(m)&&(m._state="changing"),y.forEach(function(I){I._changing()})},m._map=function(I,W){var
|
||
|
N=W?l():l(I(x));return
|
||
|
N._parents.push(m),y.push(N),A.push(I),N},m.map=function(I){return
|
||
|
m._map(I,m._state!=="active")};var _;function R(){return
|
||
|
_=l(),_.map(function(I){return
|
||
|
I===!0&&(m._parents.forEach(function(W){W._unregisterChild(m)}),m._state="ended",m._parents.length=y.length=A.length=0),I}),_}return
|
||
|
m.toJSON=function(){return x!=null&&typeof
|
||
|
x.toJSON=="function"?x.toJSON():x},m["fantasy-land/map"]=m.map,m["fantasy-land/ap"]=function(I){return
|
||
|
u(function(W,N){return
|
||
|
W()(N())},[I,m])},m._unregisterChild=function(I){var
|
||
|
W=y.indexOf(I);W!==-1&&(y.splice(W,1),A.splice(W,1))},Object.defineProperty(m,"end",{get:function(){return
|
||
|
_||R()}}),m}function u(x,y){var
|
||
|
A=y.every(function(W){if(W.constructor!==l)throw new Error("Ensure that
|
||
|
each item passed to stream.combine/stream.merge/lift is a
|
||
|
stream");return
|
||
|
W._state==="active"}),m=A?l(x.apply(null,y.concat([y]))):l(),_=[],R=y.map(function(W){return
|
||
|
W._map(function(N){return _.push(W),(A||y.every(function(T){return
|
||
|
T._state!=="pending"}))&&(A=!0,m(x.apply(null,y.concat([_]))),_=[]),N},!0)}),I=m.end.map(function(W){W===!0&&(R.forEach(function(N){N.end(!0)}),I.end(!0))});return
|
||
|
m}function h(x){return u(function(){return x.map(function(y){return
|
||
|
y()})},x)}function p(x,y,A){var m=A.map(function(_){var R=x(y,_);return
|
||
|
R!==l.SKIP&&(y=R),R});return m(y),m}function S(x,y){var
|
||
|
A=x.map(function(_){return _[0]}),m=u(function(){var
|
||
|
_=arguments[arguments.length-1];return
|
||
|
A.forEach(function(R,I){_.indexOf(R)>-1&&(y=x[I][1](y,R()))}),y},A);return
|
||
|
m(y),m}function b(){var
|
||
|
x=arguments[0],y=Array.prototype.slice.call(arguments,1);return
|
||
|
h(y).map(function(A){return x.apply(void 0,A)})}function g(x){return
|
||
|
x._state==="pending"||x._state==="active"||x._state==="changing"}o.exports=l})()})(Va);var
|
||
|
Xo=Va.exports;const
|
||
|
es=document.getElementsByTagName("script"),Yo=es[es.length-1],kh=jn("flems.html",Yo?Yo.src:"")&&Yo.src;function
|
||
|
Sh(o,a,l){a=$a(a);const
|
||
|
h={id:Ch(),dom:o,state:a,selected:Xo(Gn(a,a.selected)),iOS:"overflowScrolling"in
|
||
|
|
||
|
le,runtimeUrl:l||kh||"flems.html",console:{input:"",inputNumber:0,output:[],history:[],position:0,manualScroll:!1,lineHeight:22,errors:()=>h.console.output.filter(p=>p.type==="error").length,infos:()=>h.console.output.filter(p=>p.type!=="error").length,inputHeight:()=>Math.min(h.console.lineHeight*h.console.input.split(`
|
||
|
`).length,h.console.lineHeight*5)},cmHeight:null,iframe:null,loading:!0,resizing:!1,hideError:!0,dragging:!1,refreshCm:Xo(),focus:Xo(),vertical:()=>o.offsetWidth*1.25<o.offsetheight,toolbar:()=>h.state.toolbar?40:0};return
|
||
|
h}function
|
||
|
Ch(){return("000"+(Math.random()*46656|0).toString(36)).slice(-3)+("000"+(Math.random()*46656|0).toString(36)).slice(-3)}var
|
||
|
Lh={},Th=Object.freeze({__proto__:null,default:Lh}),Mh=ec(Th),Qo=typeof
|
||
|
|
||
|
Map=="function"&&Map.prototype,$o=Object.getOwnPropertyDescriptor&&Qo?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Hi=Qo&&$o&&typeof
|
||
|
|
||
|
$o.get=="function"?$o.get:null,Ah=Qo&&Map.prototype.forEach,Zo=typeof
|
||
|
|
||
|
Set=="function"&&Set.prototype,Jo=Object.getOwnPropertyDescriptor&&Zo?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Wi=Zo&&Jo&&typeof
|
||
|
|
||
|
Jo.get=="function"?Jo.get:null,Oh=Zo&&Set.prototype.forEach,_h=Boolean.prototype.valueOf,Eh=Object.prototype.toString,Nh=typeof
|
||
|
|
||
|
BigInt=="function"?BigInt.prototype.valueOf:null,Vo=Mh.custom,el=Vo&&ns(Vo)?Vo:null,Ph=function
|
||
|
|
||
|
o(a,l,u,h){if(l||(l={}),tl(l,"quoteStyle")&&l.quoteStyle!=="single"&&l.quoteStyle!=="double")throw
|
||
|
new TypeError('option "quoteStyle" must be "single" or
|
||
|
"double"');if(typeof
|
||
|
a=="undefined")return"undefined";if(a===null)return"null";if(typeof
|
||
|
a=="boolean")return a?"true":"false";if(typeof a=="string")return
|
||
|
Yh(a,l);if(typeof a=="number")return
|
||
|
a===0?1/0/a>0?"0":"-0":String(a);if(typeof a=="bigint")return
|
||
|
String(a)+"n";var p=typeof l.depth=="undefined"?5:l.depth;if(typeof
|
||
|
u=="undefined"&&(u=0),u>=p&&p>0&&typeof
|
||
|
a=="object")return"[Object]";if(typeof h=="undefined")h=[];else
|
||
|
if(Gh(h,a)>=0)return"[Circular]";function S(R,I){return
|
||
|
I&&(h=h.slice(),h.push(I)),o(R,l,u+1,h)}if(typeof
|
||
|
a=="function"){var b=Kh(a);return"[Function"+(b?":
|
||
|
"+b:"")+"]"}if(ns(a)){var g=Symbol.prototype.toString.call(a);return
|
||
|
typeof a=="object"?Xn(g):g}if(Xh(a)){for(var
|
||
|
x="<"+String(a.nodeName).toLowerCase(),y=a.attributes||[],A=0;A<y.length;a++)x+=" "+y[a].name+"="+ts(zh(y[A].value)," double",l);return="" x+=">" ,a.childnodes&&a.childnodes.length&&(x+="..." ),x+="</" +string(a.nodename).tolowercase()+"="">",x}if(rs(a))return
|
||
|
a.length===0?"[]":"[ "+rl(a,S).join(", ")+" ]";if(Rh(a)){var
|
||
|
m=rl(a,S);return m.length===0?"["+String(a)+"]":"{ ["+String(a)+"]
|
||
|
"+m.join(", ")+" }"}if(typeof a=="object"){if(el&&typeof
|
||
|
a[el]=="function")return a[el]();if(typeof a.inspect=="function")return
|
||
|
a.inspect()}if(jh(a)){var m=[];return
|
||
|
Ah.call(a,function(I,W){m.push(S(W,a)+" =>
|
||
|
"+S(I,a))}),is("Map",Hi.call(a),m)}if(qh(a)){var m=[];return
|
||
|
Oh.call(a,function(I){m.push(S(I,a))}),is("Set",Wi.call(a),m)}if(Bh(a))return
|
||
|
Xn(S(Number(a)));if(Hh(a))return Xn(S(Nh.call(a)));if(Wh(a))return
|
||
|
Xn(_h.call(a));if(Fh(a))return
|
||
|
Xn(S(String(a)));if(!Dh(a)&&!Ih(a)){var _=rl(a,S);return
|
||
|
_.length===0?"{}":"{ "+_.join(", ")+" }"}return String(a)};function
|
||
|
ts(o,a,l){var u=(l.quoteStyle||a)==="double"?'"':"'";return
|
||
|
u+o+u}function zh(o){return String(o).replace(/"/g,""")}function
|
||
|
rs(o){return Lr(o)==="[object Array]"}function Dh(o){return
|
||
|
Lr(o)==="[object Date]"}function Ih(o){return Lr(o)==="[object
|
||
|
RegExp]"}function Rh(o){return Lr(o)==="[object Error]"}function
|
||
|
ns(o){return Lr(o)==="[object Symbol]"}function Fh(o){return
|
||
|
Lr(o)==="[object String]"}function Bh(o){return Lr(o)==="[object
|
||
|
Number]"}function Hh(o){return Lr(o)==="[object BigInt]"}function
|
||
|
Wh(o){return Lr(o)==="[object Boolean]"}var
|
||
|
Uh=Object.prototype.hasOwnProperty||function(o){return o in
|
||
|
this};function tl(o,a){return Uh.call(o,a)}function Lr(o){return
|
||
|
Eh.call(o)}function Kh(o){if(o.name)return o.name;var
|
||
|
a=String(o).match(/^function\s*([\w$]+)/);if(a)return a[1]}function
|
||
|
Gh(o,a){if(o.indexOf)return o.indexOf(a);for(var l=0,u=o.length;l<u;l++)if(o[l]===a)return l;return-1}function="" jh(o){if(!hi)return!1;try{hi.call(o);try{wi.call(o)}catch(a){return!0}return="" o="" instanceof="" map}catch(a){}return!1}function="" qh(o){if(!wi)return!1;try{wi.call(o);try{hi.call(o)}catch(a){return!0}return="" set}catch(a){}return!1}function="" xh(o){return!o||typeof="" o!="object" ?!1:typeof="" htmlelement!="undefined" &&o="" htmlelement?!0:typeof="" o.nodename="="string"&&typeof" o.getattribute="="function"}function" yh(o,a){var="" l="o.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,Qh);return" ts(l,"single",a)}function="" qh(o){var="" a="o.charCodeAt(0),l={8:"b",9:"t",10:"n",12:"f",13:"r"}[a];return" l?"\\"+l:"\\x"+(a<16?"0":"")+a.tostring(16)}function="" xn(o){return"object("+o+")"}function="" is(o,a,l){return="" o+"="" ("+a+")="" {"+l.join(",="" ")+"}"}function="" rl(o,a){var="" h="0;h<o.length;h++)u[h]=tl(o,h)?a(o[h],o):""}for(var" p="" in="" o)!tl(o,p)||l&&string(number(p))="==p&&p<o.length||(/[^\w$]/.test(p)?u.push(a(p,o)+":" "+a(o[p],o)):u.push(p+":="" "+a(o[p],o)));return="" u}const="" $h="1,os=4,Zh=.5,ir=4,Tr=32,Jh=.5,Vh=1e3,ls=/[^a-zA-Z0-9]/,as=/\s/,ss=/[\r\n]/,ed=/\n\r?\n$/,td=/^\r?\n\r?\n/,at=-1,ht=1,Ue=0;function" dr(o,a,l,u){typeof="" u="="undefined"&&(u=new" date().gettime()+$h*1e3);const="" o?[[ue,o]]:[];typeof="" s="nl(o,a);const" b="o.substring(0,S);o=o.substring(S),a=a.substring(S),S=Ui(o,a);const" g="o.substring(o.length-S);o=o.substring(0,o.length-S),a=a.substring(0,a.length-S);const" x="rd(o,a,p,h);return" b&&x.unshift([ue,b]),g&&x.push([ue,g]),ki(x),x}function="" rd(o,a,l,u){let="" h;if(!o)return[[ht,a]];if(!a)return[[at,o]];const="">a.length?o:a,S=o.length>a.length?a:o,b=p.indexOf(S);if(b!==-1)return
|
||
|
|
||
|
h=[[ht,p.substring(0,b)],[Ue,S],[ht,p.substring(b+S.length)]],o.length>a.length&&(h[0][0]=h[2][0]=at),h;if(S.length===1)return[[at,o],[ht,a]];const
|
||
|
g=ad(o,a);if(g){const
|
||
|
x=g[0],y=g[1],A=g[2],m=g[3],_=g[4],R=Dr(x,A,l,u),I=Dr(y,m,l,u);return
|
||
|
R.concat([[Ue,_]],I)}return
|
||
|
l&&o.length>100&&a.length>100?nd(o,a,u):id(o,a,u)}function
|
||
|
nd(o,a,l){const u=od(o,a);o=u.chars1,a=u.chars2;const
|
||
|
h=u.lineArray,p=Dr(o,a,!1,l);ld(p,h),cs(p),p.push([Ue,""]);let
|
||
|
S=0,b=0,g=0,x="",y="";for(;S<p.length;){if(p[s][0]===ht)g++,y+=p[s][1];else if(p[s][0]="==at)b++,x+=p[S][1];else">=1&&g>=1){p.splice(S-b-g,b+g),S=S-b-g;const
|
||
|
A=Dr(x,y,!1,l);for(let
|
||
|
m=A.length-1;m>=0;m--)p.splice(S,0,A[m]);S=S+A.length}g=0,b=0,x="",y=""}S++}return
|
||
|
p.pop(),p}function id(o,a,l){const
|
||
|
u=o.length,h=a.length,p=Math.ceil((u+h)/2),S=p,b=2*p,g=new
|
||
|
Array(b),x=new Array(b);for(let W=0;W<b;w++)g[w]=-1,x[w]=-1;g[s+1]=0,x[s+1]=0;const y="u-h,A=y%2!=0;let" m="0,_=0,R=0,I=0;for(let" w="0;W<p&&!(new" date().gettime()="">l);W++){for(let N=-W+m;N<=W-_;N+=2){const T=S+N;let E;N===-W||N!==W&&g[T-1]<g[t+1]?e=g[t+1]:e=g[t-1]+1;let c="E-N;for(;E<u&&c<h&&o.charAt(E)===a.charAt(c);)E++,c++;if(g[T]=E,E">u)_+=2;else if(c>h)m+=2;else if(A){const w=S+y-N;if(w>=0&&w<b&&x[w]!==-1){const k="u-x[w];if(E">=k)return us(o,a,E,c,l)}}}for(let N=-W+R;N<=W-I;N+=2){const T=S+N;let E;N===-W||N!==W&&x[T-1]<x[t+1]?e=x[t+1]:e=x[t-1]+1;let c="E-N;for(;E<u&&c<h&&o.charAt(u-E-1)===a.charAt(h-c-1);)E++,c++;if(x[T]=E,E">u)I+=2;else if(c>h)R+=2;else if(!A){const w=S+y-N;if(w>=0&&w<b&&g[w]!==-1){const k="g[w],O=S+k-w;if(E=u-E,k">=E)return
|
||
|
us(o,a,k,O,l)}}}}return[[at,o],[ht,a]]}function us(o,a,l,u,h){const
|
||
|
p=o.substring(0,l),S=a.substring(0,u),b=o.substring(l),g=a.substring(u),x=Dr(p,S,!1,h),y=Dr(b,g,!1,h);return
|
||
|
x.concat(y)}function od(o,a){const l=[],u={};l[0]="";function h(b){let
|
||
|
g="",x=0,y=-1,A=l.length;for(;y<b.length-1;){y=b.indexof(` `,x),y="==-1&&(y=b.length-1);const" m="b.substring(x,y+1);x=y+1,(u.hasOwnProperty?u.hasOwnProperty(m):u[m]!==void" 0)?g+="String.fromCharCode(u[m]):(g+=String.fromCharCode(A),u[m]=A,l[A++]=m)}return" g}const="" p="h(o),S=h(a);return{chars1:p,chars2:S,lineArray:l}}function" ld(o,a){for(let="" l="0;l<o.length;l++){const" u="o[l][1],h=[];for(let" nl(o,a){if(!o||!a||o.charat(0)!="=a.charAt(0))return" 0;let="" h}function="" ui(o,a){if(!o||!a||o.charat(o.length-1)!="=a.charAt(a.length-1))return" fs(o,a){const="" 0;l="">u?o=o.substring(l-u):l<u&&(a=a.substring(0,l));const h="Math.min(l,u);if(o===a)return" h;let="" p="0,S=1;for(;;){const" b="o.substring(h-S),g=a.indexOf(b);if(g===-1)return" p;s+="g,(g===0||o.substring(h-S)===a.substring(0,S))&&(p=S,S++)}}function" ad(o,a){const="" l="o.length">a.length?o:a,u=o.length>a.length?a:o;if(l.length<4||u.length*2<l.length)return null;function="" h(_,r,i){const="" w="_.substring(I,I+Math.floor(_.length/4));let" n="-1,T="",E,c,w,k;for(;(N=R.indexOf(W,N+1))!==-1;){const" o="nl(_.substring(I),R.substring(N)),L=Ui(_.substring(0,I),R.substring(0,N));T.length<L+O&&(T=R.substring(N-L,N)+R.substring(N,N+O),E=_.substring(0,I-L),c=_.substring(I+O),w=R.substring(0,N-L),k=R.substring(N+O))}return" t.length*2="">=_.length?[E,c,w,k,T]:null}const
|
||
|
p=h(l,u,Math.ceil(l.length/4)),S=h(l,u,Math.ceil(l.length/2));let
|
||
|
b;if(!p&&!S)return
|
||
|
null;S?p?b=p[4].length>S[4].length?p:S:b=S:b=p;let
|
||
|
g,x,y,A;o.length>a.length?(g=b[0],x=b[1],y=b[2],A=b[3]):(y=b[0],A=b[1],g=b[2],x=b[3]);const
|
||
|
m=b[4];return[g,x,y,A,m]}function cs(o){let a=!1;const l=[];let
|
||
|
u=0,h=null,p=0,S=0,b=0,g=0,x=0;for(;p<o.length;)o[p][0]===ue?(l[u++]=p,s=g,b=x,g=0,x=0,h=o[p][1]):(o[p][0]===ht?g+=o[p][1].length:x+=o[p][1].length,h&&h.length<=math.max(s,b)&&h.length<=math.max(g,x)&&(o.splice(l[u-1],0,[at,h]),o[l[u-1]+1][0]=ht,u--,u--,p=u>0?l[u-1]:-1,S=0,b=0,g=0,x=0,h=null,a=!0)),p++;for(a&&Ki(o),hs(o),p=1;p<o.length;){if(o[p-1][0]===at&&o[p][0]===ht){const y="o[p-1][1],A=o[p][1],m=fs(y,A),_=fs(A,y);m">=_?(m>=y.length/2||m>=A.length/2)&&(o.splice(p,0,[Ue,A.substring(0,m)]),o[p-1][1]=y.substring(0,y.length-m),o[p+1][1]=A.substring(m),p++):(_>=y.length/2||_>=A.length/2)&&(o.splice(p,0,[Ue,y.substring(0,_)]),o[p-1][0]=ht,o[p-1][1]=A.substring(0,A.length-_),o[p+1][0]=at,o[p+1][1]=y.substring(_),p++),p++}p++}}function
|
||
|
hs(o){function a(u,h){if(!u||!h)return 6;const
|
||
|
p=u.charAt(u.length-1),S=h.charAt(0),b=p.match(ls),g=S.match(ls),x=b&&p.match(as),y=g&&S.match(as),A=x&&p.match(ss),m=y&&S.match(ss),_=A&&u.match(ed),R=m&&h.match(td);return
|
||
|
_||R?5:A||m?4:b&&!x&&y?3:x||y?2:b||g?1:0}let l=1;for(;l<o.length-1;){if(o[l-1][0]===ue&&o[l+1][0]===ue){let u="o[l-1][1],h=o[l][1],p=o[l+1][1];const" s="Ui(u,h);if(S){const" a="h.substring(h.length-S);u=u.substring(0,u.length-S),h=A+h.substring(0,h.length-S),p=A+p}let" b="u,g=h,x=p,y=a(u,h)+a(h,p);for(;h.charAt(0)===p.charAt(0);){u+=h.charAt(0),h=h.substring(1)+p.charAt(0),p=p.substring(1);const">=y&&(y=A,b=u,g=h,x=p)}o[l-1][1]!==b&&(b?o[l-1][1]=b:(o.splice(l-1,1),l--),o[l][1]=g,x?o[l+1][1]=x:(o.splice(l+1,1),l--))}l++}}function
|
||
|
sd(o){let a=!1;const l=[];let u=0,h=null,p=0,S=!1,b=!1,g=!1,x=!1;for(;p<o.length;)o[p][0]===ue?(o[p][1].length<os&&(g||x)?(l[u++]=p,s=g,b=x,h=o[p][1]):(u=0,h=null),g=x=!1):(o[p][0]===at?x=!0:g=!0,h&&(s&&b&&g&&x||h.length<os 2&&s+b+g+x="==3)&&(o.splice(l[u-1],0,[at,h]),o[l[u-1]+1][0]=ht,u--,h=null,S&&b?(g=x=!0,u=0):(u--,p=u">0?l[u-1]:-1,g=x=!1),a=!0)),p++;a&&Ki(o)}function Ki(o){o.push([Ue,""]);let a=0,l=0,u=0,h="",p="",S;for(;a<o.length;)o[a][0]===ht&&(u++,p+=o[a][1],a++),o[a][0]===at&&(l++,h+=o[a][1],a++),o[a][0]===ue&&(l+u>1?(l!==0&&u!==0&&(S=nl(p,h),S!==0&&(a-l-u>0&&o[a-l-u-1][0]===Ue?o[a-l-u-1][1]+=p.substring(0,S):(o.splice(0,0,[Ue,p.substring(0,S)]),a++),p=p.substring(S),h=h.substring(S)),S=Ui(p,h),S!==0&&(o[a][1]=p.substring(p.length-S)+o[a][1],p=p.substring(0,p.length-S),h=h.substring(0,h.length-S))),l===0?o.splice(a-u,l+u,[ht,p]):u===0?o.splice(a-l,l+u,[at,h]):o.splice(a-l-u,l+u,[at,h],[ht,p]),a=a-l-u+(l?1:0)+(u?1:0)+1):a!==0&&o[a-1][0]===Ue?(o[a-1][1]+=o[a][1],o.splice(a,1)):a++,u=0,l=0,h="",p="");o[o.length-1][1]===""&&o.pop();let
|
||
|
b=!1;for(a=1;a<o.length-1;)o[a-1][0]===ue&&o[a+1][0]===ue&&(o[a][1].substring(o[a][1].length-o[a-1][1].length)===o[a-1][1]?(o[a][1]=o[a-1][1]+o[a][1].substring(0,o[a][1].length-o[a-1][1].length),o[a+1][1]=o[a-1][1]+o[a+1][1],o.splice(a-1,1),b=!0):o[a][1].substring(0,o[a+1][1].length)===o[a+1][1]&&(o[a-1][1]+=o[a+1][1],o[a][1]=o[a][1].substring(o[a+1][1].length)+o[a+1][1],o.splice(a+1,1),b=!0)),a++;b&&ki(o)}function ds(o){const="" a="[];for(let" l="0;l<o.length;l++)o[l][0]!==ht&&(a[l]=o[l][1]);return" a.join("")}function="" ps(o){const="" il(o,a,l){if(l="Math.max(0,Math.min(l,o.length)),o===a)return" 0;if(o.length){if(o.substring(l,l+a.length)="==a)return" l}else="" return-1;return="" fd(o,a,l)}function="" ud(o){const="" a}function="" fd(o,a,l){if(a.length="">Tr)throw
|
||
|
new Error("Pattern too long for this browser.");const u=ud(a);function
|
||
|
h(m,_){const R=m/a.length,I=Math.abs(l-_);return R+I/Vh}let
|
||
|
p=Jh,S=o.indexOf(a,l);S!==-1&&(p=Math.min(h(0,S),p),S=o.lastIndexOf(a,l+a.length),S!==-1&&(p=Math.min(h(0,S),p)));const
|
||
|
b=1<<a.length-1;s=-1;let g,x,y="a.length+o.length,A;for(let" m="0;m<a.length;m++){for(g=0,x=y;g<x;)h(m,l+x)<=p?g=x:y=x,x=Math.floor((y-g)/2+g);y=x;let" _="Math.max(1,l-x+1);const" r="Math.min(l+x,o.length)+a.length,I=Array(R+2);I[R+1]=(1<<m)-1;for(let" w="R;W">=_;W--){const
|
||
|
|
||
|
N=u[o.charAt(W-1)];if(m===0?I[W]=(I[W+1]<<1|1)&N:I[W]=(I[W+1]<<1|1)&N|((A[W+1]|A[W])<<1|1)|A[W+1],I[W]&b){const
|
||
|
T=h(m,W-1);if(T<=p)if(p=T,S=W-1,S>l)_=Math.max(1,2*l-S);else
|
||
|
break}}if(h(m+1,l)>p)break;A=I}return S}function
|
||
|
gs(o,a){if(a.length===0)return;let
|
||
|
l=a.substring(o.start2,o.start2+o.length1),u=0;for(;a.indexOf(l)!==a.lastIndexOf(l)&&l.length<tr-ir-ir;)u+=ir,l=a.substring(o.start2-u,o.start2+o.length1+u);u+=ir;const h="a.substring(o.start2-u,o.start2);h&&o.diffs.unshift([Ue,h]);const" p="a.substring(o.start2+o.length1,o.start2+o.length1+u);p&&o.diffs.push([Ue,p]),o.start1-=h.length,o.start2-=h.length,o.length1+=h.length+p.length,o.length2+=h.length+p.length}function" cd(o,a,l){let="" u,h;typeof="" o="="string"&&typeof" a="="string"&&typeof" l="="undefined"&&(u=o,h=Dr(u,a,!0,void" 0),h.length="">2&&(cs(h),sd(h)));const p=[];let S=Gi(),b=0,g=0,x=0,y=u,A=u;for(let m=0;m<h.length;m++){const _="h[m][0],R=h[m][1];!b&&_!==Ue&&(S.start1=g,S.start2=x),_===ht&&(S.diffs[b++]=h[m],S.length2+=R.length,A=A.substring(0,x)+R+A.substring(x)),_===at&&(S.length1+=R.length,S.diffs[b++]=h[m],A=A.substring(0,x)+A.substring(x+R.length)),_===Ue&&(R.length<=2*ir&&b&&h.length!==m+1?(S.diffs[b++]=h[m],S.length1+=R.length,S.length2+=R.length):R.length">=2*ir&&b&&(gs(S,y),p.push(S),S=Gi(),b=0,y=A,g=x)),_!==ht&&(g+=R.length),_!==at&&(x+=R.length)}return
|
||
|
b&&(gs(S,y),p.push(S)),md(p)}function hd(o){const a=[];for(let
|
||
|
l=0;l<o.length;l++){const u="o[l],h=Gi();h.diffs=[];for(let" p="0;p<u.diffs.length;p++)h.diffs[p]=u.diffs[p].slice();h.start1=u.start1,h.start2=u.start2,h.length1=u.length1,h.length2=u.length2,a[l]=h}return" a}function="" dd(o){let="" a="0,l=0,u=0;for(let" h="0;h<o.length;h++){const" a+="Math.max(l,u),a}function" pd(o,a){if(a="yd(a),a.length===0)return[o,[]];a=hd(a);const" l="gd(a);o=l+o+l,vd(a);let" s="a[p].start2+u,b=ds(a[p].diffs);let" g,x="-1;if(b.length">Tr?(g=il(o,b.substring(0,Tr),S),g!==-1&&(x=il(o,b.substring(b.length-Tr),S+b.length-Tr),(x===-1||g>=x)&&(g=-1))):g=il(o,b,S),g===-1)h[p]=!1,u-=a[p].length2-a[p].length1;else{h[p]=!0,u=g-S;let
|
||
|
|
||
|
y;if(x===-1?y=o.substring(g,g+b.length):y=o.substring(g,x+Tr),b===y)o=o.substring(0,g)+ps(a[p].diffs)+o.substring(g+b.length);else{const
|
||
|
A=Dr(b,y,!1,void
|
||
|
0);if(b.length>Tr&&dd(A)/b.length>Zh)h[p]=!1;else{hs(A);let
|
||
|
m=0,_;for(let R=0;R<a[p].diffs.length;r++){const i="a[p].diffs[R];I[0]!==Ue&&(_=vs(A,m)),I[0]===ht?o=o.substring(0,g+_)+I[1]+o.substring(g+_):I[0]===at&&(o=o.substring(0,g+_)+o.substring(g+vs(A,m+I[1].length))),I[0]!==at&&(m+=I[1].length)}}}}}return" o="o.substring(l.length,o.length-l.length),[o,h]}function" vs(o,a){let="" l="0,u=0,h=0,p=0,S;for(S=0;S<o.length&&(o[S][0]!==ht&&(l+=o[S][1].length),o[S][0]!==at&&(u+=o[S][1].length),!(l">a));S++)h=l,p=u;return
|
||
|
o.length!==S&&o[S][0]===at?p:p+(a-h)}function gd(o){const
|
||
|
a=ir;let l="";for(let p=1;p<=a;p++)l+=String.fromCharCode(p);for(let
|
||
|
p=0;p<o.length;p++)o[p].start1+=a,o[p].start2+=a;let u="o[0],h=u.diffs;if(h.length===0||h[0][0]!==Ue)h.unshift([Ue,l]),u.start1-=a,u.start2-=a,u.length1+=a,u.length2+=a;else" if(a="">h[0][1].length){const
|
||
|
|
||
|
p=a-h[0][1].length;h[0][1]=l.substring(h[0][1].length)+h[0][1],u.start1-=p,u.start2-=p,u.length1+=p,u.length2+=p}if(u=o[o.length-1],h=u.diffs,h.length===0||h[h.length-1][0]!==Ue)h.push([Ue,l]),u.length1+=a,u.length2+=a;else
|
||
|
if(a>h[h.length-1][1].length){const
|
||
|
p=a-h[h.length-1][1].length;h[h.length-1][1]+=l.substring(0,p),u.length1+=p,u.length2+=p}return
|
||
|
l}function vd(o){const a=Tr;for(let l=0;l<o.length;l++){if(o[l].length1<=a)continue;const u="o[l];o.splice(l--,1);let" h="u.start1,p=u.start2,S="";for(;u.diffs.length!==0;){const" b="Gi();let" g="!0;for(b.start1=h-S.length,b.start2=p-S.length,S!==""&&(b.length1=b.length2=S.length,b.diffs.push([Ue,S]));u.diffs.length!==0&&b.length1<a-ir;){const" y="u.diffs[0][0];let" a="u.diffs[0][1];y===ht?(b.length2+=A.length,p+=A.length,b.diffs.push(u.diffs.shift()),g=!1):y===at&&b.diffs.length===1&&b.diffs[0][0]===Ue&&A.length">2*a?(b.length1+=A.length,h+=A.length,g=!1,b.diffs.push([y,A]),u.diffs.shift()):(A=A.substring(0,a-b.length1-ir),b.length1+=A.length,h+=A.length,y===Ue?(b.length2+=A.length,p+=A.length):g=!1,b.diffs.push([y,A]),A===u.diffs[0][1]?u.diffs.shift():u.diffs[0][1]=u.diffs[0][1].substring(A.length))}S=ps(b.diffs),S=S.substring(S.length-ir);const
|
||
|
|
||
|
x=ds(u.diffs).substring(0,ir);x!==""&&(b.length1+=x.length,b.length2+=x.length,b.diffs.length!==0&&b.diffs[b.diffs.length-1][0]===Ue?b.diffs[b.diffs.length-1][1]+=x:b.diffs.push([Ue,x])),g||o.splice(++l,0,b)}}}function
|
||
|
|
||
|
Gi(){return{diffs:[],start1:null,start2:null,length1:0,length2:0}}function
|
||
|
md(o){return
|
||
|
o.length?o.map(a=>a.diffs.concat([a.length1,a.length2,a.start1,a.start2])):void
|
||
|
0}function yd(o){return
|
||
|
o.map(a=>({diffs:Array.isArray(a[0])?a.slice(0,-4):[[0,a[1]],[a[0],a[2]],[0,a[3]]],length1:a[a.length-4],length2:a[a.length-3],start1:a[a.length-2],start2:a[a.length-1]}))}var
|
||
|
|
||
|
ji={},ol={},qi={},ll={},ms="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");ll.encode=function(o){if(0<=o&&o<ms.length)return ms[o];throw="" new="" typeerror("must="" be="" between="" 0="" and="" 63:="" "+o)},ll.decode="function(o){var" a="65,l=90,u=97,h=122,p=48,S=57,b=43,g=47,x=26,y=52;return" a<="o&&o<=l?o-a:u<=o&&o<=h?o-u+x:p<=o&&o<=S?o-p+y:o==b?62:o==g?63:-1};var" ys="ll,al=5,bs=1<<al,ws=bs-1,xs=bs;function" bd(o){return="" o<0?(-o<<1)+1:(o<<1)+0}function="" wd(o){var="">>1;return
|
||
|
a?-l:l}qi.encode=function(a){var l="",u,h=bd(a);do
|
||
|
u=h&ws,h>>>=al,h>0&&(u|=xs),l+=ys.encode(u);while(h>0);return
|
||
|
l},qi.decode=function(a,l,u){var
|
||
|
h=a.length,p=0,S=0,b,g;do{if(l>=h)throw new Error("Expected more
|
||
|
digits in base 64 VLQ
|
||
|
value.");if(g=ys.decode(a.charCodeAt(l++)),g===-1)throw new
|
||
|
Error("Invalid base64 digit:
|
||
|
"+a.charAt(l-1));b=!!(g&xs),g&=ws,p=p+(g<<s),s+=al}while(b);u.value=wd(p),u.rest=l};var gn="{};(function(o){function" a(c,w,k){if(w="" in="" c)return="" c[w];if(arguments.length="==3)return" k;throw="" new="" error('"'+w+'"="" is="" a="" required="" argument.')}o.getarg="a;var" l="/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,u=/^data:.+\,.+$/;function" h(c){var="" w="c.match(l);return" w?{scheme:w[1],auth:w[2],host:w[3],port:w[4],path:w[5]}:null}o.urlparse="h;function" p(c){var="" ;return="" c.scheme&&(w+="c.scheme+":"),w+="//",c.auth&&(w+=c.auth+"@"),c.host&&(w+=c.host),c.port&&(w+=":"+c.port),c.path&&(w+=c.path),w}o.urlGenerate=p;function" s(c){var="" c;w="k.path}for(var" o="o.isAbsolute(w),L=w.split(/\/+/),j,B=0,U=L.length-1;U">=0;U--)j=L[U],j==="."?L.splice(U,1):j===".."?B++:B>0&&(j===""?(L.splice(U+1,B),B=0):(L.splice(U,2),B--));return
|
||
|
|
||
|
w=L.join("/"),w===""&&(w=O?"/":"."),k?(k.path=w,p(k)):w}o.normalize=S;function
|
||
|
b(c,w){c===""&&(c="."),w===""&&(w=".");var
|
||
|
k=h(w),O=h(c);if(O&&(c=O.path||"/"),k&&!k.scheme)return
|
||
|
O&&(k.scheme=O.scheme),p(k);if(k||w.match(u))return
|
||
|
w;if(O&&!O.host&&!O.path)return O.host=w,p(O);var
|
||
|
L=w.charAt(0)==="/"?w:S(c.replace(/\/+$/,"")+"/"+w);return
|
||
|
O?(O.path=L,p(O)):L}o.join=b,o.isAbsolute=function(c){return
|
||
|
c.charAt(0)==="/"||l.test(c)};function
|
||
|
g(c,w){c===""&&(c="."),c=c.replace(/\/$/,"");for(var
|
||
|
k=0;w.indexOf(c+"/")!==0;){var
|
||
|
O=c.lastIndexOf("/");if(O<0||(c=c.slice(0,O),c.match(/^([^\/]+:\/)?\/*$/)))return
|
||
|
w;++k}return
|
||
|
Array(k+1).join("../")+w.substr(c.length+1)}o.relative=g;var
|
||
|
x=function(){var c=Object.create(null);return!("__proto__"in
|
||
|
c)}();function y(c){return c}function A(c){return
|
||
|
_(c)?"$"+c:c}o.toSetString=x?y:A;function m(c){return
|
||
|
_(c)?c.slice(1):c}o.fromSetString=x?y:m;function _(c){if(!c)return!1;var
|
||
|
|
||
|
w=c.length;if(w<9||c.charCodeAt(w-1)!==95||c.charCodeAt(w-2)!==95||c.charCodeAt(w-3)!==111||c.charCodeAt(w-4)!==116||c.charCodeAt(w-5)!==111||c.charCodeAt(w-6)!==114||c.charCodeAt(w-7)!==112||c.charCodeAt(w-8)!==95||c.charCodeAt(w-9)!==95)return!1;for(var
|
||
|
k=w-10;k>=0;k--)if(c.charCodeAt(k)!==36)return!1;return!0}function
|
||
|
R(c,w,k){var O=W(c.source,w.source);return
|
||
|
O!==0||(O=c.originalLine-w.originalLine,O!==0)||(O=c.originalColumn-w.originalColumn,O!==0||k)||(O=c.generatedColumn-w.generatedColumn,O!==0)||(O=c.generatedLine-w.generatedLine,O!==0)?O:W(c.name,w.name)}o.compareByOriginalPositions=R;function
|
||
|
I(c,w,k){var O=c.generatedLine-w.generatedLine;return
|
||
|
O!==0||(O=c.generatedColumn-w.generatedColumn,O!==0||k)||(O=W(c.source,w.source),O!==0)||(O=c.originalLine-w.originalLine,O!==0)||(O=c.originalColumn-w.originalColumn,O!==0)?O:W(c.name,w.name)}o.compareByGeneratedPositionsDeflated=I;function
|
||
|
W(c,w){return c===w?0:c===null?1:w===null?-1:c>w?1:-1}function
|
||
|
N(c,w){var k=c.generatedLine-w.generatedLine;return
|
||
|
k!==0||(k=c.generatedColumn-w.generatedColumn,k!==0)||(k=W(c.source,w.source),k!==0)||(k=c.originalLine-w.originalLine,k!==0)||(k=c.originalColumn-w.originalColumn,k!==0)?k:W(c.name,w.name)}o.compareByGeneratedPositionsInflated=N;function
|
||
|
T(c){return
|
||
|
JSON.parse(c.replace(/^\)]}'[^\n]*\n/,""))}o.parseSourceMapInput=T;function
|
||
|
|
||
|
E(c,w,k){if(w=w||"",c&&(c[c.length-1]!=="/"&&w[0]!=="/"&&(c+="/"),w=c+w),k){var
|
||
|
O=h(k);if(!O)throw new Error("sourceMapURL could not be
|
||
|
parsed");if(O.path){var
|
||
|
L=O.path.lastIndexOf("/");L>=0&&(O.path=O.path.substring(0,L+1))}w=b(p(O),w)}return
|
||
|
S(w)}o.computeSourceURL=E})(gn);var
|
||
|
sl={},ul=gn,fl=Object.prototype.hasOwnProperty,$r=typeof
|
||
|
Map!="undefined";function Mr(){this._array=[],this._set=$r?new
|
||
|
Map:Object.create(null)}Mr.fromArray=function(a,l){for(var u=new
|
||
|
Mr,h=0,p=a.length;h<p;h++)u.add(a[h],l);return u},mr.prototype.size="function(){return" $r?this._set.size:object.getownpropertynames(this._set).length},mr.prototype.add="function(a,l){var" u="$r?a:ul.toSetString(a),h=$r?this.has(a):fl.call(this._set,u),p=this._array.length;(!h||l)&&this._array.push(a),h||($r?this._set.set(a,p):this._set[u]=p)},Mr.prototype.has=function(a){if($r)return" this._set.has(a);var="" l="ul.toSetString(a);return" fl.call(this._set,l)},mr.prototype.indexof="function(a){if($r){var">=0)return
|
||
|
l}else{var u=ul.toSetString(a);if(fl.call(this._set,u))return
|
||
|
this._set[u]}throw new Error('"'+a+'" is not in the
|
||
|
set.')},Mr.prototype.at=function(a){if(a>=0&&a<this._array.length)return this._array[a];throw="" new="" error("no="" element="" indexed="" by="" "+a)},mr.prototype.toarray="function(){return" this._array.slice()},sl.arrayset="Mr;var" ks="{},Ss=gn;function" xd(o,a){var="" l="o.generatedLine,u=a.generatedLine,h=o.generatedColumn,p=a.generatedColumn;return" u="">l||u==l&&p>=h||Ss.compareByGeneratedPositionsInflated(o,a)<=0}function
|
||
|
|
||
|
Xi(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Xi.prototype.unsortedForEach=function(a,l){this._array.forEach(a,l)},Xi.prototype.add=function(a){xd(this._last,a)?(this._last=a,this._array.push(a)):(this._sorted=!1,this._array.push(a))},Xi.prototype.toArray=function(){return
|
||
|
|
||
|
this._sorted||(this._array.sort(Ss.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},ks.MappingList=Xi;var
|
||
|
Yn=qi,mt=gn,Yi=sl.ArraySet,kd=ks.MappingList;function
|
||
|
er(o){o||(o={}),this._file=mt.getArg(o,"file",null),this._sourceRoot=mt.getArg(o,"sourceRoot",null),this._skipValidation=mt.getArg(o,"skipValidation",!1),this._sources=new
|
||
|
Yi,this._names=new Yi,this._mappings=new
|
||
|
kd,this._sourcesContents=null}er.prototype._version=3,er.fromSourceMap=function(a){var
|
||
|
l=a.sourceRoot,u=new er({file:a.file,sourceRoot:l});return
|
||
|
a.eachMapping(function(h){var
|
||
|
p={generated:{line:h.generatedLine,column:h.generatedColumn}};h.source!=null&&(p.source=h.source,l!=null&&(p.source=mt.relative(l,p.source)),p.original={line:h.originalLine,column:h.originalColumn},h.name!=null&&(p.name=h.name)),u.addMapping(p)}),a.sources.forEach(function(h){var
|
||
|
|
||
|
p=h;l!==null&&(p=mt.relative(l,h)),u._sources.has(p)||u._sources.add(p);var
|
||
|
|
||
|
S=a.sourceContentFor(h);S!=null&&u.setSourceContent(h,S)}),u},er.prototype.addMapping=function(a){var
|
||
|
|
||
|
l=mt.getArg(a,"generated"),u=mt.getArg(a,"original",null),h=mt.getArg(a,"source",null),p=mt.getArg(a,"name",null);this._skipValidation||this._validateMapping(l,u,h,p),h!=null&&(h=String(h),this._sources.has(h)||this._sources.add(h)),p!=null&&(p=String(p),this._names.has(p)||this._names.add(p)),this._mappings.add({generatedLine:l.line,generatedColumn:l.column,originalLine:u!=null&&u.line,originalColumn:u!=null&&u.column,source:h,name:p})},er.prototype.setSourceContent=function(a,l){var
|
||
|
|
||
|
u=a;this._sourceRoot!=null&&(u=mt.relative(this._sourceRoot,u)),l!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[mt.toSetString(u)]=l):this._sourcesContents&&(delete
|
||
|
|
||
|
this._sourcesContents[mt.toSetString(u)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},er.prototype.applySourceMap=function(a,l,u){var
|
||
|
h=l;if(l==null){if(a.file==null)throw new
|
||
|
Error(`SourceMapGenerator.prototype.applySourceMap requires either an
|
||
|
explicit source file, or the source map's "file" property. Both were
|
||
|
omitted.`);h=a.file}var
|
||
|
p=this._sourceRoot;p!=null&&(h=mt.relative(p,h));var S=new
|
||
|
Yi,b=new
|
||
|
Yi;this._mappings.unsortedForEach(function(g){if(g.source===h&&g.originalLine!=null){var
|
||
|
|
||
|
x=a.originalPositionFor({line:g.originalLine,column:g.originalColumn});x.source!=null&&(g.source=x.source,u!=null&&(g.source=mt.join(u,g.source)),p!=null&&(g.source=mt.relative(p,g.source)),g.originalLine=x.line,g.originalColumn=x.column,x.name!=null&&(g.name=x.name))}var
|
||
|
y=g.source;y!=null&&!S.has(y)&&S.add(y);var
|
||
|
A=g.name;A!=null&&!b.has(A)&&b.add(A)},this),this._sources=S,this._names=b,a.sources.forEach(function(g){var
|
||
|
|
||
|
x=a.sourceContentFor(g);x!=null&&(u!=null&&(g=mt.join(u,g)),p!=null&&(g=mt.relative(p,g)),this.setSourceContent(g,x))},this)},er.prototype._validateMapping=function(a,l,u,h){if(l&&typeof
|
||
|
l.line!="number"&&typeof l.column!="number")throw new
|
||
|
Error("original.line and original.column are not numbers -- you probably
|
||
|
meant to omit the original mapping entirely and only map the generated
|
||
|
position. If so, pass null for the original mapping instead of an object
|
||
|
with empty or null values.");if(!(a&&"line"in
|
||
|
a&&"column"in
|
||
|
a&&a.line>0&&a.column>=0&&!l&&!u&&!h)){if(a&&"line"in
|
||
|
a&&"column"in a&&l&&"line"in
|
||
|
l&&"column"in
|
||
|
l&&a.line>0&&a.column>=0&&l.line>0&&l.column>=0&&u)return;throw
|
||
|
new Error("Invalid mapping:
|
||
|
"+JSON.stringify({generated:a,source:u,original:l,name:h}))}},er.prototype._serializeMappings=function(){for(var
|
||
|
|
||
|
a=0,l=1,u=0,h=0,p=0,S=0,b="",g,x,y,A,m=this._mappings.toArray(),_=0,R=m.length;_<r;_++){if(x=m[_],g="",x.generatedline!==l)for(a=0;x.generatedline!==l;)g+=";",l++;else if(_="">0){if(!mt.compareByGeneratedPositionsInflated(x,m[_-1]))continue;g+=","}g+=Yn.encode(x.generatedColumn-a),a=x.generatedColumn,x.source!=null&&(A=this._sources.indexOf(x.source),g+=Yn.encode(A-S),S=A,g+=Yn.encode(x.originalLine-1-h),h=x.originalLine-1,g+=Yn.encode(x.originalColumn-u),u=x.originalColumn,x.name!=null&&(y=this._names.indexOf(x.name),g+=Yn.encode(y-p),p=y)),b+=g}return
|
||
|
b},er.prototype._generateSourcesContent=function(a,l){return
|
||
|
a.map(function(u){if(!this._sourcesContents)return
|
||
|
null;l!=null&&(u=mt.relative(l,u));var
|
||
|
h=mt.toSetString(u);return
|
||
|
Object.prototype.hasOwnProperty.call(this._sourcesContents,h)?this._sourcesContents[h]:null},this)},er.prototype.toJSON=function(){var
|
||
|
|
||
|
a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return
|
||
|
|
||
|
this._file!=null&&(a.file=this._file),this._sourceRoot!=null&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},er.prototype.toString=function(){return
|
||
|
JSON.stringify(this.toJSON())},ol.SourceMapGenerator=er;var
|
||
|
Qi={},Cs={};(function(o){o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2;function
|
||
|
a(l,u,h,p,S,b){var g=Math.floor((u-l)/2)+l,x=S(h,p[g],!0);return
|
||
|
x===0?g:x>0?u-g>1?a(g,u,h,p,S,b):b==o.LEAST_UPPER_BOUND?u<p.length?u:-1:g:g-l>1?a(l,g,h,p,S,b):b==o.LEAST_UPPER_BOUND?g:l<0?-1:l}o.search=function(u,h,p,S){if(h.length===0)return-1;var
|
||
|
|
||
|
b=a(-1,h.length,u,h,p,S||o.GREATEST_LOWER_BOUND);if(b<0)return-1;for(;b-1>=0&&p(h[b],h[b-1],!0)===0;)--b;return
|
||
|
b}})(Cs);var Ls={};function cl(o,a,l){var
|
||
|
u=o[a];o[a]=o[l],o[l]=u}function Sd(o,a){return
|
||
|
Math.round(o+Math.random()*(a-o))}function hl(o,a,l,u){if(l<u){var h="Sd(l,u),p=l-1;cl(o,h,u);for(var" s="o[u],b=l;b<u;b++)a(o[b],S)<=0&&(p+=1,cl(o,p,b));cl(o,p+1,b);var" g="p+1;hl(o,a,l,g-1),hl(o,a,g+1,u)}}Ls.quickSort=function(o,a){hl(o,a,0,o.length-1)};var" ke="gn,dl=Cs,vn=sl.ArraySet,Cd=qi,Qn=Ls.quickSort;function" tt(o,a){var="" l="o;return" typeof="" o="="string"&&(l=ke.parseSourceMapInput(o)),l.sections!=null?new" or(l,a):new="" mt(l,a)}tt.fromsourcemap="function(o,a){return" mt.fromsourcemap(o,a)},tt.prototype._version="3,tt.prototype.__generatedMappings=null,Object.defineProperty(tt.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return" this.__generatedmappings||this._parsemappings(this._mappings,this.sourceroot),this.__generatedmappings}}),tt.prototype.__originalmappings="null,Object.defineProperty(tt.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return" this.__originalmappings||this._parsemappings(this._mappings,this.sourceroot),this.__originalmappings}}),tt.prototype._charismappingseparator="function(a,l){var" u="a.charAt(l);return" new="" error("subclasses="" must="" implement="" _parsemappings")},tt.generated_order="1,tt.ORIGINAL_ORDER=2,tt.GREATEST_LOWER_BOUND=1,tt.LEAST_UPPER_BOUND=2,tt.prototype.eachMapping=function(a,l,u){var" tt.generated_order:s="this._generatedMappings;break;case" tt.original_order:s="this._originalMappings;break;default:throw" error("unknown="" order="" of="" iteration.")}var="" b="this.sourceRoot;S.map(function(g){var" x="g.source===null?null:this._sources.at(g.source);return">=0){var
|
||
|
S=this._originalMappings[p];if(a.column===void 0)for(var
|
||
|
b=S.originalLine;S&&S.originalLine===b;)h.push({line:ke.getArg(S,"generatedLine",null),column:ke.getArg(S,"generatedColumn",null),lastColumn:ke.getArg(S,"lastGeneratedColumn",null)}),S=this._originalMappings[++p];else
|
||
|
for(var
|
||
|
g=S.originalColumn;S&&S.originalLine===l&&S.originalColumn==g;)h.push({line:ke.getArg(S,"generatedLine",null),column:ke.getArg(S,"generatedColumn",null),lastColumn:ke.getArg(S,"lastGeneratedColumn",null)}),S=this._originalMappings[++p]}return
|
||
|
h},Qi.SourceMapConsumer=tt;function Mt(o,a){var l=o;typeof
|
||
|
o=="string"&&(l=ke.parseSourceMapInput(o));var
|
||
|
u=ke.getArg(l,"version"),h=ke.getArg(l,"sources"),p=ke.getArg(l,"names",[]),S=ke.getArg(l,"sourceRoot",null),b=ke.getArg(l,"sourcesContent",null),g=ke.getArg(l,"mappings"),x=ke.getArg(l,"file",null);if(u!=this._version)throw
|
||
|
new Error("Unsupported version:
|
||
|
"+u);S&&(S=ke.normalize(S)),h=h.map(String).map(ke.normalize).map(function(y){return
|
||
|
|
||
|
S&&ke.isAbsolute(S)&&ke.isAbsolute(y)?ke.relative(S,y):y}),this._names=vn.fromArray(p.map(String),!0),this._sources=vn.fromArray(h,!0),this._absoluteSources=this._sources.toArray().map(function(y){return
|
||
|
|
||
|
ke.computeSourceURL(S,y,a)}),this.sourceRoot=S,this.sourcesContent=b,this._mappings=g,this._sourceMapURL=a,this.file=x}Mt.prototype=Object.create(tt.prototype),Mt.prototype.consumer=tt,Mt.prototype._findSourceIndex=function(o){var
|
||
|
|
||
|
a=o;if(this.sourceRoot!=null&&(a=ke.relative(this.sourceRoot,a)),this._sources.has(a))return
|
||
|
this._sources.indexOf(a);var l;for(l=0;l<this._absolutesources.length;++l)if(this._absolutesources[l]==o)return l;return-1},mt.fromsourcemap="function(a,l){var" u="Object.create(Mt.prototype),h=u._names=vn.fromArray(a._names.toArray(),!0),p=u._sources=vn.fromArray(a._sources.toArray(),!0);u.sourceRoot=a._sourceRoot,u.sourcesContent=a._generateSourcesContent(u._sources.toArray(),u.sourceRoot),u.file=a._file,u._sourceMapURL=l,u._absoluteSources=u._sources.toArray().map(function(_){return" ke.computesourceurl(u.sourceroot,_,l)});for(var="" s="a._mappings.toArray().slice(),b=u.__generatedMappings=[],g=u.__originalMappings=[],x=0,y=S.length;x<y;x++){var" a="S[x],m=new" ts;m.generatedline="A.generatedLine,m.generatedColumn=A.generatedColumn,A.source&&(m.source=p.indexOf(A.source),m.originalLine=A.originalLine,m.originalColumn=A.originalColumn,A.name&&(m.name=h.indexOf(A.name)),g.push(m)),b.push(m)}return" qn(u.__originalmappings,ke.comparebyoriginalpositions),u},mt.prototype._version="3,Object.defineProperty(Mt.prototype,"sources",{get:function(){return" this._absolutesources.slice()}});function="" ts(){this.generatedline="0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}Mt.prototype._parseMappings=function(a,l){for(var" if(a.charat(y)="==",")y++;else{for(I=new" ts,i.generatedline="u,T=y;T<x&&!this._charIsMappingSeparator(a,T);T++);if(W=a.slice(y,T),N=A[W],N)y+=W.length;else{for(N=[];y<T;)Cd.decode(a,y,m),E=m.value,y=m.rest,N.push(E);if(N.length===2)throw" new="" error("found="" source,="" but="" no="" line="" and="" column");if(n.length="==3)throw" source="" line,="" column");a[w]="N}I.generatedColumn=h+N[0],h=I.generatedColumn,N.length">1&&(I.source=b+N[1],b+=N[1],I.originalLine=p+N[2],p=I.originalLine,I.originalLine+=1,I.originalColumn=S+N[3],S=I.originalColumn,N.length>4&&(I.name=g+N[4],g+=N[4])),R.push(I),typeof
|
||
|
|
||
|
I.originalLine=="number"&&_.push(I)}Qn(R,ke.compareByGeneratedPositionsDeflated),this.__generatedMappings=R,Qn(_,ke.compareByOriginalPositions),this.__originalMappings=_},Mt.prototype._findMapping=function(a,l,u,h,p,S){if(a[u]<=0)throw
|
||
|
new TypeError("Line must be greater than or equal to 1, got
|
||
|
"+a[u]);if(a[h]<0)throw new TypeError("Column must be greater than or
|
||
|
equal to 0, got "+a[h]);return
|
||
|
dl.search(a,l,p,S)},Mt.prototype.computeColumnSpans=function(){for(var
|
||
|
a=0;a<this._generatedmappings.length;++a){var l="this._generatedMappings[a];if(a+1<this._generatedMappings.length){var" u="this._generatedMappings[a+1];if(l.generatedLine===u.generatedLine){l.lastGeneratedColumn=u.generatedColumn-1;continue}}l.lastGeneratedColumn=1/0}},Mt.prototype.originalPositionFor=function(a){var">=0){var
|
||
|
h=this._generatedMappings[u];if(h.generatedLine===l.generatedLine){var
|
||
|
p=ke.getArg(h,"source",null);p!==null&&(p=this._sources.at(p),p=ke.computeSourceURL(this.sourceRoot,p,this._sourceMapURL));var
|
||
|
S=ke.getArg(h,"name",null);return
|
||
|
S!==null&&(S=this._names.at(S)),{source:p,line:ke.getArg(h,"originalLine",null),column:ke.getArg(h,"originalColumn",null),name:S}}}return{source:null,line:null,column:null,name:null}},Mt.prototype.hasContentsOfAllSources=function(){return
|
||
|
|
||
|
this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(a){return
|
||
|
|
||
|
a==null}):!1},Mt.prototype.sourceContentFor=function(a,l){if(!this.sourcesContent)return
|
||
|
null;var u=this._findSourceIndex(a);if(u>=0)return
|
||
|
this.sourcesContent[u];var
|
||
|
h=a;this.sourceRoot!=null&&(h=ke.relative(this.sourceRoot,h));var
|
||
|
|
||
|
p;if(this.sourceRoot!=null&&(p=ke.urlParse(this.sourceRoot))){var
|
||
|
|
||
|
S=h.replace(/^file:\/\//,"");if(p.scheme=="file"&&this._sources.has(S))return
|
||
|
|
||
|
this.sourcesContent[this._sources.indexOf(S)];if((!p.path||p.path=="/")&&this._sources.has("/"+h))return
|
||
|
this.sourcesContent[this._sources.indexOf("/"+h)]}if(l)return
|
||
|
null;throw new Error('"'+h+'" is not in the
|
||
|
SourceMap.')},Mt.prototype.generatedPositionFor=function(a){var
|
||
|
l=ke.getArg(a,"source");if(l=this._findSourceIndex(l),l<0)return{line:null,column:null,lastColumn:null};var
|
||
|
|
||
|
u={source:l,originalLine:ke.getArg(a,"line"),originalColumn:ke.getArg(a,"column")},h=this._findMapping(u,this._originalMappings,"originalLine","originalColumn",ke.compareByOriginalPositions,ke.getArg(a,"bias",tt.GREATEST_LOWER_BOUND));if(h>=0){var
|
||
|
|
||
|
p=this._originalMappings[h];if(p.source===u.source)return{line:ke.getArg(p,"generatedLine",null),column:ke.getArg(p,"generatedColumn",null),lastColumn:ke.getArg(p,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},Qi.BasicSourceMapConsumer=Mt;function
|
||
|
or(o,a){var l=o;typeof
|
||
|
o=="string"&&(l=ke.parseSourceMapInput(o));var
|
||
|
u=ke.getArg(l,"version"),h=ke.getArg(l,"sections");if(u!=this._version)throw
|
||
|
new Error("Unsupported version: "+u);this._sources=new
|
||
|
vn,this._names=new vn;var
|
||
|
p={line:-1,column:0};this._sections=h.map(function(S){if(S.url)throw new
|
||
|
Error("Support for url field in sections not implemented.");var
|
||
|
b=ke.getArg(S,"offset"),g=ke.getArg(b,"line"),x=ke.getArg(b,"column");if(g<p.line||g===p.line&&x<p.column)throw new="" error("section="" offsets="" must="" be="" ordered="" and="" non-overlapping.");return="" p="b,{generatedOffset:{generatedLine:g+1,generatedColumn:x+1},consumer:new" tt(ke.getarg(s,"map"),a)}})}or.prototype="Object.create(tt.prototype),or.prototype.constructor=tt,or.prototype._version=3,Object.defineProperty(or.prototype,"sources",{get:function(){for(var" o="[],a=0;a<this._sections.length;a++)for(var" l="0;l<this._sections[a].consumer.sources.length;l++)o.push(this._sections[a].consumer.sources[l]);return" o}}),or.prototype.originalpositionfor="function(a){var" b="p.generatedLine-S.generatedOffset.generatedLine;return" b||p.generatedcolumn-s.generatedoffset.generatedcolumn}),h="this._sections[u];return" h?h.consumer.originalpositionfor({line:l.generatedline-(h.generatedoffset.generatedline-1),column:l.generatedcolumn-(h.generatedoffset.generatedline="==l.generatedLine?h.generatedOffset.generatedColumn-1:0),bias:a.bias}):{source:null,line:null,column:null,name:null}},or.prototype.hasContentsOfAllSources=function(){return" this._sections.every(function(a){return="" a.consumer.hascontentsofallsources()})},or.prototype.sourcecontentfor="function(a,l){for(var" u="0;u<this._sections.length;u++){var" h="this._sections[u],p=h.consumer.sourceContentFor(a,!0);if(p)return" p}if(l)return="" null;throw="" error('"'+a+'"="" is="" not="" in="" the="" sourcemap.')},or.prototype.generatedpositionfor="function(a){for(var" p}}}return{line:null,column:null}},or.prototype._parsemappings="function(a,l){this.__generatedMappings=[],this.__originalMappings=[];for(var" x="null;b.name&&(x=h.consumer._names.at(b.name),this._names.add(x),x=this._names.indexOf(x));var" y="{source:g,generatedLine:b.generatedLine+(h.generatedOffset.generatedLine-1),generatedColumn:b.generatedColumn+(h.generatedOffset.generatedLine===b.generatedLine?h.generatedOffset.generatedColumn-1:0),originalLine:b.originalLine,originalColumn:b.originalColumn,name:x};this.__generatedMappings.push(y),typeof" y.originalline="="number"&&this.__originalMappings.push(y)}Qn(this.__generatedMappings,ke.compareByGeneratedPositionsDeflated),Qn(this.__originalMappings,ke.compareByOriginalPositions)},Qi.IndexedSourceMapConsumer=or;var" ms="{},Ld=ol.SourceMapGenerator,$i=gn,Td=/(\r?\n)/,Md=10,mn="$$$isSourceNode$$$";function" yt(o,a,l,u,h){this.children="[],this.sourceContents={},this.line=o==null?null:o,this.column=a==null?null:a,this.source=l==null?null:l,this.name=h==null?null:h,this[mn]=!0,u!=null&&this.add(u)}Yt.fromStringWithSourceMap=function(a,l,u){var" yt,p="a.split(Td),S=0,b=function(){var" m="R(),_=R()||"";return" m+_;function="" r(){return="" s<p.length?p[s++]:void="" 0}},g="1,x=0,y=null;return" l.eachmapping(function(m){if(y!="=null)if(g<m.generatedLine)A(y,b()),g++,x=0;else{var" _="p[S]||"",R=_.substr(0,m.generatedColumn-x);p[S]=_.substr(m.generatedColumn-x),x=m.generatedColumn,A(y,R),y=m;return}for(;g<m.generatedLine;)h.add(b()),g++;if(x<m.generatedColumn){var" a(m,_){if(m="==null||m.source===void" 0)h.add(_);else{var="" r="u?$i.join(u,m.source):m.source;h.add(new" yt(m.originalline,m.originalcolumn,r,_,m.name))}}},yt.prototype.add="function(a){if(Array.isArray(a))a.forEach(function(l){this.add(l)},this);else" if(a[mn]||typeof="" a="="string")a&&this.children.push(a);else" throw="" typeerror("expected="" sourcenode,="" string,="" or="" an="" array="" of="" sourcenodes="" strings.="" got="" "+a);return="" this},yt.prototype.prepend="function(a){if(Array.isArray(a))for(var">=0;l--)this.prepend(a[l]);else
|
||
|
if(a[mn]||typeof a=="string")this.children.unshift(a);else throw new
|
||
|
TypeError("Expected a SourceNode, string, or an array of SourceNodes and
|
||
|
strings. Got "+a);return this},Yt.prototype.walk=function(a){for(var
|
||
|
l,u=0,h=this.children.length;u<h;u++)l=this.children[u],l[mn]?l.walk(a):l!==""&&a(l,{source:this.source,line:this.line,column:this.column,name:this.name})},yt.prototype.join=function(a){var l,u,h="this.children.length;if(h">0){for(l=[],u=0;u<h-1;u++)l.push(this.children[u]),l.push(a);l.push(this.children[u]),this.children=l}return this},yt.prototype.replaceright="function(a,l){var" u="this.children[this.children.length-1];return" u[mn]?u.replaceright(a,l):typeof="" l="0,u=this.children.length;l<u;l++)this.children[l][mn]&&this.children[l].walkSourceContents(a);for(var" h="Object.keys(this.sourceContents),l=0,u=h.length;l<u;l++)a($i.fromSetString(h[l]),this.sourceContents[h[l]])},Yt.prototype.toString=function(){var" a="" ;return="" this.walk(function(l){a+="l}),a},Yt.prototype.toStringWithSourceMap=function(a){var" ld(a),h="!1,p=null,S=null,b=null,g=null;return" this.walk(function(x,y){l.code+="x,y.source!==null&&y.line!==null&&y.column!==null?((p!==y.source||S!==y.line||b!==y.column||g!==y.name)&&u.addMapping({source:y.source,original:{line:y.line,column:y.column},generated:{line:l.line,column:l.column},name:y.name}),p=y.source,S=y.line,b=y.column,g=y.name,h=!0):h&&(u.addMapping({generated:{line:l.line,column:l.column}}),p=null,h=!1);for(var" ad="navigator.userAgent.indexOf("Firefox")!==-1;function" od(o){let="">S.onchange(o.state),p=V=>pe=>(V(pe),h());o.selected.map(V=>o.state.selected=V.url||V.name);const
|
||
|
|
||
|
S={onchange:()=>{},setMiddle:V=>o.state.middle=V,toggleConsole:p(V=>o.state.console=o.state.console===!0?"collapsed":!0),resetSize:p(()=>S.setMiddle(50)),loaded:()=>{o.loading=!1,o.console.clearOnNext&&(o.console.output=[],o.console.clearOnNext=!1),typeof
|
||
|
|
||
|
S.onloaded=="function"&&S.onloaded(o.state)},fileSelectionChange:z,selectFileByIndex:L,toggleAutoReload:I,onConsoleKeyDown:T,onConsoleInput:N,consoleOutput:Q,startDragging:_,stopDragging:R,changeMiddle:te,setShareUrl:m,clearErrors:x,clearLogs:y,fileChange:X,initIframe:j,setState:A,resizing:ue,refresh:de,getLink:k,select:O,scroll:W};return
|
||
|
b(),S;function
|
||
|
b(){Promise.all(o.state.links.map(k)).then(()=>de({force:!0}))}function
|
||
|
g(){o.console.output=[{content:[Le("i","Console was
|
||
|
cleared")]}]}function
|
||
|
x(){o.console.output=o.console.output.filter(V=>V.type!=="error")}function
|
||
|
|
||
|
y(){o.console.output=o.console.output.filter(V=>V.type==="error")}function
|
||
|
|
||
|
A(V){o.state=$a(V),O(Gn(o.state,o.state.selected),!0),D(),Le.redraw()}function
|
||
|
|
||
|
m({dom:V}){V.addEventListener("mousedown",pe=>{V.href=Za(o.state)},!0)}function
|
||
|
_(){o.dragging=!0}function
|
||
|
R(){o.dragging=!1,o.refreshCm(!0),h()}function
|
||
|
I(){o.state.autoReload=!o.state.autoReload,h(),o.state.autoReload&&de()}function
|
||
|
W(V){o.state.scroll=V,h()}function
|
||
|
N(V){o.console.input=V.target.value}function
|
||
|
T(V){if((V.key==="Enter"||V.keyCode===13)&&!V.shiftKey&&!V.altKey)return
|
||
|
V.preventDefault(),o.console.output.push({type:"input",content:[">
|
||
|
"+o.console.input],number:"i"+o.console.inputNumber++}),o.console.input.indexOf("console.clear()")===0&&g(),E(),!1;(V.key==="ArrowUp"||V.keyCode===38)&&(o.console.historyNavigated||V.target.selectionStart===0)?(V.preventDefault(),c()):(V.key==="ArrowDown"||V.keyCode===40)&&(o.console.historyNavigated||o.console.input==="")?(V.preventDefault(),w()):o.console.historyNavigated=!1}function
|
||
|
|
||
|
E(V){!o.console.input||(o.iframe.contentWindow.postMessage({name:"eval",content:o.console.input},"*"),o.console.position=o.console.history.push(o.console.input),o.console.input="")}function
|
||
|
|
||
|
c(){o.console.historyNavigated=!0,o.console.position>=0&&(o.console.position-=1),o.console.input=o.console.history[o.console.position]||""}function
|
||
|
w(){o.console.historyNavigated=!0,o.console.position<o.console.history.length&&(o.console.position+=1),o.console.input=o.console.history[o.console.position]||""}function k(v){if(!v.content)return="" le.request(v.url,{responsetype:"text"}).then(pe="">{pe=pe.replace(/\r\n/g,`
|
||
|
`),!(pe.length>3e5)&&(V.content=pe,V.patched=V.patches?pd(pe,V.patches)[0]:pe,o.selected()===V&&O(V))}).catch(()=>{})}function
|
||
|
O(V,pe){typeof
|
||
|
V=="string"&&(V=Gn(o.state,V)),o.selected(V),!pe&&h()}function
|
||
|
L(V){const
|
||
|
pe=o.state.files.concat(o.state.links)[V];pe&&O(pe)}function
|
||
|
j(V){o.iframe=V,o.iframe.addEventListener("load",B)}function
|
||
|
B(){o.iframe.contentWindow.postMessage({name:"init",content:{id:o.id,state:{scroll:o.state.scroll,files:u,links:o.state.links.map(V=>({type:V.type,name:V.name,url:V.url,content:V.patched||V.content}))}}},"*")}function
|
||
|
U(V){const
|
||
|
pe=V.compiler==="function"?V.compiler:Qa[V.compiler||Ri(V.name)];return
|
||
|
pe?pe(V).then(Ne=>(Ne.error&&Q(Ne.error),Ne.map&&(V.map=Ne.map),{name:V.name,type:V.type,content:Ne.code})).catch(Ne=>(Q({content:["Error
|
||
|
compiling
|
||
|
"+V.compiler+":",Ph(Ne)],type:"error",stack:[]}),{name:V.name,type:V.type,content:V.content})):{name:V.name,type:V.type,content:V.content}}function
|
||
|
|
||
|
Q(V){o.console.clearOnNext&&(o.console.output=[],o.console.clearOnNext=!1),V.stack.forEach(pe=>{const
|
||
|
Ne=Gn(o.state,pe.file);if(!Ne||!Ne.map)return;const je=new
|
||
|
ji.SourceMapConsumer(Ne.map).originalPositionFor({line:pe.line,column:pe.column});pe.line=je.line,pe.column=je.column}),V.content&&!Array.isArray(V.content)&&(V.content=[V.content]),o.console.output.push(V)}function
|
||
|
|
||
|
X(V,pe,Ne){V.url?V.patched=pe:V.content=pe,Ne&&(V.selections=Ne==="0:0"?void
|
||
|
0:Ne),typeof S.onload=="function"&&S.onload(),D(V),h()}function
|
||
|
D(V){clearTimeout(l),l=setTimeout(()=>{if(!V)return
|
||
|
de();V.url&&(V.patches=cd(V.content,V.patched)),o.state.autoReload&&(V.type==="style"||V.type==="css")?(o.iframe.contentWindow.postMessage({name:"css",content:{name:V.name,url:V.url,content:V.patched||V.content}},"*"),typeof
|
||
|
|
||
|
S.onloaded=="function"&&S.onloaded(o.state),h()):de()},o.state.autoReloadDelay||400)}function
|
||
|
z(V,pe){pe=pe==="0:0"?void
|
||
|
0:pe,pe!==V.selections&&(V.selections=pe,h())}function
|
||
|
te(V){const{top:pe,left:Ne}=o.dom.getBoundingClientRect();o.state.middle=Math.min(Math.max(Math.round((o.vertical()?(V.clientY-pe+5)/(o.dom.offsetHeight-o.console.dom.offsetHeight):(V.clientX-Ne+5)/o.dom.offsetWidth)*1e4)/100,0),100),Le.redraw()}function
|
||
|
|
||
|
ue(){o.iOS||(o.resizing=!0,clearTimeout(a),a=setTimeout(()=>{o.resizing=!1,Le.redraw()},1e3))}function
|
||
|
de(V={}){if(!V.force&&!o.state.autoReload)return
|
||
|
o.hasChanges=!0;o.hasChanges=!1,o.loading=!0,o.console.clearOnNext=!0,Promise.all(o.state.files.map(U)).then(Me),Le.redraw()}function
|
||
|
Me(V){if(!o.iframe)return
|
||
|
setTimeout(Me,10,V);Ad&&(o.iframe.src+="?"),u=V,o.iframe.src=o.runtimeUrl}}var
|
||
|
_d={listen:(o,a)=>{const
|
||
|
l={loaded:a.loaded,console:a.consoleOutput,resize:a.resizing,scroll:a.scroll};window.addEventListener("message",({data:u})=>{u.flems!==o.id||!(u.name
|
||
|
in l)||(l[u.name](u.content),Le.redraw())})}};let As=!1;function
|
||
|
Zi(o,a={},l){const u=Sh(o,a,l),h=Od(u);return
|
||
|
As||(window.addEventListener("resize",()=>Le.redraw()),As=!0),_d.listen(u,h),Le.mount(o,{view:()=>bh(u,h)}),{focus:u.focus,reload:()=>h.refresh({force:!0}),onchange:p=>h.onchange=p,onload:p=>h.onload=p,onloaded:p=>h.onloaded=p,getLink:h.getLink,set:h.setState,redraw:Le.redraw}}return
|
||
|
Zi.defaults=Bi,Zi.createFlemsIoLink=Za,Zi.version="1.5.8",Zi});
|
||
|
//# sourceMappingURL=flems.js.map
|
||
|
// --></o.console.history.length&&(o.console.position+=1),o.console.input=o.console.history[o.console.position]||""}function></h-1;u++)l.push(this.children[u]),l.push(a);l.push(this.children[u]),this.children=l}return></h;u++)l=this.children[u],l[mn]?l.walk(a):l!==""&&a(l,{source:this.source,line:this.line,column:this.column,name:this.name})},yt.prototype.join=function(a){var></p.line||g===p.line&&x<p.column)throw></this._generatedmappings.length;++a){var></this._absolutesources.length;++l)if(this._absolutesources[l]==o)return></u){var></p.length?u:-1:g:g-l></r;_++){if(x=m[_],g="",x.generatedline!==l)for(a=0;x.generatedline!==l;)g+=";",l++;else></this._array.length)return></p;h++)u.add(a[h],l);return></s),s+=al}while(b);u.value=wd(p),u.rest=l};var></ms.length)return></o.length;l++){if(o[l].length1<=a)continue;const></o.length;p++)o[p].start1+=a,o[p].start2+=a;let></a[p].diffs.length;r++){const></o.length;l++){const></h.length;m++){const></tr-ir-ir;)u+=ir,l=a.substring(o.start2-u,o.start2+o.length1+u);u+=ir;const></a.length-1;s=-1;let></o.length-1;)o[a-1][0]===ue&&o[a+1][0]===ue&&(o[a][1].substring(o[a][1].length-o[a-1][1].length)===o[a-1][1]?(o[a][1]=o[a-1][1]+o[a][1].substring(0,o[a][1].length-o[a-1][1].length),o[a+1][1]=o[a-1][1]+o[a+1][1],o.splice(a-1,1),b=!0):o[a][1].substring(0,o[a+1][1].length)===o[a+1][1]&&(o[a-1][1]+=o[a+1][1],o[a][1]=o[a][1].substring(o[a+1][1].length)+o[a+1][1],o.splice(a+1,1),b=!0)),a++;b&&ki(o)}function></o.length;)o[a][0]===ht&&(u++,p+=o[a][1],a++),o[a][0]===at&&(l++,h+=o[a][1],a++),o[a][0]===ue&&(l+u></o.length;)o[p][0]===ue?(o[p][1].length<os&&(g||x)?(l[u++]=p,s=g,b=x,h=o[p][1]):(u=0,h=null),g=x=!1):(o[p][0]===at?x=!0:g=!0,h&&(s&&b&&g&&x||h.length<os></o.length-1;){if(o[l-1][0]===ue&&o[l+1][0]===ue){let></o.length;){if(o[p-1][0]===at&&o[p][0]===ht){const></o.length;)o[p][0]===ue?(l[u++]=p,s=g,b=x,g=0,x=0,h=o[p][1]):(o[p][0]===ht?g+=o[p][1].length:x+=o[p][1].length,h&&h.length<=math.max(s,b)&&h.length<=math.max(g,x)&&(o.splice(l[u-1],0,[at,h]),o[l[u-1]+1][0]=ht,u--,u--,p=u></l.length)return></u&&(a=a.substring(0,l));const></b.length-1;){y=b.indexof(`></b&&g[w]!==-1){const></x[t+1]?e=x[t+1]:e=x[t-1]+1;let></b&&x[w]!==-1){const></g[t+1]?e=g[t+1]:e=g[t-1]+1;let></b;w++)g[w]=-1,x[w]=-1;g[s+1]=0,x[s+1]=0;const></p.length;){if(p[s][0]===ht)g++,y+=p[s][1];else></u;l++)if(o[l]===a)return></y.length;a++)x+="></o.offsetheight,toolbar:()=></c;a++)k=k<<1|m&1,o==x-1?(o=0,w.push(y(k)),k=0):o++,m=m></c;a++)k=k<<1|m&1,o==x-1?(o=0,w.push(y(k)),k=0):o++,m=m></c;a++)k=k<<1|m,o==x-1?(o=0,w.push(y(k)),k=0):o++,m=0;for(m=n.charcodeat(0),a=0;a<16;a++)k=k<<1|m&1,o==x-1?(o=0,w.push(y(k)),k=0):o++,m=m></c;a++)k=k<<1,o==x-1?(o=0,w.push(y(k)),k=0):o++;for(m=n.charcodeat(0),a=0;a<8;a++)k=k<<1|m&1,o==x-1?(o=0,w.push(y(k)),k=0):o++,m=m></c;a++)k=k<<1|m&1,o==x-1?(o=0,w.push(y(k)),k=0):o++,m=m></c;a++)k=k<<1|m,o==x-1?(o=0,w.push(y(k)),k=0):o++,m=0;for(m=n.charcodeat(0),a=0;a<16;a++)k=k<<1|m&1,o==x-1?(o=0,w.push(y(k)),k=0):o++,m=m></a;y++)x[y]=g[y*2]*256+g[y*2+1];var></g.length;y++)p[g][g.charat(y)]=y}return></h.ch)return;if(></u.firstline()||y></u.firstline()||a></n.to&&g(i,t,t+1)}}})}(),function(o,a){(function(l){l(ct.exports)})(function(l){l.registerhelper("fold","brace",function(u,h){var></w.from&&(g(i,t.from,w.from),w.from=t.from),t.to></g.length;++x)if(g[x].__isfold)return!0}),l.commands.togglefold=function(b){b.foldcode(b.getcursor())},l.commands.fold=function(b){b.foldcode(b.getcursor(),null,"fold")},l.commands.unfold=function(b){b.foldcode(b.getcursor(),{scanup:!1},"unfold")},l.commands.foldall=function(b){b.operation(function(){for(var></arguments.length;q++){var></n;t++){var></m.length;n++)(n==m.length-1||m[n].head.line<m[n+1].head.line)&&y.indentline(m[n].head.line)}function></a.length;r++){if(!a[r].empty())return></v.length;pe++)v[pe]=de+v[pe]+me;n.replaceselections(v,"around"),v=n.listselections().slice();for(var></j.length;q++){var></c.length;w++){if(!c[w].empty())return></n.length;t++){var></n;++w){var></n;++w){var></w.length;o++){for(var></o?k.push(b,u):k.length&&(k[k.length-1]=u),o=u}c.operation(functi
|