@tuongaz/seeflow 0.1.71 → 0.1.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/web/assets/arc-DtxbFlka.js +1 -0
- package/dist/web/assets/architectureDiagram-3BPJPVTR-BE013nUd.js +36 -0
- package/dist/web/assets/band-BEGRCkg7.js +1 -0
- package/dist/web/assets/blockDiagram-GPEHLZMM-Dp6be3Ms.js +132 -0
- package/dist/web/assets/c4Diagram-AAUBKEIU-DaXH8gyS.js +10 -0
- package/dist/web/assets/channel-BXI2S8ym.js +1 -0
- package/dist/web/assets/chart-CTfwAwIW.js +73 -0
- package/dist/web/assets/chunk-2J33WTMH-DBOxtwXe.js +1 -0
- package/dist/web/assets/chunk-4BX2VUAB-BkqIaZzX.js +1 -0
- package/dist/web/assets/chunk-55IACEB6-Bf2GGBjw.js +1 -0
- package/dist/web/assets/chunk-727SXJPM-DT7H_Ach.js +206 -0
- package/dist/web/assets/chunk-AQP2D5EJ-VrM-sHKP.js +231 -0
- package/dist/web/assets/chunk-FMBD7UC4-Cl6A8JUa.js +15 -0
- package/dist/web/assets/chunk-ND2GUHAM-LRV96SE3.js +1 -0
- package/dist/web/assets/chunk-QZHKN3VN-Dj5_UVo9.js +1 -0
- package/dist/web/assets/classDiagram-4FO5ZUOK-Dm1vuLfb.js +1 -0
- package/dist/web/assets/classDiagram-v2-Q7XG4LA2-Dm1vuLfb.js +1 -0
- package/dist/web/assets/{code-block-CagXzbCC.js → code-block-Be3Lawg0.js} +1 -1
- package/dist/web/assets/cose-bilkent-S5V4N54A-4_XIQLKW.js +1 -0
- package/dist/web/assets/cytoscape.esm-BHYC38rz.js +331 -0
- package/dist/web/assets/dagre-BM42HDAG-Csr5BSLw.js +4 -0
- package/dist/web/assets/defaultLocale-CrowFXzY.js +1 -0
- package/dist/web/assets/diagram-2AECGRRQ-D9cawnSD.js +43 -0
- package/dist/web/assets/diagram-5GNKFQAL-Ba9mTl4r.js +10 -0
- package/dist/web/assets/diagram-KO2AKTUF-D_gNaP7M.js +3 -0
- package/dist/web/assets/diagram-LMA3HP47-BwPi3QWV.js +24 -0
- package/dist/web/assets/diagram-OG6HWLK6-C2iDWN55.js +24 -0
- package/dist/web/assets/erDiagram-TEJ5UH35-MBy10Qfr.js +85 -0
- package/dist/web/assets/flowDiagram-I6XJVG4X-CgVoK-B7.js +162 -0
- package/dist/web/assets/ganttDiagram-6RSMTGT7-DZZ43-Du.js +292 -0
- package/dist/web/assets/gitGraphDiagram-PVQCEYII-BwYPxvng.js +106 -0
- package/dist/web/assets/graph-Dqkl27Ch.js +1 -0
- package/dist/web/assets/index-DljfurDC.css +1 -0
- package/dist/web/assets/{index-NG9m5oBj.js → index-DrmDilPO.js} +1738 -1737
- package/dist/web/assets/{index.es-xel3SIo8.js → index.es-DpqYSimZ.js} +1 -1
- package/dist/web/assets/infoDiagram-5YYISTIA-j7zbBRny.js +2 -0
- package/dist/web/assets/init-BFKUnIhM.js +1 -0
- package/dist/web/assets/ishikawaDiagram-YF4QCWOH-DAp6W4Gj.js +70 -0
- package/dist/web/assets/journeyDiagram-JHISSGLW-Dde2JSR2.js +139 -0
- package/dist/web/assets/{jspdf.es.min-CIMMqiVE.js → jspdf.es.min-tC6T-F7r.js} +3 -3
- package/dist/web/assets/kanban-definition-UN3LZRKU-os60zjrz.js +89 -0
- package/dist/web/assets/katex-C5jXJg4s.js +257 -0
- package/dist/web/assets/layout-DO9UvE1P.js +1 -0
- package/dist/web/assets/linear-f3DePitM.js +1 -0
- package/dist/web/assets/markdown-Feo1eGLy.js +1 -0
- package/dist/web/assets/mermaid.core-DoXF1I4r.js +307 -0
- package/dist/web/assets/mindmap-definition-RKZ34NQL-D6K4uyrn.js +96 -0
- package/dist/web/assets/ordinal-BQ3KlzSu.js +1 -0
- package/dist/web/assets/pieDiagram-4H26LBE5-C4UX0DPX.js +30 -0
- package/dist/web/assets/quadrantDiagram-W4KKPZXB-iSE2IF5i.js +7 -0
- package/dist/web/assets/requirementDiagram-4Y6WPE33-D_lHCX3z.js +84 -0
- package/dist/web/assets/sankeyDiagram-5OEKKPKP-B0-DYq8M.js +40 -0
- package/dist/web/assets/sequenceDiagram-3UESZ5HK-BQM0i8wy.js +162 -0
- package/dist/web/assets/stateDiagram-AJRCARHV-DD0djwwD.js +1 -0
- package/dist/web/assets/stateDiagram-v2-BHNVJYJU-C-OF3f9a.js +1 -0
- package/dist/web/assets/step-CWvwoXpJ.js +1 -0
- package/dist/web/assets/time-BczydnL9.js +1 -0
- package/dist/web/assets/timeline-definition-PNZ67QCA-BjCNA-ke.js +120 -0
- package/dist/web/assets/vennDiagram-CIIHVFJN-G2L4S-_F.js +34 -0
- package/dist/web/assets/wardley-L42UT6IY-cmE8YucU.js +173 -0
- package/dist/web/assets/wardleyDiagram-YWT4CUSO-BM_S_KMT.js +78 -0
- package/dist/web/assets/xychartDiagram-2RQKCTM6-B_aQbaAw.js +7 -0
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/src/cli-manifest.ts +105 -37
- package/src/mcp.ts +8 -4
- package/src/schema-catalog.ts +29 -2
- package/src/schema.ts +91 -26
- package/src/watcher.ts +61 -13
- package/dist/web/assets/chart-CpHY42Vq.js +0 -73
- package/dist/web/assets/index-DJdVTUx5.css +0 -1
- package/dist/web/assets/markdown-DAvRjvM0.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as Ke,g as Do}from"./index-NG9m5oBj.js";import{_ as Xa}from"./jspdf.es.min-CIMMqiVE.js";var vt=function(a){return a&&a.Math===Math&&a},_=vt(typeof globalThis=="object"&&globalThis)||vt(typeof window=="object"&&window)||vt(typeof self=="object"&&self)||vt(typeof Ke=="object"&&Ke)||vt(typeof Ke=="object"&&Ke)||function(){return this}()||Function("return this")(),$t={},D=function(a){try{return!!a()}catch{return!0}},Al=D,he=!Al(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Pl=D,xr=!Pl(function(){var a=(function(){}).bind();return typeof a!="function"||a.hasOwnProperty("prototype")}),Rl=xr,Ut=Function.prototype.call,Y=Rl?Ut.bind(Ut):function(){return Ut.apply(Ut,arguments)},Lo={},ko={}.propertyIsEnumerable,Bo=Object.getOwnPropertyDescriptor,Nl=Bo&&!ko.call({1:2},1);Lo.f=Nl?function(e){var t=Bo(this,e);return!!t&&t.enumerable}:ko;var Si=function(a,e){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:e}},jo=xr,Fo=Function.prototype,Wa=Fo.call,Il=jo&&Fo.bind.bind(Wa,Wa),L=jo?Il:function(a){return function(){return Wa.apply(a,arguments)}},Uo=L,Ml=Uo({}.toString),_l=Uo("".slice),je=function(a){return _l(Ml(a),8,-1)},Vl=L,Dl=D,Ll=je,ea=Object,kl=Vl("".split),Go=Dl(function(){return!ea("z").propertyIsEnumerable(0)})?function(a){return Ll(a)==="String"?kl(a,""):ea(a)}:ea,Tr=function(a){return a==null},Bl=Tr,jl=TypeError,ve=function(a){if(Bl(a))throw new jl("Can't call method on "+a);return a},Fl=Go,Ul=ve,wt=function(a){return Fl(Ul(a))},ta=typeof document=="object"&&document.all,B=typeof ta>"u"&&ta!==void 0?function(a){return typeof a=="function"||a===ta}:function(a){return typeof a=="function"},Gl=B,ae=function(a){return typeof a=="object"?a!==null:Gl(a)},ra=_,zl=B,Hl=function(a){return zl(a)?a:void 0},Fe=function(a,e){return arguments.length<2?Hl(ra[a]):ra[a]&&ra[a][e]},Yl=L,Or=Yl({}.isPrototypeOf),Xl=_,yn=Xl.navigator,mn=yn&&yn.userAgent,Ct=mn?String(mn):"",zo=_,aa=Ct,bn=zo.process,xn=zo.Deno,Tn=bn&&bn.versions||xn&&xn.version,On=Tn&&Tn.v8,le,gr;On&&(le=On.split("."),gr=le[0]>0&&le[0]<4?1:+(le[0]+le[1]));!gr&&aa&&(le=aa.match(/Edge\/(\d+)/),(!le||le[1]>=74)&&(le=aa.match(/Chrome\/(\d+)/),le&&(gr=+le[1])));var Ei=gr,Sn=Ei,Wl=D,ql=_,Ql=ql.String,Ho=!!Object.getOwnPropertySymbols&&!Wl(function(){var a=Symbol("symbol detection");return!Ql(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&Sn&&Sn<41}),Kl=Ho,Yo=Kl&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Zl=Fe,Jl=B,eh=Or,th=Yo,rh=Object,Xo=th?function(a){return typeof a=="symbol"}:function(a){var e=Zl("Symbol");return Jl(e)&&eh(e.prototype,rh(a))},ah=String,Sr=function(a){try{return ah(a)}catch{return"Object"}},ih=B,nh=Sr,sh=TypeError,Te=function(a){if(ih(a))return a;throw new sh(nh(a)+" is not a function")},oh=Te,uh=Tr,ot=function(a,e){var t=a[e];return uh(t)?void 0:oh(t)},ia=Y,na=B,sa=ae,lh=TypeError,hh=function(a,e){var t,r;if(e==="string"&&na(t=a.toString)&&!sa(r=ia(t,a))||na(t=a.valueOf)&&!sa(r=ia(t,a))||e!=="string"&&na(t=a.toString)&&!sa(r=ia(t,a)))return r;throw new lh("Can't convert object to primitive value")},Wo={exports:{}},En=_,vh=Object.defineProperty,$i=function(a,e){try{vh(En,a,{value:e,configurable:!0,writable:!0})}catch{En[a]=e}return e},fh=_,ch=$i,$n="__core-js_shared__",wn=Wo.exports=fh[$n]||ch($n,{});(wn.versions||(wn.versions=[])).push({version:"3.49.0",mode:"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"});var wi=Wo.exports,Cn=wi,Ci=function(a,e){return Cn[a]||(Cn[a]=e||{})},gh=ve,dh=Object,Er=function(a){return dh(gh(a))},ph=L,yh=Er,mh=ph({}.hasOwnProperty),fe=Object.hasOwn||function(e,t){return mh(yh(e),t)},bh=L,xh=0,Th=Math.random(),Oh=bh(1.1.toString),qo=function(a){return"Symbol("+(a===void 0?"":a)+")_"+Oh(++xh+Th,36)},Sh=_,Eh=Ci,An=fe,$h=qo,wh=Ho,Ch=Yo,Ze=Sh.Symbol,oa=Eh("wks"),Ah=Ch?Ze.for||Ze:Ze&&Ze.withoutSetter||$h,z=function(a){return An(oa,a)||(oa[a]=wh&&An(Ze,a)?Ze[a]:Ah("Symbol."+a)),oa[a]},Ph=Y,Pn=ae,Rn=Xo,Rh=ot,Nh=hh,Ih=z,Mh=TypeError,_h=Ih("toPrimitive"),Vh=function(a,e){if(!Pn(a)||Rn(a))return a;var t=Rh(a,_h),r;if(t){if(e===void 0&&(e="default"),r=Ph(t,a,e),!Pn(r)||Rn(r))return r;throw new Mh("Can't convert object to primitive value")}return e===void 0&&(e="number"),Nh(a,e)},Dh=Vh,Lh=Xo,Qo=function(a){var e=Dh(a,"string");return Lh(e)?e:e+""},kh=_,Nn=ae,qa=kh.document,Bh=Nn(qa)&&Nn(qa.createElement),$r=function(a){return Bh?qa.createElement(a):{}},jh=he,Fh=D,Uh=$r,Ko=!jh&&!Fh(function(){return Object.defineProperty(Uh("div"),"a",{get:function(){return 7}}).a!==7}),Gh=he,zh=Y,Hh=Lo,Yh=Si,Xh=wt,Wh=Qo,qh=fe,Qh=Ko,In=Object.getOwnPropertyDescriptor;$t.f=Gh?In:function(e,t){if(e=Xh(e),t=Wh(t),Qh)try{return In(e,t)}catch{}if(qh(e,t))return Yh(!zh(Hh.f,e,t),e[t])};var Oe={},Kh=he,Zh=D,Zo=Kh&&Zh(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Jh=ae,ev=String,tv=TypeError,J=function(a){if(Jh(a))return a;throw new tv(ev(a)+" is not an object")},rv=he,av=Ko,iv=Zo,Gt=J,Mn=Qo,nv=TypeError,ua=Object.defineProperty,sv=Object.getOwnPropertyDescriptor,la="enumerable",ha="configurable",va="writable";Oe.f=rv?iv?function(e,t,r){if(Gt(e),t=Mn(t),Gt(r),typeof e=="function"&&t==="prototype"&&"value"in r&&va in r&&!r[va]){var i=sv(e,t);i&&i[va]&&(e[t]=r.value,r={configurable:ha in r?r[ha]:i[ha],enumerable:la in r?r[la]:i[la],writable:!1})}return ua(e,t,r)}:ua:function(e,t,r){if(Gt(e),t=Mn(t),Gt(r),av)try{return ua(e,t,r)}catch{}if("get"in r||"set"in r)throw new nv("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var ov=he,uv=Oe,lv=Si,At=ov?function(a,e,t){return uv.f(a,e,lv(1,t))}:function(a,e,t){return a[e]=t,a},Jo={exports:{}},Qa=he,hv=fe,eu=Function.prototype,vv=Qa&&Object.getOwnPropertyDescriptor,tu=hv(eu,"name"),fv=tu&&(function(){}).name==="something",cv=tu&&(!Qa||Qa&&vv(eu,"name").configurable),wr={PROPER:fv,CONFIGURABLE:cv},gv=L,dv=B,Ka=wi,pv=gv(Function.toString);dv(Ka.inspectSource)||(Ka.inspectSource=function(a){return pv(a)});var Ai=Ka.inspectSource,yv=_,mv=B,_n=yv.WeakMap,bv=mv(_n)&&/native code/.test(String(_n)),xv=Ci,Tv=qo,Vn=xv("keys"),Pi=function(a){return Vn[a]||(Vn[a]=Tv(a))},Ri={},Ov=bv,ru=_,Sv=ae,Ev=At,fa=fe,ca=wi,$v=Pi,wv=Ri,Dn="Object already initialized",Za=ru.TypeError,Cv=ru.WeakMap,dr,Ot,pr,Av=function(a){return pr(a)?Ot(a):dr(a,{})},Pv=function(a){return function(e){var t;if(!Sv(e)||(t=Ot(e)).type!==a)throw new Za("Incompatible receiver, "+a+" required");return t}};if(Ov||ca.state){var de=ca.state||(ca.state=new Cv);de.get=de.get,de.has=de.has,de.set=de.set,dr=function(a,e){if(de.has(a))throw new Za(Dn);return e.facade=a,de.set(a,e),e},Ot=function(a){return de.get(a)||{}},pr=function(a){return de.has(a)}}else{var Ye=$v("state");wv[Ye]=!0,dr=function(a,e){if(fa(a,Ye))throw new Za(Dn);return e.facade=a,Ev(a,Ye,e),e},Ot=function(a){return fa(a,Ye)?a[Ye]:{}},pr=function(a){return fa(a,Ye)}}var Cr={set:dr,get:Ot,has:pr,enforce:Av,getterFor:Pv},Ni=L,Rv=D,Nv=B,zt=fe,Ja=he,Iv=wr.CONFIGURABLE,Mv=Ai,au=Cr,_v=au.enforce,Vv=au.get,Ln=String,ur=Object.defineProperty,Dv=Ni("".slice),Lv=Ni("".replace),kv=Ni([].join),Bv=Ja&&!Rv(function(){return ur(function(){},"length",{value:8}).length!==8}),jv=String(String).split("String"),Fv=Jo.exports=function(a,e,t){Dv(Ln(e),0,7)==="Symbol("&&(e="["+Lv(Ln(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!zt(a,"name")||Iv&&a.name!==e)&&(Ja?ur(a,"name",{value:e,configurable:!0}):a.name=e),Bv&&t&&zt(t,"arity")&&a.length!==t.arity&&ur(a,"length",{value:t.arity});try{t&&zt(t,"constructor")&&t.constructor?Ja&&ur(a,"prototype",{writable:!1}):a.prototype&&(a.prototype=void 0)}catch{}var r=_v(a);return zt(r,"source")||(r.source=kv(jv,typeof e=="string"?e:"")),a};Function.prototype.toString=Fv(function(){return Nv(this)&&Vv(this).source||Mv(this)},"toString");var iu=Jo.exports,Uv=B,Gv=Oe,zv=iu,Hv=$i,Ue=function(a,e,t,r){r||(r={});var i=r.enumerable,n=r.name!==void 0?r.name:e;if(Uv(t)&&zv(t,n,r),r.global)i?a[e]=t:Hv(e,t);else{try{r.unsafe?a[e]&&(i=!0):delete a[e]}catch{}i?a[e]=t:Gv.f(a,e,{value:t,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return a},nu={},Yv=Math.ceil,Xv=Math.floor,Wv=Math.trunc||function(e){var t=+e;return(t>0?Xv:Yv)(t)},qv=Wv,Ar=function(a){var e=+a;return e!==e||e===0?0:qv(e)},Qv=Ar,Kv=Math.max,Zv=Math.min,Jv=function(a,e){var t=Qv(a);return t<0?Kv(t+e,0):Zv(t,e)},ef=Ar,tf=Math.min,ut=function(a){var e=ef(a);return e>0?tf(e,9007199254740991):0},rf=ut,Ii=function(a){return rf(a.length)},af=wt,nf=Jv,sf=Ii,of=function(a){return function(e,t,r){var i=af(e),n=sf(i);if(n===0)return!a&&-1;var o=nf(r,n),s;if(a&&t!==t){for(;n>o;)if(s=i[o++],s!==s)return!0}else for(;n>o;o++)if((a||o in i)&&i[o]===t)return a||o||0;return!a&&-1}},su={indexOf:of(!1)},uf=L,ga=fe,lf=wt,hf=su.indexOf,vf=Ri,kn=uf([].push),ou=function(a,e){var t=lf(a),r=0,i=[],n;for(n in t)!ga(vf,n)&&ga(t,n)&&kn(i,n);for(;e.length>r;)ga(t,n=e[r++])&&(~hf(i,n)||kn(i,n));return i},Mi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ff=ou,cf=Mi,gf=cf.concat("length","prototype");nu.f=Object.getOwnPropertyNames||function(e){return ff(e,gf)};var uu={};uu.f=Object.getOwnPropertySymbols;var df=Fe,pf=L,yf=nu,mf=uu,bf=J,xf=pf([].concat),Tf=df("Reflect","ownKeys")||function(e){var t=yf.f(bf(e)),r=mf.f;return r?xf(t,r(e)):t},Bn=fe,Of=Tf,Sf=$t,Ef=Oe,$f=function(a,e,t){for(var r=Of(e),i=Ef.f,n=Sf.f,o=0;o<r.length;o++){var s=r[o];!Bn(a,s)&&!(t&&Bn(t,s))&&i(a,s,n(e,s))}},wf=D,Cf=B,Af=/#|\.prototype\./,Pt=function(a,e){var t=Rf[Pf(a)];return t===If?!0:t===Nf?!1:Cf(e)?wf(e):!!e},Pf=Pt.normalize=function(a){return String(a).replace(Af,".").toLowerCase()},Rf=Pt.data={},Nf=Pt.NATIVE="N",If=Pt.POLYFILL="P",lu=Pt,Ht=_,Mf=$t.f,_f=At,Vf=Ue,Df=$i,Lf=$f,kf=lu,ee=function(a,e){var t=a.target,r=a.global,i=a.stat,n,o,s,u,l,h;if(r?o=Ht:i?o=Ht[t]||Df(t,{}):o=Ht[t]&&Ht[t].prototype,o)for(s in e){if(l=e[s],a.dontCallGetSet?(h=Mf(o,s),u=h&&h.value):u=o[s],n=kf(r?s:t+(i?".":"#")+s,a.forced),!n&&u!==void 0){if(typeof l==typeof u)continue;Lf(l,u)}(a.sham||u&&u.sham)&&_f(l,"sham",!0),Vf(o,s,l,a)}},ft=_,Bf=Ct,jf=je,Yt=function(a){return Bf.slice(0,a.length)===a},hu=function(){return Yt("Bun/")?"BUN":Yt("Cloudflare-Workers")?"CLOUDFLARE":Yt("Deno/")?"DENO":Yt("Node.js/")?"NODE":ft.Bun&&typeof Bun.version=="string"?"BUN":ft.Deno&&typeof Deno.version=="object"?"DENO":jf(ft.process)==="process"?"NODE":ft.window&&ft.document?"BROWSER":"REST"}(),Ff=hu,Pr=Ff==="NODE",Uf=_,Gf=Uf,zf=L,Hf=Te,Yf=function(a,e,t){try{return zf(Hf(Object.getOwnPropertyDescriptor(a,e)[t]))}catch{}},Xf=ae,Wf=function(a){return Xf(a)||a===null},qf=Wf,Qf=String,Kf=TypeError,Zf=function(a){if(qf(a))return a;throw new Kf("Can't set "+Qf(a)+" as a prototype")},Jf=Yf,ec=ae,tc=ve,rc=Zf,vu=Object.setPrototypeOf||("__proto__"in{}?function(){var a=!1,e={},t;try{t=Jf(Object.prototype,"__proto__","set"),t(e,[]),a=e instanceof Array}catch{}return function(i,n){return tc(i),rc(n),ec(i)&&(a?t(i,n):i.__proto__=n),i}}():void 0),ac=Oe.f,ic=fe,nc=z,jn=nc("toStringTag"),Rr=function(a,e,t){a&&!t&&(a=a.prototype),a&&!ic(a,jn)&&ac(a,jn,{configurable:!0,value:e})},Fn=iu,sc=Oe,oc=function(a,e,t){return t.get&&Fn(t.get,e,{getter:!0}),t.set&&Fn(t.set,e,{setter:!0}),sc.f(a,e,t)},uc=Fe,lc=oc,hc=z,vc=he,Un=hc("species"),fc=function(a){var e=uc(a);vc&&e&&!e[Un]&&lc(e,Un,{configurable:!0,get:function(){return this}})},cc=Or,gc=TypeError,dc=function(a,e){if(cc(e,a))return a;throw new gc("Incorrect invocation")},pc=z,yc=pc("toStringTag"),fu={};fu[yc]="z";var mc=String(fu)==="[object z]",bc=mc,xc=B,lr=je,Tc=z,Oc=Tc("toStringTag"),Sc=Object,Ec=lr(function(){return arguments}())==="Arguments",$c=function(a,e){try{return a[e]}catch{}},_i=bc?lr:function(a){var e,t,r;return a===void 0?"Undefined":a===null?"Null":typeof(t=$c(e=Sc(a),Oc))=="string"?t:Ec?lr(e):(r=lr(e))==="Object"&&xc(e.callee)?"Arguments":r},wc=L,Cc=D,cu=B,Ac=_i,Pc=Fe,Rc=Ai,gu=function(){},du=Pc("Reflect","construct"),Vi=/^\s*(?:class|function)\b/,Nc=wc(Vi.exec),Ic=!Vi.test(gu),ct=function(e){if(!cu(e))return!1;try{return du(gu,[],e),!0}catch{return!1}},pu=function(e){if(!cu(e))return!1;switch(Ac(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ic||!!Nc(Vi,Rc(e))}catch{return!0}};pu.sham=!0;var Mc=!du||Cc(function(){var a;return ct(ct.call)||!ct(Object)||!ct(function(){a=!0})||a})?pu:ct,_c=Mc,Vc=Sr,Dc=TypeError,Lc=function(a){if(_c(a))return a;throw new Dc(Vc(a)+" is not a constructor")},Gn=J,kc=Lc,Bc=Tr,jc=z,Fc=jc("species"),yu=function(a,e){var t=Gn(a).constructor,r;return t===void 0||Bc(r=Gn(t)[Fc])?e:kc(r)},Uc=xr,mu=Function.prototype,zn=mu.apply,Hn=mu.call,bu=typeof Reflect=="object"&&Reflect.apply||(Uc?Hn.bind(zn):function(){return Hn.apply(zn,arguments)}),Gc=je,zc=L,Nr=function(a){if(Gc(a)==="Function")return zc(a)},Yn=Nr,Hc=Te,Yc=xr,Xc=Yn(Yn.bind),Di=function(a,e){return Hc(a),e===void 0?a:Yc?Xc(a,e):function(){return a.apply(e,arguments)}},Wc=Fe,xu=Wc("document","documentElement"),qc=L,Qc=qc([].slice),Kc=TypeError,Zc=function(a,e){if(a<e)throw new Kc("Not enough arguments");return a},Xn=Ct,Tu=/ipad|iphone|ipod/i.test(Xn)&&/applewebkit/i.test(Xn),ie=_,Jc=bu,eg=Di,Wn=B,tg=fe,Ou=D,qn=xu,rg=Qc,Qn=$r,ag=Zc,ig=Tu,ng=Pr,ei=ie.setImmediate,Kn=ie.clearImmediate,sg=ie.process,da=ie.Dispatch,og=ie.Function,Zn=ie.MessageChannel,ug=ie.String,pa=0,xt={},Jn="onreadystatechange",St,Ie,ya,ma;Ou(function(){St=ie.location});var Li=function(a){if(tg(xt,a)){var e=xt[a];delete xt[a],e()}},ba=function(a){return function(){Li(a)}},es=function(a){Li(a.data)},ts=function(a){ie.postMessage(ug(a),St.protocol+"//"+St.host)};(!ei||!Kn)&&(ei=function(e){ag(arguments.length,1);var t=Wn(e)?e:og(e),r=rg(arguments,1);return xt[++pa]=function(){Jc(t,void 0,r)},Ie(pa),pa},Kn=function(e){delete xt[e]},ng?Ie=function(a){sg.nextTick(ba(a))}:da&&da.now?Ie=function(a){da.now(ba(a))}:Zn&&!ig?(ya=new Zn,ma=ya.port2,ya.port1.onmessage=es,Ie=eg(ma.postMessage,ma)):ie.addEventListener&&Wn(ie.postMessage)&&!ie.importScripts&&St&&St.protocol!=="file:"&&!Ou(ts)?(Ie=ts,ie.addEventListener("message",es,!1)):Jn in Qn("script")?Ie=function(a){qn.appendChild(Qn("script"))[Jn]=function(){qn.removeChild(this),Li(a)}}:Ie=function(a){setTimeout(ba(a),0)});var Su={set:ei},rs=_,lg=he,hg=Object.getOwnPropertyDescriptor,vg=function(a){if(!lg)return rs[a];var e=hg(rs,a);return e&&e.value},Eu=function(){this.head=null,this.tail=null};Eu.prototype={add:function(a){var e={item:a,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var a=this.head;if(a){var e=this.head=a.next;return e===null&&(this.tail=null),a.item}}};var $u=Eu,fg=Ct,cg=/ipad|iphone|ipod/i.test(fg)&&typeof Pebble<"u",gg=Ct,dg=/web0s(?!.*chrome)/i.test(gg),it=_,pg=vg,as=Di,xa=Su.set,yg=$u,mg=Tu,bg=cg,xg=dg,Ta=Pr,is=it.MutationObserver||it.WebKitMutationObserver,ns=it.document,ss=it.process,Xt=it.Promise,ti=pg("queueMicrotask"),Xe,Oa,Sa,Wt,os;if(!ti){var qt=new yg,Qt=function(){var a,e;for(Ta&&(a=ss.domain)&&a.exit();e=qt.get();)try{e()}catch(t){throw qt.head&&Xe(),t}a&&a.enter()};!mg&&!Ta&&!xg&&is&&ns?(Oa=!0,Sa=ns.createTextNode(""),new is(Qt).observe(Sa,{characterData:!0}),Xe=function(){Sa.data=Oa=!Oa}):!bg&&Xt&&Xt.resolve?(Wt=Xt.resolve(void 0),Wt.constructor=Xt,os=as(Wt.then,Wt),Xe=function(){os(Qt)}):Ta?Xe=function(){ss.nextTick(Qt)}:(xa=as(xa,it),Xe=function(){xa(Qt)}),ti=function(a){qt.head||Xe(),qt.add(a)}}var Tg=ti,Og=function(a,e){try{arguments.length===1?console.error(a):console.error(a,e)}catch{}},ki=function(a){try{return{error:!1,value:a()}}catch(e){return{error:!0,value:e}}},Sg=_,Ir=Sg.Promise,Eg=_,Tt=Ir,$g=B,wg=lu,Cg=Ai,Ag=z,us=hu,Ea=Ei;Tt&&Tt.prototype;var Pg=Ag("species"),ri=!1,wu=$g(Eg.PromiseRejectionEvent),Rg=wg("Promise",function(){var a=Cg(Tt),e=a!==String(Tt);if(!e&&Ea===66)return!0;if(!Ea||Ea<51||!/native code/.test(a)){var t=new Tt(function(n){n(1)}),r=function(n){n(function(){},function(){})},i=t.constructor={};if(i[Pg]=r,ri=t.then(function(){})instanceof r,!ri)return!0}return!e&&(us==="BROWSER"||us==="DENO")&&!wu}),Rt={CONSTRUCTOR:Rg,REJECTION_EVENT:wu,SUBCLASSING:ri},lt={},ls=Te,Ng=TypeError,Ig=function(a){var e,t;this.promise=new a(function(r,i){if(e!==void 0||t!==void 0)throw new Ng("Bad Promise constructor");e=r,t=i}),this.resolve=ls(e),this.reject=ls(t)};lt.f=function(a){return new Ig(a)};var Mg=ee,yr=Pr,we=_,_g=Gf,nt=Y,hs=Ue,vs=vu,Vg=Rr,Dg=fc,Lg=Te,hr=B,kg=ae,Bg=dc,jg=yu,Cu=Su.set,Bi=Tg,Fg=Og,Ug=ki,Gg=$u,Au=Cr,mr=Ir,ji=Rt,Pu=lt,Mr="Promise",Ru=ji.CONSTRUCTOR,zg=ji.REJECTION_EVENT,Hg=ji.SUBCLASSING,$a=Au.getterFor(Mr),Yg=Au.set,Qe=mr&&mr.prototype,Le=mr,Kt=Qe,Nu=we.TypeError,ai=we.document,Fi=we.process,ii=Pu.f,Xg=ii,Wg=!!(ai&&ai.createEvent&&we.dispatchEvent),Iu="unhandledrejection",qg="rejectionhandled",fs=0,Mu=1,Qg=2,Ui=1,_u=2,Zt,cs,Vu,gs,Du=function(a){var e;return kg(a)&&hr(e=a.then)?e:!1},Lu=function(a,e){var t=e.value,r=e.state===Mu,i=r?a.ok:a.fail,n=a.resolve,o=a.reject,s=a.domain,u,l,h;try{i?(r||(e.rejection===_u&&Zg(e),e.rejection=Ui),i===!0?u=t:(s&&s.enter(),u=i(t),s&&(s.exit(),h=!0)),u===a.promise?o(new Nu("Promise-chain cycle")):(l=Du(u))?nt(l,u,n,o):n(u)):o(t)}catch(f){s&&!h&&s.exit(),o(f)}},ku=function(a,e){a.notified||(a.notified=!0,Bi(function(){for(var t=a.reactions,r;r=t.get();)Lu(r,a);a.notified=!1,e&&!a.rejection&&Kg(a)}))},Bu=function(a,e,t){var r,i;Wg?(r=ai.createEvent("Event"),r.promise=e,r.reason=t,r.initEvent(a,!1,!0),we.dispatchEvent(r)):r={promise:e,reason:t},!zg&&(i=we["on"+a])?i(r):a===Iu&&Fg("Unhandled promise rejection",t)},Kg=function(a){nt(Cu,we,function(){var e=a.facade,t=a.value,r=ds(a),i;if(r&&(i=Ug(function(){yr?Fi.emit("unhandledRejection",t,e):Bu(Iu,e,t)}),a.rejection=yr||ds(a)?_u:Ui,i.error))throw i.value})},ds=function(a){return a.rejection!==Ui&&!a.parent},Zg=function(a){nt(Cu,we,function(){var e=a.facade;yr?Fi.emit("rejectionHandled",e):Bu(qg,e,a.value)})},Je=function(a,e,t){return function(r){a(e,r,t)}},tt=function(a,e,t){a.done||(a.done=!0,t&&(a=t),a.value=e,a.state=Qg,ku(a,!0))},ni=function(a,e,t){if(!a.done){a.done=!0,t&&(a=t);try{if(a.facade===e)throw new Nu("Promise can't be resolved itself");var r=Du(e);r?Bi(function(){var i={done:!1};try{nt(r,e,Je(ni,i,a),Je(tt,i,a))}catch(n){tt(i,n,a)}}):(a.value=e,a.state=Mu,ku(a,!1))}catch(i){tt({done:!1},i,a)}}};if(Ru&&(Le=function(e){Bg(this,Kt),Lg(e),nt(Zt,this);var t=$a(this);try{e(Je(ni,t),Je(tt,t))}catch(r){tt(t,r)}},Kt=Le.prototype,Zt=function(e){Yg(this,{type:Mr,done:!1,notified:!1,parent:!1,reactions:new Gg,rejection:!1,state:fs,value:null})},Zt.prototype=hs(Kt,"then",function(e,t){var r=$a(this),i=ii(jg(this,Le));return r.parent=!0,i.ok=hr(e)?e:!0,i.fail=hr(t)&&t,i.domain=yr?Fi.domain:void 0,r.state===fs?r.reactions.add(i):Bi(function(){Lu(i,r)}),i.promise}),cs=function(){var a=new Zt,e=$a(a);this.promise=a,this.resolve=Je(ni,e),this.reject=Je(tt,e)},Pu.f=ii=function(a){return a===Le||a===Vu?new cs(a):Xg(a)},hr(mr)&&Qe!==Object.prototype)){gs=Qe.then,Hg||hs(Qe,"then",function(e,t){var r=this;return new Le(function(i,n){nt(gs,r,i,n)}).then(e,t)},{unsafe:!0});try{delete Qe.constructor}catch{}vs&&vs(Qe,Kt)}Mg({global:!0,constructor:!0,wrap:!0,forced:Ru},{Promise:Le});Vu=_g.Promise;Vg(Le,Mr,!1);Dg(Mr);var Nt={},Jg=z,ed=Nt,td=Jg("iterator"),rd=Array.prototype,ad=function(a){return a!==void 0&&(ed.Array===a||rd[td]===a)},id=_i,ps=ot,nd=Tr,sd=Nt,od=z,ud=od("iterator"),ju=function(a){if(!nd(a))return ps(a,ud)||ps(a,"@@iterator")||sd[id(a)]},ld=Y,hd=Te,vd=J,fd=Sr,cd=ju,gd=TypeError,dd=function(a,e){var t=arguments.length<2?cd(a):e;if(hd(t))return vd(ld(t,a));throw new gd(fd(a)+" is not iterable")},pd=Y,ys=J,yd=ot,md=function(a,e,t){var r,i;ys(a);try{if(r=yd(a,"return"),!r){if(e==="throw")throw t;return t}r=pd(r,a)}catch(n){i=!0,r=n}if(e==="throw")throw t;if(i)throw r;return ys(r),t},bd=Di,xd=Y,Td=J,Od=Sr,Sd=ad,Ed=Ii,ms=Or,$d=dd,wd=ju,bs=md,Cd=TypeError,vr=function(a,e){this.stopped=a,this.result=e},xs=vr.prototype,Fu=function(a,e,t){var r=t&&t.that,i=!!(t&&t.AS_ENTRIES),n=!!(t&&t.IS_RECORD),o=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),u=bd(e,r),l,h,f,c,v,g,d,p=function(b){var x=l;return l=void 0,x&&bs(x,"normal"),new vr(!0,b)},y=function(b){return i?(Td(b),s?u(b[0],b[1],p):u(b[0],b[1])):s?u(b,p):u(b)};if(n)l=a.iterator;else if(o)l=a;else{if(h=wd(a),!h)throw new Cd(Od(a)+" is not iterable");if(Sd(h)){for(f=0,c=Ed(a);c>f;f++)if(v=y(a[f]),v&&ms(xs,v))return v;return new vr(!1)}l=$d(a,h)}for(g=n?a.next:l.next;!(d=xd(g,l)).done;){var T=d.value;try{v=y(T)}catch(b){if(l)bs(l,"throw",b);else throw b}if(typeof v=="object"&&v&&ms(xs,v))return v}return new vr(!1)},Ad=z,Uu=Ad("iterator"),Gu=!1;try{var Pd=0,Ts={next:function(){return{done:!!Pd++}},return:function(){Gu=!0}};Ts[Uu]=function(){return this},Array.from(Ts,function(){throw 2})}catch{}var Rd=function(a,e){try{if(!e&&!Gu)return!1}catch{return!1}var t=!1;try{var r={};r[Uu]=function(){return{next:function(){return{done:t=!0}}}},a(r)}catch{}return t},Nd=Ir,Id=Rd,Md=Rt.CONSTRUCTOR,zu=Md||!Id(function(a){Nd.all(a).then(void 0,function(){})}),_d=ee,Vd=Y,Dd=Te,Ld=lt,kd=ki,Bd=Fu,jd=zu;_d({target:"Promise",stat:!0,forced:jd},{all:function(e){var t=this,r=Ld.f(t),i=r.resolve,n=r.reject,o=kd(function(){var s=Dd(t.resolve),u=[],l=0,h=1;Bd(e,function(f){var c=l++,v=!1;h++,Vd(s,t,f).then(function(g){v||(v=!0,u[c]=g,--h||i(u))},n)}),--h||i(u)});return o.error&&n(o.value),r.promise}});var Fd=ee,Ud=Rt.CONSTRUCTOR,si=Ir,Gd=Fe,zd=B,Hd=Ue,Os=si&&si.prototype;Fd({target:"Promise",proto:!0,forced:Ud,real:!0},{catch:function(a){return this.then(void 0,a)}});if(zd(si)){var Ss=Gd("Promise").prototype.catch;Os.catch!==Ss&&Hd(Os,"catch",Ss,{unsafe:!0})}var Yd=ee,Xd=Y,Wd=Te,qd=lt,Qd=ki,Kd=Fu,Zd=zu;Yd({target:"Promise",stat:!0,forced:Zd},{race:function(e){var t=this,r=qd.f(t),i=r.reject,n=Qd(function(){var o=Wd(t.resolve);Kd(e,function(s){Xd(o,t,s).then(r.resolve,i)})});return n.error&&i(n.value),r.promise}});var Jd=ee,ep=lt,tp=Rt.CONSTRUCTOR;Jd({target:"Promise",stat:!0,forced:tp},{reject:function(e){var t=ep.f(this),r=t.reject;return r(e),t.promise}});var rp=J,ap=ae,ip=lt,np=function(a,e){if(rp(a),ap(e)&&e.constructor===a)return e;var t=ip.f(a),r=t.resolve;return r(e),t.promise},sp=ee,op=Fe,up=Rt.CONSTRUCTOR,lp=np;op("Promise");sp({target:"Promise",stat:!0,forced:up},{resolve:function(e){return lp(this,e)}});function Es(a,e,t,r,i,n,o){try{var s=a[n](o),u=s.value}catch(l){return void t(l)}s.done?e(u):Promise.resolve(u).then(r,i)}function xe(a){return function(){var e=this,t=arguments;return new Promise(function(r,i){var n=a.apply(e,t);function o(u){Es(n,r,i,o,s,"next",u)}function s(u){Es(n,r,i,o,s,"throw",u)}o(void 0)})}}var hp=_i,vp=String,pe=function(a){if(hp(a)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return vp(a)},fp=J,Hu=function(){var a=fp(this),e="";return a.hasIndices&&(e+="d"),a.global&&(e+="g"),a.ignoreCase&&(e+="i"),a.multiline&&(e+="m"),a.dotAll&&(e+="s"),a.unicode&&(e+="u"),a.unicodeSets&&(e+="v"),a.sticky&&(e+="y"),e},Gi=D,cp=_,zi=cp.RegExp,Hi=Gi(function(){var a=zi("a","y");return a.lastIndex=2,a.exec("abcd")!==null});Hi||Gi(function(){return!zi("a","y").sticky});var gp=Hi||Gi(function(){var a=zi("^r","gy");return a.lastIndex=2,a.exec("str")!==null}),Yu={BROKEN_CARET:gp,UNSUPPORTED_Y:Hi},Xu={},dp=ou,pp=Mi,yp=Object.keys||function(e){return dp(e,pp)},mp=he,bp=Zo,xp=Oe,Tp=J,Op=wt,Sp=yp;Xu.f=mp&&!bp?Object.defineProperties:function(e,t){Tp(e);for(var r=Op(t),i=Sp(t),n=i.length,o=0,s;n>o;)xp.f(e,s=i[o++],r[s]);return e};var Ep=J,$p=Xu,$s=Mi,wp=Ri,Cp=xu,Ap=$r,Pp=Pi,ws=">",Cs="<",oi="prototype",ui="script",Wu=Pp("IE_PROTO"),wa=function(){},qu=function(a){return Cs+ui+ws+a+Cs+"/"+ui+ws},As=function(a){a.write(qu("")),a.close();var e=a.parentWindow.Object;return a=null,e},Rp=function(){var a=Ap("iframe"),e="java"+ui+":",t;return a.style.display="none",Cp.appendChild(a),a.src=String(e),t=a.contentWindow.document,t.open(),t.write(qu("document.F=Object")),t.close(),t.F},Jt,fr=function(){try{Jt=new ActiveXObject("htmlfile")}catch{}fr=typeof document<"u"?document.domain&&Jt?As(Jt):Rp():As(Jt);for(var a=$s.length;a--;)delete fr[oi][$s[a]];return fr()};wp[Wu]=!0;var Yi=Object.create||function(e,t){var r;return e!==null?(wa[oi]=Ep(e),r=new wa,wa[oi]=null,r[Wu]=e):r=fr(),t===void 0?r:$p.f(r,t)},Np=D,Ip=_,Mp=Ip.RegExp,_p=Np(function(){var a=Mp(".","s");return!(a.dotAll&&a.test(`
|
|
1
|
+
import{d as Ke,h as Do}from"./index-DrmDilPO.js";import{_ as Xa}from"./jspdf.es.min-tC6T-F7r.js";var vt=function(a){return a&&a.Math===Math&&a},_=vt(typeof globalThis=="object"&&globalThis)||vt(typeof window=="object"&&window)||vt(typeof self=="object"&&self)||vt(typeof Ke=="object"&&Ke)||vt(typeof Ke=="object"&&Ke)||function(){return this}()||Function("return this")(),$t={},D=function(a){try{return!!a()}catch{return!0}},Al=D,he=!Al(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Pl=D,xr=!Pl(function(){var a=(function(){}).bind();return typeof a!="function"||a.hasOwnProperty("prototype")}),Rl=xr,Ut=Function.prototype.call,Y=Rl?Ut.bind(Ut):function(){return Ut.apply(Ut,arguments)},Lo={},ko={}.propertyIsEnumerable,Bo=Object.getOwnPropertyDescriptor,Nl=Bo&&!ko.call({1:2},1);Lo.f=Nl?function(e){var t=Bo(this,e);return!!t&&t.enumerable}:ko;var Si=function(a,e){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:e}},jo=xr,Fo=Function.prototype,Wa=Fo.call,Il=jo&&Fo.bind.bind(Wa,Wa),L=jo?Il:function(a){return function(){return Wa.apply(a,arguments)}},Uo=L,Ml=Uo({}.toString),_l=Uo("".slice),je=function(a){return _l(Ml(a),8,-1)},Vl=L,Dl=D,Ll=je,ea=Object,kl=Vl("".split),Go=Dl(function(){return!ea("z").propertyIsEnumerable(0)})?function(a){return Ll(a)==="String"?kl(a,""):ea(a)}:ea,Tr=function(a){return a==null},Bl=Tr,jl=TypeError,ve=function(a){if(Bl(a))throw new jl("Can't call method on "+a);return a},Fl=Go,Ul=ve,wt=function(a){return Fl(Ul(a))},ta=typeof document=="object"&&document.all,B=typeof ta>"u"&&ta!==void 0?function(a){return typeof a=="function"||a===ta}:function(a){return typeof a=="function"},Gl=B,ae=function(a){return typeof a=="object"?a!==null:Gl(a)},ra=_,zl=B,Hl=function(a){return zl(a)?a:void 0},Fe=function(a,e){return arguments.length<2?Hl(ra[a]):ra[a]&&ra[a][e]},Yl=L,Or=Yl({}.isPrototypeOf),Xl=_,yn=Xl.navigator,mn=yn&&yn.userAgent,Ct=mn?String(mn):"",zo=_,aa=Ct,bn=zo.process,xn=zo.Deno,Tn=bn&&bn.versions||xn&&xn.version,On=Tn&&Tn.v8,le,gr;On&&(le=On.split("."),gr=le[0]>0&&le[0]<4?1:+(le[0]+le[1]));!gr&&aa&&(le=aa.match(/Edge\/(\d+)/),(!le||le[1]>=74)&&(le=aa.match(/Chrome\/(\d+)/),le&&(gr=+le[1])));var Ei=gr,Sn=Ei,Wl=D,ql=_,Ql=ql.String,Ho=!!Object.getOwnPropertySymbols&&!Wl(function(){var a=Symbol("symbol detection");return!Ql(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&Sn&&Sn<41}),Kl=Ho,Yo=Kl&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Zl=Fe,Jl=B,eh=Or,th=Yo,rh=Object,Xo=th?function(a){return typeof a=="symbol"}:function(a){var e=Zl("Symbol");return Jl(e)&&eh(e.prototype,rh(a))},ah=String,Sr=function(a){try{return ah(a)}catch{return"Object"}},ih=B,nh=Sr,sh=TypeError,Te=function(a){if(ih(a))return a;throw new sh(nh(a)+" is not a function")},oh=Te,uh=Tr,ot=function(a,e){var t=a[e];return uh(t)?void 0:oh(t)},ia=Y,na=B,sa=ae,lh=TypeError,hh=function(a,e){var t,r;if(e==="string"&&na(t=a.toString)&&!sa(r=ia(t,a))||na(t=a.valueOf)&&!sa(r=ia(t,a))||e!=="string"&&na(t=a.toString)&&!sa(r=ia(t,a)))return r;throw new lh("Can't convert object to primitive value")},Wo={exports:{}},En=_,vh=Object.defineProperty,$i=function(a,e){try{vh(En,a,{value:e,configurable:!0,writable:!0})}catch{En[a]=e}return e},fh=_,ch=$i,$n="__core-js_shared__",wn=Wo.exports=fh[$n]||ch($n,{});(wn.versions||(wn.versions=[])).push({version:"3.49.0",mode:"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"});var wi=Wo.exports,Cn=wi,Ci=function(a,e){return Cn[a]||(Cn[a]=e||{})},gh=ve,dh=Object,Er=function(a){return dh(gh(a))},ph=L,yh=Er,mh=ph({}.hasOwnProperty),fe=Object.hasOwn||function(e,t){return mh(yh(e),t)},bh=L,xh=0,Th=Math.random(),Oh=bh(1.1.toString),qo=function(a){return"Symbol("+(a===void 0?"":a)+")_"+Oh(++xh+Th,36)},Sh=_,Eh=Ci,An=fe,$h=qo,wh=Ho,Ch=Yo,Ze=Sh.Symbol,oa=Eh("wks"),Ah=Ch?Ze.for||Ze:Ze&&Ze.withoutSetter||$h,z=function(a){return An(oa,a)||(oa[a]=wh&&An(Ze,a)?Ze[a]:Ah("Symbol."+a)),oa[a]},Ph=Y,Pn=ae,Rn=Xo,Rh=ot,Nh=hh,Ih=z,Mh=TypeError,_h=Ih("toPrimitive"),Vh=function(a,e){if(!Pn(a)||Rn(a))return a;var t=Rh(a,_h),r;if(t){if(e===void 0&&(e="default"),r=Ph(t,a,e),!Pn(r)||Rn(r))return r;throw new Mh("Can't convert object to primitive value")}return e===void 0&&(e="number"),Nh(a,e)},Dh=Vh,Lh=Xo,Qo=function(a){var e=Dh(a,"string");return Lh(e)?e:e+""},kh=_,Nn=ae,qa=kh.document,Bh=Nn(qa)&&Nn(qa.createElement),$r=function(a){return Bh?qa.createElement(a):{}},jh=he,Fh=D,Uh=$r,Ko=!jh&&!Fh(function(){return Object.defineProperty(Uh("div"),"a",{get:function(){return 7}}).a!==7}),Gh=he,zh=Y,Hh=Lo,Yh=Si,Xh=wt,Wh=Qo,qh=fe,Qh=Ko,In=Object.getOwnPropertyDescriptor;$t.f=Gh?In:function(e,t){if(e=Xh(e),t=Wh(t),Qh)try{return In(e,t)}catch{}if(qh(e,t))return Yh(!zh(Hh.f,e,t),e[t])};var Oe={},Kh=he,Zh=D,Zo=Kh&&Zh(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Jh=ae,ev=String,tv=TypeError,J=function(a){if(Jh(a))return a;throw new tv(ev(a)+" is not an object")},rv=he,av=Ko,iv=Zo,Gt=J,Mn=Qo,nv=TypeError,ua=Object.defineProperty,sv=Object.getOwnPropertyDescriptor,la="enumerable",ha="configurable",va="writable";Oe.f=rv?iv?function(e,t,r){if(Gt(e),t=Mn(t),Gt(r),typeof e=="function"&&t==="prototype"&&"value"in r&&va in r&&!r[va]){var i=sv(e,t);i&&i[va]&&(e[t]=r.value,r={configurable:ha in r?r[ha]:i[ha],enumerable:la in r?r[la]:i[la],writable:!1})}return ua(e,t,r)}:ua:function(e,t,r){if(Gt(e),t=Mn(t),Gt(r),av)try{return ua(e,t,r)}catch{}if("get"in r||"set"in r)throw new nv("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var ov=he,uv=Oe,lv=Si,At=ov?function(a,e,t){return uv.f(a,e,lv(1,t))}:function(a,e,t){return a[e]=t,a},Jo={exports:{}},Qa=he,hv=fe,eu=Function.prototype,vv=Qa&&Object.getOwnPropertyDescriptor,tu=hv(eu,"name"),fv=tu&&(function(){}).name==="something",cv=tu&&(!Qa||Qa&&vv(eu,"name").configurable),wr={PROPER:fv,CONFIGURABLE:cv},gv=L,dv=B,Ka=wi,pv=gv(Function.toString);dv(Ka.inspectSource)||(Ka.inspectSource=function(a){return pv(a)});var Ai=Ka.inspectSource,yv=_,mv=B,_n=yv.WeakMap,bv=mv(_n)&&/native code/.test(String(_n)),xv=Ci,Tv=qo,Vn=xv("keys"),Pi=function(a){return Vn[a]||(Vn[a]=Tv(a))},Ri={},Ov=bv,ru=_,Sv=ae,Ev=At,fa=fe,ca=wi,$v=Pi,wv=Ri,Dn="Object already initialized",Za=ru.TypeError,Cv=ru.WeakMap,dr,Ot,pr,Av=function(a){return pr(a)?Ot(a):dr(a,{})},Pv=function(a){return function(e){var t;if(!Sv(e)||(t=Ot(e)).type!==a)throw new Za("Incompatible receiver, "+a+" required");return t}};if(Ov||ca.state){var de=ca.state||(ca.state=new Cv);de.get=de.get,de.has=de.has,de.set=de.set,dr=function(a,e){if(de.has(a))throw new Za(Dn);return e.facade=a,de.set(a,e),e},Ot=function(a){return de.get(a)||{}},pr=function(a){return de.has(a)}}else{var Ye=$v("state");wv[Ye]=!0,dr=function(a,e){if(fa(a,Ye))throw new Za(Dn);return e.facade=a,Ev(a,Ye,e),e},Ot=function(a){return fa(a,Ye)?a[Ye]:{}},pr=function(a){return fa(a,Ye)}}var Cr={set:dr,get:Ot,has:pr,enforce:Av,getterFor:Pv},Ni=L,Rv=D,Nv=B,zt=fe,Ja=he,Iv=wr.CONFIGURABLE,Mv=Ai,au=Cr,_v=au.enforce,Vv=au.get,Ln=String,ur=Object.defineProperty,Dv=Ni("".slice),Lv=Ni("".replace),kv=Ni([].join),Bv=Ja&&!Rv(function(){return ur(function(){},"length",{value:8}).length!==8}),jv=String(String).split("String"),Fv=Jo.exports=function(a,e,t){Dv(Ln(e),0,7)==="Symbol("&&(e="["+Lv(Ln(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!zt(a,"name")||Iv&&a.name!==e)&&(Ja?ur(a,"name",{value:e,configurable:!0}):a.name=e),Bv&&t&&zt(t,"arity")&&a.length!==t.arity&&ur(a,"length",{value:t.arity});try{t&&zt(t,"constructor")&&t.constructor?Ja&&ur(a,"prototype",{writable:!1}):a.prototype&&(a.prototype=void 0)}catch{}var r=_v(a);return zt(r,"source")||(r.source=kv(jv,typeof e=="string"?e:"")),a};Function.prototype.toString=Fv(function(){return Nv(this)&&Vv(this).source||Mv(this)},"toString");var iu=Jo.exports,Uv=B,Gv=Oe,zv=iu,Hv=$i,Ue=function(a,e,t,r){r||(r={});var i=r.enumerable,n=r.name!==void 0?r.name:e;if(Uv(t)&&zv(t,n,r),r.global)i?a[e]=t:Hv(e,t);else{try{r.unsafe?a[e]&&(i=!0):delete a[e]}catch{}i?a[e]=t:Gv.f(a,e,{value:t,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return a},nu={},Yv=Math.ceil,Xv=Math.floor,Wv=Math.trunc||function(e){var t=+e;return(t>0?Xv:Yv)(t)},qv=Wv,Ar=function(a){var e=+a;return e!==e||e===0?0:qv(e)},Qv=Ar,Kv=Math.max,Zv=Math.min,Jv=function(a,e){var t=Qv(a);return t<0?Kv(t+e,0):Zv(t,e)},ef=Ar,tf=Math.min,ut=function(a){var e=ef(a);return e>0?tf(e,9007199254740991):0},rf=ut,Ii=function(a){return rf(a.length)},af=wt,nf=Jv,sf=Ii,of=function(a){return function(e,t,r){var i=af(e),n=sf(i);if(n===0)return!a&&-1;var o=nf(r,n),s;if(a&&t!==t){for(;n>o;)if(s=i[o++],s!==s)return!0}else for(;n>o;o++)if((a||o in i)&&i[o]===t)return a||o||0;return!a&&-1}},su={indexOf:of(!1)},uf=L,ga=fe,lf=wt,hf=su.indexOf,vf=Ri,kn=uf([].push),ou=function(a,e){var t=lf(a),r=0,i=[],n;for(n in t)!ga(vf,n)&&ga(t,n)&&kn(i,n);for(;e.length>r;)ga(t,n=e[r++])&&(~hf(i,n)||kn(i,n));return i},Mi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ff=ou,cf=Mi,gf=cf.concat("length","prototype");nu.f=Object.getOwnPropertyNames||function(e){return ff(e,gf)};var uu={};uu.f=Object.getOwnPropertySymbols;var df=Fe,pf=L,yf=nu,mf=uu,bf=J,xf=pf([].concat),Tf=df("Reflect","ownKeys")||function(e){var t=yf.f(bf(e)),r=mf.f;return r?xf(t,r(e)):t},Bn=fe,Of=Tf,Sf=$t,Ef=Oe,$f=function(a,e,t){for(var r=Of(e),i=Ef.f,n=Sf.f,o=0;o<r.length;o++){var s=r[o];!Bn(a,s)&&!(t&&Bn(t,s))&&i(a,s,n(e,s))}},wf=D,Cf=B,Af=/#|\.prototype\./,Pt=function(a,e){var t=Rf[Pf(a)];return t===If?!0:t===Nf?!1:Cf(e)?wf(e):!!e},Pf=Pt.normalize=function(a){return String(a).replace(Af,".").toLowerCase()},Rf=Pt.data={},Nf=Pt.NATIVE="N",If=Pt.POLYFILL="P",lu=Pt,Ht=_,Mf=$t.f,_f=At,Vf=Ue,Df=$i,Lf=$f,kf=lu,ee=function(a,e){var t=a.target,r=a.global,i=a.stat,n,o,s,u,l,h;if(r?o=Ht:i?o=Ht[t]||Df(t,{}):o=Ht[t]&&Ht[t].prototype,o)for(s in e){if(l=e[s],a.dontCallGetSet?(h=Mf(o,s),u=h&&h.value):u=o[s],n=kf(r?s:t+(i?".":"#")+s,a.forced),!n&&u!==void 0){if(typeof l==typeof u)continue;Lf(l,u)}(a.sham||u&&u.sham)&&_f(l,"sham",!0),Vf(o,s,l,a)}},ft=_,Bf=Ct,jf=je,Yt=function(a){return Bf.slice(0,a.length)===a},hu=function(){return Yt("Bun/")?"BUN":Yt("Cloudflare-Workers")?"CLOUDFLARE":Yt("Deno/")?"DENO":Yt("Node.js/")?"NODE":ft.Bun&&typeof Bun.version=="string"?"BUN":ft.Deno&&typeof Deno.version=="object"?"DENO":jf(ft.process)==="process"?"NODE":ft.window&&ft.document?"BROWSER":"REST"}(),Ff=hu,Pr=Ff==="NODE",Uf=_,Gf=Uf,zf=L,Hf=Te,Yf=function(a,e,t){try{return zf(Hf(Object.getOwnPropertyDescriptor(a,e)[t]))}catch{}},Xf=ae,Wf=function(a){return Xf(a)||a===null},qf=Wf,Qf=String,Kf=TypeError,Zf=function(a){if(qf(a))return a;throw new Kf("Can't set "+Qf(a)+" as a prototype")},Jf=Yf,ec=ae,tc=ve,rc=Zf,vu=Object.setPrototypeOf||("__proto__"in{}?function(){var a=!1,e={},t;try{t=Jf(Object.prototype,"__proto__","set"),t(e,[]),a=e instanceof Array}catch{}return function(i,n){return tc(i),rc(n),ec(i)&&(a?t(i,n):i.__proto__=n),i}}():void 0),ac=Oe.f,ic=fe,nc=z,jn=nc("toStringTag"),Rr=function(a,e,t){a&&!t&&(a=a.prototype),a&&!ic(a,jn)&&ac(a,jn,{configurable:!0,value:e})},Fn=iu,sc=Oe,oc=function(a,e,t){return t.get&&Fn(t.get,e,{getter:!0}),t.set&&Fn(t.set,e,{setter:!0}),sc.f(a,e,t)},uc=Fe,lc=oc,hc=z,vc=he,Un=hc("species"),fc=function(a){var e=uc(a);vc&&e&&!e[Un]&&lc(e,Un,{configurable:!0,get:function(){return this}})},cc=Or,gc=TypeError,dc=function(a,e){if(cc(e,a))return a;throw new gc("Incorrect invocation")},pc=z,yc=pc("toStringTag"),fu={};fu[yc]="z";var mc=String(fu)==="[object z]",bc=mc,xc=B,lr=je,Tc=z,Oc=Tc("toStringTag"),Sc=Object,Ec=lr(function(){return arguments}())==="Arguments",$c=function(a,e){try{return a[e]}catch{}},_i=bc?lr:function(a){var e,t,r;return a===void 0?"Undefined":a===null?"Null":typeof(t=$c(e=Sc(a),Oc))=="string"?t:Ec?lr(e):(r=lr(e))==="Object"&&xc(e.callee)?"Arguments":r},wc=L,Cc=D,cu=B,Ac=_i,Pc=Fe,Rc=Ai,gu=function(){},du=Pc("Reflect","construct"),Vi=/^\s*(?:class|function)\b/,Nc=wc(Vi.exec),Ic=!Vi.test(gu),ct=function(e){if(!cu(e))return!1;try{return du(gu,[],e),!0}catch{return!1}},pu=function(e){if(!cu(e))return!1;switch(Ac(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ic||!!Nc(Vi,Rc(e))}catch{return!0}};pu.sham=!0;var Mc=!du||Cc(function(){var a;return ct(ct.call)||!ct(Object)||!ct(function(){a=!0})||a})?pu:ct,_c=Mc,Vc=Sr,Dc=TypeError,Lc=function(a){if(_c(a))return a;throw new Dc(Vc(a)+" is not a constructor")},Gn=J,kc=Lc,Bc=Tr,jc=z,Fc=jc("species"),yu=function(a,e){var t=Gn(a).constructor,r;return t===void 0||Bc(r=Gn(t)[Fc])?e:kc(r)},Uc=xr,mu=Function.prototype,zn=mu.apply,Hn=mu.call,bu=typeof Reflect=="object"&&Reflect.apply||(Uc?Hn.bind(zn):function(){return Hn.apply(zn,arguments)}),Gc=je,zc=L,Nr=function(a){if(Gc(a)==="Function")return zc(a)},Yn=Nr,Hc=Te,Yc=xr,Xc=Yn(Yn.bind),Di=function(a,e){return Hc(a),e===void 0?a:Yc?Xc(a,e):function(){return a.apply(e,arguments)}},Wc=Fe,xu=Wc("document","documentElement"),qc=L,Qc=qc([].slice),Kc=TypeError,Zc=function(a,e){if(a<e)throw new Kc("Not enough arguments");return a},Xn=Ct,Tu=/ipad|iphone|ipod/i.test(Xn)&&/applewebkit/i.test(Xn),ie=_,Jc=bu,eg=Di,Wn=B,tg=fe,Ou=D,qn=xu,rg=Qc,Qn=$r,ag=Zc,ig=Tu,ng=Pr,ei=ie.setImmediate,Kn=ie.clearImmediate,sg=ie.process,da=ie.Dispatch,og=ie.Function,Zn=ie.MessageChannel,ug=ie.String,pa=0,xt={},Jn="onreadystatechange",St,Ie,ya,ma;Ou(function(){St=ie.location});var Li=function(a){if(tg(xt,a)){var e=xt[a];delete xt[a],e()}},ba=function(a){return function(){Li(a)}},es=function(a){Li(a.data)},ts=function(a){ie.postMessage(ug(a),St.protocol+"//"+St.host)};(!ei||!Kn)&&(ei=function(e){ag(arguments.length,1);var t=Wn(e)?e:og(e),r=rg(arguments,1);return xt[++pa]=function(){Jc(t,void 0,r)},Ie(pa),pa},Kn=function(e){delete xt[e]},ng?Ie=function(a){sg.nextTick(ba(a))}:da&&da.now?Ie=function(a){da.now(ba(a))}:Zn&&!ig?(ya=new Zn,ma=ya.port2,ya.port1.onmessage=es,Ie=eg(ma.postMessage,ma)):ie.addEventListener&&Wn(ie.postMessage)&&!ie.importScripts&&St&&St.protocol!=="file:"&&!Ou(ts)?(Ie=ts,ie.addEventListener("message",es,!1)):Jn in Qn("script")?Ie=function(a){qn.appendChild(Qn("script"))[Jn]=function(){qn.removeChild(this),Li(a)}}:Ie=function(a){setTimeout(ba(a),0)});var Su={set:ei},rs=_,lg=he,hg=Object.getOwnPropertyDescriptor,vg=function(a){if(!lg)return rs[a];var e=hg(rs,a);return e&&e.value},Eu=function(){this.head=null,this.tail=null};Eu.prototype={add:function(a){var e={item:a,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var a=this.head;if(a){var e=this.head=a.next;return e===null&&(this.tail=null),a.item}}};var $u=Eu,fg=Ct,cg=/ipad|iphone|ipod/i.test(fg)&&typeof Pebble<"u",gg=Ct,dg=/web0s(?!.*chrome)/i.test(gg),it=_,pg=vg,as=Di,xa=Su.set,yg=$u,mg=Tu,bg=cg,xg=dg,Ta=Pr,is=it.MutationObserver||it.WebKitMutationObserver,ns=it.document,ss=it.process,Xt=it.Promise,ti=pg("queueMicrotask"),Xe,Oa,Sa,Wt,os;if(!ti){var qt=new yg,Qt=function(){var a,e;for(Ta&&(a=ss.domain)&&a.exit();e=qt.get();)try{e()}catch(t){throw qt.head&&Xe(),t}a&&a.enter()};!mg&&!Ta&&!xg&&is&&ns?(Oa=!0,Sa=ns.createTextNode(""),new is(Qt).observe(Sa,{characterData:!0}),Xe=function(){Sa.data=Oa=!Oa}):!bg&&Xt&&Xt.resolve?(Wt=Xt.resolve(void 0),Wt.constructor=Xt,os=as(Wt.then,Wt),Xe=function(){os(Qt)}):Ta?Xe=function(){ss.nextTick(Qt)}:(xa=as(xa,it),Xe=function(){xa(Qt)}),ti=function(a){qt.head||Xe(),qt.add(a)}}var Tg=ti,Og=function(a,e){try{arguments.length===1?console.error(a):console.error(a,e)}catch{}},ki=function(a){try{return{error:!1,value:a()}}catch(e){return{error:!0,value:e}}},Sg=_,Ir=Sg.Promise,Eg=_,Tt=Ir,$g=B,wg=lu,Cg=Ai,Ag=z,us=hu,Ea=Ei;Tt&&Tt.prototype;var Pg=Ag("species"),ri=!1,wu=$g(Eg.PromiseRejectionEvent),Rg=wg("Promise",function(){var a=Cg(Tt),e=a!==String(Tt);if(!e&&Ea===66)return!0;if(!Ea||Ea<51||!/native code/.test(a)){var t=new Tt(function(n){n(1)}),r=function(n){n(function(){},function(){})},i=t.constructor={};if(i[Pg]=r,ri=t.then(function(){})instanceof r,!ri)return!0}return!e&&(us==="BROWSER"||us==="DENO")&&!wu}),Rt={CONSTRUCTOR:Rg,REJECTION_EVENT:wu,SUBCLASSING:ri},lt={},ls=Te,Ng=TypeError,Ig=function(a){var e,t;this.promise=new a(function(r,i){if(e!==void 0||t!==void 0)throw new Ng("Bad Promise constructor");e=r,t=i}),this.resolve=ls(e),this.reject=ls(t)};lt.f=function(a){return new Ig(a)};var Mg=ee,yr=Pr,we=_,_g=Gf,nt=Y,hs=Ue,vs=vu,Vg=Rr,Dg=fc,Lg=Te,hr=B,kg=ae,Bg=dc,jg=yu,Cu=Su.set,Bi=Tg,Fg=Og,Ug=ki,Gg=$u,Au=Cr,mr=Ir,ji=Rt,Pu=lt,Mr="Promise",Ru=ji.CONSTRUCTOR,zg=ji.REJECTION_EVENT,Hg=ji.SUBCLASSING,$a=Au.getterFor(Mr),Yg=Au.set,Qe=mr&&mr.prototype,Le=mr,Kt=Qe,Nu=we.TypeError,ai=we.document,Fi=we.process,ii=Pu.f,Xg=ii,Wg=!!(ai&&ai.createEvent&&we.dispatchEvent),Iu="unhandledrejection",qg="rejectionhandled",fs=0,Mu=1,Qg=2,Ui=1,_u=2,Zt,cs,Vu,gs,Du=function(a){var e;return kg(a)&&hr(e=a.then)?e:!1},Lu=function(a,e){var t=e.value,r=e.state===Mu,i=r?a.ok:a.fail,n=a.resolve,o=a.reject,s=a.domain,u,l,h;try{i?(r||(e.rejection===_u&&Zg(e),e.rejection=Ui),i===!0?u=t:(s&&s.enter(),u=i(t),s&&(s.exit(),h=!0)),u===a.promise?o(new Nu("Promise-chain cycle")):(l=Du(u))?nt(l,u,n,o):n(u)):o(t)}catch(f){s&&!h&&s.exit(),o(f)}},ku=function(a,e){a.notified||(a.notified=!0,Bi(function(){for(var t=a.reactions,r;r=t.get();)Lu(r,a);a.notified=!1,e&&!a.rejection&&Kg(a)}))},Bu=function(a,e,t){var r,i;Wg?(r=ai.createEvent("Event"),r.promise=e,r.reason=t,r.initEvent(a,!1,!0),we.dispatchEvent(r)):r={promise:e,reason:t},!zg&&(i=we["on"+a])?i(r):a===Iu&&Fg("Unhandled promise rejection",t)},Kg=function(a){nt(Cu,we,function(){var e=a.facade,t=a.value,r=ds(a),i;if(r&&(i=Ug(function(){yr?Fi.emit("unhandledRejection",t,e):Bu(Iu,e,t)}),a.rejection=yr||ds(a)?_u:Ui,i.error))throw i.value})},ds=function(a){return a.rejection!==Ui&&!a.parent},Zg=function(a){nt(Cu,we,function(){var e=a.facade;yr?Fi.emit("rejectionHandled",e):Bu(qg,e,a.value)})},Je=function(a,e,t){return function(r){a(e,r,t)}},tt=function(a,e,t){a.done||(a.done=!0,t&&(a=t),a.value=e,a.state=Qg,ku(a,!0))},ni=function(a,e,t){if(!a.done){a.done=!0,t&&(a=t);try{if(a.facade===e)throw new Nu("Promise can't be resolved itself");var r=Du(e);r?Bi(function(){var i={done:!1};try{nt(r,e,Je(ni,i,a),Je(tt,i,a))}catch(n){tt(i,n,a)}}):(a.value=e,a.state=Mu,ku(a,!1))}catch(i){tt({done:!1},i,a)}}};if(Ru&&(Le=function(e){Bg(this,Kt),Lg(e),nt(Zt,this);var t=$a(this);try{e(Je(ni,t),Je(tt,t))}catch(r){tt(t,r)}},Kt=Le.prototype,Zt=function(e){Yg(this,{type:Mr,done:!1,notified:!1,parent:!1,reactions:new Gg,rejection:!1,state:fs,value:null})},Zt.prototype=hs(Kt,"then",function(e,t){var r=$a(this),i=ii(jg(this,Le));return r.parent=!0,i.ok=hr(e)?e:!0,i.fail=hr(t)&&t,i.domain=yr?Fi.domain:void 0,r.state===fs?r.reactions.add(i):Bi(function(){Lu(i,r)}),i.promise}),cs=function(){var a=new Zt,e=$a(a);this.promise=a,this.resolve=Je(ni,e),this.reject=Je(tt,e)},Pu.f=ii=function(a){return a===Le||a===Vu?new cs(a):Xg(a)},hr(mr)&&Qe!==Object.prototype)){gs=Qe.then,Hg||hs(Qe,"then",function(e,t){var r=this;return new Le(function(i,n){nt(gs,r,i,n)}).then(e,t)},{unsafe:!0});try{delete Qe.constructor}catch{}vs&&vs(Qe,Kt)}Mg({global:!0,constructor:!0,wrap:!0,forced:Ru},{Promise:Le});Vu=_g.Promise;Vg(Le,Mr,!1);Dg(Mr);var Nt={},Jg=z,ed=Nt,td=Jg("iterator"),rd=Array.prototype,ad=function(a){return a!==void 0&&(ed.Array===a||rd[td]===a)},id=_i,ps=ot,nd=Tr,sd=Nt,od=z,ud=od("iterator"),ju=function(a){if(!nd(a))return ps(a,ud)||ps(a,"@@iterator")||sd[id(a)]},ld=Y,hd=Te,vd=J,fd=Sr,cd=ju,gd=TypeError,dd=function(a,e){var t=arguments.length<2?cd(a):e;if(hd(t))return vd(ld(t,a));throw new gd(fd(a)+" is not iterable")},pd=Y,ys=J,yd=ot,md=function(a,e,t){var r,i;ys(a);try{if(r=yd(a,"return"),!r){if(e==="throw")throw t;return t}r=pd(r,a)}catch(n){i=!0,r=n}if(e==="throw")throw t;if(i)throw r;return ys(r),t},bd=Di,xd=Y,Td=J,Od=Sr,Sd=ad,Ed=Ii,ms=Or,$d=dd,wd=ju,bs=md,Cd=TypeError,vr=function(a,e){this.stopped=a,this.result=e},xs=vr.prototype,Fu=function(a,e,t){var r=t&&t.that,i=!!(t&&t.AS_ENTRIES),n=!!(t&&t.IS_RECORD),o=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),u=bd(e,r),l,h,f,c,v,g,d,p=function(b){var x=l;return l=void 0,x&&bs(x,"normal"),new vr(!0,b)},y=function(b){return i?(Td(b),s?u(b[0],b[1],p):u(b[0],b[1])):s?u(b,p):u(b)};if(n)l=a.iterator;else if(o)l=a;else{if(h=wd(a),!h)throw new Cd(Od(a)+" is not iterable");if(Sd(h)){for(f=0,c=Ed(a);c>f;f++)if(v=y(a[f]),v&&ms(xs,v))return v;return new vr(!1)}l=$d(a,h)}for(g=n?a.next:l.next;!(d=xd(g,l)).done;){var T=d.value;try{v=y(T)}catch(b){if(l)bs(l,"throw",b);else throw b}if(typeof v=="object"&&v&&ms(xs,v))return v}return new vr(!1)},Ad=z,Uu=Ad("iterator"),Gu=!1;try{var Pd=0,Ts={next:function(){return{done:!!Pd++}},return:function(){Gu=!0}};Ts[Uu]=function(){return this},Array.from(Ts,function(){throw 2})}catch{}var Rd=function(a,e){try{if(!e&&!Gu)return!1}catch{return!1}var t=!1;try{var r={};r[Uu]=function(){return{next:function(){return{done:t=!0}}}},a(r)}catch{}return t},Nd=Ir,Id=Rd,Md=Rt.CONSTRUCTOR,zu=Md||!Id(function(a){Nd.all(a).then(void 0,function(){})}),_d=ee,Vd=Y,Dd=Te,Ld=lt,kd=ki,Bd=Fu,jd=zu;_d({target:"Promise",stat:!0,forced:jd},{all:function(e){var t=this,r=Ld.f(t),i=r.resolve,n=r.reject,o=kd(function(){var s=Dd(t.resolve),u=[],l=0,h=1;Bd(e,function(f){var c=l++,v=!1;h++,Vd(s,t,f).then(function(g){v||(v=!0,u[c]=g,--h||i(u))},n)}),--h||i(u)});return o.error&&n(o.value),r.promise}});var Fd=ee,Ud=Rt.CONSTRUCTOR,si=Ir,Gd=Fe,zd=B,Hd=Ue,Os=si&&si.prototype;Fd({target:"Promise",proto:!0,forced:Ud,real:!0},{catch:function(a){return this.then(void 0,a)}});if(zd(si)){var Ss=Gd("Promise").prototype.catch;Os.catch!==Ss&&Hd(Os,"catch",Ss,{unsafe:!0})}var Yd=ee,Xd=Y,Wd=Te,qd=lt,Qd=ki,Kd=Fu,Zd=zu;Yd({target:"Promise",stat:!0,forced:Zd},{race:function(e){var t=this,r=qd.f(t),i=r.reject,n=Qd(function(){var o=Wd(t.resolve);Kd(e,function(s){Xd(o,t,s).then(r.resolve,i)})});return n.error&&i(n.value),r.promise}});var Jd=ee,ep=lt,tp=Rt.CONSTRUCTOR;Jd({target:"Promise",stat:!0,forced:tp},{reject:function(e){var t=ep.f(this),r=t.reject;return r(e),t.promise}});var rp=J,ap=ae,ip=lt,np=function(a,e){if(rp(a),ap(e)&&e.constructor===a)return e;var t=ip.f(a),r=t.resolve;return r(e),t.promise},sp=ee,op=Fe,up=Rt.CONSTRUCTOR,lp=np;op("Promise");sp({target:"Promise",stat:!0,forced:up},{resolve:function(e){return lp(this,e)}});function Es(a,e,t,r,i,n,o){try{var s=a[n](o),u=s.value}catch(l){return void t(l)}s.done?e(u):Promise.resolve(u).then(r,i)}function xe(a){return function(){var e=this,t=arguments;return new Promise(function(r,i){var n=a.apply(e,t);function o(u){Es(n,r,i,o,s,"next",u)}function s(u){Es(n,r,i,o,s,"throw",u)}o(void 0)})}}var hp=_i,vp=String,pe=function(a){if(hp(a)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return vp(a)},fp=J,Hu=function(){var a=fp(this),e="";return a.hasIndices&&(e+="d"),a.global&&(e+="g"),a.ignoreCase&&(e+="i"),a.multiline&&(e+="m"),a.dotAll&&(e+="s"),a.unicode&&(e+="u"),a.unicodeSets&&(e+="v"),a.sticky&&(e+="y"),e},Gi=D,cp=_,zi=cp.RegExp,Hi=Gi(function(){var a=zi("a","y");return a.lastIndex=2,a.exec("abcd")!==null});Hi||Gi(function(){return!zi("a","y").sticky});var gp=Hi||Gi(function(){var a=zi("^r","gy");return a.lastIndex=2,a.exec("str")!==null}),Yu={BROKEN_CARET:gp,UNSUPPORTED_Y:Hi},Xu={},dp=ou,pp=Mi,yp=Object.keys||function(e){return dp(e,pp)},mp=he,bp=Zo,xp=Oe,Tp=J,Op=wt,Sp=yp;Xu.f=mp&&!bp?Object.defineProperties:function(e,t){Tp(e);for(var r=Op(t),i=Sp(t),n=i.length,o=0,s;n>o;)xp.f(e,s=i[o++],r[s]);return e};var Ep=J,$p=Xu,$s=Mi,wp=Ri,Cp=xu,Ap=$r,Pp=Pi,ws=">",Cs="<",oi="prototype",ui="script",Wu=Pp("IE_PROTO"),wa=function(){},qu=function(a){return Cs+ui+ws+a+Cs+"/"+ui+ws},As=function(a){a.write(qu("")),a.close();var e=a.parentWindow.Object;return a=null,e},Rp=function(){var a=Ap("iframe"),e="java"+ui+":",t;return a.style.display="none",Cp.appendChild(a),a.src=String(e),t=a.contentWindow.document,t.open(),t.write(qu("document.F=Object")),t.close(),t.F},Jt,fr=function(){try{Jt=new ActiveXObject("htmlfile")}catch{}fr=typeof document<"u"?document.domain&&Jt?As(Jt):Rp():As(Jt);for(var a=$s.length;a--;)delete fr[oi][$s[a]];return fr()};wp[Wu]=!0;var Yi=Object.create||function(e,t){var r;return e!==null?(wa[oi]=Ep(e),r=new wa,wa[oi]=null,r[Wu]=e):r=fr(),t===void 0?r:$p.f(r,t)},Np=D,Ip=_,Mp=Ip.RegExp,_p=Np(function(){var a=Mp(".","s");return!(a.dotAll&&a.test(`
|
|
2
2
|
`)&&a.flags==="s")}),Vp=D,Dp=_,Lp=Dp.RegExp,kp=Vp(function(){var a=Lp("(?<a>b)","g");return a.exec("b").groups.a!=="b"||"b".replace(a,"$<a>c")!=="bc"}),et=Y,_r=L,Bp=pe,jp=Hu,Fp=Yu,Up=Ci,Gp=Yi,zp=Cr.get,Hp=_p,Yp=kp,Xp=Up("native-string-replace",String.prototype.replace),br=RegExp.prototype.exec,li=br,Wp=_r("".charAt),qp=_r("".indexOf),Qp=_r("".replace),Ps=_r("".slice),hi=function(){var a=/a/,e=/b*/g;return et(br,a,"a"),et(br,e,"a"),a.lastIndex!==0||e.lastIndex!==0}(),Qu=Fp.BROKEN_CARET,vi=/()??/.exec("")[1]!==void 0,Kp=hi||vi||Qu||Hp||Yp,Rs=function(a,e){for(var t=a.groups=Gp(null),r=0;r<e.length;r++){var i=e[r];t[i[0]]=a[i[1]]}};Kp&&(li=function(e){var t=this,r=zp(t),i=Bp(e),n=r.raw,o,s,u;if(n)return n.lastIndex=t.lastIndex,o=et(li,n,i),t.lastIndex=n.lastIndex,o&&r.groups&&Rs(o,r.groups),o;var l=r.groups,h=Qu&&t.sticky,f=et(jp,t),c=t.source,v=0,g=i;if(h){f=Qp(f,"y",""),qp(f,"g")===-1&&(f+="g"),g=Ps(i,t.lastIndex);var d=t.lastIndex>0&&Wp(i,t.lastIndex-1);t.lastIndex>0&&(!t.multiline||t.multiline&&d!==`
|
|
3
3
|
`&&d!=="\r"&&d!=="\u2028"&&d!=="\u2029")&&(c="(?: (?:"+c+"))",g=" "+g,v++),s=new RegExp("^(?:"+c+")",f)}vi&&(s=new RegExp("^"+c+"$(?!\\s)",f)),hi&&(u=t.lastIndex);var p=et(br,h?s:t,g);return h?p?(p.input=i,p[0]=Ps(p[0],v),p.index=t.lastIndex,t.lastIndex+=p[0].length):t.lastIndex=0:hi&&p&&(t.lastIndex=t.global?p.index+p[0].length:u),vi&&p&&p.length>1&&et(Xp,p[0],s,function(){for(var y=1;y<arguments.length-2;y++)arguments[y]===void 0&&(p[y]=void 0)}),p&&l&&Rs(p,l),p});var Xi=li,Zp=ee,Ns=Xi;Zp({target:"RegExp",proto:!0,forced:/./.exec!==Ns},{exec:Ns});var Is=Y,Ms=Ue,Jp=Xi,_s=D,Ku=z,ey=At,ty=Ku("species"),Ca=RegExp.prototype,Wi=function(a,e,t,r){var i=Ku(a),n=!_s(function(){var l={};return l[i]=function(){return 7},""[a](l)!==7}),o=n&&!_s(function(){var l=!1,h=/a/;if(a==="split"){var f={};f[ty]=function(){return h},h={constructor:f,flags:""},h[i]=/./[i]}return h.exec=function(){return l=!0,null},h[i](""),!l});if(!n||!o||t){var s=/./[i],u=e(i,""[a],function(l,h,f,c,v){var g=h.exec;return g===Jp||g===Ca.exec?n&&!v?{done:!0,value:Is(s,h,f,c)}:{done:!0,value:Is(l,f,h,c)}:{done:!1}});Ms(String.prototype,a,u[0]),Ms(Ca,i,u[1])}r&&ey(Ca[i],"sham",!0)},qi=L,ry=Ar,ay=pe,iy=ve,ny=qi("".charAt),Vs=qi("".charCodeAt),sy=qi("".slice),oy=function(a){return function(e,t){var r=ay(iy(e)),i=ry(t),n=r.length,o,s;return i<0||i>=n?a?"":void 0:(o=Vs(r,i),o<55296||o>56319||i+1===n||(s=Vs(r,i+1))<56320||s>57343?a?ny(r,i):o:a?sy(r,i,i+2):(o-55296<<10)+(s-56320)+65536)}},uy={charAt:oy(!0)},ly=uy.charAt,Qi=function(a,e,t){return e+(t&&ly(a,e).length||1)},hy=_,vy=D,Ds=hy.RegExp,fy=!vy(function(){var a=!0;try{Ds(".","d")}catch{a=!1}var e={},t="",r=a?"dgimsy":"gimsy",i=function(u,l){Object.defineProperty(e,u,{get:function(){return t+=l,!0}})},n={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};a&&(n.hasIndices="d");for(var o in n)i(o,n[o]);var s=Object.getOwnPropertyDescriptor(Ds.prototype,"flags").get.call(e);return s!==r||t!==r}),cy={correct:fy},gy=Y,dy=fe,py=Or,Ls=cy,yy=Hu,my=RegExp.prototype,Vr=Ls.correct?function(a){return a.flags}:function(a){return!Ls.correct&&py(my,a)&&!dy(a,"flags")?gy(yy,a):a.flags},ks=Y,by=J,xy=B,Ty=je,Oy=Xi,Sy=TypeError,Ki=function(a,e){var t=a.exec;if(xy(t)){var r=ks(t,a,e);return r!==null&&by(r),r}if(Ty(a)==="RegExp")return ks(Oy,a,e);throw new Sy("RegExp#exec called on incompatible receiver")},Ey=Y,$y=L,wy=Wi,Cy=J,Ay=ae,Py=ut,er=pe,Ry=ve,Ny=ot,Iy=Qi,My=Vr,Bs=Ki,Aa=$y("".indexOf);wy("match",function(a,e,t){return[function(i){var n=Ry(this),o=Ay(i)?Ny(i,a):void 0;return o?Ey(o,i,n):new RegExp(i)[a](er(n))},function(r){var i=Cy(this),n=er(r),o=t(e,i,n);if(o.done)return o.value;var s=er(My(i));if(!~Aa(s,"g"))return Bs(i,n);var u=!!~Aa(s,"u")||!!~Aa(s,"v");i.lastIndex=0;for(var l=[],h=0,f;(f=Bs(i,n))!==null;){var c=er(f[0]);l[h]=c,c===""&&(i.lastIndex=Iy(n,Py(i.lastIndex),u)),h++}return h===0?null:l}]});var Zi=L,_y=Er,Vy=Math.floor,Pa=Zi("".charAt),Dy=Zi("".replace),Ra=Zi("".slice),Ly=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ky=/\$([$&'`]|\d{1,2})/g,By=function(a,e,t,r,i,n){var o=t+a.length,s=r.length,u=ky;return i!==void 0&&(i=_y(i),u=Ly),Dy(n,u,function(l,h){var f;switch(Pa(h,0)){case"$":return"$";case"&":return a;case"`":return Ra(e,0,t);case"'":return Ra(e,o);case"<":f=i[Ra(h,1,-1)];break;default:var c=+h;if(c===0)return l;if(c>s){var v=Vy(c/10);return v===0?l:v<=s?r[v-1]===void 0?Pa(h,1):r[v-1]+Pa(h,1):l}f=r[c-1]}return f===void 0?"":f})},jy=bu,js=Y,Dr=L,Fy=Wi,Uy=D,Gy=J,zy=B,Hy=ae,Yy=Ar,Xy=ut,Me=pe,Wy=ve,qy=Qi,Qy=ot,Ky=By,Zy=Vr,Jy=Ki,em=z,fi=em("replace"),tm=Math.max,rm=Math.min,am=Dr([].concat),Na=Dr([].push),We=Dr("".indexOf),Fs=Dr("".slice),im=function(a){return a===void 0?a:String(a)},nm=function(){return"a".replace(/./,"$0")==="$0"}(),Us=function(){return/./[fi]?/./[fi]("a","$0")==="":!1}(),sm=!Uy(function(){var a=/./;return a.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(a,"$<a>")!=="7"});Fy("replace",function(a,e,t){var r=Us?"$":"$0";return[function(n,o){var s=Wy(this),u=Hy(n)?Qy(n,fi):void 0;return u?js(u,n,s,o):js(e,Me(s),n,o)},function(i,n){var o=Gy(this),s=Me(i),u=zy(n);u||(n=Me(n));var l=Me(Zy(o));if(typeof n=="string"&&!~We(n,r)&&!~We(n,"$<")&&!~We(l,"y")){var h=t(e,o,s,n);if(h.done)return h.value}var f=!!~We(l,"g"),c;f&&(c=!!~We(l,"u")||!!~We(l,"v"),o.lastIndex=0);for(var v=[],g;g=Jy(o,s),!(g===null||(Na(v,g),!f));){var d=Me(g[0]);d===""&&(o.lastIndex=qy(s,Xy(o.lastIndex),c))}for(var p="",y=0,T=0;T<v.length;T++){g=v[T];for(var b=Me(g[0]),x=tm(rm(Yy(g.index),s.length),0),$=[],E,O=1;O<g.length;O++)Na($,im(g[O]));var C=g.groups;if(u){var P=am([b],$,x,s);C!==void 0&&Na(P,C),E=Me(jy(n,void 0,P))}else E=Ky(b,s,x,$,C,n);x>=y&&(p+=Fs(s,y,x)+E,y=x+b.length)}return p+Fs(s,y)}]},!sm||!nm||Us);var om=ae,um=je,lm=z,hm=lm("match"),vm=function(a){var e;return om(a)&&((e=a[hm])!==void 0?!!e:um(a)==="RegExp")},fm=vm,cm=TypeError,Ji=function(a){if(fm(a))throw new cm("The method doesn't accept regular expressions");return a},gm=z,dm=gm("match"),en=function(a){var e=/./;try{"/./"[a](e)}catch{try{return e[dm]=!1,"/./"[a](e)}catch{}}return!1},pm=ee,ym=Nr,mm=$t.f,bm=ut,Gs=pe,xm=Ji,Tm=ve,Om=en,Sm=ym("".slice),Em=Math.min,Zu=Om("startsWith"),$m=!Zu&&!!function(){var a=mm(String.prototype,"startsWith");return a&&!a.writable}();pm({target:"String",proto:!0,forced:!$m&&!Zu},{startsWith:function(e){var t=Gs(Tm(this));xm(e);var r=Gs(e),i=bm(Em(arguments.length>1?arguments[1]:void 0,t.length));return Sm(t,i,i+r.length)===r}});var wm=z,Cm=Yi,Am=Oe.f,ci=wm("unscopables"),gi=Array.prototype;gi[ci]===void 0&&Am(gi,ci,{configurable:!0,value:Cm(null)});var Pm=function(a){gi[ci][a]=!0},Rm=D,Nm=!Rm(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype}),Im=fe,Mm=B,_m=Er,Vm=Pi,Dm=Nm,zs=Vm("IE_PROTO"),di=Object,Lm=di.prototype,Ju=Dm?di.getPrototypeOf:function(a){var e=_m(a);if(Im(e,zs))return e[zs];var t=e.constructor;return Mm(t)&&e instanceof t?t.prototype:e instanceof di?Lm:null},km=D,Bm=B,jm=ae,Hs=Ju,Fm=Ue,Um=z,pi=Um("iterator"),el=!1,ke,Ia,Ma;[].keys&&(Ma=[].keys(),"next"in Ma?(Ia=Hs(Hs(Ma)),Ia!==Object.prototype&&(ke=Ia)):el=!0);var Gm=!jm(ke)||km(function(){var a={};return ke[pi].call(a)!==a});Gm&&(ke={});Bm(ke[pi])||Fm(ke,pi,function(){return this});var tl={IteratorPrototype:ke,BUGGY_SAFARI_ITERATORS:el},zm=tl.IteratorPrototype,Hm=Yi,Ym=Si,Xm=Rr,Wm=Nt,qm=function(){return this},Qm=function(a,e,t,r){var i=e+" Iterator";return a.prototype=Hm(zm,{next:Ym(+!r,t)}),Xm(a,i,!1),Wm[i]=qm,a},Km=ee,Zm=Y,rl=wr,Jm=B,e0=Qm,Ys=Ju,Xs=vu,t0=Rr,r0=At,_a=Ue,a0=z,i0=Nt,al=tl,n0=rl.PROPER,s0=rl.CONFIGURABLE,Ws=al.IteratorPrototype,tr=al.BUGGY_SAFARI_ITERATORS,gt=a0("iterator"),qs="keys",dt="values",Qs="entries",o0=function(){return this},u0=function(a,e,t,r,i,n,o){e0(t,e,r);var s=function(y){if(y===i&&c)return c;if(!tr&&y&&y in h)return h[y];switch(y){case qs:return function(){return new t(this,y)};case dt:return function(){return new t(this,y)};case Qs:return function(){return new t(this,y)}}return function(){return new t(this)}},u=e+" Iterator",l=!1,h=a.prototype,f=h[gt]||h["@@iterator"]||i&&h[i],c=!tr&&f||s(i),v=e==="Array"&&h.entries||f,g,d,p;if(v&&(g=Ys(v.call(new a)),g!==Object.prototype&&g.next&&(Ys(g)!==Ws&&(Xs?Xs(g,Ws):Jm(g[gt])||_a(g,gt,o0)),t0(g,u,!0))),n0&&i===dt&&f&&f.name!==dt&&(s0?r0(h,"name",dt):(l=!0,c=function(){return Zm(f,this)})),i)if(d={values:s(dt),keys:n?c:s(qs),entries:s(Qs)},o)for(p in d)(tr||l||!(p in h))&&_a(h,p,d[p]);else Km({target:e,proto:!0,forced:tr||l},d);return h[gt]!==c&&_a(h,gt,c,{name:i}),i0[e]=c,d},l0=function(a,e){return{value:a,done:e}},h0=wt,tn=Pm,Ks=Nt,il=Cr,v0=Oe.f,f0=u0,rr=l0,c0=he,nl="Array Iterator",g0=il.set,d0=il.getterFor(nl),p0=f0(Array,"Array",function(a,e){g0(this,{type:nl,target:h0(a),index:0,kind:e})},function(){var a=d0(this),e=a.target,t=a.index++;if(!e||t>=e.length)return a.target=null,rr(void 0,!0);switch(a.kind){case"keys":return rr(t,!1);case"values":return rr(e[t],!1)}return rr([t,e[t]],!1)},"values"),Zs=Ks.Arguments=Ks.Array;tn("keys");tn("values");tn("entries");if(c0&&Zs.name!=="values")try{v0(Zs,"name",{value:"values"})}catch{}var y0={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},m0=$r,Va=m0("span").classList,Js=Va&&Va.constructor&&Va.constructor.prototype,b0=Js===Object.prototype?void 0:Js,eo=_,sl=y0,x0=b0,yt=p0,to=At,T0=Rr,O0=z,Da=O0("iterator"),La=yt.values,ol=function(a,e){if(a){if(a[Da]!==La)try{to(a,Da,La)}catch{a[Da]=La}if(T0(a,e,!0),sl[e]){for(var t in yt)if(a[t]!==yt[t])try{to(a,t,yt[t])}catch{a[t]=yt[t]}}}};for(var ka in sl)ol(eo[ka]&&eo[ka].prototype,ka);ol(x0,"DOMTokenList");function S0(a,e){if(Xa(a)!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var r=t.call(a,e);if(Xa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function E0(a){var e=S0(a,"string");return Xa(e)=="symbol"?e:e+""}function rn(a,e,t){return(e=E0(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}var $0=Te,w0=Er,C0=Go,A0=Ii,ro=TypeError,ao="Reduce of empty array with no initial value",P0=function(a){return function(e,t,r,i){var n=w0(e),o=C0(n),s=A0(n);if($0(t),s===0&&r<2)throw new ro(ao);var u=a?s-1:0,l=a?-1:1;if(r<2)for(;;){if(u in o){i=o[u],u+=l;break}if(u+=l,a?u<0:s<=u)throw new ro(ao)}for(;a?u>=0:s>u;u+=l)u in o&&(i=t(i,o[u],u,n));return i}},R0={left:P0(!1)},N0=D,ul=function(a,e){var t=[][a];return!!t&&N0(function(){t.call(null,e||function(){return 1},1)})},I0=ee,M0=R0.left,_0=ul,io=Ei,V0=Pr,D0=!V0&&io>79&&io<83,L0=D0||!_0("reduce");I0({target:"Array",proto:!0,forced:L0},{reduce:function(e){var t=arguments.length;return M0(this,e,t,t>1?arguments[1]:void 0)}});var k0=ee,B0=Nr,j0=$t.f,F0=ut,no=pe,U0=Ji,G0=ve,z0=en,H0=B0("".slice),Y0=Math.min,ll=z0("endsWith"),X0=!ll&&!!function(){var a=j0(String.prototype,"endsWith");return a&&!a.writable}();k0({target:"String",proto:!0,forced:!X0&&!ll},{endsWith:function(e){var t=no(G0(this));U0(e);var r=no(e),i=arguments.length>1?arguments[1]:void 0,n=t.length,o=i===void 0?n:Y0(F0(i),n);return H0(t,o-r.length,o)===r}});var Ba=Y,an=L,W0=Wi,q0=J,Q0=ae,K0=ve,Z0=yu,J0=Qi,eb=ut,ja=pe,tb=ot,rb=Vr,so=Ki,ab=Yu,ib=D,qe=ab.UNSUPPORTED_Y,nb=4294967295,sb=Math.min,Fa=an([].push),Ua=an("".slice),ar=an("".indexOf),ob=!ib(function(){var a=/(?:)/,e=a.exec;a.exec=function(){return e.apply(this,arguments)};var t="ab".split(a);return t.length!==2||t[0]!=="a"||t[1]!=="b"}),oo="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;W0("split",function(a,e,t){var r="0".split(void 0,0).length?function(i,n){return i===void 0&&n===0?[]:Ba(e,this,i,n)}:e;return[function(n,o){var s=K0(this),u=Q0(n)?tb(n,a):void 0;return u?Ba(u,n,s,o):Ba(r,ja(s),n,o)},function(i,n){var o=q0(this),s=ja(i);if(!oo){var u=t(r,o,s,n,r!==e);if(u.done)return u.value}var l=Z0(o,RegExp),h=ja(rb(o)),f=!!~ar(h,"u")||!!~ar(h,"v");qe?~ar(h,"g")||(h+="g"):~ar(h,"y")||(h+="y");var c=new l(qe?"^(?:"+o.source+")":o,h),v=n===void 0?nb:n>>>0;if(v===0)return[];if(s.length===0)return so(c,s)===null?[s]:[];for(var g=0,d=0,p=[];d<s.length;){c.lastIndex=qe?0:d;var y=so(c,qe?Ua(s,d):s),T;if(y===null||(T=sb(eb(c.lastIndex+(qe?d:0)),s.length))===g)d=J0(s,d,f);else{if(Fa(p,Ua(s,g,d)),p.length===v)return p;for(var b=1;b<=y.length-1;b++)if(Fa(p,y[b]),p.length===v)return p;d=g=T}}return Fa(p,Ua(s,g)),p}]},oo||!ob,qe);var Lr={exports:{}},mt={exports:{}};(function(){var a,e,t,r,i,n;typeof performance<"u"&&performance!==null&&performance.now?mt.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(mt.exports=function(){return(a()-i)/1e6},e=process.hrtime,a=function(){var o;return o=e(),o[0]*1e9+o[1]},r=a(),n=process.uptime()*1e9,i=r-n):Date.now?(mt.exports=function(){return Date.now()-t},t=Date.now()):(mt.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(Ke);var ub=mt.exports,lb=ub,be=typeof window>"u"?Ke:window,ir=["moz","webkit"],rt="AnimationFrame",st=be["request"+rt],Et=be["cancel"+rt]||be["cancelRequest"+rt];for(var pt=0;!st&&pt<ir.length;pt++)st=be[ir[pt]+"Request"+rt],Et=be[ir[pt]+"Cancel"+rt]||be[ir[pt]+"CancelRequest"+rt];if(!st||!Et){var Ga=0,uo=0,_e=[],hb=1e3/60;st=function(a){if(_e.length===0){var e=lb(),t=Math.max(0,hb-(e-Ga));Ga=t+e,setTimeout(function(){var r=_e.slice(0);_e.length=0;for(var i=0;i<r.length;i++)if(!r[i].cancelled)try{r[i].callback(Ga)}catch(n){setTimeout(function(){throw n},0)}},Math.round(t))}return _e.push({handle:++uo,callback:a,cancelled:!1}),uo},Et=function(a){for(var e=0;e<_e.length;e++)_e[e].handle===a&&(_e[e].cancelled=!0)}}Lr.exports=function(a){return st.call(be,a)};Lr.exports.cancel=function(){Et.apply(be,arguments)};Lr.exports.polyfill=function(a){a||(a=be),a.requestAnimationFrame=st,a.cancelAnimationFrame=Et};var vb=Lr.exports;const za=Do(vb);var hl=`
|
|
4
4
|
\v\f\r \u2028\u2029\uFEFF`,fb=L,cb=ve,gb=pe,yi=hl,lo=fb("".replace),db=RegExp("^["+yi+"]+"),pb=RegExp("(^|[^"+yi+"])["+yi+"]+$"),yb=function(a){return function(e){var t=gb(cb(e));return a&1&&(t=lo(t,db,"")),a&2&&(t=lo(t,pb,"$1")),t}},mb={trim:yb(3)},bb=wr.PROPER,xb=D,ho=hl,vo="
",Tb=function(a){return xb(function(){return!!ho[a]()||vo[a]()!==vo||bb&&ho[a].name!==a})},Ob=ee,Sb=mb.trim,Eb=Tb;Ob({target:"String",proto:!0,forced:Eb("trim")},{trim:function(){return Sb(this)}});var $b=function(a){this.ok=!1,this.alpha=1,a.charAt(0)=="#"&&(a=a.substr(1,6)),a=a.replace(/ /g,""),a=a.toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};a=e[a]||a;for(var t=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3]),parseFloat(u[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(u){return[parseInt(u[1],16),parseInt(u[2],16),parseInt(u[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(u){return[parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16),parseInt(u[3]+u[3],16)]}}],r=0;r<t.length;r++){var i=t[r].re,n=t[r].process,o=i.exec(a);if(o){var s=n(o);this.r=s[0],this.g=s[1],this.b=s[2],s.length>3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var u=this.r.toString(16),l=this.g.toString(16),h=this.b.toString(16);return u.length==1&&(u="0"+u),l.length==1&&(l="0"+l),h.length==1&&(h="0"+h),"#"+u+l+h},this.getHelpXML=function(){for(var u=new Array,l=0;l<t.length;l++)for(var h=t[l].example,f=0;f<h.length;f++)u[u.length]=h[f];for(var c in e)u[u.length]=c;var v=document.createElement("ul");v.setAttribute("id","rgbcolor-examples");for(var l=0;l<u.length;l++)try{var g=document.createElement("li"),d=new RGBColor(u[l]),p=document.createElement("div");p.style.cssText="margin: 3px; border: 1px solid black; background:"+d.toHex()+"; color:"+d.toHex(),p.appendChild(document.createTextNode("test"));var y=document.createTextNode(" "+u[l]+" -> "+d.toRGB()+" -> "+d.toHex());g.appendChild(p),g.appendChild(y),v.appendChild(g)}catch{}return v}};const mi=Do($b);var wb=ee,Cb=Nr,Ab=su.indexOf,Pb=ul,bi=Cb([].indexOf),vl=!!bi&&1/bi([1],1,-0)<0,Rb=vl||!Pb("indexOf");wb({target:"Array",proto:!0,forced:Rb},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return vl?bi(this,e,t)||0:Ab(this,e,t)}});var Nb=ee,Ib=L,Mb=Ji,_b=ve,fo=pe,Vb=en,Db=Ib("".indexOf);Nb({target:"String",proto:!0,forced:!Vb("includes")},{includes:function(e){return!!~Db(fo(_b(this)),fo(Mb(e)),arguments.length>1?arguments[1]:void 0)}});var Lb=je,kb=Array.isArray||function(e){return Lb(e)==="Array"},Bb=ee,jb=L,Fb=kb,Ub=jb([].reverse),co=[1,2];Bb({target:"Array",proto:!0,forced:String(co)===String(co.reverse())},{reverse:function(){return Fb(this)&&(this.length=this.length),Ub(this)}});/*! *****************************************************************************
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e,ah as s,az as n,w as i}from"./mermaid.core-DoXF1I4r.js";import{p}from"./wardley-L42UT6IY-cmE8YucU.js";import"./index-DrmDilPO.js";import"./purify.es-CLGrRn1w.js";import"./step-CWvwoXpJ.js";var g={parse:e(async r=>{const a=await p("info",r);s.debug(a)},"parse")},v={version:"11.15.0"},d=e(()=>v.version,"getVersion"),m={getVersion:d},c=e((r,a,o)=>{s.debug(`rendering info diagram
|
|
2
|
+
`+r);const t=n(a);i(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${o}`)},"draw"),f={draw:c},y={parser:g,db:m,renderer:f};export{y as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function s(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}export{a,s as i};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import{a as o,N as ot,an as ut,az as dt,g as yt,n as ft,s as pt,aD as it,L as gt,aB as kt,K as mt,aA as wt,O as _t,w as xt}from"./mermaid.core-DoXF1I4r.js";import"./index-DrmDilPO.js";import"./purify.es-CLGrRn1w.js";import"./step-CWvwoXpJ.js";var tt=function(){var e=o(function(M,t,s,i){for(s=s||{},i=M.length;i--;s[M[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],c=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],b=[1,6,7,11,13,14],P={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,u,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return u;case 15:u.addNode(n[w-1].length,n[w].trim());break;case 16:u.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(c,[2,18],{14:[1,21]}),e(c,[2,16]),e(c,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(b,[2,8]),e(b,[2,9]),e(b,[2,10]),e(c,[2,15]),e(k,[2,13],{7:g,11:_}),e(b,[2,11]),e(b,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],u=[],p=[null],n=[],v=this.table,w="",I=0,S=0,L=2,E=1,R=n.slice.call(arguments,1),x=Object.create(this.lexer),C={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(C.yy[z]=this.yy[z]);x.setInput(t,C.yy),C.yy.lexer=x,C.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var T=x.yylloc;n.push(T);var D=x.options&&x.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function F(B){i.length=i.length-2*B,p.length=p.length-B,n.length=n.length-B}o(F,"popStack");function j(){var B;return B=u.pop()||x.lex()||E,typeof B!="number"&&(B instanceof Array&&(u=B,B=u.pop()),B=s.symbols_[B]||B),B}o(j,"lex");for(var A,W,N,q,H={},K,V,et,X;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((A===null||typeof A>"u")&&(A=j()),N=v[W]&&v[W][A]),typeof N>"u"||!N.length||!N[0]){var Q="";X=[];for(K in v[W])this.terminals_[K]&&K>L&&X.push("'"+this.terminals_[K]+"'");x.showPosition?Q="Parse error on line "+(I+1)+`:
|
|
2
|
+
`+x.showPosition()+`
|
|
3
|
+
Expecting `+X.join(", ")+", got '"+(this.terminals_[A]||A)+"'":Q="Parse error on line "+(I+1)+": Unexpected "+(A==E?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(Q,{text:x.match,token:this.terminals_[A]||A,line:x.yylineno,loc:T,expected:X})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+A);switch(N[0]){case 1:i.push(A),p.push(x.yytext),n.push(x.yylloc),i.push(N[1]),A=null,S=x.yyleng,w=x.yytext,I=x.yylineno,T=x.yylloc;break;case 2:if(V=this.productions_[N[1]][1],H.$=p[p.length-V],H._$={first_line:n[n.length-(V||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(V||1)].first_column,last_column:n[n.length-1].last_column},D&&(H._$.range=[n[n.length-(V||1)].range[0],n[n.length-1].range[1]]),q=this.performAction.apply(H,[w,S,I,C.yy,N[1],p,n].concat(R)),typeof q<"u")return q;V&&(i=i.slice(0,-1*V*2),p=p.slice(0,-1*V),n=n.slice(0,-1*V)),i.push(this.productions_[N[1]][0]),p.push(H.$),n.push(H._$),et=v[i[i.length-2]][i[i.length-1]],i.push(et);break;case 3:return!0}}return!0},"parse")},O=function(){var M={EOF:1,parseError:o(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:o(function(t,s){return this.yy=s||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var s=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===u.length?this.yylloc.first_column:0)+u[u.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|
|
5
|
+
`+s+"^"},"showPosition"),test_match:o(function(t,s){var i,u,p;if(this.options.backtrack_lexer&&(p={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(p.yylloc.range=this.yylloc.range.slice(0))),u=t[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var n in p)this[n]=p[n];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,s,i,u;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),n=0;n<p.length;n++)if(i=this._input.match(this.rules[p[n]]),i&&(!s||i[0].length>s[0].length)){if(s=i,u=n,this.options.backtrack_lexer){if(t=this.test_match(i,p[n]),t!==!1)return t;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(t=this.test_match(s,p[u]),t!==!1?t:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var s=this.next();return s||this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"begin"),popState:o(function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},"topState"),pushState:o(function(s){this.begin(s)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(s,i,u,p){switch(u){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return M}();P.lexer=O;function $(){this.yy={}}return o($,"Parser"),$.prototype=P,P.Parser=$,new $}();tt.parser=tt;var bt=tt,Z,vt=(Z=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,ft()}getRoot(){return this.root}addNode(h,r){const a=pt.sanitizeText(r,ot());if(!this.root){this.root={text:a,children:[]},this.stack=[{level:0,node:this.root}],it(a);return}this.baseLevel??(this.baseLevel=h);let l=h-this.baseLevel+1;for(l<=0&&(l=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=l;)this.stack.pop();const y=this.stack[this.stack.length-1].node,f={text:a,children:[]};y.children.push(f),this.stack.push({level:l,node:f})}getAccTitle(){return gt()}setAccTitle(h){kt(h)}getAccDescription(){return mt()}setAccDescription(h){wt(h)}getDiagramTitle(){return _t()}setDiagramTitle(h){it(h)}},o(Z,"IshikawaDB"),Z),St=14,G=250,$t=30,Et=60,At=5,ht=82*Math.PI/180,st=Math.cos(ht),nt=Math.sin(ht),at=o((e,h,r)=>{const a=e.node().getBBox(),l=a.width+h*2,y=a.height+h*2;xt(e,y,l,r),e.attr("viewBox",`${a.x-h} ${a.y-h} ${l} ${y}`)},"applyPaddedViewBox"),It=o((e,h,r,a)=>{var C,z;const y=a.db.getRoot();if(!y)return;const f=ot(),{look:d,handDrawnSeed:m,themeVariables:c}=f,k=ut(f.fontSize)[0]??St,g=d==="handDrawn",_=y.children??[],b=((C=f.ishikawa)==null?void 0:C.diagramPadding)??20,P=((z=f.ishikawa)==null?void 0:z.useMaxWidth)??!1,O=dt(h),$=O.append("g").attr("class","ishikawa"),M=g?yt.svg(O.node()):void 0,t=M?{roughSvg:M,seed:m??0,lineColor:(c==null?void 0:c.lineColor)??"#333",fillColor:(c==null?void 0:c.mainBkg)??"#fff"}:void 0,s=`ishikawa-arrow-${h}`;g||$.append("defs").append("marker").attr("id",s).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let i=0,u=G;const p=g?void 0:U($,i,u,i,u,"ishikawa-spine");if(Lt($,i,u,y.text,k,t),!_.length){g&&U($,i,u,i,u,"ishikawa-spine",t),at(O,b,P);return}i-=20;const n=_.filter((T,D)=>D%2===0),v=_.filter((T,D)=>D%2===1),w=rt(n),I=rt(v),S=w.total+I.total;let L=G,E=G;if(S>0){const T=G*2,D=G*.3;L=Math.max(D,T*(w.total/S)),E=Math.max(D,T*(I.total/S))}const R=k*2;L=Math.max(L,w.max*R),E=Math.max(E,I.max*R),u=Math.max(L,G),p&&p.attr("y1",u).attr("y2",u),$.select(".ishikawa-head-group").attr("transform",`translate(0,${u})`);const x=Math.ceil(_.length/2);for(let T=0;T<x;T++){const D=$.append("g").attr("class","ishikawa-pair");for(const[F,j,A]of[[_[T*2],-1,L],[_[T*2+1],1,E]])F&&Bt(D,F,i,u,j,A,k,t);i=D.selectAll("text").nodes().reduce((F,j)=>Math.min(F,j.getBBox().x),1/0)}if(g)U($,i,u,0,u,"ishikawa-spine",t);else{p.attr("x1",i);const T=`url(#${s})`;$.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",T)}at(O,b,P)},"draw"),rt=o(e=>{const h=o(r=>r.children.reduce((a,l)=>a+1+h(l),0),"countDescendants");return e.reduce((r,a)=>{const l=h(a);return r.total+=l,r.max=Math.max(r.max,l),r},{total:0,max:0})},"sideStats"),Lt=o((e,h,r,a,l,y)=>{const f=Math.max(6,Math.floor(110/(l*.6))),d=e.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${h},${r})`),m=Y(d,ct(a,f),0,0,"ishikawa-head-label","start",l),c=m.node().getBBox(),k=Math.max(60,c.width+6),g=Math.max(40,c.height*2+40),_=`M 0 ${-g/2} L 0 ${g/2} Q ${k*2.4} 0 0 ${-g/2} Z`;if(y){const b=y.roughSvg.path(_,{roughness:1.5,seed:y.seed,fill:y.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:y.lineColor,strokeWidth:2});d.insert(()=>b,":first-child").attr("class","ishikawa-head")}else d.insert("path",":first-child").attr("class","ishikawa-head").attr("d",_);m.attr("transform",`translate(${(k-c.width)/2-c.x+3},${-c.y-c.height/2})`)},"drawHead"),Tt=o((e,h)=>{const r=[],a=[],l=o((y,f,d)=>{const m=h===-1?[...y].reverse():y;for(const c of m){const k=r.length,g=c.children??[];r.push({depth:d,text:ct(c.text,15),parentIndex:f,childCount:g.length}),d%2===0?(a.push(k),g.length&&l(g,k,d+1)):(g.length&&l(g,k,d+1),a.push(k))}},"walk");return l(e,-1,2),{entries:r,yOrder:a}},"flattenTree"),Mt=o((e,h,r,a,l,y,f)=>{const d=e.append("g").attr("class","ishikawa-label-group"),c=Y(d,h,r,a+11*l,"ishikawa-label cause","middle",y).node().getBBox();if(f){const k=f.roughSvg.rectangle(c.x-20,c.y-2,c.width+40,c.height+4,{roughness:1.5,seed:f.seed,fill:f.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:f.lineColor,strokeWidth:2});d.insert(()=>k,":first-child").attr("class","ishikawa-label-box")}else d.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",c.x-20).attr("y",c.y-2).attr("width",c.width+40).attr("height",c.height+4)},"drawCauseLabel"),J=o((e,h,r,a,l,y)=>{const f=Math.sqrt(a*a+l*l);if(f===0)return;const d=a/f,m=l/f,c=6,k=-m*c,g=d*c,_=h,b=r,P=`M ${_} ${b} L ${_-d*c*2+k} ${b-m*c*2+g} L ${_-d*c*2-k} ${b-m*c*2-g} Z`,O=y.roughSvg.path(P,{roughness:1,seed:y.seed,fill:y.lineColor,fillStyle:"solid",stroke:y.lineColor,strokeWidth:1});e.append(()=>O)},"drawArrowMarker"),Bt=o((e,h,r,a,l,y,f,d)=>{const m=h.children??[],c=y*(m.length?1:.2),k=-st*c,g=nt*c*l,_=r+k,b=a+g;if(U(e,r,a,_,b,"ishikawa-branch",d),d&&J(e,r,a,r-_,a-b,d),Mt(e,h.text,_,b,l,f,d),!m.length)return;const{entries:P,yOrder:O}=Tt(m,l),$=P.length,M=new Array($);for(const[p,n]of O.entries())M[n]=a+g*((p+1)/($+1));const t=new Map;t.set(-1,{x0:r,y0:a,x1:_,y1:b,childCount:m.length,childrenDrawn:0});const s=-st,i=nt*l,u=l<0?"ishikawa-label up":"ishikawa-label down";for(const[p,n]of P.entries()){const v=M[p],w=t.get(n.parentIndex),I=e.append("g").attr("class","ishikawa-sub-group");let S=0,L=0,E=0;if(n.depth%2===0){const R=w.y1-w.y0;S=lt(w.x0,w.x1,R?(v-w.y0)/R:.5),L=v,E=S-(n.childCount>0?Et+n.childCount*At:$t),U(I,S,v,E,v,"ishikawa-sub-branch",d),d&&J(I,S,v,1,0,d),Y(I,n.text,E,v,"ishikawa-label align","end",f)}else{const R=w.childrenDrawn++;S=lt(w.x0,w.x1,(w.childCount-R)/(w.childCount+1)),L=w.y0,E=S+s*((v-L)/i),U(I,S,L,E,v,"ishikawa-sub-branch",d),d&&J(I,S,L,S-E,L-v,d),Y(I,n.text,E,v,u,"end",f)}n.childCount>0&&t.set(p,{x0:S,y0:L,x1:E,y1:v,childCount:n.childCount,childrenDrawn:0})}},"drawBranch"),Nt=o(e=>e.split(/<br\s*\/?>|\n/),"splitLines"),ct=o((e,h)=>{if(e.length<=h)return e;const r=[];for(const a of e.split(/\s+/)){const l=r.length-1;l>=0&&r[l].length+1+a.length<=h?r[l]+=" "+a:r.push(a)}return r.join(`
|
|
7
|
+
`)},"wrapText"),Y=o((e,h,r,a,l,y,f)=>{const d=Nt(h),m=f*1.05,c=e.append("text").attr("class",l).attr("text-anchor",y).attr("x",r).attr("y",a-(d.length-1)*m/2);for(const[k,g]of d.entries())c.append("tspan").attr("x",r).attr("dy",k===0?0:m).text(g);return c},"drawMultilineText"),lt=o((e,h,r)=>e+(h-e)*r,"lerp"),U=o((e,h,r,a,l,y,f)=>{if(f){const d=f.roughSvg.line(h,r,a,l,{roughness:1.5,seed:f.seed,stroke:f.lineColor,strokeWidth:2});e.append(()=>d).attr("class",y);return}return e.append("line").attr("class",y).attr("x1",h).attr("y1",r).attr("x2",a).attr("y2",l)},"drawLine"),Pt={draw:It},Dt=o(e=>`
|
|
8
|
+
.ishikawa .ishikawa-spine,
|
|
9
|
+
.ishikawa .ishikawa-branch,
|
|
10
|
+
.ishikawa .ishikawa-sub-branch {
|
|
11
|
+
stroke: ${e.lineColor};
|
|
12
|
+
stroke-width: 2;
|
|
13
|
+
fill: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.ishikawa .ishikawa-sub-branch {
|
|
17
|
+
stroke-width: 1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ishikawa .ishikawa-arrow {
|
|
21
|
+
fill: ${e.lineColor};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.ishikawa .ishikawa-head {
|
|
25
|
+
fill: ${e.mainBkg};
|
|
26
|
+
stroke: ${e.lineColor};
|
|
27
|
+
stroke-width: 2;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.ishikawa .ishikawa-label-box {
|
|
31
|
+
fill: ${e.mainBkg};
|
|
32
|
+
stroke: ${e.lineColor};
|
|
33
|
+
stroke-width: 2;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.ishikawa text {
|
|
37
|
+
font-family: ${e.fontFamily};
|
|
38
|
+
font-size: ${e.fontSize};
|
|
39
|
+
fill: ${e.textColor};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.ishikawa .ishikawa-head-label {
|
|
43
|
+
font-weight: 600;
|
|
44
|
+
text-anchor: middle;
|
|
45
|
+
dominant-baseline: middle;
|
|
46
|
+
font-size: 14px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.ishikawa .ishikawa-label {
|
|
50
|
+
text-anchor: end;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.ishikawa .ishikawa-label.cause {
|
|
54
|
+
text-anchor: middle;
|
|
55
|
+
dominant-baseline: middle;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.ishikawa .ishikawa-label.align {
|
|
59
|
+
text-anchor: end;
|
|
60
|
+
dominant-baseline: middle;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ishikawa .ishikawa-label.up {
|
|
64
|
+
dominant-baseline: baseline;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.ishikawa .ishikawa-label.down {
|
|
68
|
+
dominant-baseline: hanging;
|
|
69
|
+
}
|
|
70
|
+
`,"getStyles"),Ot=Dt,zt={parser:bt,get db(){return new vt},renderer:Pt,styles:Ot};export{zt as diagram};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import{g as gt}from"./chunk-FMBD7UC4-Cl6A8JUa.js";import{d as mt,g as lt,f as xt,e as kt}from"./chunk-ND2GUHAM-LRV96SE3.js";import{K as _t,aA as vt,L as bt,aB as wt,O as Tt,aD as St,a as s,N as R,w as $t,n as Mt}from"./mermaid.core-DoXF1I4r.js";import{s as G}from"./index-DrmDilPO.js";import{d as it}from"./arc-DtxbFlka.js";import"./purify.es-CLGrRn1w.js";import"./step-CWvwoXpJ.js";var U=function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var X="";z=[];for(N in v[A])this.terminals_[N]&&N>yt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?X="Parse error on line "+(C+1)+`:
|
|
2
|
+
`+_.showPosition()+`
|
|
3
|
+
Expecting `+z.join(", ")+", got '"+(this.terminals_[b]||b)+"'":X="Parse error on line "+(C+1)+": Unexpected "+(b==D?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(X,{text:_.match,token:this.terminals_[b]||b,line:_.yylineno,loc:Y,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+b);switch(T[0]){case 1:l.push(b),d.push(_.yytext),c.push(_.yylloc),l.push(T[1]),b=null,Q=_.yyleng,k=_.yytext,C=_.yylineno,Y=_.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=d[d.length-M],F._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},ft&&(F._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),q=this.performAction.apply(F,[k,Q,C,I.yy,T[1],d,c].concat(dt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(F.$),c.push(F._$),et=v[l[l.length-2]][l[l.length-1]],l.push(et);break;case 3:return!0}}return!0},"parse")},m=function(){var h={EOF:1,parseError:s(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:s(function(r,n){return this.yy=n||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var n=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
5
|
+
`+n+"^"},"showPosition"),test_match:s(function(r,n){var l,y,d;if(this.options.backtrack_lexer&&(d={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(d.yylloc.range=this.yylloc.range.slice(0))),y=r[0].match(/(?:\r\n?|\n).*/g),y&&(this.yylineno+=y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],l=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var c in d)this[c]=d[c];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,n,l,y;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),c=0;c<d.length;c++)if(l=this._input.match(this.rules[d[c]]),l&&(!n||l[0].length>n[0].length)){if(n=l,y=c,this.options.backtrack_lexer){if(r=this.test_match(l,d[c]),r!==!1)return r;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(r=this.test_match(n,d[y]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var n=this.next();return n||this.lex()},"lex"),begin:s(function(n){this.conditionStack.push(n)},"begin"),popState:s(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:s(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:s(function(n){this.begin(n)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(n,l,y,d){switch(y){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return h}();g.lexer=m;function x(){this.yy={}}return s(x,"Parser"),x.prototype=g,g.Parser=x,new x}();U.parser=U;var Et=U,V="",Z=[],L=[],B=[],Ct=s(function(){Z.length=0,L.length=0,V="",B.length=0,Mt()},"clear"),Pt=s(function(t){V=t,Z.push(t)},"addSection"),It=s(function(){return Z},"getSections"),At=s(function(){let t=rt();const e=100;let a=0;for(;!t&&a<e;)t=rt(),a++;return L.push(...B),L},"getTasks"),Ft=s(function(){const t=[];return L.forEach(a=>{a.people&&t.push(...a.people)}),[...new Set(t)].sort()},"updateActors"),Vt=s(function(t,e){const a=e.substr(1).split(":");let f=0,i=[];a.length===1?(f=Number(a[0]),i=[]):(f=Number(a[0]),i=a[1].split(","));const u=i.map(o=>o.trim()),p={section:V,type:V,people:u,task:t,score:f};B.push(p)},"addTask"),Rt=s(function(t){const e={section:V,type:V,description:t,task:t,classes:[]};L.push(e)},"addTaskOrg"),rt=s(function(){const t=s(function(a){return B[a].processed},"compileTask");let e=!0;for(const[a,f]of B.entries())t(a),e=e&&f.processed;return e},"compileTasks"),Lt=s(function(){return Ft()},"getActors"),nt={getConfig:s(()=>R().journey,"getConfig"),clear:Ct,setDiagramTitle:St,getDiagramTitle:Tt,setAccTitle:wt,getAccTitle:bt,setAccDescription:vt,getAccDescription:_t,addSection:Pt,getSections:It,getTasks:At,addTask:Vt,addTaskOrg:Rt,getActors:Lt},Bt=s(t=>`.label {
|
|
7
|
+
font-family: ${t.fontFamily};
|
|
8
|
+
color: ${t.textColor};
|
|
9
|
+
}
|
|
10
|
+
.mouth {
|
|
11
|
+
stroke: #666;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
line {
|
|
15
|
+
stroke: ${t.textColor}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.legend {
|
|
19
|
+
fill: ${t.textColor};
|
|
20
|
+
font-family: ${t.fontFamily};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.label text {
|
|
24
|
+
fill: #333;
|
|
25
|
+
}
|
|
26
|
+
.label {
|
|
27
|
+
color: ${t.textColor}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.face {
|
|
31
|
+
${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"};
|
|
32
|
+
stroke: #999;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.node rect,
|
|
36
|
+
.node circle,
|
|
37
|
+
.node ellipse,
|
|
38
|
+
.node polygon,
|
|
39
|
+
.node path {
|
|
40
|
+
fill: ${t.mainBkg};
|
|
41
|
+
stroke: ${t.nodeBorder};
|
|
42
|
+
stroke-width: 1px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.node .label {
|
|
46
|
+
text-align: center;
|
|
47
|
+
}
|
|
48
|
+
.node.clickable {
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.arrowheadPath {
|
|
53
|
+
fill: ${t.arrowheadColor};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.edgePath .path {
|
|
57
|
+
stroke: ${t.lineColor};
|
|
58
|
+
stroke-width: 1.5px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.flowchart-link {
|
|
62
|
+
stroke: ${t.lineColor};
|
|
63
|
+
fill: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.edgeLabel {
|
|
67
|
+
background-color: ${t.edgeLabelBackground};
|
|
68
|
+
rect {
|
|
69
|
+
opacity: 0.5;
|
|
70
|
+
}
|
|
71
|
+
text-align: center;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.cluster rect {
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.cluster text {
|
|
78
|
+
fill: ${t.titleColor};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
div.mermaidTooltip {
|
|
82
|
+
position: absolute;
|
|
83
|
+
text-align: center;
|
|
84
|
+
max-width: 200px;
|
|
85
|
+
padding: 2px;
|
|
86
|
+
font-family: ${t.fontFamily};
|
|
87
|
+
font-size: 12px;
|
|
88
|
+
background: ${t.tertiaryColor};
|
|
89
|
+
border: 1px solid ${t.border2};
|
|
90
|
+
border-radius: 2px;
|
|
91
|
+
pointer-events: none;
|
|
92
|
+
z-index: 100;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.task-type-0, .section-type-0 {
|
|
96
|
+
${t.fillType0?`fill: ${t.fillType0}`:""};
|
|
97
|
+
}
|
|
98
|
+
.task-type-1, .section-type-1 {
|
|
99
|
+
${t.fillType0?`fill: ${t.fillType1}`:""};
|
|
100
|
+
}
|
|
101
|
+
.task-type-2, .section-type-2 {
|
|
102
|
+
${t.fillType0?`fill: ${t.fillType2}`:""};
|
|
103
|
+
}
|
|
104
|
+
.task-type-3, .section-type-3 {
|
|
105
|
+
${t.fillType0?`fill: ${t.fillType3}`:""};
|
|
106
|
+
}
|
|
107
|
+
.task-type-4, .section-type-4 {
|
|
108
|
+
${t.fillType0?`fill: ${t.fillType4}`:""};
|
|
109
|
+
}
|
|
110
|
+
.task-type-5, .section-type-5 {
|
|
111
|
+
${t.fillType0?`fill: ${t.fillType5}`:""};
|
|
112
|
+
}
|
|
113
|
+
.task-type-6, .section-type-6 {
|
|
114
|
+
${t.fillType0?`fill: ${t.fillType6}`:""};
|
|
115
|
+
}
|
|
116
|
+
.task-type-7, .section-type-7 {
|
|
117
|
+
${t.fillType0?`fill: ${t.fillType7}`:""};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.actor-0 {
|
|
121
|
+
${t.actor0?`fill: ${t.actor0}`:""};
|
|
122
|
+
}
|
|
123
|
+
.actor-1 {
|
|
124
|
+
${t.actor1?`fill: ${t.actor1}`:""};
|
|
125
|
+
}
|
|
126
|
+
.actor-2 {
|
|
127
|
+
${t.actor2?`fill: ${t.actor2}`:""};
|
|
128
|
+
}
|
|
129
|
+
.actor-3 {
|
|
130
|
+
${t.actor3?`fill: ${t.actor3}`:""};
|
|
131
|
+
}
|
|
132
|
+
.actor-4 {
|
|
133
|
+
${t.actor4?`fill: ${t.actor4}`:""};
|
|
134
|
+
}
|
|
135
|
+
.actor-5 {
|
|
136
|
+
${t.actor5?`fill: ${t.actor5}`:""};
|
|
137
|
+
}
|
|
138
|
+
${gt()}
|
|
139
|
+
`,"getStyles"),jt=Bt,J=s(function(t,e){return kt(t,e)},"drawRect"),Nt=s(function(t,e){const f=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=t.append("g");i.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function u(g){const m=it().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}s(u,"smile");function p(g){const m=it().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}s(p,"sad");function o(g){g.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return s(o,"ambivalent"),e.score>3?u(i):e.score<3?p(i):o(i),f},"drawFace"),ot=s(function(t,e){const a=t.append("circle");return a.attr("cx",e.cx),a.attr("cy",e.cy),a.attr("class","actor-"+e.pos),a.attr("fill",e.fill),a.attr("stroke",e.stroke),a.attr("r",e.r),a.class!==void 0&&a.attr("class",a.class),e.title!==void 0&&a.append("title").text(e.title),a},"drawCircle"),ct=s(function(t,e){return xt(t,e)},"drawText"),zt=s(function(t,e){function a(i,u,p,o,g){return i+","+u+" "+(i+p)+","+u+" "+(i+p)+","+(u+o-g)+" "+(i+p-g*1.2)+","+(u+o)+" "+i+","+(u+o)}s(a,"genPoints");const f=t.append("polygon");f.attr("points",a(e.x,e.y,50,20,7)),f.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,ct(t,e)},"drawLabel"),Wt=s(function(t,e,a){const f=t.append("g"),i=lt();i.x=e.x,i.y=e.y,i.fill=e.fill,i.width=a.width*e.taskCount+a.diagramMarginX*(e.taskCount-1),i.height=a.height,i.class="journey-section section-type-"+e.num,i.rx=3,i.ry=3,J(f,i),ht(a)(e.text,f,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+e.num},a,e.colour)},"drawSection"),K=-1,Ot=s(function(t,e,a,f){const i=e.x+a.width/2,u=t.append("g");K++;const p=300+5*30;u.append("line").attr("id",f+"-task"+K).attr("x1",i).attr("y1",e.y).attr("x2",i).attr("y2",p).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Nt(u,{cx:i,cy:300+(5-e.score)*30,score:e.score});const o=lt();o.x=e.x,o.y=e.y,o.fill=e.fill,o.width=a.width,o.height=a.height,o.class="task task-type-"+e.num,o.rx=3,o.ry=3,J(u,o);let g=e.x+14;e.people.forEach(m=>{const x=e.actors[m].color,h={cx:g,cy:e.y,r:7,fill:x,stroke:"#000",title:m,pos:e.actors[m].position};ot(u,h),g+=10}),ht(a)(e.task,u,o.x,o.y,o.width,o.height,{class:"task"},a,e.colour)},"drawTask"),Yt=s(function(t,e){mt(t,e)},"drawBackgroundRect"),ht=function(){function t(i,u,p,o,g,m,x,h){const r=u.append("text").attr("x",p+g/2).attr("y",o+m/2+5).style("font-color",h).style("text-anchor","middle").text(i);f(r,x)}s(t,"byText");function e(i,u,p,o,g,m,x,h,r){const{taskFontSize:n,taskFontFamily:l}=h,y=i.split(/<br\s*\/?>/gi);for(let d=0;d<y.length;d++){const c=d*n-n*(y.length-1)/2,v=u.append("text").attr("x",p+g/2).attr("y",o).attr("fill",r).style("text-anchor","middle").style("font-size",n).style("font-family",l);v.append("tspan").attr("x",p+g/2).attr("dy",c).text(y[d]),v.attr("y",o+m/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),f(v,x)}}s(e,"byTspan");function a(i,u,p,o,g,m,x,h){const r=u.append("switch"),l=r.append("foreignObject").attr("x",p).attr("y",o).attr("width",g).attr("height",m).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),e(i,r,p,o,g,m,x,h),f(l,x)}s(a,"byFo");function f(i,u){for(const p in u)p in u&&i.attr(p,u[p])}return s(f,"_setTextAttrs"),function(i){return i.textPlacement==="fo"?a:i.textPlacement==="old"?t:e}}(),qt=s(function(t,e){K=-1,t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics"),j={drawRect:J,drawCircle:ot,drawSection:Wt,drawText:ct,drawLabel:zt,drawTask:Ot,drawBackgroundRect:Yt,initGraphics:qt},Xt=s(function(t){Object.keys(t).forEach(function(a){$[a]=t[a]})},"setConf"),E={},W=0;function ut(t){const e=R().journey,a=e.maxLabelWidth;W=0;let f=60;Object.keys(E).forEach(i=>{const u=E[i].color,p={cx:20,cy:f,r:7,fill:u,stroke:"#000",pos:E[i].position};j.drawCircle(t,p);let o=t.append("text").attr("visibility","hidden").text(i);const g=o.node().getBoundingClientRect().width;o.remove();let m=[];if(g<=a)m=[i];else{const x=i.split(" ");let h="";o=t.append("text").attr("visibility","hidden"),x.forEach(r=>{const n=h?`${h} ${r}`:r;if(o.text(n),o.node().getBoundingClientRect().width>a){if(h&&m.push(h),h=r,o.text(r),o.node().getBoundingClientRect().width>a){let y="";for(const d of r)y+=d,o.text(y+"-"),o.node().getBoundingClientRect().width>a&&(m.push(y.slice(0,-1)+"-"),y=d);h=y}}else h=n}),h&&m.push(h),o.remove()}m.forEach((x,h)=>{const r={x:40,y:f+7+h*20,fill:"#666",text:x,textMargin:e.boxTextMargin??5},l=j.drawText(t,r).node().getBoundingClientRect().width;l>W&&l>e.leftMargin-l&&(W=l)}),f+=Math.max(20,m.length*20)})}s(ut,"drawActorLegend");var $=R().journey,P=0,Gt=s(function(t,e,a,f){const i=R(),u=i.journey.titleColor,p=i.journey.titleFontSize,o=i.journey.titleFontFamily,g=i.securityLevel;let m;g==="sandbox"&&(m=G("#i"+e));const x=g==="sandbox"?G(m.nodes()[0].contentDocument.body):G("body");S.init();const h=x.select("#"+e);j.initGraphics(h,e);const r=f.db.getTasks(),n=f.db.getDiagramTitle(),l=f.db.getActors();for(const C in E)delete E[C];let y=0;l.forEach(C=>{E[C]={color:$.actorColours[y%$.actorColours.length],position:y},y++}),ut(h),P=$.leftMargin+W,S.insert(0,0,P,Object.keys(E).length*50),Ht(h,r,0,e);const d=S.getBounds();n&&h.append("text").text(n).attr("x",P).attr("font-size",p).attr("font-weight","bold").attr("y",25).attr("fill",u).attr("font-family",o);const c=d.stopy-d.starty+2*$.diagramMarginY,v=P+d.stopx+2*$.diagramMarginX;$t(h,c,v,$.useMaxWidth),h.append("line").attr("x1",P).attr("y1",$.height*4).attr("x2",v-P-4).attr("y2",$.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+e+"-arrowhead)");const k=n?70:0;h.attr("viewBox",`${d.startx} -25 ${v} ${c+k}`),h.attr("preserveAspectRatio","xMinYMin meet"),h.attr("height",c+k+25)},"draw"),S={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:s(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:s(function(t,e,a,f){t[e]===void 0?t[e]=a:t[e]=f(a,t[e])},"updateVal"),updateBounds:s(function(t,e,a,f){const i=R().journey,u=this;let p=0;function o(g){return s(function(x){p++;const h=u.sequenceItems.length-p+1;u.updateVal(x,"starty",e-h*i.boxMargin,Math.min),u.updateVal(x,"stopy",f+h*i.boxMargin,Math.max),u.updateVal(S.data,"startx",t-h*i.boxMargin,Math.min),u.updateVal(S.data,"stopx",a+h*i.boxMargin,Math.max),g!=="activation"&&(u.updateVal(x,"startx",t-h*i.boxMargin,Math.min),u.updateVal(x,"stopx",a+h*i.boxMargin,Math.max),u.updateVal(S.data,"starty",e-h*i.boxMargin,Math.min),u.updateVal(S.data,"stopy",f+h*i.boxMargin,Math.max))},"updateItemBounds")}s(o,"updateFn"),this.sequenceItems.forEach(o())},"updateBounds"),insert:s(function(t,e,a,f){const i=Math.min(t,a),u=Math.max(t,a),p=Math.min(e,f),o=Math.max(e,f);this.updateVal(S.data,"startx",i,Math.min),this.updateVal(S.data,"starty",p,Math.min),this.updateVal(S.data,"stopx",u,Math.max),this.updateVal(S.data,"stopy",o,Math.max),this.updateBounds(i,p,u,o)},"insert"),bumpVerticalPos:s(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:s(function(){return this.verticalPos},"getVerticalPos"),getBounds:s(function(){return this.data},"getBounds")},H=$.sectionFills,st=$.sectionColours,Ht=s(function(t,e,a,f){const i=R().journey;let u="";const p=i.height*2+i.diagramMarginY,o=a+p;let g=0,m="#CCC",x="black",h=0;for(const[r,n]of e.entries()){if(u!==n.section){m=H[g%H.length],h=g%H.length,x=st[g%st.length];let y=0;const d=n.section;for(let v=r;v<e.length&&e[v].section==d;v++)y=y+1;const c={x:r*i.taskMargin+r*i.width+P,y:50,text:n.section,fill:m,num:h,colour:x,taskCount:y};j.drawSection(t,c,i),u=n.section,g++}const l=n.people.reduce((y,d)=>(E[d]&&(y[d]=E[d]),y),{});n.x=r*i.taskMargin+r*i.width+P,n.y=o,n.width=i.diagramMarginX,n.height=i.diagramMarginY,n.colour=x,n.fill=m,n.num=h,n.actors=l,j.drawTask(t,n,i,f),S.insert(n.x,n.y,n.x+n.width+i.taskMargin,300+5*30)}},"drawTasks"),at={setConf:Xt,draw:Gt},ee={parser:Et,db:nt,renderer:at,styles:jt,init:s(t=>{at.setConf(t.journey),nt.clear()},"init")};export{ee as diagram};
|