404
页面不存在
这 是 四 零 四 !
diff --git a/404.html b/404.html new file mode 100644 index 00000000..011daa06 --- /dev/null +++ b/404.html @@ -0,0 +1,40 @@ + + +
+ + + + + + +3D Tiles 是 Cesium 于 2016 年 3 月定义的一种三维模型瓦片数据格式,目前已经是 OGC 标准之一,3D Tiles 将海量三维数据以分块分层的形式组织起来,大大减轻了浏览器和 GPU 的负担。
3D Tiles 专为流式传输和渲染 3D 地理数据而设计的,如倾斜摄影测量、BIM、点云、建筑数据等。特点有:
开放且灵活。 3D Tiles 作为开放数据规范,其切片方案灵活可变,三维模型的切片大小和覆盖范围可以人为设置。此外,3D Tiles 还可以适配三维空间中多种空间分区方案,如四叉树、八叉树、KD 树等。
异质性支持。 通过一组已定义的文件格式,将多种三维地理空间要素(如倾斜摄影测量、BIM、点云、建筑数据、实例化要素等)转换为三维形式的单个数据集,同时又允许多种不同格式标准的模型显示在同一场景中。
专为三维可视化设计。 3D Tiles 建立在 gltf 格式之上,并引入了三维图形学技术,以树状的层级细节模型(HLOD)进行组织,降低海量数据可视化过程中的浏览器负担,减少 WebGL 绘制请求的数量。
可交互。 3D Tiles 支持交互旋转和样式的设置。如单击高亮,修改单个模型的材质,根据属性信息设置不同的显示效果等。
<template>
+ <div id="cesiumContainer" style="width: 100%; height: 100vh;"></div>
+</template>
+
+<script setup>
+import { onMounted } from "vue";
+
+async function init() {
+ const viewer = new Cesium.Viewer(cesiumContainer, { infoBox: false });
+ const tileset = await Cesium.Cesium3DTileset.fromUrl("./data/tileset.json");
+ viewer.scene.primitives.add(tileset);
+ viewer.zoomTo(tileset);
+}
+
+onMounted(() => {
+ init();
+});
+</script>
+
+<template>
+ <div id="cesiumContainer" style="width: 100%; height: 100vh;"></div>
+</template>
+
+<style scoped></style>
+
3dTiles 规范仓库:https://github.com/CesiumGS/3d-tiles
本文数据下载地址:https://github.com/CesiumGS/3d-tiles-samples
3dTiles 格式介绍:https://blog.csdn.net/whl0071/article/details/126000225
3D Tiles 是 Cesium 于 2016 年 3 月定义的一种三维模型瓦片数据格式,目前已经是 OGC 标准之一,3D Tiles 将海量三维数据以分块分层的形式组织起来,大大减轻了浏览器和 GPU 的负担。
\\n3D Tiles 专为流式传输和渲染 3D 地理数据而设计的,如倾斜摄影测量、BIM、点云、建筑数据等。特点有:
","autoDesc":true}');export{r as comp,k as data}; diff --git a/assets/40.html-Bugt77d-.js b/assets/40.html-Bugt77d-.js new file mode 100644 index 00000000..1669a582 --- /dev/null +++ b/assets/40.html-Bugt77d-.js @@ -0,0 +1 @@ +import{_ as t,o as e,c as o}from"./app-CUIEYs6a.js";const a={};function r(c,i){return e(),o("div")}const m=t(a,[["render",r],["__file","40.html.vue"]]),p=JSON.parse('{"path":"/dv/basic/data/40.html","title":"整理自己的可视化工具集","lang":"zh-CN","frontmatter":{"title":"整理自己的可视化工具集","icon":"note","order":41,"description":"","head":[["meta",{"property":"og:url","content":"https://brain.songxingguo.com/dv/basic/data/40.html"}],["meta",{"property":"og:site_name","content":"宋玉的世界"}],["meta",{"property":"og:title","content":"整理自己的可视化工具集"}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2024-04-22T03:38:06.000Z"}],["meta",{"property":"article:modified_time","content":"2024-04-22T03:38:06.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"整理自己的可视化工具集\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2024-04-22T03:38:06.000Z\\",\\"author\\":[]}"]]},"headers":[],"git":{"createdTime":1713757086000,"updatedTime":1713757086000,"contributors":[{"name":"宋兴国","email":"1328989942@qq.com","commits":1}]},"readingTime":{"minutes":0.05,"words":16},"filePathRelative":"dv/basic/data/40.md","localizedDate":"2024年4月22日","excerpt":"","autoDesc":true}');export{m as comp,p as data}; diff --git a/assets/404.html-CHybrDMd.js b/assets/404.html-CHybrDMd.js new file mode 100644 index 00000000..2218646e --- /dev/null +++ b/assets/404.html-CHybrDMd.js @@ -0,0 +1 @@ +import{_ as t,o as e,c as o,a as n}from"./app-CUIEYs6a.js";const a={},r=n("p",null,"404 Not Found",-1),c=[r];function p(s,i){return e(),o("div",null,c)}const d=t(a,[["render",p],["__file","404.html.vue"]]),m=JSON.parse('{"path":"/404.html","title":"","lang":"zh-CN","frontmatter":{"layout":"NotFound","description":"404 Not Found ","head":[["meta",{"property":"og:url","content":"https://brain.songxingguo.com/404.html"}],["meta",{"property":"og:site_name","content":"宋玉的世界"}],["meta",{"property":"og:description","content":"404 Not Found "}],["meta",{"property":"og:type","content":"website"}],["meta",{"property":"og:locale","content":"zh-CN"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"WebPage\\",\\"name\\":\\"\\",\\"description\\":\\"404 Not Found \\"}"]]},"headers":[],"git":{},"readingTime":{"minutes":0.01,"words":3},"filePathRelative":null,"excerpt":"404 Not Found
\\n","autoDesc":true}');export{d as comp,m as data}; diff --git a/assets/Animation.html-BMuyJfTI.js b/assets/Animation.html-BMuyJfTI.js new file mode 100644 index 00000000..38203457 --- /dev/null +++ b/assets/Animation.html-BMuyJfTI.js @@ -0,0 +1 @@ +import{_ as m,r as n,o as _,c as p,a as e,b as r,d as t}from"./app-CUIEYs6a.js";const g={},f={id:"_3d-盒子练习",tabindex:"-1"},u={class:"header-anchor",href:"#_3d-盒子练习"},x={href:"https://brain.songxingguo.com/demo/CSSAnimation/ThreeDBox.html",target:"_blank",rel:"noopener noreferrer"},b={id:"_3d-盒子炸开练习",tabindex:"-1"},S={class:"header-anchor",href:"#_3d-盒子炸开练习"},k={href:"https://brain.songxingguo.com/demo/CSSAnimation/BlowBox.html",target:"_blank",rel:"noopener noreferrer"},D={id:"_3d-盒子展开练习",tabindex:"-1"},C={class:"header-anchor",href:"#_3d-盒子展开练习"},T={href:"https://brain.songxingguo.com/demo/CSSAnimation/ExpandBox.html",target:"_blank",rel:"noopener noreferrer"},B={id:"风车练习",tabindex:"-1"},y={class:"header-anchor",href:"#风车练习"},v={href:"https://brain.songxingguo.com/demo/CSSAnimation/Windmill.html",target:"_blank",rel:"noopener noreferrer"},A={id:"倾斜的导航",tabindex:"-1"},E={class:"header-anchor",href:"#倾斜的导航"},N={href:"https://brain.songxingguo.com/demo/CSSAnimation/TiltNavigation.html",target:"_blank",rel:"noopener noreferrer"},w={id:"时钟练习",tabindex:"-1"},Z={class:"header-anchor",href:"#时钟练习"},I={href:"https://brain.songxingguo.com/demo/CSSAnimation/Clock.html",target:"_blank",rel:"noopener noreferrer"},M={id:"fir-im-网站",tabindex:"-1"},O={class:"header-anchor",href:"#fir-im-网站"},q={href:"https://brain.songxingguo.com/demo/CSSAnimation/FirIm.html",target:"_blank",rel:"noopener noreferrer"};function z(F,P){const o=n("ExternalLinkIcon"),i=n("ThreeDBox"),a=n("BlowBox"),s=n("ExpandBox"),l=n("Windmill"),c=n("TiltNavigation"),d=n("Clock"),h=n("FirIm");return _(),p("div",null,[e("h3",f,[e("a",u,[e("span",null,[e("a",x,[r("3D 盒子练习"),t(o)])])])]),t(i),e("h3",b,[e("a",S,[e("span",null,[e("a",k,[r("3D 盒子炸开练习"),t(o)])])])]),t(a),e("h3",D,[e("a",C,[e("span",null,[e("a",T,[r("3D 盒子展开练习"),t(o)])])])]),t(s),e("h3",B,[e("a",y,[e("span",null,[e("a",v,[r("风车练习"),t(o)])])])]),t(l),e("h3",A,[e("a",E,[e("span",null,[e("a",N,[r("倾斜的导航"),t(o)])])])]),t(c),e("h3",w,[e("a",Z,[e("span",null,[e("a",I,[r("时钟练习"),t(o)])])])]),t(d),e("h3",M,[e("a",O,[e("span",null,[e("a",q,[r("fir.im 网站"),t(o)])])])]),t(h)])}const W=m(g,[["render",z],["__file","Animation.html.vue"]]),L=JSON.parse('{"path":"/web/frontend/css/Animation.html","title":"CSS动画DEMO","lang":"zh-CN","frontmatter":{"title":"CSS动画DEMO","icon":"qianduan","order":1,"author":"宋玉","date":"2024-02-20T00:00:00.000Z","category":["前端开发"],"description":"3D 盒子练习 ","head":[["meta",{"property":"og:url","content":"https://brain.songxingguo.com/web/frontend/css/Animation.html"}],["meta",{"property":"og:site_name","content":"宋玉的世界"}],["meta",{"property":"og:title","content":"CSS动画DEMO"}],["meta",{"property":"og:description","content":"3D 盒子练习 "}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2024-04-22T03:38:06.000Z"}],["meta",{"property":"article:author","content":"宋玉"}],["meta",{"property":"article:published_time","content":"2024-02-20T00:00:00.000Z"}],["meta",{"property":"article:modified_time","content":"2024-04-22T03:38:06.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"CSS动画DEMO\\",\\"image\\":[\\"\\"],\\"datePublished\\":\\"2024-02-20T00:00:00.000Z\\",\\"dateModified\\":\\"2024-04-22T03:38:06.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"宋玉\\"}]}"]]},"headers":[{"level":3,"title":"3D 盒子练习","slug":"_3d-盒子练习","link":"#_3d-盒子练习","children":[]},{"level":3,"title":"3D 盒子炸开练习","slug":"_3d-盒子炸开练习","link":"#_3d-盒子炸开练习","children":[]},{"level":3,"title":"3D 盒子展开练习","slug":"_3d-盒子展开练习","link":"#_3d-盒子展开练习","children":[]},{"level":3,"title":"风车练习","slug":"风车练习","link":"#风车练习","children":[]},{"level":3,"title":"倾斜的导航","slug":"倾斜的导航","link":"#倾斜的导航","children":[]},{"level":3,"title":"时钟练习","slug":"时钟练习","link":"#时钟练习","children":[]},{"level":3,"title":"fir.im 网站","slug":"fir-im-网站","link":"#fir-im-网站","children":[]}],"git":{"createdTime":1713757086000,"updatedTime":1713757086000,"contributors":[{"name":"宋兴国","email":"1328989942@qq.com","commits":1}]},"readingTime":{"minutes":0.28,"words":84},"filePathRelative":"web/frontend/css/Animation.md","localizedDate":"2024年2月20日","excerpt":"首先是分别创建场景、相机和渲染器,三者缺一不可,并将渲染器渲染的结果挂载到 DOM 元素上。最后将在render
函数绑定到requestAnimationFrame
上, 并执行渲染函数,每次重绘都会重新执行render
函数。
// 创建场景
+const scene = new THREE.Scene();
+// 创建相机
+const camera = new THREE.PerspectiveCamera(
+ 75,
+ window.innerWidth / window.innerHeight,
+ 0.1,
+ 1000
+);
+
+// 创建渲染器
+const renderer = new THREE.WebGLRenderer();
+renderer.setSize(window.innerWidth, window.innerHeight);
+document.getElementById("root").appendChild(renderer.domElement);
+
+// 渲染
+function render() {
+ requestAnimationFrame(render);
+ renderer.render(scene, camera);
+}
+render();
+
上面的场景都搭建好了,现在创建一个正方体,并将它加入到场景中。
// 创建几何体
+const geometry = new THREE.BoxGeometry(1, 1, 1);
+const material = new THREE.MeshBasicMaterial({ color: 0x00ffff });
+const cube = new THREE.Mesh(geometry, material);
+scene.add(cube);
+
也可以为场景中添加辅助坐标和辅助相机,能让我们更清楚的观察到当前元素在坐标系中所处的位置和大小。
// 创建辅助坐标轴
+const axes = new THREE.AxesHelper(1000);
+scene.add(axes);
+
+// 创建辅助相机
+const helper = new THREE.CameraHelper(camera);
+scene.add(helper);
+
场景中拥有了正方体,但我能并不能和它进行交互,因此需要 OrbitControls
来对场景中的内容能控制。需要注意的是 OrbitControls
是一个控制插件,并没有在 Three.js 的核心模块中,而是在examples/jsm/controls/
文件夹中,我们这里为了方便使用采用的是 CDN 的方式进行引入。
import { OrbitControls } from "https://cdn.skypack.dev/three@0.132.2/examples/jsm/controls/OrbitControls.js";
+// 模型控制
+const controls = new OrbitControls(camera, renderer.domElement);
+
首先是分别创建场景、相机和渲染器,三者缺一不可,并将渲染器渲染的结果挂载到 DOM 元素上。最后将在render
函数绑定到requestAnimationFrame
上, 并执行渲染函数,每次重绘都会重新执行render
函数。
Q)for(;R<=ee;)Ue(v[R],A,$,!0),R++;else{const oe=R,ue=R,Te=new Map;for(R=ue;R<=Q;R++){const ct=g[R]=j?sn(g[R]):Tt(g[R]);ct.key!=null&&Te.set(ct.key,R)}let De,We=0;const Et=Q-ue+1;let jn=!1,Ui=0;const gr=new Array(Et);for(R=0;R=Et){Ue(ct,A,$,!0);continue}let It;if(ct.key!=null)It=Te.get(ct.key);else for(De=ue;De<=Q;De++)if(gr[De-ue]===0&&kn(ct,g[De])){It=De;break}It===void 0?Ue(ct,A,$,!0):(gr[It-ue]=R+1,It>=Ui?Ui=It:jn=!0,b(ct,g[It],S,null,A,$,U,N,j),We++)}const Wi=jn?h1(gr):Wn;for(De=Wi.length-1,R=Et-1;R>=0;R--){const ct=ue+R,It=g[ct],qi=ct+1 {const{el:$,type:U,transition:N,children:j,shapeFlag:R}=v;if(R&6){pt(v.component.subTree,g,S,P);return}if(R&128){v.suspense.move(g,S,P);return}if(R&64){U.move(v,g,S,Y);return}if(U===Qe){r($,g,S);for(let ee=0;eeN.enter($),A);else{const{leave:ee,delayLeave:Q,afterLeave:oe}=N,ue=()=>r($,g,S),Te=()=>{ee($,()=>{ue(),oe&&oe()})};Q?Q($,ue,Te):Te()}else r($,g,S)},Ue=(v,g,S,P=!1,A=!1)=>{const{type:$,props:U,ref:N,children:j,dynamicChildren:R,shapeFlag:q,patchFlag:ee,dirs:Q}=v;if(N!=null&&Bo(N,null,S,v,!0),q&256){g.ctx.deactivate(v);return}const oe=q&1&&Q,ue=!Yn(v);let Te;if(ue&&(Te=U&&U.onVnodeBeforeUnmount)&&mt(Te,g,v),q&6)Pt(v.component,S,P);else{if(q&128){v.suspense.unmount(S,P);return}oe&&Rt(v,null,g,"beforeUnmount"),q&64?v.type.remove(v,g,S,A,Y,P):R&&($!==Qe||ee>0&&ee&64)?Be(R,g,S,!1,!0):($===Qe&&ee&384||!A&&q&16)&&Be(j,g,S),P&<(v)}(ue&&(Te=U&&U.onVnodeUnmounted)||oe)&&nt(()=>{Te&&mt(Te,g,v),oe&&Rt(v,null,g,"unmounted")},S)},lt=v=>{const{type:g,el:S,anchor:P,transition:A}=v;if(g===Qe){Bt(S,P);return}if(g===Cr){C(v);return}const $=()=>{o(S),A&&!A.persisted&&A.afterLeave&&A.afterLeave()};if(v.shapeFlag&1&&A&&!A.persisted){const{leave:U,delayLeave:N}=A,j=()=>U(S,$);N?N(v.el,$,j):j()}else $()},Bt=(v,g)=>{let S;for(;v!==g;)S=p(v),o(v),v=S;o(g)},Pt=(v,g,S)=>{const{bum:P,scope:A,update:$,subTree:U,um:N}=v;P&&Co(P),A.stop(),$&&($.active=!1,Ue(U,v,g,S)),N&&nt(N,g),nt(()=>{v.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&v.asyncDep&&!v.asyncResolved&&v.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},Be=(v,g,S,P=!1,A=!1,$=0)=>{for(let U=$;U v.shapeFlag&6?k(v.component.subTree):v.shapeFlag&128?v.suspense.next():p(v.anchor||v.el);let W=!1;const z=(v,g,S)=>{v==null?g._vnode&&Ue(g._vnode,null,null,!0):b(g._vnode||null,v,g,null,null,null,S),W||(W=!0,nl(),$o(),W=!1),g._vnode=v},Y={p:b,um:Ue,m:pt,r:lt,mt:Ne,mc:B,pc:Z,pbc:H,n:k,o:e};let ge,Ce;return t&&([ge,Ce]=t(Y)),{render:z,hydrate:ge,createApp:r1(z,ge)}}function ka({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Tn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Au(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ou(e,t,n=!1){const r=e.children,o=t.children;if(te(r)&&te(o))for(let a=0;a >1,e[n[i]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,s=n[a-1];a-- >0;)n[a]=s,s=t[s];return n}function Pu(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Pu(t)}const m1=e=>e.__isTeleport,Qe=Symbol.for("v-fgt"),rr=Symbol.for("v-txt"),ft=Symbol.for("v-cmt"),Cr=Symbol.for("v-stc"),kr=[];let Lt=null;function le(e=!1){kr.push(Lt=e?null:[])}function v1(){kr.pop(),Lt=kr[kr.length-1]||null}let $r=1;function hl(e){$r+=e}function Iu(e){return e.dynamicChildren=$r>0?Lt||Wn:null,v1(),$r>0&&Lt&&Lt.push(e),e}function ve(e,t,n,r,o,a){return Iu(An(e,t,n,r,o,a,!0))}function Qs(e,t,n,r,o){return Iu($e(e,t,n,r,o,!0))}function Ho(e){return e?e.__v_isVNode===!0:!1}function kn(e,t){return e.type===t.type&&e.key===t.key}const na="__vInternal",Ru=({key:e})=>e??null,ko=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Fe(e)||Ke(e)||ae(e)?{i:Ge,r:e,k:t,f:!!n}:e:null);function An(e,t=null,n=null,r=0,o=null,a=e===Qe?0:1,s=!1,i=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ru(t),ref:t&&ko(t),scopeId:Qo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ge};return i?(ei(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=Fe(n)?8:16),$r>0&&!s&&Lt&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Lt.push(c),c}const $e=g1;function g1(e,t=null,n=null,r=0,o=null,a=!1){if((!e||e===Rh)&&(e=ft),Ho(e)){const i=hn(e,t,!0);return n&&ei(i,n),$r>0&&!a&&Lt&&(i.shapeFlag&6?Lt[Lt.indexOf(e)]=i:Lt.push(i)),i.patchFlag|=-2,i}if(k1(e)&&(e=e.__vccOpts),t){t=b1(t);let{class:i,style:c}=t;i&&!Fe(i)&&(t.class=$s(i)),Oe(c)&&(tu(c)&&!te(c)&&(c=He({},c)),t.style=Ns(c))}const s=Fe(e)?1:Mh(e)?128:m1(e)?64:Oe(e)?4:ae(e)?2:0;return An(e,t,n,r,o,s,a,!0)}function b1(e){return e?tu(e)||na in e?He({},e):e:null}function hn(e,t,n=!1){const{props:r,ref:o,patchFlag:a,children:s}=e,i=t?y1(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:i,key:i&&Ru(i),ref:t&&t.ref?n&&o?te(o)?o.concat(ko(t)):[o,ko(t)]:ko(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Qe?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&hn(e.ssContent),ssFallback:e.ssFallback&&hn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Du(e=" ",t=0){return $e(rr,null,e,t)}function j8(e,t){const n=$e(Cr,null,e);return n.staticCount=t,n}function B8(e="",t=!1){return t?(le(),Qs(ft,null,e)):$e(ft,null,e)}function Tt(e){return e==null||typeof e=="boolean"?$e(ft):te(e)?$e(Qe,null,e.slice()):typeof e=="object"?sn(e):$e(rr,null,String(e))}function sn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:hn(e)}function ei(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(te(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),ei(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(na in t)?t._ctx=Ge:o===3&&Ge&&(Ge.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ae(t)?(t={default:t,_ctx:Ge},n=32):(t=String(t),r&64?(n=16,t=[Du(t)]):n=8);e.children=t,e.shapeFlag|=n}function y1(...e){const t={};for(let n=0;n qe||Ge;let Fo,us;{const e=jc(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),a=>{o.length>1?o.forEach(s=>s(a)):o[0](a)}};Fo=t("__VUE_INSTANCE_SETTERS__",n=>qe=n),us=t("__VUE_SSR_SETTERS__",n=>Zr=n)}const Jr=e=>{const t=qe;return Fo(e),e.scope.on(),()=>{e.scope.off(),Fo(t)}},ml=()=>{qe&&qe.scope.off(),Fo(null)};function Mu(e){return e.vnode.shapeFlag&4}let Zr=!1;function E1(e,t=!1){t&&us(t);const{props:n,children:r}=e.vnode,o=Mu(e);o1(e,n,o,t),i1(e,r);const a=o?S1(e,t):void 0;return t&&us(!1),a}function S1(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=nu(new Proxy(e.ctx,Zh));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?L1(e):null,a=Jr(e);Nn();const s=fn(r,e,0,[e.props,o]);if($n(),a(),Nc(s)){if(s.then(ml,ml),t)return s.then(i=>{vl(e,i,t)}).catch(i=>{qr(i,e,0)});e.asyncDep=s}else vl(e,s,t)}else Nu(e,t)}function vl(e,t,n){ae(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Oe(t)&&(e.setupState=au(t)),Nu(e,n)}let gl;function Nu(e,t,n){const r=e.type;if(!e.render){if(!t&&gl&&!r.render){const o=r.template||Ys(e).template;if(o){const{isCustomElement:a,compilerOptions:s}=e.appContext.config,{delimiters:i,compilerOptions:c}=r,u=He(He({isCustomElement:a,delimiters:i},s),c);r.render=gl(o,u)}}e.render=r.render||gt}{const o=Jr(e);Nn();try{Yh(e)}finally{$n(),o()}}}function T1(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return st(e,"get","$attrs"),t[n]}}))}function L1(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return T1(e)},slots:e.slots,emit:e.emit,expose:t}}function ra(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(au(nu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Tr)return Tr[n](e)},has(t,n){return n in t||n in Tr}}))}function C1(e,t=!0){return ae(e)?e.displayName||e.name:e.name||t&&e.__name}function k1(e){return ae(e)&&"__vccOpts"in e}const w=(e,t)=>hh(e,t,Zr);function H8(e,t,n=Ae){const r=_n(),o=tt(t),a=vn(t),s=Ws((c,u)=>{let d;return Vh(()=>{const f=e[t];Nt(d,f)&&(d=f,u())}),{get(){return c(),n.get?n.get(d):d},set(f){const p=r.vnode.props;!(p&&(t in p||o in p||a in p)&&(`onUpdate:${t}`in p||`onUpdate:${o}`in p||`onUpdate:${a}`in p))&&Nt(f,d)&&(d=f,u()),r.emit(`update:${t}`,n.set?n.set(f):f)}}}),i=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return s[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?e[i]||{}:s,done:!1}:{done:!0}}}},s}function l(e,t,n){const r=arguments.length;return r===2?Oe(t)&&!te(t)?Ho(t)?$e(e,null,[t]):$e(e,t):$e(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ho(n)&&(n=[n]),$e(e,t,n))}const A1="3.4.21";/** +* @vue/runtime-dom v3.4.21 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const O1="http://www.w3.org/2000/svg",P1="http://www.w3.org/1998/Math/MathML",ln=typeof document<"u"?document:null,bl=ln&&ln.createElement("template"),I1={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?ln.createElementNS(O1,e):t==="mathml"?ln.createElementNS(P1,e):ln.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>ln.createTextNode(e),createComment:e=>ln.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ln.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,a){const s=n?n.previousSibling:t.lastChild;if(o&&(o===a||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===a||!(o=o.nextSibling)););else{bl.innerHTML=r==="svg"?``:r==="mathml"?``:e;const i=bl.content;if(r==="svg"||r==="mathml"){const c=i.firstChild;for(;c.firstChild;)i.appendChild(c.firstChild);i.removeChild(c)}t.insertBefore(i,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Qt="transition",br="animation",or=Symbol("_vtc"),mn=(e,{slots:t})=>l(Hh,Vu(e),t);mn.displayName="Transition";const $u={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},R1=mn.props=He({},vu,$u),Ln=(e,t=[])=>{te(e)?e.forEach(n=>n(...t)):e&&e(...t)},yl=e=>e?te(e)?e.some(t=>t.length>1):e.length>1:!1;function Vu(e){const t={};for(const F in e)F in $u||(t[F]=e[F]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:u=s,appearToClass:d=i,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,m=D1(o),b=m&&m[0],E=m&&m[1],{onBeforeEnter:y,onEnter:T,onEnterCancelled:_,onLeave:C,onLeaveCancelled:V,onBeforeAppear:L=y,onAppear:J=T,onAppearCancelled:B=_}=t,M=(F,ne,Ne)=>{rn(F,ne?d:i),rn(F,ne?u:s),Ne&&Ne()},H=(F,ne)=>{F._isLeaving=!1,rn(F,f),rn(F,h),rn(F,p),ne&&ne()},X=F=>(ne,Ne)=>{const Re=F?J:T,K=()=>M(ne,F,Ne);Ln(Re,[ne,K]),_l(()=>{rn(ne,F?c:a),Ft(ne,F?d:i),yl(Re)||wl(ne,r,b,K)})};return He(t,{onBeforeEnter(F){Ln(y,[F]),Ft(F,a),Ft(F,s)},onBeforeAppear(F){Ln(L,[F]),Ft(F,c),Ft(F,u)},onEnter:X(!1),onAppear:X(!0),onLeave(F,ne){F._isLeaving=!0;const Ne=()=>H(F,ne);Ft(F,f),Bu(),Ft(F,p),_l(()=>{F._isLeaving&&(rn(F,f),Ft(F,h),yl(C)||wl(F,r,E,Ne))}),Ln(C,[F,Ne])},onEnterCancelled(F){M(F,!1),Ln(_,[F])},onAppearCancelled(F){M(F,!0),Ln(B,[F])},onLeaveCancelled(F){H(F),Ln(V,[F])}})}function D1(e){if(e==null)return null;if(Oe(e))return[Aa(e.enter),Aa(e.leave)];{const t=Aa(e);return[t,t]}}function Aa(e){return Vp(e)}function Ft(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[or]||(e[or]=new Set)).add(t)}function rn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[or];n&&(n.delete(t),n.size||(e[or]=void 0))}function _l(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let M1=0;function wl(e,t,n,r){const o=e._endId=++M1,a=()=>{o===e._endId&&r()};if(n)return setTimeout(a,n);const{type:s,timeout:i,propCount:c}=ju(e,t);if(!s)return r();const u=s+"end";let d=0;const f=()=>{e.removeEventListener(u,p),a()},p=h=>{h.target===e&&++d>=c&&f()};setTimeout(()=>{d (n[m]||"").split(", "),o=r(`${Qt}Delay`),a=r(`${Qt}Duration`),s=xl(o,a),i=r(`${br}Delay`),c=r(`${br}Duration`),u=xl(i,c);let d=null,f=0,p=0;t===Qt?s>0&&(d=Qt,f=s,p=a.length):t===br?u>0&&(d=br,f=u,p=c.length):(f=Math.max(s,u),d=f>0?s>u?Qt:br:null,p=d?d===Qt?a.length:c.length:0);const h=d===Qt&&/\b(transform|all)(,|$)/.test(r(`${Qt}Property`).toString());return{type:d,timeout:f,propCount:p,hasTransform:h}}function xl(e,t){for(;e.length El(n)+El(e[r])))}function El(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Bu(){return document.body.offsetHeight}function N1(e,t,n){const r=e[or];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const zo=Symbol("_vod"),Hu=Symbol("_vsh"),F8={beforeMount(e,{value:t},{transition:n}){e[zo]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):yr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),yr(e,!0),r.enter(e)):r.leave(e,()=>{yr(e,!1)}):yr(e,t))},beforeUnmount(e,{value:t}){yr(e,t)}};function yr(e,t){e.style.display=t?e[zo]:"none",e[Hu]=!t}const $1=Symbol(""),V1=/(^|;)\s*display\s*:/;function j1(e,t,n){const r=e.style,o=Fe(n);let a=!1;if(n&&!o){if(t)if(Fe(t))for(const s of t.split(";")){const i=s.slice(0,s.indexOf(":")).trim();n[i]==null&&Ao(r,i,"")}else for(const s in t)n[s]==null&&Ao(r,s,"");for(const s in n)s==="display"&&(a=!0),Ao(r,s,n[s])}else if(o){if(t!==n){const s=r[$1];s&&(n+=";"+s),r.cssText=n,a=V1.test(n)}}else t&&e.removeAttribute("style");zo in e&&(e[zo]=a?r.display:"",e[Hu]&&(r.display="none"))}const Sl=/\s*!important$/;function Ao(e,t,n){if(te(n))n.forEach(r=>Ao(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=B1(e,t);Sl.test(n)?e.setProperty(vn(r),n.replace(Sl,""),"important"):e[r]=n}}const Tl=["Webkit","Moz","ms"],Oa={};function B1(e,t){const n=Oa[t];if(n)return n;let r=tt(t);if(r!=="filter"&&r in e)return Oa[t]=r;r=dr(r);for(let o=0;o Pa||(W1.then(()=>Pa=0),Pa=Date.now());function K1(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;yt(J1(r,n.value),t,5,[r])};return n.value=e,n.attached=q1(),n}function J1(e,t){if(te(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const Al=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Z1=(e,t,n,r,o,a,s,i,c)=>{const u=o==="svg";t==="class"?N1(e,r,u):t==="style"?j1(e,n,r):Ur(t)?Rs(t)||G1(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Y1(e,t,r,u))?F1(e,t,r,a,s,i,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),H1(e,t,r,u))};function Y1(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Al(t)&&ae(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Al(t)&&Fe(n)?!1:t in e}const Fu=new WeakMap,zu=new WeakMap,Go=Symbol("_moveCb"),Ol=Symbol("_enterCb"),Gu={name:"TransitionGroup",props:He({},R1,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=_n(),r=mu();let o,a;return _u(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!rm(o[0].el,n.vnode.el,s))return;o.forEach(em),o.forEach(tm);const i=o.filter(nm);Bu(),i.forEach(c=>{const u=c.el,d=u.style;Ft(u,s),d.transform=d.webkitTransform=d.transitionDuration="";const f=u[Go]=p=>{p&&p.target!==u||(!p||/transform$/.test(p.propertyName))&&(u.removeEventListener("transitionend",f),u[Go]=null,rn(u,s))};u.addEventListener("transitionend",f)})}),()=>{const s=he(e),i=Vu(s);let c=s.tag||Qe;o=a,a=t.default?Ks(t.default()):[];for(let u=0;u delete e.mode;Gu.props;const Q1=Gu;function em(e){const t=e.el;t[Go]&&t[Go](),t[Ol]&&t[Ol]()}function tm(e){zu.set(e,e.el.getBoundingClientRect())}function nm(e){const t=Fu.get(e),n=zu.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const a=e.el.style;return a.transform=a.webkitTransform=`translate(${r}px,${o}px)`,a.transitionDuration="0s",e}}function rm(e,t,n){const r=e.cloneNode(),o=e[or];o&&o.forEach(i=>{i.split(/\s+/).forEach(c=>c&&r.classList.remove(c))}),n.split(/\s+/).forEach(i=>i&&r.classList.add(i)),r.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(r);const{hasTransform:s}=ju(r);return a.removeChild(r),s}const Pl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return te(t)?n=>Co(t,n):t};function om(e){e.target.composing=!0}function Il(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ia=Symbol("_assign"),z8={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[Ia]=Pl(o);const a=r||o.props&&o.props.type==="number";Fn(e,t?"change":"input",s=>{if(s.target.composing)return;let i=e.value;n&&(i=i.trim()),a&&(i=ts(i)),e[Ia](i)}),n&&Fn(e,"change",()=>{e.value=e.value.trim()}),t||(Fn(e,"compositionstart",om),Fn(e,"compositionend",Il),Fn(e,"change",Il))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},a){if(e[Ia]=Pl(a),e.composing)return;const s=o||e.type==="number"?ts(e.value):e.value,i=t??"";s!==i&&(document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===i)||(e.value=i))}},am=["ctrl","shift","alt","meta"],sm={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>am.some(n=>e[`${n}Key`]&&!t.includes(n))},G8=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(o,...a)=>{for(let s=0;s {const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=o=>{if(!("key"in o))return;const a=vn(o.key);if(t.some(s=>s===a||im[s]===a))return e(o)})},lm=He({patchProp:Z1},I1);let Ra,Rl=!1;function cm(){return Ra=Rl?Ra:f1(lm),Rl=!0,Ra}const um=(...e)=>{const t=cm().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=fm(r);if(o)return n(o,!0,dm(o))},t};function dm(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function fm(e){return Fe(e)?document.querySelector(e):e}const pm="modulepreload",hm=function(e){return"/"+e},Dl={},x=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const a=document.getElementsByTagName("link");o=Promise.all(n.map(s=>{if(s=hm(s),s in Dl)return;Dl[s]=!0;const i=s.endsWith(".css"),c=i?'[rel="stylesheet"]':"";if(!!r)for(let f=a.length-1;f>=0;f--){const p=a[f];if(p.href===s&&(!i||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${c}`))return;const d=document.createElement("link");if(d.rel=i?"stylesheet":pm,i||(d.as="script",d.crossOrigin=""),d.href=s,document.head.appendChild(d),i)return new Promise((f,p)=>{d.addEventListener("load",f),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${s}`)))})}))}return o.then(()=>t()).catch(a=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a})},mm=JSON.parse("{}"),vm=Object.fromEntries([["/",{loader:()=>x(()=>import("./index.html-FvvEEwMO.js"),__vite__mapDeps([])),meta:{y:"h",t:"首页",i:"home"}}],["/chat/",{loader:()=>x(()=>import("./index.html-_ZWf6ipi.js"),__vite__mapDeps([])),meta:{d:1713757086e3,e:` + ++`,r:{minutes:.07,words:21},y:"a",t:""}}],["/ai/basic/test.html",{loader:()=>x(()=>import("./test.html-CgWe6iWe.js"),__vite__mapDeps([])),meta:{d:1713757086e3,e:`AI
+`,r:{minutes:.04,words:11},y:"a",t:"前言",i:"fa-solid fa-house",O:1}}],["/dv/foreword/about.html",{loader:()=>x(()=>import("./about.html-BzHLs40Y.js"),__vite__mapDeps([])),meta:{d:1713757086e3,e:` + +`,r:{minutes:.06,words:18},y:"a",t:"我与数据可视化",i:"post",O:1}}],["/en/advanced-guide/test.html",{loader:()=>x(()=>import("./test.html-D6vmzV9j.js"),__vite__mapDeps([])),meta:{d:1713757086e3,e:`EN
+`,r:{minutes:.03,words:8},y:"a",t:"前言",i:"note",O:1}}],["/en/basic/test.html",{loader:()=>x(()=>import("./test.html-CRoxLcMn.js"),__vite__mapDeps([])),meta:{d:1713757086e3,e:`EN
+`,r:{minutes:.03,words:8},y:"a",t:"前言",i:"note",O:1}}],["/en/programmer-english/test.html",{loader:()=>x(()=>import("./test.html-COttN0kf.js"),__vite__mapDeps([])),meta:{d:1713757086e3,e:`EN
+`,r:{minutes:.03,words:8},y:"a",t:"前言",i:"note",O:1}}],["/en/use-english/test.html",{loader:()=>x(()=>import("./test.html-SUQ6VsUT.js"),__vite__mapDeps([])),meta:{d:1713757086e3,e:`EN
+`,r:{minutes:.03,words:8},y:"a",t:"前言",i:"note",O:1}}],["/dv/antv/g2plot/test.html",{loader:()=>x(()=>import("./test.html-DKM1GlEV.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:16913664e5,l:"2023年8月7日",c:["Cesium","数据可视化"],g:["3D"],r:{minutes:.09,words:26},y:"a",t:"G2学习指南",i:"post",O:1}}],["/dv/antv/guide/test.html",{loader:()=>x(()=>import("./test.html-BfuK63wA.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:16913664e5,l:"2023年8月7日",c:["Cesium","数据可视化"],g:["3D"],r:{minutes:.1,words:29},y:"a",t:"3D Tiles 模型高度调整",i:"post",O:1}}],["/dv/antv/l7plot/test.html",{loader:()=>x(()=>import("./test.html-B0dEPGuv.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:16913664e5,l:"2023年8月7日",c:["Cesium","数据可视化"],g:["3D"],r:{minutes:.09,words:26},y:"a",t:"L7学习指南",i:"post",O:1}}],["/dv/audio-visual/WebRTC/WebRTC%20DEMO.html",{loader:()=>x(()=>import("./WebRTC DEMO.html-D_9CTlq0.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:17131392e5,l:"2024年4月15日",c:["分类"],g:["标签"],e:`在线聊天
+`,r:{minutes:.32,words:96},y:"a",t:"WebRTC DEMO",i:"post",O:1}}],["/dv/basic/data/31.html",{loader:()=>x(()=>import("./31.html-ZQpzEaW3.js"),__vite__mapDeps([])),meta:{d:1713757086e3,e:`如何用 SVG 图形元素绘制可视化图表?
+`,r:{minutes:.11,words:33},y:"a",t:"选择合适方法对数据进行处理",i:"note",O:32}}],["/dv/basic/data/32.html",{loader:()=>x(()=>import("./32.html-Bho6Zo_Z.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.06,words:17},y:"a",t:"可视化数据处理的一般方法",i:"note",O:33}}],["/dv/basic/data/33.html",{loader:()=>x(()=>import("./33.html-CMCaaMId.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.04,words:13},y:"a",t:"如何处理多元变量",i:"note",O:34}}],["/dv/basic/data/34.html",{loader:()=>x(()=>import("./34.html-BOSjpcUF.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.06,words:17},y:"a",t:"如何让可视化设计更加清晰",i:"note",O:35}}],["/dv/basic/data/35.html",{loader:()=>x(()=>import("./35.html-8HvWbk_n.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.05,words:16},y:"a",t:"如何理解可视化设计原则",i:"note",O:36}}],["/dv/basic/data/36.html",{loader:()=>x(()=>import("./36.html-DbjlqXPf.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.05,words:14},y:"a",t:"使用图表库绘制图表",i:"note",O:37}}],["/dv/basic/data/37.html",{loader:()=>x(()=>import("./37.html-Cd-x0hs7.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.06,words:17},y:"a",t:"使用数据驱动框架绘制图表",i:"note",O:38}}],["/dv/basic/data/38.html",{loader:()=>x(()=>import("./38.html-DlTWcXil.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.06,words:17},y:"a",t:"如何实现地理信息的可视化",i:"note",O:39}}],["/dv/basic/data/39.html",{loader:()=>x(()=>import("./39.html-jOgV84yu.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.05,words:15},y:"a",t:"如何实现3D地球可视化",i:"note",O:40}}],["/dv/basic/data/40.html",{loader:()=>x(()=>import("./40.html-Bugt77d-.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.05,words:16},y:"a",t:"整理自己的可视化工具集",i:"note",O:41}}],["/dv/basic/foreword/data-visualization-engineer.html",{loader:()=>x(()=>import("./data-visualization-engineer.html-qCo2BWz6.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:16905024e5,l:"2023年7月28日",c:["数据可视化"],g:["简史","职业"],u:!1,e:` +`,r:{minutes:5.07,words:1521},y:"a",t:"可视化工程师",i:"post",O:1}}],["/dv/basic/foreword/web_vs_visualization.html",{loader:()=>x(()=>import("./web_vs_visualization.html-DSZTDqNg.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:16905024e5,l:"2023年7月28日",c:["数据可视化"],g:["概念","指南"],u:!1,e:` +`,r:{minutes:5.87,words:1761},y:"a",t:"Web前端与可视化",i:"post",O:2}}],["/dv/basic/graphics_basics/browser.html",{loader:()=>x(()=>import("./browser.html-CopoSLWU.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:16907616e5,l:"2023年7月31日",c:["数据可视化"],g:["浏览器"],u:!1,e:` +`,r:{minutes:10.62,words:3186},y:"a",t:"浏览器如何实现可视化",i:"post",O:1}}],["/dv/basic/graphics_basics/canvas.html",{loader:()=>x(()=>import("./canvas.html-lkuHndWW.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.04,words:13},y:"a",t:"指令式绘图系统:Canvas",i:"note",O:2}}],["/dv/basic/graphics_basics/svg.html",{loader:()=>x(()=>import("./svg.html-Bwe52di2.js"),__vite__mapDeps([])),meta:{d:1713757086e3,e:`如何用 SVG 图形元素绘制可视化图表?
+`,r:{minutes:.09,words:28},y:"a",t:"声明式图形系统:SVG",i:"note",O:3}}],["/dv/basic/graphics_basics/webgl.html",{loader:()=>x(()=>import("./webgl.html-CKrpGv2C.js"),__vite__mapDeps([])),meta:{d:1713757086e3,e:`如何用 SVG 图形元素绘制可视化图表?
+`,r:{minutes:.09,words:28},y:"a",t:"声明式图形系统:SVG",i:"note",O:4}}],["/dv/basic/math_basics/05.html",{loader:()=>x(()=>import("./05.html-BXX03SiL.js"),__vite__mapDeps([])),meta:{d:1713757086e3,e:`GPU 与渲染管线:如何用 WebGL 绘制最简单的几何图形?
+`,r:{minutes:.1,words:31},y:"a",t:"向量和坐标系",i:"note",O:6}}],["/dv/basic/math_basics/06.html",{loader:()=>x(()=>import("./06.html-Cdrn1W0k.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.04,words:11},y:"a",t:"向量乘法知识",i:"note",O:7}}],["/dv/basic/math_basics/07.html",{loader:()=>x(()=>import("./07.html-BwEnM_wx.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.04,words:12},y:"a",t:"向量和参数方程",i:"note",O:8}}],["/dv/basic/math_basics/08.html",{loader:()=>x(()=>import("./08.html-DJJ4LpTs.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.05,words:14},y:"a",t:"三角剖分和向量操作",i:"note",O:9}}],["/dv/basic/math_basics/09.html",{loader:()=>x(()=>import("./09.html-BEsZEJsP.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.05,words:16},y:"a",t:"用仿射变换操作几何图形",i:"note",O:10}}],["/dv/basic/performance/27.html",{loader:()=>x(()=>import("./27.html-CzJ2j0s7.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.03,words:8},y:"a",t:"Canvas | SVG | WebGL",i:"note",O:28}}],["/dv/basic/performance/28.html",{loader:()=>x(()=>import("./28.html-LOQG_GAO.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.04,words:13},y:"a",t:"怎么给Canvas绘制加速",i:"note",O:29}}],["/dv/basic/performance/29.html",{loader:()=>x(()=>import("./29.html-CkDAeibU.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.04,words:13},y:"a",t:"怎么给WebGL绘制加速",i:"note",O:30}}],["/dv/basic/performance/30.html",{loader:()=>x(()=>import("./30.html-DMpvUPd_.js"),__vite__mapDeps([])),meta:{d:1713757086e3,e:`GPU 与渲染管线:如何用 WebGL 绘制最简单的几何图形?
+`,r:{minutes:.12,words:37},y:"a",t:"针对海量数据,如何优化性能",i:"note",O:31}}],["/dv/basic/visual_advanced/18.html",{loader:()=>x(()=>import("./18.html-DMIEdm6E.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.06,words:17},y:"a",t:"生成简单动画让图形动起来",i:"note",O:19}}],["/dv/basic/visual_advanced/19.html",{loader:()=>x(()=>import("./19.html-CXGOUZXv.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.06,words:17},y:"a",t:"如何用着色器实现像素动画",i:"note",O:20}}],["/dv/basic/visual_advanced/20.html",{loader:()=>x(()=>import("./20.html-CHpNNAVv.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.05,words:14},y:"a",t:"如何用WebGL绘制3D物体",i:"note",O:21}}],["/dv/basic/visual_advanced/21.html",{loader:()=>x(()=>import("./21.html-DBtWjIb7.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.06,words:17},y:"a",t:"用透视原理对物体进行投影",i:"note",O:22}}],["/dv/basic/visual_advanced/22.html",{loader:()=>x(()=>import("./22.html-CPWw3zvw.js"),__vite__mapDeps([])),meta:{d:1713757086e3,e:`如何用 SVG 图形元素绘制可视化图表?
+`,r:{minutes:.11,words:33},y:"a",t:"用仿射变换移动和旋转3D物体",i:"note",O:23}}],["/dv/basic/visual_advanced/23.html",{loader:()=>x(()=>import("./23.html-Dw9MXLr9.js"),__vite__mapDeps([])),meta:{d:1713757086e3,e:`GPU 与渲染管线:如何用 WebGL 绘制最简单的几何图形?
+`,r:{minutes:.12,words:36},y:"a",t:"模拟光照让3D场景更逼真",i:"note",O:24}}],["/dv/basic/visual_advanced/24.html",{loader:()=>x(()=>import("./24.html-Ci5w7Kv2.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.06,words:18},y:"a",t:"用法线贴图模拟真实物体表面",i:"note",O:25}}],["/dv/basic/visual_advanced/25.html",{loader:()=>x(()=>import("./25.html-DaAE2f1N.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.05,words:15},y:"a",t:"如何绘制带宽度的曲线",i:"note",O:26}}],["/dv/basic/visual_advanced/26.html",{loader:()=>x(()=>import("./26.html-DIh4Qd70.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.05,words:16},y:"a",t:"实现简单的3D可视化图表",i:"note",O:27}}],["/dv/basic/visual_basics/10.html",{loader:()=>x(()=>import("./10.html-Dxj2TL39.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.05,words:15},y:"a",t:"图形系统如何表示颜色",i:"note",O:11}}],["/dv/basic/visual_basics/11.html",{loader:()=>x(()=>import("./11.html-CXMGhzmg.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.05,words:15},y:"a",t:"如何生成重复、分形图案",i:"note",O:12}}],["/dv/basic/visual_basics/12.html",{loader:()=>x(()=>import("./12.html-CrjTT9Lk.js"),__vite__mapDeps([])),meta:{d:1713757086e3,e:`GPU 与渲染管线:如何用 WebGL 绘制最简单的几何图形?
+`,r:{minutes:.12,words:37},y:"a",t:"使用滤镜函数实现美颜效果",i:"note",O:13}}],["/dv/basic/visual_basics/13.html",{loader:()=>x(()=>import("./13.html-BFuhf2J5.js"),__vite__mapDeps([])),meta:{d:1713757086e3,e:`如何用 SVG 图形元素绘制可视化图表?
+`,r:{minutes:.11,words:32},y:"a",t:"如何给简单的图案添加纹理",i:"note",O:14}}],["/dv/basic/visual_basics/14.html",{loader:()=>x(()=>import("./14.html-B0GkzNR9.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.06,words:18},y:"a",t:"使用片元着色器进行几何造型",i:"note",O:15}}],["/dv/basic/visual_basics/15.html",{loader:()=>x(()=>import("./15.html-D0Gwb1cV.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.06,words:17},y:"a",t:"使用极坐标系绘制有趣图案",i:"note",O:16}}],["/dv/basic/visual_basics/16.html",{loader:()=>x(()=>import("./16.html-Bjtp9sYm.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.05,words:16},y:"a",t:"使用噪声生成复杂的纹理",i:"note",O:17}}],["/dv/basic/visual_basics/17.html",{loader:()=>x(()=>import("./17.html-i2UtH9zu.js"),__vite__mapDeps([])),meta:{d:1713757086e3,r:{minutes:.06,words:17},y:"a",t:"使用后期处理通道增强图像",i:"note",O:18}}],["/dv/cesium/3D/3d_tiles_00.html",{loader:()=>x(()=>import("./3d_tiles_00.html-Ccc-lTCf.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:16913664e5,l:"2023年8月7日",c:["Cesium","数据可视化"],g:["3D"],r:{minutes:.1,words:29},y:"a",t:"3D Tiles 模型高度调整",i:"post",O:1}}],["/dv/cesium/data/3dtiles.html",{loader:()=>x(()=>import("./3dtiles.html-22TC-Rm8.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:16913664e5,l:"2023年8月7日",c:["Cesium","数据可视化"],g:["数据加载"],e:` +3D Tiles 简介
+3D Tiles 是 Cesium 于 2016 年 3 月定义的一种三维模型瓦片数据格式,目前已经是 OGC 标准之一,3D Tiles 将海量三维数据以分块分层的形式组织起来,大大减轻了浏览器和 GPU 的负担。
+3D Tiles 专为流式传输和渲染 3D 地理数据而设计的,如倾斜摄影测量、BIM、点云、建筑数据等。特点有:
`,r:{minutes:1.7,words:509},y:"a",t:"3D Tiles",i:"post",O:3}}],["/dv/cesium/data/geojson.html",{loader:()=>x(()=>import("./geojson.html-C_mORFwW.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:16913664e5,l:"2023年8月7日",c:["Cesium","数据可视化"],g:["GeoJson"],e:` +GeoJSON
+GeoJSON 是一种对各种地理数据结构进行编码的格式,是基于 JavaScript 对象表示法(JavaScript Object Notation,JSON)的地理空间信息数据交换格式。
+GeoJSON 对象可以表示几何特征或特征集合,并且支持点、线、面、多点、多线、多面和几何集合等几何类型。
`,r:{minutes:.78,words:234},y:"a",t:"GeoJson",i:"post",O:2}}],["/dv/cesium/data/gltf.html",{loader:()=>x(()=>import("./gltf.html-CZbh-JJz.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:16913664e5,l:"2023年8月7日",c:["Cesium","数据可视化"],g:["glTF","数据加载"],e:` +glTF
+glTF(GL Transmission Format),即图形语言交换格式,是一种 3D 内容的格式标准,其本质是一个 JSON 文件。该文件描述了整个 3D 场景的内容,包含了对场景结构进行描述的场景图。场景中的 3D 对象通过场景节点引用网格进行定义[1]。材质定义了 3D 对象的外观,动画定义了 3D 对象的变换操作(如选择、平移操作)。
`,r:{minutes:.92,words:277},y:"a",t:"glTF",i:"post",O:4}}],["/dv/cesium/data/imagery.html",{loader:()=>x(()=>import("./imagery.html-B_HqSLW3.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:16913664e5,l:"2023年8月7日",c:["Cesium","数据可视化"],g:["GIS","影像加载"],e:`参考资料
++
+`,r:{minutes:.13,words:39},y:"a",t:"影像图层",i:"post",O:1}}],["/dv/cesium/event/mouse.html",{loader:()=>x(()=>import("./mouse.html-Bvqhr9LK.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:16913664e5,l:"2023年8月7日",c:["Cesium","数据可视化"],g:["事件"],r:{minutes:.09,words:26},y:"a",t:"鼠标事件",i:"post",O:1}}],["/dv/cesium/graph/coordinate.html",{loader:()=>x(()=>import("./coordinate.html-k4BRW2x2.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:16913664e5,l:"2023年8月7日",c:["Cesium","数据可视化"],g:["工具应用"],r:{minutes:.09,words:28},y:"a",t:"坐标系统",i:"post",O:1}}],["/dv/cesium/guide/introduction.html",{loader:()=>x(()=>import("./introduction.html-COcRjxmf.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:16909344e5,l:"2023年8月2日",c:["数据可视化"],g:["三维","GIS"],e:` +- 参考文章:https://www.cnblogs.com/echohye/p/17427454.html
+一、Cesium 简介
+Cesium 是一个基于 JavaScript 的开源三维 GIS 框架,可以用于创建具有绝佳性能、精度、视觉质量和易用性的世界级三维地球仪和地图。
+Cesium 支持多种数据可视化方式,可以用于绘制各种几何图形、导入图片及三维模型。其图形是通过 WebGL 加载的,不需要任何插件支持即可使用,只要用户使用的浏览器支持 WebGL,就可以直接使用。
`,r:{minutes:1.18,words:354},y:"a",t:"简介",i:"post",O:1}}],["/dv/cesium/material/video.html",{loader:()=>x(()=>import("./video.html-CyJWwpUx.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:16913664e5,l:"2023年8月7日",c:["Cesium","数据可视化"],g:["工具应用"],r:{minutes:.09,words:28},y:"a",t:"视频材质",i:"post",O:1}}],["/dv/cesium/start/hello_cesium.html",{loader:()=>x(()=>import("./hello_cesium.html-jTZ9rTDH.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:16910208e5,l:"2023年8月3日",c:["Cesium","数据可视化"],g:["三维","GIS","快速上手"],e:` +一、使用 Vite 搭建项目框架
+打开终端,输入下面这行命令创建一个 Vite 项目。
+`,r:{minutes:3.61,words:1082},y:"a",t:"Hello Cesium",i:"post",O:1}}],["/dv/cesium/tools/snipaste.html",{loader:()=>x(()=>import("./snipaste.html-DYudEKFR.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:16913664e5,l:"2023年8月7日",c:["Cesium","数据可视化"],g:["工具应用"],r:{minutes:.09,words:28},y:"a",t:"场景截图",i:"post",O:1}}],["/dv/three/getting_started/ThreeDemo.html",{loader:()=>x(()=>import("./ThreeDemo.html-BNosxl2p.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:17129664e5,l:"2024年4月13日",c:["数据可视化"],g:["DEMO"],e:`npm create vite@latest +
初始化场景
+首先是分别创建场景、相机和渲染器,三者缺一不可,并将渲染器渲染的结果挂载到 DOM 元素上。最后将在
+render
函数绑定到requestAnimationFrame
上, 并执行渲染函数,每次重绘都会重新执行render
函数。+
`,r:{minutes:1.98,words:595},y:"a",t:"快速上手DEMO",i:"post",O:1}}],["/dv/three/getting_started/ThreeWorld.html",{loader:()=>x(()=>import("./ThreeWorld.html-DkxG2JOF.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:17129664e5,l:"2024年4月13日",c:["数据可视化","Three"],g:["DEMO"],e:`- 场景(scene):场景一个物体的容器【通俗理解装东西的嘛】,开发者可以将需要的角色放入场景中,例如苹果,葡萄。同时, 角色自身也管理着其在场景中的位置。
+- 相机(camera):相机的作用就是面对场景,在场景中取一个合适的景,把它拍下来。【可以想象成人的眼睛】
+- 渲染器(renderer):渲染器的作用就是将相机拍摄下来的图片,放到浏览器中去显示。
+Three.js 世界
+`,r:{minutes:.18,words:54},y:"a",t:"进阶DEMO",i:"post",O:1}}],["/dv/visactor/guide/test.html",{loader:()=>x(()=>import("./test.html-CU_lAKSl.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:16913664e5,l:"2023年8月7日",c:["Cesium","数据可视化"],g:["3D"],r:{minutes:.1,words:29},y:"a",t:"3D Tiles 模型高度调整",i:"post",O:1}}],["/dv/visactor/vchart/test.html",{loader:()=>x(()=>import("./test.html-BZ6Md72k.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:16913664e5,l:"2023年8月7日",c:["Cesium","数据可视化"],g:["3D"],r:{minutes:.1,words:29},y:"a",t:"3D Tiles 模型高度调整",i:"post",O:1}}],["/dv/visactor/vgis/test.html",{loader:()=>x(()=>import("./test.html-BUmIYoHS.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:16913664e5,l:"2023年8月7日",c:["数据可视化"],g:["地理信息"],e:`官方还没发布
+`,r:{minutes:.11,words:33},y:"a",t:"尽情期待",i:"post",O:1}}],["/dv/visactor/vgrammar/test.html",{loader:()=>x(()=>import("./test.html-BRv8LFvg.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:16913664e5,l:"2023年8月7日",c:["Cesium","数据可视化"],g:["3D"],r:{minutes:.1,words:29},y:"a",t:"3D Tiles 模型高度调整",i:"post",O:1}}],["/dv/visactor/vgraph/test.html",{loader:()=>x(()=>import("./test.html-bdS8zpeV.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:16913664e5,l:"2023年8月7日",c:["数据可视化"],g:["图表"],r:{minutes:.08,words:25},y:"a",t:"尽情期待",i:"post",O:1}}],["/dv/visactor/vrender/wip.html",{loader:()=>x(()=>import("./wip.html-gyqEVntV.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:16913664e5,l:"2023年8月7日",c:["Cesium","数据可视化"],g:["3D"],r:{minutes:.1,words:29},y:"a",t:"3D Tiles 模型高度调整",i:"post",O:1}}],["/dv/visactor/vtable/wip.html",{loader:()=>x(()=>import("./wip.html-CbjsZYrz.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:16913664e5,l:"2023年8月7日",c:["Cesium","数据可视化"],g:["3D"],r:{minutes:.1,words:29},y:"a",t:"3D Tiles 模型高度调整",i:"post",O:1}}],["/web/backend/todo/",{loader:()=>x(()=>import("./index.html-CJsVb1-x.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:16940448e5,l:"2023年9月7日",r:{minutes:.04,words:13},y:"a",t:"ToDo",i:"post"}}],["/web/frontend/css/Animation.html",{loader:()=>x(()=>import("./Animation.html-BMuyJfTI.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:17083872e5,l:"2024年2月20日",c:["前端开发"],e:`3D 盒子练习
+`,r:{minutes:.28,words:84},y:"a",t:"CSS动画DEMO",i:"qianduan",O:1}}],["/web/frontend/css/CSSBasic.html",{loader:()=>x(()=>import("./CSSBasic.html-D-frS_mQ.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:17127072e5,l:"2024年4月10日",c:["前端开发"],e:`响应式图片相册
+`,r:{minutes:.13,words:40},y:"a",t:"CSS基础DEMO",i:"qianduan",O:1}}],["/web/frontend/css/FlexLayout.html",{loader:()=>x(()=>import("./FlexLayout.html-BA2kXvI6.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:17127072e5,l:"2024年4月10日",c:["前端开发"],e:`骰子练习
+`,r:{minutes:.15,words:46},y:"a",t:"Flex布局DEMO",i:"qianduan",O:1}}],["/web/frontend/guide/what-is.html",{loader:()=>x(()=>import("./what-is.html--C765ktT.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:17083872e5,l:"2024年2月20日",c:["前端开发"],e:`前端是什么
+大前端
++
+`,r:{minutes:.15,words:46},y:"a",t:"什么是前端开发",i:"qianduan",O:1}}],["/web/frontend/html/HTMLBasic.html",{loader:()=>x(()=>import("./HTMLBasic.html-Ti2hTz7S.js"),__vite__mapDeps([])),meta:{a:"宋玉",d:17083872e5,l:"2024年2月20日",c:["前端开发"],e:`- 黄玄:前端已死,前端永生
+轮播图
+`,r:{minutes:.36,words:107},y:"a",t:"HTML基础DEMO",i:"qianduan",O:1}}],["/404.html",{loader:()=>x(()=>import("./404.html-CHybrDMd.js"),__vite__mapDeps([])),meta:{y:"p",t:""}}],["/ai/basic/",{loader:()=>x(()=>import("./index.html-Bc2rN_dy.js"),__vite__mapDeps([])),meta:{y:"p",t:"Basic"}}],["/ai/",{loader:()=>x(()=>import("./index.html-0DH_MY71.js"),__vite__mapDeps([])),meta:{y:"p",t:"Ai"}}],["/dv/foreword/",{loader:()=>x(()=>import("./index.html-DGjh4OG3.js"),__vite__mapDeps([])),meta:{y:"p",t:"Foreword"}}],["/dv/",{loader:()=>x(()=>import("./index.html-C6JU6fZ7.js"),__vite__mapDeps([])),meta:{y:"p",t:"Dv"}}],["/en/advanced-guide/",{loader:()=>x(()=>import("./index.html-DWqoVs4e.js"),__vite__mapDeps([])),meta:{y:"p",t:"Advanced Guide"}}],["/en/",{loader:()=>x(()=>import("./index.html-DaPfnSJ0.js"),__vite__mapDeps([])),meta:{y:"p",t:"En"}}],["/en/basic/",{loader:()=>x(()=>import("./index.html-CwUy9ALB.js"),__vite__mapDeps([])),meta:{y:"p",t:"Basic"}}],["/en/programmer-english/",{loader:()=>x(()=>import("./index.html-LRKqxrHK.js"),__vite__mapDeps([])),meta:{y:"p",t:"Programmer English"}}],["/en/use-english/",{loader:()=>x(()=>import("./index.html-O-kf5Lza.js"),__vite__mapDeps([])),meta:{y:"p",t:"Use English"}}],["/dv/antv/g2plot/",{loader:()=>x(()=>import("./index.html-BqbknxPY.js"),__vite__mapDeps([])),meta:{y:"p",t:"G2plot"}}],["/dv/antv/",{loader:()=>x(()=>import("./index.html-BMTvdLxf.js"),__vite__mapDeps([])),meta:{y:"p",t:"Antv"}}],["/dv/antv/guide/",{loader:()=>x(()=>import("./index.html-DuKbkH-X.js"),__vite__mapDeps([])),meta:{y:"p",t:"Guide"}}],["/dv/antv/l7plot/",{loader:()=>x(()=>import("./index.html-CM_PnHl5.js"),__vite__mapDeps([])),meta:{y:"p",t:"L7plot"}}],["/dv/audio-visual/WebRTC/",{loader:()=>x(()=>import("./index.html-nUd0ZRiL.js"),__vite__mapDeps([])),meta:{y:"p",t:"Web RTC"}}],["/dv/audio-visual/",{loader:()=>x(()=>import("./index.html-B7DJRTDr.js"),__vite__mapDeps([])),meta:{y:"p",t:"Audio Visual"}}],["/dv/basic/data/",{loader:()=>x(()=>import("./index.html-B2xvJ1L9.js"),__vite__mapDeps([])),meta:{y:"p",t:"Data"}}],["/dv/basic/",{loader:()=>x(()=>import("./index.html-DSjAE7DE.js"),__vite__mapDeps([])),meta:{y:"p",t:"Basic"}}],["/dv/basic/foreword/",{loader:()=>x(()=>import("./index.html-DOVVa0mu.js"),__vite__mapDeps([])),meta:{y:"p",t:"Foreword"}}],["/dv/basic/graphics_basics/",{loader:()=>x(()=>import("./index.html-DUpCI9Jn.js"),__vite__mapDeps([])),meta:{y:"p",t:"Graphics Basics"}}],["/dv/basic/math_basics/",{loader:()=>x(()=>import("./index.html-3ecXb9bY.js"),__vite__mapDeps([])),meta:{y:"p",t:"Math Basics"}}],["/dv/basic/performance/",{loader:()=>x(()=>import("./index.html-BBkq_S4z.js"),__vite__mapDeps([])),meta:{y:"p",t:"Performance"}}],["/dv/basic/visual_advanced/",{loader:()=>x(()=>import("./index.html-DGfv5Hn8.js"),__vite__mapDeps([])),meta:{y:"p",t:"Visual Advanced"}}],["/dv/basic/visual_basics/",{loader:()=>x(()=>import("./index.html-pSJo4J-W.js"),__vite__mapDeps([])),meta:{y:"p",t:"Visual Basics"}}],["/dv/cesium/3D/",{loader:()=>x(()=>import("./index.html-BefY3Pjd.js"),__vite__mapDeps([])),meta:{y:"p",t:"3 D"}}],["/dv/cesium/",{loader:()=>x(()=>import("./index.html-CJdgyWpv.js"),__vite__mapDeps([])),meta:{y:"p",t:"Cesium"}}],["/dv/cesium/data/",{loader:()=>x(()=>import("./index.html-CYN_Utkb.js"),__vite__mapDeps([])),meta:{y:"p",t:"Data"}}],["/dv/cesium/event/",{loader:()=>x(()=>import("./index.html-CWyByVyy.js"),__vite__mapDeps([])),meta:{y:"p",t:"Event"}}],["/dv/cesium/graph/",{loader:()=>x(()=>import("./index.html-DYEDkK88.js"),__vite__mapDeps([])),meta:{y:"p",t:"Graph"}}],["/dv/cesium/guide/",{loader:()=>x(()=>import("./index.html-CI-fg_E8.js"),__vite__mapDeps([])),meta:{y:"p",t:"Guide"}}],["/dv/cesium/material/",{loader:()=>x(()=>import("./index.html-D_Qedu-H.js"),__vite__mapDeps([])),meta:{y:"p",t:"Material"}}],["/dv/cesium/start/",{loader:()=>x(()=>import("./index.html-BYFqChcL.js"),__vite__mapDeps([])),meta:{y:"p",t:"Start"}}],["/dv/cesium/tools/",{loader:()=>x(()=>import("./index.html-CGAW2oGT.js"),__vite__mapDeps([])),meta:{y:"p",t:"Tools"}}],["/dv/three/getting_started/",{loader:()=>x(()=>import("./index.html-BEkJVZHC.js"),__vite__mapDeps([])),meta:{y:"p",t:"Getting Started"}}],["/dv/three/",{loader:()=>x(()=>import("./index.html-CGexXCeu.js"),__vite__mapDeps([])),meta:{y:"p",t:"Three"}}],["/dv/visactor/guide/",{loader:()=>x(()=>import("./index.html-Bokk59Zq.js"),__vite__mapDeps([])),meta:{y:"p",t:"Guide"}}],["/dv/visactor/",{loader:()=>x(()=>import("./index.html-BhkcB_X2.js"),__vite__mapDeps([])),meta:{y:"p",t:"Visactor"}}],["/dv/visactor/vchart/",{loader:()=>x(()=>import("./index.html-DeQZrpdY.js"),__vite__mapDeps([])),meta:{y:"p",t:"Vchart"}}],["/dv/visactor/vgis/",{loader:()=>x(()=>import("./index.html-BaX06jPX.js"),__vite__mapDeps([])),meta:{y:"p",t:"Vgis"}}],["/dv/visactor/vgrammar/",{loader:()=>x(()=>import("./index.html-siPiMKC2.js"),__vite__mapDeps([])),meta:{y:"p",t:"Vgrammar"}}],["/dv/visactor/vgraph/",{loader:()=>x(()=>import("./index.html-BCS72aKu.js"),__vite__mapDeps([])),meta:{y:"p",t:"Vgraph"}}],["/dv/visactor/vrender/",{loader:()=>x(()=>import("./index.html-C8wyDepi.js"),__vite__mapDeps([])),meta:{y:"p",t:"Vrender"}}],["/dv/visactor/vtable/",{loader:()=>x(()=>import("./index.html-D9z0VMRt.js"),__vite__mapDeps([])),meta:{y:"p",t:"Vtable"}}],["/web/backend/",{loader:()=>x(()=>import("./index.html-BfFK4LLE.js"),__vite__mapDeps([])),meta:{y:"p",t:"Backend"}}],["/web/",{loader:()=>x(()=>import("./index.html-HbH8E9UP.js"),__vite__mapDeps([])),meta:{y:"p",t:"Web"}}],["/web/frontend/css/",{loader:()=>x(()=>import("./index.html-L7k3FAty.js"),__vite__mapDeps([])),meta:{y:"p",t:"Css"}}],["/web/frontend/",{loader:()=>x(()=>import("./index.html-3U3pUGGN.js"),__vite__mapDeps([])),meta:{y:"p",t:"Frontend"}}],["/web/frontend/guide/",{loader:()=>x(()=>import("./index.html-BiALxDl-.js"),__vite__mapDeps([])),meta:{y:"p",t:"Guide"}}],["/web/frontend/html/",{loader:()=>x(()=>import("./index.html-BUhVWRSW.js"),__vite__mapDeps([])),meta:{y:"p",t:"Html"}}],["/category/",{loader:()=>x(()=>import("./index.html-BQNaQ5q9.js"),__vite__mapDeps([])),meta:{y:"p",t:"分类",I:!1}}],["/category/cesium/",{loader:()=>x(()=>import("./index.html-B4qpwBEW.js"),__vite__mapDeps([])),meta:{y:"p",t:"Cesium 分类",I:!1}}],["/category/%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96/",{loader:()=>x(()=>import("./index.html-CCPh2-Ae.js"),__vite__mapDeps([])),meta:{y:"p",t:"数据可视化 分类",I:!1}}],["/category/%E5%88%86%E7%B1%BB/",{loader:()=>x(()=>import("./index.html-CVA1U8gm.js"),__vite__mapDeps([])),meta:{y:"p",t:"分类 分类",I:!1}}],["/category/three/",{loader:()=>x(()=>import("./index.html-COOcxSD7.js"),__vite__mapDeps([])),meta:{y:"p",t:"Three 分类",I:!1}}],["/category/%E5%89%8D%E7%AB%AF%E5%BC%80%E5%8F%91/",{loader:()=>x(()=>import("./index.html-BO1y6fWV.js"),__vite__mapDeps([])),meta:{y:"p",t:"前端开发 分类",I:!1}}],["/tag/",{loader:()=>x(()=>import("./index.html-tl1u0K5s.js"),__vite__mapDeps([])),meta:{y:"p",t:"标签",I:!1}}],["/tag/3d/",{loader:()=>x(()=>import("./index.html-BHzphxe0.js"),__vite__mapDeps([])),meta:{y:"p",t:"标签: 3D",I:!1}}],["/tag/%E6%A0%87%E7%AD%BE/",{loader:()=>x(()=>import("./index.html-Cppjzm0Z.js"),__vite__mapDeps([])),meta:{y:"p",t:"标签: 标签",I:!1}}],["/tag/%E7%AE%80%E5%8F%B2/",{loader:()=>x(()=>import("./index.html-5gsaqweX.js"),__vite__mapDeps([])),meta:{y:"p",t:"标签: 简史",I:!1}}],["/tag/%E8%81%8C%E4%B8%9A/",{loader:()=>x(()=>import("./index.html-DGfIMhGa.js"),__vite__mapDeps([])),meta:{y:"p",t:"标签: 职业",I:!1}}],["/tag/%E6%A6%82%E5%BF%B5/",{loader:()=>x(()=>import("./index.html-CVZMSB0P.js"),__vite__mapDeps([])),meta:{y:"p",t:"标签: 概念",I:!1}}],["/tag/%E6%8C%87%E5%8D%97/",{loader:()=>x(()=>import("./index.html-BWf-LBal.js"),__vite__mapDeps([])),meta:{y:"p",t:"标签: 指南",I:!1}}],["/tag/%E6%B5%8F%E8%A7%88%E5%99%A8/",{loader:()=>x(()=>import("./index.html-DcuXwh79.js"),__vite__mapDeps([])),meta:{y:"p",t:"标签: 浏览器",I:!1}}],["/tag/%E6%95%B0%E6%8D%AE%E5%8A%A0%E8%BD%BD/",{loader:()=>x(()=>import("./index.html-CMVpXLdO.js"),__vite__mapDeps([])),meta:{y:"p",t:"标签: 数据加载",I:!1}}],["/tag/geojson/",{loader:()=>x(()=>import("./index.html-Bg4Nhhnn.js"),__vite__mapDeps([])),meta:{y:"p",t:"标签: GeoJson",I:!1}}],["/tag/gltf/",{loader:()=>x(()=>import("./index.html-BW2Q_yqn.js"),__vite__mapDeps([])),meta:{y:"p",t:"标签: glTF",I:!1}}],["/tag/gis/",{loader:()=>x(()=>import("./index.html-DBcNTyDx.js"),__vite__mapDeps([])),meta:{y:"p",t:"标签: GIS",I:!1}}],["/tag/%E5%BD%B1%E5%83%8F%E5%8A%A0%E8%BD%BD/",{loader:()=>x(()=>import("./index.html-DnTIWrPx.js"),__vite__mapDeps([])),meta:{y:"p",t:"标签: 影像加载",I:!1}}],["/tag/%E4%BA%8B%E4%BB%B6/",{loader:()=>x(()=>import("./index.html-BSKzkCPj.js"),__vite__mapDeps([])),meta:{y:"p",t:"标签: 事件",I:!1}}],["/tag/%E5%B7%A5%E5%85%B7%E5%BA%94%E7%94%A8/",{loader:()=>x(()=>import("./index.html-CZOcnFO5.js"),__vite__mapDeps([])),meta:{y:"p",t:"标签: 工具应用",I:!1}}],["/tag/%E4%B8%89%E7%BB%B4/",{loader:()=>x(()=>import("./index.html-D8RkeE5e.js"),__vite__mapDeps([])),meta:{y:"p",t:"标签: 三维",I:!1}}],["/tag/%E5%BF%AB%E9%80%9F%E4%B8%8A%E6%89%8B/",{loader:()=>x(()=>import("./index.html-BYx4eFer.js"),__vite__mapDeps([])),meta:{y:"p",t:"标签: 快速上手",I:!1}}],["/tag/demo/",{loader:()=>x(()=>import("./index.html-CzOQHQYg.js"),__vite__mapDeps([])),meta:{y:"p",t:"标签: DEMO",I:!1}}],["/tag/%E5%9C%B0%E7%90%86%E4%BF%A1%E6%81%AF/",{loader:()=>x(()=>import("./index.html-DYO5DIDl.js"),__vite__mapDeps([])),meta:{y:"p",t:"标签: 地理信息",I:!1}}],["/tag/%E5%9B%BE%E8%A1%A8/",{loader:()=>x(()=>import("./index.html-CJjfsyYF.js"),__vite__mapDeps([])),meta:{y:"p",t:"标签: 图表",I:!1}}],["/article/",{loader:()=>x(()=>import("./index.html-C0Fp7kaJ.js"),__vite__mapDeps([])),meta:{y:"p",t:"文章",I:!1}}],["/star/",{loader:()=>x(()=>import("./index.html-DF7Nx4iY.js"),__vite__mapDeps([])),meta:{y:"p",t:"星标",I:!1}}],["/timeline/",{loader:()=>x(()=>import("./index.html-CzIYxdLJ.js"),__vite__mapDeps([])),meta:{y:"p",t:"时间轴",I:!1}}]]);var gm=["link","meta","script","style","noscript","template"],bm=["title","base"],ym=([e,t,n])=>bm.includes(e)?e:gm.includes(e)?e==="meta"&&t.name?`${e}.${t.name}`:e==="template"&&t.id?`${e}.${t.id}`:JSON.stringify([e,Object.entries(t).map(([r,o])=>typeof o=="boolean"?o?[r,""]:null:[r,o]).filter(r=>r!=null).sort(([r],[o])=>r.localeCompare(o)),n]):null,_m=e=>{const t=new Set,n=[];return e.forEach(r=>{const o=ym(r);o&&!t.has(o)&&(t.add(o),n.push(r))}),n},wm=e=>e[0]==="/"?e:`/${e}`,ti=e=>e[e.length-1]==="/"||e.endsWith(".html")?e:`${e}/`,Kt=e=>/^(https?:)?\/\//.test(e),xm=/.md((\?|#).*)?$/,Vr=(e,t="/")=>!!(Kt(e)||e.startsWith("/")&&!e.startsWith(t)&&!xm.test(e)),Uu=e=>/^[a-z][a-z0-9+.-]*:/.test(e),pn=e=>Object.prototype.toString.call(e)==="[object Object]",Em=e=>{const[t,...n]=e.split(/(\?|#)/);if(!t||t.endsWith("/"))return e;const r=n.length>0?n.join(""):"";let o=t.replace(/(^|\/)README.md$/i,"$1index.html");return o.endsWith(".md")?o=o.substring(0,o.length-3)+".html":o.endsWith(".html")||(o=o+".html"),o.endsWith("/index.html")?o.substring(0,o.length-10)+r:o+r},ni=e=>e[e.length-1]==="/"?e.slice(0,-1):e,Wu=e=>e[0]==="/"?e.slice(1):e,Sm=(e,t)=>{const n=Object.keys(e).sort((r,o)=>{const a=o.split("/").length-r.split("/").length;return a!==0?a:o.length-r.length});for(const r of n)if(t.startsWith(r))return r;return"/"},Tm=e=>typeof e=="function",Me=e=>typeof e=="string";/*! + * vue-router v4.3.0 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const zn=typeof document<"u";function Lm(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ee=Object.assign;function Da(e,t){const n={};for(const r in t){const o=t[r];n[r]=Ct(o)?o.map(e):e(o)}return n}const Ar=()=>{},Ct=Array.isArray,qu=/#/g,Cm=/&/g,km=/\//g,Am=/=/g,Om=/\?/g,Ku=/\+/g,Pm=/%5B/g,Im=/%5D/g,Ju=/%5E/g,Rm=/%60/g,Zu=/%7B/g,Dm=/%7C/g,Yu=/%7D/g,Mm=/%20/g;function ri(e){return encodeURI(""+e).replace(Dm,"|").replace(Pm,"[").replace(Im,"]")}function Nm(e){return ri(e).replace(Zu,"{").replace(Yu,"}").replace(Ju,"^")}function ds(e){return ri(e).replace(Ku,"%2B").replace(Mm,"+").replace(qu,"%23").replace(Cm,"%26").replace(Rm,"`").replace(Zu,"{").replace(Yu,"}").replace(Ju,"^")}function $m(e){return ds(e).replace(Am,"%3D")}function Vm(e){return ri(e).replace(qu,"%23").replace(Om,"%3F")}function jm(e){return e==null?"":Vm(e).replace(km,"%2F")}function jr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Bm=/\/$/,Hm=e=>e.replace(Bm,"");function Ma(e,t,n="/"){let r,o={},a="",s="";const i=t.indexOf("#");let c=t.indexOf("?");return i=0&&(c=-1),c>-1&&(r=t.slice(0,c),a=t.slice(c+1,i>-1?i:t.length),o=e(a)),i>-1&&(r=r||t.slice(0,i),s=t.slice(i,t.length)),r=Um(r??t,n),{fullPath:r+(a&&"?")+a+s,path:r,query:o,hash:jr(s)}}function Fm(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ml(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function zm(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&ar(t.matched[r],n.matched[o])&&Xu(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ar(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Xu(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Gm(e[n],t[n]))return!1;return!0}function Gm(e,t){return Ct(e)?Nl(e,t):Ct(t)?Nl(t,e):e===t}function Nl(e,t){return Ct(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Um(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let a=n.length-1,s,i;for(s=0;s 1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(s).join("/")}var Br;(function(e){e.pop="pop",e.push="push"})(Br||(Br={}));var Or;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Or||(Or={}));function Wm(e){if(!e)if(zn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Hm(e)}const qm=/^[^#]+#/;function Km(e,t){return e.replace(qm,"#")+t}function Jm(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const oa=()=>({left:window.scrollX,top:window.scrollY});function Zm(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Jm(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function $l(e,t){return(history.state?history.state.position-t:-1)+e}const fs=new Map;function Ym(e,t){fs.set(e,t)}function Xm(e){const t=fs.get(e);return fs.delete(e),t}let Qm=()=>location.protocol+"//"+location.host;function Qu(e,t){const{pathname:n,search:r,hash:o}=t,a=e.indexOf("#");if(a>-1){let i=o.includes(e.slice(a))?e.slice(a).length:1,c=o.slice(i);return c[0]!=="/"&&(c="/"+c),Ml(c,"")}return Ml(n,e)+r+o}function e0(e,t,n,r){let o=[],a=[],s=null;const i=({state:p})=>{const h=Qu(e,location),m=n.value,b=t.value;let E=0;if(p){if(n.value=h,t.value=p,s&&s===m){s=null;return}E=b?p.position-b.position:0}else r(h);o.forEach(y=>{y(n.value,m,{delta:E,type:Br.pop,direction:E?E>0?Or.forward:Or.back:Or.unknown})})};function c(){s=n.value}function u(p){o.push(p);const h=()=>{const m=o.indexOf(p);m>-1&&o.splice(m,1)};return a.push(h),h}function d(){const{history:p}=window;p.state&&p.replaceState(Ee({},p.state,{scroll:oa()}),"")}function f(){for(const p of a)p();a=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:c,listen:u,destroy:f}}function Vl(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?oa():null}}function t0(e){const{history:t,location:n}=window,r={value:Qu(e,n)},o={value:t.state};o.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(c,u,d){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+c:Qm()+e+c;try{t[d?"replaceState":"pushState"](u,"",p),o.value=u}catch(h){console.error(h),n[d?"replace":"assign"](p)}}function s(c,u){const d=Ee({},t.state,Vl(o.value.back,c,o.value.forward,!0),u,{position:o.value.position});a(c,d,!0),r.value=c}function i(c,u){const d=Ee({},o.value,t.state,{forward:c,scroll:oa()});a(d.current,d,!0);const f=Ee({},Vl(r.value,c,null),{position:d.position+1},u);a(c,f,!1),r.value=c}return{location:r,state:o,push:i,replace:s}}function n0(e){e=Wm(e);const t=t0(e),n=e0(e,t.state,t.location,t.replace);function r(a,s=!0){s||n.pauseListeners(),history.go(a)}const o=Ee({location:"",base:e,go:r,createHref:Km.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function r0(e){return typeof e=="string"||e&&typeof e=="object"}function ed(e){return typeof e=="string"||typeof e=="symbol"}const zt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},td=Symbol("");var jl;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(jl||(jl={}));function sr(e,t){return Ee(new Error,{type:e,[td]:!0},t)}function Ht(e,t){return e instanceof Error&&td in e&&(t==null||!!(e.type&t))}const Bl="[^/]+?",o0={sensitive:!1,strict:!1,start:!0,end:!0},a0=/[.+*?^${}()[\]/\\]/g;function s0(e,t){const n=Ee({},o0,t),r=[];let o=n.start?"^":"";const a=[];for(const u of e){const d=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let f=0;f t.length?t.length===1&&t[0]===80?1:-1:0}function l0(e,t){let n=0;const r=e.score,o=t.score;for(;n 0&&t[t.length-1]<0}const c0={type:0,value:""},u0=/[a-zA-Z0-9_]/;function d0(e){if(!e)return[[]];if(e==="/")return[[c0]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,r=n;const o=[];let a;function s(){a&&o.push(a),a=[]}let i=0,c,u="",d="";function f(){u&&(n===0?a.push({type:0,value:u}):n===1||n===2||n===3?(a.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:d,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function p(){u+=c}for(;i {s(T)}:Ar}function s(d){if(ed(d)){const f=r.get(d);f&&(r.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(s),f.alias.forEach(s))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&r.delete(d.record.name),d.children.forEach(s),d.alias.forEach(s))}}function i(){return n}function c(d){let f=0;for(;f =0&&(d.record.path!==n[f].record.path||!nd(d,n[f]));)f++;n.splice(f,0,d),d.record.name&&!zl(d)&&r.set(d.record.name,d)}function u(d,f){let p,h={},m,b;if("name"in d&&d.name){if(p=r.get(d.name),!p)throw sr(1,{location:d});b=p.record.name,h=Ee(Fl(f.params,p.keys.filter(T=>!T.optional).concat(p.parent?p.parent.keys.filter(T=>T.optional):[]).map(T=>T.name)),d.params&&Fl(d.params,p.keys.map(T=>T.name))),m=p.stringify(h)}else if(d.path!=null)m=d.path,p=n.find(T=>T.re.test(m)),p&&(h=p.parse(m),b=p.record.name);else{if(p=f.name?r.get(f.name):n.find(T=>T.re.test(f.path)),!p)throw sr(1,{location:d,currentLocation:f});b=p.record.name,h=Ee({},f.params,d.params),m=p.stringify(h)}const E=[];let y=p;for(;y;)E.unshift(y.record),y=y.parent;return{name:b,path:m,params:h,matched:E,meta:v0(E)}}return e.forEach(d=>a(d)),{addRoute:a,resolve:u,removeRoute:s,getRoutes:i,getRecordMatcher:o}}function Fl(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function h0(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:m0(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function m0(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function zl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function v0(e){return e.reduce((t,n)=>Ee(t,n.meta),{})}function Gl(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function nd(e,t){return t.children.some(n=>n===e||nd(e,n))}function g0(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o a&&ds(a)):[r&&ds(r)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function b0(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ct(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const y0=Symbol(""),Wl=Symbol(""),aa=Symbol(""),oi=Symbol(""),ps=Symbol("");function _r(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function cn(e,t,n,r,o,a=s=>s()){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((i,c)=>{const u=p=>{p===!1?c(sr(4,{from:n,to:t})):p instanceof Error?c(p):r0(p)?c(sr(2,{from:t,to:p})):(s&&r.enterCallbacks[o]===s&&typeof p=="function"&&s.push(p),i())},d=a(()=>e.call(r&&r.instances[o],t,n,u));let f=Promise.resolve(d);e.length<3&&(f=f.then(u)),f.catch(p=>c(p))})}function Na(e,t,n,r,o=a=>a()){const a=[];for(const s of e)for(const i in s.components){let c=s.components[i];if(!(t!=="beforeRouteEnter"&&!s.instances[i]))if(_0(c)){const d=(c.__vccOpts||c)[t];d&&a.push(cn(d,n,r,s,i,o))}else{let u=c();a.push(()=>u.then(d=>{if(!d)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${s.path}"`));const f=Lm(d)?d.default:d;s.components[i]=f;const h=(f.__vccOpts||f)[t];return h&&cn(h,n,r,s,i,o)()}))}}return a}function _0(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function hs(e){const t=ie(aa),n=ie(oi),r=w(()=>t.resolve(bt(e.to))),o=w(()=>{const{matched:c}=r.value,{length:u}=c,d=c[u-1],f=n.matched;if(!d||!f.length)return-1;const p=f.findIndex(ar.bind(null,d));if(p>-1)return p;const h=ql(c[u-2]);return u>1&&ql(d)===h&&f[f.length-1].path!==h?f.findIndex(ar.bind(null,c[u-2])):p}),a=w(()=>o.value>-1&&S0(n.params,r.value.params)),s=w(()=>o.value>-1&&o.value===n.matched.length-1&&Xu(n.params,r.value.params));function i(c={}){return E0(c)?t[bt(e.replace)?"replace":"push"](bt(e.to)).catch(Ar):Promise.resolve()}return{route:r,href:w(()=>r.value.href),isActive:a,isExactActive:s,navigate:i}}const w0=D({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:hs,setup(e,{slots:t}){const n=Wr(hs(e)),{options:r}=ie(aa),o=w(()=>({[Kl(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Kl(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&t.default(n);return e.custom?a:l("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},a)}}}),x0=w0;function E0(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function S0(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!Ct(o)||o.length!==r.length||r.some((a,s)=>a!==o[s]))return!1}return!0}function ql(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Kl=(e,t,n)=>e??t??n,T0=D({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ie(ps),o=w(()=>e.route||r.value),a=ie(Wl,0),s=w(()=>{let u=bt(a);const{matched:d}=o.value;let f;for(;(f=d[u])&&!f.components;)u++;return u}),i=w(()=>o.value.matched[s.value]);_t(Wl,w(()=>s.value+1)),_t(y0,i),_t(ps,o);const c=I();return se(()=>[c.value,i.value,e.name],([u,d,f],[p,h,m])=>{d&&(d.instances[f]=u,h&&h!==d&&u&&u===p&&(d.leaveGuards.size||(d.leaveGuards=h.leaveGuards),d.updateGuards.size||(d.updateGuards=h.updateGuards))),u&&d&&(!h||!ar(d,h)||!p)&&(d.enterCallbacks[f]||[]).forEach(b=>b(u))},{flush:"post"}),()=>{const u=o.value,d=e.name,f=i.value,p=f&&f.components[d];if(!p)return Jl(n.default,{Component:p,route:u});const h=f.props[d],m=h?h===!0?u.params:typeof h=="function"?h(u):h:null,E=l(p,Ee({},m,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[d]=null)},ref:c}));return Jl(n.default,{Component:E,route:u})||E}}});function Jl(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const L0=T0;function C0(e){const t=p0(e.routes,e),n=e.parseQuery||g0,r=e.stringifyQuery||Ul,o=e.history,a=_r(),s=_r(),i=_r(),c=me(zt);let u=zt;zn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Da.bind(null,k=>""+k),f=Da.bind(null,jm),p=Da.bind(null,jr);function h(k,W){let z,Y;return ed(k)?(z=t.getRecordMatcher(k),Y=W):Y=k,t.addRoute(Y,z)}function m(k){const W=t.getRecordMatcher(k);W&&t.removeRoute(W)}function b(){return t.getRoutes().map(k=>k.record)}function E(k){return!!t.getRecordMatcher(k)}function y(k,W){if(W=Ee({},W||c.value),typeof k=="string"){const g=Ma(n,k,W.path),S=t.resolve({path:g.path},W),P=o.createHref(g.fullPath);return Ee(g,S,{params:p(S.params),hash:jr(g.hash),redirectedFrom:void 0,href:P})}let z;if(k.path!=null)z=Ee({},k,{path:Ma(n,k.path,W.path).path});else{const g=Ee({},k.params);for(const S in g)g[S]==null&&delete g[S];z=Ee({},k,{params:f(g)}),W.params=f(W.params)}const Y=t.resolve(z,W),ge=k.hash||"";Y.params=d(p(Y.params));const Ce=Fm(r,Ee({},k,{hash:Nm(ge),path:Y.path})),v=o.createHref(Ce);return Ee({fullPath:Ce,hash:ge,query:r===Ul?b0(k.query):k.query||{}},Y,{redirectedFrom:void 0,href:v})}function T(k){return typeof k=="string"?Ma(n,k,c.value.path):Ee({},k)}function _(k,W){if(u!==k)return sr(8,{from:W,to:k})}function C(k){return J(k)}function V(k){return C(Ee(T(k),{replace:!0}))}function L(k){const W=k.matched[k.matched.length-1];if(W&&W.redirect){const{redirect:z}=W;let Y=typeof z=="function"?z(k):z;return typeof Y=="string"&&(Y=Y.includes("?")||Y.includes("#")?Y=T(Y):{path:Y},Y.params={}),Ee({query:k.query,hash:k.hash,params:Y.path!=null?{}:k.params},Y)}}function J(k,W){const z=u=y(k),Y=c.value,ge=k.state,Ce=k.force,v=k.replace===!0,g=L(z);if(g)return J(Ee(T(g),{state:typeof g=="object"?Ee({},ge,g.state):ge,force:Ce,replace:v}),W||z);const S=z;S.redirectedFrom=W;let P;return!Ce&&zm(r,Y,z)&&(P=sr(16,{to:S,from:Y}),pt(Y,Y,!0,!1)),(P?Promise.resolve(P):H(S,Y)).catch(A=>Ht(A)?Ht(A,2)?A:Ot(A):Z(A,S,Y)).then(A=>{if(A){if(Ht(A,2))return J(Ee({replace:v},T(A.to),{state:typeof A.to=="object"?Ee({},ge,A.to.state):ge,force:Ce}),W||S)}else A=F(S,Y,!0,v,ge);return X(S,Y,A),A})}function B(k,W){const z=_(k,W);return z?Promise.reject(z):Promise.resolve()}function M(k){const W=Bt.values().next().value;return W&&typeof W.runWithContext=="function"?W.runWithContext(k):k()}function H(k,W){let z;const[Y,ge,Ce]=k0(k,W);z=Na(Y.reverse(),"beforeRouteLeave",k,W);for(const g of Y)g.leaveGuards.forEach(S=>{z.push(cn(S,k,W))});const v=B.bind(null,k,W);return z.push(v),Be(z).then(()=>{z=[];for(const g of a.list())z.push(cn(g,k,W));return z.push(v),Be(z)}).then(()=>{z=Na(ge,"beforeRouteUpdate",k,W);for(const g of ge)g.updateGuards.forEach(S=>{z.push(cn(S,k,W))});return z.push(v),Be(z)}).then(()=>{z=[];for(const g of Ce)if(g.beforeEnter)if(Ct(g.beforeEnter))for(const S of g.beforeEnter)z.push(cn(S,k,W));else z.push(cn(g.beforeEnter,k,W));return z.push(v),Be(z)}).then(()=>(k.matched.forEach(g=>g.enterCallbacks={}),z=Na(Ce,"beforeRouteEnter",k,W,M),z.push(v),Be(z))).then(()=>{z=[];for(const g of s.list())z.push(cn(g,k,W));return z.push(v),Be(z)}).catch(g=>Ht(g,8)?g:Promise.reject(g))}function X(k,W,z){i.list().forEach(Y=>M(()=>Y(k,W,z)))}function F(k,W,z,Y,ge){const Ce=_(k,W);if(Ce)return Ce;const v=W===zt,g=zn?history.state:{};z&&(Y||v?o.replace(k.fullPath,Ee({scroll:v&&g&&g.scroll},ge)):o.push(k.fullPath,ge)),c.value=k,pt(k,W,z,v),Ot()}let ne;function Ne(){ne||(ne=o.listen((k,W,z)=>{if(!Pt.listening)return;const Y=y(k),ge=L(Y);if(ge){J(Ee(ge,{replace:!0}),Y).catch(Ar);return}u=Y;const Ce=c.value;zn&&Ym($l(Ce.fullPath,z.delta),oa()),H(Y,Ce).catch(v=>Ht(v,12)?v:Ht(v,2)?(J(v.to,Y).then(g=>{Ht(g,20)&&!z.delta&&z.type===Br.pop&&o.go(-1,!1)}).catch(Ar),Promise.reject()):(z.delta&&o.go(-z.delta,!1),Z(v,Y,Ce))).then(v=>{v=v||F(Y,Ce,!1),v&&(z.delta&&!Ht(v,8)?o.go(-z.delta,!1):z.type===Br.pop&&Ht(v,20)&&o.go(-1,!1)),X(Y,Ce,v)}).catch(Ar)}))}let Re=_r(),K=_r(),re;function Z(k,W,z){Ot(k);const Y=K.list();return Y.length?Y.forEach(ge=>ge(k,W,z)):console.error(k),Promise.reject(k)}function je(){return re&&c.value!==zt?Promise.resolve():new Promise((k,W)=>{Re.add([k,W])})}function Ot(k){return re||(re=!k,Ne(),Re.list().forEach(([W,z])=>k?z(k):W()),Re.reset()),k}function pt(k,W,z,Y){const{scrollBehavior:ge}=e;if(!zn||!ge)return Promise.resolve();const Ce=!z&&Xm($l(k.fullPath,0))||(Y||!z)&&history.state&&history.state.scroll||null;return bn().then(()=>ge(k,W,Ce)).then(v=>v&&Zm(v)).catch(v=>Z(v,k,W))}const Ue=k=>o.go(k);let lt;const Bt=new Set,Pt={currentRoute:c,listening:!0,addRoute:h,removeRoute:m,hasRoute:E,getRoutes:b,resolve:y,options:e,push:C,replace:V,go:Ue,back:()=>Ue(-1),forward:()=>Ue(1),beforeEach:a.add,beforeResolve:s.add,afterEach:i.add,onError:K.add,isReady:je,install(k){const W=this;k.component("RouterLink",x0),k.component("RouterView",L0),k.config.globalProperties.$router=W,Object.defineProperty(k.config.globalProperties,"$route",{enumerable:!0,get:()=>bt(c)}),zn&&!lt&&c.value===zt&&(lt=!0,C(o.location).catch(ge=>{}));const z={};for(const ge in zt)Object.defineProperty(z,ge,{get:()=>c.value[ge],enumerable:!0});k.provide(aa,W),k.provide(oi,eu(z)),k.provide(ps,c);const Y=k.unmount;Bt.add(k),k.unmount=function(){Bt.delete(k),Bt.size<1&&(u=zt,ne&&ne(),ne=null,c.value=zt,lt=!1,re=!1),Y()}}};function Be(k){return k.reduce((W,z)=>W.then(()=>M(z)),Promise.resolve())}return Pt}function k0(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;sar(u,i))?r.push(i):n.push(i));const c=e.matched[s];c&&(t.matched.find(u=>ar(u,c))||o.push(c))}return[n,r,o]}function wn(){return ie(aa)}function $t(){return ie(oi)}const A0=JSON.parse('{"base":"/","lang":"en-US","title":"","description":"","head":[["script",{"type":"text/javascript","src":"/assets/js/51la.js"}],["script",{"type":"text/javascript","src":"https://unpkg.com/mini-sandbox@0.3.18"}],["script",{"type":"text/javascript","src":"https://unpkg.com/mini-sandbox@0.3.18/dist/vue-loader.js"}],["script",{"type":"text/javascript","src":"https://unpkg.com/mini-sandbox@0.3.18/dist/react-loader.js"}],["script",{"data-host-id":"1","data-auto-reg":"true","data-login-token":"","data-theme-color":"#1fe1f9","data-close-width":"48","data-close-height":"48","data-open-width":"380","data-open-height":"680","data-welcome":"你好,很高兴认识你,欢迎👏留您的想法或建议","src":"https://vocechat.songxingguo.com/widget.js","async":true}],["link",{"rel":"alternate","type":"application/rss+xml","href":"https://brain.songxingguo.com/rss.xml","title":"宋玉的世界 RSS Feed"}]],"locales":{"/":{"lang":"zh-CN","title":"宋玉的世界","description":"热爱可抵漫长岁月!"}}}');var O0=Symbol(""),rd=Symbol(""),xe=()=>{const e=ie(rd);if(!e)throw new Error("pageData() is called without provider.");return e},od=Symbol(""),Le=()=>{const e=ie(od);if(!e)throw new Error("usePageFrontmatter() is called without provider.");return e},ad=Symbol(""),P0=()=>{const e=ie(ad);if(!e)throw new Error("usePageHead() is called without provider.");return e},I0=Symbol(""),sd=Symbol(""),sa=()=>{const e=ie(sd);if(!e)throw new Error("usePageLang() is called without provider.");return e},id=Symbol(""),R0=()=>{const e=ie(id);if(!e)throw new Error("usePageLayout() is called without provider.");return e},ai=Symbol(""),Vt=()=>{const e=ie(ai);if(!e)throw new Error("useRouteLocale() is called without provider.");return e},D0=me(mm),Hr=me(vm),ld=e=>{const t=Em(e);if(Hr.value[t])return t;const n=encodeURI(t);return Hr.value[n]?n:D0.value[t]||t},pr=e=>{const t=ld(e),n=Hr.value[t]??{...Hr.value["/404.html"],notFound:!0};return{path:t,notFound:!1,...n}},M0=()=>Hr,Gn=me(A0),cd=()=>Gn,ud=Symbol(""),hr=()=>{const e=ie(ud);if(!e)throw new Error("useSiteLocaleData() is called without provider.");return e},N0=Symbol(""),ia=D({name:"ClientOnly",setup(e,t){const n=I(!1);return G(()=>{n.value=!0}),()=>{var r,o;return n.value?(o=(r=t.slots).default)==null?void 0:o.call(r):null}}}),dd=D({name:"Content",props:{path:{type:String,required:!1,default:""}},setup(e){const t=xe(),n=w(()=>{const r=pr(e.path||t.value.path);return bu(()=>r.loader().then(({comp:o})=>o))});return()=>l(n.value)}}),it=(e={})=>e,Ie=e=>Kt(e)?e:`/${Wu(e)}`,$0=e=>{if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget){const t=e.currentTarget.getAttribute("target");if(t!=null&&t.match(/\b_blank\b/i))return}return e.preventDefault(),!0}},Ve=({active:e=!1,activeClass:t="route-link-active",to:n,...r},{slots:o})=>{var i;const a=wn(),s=Ie(ld(n));return l("a",{...r,class:["route-link",{[t]:e}],href:s,onClick:(c={})=>{$0(c)?a.push(n).catch():Promise.resolve()}},(i=o.default)==null?void 0:i.call(o))};Ve.displayName="RouteLink";Ve.props={active:Boolean,activeClass:String,to:String};var V0="Layout",j0="NotFound",en=Wr({resolveLayouts:e=>e.reduce((t,n)=>({...t,...n.layouts}),{}),resolvePageFrontmatter:e=>e.frontmatter,resolvePageHead:(e,t,n)=>{const r=Me(t.description)?t.description:n.description,o=[...Array.isArray(t.head)?t.head:[],...n.head,["title",{},e],["meta",{name:"description",content:r}]];return _m(o)},resolvePageHeadTitle:(e,t)=>[e.title,t.title].filter(n=>!!n).join(" | "),resolvePageLang:(e,t)=>e.lang||t.lang||"en-US",resolvePageLayout:(e,t)=>{let n;if(e.path){const r=e.frontmatter.layout;Me(r)?n=r:n=V0}else n=j0;return t[n]},resolveRouteLocale:(e,t)=>Sm(e,t),resolveSiteLocaleData:(e,t)=>{var n;return{...e,...e.locales[t],head:[...((n=e.locales[t])==null?void 0:n.head)??[],...e.head??[]]}}});const B0={},Jt=e=>{const t=Vt();return w(()=>e[t.value]??{})};var et=Uint8Array,Un=Uint16Array,H0=Int32Array,fd=new et([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),pd=new et([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),F0=new et([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),hd=function(e,t){for(var n=new Un(31),r=0;r<31;++r)n[r]=t+=1< >1|(Pe&21845)<<1;tn=(tn&52428)>>2|(tn&13107)<<2,tn=(tn&61680)>>4|(tn&3855)<<4,ms[Pe]=((tn&65280)>>8|(tn&255)<<8)>>1}var Pr=function(e,t,n){for(var r=e.length,o=0,a=new Un(t);o >c]=u}else for(i=new Un(r),o=0;o >15-e[o]);return i},Yr=new et(288);for(var Pe=0;Pe<144;++Pe)Yr[Pe]=8;for(var Pe=144;Pe<256;++Pe)Yr[Pe]=9;for(var Pe=256;Pe<280;++Pe)Yr[Pe]=7;for(var Pe=280;Pe<288;++Pe)Yr[Pe]=8;var gd=new et(32);for(var Pe=0;Pe<32;++Pe)gd[Pe]=5;var W0=Pr(Yr,9,1),q0=Pr(gd,5,1),$a=function(e){for(var t=e[0],n=1;n t&&(t=e[n]);return t},St=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},Va=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},K0=function(e){return(e+7)/8|0},si=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new et(e.subarray(t,n))},J0=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],vt=function(e,t,n){var r=new Error(t||J0[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,vt),!n)throw r;return r},Z0=function(e,t,n,r){var o=e.length,a=r?r.length:0;if(!o||t.f&&!t.l)return n||new et(0);var s=!n,i=s||t.i!=2,c=t.i;s&&(n=new et(o*3));var u=function(ge){var Ce=n.length;if(ge>Ce){var v=new et(Math.max(Ce*2,ge));v.set(n),n=v}},d=t.f||0,f=t.p||0,p=t.b||0,h=t.l,m=t.d,b=t.m,E=t.n,y=o*8;do{if(!h){d=St(e,f,1);var T=St(e,f+1,3);if(f+=3,T)if(T==1)h=W0,m=q0,b=9,E=5;else if(T==2){var L=St(e,f,31)+257,J=St(e,f+10,15)+4,B=L+St(e,f+5,31)+1;f+=14;for(var M=new et(B),H=new et(19),X=0;X >4;if(_<16)M[X++]=_;else{var K=0,re=0;for(_==16?(re=3+St(e,f,3),f+=2,K=M[X-1]):_==17?(re=3+St(e,f,7),f+=3):_==18&&(re=11+St(e,f,127),f+=7);re--;)M[X++]=K}}var Z=M.subarray(0,L),je=M.subarray(L);b=$a(Z),E=$a(je),h=Pr(Z,b,1),m=Pr(je,E,1)}else vt(1);else{var _=K0(f)+4,C=e[_-4]|e[_-3]<<8,V=_+C;if(V>o){c&&vt(0);break}i&&u(p+C),n.set(e.subarray(_,V),p),t.b=p+=C,t.p=f=V*8,t.f=d;continue}if(f>y){c&&vt(0);break}}i&&u(p+131072);for(var Ot=(1<>4;if(f+=K&15,f>y){c&&vt(0);break}if(K||vt(2),lt<256)n[p++]=lt;else if(lt==256){Ue=f,h=null;break}else{var Bt=lt-254;if(lt>264){var X=lt-257,Pt=fd[X];Bt=St(e,f,(1< >4;Be||vt(3),f+=Be&15;var je=U0[k];if(k>3){var Pt=pd[k];je+=Va(e,f)&(1< y){c&&vt(0);break}i&&u(p+131072);var W=p+Bt;if(p >4>7||(e[0]<<8|e[1])%31)&&vt(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&vt(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Q0(e,t){return Z0(e.subarray(X0(e,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}var Zl=typeof TextEncoder<"u"&&new TextEncoder,vs=typeof TextDecoder<"u"&&new TextDecoder,ev=0;try{vs.decode(Y0,{stream:!0}),ev=1}catch{}var tv=function(e){for(var t="",n=0;;){var r=e[n++],o=(r>127)+(r>223)+(r>239);if(n+o>e.length)return{s:t,r:si(e,n-1)};o?o==3?(r=((r&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|r>>10,56320|r&1023)):o&1?t+=String.fromCharCode((r&31)<<6|e[n++]&63):t+=String.fromCharCode((r&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(r)}};function nv(e,t){if(t){for(var n=new et(e.length),r=0;r >1)),s=0,i=function(d){a[s++]=d},r=0;r a.length){var c=new et(s+8+(o-r<<1));c.set(a),a=c}var u=e.charCodeAt(r);u<128||t?i(u):u<2048?(i(192|u>>6),i(128|u&63)):u>55295&&u<57344?(u=65536+(u&1047552)|e.charCodeAt(++r)&1023,i(240|u>>18),i(128|u>>12&63),i(128|u>>6&63),i(128|u&63)):(i(224|u>>12),i(128|u>>6&63),i(128|u&63))}return si(a,0,s)}function rv(e,t){if(t){for(var n="",r=0;r {const t=atob(e);return rv(Q0(nv(t,!0)))},ov=(e,t)=>{var r;const n=(r=(t==null?void 0:t._instance)||_n())==null?void 0:r.appContext.components;return n?e in n||tt(e)in n||dr(tt(e))in n:!1},ii=e=>typeof e<"u",ja=e=>typeof e=="number",ir=Array.isArray,Mn=(e,t)=>Me(e)&&e.startsWith(t),av=(e,t)=>Me(e)&&e.endsWith(t),Zt=Object.entries,sv=Object.fromEntries,xt=Object.keys,gs=(e,...t)=>{if(t.length===0)return e;const n=t.shift()||null;return n&&Zt(n).forEach(([r,o])=>{r==="__proto__"||r==="constructor"||(pn(e[r])&&pn(o)?gs(e[r],o):ir(o)?e[r]=[...o]:pn(o)?e[r]={...o}:e[r]=n[r])}),gs(e,...t)},li=e=>{if(e){if(typeof e=="number")return new Date(e);const t=Date.parse(e.toString());if(!Number.isNaN(t))return new Date(t)}return null},la=e=>Mn(e,"/"),ce=({name:e="",color:t="currentColor"},{slots:n})=>{var r;return l("svg",{xmlns:"http://www.w3.org/2000/svg",class:["icon",`${e}-icon`],viewBox:"0 0 1024 1024",fill:t,"aria-label":`${e} icon`},(r=n.default)==null?void 0:r.call(n))};ce.displayName="IconBase";const At=({size:e=48,stroke:t=4,wrapper:n=!0,height:r=2*e})=>{const o=l("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,preserveAspectRatio:"xMidYMid",viewBox:"25 25 50 50"},[l("animateTransform",{attributeName:"transform",type:"rotate",dur:"2s",keyTimes:"0;1",repeatCount:"indefinite",values:"0;360"}),l("circle",{cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":t,"stroke-linecap":"round"},[l("animate",{attributeName:"stroke-dasharray",dur:"1.5s",keyTimes:"0;0.5;1",repeatCount:"indefinite",values:"1,200;90,200;1,200"}),l("animate",{attributeName:"stroke-dashoffset",dur:"1.5s",keyTimes:"0;0.5;1",repeatCount:"indefinite",values:"0;-35px;-125px"})])]);return n?l("div",{class:"loading-icon-wrapper",style:`display:flex;align-items:center;justify-content:center;height:${r}px`},o):o};At.displayName="LoadingIcon";const bd=(e,{slots:t})=>{var n;return(n=t.default)==null?void 0:n.call(t)},yd=()=>l(ce,{name:"github"},()=>l("path",{d:"M511.957 21.333C241.024 21.333 21.333 240.981 21.333 512c0 216.832 140.544 400.725 335.574 465.664 24.49 4.395 32.256-10.07 32.256-23.083 0-11.69.256-44.245 0-85.205-136.448 29.61-164.736-64.64-164.736-64.64-22.315-56.704-54.4-71.765-54.4-71.765-44.587-30.464 3.285-29.824 3.285-29.824 49.195 3.413 75.179 50.517 75.179 50.517 43.776 75.008 114.816 53.333 142.762 40.79 4.523-31.66 17.152-53.377 31.19-65.537-108.971-12.458-223.488-54.485-223.488-242.602 0-53.547 19.114-97.323 50.517-131.67-5.035-12.33-21.93-62.293 4.779-129.834 0 0 41.258-13.184 134.912 50.346a469.803 469.803 0 0 1 122.88-16.554c41.642.213 83.626 5.632 122.88 16.554 93.653-63.488 134.784-50.346 134.784-50.346 26.752 67.541 9.898 117.504 4.864 129.834 31.402 34.347 50.474 78.123 50.474 131.67 0 188.586-114.73 230.016-224.042 242.09 17.578 15.232 33.578 44.672 33.578 90.454v135.85c0 13.142 7.936 27.606 32.854 22.87C862.25 912.597 1002.667 728.747 1002.667 512c0-271.019-219.648-490.667-490.71-490.667z"}));yd.displayName="GitHubIcon";const _d=()=>l(ce,{name:"gitlab"},()=>l("path",{d:"M229.333 78.688C223.52 62 199.895 62 193.895 78.688L87.958 406.438h247.5c-.188 0-106.125-327.75-106.125-327.75zM33.77 571.438c-4.875 15 .563 31.687 13.313 41.25l464.812 345L87.77 406.438zm301.5-165 176.813 551.25 176.812-551.25zm655.125 165-54-165-424.312 551.25 464.812-345c12.938-9.563 18.188-26.25 13.5-41.25zM830.27 78.688c-5.812-16.688-29.437-16.688-35.437 0l-106.125 327.75h247.5z"}));_d.displayName="GitLabIcon";const wd=()=>l(ce,{name:"gitee"},()=>l("path",{d:"M512 992C246.92 992 32 777.08 32 512S246.92 32 512 32s480 214.92 480 480-214.92 480-480 480zm242.97-533.34H482.39a23.7 23.7 0 0 0-23.7 23.7l-.03 59.28c0 13.08 10.59 23.7 23.7 23.7h165.96a23.7 23.7 0 0 1 23.7 23.7v11.85a71.1 71.1 0 0 1-71.1 71.1H375.71a23.7 23.7 0 0 1-23.7-23.7V423.11a71.1 71.1 0 0 1 71.1-71.1h331.8a23.7 23.7 0 0 0 23.7-23.7l.06-59.25a23.73 23.73 0 0 0-23.7-23.73H423.11a177.78 177.78 0 0 0-177.78 177.75v331.83c0 13.08 10.62 23.7 23.7 23.7h349.62a159.99 159.99 0 0 0 159.99-159.99V482.33a23.7 23.7 0 0 0-23.7-23.7z"}));wd.displayName="GiteeIcon";const xd=()=>l(ce,{name:"bitbucket"},()=>l("path",{d:"M575.256 490.862c6.29 47.981-52.005 85.723-92.563 61.147-45.714-20.004-45.714-92.562-1.133-113.152 38.29-23.442 93.696 7.424 93.696 52.005zm63.451-11.996c-10.276-81.152-102.29-134.839-177.152-101.156-47.433 21.138-79.433 71.424-77.129 124.562 2.853 69.705 69.157 126.866 138.862 120.576S647.3 548.571 638.708 478.83zm136.558-309.723c-25.161-33.134-67.986-38.839-105.728-45.13-106.862-17.151-216.576-17.7-323.438 1.134-35.438 5.706-75.447 11.996-97.719 43.996 36.572 34.304 88.576 39.424 135.424 45.129 84.553 10.862 171.447 11.447 256 .585 47.433-5.705 99.987-10.276 135.424-45.714zm32.585 591.433c-16.018 55.99-6.839 131.438-66.304 163.986-102.29 56.576-226.304 62.867-338.87 42.862-59.43-10.862-129.135-29.696-161.72-85.723-14.3-54.858-23.442-110.848-32.585-166.84l3.438-9.142 10.276-5.157c170.277 112.567 408.576 112.567 579.438 0 26.844 8.01 6.84 40.558 6.29 60.014zm103.424-549.157c-19.42 125.148-41.728 249.71-63.415 374.272-6.29 36.572-41.728 57.162-71.424 72.558-106.862 53.724-231.424 62.866-348.562 50.286-79.433-8.558-160.585-29.696-225.134-79.433-30.28-23.443-30.28-63.415-35.986-97.134-20.005-117.138-42.862-234.277-57.161-352.585 6.839-51.42 64.585-73.728 107.447-89.71 57.16-21.138 118.272-30.866 178.87-36.571 129.134-12.58 261.157-8.01 386.304 28.562 44.581 13.13 92.563 31.415 122.844 69.705 13.714 17.7 9.143 40.01 6.29 60.014z"}));xd.displayName="BitbucketIcon";const Ed=()=>l(ce,{name:"source"},()=>l("path",{d:"M601.92 475.2c0 76.428-8.91 83.754-28.512 99.594-14.652 11.88-43.956 14.058-78.012 16.434-18.81 1.386-40.392 2.97-62.172 6.534-18.612 2.97-36.432 9.306-53.064 17.424V299.772c37.818-21.978 63.36-62.766 63.36-109.692 0-69.894-56.826-126.72-126.72-126.72S190.08 120.186 190.08 190.08c0 46.926 25.542 87.714 63.36 109.692v414.216c-37.818 21.978-63.36 62.766-63.36 109.692 0 69.894 56.826 126.72 126.72 126.72s126.72-56.826 126.72-126.72c0-31.086-11.286-59.598-29.7-81.576 13.266-9.504 27.522-17.226 39.996-19.206 16.038-2.574 32.868-3.762 50.688-5.148 48.312-3.366 103.158-7.326 148.896-44.55 61.182-49.698 74.25-103.158 75.24-187.902V475.2h-126.72zM316.8 126.72c34.848 0 63.36 28.512 63.36 63.36s-28.512 63.36-63.36 63.36-63.36-28.512-63.36-63.36 28.512-63.36 63.36-63.36zm0 760.32c-34.848 0-63.36-28.512-63.36-63.36s28.512-63.36 63.36-63.36 63.36 28.512 63.36 63.36-28.512 63.36-63.36 63.36zM823.68 158.4h-95.04V63.36h-126.72v95.04h-95.04v126.72h95.04v95.04h126.72v-95.04h95.04z"}));Ed.displayName="SourceIcon";const Ze=(e,t)=>{var r;const n=(r=(t==null?void 0:t._instance)||_n())==null?void 0:r.appContext.components;return n?e in n||tt(e)in n||dr(tt(e))in n:!1};function iv(){const e=I(!1);return _n()&&G(()=>{e.value=!0}),e}function lv(e){return iv(),w(()=>!!e())}const cv=()=>lv(()=>typeof window<"u"&&window.navigator&&"userAgent"in window.navigator),uv=()=>{const e=cv();return w(()=>e.value&&/\b(?:Android|iPhone)/i.test(navigator.userAgent))},dv=e=>/\b(?:Android|iPhone)/i.test(e),fv=e=>/version\/([\w.]+) .*(mobile ?safari|safari)/i.test(e),Sd=e=>[/\((ipad);[-\w),; ]+apple/i,/applecoremedia\/[\w.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i].some(t=>t.test(e)),pv=e=>[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i].some(t=>t.test(e)),hv=e=>[/(mac os x) ?([\w. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i].some(t=>t.test(e)),ca=(e,t)=>{let n=1;for(let r=0;r >6;return n+=n<<3,n^=n>>11,n%t};let mv=class{constructor(){this.messageElements={};const t="message-container",n=document.getElementById(t);n?this.containerElement=n:(this.containerElement=document.createElement("div"),this.containerElement.id=t,document.body.appendChild(this.containerElement))}pop(t,n=2e3){const r=document.createElement("div"),o=Date.now();return r.className="message move-in",r.innerHTML=t,this.containerElement.appendChild(r),this.messageElements[o]=r,n>0&&setTimeout(()=>{this.close(o)},n),o}close(t){if(t){const n=this.messageElements[t];n.classList.remove("move-in"),n.classList.add("move-out"),n.addEventListener("animationend",()=>{n.remove(),delete this.messageElements[t]})}else xt(this.messageElements).forEach(n=>this.close(Number(n)))}destroy(){document.body.removeChild(this.containerElement)}};const Td=/#.*$/u,vv=e=>{const t=Td.exec(e);return t?t[0]:""},Yl=e=>decodeURI(e).replace(Td,"").replace(/\/index\.html$/iu,"/").replace(/\.html$/iu,"").replace(/(README|index)?\.md$/iu,""),Ld=(e,t)=>{if(!ii(t))return!1;const n=Yl(e.path),r=Yl(t),o=vv(t);return o?o===e.hash&&(!r||n===r):n===r},gv=e=>Kt(e)?e:`https://github.com/${e}`,Cd=e=>!Kt(e)||/github\.com/.test(e)?"GitHub":/bitbucket\.org/.test(e)?"Bitbucket":/gitlab\.com/.test(e)?"GitLab":/gitee\.com/.test(e)?"Gitee":null;var bv=e=>Object.prototype.toString.call(e)==="[object Object]",Fr=e=>typeof e=="string";const kd=Array.isArray,Xl=e=>bv(e)&&Fr(e.name),zr=(e,t=!1)=>e?kd(e)?e.map(n=>Fr(n)?{name:n}:Xl(n)?n:null).filter(n=>n!==null):Fr(e)?[{name:e}]:Xl(e)?[e]:(console.error(`Expect "author" to be \`AuthorInfo[] | AuthorInfo | string[] | string ${t?"":"| false"} | undefined\`, but got`,e),[]):[],Ad=(e,t)=>{if(e){if(kd(e)&&e.every(Fr))return e;if(Fr(e))return[e];console.error(`Expect ${t||"value"} to be \`string[] | string | undefined\`, but got`,e)}return[]},Od=e=>Ad(e,"category"),Pd=e=>Ad(e,"tag");function ci(e,t){let n,r,o;const a=I(!0),s=()=>{a.value=!0,o()};se(e,s,{flush:"sync"});const i=typeof t=="function"?t:t.get,c=typeof t=="function"?void 0:t.set,u=Ws((d,f)=>(r=d,o=f,{get(){return a.value&&(n=i(),a.value=!1),r(),n},set(p){c==null||c(p)}}));return Object.isExtensible(u)&&(u.trigger=s),u}function xn(e){return Fc()?(qp(e),!0):!1}function ot(e){return typeof e=="function"?e():bt(e)}const Xr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const yv=Object.prototype.toString,_v=e=>yv.call(e)==="[object Object]",Ut=()=>{},bs=wv();function wv(){var e,t;return Xr&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function ui(e,t){function n(...r){return new Promise((o,a)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(a)})}return n}const Id=e=>e();function xv(e,t={}){let n,r,o=Ut;const a=i=>{clearTimeout(i),o(),o=Ut};return i=>{const c=ot(e),u=ot(t.maxWait);return n&&a(n),c<=0||u!==void 0&&u<=0?(r&&(a(r),r=null),Promise.resolve(i())):new Promise((d,f)=>{o=t.rejectOnCancel?f:d,u&&!r&&(r=setTimeout(()=>{n&&a(n),r=null,d(i())},u)),n=setTimeout(()=>{r&&a(r),r=null,d(i())},c)})}}function Ev(e,t=!0,n=!0,r=!1){let o=0,a,s=!0,i=Ut,c;const u=()=>{a&&(clearTimeout(a),a=void 0,i(),i=Ut)};return f=>{const p=ot(e),h=Date.now()-o,m=()=>c=f();return u(),p<=0?(o=Date.now(),m()):(h>p&&(n||!s)?(o=Date.now(),m()):t&&(c=new Promise((b,E)=>{i=r?E:b,a=setTimeout(()=>{o=Date.now(),s=!0,b(m()),u()},Math.max(0,p-h))})),!n&&!a&&(a=setTimeout(()=>s=!0,p)),s=!1,c)}}function Sv(e=Id){const t=I(!0);function n(){t.value=!1}function r(){t.value=!0}const o=(...a)=>{t.value&&e(...a)};return{isActive:gn(t),pause:n,resume:r,eventFilter:o}}function Tv(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const r=t;t=void 0,r&&await r},n}function Lv(e){return e||_n()}function Cv(...e){if(e.length!==1)return fr(...e);const t=e[0];return typeof t=="function"?gn(Ws(()=>({get:t,set:Ut}))):I(t)}function di(e,t=200,n={}){return ui(xv(t,n),e)}function kv(e,t=200,n=!1,r=!0,o=!1){return ui(Ev(t,n,r,o),e)}function Av(e,t,n={}){const{eventFilter:r=Id,...o}=n;return se(e,ui(r,t),o)}function Ov(e,t,n={}){const{eventFilter:r,...o}=n,{eventFilter:a,pause:s,resume:i,isActive:c}=Sv(r);return{stop:Av(e,t,{...o,eventFilter:a}),pause:s,resume:i,isActive:c}}function ua(e,t=!0,n){Lv()?G(e,n):t?e():bn(e)}function Pv(e,t,n={}){const{immediate:r=!0}=n,o=I(!1);let a=null;function s(){a&&(clearTimeout(a),a=null)}function i(){o.value=!1,s()}function c(...u){s(),o.value=!0,a=setTimeout(()=>{o.value=!1,a=null,e(...u)},ot(t))}return r&&(o.value=!0,Xr&&c()),xn(i),{isPending:gn(o),start:c,stop:i}}function Uo(e=!1,t={}){const{truthyValue:n=!0,falsyValue:r=!1}=t,o=Ke(e),a=I(e);function s(i){if(arguments.length)return a.value=i,a.value;{const c=ot(n);return a.value=a.value===c?ot(r):c,a.value}}return o?s:[a,s]}function rt(e){var t;const n=ot(e);return(t=n==null?void 0:n.$el)!=null?t:n}const kt=Xr?window:void 0,Rd=Xr?window.document:void 0,Dd=Xr?window.navigator:void 0;function ke(...e){let t,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,t=kt):[t,n,r,o]=e,!t)return Ut;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const a=[],s=()=>{a.forEach(d=>d()),a.length=0},i=(d,f,p,h)=>(d.addEventListener(f,p,h),()=>d.removeEventListener(f,p,h)),c=se(()=>[rt(t),ot(o)],([d,f])=>{if(s(),!d)return;const p=_v(f)?{...f}:f;a.push(...n.flatMap(h=>r.map(m=>i(d,h,m,p))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return xn(u),u}let Ql=!1;function Iv(e,t,n={}){const{window:r=kt,ignore:o=[],capture:a=!0,detectIframe:s=!1}=n;if(!r)return Ut;bs&&!Ql&&(Ql=!0,Array.from(r.document.body.children).forEach(p=>p.addEventListener("click",Ut)),r.document.documentElement.addEventListener("click",Ut));let i=!0;const c=p=>o.some(h=>{if(typeof h=="string")return Array.from(r.document.querySelectorAll(h)).some(m=>m===p.target||p.composedPath().includes(m));{const m=rt(h);return m&&(p.target===m||p.composedPath().includes(m))}}),d=[ke(r,"click",p=>{const h=rt(e);if(!(!h||h===p.target||p.composedPath().includes(h))){if(p.detail===0&&(i=!c(p)),!i){i=!0;return}t(p)}},{passive:!0,capture:a}),ke(r,"pointerdown",p=>{const h=rt(e);i=!c(p)&&!!(h&&!p.composedPath().includes(h))},{passive:!0}),s&&ke(r,"blur",p=>{setTimeout(()=>{var h;const m=rt(e);((h=r.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(m!=null&&m.contains(r.document.activeElement))&&t(p)},0)})].filter(Boolean);return()=>d.forEach(p=>p())}function Rv(){const e=I(!1);return _n()&&G(()=>{e.value=!0}),e}function mr(e){const t=Rv();return w(()=>(t.value,!!e()))}function Md(e,t={}){const{window:n=kt}=t,r=mr(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const a=I(!1),s=u=>{a.value=u.matches},i=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",s):o.removeListener(s))},c=pu(()=>{r.value&&(i(),o=n.matchMedia(ot(e)),"addEventListener"in o?o.addEventListener("change",s):o.addListener(s),a.value=o.matches)});return xn(()=>{c(),i(),o=void 0}),a}function ec(e,t={}){const{controls:n=!1,navigator:r=Dd}=t,o=mr(()=>r&&"permissions"in r);let a;const s=typeof e=="string"?{name:e}:e,i=I(),c=()=>{a&&(i.value=a.state)},u=Tv(async()=>{if(o.value){if(!a)try{a=await r.permissions.query(s),ke(a,"change",c),c()}catch{i.value="prompt"}return a}});return u(),n?{state:i,isSupported:o,query:u}:i}function Dv(e={}){const{navigator:t=Dd,read:n=!1,source:r,copiedDuring:o=1500,legacy:a=!1}=e,s=mr(()=>t&&"clipboard"in t),i=ec("clipboard-read"),c=ec("clipboard-write"),u=w(()=>s.value||a),d=I(""),f=I(!1),p=Pv(()=>f.value=!1,o);function h(){s.value&&i.value!=="denied"?t.clipboard.readText().then(y=>{d.value=y}):d.value=E()}u.value&&n&&ke(["copy","cut"],h);async function m(y=ot(r)){u.value&&y!=null&&(s.value&&c.value!=="denied"?await t.clipboard.writeText(y):b(y),d.value=y,f.value=!0,p.start())}function b(y){const T=document.createElement("textarea");T.value=y??"",T.style.position="absolute",T.style.opacity="0",document.body.appendChild(T),T.select(),document.execCommand("copy"),T.remove()}function E(){var y,T,_;return(_=(T=(y=document==null?void 0:document.getSelection)==null?void 0:y.call(document))==null?void 0:T.toString())!=null?_:""}return{isSupported:u,text:d,copied:f,copy:m}}const wo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},xo="__vueuse_ssr_handlers__",Mv=Nv();function Nv(){return xo in wo||(wo[xo]=wo[xo]||{}),wo[xo]}function $v(e,t){return Mv[e]||t}function Vv(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const jv={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},tc="vueuse-storage";function da(e,t,n,r={}){var o;const{flush:a="pre",deep:s=!0,listenToStorageChanges:i=!0,writeDefaults:c=!0,mergeDefaults:u=!1,shallow:d,window:f=kt,eventFilter:p,onError:h=M=>{console.error(M)},initOnMounted:m}=r,b=(d?me:I)(typeof t=="function"?t():t);if(!n)try{n=$v("getDefaultStorage",()=>{var M;return(M=kt)==null?void 0:M.localStorage})()}catch(M){h(M)}if(!n)return b;const E=ot(t),y=Vv(E),T=(o=r.serializer)!=null?o:jv[y],{pause:_,resume:C}=Ov(b,()=>V(b.value),{flush:a,deep:s,eventFilter:p});return f&&i&&ua(()=>{ke(f,"storage",B),ke(f,tc,J),m&&B()}),m||B(),b;function V(M){try{if(M==null)n.removeItem(e);else{const H=T.write(M),X=n.getItem(e);X!==H&&(n.setItem(e,H),f&&f.dispatchEvent(new CustomEvent(tc,{detail:{key:e,oldValue:X,newValue:H,storageArea:n}})))}}catch(H){h(H)}}function L(M){const H=M?M.newValue:n.getItem(e);if(H==null)return c&&E!=null&&n.setItem(e,T.write(E)),E;if(!M&&u){const X=T.read(H);return typeof u=="function"?u(X,E):y==="object"&&!Array.isArray(X)?{...E,...X}:X}else return typeof H!="string"?H:T.read(H)}function J(M){B(M.detail)}function B(M){if(!(M&&M.storageArea!==n)){if(M&&M.key==null){b.value=E;return}if(!(M&&M.key!==e)){_();try{(M==null?void 0:M.newValue)!==T.write(b.value)&&(b.value=L(M))}catch(H){h(H)}finally{M?bn(C):C()}}}}}function Bv(e){return Md("(prefers-color-scheme: dark)",e)}function Nd(e,t,n={}){const{window:r=kt,...o}=n;let a;const s=mr(()=>r&&"MutationObserver"in r),i=()=>{a&&(a.disconnect(),a=void 0)},c=se(()=>rt(e),f=>{i(),s.value&&r&&f&&(a=new MutationObserver(t),a.observe(f,o))},{immediate:!0}),u=()=>a==null?void 0:a.takeRecords(),d=()=>{i(),c()};return xn(d),{isSupported:s,stop:d,takeRecords:u}}function Hv(e,t,n={}){const{window:r=kt,...o}=n;let a;const s=mr(()=>r&&"ResizeObserver"in r),i=()=>{a&&(a.disconnect(),a=void 0)},c=w(()=>Array.isArray(e)?e.map(f=>rt(f)):[rt(e)]),u=se(c,f=>{if(i(),s.value&&r){a=new ResizeObserver(t);for(const p of f)p&&a.observe(p,o)}},{immediate:!0,flush:"post",deep:!0}),d=()=>{i(),u()};return xn(d),{isSupported:s,stop:d}}function Fv(e,t={width:0,height:0},n={}){const{window:r=kt,box:o="content-box"}=n,a=w(()=>{var f,p;return(p=(f=rt(e))==null?void 0:f.namespaceURI)==null?void 0:p.includes("svg")}),s=I(t.width),i=I(t.height),{stop:c}=Hv(e,([f])=>{const p=o==="border-box"?f.borderBoxSize:o==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(r&&a.value){const h=rt(e);if(h){const m=r.getComputedStyle(h);s.value=Number.parseFloat(m.width),i.value=Number.parseFloat(m.height)}}else if(p){const h=Array.isArray(p)?p:[p];s.value=h.reduce((m,{inlineSize:b})=>m+b,0),i.value=h.reduce((m,{blockSize:b})=>m+b,0)}else s.value=f.contentRect.width,i.value=f.contentRect.height},n);ua(()=>{const f=rt(e);f&&(s.value="offsetWidth"in f?f.offsetWidth:t.width,i.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=se(()=>rt(e),f=>{s.value=f?t.width:0,i.value=f?t.height:0});function d(){c(),u()}return{width:s,height:i,stop:d}}const nc=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function fi(e,t={}){const{document:n=Rd,autoExit:r=!1}=t,o=w(()=>{var y;return(y=rt(e))!=null?y:n==null?void 0:n.querySelector("html")}),a=I(!1),s=w(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(y=>n&&y in n||o.value&&y in o.value)),i=w(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(y=>n&&y in n||o.value&&y in o.value)),c=w(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(y=>n&&y in n||o.value&&y in o.value)),u=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(y=>n&&y in n),d=mr(()=>o.value&&n&&s.value!==void 0&&i.value!==void 0&&c.value!==void 0),f=()=>u?(n==null?void 0:n[u])===o.value:!1,p=()=>{if(c.value){if(n&&n[c.value]!=null)return n[c.value];{const y=o.value;if((y==null?void 0:y[c.value])!=null)return!!y[c.value]}}return!1};async function h(){if(!(!d.value||!a.value)){if(i.value)if((n==null?void 0:n[i.value])!=null)await n[i.value]();else{const y=o.value;(y==null?void 0:y[i.value])!=null&&await y[i.value]()}a.value=!1}}async function m(){if(!d.value||a.value)return;p()&&await h();const y=o.value;s.value&&(y==null?void 0:y[s.value])!=null&&(await y[s.value](),a.value=!0)}async function b(){await(a.value?h():m())}const E=()=>{const y=p();(!y||y&&f())&&(a.value=y)};return ke(n,nc,E,!1),ke(()=>rt(o),nc,E,!1),r&&xn(h),{isSupported:d,isFullscreen:a,enter:m,exit:h,toggle:b}}function Ba(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function q8(e,t,n={}){const{window:r=kt}=n;return da(e,t,r==null?void 0:r.localStorage,n)}function $d(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth 1?!0:(t.preventDefault&&t.preventDefault(),!1)}const Eo=new WeakMap;function pi(e,t=!1){const n=I(t);let r=null,o;se(Cv(e),i=>{const c=Ba(ot(i));if(c){const u=c;Eo.get(u)||Eo.set(u,o),n.value&&(u.style.overflow="hidden")}},{immediate:!0});const a=()=>{const i=Ba(ot(e));!i||n.value||(bs&&(r=ke(i,"touchmove",c=>{zv(c)},{passive:!1})),i.style.overflow="hidden",n.value=!0)},s=()=>{var i;const c=Ba(ot(e));!c||!n.value||(bs&&(r==null||r()),c.style.overflow=(i=Eo.get(c))!=null?i:"",Eo.delete(c),n.value=!1)};return xn(s),w({get(){return n.value},set(i){i?a():s()}})}let Gv=0;function Uv(e,t={}){const n=I(!1),{document:r=Rd,immediate:o=!0,manual:a=!1,id:s=`vueuse_styletag_${++Gv}`}=t,i=I(e);let c=()=>{};const u=()=>{if(!r)return;const f=r.getElementById(s)||r.createElement("style");f.isConnected||(f.id=s,t.media&&(f.media=t.media),r.head.appendChild(f)),!n.value&&(c=se(i,p=>{f.textContent=p},{immediate:!0}),n.value=!0)},d=()=>{!r||!n.value||(c(),r.head.removeChild(r.getElementById(s)),n.value=!1)};return o&&!a&&ua(u),a||xn(d),{id:s,css:i,unload:d,load:u,isLoaded:gn(n)}}function Wv(e={}){const{window:t=kt,behavior:n="auto"}=e;if(!t)return{x:I(0),y:I(0)};const r=I(t.scrollX),o=I(t.scrollY),a=w({get(){return r.value},set(i){scrollTo({left:i,behavior:n})}}),s=w({get(){return o.value},set(i){scrollTo({top:i,behavior:n})}});return ke(t,"scroll",()=>{r.value=t.scrollX,o.value=t.scrollY},{capture:!1,passive:!0}),{x:a,y:s}}function qv(e={}){const{window:t=kt,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:a=!0}=e,s=I(n),i=I(r),c=()=>{t&&(a?(s.value=t.innerWidth,i.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};if(c(),ua(c),ke("resize",c,{passive:!0}),o){const u=Md("(orientation: portrait)");se(u,()=>c())}return{width:s,height:i}}var Kv=D({name:"FontIcon",props:{icon:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""}},setup(e){const t=w(()=>{const r=["font-icon icon"],o=`iconfont icon-${e.icon}`;return r.push(o),r}),n=w(()=>{const r={};return e.color&&(r.color=e.color),e.size&&(r["font-size"]=Number.isNaN(Number(e.size))?e.size:`${e.size}px`),xt(r).length?r:null});return()=>e.icon?l("span",{key:e.icon,class:t.value,style:n.value}):null}});const un=e=>Kt(e)?e:Ie(e);var Jv=D({name:"AudioPlayer",props:{options:{type:Object,default:()=>({})},src:{type:String,required:!0},title:{type:String,default:""},type:{type:String,default:""},poster:{type:String,default:""},width:{type:[String,Number],default:"100%"},loop:Boolean},setup(e){let t=null;const n=me();return G(async()=>{const{default:r}=await x(()=>import("./plyr.min-CQtZMqEo.js"),__vite__mapDeps([]));t=new r(n.value,{hideYouTubeDOMError:!0,...e.options})}),Js(()=>{try{t==null||t.destroy()}catch{}}),()=>l("div",{class:"vp-audio-player",style:{width:e.width}},[l("a",{class:"sr-only",href:un(e.src),innerHTML:e.title||"An audio"}),e.poster?l("img",{class:"vp-audio-player-poster",src:un(e.poster),loading:"lazy","no-view":""}):null,l("div",{class:"vp-audio-player-info"},[e.title?l("div",{class:"vp-audio-player-title",innerHTML:e.title}):null,l("audio",{ref:n,crossorigin:"anonymous",preload:"metadata",controls:"",...e.loop?{loop:""}:{}},l("source",{src:un(e.src),type:e.type}))])])}});const Vd=({type:e="info",text:t="",vertical:n,color:r},{slots:o})=>{var a;return l("span",{class:["vp-badge",e,{diy:r}],style:{verticalAlign:n??!1,backgroundColor:r??!1}},((a=o.default)==null?void 0:a.call(o))||t)};Vd.displayName="Badge";const jd="accelerometer; autoplay; clipboard-write; encrypted-media; fullscreen; gyroscope; picture-in-picture",rc=e=>Me(e)?e:`${e}px`,Qr=(e,t=0)=>{const n=me(),r=w(()=>rc(bt(e.width)||"100%")),o=I("auto"),a=c=>{if(Me(c)){const[u,d]=c.split(":"),f=Number(u)/Number(d);if(!Number.isNaN(f))return f}return typeof c=="number"?c:16/9},s=c=>{const u=bt(e.height),d=a(bt(e.ratio));return u?rc(u):`${Number(c)/d+bt(t)}px`},i=()=>{n.value&&(o.value=s(n.value.clientWidth))};return G(()=>{i(),Ke(t)&&se(t,i),ke("orientationchange",i),ke("resize",i)}),{el:n,width:r,height:o,resize:i}},oc="https://player.bilibili.com/player.html";var Zv=D({name:"BiliBili",props:{bvid:{type:String,default:""},aid:{type:String,default:""},cid:{type:String,default:""},title:{type:String,default:"A BiliBili video"},page:{type:[String,Number],default:1},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:void 0},ratio:{type:[String,Number],default:16/9},time:{type:[String,Number],default:0},autoplay:Boolean},setup(e){const{el:t,width:n,height:r,resize:o}=Qr(e),a=I(!1),s=w(()=>{const{aid:i,bvid:c,cid:u,autoplay:d,time:f,page:p}=e;return i&&u?`${oc}?aid=${i}&cid=${u}&t=${f}&autoplay=${d?1:0}&p=${p}`:c?`${oc}?bvid=${c}&t=${f}&autoplay=${d?1:0}`:null});return()=>s.value?[l("div",{class:"bilibili-desc"},l("a",{class:"sr-only",href:s.value},e.title)),l("iframe",{ref:t,src:s.value,title:e.title,class:"bilibili-iframe",allow:jd,style:{width:n.value,height:a.value?r.value:0},onLoad:()=>{a.value=!0,o()}}),a.value?null:l(At)]:[]}});const ac="https://codepen.io",Yv=e=>{let t="";for(const n in e)n!=="prefill"&&n!=="open"&&(t!==""&&(t+="&"),t+=n+"="+encodeURIComponent(e[n]));return t},Bd=e=>{const t=e.preview==="true"?"embed/preview":"embed";if("prefill"in e)return[ac,t,"prefill"].join("/");let n=e["slug-hash"];if(!n)throw new Error("slug-hash is required");return e.token&&(n+="/"+e.token),[ac,e.user||"anon",t,n+"?"+Yv(e)].join("/").replace(/\/\//g,"//")},ys=(e,t)=>{const n=document.createElement(e);for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.setAttribute(r,t[r].toString());return n},Xv=e=>{const t=ys("form",{class:"code-pen-embed-form",style:"display: none;",method:"post",action:Bd(e),target:e.name||""});for(const n in e)n!=="prefill"&&t.append(ys("input",{type:"hidden",name:n,value:String(e[n])}));return t},Qv=e=>{const{height:t=300,class:n="",name:r="CodePen Embed"}=e,o={class:`cp_embed_iframe ${n}`,src:Bd(e),allowfullscreen:"",allowpaymentrequest:"",allowTransparency:"",frameborder:0,width:"100%",height:t,name:r,scrolling:"no",style:"width: 100%; overflow: hidden; display: block;",title:e["pen-title"]||r};return"prefill"in e||(o.loading="lazy"),e["slug-hash"]&&(o.id=`code-pen-embed-${e["slug-hash"].replace("/","_")}`),ys("iframe",o)},e2=(e,t)=>{if(e.parentNode){const n=document.createElement("div");return n.className="code-pen-embed-wrapper",n.append(t),e.parentNode.replaceChild(n,e),n}return e.append(t),e};let t2=1;const sc=(e,t)=>{const n=typeof t=="string"?document.querySelector(t):t instanceof HTMLElement?t:null;e.user||(e.user="anon"),e.name||(e.name=n?`code-pen-api-${t2++}`:"_blank");const r=document.createDocumentFragment();let o=null;"prefill"in e&&(e.data=JSON.stringify(e.prefill||"{}"),o=Xv(e),r.append(o)),n?(r.append(Qv(e)),e2(n,r)):document.body.appendChild(r),o&&o.submit()};var n2=D({name:"CodePen",props:{link:{type:String,default:""},user:{type:String,default:""},slugHash:{type:String,default:""},title:{type:String,default:""},height:{type:[String,Number],default:380},theme:{type:String,default:"default"},defaultTab:{type:Array,default:()=>["result"]},status:{type:String,default:"preview"}},setup(e){const t=()=>{const a=/(?:^(?:https?:)?\/\/codepen.io\/|^\/|^)(.*?)\/(?:pen|embed)\/(.*?)\/?$/.exec(e.link);return{user:a==null?void 0:a[1],slugHash:a==null?void 0:a[2]}},n=w(()=>t().user||e.user),r=w(()=>t().slugHash||e.slugHash),o=w(()=>({user:n.value,"slug-hash":r.value,"theme-id":e.theme,"default-tab":e.defaultTab.join(","),"pen-title":e.title,height:e.height,preview:e.status==="preview"?"true":""}));return G(()=>{e.status!=="clicktorun"&&sc(o.value,`.codepen-${r.value}`)}),()=>l("div",{class:["codepen-wrapper",`codepen-${r.value}`]},[e.status==="clicktorun"?l("button",{type:"button",class:"codepen-button",onClick:()=>{sc(o.value,`.codepen-${r.value}`)}},"Run Code"):null,l("span",["See the Pen ",l("a",{href:e.link},[e.title])," by ",l("a",{href:`https://codepen.io/${n.value}`},[n.value])," on ",l("a",{href:"https://codepen.io"},["CodePen"]),"."])])}}),r2={"/":{hint:" 此浏览器不支持嵌入式 PDF。请下载 PDF 查看:下载 PDF
"}};const Ha=e=>{console.error(`[PDF]: ${e}`)},o2=e=>{for(;e.firstChild;)e.removeChild(e.firstChild)},a2=e=>e==="string"?document.querySelector(e):e instanceof HTMLElement?e:document.body,s2=e=>{let t="";return e&&(t+=Zt(e).map(([n,r])=>n==="noToolbar"?`toolbar=${r?0:1}`:`${encodeURIComponent(n)}=${encodeURIComponent(r)}`).join("&"),t&&(t=`#${t.slice(0,t.length-1)}`)),t},i2=(e,t,n,r,o)=>{o2(t);const a=`${e==="pdfjs"?`${ti(Ie(null))}web/viewer.html?file=${encodeURIComponent(n)}`:n}${s2(r)}`,s=e==="pdfjs"||e==="iframe"?"iframe":"embed",i=document.createElement(s);return i.className="pdf-viewer",i.type="application/pdf",i.title=o,i.src=a,i instanceof HTMLIFrameElement&&(i.allow="fullscreen"),t.classList.add("pdf-viewer-container"),t.appendChild(i),t.getElementsByTagName(s)[0]},l2=(e,t,{title:n,hint:r,options:o={}})=>{var m,b;if(typeof window>"u"||!((m=window==null?void 0:window.navigator)!=null&&m.userAgent))return null;const{navigator:a}=window,{userAgent:s}=a,i=ii(window.Promise),c=Sd(s)||dv(s),u=!c&&fv(s),d=!c&&/firefox/iu.test(s)&&s.split("rv:").length>1?parseInt(s.split("rv:")[1].split(".")[0],10)>18:!1,f=!c&&(i||d);if(!Me(e))return Ha("URL is not valid"),null;const p=a2(t);if(!p)return Ha("Target element cannot be determined"),null;const h=n||((b=/\/([^/]+).pdf/.exec(e))==null?void 0:b[1])||"PDF Viewer";return f||!c?i2(u?"iframe":"embed",p,e,o,h):(p.innerHTML=r.replace(/\[url\]/g,e),Ha("This browser does not support embedded PDFs"),null)};var c2=D({name:"PDF",props:{url:{type:String,required:!0},title:{type:String,default:""},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:void 0},ratio:{type:[String,Number],default:16/9},page:{type:[String,Number],default:1},noToolbar:Boolean,zoom:{type:[String,Number],default:100}},setup(e){const{el:t,width:n,height:r,resize:o}=Qr(e),a=Jt(r2);return G(()=>{l2(un(e.url),t.value,{title:e.title,hint:a.value.hint,options:{page:e.page,noToolbar:e.noToolbar,zoom:e.zoom}}),o()}),()=>l("div",{class:"pdf-viewer-wrapper",ref:t,style:{width:n.value,height:r.value}})}}),u2=D({name:"Replit",props:{link:{type:String,default:""},user:{type:String,default:""},repl:{type:String,default:""},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:void 0},ratio:{type:[String,Number],default:16/9},theme:{type:String,default:"light"},file:{type:String,default:()=>null},autoLoad:Boolean,text:{type:String,default:"Load Replit"}},setup(e){const{el:t,width:n,height:r,resize:o}=Qr(e),a=I(!1),s=I(!1),i=w(()=>{var c;if(e.link){const u=new URL(e.link);return u.searchParams.set("embed","true"),u.toString()}return e.user&&e.repl?`https://replit.com/@${e.user}/${e.repl}${(c=e.file)!=null&&c.length?`#${e.file}`:""}`:null});return()=>i.value?l("div",{class:"replit-wrapper"},e.autoLoad||a.value?[l("iframe",{ref:t,class:"replit-iframe",src:i.value,style:{width:n.value,height:s.value?r.value:0},onLoad:()=>{s.value=!0,o()}}),s.value?null:l(At)]:l("button",{type:"button",class:"replit-button",onClick:()=>{a.value=!0}},e.text)):null}});const d2=500,f2=20,p2=300,h2="https://stackblitz.com",ic=["angular-cli","create-react-app","html","javascript","node","polymer","typescript","vue"],m2=["project","search","ports","settings"],v2=["light","dark"],g2=["editor","preview"],lc={clickToLoad:e=>Bn("ctl",e),devToolsHeight:e=>cc("devtoolsheight",e),forceEmbedLayout:e=>Bn("embed",e),hideDevTools:e=>Bn("hidedevtools",e),hideExplorer:e=>Bn("hideExplorer",e),hideNavigation:e=>Bn("hideNavigation",e),openFile:e=>uc("file",e),showSidebar:e=>b2("showSidebar",e),sidebarView:e=>Fa("sidebarView",e,m2),startScript:e=>uc("startScript",e),terminalHeight:e=>cc("terminalHeight",e),theme:e=>Fa("theme",e,v2),view:e=>Fa("view",e,g2),zenMode:e=>Bn("zenMode",e)};function Hd(e={}){const t=Object.entries(e).map(([n,r])=>r!=null&&lc.hasOwnProperty(n)?lc[n](r):"").filter(Boolean);return t.length?`?${t.join("&")}`:""}function Bn(e,t){return t===!0?`${e}=1`:""}function b2(e,t){return typeof t=="boolean"?`${e}=${t?"1":"0"}`:""}function cc(e,t){if(typeof t=="number"&&!Number.isNaN(t)){const n=Math.min(100,Math.max(0,t));return`${e}=${encodeURIComponent(Math.round(n))}`}return""}function Fa(e,t="",n=[]){return n.includes(t)?`${e}=${encodeURIComponent(t)}`:""}function uc(e,t){return(Array.isArray(t)?t:[t]).filter(r=>typeof r=="string"&&r.trim()!=="").map(r=>`${e}=${encodeURIComponent(r)}`).join("&")}function Fd(){return Math.random().toString(36).slice(2,6)+Math.random().toString(36).slice(2,6)}function hi(e,t){return`${zd(t)}${e}${Hd(t)}`}function mi(e,t){const n={forceEmbedLayout:!0};return t&&typeof t=="object"&&Object.assign(n,t),`${zd(n)}${e}${Hd(n)}`}function zd(e={}){return(typeof e.origin=="string"?e.origin:h2).replace(/\/$/,"")}function vi(e,t,n){if(!t||!e||!e.parentNode)throw new Error("Invalid Element");e.id&&(t.id=e.id),e.className&&(t.className=e.className),y2(t,n),e.replaceWith(t)}function gi(e){if(typeof e=="string"){const t=document.getElementById(e);if(!t)throw new Error(`Could not find element with id '${e}'`);return t}else if(e instanceof HTMLElement)return e;throw new Error(`Invalid element: ${e}`)}function bi(e){return e&&e.newWindow===!1?"_self":"_blank"}function y2(e,t={}){const n=Object.hasOwnProperty.call(t,"height")?`${t.height}`:`${p2}`,r=Object.hasOwnProperty.call(t,"width")?`${t.width}`:void 0;e.setAttribute("height",n),r?e.setAttribute("width",r):e.setAttribute("style","width:100%;")}class _2{constructor(t){this.pending={},this.port=t,this.port.onmessage=this.messageListener.bind(this)}request({type:t,payload:n}){return new Promise((r,o)=>{const a=Fd();this.pending[a]={resolve:r,reject:o},this.port.postMessage({type:t,payload:{...n,__reqid:a}})})}messageListener(t){var i;if(typeof((i=t.data.payload)==null?void 0:i.__reqid)!="string")return;const{type:n,payload:r}=t.data,{__reqid:o,__success:a,__error:s}=r;this.pending[o]&&(a?this.pending[o].resolve(this.cleanResult(r)):this.pending[o].reject(s?`${n}: ${s}`:n),delete this.pending[o])}cleanResult(t){const n={...t};return delete n.__reqid,delete n.__success,delete n.__error,Object.keys(n).length?n:null}}class w2{constructor(t,n){this.editor={openFile:r=>this._rdc.request({type:"SDK_OPEN_FILE",payload:{path:r}}),setCurrentFile:r=>this._rdc.request({type:"SDK_SET_CURRENT_FILE",payload:{path:r}}),setTheme:r=>this._rdc.request({type:"SDK_SET_UI_THEME",payload:{theme:r}}),setView:r=>this._rdc.request({type:"SDK_SET_UI_VIEW",payload:{view:r}}),showSidebar:(r=!0)=>this._rdc.request({type:"SDK_TOGGLE_SIDEBAR",payload:{visible:r}})},this.preview={origin:"",getUrl:()=>this._rdc.request({type:"SDK_GET_PREVIEW_URL",payload:{}}).then(r=>(r==null?void 0:r.url)??null),setUrl:(r="/")=>{if(typeof r!="string"||!r.startsWith("/"))throw new Error(`Invalid argument: expected a path starting with '/', got '${r}'`);return this._rdc.request({type:"SDK_SET_PREVIEW_URL",payload:{path:r}})}},this._rdc=new _2(t),Object.defineProperty(this.preview,"origin",{value:typeof n.previewOrigin=="string"?n.previewOrigin:null,writable:!1})}applyFsDiff(t){const n=r=>r!==null&&typeof r=="object";if(!n(t)||!n(t.create))throw new Error("Invalid diff object: expected diff.create to be an object.");if(!Array.isArray(t.destroy))throw new Error("Invalid diff object: expected diff.destroy to be an array.");return this._rdc.request({type:"SDK_APPLY_FS_DIFF",payload:t})}getDependencies(){return this._rdc.request({type:"SDK_GET_DEPS_SNAPSHOT",payload:{}})}getFsSnapshot(){return this._rdc.request({type:"SDK_GET_FS_SNAPSHOT",payload:{}})}}const Oo=[];class x2{constructor(t){this.id=Fd(),this.element=t,this.pending=new Promise((n,r)=>{const o=({data:u,ports:d})=>{(u==null?void 0:u.action)==="SDK_INIT_SUCCESS"&&u.id===this.id&&(this.vm=new w2(d[0],u.payload),n(this.vm),s())},a=()=>{var u;(u=this.element.contentWindow)==null||u.postMessage({action:"SDK_INIT",id:this.id},"*")};function s(){window.clearInterval(c),window.removeEventListener("message",o)}window.addEventListener("message",o),a();let i=0;const c=window.setInterval(()=>{if(this.vm){s();return}if(i>=f2){s(),r("Timeout: Unable to establish a connection with the StackBlitz VM"),Oo.forEach((u,d)=>{u.id===this.id&&Oo.splice(d,1)});return}i++,a()},d2)}),Oo.push(this)}}const E2=e=>{const t=e instanceof Element?"element":"id";return Oo.find(n=>n[t]===e)??null};function S2(e,t){const n=document.createElement("input");return n.type="hidden",n.name=e,n.value=t,n}function T2(e){return e.replace(/\[/g,"%5B").replace(/\]/g,"%5D")}function Gd({template:e,title:t,description:n,dependencies:r,files:o,settings:a}){if(!ic.includes(e)){const u=ic.map(d=>`'${d}'`).join(", ");console.warn(`Unsupported project.template: must be one of ${u}`)}const s=[],i=(u,d,f="")=>{s.push(S2(u,typeof d=="string"?d:f))};i("project[title]",t),typeof n=="string"&&n.length>0&&i("project[description]",n),i("project[template]",e,"javascript"),r&&(e==="node"?console.warn("Invalid project.dependencies: dependencies must be provided as a 'package.json' file when using the 'node' template."):i("project[dependencies]",JSON.stringify(r))),a&&i("project[settings]",JSON.stringify(a)),Object.entries(o).forEach(([u,d])=>{i(`project[files][${T2(u)}]`,d)});const c=document.createElement("form");return c.method="POST",c.setAttribute("style","display:none!important;"),c.append(...s),c}function L2(e,t){const n=Gd(e);return n.action=mi("/run",t),n.id="sb_run",` + ++ + ${n.outerHTML} + ' +); diff --git a/assets/layout-CcdY50l6.js b/assets/layout-CcdY50l6.js new file mode 100644 index 00000000..d6cd5d52 --- /dev/null +++ b/assets/layout-CcdY50l6.js @@ -0,0 +1 @@ +import{i as F,b as xn,a as zn,c as L,k as Un,d as Hn,e as Jn,g as P,j as En,l as kn,m as yn,t as Kn,n as Nn,o as Zn,p as jn,f as s,G as x,h as w,q as g,r as M,v as y,s as V}from"./graph-Bephq5Jd.js";import{P as A,ab as Qn,ac as ne,ad as ee,a4 as Ln,ae as B,I as _n,Y as re,C as Cn,B as K,a2 as te,af as ie,a1 as Z,a0 as ae,W as In,O as oe,a6 as ue,ag as H}from"./mermaid.core-BcToC1tX.js";var de=/\s/;function fe(n){for(var e=n.length;e--&&de.test(n.charAt(e)););return e}var se=/^\s+/;function ce(n){return n&&n.slice(0,fe(n)+1).replace(se,"")}var un=NaN,he=/^[-+]0x[0-9a-f]+$/i,le=/^0b[01]+$/i,ve=/^0o[0-7]+$/i,pe=parseInt;function we(n){if(typeof n=="number")return n;if(F(n))return un;if(A(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=A(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=ce(n);var r=le.test(n);return r||ve.test(n)?pe(n.slice(2),r?2:8):he.test(n)?un:+n}var dn=1/0,me=17976931348623157e292;function S(n){if(!n)return n===0?n:0;if(n=we(n),n===dn||n===-dn){var e=n<0?-1:1;return e*me}return n===n?n:0}function be(n){var e=S(n),r=e%1;return e===e?r?e-r:e:0}function _(n){var e=n==null?0:n.length;return e?xn(n,1):[]}function ge(n){return Qn(ne(n,void 0,_),n+"")}var xe=1,Ee=4;function ke(n){return zn(n,xe|Ee)}var fn=function(){return ee.Date.now()},Rn=Object.prototype,ye=Rn.hasOwnProperty,Ne=Ln(function(n,e){n=Object(n);var r=-1,t=e.length,i=t>2?e[2]:void 0;for(i&&B(e[0],e[1],i)&&(t=1);++r -1?i[o?e[a]:a]:void 0}}var Ce=Math.max;function Ie(n,e,r){var t=n==null?0:n.length;if(!t)return-1;var i=r==null?0:be(r);return i<0&&(i=Ce(t+i,0)),Hn(n,L(e),i)}var j=_e(Ie);function Tn(n,e){var r=-1,t=Cn(n)?Array(n.length):[];return Jn(n,function(i,o,a){t[++r]=e(i,o,a)}),t}function m(n,e){var r=K(n)?P:Tn;return r(n,L(e))}function Re(n,e){return n==null?n:te(n,En(e),_n)}function Te(n,e){return n&&kn(n,En(e))}function Me(n,e){return n>e}function Mn(n,e){return n e||o&&a&&d&&!u&&!f||t&&a&&d||!r&&d||!i)return 1;if(!t&&!o&&!f&&n =u)return d;var f=r[t];return d*(f=="desc"?-1:1)}}return n.index-e.index}function Be(n,e,r){e.length?e=P(e,function(o){return K(o)?function(a){return Nn(a,o.length===1?o[0]:o)}:o}):e=[Z];var t=-1;e=P(e,oe(L));var i=Tn(n,function(o,a,u){var d=P(e,function(f){return f(o)});return{criteria:d,index:++t,value:o}});return Se(i,function(o,a){return Ae(o,a,r)})}function Ge(n,e){return Pe(n,e,function(r,t){return Zn(n,t)})}var Y=ge(function(n,e){return n==null?{}:Ge(n,e)}),Ye=Math.ceil,Ve=Math.max;function $e(n,e,r,t){for(var i=-1,o=Ve(Ye((e-n)/(r||1)),0),a=Array(o);o--;)a[t?o:++i]=n,n+=r;return a}function De(n){return function(e,r,t){return t&&typeof t!="number"&&B(e,r,t)&&(r=t=void 0),e=S(e),r===void 0?(r=e,e=0):r=S(r),t=t===void 0?e 1&&B(n,e[0],e[1])?e=[]:r>2&&B(e[0],e[1],e[2])&&(e=[e[0]]),Be(n,xn(e,1),[])}),qe=0;function en(n){var e=++qe;return jn(n)+e}function We(n,e,r){for(var t=-1,i=n.length,o=e.length,a={};++t0;--u)if(a=e[u].dequeue(),a){t=t.concat(q(n,e,r,a,!0));break}}}return t}function q(n,e,r,t,i){var o=i?[]:void 0;return s(n.inEdges(t.v),function(a){var u=n.edge(a),d=n.node(a.v);i&&o.push({v:a.v,w:a.w}),d.out-=u,J(e,r,d)}),s(n.outEdges(t.v),function(a){var u=n.edge(a),d=a.w,f=n.node(d);f.in-=u,J(e,r,f)}),n.removeNode(t.v),o}function Ze(n,e){var r=new x,t=0,i=0;s(n.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),s(n.edges(),function(u){var d=r.edge(u.v,u.w)||0,f=e(u),c=d+f;r.setEdge(u.v,u.w,c),i=Math.max(i,r.node(u.v).out+=f),t=Math.max(t,r.node(u.w).in+=f)});var o=N(i+t+3).map(function(){return new ze}),a=t+1;return s(r.nodes(),function(u){J(o,a,r.node(u))}),{graph:r,buckets:o,zeroIdx:a}}function J(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function je(n){var e=n.graph().acyclicer==="greedy"?Je(n,r(n)):Qe(n);s(e,function(t){var i=n.edge(t);n.removeEdge(t),i.forwardName=t.name,i.reversed=!0,n.setEdge(t.w,t.v,i,en("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function Qe(n){var e=[],r={},t={};function i(o){w(t,o)||(t[o]=!0,r[o]=!0,s(n.outEdges(o),function(a){w(r,a.w)?e.push(a):i(a.w)}),delete r[o])}return s(n.nodes(),i),e}function nr(n){s(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var t=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,t)}})}function C(n,e,r,t){var i;do i=en(t);while(n.hasNode(i));return r.dummy=e,n.setNode(i,r),i}function er(n){var e=new x().setGraph(n.graph());return s(n.nodes(),function(r){e.setNode(r,n.node(r))}),s(n.edges(),function(r){var t=e.edge(r.v,r.w)||{weight:0,minlen:1},i=n.edge(r);e.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),e}function On(n){var e=new x({multigraph:n.isMultigraph()}).setGraph(n.graph());return s(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),s(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function cn(n,e){var r=n.x,t=n.y,i=e.x-r,o=e.y-t,a=n.width/2,u=n.height/2;if(!i&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,f;return Math.abs(o)*a>Math.abs(i)*u?(o<0&&(u=-u),d=u*i/o,f=u):(i<0&&(a=-a),d=a,f=a*o/i),{x:r+d,y:t+f}}function D(n){var e=m(N(Pn(n)+1),function(){return[]});return s(n.nodes(),function(r){var t=n.node(r),i=t.rank;g(i)||(e[i][t.order]=r)}),e}function rr(n){var e=R(m(n.nodes(),function(r){return n.node(r).rank}));s(n.nodes(),function(r){var t=n.node(r);w(t,"rank")&&(t.rank-=e)})}function tr(n){var e=R(m(n.nodes(),function(o){return n.node(o).rank})),r=[];s(n.nodes(),function(o){var a=n.node(o).rank-e;r[a]||(r[a]=[]),r[a].push(o)});var t=0,i=n.graph().nodeRankFactor;s(r,function(o,a){g(o)&&a%i!==0?--t:t&&s(o,function(u){n.node(u).rank+=t})})}function hn(n,e,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),C(n,"border",i,e)}function Pn(n){return E(m(n.nodes(),function(e){var r=n.node(e).rank;if(!g(r))return r}))}function ir(n,e){var r={lhs:[],rhs:[]};return s(n,function(t){e(t)?r.lhs.push(t):r.rhs.push(t)}),r}function ar(n,e){var r=fn();try{return e()}finally{console.log(n+" time: "+(fn()-r)+"ms")}}function or(n,e){return e()}function ur(n){function e(r){var t=n.children(r),i=n.node(r);if(t.length&&s(t,e),w(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,a=i.maxRank+1;oa.lim&&(u=a,d=!0);var f=M(e.edges(),function(c){return d===pn(n,n.node(c.v),u)&&d!==pn(n,n.node(c.w),u)});return nn(f,function(c){return T(e,c)})}function Dn(n,e,r,t){var i=r.v,o=r.w;n.removeEdge(i,o),n.setEdge(t.v,t.w,{}),an(n),tn(n,e),kr(n,e)}function kr(n,e){var r=j(n.nodes(),function(i){return!e.node(i).parent}),t=xr(n,r);t=t.slice(1),s(t,function(i){var o=n.node(i).parent,a=e.edge(i,o),u=!1;a||(a=e.edge(o,i),u=!0),e.node(i).rank=e.node(o).rank+(u?a.minlen:-a.minlen)})}function yr(n,e,r){return n.hasEdge(e,r)}function pn(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function Nr(n){switch(n.graph().ranker){case"network-simplex":wn(n);break;case"tight-tree":_r(n);break;case"longest-path":Lr(n);break;default:wn(n)}}var Lr=rn;function _r(n){rn(n),Fn(n)}function wn(n){k(n)}function Cr(n){var e=C(n,"root",{},"_root"),r=Ir(n),t=E(y(r))-1,i=2*t+1;n.graph().nestingRoot=e,s(n.edges(),function(a){n.edge(a).minlen*=i});var o=Rr(n)+1;s(n.children(),function(a){qn(n,e,i,o,t,r,a)}),n.graph().nodeRankFactor=i}function qn(n,e,r,t,i,o,a){var u=n.children(a);if(!u.length){a!==e&&n.setEdge(e,a,{weight:0,minlen:r});return}var d=hn(n,"_bt"),f=hn(n,"_bb"),c=n.node(a);n.setParent(d,a),c.borderTop=d,n.setParent(f,a),c.borderBottom=f,s(u,function(h){qn(n,e,r,t,i,o,h);var l=n.node(h),v=l.borderTop?l.borderTop:h,p=l.borderBottom?l.borderBottom:h,b=l.borderTop?t:2*t,I=v!==p?1:i-o[a]+1;n.setEdge(d,v,{weight:b,minlen:I,nestingEdge:!0}),n.setEdge(p,f,{weight:b,minlen:I,nestingEdge:!0})}),n.parent(a)||n.setEdge(e,d,{weight:0,minlen:i+o[a]})}function Ir(n){var e={};function r(t,i){var o=n.children(t);o&&o.length&&s(o,function(a){r(a,i+1)}),e[t]=i}return s(n.children(),function(t){r(t,1)}),e}function Rr(n){return V(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function Tr(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,s(n.edges(),function(r){var t=n.edge(r);t.nestingEdge&&n.removeEdge(r)})}function Mr(n,e,r){var t={},i;s(r,function(o){for(var a=n.parent(o),u,d;a;){if(u=n.parent(a),u?(d=t[u],t[u]=a):(d=i,i=a),d&&d!==a){e.setEdge(d,a);return}a=u}})}function Or(n,e,r){var t=Pr(n),i=new x({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(o){return n.node(o)});return s(n.nodes(),function(o){var a=n.node(o),u=n.parent(o);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(i.setNode(o),i.setParent(o,u||t),s(n[r](o),function(d){var f=d.v===o?d.w:d.v,c=i.edge(f,o),h=g(c)?0:c.weight;i.setEdge(f,o,{weight:n.edge(d).weight+h})}),w(a,"minRank")&&i.setNode(o,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))}),i}function Pr(n){for(var e;n.hasNode(e=en("_root")););return e}function Sr(n,e){for(var r=0,t=1;t 0;)c%2&&(h+=u[c+1]),c=c-1>>1,u[c]+=f.weight;d+=f.weight*h})),d}function Ar(n){var e={},r=M(n.nodes(),function(u){return!n.children(u).length}),t=E(m(r,function(u){return n.node(u).rank})),i=m(N(t+1),function(){return[]});function o(u){if(!w(e,u)){e[u]=!0;var d=n.node(u);i[d.rank].push(u),s(n.successors(u),o)}}var a=O(r,function(u){return n.node(u).rank});return s(a,o),i}function Br(n,e){return m(e,function(r){var t=n.inEdges(r);if(t.length){var i=V(t,function(o,a){var u=n.edge(a),d=n.node(a.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function Gr(n,e){var r={};s(n,function(i,o){var a=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:o};g(i.barycenter)||(a.barycenter=i.barycenter,a.weight=i.weight)}),s(e.edges(),function(i){var o=r[i.v],a=r[i.w];!g(o)&&!g(a)&&(a.indegree++,o.out.push(r[i.w]))});var t=M(r,function(i){return!i.indegree});return Yr(t)}function Yr(n){var e=[];function r(o){return function(a){a.merged||(g(a.barycenter)||g(o.barycenter)||a.barycenter>=o.barycenter)&&Vr(o,a)}}function t(o){return function(a){a.in.push(o),--a.indegree===0&&n.push(a)}}for(;n.length;){var i=n.pop();e.push(i),s(i.in.reverse(),r(i)),s(i.out,t(i))}return m(M(e,function(o){return!o.merged}),function(o){return Y(o,["vs","i","barycenter","weight"])})}function Vr(n,e){var r=0,t=0;n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/t,n.weight=t,n.i=Math.min(e.i,n.i),e.merged=!0}function $r(n,e){var r=ir(n,function(c){return w(c,"barycenter")}),t=r.lhs,i=O(r.rhs,function(c){return-c.i}),o=[],a=0,u=0,d=0;t.sort(Dr(!!e)),d=mn(o,i,d),s(t,function(c){d+=c.vs.length,o.push(c.vs),a+=c.barycenter*c.weight,u+=c.weight,d=mn(o,i,d)});var f={vs:_(o)};return u&&(f.barycenter=a/u,f.weight=u),f}function mn(n,e,r){for(var t;e.length&&(t=G(e)).i<=r;)e.pop(),n.push(t.vs),r++;return r}function Dr(n){return function(e,r){return e.barycenter r.barycenter?1:n?r.i-e.i:e.i-r.i}}function Wn(n,e,r,t){var i=n.children(e),o=n.node(e),a=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};a&&(i=M(i,function(p){return p!==a&&p!==u}));var f=Br(n,i);s(f,function(p){if(n.children(p.v).length){var b=Wn(n,p.v,r,t);d[p.v]=b,w(b,"barycenter")&&Wr(p,b)}});var c=Gr(f,r);qr(c,d);var h=$r(c,t);if(a&&(h.vs=_([a,h.vs,u]),n.predecessors(a).length)){var l=n.node(n.predecessors(a)[0]),v=n.node(n.predecessors(u)[0]);w(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+l.order+v.order)/(h.weight+2),h.weight+=2}return h}function qr(n,e){s(n,function(r){r.vs=_(r.vs.map(function(t){return e[t]?e[t].vs:t}))})}function Wr(n,e){g(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function Xr(n){var e=Pn(n),r=bn(n,N(1,e+1),"inEdges"),t=bn(n,N(e-1,-1,-1),"outEdges"),i=Ar(n);gn(n,i);for(var o=Number.POSITIVE_INFINITY,a,u=0,d=0;d<4;++u,++d){zr(u%2?r:t,u%4>=2),i=D(n);var f=Sr(n,i);f a||u>e[d].lim));for(f=d,d=t;(d=n.parent(d))!==f;)o.push(d);return{path:i.concat(o.reverse()),lca:f}}function Jr(n){var e={},r=0;function t(i){var o=r;s(n.children(i),t),e[i]={low:o,lim:r++}}return s(n.children(),t),e}function Kr(n,e){var r={};function t(i,o){var a=0,u=0,d=i.length,f=G(o);return s(o,function(c,h){var l=jr(n,c),v=l?n.node(l).order:d;(l||c===f)&&(s(o.slice(u,h+1),function(p){s(n.predecessors(p),function(b){var I=n.node(b),on=I.order;(onf)&&Xn(r,l,c)})})}function i(o,a){var u=-1,d,f=0;return s(a,function(c,h){if(n.node(c).dummy==="border"){var l=n.predecessors(c);l.length&&(d=n.node(l[0]).order,t(a,f,h,u,d),f=h,u=d)}t(a,f,a.length,d,o.length)}),a}return V(e,i),r}function jr(n,e){if(n.node(e).dummy)return j(n.predecessors(e),function(r){return n.node(r).dummy})}function Xn(n,e,r){if(e>r){var t=e;e=r,r=t}var i=n[e];i||(n[e]=i={}),i[r]=!0}function Qr(n,e,r){if(e>r){var t=e;e=r,r=t}return w(n[e],r)}function nt(n,e,r,t){var i={},o={},a={};return s(e,function(u){s(u,function(d,f){i[d]=d,o[d]=d,a[d]=f})}),s(e,function(u){var d=-1;s(u,function(f){var c=t(f);if(c.length){c=O(c,function(b){return a[b]});for(var h=(c.length-1)/2,l=Math.floor(h),v=Math.ceil(h);l<=v;++l){var p=c[l];o[f]===f&&dt?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:t n?1:t>=n?0:NaN}function _(n){let t,e,r;n.length!==2?(t=F,e=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,e=n,r=n);function i(u,c,o=0,s=u.length){if(o >>1;e(u[h],c)<0?o=h+1:s=h}while(o>>1;e(u[h],c)<=0?o=h+1:s=h}while(oo&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:i,center:a,right:f}}function mn(){return 0}function ln(n){return n===null?NaN:+n}const sn=_(F),dn=sn.right;_(ln).center;const gn=Math.sqrt(50),yn=Math.sqrt(10),Mn=Math.sqrt(2);function R(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),f=r/Math.pow(10,i),a=f>=gn?10:f>=yn?5:f>=Mn?2:1;let u,c,o;return i<0?(o=Math.pow(10,-i)/a,u=Math.round(n*o),c=Math.round(t*o),u/ot&&--c,o=-o):(o=Math.pow(10,i)*a,u=Math.round(n/o),c=Math.round(t/o),u*o t&&--c),c0))return[];if(n===t)return[n];const r=t =i))return[];const u=f-i+1,c=new Array(u);if(r)if(a<0)for(let o=0;o=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function v(n){return n=E(Math.abs(n)),n?n[1]:NaN}function jn(n,t){return function(e,r){for(var i=e.length,f=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function Pn(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var zn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=zn.exec(n)))throw new Error("invalid format: "+n);var t;return new B({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=B.prototype;function B(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}B.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function $n(n){n:for(var t=n.length,e=1,r=-1,i;e 0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var nn;function Fn(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1],f=i-(nn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function Z(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const H={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:bn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>Z(n*100,t),r:Z,s:Fn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function J(n){return n}var K=Array.prototype.map,Q=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Rn(n){var t=n.grouping===void 0||n.thousands===void 0?J:jn(K.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?J:Pn(K.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var l=h.fill,p=h.align,y=h.sign,S=h.symbol,k=h.zero,b=h.width,T=h.comma,w=h.precision,G=h.trim,d=h.type;d==="n"?(T=!0,d="g"):H[d]||(w===void 0&&(w=12),G=!0,d="g"),(k||l==="0"&&p==="=")&&(k=!0,l="0",p="=");var en=S==="$"?e:S==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",on=S==="$"?r:/[%p]/.test(d)?a:"",O=H[d],an=/[defgprs%]/.test(d);w=w===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function V(m){var N=en,g=on,x,X,j;if(d==="c")g=O(m)+g,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:O(Math.abs(m),w),G&&(m=$n(m)),P&&+m==0&&y!=="+"&&(P=!1),N=(P?y==="("?y:u:y==="-"||y==="("?"":y)+N,g=(d==="s"?Q[8+nn/3]:"")+g+(P&&y==="("?")":""),an){for(x=-1,X=m.length;++x j||j>57){g=(j===46?i+m.slice(x+1):m.slice(x))+g,m=m.slice(0,x);break}}}T&&!k&&(m=t(m,1/0));var z=N.length+m.length+g.length,M=z>1)+N+m+g+M.slice(z);break;default:m=M+N+m+g;break}return f(m)}return V.toString=function(){return h+""},V}function s(h,l){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(v(l)/3)))*3,S=Math.pow(10,-y),k=Q[8+y/3];return function(b){return p(S*b)+k}}return{format:o,formatPrefix:s}}var $,tn,rn;En({thousands:",",grouping:[3],currency:["$",""]});function En(n){return $=Rn(n),tn=$.format,rn=$.formatPrefix,$}function Dn(n){return Math.max(0,-v(Math.abs(n)))}function Tn(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(v(t)/3)))*3-v(Math.abs(n)))}function In(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,v(t)-v(n))+1}function Ln(n){return function(){return n}}function qn(n){return+n}var W=[0,1];function A(n){return n}function q(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:Ln(isNaN(t)?NaN:.5)}function Cn(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Bn(n,t,e){var r=n[0],i=n[1],f=t[0],a=t[1];return i 2?Gn:Bn,c=o=null,h}function h(l){return l==null||isNaN(l=+l)?f:(c||(c=u(n.map(r),t,e)))(r(a(l)))}return h.invert=function(l){return a(i((o||(o=u(t,n.map(r),I)))(l)))},h.domain=function(l){return arguments.length?(n=Array.from(l,qn),s()):n.slice()},h.range=function(l){return arguments.length?(t=Array.from(l),s()):t.slice()},h.rangeRound=function(l){return t=Array.from(l),e=Sn,s()},h.clamp=function(l){return arguments.length?(a=l?!0:A,s()):a!==A},h.interpolate=function(l){return arguments.length?(e=l,s()):e},h.unknown=function(l){return arguments.length?(f=l,h):f},function(l,p){return r=l,i=p,s()}}function Xn(){return Vn()(A,A)}function Un(n,t,e,r){var i=wn(n,t,e),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=Tn(i,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=In(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=Dn(i))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Yn(n){var t=n.domain;return n.ticks=function(e){var r=t();return pn(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var i=t();return Un(i[0],i[i.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,f=r.length-1,a=r[i],u=r[f],c,o,s=10;for(u0;){if(o=L(a,u,e),o===c)return r[i]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Zn(){var n=Xn();return n.copy=function(){return On(n,Zn())},cn.apply(n,arguments),Yn(n)}export{On as a,_ as b,Xn as c,Zn as l,wn as t}; diff --git a/assets/markmap/js/the-definitive-guide/ch01.html b/assets/markmap/js/the-definitive-guide/ch01.html new file mode 100644 index 00000000..c2938f77 --- /dev/null +++ b/assets/markmap/js/the-definitive-guide/ch01.html @@ -0,0 +1,231 @@ + + + + + + + Markmap + + + + + + + + + + + + diff --git a/assets/mermaid.core-BcToC1tX.js b/assets/mermaid.core-BcToC1tX.js new file mode 100644 index 00000000..e2e2bf37 --- /dev/null +++ b/assets/mermaid.core-BcToC1tX.js @@ -0,0 +1,92 @@ +import{L as K}from"./app-CUIEYs6a.js";import{c as xa,g as Ta}from"./commonjsHelpers-Cpj98o6Y.js";import{s as bt,b as ka,c as Sa}from"./transform-CqGPC-JM.js";const xC=Math.abs,TC=Math.atan2,kC=Math.cos,SC=Math.max,vC=Math.min,BC=Math.sin,LC=Math.sqrt,yo=1e-12,vr=Math.PI,bo=vr/2,FC=2*vr;function AC(t){return t>1?0:t<-1?vr:Math.acos(t)}function wC(t){return t>=1?bo:t<=-1?-bo:Math.asin(t)}function Cn(t){this._context=t}Cn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function va(t){return new Cn(t)}function Kt(){}function di(t,e,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+i)/6)}function Fi(t){this._context=t}Fi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:di(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:di(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Ba(t){return new Fi(t)}function _n(t){this._context=t}_n.prototype={areaStart:Kt,areaEnd:Kt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:di(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function La(t){return new _n(t)}function yn(t){this._context=t}yn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break;case 3:this._point=4;default:di(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Fa(t){return new yn(t)}function bn(t,e){this._basis=new Fi(t),this._beta=e}bn.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var r=t[0],o=e[0],n=t[i]-r,s=e[i]-o,a=-1,l;++a<=i;)l=a/i,this._basis.point(this._beta*t[a]+(1-this._beta)*(r+l*n),this._beta*e[a]+(1-this._beta)*(o+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const Aa=function t(e){function i(r){return e===1?new Fi(r):new bn(r,e)}return i.beta=function(r){return t(+r)},i}(.85);function fi(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function Br(t,e){this._context=t,this._k=(1-e)/6}Br.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:fi(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:fi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const wa=function t(e){function i(r){return new Br(r,e)}return i.tension=function(r){return t(+r)},i}(0);function Lr(t,e){this._context=t,this._k=(1-e)/6}Lr.prototype={areaStart:Kt,areaEnd:Kt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:fi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ea=function t(e){function i(r){return new Lr(r,e)}return i.tension=function(r){return t(+r)},i}(0);function Fr(t,e){this._context=t,this._k=(1-e)/6}Fr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:fi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Oa=function t(e){function i(r){return new Fr(r,e)}return i.tension=function(r){return t(+r)},i}(0);function Ar(t,e,i){var r=t._x1,o=t._y1,n=t._x2,s=t._y2;if(t._l01_a>yo){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,o=(o*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>yo){var d=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,g=3*t._l23_a*(t._l23_a+t._l12_a);n=(n*d+t._x1*t._l23_2a-e*t._l12_2a)/g,s=(s*d+t._y1*t._l23_2a-i*t._l12_2a)/g}t._context.bezierCurveTo(r,o,n,s,t._x2,t._y2)}function xn(t,e){this._context=t,this._alpha=e}xn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Ar(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ma=function t(e){function i(r){return e?new xn(r,e):new Br(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function Tn(t,e){this._context=t,this._alpha=e}Tn.prototype={areaStart:Kt,areaEnd:Kt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ar(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ia=function t(e){function i(r){return e?new Tn(r,e):new Lr(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function kn(t,e){this._context=t,this._alpha=e}kn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ar(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Da=function t(e){function i(r){return e?new kn(r,e):new Fr(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function Sn(t){this._context=t}Sn.prototype={areaStart:Kt,areaEnd:Kt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function $a(t){return new Sn(t)}function xo(t){return t<0?-1:1}function To(t,e,i){var r=t._x1-t._x0,o=e-t._x1,n=(t._y1-t._y0)/(r||o<0&&-0),s=(i-t._y1)/(o||r<0&&-0),a=(n*o+s*r)/(r+o);return(xo(n)+xo(s))*Math.min(Math.abs(n),Math.abs(s),.5*Math.abs(a))||0}function ko(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function Zi(t,e,i){var r=t._x0,o=t._y0,n=t._x1,s=t._y1,a=(n-r)/3;t._context.bezierCurveTo(r+a,o+a*e,n-a,s-a*i,n,s)}function pi(t){this._context=t}pi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Zi(this,this._t0,ko(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Zi(this,ko(this,i=To(this,t,e)),i);break;default:Zi(this,this._t0,i=To(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function vn(t){this._context=new Bn(t)}(vn.prototype=Object.create(pi.prototype)).point=function(t,e){pi.prototype.point.call(this,e,t)};function Bn(t){this._context=t}Bn.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,i,r,o,n){this._context.bezierCurveTo(e,t,r,i,n,o)}};function Pa(t){return new pi(t)}function Ra(t){return new vn(t)}function Ln(t){this._context=t}Ln.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),i===2)this._context.lineTo(t[1],e[1]);else for(var r=So(t),o=So(e),n=0,s=1;s=0;--e)o[e]=(s[e]-o[e+1])/n[e];for(n[i-1]=(t[i]+o[i-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}break}}this._x=t,this._y=e}};function qa(t){return new Ai(t,.5)}function za(t){return new Ai(t,0)}function Wa(t){return new Ai(t,1)}function ja(t){for(var e=[],i=1;i =b?I:""+Array(b+1-v.length).join(C)+I},U={s:W,z:function(I){var b=-I.utcOffset(),C=Math.abs(b),v=Math.floor(C/60),y=C%60;return(b<=0?"+":"-")+W(v,2,"0")+":"+W(y,2,"0")},m:function I(b,C){if(b.date() 1)return I(k[0])}else{var H=b.name;X[H]=b,y=H}return!v&&y&&(V=y),y||!v&&V},j=function(I,b){if(jt(I))return I.clone();var C=typeof b=="object"?b:{};return C.date=I,C.args=arguments,new kt(C)},q=U;q.l=Ht,q.i=jt,q.w=function(I,b){return j(I,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var kt=function(){function I(C){this.$L=Ht(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[z]=!0}var b=I.prototype;return b.parse=function(C){this.$d=function(v){var y=v.date,A=v.utc;if(y===null)return new Date(NaN);if(q.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var k=y.match(E);if(k){var H=k[2]-1||0,$=(k[7]||"0").substring(0,3);return A?new Date(Date.UTC(k[1],H,k[3]||1,k[4]||0,k[5]||0,k[6]||0,$)):new Date(k[1],H,k[3]||1,k[4]||0,k[5]||0,k[6]||0,$)}}return new Date(y)}(C),this.init()},b.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},b.$utils=function(){return q},b.isValid=function(){return this.$d.toString()!==M},b.isSame=function(C,v){var y=j(C);return this.startOf(v)<=y&&y<=this.endOf(v)},b.isAfter=function(C,v){return j(C) -1}function l(g){var f=g.replace(o,"");return f.replace(i,function(h,p){return String.fromCharCode(p)})}function d(g){if(!g)return t.BLANK_URL;var f=l(g).replace(r,"").replace(o,"").trim();if(!f)return t.BLANK_URL;if(a(f))return f;var h=f.match(n);if(!h)return f;var p=h[0];return e.test(p)?t.BLANK_URL:f}t.sanitizeUrl=d})(An);/*! @license DOMPurify 3.0.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.11/LICENSE */const{entries:wn,setPrototypeOf:vo,isFrozen:Ya,getPrototypeOf:Ga,getOwnPropertyDescriptor:Va}=Object;let{freeze:ut,seal:xt,create:En}=Object,{apply:ur,construct:dr}=typeof Reflect<"u"&&Reflect;ut||(ut=function(e){return e});xt||(xt=function(e){return e});ur||(ur=function(e,i,r){return e.apply(i,r)});dr||(dr=function(e,i){return new e(...i)});const ei=_t(Array.prototype.forEach),Bo=_t(Array.prototype.pop),Ee=_t(Array.prototype.push),si=_t(String.prototype.toLowerCase),Ji=_t(String.prototype.toString),Lo=_t(String.prototype.match),Oe=_t(String.prototype.replace),Xa=_t(String.prototype.indexOf),Ka=_t(String.prototype.trim),St=_t(Object.prototype.hasOwnProperty),Ct=_t(RegExp.prototype.test),Me=Za(TypeError);function _t(t){return function(e){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:si;vo&&vo(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const n=i(o);n!==o&&(Ya(e)||(e[r]=n),o=n)}t[o]=!0}return t}function Ja(t){for(let e=0;e /gm),rl=xt(/\${[\w\W]*}/gm),ol=xt(/^data-[\-\w.\u00B7-\uFFFF]/),nl=xt(/^aria-[\-\w]+$/),On=xt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),sl=xt(/^(?:\w+script|data):/i),al=xt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Mn=xt(/^html$/i),ll=xt(/^[a-z][.\w]*(-[.\w]+)+$/i);var Oo=Object.freeze({__proto__:null,MUSTACHE_EXPR:el,ERB_EXPR:il,TMPLIT_EXPR:rl,DATA_ATTR:ol,ARIA_ATTR:nl,IS_ALLOWED_URI:On,IS_SCRIPT_OR_DATA:sl,ATTR_WHITESPACE:al,DOCTYPE_NAME:Mn,CUSTOM_ELEMENT:ll});const hl=function(){return typeof window>"u"?null:window},cl=function(e,i){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";i&&i.hasAttribute(o)&&(r=i.getAttribute(o));const n="dompurify"+(r?"#"+r:"");try{return e.createPolicy(n,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+n+" could not be created."),null}};function In(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hl();const e=B=>In(B);if(e.version="3.0.11",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;let{document:i}=t;const r=i,o=r.currentScript,{DocumentFragment:n,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:d,NamedNodeMap:g=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:p}=t,T=l.prototype,M=ii(T,"cloneNode"),E=ii(T,"nextSibling"),N=ii(T,"childNodes"),x=ii(T,"parentNode");if(typeof s=="function"){const B=i.createElement("template");B.content&&B.content.ownerDocument&&(i=B.content.ownerDocument)}let W,U="";const{implementation:V,createNodeIterator:X,createDocumentFragment:z,getElementsByTagName:jt}=i,{importNode:Ht}=r;let j={};e.isSupported=typeof wn=="function"&&typeof x=="function"&&V&&V.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:q,ERB_EXPR:kt,TMPLIT_EXPR:Ut,DATA_ATTR:I,ARIA_ATTR:b,IS_SCRIPT_OR_DATA:C,ATTR_WHITESPACE:v,CUSTOM_ELEMENT:y}=Oo;let{IS_ALLOWED_URI:A}=Oo,k=null;const H=R({},[...Fo,...Qi,...tr,...er,...Ao]);let $=null;const Z=R({},[...wo,...ir,...Eo,...ri]);let P=Object.seal(En(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),tt=null,Lt=null,Ft=!0,It=!0,At=!1,it=!0,lt=!1,mt=!1,Yt=!1,Hi=!1,ce=!1,Ze=!1,Je=!1,Jr=!0,Qr=!1;const da="user-content-";let Ui=!0,Fe=!1,ue={},de=null;const to=R({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let eo=null;const io=R({},["audio","video","img","source","image","track"]);let Yi=null;const ro=R({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qe="http://www.w3.org/1998/Math/MathML",ti="http://www.w3.org/2000/svg",Dt="http://www.w3.org/1999/xhtml";let fe=Dt,Gi=!1,Vi=null;const fa=R({},[Qe,ti,Dt],Ji);let Ae=null;const pa=["application/xhtml+xml","text/html"],ga="text/html";let et=null,pe=null;const ma=i.createElement("form"),oo=function(c){return c instanceof RegExp||c instanceof Function},Xi=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(pe&&pe===c)){if((!c||typeof c!="object")&&(c={}),c=te(c),Ae=pa.indexOf(c.PARSER_MEDIA_TYPE)===-1?ga:c.PARSER_MEDIA_TYPE,et=Ae==="application/xhtml+xml"?Ji:si,k=St(c,"ALLOWED_TAGS")?R({},c.ALLOWED_TAGS,et):H,$=St(c,"ALLOWED_ATTR")?R({},c.ALLOWED_ATTR,et):Z,Vi=St(c,"ALLOWED_NAMESPACES")?R({},c.ALLOWED_NAMESPACES,Ji):fa,Yi=St(c,"ADD_URI_SAFE_ATTR")?R(te(ro),c.ADD_URI_SAFE_ATTR,et):ro,eo=St(c,"ADD_DATA_URI_TAGS")?R(te(io),c.ADD_DATA_URI_TAGS,et):io,de=St(c,"FORBID_CONTENTS")?R({},c.FORBID_CONTENTS,et):to,tt=St(c,"FORBID_TAGS")?R({},c.FORBID_TAGS,et):{},Lt=St(c,"FORBID_ATTR")?R({},c.FORBID_ATTR,et):{},ue=St(c,"USE_PROFILES")?c.USE_PROFILES:!1,Ft=c.ALLOW_ARIA_ATTR!==!1,It=c.ALLOW_DATA_ATTR!==!1,At=c.ALLOW_UNKNOWN_PROTOCOLS||!1,it=c.ALLOW_SELF_CLOSE_IN_ATTR!==!1,lt=c.SAFE_FOR_TEMPLATES||!1,mt=c.WHOLE_DOCUMENT||!1,ce=c.RETURN_DOM||!1,Ze=c.RETURN_DOM_FRAGMENT||!1,Je=c.RETURN_TRUSTED_TYPE||!1,Hi=c.FORCE_BODY||!1,Jr=c.SANITIZE_DOM!==!1,Qr=c.SANITIZE_NAMED_PROPS||!1,Ui=c.KEEP_CONTENT!==!1,Fe=c.IN_PLACE||!1,A=c.ALLOWED_URI_REGEXP||On,fe=c.NAMESPACE||Dt,P=c.CUSTOM_ELEMENT_HANDLING||{},c.CUSTOM_ELEMENT_HANDLING&&oo(c.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(P.tagNameCheck=c.CUSTOM_ELEMENT_HANDLING.tagNameCheck),c.CUSTOM_ELEMENT_HANDLING&&oo(c.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(P.attributeNameCheck=c.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),c.CUSTOM_ELEMENT_HANDLING&&typeof c.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(P.allowCustomizedBuiltInElements=c.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),lt&&(It=!1),Ze&&(ce=!0),ue&&(k=R({},Ao),$=[],ue.html===!0&&(R(k,Fo),R($,wo)),ue.svg===!0&&(R(k,Qi),R($,ir),R($,ri)),ue.svgFilters===!0&&(R(k,tr),R($,ir),R($,ri)),ue.mathMl===!0&&(R(k,er),R($,Eo),R($,ri))),c.ADD_TAGS&&(k===H&&(k=te(k)),R(k,c.ADD_TAGS,et)),c.ADD_ATTR&&($===Z&&($=te($)),R($,c.ADD_ATTR,et)),c.ADD_URI_SAFE_ATTR&&R(Yi,c.ADD_URI_SAFE_ATTR,et),c.FORBID_CONTENTS&&(de===to&&(de=te(de)),R(de,c.FORBID_CONTENTS,et)),Ui&&(k["#text"]=!0),mt&&R(k,["html","head","body"]),k.table&&(R(k,["tbody"]),delete tt.tbody),c.TRUSTED_TYPES_POLICY){if(typeof c.TRUSTED_TYPES_POLICY.createHTML!="function")throw Me('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof c.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Me('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');W=c.TRUSTED_TYPES_POLICY,U=W.createHTML("")}else W===void 0&&(W=cl(p,o)),W!==null&&typeof U=="string"&&(U=W.createHTML(""));ut&&ut(c),pe=c}},no=R({},["mi","mo","mn","ms","mtext"]),so=R({},["foreignobject","desc","title","annotation-xml"]),Ca=R({},["title","style","font","a","script"]),ao=R({},[...Qi,...tr,...Qa]),lo=R({},[...er,...tl]),_a=function(c){let m=x(c);(!m||!m.tagName)&&(m={namespaceURI:fe,tagName:"template"});const S=si(c.tagName),Y=si(m.tagName);return Vi[c.namespaceURI]?c.namespaceURI===ti?m.namespaceURI===Dt?S==="svg":m.namespaceURI===Qe?S==="svg"&&(Y==="annotation-xml"||no[Y]):!!ao[S]:c.namespaceURI===Qe?m.namespaceURI===Dt?S==="math":m.namespaceURI===ti?S==="math"&&so[Y]:!!lo[S]:c.namespaceURI===Dt?m.namespaceURI===ti&&!so[Y]||m.namespaceURI===Qe&&!no[Y]?!1:!lo[S]&&(Ca[S]||!ao[S]):!!(Ae==="application/xhtml+xml"&&Vi[c.namespaceURI]):!1},Gt=function(c){Ee(e.removed,{element:c});try{c.parentNode.removeChild(c)}catch{c.remove()}},Ki=function(c,m){try{Ee(e.removed,{attribute:m.getAttributeNode(c),from:m})}catch{Ee(e.removed,{attribute:null,from:m})}if(m.removeAttribute(c),c==="is"&&!$[c])if(ce||Ze)try{Gt(m)}catch{}else try{m.setAttribute(c,"")}catch{}},ho=function(c){let m=null,S=null;if(Hi)c=" "+c;else{const ot=Lo(c,/^[\r\n\t ]+/);S=ot&&ot[0]}Ae==="application/xhtml+xml"&&fe===Dt&&(c=''+c+"");const Y=W?W.createHTML(c):c;if(fe===Dt)try{m=new h().parseFromString(Y,Ae)}catch{}if(!m||!m.documentElement){m=V.createDocument(fe,"template",null);try{m.documentElement.innerHTML=Gi?U:Y}catch{}}const rt=m.body||m.documentElement;return c&&S&&rt.insertBefore(i.createTextNode(S),rt.childNodes[0]||null),fe===Dt?jt.call(m,mt?"html":"body")[0]:mt?m.documentElement:rt},co=function(c){return X.call(c.ownerDocument||c,c,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},ya=function(c){return c instanceof f&&(typeof c.nodeName!="string"||typeof c.textContent!="string"||typeof c.removeChild!="function"||!(c.attributes instanceof g)||typeof c.removeAttribute!="function"||typeof c.setAttribute!="function"||typeof c.namespaceURI!="string"||typeof c.insertBefore!="function"||typeof c.hasChildNodes!="function")},uo=function(c){return typeof a=="function"&&c instanceof a},$t=function(c,m,S){j[c]&&ei(j[c],Y=>{Y.call(e,m,S,pe)})},fo=function(c){let m=null;if($t("beforeSanitizeElements",c,null),ya(c))return Gt(c),!0;const S=et(c.nodeName);if($t("uponSanitizeElement",c,{tagName:S,allowedTags:k}),c.hasChildNodes()&&!uo(c.firstElementChild)&&Ct(/<[/\w]/g,c.innerHTML)&&Ct(/<[/\w]/g,c.textContent)||c.nodeType===7)return Gt(c),!0;if(!k[S]||tt[S]){if(!tt[S]&&go(S)&&(P.tagNameCheck instanceof RegExp&&Ct(P.tagNameCheck,S)||P.tagNameCheck instanceof Function&&P.tagNameCheck(S)))return!1;if(Ui&&!de[S]){const Y=x(c)||c.parentNode,rt=N(c)||c.childNodes;if(rt&&Y){const ot=rt.length;for(let dt=ot-1;dt>=0;--dt)Y.insertBefore(M(rt[dt],!0),E(c))}}return Gt(c),!0}return c instanceof l&&!_a(c)||(S==="noscript"||S==="noembed"||S==="noframes")&&Ct(/<\/no(script|embed|frames)/i,c.innerHTML)?(Gt(c),!0):(lt&&c.nodeType===3&&(m=c.textContent,ei([q,kt,Ut],Y=>{m=Oe(m,Y," ")}),c.textContent!==m&&(Ee(e.removed,{element:c.cloneNode()}),c.textContent=m)),$t("afterSanitizeElements",c,null),!1)},po=function(c,m,S){if(Jr&&(m==="id"||m==="name")&&(S in i||S in ma))return!1;if(!(It&&!Lt[m]&&Ct(I,m))){if(!(Ft&&Ct(b,m))){if(!$[m]||Lt[m]){if(!(go(c)&&(P.tagNameCheck instanceof RegExp&&Ct(P.tagNameCheck,c)||P.tagNameCheck instanceof Function&&P.tagNameCheck(c))&&(P.attributeNameCheck instanceof RegExp&&Ct(P.attributeNameCheck,m)||P.attributeNameCheck instanceof Function&&P.attributeNameCheck(m))||m==="is"&&P.allowCustomizedBuiltInElements&&(P.tagNameCheck instanceof RegExp&&Ct(P.tagNameCheck,S)||P.tagNameCheck instanceof Function&&P.tagNameCheck(S))))return!1}else if(!Yi[m]){if(!Ct(A,Oe(S,v,""))){if(!((m==="src"||m==="xlink:href"||m==="href")&&c!=="script"&&Xa(S,"data:")===0&&eo[c])){if(!(At&&!Ct(C,Oe(S,v,"")))){if(S)return!1}}}}}}return!0},go=function(c){return c!=="annotation-xml"&&Lo(c,y)},mo=function(c){$t("beforeSanitizeAttributes",c,null);const{attributes:m}=c;if(!m)return;const S={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$};let Y=m.length;for(;Y--;){const rt=m[Y],{name:ot,namespaceURI:dt,value:Qt}=rt,we=et(ot);let ft=ot==="value"?Qt:Ka(Qt);if(S.attrName=we,S.attrValue=ft,S.keepAttr=!0,S.forceKeepAttr=void 0,$t("uponSanitizeAttribute",c,S),ft=S.attrValue,S.forceKeepAttr||(Ki(ot,c),!S.keepAttr))continue;if(!it&&Ct(/\/>/i,ft)){Ki(ot,c);continue}lt&&ei([q,kt,Ut],_o=>{ft=Oe(ft,_o," ")});const Co=et(c.nodeName);if(po(Co,we,ft)){if(Qr&&(we==="id"||we==="name")&&(Ki(ot,c),ft=da+ft),W&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!dt)switch(p.getAttributeType(Co,we)){case"TrustedHTML":{ft=W.createHTML(ft);break}case"TrustedScriptURL":{ft=W.createScriptURL(ft);break}}try{dt?c.setAttributeNS(dt,ot,ft):c.setAttribute(ot,ft),Bo(e.removed)}catch{}}}$t("afterSanitizeAttributes",c,null)},ba=function B(c){let m=null;const S=co(c);for($t("beforeSanitizeShadowDOM",c,null);m=S.nextNode();)$t("uponSanitizeShadowNode",m,null),!fo(m)&&(m.content instanceof n&&B(m.content),mo(m));$t("afterSanitizeShadowDOM",c,null)};return e.sanitize=function(B){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=null,S=null,Y=null,rt=null;if(Gi=!B,Gi&&(B=""),typeof B!="string"&&!uo(B))if(typeof B.toString=="function"){if(B=B.toString(),typeof B!="string")throw Me("dirty is not a string, aborting")}else throw Me("toString is not a function");if(!e.isSupported)return B;if(Yt||Xi(c),e.removed=[],typeof B=="string"&&(Fe=!1),Fe){if(B.nodeName){const Qt=et(B.nodeName);if(!k[Qt]||tt[Qt])throw Me("root node is forbidden and cannot be sanitized in-place")}}else if(B instanceof a)m=ho(""),S=m.ownerDocument.importNode(B,!0),S.nodeType===1&&S.nodeName==="BODY"||S.nodeName==="HTML"?m=S:m.appendChild(S);else{if(!ce&&!lt&&!mt&&B.indexOf("<")===-1)return W&&Je?W.createHTML(B):B;if(m=ho(B),!m)return ce?null:Je?U:""}m&&Hi&&Gt(m.firstChild);const ot=co(Fe?B:m);for(;Y=ot.nextNode();)fo(Y)||(Y.content instanceof n&&ba(Y.content),mo(Y));if(Fe)return B;if(ce){if(Ze)for(rt=z.call(m.ownerDocument);m.firstChild;)rt.appendChild(m.firstChild);else rt=m;return($.shadowroot||$.shadowrootmode)&&(rt=Ht.call(r,rt,!0)),rt}let dt=mt?m.outerHTML:m.innerHTML;return mt&&k["!doctype"]&&m.ownerDocument&&m.ownerDocument.doctype&&m.ownerDocument.doctype.name&&Ct(Mn,m.ownerDocument.doctype.name)&&(dt=" +`+dt),lt&&ei([q,kt,Ut],Qt=>{dt=Oe(dt,Qt," ")}),W&&Je?W.createHTML(dt):dt},e.setConfig=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Xi(B),Yt=!0},e.clearConfig=function(){pe=null,Yt=!1},e.isValidAttribute=function(B,c,m){pe||Xi({});const S=et(B),Y=et(c);return po(S,Y,m)},e.addHook=function(B,c){typeof c=="function"&&(j[B]=j[B]||[],Ee(j[B],c))},e.removeHook=function(B){if(j[B])return Bo(j[B])},e.removeHooks=function(B){j[B]&&(j[B]=[])},e.removeAllHooks=function(){j={}},e}var ye=In();const ai={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t),hsl2rgb:({h:t,s:e,l:i},r)=>{if(!e)return i*2.55;t/=360,e/=100,i/=100;const o=i<.5?i*(1+e):i+e-i*e,n=2*i-o;switch(r){case"r":return ai.hue2rgb(n,o,t+1/3)*255;case"g":return ai.hue2rgb(n,o,t)*255;case"b":return ai.hue2rgb(n,o,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:i},r)=>{t/=255,e/=255,i/=255;const o=Math.max(t,e,i),n=Math.min(t,e,i),s=(o+n)/2;if(r==="l")return s*100;if(o===n)return 0;const a=o-n,l=s>.5?a/(2-o-n):a/(o+n);if(r==="s")return l*100;switch(o){case t:return((e-i)/a+(ee>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},dl=ul,fl={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},pl=fl,D={channel:ai,lang:dl,unit:pl},Vt={};for(let t=0;t<=255;t++)Vt[t]=D.unit.dec2hex(t);const nt={ALL:0,RGB:1,HSL:2};class gl{constructor(){this.type=nt.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=nt.ALL}is(e){return this.type===e}}class ml{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new gl}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=nt.ALL,this}_ensureHSL(){const e=this.data,{h:i,s:r,l:o}=e;i===void 0&&(e.h=D.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=D.channel.rgb2hsl(e,"s")),o===void 0&&(e.l=D.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:i,g:r,b:o}=e;i===void 0&&(e.r=D.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=D.channel.hsl2rgb(e,"g")),o===void 0&&(e.b=D.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,i=e.r;return!this.type.is(nt.HSL)&&i!==void 0?i:(this._ensureHSL(),D.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,i=e.g;return!this.type.is(nt.HSL)&&i!==void 0?i:(this._ensureHSL(),D.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,i=e.b;return!this.type.is(nt.HSL)&&i!==void 0?i:(this._ensureHSL(),D.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,i=e.h;return!this.type.is(nt.RGB)&&i!==void 0?i:(this._ensureRGB(),D.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,i=e.s;return!this.type.is(nt.RGB)&&i!==void 0?i:(this._ensureRGB(),D.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,i=e.l;return!this.type.is(nt.RGB)&&i!==void 0?i:(this._ensureRGB(),D.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(nt.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(nt.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(nt.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(nt.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(nt.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(nt.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const Cl=ml,wi=new Cl({r:0,g:0,b:0,a:0},"transparent"),_e={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(_e.re);if(!e)return;const i=e[1],r=parseInt(i,16),o=i.length,n=o%4===0,s=o>4,a=s?1:17,l=s?8:4,d=n?0:-1,g=s?255:15;return wi.set({r:(r>>l*(d+3)&g)*a,g:(r>>l*(d+2)&g)*a,b:(r>>l*(d+1)&g)*a,a:n?(r&g)*a/255:1},t)},stringify:t=>{const{r:e,g:i,b:r,a:o}=t;return o<1?`#${Vt[Math.round(e)]}${Vt[Math.round(i)]}${Vt[Math.round(r)]}${Vt[Math.round(o*255)]}`:`#${Vt[Math.round(e)]}${Vt[Math.round(i)]}${Vt[Math.round(r)]}`}},ie={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(ie.hueRe);if(e){const[,i,r]=e;switch(r){case"grad":return D.channel.clamp.h(parseFloat(i)*.9);case"rad":return D.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return D.channel.clamp.h(parseFloat(i)*360)}}return D.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const i=t.match(ie.re);if(!i)return;const[,r,o,n,s,a]=i;return wi.set({h:ie._hue2deg(r),s:D.channel.clamp.s(parseFloat(o)),l:D.channel.clamp.l(parseFloat(n)),a:s?D.channel.clamp.a(a?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:i,l:r,a:o}=t;return o<1?`hsla(${D.lang.round(e)}, ${D.lang.round(i)}%, ${D.lang.round(r)}%, ${o})`:`hsl(${D.lang.round(e)}, ${D.lang.round(i)}%, ${D.lang.round(r)}%)`}},$e={colors:{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",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",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",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",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:"#db7093",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",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=$e.colors[t];if(e)return _e.parse(e)},stringify:t=>{const e=_e.stringify(t);for(const i in $e.colors)if($e.colors[i]===e)return i}},De={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const i=t.match(De.re);if(!i)return;const[,r,o,n,s,a,l,d,g]=i;return wi.set({r:D.channel.clamp.r(o?parseFloat(r)*2.55:parseFloat(r)),g:D.channel.clamp.g(s?parseFloat(n)*2.55:parseFloat(n)),b:D.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:d?D.channel.clamp.a(g?parseFloat(d)/100:parseFloat(d)):1},t)},stringify:t=>{const{r:e,g:i,b:r,a:o}=t;return o<1?`rgba(${D.lang.round(e)}, ${D.lang.round(i)}, ${D.lang.round(r)}, ${D.lang.round(o)})`:`rgb(${D.lang.round(e)}, ${D.lang.round(i)}, ${D.lang.round(r)})`}},Et={format:{keyword:$e,hex:_e,rgb:De,rgba:De,hsl:ie,hsla:ie},parse:t=>{if(typeof t!="string")return t;const e=_e.parse(t)||De.parse(t)||ie.parse(t)||$e.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(nt.HSL)||t.data.r===void 0?ie.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?De.stringify(t):_e.stringify(t)},Dn=(t,e)=>{const i=Et.parse(t);for(const r in e)i[r]=D.channel.clamp[r](e[r]);return Et.stringify(i)},Pe=(t,e,i=0,r=1)=>{if(typeof t!="number")return Dn(t,{a:e});const o=wi.set({r:D.channel.clamp.r(t),g:D.channel.clamp.g(e),b:D.channel.clamp.b(i),a:D.channel.clamp.a(r)});return Et.stringify(o)},_l=t=>{const{r:e,g:i,b:r}=Et.parse(t),o=.2126*D.channel.toLinear(e)+.7152*D.channel.toLinear(i)+.0722*D.channel.toLinear(r);return D.lang.round(o)},yl=t=>_l(t)>=.5,bl=yl,Ve=t=>!bl(t),$n=(t,e,i)=>{const r=Et.parse(t),o=r[e],n=D.channel.clamp[e](o+i);return o!==n&&(r[e]=n),Et.stringify(r)},L=(t,e)=>$n(t,"l",e),O=(t,e)=>$n(t,"l",-e),u=(t,e)=>{const i=Et.parse(t),r={};for(const o in e)e[o]&&(r[o]=i[o]+e[o]);return Dn(t,r)},xl=(t,e,i=50)=>{const{r,g:o,b:n,a:s}=Et.parse(t),{r:a,g:l,b:d,a:g}=Et.parse(e),f=i/100,h=f*2-1,p=s-g,M=((h*p===-1?h:(h+p)/(1+h*p))+1)/2,E=1-M,N=r*M+a*E,x=o*M+l*E,W=n*M+d*E,U=s*f+g*(1-f);return Pe(N,x,W,U)},_=(t,e=100)=>{const i=Et.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,xl(i,t,e)};var Pn=typeof global=="object"&&global&&global.Object===Object&&global,Tl=typeof self=="object"&&self&&self.Object===Object&&self,Mt=Pn||Tl||Function("return this")(),gi=Mt.Symbol,Rn=Object.prototype,kl=Rn.hasOwnProperty,Sl=Rn.toString,Ie=gi?gi.toStringTag:void 0;function vl(t){var e=kl.call(t,Ie),i=t[Ie];try{t[Ie]=void 0;var r=!0}catch{}var o=Sl.call(t);return r&&(e?t[Ie]=i:delete t[Ie]),o}var Bl=Object.prototype,Ll=Bl.toString;function Fl(t){return Ll.call(t)}var Al="[object Null]",wl="[object Undefined]",Mo=gi?gi.toStringTag:void 0;function ve(t){return t==null?t===void 0?wl:Al:Mo&&Mo in Object(t)?vl(t):Fl(t)}function ae(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var El="[object AsyncFunction]",Ol="[object Function]",Ml="[object GeneratorFunction]",Il="[object Proxy]";function wr(t){if(!ae(t))return!1;var e=ve(t);return e==Ol||e==Ml||e==El||e==Il}var rr=Mt["__core-js_shared__"],Io=function(){var t=/[^.]+$/.exec(rr&&rr.keys&&rr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Dl(t){return!!Io&&Io in t}var $l=Function.prototype,Pl=$l.toString;function le(t){if(t!=null){try{return Pl.call(t)}catch{}try{return t+""}catch{}}return""}var Rl=/[\\^$.*+?()[\]{}|]/g,Nl=/^\[object .+?Constructor\]$/,ql=Function.prototype,zl=Object.prototype,Wl=ql.toString,jl=zl.hasOwnProperty,Hl=RegExp("^"+Wl.call(jl).replace(Rl,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ul(t){if(!ae(t)||Dl(t))return!1;var e=wr(t)?Hl:Nl;return e.test(le(t))}function Yl(t,e){return t==null?void 0:t[e]}function he(t,e){var i=Yl(t,e);return Ul(i)?i:void 0}var We=he(Object,"create");function Gl(){this.__data__=We?We(null):{},this.size=0}function Vl(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Xl="__lodash_hash_undefined__",Kl=Object.prototype,Zl=Kl.hasOwnProperty;function Jl(t){var e=this.__data__;if(We){var i=e[t];return i===Xl?void 0:i}return Zl.call(e,t)?e[t]:void 0}var Ql=Object.prototype,th=Ql.hasOwnProperty;function eh(t){var e=this.__data__;return We?e[t]!==void 0:th.call(e,t)}var ih="__lodash_hash_undefined__";function rh(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=We&&e===void 0?ih:e,this}function ne(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e-1}function ch(t,e){var i=this.__data__,r=Oi(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this}function Wt(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=Nh}function Di(t){return t!=null&&jn(t.length)&&!wr(t)}function qh(t){return Ke(t)&&Di(t)}function zh(){return!1}var Hn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zo=Hn&&typeof module=="object"&&module&&!module.nodeType&&module,Wh=zo&&zo.exports===Hn,Wo=Wh?Mt.Buffer:void 0,jh=Wo?Wo.isBuffer:void 0,Hh=jh||zh;const Or=Hh;var Uh="[object Object]",Yh=Function.prototype,Gh=Object.prototype,Un=Yh.toString,Vh=Gh.hasOwnProperty,Xh=Un.call(Object);function Kh(t){if(!Ke(t)||ve(t)!=Uh)return!1;var e=zn(t);if(e===null)return!0;var i=Vh.call(e,"constructor")&&e.constructor;return typeof i=="function"&&i instanceof i&&Un.call(i)==Xh}var Zh="[object Arguments]",Jh="[object Array]",Qh="[object Boolean]",tc="[object Date]",ec="[object Error]",ic="[object Function]",rc="[object Map]",oc="[object Number]",nc="[object Object]",sc="[object RegExp]",ac="[object Set]",lc="[object String]",hc="[object WeakMap]",cc="[object ArrayBuffer]",uc="[object DataView]",dc="[object Float32Array]",fc="[object Float64Array]",pc="[object Int8Array]",gc="[object Int16Array]",mc="[object Int32Array]",Cc="[object Uint8Array]",_c="[object Uint8ClampedArray]",yc="[object Uint16Array]",bc="[object Uint32Array]",G={};G[dc]=G[fc]=G[pc]=G[gc]=G[mc]=G[Cc]=G[_c]=G[yc]=G[bc]=!0;G[Zh]=G[Jh]=G[cc]=G[Qh]=G[uc]=G[tc]=G[ec]=G[ic]=G[rc]=G[oc]=G[nc]=G[sc]=G[ac]=G[lc]=G[hc]=!1;function xc(t){return Ke(t)&&jn(t.length)&&!!G[ve(t)]}function Tc(t){return function(e){return t(e)}}var Yn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Re=Yn&&typeof module=="object"&&module&&!module.nodeType&&module,kc=Re&&Re.exports===Yn,or=kc&&Pn.process,jo=function(){try{var t=Re&&Re.require&&Re.require("util").types;return t||or&&or.binding&&or.binding("util")}catch{}}(),Ho=jo&&jo.isTypedArray,Sc=Ho?Tc(Ho):xc;const Mr=Sc;function pr(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var vc=Object.prototype,Bc=vc.hasOwnProperty;function Lc(t,e,i){var r=t[e];(!(Bc.call(t,e)&&Ei(r,i))||i===void 0&&!(e in t))&&Er(t,e,i)}function Fc(t,e,i,r){var o=!i;i||(i={});for(var n=-1,s=e.length;++n -1&&t%1==0&&t0){if(++e>=Yc)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Kc=Xc(Uc);function Zc(t,e){return Kc(Wc(t,e,Kn),t+"")}function Jc(t,e,i){if(!ae(i))return!1;var r=typeof e;return(r=="number"?Di(i)&&Gn(e,i.length):r=="string"&&e in i)?Ei(i[e],t):!1}function Qc(t){return Zc(function(e,i){var r=-1,o=i.length,n=o>1?i[o-1]:void 0,s=o>2?i[2]:void 0;for(n=t.length>3&&typeof n=="function"?(o--,n):void 0,s&&Jc(i[0],i[1],s)&&(n=o<3?void 0:n,o=1),e=Object(e);++r 0?He(Le,--Tt):0,be--,J===10&&(be=1,$i--),J}function vt(){return J=Tt 2||gr(J)>3?"":" "}function uu(t,e){for(;--e&&vt()&&!(J<48||J>102||J>57&&J<65||J>70&&J<97););return Pi(t,hi()+(e<6&&re()==32&&vt()==32))}function mr(t){for(;vt();)switch(J){case t:return Tt;case 34:case 39:t!==34&&t!==39&&mr(J);break;case 40:t===41&&mr(t);break;case 92:vt();break}return Tt}function du(t,e){for(;vt()&&t+J!==57;)if(t+J===84&&re()===47)break;return"/*"+Pi(e,Tt-1)+"*"+Ir(t===47?t:vt())}function fu(t){for(;!gr(re());)vt();return Pi(t,Tt)}function pu(t){return hu(ci("",null,null,null,[""],t=lu(t),0,[0],t))}function ci(t,e,i,r,o,n,s,a,l){for(var d=0,g=0,f=s,h=0,p=0,T=0,M=1,E=1,N=1,x=0,W="",U=o,V=n,X=r,z=W;E;)switch(T=x,x=vt()){case 40:if(T!=108&&He(z,f-1)==58){ou(z+=li(nr(x),"&","&\f"),"&\f",ts(d?a[d-1]:0))!=-1&&(N=-1);break}case 34:case 39:case 91:z+=nr(x);break;case 9:case 10:case 13:case 32:z+=cu(T);break;case 92:z+=uu(hi()-1,7);continue;case 47:switch(re()){case 42:case 47:oi(gu(du(vt(),hi()),e,i,l),l);break;default:z+="/"}break;case 123*M:a[d++]=Nt(z)*N;case 125*M:case 59:case 0:switch(x){case 0:case 125:E=0;case 59+g:N==-1&&(z=li(z,/\f/g,"")),p>0&&Nt(z)-f&&oi(p>32?Go(z+";",r,i,f-1,l):Go(li(z," ","")+";",r,i,f-2,l),l);break;case 59:z+=";";default:if(oi(X=Yo(z,e,i,d,g,o,a,W,U=[],V=[],f,n),n),x===123)if(g===0)ci(z,e,X,X,U,n,f,a,V);else switch(h===99&&He(z,3)===110?100:h){case 100:case 108:case 109:case 115:ci(t,X,X,r&&oi(Yo(t,X,X,0,0,o,a,W,o,U=[],f,V),V),o,V,f,a,r?U:V);break;default:ci(z,X,X,X,[""],V,0,a,V)}}d=g=p=0,M=N=1,W=z="",f=s;break;case 58:f=1+Nt(z),p=T;default:if(M<1){if(x==123)--M;else if(x==125&&M++==0&&au()==125)continue}switch(z+=Ir(x),x*M){case 38:N=g>0?1:(z+="\f",-1);break;case 44:a[d++]=(Nt(z)-1)*N,N=1;break;case 64:re()===45&&(z+=nr(vt())),h=re(),g=f=Nt(W=z+=fu(hi())),x++;break;case 45:T===45&&Nt(z)==2&&(M=0)}}return n}function Yo(t,e,i,r,o,n,s,a,l,d,g,f){for(var h=o-1,p=o===0?n:[""],T=nu(p),M=0,E=0,N=0;M 0?p[x]+" "+W:li(W,/&\f/g,p[x])))&&(l[N++]=U);return Dr(t,e,i,o===0?Jn:a,l,d,g,f)}function gu(t,e,i,r){return Dr(t,e,i,Zn,Ir(su()),Ue(t,2,-2),0,r)}function Go(t,e,i,r,o){return Dr(t,e,i,Qn,Ue(t,0,r),Ue(t,r+1,-1),r,o)}function Cr(t,e){for(var i="",r=0;r {},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},$r=function(t="fatal"){let e=Pt.fatal;typeof t=="string"?(t=t.toLowerCase(),t in Pt&&(e=Pt[t])):typeof t=="number"&&(e=t),w.trace=()=>{},w.debug=()=>{},w.info=()=>{},w.warn=()=>{},w.error=()=>{},w.fatal=()=>{},e<=Pt.fatal&&(w.fatal=console.error?console.error.bind(console,yt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",yt("FATAL"))),e<=Pt.error&&(w.error=console.error?console.error.bind(console,yt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",yt("ERROR"))),e<=Pt.warn&&(w.warn=console.warn?console.warn.bind(console,yt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",yt("WARN"))),e<=Pt.info&&(w.info=console.info?console.info.bind(console,yt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",yt("INFO"))),e<=Pt.debug&&(w.debug=console.debug?console.debug.bind(console,yt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",yt("DEBUG"))),e<=Pt.trace&&(w.trace=console.debug?console.debug.bind(console,yt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",yt("TRACE")))},yt=t=>`%c${Ua().format("ss.SSS")} : ${t} : `,Ri=/
/gi,Ou=t=>t?os(t).replace(/\\n/g,"#br#").split("#br#"):[""],Mu=(()=>{let t=!1;return()=>{t||(Iu(),t=!0)}})();function Iu(){const t="data-temp-href-target";ye.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")||"")}),ye.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)||""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}const rs=t=>(Mu(),ye.sanitize(t)),Qo=(t,e)=>{var i;if(((i=e.flowchart)==null?void 0:i.htmlLabels)!==!1){const r=e.securityLevel;r==="antiscript"||r==="strict"?t=rs(t):r!=="loose"&&(t=os(t),t=t.replace(//g,">"),t=t.replace(/=/g,"="),t=Ru(t))}return t},Ye=(t,e)=>t&&(e.dompurifyConfig?t=ye.sanitize(Qo(t,e),e.dompurifyConfig).toString():t=ye.sanitize(Qo(t,e),{FORBID_TAGS:["style"]}).toString(),t),Du=(t,e)=>typeof t=="string"?Ye(t,e):t.flat().map(i=>Ye(i,e)),$u=t=>Ri.test(t),Pu=t=>t.split(Ri),Ru=t=>t.replace(/#br#/g,"
"),os=t=>t.replace(Ri,"#br#"),Nu=t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},ns=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),qu=function(...t){const e=t.filter(i=>!isNaN(i));return Math.max(...e)},zu=function(...t){const e=t.filter(i=>!isNaN(i));return Math.min(...e)},EC=function(t){const e=t.split(/(,)/),i=[];for(let r=0;r0&&r+1 Math.max(0,t.split(e).length-1),Wu=(t,e)=>{const i=Tr(t,"~"),r=Tr(e,"~");return i===1&&r===1},ju=t=>{const e=Tr(t,"~");let i=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),i=!0);const r=[...t];let o=r.indexOf("~"),n=r.lastIndexOf("~");for(;o!==-1&&n!==-1&&o!==n;)r[o]="<",r[n]=">",o=r.indexOf("~"),n=r.lastIndexOf("~");return i&&r.unshift("~"),r.join("")},Pr={getRows:Ou,sanitizeText:Ye,sanitizeTextOrArray:Du,hasBreaks:$u,splitBreaks:Pu,lineBreakRegex:Ri,removeScript:rs,getUrl:Nu,evaluate:ns,getMax:qu,getMin:zu},ct=(t,e)=>e?u(t,{s:-40,l:10}):u(t,{s:-40,l:-10}),Ni="#ffffff",qi="#f2f2f2";let Hu=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,i,r,o,n,s,a,l,d,g,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||u(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||u(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ct(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ct(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ct(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ct(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||_(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||_(this.tertiaryColor),this.lineColor=this.lineColor||_(this.background),this.arrowheadColor=this.arrowheadColor||_(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?O(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||O(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||_(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||L(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||u(this.primaryColor,{h:30}),this.cScale4=this.cScale4||u(this.primaryColor,{h:60}),this.cScale5=this.cScale5||u(this.primaryColor,{h:90}),this.cScale6=this.cScale6||u(this.primaryColor,{h:120}),this.cScale7=this.cScale7||u(this.primaryColor,{h:150}),this.cScale8=this.cScale8||u(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||u(this.primaryColor,{h:270}),this.cScale10=this.cScale10||u(this.primaryColor,{h:300}),this.cScale11=this.cScale11||u(this.primaryColor,{h:330}),this.darkMode)for(let p=0;p {this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Uu=t=>{const e=new Hu;return e.calculate(t),e};let Yu=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=L(this.primaryColor,16),this.tertiaryColor=u(this.primaryColor,{h:-160}),this.primaryBorderColor=_(this.background),this.secondaryBorderColor=ct(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ct(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.tertiaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=L(_("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Pe(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=O("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=O(this.sectionBkgColor,10),this.taskBorderColor=Pe(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Pe(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,i,r,o,n,s,a,l,d,g,f;this.secondBkg=L(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=L(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=L(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=u(this.primaryColor,{h:64}),this.fillType3=u(this.secondaryColor,{h:64}),this.fillType4=u(this.primaryColor,{h:-64}),this.fillType5=u(this.secondaryColor,{h:-64}),this.fillType6=u(this.primaryColor,{h:128}),this.fillType7=u(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||u(this.primaryColor,{h:30}),this.cScale4=this.cScale4||u(this.primaryColor,{h:60}),this.cScale5=this.cScale5||u(this.primaryColor,{h:90}),this.cScale6=this.cScale6||u(this.primaryColor,{h:120}),this.cScale7=this.cScale7||u(this.primaryColor,{h:150}),this.cScale8=this.cScale8||u(this.primaryColor,{h:210}),this.cScale9=this.cScale9||u(this.primaryColor,{h:270}),this.cScale10=this.cScale10||u(this.primaryColor,{h:300}),this.cScale11=this.cScale11||u(this.primaryColor,{h:330});for(let h=0;h {this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Gu=t=>{const e=new Yu;return e.calculate(t),e};let Vu=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=u(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=u(this.primaryColor,{h:-160}),this.primaryBorderColor=ct(this.primaryColor,this.darkMode),this.secondaryBorderColor=ct(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ct(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.tertiaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=Pe(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,i,r,o,n,s,a,l,d,g,f;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||u(this.primaryColor,{h:30}),this.cScale4=this.cScale4||u(this.primaryColor,{h:60}),this.cScale5=this.cScale5||u(this.primaryColor,{h:90}),this.cScale6=this.cScale6||u(this.primaryColor,{h:120}),this.cScale7=this.cScale7||u(this.primaryColor,{h:150}),this.cScale8=this.cScale8||u(this.primaryColor,{h:210}),this.cScale9=this.cScale9||u(this.primaryColor,{h:270}),this.cScale10=this.cScale10||u(this.primaryColor,{h:300}),this.cScale11=this.cScale11||u(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||O(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||O(this.tertiaryColor,40);for(let h=0;h {this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Xu=t=>{const e=new Vu;return e.calculate(t),e};let Ku=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=L("#cde498",10),this.primaryBorderColor=ct(this.primaryColor,this.darkMode),this.secondaryBorderColor=ct(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ct(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.primaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,o,n,s,a,l,d,g,f;this.actorBorder=O(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||u(this.primaryColor,{h:30}),this.cScale4=this.cScale4||u(this.primaryColor,{h:60}),this.cScale5=this.cScale5||u(this.primaryColor,{h:90}),this.cScale6=this.cScale6||u(this.primaryColor,{h:120}),this.cScale7=this.cScale7||u(this.primaryColor,{h:150}),this.cScale8=this.cScale8||u(this.primaryColor,{h:210}),this.cScale9=this.cScale9||u(this.primaryColor,{h:270}),this.cScale10=this.cScale10||u(this.primaryColor,{h:300}),this.cScale11=this.cScale11||u(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||O(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||O(this.tertiaryColor,40);for(let h=0;h {this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Zu=t=>{const e=new Ku;return e.calculate(t),e};class Ju{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=L(this.contrast,55),this.background="#ffffff",this.tertiaryColor=u(this.primaryColor,{h:-160}),this.primaryBorderColor=ct(this.primaryColor,this.darkMode),this.secondaryBorderColor=ct(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ct(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.tertiaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,o,n,s,a,l,d,g,f;this.secondBkg=L(this.contrast,55),this.border2=this.contrast,this.actorBorder=L(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let h=0;h {this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}}const Qu=t=>{const e=new Ju;return e.calculate(t),e},zt={base:{getThemeVariables:Uu},dark:{getThemeVariables:Gu},default:{getThemeVariables:Xu},forest:{getThemeVariables:Zu},neutral:{getThemeVariables:Qu}},Rt={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],deterministicIds:!1,fontSize:16},ss={...Rt,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:zt.default.getThemeVariables(),sequence:{...Rt.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...Rt.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Rt.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...Rt.pie,useWidth:984},xyChart:{...Rt.xyChart,useWidth:void 0},requirement:{...Rt.requirement,useWidth:void 0},gitGraph:{...Rt.gitGraph,useMaxWidth:!1},sankey:{...Rt.sankey,useMaxWidth:!1}},as=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:typeof t[r]=="object"&&t[r]!==null?[...i,e+r,...as(t[r],"")]:[...i,e+r],[]),td=new Set(as(ss,"")),ed=ss,yi=t=>{if(w.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>yi(e));return}for(const e of Object.keys(t)){if(w.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!td.has(e)||t[e]==null){w.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){w.debug("sanitizing object",e),yi(t[e]);continue}const i=["themeCSS","fontFamily","altFontFamily"];for(const r of i)e.includes(r)&&(w.debug("sanitizing css option",e),t[e]=id(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const i=t.themeVariables[e];i!=null&&i.match&&!i.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}w.debug("After sanitization",t)}},id=t=>{let e=0,i=0;for(const r of t){if(e{for(const{id:e,detector:i,loader:r}of t)us(e,i,r)},us=(t,e,i)=>{xe[t]?w.error(`Detector with key ${t} already exists`):xe[t]={detector:e,loader:i},w.debug(`Detector with key ${t} added${i?" with loader":""}`)},od=t=>xe[t].loader,kr=(t,e,{depth:i=2,clobber:r=!1}={})=>{const o={depth:i,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(n=>kr(t,n,o)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(n=>{t.includes(n)||t.push(n)}),t):t===void 0||i<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(n=>{typeof e[n]=="object"&&(t[n]===void 0||typeof t[n]=="object")?(t[n]===void 0&&(t[n]=Array.isArray(e[n])?[]:{}),t[n]=kr(t[n],e[n],{depth:i-1,clobber:r})):(r||typeof t[n]!="object"&&typeof e[n]!="object")&&(t[n]=e[n])}),t)},st=kr,nd="",sd={curveBasis:Ba,curveBasisClosed:La,curveBasisOpen:Fa,curveBumpX:ka,curveBumpY:Sa,curveBundle:Aa,curveCardinalClosed:Ea,curveCardinalOpen:Oa,curveCardinal:wa,curveCatmullRomClosed:Ia,curveCatmullRomOpen:Da,curveCatmullRom:Ma,curveLinear:va,curveLinearClosed:$a,curveMonotoneX:Pa,curveMonotoneY:Ra,curveNatural:Na,curveStep:qa,curveStepAfter:Wa,curveStepBefore:za},ad=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,ld=function(t,e){const i=ds(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const s=i.map(a=>a.args);yi(s),r=st(r,[...s])}else r=i.args;if(!r)return;let o=zi(t,e);const n="config";return r[n]!==void 0&&(o==="flowchart-v2"&&(o="flowchart"),r[o]=r[n],delete r[n]),r},ds=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${ad.source})(?=[}][%]{2}).* +`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),w.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const o=[];for(;(r=Ne.exec(t))!==null;)if(r.index===Ne.lastIndex&&Ne.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const n=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;o.push({type:n,args:s})}return o.length===0?{type:t,args:null}:o.length===1?o[0]:o}catch(i){return w.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},hd=function(t){return t.replace(Ne,"")},cd=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function ud(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return sd[i]??e}function dd(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?An.sanitizeUrl(i):i}const fd=(t,...e)=>{const i=t.split("."),r=i.length-1,o=i[r];let n=window;for(let s=0;s {i+=fs(o,e),e=o});const r=i/2;return Rr(t,r)}function gd(t){return t.length===1?t[0]:pd(t)}const tn=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Rr=(t,e)=>{let i,r=e;for(const o of t){if(i){const n=fs(o,i);if(n =1)return{x:o.x,y:o.y};if(s>0&&s<1)return{x:tn((1-s)*i.x+s*o.x,5),y:tn((1-s)*i.y+s*o.y,5)}}}i=o}throw new Error("Could not find a suitable point for the given distance")},md=(t,e,i)=>{w.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const o=Rr(e,25),n=t?10:5,s=Math.atan2(e[0].y-o.y,e[0].x-o.x),a={x:0,y:0};return a.x=Math.sin(s)*n+(e[0].x+o.x)/2,a.y=-Math.cos(s)*n+(e[0].y+o.y)/2,a};function Cd(t,e,i){const r=structuredClone(i);w.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const o=25+t,n=Rr(r,o),s=10+t*.5,a=Math.atan2(r[0].y-n.y,r[0].x-n.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+n.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+n.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+n.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+n.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+n.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+n.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+n.x)/2,l.y=-Math.cos(a)*s+(r[0].y+n.y)/2),l}function _d(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let en=0;const yd=()=>(en++,"id-"+Math.random().toString(36).substr(2,12)+"-"+en);function bd(t){let e="";const i="0123456789abcdef",r=i.length;for(let o=0;o bd(t.length),Td=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},kd=function(t,e){const i=e.text.replace(Pr.lineBreakRegex," "),[,r]=qr(e.fontSize),o=t.append("text");o.attr("x",e.x),o.attr("y",e.y),o.style("text-anchor",e.anchor),o.style("font-family",e.fontFamily),o.style("font-size",r),o.style("font-weight",e.fontWeight),o.attr("fill",e.fill),e.class!==void 0&&o.attr("class",e.class);const n=o.append("tspan");return n.attr("x",e.x+e.textMargin*2),n.attr("fill",e.fill),n.text(i),o},Sd=Xe((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},i),Pr.lineBreakRegex.test(t)))return t;const r=t.split(" "),o=[];let n="";return r.forEach((s,a)=>{const l=bi(`${s} `,i),d=bi(n,i);if(l>e){const{hyphenatedStrings:h,remainingWord:p}=vd(s,e,"-",i);o.push(n,...h),n=p}else d+l>=e?(o.push(n),n=s):n=[n,s].filter(Boolean).join(" ");a+1===r.length&&o.push(n)}),o.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),vd=Xe((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const o=[...t],n=[];let s="";return o.forEach((a,l)=>{const d=`${s}${a}`;if(bi(d,r)>=e){const f=l+1,h=o.length===f,p=`${d}${i}`;n.push(h?d:p),s=""}else s=d}),{hyphenatedStrings:n,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function Bd(t,e){return Nr(t,e).height}function bi(t,e){return Nr(t,e).width}const Nr=Xe((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:o=400}=e;if(!t)return{width:0,height:0};const[,n]=qr(i),s=["sans-serif",r],a=t.split(Pr.lineBreakRegex),l=[],d=bt("body");if(!d.remove)return{width:0,height:0,lineHeight:0};const g=d.append("svg");for(const h of s){let p=0;const T={width:0,height:0,lineHeight:0};for(const M of a){const E=Td();E.text=M||nd;const N=kd(g,E).style("font-size",n).style("font-weight",o).style("font-family",h),x=(N._groups||N)[0][0].getBBox();if(x.width===0&&x.height===0)throw new Error("svg element not in render tree");T.width=Math.round(Math.max(T.width,x.width)),p=Math.round(x.height),T.height+=p,T.lineHeight=Math.round(Math.max(T.lineHeight,p))}l.push(T)}g.remove();const f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class Ld{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let ni;const Fd=function(t){return ni=ni||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ni.innerHTML=t,unescape(ni.textContent)};function ps(t){return"str"in t}const Ad=(t,e,i,r)=>{var o;if(!r)return;const n=(o=t.node())==null?void 0:o.getBBox();n&&t.append("text").text(r).attr("x",n.x+n.width/2).attr("y",-i).attr("class",e)},qr=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function gs(t,e){return tu({},t,e)}const qe={assignWithDepth:st,wrapLabel:Sd,calculateTextHeight:Bd,calculateTextWidth:bi,calculateTextDimensions:Nr,cleanAndMerge:gs,detectInit:ld,detectDirective:ds,isSubstringInArray:cd,interpolateToCurve:ud,calcLabelPosition:gd,calcCardinalityPosition:md,calcTerminalLabelPosition:Cd,formatUrl:dd,getStylesFromArray:_d,generateId:yd,random:xd,runFunc:fd,entityDecode:Fd,insertTitle:Ad,parseFontSize:qr,InitIDGenerator:Ld},wd=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},Ed=function(t){return t.replace(/fl°°/g,"").replace(/fl°/g,"&").replace(/¶ß/g,";")},rn="10.8.0",Te=Object.freeze(ed);let pt=st({},Te),ms,ke=[],ze=st({},Te);const Wi=(t,e)=>{let i=st({},t),r={};for(const o of e)ys(o),r=st(r,o);if(i=st(i,r),r.theme&&r.theme in zt){const o=st({},ms),n=st(o.themeVariables||{},r.themeVariables);i.theme&&i.theme in zt&&(i.themeVariables=zt[i.theme].getThemeVariables(n))}return ze=i,bs(ze),ze},Od=t=>(pt=st({},Te),pt=st(pt,t),t.theme&&zt[t.theme]&&(pt.themeVariables=zt[t.theme].getThemeVariables(t.themeVariables)),Wi(pt,ke),pt),Md=t=>{ms=st({},t)},Id=t=>(pt=st(pt,t),Wi(pt,ke),pt),Cs=()=>st({},pt),_s=t=>(bs(t),st(ze,t),Ot()),Ot=()=>st({},ze),ys=t=>{t&&(["secure",...pt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(w.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&ys(t[e])}))},Dd=t=>{yi(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),ke.push(t),Wi(pt,ke)},xi=(t=pt)=>{ke=[],Wi(t,ke)},$d={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},on={},Pd=t=>{on[t]||(w.warn($d[t]),on[t]=!0)},bs=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Pd("LAZY_LOAD_DEPRECATED")},xs="c4",Rd=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),Nd=async()=>{const{diagram:t}=await K(()=>import("./c4Diagram-b947cdbb-BRp46x0r.js"),__vite__mapDeps([0,1,2,3,4]));return{id:xs,diagram:t}},qd={id:xs,detector:Rd,loader:Nd},zd=qd,Ts="flowchart",Wd=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},jd=async()=>{const{diagram:t}=await K(()=>import("./flowDiagram-d949d7c1-CGU3vFTh.js"),__vite__mapDeps([5,6,1,7,8,9,10,11,12,13,14,15,16,17,18,3,4]));return{id:Ts,diagram:t}},Hd={id:Ts,detector:Wd,loader:jd},Ud=Hd,ks="flowchart-v2",Yd=(t,e)=>{var i,r,o;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((o=e==null?void 0:e.flowchart)==null?void 0:o.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},Gd=async()=>{const{diagram:t}=await K(()=>import("./flowDiagram-v2-49332944-D_yLtD2Y.js"),__vite__mapDeps([19,6,1,9,7,10,8,11,12,13,14,15,16,17,18,3,4]));return{id:ks,diagram:t}},Vd={id:ks,detector:Yd,loader:Gd},Xd=Vd,Ss="er",Kd=t=>/^\s*erDiagram/.test(t),Zd=async()=>{const{diagram:t}=await K(()=>import("./erDiagram-0ea73325-DDh1kOjw.js"),__vite__mapDeps([20,7,1,8,14,15,16,17,3,4]));return{id:Ss,diagram:t}},Jd={id:Ss,detector:Kd,loader:Zd},Qd=Jd,vs="gitGraph",tf=t=>/^\s*gitGraph/.test(t),ef=async()=>{const{diagram:t}=await K(()=>import("./gitGraphDiagram-b9d81de9-DN5XeNuY.js"),__vite__mapDeps([21,1,3,4]));return{id:vs,diagram:t}},rf={id:vs,detector:tf,loader:ef},of=rf,Bs="gantt",nf=t=>/^\s*gantt/.test(t),sf=async()=>{const{diagram:t}=await K(()=>import("./ganttDiagram-5c869e3b-CNUNrheC.js"),__vite__mapDeps([22,4,1,23,24,25,3]));return{id:Bs,diagram:t}},af={id:Bs,detector:nf,loader:sf},lf=af,Ls="info",hf=t=>/^\s*info/.test(t),cf=async()=>{const{diagram:t}=await K(()=>import("./infoDiagram-db7b18fc-D3ZtchT6.js"),__vite__mapDeps([26,1,3,4]));return{id:Ls,diagram:t}},uf={id:Ls,detector:hf,loader:cf},Fs="pie",df=t=>/^\s*pie/.test(t),ff=async()=>{const{diagram:t}=await K(()=>import("./pieDiagram-b0208e96-Bmabxet2.js"),__vite__mapDeps([27,1,28,16,29,24,15,3,4]));return{id:Fs,diagram:t}},pf={id:Fs,detector:df,loader:ff},As="quadrantChart",gf=t=>/^\s*quadrantChart/.test(t),mf=async()=>{const{diagram:t}=await K(()=>import("./quadrantDiagram-0332be45-DOALn8Ka.js"),__vite__mapDeps([30,1,23,24,3,4]));return{id:As,diagram:t}},Cf={id:As,detector:gf,loader:mf},_f=Cf,ws="xychart",yf=t=>/^\s*xychart-beta/.test(t),bf=async()=>{const{diagram:t}=await K(()=>import("./xychartDiagram-e50adddc-H5F3Uvmc.js"),__vite__mapDeps([31,13,1,24,29,23,14,15,16,17,3,4]));return{id:ws,diagram:t}},xf={id:ws,detector:yf,loader:bf},Tf=xf,Es="requirement",kf=t=>/^\s*requirement(Diagram)?/.test(t),Sf=async()=>{const{diagram:t}=await K(()=>import("./requirementDiagram-bf7890df-DqqaT5yu.js"),__vite__mapDeps([32,1,7,8,14,15,16,17,3,4]));return{id:Es,diagram:t}},vf={id:Es,detector:kf,loader:Sf},Bf=vf,Os="sequence",Lf=t=>/^\s*sequenceDiagram/.test(t),Ff=async()=>{const{diagram:t}=await K(()=>import("./sequenceDiagram-c18d009d-CTRgBsdL.js"),__vite__mapDeps([33,1,2,3,4]));return{id:Os,diagram:t}},Af={id:Os,detector:Lf,loader:Ff},wf=Af,Ms="class",Ef=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},Of=async()=>{const{diagram:t}=await K(()=>import("./classDiagram-35230388-CZnYBVkX.js"),__vite__mapDeps([34,35,1,7,8,14,15,16,17,3,4]));return{id:Ms,diagram:t}},Mf={id:Ms,detector:Ef,loader:Of},If=Mf,Is="classDiagram",Df=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},$f=async()=>{const{diagram:t}=await K(()=>import("./classDiagram-v2-412acd34-D3Y9KYhG.js"),__vite__mapDeps([36,35,1,7,10,8,11,12,13,14,15,16,17,3,4]));return{id:Is,diagram:t}},Pf={id:Is,detector:Df,loader:$f},Rf=Pf,Ds="state",Nf=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},qf=async()=>{const{diagram:t}=await K(()=>import("./stateDiagram-43596fc0-DC75FSgY.js"),__vite__mapDeps([37,38,1,7,8,14,15,16,17,3,4]));return{id:Ds,diagram:t}},zf={id:Ds,detector:Nf,loader:qf},Wf=zf,$s="stateDiagram",jf=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},Hf=async()=>{const{diagram:t}=await K(()=>import("./stateDiagram-v2-2ead4f9c-CqYXaBnU.js"),__vite__mapDeps([39,38,7,1,10,8,11,12,13,14,15,16,17,3,4]));return{id:$s,diagram:t}},Uf={id:$s,detector:jf,loader:Hf},Yf=Uf,Ps="journey",Gf=t=>/^\s*journey/.test(t),Vf=async()=>{const{diagram:t}=await K(()=>import("./journeyDiagram-d5636530-ajDokXEJ.js"),__vite__mapDeps([40,1,2,28,16,3,4]));return{id:Ps,diagram:t}},Xf={id:Ps,detector:Gf,loader:Vf},Kf=Xf,Zf=function(t,e){for(let i of e)t.attr(i[0],i[1])},Jf=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},Rs=function(t,e,i,r){const o=Jf(e,i,r);Zf(t,o)},Qf=function(t,e,i,r){const o=e.node().getBBox(),n=o.width,s=o.height;w.info(`SVG bounds: ${n}x${s}`,o);let a=0,l=0;w.info(`Graph bounds: ${a}x${l}`,t),a=n+i*2,l=s+i*2,w.info(`Calculated bounds: ${a}x${l}`),Rs(e,l,a,r);const d=`${o.x-i} ${o.y-i} ${o.width+2*i} ${o.height+2*i}`;e.attr("viewBox",d)},ui={},tp=(t,e,i)=>{let r="";return t in ui&&ui[t]?r=ui[t](i):w.warn(`No theme found for ${t}`),` & { + font-family: ${i.fontFamily}; + font-size: ${i.fontSize}; + fill: ${i.textColor} + } + + /* Classes common for multiple diagrams */ + + & .error-icon { + fill: ${i.errorBkgColor}; + } + & .error-text { + fill: ${i.errorTextColor}; + stroke: ${i.errorTextColor}; + } + + & .edge-thickness-normal { + stroke-width: 2px; + } + & .edge-thickness-thick { + stroke-width: 3.5px + } + & .edge-pattern-solid { + stroke-dasharray: 0; + } + + & .edge-pattern-dashed{ + stroke-dasharray: 3; + } + .edge-pattern-dotted { + stroke-dasharray: 2; + } + + & .marker { + fill: ${i.lineColor}; + stroke: ${i.lineColor}; + } + & .marker.cross { + stroke: ${i.lineColor}; + } + + & svg { + font-family: ${i.fontFamily}; + font-size: ${i.fontSize}; + } + + ${r} + + ${e} +`},ep=(t,e)=>{e!==void 0&&(ui[t]=e)},ip=tp;let zr="",Wr="",jr="";const Hr=t=>Ye(t,Ot()),rp=()=>{zr="",jr="",Wr=""},op=t=>{zr=Hr(t).replace(/^\s+/g,"")},np=()=>zr,sp=t=>{jr=Hr(t).replace(/\n\s+/g,` +`)},ap=()=>jr,lp=t=>{Wr=Hr(t)},hp=()=>Wr,cp=Object.freeze(Object.defineProperty({__proto__:null,clear:rp,getAccDescription:ap,getAccTitle:np,getDiagramTitle:hp,setAccDescription:sp,setAccTitle:op,setDiagramTitle:lp},Symbol.toStringTag,{value:"Module"})),up=w,dp=$r,Ur=Ot,$C=_s,PC=Te,fp=t=>Ye(t,Ur()),pp=Qf,gp=()=>cp,Ti={},ki=(t,e,i)=>{var r;if(Ti[t])throw new Error(`Diagram ${t} already registered.`);Ti[t]=e,i&&us(t,i),ep(t,e.styles),(r=e.injectUtils)==null||r.call(e,up,dp,Ur,fp,pp,gp(),()=>{})},Yr=t=>{if(t in Ti)return Ti[t];throw new mp(t)};class mp extends Error{constructor(e){super(`Diagram ${e} not found.`)}}const Cp=t=>{var e;const{securityLevel:i}=Ur();let r=bt("body");if(i==="sandbox"){const s=((e=bt(`#i${t}`).node())==null?void 0:e.contentDocument)??document;r=bt(s.body)}return r.select(`#${t}`)},_p=(t,e,i)=>{w.debug(`rendering svg for syntax error +`);const r=Cp(e);r.attr("viewBox","0 0 2412 512"),Rs(r,100,512,!0);const o=r.append("g");o.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),o.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),o.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),o.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),o.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),o.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),o.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},Ns={draw:_p},yp=Ns,bp={db:{},renderer:Ns,parser:{parser:{yy:{}},parse:()=>{}}},xp=bp,qs="flowchart-elk",Tp=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},kp=async()=>{const{diagram:t}=await K(()=>import("./flowchart-elk-definition-27cc417a-B3eF_iG6.js"),__vite__mapDeps([41,6,1,12,13,14,15,16,17,4,3]));return{id:qs,diagram:t}},Sp={id:qs,detector:Tp,loader:kp},vp=Sp,zs="timeline",Bp=t=>/^\s*timeline/.test(t),Lp=async()=>{const{diagram:t}=await K(()=>import("./timeline-definition-d977decf-D-T2V-TE.js"),__vite__mapDeps([42,1,28,16,3,4]));return{id:zs,diagram:t}},Fp={id:zs,detector:Bp,loader:Lp},Ap=Fp,Ws="mindmap",wp=t=>/^\s*mindmap/.test(t),Ep=async()=>{const{diagram:t}=await K(()=>import("./mindmap-definition-377f8f1f-B8DWANl-.js"),__vite__mapDeps([43,4,1,13,3]));return{id:Ws,diagram:t}},Op={id:Ws,detector:wp,loader:Ep},Mp=Op,js="sankey",Ip=t=>/^\s*sankey-beta/.test(t),Dp=async()=>{const{diagram:t}=await K(()=>import("./sankeyDiagram-0acdec17-mzs4BoQx.js"),__vite__mapDeps([44,1,29,24,45,46,3,4]));return{id:js,diagram:t}},$p={id:js,detector:Ip,loader:Dp},Pp=$p,Hs="block",Rp=t=>/^\s*block-beta/.test(t),Np=async()=>{const{diagram:t}=await K(()=>import("./blockDiagram-6b2b5046-BDUGhPHT.js"),__vite__mapDeps([47,11,7,12,1,13,14,15,16,17,29,24,18,45,46,3,4]));return{id:Hs,diagram:t}},qp={id:Hs,detector:Rp,loader:Np},zp=qp;let nn=!1;const Gr=()=>{nn||(nn=!0,ki("error",xp,t=>t.toLowerCase().trim()==="error"),ki("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),cs(zd,Rf,If,Qd,lf,uf,pf,Bf,wf,vp,Xd,Ud,Mp,Ap,of,Yf,Wf,Kf,_f,Pp,Tf,zp))};class Us{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=wd(e),this.text+=` +`;const r=Ot();try{this.type=zi(e,r)}catch(n){this.type="error",this.detectError=n}const o=Yr(this.type);w.debug("Type "+this.type),this.db=o.db,this.renderer=o.renderer,this.parser=o.parser,this.parser.parser.yy=this.db,this.init=o.init,this.parse()}parse(){var e,i,r,o,n;if(this.detectError)throw this.detectError;(i=(e=this.db).clear)==null||i.call(e);const s=Ot();(r=this.init)==null||r.call(this,s),this.metadata.title&&((n=(o=this.db).setDiagramTitle)==null||n.call(o,this.metadata.title)),this.parser.parse(this.text)}async render(e,i){await this.renderer.draw(this.text,e,i,this)}getParser(){return this.parser}getType(){return this.type}}const Wp=async(t,e={})=>{const i=zi(t,Ot());try{Yr(i)}catch{const o=od(i);if(!o)throw new hs(`Diagram ${i} not found.`);const{id:n,diagram:s}=await o();ki(n,s)}return new Us(t,e)};let sn=[];const jp=()=>{sn.forEach(t=>{t()}),sn=[]},Hp="graphics-document document";function Up(t,e){t.attr("role",Hp),e!==""&&t.attr("aria-roledescription",e)}function Yp(t,e,i,r){if(t.insert!==void 0){if(i){const o=`chart-desc-${r}`;t.attr("aria-describedby",o),t.insert("desc",":first-child").attr("id",o).text(i)}if(e){const o=`chart-title-${r}`;t.attr("aria-labelledby",o),t.insert("title",":first-child").attr("id",o).text(e)}}}const Gp=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Ys(t){return typeof t>"u"||t===null}function Vp(t){return typeof t=="object"&&t!==null}function Xp(t){return Array.isArray(t)?t:Ys(t)?[]:[t]}function Kp(t,e){var i,r,o,n;if(e)for(n=Object.keys(e),i=0,r=n.length;ia&&(n=" ... ",e=r-a+n.length),i-r>a&&(s=" ...",i=r+a-s.length),{str:n+t.slice(e,i).replace(/\t/g,"→")+s,pos:r-e+n.length}}function lr(t,e){return ht.repeat(" ",e-t.length)+t}function ng(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],o=[],n,s=-1;n=i.exec(t.buffer);)o.push(n.index),r.push(n.index+n[0].length),t.position<=n.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var a="",l,d,g=Math.min(t.line+e.linesAfter,o.length).toString().length,f=e.maxLength-(e.indent+g+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)d=ar(t.buffer,r[s-l],o[s-l],t.position-(r[s]-r[s-l]),f),a=ht.repeat(" ",e.indent)+lr((t.line-l+1).toString(),g)+" | "+d.str+` +`+a;for(d=ar(t.buffer,r[s],o[s],t.position,f),a+=ht.repeat(" ",e.indent)+lr((t.line+1).toString(),g)+" | "+d.str+` +`,a+=ht.repeat("-",e.indent+g+3+d.pos)+`^ +`,l=1;l<=e.linesAfter&&!(s+l>=o.length);l++)d=ar(t.buffer,r[s+l],o[s+l],t.position-(r[s]-r[s+l]),f),a+=ht.repeat(" ",e.indent)+lr((t.line+l+1).toString(),g)+" | "+d.str+` +`;return a.replace(/\n$/,"")}var sg=ng,ag=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],lg=["scalar","sequence","mapping"];function hg(t){var e={};return t!==null&&Object.keys(t).forEach(function(i){t[i].forEach(function(r){e[String(r)]=i})}),e}function cg(t,e){if(e=e||{},Object.keys(e).forEach(function(i){if(ag.indexOf(i)===-1)throw new qt('Unknown option "'+i+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(i){return i},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=hg(e.styleAliases||null),lg.indexOf(this.kind)===-1)throw new qt('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var at=cg;function an(t,e){var i=[];return t[e].forEach(function(r){var o=i.length;i.forEach(function(n,s){n.tag===r.tag&&n.kind===r.kind&&n.multi===r.multi&&(o=s)}),i[o]=r}),i}function ug(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,i;function r(o){o.multi?(t.multi[o.kind].push(o),t.multi.fallback.push(o)):t[o.kind][o.tag]=t.fallback[o.tag]=o}for(e=0,i=arguments.length;e=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Og=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Mg(t){return!(t===null||!Og.test(t)||t[t.length-1]==="_")}function Ig(t){var e,i;return e=t.replace(/_/g,"").toLowerCase(),i=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:i*parseFloat(e,10)}var Dg=/^[-+]?[0-9]+e/;function $g(t,e){var i;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ht.isNegativeZero(t))return"-0.0";return i=t.toString(10),Dg.test(i)?i.replace("e",".e"):i}function Pg(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||ht.isNegativeZero(t))}var Rg=new at("tag:yaml.org,2002:float",{kind:"scalar",resolve:Mg,construct:Ig,predicate:Pg,represent:$g,defaultStyle:"lowercase"}),Vs=mg.extend({implicit:[bg,Sg,Eg,Rg]}),Ng=Vs,Xs=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Ks=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function qg(t){return t===null?!1:Xs.exec(t)!==null||Ks.exec(t)!==null}function zg(t){var e,i,r,o,n,s,a,l=0,d=null,g,f,h;if(e=Xs.exec(t),e===null&&(e=Ks.exec(t)),e===null)throw new Error("Date resolve error");if(i=+e[1],r=+e[2]-1,o=+e[3],!e[4])return new Date(Date.UTC(i,r,o));if(n=+e[4],s=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(g=+e[10],f=+(e[11]||0),d=(g*60+f)*6e4,e[9]==="-"&&(d=-d)),h=new Date(Date.UTC(i,r,o,n,s,a,l)),d&&h.setTime(h.getTime()-d),h}function Wg(t){return t.toISOString()}var jg=new at("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:qg,construct:zg,instanceOf:Date,represent:Wg});function Hg(t){return t==="<<"||t===null}var Ug=new at("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Hg}),Vr=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function Yg(t){if(t===null)return!1;var e,i,r=0,o=t.length,n=Vr;for(i=0;i 64)){if(e<0)return!1;r+=6}return r%8===0}function Gg(t){var e,i,r=t.replace(/[\r\n=]/g,""),o=r.length,n=Vr,s=0,a=[];for(e=0;e >16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|n.indexOf(r.charAt(e));return i=o%4*6,i===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):i===18?(a.push(s>>10&255),a.push(s>>2&255)):i===12&&a.push(s>>4&255),new Uint8Array(a)}function Vg(t){var e="",i=0,r,o,n=t.length,s=Vr;for(r=0;r >18&63],e+=s[i>>12&63],e+=s[i>>6&63],e+=s[i&63]),i=(i<<8)+t[r];return o=n%3,o===0?(e+=s[i>>18&63],e+=s[i>>12&63],e+=s[i>>6&63],e+=s[i&63]):o===2?(e+=s[i>>10&63],e+=s[i>>4&63],e+=s[i<<2&63],e+=s[64]):o===1&&(e+=s[i>>2&63],e+=s[i<<4&63],e+=s[64],e+=s[64]),e}function Xg(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Kg=new at("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Yg,construct:Gg,predicate:Xg,represent:Vg}),Zg=Object.prototype.hasOwnProperty,Jg=Object.prototype.toString;function Qg(t){if(t===null)return!0;var e=[],i,r,o,n,s,a=t;for(i=0,r=a.length;i >10)+55296,(t-65536&1023)+56320)}var ea=new Array(256),ia=new Array(256);for(var ge=0;ge<256;ge++)ea[ge]=cn(ge)?1:0,ia[ge]=cn(ge);function ym(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||cm,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ra(t,e){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=sg(i),new qt(e,i)}function F(t,e){throw ra(t,e)}function Bi(t,e){t.onWarning&&t.onWarning.call(null,ra(t,e))}var un={YAML:function(e,i,r){var o,n,s;e.version!==null&&F(e,"duplication of %YAML directive"),r.length!==1&&F(e,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),o===null&&F(e,"ill-formed argument of the YAML directive"),n=parseInt(o[1],10),s=parseInt(o[2],10),n!==1&&F(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&Bi(e,"unsupported YAML version of the document")},TAG:function(e,i,r){var o,n;r.length!==2&&F(e,"TAG directive accepts exactly two arguments"),o=r[0],n=r[1],Qs.test(o)||F(e,"ill-formed tag handle (first argument) of the TAG directive"),Zt.call(e.tagMap,o)&&F(e,'there is a previously declared suffix for "'+o+'" tag handle'),ta.test(n)||F(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch{F(e,"tag prefix is malformed: "+n)}e.tagMap[o]=n}};function Xt(t,e,i,r){var o,n,s,a;if(e1&&(t.result+=ht.repeat(` +`,e-1))}function bm(t,e,i){var r,o,n,s,a,l,d,g,f=t.kind,h=t.result,p;if(p=t.input.charCodeAt(t.position),gt(p)||me(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(o=t.input.charCodeAt(t.position+1),gt(o)||i&&me(o)))return!1;for(t.kind="scalar",t.result="",n=s=t.position,a=!1;p!==0;){if(p===58){if(o=t.input.charCodeAt(t.position+1),gt(o)||i&&me(o))break}else if(p===35){if(r=t.input.charCodeAt(t.position-1),gt(r))break}else{if(t.position===t.lineStart&&ji(t)||i&&me(p))break;if(wt(p))if(l=t.line,d=t.lineStart,g=t.lineIndent,Q(t,!1,-1),t.lineIndent>=e){a=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=l,t.lineStart=d,t.lineIndent=g;break}}a&&(Xt(t,n,s,!1),Kr(t,t.line-l),n=s=t.position,a=!1),oe(p)||(s=t.position+1),p=t.input.charCodeAt(++t.position)}return Xt(t,n,s,!1),t.result?!0:(t.kind=f,t.result=h,!1)}function xm(t,e){var i,r,o;if(i=t.input.charCodeAt(t.position),i!==39)return!1;for(t.kind="scalar",t.result="",t.position++,r=o=t.position;(i=t.input.charCodeAt(t.position))!==0;)if(i===39)if(Xt(t,r,t.position,!0),i=t.input.charCodeAt(++t.position),i===39)r=t.position,t.position++,o=t.position;else return!0;else wt(i)?(Xt(t,r,o,!0),Kr(t,Q(t,!1,e)),r=o=t.position):t.position===t.lineStart&&ji(t)?F(t,"unexpected end of the document within a single quoted scalar"):(t.position++,o=t.position);F(t,"unexpected end of the stream within a single quoted scalar")}function Tm(t,e){var i,r,o,n,s,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return Xt(t,i,t.position,!0),t.position++,!0;if(a===92){if(Xt(t,i,t.position,!0),a=t.input.charCodeAt(++t.position),wt(a))Q(t,!1,e);else if(a<256&&ea[a])t.result+=ia[a],t.position++;else if((s=mm(a))>0){for(o=s,n=0;o>0;o--)a=t.input.charCodeAt(++t.position),(s=gm(a))>=0?n=(n<<4)+s:F(t,"expected hexadecimal character");t.result+=_m(n),t.position++}else F(t,"unknown escape sequence");i=r=t.position}else wt(a)?(Xt(t,i,r,!0),Kr(t,Q(t,!1,e)),i=r=t.position):t.position===t.lineStart&&ji(t)?F(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}F(t,"unexpected end of the stream within a double quoted scalar")}function km(t,e){var i=!0,r,o,n,s=t.tag,a,l=t.anchor,d,g,f,h,p,T=Object.create(null),M,E,N,x;if(x=t.input.charCodeAt(t.position),x===91)g=93,p=!1,a=[];else if(x===123)g=125,p=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),x=t.input.charCodeAt(++t.position);x!==0;){if(Q(t,!0,e),x=t.input.charCodeAt(t.position),x===g)return t.position++,t.tag=s,t.anchor=l,t.kind=p?"mapping":"sequence",t.result=a,!0;i?x===44&&F(t,"expected the node content, but found ','"):F(t,"missed comma between flow collection entries"),E=M=N=null,f=h=!1,x===63&&(d=t.input.charCodeAt(t.position+1),gt(d)&&(f=h=!0,t.position++,Q(t,!0,e))),r=t.line,o=t.lineStart,n=t.position,Se(t,e,Si,!1,!0),E=t.tag,M=t.result,Q(t,!0,e),x=t.input.charCodeAt(t.position),(h||t.line===r)&&x===58&&(f=!0,x=t.input.charCodeAt(++t.position),Q(t,!0,e),Se(t,e,Si,!1,!0),N=t.result),p?Ce(t,a,T,E,M,N,r,o,n):f?a.push(Ce(t,null,T,E,M,N,r,o,n)):a.push(M),Q(t,!0,e),x=t.input.charCodeAt(t.position),x===44?(i=!0,x=t.input.charCodeAt(++t.position)):i=!1}F(t,"unexpected end of the stream within a flow collection")}function Sm(t,e){var i,r,o=hr,n=!1,s=!1,a=e,l=0,d=!1,g,f;if(f=t.input.charCodeAt(t.position),f===124)r=!1;else if(f===62)r=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)hr===o?o=f===43?ln:um:F(t,"repeat of a chomping mode identifier");else if((g=Cm(f))>=0)g===0?F(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?F(t,"repeat of an indentation width identifier"):(a=e+g-1,s=!0);else break;if(oe(f)){do f=t.input.charCodeAt(++t.position);while(oe(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!wt(f)&&f!==0)}for(;f!==0;){for(Xr(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!s||t.lineIndenta&&(a=t.lineIndent),wt(f)){l++;continue}if(t.lineIndente)&&l!==0)F(t,"bad indentation of a sequence entry");else if(t.lineIndent e)&&(E&&(s=t.line,a=t.lineStart,l=t.position),Se(t,e,vi,!0,o)&&(E?T=t.result:M=t.result),E||(Ce(t,f,h,p,T,M,s,a,l),p=T=M=null),Q(t,!0,-1),x=t.input.charCodeAt(t.position)),(t.line===n||t.lineIndent>e)&&x!==0)F(t,"bad indentation of a mapping entry");else if(t.lineIndent e?l=1:t.lineIndent===e?l=0:t.lineIndent e?l=1:t.lineIndent===e?l=0:t.lineIndent tag; it should be "scalar", not "'+t.kind+'"'),f=0,h=t.implicitTypes.length;f "),t.result!==null&&T.kind!==t.kind&&F(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+T.kind+'", not "'+t.kind+'"'),T.resolve(t.result,t.tag)?(t.result=T.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):F(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||g}function Am(t){var e=t.position,i,r,o,n=!1,s;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(s=t.input.charCodeAt(t.position))!==0&&(Q(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){for(n=!0,s=t.input.charCodeAt(++t.position),i=t.position;s!==0&&!gt(s);)s=t.input.charCodeAt(++t.position);for(r=t.input.slice(i,t.position),o=[],r.length<1&&F(t,"directive name must not be less than one character in length");s!==0;){for(;oe(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!wt(s));break}if(wt(s))break;for(i=t.position;s!==0&&!gt(s);)s=t.input.charCodeAt(++t.position);o.push(t.input.slice(i,t.position))}s!==0&&Xr(t),Zt.call(un,r)?un[r](t,r,o):Bi(t,'unknown document directive "'+r+'"')}if(Q(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Q(t,!0,-1)):n&&F(t,"directives end mark is expected"),Se(t,t.lineIndent-1,vi,!1,!0),Q(t,!0,-1),t.checkLineBreaks&&fm.test(t.input.slice(e,t.position))&&Bi(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&ji(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Q(t,!0,-1));return}if(t.position "u"&&(i=e,e=null);var r=oa(t,i);if(typeof e!="function")return r;for(var o=0,n=r.length;o t.replace(/\r\n?/g,` +`).replace(/<(\w+)([^>]*)>/g,(e,i,r)=>"<"+i+r.replace(/="([^"]*)"/g,"='$1'")+">"),Nm=t=>{const{text:e,metadata:i}=Pm(t),{displayMode:r,title:o,config:n={}}=i;return r&&(n.gantt||(n.gantt={}),n.gantt.displayMode=r),{title:o,config:n,text:e}},qm=t=>{const e=qe.detectInit(t)??{},i=qe.detectDirective(t,"wrap");return Array.isArray(i)?e.wrap=i.some(({type:r})=>{}):(i==null?void 0:i.type)==="wrap"&&(e.wrap=!0),{text:hd(t),directive:e}};function na(t){const e=Rm(t),i=Nm(e),r=qm(i.text),o=gs(i.config,r.directive);return t=Gp(r.text),{code:t,title:i.title,config:o}}const zm=5e4,Wm="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",jm="sandbox",Hm="loose",Um="http://www.w3.org/2000/svg",Ym="http://www.w3.org/1999/xlink",Gm="http://www.w3.org/1999/xhtml",Vm="100%",Xm="100%",Km="border:0;margin:0;",Zm="margin:0",Jm="allow-top-navigation-by-user-activation allow-popups",Qm='The "iframe" tag is not supported by your browser.',tC=["foreignobject"],eC=["dominant-baseline"];function sa(t){const e=na(t);return xi(),Dd(e.config??{}),e}async function iC(t,e){Gr(),t=sa(t).code;try{await Zr(t)}catch(i){if(e!=null&&e.suppressErrors)return!1;throw i}return!0}const pn=(t,e,i=[])=>` +.${t} ${e} { ${i.join(" !important; ")} !important; }`,rC=(t,e={})=>{var i;let r="";if(t.themeCSS!==void 0&&(r+=` +${t.themeCSS}`),t.fontFamily!==void 0&&(r+=` +:root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(r+=` +:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!sr(e)){const a=t.htmlLabels||((i=t.flowchart)==null?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const l in e){const d=e[l];sr(d.styles)||a.forEach(g=>{r+=pn(d.id,g,d.styles)}),sr(d.textStyles)||(r+=pn(d.id,"tspan",d.textStyles))}}return r},oC=(t,e,i,r)=>{const o=rC(t,i),n=ip(e,o,t.themeVariables);return Cr(pu(`${r}{${n}}`),mu)},nC=(t="",e,i)=>{let r=t;return!i&&!e&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=Ed(r),r=r.replace(/
/g,"
"),r},sC=(t="",e)=>{var i,r;const o=(r=(i=e==null?void 0:e.viewBox)==null?void 0:i.baseVal)!=null&&r.height?e.viewBox.baseVal.height+"px":Xm,n=btoa(''+t+"");return``},gn=(t,e,i,r,o)=>{const n=t.append("div");n.attr("id",i),r&&n.attr("style",r);const s=n.append("svg").attr("id",e).attr("width","100%").attr("xmlns",Um);return o&&s.attr("xmlns:xlink",o),s.append("g"),t};function mn(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const aC=(t,e,i,r)=>{var o,n,s;(o=t.getElementById(e))==null||o.remove(),(n=t.getElementById(i))==null||n.remove(),(s=t.getElementById(r))==null||s.remove()},lC=async function(t,e,i){var r,o,n,s,a,l;Gr();const d=sa(e);e=d.code;const g=Ot();w.debug(g),e.length>((g==null?void 0:g.maxTextSize)??zm)&&(e=Wm);const f="#"+t,h="i"+t,p="#"+h,T="d"+t,M="#"+T;let E=bt("body");const N=g.securityLevel===jm,x=g.securityLevel===Hm,W=g.fontFamily;if(i!==void 0){if(i&&(i.innerHTML=""),N){const A=mn(bt(i),h);E=bt(A.nodes()[0].contentDocument.body),E.node().style.margin=0}else E=bt(i);gn(E,t,T,`font-family: ${W}`,Ym)}else{if(aC(document,t,T,h),N){const A=mn(bt("body"),h);E=bt(A.nodes()[0].contentDocument.body),E.node().style.margin=0}else E=bt("body");gn(E,t,T)}let U,V;try{U=await Zr(e,{title:d.title})}catch(A){U=new Us("error"),V=A}const X=E.select(M).node(),z=U.type,jt=X.firstChild,Ht=jt.firstChild,j=(o=(r=U.renderer).getClasses)==null?void 0:o.call(r,e,U),q=oC(g,z,j,f),kt=document.createElement("style");kt.innerHTML=q,jt.insertBefore(kt,Ht);try{await U.renderer.draw(e,t,rn,U)}catch(A){throw yp.draw(e,t,rn),A}const Ut=E.select(`${M} svg`),I=(s=(n=U.db).getAccTitle)==null?void 0:s.call(n),b=(l=(a=U.db).getAccDescription)==null?void 0:l.call(a);cC(z,Ut,I,b),E.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",Gm);let C=E.select(M).node().innerHTML;if(w.debug("config.arrowMarkerAbsolute",g.arrowMarkerAbsolute),C=nC(C,N,ns(g.arrowMarkerAbsolute)),N){const A=E.select(M+" svg").node();C=sC(C,A)}else x||(C=ye.sanitize(C,{ADD_TAGS:tC,ADD_ATTR:eC}));if(jp(),V)throw V;const y=bt(N?p:M).node();return y&&"remove"in y&&y.remove(),{svg:C,bindFunctions:U.db.bindFunctions}};function hC(t={}){var e;t!=null&&t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),Md(t),t!=null&&t.theme&&t.theme in zt?t.themeVariables=zt[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=zt.default.getThemeVariables(t.themeVariables));const i=typeof t=="object"?Od(t):Cs();$r(i.logLevel),Gr()}const Zr=(t,e={})=>{const{code:i}=na(t);return Wp(i,e)};function cC(t,e,i,r){Up(e,t),Yp(e,i,r,e.attr("id"))}const se=Object.freeze({render:lC,parse:iC,getDiagramFromText:Zr,initialize:hC,getConfig:Ot,setConfig:_s,getSiteConfig:Cs,updateSiteConfig:Id,reset:()=>{xi()},globalReset:()=>{xi(Te)},defaultConfig:Te});$r(Ot().logLevel);xi(Ot());const uC=async()=>{w.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(xe).map(async([i,{detector:r,loader:o}])=>{if(o)try{Yr(i)}catch{try{const{diagram:s,id:a}=await o();ki(a,s,r)}catch(s){throw w.error(`Failed to load external diagram with key ${i}. Removing from detectors.`),delete xe[i],s}}}))).filter(i=>i.status==="rejected");if(e.length>0){w.error(`Failed to load ${e.length} external diagrams`);for(const i of e)w.error(i);throw new Error(`Failed to load ${e.length} external diagrams`)}},dC=(t,e,i)=>{w.warn(t),ps(t)?(i&&i(t.str,t.hash),e.push({...t,message:t.str,error:t})):(i&&i(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},aa=async function(t={querySelector:".mermaid"}){try{await fC(t)}catch(e){if(ps(e)&&w.error(e.str),Bt.parseError&&Bt.parseError(e),!t.suppressErrors)throw w.error("Use the suppressErrors option to suppress these errors"),e}},fC=async function({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const r=se.getConfig();w.debug(`${t?"":"No "}Callback function found`);let o;if(i)o=i;else if(e)o=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");w.debug(`Found ${o.length} diagrams`),(r==null?void 0:r.startOnLoad)!==void 0&&(w.debug("Start On Load: "+(r==null?void 0:r.startOnLoad)),se.updateSiteConfig({startOnLoad:r==null?void 0:r.startOnLoad}));const n=new qe.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let s;const a=[];for(const l of Array.from(o)){w.info("Rendering diagram: "+l.id);/*! Check if previously processed */if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const d=`mermaid-${n.next()}`;s=l.innerHTML,s=ja(qe.entityDecode(s)).trim().replace(/
/gi,"
");const g=qe.detectInit(s);g&&w.debug("Detected early reinit: ",g);try{const{svg:f,bindFunctions:h}=await ua(d,s,l);l.innerHTML=f,t&&await t(d),h&&h(l)}catch(f){dC(f,a,Bt.parseError)}}if(a.length>0)throw a[0]},la=function(t){se.initialize(t)},pC=async function(t,e,i){w.warn("mermaid.init is deprecated. Please use run instead."),t&&la(t);const r={postRenderCallback:i,querySelector:".mermaid"};typeof e=="string"?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await aa(r)},gC=async(t,{lazyLoad:e=!0}={})=>{cs(...t),e===!1&&await uC()},ha=function(){if(Bt.startOnLoad){const{startOnLoad:t}=se.getConfig();t&&Bt.run().catch(e=>w.error("Mermaid failed to initialize",e))}};if(typeof document<"u"){/*! + * Wait for document loaded before starting the execution + */window.addEventListener("load",ha,!1)}const mC=function(t){Bt.parseError=t},Li=[];let cr=!1;const ca=async()=>{if(!cr){for(cr=!0;Li.length>0;){const t=Li.shift();if(t)try{await t()}catch(e){w.error("Error executing queue",e)}}cr=!1}},CC=async(t,e)=>new Promise((i,r)=>{const o=()=>new Promise((n,s)=>{se.parse(t,e).then(a=>{n(a),i(a)},a=>{var l;w.error("Error parsing",a),(l=Bt.parseError)==null||l.call(Bt,a),s(a),r(a)})});Li.push(o),ca().catch(r)}),ua=(t,e,i)=>new Promise((r,o)=>{const n=()=>new Promise((s,a)=>{se.render(t,e,i).then(l=>{s(l),r(l)},l=>{var d;w.error("Error parsing",l),(d=Bt.parseError)==null||d.call(Bt,l),a(l),o(l)})});Li.push(n),ca().catch(o)}),Bt={startOnLoad:!0,mermaidAPI:se,parse:CC,render:ua,init:pC,run:aa,registerExternalDiagrams:gC,initialize:la,parseError:void 0,contentLoaded:ha,setParseErrorHandler:mC,detectType:zi},RC=Object.freeze(Object.defineProperty({__proto__:null,default:Bt},Symbol.toStringTag,{value:"Module"}));export{jn as $,ve as A,_i as B,Di as C,Ic as D,bu as E,Xe as F,Ci as G,Fc as H,Vn as I,zn as J,Fh as K,Ah as L,Lu as M,jo as N,Tc as O,ae as P,wh as Q,Or as R,gi as S,Lh as T,Ih as U,Be as V,Lc as W,Jt as X,Ei as Y,Ro as Z,Mr as _,ap as a,Gn as a0,Kn as a1,vh as a2,br as a3,Zc as a4,qh as a5,jc as a6,wr as a7,sr as a8,Kh as a9,vC as aA,xC as aB,wC as aC,vr as aD,AC as aE,LC as aF,TC as aG,SC as aH,Xu as aI,Ot as aJ,nd as aK,yd as aL,cp as aM,Ve as aN,L as aO,O as aP,RC as aQ,Pe as aa,Kc as ab,Wc as ac,Mt as ad,Jc as ae,Er as af,tu as ag,D as ah,Et as ai,Ed as aj,Ba as ak,ja as al,$C as am,EC as an,pp as ao,xd as ap,Ua as aq,Cp as ar,FC as as,ed as at,gs as au,qr as av,bo as aw,yo as ax,kC as ay,BC as az,sp as b,Ur as c,Ye as d,st as e,bi as f,np as g,Rs as h,Pr as i,Bd as j,An as k,w as l,Ri as m,va as n,_d as o,ns as p,ud as q,Qf as r,op as s,PC as t,lp as u,hp as v,Sd as w,qe as x,rp as y,Ke as z}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/c4Diagram-b947cdbb-BRp46x0r.js","assets/transform-CqGPC-JM.js","assets/svgDrawCommon-0ee1b4e9-IehDzexn.js","assets/app-CUIEYs6a.js","assets/commonjsHelpers-Cpj98o6Y.js","assets/flowDiagram-d949d7c1-CGU3vFTh.js","assets/flowDb-d35e309a-Bg-z3Prm.js","assets/graph-Bephq5Jd.js","assets/layout-CcdY50l6.js","assets/styles-7383a064-JvMW31xv.js","assets/index-8fae9850-CAvRRG1F.js","assets/clone-BkeZeYm4.js","assets/edges-d417c7a0-CRj2TrZY.js","assets/createText-423428c9-DzKgnp3E.js","assets/line-B0WOvXlM.js","assets/array-DEnAxiAM.js","assets/path-CbwjOpE9.js","assets/point-DWREGWZc.js","assets/channel-XWXJRjPW.js","assets/flowDiagram-v2-49332944-D_yLtD2Y.js","assets/erDiagram-0ea73325-DDh1kOjw.js","assets/gitGraphDiagram-b9d81de9-DN5XeNuY.js","assets/ganttDiagram-5c869e3b-CNUNrheC.js","assets/linear-Be6VFAvr.js","assets/init-Gi6I4Gst.js","assets/min-tv6RD-6E.js","assets/infoDiagram-db7b18fc-D3ZtchT6.js","assets/pieDiagram-b0208e96-Bmabxet2.js","assets/arc-BhAuUZxx.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-0332be45-DOALn8Ka.js","assets/xychartDiagram-e50adddc-H5F3Uvmc.js","assets/requirementDiagram-bf7890df-DqqaT5yu.js","assets/sequenceDiagram-c18d009d-CTRgBsdL.js","assets/classDiagram-35230388-CZnYBVkX.js","assets/styles-6860f46c-CAGwTUix.js","assets/classDiagram-v2-412acd34-D3Y9KYhG.js","assets/stateDiagram-43596fc0-DC75FSgY.js","assets/styles-b2c874b6-DLbs38z0.js","assets/stateDiagram-v2-2ead4f9c-CqYXaBnU.js","assets/journeyDiagram-d5636530-ajDokXEJ.js","assets/flowchart-elk-definition-27cc417a-B3eF_iG6.js","assets/timeline-definition-d977decf-D-T2V-TE.js","assets/mindmap-definition-377f8f1f-B8DWANl-.js","assets/sankeyDiagram-0acdec17-mzs4BoQx.js","assets/Tableau10-DSFIgEIU.js","assets/colors-Cc3OSVma.js","assets/blockDiagram-6b2b5046-BDUGhPHT.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} diff --git a/assets/min-tv6RD-6E.js b/assets/min-tv6RD-6E.js new file mode 100644 index 00000000..f68d8e3a --- /dev/null +++ b/assets/min-tv6RD-6E.js @@ -0,0 +1 @@ +function l(i,d){let n;if(d===void 0)for(const e of i)e!=null&&(n=e)&&(n=e);else{let e=-1;for(let f of i)(f=d(f,++e,i))!=null&&(n =f)&&(n=f)}return n}function t(i,d){let n;if(d===void 0)for(const e of i)e!=null&&(n>e||n===void 0&&e>=e)&&(n=e);else{let e=-1;for(let f of i)(f=d(f,++e,i))!=null&&(n>f||n===void 0&&f>=f)&&(n=f)}return n}export{l as a,t as m}; diff --git a/assets/mindmap-definition-377f8f1f-B8DWANl-.js b/assets/mindmap-definition-377f8f1f-B8DWANl-.js new file mode 100644 index 00000000..dd15a89f --- /dev/null +++ b/assets/mindmap-definition-377f8f1f-B8DWANl-.js @@ -0,0 +1,109 @@ +import{l as ur,c as Qn,ar as _l,r as Ul,at as _a,d as Ua,aN as Hl,aO as Yl,aP as Xl,av as Wl}from"./mermaid.core-BcToC1tX.js";import{c as Vt,g as Ys}from"./commonjsHelpers-Cpj98o6Y.js";import{s as ql}from"./transform-CqGPC-JM.js";import{c as Kl}from"./createText-423428c9-DzKgnp3E.js";import"./app-CUIEYs6a.js";function Zl(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var la=Zl,Ql=typeof Vt=="object"&&Vt&&Vt.Object===Object&&Vt,Jl=Ql,jl=Jl,eu=typeof self=="object"&&self&&self.Object===Object&&self,tu=jl||eu||Function("return this")(),tn=tu,ru=tn,au=function(){return ru.Date.now()},nu=au,iu=/\s/;function su(t){for(var e=t.length;e--&&iu.test(t.charAt(e)););return e}var ou=su,lu=ou,uu=/^\s+/;function fu(t){return t&&t.slice(0,lu(t)+1).replace(uu,"")}var hu=fu,vu=tn,cu=vu.Symbol,Jn=cu,Li=Jn,Xs=Object.prototype,du=Xs.hasOwnProperty,gu=Xs.toString,Vr=Li?Li.toStringTag:void 0;function pu(t){var e=du.call(t,Vr),r=t[Vr];try{t[Vr]=void 0;var a=!0}catch{}var n=gu.call(t);return a&&(e?t[Vr]=r:delete t[Vr]),n}var yu=pu,mu=Object.prototype,bu=mu.toString;function Eu(t){return bu.call(t)}var wu=Eu,Ai=Jn,xu=yu,Tu=wu,Cu="[object Null]",Du="[object Undefined]",Oi=Ai?Ai.toStringTag:void 0;function Su(t){return t==null?t===void 0?Du:Cu:Oi&&Oi in Object(t)?xu(t):Tu(t)}var Ws=Su;function Lu(t){return t!=null&&typeof t=="object"}var Au=Lu,Ou=Ws,Nu=Au,Iu="[object Symbol]";function Mu(t){return typeof t=="symbol"||Nu(t)&&Ou(t)==Iu}var ua=Mu,Ru=hu,Ni=la,ku=ua,Ii=NaN,Pu=/^[-+]0x[0-9a-f]+$/i,Bu=/^0b[01]+$/i,Fu=/^0o[0-7]+$/i,Gu=parseInt;function zu(t){if(typeof t=="number")return t;if(ku(t))return Ii;if(Ni(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Ni(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Ru(t);var r=Bu.test(t);return r||Fu.test(t)?Gu(t.slice(2),r?2:8):Pu.test(t)?Ii:+t}var $u=zu,Vu=la,Tn=nu,Mi=$u,_u="Expected a function",Uu=Math.max,Hu=Math.min;function Yu(t,e,r){var a,n,i,s,o,l,u=0,f=!1,h=!1,c=!0;if(typeof t!="function")throw new TypeError(_u);e=Mi(e)||0,Vu(r)&&(f=!!r.leading,h="maxWait"in r,i=h?Uu(Mi(r.maxWait)||0,e):i,c="trailing"in r?!!r.trailing:c);function v(S){var b=a,x=n;return a=n=void 0,u=S,s=t.apply(x,b),s}function d(S){return u=S,o=setTimeout(y,e),f?v(S):s}function g(S){var b=S-l,x=S-u,w=e-b;return h?Hu(w,i-x):w}function p(S){var b=S-l,x=S-u;return l===void 0||b>=e||b<0||h&&x>=i}function y(){var S=Tn();if(p(S))return E(S);o=setTimeout(y,g(S))}function E(S){return o=void 0,c&&a?v(S):(a=n=void 0,s)}function m(){o!==void 0&&clearTimeout(o),u=0,a=l=n=o=void 0}function T(){return o===void 0?s:E(Tn())}function C(){var S=Tn(),b=p(S);if(a=arguments,n=this,l=S,b){if(o===void 0)return d(l);if(h)return clearTimeout(o),o=setTimeout(y,e),v(l)}return o===void 0&&(o=setTimeout(y,e)),s}return C.cancel=m,C.flush=T,C}var Xu=Yu,qs={exports:{}};(function(t,e){(function(){var r,a,n,i,s,o,l,u,f,h,c,v,d,g,p;n=Math.floor,h=Math.min,a=function(y,E){return y E?1:0},f=function(y,E,m,T,C){var S;if(m==null&&(m=0),C==null&&(C=a),m<0)throw new Error("lo must be non-negative");for(T==null&&(T=y.length);m D;0<=D?w++:w--)x.push(w);return x}).apply(this).reverse(),b=[],T=0,C=S.length;T A;0<=A?++x:--x)L.push(s(y,m));return L},g=function(y,E,m,T){var C,S,b;for(T==null&&(T=a),C=y[m];m>E;){if(b=m-1>>1,S=y[b],T(C,S)<0){y[m]=S,m=b;continue}break}return y[m]=C},p=function(y,E,m){var T,C,S,b,x;for(m==null&&(m=a),C=y.length,x=E,S=y[E],T=2*E+1;T -1}var Sh=Dh,Lh=nn;function Ah(t,e){var r=this.__data__,a=Lh(r,t);return a<0?(++this.size,r.push([t,e])):r[a][1]=e,this}var Oh=Ah,Nh=vh,Ih=Eh,Mh=Th,Rh=Sh,kh=Oh;function Nr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e -1&&t%1==0&&t t.length)&&(e=t.length);for(var r=0,a=new Array(e);r "u"?null:window,Ui=$e?$e.navigator:null;$e&&$e.document;var Gc=Ue(""),ao=Ue({}),zc=Ue(function(){}),$c=typeof HTMLElement>"u"?"undefined":Ue(HTMLElement),va=function(e){return e&&e.instanceString&&Be(e.instanceString)?e.instanceString():null},ve=function(e){return e!=null&&Ue(e)==Gc},Be=function(e){return e!=null&&Ue(e)===zc},Me=function(e){return!ht(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},De=function(e){return e!=null&&Ue(e)===ao&&!Me(e)&&e.constructor===Object},Vc=function(e){return e!=null&&Ue(e)===ao},ae=function(e){return e!=null&&Ue(e)===Ue(1)&&!isNaN(e)},_c=function(e){return ae(e)&&Math.floor(e)===e},Ha=function(e){if($c!=="undefined")return e!=null&&e instanceof HTMLElement},ht=function(e){return ca(e)||no(e)},ca=function(e){return va(e)==="collection"&&e._private.single},no=function(e){return va(e)==="collection"&&!e._private.single},ni=function(e){return va(e)==="core"},io=function(e){return va(e)==="stylesheet"},Uc=function(e){return va(e)==="event"},Yt=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},Hc=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},Yc=function(e){return De(e)&&ae(e.x1)&&ae(e.x2)&&ae(e.y1)&&ae(e.y2)},Xc=function(e){return Vc(e)&&Be(e.then)},Wc=function(){return Ui&&Ui.userAgent.match(/msie|trident|edge/i)},Jr=function(e,r){r||(r=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var i=[],s=0;s r?1:0},ed=function(e,r){return-1*oo(e,r)},de=Object.assign!=null?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r 1&&(p-=1),p<1/6?d+(g-d)*6*p:p<1/2?g:p<2/3?d+(g-d)*(2/3-p)*6:d}var h=new RegExp("^"+Zc+"$").exec(e);if(h){if(a=parseInt(h[1]),a<0?a=(360- -1*a%360)%360:a>360&&(a=a%360),a/=360,n=parseFloat(h[2]),n<0||n>100||(n=n/100,i=parseFloat(h[3]),i<0||i>100)||(i=i/100,s=h[4],s!==void 0&&(s=parseFloat(s),s<0||s>1)))return;if(n===0)o=l=u=Math.round(i*255);else{var c=i<.5?i*(1+n):i+n-i*n,v=2*i-c;o=Math.round(255*f(v,c,a+1/3)),l=Math.round(255*f(v,c,a)),u=Math.round(255*f(v,c,a-1/3))}r=[o,l,u,s]}return r},ad=function(e){var r,a=new RegExp("^"+qc+"$").exec(e);if(a){r=[];for(var n=[],i=1;i<=3;i++){var s=a[i];if(s[s.length-1]==="%"&&(n[i]=!0),s=parseFloat(s),n[i]&&(s=s/100*255),s<0||s>255)return;r.push(Math.floor(s))}var o=n[1]||n[2]||n[3],l=n[1]&&n[2]&&n[3];if(o&&!l)return;var u=a[4];if(u!==void 0){if(u=parseFloat(u),u<0||u>1)return;r.push(u)}}return r},nd=function(e){return sd[e.toLowerCase()]},id=function(e){return(Me(e)?e:null)||nd(e)||td(e)||ad(e)||rd(e)},sd={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},lo=function(e){for(var r=e.map,a=e.keys,n=a.length,i=0;i 1&&arguments[1]!==void 0?arguments[1]:br,a=r,n;n=e.next(),!n.done;)a=a*ho+n.value|0;return a},jr=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:br;return r*ho+e|0},ea=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xr;return(r<<5)+r+e|0},ld=function(e,r){return e*2097152+r},Gt=function(e){return e[0]*2097152+e[1]},Ta=function(e,r){return[jr(e[0],r[0]),ea(e[1],r[1])]},ud=function(e,r){var a={value:0,done:!1},n=0,i=e.length,s={next:function(){return n=0&&!(e[n]===r&&(e.splice(n,1),a));n--);},li=function(e){e.splice(0,e.length)},pd=function(e,r){for(var a=0;a "u"?"undefined":Ue(Set))!==md?Set:bd,un=function(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||r===void 0||!ni(e)){Ge("An element must have a core reference and parameters set");return}var n=r.group;if(n==null&&(r.data&&r.data.source!=null&&r.data.target!=null?n="edges":n="nodes"),n!=="nodes"&&n!=="edges"){Ge("An element must be of type `nodes` or `edges`; you specified `"+n+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:r.data||{},position:r.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:n,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!r.selected,selectable:r.selectable===void 0?!0:!!r.selectable,locked:!!r.locked,grabbed:!1,grabbable:r.grabbable===void 0?!0:!!r.grabbable,pannable:r.pannable===void 0?n==="edges":!!r.pannable,active:!1,classes:new Mr,animation:{current:[],queue:[]},rscratch:{},scratch:r.scratch||{},edges:[],children:[],parent:r.parent&&r.parent.isNode()?r.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(i.position.x==null&&(i.position.x=0),i.position.y==null&&(i.position.y=0),r.renderedPosition){var s=r.renderedPosition,o=e.pan(),l=e.zoom();i.position={x:(s.x-o.x)/l,y:(s.y-o.y)/l}}var u=[];Me(r.classes)?u=r.classes:ve(r.classes)&&(u=r.classes.split(/\s+/));for(var f=0,h=u.length;f 0;){var S=E.pop(),b=p(S),x=S.id();if(c[x]=b,b!==1/0)for(var w=S.neighborhood().intersect(d),D=0;D 0)for(k.unshift(M);h[G];){var F=h[G];k.unshift(F.edge),k.unshift(F.node),B=F.node,G=B.id()}return o.spawn(k)}}}},xd={kruskal:function(e){e=e||function(m){return 1};for(var r=this.byGroup(),a=r.nodes,n=r.edges,i=a.length,s=new Array(i),o=a,l=function(T){for(var C=0;C 0;){if(C(),b++,T===f){for(var x=[],w=i,D=f,A=y[D];x.unshift(w),A!=null&&x.unshift(A),w=p[D],w!=null;)D=w.id(),A=y[D];return{found:!0,distance:h[T],path:this.spawn(x),steps:b}}v[T]=!0;for(var L=m._private.edges,I=0;I A&&(d[D]=A,E[D]=w,m[D]=C),!i){var L=w*f+x;!i&&d[L]>A&&(d[L]=A,E[L]=x,m[L]=C)}}}for(var I=0;I 1&&arguments[1]!==void 0?arguments[1]:s,xe=m(se),Ee=[],ge=xe;;){if(ge==null)return r.spawn();var we=E(ge),H=we.edge,N=we.pred;if(Ee.unshift(ge[0]),ge.same(fe)&&Ee.length>0)break;H!=null&&Ee.unshift(H),ge=N}return l.spawn(Ee)},S=0;S =0;f--){var h=u[f],c=h[1],v=h[2];(r[c]===o&&r[v]===l||r[c]===l&&r[v]===o)&&u.splice(f,1)}for(var d=0;d n;){var i=Math.floor(Math.random()*r.length);r=Nd(i,e,r),a--}return r},Id={kargerStein:function(){var e=this,r=this.byGroup(),a=r.nodes,n=r.edges;n.unmergeBy(function(k){return k.isLoop()});var i=a.length,s=n.length,o=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),l=Math.floor(i/Od);if(i<2){Ge("At least 2 nodes are required for Karger-Stein algorithm");return}for(var u=[],f=0;f 1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=1/0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=-1/0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=0,i=0,s=r;s1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;n?e=e.slice(r,a):(a0&&e.splice(0,r));for(var o=0,l=e.length-1;l>=0;l--){var u=e[l];s?isFinite(u)||(e[l]=-1/0,o++):e.splice(l,1)}i&&e.sort(function(c,v){return c-v});var f=e.length,h=Math.floor(f/2);return f%2!==0?e[h+1+o]:(e[h-1+o]+e[h+o])/2},Fd=function(e){return Math.PI*e/180},Ca=function(e,r){return Math.atan2(r,e)-Math.PI/2},ui=Math.log2||function(t){return Math.log(t)/Math.log(2)},Eo=function(e){return e>0?1:e<0?-1:0},nr=function(e,r){return Math.sqrt(er(e,r))},er=function(e,r){var a=r.x-e.x,n=r.y-e.y;return a*a+n*n},Gd=function(e){for(var r=e.length,a=0,n=0;n =e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},$d=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},Vd=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},_d=function(e,r,a){return{x1:e.x1+r,x2:e.x2+r,y1:e.y1+a,y2:e.y2+a,w:e.w,h:e.h}},wo=function(e,r){e.x1=Math.min(e.x1,r.x1),e.x2=Math.max(e.x2,r.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r.y1),e.y2=Math.max(e.y2,r.y2),e.h=e.y2-e.y1},Ud=function(e,r,a){e.x1=Math.min(e.x1,r),e.x2=Math.max(e.x2,r),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,a),e.y2=Math.max(e.y2,a),e.h=e.y2-e.y1},ka=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=r,e.x2+=r,e.y1-=r,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},Pa=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],a,n,i,s;if(r.length===1)a=n=i=s=r[0];else if(r.length===2)a=i=r[0],s=n=r[1];else if(r.length===4){var o=Et(r,4);a=o[0],n=o[1],i=o[2],s=o[3]}return e.x1-=s,e.x2+=n,e.y1-=a,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},qi=function(e,r){e.x1=r.x1,e.y1=r.y1,e.x2=r.x2,e.y2=r.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},fi=function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2 r.y2||r.y1>e.y2)},Sr=function(e,r,a){return e.x1<=r&&r<=e.x2&&e.y1<=a&&a<=e.y2},Hd=function(e,r){return Sr(e,r.x,r.y)},xo=function(e,r){return Sr(e,r.x1,r.y1)&&Sr(e,r.x2,r.y2)},To=function(e,r,a,n,i,s,o){var l=da(i,s),u=i/2,f=s/2,h;{var c=a-u+l-o,v=n-f-o,d=a+u-l+o,g=v;if(h=_t(e,r,a,n,c,v,d,g,!1),h.length>0)return h}{var p=a+u+o,y=n-f+l-o,E=p,m=n+f-l+o;if(h=_t(e,r,a,n,p,y,E,m,!1),h.length>0)return h}{var T=a-u+l-o,C=n+f+o,S=a+u-l+o,b=C;if(h=_t(e,r,a,n,T,C,S,b,!1),h.length>0)return h}{var x=a-u-o,w=n-f+l-o,D=x,A=n+f-l+o;if(h=_t(e,r,a,n,x,w,D,A,!1),h.length>0)return h}var L;{var I=a-u+l,O=n-f+l;if(L=Wr(e,r,a,n,I,O,l+o),L.length>0&&L[0]<=I&&L[1]<=O)return[L[0],L[1]]}{var P=a+u-l,R=n-f+l;if(L=Wr(e,r,a,n,P,R,l+o),L.length>0&&L[0]>=P&&L[1]<=R)return[L[0],L[1]]}{var M=a+u-l,k=n+f-l;if(L=Wr(e,r,a,n,M,k,l+o),L.length>0&&L[0]>=M&&L[1]>=k)return[L[0],L[1]]}{var B=a-u+l,G=n+f-l;if(L=Wr(e,r,a,n,B,G,l+o),L.length>0&&L[0]<=B&&L[1]>=G)return[L[0],L[1]]}return[]},Yd=function(e,r,a,n,i,s,o){var l=o,u=Math.min(a,i),f=Math.max(a,i),h=Math.min(n,s),c=Math.max(n,s);return u-l<=e&&e<=f+l&&h-l<=r&&r<=c+l},Xd=function(e,r,a,n,i,s,o,l,u){var f={x1:Math.min(a,o,i)-u,x2:Math.max(a,o,i)+u,y1:Math.min(n,l,s)-u,y2:Math.max(n,l,s)+u};return!(e f.x2||r f.y2)},Wd=function(e,r,a,n){a-=n;var i=r*r-4*e*a;if(i<0)return[];var s=Math.sqrt(i),o=2*e,l=(-r+s)/o,u=(-r-s)/o;return[l,u]},qd=function(e,r,a,n,i){var s=1e-5;e===0&&(e=s),r/=e,a/=e,n/=e;var o,l,u,f,h,c,v,d;if(l=(3*a-r*r)/9,u=-(27*n)+r*(9*a-2*(r*r)),u/=54,o=l*l*l+u*u,i[1]=0,v=r/3,o>0){h=u+Math.sqrt(o),h=h<0?-Math.pow(-h,1/3):Math.pow(h,1/3),c=u-Math.sqrt(o),c=c<0?-Math.pow(-c,1/3):Math.pow(c,1/3),i[0]=-v+h+c,v+=(h+c)/2,i[4]=i[2]=-v,v=Math.sqrt(3)*(-c+h)/2,i[3]=v,i[5]=-v;return}if(i[5]=i[3]=0,o===0){d=u<0?-Math.pow(-u,1/3):Math.pow(u,1/3),i[0]=-v+2*d,i[4]=i[2]=-(d+v);return}l=-l,f=l*l*l,f=Math.acos(u/Math.sqrt(f)),d=2*Math.sqrt(l),i[0]=-v+d*Math.cos(f/3),i[2]=-v+d*Math.cos((f+2*Math.PI)/3),i[4]=-v+d*Math.cos((f+4*Math.PI)/3)},Kd=function(e,r,a,n,i,s,o,l){var u=1*a*a-4*a*i+2*a*o+4*i*i-4*i*o+o*o+n*n-4*n*s+2*n*l+4*s*s-4*s*l+l*l,f=1*9*a*i-3*a*a-3*a*o-6*i*i+3*i*o+9*n*s-3*n*n-3*n*l-6*s*s+3*s*l,h=1*3*a*a-6*a*i+a*o-a*e+2*i*i+2*i*e-o*e+3*n*n-6*n*s+n*l-n*r+2*s*s+2*s*r-l*r,c=1*a*i-a*a+a*e-i*e+n*s-n*n+n*r-s*r,v=[];qd(u,f,h,c,v);for(var d=1e-7,g=[],p=0;p<6;p+=2)Math.abs(v[p+1]) =0&&v[p]<=1&&g.push(v[p]);g.push(1),g.push(0);for(var y=-1,E,m,T,C=0;C =0?T u?(e-i)*(e-i)+(r-s)*(r-s):f-c},ut=function(e,r,a){for(var n,i,s,o,l,u=0,f=0;f =e&&e>=s||n<=e&&e<=s)l=(e-n)/(s-n)*(o-i)+i,l>r&&u++;else continue;return u%2!==0},Rt=function(e,r,a,n,i,s,o,l,u){var f=new Array(a.length),h;l[0]!=null?(h=Math.atan(l[1]/l[0]),l[0]<0?h=h+Math.PI/2:h=-h-Math.PI/2):h=l;for(var c=Math.cos(-h),v=Math.sin(-h),d=0;d 0){var p=qa(f,-u);g=Wa(p)}else g=f;return ut(e,r,g)},Qd=function(e,r,a,n,i,s,o){for(var l=new Array(a.length),u=s/2,f=o/2,h=hi(s,o),c=h*h,v=0;v =0&&p<=1&&E.push(p),y>=0&&y<=1&&E.push(y),E.length===0)return[];var m=E[0]*l[0]+e,T=E[0]*l[1]+r;if(E.length>1){if(E[0]==E[1])return[m,T];var C=E[1]*l[0]+e,S=E[1]*l[1]+r;return[m,T,C,S]}else return[m,T]},Ln=function(e,r,a){return r<=e&&e<=a||a<=e&&e<=r?e:e<=r&&r<=a||a<=r&&r<=e?r:a},_t=function(e,r,a,n,i,s,o,l,u){var f=e-i,h=a-e,c=o-i,v=r-s,d=n-r,g=l-s,p=c*v-g*f,y=h*v-d*f,E=g*h-c*d;if(E!==0){var m=p/E,T=y/E,C=.001,S=0-C,b=1+C;return S<=m&&m<=b&&S<=T&&T<=b?[e+m*h,r+m*d]:u?[e+m*h,r+m*d]:[]}else return p===0||y===0?Ln(e,a,o)===o?[o,l]:Ln(e,a,i)===i?[i,s]:Ln(i,o,a)===a?[a,n]:[]:[]},aa=function(e,r,a,n,i,s,o,l){var u=[],f,h=new Array(a.length),c=!0;s==null&&(c=!1);var v;if(c){for(var d=0;d 0){var g=qa(h,-l);v=Wa(g)}else v=h}else v=a;for(var p,y,E,m,T=0;T 2){for(var R=[u[0],u[1]],M=Math.pow(R[0]-e,2)+Math.pow(R[1]-r,2),k=1;k f&&(f=T)},get:function(m){return u[m]}},c=0;c 0?R=P.edgesTo(O)[0]:R=O.edgesTo(P)[0];var M=n(R);O=O.id(),x[O]>x[L]+M&&(x[O]=x[L]+M,w.nodes.indexOf(O)<0?w.push(O):w.updateItem(O),b[O]=0,S[O]=[]),x[O]==x[L]+M&&(b[O]=b[O]+b[L],S[O].push(L))}else for(var k=0;k 0;){for(var $=C.pop(),U=0;U 0&&o.push(a[l]);o.length!==0&&i.push(n.collection(o))}return i},cg=function(e,r){for(var a=0;a5&&arguments[5]!==void 0?arguments[5]:pg,o=n,l,u,f=0;f =2?_r(e,r,a,0,ji,yg):_r(e,r,a,0,Ji)},squaredEuclidean:function(e,r,a){return _r(e,r,a,0,ji)},manhattan:function(e,r,a){return _r(e,r,a,0,Ji)},max:function(e,r,a){return _r(e,r,a,-1/0,mg)}};Lr["squared-euclidean"]=Lr.squaredEuclidean;Lr.squaredeuclidean=Lr.squaredEuclidean;function hn(t,e,r,a,n,i){var s;return Be(t)?s=t:s=Lr[t]||Lr.euclidean,e===0&&Be(t)?s(n,i):s(e,r,a,n,i)}var bg=Qe({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),vi=function(e){return bg(e)},Ka=function(e,r,a,n,i){var s=i!=="kMedoids",o=s?function(h){return a[h]}:function(h){return n[h](a)},l=function(c){return n[c](r)},u=a,f=r;return hn(e,n.length,o,l,u,f)},An=function(e,r,a){for(var n=a.length,i=new Array(n),s=new Array(n),o=new Array(r),l=null,u=0;u a)return!1}return!0},xg=function(e,r,a){for(var n=0;no&&(o=r[u][f],l=f);i[l].push(e[u])}for(var h=0;h =i.threshold||i.mode==="dendrogram"&&e.length===1)return!1;var d=r[s],g=r[n[s]],p;i.mode==="dendrogram"?p={left:d,right:g,key:d.key}:p={value:d.value.concat(g.value),key:d.key},e[d.index]=p,e.splice(g.index,1),r[d.key]=p;for(var y=0;y a[g.key][E.key]&&(l=a[g.key][E.key])):i.linkage==="max"?(l=a[d.key][E.key],a[d.key][E.key]0&&n.push(i);return n},is=function(e,r,a){for(var n=[],i=0;i o&&(s=u,o=r[i*e+u])}s>0&&n.push(s)}for(var f=0;f u&&(l=f,u=h)}a[i]=s[l]}return n=is(e,r,a),n},ss=function(e){for(var r=this.cy(),a=this.nodes(),n=Bg(e),i={},s=0;s =A?(L=A,A=O,I=P):O>L&&(L=O);for(var R=0;R 0?1:0;b[w%n.minIterations*o+$]=U,F+=U}if(F>0&&(w>=n.minIterations-1||w==n.maxIterations-1)){for(var _=0,Y=0;Y 1||S>1)&&(o=!0),h[m]=[],E.outgoers().forEach(function(x){x.isEdge()&&h[m].push(x.id())})}else c[m]=[void 0,E.target().id()]}):s.forEach(function(E){var m=E.id();if(E.isNode()){var T=E.degree(!0);T%2&&(l?u?o=!0:u=m:l=m),h[m]=[],E.connectedEdges().forEach(function(C){return h[m].push(C.id())})}else c[m]=[E.source().id(),E.target().id()]});var v={found:!1,trail:void 0};if(o)return v;if(u&&l)if(i){if(f&&u!=f)return v;f=u}else{if(f&&u!=f&&l!=f)return v;f||(f=u)}else f||(f=s[0].id());var d=function(m){for(var T=m,C=[m],S,b,x;h[T].length;)S=h[T].shift(),b=c[S][0],x=c[S][1],T!=x?(h[x]=h[x].filter(function(w){return w!=S}),T=x):!i&&T!=b&&(h[b]=h[b].filter(function(w){return w!=S}),T=b),C.unshift(S),C.unshift(T);return C},g=[],p=[];for(p=d(f);p.length!=1;)h[p[0]].length==0?(g.unshift(s.getElementById(p.shift())),g.unshift(s.getElementById(p.shift()))):p=d(p.shift()).concat(p);g.unshift(s.getElementById(p.shift()));for(var y in h)if(h[y].length)return v;return v.found=!0,v.trail=this.spawn(g,!0),v}},La=function(){var e=this,r={},a=0,n=0,i=[],s=[],o={},l=function(c,v){for(var d=s.length-1,g=[],p=e.spawn();s[d].x!=c||s[d].y!=v;)g.push(s.pop().edge),d--;g.push(s.pop().edge),g.forEach(function(y){var E=y.connectedNodes().intersection(e);p.merge(y),E.forEach(function(m){var T=m.id(),C=m.connectedEdges().intersection(e);p.merge(m),r[T].cutVertex?p.merge(C.filter(function(S){return S.isLoop()})):p.merge(C)})}),i.push(p)},u=function h(c,v,d){c===d&&(n+=1),r[v]={id:a,low:a++,cutVertex:!1};var g=e.getElementById(v).connectedEdges().intersection(e);if(g.size()===0)i.push(e.spawn(e.getElementById(v)));else{var p,y,E,m;g.forEach(function(T){p=T.source().id(),y=T.target().id(),E=p===v?y:p,E!==d&&(m=T.id(),o[m]||(o[m]=!0,s.push({x:v,y:E,edge:T})),E in r?r[v].low=Math.min(r[v].low,r[E].id):(h(c,E,v),r[v].low=Math.min(r[v].low,r[E].low),r[v].id<=r[E].low&&(r[v].cutVertex=!0,l(v,E))))})}};e.forEach(function(h){if(h.isNode()){var c=h.id();c in r||(n=0,u(c,c),r[c].cutVertex=n>1)}});var f=Object.keys(r).filter(function(h){return r[h].cutVertex}).map(function(h){return e.getElementById(h)});return{cut:e.spawn(f),components:i}},Hg={hopcroftTarjanBiconnected:La,htbc:La,htb:La,hopcroftTarjanBiconnectedComponents:La},Aa=function(){var e=this,r={},a=0,n=[],i=[],s=e.spawn(e),o=function l(u){i.push(u),r[u]={index:a,low:a++,explored:!1};var f=e.getElementById(u).connectedEdges().intersection(e);if(f.forEach(function(g){var p=g.target().id();p!==u&&(p in r||l(p),r[p].explored||(r[u].low=Math.min(r[u].low,r[p].low)))}),r[u].index===r[u].low){for(var h=e.spawn();;){var c=i.pop();if(h.merge(e.getElementById(c)),r[c].low=r[u].index,r[c].explored=!0,c===u)break}var v=h.edgesWith(h),d=h.merge(v);n.push(d),s=s.difference(d)}};return e.forEach(function(l){if(l.isNode()){var u=l.id();u in r||o(u)}}),{cut:s,components:n}},Yg={tarjanStronglyConnected:Aa,tsc:Aa,tscc:Aa,tarjanStronglyConnectedComponents:Aa},No={};[ta,wd,xd,Cd,Sd,Ad,Id,rg,Tr,Cr,$n,gg,Ag,kg,Vg,Ug,Hg,Yg].forEach(function(t){de(No,t)});/*! +Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable +Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com) +Licensed under The MIT License (http://opensource.org/licenses/MIT) +*/var Io=0,Mo=1,Ro=2,kt=function t(e){if(!(this instanceof t))return new t(e);this.id="Thenable/1.0.7",this.state=Io,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof e=="function"&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};kt.prototype={fulfill:function(e){return os(this,Mo,"fulfillValue",e)},reject:function(e){return os(this,Ro,"rejectReason",e)},then:function(e,r){var a=this,n=new kt;return a.onFulfilled.push(us(e,n,"fulfill")),a.onRejected.push(us(r,n,"reject")),ko(a),n.proxy}};var os=function(e,r,a,n){return e.state===Io&&(e.state=r,e[a]=n,ko(e)),e},ko=function(e){e.state===Mo?ls(e,"onFulfilled",e.fulfillValue):e.state===Ro&&ls(e,"onRejected",e.rejectReason)},ls=function(e,r,a){if(e[r].length!==0){var n=e[r];e[r]=[];var i=function(){for(var o=0;o 0}},clearQueue:function(){return function(){var r=this,a=r.length!==void 0,n=a?r:[r],i=this._private.cy||this;if(!i.styleEnabled())return this;for(var s=0;s 0&&this.spawn(n).updateStyle().emit("class"),r},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var r=this[0];return r!=null&&r._private.classes.has(e)},toggleClass:function(e,r){Me(e)||(e=e.match(/\S+/g)||[]);for(var a=this,n=r===void 0,i=[],s=0,o=a.length;s 0&&this.spawn(i).updateStyle().emit("class"),a},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,r){var a=this;if(r==null)r=250;else if(r===0)return a;return a.addClass(e),setTimeout(function(){a.removeClass(e)},r),a}};Ba.className=Ba.classNames=Ba.classes;var Ce={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:_e,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};Ce.variable="(?:[\\w-.]|(?:\\\\"+Ce.metaChar+"))+";Ce.className="(?:[\\w-]|(?:\\\\"+Ce.metaChar+"))+";Ce.value=Ce.string+"|"+Ce.number;Ce.id=Ce.variable;(function(){var t,e,r;for(t=Ce.comparatorOp.split("|"),r=0;r =0)&&e!=="="&&(Ce.comparatorOp+="|\\!"+e)})();var Ie=function(){return{checks:[]}},ie={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},_n=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort(function(t,e){return ed(t.selector,e.selector)}),Qg=function(){for(var t={},e,r=0;r<_n.length;r++)e=_n[r],t[e.selector]=e.matches;return t}(),Jg=function(e,r){return Qg[e](r)},jg="("+_n.map(function(t){return t.selector}).join("|")+")",dr=function(e){return e.replace(new RegExp("\\\\("+Ce.metaChar+")","g"),function(r,a){return a})},zt=function(e,r,a){e[e.length-1]=a},Un=[{name:"group",query:!0,regex:"("+Ce.group+")",populate:function(e,r,a){var n=Et(a,1),i=n[0];r.checks.push({type:ie.GROUP,value:i==="*"?i:i+"s"})}},{name:"state",query:!0,regex:jg,populate:function(e,r,a){var n=Et(a,1),i=n[0];r.checks.push({type:ie.STATE,value:i})}},{name:"id",query:!0,regex:"\\#("+Ce.id+")",populate:function(e,r,a){var n=Et(a,1),i=n[0];r.checks.push({type:ie.ID,value:dr(i)})}},{name:"className",query:!0,regex:"\\.("+Ce.className+")",populate:function(e,r,a){var n=Et(a,1),i=n[0];r.checks.push({type:ie.CLASS,value:dr(i)})}},{name:"dataExists",query:!0,regex:"\\[\\s*("+Ce.variable+")\\s*\\]",populate:function(e,r,a){var n=Et(a,1),i=n[0];r.checks.push({type:ie.DATA_EXIST,field:dr(i)})}},{name:"dataCompare",query:!0,regex:"\\[\\s*("+Ce.variable+")\\s*("+Ce.comparatorOp+")\\s*("+Ce.value+")\\s*\\]",populate:function(e,r,a){var n=Et(a,3),i=n[0],s=n[1],o=n[2],l=new RegExp("^"+Ce.string+"$").exec(o)!=null;l?o=o.substring(1,o.length-1):o=parseFloat(o),r.checks.push({type:ie.DATA_COMPARE,field:dr(i),operator:s,value:o})}},{name:"dataBool",query:!0,regex:"\\[\\s*("+Ce.boolOp+")\\s*("+Ce.variable+")\\s*\\]",populate:function(e,r,a){var n=Et(a,2),i=n[0],s=n[1];r.checks.push({type:ie.DATA_BOOL,field:dr(s),operator:i})}},{name:"metaCompare",query:!0,regex:"\\[\\[\\s*("+Ce.meta+")\\s*("+Ce.comparatorOp+")\\s*("+Ce.number+")\\s*\\]\\]",populate:function(e,r,a){var n=Et(a,3),i=n[0],s=n[1],o=n[2];r.checks.push({type:ie.META_COMPARE,field:dr(i),operator:s,value:parseFloat(o)})}},{name:"nextQuery",separator:!0,regex:Ce.separator,populate:function(e,r){var a=e.currentSubject,n=e.edgeCount,i=e.compoundCount,s=e[e.length-1];a!=null&&(s.subject=a,e.currentSubject=null),s.edgeCount=n,s.compoundCount=i,e.edgeCount=0,e.compoundCount=0;var o=e[e.length++]=Ie();return o}},{name:"directedEdge",separator:!0,regex:Ce.directedEdge,populate:function(e,r){if(e.currentSubject==null){var a=Ie(),n=r,i=Ie();return a.checks.push({type:ie.DIRECTED_EDGE,source:n,target:i}),zt(e,r,a),e.edgeCount++,i}else{var s=Ie(),o=r,l=Ie();return s.checks.push({type:ie.NODE_SOURCE,source:o,target:l}),zt(e,r,s),e.edgeCount++,l}}},{name:"undirectedEdge",separator:!0,regex:Ce.undirectedEdge,populate:function(e,r){if(e.currentSubject==null){var a=Ie(),n=r,i=Ie();return a.checks.push({type:ie.UNDIRECTED_EDGE,nodes:[n,i]}),zt(e,r,a),e.edgeCount++,i}else{var s=Ie(),o=r,l=Ie();return s.checks.push({type:ie.NODE_NEIGHBOR,node:o,neighbor:l}),zt(e,r,s),l}}},{name:"child",separator:!0,regex:Ce.child,populate:function(e,r){if(e.currentSubject==null){var a=Ie(),n=Ie(),i=e[e.length-1];return a.checks.push({type:ie.CHILD,parent:i,child:n}),zt(e,r,a),e.compoundCount++,n}else if(e.currentSubject===r){var s=Ie(),o=e[e.length-1],l=Ie(),u=Ie(),f=Ie(),h=Ie();return s.checks.push({type:ie.COMPOUND_SPLIT,left:o,right:l,subject:u}),u.checks=r.checks,r.checks=[{type:ie.TRUE}],h.checks.push({type:ie.TRUE}),l.checks.push({type:ie.PARENT,parent:h,child:f}),zt(e,o,s),e.currentSubject=u,e.compoundCount++,f}else{var c=Ie(),v=Ie(),d=[{type:ie.PARENT,parent:c,child:v}];return c.checks=r.checks,r.checks=d,e.compoundCount++,v}}},{name:"descendant",separator:!0,regex:Ce.descendant,populate:function(e,r){if(e.currentSubject==null){var a=Ie(),n=Ie(),i=e[e.length-1];return a.checks.push({type:ie.DESCENDANT,ancestor:i,descendant:n}),zt(e,r,a),e.compoundCount++,n}else if(e.currentSubject===r){var s=Ie(),o=e[e.length-1],l=Ie(),u=Ie(),f=Ie(),h=Ie();return s.checks.push({type:ie.COMPOUND_SPLIT,left:o,right:l,subject:u}),u.checks=r.checks,r.checks=[{type:ie.TRUE}],h.checks.push({type:ie.TRUE}),l.checks.push({type:ie.ANCESTOR,ancestor:h,descendant:f}),zt(e,o,s),e.currentSubject=u,e.compoundCount++,f}else{var c=Ie(),v=Ie(),d=[{type:ie.ANCESTOR,ancestor:c,descendant:v}];return c.checks=r.checks,r.checks=d,e.compoundCount++,v}}},{name:"subject",modifier:!0,regex:Ce.subject,populate:function(e,r){if(e.currentSubject!=null&&e.currentSubject!==r)return Ne("Redefinition of subject in selector `"+e.toString()+"`"),!1;e.currentSubject=r;var a=e[e.length-1],n=a.checks[0],i=n==null?null:n.type;i===ie.DIRECTED_EDGE?n.type=ie.NODE_TARGET:i===ie.UNDIRECTED_EDGE&&(n.type=ie.NODE_NEIGHBOR,n.node=n.nodes[1],n.neighbor=n.nodes[0],n.nodes=null)}}];Un.forEach(function(t){return t.regexObj=new RegExp("^"+t.regex)});var ep=function(e){for(var r,a,n,i=0;i 0&&f.edgeCount>0)return Ne("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(f.edgeCount>1)return Ne("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;f.edgeCount===1&&Ne("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},ap=function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(f){return f??""},r=function(f){return ve(f)?'"'+f+'"':e(f)},a=function(f){return" "+f+" "},n=function(f,h){var c=f.type,v=f.value;switch(c){case ie.GROUP:{var d=e(v);return d.substring(0,d.length-1)}case ie.DATA_COMPARE:{var g=f.field,p=f.operator;return"["+g+a(e(p))+r(v)+"]"}case ie.DATA_BOOL:{var y=f.operator,E=f.field;return"["+e(y)+E+"]"}case ie.DATA_EXIST:{var m=f.field;return"["+m+"]"}case ie.META_COMPARE:{var T=f.operator,C=f.field;return"[["+C+a(e(T))+r(v)+"]]"}case ie.STATE:return v;case ie.ID:return"#"+v;case ie.CLASS:return"."+v;case ie.PARENT:case ie.CHILD:return i(f.parent,h)+a(">")+i(f.child,h);case ie.ANCESTOR:case ie.DESCENDANT:return i(f.ancestor,h)+" "+i(f.descendant,h);case ie.COMPOUND_SPLIT:{var S=i(f.left,h),b=i(f.subject,h),x=i(f.right,h);return S+(S.length>0?" ":"")+b+x}case ie.TRUE:return""}},i=function(f,h){return f.checks.reduce(function(c,v,d){return c+(h===f&&d===0?"$":"")+n(v,h)},"")},s="",o=0;o 1&&o =0&&(r=r.replace("!",""),h=!0),r.indexOf("@")>=0&&(r=r.replace("@",""),f=!0),(i||o||f)&&(l=!i&&!s?"":""+e,u=""+a),f&&(e=l=l.toLowerCase(),a=u=u.toLowerCase()),r){case"*=":n=l.indexOf(u)>=0;break;case"$=":n=l.indexOf(u,l.length-u.length)>=0;break;case"^=":n=l.indexOf(u)===0;break;case"=":n=e===a;break;case">":c=!0,n=e>a;break;case">=":c=!0,n=e>=a;break;case"<":c=!0,n=e0;){var f=n.shift();e(f),i.add(f.id()),o&&a(n,i,f)}return t}function Bo(t,e,r){if(r.isParent())for(var a=r._private.children,n=0;n 1&&arguments[1]!==void 0?arguments[1]:!0;return di(this,t,e,Bo)};function Fo(t,e,r){if(r.isChild()){var a=r._private.parent;e.has(a.id())||t.push(a)}}Ar.forEachUp=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return di(this,t,e,Fo)};function hp(t,e,r){Fo(t,e,r),Bo(t,e,r)}Ar.forEachUpAndDown=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return di(this,t,e,hp)};Ar.ancestors=Ar.parents;var na,Go;na=Go={data:Oe.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:Oe.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:Oe.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Oe.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:Oe.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:Oe.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}};na.attr=na.data;na.removeAttr=na.removeData;var vp=Go,vn={};function On(t){return function(e){var r=this;if(e===void 0&&(e=!0),r.length!==0)if(r.isNode()&&!r.removed()){for(var a=0,n=r[0],i=n._private.edges,s=0;s e}),minIndegree:gr("indegree",function(t,e){return t e}),minOutdegree:gr("outdegree",function(t,e){return t e})});de(vn,{totalDegree:function(e){for(var r=0,a=this.nodes(),n=0;n 0,c=h;h&&(f=f[0]);var v=c?f.position():{x:0,y:0};r!==void 0?u.position(e,r+v[e]):i!==void 0&&u.position({x:i.x+v.x,y:i.y+v.y})}else{var d=a.position(),g=o?a.parent():null,p=g&&g.length>0,y=p;p&&(g=g[0]);var E=y?g.position():{x:0,y:0};return i={x:d.x-E.x,y:d.y-E.y},e===void 0?i:i[e]}else if(!s)return;return this}};Tt.modelPosition=Tt.point=Tt.position;Tt.modelPositions=Tt.points=Tt.positions;Tt.renderedPoint=Tt.renderedPosition;Tt.relativePoint=Tt.relativePosition;var cp=zo,Dr,Zt;Dr=Zt={};Zt.renderedBoundingBox=function(t){var e=this.boundingBox(t),r=this.cy(),a=r.zoom(),n=r.pan(),i=e.x1*a+n.x,s=e.x2*a+n.x,o=e.y1*a+n.y,l=e.y2*a+n.y;return{x1:i,x2:s,y1:o,y2:l,w:s-i,h:l-o}};Zt.dirtyCompoundBoundsCache=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();return!e.styleEnabled()||!e.hasCompoundNodes()?this:(this.forEachUp(function(r){if(r.isParent()){var a=r._private;a.compoundBoundsClean=!1,a.bbCache=null,t||r.emitAndNotify("bounds")}}),this)};Zt.updateCompoundBounds=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!t&&e.batching())return this;function r(s){if(!s.isParent())return;var o=s._private,l=s.children(),u=s.pstyle("compound-sizing-wrt-labels").value==="include",f={width:{val:s.pstyle("min-width").pfValue,left:s.pstyle("min-width-bias-left"),right:s.pstyle("min-width-bias-right")},height:{val:s.pstyle("min-height").pfValue,top:s.pstyle("min-height-bias-top"),bottom:s.pstyle("min-height-bias-bottom")}},h=l.boundingBox({includeLabels:u,includeOverlays:!1,useCache:!1}),c=o.position;(h.w===0||h.h===0)&&(h={w:s.pstyle("width").pfValue,h:s.pstyle("height").pfValue},h.x1=c.x-h.w/2,h.x2=c.x+h.w/2,h.y1=c.y-h.h/2,h.y2=c.y+h.h/2);function v(w,D,A){var L=0,I=0,O=D+A;return w>0&&O>0&&(L=D/O*w,I=A/O*w),{biasDiff:L,biasComplementDiff:I}}function d(w,D,A,L){if(A.units==="%")switch(L){case"width":return w>0?A.pfValue*w:0;case"height":return D>0?A.pfValue*D:0;case"average":return w>0&&D>0?A.pfValue*(w+D)/2:0;case"min":return w>0&&D>0?w>D?A.pfValue*D:A.pfValue*w:0;case"max":return w>0&&D>0?w>D?A.pfValue*w:A.pfValue*D:0;default:return 0}else return A.units==="px"?A.pfValue:0}var g=f.width.left.value;f.width.left.units==="px"&&f.width.val>0&&(g=g*100/f.width.val);var p=f.width.right.value;f.width.right.units==="px"&&f.width.val>0&&(p=p*100/f.width.val);var y=f.height.top.value;f.height.top.units==="px"&&f.height.val>0&&(y=y*100/f.height.val);var E=f.height.bottom.value;f.height.bottom.units==="px"&&f.height.val>0&&(E=E*100/f.height.val);var m=v(f.width.val-h.w,g,p),T=m.biasDiff,C=m.biasComplementDiff,S=v(f.height.val-h.h,y,E),b=S.biasDiff,x=S.biasComplementDiff;o.autoPadding=d(h.w,h.h,s.pstyle("padding"),s.pstyle("padding-relative-to").value),o.autoWidth=Math.max(h.w,f.width.val),c.x=(-T+h.x1+h.x2+C)/2,o.autoHeight=Math.max(h.h,f.height.val),c.y=(-b+h.y1+h.y2+x)/2}for(var a=0;a e.x2?n:e.x2,e.y1=a e.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},tr=function(e,r){return r==null?e:wt(e,r.x1,r.y1,r.x2,r.y2)},Ur=function(e,r,a){return xt(e,r,a)},Oa=function(e,r,a){if(!r.cy().headless()){var n=r._private,i=n.rstyle,s=i.arrowWidth/2,o=r.pstyle(a+"-arrow-shape").value,l,u;if(o!=="none"){a==="source"?(l=i.srcX,u=i.srcY):a==="target"?(l=i.tgtX,u=i.tgtY):(l=i.midX,u=i.midY);var f=n.arrowBounds=n.arrowBounds||{},h=f[a]=f[a]||{};h.x1=l-s,h.y1=u-s,h.x2=l+s,h.y2=u+s,h.w=h.x2-h.x1,h.h=h.y2-h.y1,ka(h,1),wt(e,h.x1,h.y1,h.x2,h.y2)}}},Nn=function(e,r,a){if(!r.cy().headless()){var n;a?n=a+"-":n="";var i=r._private,s=i.rstyle,o=r.pstyle(n+"label").strValue;if(o){var l=r.pstyle("text-halign"),u=r.pstyle("text-valign"),f=Ur(s,"labelWidth",a),h=Ur(s,"labelHeight",a),c=Ur(s,"labelX",a),v=Ur(s,"labelY",a),d=r.pstyle(n+"text-margin-x").pfValue,g=r.pstyle(n+"text-margin-y").pfValue,p=r.isEdge(),y=r.pstyle(n+"text-rotation"),E=r.pstyle("text-outline-width").pfValue,m=r.pstyle("text-border-width").pfValue,T=m/2,C=r.pstyle("text-background-padding").pfValue,S=2,b=h,x=f,w=x/2,D=b/2,A,L,I,O;if(p)A=c-w,L=c+w,I=v-D,O=v+D;else{switch(l.value){case"left":A=c-x,L=c;break;case"center":A=c-w,L=c+w;break;case"right":A=c,L=c+x;break}switch(u.value){case"top":I=v-b,O=v;break;case"center":I=v-D,O=v+D;break;case"bottom":I=v,O=v+b;break}}A+=d-Math.max(E,T)-C-S,L+=d+Math.max(E,T)+C+S,I+=g-Math.max(E,T)-C-S,O+=g+Math.max(E,T)+C+S;var P=a||"main",R=i.labelBounds,M=R[P]=R[P]||{};M.x1=A,M.y1=I,M.x2=L,M.y2=O,M.w=L-A,M.h=O-I;var k=p&&y.strValue==="autorotate",B=y.pfValue!=null&&y.pfValue!==0;if(k||B){var G=k?Ur(i.rstyle,"labelAngle",a):y.pfValue,F=Math.cos(G),$=Math.sin(G),U=(A+L)/2,_=(I+O)/2;if(!p){switch(l.value){case"left":U=L;break;case"right":U=A;break}switch(u.value){case"top":_=O;break;case"bottom":_=I;break}}var Y=function(ce,te){return ce=ce-U,te=te-_,{x:ce*F-te*$+U,y:ce*$+te*F+_}},W=Y(A,I),z=Y(A,O),K=Y(L,I),j=Y(L,O);A=Math.min(W.x,z.x,K.x,j.x),L=Math.max(W.x,z.x,K.x,j.x),I=Math.min(W.y,z.y,K.y,j.y),O=Math.max(W.y,z.y,K.y,j.y)}var Q=P+"Rot",ee=R[Q]=R[Q]||{};ee.x1=A,ee.y1=I,ee.x2=L,ee.y2=O,ee.w=L-A,ee.h=O-I,wt(e,A,I,L,O),wt(i.labelBounds.all,A,I,L,O)}return e}},dp=function(e,r){if(!r.cy().headless()){var a=r.pstyle("outline-opacity").value,n=r.pstyle("outline-width").value;if(a>0&&n>0){var i=r.pstyle("outline-offset").value,s=r.pstyle("shape").value,o=n+i,l=(e.w+o*2)/e.w,u=(e.h+o*2)/e.h,f=0,h=0;["diamond","pentagon","round-triangle"].includes(s)?(l=(e.w+o*2.4)/e.w,h=-o/3.6):["concave-hexagon","rhomboid","right-rhomboid"].includes(s)?l=(e.w+o*2.4)/e.w:s==="star"?(l=(e.w+o*2.8)/e.w,u=(e.h+o*2.6)/e.h,h=-o/3.8):s==="triangle"?(l=(e.w+o*2.8)/e.w,u=(e.h+o*2.4)/e.h,h=-o/1.4):s==="vee"&&(l=(e.w+o*4.4)/e.w,u=(e.h+o*3.8)/e.h,h=-o*.5);var c=e.h*u-e.h,v=e.w*l-e.w;if(Pa(e,[Math.ceil(c/2),Math.ceil(v/2)]),f!=0||h!==0){var d=_d(e,f,h);wo(e,d)}}}},gp=function(e,r){var a=e._private.cy,n=a.styleEnabled(),i=a.headless(),s=ft(),o=e._private,l=e.isNode(),u=e.isEdge(),f,h,c,v,d,g,p=o.rstyle,y=l&&n?e.pstyle("bounds-expansion").pfValue:[0],E=function(ue){return ue.pstyle("display").value!=="none"},m=!n||E(e)&&(!u||E(e.source())&&E(e.target()));if(m){var T=0,C=0;n&&r.includeOverlays&&(T=e.pstyle("overlay-opacity").value,T!==0&&(C=e.pstyle("overlay-padding").value));var S=0,b=0;n&&r.includeUnderlays&&(S=e.pstyle("underlay-opacity").value,S!==0&&(b=e.pstyle("underlay-padding").value));var x=Math.max(C,b),w=0,D=0;if(n&&(w=e.pstyle("width").pfValue,D=w/2),l&&r.includeNodes){var A=e.position();d=A.x,g=A.y;var L=e.outerWidth(),I=L/2,O=e.outerHeight(),P=O/2;f=d-I,h=d+I,c=g-P,v=g+P,wt(s,f,c,h,v),n&&r.includeOutlines&&dp(s,e)}else if(u&&r.includeEdges)if(n&&!i){var R=e.pstyle("curve-style").strValue;if(f=Math.min(p.srcX,p.midX,p.tgtX),h=Math.max(p.srcX,p.midX,p.tgtX),c=Math.min(p.srcY,p.midY,p.tgtY),v=Math.max(p.srcY,p.midY,p.tgtY),f-=D,h+=D,c-=D,v+=D,wt(s,f,c,h,v),R==="haystack"){var M=p.haystackPts;if(M&&M.length===2){if(f=M[0].x,c=M[0].y,h=M[1].x,v=M[1].y,f>h){var k=f;f=h,h=k}if(c>v){var B=c;c=v,v=B}wt(s,f-D,c-D,h+D,v+D)}}else if(R==="bezier"||R==="unbundled-bezier"||R==="segments"||R==="taxi"){var G;switch(R){case"bezier":case"unbundled-bezier":G=p.bezierPts;break;case"segments":case"taxi":G=p.linePts;break}if(G!=null)for(var F=0;F h){var z=f;f=h,h=z}if(c>v){var K=c;c=v,v=K}f-=D,h+=D,c-=D,v+=D,wt(s,f,c,h,v)}if(n&&r.includeEdges&&u&&(Oa(s,e,"mid-source"),Oa(s,e,"mid-target"),Oa(s,e,"source"),Oa(s,e,"target")),n){var j=e.pstyle("ghost").value==="yes";if(j){var Q=e.pstyle("ghost-offset-x").pfValue,ee=e.pstyle("ghost-offset-y").pfValue;wt(s,s.x1+Q,s.y1+ee,s.x2+Q,s.y2+ee)}}var ne=o.bodyBounds=o.bodyBounds||{};qi(ne,s),Pa(ne,y),ka(ne,1),n&&(f=s.x1,h=s.x2,c=s.y1,v=s.y2,wt(s,f-x,c-x,h+x,v+x));var ce=o.overlayBounds=o.overlayBounds||{};qi(ce,s),Pa(ce,y),ka(ce,1);var te=o.labelBounds=o.labelBounds||{};te.all!=null?Vd(te.all):te.all=ft(),n&&r.includeLabels&&(r.includeMainLabels&&Nn(s,e,null),u&&(r.includeSourceLabels&&Nn(s,e,"source"),r.includeTargetLabels&&Nn(s,e,"target")))}return s.x1=dt(s.x1),s.y1=dt(s.y1),s.x2=dt(s.x2),s.y2=dt(s.y2),s.w=dt(s.x2-s.x1),s.h=dt(s.y2-s.y1),s.w>0&&s.h>0&&m&&(Pa(s,y),ka(s,1)),s},Vo=function(e){var r=0,a=function(s){return(s?1:0)< 0&&arguments[0]!==void 0?arguments[0]:Np,e=arguments.length>1?arguments[1]:void 0,r=0;r =0;o--)s(o);return this};Kt.removeAllListeners=function(){return this.removeListener("*")};Kt.emit=Kt.trigger=function(t,e,r){var a=this.listeners,n=a.length;return this.emitting++,Me(e)||(e=[e]),Ip(this,function(i,s){r!=null&&(a=[{event:s.event,type:s.type,namespace:s.namespace,callback:r}],n=a.length);for(var o=function(f){var h=a[f];if(h.type===s.type&&(!h.namespace||h.namespace===s.namespace||h.namespace===Op)&&i.eventMatches(i.context,h,s)){var c=[s];e!=null&&pd(c,e),i.beforeEmit(i.context,h,s),h.conf&&h.conf.one&&(i.listeners=i.listeners.filter(function(g){return g!==h}));var v=i.callbackContext(i.context,h,s),d=h.callback.apply(v,c);i.afterEmit(i.context,h,s),d===!1&&(s.stopPropagation(),s.preventDefault())}},l=0;l 1&&!s){var o=this.length-1,l=this[o],u=l._private.data.id;this[o]=void 0,this[e]=l,i.set(u,{ele:l,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var r=this._private,a=e._private.data.id,n=r.map,i=n.get(a);if(!i)return this;var s=i.index;return this.unmergeAt(s),this},unmerge:function(e){var r=this._private.cy;if(!e)return this;if(e&&ve(e)){var a=e;e=r.mutableElements().filter(a)}for(var n=0;n =0;r--){var a=this[r];e(a)&&this.unmergeAt(r)}return this},map:function(e,r){for(var a=[],n=this,i=0;i a&&(a=l,n=o)}return{value:a,ele:n}},min:function(e,r){for(var a=1/0,n,i=this,s=0;s =0&&i "u"?"undefined":Ue(Symbol))!=e&&Ue(Symbol.iterator)!=e;r&&(Za[Symbol.iterator]=function(){var a=this,n={value:void 0,done:!1},i=0,s=this.length;return ro({next:function(){return i 1&&arguments[1]!==void 0?arguments[1]:!0,a=this[0],n=a.cy();if(n.styleEnabled()&&a){this.cleanStyle();var i=a._private.style[e];return i??(r?n.style().getDefaultProperty(e):null)}},numericStyle:function(e){var r=this[0];if(r.cy().styleEnabled()&&r){var a=r.pstyle(e);return a.pfValue!==void 0?a.pfValue:a.value}},numericStyleUnits:function(e){var r=this[0];if(r.cy().styleEnabled()&&r)return r.pstyle(e).units},renderedStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var a=this[0];if(a)return r.style().getRenderedStyle(a,e)},style:function(e,r){var a=this.cy();if(!a.styleEnabled())return this;var n=!1,i=a.style();if(De(e)){var s=e;i.applyBypass(this,s,n),this.emitAndNotify("style")}else if(ve(e))if(r===void 0){var o=this[0];return o?i.getStylePropertyValue(o,e):void 0}else i.applyBypass(this,e,r,n),this.emitAndNotify("style");else if(e===void 0){var l=this[0];return l?i.getRawStyle(l):void 0}return this},removeStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var a=!1,n=r.style(),i=this;if(e===void 0)for(var s=0;s0&&e.push(f[0]),e.push(o[0])}return this.spawn(e,!0).filter(t)},"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}});tt.neighbourhood=tt.neighborhood;tt.closedNeighbourhood=tt.closedNeighborhood;tt.openNeighbourhood=tt.openNeighborhood;de(tt,{source:gt(function(e){var r=this[0],a;return r&&(a=r._private.source||r.cy().collection()),a&&e?a.filter(e):a},"source"),target:gt(function(e){var r=this[0],a;return r&&(a=r._private.target||r.cy().collection()),a&&e?a.filter(e):a},"target"),sources:ws({attr:"source"}),targets:ws({attr:"target"})});function ws(t){return function(r){for(var a=[],n=0;n 0);return s},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}});tt.componentsOf=tt.components;var Ze=function(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===void 0){Ge("A collection must have a reference to the core");return}var i=new Lt,s=!1;if(!r)r=[];else if(r.length>0&&De(r[0])&&!ca(r[0])){s=!0;for(var o=[],l=new Mr,u=0,f=r.length;u 0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,a=r.cy(),n=a._private,i=[],s=[],o,l=0,u=r.length;l0){for(var B=o.length===r.length?r:new Ze(a,o),G=0;G 0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,a=[],n={},i=r._private.cy;function s(O){for(var P=O._private.edges,R=0;R 0&&(t?A.emitAndNotify("remove"):e&&A.emit("remove"));for(var L=0;L 0?L=O:A=O;while(Math.abs(I)>s&&++P =i?E(D,P):R===0?P:T(D,A,A+u)}var S=!1;function b(){S=!0,(t!==e||r!==a)&&m()}var x=function(A){return S||b(),t===e&&r===a?A:A===0?0:A===1?1:p(C(A),e,a)};x.getControlPoints=function(){return[{x:t,y:e},{x:r,y:a}]};var w="generateBezier("+[t,e,r,a]+")";return x.toString=function(){return w},x}/*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */var _p=function(){function t(a){return-a.tension*a.x-a.friction*a.v}function e(a,n,i){var s={x:a.x+i.dx*n,v:a.v+i.dv*n,tension:a.tension,friction:a.friction};return{dx:s.v,dv:t(s)}}function r(a,n){var i={dx:a.v,dv:t(a)},s=e(a,n*.5,i),o=e(a,n*.5,s),l=e(a,n,o),u=1/6*(i.dx+2*(s.dx+o.dx)+l.dx),f=1/6*(i.dv+2*(s.dv+o.dv)+l.dv);return a.x=a.x+u*n,a.v=a.v+f*n,a}return function a(n,i,s){var o={x:-1,v:0,tension:null,friction:null},l=[0],u=0,f=1/1e4,h=16/1e3,c,v,d;for(n=parseFloat(n)||500,i=parseFloat(i)||20,s=s||null,o.tension=n,o.friction=i,c=s!==null,c?(u=a(n,i),v=u/s*h):v=h;d=r(d||o,v),l.push(1+d.x),u+=16,Math.abs(d.x)>f&&Math.abs(d.v)>f;);return c?function(g){return l[g*(l.length-1)|0]}:u}}(),Re=function(e,r,a,n){var i=Vp(e,r,a,n);return function(s,o,l){return s+(o-s)*i(l)}},Ga={linear:function(e,r,a){return e+(r-e)*a},ease:Re(.25,.1,.25,1),"ease-in":Re(.42,0,1,1),"ease-out":Re(0,0,.58,1),"ease-in-out":Re(.42,0,.58,1),"ease-in-sine":Re(.47,0,.745,.715),"ease-out-sine":Re(.39,.575,.565,1),"ease-in-out-sine":Re(.445,.05,.55,.95),"ease-in-quad":Re(.55,.085,.68,.53),"ease-out-quad":Re(.25,.46,.45,.94),"ease-in-out-quad":Re(.455,.03,.515,.955),"ease-in-cubic":Re(.55,.055,.675,.19),"ease-out-cubic":Re(.215,.61,.355,1),"ease-in-out-cubic":Re(.645,.045,.355,1),"ease-in-quart":Re(.895,.03,.685,.22),"ease-out-quart":Re(.165,.84,.44,1),"ease-in-out-quart":Re(.77,0,.175,1),"ease-in-quint":Re(.755,.05,.855,.06),"ease-out-quint":Re(.23,1,.32,1),"ease-in-out-quint":Re(.86,0,.07,1),"ease-in-expo":Re(.95,.05,.795,.035),"ease-out-expo":Re(.19,1,.22,1),"ease-in-out-expo":Re(1,0,0,1),"ease-in-circ":Re(.6,.04,.98,.335),"ease-out-circ":Re(.075,.82,.165,1),"ease-in-out-circ":Re(.785,.135,.15,.86),spring:function(e,r,a){if(a===0)return Ga.linear;var n=_p(e,r,a);return function(i,s,o){return i+(s-i)*n(o)}},"cubic-bezier":Re};function Cs(t,e,r,a,n){if(a===1||e===r)return r;var i=n(e,r,a);return t==null||((t.roundValue||t.color)&&(i=Math.round(i)),t.min!==void 0&&(i=Math.max(i,t.min)),t.max!==void 0&&(i=Math.min(i,t.max))),i}function Ds(t,e){return t.pfValue!=null||t.value!=null?t.pfValue!=null&&(e==null||e.type.units!=="%")?t.pfValue:t.value:t}function pr(t,e,r,a,n){var i=n!=null?n.type:null;r<0?r=0:r>1&&(r=1);var s=Ds(t,n),o=Ds(e,n);if(ae(s)&&ae(o))return Cs(i,s,o,r,a);if(Me(s)&&Me(o)){for(var l=[],u=0;u 0?(v==="spring"&&d.push(s.duration),s.easingImpl=Ga[v].apply(null,d)):s.easingImpl=Ga[v]}var g=s.easingImpl,p;if(s.duration===0?p=1:p=(r-l)/s.duration,s.applying&&(p=s.progress),p<0?p=0:p>1&&(p=1),s.delay==null){var y=s.startPosition,E=s.position;if(E&&n&&!t.locked()){var m={};Yr(y.x,E.x)&&(m.x=pr(y.x,E.x,p,g)),Yr(y.y,E.y)&&(m.y=pr(y.y,E.y,p,g)),t.position(m)}var T=s.startPan,C=s.pan,S=i.pan,b=C!=null&&a;b&&(Yr(T.x,C.x)&&(S.x=pr(T.x,C.x,p,g)),Yr(T.y,C.y)&&(S.y=pr(T.y,C.y,p,g)),t.emit("pan"));var x=s.startZoom,w=s.zoom,D=w!=null&&a;D&&(Yr(x,w)&&(i.zoom=ra(i.minZoom,pr(x,w,p,g),i.maxZoom)),t.emit("zoom")),(b||D)&&t.emit("viewport");var A=s.style;if(A&&A.length>0&&n){for(var L=0;L =0;b--){var x=S[b];x()}S.splice(0,S.length)},E=v.length-1;E>=0;E--){var m=v[E],T=m._private;if(T.stopped){v.splice(E,1),T.hooked=!1,T.playing=!1,T.started=!1,y(T.frames);continue}!T.playing&&!T.applying||(T.playing&&T.applying&&(T.applying=!1),T.started||Hp(f,m,t),Up(f,m,t,h),T.applying&&(T.applying=!1),y(T.frames),T.step!=null&&T.step(t),m.completed()&&(v.splice(E,1),T.hooked=!1,T.playing=!1,T.started=!1,y(T.completes)),g=!0)}return!h&&v.length===0&&d.length===0&&a.push(f),g}for(var i=!1,s=0;s 0?e.notify("draw",r):e.notify("draw")),r.unmerge(a),e.emit("step")}var Yp={animate:Oe.animate(),animation:Oe.animation(),animated:Oe.animated(),clearQueue:Oe.clearQueue(),delay:Oe.delay(),delayAnimation:Oe.delayAnimation(),stop:Oe.stop(),addToAnimationPool:function(e){var r=this;r.styleEnabled()&&r._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function r(){e._private.animationsRunning&&Ya(function(i){Ss(i,e),r()})}var a=e.renderer();a&&a.beforeRender?a.beforeRender(function(i,s){Ss(s,e)},a.beforeRenderPriorities.animations):r()}},Xp={qualifierCompare:function(e,r){return e==null||r==null?e==null&&r==null:e.sameText(r)},eventMatches:function(e,r,a){var n=r.qualifier;return n!=null?e!==a.target&&ca(a.target)&&n.matches(a.target):!0},addEventFields:function(e,r){r.cy=e,r.target=e},callbackContext:function(e,r,a){return r.qualifier!=null?a.target:e}},Ma=function(e){return ve(e)?new Wt(e):e},Jo={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new cn(Xp,this)),this},emitter:function(){return this._private.emitter},on:function(e,r,a){return this.emitter().on(e,Ma(r),a),this},removeListener:function(e,r,a){return this.emitter().removeListener(e,Ma(r),a),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,r,a){return this.emitter().one(e,Ma(r),a),this},once:function(e,r,a){return this.emitter().one(e,Ma(r),a),this},emit:function(e,r){return this.emitter().emit(e,r),this},emitAndNotify:function(e,r){return this.emit(e),this.notify(e,r),this}};Oe.eventAliasesOn(Jo);var Hn={png:function(e){var r=this._private.renderer;return e=e||{},r.png(e)},jpg:function(e){var r=this._private.renderer;return e=e||{},e.bg=e.bg||"#fff",r.jpg(e)}};Hn.jpeg=Hn.jpg;var za={layout:function(e){var r=this;if(e==null){Ge("Layout options must be specified to make a layout");return}if(e.name==null){Ge("A `name` must be specified to make a layout");return}var a=e.name,n=r.extension("layout",a);if(n==null){Ge("No such layout `"+a+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var i;ve(e.eles)?i=r.$(e.eles):i=e.eles!=null?e.eles:r.$();var s=new n(de({},e,{cy:r,eles:i}));return s}};za.createLayout=za.makeLayout=za.layout;var Wp={notify:function(e,r){var a=this._private;if(this.batching()){a.batchNotifications=a.batchNotifications||{};var n=a.batchNotifications[e]=a.batchNotifications[e]||this.collection();r!=null&&n.merge(r);return}if(a.notificationsEnabled){var i=this.renderer();this.destroyed()||!i||i.notify(e,r)}},notifications:function(e){var r=this._private;return e===void 0?r.notificationsEnabled:(r.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return e.batchCount==null&&(e.batchCount=0),e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var r=this.renderer();Object.keys(e.batchNotifications).forEach(function(a){var n=e.batchNotifications[a];n.empty()?r.notify(a):r.notify(a,n)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var r=this;return this.batch(function(){for(var a=Object.keys(e),n=0;n 0;)r.removeChild(r.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(a){var n=a._private;n.rscratch={},n.rstyle={},n.animation.current=[],n.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};Yn.invalidateDimensions=Yn.resize;var $a={collection:function(e,r){return ve(e)?this.$(e):ht(e)?e.collection():Me(e)?(r||(r={}),new Ze(this,e,r.unique,r.removed)):new Ze(this)},nodes:function(e){var r=this.$(function(a){return a.isNode()});return e?r.filter(e):r},edges:function(e){var r=this.$(function(a){return a.isEdge()});return e?r.filter(e):r},$:function(e){var r=this._private.elements;return e?r.filter(e):r.spawnSelf()},mutableElements:function(){return this._private.elements}};$a.elements=$a.filter=$a.$;var at={},Zr="t",Kp="f";at.apply=function(t){for(var e=this,r=e._private,a=r.cy,n=a.collection(),i=0;i 0;if(c||h&&v){var d=void 0;c&&v||c?d=u.properties:v&&(d=u.mappedProperties);for(var g=0;g 1&&(T=1),o.color){var S=a.valueMin[0],b=a.valueMax[0],x=a.valueMin[1],w=a.valueMax[1],D=a.valueMin[2],A=a.valueMax[2],L=a.valueMin[3]==null?1:a.valueMin[3],I=a.valueMax[3]==null?1:a.valueMax[3],O=[Math.round(S+(b-S)*T),Math.round(x+(w-x)*T),Math.round(D+(A-D)*T),Math.round(L+(I-L)*T)];i={bypass:a.bypass,name:a.name,value:O,strValue:"rgb("+O[0]+", "+O[1]+", "+O[2]+")"}}else if(o.number){var P=a.valueMin+(a.valueMax-a.valueMin)*T;i=this.parse(a.name,P,a.bypass,c)}else return!1;if(!i)return g(),!1;i.mapping=a,a=i;break}case s.data:{for(var R=a.field.split("."),M=h.data,k=0;k 0&&i>0){for(var o={},l=!1,u=0;u 0?t.delayAnimation(s).play().promise().then(m):m()}).then(function(){return t.animation({style:o,duration:i,easing:t.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){r.removeBypasses(t,n),t.emitAndNotify("style"),a.transitioning=!1})}else a.transitioning&&(this.removeBypasses(t,n),t.emitAndNotify("style"),a.transitioning=!1)};at.checkTrigger=function(t,e,r,a,n,i){var s=this.properties[e],o=n(s);o!=null&&o(r,a)&&i(s)};at.checkZOrderTrigger=function(t,e,r,a){var n=this;this.checkTrigger(t,e,r,a,function(i){return i.triggersZOrder},function(){n._private.cy.notify("zorder",t)})};at.checkBoundsTrigger=function(t,e,r,a){this.checkTrigger(t,e,r,a,function(n){return n.triggersBounds},function(n){t.dirtyCompoundBoundsCache(),t.dirtyBoundingBoxCache(),n.triggersBoundsOfParallelBeziers&&e==="curve-style"&&(r==="bezier"||a==="bezier")&&t.parallelEdges().forEach(function(i){i.isBundledBezier()&&i.dirtyBoundingBoxCache()}),n.triggersBoundsOfConnectedEdges&&e==="display"&&(r==="none"||a==="none")&&t.connectedEdges().forEach(function(i){i.dirtyBoundingBoxCache()})})};at.checkTriggers=function(t,e,r,a){t.dirtyStyleCache(),this.checkZOrderTrigger(t,e,r,a),this.checkBoundsTrigger(t,e,r,a)};var pa={};pa.applyBypass=function(t,e,r,a){var n=this,i=[],s=!0;if(e==="*"||e==="**"){if(r!==void 0)for(var o=0;o n.length?a=a.substr(n.length):a=""}function l(){i.length>s.length?i=i.substr(s.length):i=""}for(;;){var u=a.match(/^\s*$/);if(u)break;var f=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!f){Ne("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}n=f[0];var h=f[1];if(h!=="core"){var c=new Wt(h);if(c.invalid){Ne("Skipping parsing of block: Invalid selector found in string stylesheet: "+h),o();continue}}var v=f[2],d=!1;i=v;for(var g=[];;){var p=i.match(/^\s*$/);if(p)break;var y=i.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!y){Ne("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+v),d=!0;break}s=y[0];var E=y[1],m=y[2],T=e.properties[E];if(!T){Ne("Skipping property: Invalid property name in: "+s),l();continue}var C=r.parse(E,m);if(!C){Ne("Skipping property: Invalid property definition in: "+s),l();continue}g.push({name:E,val:m}),l()}if(d){o();break}r.selector(h);for(var S=0;S =7&&e[0]==="d"&&(f=new RegExp(o.data.regex).exec(e))){if(r)return!1;var c=o.data;return{name:t,value:f,strValue:""+e,mapped:c,field:f[1],bypass:r}}else if(e.length>=10&&e[0]==="m"&&(h=new RegExp(o.mapData.regex).exec(e))){if(r||u.multiple)return!1;var v=o.mapData;if(!(u.color||u.number))return!1;var d=this.parse(t,h[4]);if(!d||d.mapped)return!1;var g=this.parse(t,h[5]);if(!g||g.mapped)return!1;if(d.pfValue===g.pfValue||d.strValue===g.strValue)return Ne("`"+t+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+t+": "+d.strValue+"`"),this.parse(t,d.strValue);if(u.color){var p=d.value,y=g.value,E=p[0]===y[0]&&p[1]===y[1]&&p[2]===y[2]&&(p[3]===y[3]||(p[3]==null||p[3]===1)&&(y[3]==null||y[3]===1));if(E)return!1}return{name:t,value:h,strValue:""+e,mapped:v,field:h[1],fieldMin:parseFloat(h[2]),fieldMax:parseFloat(h[3]),valueMin:d.value,valueMax:g.value,bypass:r}}}if(u.multiple&&a!=="multiple"){var m;if(l?m=e.split(/\s+/):Me(e)?m=e:m=[e],u.evenMultiple&&m.length%2!==0)return null;for(var T=[],C=[],S=[],b="",x=!1,w=0;w 0?" ":"")+D.strValue}return u.validate&&!u.validate(T,C)?null:u.singleEnum&&x?T.length===1&&ve(T[0])?{name:t,value:T[0],strValue:T[0],bypass:r}:null:{name:t,value:T,pfValue:S,strValue:b,bypass:r,units:C}}var A=function(){for(var j=0;j u.max||u.strictMax&&e===u.max))return null;var R={name:t,value:e,strValue:""+e+(L||""),units:L,bypass:r};return u.unitless||L!=="px"&&L!=="em"?R.pfValue=e:R.pfValue=L==="px"||!L?e:this.getEmSizeInPixels()*e,(L==="ms"||L==="s")&&(R.pfValue=L==="ms"?e:1e3*e),(L==="deg"||L==="rad")&&(R.pfValue=L==="rad"?e:Fd(e)),L==="%"&&(R.pfValue=e/100),R}else if(u.propList){var M=[],k=""+e;if(k!=="none"){for(var B=k.split(/\s*,\s*|\s+/),G=0;G 0&&o>0&&!isNaN(a.w)&&!isNaN(a.h)&&a.w>0&&a.h>0){l=Math.min((s-2*r)/a.w,(o-2*r)/a.h),l=l>this._private.maxZoom?this._private.maxZoom:l,l=l =a.minZoom&&(a.maxZoom=r),this},minZoom:function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var r=this._private,a=r.pan,n=r.zoom,i,s,o=!1;if(r.zoomingEnabled||(o=!0),ae(e)?s=e:De(e)&&(s=e.level,e.position!=null?i=fn(e.position,n,a):e.renderedPosition!=null&&(i=e.renderedPosition),i!=null&&!r.panningEnabled&&(o=!0)),s=s>r.maxZoom?r.maxZoom:s,s=s r.maxZoom||!r.zoomingEnabled?s=!0:(r.zoom=l,i.push("zoom"))}if(n&&(!s||!e.cancelOnFailedZoom)&&r.panningEnabled){var u=e.pan;ae(u.x)&&(r.pan.x=u.x,o=!1),ae(u.y)&&(r.pan.y=u.y,o=!1),o||i.push("pan")}return i.length>0&&(i.push("viewport"),this.emit(i.join(" ")),this.notify("viewport")),this},center:function(e){var r=this.getCenterPan(e);return r&&(this._private.pan=r,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,r){if(this._private.panningEnabled){if(ve(e)){var a=e;e=this.mutableElements().filter(a)}else ht(e)||(e=this.mutableElements());if(e.length!==0){var n=e.boundingBox(),i=this.width(),s=this.height();r=r===void 0?this._private.zoom:r;var o={x:(i-r*(n.x1+n.x2))/2,y:(s-r*(n.y1+n.y2))/2};return o}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e=this._private,r=e.container,a=this;return e.sizeCache=e.sizeCache||(r?function(){var n=a.window().getComputedStyle(r),i=function(o){return parseFloat(n.getPropertyValue(o))};return{width:r.clientWidth-i("padding-left")-i("padding-right"),height:r.clientHeight-i("padding-top")-i("padding-bottom")}}():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,r=this._private.zoom,a=this.renderedExtent(),n={x1:(a.x1-e.x)/r,x2:(a.x2-e.x)/r,y1:(a.y1-e.y)/r,y2:(a.y2-e.y)/r};return n.w=n.x2-n.x1,n.h=n.y2-n.y1,n},renderedExtent:function(){var e=this.width(),r=this.height();return{x1:0,y1:0,x2:e,y2:r,w:e,h:r}},multiClickDebounceTime:function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this}};sr.centre=sr.center;sr.autolockNodes=sr.autolock;sr.autoungrabifyNodes=sr.autoungrabify;var sa={data:Oe.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:Oe.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:Oe.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Oe.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};sa.attr=sa.data;sa.removeAttr=sa.removeData;var oa=function(e){var r=this;e=de({},e);var a=e.container;a&&!Ha(a)&&Ha(a[0])&&(a=a[0]);var n=a?a._cyreg:null;n=n||{},n&&n.cy&&(n.cy.destroy(),n={});var i=n.readies=n.readies||[];a&&(a._cyreg=n),n.cy=r;var s=$e!==void 0&&a!==void 0&&!e.headless,o=e;o.layout=de({name:s?"grid":"null"},o.layout),o.renderer=de({name:s?"canvas":"null"},o.renderer);var l=function(d,g,p){return g!==void 0?g:p!==void 0?p:d},u=this._private={container:a,ready:!1,options:o,elements:new Ze(this),listeners:[],aniEles:new Ze(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:l(!0,o.zoomingEnabled),userZoomingEnabled:l(!0,o.userZoomingEnabled),panningEnabled:l(!0,o.panningEnabled),userPanningEnabled:l(!0,o.userPanningEnabled),boxSelectionEnabled:l(!0,o.boxSelectionEnabled),autolock:l(!1,o.autolock,o.autolockNodes),autoungrabify:l(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:l(!1,o.autounselectify),styleEnabled:o.styleEnabled===void 0?s:o.styleEnabled,zoom:ae(o.zoom)?o.zoom:1,pan:{x:De(o.pan)&&ae(o.pan.x)?o.pan.x:0,y:De(o.pan)&&ae(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:l(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom});var f=function(d,g){var p=d.some(Xc);if(p)return Rr.all(d).then(g);g(d)};u.styleEnabled&&r.setStyle([]);var h=de({},o,o.renderer);r.initRenderer(h);var c=function(d,g,p){r.notifications(!1);var y=r.mutableElements();y.length>0&&y.remove(),d!=null&&(De(d)||Me(d))&&r.add(d),r.one("layoutready",function(m){r.notifications(!0),r.emit(m),r.one("load",g),r.emitAndNotify("load")}).one("layoutstop",function(){r.one("done",p),r.emit("done")});var E=de({},r._private.options.layout);E.eles=r.elements(),r.layout(E).run()};f([o.style,o.elements],function(v){var d=v[0],g=v[1];u.styleEnabled&&r.style().append(d),c(g,function(){r.startAnimationLoop(),u.ready=!0,Be(o.ready)&&r.on("ready",o.ready);for(var p=0;p 0,l=ft(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),u;if(ht(e.roots))u=e.roots;else if(Me(e.roots)){for(var f=[],h=0;h 0;){var P=O(),R=D(P,L);if(R)P.outgoers().filter(function(te){return te.isNode()&&a.has(te)}).forEach(I);else if(R===null){Ne("Detected double maximal shift for node `"+P.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}w();var M=0;if(e.avoidOverlap)for(var k=0;k 0&&y[0].length<=3?ge/2:0),N=2*Math.PI/y[le].length*se;return le===0&&y[0].length===1&&(H=1),{x:ee.x+H*Math.cos(N),y:ee.y+H*Math.sin(N)}}else{var we={x:ee.x+(se+1-(fe+1)/2)*xe,y:(le+1)*Ee};return we}};return a.nodes().layoutPositions(this,e,ce),this};var ey={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function el(t){this.options=de({},ey,t)}el.prototype.run=function(){var t=this.options,e=t,r=t.cy,a=e.eles,n=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,i=a.nodes().not(":parent");e.sort&&(i=i.sort(e.sort));for(var s=ft(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),o={x:s.x1+s.w/2,y:s.y1+s.h/2},l=e.sweep===void 0?2*Math.PI-2*Math.PI/i.length:e.sweep,u=l/Math.max(1,i.length-1),f,h=0,c=0;c 1&&e.avoidOverlap){h*=1.75;var y=Math.cos(u)-Math.cos(0),E=Math.sin(u)-Math.sin(0),m=Math.sqrt(h*h/(y*y+E*E));f=Math.max(m,f)}var T=function(S,b){var x=e.startAngle+b*u*(n?1:-1),w=f*Math.cos(x),D=f*Math.sin(x),A={x:o.x+w,y:o.y+D};return A};return a.nodes().layoutPositions(this,e,T),this};var ty={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function tl(t){this.options=de({},ty,t)}tl.prototype.run=function(){for(var t=this.options,e=t,r=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,a=t.cy,n=e.eles,i=n.nodes().not(":parent"),s=ft(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:a.width(),h:a.height()}),o={x:s.x1+s.w/2,y:s.y1+s.h/2},l=[],u=0,f=0;f 0){var C=Math.abs(E[0].value-T.value);C>=p&&(E=[],y.push(E))}E.push(T)}var S=u+e.minNodeSpacing;if(!e.avoidOverlap){var b=y.length>0&&y[0].length>1,x=Math.min(s.w,s.h)/2-S,w=x/(y.length+b?1:0);S=Math.min(S,w)}for(var D=0,A=0;A 1&&e.avoidOverlap){var P=Math.cos(O)-Math.cos(0),R=Math.sin(O)-Math.sin(0),M=Math.sqrt(S*S/(P*P+R*R));D=Math.max(M,D)}L.r=D,D+=S}if(e.equidistant){for(var k=0,B=0,G=0;G =t.numIter||(uy(a,t),a.temperature=a.temperature*t.coolingFactor,a.temperature =t.animationThreshold&&i(),Ya(h)}};f()}else{for(;u;)u=s(l),l++;Os(a,t),o()}return this};mn.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this};mn.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var ay=function(e,r,a){for(var n=a.eles.edges(),i=a.eles.nodes(),s=ft(a.boundingBox?a.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),o={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:n.size(),temperature:a.initialTemp,clientWidth:s.w,clientHeight:s.h,boundingBox:s},l=a.eles.components(),u={},f=0;f 0){o.graphSet.push(x);for(var f=0;f n.count?0:n.graph},iy=function t(e,r,a,n){var i=n.graphSet[a];if(-1 0)var h=n.nodeOverlap*f,c=Math.sqrt(o*o+l*l),v=h*o/c,d=h*l/c;else var g=Ja(e,o,l),p=Ja(r,-1*o,-1*l),y=p.x-g.x,E=p.y-g.y,m=y*y+E*E,c=Math.sqrt(m),h=(e.nodeRepulsion+r.nodeRepulsion)/m,v=h*y/c,d=h*E/c;e.isLocked||(e.offsetX-=v,e.offsetY-=d),r.isLocked||(r.offsetX+=v,r.offsetY+=d)}},vy=function(e,r,a,n){if(a>0)var i=e.maxX-r.minX;else var i=r.maxX-e.minX;if(n>0)var s=e.maxY-r.minY;else var s=r.maxY-e.minY;return i>=0&&s>=0?Math.sqrt(i*i+s*s):0},Ja=function(e,r,a){var n=e.positionX,i=e.positionY,s=e.height||1,o=e.width||1,l=a/r,u=s/o,f={};return r===0&&0a?(f.x=n,f.y=i+s/2,f):0 r&&-1*u<=l&&l<=u?(f.x=n-o/2,f.y=i-o*a/2/r,f):0=u)?(f.x=n+s*r/2/a,f.y=i+s/2,f):(0>a&&(l<=-1*u||l>=u)&&(f.x=n-s*r/2/a,f.y=i-s/2),f)},cy=function(e,r){for(var a=0;a a){var p=r.gravity*v/g,y=r.gravity*d/g;c.offsetX+=p,c.offsetY+=y}}}}},gy=function(e,r){var a=[],n=0,i=-1;for(a.push.apply(a,e.graphSet[0]),i+=e.graphSet[0].length;n<=i;){var s=a[n++],o=e.idToIndex[s],l=e.layoutNodes[o],u=l.children;if(0 a)var i={x:a*e/n,y:a*r/n};else var i={x:e,y:r};return i},my=function t(e,r){var a=e.parentId;if(a!=null){var n=r.layoutNodes[r.idToIndex[a]],i=!1;if((n.maxX==null||e.maxX+n.padRight>n.maxX)&&(n.maxX=e.maxX+n.padRight,i=!0),(n.minX==null||e.minX-n.padLeft n.maxY)&&(n.maxY=e.maxY+n.padBottom,i=!0),(n.minY==null||e.minY-n.padTop y&&(d+=p+r.componentSpacing,v=0,g=0,p=0)}}},by={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function al(t){this.options=de({},by,t)}al.prototype.run=function(){var t=this.options,e=t,r=t.cy,a=e.eles,n=a.nodes().not(":parent");e.sort&&(n=n.sort(e.sort));var i=ft(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(i.h===0||i.w===0)a.nodes().layoutPositions(this,e,function(U){return{x:i.x1,y:i.y1}});else{var s=n.size(),o=Math.sqrt(s*i.h/i.w),l=Math.round(o),u=Math.round(i.w/i.h*o),f=function(_){if(_==null)return Math.min(l,u);var Y=Math.min(l,u);Y==l?l=_:u=_},h=function(_){if(_==null)return Math.max(l,u);var Y=Math.max(l,u);Y==l?l=_:u=_},c=e.rows,v=e.cols!=null?e.cols:e.columns;if(c!=null&&v!=null)l=c,u=v;else if(c!=null&&v==null)l=c,u=Math.ceil(s/l);else if(c==null&&v!=null)u=v,l=Math.ceil(s/u);else if(u*l>s){var d=f(),g=h();(d-1)*g>=s?f(d-1):(g-1)*d>=s&&h(g-1)}else for(;u*l =s?h(y+1):f(p+1)}var E=i.w/u,m=i.h/l;if(e.condense&&(E=0,m=0),e.avoidOverlap)for(var T=0;T=u&&(P=0,O++)},M={},k=0;k (P=Zd(t,e,R[M],R[M+1],R[M+2],R[M+3])))return p(b,P),!0}else if(w.edgeType==="bezier"||w.edgeType==="multibezier"||w.edgeType==="self"||w.edgeType==="compound"){for(var R=w.allpts,M=0;M+5