dsh-vt-web-chat 1.2.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +66 -33
- package/client.js +355 -798
- package/docs/research/01-chat-demo-embedding.md +322 -0
- package/index.js +36 -8
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +15 -6
- package/scripts/dev-server.mjs +54 -0
- package/scripts/sync-upstream.mjs +106 -0
- package/src/auth.js +65 -0
- package/src/maintenance.js +240 -0
- package/src/proxy.js +139 -0
- package/src/route.js +307 -0
- package/src/settings.js +74 -0
- package/webview/UPSTREAM.json +6 -0
- package/webview/dist/LICENSE +21 -0
- package/webview/dist/index.html +1 -0
- package/webview/dist/static/css/async/4959.1382f613.css +1 -0
- package/webview/dist/static/css/main.27198ffe.css +1 -0
- package/webview/dist/static/js/async/1031.575fa503.js +1 -0
- package/webview/dist/static/js/async/1085.769e13d5.js +1 -0
- package/webview/dist/static/js/async/1086.4d3be1fa.js +1 -0
- package/webview/dist/static/js/async/1097.4f798919.js +117 -0
- package/webview/dist/static/js/async/1299.0ef86619.js +1 -0
- package/webview/dist/static/js/async/1393.6ef1efab.js +1 -0
- package/webview/dist/static/js/async/1401.88487cba.js +1 -0
- package/webview/dist/static/js/async/1505.8913966f.js +1 -0
- package/webview/dist/static/js/async/160.81018107.js +55 -0
- package/webview/dist/static/js/async/1679.153f9f03.js +1 -0
- package/webview/dist/static/js/async/1690.fe25bdfe.js +1 -0
- package/webview/dist/static/js/async/2110.a1d33f2f.js +215 -0
- package/webview/dist/static/js/async/2152.97b0a90c.js +1 -0
- package/webview/dist/static/js/async/2168.9925ab2d.js +1 -0
- package/webview/dist/static/js/async/2312.4fd0ef8e.js +1 -0
- package/webview/dist/static/js/async/2348.41564e59.js +148 -0
- package/webview/dist/static/js/async/2356.631a6aca.js +1 -0
- package/webview/dist/static/js/async/2415.00900482.js +1 -0
- package/webview/dist/static/js/async/2461.15199935.js +1 -0
- package/webview/dist/static/js/async/2541.f8eac009.js +1 -0
- package/webview/dist/static/js/async/2607.abb8bc11.js +1 -0
- package/webview/dist/static/js/async/265.b43cee3f.js +1 -0
- package/webview/dist/static/js/async/2696.60d5ecf0.js +1 -0
- package/webview/dist/static/js/async/3014.c8e9b88f.js +1 -0
- package/webview/dist/static/js/async/3111.e2cca965.js +1 -0
- package/webview/dist/static/js/async/3251.0b9c608e.js +1 -0
- package/webview/dist/static/js/async/3339.ed293391.js +1 -0
- package/webview/dist/static/js/async/3376.3aa54d1a.js +93 -0
- package/webview/dist/static/js/async/3465.845187e8.js +1 -0
- package/webview/dist/static/js/async/3477.94bd21ab.js +5 -0
- package/webview/dist/static/js/async/3594.edfe4411.js +1 -0
- package/webview/dist/static/js/async/3806.28abb895.js +1 -0
- package/webview/dist/static/js/async/3909.4b4bd806.js +1 -0
- package/webview/dist/static/js/async/4138.104dbc81.js +1 -0
- package/webview/dist/static/js/async/426.6fedaabe.js +1 -0
- package/webview/dist/static/js/async/4387.151c5858.js +1 -0
- package/webview/dist/static/js/async/4468.d0c907eb.js +1 -0
- package/webview/dist/static/js/async/4471.b0874c8d.js +158 -0
- package/webview/dist/static/js/async/4568.cf5e547d.js +1 -0
- package/webview/dist/static/js/async/4580.f1bc120a.js +131 -0
- package/webview/dist/static/js/async/4695.8f4b8910.js +1 -0
- package/webview/dist/static/js/async/4959.deb41780.js +1 -0
- package/webview/dist/static/js/async/509.f3e093b4.js +59 -0
- package/webview/dist/static/js/async/5172.e1e3bd11.js +43 -0
- package/webview/dist/static/js/async/535.e10ba324.js +1 -0
- package/webview/dist/static/js/async/5546.89da376c.js +24 -0
- package/webview/dist/static/js/async/5597.3018e134.js +36 -0
- package/webview/dist/static/js/async/5636.61075f0b.js +174 -0
- package/webview/dist/static/js/async/5638.7cfdcd7e.js +1 -0
- package/webview/dist/static/js/async/5706.d34ac064.js +1 -0
- package/webview/dist/static/js/async/5856.d75c4e3b.js +1 -0
- package/webview/dist/static/js/async/6061.7cfcc3e9.js +1 -0
- package/webview/dist/static/js/async/6152.d3a64904.js +1 -0
- package/webview/dist/static/js/async/6297.6e694780.js +1 -0
- package/webview/dist/static/js/async/6325.cafe9e55.js +1 -0
- package/webview/dist/static/js/async/6332.682f48c9.js +1 -0
- package/webview/dist/static/js/async/6349.e9992b47.js +56 -0
- package/webview/dist/static/js/async/6389.1bb952e3.js +1 -0
- package/webview/dist/static/js/async/6443.95da1923.js +1 -0
- package/webview/dist/static/js/async/6526.56ce7dc4.js +1 -0
- package/webview/dist/static/js/async/6600.6e0dfb69.js +1 -0
- package/webview/dist/static/js/async/6689.d0bd8935.js +262 -0
- package/webview/dist/static/js/async/6751.54c80aba.js +1 -0
- package/webview/dist/static/js/async/680.5aa7dcb4.js +1 -0
- package/webview/dist/static/js/async/6948.9cd716f4.js +1 -0
- package/webview/dist/static/js/async/7262.f680270f.js +88 -0
- package/webview/dist/static/js/async/7515.20c14480.js +1 -0
- package/webview/dist/static/js/async/7536.34769b35.js +1 -0
- package/webview/dist/static/js/async/7630.ed725458.js +1 -0
- package/webview/dist/static/js/async/7853.0a4b794a.js +1 -0
- package/webview/dist/static/js/async/8180.4d4299ef.js +1 -0
- package/webview/dist/static/js/async/828.56686119.js +1 -0
- package/webview/dist/static/js/async/8379.1b75211c.js +1 -0
- package/webview/dist/static/js/async/8389.4f120664.js +1 -0
- package/webview/dist/static/js/async/8538.d5f92d14.js +24 -0
- package/webview/dist/static/js/async/8560.1bdf90ec.js +1 -0
- package/webview/dist/static/js/async/8794.759831e8.js +60 -0
- package/webview/dist/static/js/async/8821.2b444259.js +29 -0
- package/webview/dist/static/js/async/925.548cc1b9.js +1 -0
- package/webview/dist/static/js/async/9252.3c22a9cd.js +1 -0
- package/webview/dist/static/js/async/9261.1e796956.js +1 -0
- package/webview/dist/static/js/async/9324.b3518ebf.js +1 -0
- package/webview/dist/static/js/async/9354.4425ac3c.js +1 -0
- package/webview/dist/static/js/async/9501.a7851380.js +4 -0
- package/webview/dist/static/js/async/9560.d604e606.js +166 -0
- package/webview/dist/static/js/async/9640.5f6a6734.js +1 -0
- package/webview/dist/static/js/async/9765.ecc8b5dc.js +1 -0
- package/webview/dist/static/js/async/9821.b1897048.js +63 -0
- package/webview/dist/static/js/main.7c5f914e.js +3 -0
- package/webview/dist/static/media/KaTeX_AMS-Regular.1608a09b.woff +0 -0
- package/webview/dist/static/media/KaTeX_AMS-Regular.4aafdb68.ttf +0 -0
- package/webview/dist/static/media/KaTeX_AMS-Regular.a79f1c31.woff2 +0 -0
- package/webview/dist/static/media/KaTeX_Caligraphic-Bold.b6770918.woff +0 -0
- package/webview/dist/static/media/KaTeX_Caligraphic-Bold.cce5b8ec.ttf +0 -0
- package/webview/dist/static/media/KaTeX_Caligraphic-Bold.ec17d132.woff2 +0 -0
- package/webview/dist/static/media/KaTeX_Caligraphic-Regular.07ef19e7.ttf +0 -0
- package/webview/dist/static/media/KaTeX_Caligraphic-Regular.55fac258.woff2 +0 -0
- package/webview/dist/static/media/KaTeX_Caligraphic-Regular.dad44a7f.woff +0 -0
- package/webview/dist/static/media/KaTeX_Fraktur-Bold.9f256b85.woff +0 -0
- package/webview/dist/static/media/KaTeX_Fraktur-Bold.b18f59e1.ttf +0 -0
- package/webview/dist/static/media/KaTeX_Fraktur-Bold.d42a5579.woff2 +0 -0
- package/webview/dist/static/media/KaTeX_Fraktur-Regular.7c187121.woff +0 -0
- package/webview/dist/static/media/KaTeX_Fraktur-Regular.d3c882a6.woff2 +0 -0
- package/webview/dist/static/media/KaTeX_Fraktur-Regular.ed38e79f.ttf +0 -0
- package/webview/dist/static/media/KaTeX_Main-Bold.b74a1a8b.ttf +0 -0
- package/webview/dist/static/media/KaTeX_Main-Bold.c3fb5ac2.woff2 +0 -0
- package/webview/dist/static/media/KaTeX_Main-Bold.d181c465.woff +0 -0
- package/webview/dist/static/media/KaTeX_Main-BoldItalic.6f2bb1df.woff2 +0 -0
- package/webview/dist/static/media/KaTeX_Main-BoldItalic.70d8b0a5.ttf +0 -0
- package/webview/dist/static/media/KaTeX_Main-BoldItalic.e3f82f9d.woff +0 -0
- package/webview/dist/static/media/KaTeX_Main-Italic.47373d1e.ttf +0 -0
- package/webview/dist/static/media/KaTeX_Main-Italic.8916142b.woff2 +0 -0
- package/webview/dist/static/media/KaTeX_Main-Italic.9024d815.woff +0 -0
- package/webview/dist/static/media/KaTeX_Main-Regular.0462f03b.woff2 +0 -0
- package/webview/dist/static/media/KaTeX_Main-Regular.7f51fe03.woff +0 -0
- package/webview/dist/static/media/KaTeX_Main-Regular.b7f8fe9b.ttf +0 -0
- package/webview/dist/static/media/KaTeX_Math-BoldItalic.572d331f.woff2 +0 -0
- package/webview/dist/static/media/KaTeX_Math-BoldItalic.a879cf83.ttf +0 -0
- package/webview/dist/static/media/KaTeX_Math-BoldItalic.f1035d8d.woff +0 -0
- package/webview/dist/static/media/KaTeX_Math-Italic.5295ba48.woff +0 -0
- package/webview/dist/static/media/KaTeX_Math-Italic.939bc644.ttf +0 -0
- package/webview/dist/static/media/KaTeX_Math-Italic.f28c23ac.woff2 +0 -0
- package/webview/dist/static/media/KaTeX_SansSerif-Bold.8c5b5494.woff2 +0 -0
- package/webview/dist/static/media/KaTeX_SansSerif-Bold.94e1e8dc.ttf +0 -0
- package/webview/dist/static/media/KaTeX_SansSerif-Bold.bf59d231.woff +0 -0
- package/webview/dist/static/media/KaTeX_SansSerif-Italic.3b1e59b3.woff2 +0 -0
- package/webview/dist/static/media/KaTeX_SansSerif-Italic.7c9bc82b.woff +0 -0
- package/webview/dist/static/media/KaTeX_SansSerif-Italic.b4c20c84.ttf +0 -0
- package/webview/dist/static/media/KaTeX_SansSerif-Regular.74048478.woff +0 -0
- package/webview/dist/static/media/KaTeX_SansSerif-Regular.ba21ed5f.woff2 +0 -0
- package/webview/dist/static/media/KaTeX_SansSerif-Regular.d4d7ba48.ttf +0 -0
- package/webview/dist/static/media/KaTeX_Script-Regular.03e9641d.woff2 +0 -0
- package/webview/dist/static/media/KaTeX_Script-Regular.07505710.woff +0 -0
- package/webview/dist/static/media/KaTeX_Script-Regular.fe9cbbe1.ttf +0 -0
- package/webview/dist/static/media/KaTeX_Size1-Regular.e1e279cb.woff +0 -0
- package/webview/dist/static/media/KaTeX_Size1-Regular.eae34984.woff2 +0 -0
- package/webview/dist/static/media/KaTeX_Size1-Regular.fabc004a.ttf +0 -0
- package/webview/dist/static/media/KaTeX_Size2-Regular.57727022.woff +0 -0
- package/webview/dist/static/media/KaTeX_Size2-Regular.5916a24f.woff2 +0 -0
- package/webview/dist/static/media/KaTeX_Size2-Regular.d6b476ec.ttf +0 -0
- package/webview/dist/static/media/KaTeX_Size3-Regular.9acaf01c.woff +0 -0
- package/webview/dist/static/media/KaTeX_Size3-Regular.a144ef58.ttf +0 -0
- package/webview/dist/static/media/KaTeX_Size3-Regular.b4230e7e.woff2 +0 -0
- package/webview/dist/static/media/KaTeX_Size4-Regular.10d95fd3.woff2 +0 -0
- package/webview/dist/static/media/KaTeX_Size4-Regular.7a996c9d.woff +0 -0
- package/webview/dist/static/media/KaTeX_Size4-Regular.fbccdabe.ttf +0 -0
- package/webview/dist/static/media/KaTeX_Typewriter-Regular.6258592b.woff +0 -0
- package/webview/dist/static/media/KaTeX_Typewriter-Regular.a8709e36.woff2 +0 -0
- package/webview/dist/static/media/KaTeX_Typewriter-Regular.d97aaf4a.ttf +0 -0
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
"use strict";(self.rspackChunkchat_demo=self.rspackChunkchat_demo||[]).push([[5636],{8987(t,e,s){s.d(e,{o:()=>i});var i=(0,s(8755).K2)(()=>`
|
|
2
|
+
/* Font Awesome icon styling - consolidated */
|
|
3
|
+
.label-icon {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
height: 1em;
|
|
6
|
+
overflow: visible;
|
|
7
|
+
vertical-align: -0.125em;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.node .label-icon path {
|
|
11
|
+
fill: currentColor;
|
|
12
|
+
stroke: revert;
|
|
13
|
+
stroke-width: revert;
|
|
14
|
+
}
|
|
15
|
+
`,"getIconStyles")},9103(t,e,s){s.d(e,{Lh:()=>E,NM:()=>m,_$:()=>h,tM:()=>g});var i=s(8987),a=s(6982),n=s(4543),r=s(5754),u=s(3218),l=s(8755),o=s(6040),c=function(){var t=(0,l.K2)(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[1,18],s=[1,19],i=[1,20],a=[1,41],n=[1,42],r=[1,26],u=[1,24],o=[1,25],c=[1,32],h=[1,33],d=[1,34],p=[1,45],A=[1,35],y=[1,36],C=[1,37],m=[1,38],g=[1,27],b=[1,28],E=[1,29],k=[1,30],T=[1,31],f=[1,44],D=[1,46],F=[1,43],B=[1,47],_=[1,9],S=[1,8,9],N=[1,58],L=[1,59],$=[1,60],x=[1,61],O=[1,62],I=[1,63],v=[1,64],w=[1,8,9,41],R=[1,76],P=[1,8,9,12,13,22,39,41,44,66,67,68,69,70,71,72,77,79],K=[1,8,9,12,13,18,20,22,39,41,44,48,58,66,67,68,69,70,71,72,77,79,84,99,101,102],M=[13,58,84,99,101,102],G=[13,58,71,72,84,99,101,102],U=[13,58,66,67,68,69,70,84,99,101,102],Y=[1,99],z=[1,116],Q=[1,108],W=[1,114],X=[1,109],j=[1,110],V=[1,111],q=[1,112],H=[1,113],J=[1,115],Z=[22,58,59,80,84,85,86,87,88,89],tt=[1,8,9,39,41,44],te=[1,8,9,22],ts=[1,144],ti=[1,8,9,59],ta=[1,8,9,22,58,59,80,84,85,86,87,88,89],tn={trace:(0,l.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,ANNOTATION_START:47,ANNOTATION_END:48,MEMBER:49,SEPARATOR:50,relation:51,NOTE_FOR:52,noteText:53,NOTE:54,CLASSDEF:55,classList:56,stylesOpt:57,ALPHA:58,COMMA:59,direction_tb:60,direction_bt:61,direction_rl:62,direction_lr:63,relationType:64,lineType:65,AGGREGATION:66,EXTENSION:67,COMPOSITION:68,DEPENDENCY:69,LOLLIPOP:70,LINE:71,DOTTED_LINE:72,CALLBACK:73,LINK:74,LINK_TARGET:75,CLICK:76,CALLBACK_NAME:77,CALLBACK_ARGS:78,HREF:79,STYLE:80,CSSCLASS:81,style:82,styleComponent:83,NUM:84,COLON:85,UNIT:86,SPACE:87,BRKT:88,PCT:89,commentToken:90,textToken:91,graphCodeTokens:92,textNoTagsToken:93,TAGSTART:94,TAGEND:95,"==":96,"--":97,DEFAULT:98,MINUS:99,keywords:100,UNICODE_TEXT:101,BQUOTE_STR:102,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",47:"ANNOTATION_START",48:"ANNOTATION_END",49:"MEMBER",50:"SEPARATOR",52:"NOTE_FOR",54:"NOTE",55:"CLASSDEF",58:"ALPHA",59:"COMMA",60:"direction_tb",61:"direction_bt",62:"direction_rl",63:"direction_lr",66:"AGGREGATION",67:"EXTENSION",68:"COMPOSITION",69:"DEPENDENCY",70:"LOLLIPOP",71:"LINE",72:"DOTTED_LINE",73:"CALLBACK",74:"LINK",75:"LINK_TARGET",76:"CLICK",77:"CALLBACK_NAME",78:"CALLBACK_ARGS",79:"HREF",80:"STYLE",81:"CSSCLASS",84:"NUM",85:"COLON",86:"UNIT",87:"SPACE",88:"BRKT",89:"PCT",92:"graphCodeTokens",94:"TAGSTART",95:"TAGEND",96:"==",97:"--",98:"DEFAULT",99:"MINUS",100:"keywords",101:"UNICODE_TEXT",102:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,6],[43,2],[43,3],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[56,1],[56,3],[32,1],[32,1],[32,1],[32,1],[51,3],[51,2],[51,2],[51,1],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[57,1],[57,3],[82,1],[82,2],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[90,1],[90,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[93,1],[93,1],[93,1],[93,1],[16,1],[16,1],[16,1],[16,1],[17,1],[53,1]],performAction:(0,l.K2)(function(t,e,s,i,a,n,r){var u=n.length-1;switch(a){case 8:this.$=n[u-1];break;case 9:case 10:case 13:case 15:this.$=n[u];break;case 11:case 14:this.$=n[u-2]+"."+n[u];break;case 12:case 16:case 96:this.$=n[u-1]+n[u];break;case 17:case 18:this.$=n[u-1]+"~"+n[u]+"~";break;case 19:i.addRelation(n[u]);break;case 20:n[u-1].title=i.cleanupLabel(n[u]),i.addRelation(n[u-1]);break;case 31:this.$=n[u].trim(),i.setAccTitle(this.$);break;case 32:case 33:this.$=n[u].trim(),i.setAccDescription(this.$);break;case 34:i.addClassesToNamespace(n[u-3],n[u-1]);break;case 35:i.addClassesToNamespace(n[u-4],n[u-1]);break;case 36:this.$=n[u],i.addNamespace(n[u]);break;case 37:case 47:case 60:case 93:this.$=[n[u]];break;case 38:this.$=[n[u-1]];break;case 39:n[u].unshift(n[u-2]),this.$=n[u];break;case 41:i.setCssClass(n[u-2],n[u]);break;case 42:i.addMembers(n[u-3],n[u-1]);break;case 43:i.setCssClass(n[u-5],n[u-3]),i.addMembers(n[u-5],n[u-1]);break;case 44:this.$=n[u],i.addClass(n[u]);break;case 45:this.$=n[u-1],i.addClass(n[u-1]),i.setClassLabel(n[u-1],n[u]);break;case 46:i.addAnnotation(n[u],n[u-2]);break;case 48:n[u].push(n[u-1]),this.$=n[u];break;case 49:case 51:case 52:break;case 50:i.addMember(n[u-1],i.cleanupLabel(n[u]));break;case 53:this.$={id1:n[u-2],id2:n[u],relation:n[u-1],relationTitle1:"none",relationTitle2:"none"};break;case 54:this.$={id1:n[u-3],id2:n[u],relation:n[u-1],relationTitle1:n[u-2],relationTitle2:"none"};break;case 55:this.$={id1:n[u-3],id2:n[u],relation:n[u-2],relationTitle1:"none",relationTitle2:n[u-1]};break;case 56:this.$={id1:n[u-4],id2:n[u],relation:n[u-2],relationTitle1:n[u-3],relationTitle2:n[u-1]};break;case 57:i.addNote(n[u],n[u-1]);break;case 58:i.addNote(n[u]);break;case 59:this.$=n[u-2],i.defineClass(n[u-1],n[u]);break;case 61:this.$=n[u-2].concat([n[u]]);break;case 62:i.setDirection("TB");break;case 63:i.setDirection("BT");break;case 64:i.setDirection("RL");break;case 65:i.setDirection("LR");break;case 66:this.$={type1:n[u-2],type2:n[u],lineType:n[u-1]};break;case 67:this.$={type1:"none",type2:n[u],lineType:n[u-1]};break;case 68:this.$={type1:n[u-1],type2:"none",lineType:n[u]};break;case 69:this.$={type1:"none",type2:"none",lineType:n[u]};break;case 70:this.$=i.relationType.AGGREGATION;break;case 71:this.$=i.relationType.EXTENSION;break;case 72:this.$=i.relationType.COMPOSITION;break;case 73:this.$=i.relationType.DEPENDENCY;break;case 74:this.$=i.relationType.LOLLIPOP;break;case 75:this.$=i.lineType.LINE;break;case 76:this.$=i.lineType.DOTTED_LINE;break;case 77:case 83:this.$=n[u-2],i.setClickEvent(n[u-1],n[u]);break;case 78:case 84:this.$=n[u-3],i.setClickEvent(n[u-2],n[u-1]),i.setTooltip(n[u-2],n[u]);break;case 79:this.$=n[u-2],i.setLink(n[u-1],n[u]);break;case 80:this.$=n[u-3],i.setLink(n[u-2],n[u-1],n[u]);break;case 81:this.$=n[u-3],i.setLink(n[u-2],n[u-1]),i.setTooltip(n[u-2],n[u]);break;case 82:this.$=n[u-4],i.setLink(n[u-3],n[u-2],n[u]),i.setTooltip(n[u-3],n[u-1]);break;case 85:this.$=n[u-3],i.setClickEvent(n[u-2],n[u-1],n[u]);break;case 86:this.$=n[u-4],i.setClickEvent(n[u-3],n[u-2],n[u-1]),i.setTooltip(n[u-3],n[u]);break;case 87:this.$=n[u-3],i.setLink(n[u-2],n[u]);break;case 88:this.$=n[u-4],i.setLink(n[u-3],n[u-1],n[u]);break;case 89:this.$=n[u-4],i.setLink(n[u-3],n[u-1]),i.setTooltip(n[u-3],n[u]);break;case 90:this.$=n[u-5],i.setLink(n[u-4],n[u-2],n[u]),i.setTooltip(n[u-4],n[u-1]);break;case 91:this.$=n[u-2],i.setCssStyle(n[u-1],n[u]);break;case 92:i.setCssClass(n[u-1],n[u]);break;case 94:n[u-2].push(n[u]),this.$=n[u-2]}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:e,35:s,37:i,38:22,42:a,43:23,46:n,47:r,49:u,50:o,52:c,54:h,55:d,58:p,60:A,61:y,62:C,63:m,73:g,74:b,76:E,80:k,81:T,84:f,99:D,101:F,102:B},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(_,[2,5],{8:[1,48]}),{8:[1,49]},t(S,[2,19],{22:[1,50]}),t(S,[2,21]),t(S,[2,22]),t(S,[2,23]),t(S,[2,24]),t(S,[2,25]),t(S,[2,26]),t(S,[2,27]),t(S,[2,28]),t(S,[2,29]),t(S,[2,30]),{34:[1,51]},{36:[1,52]},t(S,[2,33]),t(S,[2,49],{51:53,64:56,65:57,13:[1,54],22:[1,55],66:N,67:L,68:$,69:x,70:O,71:I,72:v}),{39:[1,65]},t(w,[2,40],{39:[1,67],44:[1,66]}),t(S,[2,51]),t(S,[2,52]),{16:68,58:p,84:f,99:D,101:F},{16:39,17:40,19:69,58:p,84:f,99:D,101:F,102:B},{16:39,17:40,19:70,58:p,84:f,99:D,101:F,102:B},{16:39,17:40,19:71,58:p,84:f,99:D,101:F,102:B},{58:[1,72]},{13:[1,73]},{16:39,17:40,19:74,58:p,84:f,99:D,101:F,102:B},{13:R,53:75},{56:77,58:[1,78]},t(S,[2,62]),t(S,[2,63]),t(S,[2,64]),t(S,[2,65]),t(P,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],58:p,84:f,99:D,101:F,102:B}),t(P,[2,15],{20:[1,82]}),{15:83,16:84,17:85,58:p,84:f,99:D,101:F,102:B},{16:39,17:40,19:86,58:p,84:f,99:D,101:F,102:B},t(K,[2,119]),t(K,[2,120]),t(K,[2,121]),t(K,[2,122]),t([1,8,9,12,13,20,22,39,41,44,66,67,68,69,70,71,72,77,79],[2,123]),t(_,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:87,33:e,35:s,37:i,42:a,46:n,47:r,49:u,50:o,52:c,54:h,55:d,58:p,60:A,61:y,62:C,63:m,73:g,74:b,76:E,80:k,81:T,84:f,99:D,101:F,102:B}),{5:88,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:e,35:s,37:i,38:22,42:a,43:23,46:n,47:r,49:u,50:o,52:c,54:h,55:d,58:p,60:A,61:y,62:C,63:m,73:g,74:b,76:E,80:k,81:T,84:f,99:D,101:F,102:B},t(S,[2,20]),t(S,[2,31]),t(S,[2,32]),{13:[1,90],16:39,17:40,19:89,58:p,84:f,99:D,101:F,102:B},{51:91,64:56,65:57,66:N,67:L,68:$,69:x,70:O,71:I,72:v},t(S,[2,50]),{65:92,71:I,72:v},t(M,[2,69],{64:93,66:N,67:L,68:$,69:x,70:O}),t(G,[2,70]),t(G,[2,71]),t(G,[2,72]),t(G,[2,73]),t(G,[2,74]),t(U,[2,75]),t(U,[2,76]),{8:[1,95],24:96,40:94,43:23,46:n},{16:97,58:p,84:f,99:D,101:F},{45:98,49:Y},{48:[1,100]},{13:[1,101]},{13:[1,102]},{77:[1,103],79:[1,104]},{22:z,57:105,58:Q,80:W,82:106,83:107,84:X,85:j,86:V,87:q,88:H,89:J},{58:[1,117]},{13:R,53:118},t(S,[2,58]),t(S,[2,124]),{22:z,57:119,58:Q,59:[1,120],80:W,82:106,83:107,84:X,85:j,86:V,87:q,88:H,89:J},t(Z,[2,60]),{16:39,17:40,19:121,58:p,84:f,99:D,101:F,102:B},t(P,[2,16]),t(P,[2,17]),t(P,[2,18]),{39:[2,36]},{15:123,16:84,17:85,18:[1,122],39:[2,9],58:p,84:f,99:D,101:F,102:B},{39:[2,10]},t(tt,[2,44],{11:124,12:[1,125]}),t(_,[2,7]),{9:[1,126]},t(te,[2,53]),{16:39,17:40,19:127,58:p,84:f,99:D,101:F,102:B},{13:[1,129],16:39,17:40,19:128,58:p,84:f,99:D,101:F,102:B},t(M,[2,68],{64:130,66:N,67:L,68:$,69:x,70:O}),t(M,[2,67]),{41:[1,131]},{24:96,40:132,43:23,46:n},{8:[1,133],41:[2,37]},t(w,[2,41],{39:[1,134]}),{41:[1,135]},{41:[2,47],45:136,49:Y},{16:39,17:40,19:137,58:p,84:f,99:D,101:F,102:B},t(S,[2,77],{13:[1,138]}),t(S,[2,79],{13:[1,140],75:[1,139]}),t(S,[2,83],{13:[1,141],78:[1,142]}),{13:[1,143]},t(S,[2,91],{59:ts}),t(ti,[2,93],{83:145,22:z,58:Q,80:W,84:X,85:j,86:V,87:q,88:H,89:J}),t(ta,[2,95]),t(ta,[2,97]),t(ta,[2,98]),t(ta,[2,99]),t(ta,[2,100]),t(ta,[2,101]),t(ta,[2,102]),t(ta,[2,103]),t(ta,[2,104]),t(ta,[2,105]),t(S,[2,92]),t(S,[2,57]),t(S,[2,59],{59:ts}),{58:[1,146]},t(P,[2,14]),{15:147,16:84,17:85,58:p,84:f,99:D,101:F,102:B},{39:[2,12]},t(tt,[2,45]),{13:[1,148]},{1:[2,4]},t(te,[2,55]),t(te,[2,54]),{16:39,17:40,19:149,58:p,84:f,99:D,101:F,102:B},t(M,[2,66]),t(S,[2,34]),{41:[1,150]},{24:96,40:151,41:[2,38],43:23,46:n},{45:152,49:Y},t(w,[2,42]),{41:[2,48]},t(S,[2,46]),t(S,[2,78]),t(S,[2,80]),t(S,[2,81],{75:[1,153]}),t(S,[2,84]),t(S,[2,85],{13:[1,154]}),t(S,[2,87],{13:[1,156],75:[1,155]}),{22:z,58:Q,80:W,82:157,83:107,84:X,85:j,86:V,87:q,88:H,89:J},t(ta,[2,96]),t(Z,[2,61]),{39:[2,11]},{14:[1,158]},t(te,[2,56]),t(S,[2,35]),{41:[2,39]},{41:[1,159]},t(S,[2,82]),t(S,[2,86]),t(S,[2,88]),t(S,[2,89],{75:[1,160]}),t(ti,[2,94],{83:145,22:z,58:Q,80:W,84:X,85:j,86:V,87:q,88:H,89:J}),t(tt,[2,8]),t(w,[2,43]),t(S,[2,90])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,36],85:[2,10],123:[2,12],126:[2,4],136:[2,48],147:[2,11],151:[2,39]},parseError:(0,l.K2)(function(t,e){if(e.recoverable)this.trace(t);else{var s=Error(t);throw s.hash=e,s}},"parseError"),parse:(0,l.K2)(function(t){var e=this,s=[0],i=[],a=[null],n=[],r=this.table,u="",o=0,c=0,h=0,d=n.slice.call(arguments,1),p=Object.create(this.lexer),A={};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(A[y]=this.yy[y]);p.setInput(t,A),A.lexer=p,A.parser=this,void 0===p.yylloc&&(p.yylloc={});var C=p.yylloc;n.push(C);var m=p.options&&p.options.ranges;function g(){var t;return"number"!=typeof(t=i.pop()||p.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof A.parseError?this.parseError=A.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,l.K2)(function(t){s.length=s.length-2*t,a.length=a.length-t,n.length=n.length-t},"popStack"),(0,l.K2)(g,"lex");for(var b,E,k,T,f,D,F,B,_,S={};;){if(k=s[s.length-1],this.defaultActions[k]?T=this.defaultActions[k]:(null==b&&(b=g()),T=r[k]&&r[k][b]),void 0===T||!T.length||!T[0]){var N="";for(D in _=[],r[k])this.terminals_[D]&&D>2&&_.push("'"+this.terminals_[D]+"'");N=p.showPosition?"Parse error on line "+(o+1)+":\n"+p.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(N,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:C,expected:_})}if(T[0]instanceof Array&&T.length>1)throw Error("Parse Error: multiple actions possible at state: "+k+", token: "+b);switch(T[0]){case 1:s.push(b),a.push(p.yytext),n.push(p.yylloc),s.push(T[1]),b=null,E?(b=E,E=null):(c=p.yyleng,u=p.yytext,o=p.yylineno,C=p.yylloc,h>0&&h--);break;case 2:if(F=this.productions_[T[1]][1],S.$=a[a.length-F],S._$={first_line:n[n.length-(F||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(F||1)].first_column,last_column:n[n.length-1].last_column},m&&(S._$.range=[n[n.length-(F||1)].range[0],n[n.length-1].range[1]]),void 0!==(f=this.performAction.apply(S,[u,c,o,A,T[1],a,n].concat(d))))return f;F&&(s=s.slice(0,-1*F*2),a=a.slice(0,-1*F),n=n.slice(0,-1*F)),s.push(this.productions_[T[1]][0]),a.push(S.$),n.push(S._$),B=r[s[s.length-2]][s[s.length-1]],s.push(B);break;case 3:return!0}}return!0},"parse")};function tr(){this.yy={}}return tn.lexer={EOF:1,parseError:(0,l.K2)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,l.K2)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,l.K2)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,l.K2)(function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,l.K2)(function(){return this._more=!0,this},"more"),reject:(0,l.K2)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,l.K2)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,l.K2)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,l.K2)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,l.K2)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,l.K2)(function(t,e){var s,i,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack)for(var n in a)this[n]=a[n];return!1},"test_match"),next:(0,l.K2)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,s,i,a=this._currentRules(),n=0;n<a.length;n++)if((s=this._input.match(this.rules[a[n]]))&&(!e||s[0].length>e[0].length)){if(e=s,i=n,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,a[n])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,a[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,l.K2)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,l.K2)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,l.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,l.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,l.K2)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,l.K2)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,l.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,l.K2)(function(t,e,s,i){switch(s){case 0:return 60;case 1:return 61;case 2:return 62;case 3:return 63;case 4:case 5:case 14:case 31:case 36:case 40:case 47:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 19:case 22:case 24:case 58:case 61:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 35:return 8;case 15:case 16:return 7;case 17:case 37:case 45:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 77;case 23:return 78;case 25:return"STR";case 26:this.begin("string");break;case 27:return 80;case 28:return 55;case 29:return this.begin("namespace"),42;case 30:case 39:return this.popState(),8;case 32:return this.begin("namespace-body"),39;case 33:case 43:return this.popState(),41;case 34:case 44:return"EOF_IN_STRUCT";case 38:return this.begin("class"),46;case 41:return this.popState(),this.popState(),41;case 42:return this.begin("class-body"),39;case 46:return"OPEN_IN_STRUCT";case 48:return"MEMBER";case 49:return 81;case 50:return 73;case 51:return 74;case 52:return 76;case 53:return 52;case 54:return 54;case 55:return 47;case 56:return 48;case 57:return 79;case 59:return"GENERICTYPE";case 60:this.begin("generic");break;case 62:return"BQUOTE_STR";case 63:this.begin("bqstring");break;case 64:case 65:case 66:case 67:return 75;case 68:case 69:return 67;case 70:case 71:return 69;case 72:return 68;case 73:return 66;case 74:return 70;case 75:return 71;case 76:return 72;case 77:return 22;case 78:return 44;case 79:return 99;case 80:return 18;case 81:return"PLUS";case 82:return 85;case 83:return 59;case 84:case 85:return 88;case 86:return 89;case 87:case 88:return"EQUALS";case 89:return 58;case 90:return 12;case 91:return 14;case 92:return"PUNCTUATION";case 93:return 84;case 94:return 101;case 95:case 96:return 87;case 97:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,33,34,35,36,37,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},namespace:{rules:[26,29,30,31,32,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},"class-body":{rules:[26,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},class:{rules:[26,39,40,41,42,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr:{rules:[9,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_title:{rules:[7,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_args:{rules:[22,23,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_name:{rules:[19,20,21,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},href:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},struct:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},generic:{rules:[26,49,50,51,52,53,54,55,56,57,58,59,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},bqstring:{rules:[26,49,50,51,52,53,54,55,56,57,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},string:{rules:[24,25,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!0}}},(0,l.K2)(tr,"Parser"),tr.prototype=tn,tn.Parser=tr,new tr}();c.parser=c;var h=c,d=["#","+","~","-",""],p=class{static{(0,l.K2)(this,"ClassMember")}constructor(t,e){this.memberType=e,this.visibility="",this.classifier="",this.text="";const s=(0,l.jZ)(t,(0,l.D7)());this.parseMember(s)}getDisplayDetails(){let t=this.visibility+(0,l.QO)(this.id);return"method"===this.memberType&&(t+=`(${(0,l.QO)(this.parameters.trim())})`,this.returnType&&(t+=" : "+(0,l.QO)(this.returnType))),{displayText:t=t.trim(),cssStyle:this.parseClassifier()}}parseMember(t){let e="";if("method"===this.memberType){let s=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(t);if(s){let t=s[1]?s[1].trim():"";if(d.includes(t)&&(this.visibility=t),this.id=s[2],this.parameters=s[3]?s[3].trim():"",e=s[4]?s[4].trim():"",this.returnType=s[5]?s[5].trim():"",""===e){let t=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(t)&&(e=t,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{let s=t.length,i=t.substring(0,1),a=t.substring(s-1);d.includes(i)&&(this.visibility=i),/[$*]/.exec(a)&&(e=a),this.id=t.substring(+(""!==this.visibility),""===e?s:s-1)}this.classifier=e,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();let s=`${this.visibility?"\\"+this.visibility:""}${(0,l.QO)(this.id)}${"method"===this.memberType?`(${(0,l.QO)(this.parameters)})${this.returnType?" : "+(0,l.QO)(this.returnType):""}`:""}`;this.text=s.replaceAll("<","<").replaceAll(">",">"),this.text.startsWith("\\<")&&(this.text=this.text.replace("\\<","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},A="classId-",y=0,C=(0,l.K2)(t=>l.Y2.sanitizeText(t,(0,l.D7)()),"sanitizeText"),m=class{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=[],this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=(0,l.K2)(t=>{let e=(0,o.Lt)(".mermaidTooltip");null===(e._groups||e)[0][0]&&(e=(0,o.Lt)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),(0,o.Lt)(t).select("svg").selectAll("g.node").on("mouseover",t=>{let s=(0,o.Lt)(t.currentTarget);if(null===s.attr("title"))return;let i=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(s.attr("title")).style("left",window.scrollX+i.left+(i.right-i.left)/2+"px").style("top",window.scrollY+i.top-14+document.body.scrollTop+"px"),e.html(e.html().replace(/<br\/>/g,"<br/>")),s.classed("hover",!0)}).on("mouseout",t=>{e.transition().duration(500).style("opacity",0),(0,o.Lt)(t.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=l.SV,this.getAccTitle=l.iN,this.setAccDescription=l.EI,this.getAccDescription=l.m7,this.setDiagramTitle=l.ke,this.getDiagramTitle=l.ab,this.getConfig=(0,l.K2)(()=>(0,l.D7)().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}static{(0,l.K2)(this,"ClassDB")}splitClassNameAndType(t){let e=l.Y2.sanitizeText(t,(0,l.D7)()),s="",i=e;if(e.indexOf("~")>0){let t=e.split("~");i=C(t[0]),s=C(t[1])}return{className:i,type:s}}setClassLabel(t,e){let s=l.Y2.sanitizeText(t,(0,l.D7)());e&&(e=C(e));let{className:i}=this.splitClassNameAndType(s);this.classes.get(i).label=e,this.classes.get(i).text=`${e}${this.classes.get(i).type?`<${this.classes.get(i).type}>`:""}`}addClass(t){let e=l.Y2.sanitizeText(t,(0,l.D7)()),{className:s,type:i}=this.splitClassNameAndType(e);if(this.classes.has(s))return;let a=l.Y2.sanitizeText(s,(0,l.D7)());this.classes.set(a,{id:a,type:i,label:a,text:`${a}${i?`<${i}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:A+a+"-"+y}),y++}addInterface(t,e){let s={id:`interface${this.interfaces.length}`,label:t,classId:e};this.interfaces.push(s)}lookUpDomId(t){let e=l.Y2.sanitizeText(t,(0,l.D7)());if(this.classes.has(e))return this.classes.get(e).domId;throw Error("Class not found: "+e)}clear(){this.relations=[],this.classes=new Map,this.notes=[],this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.direction="TB",(0,l.IU)()}getClass(t){return this.classes.get(t)}getClasses(){return this.classes}getRelations(){return this.relations}getNotes(){return this.notes}addRelation(t){l.Rm.debug("Adding relation: "+JSON.stringify(t));let e=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];t.relation.type1!==this.relationType.LOLLIPOP||e.includes(t.relation.type2)?t.relation.type2!==this.relationType.LOLLIPOP||e.includes(t.relation.type1)?(this.addClass(t.id1),this.addClass(t.id2)):(this.addClass(t.id1),this.addInterface(t.id2,t.id1),t.id2=`interface${this.interfaces.length-1}`):(this.addClass(t.id2),this.addInterface(t.id1,t.id2),t.id1=`interface${this.interfaces.length-1}`),t.id1=this.splitClassNameAndType(t.id1).className,t.id2=this.splitClassNameAndType(t.id2).className,t.relationTitle1=l.Y2.sanitizeText(t.relationTitle1.trim(),(0,l.D7)()),t.relationTitle2=l.Y2.sanitizeText(t.relationTitle2.trim(),(0,l.D7)()),this.relations.push(t)}addAnnotation(t,e){let s=this.splitClassNameAndType(t).className;this.classes.get(s).annotations.push(e)}addMember(t,e){this.addClass(t);let s=this.splitClassNameAndType(t).className,i=this.classes.get(s);if("string"==typeof e){let t=e.trim();t.startsWith("<<")&&t.endsWith(">>")?i.annotations.push(C(t.substring(2,t.length-2))):t.indexOf(")")>0?i.methods.push(new p(t,"method")):t&&i.members.push(new p(t,"attribute"))}}addMembers(t,e){Array.isArray(e)&&(e.reverse(),e.forEach(e=>this.addMember(t,e)))}addNote(t,e){let s={id:`note${this.notes.length}`,class:e,text:t};this.notes.push(s)}cleanupLabel(t){return t.startsWith(":")&&(t=t.substring(1)),C(t.trim())}setCssClass(t,e){t.split(",").forEach(t=>{let s=t;/\d/.exec(t[0])&&(s=A+s);let i=this.classes.get(s);i&&(i.cssClasses+=" "+e)})}defineClass(t,e){for(let s of t){let t=this.styleClasses.get(s);void 0===t&&(t={id:s,styles:[],textStyles:[]},this.styleClasses.set(s,t)),e&&e.forEach(e=>{if(/color/.exec(e)){let s=e.replace("fill","bgFill");t.textStyles.push(s)}t.styles.push(e)}),this.classes.forEach(t=>{t.cssClasses.includes(s)&&t.styles.push(...e.flatMap(t=>t.split(",")))})}}setTooltip(t,e){t.split(",").forEach(t=>{void 0!==e&&(this.classes.get(t).tooltip=C(e))})}getTooltip(t,e){return e&&this.namespaces.has(e)?this.namespaces.get(e).classes.get(t).tooltip:this.classes.get(t).tooltip}setLink(t,e,s){let i=(0,l.D7)();t.split(",").forEach(t=>{let a=t;/\d/.exec(t[0])&&(a=A+a);let n=this.classes.get(a);n&&(n.link=u._K.formatUrl(e,i),"sandbox"===i.securityLevel?n.linkTarget="_top":"string"==typeof s?n.linkTarget=C(s):n.linkTarget="_blank")}),this.setCssClass(t,"clickable")}setClickEvent(t,e,s){t.split(",").forEach(t=>{this.setClickFunc(t,e,s),this.classes.get(t).haveCallback=!0}),this.setCssClass(t,"clickable")}setClickFunc(t,e,s){let i=l.Y2.sanitizeText(t,(0,l.D7)());if("loose"===(0,l.D7)().securityLevel&&void 0!==e&&this.classes.has(i)){let t=this.lookUpDomId(i),a=[];if("string"==typeof s){a=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<a.length;t++){let e=a[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),a[t]=e}}0===a.length&&a.push(t),this.functions.push(()=>{let s=document.querySelector(`[id="${t}"]`);null!==s&&s.addEventListener("click",()=>{u._K.runFunc(e,...a)},!1)})}}bindFunctions(t){this.functions.forEach(e=>{e(t)})}getDirection(){return this.direction}setDirection(t){this.direction=t}addNamespace(t){!this.namespaces.has(t)&&(this.namespaces.set(t,{id:t,classes:new Map,children:{},domId:A+t+"-"+this.namespaceCounter}),this.namespaceCounter++)}getNamespace(t){return this.namespaces.get(t)}getNamespaces(){return this.namespaces}addClassesToNamespace(t,e){if(this.namespaces.has(t))for(let s of e){let{className:e}=this.splitClassNameAndType(s);this.classes.get(e).parent=t,this.namespaces.get(t).classes.set(e,this.classes.get(e))}}setCssStyle(t,e){let s=this.classes.get(t);if(e&&s)for(let t of e)t.includes(",")?s.styles.push(...t.split(",")):s.styles.push(t)}getArrowMarker(t){let e;switch(t){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;case 4:e="lollipop";break;default:e="none"}return e}getData(){let t=[],e=[],s=(0,l.D7)();for(let e of this.namespaces.keys()){let i=this.namespaces.get(e);if(i){let e={id:i.id,label:i.id,isGroup:!0,padding:s.class.padding??16,shape:"rect",cssStyles:["fill: none","stroke: black"],look:s.look};t.push(e)}}for(let e of this.classes.keys()){let i=this.classes.get(e);i&&(i.parentId=i.parent,i.look=s.look,t.push(i))}let i=0;for(let a of this.notes){i++;let n={id:a.id,label:a.text,isGroup:!1,shape:"note",padding:s.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${s.themeVariables.noteBkgColor}`,`stroke: ${s.themeVariables.noteBorderColor}`],look:s.look};t.push(n);let r=this.classes.get(a.class)?.id??"";if(r){let t={id:`edgeNote${i}`,start:a.id,end:r,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:s.look};e.push(t)}}for(let e of this.interfaces){let i={id:e.id,label:e.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:s.look};t.push(i)}for(let t of(i=0,this.relations)){i++;let a={id:(0,u.rY)(t.id1,t.id2,{prefix:"id",counter:i}),start:t.id1,end:t.id2,type:"normal",label:t.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(t.relation.type1),arrowTypeEnd:this.getArrowMarker(t.relation.type2),startLabelRight:"none"===t.relationTitle1?"":t.relationTitle1,endLabelLeft:"none"===t.relationTitle2?"":t.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:t.style||"",pattern:1==t.relation.lineType?"dashed":"solid",look:s.look};e.push(a)}return{nodes:t,edges:e,other:{},config:s,direction:this.getDirection()}}},g=(0,l.K2)(t=>`g.classGroup text {
|
|
16
|
+
fill: ${t.nodeBorder||t.classText};
|
|
17
|
+
stroke: none;
|
|
18
|
+
font-family: ${t.fontFamily};
|
|
19
|
+
font-size: 10px;
|
|
20
|
+
|
|
21
|
+
.title {
|
|
22
|
+
font-weight: bolder;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.nodeLabel, .edgeLabel {
|
|
28
|
+
color: ${t.classText};
|
|
29
|
+
}
|
|
30
|
+
.edgeLabel .label rect {
|
|
31
|
+
fill: ${t.mainBkg};
|
|
32
|
+
}
|
|
33
|
+
.label text {
|
|
34
|
+
fill: ${t.classText};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.labelBkg {
|
|
38
|
+
background: ${t.mainBkg};
|
|
39
|
+
}
|
|
40
|
+
.edgeLabel .label span {
|
|
41
|
+
background: ${t.mainBkg};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.classTitle {
|
|
45
|
+
font-weight: bolder;
|
|
46
|
+
}
|
|
47
|
+
.node rect,
|
|
48
|
+
.node circle,
|
|
49
|
+
.node ellipse,
|
|
50
|
+
.node polygon,
|
|
51
|
+
.node path {
|
|
52
|
+
fill: ${t.mainBkg};
|
|
53
|
+
stroke: ${t.nodeBorder};
|
|
54
|
+
stroke-width: 1px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
.divider {
|
|
59
|
+
stroke: ${t.nodeBorder};
|
|
60
|
+
stroke-width: 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
g.clickable {
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
g.classGroup rect {
|
|
68
|
+
fill: ${t.mainBkg};
|
|
69
|
+
stroke: ${t.nodeBorder};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
g.classGroup line {
|
|
73
|
+
stroke: ${t.nodeBorder};
|
|
74
|
+
stroke-width: 1;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.classLabel .box {
|
|
78
|
+
stroke: none;
|
|
79
|
+
stroke-width: 0;
|
|
80
|
+
fill: ${t.mainBkg};
|
|
81
|
+
opacity: 0.5;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.classLabel .label {
|
|
85
|
+
fill: ${t.nodeBorder};
|
|
86
|
+
font-size: 10px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.relation {
|
|
90
|
+
stroke: ${t.lineColor};
|
|
91
|
+
stroke-width: 1;
|
|
92
|
+
fill: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.dashed-line{
|
|
96
|
+
stroke-dasharray: 3;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.dotted-line{
|
|
100
|
+
stroke-dasharray: 1 2;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
#compositionStart, .composition {
|
|
104
|
+
fill: ${t.lineColor} !important;
|
|
105
|
+
stroke: ${t.lineColor} !important;
|
|
106
|
+
stroke-width: 1;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
#compositionEnd, .composition {
|
|
110
|
+
fill: ${t.lineColor} !important;
|
|
111
|
+
stroke: ${t.lineColor} !important;
|
|
112
|
+
stroke-width: 1;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
#dependencyStart, .dependency {
|
|
116
|
+
fill: ${t.lineColor} !important;
|
|
117
|
+
stroke: ${t.lineColor} !important;
|
|
118
|
+
stroke-width: 1;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
#dependencyStart, .dependency {
|
|
122
|
+
fill: ${t.lineColor} !important;
|
|
123
|
+
stroke: ${t.lineColor} !important;
|
|
124
|
+
stroke-width: 1;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
#extensionStart, .extension {
|
|
128
|
+
fill: transparent !important;
|
|
129
|
+
stroke: ${t.lineColor} !important;
|
|
130
|
+
stroke-width: 1;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
#extensionEnd, .extension {
|
|
134
|
+
fill: transparent !important;
|
|
135
|
+
stroke: ${t.lineColor} !important;
|
|
136
|
+
stroke-width: 1;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
#aggregationStart, .aggregation {
|
|
140
|
+
fill: transparent !important;
|
|
141
|
+
stroke: ${t.lineColor} !important;
|
|
142
|
+
stroke-width: 1;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
#aggregationEnd, .aggregation {
|
|
146
|
+
fill: transparent !important;
|
|
147
|
+
stroke: ${t.lineColor} !important;
|
|
148
|
+
stroke-width: 1;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
#lollipopStart, .lollipop {
|
|
152
|
+
fill: ${t.mainBkg} !important;
|
|
153
|
+
stroke: ${t.lineColor} !important;
|
|
154
|
+
stroke-width: 1;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
#lollipopEnd, .lollipop {
|
|
158
|
+
fill: ${t.mainBkg} !important;
|
|
159
|
+
stroke: ${t.lineColor} !important;
|
|
160
|
+
stroke-width: 1;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.edgeTerminals {
|
|
164
|
+
font-size: 11px;
|
|
165
|
+
line-height: initial;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.classTitleText {
|
|
169
|
+
text-anchor: middle;
|
|
170
|
+
font-size: 18px;
|
|
171
|
+
fill: ${t.textColor};
|
|
172
|
+
}
|
|
173
|
+
${(0,i.o)()}
|
|
174
|
+
`,"getStyles"),b=(0,l.K2)((t,e="TB")=>{if(!t.doc)return e;let s=e;for(let e of t.doc)"dir"===e.stmt&&(s=e.value);return s},"getDir"),E={getClasses:(0,l.K2)(function(t,e){return e.db.getClasses()},"getClasses"),draw:(0,l.K2)(async function(t,e,s,i){l.Rm.info("REF0:"),l.Rm.info("Drawing class diagram (v3)",e);let{securityLevel:o,state:c,layout:h}=(0,l.D7)(),d=i.db.getData(),p=(0,a.A)(e,o);d.type=i.type,d.layoutAlgorithm=(0,r.q7)(h),d.nodeSpacing=c?.nodeSpacing||50,d.rankSpacing=c?.rankSpacing||50,d.markers=["aggregation","extension","composition","dependency","lollipop"],d.diagramId=e,await (0,r.XX)(d,p),u._K.insertTitle(p,"classDiagramTitleText",c?.titleTopMargin??25,i.db.getDiagramTitle()),(0,n.P)(p,8,"classDiagram",c?.useMaxWidth??!0)},"draw"),getDir:b}},4543(t,e,s){s.d(e,{P:()=>a});var i=s(8755),a=(0,i.K2)((t,e,s,a)=>{t.attr("class",s);let{width:u,height:l,x:o,y:c}=n(t,e);(0,i.a$)(t,l,u,a);let h=r(o,c,u,l,e);t.attr("viewBox",h),i.Rm.debug(`viewBox configured: ${h} with padding: ${e}`)},"setupViewPortForSVG"),n=(0,i.K2)((t,e)=>{let s=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:s.width+2*e,height:s.height+2*e,x:s.x,y:s.y}},"calculateDimensionsWithPadding"),r=(0,i.K2)((t,e,s,i,a)=>`${t-a} ${e-a} ${s} ${i}`,"createViewBox")},6982(t,e,s){s.d(e,{A:()=>n});var i=s(8755),a=s(6040),n=(0,i.K2)((t,e)=>{let s;return"sandbox"===e&&(s=(0,a.Lt)("#i"+t)),("sandbox"===e?(0,a.Lt)(s.nodes()[0].contentDocument.body):(0,a.Lt)("body")).select(`[id="${t}"]`)},"getDiagramElement")}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.rspackChunkchat_demo=self.rspackChunkchat_demo||[]).push([[5638],{6763(t,e,n){function r(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function i(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function a(t){let e,n,a;function o(t,r,i=0,a=t.length){if(i<a){if(0!==e(r,r))return a;do{let e=i+a>>>1;0>n(t[e],r)?i=e+1:a=e}while(i<a)}return i}return 2!==t.length?(e=r,n=(e,n)=>r(t(e),n),a=(e,n)=>t(e)-n):(e=t===r||t===i?t:u,n=t,a=t),{left:o,center:function(t,e,n=0,r=t.length){let i=o(t,e,n,r-1);return i>n&&a(t[i-1],e)>-a(t[i],e)?i-1:i},right:function(t,r,i=0,a=t.length){if(i<a){if(0!==e(r,r))return a;do{let e=i+a>>>1;0>=n(t[e],r)?i=e+1:a=e}while(i<a)}return i}}}function u(){return 0}n.d(e,{Bu:()=>g,T9:()=>T,Zc:()=>x,h1:()=>l,jk:()=>C,lq:()=>b,sG:()=>w,y1:()=>U,yl:()=>a});let o=a(r),l=o.right;function c(t){return function(e,n,r=n){if(!((n*=1)>=0))throw RangeError("invalid rx");if(!((r*=1)>=0))throw RangeError("invalid ry");let{data:i,width:a,height:u}=e;if(!((a=Math.floor(a))>=0))throw RangeError("invalid width");if(!((u=Math.floor(void 0!==u?u:i.length/a))>=0))throw RangeError("invalid height");if(!a||!u||!n&&!r)return e;let o=n&&t(n),l=r&&t(r),c=i.slice();return o&&l?(f(o,c,i,a,u),f(o,i,c,a,u),f(o,c,i,a,u),s(l,i,c,a,u),s(l,c,i,a,u),s(l,i,c,a,u)):o?(f(o,i,c,a,u),f(o,c,i,a,u),f(o,i,c,a,u)):l&&(s(l,i,c,a,u),s(l,c,i,a,u),s(l,i,c,a,u)),e}}function f(t,e,n,r,i){for(let a=0,u=r*i;a<u;)t(e,n,a,a+=r,1)}function s(t,e,n,r,i){for(let a=0,u=r*i;a<r;++a)t(e,n,a,a+u,r)}function h(t){let e=Math.floor(t);if(e===t){var n;let e;return e=2*(n=t)+1,(t,r,i,a,u)=>{if(!((a-=u)>=i))return;let o=n*r[i],l=u*n;for(let t=i,e=i+l;t<e;t+=u)o+=r[Math.min(a,t)];for(let n=i,c=a;n<=c;n+=u)o+=r[Math.min(a,n+l)],t[n]=o/e,o-=r[Math.max(i,n-l)]}}let r=t-e,i=2*t+1;return(t,n,a,u,o)=>{if(!((u-=o)>=a))return;let l=e*n[a],c=o*e,f=c+o;for(let t=a,e=a+c;t<e;t+=o)l+=n[Math.min(u,t)];for(let e=a,s=u;e<=s;e+=o)l+=n[Math.min(u,e+c)],t[e]=(l+r*(n[Math.max(a,e-f)]+n[Math.min(u,e+f)]))/i,l-=n[Math.max(a,e-c)]}}o.left,a(function(t){return null===t?NaN:+t}).center,c(h),c(function(t){let e=h(t);return(t,n,r,i,a)=>{e(t,n,(r<<=2)+0,(i<<=2)+0,a<<=2),e(t,n,r+1,i+1,a),e(t,n,r+2,i+2,a),e(t,n,r+3,i+3,a)}});class g extends Map{constructor(t,e=p){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(d(this,t))}has(t){return super.has(d(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){let r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}(this,t))}}function d({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):n}function p(t){return null!==t&&"object"==typeof t?t.valueOf():t}Array.prototype.slice;let y=Math.sqrt(50),m=Math.sqrt(10),M=Math.sqrt(2);function v(t,e,n){let r,i,a,u=(e-t)/Math.max(0,n),o=Math.floor(Math.log10(u)),l=u/Math.pow(10,o),c=l>=y?10:l>=m?5:l>=M?2:1;return(o<0?(r=Math.round(t*(a=Math.pow(10,-o)/c)),i=Math.round(e*a),r/a<t&&++r,i/a>e&&--i,a=-a):(r=Math.round(t/(a=Math.pow(10,o)*c)),i=Math.round(e/a),r*a<t&&++r,i*a>e&&--i),i<r&&.5<=n&&n<2)?v(t,e,2*n):[r,i,a]}function x(t,e,n){if(e*=1,t*=1,!((n*=1)>0))return[];if(t===e)return[t];let r=e<t,[i,a,u]=r?v(e,t,n):v(t,e,n);if(!(a>=i))return[];let o=a-i+1,l=Array(o);if(r)if(u<0)for(let t=0;t<o;++t)l[t]=-((a-t)/u);else for(let t=0;t<o;++t)l[t]=(a-t)*u;else if(u<0)for(let t=0;t<o;++t)l[t]=-((i+t)/u);else for(let t=0;t<o;++t)l[t]=(i+t)*u;return l}function b(t,e,n){return v(t*=1,e*=1,n*=1)[2]}function w(t,e,n){e*=1,t*=1,n*=1;let r=e<t,i=r?b(e,t,n):b(t,e,n);return(r?-1:1)*(i<0?-(1/i):i)}function T(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function C(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function U(t,e,n){t*=1,e*=1,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),a=Array(i);++r<i;)a[r]=t+r*n;return a}},1410(t,e,n){function r(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function a(){}n.d(e,{KI:()=>F,Qh:()=>T,UB:()=>_,aq:()=>Q,yW:()=>v});var u="\\s*([+-]?\\d+)\\s*",o="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",l="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,f=RegExp(`^rgb\\(${u},${u},${u}\\)$`),s=RegExp(`^rgb\\(${l},${l},${l}\\)$`),h=RegExp(`^rgba\\(${u},${u},${u},${o}\\)$`),g=RegExp(`^rgba\\(${l},${l},${l},${o}\\)$`),d=RegExp(`^hsl\\(${o},${l},${l}\\)$`),p=RegExp(`^hsla\\(${o},${l},${l},${o}\\)$`),y={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function m(){return this.rgb().formatHex()}function M(){return this.rgb().formatRgb()}function v(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=c.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?x(e):3===n?new C(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?b(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?b(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=f.exec(t))?new C(e[1],e[2],e[3],1):(e=s.exec(t))?new C(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=h.exec(t))?b(e[1],e[2],e[3],e[4]):(e=g.exec(t))?b(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=d.exec(t))?$(e[1],e[2]/100,e[3]/100,1):(e=p.exec(t))?$(e[1],e[2]/100,e[3]/100,e[4]):y.hasOwnProperty(t)?x(y[t]):"transparent"===t?new C(NaN,NaN,NaN,0):null}function x(t){return new C(t>>16&255,t>>8&255,255&t,1)}function b(t,e,n,r){return r<=0&&(t=e=n=NaN),new C(t,e,n,r)}function w(t){return(t instanceof a||(t=v(t)),t)?new C((t=t.rgb()).r,t.g,t.b,t.opacity):new C}function T(t,e,n,r){return 1==arguments.length?w(t):new C(t,e,n,null==r?1:r)}function C(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function U(){return`#${A(this.r)}${A(this.g)}${A(this.b)}`}function N(){let t=D(this.opacity);return`${1===t?"rgb(":"rgba("}${k(this.r)}, ${k(this.g)}, ${k(this.b)}${1===t?")":`, ${t})`}`}function D(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function k(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function A(t){return((t=k(t))<16?"0":"")+t.toString(16)}function $(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new S(t,e,n,r)}function Y(t){if(t instanceof S)return new S(t.h,t.s,t.l,t.opacity);if(t instanceof a||(t=v(t)),!t)return new S;if(t instanceof S)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),u=Math.max(e,n,r),o=NaN,l=u-i,c=(u+i)/2;return l?(o=e===u?(n-r)/l+(n<r)*6:n===u?(r-e)/l+2:(e-n)/l+4,l/=c<.5?u+i:2-u-i,o*=60):l=c>0&&c<1?0:o,new S(o,l,c,t.opacity)}function F(t,e,n,r){return 1==arguments.length?Y(t):new S(t,e,n,null==r?1:r)}function S(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function H(t){return(t=(t||0)%360)<0?t+360:t}function q(t){return Math.max(0,Math.min(1,t||0))}function j(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}r(a,v,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:m,formatHex:m,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Y(this).formatHsl()},formatRgb:M,toString:M}),r(C,T,i(a,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new C(k(this.r),k(this.g),k(this.b),D(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:U,formatHex:U,formatHex8:function(){return`#${A(this.r)}${A(this.g)}${A(this.b)}${A((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:N,toString:N})),r(S,F,i(a,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new S(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new S(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new C(j(t>=240?t-240:t+120,i,r),j(t,i,r),j(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new S(H(this.h),q(this.s),q(this.l),D(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=D(this.opacity);return`${1===t?"hsl(":"hsla("}${H(this.h)}, ${100*q(this.s)}%, ${100*q(this.l)}%${1===t?")":`, ${t})`}`}}));let X=Math.PI/180,E=180/Math.PI,L=4/29,R=6/29,I=6/29*3*(6/29),P=6/29*(6/29)*(6/29);function O(t){if(t instanceof G)return new G(t.l,t.a,t.b,t.opacity);if(t instanceof V)return J(t);t instanceof C||(t=w(t));var e,n,r=z(t.r),i=z(t.g),a=z(t.b),u=W((.2225045*r+.7168786*i+.0606169*a)/1);return r===i&&i===a?e=n=u:(e=W((.4360747*r+.3850649*i+.1430804*a)/.96422),n=W((.0139322*r+.0971045*i+.7141733*a)/.82521)),new G(116*u-16,500*(e-u),200*(u-n),t.opacity)}function G(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function W(t){return t>P?Math.pow(t,1/3):t/I+L}function Z(t){return t>R?t*t*t:I*(t-L)}function B(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function z(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Q(t,e,n,r){return 1==arguments.length?function(t){if(t instanceof V)return new V(t.h,t.c,t.l,t.opacity);if(t instanceof G||(t=O(t)),0===t.a&&0===t.b)return new V(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*E;return new V(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new V(t,e,n,null==r?1:r)}function V(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function J(t){if(isNaN(t.h))return new G(t.l,0,0,t.opacity);var e=t.h*X;return new G(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}r(G,function(t,e,n,r){return 1==arguments.length?O(t):new G(t,e,n,null==r?1:r)},i(a,{brighter(t){return new G(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new G(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=.96422*Z(e),new C(B(3.1338561*e-1.6168667*(t=+Z(t))-.4906146*(n=.82521*Z(n))),B(-.9787684*e+1.9161415*t+.033454*n),B(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),r(V,Q,i(a,{brighter(t){return new V(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new V(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return J(this).rgb()}}));var K=-1.78277*.29227-.1347134789;function _(t,e,n,r){return 1==arguments.length?function(t){if(t instanceof tt)return new tt(t.h,t.s,t.l,t.opacity);t instanceof C||(t=w(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(K*r+-1.7884503806*e-3.5172982438*n)/(K+-1.7884503806-3.5172982438),a=r-i,u=-((1.97294*(n-i)- -.29227*a)/.90649),o=Math.sqrt(u*u+a*a)/(1.97294*i*(1-i)),l=o?Math.atan2(u,a)*E-120:NaN;return new tt(l<0?l+360:l,o,i,t.opacity)}(t):new tt(t,e,n,null==r?1:r)}function tt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}r(tt,_,i(a,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new tt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new tt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=isNaN(this.h)?0:(this.h+120)*X,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new C(255*(e+n*(-.14861*r+1.78277*i)),255*(e+n*(-.29227*r+-.90649*i)),255*(e+1.97294*r*n),this.opacity)}}))},990(t,e,n){function r(t,e){if(!isFinite(t)||0===t)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function i(t){return(t=r(Math.abs(t)))?t[1]:NaN}n.d(e,{GP:()=>o,Gp:()=>f,Pj:()=>v,RT:()=>m,dT:()=>M,s:()=>l});var a,u,o,l,c=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function f(t){var e;if(!(e=c.exec(t)))throw Error("invalid format: "+t);return new s({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function s(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function h(t,e){var n=r(t,e);if(!n)return t+"";var i=n[0],a=n[1];return a<0?"0."+Array(-a).join("0")+i:i.length>a+1?i.slice(0,a+1)+"."+i.slice(a+1):i+Array(a-i.length+2).join("0")}f.prototype=s.prototype,s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var g={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>h(100*t,e),r:h,s:function(t,e){var n=r(t,e);if(!n)return a=void 0,t.toPrecision(e);var i=n[0],u=n[1],o=u-(a=3*Math.max(-8,Math.min(8,Math.floor(u/3))))+1,l=i.length;return o===l?i:o>l?i+Array(o-l+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+Array(1-o).join("0")+r(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function d(t){return t}var p=Array.prototype.map,y=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function m(t){return Math.max(0,-i(Math.abs(t)))}function M(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(i(e)/3)))-i(Math.abs(t)))}function v(t,e){return Math.max(0,i(e=Math.abs(e)-(t=Math.abs(t)))-i(t))+1}o=(u=function(t){var e,n,r,u=void 0===t.grouping||void 0===t.thousands?d:(e=p.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,a=[],u=0,o=e[0],l=0;i>0&&o>0&&(l+o+1>r&&(o=Math.max(1,r-l)),a.push(t.substring(i-=o,i+o)),!((l+=o+1)>r));)o=e[u=(u+1)%e.length];return a.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",l=void 0===t.currency?"":t.currency[1]+"",c=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?d:(r=p.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return r[+t]})}),h=void 0===t.percent?"%":t.percent+"",m=void 0===t.minus?"−":t.minus+"",M=void 0===t.nan?"NaN":t.nan+"";function v(t,e){var n=(t=f(t)).fill,r=t.align,i=t.sign,d=t.symbol,p=t.zero,v=t.width,x=t.comma,b=t.precision,w=t.trim,T=t.type;"n"===T?(x=!0,T="g"):g[T]||(void 0===b&&(b=12),w=!0,T="g"),(p||"0"===n&&"="===r)&&(p=!0,n="0",r="=");var C=(e&&void 0!==e.prefix?e.prefix:"")+("$"===d?o:"#"===d&&/[boxX]/.test(T)?"0"+T.toLowerCase():""),U=("$"===d?l:/[%p]/.test(T)?h:"")+(e&&void 0!==e.suffix?e.suffix:""),N=g[T],D=/[defgprs%]/.test(T);function k(t){var e,o,l,f=C,h=U;if("c"===T)h=N(t)+h,t="";else{var g=(t*=1)<0||1/t<0;if(t=isNaN(t)?M:N(Math.abs(t),b),w&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),g&&0==+t&&"+"!==i&&(g=!1),f=(g?"("===i?i:m:"-"===i||"("===i?"":i)+f,h=("s"!==T||isNaN(t)||void 0===a?"":y[8+a/3])+h+(g&&"("===i?")":""),D){for(e=-1,o=t.length;++e<o;)if(48>(l=t.charCodeAt(e))||l>57){h=(46===l?c+t.slice(e+1):t.slice(e))+h,t=t.slice(0,e);break}}}x&&!p&&(t=u(t,1/0));var d=f.length+t.length+h.length,k=d<v?Array(v-d+1).join(n):"";switch(x&&p&&(t=u(k+t,k.length?v-h.length:1/0),k=""),r){case"<":t=f+t+h+k;break;case"=":t=f+k+t+h;break;case"^":t=k.slice(0,d=k.length>>1)+f+t+h+k.slice(d);break;default:t=k+f+t+h}return s(t)}return b=void 0===b?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),k.toString=function(){return t+""},k}return{format:v,formatPrefix:function(t,e){var n=3*Math.max(-8,Math.min(8,Math.floor(i(e)/3))),r=Math.pow(10,-n),a=v(((t=f(t)).type="f",t),{suffix:y[8+n/3]});return function(t){return a(r*t)}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,l=u.formatPrefix},6700(t,e,n){n.d(e,{Dj:()=>g,GW:()=>function t(e,n){var r,a,o=typeof n;return null==n||"boolean"===o?u(n):("number"===o?g:"string"===o?(a=(0,i.yW)(n))?(n=a,f):function(t,e){var n,r,i,a,u,o=d.lastIndex=p.lastIndex=0,l=-1,c=[],f=[];for(t+="",e+="";(i=d.exec(t))&&(a=p.exec(e));)(u=a.index)>o&&(u=e.slice(o,u),c[l]?c[l]+=u:c[++l]=u),(i=i[0])===(a=a[0])?c[l]?c[l]+=a:c[++l]=a:(c[++l]=null,f.push({i:l,x:g(i,a)})),o=p.lastIndex;return o<e.length&&(u=e.slice(o),c[l]?c[l]+=u:c[++l]=u),c.length<2?f[0]?(n=f[0].x,function(t){return n(t)+""}):(r=e,function(){return r}):(e=f.length,function(t){for(var n,r=0;r<e;++r)c[(n=f[r]).i]=n.x(t);return c.join("")})}:n instanceof i.yW?f:n instanceof Date?function(t,e){var n=new Date;return t*=1,e*=1,function(r){return n.setTime(t*(1-r)+e*r),n}}:!ArrayBuffer.isView(r=n)||r instanceof DataView?Array.isArray(n)?function(e,n){var r,i=n?n.length:0,a=e?Math.min(i,e.length):0,u=Array(a),o=Array(i);for(r=0;r<a;++r)u[r]=t(e[r],n[r]);for(;r<i;++r)o[r]=n[r];return function(t){for(r=0;r<a;++r)o[r]=u[r](t);return o}}:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?function(e,n){var r,i={},a={};for(r in(null===e||"object"!=typeof e)&&(e={}),(null===n||"object"!=typeof n)&&(n={}),n)r in e?i[r]=t(e[r],n[r]):a[r]=n[r];return function(t){for(r in i)a[r]=i[r](t);return a}}:g:function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(n=0;n<r;++n)i[n]=t[n]*(1-a)+e[n]*a;return i}})(e,n)},Xl:()=>N,bE:()=>C,sH:()=>y,z4:()=>h});var r,i=n(1410);function a(t,e,n,r,i){var a=t*t,u=a*t;return((1-3*t+3*a-u)*e+(4-6*a+3*u)*n+(1+3*t+3*a-3*u)*r+u*i)/6}var u=t=>()=>t;function o(t,e){return function(n){return t+n*e}}function l(t,e){var n=e-t;return n?o(t,n>180||n<-180?n-360*Math.round(n/360):n):u(isNaN(t)?e:t)}function c(t,e){var n=e-t;return n?o(t,n):u(isNaN(t)?e:t)}var f=function t(e){var n,r=1==(n=+e)?c:function(t,e){var r,i,a;return e-t?(r=t,i=e,r=Math.pow(r,a=n),i=Math.pow(i,a)-r,a=1/a,function(t){return Math.pow(r+t*i,a)}):u(isNaN(t)?e:t)};function a(t,e){var n=r((t=(0,i.Qh)(t)).r,(e=(0,i.Qh)(e)).r),a=r(t.g,e.g),u=r(t.b,e.b),o=c(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=a(e),t.b=u(e),t.opacity=o(e),t+""}}return a.gamma=t,a}(1);function s(t){return function(e){var n,r,a=e.length,u=Array(a),o=Array(a),l=Array(a);for(n=0;n<a;++n)r=(0,i.Qh)(e[n]),u[n]=r.r||0,o[n]=r.g||0,l[n]=r.b||0;return u=t(u),o=t(o),l=t(l),r.opacity=1,function(t){return r.r=u(t),r.g=o(t),r.b=l(t),r+""}}}var h=s(function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],u=t[r+1],o=r>0?t[r-1]:2*i-u,l=r<e-1?t[r+2]:2*u-i;return a((n-r/e)*e,o,i,u,l)}});function g(t,e){return t*=1,e*=1,function(n){return t*(1-n)+e*n}}s(function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],u=t[r%e],o=t[(r+1)%e],l=t[(r+2)%e];return a((n-r/e)*e,i,u,o,l)}});var d=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,p=RegExp(d.source,"g");function y(t,e){return t*=1,e*=1,function(n){return Math.round(t*(1-n)+e*n)}}var m=180/Math.PI,M={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function v(t,e,n,r,i,a){var u,o,l;return(u=Math.sqrt(t*t+e*e))&&(t/=u,e/=u),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(o=Math.sqrt(n*n+r*r))&&(n/=o,r/=o,l/=o),t*r<e*n&&(t=-t,e=-e,l=-l,u=-u),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*m,skewX:Math.atan(l)*m,scaleX:u,scaleY:o}}function x(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(a,u){var o,l,c,f,s=[],h=[];return a=t(a),u=t(u),!function(t,r,i,a,u,o){if(t!==i||r!==a){var l=u.push("translate(",null,e,null,n);o.push({i:l-4,x:g(t,i)},{i:l-2,x:g(r,a)})}else(i||a)&&u.push("translate("+i+e+a+n)}(a.translateX,a.translateY,u.translateX,u.translateY,s,h),o=a.rotate,l=u.rotate,o!==l?(o-l>180?l+=360:l-o>180&&(o+=360),h.push({i:s.push(i(s)+"rotate(",null,r)-2,x:g(o,l)})):l&&s.push(i(s)+"rotate("+l+r),c=a.skewX,f=u.skewX,c!==f?h.push({i:s.push(i(s)+"skewX(",null,r)-2,x:g(c,f)}):f&&s.push(i(s)+"skewX("+f+r),!function(t,e,n,r,a,u){if(t!==n||e!==r){var o=a.push(i(a)+"scale(",null,",",null,")");u.push({i:o-4,x:g(t,n)},{i:o-2,x:g(e,r)})}else(1!==n||1!==r)&&a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,u.scaleX,u.scaleY,s,h),a=u=null,function(t){for(var e,n=-1,r=h.length;++n<r;)s[(e=h[n]).i]=e.x(t);return s.join("")}}}function b(t){return((t=Math.exp(t))+1/t)/2}function w(t){return function(e,n){var r=t((e=(0,i.KI)(e)).h,(n=(0,i.KI)(n)).h),a=c(e.s,n.s),u=c(e.l,n.l),o=c(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=a(t),e.l=u(t),e.opacity=o(t),e+""}}}function T(t){return function(e,n){var r=t((e=(0,i.aq)(e)).h,(n=(0,i.aq)(n)).h),a=c(e.c,n.c),u=c(e.l,n.l),o=c(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=a(t),e.l=u(t),e.opacity=o(t),e+""}}}x(function(t){let e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?M:v(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),x(function(t){return null==t?M:(r||(r=document.createElementNS("http://www.w3.org/2000/svg","g")),r.setAttribute("transform",t),t=r.transform.baseVal.consolidate())?v((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):M},", ",")",")"),!function t(e,n,r){function i(t,i){var a,u,o=t[0],l=t[1],c=t[2],f=i[0],s=i[1],h=i[2],g=f-o,d=s-l,p=g*g+d*d;if(p<1e-12)u=Math.log(h/c)/e,a=function(t){return[o+t*g,l+t*d,c*Math.exp(e*t*u)]};else{var y=Math.sqrt(p),m=(h*h-c*c+r*p)/(2*c*n*y),M=(h*h-c*c-r*p)/(2*h*n*y),v=Math.log(Math.sqrt(m*m+1)-m);u=(Math.log(Math.sqrt(M*M+1)-M)-v)/e,a=function(t){var r,i,a=t*u,f=b(v),s=c/(n*y)*(f*(((r=Math.exp(2*(r=e*a+v)))-1)/(r+1))-((i=Math.exp(i=v))-1/i)/2);return[o+s*g,l+s*d,c*f/b(e*a+v)]}}return a.duration=1e3*Math.abs(u)*e/Math.SQRT2,a}return i.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},i}(Math.SQRT2,2,4),w(l),w(c);var C=T(l);function U(t){return function e(n){function r(e,r){var a=t((e=(0,i.UB)(e)).h,(r=(0,i.UB)(r)).h),u=c(e.s,r.s),o=c(e.l,r.l),l=c(e.opacity,r.opacity);return function(t){return e.h=a(t),e.s=u(t),e.l=o(Math.pow(t,n)),e.opacity=l(t),e+""}}return n*=1,r.gamma=e,r}(1)}T(c),U(l);var N=U(c)},1733(t,e,n){n.d(e,{UM:()=>f,WH:()=>function t(){var e,n,i=f().unknown(void 0),a=i.domain,u=i.range,o=0,c=1,s=!1,h=0,g=0,d=.5;function p(){var t=a().length,i=c<o,l=i?c:o,f=i?o:c;e=(f-l)/Math.max(1,t-h+2*g),s&&(e=Math.floor(e)),l+=(f-l-e*(t-h))*d,n=e*(1-h),s&&(l=Math.round(l),n=Math.round(n));var p=(0,r.y1)(t).map(function(t){return l+e*t});return u(i?p.reverse():p)}return delete i.unknown,i.domain=function(t){return arguments.length?(a(t),p()):a()},i.range=function(t){return arguments.length?([o,c]=t,o*=1,c*=1,p()):[o,c]},i.rangeRound=function(t){return[o,c]=t,o*=1,c*=1,s=!0,p()},i.bandwidth=function(){return n},i.step=function(){return e},i.round=function(t){return arguments.length?(s=!!t,p()):s},i.padding=function(t){return arguments.length?(h=Math.min(1,g=+t),p()):h},i.paddingInner=function(t){return arguments.length?(h=Math.min(1,t),p()):h},i.paddingOuter=function(t){return arguments.length?(g=+t,p()):g},i.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),p()):d},i.copy=function(){return t(a(),[o,c]).round(s).paddingInner(h).paddingOuter(g).align(d)},l.apply(p(),arguments)},m4:()=>function t(){var e,n=M();return n.copy=function(){return m(n,t())},l.apply(n,arguments),e=n.domain,n.ticks=function(t){var n=e();return(0,r.Zc)(n[0],n[n.length-1],null==t?10:t)},n.tickFormat=function(t,n){var i=e();return function(t,e,n,i){var u,o=(0,r.sG)(t,e,n);switch((i=(0,a.Gp)(null==i?",f":i)).type){case"s":var l=Math.max(Math.abs(t),Math.abs(e));return null!=i.precision||isNaN(u=(0,a.dT)(o,l))||(i.precision=u),(0,a.s)(i,l);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(u=(0,a.Pj)(o,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=u-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(u=(0,a.RT)(o))||(i.precision=u-("%"===i.type)*2)}return(0,a.GP)(i)}(i[0],i[i.length-1],null==t?10:t,n)},n.nice=function(t){null==t&&(t=10);var i,a,u=e(),o=0,l=u.length-1,c=u[o],f=u[l],s=10;for(f<c&&(a=c,c=f,f=a,a=o,o=l,l=a);s-- >0;){if((a=(0,r.lq)(c,f,t))===i)return u[o]=c,u[l]=f,e(u);if(a>0)c=Math.floor(c/a)*a,f=Math.ceil(f/a)*a;else if(a<0)c=Math.ceil(c*a)/a,f=Math.floor(f*a)/a;else break;i=a}return n},n},w7:()=>b});var r=n(6763),i=n(6700),a=n(990),u=n(7414),o=n(8837);function l(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}let c=Symbol("implicit");function f(){var t=new r.Bu,e=[],n=[],i=c;function a(r){let a=t.get(r);if(void 0===a){if(i!==c)return i;t.set(r,a=e.push(r)-1)}return n[a%n.length]}return a.domain=function(n){if(!arguments.length)return e.slice();for(let i of(e=[],t=new r.Bu,n))t.has(i)||t.set(i,e.push(i)-1);return a},a.range=function(t){return arguments.length?(n=Array.from(t),a):n.slice()},a.unknown=function(t){return arguments.length?(i=t,a):i},a.copy=function(){return f(e,n).unknown(i)},l.apply(a,arguments),a}function s(t){return+t}var h=[0,1];function g(t){return t}function d(t,e){var n;return(e-=t*=1)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n})}function p(t,e,n){var r=t[0],i=t[1],a=e[0],u=e[1];return i<r?(r=d(i,r),a=n(u,a)):(r=d(r,i),a=n(a,u)),function(t){return a(r(t))}}function y(t,e,n){var i=Math.min(t.length,e.length)-1,a=Array(i),u=Array(i),o=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<i;)a[o]=d(t[o],t[o+1]),u[o]=n(e[o],e[o+1]);return function(e){var n=(0,r.h1)(t,e,1,i)-1;return u[n](a[n](e))}}function m(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function M(){return(function(){var t,e,n,r,a,u,o=h,l=h,c=i.GW,f=g;function d(){var t,e,n,i=Math.min(o.length,l.length);return f!==g&&(t=o[0],e=o[i-1],t>e&&(n=t,t=e,e=n),f=function(n){return Math.max(t,Math.min(e,n))}),r=i>2?y:p,a=u=null,m}function m(e){return null==e||isNaN(e*=1)?n:(a||(a=r(o.map(t),l,c)))(t(f(e)))}return m.invert=function(n){return f(e((u||(u=r(l,o.map(t),i.Dj)))(n)))},m.domain=function(t){return arguments.length?(o=Array.from(t,s),d()):o.slice()},m.range=function(t){return arguments.length?(l=Array.from(t),d()):l.slice()},m.rangeRound=function(t){return l=Array.from(t),c=i.sH,d()},m.clamp=function(t){return arguments.length?(f=!!t||g,d()):f!==g},m.interpolate=function(t){return arguments.length?(c=t,d()):c},m.unknown=function(t){return arguments.length?(n=t,m):n},function(n,r){return t=n,e=r,d()}})()(g,g)}function v(t){return new Date(t)}function x(t){return t instanceof Date?+t:Math.round(t)}function b(){return l.apply((function t(e,n,r,i,a,u,o,l,c,f){var s=M(),h=s.invert,g=s.domain,d=f(".%L"),p=f(":%S"),y=f("%I:%M"),b=f("%I %p"),w=f("%a %d"),T=f("%b %d"),C=f("%B"),U=f("%Y");function N(t){return(c(t)<t?d:l(t)<t?p:o(t)<t?y:u(t)<t?b:i(t)<t?a(t)<t?w:T:r(t)<t?C:U)(t)}return s.invert=function(t){return new Date(Math.round(h(t)))},s.domain=function(t){return arguments.length?g(Array.from(t,x)):g().map(v)},s.ticks=function(t){var n=g();return e(n[0],n[n.length-1],null==t?10:t)},s.tickFormat=function(t,e){return null==e?N:f(e)},s.nice=function(t){var e,r,i,a,u,o,l,c=g();return t&&"function"==typeof t.range||(t=n(c[0],c[c.length-1],null==t?10:t)),t?g((e=c,r=t,e=e.slice(),a=0,u=e.length-1,o=e[a],(l=e[u])<o&&(i=a,a=u,u=i,i=o,o=l,l=i),e[a]=r.floor(o),e[u]=r.ceil(l),e)):s},s.copy=function(){return m(s,t(e,n,r,i,a,u,o,l,c,f))},s})(u.Cf,u.yE,u.he,u.Ui,u.Kg,u.UA,u.Ag,u.wX,u.uc,o.DC).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}},8837(t,e,n){n.d(e,{DC:()=>i});var r,i,a,u,o=n(7414);function l(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function c(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function f(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var s={"-":"",_:" ",0:"0"},h=/^\s*\d+/,g=/^%/,d=/[\\^$*+?|[\]().{}]/g;function p(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<n?Array(n-a+1).join(e)+i:i)}function y(t){return t.replace(d,"\\$&")}function m(t){return RegExp("^(?:"+t.map(y).join("|")+")","i")}function M(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function v(t,e,n){var r=h.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function x(t,e,n){var r=h.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function b(t,e,n){var r=h.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function w(t,e,n){var r=h.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function T(t,e,n){var r=h.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function C(t,e,n){var r=h.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function U(t,e,n){var r=h.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function N(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function D(t,e,n){var r=h.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function k(t,e,n){var r=h.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function A(t,e,n){var r=h.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function $(t,e,n){var r=h.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Y(t,e,n){var r=h.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function F(t,e,n){var r=h.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function S(t,e,n){var r=h.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function H(t,e,n){var r=h.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function q(t,e,n){var r=h.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function j(t,e,n){var r=g.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function X(t,e,n){var r=h.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function E(t,e,n){var r=h.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function L(t,e){return p(t.getDate(),e,2)}function R(t,e){return p(t.getHours(),e,2)}function I(t,e){return p(t.getHours()%12||12,e,2)}function P(t,e){return p(1+o.UA.count((0,o.he)(t),t),e,3)}function O(t,e){return p(t.getMilliseconds(),e,3)}function G(t,e){return O(t,e)+"000"}function W(t,e){return p(t.getMonth()+1,e,2)}function Z(t,e){return p(t.getMinutes(),e,2)}function B(t,e){return p(t.getSeconds(),e,2)}function z(t){var e=t.getDay();return 0===e?7:e}function Q(t,e){return p(o.YP.count((0,o.he)(t)-1,t),e,2)}function V(t){var e=t.getDay();return e>=4||0===e?(0,o.Mo)(t):o.Mo.ceil(t)}function J(t,e){return t=V(t),p(o.Mo.count((0,o.he)(t),t)+(4===(0,o.he)(t).getDay()),e,2)}function K(t){return t.getDay()}function _(t,e){return p(o.AB.count((0,o.he)(t)-1,t),e,2)}function tt(t,e){return p(t.getFullYear()%100,e,2)}function te(t,e){return p((t=V(t)).getFullYear()%100,e,2)}function tn(t,e){return p(t.getFullYear()%1e4,e,4)}function tr(t,e){var n=t.getDay();return p((t=n>=4||0===n?(0,o.Mo)(t):o.Mo.ceil(t)).getFullYear()%1e4,e,4)}function ti(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+p(e/60|0,"0",2)+p(e%60,"0",2)}function ta(t,e){return p(t.getUTCDate(),e,2)}function tu(t,e){return p(t.getUTCHours(),e,2)}function to(t,e){return p(t.getUTCHours()%12||12,e,2)}function tl(t,e){return p(1+o.dA.count((0,o.Mb)(t),t),e,3)}function tc(t,e){return p(t.getUTCMilliseconds(),e,3)}function tf(t,e){return tc(t,e)+"000"}function ts(t,e){return p(t.getUTCMonth()+1,e,2)}function th(t,e){return p(t.getUTCMinutes(),e,2)}function tg(t,e){return p(t.getUTCSeconds(),e,2)}function td(t){var e=t.getUTCDay();return 0===e?7:e}function tp(t,e){return p(o.Hl.count((0,o.Mb)(t)-1,t),e,2)}function ty(t){var e=t.getUTCDay();return e>=4||0===e?(0,o.pT)(t):o.pT.ceil(t)}function tm(t,e){return t=ty(t),p(o.pT.count((0,o.Mb)(t),t)+(4===(0,o.Mb)(t).getUTCDay()),e,2)}function tM(t){return t.getUTCDay()}function tv(t,e){return p(o.rt.count((0,o.Mb)(t)-1,t),e,2)}function tx(t,e){return p(t.getUTCFullYear()%100,e,2)}function tb(t,e){return p((t=ty(t)).getUTCFullYear()%100,e,2)}function tw(t,e){return p(t.getUTCFullYear()%1e4,e,4)}function tT(t,e){var n=t.getUTCDay();return p((t=n>=4||0===n?(0,o.pT)(t):o.pT.ceil(t)).getUTCFullYear()%1e4,e,4)}function tC(){return"+0000"}function tU(){return"%"}function tN(t){return+t}function tD(t){return Math.floor(t/1e3)}i=(r=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,u=t.shortDays,h=t.months,g=t.shortMonths,d=m(i),p=M(i),y=m(a),V=M(a),ty=m(u),tk=M(u),tA=m(h),t$=M(h),tY=m(g),tF=M(g),tS={a:function(t){return u[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return g[t.getMonth()]},B:function(t){return h[t.getMonth()]},c:null,d:L,e:L,f:G,g:te,G:tr,H:R,I:I,j:P,L:O,m:W,M:Z,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:tN,s:tD,S:B,u:z,U:Q,V:J,w:K,W:_,x:null,X:null,y:tt,Y:tn,Z:ti,"%":tU},tH={a:function(t){return u[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return g[t.getUTCMonth()]},B:function(t){return h[t.getUTCMonth()]},c:null,d:ta,e:ta,f:tf,g:tb,G:tT,H:tu,I:to,j:tl,L:tc,m:ts,M:th,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:tN,s:tD,S:tg,u:td,U:tp,V:tm,w:tM,W:tv,x:null,X:null,y:tx,Y:tw,Z:tC,"%":tU},tq={a:function(t,e,n){var r=ty.exec(e.slice(n));return r?(t.w=tk.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.w=V.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=tY.exec(e.slice(n));return r?(t.m=tF.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=tA.exec(e.slice(n));return r?(t.m=t$.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return tE(t,e,n,r)},d:A,e:A,f:q,g:U,G:C,H:Y,I:Y,j:$,L:H,m:k,M:F,p:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.p=p.get(r[0].toLowerCase()),n+r[0].length):-1},q:D,Q:X,s:E,S:S,u:x,U:b,V:w,w:v,W:T,x:function(t,e,r){return tE(t,n,e,r)},X:function(t,e,n){return tE(t,r,e,n)},y:U,Y:C,Z:N,"%":j};function tj(t,e){return function(n){var r,i,a,u=[],o=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++o<c;)37===t.charCodeAt(o)&&(u.push(t.slice(l,o)),null!=(i=s[r=t.charAt(++o)])?r=t.charAt(++o):i="e"===r?" ":"0",(a=e[r])&&(r=a(n,i)),u.push(r),l=o+1);return u.push(t.slice(l,o)),u.join("")}}function tX(t,e){return function(n){var r,i,a=f(1900,void 0,1);if(tE(a,t,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(!e||"Z"in a||(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(r=(i=(r=c(f(a.y,0,1))).getUTCDay())>4||0===i?o.rt.ceil(r):(0,o.rt)(r),r=o.dA.offset(r,(a.V-1)*7),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(r=(i=(r=l(f(a.y,0,1))).getDay())>4||0===i?o.AB.ceil(r):(0,o.AB)(r),r=o.UA.offset(r,(a.V-1)*7),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:+("W"in a)),i="Z"in a?c(f(a.y,0,1)).getUTCDay():l(f(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,c(a)):l(a)}}function tE(t,e,n,r){for(var i,a,u=0,o=e.length,l=n.length;u<o;){if(r>=l)return -1;if(37===(i=e.charCodeAt(u++))){if(!(a=tq[(i=e.charAt(u++))in s?e.charAt(u++):i])||(r=a(t,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return tS.x=tj(n,tS),tS.X=tj(r,tS),tS.c=tj(e,tS),tH.x=tj(n,tH),tH.X=tj(r,tH),tH.c=tj(e,tH),{format:function(t){var e=tj(t+="",tS);return e.toString=function(){return t},e},parse:function(t){var e=tX(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=tj(t+="",tH);return e.toString=function(){return t},e},utcParse:function(t){var e=tX(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,r.parse,a=r.utcFormat,u=r.utcParse;var tk="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||a(tk),+new Date("2000-01-01T00:00:00.000Z")||u(tk)},7414(t,e,n){n.d(e,{AB:()=>M,Ag:()=>s,Cf:()=>L,Gu:()=>x,Hl:()=>U,Kg:()=>m,Mb:()=>q,Mo:()=>b,PG:()=>v,TU:()=>w,UA:()=>g,Ui:()=>F,YP:()=>m,dA:()=>d,he:()=>H,pT:()=>A,rG:()=>T,rt:()=>N,t6:()=>o,uc:()=>l,wX:()=>c,yE:()=>R});var r=n(6763);let i=new Date,a=new Date;function u(t,e,n,r){function o(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),o.round=t=>{let e=o(t),n=o.ceil(t);return t-e<n-t?e:n},o.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),o.range=(n,r,i)=>{let a,u=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r)||!(i>0))return u;do u.push(a=new Date(+n)),e(n,i),t(n);while(a<n&&n<r);return u},o.filter=n=>u(e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},(t,r)=>{if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}),n&&(o.count=(e,r)=>(i.setTime(+e),a.setTime(+r),t(i),t(a),Math.floor(n(i,a))),o.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?o.filter(r?e=>r(e)%t==0:e=>o.count(0,e)%t==0):o:null),o}let o=u(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);o.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?u(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):o:null,o.range;let l=u(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds());l.range;let c=u(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes());c.range;let f=u(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes());f.range;let s=u(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getHours());s.range;let h=u(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours());h.range;let g=u(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1);g.range;let d=u(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1);d.range;let p=u(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5));function y(t){return u(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}p.range;let m=y(0),M=y(1),v=y(2),x=y(3),b=y(4),w=y(5),T=y(6);function C(t){return u(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/6048e5)}m.range,M.range,v.range,x.range,b.range,w.range,T.range;let U=C(0),N=C(1),D=C(2),k=C(3),A=C(4),$=C(5),Y=C(6);U.range,N.range,D.range,k.range,A.range,$.range,Y.range;let F=u(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());F.range;let S=u(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());S.range;let H=u(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());H.every=t=>isFinite(t=Math.floor(t))&&t>0?u(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)}):null,H.range;let q=u(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function j(t,e,n,i,a,u){let c=[[l,1,1e3],[l,5,5e3],[l,15,15e3],[l,30,3e4],[u,1,6e4],[u,5,3e5],[u,15,9e5],[u,30,18e5],[a,1,36e5],[a,3,108e5],[a,6,216e5],[a,12,432e5],[i,1,864e5],[i,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function f(e,n,i){let a=Math.abs(n-e)/i,u=(0,r.yl)(([,,t])=>t).right(c,a);if(u===c.length)return t.every((0,r.sG)(e/31536e6,n/31536e6,i));if(0===u)return o.every(Math.max((0,r.sG)(e,n,i),1));let[l,f]=c[a/c[u-1][2]<c[u][2]/a?u-1:u];return l.every(f)}return[function(t,e,n){let r=e<t;r&&([t,e]=[e,t]);let i=n&&"function"==typeof n.range?n:f(t,e,n),a=i?i.range(t,+e+1):[];return r?a.reverse():a},f]}q.every=t=>isFinite(t=Math.floor(t))&&t>0?u(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null,q.range;let[X,E]=j(q,S,U,p,h,f),[L,R]=j(H,F,m,g,s,c)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.rspackChunkchat_demo=self.rspackChunkchat_demo||[]).push([[5706],{5393(){var e,t,n;e=Prism,t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n="\\b(?!<keyword>)\\w+(?:\\s*\\.\\s*\\w+)*\\b".replace(/<keyword>/g,function(){return t.source}),e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp("(\\b(?:class|concept|enum|struct|typename)\\s+)(?!<keyword>)\\w+".replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp('(\\b(?:import|module)\\s+)(?:"(?:\\\\(?:\r\n|[^])|[^"\\\\\r\n])*"|<[^<>\r\n]*>|'+"<mod-name>(?:\\s*:\\s*<mod-name>)?|:\\s*<mod-name>".replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.rspackChunkchat_demo=self.rspackChunkchat_demo||[]).push([[5856],{8499(e,t,n){n.d(t,{exportArchive:()=>y});var r=n(3599),s=n(3519),a=n(3494),l=n(8995),i=n(236);let o=e=>new Date(e).toISOString(),u=e=>{let t=null===e?NaN:Date.parse(e);return Number.isFinite(t)?o(t):null},d=(e,t)=>{let{input:n}=e;if("search"===n.action){let e=t?.type==="web_search_tool_result"?t.content:[];return[{type:"TOOL_SEARCH",queries:n.queries,status:t?.type!=="web_search_tool_result"?"WIP":e.some(e=>"web_search_tool_result_error"===e.type)?"FAILED":"FINISHED",results:e.flatMap(e=>"web_search_result"===e.type?[{url:e.url,title:e.title,snippet:e.snippet,published_at:u(e.page_age),site_name:e.site_name,site_icon:e.site_icon??null}]:[])}]}if("read_link"===n.action)return t?.type==="web_fetch_tool_result"&&"read_link"===t.kind&&"web_fetch_result"===t.content.type&&t.signature?.trim()?[{type:"READ_LINK",results:[{...t.content.url||n.url?{url:t.content.url||n.url}:{},title:t.content.content.title,signature:t.signature}]}]:[];let r=t?.type==="web_fetch_tool_result"?t.content:void 0,s=r?.type==="web_fetch_result"?r:void 0,a=r?s?"FINISHED":"FAILED":"WIP";return"find_in_page"===n.action?[{type:"TOOL_FIND",status:a,pattern:n.pattern}]:[{type:"TOOL_OPEN",status:a,url:n.url||s?.url||null,title:s?.content.title??null,snippet:s?"":null,site_name:null,published_at:s?u(s.published_at):null}]},p=(e,t)=>{var n;let r,s,u,p,_=(0,a.Kg)(e),{ordered:c,ids:f}=(r=new Map((n=_.messages).map(e=>[e.id,e])),s=new Map,u=[],p=(e,t)=>{if(!s.has(e.id)){if(e.parentId){let s=r.get(e.parentId);p(s&&t<n.length?s:(0,i.f)("backupInvalidBranches"),t+1)}s.set(e.id,u.push(e))}},n.forEach(e=>p(e,0)),{ordered:u,ids:s}),h=e=>f.get(e.id)??(0,i.f)("backupInvalidBranches"),m=new Map;for(let e of c)"assistant"===e.role&&e.parentId&&!m.has(e.parentId)&&m.set(e.parentId,e);let g=c.map(e=>{let n,r={id:h(e),parent_id:e.parentId?f.get(e.parentId)??null:null},s="assistant"===e.role?e:m.get(e.id);return{...r,role:"user"===e.role?"USER":"ASSISTANT",status:"user"===e.role?"FINISHED":(e=>{let{status:t,stopReason:n}=e;if("refusal"===n)return"CONTENT_FILTER";switch(t){case"done":return"max_tokens"===n?"INCOMPLETE":"FINISHED";case"stopped":return"INCOMPLETE";case"error":return"FAILED";default:return"WIP"}})(e),thinking_enabled:s?.thinking??!1,search_enabled:s?.search??!1,accumulated_token_usage:"user"===e.role?0:(e=>{let{usage:t}=e;return t?t.input_tokens+t.cache_creation_input_tokens+t.cache_read_input_tokens+t.output_tokens:0})(e),inserted_at:o(e.createdAt),fragments:"user"===e.role?[...(n=e.files.map(n=>{let r=n.isImage;return{id:n.id,file_name:n.name,file_size:n.size,token_usage:null,inserted_at:o(e.createdAt),export_path:t({id:n.id,name:n.name,isImage:r}),is_image:r,width:null,height:null}})).length>0?[{type:"FILE",files:n}]:[],{type:"REQUEST",content:e.content}]:(e=>{let t,{blocks:n}=e,r=new Map;for(let e of n)("web_search_tool_result"===e.type||"web_fetch_tool_result"===e.type)&&r.set(e.tool_use_id,e);let s=n.some(e=>"server_tool_use"===e.type),a=[];for(let e of n){if("text"===e.type){let n=e.isTemplate?"TEMPLATE_RESPONSE":"RESPONSE";t&&t.type===n||(t={type:n,content:""},a.push(t)),t.content+=s?e.text.replace(/\[citation:\d+\]/g,""):e.text;continue}let n="thinking"===e.type?e.thinking?[{type:"THINK",content:e.thinking,elapsed_secs:e.elapsedSeconds??(void 0===e.startedAt||void 0===e.endedAt?null:(e.endedAt-e.startedAt)/1e3)}]:[]:"server_tool_use"===e.type?d(e,r.get(e.id)):[];n.length>0&&(a.push(...n),t=void 0)}let i=n.some(e=>"text"===e.type&&e.isTemplate);if("error"===e.status&&e.error||!i&&"refusal"===e.stopReason){let t=(0,l.C)(e);t&&a.push({type:"TEMPLATE_RESPONSE",content:t.text})}return a})(e)}}),y=(0,a.R9)(_).at(-1);return{id:_.id,title:_.title||null,pinned:!1,current_message_id:y?h(y):0,inserted_at:o(_.createdAt),updated_at:o(_.updatedAt),messages:g}},_=e=>({id:e.id,title:e.title,pinned:!1,message_count:e.messages.length,inserted_at:e.inserted_at,updated_at:e.updated_at});var c=n(6511);class f extends Error{constructor(){super("History archive requires unsupported ZIP64 fields"),this.name="ArchiveLimitError"}}let h=()=>{throw Error("Invalid history archive entry")},m=async e=>{if(e.length>=65535)throw new f;let t=new Set,n=0,r=0,s=e.map(e=>{let{name:s,blob:a}=e,l=(e=>{let t=e.normalize("NFC");(!t||t.includes("\\")||t.includes("\0")||/^[A-Za-z]:/.test(t)||t.split("/").some(e=>!e||"."===e||".."===e))&&h();let n=new TextEncoder().encode(t);if(n.length>65535)throw new f;return new TextDecoder().decode(n)!==t&&h(),{name:t,byteLength:n.length}})(s);if(t.has(l.name)&&h(),t.add(l.name),a.size>=0xffffffff||(n+=a.size+46+l.byteLength,r+=46+l.byteLength,n>=0xffffffff||r>=0xffffffff))throw new f;return{name:l.name,blob:a}}),a=n+r+22,l=[],i=0,o=!1,u=new c.qQ((e,t,n)=>{if(e)throw e;(i+=t.byteLength)>a&&h(),l.push(new Blob([t])),o=n});try{for(let{name:e,blob:t}of s){let n=new c.uZ(e);n.mtime=new Date(1980,0,1),u.add(n);let r=t.stream().getReader(),s=0;try{for(;;){let{done:e,value:a}=await r.read();if(e)break;(s+=a.byteLength)>t.size&&h(),n.push(a)}s!==t.size&&h(),n.push(new Uint8Array,!0)}finally{await r.cancel().catch(()=>{}),r.releaseLock()}}return u.end(),o&&i===a||h(),new Blob(l,{type:"application/zip"})}finally{u.terminate()}},g=e=>new Blob([JSON.stringify(e)],{type:"application/json"}),y=async e=>{let t=[{name:s.U4,blob:g({export_format_version:3})}],n=[],a=[],l=new Map;for await(let i of e){for(let e of i.messages)if("user"===e.role)for(let t of e.files)t.isImage&&!l.has(t.id)&&l.set(t.id,await r.ZN(t.id));let e=new Map,o=p(i,t=>{let{id:n,name:r,isImage:a}=t,o=l.get(n);if(!o||!a)return null;let u=(0,s.d0)(i.id,n,r);return e.set(u,o),u});for(let[r,a]of(t.push({name:(0,s.kz)(i.id),blob:g(o)}),e))n.push({name:r,blob:a});a.push(_(o))}return t.push({name:s.Pm,blob:g(a)}),m(t.concat(n))}},3519(e,t,n){n.d(t,{$N:()=>i,Pm:()=>a,U4:()=>r,d0:()=>d,dN:()=>o,kz:()=>l,uA:()=>s});let r="manifest.json",s="user.json",a="chat_session_index.json",l=e=>`chat_sessions/${e}.json`,i=e=>`chat_sessions/${e}_files/`,o=e=>/^chat_sessions\/([^/]+)\.json$/.exec(e)?.[1]??null,u=e=>{let t=e.replace(/[/\\]/g,"_");return""===t||"."===t||".."===t?"unnamed":t},d=(e,t,n)=>`${i(e)}${u(t)}_${u(n)}`.normalize("NFC")}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.rspackChunkchat_demo=self.rspackChunkchat_demo||[]).push([[6061],{6511(t,n,r){r.d(n,{EL:()=>_,qQ:()=>B,uZ:()=>j});var e=Uint8Array,i=Uint16Array,a=Int32Array,o=new e([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]),s=new e([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]),h=new e([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),f=function(t,n){for(var r=new i(31),e=0;e<31;++e)r[e]=n+=1<<t[e-1];for(var o=new a(r[30]),e=1;e<30;++e)for(var s=r[e];s<r[e+1];++s)o[s]=s-r[e]<<5|e;return{b:r,r:o}},u=f(o,2),l=u.b,c=u.r;l[28]=258,c[258]=28;var v=f(s,0),d=v.b;v.r;for(var p=new i(32768),g=0;g<32768;++g){var w=(43690&g)>>1|(21845&g)<<1;w=(61680&(w=(52428&w)>>2|(13107&w)<<2))>>4|(3855&w)<<4,p[g]=((65280&w)>>8|(255&w)<<8)>>1}for(var b=function(t,n,r){for(var e,a=t.length,o=0,s=new i(n);o<a;++o)t[o]&&++s[t[o]-1];var h=new i(n);for(o=1;o<n;++o)h[o]=h[o-1]+s[o-1]<<1;if(r){e=new i(1<<n);var f=15-n;for(o=0;o<a;++o)if(t[o])for(var u=o<<4|t[o],l=n-t[o],c=h[t[o]-1]++<<l,v=c|(1<<l)-1;c<=v;++c)e[p[c]>>f]=u}else for(o=0,e=new i(a);o<a;++o)t[o]&&(e[o]=p[h[t[o]-1]++]>>15-t[o]);return e},m=new e(288),g=0;g<144;++g)m[g]=8;for(var g=144;g<256;++g)m[g]=9;for(var g=256;g<280;++g)m[g]=7;for(var g=280;g<288;++g)m[g]=8;for(var y=new e(32),g=0;g<32;++g)y[g]=5;var x=b(m,9,1),k=b(y,5,1),z=function(t){for(var n=t[0],r=1;r<t.length;++r)t[r]>n&&(n=t[r]);return n},A=function(t,n,r){var e=n/8|0;return(t[e]|t[e+1]<<8)>>(7&n)&r},E=function(t,n){var r=n/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(7&n)},T=function(t,n,r){return(null==n||n<0)&&(n=0),(null==r||r>t.length)&&(r=t.length),new e(t.subarray(n,r))},M=["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"],C=function(t,n,r){var e=Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,C),!r)throw e;return e},D=function(t,n,r,i){var a=t.length,f=i?i.length:0;if(!a||n.f&&!n.l)return r||new e(0);var u=!r,c=u||2!=n.i,v=n.i;u&&(r=new e(3*a));var p=function(t){var n=r.length;if(t>n){var i=new e(Math.max(2*n,t));i.set(r),r=i}},g=n.f||0,w=n.p||0,m=n.b||0,y=n.l,M=n.d,D=n.m,q=n.n,F=8*a;do{if(!y){g=A(t,w,1);var S=A(t,w+1,3);if(w+=3,S)if(1==S)y=x,M=k,D=9,q=5;else if(2==S){var U=A(t,w,31)+257,I=A(t,w+10,15)+4,_=U+A(t,w+5,31)+1;w+=14;for(var H=new e(_),L=new e(19),O=0;O<I;++O)L[h[O]]=A(t,w+3*O,7);w+=3*I;for(var Q=z(L),Y=(1<<Q)-1,Z=b(L,Q,1),O=0;O<_;){var j=Z[A(t,w,Y)];w+=15&j;var B=j>>4;if(B<16)H[O++]=B;else{var G=0,J=0;for(16==B?(J=3+A(t,w,3),w+=2,G=H[O-1]):17==B?(J=3+A(t,w,7),w+=3):18==B&&(J=11+A(t,w,127),w+=7);J--;)H[O++]=G}}var K=H.subarray(0,U),N=H.subarray(U);D=z(K),q=z(N),y=b(K,D,1),M=b(N,q,1)}else C(1);else{var B=((w+7)/8|0)+4,P=t[B-4]|t[B-3]<<8,R=B+P;if(R>a){v&&C(0);break}c&&p(m+P),r.set(t.subarray(B,R),m),n.b=m+=P,n.p=w=8*R,n.f=g;continue}if(w>F){v&&C(0);break}}c&&p(m+131072);for(var V=(1<<D)-1,W=(1<<q)-1,X=w;;X=w){var G=y[E(t,w)&V],$=G>>4;if((w+=15&G)>F){v&&C(0);break}if(G||C(2),$<256)r[m++]=$;else if(256==$){X=w,y=null;break}else{var tt=$-254;if($>264){var O=$-257,tn=o[O];tt=A(t,w,(1<<tn)-1)+l[O],w+=tn}var tr=M[E(t,w)&W],te=tr>>4;tr||C(3),w+=15&tr;var N=d[te];if(te>3){var tn=s[te];N+=E(t,w)&(1<<tn)-1,w+=tn}if(w>F){v&&C(0);break}c&&p(m+131072);var ti=m+tt;if(m<N){var ta=f-N,to=Math.min(N,ti);for(ta+m<0&&C(3);m<to;++m)r[m]=i[ta+m]}for(;m<ti;++m)r[m]=r[m-N]}}n.l=y,n.p=X,n.b=m,n.f=g,y&&(g=1,n.m=D,n.d=M,n.n=q)}while(!g);return m!=r.length&&u?T(r,0,m):r.subarray(0,m)},q=new e(0),F=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-0x12477ce0)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=F[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},U=function(t,n){var r={};for(var e in t)r[e]=t[e];for(var e in n)r[e]=n[e];return r},I=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},_=function(){function t(t,n){"function"==typeof t&&(n=t,t={}),this.ondata=n;var r=t&&t.dictionary&&t.dictionary.subarray(-32768);this.s={i:0,b:r?r.length:0},this.o=new e(32768),this.p=new e(0),r&&this.o.set(r)}return t.prototype.e=function(t){if(this.ondata||C(5),this.d&&C(4),this.p.length){if(t.length){var n=new e(this.p.length+t.length);n.set(this.p),n.set(t,this.p.length),this.p=n}}else this.p=t},t.prototype.c=function(t){this.s.i=+(this.d=t||!1);var n=this.s.b,r=D(this.p,this.s,this.o);this.ondata(T(r,n,this.s.b),this.d),this.o=T(r,this.s.b-32768),this.s.b=this.o.length,this.p=T(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(t,n){this.e(t),this.c(n)},t}(),H="u">typeof TextEncoder&&new TextEncoder,L="u">typeof TextDecoder&&new TextDecoder;try{L.decode(q,{stream:!0})}catch(t){}function O(t,n){if(n){for(var r=new e(t.length),i=0;i<t.length;++i)r[i]=t.charCodeAt(i);return r}if(H)return H.encode(t);for(var a=t.length,o=new e(t.length+(t.length>>1)),s=0,h=function(t){o[s++]=t},i=0;i<a;++i){if(s+5>o.length){var f=new e(s+8+(a-i<<1));f.set(o),o=f}var u=t.charCodeAt(i);u<128||n?h(u):(u<2048?h(192|u>>6):(u>55295&&u<57344?(h(240|(u=65536+(1047552&u)|1023&t.charCodeAt(++i))>>18),h(128|u>>12&63)):h(224|u>>12),h(128|u>>6&63)),h(128|63&u))}return T(o,0,s)}var Q=function(t){var n=0;if(t)for(var r in t){var e=t[r].length;e>65535&&C(9),n+=e+4}return n},Y=function(t,n,r,e,i,a,o,s){var h=e.length,f=r.extra,u=s&&s.length,l=Q(f);I(t,n,null!=o?0x2014b50:0x4034b50),n+=4,null!=o&&(t[n++]=20,t[n++]=r.os),t[n]=20,n+=2,t[n++]=r.flag<<1|(a<0&&8),t[n++]=i&&8,t[n++]=255&r.compression,t[n++]=r.compression>>8;var c=new Date(null==r.mtime?Date.now():r.mtime),v=c.getFullYear()-1980;if((v<0||v>119)&&C(10),I(t,n,v<<25|c.getMonth()+1<<21|c.getDate()<<16|c.getHours()<<11|c.getMinutes()<<5|c.getSeconds()>>1),n+=4,-1!=a&&(I(t,n,r.crc),I(t,n+4,a<0?-a-2:a),I(t,n+8,r.size)),I(t,n+12,h),I(t,n+14,l),n+=16,null!=o&&(I(t,n,u),I(t,n+6,r.attrs),I(t,n+10,o),n+=14),t.set(e,n),n+=h,l)for(var d in f){var p=f[d],g=p.length;I(t,n,+d),I(t,n+2,g),t.set(p,n+4),n+=4+g}return u&&(t.set(s,n),n+=u),n},Z=function(t,n,r,e,i){I(t,n,0x6054b50),I(t,n+8,r),I(t,n+10,r),I(t,n+12,e),I(t,n+16,i)},j=function(){function t(t){this.filename=t,this.c=S(),this.size=0,this.compression=0}return t.prototype.process=function(t,n){this.ondata(null,t,n)},t.prototype.push=function(t,n){this.ondata||C(5),this.c.p(t),this.size+=t.length,n&&(this.crc=this.c.d()),this.process(t,n||!1)},t}(),B=function(){function t(t){this.ondata=t,this.u=[],this.d=1}return t.prototype.add=function(t){var n=this;if(this.ondata||C(5),2&this.d)this.ondata(C(4+(1&this.d)*8,0,1),null,!1);else{var r=O(t.filename),i=r.length,a=t.comment,o=a&&O(a),s=i!=t.filename.length||o&&a.length!=o.length,h=i+Q(t.extra)+30;i>65535&&this.ondata(C(11,0,1),null,!1);var f=new e(h);Y(f,0,t,r,s,-1);var u=[f],l=function(){for(var t=0,r=u;t<r.length;t++){var e=r[t];n.ondata(null,e,!1)}u=[]},c=this.d;this.d=0;var v=this.u.length,d=U(t,{f:r,u:s,o:o,t:function(){t.terminate&&t.terminate()},r:function(){if(l(),c){var t=n.u[v+1];t?t.r():n.d=1}c=1}}),p=0;t.ondata=function(r,i,a){if(r)n.ondata(r,i,a),n.terminate();else if(p+=i.length,u.push(i),a){var o=new e(16);I(o,0,0x8074b50),I(o,4,t.crc),I(o,8,p),I(o,12,t.size),u.push(o),d.c=p,d.b=h+p+16,d.crc=t.crc,d.size=t.size,c&&d.r(),c=1}else c&&l()},this.u.push(d)}},t.prototype.end=function(){var t=this;2&this.d?this.ondata(C(4+(1&this.d)*8,0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&t.d&&(t.u.splice(-1,1),t.e())},t:function(){}}),this.d=3)},t.prototype.e=function(){for(var t=0,n=0,r=0,i=0,a=this.u;i<a.length;i++){var o=a[i];r+=46+o.f.length+Q(o.extra)+(o.o?o.o.length:0)}for(var s=new e(r+22),h=0,f=this.u;h<f.length;h++){var o=f[h];Y(s,t,o,o.f,o.u,-o.c-2,n,o.o),t+=46+o.f.length+Q(o.extra)+(o.o?o.o.length:0),n+=o.b}Z(s,t,this.u.length,r,n),this.ondata(null,s,!0),this.d=2},t.prototype.terminate=function(){for(var t=0,n=this.u;t<n.length;t++)n[t].t();this.d=2},t}();"function"==typeof queueMicrotask&&queueMicrotask}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.rspackChunkchat_demo=self.rspackChunkchat_demo||[]).push([[6152],{1723(e,a,r){r.d(a,{diagram:()=>c});var t=r(3573),n=r(5876),s=r(8755),d=r(9342),i={parse:(0,s.K2)(async e=>{let a=await (0,d.qg)("info",e);s.Rm.debug(a)},"parse")},o={version:t.n.version+""},p=(0,s.K2)(()=>o.version,"getVersion"),c={parser:i,db:{getVersion:p},renderer:{draw:(0,s.K2)((e,a,r)=>{s.Rm.debug("rendering info diagram\n"+e);let t=(0,n.D)(a);(0,s.a$)(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${r}`)},"draw")}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.rspackChunkchat_demo=self.rspackChunkchat_demo||[]).push([[6297],{6048(){var e;e=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i,Prism.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:e}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:e}},punctuation:/[{};]/}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.rspackChunkchat_demo=self.rspackChunkchat_demo||[]).push([[6325],{3780(t,e,a){a.d(e,{diagram:()=>K});var i,r=a(2669);a(6982),a(4543),a(5754),a(9462),a(5939),a(7618),a(5040),a(5695),a(3919);var d=a(3218),n=a(8755),s=a(6040),o=a(815),g=a(7420),l=a(2631),p=(0,n.K2)(t=>t.append("circle").attr("class","start-state").attr("r",(0,n.D7)().state.sizeUnit).attr("cx",(0,n.D7)().state.padding+(0,n.D7)().state.sizeUnit).attr("cy",(0,n.D7)().state.padding+(0,n.D7)().state.sizeUnit),"drawStartState"),h=(0,n.K2)(t=>t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",(0,n.D7)().state.textHeight).attr("class","divider").attr("x2",2*(0,n.D7)().state.textHeight).attr("y1",0).attr("y2",0),"drawDivider"),c=(0,n.K2)((t,e)=>{let a=t.append("text").attr("x",2*(0,n.D7)().state.padding).attr("y",(0,n.D7)().state.textHeight+2*(0,n.D7)().state.padding).attr("font-size",(0,n.D7)().state.fontSize).attr("class","state-title").text(e.id),i=a.node().getBBox();return t.insert("rect",":first-child").attr("x",(0,n.D7)().state.padding).attr("y",(0,n.D7)().state.padding).attr("width",i.width+2*(0,n.D7)().state.padding).attr("height",i.height+2*(0,n.D7)().state.padding).attr("rx",(0,n.D7)().state.radius),a},"drawSimpleState"),x=(0,n.K2)((t,e)=>{let a=(0,n.K2)(function(t,e,a){let i=t.append("tspan").attr("x",2*(0,n.D7)().state.padding).text(e);a||i.attr("dy",(0,n.D7)().state.textHeight)},"addTspan"),i=t.append("text").attr("x",2*(0,n.D7)().state.padding).attr("y",(0,n.D7)().state.textHeight+1.3*(0,n.D7)().state.padding).attr("font-size",(0,n.D7)().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),r=i.height,d=t.append("text").attr("x",(0,n.D7)().state.padding).attr("y",r+.4*(0,n.D7)().state.padding+(0,n.D7)().state.dividerMargin+(0,n.D7)().state.textHeight).attr("class","state-description"),s=!0,o=!0;e.descriptions.forEach(function(t){s||(a(d,t,o),o=!1),s=!1});let g=t.append("line").attr("x1",(0,n.D7)().state.padding).attr("y1",(0,n.D7)().state.padding+r+(0,n.D7)().state.dividerMargin/2).attr("y2",(0,n.D7)().state.padding+r+(0,n.D7)().state.dividerMargin/2).attr("class","descr-divider"),l=d.node().getBBox(),p=Math.max(l.width,i.width);return g.attr("x2",p+3*(0,n.D7)().state.padding),t.insert("rect",":first-child").attr("x",(0,n.D7)().state.padding).attr("y",(0,n.D7)().state.padding).attr("width",p+2*(0,n.D7)().state.padding).attr("height",l.height+r+2*(0,n.D7)().state.padding).attr("rx",(0,n.D7)().state.radius),t},"drawDescrState"),D=(0,n.K2)((t,e,a)=>{let i,r=(0,n.D7)().state.padding,d=2*(0,n.D7)().state.padding,s=t.node().getBBox(),o=s.width,g=s.x,l=t.append("text").attr("x",0).attr("y",(0,n.D7)().state.titleShift).attr("font-size",(0,n.D7)().state.fontSize).attr("class","state-title").text(e.id),p=l.node().getBBox().width+d,h=Math.max(p,o);h===o&&(h+=d);let c=t.node().getBBox();e.doc,i=g-r,p>o&&(i=(o-h)/2+r),Math.abs(g-c.x)<r&&p>o&&(i=g-(p-o)/2);let x=1-(0,n.D7)().state.textHeight;return t.insert("rect",":first-child").attr("x",i).attr("y",x).attr("class",a?"alt-composit":"composit").attr("width",h).attr("height",c.height+(0,n.D7)().state.textHeight+(0,n.D7)().state.titleShift+1).attr("rx","0"),l.attr("x",i+r),p<=o&&l.attr("x",g+(h-d)/2-p/2+r),t.insert("rect",":first-child").attr("x",i).attr("y",(0,n.D7)().state.titleShift-(0,n.D7)().state.textHeight-(0,n.D7)().state.padding).attr("width",h).attr("height",3*(0,n.D7)().state.textHeight).attr("rx",(0,n.D7)().state.radius),t.insert("rect",":first-child").attr("x",i).attr("y",(0,n.D7)().state.titleShift-(0,n.D7)().state.textHeight-(0,n.D7)().state.padding).attr("width",h).attr("height",c.height+3+2*(0,n.D7)().state.textHeight).attr("rx",(0,n.D7)().state.radius),t},"addTitleAndBox"),u=(0,n.K2)(t=>(t.append("circle").attr("class","end-state-outer").attr("r",(0,n.D7)().state.sizeUnit+(0,n.D7)().state.miniPadding).attr("cx",(0,n.D7)().state.padding+(0,n.D7)().state.sizeUnit+(0,n.D7)().state.miniPadding).attr("cy",(0,n.D7)().state.padding+(0,n.D7)().state.sizeUnit+(0,n.D7)().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",(0,n.D7)().state.sizeUnit).attr("cx",(0,n.D7)().state.padding+(0,n.D7)().state.sizeUnit+2).attr("cy",(0,n.D7)().state.padding+(0,n.D7)().state.sizeUnit+2)),"drawEndState"),f=(0,n.K2)((t,e)=>{let a=(0,n.D7)().state.forkWidth,i=(0,n.D7)().state.forkHeight;if(e.parentId){let t=a;a=i,i=t}return t.append("rect").style("stroke","black").style("fill","black").attr("width",a).attr("height",i).attr("x",(0,n.D7)().state.padding).attr("y",(0,n.D7)().state.padding)},"drawForkJoinState"),y=(0,n.K2)((t,e,a,i)=>{let r=0,d=i.append("text");d.style("text-anchor","start"),d.attr("class","noteText");let s=t.replace(/\r\n/g,"<br/>"),o=(s=s.replace(/\n/g,"<br/>")).split(n.Y2.lineBreakRegex),g=1.25*(0,n.D7)().state.noteMargin;for(let t of o){let i=t.trim();if(i.length>0){let t=d.append("tspan");t.text(i),0===g&&(g+=t.node().getBBox().height),r+=g,t.attr("x",e+(0,n.D7)().state.noteMargin),t.attr("y",a+r+1.25*(0,n.D7)().state.noteMargin)}}return{textWidth:d.node().getBBox().width,textHeight:r}},"_drawLongText"),w=(0,n.K2)((t,e)=>{e.attr("class","state-note");let a=e.append("rect").attr("x",0).attr("y",(0,n.D7)().state.padding),{textWidth:i,textHeight:r}=y(t,0,0,e.append("g"));return a.attr("height",r+2*(0,n.D7)().state.noteMargin),a.attr("width",i+2*(0,n.D7)().state.noteMargin),a},"drawNote"),m=(0,n.K2)(function(t,e){let a=e.id,i={id:a,label:e.id,width:0,height:0},r=t.append("g").attr("id",a).attr("class","stateGroup");"start"===e.type&&p(r),"end"===e.type&&u(r),("fork"===e.type||"join"===e.type)&&f(r,e),"note"===e.type&&w(e.note.text,r),"divider"===e.type&&h(r),"default"===e.type&&0===e.descriptions.length&&c(r,e),"default"===e.type&&e.descriptions.length>0&&x(r,e);let d=r.node().getBBox();return i.width=d.width+2*(0,n.D7)().state.padding,i.height=d.height+2*(0,n.D7)().state.padding,i},"drawState"),b=0,B=(0,n.K2)(function(t,e,a){let i=(0,n.K2)(function(t){switch(t){case r.u4.relationType.AGGREGATION:return"aggregation";case r.u4.relationType.EXTENSION:return"extension";case r.u4.relationType.COMPOSITION:return"composition";case r.u4.relationType.DEPENDENCY:return"dependency"}},"getRelationType");e.points=e.points.filter(t=>!Number.isNaN(t.y));let s=e.points,o=(0,l.n8)().x(function(t){return t.x}).y(function(t){return t.y}).curve(l.qr),g=t.append("path").attr("d",o(s)).attr("id","edge"+b).attr("class","transition"),p="";if((0,n.D7)().state.arrowMarkerAbsolute&&(p=(0,n.ID)(!0)),g.attr("marker-end","url("+p+"#"+i(r.u4.relationType.DEPENDENCY)+"End)"),void 0!==a.title){let i=t.append("g").attr("class","stateLabel"),{x:r,y:s}=d._K.calcLabelPosition(e.points),o=n.Y2.getRows(a.title),g=0,l=[],p=0,h=0;for(let t=0;t<=o.length;t++){let e=i.append("text").attr("text-anchor","middle").text(o[t]).attr("x",r).attr("y",s+g),a=e.node().getBBox();p=Math.max(p,a.width),h=Math.min(h,a.x),n.Rm.info(a.x,r,s+g),0===g&&(g=e.node().getBBox().height,n.Rm.info("Title height",g,s)),l.push(e)}let c=g*o.length;if(o.length>1){let t=(o.length-1)*g*.5;l.forEach((e,a)=>e.attr("y",s+a*g-t)),c=g*o.length}let x=i.node().getBBox();i.insert("rect",":first-child").attr("class","box").attr("x",r-p/2-(0,n.D7)().state.padding/2).attr("y",s-c/2-(0,n.D7)().state.padding/2-3.5).attr("width",p+(0,n.D7)().state.padding).attr("height",c+(0,n.D7)().state.padding),n.Rm.info(x)}b++},"drawEdge"),k={},S=(0,n.K2)(function(){},"setConf"),N=(0,n.K2)(function(t){t.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),E=(0,n.K2)(function(t,e,a,r){let d;i=(0,n.D7)().state;let o=(0,n.D7)().securityLevel;"sandbox"===o&&(d=(0,s.Lt)("#i"+e));let g="sandbox"===o?(0,s.Lt)(d.nodes()[0].contentDocument.body):(0,s.Lt)("body"),l="sandbox"===o?d.nodes()[0].contentDocument:document;n.Rm.debug("Rendering diagram "+t);let p=g.select(`[id='${e}']`);N(p),v(r.db.getRootDoc(),p,void 0,!1,g,l,r);let h=i.padding,c=p.node().getBBox(),x=c.width+2*h,D=c.height+2*h;(0,n.a$)(p,D,1.75*x,i.useMaxWidth),p.attr("viewBox",`${c.x-i.padding} ${c.y-i.padding} `+x+" "+D)},"draw"),M=(0,n.K2)(t=>t?t.length*i.fontSizeFactor:1,"getLabelWidth"),v=(0,n.K2)((t,e,a,r,d,s,l)=>{let p,h=new g.T({compound:!0,multigraph:!0}),c=!0;for(p=0;p<t.length;p++)if("relation"===t[p].stmt){c=!1;break}a?h.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:c?1:i.edgeLengthFactor,nodeSep:c?1:50,isMultiGraph:!0}):h.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:c?1:i.edgeLengthFactor,nodeSep:c?1:50,ranker:"tight-tree",isMultiGraph:!0}),h.setDefaultEdgeLabel(function(){return{}});let x=l.db.getStates(),u=l.db.getRelations();for(let t of Object.keys(x)){let n,o=x[t];if(a&&(o.parentId=a),o.doc){let t=e.append("g").attr("id",o.id).attr("class","stateGroup");n=v(o.doc,t,o.id,!r,d,s,l);{let e=(t=D(t,o,r)).node().getBBox();n.width=e.width,n.height=e.height+i.padding/2,k[o.id]={y:i.compositTitleSize}}}else n=m(e,o,h);if(o.note){let t=m(e,{descriptions:[],id:o.id+"-note",note:o.note,type:"note"},h);"left of"===o.note.position?(h.setNode(n.id+"-note",t),h.setNode(n.id,n)):(h.setNode(n.id,n),h.setNode(n.id+"-note",t)),h.setParent(n.id,n.id+"-group"),h.setParent(n.id+"-note",n.id+"-group")}else h.setNode(n.id,n)}n.Rm.debug("Count=",h.nodeCount(),h);let f=0;u.forEach(function(t){f++,n.Rm.debug("Setting edge",t),h.setEdge(t.id1,t.id2,{relation:t,width:M(t.title),height:i.labelHeight*n.Y2.getRows(t.title).length,labelpos:"c"},"id"+f)}),(0,o.Zp)(h),n.Rm.debug("Graph after layout",h.nodes());let y=e.node();h.nodes().forEach(function(t){void 0!==t&&void 0!==h.node(t)?(n.Rm.warn("Node "+t+": "+JSON.stringify(h.node(t))),d.select("#"+y.id+" #"+t).attr("transform","translate("+(h.node(t).x-h.node(t).width/2)+","+(h.node(t).y+(k[t]?k[t].y:0)-h.node(t).height/2)+" )"),d.select("#"+y.id+" #"+t).attr("data-x-shift",h.node(t).x-h.node(t).width/2),s.querySelectorAll("#"+y.id+" #"+t+" .divider").forEach(t=>{let e=t.parentElement,a=0,i=0;e&&(e.parentElement&&(a=e.parentElement.getBBox().width),Number.isNaN(i=parseInt(e.getAttribute("data-x-shift"),10))&&(i=0)),t.setAttribute("x1",0-i+8),t.setAttribute("x2",a-i-8)})):n.Rm.debug("No Node "+t+": "+JSON.stringify(h.node(t)))});let w=y.getBBox();h.edges().forEach(function(t){void 0!==t&&void 0!==h.edge(t)&&(n.Rm.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(h.edge(t))),B(e,h.edge(t),h.edge(t).relation))});let b={id:a||"root",label:a||"root",width:0,height:0};return b.width=(w=y.getBBox()).width+2*i.padding,b.height=w.height+2*i.padding,n.Rm.debug("Doc rendered",b,h),b},"renderDoc"),K={parser:r.Zk,get db(){return new r.u4(1)},renderer:{setConf:S,draw:E},styles:r.tM,init:(0,n.K2)(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.rspackChunkchat_demo=self.rspackChunkchat_demo||[]).push([[6332],{967(e,c,s){s.d(c,{createPacketServices:()=>a.$});var a=s(2012);s(7127)}}]);
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";(self.rspackChunkchat_demo=self.rspackChunkchat_demo||[]).push([[6349],{8940(t,e,n){n.d(e,{diagram:()=>W});var i=n(8755),r=n(6040),s=n(2631),a=n(3614),l=n(8480),o=n(9515),c=function(){var t=(0,i.K2)(function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},"o"),e=[6,8,10,11,12,14,16,17,20,21],n=[1,9],r=[1,10],s=[1,11],a=[1,12],l=[1,13],o=[1,16],c=[1,17],h={trace:(0,i.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:(0,i.K2)(function(t,e,n,i,r,s,a){var l=s.length-1;switch(r){case 1:return s[l-1];case 2:case 6:case 7:this.$=[];break;case 3:s[l-1].push(s[l]),this.$=s[l-1];break;case 4:case 5:this.$=s[l];break;case 8:i.getCommonDb().setDiagramTitle(s[l].substr(6)),this.$=s[l].substr(6);break;case 9:this.$=s[l].trim(),i.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=s[l].trim(),i.getCommonDb().setAccDescription(this.$);break;case 12:i.addSection(s[l].substr(8)),this.$=s[l].substr(8);break;case 15:i.addTask(s[l],0,""),this.$=s[l];break;case 16:i.addEvent(s[l].substr(2)),this.$=s[l]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:r,14:s,16:a,17:l,18:14,19:15,20:o,21:c},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:18,11:n,12:r,14:s,16:a,17:l,18:14,19:15,20:o,21:c},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,19]},{15:[1,20]},t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),t(e,[2,4]),t(e,[2,9]),t(e,[2,10])],defaultActions:{},parseError:(0,i.K2)(function(t,e){if(e.recoverable)this.trace(t);else{var n=Error(t);throw n.hash=e,n}},"parseError"),parse:(0,i.K2)(function(t){var e=this,n=[0],r=[],s=[null],a=[],l=this.table,o="",c=0,h=0,d=0,u=a.slice.call(arguments,1),p=Object.create(this.lexer),g={};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g[y]=this.yy[y]);p.setInput(t,g),g.lexer=p,g.parser=this,void 0===p.yylloc&&(p.yylloc={});var f=p.yylloc;a.push(f);var m=p.options&&p.options.ranges;function x(){var t;return"number"!=typeof(t=r.pop()||p.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.parseError?this.parseError=g.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,i.K2)(function(t){n.length=n.length-2*t,s.length=s.length-t,a.length=a.length-t},"popStack"),(0,i.K2)(x,"lex");for(var _,b,k,v,w,K,S,$,E,I={};;){if(k=n[n.length-1],this.defaultActions[k]?v=this.defaultActions[k]:(null==_&&(_=x()),v=l[k]&&l[k][_]),void 0===v||!v.length||!v[0]){var T="";for(K in E=[],l[k])this.terminals_[K]&&K>2&&E.push("'"+this.terminals_[K]+"'");T=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==_?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:f,expected:E})}if(v[0]instanceof Array&&v.length>1)throw Error("Parse Error: multiple actions possible at state: "+k+", token: "+_);switch(v[0]){case 1:n.push(_),s.push(p.yytext),a.push(p.yylloc),n.push(v[1]),_=null,b?(_=b,b=null):(h=p.yyleng,o=p.yytext,c=p.yylineno,f=p.yylloc,d>0&&d--);break;case 2:if(S=this.productions_[v[1]][1],I.$=s[s.length-S],I._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},m&&(I._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),void 0!==(w=this.performAction.apply(I,[o,h,c,g,v[1],s,a].concat(u))))return w;S&&(n=n.slice(0,-1*S*2),s=s.slice(0,-1*S),a=a.slice(0,-1*S)),n.push(this.productions_[v[1]][0]),s.push(I.$),a.push(I._$),$=l[n[n.length-2]][n[n.length-1]],n.push($);break;case 3:return!0}}return!0},"parse")};function d(){this.yy={}}return h.lexer={EOF:1,parseError:(0,i.K2)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,i.K2)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,i.K2)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,i.K2)(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,i.K2)(function(){return this._more=!0,this},"more"),reject:(0,i.K2)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,i.K2)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,i.K2)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,i.K2)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,i.K2)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,i.K2)(function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack)for(var s in r)this[s]=r[s];return!1},"test_match"),next:(0,i.K2)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,n,i,r=this._currentRules(),s=0;s<r.length;s++)if((n=this._input.match(this.rules[r[s]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[s])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,i.K2)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,i.K2)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,i.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,i.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,i.K2)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,i.K2)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,i.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,i.K2)(function(t,e,n,i){switch(n){case 0:case 1:case 3:case 4:break;case 2:return 10;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}},(0,i.K2)(d,"Parser"),d.prototype=h,h.Parser=d,new d}();c.parser=c;var h={};(0,i.VA)(h,{addEvent:()=>v,addSection:()=>x,addTask:()=>k,addTaskOrg:()=>w,clear:()=>m,default:()=>S,getCommonDb:()=>f,getSections:()=>_,getTasks:()=>b});var d="",u=0,p=[],g=[],y=[],f=(0,i.K2)(()=>i.Wt,"getCommonDb"),m=(0,i.K2)(function(){p.length=0,g.length=0,d="",y.length=0,(0,i.IU)()},"clear"),x=(0,i.K2)(function(t){d=t,p.push(t)},"addSection"),_=(0,i.K2)(function(){return p},"getSections"),b=(0,i.K2)(function(){let t=K(),e=0;for(;!t&&e<100;)t=K(),e++;return g.push(...y),g},"getTasks"),k=(0,i.K2)(function(t,e,n){let i={id:u++,section:d,type:d,task:t,score:e||0,events:n?[n]:[]};y.push(i)},"addTask"),v=(0,i.K2)(function(t){y.find(t=>t.id===u-1).events.push(t)},"addEvent"),w=(0,i.K2)(function(t){let e={section:d,type:d,description:t,task:t,classes:[]};g.push(e)},"addTaskOrg"),K=(0,i.K2)(function(){let t=(0,i.K2)(function(t){return y[t].processed},"compileTask"),e=!0;for(let[n,i]of y.entries())t(n),e=e&&i.processed;return e},"compileTasks"),S={clear:m,getCommonDb:f,addSection:x,getSections:_,getTasks:b,addTask:k,addTaskOrg:w,addEvent:v},$=(0,i.K2)(function(t,e){let n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n},"drawRect"),E=(0,i.K2)(function(t,e){let n=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),r=t.append("g");function a(t){let n=(0,s.JL)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",n).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function l(t){let n=(0,s.JL)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",n).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function o(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return r.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),r.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),(0,i.K2)(a,"smile"),(0,i.K2)(l,"sad"),(0,i.K2)(o,"ambivalent"),e.score>3?a(r):e.score<3?l(r):o(r),n},"drawFace"),I=(0,i.K2)(function(t,e){let n=e.text.replace(/<br\s*\/?>/gi," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),void 0!==e.class&&i.attr("class",e.class);let r=i.append("tspan");return r.attr("x",e.x+2*e.textMargin),r.text(n),i},"drawText"),T=-1,A=(0,i.K2)(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),L=function(){function t(t,e,n,i,s,a,l,o){r(e.append("text").attr("x",n+s/2).attr("y",i+a/2+5).style("font-color",o).style("text-anchor","middle").text(t),l)}function e(t,e,n,i,s,a,l,o,c){let{taskFontSize:h,taskFontFamily:d}=o,u=t.split(/<br\s*\/?>/gi);for(let t=0;t<u.length;t++){let o=t*h-h*(u.length-1)/2,p=e.append("text").attr("x",n+s/2).attr("y",i).attr("fill",c).style("text-anchor","middle").style("font-size",h).style("font-family",d);p.append("tspan").attr("x",n+s/2).attr("dy",o).text(u[t]),p.attr("y",i+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(p,l)}}function n(t,n,i,s,a,l,o,c){let h=n.append("switch"),d=h.append("foreignObject").attr("x",i).attr("y",s).attr("width",a).attr("height",l).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");d.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,h,i,s,a,l,o,c),r(d,o)}function r(t,e){for(let n in e)n in e&&t.attr(n,e[n])}return(0,i.K2)(t,"byText"),(0,i.K2)(e,"byTspan"),(0,i.K2)(n,"byFo"),(0,i.K2)(r,"_setTextAttrs"),function(i){return"fo"===i.textPlacement?n:"old"===i.textPlacement?t:e}}(),R=(0,i.K2)(function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function M(t,e){t.each(function(){var t,n=(0,r.Lt)(this),i=n.text().split(/(\s+|<br>)/).reverse(),s=[],a=n.attr("y"),l=parseFloat(n.attr("dy")),o=n.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",l+"em");for(let r=0;r<i.length;r++)t=i[i.length-1-r],s.push(t),o.text(s.join(" ").trim()),(o.node().getComputedTextLength()>e||"<br>"===t)&&(s.pop(),o.text(s.join(" ").trim()),s="<br>"===t?[""]:[t],o=n.append("tspan").attr("x",0).attr("y",a).attr("dy","1.1em").text(t))})}(0,i.K2)(M,"wrap");var C=(0,i.K2)(function(t,e,n,i){let r=n%12-1,s=t.append("g");e.section=r,s.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+r);let a=s.append("g"),l=s.append("g"),o=l.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(M,e.width).node().getBBox(),c=i.fontSize?.replace?i.fontSize.replace("px",""):i.fontSize;return e.height=o.height+1.1*c*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,l.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),H(a,e,r,i),e},"drawNode"),P=(0,i.K2)(function(t,e,n){let i=t.append("g"),r=i.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(M,e.width).node().getBBox(),s=n.fontSize?.replace?n.fontSize.replace("px",""):n.fontSize;return i.remove(),r.height+1.1*s*.5+e.padding},"getVirtualNodeHeight"),H=(0,i.K2)(function(t,e,n){t.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+e.type).attr("d",`M0 ${e.height-5} v${-e.height+10} q0,-5 5,-5 h${e.width-10} q5,0 5,5 v${e.height-5} H0 Z`),t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},"defaultBkg"),O=(0,i.K2)(function(t,e,n,s){let a,l=(0,i.D7)(),o=l.timeline?.leftMargin??50;i.Rm.debug("timeline",s.db);let c=l.securityLevel;"sandbox"===c&&(a=(0,r.Lt)("#i"+e));let h=("sandbox"===c?(0,r.Lt)(a.nodes()[0].contentDocument.body):(0,r.Lt)("body")).select("#"+e);h.append("g");let d=s.db.getTasks(),u=s.db.getCommonDb().getDiagramTitle();i.Rm.debug("task",d),R(h);let p=s.db.getSections();i.Rm.debug("sections",p);let g=0,y=0,f=0,m=0,x=50+o,_=50;m=50;let b=0,k=!0;p.forEach(function(t){let e=P(h,{number:b,descr:t,section:b,width:150,padding:20,maxHeight:g},l);i.Rm.debug("sectionHeight before draw",e),g=Math.max(g,e+20)});let v=0,w=0;for(let[t,e]of(i.Rm.debug("tasks.length",d.length),d.entries())){let n=P(h,{number:t,descr:e,section:e.section,width:150,padding:20,maxHeight:y},l);i.Rm.debug("taskHeight before draw",n),y=Math.max(y,n+20),v=Math.max(v,e.events.length);let r=0;for(let t of e.events)r+=P(h,{descr:t,section:e.section,number:e.section,width:150,padding:20,maxHeight:50},l);e.events.length>0&&(r+=(e.events.length-1)*10),w=Math.max(w,r)}i.Rm.debug("maxSectionHeight before draw",g),i.Rm.debug("maxTaskHeight before draw",y),p&&p.length>0?p.forEach(t=>{let e=d.filter(e=>e.section===t),n={number:b,descr:t,section:b,width:200*Math.max(e.length,1)-50,padding:20,maxHeight:g};i.Rm.debug("sectionNode",n);let r=h.append("g"),s=C(r,n,b,l);i.Rm.debug("sectionNode output",s),r.attr("transform",`translate(${x}, ${m})`),_+=g+50,e.length>0&&N(h,e,b,x,_,y,l,v,w,g,!1),x+=200*Math.max(e.length,1),_=m,b++}):(k=!1,N(h,d,b,x,_,y,l,v,w,g,!0));let K=h.node().getBBox();i.Rm.debug("bounds",K),u&&h.append("text").text(u).attr("x",K.width/2-o).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),f=k?g+y+150:y+100,h.append("g").attr("class","lineWrapper").append("line").attr("x1",o).attr("y1",f).attr("x2",K.width+3*o).attr("y2",f).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),(0,i.ot)(void 0,h,l.timeline?.padding??50,l.timeline?.useMaxWidth??!1)},"draw"),N=(0,i.K2)(function(t,e,n,r,s,a,l,o,c,h,d){for(let o of e){let e={descr:o.task,section:n,number:n,width:150,padding:20,maxHeight:a};i.Rm.debug("taskNode",e);let h=t.append("g").attr("class","taskWrapper"),u=C(h,e,n,l).height;if(i.Rm.debug("taskHeight after draw",u),h.attr("transform",`translate(${r}, ${s})`),a=Math.max(a,u),o.events){let e=t.append("g").attr("class","lineWrapper");s+=100,D(t,o.events,n,r,s,l),s-=100,e.append("line").attr("x1",r+95).attr("y1",s+a).attr("x2",r+95).attr("y2",s+a+100+c+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}r+=200,d&&!l.timeline?.disableMulticolor&&n++}},"drawTasks"),D=(0,i.K2)(function(t,e,n,r,s,a){let l=0,o=s;for(let o of(s+=100,e)){let e={descr:o,section:n,number:n,width:150,padding:20,maxHeight:50};i.Rm.debug("eventNode",e);let c=t.append("g").attr("class","eventWrapper"),h=C(c,e,n,a).height;l+=h,c.attr("transform",`translate(${r}, ${s})`),s=s+10+h}return s=o,l},"drawEvents"),j={setConf:(0,i.K2)(()=>{},"setConf"),draw:O},z=(0,i.K2)(t=>{let e="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)t["lineColor"+e]=t["lineColor"+e]||t["cScaleInv"+e],(0,a.A)(t["lineColor"+e])?t["lineColor"+e]=(0,l.A)(t["lineColor"+e],20):t["lineColor"+e]=(0,o.A)(t["lineColor"+e],20);for(let n=0;n<t.THEME_COLOR_LIMIT;n++){let i=""+(17-3*n);e+=`
|
|
2
|
+
.section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} path {
|
|
3
|
+
fill: ${t["cScale"+n]};
|
|
4
|
+
}
|
|
5
|
+
.section-${n-1} text {
|
|
6
|
+
fill: ${t["cScaleLabel"+n]};
|
|
7
|
+
}
|
|
8
|
+
.node-icon-${n-1} {
|
|
9
|
+
font-size: 40px;
|
|
10
|
+
color: ${t["cScaleLabel"+n]};
|
|
11
|
+
}
|
|
12
|
+
.section-edge-${n-1}{
|
|
13
|
+
stroke: ${t["cScale"+n]};
|
|
14
|
+
}
|
|
15
|
+
.edge-depth-${n-1}{
|
|
16
|
+
stroke-width: ${i};
|
|
17
|
+
}
|
|
18
|
+
.section-${n-1} line {
|
|
19
|
+
stroke: ${t["cScaleInv"+n]} ;
|
|
20
|
+
stroke-width: 3;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.lineWrapper line{
|
|
24
|
+
stroke: ${t["cScaleLabel"+n]} ;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.disabled, .disabled circle, .disabled text {
|
|
28
|
+
fill: lightgray;
|
|
29
|
+
}
|
|
30
|
+
.disabled text {
|
|
31
|
+
fill: #efefef;
|
|
32
|
+
}
|
|
33
|
+
`}return e},"genSections"),W={db:h,renderer:j,parser:c,styles:(0,i.K2)(t=>`
|
|
34
|
+
.edge {
|
|
35
|
+
stroke-width: 3;
|
|
36
|
+
}
|
|
37
|
+
${z(t)}
|
|
38
|
+
.section-root rect, .section-root path, .section-root circle {
|
|
39
|
+
fill: ${t.git0};
|
|
40
|
+
}
|
|
41
|
+
.section-root text {
|
|
42
|
+
fill: ${t.gitBranchLabel0};
|
|
43
|
+
}
|
|
44
|
+
.icon-container {
|
|
45
|
+
height:100%;
|
|
46
|
+
display: flex;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
align-items: center;
|
|
49
|
+
}
|
|
50
|
+
.edge {
|
|
51
|
+
fill: none;
|
|
52
|
+
}
|
|
53
|
+
.eventWrapper {
|
|
54
|
+
filter: brightness(120%);
|
|
55
|
+
}
|
|
56
|
+
`,"getStyles")}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.rspackChunkchat_demo=self.rspackChunkchat_demo||[]).push([[6389],{6260(){Prism.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},Prism.languages.hs=Prism.languages.haskell}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.rspackChunkchat_demo=self.rspackChunkchat_demo||[]).push([[6443],{7686(){Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec}}]);
|