Files
wecom_it_smart_desk/frontend-admin/dist.old/assets/Flowcharts-DB3Ipdmk.js
T

20 lines
450 KiB
JavaScript
Raw Normal View History

import{d as Hs,ac as Du,o as Ro,ad as tt,ae as Pu,af as Bu,ag as nr,S as _i,ah as Lu,ai as Ru,r as Ue,v as kh,aj as Eu,f as _,g as ge,T as Sh,a as Nu,b as Pt,n as Xn,w as Y,i as Ae,e as ie,c as Zn,U as Iu,t as dt,a0 as Vu,j as Ie,M as Fu,ak as Wu,a7 as Ch,al as Hu,E as Ne,V as zu,a2 as ju,am as _u,a5 as $u,a8 as qu,G as Ku,an as Uu,ao as Gu,ap as Yu,Y as Qu}from"./index-BCt9h3P8.js";import{a as yn}from"./index-CTvVpU0T.js";import{_ as Ah}from"./_plugin-vue_export-helper-DlAUqK2U.js";let Ir=[],Mh=[];(()=>{let n="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<n.length;e++)(e%2?Mh:Ir).push(t=t+n[e])})();function Ju(n){if(n<768)return!1;for(let e=0,t=Ir.length;;){let i=e+t>>1;if(n<Ir[i])t=i;else if(n>=Mh[i])e=i+1;else return!0;if(e==t)return!1}}function yl(n){return n>=127462&&n<=127487}const bl=8205;function Xu(n,e,t=!0,i=!0){return(t?Oh:Zu)(n,e,i)}function Oh(n,e,t){if(e==n.length)return e;e&&Th(n.charCodeAt(e))&&Dh(n.charCodeAt(e-1))&&e--;let i=sr(n,e);for(e+=vl(i);e<n.length;){let s=sr(n,e);if(i==bl||s==bl||t&&Ju(s))e+=vl(s),i=s;else if(yl(s)){let r=0,o=e-2;for(;o>=0&&yl(sr(n,o));)r++,o-=2;if(r%2==0)break;e+=2}else break}return e}function Zu(n,e,t){for(;e>1;){let i=Oh(n,e-2,t);if(i<e)return i;e--}return 0}function sr(n,e){let t=n.charCodeAt(e);if(!Dh(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return Th(i)?(t-55296<<10)+(i-56320)+65536:t}function Th(n){return n>=56320&&n<57344}function Dh(n){return n>=55296&&n<56320}function vl(n){return n<65536?1:2}class te{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=Si(this,e,t);let s=[];return this.decompose(0,e,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(t,this.length,s,1),pt.from(s,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=Si(this,e,t);let i=[];return this.decompose(e,t,i,0),pt.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),s=new $i(this),r=new $i(e);for(let o=t,l=t;;){if(s.next(o),r.next(o),o=0,s.lineBreak!=r.lineBreak||s.done!=r.done||s.value!=r.value)return!1;if(l+=s.value.length,s.done||l>=i)return!0}}iter(e=1){return new $i(this,e)}iterRange(e,t=this.length){return new Ph(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let s=this.line(e).from;i=this.iterRange(s,Math.max(s,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Bh(i)}toString(){return thi
`){[e,t]=Si(this,e,t);let s="";for(let r=0,o=0;r<=t&&o<this.text.length;o++){let l=this.text[o],a=r+l.length;r>e&&o&&(s+=i),e<a&&t>r&&(s+=l.slice(Math.max(0,e-r),t-r)),r=a+1}return s}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],s=-1;for(let r of e)i.push(r),s+=r.length+1,i.length==32&&(t.push(new pe(i,s)),i=[],s=-1);return s>-1&&t.push(new pe(i,s)),t}}class pt extends te{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.children[r],l=s+o.length,a=i+o.lines-1;if((t?a:l)>=e)return o.lineInner(e,t,i,s);s=l+1,i=a+1}}decompose(e,t,i,s){for(let r=0,o=0;o<=t&&r<this.children.length;r++){let l=this.children[r],a=o+l.length;if(e<=a&&t>=o){let h=s&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!h?i.push(l):l.decompose(e-o,t-o,i,h)}o=a+1}}replace(e,t,i){if([e,t]=Si(this,e,t),i.lines<this.lines)for(let s=0,r=0;s<this.children.length;s++){let o=this.children[s],l=r+o.length;if(e>=r&&t<=l){let a=o.replace(e-r,t-r,i),h=this.lines-o.lines+a.lines;if(a.lines<h>>4&&a.lines>h>>6){let c=this.children.slice();return c[s]=a,new pt(c,this.length-(t-e)+i.length)}return super.replace(r,l,a)}r=l+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
`){[e,t]=Si(this,e,t);let s="";for(let r=0,o=0;r<this.children.length&&o<=t;r++){let l=this.children[r],a=o+l.length;o>e&&r&&(s+=i),e<a&&t>o&&(s+=l.sliceString(e-o,t-o,i)),o=a+1}return s}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof pt))return 0;let i=0,[s,r,o,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;s+=t,r+=t){if(s==o||r==l)return i;let a=this.children[s],h=e.children[r];if(a!=h)return i+a.scanIdentical(h,t);i+=a.length+1}}static from(e,t=e.reduce((i,s)=>i+s.length+1,-1)){let i=0;for(let d of e)i+=d.lines;if(i<32){let d=[];for(let p of e)p.flatten(d);return new pe(d,t)}let s=Math.max(32,i>>5),r=s<<1,o=s>>1,l=[],a=0,h=-1,c=[];function f(d){let p;if(d.lines>r&&d instanceof pt)for(let m of d.children)f(m);else d.lines>o&&(a>o||!a)?(u(),l.push(d)):d instanceof pe&&a&&(p=c[c.length-1])instanceof pe&&d.lines+p.lines<=32?(a+=d.lines,h+=d.length+1,c[c.length-1]=new pe(p.text.concat(d.text),p.length+1+d.length)):(a+d.lines>s&&u(),a+=d.lines,h+=d.length+1,c.push(d))}function u(){a!=0&&(l.push(c.length==1?c[0]:pt.from(c,h)),h=-1,a=c.length=0)}for(let d of e)f(d);return u(),l.length==1?l[0]:new pt(l,t)}}te.empty=new pe([""],0);function ed(n){let e=-1;for(let t of n)e+=t.length+1;return e}function es(n,e,t=0,i=1e9){for(let s=0,r=0,o=!0;r<n.length&&s<=i;r++){let l=n[r],a=s+l.length;a>=t&&(a>i&&(l=l.slice(0,i-s)),s<t&&(l=l.slice(t-s)),o?(e[e.length-1]+=l,o=!1):e.push(l)),s=a+1}return e}function xl(n,e,t){return es(n,[""],e,t)}class $i{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof pe?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,s=this.nodes[i],r=this.offsets[i],o=r>>1,l=s instanceof pe?s.text.length:s.children.length;if(o==(t>0?l:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
`,this;e--}else if(s instanceof pe){let a=s.text[o+(t<0?-1:0)];if(this.offsets[i]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=s.children[o+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof pe?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Ph{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new $i(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:s}=this.cursor.next(e);return this.pos+=(s.length+e)*t,this.value=s.length<=i?s:t<0?s.slice(s.length-i):s.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Bh{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:s}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=s,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(te.prototype[Symbol.iterator]=function(){return this.iter()},$i.prototype[Symbol.iterator]=Ph.prototype[Symbol.iterator]=Bh.prototype[Symbol.iterator]=function(){return this});class td{constructor(e,t,i,s){this.from=e,this.to=t,this.number=i,this.text=s}get length(){return this.to-this.from}}function Si(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}function we(n,e,t=!0,i=!0){return Xu(n,e,t,i)}function id(n){return n>=56320&&n<57344}function nd(n){return n>=55296&&n<56320}function Ve(n,e){let t=n.charCodeAt(e);if(!nd(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return id(i)?(t-55296<<10)+(i-56320)+65536:t}function Eo(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function mt(n){return n<65536?1:2}const Vr=/\r\n?|\n/;var Le=function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n}(Le||(Le={}));class xt{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,s=0;t<this.sections.length;){let r=this.sections[t++],o=this.sections[t++];o<0?(e(i,s,r),s+=r):s+=o,i+=r}}iterChangedRanges(e,t=!1){Fr(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];s<0?e.push(i,s):e.push(s,i)}return new xt(e)}composeDesc(e){return this.empty?e:e.empty?this:Lh(this,e)}mapDesc(e,t=!1){return e.empty?this:Wr(this,e,t)}mapPos(e,t=-1,i=Le.Simple){let s=0,r=0;for(let o=0;o<this.sections.length;){let l=this.sections[o++],a=this.sections[o++],h=s+l;if(a<0){if(h>e)return r+(e-s);r+=l}else{if(i!=Le.Simple&&h>=e&&(i==Le.TrackDel&&s<e&&h>e||i==Le.TrackBefore&&s<e||i==Le.TrackAfter&&h>e))return null;if(h>e||h==e&&t<0&&!l)return e==s||t<0?r:r+a;r+=a}s=h}if(e>s)throw new RangeError(`Position ${e} is out of range for changeset of length ${s}`);return r}touchesRange(e,t=e){for(let i=0,s=0;i<this.sections.length&&s<=t;){let r=this.sections[i++],o=this.sections[i++],l=s+r;if(o>=0&&s<=t&&l>=e)return s<e&&l>t?"cover":!0;s=l}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];e+=(e?" ":"")+i+(s>=0?":"+s
`}get readOnly(){return this.facet(Hh)}phrase(e,...t){for(let i of this.facet(ee.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(i,s)=>{if(s=="$")return"$";let r=+(s||1);return!r||r>t.length?i:t[r-1]})),e}languageDataAt(e,t,i=-1){let s=[];for(let r of this.facet(Nh))for(let o of r(this,t,i))Object.prototype.hasOwnProperty.call(o,e)&&s.push(o[e]);return s}charCategorizer(e){let t=this.languageDataAt("wordChars",e);return pd(t.length?t[0]:"")}wordAt(e){let{text:t,from:i,length:s}=this.doc.lineAt(e),r=this.charCategorizer(e),o=e-i,l=e-i;for(;o>0;){let a=we(t,o,!1);if(r(t.slice(a,o))!=ce.Word)break;o=a}for(;l<s;){let a=we(t,l);if(r(t.slice(l,a))!=ce.Word)break;l=a}return o==l?null:A.range(o+i,l+i)}}ee.allowMultipleSelections=jr;ee.tabSize=V.define({combine:n=>n.length?n[0]:4});ee.lineSeparator=Ih;ee.readOnly=Hh;ee.phrases=V.define({compare(n,e){let t=Object.keys(n),i=Object.keys(e);return t.length==i.length&&t.every(s=>n[s]==e[s])}});ee.languageData=Nh;ee.changeFilter=Vh;ee.transactionFilter=Fh;ee.transactionExtender=Wh;bn.reconfigure=Q.define();function wt(n,e,t={}){let i={};for(let s of n)for(let r of Object.keys(s)){let o=s[r],l=i[r];if(l===void 0)i[r]=o;else if(!(l===o||o===void 0))if(Object.hasOwnProperty.call(t,r))i[r]=t[r](l,o);else throw new Error("Config merge conflict for field "+r)}for(let s in e)i[s]===void 0&&(i[s]=e[s]);return i}class Ft{eq(e){return this==e}range(e,t=e){return qr.create(e,t,this)}}Ft.prototype.startSide=Ft.prototype.endSide=0;Ft.prototype.point=!1;Ft.prototype.mapMode=Le.TrackDel;function Vo(n,e){return n==e||n.constructor==e.constructor&&n.eq(e)}let qr=class _h{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new _h(e,t,i)}};function Kr(n,e){return n.from-e.from||n.value.startSide-e.value.startSide}class Fo{constructor(e,t,i,s){this.from=e,this.to=t,this.value=i,this.maxPoint=s}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,s=0){let r=i?this.to:this.from;for(let o=s,l=r.length;;){if(o==l)return o;let a=o+l>>1,h=r[a]-e||(i?this.value[a].endSide:this.value[a].startSide)-t;if(a==o)return h>=0?o:l;h>=0?l=a:o=a+1}}between(e,t,i,s){for(let r=this.findIndex(t,-1e9,!0),o=this.findIndex(i,1e9,!1,r);r<o;r++)if(s(this.from[r]+e,this.to[r]+e,this.value[r])===!1)return!1}map(e,t){let i=[],s=[],r=[],o=-1,l=-1;for(let a=0;a<this.value.length;a++){let h=this.value[a],c=this.from[a]+e,f=this.to[a]+e,u,d;if(c==f){let p=t.mapPos(c,h.startSide,h.mapMode);if(p==null||(u=d=p,h.startSide!=h.endSide&&(d=t.mapPos(c,h.endSide),d<u)))continue}else if(u=t.mapPos(c,h.startSide),d=t.mapPos(f,h.endSide),u>d||u==d&&h.startSide>0&&h.endSide<=0)continue;(d-u||h.endSide-h.startSide)<0||(o<0&&(o=u),h.point&&(l=Math.max(l,d-u)),i.push(h),s.push(u-o),r.push(d-o))}return{mapped:i.length?new Fo(s,r,i,l):null,pos:o}}}class Z{constructor(e,t,i,s){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=s}static create(e,t,i,s){return new Z(e,t,i,s)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:s=0,filterTo:r=this.length}=e,o=e.filter;if(t.length==0&&!o)return this;if(i&&(t=t.slice().sort(Kr)),this.isEmpty)return t.length?Z.of(t):this;let l=new $h(this,null,-1).goto(0),a=0,h=[],c=new Mt;for(;l.value||a<t.length;)if(a<t.length&&(l.from-t[a].from||l.startSide-t[a].value.startSide)>=0){let f=t[a++];c.addInner(f.from,f.to,f.value)||h.push(f)}else l.rangeIndex==1&&l.chunkIndex<this.chunk.length&&(a==t.length||this.chunkEnd(l.chunkIndex)<t[a].from)&&(!o||s>this.chunkEnd(l.chunkIndex)||r<this.chunkPos[l.chunkIndex])&&c.addChunk(this.chunkPos[l.chunkIndex],this.chunk[l.chunkIndex])?l.nextChunk():((!o||s>l.to||r<l.from||o(l.from,l.to,l.value))&&(c.addInner(l.from,l.to,l.value)||h.push(qr.create(l.from,l.to,l.value))),l.next());return c.finishInner(this.nextLayer.is
`)}static newName(){let e=Ml[Al]||1;return Ml[Al]=e+1,Yr+e.toString(36)}static mount(e,t,i){let s=e[Qr],r=i&&i.nonce;s?r&&s.setNonce(r):s=new gd(e,r),s.mount(Array.isArray(t)?t:[t],e)}}let Ol=new Map;class gd{constructor(e,t){let i=e.ownerDocument||e,s=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&s.CSSStyleSheet){let r=Ol.get(i);if(r)return e[Qr]=r;this.sheet=new s.CSSStyleSheet,Ol.set(i,this)}else this.styleTag=i.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[Qr]=this}mount(e,t){let i=this.sheet,s=0,r=0;for(let o=0;o<e.length;o++){let l=e[o],a=this.modules.indexOf(l);if(a<r&&a>-1&&(this.modules.splice(a,1),r--,a=-1),a==-1){if(this.modules.splice(r++,0,l),i)for(let h=0;h<l.rules.length;h++)i.insertRule(l.rules[h],s++)}else{for(;r<a;)s+=this.modules[r++].rules.length;s+=l.rules.length,r++}}if(i)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let o="";for(let a=0;a<this.modules.length;a++)o+=this.modules[a].getRules()+`
`;this.styleTag.textContent=o;let l=t.head||t;this.styleTag.parentNode!=l&&l.insertBefore(this.styleTag,l.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var Ht={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},tn={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},yd=typeof navigator<"u"&&/Mac/.test(navigator.platform),bd=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Se=0;Se<10;Se++)Ht[48+Se]=Ht[96+Se]=String(Se);for(var Se=1;Se<=24;Se++)Ht[Se+111]="F"+Se;for(var Se=65;Se<=90;Se++)Ht[Se]=String.fromCharCode(Se+32),tn[Se]=String.fromCharCode(Se);for(var or in Ht)tn.hasOwnProperty(or)||(tn[or]=Ht[or]);function vd(n){var e=yd&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||bd&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?tn:Ht)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function oe(){var n=arguments[0];typeof n=="string"&&(n=document.createElement(n));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var s=t[i];typeof s=="string"?n.setAttribute(i,s):s!=null&&(n[i]=s)}e++}for(;e<arguments.length;e++)qh(n,arguments[e]);return n}function qh(n,e){if(typeof e=="string")n.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)n.appendChild(e);else if(Array.isArray(e))for(var t=0;t<e.length;t++)qh(n,e[t]);else throw new RangeError("Unsupported child node: "+e)}let Pe=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},Jr=typeof document<"u"?document:{documentElement:{style:{}}};const Xr=/Edge\/(\d+)/.exec(Pe.userAgent),Kh=/MSIE \d/.test(Pe.userAgent),Zr=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Pe.userAgent),zs=!!(Kh||Zr||Xr),Tl=!zs&&/gecko\/(\d+)/i.test(Pe.userAgent),lr=!zs&&/Chrome\/(\d+)/.exec(Pe.userAgent),Dl="webkitFontSmoothing"in Jr.documentElement.style,eo=!zs&&/Apple Computer/.test(Pe.vendor),Pl=eo&&(/Mobile\/\w+/.test(Pe.userAgent)||Pe.maxTouchPoints>2);var E={mac:Pl||/Mac/.test(Pe.platform),windows:/Win/.test(Pe.platform),linux:/Linux|X11/.test(Pe.platform),ie:zs,ie_version:Kh?Jr.documentMode||6:Zr?+Zr[1]:Xr?+Xr[1]:0,gecko:Tl,gecko_version:Tl?+(/Firefox\/(\d+)/.exec(Pe.userAgent)||[0,0])[1]:0,chrome:!!lr,chrome_version:lr?+lr[1]:0,ios:Pl,android:/Android\b/.test(Pe.userAgent),webkit:Dl,webkit_version:Dl?+(/\bAppleWebKit\/(\d+)/.exec(Pe.userAgent)||[0,0])[1]:0,safari:eo,safari_version:eo?+(/\bVersion\/(\d+(\.\d+)?)/.exec(Pe.userAgent)||[0,0])[1]:0,tabSize:Jr.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function Wo(n,e){for(let t in n)t=="class"&&e.class?e.class+=" "+n.class:t=="style"&&e.style?e.style+=";"+n.style:e[t]=n[t];return e}const ds=Object.create(null);function Ho(n,e,t){if(n==e)return!0;n||(n=ds),e||(e=ds);let i=Object.keys(n),s=Object.keys(e);if(i.length-0!=s.length-0)return!1;for(let r of i)if(r!=t&&(s.indexOf(r)==-1||n[r]!==e[r]))return!1;return!0}function xd(n,e){for(let t=n.attributes.length-1;t>=0;t--){let i=n.attributes[t].name;e[i]==null&&n.removeAttribute(i)}for(let t in e){let i=e[t];t=="style"?n.style.cssText=i:n.getAttribute(t)!=i&&n.setAttribute(t,i)}}function Bl(n,e,t){let i=!1;if(e)for(let s in e)t&&s in t||(i
`,s=n.state.doc.line(s.number+(t?1:-1)),r=n.bidiSpans(s),h=n.visualLineSide(s,!t)}if(a){if(!a(c))return l}else{if(!i)return h;a=i(c)}l=h}}function ap(n,e,t){let i=n.state.charCategorizer(e),s=i(t);return r=>{let o=i(r);return s==ce.Space&&(s=o),s==o}}function hp(n,e,t,i){let s=e.head,r=t?1:-1;if(s==(t?n.state.doc.length:0))return A.cursor(s,e.assoc);let o=e.goalColumn,l,a=n.contentDOM.getBoundingClientRect(),h=n.coordsAtPos(s,e.assoc||((e.empty?t:e.head==e.from)?1:-1)),c=n.documentTop;if(h)o==null&&(o=h.left-a.left),l=r<0?h.top:h.bottom;else{let p=n.viewState.lineBlockAt(s);o==null&&(o=Math.min(a.right-a.left,n.defaultCharacterWidth*(s-p.from))),l=(r<0?p.top:p.bottom)+c}let f=a.left+o,u=n.viewState.heightOracle.textHeight>>1,d=i??u;for(let p=0;;p+=u){let m=l+(d+p)*r,g=ao(n,{x:f,y:m},!1,r);if(t?m>a.bottom:m<a.top)return A.cursor(g.pos,g.assoc);let y=n.coordsAtPos(g.pos,g.assoc),x=y?(y.top+y.bottom)/2:0;if(!y||(t?x>l:x<l))return A.cursor(g.pos,g.assoc,void 0,o)}}function Yi(n,e,t){for(;;){let i=0;for(let s of n)s.between(e-1,e+1,(r,o,l)=>{if(e>r&&e<o){let a=i||t||(e-r<o-e?-1:1);e=a<0?r:o,i=a}});if(!i)return e}}function wc(n,e){let t=null;for(let i=0;i<e.ranges.length;i++){let s=e.ranges[i],r=null;if(s.empty){let o=Yi(n,s.from,0);o!=s.from&&(r=A.cursor(o,-1))}else{let o=Yi(n,s.from,-1),l=Yi(n,s.to,1);(o!=s.from||l!=s.to)&&(s.undirectional?r=A.undirectionalRange(s.from,s.to):r=A.range(s.from==s.anchor?o:l,s.from==s.head?o:l))}r&&(t||(t=e.ranges.slice()),t[i]=r)}return t?A.create(t,e.mainIndex):e}function ur(n,e,t){let i=Yi(n.state.facet(wn).map(s=>s(n)),t.from,e.head>t.from?-1:1);return i==t.from?t:A.cursor(i,i<t.from?1:-1)}class gt{constructor(e,t){this.pos=e,this.assoc=t}}function ao(n,e,t,i){let s=n.contentDOM.getBoundingClientRect(),r=s.top+n.viewState.paddingTop,{x:o,y:l}=e,a=l-r,h;for(;;){if(a<0)return new gt(0,1);if(a>n.viewState.docHeight)return new gt(n.state.doc.length,-1);if(h=n.elementAtHeight(a),i==null)break;if(h.type==Ce.Text){if(i<0?h.to<n.viewport.from:h.from>n.viewport.to)break;let u=n.docView.coordsAt(i<0?h.from:h.to,i>0?-1:1);if(u&&(i<0?u.top<=a+r:u.bottom>=a+r))break}let f=n.viewState.heightOracle.textHeight/2;a=i>0?h.bottom+f:h.top-f}if(n.viewport.from>=h.to||n.viewport.to<=h.from){if(t)return null;if(h.type==Ce.Text){let f=op(n,s,h,o,l);return new gt(f,f==h.from?1:-1)}}if(h.type!=Ce.Text)return a<(h.top+h.bottom)/2?new gt(h.from,1):new gt(h.to,-1);let c=n.docView.lineAt(h.from,2);return(!c||c.length!=h.length)&&(c=n.docView.lineAt(h.from,-2)),new cp(n,o,l,n.textDirectionAt(h.from)).scanTile(c,h.from)}class cp{constructor(e,t,i,s){this.view=e,this.x=t,this.y=i,this.baseDir=s,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to<e)&&(this.line=this.view.state.doc.lineAt(e),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(e,t){let{line:i,spans:s}=this.bidiSpansAt(e);return s[yt.find(s,e-i.from,-1,t)].level==this.baseDir}dirAt(e,t){let{line:i,spans:s}=this.bidiSpansAt(e);return s[yt.find(s,e-i.from,-1,t)].dir}bidiIn(e,t){let{spans:i,line:s}=this.bidiSpansAt(e);return i.length>1||i.length&&(i[0].level!=this.baseDir||i[0].to+s.from<t)}scan(e,t,i=!1){let s=0,r=e.length-1,o=new Set,l=this.bidiIn(e[0],e[r]),a,h,c=-1,f=1e9,u;e:for(;s<r;){let p=r-s,m=s+r>>1;t:if(o.has(m)){let y=s+Math.floor(Math.random()*p);for(let x=0;x<p;x++){if(!o.has(y)){m=y;break t}y++,y==r&&(y=s)}break e}o.add(m);let g=t(m);if(g)for(let y=0;y<g.length;y++){let x=g[y],v=0;if(!(x.width==0&&g.length>1)){if(x.bottom<this.y)(!a||a.bottom<x.bottom)&&(a=x),v=1;else if(x.top>this.y)(!h||h.top>x.top)&&(h=x),v=-1;else{let O=x.left>this.x?this.x-x.left:x.right<this.x?this.x-x.right:0,T=Math.abs(O);T<f&&(c=m,f=T,u=x),O&&(v=O<0==(this.baseDir==ae.LTR)?-1:1)}v==-1&&(!l||this.baseDirAt(e[m],1))?r=m:v==1&&(!l||this.baseDirAt(e[m+1],-1))&&(s=m+1)}}}if(!u){if(!h&&!a)return{i:e[0],after:!1};let p=a&&(!h||this.y-a.bottom<h.top-this.y)?a:h;return this.y=(p.top+p.bottom)/2,this.scan(e,t,!0)}if(f&&!i){let{top:p,bottom:m}=u;if(a&&a.bottom>(p+p+m)/3)return this.y=a.bottom-1,this.scan(e,t,!0);if(h&&h.top<(p+m+m)/3)
`&&n.lineWrapping&&(i&&(i=A.single(i.main.anchor-1,i.main.head-1)),t={from:r.from,to:r.to,insert:te.of([" "])}),t)return Uo(n,t,i,o);if(i&&!bs(i,r)){let l=!1,a="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(l=!0),a=n.inputState.lastSelectionOrigin,a=="select.pointer"&&(i=wc(s.facet(wn).map(h=>h(n)),i))),n.dispatch({selection:i,scrollIntoView:l,userEvent:a}),!0}else return!1}function Uo(n,e,t,i=-1){if(E.ios&&n.inputState.flushIOSKey(e))return!0;let s=n.state.selection.main;if(E.android&&(e.to==s.to&&(e.from==s.from||e.from==s.from-1&&n.state.sliceDoc(e.from,s.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&bi(n.contentDOM,"Enter",13)||(e.from==s.from-1&&e.to==s.to&&e.insert.length==0||i==8&&e.insert.length<e.to-e.from&&e.to>s.head)&&bi(n.contentDOM,"Backspace",8)||e.from==s.from&&e.to==s.to+1&&e.insert.length==0&&bi(n.contentDOM,"Delete",46)))return!0;let r=e.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let o,l=()=>o||(o=mp(n,e,t));return n.state.facet(hc).some(a=>a(n,e.from,e.to,r,l))||n.dispatch(l()),!0}function mp(n,e,t){let i,s=n.state,r=s.selection.main,o=-1;if(e.from==e.to&&e.from<r.from||e.from>r.to){let a=e.from<r.from?-1:1,h=a<0?r.from:r.to,c=Yi(s.facet(wn).map(f=>f(n)),h,a);e.from==c&&(o=c)}if(o>-1)i={changes:e,selection:A.cursor(e.from+e.insert.length,-1)};else if(e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&n.inputState.composing<0){let a=r.from<e.from?s.sliceDoc(r.from,e.from):"",h=r.to>e.to?s.sliceDoc(e.to,r.to):"";i=s.replaceSelection(n.state.toText(a+e.insert.sliceString(0,void 0,n.state.lineBreak)+h))}else{let a=s.changes(e),h=t&&t.main.to<=a.newLength?t.main:void 0;if(s.selection.ranges.length>1&&(n.inputState.composing>=0||n.inputState.compositionPendingChange)&&e.to<=r.to+10&&e.to>=r.to-10){let c=n.state.sliceDoc(e.from,e.to),f,u=t&&xc(n,t.main.head);if(u){let p=e.insert.length-(e.to-e.from);f={from:u.from,to:u.to-p}}else f=n.state.doc.lineAt(r.head);let d=r.to-e.to;i=s.changeByRange(p=>{if(p.from==r.from&&p.to==r.to)return{changes:a,range:h||p.map(a)};let m=p.to-d,g=m-c.length;if(n.state.sliceDoc(g,m)!=c||m>=f.from&&g<=f.to)return{range:p};let y=s.changes({from:g,to:m,insert:e.insert}),x=p.to-r.to;return{changes:y,range:h?A.range(Math.max(0,h.anchor+x),Math.max(0,h.head+x)):p.map(y)}})}else i={changes:a,selection:h&&s.selection.replaceRange(h)}}let l="input.type";return(n.composing||n.inputState.compositionPendingChange&&n.inputState.compositionEndedAt>Date.now()-50)&&(n.inputState.compositionPendingChange=!1,l+=".compose",n.inputState.compositionFirstChange&&(l+=".start",n.inputState.compositionFirstChange=!1)),s.update(i,{userEvent:l,scrollIntoView:!0})}function Cc(n,e,t,i){let s=Math.min(n.length,e.length),r=0;for(;r<s&&n.charCodeAt(r)==e.charCodeAt(r);)r++;if(r==s&&n.length==e.length)return null;let o=n.length,l=e.length;for(;o>0&&l>0&&n.charCodeAt(o-1)==e.charCodeAt(l-1);)o--,l--;if(i=="end"){let a=Math.max(0,r-Math.min(o,l));t-=o+a-r}if(o<r&&n.length<e.length){let a=t<=r&&t>=o?r-t:0;r-=a,l=r+(l-o),o=r}else if(l<r){let a=t<=r&&t>=l?r-t:0;r-=a,o=r+(o-l),l=r}return{from:r,toA:o,toB:l}}function gp(n){let e=[];if(n.root.activeElement!=n.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:s,focusOffset:r}=n.observer.selectionRange;return t&&(e.push(new Wl(t,i)),(s!=t||r!=i)&&e.push(new Wl(s,r))),e}function yp(n,e){if(n.length==0)return null;let t=n[0].pos,i=n.length==2?n[1].pos:t;return t>-1&&i>-1?A.single(t+e,i+e):null}function bs(n,e){return e.head==n.main.head&&e.anchor==n.main.anchor}class bp{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.touchActive=!1,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.lastIOSMomentumScroll=0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,th
`))};if((E.mac||E.android)&&f.from==o-1&&/^\. ?$/.test(i.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(f={from:l,to:a,insert:te.of([i.text.replace("."," ")])}),this.pendingContextChange=f,!e.state.readOnly){let u=this.to-this.from+(f.to-f.from+f.insert.length);Uo(e,f,A.single(this.toEditorPos(i.selectionStart,u),this.toEditorPos(i.selectionEnd,u)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),f.from<f.to&&!f.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,i.updateRangeStart-1),Math.min(t.text.length,i.updateRangeStart+1)))&&this.handlers.compositionend(i)},this.handlers.characterboundsupdate=i=>{let s=[],r=null;for(let o=this.toEditorPos(i.rangeStart),l=this.toEditorPos(i.rangeEnd);o<l;o++){let a=e.coordsForChar(o);r=a&&new DOMRect(a.left,a.top,a.right-a.left,a.bottom-a.top)||r||new DOMRect,s.push(r)}t.updateCharacterBounds(i.rangeStart,s)},this.handlers.textformatupdate=i=>{let s=[];for(let r of i.getTextFormats()){let o=r.underlineStyle,l=r.underlineThickness;if(!/none/i.test(o)&&!/none/i.test(l)){let a=this.toEditorPos(r.rangeStart),h=this.toEditorPos(r.rangeEnd);if(a<h){let c=`text-decoration: underline ${/^[a-z]/.test(o)?o+" ":o=="Dashed"?"dashed ":o=="Squiggle"?"wavy ":""}${/thin/i.test(l)?1:2}px`;s.push(K.mark({attributes:{style:c}}).range(a,h))}}}e.dispatch({effects:pc.of(K.set(s))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:i}=this.composing;this.composing=null,i&&this.reset(e.state)}};for(let i in this.handlers)t.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{let s=sn(i.root);s&&s.rangeCount&&this.editContext.updateSelectionBounds(s.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,i=!1,s=this.pendingContextChange;return e.changes.iterChanges((r,o,l,a,h)=>{if(i)return;let c=h.length-(o-r);if(s&&o>=s.to)if(s.from==r&&s.to==o&&s.insert.eq(h)){s=this.pendingContextChange=null,t+=c,this.to+=c;return}else s=null,this.revertPending(e.state);if(r+=t,o+=t,o<=this.from)this.from+=c,this.to+=c;else if(r<this.to){if(r<this.from||o>this.to||this.to-this.from+h.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(r),this.toContextPos(o),h.toString()),this.to+=c}t+=c}),s&&!i&&this.revertPending(e.state),!i}update(e){let t=this.pendingContextChange,i=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(i.from,i.to)&&e.transactions.some(s=>!s.isUserEvent("input.type")&&s.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),s=this.toContextPos(t.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=s)&&this.editContext.updateSelection(i,s)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let i=this.composing;return i&&i.drifted?i.editorBase+(e-i.contextBase):e+this.
--Ÿ­؜\u2028\u2029\uFEFF-]`,mo),bm={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let mr=null;function vm(){var n;if(mr==null&&typeof document<"u"&&document.body){let e=document.body.style;mr=((n=e.tabSize)!==null&&n!==void 0?n:e.MozTabSize)!=null}return mr||!1}const ss=V.define({combine(n){let e=wt(n,{render:null,specialChars:ym,addSpecialChars:null});return(e.replaceTabs=!vm())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,mo)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,mo)),e}});function xm(n={}){return[ss.of(n),wm()]}let la=null;function wm(){return la||(la=de.fromClass(class{constructor(n){this.view=n,this.decorations=K.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(ss)),this.decorations=this.decorator.createDeco(n)}makeDecorator(n){return new gm({regexp:n.specialChars,decoration:(e,t,i)=>{let{doc:s}=t.state,r=Ve(e[0],0);if(r==9){let o=s.lineAt(i),l=t.state.tabSize,a=Pi(o.text,l,i-o.from);return K.replace({widget:new Am((l-a%l)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[r]||(this.decorationCache[r]=K.replace({widget:new Cm(n,r)}))},boundary:n.replaceTabs?void 0:/[^]/})}update(n){let e=n.state.facet(ss);n.startState.facet(ss)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}},{decorations:n=>n.decorations}))}const km="";function Sm(n){return n>=32?km:n==10?"":String.fromCharCode(9216+n)}class Cm extends kt{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=Sm(this.code),i=e.state.phrase("Control character")+" "+(bm[this.code]||"0x"+this.code.toString(16)),s=this.options.render&&this.options.render(this.code,i,t);if(s)return s;let r=document.createElement("span");return r.textContent=t,r.title=i,r.setAttribute("aria-label",i),r.className="cm-specialChar",r}ignoreEvent(){return!1}}class Am extends kt{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function Mm(){return Tm}const Om=K.line({class:"cm-activeLine"}),Tm=de.fromClass(class{constructor(n){this.decorations=this.getDeco(n)}update(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}getDeco(n){let e=-1,t=[];for(let i of n.state.selection.ranges){let s=n.lineBlockAt(i.head);s.from>e&&(t.push(Om.range(s.from)),e=s.from)}return K.set(t)}},{decorations:n=>n.decorations});class Dm extends kt{constructor(e){super(),this.content=e}toDOM(e){let t=document.createElement("span");return t.className="cm-placeholder",t.style.pointerEvents="none",t.appendChild(typeof this.content=="string"?document.createTextNode(this.content):typeof this.content=="function"?this.content(e):this.content.cloneNode(!0)),t.setAttribute("aria-hidden","true"),t}coordsAt(e){let t=e.firstChild?Ui(e.firstChild):[];if(!t.length)return null;let i=window.getComputedStyle(e.parentNode),s=rn(t[0],i.direction!="rtl"),r=parseInt(i.lineHeight);return s.bottom-s.top>r*1.5?{left:s.left,right:s.right,top:s.top,bottom:s.top+r}:s}ignoreEvent(){return!1}}function Pm(n){let e=de.fromClass(class{constructor(t){this.view=t,this.placeholder=n?K.set([K.widget({widget:new Dm(n),side:1}).range(0)]):K.none}get decorations(){return this.view.state.doc.length?K.none:this.placeholder}},{decorations:t=>t.decorations});return typeof n=="string"?[e,I.contentAttributes.of({"ar
`:i=="r"?"\r":i=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new Uy(this):new $y(this)}getCursor(e,t=0,i){let s=e.doc?e:ee.create({doc:e});return i==null&&(i=s.doc.length),this.regexp?ci(this,s,t,i):hi(this,s,t,i)}}class ru{constructor(e){this.spec=e}}function jy(n,e,t){return(i,s,r,o)=>{if(t&&!t(i,s,r,o))return!1;let l=i>=o&&s<=o+r.length?r.slice(i-o,s-o):e.doc.sliceString(i,s);return n(l,e,i,s)}}function hi(n,e,t,i){let s;return n.wholeWord&&(s=_y(e.doc,e.charCategorizer(e.selection.main.head))),n.test&&(s=jy(n.test,e,s)),new Di(e.doc,n.unquoted,t,i,n.caseSensitive?void 0:r=>r.toLowerCase(),s)}function _y(n,e){return(t,i,s,r)=>((r>t||r+s.length<i)&&(r=Math.max(0,t-2),s=n.sliceString(r,Math.min(n.length,i+2))),(e(Ps(s,t-r))!=ce.Word||e(Bs(s,t-r))!=ce.Word)&&(e(Bs(s,i-r))!=ce.Word||e(Ps(s,i-r))!=ce.Word))}class $y extends ru{constructor(e){super(e)}nextMatch(e,t,i){let s=hi(this.spec,e,i,e.doc.length).nextOverlapping();if(s.done){let r=Math.min(e.doc.length,t+this.spec.unquoted.length);s=hi(this.spec,e,0,r).nextOverlapping()}return s.done||s.value.from==t&&s.value.to==i?null:s.value}prevMatchInRange(e,t,i){for(let s=i;;){let r=Math.max(t,s-1e4-this.spec.unquoted.length),o=hi(this.spec,e,r,s),l=null;for(;!o.nextOverlapping().done;)l=o.value;if(l)return l;if(r==t)return null;s-=1e4}}prevMatch(e,t,i){let s=this.prevMatchInRange(e,0,t);return s||(s=this.prevMatchInRange(e,Math.max(0,i-this.spec.unquoted.length),e.doc.length)),s&&(s.from!=t||s.to!=i)?s:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let i=hi(this.spec,e,0,e.doc.length),s=[];for(;!i.next().done;){if(s.length>=t)return null;s.push(i.value)}return s}highlight(e,t,i,s){let r=hi(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!r.next().done;)s(r.value.from,r.value.to)}}function qy(n,e,t){return(i,s,r)=>(!t||t(i,s,r))&&n(r[0],e,i,s)}function ci(n,e,t,i){let s;return n.wholeWord&&(s=Ky(e.charCategorizer(e.selection.main.head))),n.test&&(s=qy(n.test,e,s)),new iu(e.doc,n.search,{ignoreCase:!n.caseSensitive,test:s},t,i)}function Ps(n,e){return n.slice(we(n,e,!1),e)}function Bs(n,e){return n.slice(e,we(n,e))}function Ky(n){return(e,t,i)=>!i[0].length||(n(Ps(i.input,i.index))!=ce.Word||n(Bs(i.input,i.index))!=ce.Word)&&(n(Bs(i.input,i.index+i[0].length))!=ce.Word||n(Ps(i.input,i.index+i[0].length))!=ce.Word)}class Uy extends ru{nextMatch(e,t,i){let s=ci(this.spec,e,i,e.doc.length).next();return s.done&&(s=ci(this.spec,e,0,t).next()),s.done?null:s.value}prevMatchInRange(e,t,i){for(let s=1;;s++){let r=Math.max(t,i-s*1e4),o=ci(this.spec,e,r,i),l=null;for(;!o.next().done;)l=o.value;if(l&&(r==t||l.from>r+10))return l;if(r==t)return null}}prevMatch(e,t,i){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,i)=>{if(i=="&")return e.match[0];if(i=="$")return"$";for(let s=i.length;s>0;s--){let r=+i.slice(0,s);if(r>0&&r<e.match.length)return e.match[r]+i.slice(s)}return t})}matchAll(e,t){let i=ci(this.spec,e,0,e.doc.length),s=[];for(;!i.next().done;){if(s.length>=t)return null;s.push(i.value)}return s}highlight(e,t,i,s){let r=ci(this.spec,e,Math.max(0,t-250),Math.min(i+250,e.doc.length));for(;!r.next().done;)s(r.value.from,r.value.to)}}const fn=Q.define(),hl=Q.define(),Vt=Te.define({create(n){return new Dr(To(n).create(),null)},update(n,e){for(let t of e.effects)t.is(fn)?n=new Dr(t.value.create(),n.panel):t.is(hl)&&(n=new Dr(n.query,t.value?cl:null));return n},provide:n=>ln.from(n,e=>e.panel)});class Dr{constructor(e,t){this.query=e,this.panel=t}}const Gy=K.mark({class:"cm-searchMatch"}),Yy=K.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Qy=de.fromClass(class{constructor(n){this.view=n,this.decorations=this.highlight(n.state.field(Vt))}update(n){let e=n.state.field(Vt);(e!=n.startState.field(Vt)||n.docCha
* VueCodemirror v6.1.1
* Copyright (c) Surmon. All rights reserved.
* Released under the MIT License.
* Surmon
*/var r1=Object.freeze({autofocus:!1,disabled:!1,indentWithTab:!0,tabSize:2,placeholder:"",autoDestroy:!0,extensions:[s1]}),o1=Symbol("vue-codemirror-global-config"),Be,l1=function(n){var e=n.onUpdate,t=n.onChange,i=n.onFocus,s=n.onBlur,r=function(o,l){var a={};for(var h in o)Object.prototype.hasOwnProperty.call(o,h)&&l.indexOf(h)<0&&(a[h]=o[h]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function"){var c=0;for(h=Object.getOwnPropertySymbols(o);c<h.length;c++)l.indexOf(h[c])<0&&Object.prototype.propertyIsEnumerable.call(o,h[c])&&(a[h[c]]=o[h[c]])}return a}(n,["onUpdate","onChange","onFocus","onBlur"]);return ee.create({doc:r.doc,selection:r.selection,extensions:(Array.isArray(r.extensions)?r.extensions:[r.extensions]).concat([I.updateListener.of(function(o){e(o),o.docChanged&&t(o.state.doc.toString(),o),o.focusChanged&&(o.view.hasFocus?i(o):s(o))})])})},fi=function(n){var e=new bn;return{compartment:e,run:function(t){e.get(n.state)?n.dispatch({effects:e.reconfigure(t)}):n.dispatch({effects:Q.appendConfig.of(e.of(t))})}}},eh=function(n,e){var t=fi(n),i=t.compartment,s=t.run;return function(r){var o=i.get(n.state);s(r??o!==e?e:[])}},Qn={type:Boolean,default:void 0},a1={autofocus:Qn,disabled:Qn,indentWithTab:Qn,tabSize:Number,placeholder:String,style:Object,autoDestroy:Qn,phrases:Object,root:Object,extensions:Array,selection:Object},h1={modelValue:{type:String,default:""}},c1=Object.assign(Object.assign({},a1),h1);(function(n){n.Change="change",n.Update="update",n.Focus="focus",n.Blur="blur",n.Ready="ready",n.ModelUpdate="update:modelValue"})(Be||(Be={}));var Jt={};Jt[Be.Change]=function(n,e){return!0},Jt[Be.Update]=function(n){return!0},Jt[Be.Focus]=function(n){return!0},Jt[Be.Blur]=function(n){return!0},Jt[Be.Ready]=function(n){return!0};var Cu={};Cu[Be.ModelUpdate]=Jt[Be.Change];var f1=Object.assign(Object.assign({},Jt),Cu),u1=Hs({name:"VueCodemirror",props:Object.assign({},c1),emits:Object.assign({},f1),setup:function(n,e){var t=nr(),i=nr(),s=nr(),r=Object.assign(Object.assign({},r1),Du(o1,{})),o=_i(function(){var l={};return Object.keys(Lu(n)).forEach(function(a){var h;a!=="modelValue"&&(l[a]=(h=n[a])!==null&&h!==void 0?h:r[a])}),l});return Ro(function(){var l;i.value=l1({doc:n.modelValue,selection:o.value.selection,extensions:(l=r.extensions)!==null&&l!==void 0?l:[],onFocus:function(h){return e.emit(Be.Focus,h)},onBlur:function(h){return e.emit(Be.Blur,h)},onUpdate:function(h){return e.emit(Be.Update,h)},onChange:function(h,c){h!==n.modelValue&&(e.emit(Be.Change,h,c),e.emit(Be.ModelUpdate,h,c))}}),s.value=function(h){return new I(Object.assign({},h))}({state:i.value,parent:t.value,root:o.value.root});var a=function(h){var c=function(){return h.state.doc.toString()},f=fi(h).run,u=eh(h,[I.editable.of(!1),ee.readOnly.of(!0)]),d=eh(h,Ks.of([Ty])),p=fi(h).run,m=fi(h).run,g=fi(h).run,y=fi(h).run;return{focus:function(){return h.focus()},getDoc:c,setDoc:function(x){x!==c()&&h.dispatch({changes:{from:0,to:h.state.doc.length,insert:x}})},reExtensions:f,toggleDisabled:u,toggleIndentWithTab:d,setTabSize:function(x){p([ee.tabSize.of(x),Gs.of(" ".repeat(x))])},setPhrases:function(x){m([ee.phrases.of(x)])},setPlaceholder:function(x){g(Pm(x))},setStyle:function(x){x===void 0&&(x={}),y(I.theme({"&":Object.assign({},x)}))}}}(s.value);tt(function(){return n.modelValue},function(h){h!==a.getDoc()&&a.setDoc(h)}),tt(function(){return n.extensions},function(h){return a.reExtensions(h||[])},{immediate:!0}),tt(function(){return o.value.disabled},function(h){return a.toggleDisabled(h)},{immediate:!0}),tt(function(){return o.value.indentWithTab},function(h){return a.toggleIndentWithTab(h)},{immediate:!0}),tt(function(){return o.value.tabSize},function(h){return a.setTabSize(h)},{immediate:!0}),tt(function(){return o.value.phrases},function(h){return a.setPhrases(h||{})},{immediate:!0}),tt(function(){return o.value.placeholder},function(h){return a.setPlaceholder(h)},{immediate:!0}),tt(function(){return o.value.style},function(h){return a.setStyle(h)},{immediate:!0}),o.value.autofocus&&a.focus(),e.emit(Be.Ready,{state:i.value,view:s.valu
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function gn(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}it.d(Au,{A:()=>$1});const z=(ph={Fragment:()=>Sh,computed:()=>_i,createTextVNode:()=>ge,createVNode:()=>_,defineComponent:()=>Hs,nextTick:()=>Eu,reactive:()=>kh,ref:()=>Ue,watch:()=>tt,watchEffect:()=>Ru},Nr={},it.d(Nr,ph),Nr),W1=(0,z.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var n=this.data,e=this.onClick;return(0,z.createVNode)("span",{class:"vjs-tree-brackets",onClick:e},[n])}}),H1=(0,z.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(n,e){var t=e.emit;return{uiType:(0,z.computed)(function(){return n.isMultiple?"checkbox":"radio"}),model:(0,z.computed)({get:function(){return n.checked},set:function(i){return t("update:modelValue",i)}})}},render:function(){var n=this.uiType,e=this.model,t=this.$emit;return(0,z.createVNode)("label",{class:["vjs-check-controller",e?"is-checked":""],onClick:function(i){return i.stopPropagation()}},[(0,z.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(n)},null),(0,z.createVNode)("input",{checked:e,class:"vjs-check-controller-original is-".concat(n),type:n,onChange:function(){return t("change",e)}},null)])}}),z1=(0,z.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var n=this.nodeType,e=this.onClick,t=n==="objectStart"||n==="arrayStart";return t||n==="objectCollapsed"||n==="arrayCollapsed"?(0,z.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(t?"open":"close"),onClick:e},[(0,z.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,z.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});var ph,Nr;function Bo(n){return Bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bo(n)}function Ou(n){return Object.prototype.toString.call(n).slice(8,-1).toLowerCase()}function Gt(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=(arguments.length>3?arguments[3]:void 0)||{},s=i.key,r=i.index,o=i.type,l=o===void 0?"content":o,a=i.showComma,h=a!==void 0&&a,c=i.length,f=c===void 0?1:c,u=Ou(n);if(u==="array"){var d=mh(n.map(function(g,y,x){return Gt(g,"".concat(e,"[").concat(y,"]"),t+1,{index:y,showComma:y!==x.length-1,length:f,type:l})}));return[Gt("[",e,t,{showComma:!1,key:s,length:n.length,type:"arrayStart"})[0]].concat(d,Gt("]",e,t,{showComma:h,length:n.length,type:"arrayEnd"})[0])}if(u==="object"){var p=Object.keys(n),m=mh(p.map(function(g,y,x){return Gt(n[g],/^[a-zA-Z_]\w*$/.test(g)?"".concat(e,".").concat(g):"".concat(e,'["').concat(g,'"]'),t+1,{key:g,showComma:y!==x.length-1,length:f,type:l})}));return[Gt("{",e,t,{showComma:!1,key:s,index:r,length:p.length,type:"objectStart"})[0]].concat(m,Gt("}",e,t,{showComma:h,length:p.length,type:"objectEnd"})[0])}return[{content:n,level:t,key:s,index:r,path:e,showComma:h,length:f,type:l}]}function mh(n){if(typeof Array.prototype.flat=="function")return n.flat();for(var e=Ws(n),t=[];e.length;){var i=e.shift();Array.isArray(i)?e.unshift.apply(e,Ws(i)):t.push(i)}return t}function Lo(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(n==null)return n;if(n instanceof Date)return new Date(n);if(n instanceof RegExp)return new RegExp(n);if(Bo(n)!=="object")return n;if(e.get(n))return e.get(n);if(Array.isArray(n)){var t=n.map(function(r){return Lo(r,e)});return e.set(n,t),t}var i={};for(var s in n)i[s]=Lo(n[s],e);return e.set(n,i),i}function gh(n,e,t,i,s,r,o){try{var l=n[r](o),a=l.v
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())[0],W=$;t("update:selectedValue",W),t("selectedChange",W,R)}},b=function(D){t("nodeClick",D)},C=function(D){t("nodeMouseover",D)},j=function(D,P){if(D)l.hiddenPaths=qe(qe({},l.hiddenPaths),{},gn({},P,1));else{var F=qe({},l.hiddenPaths);delete F[P],l.hiddenPaths=F}},q=function(D,P){n.collapsedOnClickBrackets&&j(D,P.path),t("bracketsClick",D,P)},H=function(D,P){j(D,P.path),t("iconClick",D,P)},N=function(D,P){var F=Lo(n.data),$=n.rootPath;new Function("data","val","data".concat(P.slice($.length),"=val"))(F,D),t("update:data",F)};return(0,z.watchEffect)(function(){y.value&&function(D){throw new Error("[VueJSONPretty] ".concat(D))}(y.value)}),(0,z.watchEffect)(function(){m.value&&(n.virtual&&n.dynamicHeight&&a.length!==m.value.length&&u(m.value.length),v())}),(0,z.watch)(function(){return[n.dynamicHeight,n.itemHeight,r.value.length]},function(){n.virtual&&n.dynamicHeight&&(u(m.value.length),(0,z.nextTick)(v))}),(0,z.watch)(function(){return n.deep},function(D){D&&(l.hiddenPaths=o(D,n.collapsedNodeLength))}),(0,z.watch)(function(){return n.collapsedNodeLength},function(D){D&&(l.hiddenPaths=o(n.deep,D))}),function(){var D,P,F,$,w,M=(D=n.renderNodeKey)!==null&&D!==void 0?D:i.renderNodeKey,B=(P=n.renderNodeValue)!==null&&P!==void 0?P:i.renderNodeValue,R=(F=($=n.renderNodeActions)!==null&&$!==void 0?$:i.renderNodeActions)!==null&&F!==void 0&&F,W=(w=l.visibleData)===null||w===void 0?void 0:w.map(function(G,J){var ne=l.startIndex+J;return(0,z.createVNode)("div",{key:G.id,ref:function(se){return function(U,re){re?f[U]=re:delete f[U]}(ne,se||null)}},[(0,z.createVNode)(_1,{data:n.data,rootPath:n.rootPath,indent:n.indent,node:G,collapsed:!!l.hiddenPaths[G.path],theme:n.theme,showDoubleQuotes:n.showDoubleQuotes,showLength:n.showLength,checked:g.value.includes(G.path),selectableType:n.selectableType,showLine:n.showLine,showLineNumber:n.showLineNumber,showSelectController:n.showSelectController,selectOnClickNode:n.selectOnClickNode,nodeSelectable:n.nodeSelectable,highlightSelectedNode:n.highlightSelectedNode,editable:n.editable,editableTrigger:n.editableTrigger,showIcon:n.showIcon,showKeyValueSpace:n.showKeyValueSpace,renderNodeKey:M,renderNodeValue:B,renderNodeActions:R,onNodeClick:b,onNodeMouseover:C,onBracketsClick:q,onIconClick:H,onSelectedChange:k,onValueChange:N,class:n.dynamicHeight?"dynamic-height":void 0,style:n.dynamicHeight?{}:n.itemHeight&&n.itemHeight!==20?{lineHeight:"".concat(n.itemHeight,"px")}:{}},null)])});return(0,z.createVNode)("div",{ref:s,class:{"vjs-tree":!0,"is-virtual":n.virtual,dark:n.theme==="dark"},onScroll:n.virtual?T:void 0,style:n.showLineNumber?qe({paddingLeft:"".concat(12*Number(r.value.length.toString().length),"px")},n.style):n.style},[n.virtual?(0,z.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(n.height,"px")}},[(0,z.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(x.value,"px")}},[(0,z.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(l.translateY,"px)")}},[W])])]):W])}}});var q1=Au.A;async function K1(){return await yn.get("/troubleshooting-templates")||[]}async function wh(n){return await yn.get(`/troubleshooting-templates/${n}`)}async function U1(n){return await yn.post("/troubleshooting-templates",n)}async function G1(n,e){return await yn.put(`/troubleshooting-templates/${n}`,e)}async function Y1(n){await yn.delete(`/troubleshooting-templates/${n}`)}function hs(n){return JSON.stringify(n,null,2)}function Q1(n){try{return{ok:!0,data:JSON.parse(n)}}catch(e){return{ok:!1,error:e.message}}}function Xi(n){if(!n)return 0;let e=1;if(n.children)for(const t of n.children)e+=Xi(t);return"yes_branch"in n&&n.yes_branch&&(e+=Xi(n.yes_branch)),"no_branch"in n&&n.no_branch&&(e+=Xi(n.no_branch)),e}function cs(n){if(!n)return 0;let e=n.type==="decision"?1:0;if(n.children)for(const t of n.children)e+=cs(t);return"yes_branch"in n&&n.yes_branch&&(e+=cs(n.yes_branch)),"no_branch"in n&&n.no_branch&&(e+=cs(n.no_branch)),e}const J1={class:"basic-info