CaiYuanYiTiHua/lib/vform/designer.umd.js

1653 lines
1.4 MiB
JavaScript
Raw Normal View History

2024-05-11 09:53:05 +08:00
var Ae=Object.defineProperty,Re=Object.defineProperties;var Fe=Object.getOwnPropertyDescriptors;var Me=Object.getOwnPropertySymbols;var Ne=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable;var Le=(t,d,e)=>d in t?Ae(t,d,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[d]=e,Se=(t,d)=>{for(var e in d||(d={}))Ne.call(d,e)&&Le(t,e,d[e]);if(Me)for(var e of Me(d))Ie.call(d,e)&&Le(t,e,d[e]);return t},ke=(t,d)=>Re(t,Fe(d));(function(t,d){typeof exports=="object"&&typeof module!="undefined"?module.exports=d(require("vue")):typeof define=="function"&&define.amd?define(["vue"],d):(t=typeof globalThis!="undefined"?globalThis:t||self,t.VFormDesigner=d(t.Vue))})(this,function(require$$0$1){"use strict";function _interopDefaultLegacy(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var require$$0__default=_interopDefaultLegacy(require$$0$1),commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var axios$2={exports:{}},bind$2=function(d,e){return function(){for(var m=new Array(arguments.length),g=0;g<m.length;g++)m[g]=arguments[g];return d.apply(e,m)}},bind$1=bind$2,toString=Object.prototype.toString;function isArray(t){return toString.call(t)==="[object Array]"}function isUndefined(t){return typeof t=="undefined"}function isBuffer(t){return t!==null&&!isUndefined(t)&&t.constructor!==null&&!isUndefined(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function isArrayBuffer(t){return toString.call(t)==="[object ArrayBuffer]"}function isFormData(t){return typeof FormData!="undefined"&&t instanceof FormData}function isArrayBufferView(t){var d;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?d=ArrayBuffer.isView(t):d=t&&t.buffer&&t.buffer instanceof ArrayBuffer,d}function isString(t){return typeof t=="string"}function isNumber(t){return typeof t=="number"}function isObject(t){return t!==null&&typeof t=="object"}function isPlainObject(t){if(toString.call(t)!=="[object Object]")return!1;var d=Object.getPrototypeOf(t);return d===null||d===Object.prototype}function isDate(t){return toString.call(t)==="[object Date]"}function isFile(t){return toString.call(t)==="[object File]"}function isBlob(t){return toString.call(t)==="[object Blob]"}function isFunction(t){return toString.call(t)==="[object Function]"}function isStream(t){return isObject(t)&&isFunction(t.pipe)}function isURLSearchParams(t){return typeof URLSearchParams!="undefined"&&t instanceof URLSearchParams}function trim(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function forEach(t,d){if(!(t===null||typeof t=="undefined"))if(typeof t!="object"&&(t=[t]),isArray(t))for(var e=0,h=t.length;e<h;e++)d.call(null,t[e],e,t);else for(var m in t)Object.prototype.hasOwnProperty.call(t,m)&&d.call(null,t[m],m,t)}function merge(){var t={};function d(m,g){isPlainObject(t[g])&&isPlainObject(m)?t[g]=merge(t[g],m):isPlainObject(m)?t[g]=merge({},m):isArray(m)?t[g]=m.slice():t[g]=m}for(var e=0,h=arguments.length;e<h;e++)forEach(arguments[e],d);return t}function extend$1(t,d,e){return forEach(d,function(m,g){e&&typeof m=="function"?t[g]=bind$1(m,e):t[g]=m}),t}function stripBOM(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}var utils$d={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isObject,isPlainObject,isUndefined,isDate,isFile,isBlob,isFunction,isStream,isURLSearchParams,isStandardBrowserEnv,forEach,merge,extend:extend$1,trim,stripBOM},utils$c=utils$d;function encode(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildUR
`),function(u){if(g=u.indexOf(":"),h=utils$8.trim(u.substr(0,g)).toLowerCase(),m=utils$8.trim(u.substr(g+1)),h){if(e[h]&&ignoreDuplicateOf.indexOf(h)>=0)return;h==="set-cookie"?e[h]=(e[h]?e[h]:[]).concat([m]):e[h]=e[h]?e[h]+", "+m:m}}),e},utils$7=utils$d,isURLSameOrigin$1=utils$7.isStandardBrowserEnv()?function(){var d=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a"),h;function m(g){var a=g;return d&&(e.setAttribute("href",a),a=e.href),e.setAttribute("href",a),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:e.pathname.charAt(0)==="/"?e.pathname:"/"+e.pathname}}return h=m(window.location.href),function(a){var u=utils$7.isString(a)?m(a):a;return u.protocol===h.protocol&&u.host===h.host}}():function(){return function(){return!0}}();function Cancel$3(t){this.message=t}Cancel$3.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Cancel$3.prototype.__CANCEL__=!0;var Cancel_1=Cancel$3,utils$6=utils$d,settle=settle$1,cookies=cookies$1,buildURL$1=buildURL$2,buildFullPath=buildFullPath$1,parseHeaders=parseHeaders$1,isURLSameOrigin=isURLSameOrigin$1,createError=createError$2,defaults$5=defaults_1,Cancel$2=Cancel_1,xhr=function(d){return new Promise(function(h,m){var g=d.data,a=d.headers,u=d.responseType,r;function f(){d.cancelToken&&d.cancelToken.unsubscribe(r),d.signal&&d.signal.removeEventListener("abort",r)}utils$6.isFormData(g)&&delete a["Content-Type"];var l=new XMLHttpRequest;if(d.auth){var n=d.auth.username||"",i=d.auth.password?unescape(encodeURIComponent(d.auth.password)):"";a.Authorization="Basic "+btoa(n+":"+i)}var o=buildFullPath(d.baseURL,d.url);l.open(d.method.toUpperCase(),buildURL$1(o,d.params,d.paramsSerializer),!0),l.timeout=d.timeout;function s(){if(!!l){var p="getAllResponseHeaders"in l?parseHeaders(l.getAllResponseHeaders()):null,$=!u||u==="text"||u==="json"?l.responseText:l.response,v={data:$,status:l.status,statusText:l.statusText,headers:p,config:d,request:l};settle(function(y){h(y),f()},function(y){m(y),f()},v),l=null}}if("onloadend"in l?l.onloadend=s:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(s)},l.onabort=function(){!l||(m(createError("Request aborted",d,"ECONNABORTED",l)),l=null)},l.onerror=function(){m(createError("Network Error",d,null,l)),l=null},l.ontimeout=function(){var $=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",v=d.transitional||defaults$5.transitional;d.timeoutErrorMessage&&($=d.timeoutErrorMessage),m(createError($,d,v.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",l)),l=null},utils$6.isStandardBrowserEnv()){var c=(d.withCredentials||isURLSameOrigin(o))&&d.xsrfCookieName?cookies.read(d.xsrfCookieName):void 0;c&&(a[d.xsrfHeaderName]=c)}"setRequestHeader"in l&&utils$6.forEach(a,function($,v){typeof g=="undefined"&&v.toLowerCase()==="content-type"?delete a[v]:l.setRequestHeader(v,$)}),utils$6.isUndefined(d.withCredentials)||(l.withCredentials=!!d.withCredentials),u&&u!=="json"&&(l.responseType=d.responseType),typeof d.onDownloadProgress=="function"&&l.addEventListener("progress",d.onDownloadProgress),typeof d.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",d.onUploadProgress),(d.cancelToken||d.signal)&&(r=function(p){!l||(m(!p||p&&p.type?new Cancel$2("canceled"):p),l.abort(),l=null)},d.cancelToken&&d.cancelToken.subscribe(r),d.signal&&(d.signal.aborted?r():d.signal.addEventListener("abort",r))),g||(g=null),l.send(g)})},utils$5=utils$d,normalizeHeaderName=normalizeHeaderName$1,enhanceError=enhanceError$2,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(t,d){!utils$5.isUndefined(t)&&utils$5.isUndefined(t["Content-Type"])&&(t["Content-Type"]=d)}function getDefaultAdapter(){var t;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object
* clipboard.js v2.0.11
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/(function(t,d){(function(h,m){t.exports=m()})(commonjsGlobal,function(){return function(){var e={686:function(g,a,u){u.d(a,{default:function(){return R}});var r=u(279),f=u.n(r),l=u(370),n=u.n(l),i=u(817),o=u.n(i);function s(B){try{return document.execCommand(B)}catch{return!1}}var c=function(N){var P=o()(N);return s("cut"),P},p=c;function $(B){var N=document.documentElement.getAttribute("dir")==="rtl",P=document.createElement("textarea");P.style.fontSize="12pt",P.style.border="0",P.style.padding="0",P.style.margin="0",P.style.position="absolute",P.style[N?"right":"left"]="-9999px";var j=window.pageYOffset||document.documentElement.scrollTop;return P.style.top="".concat(j,"px"),P.setAttribute("readonly",""),P.value=B,P}var v=function(N,P){var j=$(N);P.container.appendChild(j);var D=o()(j);return s("copy"),j.remove(),D},C=function(N){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},j="";return typeof N=="string"?j=v(N,P):N instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(N==null?void 0:N.type)?j=v(N.value,P):(j=o()(N),s("copy")),j},y=C;function _(B){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(P){return typeof P}:_=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},_(B)}var b=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=N.action,j=P===void 0?"copy":P,D=N.container,W=N.target,H=N.text;if(j!=="copy"&&j!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(W!==void 0)if(W&&_(W)==="object"&&W.nodeType===1){if(j==="copy"&&W.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(j==="cut"&&(W.hasAttribute("readonly")||W.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(H)return y(H,{container:D});if(W)return j==="cut"?p(W):y(W,{container:D})},E=b;function x(B){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(P){return typeof P}:x=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},x(B)}function O(B,N){if(!(B instanceof N))throw new TypeError("Cannot call a class as a function")}function M(B,N){for(var P=0;P<N.length;P++){var j=N[P];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(B,j.key,j)}}function k(B,N,P){return N&&M(B.prototype,N),P&&M(B,P),B}function T(B,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(N&&N.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),N&&S(B,N)}function S(B,N){return S=Object.setPrototypeOf||function(j,D){return j.__proto__=D,j},S(B,N)}function w(B){var N=A();return function(){var j=I(B),D;if(N){var W=I(this).constructor;D=Reflect.construct(j,arguments,W)}else D=j.apply(this,arguments);return L(this,D)}}function L(B,N){return N&&(x(N)==="object"||typeof N=="function")?N:q(B)}function q(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function A(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function I(B){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)},I(B)}function F(B,N){var P="data-clipboard-".concat(B);if(!!N.hasAttribute(P))return N.getAttribute(P)}var V=function(B){T(P,B);var N=w(P);function P(j,D){var W;return O(this,P),W=N.call(this),W.resolveOptions(D),W.listenClick(j),W}return k(P,[{key:"resolveOptions",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeo
* Quill Editor v1.3.7
* https://quilljs.com/
* Copyright (c) 2014, Jason Chen
* Copyright (c) 2013, salesforce.com
*/(function(t,d){(function(h,m){t.exports=m()})(typeof self!="undefined"?self:commonjsGlobal,function(){return function(e){var h={};function m(g){if(h[g])return h[g].exports;var a=h[g]={i:g,l:!1,exports:{}};return e[g].call(a.exports,a,a.exports,m),a.l=!0,a.exports}return m.m=e,m.c=h,m.d=function(g,a,u){m.o(g,a)||Object.defineProperty(g,a,{configurable:!1,enumerable:!0,get:u})},m.n=function(g){var a=g&&g.__esModule?function(){return g.default}:function(){return g};return m.d(a,"a",a),a},m.o=function(g,a){return Object.prototype.hasOwnProperty.call(g,a)},m.p="",m(m.s=109)}([function(e,h,m){Object.defineProperty(h,"__esModule",{value:!0});var g=m(17),a=m(18),u=m(19),r=m(45),f=m(46),l=m(47),n=m(48),i=m(49),o=m(12),s=m(32),c=m(33),p=m(31),$=m(1),v={Scope:$.Scope,create:$.create,find:$.find,query:$.query,register:$.register,Container:g.default,Format:a.default,Leaf:u.default,Embed:n.default,Scroll:r.default,Block:l.default,Inline:f.default,Text:i.default,Attributor:{Attribute:o.default,Class:s.default,Style:c.default,Store:p.default}};h.default=v},function(e,h,m){var g=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,v){$.__proto__=v}||function($,v){for(var C in v)v.hasOwnProperty(C)&&($[C]=v[C])};return function($,v){p($,v);function C(){this.constructor=$}$.prototype=v===null?Object.create(v):(C.prototype=v.prototype,new C)}}();Object.defineProperty(h,"__esModule",{value:!0});var a=function(p){g($,p);function $(v){var C=this;return v="[Parchment] "+v,C=p.call(this,v)||this,C.message=v,C.name=C.constructor.name,C}return $}(Error);h.ParchmentError=a;var u={},r={},f={},l={};h.DATA_KEY="__blot";var n;(function(p){p[p.TYPE=3]="TYPE",p[p.LEVEL=12]="LEVEL",p[p.ATTRIBUTE=13]="ATTRIBUTE",p[p.BLOT=14]="BLOT",p[p.INLINE=7]="INLINE",p[p.BLOCK=11]="BLOCK",p[p.BLOCK_BLOT=10]="BLOCK_BLOT",p[p.INLINE_BLOT=6]="INLINE_BLOT",p[p.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",p[p.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",p[p.ANY=15]="ANY"})(n=h.Scope||(h.Scope={}));function i(p,$){var v=s(p);if(v==null)throw new a("Unable to create "+p+" blot");var C=v,y=p instanceof Node||p.nodeType===Node.TEXT_NODE?p:C.create($);return new C(y,$)}h.create=i;function o(p,$){return $===void 0&&($=!1),p==null?null:p[h.DATA_KEY]!=null?p[h.DATA_KEY].blot:$?o(p.parentNode,$):null}h.find=o;function s(p,$){$===void 0&&($=n.ANY);var v;if(typeof p=="string")v=l[p]||u[p];else if(p instanceof Text||p.nodeType===Node.TEXT_NODE)v=l.text;else if(typeof p=="number")p&n.LEVEL&n.BLOCK?v=l.block:p&n.LEVEL&n.INLINE&&(v=l.inline);else if(p instanceof HTMLElement){var C=(p.getAttribute("class")||"").split(/\s+/);for(var y in C)if(v=r[C[y]],v)break;v=v||f[p.tagName]}return v==null?null:$&n.LEVEL&v.scope&&$&n.TYPE&v.scope?v:null}h.query=s;function c(){for(var p=[],$=0;$<arguments.length;$++)p[$]=arguments[$];if(p.length>1)return p.map(function(y){return c(y)});var v=p[0];if(typeof v.blotName!="string"&&typeof v.attrName!="string")throw new a("Invalid definition");if(v.blotName==="abstract")throw new a("Cannot register abstract class");if(l[v.blotName||v.attrName]=v,typeof v.keyName=="string")u[v.keyName]=v;else if(v.className!=null&&(r[v.className]=v),v.tagName!=null){Array.isArray(v.tagName)?v.tagName=v.tagName.map(function(y){return y.toUpperCase()}):v.tagName=v.tagName.toUpperCase();var C=Array.isArray(v.tagName)?v.tagName:[v.tagName];C.forEach(function(y){(f[y]==null||v.className==null)&&(f[y]=v)})}return v}h.register=c},function(e,h,m){var g=m(51),a=m(11),u=m(3),r=m(20),f=String.fromCharCode(0),l=function(n){Array.isArray(n)?this.ops=n:n!=null&&Array.isArray(n.ops)?this.ops=n.ops:this.ops=[]};l.prototype.insert=function(n,i){var o={};return n.length===0?this:(o.insert=n,i!=null&&typeof i=="object"&&Object.keys(i).length>0&&(o.attributes=i),this.push(o))},l.prototype.delete=function(n){return n<=0?this:this.push({delete:n})},l.prototype.retain=function(n,i){if(n<=0)return this;var o={retain:n};return i!=null&&typeof i=="object"&&Object.keys(i).length>0&&(o.attributes=i),this.push(o)},l.prototype.push=function(n){var i=this.ops.length,
`;for(var o=r.iterator(this.ops),s=new l,c=0;o.hasNext();){if(o.peekType()!=="insert")return;var p=o.peek(),$=r.length(p)-o.peekLength(),v=typeof p.insert=="string"?p.insert.indexOf(i,$)-$:-1;if(v<0)s.push(o.next());else if(v>0)s.push(o.next(v));else{if(n(s,o.next(1).attributes||{},c)===!1)return;c+=1,s=new l}}s.length()>0&&n(s,{},c)},l.prototype.transform=function(n,i){if(i=!!i,typeof n=="number")return this.transformPosition(n,i);for(var o=r.iterator(this.ops),s=r.iterator(n.ops),c=new l;o.hasNext()||s.hasNext();)if(o.peekType()==="insert"&&(i||s.peekType()!=="insert"))c.retain(r.length(o.next()));else if(s.peekType()==="insert")c.push(s.next());else{var p=Math.min(o.peekLength(),s.peekLength()),$=o.next(p),v=s.next(p);if($.delete)continue;v.delete?c.push(v):c.retain(p,r.attributes.transform($.attributes,v.attributes,i))}return c.chop()},l.prototype.transformPosition=function(n,i){i=!!i;for(var o=r.iterator(this.ops),s=0;o.hasNext()&&s<=n;){var c=o.peekLength(),p=o.peekType();if(o.next(),p==="delete"){n-=Math.min(c,n-s);continue}else p==="insert"&&(s<n||!i)&&(n+=c);s+=c}return n},e.exports=l},function(e,h){var m=Object.prototype.hasOwnProperty,g=Object.prototype.toString,a=Object.defineProperty,u=Object.getOwnPropertyDescriptor,r=function(o){return typeof Array.isArray=="function"?Array.isArray(o):g.call(o)==="[object Array]"},f=function(o){if(!o||g.call(o)!=="[object Object]")return!1;var s=m.call(o,"constructor"),c=o.constructor&&o.constructor.prototype&&m.call(o.constructor.prototype,"isPrototypeOf");if(o.constructor&&!s&&!c)return!1;var p;for(p in o);return typeof p=="undefined"||m.call(o,p)},l=function(o,s){a&&s.name==="__proto__"?a(o,s.name,{enumerable:!0,configurable:!0,value:s.newValue,writable:!0}):o[s.name]=s.newValue},n=function(o,s){if(s==="__proto__")if(m.call(o,s)){if(u)return u(o,s).value}else return;return o[s]};e.exports=function i(){var o,s,c,p,$,v,C=arguments[0],y=1,_=arguments.length,b=!1;for(typeof C=="boolean"&&(b=C,C=arguments[1]||{},y=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});y<_;++y)if(o=arguments[y],o!=null)for(s in o)c=n(C,s),p=n(o,s),C!==p&&(b&&p&&(f(p)||($=r(p)))?($?($=!1,v=c&&r(c)?c:[]):v=c&&f(c)?c:{},l(C,{name:s,newValue:i(b,v,p)})):typeof p!="undefined"&&l(C,{name:s,newValue:p}));return C}},function(e,h,m){Object.defineProperty(h,"__esModule",{value:!0}),h.default=h.BlockEmbed=h.bubbleFormats=void 0;var g=function(){function k(T,S){for(var w=0;w<S.length;w++){var L=S[w];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(T,L.key,L)}}return function(T,S,w){return S&&k(T.prototype,S),w&&k(T,w),T}}(),a=function k(T,S,w){T===null&&(T=Function.prototype);var L=Object.getOwnPropertyDescriptor(T,S);if(L===void 0){var q=Object.getPrototypeOf(T);return q===null?void 0:k(q,S,w)}else{if("value"in L)return L.value;var A=L.get;return A===void 0?void 0:A.call(w)}},u=m(3),r=C(u),f=m(2),l=C(f),n=m(0),i=C(n),o=m(16),s=C(o),c=m(6),p=C(c),$=m(7),v=C($);function C(k){return k&&k.__esModule?k:{default:k}}function y(k,T){if(!(k instanceof T))throw new TypeError("Cannot call a class as a function")}function _(k,T){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:k}function b(k,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);k.prototype=Object.create(T&&T.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(k,T):k.__proto__=T)}var E=1,x=function(k){b(T,k);function T(){return y(this,T),_(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return g(T,[{key:"attach",value:function(){a(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"attach",this).call(this),this.attributes=new i.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new l.default().insert(this.value(),(0,r.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(w
`)){var A=i.default.create(O.blotName);this.parent.insertBefore(A,w===0?this:this.next),A.insertAt(0,L.slice(0,-1))}else a(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertAt",this).call(this,w,L,q)}}]),T}(i.default.Embed);x.scope=i.default.Scope.BLOCK_BLOT;var O=function(k){b(T,k);function T(S){y(this,T);var w=_(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,S));return w.cache={},w}return g(T,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(i.default.Leaf).reduce(function(w,L){return L.length()===0?w:w.insert(L.value(),M(L))},new l.default).insert(`
`,M(this))),this.cache.delta}},{key:"deleteAt",value:function(w,L){a(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"deleteAt",this).call(this,w,L),this.cache={}}},{key:"formatAt",value:function(w,L,q,A){L<=0||(i.default.query(q,i.default.Scope.BLOCK)?w+L===this.length()&&this.format(q,A):a(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"formatAt",this).call(this,w,Math.min(L,this.length()-w-1),q,A),this.cache={})}},{key:"insertAt",value:function(w,L,q){if(q!=null)return a(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertAt",this).call(this,w,L,q);if(L.length!==0){var A=L.split(`
`),I=A.shift();I.length>0&&(w<this.length()-1||this.children.tail==null?a(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertAt",this).call(this,Math.min(w,this.length()-1),I):this.children.tail.insertAt(this.children.tail.length(),I),this.cache={});var F=this;A.reduce(function(V,R){return F=F.split(V,!0),F.insertAt(0,R),R.length},w+I.length)}}},{key:"insertBefore",value:function(w,L){var q=this.children.head;a(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertBefore",this).call(this,w,L),q instanceof s.default&&q.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=a(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"length",this).call(this)+E),this.cache.length}},{key:"moveChildren",value:function(w,L){a(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"moveChildren",this).call(this,w,L),this.cache={}}},{key:"optimize",value:function(w){a(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"optimize",this).call(this,w),this.cache={}}},{key:"path",value:function(w){return a(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"path",this).call(this,w,!0)}},{key:"removeChild",value:function(w){a(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"removeChild",this).call(this,w),this.cache={}}},{key:"split",value:function(w){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(L&&(w===0||w>=this.length()-E)){var q=this.clone();return w===0?(this.parent.insertBefore(q,this),this):(this.parent.insertBefore(q,this.next),q)}else{var A=a(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"split",this).call(this,w,L);return this.cache={},A}}}]),T}(i.default.Block);O.blotName="block",O.tagName="P",O.defaultChild="break",O.allowedChildren=[p.default,i.default.Embed,v.default];function M(k){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return k==null||(typeof k.formats=="function"&&(T=(0,r.default)(T,k.formats())),k.parent==null||k.parent.blotName=="scroll"||k.parent.statics.scope!==k.statics.scope)?T:M(k.parent,T)}h.bubbleFormats=M,h.BlockEmbed=x,h.default=O},function(e,h,m){Object.defineProperty(h,"__esModule",{value:!0}),h.default=h.overload=h.expandConfig=void 0;var g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},a=function(){function F(V,R){var B=[],N=!0,P=!1,j=void 0;try{for(var D=V[Symbol.iterator](),W;!(N=(W=D.next()).done)&&(B.push(W.value),!(R&&B.length===R));N=!0);}catch(H){P=!0,j=H}finally{try{!N&&D.return&&D.return()}finally{if(P)throw j}}return B}return function(V,R){if(Array.isArray(V))return V;if(Symbol.iterator in Object(V))return F(V,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function F(V,R){for(var B=0;B<R.length;B++){var N=R[B];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(V,N.key,N)}}return function(V,R,B){return R&&F(V.prototype,R),B&&F(V,B),V}}();m(50);var r=m(2),f=M(r),l=m(14),n=M(l),i=m(8),o=M(i),s=m(9),c=M(s),p=m(0),$=M(p),v=m(15),C=M(v),y=m(3),_=M(y),b=m(10),E=M(b),x=m(34),O=M(x);function M(F){return F&&F.__esModule?F:{default:F}}function k(F,V,R){return V in F?Object.defineProperty(F,V,{value:R,enumerable:!0,configurable:!0,writable:!0}):F[V]=R,F}function T(F,V){if(!(F instanceof V))throw new TypeError("Cannot call a class as a function")}var S=(0,E.default)("quill"),w=function(){u(F,null,[{key:"debug",value:function(R){R===!0&&(R="log"),E.default.level(R)}},{key:"find",value:function(R){return R.__quill||$.default.find(R)}},{key:"import",value:function(R){return this.imports[R]==null&&S.error("Cannot import "+R+". Are you sure it was registered?"),this.imports[R]}},{key:"register",value:function(R,B){var N=this,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof R!="string"){var j=R.attrName||R.blotName;typeof j=="string"?this.register("formats/"+j,R,B):Object.keys(R).forE
`&&(B.editor.deleteText(B.getLength()-1,1),D.delete(1));var H=j.compose(D);return H},N)}},{key:"setSelection",value:function(R,B,N){if(R==null)this.selection.setRange(null,B||F.sources.API);else{var P=A(R,B,N),j=a(P,4);R=j[0],B=j[1],N=j[3],this.selection.setRange(new v.Range(R,B),N),N!==o.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(R){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o.default.sources.API,N=new f.default().insert(R);return this.setContents(N,B)}},{key:"update",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o.default.sources.USER,B=this.scroll.update(R);return this.selection.update(R),B}},{key:"updateContents",value:function(R){var B=this,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o.default.sources.API;return q.call(this,function(){return R=new f.default(R),B.editor.applyDelta(R,N)},N,!0)}}]),F}();w.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},w.events=o.default.events,w.sources=o.default.sources,w.version="1.3.7",w.imports={delta:f.default,parchment:$.default,"core/module":c.default,"core/theme":O.default};function L(F,V){if(V=(0,_.default)(!0,{container:F,modules:{clipboard:!0,keyboard:!0,history:!0}},V),!V.theme||V.theme===w.DEFAULTS.theme)V.theme=O.default;else if(V.theme=w.import("themes/"+V.theme),V.theme==null)throw new Error("Invalid theme "+V.theme+". Did you register it?");var R=(0,_.default)(!0,{},V.theme.DEFAULTS);[R,V].forEach(function(P){P.modules=P.modules||{},Object.keys(P.modules).forEach(function(j){P.modules[j]===!0&&(P.modules[j]={})})});var B=Object.keys(R.modules).concat(Object.keys(V.modules)),N=B.reduce(function(P,j){var D=w.import("modules/"+j);return D==null?S.error("Cannot load "+j+" module. Are you sure you registered it?"):P[j]=D.DEFAULTS||{},P},{});return V.modules!=null&&V.modules.toolbar&&V.modules.toolbar.constructor!==Object&&(V.modules.toolbar={container:V.modules.toolbar}),V=(0,_.default)(!0,{},w.DEFAULTS,{modules:N},R,V),["bounds","container","scrollingContainer"].forEach(function(P){typeof V[P]=="string"&&(V[P]=document.querySelector(V[P]))}),V.modules=Object.keys(V.modules).reduce(function(P,j){return V.modules[j]&&(P[j]=V.modules[j]),P},{}),V}function q(F,V,R,B){if(this.options.strict&&!this.isEnabled()&&V===o.default.sources.USER)return new f.default;var N=R==null?null:this.getSelection(),P=this.editor.delta,j=F();if(N!=null&&(R===!0&&(R=N.index),B==null?N=I(N,j,V):B!==0&&(N=I(N,R,B,V)),this.setSelection(N,o.default.sources.SILENT)),j.length()>0){var D,W=[o.default.events.TEXT_CHANGE,j,P,V];if((D=this.emitter).emit.apply(D,[o.default.events.EDITOR_CHANGE].concat(W)),V!==o.default.sources.SILENT){var H;(H=this.emitter).emit.apply(H,W)}}return j}function A(F,V,R,B,N){var P={};return typeof F.index=="number"&&typeof F.length=="number"?typeof V!="number"?(N=B,B=R,R=V,V=F.length,F=F.index):(V=F.length,F=F.index):typeof V!="number"&&(N=B,B=R,R=V,V=0),(typeof R=="undefined"?"undefined":g(R))==="object"?(P=R,N=B):typeof R=="string"&&(B!=null?P[R]=B:N=R),N=N||o.default.sources.API,[F,V,P,N]}function I(F,V,R,B){if(F==null)return null;var N=void 0,P=void 0;if(V instanceof f.default){var j=[F.index,F.index+F.length].map(function(z){return V.transformPosition(z,B!==o.default.sources.USER)}),D=a(j,2);N=D[0],P=D[1]}else{var W=[F.index,F.index+F.length].map(function(z){return z<V||z===V&&B===o.default.sources.USER?z:R>=0?z+R:Math.max(V,z+R)}),H=a(W,2);N=H[0],P=H[1]}return new v.Range(N,P-N)}h.expandConfig=L,h.overload=A,h.default=w},function(e,h,m){Object.defineProperty(h,"__esModule",{value:!0});var g=function(){function p($,v){for(var C=0;C<v.length;C++){var y=v[C];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty($,y.key,y)}}return function($,v,C){return v&&p($.prototype,v),C&&p($,C),$}}(),a=function p($,v,C){$===null&&($=Function.prototype);var y=Object.getOwnPropertyDescriptor($,v);if(y===void 0){var _=Object.getPrototypeOf($);
`)&&(T=T.slice(0,-1)),T.split(`
`).reduce(function(S,w){return S.insert(w).insert(`
`,k.formats())},new f.default)}},{key:"format",value:function(k,T){if(!(k===this.statics.blotName&&T)){var S=this.descendant($.default,this.length()-1),w=g(S,1),L=w[0];L!=null&&L.deleteAt(L.length()-1,1),u(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"format",this).call(this,k,T)}}},{key:"formatAt",value:function(k,T,S,w){if(T!==0&&!(n.default.query(S,n.default.Scope.BLOCK)==null||S===this.statics.blotName&&w===this.statics.formats(this.domNode))){var L=this.newlineIndex(k);if(!(L<0||L>=k+T)){var q=this.newlineIndex(k,!0)+1,A=L-q+1,I=this.isolate(q,A),F=I.next;I.format(S,w),F instanceof O&&F.formatAt(0,k-q+T-A,S,w)}}}},{key:"insertAt",value:function(k,T,S){if(S==null){var w=this.descendant($.default,k),L=g(w,2),q=L[0],A=L[1];q.insertAt(A,T)}}},{key:"length",value:function(){var k=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
`)?k:k+1}},{key:"newlineIndex",value:function(k){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(T)return this.domNode.textContent.slice(0,k).lastIndexOf(`
`);var S=this.domNode.textContent.slice(k).indexOf(`
`);return S>-1?k+S:-1}},{key:"optimize",value:function(k){this.domNode.textContent.endsWith(`
`)||this.appendChild(n.default.create("text",`
`)),u(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,k);var T=this.next;T!=null&&T.prev===this&&T.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===T.statics.formats(T.domNode)&&(T.optimize(k),T.moveChildren(this),T.remove())}},{key:"replace",value:function(k){u(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replace",this).call(this,k),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(T){var S=n.default.find(T);S==null?T.parentNode.removeChild(T):S instanceof n.default.Embed?S.remove():S.unwrap()})}}],[{key:"create",value:function(k){var T=u(O.__proto__||Object.getPrototypeOf(O),"create",this).call(this,k);return T.setAttribute("spellcheck",!1),T}},{key:"formats",value:function(){return!0}}]),O}(o.default);E.blotName="code-block",E.tagName="PRE",E.TAB=" ",h.Code=b,h.default=E},function(e,h,m){Object.defineProperty(h,"__esModule",{value:!0});var g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},a=function(){function F(V,R){var B=[],N=!0,P=!1,j=void 0;try{for(var D=V[Symbol.iterator](),W;!(N=(W=D.next()).done)&&(B.push(W.value),!(R&&B.length===R));N=!0);}catch(H){P=!0,j=H}finally{try{!N&&D.return&&D.return()}finally{if(P)throw j}}return B}return function(V,R){if(Array.isArray(V))return V;if(Symbol.iterator in Object(V))return F(V,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function F(V,R){for(var B=0;B<R.length;B++){var N=R[B];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(V,N.key,N)}}return function(V,R,B){return R&&F(V.prototype,R),B&&F(V,B),V}}(),r=m(2),f=T(r),l=m(20),n=T(l),i=m(0),o=T(i),s=m(13),c=T(s),p=m(24),$=T(p),v=m(4),C=T(v),y=m(16),_=T(y),b=m(21),E=T(b),x=m(11),O=T(x),M=m(3),k=T(M);function T(F){return F&&F.__esModule?F:{default:F}}function S(F,V,R){return V in F?Object.defineProperty(F,V,{value:R,enumerable:!0,configurable:!0,writable:!0}):F[V]=R,F}function w(F,V){if(!(F instanceof V))throw new TypeError("Cannot call a class as a function")}var L=/^[ -~]*$/,q=function(){function F(V){w(this,F),this.scroll=V,this.delta=this.getDelta()}return u(F,[{key:"applyDelta",value:function(R){var B=this,N=!1;this.scroll.update();var P=this.scroll.length();return this.scroll.batchStart(),R=I(R),R.reduce(function(j,D){var W=D.retain||D.delete||D.insert.length||1,H=D.attributes||{};if(D.insert!=null){if(typeof D.insert=="string"){var z=D.insert;z.endsWith(`
`)&&N&&(N=!1,z=z.slice(0,-1)),j>=P&&!z.endsWith(`
`)&&(N=!0),B.scroll.insertAt(j,z);var K=B.scroll.line(j),Z=a(K,2),ie=Z[0],se=Z[1],ue=(0,k.default)({},(0,v.bubbleFormats)(ie));if(ie instanceof C.default){var fe=ie.descendant(o.default.Leaf,se),ye=a(fe,1),_e=ye[0];ue=(0,k.default)(ue,(0,v.bubbleFormats)(_e))}H=n.default.attributes.diff(ue,H)||{}}else if(g(D.insert)==="object"){var J=Object.keys(D.insert)[0];if(J==null)return j;B.scroll.insertAt(j,J,D.insert[J])}P+=W}return Object.keys(H).forEach(function(Q){B.scroll.formatAt(j,W,Q,H[Q])}),j+W},0),R.reduce(function(j,D){return typeof D.delete=="number"?(B.scroll.deleteAt(j,D.delete),j):j+(D.retain||D.insert.length||1)},0),this.scroll.batchEnd(),this.update(R)}},{key:"deleteText",value:function(R,B){return this.scroll.deleteAt(R,B),this.update(new f.default().retain(R).delete(B))}},{key:"formatLine",value:function(R,B){var N=this,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(P).forEach(function(j){if(!(N.scroll.whitelist!=null&&!N.scroll.whitelist[j])){var D=N.scroll.lines(R,Math.max(B,1)),W=B;D.forEach(function(H){var z=H.length();if(!(H instanceof c.default))H.format(j,P[j]);else{var K=R-H.offset(N.scroll),Z=H.newlineIndex(K+W)-K+1;H.formatAt(K,Z,j,P[j])}W-=z})}}),this.scroll.optimize(),this.update(new f.default().retain(R).retain(B,(0,E.default)(P)))}},{key:"formatText",value:function(R,B){var N=this,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(P).forEach(function(j){N.scroll.formatAt(R,B,j,P[j])}),this.update(new f.default().retain(R).retain(B,(0,E.default)(P)))}},{key:"getContents",value:function(R,B){return this.delta.slice(R,R+B)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(R,B){return R.concat(B.delta())},new f.default)}},{key:"getFormat",value:function(R){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,N=[],P=[];B===0?this.scroll.path(R).forEach(function(D){var W=a(D,1),H=W[0];H instanceof C.default?N.push(H):H instanceof o.default.Leaf&&P.push(H)}):(N=this.scroll.lines(R,B),P=this.scroll.descendants(o.default.Leaf,R,B));var j=[N,P].map(function(D){if(D.length===0)return{};for(var W=(0,v.bubbleFormats)(D.shift());Object.keys(W).length>0;){var H=D.shift();if(H==null)return W;W=A((0,v.bubbleFormats)(H),W)}return W});return k.default.apply(k.default,j)}},{key:"getText",value:function(R,B){return this.getContents(R,B).filter(function(N){return typeof N.insert=="string"}).map(function(N){return N.insert}).join("")}},{key:"insertEmbed",value:function(R,B,N){return this.scroll.insertAt(R,B,N),this.update(new f.default().retain(R).insert(S({},B,N)))}},{key:"insertText",value:function(R,B){var N=this,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return B=B.replace(/\r\n/g,`
`).replace(/\r/g,`
`),this.scroll.insertAt(R,B),Object.keys(P).forEach(function(j){N.scroll.formatAt(R,B.length,j,P[j])}),this.update(new f.default().retain(R).insert(B,(0,E.default)(P)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var R=this.scroll.children.head;return R.statics.blotName!==C.default.blotName||R.children.length>1?!1:R.children.head instanceof _.default}},{key:"removeFormat",value:function(R,B){var N=this.getText(R,B),P=this.scroll.line(R+B),j=a(P,2),D=j[0],W=j[1],H=0,z=new f.default;D!=null&&(D instanceof c.default?H=D.newlineIndex(W)-W+1:H=D.length()-W,z=D.delta().slice(W,W+H-1).insert(`
`));var K=this.getContents(R,B+H),Z=K.diff(new f.default().insert(N).concat(z)),ie=new f.default().retain(R).concat(Z);return this.applyDelta(ie)}},{key:"update",value:function(R){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,P=this.delta;if(B.length===1&&B[0].type==="characterData"&&B[0].target.data.match(L)&&o.default.find(B[0].target)){var j=o.default.find(B[0].target),D=(0,v.bubbleFormats)(j),W=j.offset(this.scroll),H=B[0].oldValue.replace($.default.CONTENTS,""),z=new f.default().insert(H),K=new f.default().insert(j.value()),Z=new f.default().retain(W).concat(z.diff(K,N));R=Z.reduce(function(ie,se){return se.insert?ie.insert(se.insert,D):ie.push(se)},new f.default),this.delta=P.compose(R)}else this.delta=this.getDelta(),(!R||!(0,O.default)(P.compose(R),this.delta))&&(R=P.diff(this.delta,N));return R}}]),F}();function A(F,V){return Object.keys(V).reduce(function(R,B){return F[B]==null||(V[B]===F[B]?R[B]=V[B]:Array.isArray(V[B])?V[B].indexOf(F[B])<0&&(R[B]=V[B].concat([F[B]])):R[B]=[V[B],F[B]]),R},{})}function I(F){return F.reduce(function(V,R){if(R.insert===1){var B=(0,E.default)(R.attributes);return delete B.image,V.insert({image:R.attributes.image},B)}if(R.attributes!=null&&(R.attributes.list===!0||R.attributes.bullet===!0)&&(R=(0,E.default)(R),R.attributes.list?R.attributes.list="ordered":(R.attributes.list="bullet",delete R.attributes.bullet)),typeof R.insert=="string"){var N=R.insert.replace(/\r\n/g,`
`).replace(/\r/g,`
`);return V.insert(N,R.attributes)}return V.push(R)},new f.default)}h.default=q},function(e,h,m){Object.defineProperty(h,"__esModule",{value:!0}),h.default=h.Range=void 0;var g=function(){function x(O,M){var k=[],T=!0,S=!1,w=void 0;try{for(var L=O[Symbol.iterator](),q;!(T=(q=L.next()).done)&&(k.push(q.value),!(M&&k.length===M));T=!0);}catch(A){S=!0,w=A}finally{try{!T&&L.return&&L.return()}finally{if(S)throw w}}return k}return function(O,M){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return x(O,M);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function x(O,M){for(var k=0;k<M.length;k++){var T=M[k];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(O,T.key,T)}}return function(O,M,k){return M&&x(O.prototype,M),k&&x(O,k),O}}(),u=m(0),r=$(u),f=m(21),l=$(f),n=m(11),i=$(n),o=m(8),s=$(o),c=m(10),p=$(c);function $(x){return x&&x.__esModule?x:{default:x}}function v(x){if(Array.isArray(x)){for(var O=0,M=Array(x.length);O<x.length;O++)M[O]=x[O];return M}else return Array.from(x)}function C(x,O){if(!(x instanceof O))throw new TypeError("Cannot call a class as a function")}var y=(0,p.default)("quill:selection"),_=function x(O){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;C(this,x),this.index=O,this.length=M},b=function(){function x(O,M){var k=this;C(this,x),this.emitter=M,this.scroll=O,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=r.default.create("cursor",this),this.lastRange=this.savedRange=new _(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){k.mouseDown||setTimeout(k.update.bind(k,s.default.sources.USER),1)}),this.emitter.on(s.default.events.EDITOR_CHANGE,function(T,S){T===s.default.events.TEXT_CHANGE&&S.length()>0&&k.update(s.default.sources.SILENT)}),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,function(){if(!!k.hasFocus()){var T=k.getNativeRange();T!=null&&T.start.node!==k.cursor.textNode&&k.emitter.once(s.default.events.SCROLL_UPDATE,function(){try{k.setNativeRange(T.start.node,T.start.offset,T.end.node,T.end.offset)}catch{}})}}),this.emitter.on(s.default.events.SCROLL_OPTIMIZE,function(T,S){if(S.range){var w=S.range,L=w.startNode,q=w.startOffset,A=w.endNode,I=w.endOffset;k.setNativeRange(L,q,A,I)}}),this.update(s.default.sources.SILENT)}return a(x,[{key:"handleComposition",value:function(){var M=this;this.root.addEventListener("compositionstart",function(){M.composing=!0}),this.root.addEventListener("compositionend",function(){if(M.composing=!1,M.cursor.parent){var k=M.cursor.restore();if(!k)return;setTimeout(function(){M.setNativeRange(k.startNode,k.startOffset,k.endNode,k.endOffset)},1)}})}},{key:"handleDragging",value:function(){var M=this;this.emitter.listenDOM("mousedown",document.body,function(){M.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){M.mouseDown=!1,M.update(s.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(M,k){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[M])){this.scroll.update();var T=this.getNativeRange();if(!(T==null||!T.native.collapsed||r.default.query(M,r.default.Scope.BLOCK))){if(T.start.node!==this.cursor.textNode){var S=r.default.find(T.start.node,!1);if(S==null)return;if(S instanceof r.default.Leaf){var w=S.split(T.start.offset);S.parent.insertBefore(this.cursor,w)}else S.insertBefore(this.cursor,T.start.node);this.cursor.attach()}this.cursor.format(M,k),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(M){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,T=this.scroll.length();M=Math.min(M,T-1),k=Math.min(M+k,T-1)-M;var S=void 0,w=this.scroll.leaf(M),L=g(w,2),q=L[0],A=L[1];if(q==null)return null;var I=q.position(A,!0),F=g(I,2);S=F[0],A=F[1];var V=document.createRange();if(k>0){V.setStart(S,A);var R=this.scroll.leaf(
`)&&(w=w.slice(0,-1)),q.insertAt(0,w,L)}else{var A=f.default.create(w,L);this.appendChild(A)}else u(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"insertAt",this).call(this,S,w,L);this.optimize()}}},{key:"insertBefore",value:function(S,w){if(S.statics.scope===f.default.Scope.INLINE_BLOT){var L=f.default.create(this.statics.defaultChild);L.appendChild(S),S=L}u(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"insertBefore",this).call(this,S,w)}},{key:"leaf",value:function(S){return this.path(S).pop()||[null,-1]}},{key:"line",value:function(S){return S===this.length()?this.line(S-1):this.descendant(x,S)}},{key:"lines",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,L=function q(A,I,F){var V=[],R=F;return A.children.forEachAt(I,F,function(B,N,P){x(B)?V.push(B):B instanceof f.default.Container&&(V=V.concat(q(B,N,R))),R-=P}),V};return L(this,S,w)}},{key:"optimize",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(u(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"optimize",this).call(this,S,w),S.length>0&&this.emitter.emit(n.default.events.SCROLL_OPTIMIZE,S,w))}},{key:"path",value:function(S){return u(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"path",this).call(this,S).slice(1)}},{key:"update",value:function(S){if(this.batch!==!0){var w=n.default.sources.USER;typeof S=="string"&&(w=S),Array.isArray(S)||(S=this.observer.takeRecords()),S.length>0&&this.emitter.emit(n.default.events.SCROLL_BEFORE_UPDATE,w,S),u(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"update",this).call(this,S.concat([])),S.length>0&&this.emitter.emit(n.default.events.SCROLL_UPDATE,w,S)}}}]),k}(f.default.Scroll);O.blotName="scroll",O.className="ql-editor",O.tagName="DIV",O.defaultChild="block",O.allowedChildren=[o.default,i.BlockEmbed,C.default],h.default=O},function(e,h,m){Object.defineProperty(h,"__esModule",{value:!0}),h.SHORTKEY=h.default=void 0;var g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},a=function(){function D(W,H){var z=[],K=!0,Z=!1,ie=void 0;try{for(var se=W[Symbol.iterator](),ue;!(K=(ue=se.next()).done)&&(z.push(ue.value),!(H&&z.length===H));K=!0);}catch(fe){Z=!0,ie=fe}finally{try{!K&&se.return&&se.return()}finally{if(Z)throw ie}}return z}return function(W,H){if(Array.isArray(W))return W;if(Symbol.iterator in Object(W))return D(W,H);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function D(W,H){for(var z=0;z<H.length;z++){var K=H[z];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(W,K.key,K)}}return function(W,H,z){return H&&D(W.prototype,H),z&&D(W,z),W}}(),r=m(21),f=M(r),l=m(11),n=M(l),i=m(3),o=M(i),s=m(2),c=M(s),p=m(20),$=M(p),v=m(0),C=M(v),y=m(5),_=M(y),b=m(10),E=M(b),x=m(9),O=M(x);function M(D){return D&&D.__esModule?D:{default:D}}function k(D,W,H){return W in D?Object.defineProperty(D,W,{value:H,enumerable:!0,configurable:!0,writable:!0}):D[W]=H,D}function T(D,W){if(!(D instanceof W))throw new TypeError("Cannot call a class as a function")}function S(D,W){if(!D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W&&(typeof W=="object"||typeof W=="function")?W:D}function w(D,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof W);D.prototype=Object.create(W&&W.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(D,W):D.__proto__=W)}var L=(0,E.default)("quill:keyboard"),q=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",A=function(D){w(W,D),u(W,null,[{key:"match",value:function(z,K){return K=j(K),["altKey","ctrlKey","metaKey","shiftKey"].s
`,ie).retain(K.length()-Z-1).retain(1,{list:"unchecked"});this.quill.updateContents(se,_.default.sources.USER),this.quill.setSelection(W.index+1,_.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:A.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(W,H){var z=this.quill.getLine(W.index),K=a(z,2),Z=K[0],ie=K[1],se=new c.default().retain(W.index).insert(`
`,H.format).retain(Z.length()-ie-1).retain(1,{header:null});this.quill.updateContents(se,_.default.sources.USER),this.quill.setSelection(W.index+1,_.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(W,H){var z=H.prefix.length,K=this.quill.getLine(W.index),Z=a(K,2),ie=Z[0],se=Z[1];if(se>z)return!0;var ue=void 0;switch(H.prefix.trim()){case"[]":case"[ ]":ue="unchecked";break;case"[x]":ue="checked";break;case"-":case"*":ue="bullet";break;default:ue="ordered"}this.quill.insertText(W.index," ",_.default.sources.USER),this.quill.history.cutoff();var fe=new c.default().retain(W.index-se).delete(z+1).retain(ie.length()-2-se).retain(1,{list:ue});this.quill.updateContents(fe,_.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(W.index-z,_.default.sources.SILENT)}},"code exit":{key:A.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(W){var H=this.quill.getLine(W.index),z=a(H,2),K=z[0],Z=z[1],ie=new c.default().retain(W.index+K.length()-Z-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(ie,_.default.sources.USER)}},"embed left":I(A.keys.LEFT,!1),"embed left shift":I(A.keys.LEFT,!0),"embed right":I(A.keys.RIGHT,!1),"embed right shift":I(A.keys.RIGHT,!0)}};function I(D,W){var H,z=D===A.keys.LEFT?"prefix":"suffix";return H={key:D,shiftKey:W,altKey:null},k(H,z,/^$/),k(H,"handler",function(Z){var ie=Z.index;D===A.keys.RIGHT&&(ie+=Z.length+1);var se=this.quill.getLeaf(ie),ue=a(se,1),fe=ue[0];return fe instanceof C.default.Embed?(D===A.keys.LEFT?W?this.quill.setSelection(Z.index-1,Z.length+1,_.default.sources.USER):this.quill.setSelection(Z.index-1,_.default.sources.USER):W?this.quill.setSelection(Z.index,Z.length+1,_.default.sources.USER):this.quill.setSelection(Z.index+Z.length+1,_.default.sources.USER),!1):!0}),H}function F(D,W){if(!(D.index===0||this.quill.getLength()<=1)){var H=this.quill.getLine(D.index),z=a(H,1),K=z[0],Z={};if(W.offset===0){var ie=this.quill.getLine(D.index-1),se=a(ie,1),ue=se[0];if(ue!=null&&ue.length()>1){var fe=K.formats(),ye=this.quill.getFormat(D.index-1,1);Z=$.default.attributes.diff(fe,ye)||{}}}var _e=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(W.prefix)?2:1;this.quill.deleteText(D.index-_e,_e,_.default.sources.USER),Object.keys(Z).length>0&&this.quill.formatLine(D.index-_e,_e,Z,_.default.sources.USER),this.quill.focus()}}function V(D,W){var H=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(W.suffix)?2:1;if(!(D.index>=this.quill.getLength()-H)){var z={},K=0,Z=this.quill.getLine(D.index),ie=a(Z,1),se=ie[0];if(W.offset>=se.length()-1){var ue=this.quill.getLine(D.index+1),fe=a(ue,1),ye=fe[0];if(ye){var _e=se.formats(),J=this.quill.getFormat(D.index,1);z=$.default.attributes.diff(_e,J)||{},K=ye.length()}}this.quill.deleteText(D.index,H,_.default.sources.USER),Object.keys(z).length>0&&this.quill.formatLine(D.index+K-1,H,z,_.default.sources.USER)}}function R(D){var W=this.quill.getLines(D),H={};if(W.length>1){var z=W[0].formats(),K=W[W.length-1].formats();H=$.default.attributes.diff(K,z)||{}}this.quill.deleteText(D,_.default.sources.USER),Object.keys(H).length>0&&this.quill.formatLine(D.index,1,H,_.default.sources.USER),this.quill.setSelection(D.index,_.default.sources.SILENT),this.quill.focus()}function B(D,W){var H=this;D.length>0&&this.quill.scroll.deleteAt(D.index,D.length);var z=Object.keys(W.format).reduce(function(K,Z){return C.default.query(Z,C.default.Scope.BLOCK)&&!Array.isArray(W.format[Z])&&(K[Z]=W.format[Z]),K},{});this.quill.insertText(D.index,`
`,z,_.default.sources.USER),this.quill.setSelection(D.index+1,_.default.sources.SILENT),this.quill.focus(),Object.keys(W.format).forEach(function(K){z[K]==null&&(Array.isArray(W.format[K])||K!=="link"&&H.quill.format(K,W.format[K],_.default.sources.USER))})}function N(D){return{key:A.keys.TAB,shiftKey:!D,format:{"code-block":!0},handler:function(H){var z=C.default.query("code-block"),K=H.index,Z=H.length,ie=this.quill.scroll.descendant(z,K),se=a(ie,2),ue=se[0],fe=se[1];if(ue!=null){var ye=this.quill.getIndex(ue),_e=ue.newlineIndex(fe,!0)+1,J=ue.newlineIndex(ye+fe+Z),Q=ue.domNode.textContent.slice(_e,J).split(`
`);fe=0,Q.forEach(function(ne,le){D?(ue.insertAt(_e+fe,z.TAB),fe+=z.TAB.length,le===0?K+=z.TAB.length:Z+=z.TAB.length):ne.startsWith(z.TAB)&&(ue.deleteAt(_e+fe,z.TAB.length),fe-=z.TAB.length,le===0?K-=z.TAB.length:Z-=z.TAB.length),fe+=ne.length+1}),this.quill.update(_.default.sources.USER),this.quill.setSelection(K,Z,_.default.sources.SILENT)}}}}function P(D){return{key:D[0].toUpperCase(),shortKey:!0,handler:function(H,z){this.quill.format(D,!z.format[D],_.default.sources.USER)}}}function j(D){if(typeof D=="string"||typeof D=="number")return j({key:D});if((typeof D=="undefined"?"undefined":g(D))==="object"&&(D=(0,f.default)(D,!1)),typeof D.key=="string")if(A.keys[D.key.toUpperCase()]!=null)D.key=A.keys[D.key.toUpperCase()];else if(D.key.length===1)D.key=D.key.toUpperCase().charCodeAt(0);else return null;return D.shortKey&&(D[q]=D.shortKey,delete D.shortKey),D}h.default=A,h.SHORTKEY=q},function(e,h,m){Object.defineProperty(h,"__esModule",{value:!0});var g=function(){function $(v,C){var y=[],_=!0,b=!1,E=void 0;try{for(var x=v[Symbol.iterator](),O;!(_=(O=x.next()).done)&&(y.push(O.value),!(C&&y.length===C));_=!0);}catch(M){b=!0,E=M}finally{try{!_&&x.return&&x.return()}finally{if(b)throw E}}return y}return function(v,C){if(Array.isArray(v))return v;if(Symbol.iterator in Object(v))return $(v,C);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function $(v,C,y){v===null&&(v=Function.prototype);var _=Object.getOwnPropertyDescriptor(v,C);if(_===void 0){var b=Object.getPrototypeOf(v);return b===null?void 0:$(b,C,y)}else{if("value"in _)return _.value;var E=_.get;return E===void 0?void 0:E.call(y)}},u=function(){function $(v,C){for(var y=0;y<C.length;y++){var _=C[y];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(v,_.key,_)}}return function(v,C,y){return C&&$(v.prototype,C),y&&$(v,y),v}}(),r=m(0),f=i(r),l=m(7),n=i(l);function i($){return $&&$.__esModule?$:{default:$}}function o($,v){if(!($ instanceof v))throw new TypeError("Cannot call a class as a function")}function s($,v){if(!$)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:$}function c($,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);$.prototype=Object.create(v&&v.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf($,v):$.__proto__=v)}var p=function($){c(v,$),u(v,null,[{key:"value",value:function(){}}]);function v(C,y){o(this,v);var _=s(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,C));return _.selection=y,_.textNode=document.createTextNode(v.CONTENTS),_.domNode.appendChild(_.textNode),_._length=0,_}return u(v,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(y,_){if(this._length!==0)return a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,y,_);for(var b=this,E=0;b!=null&&b.statics.scope!==f.default.Scope.BLOCK_BLOT;)E+=b.offset(b.parent),b=b.parent;b!=null&&(this._length=v.CONTENTS.length,b.optimize(),b.formatAt(E,v.CONTENTS.length,y,_),this._length=0)}},{key:"index",value:function(y,_){return y===this.textNode?0:a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"index",this).call(this,y,_)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var y=this.textNode,_=this.selection.getNativeRange(),b=void 0,E=void 0,x=void 0;if(_!=null&&_.start.node===y&&_.end.node===y){var O=[y,_.start.offset,_.end.offset];b=O[0],E=O[1],x=O[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.
`):y.attributes!=null?Object.keys(y.attributes).some(function(_){return u.default.query(_,u.default.Scope.BLOCK)!=null}):!1}function v(C){var y=C.reduce(function(b,E){return b+=E.delete||0,b},0),_=C.length()-y;return $(C)&&(_-=1),_}h.default=p,h.getLastChangeIndex=v},function(e,h,m){Object.defineProperty(h,"__esModule",{value:!0}),h.default=h.BaseTooltip=void 0;var g=function(){function B(N,P){for(var j=0;j<P.length;j++){var D=P[j];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(N,D.key,D)}}return function(N,P,j){return P&&B(N.prototype,P),j&&B(N,j),N}}(),a=function B(N,P,j){N===null&&(N=Function.prototype);var D=Object.getOwnPropertyDescriptor(N,P);if(D===void 0){var W=Object.getPrototypeOf(N);return W===null?void 0:B(W,P,j)}else{if("value"in D)return D.value;var H=D.get;return H===void 0?void 0:H.call(j)}},u=m(3),r=O(u),f=m(2),l=O(f),n=m(8),i=O(n),o=m(23),s=O(o),c=m(34),p=O(c),$=m(59),v=O($),C=m(60),y=O(C),_=m(28),b=O(_),E=m(61),x=O(E);function O(B){return B&&B.__esModule?B:{default:B}}function M(B,N){if(!(B instanceof N))throw new TypeError("Cannot call a class as a function")}function k(B,N){if(!B)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:B}function T(B,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);B.prototype=Object.create(N&&N.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(B,N):B.__proto__=N)}var S=[!1,"center","right","justify"],w=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],L=[!1,"serif","monospace"],q=["1","2","3",!1],A=["small",!1,"large","huge"],I=function(B){T(N,B);function N(P,j){M(this,N);var D=k(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,P,j)),W=function H(z){if(!document.body.contains(P.root))return document.body.removeEventListener("click",H);D.tooltip!=null&&!D.tooltip.root.contains(z.target)&&document.activeElement!==D.tooltip.textbox&&!D.quill.hasFocus()&&D.tooltip.hide(),D.pickers!=null&&D.pickers.forEach(function(K){K.container.contains(z.target)||K.close()})};return P.emitter.listenDOM("click",document.body,W),D}return g(N,[{key:"addModule",value:function(j){var D=a(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"addModule",this).call(this,j);return j==="toolbar"&&this.extendToolbar(D),D}},{key:"buildButtons",value:function(j,D){j.forEach(function(W){var H=W.getAttribute("class")||"";H.split(/\s+/).forEach(function(z){if(!!z.startsWith("ql-")&&(z=z.slice("ql-".length),D[z]!=null))if(z==="direction")W.innerHTML=D[z][""]+D[z].rtl;else if(typeof D[z]=="string")W.innerHTML=D[z];else{var K=W.value||"";K!=null&&D[z][K]&&(W.innerHTML=D[z][K])}})})}},{key:"buildPickers",value:function(j,D){var W=this;this.pickers=j.map(function(z){if(z.classList.contains("ql-align"))return z.querySelector("option")==null&&R(z,S),new y.default(z,D.align);if(z.classList.contains("ql-background")||z.classList.contains("ql-color")){var K=z.classList.contains("ql-background")?"background":"color";return z.querySelector("option")==null&&R(z,w,K==="background"?"#ffffff":"#000000"),new v.default(z,D[K])}else return z.querySelector("option")==null&&(z.classList.contains("ql-font")?R(z,L):z.classList.contains("ql-header")?R(z,q):z.classList.contains("ql-size")&&R(z,A)),new b.default(z)});var H=function(){W.pickers.forEach(function(K){K.update()})};this.quill.on(i.default.events.EDITOR_CHANGE,H)}}]),N}(p.default);I.DEFAULTS=(0,r.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var N=this,P=this.container.querySelecto
`)&&oe.ops[oe.ops.length-1].attributes==null&&(oe=oe.compose(new n.default().retain(oe.length()-1).delete(1))),A.log("convert",this.container.innerHTML,oe),this.container.innerHTML="",oe}},{key:"dangerouslyPasteHTML",value:function(le,te){var me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:c.default.sources.API;if(typeof le=="string")this.quill.setContents(this.convert(le),te),this.quill.setSelection(0,c.default.sources.SILENT);else{var $e=this.convert(te);this.quill.updateContents(new n.default().retain(le).concat($e),me),this.quill.setSelection(le+$e.length(),c.default.sources.SILENT)}}},{key:"onPaste",value:function(le){var te=this;if(!(le.defaultPrevented||!this.quill.isEnabled())){var me=this.quill.getSelection(),$e=new n.default().retain(me.index),be=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(c.default.sources.SILENT),setTimeout(function(){$e=$e.concat(te.convert()).delete(me.length),te.quill.updateContents($e,c.default.sources.USER),te.quill.setSelection($e.length()-me.length,c.default.sources.SILENT),te.quill.scrollingContainer.scrollTop=be,te.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var le=this,te=[],me=[];return this.matchers.forEach(function($e){var be=a($e,2),X=be[0],ae=be[1];switch(X){case Node.TEXT_NODE:me.push(ae);break;case Node.ELEMENT_NODE:te.push(ae);break;default:[].forEach.call(le.container.querySelectorAll(X),function(oe){oe[I]=oe[I]||[],oe[I].push(ae)});break}}),[te,me]}}]),Q}(C.default);B.DEFAULTS={matchers:[],matchVisual:!0};function N(J,Q,ne){return(typeof Q=="undefined"?"undefined":g(Q))==="object"?Object.keys(Q).reduce(function(le,te){return N(le,te,Q[te])},J):J.reduce(function(le,te){return te.attributes&&te.attributes[Q]?le.push(te):le.insert(te.insert,(0,f.default)({},S({},Q,ne),te.attributes))},new n.default)}function P(J){if(J.nodeType!==Node.ELEMENT_NODE)return{};var Q="__ql-computed-style";return J[Q]||(J[Q]=window.getComputedStyle(J))}function j(J,Q){for(var ne="",le=J.ops.length-1;le>=0&&ne.length<Q.length;--le){var te=J.ops[le];if(typeof te.insert!="string")break;ne=te.insert+ne}return ne.slice(-1*Q.length)===Q}function D(J){if(J.childNodes.length===0)return!1;var Q=P(J);return["block","list-item"].indexOf(Q.display)>-1}function W(J,Q,ne){return J.nodeType===J.TEXT_NODE?ne.reduce(function(le,te){return te(J,le)},new n.default):J.nodeType===J.ELEMENT_NODE?[].reduce.call(J.childNodes||[],function(le,te){var me=W(te,Q,ne);return te.nodeType===J.ELEMENT_NODE&&(me=Q.reduce(function($e,be){return be(te,$e)},me),me=(te[I]||[]).reduce(function($e,be){return be(te,$e)},me)),le.concat(me)},new n.default):new n.default}function H(J,Q,ne){return N(ne,J,!0)}function z(J,Q){var ne=o.default.Attributor.Attribute.keys(J),le=o.default.Attributor.Class.keys(J),te=o.default.Attributor.Style.keys(J),me={};return ne.concat(le).concat(te).forEach(function($e){var be=o.default.query($e,o.default.Scope.ATTRIBUTE);be!=null&&(me[be.attrName]=be.value(J),me[be.attrName])||(be=V[$e],be!=null&&(be.attrName===$e||be.keyName===$e)&&(me[be.attrName]=be.value(J)||void 0),be=R[$e],be!=null&&(be.attrName===$e||be.keyName===$e)&&(be=R[$e],me[be.attrName]=be.value(J)||void 0))}),Object.keys(me).length>0&&(Q=N(Q,me)),Q}function K(J,Q){var ne=o.default.query(J);if(ne==null)return Q;if(ne.prototype instanceof o.default.Embed){var le={},te=ne.value(J);te!=null&&(le[ne.blotName]=te,Q=new n.default().insert(le,ne.formats(J)))}else typeof ne.formats=="function"&&(Q=N(Q,ne.blotName,ne.formats(J)));return Q}function Z(J,Q){return j(Q,`
`)||Q.insert(`
`),Q}function ie(){return new n.default}function se(J,Q){var ne=o.default.query(J);if(ne==null||ne.blotName!=="list-item"||!j(Q,`
`))return Q;for(var le=-1,te=J.parentNode;!te.classList.contains("ql-clipboard");)(o.default.query(te)||{}).blotName==="list"&&(le+=1),te=te.parentNode;return le<=0?Q:Q.compose(new n.default().retain(Q.length()-1).retain(1,{indent:le}))}function ue(J,Q){return j(Q,`
`)||(D(J)||Q.length()>0&&J.nextSibling&&D(J.nextSibling))&&Q.insert(`
`),Q}function fe(J,Q){if(D(J)&&J.nextElementSibling!=null&&!j(Q,`
`)){var ne=J.offsetHeight+parseFloat(P(J).marginTop)+parseFloat(P(J).marginBottom);J.nextElementSibling.offsetTop>J.offsetTop+ne*1.5&&Q.insert(`
`)}return Q}function ye(J,Q){var ne={},le=J.style||{};return le.fontStyle&&P(J).fontStyle==="italic"&&(ne.italic=!0),le.fontWeight&&(P(J).fontWeight.startsWith("bold")||parseInt(P(J).fontWeight)>=700)&&(ne.bold=!0),Object.keys(ne).length>0&&(Q=N(Q,ne)),parseFloat(le.textIndent||0)>0&&(Q=new n.default().insert(" ").concat(Q)),Q}function _e(J,Q){var ne=J.data;if(J.parentNode.tagName==="O:P")return Q.insert(ne.trim());if(ne.trim().length===0&&J.parentNode.classList.contains("ql-clipboard"))return Q;if(!P(J.parentNode).whiteSpace.startsWith("pre")){var le=function(me,$e){return $e=$e.replace(/[^\u00a0]/g,""),$e.length<1&&me?" ":$e};ne=ne.replace(/\r\n/g," ").replace(/\n/g," "),ne=ne.replace(/\s\s+/g,le.bind(le,!0)),(J.previousSibling==null&&D(J.parentNode)||J.previousSibling!=null&&D(J.previousSibling))&&(ne=ne.replace(/^\s+/,le.bind(le,!1))),(J.nextSibling==null&&D(J.parentNode)||J.nextSibling!=null&&D(J.nextSibling))&&(ne=ne.replace(/\s+$/,le.bind(le,!1)))}return Q.insert(ne)}h.default=B,h.matchAttributor=z,h.matchBlot=K,h.matchNewline=ue,h.matchSpacing=fe,h.matchText=_e},function(e,h,m){Object.defineProperty(h,"__esModule",{value:!0});var g=function(){function s(c,p){for(var $=0;$<p.length;$++){var v=p[$];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(c,v.key,v)}}return function(c,p,$){return p&&s(c.prototype,p),$&&s(c,$),c}}(),a=function s(c,p,$){c===null&&(c=Function.prototype);var v=Object.getOwnPropertyDescriptor(c,p);if(v===void 0){var C=Object.getPrototypeOf(c);return C===null?void 0:s(C,p,$)}else{if("value"in v)return v.value;var y=v.get;return y===void 0?void 0:y.call($)}},u=m(6),r=f(u);function f(s){return s&&s.__esModule?s:{default:s}}function l(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")}function n(s,c){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:s}function i(s,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);s.prototype=Object.create(c&&c.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(s,c):s.__proto__=c)}var o=function(s){i(c,s);function c(){return l(this,c),n(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return g(c,[{key:"optimize",value:function($){a(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"optimize",this).call(this,$),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return a(c.__proto__||Object.getPrototypeOf(c),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),c}(r.default);o.blotName="bold",o.tagName=["STRONG","B"],h.default=o},function(e,h,m){Object.defineProperty(h,"__esModule",{value:!0}),h.addControls=h.default=void 0;var g=function(){function k(T,S){var w=[],L=!0,q=!1,A=void 0;try{for(var I=T[Symbol.iterator](),F;!(L=(F=I.next()).done)&&(w.push(F.value),!(S&&w.length===S));L=!0);}catch(V){q=!0,A=V}finally{try{!L&&I.return&&I.return()}finally{if(q)throw A}}return w}return function(T,S){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return k(T,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function k(T,S){for(var w=0;w<S.length;w++){var L=S[w];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(T,L.key,L)}}return function(T,S,w){return S&&k(T.prototype,S),w&&k(T,w),T}}(),u=m(2),r=$(u),f=m(0),l=$(f),n=m(5),i=$(n),o=m(10),s=$(o),c=m(9),p=$(c);function $(k){return k&&k.__esModule?k:{default:k}}function v(k,T,S){return T in k?Object.defineProperty(k,T,{value:S,enumerable:!0,configurable:!0,writable:!0}):k[T]=S,k}function C(k,T){if(!(k instanceof T))throw new TypeError("Cannot call a class as a function")}function y(k,T){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&
e.setDisabled&&e.setDisabled(!0)}})},enableForm(){Object.keys(this.widgetRefList).forEach(d=>{let e=this.getWidgetRef(d);if(e)if(!!e.widget&&e.widget.type==="sub-form")e.enableSubForm();else{//!!foundW.setDisabled && foundW.setDisabled(false)
e.setDisabled&&e.setDisabled(!1)}})},resetForm(){Object.keys(this.subFormRefList).forEach(e=>{this.subFormRefList[e].resetSubForm&&this.subFormRefList[e].resetSubForm()}),Object.keys(this.widgetRefList).forEach(e=>{let h=this.getWidgetRef(e);!!h&&!h.subFormItemFlag&&!!h.resetField&&h.resetField()}),this.$nextTick(()=>{this.clearValidate()})},clearValidate(t){this.$refs.renderForm.clearValidate(t)},validateForm(t){this.$refs.renderForm.validate(d=>{t(d)})},validateFields(){},disableWidgets(t){t&&(typeof t=="string"?this.findWidgetAndSetDisabled(t,!0):Array.isArray(t)&&t.forEach(d=>{this.findWidgetAndSetDisabled(d,!0)}))},enableWidgets(t){t&&(typeof t=="string"?this.findWidgetAndSetDisabled(t,!1):Array.isArray(t)&&t.forEach(d=>{this.findWidgetAndSetDisabled(d,!1)}))},hideWidgets(t){t&&(typeof t=="string"?this.findWidgetAndSetHidden(t,!0):Array.isArray(t)&&t.forEach(d=>{this.findWidgetAndSetHidden(d,!0)}))},showWidgets(t){t&&(typeof t=="string"?this.findWidgetAndSetHidden(t,!1):Array.isArray(t)&&t.forEach(d=>{this.findWidgetAndSetHidden(d,!1)}))},getFieldWidgets(){return getAllFieldWidgets(this.formJsonObj.widgetList)},getContainerWidgets(){return getAllContainerWidgets(this.formJsonObj.widgetList)},addEC(t,d){this.externalComponents[t]=d},hasEC(t){return this.externalComponents.hasOwnProperty(t)},getEC(t){return this.externalComponents[t]},getGlobalDsv(){return this.globalDsv}}};function _sfc_render$2C(t,d,e,h,m,g){const a=require$$0$1.resolveComponent("el-form");return require$$0$1.openBlock(),require$$0$1.createBlock(a,{"label-position":g.labelPosition,size:g.size,class:require$$0$1.normalizeClass([[g.customClass],"render-form"]),"label-width":g.labelWidth,"validate-on-rule-change":!1,model:m.formDataModel,ref:"renderForm",onSubmit:d[0]||(d[0]=require$$0$1.withModifiers(()=>{},["prevent"]))},{default:require$$0$1.withCtx(()=>[(require$$0$1.openBlock(!0),require$$0$1.createElementBlock(require$$0$1.Fragment,null,require$$0$1.renderList(g.widgetList,(u,r)=>(require$$0$1.openBlock(),require$$0$1.createElementBlock(require$$0$1.Fragment,null,[u.category==="container"?(require$$0$1.openBlock(),require$$0$1.createBlock(require$$0$1.resolveDynamicComponent(g.getContainerWidgetName(u)),{widget:u,key:u.id,"parent-list":g.widgetList,"index-of-parent-list":r,"parent-widget":null},require$$0$1.createSlots({_:2},[require$$0$1.renderList(Object.keys(t.$slots),f=>({name:f,fn:require$$0$1.withCtx(l=>[require$$0$1.renderSlot(t.$slots,f,require$$0$1.normalizeProps(require$$0$1.guardReactiveProps(l)),void 0,!0)])}))]),1032,["widget","parent-list","index-of-parent-list"])):(require$$0$1.openBlock(),require$$0$1.createBlock(require$$0$1.resolveDynamicComponent(g.getWidgetName(u)),{field:u,"form-model":m.formDataModel,designer:null,key:u.id,"parent-list":g.widgetList,"index-of-parent-list":r,"parent-widget":null},require$$0$1.createSlots({_:2},[require$$0$1.renderList(Object.keys(t.$slots),f=>({name:f,fn:require$$0$1.withCtx(l=>[require$$0$1.renderSlot(t.$slots,f,require$$0$1.normalizeProps(require$$0$1.guardReactiveProps(l)),void 0,!0)])}))]),1032,["field","form-model","parent-list","index-of-parent-list"]))],64))),256))]),_:3},8,["label-position","size","class","label-width","model"])}var VFormRender=_export_sfc$1(_sfc_main$2C,[["render",_sfc_render$2C],["__scopeId","data-v-544703a2"]]),ace$2={exports:{}};(function(t,d){(function(){var e="ace",h=function(){return this}();!h&&typeof window!="undefined"&&(h=window);var m=function(l,n,i){if(typeof l!="string"){m.original?m.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(i=n),m.modules[l]||(m.payloads[l]=i,m.modules[l]=null)};m.modules={},m.payloads={};var g=function(l,n,i){if(typeof n=="string"){var o=r(l,n);if(o!=null)return i&&i(),o}else if(Object.prototype.toString.call(n)==="[object Array]"){for(var s=[],c=0,p=n.length;c<p;++c){var $=r(l,n[c]);if($==null&&a.original)return;s.push($)}return i&&i.apply(null,s)||!0}},a=function(l,n){var i=g("",l,n);return i==null&&a.original?a.original.apply(this,a
/*# sourceURL=ace/css/`+o+" */");var $=h.createElement("style");$.appendChild(p.createTextNode(i)),o&&($.id=o),c==p&&(c=h.getDocumentHead(p)),c.insertBefore($,c.firstChild)}}}if(h.importCssString=l,h.importCssStylsheet=function(i,o){h.buildDom(["link",{rel:"stylesheet",href:i}],h.getDocumentHead(o))},h.scrollbarWidth=function(i){var o=h.createElement("ace_inner");o.style.width="100%",o.style.minWidth="0px",o.style.height="200px",o.style.display="block";var s=h.createElement("ace_outer"),c=s.style;c.position="absolute",c.left="-10000px",c.overflow="hidden",c.width="200px",c.minWidth="0px",c.height="150px",c.display="block",s.appendChild(o);var p=i&&i.documentElement||document&&document.documentElement;if(!p)return 0;p.appendChild(s);var $=o.offsetWidth;c.overflow="scroll";var v=o.offsetWidth;return $===v&&(v=s.clientWidth),p.removeChild(s),$-v},h.computedStyle=function(i,o){return window.getComputedStyle(i,"")||{}},h.setStyle=function(i,o,s){i[o]!==s&&(i[o]=s)},h.HAS_CSS_ANIMATION=!1,h.HAS_CSS_TRANSFORMS=!1,h.HI_DPI=g.isWin?typeof window!="undefined"&&window.devicePixelRatio>=1.5:!0,g.isChromeOS&&(h.HI_DPI=!1),typeof document!="undefined"){var n=document.createElement("div");h.HI_DPI&&n.style.transform!==void 0&&(h.HAS_CSS_TRANSFORMS=!0),!g.isEdge&&typeof n.style.animationName!="undefined"&&(h.HAS_CSS_ANIMATION=!0),n=null}h.HAS_CSS_TRANSFORMS?h.translate=function(i,o,s){i.style.transform="translate("+Math.round(o)+"px, "+Math.round(s)+"px)"}:h.translate=function(i,o,s){i.style.top=Math.round(s)+"px",i.style.left=Math.round(o)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,h,m){/*
* 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 g=e("./dom");h.get=function(a,u){var r=new XMLHttpRequest;r.open("GET",a,!0),r.onreadystatechange=function(){r.readyState===4&&u(r.responseText)},r.send(null)},h.loadScript=function(a,u){var r=g.getDocumentHead(),f=document.createElement("script");f.src=a,r.appendChild(f),f.onload=f.onreadystatechange=function(l,n){(n||!f.readyState||f.readyState=="loaded"||f.readyState=="complete")&&(f=f.onload=f.onreadystatechange=null,n||u())}},h.qualifyURL=function(a){var u=document.createElement("a");return u.href=a,u.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(e,h,m){h.inherits=function(g,a){g.super_=a,g.prototype=Object.create(a.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}})},h.mixin=function(g,a){for(var u in a)g[u]=a[u];return g},h.implement=function(g,a){h.mixin(g,a)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,h,m){var g={},a=function(){this.propagationStopped=!0},u=function(){this.defaultPrevented=!0};g._emit=g._dispatchEvent=function(r,f){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var l=this._eventRegistry[r]||[],n=this._defaultHandlers[r];if(!(!l.length&&!n)){(typeof f!="object"||!f)&&(f={}),f.type||(f.type=r),f.stopPropagation||(f.stopPropagation=a),f.preventDefault||(f.preventDefault=u),l=l.slice();for(var i=0;i<l.length&&(l[i](f,this),!f.propagationStopped);i++);if(n&&!f.defaultPrevented)return n(f,this)}},g._signal=function(r,f){var l=(this._eventRegistry||{})[r];if(!!l){l=l.slice();for(var n=0;n<l.length;n++)l[n](f,this)}},g.once=function(r,f){var l=this;if(this.on(r,function n(){l.off(r,n),f.apply(null,arguments)}),!f)return new Promise(function(n){f=n})},g.setDefaultHandler=function(r,f){var l=this._defaultHandlers;if(l||(l=this._defaultHandlers={_disabled_:{}}),l[r]){var n=l[r],i=l._disabled_[r];i||(l._disabled_[r]=i=[]),i.push(n);var o=i.indexOf(f);o!=-1&&i.splice(o,1)}l[r]=f},g.removeDefaultHandler=function(r,f){var l=this._defaultHandlers;if(!!l){var n=l._disabled_[r];if(l[r]==f)n&&this.setDefaultHandler(r,n.pop());else if(n){var i=n.indexOf(f);i!=-1&&n.splice(i,1)}}},g.on=g.addEventListener=function(r,f,l){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[r];return n||(n=this._eventRegistry[r]=[]),n.indexOf(f)==-1&&n[l?"unshift":"push"](f),f},g.off=g.removeListener=g.removeEventListener=function(r,f){this._eventRegistry=this._eventRegistry||{};var l=this._eventRegistry[r];if(!!l){var n=l.indexOf(f);n!==-1&&l.splice(n,1)}},g.removeAllListeners=function(r){r||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[r]=void 0),this._defaultHandlers&&(this._defaultHandlers[r]=void 0)},h.EventEmitter=g}),ace.define("ace/lib/report_error",["require","exports","module"],function(e,h,m){h.reportError=function(a,u){var r=new Error(a);r.data=u,typeof console=="object"&&console.error&&console.error(r),setTimeout(function(){throw r})}}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error"],function(e,h,m){var g=e("./oop"),a=e("./event_emitter").EventEmitter,u=e("./report_error").reportError,r={setOptions:function(i){Object.keys(i).forEach(function(o){this.setOption(o,i[o])},this)},getOptions:function(i){var o={};if(i)Array.isArray(i)||(o=i,i=Object.keys(o));else{var s=this.$options;i=Object.keys(s).filter(function(c){return!s[c].hidden})}return i.forEach(function(c){o[c]=this.getOption(c)},this),o},setOption:function(i,o){if(this["$"+i]!==o){var s=this.$options[i];if(!s)return f('misspelled option "'+i+'"');if(s.forwardTo)return this[s.forwardTo]&&this[s.forwardTo].setOption(i,o);s.handlesSet||(this["$"+i]=o),s&&s.set&&s.set.call(this,o)}},getOption:function(i){var o=this.$options[i];return o?o.forwardTo?this[o.forwardTo]&&this[o.forwardTo].getOption(i):o&&o.get?o.get.call(this):this["$"+i]:f('misspelled option "'+i+'"')}};function f(i){typeof console!="undefined"&&console.warn&&console.warn.apply(console,arguments)}var l,n=function(){function i(){t
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(e,h,m){h.isDark=!1,h.cssClass="ace-tm",h.cssText=e("./textmate-css"),h.$id="ace/theme/textmate";var g=e("../lib/dom");g.importCssString(h.cssText,h.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(e,h,m){var g=e("./lib/lang"),a=e("./lib/net"),u=e("./lib/dom"),r=e("./lib/app_config").AppConfig;m.exports=h=new r;var f={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};h.get=function(o){if(!f.hasOwnProperty(o))throw new Error("Unknown config key: "+o);return f[o]},h.set=function(o,s){if(f.hasOwnProperty(o))f[o]=s;else if(this.setDefaultValue("",o,s)==!1)throw new Error("Unknown config key: "+o);o=="useStrictCSP"&&u.useStrictCSP(s)},h.all=function(){return g.copyObject(f)},h.$modes={},h.moduleUrl=function(o,s){if(f.$moduleUrls[o])return f.$moduleUrls[o];var c=o.split("/");s=s||c[c.length-2]||"";var p=s=="snippets"?"/":"-",$=c[c.length-1];if(s=="worker"&&p=="-"){var v=new RegExp("^"+s+"[\\-_]|[\\-_]"+s+"$","g");$=$.replace(v,"")}(!$||$==s)&&c.length>1&&($=c[c.length-2]);var C=f[s+"Path"];return C==null?C=f.basePath:p=="/"&&(s=p=""),C&&C.slice(-1)!="/"&&(C+="/"),C+s+p+$+this.get("suffix")},h.setModuleUrl=function(o,s){return f.$moduleUrls[o]=s};var l=function(o,s){if(o==="ace/theme/textmate"||o==="./theme/textmate")return s(null,e("./theme/textmate"));if(n)return n(o,s);console.error("loader is not configured")},n;h.setLoader=function(o){n=o},h.dynamicModules=Object.create(null),h.$loading={},h.$loaded={},h.loadModule=function(o,s){var c;if(Array.isArray(o))var p=o[0],$=o[1];else if(typeof o=="string")var $=o;var v=function(C){if(C&&!h.$loading[$])return s&&s(C);if(h.$loading[$]||(h.$loading[$]=[]),h.$loading[$].push(s),!(h.$loading[$].length>1)){var y=function(){l($,function(_,b){b&&(h.$loaded[$]=b),h._emit("load.module",{name:$,module:b});var E=h.$loading[$];h.$loading[$]=null,E.forEach(function(x){x&&x(b)})})};if(!h.get("packaged"))return y();a.loadScript(h.moduleUrl($,p),y),i()}};if(h.dynamicModules[$])h.dynamicModules[$]().then(function(C){C.default?v(C.default):v(C)});else{try{c=this.$require($)}catch{}v(c||h.$loaded[$])}},h.$require=function(o){if(typeof m.require=="function"){var s="require";return m[s](o)}},h.setModuleLoader=function(o,s){h.dynamicModules[o]=s};var i=function(){!f.basePath&&!f.workerPath&&!f.modePath&&!f.themePath&&!Object.keys(f.$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"),i=function(){})};h.version="1.32.6"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(e,h,m){e("./lib/fixoldbrowsers");var g=e("./config");g.setLoader(function(f,l){e([f],function(n){l(null,n)})});var a=function(){return this||typeof window!="undefined"&&window}();m.exports=function(f){g.init=u,g.$require=e,f.require=e},u(!0);function u(f){if(!(!a||!a.document)){g.set("packaged",f||e.packaged||m.packaged||a.define&&(void 0).packaged);var l={},n="",i=document.currentScript||document._currentScript,o=i&&i.ownerDocument||document;i&&i.src&&(n=i.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var s=o.getElementsByTagName("script"),c=0;c<s.length;c++){var p=s[c],$=p.src||p.getAttribute("src");if(!!$){for(var v=p.attributes,C=0,y=v.length;C<y;C++){var _=v[C];_.name.indexOf("data-ace-")===0&&(l[r(_.name.replace(/^data-ace-/,""))]=_.value)}var b=$.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);b&&(n=b[1])}}n&&(l.base=l.base||n,l.packaged=!0),l.basePath=l.base,l.workerPath=l.workerPath||l.base,l.modePath=l.modePath||l.base,l.themePath=l.themePath||l.base,delete l.base;for(var E in l)typeof l[E]!="undefined"&&g.set(E,l[E])}}function r(f){return f.replace(/-(.)/g,function(l,n){ret
==========================================================================
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 g=e("./oop"),a=function(){var u={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:"*"}};u.PRINTABLE_KEYS[173]="-";var r,f;for(f in u.FUNCTION_KEYS)r=u.FUNCTION_KEYS[f].toLowerCase(),u[r]=parseInt(f,10);for(f in u.PRINTABLE_KEYS)r=u.PRINTABLE_KEYS[f].toLowerCase(),u[r]=parseInt(f,10);return g.mixin(u,u.MODIFIER_KEYS),g.mixin(u,u.PRINTABLE_KEYS),g.mixin(u,u.FUNCTION_KEYS),u.enter=u.return,u.escape=u.esc,u.del=u.delete,function(){for(var l=["cmd","ctrl","alt","shift"],n=Math.pow(2,l.length);n--;)u.KEY_MODS[n]=l.filter(function(i){return n&u.KEY_MODS[i]}).join("-")+"-"}(),u.KEY_MODS[0]="",u.KEY_MODS[-1]="input-",u}();g.mixin(h,a),h.default=h,h.keyCodeToString=function(u){var r=a[u];return typeof r!="string"&&(r=String.fromCharCode(u)),r.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,h,m){var g=e("./keys"),a=e("./useragent"),u=null,r=0,f;function l(){f=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return f={passive:!1},!0}})}catch{}}function n(){return f==null&&l(),f}function i(C,y,_){this.elem=C,this.type=y,this.callback=_}i.prototype.destroy=function(){s(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var o=h.addListener=function(C,y,_,b){C.addEventListener(y,_,n()),b&&b.$toDestroy.push(new i(C,y,_))},s=h.removeListener=function(C,y,_){C.removeEventListener(y,_,n())};h.stopEvent=function(C){return h.stopPropagation(C),h.preventDefault(C),!1},h.stopPropagation=function(C){C.stopPropagation&&C.stopPropagation()},h.preventDefault=function(C){C.preventDefault&&C.preventDefault()},h.getButton=function(C){return C.type=="dblclick"?0:C.type=="contextmenu"||a.isMac&&C.ctrlKey&&!C.altKey&&!C.shiftKey?2:C.button},h.capture=function(C,y,_){var b=C&&C.ownerDocument||document;function E(x){y&&y(x),_&&_(x),s(b,"mousemove",y),s(b,"mouseup",E),s(b,"dragstart",E)}return o(b,"mousemove",y),o(b,"mouseup",E),o(b,"dragstart",E),E},h.addMouseWheelListener=function(C,y,_){o(C,"wheel",function(b){var E=.15,x=b.deltaX||0,O=b.deltaY||0;switch(b.deltaMode){case b.DOM_DELTA_PIXEL:b.wheelX=x*E,b.wheelY=O*E;break;case b.DOM_DELTA_LINE:var M=15;b.wheelX=x*M,b.wheelY=O*M;break;case b.DOM_DELTA_PAGE:var k=150;b.wheelX=x*k,b.wheelY=O*k;break}y(b)},_)},h.addMultiMouseDownListener=function(C,y,_,b,E){var x=0,O,M,k,T={2:"dblclick",3:"tripleclick",4:"quadclick"};function S(w){if(h.getButton(w)!==0?x=0:w.detail>1?(x++,x>4&&(x=1)):x=1,a.isIE){var L=Math.abs(w.clientX-O)>5||Math.abs(w.clientY-M)>5;(!k||L)&&(x=1),k&&clearTimeout(k),k=setTimeout(function(){k=null},y[x-1]||600),x==1&&(O=w.clientX,M=w.clientY)}if(w._clicks=x,_[b]("mousedown",w),x>4)x=0;else if(x>1)return _[b](T[x],w)}Array.isArray(C)||(C=[C]),C.forEach(function(w){o(w,"mousedown",S,E)})};function c(C){return 0|(C.ctrlKey?1:0)|(C.altKey?2:0)|(C.shiftKey?4:0)|(C.metaKey?8:0)}h.getModifierString=function(C){return g.KEY_MODS[c(C)]};function p(C,y,_){var b=c(y);if(!a.isMac&&u){if(y.getModifierState&&(y.getModifierState("
ab`+X+`cde fg
`;ae!=E.value&&(E.value=L=ae);var oe=4,G=4+(X.length||(b.selection.isEmpty()?0:1));(q!=oe||A!=G)&&E.setSelectionRange(oe,G),q=oe,A=G}}:function(){if(!(M||k)&&!(!B&&!H)){M=!0;var X=0,ae=0,oe="";if(b.session){var G=b.selection,U=G.getRange(),Y=G.cursor.row;Y===V+1?(F=V+1,V=F+2*R):Y===F-1?(V=F-1,F=V-2*R):(Y<F-1||Y>V+1)&&(F=Y>R?Y-R:0,V=Y>R?Y+R:2*R);for(var ee=[],re=F;re<=V;re++)ee.push(b.session.getLine(re));if(oe=ee.join(`
`),X=N(U.start.row,U.start.column),ae=N(U.end.row,U.end.column),U.start.row<F){var de=b.session.getLine(F-1);X=U.start.row<F-1?0:X,ae+=de.length+1,oe=de+`
`+oe}else if(U.end.row>V){var ce=b.session.getLine(V+1);ae=U.end.row>V+1?ce.length:U.end.column,ae+=oe.length+1,oe=oe+`
`+ce}else C&&Y>0&&(oe=`
`+oe,ae+=1,X+=1);oe.length>s&&(X<s&&ae<s?oe=oe.slice(0,s):(oe=`
`,X==ae?X=ae=0:(X=0,ae=1)));var ve=oe+`
`;ve!=L&&(E.value=L=ve,q=A=ve.length)}if(H&&(q=E.selectionStart,A=E.selectionEnd),A!=ae||q!=X||E.selectionEnd!=A)try{E.setSelectionRange(X,ae),q=X,A=ae}catch{}M=!1}};this.resetSelection=P,B&&b.onFocus();var j=function(X){return X.selectionStart===0&&X.selectionEnd>=L.length&&X.value===L&&L&&X.selectionEnd!==A},D=function(X){M||(x?x=!1:j(E)?(b.selectAll(),P()):C&&E.selectionStart!=q&&P())},W=null;this.setInputHandler=function(X){W=X},this.getInputHandler=function(){return W};var H=!1,z=function(X,ae){if(H&&(H=!1),O)return P(),X&&b.onPaste(X),O=!1,"";for(var oe=E.selectionStart,G=E.selectionEnd,U=q,Y=L.length-A,ee=X,re=X.length-oe,de=X.length-G,ce=0;U>0&&L[ce]==X[ce];)ce++,U--;for(ee=ee.slice(ce),ce=1;Y>0&&L.length-ce>q-1&&L[L.length-ce]==X[X.length-ce];)ce++,Y--;re-=ce-1,de-=ce-1;var ve=ee.length-ce+1;if(ve<0&&(U=-ve,ve=0),ee=ee.slice(0,ve),!ae&&!ee&&!re&&!U&&!Y&&!de)return"";k=!0;var xe=!1;return u.isAndroid&&ee==". "&&(ee=" ",xe=!0),ee&&!U&&!Y&&!re&&!de||S?b.onTextInput(ee):b.onTextInput(ee,{extendLeft:U,extendRight:Y,restoreStart:re,restoreEnd:de}),k=!1,L=X,q=oe,A=G,I=de,xe?`
`:ee},K=function(X){if(M)return _e();if(X&&X.inputType){if(X.inputType=="historyUndo")return b.execCommand("undo");if(X.inputType=="historyRedo")return b.execCommand("redo")}var ae=E.value,oe=z(ae,!0);(ae.length>s+100||v.test(oe)||C&&q<1&&q==A)&&P()},Z=function(X,ae,oe){var G=X.clipboardData||window.clipboardData;if(!(!G||n)){var U=i||oe?"Text":"text/plain";try{return ae?G.setData(U,ae)!==!1:G.getData(U)}catch(Y){if(!oe)return Z(Y,ae,!0)}}},ie=function(X,ae){var oe=b.getCopyText();if(!oe)return g.preventDefault(X);Z(X,oe)?($&&(P(oe),x=oe,setTimeout(function(){x=!1},10)),ae?b.onCut():b.onCopy(),g.preventDefault(X)):(x=!0,E.value=oe,E.select(),setTimeout(function(){x=!1,P(),ae?b.onCut():b.onCopy()}))},se=function(X){ie(X,!0)},ue=function(X){ie(X,!1)},fe=function(X){var ae=Z(X);l.pasteCancelled()||(typeof ae=="string"?(ae&&b.onPaste(ae,X),u.isIE&&setTimeout(P),g.preventDefault(X)):(E.value="",O=!0))};g.addCommandKeyListener(E,function(X,ae,oe){if(!M)return b.onCommandKey(X,ae,oe)},b),g.addListener(E,"select",D,b),g.addListener(E,"input",K,b),g.addListener(E,"cut",se,b),g.addListener(E,"copy",ue,b),g.addListener(E,"paste",fe,b),(!("oncut"in E)||!("oncopy"in E)||!("onpaste"in E))&&g.addListener(_,"keydown",function(X){if(!(u.isMac&&!X.metaKey||!X.ctrlKey))switch(X.keyCode){case 67:ue(X);break;case 86:fe(X);break;case 88:se(X);break}},b);var ye=function(X){if(!(M||!b.onCompositionStart||b.$readOnly)&&(M={},!S)){X.data&&(M.useTextareaForIME=!1),setTimeout(_e,0),b._signal("compositionStart"),b.on("mousedown",Q);var ae=b.getSelectionRange();ae.end.row=ae.start.row,ae.end.column=ae.start.column,M.markerRange=ae,M.selectionStart=q,b.onCompositionStart(M),M.useTextareaForIME?(L=E.value="",q=0,A=0):(E.msGetInputContext&&(M.context=E.msGetInputContext()),E.getInputContext&&(M.context=E.getInputContext()))}},_e=function(){if(!(!M||!b.onCompositionUpdate||b.$readOnly)){if(S)return Q();if(M.useTextareaForIME)b.onCompositionUpdate(E.value);else{var X=E.value;z(X),M.markerRange&&(M.context&&(M.markerRange.start.column=M.selectionStart=M.context.compositionStartOffset),M.markerRange.end.column=M.markerRange.start.column+A-M.selectionStart+I)}}},J=function(X){!b.onCompositionEnd||b.$readOnly||(M=!1,b.onCompositionEnd(),b.off("mousedown",Q),X&&K())};function Q(){w=!0,E.blur(),E.focus(),w=!1}var ne=f.delayedCall(_e,50).schedule.bind(null,null);function le(X){X.keyCode==27&&E.value.length<E.selectionStart&&(M||(L=E.value),q=A=-1,P()),ne()}g.addListener(E,"compositionstart",ye,b),g.addListener(E,"compositionupdate",_e,b),g.addListener(E,"keyup",le,b),g.addListener(E,"keydown",ne,b),g.addListener(E,"compositionend",J,b),this.getElement=function(){return E},this.setCommandMode=function(X){S=X,E.readOnly=!1},this.setReadOnly=function(X){S||(E.readOnly=X)},this.setCopyWithEmptySelection=function(X){},this.onContextMenu=function(X){H=!0,P(),b._emit("nativecontextmenu",{target:b,domEvent:X}),this.moveToMouse(X,!0)},this.moveToMouse=function(X,ae){T||(T=E.style.cssText),E.style.cssText=(ae?"z-index:100000;":"")+(u.isIE?"opacity:0.1;":"")+"text-indent: -"+(q+A)*b.renderer.characterWidth*.5+"px;";var oe=b.container.getBoundingClientRect(),G=r.computedStyle(b.container),U=oe.top+(parseInt(G.borderTopWidth)||0),Y=oe.left+(parseInt(oe.borderLeftWidth)||0),ee=oe.bottom-U-E.clientHeight-2,re=function(de){r.translate(E,de.clientX-Y-2,Math.min(de.clientY-U-2,ee))};re(X),X.type=="mousedown"&&(b.renderer.$isMousePressed=!0,clearTimeout(te),u.isWin&&g.capture(b.container,re,me))},this.onContextMenuClose=me;var te;function me(){clearTimeout(te),te=setTimeout(function(){T&&(E.style.cssText=T,T=""),b.renderer.$isMousePressed=!1,b.renderer.$keepTextAreaAtCursor&&b.renderer.$moveTextAreaToCursor()},0)}var $e=function(X){b.textInput.onContextMenu(X),me()};g.addListener(E,"mouseup",$e,b),g.addListener(E,"mousedown",function(X){X.preventDefault(),me()},b),g.addListener(b.renderer.scroller,"contextmenu",$e,b),g.addListener(E,"contextmenu",$e,b),$&&be(_,b,E);function be(X,ae,oe){var G=null,U=!1;oe.addEventListener("keydown",function(ee){G&&clearTimeout(G),U=!0},!0),oe.addE
`?ce=c.end:re<q&&L[re-1]==" "?(ce=c.left,ve=p.option):re<q||re==q&&A!=q&&re==de?ce=c.left:de>A&&L.slice(0,de).split(`
`).length>2?ce=c.down:de>A&&L[de-1]==" "?(ce=c.right,ve=p.option):(de>A||de==A&&A!=q&&re==de)&&(ce=c.right),re!==de&&(ve|=p.shift),ce){var xe=ae.onCommandKey({},ve,ce);if(!xe&&ae.commands){ce=c.keyCodeToString(ce);var ge=ae.commands.findKeyCommand(ve,ce);ge&&ae.execCommand(ge)}q=re,A=de,P("")}}};document.addEventListener("selectionchange",Y),ae.on("destroy",function(){document.removeEventListener("selectionchange",Y)})}this.destroy=function(){E.parentElement&&E.parentElement.removeChild(E)}},h.TextInput=y,h.$setUserAgentForTests=function(_,b){C=_,$=b}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,h,m){var g=e("../lib/useragent"),a=0,u=550,r=function(){function n(i){i.$clickSelection=null;var o=i.editor;o.setDefaultHandler("mousedown",this.onMouseDown.bind(i)),o.setDefaultHandler("dblclick",this.onDoubleClick.bind(i)),o.setDefaultHandler("tripleclick",this.onTripleClick.bind(i)),o.setDefaultHandler("quadclick",this.onQuadClick.bind(i)),o.setDefaultHandler("mousewheel",this.onMouseWheel.bind(i));var s=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];s.forEach(function(c){i[c]=this[c]},this),i.selectByLines=this.extendSelectionBy.bind(i,"getLineRange"),i.selectByWords=this.extendSelectionBy.bind(i,"getWordRange")}return n.prototype.onMouseDown=function(i){var o=i.inSelection(),s=i.getDocumentPosition();this.mousedownEvent=i;var c=this.editor,p=i.getButton();if(p!==0){var $=c.getSelectionRange(),v=$.isEmpty();(v||p==1)&&c.selection.moveToPosition(s),p==2&&(c.textInput.onContextMenu(i.domEvent),g.isMozilla||i.preventDefault());return}if(this.mousedownEvent.time=Date.now(),o&&!c.isFocused()&&(c.focus(),this.$focusTimeout&&!this.$clickSelection&&!c.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(i);return}return this.captureMouse(i),this.startSelect(s,i.domEvent._clicks>1),i.preventDefault()},n.prototype.startSelect=function(i,o){i=i||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var s=this.editor;!this.mousedownEvent||(this.mousedownEvent.getShiftKey()?s.selection.selectToPosition(i):o||s.selection.moveToPosition(i),o||this.select(),s.setStyle("ace_selecting"),this.setState("select"))},n.prototype.select=function(){var i,o=this.editor,s=o.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var c=this.$clickSelection.comparePoint(s);if(c==-1)i=this.$clickSelection.end;else if(c==1)i=this.$clickSelection.start;else{var p=l(this.$clickSelection,s);s=p.cursor,i=p.anchor}o.selection.setSelectionAnchor(i.row,i.column)}o.selection.selectToPosition(s),o.renderer.scrollCursorIntoView()},n.prototype.extendSelectionBy=function(i){var o,s=this.editor,c=s.renderer.screenToTextCoordinates(this.x,this.y),p=s.selection[i](c.row,c.column);if(this.$clickSelection){var $=this.$clickSelection.comparePoint(p.start),v=this.$clickSelection.comparePoint(p.end);if($==-1&&v<=0)o=this.$clickSelection.end,(p.end.row!=c.row||p.end.column!=c.column)&&(c=p.start);else if(v==1&&$>=0)o=this.$clickSelection.start,(p.start.row!=c.row||p.start.column!=c.column)&&(c=p.end);else if($==-1&&v==1)c=p.end,o=p.start;else{var C=l(this.$clickSelection,c);c=C.cursor,o=C.anchor}s.selection.setSelectionAnchor(o.row,o.column)}s.selection.selectToPosition(c),s.renderer.scrollCursorIntoView()},n.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},n.prototype.focusWait=function(){var i=f(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),o=Date.now();(i>a||o-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},n.prototype.onDoubleClick=function(i){var o=i.getDocumentPosition(),s=this.editor,c=s.session,p=c.getBracketRange(o);p?(p.isEmpty()&&(p.start.column--,p.end.column++),this.setState("select")):(p=s.selection.getWordRange(o.row,o.column),this.setState("selectByWords")),this.$clickSelection=p,this.select()},n.prototype.onTripleClick=function(i){var o=i.getDocumentPosition(),s=
`))&&(this.seenBidi=!0,this.currentRow=null)},f.prototype.getDocumentRow=function(){var l=0,n=this.session.$screenRowCache;if(n.length){var i=this.session.$getRowCacheIndex(n,this.currentRow);i>=0&&(l=this.session.$docRowCache[i])}return l},f.prototype.getSplitIndex=function(){var l=0,n=this.session.$screenRowCache;if(n.length)for(var i,o=this.session.$getRowCacheIndex(n,this.currentRow);this.currentRow-l>0&&(i=this.session.$getRowCacheIndex(n,this.currentRow-l-1),i===o);)o=i,l++;else l=this.currentRow;return l},f.prototype.updateRowLine=function(l,n){l===void 0&&(l=this.getDocumentRow());var i=l===this.session.getLength()-1,o=i?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(l),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var s=this.session.$wrapData[l];s&&(n===void 0&&(n=this.getSplitIndex()),n>0&&s.length?(this.wrapIndent=s.indent,this.wrapOffset=this.wrapIndent*this.charWidths[g.L],this.line=n<s.length?this.line.substring(s[n-1],s[n]):this.line.substring(s[s.length-1])):this.line=this.line.substring(0,s[n]),n==s.length&&(this.line+=this.showInvisibles?o:g.DOT))}else this.line+=this.showInvisibles?o:g.DOT;var c=this.session,p=0,$;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(v,C){return v===" "||c.isFullWidth(v.charCodeAt(0))?($=v===" "?c.getScreenTabSize(C+p):2,p+=$-1,a.stringRepeat(g.DOT,$)):v}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==g.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},f.prototype.updateBidiMap=function(){var l=[];g.hasBidiCharacters(this.line,l)||this.isRtlDir?this.bidiMap=g.doBidiReorder(this.line,l,this.isRtlDir):this.bidiMap={}},f.prototype.markAsDirty=function(){this.currentRow=null},f.prototype.updateCharacterWidths=function(l){if(this.characterWidth!==l.$characterSize.width){this.fontMetrics=l;var n=this.characterWidth=l.$characterSize.width,i=l.$measureCharWidth("\u05D4");this.charWidths[g.L]=this.charWidths[g.EN]=this.charWidths[g.ON_R]=n,this.charWidths[g.R]=this.charWidths[g.AN]=i,this.charWidths[g.R_H]=i*.45,this.charWidths[g.B]=this.charWidths[g.RLE]=0,this.currentRow=null}},f.prototype.setShowInvisibles=function(l){this.showInvisibles=l,this.currentRow=null},f.prototype.setEolChar=function(l){this.EOL=l},f.prototype.setContentWidth=function(l){this.contentWidth=l},f.prototype.isRtlLine=function(l){return this.$isRtl?!0:l!=null?this.session.getLine(l).charAt(0)==this.RLE:this.isRtlDir},f.prototype.setRtlDirection=function(l,n){for(var i=l.getCursorPosition(),o=l.selection.getSelectionAnchor().row;o<=i.row;o++)!n&&l.session.getLine(o).charAt(0)===l.session.$bidiHandler.RLE?l.session.doc.removeInLine(o,0,1):n&&l.session.getLine(o).charAt(0)!==l.session.$bidiHandler.RLE&&l.session.doc.insert({column:0,row:o},l.session.$bidiHandler.RLE)},f.prototype.getPosLeft=function(l){l-=this.wrapIndent;var n=this.line.charAt(0)===this.RLE?1:0,i=l>n?this.session.getOverwrite()?l:l-1:n,o=g.getVisualFromLogicalIdx(i,this.bidiMap),s=this.bidiMap.bidiLevels,c=0;!this.session.getOverwrite()&&l<=n&&s[o]%2!=0&&o++;for(var p=0;p<o;p++)c+=this.charWidths[s[p]];return!this.session.getOverwrite()&&l>n&&s[o]%2==0&&(c+=this.charWidths[s[o]]),this.wrapIndent&&(c+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(c+=this.rtlLineOffset),c},f.prototype.getSelections=function(l,n){var i=this.bidiMap,o=i.bidiLevels,s,c=[],p=0,$=Math.min(l,n)-this.wrapIndent,v=Math.max(l,n)-this.wrapIndent,C=!1,y=!1,_=0;this.wrapIndent&&(p+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var b,E=0;E<o.length;E++)b=i.logicalFromVisual[E],s=o[E],C=b>=$&&b<v,C&&!y?_=p:!C&&y&&c.push({left:_,width:p-_}),p+=this.charWidths[s],y=C;if(C&&E===o.length&&c.push({left:_,width:p-_}),this.isRtlDir)for(var x=0;x<c.length;x++)c[x].left+=this.rtlLineOffset;return c},f.prototype.offsetToCol=function(l){this.isRtlDir&&(l-=this.rtlLineOffset);var n=0,l=Math.max(l,0),i=0,o=0,s=this.bidiMap.bidiLevels,c=this.
`||b==`\r
`){s(y);var S="";p.isMaybeInsertedClosing(E,x)&&(S=r.stringRepeat("}",n.maybeInsertedBrackets),p.clearMaybeInsertedClosing());var k=x.substring(E.column,E.column+1);if(k==="}"){var w=_.findMatchingBracket({row:E.row,column:E.column+1},"}");if(!w)return null;var L=this.$getIndent(_.getLine(w.row))}else if(S)var L=this.$getIndent(x);else{p.clearMaybeInsertedClosing();return}var q=L+_.getTabString();return{text:`
`+q+`
`+L+S,selection:[1,q.length,1,q.length]}}else p.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(v,C,y,_,b){var E=_.doc.getTextRange(b);if(!b.isMultiLine()&&E=="{"){s(y);var x=_.doc.getLine(b.start.row),O=x.substring(b.end.column,b.end.column+1);if(O=="}")return b.end.column++,b;n.maybeInsertedBrackets--}}),this.add("parens","insertion",function(v,C,y,_,b){if(b=="("){s(y);var E=y.getSelectionRange(),x=_.doc.getTextRange(E);if(x!==""&&y.getWrapBehavioursEnabled())return c(E,x,"(",")");if(p.isSaneInsertion(y,_))return p.recordAutoInsert(y,_,")"),{text:"()",selection:[1,1]}}else if(b==")"){s(y);var O=y.getCursorPosition(),M=_.doc.getLine(O.row),k=M.substring(O.column,O.column+1);if(k==")"){var T=_.$findOpeningBracket(")",{column:O.column+1,row:O.row});if(T!==null&&p.isAutoInsertedClosing(O,M,b))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(v,C,y,_,b){var E=_.doc.getTextRange(b);if(!b.isMultiLine()&&E=="("){s(y);var x=_.doc.getLine(b.start.row),O=x.substring(b.start.column+1,b.start.column+2);if(O==")")return b.end.column++,b}}),this.add("brackets","insertion",function(v,C,y,_,b){if(b=="["){s(y);var E=y.getSelectionRange(),x=_.doc.getTextRange(E);if(x!==""&&y.getWrapBehavioursEnabled())return c(E,x,"[","]");if(p.isSaneInsertion(y,_))return p.recordAutoInsert(y,_,"]"),{text:"[]",selection:[1,1]}}else if(b=="]"){s(y);var O=y.getCursorPosition(),M=_.doc.getLine(O.row),k=M.substring(O.column,O.column+1);if(k=="]"){var T=_.$findOpeningBracket("]",{column:O.column+1,row:O.row});if(T!==null&&p.isAutoInsertedClosing(O,M,b))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(v,C,y,_,b){var E=_.doc.getTextRange(b);if(!b.isMultiLine()&&E=="["){s(y);var x=_.doc.getLine(b.start.row),O=x.substring(b.start.column+1,b.start.column+2);if(O=="]")return b.end.column++,b}}),this.add("string_dquotes","insertion",function(v,C,y,_,b){var E=_.$mode.$quotes||o;if(b.length==1&&E[b]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(b)!=-1)return;s(y);var x=b,O=y.getSelectionRange(),M=_.doc.getTextRange(O);if(M!==""&&(M.length!=1||!E[M])&&y.getWrapBehavioursEnabled())return c(O,M,x,x);if(!M){var k=y.getCursorPosition(),T=_.doc.getLine(k.row),S=T.substring(k.column-1,k.column),w=T.substring(k.column,k.column+1),L=_.getTokenAt(k.row,k.column),q=_.getTokenAt(k.row,k.column+1);if(S=="\\"&&L&&/escape/.test(L.type))return null;var A=L&&/string|escape/.test(L.type),I=!q||/string|escape/.test(q.type),F;if(w==x)F=A!==I,F&&/string\.end/.test(q.type)&&(F=!1);else{if(A&&!I||A&&I)return null;var V=_.$mode.tokenRe;V.lastIndex=0;var R=V.test(S);V.lastIndex=0;var B=V.test(w),N=_.$mode.$pairQuotesAfter,P=N&&N[x]&&N[x].test(S);if(!P&&R||B||w&&!/[\s;,.})\]\\]/.test(w))return null;var j=T[k.column-2];if(S==x&&(j==x||V.test(j)))return null;F=!0}return{text:F?x+x:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(v,C,y,_,b){var E=_.$mode.$quotes||o,x=_.doc.getTextRange(b);if(!b.isMultiLine()&&E.hasOwnProperty(x)){s(y);var O=_.doc.getLine(b.start.row),M=O.substring(b.start.column+1,b.start.column+2);if(M==x)return b.end.column++,b}}),$.closeDocComment!==!1&&this.add("doc comment end","insertion",function(v,C,y,_,b){if(v==="doc-start"&&(b===`
`||b===`\r
`)&&y.selection.isEmpty()){var E=y.getCursorPosition(),x=_.doc.getLine(E.row),O=_.doc.getLine(E.row+1),M=this.$getIndent(x);if(/\s*\*/.test(O))return/^\s*\*/.test(x)?{text:b+M+"* ",selection:[1,3+M.length,1,3+M.length]}:{text:b+M+" * ",selection:[1,3+M.length,1,3+M.length]};if(/\/\*\*/.test(x.substring(0,E.column)))return{text:b+M+" * "+b+" "+M+"*/",selection:[1,4+M.length,1,4+M.length]}}})},p.isSaneInsertion=function($,v){var C=$.getCursorPosition(),y=new u(v,C.row,C.column);if(!this.$matchTokenType(y.getCurrentToken()||"text",f)){if(/[)}\]]/.test($.session.getLine(C.row)[C.column]))return!0;var _=new u(v,C.row,C.column+1);if(!this.$matchTokenType(_.getCurrentToken()||"text",f))return!1}return y.stepForward(),y.getCurrentTokenRow()!==C.row||this.$matchTokenType(y.getCurrentToken()||"text",l)},p.$matchTokenType=function($,v){return v.indexOf($.type||$)>-1},p.recordAutoInsert=function($,v,C){var y=$.getCursorPosition(),_=v.doc.getLine(y.row);this.isAutoInsertedClosing(y,_,n.autoInsertedLineEnd[0])||(n.autoInsertedBrackets=0),n.autoInsertedRow=y.row,n.autoInsertedLineEnd=C+_.substr(y.column),n.autoInsertedBrackets++},p.recordMaybeInsert=function($,v,C){var y=$.getCursorPosition(),_=v.doc.getLine(y.row);this.isMaybeInsertedClosing(y,_)||(n.maybeInsertedBrackets=0),n.maybeInsertedRow=y.row,n.maybeInsertedLineStart=_.substr(0,y.column)+C,n.maybeInsertedLineEnd=_.substr(y.column),n.maybeInsertedBrackets++},p.isAutoInsertedClosing=function($,v,C){return n.autoInsertedBrackets>0&&$.row===n.autoInsertedRow&&C===n.autoInsertedLineEnd[0]&&v.substr($.column)===n.autoInsertedLineEnd},p.isMaybeInsertedClosing=function($,v){return n.maybeInsertedBrackets>0&&$.row===n.maybeInsertedRow&&v.substr($.column)===n.maybeInsertedLineEnd&&v.substr(0,$.column)==n.maybeInsertedLineStart},p.popAutoInsertedClosing=function(){n.autoInsertedLineEnd=n.autoInsertedLineEnd.substr(1),n.autoInsertedBrackets--},p.clearMaybeInsertedClosing=function(){n&&(n.maybeInsertedBrackets=0,n.maybeInsertedRow=-1)},g.inherits(p,a),h.CstyleBehaviour=p}),ace.define("ace/unicode",["require","exports","module"],function(e,h,m){for(var g=[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")},n.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
`;case"unix":return`
`;default:return this.$autoNewLine||`
`}},n.prototype.setNewLineMode=function(i){this.$newLineMode!==i&&(this.$newLineMode=i,this._signal("changeNewLineMode"))},n.prototype.getNewLineMode=function(){return this.$newLineMode},n.prototype.isNewLine=function(i){return i==`\r
`||i=="\r"||i==`
`},n.prototype.getLine=function(i){return this.$lines[i]||""},n.prototype.getLines=function(i,o){return this.$lines.slice(i,o+1)},n.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},n.prototype.getLength=function(){return this.$lines.length},n.prototype.getTextRange=function(i){return this.getLinesForRange(i).join(this.getNewLineCharacter())},n.prototype.getLinesForRange=function(i){var o;if(i.start.row===i.end.row)o=[this.getLine(i.start.row).substring(i.start.column,i.end.column)];else{o=this.getLines(i.start.row,i.end.row),o[0]=(o[0]||"").substring(i.start.column);var s=o.length-1;i.end.row-i.start.row==s&&(o[s]=o[s].substring(0,i.end.column))}return o},n.prototype.insertLines=function(i,o){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(i,o)},n.prototype.removeLines=function(i,o){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(i,o)},n.prototype.insertNewLine=function(i){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(i,["",""])},n.prototype.insert=function(i,o){return this.getLength()<=1&&this.$detectNewLine(o),this.insertMergedLines(i,this.$split(o))},n.prototype.insertInLine=function(i,o){var s=this.clippedPos(i.row,i.column),c=this.pos(i.row,i.column+o.length);return this.applyDelta({start:s,end:c,action:"insert",lines:[o]},!0),this.clonePos(c)},n.prototype.clippedPos=function(i,o){var s=this.getLength();i===void 0?i=s:i<0?i=0:i>=s&&(i=s-1,o=void 0);var c=this.getLine(i);return o==null&&(o=c.length),o=Math.min(Math.max(o,0),c.length),{row:i,column:o}},n.prototype.clonePos=function(i){return{row:i.row,column:i.column}},n.prototype.pos=function(i,o){return{row:i,column:o}},n.prototype.$clipPosition=function(i){var o=this.getLength();return i.row>=o?(i.row=Math.max(0,o-1),i.column=this.getLine(o-1).length):(i.row=Math.max(0,i.row),i.column=Math.min(Math.max(i.column,0),this.getLine(i.row).length)),i},n.prototype.insertFullLines=function(i,o){i=Math.min(Math.max(i,0),this.getLength());var s=0;i<this.getLength()?(o=o.concat([""]),s=0):(o=[""].concat(o),i--,s=this.$lines[i].length),this.insertMergedLines({row:i,column:s},o)},n.prototype.insertMergedLines=function(i,o){var s=this.clippedPos(i.row,i.column),c={row:s.row+o.length-1,column:(o.length==1?s.column:0)+o[o.length-1].length};return this.applyDelta({start:s,end:c,action:"insert",lines:o}),this.clonePos(c)},n.prototype.remove=function(i){var o=this.clippedPos(i.start.row,i.start.column),s=this.clippedPos(i.end.row,i.end.column);return this.applyDelta({start:o,end:s,action:"remove",lines:this.getLinesForRange({start:o,end:s})}),this.clonePos(o)},n.prototype.removeInLine=function(i,o,s){var c=this.clippedPos(i,o),p=this.clippedPos(i,s);return this.applyDelta({start:c,end:p,action:"remove",lines:this.getLinesForRange({start:c,end:p})},!0),this.clonePos(c)},n.prototype.removeFullLines=function(i,o){i=Math.min(Math.max(0,i),this.getLength()-1),o=Math.min(Math.max(0,o),this.getLength()-1);var s=o==this.getLength()-1&&i>0,c=o<this.getLength()-1,p=s?i-1:i,$=s?this.getLine(p).length:0,v=c?o+1:o,C=c?0:this.getLine(v).length,y=new r(p,$,v,C),_=this.$lines.slice(i,o+1);return this.applyDelta({start:y.start,end:y.end,action:"remove",lines:this.getLinesForRange(y)}),_},n.prototype.removeNewLine=function(i){i<this.getLength()-1&&i>=0&&this.applyDelta({start:this.pos(i,this.getLine(i).length),end:this.pos(i+1,0),action:"remove",lines:["",""]})},n.prototype.replace=function(i,o){if(i instanceof r||(i=r.fromPoints(i.start,i.end)),o.length===0&&i.isEmpty())return i.start;if(o==this.getTextRange(i))return i.end;this.remove(i);var s;return o?s=this.insert(i.start,o):s=i.start,s},n.prototype.applyDeltas=function(i){for(var o=0;o<i.length;o++)this.applyDelta(i[o])},n.prototype.revertDeltas=function(i){for(var o=i.length-1;o>=0;o--)this.revertDelta(i[o])},n.prototype.applyDelta=function(i,o){var s=i.action=="insert"
---
`+n(this.$redoStack)},_}();g.prototype.hasUndo=g.prototype.canUndo,g.prototype.hasRedo=g.prototype.canRedo,g.prototype.isClean=g.prototype.isAtBookmark,g.prototype.markClean=g.prototype.bookmark;function a(_,b){for(var E=b;E--;){var x=_[E];if(x&&!x[0].ignore){for(;E<b-1;){var O=s(_[E],_[E+1]);_[E]=O[0],_[E+1]=O[1],E++}return!0}}}var u=e("./range").Range,r=u.comparePoints;u.comparePoints;function f(_){return{row:_.row,column:_.column}}function l(_){return{start:f(_.start),end:f(_.end),action:_.action,lines:_.lines.slice()}}function n(_){if(_=_||this,Array.isArray(_))return _.map(n).join(`
`);var b="";return _.action?(b=_.action=="insert"?"+":"-",b+="["+_.lines+"]"):_.value&&(Array.isArray(_.value)?b=_.value.map(i).join(`
`):b=i(_.value)),_.start&&(b+=i(_)),(_.id||_.rev)&&(b+=" ("+(_.id||_.rev)+")"),b}function i(_){return _.start.row+":"+_.start.column+"=>"+_.end.row+":"+_.end.column}function o(_,b){var E=_.action=="insert",x=b.action=="insert";if(E&&x)if(r(b.start,_.end)>=0)p(b,_,-1);else if(r(b.start,_.start)<=0)p(_,b,1);else return null;else if(E&&!x)if(r(b.start,_.end)>=0)p(b,_,-1);else if(r(b.end,_.start)<=0)p(_,b,-1);else return null;else if(!E&&x)if(r(b.start,_.start)>=0)p(b,_,1);else if(r(b.start,_.start)<=0)p(_,b,1);else return null;else if(!E&&!x)if(r(b.start,_.start)>=0)p(b,_,1);else if(r(b.end,_.start)<=0)p(_,b,-1);else return null;return[b,_]}function s(_,b){for(var E=_.length;E--;)for(var x=0;x<b.length;x++)if(!o(_[E],b[x])){for(;E<_.length;){for(;x--;)o(b[x],_[E]);x=b.length,E++}return[_,b]}return _.selectionBefore=b.selectionBefore=_.selectionAfter=b.selectionAfter=null,[b,_]}function c(_,b){var E=_.action=="insert",x=b.action=="insert";if(E&&x)r(_.start,b.start)<0?p(b,_,1):p(_,b,1);else if(E&&!x)r(_.start,b.end)>=0?p(_,b,-1):(r(_.start,b.start)<=0||p(_,u.fromPoints(b.start,_.start),-1),p(b,_,1));else if(!E&&x)r(b.start,_.end)>=0?p(b,_,-1):(r(b.start,_.start)<=0||p(b,u.fromPoints(_.start,b.start),-1),p(_,b,1));else if(!E&&!x)if(r(b.start,_.end)>=0)p(b,_,-1);else if(r(b.end,_.start)<=0)p(_,b,-1);else{var O,M;return r(_.start,b.start)<0&&(O=_,_=v(_,b.start)),r(_.end,b.end)>0&&(M=v(_,b.end)),$(b.end,_.start,_.end,-1),M&&!O&&(_.lines=M.lines,_.start=M.start,_.end=M.end,M=_),[b,O,M].filter(Boolean)}return[b,_]}function p(_,b,E){$(_.start,b.start,b.end,E),$(_.end,b.start,b.end,E)}function $(_,b,E,x){_.row==(x==1?b:E).row&&(_.column+=x*(E.column-b.column)),_.row+=x*(E.row-b.row)}function v(_,b){var E=_.lines,x=_.end;_.end=f(b);var O=_.end.row-_.start.row,M=E.splice(O,E.length),k=O?b.column:b.column-_.start.column;E.push(M[0].substring(0,k)),M[0]=M[0].substr(k);var T={start:f(b),end:x,lines:M,action:_.action};return T}function C(_,b){b=l(b);for(var E=_.length;E--;){for(var x=_[E],O=0;O<x.length;O++){var M=x[O],k=c(M,b);b=k[0],k.length!=2&&(k[2]?(x.splice(O+1,1,k[1],k[2]),O++):k[1]||(x.splice(O,1),O--))}x.length||_.splice(E,1)}return _}function y(_,b){for(var E=0;E<b.length;E++)for(var x=b[E],O=0;O<x.length;O++)C(_,x[O])}h.UndoManager=g}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,h,m){var g=e("../range").Range,a=function(){function u(r,f){this.foldData=r,Array.isArray(f)?this.folds=f:f=this.folds=[f];var l=f[f.length-1];this.range=new g(f[0].start.row,f[0].start.column,l.end.row,l.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(n){n.setFoldLine(this)},this)}return u.prototype.shiftRow=function(r){this.start.row+=r,this.end.row+=r,this.folds.forEach(function(f){f.start.row+=r,f.end.row+=r})},u.prototype.addFold=function(r){if(r.sameRow){if(r.start.row<this.startRow||r.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(r),this.folds.sort(function(f,l){return-f.range.compareEnd(l.start.row,l.start.column)}),this.range.compareEnd(r.start.row,r.start.column)>0?(this.end.row=r.end.row,this.end.column=r.end.column):this.range.compareStart(r.end.row,r.end.column)<0&&(this.start.row=r.start.row,this.start.column=r.start.column)}else if(r.start.row==this.end.row)this.folds.push(r),this.end.row=r.end.row,this.end.column=r.end.column;else if(r.end.row==this.start.row)this.folds.unshift(r),this.start.row=r.start.row,this.start.column=r.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");r.foldLine=this},u.prototype.containsRow=function(r){return r>=this.start.row&&r<=this.end.row},u.prototype.walk=function(r,f,l){var n=0,i=this.folds,o,s,c,p=!0;f==null&&(f=this.end.row,l=this.end.column);for(var $=0;$<i.length;$++){if(o=i[$],s=o.range.compareStart(f,l),s==-1){r(null,f,l,n,p);return}if(c=r(null,o.start.row,o.start.column,n,p),c=!c&&r(o.placeholder,o.start.row,o.start.column,n),c||s===0)return;p=!o.sameRow,n=o.end.column}r(null,f,l,n,p)},u.prot
`)},u.prototype.idxToPosition=function(r){for(var f=0,l=0;l<this.folds.length;l++){var n=this.folds[l];if(r-=n.start.column-f,r<0)return{row:n.start.row,column:n.start.column+r};if(r-=n.placeholder.length,r<0)return n.start;f=n.end.column}return{row:this.end.row,column:this.end.column+r}},u}();h.FoldLine=a}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(e,h,m){var g=e("./range").Range,a=g.comparePoints,u=function(){function r(){this.ranges=[],this.$bias=1}return r.prototype.pointIndex=function(f,l,n){for(var i=this.ranges,o=n||0;o<i.length;o++){var s=i[o],c=a(f,s.end);if(!(c>0)){var p=a(f,s.start);return c===0?l&&p!==0?-o-2:o:p>0||p===0&&!l?o:-o-1}}return-o-1},r.prototype.add=function(f){var l=!f.isEmpty(),n=this.pointIndex(f.start,l);n<0&&(n=-n-1);var i=this.pointIndex(f.end,l,n);return i<0?i=-i-1:i++,this.ranges.splice(n,i-n,f)},r.prototype.addList=function(f){for(var l=[],n=f.length;n--;)l.push.apply(l,this.add(f[n]));return l},r.prototype.substractPoint=function(f){var l=this.pointIndex(f);if(l>=0)return this.ranges.splice(l,1)},r.prototype.merge=function(){var f=[],l=this.ranges;l=l.sort(function(c,p){return a(c.start,p.start)});for(var n=l[0],i,o=1;o<l.length;o++){i=n,n=l[o];var s=a(i.end,n.start);s<0||s==0&&!i.isEmpty()&&!n.isEmpty()||(a(i.end,n.end)<0&&(i.end.row=n.end.row,i.end.column=n.end.column),l.splice(o,1),f.push(n),n=i,o--)}return this.ranges=l,f},r.prototype.contains=function(f,l){return this.pointIndex({row:f,column:l})>=0},r.prototype.containsPoint=function(f){return this.pointIndex(f)>=0},r.prototype.rangeAtPoint=function(f){var l=this.pointIndex(f);if(l>=0)return this.ranges[l]},r.prototype.clipRows=function(f,l){var n=this.ranges;if(n[0].start.row>l||n[n.length-1].start.row<f)return[];var i=this.pointIndex({row:f,column:0});i<0&&(i=-i-1);var o=this.pointIndex({row:l,column:0},i);o<0&&(o=-o-1);for(var s=[],c=i;c<o;c++)s.push(n[c]);return s},r.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},r.prototype.attach=function(f){this.session&&this.detach(),this.session=f,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},r.prototype.detach=function(){!this.session||(this.session.removeListener("change",this.onChange),this.session=null)},r.prototype.$onChange=function(f){for(var l=f.start,n=f.end,i=l.row,o=n.row,s=this.ranges,c=0,p=s.length;c<p;c++){var $=s[c];if($.end.row>=i)break}if(f.action=="insert")for(var v=o-i,C=-l.column+n.column;c<p;c++){var $=s[c];if($.start.row>i)break;if($.start.row==i&&$.start.column>=l.column&&($.start.column==l.column&&this.$bias<=0||($.start.column+=C,$.start.row+=v)),$.end.row==i&&$.end.column>=l.column){if($.end.column==l.column&&this.$bias<0)continue;$.end.column==l.column&&C>0&&c<p-1&&$.end.column>$.start.column&&$.end.column==s[c+1].start.column&&($.end.column-=C),$.end.column+=C,$.end.row+=v}}else for(var v=i-o,C=l.column-n.column;c<p;c++){var $=s[c];if($.start.row>o)break;$.end.row<o&&(i<$.end.row||i==$.end.row&&l.column<$.end.column)?($.end.row=i,$.end.column=l.column):$.end.row==o?$.end.column<=n.column?(v||$.end.column>l.column)&&($.end.column=l.column,$.end.row=l.row):($.end.column+=C,$.end.row+=v):$.end.row>o&&($.end.row+=v),$.start.row<o&&(i<$.start.row||i==$.start.row&&l.column<$.start.column)?($.start.row=i,$.start.column=l.column):$.start.row==o?$.start.column<=n.column?(v||$.start.column>l.column)&&($.start.column=l.column,$.start.row=l.row):($.start.column+=C,$.start.row+=v):$.start.row>o&&($.start.row+=v)}if(v!=0&&c<p)for(;c<p;c++){var $=s[c];$.start.row+=v,$.end.row+=v}},r}();u.prototype.comparePoints=a,h.RangeList=u}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(e,h,m){var g=this&&this.__extends||function(){var i=function(o,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,p){c.__proto__=p}||function(c,p){for(var $ in p)Object.prototype.hasOwnProperty.call(p,$)&&(c[$]=p[$])},i(o,s)};return function(o,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)
`)},this.bgTokenizer=new s(new n().getTokenizer(),this);var w=this;this.bgTokenizer.on("update",function(L){w._signal("tokenizerUpdate",L)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof T!="object"||!T.getLine)&&(T=new o(T)),this.setDocument(T),this.selection=new l(this),this.$bidiHandler=new u(this),r.resetOptions(this),this.setMode(S),r._signal("session",this),this.destroyed=!1}return k.prototype.setDocument=function(T){this.doc&&this.doc.off("change",this.$onChange),this.doc=T,T.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},k.prototype.getDocument=function(){return this.doc},k.prototype.$resetRowCache=function(T){if(!T){this.$docRowCache=[],this.$screenRowCache=[];return}var S=this.$docRowCache.length,w=this.$getRowCacheIndex(this.$docRowCache,T)+1;S>w&&(this.$docRowCache.splice(w,S),this.$screenRowCache.splice(w,S))},k.prototype.$getRowCacheIndex=function(T,S){for(var w=0,L=T.length-1;w<=L;){var q=w+L>>1,A=T[q];if(S>A)w=q+1;else if(S<A)L=q-1;else return q}return w-1},k.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},k.prototype.onChangeFold=function(T){var S=T.data;this.$resetRowCache(S.start.row)},k.prototype.onChange=function(T){this.$modified=!0,this.$bidiHandler.onChange(T),this.$resetRowCache(T.start.row);var S=this.$updateInternalDataOnChange(T);!this.$fromUndo&&this.$undoManager&&(S&&S.length&&(this.$undoManager.add({action:"removeFolds",folds:S},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(T,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(T),this._signal("change",T)},k.prototype.setValue=function(T){this.doc.setValue(T),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},k.fromJSON=function(T){typeof T=="string"&&(T=JSON.parse(T));var S=new p;S.$undoStack=T.history.undo,S.$redoStack=T.history.redo,S.mark=T.history.mark,S.$rev=T.history.rev;var w=new k(T.value);return T.folds.forEach(function(L){w.addFold("...",i.fromPoints(L.start,L.end))}),w.setAnnotations(T.annotations),w.setBreakpoints(T.breakpoints),w.setMode(T.mode),w.setScrollLeft(T.scrollLeft),w.setScrollTop(T.scrollTop),w.setUndoManager(S),w.selection.fromJSON(T.selection),w},k.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(T){return T.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},k.prototype.toString=function(){return this.doc.getValue()},k.prototype.getSelection=function(){return this.selection},k.prototype.getState=function(T){return this.bgTokenizer.getState(T)},k.prototype.getTokens=function(T){return this.bgTokenizer.getTokens(T)},k.prototype.getTokenAt=function(T,S){var w=this.bgTokenizer.getTokens(T),L,q=0;if(S==null){var A=w.length-1;q=this.getLine(T).length}else for(var A=0;A<w.length&&(q+=w[A].value.length,!(q>=S));A++);return L=w[A],L?(L.index=A,L.start=q-L.value.length,L):null},k.prototype.setUndoManager=function(T){if(this.$undoManager=T,this.$informUndoManager&&this.$informUndoManager.cancel(),T){var S=this;T.addSession(this),this.$syncInformUndoManager=function(){S.$informUndoManager.cancel(),S.mergeUndoDeltas=!1},this.$informUndoManager=a.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},k.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},k.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},k.prototype.getTabString=function(){return this.getUseSoftTabs()?a.stringRepeat(" ",this.getTabSize()):" "},k.prototype.setUseSoftTabs=function(T){this.setOption("useSoftTabs",T)},k.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this
`},k.prototype.getWordRange=function(T,S){var w=this.getLine(T),L=!1;if(S>0&&(L=!!w.charAt(S-1).match(this.tokenRe)),L||(L=!!w.charAt(S).match(this.tokenRe)),L)var q=this.tokenRe;else if(/^\s+$/.test(w.slice(S-1,S+1)))var q=/\s/;else var q=this.nonTokenRe;var A=S;if(A>0){do A--;while(A>=0&&w.charAt(A).match(q));A++}for(var I=S;I<w.length&&w.charAt(I).match(q);)I++;return new i(T,A,T,I)},k.prototype.getAWordRange=function(T,S){for(var w=this.getWordRange(T,S),L=this.getLine(w.end.row);L.charAt(w.end.column).match(/[ \t]/);)w.end.column+=1;return w},k.prototype.setNewLineMode=function(T){this.doc.setNewLineMode(T)},k.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},k.prototype.setUseWorker=function(T){this.setOption("useWorker",T)},k.prototype.getUseWorker=function(){return this.$useWorker},k.prototype.onReloadTokenizer=function(T){var S=T.data;this.bgTokenizer.start(S.first),this._signal("tokenizerUpdate",T)},k.prototype.setMode=function(T,S){if(T&&typeof T=="object"){if(T.getTokenizer)return this.$onChangeMode(T);var w=T,L=w.path}else L=T||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new n),this.$modes[L]&&!w){this.$onChangeMode(this.$modes[L]),S&&S();return}this.$modeId=L,r.loadModule(["mode",L],function(q){if(this.$modeId!==L)return S&&S();this.$modes[L]&&!w?this.$onChangeMode(this.$modes[L]):q&&q.Mode&&(q=new q.Mode(w),w||(this.$modes[L]=q,q.$id=L),this.$onChangeMode(q)),S&&S()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},k.prototype.$onChangeMode=function(T,S){if(S||(this.$modeId=T.$id),this.$mode!==T){var w=this.$mode;this.$mode=T,this.$stopWorker(),this.$useWorker&&this.$startWorker();var L=T.getTokenizer();if(L.on!==void 0){var q=this.onReloadTokenizer.bind(this);L.on("update",q)}this.bgTokenizer.setTokenizer(L),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=T.tokenRe,this.nonTokenRe=T.nonTokenRe,S||(T.attachToSession&&T.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(T.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:w,mode:T}))}},k.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},k.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(T){r.warn("Could not load worker",T),this.$worker=null}},k.prototype.getMode=function(){return this.$mode},k.prototype.setScrollTop=function(T){this.$scrollTop===T||isNaN(T)||(this.$scrollTop=T,this._signal("changeScrollTop",T))},k.prototype.getScrollTop=function(){return this.$scrollTop},k.prototype.setScrollLeft=function(T){this.$scrollLeft===T||isNaN(T)||(this.$scrollLeft=T,this._signal("changeScrollLeft",T))},k.prototype.getScrollLeft=function(){return this.$scrollLeft},k.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},k.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var T=0;return this.lineWidgets.forEach(function(S){S&&S.screenWidth>T&&(T=S.screenWidth)}),this.lineWidgetWidth=T},k.prototype.$computeWidth=function(T){if(this.$modified||T){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var S=this.doc.getAllLines(),w=this.$rowLengthCache,L=0,q=0,A=this.$foldData[q],I=A?A.start.row:1/0,F=S.length,V=0;V<F;V++){if(V>I){if(V=A.end.row+1,V>=F)break;A=this.$foldData[q++],I=A?A.start.row:1/0}w[V]==null&&(w[V]=this.$getStringScreenWidth(S[V])[0]),w[V]>L&&(L=w[V])}this.screenWidth=L}},k.prototype.getLine=function(T){return this.doc.getLine(T)},k.prototype.getLines=function(T,S){return this.doc.getLines(T,S)},k.prototype.getLength=function(){return this.doc.getLength()},k.prototype.getTextRange=function(T){return this.doc.getTextRange(T||this.selection.getRange())},k.prototype.insert=function(T,S){return this.doc.insert(T,S)},k.prototype.remove=function(T){return this.doc.remove(T)},k.prototype.removeFullLines=function(T,S){return this.doc.remov
^`).split(`
`),s=[],c=0;c<o.length;c++)try{s.push(new RegExp(o[c],i))}catch{return!1}return s},l.prototype.$matchIterator=function(n,i){var o=this.$assembleRegExp(i);if(!o)return!1;var s=i.backwards==!0,c=i.skipCurrent!=!1,p=o.unicode,$=i.range,v=i.start;v||(v=$?$[s?"end":"start"]:n.selection.getRange()),v.start&&(v=v[c!=s?"end":"start"]);var C=$?$.start.row:0,y=$?$.end.row:n.getLength()-1;if(s)var _=function(x){var O=v.row;if(!E(O,v.column,x)){for(O--;O>=C;O--)if(E(O,Number.MAX_VALUE,x))return;if(i.wrap!=!1){for(O=y,C=v.row;O>=C;O--)if(E(O,Number.MAX_VALUE,x))return}}};else var _=function(O){var M=v.row;if(!E(M,v.column,O)){for(M=M+1;M<=y;M++)if(E(M,0,O))return;if(i.wrap!=!1){for(M=C,y=v.row;M<=y;M++)if(E(M,0,O))return}}};if(i.$isMultiLine)var b=o.length,E=function(x,O,M){var k=s?x-b+1:x;if(!(k<0||k+b>n.getLength())){var T=n.getLine(k),S=T.search(o[0]);if(!(!s&&S<O||S===-1)){for(var w=1;w<b;w++)if(T=n.getLine(k+w),T.search(o[w])==-1)return;var L=T.match(o[b-1])[0].length;if(!(s&&L>O)&&M(k,S,k+b-1,L))return!0}}};else if(s)var E=function(O,M,k){var T=n.getLine(O),S=[],w,L=0;for(o.lastIndex=0;w=o.exec(T);){var q=w[0].length;if(L=w.index,!q){if(L>=T.length)break;o.lastIndex=L+=g.skipEmptyMatch(T,L,p)}if(w.index+q>M)break;S.push(w.index,q)}for(var A=S.length-1;A>=0;A-=2){var I=S[A-1],q=S[A];if(k(O,I,O,I+q))return!0}};else var E=function(O,M,k){var T=n.getLine(O),S,w;for(o.lastIndex=M;w=o.exec(T);){var L=w[0].length;if(S=w.index,k(O,S,O,S+L))return!0;if(!L&&(o.lastIndex=S+=g.skipEmptyMatch(T,S,p),S>=T.length))return!1}};return{forEach:_}},l}();function f(l,n){var i=g.supportsLookbehind();function o($,v){v===void 0&&(v=!0);var C=i&&n.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return C.test($)||n.regExp?i&&n.$supportsUnicodeFlag?v?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var s=Array.from(l),c=s[0],p=s[s.length-1];return o(c)+l+o(p,!1)}h.Search=r}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,h,m){var g=this&&this.__extends||function(){var i=function(o,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,p){c.__proto__=p}||function(c,p){for(var $ in p)Object.prototype.hasOwnProperty.call(p,$)&&(c[$]=p[$])},i(o,s)};return function(o,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(o,s);function c(){this.constructor=o}o.prototype=s===null?Object.create(s):(c.prototype=s.prototype,new c)}}(),a=e("../lib/keys"),u=e("../lib/useragent"),r=a.KEY_MODS,f=function(){function i(o,s){this.$init(o,s,!1)}return i.prototype.$init=function(o,s,c){this.platform=s||(u.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(o),this.$singleCommand=c},i.prototype.addCommand=function(o){this.commands[o.name]&&this.removeCommand(o),this.commands[o.name]=o,o.bindKey&&this._buildKeyHash(o)},i.prototype.removeCommand=function(o,s){var c=o&&(typeof o=="string"?o:o.name);o=this.commands[c],s||delete this.commands[c];var p=this.commandKeyBinding;for(var $ in p){var v=p[$];if(v==o)delete p[$];else if(Array.isArray(v)){var C=v.indexOf(o);C!=-1&&(v.splice(C,1),v.length==1&&(p[$]=v[0]))}}},i.prototype.bindKey=function(o,s,c){if(typeof o=="object"&&o&&(c==null&&(c=o.position),o=o[this.platform]),!!o){if(typeof s=="function")return this.addCommand({exec:s,bindKey:o,name:s.name||o});o.split("|").forEach(function(p){var $="";if(p.indexOf(" ")!=-1){var v=p.split(/\s+/);p=v.pop(),v.forEach(function(_){var b=this.parseKeys(_),E=r[b.hashId]+b.key;$+=($?" ":"")+E,this._addCommandToBinding($,"chainKeys")},this),$+=" "}var C=this.parseKeys(p),y=r[C.hashId]+C.key;this._addCommandToBinding($+y,s,c)},this)}},i.prototype._addCommandToBinding=function(o,s,c){var p=this.commandKeyBinding,$;if(!s)delete p[o];else if(!p[o]||this.$singleCommand)p[o]=s;else{Array.isArray(p[o])?($=p[o].indexOf(s))!=-1&&p[o].splice($,1):p[o]=[p[o]],typeof c!="number"&&(c=l(s));var v=p[o];for($=0;$<v.length;$++){var C=v[$],y=l(C);if(y>c)break}v.splice($,0,s)}},i.prototype.
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(l){l.selection.clearSelection();var n=l.getCursorPosition();l.selection.moveTo(n.row-1,Number.MAX_VALUE),l.insert(`
`),n.row===0&&l.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(l){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),l.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:r("F1","F1"),exec:function(l){l.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:r(null,null),exec:function(l){l.prompt({$type:"modes"})},readOnly:!0}];for(var f=1;f<9;f++)h.commands.push({name:"foldToLevel"+f,description:"Fold To Level "+f,level:f,exec:function(l){l.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(e,h,m){var g=e("./lib/dom"),a=function(){function u(r){this.session=r,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 u.prototype.getRowLength=function(r){var f;return this.lineWidgets?f=this.lineWidgets[r]&&this.lineWidgets[r].rowCount||0:f=0,!this.$useWrapMode||!this.$wrapData[r]?1+f:this.$wrapData[r].length+1+f},u.prototype.$getWidgetScreenLength=function(){var r=0;return this.lineWidgets.forEach(function(f){f&&f.rowCount&&!f.hidden&&(r+=f.rowCount)}),r},u.prototype.$onChangeEditor=function(r){this.attach(r.editor)},u.prototype.attach=function(r){r&&r.widgetManager&&r.widgetManager!=this&&r.widgetManager.detach(),this.editor!=r&&(this.detach(),this.editor=r,r&&(r.widgetManager=this,r.renderer.on("beforeRender",this.measureWidgets),r.renderer.on("afterRender",this.renderWidgets)))},u.prototype.detach=function(r){var f=this.editor;if(!!f){this.editor=null,f.widgetManager=null,f.renderer.off("beforeRender",this.measureWidgets),f.renderer.off("afterRender",this.renderWidgets);var l=this.session.lineWidgets;l&&l.forEach(function(n){n&&n.el&&n.el.parentNode&&(n._inDocument=!1,n.el.parentNode.removeChild(n.el))})}},u.prototype.updateOnFold=function(r,f){var l=f.lineWidgets;if(!(!l||!r.action)){for(var n=r.data,i=n.start.row,o=n.end.row,s=r.action=="add",c=i+1;c<o;c++)l[c]&&(l[c].hidden=s);l[o]&&(s?l[i]?l[o].hidden=s:l[i]=l[o]:(l[i]==l[o]&&(l[i]=void 0),l[o].hidden=s))}},u.prototype.updateOnChange=function(r){var f=this.session.lineWidgets;if(!!f){var l=r.start.row,n=r.end.row-l;if(n!==0)if(r.action=="remove"){var i=f.splice(l+1,n);!f[l]&&i[i.length-1]&&(f[l]=i.pop()),i.forEach(function(s){s&&this.removeLineWidget(s)},this),this.$updateRows()}else{var o=new Array(n);f[l]&&f[l].column!=null&&r.start.column>f[l].column&&l++,o.unshift(l,0),f.splice.apply(f,o),this.$updateRows()}}},u.prototype.$updateRows=function(){var r=this.session.lineWidgets;if(!!r){var f=!0;r.forEach(function(l,n){if(l)for(f=!1,l.row=n;l.$oldWidget;)l.$oldWidget.row=n,l=l.$oldWidget}),f&&(this.session.lineWidgets=null)}},u.prototype.$registerLineWidget=function(r){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var f=this.session.lineWidgets[r.row];return f&&(r.$oldWidget=f,f.el&&f.el.parentNode&&(f.el.parentNode.removeChild(f.el),f._inDocument=!1)),this.session.lineWidgets[r.row]=r,r},u.prototype.addLineWidget=function(r){if(this.$registerLineWidget(r),r.session=this.session,!this.editor)return r;var f=this.editor.renderer;r.html&&!r.el&&(r.el=g.createElement("div"),r.el.innerHTML=r.html),r.text&&!r.el&&(r.el=g.createElement("div"),r.el.textContent=r.text),r.el&&(g.addCssClass(r.el,"ace_lineWidgetContainer"),r.className&&g.addCssClass(r.el,r.className),r.el.style.position="absolute",r.el.style.zIndex="5",f.container.appendChild(r.el),r._inDocument=!0
`)==-1){var V=p.fromPoints(I,I);V.end.column+=w.length,this.session.remove(V)}}else{var V=this.getSelectionRange();I=this.session.remove(V),this.clearSelection()}if(w==`
`||w==`\r
`){var P=q.getLine(I.row);if(I.column>P.search(/\S|$/)){var R=P.substr(I.column).search(/\S|$/);q.doc.removeInLine(I.row,I.column,I.column+R)}}this.clearSelection();var B=I.column,N=q.getState(I.row),P=q.getLine(I.row),j=A.checkOutdent(N,P,w);if(q.insert(I,w),F&&F.selection&&(F.selection.length==2?this.selection.setSelectionRange(new p(I.row,B+F.selection[0],I.row,B+F.selection[1])):this.selection.setSelectionRange(new p(I.row+F.selection[0],F.selection[1],I.row+F.selection[2],F.selection[3]))),this.$enableAutoIndent){if(q.getDocument().isNewLine(w)){var D=A.getNextLineIndent(N,P.slice(0,I.column),q.getTabString());q.insert({row:I.row+1,column:0},D)}j&&A.autoOutdent(N,q,I.row)}},S.prototype.autoIndent=function(){for(var w=this.session,L=w.getMode(),q=this.selection.isEmpty()?[new p(0,0,w.doc.getLength()-1,0)]:this.selection.getAllRanges(),A="",I="",F="",V=w.getTabString(),R=0;R<q.length;R++)for(var B=q[R].start.row,N=q[R].end.row,P=B;P<=N;P++){P>0&&(A=w.getState(P-1),I=w.getLine(P-1),F=L.getNextLineIndent(A,I,V));var j=w.getLine(P),D=L.$getIndent(j);if(F!==D){if(D.length>0){var W=new p(P,0,P,D.length);w.remove(W)}F.length>0&&w.insert({row:P,column:0},F)}L.autoOutdent(A,w,P)}},S.prototype.onTextInput=function(w,L){if(!L)return this.keyBinding.onTextInput(w);this.startOperation({command:{name:"insertstring"}});var q=this.applyComposition.bind(this,w,L);this.selection.rangeCount?this.forEachSelection(q):q(),this.endOperation()},S.prototype.applyComposition=function(w,L){if(L.extendLeft||L.extendRight){var q=this.selection.getRange();q.start.column-=L.extendLeft,q.end.column+=L.extendRight,q.start.column<0&&(q.start.row--,q.start.column+=this.session.getLine(q.start.row).length+1),this.selection.setRange(q),!w&&!q.isEmpty()&&this.remove()}if((w||!this.selection.isEmpty())&&this.insert(w,!0),L.restoreStart||L.restoreEnd){var q=this.selection.getRange();q.start.column-=L.restoreStart,q.end.column-=L.restoreEnd,this.selection.setRange(q)}},S.prototype.onCommandKey=function(w,L,q){return this.keyBinding.onCommandKey(w,L,q)},S.prototype.setOverwrite=function(w){this.session.setOverwrite(w)},S.prototype.getOverwrite=function(){return this.session.getOverwrite()},S.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},S.prototype.setScrollSpeed=function(w){this.setOption("scrollSpeed",w)},S.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},S.prototype.setDragDelay=function(w){this.setOption("dragDelay",w)},S.prototype.getDragDelay=function(){return this.getOption("dragDelay")},S.prototype.setSelectionStyle=function(w){this.setOption("selectionStyle",w)},S.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},S.prototype.setHighlightActiveLine=function(w){this.setOption("highlightActiveLine",w)},S.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},S.prototype.setHighlightGutterLine=function(w){this.setOption("highlightGutterLine",w)},S.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},S.prototype.setHighlightSelectedWord=function(w){this.setOption("highlightSelectedWord",w)},S.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},S.prototype.setAnimatedScroll=function(w){this.renderer.setAnimatedScroll(w)},S.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},S.prototype.setShowInvisibles=function(w){this.renderer.setShowInvisibles(w)},S.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},S.prototype.setDisplayIndentGuides=function(w){this.renderer.setDisplayIndentGuides(w)},S.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},S.prototype.setHighlightIndentGuides=function(w){this.renderer.setHighlightIndentGuides(w)},S.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},S.prototype.setShowPrintMargin=function(w){this.renderer.setShowPrintMargin(w)},S.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMa
`){var V=q.getLine(L.end.row);/^\s+$/.test(V)&&(L.end.column=V.length)}}I&&(L=I)}this.session.remove(L),this.clearSelection()},S.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var w=this.getSelectionRange();w.start.column==w.end.column&&w.start.row==w.end.row&&(w.end.column=0,w.end.row++),this.session.remove(w),this.clearSelection()},S.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var w=this.getCursorPosition();this.insert(`
`),this.moveCursorToPosition(w)},S.prototype.setGhostText=function(w,L){this.session.widgetManager||(this.session.widgetManager=new b(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(w,L)},S.prototype.removeGhostText=function(){!this.session.widgetManager||this.renderer.removeGhostText()},S.prototype.transposeLetters=function(){if(!!this.selection.isEmpty()){var w=this.getCursorPosition(),L=w.column;if(L!==0){var q=this.session.getLine(w.row),A,I;L<q.length?(A=q.charAt(L)+q.charAt(L-1),I=new p(w.row,L-1,w.row,L+1)):(A=q.charAt(L-1)+q.charAt(L-2),I=new p(w.row,L-2,w.row,L)),this.session.replace(I,A),this.session.selection.moveToPosition(I.end)}}},S.prototype.toLowerCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var L=this.getSelectionRange(),q=this.session.getTextRange(L);this.session.replace(L,q.toLowerCase()),this.selection.setSelectionRange(w)},S.prototype.toUpperCase=function(){var w=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var L=this.getSelectionRange(),q=this.session.getTextRange(L);this.session.replace(L,q.toUpperCase()),this.selection.setSelectionRange(w)},S.prototype.indent=function(){var w=this.session,L=this.getSelectionRange();if(L.start.row<L.end.row){var q=this.$getSelectedRows();w.indentRows(q.first,q.last," ");return}else if(L.start.column<L.end.column){var A=w.getTextRange(L);if(!/^\s+$/.test(A)){var q=this.$getSelectedRows();w.indentRows(q.first,q.last," ");return}}var I=w.getLine(L.start.row),F=L.start,V=w.getTabSize(),R=w.documentToScreenColumn(F.row,F.column);if(this.session.getUseSoftTabs())var B=V-R%V,N=r.stringRepeat(" ",B);else{for(var B=R%V;I[L.start.column-1]==" "&&B;)L.start.column--,B--;this.selection.setSelectionRange(L),N=" "}return this.insert(N)},S.prototype.blockIndent=function(){var w=this.$getSelectedRows();this.session.indentRows(w.first,w.last," ")},S.prototype.blockOutdent=function(){var w=this.session.getSelection();this.session.outdentRows(w.getRange())},S.prototype.sortLines=function(){for(var w=this.$getSelectedRows(),L=this.session,q=[],A=w.first;A<=w.last;A++)q.push(L.getLine(A));q.sort(function(V,R){return V.toLowerCase()<R.toLowerCase()?-1:V.toLowerCase()>R.toLowerCase()?1:0});for(var I=new p(0,0,0,0),A=w.first;A<=w.last;A++){var F=L.getLine(A);I.start.row=A,I.end.row=A,I.end.column=F.length,L.replace(I,q[A-w.first])}},S.prototype.toggleCommentLines=function(){var w=this.session.getState(this.getCursorPosition().row),L=this.$getSelectedRows();this.session.getMode().toggleCommentLines(w,this.session,L.first,L.last)},S.prototype.toggleBlockComment=function(){var w=this.getCursorPosition(),L=this.session.getState(w.row),q=this.getSelectionRange();this.session.getMode().toggleBlockComment(L,this.session,q,w)},S.prototype.getNumberAt=function(w,L){var q=/[\-]?[0-9]+(?:\.[0-9]+)?/g;q.lastIndex=0;for(var A=this.session.getLine(w);q.lastIndex<L;){var I=q.exec(A);if(I.index<=L&&I.index+I[0].length>=L){var F={value:I[0],start:I.index,end:I.index+I[0].length};return F}}return null},S.prototype.modifyNumber=function(w){var L=this.selection.getCursor().row,q=this.selection.getCursor().column,A=new p(L,q-1,L,q),I=this.session.getTextRange(A);if(!isNaN(parseFloat(I))&&isFinite(I)){var F=this.getNumberAt(L,q);if(F){var V=F.value.indexOf(".")>=0?F.start+F.value.indexOf(".")+1:F.end,R=F.start+F.value.length-V,B=parseFloat(F.value);B*=Math.pow(10,R),V!==F.end&&q<V?w*=Math.pow(10,F.end-q-1):w*=Math.pow(10,F.end-q),B+=w,B/=Math.pow(10,R);var N=B.toFixed(R),P=new p(L,F.start,L,F.end);this.session.replace(P,N),this.moveCursorTo(L,Math.max(F.start+1,q+N.length-F.value.length))}}else this.toggleWord()},S.prototype.toggleWord=function(){var w=this.selection.getCursor().row,L=this.selection.getCursor().column;this.selection.selectWord();var q=this.getSelectedText(),A=this.selection.getWordRange().start.column,I=q.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),F=L-A-1;F<0&&(F=0);var V=0,R=0,B=this;q.match(/[A-Za-z0-9_]+/)&&I.forEach(function(Z,ie){R=V+Z.length,F>=V&&F<
`&&s.getNewLineMode()!="windows",p=c?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=p)return this.EOL_CHAR=p,!0},o.prototype.setPadding=function(s){this.$padding=s,this.element.style.margin="0 "+s+"px"},o.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},o.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},o.prototype.$setFontMetrics=function(s){this.$fontMetrics=s,this.$fontMetrics.on("changeCharacterSize",function(c){this._signal("changeCharacterSize",c)}.bind(this)),this.$pollSizeChanges()},o.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},o.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},o.prototype.setSession=function(s){this.session=s,s&&this.$computeTabString()},o.prototype.setShowInvisibles=function(s){return this.showInvisibles==s?!1:(this.showInvisibles=s,typeof s=="string"?(this.showSpaces=/tab/i.test(s),this.showTabs=/space/i.test(s),this.showEOL=/eol/i.test(s)):this.showSpaces=this.showTabs=this.showEOL=s,this.$computeTabString(),!0)},o.prototype.setDisplayIndentGuides=function(s){return this.displayIndentGuides==s?!1:(this.displayIndentGuides=s,this.$computeTabString(),!0)},o.prototype.setHighlightIndentGuides=function(s){return this.$highlightIndentGuides===s?!1:(this.$highlightIndentGuides=s,s)},o.prototype.$computeTabString=function(){var s=this.session.getTabSize();this.tabSize=s;for(var c=this.$tabStrings=[0],p=1;p<s+1;p++)if(this.showTabs){var $=this.dom.createElement("span");$.className="ace_invisible ace_invisible_tab",$.textContent=u.stringRepeat(this.TAB_CHAR,p),c.push($)}else c.push(this.dom.createTextNode(u.stringRepeat(" ",p),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var v="ace_indent-guide",C=this.showSpaces?" ace_invisible ace_invisible_space":"",y=this.showSpaces?u.stringRepeat(this.SPACE_CHAR,this.tabSize):u.stringRepeat(" ",this.tabSize),_=this.showTabs?" ace_invisible ace_invisible_tab":"",b=this.showTabs?u.stringRepeat(this.TAB_CHAR,this.tabSize):y,$=this.dom.createElement("span");$.className=v+C,$.textContent=y,this.$tabStrings[" "]=$;var $=this.dom.createElement("span");$.className=v+_,$.textContent=b,this.$tabStrings[" "]=$}},o.prototype.updateLines=function(s,c,p){if(this.config.lastRow!=s.lastRow||this.config.firstRow!=s.firstRow)return this.update(s);this.config=s;for(var $=Math.max(c,s.firstRow),v=Math.min(p,s.lastRow),C=this.element.childNodes,y=0,b=s.firstRow;b<$;b++){var E=this.session.getFoldLine(b);if(E)if(E.containsRow($)){$=E.start.row;break}else b=E.end.row;y++}for(var _=!1,b=$,E=this.session.getNextFoldLine(b),x=E?E.start.row:1/0;b>x&&(b=E.end.row+1,E=this.session.getNextFoldLine(b,E),x=E?E.start.row:1/0),!(b>v);){var O=C[y++];if(O){this.dom.removeChildren(O),this.$renderLine(O,b,b==x?E:!1),_&&(O.style.top=this.$lines.computeLineTop(b,s,this.session)+"px");var M=s.lineHeight*this.session.getRowLength(b)+"px";O.style.height!=M&&(_=!0,O.style.height=M)}b++}if(_)for(;y<this.$lines.cells.length;){var k=this.$lines.cells[y++];k.element.style.top=this.$lines.computeLineTop(k.row,s,this.session)+"px"}},o.prototype.scrollLines=function(s){var c=this.config;if(this.config=s,this.$lines.pageChanged(c,s))return this.update(s);this.$lines.moveContainer(s);var p=s.lastRow,$=c?c.lastRow:-1;if(!c||$<s.firstRow)return this.update(s);if(p<c.firstRow)return this.update(s);if(!c||c.lastRow<s.firstRow)return this.update(s);if(s.lastRow<c.firstRow)return this.update(s);if(c.firstRow<s.firstRow)for(var v=this.session.getFoldedRowCount(c.firstRow,s.firstRow-1);v>0;v--)this.$lines.shift();if(c.lastRow>s.lastRow)for(var v=this.session.getFoldedRowCount(s.lastRow+1,c.lastRow);v>0;v--)this.$lines.pop();s.firstRow<c.firstRow&&this.$lines.unshift(this.$renderLinesFragment(s,s.firstRow,c.firstRow-1)),s.lastRow>c.lastRow&&this.$lines.push(this.$renderLinesFragment(s,c.lastRow+1,s.lastRow)),this.$highlightIndentGuide()},o.prototype.$renderLinesFragment=function(s,c,p){for(var $=[],v=c,C=t
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 l=function(){function o(s,c){this.element=u.createElement("div"),this.element.className="ace_sb"+c,this.inner=u.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,s.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,r.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return o.prototype.setVisible=function(s){this.element.style.display=s?"":"none",this.isVisible=s,this.coeff=1},o}();a.implement(l.prototype,f);var n=function(o){g(s,o);function s(c,p){var $=o.call(this,c,"-v")||this;return $.scrollTop=0,$.scrollHeight=0,$.parent=c,$.width=$.VScrollWidth,$.renderer=p,$.inner.style.width=$.element.style.width=($.width||15)+"px",$.$minWidth=0,$}return s.prototype.onMouseDown=function(c,p){if(c==="mousedown"&&!(r.getButton(p)!==0||p.detail===2)){if(p.target===this.inner){var $=this,v=p.clientY,C=function(M){v=M.clientY},y=function(){clearInterval(x)},_=p.clientY,b=this.thumbTop,E=function(){if(v!==void 0){var M=$.scrollTopFromThumbTop(b+v-_);M!==$.scrollTop&&$._emit("scroll",{data:M})}};r.capture(this.inner,C,y);var x=setInterval(E,20);return r.preventDefault(p)}var O=p.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(O)}),r.preventDefault(p)}},s.prototype.getHeight=function(){return this.height},s.prototype.scrollTopFromThumbTop=function(c){var p=c*(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},s.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},s.prototype.setHeight=function(c){this.height=Math.max(0,c),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},s.prototype.setScrollHeight=function(c,p){this.pageHeight===c&&!p||(this.pageHeight=c,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})))},s.prototype.setScrollTop=function(c){this.scrollTop=c,c<0&&(c=0),this.thumbTop=c*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},s}(l);n.prototype.setInnerHeight=n.prototype.setScrollHeight;var i=function(o){g(s,o);function s(c,p){var $=o.call(this,c,"-h")||this;return $.scrollLeft=0,$.scrollWidth=0,$.height=$.HScrollHeight,$.inner.style.height=$.element.style.height=($.height||12)+"px",$.renderer=p,$}return s.prototype.onMouseDown=function(c,p){if(c==="mousedown"&&!(r.getButton(p)!==0||p.detail===2)){if(p.target===this.inner){var $=this,v=p.clientX,C=function(M){v=M.clientX},y=function(){clearInterval(x)},_=p.clientX,b=this.thumbLeft,E=function(){if(v!==void 0){var M=$.scrollLeftFromThumbLeft(b+v-_);M!==$.scrollLeft&&$._emit("scroll",{data:M})}};r.capture(this.inner,C,y);var x=setInterval(E,20);return r.preventDefault(p)}var O=p.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(O)}),r.preventDefault(p)}},s.prototype.getHeight=function(){return this.isVisible?this.height:0},s.prototype.scrollLeftFromThumbLeft=function(c){var p=c*(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},s.prototype.setWidth=function(c){this.width=Math.max(0,c),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},s.prototype.setScrollWidth=function(c,p){this.pageWidth===c&&!p||(this.pageWidth=c,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 &nbsp; 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(e,h,m){var g=e("../lib/dom"),a=e("../lib/oop"),u=e("../lib/event_emitter").EventEmitter,r=function(){function f(l,n){this.canvas=g.createElement("canvas"),this.renderer=n,this.pixelRatio=1,this.maxHeight=n.layerConfig.maxHeight,this.lineHeight=n.layerConfig.lineHeight,this.canvasHeight=l.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=l.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=0+"px",this.canvas.style.right=0+"px",this.canvas.style.zIndex=7+"px",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)"},l.element.appendChild(this.canvas)}return f.prototype.$updateDecorators=function(l){var n=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(l){this.maxHeight=l.maxHeight,this.lineHeight=l.lineHeight,this.canvasHeight=l.height;var i=(l.lastRow+1)*this.lineHeight;i<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var o=this.canvas.getContext("2d");function s(k,T){return k.priority<T.priority?-1:k.priority>T.priority?1:0}var c=this.renderer.session.$annotations;if(o.clearRect(0,0,this.canvas.width,this.canvas.height),c){var p={info:1,warning:2,error:3};c.forEach(function(k){k.priority=p[k.type]||null}),c=c.sort(s);for(var $=this.renderer.session.$foldData,v=0;v<c.length;v++){var C=c[v].row,y=this.compensateFoldRows(C,$),_=Math.round((C-y)*this.lineHeight*this.heightRatio),b=Math.round((C-y)*this.lineHeight*this.heightRatio),E=Math.round(((C-y)*this.lineHeight+this.lineHeight)*this.heightRatio),x=E-b;if(x<this.minDecorationHeight){var O=(b+E)/2|0;O<this.halfMinDecorationHeight?O=this.halfMinDecorationHeight:O+this.halfMinDecorationHeight>this.canvasHeight&&(O=this.canvasHeight-this.halfMinDecorationHeight),b=Math.round(O-this.halfMinDecorationHeight),E=Math.round(O+this.halfMinDecorationHeight)}o.fillStyle=n[c[v].type]||null,o.fillRect(0,_,this.canvasWidth,E-b)}}var M=this.renderer.session.selection.getCursor();if(M){var y=this.compensateFoldRows(M.row,$),_=Math.round((M.row-y)*this.lineHeight*this.heightRatio);o.fillStyle="rgba(0, 0, 0, 0.5)",o.fillRect(0,_,this.canvasWidth,2)}},f.prototype.compensateFoldRows=function(l,n){var i=0;if(n&&n.length>0)for(var o=0;o<n.length;o++)l>n[o].start.row&&l<n[o].end.row?i+=l-n[o].start.row:l>=n[o].end.row&&(i+=n[o].end.row-n[o].start.row);return i},f}();a.implement(r.prototype,u),h.Decorator=r}),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(e,h,m){var g=e("./lib/oop"),a=e("./lib/dom"),u=e("./lib/lang"),r=e("./config"),f=e("./layer/gutter").Gutter,l=e("./layer/marker").Marker,n=e("./layer/text").Text,i=e("./layer/cursor").Cursor,o=e("./scrollbar").HScrollBar,s=e("./scrollbar").VScrollBar,c=e("./scrollbar_custom").HScrollBar,p=e("./scrollbar_custom").VScrollBar,$=e("./renderloop").RenderLoop,v=e("./layer/font_metrics").FontMetrics,C=e("./lib/event_emitter").EventEmitter,y=e("./css/editor-css"),_=e("./layer/decorators").Decorator,b=e("./lib/useragent");a.importCssString(y,"ace_editor.css",!1);var E=function(){function x(O,M){var k=this;this.container=O||a.createElement("div"),a.addCssClass(this.container,"ace_editor"),a.HI_DPI&&a.addCssClass(this.container,"ace_hidpi"),this.setTheme(M),r.get("useStrictCSP")==null&&r.set("useStrictCSP",!1),this.$gutter=a.createEl
`);if(this.addToken(S[0],"ghost_text",T.row,T.column),this.$ghostText={text:O,position:{row:T.row,column:T.column}},S.length>1){this.$ghostTextWidget={text:S.slice(1).join(`
`),row:T.row,column:T.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var w=this.$cursorLayer.getPixelPosition(T,!0),L=this.container,q=L.getBoundingClientRect().height,A=S.length*this.lineHeight,I=A<q-w.top;if(I)return;A<q?this.scrollBy(0,(S.length-1)*this.lineHeight):this.scrollBy(0,w.top)}},x.prototype.removeGhostText=function(){if(!!this.$ghostText){var O=this.$ghostText.position;this.removeExtraToken(O.row,O.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},x.prototype.addToken=function(O,M,k,T){var S=this.session;S.bgTokenizer.lines[k]=null;var w={type:M,value:O},L=S.getTokens(k);if(T==null||!L.length)L.push(w);else for(var q=0,A=0;A<L.length;A++){var I=L[A];if(q+=I.value.length,T<=q){var F=I.value.length-(q-T),V=I.value.slice(0,F),R=I.value.slice(F);L.splice(A,1,{type:I.type,value:V},w,{type:I.type,value:R});break}}this.updateLines(k,k)},x.prototype.removeExtraToken=function(O,M){this.session.bgTokenizer.lines[O]=null,this.updateLines(O,O)},x.prototype.setTheme=function(O,M){var k=this;if(this.$themeId=O,k._dispatchEvent("themeChange",{theme:O}),!O||typeof O=="string"){var T=O||this.$options.theme.initialValue;r.loadModule(["theme",T],S)}else S(O);function S(w){if(k.$themeId!=O)return M&&M();if(!w||!w.cssClass)throw new Error("couldn't load module "+O+" or it didn't call define");w.$id&&(k.$themeId=w.$id),a.importCssString(w.cssText,w.cssClass,k.container),k.theme&&a.removeCssClass(k.container,k.theme.cssClass);var L="padding"in w?w.padding:"padding"in(k.theme||{})?4:k.$padding;k.$padding&&L!=k.$padding&&k.setPadding(L),k.$theme=w.cssClass,k.theme=w,a.addCssClass(k.container,w.cssClass),a.setCssClass(k.container,"ace_dark",w.isDark),k.$size&&(k.$size.width=0,k.$updateSizeAsync()),k._dispatchEvent("themeLoaded",{theme:w}),M&&M()}},x.prototype.getTheme=function(){return this.$themeId},x.prototype.setStyle=function(O,M){a.setCssClass(this.container,O,M!==!1)},x.prototype.unsetStyle=function(O){a.removeCssClass(this.container,O)},x.prototype.setCursorStyle=function(O){a.setStyle(this.scroller.style,"cursor",O)},x.prototype.setMouseCursor=function(O){a.setStyle(this.scroller.style,"cursor",O)},x.prototype.attachToShadowRoot=function(){a.importCssString(y,"ace_editor.css",this.container)},x.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},x.prototype.$updateCustomScrollbar=function(O){var M=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,O===!0?(this.scrollBarV=new p(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(k){M.$scrollAnimation||M.session.setScrollTop(k.data-M.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(k){M.$scrollAnimation||M.session.setScrollLeft(k.data-M.scrollMargin.left)}),this.$scrollDecorator=new _(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new s(this.container,this),this.scrollBarH=new o(this.container,this),this.scrollBarV.addEventListener("scroll",function(k){M.$scrollAnimation||M.session.setScrollTop(k.data-M.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(k){M.$scrollAnimation||M.session.setScrollLeft(k.data-M.scrollMargin.left)}))},x.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var O=this;this.$resizeTimer=u.delayedCall(function(){O.destroyed||O.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(M){var k=M[0].contentRect.width,T=M[0].contentRect.height;Math.abs(O.$size.width-k)>1||Math.abs(O.$size.height-T)>1?O.$resizeTimer.delay():O.$resizeTimer.cancel()}),this.$resizeObser
`)+`
`),T||(O.start.column=0,O.end.column=L[L.length-1].length),this.selection.setRange(O)}else{x.forEach(function(F){_.substractPoint(F.cursor)});var q=0,A=1/0,I=b.map(function(F){var V=F.cursor,R=y.getLine(V.row),B=R.substr(V.column).search(/\S/g);return B==-1&&(B=0),V.column>q&&(q=V.column),B<A&&(A=B),B});b.forEach(function(F,V){var R=F.cursor,B=q-R.column,N=I[V]-A;B>N?y.insert(R,l.stringRepeat(" ",B-N)):y.remove(new a(R.row,R.column,R.row,R.column-B+N)),F.start.column=F.end.column=q,F.start.row=F.end.row=R.row,F.cursor=F.end}),_.fromOrientedRange(b[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(y,_){var b=!0,E=!0,x,O,M;return y.map(function(L){var q=L.match(/(\s*)(.*?)(\s*)([=:].*)/);return q?x==null?(x=q[1].length,O=q[2].length,M=q[3].length,q):(x+O+M!=q[1].length+q[2].length+q[3].length&&(E=!1),x!=q[1].length&&(b=!1),x>q[1].length&&(x=q[1].length),O<q[2].length&&(O=q[2].length),M>q[3].length&&(M=q[3].length),q):[L]}).map(_?T:b?E?S:T:w);function k(L){return l.stringRepeat(" ",L)}function T(L){return L[2]?k(x)+L[2]+k(O-L[2].length+M)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function S(L){return L[2]?k(x+O-L[2].length)+L[2]+k(M)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function w(L){return L[2]?k(x)+L[2]+k(M)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}}}).call(p.prototype);function $(y,_){return y.row==_.row&&y.column==_.column}h.onSessionChange=function(y){var _=y.session;_&&!_.multiSelect&&(_.$selectionMarkers=[],_.selection.$initRangeList(),_.multiSelect=_.selection),this.multiSelect=_&&_.multiSelect;var b=y.oldSession;b&&(b.multiSelect.off("addRange",this.$onAddRange),b.multiSelect.off("removeRange",this.$onRemoveRange),b.multiSelect.off("multiSelect",this.$onMultiSelect),b.multiSelect.off("singleSelect",this.$onSingleSelect),b.multiSelect.lead.off("change",this.$checkMultiselectChange),b.multiSelect.anchor.off("change",this.$checkMultiselectChange)),_&&(_.multiSelect.on("addRange",this.$onAddRange),_.multiSelect.on("removeRange",this.$onRemoveRange),_.multiSelect.on("multiSelect",this.$onMultiSelect),_.multiSelect.on("singleSelect",this.$onSingleSelect),_.multiSelect.lead.on("change",this.$checkMultiselectChange),_.multiSelect.anchor.on("change",this.$checkMultiselectChange)),_&&this.inMultiSelectMode!=_.selection.inMultiSelectMode&&(_.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function v(y){y.$multiselectOnSessionChange||(y.$onAddRange=y.$onAddRange.bind(y),y.$onRemoveRange=y.$onRemoveRange.bind(y),y.$onMultiSelect=y.$onMultiSelect.bind(y),y.$onSingleSelect=y.$onSingleSelect.bind(y),y.$multiselectOnSessionChange=h.onSessionChange.bind(y),y.$checkMultiselectChange=y.$checkMultiselectChange.bind(y),y.$multiselectOnSessionChange(y),y.on("changeSession",y.$multiselectOnSessionChange),y.on("mousedown",r),y.commands.addCommands(n.defaultCommands),C(y))}function C(y){if(!y.textInput)return;var _=y.textInput.getElement(),b=!1;f.addListener(_,"keydown",function(x){var O=x.keyCode==18&&!(x.ctrlKey||x.shiftKey||x.metaKey);y.$blockSelectEnabled&&O?b||(y.renderer.setMouseCursor("crosshair"),b=!0):b&&E()},y),f.addListener(_,"keyup",E,y),f.addListener(_,"blur",E,y);function E(x){b&&(y.renderer.setMouseCursor(""),b=!1)}}h.MultiSelect=v,e("./config").defineOptions(p.prototype,"editor",{enableMultiselect:{set:function(y){v(this),y?this.on("mousedown",r):this.off("mousedown",r)},value:!0},enableBlockSelect:{set:function(y){this.$blockSelectEnabled=y},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,h,m){var g=e("../../range").Range,a=h.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(u,r,f){var l=u.getLine(f);return this.foldingStartMarker.test(l)?"start":r=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(l)?"end":""},this.getFoldWidgetRange=function(u,r,f){return null},this.indentationBlock=function(u,r,f){var l=/\S/,n=u.getLine(r),i=n.search(l);if(i!=-1){for(var o=f||n.length,s=u.getLength(),c=r,p=r;++r<s;){var $=u.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(e,h,m){e("./loader_build")(h);var g=e("./lib/dom"),a=e("./range").Range,u=e("./editor").Editor,r=e("./edit_session").EditSession,f=e("./undomanager").UndoManager,l=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),h.config=e("./config"),h.edit=function(n,i){if(typeof n=="string"){var o=n;if(n=document.getElementById(o),!n)throw new Error("ace.edit can't find div #"+o)}if(n&&n.env&&n.env.editor instanceof u)return n.env.editor;var s="";if(n&&/input|textarea/i.test(n.tagName)){var c=n;s=c.value,n=g.createElement("pre"),c.parentNode.replaceChild(n,c)}else n&&(s=n.textContent,n.innerHTML="");var p=h.createEditSession(s),$=new u(new l(n),p,i),v={document:p,editor:$,onResize:$.resize.bind($,null)};return c&&(v.textarea=c),$.on("destroy",function(){v.editor.container.env=null}),$.container.env=$.env=v,$},h.createEditSession=function(n,i){var o=new r(n,i);return o.setUndoManager(new f),o},h.Range=a,h.Editor=u,h.EditSession=r,h.UndoManager=f,h.VirtualRenderer=l,h.version=h.config.version}),function(){ace.require(["ace/ace"],function(e){e&&(e.config.init(!0),e.define=ace.define);var h=function(){return this}();!h&&typeof window!="undefined"&&(h=window),!h&&typeof self!="undefined"&&(h=self),h.ace||(h.ace=e);for(var m in e)e.hasOwnProperty(m)&&(h.ace[m]=e[m]);h.ace.default=h.ace,t&&(t.exports=h.ace)})}()})(ace$2);var ace$1=ace$2.exports,themeSqlserver={exports:{}};(function(t,d){ace.define("ace/theme/sqlserver-css",["require","exports","module"],function(e,h,m){m.exports=`.ace-sqlserver .ace_gutter {
background: #ebebeb;
color: #333;
overflow: hidden;
}
.ace-sqlserver .ace_print-margin {
width: 1px;
background: #e8e8e8;
}
.ace-sqlserver {
background-color: #FFFFFF;
color: black;
}
.ace-sqlserver .ace_identifier {
color: black;
}
.ace-sqlserver .ace_keyword {
color: #0000FF;
}
.ace-sqlserver .ace_numeric {
color: black;
}
.ace-sqlserver .ace_storage {
color: #11B7BE;
}
.ace-sqlserver .ace_keyword.ace_operator,
.ace-sqlserver .ace_lparen,
.ace-sqlserver .ace_rparen,
.ace-sqlserver .ace_punctuation {
color: #808080;
}
.ace-sqlserver .ace_set.ace_statement {
color: #0000FF;
text-decoration: underline;
}
.ace-sqlserver .ace_cursor {
color: black;
}
.ace-sqlserver .ace_invisible {
color: rgb(191, 191, 191);
}
.ace-sqlserver .ace_constant.ace_buildin {
color: rgb(88, 72, 246);
}
.ace-sqlserver .ace_constant.ace_language {
color: #979797;
}
.ace-sqlserver .ace_constant.ace_library {
color: rgb(6, 150, 14);
}
.ace-sqlserver .ace_invalid {
background-color: rgb(153, 0, 0);
color: white;
}
.ace-sqlserver .ace_support.ace_function {
color: #FF00FF;
}
.ace-sqlserver .ace_support.ace_constant {
color: rgb(6, 150, 14);
}
.ace-sqlserver .ace_class {
color: #008080;
}
.ace-sqlserver .ace_support.ace_other {
color: #6D79DE;
}
.ace-sqlserver .ace_variable.ace_parameter {
font-style: italic;
color: #FD971F;
}
.ace-sqlserver .ace_comment {
color: #008000;
}
.ace-sqlserver .ace_constant.ace_numeric {
color: black;
}
.ace-sqlserver .ace_variable {
color: rgb(49, 132, 149);
}
.ace-sqlserver .ace_xml-pe {
color: rgb(104, 104, 91);
}
.ace-sqlserver .ace_support.ace_storedprocedure {
color: #800000;
}
.ace-sqlserver .ace_heading {
color: rgb(12, 7, 255);
}
.ace-sqlserver .ace_list {
color: rgb(185, 6, 144);
}
.ace-sqlserver .ace_marker-layer .ace_selection {
background: rgb(181, 213, 255);
}
.ace-sqlserver .ace_marker-layer .ace_step {
background: rgb(252, 255, 0);
}
.ace-sqlserver .ace_marker-layer .ace_stack {
background: rgb(164, 229, 101);
}
.ace-sqlserver .ace_marker-layer .ace_bracket {
margin: -1px 0 0 -1px;
border: 1px solid rgb(192, 192, 192);
}
.ace-sqlserver .ace_marker-layer .ace_active-line {
background: rgba(0, 0, 0, 0.07);
}
.ace-sqlserver .ace_gutter-active-line {
background-color: #dcdcdc;
}
.ace-sqlserver .ace_marker-layer .ace_selected-word {
background: rgb(250, 250, 255);
border: 1px solid rgb(200, 200, 250);
}
.ace-sqlserver .ace_meta.ace_tag {
color: #0000FF;
}
.ace-sqlserver .ace_string.ace_regex {
color: #FF0000;
}
.ace-sqlserver .ace_string {
color: #FF0000;
}
.ace-sqlserver .ace_entity.ace_other.ace_attribute-name {
color: #994409;
}
.ace-sqlserver .ace_indent-guide {
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
}
.ace-sqlserver .ace_indent-guide-active {
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
}
`}),ace.define("ace/theme/sqlserver",["require","exports","module","ace/theme/sqlserver-css","ace/lib/dom"],function(e,h,m){h.isDark=!1,h.cssClass="ace-sqlserver",h.cssText=e("./sqlserver-css");var g=e("../lib/dom");g.importCssString(h.cssText,h.cssClass,!1)}),function(){ace.require(["ace/theme/sqlserver"],function(e){t&&(t.exports=e)})}()})(themeSqlserver);var modeJavascript={exports:{}};(function(t,d){ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,h,m){var g=e("../lib/oop"),a=e("./text_highlight_rules").TextHighlightRules,u=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},u.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};g.inherits(u,a),u.getTagRule=function(r){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},u.getStartRule=function(r){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:r}},u.getEndRule=function(r){return{token:"comment.doc",regex:"\\*\\/",next:r}},h.JsDocCommentHighlightRules=u}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(e,h,m){function g(){var i=l.replace("\\d","\\d\\-"),o={onMatch:function(c,p,$){var v=c.charAt(1)=="/"?2:1;return v==1?(p!=this.nextState?$.unshift(this.next,this.nextState,0):$.unshift(this.next),$[2]++):v==2&&p==this.nextState&&($[1]--,(!$[1]||$[1]<0)&&($.shift(),$.shift())),[{type:"meta.tag.punctuation."+(v==1?"":"end-")+"tag-open.xml",value:c.slice(0,v)},{type:"meta.tag.tag-name.xml",value:c.substr(v)}]},regex:"</?"+i+"",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(o);var s={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[s,o,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(c,p,$){return p==$[0]&&$.shift(),c.length==2&&($[0]==this.nextState&&$[1]--,(!$[1]||$[1]<0)&&$.splice(0,2)),this.next=$[0]||"start",[{type:this.token,value:c}]},nextState:"jsx"},s,a("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:i},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"stri
`+x+"$1"):O},CURRENT_LINE:function(b){return b.session.getLine(b.getCursorPosition().row)},PREV_LINE:function(b){return b.session.getLine(b.getCursorPosition().row-1)},LINE_INDEX:function(b){return b.getCursorPosition().row},LINE_NUMBER:function(b){return b.getCursorPosition().row+1},SOFT_TABS:function(b){return b.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(b){return b.session.getTabSize()},CLIPBOARD:function(b){return s.getText&&s.getText()},FILENAME:function(b){return/[^/\\]*$/.exec(this.FILEPATH(b))[0]},FILENAME_BASE:function(b){return/[^/\\]*$/.exec(this.FILEPATH(b))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(b){return this.FILEPATH(b).replace(/[^/\\]*$/,"")},FILEPATH:function(b){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(b){var E=b.session.$mode||{};return E.blockComment&&E.blockComment.start||""},BLOCK_COMMENT_END:function(b){var E=b.session.$mode||{};return E.blockComment&&E.blockComment.end||""},LINE_COMMENT:function(b){var E=b.session.$mode||{};return E.lineCommentStart||""},CURRENT_YEAR:g.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:g.bind(null,{year:"2-digit"}),CURRENT_MONTH:g.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:g.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:g.bind(null,{month:"short"}),CURRENT_DATE:g.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:g.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:g.bind(null,{weekday:"short"}),CURRENT_HOUR:g.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:g.bind(null,{minute:"2-digit"}),CURRENT_SECOND:g.bind(null,{second:"2-digit"})};c.SELECTED_TEXT=c.SELECTION;var p=function(){function b(){this.snippetMap={},this.snippetNameMap={},this.variables=c}return b.prototype.getTokenizer=function(){return b.$tokenizer||this.createTokenizer()},b.prototype.createTokenizer=function(){function E(M){return M=M.substr(1),/^\d+$/.test(M)?[{tabstopId:parseInt(M,10)}]:[{text:M}]}function x(M){return"(?:[^\\\\"+M+"]|\\\\.)"}var O={regex:"/("+x("/")+"+)/",onMatch:function(M,k,T){var S=T[0];return S.fmtString=!0,S.guard=M.slice(1,-1),S.flag="",""},next:"formatString"};return b.$tokenizer=new o({start:[{regex:/\\./,onMatch:function(M,k,T){var S=M[1];return(S=="}"&&T.length||"`$\\".indexOf(S)!=-1)&&(M=S),[M]}},{regex:/}/,onMatch:function(M,k,T){return[T.length?T.shift():M]}},{regex:/\$(?:\d+|\w+)/,onMatch:E},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(M,k,T){var S=E(M.substr(1));return T.unshift(S[0]),S},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+x("\\|")+"*\\|",onMatch:function(M,k,T){var S=M.slice(1,-1).replace(/\\[,|\\]|,/g,function(w){return w.length==2?w[1]:"\0"}).split("\0").map(function(w){return{value:w}});return T[0].choices=S,[S[0]]},next:"start"},O,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(M,k,T){return T.length&&T[0].expectElse?(T[0].expectElse=!1,T[0].ifEnd={elseEnd:T[0]},[T[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(M,k,T){var S=M[1];return S=="}"&&T.length||"`$\\".indexOf(S)!=-1?M=S:S=="n"?M=`
`:S=="t"?M=" ":"ulULE".indexOf(S)!=-1&&(M={changeCase:S,local:S>"a"}),[M]}},{regex:"/\\w*}",onMatch:function(M,k,T){var S=T.shift();return S&&(S.flag=M.slice(1,-1)),this.next=S&&S.tabstopId?"start":"",[S||M]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(M,k,T){return[{text:M.slice(1)}]}},{regex:/\${\w+/,onMatch:function(M,k,T){var S={text:M.slice(2)};return T.unshift(S),[S]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(M,k,T){var S=T.shift();return this.next=S&&S.tabstopId?"start":"",[S||M]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(M,k,T){var S=T[0];return S.formatFunction=M.slice(2,-1),[T.shift()]},next:"formatString"},O,{regex:/:[\?\-+]?/,onMatch:function(M,k,T){M[1]=="+"&&(T[0].ifEnd=T[0]),M[1]=="?"&&(T[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),b.$tokenizer},b.prototype.tokenizeTmSnippet=function(E,x){return this.getTokenizer().getLineTokens(E,x).tokens.map(function(O){return O.value||O})},b.prototype.getVariableValue=function(E,x,O){if(/^\d+$/.test(x))return(this.variables.__||{})[x]||"";if(/^[A-Z]\d+$/.test(x))return(this.variables[x[0]+"__"]||{})[x.substr(1)]||"";if(x=x.replace(/^TM_/,""),!this.variables.hasOwnProperty(x))return"";var M=this.variables[x];return typeof M=="function"&&(M=this.variables[x](E,x,O)),M==null?"":M},b.prototype.tmStrFormat=function(E,x,O){if(!x.fmt)return E;var M=x.flag||"",k=x.guard;k=new RegExp(k,M.replace(/[^gim]/g,""));var T=typeof x.fmt=="string"?this.tokenizeTmSnippet(x.fmt,"formatString"):x.fmt,S=this,w=E.replace(k,function(){var L=S.variables.__;S.variables.__=[].slice.call(arguments);for(var q=S.resolveVariables(T,O),A="E",I=0;I<q.length;I++){var F=q[I];if(typeof F=="object")if(q[I]="",F.changeCase&&F.local){var V=q[I+1];V&&typeof V=="string"&&(F.changeCase=="u"?q[I]=V[0].toUpperCase():q[I]=V[0].toLowerCase(),q[I+1]=V.substr(1))}else F.changeCase&&(A=F.changeCase);else A=="U"?q[I]=F.toUpperCase():A=="L"&&(q[I]=F.toLowerCase())}return S.variables.__=L,q.join("")});return w},b.prototype.tmFormatFunction=function(E,x,O){return x.formatFunction=="upcase"?E.toUpperCase():x.formatFunction=="downcase"?E.toLowerCase():E},b.prototype.resolveVariables=function(E,x){function O(A){var I=E.indexOf(A,S+1);I!=-1&&(S=I)}for(var M=[],k="",T=!0,S=0;S<E.length;S++){var w=E[S];if(typeof w=="string"){M.push(w),w==`
`?(T=!0,k=""):T&&(k=/^\t*/.exec(w)[0],T=/\S/.test(w));continue}if(!!w){if(T=!1,w.fmtString){var L=E.indexOf(w,S+1);L==-1&&(L=E.length),w.fmt=E.slice(S+1,L),S=L}if(w.text){var q=this.getVariableValue(x,w.text,k)+"";w.fmtString&&(q=this.tmStrFormat(q,w,x)),w.formatFunction&&(q=this.tmFormatFunction(q,w,x)),q&&!w.ifEnd?(M.push(q),O(w)):!q&&w.ifEnd&&O(w.ifEnd)}else w.elseEnd?O(w.elseEnd):(w.tabstopId!=null||w.changeCase!=null)&&M.push(w)}}return M},b.prototype.getDisplayTextForSnippet=function(E,x){var O=$.call(this,E,x);return O.text},b.prototype.insertSnippetForSelection=function(E,x,O){O===void 0&&(O={});var M=$.call(this,E,x,O),k=E.getSelectionRange(),T=E.session.replace(k,M.text),S=new v(E),w=E.inVirtualSelectionMode&&E.selection.index;S.addTabstops(M.tabstops,k.start,T,w)},b.prototype.insertSnippet=function(E,x,O){O===void 0&&(O={});var M=this;if(E.inVirtualSelectionMode)return M.insertSnippetForSelection(E,x,O);E.forEachSelection(function(){M.insertSnippetForSelection(E,x,O)},null,{keepOrder:!0}),E.tabstopManager&&E.tabstopManager.tabNext()},b.prototype.$getScope=function(E){var x=E.session.$mode.$id||"";if(x=x.split("/").pop(),x==="html"||x==="php"){x==="php"&&!E.session.$mode.inlinePhp&&(x="html");var O=E.getCursorPosition(),M=E.session.getState(O.row);typeof M=="object"&&(M=M[0]),M.substring&&(M.substring(0,3)=="js-"?x="javascript":M.substring(0,4)=="css-"?x="css":M.substring(0,4)=="php-"&&(x="php"))}return x},b.prototype.getActiveScopes=function(E){var x=this.$getScope(E),O=[x],M=this.snippetMap;return M[x]&&M[x].includeScopes&&O.push.apply(O,M[x].includeScopes),O.push("_"),O},b.prototype.expandWithTab=function(E,x){var O=this,M=E.forEachSelection(function(){return O.expandSnippetForSelection(E,x)},null,{keepOrder:!0});return M&&E.tabstopManager&&E.tabstopManager.tabNext(),M},b.prototype.expandSnippetForSelection=function(E,x){var O=E.getCursorPosition(),M=E.session.getLine(O.row),k=M.substring(0,O.column),T=M.substr(O.column),S=this.snippetMap,w;return this.getActiveScopes(E).some(function(L){var q=S[L];return q&&(w=this.findMatchingSnippet(q,k,T)),!!w},this),w?(x&&x.dryRun||(E.session.doc.removeInLine(O.row,O.column-w.replaceBefore.length,O.column+w.replaceAfter.length),this.variables.M__=w.matchBefore,this.variables.T__=w.matchAfter,this.insertSnippetForSelection(E,w.content),this.variables.M__=this.variables.T__=null),!0):!1},b.prototype.findMatchingSnippet=function(E,x,O){for(var M=E.length;M--;){var k=E[M];if(!(k.startRe&&!k.startRe.test(x))&&!(k.endRe&&!k.endRe.test(O))&&!(!k.startRe&&!k.endRe))return k.matchBefore=k.startRe?k.startRe.exec(x):[""],k.matchAfter=k.endRe?k.endRe.exec(O):[""],k.replaceBefore=k.triggerRe?k.triggerRe.exec(x)[0]:"",k.replaceAfter=k.endTriggerRe?k.endTriggerRe.exec(O)[0]:"",k}},b.prototype.register=function(E,x){function O(L){return L&&!/^\^?\(.*\)\$?$|^\\b$/.test(L)&&(L="(?:"+L+")"),L||""}function M(L,q,A){return L=O(L),q=O(q),A?(L=q+L,L&&L[L.length-1]!="$"&&(L+="$")):(L+=q,L&&L[0]!="^"&&(L="^"+L)),new RegExp(L)}function k(L){L.scope||(L.scope=x||"_"),x=L.scope,T[x]||(T[x]=[],S[x]={});var q=S[x];if(L.name){var A=q[L.name];A&&w.unregister(A),q[L.name]=L}T[x].push(L),L.prefix&&(L.tabTrigger=L.prefix),!L.content&&L.body&&(L.content=Array.isArray(L.body)?L.body.join(`
`):L.body),L.tabTrigger&&!L.trigger&&(!L.guard&&/^\w/.test(L.tabTrigger)&&(L.guard="\\b"),L.trigger=f.escapeRegExp(L.tabTrigger)),!(!L.trigger&&!L.guard&&!L.endTrigger&&!L.endGuard)&&(L.startRe=M(L.trigger,L.guard,!0),L.triggerRe=new RegExp(L.trigger),L.endRe=M(L.endTrigger,L.endGuard,!0),L.endTriggerRe=new RegExp(L.endTrigger))}var T=this.snippetMap,S=this.snippetNameMap,w=this;E||(E=[]),Array.isArray(E)?E.forEach(k):Object.keys(E).forEach(function(L){k(E[L])}),this._signal("registerSnippets",{scope:x})},b.prototype.unregister=function(E,x){function O(T){var S=k[T.scope||x];if(S&&S[T.name]){delete S[T.name];var w=M[T.scope||x],L=w&&w.indexOf(T);L>=0&&w.splice(L,1)}}var M=this.snippetMap,k=this.snippetNameMap;E.content?O(E):Array.isArray(E)&&E.forEach(O)},b.prototype.parseSnippetFile=function(E){E=E.replace(/\r/g,"");for(var x=[],O={},M=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,k;k=M.exec(E);){if(k[1])try{O=JSON.parse(k[1]),x.push(O)}catch{}if(k[4])O.content=k[4].replace(/^\t/gm,""),x.push(O),O={};else{var T=k[2],S=k[3];if(T=="regex"){var w=/\/((?:[^\/\\]|\\.)*)|$/g;O.guard=w.exec(S)[1],O.trigger=w.exec(S)[1],O.endTrigger=w.exec(S)[1],O.endGuard=w.exec(S)[1]}else T=="snippet"?(O.tabTrigger=S.match(/^\S*/)[0],O.name||(O.name=S)):T&&(O[T]=S)}}return x},b.prototype.getSnippetByName=function(E,x){var O=this.snippetNameMap,M;return this.getActiveScopes(x).some(function(k){var T=O[k];return T&&(M=T[E]),!!M},this),M},b}();u.implement(p.prototype,r);var $=function(b,E,x){function O(D){for(var W=[],H=0;H<D.length;H++){var z=D[H];if(typeof z=="object"){if(q[z.tabstopId])continue;var K=D.lastIndexOf(z,H-1);z=W[K]||{tabstopId:z.tabstopId}}W[H]=z}return W}x===void 0&&(x={});var M=b.getCursorPosition(),k=b.session.getLine(M.row),T=b.session.getTabString(),S=k.match(/^\s*/)[0];M.column<S.length&&(S=S.slice(0,M.column)),E=E.replace(/\r/g,"");var w=this.tokenizeTmSnippet(E);w=this.resolveVariables(w,b),w=w.map(function(D){return D==`
`&&!x.excludeExtraIndent?D+S:typeof D=="string"?D.replace(/\t/g,T):D});var L=[];w.forEach(function(D,W){if(typeof D=="object"){var H=D.tabstopId,z=L[H];if(z||(z=L[H]=[],z.index=H,z.value="",z.parents={}),z.indexOf(D)===-1){D.choices&&!z.choices&&(z.choices=D.choices),z.push(D);var K=w.indexOf(D,W+1);if(K!==-1){var Z=w.slice(W+1,K),ie=Z.some(function(se){return typeof se=="object"});ie&&!z.value?z.value=Z:Z.length&&(!z.value||typeof z.value!="string")&&(z.value=Z.join(""))}}}}),L.forEach(function(D){D.length=0});for(var q={},A=0;A<w.length;A++){var I=w[A];if(typeof I=="object"){var F=I.tabstopId,V=L[F],R=w.indexOf(I,A+1);if(q[F]){q[F]===I&&(delete q[F],Object.keys(q).forEach(function(D){V.parents[D]=!0}));continue}q[F]=I;var B=V.value;typeof B!="string"?B=O(B):I.fmt&&(B=this.tmStrFormat(B,I,b)),w.splice.apply(w,[A+1,Math.max(0,R-A)].concat(B,I)),V.indexOf(I)===-1&&V.push(I)}}var N=0,P=0,j="";return w.forEach(function(D){if(typeof D=="string"){var W=D.split(`
`);W.length>1?(P=W[W.length-1].length,N+=W.length-1):P+=D.length,j+=D}else D&&(D.start?D.end={row:N,column:P}:D.start={row:N,column:P})}),{text:j,tabstops:L,tokens:w}},v=function(){function b(E){if(this.index=0,this.ranges=[],this.tabstops=[],E.tabstopManager)return E.tabstopManager;E.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=f.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(E)}return b.prototype.attach=function(E){this.$openTabstops=null,this.selectedTabstop=null,this.editor=E,this.session=E.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},b.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},b.prototype.onChange=function(E){for(var x=E.action[0]=="r",O=this.selectedTabstop||{},M=O.parents||{},k=this.tabstops.slice(),T=0;T<k.length;T++){var S=k[T],w=S==O||M[S.index];if(S.rangeList.$bias=w?0:1,E.action=="remove"&&S!==O){var L=S.parents&&S.parents[O.index],q=S.rangeList.pointIndex(E.start,L);q=q<0?-q-1:q+1;var A=S.rangeList.pointIndex(E.end,L);A=A<0?-A-1:A-1;for(var I=S.rangeList.ranges.slice(q,A),F=0;F<I.length;F++)this.removeRange(I[F])}S.rangeList.$onChange(E)}var V=this.session;!this.$inChange&&x&&V.getLength()==1&&!V.getValue()&&this.detach()},b.prototype.updateLinkedFields=function(){var E=this.selectedTabstop;if(!(!E||!E.hasLinkedRanges||!E.firstNonLinked)){this.$inChange=!0;for(var x=this.session,O=x.getTextRange(E.firstNonLinked),M=0;M<E.length;M++){var k=E[M];if(!!k.linked){var T=k.original,S=h.snippetManager.tmStrFormat(O,T,this.editor);x.replace(k,S)}}this.$inChange=!1}},b.prototype.onAfterExec=function(E){E.command&&!E.command.readOnly&&this.updateLinkedFields()},b.prototype.onChangeSelection=function(){if(!!this.editor){for(var E=this.editor.selection.lead,x=this.editor.selection.anchor,O=this.editor.selection.isEmpty(),M=0;M<this.ranges.length;M++)if(!this.ranges[M].linked){var k=this.ranges[M].contains(E.row,E.column),T=O||this.ranges[M].contains(x.row,x.column);if(k&&T)return}this.detach()}},b.prototype.onChangeSession=function(){this.detach()},b.prototype.tabNext=function(E){var x=this.tabstops.length,O=this.index+(E||1);O=Math.min(Math.max(O,1),x),O==x&&(O=0),this.selectTabstop(O),this.updateTabstopMarkers(),O===0&&this.detach()},b.prototype.selectTabstop=function(E){this.$openTabstops=null;var x=this.tabstops[this.index];if(x&&this.addTabstopMarkers(x),this.index=E,x=this.tabstops[this.index],!(!x||!x.length)){this.selectedTabstop=x;var O=x.firstNonLinked||x;if(x.choices&&(O.cursor=O.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(O);else{var M=this.editor.multiSelect;M.toSingleRange(O);for(var k=0;k<x.length;k++)x.hasLinkedRanges&&x[k].linked||M.addRange(x[k].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},b.prototype.addTabstops=function(E,x,O){var M=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!E[0]){var k=l.fromPoints(O,O);y(k.start,x),y(k.end,x),E[0]=[k],E[0].index=0}var T=this.index,S=[T+1,0],w=this.ranges,L=this.snippetId=(this.snippetId||0)+1;E.forEach(function(q,A){var I=this.$openTabstops[A]||q;I.snippetId=L;for(v
.ace_snippet-marker {
-moz-box-sizing: border-box;
box-sizing: border-box;
background: rgba(194, 193, 208, 0.09);
border: 1px dotted rgba(211, 208, 235, 0.62);
position: absolute;
}`,"snippets.css",!1),h.snippetManager=new p;var _=e("./editor").Editor;(function(){this.insertSnippet=function(b,E){return h.snippetManager.insertSnippet(this,b,E)},this.expandSnippet=function(b){return h.snippetManager.expandWithTab(this,b)}}).call(_.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config","ace/lib/useragent"],function(e,h,m){var g=e("../virtual_renderer").VirtualRenderer,a=e("../editor").Editor,u=e("../range").Range,r=e("../lib/event"),f=e("../lib/lang"),l=e("../lib/dom"),n=e("../config").nls,i=e("./../lib/useragent"),o=function(C){return"suggest-aria-id:".concat(C)},s=i.isSafari?"menu":"listbox",c=i.isSafari?"menuitem":"option",p=i.isSafari?"aria-current":"aria-selected",$=function(C){var y=new g(C);y.$maxLines=4;var _=new a(y);return _.setHighlightActiveLine(!1),_.setShowPrintMargin(!1),_.renderer.setShowGutter(!1),_.renderer.setHighlightGutterLine(!1),_.$mouseHandler.$focusTimeout=0,_.$highlightTagPending=!0,_},v=function(){function C(y){var _=l.createElement("div"),b=$(_);y&&y.appendChild(_),_.style.display="none",b.renderer.content.style.cursor="default",b.renderer.setStyle("ace_autocomplete"),b.renderer.$textLayer.element.setAttribute("role",s),b.renderer.$textLayer.element.setAttribute("aria-roledescription",n("Autocomplete suggestions")),b.renderer.$textLayer.element.setAttribute("aria-label",n("Autocomplete suggestions")),b.renderer.textarea.setAttribute("aria-hidden","true"),b.setOption("displayIndentGuides",!1),b.setOption("dragDelay",150);var E=function(){};b.focus=E,b.$isFocused=!0,b.renderer.$cursorLayer.restartTimer=E,b.renderer.$cursorLayer.element.style.opacity="0",b.renderer.$maxLines=8,b.renderer.$keepTextAreaAtCursor=!1,b.setHighlightActiveLine(!1),b.session.highlight(""),b.session.$searchHighlight.clazz="ace_highlight-marker",b.on("mousedown",function(w){var L=w.getDocumentPosition();b.selection.moveToPosition(L),M.start.row=M.end.row=L.row,w.stop()});var x,O=new u(-1,0,-1,1/0),M=new u(-1,0,-1,1/0);M.id=b.session.addMarker(M,"ace_active-line","fullLine"),b.setSelectOnHover=function(w){w?O.id&&(b.session.removeMarker(O.id),O.id=null):O.id=b.session.addMarker(O,"ace_line-hover","fullLine")},b.setSelectOnHover(!1),b.on("mousemove",function(w){if(!x){x=w;return}if(!(x.x==w.x&&x.y==w.y)){x=w,x.scrollTop=b.renderer.scrollTop,b.isMouseOver=!0;var L=x.getDocumentPosition().row;O.start.row!=L&&(O.id||b.setRow(L),T(L))}}),b.renderer.on("beforeRender",function(){if(x&&O.start.row!=-1){x.$pos=null;var w=x.getDocumentPosition().row;O.id||b.setRow(w),T(w,!0)}}),b.renderer.on("afterRender",function(){var w=b.getRow(),L=b.renderer.$textLayer,q=L.element.childNodes[w-L.config.firstRow],A=document.activeElement;if(q!==b.selectedNode&&b.selectedNode&&(l.removeCssClass(b.selectedNode,"ace_selected"),A.removeAttribute("aria-activedescendant"),b.selectedNode.removeAttribute(p),b.selectedNode.removeAttribute("id")),b.selectedNode=q,q){l.addCssClass(q,"ace_selected");var I=o(w);q.id=I,L.element.setAttribute("aria-activedescendant",I),A.setAttribute("aria-activedescendant",I),q.setAttribute("role",c),q.setAttribute("aria-roledescription",n("item")),q.setAttribute("aria-label",b.getData(w).caption||b.getData(w).value),q.setAttribute("aria-setsize",b.data.length),q.setAttribute("aria-posinset",w+1),q.setAttribute("aria-describedby","doc-tooltip"),q.setAttribute(p,"true")}});var k=function(){T(-1)},T=function(w,L){w!==O.start.row&&(O.start.row=O.end.row=w,L||b.session._emit("changeBackMarker"),b._emit("changeHoverMarker"))};b.getHoveredRow=function(){return O.start.row},r.addListener(b.container,"mouseout",function(){b.isMouseOver=!1,k()}),b.on("hide",k),b.on("changeSelection",k),b.session.doc.getLength=function(){return b.data.length},b.session.doc.getLine=function(w){var L=b.data[w];return typeof L=="string"?L:L&&L.value||""};var S=b.session.bgTokenizer;return S.$tokenizeRow=function(w){function L(D,W){D&&A.push({type:(q.className||"")+(W||""),value:D})}var q=b.data[w],A=[];if(!q
`,w.length),-1),b.data=w||[],b.setRow(0)},b.getData=function(w){return b.data[w]},b.getRow=function(){return M.start.row},b.setRow=function(w){w=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,w)),M.start.row!=w&&(b.selection.clearSelection(),M.start.row=M.end.row=w||0,b.session._emit("changeBackMarker"),b.moveCursorTo(w||0,0),b.isOpen&&b._signal("select"))},b.on("changeSelection",function(){b.isOpen&&b.setRow(b.selection.lead.row),b.renderer.scrollCursorIntoView()}),b.hide=function(){this.container.style.display="none",b.anchorPos=null,b.anchor=null,b.isOpen&&(b.isOpen=!1,this._signal("hide"))},b.tryShow=function(w,L,q,A){if(!A&&b.isOpen&&b.anchorPos&&b.anchor&&b.anchorPos.top===w.top&&b.anchorPos.left===w.left&&b.anchor===q)return!0;var I=this.container,F=window.innerHeight,V=window.innerWidth,R=this.renderer,B=R.$maxLines*L*1.4,N={top:0,bottom:0,left:0},P=F-w.top-3*this.$borderSize-L,j=w.top-3*this.$borderSize;q||(j<=P||P>=B?q="bottom":q="top"),q==="top"?(N.bottom=w.top-this.$borderSize,N.top=N.bottom-B):q==="bottom"&&(N.top=w.top+L+this.$borderSize,N.bottom=N.top+B);var D=N.top>=0&&N.bottom<=F;if(!A&&!D)return!1;D?R.$maxPixelHeight=null:q==="top"?R.$maxPixelHeight=j:R.$maxPixelHeight=P,q==="top"?(I.style.top="",I.style.bottom=F-N.bottom+"px",b.isTopdown=!1):(I.style.top=N.top+"px",I.style.bottom="",b.isTopdown=!0),I.style.display="";var W=w.left;return W+I.offsetWidth>V&&(W=V-I.offsetWidth),I.style.left=W+"px",I.style.right="",b.isOpen||(b.isOpen=!0,this._signal("show"),x=null),b.anchorPos=w,b.anchor=q,!0},b.show=function(w,L,q){this.tryShow(w,L,q?"bottom":void 0,!0)},b.goTo=function(w){var L=this.getRow(),q=this.session.getLength()-1;switch(w){case"up":L=L<=0?q:L-1;break;case"down":L=L>=q?-1:L+1;break;case"start":L=0;break;case"end":L=q}this.setRow(L)},b.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},b.$imageSize=0,b.$borderSize=1,b}return C}();l.importCssString(`
.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
background-color: #CAD6FA;
z-index: 1;
}
.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
background-color: #3a674e;
}
.ace_editor.ace_autocomplete .ace_line-hover {
border: 1px solid #abbffe;
margin-top: -1px;
background: rgba(233,233,253,0.4);
position: absolute;
z-index: 2;
}
.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
border: 1px solid rgba(109, 150, 13, 0.8);
background: rgba(58, 103, 78, 0.62);
}
.ace_completion-meta {
opacity: 0.5;
margin-left: 0.9em;
}
.ace_completion-message {
margin-left: 0.9em;
color: blue;
}
.ace_editor.ace_autocomplete .ace_completion-highlight{
color: #2d69c7;
}
.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
color: #93ca12;
}
.ace_editor.ace_autocomplete {
width: 300px;
z-index: 200000;
border: 1px lightgray solid;
position: fixed;
box-shadow: 2px 3px 5px rgba(0,0,0,.2);
line-height: 1.4;
background: #fefefe;
color: #111;
}
.ace_dark.ace_editor.ace_autocomplete {
border: 1px #484747 solid;
box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
line-height: 1.4;
background: #25282c;
color: #c1c1c1;
}
.ace_autocomplete .ace_text-layer {
width: calc(100% - 8px);
}
.ace_autocomplete .ace_line {
display: flex;
align-items: center;
}
.ace_autocomplete .ace_line > * {
min-width: 0;
flex: 0 0 auto;
}
.ace_autocomplete .ace_line .ace_ {
flex: 0 1 auto;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.ace_autocomplete .ace_completion-spacer {
flex: 1;
}
.ace_autocomplete.ace_loading:after {
content: "";
position: absolute;
top: 0px;
height: 2px;
width: 8%;
background: blue;
z-index: 100;
animation: ace_progress 3s infinite linear;
animation-delay: 300ms;
transform: translateX(-100%) scaleX(1);
}
@keyframes ace_progress {
0% { transform: translateX(-100%) scaleX(1) }
50% { transform: translateX(625%) scaleX(2) }
100% { transform: translateX(1500%) scaleX(3) }
}
@media (prefers-reduced-motion) {
.ace_autocomplete.ace_loading:after {
transform: translateX(625%) scaleX(2);
animation: none;
}
}
`,"autocompletion.css",!1),h.AcePopup=v,h.$singleLineEditor=$,h.getAriaId=o}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(e,h,m){var g=function(){function a(u){this.editor=u,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return a.prototype.setScreenReaderContent=function(u){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",function(){var f=this.popup.getRow(),l=this.popup.renderer.$textLayer,n=l.element.childNodes[f-l.config.firstRow];if(n){for(var i="doc-tooltip ",o=0;o<this._lines.length;o++)i+="ace-inline-screenreader-line-".concat(o," ");n.setAttribute("aria-describedby",i)}}.bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=u.split(/\r\n|\r|\n/);var r=this.createCodeBlock();this.screenReaderDiv.appendChild(r)},a.prototype.destroy=function(){this.screenReaderDiv.remove()},a.prototype.createCodeBlock=function(){var u=document.createElement("pre");u.setAttribute("id","ace-inline-screenreader");for(var r=0;r<this._lines.length;r++){var f=document.createElement("code");f.setAttribute("id","ace-inline-screenreader-line-".concat(r));var l=document.createTextNode(this._lines[r]);f.appendChild(l),u.appendChild(f)}return u},a}();h.AceInlineScreenReader=g}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(e,h,m){var g=e("../snippets").snippetManager,a=e("./inline_screenreader").AceInlineScreenReader,u=function(){function r(){this.editor=null}return r.prototype.show=function(f,l,n){if(n=n||"",f&&this.editor&&this.editor!==f&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!f||!l)return!1;this.inlineScreenReader||(this.inlineScreenReader=new a(f));var i=l.snippet?g.getDisplayTextForSnippet(f,l.snippet):l.value;return l.hideInlinePreview||!i||!i.startsWith(n)?!1:(this.editor=f,this.inlineScreenReader.setScreenReaderContent(i),i=i.slice(n.length),i===""?f.removeGhostText():f.setGhostText(i),!0)},r.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},r.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},r.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},r}();h.AceInline=u}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,h,m){h.parForEach=function(a,u,r){var f=0,l=a.length;l===0&&r();for(var n=0;n<l;n++)u(a[n],function(i,o){f++,f===l&&r(i,o)})};var g=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;h.retrievePrecedingIdentifier=function(a,u,r){r=r||g;for(var f=[],l=u-1;l>=0&&r.test(a[l]);l--)f.push(a[l]);return f.reverse().join("")},h.retrieveFollowingIdentifier=function(a,u,r){r=r||g;for(var f=[],l=u;l<a.length&&r.test(a[l]);l++)f.push(a[l]);return f},h.getCompletionPrefix=function(a){var u=a.getCursorPosition(),r=a.session.getLine(u.row),f;return a.completers.forEach(function(l){l.identifierRegexps&&l.identifierRegexps.forEach(function(n){!f&&n&&(f=this.retrievePrecedingIdentifier(r,u.column,n))}.bind(this))}.bind(this)),f||this.retrievePrecedingIdentifier(r,u.column)},h.triggerAutocomplete=function(a){var u=a.getCursorPosition(),r=a.session.getLine(u.row),f=u.column===0?0:u.column-1,l=r[f];return a.completers.some(function(n){if(n.triggerCharacters&&Array.isArray(n.triggerCharacters))return n.triggerCharacters.includes(l)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(e,h,m){var g=e("./keyboard/hash_handler").HashHandler,a=e("./autocomplete/popup").AcePopup,u=e("./autocomplete/in
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
<title>VForm Demo</title>
<link rel="stylesheet" href="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/element-plus/2.0.4/index.min.css" />
<link rel="stylesheet" href="https://ks3-cn-beijing.ksyun.com/vform3/render.style.css?t=20220129">
<style type="text/css">
</style>
</head>
<body>
<div id="app">
<v-form-render :form-json="formJson" :form-data="formData" :option-data="optionData" ref="vFormRef">
</v-form-render>
<el-button type="primary" @click="submitForm">Submit</el-button>
</div>
<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/vue/3.2.30/vue.global.min.js"><\/script>
<script src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/element-plus/2.0.4/index.full.min.js"><\/script>
<script src="https://ks3-cn-beijing.ksyun.com/vform3/render.umd.js?t=20220129"><\/script>
<script>
const { createApp } = Vue;
const app = createApp({
data() {
return {
formJson: ${e},
formData: {},
optionData: {}
}
},
methods: {
submitForm() {
this.$refs.vFormRef.getFormData().then( (formData) => {
// Form Validation OK
alert( JSON.stringify(formData) )
}).catch( function(error) {
// Form Validation Failed
alert(error)
})
}
}
});
app.use(ElementPlus)
app.use(VFormRender)
app.mount("#app");
<\/script>
</body>
</html>`:`<template>
<div>
<v-form-render :form-json="formJson" :form-data="formData" :option-data="optionData" ref="vFormRef">
</v-form-render>
<el-button type="primary" @click="submitForm">Submit</el-button>
</div>
</template>
<script setup>
import { ref, reactive } from 'vue'
import { ElMessage } from 'element-plus'
const formJson = reactive(${e})
const formData = reactive({})
const optionData = reactive({})
const vFormRef = ref(null)
const submitForm = () => {
vFormRef.value.getFormData().then(formData => {
// Form Validation OK
alert( JSON.stringify(formData) )
}).catch(error => {
// Form Validation failed
ElMessage.error(error)
})
}
<\/script>`};function buildDefaultValueListFn(t,d,e){return function(h){const m=h.options,g=m.defaultValue;isNotNull(g)?e.push(`${m.name}: ${JSON.stringify(g)},`):e.push(`${m.name}: null,`)}}function buildRulesListFn(formConfig,widgetList,resultList){return function(fieldWidget){const fop=fieldWidget.options;let fieldRules=[];if(fop.required&&fieldRules.push(`{
required: true,
message: '${translate("render.hint.fieldRequired")}',
}`),fop.validation){let vldName=fop.validation;FormValidators[vldName]?fieldRules.push(`{
pattern: ${eval(getRegExp(vldName))},
trigger: ['blur', 'change'],
message: '${fop.validationHint}'
}`):fieldRules.push(`{
pattern: '${eval(vldName)}',
trigger: ['blur', 'change'],
message: '${fop.validationHint}'
}`)}fieldRules.length>0&&resultList.push(`${fop.name}: [${fieldRules.join(",")}],`)}}function buildFieldOptionsFn(t,d,e){return function(h){const m=h.options,g=h.type;(g==="radio"||g==="checkbox"||g==="select"||g==="cascader")&&e.push(`${m.name}Options: ${JSON.stringify(m.optionItems)},`)}}function buildUploadDataFn(t,d,e){return function(h){const m=h.options,g=h.type;(g==="picture-upload"||g==="file-upload")&&(e.push(`${m.name}FileList: [],`),e.push(`${m.name}UploadHeaders: {},`),e.push(`${m.name}UploadData: {},`))}}function buildActiveTabs(t,d){let e=[];return traverseContainerWidgets(d,function(m){const g=m.options;m.type==="tab"&&m.tabs.length>0&&e.push(`'${g.name}ActiveTab': '${m.tabs[0].options.name}',`)}),e}const genVue2JS=function(t,d){let e=[],h=[],m=[],g=[];traverseFieldWidgets(d,r=>{buildDefaultValueListFn(t,d,e)(r),buildRulesListFn(t,d,h)(r),buildFieldOptionsFn(t,d,m)(r),buildUploadDataFn(t,d,g)(r)});const a=buildActiveTabs(t,d);return` export default {
components: {},
props: {},
data() {
return {
${t.modelName}: {
${e.join(`
`)}
},
${t.rulesName}: {
${h.join(`
`)}
},
${a.join(`
`)}
${m.join(`
`)}
${g.join(`
`)}
}
},
computed: {},
watch: {},
created() {
},
mounted() {
},
methods: {
submitForm() {
this.$refs['vForm'].validate(valid => {
if (!valid) return
//TODO: \u63D0\u4EA4\u8868\u5355
})
},
resetForm() {
this.$refs['vForm'].resetFields()
}
}
}`};let beautifierObj;const beautifierOpts={html:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"separate",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0},js:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"normal",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!0,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0},css:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"normal",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!0,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0}};function loadBeautifier(t){if(beautifierObj){t(beautifierObj);return}loadRemoteScript(BEAUTIFIER_PATH,()=>{beautifierObj=beautifier,t(beautifierObj)})}const genVue3JS=function(t,d){let e=[],h=[],m=[],g=[];traverseFieldWidgets(d,r=>{buildDefaultValueListFn(t,d,e)(r),buildRulesListFn(t,d,h)(r),buildFieldOptionsFn(t,d,m)(r),buildUploadDataFn(t,d,g)(r)});const a=buildActiveTabs(t,d);return` import { defineComponent, toRefs, reactive, getCurrentInstance } from 'vue'
export default defineComponent({
components: {},
props: {},
setup() {
const state = reactive({
${t.modelName}: {
${e.join(`
`)}
},
${t.rulesName}: {
${h.join(`
`)}
},
${a.join(`
`)}
${m.join(`
`)}
${g.join(`
`)}
})
const instance = getCurrentInstance()
const submitForm = () => {
instance.proxy.$refs['vForm'].validate(valid => {
if (!valid) return
//TODO: \u63D0\u4EA4\u8868\u5355
})
}
const resetForm = () => {
instance.proxy.$refs['vForm'].resetFields()
}
return {
...toRefs(state),
submitForm,
resetForm
}
}
})`};function buildClassAttr(t,d){const e=t.options;let h=[];return!!d&&h.push(d),!!e.customClass&&e.customClass.length>0&&h.push(e.customClass.join(" ")),h.length>0?`class="${h.join(" ")}"`:""}const containerTemplates={grid:(t,d)=>`<el-row ${buildClassAttr(t)}>
${t.cols.map(m=>{const g=m.options,a=g.responsive?"":`:span="${g.span}"`,u=g.responsive?`:md="${g.md}"`:"",r=g.responsive?`:sm="${g.sm}"`:"",f=g.responsive?`:xs="${g.xs}"`:"",l=g.offset?`:offset="${g.offset}"`:"",n=g.push?`:push="${g.push}"`:"",i=g.pull?`:pull="${g.pull}"`:"",o=buildClassAttr(m,"grid-cell");return`<el-col ${a} ${u} ${r} ${f} ${l} ${n} ${i} ${o}>
${m.widgetList.map(s=>s.category==="container"?buildContainerWidget(s,d):buildFieldWidget(s,d)).join("")}
</el-col>`}).join("")}
</el-row>`,table:(t,d)=>`<div class="table-container">
<table ${buildClassAttr(t,"table-layout")}><tbody>
${t.rows.map(m=>`<tr>${m.cols.filter(g=>!g.merged).map(g=>{const a=g.options,u=buildClassAttr(g,"table-cell"),r=!isNaN(a.colspan)&&a.colspan!==1?`colspan="${a.colspan}"`:"",f=!isNaN(a.rowspan)&&a.rowspan!==1?`rowspan="${a.rowspan}"`:"";let l=[];!!a.cellWidth&&l.push("width: "+a.cellWidth+" !important"),!!a.cellHeight&&l.push("height: "+a.cellHeight+" !important");let n=l.length>0?`style="${l.join(";")}"`:"";return`<td ${u} ${r} ${f} ${n}>${g.widgetList.map(i=>i.category==="container"?buildContainerWidget(i,d):buildFieldWidget(i,d)).join("")}
</td>`}).join("")}</tr>`).join("")}
</tbody></table>
</div>`,tab:(t,d)=>{const e=buildClassAttr(t);return`<div class="tab-container">
<el-tabs ${t.tabs&&t.tabs.length>0?`v-model="${t.options.name}ActiveTab"`:""} type="${t.displayType}" ${e}>
${t.tabs.map(g=>{const a=g.options,u=a.disabled===!0?"disabled":"";return`<el-tab-pane name="${a.name}" label="${a.label}" ${u}>
${g.widgetList.map(r=>r.category==="container"?buildContainerWidget(r,d):buildFieldWidget(r,d)).join("")}</el-tab-pane>`}).join("")}
</el-tabs>
</div>`},"sub-form":(t,d)=>{}};function buildContainerWidget(t,d){return containerTemplates[t.type]?containerTemplates[t.type](t,d):null}function getElAttrs(t,d){let e=t.options;return{vModel:`v-model="${d.modelName}.${e.name}"`,readonly:e.readonly?'readonly="true"':"",disabled:e.disabled?':disabled="true"':"",size:e.size?`size="${e.size}"`:"",type:e.type?`type="${e.type==="number"?"text":e.type}"`:"",showPassword:e.showPassword?`:show-password="${e.showPassword}"`:"",placeholder:e.placeholder?`placeholder="${e.placeholder}"`:"",rows:isNotNull(e.rows)&&!isNaN(e.rows)?`rows="${e.rows}"`:"",clearable:e.clearable?"clearable":"",minlength:isNotNull(e.minLength)&&!isNaN(e.minLength)?`:minlength="${e.minLength}"`:"",maxlength:isNotNull(e.maxLength)&&!isNaN(e.maxLength)?`:maxlength="${e.maxLength}"`:"",showWordLimit:e.showWordLimit?':show-word-limit="true"':"",prefixIcon:e.prefixIcon?`prefix-icon="${e.prefixIcon}"`:"",suffixIcon:e.suffixIcon?`suffix-icon="${e.suffixIcon}"`:"",controlsPosition:e.controlsPosition==="right"?'controls-position="right"':"",min:isNotNull(e.min)&&!isNaN(e.min)?`:min="${e.min}"`:"",max:isNotNull(e.max)&&!isNaN(e.max)?`:max="${e.max}"`:"",precision:isNotNull(e.precision)&&!isNaN(e.precision)?`:precision="${e.precision}"`:"",step:isNotNull(e.step)&&!isNaN(e.step)?`:step="${e.step}"`:"",filterable:e.filterable?"filterable":"",allowCreate:e.allowCreate?"allow-create":"",defaultFirstOption:!!e.filterable&&!!e.allowCreate?"default-first-option":"",multiple:e.multiple?"multiple":"",multipleLimit:!isNaN(e.multipleLimit)&&e.multipleLimit>0?`:multiple-limit="${e.multipleLimit}"`:"",automaticDropdown:e.automaticDropdown?"automatic-dropdown":"",remote:e.remote?"remote":"",format:e.format?`format="${e.format}"`:"",valueFormat:e.valueFormat?`value-format="${e.valueFormat}"`:"",editable:e.editable?`:editable="${e.editable}"`:"",startPlaceholder:e.startPlaceholder?`start-placeholder="${e.startPlaceholder}"`:"",endPlaceholder:e.endPlaceholder?`end-placeholder="${e.endPlaceholder}"`:"",activeText:e.activeText?`active-text="${e.activeText}"`:"",inactiveText:e.inactiveText?`inactive-text="${e.inactiveText}"`:"",activeColor:e.activeColor?`active-color="${e.activeColor}"`:"",inactiveColor:e.inactiveColor?`inactive-color="${e.inactiveColor}"`:"",switchWidth:!isNaN(e.switchWidth)&&e.switchWidth!==40?`:width="${e.switchWidth}"`:"",rateMax:!isNaN(e.max)&&e.max!==5?`:max="${e.max}"`:"",lowThreshold:!isNaN(e.lowThreshold)&&e.lowThreshold!==2?`:low-threshold="${e.lowThreshold}"`:"",highThreshold:!isNaN(e.highThreshold)&&e.highThreshold!==4?`:high-threshold="${e.highThreshold}"`:"",allowHalf:e.allowHalf?"allow-half":"",showText:e.showText?"show-text":"",showScore:e.showScore?"show-score":"",sliderMin:!isNaN(e.min)&&e.min!==0?`:min="${e.min}"`:"",sliderMax:!isNaN(e.max)&&e.max!==100?`:max="${e.max}"`:"",sliderStep:!isNaN(e.step)&&e.step!==1?`:step="${e.step}"`:"",sliderRange:e.range?"range":"",sliderVertical:e.vertical?"vertical":"",uploadAction:e.uploadURL?`action="${e.uploadURL}"`:"",withCredentials:e.withCredentials?"with-credentials":"",multipleSelect:e.multipleSelect?"multiple":"",showFileList:e.showFileList?"show-file-list":"",limit:isNaN(e.limit)?"":`:limit="${e.limit}"`,uploadTipSlotChild:e.uploadTip?`<template #tip><div class="el-upload__tip">${e.uploadTip}</div></template>`:"",pictureUploadIconChild:'<template #default><i class="el-icon-plus"></i></template>',fileUploadIconChild:'<template #default><i class="el-icon-plus"></i></template>',buttonType:e.type?`type="${e.type}"`:"",buttonPlain:e.plain?"plain":"",buttonRound:e.round?"round":"",buttonCircle:e.circle?"circle":"",buttonIcon:e.icon?`icon="${e.icon}"`:"",contentPosition:!!e.contentPosition&&e.contentPosition!=="center"?`content-position="${e.contentPosition}"`:"",appendButtonChild:e.appendButton?`<template #append><el-button class="${e.buttonIcon}" ${e.appendButtonDisabled?"disabled":""}></el-button></template>`:""}}function buildRadioChildren(t,d){let e=t.options;const h=e.buttonStyle?"el-radio-button":"el-radio",m=e.border?"border":"",g=`style="{display: ${e.disp
:disabled="item.disabled" ${m} ${g}>{{item.label}}</${h}>`}function buildCheckboxChildren(t,d){let e=t.options;const h=e.buttonStyle?"el-checkbox-button":"el-checkbox",m=e.border?"border":"",g=`style="{display: ${e.displayStyle}}"`;return`<${h} v-for="(item, index) in ${e.name}Options" :key="index" :label="item.value"
:disabled="item.disabled" ${m} ${g}>{{item.label}}</${h}>`}function buildSelectChildren(t,d){let e=t.options;const h="el-option";return`<${h} v-for="(item, index) in ${e.name}Options" :key="index" :label="item.label"
:value="item.value" :disabled="item.disabled"></${h}>`}const elTemplates={input:(t,d)=>{const{vModel:e,readonly:h,disabled:m,size:g,type:a,showPassword:u,placeholder:r,clearable:f,minlength:l,maxlength:n,showWordLimit:i,prefixIcon:o,suffixIcon:s,appendButtonChild:c}=getElAttrs(t,d);return`<el-input ${e} ${h} ${m} ${g} ${a} ${u} ${r} ${f}
${l} ${n} ${i} ${o} ${s}>${c}</el-input>`},textarea:(t,d)=>{const{vModel:e,readonly:h,disabled:m,size:g,type:a,showPassword:u,placeholder:r,rows:f,clearable:l,minlength:n,maxlength:i,showWordLimit:o}=getElAttrs(t,d);return`<el-input type="textarea" ${e} ${h} ${m} ${g} ${a} ${u} ${r}
${f} ${l} ${n} ${i} ${o}></el-input>`},number:(t,d)=>{const{vModel:e,disabled:h,size:m,type:g,showPassword:a,placeholder:u,controlsPosition:r,min:f,max:l,precision:n,step:i}=getElAttrs(t,d);return`<el-input-number ${e} class="full-width-input" ${h} ${m} ${g} ${a}
${u} ${r} ${f} ${l} ${n} ${i}></el-input-number>`},radio:(t,d)=>{const{vModel:e,disabled:h,size:m}=getElAttrs(t,d),g=buildRadioChildren(t);return`<el-radio-group ${e} ${h} ${m}>${g}</el-radio-group>`},checkbox:(t,d)=>{const{vModel:e,disabled:h,size:m}=getElAttrs(t,d),g=buildCheckboxChildren(t);return`<el-checkbox-group ${e} ${h} ${m}>${g}</el-checkbox-group>`},select:(t,d)=>{const{vModel:e,disabled:h,size:m,clearable:g,filterable:a,allowCreate:u,defaultFirstOption:r,automaticDropdown:f,multiple:l,multipleLimit:n,remote:i,placeholder:o}=getElAttrs(t,d),s=buildSelectChildren(t);return`<el-select ${e} class="full-width-input" ${h} ${m} ${g} ${a}
${u} ${r} ${f} ${l} ${n} ${o}
${i}>${s}</el-select>`},time:(t,d)=>{const{vModel:e,readonly:h,disabled:m,size:g,placeholder:a,clearable:u,format:r,editable:f}=getElAttrs(t,d);return`<el-time-picker ${e} class="full-width-input" ${h} ${m} ${g} ${r}
value-format="HH:mm:ss" ${a} ${u} ${f}></el-time-picker>`},"time-range":(t,d)=>{const{vModel:e,readonly:h,disabled:m,size:g,startPlaceholder:a,endPlaceholder:u,clearable:r,format:f,editable:l}=getElAttrs(t,d);return`<el-time-picker is-range ${e} class="full-width-input" ${h} ${m} ${g} ${f}
value-format="HH:mm:ss" ${a} ${u} ${r} ${l}></el-time-picker>`},date:(t,d)=>{const{vModel:e,readonly:h,disabled:m,size:g,type:a,placeholder:u,clearable:r,format:f,valueFormat:l,editable:n}=getElAttrs(t,d);return`<el-date-picker ${e} ${a} class="full-width-input" ${h} ${m} ${g} ${f}
${l} ${u} ${r} ${n}></el-date-picker>`},"date-range":(t,d)=>{const{vModel:e,readonly:h,disabled:m,size:g,type:a,startPlaceholder:u,endPlaceholder:r,clearable:f,format:l,valueFormat:n,editable:i}=getElAttrs(t,d);return`<el-date-picker is-range ${e} ${a} class="full-width-input" ${h} ${m} ${g} ${l}
${n} ${u} ${r} ${f} ${i}></el-date-picker>`},switch:(t,d)=>{const{vModel:e,disabled:h,activeText:m,inactiveText:g,activeColor:a,inactiveColor:u,switchWidth:r}=getElAttrs(t,d);return`<el-switch ${e} ${h} ${m} ${g} ${a} ${u}
${r}></el-switch>`},rate:(t,d)=>{const{vModel:e,disabled:h,rateMax:m,lowThreshold:g,highThreshold:a,allowHalf:u,showText:r,showScore:f}=getElAttrs(t,d);return`<el-rate ${e} ${h} ${m} ${g} ${a} ${u}
${r} ${f}></el-rate>`},color:(t,d)=>{const{vModel:e,disabled:h,size:m}=getElAttrs(t,d);return`<el-color-picker ${e} ${h} ${m}></el-color-picker>`},slider:(t,d)=>{const{vModel:e,disabled:h,sliderMin:m,sliderMax:g,sliderStep:a,sliderRange:u,sliderVertical:r}=getElAttrs(t,d);return`<el-slider ${e} ${h} ${m} ${g} ${a} ${u}
${r}></el-slider>`},"picture-upload":(t,d)=>{const{vModel:e,disabled:h,uploadAction:m,withCredentials:g,multipleSelect:a,showFileList:u,limit:r,uploadTipSlotChild:f,pictureUploadIconChild:l}=getElAttrs(t,d);let n=t.options;return`<el-upload :file-list="${n.name}FileList" :headers="${n.name}UploadHeaders" :data="${n.name}UploadData"
${h} ${m} list-type="picture-card" ${g} ${a} ${u}
${r}>${f} ${l}</el-upload>`},"file-upload":(t,d)=>{const{vModel:e,disabled:h,uploadAction:m,withCredentials:g,multipleSelect:a,showFileList:u,limit:r,uploadTipSlotChild:f,fileUploadIconChild:l}=getElAttrs(t,d);let n=t.options;return`<el-upload :file-list="${n.name}FileList" :headers="${n.name}UploadHeaders" :data="${n.name}UploadData"
${h} ${m} list-type="picture-card" ${g} ${a} ${u}
${r}>${f} ${l}</el-upload>`},"rich-editor":(t,d)=>{const{vModel:e,disabled:h,placeholder:m}=getElAttrs(t,d);return`<vue-editor ${e} ${h} ${m}></vue-editor>`},cascader:(t,d)=>{const{vModel:e,disabled:h,size:m,clearable:g,filterable:a,placeholder:u}=getElAttrs(t,d),f=`:options="${t.options.name}Options"`;return`<el-cascader ${e} class="full-width-input" ${f} ${h} ${m} ${g}
${a} ${u}></el-cascader>`},"static-text":(t,d)=>`<div>${t.options.textContent}</div>`,"html-text":(t,d)=>`<div v-html="${t.options.htmlContent}"></div>`,button:(t,d)=>{const{buttonType:e,buttonPlain:h,buttonRound:m,buttonCircle:g,buttonIcon:a,disabled:u}=getElAttrs(t,d);return`<el-button ${e} ${h} ${m} ${g} ${a}
${u}>${t.options.label}</el-button>`},divider:(t,d)=>{const{contentPosition:e}=getElAttrs(t,d);return`<el-divider direction="horizontal" ${e}></el-divider>`}};function buildFieldWidget(t,d){let e=t.options;const h=e.labelHidden?"":e.label,m=e.labelHidden?'label-width="0"':e.labelWidth?`label-width="${e.labelWidth}px"`:"",g=e.labelTooltip?`title="${e.labelTooltip}"`:"",a=`prop="${e.name}"`;let u=[];!!e.required&&u.push("required"),!!e.customClass&&e.customClass.length>0&&u.push(e.customClass.join(" ")),e.labelAlign?e.labelAlign!=="label-left-align"&&u.push(e.labelAlign):t.formItemFlag&&d.labelAlign!=="label-left-align"&&u.push(d.labelAlign),t.formItemFlag||u.push("static-content-item");const r=u.length>0?`class="${u.join(" ")}"`:"";let f=`<template #label><span class="custom-label">${e.labelIconPosition==="front"?e.labelTooltip?`<el-tooltip content="${e.labelTooltip}" effect="light"><i class="${e.labelIconClass}"></i></el-tooltip>${e.label}`:`<i class="${e.labelIconClass}"></i>${e.label}`:e.labelTooltip?`${e.label}<el-tooltip content="${e.labelTooltip}" effect="light"><i class="${e.labelIconClass}"></i></el-tooltip>`:`${e.label}<i class="${e.labelIconClass}"></i>`}
</span></template>`;!e.labelIconClass&&(f="");const l=elTemplates[t.type]?elTemplates[t.type](t,d):null,n=!!t.formItemFlag,i=e.hidden?'v-show="false"':"";return n?`<el-form-item label="${h}" ${m} ${g} ${a} ${r}>
${f}
${l}
</el-form-item>`:`<div ${r} ${i}>${l}</div>`}function genTemplate(t,d,e=!1){const h=e?"@submit.prevent":"@submit.native.prevent";let m=[];return d.forEach(a=>{a.category==="container"?m.push(buildContainerWidget(a,t)):m.push(buildFieldWidget(a,t))}),` <el-form :model="${t.modelName}" ref="${t.refName}" :rules="${t.rulesName}"
label-position="${t.labelPosition}" label-width="${t.labelWidth}px" size="${t.size||"default"}"
${h}>
${m?m.join(`
`):""}
</el-form>`}const genGlobalCSS=function(t){return` .el-input-number.full-width-input, .el-cascader.full-width-input {
width: 100% !important;
}
.el-form-item--medium {
.el-radio {
line-height: 36px !important;
}
.el-rate{
margin-top: 8px;
}
}
.el-form-item--small {
.el-radio {
line-height: 32px !important;
}
.el-rate{
margin-top: 6px;
}
}
.el-form-item--mini {
.el-radio {
line-height: 28px !important;
}
.el-rate{
margin-top: 4px;
}
}
.clear-fix:before, .clear-fix:after {
display: table;
content: "";
}
.clear-fix:after {
clear: both;
}
.float-right {
float: right;
}
${t.cssCode}`},genScopedCSS=function(t,d=!1){return` div.table-container {
table.table-layout {
width: 100%;
table-layout: fixed;
border-collapse: collapse;
td.table-cell {
display: table-cell;
height: 36px;
border: 1px solid #e1e2e3;
}
}
}
div.tab-container {
}
.label-left-align ${d?":deep(.el-form-item__label)":"::v-deep .el-form-item__label"} {
text-align: left;
}
.label-center-align ${d?":deep(.el-form-item__label)":"::v-deep .el-form-item__label"} {
text-align: center;
}
.label-right-align ${d?":deep(.el-form-item__label)":"::v-deep .el-form-item__label"} {
text-align: right;
}
.custom-label {
}
.static-content-item {
min-height: 20px;
display: flex;
align-items: center;
${d?":deep(.el-divider--horizontal)":"::v-deep .el-divider--horizontal"} {
margin: 0;
}
}`},registerCWGenerator=function(t,d){containerTemplates[t]=d},registerFWGenerator=function(t,d){elTemplates[t]=d},genSFC=function(t,d,e,h=!1){const m=e.html(genTemplate(t,d,h),beautifierOpts.html),g=e.js(h?genVue3JS(t,d):genVue2JS(t,d),beautifierOpts.js),a=e.css(genGlobalCSS(t),beautifierOpts.css),u=e.css(genScopedCSS(t,h),beautifierOpts.css);return`<!--
Codes Generated By VForm:
https://www.vform666.com
-->
<template>
${m}
</template>
<script>
${g}
<\/script>
<style lang="scss">
${a}
</style>
<style lang="scss" scoped>
${u}
</style>`};var FileSaver_min={exports:{}};(function(t,d){(function(e,h){h()})(commonjsGlobal,function(){function e(f,l){return typeof l=="undefined"?l={autoBom:!1}:typeof l!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(f.type)?new Blob(["\uFEFF",f],{type:f.type}):f}function h(f,l,n){var i=new XMLHttpRequest;i.open("GET",f),i.responseType="blob",i.onload=function(){r(i.response,l,n)},i.onerror=function(){console.error("could not download file")},i.send()}function m(f){var l=new XMLHttpRequest;l.open("HEAD",f,!1);try{l.send()}catch{}return 200<=l.status&&299>=l.status}function g(f){try{f.dispatchEvent(new MouseEvent("click"))}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),f.dispatchEvent(l)}}var a=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof commonjsGlobal=="object"&&commonjsGlobal.global===commonjsGlobal?commonjsGlobal:void 0,u=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),r=a.saveAs||(typeof window!="object"||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!u?function(f,l,n){var i=a.URL||a.webkitURL,o=document.createElement("a");l=l||f.name||"download",o.download=l,o.rel="noopener",typeof f=="string"?(o.href=f,o.origin===location.origin?g(o):m(o.href)?h(f,l,n):g(o,o.target="_blank")):(o.href=i.createObjectURL(f),setTimeout(function(){i.revokeObjectURL(o.href)},4e4),setTimeout(function(){g(o)},0))}:"msSaveOrOpenBlob"in navigator?function(f,l,n){if(l=l||f.name||"download",typeof f!="string")navigator.msSaveOrOpenBlob(e(f,n),l);else if(m(f))h(f,l,n);else{var i=document.createElement("a");i.href=f,i.target="_blank",setTimeout(function(){g(i)})}}:function(f,l,n,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),typeof f=="string")return h(f,l,n);var o=f.type==="application/octet-stream",s=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&s||u)&&typeof FileReader!="undefined"){var p=new FileReader;p.onloadend=function(){var C=p.result;C=c?C:C.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=C:location=C,i=null},p.readAsDataURL(f)}else{var $=a.URL||a.webkitURL,v=$.createObjectURL(f);i?i.location=v:location.href=v,i=null,setTimeout(function(){$.revokeObjectURL(v)},4e4)}});a.saveAs=r.saveAs=r,t.exports=r})})(FileSaver_min);var index_vue_vue_type_style_index_0_scoped_true_lang$3="";const _sfc_main$2A={name:"ToolbarPanel",mixins:[i18n$1],components:{VFormRender,CodeEditor,Clipboard,SvgIcon},props:{designer:Object,globalDsv:{type:Object,default:()=>({})}},inject:["getDesignerConfig"],data(){return{designerConfig:this.getDesignerConfig(),toolbarWidth:460,showPreviewDialogFlag:!1,showImportJsonDialogFlag:!1,showExportJsonDialogFlag:!1,showExportCodeDialogFlag:!1,showFormDataDialogFlag:!1,showExportSFCDialogFlag:!1,showNodeTreeDrawerFlag:!1,nodeTreeData:[],importTemplate:"",jsonContent:"",jsonRawContent:"",formDataJson:"",formDataRawJson:"",vueCode:"",htmlCode:"",sfcCode:"",sfcCodeV3:"",activeCodeTab:"vue",activeSFCTab:"vue2",testFormData:{select62173:2},testOptionData:{select62173:[{label:"01",value:1},{label:"22",value:2},{label:"333",value:3}],select001:[{label:"\u8FA3\u6912",value:1},{label:"\u83E0\u841D",value:2},{label:"\u4E11\u6A58\u5B50",value:3}]}}},computed:{formJson(){return{widgetList:deepClone(this.designer.widgetList),formConfig:deepClone(this.designer.formConfig)}},undoDisabled(){return!this.designer.undoEnabled()},redoDisabled(){return!this.designer.redoEnabled()},layoutType(){return this.designer.getLayoutType()},designerDsv(){return this.globalDsv}},watch:{"designer.widgetList":{deep:!0,handler(t){}}},mounted(){let t=this.designerConfig.toolbarMaxWidth||460,d=this.designerConfig.toolbarMinWidth||300,e=window.innerWidth-260-300-320-80;this.too
`:this.optionLines+=t.value+this.separator+t.label+`
`}),this.showImportDialogFlag=!0},saveOptions(){let t=this.optionLines.split(`
`);t.length>0?(this.optionModel.optionItems=[],t.forEach(d=>{!!d&&!!d.trim()&&(d.indexOf(this.separator)!==-1?this.optionModel.optionItems.push({value:d.split(this.separator)[0],label:d.split(this.separator)[1]}):this.optionModel.optionItems.push({value:d,label:d}))})):this.optionModel.optionItems=[],this.showImportDialogFlag=!1},resetDefault(){this.selectedWidget.type==="checkbox"||this.selectedWidget.type==="select"&&this.selectedWidget.options.multiple?this.optionModel.defaultValue=[]:this.optionModel.defaultValue="",this.emitDefaultValueChange()},importCascaderOptions(){this.cascaderOptions=JSON.stringify(this.optionModel.optionItems,null," "),this.showImportCascaderDialogFlag=!0},saveCascaderOptions(){try{let t=JSON.parse(this.cascaderOptions);this.optionModel.optionItems=t,this.showImportCascaderDialogFlag=!1}catch(t){this.$message.error(this.i18nt("designer.hint.invalidOptionsData")+t.message)}}}},_withScopeId$2=t=>(require$$0$1.pushScopeId("data-v-7ce52f1e"),t=t(),require$$0$1.popScopeId(),t),_hoisted_1$q={class:"option-items-pane"},_hoisted_2$i=_withScopeId$2(()=>require$$0$1.createElementVNode("i",{class:"iconfont icon-drag drag-option"},null,-1)),_hoisted_3$f=_withScopeId$2(()=>require$$0$1.createElementVNode("i",{class:"iconfont icon-drag drag-option"},null,-1)),_hoisted_4$8={key:2,class:"full-width-input"},_hoisted_5$6={key:3},_hoisted_6$5={key:4},_hoisted_7$2={key:5,class:""},_hoisted_8$2={class:"dialog-footer"},_hoisted_9$1={key:6,class:""},_hoisted_10$1={class:"dialog-footer"};function _sfc_render$20(t,d,e,h,m,g){const a=require$$0$1.resolveComponent("el-input"),u=require$$0$1.resolveComponent("el-button"),r=require$$0$1.resolveComponent("el-radio"),f=require$$0$1.resolveComponent("draggable"),l=require$$0$1.resolveComponent("el-radio-group"),n=require$$0$1.resolveComponent("el-checkbox"),i=require$$0$1.resolveComponent("el-checkbox-group"),o=require$$0$1.resolveComponent("el-cascader"),s=require$$0$1.resolveComponent("el-form-item"),c=require$$0$1.resolveComponent("el-dialog"),p=require$$0$1.resolveComponent("code-editor"),$=require$$0$1.resolveDirective("drag");return require$$0$1.openBlock(),require$$0$1.createElementBlock("div",_hoisted_1$q,[e.selectedWidget.type==="radio"||e.selectedWidget.type==="select"&&!e.selectedWidget.options.multiple?(require$$0$1.openBlock(),require$$0$1.createBlock(l,{key:0,modelValue:g.optionModel.defaultValue,"onUpdate:modelValue":d[0]||(d[0]=v=>g.optionModel.defaultValue=v),onChange:g.emitDefaultValueChange},{default:require$$0$1.withCtx(()=>[require$$0$1.createVNode(f,require$$0$1.mergeProps({tag:"ul",list:g.optionModel.optionItems,"item-key":"id"},{group:"optionsGroup",ghostClass:"ghost",handle:".drag-option"}),{item:require$$0$1.withCtx(({element:v,index:C})=>[require$$0$1.createElementVNode("li",null,[require$$0$1.createVNode(r,{label:v.value},{default:require$$0$1.withCtx(()=>[require$$0$1.createVNode(a,{modelValue:v.value,"onUpdate:modelValue":y=>v.value=y,size:"small",style:{width:"100px"}},null,8,["modelValue","onUpdate:modelValue"]),require$$0$1.createVNode(a,{modelValue:v.label,"onUpdate:modelValue":y=>v.label=y,size:"small",style:{width:"100px"}},null,8,["modelValue","onUpdate:modelValue"]),_hoisted_2$i,require$$0$1.createVNode(u,{circle:"",plain:"",size:"small",type:"danger",onClick:y=>g.deleteOption(v,C),icon:"el-icon-minus",class:"col-delete-button"},null,8,["onClick"])]),_:2},1032,["label"])])]),_:1},16,["list"])]),_:1},8,["modelValue","onChange"])):e.selectedWidget.type==="checkbox"||e.selectedWidget.type==="select"&&e.selectedWidget.options.multiple?(require$$0$1.openBlock(),require$$0$1.createBlock(i,{key:1,modelValue:g.optionModel.defaultValue,"onUpdate:modelValue":d[1]||(d[1]=v=>g.optionModel.defaultValue=v),onChange:g.emitDefaultValueChange},{default:require$$0$1.withCtx(()=>[require$$0$1.createVNode(f,require$$0$1.mergeProps({tag:"ul",list:g.optionModel.optionItems,"item-key":"id"},{group:"optionsGroup",ghostClass:"ghost",handle:".drag-option"}),{item:require$$0$1.withCtx(({element:v,index:C})=>[require$$0$1.createElementVNode("li",null,[require$$0
/*
if ((value > 100) || (value < 0)) {
callback(new Error('error message')) //fail
} else {
callback(); //pass
}
*/`),this.showWidgetEventDialogFlag=!0},saveEventHandler(){const t=this.$refs.ecEditor.getEditorAnnotations();let d=!1;if(!!t&&t.length>0&&(t.forEach(e=>{e.type==="error"&&(d=!0)}),d)){this.$message.error(this.i18nt("designer.setting.syntaxCheckWarning"));return}this.selectedWidget.options[this.curEventName]=this.eventHandlerCode,this.showWidgetEventDialogFlag=!1}}},_hoisted_1$i={key:0,class:""},_hoisted_2$f={class:"dialog-footer"};function _sfc_render$k(t,d,e,h,m,g){const a=require$$0$1.resolveComponent("el-collapse-item"),u=require$$0$1.resolveComponent("el-collapse"),r=require$$0$1.resolveComponent("el-form"),f=require$$0$1.resolveComponent("el-scrollbar"),l=require$$0$1.resolveComponent("el-tab-pane"),n=require$$0$1.resolveComponent("form-setting"),i=require$$0$1.resolveComponent("el-tabs"),o=require$$0$1.resolveComponent("el-alert"),s=require$$0$1.resolveComponent("code-editor"),c=require$$0$1.resolveComponent("el-button"),p=require$$0$1.resolveComponent("el-dialog"),$=require$$0$1.resolveComponent("el-container"),v=require$$0$1.resolveDirective("drag");return require$$0$1.openBlock(),require$$0$1.createBlock($,{class:"panel-container"},{default:require$$0$1.withCtx(()=>[require$$0$1.createVNode(i,{modelValue:m.activeTab,"onUpdate:modelValue":d[4]||(d[4]=C=>m.activeTab=C),style:{height:"100%",overflow:"hidden"}},{default:require$$0$1.withCtx(()=>[require$$0$1.createVNode(l,{label:t.i18nt("designer.hint.widgetSetting"),name:"1"},{default:require$$0$1.withCtx(()=>[require$$0$1.createVNode(f,{class:"setting-scrollbar",style:require$$0$1.normalizeStyle({height:m.scrollerHeight})},{default:require$$0$1.withCtx(()=>[!!e.designer.selectedWidget&&!e.designer.selectedWidget.category?(require$$0$1.openBlock(),require$$0$1.createBlock(r,{key:0,model:g.optionModel,size:"small","label-position":"left","label-width":"120px",class:"setting-form",onSubmit:d[1]||(d[1]=require$$0$1.withModifiers(()=>{},["prevent"]))},{default:require$$0$1.withCtx(()=>[require$$0$1.createVNode(u,{modelValue:m.widgetActiveCollapseNames,"onUpdate:modelValue":d[0]||(d[0]=C=>m.widgetActiveCollapseNames=C),class:"setting-collapse"},{default:require$$0$1.withCtx(()=>[g.showCollapse(m.commonProps)?(require$$0$1.openBlock(),require$$0$1.createBlock(a,{key:0,name:"1",title:t.i18nt("designer.setting.commonSetting")},{default:require$$0$1.withCtx(()=>[(require$$0$1.openBlock(!0),require$$0$1.createElementBlock(require$$0$1.Fragment,null,require$$0$1.renderList(m.commonProps,(C,y)=>(require$$0$1.openBlock(),require$$0$1.createElementBlock(require$$0$1.Fragment,null,[g.hasPropEditor(y,C)?(require$$0$1.openBlock(),require$$0$1.createBlock(require$$0$1.resolveDynamicComponent(g.getPropEditor(y,C)),{key:0,designer:e.designer,"selected-widget":e.selectedWidget,"option-model":g.optionModel},null,8,["designer","selected-widget","option-model"])):require$$0$1.createCommentVNode("",!0)],64))),256))]),_:1},8,["title"])):require$$0$1.createCommentVNode("",!0),g.showCollapse(m.advProps)?(require$$0$1.openBlock(),require$$0$1.createBlock(a,{key:1,name:"2",title:t.i18nt("designer.setting.advancedSetting")},{default:require$$0$1.withCtx(()=>[(require$$0$1.openBlock(!0),require$$0$1.createElementBlock(require$$0$1.Fragment,null,require$$0$1.renderList(m.advProps,(C,y)=>(require$$0$1.openBlock(),require$$0$1.createElementBlock(require$$0$1.Fragment,null,[g.hasPropEditor(y,C)?(require$$0$1.openBlock(),require$$0$1.createBlock(require$$0$1.resolveDynamicComponent(g.getPropEditor(y,C)),{key:0,designer:e.designer,"selected-widget":e.selectedWidget,"option-model":g.optionModel},null,8,["designer","selected-widget","option-model"])):require$$0$1.createCommentVNode("",!0)],64))),256))]),_:1},8,["title"])):require$$0$1.createCommentVNode("",!0),g.showEventCollapse()&&g.showCollapse(m.eventProps)?(require$$0$1.openBlock(),require$$0$1.createBlock(a,{key:2,name:"3",title:t.i18nt("designer.setting.eventSetting")},{default:require$$0$1.withCtx(()=>[(require$$0$1.openBlock(!0),require$$0$1.createElementBlock(require$$0$1.Fragment,null,require$$0$1.renderList(m.eventProps,(C,y)=>(require$$0
* Sortable 1.14.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/function ownKeys(t,d){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(t);d&&(h=h.filter(function(m){return Object.getOwnPropertyDescriptor(t,m).enumerable})),e.push.apply(e,h)}return e}function _objectSpread2(t){for(var d=1;d<arguments.length;d++){var e=arguments[d]!=null?arguments[d]:{};d%2?ownKeys(Object(e),!0).forEach(function(h){_defineProperty(t,h,e[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ownKeys(Object(e)).forEach(function(h){Object.defineProperty(t,h,Object.getOwnPropertyDescriptor(e,h))})}return t}function _typeof(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(d){return typeof d}:_typeof=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},_typeof(t)}function _defineProperty(t,d,e){return d in t?Object.defineProperty(t,d,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[d]=e,t}function _extends(){return _extends=Object.assign||function(t){for(var d=1;d<arguments.length;d++){var e=arguments[d];for(var h in e)Object.prototype.hasOwnProperty.call(e,h)&&(t[h]=e[h])}return t},_extends.apply(this,arguments)}function _objectWithoutPropertiesLoose(t,d){if(t==null)return{};var e={},h=Object.keys(t),m,g;for(g=0;g<h.length;g++)m=h[g],!(d.indexOf(m)>=0)&&(e[m]=t[m]);return e}function _objectWithoutProperties(t,d){if(t==null)return{};var e=_objectWithoutPropertiesLoose(t,d),h,m;if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(t);for(m=0;m<g.length;m++)h=g[m],!(d.indexOf(h)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,h)||(e[h]=t[h]))}return e}var version="1.14.0";function userAgent(t){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(t)}var IE11OrLess=userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Edge=userAgent(/Edge/i),FireFox=userAgent(/firefox/i),Safari=userAgent(/safari/i)&&!userAgent(/chrome/i)&&!userAgent(/android/i),IOS=userAgent(/iP(ad|od|hone)/i),ChromeForAndroid=userAgent(/chrome/i)&&userAgent(/android/i),captureMode={capture:!1,passive:!1};function on(t,d,e){t.addEventListener(d,e,!IE11OrLess&&captureMode)}function off(t,d,e){t.removeEventListener(d,e,!IE11OrLess&&captureMode)}function matches(t,d){if(!!d){if(d[0]===">"&&(d=d.substring(1)),t)try{if(t.matches)return t.matches(d);if(t.msMatchesSelector)return t.msMatchesSelector(d);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(d)}catch{return!1}return!1}}function getParentOrHost(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function closest(t,d,e,h){if(t){e=e||document;do{if(d!=null&&(d[0]===">"?t.parentNode===e&&matches(t,d):matches(t,d))||h&&t===e)return t;if(t===e)break}while(t=getParentOrHost(t))}return null}var R_SPACE=/\s+/g;function toggleClass(t,d,e){if(t&&d)if(t.classList)t.classList[e?"add":"remove"](d);else{var h=(" "+t.className+" ").replace(R_SPACE," ").replace(" "+d+" "," ");t.className=(h+(e?" "+d:"")).replace(R_SPACE," ")}}function css(t,d,e){var h=t&&t.style;if(h){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(e=t.currentStyle),d===void 0?e:e[d];!(d in h)&&d.indexOf("webkit")===-1&&(d="-webkit-"+d),h[d]=e+(typeof e=="string"?"":"px")}}function matrix(t,d){var e="";if(typeof t=="string")e=t;else do{var h=css(t,"transform");h&&h!=="none"&&(e=h+" "+e)}while(!d&&(t=t.parentNode));var m=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return m&&new m(e)}function find(t,d,e){if(t){var h=t.getElementsByTagName(d),m=0,g=h.length;if(e)for(;m<g;m++)e(h[m],m);return h}return[]}function getWindowScrollingElement(){var t=document.scrollingElement;return t||document.documentElement}function getRect(t,d,e,h,m){if(!(!t.getBoundingClientRect&&t!==window)){var g,a,u,r,f,l,n;if(t!==window&&t.parentNode&&t!==getWindowScrollingElement()?(g=t.getBoundingClientRect(),a=g.top,u=g.left,r=g.bottom,f=g.right,l=g.height,n=g.width):(a=
`)&&(O="(?: "+O+")",k=" "+k,M++),y=new RegExp("^(?:"+O+")",x)),s&&(y=new RegExp("^"+O+"$(?!\\s)",x)),i&&(C=v.lastIndex),_=f.call(E?y:v,k),E?_?(_.input=_.input.slice(M),_[0]=_[0].slice(M),_.index=v.lastIndex,v.lastIndex+=_[0].length):v.lastIndex=0:i&&_&&(v.lastIndex=v.global?_.index+_[0].length:C),s&&_&&_.length>1&&l.call(_[0],y,function(){for(b=1;b<arguments.length-2;b++)arguments[b]===void 0&&(_[b]=void 0)}),_}),m.exports=n},"94ca":function(m,g,a){var u=a("d039"),r=/#|\.prototype\./,f=function(s,c){var p=n[l(s)];return p==o?!0:p==i?!1:typeof c=="function"?u(c):!!c},l=f.normalize=function(s){return String(s).replace(r,".").toLowerCase()},n=f.data={},i=f.NATIVE="N",o=f.POLYFILL="P";m.exports=f},"99af":function(m,g,a){var u=a("23e7"),r=a("d039"),f=a("e8b5"),l=a("861d"),n=a("7b0b"),i=a("50c4"),o=a("8418"),s=a("65f0"),c=a("1dde"),p=a("b622"),$=a("2d00"),v=p("isConcatSpreadable"),C=9007199254740991,y="Maximum allowed index exceeded",_=$>=51||!r(function(){var O=[];return O[v]=!1,O.concat()[0]!==O}),b=c("concat"),E=function(O){if(!l(O))return!1;var M=O[v];return M!==void 0?!!M:f(O)},x=!_||!b;u({target:"Array",proto:!0,forced:x},{concat:function(M){var k=n(this),T=s(k,0),S=0,w,L,q,A,I;for(w=-1,q=arguments.length;w<q;w++)if(I=w===-1?k:arguments[w],E(I)){if(A=i(I.length),S+A>C)throw TypeError(y);for(L=0;L<A;L++,S++)L in I&&o(T,S,I[L])}else{if(S>=C)throw TypeError(y);o(T,S++,I)}return T.length=S,T}})},"9bdd":function(m,g,a){var u=a("825a");m.exports=function(r,f,l,n){try{return n?f(u(l)[0],l[1]):f(l)}catch(o){var i=r.return;throw i!==void 0&&u(i.call(r)),o}}},"9bf2":function(m,g,a){var u=a("83ab"),r=a("0cfb"),f=a("825a"),l=a("c04e"),n=Object.defineProperty;g.f=u?n:function(o,s,c){if(f(o),s=l(s,!0),f(c),r)try{return n(o,s,c)}catch{}if("get"in c||"set"in c)throw TypeError("Accessors not supported");return"value"in c&&(o[s]=c.value),o}},"9ed3":function(m,g,a){var u=a("ae93").IteratorPrototype,r=a("7c73"),f=a("5c6c"),l=a("d44e"),n=a("3f8c"),i=function(){return this};m.exports=function(o,s,c){var p=s+" Iterator";return o.prototype=r(u,{next:f(1,c)}),l(o,p,!1,!0),n[p]=i,o}},"9f7f":function(m,g,a){var u=a("d039");function r(f,l){return RegExp(f,l)}g.UNSUPPORTED_Y=u(function(){var f=r("a","y");return f.lastIndex=2,f.exec("abcd")!=null}),g.BROKEN_CARET=u(function(){var f=r("^r","gy");return f.lastIndex=2,f.exec("str")!=null})},a2bf:function(m,g,a){var u=a("e8b5"),r=a("50c4"),f=a("0366"),l=function(n,i,o,s,c,p,$,v){for(var C=c,y=0,_=$?f($,v,3):!1,b;y<s;){if(y in o){if(b=_?_(o[y],y,i):o[y],p>0&&u(b))C=l(n,i,b,r(b.length),C,p-1)-1;else{if(C>=9007199254740991)throw TypeError("Exceed the acceptable array length");n[C]=b}C++}y++}return C};m.exports=l},a352:function(m,g){m.exports=h},a434:function(m,g,a){var u=a("23e7"),r=a("23cb"),f=a("a691"),l=a("50c4"),n=a("7b0b"),i=a("65f0"),o=a("8418"),s=a("1dde"),c=a("ae40"),p=s("splice"),$=c("splice",{ACCESSORS:!0,0:0,1:2}),v=Math.max,C=Math.min,y=9007199254740991,_="Maximum allowed length exceeded";u({target:"Array",proto:!0,forced:!p||!$},{splice:function(E,x){var O=n(this),M=l(O.length),k=r(E,M),T=arguments.length,S,w,L,q,A,I;if(T===0?S=w=0:T===1?(S=0,w=M-k):(S=T-2,w=C(v(f(x),0),M-k)),M+S-w>y)throw TypeError(_);for(L=i(O,w),q=0;q<w;q++)A=k+q,A in O&&o(L,q,O[A]);if(L.length=w,S<w){for(q=k;q<M-w;q++)A=q+w,I=q+S,A in O?O[I]=O[A]:delete O[I];for(q=M;q>M-w+S;q--)delete O[q-1]}else if(S>w)for(q=M-w;q>k;q--)A=q+w-1,I=q+S-1,A in O?O[I]=O[A]:delete O[I];for(q=0;q<S;q++)O[q+k]=arguments[q+2];return O.length=M-w+S,L}})},a4d3:function(m,g,a){var u=a("23e7"),r=a("da84"),f=a("d066"),l=a("c430"),n=a("83ab"),i=a("4930"),o=a("fdbf"),s=a("d039"),c=a("5135"),p=a("e8b5"),$=a("861d"),v=a("825a"),C=a("7b0b"),y=a("fc6a"),_=a("c04e"),b=a("5c6c"),E=a("7c73"),x=a("df75"),O=a("241c"),M=a("057f"),k=a("7418"),T=a("06cf"),S=a("9bf2"),w=a("d1e7"),L=a("9112"),q=a("6eeb"),A=a("5692"),I=a("f772"),F=a("d012"),V=a("90e3"),R=a("b622"),B=a("e538"),N=a("746f"),P=a("d44e"),j=a("69f3"),D=a("b727").forEach,W=I("hidden"),H="Symbol",z="prototype",K=R("toPrimitive"),Z=j.set,ie=j.getterFor(H),se=Object[z],ue=r.Symbol,fe=f("JSON","stringify"),ye=T.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(G,U){return o(G)||s(G,U)||p(G,U)||$()}function C(G){if(Array.isArray(G))return c(G)}function y(G){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(G))return Array.from(G)}function _(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(G){return C(G)||y(G)||p(G)||_()}var E=a("a352"),x=a.n(E);function O(G){G.parentElement!==null&&G.parentElement.removeChild(G)}function M(G,U,Y){var ee=Y===0?G.children[0]:G.children[Y-1].nextSibling;G.insertBefore(U,ee)}var k=a("dbf1");a("13d5"),a("4fad"),a("ac1f"),a("5319");function T(G){var U=Object.create(null);return function(ee){var re=U[ee];return re||(U[ee]=G(ee))}}var S=/-(\w)/g,w=T(function(G){return G.replace(S,function(U,Y){return Y.toUpperCase()})});a("5db7"),a("73d9");var L=["Start","Add","Remove","Update","End"],q=["Choose","Unchoose","Sort","Filter","Clone"],A=["Move"],I=[A,L,q].flatMap(function(G){return G}).map(function(G){return"on".concat(G)}),F={manage:A,manageAndEmit:L,emit:q};function V(G){return I.indexOf(G)!==-1}a("caad"),a("2ca0");var R=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function B(G){return R.includes(G)}function N(G){return["transition-group","TransitionGroup"].includes(G)}function P(G){return["id","class","role","style"].includes(G)||G.startsWith("data-")||G.startsWith("aria-")||G.startsWith("on")}function j(G){return G.reduce(function(U,Y){var ee=v(Y,2),re=ee[0],de=ee[1];return U[re]=de,U},{})}function D(G){var U=G.$attrs,Y=G.componentData,ee=Y===void 0?{}:Y,re=j(Object.entries(U).filter(function(de){var ce=v(de,2),ve=ce[0];return ce[1],P(ve)}));return i(i({},re),ee)}function W(G){var U=G.$attrs,Y=G.callBackBuilder,ee=j(H(U));Object.entries(Y).forEach(function(de){var ce=v(de,2),ve=ce[0],xe=ce[1];F[ve].forEach(function(ge){ee["on".concat(ge)]=xe(ge)})});var re="[data-draggable]".concat(ee.draggable||"");return i(i({},ee),{},{draggable:re})}function H(G){return Object.entries(G).filter(function(U){var Y=v(U,2),ee=Y[0];return Y[1],!P(ee)}).map(function(U){var Y=v(U,2),ee=Y[0],re=Y[1];return[w(ee),re]}).filter(function(U){var Y=v(U,2),ee=Y[0];return Y[1],!V(ee)})}a("c740");function z(G,U){if(!(G instanceof U))throw new TypeError("Cannot call a class as a function")}function K(G,U){for(var Y=0;Y<U.length;Y++){var ee=U[Y];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(G,ee.key,ee)}}function Z(G,U,Y){return U&&K(G.prototype,U),Y&&K(G,Y),G}var ie=function(U){var Y=U.el||Array.isArray(U.children)&&U.children[0].el.parentNode;return Y||console.error("\u4F7F\u7528 transition-group , \u9700\u8981\u5728slot\u4E2Dtemplate\u5185\u81F3\u5C112\u5C42html\u6807\u7B7E"),Y||{}},se=function(U,Y){return U.__draggable_context=Y},ue=function(U){return U.__draggable_context},fe=function(){function G(U){var Y=U.nodes,ee=Y.header,re=Y.default,de=Y.footer,ce=U.root,ve=U.realList;z(this,G),this.defaultNodes=re,this.children=[].concat(b(ee),b(re),b(de)),this.externalComponent=ce.externalComponent,this.rootTransition=ce.transition,this.tag=ce.tag,this.realList=ve}return Z(G,[{key:"render",value:function(Y,ee){var re=this.tag,de=this.children,ce=this._isRootComponent,ve=ce?{default:function(){return de}}:de;return Y(re,ee,ve)}},{key:"updated",value:function(){var Y=this.defaultNodes,ee=this.realList;Y.forEach(function(re,de){se(ie(re),{element:ee[de],index:de})})}},{key:"getUnderlyingVm",value:function(Y){return ue(Y)}},{key:"getVmIndexFromDomIndex",value:function(Y,
<el-card ${h} ${m} ${g} ${a}>
<template #header>
<div class="clear-fix">
<span>${e.label}</span>
${e.showFold?'<i class="float-right el-icon-arrow-down"></i>':""}
</div>
</template>
${t.widgetList.map(r=>r.category==="container"?buildContainerWidget(r,d):buildFieldWidget(r,d)).join("")}
</el-card>
</div>`},alertTemplateGenerator=function(t,d){const e=t.options,h=`title="${e.title}"`,m=`type=${e.type}`,g=e.description?`description="${e.description}"`:"",a=`:closable="${e.closable}"`,u=e.closeText?`close-text="${e.closeText}"`:"",r=`:center="${e.center}"`,f=`:show-icon="${e.showIcon}"`,l=`effect="${e.effect}"`;return`<el-alert ${h} ${m} ${g} ${a} ${u} ${r}
${f} ${l}>
</el-alert>`},_sfc_main={name:"alert-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper},created(){this.registerToRefList(),this.initEventHandler()},beforeUnmount(){this.unregisterFromRefList()},methods:{handleCloseCustomEvent(){this.field.options.onClose&&new Function(this.field.options.onClose).call(this)}}};function _sfc_render(t,d,e,h,m,g){const a=require$$0$1.resolveComponent("el-alert"),u=require$$0$1.resolveComponent("static-content-wrapper");return require$$0$1.openBlock(),require$$0$1.createBlock(u,{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:require$$0$1.withCtx(()=>[require$$0$1.createVNode(a,{ref:"fieldEditor",title:e.field.options.title,type:e.field.options.type,description:e.field.options.description,closable:e.field.options.closable,center:e.field.options.center,"close-text":e.field.options.closeText,"show-icon":e.field.options.showIcon,effect:e.field.options.effect,onClose:g.handleCloseCustomEvent},null,8,["title","type","description","closable","center","close-text","show-icon","effect","onClose"])]),_:1},8,["designer","field","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var AlertWidget=_export_sfc$1(_sfc_main,[["render",_sfc_render]]);const loadExtension=function(t){addContainerWidgetSchema(cardSchema),t.component(CardWidget.name,CardWidget),t.component(CardItem.name,CardItem),registerCPEditor(t,"card-folded","card-folded-editor",createBooleanEditor("folded","extension.setting.cardFolded")),registerCPEditor(t,"card-showFold","card-showFold-editor",createBooleanEditor("showFold","extension.setting.cardShowFold")),registerCPEditor(t,"card-cardWidth","card-cardWidth-editor",createInputTextEditor("cardWidth","extension.setting.cardWidth")),registerCPEditor(t,"card-shadow","card-shadow-editor",createSelectEditor("shadow","extension.setting.cardShadow",{optionItems:[{label:"never",value:"never"},{label:"hover",value:"hover"},{label:"always",value:"always"}]})),registerCWGenerator("card",cardTemplateGenerator),addCustomWidgetSchema(alertSchema),t.component(AlertWidget.name,AlertWidget),registerCPEditor(t,"alert-title","alert-title-editor",createInputTextEditor("title","extension.setting.alertTitle"));let e=[{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"info",value:"info"},{label:"error",value:"error"}];t.component("alert-type-editor",createSelectEditor("type","extension.setting.alertType",{optionItems:e})),registerCPEditor(t,"alert-description","alert-description-editor",createInputTextEditor("description","extension.setting.description")),registerCPEditor(t,"alert-closable","alert-closable-editor",createBooleanEditor("closable","extension.setting.closable")),registerCPEditor(t,"alert-closeText","alert-closeText-editor",createInputTextEditor("closeText","extension.setting.closeText")),registerCPEditor(t,"alert-center","alert-center-editor",createBooleanEditor("center","extension.setting.center")),registerCPEditor(t,"alert-showIcon","alert-showIcon-editor",createBooleanEditor("showIcon","extension.setting.showIcon")),registerCPEditor(t,"alert-effect","alert-effect-editor",createRadioButtonGroupEditor("effect","extension.setting.effect",{optionItems:[{label:"light",value:"light"},{label:"dark",value:"dark"}]})),registerEPEditor(t,"alert-onClose","alert-onClose-editor",createEventHandlerEditor("onClose",[])),registerFWGenerator("alert",alertTemplateGenerator)};VFormDesigner.install=function(t){addDirective(t),loadExtension(t),t.use(ContainerWidgets),t.use(Con