|
|
var h2=Object.defineProperty,p2=Object.defineProperties;var g2=Object.getOwnPropertyDescriptors;var Ul=Object.getOwnPropertySymbols;var nv=Object.prototype.hasOwnProperty,rv=Object.prototype.propertyIsEnumerable;var iv=(e,t,n)=>t in e?h2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,me=(e,t)=>{for(var n in t||(t={}))nv.call(t,n)&&iv(e,n,t[n]);if(Ul)for(var n of Ul(t))rv.call(t,n)&&iv(e,n,t[n]);return e},Oe=(e,t)=>p2(e,g2(t));var ds=(e,t)=>{var n={};for(var r in e)nv.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ul)for(var r of Ul(e))t.indexOf(r)<0&&rv.call(e,r)&&(n[r]=e[r]);return n};function ql(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return t?i=>!!n[i.toLowerCase()]:i=>!!n[i]}const v2="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",m2=ql(v2),y2="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",b2=ql(y2);function ov(e){return!!e||e===""}function Ve(e){if(We(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=et(r)?C2(r):Ve(r);if(i)for(const l in i)t[l]=i[l]}return t}else{if(et(e))return e;if(vt(e))return e}}const w2=/;(?![^(]*\))/g,S2=/:(.+)/;function C2(e){const t={};return e.split(w2).forEach(n=>{if(n){const r=n.split(S2);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function K(e){let t="";if(et(e))t=e;else if(We(e))for(let n=0;n<e.length;n++){const r=K(e[n]);r&&(t+=r+" ")}else if(vt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function jr(e){if(!e)return null;let{class:t,style:n}=e;return t&&!et(t)&&(e.class=K(t)),n&&(e.style=Ve(n)),e}function k2(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Li(e[r],t[r]);return n}function Li(e,t){if(e===t)return!0;let n=vo(e),r=vo(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=wa(e),r=wa(t),n||r)return e===t;if(n=We(e),r=We(t),n||r)return n&&r?k2(e,t):!1;if(n=vt(e),r=vt(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,l=Object.keys(t).length;if(i!==l)return!1;for(const c in e){const u=e.hasOwnProperty(c),f=t.hasOwnProperty(c);if(u&&!f||!u&&f||!Li(e[c],t[c]))return!1}}return String(e)===String(t)}function Gl(e,t){return e.findIndex(n=>Li(n,t))}const Me=e=>et(e)?e:e==null?"":We(e)||vt(e)&&(e.toString===av||!Qe(e.toString))?JSON.stringify(e,sv,2):String(e),sv=(e,t)=>t&&t.__v_isRef?sv(e,t.value):hs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:go(t)?{[`Set(${t.size})`]:[...t.values()]}:vt(t)&&!We(t)&&!lv(t)?String(t):t,Dt={},fs=[],At=()=>{},$2=()=>!1,E2=/^on[^a-z]/,ba=e=>E2.test(e),Md=e=>e.startsWith("onUpdate:"),tn=Object.assign,Rd=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},_2=Object.prototype.hasOwnProperty,ft=(e,t)=>_2.call(e,t),We=Array.isArray,hs=e=>gs(e)==="[object Map]",go=e=>gs(e)==="[object Set]",vo=e=>gs(e)==="[object Date]",Qe=e=>typeof e=="function",et=e=>typeof e=="string",wa=e=>typeof e=="symbol",vt=e=>e!==null&&typeof e=="object",ps=e=>vt(e)&&Qe(e.then)&&Qe(e.catch),av=Object.prototype.toString,gs=e=>av.call(e),Yl=e=>gs(e).slice(8,-1),lv=e=>gs(e)==="[object Object]",Ld=e=>et(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Sa=ql(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xl=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},T2=/-(\w)/g,xn=Xl(e=>e.replace(T2,(t,n)=>n?n.toUpperCase():"")),A2=/\B([A-Z])/g,$r=Xl(e=>e.replace(A2,"-$1").toLowerCase()),Fn=Xl(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ca=Xl(e=>e?`on${Fn(e)}`:""),vs=(e,t)=>!Object.is(e,t),ms=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Zl=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ni=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let uv;const O2=()=>uv||(uv=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Gn;class Nd{constructor(t=!1){this.`),i]);else{const l=[`[Vue warn]: ${e}`,...t];i.length&&l.push(``,...h$(i)),console.warn(...l)}bo()}function f$(){let e=Ta[Ta.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function h$(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[``],...p$(n))}),t}function p$({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,i=` at <${Lm(e.component,e.type,r)}`,l=">"+n;return e.props?[i,...g$(e.props),l]:[i+l]}function g$(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...Nv(r,e[r]))}),n.length>3&&t.push(" ..."),t}function Nv(e,t,n){return et(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Nt(t)?(t=Nv(e,xt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Qe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=xt(t),n?t:[`${e}=`,t])}function Ur(e,t,n,r){let i;try{i=r?e(...r):e()}catch(l){So(l,t,n)}return i}function Xn(e,t,n,r){if(Qe(e)){const l=Ur(e,t,n,r);return l&&ps(l)&&l.catch(c=>{So(c,t,n)}),l}const i=[];for(let l=0;l<e.length;l++)i.push(Xn(e[l],t,n,r));return i}function So(e,t,n,r=!0){const i=t?t.vnode:null;if(t){let l=t.parent;const c=t.proxy,u=n;for(;l;){const h=l.ec;if(h){for(let s=0;s<h.length;s++)if(h[s](e,c,u)===!1)return}l=l.parent}const f=t.appContext.config.errorHandler;if(f){Ur(f,null,10,[e,c,u]);return}}v$(e,n,i,r)}function v$(e,t,n,r=!0){console.error(e)}let uu=!1,qd=!1;const Zn=[];let di=0;const Aa=[];let Oa=null,Ss=0;const xa=[];let Fi=null,Cs=0;const Iv=Promise.resolve();let Gd=null,Yd=null;function He(e){const t=Gd||Iv;return e?t.then(this?e.bind(this):e):t}function m$(e){let t=di+1,n=Zn.length;for(;t<n;){const r=t+n>>>1;Ma(Zn[r])<e?t=r+1:n=r}return t}function Xd(e){(!Zn.length||!Zn.includes(e,uu&&e.allowRecurse?di+1:di))&&e!==Yd&&(e.id==null?Zn.push(e):Zn.splice(m$(e.id),0,e),Pv())}function Pv(){!uu&&!qd&&(qd=!0,Gd=Iv.then(Fv))}function y$(e){const t=Zn.indexOf(e);t>di&&Zn.splice(t,1)}function Dv(e,t,n,r){We(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?r+1:r))&&n.push(e),Pv()}function b$(e){Dv(e,Oa,Aa,Ss)}function Zd(e){Dv(e,Fi,xa,Cs)}function cu(e,t=null){if(Aa.length){for(Yd=t,Oa=[...new Set(Aa)],Aa.length=0,Ss=0;Ss<Oa.length;Ss++)Oa[Ss]();Oa=null,Ss=0,Yd=null,cu(e,t)}}function du(e){if(cu(),xa.length){const t=[...new Set(xa)];if(xa.length=0,Fi){Fi.push(...t);return}for(Fi=t,Fi.sort((n,r)=>Ma(n)-Ma(r)),Cs=0;Cs<Fi.length;Cs++)Fi[Cs]();Fi=null,Cs=0}}const Ma=e=>e.id==null?1/0:e.id;function Fv(e){qd=!1,uu=!0,cu(e),Zn.sort((n,r)=>Ma(n)-Ma(r));const t=At;try{for(di=0;di<Zn.length;di++){const n=Zn[di];n&&n.active!==!1&&Ur(n,null,14)}}finally{di=0,Zn.length=0,du(),uu=!1,Gd=null,(Zn.length||Aa.length||xa.length)&&Fv(e)}}let ks,fu=[];function Bv(e,t){var n,r;ks=e,ks?(ks.enabled=!0,fu.forEach(({event:i,args:l})=>ks.emit(i,...l)),fu=[]):typeof window!="undefined"&&window.HTMLElement&&!((r=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||r===void 0?void 0:r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(l=>{Bv(l,t)}),setTimeout(()=>{ks||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,fu=[])},3e3)):fu=[]}function w$(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Dt;let i=n;const l=t.startsWith("update:"),c=l&&t.slice(7);if(c&&c in r){const s=`${c==="modelValue"?"model":c}Modifiers`,{number:o,trim:a}=r[s]||Dt;a&&(i=n.map(d=>d.trim())),o&&(i=n.map(Ni))}let u,f=r[u=Ca(t)]||r[u=Ca(xn(t))];!f&&l&&(f=r[u=Ca($r(t))]),f&&Xn(f,e,6,i);const h=r[u+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[u])return;e.emitted[u]=!0,Xn(h,e,6,i)}}function Hv(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const l=e.emits;let c={},u=!1;if(!Qe(e)){const f=h=>{const s=Hv(h,t,!0);s&&(u=!0,tn(c,s))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!l&&!u?(r.set(e,null),null):(We(l)?l.forEach(f=>c[f]=null):tn(c,l),r.set(e,c),c)}function hu(e,t){return!e||!ba(t)?!1:(t=t.slice(2).replace(/Once$/,""),ft(e,t[0].toLowerCase()+t.slice(1))||ft(e,$r(t))||ft(e,t))}let $n=null,pu=null;function Ra(e){const t=$n;return $n=e,pu=e&&e.type.__scopeId||null,t}function S$(e){pu=e}function C$(){pu=null}const k$=e=>ue;function ue(e,t=$n,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&yf(-1);const l=Ra(t),c=e(...i);return Ra(l),r._d&&
`),function(u){if(l=u.indexOf(":"),r=Rf.trim(u.substr(0,l)).toLowerCase(),i=Rf.trim(u.substr(l+1)),r){if(n[r]&&q_.indexOf(r)>=0)return;r==="set-cookie"?n[r]=(n[r]?n[r]:[]).concat([i]):n[r]=n[r]?n[r]+", "+i:i}}),n},Ay=nr,Y_=Ay.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function i(l){var c=l;return t&&(n.setAttribute("href",c),c=n.href),n.setAttribute("href",c),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(c){var u=Ay.isString(c)?i(c):c;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}();function Lf(e){this.message=e}Lf.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Lf.prototype.__CANCEL__=!0;var Iu=Lf,Pu=nr,X_=H_,Z_=V_,J_=Ey,Q_=U_,eT=G_,tT=Y_,Nf=Ty,nT=Fu,rT=Iu,Oy=function(t){return new Promise(function(r,i){var l=t.data,c=t.headers,u=t.responseType,f;function h(){t.cancelToken&&t.cancelToken.unsubscribe(f),t.signal&&t.signal.removeEventListener("abort",f)}Pu.isFormData(l)&&delete c["Content-Type"];var s=new XMLHttpRequest;if(t.auth){var o=t.auth.username||"",a=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";c.Authorization="Basic "+btoa(o+":"+a)}var d=Q_(t.baseURL,t.url);s.open(t.method.toUpperCase(),J_(d,t.params,t.paramsSerializer),!0),s.timeout=t.timeout;function p(){if(!!s){var v="getAllResponseHeaders"in s?eT(s.getAllResponseHeaders()):null,y=!u||u==="text"||u==="json"?s.responseText:s.response,b={data:y,status:s.status,statusText:s.statusText,headers:v,config:t,request:s};X_(function(w){r(w),h()},function(w){i(w),h()},b),s=null}}if("onloadend"in s?s.onloadend=p:s.onreadystatechange=function(){!s||s.readyState!==4||s.status===0&&!(s.responseURL&&s.responseURL.indexOf("file:")===0)||setTimeout(p)},s.onabort=function(){!s||(i(Nf("Request aborted",t,"ECONNABORTED",s)),s=null)},s.onerror=function(){i(Nf("Network Error",t,null,s)),s=null},s.ontimeout=function(){var y=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",b=t.transitional||nT.transitional;t.timeoutErrorMessage&&(y=t.timeoutErrorMessage),i(Nf(y,t,b.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",s)),s=null},Pu.isStandardBrowserEnv()){var g=(t.withCredentials||tT(d))&&t.xsrfCookieName?Z_.read(t.xsrfCookieName):void 0;g&&(c[t.xsrfHeaderName]=g)}"setRequestHeader"in s&&Pu.forEach(c,function(y,b){typeof l=="undefined"&&b.toLowerCase()==="content-type"?delete c[b]:s.setRequestHeader(b,y)}),Pu.isUndefined(t.withCredentials)||(s.withCredentials=!!t.withCredentials),u&&u!=="json"&&(s.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&s.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&s.upload&&s.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(f=function(v){!s||(i(!v||v&&v.type?new rT("canceled"):v),s.abort(),s=null)},t.cancelToken&&t.cancelToken.subscribe(f),t.signal&&(t.signal.aborted?f():t.signal.addEventListener("abort",f))),l||(l=null),s.send(l)})},yn=nr,xy=D_,iT=_y,oT={"Content-Type":"application/x-www-form-urlencoded"};function My(e,t){!yn.isUndefined(e)&&yn.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function sT(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Oy),e}function aT(e,t,n){if(yn.isString(e))try{return(t||JSON.parse)(e),yn.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var Du={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:sT(),transformRequest:[function(t,n){return xy(n,"Accept"),xy(n,"Content-Type"),yn.isFormData(t)||yn.isArrayBuffer(t)||yn.isBuffer(t)||yn.isStream(t)||yn.isFile(t)||yn.isBlob(t)?t:yn.isArrayBufferView(t)?t.buffer:yn.isURLSearchParams(t)
* clipboard.js v2.0.11 * https://clipboardjs.com/
* * Licensed MIT © Zeno Rocha */(function(e,t){(function(r,i){e.exports=i()})(En,function(){return function(){var n={686:function(l,c,u){u.d(c,{default:function(){return I}});var f=u(279),h=u.n(f),s=u(370),o=u.n(s),a=u(817),d=u.n(a);function p(H){try{return document.execCommand(H)}catch{return!1}}var g=function(B){var j=d()(B);return p("cut"),j},v=g;function y(H){var B=document.documentElement.getAttribute("dir")==="rtl",j=document.createElement("textarea");j.style.fontSize="12pt",j.style.border="0",j.style.padding="0",j.style.margin="0",j.style.position="absolute",j.style[B?"right":"left"]="-9999px";var q=window.pageYOffset||document.documentElement.scrollTop;return j.style.top="".concat(q,"px"),j.setAttribute("readonly",""),j.value=H,j}var b=function(B,j){var q=y(B);j.container.appendChild(q);var W=d()(q);return p("copy"),q.remove(),W},k=function(B){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},q="";return typeof B=="string"?q=b(B,j):B instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(B==null?void 0:B.type)?q=b(B.value,j):(q=d()(B),p("copy")),q},w=k;function m(H){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(j){return typeof j}:m=function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},m(H)}var S=function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},j=B.action,q=j===void 0?"copy":j,W=B.container,U=B.target,Q=B.text;if(q!=="copy"&&q!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(U!==void 0)if(U&&m(U)==="object"&&U.nodeType===1){if(q==="copy"&&U.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(q==="cut"&&(U.hasAttribute("readonly")||U.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(Q)return w(Q,{container:W});if(U)return q==="cut"?v(U):w(U,{container:W})},E=S;function C(H){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C=function(j){return typeof j}:C=function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},C(H)}function _(H,B){if(!(H instanceof B))throw new TypeError("Cannot call a class as a function")}function $(H,B){for(var j=0;j<B.length;j++){var q=B[j];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(H,q.key,q)}}function A(H,B,j){return B&&$(H.prototype,B),j&&$(H,j),H}function O(H,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function");H.prototype=Object.create(B&&B.prototype,{constructor:{value:H,writable:!0,configurable:!0}}),B&&x(H,B)}function x(H,B){return x=Object.setPrototypeOf||function(q,W){return q.__proto__=W,q},x(H,B)}function M(H){var B=N();return function(){var q=D(H),W;if(B){var U=D(this).constructor;W=Reflect.construct(q,arguments,U)}else W=q.apply(this,arguments);return L(this,W)}}function L(H,B){return B&&(C(B)==="object"||typeof B=="function")?B:R(H)}function R(H){if(H===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return H}function N(){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 D(H){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(j){return j.__proto__||Object.getPrototypeOf(j)},D(H)}function P(H,B){var j="data-clipboard-".concat(H);if(!!B.hasAttribute(j))return B.getAttribute(j)}var F=function(H){O(j,H);var B=M(j);function j(q,W){var U;return _(this,j),U=B.call(this),U.resolveOptions(W),U.listenClick(q),U}return A(j,[{key:"resolveOptions",value:function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof W.action== * Quill Editor v1.3.7 * https://quilljs.com/
* Copyright (c) 2014, Jason Chen * Copyright (c) 2013, salesforce.com */(function(e,t){(function(r,i){e.exports=i()})(typeof self!="undefined"?self:En,function(){return function(n){var r={};function i(l){if(r[l])return r[l].exports;var c=r[l]={i:l,l:!1,exports:{}};return n[l].call(c.exports,c,c.exports,i),c.l=!0,c.exports}return i.m=n,i.c=r,i.d=function(l,c,u){i.o(l,c)||Object.defineProperty(l,c,{configurable:!1,enumerable:!0,get:u})},i.n=function(l){var c=l&&l.__esModule?function(){return l.default}:function(){return l};return i.d(c,"a",c),c},i.o=function(l,c){return Object.prototype.hasOwnProperty.call(l,c)},i.p="",i(i.s=109)}([function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var l=i(17),c=i(18),u=i(19),f=i(45),h=i(46),s=i(47),o=i(48),a=i(49),d=i(12),p=i(32),g=i(33),v=i(31),y=i(1),b={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:l.default,Format:c.default,Leaf:u.default,Embed:o.default,Scroll:f.default,Block:s.default,Inline:h.default,Text:a.default,Attributor:{Attribute:d.default,Class:p.default,Style:g.default,Store:v.default}};r.default=b},function(n,r,i){var l=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,b){y.__proto__=b}||function(y,b){for(var k in b)b.hasOwnProperty(k)&&(y[k]=b[k])};return function(y,b){v(y,b);function k(){this.constructor=y}y.prototype=b===null?Object.create(b):(k.prototype=b.prototype,new k)}}();Object.defineProperty(r,"__esModule",{value:!0});var c=function(v){l(y,v);function y(b){var k=this;return b="[Parchment] "+b,k=v.call(this,b)||this,k.message=b,k.name=k.constructor.name,k}return y}(Error);r.ParchmentError=c;var u={},f={},h={},s={};r.DATA_KEY="__blot";var o;(function(v){v[v.TYPE=3]="TYPE",v[v.LEVEL=12]="LEVEL",v[v.ATTRIBUTE=13]="ATTRIBUTE",v[v.BLOT=14]="BLOT",v[v.INLINE=7]="INLINE",v[v.BLOCK=11]="BLOCK",v[v.BLOCK_BLOT=10]="BLOCK_BLOT",v[v.INLINE_BLOT=6]="INLINE_BLOT",v[v.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",v[v.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",v[v.ANY=15]="ANY"})(o=r.Scope||(r.Scope={}));function a(v,y){var b=p(v);if(b==null)throw new c("Unable to create "+v+" blot");var k=b,w=v instanceof Node||v.nodeType===Node.TEXT_NODE?v:k.create(y);return new k(w,y)}r.create=a;function d(v,y){return y===void 0&&(y=!1),v==null?null:v[r.DATA_KEY]!=null?v[r.DATA_KEY].blot:y?d(v.parentNode,y):null}r.find=d;function p(v,y){y===void 0&&(y=o.ANY);var b;if(typeof v=="string")b=s[v]||u[v];else if(v instanceof Text||v.nodeType===Node.TEXT_NODE)b=s.text;else if(typeof v=="number")v&o.LEVEL&o.BLOCK?b=s.block:v&o.LEVEL&o.INLINE&&(b=s.inline);else if(v instanceof HTMLElement){var k=(v.getAttribute("class")||"").split(/\s+/);for(var w in k)if(b=f[k[w]],b)break;b=b||h[v.tagName]}return b==null?null:y&o.LEVEL&b.scope&&y&o.TYPE&b.scope?b:null}r.query=p;function g(){for(var v=[],y=0;y<arguments.length;y++)v[y]=arguments[y];if(v.length>1)return v.map(function(w){return g(w)});var b=v[0];if(typeof b.blotName!="string"&&typeof b.attrName!="string")throw new c("Invalid definition");if(b.blotName==="abstract")throw new c("Cannot register abstract class");if(s[b.blotName||b.attrName]=b,typeof b.keyName=="string")u[b.keyName]=b;else if(b.className!=null&&(f[b.className]=b),b.tagName!=null){Array.isArray(b.tagName)?b.tagName=b.tagName.map(function(w){return w.toUpperCase()}):b.tagName=b.tagName.toUpperCase();var k=Array.isArray(b.tagName)?b.tagName:[b.tagName];k.forEach(function(w){(h[w]==null||b.className==null)&&(h[w]=b)})}return b}r.register=g},function(n,r,i){var l=i(51),c=i(11),u=i(3),f=i(20),h=String.fromCharCode(0),s=function(o){Array.isArray(o)?this.ops=o:o!=null&&Array.isArray(o.ops)?this.ops=o.ops:this.ops=[]};s.prototype.insert=function(o,a){var d={};return o.length===0?this:(d.insert=o,a!=null&&typeof a=="object"&&Object.keys(a).length>0&&(d.attributes=a),this.push(d))},s.prototype.delete=function(o){return o<=0?this:this.push({delete:o})},s.prototype.retain=function(o,a){if(o<=0)return this;var d={retain:o};return a!=null&&typeof a=="object"&&Object.keys(a).length>0&&(d.attributes=a),this.push(d)},s.prototype.push=function(o){var a=this.ops.length,d=this.ops[a`;for(var d=f.iterator(this.ops),p=new s,g=0;d.hasNext();){if(d.peekType()!=="insert")return;var v=d.peek(),y=f.length(v)-d.peekLength(),b=typeof v.insert=="string"?v.insert.indexOf(a,y)-y:-1;if(b<0)p.push(d.next());else if(b>0)p.push(d.next(b));else{if(o(p,d.next(1).attributes||{},g)===!1)return;g+=1,p=new s}}p.length()>0&&o(p,{},g)},s.prototype.transform=function(o,a){if(a=!!a,typeof o=="number")return this.transformPosition(o,a);for(var d=f.iterator(this.ops),p=f.iterator(o.ops),g=new s;d.hasNext()||p.hasNext();)if(d.peekType()==="insert"&&(a||p.peekType()!=="insert"))g.retain(f.length(d.next()));else if(p.peekType()==="insert")g.push(p.next());else{var v=Math.min(d.peekLength(),p.peekLength()),y=d.next(v),b=p.next(v);if(y.delete)continue;b.delete?g.push(b):g.retain(v,f.attributes.transform(y.attributes,b.attributes,a))}return g.chop()},s.prototype.transformPosition=function(o,a){a=!!a;for(var d=f.iterator(this.ops),p=0;d.hasNext()&&p<=o;){var g=d.peekLength(),v=d.peekType();if(d.next(),v==="delete"){o-=Math.min(g,o-p);continue}else v==="insert"&&(p<o||!a)&&(o+=g);p+=g}return o},n.exports=s},function(n,r){var i=Object.prototype.hasOwnProperty,l=Object.prototype.toString,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f=function(d){return typeof Array.isArray=="function"?Array.isArray(d):l.call(d)==="[object Array]"},h=function(d){if(!d||l.call(d)!=="[object Object]")return!1;var p=i.call(d,"constructor"),g=d.constructor&&d.constructor.prototype&&i.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!p&&!g)return!1;var v;for(v in d);return typeof v=="undefined"||i.call(d,v)},s=function(d,p){c&&p.name==="__proto__"?c(d,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):d[p.name]=p.newValue},o=function(d,p){if(p==="__proto__")if(i.call(d,p)){if(u)return u(d,p).value}else return;return d[p]};n.exports=function a(){var d,p,g,v,y,b,k=arguments[0],w=1,m=arguments.length,S=!1;for(typeof k=="boolean"&&(S=k,k=arguments[1]||{},w=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});w<m;++w)if(d=arguments[w],d!=null)for(p in d)g=o(k,p),v=o(d,p),k!==v&&(S&&v&&(h(v)||(y=f(v)))?(y?(y=!1,b=g&&f(g)?g:[]):b=g&&h(g)?g:{},s(k,{name:p,newValue:a(S,b,v)})):typeof v!="undefined"&&s(k,{name:p,newValue:v}));return k}},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BlockEmbed=r.bubbleFormats=void 0;var l=function(){function A(O,x){for(var M=0;M<x.length;M++){var L=x[M];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(O,L.key,L)}}return function(O,x,M){return x&&A(O.prototype,x),M&&A(O,M),O}}(),c=function A(O,x,M){O===null&&(O=Function.prototype);var L=Object.getOwnPropertyDescriptor(O,x);if(L===void 0){var R=Object.getPrototypeOf(O);return R===null?void 0:A(R,x,M)}else{if("value"in L)return L.value;var N=L.get;return N===void 0?void 0:N.call(M)}},u=i(3),f=k(u),h=i(2),s=k(h),o=i(0),a=k(o),d=i(16),p=k(d),g=i(6),v=k(g),y=i(7),b=k(y);function k(A){return A&&A.__esModule?A:{default:A}}function w(A,O){if(!(A instanceof O))throw new TypeError("Cannot call a class as a function")}function m(A,O){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:A}function S(A,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);A.prototype=Object.create(O&&O.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(A,O):A.__proto__=O)}var E=1,C=function(A){S(O,A);function O(){return w(this,O),m(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return l(O,[{key:"attach",value:function(){c(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"attach",this).call(this),this.attributes=new a.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new s.default().insert(this.value(),(0,f.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(M
`)){var N=a.default.create(_.blotName);this.parent.insertBefore(N,M===0?this:this.next),N.insertAt(0,L.slice(0,-1))}else c(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,M,L,R)}}]),O}(a.default.Embed);C.scope=a.default.Scope.BLOCK_BLOT;var _=function(A){S(O,A);function O(x){w(this,O);var M=m(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,x));return M.cache={},M}return l(O,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(a.default.Leaf).reduce(function(M,L){return L.length()===0?M:M.insert(L.value(),$(L))},new s.default).insert(``,$(this))),this.cache.delta}},{key:"deleteAt",value:function(M,L){c(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"deleteAt",this).call(this,M,L),this.cache={}}},{key:"formatAt",value:function(M,L,R,N){L<=0||(a.default.query(R,a.default.Scope.BLOCK)?M+L===this.length()&&this.format(R,N):c(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"formatAt",this).call(this,M,Math.min(L,this.length()-M-1),R,N),this.cache={})}},{key:"insertAt",value:function(M,L,R){if(R!=null)return c(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,M,L,R);if(L.length!==0){var N=L.split(``),D=N.shift();D.length>0&&(M<this.length()-1||this.children.tail==null?c(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,Math.min(M,this.length()-1),D):this.children.tail.insertAt(this.children.tail.length(),D),this.cache={});var P=this;N.reduce(function(F,I){return P=P.split(F,!0),P.insertAt(0,I),I.length},M+D.length)}}},{key:"insertBefore",value:function(M,L){var R=this.children.head;c(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,M,L),R instanceof p.default&&R.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=c(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"length",this).call(this)+E),this.cache.length}},{key:"moveChildren",value:function(M,L){c(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"moveChildren",this).call(this,M,L),this.cache={}}},{key:"optimize",value:function(M){c(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,M),this.cache={}}},{key:"path",value:function(M){return c(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"path",this).call(this,M,!0)}},{key:"removeChild",value:function(M){c(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"removeChild",this).call(this,M),this.cache={}}},{key:"split",value:function(M){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(L&&(M===0||M>=this.length()-E)){var R=this.clone();return M===0?(this.parent.insertBefore(R,this),this):(this.parent.insertBefore(R,this.next),R)}else{var N=c(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"split",this).call(this,M,L);return this.cache={},N}}}]),O}(a.default.Block);_.blotName="block",_.tagName="P",_.defaultChild="break",_.allowedChildren=[v.default,a.default.Embed,b.default];function $(A){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return A==null||(typeof A.formats=="function"&&(O=(0,f.default)(O,A.formats())),A.parent==null||A.parent.blotName=="scroll"||A.parent.statics.scope!==A.statics.scope)?O:$(A.parent,O)}r.bubbleFormats=$,r.BlockEmbed=C,r.default=_},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.overload=r.expandConfig=void 0;var l=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},c=function(){function P(F,I){var H=[],B=!0,j=!1,q=void 0;try{for(var W=F[Symbol.iterator](),U;!(B=(U=W.next()).done)&&(H.push(U.value),!(I&&H.length===I));B=!0);}catch(Q){j=!0,q=Q}finally{try{!B&&W.return&&W.return()}finally{if(j)throw q}}return H}return function(F,I){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return P(F,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function P(F,I){for(var H=0;H<I.length;H++){var B=I[H];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(F,B.key,B)}}return function(F,I,H){return I&&P(F.prototype,I),H&&P(F,H),F}}();i(50);var f=i(2),h=$(f),s=i(14),o=$(s),a=i(8),d=$(a),p=i(9),g=$(p),v=i(0),y=$(v),b=i(15),k=$(b),w=i(3),m=$(w),S=i(10),E=$(S),C=i(34),_=$(C);function $(P){return P&&P.__esModule?P:{default:P}}function A(P,F,I){return F in P?Object.defineProperty(P,F,{value:I,enumerable:!0,configurable:!0,writable:!0}):P[F]=I,P}function O(P,F){if(!(P instanceof F))throw new TypeError("Cannot call a class as a function")}var x=(0,E.default)("quill"),M=function(){u(P,null,[{key:"debug",value:function(I){I===!0&&(I="log"),E.default.level(I)}},{key:"find",value:function(I){return I.__quill||y.default.find(I)}},{key:"import",value:function(I){return this.imports[I]==null&&x.error("Cannot import "+I+". Are you sure it was registered?"),this.imports[I]}},{key:"register",value:function(I,H){var B=this,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof I!="string"){var q=I.attrName||I.blotName;typeof q=="string"?this.register("formats/"+q,I,H):Object.keys(I).forE
`&&(H.editor.deleteText(H.getLength()-1,1),W.delete(1));var Q=q.compose(W);return Q},B)}},{key:"setSelection",value:function(I,H,B){if(I==null)this.selection.setRange(null,H||P.sources.API);else{var j=N(I,H,B),q=c(j,4);I=q[0],H=q[1],B=q[3],this.selection.setRange(new b.Range(I,H),B),B!==d.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(I){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d.default.sources.API,B=new h.default().insert(I);return this.setContents(B,H)}},{key:"update",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d.default.sources.USER,H=this.scroll.update(I);return this.selection.update(I),H}},{key:"updateContents",value:function(I){var H=this,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d.default.sources.API;return R.call(this,function(){return I=new h.default(I),H.editor.applyDelta(I,B)},B,!0)}}]),P}();M.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},M.events=d.default.events,M.sources=d.default.sources,M.version="1.3.7",M.imports={delta:h.default,parchment:y.default,"core/module":g.default,"core/theme":_.default};function L(P,F){if(F=(0,m.default)(!0,{container:P,modules:{clipboard:!0,keyboard:!0,history:!0}},F),!F.theme||F.theme===M.DEFAULTS.theme)F.theme=_.default;else if(F.theme=M.import("themes/"+F.theme),F.theme==null)throw new Error("Invalid theme "+F.theme+". Did you register it?");var I=(0,m.default)(!0,{},F.theme.DEFAULTS);[I,F].forEach(function(j){j.modules=j.modules||{},Object.keys(j.modules).forEach(function(q){j.modules[q]===!0&&(j.modules[q]={})})});var H=Object.keys(I.modules).concat(Object.keys(F.modules)),B=H.reduce(function(j,q){var W=M.import("modules/"+q);return W==null?x.error("Cannot load "+q+" module. Are you sure you registered it?"):j[q]=W.DEFAULTS||{},j},{});return F.modules!=null&&F.modules.toolbar&&F.modules.toolbar.constructor!==Object&&(F.modules.toolbar={container:F.modules.toolbar}),F=(0,m.default)(!0,{},M.DEFAULTS,{modules:B},I,F),["bounds","container","scrollingContainer"].forEach(function(j){typeof F[j]=="string"&&(F[j]=document.querySelector(F[j]))}),F.modules=Object.keys(F.modules).reduce(function(j,q){return F.modules[q]&&(j[q]=F.modules[q]),j},{}),F}function R(P,F,I,H){if(this.options.strict&&!this.isEnabled()&&F===d.default.sources.USER)return new h.default;var B=I==null?null:this.getSelection(),j=this.editor.delta,q=P();if(B!=null&&(I===!0&&(I=B.index),H==null?B=D(B,q,F):H!==0&&(B=D(B,I,H,F)),this.setSelection(B,d.default.sources.SILENT)),q.length()>0){var W,U=[d.default.events.TEXT_CHANGE,q,j,F];if((W=this.emitter).emit.apply(W,[d.default.events.EDITOR_CHANGE].concat(U)),F!==d.default.sources.SILENT){var Q;(Q=this.emitter).emit.apply(Q,U)}}return q}function N(P,F,I,H,B){var j={};return typeof P.index=="number"&&typeof P.length=="number"?typeof F!="number"?(B=H,H=I,I=F,F=P.length,P=P.index):(F=P.length,P=P.index):typeof F!="number"&&(B=H,H=I,I=F,F=0),(typeof I=="undefined"?"undefined":l(I))==="object"?(j=I,B=H):typeof I=="string"&&(H!=null?j[I]=H:B=I),B=B||d.default.sources.API,[P,F,j,B]}function D(P,F,I,H){if(P==null)return null;var B=void 0,j=void 0;if(F instanceof h.default){var q=[P.index,P.index+P.length].map(function(ee){return F.transformPosition(ee,H!==d.default.sources.USER)}),W=c(q,2);B=W[0],j=W[1]}else{var U=[P.index,P.index+P.length].map(function(ee){return ee<F||ee===F&&H===d.default.sources.USER?ee:I>=0?ee+I:Math.max(F,ee+I)}),Q=c(U,2);B=Q[0],j=Q[1]}return new b.Range(B,j-B)}r.expandConfig=L,r.overload=N,r.default=M},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var l=function(){function v(y,b){for(var k=0;k<b.length;k++){var w=b[k];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,b,k){return b&&v(y.prototype,b),k&&v(y,k),y}}(),c=function v(y,b,k){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,b);if(w===void 0){var m=Object.getPrototy
`)&&(O=O.slice(0,-1)),O.split(``).reduce(function(x,M){return x.insert(M).insert(``,A.formats())},new h.default)}},{key:"format",value:function(A,O){if(!(A===this.statics.blotName&&O)){var x=this.descendant(y.default,this.length()-1),M=l(x,1),L=M[0];L!=null&&L.deleteAt(L.length()-1,1),u(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"format",this).call(this,A,O)}}},{key:"formatAt",value:function(A,O,x,M){if(O!==0&&!(o.default.query(x,o.default.Scope.BLOCK)==null||x===this.statics.blotName&&M===this.statics.formats(this.domNode))){var L=this.newlineIndex(A);if(!(L<0||L>=A+O)){var R=this.newlineIndex(A,!0)+1,N=L-R+1,D=this.isolate(R,N),P=D.next;D.format(x,M),P instanceof _&&P.formatAt(0,A-R+O-N,x,M)}}}},{key:"insertAt",value:function(A,O,x){if(x==null){var M=this.descendant(y.default,A),L=l(M,2),R=L[0],N=L[1];R.insertAt(N,O)}}},{key:"length",value:function(){var A=this.domNode.textContent.length;return this.domNode.textContent.endsWith(``)?A:A+1}},{key:"newlineIndex",value:function(A){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(O)return this.domNode.textContent.slice(0,A).lastIndexOf(``);var x=this.domNode.textContent.slice(A).indexOf(``);return x>-1?A+x:-1}},{key:"optimize",value:function(A){this.domNode.textContent.endsWith(``)||this.appendChild(o.default.create("text",``)),u(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"optimize",this).call(this,A);var O=this.next;O!=null&&O.prev===this&&O.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===O.statics.formats(O.domNode)&&(O.optimize(A),O.moveChildren(this),O.remove())}},{key:"replace",value:function(A){u(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"replace",this).call(this,A),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(O){var x=o.default.find(O);x==null?O.parentNode.removeChild(O):x instanceof o.default.Embed?x.remove():x.unwrap()})}}],[{key:"create",value:function(A){var O=u(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this,A);return O.setAttribute("spellcheck",!1),O}},{key:"formats",value:function(){return!0}}]),_}(d.default);E.blotName="code-block",E.tagName="PRE",E.TAB=" ",r.Code=S,r.default=E},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var l=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},c=function(){function P(F,I){var H=[],B=!0,j=!1,q=void 0;try{for(var W=F[Symbol.iterator](),U;!(B=(U=W.next()).done)&&(H.push(U.value),!(I&&H.length===I));B=!0);}catch(Q){j=!0,q=Q}finally{try{!B&&W.return&&W.return()}finally{if(j)throw q}}return H}return function(F,I){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return P(F,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function P(F,I){for(var H=0;H<I.length;H++){var B=I[H];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(F,B.key,B)}}return function(F,I,H){return I&&P(F.prototype,I),H&&P(F,H),F}}(),f=i(2),h=O(f),s=i(20),o=O(s),a=i(0),d=O(a),p=i(13),g=O(p),v=i(24),y=O(v),b=i(4),k=O(b),w=i(16),m=O(w),S=i(21),E=O(S),C=i(11),_=O(C),$=i(3),A=O($);function O(P){return P&&P.__esModule?P:{default:P}}function x(P,F,I){return F in P?Object.defineProperty(P,F,{value:I,enumerable:!0,configurable:!0,writable:!0}):P[F]=I,P}function M(P,F){if(!(P instanceof F))throw new TypeError("Cannot call a class as a function")}var L=/^[ -~]*$/,R=function(){function P(F){M(this,P),this.scroll=F,this.delta=this.getDelta()}return u(P,[{key:"applyDelta",value:function(I){var H=this,B=!1;this.scroll.update();var j=this.scroll.length();return this.scroll.batchStart(),I=D(I),I.reduce(function(q,W){var U=W.retain||W.delete||W.insert.length||1,Q=W.attributes||{};if(W.insert!=null){if(typeof W.insert=="string"){var ee=W.insert;ee.endsWith(``)&&B&&(B=!1,ee=ee.slice(0,-1)),q>=j&&!ee.endsWith(``)&&(B=!0),H.scroll.insertAt(q,ee);var se=H.scroll.line(q),ye=c(se,2),Ae=ye[0],J=ye[1],ae=(0,A.default)({},(0,b.bubbleFormats)(Ae));if(Ae instanceof k.default){var fe=Ae.descendant(d.default.Leaf,J),_e=c(fe,1),ve=_e[0];ae=(0,A.default)(ae,(0,b.bubbleFormats)(ve))}Q=o.default.attributes.diff(ae,Q)||{}}else if(l(W.insert)==="object"){var Z=Object.keys(W.insert)[0];if(Z==null)return q;H.scroll.insertAt(q,Z,W.insert[Z])}j+=U}return Object.keys(Q).forEach(function(ne){H.scroll.formatAt(q,U,ne,Q[ne])}),q+U},0),I.reduce(function(q,W){return typeof W.delete=="number"?(H.scroll.deleteAt(q,W.delete),q):q+(W.retain||W.insert.length||1)},0),this.scroll.batchEnd(),this.update(I)}},{key:"deleteText",value:function(I,H){return this.scroll.deleteAt(I,H),this.update(new h.default().retain(I).delete(H))}},{key:"formatLine",value:function(I,H){var B=this,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(j).forEach(function(q){if(!(B.scroll.whitelist!=null&&!B.scroll.whitelist[q])){var W=B.scroll.lines(I,Math.max(H,1)),U=H;W.forEach(function(Q){var ee=Q.length();if(!(Q instanceof g.default))Q.format(q,j[q]);else{var se=I-Q.offset(B.scroll),ye=Q.newlineIndex(se+U)-se+1;Q.formatAt(se,ye,q,j[q])}U-=ee})}}),this.scroll.optimize(),this.update(new h.default().retain(I).retain(H,(0,E.default)(j)))}},{key:"formatText",value:function(I,H){var B=this,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(j).forEach(function(q){B.scroll.formatAt(I,H,q,j[q])}),this.update(new h.default().retain(I).retain(H,(0,E.default)(j)))}},{key:"getContents",value:function(I,H){return this.delta.slice(I,I+H)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(I,H){return I.concat(H.delta())},new h.default)}},{key:"getFormat",value:function(I){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,B=[],j=[];H===0?this.scroll.path(I).forEach(function(W){var U=c(W,1),Q=U[0];Q instanceof k.default?B.push(Q):Q instanceof d.default.Leaf&&j.push(Q)}):(B=this.scroll.lines(I,H),j=this.scroll.descendants(d.default.Leaf,I,H));var q=[B,j].map(function(W){if(W.length===0)return{};for(var U=(0,b.bubbleFormats)(W.shift());Object.keys(U).length>0;){var Q=W.shift();if(Q==null)return U;U=N((0,b.bubbleFormats)(Q),U)}return U});return A.default.apply(A.default,q)}},{key:"getText",value:function(I,H){return this.getContents(I,H).filter(function(B){return typeof B.insert=="string"}).map(function(B){return B.insert}).join("")}},{key:"insertEmbed",value:function(I,H,B){return this.scroll.insertAt(I,H,B),this.update(new h.default().retain(I).insert(x({},H,B)))}},{key:"insertText",value:function(I,H){var B=this,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return H=H.replace(/\r\n/g,``).replace(/\r/g,``),this.scroll.insertAt(I,H),Object.keys(j).forEach(function(q){B.scroll.formatAt(I,H.length,q,j[q])}),this.update(new h.default().retain(I).insert(H,(0,E.default)(j)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var I=this.scroll.children.head;return I.statics.blotName!==k.default.blotName||I.children.length>1?!1:I.children.head instanceof m.default}},{key:"removeFormat",value:function(I,H){var B=this.getText(I,H),j=this.scroll.line(I+H),q=c(j,2),W=q[0],U=q[1],Q=0,ee=new h.default;W!=null&&(W instanceof g.default?Q=W.newlineIndex(U)-U+1:Q=W.length()-U,ee=W.delta().slice(U,U+Q-1).insert(``));var se=this.getContents(I,H+Q),ye=se.diff(new h.default().insert(B).concat(ee)),Ae=new h.default().retain(I).concat(ye);return this.applyDelta(Ae)}},{key:"update",value:function(I){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,j=this.delta;if(H.length===1&&H[0].type==="characterData"&&H[0].target.data.match(L)&&d.default.find(H[0].target)){var q=d.default.find(H[0].target),W=(0,b.bubbleFormats)(q),U=q.offset(this.scroll),Q=H[0].oldValue.replace(y.default.CONTENTS,""),ee=new h.default().insert(Q),se=new h.default().insert(q.value()),ye=new h.default().retain(U).concat(ee.diff(se,B));I=ye.reduce(function(Ae,J){return J.insert?Ae.insert(J.insert,W):Ae.push(J)},new h.default),this.delta=j.compose(I)}else this.delta=this.getDelta(),(!I||!(0,_.default)(j.compose(I),this.delta))&&(I=j.diff(this.delta,B));return I}}]),P}();function N(P,F){return Object.keys(F).reduce(function(I,H){return P[H]==null||(F[H]===P[H]?I[H]=F[H]:Array.isArray(F[H])?F[H].indexOf(P[H])<0&&(I[H]=F[H].concat([P[H]])):I[H]=[F[H],P[H]]),I},{})}function D(P){return P.reduce(function(F,I){if(I.insert===1){var H=(0,E.default)(I.attributes);return delete H.image,F.insert({image:I.attributes.image},H)}if(I.attributes!=null&&(I.attributes.list===!0||I.attributes.bullet===!0)&&(I=(0,E.default)(I),I.attributes.list?I.attributes.list="ordered":(I.attributes.list="bullet",delete I.attributes.bullet)),typeof I.insert=="string"){var B=I.insert.replace(/\r\n/g,``).replace(/\r/g,``);return F.insert(B,I.attributes)}return F.push(I)},new h.default)}r.default=R},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Range=void 0;var l=function(){function C(_,$){var A=[],O=!0,x=!1,M=void 0;try{for(var L=_[Symbol.iterator](),R;!(O=(R=L.next()).done)&&(A.push(R.value),!($&&A.length===$));O=!0);}catch(N){x=!0,M=N}finally{try{!O&&L.return&&L.return()}finally{if(x)throw M}}return A}return function(_,$){if(Array.isArray(_))return _;if(Symbol.iterator in Object(_))return C(_,$);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function C(_,$){for(var A=0;A<$.length;A++){var O=$[A];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(_,O.key,O)}}return function(_,$,A){return $&&C(_.prototype,$),A&&C(_,A),_}}(),u=i(0),f=y(u),h=i(21),s=y(h),o=i(11),a=y(o),d=i(8),p=y(d),g=i(10),v=y(g);function y(C){return C&&C.__esModule?C:{default:C}}function b(C){if(Array.isArray(C)){for(var _=0,$=Array(C.length);_<C.length;_++)$[_]=C[_];return $}else return Array.from(C)}function k(C,_){if(!(C instanceof _))throw new TypeError("Cannot call a class as a function")}var w=(0,v.default)("quill:selection"),m=function C(_){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;k(this,C),this.index=_,this.length=$},S=function(){function C(_,$){var A=this;k(this,C),this.emitter=$,this.scroll=_,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=f.default.create("cursor",this),this.lastRange=this.savedRange=new m(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){A.mouseDown||setTimeout(A.update.bind(A,p.default.sources.USER),1)}),this.emitter.on(p.default.events.EDITOR_CHANGE,function(O,x){O===p.default.events.TEXT_CHANGE&&x.length()>0&&A.update(p.default.sources.SILENT)}),this.emitter.on(p.default.events.SCROLL_BEFORE_UPDATE,function(){if(!!A.hasFocus()){var O=A.getNativeRange();O!=null&&O.start.node!==A.cursor.textNode&&A.emitter.once(p.default.events.SCROLL_UPDATE,function(){try{A.setNativeRange(O.start.node,O.start.offset,O.end.node,O.end.offset)}catch{}})}}),this.emitter.on(p.default.events.SCROLL_OPTIMIZE,function(O,x){if(x.range){var M=x.range,L=M.startNode,R=M.startOffset,N=M.endNode,D=M.endOffset;A.setNativeRange(L,R,N,D)}}),this.update(p.default.sources.SILENT)}return c(C,[{key:"handleComposition",value:function(){var $=this;this.root.addEventListener("compositionstart",function(){$.composing=!0}),this.root.addEventListener("compositionend",function(){if($.composing=!1,$.cursor.parent){var A=$.cursor.restore();if(!A)return;setTimeout(function(){$.setNativeRange(A.startNode,A.startOffset,A.endNode,A.endOffset)},1)}})}},{key:"handleDragging",value:function(){var $=this;this.emitter.listenDOM("mousedown",document.body,function(){$.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){$.mouseDown=!1,$.update(p.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function($,A){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[$])){this.scroll.update();var O=this.getNativeRange();if(!(O==null||!O.native.collapsed||f.default.query($,f.default.Scope.BLOCK))){if(O.start.node!==this.cursor.textNode){var x=f.default.find(O.start.node,!1);if(x==null)return;if(x instanceof f.default.Leaf){var M=x.split(O.start.offset);x.parent.insertBefore(this.cursor,M)}else x.insertBefore(this.cursor,O.start.node);this.cursor.attach()}this.cursor.format($,A),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function($){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,O=this.scroll.length();$=Math.min($,O-1),A=Math.min($+A,O-1)-$;var x=void 0,M=this.scroll.leaf($),L=l(M,2),R=L[0],N=L[1];if(R==null)return null;var D=R.position(N,!0),P=l(D,2);x=P[0],N=P[1];var F=document.createRange();if(A>0){F.setStart(x,N);var I=this.scroll.leaf(
`)&&(M=M.slice(0,-1)),R.insertAt(0,M,L)}else{var N=h.default.create(M,L);this.appendChild(N)}else u(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"insertAt",this).call(this,x,M,L);this.optimize()}}},{key:"insertBefore",value:function(x,M){if(x.statics.scope===h.default.Scope.INLINE_BLOT){var L=h.default.create(this.statics.defaultChild);L.appendChild(x),x=L}u(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"insertBefore",this).call(this,x,M)}},{key:"leaf",value:function(x){return this.path(x).pop()||[null,-1]}},{key:"line",value:function(x){return x===this.length()?this.line(x-1):this.descendant(C,x)}},{key:"lines",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,L=function R(N,D,P){var F=[],I=P;return N.children.forEachAt(D,P,function(H,B,j){C(H)?F.push(H):H instanceof h.default.Container&&(F=F.concat(R(H,B,I))),I-=j}),F};return L(this,x,M)}},{key:"optimize",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(u(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"optimize",this).call(this,x,M),x.length>0&&this.emitter.emit(o.default.events.SCROLL_OPTIMIZE,x,M))}},{key:"path",value:function(x){return u(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"path",this).call(this,x).slice(1)}},{key:"update",value:function(x){if(this.batch!==!0){var M=o.default.sources.USER;typeof x=="string"&&(M=x),Array.isArray(x)||(x=this.observer.takeRecords()),x.length>0&&this.emitter.emit(o.default.events.SCROLL_BEFORE_UPDATE,M,x),u(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"update",this).call(this,x.concat([])),x.length>0&&this.emitter.emit(o.default.events.SCROLL_UPDATE,M,x)}}}]),A}(h.default.Scroll);_.blotName="scroll",_.className="ql-editor",_.tagName="DIV",_.defaultChild="block",_.allowedChildren=[d.default,a.BlockEmbed,k.default],r.default=_},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SHORTKEY=r.default=void 0;var l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},c=function(){function W(U,Q){var ee=[],se=!0,ye=!1,Ae=void 0;try{for(var J=U[Symbol.iterator](),ae;!(se=(ae=J.next()).done)&&(ee.push(ae.value),!(Q&&ee.length===Q));se=!0);}catch(fe){ye=!0,Ae=fe}finally{try{!se&&J.return&&J.return()}finally{if(ye)throw Ae}}return ee}return function(U,Q){if(Array.isArray(U))return U;if(Symbol.iterator in Object(U))return W(U,Q);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function W(U,Q){for(var ee=0;ee<Q.length;ee++){var se=Q[ee];se.enumerable=se.enumerable||!1,se.configurable=!0,"value"in se&&(se.writable=!0),Object.defineProperty(U,se.key,se)}}return function(U,Q,ee){return Q&&W(U.prototype,Q),ee&&W(U,ee),U}}(),f=i(21),h=$(f),s=i(11),o=$(s),a=i(3),d=$(a),p=i(2),g=$(p),v=i(20),y=$(v),b=i(0),k=$(b),w=i(5),m=$(w),S=i(10),E=$(S),C=i(9),_=$(C);function $(W){return W&&W.__esModule?W:{default:W}}function A(W,U,Q){return U in W?Object.defineProperty(W,U,{value:Q,enumerable:!0,configurable:!0,writable:!0}):W[U]=Q,W}function O(W,U){if(!(W instanceof U))throw new TypeError("Cannot call a class as a function")}function x(W,U){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U&&(typeof U=="object"||typeof U=="function")?U:W}function M(W,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof U);W.prototype=Object.create(U&&U.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf(W,U):W.__proto__=U)}var L=(0,E.default)("quill:keyboard"),R=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",N=function(W){M(U,W),u(U,null,[{key:"match",value:function(ee,se){return se=q(se),["altKey","ctrlKe
`,Ae).retain(se.length()-ye-1).retain(1,{list:"unchecked"});this.quill.updateContents(J,m.default.sources.USER),this.quill.setSelection(U.index+1,m.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:N.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(U,Q){var ee=this.quill.getLine(U.index),se=c(ee,2),ye=se[0],Ae=se[1],J=new g.default().retain(U.index).insert(``,Q.format).retain(ye.length()-Ae-1).retain(1,{header:null});this.quill.updateContents(J,m.default.sources.USER),this.quill.setSelection(U.index+1,m.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(U,Q){var ee=Q.prefix.length,se=this.quill.getLine(U.index),ye=c(se,2),Ae=ye[0],J=ye[1];if(J>ee)return!0;var ae=void 0;switch(Q.prefix.trim()){case"[]":case"[ ]":ae="unchecked";break;case"[x]":ae="checked";break;case"-":case"*":ae="bullet";break;default:ae="ordered"}this.quill.insertText(U.index," ",m.default.sources.USER),this.quill.history.cutoff();var fe=new g.default().retain(U.index-J).delete(ee+1).retain(Ae.length()-2-J).retain(1,{list:ae});this.quill.updateContents(fe,m.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(U.index-ee,m.default.sources.SILENT)}},"code exit":{key:N.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(U){var Q=this.quill.getLine(U.index),ee=c(Q,2),se=ee[0],ye=ee[1],Ae=new g.default().retain(U.index+se.length()-ye-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(Ae,m.default.sources.USER)}},"embed left":D(N.keys.LEFT,!1),"embed left shift":D(N.keys.LEFT,!0),"embed right":D(N.keys.RIGHT,!1),"embed right shift":D(N.keys.RIGHT,!0)}};function D(W,U){var Q,ee=W===N.keys.LEFT?"prefix":"suffix";return Q={key:W,shiftKey:U,altKey:null},A(Q,ee,/^$/),A(Q,"handler",function(ye){var Ae=ye.index;W===N.keys.RIGHT&&(Ae+=ye.length+1);var J=this.quill.getLeaf(Ae),ae=c(J,1),fe=ae[0];return fe instanceof k.default.Embed?(W===N.keys.LEFT?U?this.quill.setSelection(ye.index-1,ye.length+1,m.default.sources.USER):this.quill.setSelection(ye.index-1,m.default.sources.USER):U?this.quill.setSelection(ye.index,ye.length+1,m.default.sources.USER):this.quill.setSelection(ye.index+ye.length+1,m.default.sources.USER),!1):!0}),Q}function P(W,U){if(!(W.index===0||this.quill.getLength()<=1)){var Q=this.quill.getLine(W.index),ee=c(Q,1),se=ee[0],ye={};if(U.offset===0){var Ae=this.quill.getLine(W.index-1),J=c(Ae,1),ae=J[0];if(ae!=null&&ae.length()>1){var fe=se.formats(),_e=this.quill.getFormat(W.index-1,1);ye=y.default.attributes.diff(fe,_e)||{}}}var ve=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(U.prefix)?2:1;this.quill.deleteText(W.index-ve,ve,m.default.sources.USER),Object.keys(ye).length>0&&this.quill.formatLine(W.index-ve,ve,ye,m.default.sources.USER),this.quill.focus()}}function F(W,U){var Q=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(U.suffix)?2:1;if(!(W.index>=this.quill.getLength()-Q)){var ee={},se=0,ye=this.quill.getLine(W.index),Ae=c(ye,1),J=Ae[0];if(U.offset>=J.length()-1){var ae=this.quill.getLine(W.index+1),fe=c(ae,1),_e=fe[0];if(_e){var ve=J.formats(),Z=this.quill.getFormat(W.index,1);ee=y.default.attributes.diff(ve,Z)||{},se=_e.length()}}this.quill.deleteText(W.index,Q,m.default.sources.USER),Object.keys(ee).length>0&&this.quill.formatLine(W.index+se-1,Q,ee,m.default.sources.USER)}}function I(W){var U=this.quill.getLines(W),Q={};if(U.length>1){var ee=U[0].formats(),se=U[U.length-1].formats();Q=y.default.attributes.diff(se,ee)||{}}this.quill.deleteText(W,m.default.sources.USER),Object.keys(Q).length>0&&this.quill.formatLine(W.index,1,Q,m.default.sources.USER),this.quill.setSelection(W.index,m.default.sources.SILENT),this.quill.focus()}function H(W,U){var Q=this;W.length>0&&this.quill.scroll.deleteAt(W.index,W.length);var ee=Object.keys(U.format).reduce(function(se,ye){return k.default.query(ye,k.default.Scope.BLOCK)&&!Array.isArray(U.format[ye])&&(se[ye]=U.format[ye]),se},{});this.quill.insertText(W.index,``,ee,m.default.sources.USER),this.quill.setSelection(W.index+1,m.default.sources.SILENT),this.quill.focus(),Object.keys(U.format).forEach(function(se){ee[se]==null&&(Array.isArray(U.format[se])||se!=="link"&&Q.quill.format(se,U.format[se],m.default.sources.USER))})}function B(W){return{key:N.keys.TAB,shiftKey:!W,format:{"code-block":!0},handler:function(Q){var ee=k.default.query("code-block"),se=Q.index,ye=Q.length,Ae=this.quill.scroll.descendant(ee,se),J=c(Ae,2),ae=J[0],fe=J[1];if(ae!=null){var _e=this.quill.getIndex(ae),ve=ae.newlineIndex(fe,!0)+1,Z=ae.newlineIndex(_e+fe+ye),ne=ae.domNode.textContent.slice(ve,Z).split(``);fe=0,ne.forEach(function(de,re){W?(ae.insertAt(ve+fe,ee.TAB),fe+=ee.TAB.length,re===0?se+=ee.TAB.length:ye+=ee.TAB.length):de.startsWith(ee.TAB)&&(ae.deleteAt(ve+fe,ee.TAB.length),fe-=ee.TAB.length,re===0?se-=ee.TAB.length:ye-=ee.TAB.length),fe+=de.length+1}),this.quill.update(m.default.sources.USER),this.quill.setSelection(se,ye,m.default.sources.SILENT)}}}}function j(W){return{key:W[0].toUpperCase(),shortKey:!0,handler:function(Q,ee){this.quill.format(W,!ee.format[W],m.default.sources.USER)}}}function q(W){if(typeof W=="string"||typeof W=="number")return q({key:W});if((typeof W=="undefined"?"undefined":l(W))==="object"&&(W=(0,h.default)(W,!1)),typeof W.key=="string")if(N.keys[W.key.toUpperCase()]!=null)W.key=N.keys[W.key.toUpperCase()];else if(W.key.length===1)W.key=W.key.toUpperCase().charCodeAt(0);else return null;return W.shortKey&&(W[R]=W.shortKey,delete W.shortKey),W}r.default=N,r.SHORTKEY=R},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var l=function(){function y(b,k){var w=[],m=!0,S=!1,E=void 0;try{for(var C=b[Symbol.iterator](),_;!(m=(_=C.next()).done)&&(w.push(_.value),!(k&&w.length===k));m=!0);}catch($){S=!0,E=$}finally{try{!m&&C.return&&C.return()}finally{if(S)throw E}}return w}return function(b,k){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b))return y(b,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function y(b,k,w){b===null&&(b=Function.prototype);var m=Object.getOwnPropertyDescriptor(b,k);if(m===void 0){var S=Object.getPrototypeOf(b);return S===null?void 0:y(S,k,w)}else{if("value"in m)return m.value;var E=m.get;return E===void 0?void 0:E.call(w)}},u=function(){function y(b,k){for(var w=0;w<k.length;w++){var m=k[w];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(b,m.key,m)}}return function(b,k,w){return k&&y(b.prototype,k),w&&y(b,w),b}}(),f=i(0),h=a(f),s=i(7),o=a(s);function a(y){return y&&y.__esModule?y:{default:y}}function d(y,b){if(!(y instanceof b))throw new TypeError("Cannot call a class as a function")}function p(y,b){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:y}function g(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);y.prototype=Object.create(b&&b.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(y,b):y.__proto__=b)}var v=function(y){g(b,y),u(b,null,[{key:"value",value:function(){}}]);function b(k,w){d(this,b);var m=p(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,k));return m.selection=w,m.textNode=document.createTextNode(b.CONTENTS),m.domNode.appendChild(m.textNode),m._length=0,m}return u(b,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(w,m){if(this._length!==0)return c(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,w,m);for(var S=this,E=0;S!=null&&S.statics.scope!==h.default.Scope.BLOCK_BLOT;)E+=S.offset(S.parent),S=S.parent;S!=null&&(this._length=b.CONTENTS.length,S.optimize(),S.formatAt(E,b.CONTENTS.length,w,m),this._length=0)}},{key:"index",value:function(w,m){return w===this.textNode?0:c(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"index",this).call(this,w,m)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){c(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var w=this.textNode,m=this.selection.getNativeRange(),S=void 0,E=void 0,C=void 0;if(m!=null&&m.start.node===w&&m.end.node===w){var _=[w,m.start.offset,m.end.offset];S=_[0],E=_[1],C=_[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.
`):w.attributes!=null?Object.keys(w.attributes).some(function(m){return u.default.query(m,u.default.Scope.BLOCK)!=null}):!1}function b(k){var w=k.reduce(function(S,E){return S+=E.delete||0,S},0),m=k.length()-w;return y(k)&&(m-=1),m}r.default=v,r.getLastChangeIndex=b},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BaseTooltip=void 0;var l=function(){function H(B,j){for(var q=0;q<j.length;q++){var W=j[q];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(B,W.key,W)}}return function(B,j,q){return j&&H(B.prototype,j),q&&H(B,q),B}}(),c=function H(B,j,q){B===null&&(B=Function.prototype);var W=Object.getOwnPropertyDescriptor(B,j);if(W===void 0){var U=Object.getPrototypeOf(B);return U===null?void 0:H(U,j,q)}else{if("value"in W)return W.value;var Q=W.get;return Q===void 0?void 0:Q.call(q)}},u=i(3),f=_(u),h=i(2),s=_(h),o=i(8),a=_(o),d=i(23),p=_(d),g=i(34),v=_(g),y=i(59),b=_(y),k=i(60),w=_(k),m=i(28),S=_(m),E=i(61),C=_(E);function _(H){return H&&H.__esModule?H:{default:H}}function $(H,B){if(!(H instanceof B))throw new TypeError("Cannot call a class as a function")}function A(H,B){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B&&(typeof B=="object"||typeof B=="function")?B:H}function O(H,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof B);H.prototype=Object.create(B&&B.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(H,B):H.__proto__=B)}var x=[!1,"center","right","justify"],M=["#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"],R=["1","2","3",!1],N=["small",!1,"large","huge"],D=function(H){O(B,H);function B(j,q){$(this,B);var W=A(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,j,q)),U=function Q(ee){if(!document.body.contains(j.root))return document.body.removeEventListener("click",Q);W.tooltip!=null&&!W.tooltip.root.contains(ee.target)&&document.activeElement!==W.tooltip.textbox&&!W.quill.hasFocus()&&W.tooltip.hide(),W.pickers!=null&&W.pickers.forEach(function(se){se.container.contains(ee.target)||se.close()})};return j.emitter.listenDOM("click",document.body,U),W}return l(B,[{key:"addModule",value:function(q){var W=c(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"addModule",this).call(this,q);return q==="toolbar"&&this.extendToolbar(W),W}},{key:"buildButtons",value:function(q,W){q.forEach(function(U){var Q=U.getAttribute("class")||"";Q.split(/\s+/).forEach(function(ee){if(!!ee.startsWith("ql-")&&(ee=ee.slice("ql-".length),W[ee]!=null))if(ee==="direction")U.innerHTML=W[ee][""]+W[ee].rtl;else if(typeof W[ee]=="string")U.innerHTML=W[ee];else{var se=U.value||"";se!=null&&W[ee][se]&&(U.innerHTML=W[ee][se])}})})}},{key:"buildPickers",value:function(q,W){var U=this;this.pickers=q.map(function(ee){if(ee.classList.contains("ql-align"))return ee.querySelector("option")==null&&I(ee,x),new w.default(ee,W.align);if(ee.classList.contains("ql-background")||ee.classList.contains("ql-color")){var se=ee.classList.contains("ql-background")?"background":"color";return ee.querySelector("option")==null&&I(ee,M,se==="background"?"#ffffff":"#000000"),new b.default(ee,W[se])}else return ee.querySelector("option")==null&&(ee.classList.contains("ql-font")?I(ee,L):ee.classList.contains("ql-header")?I(ee,R):ee.classList.contains("ql-size")&&I(ee,N)),new S.default(ee)});var Q=function(){U.pickers.forEach(function(se){se.update()})};this.quill.on(a.default.events.EDITOR_CHANGE,Q)}}]),B}(v.default);D.DEFAULTS=(0,f.default)(!0,{},v.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:funct
`)&&ce.ops[ce.ops.length-1].attributes==null&&(ce=ce.compose(new o.default().retain(ce.length()-1).delete(1))),N.log("convert",this.container.innerHTML,ce),this.container.innerHTML="",ce}},{key:"dangerouslyPasteHTML",value:function(re,oe){var be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g.default.sources.API;if(typeof re=="string")this.quill.setContents(this.convert(re),oe),this.quill.setSelection(0,g.default.sources.SILENT);else{var le=this.convert(oe);this.quill.updateContents(new o.default().retain(re).concat(le),be),this.quill.setSelection(re+le.length(),g.default.sources.SILENT)}}},{key:"onPaste",value:function(re){var oe=this;if(!(re.defaultPrevented||!this.quill.isEnabled())){var be=this.quill.getSelection(),le=new o.default().retain(be.index),Ce=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(g.default.sources.SILENT),setTimeout(function(){le=le.concat(oe.convert()).delete(be.length),oe.quill.updateContents(le,g.default.sources.USER),oe.quill.setSelection(le.length()-be.length,g.default.sources.SILENT),oe.quill.scrollingContainer.scrollTop=Ce,oe.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var re=this,oe=[],be=[];return this.matchers.forEach(function(le){var Ce=c(le,2),Ne=Ce[0],Be=Ce[1];switch(Ne){case Node.TEXT_NODE:be.push(Be);break;case Node.ELEMENT_NODE:oe.push(Be);break;default:[].forEach.call(re.container.querySelectorAll(Ne),function(ce){ce[D]=ce[D]||[],ce[D].push(Be)});break}}),[oe,be]}}]),ne}(k.default);H.DEFAULTS={matchers:[],matchVisual:!0};function B(Z,ne,de){return(typeof ne=="undefined"?"undefined":l(ne))==="object"?Object.keys(ne).reduce(function(re,oe){return B(re,oe,ne[oe])},Z):Z.reduce(function(re,oe){return oe.attributes&&oe.attributes[ne]?re.push(oe):re.insert(oe.insert,(0,h.default)({},x({},ne,de),oe.attributes))},new o.default)}function j(Z){if(Z.nodeType!==Node.ELEMENT_NODE)return{};var ne="__ql-computed-style";return Z[ne]||(Z[ne]=window.getComputedStyle(Z))}function q(Z,ne){for(var de="",re=Z.ops.length-1;re>=0&&de.length<ne.length;--re){var oe=Z.ops[re];if(typeof oe.insert!="string")break;de=oe.insert+de}return de.slice(-1*ne.length)===ne}function W(Z){if(Z.childNodes.length===0)return!1;var ne=j(Z);return["block","list-item"].indexOf(ne.display)>-1}function U(Z,ne,de){return Z.nodeType===Z.TEXT_NODE?de.reduce(function(re,oe){return oe(Z,re)},new o.default):Z.nodeType===Z.ELEMENT_NODE?[].reduce.call(Z.childNodes||[],function(re,oe){var be=U(oe,ne,de);return oe.nodeType===Z.ELEMENT_NODE&&(be=ne.reduce(function(le,Ce){return Ce(oe,le)},be),be=(oe[D]||[]).reduce(function(le,Ce){return Ce(oe,le)},be)),re.concat(be)},new o.default):new o.default}function Q(Z,ne,de){return B(de,Z,!0)}function ee(Z,ne){var de=d.default.Attributor.Attribute.keys(Z),re=d.default.Attributor.Class.keys(Z),oe=d.default.Attributor.Style.keys(Z),be={};return de.concat(re).concat(oe).forEach(function(le){var Ce=d.default.query(le,d.default.Scope.ATTRIBUTE);Ce!=null&&(be[Ce.attrName]=Ce.value(Z),be[Ce.attrName])||(Ce=F[le],Ce!=null&&(Ce.attrName===le||Ce.keyName===le)&&(be[Ce.attrName]=Ce.value(Z)||void 0),Ce=I[le],Ce!=null&&(Ce.attrName===le||Ce.keyName===le)&&(Ce=I[le],be[Ce.attrName]=Ce.value(Z)||void 0))}),Object.keys(be).length>0&&(ne=B(ne,be)),ne}function se(Z,ne){var de=d.default.query(Z);if(de==null)return ne;if(de.prototype instanceof d.default.Embed){var re={},oe=de.value(Z);oe!=null&&(re[de.blotName]=oe,ne=new o.default().insert(re,de.formats(Z)))}else typeof de.formats=="function"&&(ne=B(ne,de.blotName,de.formats(Z)));return ne}function ye(Z,ne){return q(ne,``)||ne.insert(``),ne}function Ae(){return new o.default}function J(Z,ne){var de=d.default.query(Z);if(de==null||de.blotName!=="list-item"||!q(ne,``))return ne;for(var re=-1,oe=Z.parentNode;!oe.classList.contains("ql-clipboard");)(d.default.query(oe)||{}).blotName==="list"&&(re+=1),oe=oe.parentNode;return re<=0?ne:ne.compose(new o.default().retain(ne.length()-1).retain(1,{indent:re}))}function ae(Z,ne){return q(ne,``)||(W(Z)||ne.length()>0&&Z.nextSibling&&W(Z.nextSibling))&&ne.insert(``),ne}function fe(Z,ne){if(W(Z)&&Z.nextElementSibling!=null&&!q(ne,`
`)){var de=Z.offsetHeight+parseFloat(j(Z).marginTop)+parseFloat(j(Z).marginBottom);Z.nextElementSibling.offsetTop>Z.offsetTop+de*1.5&&ne.insert(``)}return ne}function _e(Z,ne){var de={},re=Z.style||{};return re.fontStyle&&j(Z).fontStyle==="italic"&&(de.italic=!0),re.fontWeight&&(j(Z).fontWeight.startsWith("bold")||parseInt(j(Z).fontWeight)>=700)&&(de.bold=!0),Object.keys(de).length>0&&(ne=B(ne,de)),parseFloat(re.textIndent||0)>0&&(ne=new o.default().insert(" ").concat(ne)),ne}function ve(Z,ne){var de=Z.data;if(Z.parentNode.tagName==="O:P")return ne.insert(de.trim());if(de.trim().length===0&&Z.parentNode.classList.contains("ql-clipboard"))return ne;if(!j(Z.parentNode).whiteSpace.startsWith("pre")){var re=function(be,le){return le=le.replace(/[^\u00a0]/g,""),le.length<1&&be?" ":le};de=de.replace(/\r\n/g," ").replace(/\n/g," "),de=de.replace(/\s\s+/g,re.bind(re,!0)),(Z.previousSibling==null&&W(Z.parentNode)||Z.previousSibling!=null&&W(Z.previousSibling))&&(de=de.replace(/^\s+/,re.bind(re,!1))),(Z.nextSibling==null&&W(Z.parentNode)||Z.nextSibling!=null&&W(Z.nextSibling))&&(de=de.replace(/\s+$/,re.bind(re,!1)))}return ne.insert(de)}r.default=H,r.matchAttributor=ee,r.matchBlot=se,r.matchNewline=ae,r.matchSpacing=fe,r.matchText=ve},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var l=function(){function p(g,v){for(var y=0;y<v.length;y++){var b=v[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}return function(g,v,y){return v&&p(g.prototype,v),y&&p(g,y),g}}(),c=function p(g,v,y){g===null&&(g=Function.prototype);var b=Object.getOwnPropertyDescriptor(g,v);if(b===void 0){var k=Object.getPrototypeOf(g);return k===null?void 0:p(k,v,y)}else{if("value"in b)return b.value;var w=b.get;return w===void 0?void 0:w.call(y)}},u=i(6),f=h(u);function h(p){return p&&p.__esModule?p:{default:p}}function s(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function o(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function a(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var d=function(p){a(g,p);function g(){return s(this,g),o(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return l(g,[{key:"optimize",value:function(y){c(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,y),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return c(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),g}(f.default);d.blotName="bold",d.tagName=["STRONG","B"],r.default=d},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.addControls=r.default=void 0;var l=function(){function A(O,x){var M=[],L=!0,R=!1,N=void 0;try{for(var D=O[Symbol.iterator](),P;!(L=(P=D.next()).done)&&(M.push(P.value),!(x&&M.length===x));L=!0);}catch(F){R=!0,N=F}finally{try{!L&&D.return&&D.return()}finally{if(R)throw N}}return M}return function(O,x){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return A(O,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function A(O,x){for(var M=0;M<x.length;M++){var L=x[M];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(O,L.key,L)}}return function(O,x,M){return x&&A(O.prototype,x),M&&A(O,M),O}}(),u=i(2),f=y(u),h=i(0),s=y(h),o=i(5),a=y(o),d=i(10),p=y(d),g=i(9),v=y(g);function y(A){return A&&A.__esModule?A:{default:A}}function b(A,O,x){return O in A?Object.defineProperty(A,O,{value:x,enumerable:!0,configurable:!0,writable:!0}):A[O]=x,A}function k(A,O){if(!(A instanceof O))throw new TypeError("Cannot call a class as a function")}function w(A,O){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called
/*# sourceURL=ace/css/`+d+" */");var y=r.createElement("style");y.appendChild(v.createTextNode(a)),d&&(y.id=d),g==v&&(g=r.getDocumentHead(v)),g.insertBefore(y,g.firstChild)}}}if(r.importCssString=s,r.importCssStylsheet=function(a,d){r.buildDom(["link",{rel:"stylesheet",href:a}],r.getDocumentHead(d))},r.scrollbarWidth=function(a){var d=r.createElement("ace_inner");d.style.width="100%",d.style.minWidth="0px",d.style.height="200px",d.style.display="block";var p=r.createElement("ace_outer"),g=p.style;g.position="absolute",g.left="-10000px",g.overflow="hidden",g.width="200px",g.minWidth="0px",g.height="150px",g.display="block",p.appendChild(d);var v=a.documentElement;v.appendChild(p);var y=d.offsetWidth;g.overflow="scroll";var b=d.offsetWidth;return y==b&&(b=p.clientWidth),v.removeChild(p),y-b},r.computedStyle=function(a,d){return window.getComputedStyle(a,"")||{}},r.setStyle=function(a,d,p){a[d]!==p&&(a[d]=p)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=l.isWin?typeof window!="undefined"&&window.devicePixelRatio>=1.5:!0,l.isChromeOS&&(r.HI_DPI=!1),typeof document!="undefined"){var o=document.createElement("div");r.HI_DPI&&o.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!l.isEdge&&typeof o.style.animationName!="undefined"&&(r.HAS_CSS_ANIMATION=!0),o=null}r.HAS_CSS_TRANSFORMS?r.translate=function(a,d,p){a.style.transform="translate("+Math.round(d)+"px, "+Math.round(p)+"px)"}:r.translate=function(a,d,p){a.style.top=Math.round(p)+"px",a.style.left=Math.round(d)+"px"}}),ace.define("ace/lib/oop",["require","exports","module"],function(n,r,i){r.inherits=function(l,c){l.super_=c,l.prototype=Object.create(c.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(l,c){for(var u in c)l[u]=c[u];return l},r.implement=function(l,c){r.mixin(l,c)}}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(n,r,i){var l=n("./oop"),c=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:"*"}},f,h;for(h in u.FUNCTION_KEYS)f=u.FUNCTION_KEYS[h].toLowerCase(),u[f]=parseInt(h,10);for(h in u.PRINTABLE_KEYS)f=u.PRINTABLE_KEYS[h].toLowerCase(),u[f]=parseInt(h,10);return l.mixin(u,u.MODIFIER_KEYS),l.mixin(u,u.PRINTABLE_KEYS),l.mixin(u,u.FUNCTION_KEYS),u.enter=u.return,u.escape=u.esc,u.del=u.delete,u[173]="-",function(){for(var s=["cmd","ctrl","alt","shift"],o=Math.pow(2,s.length);o--;)u.KEY_MODS[o]=s.filter(function(a){return o&u.KEY_MODS[a]}).join("-")+"-"}(),u.KEY_MODS[0]="",u.KEY_MODS[-1]="input-",u}();l.mixin(r,c),r.keyCodeToString=function(u){var f=c[u];return typeof f!="string"&&(f=String.fromCharCode(u)),f.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,i){var l=n("./keys"),c=n("./useragent"),u=null,f=0,h;function s(){h=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){h={passive:!1}}})}catch{}}function o(){return h==null&&s(),h}function a(k,w,m){this.elem=k,this.type=w,this.callback=m}a.prototype.destroy=function(){
ab`+re+`cde fg`;oe!=S.value&&(S.value=M=oe);var be=4,le=4+(re.length||(m.selection.isEmpty()?0:1));(L!=be||R!=le)&&S.setSelectionRange(be,le),L=be,R=le}}:function(){if(!(_||$)&&!(!D&&!B)){_=!0;var re=0,oe=0,be="";if(m.session){var le=m.selection,Ce=le.getRange(),Ne=le.cursor.row;if(re=Ce.start.column,oe=Ce.end.column,be=m.session.getLine(Ne),Ce.start.row!=Ne){var Be=m.session.getLine(Ne-1);re=Ce.start.row<Ne-1?0:re,oe+=Be.length+1,be=Be+``+be}else if(Ce.end.row!=Ne){var ce=m.session.getLine(Ne+1);oe=Ce.end.row>Ne+1?ce.length:oe,oe+=be.length+1,be=be+``+ce}else b&&Ne>0&&(be=``+be,oe+=1,re+=1);be.length>d&&(re<d&&oe<d?be=be.slice(0,d):(be=``,re==oe?re=oe=0:(re=0,oe=1)))}var Se=be+`
`;if(Se!=M&&(S.value=M=Se,L=R=Se.length),B&&(L=S.selectionStart,R=S.selectionEnd),R!=oe||L!=re||S.selectionEnd!=R)try{S.setSelectionRange(re,oe),L=re,R=oe}catch{}_=!1}};this.resetSelection=P,D&&m.onFocus();var F=function(re){return re.selectionStart===0&&re.selectionEnd>=M.length&&re.value===M&&M&&re.selectionEnd!==R},I=function(re){_||(E?E=!1:F(S)?(m.selectAll(),P()):b&&S.selectionStart!=L&&P())},H=null;this.setInputHandler=function(re){H=re},this.getInputHandler=function(){return H};var B=!1,j=function(re,oe){if(B&&(B=!1),C)return P(),re&&m.onPaste(re),C=!1,"";for(var be=S.selectionStart,le=S.selectionEnd,Ce=L,Ne=M.length-R,Be=re,ce=re.length-be,Se=re.length-le,Y=0;Ce>0&&M[Y]==re[Y];)Y++,Ce--;for(Be=Be.slice(Y),Y=1;Ne>0&&M.length-Y>L-1&&M[M.length-Y]==re[re.length-Y];)Y++,Ne--;ce-=Y-1,Se-=Y-1;var pe=Be.length-Y+1;if(pe<0&&(Ce=-pe,pe=0),Be=Be.slice(0,pe),!oe&&!Be&&!ce&&!Ce&&!Ne&&!Se)return"";$=!0;var Re=!1;return c.isAndroid&&Be==". "&&(Be=" ",Re=!0),Be&&!Ce&&!Ne&&!ce&&!Se||O?m.onTextInput(Be):m.onTextInput(Be,{extendLeft:Ce,extendRight:Ne,restoreStart:ce,restoreEnd:Se}),$=!1,M=re,L=be,R=le,N=Se,Re?``:Be},q=function(re){if(_)return Ae();if(re&&re.inputType){if(re.inputType=="historyUndo")return m.execCommand("undo");if(re.inputType=="historyRedo")return m.execCommand("redo")}var oe=S.value,be=j(oe,!0);(oe.length>d+100||y.test(be)||b&&L<1&&L==R)&&P()},W=function(re,oe,be){var le=re.clipboardData||window.clipboardData;if(!(!le||s)){var Ce=o||be?"Text":"text/plain";try{return oe?le.setData(Ce,oe)!==!1:le.getData(Ce)}catch(Ne){if(!be)return W(Ne,oe,!0)}}},U=function(re,oe){var be=m.getCopyText();if(!be)return l.preventDefault(re);W(re,be)?(v&&(P(be),E=be,setTimeout(function(){E=!1},10)),oe?m.onCut():m.onCopy(),l.preventDefault(re)):(E=!0,S.value=be,S.select(),setTimeout(function(){E=!1,P(),oe?m.onCut():m.onCopy()}))},Q=function(re){U(re,!0)},ee=function(re){U(re,!1)},se=function(re){var oe=W(re);h.pasteCancelled()||(typeof oe=="string"?(oe&&m.onPaste(oe,re),c.isIE&&setTimeout(P),l.preventDefault(re)):(S.value="",C=!0))};l.addCommandKeyListener(S,m.onCommandKey.bind(m),m),l.addListener(S,"select",I,m),l.addListener(S,"input",q,m),l.addListener(S,"cut",Q,m),l.addListener(S,"copy",ee,m),l.addListener(S,"paste",se,m),(!("oncut"in S)||!("oncopy"in S)||!("onpaste"in S))&&l.addListener(w,"keydown",function(re){if(!(c.isMac&&!re.metaKey||!re.ctrlKey))switch(re.keyCode){case 67:ee(re);break;case 86:se(re);break;case 88:Q(re);break}},m);var ye=function(re){if(!(_||!m.onCompositionStart||m.$readOnly)&&(_={},!O)){re.data&&(_.useTextareaForIME=!1),setTimeout(Ae,0),m._signal("compositionStart"),m.on("mousedown",ae);var oe=m.getSelectionRange();oe.end.row=oe.start.row,oe.end.column=oe.start.column,_.markerRange=oe,_.selectionStart=L,m.onCompositionStart(_),_.useTextareaForIME?(M=S.value="",L=0,R=0):(S.msGetInputContext&&(_.context=S.msGetInputContext()),S.getInputContext&&(_.context=S.getInputContext()))}},Ae=function(){if(!(!_||!m.onCompositionUpdate||m.$readOnly)){if(O)return ae();if(_.useTextareaForIME)m.onCompositionUpdate(S.value);else{var re=S.value;j(re),_.markerRange&&(_.context&&(_.markerRange.start.column=_.selectionStart=_.context.compositionStartOffset),_.markerRange.end.column=_.markerRange.start.column+R-_.selectionStart+N)}}},J=function(re){!m.onCompositionEnd||m.$readOnly||(_=!1,m.onCompositionEnd(),m.off("mousedown",ae),re&&q())};function ae(){x=!0,S.blur(),S.focus(),x=!1}var fe=f.delayedCall(Ae,50).schedule.bind(null,null);function _e(re){re.keyCode==27&&S.value.length<S.selectionStart&&(_||(M=S.value),L=R=-1,P()),fe()}l.addListener(S,"compositionstart",ye,m),l.addListener(S,"compositionupdate",Ae,m),l.addListener(S,"keyup",_e,m),l.addListener(S,"keydown",fe,m),l.addListener(S,"compositionend",J,m),this.getElement=function(){return S},this.setCommandMode=function(re){O=re,S.readOnly=!1},this.setReadOnly=function(re){O||(S.readOnly=re)},this.setCopyWithEmptySelection=function(re){},this.onContextMenu=function(re){B=!0,P(),m._emit("nativecontextmenu",{target:m,domEvent:re}),this.moveToMouse(re,!0)},this.moveToMouse=function(re,oe){A||(A=S.style.cssText),S.style.cssText=(oe?"z-index:100000;":"")+(c.isIE?"opacity:0.1;":"")+"text-indent: -"+(L+R)*m.renderer.characterWidth*.5+"px;";var be=m.container.getBoundingClientRect(),le=u.computedStyle(m.container),Ce=be.top+(parseInt(le.borderTopWidth)||0),Ne=be.left+(parseInt(be.borderLeftWidth)||0),Be=be.bottom-Ce-S.clientHeight-2,ce=function(Se){u.translate(S,Se.clientX-Ne-2,Math.min(Se.clientY-Ce-2,Be))};ce(re),re.type=="mousedown"&&(m.renderer.$isMousePressed=!0,clearTimeout(ve),c.isWin&&l.capture(m.container,ce,Z))},this.onContextMenuClose=Z;var ve;function Z(){clearTimeout(ve),ve=setTimeout(function(){A&&(S.style.cssText=A,A=""),m.renderer.$isMousePressed=!1,m.renderer.$keepTextAreaAtCursor&&m.renderer.$moveTextAreaToCursor()},0)}var ne=function(re){m.textInput.onContextMenu(re),Z()};l.addListener(S,"mouseup",ne,m),l.addListener(S,"mousedown",function(re){re.preventDefault(),Z()},m),l.addListener(m.renderer.scroller,"contextmenu",ne,m),l.addListener(S,"contextmenu",ne,m),v&&de(w,m,S);function de(re,oe,be){var le=null,Ce=!1;be.addEventListener("keydown",function(Be){le&&clea
`?Y=p.end:ce<L&&M[ce-1]==" "?(Y=p.left,pe=g.option):ce<L||ce==L&&R!=L&&ce==Se?Y=p.left:Se>R&&M.slice(0,Se).split(``).length>2?Y=p.down:Se>R&&M[Se-1]==" "?(Y=p.right,pe=g.option):(Se>R||Se==R&&R!=L&&ce==Se)&&(Y=p.right),ce!==Se&&(pe|=g.shift),Y){var Re=oe.onCommandKey({},pe,Y);if(!Re&&oe.commands){Y=p.keyCodeToString(Y);var qe=oe.commands.findKeyCommand(pe,Y);qe&&oe.execCommand(qe)}L=ce,R=Se,P("")}}};document.addEventListener("selectionchange",Ne),oe.on("destroy",function(){document.removeEventListener("selectionchange",Ne)})}this.destroy=function(){S.parentElement&&S.parentElement.removeChild(S)}};r.TextInput=k,r.$setUserAgentForTests=function(w,m){b=w,v=m}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,r,i){var l=n("../lib/useragent"),c=0,u=550;function f(o){o.$clickSelection=null;var a=o.editor;a.setDefaultHandler("mousedown",this.onMouseDown.bind(o)),a.setDefaultHandler("dblclick",this.onDoubleClick.bind(o)),a.setDefaultHandler("tripleclick",this.onTripleClick.bind(o)),a.setDefaultHandler("quadclick",this.onQuadClick.bind(o)),a.setDefaultHandler("mousewheel",this.onMouseWheel.bind(o));var d=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];d.forEach(function(p){o[p]=this[p]},this),o.selectByLines=this.extendSelectionBy.bind(o,"getLineRange"),o.selectByWords=this.extendSelectionBy.bind(o,"getWordRange")}(function(){this.onMouseDown=function(o){var a=o.inSelection(),d=o.getDocumentPosition();this.mousedownEvent=o;var p=this.editor,g=o.getButton();if(g!==0){var v=p.getSelectionRange(),y=v.isEmpty();(y||g==1)&&p.selection.moveToPosition(d),g==2&&(p.textInput.onContextMenu(o.domEvent),l.isMozilla||o.preventDefault());return}if(this.mousedownEvent.time=Date.now(),a&&!p.isFocused()&&(p.focus(),this.$focusTimeout&&!this.$clickSelection&&!p.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(o);return}return this.captureMouse(o),this.startSelect(d,o.domEvent._clicks>1),o.preventDefault()},this.startSelect=function(o,a){o=o||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var d=this.editor;!this.mousedownEvent||(this.mousedownEvent.getShiftKey()?d.selection.selectToPosition(o):a||d.selection.moveToPosition(o),a||this.select(),d.renderer.scroller.setCapture&&d.renderer.scroller.setCapture(),d.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var o,a=this.editor,d=a.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var p=this.$clickSelection.comparePoint(d);if(p==-1)o=this.$clickSelection.end;else if(p==1)o=this.$clickSelection.start;else{var g=s(this.$clickSelection,d);d=g.cursor,o=g.anchor}a.selection.setSelectionAnchor(o.row,o.column)}a.selection.selectToPosition(d),a.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(o){var a,d=this.editor,p=d.renderer.screenToTextCoordinates(this.x,this.y),g=d.selection[o](p.row,p.column);if(this.$clickSelection){var v=this.$clickSelection.comparePoint(g.start),y=this.$clickSelection.comparePoint(g.end);if(v==-1&&y<=0)a=this.$clickSelection.end,(g.end.row!=p.row||g.end.column!=p.column)&&(p=g.start);else if(y==1&&v>=0)a=this.$clickSelection.start,(g.start.row!=p.row||g.start.column!=p.column)&&(p=g.end);else if(v==-1&&y==1)p=g.end,a=g.start;else{var b=s(this.$clickSelection,p);p=b.cursor,a=b.anchor}d.selection.setSelectionAnchor(a.row,a.column)}d.selection.selectToPosition(p),d.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var o=h(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),a=Date.now();(o>c||a-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(o){var a=o.getDocumentPosition(),d=this.editor,p=d.session,g=p.getBracketRange(a);g?(g.isEmpty()&&(g.start.column--,g.end.column++),this.setState("select")):(g=d.selection.getWordRange(a.row,
`))&&(this.seenBidi=!0,this.currentRow=null)},this.getDocumentRow=function(){var h=0,s=this.session.$screenRowCache;if(s.length){var o=this.session.$getRowCacheIndex(s,this.currentRow);o>=0&&(h=this.session.$docRowCache[o])}return h},this.getSplitIndex=function(){var h=0,s=this.session.$screenRowCache;if(s.length)for(var o,a=this.session.$getRowCacheIndex(s,this.currentRow);this.currentRow-h>0&&(o=this.session.$getRowCacheIndex(s,this.currentRow-h-1),o===a);)a=o,h++;else h=this.currentRow;return h},this.updateRowLine=function(h,s){h===void 0&&(h=this.getDocumentRow());var o=h===this.session.getLength()-1,a=o?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(h),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var d=this.session.$wrapData[h];d&&(s===void 0&&(s=this.getSplitIndex()),s>0&&d.length?(this.wrapIndent=d.indent,this.wrapOffset=this.wrapIndent*this.charWidths[l.L],this.line=s<d.length?this.line.substring(d[s-1],d[s]):this.line.substring(d[d.length-1])):this.line=this.line.substring(0,d[s])),s==d.length&&(this.line+=this.showInvisibles?a:l.DOT)}else this.line+=this.showInvisibles?a:l.DOT;var p=this.session,g=0,v;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(y,b){return y===" "||p.isFullWidth(y.charCodeAt(0))?(v=y===" "?p.getScreenTabSize(b+g):2,g+=v-1,c.stringRepeat(l.DOT,v)):y}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==l.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},this.updateBidiMap=function(){var h=[];l.hasBidiCharacters(this.line,h)||this.isRtlDir?this.bidiMap=l.doBidiReorder(this.line,h,this.isRtlDir):this.bidiMap={}},this.markAsDirty=function(){this.currentRow=null},this.updateCharacterWidths=function(h){if(this.characterWidth!==h.$characterSize.width){this.fontMetrics=h;var s=this.characterWidth=h.$characterSize.width,o=h.$measureCharWidth("\u05D4");this.charWidths[l.L]=this.charWidths[l.EN]=this.charWidths[l.ON_R]=s,this.charWidths[l.R]=this.charWidths[l.AN]=o,this.charWidths[l.R_H]=o*.45,this.charWidths[l.B]=this.charWidths[l.RLE]=0,this.currentRow=null}},this.setShowInvisibles=function(h){this.showInvisibles=h,this.currentRow=null},this.setEolChar=function(h){this.EOL=h},this.setContentWidth=function(h){this.contentWidth=h},this.isRtlLine=function(h){return this.$isRtl?!0:h!=null?this.session.getLine(h).charAt(0)==this.RLE:this.isRtlDir},this.setRtlDirection=function(h,s){for(var o=h.getCursorPosition(),a=h.selection.getSelectionAnchor().row;a<=o.row;a++)!s&&h.session.getLine(a).charAt(0)===h.session.$bidiHandler.RLE?h.session.doc.removeInLine(a,0,1):s&&h.session.getLine(a).charAt(0)!==h.session.$bidiHandler.RLE&&h.session.doc.insert({column:0,row:a},h.session.$bidiHandler.RLE)},this.getPosLeft=function(h){h-=this.wrapIndent;var s=this.line.charAt(0)===this.RLE?1:0,o=h>s?this.session.getOverwrite()?h:h-1:s,a=l.getVisualFromLogicalIdx(o,this.bidiMap),d=this.bidiMap.bidiLevels,p=0;!this.session.getOverwrite()&&h<=s&&d[a]%2!=0&&a++;for(var g=0;g<a;g++)p+=this.charWidths[d[g]];return!this.session.getOverwrite()&&h>s&&d[a]%2==0&&(p+=this.charWidths[d[a]]),this.wrapIndent&&(p+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(p+=this.rtlLineOffset),p},this.getSelections=function(h,s){var o=this.bidiMap,a=o.bidiLevels,d,p=[],g=0,v=Math.min(h,s)-this.wrapIndent,y=Math.max(h,s)-this.wrapIndent,b=!1,k=!1,w=0;this.wrapIndent&&(g+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var m,S=0;S<a.length;S++)m=o.logicalFromVisual[S],d=a[S],b=m>=v&&m<y,b&&!k?w=g:!b&&k&&p.push({left:w,width:g-w}),g+=this.charWidths[d],k=b;if(b&&S===a.length&&p.push({left:w,width:g-w}),this.isRtlDir)for(var E=0;E<p.length;E++)p[E].left+=this.rtlLineOffset;return p},this.offsetToCol=function(h){this.isRtlDir&&(h-=this.rtlLineOffset);var s=0,h=Math.max(h,0),o=0,a=0,d=this.bidiMap.bidiLevels,p=this.charWidths[d[a]];for(this.wrapIndent&&(h-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);h>o+p/
`||S==`\r`){p(w);var x="";v.isMaybeInsertedClosing(E,C)&&(x=f.stringRepeat("}",o.maybeInsertedBrackets),v.clearMaybeInsertedClosing());var A=C.substring(E.column,E.column+1);if(A==="}"){var M=m.findMatchingBracket({row:E.row,column:E.column+1},"}");if(!M)return null;var L=this.$getIndent(m.getLine(M.row))}else if(x)var L=this.$getIndent(C);else{v.clearMaybeInsertedClosing();return}var R=L+m.getTabString();return{text:``+R+``+L+x,selection:[1,R.length,1,R.length]}}else v.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(b,k,w,m,S){var E=m.doc.getTextRange(S);if(!S.isMultiLine()&&E=="{"){p(w);var C=m.doc.getLine(S.start.row),_=C.substring(S.end.column,S.end.column+1);if(_=="}")return S.end.column++,S;o.maybeInsertedBrackets--}}),this.add("parens","insertion",function(b,k,w,m,S){if(S=="("){p(w);var E=w.getSelectionRange(),C=m.doc.getTextRange(E);if(C!==""&&w.getWrapBehavioursEnabled())return g(E,C,"(",")");if(v.isSaneInsertion(w,m))return v.recordAutoInsert(w,m,")"),{text:"()",selection:[1,1]}}else if(S==")"){p(w);var _=w.getCursorPosition(),$=m.doc.getLine(_.row),A=$.substring(_.column,_.column+1);if(A==")"){var O=m.$findOpeningBracket(")",{column:_.column+1,row:_.row});if(O!==null&&v.isAutoInsertedClosing(_,$,S))return v.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(b,k,w,m,S){var E=m.doc.getTextRange(S);if(!S.isMultiLine()&&E=="("){p(w);var C=m.doc.getLine(S.start.row),_=C.substring(S.start.column+1,S.start.column+2);if(_==")")return S.end.column++,S}}),this.add("brackets","insertion",function(b,k,w,m,S){if(S=="["){p(w);var E=w.getSelectionRange(),C=m.doc.getTextRange(E);if(C!==""&&w.getWrapBehavioursEnabled())return g(E,C,"[","]");if(v.isSaneInsertion(w,m))return v.recordAutoInsert(w,m,"]"),{text:"[]",selection:[1,1]}}else if(S=="]"){p(w);var _=w.getCursorPosition(),$=m.doc.getLine(_.row),A=$.substring(_.column,_.column+1);if(A=="]"){var O=m.$findOpeningBracket("]",{column:_.column+1,row:_.row});if(O!==null&&v.isAutoInsertedClosing(_,$,S))return v.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(b,k,w,m,S){var E=m.doc.getTextRange(S);if(!S.isMultiLine()&&E=="["){p(w);var C=m.doc.getLine(S.start.row),_=C.substring(S.start.column+1,S.start.column+2);if(_=="]")return S.end.column++,S}}),this.add("string_dquotes","insertion",function(b,k,w,m,S){var E=m.$mode.$quotes||d;if(S.length==1&&E[S]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(S)!=-1)return;p(w);var C=S,_=w.getSelectionRange(),$=m.doc.getTextRange(_);if($!==""&&($.length!=1||!E[$])&&w.getWrapBehavioursEnabled())return g(_,$,C,C);if(!$){var A=w.getCursorPosition(),O=m.doc.getLine(A.row),x=O.substring(A.column-1,A.column),M=O.substring(A.column,A.column+1),L=m.getTokenAt(A.row,A.column),R=m.getTokenAt(A.row,A.column+1);if(x=="\\"&&L&&/escape/.test(L.type))return null;var N=L&&/string|escape/.test(L.type),D=!R||/string|escape/.test(R.type),P;if(M==C)P=N!==D,P&&/string\.end/.test(R.type)&&(P=!1);else{if(N&&!D||N&&D)return null;var F=m.$mode.tokenRe;F.lastIndex=0;var I=F.test(x);F.lastIndex=0;var H=F.test(x);if(I||H||M&&!/[\s;,.})\]\\]/.test(M))return null;var B=O[A.column-2];if(x==C&&(B==C||F.test(B)))return null;P=!0}return{text:P?C+C:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(b,k,w,m,S){var E=m.$mode.$quotes||d,C=m.doc.getTextRange(S);if(!S.isMultiLine()&&E.hasOwnProperty(C)){p(w);var _=m.doc.getLine(S.start.row),$=_.substring(S.start.column+1,S.start.column+2);if($==C)return S.end.column++,S}})};v.isSaneInsertion=function(y,b){var k=y.getCursorPosition(),w=new u(b,k.row,k.column);if(!this.$matchTokenType(w.getCurrentToken()||"text",h)){if(/[)}\]]/.test(y.session.getLine(k.row)[k.column]))return!0;var m=new u(b,k.row,k.column+1);if(!this.$matchTokenType(m.getCurrentToken()||"text",h))return!1}return w.stepForward(),w.getCurrentTokenRow()!==k.row||this.$matchTokenType(w.getCurrentToken()||"text",s)},v.$matchTokenType=function(y,b){return b.indexOf(y.type||y)>-1},v.recordAutoInsert=function(y,b,k){var w=y.getCursorPosition(),m=b.doc.getLine(w.row);this.isAutoInsertedClosing(w,m,o.autoInsertedLineEnd[0])||(o.autoInsertedBrackets=0),o.autoInsertedRow=w.row,o.autoInsertedLineEnd=k+m.substr(w.column),o.autoInsertedBrackets++},v.recordMaybeInsert=function(y,b,k){var w=y.getCursorPosition(),m=b.doc.getLine(w.row);this.isMaybeInsertedClosing(w,m)||(o.maybeInsertedBrackets=0),o.maybeInsertedRow=w.row,o.maybeInsertedLineStart=m.substr(0,w.column)+k,o
`).split(``)}:this.$split=function(o){return o.split(/\r\n|\r|\n/)},this.$detectNewLine=function(o){var a=o.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=a?a[1]:``,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r`;case"unix":return``;default:return this.$autoNewLine||``}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(o){this.$newLineMode!==o&&(this.$newLineMode=o,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(o){return o==`\r`||o=="\r"||o==``},this.getLine=function(o){return this.$lines[o]||""},this.getLines=function(o,a){return this.$lines.slice(o,a+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(o){return this.getLinesForRange(o).join(this.getNewLineCharacter())},this.getLinesForRange=function(o){var a;if(o.start.row===o.end.row)a=[this.getLine(o.start.row).substring(o.start.column,o.end.column)];else{a=this.getLines(o.start.row,o.end.row),a[0]=(a[0]||"").substring(o.start.column);var d=a.length-1;o.end.row-o.start.row==d&&(a[d]=a[d].substring(0,o.end.column))}return a},this.insertLines=function(o,a){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(o,a)},this.removeLines=function(o,a){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(o,a)},this.insertNewLine=function(o){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(o,["",""])},this.insert=function(o,a){return this.getLength()<=1&&this.$detectNewLine(a),this.insertMergedLines(o,this.$split(a))},this.insertInLine=function(o,a){var d=this.clippedPos(o.row,o.column),p=this.pos(o.row,o.column+a.length);return this.applyDelta({start:d,end:p,action:"insert",lines:[a]},!0),this.clonePos(p)},this.clippedPos=function(o,a){var d=this.getLength();o===void 0?o=d:o<0?o=0:o>=d&&(o=d-1,a=void 0);var p=this.getLine(o);return a==null&&(a=p.length),a=Math.min(Math.max(a,0),p.length),{row:o,column:a}},this.clonePos=function(o){return{row:o.row,column:o.column}},this.pos=function(o,a){return{row:o,column:a}},this.$clipPosition=function(o){var a=this.getLength();return o.row>=a?(o.row=Math.max(0,a-1),o.column=this.getLine(a-1).length):(o.row=Math.max(0,o.row),o.column=Math.min(Math.max(o.column,0),this.getLine(o.row).length)),o},this.insertFullLines=function(o,a){o=Math.min(Math.max(o,0),this.getLength());var d=0;o<this.getLength()?(a=a.concat([""]),d=0):(a=[""].concat(a),o--,d=this.$lines[o].length),this.insertMergedLines({row:o,column:d},a)},this.insertMergedLines=function(o,a){var d=this.clippedPos(o.row,o.column),p={row:d.row+a.length-1,column:(a.length==1?d.column:0)+a[a.length-1].length};return this.applyDelta({start:d,end:p,action:"insert",lines:a}),this.clonePos(p)},this.remove=function(o){var a=this.clippedPos(o.start.row,o.start.column),d=this.clippedPos(o.end.row,o.end.column);return this.applyDelta({start:a,end:d,action:"remove",lines:this.getLinesForRange({start:a,end:d})}),this.clonePos(a)},this.removeInLine=function(o,a,d){var p=this.clippedPos(o,a),g=this.clippedPos(o,d);return this.applyDelta({start:p,end:g,action:"remove",lines:this.getLinesForRange({start:p,end:g})},!0),this.clonePos(p)},this.removeFullLines=function(o,a){o=Math.min(Math.max(0,o),this.getLength()-1),a=Math.min(Math.max(0,a),this.getLength()-1);var d=a==this.getLength()-1&&o>0,p=a<this.getLength()-1,g=d?o-1:o,v=d?this.getLine(g).length:0,y=p?a+1:a,b=p?0:this.getLine(y).length,k=new f(g,v,y,b),w=this.$lines.slice(o,a+1);return this.applyDelta({start:k.start,end:k.end,action:"remove",lines:this.getLinesForRange(k)}),w},this.removeNewLine=function(o){o<this.getLength()-1&&o>=0&&this.applyDelta({start:this.pos(o,this.getLine(o).length),end:this.pos(o+1,0),action:"remove",lines:["",""]})},this.replace=function(o,a){if(o instanceof f||(o=f.fromPoints(o.start,o.end)),a.length===0&&o.isEmpty())return o.start;if(a==this.getTextRange(o))return o.end;this.remove(o);var d;return a?d=this.insert(o.start,a):d=o.start,d},this.applyDeltas=function(o){for(var a=0;a<o.length;a++)this.applyDelta(o[a])},this.revertDeltas=function(o){for(var a=o.length-1;a>=0;a--)this.revertDelta(o[a])},this.applyDelta=function(o,a){var d=o.action=="insert";(d?o.lines.length<=1&&!o.lines[0]:!f.comparePoints(o.start,o.end))||(d&&o.lines.length>2e4?this.$splitAndapplyLargeDelta(o,2e4):(c(this.$lines,o,a),this._signal("change",o)))
`)},this.idxToPosition=function(u){for(var f=0,h=0;h<this.folds.length;h++){var s=this.folds[h];if(u-=s.start.column-f,u<0)return{row:s.start.row,column:s.start.column+u};if(u-=s.placeholder.length,u<0)return s.start;f=s.end.column}return{row:this.end.row,column:this.end.column+u}}}).call(c.prototype),r.FoldLine=c}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(n,r,i){var l=n("./range").Range,c=l.comparePoints,u=function(){this.ranges=[],this.$bias=1};(function(){this.comparePoints=c,this.pointIndex=function(f,h,s){for(var o=this.ranges,a=s||0;a<o.length;a++){var d=o[a],p=c(f,d.end);if(!(p>0)){var g=c(f,d.start);return p===0?h&&g!==0?-a-2:a:g>0||g===0&&!h?a:-a-1}}return-a-1},this.add=function(f){var h=!f.isEmpty(),s=this.pointIndex(f.start,h);s<0&&(s=-s-1);var o=this.pointIndex(f.end,h,s);return o<0?o=-o-1:o++,this.ranges.splice(s,o-s,f)},this.addList=function(f){for(var h=[],s=f.length;s--;)h.push.apply(h,this.add(f[s]));return h},this.substractPoint=function(f){var h=this.pointIndex(f);if(h>=0)return this.ranges.splice(h,1)},this.merge=function(){var f=[],h=this.ranges;h=h.sort(function(p,g){return c(p.start,g.start)});for(var s=h[0],o,a=1;a<h.length;a++){o=s,s=h[a];var d=c(o.end,s.start);d<0||d==0&&!o.isEmpty()&&!s.isEmpty()||(c(o.end,s.end)<0&&(o.end.row=s.end.row,o.end.column=s.end.column),h.splice(a,1),f.push(s),s=o,a--)}return this.ranges=h,f},this.contains=function(f,h){return this.pointIndex({row:f,column:h})>=0},this.containsPoint=function(f){return this.pointIndex(f)>=0},this.rangeAtPoint=function(f){var h=this.pointIndex(f);if(h>=0)return this.ranges[h]},this.clipRows=function(f,h){var s=this.ranges;if(s[0].start.row>h||s[s.length-1].start.row<f)return[];var o=this.pointIndex({row:f,column:0});o<0&&(o=-o-1);var a=this.pointIndex({row:h,column:0},o);a<0&&(a=-a-1);for(var d=[],p=o;p<a;p++)d.push(s[p]);return d},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(f){this.session&&this.detach(),this.session=f,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){!this.session||(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(f){for(var h=f.start,s=f.end,o=h.row,a=s.row,d=this.ranges,p=0,g=d.length;p<g;p++){var v=d[p];if(v.end.row>=o)break}if(f.action=="insert")for(var y=a-o,b=-h.column+s.column;p<g;p++){var v=d[p];if(v.start.row>o)break;if(v.start.row==o&&v.start.column>=h.column&&(v.start.column==h.column&&this.$bias<=0||(v.start.column+=b,v.start.row+=y)),v.end.row==o&&v.end.column>=h.column){if(v.end.column==h.column&&this.$bias<0)continue;v.end.column==h.column&&b>0&&p<g-1&&v.end.column>v.start.column&&v.end.column==d[p+1].start.column&&(v.end.column-=b),v.end.column+=b,v.end.row+=y}}else for(var y=o-a,b=h.column-s.column;p<g;p++){var v=d[p];if(v.start.row>a)break;v.end.row<a&&(o<v.end.row||o==v.end.row&&h.column<v.end.column)?(v.end.row=o,v.end.column=h.column):v.end.row==a?v.end.column<=s.column?(y||v.end.column>h.column)&&(v.end.column=h.column,v.end.row=h.row):(v.end.column+=b,v.end.row+=y):v.end.row>a&&(v.end.row+=y),v.start.row<a&&(o<v.start.row||o==v.start.row&&h.column<v.start.column)?(v.start.row=o,v.start.column=h.column):v.start.row==a?v.start.column<=s.column?(y||v.start.column>h.column)&&(v.start.column=h.column,v.start.row=h.row):(v.start.column+=b,v.start.row+=y):v.start.row>a&&(v.start.row+=y)}if(y!=0&&p<g)for(;p<g;p++){var v=d[p];v.start.row+=y,v.end.row+=y}}}).call(u.prototype),r.RangeList=u}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list","ace/lib/oop"],function(n,r,i){var l=n("../range_list").RangeList,c=n("../lib/oop"),u=r.Fold=function(a,d){this.foldLine=null,this.placeholder=d,this.range=a,this.start=a.start,this.end=a.end,this.sameRow=a.start.row==a.end.row,this.subFolds=this.ranges=[]};c.inherits(u,l),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(a){this.foldLine=a,this.subFolds.forEach(function(d){d.setFol
`)},this.bgTokenizer=new p(new o().getTokenizer(),this);var k=this;this.bgTokenizer.on("update",function(w){k._signal("tokenizerUpdate",w)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof y!="object"||!y.getLine)&&(y=new d(y)),this.setDocument(y),this.selection=new s(this),this.$bidiHandler=new u(this),f.resetOptions(this),this.setMode(b),f._signal("session",this),this.destroyed=!1};v.$uid=0,function(){l.implement(this,h),this.setDocument=function($){this.doc&&this.doc.off("change",this.$onChange),this.doc=$,$.on("change",this.$onChange),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function($){if(!$){this.$docRowCache=[],this.$screenRowCache=[];return}var A=this.$docRowCache.length,O=this.$getRowCacheIndex(this.$docRowCache,$)+1;A>O&&(this.$docRowCache.splice(O,A),this.$screenRowCache.splice(O,A))},this.$getRowCacheIndex=function($,A){for(var O=0,x=$.length-1;O<=x;){var M=O+x>>1,L=$[M];if(A>L)O=M+1;else if(A<L)x=M-1;else return M}return O-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},this.onChangeFold=function($){var A=$.data;this.$resetRowCache(A.start.row)},this.onChange=function($){this.$modified=!0,this.$bidiHandler.onChange($),this.$resetRowCache($.start.row);var A=this.$updateInternalDataOnChange($);!this.$fromUndo&&this.$undoManager&&(A&&A.length&&(this.$undoManager.add({action:"removeFolds",folds:A},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add($,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange($),this._signal("change",$)},this.setValue=function($){this.doc.setValue($),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function($){return this.bgTokenizer.getState($)},this.getTokens=function($){return this.bgTokenizer.getTokens($)},this.getTokenAt=function($,A){var O=this.bgTokenizer.getTokens($),x,M=0;if(A==null){var L=O.length-1;M=this.getLine($).length}else for(var L=0;L<O.length&&(M+=O[L].value.length,!(M>=A));L++);return x=O[L],x?(x.index=L,x.start=M-x.value.length,x):null},this.setUndoManager=function($){if(this.$undoManager=$,this.$informUndoManager&&this.$informUndoManager.cancel(),$){var A=this;$.addSession(this),this.$syncInformUndoManager=function(){A.$informUndoManager.cancel(),A.mergeUndoDeltas=!1},this.$informUndoManager=c.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?c.stringRepeat(" ",this.getTabSize()):" "},this.setUseSoftTabs=function($){this.setOption("useSoftTabs",$)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function($){this.setOption("tabSize",$)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function($){return this.$useSoftTabs&&$.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function($){this.setOption("navigateWithinSoftTabs",$)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function($){this.setOption("overwrite",$)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function($,A){this.$decorations[$]||(this.$decorations[$]=""
`},this.getWordRange=function($,A){var O=this.getLine($),x=!1;if(A>0&&(x=!!O.charAt(A-1).match(this.tokenRe)),x||(x=!!O.charAt(A).match(this.tokenRe)),x)var M=this.tokenRe;else if(/^\s+$/.test(O.slice(A-1,A+1)))var M=/\s/;else var M=this.nonTokenRe;var L=A;if(L>0){do L--;while(L>=0&&O.charAt(L).match(M));L++}for(var R=A;R<O.length&&O.charAt(R).match(M);)R++;return new a($,L,$,R)},this.getAWordRange=function($,A){for(var O=this.getWordRange($,A),x=this.getLine(O.end.row);x.charAt(O.end.column).match(/[ \t]/);)O.end.column+=1;return O},this.setNewLineMode=function($){this.doc.setNewLineMode($)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function($){this.setOption("useWorker",$)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function($){var A=$.data;this.bgTokenizer.start(A.first),this._signal("tokenizerUpdate",$)},this.$modes=f.$modes,this.$mode=null,this.$modeId=null,this.setMode=function($,A){if($&&typeof $=="object"){if($.getTokenizer)return this.$onChangeMode($);var O=$,x=O.path}else x=$||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new o),this.$modes[x]&&!O){this.$onChangeMode(this.$modes[x]),A&&A();return}this.$modeId=x,f.loadModule(["mode",x],function(M){if(this.$modeId!==x)return A&&A();this.$modes[x]&&!O?this.$onChangeMode(this.$modes[x]):M&&M.Mode&&(M=new M.Mode(O),O||(this.$modes[x]=M,M.$id=x),this.$onChangeMode(M)),A&&A()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function($,A){if(A||(this.$modeId=$.$id),this.$mode!==$){var O=this.$mode;this.$mode=$,this.$stopWorker(),this.$useWorker&&this.$startWorker();var x=$.getTokenizer();if(x.on!==void 0){var M=this.onReloadTokenizer.bind(this);x.on("update",M)}this.bgTokenizer.setTokenizer(x),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=$.tokenRe,this.nonTokenRe=$.nonTokenRe,A||($.attachToSession&&$.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding($.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:O,mode:$}))}},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch($){f.warn("Could not load worker",$),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function($){this.$scrollTop===$||isNaN($)||(this.$scrollTop=$,this._signal("changeScrollTop",$))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function($){this.$scrollLeft===$||isNaN($)||(this.$scrollLeft=$,this._signal("changeScrollLeft",$))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var $=0;return this.lineWidgets.forEach(function(A){A&&A.screenWidth>$&&($=A.screenWidth)}),this.lineWidgetWidth=$},this.$computeWidth=function($){if(this.$modified||$){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var A=this.doc.getAllLines(),O=this.$rowLengthCache,x=0,M=0,L=this.$foldData[M],R=L?L.start.row:1/0,N=A.length,D=0;D<N;D++){if(D>R){if(D=L.end.row+1,D>=N)break;L=this.$foldData[M++],R=L?L.start.row:1/0}O[D]==null&&(O[D]=this.$getStringScreenWidth(A[D])[0]),O[D]>x&&(x=O[D])}this.screenWidth=x}},this.getLine=function($){return this.doc.getLine($)},this.getLines=function($,A){return this.doc.getLines($,A)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function($){return this.doc.getTextRange($||this.selection.getRange())},this.insert=function($,A){return this.doc.insert($,A)},this.remove=function($){return this.doc.remove($)},this.removeFullLines=function($,A){return this.doc.removeFullLines($,A)},this.undoChanges=function($,A){if(!!$.length){this.$fromUndo=!0;for(var O
^`).split(``),d=[],p=0;p<a.length;p++)try{d.push(new RegExp(a[p],o))}catch{return!1}return d},this.$matchIterator=function(s,o){var a=this.$assembleRegExp(o);if(!a)return!1;var d=o.backwards==!0,p=o.skipCurrent!=!1,g=o.range,v=o.start;v||(v=g?g[d?"end":"start"]:s.selection.getRange()),v.start&&(v=v[p!=d?"end":"start"]);var y=g?g.start.row:0,b=g?g.end.row:s.getLength()-1;if(d)var k=function(S){var E=v.row;if(!m(E,v.column,S)){for(E--;E>=y;E--)if(m(E,Number.MAX_VALUE,S))return;if(o.wrap!=!1){for(E=b,y=v.row;E>=y;E--)if(m(E,Number.MAX_VALUE,S))return}}};else var k=function(E){var C=v.row;if(!m(C,v.column,E)){for(C=C+1;C<=b;C++)if(m(C,0,E))return;if(o.wrap!=!1){for(C=y,b=v.row;C<=b;C++)if(m(C,0,E))return}}};if(o.$isMultiLine)var w=a.length,m=function(S,E,C){var _=d?S-w+1:S;if(!(_<0||_+w>s.getLength())){var $=s.getLine(_),A=$.search(a[0]);if(!(!d&&A<E||A===-1)){for(var O=1;O<w;O++)if($=s.getLine(_+O),$.search(a[O])==-1)return;var x=$.match(a[w-1])[0].length;if(!(d&&x>E)&&C(_,A,_+w-1,x))return!0}}};else if(d)var m=function(E,C,_){var $=s.getLine(E),A=[],O,x=0;for(a.lastIndex=0;O=a.exec($);){var M=O[0].length;if(x=O.index,!M){if(x>=$.length)break;a.lastIndex=x+=1}if(O.index+M>C)break;A.push(O.index,M)}for(var L=A.length-1;L>=0;L-=2){var R=A[L-1],M=A[L];if(_(E,R,E,R+M))return!0}};else var m=function(E,C,_){var $=s.getLine(E),A,O;for(a.lastIndex=C;O=a.exec($);){var x=O[0].length;if(A=O.index,_(E,A,E,A+x))return!0;if(!x&&(a.lastIndex=A+=1,A>=$.length))return!1}};return{forEach:k}}}).call(f.prototype);function h(s,o){function a(d){return/\w/.test(d)||o.regExp?"\\b":""}return a(s[0])+s+a(s[s.length-1])}r.Search=f}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,i){var l=n("../lib/keys"),c=n("../lib/useragent"),u=l.KEY_MODS;function f(s,o){this.platform=o||(c.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(s),this.$singleCommand=!0}function h(s,o){f.call(this,s,o),this.$singleCommand=!1}h.prototype=f.prototype,function(){this.addCommand=function(o){this.commands[o.name]&&this.removeCommand(o),this.commands[o.name]=o,o.bindKey&&this._buildKeyHash(o)},this.removeCommand=function(o,a){var d=o&&(typeof o=="string"?o:o.name);o=this.commands[d],a||delete this.commands[d];var p=this.commandKeyBinding;for(var g in p){var v=p[g];if(v==o)delete p[g];else if(Array.isArray(v)){var y=v.indexOf(o);y!=-1&&(v.splice(y,1),v.length==1&&(p[g]=v[0]))}}},this.bindKey=function(o,a,d){if(typeof o=="object"&&o&&(d==null&&(d=o.position),o=o[this.platform]),!!o){if(typeof a=="function")return this.addCommand({exec:a,bindKey:o,name:a.name||o});o.split("|").forEach(function(p){var g="";if(p.indexOf(" ")!=-1){var v=p.split(/\s+/);p=v.pop(),v.forEach(function(k){var w=this.parseKeys(k),m=u[w.hashId]+w.key;g+=(g?" ":"")+m,this._addCommandToBinding(g,"chainKeys")},this),g+=" "}var y=this.parseKeys(p),b=u[y.hashId]+y.key;this._addCommandToBinding(g+b,a,d)},this)}};function s(o){return typeof o=="object"&&o.bindKey&&o.bindKey.position||(o.isDefault?-100:0)}this._addCommandToBinding=function(o,a,d){var p=this.commandKeyBinding,g;if(!a)delete p[o];else if(!p[o]||this.$singleCommand)p[o]=a;else{Array.isArray(p[o])?(g=p[o].indexOf(a))!=-1&&p[o].splice(g,1):p[o]=[p[o]],typeof d!="number"&&(d=s(a));var v=p[o];for(g=0;g<v.length;g++){var y=v[g],b=s(y);if(b>d)break}v.splice(g,0,a)}},this.addCommands=function(o){o&&Object.keys(o).forEach(function(a){var d=o[a];if(!!d){if(typeof d=="string")return this.bindKey(d,a);typeof d=="function"&&(d={exec:d}),typeof d=="object"&&(d.name||(d.name=a),this.addCommand(d))}},this)},this.removeCommands=function(o){Object.keys(o).forEach(function(a){this.removeCommand(o[a])},this)},this.bindKeys=function(o){Object.keys(o).forEach(function(a){this.bindKey(a,o[a])},this)},this._buildKeyHash=function(o){this.bindKey(o.bindKey,o)},this.parseKeys=function(o){var a=o.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(b){return b}),d=a.pop(),p=l[d];if(l.FUNCTION_KEYS[p])d=l.FUNCTION_KEYS[p].toLowerCase();else if(a.length){if(a.length==1&&a[0]=="shift")retu
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(s){s.selection.clearSelection();var o=s.getCursorPosition();s.selection.moveTo(o.row-1,Number.MAX_VALUE),s.insert(``),o.row===0&&s.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",description:"Open command pallete",bindKey:f("F1","F1"),exec:function(s){s.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:f(null,null),exec:function(s){s.prompt({$type:"modes"})},readOnly:!0}];for(var h=1;h<9;h++)r.commands.push({name:"foldToLevel"+h,description:"Fold To Level "+h,level:h,exec:function(s){s.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/editor",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/clipboard"],function(n,r,i){n("./lib/fixoldbrowsers");var l=n("./lib/oop"),c=n("./lib/dom"),u=n("./lib/lang"),f=n("./lib/useragent"),h=n("./keyboard/textinput").TextInput,s=n("./mouse/mouse_handler").MouseHandler,o=n("./mouse/fold_handler").FoldHandler,a=n("./keyboard/keybinding").KeyBinding,d=n("./edit_session").EditSession,p=n("./search").Search,g=n("./range").Range,v=n("./lib/event_emitter").EventEmitter,y=n("./commands/command_manager").CommandManager,b=n("./commands/default_commands").commands,k=n("./config"),w=n("./token_iterator").TokenIterator,m=n("./clipboard"),S=function(C,_,$){this.$toDestroy=[];var A=C.getContainerElement();this.container=A,this.renderer=C,this.id="editor"+ ++S.$uid,this.commands=new y(f.isMac?"mac":"win",b),typeof document=="object"&&(this.textInput=new h(C.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new s(this),new o(this)),this.keyBinding=new a(this),this.$search=new p().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=u.delayedCall(function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",function(O,x){x._$emitInputEvent.schedule(31)}),this.setSession(_||$&&$.session||new d("")),k.resetOptions(this),$&&this.setOptions($),k._signal("editor",this)};S.$uid=0,function(){l.implement(this,v),this.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=u.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(C){if(this.curOp){if(!C||this.curOp.command)return;this.prevOp=this.curOp}C||(this.previousCommand=null,C={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:C.command||{},args:C.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},this.endOperation=function(C){if(this.curOp&&this.session){if(C&&C.returnValue===!1||!this.session)return this.curOp=null;if(C==!0&&this.curOp.command&&this.curOp.command.name=="mouse"||(this._signal("beforeEndOperation"),!this.curOp))return;var _=this.curOp.command,$=_&&_.scrollIntoView;if($){switch($){case"center-animate":$="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var A=this.selection.getRange(),O=this.renderer.layerConfig;(A.start.row>=O.lastRow||A.end.row<=O.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}$=="animate"&&this.renderer.animateScrolling(this.curOp.s
`)==-1){var M=new g.fromPoints(O,O);M.end.column+=C.length,this.session.remove(M)}}else{var M=this.getSelectionRange();O=this.session.remove(M),this.clearSelection()}if(C==``||C==`\r`){var D=$.getLine(O.row);if(O.column>D.search(/\S|$/)){var L=D.substr(O.column).search(/\S|$/);$.doc.removeInLine(O.row,O.column,O.column+L)}}this.clearSelection();var R=O.column,N=$.getState(O.row),D=$.getLine(O.row),P=A.checkOutdent(N,D,C);if($.insert(O,C),x&&x.selection&&(x.selection.length==2?this.selection.setSelectionRange(new g(O.row,R+x.selection[0],O.row,R+x.selection[1])):this.selection.setSelectionRange(new g(O.row+x.selection[0],x.selection[1],O.row+x.selection[2],x.selection[3]))),this.$enableAutoIndent){if($.getDocument().isNewLine(C)){var F=A.getNextLineIndent(N,D.slice(0,O.column),$.getTabString());$.insert({row:O.row+1,column:0},F)}P&&A.autoOutdent(N,$,O.row)}},this.autoIndent=function(){var C=this.session,_=C.getMode(),$,A;if(this.selection.isEmpty())$=0,A=C.doc.getLength()-1;else{var O=this.getSelectionRange();$=O.start.row,A=O.end.row}for(var x="",M="",L="",R,N,D,P=C.getTabString(),F=$;F<=A;F++)F>0&&(x=C.getState(F-1),M=C.getLine(F-1),L=_.getNextLineIndent(x,M,P)),R=C.getLine(F),N=_.$getIndent(R),L!==N&&(N.length>0&&(D=new g(F,0,F,N.length),C.remove(D)),L.length>0&&C.insert({row:F,column:0},L)),_.autoOutdent(x,C,F)},this.onTextInput=function(C,_){if(!_)return this.keyBinding.onTextInput(C);this.startOperation({command:{name:"insertstring"}});var $=this.applyComposition.bind(this,C,_);this.selection.rangeCount?this.forEachSelection($):$(),this.endOperation()},this.applyComposition=function(C,_){if(_.extendLeft||_.extendRight){var $=this.selection.getRange();$.start.column-=_.extendLeft,$.end.column+=_.extendRight,$.start.column<0&&($.start.row--,$.start.column+=this.session.getLine($.start.row).length+1),this.selection.setRange($),!C&&!$.isEmpty()&&this.remove()}if((C||!this.selection.isEmpty())&&this.insert(C,!0),_.restoreStart||_.restoreEnd){var $=this.selection.getRange();$.start.column-=_.restoreStart,$.end.column-=_.restoreEnd,this.selection.setRange($)}},this.onCommandKey=function(C,_,$){return this.keyBinding.onCommandKey(C,_,$)},this.setOverwrite=function(C){this.session.setOverwrite(C)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(C){this.setOption("scrollSpeed",C)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(C){this.setOption("dragDelay",C)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(C){this.setOption("selectionStyle",C)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(C){this.setOption("highlightActiveLine",C)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(C){this.setOption("highlightGutterLine",C)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(C){this.setOption("highlightSelectedWord",C)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(C){this.renderer.setAnimatedScroll(C)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(C){this.renderer.setShowInvisibles(C)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(C){this.renderer.setDisplayIndentGuides(C)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(C){this.renderer.setShowPrintMargin(C)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(C){this.renderer.setPrintMarginColumn(C)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(C){this.setOption("readOnly",C)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(C){this.setOption("behavioursEnabled",C)},this.getBehavioursEnabled=function(){return t
`){var M=$.getLine(_.end.row);/^\s+$/.test(M)&&(_.end.column=M.length)}}O&&(_=O)}this.session.remove(_),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var C=this.getSelectionRange();C.start.column==C.end.column&&C.start.row==C.end.row&&(C.end.column=0,C.end.row++),this.session.remove(C),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var C=this.getCursorPosition();this.insert(``),this.moveCursorToPosition(C)},this.transposeLetters=function(){if(!!this.selection.isEmpty()){var C=this.getCursorPosition(),_=C.column;if(_!==0){var $=this.session.getLine(C.row),A,O;_<$.length?(A=$.charAt(_)+$.charAt(_-1),O=new g(C.row,_-1,C.row,_+1)):(A=$.charAt(_-1)+$.charAt(_-2),O=new g(C.row,_-2,C.row,_)),this.session.replace(O,A),this.session.selection.moveToPosition(O.end)}}},this.toLowerCase=function(){var C=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var _=this.getSelectionRange(),$=this.session.getTextRange(_);this.session.replace(_,$.toLowerCase()),this.selection.setSelectionRange(C)},this.toUpperCase=function(){var C=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var _=this.getSelectionRange(),$=this.session.getTextRange(_);this.session.replace(_,$.toUpperCase()),this.selection.setSelectionRange(C)},this.indent=function(){var C=this.session,_=this.getSelectionRange();if(_.start.row<_.end.row){var $=this.$getSelectedRows();C.indentRows($.first,$.last," ");return}else if(_.start.column<_.end.column){var A=C.getTextRange(_);if(!/^\s+$/.test(A)){var $=this.$getSelectedRows();C.indentRows($.first,$.last," ");return}}var O=C.getLine(_.start.row),x=_.start,M=C.getTabSize(),L=C.documentToScreenColumn(x.row,x.column);if(this.session.getUseSoftTabs())var R=M-L%M,N=u.stringRepeat(" ",R);else{for(var R=L%M;O[_.start.column-1]==" "&&R;)_.start.column--,R--;this.selection.setSelectionRange(_),N=" "}return this.insert(N)},this.blockIndent=function(){var C=this.$getSelectedRows();this.session.indentRows(C.first,C.last," ")},this.blockOutdent=function(){var C=this.session.getSelection();this.session.outdentRows(C.getRange())},this.sortLines=function(){for(var C=this.$getSelectedRows(),_=this.session,$=[],A=C.first;A<=C.last;A++)$.push(_.getLine(A));$.sort(function(M,L){return M.toLowerCase()<L.toLowerCase()?-1:M.toLowerCase()>L.toLowerCase()?1:0});for(var O=new g(0,0,0,0),A=C.first;A<=C.last;A++){var x=_.getLine(A);O.start.row=A,O.end.row=A,O.end.column=x.length,_.replace(O,$[A-C.first])}},this.toggleCommentLines=function(){var C=this.session.getState(this.getCursorPosition().row),_=this.$getSelectedRows();this.session.getMode().toggleCommentLines(C,this.session,_.first,_.last)},this.toggleBlockComment=function(){var C=this.getCursorPosition(),_=this.session.getState(C.row),$=this.getSelectionRange();this.session.getMode().toggleBlockComment(_,this.session,$,C)},this.getNumberAt=function(C,_){var $=/[\-]?[0-9]+(?:\.[0-9]+)?/g;$.lastIndex=0;for(var A=this.session.getLine(C);$.lastIndex<_;){var O=$.exec(A);if(O.index<=_&&O.index+O[0].length>=_){var x={value:O[0],start:O.index,end:O.index+O[0].length};return x}}return null},this.modifyNumber=function(C){var _=this.selection.getCursor().row,$=this.selection.getCursor().column,A=new g(_,$-1,_,$),O=this.session.getTextRange(A);if(!isNaN(parseFloat(O))&&isFinite(O)){var x=this.getNumberAt(_,$);if(x){var M=x.value.indexOf(".")>=0?x.start+x.value.indexOf(".")+1:x.end,L=x.start+x.value.length-M,R=parseFloat(x.value);R*=Math.pow(10,L),M!==x.end&&$<M?C*=Math.pow(10,x.end-$-1):C*=Math.pow(10,x.end-$),R+=C,R/=Math.pow(10,L);var N=R.toFixed(L),D=new g(_,x.start,_,x.end);this.session.replace(D,N),this.moveCursorTo(_,Math.max(x.start+1,$+N.length-x.value.length))}}else this.toggleWord()},this.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],this.toggleWord=function(){var C=this.selection.getCursor().row,_=this.selection.getCursor().column;this.selection.selectWord();var $=this.getSelectedText(),A=this.selection.getWordRange().start.column,O=$.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),x=_-A-1;x<0&&(x=0);var M=0,L=0,R=this;$.match(/[A-Za-z0-9_]+/)&&O.forEach(functi
---`+o(this.$redoStack)}}).call(l.prototype);function c(m,S){for(var E=S;E--;){var C=m[E];if(C&&!C[0].ignore){for(;E<S-1;){var _=p(m[E],m[E+1]);m[E]=_[0],m[E+1]=_[1],E++}return!0}}}var u=n("./range").Range,f=u.comparePoints;u.comparePoints;function h(m){return{row:m.row,column:m.column}}function s(m){return{start:h(m.start),end:h(m.end),action:m.action,lines:m.lines.slice()}}function o(m){if(m=m||this,Array.isArray(m))return m.map(o).join(``);var S="";return m.action?(S=m.action=="insert"?"+":"-",S+="["+m.lines+"]"):m.value&&(Array.isArray(m.value)?S=m.value.map(a).join(``):S=a(m.value)),m.start&&(S+=a(m)),(m.id||m.rev)&&(S+=" ("+(m.id||m.rev)+")"),S}function a(m){return m.start.row+":"+m.start.column+"=>"+m.end.row+":"+m.end.column}function d(m,S){var E=m.action=="insert",C=S.action=="insert";if(E&&C)if(f(S.start,m.end)>=0)v(S,m,-1);else if(f(S.start,m.start)<=0)v(m,S,1);else return null;else if(E&&!C)if(f(S.start,m.end)>=0)v(S,m,-1);else if(f(S.end,m.start)<=0)v(m,S,-1);else return null;else if(!E&&C)if(f(S.start,m.start)>=0)v(S,m,1);else if(f(S.start,m.start)<=0)v(m,S,1);else return null;else if(!E&&!C)if(f(S.start,m.start)>=0)v(S,m,1);else if(f(S.end,m.start)<=0)v(m,S,-1);else return null;return[S,m]}function p(m,S){for(var E=m.length;E--;)for(var C=0;C<S.length;C++)if(!d(m[E],S[C])){for(;E<m.length;){for(;C--;)d(S[C],m[E]);C=S.length,E++}return[m,S]}return m.selectionBefore=S.selectionBefore=m.selectionAfter=S.selectionAfter=null,[S,m]}function g(m,S){var E=m.action=="insert",C=S.action=="insert";if(E&&C)f(m.start,S.start)<0?v(S,m,1):v(m,S,1);else if(E&&!C)f(m.start,S.end)>=0?v(m,S,-1):(f(m.start,S.start)<=0||v(m,u.fromPoints(S.start,m.start),-1),v(S,m,1));else if(!E&&C)f(S.start,m.end)>=0?v(S,m,-1):(f(S.start,m.start)<=0||v(S,u.fromPoints(m.start,S.start),-1),v(m,S,1));else if(!E&&!C)if(f(S.start,m.end)>=0)v(S,m,-1);else if(f(S.end,m.start)<=0)v(m,S,-1);else{var _,$;return f(m.start,S.start)<0&&(_=m,m=b(m,S.start)),f(m.end,S.end)>0&&($=b(m,S.end)),y(S.end,m.start,m.end,-1),$&&!_&&(m.lines=$.lines,m.start=$.start,m.end=$.end,$=m),[S,_,$].filter(Boolean)}return[S,m]}function v(m,S,E){y(m.start,S.start,S.end,E),y(m.end,S.start,S.end,E)}function y(m,S,E,C){m.row==(C==1?S:E).row&&(m.column+=C*(E.column-S.column)),m.row+=C*(E.row-S.row)}function b(m,S){var E=m.lines,C=m.end;m.end=h(S);var _=m.end.row-m.start.row,$=E.splice(_,E.length),A=_?S.column:S.column-m.start.column;E.push($[0].substring(0,A)),$[0]=$[0].substr(A);var O={start:h(S),end:C,lines:$,action:m.action};return O}function k(m,S){S=s(S);for(var E=m.length;E--;){for(var C=m[E],_=0;_<C.length;_++){var $=C[_],A=g($,S);S=A[0],A.length!=2&&(A[2]?(C.splice(_+1,1,A[1],A[2]),_++):A[1]||(C.splice(_,1),_--))}C.length||m.splice(E,1)}return m}function w(m,S){for(var E=0;E<S.length;E++)for(var C=S[E],_=0;_<C.length;_++)k(m,C[_])}r.UndoManager=l}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,r,i){var l=n("../lib/dom"),c=function(u,f){this.element=u,this.canvasHeight=f||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0};(function(){this.moveContainer=function(u){l.translate(this.element,0,-(u.firstRowScreen*u.lineHeight%this.canvasHeight)-u.offset*this.$offsetCoefficient)},this.pageChanged=function(u,f){return Math.floor(u.firstRowScreen*u.lineHeight/this.canvasHeight)!==Math.floor(f.firstRowScreen*f.lineHeight/this.canvasHeight)},this.computeLineTop=function(u,f,h){var s=f.firstRowScreen*f.lineHeight,o=Math.floor(s/this.canvasHeight),a=h.documentToScreenRow(u,0)*f.lineHeight;return a-o*this.canvasHeight},this.computeLineHeight=function(u,f,h){return f.lineHeight*h.getRowLineCount(u)},this.getLength=function(){return this.cells.length},this.get=function(u){return this.cells[u]},this.shift=function(){this.$cacheCell(this.cells.shift())},this.pop=function(){this.$cacheCell(this.cells.pop())},this.push=function(u){if(Array.isArray(u)){this.cells.push.apply(this.cells,u);for(var f=l.createFragment(this.element),h=0;h<u.length;h++)f.appendChild(u[h].element);this.element.appendChild(f)}else this.cells.push(u),this.element.appendChild(u.element)},this.unshift=function(u){if(Array.isArray(u)){this.cells.unshift.apply(this.cells,u);for(var f=l.createFragment(this.element),h=0;h<u.length;h++)f.appendChild(u[h].element);this.element.firstChild?this.element.insertBefore(f,this.element.firstChild):this.element.appendChild(f)}else this.cells.unshift(u),this.element.insertAdjacentElement("afterbegin",u.element)},this.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},this.$cacheCell=function(u){!u||(u.element.remove(),this.ce
`&&o.getNewLineMode()!="windows",d=a?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=d)return this.EOL_CHAR=d,!0},this.setPadding=function(o){this.$padding=o,this.element.style.margin="0 "+o+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(o){this.$fontMetrics=o,this.$fontMetrics.on("changeCharacterSize",function(a){this._signal("changeCharacterSize",a)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(o){this.session=o,o&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(o){return this.showInvisibles==o?!1:(this.showInvisibles=o,typeof o=="string"?(this.showSpaces=/tab/i.test(o),this.showTabs=/space/i.test(o),this.showEOL=/eol/i.test(o)):this.showSpaces=this.showTabs=this.showEOL=o,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(o){return this.displayIndentGuides==o?!1:(this.displayIndentGuides=o,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var o=this.session.getTabSize();this.tabSize=o;for(var a=this.$tabStrings=[0],d=1;d<o+1;d++)if(this.showTabs){var p=this.dom.createElement("span");p.className="ace_invisible ace_invisible_tab",p.textContent=u.stringRepeat(this.TAB_CHAR,d),a.push(p)}else a.push(this.dom.createTextNode(u.stringRepeat(" ",d),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var g="ace_indent-guide",v=this.showSpaces?" ace_invisible ace_invisible_space":"",y=this.showSpaces?u.stringRepeat(this.SPACE_CHAR,this.tabSize):u.stringRepeat(" ",this.tabSize),b=this.showTabs?" ace_invisible ace_invisible_tab":"",k=this.showTabs?u.stringRepeat(this.TAB_CHAR,this.tabSize):y,p=this.dom.createElement("span");p.className=g+v,p.textContent=y,this.$tabStrings[" "]=p;var p=this.dom.createElement("span");p.className=g+b,p.textContent=k,this.$tabStrings[" "]=p}},this.updateLines=function(o,a,d){if(this.config.lastRow!=o.lastRow||this.config.firstRow!=o.firstRow)return this.update(o);this.config=o;for(var p=Math.max(a,o.firstRow),g=Math.min(d,o.lastRow),v=this.element.childNodes,y=0,k=o.firstRow;k<p;k++){var w=this.session.getFoldLine(k);if(w)if(w.containsRow(p)){p=w.start.row;break}else k=w.end.row;y++}for(var b=!1,k=p,w=this.session.getNextFoldLine(k),m=w?w.start.row:1/0;k>m&&(k=w.end.row+1,w=this.session.getNextFoldLine(k,w),m=w?w.start.row:1/0),!(k>g);){var S=v[y++];if(S){this.dom.removeChildren(S),this.$renderLine(S,k,k==m?w:!1),b&&(S.style.top=this.$lines.computeLineTop(k,o,this.session)+"px");var E=o.lineHeight*this.session.getRowLength(k)+"px";S.style.height!=E&&(b=!0,S.style.height=E)}k++}if(b)for(;y<this.$lines.cells.length;){var C=this.$lines.cells[y++];C.element.style.top=this.$lines.computeLineTop(C.row,o,this.session)+"px"}},this.scrollLines=function(o){var a=this.config;if(this.config=o,this.$lines.pageChanged(a,o))return this.update(o);this.$lines.moveContainer(o);var d=o.lastRow,p=a?a.lastRow:-1;if(!a||p<o.firstRow)return this.update(o);if(d<a.firstRow)return this.update(o);if(!a||a.lastRow<o.firstRow)return this.update(o);if(o.lastRow<a.firstRow)return this.update(o);if(a.firstRow<o.firstRow)for(var g=this.session.getFoldedRowCount(a.firstRow,o.firstRow-1);g>0;g--)this.$lines.shift();if(a.lastRow>o.lastRow)for(var g=this.session.getFoldedRowCount(o.lastRow+1,a.lastRow);g>0;g--)this.$lines.pop();o.firstRow<a.firstRow&&this.$lines.unshift(this.$renderLinesFragment(o,o.firstRow,a.firstRow-1)),o.lastRow>a.lastRow&&this.$lines.push(this.$renderLinesFragment(o,a.lastRow+1,o.lastRow))},this.$renderLinesFragment=function(o,a,d){for(var p=[],g=a,v=this.session.getNextFoldLine(g),y=v?v.start.row:1/0;g>y&&(g=v.end.row+1,v=this.session.getNextFoldLine(
`)+``),O||(_.start.column=0,_.end.column=L[L.length-1].length),this.selection.setRange(_)}else{C.forEach(function(P){m.substractPoint(P.cursor)});var R=0,N=1/0,D=S.map(function(P){var F=P.cursor,I=w.getLine(F.row),H=I.substr(F.column).search(/\S/g);return H==-1&&(H=0),F.column>R&&(R=F.column),H<N&&(N=H),H});S.forEach(function(P,F){var I=P.cursor,H=R-I.column,B=D[F]-N;H>B?w.insert(I,s.stringRepeat(" ",H-B)):w.remove(new c(I.row,I.column,I.row,I.column-H+B)),P.start.column=P.end.column=R,P.start.row=P.end.row=I.row,P.cursor=P.end}),m.fromOrientedRange(S[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(w,m){var S=!0,E=!0,C,_,$;return w.map(function(L){var R=L.match(/(\s*)(.*?)(\s*)([=:].*)/);return R?C==null?(C=R[1].length,_=R[2].length,$=R[3].length,R):(C+_+$!=R[1].length+R[2].length+R[3].length&&(E=!1),C!=R[1].length&&(S=!1),C>R[1].length&&(C=R[1].length),_<R[2].length&&(_=R[2].length),$>R[3].length&&($=R[3].length),R):[L]}).map(m?O:S?E?x:O:M);function A(L){return s.stringRepeat(" ",L)}function O(L){return L[2]?A(C)+L[2]+A(_-L[2].length+$)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function x(L){return L[2]?A(C+_-L[2].length)+L[2]+A($)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function M(L){return L[2]?A(C)+L[2]+A($)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}}}).call(v.prototype);function y(w,m){return w.row==m.row&&w.column==m.column}r.onSessionChange=function(w){var m=w.session;m&&!m.multiSelect&&(m.$selectionMarkers=[],m.selection.$initRangeList(),m.multiSelect=m.selection),this.multiSelect=m&&m.multiSelect;var S=w.oldSession;S&&(S.multiSelect.off("addRange",this.$onAddRange),S.multiSelect.off("removeRange",this.$onRemoveRange),S.multiSelect.off("multiSelect",this.$onMultiSelect),S.multiSelect.off("singleSelect",this.$onSingleSelect),S.multiSelect.lead.off("change",this.$checkMultiselectChange),S.multiSelect.anchor.off("change",this.$checkMultiselectChange)),m&&(m.multiSelect.on("addRange",this.$onAddRange),m.multiSelect.on("removeRange",this.$onRemoveRange),m.multiSelect.on("multiSelect",this.$onMultiSelect),m.multiSelect.on("singleSelect",this.$onSingleSelect),m.multiSelect.lead.on("change",this.$checkMultiselectChange),m.multiSelect.anchor.on("change",this.$checkMultiselectChange)),m&&this.inMultiSelectMode!=m.selection.inMultiSelectMode&&(m.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function b(w){w.$multiselectOnSessionChange||(w.$onAddRange=w.$onAddRange.bind(w),w.$onRemoveRange=w.$onRemoveRange.bind(w),w.$onMultiSelect=w.$onMultiSelect.bind(w),w.$onSingleSelect=w.$onSingleSelect.bind(w),w.$multiselectOnSessionChange=r.onSessionChange.bind(w),w.$checkMultiselectChange=w.$checkMultiselectChange.bind(w),w.$multiselectOnSessionChange(w),w.on("changeSession",w.$multiselectOnSessionChange),w.on("mousedown",f),w.commands.addCommands(o.defaultCommands),k(w))}function k(w){if(!w.textInput)return;var m=w.textInput.getElement(),S=!1;h.addListener(m,"keydown",function(C){var _=C.keyCode==18&&!(C.ctrlKey||C.shiftKey||C.metaKey);w.$blockSelectEnabled&&_?S||(w.renderer.setMouseCursor("crosshair"),S=!0):S&&E()},w),h.addListener(m,"keyup",E,w),h.addListener(m,"blur",E,w);function E(C){S&&(w.renderer.setMouseCursor(""),S=!1)}}r.MultiSelect=b,n("./config").defineOptions(v.prototype,"editor",{enableMultiselect:{set:function(w){b(this),w?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",f)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",f))},value:!0},enableBlockSelect:{set:function(w){this.$blockSelectEnabled=w},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,r,i){var l=n("../../range").Range,c=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(u,f,h){var s=u.getLine(h);return this.foldingStartMarker.test(s)?"start":f=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(s)?"end":""},this.getFoldWidgetRange=function(u,f,h){return null},this.indentationBlock=function(
`+E+"$1"):C},CURRENT_LINE:function(m){return m.session.getLine(m.getCursorPosition().row)},PREV_LINE:function(m){return m.session.getLine(m.getCursorPosition().row-1)},LINE_INDEX:function(m){return m.getCursorPosition().row},LINE_NUMBER:function(m){return m.getCursorPosition().row+1},SOFT_TABS:function(m){return m.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(m){return m.session.getTabSize()},CLIPBOARD:function(m){return p.getText&&p.getText()},FILENAME:function(m){return/[^/\\]*$/.exec(this.FILEPATH(m))[0]},FILENAME_BASE:function(m){return/[^/\\]*$/.exec(this.FILEPATH(m))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(m){return this.FILEPATH(m).replace(/[^/\\]*$/,"")},FILEPATH:function(m){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(m){var S=m.session.$mode||{};return S.blockComment&&S.blockComment.start||""},BLOCK_COMMENT_END:function(m){var S=m.session.$mode||{};return S.blockComment&&S.blockComment.end||""},LINE_COMMENT:function(m){var S=m.session.$mode||{};return S.lineCommentStart||""},CURRENT_YEAR:l.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:l.bind(null,{year:"2-digit"}),CURRENT_MONTH:l.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:l.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:l.bind(null,{month:"short"}),CURRENT_DATE:l.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:l.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:l.bind(null,{weekday:"short"}),CURRENT_HOUR:l.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:l.bind(null,{minute:"2-digit"}),CURRENT_SECOND:l.bind(null,{second:"2-digit"})};g.SELECTED_TEXT=g.SELECTION;var v=function(){this.snippetMap={},this.snippetNameMap={}};(function(){u.implement(this,f),this.getTokenizer=function(){return v.$tokenizer||this.createTokenizer()},this.createTokenizer=function(){function m(C){return C=C.substr(1),/^\d+$/.test(C)?[{tabstopId:parseInt(C,10)}]:[{text:C}]}function S(C){return"(?:[^\\\\"+C+"]|\\\\.)"}var E={regex:"/("+S("/")+"+)/",onMatch:function(C,_,$){var A=$[0];return A.fmtString=!0,A.guard=C.slice(1,-1),A.flag="",""},next:"formatString"};return v.$tokenizer=new d({start:[{regex:/\\./,onMatch:function(C,_,$){var A=C[1];return(A=="}"&&$.length||"`$\\".indexOf(A)!=-1)&&(C=A),[C]}},{regex:/}/,onMatch:function(C,_,$){return[$.length?$.shift():C]}},{regex:/\$(?:\d+|\w+)/,onMatch:m},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(C,_,$){var A=m(C.substr(1));return $.unshift(A[0]),A},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+S("\\|")+"*\\|",onMatch:function(C,_,$){var A=C.slice(1,-1).replace(/\\[,|\\]|,/g,function(O){return O.length==2?O[1]:"\0"}).split("\0").map(function(O){return{value:O}});return $[0].choices=A,[A[0]]},next:"start"},E,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(C,_,$){return $.length&&$[0].expectElse?($[0].expectElse=!1,$[0].ifEnd={elseEnd:$[0]},[$[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(C,_,$){var A=C[1];return A=="}"&&$.length||"`$\\".indexOf(A)!=-1?C=A:A=="n"?C=``:A=="t"?C=" ":"ulULE".indexOf(A)!=-1&&(C={changeCase:A,local:A>"a"}),[C]}},{regex:"/\\w*}",onMatch:function(C,_,$){var A=$.shift();return A&&(A.flag=C.slice(1,-1)),this.next=A&&A.tabstopId?"start":"",[A||C]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(C,_,$){return[{text:C.slice(1)}]}},{regex:/\${\w+/,onMatch:function(C,_,$){var A={text:C.slice(2)};return $.unshift(A),[A]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(C,_,$){var A=$.shift();return this.next=A&&A.tabstopId?"start":"",[A||C]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(C,_,$){var A=$[0];return A.formatFunction=C.slice(2,-1),[$.shift()]},next:"formatString"},E,{regex:/:[\?\-+]?/,onMatch:function(C,_,$){C[1]=="+"&&($[0].ifEnd=$[0]),C[1]=="?"&&($[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),v.$tokenizer},this.tokenizeTmSnippet=function(m,S){return this.getTokenizer().getLineTokens(m,S).tokens.map(function(E){return E.value||E})},this.getVariableValue=function(m,S,E){if(/^\d+$/.test(S))return(this.variables.__||{})[S]||"";if(/^[A-Z]\d+$/.test(S))return(this.variables[S[0]+"__"]||{})[S.substr(1)]||"";if(S=S.replace(/^TM_/,""),!this.variables.hasOwnProperty(S))return"";var C=this.variables[S];return typeof C=="function"&&(C=this.variables[S](m,S,E)),C==null?"":C},this.variables=g,this.tmStrFormat=function(m,S,E){if(!S.fmt)return m;var C=S.flag||"",_=S.guard;_=new RegExp(_,C.replace(/[^gim]/g,""));var $=typeof S.fmt=="string"?this.tokenizeTmSnippet(S.fmt,"formatString"):S.fmt,A=this,O=m.replace(_,function(){var x=A.variables.__;A.variables.__=[].slice.call(arguments);for(var M=A.resolveVariables($,E),L="E",R=0;R<M.length;R++){var N=M[R];if(typeof N=="object")if(M[R]="",N.changeCase&&N.local){var D=M[R+1];D&&typeof D=="string"&&(N.changeCase=="u"?M[R]=D[0].toUpperCase():M[R]=D[0].toLowerCase(),M[R+1]=D.substr(1))}else N.changeCase&&(L=N.changeCase);else L=="U"?M[R]=N.toUpperCase():L=="L"&&(M[R]=N.toLowerCase())}return A.variables.__=x,M.join("")});return O},this.tmFormatFunction=function(m,S,E){return S.formatFunction=="upcase"?m.toUpperCase():S.formatFunction=="downcase"?m.toLowerCase():m},this.resolveVariables=function(m,S){function E(L){var R=m.indexOf(L,A+1);R!=-1&&(A=R)}for(var C=[],_="",$=!0,A=0;A<m.length;A++){var O=m[A];if(typeof O=="string"){C.push(O),O==``?($=!0,_=""):$&&(_=/^\t*/.exec(O)[0],$=/\S/.test(O));continue}if(!!O){if($=!1,O.fmtString){var x=m.indexOf(O,A+1);x==-1&&(x=m.length),O.fmt=m.slice(A+1,x),A=x}if(O.text){var M=this.getVariableValue(S,O.text,_)+"";O.fmtString&&(M=this.tmStrFormat(M,O,S)),O.formatFunction&&(M=this.tmFormatFunction(M,O,S)),M&&!O.ifEnd?(C.push(M),E(O)):!M&&O.ifEnd&&E(O.ifEnd)}else O.elseEnd?E(O.elseEnd):(O.tabstopId!=null||O.changeCase!=null)&&C.push(O)}}return C},this.insertSnippetForSelection=function(m,S){function E(Q){for(var ee=[],se=0;se<Q.length;se++){var ye=Q[se];if(typeof ye=="object"){if(M[ye.tabstopId])continue;var Ae=Q.lastIndexOf(ye,se-1);ye=ee[Ae]||{tabstopId:ye.tabstopId}}ee[se]=ye}return ee}var C=m.getCursorPosition(),_=m.session.getLine(C.row),$=m.session.getTabString(),A=_.match(/^\s*/)[0];C.column<A.length&&(A=A.slice(0,C.column)),S=S.replace(/\r/g,"");var O=this.tokenizeTmSnippet(S);O=this.resolveVariables(O,m),O=O.map(function(Q){return Q==``?Q+A:typeof Q=="string"?Q.replace(/\t/g,$):Q});var x=[];O.forEach(function(Q,ee){if(typeof Q=="object"){var se=Q.tabstopId,ye=x[se];if(ye||(ye=x[se]=[],ye.index=se,ye.value="",ye.parents={}),ye.indexOf(Q)===-1){Q.choices&&!ye.choices&&(ye.choices=Q.choices),ye.push(Q);var Ae=O.indexOf(Q,ee+1);if(Ae!==-1){var J=O.slice(ee+1,Ae),ae=J.some(function(fe){return typeof fe=="object"});ae&&!ye.value?ye.value=J:J.length&&(!ye.value||typeof ye.value!="string")&&(ye.value=J.join(""))}}}}),x.forEach(function(Q){Q.length=0});for(var M={},L=0;L<O.length;L++){var R=O[L];if(typeof R=="object"){var N=R.tabstopId,D=x[N],P=O.indexOf(R,L+1);if(M[N]){M[N]===R&&(delete M[N],Object.keys(M).forEach(function(Q){D.parents[Q]=!0}));continue}M[N]=R;var F=D.value;typeof F!="string"?F=E(F):R.fmt&&(F=this.tmStrFormat(F,R,m)),O.splice.apply(O,[L+1,Math.max(0,P-L)].concat(F,R)),D.indexOf(R)===-1&&D.push(R)}}var I=0,H=0,B="";O.forEach(function(Q){if(typeof Q=="string"){var ee=Q.split(``);ee.length>1?(H=ee[ee.length-1].length,I+=ee.length-1):H+=Q.length,B+=Q}else Q&&(Q.start?Q.end={row:I,column:H}:Q.start={row:I,column:H})});var j=m.getSelectionRange(),q=m.session.replace(j,B),W=new y(m),U=m.inVirtualSelectionMode&&m.selection.index;W.addTabstops(x,j.start,q,U)},this.insertSnippet=function(m,S){var E=this;if(m.inVirtualSelectionMode)return E.insertSnippetForSelection(m,S);m.forEachSelection(function(){E.insertSnippetForSelection(m,S)},null,{keepOrder:!0}),m.tabstopManager&&m.tabstopManager.tabNext()},this.$getScope=function(m){var S=m.session.$mode.$id||"";if(S=S.split("/").pop(),S==="html"||S==="php"){S==="php"&&!m.session.$mode.inlinePhp&&(S="html");var E=m.getCursorPosition(),C=m.session.getState(E.row);typeof C=="object"&&(C=C[0]),C.substring&&(C.substring(0,3)=="js-"?S="javascript":C.substring(0,4)=="css-"?S="css":C.substring(0,4)=="php-"&&(S="php"))}return S},this.getActiveScopes=function(m){var S=this.$getScope(m),E=[S],C=this.snippetMap;return C[S]&&C[S].includeScopes&&E.push.apply(E,C[S].includeScopes),E.push("_"),E},this.expandWithTab=function(m,S){var E=this,C=m.forEachSelection(function(){return E.expandSnippetForSelection(m,S)},null,{keepOrder:!0});return C&&m.tabstopManager&&m.tabstopManager.tabNext(),C},this.expandSnippetForSelection=function(m,S){var E=m.getCursorPosition(),C=m.session.getLine(E.row),_=C.substring(0,E.column),$=C.substr(E.column),A=this.snippetMap,O;return this.getActiveScopes(m).some(function(x){var M=A[x];return M&&(O=this.findMatchingSnippet(M,_,$)),!!O},this),O?(S&&S.dryRun||(m.session.doc.removeInLine(E.row,E.column-O.replaceBefore.length,E.column+O.replaceAfter.length),this.variables.M__=O.matchBefore,this.variables.T__=O.matchAfter,this.insertSnippetForSelection(m,O.content),this.variables.M__=this.variables.T__=null),!0):!1},this.findMatchingSnippet=function(m,S,E){for(var C=m.length;C--;){var _=m[C];if(!(_.startRe&&!_.startRe.test(S))&&!(_.endRe&&!_.endRe.test(E))&&!(!_.startRe&&!_.endRe))return _.matchBefore=_.startRe?_.startRe.exec(S):[""],_.matchAfter=_.endRe?_.endRe.exec(E):[""],_.replaceBefore=_.triggerRe?_.triggerRe.exec(S)[0]:"",_.replaceAfter=_.endTriggerRe?_.endTriggerRe.exec(E)[0]:"",_}},this.snippetMap={},this.snippetNameMap={},this.register=function(m,S){function E(x){return x&&!/^\^?\(.*\)\$?$|^\\b$/.test(x)&&(x="(?:"+x+")"),x||""}function C(x,M,L){return x=E(x),M=E(M),L?(x=M+x,x&&x[x.length-1]!="$"&&(x+="$")):(x+=M,x&&x[0]!="^"&&(x="^"+x)),new RegExp(x)}function _(x){x.scope||(x.scope=S||"_"),S=x.scope,$[S]||($[S]=[],A[S]={});var M=A[S];if(x.name){var L=M[x.name];L&&O.unregister(L),M[x.name]=x}$[S].push(x),x.prefix&&(x.tabTrigger=x.prefix),!x.content&&x.body&&(x.content=Array.isArray(x.body)?x.body.join(``):x.body),x.tabTrigger&&!x.trigger&&(!x.guard&&/^\w/.test(x.tabTrigger)&&(x.guard="\\b"),x.trigger=h.escapeRegExp(x.tabTrigger)),!(!x.trigger&&!x.guard&&!x.endTrigger&&!x.endGuard)&&(x.startRe=C(x.trigger,x.guard,!0),x.triggerRe=new RegExp(x.trigger),x.endRe=C(x.endTrigger,x.endGuard,!0),x.endTriggerRe=new RegExp(x.endTrigger))}var $=this.snippetMap,A=this.snippetNameMap,O=this;m||(m=[]),Array.isArray(m)?m.forEach(_):Object.keys(m).forEach(function(x){_(m[x])}),this._signal("registerSnippets",{scope:S})},this.unregister=function(m,S){function E($){var A=_[$.scope||S];if(A&&A[$.name]){delete A[$.name];var O=C[$.scope||S],x=O&&O.indexOf($);x>=0&&O.splice(x,1)}}var C=this.snippetMap,_=this.snippetNameMap;m.content?E(m):Array.isArray(m)&&m.forEach(E)},this.parseSnippetFile=function(m){m=m.replace(/\r/g,"");for(var S=[],E={},C=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,_;_=C.exec(m);){if(_[1])try{E=JSON.parse(_[1]),S.push(E)}catch{}if(_[4])E.content=_[4].replace(/^\t/gm,""),S.push(E),E={};else{var $=_[2],A=_[3];if($=="regex"){var O=/\/((?:[^\/\\]|\\.)*)|$/g;E.guard=O.exec(A)[1],E.trigger=O.exec(A)[1],E.endTrigger=O.exec(A)[1],E.endGuard=O.exec(A)[1]}else $=="snippet"?(E.tabTrigger=A.match(/^\S*/)[0],E.name||(E.name=A)):$&&(E[$]=A)}}return S},this.getSnippetByName=function(m,S){var E=this.snippetNameMap,C;return this.getActiveScopes(S).some(function(_){var $=E[_];return $&&(C=$[m]),!!C},this),C}}).call(v.prototype);var y=function(m){if(m.tabstopManager)return m.tabstopManager;m.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=h.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(m)};(function(){this.attach=function(m){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=m,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)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(m){for(var S=m.action[0]=="r",E=this.selectedTabstop||{},C=E.parents||{},_=(this.tabstops||[]).slice(),$=0;$<_.length;$++){var A=_[$],O=A==E||C[A.index];if(A.rangeList.$bias=O?0:1,m.action=="remove"&&A!==E){var x=A.parents&&A.parents[E.index],M=A.rangeList.pointIndex(m.start,x);M=M<0?-M-1:M+1;var L=A.rangeList.pointIndex(m.end,x);L=L<0?-L-1:L-1;for(var R=A.rangeList.ranges.slice(M,L),N=0;N<R.length;N++)this.removeRange(R[N])}A.rangeList.$onChange(m)}var D=this.editor.session;!this.$inChange&&S&&D.getLength()==1&&!D.getValue()&&this.detach()},this.updateLinkedFields=function(){var m=this.selectedTabstop;if(!(!m||!m.hasLinkedRanges||!m.firstNonLinked)){this.$inChange=!0;for(var S=this.editor.session,E=S.getTextRange(m.firstNonLinked),C=0;C<m.length;C++){var _=m[C];if(!!_.linked){var $=_.original,A=r.snippetManager.tmStrFormat(E,$,this.editor);S.replace(_,A)}}this.$inChange=!1}},this.onAfterExec=function(m){m.command&&!m.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(!!this.editor){for(var m=this.editor.selection.lead,S=this.editor.selection.anchor,E=this.editor.selection.isEmpty(),C=0;C<this.ranges.length;C++)if(!this.ranges[C].linked){var _=this.ranges[C].contains(m.row,m.column),$=E||this.ranges[C].contains(S.row,S.column);if(_&&$)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=functio
`,E.length),-1),g.data=E||[],g.setRow(0)},g.getData=function(E){return g.data[E]},g.getRow=function(){return k.start.row},g.setRow=function(E){E=Math.max(this.autoSelect?0:-1,Math.min(this.data.length,E)),k.start.row!=E&&(g.selection.clearSelection(),k.start.row=k.end.row=E||0,g.session._emit("changeBackMarker"),g.moveCursorTo(E||0,0),g.isOpen&&g._signal("select"))},g.on("changeSelection",function(){g.isOpen&&g.setRow(g.selection.lead.row),g.renderer.scrollCursorIntoView()}),g.hide=function(){this.container.style.display="none",this._signal("hide"),g.isOpen=!1},g.show=function(E,C,_){var $=this.container,A=window.innerHeight,O=window.innerWidth,x=this.renderer,M=x.$maxLines*C*1.4,L=E.top+this.$borderSize,R=L>A/2&&!_;R&&L+C+M>A?(x.$maxPixelHeight=L-2*this.$borderSize,$.style.top="",$.style.bottom=A-L+"px",g.isTopdown=!1):(L+=C,x.$maxPixelHeight=A-L-.2*C,$.style.top=L+"px",$.style.bottom="",g.isTopdown=!0),$.style.display="";var N=E.left;N+$.offsetWidth>O&&(N=O-$.offsetWidth),$.style.left=N+"px",this._signal("show"),y=null,g.isOpen=!0},g.goTo=function(E){var C=this.getRow(),_=this.session.getLength()-1;switch(E){case"up":C=C<=0?_:C-1;break;case"down":C=C>=_?-1:C+1;break;case"start":C=0;break;case"end":C=_}this.setRow(C)},g.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},g.$imageSize=0,g.$borderSize=1,g};s.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: 0.9em;}.ace_completion-message { 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;}","autocompletion.css",!1),r.AcePopup=a,r.$singleLineEditor=o}),ace.define("ace/autocomplete/util",["require","exports","module"],function(n,r,i){r.parForEach=function(c,u,f){var h=0,s=c.length;s===0&&f();for(var o=0;o<s;o++)u(c[o],function(a,d){h++,h===s&&f(a,d)})};var l=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;r.retrievePrecedingIdentifier=function(c,u,f){f=f||l;for(var h=[],s=u-1;s>=0&&f.test(c[s]);s--)h.push(c[s]);return h.reverse().join("")},r.retrieveFollowingIdentifier=function(c,u,f){f=f||l;for(var h=[],s=u;s<c.length&&f.test(c[s]);s++)h.push(c[s]);return h},r.getCompletionPrefix=function(c){var u=c.getCursorPosition(),f=c.session.getLine(u.row),h;return c.completers.forEach(function(s){s.identifierRegexps&&s.identifierRegexps.forEach(function(o){!h&&o&&(h=this.retrievePrecedingIdentifier(f,u.column,o))}.bind(this))}.bind(this)),h||this.retrievePrecedingIdentifier(f,u.column)}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config"],function(n,r,i){var l=n("./keyboard/hash_handler").HashHandler,c=n("./autocomplete/popup").AcePopup,u=n("./autocomplete/util"),f=n("./lib/lang"),h=n("./lib/dom"),s=n("./snippets").snippetManager,o=n("./config"),a=function(){this.autoInsert=!1,this.autoSelect=!0,this.exactMatch=!1,this.gatherCompletionsId=0,this.keyboardHandler=new l,this.keyboardHandler.bindKeys(this.commands),this.blurListener=this.blurListe
height:0 !important; visibility:hidden !important; overflow:hidden !important; position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important;`,KD=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function jD(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),i=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:KD.map(c=>`${c}:${t.getPropertyValue(c)}`).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function v1(e,t=1,n){var r;Pr||(Pr=document.createElement("textarea"),document.body.appendChild(Pr));const{paddingSize:i,borderSize:l,boxSizing:c,contextStyle:u}=jD(e);Pr.setAttribute("style",`${u};${WD}`),Pr.value=e.value||e.placeholder||"";let f=Pr.scrollHeight;const h={};c==="border-box"?f=f+l:c==="content-box"&&(f=f-i),Pr.value="";const s=Pr.scrollHeight-i;if(rt(t)){let o=s*t;c==="border-box"&&(o=o+i+l),f=Math.max(o,f),h.minHeight=`${o}px`}if(rt(n)){let o=s*n;c==="border-box"&&(o=o+i+l),f=Math.min(o,f)}return h.height=`${f}px`,(r=Pr.parentNode)==null||r.removeChild(Pr),Pr=void 0,h}const UD=Ie({id:{type:String,default:void 0},size:ti,disabled:Boolean,modelValue:{type:we([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:we([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String,default:""},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:hn,default:""},prefixIcon:{type:hn,default:""},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:we([Object,Array,String]),default:()=>Kt({})}}),qD={[ut]:e=>et(e),input:e=>et(e),change:e=>et(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},GD=["role"],YD=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder"],XD=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder"],ZD={name:"ElInput",inheritAttrs:!1},JD=ke(Oe(me({},ZD),{props:UD,emits:qD,setup(e,{expose:t,emit:n}){const r=e,i={suffix:"append",prefix:"prepend"},l=ot(),c=As(),u=tr(),f=z(()=>{const le={};return r.containerRole==="combobox"&&(le["aria-haspopup"]=c["aria-haspopup"],le["aria-owns"]=c["aria-owns"],le["aria-expanded"]=c["aria-expanded"]),le}),h=Ch({excludeKeys:z(()=>Object.keys(f.value))}),{form:s,formItem:o}=Bs(),{inputId:a}=Qi(r,{formItemContext:o}),d=rn(),p=Ko(),g=Te("input"),v=Te("textarea"),y=Ft(),b=Ft(),k=G(!1),w=G(!1),m=G(!1),S=G(!1),E=G(),C=Ft(r.inputStyle),_=z(()=>y.value||b.value),$=z(()=>{var le;return(le=s==null?void 0:s.statusIcon)!=null?le:!1}),A=z(()=>(o==null?void 0:o.validateState)||""),O=z(()=>_0[A.value]),x=z(()=>S.value?eP:sI),M=z(()=>[c.style,r.inputStyle]),L=z(()=>[r.inputStyle,C.value,{resize:r.resize}]),R=z(()=>xr(r.modelValue)?"":String(r.modelValue)),N=z(()=>r.clearable&&!p.value&&!r.readonly&&!!R.value&&(k.value||w.value)),D=z(()=>r.showPassword&&!p.value&&!r.readonly&&!!R.value&&(!!R.value||k.value)),P=z(()=>r.showWordLimit&&!!h.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!p.value&&!r.readonly&&!r.showPassword),F=z(()=>Array.from(R.value).length),I=z(()=>!!P.value&&F.value>Number(h.value.maxlength)),H=z(()=>!!u.suffix||!!r.suffixIcon||N.value||r.showPassword||P.value||!!A.value&&$.value),[B,j]=kD(y);or(b,le=>{if(!P.value||r.resize!=="
* Checks if an event is supported in the current execution environment.** NOTE: This will not work correctly for non-generic events such as `change`,* `reset`, `load`, `error`, and `select`.** Borrows from Modernizr.** @param {string} eventNameSuffix Event name, e.g. "click".* @param {?boolean} capture Check if the capture phase is supported.* @return {boolean} True if the event is supported.* @internal* @license Modernizr 3.0.0pre (Custom Build) | MIT*/const w8=function(e,t){if(e&&e.addEventListener){const n=function(r){const i=b8(r);t&&Reflect.apply(t,this,[r,i])};e.addEventListener("wheel",n,{passive:!0})}},S8={beforeMount(e,t){w8(e,t.value)}},C8={beforeMount(e,t){e._handleResize=()=>{var n;e&&((n=t.value)==null||n.call(t,e))},WL(e,e._handleResize)},beforeUnmount(e){KL(e,e._handleResize)}},k8=Ie({role:{type:String,required:!0},spinnerDate:{type:we(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:we(String),default:""},disabledHours:{type:we(Function)},disabledMinutes:{type:we(Function)},disabledSeconds:{type:we(Function)}}),dp=(e,t,n)=>{const r=[],i=t&&n();for(let l=0;l<e;l++)r[l]=i?i.includes(l):!1;return r},fp=e=>e.map((t,n)=>t||n).filter(t=>t!==!0),Bw=(e,t,n)=>({getHoursList:(c,u)=>dp(24,e,()=>e(c,u)),getMinutesList:(c,u,f)=>dp(60,t,()=>t(c,u,f)),getSecondsList:(c,u,f,h)=>dp(60,n,()=>n(c,u,f,h))}),Hw=(e,t,n)=>{const{getHoursList:r,getMinutesList:i,getSecondsList:l}=Bw(e,t,n);return{getAvailableHours:(h,s)=>fp(r(h,s)),getAvailableMinutes:(h,s,o)=>fp(i(h,s,o)),getAvailableSeconds:(h,s,o,a)=>fp(l(h,s,o,a))}},Vw=e=>{const t=G(e.parsedValue);return Ee(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},$8=["onClick"],E8=["onMouseenter"],_8=ke({__name:"basic-time-spinner",props:k8,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,r=Te("time"),{getHoursList:i,getMinutesList:l,getSecondsList:c}=Bw(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let u=!1;const f=G(),h=G(),s=G(),o=G(),a={hours:h,minutes:s,seconds:o},d=z(()=>n.showSeconds?vw:vw.slice(0,2)),p=z(()=>{const{spinnerDate:D}=n,P=D.hour(),F=D.minute(),I=D.second();return{hours:P,minutes:F,seconds:I}}),g=z(()=>{const{hours:D,minutes:P}=T(p);return{hours:i(n.role),minutes:l(D,n.role),seconds:c(D,P,n.role)}}),v=z(()=>{const{hours:D,minutes:P,seconds:F}=T(p);return{hours:ep(D,23),minutes:ep(P,59),seconds:ep(F,59)}}),y=Rn(D=>{u=!1,w(D)},200),b=D=>{if(!!!n.amPmMode)return"";const F=n.amPmMode==="A";let I=D<12?" am":" pm";return F&&(I=I.toUpperCase()),I},k=D=>{let P;switch(D){case"hours":P=[0,2];break;case"minutes":P=[3,5];break;case"seconds":P=[6,8];break}const[F,I]=P;t("select-range",F,I),f.value=D},w=D=>{E(D,T(p)[D])},m=()=>{w("hours"),w("minutes"),w("seconds")},S=D=>D.querySelector(`.${r.namespace.value}-scrollbar__wrap`),E=(D,P)=>{if(n.arrowControl)return;const F=T(a[D]);F&&F.$el&&(S(F.$el).scrollTop=Math.max(0,P*C(D)))},C=D=>{const P=T(a[D]);return(P==null?void 0:P.$el.querySelector("li").offsetHeight)||0},_=()=>{A(1)},$=()=>{A(-1)},A=D=>{f.value||k("hours");const P=f.value;let F=T(p)[P];const I=f.value==="hours"?24:60;F=(F+D+I)%I,O(P,F),E(P,F),He(()=>k(P))},O=(D,P)=>{if(T(g)[D][P])return;const{hours:H,minutes:B,seconds:j}=T(p);let q;switch(D){case"hours":q=n.spinnerDate.hour(P).minute(B).second(j);break;case"minutes":q=n.spinnerDate.hour(H).minute(P).second(j);break;case"seconds":q=n.spinnerDate.hour(H).minute(B).second(P);break}t("change",q)},x=(D,{value:P,disabled:F})=>{F||(O(D,P),k(D),E(D,P))},M=D=>{u=!0,y(D);const P=Math.min(Math.round((S(T(a[D]).$el).scrollTop-(L(D)*.5-10)/C(D)+3)/C(D)),D==="hours"?23:59);O(D,P)},L=D=>T(a[D]).$el.offsetHeight,R=()=>{const D=P=>{const F=T(a[P]);F&&F.$el&&(S(F.$el).onscroll=()=>{M(P)})};D("hours"),D("minutes"),D("seconds")};nt(()=>{He(()=>{!n.arrowControl&&R(),m(),n.role==="start"&&k("hours")})});const N=(D,P)=>{a[P].value=D};return t("set-option",[`${n.role}_scrollDown`,A]),t("set-option",[`${n.role}_emitSelectRange`,k]),Ee(()=>n.spinnerDate,()=>{u||m()}),(D,P)=>(V(),X("div",{class:K([T(r).b("spinner"),{"has-seconds":D.showSeconds}])},[D.arrowControl?he("v-if",!0):(V(!0),X(ze,{key:0},ht(T(d),F=>(V(),ge(T(Ei),{key:F,ref_for:!0,ref:I=>N(I,F),class:K(T(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":T(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:I=>k(F),onMousemove:I=>w(F)},{default:ue(()=>[(V(!0),X(ze,null,ht(T(g)[F],(I,H)=>(V(),X("li",{key:H,class:K([T(r).be("spinner","item"),T(r).is("active",H===T(p)[F]),T(r).is("disabled",I)]),onClick:B=>x(F,{value:H,disabled:I} Add an empty element to avoid render label, do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
`),Q5]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(V(),ge(h,{key:2,class:K(e.ns.e("prefix"))},{default:ue(()=>[ie(f)]),_:1},8,["class"])):he("v-if",!0),he(" content "),ie(s),he(" postfix "),e.isLeaf?he("v-if",!0):(V(),X(ze,{key:3},[e.node.loading?(V(),ge(h,{key:0,class:K([e.ns.is("loading"),e.ns.e("postfix")])},{default:ue(()=>[ie(o)]),_:1},8,["class"])):(V(),ge(h,{key:1,class:K(["arrow-right",e.ns.e("postfix")])},{default:ue(()=>[ie(a)]),_:1},8,["class"]))],64))],42,J5)}var tH=xe(Z5,[["render",eH],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const nH=ke({name:"ElCascaderMenu",components:{Loading:Zi,ElIcon:je,ElScrollbar:Ei,ElCascaderNode:tH},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=ot(),n=Te("cascader-menu"),{t:r}=$t(),i=nl();let l=null,c=null;const u=Fe(gp),f=G(null),h=z(()=>!e.nodes.length),s=z(()=>!u.initialLoaded),o=z(()=>`cascader-menu-${i}-${e.index}`),a=v=>{l=v.target},d=v=>{if(!(!u.isHoverMenu||!l||!f.value))if(l.contains(v.target)){p();const y=t.vnode.el,{left:b}=y.getBoundingClientRect(),{offsetWidth:k,offsetHeight:w}=y,m=v.clientX-b,S=l.offsetTop,E=S+l.offsetHeight;f.value.innerHTML=` <path style="pointer-events: auto;" fill="transparent" d="M${m} ${S} L${k} 0 V${S} Z" /> <path style="pointer-events: auto;" fill="transparent" d="M${m} ${E} L${k} ${w} V${E} Z" /> `}else c||(c=window.setTimeout(g,u.config.hoverThreshold))},p=()=>{!c||(clearTimeout(c),c=null)},g=()=>{!f.value||(f.value.innerHTML="",p())};return{ns:n,panel:u,hoverZone:f,isEmpty:h,isLoading:s,menuId:o,t:r,handleExpand:a,handleMouseMove:d,clearHoverZone:g}}});function rH(e,t,n,r,i,l){const c=Pe("el-cascader-node"),u=Pe("loading"),f=Pe("el-icon"),h=Pe("el-scrollbar");return V(),ge(h,{key:e.menuId,tag:"ul",role:"menu",class:K(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:ue(()=>{var s;return[(V(!0),X(ze,null,ht(e.nodes,o=>(V(),ge(c,{key:o.uid,node:o,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(V(),X("div",{key:0,class:K(e.ns.e("empty-text"))},[ie(f,{size:"14",class:K(e.ns.is("loading"))},{default:ue(()=>[ie(u)]),_:1},8,["class"]),yt(" "+Me(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(V(),X("div",{key:1,class:K(e.ns.e("empty-text"))},Me(e.t("el.cascader.noData")),3)):((s=e.panel)==null?void 0:s.isHoverMenu)?(V(),X("svg",{key:2,ref:"hoverZone",class:K(e.ns.e("hover-zone"))},null,2)):he("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var iH=xe(nH,[["render",rH],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]),vp=(e=>(e.CLICK="click",e.HOVER="hover",e))(vp||{});let oH=0;const sH=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};class Zs{constructor(t,n,r,i=!1){this.data=t,this.config=n,this.parent=r,this.root=i,this.uid=oH++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:l,label:c,children:u}=n,f=t[u],h=sH(this);this.level=i?0:r?r.level+1:1,this.value=t[l],this.label=t[c],this.pathNodes=h,this.pathValues=h.map(s=>s.value),this.pathLabels=h.map(s=>s.label),this.childrenData=f,this.children=(f||[]).map(s=>new Zs(s,n,this)),this.loaded=!n.lazy||this.isLeaf||!Ja(f)}get isDisabled(){const{data:t,parent:n,config:r}=this,{disabled:i,checkStrictly:l}=r;return(Qe(i)?i(t,this):!!t[i])||!l&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:r,loaded:i}=this,{lazy:l,leaf:c}=n,u=Qe(c)?c(t,this):t[c];return sr(u)?l&&!i?!1:!(Array.isArray(r)&&r.length):!!u}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:r}=this,i=new Zs(t,this.config,this);return Array.isArray(n)?n.push(t):this.childrenData=[t],r.push(i),i}calcText(t,n){const r=t?this.pathLabels.join(n):this.label;return this.text=r,r}broadcast(t,...n){const r=`onParent${Fn(t)}`;this.children.forEach(i=>{i&&(i.broadcast(t,...n),i[r]&&i[r](...n))})}emit(t,...n){const{parent:r}=this,i=`onChild${Fn(t)}`;r&&(r[i]&&r[i](...n),r.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(i=>!i.isDisabled),r=n.length?n.every(i=>i.checked):!1;this.setCheckState(r)}setCheckState(t){const n=this.children.length,r=this.children.reduce((i,l)=>{const c=l.checked?1:l.indeterminate?.5:0;return i+c},0);this.checked=this.loaded&&this.children.filter(i=>!i.isDisabled).every(i=>i.loaded&&i.checked)&&t,this.indeterminate=this.loaded&&r!==n&&r>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:r}=this.config;n||!r?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}}const mp=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(mp(r.children,t))),n),[]);class tS{constructor(t,n){this.config=n;const r=(t||[]).map(i=>new Zs(i,this.config));this.nodes=r,this.allNodes=mp(r,!1),this.leafNodes=mp(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new Zs(t,this.config);n||this.nodes.push(r),this.allNodes.push(r),r.isLeaf&&this.leafNodes.push(r)}appendNodes(t,n){t.forEach(r=>this.appendNode(r,n))}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).find(i=>ir(i.value,t)||ir(i.p
M 50 50 m 0 ${w?"":"-"}${k} a ${k} ${k} 0 1 1 0 ${w?"-":""}${k*2} a ${k} ${k} 0 1 1 0 ${w?"":"-"}${k*2} `}),f=z(()=>2*Math.PI*c.value),h=z(()=>t.type==="dashboard"?.75:1),s=z(()=>`${-1*f.value*(1-h.value)/2}px`),o=z(()=>({strokeDasharray:`${f.value*h.value}px, ${f.value}px`,strokeDashoffset:s.value})),a=z(()=>({strokeDasharray:`${f.value*h.value*(t.percentage/100)}px, ${f.value}px`,strokeDashoffset:s.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),d=z(()=>{let k;return t.color?k=b(t.percentage):k=n[t.status]||n.default,k}),p=z(()=>t.status==="warning"?oc:t.type==="line"?t.status==="success"?gh:Xi:t.status==="success"?tl:Lr),g=z(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),v=z(()=>t.format(t.percentage));function y(k){const w=100/k.length;return k.map((S,E)=>et(S)?{color:S,percentage:(E+1)*w}:S).sort((S,E)=>S.percentage-E.percentage)}const b=k=>{var w;const{color:m}=t;if(Qe(m))return m(k);if(et(m))return m;{const S=y(m);for(const E of S)if(E.percentage>k)return E.color;return(w=S[S.length-1])==null?void 0:w.color}};return(k,w)=>(V(),X("div",{class:K([T(r).b(),T(r).m(k.type),T(r).is(k.status),{[T(r).m("without-text")]:!k.showText,[T(r).m("text-inside")]:k.textInside}]),role:"progressbar","aria-valuenow":k.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[k.type==="line"?(V(),X("div",{key:0,class:K(T(r).b("bar"))},[te("div",{class:K(T(r).be("bar","outer")),style:Ve({height:`${k.strokeWidth}px`})},[te("div",{class:K([T(r).be("bar","inner"),{[T(r).bem("bar","inner","indeterminate")]:k.indeterminate}]),style:Ve(T(i))},[(k.showText||k.$slots.default)&&k.textInside?(V(),X("div",{key:0,class:K(T(r).be("bar","innerText"))},[$e(k.$slots,"default",{percentage:k.percentage},()=>[te("span",null,Me(T(v)),1)])],2)):he("v-if",!0)],6)],6)],2)):(V(),X("div",{key:1,class:K(T(r).b("circle")),style:Ve({height:`${k.width}px`,width:`${k.width}px`})},[(V(),X("svg",CU,[te("path",{class:K(T(r).be("circle","track")),d:T(u),stroke:`var(${T(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":T(l),fill:"none",style:Ve(T(o))},null,14,kU),te("path",{class:K(T(r).be("circle","path")),d:T(u),stroke:T(d),fill:"none",opacity:k.percentage?1:0,"stroke-linecap":k.strokeLinecap,"stroke-width":T(l),style:Ve(T(a))},null,14,$U)]))],6)),(k.showText||k.$slots.default)&&!k.textInside?(V(),X("div",{key:2,class:K(T(r).e("text")),style:Ve({fontSize:`${T(g)}px`})},[$e(k.$slots,"default",{percentage:k.percentage},()=>[k.status?(V(),ge(T(je),{key:1},{default:ue(()=>[(V(),ge(ct(T(p))))]),_:1})):(V(),X("span",EU,Me(T(v)),1))])],6)):he("v-if",!0)],10,SU))}}));var AU=xe(TU,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const cC=lt(AU),OU=Ie({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:we([Array,Object]),default:()=>Kt(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:we([Array,Object]),default:()=>[ic,ic,ic]},voidIcon:{type:hn,default:()=>W4},disabledVoidIcon:{type:hn,default:()=>ic},disabled:{type:Boolean},allowHalf:{type:Boolean},showText:{type:Boolean},showScore:{type:Boolean},textColor:{type:String,default:""},texts:{type:we(Array),default:()=>Kt(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:{type:String,validator:ei},label:{type:String,default:void 0}}),xU={[Wt]:e=>rt(e),[ut]:e=>rt(e)},MU=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],RU=["onMousemove","onClick"],LU={name:"ElRate"},NU=ke(Oe(me({},LU),{props:OU,emits:xU,setup(e,{expose:t,emit:n}){const r=e;function i(R,N){const D=I=>vt(I),P=Object.keys(N).map(I=>+I).filter(I=>{const H=N[I];return(D(H)?H.excluded:!1)?R<I:R<=I}).sort((I,H)=>I-H),F=N[P[0]];return D(F)&&F.value||F}const l=Fe(ar,void 0),c=Fe(bn,void 0),u=rn(),f=Te("rate"),{inputId:h,isLabeledByFormItem:s}=Qi(r,{formItemContext:c}),o=G(r.modelValue),a=G(-1),d=G(!0),p=z(()=>[f.b(),f.m(u.value)]),g=z(()=>r.disabled||(l==null?void 0:l
* escape-html * Copyright(c) 2012-2013 TJ Holowaychuk * Copyright(c) 2015 Andreas Lubbe * Copyright(c) 2015 Tiancheng "Timothy" Gu * MIT Licensed */var GG=/["'&<>]/,YG=XG;function XG(e){var t=""+e,n=GG.exec(t);if(!n)return t;var r,i="",l=0,c=0;for(l=n.index;l<t.length;l++){switch(t.charCodeAt(l)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}c!==l&&(i+=t.substring(c,l)),c=l+1,i+=r}return c!==l?i+t.substring(c,l):i}const ng=function(e){let t=e.target;for(;t&&t.tagName.toUpperCase()!=="HTML";){if(t.tagName.toUpperCase()==="TD")return t;t=t.parentNode}return null},VC=function(e){return e!==null&&typeof e=="object"},ZG=function(e,t,n,r,i){if(!t&&!r&&(!i||Array.isArray(i)&&!i.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const l=r?null:function(u,f){return i?(Array.isArray(i)||(i=[i]),i.map(h=>typeof h=="string"?zt(u,h):h(u,f,e))):(t!=="$key"&&VC(u)&&"$value"in u&&(u=u.$value),[VC(u)?zt(u,t):u])},c=function(u,f){if(r)return r(u.value,f.value);for(let h=0,s=u.key.length;h<s;h++){if(u.key[h]<f.key[h])return-1;if(u.key[h]>f.key[h])return 1}return 0};return e.map((u,f)=>({value:u,index:f,key:l?l(u,f):null})).sort((u,f)=>{let h=c(u,f);return h||(h=u.index-f.index),h*+n}).map(u=>u.value)},zC=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},JG=function(e,t){let n=null;for(let r=0;r<e.columns.length;r++){const i=e.columns[r];if(i.columnKey===t){n=i;break}}return n},WC=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?zC(e,r[0]):null},Cn=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const i of n)r=r[i];return`${r}`}else if(typeof t=="function")return t.call(null,e)},ns=function(e,t){const n={};return(e||[]).forEach((r,i)=>{n[Cn(r,t)]={row:r,index:i}}),n};function QG(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(ft(t,r)){const i=t[r];typeof i!="undefined"&&(n[r]=i)}return n}function rg(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function KC(e){return e===""||e!==void 0&&(e=rg(e),Number.isNaN(e)&&(e=80)),e}function ig(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function eY(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function td(e,t,n){let r=!1;const i=e.indexOf(t),l=i!==-1,c=()=>{e.push(t),r=!0},u=()=>{e.splice(i,1),r=!0};return typeof n=="boolean"?n&&!l?c():!n&&l&&u():l?u():c(),r}function tY(e,t,n="children",r="hasChildren"){const i=c=>!(Array.isArray(c)&&c.length);function l(c,u,f){t(c,u,f),u.forEach(h=>{if(h[r]){t(h,null,f+1);return}const s=h[n];i(s)||l(h,s,f+1)})}e.forEach(c=>{if(c[r]){t(c,null,0);return}const u=c[n];i(u)||l(c,u,0)})}let lo;function nY(e,t,n,r,i){const{nextZIndex:l}=Ci(),c=e==null?void 0:e.dataset.prefix,u=e==null?void 0:e.querySelector(`.${c}-scrollbar__wrap`);function f(){const p=i==="light",g=document.createElement("div");return g.className=`${c}-popper ${p?"is-light":"is-dark"}`,n=YG(n),g.innerHTML=n,g.style.zIndex=String(l()),e==null||e.appendChild(g),g}function h(){const p=document.createElement("div");return p.className=`${c}-popper__arrow`,p}function s(){o&&o.update()}lo=()=>{try{o&&o.destroy(),a&&(e==null||e.removeChild(a)),gr(t,"mouseenter",s),gr(t,"mouseleave",lo),u&&gr(u,"scroll",lo),lo=void 0}catch{}};let o=null;const a=f(),d=h();return a.appendChild(d),o=K1(t,a,me({strategy:"absolute",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"arrow",options:{element:d,padding:10}}]},r)),Ln(t,"mouseenter",s),Ln(t,"mouseleave",lo),u&&Ln(u,"scroll",lo),o}const jC=(e,t,n,r)=>{let i=0,l=e;if(r){if(r[e].colSpan>1)return{};for(let f=0;f<e;f++)i+=r[f].colSpan;l=i+r[e].colSpan-1}else i=e;let c;const u=n.states.columns;switch(t){case"left":l<n.states.fixedLeafColumnsLength.value&&(c="left");break;case"right":i>=u.value.length-n.states.rightFixedLeafColumnsLength.value&&(c="right");break;default:l<n.states.fixedLeafColumnsLength.value?c="left":i>=u.value.length-n.states.rightFixedLeafColumnsLength.value&&(c="r * Sortable 1.14.0 * @author RubaXa <trash@rubaxa.org> * @author owenm <owen23355@gmail.com> * @license MIT */function jk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ai(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jk(Object(n),!0).forEach(function(r){cee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pd=function(t){return typeof t}:pd=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pd(e)}function cee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cr(){return Cr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cr.apply(this,arguments)}function dee(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,l;for(l=0;l<r.length;l++)i=r[l],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function fee(e,t){if(e==null)return{};var n=dee(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function hee(e){return pee(e)||gee(e)||vee(e)||mee()}function pee(e){if(Array.isArray(e))return Dg(e)}function gee(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vee(e,t){if(!!e){if(typeof e=="string")return Dg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dg(e,t)}}function Dg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var yee="1.14.0";function xi(e){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(e)}var Mi=xi(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ml=xi(/Edge/i),Uk=xi(/firefox/i),Rl=xi(/safari/i)&&!xi(/chrome/i)&&!xi(/android/i),qk=xi(/iP(ad|od|hone)/i),bee=xi(/chrome/i)&&xi(/android/i),Gk={capture:!1,passive:!1};function Rt(e,t,n){e.addEventListener(t,n,!Mi&&Gk)}function Ot(e,t,n){e.removeEventListener(t,n,!Mi&&Gk)}function gd(e,t){if(!!t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function wee(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Vr(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&gd(e,t):gd(e,t))||r&&e===n)return e;if(e===n)break}while(e=wee(e))}return null}var Yk=/\s+/g;function en(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(Yk," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(Yk," ")}}function st(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function as(e,t){var n="";if(typeof e=="string")n=e;else do{var r=st(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function Xk(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,l=r.length;if(n)for(;i<l;i++)n(r[i],i);return r}return[]}function li(){var e=document.scrollingElement;return e||document.documentElement}function Jt(e,t,n,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var l,c,u,f,h,s,o;if(e!==window&&e.parentNode&&e!==li()?(l=e.getBoundingClientRect(),c=l.top,u=l.left,f=l.bottom,h=l.right,s=l.height,o=l.width):(c=0,u=0,f=window.innerHeight,h=window.innerWidth,s=window.innerHeight,o=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!Mi))do if(i&&i.getBoundingClientRect&&(st(i,"transform")!=="none"||n&&st(i,"position")!=="static")){var a=i.getBoundingClientRect();c-=a.top+parseInt(st(i,"border-top-width")),u-=a.left+parseInt(st(i,"border-left-width")),f=c+l.height,h=u+l.width;break}while(i=i.parentNode);if(r&&e!==window){var d=as(i||e),p=d&&d.a,g=d&&d.d;d&&(c/=g,u/=p,o/=p,s/=g,f=c+s,h=u+o)}return{top:c,left:u,bottom:f,right:h,width:o,height:s}}}function Zk(e,t,n){for(var r=fo(e,!0),i=Jt(e)[t];r;){var l=Jt(r)[n],c=void 0;if(n==="top"||n==="left"?c=i>=l:c=i<=l,!c)return r;if(r===li())break;r=fo(r,!1)}return!1}function ha(e,t,n,r){for(var i=0,l=0,c=e.children;l<c.length;){if(c[l].style.display!=="none"&&c[l]!==mt.ghost&&(r||c[l]!==mt.dragged)&&Vr(c[l],n.draggable,e,!1)){if(i===t)return c[l];i++}l++}return null}function Fg(e,t){for(var n=e.lastElementChild;n&&(n===mt.ghost||st(n,"display")==="none"||t&&!gd(n,t));)n=n.previousElementSibling;return n||null}function on(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==mt.clone&&(!t||gd(e,t))&&n++;return n}function Jk(e){var t=0,n=0,r=li();if(e)do{var i=as(e),l=i.a,c=i.d;t+=e.scrollLeft*l,n+=e.scrollTop*c}while(e!==r&&(e=e.parentNode));return[t,n]}function See(e,t){for(var n in e)if(!!e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function fo(e,t){if(!e||!e.getBoundingClientRect)return li();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=st(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return li();if(r||t)re
|