1075 lines
2.9 MiB
JavaScript
1075 lines
2.9 MiB
JavaScript
|
|
function Mx(e,r){for(var t=0;t<r.length;t++){const n=r[t];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var _=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function H2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function WX(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var t=function n(){return this instanceof n?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),t}var iv={exports:{}},Me={};/**
|
|||
|
|
* @license React
|
|||
|
|
* react.production.min.js
|
|||
|
|
*
|
|||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the MIT license found in the
|
|||
|
|
* LICENSE file in the root directory of this source tree.
|
|||
|
|
*/var Vn=Symbol.for("react.element"),Ox=Symbol.for("react.portal"),Dx=Symbol.for("react.fragment"),kx=Symbol.for("react.strict_mode"),Rx=Symbol.for("react.profiler"),Ix=Symbol.for("react.provider"),Nx=Symbol.for("react.context"),Vx=Symbol.for("react.forward_ref"),Px=Symbol.for("react.suspense"),Bx=Symbol.for("react.memo"),Fx=Symbol.for("react.lazy"),Ou=Symbol.iterator;function $x(e){return e===null||typeof e!="object"?null:(e=Ou&&e[Ou]||e["@@iterator"],typeof e=="function"?e:null)}var av={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ov=Object.assign,sv={};function vr(e,r,t){this.props=e,this.context=r,this.refs=sv,this.updater=t||av}vr.prototype.isReactComponent={};vr.prototype.setState=function(e,r){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,r,"setState")};vr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function lv(){}lv.prototype=vr.prototype;function Al(e,r,t){this.props=e,this.context=r,this.refs=sv,this.updater=t||av}var wl=Al.prototype=new lv;wl.constructor=Al;ov(wl,vr.prototype);wl.isPureReactComponent=!0;var Du=Array.isArray,uv=Object.prototype.hasOwnProperty,Hl={current:null},cv={key:!0,ref:!0,__self:!0,__source:!0};function Tv(e,r,t){var n,i={},a=null,o=null;if(r!=null)for(n in r.ref!==void 0&&(o=r.ref),r.key!==void 0&&(a=""+r.key),r)uv.call(r,n)&&!cv.hasOwnProperty(n)&&(i[n]=r[n]);var T=arguments.length-2;if(T===1)i.children=t;else if(1<T){for(var c=Array(T),Q=0;Q<T;Q++)c[Q]=arguments[Q+2];i.children=c}if(e&&e.defaultProps)for(n in T=e.defaultProps,T)i[n]===void 0&&(i[n]=T[n]);return{$$typeof:Vn,type:e,key:a,ref:o,props:i,_owner:Hl.current}}function jx(e,r){return{$$typeof:Vn,type:e.type,key:r,ref:e.ref,props:e.props,_owner:e._owner}}function Cl(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vn}function Ux(e){var r={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(t){return r[t]})}var ku=/\/+/g;function x5(e,r){return typeof e=="object"&&e!==null&&e.key!=null?Ux(""+e.key):r.toString(36)}function l4(e,r,t,n,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Vn:case Ox:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+x5(o,0):n,Du(i)?(t="",e!=null&&(t=e.replace(ku,"$&/")+"/"),l4(i,r,t,"",function(Q){return Q})):i!=null&&(Cl(i)&&(i=jx(i,t+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(ku,"$&/")+"/")+e)),r.push(i)),1;if(o=0,n=n===""?".":n+":",Du(e))for(var T=0;T<e.length;T++){a=e[T];var c=n+x5(a,T);o+=l4(a,r,t,c,i)}else if(c=$x(e),typeof c=="function")for(e=c.call(e),T=0;!(a=e.next()).done;)a=a.value,c=n+x5(a,T++),o+=l4(a,r,t,c,i);else if(a==="object")throw r=String(e),Error("Objects are not valid as a React child (found: "+(r==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return o}function w3(e,r,t){if(e==null)return e;var n=[],i=0;return l4(e,n,"","",function(a){return r.call(t,a,i++)}),n}function Gx(e){if(e._status===-1){var r=e._result;r=r(),r.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=r)}if(e._status===1)return e._result.default;throw e._result}var St={current:null},u4={transition:null},Wx={ReactCurrentDispatcher:St,ReactCurrentBatchConfig:u4,ReactCurrentOwner:Hl};function Qv(){throw Error("act(...) is not supported in production builds of React.")}Me.Children={map:w3,forEach:function(e,r,t){w3(e,function(){r.apply(this,arguments)},t)},count:function(e){var r=0;return w3(e,function(){r++}),r},toArray:function(e){return w3(e,function(r){return r})||[]},only:function(e){if(!Cl(e))throw Error("React.Children.only expected to receive a sin
|
|||
|
|
* @license React
|
|||
|
|
* react-is.production.min.js
|
|||
|
|
*
|
|||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the MIT license found in the
|
|||
|
|
* LICENSE file in the root directory of this source tree.
|
|||
|
|
*/var Ml=Symbol.for("react.element"),Ol=Symbol.for("react.portal"),j4=Symbol.for("react.fragment"),U4=Symbol.for("react.strict_mode"),G4=Symbol.for("react.profiler"),W4=Symbol.for("react.provider"),z4=Symbol.for("react.context"),Yx=Symbol.for("react.server_context"),q4=Symbol.for("react.forward_ref"),Z4=Symbol.for("react.suspense"),X4=Symbol.for("react.suspense_list"),K4=Symbol.for("react.memo"),Y4=Symbol.for("react.lazy"),Jx=Symbol.for("react.offscreen"),gv;gv=Symbol.for("react.module.reference");function Gt(e){if(typeof e=="object"&&e!==null){var r=e.$$typeof;switch(r){case Ml:switch(e=e.type,e){case j4:case G4:case U4:case Z4:case X4:return e;default:switch(e=e&&e.$$typeof,e){case Yx:case z4:case q4:case Y4:case K4:case W4:return e;default:return r}}case Ol:return r}}}Fe.ContextConsumer=z4;Fe.ContextProvider=W4;Fe.Element=Ml;Fe.ForwardRef=q4;Fe.Fragment=j4;Fe.Lazy=Y4;Fe.Memo=K4;Fe.Portal=Ol;Fe.Profiler=G4;Fe.StrictMode=U4;Fe.Suspense=Z4;Fe.SuspenseList=X4;Fe.isAsyncMode=function(){return!1};Fe.isConcurrentMode=function(){return!1};Fe.isContextConsumer=function(e){return Gt(e)===z4};Fe.isContextProvider=function(e){return Gt(e)===W4};Fe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ml};Fe.isForwardRef=function(e){return Gt(e)===q4};Fe.isFragment=function(e){return Gt(e)===j4};Fe.isLazy=function(e){return Gt(e)===Y4};Fe.isMemo=function(e){return Gt(e)===K4};Fe.isPortal=function(e){return Gt(e)===Ol};Fe.isProfiler=function(e){return Gt(e)===G4};Fe.isStrictMode=function(e){return Gt(e)===U4};Fe.isSuspense=function(e){return Gt(e)===Z4};Fe.isSuspenseList=function(e){return Gt(e)===X4};Fe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===j4||e===G4||e===U4||e===Z4||e===X4||e===Jx||typeof e=="object"&&e!==null&&(e.$$typeof===Y4||e.$$typeof===K4||e.$$typeof===W4||e.$$typeof===z4||e.$$typeof===q4||e.$$typeof===gv||e.getModuleId!==void 0)};Fe.typeOf=Gt;pv.exports=Fe;var eE=pv.exports;const tE=H2(eE);function or(e){"@babel/helpers - typeof";return or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},or(e)}function rE(e,r){if(or(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(or(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function mv(e){var r=rE(e,"string");return or(r)=="symbol"?r:r+""}function R8(e,r){return R8=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},R8(e,r)}function nE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var vv={exports:{}};(function(e,r){(function(){var t="ace",n=function(){return this}();!n&&typeof window<"u"&&(n=window);var i=function(s,l,u){if(typeof s!="string"){i.original?i.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(u=l),i.modules[s]||(i.payloads[s]=u,i.modules[s]=null)};i.modules={},i.payloads={};var a=function(s,l,u){if(typeof l=="string"){var d=c(s,l);if(d!=null)return u&&u(),d}else if(Object.prototype.toString.call(l)==="[object Array]"){for(var f=[],h=0,p=l.length;h<p;++h){var g=c(s,l[h]);if(g==null&&o.original)return;f.push(g)}return u&&u.apply(null,f)||!0}},o=function(s,l){var u=a("",s,l);return u==null&&o.original?o.original.apply(this,arguments):u},T=function(s,l){if(l.indexOf("!")!==-1){var u=l.split("!");return T(s,u[0])+"!"+T(s,u[1])}if(l.charAt(0)=="."){var d=s.split("/").slice(0,-1).join("/");for(l=d+"/"+l;l.indexOf(".")!==-1&&f!=l;){var f=l;l=l.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return l},c=function(s,l){l=T(s,l);var u=i.modules[l];if(!u){if(u=i.payloads[l],typeof u=="function"){var d={},f={id:l,uri:"",exports:d,packaged:!0},h=function(g,m){return a(l,g,m)},p=u(h,d,f);d=p||f.exports,i.modules[l]=d,delete i.payloads[l]}u=i.mo
|
|||
|
|
/*# sourceURL=ace/css/`+d+" */");var g=n.createElement("style");g.appendChild(p.createTextNode(u)),d&&(g.id=d),h==p&&(h=n.getDocumentHead(p)),h.insertBefore(g,h.firstChild)}}}if(n.importCssString=s,n.importCssStylsheet=function(u,d){n.buildDom(["link",{rel:"stylesheet",href:u}],n.getDocumentHead(d))},n.scrollbarWidth=function(u){var d=n.createElement("ace_inner");d.style.width="100%",d.style.minWidth="0px",d.style.height="200px",d.style.display="block";var f=n.createElement("ace_outer"),h=f.style;h.position="absolute",h.left="-10000px",h.overflow="hidden",h.width="200px",h.minWidth="0px",h.height="150px",h.display="block",f.appendChild(d);var p=u&&u.documentElement||document&&document.documentElement;if(!p)return 0;p.appendChild(f);var g=d.offsetWidth;h.overflow="scroll";var m=d.offsetWidth;return g===m&&(m=f.clientWidth),p.removeChild(f),g-m},n.computedStyle=function(u,d){return window.getComputedStyle(u,"")||{}},n.setStyle=function(u,d,f){u[d]!==f&&(u[d]=f)},n.HAS_CSS_ANIMATION=!1,n.HAS_CSS_TRANSFORMS=!1,n.HI_DPI=a.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,a.isChromeOS&&(n.HI_DPI=!1),typeof document<"u"){var l=document.createElement("div");n.HI_DPI&&l.style.transform!==void 0&&(n.HAS_CSS_TRANSFORMS=!0),!a.isEdge&&typeof l.style.animationName<"u"&&(n.HAS_CSS_ANIMATION=!0),l=null}n.HAS_CSS_TRANSFORMS?n.translate=function(u,d,f){u.style.transform="translate("+Math.round(d)+"px, "+Math.round(f)+"px)"}:n.translate=function(u,d,f){u.style.top=Math.round(f)+"px",u.style.left=Math.round(d)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(t,n,i){/*
|
|||
|
|
* based on code from:
|
|||
|
|
*
|
|||
|
|
* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
|
|||
|
|
* Available via the MIT or new BSD license.
|
|||
|
|
* see: http://github.com/jrburke/requirejs for details
|
|||
|
|
*/var a=t("./dom");n.get=function(o,T){var c=new XMLHttpRequest;c.open("GET",o,!0),c.onreadystatechange=function(){c.readyState===4&&T(c.responseText)},c.send(null)},n.loadScript=function(o,T){var c=a.getDocumentHead(),Q=document.createElement("script");Q.src=o,c.appendChild(Q),Q.onload=Q.onreadystatechange=function(s,l){(l||!Q.readyState||Q.readyState=="loaded"||Q.readyState=="complete")&&(Q=Q.onload=Q.onreadystatechange=null,l||T())}},n.qualifyURL=function(o){var T=document.createElement("a");return T.href=o,T.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(t,n,i){n.inherits=function(a,o){a.super_=o,a.prototype=Object.create(o.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}})},n.mixin=function(a,o){for(var T in o)a[T]=o[T];return a},n.implement=function(a,o){n.mixin(a,o)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(t,n,i){var a={},o=function(){this.propagationStopped=!0},T=function(){this.defaultPrevented=!0};a._emit=a._dispatchEvent=function(c,Q){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var s=this._eventRegistry[c]||[],l=this._defaultHandlers[c];if(!(!s.length&&!l)){(typeof Q!="object"||!Q)&&(Q={}),Q.type||(Q.type=c),Q.stopPropagation||(Q.stopPropagation=o),Q.preventDefault||(Q.preventDefault=T),s=s.slice();for(var u=0;u<s.length&&(s[u](Q,this),!Q.propagationStopped);u++);if(l&&!Q.defaultPrevented)return l(Q,this)}},a._signal=function(c,Q){var s=(this._eventRegistry||{})[c];if(s){s=s.slice();for(var l=0;l<s.length;l++)s[l](Q,this)}},a.once=function(c,Q){var s=this;if(this.on(c,function l(){s.off(c,l),Q.apply(null,arguments)}),!Q)return new Promise(function(l){Q=l})},a.setDefaultHandler=function(c,Q){var s=this._defaultHandlers;if(s||(s=this._defaultHandlers={_disabled_:{}}),s[c]){var l=s[c],u=s._disabled_[c];u||(s._disabled_[c]=u=[]),u.push(l);var d=u.indexOf(Q);d!=-1&&u.splice(d,1)}s[c]=Q},a.removeDefaultHandler=function(c,Q){var s=this._defaultHandlers;if(s){var l=s._disabled_[c];if(s[c]==Q)l&&this.setDefaultHandler(c,l.pop());else if(l){var u=l.indexOf(Q);u!=-1&&l.splice(u,1)}}},a.on=a.addEventListener=function(c,Q,s){this._eventRegistry=this._eventRegistry||{};var l=this._eventRegistry[c];return l||(l=this._eventRegistry[c]=[]),l.indexOf(Q)==-1&&l[s?"unshift":"push"](Q),Q},a.off=a.removeListener=a.removeEventListener=function(c,Q){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[c];if(s){var l=s.indexOf(Q);l!==-1&&s.splice(l,1)}},a.removeAllListeners=function(c){c||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[c]=void 0),this._defaultHandlers&&(this._defaultHandlers[c]=void 0)},n.EventEmitter=a}),ace.define("ace/lib/report_error",["require","exports","module"],function(t,n,i){n.reportError=function(o,T){var c=new Error(o);c.data=T,typeof console=="object"&&console.error&&console.error(c),setTimeout(function(){throw c})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(t,n,i){var a={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search
|
|||
|
|
background: #f0f0f0;
|
|||
|
|
color: #333;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_print-margin {
|
|||
|
|
width: 1px;
|
|||
|
|
background: #e8e8e8;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_fold {
|
|||
|
|
background-color: #6B72E6;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm {
|
|||
|
|
background-color: #FFFFFF;
|
|||
|
|
color: black;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_cursor {
|
|||
|
|
color: black;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_invisible {
|
|||
|
|
color: rgb(191, 191, 191);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_storage,
|
|||
|
|
.ace-tm .ace_keyword {
|
|||
|
|
color: blue;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_constant {
|
|||
|
|
color: rgb(197, 6, 11);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_constant.ace_buildin {
|
|||
|
|
color: rgb(88, 72, 246);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_constant.ace_language {
|
|||
|
|
color: rgb(88, 92, 246);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_constant.ace_library {
|
|||
|
|
color: rgb(6, 150, 14);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_invalid {
|
|||
|
|
background-color: rgba(255, 0, 0, 0.1);
|
|||
|
|
color: red;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_support.ace_function {
|
|||
|
|
color: rgb(60, 76, 114);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_support.ace_constant {
|
|||
|
|
color: rgb(6, 150, 14);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_support.ace_type,
|
|||
|
|
.ace-tm .ace_support.ace_class {
|
|||
|
|
color: rgb(109, 121, 222);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_keyword.ace_operator {
|
|||
|
|
color: rgb(104, 118, 135);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_string {
|
|||
|
|
color: rgb(3, 106, 7);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_comment {
|
|||
|
|
color: rgb(76, 136, 107);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_comment.ace_doc {
|
|||
|
|
color: rgb(0, 102, 255);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_comment.ace_doc.ace_tag {
|
|||
|
|
color: rgb(128, 159, 191);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_constant.ace_numeric {
|
|||
|
|
color: rgb(0, 0, 205);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_variable {
|
|||
|
|
color: rgb(49, 132, 149);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_xml-pe {
|
|||
|
|
color: rgb(104, 104, 91);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_entity.ace_name.ace_function {
|
|||
|
|
color: #0000A2;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
.ace-tm .ace_heading {
|
|||
|
|
color: rgb(12, 7, 255);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_list {
|
|||
|
|
color:rgb(185, 6, 144);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_meta.ace_tag {
|
|||
|
|
color:rgb(0, 22, 142);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_string.ace_regex {
|
|||
|
|
color: rgb(255, 0, 0)
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_marker-layer .ace_selection {
|
|||
|
|
background: rgb(181, 213, 255);
|
|||
|
|
}
|
|||
|
|
.ace-tm.ace_multiselect .ace_selection.ace_start {
|
|||
|
|
box-shadow: 0 0 3px 0px white;
|
|||
|
|
}
|
|||
|
|
.ace-tm .ace_marker-layer .ace_step {
|
|||
|
|
background: rgb(252, 255, 0);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_marker-layer .ace_stack {
|
|||
|
|
background: rgb(164, 229, 101);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_marker-layer .ace_bracket {
|
|||
|
|
margin: -1px 0 0 -1px;
|
|||
|
|
border: 1px solid rgb(192, 192, 192);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_marker-layer .ace_active-line {
|
|||
|
|
background: rgba(0, 0, 0, 0.07);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_gutter-active-line {
|
|||
|
|
background-color : #dcdcdc;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_marker-layer .ace_selected-word {
|
|||
|
|
background: rgb(250, 250, 255);
|
|||
|
|
border: 1px solid rgb(200, 200, 250);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_indent-guide {
|
|||
|
|
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-tm .ace_indent-guide-active {
|
|||
|
|
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
|||
|
|
}
|
|||
|
|
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(t,n,i){n.isDark=!1,n.cssClass="ace-tm",n.cssText=t("./textmate-css"),n.$id="ace/theme/textmate";var a=t("../lib/dom");a.importCssString(n.cssText,n.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(t,n,i){"no use strict";var a=t("./lib/lang"),o=t("./lib/net"),T=t("./lib/dom"),c=t("./lib/app_config").AppConfig;i.exports=n=new c;var Q={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};n.get=function(d){if(!Q.hasOwnProperty(d))throw new Error("Unknown config key: "+d);return Q[d]},n.set=function(d,f){if(Q.hasOwnProperty(d))Q[d]=f;else if(this.setDefaultValue("",d,f)==!1)throw new Error("Unknown config key: "+d);d=="useStrictCSP"&&T.useStrictCSP(f)},n.all=function(){return a.copyObject(Q)},n.$modes={},n.moduleUrl=function(d,f){if(Q.$moduleUrls[d])return Q.$moduleUrls[d];var h=d.split("/");f=f||h[h.length-2]||"";var p=f=="snippets"?"/":"-",g=h[h.length-1];if(f=="worker"&&p=="-"){var m=new RegExp("^"+f+"[\\-_]|[\\-_]"+f+"$","g");g=g.replace(m,"")}(!g||g==f)&&h.length>1&&(g=h[h.length-2]);var y=Q[f+"Path"];return y==null?y=Q.basePath:p=="/"&&(f=p=""),y&&y.slice(-1)!="/"&&(y+="/"),y+f+p+g+this.get("suffix")},n.setModuleUrl=function(d,f){return Q.$moduleUrls[d]=f};var s=function(d,f){if(d==="ace/theme/textmate"||d==="./theme/textmate")return f(null,t("./theme/textmate"));if(l)return l(d,f);console.error("loader is not configured")},l;n.setLoader=function(d){l=d},n.dynamicModules=Object.create(null),n.$loading={},n.$loaded={},n.loadModule=function(d,f){var h;if(Array.isArray(d))var p=d[0],g=d[1];else if(typeof d=="string")var g=d;var m=function(y){if(y&&!n.$loading[g])return f&&f(y);if(n.$loading[g]||(n.$loading[g]=[]),n.$loading[g].push(f),!(n.$loading[g].length>1)){var L=function(){s(g,function(b,v){v&&(n.$loaded[g]=v),n._emit("load.module",{name:g,module:v});var x=n.$loading[g];n.$loading[g]=null,x.forEach(function(S){S&&S(v)})})};if(!n.get("packaged"))return L();o.loadScript(n.moduleUrl(g,p),L),u()}};if(n.dynamicModules[g])n.dynamicModules[g]().then(function(y){y.default?m(y.default):m(y)});else{try{h=this.$require(g)}catch{}m(h||n.$loaded[g])}},n.$require=function(d){if(typeof i.require=="function"){var f="require";return i[f](d)}},n.setModuleLoader=function(d,f){n.dynamicModules[d]=f};var u=function(){!Q.basePath&&!Q.workerPath&&!Q.modePath&&!Q.themePath&&!Object.keys(Q.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),u=function(){})};n.version="1.33.1"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(t,n,i){t("./lib/fixoldbrowsers");var a=t("./config");a.setLoader(function(Q,s){t([Q],function(l){s(null,l)})});var o=function(){return this||typeof window<"u"&&window}();i.exports=function(Q){a.init=T,a.$require=t,Q.require=t},T(!0);function T(Q){if(!(!o||!o.document)){a.set("packaged",Q||t.packaged||i.packaged||o.define&&(void 0).packaged);var s={},l="",u=document.currentScript||document._currentScript,d=u&&u.ownerDocument||document;u&&u.src&&(l=u.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var f=d.getElementsByTagName("script"),h=0;h<f.length;h++){var p=f[h],g=p.src||p.getAttribute("src");if(g){for(var m=p.attributes,y=0,L=m.length;y<L;y++){var b=m[y];b.name.indexOf("data-ace-")===0&&(s[c(b.name.replace(/^data-ace-/,""))]=b.value)}var v=g.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);v&&(l=v[1])}}l&&(s.base=s.base||l,s.packaged=!0),s.basePath=s.base,s.workerPath=s.workerPath||s.base,s.modePath=s.modePath||s.base,s.themePath=s.themePath||s.base,delete s.base;for(var x in s)typeof s[x]<"u"&&a.set(x,s[x])}}function c(Q){return Q.replace(/-(.)/g,function(s,l){return
|
|||
|
|
==========================================================================
|
|||
|
|
SproutCore -- JavaScript Application Framework
|
|||
|
|
copyright 2006-2009, Sprout Systems Inc., Apple Inc. and contributors.
|
|||
|
|
|
|||
|
|
Permission is hereby granted, free of charge, to any person obtaining a
|
|||
|
|
copy of this software and associated documentation files (the "Software"),
|
|||
|
|
to deal in the Software without restriction, including without limitation
|
|||
|
|
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|||
|
|
and/or sell copies of the Software, and to permit persons to whom the
|
|||
|
|
Software is furnished to do so, subject to the following conditions:
|
|||
|
|
|
|||
|
|
The above copyright notice and this permission notice shall be included in
|
|||
|
|
all copies or substantial portions of the Software.
|
|||
|
|
|
|||
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|||
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|||
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|||
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|||
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|||
|
|
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|||
|
|
DEALINGS IN THE SOFTWARE.
|
|||
|
|
|
|||
|
|
SproutCore and the SproutCore logo are trademarks of Sprout Systems, Inc.
|
|||
|
|
|
|||
|
|
For more information about SproutCore, visit http://www.sproutcore.com
|
|||
|
|
|
|||
|
|
|
|||
|
|
==========================================================================
|
|||
|
|
@license */var a=t("./oop"),o=function(){var T={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};T.PRINTABLE_KEYS[173]="-";var c,Q;for(Q in T.FUNCTION_KEYS)c=T.FUNCTION_KEYS[Q].toLowerCase(),T[c]=parseInt(Q,10);for(Q in T.PRINTABLE_KEYS)c=T.PRINTABLE_KEYS[Q].toLowerCase(),T[c]=parseInt(Q,10);return a.mixin(T,T.MODIFIER_KEYS),a.mixin(T,T.PRINTABLE_KEYS),a.mixin(T,T.FUNCTION_KEYS),T.enter=T.return,T.escape=T.esc,T.del=T.delete,function(){for(var s=["cmd","ctrl","alt","shift"],l=Math.pow(2,s.length);l--;)T.KEY_MODS[l]=s.filter(function(u){return l&T.KEY_MODS[u]}).join("-")+"-"}(),T.KEY_MODS[0]="",T.KEY_MODS[-1]="input-",T}();a.mixin(n,o),n.default=n,n.keyCodeToString=function(T){var c=o[T];return typeof c!="string"&&(c=String.fromCharCode(T)),c.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(t,n,i){var a=t("./keys"),o=t("./useragent"),T=null,c=0,Q;function s(){Q=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return Q={passive:!1},!0}})}catch{}}function l(){return Q==null&&s(),Q}function u(y,L,b){this.elem=y,this.type=L,this.callback=b}u.prototype.destroy=function(){f(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var d=n.addListener=function(y,L,b,v){y.addEventListener(L,b,l()),v&&v.$toDestroy.push(new u(y,L,b))},f=n.removeListener=function(y,L,b){y.removeEventListener(L,b,l())};n.stopEvent=function(y){return n.stopPropagation(y),n.preventDefault(y),!1},n.stopPropagation=function(y){y.stopPropagation&&y.stopPropagation()},n.preventDefault=function(y){y.preventDefault&&y.preventDefault()},n.getButton=function(y){return y.type=="dblclick"?0:y.type=="contextmenu"||o.isMac&&y.ctrlKey&&!y.altKey&&!y.shiftKey?2:y.button},n.capture=function(y,L,b){var v=y&&y.ownerDocument||document;function x(S){L&&L(S),b&&b(S),f(v,"mousemove",L),f(v,"mouseup",x),f(v,"dragstart",x)}return d(v,"mousemove",L),d(v,"mouseup",x),d(v,"dragstart",x),x},n.addMouseWheelListener=function(y,L,b){d(y,"wheel",function(v){var x=.15,S=v.deltaX||0,E=v.deltaY||0;switch(v.deltaMode){case v.DOM_DELTA_PIXEL:v.wheelX=S*x,v.wheelY=E*x;break;case v.DOM_DELTA_LINE:var M=15;v.wheelX=S*M,v.wheelY=E*M;break;case v.DOM_DELTA_PAGE:var w=150;v.wheelX=S*w,v.wheelY=E*w;break}L(v)},b)},n.addMultiMouseDownListener=function(y,L,b,v,x){var S=0,E,M,w,H={2:"dblclick",3:"tripleclick",4:"quadclick"};function C(A){if(n.getButton(A)!==0?S=0:A.detail>1?(S++,S>4&&(S=1)):S=1,o.isIE){var O=Math.abs(A.clientX-E)>5||Math.abs(A.clientY-M)>5;(!w||O)&&(S=1),w&&clearTimeout(w),w=setTimeout(function(){w=null},L[S-1]||600),S==1&&(E=A.clientX,M=A.clientY)}if(A._clicks=S,b[v]("mousedown",A),S>4)S=0;else if(S>1)return b[v](H[S],A)}Array.isArray(y)||(y=[y]),y.forEach(function(A){d(A,"mousedown",C,x)})};function h(y){return 0|(y.ctrlKey?1:0)|(y.altKey?2:0)|(y.shiftKey?4:0)|(y.metaKey?8:0)}n.getModifierString=function(y){return a.KEY_MODS[h(y)]};function p(y,L,b){var v=h(L);if(!o.isMac&&T){if(L.getModifierState&&(L.getModifierState("
|
|||
|
|
ab`+ee+`cde fg
|
|||
|
|
`;q!=x.value&&(x.value=O=q);var K=4,ie=4+(ee.length||(v.selection.isEmpty()?0:1));(D!=K||I!=ie)&&x.setSelectionRange(K,ie),D=K,I=ie}}:function(){if(!(M||w)&&!(!G&&!W)){M=!0;var ee=0,q=0,K="";if(v.session){var ie=v.selection,Te=ie.getRange(),ge=ie.cursor.row;ge===k+1?(V=k+1,k=V+2*P):ge===V-1?(k=V-1,V=k-2*P):(ge<V-1||ge>k+1)&&(V=ge>P?ge-P:0,k=ge>P?ge+P:2*P);for(var De=[],Ie=V;Ie<=k;Ie++)De.push(v.session.getLine(Ie));if(K=De.join(`
|
|||
|
|
`),ee=R(Te.start.row,Te.start.column),q=R(Te.end.row,Te.end.column),Te.start.row<V){var Ce=v.session.getLine(V-1);ee=Te.start.row<V-1?0:ee,q+=Ce.length+1,K=Ce+`
|
|||
|
|
`+K}else if(Te.end.row>k){var Ae=v.session.getLine(k+1);q=Te.end.row>k+1?Ae.length:Te.end.column,q+=K.length+1,K=K+`
|
|||
|
|
`+Ae}else y&&ge>0&&(K=`
|
|||
|
|
`+K,q+=1,ee+=1);K.length>f&&(ee<f&&q<f?K=K.slice(0,f):(K=`
|
|||
|
|
`,ee==q?ee=q=0:(ee=0,q=1)));var rt=K+`
|
|||
|
|
|
|||
|
|
`;rt!=O&&(x.value=O=rt,D=I=rt.length)}if(W&&(D=x.selectionStart,I=x.selectionEnd),I!=q||D!=ee||x.selectionEnd!=I)try{x.setSelectionRange(ee,q),D=ee,I=q}catch{}M=!1}};this.resetSelection=F,G&&v.onFocus();var j=function(ee){return ee.selectionStart===0&&ee.selectionEnd>=O.length&&ee.value===O&&O&&ee.selectionEnd!==I},z=function(ee){M||(S?S=!1:j(x)?(v.selectAll(),F()):y&&x.selectionStart!=D&&F())},U=null;this.setInputHandler=function(ee){U=ee},this.getInputHandler=function(){return U};var W=!1,X=function(ee,q){if(W&&(W=!1),E)return F(),ee&&v.onPaste(ee),E=!1,"";for(var K=x.selectionStart,ie=x.selectionEnd,Te=D,ge=O.length-I,De=ee,Ie=ee.length-K,Ce=ee.length-ie,Ae=0;Te>0&&O[Ae]==ee[Ae];)Ae++,Te--;for(De=De.slice(Ae),Ae=1;ge>0&&O.length-Ae>D-1&&O[O.length-Ae]==ee[ee.length-Ae];)Ae++,ge--;Ie-=Ae-1,Ce-=Ae-1;var rt=De.length-Ae+1;if(rt<0&&(Te=-rt,rt=0),De=De.slice(0,rt),!q&&!De&&!Ie&&!Te&&!ge&&!Ce)return"";w=!0;var Pe=!1;return T.isAndroid&&De==". "&&(De=" ",Pe=!0),De&&!Te&&!ge&&!Ie&&!Ce||C?v.onTextInput(De):v.onTextInput(De,{extendLeft:Te,extendRight:ge,restoreStart:Ie,restoreEnd:Ce}),w=!1,O=ee,D=K,I=ie,N=Ce,Pe?`
|
|||
|
|
`:De},Y=function(ee){if(M)return Ue();if(ee&&ee.inputType){if(ee.inputType=="historyUndo")return v.execCommand("undo");if(ee.inputType=="historyRedo")return v.execCommand("redo")}var q=x.value,K=X(q,!0);(q.length>f+100||m.test(K)||y&&D<1&&D==I)&&F()},J=function(ee,q,K){var ie=ee.clipboardData||window.clipboardData;if(!(!ie||l)){var Te=u||K?"Text":"text/plain";try{return q?ie.setData(Te,q)!==!1:ie.getData(Te)}catch(ge){if(!K)return J(ge,q,!0)}}},ae=function(ee,q){var K=v.getCopyText();if(!K)return a.preventDefault(ee);J(ee,K)?(g&&(F(K),S=K,setTimeout(function(){S=!1},10)),q?v.onCut():v.onCopy(),a.preventDefault(ee)):(S=!0,x.value=K,x.select(),setTimeout(function(){S=!1,F(),q?v.onCut():v.onCopy()}))},se=function(ee){ae(ee,!0)},le=function(ee){ae(ee,!1)},ue=function(ee){var q=J(ee);s.pasteCancelled()||(typeof q=="string"?(q&&v.onPaste(q,ee),T.isIE&&setTimeout(F),a.preventDefault(ee)):(x.value="",E=!0))};a.addCommandKeyListener(x,function(ee,q,K){if(!M)return v.onCommandKey(ee,q,K)},v),a.addListener(x,"select",z,v),a.addListener(x,"input",Y,v),a.addListener(x,"cut",se,v),a.addListener(x,"copy",le,v),a.addListener(x,"paste",ue,v),(!("oncut"in x)||!("oncopy"in x)||!("onpaste"in x))&&a.addListener(b,"keydown",function(ee){if(!(T.isMac&&!ee.metaKey||!ee.ctrlKey))switch(ee.keyCode){case 67:le(ee);break;case 86:ue(ee);break;case 88:se(ee);break}},v);var Le=function(ee){if(!(M||!v.onCompositionStart||v.$readOnly)&&(M={},!C)){ee.data&&(M.useTextareaForIME=!1),setTimeout(Ue,0),v._signal("compositionStart"),v.on("mousedown",ht);var q=v.getSelectionRange();q.end.row=q.start.row,q.end.column=q.start.column,M.markerRange=q,M.selectionStart=D,v.onCompositionStart(M),M.useTextareaForIME?(O=x.value="",D=0,I=0):(x.msGetInputContext&&(M.context=x.msGetInputContext()),x.getInputContext&&(M.context=x.getInputContext()))}},Ue=function(){if(!(!M||!v.onCompositionUpdate||v.$readOnly)){if(C)return ht();if(M.useTextareaForIME)v.onCompositionUpdate(x.value);else{var ee=x.value;X(ee),M.markerRange&&(M.context&&(M.markerRange.start.column=M.selectionStart=M.context.compositionStartOffset),M.markerRange.end.column=M.markerRange.start.column+I-M.selectionStart+N)}}},Oe=function(ee){!v.onCompositionEnd||v.$readOnly||(M=!1,v.onCompositionEnd(),v.off("mousedown",ht),ee&&Y())};function ht(){A=!0,x.blur(),x.focus(),A=!1}var Zt=Q.delayedCall(Ue,50).schedule.bind(null,null);function Dt(ee){ee.keyCode==27&&x.value.length<x.selectionStart&&(M||(O=x.value),D=I=-1,F()),Zt()}a.addListener(x,"compositionstart",Le,v),a.addListener(x,"compositionupdate",Ue,v),a.addListener(x,"keyup",Dt,v),a.addListener(x,"keydown",Zt,v),a.addListener(x,"compositionend",Oe,v),this.getElement=function(){return x},this.setCommandMode=function(ee){C=ee,x.readOnly=!1},this.setReadOnly=function(ee){C||(x.readOnly=ee)},this.setCopyWithEmptySelection=function(ee){},this.onContextMenu=function(ee){W=!0,F(),v._emit("nativecontextmenu",{target:v,domEvent:ee}),this.moveToMouse(ee,!0)},this.moveToMouse=function(ee,q){H||(H=x.style.cssText),x.style.cssText=(q?"z-index:100000;":"")+(T.isIE?"opacity:0.1;":"")+"text-indent: -"+(D+I)*v.renderer.characterWidth*.5+"px;";var K=v.container.getBoundingClientRect(),ie=c.computedStyle(v.container),Te=K.top+(parseInt(ie.borderTopWidth)||0),ge=K.left+(parseInt(K.borderLeftWidth)||0),De=K.bottom-Te-x.clientHeight-2,Ie=function(Ce){c.translate(x,Ce.clientX-ge-2,Math.min(Ce.clientY-Te-2,De))};Ie(ee),ee.type=="mousedown"&&(v.renderer.$isMousePressed=!0,clearTimeout(L1),T.isWin&&a.capture(v.container,Ie,P1))},this.onContextMenuClose=P1;var L1;function P1(){clearTimeout(L1),L1=setTimeout(function(){H&&(x.style.cssText=H,H=""),v.renderer.$isMousePressed=!1,v.renderer.$keepTextAreaAtCursor&&v.renderer.$moveTextAreaToCursor()},0)}var n2=function(ee){v.textInput.onContextMenu(ee),P1()};a.addListener(x,"mouseup",n2,v),a.addListener(x,"mousedown",function(ee){ee.preventDefault(),P1()},v),a.addListener(v.renderer.scroller,"contextmenu",n2,v),a.addListener(x,"contextmenu",n2,v),g&&kr(b,v,x);function kr(ee,q,K){var ie=null,Te=!1;K.addEventListener("keydown",function(De){ie&&c
|
|||
|
|
`?Ae=h.end:Ie<D&&O[Ie-1]==" "?(Ae=h.left,rt=p.option):Ie<D||Ie==D&&I!=D&&Ie==Ce?Ae=h.left:Ce>I&&O.slice(0,Ce).split(`
|
|||
|
|
`).length>2?Ae=h.down:Ce>I&&O[Ce-1]==" "?(Ae=h.right,rt=p.option):(Ce>I||Ce==I&&I!=D&&Ie==Ce)&&(Ae=h.right),Ie!==Ce&&(rt|=p.shift),Ae){var Pe=q.onCommandKey({},rt,Ae);if(!Pe&&q.commands){Ae=h.keyCodeToString(Ae);var B1=q.commands.findKeyCommand(rt,Ae);B1&&q.execCommand(B1)}D=Ie,I=Ce,F("")}}};document.addEventListener("selectionchange",ge),q.on("destroy",function(){document.removeEventListener("selectionchange",ge)})}this.destroy=function(){x.parentElement&&x.parentElement.removeChild(x)}},n.TextInput=L,n.$setUserAgentForTests=function(b,v){y=b,g=v}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(t,n,i){var a=t("../lib/useragent"),o=0,T=550,c=function(){function l(u){u.$clickSelection=null;var d=u.editor;d.setDefaultHandler("mousedown",this.onMouseDown.bind(u)),d.setDefaultHandler("dblclick",this.onDoubleClick.bind(u)),d.setDefaultHandler("tripleclick",this.onTripleClick.bind(u)),d.setDefaultHandler("quadclick",this.onQuadClick.bind(u)),d.setDefaultHandler("mousewheel",this.onMouseWheel.bind(u));var f=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];f.forEach(function(h){u[h]=this[h]},this),u.selectByLines=this.extendSelectionBy.bind(u,"getLineRange"),u.selectByWords=this.extendSelectionBy.bind(u,"getWordRange")}return l.prototype.onMouseDown=function(u){var d=u.inSelection(),f=u.getDocumentPosition();this.mousedownEvent=u;var h=this.editor,p=u.getButton();if(p!==0){var g=h.getSelectionRange(),m=g.isEmpty();(m||p==1)&&h.selection.moveToPosition(f),p==2&&(h.textInput.onContextMenu(u.domEvent),a.isMozilla||u.preventDefault());return}if(this.mousedownEvent.time=Date.now(),d&&!h.isFocused()&&(h.focus(),this.$focusTimeout&&!this.$clickSelection&&!h.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(u);return}return this.captureMouse(u),this.startSelect(f,u.domEvent._clicks>1),u.preventDefault()},l.prototype.startSelect=function(u,d){u=u||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var f=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?f.selection.selectToPosition(u):d||f.selection.moveToPosition(u),d||this.select(),f.setStyle("ace_selecting"),this.setState("select"))},l.prototype.select=function(){var u,d=this.editor,f=d.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var h=this.$clickSelection.comparePoint(f);if(h==-1)u=this.$clickSelection.end;else if(h==1)u=this.$clickSelection.start;else{var p=s(this.$clickSelection,f);f=p.cursor,u=p.anchor}d.selection.setSelectionAnchor(u.row,u.column)}d.selection.selectToPosition(f),d.renderer.scrollCursorIntoView()},l.prototype.extendSelectionBy=function(u){var d,f=this.editor,h=f.renderer.screenToTextCoordinates(this.x,this.y),p=f.selection[u](h.row,h.column);if(this.$clickSelection){var g=this.$clickSelection.comparePoint(p.start),m=this.$clickSelection.comparePoint(p.end);if(g==-1&&m<=0)d=this.$clickSelection.end,(p.end.row!=h.row||p.end.column!=h.column)&&(h=p.start);else if(m==1&&g>=0)d=this.$clickSelection.start,(p.start.row!=h.row||p.start.column!=h.column)&&(h=p.end);else if(g==-1&&m==1)h=p.end,d=p.start;else{var y=s(this.$clickSelection,h);h=y.cursor,d=y.anchor}f.selection.setSelectionAnchor(d.row,d.column)}f.selection.selectToPosition(h),f.renderer.scrollCursorIntoView()},l.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},l.prototype.focusWait=function(){var u=Q(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),d=Date.now();(u>o||d-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},l.prototype.onDoubleClick=function(u){var d=u.getDocumentPosition(),f=this.editor,h=f.session,p=h.getBracketRange(d);p?(p.isEmpty()&&(p.start.column--,p.end.column++),this.setState("select")):(p=f.selection.getWordRange(d.row,d.column),this.setState("selectByWords")),this.$clickSelection=p,this.select()},l.prototype.onTripleClick=function(u){var d=u.getDocumentPosition(),f=this
|
|||
|
|
`))&&(this.seenBidi=!0,this.currentRow=null)},Q.prototype.getDocumentRow=function(){var s=0,l=this.session.$screenRowCache;if(l.length){var u=this.session.$getRowCacheIndex(l,this.currentRow);u>=0&&(s=this.session.$docRowCache[u])}return s},Q.prototype.getSplitIndex=function(){var s=0,l=this.session.$screenRowCache;if(l.length)for(var u,d=this.session.$getRowCacheIndex(l,this.currentRow);this.currentRow-s>0&&(u=this.session.$getRowCacheIndex(l,this.currentRow-s-1),u===d);)d=u,s++;else s=this.currentRow;return s},Q.prototype.updateRowLine=function(s,l){s===void 0&&(s=this.getDocumentRow());var u=s===this.session.getLength()-1,d=u?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(s),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var f=this.session.$wrapData[s];f&&(l===void 0&&(l=this.getSplitIndex()),l>0&&f.length?(this.wrapIndent=f.indent,this.wrapOffset=this.wrapIndent*this.charWidths[a.L],this.line=l<f.length?this.line.substring(f[l-1],f[l]):this.line.substring(f[f.length-1])):this.line=this.line.substring(0,f[l]),l==f.length&&(this.line+=this.showInvisibles?d:a.DOT))}else this.line+=this.showInvisibles?d:a.DOT;var h=this.session,p=0,g;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(m,y){return m===" "||h.isFullWidth(m.charCodeAt(0))?(g=m===" "?h.getScreenTabSize(y+p):2,p+=g-1,o.stringRepeat(a.DOT,g)):m}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==a.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},Q.prototype.updateBidiMap=function(){var s=[];a.hasBidiCharacters(this.line,s)||this.isRtlDir?this.bidiMap=a.doBidiReorder(this.line,s,this.isRtlDir):this.bidiMap={}},Q.prototype.markAsDirty=function(){this.currentRow=null},Q.prototype.updateCharacterWidths=function(s){if(this.characterWidth!==s.$characterSize.width){this.fontMetrics=s;var l=this.characterWidth=s.$characterSize.width,u=s.$measureCharWidth("ה");this.charWidths[a.L]=this.charWidths[a.EN]=this.charWidths[a.ON_R]=l,this.charWidths[a.R]=this.charWidths[a.AN]=u,this.charWidths[a.R_H]=u*.45,this.charWidths[a.B]=this.charWidths[a.RLE]=0,this.currentRow=null}},Q.prototype.setShowInvisibles=function(s){this.showInvisibles=s,this.currentRow=null},Q.prototype.setEolChar=function(s){this.EOL=s},Q.prototype.setContentWidth=function(s){this.contentWidth=s},Q.prototype.isRtlLine=function(s){return this.$isRtl?!0:s!=null?this.session.getLine(s).charAt(0)==this.RLE:this.isRtlDir},Q.prototype.setRtlDirection=function(s,l){for(var u=s.getCursorPosition(),d=s.selection.getSelectionAnchor().row;d<=u.row;d++)!l&&s.session.getLine(d).charAt(0)===s.session.$bidiHandler.RLE?s.session.doc.removeInLine(d,0,1):l&&s.session.getLine(d).charAt(0)!==s.session.$bidiHandler.RLE&&s.session.doc.insert({column:0,row:d},s.session.$bidiHandler.RLE)},Q.prototype.getPosLeft=function(s){s-=this.wrapIndent;var l=this.line.charAt(0)===this.RLE?1:0,u=s>l?this.session.getOverwrite()?s:s-1:l,d=a.getVisualFromLogicalIdx(u,this.bidiMap),f=this.bidiMap.bidiLevels,h=0;!this.session.getOverwrite()&&s<=l&&f[d]%2!==0&&d++;for(var p=0;p<d;p++)h+=this.charWidths[f[p]];return!this.session.getOverwrite()&&s>l&&f[d]%2===0&&(h+=this.charWidths[f[d]]),this.wrapIndent&&(h+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(h+=this.rtlLineOffset),h},Q.prototype.getSelections=function(s,l){var u=this.bidiMap,d=u.bidiLevels,f,h=[],p=0,g=Math.min(s,l)-this.wrapIndent,m=Math.max(s,l)-this.wrapIndent,y=!1,L=!1,b=0;this.wrapIndent&&(p+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var v,x=0;x<d.length;x++)v=u.logicalFromVisual[x],f=d[x],y=v>=g&&v<m,y&&!L?b=p:!y&&L&&h.push({left:b,width:p-b}),p+=this.charWidths[f],L=y;if(y&&x===d.length&&h.push({left:b,width:p-b}),this.isRtlDir)for(var S=0;S<h.length;S++)h[S].left+=this.rtlLineOffset;return h},Q.prototype.offsetToCol=function(u){this.isRtlDir&&(u-=this.rtlLineOffset);var l=0,u=Math.max(u,0),d=0,f=0,h=this.bidiMap.bidiLevels,p=this.ch
|
|||
|
|
`||v==`\r
|
|||
|
|
`){f(L);var O="";p.isMaybeInsertedClosing(x,S)&&(O=c.stringRepeat("}",l.maybeInsertedBrackets),p.clearMaybeInsertedClosing());var C=S.substring(x.column,x.column+1);if(C==="}"){var D=b.findMatchingBracket({row:x.row,column:x.column+1},"}");if(!D)return null;var I=this.$getIndent(b.getLine(D.row))}else if(O)var I=this.$getIndent(S);else{p.clearMaybeInsertedClosing();return}var N=I+b.getTabString();return{text:`
|
|||
|
|
`+N+`
|
|||
|
|
`+I+O,selection:[1,N.length,1,N.length]}}else p.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(m,y,L,b,v){var x=b.doc.getTextRange(v);if(!v.isMultiLine()&&x=="{"){f(L);var S=b.doc.getLine(v.start.row),E=S.substring(v.end.column,v.end.column+1);if(E=="}")return v.end.column++,v;l.maybeInsertedBrackets--}}),this.add("parens","insertion",function(m,y,L,b,v){if(v=="("){f(L);var x=L.getSelectionRange(),S=b.doc.getTextRange(x);if(S!==""&&L.getWrapBehavioursEnabled())return h(x,S,"(",")");if(p.isSaneInsertion(L,b))return p.recordAutoInsert(L,b,")"),{text:"()",selection:[1,1]}}else if(v==")"){f(L);var E=L.getCursorPosition(),M=b.doc.getLine(E.row),w=M.substring(E.column,E.column+1);if(w==")"){var H=b.$findOpeningBracket(")",{column:E.column+1,row:E.row});if(H!==null&&p.isAutoInsertedClosing(E,M,v))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(m,y,L,b,v){var x=b.doc.getTextRange(v);if(!v.isMultiLine()&&x=="("){f(L);var S=b.doc.getLine(v.start.row),E=S.substring(v.start.column+1,v.start.column+2);if(E==")")return v.end.column++,v}}),this.add("brackets","insertion",function(m,y,L,b,v){if(v=="["){f(L);var x=L.getSelectionRange(),S=b.doc.getTextRange(x);if(S!==""&&L.getWrapBehavioursEnabled())return h(x,S,"[","]");if(p.isSaneInsertion(L,b))return p.recordAutoInsert(L,b,"]"),{text:"[]",selection:[1,1]}}else if(v=="]"){f(L);var E=L.getCursorPosition(),M=b.doc.getLine(E.row),w=M.substring(E.column,E.column+1);if(w=="]"){var H=b.$findOpeningBracket("]",{column:E.column+1,row:E.row});if(H!==null&&p.isAutoInsertedClosing(E,M,v))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(m,y,L,b,v){var x=b.doc.getTextRange(v);if(!v.isMultiLine()&&x=="["){f(L);var S=b.doc.getLine(v.start.row),E=S.substring(v.start.column+1,v.start.column+2);if(E=="]")return v.end.column++,v}}),this.add("string_dquotes","insertion",function(m,y,L,b,v){var x=b.$mode.$quotes||d;if(v.length==1&&x[v]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(v)!=-1)return;f(L);var S=v,E=L.getSelectionRange(),M=b.doc.getTextRange(E);if(M!==""&&(M.length!=1||!x[M])&&L.getWrapBehavioursEnabled())return h(E,M,S,S);if(!M){var w=L.getCursorPosition(),H=b.doc.getLine(w.row),C=H.substring(w.column-1,w.column),A=H.substring(w.column,w.column+1),O=b.getTokenAt(w.row,w.column),D=b.getTokenAt(w.row,w.column+1);if(C=="\\"&&O&&/escape/.test(O.type))return null;var I=O&&/string|escape/.test(O.type),N=!D||/string|escape/.test(D.type),V;if(A==S)V=I!==N,V&&/string\.end/.test(D.type)&&(V=!1);else{if(I&&!N||I&&N)return null;var k=b.$mode.tokenRe;k.lastIndex=0;var P=k.test(C);k.lastIndex=0;var G=k.test(A),R=b.$mode.$pairQuotesAfter,F=R&&R[S]&&R[S].test(C);if(!F&&P||G||A&&!/[\s;,.})\]\\]/.test(A))return null;var j=H[w.column-2];if(C==S&&(j==S||k.test(j)))return null;V=!0}return{text:V?S+S:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(m,y,L,b,v){var x=b.$mode.$quotes||d,S=b.doc.getTextRange(v);if(!v.isMultiLine()&&x.hasOwnProperty(S)){f(L);var E=b.doc.getLine(v.start.row),M=E.substring(v.start.column+1,v.start.column+2);if(M==S)return v.end.column++,v}}),g.closeDocComment!==!1&&this.add("doc comment end","insertion",function(m,y,L,b,v){if(m==="doc-start"&&(v===`
|
|||
|
|
`||v===`\r
|
|||
|
|
`)&&L.selection.isEmpty()){var x=L.getCursorPosition(),S=b.doc.getLine(x.row),E=b.doc.getLine(x.row+1),M=this.$getIndent(S);if(/\s*\*/.test(E))return/^\s*\*/.test(S)?{text:v+M+"* ",selection:[1,3+M.length,1,3+M.length]}:{text:v+M+" * ",selection:[1,3+M.length,1,3+M.length]};if(/\/\*\*/.test(S.substring(0,x.column)))return{text:v+M+" * "+v+" "+M+"*/",selection:[1,4+M.length,1,4+M.length]}}})},p.isSaneInsertion=function(g,m){var y=g.getCursorPosition(),L=new T(m,y.row,y.column);if(!this.$matchTokenType(L.getCurrentToken()||"text",Q)){if(/[)}\]]/.test(g.session.getLine(y.row)[y.column]))return!0;var b=new T(m,y.row,y.column+1);if(!this.$matchTokenType(b.getCurrentToken()||"text",Q))return!1}return L.stepForward(),L.getCurrentTokenRow()!==y.row||this.$matchTokenType(L.getCurrentToken()||"text",s)},p.$matchTokenType=function(g,m){return m.indexOf(g.type||g)>-1},p.recordAutoInsert=function(g,m,y){var L=g.getCursorPosition(),b=m.doc.getLine(L.row);this.isAutoInsertedClosing(L,b,l.autoInsertedLineEnd[0])||(l.autoInsertedBrackets=0),l.autoInsertedRow=L.row,l.autoInsertedLineEnd=y+b.substr(L.column),l.autoInsertedBrackets++},p.recordMaybeInsert=function(g,m,y){var L=g.getCursorPosition(),b=m.doc.getLine(L.row);this.isMaybeInsertedClosing(L,b)||(l.maybeInsertedBrackets=0),l.maybeInsertedRow=L.row,l.maybeInsertedLineStart=b.substr(0,L.column)+y,l.maybeInsertedLineEnd=b.substr(L.column),l.maybeInsertedBrackets++},p.isAutoInsertedClosing=function(g,m,y){return l.autoInsertedBrackets>0&&g.row===l.autoInsertedRow&&y===l.autoInsertedLineEnd[0]&&m.substr(g.column)===l.autoInsertedLineEnd},p.isMaybeInsertedClosing=function(g,m){return l.maybeInsertedBrackets>0&&g.row===l.maybeInsertedRow&&m.substr(g.column)===l.maybeInsertedLineEnd&&m.substr(0,g.column)==l.maybeInsertedLineStart},p.popAutoInsertedClosing=function(){l.autoInsertedLineEnd=l.autoInsertedLineEnd.substr(1),l.autoInsertedBrackets--},p.clearMaybeInsertedClosing=function(){l&&(l.maybeInsertedBrackets=0,l.maybeInsertedRow=-1)},a.inherits(p,o),n.CstyleBehaviour=p}),ace.define("ace/unicode",["require","exports","module"],function(t,n,i){for(var a=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,
|
|||
|
|
`,this._signal("changeNewLineMode")},l.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
|||
|
|
`;case"unix":return`
|
|||
|
|
`;default:return this.$autoNewLine||`
|
|||
|
|
`}},l.prototype.setNewLineMode=function(u){this.$newLineMode!==u&&(this.$newLineMode=u,this._signal("changeNewLineMode"))},l.prototype.getNewLineMode=function(){return this.$newLineMode},l.prototype.isNewLine=function(u){return u==`\r
|
|||
|
|
`||u=="\r"||u==`
|
|||
|
|
`},l.prototype.getLine=function(u){return this.$lines[u]||""},l.prototype.getLines=function(u,d){return this.$lines.slice(u,d+1)},l.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},l.prototype.getLength=function(){return this.$lines.length},l.prototype.getTextRange=function(u){return this.getLinesForRange(u).join(this.getNewLineCharacter())},l.prototype.getLinesForRange=function(u){var d;if(u.start.row===u.end.row)d=[this.getLine(u.start.row).substring(u.start.column,u.end.column)];else{d=this.getLines(u.start.row,u.end.row),d[0]=(d[0]||"").substring(u.start.column);var f=d.length-1;u.end.row-u.start.row==f&&(d[f]=d[f].substring(0,u.end.column))}return d},l.prototype.insertLines=function(u,d){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(u,d)},l.prototype.removeLines=function(u,d){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(u,d)},l.prototype.insertNewLine=function(u){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(u,["",""])},l.prototype.insert=function(u,d){return this.getLength()<=1&&this.$detectNewLine(d),this.insertMergedLines(u,this.$split(d))},l.prototype.insertInLine=function(u,d){var f=this.clippedPos(u.row,u.column),h=this.pos(u.row,u.column+d.length);return this.applyDelta({start:f,end:h,action:"insert",lines:[d]},!0),this.clonePos(h)},l.prototype.clippedPos=function(u,d){var f=this.getLength();u===void 0?u=f:u<0?u=0:u>=f&&(u=f-1,d=void 0);var h=this.getLine(u);return d==null&&(d=h.length),d=Math.min(Math.max(d,0),h.length),{row:u,column:d}},l.prototype.clonePos=function(u){return{row:u.row,column:u.column}},l.prototype.pos=function(u,d){return{row:u,column:d}},l.prototype.$clipPosition=function(u){var d=this.getLength();return u.row>=d?(u.row=Math.max(0,d-1),u.column=this.getLine(d-1).length):(u.row=Math.max(0,u.row),u.column=Math.min(Math.max(u.column,0),this.getLine(u.row).length)),u},l.prototype.insertFullLines=function(u,d){u=Math.min(Math.max(u,0),this.getLength());var f=0;u<this.getLength()?(d=d.concat([""]),f=0):(d=[""].concat(d),u--,f=this.$lines[u].length),this.insertMergedLines({row:u,column:f},d)},l.prototype.insertMergedLines=function(u,d){var f=this.clippedPos(u.row,u.column),h={row:f.row+d.length-1,column:(d.length==1?f.column:0)+d[d.length-1].length};return this.applyDelta({start:f,end:h,action:"insert",lines:d}),this.clonePos(h)},l.prototype.remove=function(u){var d=this.clippedPos(u.start.row,u.start.column),f=this.clippedPos(u.end.row,u.end.column);return this.applyDelta({start:d,end:f,action:"remove",lines:this.getLinesForRange({start:d,end:f})}),this.clonePos(d)},l.prototype.removeInLine=function(u,d,f){var h=this.clippedPos(u,d),p=this.clippedPos(u,f);return this.applyDelta({start:h,end:p,action:"remove",lines:this.getLinesForRange({start:h,end:p})},!0),this.clonePos(h)},l.prototype.removeFullLines=function(u,d){u=Math.min(Math.max(0,u),this.getLength()-1),d=Math.min(Math.max(0,d),this.getLength()-1);var f=d==this.getLength()-1&&u>0,h=d<this.getLength()-1,p=f?u-1:u,g=f?this.getLine(p).length:0,m=h?d+1:d,y=h?0:this.getLine(m).length,L=new c(p,g,m,y),b=this.$lines.slice(u,d+1);return this.applyDelta({start:L.start,end:L.end,action:"remove",lines:this.getLinesForRange(L)}),b},l.prototype.removeNewLine=function(u){u<this.getLength()-1&&u>=0&&this.applyDelta({start:this.pos(u,this.getLine(u).length),end:this.pos(u+1,0),action:"remove",lines:["",""]})},l.prototype.replace=function(u,d){if(u instanceof c||(u=c.fromPoints(u.start,u.end)),d.length===0&&u.isEmpty())return u.start;if(d==this.getTextRange(u))return u.end;this.remove(u);var f;return d?f=this.insert(u.start,d):f=u.start,f},l.prototype.applyDeltas=function(u){for(var d=0;d<u.length;d++)this.applyDelta(u[d])},l.prototype.revertDeltas=function(u){for(var d=u.length-1;d>=0;d--)this.revertDelta(u[d])},l.prototype.applyDelta=function(u,d){var f=u.action=="insert"
|
|||
|
|
---
|
|||
|
|
`+l(this.$redoStack)},b}();a.prototype.hasUndo=a.prototype.canUndo,a.prototype.hasRedo=a.prototype.canRedo,a.prototype.isClean=a.prototype.isAtBookmark,a.prototype.markClean=a.prototype.bookmark;function o(b,v){for(var x=v;x--;){var S=b[x];if(S&&!S[0].ignore){for(;x<v-1;){var E=f(b[x],b[x+1]);b[x]=E[0],b[x+1]=E[1],x++}return!0}}}var T=t("./range").Range,c=T.comparePoints;T.comparePoints;function Q(b){return{row:b.row,column:b.column}}function s(b){return{start:Q(b.start),end:Q(b.end),action:b.action,lines:b.lines.slice()}}function l(b){if(b=b||this,Array.isArray(b))return b.map(l).join(`
|
|||
|
|
`);var v="";return b.action?(v=b.action=="insert"?"+":"-",v+="["+b.lines+"]"):b.value&&(Array.isArray(b.value)?v=b.value.map(u).join(`
|
|||
|
|
`):v=u(b.value)),b.start&&(v+=u(b)),(b.id||b.rev)&&(v+=" ("+(b.id||b.rev)+")"),v}function u(b){return b.start.row+":"+b.start.column+"=>"+b.end.row+":"+b.end.column}function d(b,v){var x=b.action=="insert",S=v.action=="insert";if(x&&S)if(c(v.start,b.end)>=0)p(v,b,-1);else if(c(v.start,b.start)<=0)p(b,v,1);else return null;else if(x&&!S)if(c(v.start,b.end)>=0)p(v,b,-1);else if(c(v.end,b.start)<=0)p(b,v,-1);else return null;else if(!x&&S)if(c(v.start,b.start)>=0)p(v,b,1);else if(c(v.start,b.start)<=0)p(b,v,1);else return null;else if(!x&&!S)if(c(v.start,b.start)>=0)p(v,b,1);else if(c(v.end,b.start)<=0)p(b,v,-1);else return null;return[v,b]}function f(b,v){for(var x=b.length;x--;)for(var S=0;S<v.length;S++)if(!d(b[x],v[S])){for(;x<b.length;){for(;S--;)d(v[S],b[x]);S=v.length,x++}return[b,v]}return b.selectionBefore=v.selectionBefore=b.selectionAfter=v.selectionAfter=null,[v,b]}function h(b,v){var x=b.action=="insert",S=v.action=="insert";if(x&&S)c(b.start,v.start)<0?p(v,b,1):p(b,v,1);else if(x&&!S)c(b.start,v.end)>=0?p(b,v,-1):(c(b.start,v.start)<=0||p(b,T.fromPoints(v.start,b.start),-1),p(v,b,1));else if(!x&&S)c(v.start,b.end)>=0?p(v,b,-1):(c(v.start,b.start)<=0||p(v,T.fromPoints(b.start,v.start),-1),p(b,v,1));else if(!x&&!S)if(c(v.start,b.end)>=0)p(v,b,-1);else if(c(v.end,b.start)<=0)p(b,v,-1);else{var E,M;return c(b.start,v.start)<0&&(E=b,b=m(b,v.start)),c(b.end,v.end)>0&&(M=m(b,v.end)),g(v.end,b.start,b.end,-1),M&&!E&&(b.lines=M.lines,b.start=M.start,b.end=M.end,M=b),[v,E,M].filter(Boolean)}return[v,b]}function p(b,v,x){g(b.start,v.start,v.end,x),g(b.end,v.start,v.end,x)}function g(b,v,x,S){b.row==(S==1?v:x).row&&(b.column+=S*(x.column-v.column)),b.row+=S*(x.row-v.row)}function m(b,v){var x=b.lines,S=b.end;b.end=Q(v);var E=b.end.row-b.start.row,M=x.splice(E,x.length),w=E?v.column:v.column-b.start.column;x.push(M[0].substring(0,w)),M[0]=M[0].substr(w);var H={start:Q(v),end:S,lines:M,action:b.action};return H}function y(b,v){v=s(v);for(var x=b.length;x--;){for(var S=b[x],E=0;E<S.length;E++){var M=S[E],w=h(M,v);v=w[0],w.length!=2&&(w[2]?(S.splice(E+1,1,w[1],w[2]),E++):w[1]||(S.splice(E,1),E--))}S.length||b.splice(x,1)}return b}function L(b,v){for(var x=0;x<v.length;x++)for(var S=v[x],E=0;E<S.length;E++)y(b,S[E])}n.UndoManager=a}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(t,n,i){var a=t("../range").Range,o=function(){function T(c,Q){this.foldData=c,Array.isArray(Q)?this.folds=Q:Q=this.folds=[Q];var s=Q[Q.length-1];this.range=new a(Q[0].start.row,Q[0].start.column,s.end.row,s.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(l){l.setFoldLine(this)},this)}return T.prototype.shiftRow=function(c){this.start.row+=c,this.end.row+=c,this.folds.forEach(function(Q){Q.start.row+=c,Q.end.row+=c})},T.prototype.addFold=function(c){if(c.sameRow){if(c.start.row<this.startRow||c.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(c),this.folds.sort(function(Q,s){return-Q.range.compareEnd(s.start.row,s.start.column)}),this.range.compareEnd(c.start.row,c.start.column)>0?(this.end.row=c.end.row,this.end.column=c.end.column):this.range.compareStart(c.end.row,c.end.column)<0&&(this.start.row=c.start.row,this.start.column=c.start.column)}else if(c.start.row==this.end.row)this.folds.push(c),this.end.row=c.end.row,this.end.column=c.end.column;else if(c.end.row==this.start.row)this.folds.unshift(c),this.start.row=c.start.row,this.start.column=c.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");c.foldLine=this},T.prototype.containsRow=function(c){return c>=this.start.row&&c<=this.end.row},T.prototype.walk=function(c,Q,s){var l=0,u=this.folds,d,f,h,p=!0;Q==null&&(Q=this.end.row,s=this.end.column);for(var g=0;g<u.length;g++){if(d=u[g],f=d.range.compareStart(Q,s),f==-1){c(null,Q,s,l,p);return}if(h=c(null,d.start.row,d.start.column,l,p),h=!h&&c(d.placeholder,d.start.row,d.start.column,l),h||f===0)return;p=!d.sameRow,l=d.end.column}c(null,Q,s,l,p)},T.prot
|
|||
|
|
`)},T.prototype.idxToPosition=function(c){for(var Q=0,s=0;s<this.folds.length;s++){var l=this.folds[s];if(c-=l.start.column-Q,c<0)return{row:l.start.row,column:l.start.column+c};if(c-=l.placeholder.length,c<0)return l.start;Q=l.end.column}return{row:this.end.row,column:this.end.column+c}},T}();n.FoldLine=o}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(t,n,i){var a=t("./range").Range,o=a.comparePoints,T=function(){function c(){this.ranges=[],this.$bias=1}return c.prototype.pointIndex=function(Q,s,l){for(var u=this.ranges,d=l||0;d<u.length;d++){var f=u[d],h=o(Q,f.end);if(!(h>0)){var p=o(Q,f.start);return h===0?s&&p!==0?-d-2:d:p>0||p===0&&!s?d:-d-1}}return-d-1},c.prototype.add=function(Q){var s=!Q.isEmpty(),l=this.pointIndex(Q.start,s);l<0&&(l=-l-1);var u=this.pointIndex(Q.end,s,l);return u<0?u=-u-1:u++,this.ranges.splice(l,u-l,Q)},c.prototype.addList=function(Q){for(var s=[],l=Q.length;l--;)s.push.apply(s,this.add(Q[l]));return s},c.prototype.substractPoint=function(Q){var s=this.pointIndex(Q);if(s>=0)return this.ranges.splice(s,1)},c.prototype.merge=function(){var Q=[],s=this.ranges;s=s.sort(function(h,p){return o(h.start,p.start)});for(var l=s[0],u,d=1;d<s.length;d++){u=l,l=s[d];var f=o(u.end,l.start);f<0||f==0&&!u.isEmpty()&&!l.isEmpty()||(o(u.end,l.end)<0&&(u.end.row=l.end.row,u.end.column=l.end.column),s.splice(d,1),Q.push(l),l=u,d--)}return this.ranges=s,Q},c.prototype.contains=function(Q,s){return this.pointIndex({row:Q,column:s})>=0},c.prototype.containsPoint=function(Q){return this.pointIndex(Q)>=0},c.prototype.rangeAtPoint=function(Q){var s=this.pointIndex(Q);if(s>=0)return this.ranges[s]},c.prototype.clipRows=function(Q,s){var l=this.ranges;if(l[0].start.row>s||l[l.length-1].start.row<Q)return[];var u=this.pointIndex({row:Q,column:0});u<0&&(u=-u-1);var d=this.pointIndex({row:s,column:0},u);d<0&&(d=-d-1);for(var f=[],h=u;h<d;h++)f.push(l[h]);return f},c.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},c.prototype.attach=function(Q){this.session&&this.detach(),this.session=Q,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},c.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},c.prototype.$onChange=function(Q){for(var s=Q.start,l=Q.end,u=s.row,d=l.row,f=this.ranges,h=0,p=f.length;h<p;h++){var g=f[h];if(g.end.row>=u)break}if(Q.action=="insert")for(var m=d-u,y=-s.column+l.column;h<p;h++){var g=f[h];if(g.start.row>u)break;if(g.start.row==u&&g.start.column>=s.column&&(g.start.column==s.column&&this.$bias<=0||(g.start.column+=y,g.start.row+=m)),g.end.row==u&&g.end.column>=s.column){if(g.end.column==s.column&&this.$bias<0)continue;g.end.column==s.column&&y>0&&h<p-1&&g.end.column>g.start.column&&g.end.column==f[h+1].start.column&&(g.end.column-=y),g.end.column+=y,g.end.row+=m}}else for(var m=u-d,y=s.column-l.column;h<p;h++){var g=f[h];if(g.start.row>d)break;g.end.row<d&&(u<g.end.row||u==g.end.row&&s.column<g.end.column)?(g.end.row=u,g.end.column=s.column):g.end.row==d?g.end.column<=l.column?(m||g.end.column>s.column)&&(g.end.column=s.column,g.end.row=s.row):(g.end.column+=y,g.end.row+=m):g.end.row>d&&(g.end.row+=m),g.start.row<d&&(u<g.start.row||u==g.start.row&&s.column<g.start.column)?(g.start.row=u,g.start.column=s.column):g.start.row==d?g.start.column<=l.column?(m||g.start.column>s.column)&&(g.start.column=s.column,g.start.row=s.row):(g.start.column+=y,g.start.row+=m):g.start.row>d&&(g.start.row+=m)}if(m!=0&&h<p)for(;h<p;h++){var g=f[h];g.start.row+=m,g.end.row+=m}},c}();T.prototype.comparePoints=o,n.RangeList=T}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(t,n,i){var a=this&&this.__extends||function(){var u=function(d,f){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,p){h.__proto__=p}||function(h,p){for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(h[g]=p[g])},u(d,f)};return function(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+
|
|||
|
|
`)},this.bgTokenizer=new f(new l().getTokenizer(),this);var A=this;this.bgTokenizer.on("update",function(O){A._signal("tokenizerUpdate",O)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof H!="object"||!H.getLine)&&(H=new d(H)),this.setDocument(H),this.selection=new s(this),this.$bidiHandler=new T(this),c.resetOptions(this),this.setMode(C),c._signal("session",this),this.destroyed=!1}return w.prototype.setDocument=function(H){this.doc&&this.doc.off("change",this.$onChange),this.doc=H,H.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},w.prototype.getDocument=function(){return this.doc},w.prototype.$resetRowCache=function(H){if(!H){this.$docRowCache=[],this.$screenRowCache=[];return}var C=this.$docRowCache.length,A=this.$getRowCacheIndex(this.$docRowCache,H)+1;C>A&&(this.$docRowCache.splice(A,C),this.$screenRowCache.splice(A,C))},w.prototype.$getRowCacheIndex=function(H,C){for(var A=0,O=H.length-1;A<=O;){var D=A+O>>1,I=H[D];if(C>I)A=D+1;else if(C<I)O=D-1;else return D}return A-1},w.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},w.prototype.onChangeFold=function(H){var C=H.data;this.$resetRowCache(C.start.row)},w.prototype.onChange=function(H){this.$modified=!0,this.$bidiHandler.onChange(H),this.$resetRowCache(H.start.row);var C=this.$updateInternalDataOnChange(H);!this.$fromUndo&&this.$undoManager&&(C&&C.length&&(this.$undoManager.add({action:"removeFolds",folds:C},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(H,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(H),this._signal("change",H)},w.prototype.setValue=function(H){this.doc.setValue(H),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},w.fromJSON=function(H){typeof H=="string"&&(H=JSON.parse(H));var C=new p;C.$undoStack=H.history.undo,C.$redoStack=H.history.redo,C.mark=H.history.mark,C.$rev=H.history.rev;var A=new w(H.value);return H.folds.forEach(function(O){A.addFold("...",u.fromPoints(O.start,O.end))}),A.setAnnotations(H.annotations),A.setBreakpoints(H.breakpoints),A.setMode(H.mode),A.setScrollLeft(H.scrollLeft),A.setScrollTop(H.scrollTop),A.setUndoManager(C),A.selection.fromJSON(H.selection),A},w.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(H){return H.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},w.prototype.toString=function(){return this.doc.getValue()},w.prototype.getSelection=function(){return this.selection},w.prototype.getState=function(H){return this.bgTokenizer.getState(H)},w.prototype.getTokens=function(H){return this.bgTokenizer.getTokens(H)},w.prototype.getTokenAt=function(H,C){var A=this.bgTokenizer.getTokens(H),O,D=0;if(C==null){var I=A.length-1;D=this.getLine(H).length}else for(var I=0;I<A.length&&(D+=A[I].value.length,!(D>=C));I++);return O=A[I],O?(O.index=I,O.start=D-O.value.length,O):null},w.prototype.setUndoManager=function(H){if(this.$undoManager=H,this.$informUndoManager&&this.$informUndoManager.cancel(),H){var C=this;H.addSession(this),this.$syncInformUndoManager=function(){C.$informUndoManager.cancel(),C.mergeUndoDeltas=!1},this.$informUndoManager=o.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},w.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},w.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},w.prototype.getTabString=function(){return this.getUseSoftTabs()?o.stringRepeat(" ",this.getTabSize()):" "},w.prototype.setUseSoftTabs=function(H){this.setOption("useSoftTabs",H)},w.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this
|
|||
|
|
`},w.prototype.getWordRange=function(H,C){var A=this.getLine(H),O=!1;if(C>0&&(O=!!A.charAt(C-1).match(this.tokenRe)),O||(O=!!A.charAt(C).match(this.tokenRe)),O)var D=this.tokenRe;else if(/^\s+$/.test(A.slice(C-1,C+1)))var D=/\s/;else var D=this.nonTokenRe;var I=C;if(I>0){do I--;while(I>=0&&A.charAt(I).match(D));I++}for(var N=C;N<A.length&&A.charAt(N).match(D);)N++;return new u(H,I,H,N)},w.prototype.getAWordRange=function(H,C){for(var A=this.getWordRange(H,C),O=this.getLine(A.end.row);O.charAt(A.end.column).match(/[ \t]/);)A.end.column+=1;return A},w.prototype.setNewLineMode=function(H){this.doc.setNewLineMode(H)},w.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},w.prototype.setUseWorker=function(H){this.setOption("useWorker",H)},w.prototype.getUseWorker=function(){return this.$useWorker},w.prototype.onReloadTokenizer=function(H){var C=H.data;this.bgTokenizer.start(C.first),this._signal("tokenizerUpdate",H)},w.prototype.setMode=function(H,C){if(H&&typeof H=="object"){if(H.getTokenizer)return this.$onChangeMode(H);var A=H,O=A.path}else O=H||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new l),this.$modes[O]&&!A){this.$onChangeMode(this.$modes[O]),C&&C();return}this.$modeId=O,c.loadModule(["mode",O],(function(D){if(this.$modeId!==O)return C&&C();this.$modes[O]&&!A?this.$onChangeMode(this.$modes[O]):D&&D.Mode&&(D=new D.Mode(A),A||(this.$modes[O]=D,D.$id=O),this.$onChangeMode(D)),C&&C()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},w.prototype.$onChangeMode=function(H,C){if(C||(this.$modeId=H.$id),this.$mode!==H){var A=this.$mode;this.$mode=H,this.$stopWorker(),this.$useWorker&&this.$startWorker();var O=H.getTokenizer();if(O.on!==void 0){var D=this.onReloadTokenizer.bind(this);O.on("update",D)}this.bgTokenizer.setTokenizer(O),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=H.tokenRe,this.nonTokenRe=H.nonTokenRe,C||(H.attachToSession&&H.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(H.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:A,mode:H}))}},w.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},w.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(H){c.warn("Could not load worker",H),this.$worker=null}},w.prototype.getMode=function(){return this.$mode},w.prototype.setScrollTop=function(H){this.$scrollTop===H||isNaN(H)||(this.$scrollTop=H,this._signal("changeScrollTop",H))},w.prototype.getScrollTop=function(){return this.$scrollTop},w.prototype.setScrollLeft=function(H){this.$scrollLeft===H||isNaN(H)||(this.$scrollLeft=H,this._signal("changeScrollLeft",H))},w.prototype.getScrollLeft=function(){return this.$scrollLeft},w.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},w.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var H=0;return this.lineWidgets.forEach(function(C){C&&C.screenWidth>H&&(H=C.screenWidth)}),this.lineWidgetWidth=H},w.prototype.$computeWidth=function(H){if(this.$modified||H){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var C=this.doc.getAllLines(),A=this.$rowLengthCache,O=0,D=0,I=this.$foldData[D],N=I?I.start.row:1/0,V=C.length,k=0;k<V;k++){if(k>N){if(k=I.end.row+1,k>=V)break;I=this.$foldData[D++],N=I?I.start.row:1/0}A[k]==null&&(A[k]=this.$getStringScreenWidth(C[k])[0]),A[k]>O&&(O=A[k])}this.screenWidth=O}},w.prototype.getLine=function(H){return this.doc.getLine(H)},w.prototype.getLines=function(H,C){return this.doc.getLines(H,C)},w.prototype.getLength=function(){return this.doc.getLength()},w.prototype.getTextRange=function(H){return this.doc.getTextRange(H||this.selection.getRange())},w.prototype.insert=function(H,C){return this.doc.insert(H,C)},w.prototype.remove=function(H){return this.doc.remove(H)},w.prototype.removeFullLines=function(H,C){return this.doc.rem
|
|||
|
|
^`).split(`
|
|||
|
|
`),f=[],h=0;h<d.length;h++)try{f.push(new RegExp(d[h],u))}catch{return!1}return f},s.prototype.$matchIterator=function(l,u){var d=this.$assembleRegExp(u);if(!d)return!1;var f=u.backwards==!0,h=u.skipCurrent!=!1,p=d.unicode,g=u.range,m=u.start;m||(m=g?g[f?"end":"start"]:l.selection.getRange()),m.start&&(m=m[h!=f?"end":"start"]);var y=g?g.start.row:0,L=g?g.end.row:l.getLength()-1;if(f)var b=function(S){var E=m.row;if(!x(E,m.column,S)){for(E--;E>=y;E--)if(x(E,Number.MAX_VALUE,S))return;if(u.wrap!=!1){for(E=L,y=m.row;E>=y;E--)if(x(E,Number.MAX_VALUE,S))return}}};else var b=function(E){var M=m.row;if(!x(M,m.column,E)){for(M=M+1;M<=L;M++)if(x(M,0,E))return;if(u.wrap!=!1){for(M=y,L=m.row;M<=L;M++)if(x(M,0,E))return}}};if(u.$isMultiLine)var v=d.length,x=function(S,E,M){var w=f?S-v+1:S;if(!(w<0||w+v>l.getLength())){var H=l.getLine(w),C=H.search(d[0]);if(!(!f&&C<E||C===-1)){for(var A=1;A<v;A++)if(H=l.getLine(w+A),H.search(d[A])==-1)return;var O=H.match(d[v-1])[0].length;if(!(f&&O>E)&&M(w,C,w+v-1,O))return!0}}};else if(f)var x=function(E,M,w){var H=l.getLine(E),C=[],A,O=0;for(d.lastIndex=0;A=d.exec(H);){var D=A[0].length;if(O=A.index,!D){if(O>=H.length)break;d.lastIndex=O+=a.skipEmptyMatch(H,O,p)}if(A.index+D>M)break;C.push(A.index,D)}for(var I=C.length-1;I>=0;I-=2){var N=C[I-1],D=C[I];if(w(E,N,E,N+D))return!0}};else var x=function(E,M,w){var H=l.getLine(E),C,A;for(d.lastIndex=M;A=d.exec(H);){var O=A[0].length;if(C=A.index,w(E,C,E,C+O))return!0;if(!O&&(d.lastIndex=C+=a.skipEmptyMatch(H,C,p),C>=H.length))return!1}};return{forEach:b}},s}();function Q(s,l){var u=a.supportsLookbehind();function d(g,m){m===void 0&&(m=!0);var y=u&&l.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return y.test(g)||l.regExp?u&&l.$supportsUnicodeFlag?m?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var f=Array.from(s),h=f[0],p=f[f.length-1];return d(h)+s+d(p,!1)}n.Search=c}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(t,n,i){var a=this&&this.__extends||function(){var u=function(d,f){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,p){h.__proto__=p}||function(h,p){for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(h[g]=p[g])},u(d,f)};return function(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");u(d,f);function h(){this.constructor=d}d.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)}}(),o=t("../lib/keys"),T=t("../lib/useragent"),c=o.KEY_MODS,Q=function(){function u(d,f){this.$init(d,f,!1)}return u.prototype.$init=function(d,f,h){this.platform=f||(T.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(d),this.$singleCommand=h},u.prototype.addCommand=function(d){this.commands[d.name]&&this.removeCommand(d),this.commands[d.name]=d,d.bindKey&&this._buildKeyHash(d)},u.prototype.removeCommand=function(d,f){var h=d&&(typeof d=="string"?d:d.name);d=this.commands[h],f||delete this.commands[h];var p=this.commandKeyBinding;for(var g in p){var m=p[g];if(m==d)delete p[g];else if(Array.isArray(m)){var y=m.indexOf(d);y!=-1&&(m.splice(y,1),m.length==1&&(p[g]=m[0]))}}},u.prototype.bindKey=function(d,f,h){if(typeof d=="object"&&d&&(h==null&&(h=d.position),d=d[this.platform]),!!d){if(typeof f=="function")return this.addCommand({exec:f,bindKey:d,name:f.name||d});d.split("|").forEach(function(p){var g="";if(p.indexOf(" ")!=-1){var m=p.split(/\s+/);p=m.pop(),m.forEach(function(b){var v=this.parseKeys(b),x=c[v.hashId]+v.key;g+=(g?" ":"")+x,this._addCommandToBinding(g,"chainKeys")},this),g+=" "}var y=this.parseKeys(p),L=c[y.hashId]+y.key;this._addCommandToBinding(g+L,f,h)},this)}},u.prototype._addCommandToBinding=function(d,f,h){var p=this.commandKeyBinding,g;if(!f)delete p[d];else if(!p[d]||this.$singleCommand)p[d]=f;else{Array.isArray(p[d])?(g=p[d].indexOf(f))!=-1&&p[d].splice(g,1):p[d]=[p[d]],typeof h!="number"&&(h=s(f));var m=p[d];for(g=0;g<m.length;g++){var y=m[g],L=s(y);if(L>h)break}m.splice(g,0,f)}},u.prototype.
|
|||
|
|
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(s){s.selection.clearSelection();var l=s.getCursorPosition();s.selection.moveTo(l.row-1,Number.MAX_VALUE),s.insert(`
|
|||
|
|
`),l.row===0&&s.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(s){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),s.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:c("F1","F1"),exec:function(s){s.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:c(null,null),exec:function(s){s.prompt({$type:"modes"})},readOnly:!0}];for(var Q=1;Q<9;Q++)n.commands.push({name:"foldToLevel"+Q,description:"Fold To Level "+Q,level:Q,exec:function(s){s.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(t,n,i){var a=t("./lib/dom"),o=function(){function T(c){this.session=c,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return T.prototype.getRowLength=function(c){var Q;return this.lineWidgets?Q=this.lineWidgets[c]&&this.lineWidgets[c].rowCount||0:Q=0,!this.$useWrapMode||!this.$wrapData[c]?1+Q:this.$wrapData[c].length+1+Q},T.prototype.$getWidgetScreenLength=function(){var c=0;return this.lineWidgets.forEach(function(Q){Q&&Q.rowCount&&!Q.hidden&&(c+=Q.rowCount)}),c},T.prototype.$onChangeEditor=function(c){this.attach(c.editor)},T.prototype.attach=function(c){c&&c.widgetManager&&c.widgetManager!=this&&c.widgetManager.detach(),this.editor!=c&&(this.detach(),this.editor=c,c&&(c.widgetManager=this,c.renderer.on("beforeRender",this.measureWidgets),c.renderer.on("afterRender",this.renderWidgets)))},T.prototype.detach=function(c){var Q=this.editor;if(Q){this.editor=null,Q.widgetManager=null,Q.renderer.off("beforeRender",this.measureWidgets),Q.renderer.off("afterRender",this.renderWidgets);var s=this.session.lineWidgets;s&&s.forEach(function(l){l&&l.el&&l.el.parentNode&&(l._inDocument=!1,l.el.parentNode.removeChild(l.el))})}},T.prototype.updateOnFold=function(c,Q){var s=Q.lineWidgets;if(!(!s||!c.action)){for(var l=c.data,u=l.start.row,d=l.end.row,f=c.action=="add",h=u+1;h<d;h++)s[h]&&(s[h].hidden=f);s[d]&&(f?s[u]?s[d].hidden=f:s[u]=s[d]:(s[u]==s[d]&&(s[u]=void 0),s[d].hidden=f))}},T.prototype.updateOnChange=function(c){var Q=this.session.lineWidgets;if(Q){var s=c.start.row,l=c.end.row-s;if(l!==0)if(c.action=="remove"){var u=Q.splice(s+1,l);!Q[s]&&u[u.length-1]&&(Q[s]=u.pop()),u.forEach(function(f){f&&this.removeLineWidget(f)},this),this.$updateRows()}else{var d=new Array(l);Q[s]&&Q[s].column!=null&&c.start.column>Q[s].column&&s++,d.unshift(s,0),Q.splice.apply(Q,d),this.$updateRows()}}},T.prototype.$updateRows=function(){var c=this.session.lineWidgets;if(c){var Q=!0;c.forEach(function(s,l){if(s)for(Q=!1,s.row=l;s.$oldWidget;)s.$oldWidget.row=l,s=s.$oldWidget}),Q&&(this.session.lineWidgets=null)}},T.prototype.$registerLineWidget=function(c){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var Q=this.session.lineWidgets[c.row];return Q&&(c.$oldWidget=Q,Q.el&&Q.el.parentNode&&(Q.el.parentNode.removeChild(Q.el),Q._inDocument=!1)),this.session.lineWidgets[c.row]=c,c},T.prototype.addLineWidget=function(c){if(this.$registerLineWidget(c),c.session=this.session,!this.editor)return c;var Q=this.editor.renderer;c.html&&!c.el&&(c.el=a.createElement("div"),c.el.innerHTML=c.html),c.text&&!c.el&&(c.el=a.createElement("div"),c.el.textContent=c.text),c.el&&(a.addCssClass(c.el,"ace_lineWidgetContainer"),c.className&&a.addCssClass(c.el,c.className),c.el.style.position="absolute",c.el.style.zIndex="5",Q.container.appendChild(c.el),c._inDocument=!0,c.cov
|
|||
|
|
`)==-1){var k=p.fromPoints(N,N);k.end.column+=A.length,this.session.remove(k)}}else{var k=this.getSelectionRange();N=this.session.remove(k),this.clearSelection()}if(A==`
|
|||
|
|
`||A==`\r
|
|||
|
|
`){var F=D.getLine(N.row);if(N.column>F.search(/\S|$/)){var P=F.substr(N.column).search(/\S|$/);D.doc.removeInLine(N.row,N.column,N.column+P)}}this.clearSelection();var G=N.column,R=D.getState(N.row),F=D.getLine(N.row),j=I.checkOutdent(R,F,A);if(D.insert(N,A),V&&V.selection&&(V.selection.length==2?this.selection.setSelectionRange(new p(N.row,G+V.selection[0],N.row,G+V.selection[1])):this.selection.setSelectionRange(new p(N.row+V.selection[0],V.selection[1],N.row+V.selection[2],V.selection[3]))),this.$enableAutoIndent){if(D.getDocument().isNewLine(A)){var z=I.getNextLineIndent(R,F.slice(0,N.column),D.getTabString());D.insert({row:N.row+1,column:0},z)}j&&I.autoOutdent(R,D,N.row)}},C.prototype.autoIndent=function(){for(var A=this.session,O=A.getMode(),D=this.selection.isEmpty()?[new p(0,0,A.doc.getLength()-1,0)]:this.selection.getAllRanges(),I="",N="",V="",k=A.getTabString(),P=0;P<D.length;P++)for(var G=D[P].start.row,R=D[P].end.row,F=G;F<=R;F++){F>0&&(I=A.getState(F-1),N=A.getLine(F-1),V=O.getNextLineIndent(I,N,k));var j=A.getLine(F),z=O.$getIndent(j);if(V!==z){if(z.length>0){var U=new p(F,0,F,z.length);A.remove(U)}V.length>0&&A.insert({row:F,column:0},V)}O.autoOutdent(I,A,F)}},C.prototype.onTextInput=function(A,O){if(!O)return this.keyBinding.onTextInput(A);this.startOperation({command:{name:"insertstring"}});var D=this.applyComposition.bind(this,A,O);this.selection.rangeCount?this.forEachSelection(D):D(),this.endOperation()},C.prototype.applyComposition=function(A,O){if(O.extendLeft||O.extendRight){var D=this.selection.getRange();D.start.column-=O.extendLeft,D.end.column+=O.extendRight,D.start.column<0&&(D.start.row--,D.start.column+=this.session.getLine(D.start.row).length+1),this.selection.setRange(D),!A&&!D.isEmpty()&&this.remove()}if((A||!this.selection.isEmpty())&&this.insert(A,!0),O.restoreStart||O.restoreEnd){var D=this.selection.getRange();D.start.column-=O.restoreStart,D.end.column-=O.restoreEnd,this.selection.setRange(D)}},C.prototype.onCommandKey=function(A,O,D){return this.keyBinding.onCommandKey(A,O,D)},C.prototype.setOverwrite=function(A){this.session.setOverwrite(A)},C.prototype.getOverwrite=function(){return this.session.getOverwrite()},C.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},C.prototype.setScrollSpeed=function(A){this.setOption("scrollSpeed",A)},C.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},C.prototype.setDragDelay=function(A){this.setOption("dragDelay",A)},C.prototype.getDragDelay=function(){return this.getOption("dragDelay")},C.prototype.setSelectionStyle=function(A){this.setOption("selectionStyle",A)},C.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},C.prototype.setHighlightActiveLine=function(A){this.setOption("highlightActiveLine",A)},C.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},C.prototype.setHighlightGutterLine=function(A){this.setOption("highlightGutterLine",A)},C.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},C.prototype.setHighlightSelectedWord=function(A){this.setOption("highlightSelectedWord",A)},C.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},C.prototype.setAnimatedScroll=function(A){this.renderer.setAnimatedScroll(A)},C.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},C.prototype.setShowInvisibles=function(A){this.renderer.setShowInvisibles(A)},C.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},C.prototype.setDisplayIndentGuides=function(A){this.renderer.setDisplayIndentGuides(A)},C.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},C.prototype.setHighlightIndentGuides=function(A){this.renderer.setHighlightIndentGuides(A)},C.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},C.prototype.setShowPrintMargin=function(A){this.renderer.setShowPrintMargin(A)},C.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMa
|
|||
|
|
`){var k=D.getLine(O.end.row);/^\s+$/.test(k)&&(O.end.column=k.length)}}N&&(O=N)}this.session.remove(O),this.clearSelection()},C.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},C.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},C.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},C.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var A=this.getSelectionRange();A.start.column==A.end.column&&A.start.row==A.end.row&&(A.end.column=0,A.end.row++),this.session.remove(A),this.clearSelection()},C.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var A=this.getCursorPosition();this.insert(`
|
|||
|
|
`),this.moveCursorToPosition(A)},C.prototype.setGhostText=function(A,O){this.session.widgetManager||(this.session.widgetManager=new v(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(A,O)},C.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},C.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var A=this.getCursorPosition(),O=A.column;if(O!==0){var D=this.session.getLine(A.row),I,N;O<D.length?(I=D.charAt(O)+D.charAt(O-1),N=new p(A.row,O-1,A.row,O+1)):(I=D.charAt(O-1)+D.charAt(O-2),N=new p(A.row,O-2,A.row,O)),this.session.replace(N,I),this.session.selection.moveToPosition(N.end)}}},C.prototype.toLowerCase=function(){var A=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var O=this.getSelectionRange(),D=this.session.getTextRange(O);this.session.replace(O,D.toLowerCase()),this.selection.setSelectionRange(A)},C.prototype.toUpperCase=function(){var A=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var O=this.getSelectionRange(),D=this.session.getTextRange(O);this.session.replace(O,D.toUpperCase()),this.selection.setSelectionRange(A)},C.prototype.indent=function(){var A=this.session,O=this.getSelectionRange();if(O.start.row<O.end.row){var D=this.$getSelectedRows();A.indentRows(D.first,D.last," ");return}else if(O.start.column<O.end.column){var I=A.getTextRange(O);if(!/^\s+$/.test(I)){var D=this.$getSelectedRows();A.indentRows(D.first,D.last," ");return}}var N=A.getLine(O.start.row),V=O.start,k=A.getTabSize(),P=A.documentToScreenColumn(V.row,V.column);if(this.session.getUseSoftTabs())var G=k-P%k,R=c.stringRepeat(" ",G);else{for(var G=P%k;N[O.start.column-1]==" "&&G;)O.start.column--,G--;this.selection.setSelectionRange(O),R=" "}return this.insert(R)},C.prototype.blockIndent=function(){var A=this.$getSelectedRows();this.session.indentRows(A.first,A.last," ")},C.prototype.blockOutdent=function(){var A=this.session.getSelection();this.session.outdentRows(A.getRange())},C.prototype.sortLines=function(){for(var A=this.$getSelectedRows(),O=this.session,D=[],I=A.first;I<=A.last;I++)D.push(O.getLine(I));D.sort(function(k,P){return k.toLowerCase()<P.toLowerCase()?-1:k.toLowerCase()>P.toLowerCase()?1:0});for(var N=new p(0,0,0,0),I=A.first;I<=A.last;I++){var V=O.getLine(I);N.start.row=I,N.end.row=I,N.end.column=V.length,O.replace(N,D[I-A.first])}},C.prototype.toggleCommentLines=function(){var A=this.session.getState(this.getCursorPosition().row),O=this.$getSelectedRows();this.session.getMode().toggleCommentLines(A,this.session,O.first,O.last)},C.prototype.toggleBlockComment=function(){var A=this.getCursorPosition(),O=this.session.getState(A.row),D=this.getSelectionRange();this.session.getMode().toggleBlockComment(O,this.session,D,A)},C.prototype.getNumberAt=function(A,O){var D=/[\-]?[0-9]+(?:\.[0-9]+)?/g;D.lastIndex=0;for(var I=this.session.getLine(A);D.lastIndex<O;){var N=D.exec(I);if(N.index<=O&&N.index+N[0].length>=O){var V={value:N[0],start:N.index,end:N.index+N[0].length};return V}}return null},C.prototype.modifyNumber=function(A){var O=this.selection.getCursor().row,D=this.selection.getCursor().column,I=new p(O,D-1,O,D),N=this.session.getTextRange(I);if(!isNaN(parseFloat(N))&&isFinite(N)){var V=this.getNumberAt(O,D);if(V){var k=V.value.indexOf(".")>=0?V.start+V.value.indexOf(".")+1:V.end,P=V.start+V.value.length-k,G=parseFloat(V.value);G*=Math.pow(10,P),k!==V.end&&D<k?A*=Math.pow(10,V.end-D-1):A*=Math.pow(10,V.end-D),G+=A,G/=Math.pow(10,P);var R=G.toFixed(P),F=new p(O,V.start,O,V.end);this.session.replace(F,R),this.moveCursorTo(O,Math.max(V.start+1,D+R.length-V.value.length))}}else this.toggleWord()},C.prototype.toggleWord=function(){var A=this.selection.getCursor().row,O=this.selection.getCursor().column;this.selection.selectWord();var D=this.getSelectedText(),I=this.selection.getWordRange().start.column,N=D.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),V=O-I-1;V<0&&(V=0);var k=0,P=0,G=this;D.match(/[A-Za-z0-9_]+/)&&N.forEach(function(J,ae){P=k+J.length,V>=k&&V<=P&
|
|||
|
|
`&&f.getNewLineMode()!="windows",p=h?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=p)return this.EOL_CHAR=p,!0},d.prototype.setPadding=function(f){this.$padding=f,this.element.style.margin="0 "+f+"px"},d.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},d.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},d.prototype.$setFontMetrics=function(f){this.$fontMetrics=f,this.$fontMetrics.on("changeCharacterSize",(function(h){this._signal("changeCharacterSize",h)}).bind(this)),this.$pollSizeChanges()},d.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},d.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},d.prototype.setSession=function(f){this.session=f,f&&this.$computeTabString()},d.prototype.setShowInvisibles=function(f){return this.showInvisibles==f?!1:(this.showInvisibles=f,typeof f=="string"?(this.showSpaces=/tab/i.test(f),this.showTabs=/space/i.test(f),this.showEOL=/eol/i.test(f)):this.showSpaces=this.showTabs=this.showEOL=f,this.$computeTabString(),!0)},d.prototype.setDisplayIndentGuides=function(f){return this.displayIndentGuides==f?!1:(this.displayIndentGuides=f,this.$computeTabString(),!0)},d.prototype.setHighlightIndentGuides=function(f){return this.$highlightIndentGuides===f?!1:(this.$highlightIndentGuides=f,f)},d.prototype.$computeTabString=function(){var f=this.session.getTabSize();this.tabSize=f;for(var h=this.$tabStrings=[0],p=1;p<f+1;p++)if(this.showTabs){var g=this.dom.createElement("span");g.className="ace_invisible ace_invisible_tab",g.textContent=T.stringRepeat(this.TAB_CHAR,p),h.push(g)}else h.push(this.dom.createTextNode(T.stringRepeat(" ",p),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var m="ace_indent-guide",y=this.showSpaces?" ace_invisible ace_invisible_space":"",L=this.showSpaces?T.stringRepeat(this.SPACE_CHAR,this.tabSize):T.stringRepeat(" ",this.tabSize),b=this.showTabs?" ace_invisible ace_invisible_tab":"",v=this.showTabs?T.stringRepeat(this.TAB_CHAR,this.tabSize):L,g=this.dom.createElement("span");g.className=m+y,g.textContent=L,this.$tabStrings[" "]=g;var g=this.dom.createElement("span");g.className=m+b,g.textContent=v,this.$tabStrings[" "]=g}},d.prototype.updateLines=function(f,h,p){if(this.config.lastRow!=f.lastRow||this.config.firstRow!=f.firstRow)return this.update(f);this.config=f;for(var g=Math.max(h,f.firstRow),m=Math.min(p,f.lastRow),y=this.element.childNodes,L=0,v=f.firstRow;v<g;v++){var x=this.session.getFoldLine(v);if(x)if(x.containsRow(g)){g=x.start.row;break}else v=x.end.row;L++}for(var b=!1,v=g,x=this.session.getNextFoldLine(v),S=x?x.start.row:1/0;v>S&&(v=x.end.row+1,x=this.session.getNextFoldLine(v,x),S=x?x.start.row:1/0),!(v>m);){var E=y[L++];if(E){this.dom.removeChildren(E),this.$renderLine(E,v,v==S?x:!1),b&&(E.style.top=this.$lines.computeLineTop(v,f,this.session)+"px");var M=f.lineHeight*this.session.getRowLength(v)+"px";E.style.height!=M&&(b=!0,E.style.height=M)}v++}if(b)for(;L<this.$lines.cells.length;){var w=this.$lines.cells[L++];w.element.style.top=this.$lines.computeLineTop(w.row,f,this.session)+"px"}},d.prototype.scrollLines=function(f){var h=this.config;if(this.config=f,this.$lines.pageChanged(h,f))return this.update(f);this.$lines.moveContainer(f);var p=f.lastRow,g=h?h.lastRow:-1;if(!h||g<f.firstRow)return this.update(f);if(p<h.firstRow)return this.update(f);if(!h||h.lastRow<f.firstRow)return this.update(f);if(f.lastRow<h.firstRow)return this.update(f);if(h.firstRow<f.firstRow)for(var m=this.session.getFoldedRowCount(h.firstRow,f.firstRow-1);m>0;m--)this.$lines.shift();if(h.lastRow>f.lastRow)for(var m=this.session.getFoldedRowCount(f.lastRow+1,h.lastRow);m>0;m--)this.$lines.pop();f.firstRow<h.firstRow&&this.$lines.unshift(this.$renderLinesFragment(f,f.firstRow,h.firstRow-1)),f.lastRow>h.lastRow&&this.$lines.push(this.$renderLinesFragment(f,h.lastRow+1,f.lastRow)),this.$highlightIndentGuide()},d.prototype.$renderLinesFragment=function(f,h,p){for(var g=[],m=h,y
|
|||
|
|
position: absolute;
|
|||
|
|
background: rgba(128, 128, 128, 0.6);
|
|||
|
|
-moz-box-sizing: border-box;
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
border: 1px solid #bbb;
|
|||
|
|
border-radius: 2px;
|
|||
|
|
z-index: 8;
|
|||
|
|
}
|
|||
|
|
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
|
|||
|
|
position: absolute;
|
|||
|
|
z-index: 6;
|
|||
|
|
background: none;
|
|||
|
|
overflow: hidden!important;
|
|||
|
|
}
|
|||
|
|
.ace_editor>.ace_sb-v {
|
|||
|
|
z-index: 6;
|
|||
|
|
right: 0;
|
|||
|
|
top: 0;
|
|||
|
|
width: 12px;
|
|||
|
|
}
|
|||
|
|
.ace_editor>.ace_sb-v div {
|
|||
|
|
z-index: 8;
|
|||
|
|
right: 0;
|
|||
|
|
width: 100%;
|
|||
|
|
}
|
|||
|
|
.ace_editor>.ace_sb-h {
|
|||
|
|
bottom: 0;
|
|||
|
|
left: 0;
|
|||
|
|
height: 12px;
|
|||
|
|
}
|
|||
|
|
.ace_editor>.ace_sb-h div {
|
|||
|
|
bottom: 0;
|
|||
|
|
height: 100%;
|
|||
|
|
}
|
|||
|
|
.ace_editor>.ace_sb_grabbed {
|
|||
|
|
z-index: 8;
|
|||
|
|
background: #000;
|
|||
|
|
}`,"ace_scrollbar.css",!1);var s=function(){function d(f,h){this.element=T.createElement("div"),this.element.className="ace_sb"+h,this.inner=T.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,f.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,c.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return d.prototype.setVisible=function(f){this.element.style.display=f?"":"none",this.isVisible=f,this.coeff=1},d}();o.implement(s.prototype,Q);var l=function(d){a(f,d);function f(h,p){var g=d.call(this,h,"-v")||this;return g.scrollTop=0,g.scrollHeight=0,g.parent=h,g.width=g.VScrollWidth,g.renderer=p,g.inner.style.width=g.element.style.width=(g.width||15)+"px",g.$minWidth=0,g}return f.prototype.onMouseDown=function(h,p){if(h==="mousedown"&&!(c.getButton(p)!==0||p.detail===2)){if(p.target===this.inner){var g=this,m=p.clientY,y=function(M){m=M.clientY},L=function(){clearInterval(S)},b=p.clientY,v=this.thumbTop,x=function(){if(m!==void 0){var M=g.scrollTopFromThumbTop(v+m-b);M!==g.scrollTop&&g._emit("scroll",{data:M})}};c.capture(this.inner,y,L);var S=setInterval(x,20);return c.preventDefault(p)}var E=p.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(E)}),c.preventDefault(p)}},f.prototype.getHeight=function(){return this.height},f.prototype.scrollTopFromThumbTop=function(h){var p=h*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return p=p>>0,p<0?p=0:p>this.pageHeight-this.viewHeight&&(p=this.pageHeight-this.viewHeight),p},f.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},f.prototype.setHeight=function(h){this.height=Math.max(0,h),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},f.prototype.setScrollHeight=function(h,p){this.pageHeight===h&&!p||(this.pageHeight=h,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},f.prototype.setScrollTop=function(h){this.scrollTop=h,h<0&&(h=0),this.thumbTop=h*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},f}(s);l.prototype.setInnerHeight=l.prototype.setScrollHeight;var u=function(d){a(f,d);function f(h,p){var g=d.call(this,h,"-h")||this;return g.scrollLeft=0,g.scrollWidth=0,g.height=g.HScrollHeight,g.inner.style.height=g.element.style.height=(g.height||12)+"px",g.renderer=p,g}return f.prototype.onMouseDown=function(h,p){if(h==="mousedown"&&!(c.getButton(p)!==0||p.detail===2)){if(p.target===this.inner){var g=this,m=p.clientX,y=function(M){m=M.clientX},L=function(){clearInterval(S)},b=p.clientX,v=this.thumbLeft,x=function(){if(m!==void 0){var M=g.scrollLeftFromThumbLeft(v+m-b);M!==g.scrollLeft&&g._emit("scroll",{data:M})}};c.capture(this.inner,y,L);var S=setInterval(x,20);return c.preventDefault(p)}var E=p.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(E)}),c.preventDefault(p)}},f.prototype.getHeight=function(){return this.isVisible?this.height:0},f.prototype.scrollLeftFromThumbLeft=function(h){var p=h*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return p=p>>0,p<0?p=0:p>this.pageWidth-this.viewWidth&&(p=this.pageWidth-this.viewWidth),p},f.prototype.setWidth=function(h){this.width=Math.max(0,h),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},f.prototype.setScrollWidth=function(h,p){this.pageWidth===h&&!p||(this.pageWidth=h,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>t
|
|||
|
|
.ace_br1 {border-top-left-radius : 3px;}
|
|||
|
|
.ace_br2 {border-top-right-radius : 3px;}
|
|||
|
|
.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
|
|||
|
|
.ace_br4 {border-bottom-right-radius: 3px;}
|
|||
|
|
.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
|
|||
|
|
.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
|
|||
|
|
.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
|
|||
|
|
.ace_br8 {border-bottom-left-radius : 3px;}
|
|||
|
|
.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
|
|||
|
|
.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
|
|||
|
|
.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|||
|
|
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|||
|
|
.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|||
|
|
.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|||
|
|
.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
.ace_editor {
|
|||
|
|
position: relative;
|
|||
|
|
overflow: hidden;
|
|||
|
|
padding: 0;
|
|||
|
|
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
|
|||
|
|
direction: ltr;
|
|||
|
|
text-align: left;
|
|||
|
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_scroller {
|
|||
|
|
position: absolute;
|
|||
|
|
overflow: hidden;
|
|||
|
|
top: 0;
|
|||
|
|
bottom: 0;
|
|||
|
|
background-color: inherit;
|
|||
|
|
-ms-user-select: none;
|
|||
|
|
-moz-user-select: none;
|
|||
|
|
-webkit-user-select: none;
|
|||
|
|
user-select: none;
|
|||
|
|
cursor: text;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_content {
|
|||
|
|
position: absolute;
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
min-width: 100%;
|
|||
|
|
contain: style size layout;
|
|||
|
|
font-variant-ligatures: no-common-ligatures;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_keyboard-focus:focus {
|
|||
|
|
box-shadow: inset 0 0 0 2px #5E9ED6;
|
|||
|
|
outline: none;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_dragging .ace_scroller:before{
|
|||
|
|
position: absolute;
|
|||
|
|
top: 0;
|
|||
|
|
left: 0;
|
|||
|
|
right: 0;
|
|||
|
|
bottom: 0;
|
|||
|
|
content: '';
|
|||
|
|
background: rgba(250, 250, 250, 0.01);
|
|||
|
|
z-index: 1000;
|
|||
|
|
}
|
|||
|
|
.ace_dragging.ace_dark .ace_scroller:before{
|
|||
|
|
background: rgba(0, 0, 0, 0.01);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_gutter {
|
|||
|
|
position: absolute;
|
|||
|
|
overflow : hidden;
|
|||
|
|
width: auto;
|
|||
|
|
top: 0;
|
|||
|
|
bottom: 0;
|
|||
|
|
left: 0;
|
|||
|
|
cursor: default;
|
|||
|
|
z-index: 4;
|
|||
|
|
-ms-user-select: none;
|
|||
|
|
-moz-user-select: none;
|
|||
|
|
-webkit-user-select: none;
|
|||
|
|
user-select: none;
|
|||
|
|
contain: style size layout;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_gutter-active-line {
|
|||
|
|
position: absolute;
|
|||
|
|
left: 0;
|
|||
|
|
right: 0;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_scroller.ace_scroll-left:after {
|
|||
|
|
content: "";
|
|||
|
|
position: absolute;
|
|||
|
|
top: 0;
|
|||
|
|
right: 0;
|
|||
|
|
bottom: 0;
|
|||
|
|
left: 0;
|
|||
|
|
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
|
|||
|
|
pointer-events: none;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_gutter-cell, .ace_gutter-cell_svg-icons {
|
|||
|
|
position: absolute;
|
|||
|
|
top: 0;
|
|||
|
|
left: 0;
|
|||
|
|
right: 0;
|
|||
|
|
padding-left: 19px;
|
|||
|
|
padding-right: 6px;
|
|||
|
|
background-repeat: no-repeat;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_gutter-cell_svg-icons .ace_gutter_annotation {
|
|||
|
|
margin-left: -14px;
|
|||
|
|
float: left;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_gutter-cell .ace_gutter_annotation {
|
|||
|
|
margin-left: -19px;
|
|||
|
|
float: left;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {
|
|||
|
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
|
|||
|
|
background-repeat: no-repeat;
|
|||
|
|
background-position: 2px center;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
|
|||
|
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
|
|||
|
|
background-repeat: no-repeat;
|
|||
|
|
background-position: 2px center;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_gutter-cell.ace_info, .ace_icon.ace_info {
|
|||
|
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
|
|||
|
|
background-repeat: no-repeat;
|
|||
|
|
background-position: 2px center;
|
|||
|
|
}
|
|||
|
|
.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {
|
|||
|
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_icon_svg.ace_error {
|
|||
|
|
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
|
|||
|
|
background-color: crimson;
|
|||
|
|
}
|
|||
|
|
.ace_icon_svg.ace_warning {
|
|||
|
|
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
|
|||
|
|
background-color: darkorange;
|
|||
|
|
}
|
|||
|
|
.ace_icon_svg.ace_info {
|
|||
|
|
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
|
|||
|
|
background-color: royalblue;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_icon_svg.ace_error_fold {
|
|||
|
|
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
|||
|
|
background-color: crimson;
|
|||
|
|
}
|
|||
|
|
.ace_icon_svg.ace_warning_fold {
|
|||
|
|
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
|
|||
|
|
background-color: darkorange;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_scrollbar {
|
|||
|
|
contain: strict;
|
|||
|
|
position: absolute;
|
|||
|
|
right: 0;
|
|||
|
|
bottom: 0;
|
|||
|
|
z-index: 6;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_scrollbar-inner {
|
|||
|
|
position: absolute;
|
|||
|
|
cursor: text;
|
|||
|
|
left: 0;
|
|||
|
|
top: 0;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_scrollbar-v{
|
|||
|
|
overflow-x: hidden;
|
|||
|
|
overflow-y: scroll;
|
|||
|
|
top: 0;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_scrollbar-h {
|
|||
|
|
overflow-x: scroll;
|
|||
|
|
overflow-y: hidden;
|
|||
|
|
left: 0;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_print-margin {
|
|||
|
|
position: absolute;
|
|||
|
|
height: 100%;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_text-input {
|
|||
|
|
position: absolute;
|
|||
|
|
z-index: 0;
|
|||
|
|
width: 0.5em;
|
|||
|
|
height: 1em;
|
|||
|
|
opacity: 0;
|
|||
|
|
background: transparent;
|
|||
|
|
-moz-appearance: none;
|
|||
|
|
appearance: none;
|
|||
|
|
border: none;
|
|||
|
|
resize: none;
|
|||
|
|
outline: none;
|
|||
|
|
overflow: hidden;
|
|||
|
|
font: inherit;
|
|||
|
|
padding: 0 1px;
|
|||
|
|
margin: 0 -1px;
|
|||
|
|
contain: strict;
|
|||
|
|
-ms-user-select: text;
|
|||
|
|
-moz-user-select: text;
|
|||
|
|
-webkit-user-select: text;
|
|||
|
|
user-select: text;
|
|||
|
|
/*with \`pre-line\` chrome inserts instead of space*/
|
|||
|
|
white-space: pre!important;
|
|||
|
|
}
|
|||
|
|
.ace_text-input.ace_composition {
|
|||
|
|
background: transparent;
|
|||
|
|
color: inherit;
|
|||
|
|
z-index: 1000;
|
|||
|
|
opacity: 1;
|
|||
|
|
}
|
|||
|
|
.ace_composition_placeholder { color: transparent }
|
|||
|
|
.ace_composition_marker {
|
|||
|
|
border-bottom: 1px solid;
|
|||
|
|
position: absolute;
|
|||
|
|
border-radius: 0;
|
|||
|
|
margin-top: 1px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[ace_nocontext=true] {
|
|||
|
|
transform: none!important;
|
|||
|
|
filter: none!important;
|
|||
|
|
clip-path: none!important;
|
|||
|
|
mask : none!important;
|
|||
|
|
contain: none!important;
|
|||
|
|
perspective: none!important;
|
|||
|
|
mix-blend-mode: initial!important;
|
|||
|
|
z-index: auto;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_layer {
|
|||
|
|
z-index: 1;
|
|||
|
|
position: absolute;
|
|||
|
|
overflow: hidden;
|
|||
|
|
/* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
|
|||
|
|
word-wrap: normal;
|
|||
|
|
white-space: pre;
|
|||
|
|
height: 100%;
|
|||
|
|
width: 100%;
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
/* setting pointer-events: auto; on node under the mouse, which changes
|
|||
|
|
during scroll, will break mouse wheel scrolling in Safari */
|
|||
|
|
pointer-events: none;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_gutter-layer {
|
|||
|
|
position: relative;
|
|||
|
|
width: auto;
|
|||
|
|
text-align: right;
|
|||
|
|
pointer-events: auto;
|
|||
|
|
height: 1000000px;
|
|||
|
|
contain: style size layout;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_text-layer {
|
|||
|
|
font: inherit !important;
|
|||
|
|
position: absolute;
|
|||
|
|
height: 1000000px;
|
|||
|
|
width: 1000000px;
|
|||
|
|
contain: style size layout;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
|
|||
|
|
contain: style size layout;
|
|||
|
|
position: absolute;
|
|||
|
|
top: 0;
|
|||
|
|
left: 0;
|
|||
|
|
right: 0;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_hidpi .ace_text-layer,
|
|||
|
|
.ace_hidpi .ace_gutter-layer,
|
|||
|
|
.ace_hidpi .ace_content,
|
|||
|
|
.ace_hidpi .ace_gutter {
|
|||
|
|
contain: strict;
|
|||
|
|
}
|
|||
|
|
.ace_hidpi .ace_text-layer > .ace_line,
|
|||
|
|
.ace_hidpi .ace_text-layer > .ace_line_group {
|
|||
|
|
contain: strict;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_cjk {
|
|||
|
|
display: inline-block;
|
|||
|
|
text-align: center;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_cursor-layer {
|
|||
|
|
z-index: 4;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_cursor {
|
|||
|
|
z-index: 4;
|
|||
|
|
position: absolute;
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
border-left: 2px solid;
|
|||
|
|
/* workaround for smooth cursor repaintng whole screen in chrome */
|
|||
|
|
transform: translatez(0);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_multiselect .ace_cursor {
|
|||
|
|
border-left-width: 1px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_slim-cursors .ace_cursor {
|
|||
|
|
border-left-width: 1px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_overwrite-cursors .ace_cursor {
|
|||
|
|
border-left-width: 0;
|
|||
|
|
border-bottom: 1px solid;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_hidden-cursors .ace_cursor {
|
|||
|
|
opacity: 0.2;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
|
|||
|
|
opacity: 0;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_smooth-blinking .ace_cursor {
|
|||
|
|
transition: opacity 0.18s;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_animate-blinking .ace_cursor {
|
|||
|
|
animation-duration: 1000ms;
|
|||
|
|
animation-timing-function: step-end;
|
|||
|
|
animation-name: blink-ace-animate;
|
|||
|
|
animation-iteration-count: infinite;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
|
|||
|
|
animation-duration: 1000ms;
|
|||
|
|
animation-timing-function: ease-in-out;
|
|||
|
|
animation-name: blink-ace-animate-smooth;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
@keyframes blink-ace-animate {
|
|||
|
|
from, to { opacity: 1; }
|
|||
|
|
60% { opacity: 0; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
@keyframes blink-ace-animate-smooth {
|
|||
|
|
from, to { opacity: 1; }
|
|||
|
|
45% { opacity: 1; }
|
|||
|
|
60% { opacity: 0; }
|
|||
|
|
85% { opacity: 0; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
|
|||
|
|
position: absolute;
|
|||
|
|
z-index: 3;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_marker-layer .ace_selection {
|
|||
|
|
position: absolute;
|
|||
|
|
z-index: 5;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_marker-layer .ace_bracket {
|
|||
|
|
position: absolute;
|
|||
|
|
z-index: 6;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_marker-layer .ace_error_bracket {
|
|||
|
|
position: absolute;
|
|||
|
|
border-bottom: 1px solid #DE5555;
|
|||
|
|
border-radius: 0;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_marker-layer .ace_active-line {
|
|||
|
|
position: absolute;
|
|||
|
|
z-index: 2;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_marker-layer .ace_selected-word {
|
|||
|
|
position: absolute;
|
|||
|
|
z-index: 4;
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_line .ace_fold {
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
|
|||
|
|
display: inline-block;
|
|||
|
|
height: 11px;
|
|||
|
|
margin-top: -2px;
|
|||
|
|
vertical-align: middle;
|
|||
|
|
|
|||
|
|
background-image:
|
|||
|
|
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
|||
|
|
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
|
|||
|
|
background-repeat: no-repeat, repeat-x;
|
|||
|
|
background-position: center center, top left;
|
|||
|
|
color: transparent;
|
|||
|
|
|
|||
|
|
border: 1px solid black;
|
|||
|
|
border-radius: 2px;
|
|||
|
|
|
|||
|
|
cursor: pointer;
|
|||
|
|
pointer-events: auto;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_dark .ace_fold {
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_fold:hover{
|
|||
|
|
background-image:
|
|||
|
|
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
|||
|
|
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_tooltip {
|
|||
|
|
background-color: #f5f5f5;
|
|||
|
|
border: 1px solid gray;
|
|||
|
|
border-radius: 1px;
|
|||
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|||
|
|
color: black;
|
|||
|
|
max-width: 100%;
|
|||
|
|
padding: 3px 4px;
|
|||
|
|
position: fixed;
|
|||
|
|
z-index: 999999;
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
cursor: default;
|
|||
|
|
white-space: pre-wrap;
|
|||
|
|
word-wrap: break-word;
|
|||
|
|
line-height: normal;
|
|||
|
|
font-style: normal;
|
|||
|
|
font-weight: normal;
|
|||
|
|
letter-spacing: normal;
|
|||
|
|
pointer-events: none;
|
|||
|
|
overflow: auto;
|
|||
|
|
max-width: min(60em, 66vw);
|
|||
|
|
overscroll-behavior: contain;
|
|||
|
|
}
|
|||
|
|
.ace_tooltip pre {
|
|||
|
|
white-space: pre-wrap;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_tooltip.ace_dark {
|
|||
|
|
background-color: #636363;
|
|||
|
|
color: #fff;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_tooltip:focus {
|
|||
|
|
outline: 1px solid #5E9ED6;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_icon {
|
|||
|
|
display: inline-block;
|
|||
|
|
width: 18px;
|
|||
|
|
vertical-align: top;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_icon_svg {
|
|||
|
|
display: inline-block;
|
|||
|
|
width: 12px;
|
|||
|
|
vertical-align: top;
|
|||
|
|
-webkit-mask-repeat: no-repeat;
|
|||
|
|
-webkit-mask-size: 12px;
|
|||
|
|
-webkit-mask-position: center;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
|
|||
|
|
padding-right: 13px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_fold-widget {
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
|
|||
|
|
margin: 0 -12px 0 1px;
|
|||
|
|
display: none;
|
|||
|
|
width: 11px;
|
|||
|
|
vertical-align: top;
|
|||
|
|
|
|||
|
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
|
|||
|
|
background-repeat: no-repeat;
|
|||
|
|
background-position: center;
|
|||
|
|
|
|||
|
|
border-radius: 3px;
|
|||
|
|
|
|||
|
|
border: 1px solid transparent;
|
|||
|
|
cursor: pointer;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_folding-enabled .ace_fold-widget {
|
|||
|
|
display: inline-block;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_fold-widget.ace_end {
|
|||
|
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_fold-widget.ace_closed {
|
|||
|
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_fold-widget:hover {
|
|||
|
|
border: 1px solid rgba(0, 0, 0, 0.3);
|
|||
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|||
|
|
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_fold-widget:active {
|
|||
|
|
border: 1px solid rgba(0, 0, 0, 0.4);
|
|||
|
|
background-color: rgba(0, 0, 0, 0.05);
|
|||
|
|
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
|
|||
|
|
}
|
|||
|
|
/**
|
|||
|
|
* Dark version for fold widgets
|
|||
|
|
*/
|
|||
|
|
.ace_dark .ace_fold-widget {
|
|||
|
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
|
|||
|
|
}
|
|||
|
|
.ace_dark .ace_fold-widget.ace_end {
|
|||
|
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
|
|||
|
|
}
|
|||
|
|
.ace_dark .ace_fold-widget.ace_closed {
|
|||
|
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
|
|||
|
|
}
|
|||
|
|
.ace_dark .ace_fold-widget:hover {
|
|||
|
|
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
|||
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|||
|
|
}
|
|||
|
|
.ace_dark .ace_fold-widget:active {
|
|||
|
|
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_inline_button {
|
|||
|
|
border: 1px solid lightgray;
|
|||
|
|
display: inline-block;
|
|||
|
|
margin: -1px 8px;
|
|||
|
|
padding: 0 5px;
|
|||
|
|
pointer-events: auto;
|
|||
|
|
cursor: pointer;
|
|||
|
|
}
|
|||
|
|
.ace_inline_button:hover {
|
|||
|
|
border-color: gray;
|
|||
|
|
background: rgba(200,200,200,0.2);
|
|||
|
|
display: inline-block;
|
|||
|
|
pointer-events: auto;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_fold-widget.ace_invalid {
|
|||
|
|
background-color: #FFB4B4;
|
|||
|
|
border-color: #DE5555;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_fade-fold-widgets .ace_fold-widget {
|
|||
|
|
transition: opacity 0.4s ease 0.05s;
|
|||
|
|
opacity: 0;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_fade-fold-widgets:hover .ace_fold-widget {
|
|||
|
|
transition: opacity 0.05s ease 0.05s;
|
|||
|
|
opacity:1;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_underline {
|
|||
|
|
text-decoration: underline;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_bold {
|
|||
|
|
font-weight: bold;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_nobold .ace_bold {
|
|||
|
|
font-weight: normal;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_italic {
|
|||
|
|
font-style: italic;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
.ace_error-marker {
|
|||
|
|
background-color: rgba(255, 0, 0,0.2);
|
|||
|
|
position: absolute;
|
|||
|
|
z-index: 9;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_highlight-marker {
|
|||
|
|
background-color: rgba(255, 255, 0,0.2);
|
|||
|
|
position: absolute;
|
|||
|
|
z-index: 8;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_mobile-menu {
|
|||
|
|
position: absolute;
|
|||
|
|
line-height: 1.5;
|
|||
|
|
border-radius: 4px;
|
|||
|
|
-ms-user-select: none;
|
|||
|
|
-moz-user-select: none;
|
|||
|
|
-webkit-user-select: none;
|
|||
|
|
user-select: none;
|
|||
|
|
background: white;
|
|||
|
|
box-shadow: 1px 3px 2px grey;
|
|||
|
|
border: 1px solid #dcdcdc;
|
|||
|
|
color: black;
|
|||
|
|
}
|
|||
|
|
.ace_dark > .ace_mobile-menu {
|
|||
|
|
background: #333;
|
|||
|
|
color: #ccc;
|
|||
|
|
box-shadow: 1px 3px 2px grey;
|
|||
|
|
border: 1px solid #444;
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
.ace_mobile-button {
|
|||
|
|
padding: 2px;
|
|||
|
|
cursor: pointer;
|
|||
|
|
overflow: hidden;
|
|||
|
|
}
|
|||
|
|
.ace_mobile-button:hover {
|
|||
|
|
background-color: #eee;
|
|||
|
|
opacity:1;
|
|||
|
|
}
|
|||
|
|
.ace_mobile-button:active {
|
|||
|
|
background-color: #ddd;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_placeholder {
|
|||
|
|
font-family: arial;
|
|||
|
|
transform: scale(0.9);
|
|||
|
|
transform-origin: left;
|
|||
|
|
white-space: pre;
|
|||
|
|
opacity: 0.7;
|
|||
|
|
margin: 0 10px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_ghost_text {
|
|||
|
|
opacity: 0.5;
|
|||
|
|
font-style: italic;
|
|||
|
|
white-space: pre;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace_screenreader-only {
|
|||
|
|
position:absolute;
|
|||
|
|
left:-10000px;
|
|||
|
|
top:auto;
|
|||
|
|
width:1px;
|
|||
|
|
height:1px;
|
|||
|
|
overflow:hidden;
|
|||
|
|
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(t,n,i){var a=t("../lib/dom"),o=t("../lib/oop"),T=t("../lib/event_emitter").EventEmitter,c=function(){function Q(s,l){this.canvas=a.createElement("canvas"),this.renderer=l,this.pixelRatio=1,this.maxHeight=l.layerConfig.maxHeight,this.lineHeight=l.layerConfig.lineHeight,this.canvasHeight=s.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=s.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},s.element.appendChild(this.canvas)}return Q.prototype.$updateDecorators=function(s){var l=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(s){this.maxHeight=s.maxHeight,this.lineHeight=s.lineHeight,this.canvasHeight=s.height;var u=(s.lastRow+1)*this.lineHeight;u<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var d=this.canvas.getContext("2d");function f(w,H){return w.priority<H.priority?-1:w.priority>H.priority?1:0}var h=this.renderer.session.$annotations;if(d.clearRect(0,0,this.canvas.width,this.canvas.height),h){var p={info:1,warning:2,error:3};h.forEach(function(w){w.priority=p[w.type]||null}),h=h.sort(f);for(var g=this.renderer.session.$foldData,m=0;m<h.length;m++){var y=h[m].row,L=this.compensateFoldRows(y,g),b=Math.round((y-L)*this.lineHeight*this.heightRatio),v=Math.round((y-L)*this.lineHeight*this.heightRatio),x=Math.round(((y-L)*this.lineHeight+this.lineHeight)*this.heightRatio),S=x-v;if(S<this.minDecorationHeight){var E=(v+x)/2|0;E<this.halfMinDecorationHeight?E=this.halfMinDecorationHeight:E+this.halfMinDecorationHeight>this.canvasHeight&&(E=this.canvasHeight-this.halfMinDecorationHeight),v=Math.round(E-this.halfMinDecorationHeight),x=Math.round(E+this.halfMinDecorationHeight)}d.fillStyle=l[h[m].type]||null,d.fillRect(0,b,this.canvasWidth,x-v)}}var M=this.renderer.session.selection.getCursor();if(M){var L=this.compensateFoldRows(M.row,g),b=Math.round((M.row-L)*this.lineHeight*this.heightRatio);d.fillStyle="rgba(0, 0, 0, 0.5)",d.fillRect(0,b,this.canvasWidth,2)}},Q.prototype.compensateFoldRows=function(s,l){var u=0;if(l&&l.length>0)for(var d=0;d<l.length;d++)s>l[d].start.row&&s<l[d].end.row?u+=s-l[d].start.row:s>=l[d].end.row&&(u+=l[d].end.row-l[d].start.row);return u},Q}();o.implement(c.prototype,T),n.Decorator=c}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent"],function(t,n,i){var a=t("./lib/oop"),o=t("./lib/dom"),T=t("./lib/lang"),c=t("./config"),Q=t("./layer/gutter").Gutter,s=t("./layer/marker").Marker,l=t("./layer/text").Text,u=t("./layer/cursor").Cursor,d=t("./scrollbar").HScrollBar,f=t("./scrollbar").VScrollBar,h=t("./scrollbar_custom").HScrollBar,p=t("./scrollbar_custom").VScrollBar,g=t("./renderloop").RenderLoop,m=t("./layer/font_metrics").FontMetrics,y=t("./lib/event_emitter").EventEmitter,L=t("./css/editor-css"),b=t("./layer/decorators").Decorator,v=t("./lib/useragent");o.importCssString(L,"ace_editor.css",!1);var x=function(){function S(E,M){var w=this;this.container=E||o.createElement("div"),o.addCssClass(this.container,"ace_editor"),o.HI_DPI&&o.addCssClass(this.container,"ace_hidpi"),this.setTheme(M),c.get("useStrictCSP")==null&&c.set("useStrictCSP",!1),this.$gutter=o.createEleme
|
|||
|
|
`);if(this.addToken(C[0],"ghost_text",H.row,H.column),this.$ghostText={text:E,position:{row:H.row,column:H.column}},C.length>1){this.$ghostTextWidget={text:C.slice(1).join(`
|
|||
|
|
`),row:H.row,column:H.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var A=this.$cursorLayer.getPixelPosition(H,!0),O=this.container,D=O.getBoundingClientRect().height,I=C.length*this.lineHeight,N=I<D-A.top;if(N)return;I<D?this.scrollBy(0,(C.length-1)*this.lineHeight):this.scrollToRow(H.row)}},S.prototype.removeGhostText=function(){if(this.$ghostText){var E=this.$ghostText.position;this.removeExtraToken(E.row,E.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},S.prototype.addToken=function(E,M,w,H){var C=this.session;C.bgTokenizer.lines[w]=null;var A={type:M,value:E},O=C.getTokens(w);if(H==null||!O.length)O.push(A);else for(var D=0,I=0;I<O.length;I++){var N=O[I];if(D+=N.value.length,H<=D){var V=N.value.length-(D-H),k=N.value.slice(0,V),P=N.value.slice(V);O.splice(I,1,{type:N.type,value:k},A,{type:N.type,value:P});break}}this.updateLines(w,w)},S.prototype.removeExtraToken=function(E,M){this.session.bgTokenizer.lines[E]=null,this.updateLines(E,E)},S.prototype.setTheme=function(E,M){var w=this;if(this.$themeId=E,w._dispatchEvent("themeChange",{theme:E}),!E||typeof E=="string"){var H=E||this.$options.theme.initialValue;c.loadModule(["theme",H],C)}else C(E);function C(A){if(w.$themeId!=E)return M&&M();if(!A||!A.cssClass)throw new Error("couldn't load module "+E+" or it didn't call define");A.$id&&(w.$themeId=A.$id),o.importCssString(A.cssText,A.cssClass,w.container),w.theme&&o.removeCssClass(w.container,w.theme.cssClass);var O="padding"in A?A.padding:"padding"in(w.theme||{})?4:w.$padding;w.$padding&&O!=w.$padding&&w.setPadding(O),w.$theme=A.cssClass,w.theme=A,o.addCssClass(w.container,A.cssClass),o.setCssClass(w.container,"ace_dark",A.isDark),w.$size&&(w.$size.width=0,w.$updateSizeAsync()),w._dispatchEvent("themeLoaded",{theme:A}),M&&M()}},S.prototype.getTheme=function(){return this.$themeId},S.prototype.setStyle=function(E,M){o.setCssClass(this.container,E,M!==!1)},S.prototype.unsetStyle=function(E){o.removeCssClass(this.container,E)},S.prototype.setCursorStyle=function(E){o.setStyle(this.scroller.style,"cursor",E)},S.prototype.setMouseCursor=function(E){o.setStyle(this.scroller.style,"cursor",E)},S.prototype.attachToShadowRoot=function(){o.importCssString(L,"ace_editor.css",this.container)},S.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},S.prototype.$updateCustomScrollbar=function(E){var M=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,E===!0?(this.scrollBarV=new p(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(w){M.$scrollAnimation||M.session.setScrollTop(w.data-M.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(w){M.$scrollAnimation||M.session.setScrollLeft(w.data-M.scrollMargin.left)}),this.$scrollDecorator=new b(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new f(this.container,this),this.scrollBarH=new d(this.container,this),this.scrollBarV.addEventListener("scroll",function(w){M.$scrollAnimation||M.session.setScrollTop(w.data-M.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(w){M.$scrollAnimation||M.session.setScrollLeft(w.data-M.scrollMargin.left)}))},S.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var E=this;this.$resizeTimer=T.delayedCall(function(){E.destroyed||E.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(M){var w=M[0].contentRect.width,H=M[0].contentRect.height;Math.abs(E.$size.width-w)>1||Math.abs(E.$size.height-H)>1?E.$resizeTimer.delay():E.$resizeTimer.cancel()}),this.$resizeObserv
|
|||
|
|
`)+`
|
|||
|
|
`),H||(E.start.column=0,E.end.column=O[O.length-1].length),this.selection.setRange(E)}else{S.forEach(function(V){b.substractPoint(V.cursor)});var D=0,I=1/0,N=v.map(function(V){var k=V.cursor,P=L.getLine(k.row),G=P.substr(k.column).search(/\S/g);return G==-1&&(G=0),k.column>D&&(D=k.column),G<I&&(I=G),G});v.forEach(function(V,k){var P=V.cursor,G=D-P.column,R=N[k]-I;G>R?L.insert(P,s.stringRepeat(" ",G-R)):L.remove(new o(P.row,P.column,P.row,P.column-G+R)),V.start.column=V.end.column=D,V.start.row=V.end.row=P.row,V.cursor=V.end}),b.fromOrientedRange(v[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(L,b){var v=!0,x=!0,S,E,M;return L.map(function(O){var D=O.match(/(\s*)(.*?)(\s*)([=:].*)/);return D?S==null?(S=D[1].length,E=D[2].length,M=D[3].length,D):(S+E+M!=D[1].length+D[2].length+D[3].length&&(x=!1),S!=D[1].length&&(v=!1),S>D[1].length&&(S=D[1].length),E<D[2].length&&(E=D[2].length),M>D[3].length&&(M=D[3].length),D):[O]}).map(b?H:v?x?C:H:A);function w(O){return s.stringRepeat(" ",O)}function H(O){return O[2]?w(S)+O[2]+w(E-O[2].length+M)+O[4].replace(/^([=:])\s+/,"$1 "):O[0]}function C(O){return O[2]?w(S+E-O[2].length)+O[2]+w(M)+O[4].replace(/^([=:])\s+/,"$1 "):O[0]}function A(O){return O[2]?w(S)+O[2]+w(M)+O[4].replace(/^([=:])\s+/,"$1 "):O[0]}}}).call(p.prototype);function g(L,b){return L.row==b.row&&L.column==b.column}n.onSessionChange=function(L){var b=L.session;b&&!b.multiSelect&&(b.$selectionMarkers=[],b.selection.$initRangeList(),b.multiSelect=b.selection),this.multiSelect=b&&b.multiSelect;var v=L.oldSession;v&&(v.multiSelect.off("addRange",this.$onAddRange),v.multiSelect.off("removeRange",this.$onRemoveRange),v.multiSelect.off("multiSelect",this.$onMultiSelect),v.multiSelect.off("singleSelect",this.$onSingleSelect),v.multiSelect.lead.off("change",this.$checkMultiselectChange),v.multiSelect.anchor.off("change",this.$checkMultiselectChange)),b&&(b.multiSelect.on("addRange",this.$onAddRange),b.multiSelect.on("removeRange",this.$onRemoveRange),b.multiSelect.on("multiSelect",this.$onMultiSelect),b.multiSelect.on("singleSelect",this.$onSingleSelect),b.multiSelect.lead.on("change",this.$checkMultiselectChange),b.multiSelect.anchor.on("change",this.$checkMultiselectChange)),b&&this.inMultiSelectMode!=b.selection.inMultiSelectMode&&(b.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function m(L){L.$multiselectOnSessionChange||(L.$onAddRange=L.$onAddRange.bind(L),L.$onRemoveRange=L.$onRemoveRange.bind(L),L.$onMultiSelect=L.$onMultiSelect.bind(L),L.$onSingleSelect=L.$onSingleSelect.bind(L),L.$multiselectOnSessionChange=n.onSessionChange.bind(L),L.$checkMultiselectChange=L.$checkMultiselectChange.bind(L),L.$multiselectOnSessionChange(L),L.on("changeSession",L.$multiselectOnSessionChange),L.on("mousedown",c),L.commands.addCommands(l.defaultCommands),y(L))}function y(L){if(!L.textInput)return;var b=L.textInput.getElement(),v=!1;Q.addListener(b,"keydown",function(S){var E=S.keyCode==18&&!(S.ctrlKey||S.shiftKey||S.metaKey);L.$blockSelectEnabled&&E?v||(L.renderer.setMouseCursor("crosshair"),v=!0):v&&x()},L),Q.addListener(b,"keyup",x,L),Q.addListener(b,"blur",x,L);function x(S){v&&(L.renderer.setMouseCursor(""),v=!1)}}n.MultiSelect=m,t("./config").defineOptions(p.prototype,"editor",{enableMultiselect:{set:function(L){m(this),L?this.on("mousedown",c):this.off("mousedown",c)},value:!0},enableBlockSelect:{set:function(L){this.$blockSelectEnabled=L},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(t,n,i){var a=t("../../range").Range,o=n.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(T,c,Q){var s=T.getLine(Q);return this.foldingStartMarker.test(s)?"start":c=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(s)?"end":""},this.getFoldWidgetRange=function(T,c,Q){return null},this.indentationBlock=function(T,c,Q){var s=/\S/,l=T.getLine(c),u=l.search(s);if(u!=-1){for(var d=Q||l.length,f=T.getLength(),h=c,p=c;++c<f;){var g=T.ge
|
|||
|
|
.error_widget_wrapper {
|
|||
|
|
background: inherit;
|
|||
|
|
color: inherit;
|
|||
|
|
border:none
|
|||
|
|
}
|
|||
|
|
.error_widget {
|
|||
|
|
border-top: solid 2px;
|
|||
|
|
border-bottom: solid 2px;
|
|||
|
|
margin: 5px 0;
|
|||
|
|
padding: 10px 40px;
|
|||
|
|
white-space: pre-wrap;
|
|||
|
|
}
|
|||
|
|
.error_widget.ace_error, .error_widget_arrow.ace_error{
|
|||
|
|
border-color: #ff5a5a
|
|||
|
|
}
|
|||
|
|
.error_widget.ace_warning, .error_widget_arrow.ace_warning{
|
|||
|
|
border-color: #F1D817
|
|||
|
|
}
|
|||
|
|
.error_widget.ace_info, .error_widget_arrow.ace_info{
|
|||
|
|
border-color: #5a5a5a
|
|||
|
|
}
|
|||
|
|
.error_widget.ace_ok, .error_widget_arrow.ace_ok{
|
|||
|
|
border-color: #5aaa5a
|
|||
|
|
}
|
|||
|
|
.error_widget_arrow {
|
|||
|
|
position: absolute;
|
|||
|
|
border: solid 5px;
|
|||
|
|
border-top-color: transparent!important;
|
|||
|
|
border-right-color: transparent!important;
|
|||
|
|
border-left-color: transparent!important;
|
|||
|
|
top: -5px;
|
|||
|
|
}
|
|||
|
|
`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(t,n,i){t("./loader_build")(n);var a=t("./lib/dom"),o=t("./range").Range,T=t("./editor").Editor,c=t("./edit_session").EditSession,Q=t("./undomanager").UndoManager,s=t("./virtual_renderer").VirtualRenderer;t("./worker/worker_client"),t("./keyboard/hash_handler"),t("./placeholder"),t("./multi_select"),t("./mode/folding/fold_mode"),t("./theme/textmate"),t("./ext/error_marker"),n.config=t("./config"),n.edit=function(l,u){if(typeof l=="string"){var d=l;if(l=document.getElementById(d),!l)throw new Error("ace.edit can't find div #"+d)}if(l&&l.env&&l.env.editor instanceof T)return l.env.editor;var f="";if(l&&/input|textarea/i.test(l.tagName)){var h=l;f=h.value,l=a.createElement("pre"),h.parentNode.replaceChild(l,h)}else l&&(f=l.textContent,l.innerHTML="");var p=n.createEditSession(f),g=new T(new s(l),p,u),m={document:p,editor:g,onResize:g.resize.bind(g,null)};return h&&(m.textarea=h),g.on("destroy",function(){m.editor.container.env=null}),g.container.env=g.env=m,g},n.createEditSession=function(l,u){var d=new c(l,u);return d.setUndoManager(new Q),d},n.Range=o,n.Editor=T,n.EditSession=c,n.UndoManager=Q,n.VirtualRenderer=s,n.version=n.config.version}),function(){ace.require(["ace/ace"],function(t){t&&(t.config.init(!0),t.define=ace.define);var n=function(){return this}();!n&&typeof window<"u"&&(n=window),!n&&typeof self<"u"&&(n=self),n.ace||(n.ace=t);for(var i in t)t.hasOwnProperty(i)&&(n.ace[i]=t[i]);n.ace.default=n.ace,e&&(e.exports=n.ace)})}()})(vv);var f4=vv.exports,sr={},Dl={},h4={exports:{}};h4.exports;(function(e,r){var t=200,n="__lodash_hash_undefined__",i=1,a=2,o=9007199254740991,T="[object Arguments]",c="[object Array]",Q="[object AsyncFunction]",s="[object Boolean]",l="[object Date]",u="[object Error]",d="[object Function]",f="[object GeneratorFunction]",h="[object Map]",p="[object Number]",g="[object Null]",m="[object Object]",y="[object Promise]",L="[object Proxy]",b="[object RegExp]",v="[object Set]",x="[object String]",S="[object Symbol]",E="[object Undefined]",M="[object WeakMap]",w="[object ArrayBuffer]",H="[object DataView]",C="[object Float32Array]",A="[object Float64Array]",O="[object Int8Array]",D="[object Int16Array]",I="[object Int32Array]",N="[object Uint8Array]",V="[object Uint8ClampedArray]",k="[object Uint16Array]",P="[object Uint32Array]",G=/[\\^$.*+?()[\]{}|]/g,R=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,j={};j[C]=j[A]=j[O]=j[D]=j[I]=j[N]=j[V]=j[k]=j[P]=!0,j[T]=j[c]=j[w]=j[s]=j[H]=j[l]=j[u]=j[d]=j[h]=j[p]=j[m]=j[b]=j[v]=j[x]=j[M]=!1;var z=typeof _=="object"&&_&&_.Object===Object&&_,U=typeof self=="object"&&self&&self.Object===Object&&self,W=z||U||Function("return this")(),X=r&&!r.nodeType&&r,Y=X&&!0&&e&&!e.nodeType&&e,J=Y&&Y.exports===X,ae=J&&z.process,se=function(){try{return ae&&ae.binding&&ae.binding("util")}catch{}}(),le=se&&se.isTypedArray;function ue($,Z){for(var te=-1,Qe=$==null?0:$.length,Ke=0,_e=[];++te<Qe;){var ot=$[te];Z(ot,te,$)&&(_e[Ke++]=ot)}return _e}function Le($,Z){for(var te=-1,Qe=Z.length,Ke=$.length;++te<Qe;)$[Ke+te]=Z[te];return $}function Ue($,Z){for(var te=-1,Qe=$==null?0:$.length;++te<Qe;)if(Z($[te],te,$))return!0;return!1}function Oe($,Z){for(var te=-1,Qe=Array($);++te<$;)Qe[te]=Z(te);return Qe}function ht($){return function(Z){return $(Z)}}function Zt($,Z){return $.has(Z)}function Dt($,Z){return $==null?void 0:$[Z]}function L1($){var Z=-1,te=Array($.size);return $.forEach(function(Qe,Ke){te[++Z]=[Ke,Qe]}),te}function P1($,Z){return function(te){return $(Z(te))}}function n2($){var Z=-1,te=Array($.size);return $.forEach(function(Qe){te[++Z]=Qe}),te}var kr=Array.prototype,ee=Function.prototype,q=Object.prototype,K=W["__core-js_shared__"],ie=ee.toString,Te=q.hasOwnProperty,ge=function(){var $=/[^
|
|||
|
|
`,h),p==-1&&(p=d.length-1);var m=d.substring(h,p+1);(c.hasOwnProperty?c.hasOwnProperty(m):c[m]!==void 0)?f+=String.fromCharCode(c[m]):(g==s&&(m=d.substring(h),p=d.length),f+=String.fromCharCode(g),c[m]=g,T[g++]=m),h=p+1}return f}var s=4e4,l=Q(a);s=65535;var u=Q(o);return{chars1:l,chars2:u,lineArray:T}},r.prototype.diff_charsToLines_=function(a,o){for(var T=0;T<a.length;T++){for(var c=a[T][1],Q=[],s=0;s<c.length;s++)Q[s]=o[c.charCodeAt(s)];a[T][1]=Q.join("")}},r.prototype.diff_commonPrefix=function(a,o){if(!a||!o||a.charAt(0)!=o.charAt(0))return 0;for(var T=0,c=Math.min(a.length,o.length),Q=c,s=0;T<Q;)a.substring(s,Q)==o.substring(s,Q)?(T=Q,s=T):c=Q,Q=Math.floor((c-T)/2+T);return Q},r.prototype.diff_commonSuffix=function(a,o){if(!a||!o||a.charAt(a.length-1)!=o.charAt(o.length-1))return 0;for(var T=0,c=Math.min(a.length,o.length),Q=c,s=0;T<Q;)a.substring(a.length-Q,a.length-s)==o.substring(o.length-Q,o.length-s)?(T=Q,s=T):c=Q,Q=Math.floor((c-T)/2+T);return Q},r.prototype.diff_commonOverlap_=function(a,o){var T=a.length,c=o.length;if(T==0||c==0)return 0;T>c?a=a.substring(T-c):T<c&&(o=o.substring(0,T));var Q=Math.min(T,c);if(a==o)return Q;for(var s=0,l=1;;){var u=a.substring(Q-l),d=o.indexOf(u);if(d==-1)return s;l+=d,(d==0||a.substring(Q-l)==o.substring(0,l))&&(s=l,l++)}},r.prototype.diff_halfMatch_=function(a,o){if(this.Diff_Timeout<=0)return null;var T=a.length>o.length?a:o,c=a.length>o.length?o:a;if(T.length<4||c.length*2<T.length)return null;var Q=this;function s(y,L,b){for(var v=y.substring(b,b+Math.floor(y.length/4)),x=-1,S="",E,M,w,H;(x=L.indexOf(v,x+1))!=-1;){var C=Q.diff_commonPrefix(y.substring(b),L.substring(x)),A=Q.diff_commonSuffix(y.substring(0,b),L.substring(0,x));S.length<A+C&&(S=L.substring(x-A,x)+L.substring(x,x+C),E=y.substring(0,b-A),M=y.substring(b+C),w=L.substring(0,x-A),H=L.substring(x+C))}return S.length*2>=y.length?[E,M,w,H,S]:null}var l=s(T,c,Math.ceil(T.length/4)),u=s(T,c,Math.ceil(T.length/2)),d;if(!l&&!u)return null;u?l?d=l[4].length>u[4].length?l:u:d=u:d=l;var f,h,p,g;a.length>o.length?(f=d[0],h=d[1],p=d[2],g=d[3]):(p=d[0],g=d[1],f=d[2],h=d[3]);var m=d[4];return[f,h,p,g,m]},r.prototype.diff_cleanupSemantic=function(a){for(var o=!1,T=[],c=0,Q=null,s=0,l=0,u=0,d=0,f=0;s<a.length;)a[s][0]==i?(T[c++]=s,l=d,u=f,d=0,f=0,Q=a[s][1]):(a[s][0]==n?d+=a[s][1].length:f+=a[s][1].length,Q&&Q.length<=Math.max(l,u)&&Q.length<=Math.max(d,f)&&(a.splice(T[c-1],0,new r.Diff(t,Q)),a[T[c-1]+1][0]=n,c--,c--,s=c>0?T[c-1]:-1,l=0,u=0,d=0,f=0,Q=null,o=!0)),s++;for(o&&this.diff_cleanupMerge(a),this.diff_cleanupSemanticLossless(a),s=1;s<a.length;){if(a[s-1][0]==t&&a[s][0]==n){var h=a[s-1][1],p=a[s][1],g=this.diff_commonOverlap_(h,p),m=this.diff_commonOverlap_(p,h);g>=m?(g>=h.length/2||g>=p.length/2)&&(a.splice(s,0,new r.Diff(i,p.substring(0,g))),a[s-1][1]=h.substring(0,h.length-g),a[s+1][1]=p.substring(g),s++):(m>=h.length/2||m>=p.length/2)&&(a.splice(s,0,new r.Diff(i,h.substring(0,m))),a[s-1][0]=n,a[s-1][1]=p.substring(0,p.length-m),a[s+1][0]=t,a[s+1][1]=h.substring(m),s++),s++}s++}},r.prototype.diff_cleanupSemanticLossless=function(a){function o(m,y){if(!m||!y)return 6;var L=m.charAt(m.length-1),b=y.charAt(0),v=L.match(r.nonAlphaNumericRegex_),x=b.match(r.nonAlphaNumericRegex_),S=v&&L.match(r.whitespaceRegex_),E=x&&b.match(r.whitespaceRegex_),M=S&&L.match(r.linebreakRegex_),w=E&&b.match(r.linebreakRegex_),H=M&&m.match(r.blanklineEndRegex_),C=w&&y.match(r.blanklineStartRegex_);return H||C?5:M||w?4:v&&!S&&E?3:S||E?2:v||x?1:0}for(var T=1;T<a.length-1;){if(a[T-1][0]==i&&a[T+1][0]==i){var c=a[T-1][1],Q=a[T][1],s=a[T+1][1],l=this.diff_commonSuffix(c,Q);if(l){var u=Q.substring(Q.length-l);c=c.substring(0,c.length-l),Q=u+Q.substring(0,Q.length-l),s=u+s}for(var d=c,f=Q,h=s,p=o(c,Q)+o(Q,s);Q.charAt(0)===s.charAt(0);){c+=Q.charAt(0),Q=Q.substring(1)+s.charAt(0),s=s.substring(1);var g=o(c,Q)+o(Q,s);g>=p&&(p=g,d=c,f=Q,h=s)}a[T-1][1]!=d&&(d?a[T-1][1]=d:(a.splice(T-1,1),T--),a[T][1]=f,h?a[T+1][1]=h:(a.splice(T+1,1),T--))}T++}},r.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,r.whitespaceRegex_=/\s/,r.linebreakRegex_=/[\r\n]/,r.blanklineEndRegex_=
|
|||
|
|
`),c=0,Q=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;c<T.length;){var s=T[c].match(Q);if(!s)throw new Error("Invalid patch string: "+T[c]);var l=new r.patch_obj;for(o.push(l),l.start1=parseInt(s[1],10),s[2]===""?(l.start1--,l.length1=1):s[2]=="0"?l.length1=0:(l.start1--,l.length1=parseInt(s[2],10)),l.start2=parseInt(s[3],10),s[4]===""?(l.start2--,l.length2=1):s[4]=="0"?l.length2=0:(l.start2--,l.length2=parseInt(s[4],10)),c++;c<T.length;){var u=T[c].charAt(0);try{var d=decodeURI(T[c].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+d)}if(u=="-")l.diffs.push(new r.Diff(t,d));else if(u=="+")l.diffs.push(new r.Diff(n,d));else if(u==" ")l.diffs.push(new r.Diff(i,d));else{if(u=="@")break;if(u!=="")throw new Error('Invalid patch mode "'+u+'" in: '+d)}c++}}return o},r.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},r.patch_obj.prototype.toString=function(){var a,o;this.length1===0?a=this.start1+",0":this.length1==1?a=this.start1+1:a=this.start1+1+","+this.length1,this.length2===0?o=this.start2+",0":this.length2==1?o=this.start2+1:o=this.start2+1+","+this.length2;for(var T=["@@ -"+a+" +"+o+` @@
|
|||
|
|
`],c,Q=0;Q<this.diffs.length;Q++){switch(this.diffs[Q][0]){case n:c="+";break;case t:c="-";break;case i:c=" ";break}T[Q+1]=c+encodeURI(this.diffs[Q][1])+`
|
|||
|
|
`}return T.join("").replace(/%20/g," ")},e.exports=r,e.exports.diff_match_patch=r,e.exports.DIFF_DELETE=t,e.exports.DIFF_INSERT=n,e.exports.DIFF_EQUAL=i})(Cv);var dS=Cv.exports,fS=_&&_.__extends||function(){var e=function(r,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(kl,"__esModule",{value:!0});var Be=$4,$u=Pn,hS=J4,pS=dS,gS=function(e){fS(r,e);function r(t){var n=e.call(this,t)||this;return n.state={value:n.props.value},n.onChange=n.onChange.bind(n),n.diff=n.diff.bind(n),n}return r.prototype.componentDidUpdate=function(){var t=this.props.value;t!==this.state.value&&this.setState({value:t})},r.prototype.onChange=function(t){this.setState({value:t}),this.props.onChange&&this.props.onChange(t)},r.prototype.diff=function(){var t=new pS,n=this.state.value[0],i=this.state.value[1];if(n.length===0&&i.length===0)return[];var a=t.diff_main(n,i);t.diff_cleanupSemantic(a);var o=this.generateDiffedLines(a),T=this.setCodeMarkers(o);return T},r.prototype.generateDiffedLines=function(t){var n={DIFF_EQUAL:0,DIFF_DELETE:-1,DIFF_INSERT:1},i={left:[],right:[]},a={left:1,right:1};return t.forEach(function(o){var T=o[0],c=o[1],Q=c.split(`
|
|||
|
|
`).length-1;if(c.length!==0){var s=c[0],l=c[c.length-1],u=0;switch(T){case n.DIFF_EQUAL:a.left+=Q,a.right+=Q;break;case n.DIFF_DELETE:s===`
|
|||
|
|
`&&(a.left++,Q--),u=Q,u===0&&i.right.push({startLine:a.right,endLine:a.right}),l===`
|
|||
|
|
`&&(u-=1),i.left.push({startLine:a.left,endLine:a.left+u}),a.left+=Q;break;case n.DIFF_INSERT:s===`
|
|||
|
|
`&&(a.right++,Q--),u=Q,u===0&&i.left.push({startLine:a.left,endLine:a.left}),l===`
|
|||
|
|
`&&(u-=1),i.right.push({startLine:a.right,endLine:a.right+u}),a.right+=Q;break;default:throw new Error("Diff type was not defined.")}}}),i},r.prototype.setCodeMarkers=function(t){t===void 0&&(t={left:[],right:[]});for(var n=[],i={left:[],right:[]},a=0;a<t.left.length;a++){var o={startRow:t.left[a].startLine-1,endRow:t.left[a].endLine,type:"text",className:"codeMarker"};i.left.push(o)}for(var a=0;a<t.right.length;a++){var o={startRow:t.right[a].startLine-1,endRow:t.right[a].endLine,type:"text",className:"codeMarker"};i.right.push(o)}return n[0]=i.left,n[1]=i.right,n},r.prototype.render=function(){var t=this.diff();return $u.createElement(hS.default,{name:this.props.name,className:this.props.className,focus:this.props.focus,orientation:this.props.orientation,splits:this.props.splits,mode:this.props.mode,theme:this.props.theme,height:this.props.height,width:this.props.width,fontSize:this.props.fontSize,showGutter:this.props.showGutter,onChange:this.onChange,onPaste:this.props.onPaste,onLoad:this.props.onLoad,onScroll:this.props.onScroll,minLines:this.props.minLines,maxLines:this.props.maxLines,readOnly:this.props.readOnly,highlightActiveLine:this.props.highlightActiveLine,showPrintMargin:this.props.showPrintMargin,tabSize:this.props.tabSize,cursorStart:this.props.cursorStart,editorProps:this.props.editorProps,style:this.props.style,scrollMargin:this.props.scrollMargin,setOptions:this.props.setOptions,wrapEnabled:this.props.wrapEnabled,enableBasicAutocompletion:this.props.enableBasicAutocompletion,enableLiveAutocompletion:this.props.enableLiveAutocompletion,value:this.state.value,markers:t})},r.propTypes={cursorStart:Be.number,editorProps:Be.object,enableBasicAutocompletion:Be.bool,enableLiveAutocompletion:Be.bool,focus:Be.bool,fontSize:Be.number,height:Be.string,highlightActiveLine:Be.bool,maxLines:Be.number,minLines:Be.number,mode:Be.string,name:Be.string,className:Be.string,onLoad:Be.func,onPaste:Be.func,onScroll:Be.func,onChange:Be.func,orientation:Be.string,readOnly:Be.bool,scrollMargin:Be.array,setOptions:Be.object,showGutter:Be.bool,showPrintMargin:Be.bool,splits:Be.number,style:Be.object,tabSize:Be.number,theme:Be.string,value:Be.array,width:Be.string,wrapEnabled:Be.bool},r.defaultProps={cursorStart:1,editorProps:{},enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,focus:!1,fontSize:12,height:"500px",highlightActiveLine:!0,maxLines:null,minLines:null,mode:"",name:"ace-editor",onLoad:null,onScroll:null,onPaste:null,onChange:null,orientation:"beside",readOnly:!1,scrollMargin:[0,0,0,0],setOptions:{},showGutter:!0,showPrintMargin:!0,splits:2,style:{},tabSize:4,theme:"github",value:["",""],width:"500px",wrapEnabled:!0},r}($u.Component);kl.default=gS;Object.defineProperty(sr,"__esModule",{value:!0});sr.diff=sr.split=void 0;var mS=Dl,vS=kl;sr.diff=vS.default;var yS=J4;sr.split=yS.default;var ZX=sr.default=mS.default;function Mv(e,r,t){return r=mv(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const ju=["http","https","mailto","tel"];function LS(e){const r=(e||"").trim(),t=r.charAt(0);if(t==="#"||t==="/")return r;const n=r.indexOf(":");if(n===-1)return r;let i=-1;for(;++i<ju.length;){const a=ju[i];if(n===a.length&&r.slice(0,a.length).toLowerCase()===a)return r}return i=r.indexOf("?"),i!==-1&&n>i||(i=r.indexOf("#"),i!==-1&&n>i)?r:"javascript:void(0)"}/*!
|
|||
|
|
* Determine if an object is a Buffer
|
|||
|
|
*
|
|||
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|||
|
|
* @license MIT
|
|||
|
|
*/var bS=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)};const Ov=H2(bS);function Sn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Uu(e.position):"start"in e||"end"in e?Uu(e):"line"in e||"column"in e?V8(e):""}function V8(e){return Gu(e&&e.line)+":"+Gu(e&&e.column)}function Uu(e){return V8(e&&e.start)+"-"+V8(e&&e.end)}function Gu(e){return e&&typeof e=="number"?e:1}class Wt extends Error{constructor(r,t,n){const i=[null,null];let a={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof t=="string"&&(n=t,t=void 0),typeof n=="string"){const o=n.indexOf(":");o===-1?i[1]=n:(i[0]=n.slice(0,o),i[1]=n.slice(o+1))}t&&("type"in t||"position"in t?t.position&&(a=t.position):"start"in t||"end"in t?a=t:("line"in t||"column"in t)&&(a.start=t)),this.name=Sn(t)||"1:1",this.message=typeof r=="object"?r.message:r,this.stack="",typeof r=="object"&&r.stack&&(this.stack=r.stack),this.reason=this.message,this.fatal,this.line=a.start.line,this.column=a.start.column,this.position=a,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}Wt.prototype.file="";Wt.prototype.name="";Wt.prototype.reason="";Wt.prototype.message="";Wt.prototype.stack="";Wt.prototype.fatal=null;Wt.prototype.column=null;Wt.prototype.line=null;Wt.prototype.source=null;Wt.prototype.ruleId=null;Wt.prototype.position=null;const c1={basename:xS,dirname:ES,extname:SS,join:_S,sep:"/"};function xS(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');Bn(e);let t=0,n=-1,i=e.length,a;if(r===void 0||r.length===0||r.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(a){t=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(t,n)}if(r===e)return"";let o=-1,T=r.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(a){t=i+1;break}}else o<0&&(a=!0,o=i+1),T>-1&&(e.charCodeAt(i)===r.charCodeAt(T--)?T<0&&(n=i):(T=-1,n=o));return t===n?n=o:n<0&&(n=e.length),e.slice(t,n)}function ES(e){if(Bn(e),e.length===0)return".";let r=-1,t=e.length,n;for(;--t;)if(e.charCodeAt(t)===47){if(n){r=t;break}}else n||(n=!0);return r<0?e.charCodeAt(0)===47?"/":".":r===1&&e.charCodeAt(0)===47?"//":e.slice(0,r)}function SS(e){Bn(e);let r=e.length,t=-1,n=0,i=-1,a=0,o;for(;r--;){const T=e.charCodeAt(r);if(T===47){if(o){n=r+1;break}continue}t<0&&(o=!0,t=r+1),T===46?i<0?i=r:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||t<0||a===0||a===1&&i===t-1&&i===n+1?"":e.slice(i,t)}function _S(...e){let r=-1,t;for(;++r<e.length;)Bn(e[r]),e[r]&&(t=t===void 0?e[r]:t+"/"+e[r]);return t===void 0?".":AS(t)}function AS(e){Bn(e);const r=e.charCodeAt(0)===47;let t=wS(e,!r);return t.length===0&&!r&&(t="."),t.length>0&&e.charCodeAt(e.length-1)===47&&(t+="/"),r?"/"+t:t}function wS(e,r){let t="",n=0,i=-1,a=0,o=-1,T,c;for(;++o<=e.length;){if(o<e.length)T=e.charCodeAt(o);else{if(T===47)break;T=47}if(T===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(t.length<2||n!==2||t.charCodeAt(t.length-1)!==46||t.charCodeAt(t.length-2)!==46){if(t.length>2){if(c=t.lastIndexOf("/"),c!==t.length-1){c<0?(t="",n=0):(t=t.slice(0,c),n=t.length-1-t.lastIndexOf("/")),i=o,a=0;continue}}else if(t.length>0){t="",n=0,i=o,a=0;continue}}r&&(t=t.length>0?t+"/..":"..",n=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),n=o-i-1;i=o,a=0}else T===46&&a>-1?a++:a=-1}return t}function Bn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const HS={cwd:CS};function CS(){return"/"}function P8(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function MS(e){if(typeof e=="string")e=new URL(e);else if(!P8(e)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(e.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return OS(e)}function OS(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const r=e.pa
|
|||
|
|
`;break}case-3:{o=`\r
|
|||
|
|
`;break}case-2:{o=r?" ":" ";break}case-1:{if(!r&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,n.push(o)}return n.join("")}const kA={42:wt,43:wt,45:wt,48:wt,49:wt,50:wt,51:wt,52:wt,53:wt,54:wt,55:wt,56:wt,57:wt,62:Pv},RA={91:I_},IA={[-2]:D5,[-1]:D5,32:D5},NA={35:$_,42:T4,45:[gc,T4],60:W_,61:gc,95:T4,96:Qc,126:Qc},VA={38:Fv,92:Bv},PA={[-5]:k5,[-4]:k5,[-3]:k5,33:cA,38:Fv,42:F8,60:[l_,J_],91:QA,92:[B_,Bv],93:$l,95:F8,96:L_},BA={null:[F8,AA]},FA={null:[42,95]},$A={null:[]},jA=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:FA,contentInitial:RA,disable:$A,document:kA,flow:NA,flowInitial:IA,insideSpan:BA,string:VA,text:PA},Symbol.toStringTag,{value:"Module"}));function UA(e){const t=US([jA,...(e||{}).extensions||[]]),n={defined:[],lazy:{},constructs:t,content:i(zS),document:i(ZS),flow:i(SA),string:i(wA),text:i(HA)};return n;function i(a){return o;function o(T){return MA(n,a,T)}}}const mc=/[\0\t\n\r]/g;function GA(){let e=1,r="",t=!0,n;return i;function i(a,o,T){const c=[];let Q,s,l,u,d;for(a=r+a.toString(o),l=0,r="",t&&(a.charCodeAt(0)===65279&&l++,t=void 0);l<a.length;){if(mc.lastIndex=l,Q=mc.exec(a),u=Q&&Q.index!==void 0?Q.index:a.length,d=a.charCodeAt(u),!Q){r=a.slice(l);break}if(d===10&&l===u&&n)c.push(-3),n=void 0;else switch(n&&(c.push(-5),n=void 0),l<u&&(c.push(a.slice(l,u)),e+=u-l),d){case 0:{c.push(65533),e++;break}case 9:{for(s=Math.ceil(e/4)*4,c.push(-2);e++<s;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:n=!0,e=1}l=u+1}return T&&(n&&c.push(-5),r&&c.push(r),c.push(null)),c}}function WA(e){for(;!$v(e););return e}function qv(e,r){const t=Number.parseInt(e,r);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"<22>":String.fromCharCode(t)}const zA=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function qA(e){return e.replace(zA,ZA)}function ZA(e,r,t){if(r)return r;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),a=i===120||i===88;return qv(t.slice(a?2:1),a?16:10)}return Fl(t)||e}const Zv={}.hasOwnProperty,XA=function(e,r,t){return typeof r!="string"&&(t=r,r=void 0),KA(t)(WA(UA(t).document().write(GA()(e,r,!0))))};function KA(e){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:T(Zt),autolinkProtocol:w,autolinkEmail:w,atxHeading:T(Le),blockQuote:T(J),characterEscape:w,characterReference:w,codeFenced:T(ae),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:T(ae,c),codeText:T(se,c),codeTextData:w,data:w,codeFlowValue:w,definition:T(le),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:T(ue),hardBreakEscape:T(Ue),hardBreakTrailing:T(Ue),htmlFlow:T(Oe,c),htmlFlowData:w,htmlText:T(Oe,c),htmlTextData:w,image:T(ht),label:c,link:T(Zt),listItem:T(L1),listItemValue:f,listOrdered:T(Dt,d),listUnordered:T(Dt),paragraph:T(P1),reference:j,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:T(Le),strong:T(n2),thematicBreak:T(ee)},exit:{atxHeading:s(),atxHeadingSequence:x,autolink:s(),autolinkEmail:Y,autolinkProtocol:X,blockQuote:s(),characterEscapeValue:H,characterReferenceMarkerHexadecimal:U,characterReferenceMarkerNumeric:U,characterReferenceValue:W,codeFenced:s(m),codeFencedFence:g,codeFencedFenceInfo:h,codeFencedFenceMeta:p,codeFlowValue:H,codeIndented:s(y),codeText:s(I),codeTextData:H,data:H,definition:s(),definitionDestinationString:v,definitionLabelString:L,definitionTitleString:b,emphasis:s(),hardBreakEscape:s(A),hardBreakTrailing:s(A),htmlFlow:s(O),htmlFlowData:H,htmlText:s(D),htmlTextData:H,image:s(V),label:P,labelText:k,lineEnding:C,link:s(N),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:z,resourceDestinationString:G,resourceTitleString:R,resource:F,setextHeading:s(M),setextHeadingLineSequence:E,setextHeadingText:S,strong:s(),thematicBreak:s()}};Xv(r,(e||{}).mdastExtensions||[]);const t={};return n;function n(q){let K={type:"root",children:[]};const ie={stack:[K],tokenStack:[],config:r,enter:Q,exit:l,buffer:c,resume:u
|
|||
|
|
`}]}function rw(e,r){const t=r.value?r.value+`
|
|||
|
|
`:"",n=r.lang?r.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};n&&(i.className=["language-"+n]);let a={type:"element",tagName:"code",properties:i,children:[{type:"text",value:t}]};return r.meta&&(a.data={meta:r.meta}),e.patch(r,a),a=e.applyData(r,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(r,a),a}function nw(e,r){const t={type:"element",tagName:"del",properties:{},children:e.all(r)};return e.patch(r,t),e.applyData(r,t)}function iw(e,r){const t={type:"element",tagName:"em",properties:{},children:e.all(r)};return e.patch(r,t),e.applyData(r,t)}const yc=aw(/[\dA-Za-z]/);function aw(e){return r;function r(t){return t!==null&&e.test(String.fromCharCode(t))}}function br(e){const r=[];let t=-1,n=0,i=0;for(;++t<e.length;){const a=e.charCodeAt(t);let o="";if(a===37&&yc(e.charCodeAt(t+1))&&yc(e.charCodeAt(t+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const T=e.charCodeAt(t+1);a<56320&&T>56319&&T<57344?(o=String.fromCharCode(a,T),i=1):o="<22>"}else o=String.fromCharCode(a);o&&(r.push(e.slice(n,t),encodeURIComponent(o)),n=t+i+1,o=""),i&&(t+=i,i=0)}return r.join("")+e.slice(n)}function Kv(e,r){const t=String(r.identifier).toUpperCase(),n=br(t.toLowerCase()),i=e.footnoteOrder.indexOf(t);let a;i===-1?(e.footnoteOrder.push(t),e.footnoteCounts[t]=1,a=e.footnoteOrder.length):(e.footnoteCounts[t]++,a=i+1);const o=e.footnoteCounts[t],T={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+n,id:e.clobberPrefix+"fnref-"+n+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(r,T);const c={type:"element",tagName:"sup",properties:{},children:[T]};return e.patch(r,c),e.applyData(r,c)}function ow(e,r){const t=e.footnoteById;let n=1;for(;n in t;)n++;const i=String(n);return t[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:r.children}],position:r.position},Kv(e,{type:"footnoteReference",identifier:i,position:r.position})}function sw(e,r){const t={type:"element",tagName:"h"+r.depth,properties:{},children:e.all(r)};return e.patch(r,t),e.applyData(r,t)}function lw(e,r){if(e.dangerous){const t={type:"raw",value:r.value};return e.patch(r,t),e.applyData(r,t)}return null}function Yv(e,r){const t=r.referenceType;let n="]";if(t==="collapsed"?n+="[]":t==="full"&&(n+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return{type:"text",value:"!["+r.alt+n};const i=e.all(r),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=n:i.push({type:"text",value:n}),i}function uw(e,r){const t=e.definition(r.identifier);if(!t)return Yv(e,r);const n={src:br(t.url||""),alt:r.alt};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(r,i),e.applyData(r,i)}function cw(e,r){const t={src:br(r.url)};r.alt!==null&&r.alt!==void 0&&(t.alt=r.alt),r.title!==null&&r.title!==void 0&&(t.title=r.title);const n={type:"element",tagName:"img",properties:t,children:[]};return e.patch(r,n),e.applyData(r,n)}function Tw(e,r){const t={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};e.patch(r,t);const n={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(r,n),e.applyData(r,n)}function Qw(e,r){const t=e.definition(r.identifier);if(!t)return Yv(e,r);const n={href:br(t.url||"")};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function dw(e,r){const t={href:br(r.url)};r.title!==null&&r.title!==void 0&&(t.title=r.title);const n={type:"element",tagName:"a",properties:t,children:e.all(r)};return e.patch(r,n),e.applyData(r,n)}function fw(e,r,t){const n=e.all(r),i=t?hw(t):Jv(r),a={},o=[];if(typeof r.checked=="boolean"){const s=n[0];let l;s&&s.type==="element"&&s.tagName==="p"?l=s:(l={type:"element",tagName:"p",properties:{},children:[]},n.unshift(l)),l.children.length>0&&l.children.unshift
|
|||
|
|
`}),s.type==="element"&&s.tagName==="p"&&!i?o.push(...s.children):o.push(s)}const c=n[n.length-1];c&&(i||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
|
|||
|
|
`});const Q={type:"element",tagName:"li",properties:a,children:o};return e.patch(r,Q),e.applyData(r,Q)}function hw(e){let r=!1;if(e.type==="list"){r=e.spread||!1;const t=e.children;let n=-1;for(;!r&&++n<t.length;)r=Jv(t[n])}return r}function Jv(e){const r=e.spread;return r??e.children.length>1}function pw(e,r){const t={},n=e.all(r);let i=-1;for(typeof r.start=="number"&&r.start!==1&&(t.start=r.start);++i<n.length;){const o=n[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const a={type:"element",tagName:r.ordered?"ol":"ul",properties:t,children:e.wrap(n,!0)};return e.patch(r,a),e.applyData(r,a)}function gw(e,r){const t={type:"element",tagName:"p",properties:{},children:e.all(r)};return e.patch(r,t),e.applyData(r,t)}function mw(e,r){const t={type:"root",children:e.wrap(e.all(r))};return e.patch(r,t),e.applyData(r,t)}function vw(e,r){const t={type:"element",tagName:"strong",properties:{},children:e.all(r)};return e.patch(r,t),e.applyData(r,t)}const jl=ey("start"),Ul=ey("end");function yw(e){return{start:jl(e),end:Ul(e)}}function ey(e){return r;function r(t){const n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:n.offset>-1?n.offset:null}}}function Lw(e,r){const t=e.all(r),n=t.shift(),i=[];if(n){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(r.children[0],o),i.push(o)}if(t.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},T=jl(r.children[1]),c=Ul(r.children[r.children.length-1]);T.line&&c.line&&(o.position={start:T,end:c}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(r,a),e.applyData(r,a)}function bw(e,r,t){const n=t?t.children:void 0,a=(n?n.indexOf(r):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,T=o?o.length:r.children.length;let c=-1;const Q=[];for(;++c<T;){const l=r.children[c],u={},d=o?o[c]:void 0;d&&(u.align=d);let f={type:"element",tagName:a,properties:u,children:[]};l&&(f.children=e.all(l),e.patch(l,f),f=e.applyData(r,f)),Q.push(f)}const s={type:"element",tagName:"tr",properties:{},children:e.wrap(Q,!0)};return e.patch(r,s),e.applyData(r,s)}function xw(e,r){const t={type:"element",tagName:"td",properties:{},children:e.all(r)};return e.patch(r,t),e.applyData(r,t)}const Lc=9,bc=32;function Ew(e){const r=String(e),t=/\r?\n|\r/g;let n=t.exec(r),i=0;const a=[];for(;n;)a.push(xc(r.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=t.exec(r);return a.push(xc(r.slice(i),i>0,!1)),a.join("")}function xc(e,r,t){let n=0,i=e.length;if(r){let a=e.codePointAt(n);for(;a===Lc||a===bc;)n++,a=e.codePointAt(n)}if(t){let a=e.codePointAt(i-1);for(;a===Lc||a===bc;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function Sw(e,r){const t={type:"text",value:Ew(String(r.value))};return e.patch(r,t),e.applyData(r,t)}function _w(e,r){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(r,t),e.applyData(r,t)}const Aw={blockquote:ew,break:tw,code:rw,delete:nw,emphasis:iw,footnoteReference:Kv,footnote:ow,heading:sw,html:lw,imageReference:uw,image:cw,inlineCode:Tw,linkReference:Qw,link:dw,listItem:fw,list:pw,paragraph:gw,root:mw,strong:vw,table:Lw,tableCell:xw,tableRow:bw,text:Sw,thematicBreak:_w,toml:C3,yaml:C3,definition:C3,footnoteDefinition:C3};function C3(){return null}const ty=function(e){if(e==null)return Mw;if(typeof e=="string")return Cw(e);if(typeof e=="object")return Array.isArray(e)?ww(e):Hw(e);if(typeof e=="function")return ni(e);throw new Error("Expected function, string, or object as test")};function ww(e){const r=[];let t=-1;for(;++t<e.length;)r[t]=ty(e[t]);return ni(n);function n(...i){let a=-1;for(;++a<r.length;)if(r[a].call(this,...i))return!0;return!1}}function Hw(e){return ni(r);function r(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function Cw(e){return ni(r);function r(t){return t&&t.type===e}}function ni(e){return r;function r(t,...n){return!!(t&&typeof t=="objec
|
|||
|
|
`});++n<e.length;)n&&t.push({type:"text",value:`
|
|||
|
|
`}),t.push(e[n]);return r&&e.length>0&&t.push({type:"text",value:`
|
|||
|
|
`}),t}function $w(e){const r=[];let t=-1;for(;++t<e.footnoteOrder.length;){const n=e.footnoteById[e.footnoteOrder[t]];if(!n)continue;const i=e.all(n),a=String(n.identifier).toUpperCase(),o=br(a.toLowerCase());let T=0;const c=[];for(;++T<=e.footnoteCounts[a];){const l={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+o+(T>1?"-"+T:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};T>1&&l.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(T)}]}),c.length>0&&c.push({type:"text",value:" "}),c.push(l)}const Q=i[i.length-1];if(Q&&Q.type==="element"&&Q.tagName==="p"){const l=Q.children[Q.children.length-1];l&&l.type==="text"?l.value+=" ":Q.children.push({type:"text",value:" "}),Q.children.push(...c)}else i.push(...c);const s={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+o},children:e.wrap(i,!0)};e.patch(n,s),r.push(s)}if(r.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:`
|
|||
|
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(r,!0)},{type:"text",value:`
|
|||
|
|
`}]}}function iy(e,r){const t=Nw(e,r),n=t.one(e,null),i=$w(t);return i&&n.children.push({type:"text",value:`
|
|||
|
|
`},i),Array.isArray(n)?{type:"root",children:n}:n}const jw=function(e,r){return e&&"run"in e?Gw(e,r):Ww(e||r)},Uw=jw;function Gw(e,r){return(t,n,i)=>{e.run(iy(t,r),n,a=>{i(a)})}}function Ww(e){return r=>iy(r,e)}let Fn=class{constructor(r,t,n){this.property=r,this.normal=t,n&&(this.space=n)}};Fn.prototype.property={};Fn.prototype.normal={};Fn.prototype.space=null;function ay(e,r){const t={},n={};let i=-1;for(;++i<e.length;)Object.assign(t,e[i].property),Object.assign(n,e[i].normal);return new Fn(t,n,r)}function Hn(e){return e.toLowerCase()}let zt=class{constructor(r,t){this.property=r,this.attribute=t}};zt.prototype.space=null;zt.prototype.boolean=!1;zt.prototype.booleanish=!1;zt.prototype.overloadedBoolean=!1;zt.prototype.number=!1;zt.prototype.commaSeparated=!1;zt.prototype.spaceSeparated=!1;zt.prototype.commaOrSpaceSeparated=!1;zt.prototype.mustUseProperty=!1;zt.prototype.defined=!1;let zw=0;const Se=M2(),lt=M2(),oy=M2(),ne=M2(),Ze=M2(),ir=M2(),Rt=M2();function M2(){return 2**++zw}const j8=Object.freeze(Object.defineProperty({__proto__:null,boolean:Se,booleanish:lt,commaOrSpaceSeparated:Rt,commaSeparated:ir,number:ne,overloadedBoolean:oy,spaceSeparated:Ze},Symbol.toStringTag,{value:"Module"})),R5=Object.keys(j8);let Wl=class extends zt{constructor(r,t,n,i){let a=-1;if(super(r,t),Ac(this,"space",i),typeof n=="number")for(;++a<R5.length;){const o=R5[a];Ac(this,R5[a],(n&j8[o])===j8[o])}}};Wl.prototype.defined=!0;function Ac(e,r,t){t&&(e[r]=t)}const qw={}.hasOwnProperty;function xr(e){const r={},t={};let n;for(n in e.properties)if(qw.call(e.properties,n)){const i=e.properties[n],a=new Wl(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),r[n]=a,t[Hn(n)]=n,t[Hn(a.attribute)]=n}return new Fn(r,t,e.space)}const sy=xr({space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),ly=xr({space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function uy(e,r){return r in e?e[r]:r}function cy(e,r){return uy(e,r.toLowerCase())}const Ty=xr({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:cy,properties:{xmlns:null,xmlnsXLink:null}}),Qy=xr({transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:lt,ariaAutoComplete:null,ariaBusy:lt,ariaChecked:lt,ariaColCount:ne,ariaColIndex:ne,ariaColSpan:ne,ariaControls:Ze,ariaCurrent:null,ariaDescribedBy:Ze,ariaDetails:null,ariaDisabled:lt,ariaDropEffect:Ze,ariaErrorMessage:null,ariaExpanded:lt,ariaFlowTo:Ze,ariaGrabbed:lt,ariaHasPopup:null,ariaHidden:lt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ze,ariaLevel:ne,ariaLive:null,ariaModal:lt,ariaMultiLine:lt,ariaMultiSelectable:lt,ariaOrientation:null,ariaOwns:Ze,ariaPlaceholder:null,ariaPosInSet:ne,ariaPressed:lt,ariaReadOnly:lt,ariaRelevant:null,ariaRequired:lt,ariaRoleDescription:Ze,ariaRowCount:ne,ariaRowIndex:ne,ariaRowSpan:ne,ariaSelected:lt,ariaSetSize:ne,ariaSort:null,ariaValueMax:ne,ariaValueMin:ne,ariaValueNow:ne,ariaValueText:null,role:null}}),Zw=xr({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:cy,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ir,acceptCharset:Ze,accessKey:Ze,action:null,allow:null,allowFullScreen:Se,allowPaymentRequest:Se,allowUserMedia:Se,alt:null,as:null,async:Se,autoCapitalize:null,autoComplete:Ze,autoFocus:Se,autoPlay:Se,blocking:Ze,capture:null,charSet:null,checked:Se,cite:null,className:Ze,cols:ne,colSpan:null,content:null,contentEditable:lt,controls:Se,controlsList:Ze,coords:ne|ir,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Se,defer:Se,dir:null,dirName:null,disabled:Se,download:oy,draggable:lt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Se
|
|||
|
|
`,Dc="/",kc="*",y2="",dH="comment",fH="declaration",hH=function(e,r){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];r=r||{};var t=1,n=1;function i(f){var h=f.match(aH);h&&(t+=h.length);var p=f.lastIndexOf(QH);n=~p?f.length-p:n+f.length}function a(){var f={line:t,column:n};return function(h){return h.position=new o(f),Q(),h}}function o(f){this.start=f,this.end={line:t,column:n},this.source=r.source}o.prototype.content=e;function T(f){var h=new Error(r.source+":"+t+":"+n+": "+f);if(h.reason=f,h.filename=r.source,h.line=t,h.column=n,h.source=e,!r.silent)throw h}function c(f){var h=f.exec(e);if(h){var p=h[0];return i(p),e=e.slice(p.length),h}}function Q(){c(oH)}function s(f){var h;for(f=f||[];h=l();)h!==!1&&f.push(h);return f}function l(){var f=a();if(!(Dc!=e.charAt(0)||kc!=e.charAt(1))){for(var h=2;y2!=e.charAt(h)&&(kc!=e.charAt(h)||Dc!=e.charAt(h+1));)++h;if(h+=2,y2===e.charAt(h-1))return T("End of comment missing");var p=e.slice(2,h-2);return n+=2,i(p),e=e.slice(h),n+=2,f({type:dH,comment:p})}}function u(){var f=a(),h=c(sH);if(h){if(l(),!c(lH))return T("property missing ':'");var p=c(uH),g=f({type:fH,property:Rc(h[0].replace(Oc,y2)),value:p?Rc(p[0].replace(Oc,y2)):y2});return c(cH),g}}function d(){var f=[];s(f);for(var h;h=u();)h!==!1&&(f.push(h),s(f));return f}return Q(),d()};function Rc(e){return e?e.replace(TH,y2):y2}var pH=hH;function py(e,r){var t=null;if(!e||typeof e!="string")return t;for(var n,i=pH(e),a=typeof r=="function",o,T,c=0,Q=i.length;c<Q;c++)n=i[c],o=n.property,T=n.value,a?r(o,T,n):T&&(t||(t={}),t[o]=T);return t}zl.exports=py;zl.exports.default=py;var gH=zl.exports;const mH=H2(gH),U8={}.hasOwnProperty,vH=new Set(["table","thead","tbody","tfoot","tr"]);function gy(e,r){const t=[];let n=-1,i;for(;++n<r.children.length;)i=r.children[n],i.type==="element"?t.push(yH(e,i,n,r)):i.type==="text"?(r.type!=="element"||!vH.has(r.tagName)||!rH(i))&&t.push(i.value):i.type==="raw"&&!e.options.skipHtml&&t.push(i.value);return t}function yH(e,r,t,n){const i=e.options,a=i.transformLinkUri===void 0?LS:i.transformLinkUri,o=e.schema,T=r.tagName,c={};let Q=o,s;if(o.space==="html"&&T==="svg"&&(Q=hy,e.schema=Q),r.properties)for(s in r.properties)U8.call(r.properties,s)&&bH(c,s,r.properties[s],e);(T==="ol"||T==="ul")&&e.listDepth++;const l=gy(e,r);(T==="ol"||T==="ul")&&e.listDepth--,e.schema=o;const u=r.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},d=i.components&&U8.call(i.components,T)?i.components[T]:T,f=typeof d=="string"||d===Et.Fragment;if(!tE.isValidElementType(d))throw new TypeError(`Component for name \`${T}\` not defined or is not renderable`);if(c.key=t,T==="a"&&i.linkTarget&&(c.target=typeof i.linkTarget=="function"?i.linkTarget(String(c.href||""),r.children,typeof c.title=="string"?c.title:null):i.linkTarget),T==="a"&&a&&(c.href=a(String(c.href||""),r.children,typeof c.title=="string"?c.title:null)),!f&&T==="code"&&n.type==="element"&&n.tagName!=="pre"&&(c.inline=!0),!f&&(T==="h1"||T==="h2"||T==="h3"||T==="h4"||T==="h5"||T==="h6")&&(c.level=Number.parseInt(T.charAt(1),10)),T==="img"&&i.transformImageUri&&(c.src=i.transformImageUri(String(c.src||""),String(c.alt||""),typeof c.title=="string"?c.title:null)),!f&&T==="li"&&n.type==="element"){const h=LH(r);c.checked=h&&h.properties?!!h.properties.checked:null,c.index=I5(n,r),c.ordered=n.tagName==="ol"}return!f&&(T==="ol"||T==="ul")&&(c.ordered=T==="ol",c.depth=e.listDepth),(T==="td"||T==="th")&&(c.align&&(c.style||(c.style={}),c.style.textAlign=c.align,delete c.align),f||(c.isHeader=T==="th")),!f&&T==="tr"&&n.type==="element"&&(c.isHeader=n.tagName==="thead"),i.sourcePos&&(c["data-sourcepos"]=SH(u)),!f&&i.rawSourcePos&&(c.sourcePosition=r.position),!f&&i.includeElementIndex&&(c.index=I5(n,r),c.siblingCount=I5(n)),f||(c.node=r),l.length>0?Et.createElement(d,c,l):Et.createElement(d,c)}function LH(e){let r=-1;for(;++r<e.children.length;){const t=e.children[r];if(t.type==="element"&&t.tagName==="input")return t}return null}function I5(e,r){let t=-1,n=0;for(;++t<e.children.length&&e.
|
|||
|
|
|
|||
|
|
`)},e.prototype.getStyleRules=function(){var r,t,n=Object.keys(this.styles),i=new Array(n.length),a=0;try{for(var o=I3(n),T=o.next();!T.done;T=o.next()){var c=T.value;i[a++]=c+` {
|
|||
|
|
`+this.getStyleDefString(this.styles[c])+`
|
|||
|
|
}`}}catch(Q){r={error:Q}}finally{try{T&&!T.done&&(t=o.return)&&t.call(o)}finally{if(r)throw r.error}}return i},e.prototype.getStyleDefString=function(r){var t,n,i=Object.keys(r),a=new Array(i.length),o=0;try{for(var T=I3(i),c=T.next();!c.done;c=T.next()){var Q=c.value;a[o++]=" "+Q+": "+r[Q]+";"}}catch(s){t={error:s}}finally{try{c&&!c.done&&(n=T.return)&&n.call(T)}finally{if(t)throw t.error}}return a.join(`
|
|||
|
|
`)},e}();oi.CssStyles=$H;var jH=_&&_.__extends||function(){var e=function(r,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),g4=_&&_.__assign||function(){return g4=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},g4.apply(this,arguments)},V5=_&&_.__read||function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],o;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(T){o={error:T}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return a},G1=_&&_.__values||function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ai,"__esModule",{value:!0});ai.CommonOutputJax=void 0;var $c=$n,P5=Er,UH=ft,GH=m1,WH=jn,zH=oi,qH=function(e){jH(r,e);function r(t,n,i){t===void 0&&(t=null),n===void 0&&(n=null),i===void 0&&(i=null);var a=this,o=V5((0,UH.separateOptions)(t,i.OPTIONS),2),T=o[0],c=o[1];return a=e.call(this,T)||this,a.factory=a.options.wrapperFactory||new n,a.factory.jax=a,a.cssStyles=a.options.cssStyles||new zH.CssStyles,a.font=a.options.font||new i(c),a.unknownCache=new Map,a}return r.prototype.typeset=function(t,n){this.setDocument(n);var i=this.createNode();return this.toDOM(t,i,n),i},r.prototype.createNode=function(){var t=this.constructor.NAME;return this.html("mjx-container",{class:"MathJax",jax:t})},r.prototype.setScale=function(t){var n=this.math.metrics.scale*this.options.scale;n!==1&&this.adaptor.setStyle(t,"fontSize",(0,GH.percent)(n))},r.prototype.toDOM=function(t,n,i){i===void 0&&(i=null),this.setDocument(i),this.math=t,this.pxPerEm=t.metrics.ex/this.font.params.x_height,t.root.setTeXclass(null),this.setScale(n),this.nodeMap=new Map,this.container=n,this.processMath(t.root,n),this.nodeMap=null,this.executeFilters(this.postFilters,t,i,n)},r.prototype.getBBox=function(t,n){this.setDocument(n),this.math=t,t.root.setTeXclass(null),this.nodeMap=new Map;var i=this.factory.wrap(t.root).getOuterBBox();return this.nodeMap=null,i},r.prototype.getMetrics=function(t){var n,i;this.setDocument(t);var a=this.adaptor,o=this.getMetricMaps(t);try{for(var T=G1(t.math),c=T.next();!c.done;c=T.next()){var Q=c.value,s=a.parent(Q.start.node);if(Q.state()<P5.STATE.METRICS&&s){var l=o[Q.display?1:0],u=l.get(s),d=u.em,f=u.ex,h=u.containerWidth,p=u.lineWidth,g=u.scale,m=u.family;Q.setMetrics(d,f,h,p,g),this.options.mtextInheritFont&&(Q.outputData.mtextFamily=m),this.options.merrorInheritFont&&(Q.outputData.merrorFamily=m),Q.state(P5.STATE.METRICS)}}}catch(y){n={error:y}}finally{try{c&&!c.done&&(i=T.return)&&i.call(T)}finally{if(n)throw n.error}}},r.prototype.getMetricsFor=function(t,n){var i=this.options.mtextInheritFont||this.options.merrorInheritFont,a=this.getTestElement(t,n),o=this.measureMetrics(a,i);return this.adaptor.remove(a),o},r.prototype.getMetricMaps=function(t){var n,i,a,o,T,c,Q,s,l,u,d=this.adaptor,f=[new Map,new Map];try{for(var h=G1(t.math),p=h.next();!p.done;p=h.next()){var g=p.value,m=d.parent(g.start.node);if(m&&g.state()<P5.STATE.METRICS){var y=f[g.display?1:0];y.has(m)||y.set(m,this.getTestElement(m,g.display))}}}catch(O){n={error:O}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}var L=this.options.mtextInheritFont||this.options.merrorInheritFont,b=[new Map,new Map];try{for(var v=G1(b.keys()),x=v.next();!x.done;x=v.next()){var S=x.value;try{for(var
|
|||
|
|
`+this.cssStyles.cssText+`
|
|||
|
|
`)]);return c},r.prototype.addFontStyles=function(t){t.addStyles(this.font.styles)},r.prototype.addWrapperStyles=function(t){var n,i;try{for(var a=G1(this.factory.getKinds()),o=a.next();!o.done;o=a.next()){var T=o.value;this.addClassStyles(this.factory.getNodeClass(T),t)}}catch(c){n={error:c}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}},r.prototype.addClassStyles=function(t,n){n.addStyles(t.styles)},r.prototype.setDocument=function(t){t&&(this.document=t,this.adaptor.document=t.document)},r.prototype.html=function(t,n,i,a){return n===void 0&&(n={}),i===void 0&&(i=[]),this.adaptor.node(t,n,i,a)},r.prototype.text=function(t){return this.adaptor.text(t)},r.prototype.fixed=function(t,n){return n===void 0&&(n=3),Math.abs(t)<6e-4?"0":t.toFixed(n).replace(/\.?0+$/,"")},r.prototype.measureText=function(t,n,i){i===void 0&&(i=["",!1,!1]);var a=this.unknownText(t,n);if(n==="-explicitFont"){var o=this.cssFontStyles(i);this.adaptor.setAttributes(a,{style:o})}return this.measureTextNodeWithCache(a,t,n,i)},r.prototype.measureTextNodeWithCache=function(t,n,i,a){a===void 0&&(a=["",!1,!1]),i==="-explicitFont"&&(i=[a[0],a[1]?"T":"F",a[2]?"T":"F",""].join("-")),this.unknownCache.has(i)||this.unknownCache.set(i,new Map);var o=this.unknownCache.get(i),T=o.get(n);if(T)return T;var c=this.measureTextNode(t);return o.set(n,c),c},r.prototype.measureXMLnode=function(t){var n=this.adaptor,i=this.html("mjx-xml-block",{style:{display:"inline-block"}},[n.clone(t)]),a=this.html("mjx-baseline",{style:{display:"inline-block",width:0,height:0}}),o={position:"absolute",display:"inline-block","font-family":"initial","line-height":"normal"},T=this.html("mjx-measure-xml",{style:o},[a,i]);n.append(n.parent(this.math.start.node),this.container),n.append(this.container,T);var c=this.math.metrics.em*this.math.metrics.scale,Q=n.nodeBBox(i),s=Q.left,l=Q.right,u=Q.bottom,d=Q.top,f=(l-s)/c,h=(n.nodeBBox(a).top-d)/c,p=(u-d)/c-h;return n.remove(this.container),n.remove(T),{w:f,h,d:p}},r.prototype.cssFontStyles=function(t,n){n===void 0&&(n={});var i=V5(t,3),a=i[0],o=i[1],T=i[2];return n["font-family"]=this.font.getFamily(a),o&&(n["font-style"]="italic"),T&&(n["font-weight"]="bold"),n},r.prototype.getFontData=function(t){return t||(t=new WH.Styles),[this.font.getFamily(t.get("font-family")),t.get("font-style")==="italic",t.get("font-weight")==="bold"]},r.NAME="Common",r.OPTIONS=g4(g4({},$c.AbstractOutputJax.OPTIONS),{scale:1,minScale:.5,mtextInheritFont:!1,merrorInheritFont:!1,mtextFont:"",merrorFont:"serif",mathmlSpacing:!1,skipAttributes:{},exFactor:.5,displayAlign:"center",displayIndent:"0",wrapperFactory:null,font:null,cssStyles:null}),r.commonStyles={},r}($c.AbstractOutputJax);ai.CommonOutputJax=qH;var Fr={},si={},li={},Sr={},ZH=_&&_.__values||function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},jc=_&&_.__read||function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],o;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(T){o={error:T}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return a},Uc=_&&_.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))};Object.defineProperty(Sr,"__esModule",{value:!0});Sr.AbstractFactory=void 0;var XH=function(){function e(r){var t,n;r===void 0&&(r=null),this.defaultKind="unknown",this.nodeMap=new Map,this.node={},r===null&&(r=this.constructor.defaultNodes);try{for(var i=ZH(Object.keys(r)),a=i.next();!a.done;a=i.next()){var o=a.value;this.setNodeClass(o,r[o])}}catch(T){t={error:T}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}return e.prototype.create=function(r){for(var t=[],n=1;n
|
|||
|
|
`,wbr:"","#comment":""},ignoreHtmlClass:"mathjax_ignore",processHtmlClass:"mathjax_process"},e}();P6.HTMLDomStrings=IR;var NR=_&&_.__extends||function(){var e=function(r,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),tr=_&&_.__assign||function(){return tr=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},tr.apply(this,arguments)},Z3=_&&_.__read||function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],o;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(T){o={error:T}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return a},Q2=_&&_.__values||function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(I6,"__esModule",{value:!0});I6.HTMLDocument=void 0;var aa=o9,oa=ft,VR=N6,PR=V6,_Q=P6,sa=Er,BR=function(e){NR(r,e);function r(t,n,i){var a=this,o=Z3((0,oa.separateOptions)(i,_Q.HTMLDomStrings.OPTIONS),2),T=o[0],c=o[1];return a=e.call(this,t,n,T)||this,a.domStrings=a.options.DomStrings||new _Q.HTMLDomStrings(c),a.domStrings.adaptor=n,a.styles=[],a}return r.prototype.findPosition=function(t,n,i,a){var o,T,c=this.adaptor;try{for(var Q=Q2(a[t]),s=Q.next();!s.done;s=Q.next()){var l=s.value,u=Z3(l,2),d=u[0],f=u[1];if(n<=f&&c.kind(d)==="#text")return{node:d,n:Math.max(n,0),delim:i};n-=f}}catch(h){o={error:h}}finally{try{s&&!s.done&&(T=Q.return)&&T.call(Q)}finally{if(o)throw o.error}}return{node:null,n:0,delim:i}},r.prototype.mathItem=function(t,n,i){var a=t.math,o=this.findPosition(t.n,t.start.n,t.open,i),T=this.findPosition(t.n,t.end.n,t.close,i);return new this.options.MathItem(a,n,t.display,o,T)},r.prototype.findMath=function(t){var n,i,a,o,T,c,Q,s,l;if(!this.processed.isSet("findMath")){this.adaptor.document=this.document,t=(0,oa.userOptions)({elements:this.options.elements||[this.adaptor.body(this.document)]},t);try{for(var u=Q2(this.adaptor.getElements(t.elements,this.document)),d=u.next();!d.done;d=u.next()){var f=d.value,h=Z3([null,null],2),p=h[0],g=h[1];try{for(var m=(a=void 0,Q2(this.inputJax)),y=m.next();!y.done;y=m.next()){var L=y.value,b=new this.options.MathList;if(L.processStrings){p===null&&(T=Z3(this.domStrings.find(f),2),p=T[0],g=T[1]);try{for(var v=(c=void 0,Q2(L.findMath(p))),x=v.next();!x.done;x=v.next()){var S=x.value;b.push(this.mathItem(S,L,g))}}catch(H){c={error:H}}finally{try{x&&!x.done&&(Q=v.return)&&Q.call(v)}finally{if(c)throw c.error}}}else try{for(var E=(s=void 0,Q2(L.findMath(f))),M=E.next();!M.done;M=E.next()){var S=M.value,w=new this.options.MathItem(S.math,L,S.display,S.start,S.end);b.push(w)}}catch(H){s={error:H}}finally{try{M&&!M.done&&(l=E.return)&&l.call(E)}finally{if(s)throw s.error}}this.math.merge(b)}}catch(H){a={error:H}}finally{try{y&&!y.done&&(o=m.return)&&o.call(m)}finally{if(a)throw a.error}}}}catch(H){n={error:H}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}this.processed.set("findMath")}return this},r.prototype.updateDocument=function(){return this.processed.isSet("updateDocument")||(this.addPageElements(),this.addStyleSheet(),e.prototype.updateDocument.call(this),this.processed.set("updateDocument")),this},r.prototype.addPageElements=function(){var t=this.adaptor.body(this.document),n=this.documentPageElements();n&&this.adaptor.append(t,n)},r.prototype.addStyleSheet=function(){var t=this.documentStyl
|
|||
|
|
`+this.stack.join(`
|
|||
|
|
`)+`
|
|||
|
|
]`},e}();j6.default=lI;var kQ;function bt(){if(kQ)return K3;kQ=1;var e=_&&_.__values||function(Q){var s=typeof Symbol=="function"&&Symbol.iterator,l=s&&Q[s],u=0;if(l)return l.call(Q);if(Q&&typeof Q.length=="number")return{next:function(){return Q&&u>=Q.length&&(Q=void 0),{value:Q&&Q[u++],done:!Q}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")},r=_&&_.__read||function(Q,s){var l=typeof Symbol=="function"&&Q[Symbol.iterator];if(!l)return Q;var u=l.call(Q),d,f=[],h;try{for(;(s===void 0||s-- >0)&&!(d=u.next()).done;)f.push(d.value)}catch(p){h={error:p}}finally{try{d&&!d.done&&(l=u.return)&&l.call(u)}finally{if(h)throw h.error}}return f},t=_&&_.__spreadArray||function(Q,s,l){if(l||arguments.length===2)for(var u=0,d=s.length,f;u<d;u++)(f||!(u in s))&&(f||(f=Array.prototype.slice.call(s,0,u)),f[u]=s[u]);return Q.concat(f||Array.prototype.slice.call(s))},n=_&&_.__importDefault||function(Q){return Q&&Q.__esModule?Q:{default:Q}};Object.defineProperty(K3,"__esModule",{value:!0});var i=n(qe()),a=n(j6),o=n(Ve),T=he,c=function(){function Q(s,l,u){var d,f;this._string=s,this.configuration=u,this.macroCount=0,this.i=0,this.currentCS="";var h=l.hasOwnProperty("isInner"),p=l.isInner;delete l.isInner;var g;if(l){g={};try{for(var m=e(Object.keys(l)),y=m.next();!y.done;y=m.next()){var L=y.value;g[L]=l[L]}}catch(b){d={error:b}}finally{try{y&&!y.done&&(f=m.return)&&f.call(m)}finally{if(d)throw d.error}}}this.configuration.pushParser(this),this.stack=new a.default(this.itemFactory,g,h?p:!0),this.Parse(),this.Push(this.itemFactory.create("stop"))}return Object.defineProperty(Q.prototype,"options",{get:function(){return this.configuration.options},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"itemFactory",{get:function(){return this.configuration.itemFactory},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"tags",{get:function(){return this.configuration.tags},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"string",{get:function(){return this._string},set:function(s){this._string=s},enumerable:!1,configurable:!0}),Q.prototype.parse=function(s,l){return this.configuration.handlers.get(s).parse(l)},Q.prototype.lookup=function(s,l){return this.configuration.handlers.get(s).lookup(l)},Q.prototype.contains=function(s,l){return this.configuration.handlers.get(s).contains(l)},Q.prototype.toString=function(){var s,l,u="";try{for(var d=e(Array.from(this.configuration.handlers.keys())),f=d.next();!f.done;f=d.next()){var h=f.value;u+=h+": "+this.configuration.handlers.get(h)+`
|
|||
|
|
`}}catch(p){s={error:p}}finally{try{f&&!f.done&&(l=d.return)&&l.call(d)}finally{if(s)throw s.error}}return u},Q.prototype.Parse=function(){for(var s;this.i<this.string.length;)s=this.getCodePoint(),this.i+=s.length,this.parse("character",[this,s])},Q.prototype.Push=function(s){s instanceof T.AbstractMmlNode&&s.isInferred?this.PushAll(s.childNodes):this.stack.Push(s)},Q.prototype.PushAll=function(s){var l,u;try{for(var d=e(s),f=d.next();!f.done;f=d.next()){var h=f.value;this.stack.Push(h)}}catch(p){l={error:p}}finally{try{f&&!f.done&&(u=d.return)&&u.call(d)}finally{if(l)throw l.error}}},Q.prototype.mml=function(){if(!this.stack.Top().isKind("mml"))return null;var s=this.stack.Top().First;return this.configuration.popParser(),s},Q.prototype.convertDelimiter=function(s){var l=this.lookup("delimiter",s);return l?l.char:null},Q.prototype.getCodePoint=function(){var s=this.string.codePointAt(this.i);return s===void 0?"":String.fromCodePoint(s)},Q.prototype.nextIsSpace=function(){return!!this.string.charAt(this.i).match(/\s/)},Q.prototype.GetNext=function(){for(;this.nextIsSpace();)this.i++;return this.getCodePoint()},Q.prototype.GetCS=function(){var s=this.string.slice(this.i).match(/^(([a-z]+) ?|[\uD800-\uDBFF].|.)/i);return s?(this.i+=s[0].length,s[2]||s[1]):(this.i++," ")},Q.prototype.GetArgument=function(s,l){switch(this.GetNext()){case"":if(!l)throw new o.default("MissingArgFor","Missing argument for %1",this.currentCS);return null;case"}":if(!l)throw new o.default("ExtraCloseMissingOpen","Extra close brace or missing open brace");return null;case"\\":return this.i++,"\\"+this.GetCS();case"{":for(var u=++this.i,d=1;this.i<this.string.length;)switch(this.string.charAt(this.i++)){case"\\":this.i++;break;case"{":d++;break;case"}":if(--d===0)return this.string.slice(u,this.i-1);break}throw new o.default("MissingCloseBrace","Missing close brace")}var f=this.getCodePoint();return this.i+=f.length,f},Q.prototype.GetBrackets=function(s,l){if(this.GetNext()!=="[")return l;for(var u=++this.i,d=0;this.i<this.string.length;)switch(this.string.charAt(this.i++)){case"{":d++;break;case"\\":this.i++;break;case"}":if(d--<=0)throw new o.default("ExtraCloseLooking","Extra close brace while looking for %1","']'");break;case"]":if(d===0)return this.string.slice(u,this.i-1);break}throw new o.default("MissingCloseBracket","Could not find closing ']' for argument to %1",this.currentCS)},Q.prototype.GetDelimiter=function(s,l){var u=this.GetNext();if(this.i+=u.length,this.i<=this.string.length&&(u==="\\"?u+=this.GetCS():u==="{"&&l&&(this.i--,u=this.GetArgument(s).trim()),this.contains("delimiter",u)))return this.convertDelimiter(u);throw new o.default("MissingOrUnrecognizedDelim","Missing or unrecognized delimiter for %1",this.currentCS)},Q.prototype.GetDimen=function(s){if(this.GetNext()==="{"){var l=this.GetArgument(s),u=r(i.default.matchDimen(l),2),d=u[0],f=u[1];if(d)return d+f}else{var l=this.string.slice(this.i),h=r(i.default.matchDimen(l,!0),3),d=h[0],f=h[1],p=h[2];if(d)return this.i+=p,d+f}throw new o.default("MissingDimOrUnits","Missing dimension or its units for %1",this.currentCS)},Q.prototype.GetUpTo=function(s,l){for(;this.nextIsSpace();)this.i++;for(var u=this.i,d=0;this.i<this.string.length;){var f=this.i,h=this.GetNext();switch(this.i+=h.length,h){case"\\":h+=this.GetCS();break;case"{":d++;break;case"}":if(d===0)throw new o.default("ExtraCloseLooking","Extra close brace while looking for %1",l);d--;break}if(d===0&&h===l)return this.string.slice(u,f)}throw new o.default("TokenNotFoundForCommand","Could not find %1 for %2",l,this.currentCS)},Q.prototype.ParseArg=function(s){return new Q(this.GetArgument(s),this.stack.env,this.configuration).mml()},Q.prototype.ParseUpTo=function(s,l){return new Q(this.GetUpTo(s,l),this.stack.env,this.configuration).mml()},Q.prototype.GetDelimiterArg=function(s){var l=i.default.trimSpaces(this.GetArgument(s));if(l==="")return null;if(this.contains("delimiter",l))return l;throw new o.default("MissingOrUnrecognizedDelim","Missing or unrecognized delimiter for %1",this.currentCS)},Q.prototype.GetStar=func
|
|||
|
|
`;)e.i++};de.Hash=function(e,r){throw new Tt.default("CantUseHash1","You can't use 'macro parameter character #' in math mode")};de.MathFont=function(e,r,t){var n=e.GetArgument(r),i=new W6.default(n,pr(pr({},e.stack.env),{font:t,multiLetterIdentifiers:/^[a-zA-Z]+/,noAutoOP:!0}),e.configuration).mml();e.Push(e.create("node","TeXAtom",[i]))};de.SetFont=function(e,r,t){e.stack.env.font=t};de.SetStyle=function(e,r,t,n,i){e.stack.env.style=t,e.stack.env.level=i,e.Push(e.itemFactory.create("style").setProperty("styles",{displaystyle:n,scriptlevel:i}))};de.SetSize=function(e,r,t){e.stack.env.size=t,e.Push(e.itemFactory.create("style").setProperty("styles",{mathsize:(0,Gy.em)(t)}))};de.Spacer=function(e,r,t){var n=e.create("node","mspace",[],{width:(0,Gy.em)(t)}),i=e.create("node","mstyle",[n],{scriptlevel:0});e.Push(i)};de.LeftRight=function(e,r){var t=r.substr(1);e.Push(e.itemFactory.create(t,e.GetDelimiter(r),e.stack.env.color))};de.NamedFn=function(e,r,t){t||(t=r.substr(1));var n=e.create("token","mi",{texClass:wr.TEXCLASS.OP},t);e.Push(e.itemFactory.create("fn",n))};de.NamedOp=function(e,r,t){t||(t=r.substr(1)),t=t.replace(/ /," ");var n=e.create("token","mo",{movablelimits:!0,movesupsub:!0,form:p9.TexConstant.Form.PREFIX,texClass:wr.TEXCLASS.OP},t);e.Push(n)};de.Limits=function(e,r,t){var n=e.stack.Prev(!0);if(!n||ce.default.getTexClass(ce.default.getCoreMO(n))!==wr.TEXCLASS.OP&&ce.default.getProperty(n,"movesupsub")==null)throw new Tt.default("MisplacedLimits","%1 is allowed only on operators",e.currentCS);var i=e.stack.Top(),a;ce.default.isType(n,"munderover")&&!t?(a=e.create("node","msubsup"),ce.default.copyChildren(n,a),n=i.Last=a):ce.default.isType(n,"msubsup")&&t&&(a=e.create("node","munderover"),ce.default.copyChildren(n,a),n=i.Last=a),ce.default.setProperty(n,"movesupsub",!!t),ce.default.setProperties(ce.default.getCoreMO(n),{movablelimits:!1}),(ce.default.getAttribute(n,"movablelimits")||ce.default.getProperty(n,"movablelimits"))&&ce.default.setProperties(n,{movablelimits:!1})};de.Over=function(e,r,t,n){var i=e.itemFactory.create("over").setProperty("name",e.currentCS);t||n?(i.setProperty("open",t),i.setProperty("close",n)):r.match(/withdelims$/)&&(i.setProperty("open",e.GetDelimiter(r)),i.setProperty("close",e.GetDelimiter(r))),r.match(/^\\above/)?i.setProperty("thickness",e.GetDimen(r)):(r.match(/^\\atop/)||t||n)&&i.setProperty("thickness",0),e.Push(i)};de.Frac=function(e,r){var t=e.ParseArg(r),n=e.ParseArg(r),i=e.create("node","mfrac",[t,n]);e.Push(i)};de.Sqrt=function(e,r){var t=e.GetBrackets(r),n=e.GetArgument(r);n==="\\frac"&&(n+="{"+e.GetArgument(n)+"}{"+e.GetArgument(n)+"}");var i=new W6.default(n,e.stack.env,e.configuration).mml();t?i=e.create("node","mroot",[i,Wy(e,t)]):i=e.create("node","msqrt",[i]),e.Push(i)};function Wy(e,r){var t=e.stack.env,n=t.inRoot;t.inRoot=!0;var i=new W6.default(r,t,e.configuration),a=i.mml(),o=i.stack.global;if(o.leftRoot||o.upRoot){var T={};o.leftRoot&&(T.width=o.leftRoot),o.upRoot&&(T.voffset=o.upRoot,T.height=o.upRoot),a=e.create("node","mpadded",[a],T)}return t.inRoot=n,a}de.Root=function(e,r){var t=e.GetUpTo(r,"\\of"),n=e.ParseArg(r),i=e.create("node","mroot",[n,Wy(e,t)]);e.Push(i)};de.MoveRoot=function(e,r,t){if(!e.stack.env.inRoot)throw new Tt.default("MisplacedMoveRoot","%1 can appear only within a root",e.currentCS);if(e.stack.global[t])throw new Tt.default("MultipleMoveRoot","Multiple use of %1",e.currentCS);var n=e.GetArgument(r);if(!n.match(/-?[0-9]+/))throw new Tt.default("IntegerArg","The argument to %1 must be an integer",e.currentCS);n=parseInt(n,10)/15+"em",n.substr(0,1)!=="-"&&(n="+"+n),e.stack.global[t]=n};de.Accent=function(e,r,t,n){var i=e.ParseArg(r),a=pr(pr({},st.default.getFontDef(e)),{accent:!0,mathaccent:!0}),o=ce.default.createEntity(t),T=e.create("token","mo",a,o),c=T;ce.default.setAttribute(c,"stretchy",!!n);var Q=ce.default.isEmbellished(i)?ce.default.getCoreMO(i):i;(ce.default.isType(Q,"mo")||ce.default.getProperty(Q,"movablelimits"))&&ce.default.setProperties(Q,{movablelimits:!1});var s=e.create("node","munderover");ce.default.setChild
|
|||
|
|
*************************************************************************
|
|||
|
|
*
|
|||
|
|
* mhchemParser.ts
|
|||
|
|
* 4.2.1
|
|||
|
|
*
|
|||
|
|
* Parser for the \ce command and \pu command for MathJax and Co.
|
|||
|
|
*
|
|||
|
|
* mhchem's \ce is a tool for writing beautiful chemical equations easily.
|
|||
|
|
* mhchem's \pu is a tool for writing physical units easily.
|
|||
|
|
*
|
|||
|
|
* ----------------------------------------------------------------------
|
|||
|
|
*
|
|||
|
|
* Copyright (c) 2015-2023 Martin Hensel
|
|||
|
|
*
|
|||
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|||
|
|
* you may not use this file except in compliance with the License.
|
|||
|
|
* You may obtain a copy of the License at
|
|||
|
|
*
|
|||
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|||
|
|
*
|
|||
|
|
* Unless required by applicable law or agreed to in writing, software
|
|||
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|||
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
|
|
* See the License for the specific language governing permissions and
|
|||
|
|
* limitations under the License.
|
|||
|
|
*
|
|||
|
|
* ----------------------------------------------------------------------
|
|||
|
|
*
|
|||
|
|
* https://github.com/mhchem/mhchemParser
|
|||
|
|
*
|
|||
|
|
*/Object.defineProperty(a5,"__esModule",{value:!0});a5.mhchemParser=void 0;var DP=function(){function e(){}return e.toTex=function(r,t){return Ge.go(re.go(r,t),t!=="tex")},e}();a5.mhchemParser=DP;function _t(e){var r,t,n={};for(r in e)for(t in e[r]){var i=t.split("|");e[r][t].stateArray=i;for(var a=0;a<i.length;a++)n[i[a]]=[]}for(r in e)for(t in e[r])for(var i=e[r][t].stateArray||[],a=0;a<i.length;a++){var o=e[r][t];o.action_=[].concat(o.action_);for(var T=0;T<o.action_.length;T++)typeof o.action_[T]=="string"&&(o.action_[T]={type_:o.action_[T]});for(var c=r.split("|"),Q=0;Q<c.length;Q++)if(i[a]==="*"){var s=void 0;for(s in n)n[s].push({pattern:c[Q],task:o})}else n[i[a]].push({pattern:c[Q],task:o})}return n}var re={go:function(e,r){if(!e)return[];r===void 0&&(r="ce");var t="0",n={};n.parenthesisLevel=0,e=e.replace(/\n/g," "),e=e.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),e=e.replace(/[\u2026]/g,"...");for(var i,a=10,o=[];;){i!==e?(a=10,i=e):a--;var T=re.stateMachines[r],c=T.transitions[t]||T.transitions["*"];e:for(var Q=0;Q<c.length;Q++){var s=re.patterns.match_(c[Q].pattern,e);if(s){for(var l=c[Q].task,u=0;u<l.action_.length;u++){var d=void 0;if(T.actions[l.action_[u].type_])d=T.actions[l.action_[u].type_](n,s.match_,l.action_[u].option);else if(re.actions[l.action_[u].type_])d=re.actions[l.action_[u].type_](n,s.match_,l.action_[u].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+l.action_[u].type_+")"];re.concatArray(o,d)}if(t=l.nextState||t,e.length>0){if(l.revisit||(e=s.remainder),!l.toContinue)break e}else return o}}if(a<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(e,r){if(r)if(Array.isArray(r))for(var t=0;t<r.length;t++)e.push(r[t]);else e.push(r)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(e){var r=e.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:(?:([eE])|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return r&&r[0]?{match_:r.slice(1),remainder:e.substr(r[0].length)}:null},"(-)(9)^(-9)":/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/,"state of aggregation $":function(e){var r=re.patterns.findObserveGroups(e,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(r&&r.remainder.match(/^($|[\s,;\)\]\}])/))return r;var t=e.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return t?{match_:t[0],remainder:e.substr(t[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". __* ":/^([.\u22C5\u00B7\u2022]|[*])\s*/,"...":/^\.\.\.(?=$|[^.])/,"^{(...)}":function(e){return re.patterns.findObserveGroups(e,"^{","","","}")},"^($...$)":function(e){return re.patterns.findObserveGroups(e,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(e){return re.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}"
|
|||
|
|
`;)e.i++;e.i++},Math:function(e,r){e.saveText();for(var t=e.i,n,i,a=0;i=e.GetNext();)switch(n=e.i++,i){case"\\":var o=e.GetCS();o===")"&&(i="\\(");case"$":if(a===0&&r===i){var T=e.texParser.configuration,c=new cB.default(e.string.substr(t,n-t),e.stack.env,T).mml();e.PushMath(c);return}break;case"{":a++;break;case"}":a===0&&e.Error("ExtraCloseMissingOpen","Extra close brace or missing open brace"),a--;break}e.Error("MathNotTerminated","Math-mode is not properly terminated")},MathModeOnly:function(e,r){e.Error("MathModeOnly","'%1' allowed only in math mode",r)},Misplaced:function(e,r){e.Error("Misplaced","'%1' can not be used here",r)},OpenBrace:function(e,r){var t=e.stack.env;e.envStack.push(t),e.stack.env=Object.assign({},t)},CloseBrace:function(e,r){e.envStack.length?(e.saveText(),e.stack.env=e.envStack.pop()):e.Error("ExtraCloseMissingOpen","Extra close brace or missing open brace")},OpenQuote:function(e,r){e.string.charAt(e.i)===r?(e.text+="“",e.i++):e.text+="‘"},CloseQuote:function(e,r){e.string.charAt(e.i)===r?(e.text+="”",e.i++):e.text+="’"},Tilde:function(e,r){e.text+=" "},Space:function(e,r){for(e.text+=" ";e.GetNext().match(/\s/);)e.i++},SelfQuote:function(e,r){e.text+=r.substr(1)},Insert:function(e,r,t){e.text+=t},Accent:function(e,r,t){var n=e.ParseArg(r),i=e.create("token","mo",{},t);e.addAttributes(i),e.Push(e.create("node","mover",[n,i]))},Emph:function(e,r){var t=e.stack.env.mathvariant==="-tex-mathit"?"normal":"-tex-mathit";e.Push(e.ParseTextArg(r,{mathvariant:t}))},SetFont:function(e,r,t){e.saveText(),e.stack.env.mathvariant=t},SetSize:function(e,r,t){e.saveText(),e.stack.env.mathsize=t},CheckAutoload:function(e,r){var t=e.configuration.packageData.get("autoload"),n=e.texParser;r=r.slice(1);var i=n.lookup("macro",r);if(!i||t&&i._func===t.Autoload){if(n.parse("macro",[n,r]),!i)return;(0,TB.retryAfter)(Promise.resolve())}n.parse("macro",[e,r])},Macro:X2.default.Macro,Spacer:X2.default.Spacer,Hskip:X2.default.Hskip,rule:X2.default.rule,Rule:X2.default.Rule,HandleRef:X2.default.HandleRef};var v3={},QB=_&&_.__extends||function(){var e=function(r,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),pd=_&&_.__values||function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},dB=_&&_.__read||function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],o;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(T){o={error:T}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return a},fB=_&&_.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))},l5=_&&_.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(v3,"__esModule",{value:!0});v3.TextParser=void 0;var hB=l5(bt()),gd=l5(Ve),pB=l5(qe()),gB=he,md=l5(ze),vd=fe,mB=function(e){QB(r,e);function r(t,n,i,a){var o=e.call(this,t,n,i)||this;return o.level=a,o}return Object.defineProperty(r.prototype,"texParser",{get:function(){return this.configuration.packageData.get("textmacros").texParser},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tags",{get:function(){return this.texParser.tags},enumerable:!1,configurable:!0}),r.prototype.mml=function(){return this.level!=null?this.create("node","mstyle",this.nodes,{displaystyle:!1,scriptlevel:this.level}):t
|
|||
|
|
`.repeat(c)||" "),c=-1,T.push(Q))}return T.join("")}function ZL(e,r,t){return e.type==="element"?aF(e,r,t):e.type==="text"?t.whitespace==="normal"?XL(e,t):oF(e):[]}function aF(e,r,t){const n=KL(e,t),i=e.children||[];let a=-1,o=[];if(nF(e))return o;let T,c;for(xl(e)||Hd(e)&&Sd(r,e,Hd)?c=`
|
|||
|
|
`:rF(e)?(T=2,c=2):qL(e)&&(T=1,c=1);++a<i.length;)o=o.concat(ZL(i[a],e,{whitespace:n,breakBefore:a?void 0:T,breakAfter:a<i.length-1?xl(i[a+1]):c}));return wd(e)&&Sd(r,e,wd)&&o.push(" "),T&&o.unshift(T),c&&o.push(c),o}function XL(e,r){const t=String(e.value),n=[],i=[];let a=0;for(;a<=t.length;){_d.lastIndex=a;const c=_d.exec(t),Q=c&&"index"in c?c.index:t.length;n.push(sF(t.slice(a,Q).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),a===0?r.breakBefore:!0,Q===t.length?r.breakAfter:!0)),a=Q+1}let o=-1,T;for(;++o<n.length;)n[o].charCodeAt(n[o].length-1)===8203||o<n.length-1&&n[o+1].charCodeAt(0)===8203?(i.push(n[o]),T=void 0):n[o]?(typeof T=="number"&&i.push(T),i.push(n[o]),T=0):(o===0||o===n.length-1)&&i.push(0);return i}function oF(e){return[String(e.value)]}function sF(e,r,t){const n=[];let i=0,a;for(;i<e.length;){Ad.lastIndex=i;const o=Ad.exec(e);a=o?o.index:e.length,!i&&!a&&o&&!r&&n.push(""),i!==a&&n.push(e.slice(i,a)),i=o?a+o[0].length:a}return i!==a&&!t&&n.push(""),n.join(" ")}function KL(e,r){if(e.type==="element"){const t=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return t.wrap?"pre-wrap":"pre";case"td":case"th":return t.noWrap?"nowrap":r.whitespace;case"textarea":return"pre-wrap"}}return r.whitespace}function lF(e){return!!(e.properties||{}).hidden}function uF(e){return e.tagName==="dialog"&&!(e.properties||{}).open}var X9={},c5={},T5={},a4=_&&_.__values||function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(T5,"__esModule",{value:!0});T5.AbstractDOMAdaptor=void 0;var cF=function(){function e(r){r===void 0&&(r=null),this.document=r}return e.prototype.node=function(r,t,n,i){var a,o;t===void 0&&(t={}),n===void 0&&(n=[]);var T=this.create(r,i);this.setAttributes(T,t);try{for(var c=a4(n),Q=c.next();!Q.done;Q=c.next()){var s=Q.value;this.append(T,s)}}catch(l){a={error:l}}finally{try{Q&&!Q.done&&(o=c.return)&&o.call(c)}finally{if(a)throw a.error}}return T},e.prototype.setAttributes=function(r,t){var n,i,a,o,T,c;if(t.style&&typeof t.style!="string")try{for(var Q=a4(Object.keys(t.style)),s=Q.next();!s.done;s=Q.next()){var l=s.value;this.setStyle(r,l.replace(/-([a-z])/g,function(p,g){return g.toUpperCase()}),t.style[l])}}catch(p){n={error:p}}finally{try{s&&!s.done&&(i=Q.return)&&i.call(Q)}finally{if(n)throw n.error}}if(t.properties)try{for(var u=a4(Object.keys(t.properties)),d=u.next();!d.done;d=u.next()){var l=d.value;r[l]=t.properties[l]}}catch(p){a={error:p}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(a)throw a.error}}try{for(var f=a4(Object.keys(t)),h=f.next();!h.done;h=f.next()){var l=h.value;(l!=="style"||typeof t.style=="string")&&l!=="properties"&&this.setAttribute(r,l,t[l])}}catch(p){T={error:p}}finally{try{h&&!h.done&&(c=f.return)&&c.call(f)}finally{if(T)throw T.error}}},e.prototype.replace=function(r,t){return this.insert(r,t),this.remove(t),t},e.prototype.childNode=function(r,t){return this.childNodes(r)[t]},e.prototype.allClasses=function(r){var t=this.getAttribute(r,"class");return t?t.replace(/ +/g," ").replace(/^ /,"").replace(/ $/,"").split(/ /):[]},e}();T5.AbstractDOMAdaptor=cF;var TF=_&&_.__extends||function(){var e=function(r,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Cd=_&&_.__values||function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EF(e){return yF(e)||LF(e)||bF(e)||xF()}function Md(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function rr(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Md(Object(t),!0).forEach(function(n){Mv(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Md(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function SF(e){var r=e.length;if(r===0||r===1)return e;if(r===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(r===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(r>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".conc
|
|||
|
|
`))})}function kF(e){var r=e.codeString,t=e.codeStyle,n=e.containerStyle,i=n===void 0?{float:"left",paddingRight:"10px"}:n,a=e.numberStyle,o=a===void 0?{}:a,T=e.startingLineNumber;return Et.createElement("code",{style:Object.assign({},t,i)},DF({lines:r.replace(/\n$/,"").split(`
|
|||
|
|
`),style:o,startingLineNumber:T}))}function RF(e){return"".concat(e.toString().length,".25em")}function tb(e,r){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:r},children:[{type:"text",value:e}]}}function rb(e,r,t){var n={display:"inline-block",minWidth:RF(t),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof e=="function"?e(r):e,a=T1(T1({},n),i);return a}function Q4(e){var r=e.children,t=e.lineNumber,n=e.lineNumberStyle,i=e.largestLineNumber,a=e.showInlineLineNumbers,o=e.lineProps,T=o===void 0?{}:o,c=e.className,Q=c===void 0?[]:c,s=e.showLineNumbers,l=e.wrapLongLines,u=typeof T=="function"?T(t):T;if(u.className=Q,t&&a){var d=rb(n,t,i);r.unshift(tb(t,d))}return l&s&&(u.style=T1(T1({},u.style),{},{display:"flex"})),{type:"element",tagName:"span",properties:u,children:r}}function nb(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=0;n<e.length;n++){var i=e[n];if(i.type==="text")t.push(Q4({children:[i],className:EF(new Set(r))}));else if(i.children){var a=r.concat(i.properties.className);nb(i.children,a).forEach(function(o){return t.push(o)})}}return t}function IF(e,r,t,n,i,a,o,T,c){var Q,s=nb(e.value),l=[],u=-1,d=0;function f(b,v){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Q4({children:b,lineNumber:v,lineNumberStyle:T,largestLineNumber:o,showInlineLineNumbers:i,lineProps:t,className:x,showLineNumbers:n,wrapLongLines:c})}function h(b,v){if(n&&v&&i){var x=rb(T,v,o);b.unshift(tb(v,x))}return b}function p(b,v){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return r||x.length>0?f(b,v,x):h(b,v)}for(var g=function(){var v=s[d],x=v.children[0].value,S=OF(x);if(S){var E=x.split(`
|
|||
|
|
`);E.forEach(function(M,w){var H=n&&l.length+a,C={type:"text",value:"".concat(M,`
|
|||
|
|
`)};if(w===0){var A=s.slice(u+1,d).concat(Q4({children:[C],className:v.properties.className})),O=p(A,H);l.push(O)}else if(w===E.length-1){var D=s[d+1]&&s[d+1].children&&s[d+1].children[0],I={type:"text",value:"".concat(M)};if(D){var N=Q4({children:[I],className:v.properties.className});s.splice(d+1,0,N)}else{var V=[I],k=p(V,H,v.properties.className);l.push(k)}}else{var P=[C],G=p(P,H,v.properties.className);l.push(G)}}),u=d}d++};d<s.length;)g();if(u!==s.length-1){var m=s.slice(u+1,s.length);if(m&&m.length){var y=n&&l.length+a,L=p(m,y);l.push(L)}}return r?l:(Q=[]).concat.apply(Q,l)}function NF(e){var r=e.rows,t=e.stylesheet,n=e.useInlineStyles;return r.map(function(i,a){return eb({node:i,stylesheet:t,useInlineStyles:n,key:"code-segement".concat(a)})})}function ib(e){return e&&typeof e.highlightAuto<"u"}function VF(e){var r=e.astGenerator,t=e.language,n=e.code,i=e.defaultCodeValue;if(ib(r)){var a=HF(r,t);return t==="text"?{value:i,language:"text"}:a?r.highlight(t,n):r.highlightAuto(n)}try{return t&&t!=="text"?{value:r.highlight(n,t)}:{value:i}}catch{return{value:i}}}function PF(e,r){return function(n){var i=n.language,a=n.children,o=n.style,T=o===void 0?r:o,c=n.customStyle,Q=c===void 0?{}:c,s=n.codeTagProps,l=s===void 0?{className:i?"language-".concat(i):void 0,style:T1(T1({},T['code[class*="language-"]']),T['code[class*="language-'.concat(i,'"]')])}:s,u=n.useInlineStyles,d=u===void 0?!0:u,f=n.showLineNumbers,h=f===void 0?!1:f,p=n.showInlineLineNumbers,g=p===void 0?!0:p,m=n.startingLineNumber,y=m===void 0?1:m,L=n.lineNumberContainerStyle,b=n.lineNumberStyle,v=b===void 0?{}:b,x=n.wrapLines,S=n.wrapLongLines,E=S===void 0?!1:S,M=n.lineProps,w=M===void 0?{}:M,H=n.renderer,C=n.PreTag,A=C===void 0?"pre":C,O=n.CodeTag,D=O===void 0?"code":O,I=n.code,N=I===void 0?(Array.isArray(a)?a[0]:a)||"":I,V=n.astGenerator,k=vF(n,CF);V=V||e;var P=h?Et.createElement(kF,{containerStyle:L,codeStyle:l.style||{},numberStyle:v,startingLineNumber:y,codeString:N}):null,G=T.hljs||T['pre[class*="language-"]']||{backgroundColor:"#fff"},R=ib(V)?"hljs":"prismjs",F=d?Object.assign({},k,{style:Object.assign({},G,Q)}):Object.assign({},k,{className:k.className?"".concat(R," ").concat(k.className):R,style:Object.assign({},Q)});if(E?l.style=T1(T1({},l.style),{},{whiteSpace:"pre-wrap"}):l.style=T1(T1({},l.style),{},{whiteSpace:"pre"}),!V)return Et.createElement(A,F,P,Et.createElement(D,l,N));(x===void 0&&H||E)&&(x=!0),H=H||NF;var j=[{type:"text",value:N}],z=VF({astGenerator:V,language:i,code:N,defaultCodeValue:j});z.language===null&&(z.value=j);var U=z.value.length+y,W=IF(z,x,w,h,g,y,U,v,E);return Et.createElement(A,F,Et.createElement(D,l,!g&&P,H({rows:W,stylesheet:T,useInlineStyles:d})))}}const BF="modulepreload",FF=function(e){return"/"+e},kd={},eK=function(r,t,n){if(!t||t.length===0)return r();const i=document.getElementsByTagName("link");return Promise.all(t.map(a=>{if(a=FF(a),a in kd)return;kd[a]=!0;const o=a.endsWith(".css"),T=o?'[rel="stylesheet"]':"";if(!!n)for(let s=i.length-1;s>=0;s--){const l=i[s];if(l.href===a&&(!o||l.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${T}`))return;const Q=document.createElement("link");if(Q.rel=o?"stylesheet":BF,o||(Q.as="script",Q.crossOrigin=""),Q.href=a,document.head.appendChild(Q),o)return new Promise((s,l)=>{Q.addEventListener("load",s),Q.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>r()).catch(a=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=a,window.dispatchEvent(o),!o.defaultPrevented)throw a})};function Rd(e,r,t,n,i,a,o){try{var T=e[a](o),c=T.value}catch(Q){t(Q);return}T.done?r(c):Promise.resolve(c).then(n,i)}function tK(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function o(c){Rd(a,n,i,o,T,"next",c)}function T(c){Rd(a,n,i,o,T,"throw",c)}o(void 0)})}}function rK(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Id(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writ
|
|||
|
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|||
|
|
*
|
|||
|
|
* @license MIT <https://opensource.org/licenses/MIT>
|
|||
|
|
* @author Lea Verou <https://lea.verou.me>
|
|||
|
|
* @namespace
|
|||
|
|
* @public
|
|||
|
|
*/var t=function(n){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,a=0,o={},T={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function m(y){return y instanceof c?new c(y.type,m(y.content),y.alias):Array.isArray(y)?y.map(m):y.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(m){return Object.prototype.toString.call(m).slice(8,-1)},objId:function(m){return m.__id||Object.defineProperty(m,"__id",{value:++a}),m.__id},clone:function m(y,L){L=L||{};var b,v;switch(T.util.type(y)){case"Object":if(v=T.util.objId(y),L[v])return L[v];b={},L[v]=b;for(var x in y)y.hasOwnProperty(x)&&(b[x]=m(y[x],L));return b;case"Array":return v=T.util.objId(y),L[v]?L[v]:(b=[],L[v]=b,y.forEach(function(S,E){b[E]=m(S,L)}),b);default:return y}},getLanguage:function(m){for(;m;){var y=i.exec(m.className);if(y)return y[1].toLowerCase();m=m.parentElement}return"none"},setLanguage:function(m,y){m.className=m.className.replace(RegExp(i,"gi"),""),m.classList.add("language-"+y)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(b){var m=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(m){var y=document.getElementsByTagName("script");for(var L in y)if(y[L].src==m)return y[L]}return null}},isActive:function(m,y,L){for(var b="no-"+y;m;){var v=m.classList;if(v.contains(y))return!0;if(v.contains(b))return!1;m=m.parentElement}return!!L}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(m,y){var L=T.util.clone(T.languages[m]);for(var b in y)L[b]=y[b];return L},insertBefore:function(m,y,L,b){b=b||T.languages;var v=b[m],x={};for(var S in v)if(v.hasOwnProperty(S)){if(S==y)for(var E in L)L.hasOwnProperty(E)&&(x[E]=L[E]);L.hasOwnProperty(S)||(x[S]=v[S])}var M=b[m];return b[m]=x,T.languages.DFS(T.languages,function(w,H){H===M&&w!=m&&(this[w]=x)}),x},DFS:function m(y,L,b,v){v=v||{};var x=T.util.objId;for(var S in y)if(y.hasOwnProperty(S)){L.call(y,S,y[S],b||S);var E=y[S],M=T.util.type(E);M==="Object"&&!v[x(E)]?(v[x(E)]=!0,m(E,L,null,v)):M==="Array"&&!v[x(E)]&&(v[x(E)]=!0,m(E,L,S,v))}}},plugins:{},highlightAll:function(m,y){T.highlightAllUnder(document,m,y)},highlightAllUnder:function(m,y,L){var b={callback:L,container:m,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};T.hooks.run("before-highlightall",b),b.elements=Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)),T.hooks.run("before-all-elements-highlight",b);for(var v=0,x;x=b.elements[v++];)T.highlightElement(x,y===!0,b.callback)},highlightElement:function(m,y,L){var b=T.util.getLanguage(m),v=T.languages[b];T.util.setLanguage(m,b);var x=m.parentElement;x&&x.nodeName.toLowerCase()==="pre"&&T.util.setLanguage(x,b);var S=m.textContent,E={element:m,language:b,grammar:v,code:S};function M(H){E.highlightedCode=H,T.hooks.run("before-insert",E),E.element.innerHTML=E.highlightedCode,T.hooks.run("after-highlight",E),T.hooks.run("complete",E),L&&L.call(E.element)}if(T.hooks.run("before-sanity-check",E),x=E.element.parentElement,x&&x.nodeName.toLowerCase()==="pre"&&!x.hasAttribute("tabindex")&&x.setAttribute("tabindex","0"),!E.code){T.hooks.run("complete",E),L&&L.call(E.element);return}if(T.hooks.run("before-highlight",E),!E.grammar){M(T.util.encode(E.code));return}if(y&&n.Worker){var w=new Worker(T.filename);w.onmessage=function(H){M(H.data)},w.postMessage(JSON.stringify({language:E.language,code:E.code,immediateClose:!0}))}else M(T.highlight(E.code,E.grammar,E.language))},highlight:function(m,y,L){var b={code:m,grammar:y,language:L};if(T.hooks.run("before-tokenize",b),!b.grammar)throw new Error('The language "'+b.language+'" has no grammar.');return b.tokens=T.tokenize(b.code,b.grammar),T.hooks.run("after-tokenize",b),c.stringify(T.util.encode(b.tokens),b.language)},tokenize:function(m,y){var L=y.rest;if(L){for(var b in L)y[b]=L[b];delete y.rest}var v=new l;return u(v,v.head,m),s(m,v,y,v.head,0),f(v)},hooks:{all:{},add:function
|
|||
|
|
?|
|
|||
|
|
|(?![\\s\\S])))+`,"m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(i)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(r)}return No}var Vo,sh;function Ot(){if(sh)return Vo;sh=1,Vo=e,e.displayName="markupTemplating",e.aliases=[];function e(r){(function(t){function n(i,a){return"___"+i.toUpperCase()+a+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(i,a,o,T){if(i.language===a){var c=i.tokenStack=[];i.code=i.code.replace(o,function(Q){if(typeof T=="function"&&!T(Q))return Q;for(var s=c.length,l;i.code.indexOf(l=n(a,s))!==-1;)++s;return c[s]=Q,l}),i.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(i,a){if(i.language!==a||!i.tokenStack)return;i.grammar=t.languages[a];var o=0,T=Object.keys(i.tokenStack);function c(Q){for(var s=0;s<Q.length&&!(o>=T.length);s++){var l=Q[s];if(typeof l=="string"||l.content&&typeof l.content=="string"){var u=T[o],d=i.tokenStack[u],f=typeof l=="string"?l:l.content,h=n(a,u),p=f.indexOf(h);if(p>-1){++o;var g=f.substring(0,p),m=new t.Token(a,t.tokenize(d,i.grammar),"language-"+a,d),y=f.substring(p+h.length),L=[];g&&L.push.apply(L,c([g])),L.push(m),y&&L.push.apply(L,c([y])),typeof l=="string"?Q.splice.apply(Q,[s,1].concat(L)):l.content=L}}else l.content&&c(l.content)}return Q}c(i.tokens)}}})})(r)}return Vo}var Po,lh;function sz(){if(lh)return Po;lh=1;var e=Ot();Po=r,r.displayName="django",r.aliases=["jinja2"];function r(t){t.register(e),function(n){n.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var i=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,a=n.languages["markup-templating"];n.hooks.add("before-tokenize",function(o){a.buildPlaceholders(o,"django",i)}),n.hooks.add("after-tokenize",function(o){a.tokenizePlaceholders(o,"django")}),n.languages.jinja2=n.languages.django,n.hooks.add("before-tokenize",function(o){a.buildPlaceholders(o,"jinja2",i)}),n.hooks.add("after-tokenize",function(o){a.tokenizePlaceholders(o,"jinja2")})}(t)}return Po}var Bo,uh;function lz(){if(uh)return Bo;uh=1,Bo=e,e.displayName="dnsZoneFile",e.aliases=[];function e(r){r.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},r.languages["dns-zone"]=r.languages["dns-zone-file"]}return Bo}var Fo,ch;function uz(){if(ch)return Fo;ch=1,Fo=e,e.displayName="docker",e.aliases=["dockerfile"];function e(r){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,i=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return n}),a=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,o=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return a}),T={pattern:RegExp(a),
|
|||
|
|
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+i+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+i),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(r)}return Y7}var J7,bm;function vu(){if(bm)return J7;bm=1,J7=e,e.displayName="t4Templating",e.aliases=[];function e(r){(function(t){function n(a,o,T){return{pattern:RegExp("<#"+a+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+a+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:o,alias:T}}}}function i(a){var o=t.languages[a],T="language-"+a;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",o,T),"class-feature":n("\\+",o,T),standard:n("",o,T)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:i})})(r)}return J7}var e8,xm;function TX(){if(xm)return e8;xm=1;var e=vu(),r=d5();e8=t,t.displayName="t4Cs",t.aliases=[];function t(n){n.register(e),n.register(r),n.languages.t4=n.languages["t4-cs"]=n.languages["t4-templating"].createT4("csharp")}return e8}var t8,Em;function Ob(){if(Em)return t8;Em=1;var e=wb();t8=r,r.displayName="vbnet",r.aliases=[];function r(t){t.register(e),t.languages.vbnet=t.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return t8}var r8,Sm;function QX(){if(Sm)return r8;Sm=1;var e=vu(),r=Ob();r8=t,t.displayName="t4Vb",t.aliases=[];function t(n){n.register(e),n.register(r),n.languages["t4-vb"]=n.languages["t4-templating"].createT4("vbnet")}return r8}var n8,_m;function Db(){if(_m)return n8;_m=1,n8=e,e.displayName="yaml",e.aliases=["yml"];function e(r){(function(t){var n=/[*&][^\s[\]{},]+/,i=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,a="(?:"+i.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+i.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),T=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function c(Q,s){s=(s||"").replace(/m/g,"")+"m";var l=/([
|