fika-editor 3.0.2 → 3.0.4

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.
Files changed (159) hide show
  1. package/README.md +8 -0
  2. package/dist/embed/{947.js → 183.js} +25 -31
  3. package/dist/embed/_e2e-statika.json +10909 -0
  4. package/dist/embed/agentic-manifest.json +4 -4
  5. package/dist/embed/chunks/{9121.js → 1091.js} +1 -1
  6. package/dist/embed/chunks/112.js +64 -0
  7. package/dist/embed/chunks/1131.css +1 -1
  8. package/dist/embed/chunks/1131.js +1 -1
  9. package/dist/embed/chunks/{7854.js → 1483.js} +1 -1
  10. package/dist/embed/chunks/1488.js +93 -0
  11. package/dist/embed/chunks/1668.js +1 -1
  12. package/dist/embed/chunks/1742.js +90 -0
  13. package/dist/embed/chunks/190.js +1 -0
  14. package/dist/embed/chunks/2062.js +94 -0
  15. package/dist/embed/chunks/{1904.js → 2214.js} +1 -1
  16. package/dist/embed/chunks/2395.js +1 -0
  17. package/dist/embed/chunks/2595.js +1 -0
  18. package/dist/embed/chunks/{7594.js → 2619.js} +1 -1
  19. package/dist/embed/chunks/2638.js +1 -0
  20. package/dist/embed/chunks/2807.js +1 -1
  21. package/dist/embed/chunks/2853.js +1 -0
  22. package/dist/embed/chunks/2982.js +24 -0
  23. package/dist/embed/chunks/3009.js +1 -0
  24. package/dist/embed/chunks/3017.js +1 -0
  25. package/dist/embed/chunks/3084.js +27 -0
  26. package/dist/embed/chunks/3270.js +62 -0
  27. package/dist/embed/chunks/3275.js +226 -0
  28. package/dist/embed/chunks/3312.js +1 -0
  29. package/dist/embed/chunks/3671.js +1 -0
  30. package/dist/embed/chunks/4000.js +23 -0
  31. package/dist/embed/chunks/4392.js +41 -0
  32. package/dist/embed/chunks/4467.js +1 -1
  33. package/dist/embed/chunks/451.js +32 -0
  34. package/dist/embed/chunks/4630.js +148 -0
  35. package/dist/embed/chunks/4764.js +1 -0
  36. package/dist/embed/chunks/{4552.js → 4779.js} +1 -1
  37. package/dist/embed/chunks/4929.js +215 -0
  38. package/dist/embed/chunks/4936.js +12 -12
  39. package/dist/embed/chunks/4975.js +98 -97
  40. package/dist/embed/chunks/5216.js +1 -1
  41. package/dist/embed/chunks/5250.js +153 -1
  42. package/dist/embed/chunks/529.js +36 -0
  43. package/dist/embed/chunks/5428.js +1 -0
  44. package/dist/embed/chunks/{4619.js → 549.js} +2 -2
  45. package/dist/embed/chunks/5493.js +1 -0
  46. package/dist/embed/chunks/5681.js +1 -0
  47. package/dist/embed/chunks/5863.js +1 -0
  48. package/dist/embed/chunks/612.js +1 -0
  49. package/dist/embed/chunks/6520.js +1 -0
  50. package/dist/embed/chunks/6762.js +1 -0
  51. package/dist/embed/chunks/6771.js +1 -0
  52. package/dist/embed/chunks/7029.js +1 -0
  53. package/dist/embed/chunks/7057.js +1 -0
  54. package/dist/embed/chunks/7091.js +1 -0
  55. package/dist/embed/chunks/718.js +1 -0
  56. package/dist/embed/chunks/7276.js +79 -0
  57. package/dist/embed/chunks/7305.js +115 -0
  58. package/dist/embed/chunks/7463.js +1 -1
  59. package/dist/embed/chunks/7471.js +1 -0
  60. package/dist/embed/chunks/7798.js +1 -0
  61. package/dist/embed/chunks/788.js +29 -19
  62. package/dist/embed/chunks/7946.js +1 -0
  63. package/dist/embed/chunks/{3729.js → 8407.js} +16 -4
  64. package/dist/embed/chunks/8628.js +1 -0
  65. package/dist/embed/chunks/8665.js +1 -0
  66. package/dist/embed/chunks/9009.js +1 -0
  67. package/dist/embed/chunks/9010.js +1 -0
  68. package/dist/embed/chunks/9256.js +8 -0
  69. package/dist/embed/chunks/9464.js +77 -0
  70. package/dist/embed/chunks/9678.js +1 -0
  71. package/dist/embed/chunks/{273.js → 9686.js} +1 -1
  72. package/dist/embed/chunks/9918.js +138 -0
  73. package/dist/embed/fika-embed.css +1 -1
  74. package/dist/embed/fika-embed.js +9 -3
  75. package/dist/types/components/Draggable.d.ts +1 -1
  76. package/dist/types/components/Slider.d.ts +1 -0
  77. package/dist/types/configs/animation.d.ts +1 -1
  78. package/dist/types/configs/transitions.d.ts +28 -0
  79. package/dist/types/embed/agentic/types.d.ts +7 -0
  80. package/dist/types/embed/types.d.ts +8 -0
  81. package/dist/types/i18n/i18n-types.d.ts +202 -34
  82. package/dist/types/paint/rasterResources.d.ts +7 -0
  83. package/dist/types/paint/scheduler.d.ts +17 -0
  84. package/dist/types/paint/slidePainter.d.ts +17 -0
  85. package/dist/types/paint/textPainter.d.ts +31 -0
  86. package/dist/types/store/importConfirm.d.ts +6 -1
  87. package/dist/types/store/index.d.ts +2 -2
  88. package/dist/types/store/slides.d.ts +14 -5
  89. package/dist/types/types/slides.d.ts +3 -2
  90. package/dist/types/utils/elementOutline.d.ts +33 -3
  91. package/dist/types/utils/exportFonts.d.ts +7 -3
  92. package/dist/types/utils/importApply.d.ts +10 -0
  93. package/dist/types/utils/importTransition.d.ts +19 -0
  94. package/dist/types/utils/layerStack.d.ts +24 -0
  95. package/dist/types/utils/liveElementOffset.d.ts +6 -5
  96. package/dist/types/utils/mediaIntern.d.ts +9 -0
  97. package/dist/types/utils/textFit.d.ts +14 -6
  98. package/dist/types/views/Editor/Canvas/LayerStackPanel.d.ts +14 -0
  99. package/dist/types/views/Editor/Toolbar/common/ElementOutline.d.ts +2 -0
  100. package/dist/types/views/components/ThumbnailSlide/CanvasSlideThumb.d.ts +11 -0
  101. package/dist/types/views/components/ThumbnailSlide/index.d.ts +2 -7
  102. package/package.json +21 -17
  103. package/dist/embed/chunks/1169.js +0 -1
  104. package/dist/embed/chunks/1505.js +0 -8
  105. package/dist/embed/chunks/1605.js +0 -1
  106. package/dist/embed/chunks/1804.js +0 -8
  107. package/dist/embed/chunks/1916.js +0 -1
  108. package/dist/embed/chunks/1932.js +0 -1
  109. package/dist/embed/chunks/2143.js +0 -62
  110. package/dist/embed/chunks/2246.js +0 -1
  111. package/dist/embed/chunks/2289.js +0 -80
  112. package/dist/embed/chunks/2632.js +0 -1
  113. package/dist/embed/chunks/2796.js +0 -34
  114. package/dist/embed/chunks/3088.js +0 -1
  115. package/dist/embed/chunks/3443.js +0 -1
  116. package/dist/embed/chunks/3581.js +0 -77
  117. package/dist/embed/chunks/397.js +0 -1
  118. package/dist/embed/chunks/4335.js +0 -1
  119. package/dist/embed/chunks/435.js +0 -1
  120. package/dist/embed/chunks/4354.js +0 -27
  121. package/dist/embed/chunks/4359.js +0 -1
  122. package/dist/embed/chunks/4515.js +0 -1
  123. package/dist/embed/chunks/4607.js +0 -1
  124. package/dist/embed/chunks/4625.js +0 -153
  125. package/dist/embed/chunks/4794.js +0 -1
  126. package/dist/embed/chunks/4891.js +0 -226
  127. package/dist/embed/chunks/5026.js +0 -1
  128. package/dist/embed/chunks/5480.js +0 -1
  129. package/dist/embed/chunks/5659.js +0 -64
  130. package/dist/embed/chunks/5792.js +0 -141
  131. package/dist/embed/chunks/5889.js +0 -1
  132. package/dist/embed/chunks/5901.js +0 -1
  133. package/dist/embed/chunks/6014.js +0 -1
  134. package/dist/embed/chunks/627.js +0 -115
  135. package/dist/embed/chunks/6522.js +0 -1
  136. package/dist/embed/chunks/6567.js +0 -1
  137. package/dist/embed/chunks/6778.js +0 -1
  138. package/dist/embed/chunks/6999.js +0 -93
  139. package/dist/embed/chunks/7048.js +0 -1
  140. package/dist/embed/chunks/7101.js +0 -1
  141. package/dist/embed/chunks/717.js +0 -148
  142. package/dist/embed/chunks/7175.js +0 -90
  143. package/dist/embed/chunks/7311.js +0 -23
  144. package/dist/embed/chunks/7376.js +0 -1
  145. package/dist/embed/chunks/7588.js +0 -41
  146. package/dist/embed/chunks/7916.js +0 -79
  147. package/dist/embed/chunks/809.js +0 -1
  148. package/dist/embed/chunks/810.js +0 -1
  149. package/dist/embed/chunks/8212.js +0 -36
  150. package/dist/embed/chunks/8239.js +0 -1
  151. package/dist/embed/chunks/8620.js +0 -1
  152. package/dist/embed/chunks/8716.js +0 -215
  153. package/dist/embed/chunks/8941.js +0 -1
  154. package/dist/embed/chunks/9465.js +0 -5
  155. package/dist/embed/chunks/9761.js +0 -1
  156. package/dist/embed/chunks/9976.js +0 -1
  157. package/dist/types/views/components/ThumbnailSlide/LiveSlideThumb.d.ts +0 -21
  158. package/dist/types/views/components/ThumbnailSlide/thumbSnapshot.d.ts +0 -54
  159. /package/dist/embed/{947.css → 183.css} +0 -0
@@ -0,0 +1,115 @@
1
+ export const __rspack_esm_id=7305;export const __rspack_esm_ids=[7305];export const __webpack_modules__={91045(t,e,n){var i=n(5637),r=n(24768),a=n(70736),s=n(31293),o=n(86827),l=n(74045),c=n(57418),h=n(78041),d=n(75263),u=function(){var t=(0,o.K)(function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},"o"),e=[6,11,13,14,15,17,19,20,23,24],n=[1,12],i=[1,13],r=[1,14],a=[1,15],s=[1,16],l=[1,19],c=[1,20],h={trace:(0,o.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:(0,o.K)(function(t,e,n,i,r,a,s){var o=a.length-1;switch(r){case 1:return a[o-1];case 3:i.setDirection("LR");break;case 4:i.setDirection("TD");break;case 5:case 9:case 10:this.$=[];break;case 6:a[o-1].push(a[o]),this.$=a[o-1];break;case 7:case 8:this.$=a[o];break;case 11:i.getCommonDb().setDiagramTitle(a[o].substr(6)),this.$=a[o].substr(6);break;case 12:this.$=a[o].trim(),i.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[o].trim(),i.getCommonDb().setAccDescription(this.$);break;case 15:i.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 18:i.addTask(a[o],0,""),this.$=a[o];break;case 19:i.addEvent(a[o].substr(2)),this.$=a[o]}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},t(e,[2,5],{5:6}),t(e,[2,2]),t(e,[2,3]),t(e,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:n,15:i,17:r,19:a,20:s,21:17,22:18,23:l,24:c},t(e,[2,10],{1:[2,1]}),t(e,[2,6]),{12:21,14:n,15:i,17:r,19:a,20:s,21:17,22:18,23:l,24:c},t(e,[2,8]),t(e,[2,9]),t(e,[2,11]),{16:[1,22]},{18:[1,23]},t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,7]),t(e,[2,12]),t(e,[2,13])],defaultActions:{},parseError:(0,o.K)(function(t,e){if(e.recoverable)this.trace(t);else{var n=Error(t);throw n.hash=e,n}},"parseError"),parse:(0,o.K)(function(t){var e=this,n=[0],i=[],r=[null],a=[],s=this.table,l="",c=0,h=0,d=0,u=a.slice.call(arguments,1),p=Object.create(this.lexer),g={};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(g[f]=this.yy[f]);p.setInput(t,g),g.lexer=p,g.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;a.push(y);var m=p.options&&p.options.ranges;function x(){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 g.parseError?this.parseError=g.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,o.K)(function(t){n.length=n.length-2*t,r.length=r.length-t,a.length=a.length-t},"popStack"),(0,o.K)(x,"lex");for(var b,k,_,w,$,v,K,S,E,R={};;){if(_=n[n.length-1],this.defaultActions[_]?w=this.defaultActions[_]:(null==b&&(b=x()),w=s[_]&&s[_][b]),void 0===w||!w.length||!w[0]){var I="";for(v in E=[],s[_])this.terminals_[v]&&v>2&&E.push("'"+this.terminals_[v]+"'");I=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:y,expected:E})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+_+", token: "+b);switch(w[0]){case 1:n.push(b),r.push(p.yytext),a.push(p.yylloc),n.push(w[1]),b=null,k?(b=k,k=null):(h=p.yyleng,l=p.yytext,c=p.yylineno,y=p.yylloc,d>0&&d--);break;case 2:if(K=this.productions_[w[1]][1],R.$=r[r.length-K],R._$={first_line:a[a.length-(K||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(K||1)].first_column,last_column:a[a.length-1].last_column},m&&(R._$.range=[a[a.length-(K||1)].range[0],a[a.length-1].range[1]]),void 0!==($=this.performAction.apply(R,[l,h,c,g,w[1],r,a].concat(u))))return $;K&&(n=n.slice(0,-1*K*2),r=r.slice(0,-1*K),a=a.slice(0,-1*K)),n.push(this.productions_[w[1]][0]),r.push(R.$),a.push(R._$),S=s[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0},"parse")};function d(){this.yy={}}return h.lexer={EOF:1,parseError:(0,o.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,o.K)(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,o.K)(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,o.K)(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,o.K)(function(){return this._more=!0,this},"more"),reject:(0,o.K)(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,o.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,o.K)(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,o.K)(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,o.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,o.K)(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 a in r)this[a]=r[a];return!1},"test_match"),next:(0,o.K)(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(),a=0;a<r.length;a++)if((n=this._input.match(this.rules[r[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))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,o.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,o.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,o.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,o.K)(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,o.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,o.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,o.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,o.K)(function(t,e,n,i){switch(n){case 0:case 1:case 3:case 4:break;case 2:return 13;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;case 10:return this.popState(),"acc_title_value";case 11:return this.begin("acc_descr"),17;case 12:return this.popState(),"acc_descr_value";case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/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:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}},(0,o.K)(d,"Parser"),d.prototype=h,h.Parser=d,new d}();u.parser=u;var p={};(0,o.V)(p,{addEvent:()=>R,addSection:()=>v,addTask:()=>E,addTaskOrg:()=>I,clear:()=>_,default:()=>M,getCommonDb:()=>k,getDirection:()=>$,getSections:()=>K,getTasks:()=>S,setDirection:()=>w});var g="",f=0,y="LR",m=[],x=[],b=[],k=(0,o.K)(()=>a.Wt,"getCommonDb"),_=(0,o.K)(function(){m.length=0,x.length=0,g="",b.length=0,y="LR",(0,a.IU)()},"clear"),w=(0,o.K)(function(t){y=t},"setDirection"),$=(0,o.K)(function(){return y},"getDirection"),v=(0,o.K)(function(t){g=t,m.push(t)},"addSection"),K=(0,o.K)(function(){return m},"getSections"),S=(0,o.K)(function(){let t=T(),e=0;for(;!t&&e<100;)t=T(),e++;return x.push(...b),x},"getTasks"),E=(0,o.K)(function(t,e,n){let i={id:f++,section:g,type:g,task:t,score:e||0,events:n?[n]:[]};b.push(i)},"addTask"),R=(0,o.K)(function(t){b.find(t=>t.id===f-1).events.push(t)},"addEvent"),I=(0,o.K)(function(t){let e={section:g,type:g,description:t,task:t,classes:[]};x.push(e)},"addTaskOrg"),T=(0,o.K)(function(){let t=(0,o.K)(function(t){return b[t].processed},"compileTask"),e=!0;for(let[n,i]of b.entries())t(n),e=e&&i.processed;return e},"compileTasks"),M={clear:_,getCommonDb:k,getDirection:$,setDirection:w,addSection:v,getSections:K,getTasks:S,addTask:E,addTaskOrg:I,addEvent:R},L=0,C=(0,o.K)(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"),H=(0,o.K)(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"),i=t.append("g");function r(t){let n=(0,l.JLW)().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 a(t){let n=(0,l.JLW)().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 s(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 i.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"),i.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,o.K)(r,"smile"),(0,o.K)(a,"sad"),(0,o.K)(s,"ambivalent"),e.score>3?r(i):e.score<3?a(i):s(i),n},"drawFace"),D=(0,o.K)(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"),A=-1,O=(0,o.K)(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),B=function(){function t(t,e,n,r,a,s,o,l){i(e.append("text").attr("x",n+a/2).attr("y",r+s/2+5).style("font-color",l).style("text-anchor","middle").text(t),o)}function e(t,e,n,r,a,s,o,l,c){let{taskFontSize:h,taskFontFamily:d}=l,u=t.split(/<br\s*\/?>/gi);for(let t=0;t<u.length;t++){let l=t*h-h*(u.length-1)/2,p=e.append("text").attr("x",n+a/2).attr("y",r).attr("fill",c).style("text-anchor","middle").style("font-size",h).style("font-family",d);p.append("tspan").attr("x",n+a/2).attr("dy",l).text(u[t]),p.attr("y",r+s/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(p,o)}}function n(t,n,r,a,s,o,l,c){let h=n.append("switch"),d=h.append("foreignObject").attr("x",r).attr("y",a).attr("width",s).attr("height",o).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,r,a,s,o,l,c),i(d,l)}function i(t,e){for(let n in e)n in e&&t.attr(n,e[n])}return(0,o.K)(t,"byText"),(0,o.K)(e,"byTspan"),(0,o.K)(n,"byFo"),(0,o.K)(i,"_setTextAttrs"),function(i){return"fo"===i.textPlacement?n:"old"===i.textPlacement?t:e}}(),W=(0,o.K)(function(t,e){L=0,A=-1,t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function P(t,e){t.each(function(){var t,n=(0,l.Ltv)(this),i=n.text().split(/(\s+|<br>)/).reverse(),r=[],a=n.attr("y"),s=parseFloat(n.attr("dy")),o=n.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",s+"em");for(let s=0;s<i.length;s++)t=i[i.length-1-s],r.push(t),o.text(r.join(" ").trim()),(o.node().getComputedTextLength()>e||"<br>"===t)&&(r.pop(),o.text(r.join(" ").trim()),r="<br>"===t?[""]:[t],o=n.append("tspan").attr("x",0).attr("y",a).attr("dy","1.1em").text(t))})}(0,o.K)(P,"wrap");var N=(0,o.K)(function(t,e,n,i,r,a=!1){let{theme:s,look:o}=i,c=s?.includes("redux"),h=n%(i?.themeVariables?.THEME_COLOR_LIMIT??12)-1,d=t.append("g");e.section=h,d.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+h);let u=d.append("g"),p=d.append("g"),g=p.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(P,e.width).node().getBBox(),f=i.fontSize?.replace?i.fontSize.replace("px",""):i.fontSize;if(e.height=g.height+1.1*f*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,p.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),c&&p.attr("transform",`translate(${e.width/2}, ${a?e.padding/2+3:e.padding})`),j(u,e,h,r,i),"neo"===o&&(d.attr("data-look","neo"),c)){let e=s.includes("dark"),n=t.node()?.ownerSVGElement??t.node(),i=(0,l.Ltv)(n),r=i.attr("id")??"",a=r?`${r}-drop-shadow`:"drop-shadow";if(i.select(`#${a}`).empty()){let t=i.select("defs");(t.empty()?i.append("defs"):t).append("filter").attr("id",a).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",e?"0.2":"0.06").attr("flood-color",e?"#FFFFFF":"#000000")}}return e},"drawNode"),z=(0,o.K)(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(P,e.width).node().getBBox(),a=n.fontSize?.replace?n.fontSize.replace("px",""):n.fontSize;return i.remove(),r.height+1.1*a*.5+e.padding},"getVirtualNodeHeight"),j=(0,o.K)(function(t,e,n,i,r){let{theme:a}=r,s=5*!a?.includes("redux"),o=s>0?`M0 ${e.height-5} v${-e.height+10} q0,-${s},${s},-${s} h${e.width-10} q${s},0,${s},${s} v${e.height-5} H0 Z`:`M0 ${e.height-5} v${-(e.height-5)} h${e.width} v${e.height} H0 Z`;t.append("path").attr("id",i+"-node-"+L++).attr("class","node-bkg node-"+e.type).attr("d",o),a?.includes("redux")||t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},"defaultBkg"),F=(0,o.K)(function(t,e,n,i){let r,o=(0,a.D7)(),{look:c,theme:h,themeVariables:d}=o,{useGradient:u,gradientStart:p,gradientStop:g}=d,f=o.timeline?.leftMargin??50;s.R.debug("timeline",i.db);let y=o.securityLevel;"sandbox"===y&&(r=(0,l.Ltv)("#i"+e));let m=("sandbox"===y?(0,l.Ltv)(r.nodes()[0].contentDocument.body):(0,l.Ltv)("body")).select("#"+e);m.append("g");let x=i.db.getTasks(),b=i.db.getCommonDb().getDiagramTitle();s.R.debug("task",x),W(m,e);let k=i.db.getSections();s.R.debug("sections",k);let _=0,w=0,$=0,v=0,K=50+f,S=50;v=50;let E=0,R=!0;k.forEach(function(t){let e=z(m,{number:E,descr:t,section:E,width:150,padding:20,maxHeight:_},o);s.R.debug("sectionHeight before draw",e),_=Math.max(_,e+20)});let I=0,T=0;for(let[t,e]of(s.R.debug("tasks.length",x.length),x.entries())){let n=z(m,{number:t,descr:e,section:e.section,width:150,padding:20,maxHeight:w},o);s.R.debug("taskHeight before draw",n),w=Math.max(w,n+20),I=Math.max(I,e.events.length);let i=0;for(let t of e.events)i+=z(m,{descr:t,section:e.section,number:e.section,width:150,padding:20,maxHeight:50},o);e.events.length>0&&(i+=(e.events.length-1)*10),T=Math.max(T,i)}s.R.debug("maxSectionHeight before draw",_),s.R.debug("maxTaskHeight before draw",w),k&&k.length>0?k.forEach(t=>{let n=x.filter(e=>e.section===t),i={number:E,descr:t,section:E,width:200*Math.max(n.length,1)-50,padding:20,maxHeight:_};s.R.debug("sectionNode",i);let r=m.append("g"),a=N(r,i,E,o,e);s.R.debug("sectionNode output",a),r.attr("transform",`translate(${K}, ${v})`),S+=_+50,n.length>0&&V(m,n,E,K,S,w,o,I,T,_,!1,e),K+=200*Math.max(n.length,1),S=v,E++}):(R=!1,V(m,x,E,K,S,w,o,I,T,_,!0,e));let M=m.node().getBBox();if(s.R.debug("bounds",M),b&&m.append("text").text(b).attr("x","neo"===c?2*M.x+f:M.width/2-f).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),$=R?_+w+150:w+100,m.append("g").attr("class","lineWrapper").append("line").attr("x1",f).attr("y1",$).attr("x2",M.width+3*f).attr("y2",$).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${e}-arrowhead)`),"neo"===c&&u&&"neutral"!==h){let t=m.select("defs"),e=(t.empty()?m.append("defs"):t).append("linearGradient").attr("id",m.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.append("stop").attr("offset","0%").attr("stop-color",p).attr("stop-opacity",1),e.append("stop").attr("offset","100%").attr("stop-color",g).attr("stop-opacity",1)}(0,a.ot)(void 0,m,o.timeline?.padding??50,o.timeline?.useMaxWidth??!1)},"draw"),V=(0,o.K)(function(t,e,n,i,r,a,o,l,c,h,d,u){for(let l of e){let e={descr:l.task,section:n,number:n,width:150,padding:20,maxHeight:a};s.R.debug("taskNode",e);let h=t.append("g").attr("class","taskWrapper"),p=N(h,e,n,o,u).height;if(s.R.debug("taskHeight after draw",p),h.attr("transform",`translate(${i}, ${r})`),a=Math.max(a,p),l.events){let e=t.append("g").attr("class","lineWrapper");r+=100,G(t,l.events,n,i,r,o,u),r-=100,e.append("line").attr("x1",i+95).attr("y1",r+a).attr("x2",i+95).attr("y2",r+a+100+c+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${u}-arrowhead)`).attr("stroke-dasharray","5,5")}i+=200,d&&!o.timeline?.disableMulticolor&&n++}},"drawTasks"),G=(0,o.K)(function(t,e,n,i,r,a,o){let l=0,c=r;for(let c of(r+=100,e)){let e={descr:c,section:n,number:n,width:150,padding:20,maxHeight:50};s.R.debug("eventNode",e);let h=t.append("g").attr("class","eventWrapper"),d=N(h,e,n,a,o,!0).height;l+=d,h.attr("transform",`translate(${i}, ${r})`),r=r+10+d}return r=c,l},"drawEvents"),U={setConf:(0,o.K)(()=>{},"setConf"),draw:F},Z=(0,o.K)(function(t,e,n,o){let l=(0,a.D7)(),c=l.timeline?.leftMargin??50;s.R.debug("timeline",o.db);let h=(0,i.D)(e);h.append("g");let d=o.db.getTasks(),u=o.db.getCommonDb().getDiagramTitle();s.R.debug("task",d),W(h);let p=o.db.getSections();s.R.debug("sections",p);let g=0,f=0,y=50,m=230,x=0,b=p&&p.length>0,k=50+c+m,_=Math.max(50,m+360-10);p.forEach(function(t){let e=z(h,{number:x,descr:t,section:x,width:_,padding:5,maxHeight:g},l);s.R.debug("sectionHeight before draw",e),g=Math.max(g,e)});let w=0;for(let[t,e]of(s.R.debug("tasks.length",d.length),d.entries())){let n=z(h,{number:t,descr:e,section:e.section,width:200,padding:5,maxHeight:f},l);s.R.debug("taskHeight before draw",n),f=Math.max(f,n);let i=0;for(let t of e.events)i+=z(h,{descr:t,section:e.section,number:e.section,width:300,padding:5,maxHeight:50},l);e.events.length>0&&(i+=(e.events.length-1)*10),w=Math.max(w,i)+0}s.R.debug("maxSectionHeight before draw",g),s.R.debug("maxTaskHeight before draw",f);let $=Math.max(f,w)+30;b?p.forEach(t=>{let e=d.filter(e=>e.section===t),n={number:x,descr:t,section:x,width:_,padding:5,maxHeight:g};s.R.debug("sectionNode",n);let i=h.append("g"),r=N(i,n,x,l);s.R.debug("sectionNode output",r);let a=k-m;i.attr("transform",`translate(${a}, ${y})`);let o=y+r.height+20;e.length>0&&q(h,e,x,k,o,f,l,$,!1);let c=e.length,u=r.height+20+$*Math.max(c,1)-60*(c>0);y+=u,x++}):q(h,d,x,k,y,f,l,$,!0);let v=h.node()?.getBBox();if(!v)throw Error("bbox not found");if(s.R.debug("bounds",v),u){if(h.append("text").text(u).attr("x",v.width/2-c).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),!(v=h.node()?.getBBox()))throw Error("bbox not found");s.R.debug("bounds after title",v)}let[K]=(0,r.I5)(l.fontSize),S=h.append("g").attr("class","lineWrapper");S.append("line").attr("x1",k).attr("y1",50-(K??16)*2).attr("x2",k).attr("y2",v.y+v.height+((K??16)*.5+20)).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),S.lower(),(0,a.ot)(void 0,h,l.timeline?.padding??50,l.timeline?.useMaxWidth??!1)},"draw"),q=(0,o.K)(function(t,e,n,i,r,a,o,l,c){for(let h of e){let e={descr:h.task,section:n,number:n,width:200,padding:5,maxHeight:a};s.R.debug("taskNode",e);let d=t.append("g").attr("class","taskWrapper"),u=N(d,e,n,o),p=u.height;s.R.debug("taskHeight after draw",p);let g=i-20-u.width;if(d.attr("transform",`translate(${g}, ${r})`),a=Math.max(a,p),h.events&&h.events.length>0){let e=r,a=i+50;J(t,h.events,n,i,a,e,o)}r+=l,c&&!o.timeline?.disableMulticolor&&n++}},"drawTasks"),J=(0,o.K)(function(t,e,n,i,r,a,o){let l=a;for(let a of e){let e={descr:a,section:n,number:n,width:300,padding:5,maxHeight:0};s.R.debug("eventNode",e);let c=t.append("g").attr("class","eventWrapper"),h=N(c,e,n,o).height;c.attr("transform",`translate(${r}, ${l})`);let d=t.append("g").attr("class","lineWrapper"),u=l+h/2;d.append("line").attr("x1",i).attr("y1",u).attr("x2",r).attr("y2",u).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),l=l+h+10}return l-a},"drawEvents"),Y={setConf:(0,o.K)(()=>{},"setConf"),draw:Z},X=(0,o.K)(t=>{let{theme:e}=(0,a.zj)(),n=e?.includes("dark"),i=e?.includes("color"),r=t.svgId?.replace(/^#/,"")??"",s=r?`url(#${r}-drop-shadow)`:t.dropShadow??"none",o="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++){let r=`${17-3*e}`,a=i?t.borderColorArray[e]:t.mainBkg,l=i?t.borderColorArray[e]:t.nodeBorder;o+=`
2
+ .section-${e-1} rect,
3
+ .section-${e-1} path,
4
+ .section-${e-1} circle {
5
+ fill: ${n&&i?t.mainBkg:a};
6
+ stroke: ${l};
7
+ stroke-width: ${t.strokeWidth};
8
+ filter: ${s};
9
+ }
10
+
11
+ .section-${e-1} text {
12
+ fill: ${t.nodeBorder};
13
+ font-weight: ${t.fontWeight}
14
+ }
15
+
16
+ .node-icon-${e-1} {
17
+ font-size: 40px;
18
+ color: ${t["cScaleLabel"+e]};
19
+ }
20
+
21
+ .section-edge-${e-1} {
22
+ stroke: ${t["cScale"+e]};
23
+ }
24
+
25
+ .edge-depth-${e-1} {
26
+ stroke-width: ${r};
27
+ }
28
+
29
+ .section-${e-1} line {
30
+ stroke: ${t["cScaleInv"+e]};
31
+ stroke-width: 3;
32
+ }
33
+
34
+ .lineWrapper line {
35
+ stroke: ${t.nodeBorder};
36
+ stroke-width:${t.strokeWidth}
37
+ }
38
+
39
+ .disabled,
40
+ .disabled circle,
41
+ .disabled text {
42
+ fill: ${t.tertiaryColor??"lightgray"};
43
+ }
44
+
45
+ .disabled text {
46
+ fill: ${t.clusterBorder??"#efefef"};
47
+ }
48
+ `}return o},"genReduxSections"),Q=(0,o.K)(t=>{let e="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)t["lineColor"+e]=t["lineColor"+e]||t["cScaleInv"+e],(0,c.A)(t["lineColor"+e])?t["lineColor"+e]=(0,h.A)(t["lineColor"+e],20):t["lineColor"+e]=(0,d.A)(t["lineColor"+e],20);for(let n=0;n<t.THEME_COLOR_LIMIT;n++){let i=""+(17-3*n);e+=`
49
+ .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} path {
50
+ fill: ${t["cScale"+n]};
51
+ }
52
+ .section-${n-1} text {
53
+ fill: ${t["cScaleLabel"+n]};
54
+ }
55
+ .node-icon-${n-1} {
56
+ font-size: 40px;
57
+ color: ${t["cScaleLabel"+n]};
58
+ }
59
+ .section-edge-${n-1}{
60
+ stroke: ${t["cScale"+n]};
61
+ }
62
+ .edge-depth-${n-1}{
63
+ stroke-width: ${i};
64
+ }
65
+ .section-${n-1} line {
66
+ stroke: ${t["cScaleInv"+n]} ;
67
+ stroke-width: 3;
68
+ }
69
+
70
+ .lineWrapper line{
71
+ stroke: ${t["cScaleLabel"+n]} ;
72
+ }
73
+
74
+ .disabled, .disabled circle, .disabled text {
75
+ fill: ${t.tertiaryColor??"lightgray"};
76
+ }
77
+ .disabled text {
78
+ fill: ${t.clusterBorder??"#efefef"};
79
+ }
80
+ `}return e},"genSections"),tt=(0,o.K)(t=>{let{theme:e}=(0,a.zj)(),n=e?.includes("redux"),i="neutral"===e,r=t.svgId?.replace(/^#/,"")??"",s="";if(t.useGradient&&r&&t.THEME_COLOR_LIMIT&&!i)for(let e=0;e<t.THEME_COLOR_LIMIT;e++)s+=`
81
+ .section-${e-1}[data-look="neo"] rect,
82
+ .section-${e-1}[data-look="neo"] path,
83
+ .section-${e-1}[data-look="neo"] circle {
84
+ fill: ${t.mainBkg};
85
+ stroke: url(#${r}-gradient);
86
+ stroke-width: 2;
87
+ }
88
+ .section-${e-1}[data-look="neo"] line {
89
+ stroke: url(#${r}-gradient);
90
+ stroke-width: 2;
91
+ }`;return`
92
+ .edge {
93
+ stroke-width: 3;
94
+ }
95
+ ${n?X(t):Q(t)}
96
+ ${s}
97
+ .section-root rect, .section-root path, .section-root circle {
98
+ fill: ${t.git0};
99
+ }
100
+ .section-root text {
101
+ fill: ${t.gitBranchLabel0};
102
+ }
103
+ .icon-container {
104
+ height:100%;
105
+ display: flex;
106
+ justify-content: center;
107
+ align-items: center;
108
+ }
109
+ .edge {
110
+ fill: none;
111
+ }
112
+ .eventWrapper {
113
+ filter: brightness(120%);
114
+ }
115
+ `},"getStyles"),te={db:p,renderer:{setConf:(0,o.K)(()=>{},"setConf"),draw:(0,o.K)((t,e,n,i)=>"TD"===(i?.db?.getDirection?.()??"LR")?Y.draw(t,e,n,i):U.draw(t,e,n,i),"draw")},parser:u,styles:tt};n.d(e,{diagram:()=>te})}};
@@ -1 +1 @@
1
- export const __rspack_esm_id=7463;export const __rspack_esm_ids=[7463];export const __webpack_modules__={99418(e,t,n){function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.r(t);let o=Object.entries,a=Object.setPrototypeOf,i=Object.isFrozen,l=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor,u=Object.freeze,s=Object.seal,f=Object.create,p="u">typeof Reflect&&Reflect,m=p.apply,d=p.construct;u||(u=function(e){return e}),s||(s=function(e){return e}),m||(m=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),d||(d=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});let h=M(Array.prototype.forEach),g=M(Array.prototype.lastIndexOf),y=M(Array.prototype.pop),T=M(Array.prototype.push),b=M(Array.prototype.splice),_=Array.isArray,S=M(String.prototype.toLowerCase),E=M(String.prototype.toString),A=M(String.prototype.match),N=M(String.prototype.replace),w=M(String.prototype.indexOf),O=M(String.prototype.trim),v=M(Number.prototype.toString),D=M(Boolean.prototype.toString),R="u"<typeof BigInt?null:M(BigInt.prototype.toString),k="u"<typeof Symbol?null:M(Symbol.prototype.toString),C=M(Object.prototype.hasOwnProperty),I=M(Object.prototype.toString),x=M(RegExp.prototype.test),L=(em=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(em,t)});function M(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return m(e,t,r)}}function P(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;if(a&&a(e,null),!_(t))return e;let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){let e=n(o);e!==o&&(i(t)||(t[r]=e),o=e)}e[o]=!0}return e}function z(e){let t=f(null);for(let a of o(e)){var n=function(e){if(Array.isArray(e))return e}(a)||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o,a,i=[],l=!0,c=!1;try{o=(t=t.call(e)).next,!1;for(;!(l=(n=o.call(t)).done)&&(i.push(n.value),2!==i.length);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw r}}return i}}(a)||function(e){if(e){if("string"==typeof e)return r(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?r(e,2):void 0}}(a)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let o=n[0],i=n[1];C(e,o)&&(_(i)?t[o]=function(e){for(let t=0;t<e.length;t++)C(e,t)||(e[t]=null);return e}(i):i&&"object"==typeof i&&i.constructor===Object?t[o]=z(i):t[o]=i)}return t}function U(e,t){for(;null!==e;){let n=c(e,t);if(n){if(n.get)return M(n.get);if("function"==typeof n.value)return M(n.value)}e=l(e)}return function(){return null}}let F=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),H=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),j=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B=u(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),G=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),W=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Y=u(["#text"]),q=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),X=u(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$=u(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),K=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=s(/{{[\w\W]*|^[\w\W]*}}/g),Z=s(/<%[\w\W]*|^[\w\W]*%>/g),J=s(/\${[\w\W]*/g),Q=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),ee=s(/^aria-[\-\w]+$/),et=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),en=s(/^(?:\w+script|data):/i),er=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eo=s(/^html$/i),ea=s(/^[a-z][.\w]*(-[.\w]+)+$/i),ei=s(/<[/\w!]/g),el=s(/<[/\w]/g),ec=s(/<\/no(script|embed|frames)/i),eu=s(/\/>/i),es=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}},ef=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ep=function(e,t,n,r){return C(e,t)&&_(e[t])?P(r.base?z(r.base):{},e[t],r.transform):n};var em,ed=function e(){let t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"<typeof window?null:window,a=t=>e(t);if(a.version="3.4.13",a.removed=[],!r||!r.document||9!==r.document.nodeType||!r.Element)return a.isSupported=!1,a;let i=r.document,l=i,c=l.currentScript;r.DocumentFragment;let p=r.HTMLTemplateElement,m=r.Node,d=r.Element,M=r.NodeFilter;void 0===r.NamedNodeMap&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;let em=r.DOMParser,ed=r.trustedTypes,eh=d.prototype,eg=U(eh,"cloneNode"),ey=U(eh,"remove"),eT=U(eh,"nextSibling"),eb=U(eh,"childNodes"),e_=U(eh,"parentNode"),eS=U(eh,"shadowRoot"),eE=U(eh,"attributes"),eA=m&&m.prototype?U(m.prototype,"nodeType"):null,eN=m&&m.prototype?U(m.prototype,"nodeName"):null,ew=m&&m.prototype?U(m.prototype,"ownerDocument"):null;if("function"==typeof p){let e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let eO="",ev=!1,eD=0,eR=function(){if(eD>0)throw L('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},ek=function(e){eR(),eD++;try{return t.createHTML(e)}finally{eD--}},eC=function(e){eR(),eD++;try{return t.createScriptURL(e)}finally{eD--}},eI=i,ex=eI.implementation,eL=eI.createNodeIterator,eM=eI.createDocumentFragment,eP=eI.getElementsByTagName,ez=l.importNode,eU=ef();a.isSupported="function"==typeof o&&"function"==typeof e_&&ex&&void 0!==ex.createHTMLDocument;let eF=et,eH=null,ej=P({},[...F,...H,...j,...G,...Y]),eB=null,eG=P({},[...q,...X,...$,...K]),eW=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eY=null,eq=null,eX=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),e$=!0,eK=!0,eV=!1,eZ=!0,eJ=!1,eQ=!0,e0=!1,e1=!1,e2=null,e3=null,e9=!1,e8=!1,e4=!1,e6=!1,e7=!0,e5=!1,te="user-content-",tt=!0,tn=!1,tr={},to=null,ta=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),ti=null,tl=P({},["audio","video","img","source","image","track"]),tc=null,tu=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ts="http://www.w3.org/1998/Math/MathML",tf="http://www.w3.org/2000/svg",tp="http://www.w3.org/1999/xhtml",tm=tp,td=!1,th=null,tg=P({},[ts,tf,tp],E),ty=u(["mi","mo","mn","ms","mtext"]),tT=P({},ty),tb=u(["annotation-xml"]),t_=P({},tb),tS=P({},["title","style","font","a","script"]),tE=null,tA=["application/xhtml+xml","text/html"],tN=null,tw=null,tO=i.createElement("form"),tv=function(e){return e instanceof RegExp||e instanceof Function},tD=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(tw&&tw===e)return;e&&"object"==typeof e||(e={}),e=z(e),tN="application/xhtml+xml"===(tE=-1===tA.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?E:S,eH=ep(e,"ALLOWED_TAGS",ej,{transform:tN}),eB=ep(e,"ALLOWED_ATTR",eG,{transform:tN}),th=ep(e,"ALLOWED_NAMESPACES",tg,{transform:E}),tc=ep(e,"ADD_URI_SAFE_ATTR",tu,{transform:tN,base:tu}),ti=ep(e,"ADD_DATA_URI_TAGS",tl,{transform:tN,base:tl}),to=ep(e,"FORBID_CONTENTS",ta,{transform:tN}),eY=ep(e,"FORBID_TAGS",z({}),{transform:tN}),eq=ep(e,"FORBID_ATTR",z({}),{transform:tN}),tr=!!C(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?z(e.USE_PROFILES):e.USE_PROFILES),e$=!1!==e.ALLOW_ARIA_ATTR,eK=!1!==e.ALLOW_DATA_ATTR,eV=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eZ=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eJ=e.SAFE_FOR_TEMPLATES||!1,eQ=!1!==e.SAFE_FOR_XML,e0=e.WHOLE_DOCUMENT||!1,e8=e.RETURN_DOM||!1,e4=e.RETURN_DOM_FRAGMENT||!1,e6=e.RETURN_TRUSTED_TYPE||!1,e9=e.FORCE_BODY||!1,e7=!1!==e.SANITIZE_DOM,e5=e.SANITIZE_NAMED_PROPS||!1,tt=!1!==e.KEEP_CONTENT,tn=e.IN_PLACE||!1,eF=!function(e){try{return x(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?et:e.ALLOWED_URI_REGEXP,tm="string"==typeof e.NAMESPACE?e.NAMESPACE:tp,tT=C(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?z(e.MATHML_TEXT_INTEGRATION_POINTS):P({},ty),t_=C(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?z(e.HTML_INTEGRATION_POINTS):P({},tb);let r=C(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?z(e.CUSTOM_ELEMENT_HANDLING):f(null);if(eW=f(null),C(r,"tagNameCheck")&&tv(r.tagNameCheck)&&(eW.tagNameCheck=r.tagNameCheck),C(r,"attributeNameCheck")&&tv(r.attributeNameCheck)&&(eW.attributeNameCheck=r.attributeNameCheck),C(r,"allowCustomizedBuiltInElements")&&"boolean"==typeof r.allowCustomizedBuiltInElements&&(eW.allowCustomizedBuiltInElements=r.allowCustomizedBuiltInElements),s(eW),eJ&&(eK=!1),e4&&(e8=!0),tr&&(eH=P({},Y),eB=f(null),!0===tr.html&&(P(eH,F),P(eB,q)),!0===tr.svg&&(P(eH,H),P(eB,X),P(eB,K)),!0===tr.svgFilters&&(P(eH,j),P(eB,X),P(eB,K)),!0===tr.mathMl&&(P(eH,G),P(eB,$),P(eB,K))),eX.tagCheck=null,eX.attributeCheck=null,C(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?eX.tagCheck=e.ADD_TAGS:_(e.ADD_TAGS)&&(eH===ej&&(eH=z(eH)),P(eH,e.ADD_TAGS,tN))),C(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?eX.attributeCheck=e.ADD_ATTR:_(e.ADD_ATTR)&&(eB===eG&&(eB=z(eB)),P(eB,e.ADD_ATTR,tN))),C(e,"ADD_URI_SAFE_ATTR")&&_(e.ADD_URI_SAFE_ATTR)&&P(tc,e.ADD_URI_SAFE_ATTR,tN),C(e,"FORBID_CONTENTS")&&_(e.FORBID_CONTENTS)&&(to===ta&&(to=z(to)),P(to,e.FORBID_CONTENTS,tN)),C(e,"ADD_FORBID_CONTENTS")&&_(e.ADD_FORBID_CONTENTS)&&(to===ta&&(to=z(to)),P(to,e.ADD_FORBID_CONTENTS,tN)),tt&&(eH["#text"]=!0),e0&&P(eH,["html","head","body"]),eH.table&&(P(eH,["tbody"]),delete eY.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw L('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw L('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let n=t;t=e.TRUSTED_TYPES_POLICY;try{eO=ek("")}catch(e){throw t=n,e}}else null===e.TRUSTED_TYPES_POLICY?(t=void 0,eO=""):(void 0===t&&(ev||(n=es(ed,c),ev=!0),t=n),t&&"string"==typeof eO&&(eO=ek("")));u&&u(e),tw=e},tR=P({},[...H,...j,...B]),tk=P({},[...G,...W]),tC=function(e){var t,n,r;let o=e_(e);o&&o.tagName||(o={namespaceURI:tm,tagName:"template"});let a=S(e.tagName),i=S(o.tagName);return!!th[e.namespaceURI]&&(e.namespaceURI===tf?(t=o).namespaceURI===tp?"svg"===a:t.namespaceURI===ts?"svg"===a&&("annotation-xml"===i||tT[i]):!!tR[a]:e.namespaceURI===ts?(n=o).namespaceURI===tp?"math"===a:n.namespaceURI===tf?"math"===a&&t_[i]:!!tk[a]:e.namespaceURI===tp?((r=o).namespaceURI!==tf||!!t_[i])&&(r.namespaceURI!==ts||!!tT[i])&&!tk[a]&&(tS[a]||!tR[a]):"application/xhtml+xml"===tE&&!!th[e.namespaceURI])},tI=function(e){T(a.removed,{element:e});try{e_(e).removeChild(e)}catch(t){if(ey(e),!e_(e))throw L("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tx=function(e){tP(e);let t=eb(e);if(t){let e=[];h(t,t=>{T(e,t)}),h(e,e=>{try{ey(e)}catch(e){}})}let n=eE(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],o=r&&r.name;if("string"==typeof o)try{e.removeAttribute(o)}catch(e){}}},tL=function(e,t){try{T(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){T(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(e8||e4)try{tI(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tM=function(e){let t=eE(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],o=r&&r.name;if("string"==typeof o&&!eB[tN(o)])try{e.removeAttribute(o)}catch(e){}}},tP=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(eA?eA(e):e.nodeType)===1&&tM(e);let n=eb(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},tz=function(e){if(!eQ)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=eA?eA(e):e.nodeType;if(7===n||8===n&&x(el,e.data)){try{ey(e)}catch(e){}continue}if(1===n){let t=tN(eN?eN(e):e.nodeName);try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&"label"!==t&&"output"!==t&&e.removeAttribute("for")}catch(e){}}let r=eb(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},tU=function(e){let n=null,r=null;if(e9)e="<remove></remove>"+e;else{let t=A(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===tE&&tm===tp&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let o=t?ek(e):e;if(tm===tp)try{n=new em().parseFromString(o,tE)}catch(e){}if(!n||!n.documentElement){n=ex.createDocument(tm,"template",null);try{n.documentElement.innerHTML=td?eO:o}catch(e){}}let a=n.body||n.documentElement;return(e&&r&&a.insertBefore(i.createTextNode(r),a.childNodes[0]||null),tm===tp)?eP.call(n,e0?"html":"body")[0]:e0?n.documentElement:a},tF=function(e){let t=ew?ew(e):e.ownerDocument;return eL.call(t||e,e,M.SHOW_ELEMENT|M.SHOW_COMMENT|M.SHOW_TEXT|M.SHOW_PROCESSING_INSTRUCTION|M.SHOW_CDATA_SECTION,null)},tH=function(e){return e=N(e,V," "),e=N(e,Z," "),e=N(e,J," ")},tj=function(e){var t;e.normalize();let n=ew?ew(e):e.ownerDocument,r=eL.call(n||e,e,M.SHOW_TEXT|M.SHOW_COMMENT|M.SHOW_CDATA_SECTION|M.SHOW_PROCESSING_INSTRUCTION,null),o=r.nextNode();for(;o;)o.data=tH(o.data),o=r.nextNode();let a=null==(t=e.querySelectorAll)?void 0:t.call(e,"template");a&&h(a,e=>{tG(e.content)&&tj(e.content)})},tB=function(e){let t=eN?eN(e):null;return"string"==typeof t&&"form"===tN(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==eE(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==eA(e)||e.childNodes!==eb(e))},tG=function(e){if(!eA||"object"!=typeof e||null===e)return!1;try{return 11===eA(e)}catch(e){return!1}},tW=function(e){if(!eA||"object"!=typeof e||null===e)return!1;try{return"number"==typeof eA(e)}catch(e){return!1}};function tY(e,t,n){0!==e.length&&h(e,e=>{e.call(a,t,n,tw)})}let tq=function(e,t,n){if(!eY[t]&&tZ(t)&&(eW.tagNameCheck instanceof RegExp&&x(eW.tagNameCheck,t)||eW.tagNameCheck instanceof Function&&eW.tagNameCheck(t)))return!1;if(tt&&!to[t]){let t=e_(e),r=eb(e);if(r&&t){let o=r.length;for(let a=o-1;a>=0;--a){let o=e===n?eg(r[a],!0):r[a];t.insertBefore(o,eT(e))}}}return tI(e),!0},tX=function(e,t,n,r){return 0===e.length?t:t===n||t===r?z(t):t},t$=function(e,t){if(tY(eU.beforeSanitizeElements,e,null),e!==t&&null===e_(e))return tn&&tP(e),!0;if(tB(e))return tI(e),!0;let n=tN(eN?eN(e):e.nodeName);if(eH=tX(eU.uponSanitizeElement,eH,ej,e2),tY(eU.uponSanitizeElement,e,{tagName:n,allowedTags:eH}),e!==t&&null===e_(e))return tn&&tP(e),!0;if(eQ&&e.hasChildNodes()&&!tW(e.firstElementChild)&&x(ei,e.textContent)&&x(ei,e.innerHTML)||eQ&&e.namespaceURI===tp&&"style"===n&&tW(e.firstElementChild)||7===e.nodeType||eQ&&8===e.nodeType&&x(el,e.data))return tI(e),!0;if(eY[n]||!(eX.tagCheck instanceof Function&&eX.tagCheck(n))&&!eH[n]){let r=tq(e,n,t);return!1===r&&tY(eU.afterSanitizeElements,e,null),r}if((eA?eA(e):e.nodeType)===1&&!tC(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&x(ec,e.innerHTML))return tI(e),!0;if(eJ&&3===e.nodeType){let t=tH(e.textContent);e.textContent!==t&&(T(a.removed,{element:e.cloneNode()}),e.textContent=t)}return tY(eU.afterSanitizeElements,e,null),!1},tK=function(e,t,n){if(eq[t]||eQ&&"patchsrc"===t||eQ&&"for"===t&&"label"!==e&&"output"!==e||e7&&("id"===t||"name"===t)&&(n in i||n in tO))return!1;let r=eB[t]||eX.attributeCheck instanceof Function&&eX.attributeCheck(t,e);if(eK&&x(Q,t));else if(e$&&x(ee,t));else if(r){if(tc[t]);else if(x(eF,N(n,er,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===w(n,"data:")&&ti[e]);else if(eV&&!x(en,N(n,er,"")));else if(n)return!1}else if(!(tZ(e)&&(eW.tagNameCheck instanceof RegExp&&x(eW.tagNameCheck,e)||eW.tagNameCheck instanceof Function&&eW.tagNameCheck(e))&&(eW.attributeNameCheck instanceof RegExp&&x(eW.attributeNameCheck,t)||eW.attributeNameCheck instanceof Function&&eW.attributeNameCheck(t,e))||"is"===t&&eW.allowCustomizedBuiltInElements&&(eW.tagNameCheck instanceof RegExp&&x(eW.tagNameCheck,n)||eW.tagNameCheck instanceof Function&&eW.tagNameCheck(n))))return!1;return!0},tV=P({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),tZ=function(e){return!tV[S(e)]&&x(ea,e)},tJ=function(e,n,r,o){if(t&&"object"==typeof ed&&"function"==typeof ed.getAttributeType&&!r)switch(ed.getAttributeType(e,n)){case"TrustedHTML":return ek(o);case"TrustedScriptURL":return eC(o)}return o},tQ=function(e,t,n,r){try{n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),tB(e)?tI(e):y(a.removed)}catch(n){tL(t,e)}},t0=function(e){tY(eU.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||tB(e))return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eB=tX(eU.uponSanitizeAttribute,eB,eG,e3),forceKeepAttr:void 0},r=t.length,o=tN(e.nodeName);for(;r--;){let a=t[r],i=a.name,l=a.namespaceURI,c=a.value,u=tN(i),s="value"===i?c:O(c);if(n.attrName=u,n.attrValue=s,n.keepAttr=!0,n.forceKeepAttr=void 0,tY(eU.uponSanitizeAttribute,e,n),s=n.attrValue,e5&&("id"===u||"name"===u)&&0!==w(s,te)&&(tL(i,e),s=te+s),eQ&&x(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,s)||"attributename"===u&&A(s,"href")){tL(i,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr||!eZ&&x(eu,s)||(eJ&&(s=tH(s)),!tK(o,u,s))){tL(i,e);continue}(s=tJ(o,u,l,s))!==c&&tQ(e,i,l,s)}}tY(eU.afterSanitizeAttributes,e,null)},t1=function(e){let t=null,n=tF(e);for(tY(eU.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(tY(eU.uponSanitizeShadowNode,t,null),t$(t,e),t0(t),tG(t.content)&&t1(t.content),(eA?eA(t):t.nodeType)===1){let e=eS(t);tG(e)&&(t2(e),t1(e))}tY(eU.afterSanitizeShadowDOM,e,null)},t2=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){t1(e.shadow);continue}let n=e.node,r=(eA?eA(n):n.nodeType)===1,o=eb(n);if(o)for(let e=o.length-1;e>=0;--e)t.push({node:o[e],shadow:null});if(r){let e=eN?eN(n):null;if("string"==typeof e&&"template"===tN(e)){let e=n.content;tG(e)&&t.push({node:e,shadow:null})}}if(r){let e=eS(n);tG(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return a.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,i=null,c=null;if((td=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!tW(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return v(e);case"boolean":return D(e);case"bigint":return R?R(e):"0";case"symbol":return k?k(e):"Symbol()";case"undefined":default:return I(e);case"function":case"object":{if(null===e)return I(e);let t=U(e,"toString");if("function"==typeof t){let n=t(e);return"string"==typeof n?n:I(n)}return I(e)}}}(e)))throw L("dirty is not a string, aborting");if(!a.isSupported)return e;e1?(eH=e2,eB=e3):tD(n),(eU.uponSanitizeElement.length>0||eU.uponSanitizeAttribute.length>0)&&(eH=z(eH)),eU.uponSanitizeAttribute.length>0&&(eB=z(eB)),a.removed=[];let u=tn&&"string"!=typeof e&&tW(e);if(u){tz(e);let t=eN?eN(e):e.nodeName;if("string"==typeof t){let n=tN(t);if(!eH[n]||eY[n])throw tx(e),L("root node is forbidden and cannot be sanitized in-place")}if(tB(e))throw tx(e),L("root node is clobbered and cannot be sanitized in-place");try{t2(e)}catch(t){throw tx(e),t}}else if(tW(e))1===(o=(r=tU("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o),t2(o);else{if(!e8&&!eJ&&!e0&&-1===e.indexOf("<"))return t&&e6?ek(e):e;if(!(r=tU(e)))return e8?null:e6?eO:""}r&&e9&&tI(r.firstChild);let s=u?e:r;try{let e=tF(s);for(;i=e.nextNode();)t$(i,s),t0(i),tG(i.content)&&t1(i.content)}catch(t){throw u&&(tx(e),h(a.removed,e=>{e.element&&tP(e.element)})),t}if(u)return h(a.removed,e=>{e.element&&tP(e.element)}),eJ&&tj(e),e;if(e8){if(eJ&&tj(r),e4)for(c=eM.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(eB.shadowroot||eB.shadowrootmode)&&(c=ez.call(l,c,!0)),c}let f=e0?r.outerHTML:r.innerHTML;return e0&&eH["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&x(eo,r.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+f),eJ&&(f=tH(f)),t&&e6?ek(f):f},a.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tD(e),e1=!0,e2=eH,e3=eB},a.clearConfig=function(){tw=null,e1=!1,e2=null,e3=null,t=n,eO=""},a.isValidAttribute=function(e,t,n){return tw||tD({}),tK(tN(e),tN(t),n)},a.addHook=function(e,t){"function"!=typeof t||C(eU,e)&&T(eU[e],t)},a.removeHook=function(e,t){if(C(eU,e)){if(void 0!==t){let n=g(eU[e],t);return -1===n?void 0:b(eU[e],n,1)[0]}return y(eU[e])}},a.removeHooks=function(e){C(eU,e)&&(eU[e]=[])},a.removeAllHooks=function(){eU=ef()},a}();n.d(t,{default:()=>ed})}};
1
+ export const __rspack_esm_id=7463;export const __rspack_esm_ids=[7463];export const __webpack_modules__={99418(e,t,n){let r;function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.r(t);let i=Object.entries,a=Object.setPrototypeOf,l=Object.isFrozen,c=Object.getPrototypeOf,u=Object.getOwnPropertyDescriptor,s=Object.freeze,f=Object.seal,p=Object.create,m="u">typeof Reflect&&Reflect,d=m.apply,h=m.construct;s||(s=function(e){return e}),f||(f=function(e){return e}),d||(d=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),h||(h=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});let g=z(Array.prototype.forEach),y=z(Array.prototype.lastIndexOf),b=z(Array.prototype.pop),T=z(Array.prototype.push),S=z(Array.prototype.splice),A=Array.isArray,_=z(String.prototype.toLowerCase),E=z(String.prototype.toString),w=z(String.prototype.match),v=z(String.prototype.replace),O=z(String.prototype.indexOf),N=z(String.prototype.trim),x=z(Number.prototype.toString),D=z(Boolean.prototype.toString),k="u"<typeof BigInt?null:z(BigInt.prototype.toString),R="u"<typeof Symbol?null:z(Symbol.prototype.toString),C=z(Object.prototype.hasOwnProperty),I=z(Object.prototype.toString),L=z(RegExp.prototype.test),M=(eb=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return h(eb,t)});function z(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return d(e,t,r)}}function P(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;if(a&&a(e,null),!A(t))return e;let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){let e=n(o);e!==o&&(l(t)||(t[r]=e),o=e)}e[o]=!0}return e}function U(e){let t=p(null);for(let r of i(e)){var n=function(e){if(Array.isArray(e))return e}(r)||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o,i,a=[],l=!0,c=!1;try{o=(t=t.call(e)).next,!1;for(;!(l=(n=o.call(t)).done)&&(a.push(n.value),2!==a.length);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw r}}return a}}(r)||function(e){if(e){if("string"==typeof e)return o(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,2):void 0}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let i=n[0],a=n[1];C(e,i)&&(A(a)?t[i]=function(e){for(let t=0;t<e.length;t++)C(e,t)||(e[t]=null);return e}(a):a&&"object"==typeof a&&a.constructor===Object?t[i]=U(a):t[i]=a)}return t}function F(e,t){for(;null!==e;){let n=u(e,t);if(n){if(n.get)return z(n.get);if("function"==typeof n.value)return z(n.value)}e=c(e)}return function(){return null}}let H=s(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),j=s(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),B=s(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),W=s(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Y=s(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),G=s(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),q=s(["#text"]),$=s(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),X=s(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),K=s(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),V=s(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Z=f(/{{[\w\W]*|^[\w\W]*}}/g),J=f(/<%[\w\W]*|^[\w\W]*%>/g),Q=f(/\${[\w\W]*/g),ee=f(/^data-[\-\w.\u00B7-\uFFFF]+$/),et=f(/^aria-[\-\w]+$/),en=f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),er=f(/^(?:\w+script|data):/i),eo=f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ei=f(/^html$/i),ea=f(/^[a-z][.\w]*(-[.\w]+)+$/i),el=f(/<[/\w!]/g),ec=f(/<[/\w]/g),eu=f(/<\/no(script|embed|frames)/i),es=f(/\/>/i),ef=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],ep=s(P({},ef)),em=(r={},g(ef,e=>{r[e]=f(RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),s(r)),ed=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}},eh=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},eg=function(e,t,n,r){return C(e,t)&&A(e[t])?P(r.base?U(r.base):{},e[t],r.transform):n},ey=function(e,t,n){let r=C(e,t)?e[t]:void 0;return r&&"object"==typeof r?U(r):n()};var eb,eT=function e(){let t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"<typeof window?null:window,o=t=>e(t);if(o.version="3.4.14",o.removed=[],!r||!r.document||9!==r.document.nodeType||!r.Element)return o.isSupported=!1,o;let a=r.document,l=a,c=l.currentScript;r.DocumentFragment;let u=r.HTMLTemplateElement,m=r.Node,d=r.Element,h=r.NodeFilter;void 0===r.NamedNodeMap&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;let z=r.DOMParser,ef=r.trustedTypes,eb=d.prototype,eT=F(eb,"cloneNode"),eS=F(eb,"remove"),eA=F(eb,"nextSibling"),e_=F(eb,"childNodes"),eE=F(eb,"parentNode"),ew=F(eb,"shadowRoot"),ev=F(eb,"attributes"),eO=m&&m.prototype?F(m.prototype,"nodeType"):null,eN=m&&m.prototype?F(m.prototype,"nodeName"):null,ex=m&&m.prototype?F(m.prototype,"ownerDocument"):null,eD=function(e){return eO?eO(e):e.nodeType},ek=function(e){return eN?eN(e):e.nodeName};if("function"==typeof u){let e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let eR="",eC=!1,eI=0,eL=function(){if(eI>0)throw M('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},eM=function(e){eL(),eI++;try{return t.createHTML(e)}finally{eI--}},ez=function(e){eL(),eI++;try{return t.createScriptURL(e)}finally{eI--}},eP=a,eU=eP.implementation,eF=eP.createNodeIterator,eH=eP.createDocumentFragment,ej=eP.getElementsByTagName,eB=l.importNode,eW=eh();o.isSupported="function"==typeof i&&"function"==typeof eE&&eU&&void 0!==eU.createHTMLDocument;let eY=en,eG=null,eq=P({},[...H,...j,...B,...Y,...q]),e$=null,eX=P({},[...$,...X,...K,...V]),eK=Object.seal(p(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eV=null,eZ=null,eJ=Object.seal(p(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),eQ=!0,e0=!0,e1=!1,e2=!0,e3=!1,e9=!0,e8=!1,e4=!1,e6=null,e7=null,e5=!1,te=!1,tt=!1,tn=!1,tr=!0,to=!1,ti="user-content-",ta=!0,tl=!1,tc={},tu=null,ts=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),tf=null,tp=P({},["audio","video","img","source","image","track"]),tm=null,td=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),th="http://www.w3.org/1998/Math/MathML",tg="http://www.w3.org/2000/svg",ty="http://www.w3.org/1999/xhtml",tb=ty,tT=!1,tS=null,tA=P({},[th,tg,ty],E),t_=s(["mi","mo","mn","ms","mtext"]),tE=P({},t_),tw=s(["annotation-xml"]),tv=P({},tw),tO=P({},["title","style","font","a","script"]),tN=null,tx=["application/xhtml+xml","text/html"],tD=null,tk=null,tR=a.createElement("form"),tC=function(e){return e instanceof RegExp||e instanceof Function},tI=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(tk&&tk===e)return;e&&"object"==typeof e||(e={}),e=U(e),tD="application/xhtml+xml"===(tN=-1===tx.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?E:_,eG=eg(e,"ALLOWED_TAGS",eq,{transform:tD}),e$=eg(e,"ALLOWED_ATTR",eX,{transform:tD}),tS=eg(e,"ALLOWED_NAMESPACES",tA,{transform:E}),tm=eg(e,"ADD_URI_SAFE_ATTR",td,{transform:tD,base:td}),tf=eg(e,"ADD_DATA_URI_TAGS",tp,{transform:tD,base:tp}),tu=eg(e,"FORBID_CONTENTS",ts,{transform:tD}),eV=eg(e,"FORBID_TAGS",U({}),{transform:tD}),eZ=eg(e,"FORBID_ATTR",U({}),{transform:tD}),tc=!!C(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?U(e.USE_PROFILES):e.USE_PROFILES),eQ=!1!==e.ALLOW_ARIA_ATTR,e0=!1!==e.ALLOW_DATA_ATTR,e1=e.ALLOW_UNKNOWN_PROTOCOLS||!1,e2=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,e3=e.SAFE_FOR_TEMPLATES||!1,e9=!1!==e.SAFE_FOR_XML,e8=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,tt=e.RETURN_DOM_FRAGMENT||!1,tn=e.RETURN_TRUSTED_TYPE||!1,e5=e.FORCE_BODY||!1,tr=!1!==e.SANITIZE_DOM,to=e.SANITIZE_NAMED_PROPS||!1,ta=!1!==e.KEEP_CONTENT,tl=e.IN_PLACE||!1,eY=!function(e){try{return L(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?en:e.ALLOWED_URI_REGEXP,tb="string"==typeof e.NAMESPACE?e.NAMESPACE:ty,tE=ey(e,"MATHML_TEXT_INTEGRATION_POINTS",()=>P({},t_)),tv=ey(e,"HTML_INTEGRATION_POINTS",()=>P({},tw));let r=ey(e,"CUSTOM_ELEMENT_HANDLING",()=>p(null));if(eK=p(null),C(r,"tagNameCheck")&&tC(r.tagNameCheck)&&(eK.tagNameCheck=r.tagNameCheck),C(r,"attributeNameCheck")&&tC(r.attributeNameCheck)&&(eK.attributeNameCheck=r.attributeNameCheck),C(r,"allowCustomizedBuiltInElements")&&"boolean"==typeof r.allowCustomizedBuiltInElements&&(eK.allowCustomizedBuiltInElements=r.allowCustomizedBuiltInElements),f(eK),e3&&(e0=!1),tt&&(te=!0),tc&&(eG=P({},q),e$=p(null),!0===tc.html&&(P(eG,H),P(e$,$)),!0===tc.svg&&(P(eG,j),P(e$,X),P(e$,V)),!0===tc.svgFilters&&(P(eG,B),P(e$,X),P(e$,V)),!0===tc.mathMl&&(P(eG,Y),P(e$,K),P(e$,V))),eJ.tagCheck=null,eJ.attributeCheck=null,C(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?eJ.tagCheck=e.ADD_TAGS:A(e.ADD_TAGS)&&(eG===eq&&(eG=U(eG)),P(eG,e.ADD_TAGS,tD))),C(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?eJ.attributeCheck=e.ADD_ATTR:A(e.ADD_ATTR)&&(e$===eX&&(e$=U(e$)),P(e$,e.ADD_ATTR,tD))),C(e,"ADD_FORBID_CONTENTS")&&A(e.ADD_FORBID_CONTENTS)&&(tu===ts&&(tu=U(tu)),P(tu,e.ADD_FORBID_CONTENTS,tD)),ta&&(eG["#text"]=!0),e8&&P(eG,["html","head","body"]),eG.table&&(P(eG,["tbody"]),delete eV.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw M('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw M('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let n=t;t=e.TRUSTED_TYPES_POLICY;try{eR=eM("")}catch(e){throw t=n,e}}else null===e.TRUSTED_TYPES_POLICY?(t=void 0,eR=""):(void 0===t&&(eC||(n=ed(ef,c),eC=!0),t=n),t&&"string"==typeof eR&&(eR=eM("")));s&&s(e),tk=e},tL=P({},[...j,...B,...W]),tM=P({},[...Y,...G]),tz=function(e){var t,n,r;let o=eE(e);o&&o.tagName||(o={namespaceURI:tb,tagName:"template"});let i=_(e.tagName),a=_(o.tagName);return!!tS[e.namespaceURI]&&(e.namespaceURI===tg?(t=o).namespaceURI===ty?"svg"===i:t.namespaceURI===th?"svg"===i&&("annotation-xml"===a||tE[a]):!!tL[i]:e.namespaceURI===th?(n=o).namespaceURI===ty?"math"===i:n.namespaceURI===tg?"math"===i&&tv[a]:!!tM[i]:e.namespaceURI===ty?((r=o).namespaceURI!==tg||!!tv[a])&&(r.namespaceURI!==th||!!tE[a])&&!tM[i]&&(tO[i]||!tL[i]):"application/xhtml+xml"===tN&&!!tS[e.namespaceURI])},tP=function(e){T(o.removed,{element:e});try{eE(e).removeChild(e)}catch(t){if(eS(e),!eE(e))throw M("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tU=function(e,t,n){try{e.removeAttributeNode(t)}catch(t){try{e.removeAttribute(n)}catch(e){}}},tF=function(e){tB(e);let t=e_(e);if(t){let e=[];g(t,t=>{T(e,t)}),g(e,e=>{try{eS(e)}catch(e){}})}let n=ev(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],o=r&&r.name;"string"==typeof o&&tU(e,r,o)}},tH=function(e,t,n){if(!n)try{n=t.getAttributeNode(e)}catch(e){n=null}T(o.removed,{attribute:n||null,from:t});try{n?t.removeAttributeNode(n):t.removeAttribute(e)}catch(n){try{t.removeAttribute(e)}catch(e){}}if("is"===e)if(te||tt)try{tP(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tj=function(e){let t=ev(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],o=r&&r.name;"string"!=typeof o||e$[tD(o)]||tU(e,r,o)}},tB=function(e){let t=[e];for(;t.length>0;){let e=t.pop();1===eD(e)&&tj(e);let n=e_(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},tW=function(e,t){return!!e9&&("patchsrc"===e||"for"===e&&"label"!==t&&"output"!==t)},tY=function(e){if(!e9)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=eD(e);if(7===n||8===n&&L(ec,e.data)){try{eS(e)}catch(e){}continue}if(1===n){let t=tD(ek(e));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&tW("for",t)&&e.removeAttribute("for")}catch(e){}}let r=e_(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},tG=function(e){let n=null,r=null;if(e5)e="<remove></remove>"+e;else{let t=w(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===tN&&tb===ty&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let o=t?eM(e):e;if(tb===ty)try{n=new z().parseFromString(o,tN)}catch(e){}if(!n||!n.documentElement){n=eU.createDocument(tb,"template",null);try{n.documentElement.innerHTML=tT?eR:o}catch(e){}}let i=n.body||n.documentElement;return(e&&r&&i.insertBefore(a.createTextNode(r),i.childNodes[0]||null),tb===ty)?ej.call(n,e8?"html":"body")[0]:e8?n.documentElement:i},tq=function(e){let t=ex?ex(e):e.ownerDocument;return eF.call(t||e,e,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},t$=function(e){return e=v(e,Z," "),e=v(e,J," "),e=v(e,Q," ")},tX=function(e){var t;e.normalize();let n=ex?ex(e):e.ownerDocument,r=eF.call(n||e,e,h.SHOW_TEXT|h.SHOW_COMMENT|h.SHOW_CDATA_SECTION|h.SHOW_PROCESSING_INSTRUCTION,null),o=r.nextNode();for(;o;)o.data=t$(o.data),o=r.nextNode();let i=null==(t=e.querySelectorAll)?void 0:t.call(e,"template");i&&g(i,e=>{tV(e.content)&&tX(e.content)})},tK=function(e){let t=eN?eN(e):null;return"string"==typeof t&&"form"===tD(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==ev(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==eO(e)||e.childNodes!==e_(e))},tV=function(e){if(!eO||"object"!=typeof e||null===e)return!1;try{return 11===eO(e)}catch(e){return!1}},tZ=function(e){if(!eO||"object"!=typeof e||null===e)return!1;try{return"number"==typeof eO(e)}catch(e){return!1}};function tJ(e,t,n){0!==e.length&&g(e,e=>{e.call(o,t,n,tk)})}let tQ=function(e,t){if(e instanceof RegExp)return L(e,t);if(e instanceof Function){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return!!e(t,...r)}return!1},t0=function(e,t,n){if(!eV[t]&&t4(t)&&tQ(eK.tagNameCheck,t))return!1;if(ta&&!tu[t]){let t=eE(e),r=e_(e);if(r&&t){let o=r.length;for(let i=o-1;i>=0;--i){let o=e===n?eT(r[i],!0):r[i];t.insertBefore(o,eA(e))}}}return tP(e),!0},t1=function(e,t,n,r){return 0===e.length?t:t===n||t===r?U(t):t},t2=function(e,t){return e!==t&&null===eE(e)&&(tl&&tB(e),!0)},t3=function(e,t){if(tJ(eW.beforeSanitizeElements,e,null),t2(e,t))return!0;if(tK(e))return tP(e),!0;let n=tD(ek(e));if(eG=t1(eW.uponSanitizeElement,eG,eq,e6),tJ(eW.uponSanitizeElement,e,{tagName:n,allowedTags:eG}),t2(e,t))return!0;if(e9&&e.hasChildNodes()&&!tZ(e.firstElementChild)&&L(el,e.textContent)&&L(el,e.innerHTML)||e9&&e.namespaceURI===ty&&ep[n]&&(tZ(e.firstElementChild)||"string"==typeof e.textContent&&L(em[n],e.textContent))||7===e.nodeType||e9&&8===e.nodeType&&L(ec,e.data))return tP(e),!0;if(eV[n]||!(eJ.tagCheck instanceof Function&&eJ.tagCheck(n))&&!eG[n]){let r=t0(e,n,t);return!1===r&&tJ(eW.afterSanitizeElements,e,null),r}if(1===eD(e)&&!tz(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&L(eu,e.innerHTML))return tP(e),!0;if(e3&&3===e.nodeType){let t=t$(e.textContent);e.textContent!==t&&(T(o.removed,{element:e.cloneNode()}),e.textContent=t)}return tJ(eW.afterSanitizeElements,e,null),!1},t9=function(e,t,n){if(eZ[t]||tW(t,e)||tr&&("id"===t||"name"===t)&&(n in a||n in tR))return!1;let r=e$[t]||eJ.attributeCheck instanceof Function&&eJ.attributeCheck(t,e);return!!(e0&&L(ee,t)||eQ&&L(et,t))||(r?!(!(tm[t]||L(eY,v(n,eo,"")))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==O(n,"data:")||!tf[e])&&(!e1||L(er,v(n,eo,""))))||!n:t4(e)&&tQ(eK.tagNameCheck,e)&&tQ(eK.attributeNameCheck,t,e)||"is"===t&&eK.allowCustomizedBuiltInElements&&tQ(eK.tagNameCheck,n))},t8=P({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),t4=function(e){return!t8[_(e)]&&L(ea,e)},t6=function(e,n,r,o){if(t&&"object"==typeof ef&&"function"==typeof ef.getAttributeType&&!r)switch(ef.getAttributeType(e,n)){case"TrustedHTML":return eM(o);case"TrustedScriptURL":return ez(o)}return o},t7=function(e,t,n,r){try{n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),tK(e)?tP(e):b(o.removed)}catch(n){tH(t,e)}},t5=function(e){tJ(eW.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||tK(e))return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:e$=t1(eW.uponSanitizeAttribute,e$,eX,e7),forceKeepAttr:void 0},r=t.length,o=tD(e.nodeName);for(;r--;){let i=t[r],a=i.name,l=i.namespaceURI,c=i.value,u=tD(a),s="value"===a?c:N(c);if(n.attrName=u,n.attrValue=s,n.keepAttr=!0,n.forceKeepAttr=void 0,tJ(eW.uponSanitizeAttribute,e,n),s=n.attrValue,to&&("id"===u||"name"===u)&&0!==O(s,ti)&&(tH(a,e,i),s=ti+s),e9&&L(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,s)||"attributename"===u&&w(s,"href")){tH(a,e,i);continue}if(!n.forceKeepAttr){if(!n.keepAttr||!e2&&L(es,s)||(e3&&(s=t$(s)),!t9(o,u,s))){tH(a,e,i);continue}(s=t6(o,u,l,s))!==c&&t7(e,a,l,s)}}tJ(eW.afterSanitizeAttributes,e,null)},ne=function(e){let t=null,n=tq(e);for(tJ(eW.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(tJ(eW.uponSanitizeShadowNode,t,null),t3(t,e),t5(t),tV(t.content)&&ne(t.content),1===eD(t)){let e=ew(t);tV(e)&&(nt(e),ne(e))}tJ(eW.afterSanitizeShadowDOM,e,null)},nt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){ne(e.shadow);continue}let n=e.node,r=1===eD(n),o=e_(n);if(o)for(let e=o.length-1;e>=0;--e)t.push({node:o[e],shadow:null});if(r){let e=eN?eN(n):null;if("string"==typeof e&&"template"===tD(e)){let e=n.content;tV(e)&&t.push({node:e,shadow:null})}}if(r){let e=ew(n);tV(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return o.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,c=null;if((tT=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!tZ(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return x(e);case"boolean":return D(e);case"bigint":return k?k(e):"0";case"symbol":return R?R(e):"Symbol()";case"undefined":default:return I(e);case"function":case"object":{if(null===e)return I(e);let t=F(e,"toString");if("function"==typeof t){let n=t(e);return"string"==typeof n?n:I(n)}return I(e)}}}(e)))throw M("dirty is not a string, aborting");if(!o.isSupported)return e;e4?(eG=e6,e$=e7):tI(n),(eW.uponSanitizeElement.length>0||eW.uponSanitizeAttribute.length>0)&&(eG=U(eG)),eW.uponSanitizeAttribute.length>0&&(e$=U(e$)),o.removed=[];let u=tl&&"string"!=typeof e&&tZ(e);if(u){tY(e);let t=ek(e);if("string"==typeof t){let n=tD(t);if(!eG[n]||eV[n])throw tF(e),M("root node is forbidden and cannot be sanitized in-place")}if(tK(e))throw tF(e),M("root node is clobbered and cannot be sanitized in-place");try{nt(e)}catch(t){throw tF(e),t}}else if(tZ(e))1===(i=(r=tG("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i),nt(i);else{if(!te&&!e3&&!e8&&-1===e.indexOf("<"))return t&&tn?eM(e):e;if(!(r=tG(e)))return te?null:tn?eR:""}r&&e5&&tP(r.firstChild);let s=u?e:r;try{let e=tq(s);for(;a=e.nextNode();)t3(a,s),t5(a),tV(a.content)&&ne(a.content)}catch(t){throw u&&(tF(e),g(o.removed,e=>{e.element&&tB(e.element)})),t}if(u)return g(o.removed,e=>{e.element&&tB(e.element)}),e3&&tX(e),e;if(te){if(e3&&tX(r),tt)for(c=eH.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(e$.shadowroot||e$.shadowrootmode)&&(c=eB.call(l,c,!0)),c}let f=e8?r.outerHTML:r.innerHTML;return e8&&eG["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&L(ei,r.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+f),e3&&(f=t$(f)),t&&tn?eM(f):f},o.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tI(e),e4=!0,e6=eG,e7=e$},o.clearConfig=function(){tk=null,e4=!1,e6=null,e7=null,t=n,eR=""},o.isValidAttribute=function(e,t,n){return tk||tI({}),t9(tD(e),tD(t),n)},o.addHook=function(e,t){"function"!=typeof t||C(eW,e)&&T(eW[e],t)},o.removeHook=function(e,t){if(C(eW,e)){if(void 0!==t){let n=y(eW[e],t);return -1===n?void 0:S(eW[e],n,1)[0]}return b(eW[e])}},o.removeHooks=function(e){C(eW,e)&&(eW[e]=[])},o.removeAllHooks=function(){eW=eh()},o}();n.d(t,{default:()=>eT})}};
@@ -0,0 +1 @@
1
+ export const __rspack_esm_id=7471;export const __rspack_esm_ids=[7471];export const __webpack_modules__={84306(r,s,e){var a=e(2824);e(64918),e(96755),e(1672),e(9417),e(338),e(78771),e(46853),e(717),e(79515),e(44505),e(83081),e(72346),e(24768),e(70736),e(31293);var t=e(86827),_={parser:a._$,get db(){return new a.NM},renderer:a.Lh,styles:a.tM,init:(0,t.K)(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};e.d(s,{diagram:()=>_})}};
@@ -0,0 +1 @@
1
+ export const __rspack_esm_id=7798;export const __rspack_esm_ids=[7798];export const __webpack_modules__={40821(r,s,e){var a=e(2824);e(64918),e(96755),e(1672),e(9417),e(338),e(78771),e(46853),e(717),e(79515),e(44505),e(83081),e(72346),e(24768),e(70736),e(31293);var t=e(86827),_={parser:a._$,get db(){return new a.NM},renderer:a.Lh,styles:a.tM,init:(0,t.K)(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};e.d(s,{diagram:()=>_})}};
@@ -1,24 +1,34 @@
1
- export const __rspack_esm_id=788;export const __rspack_esm_ids=[788];export const __webpack_modules__={77454(e,t,a){function l(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}(0,a(86827).K)(l,"populateCommonDb"),a.d(t,{S:()=>l})},78257(e,t,a){var l=a(64183),r=a(31293),s=a(86827),i=(0,s.K)((e,t,a,s)=>{e.attr("class",a);let{width:i,height:c,x:d,y:p}=n(e,t);(0,l.a$)(e,c,i,s);let h=o(d,p,i,c,t);e.attr("viewBox",h),r.R.debug(`viewBox configured: ${h} with padding: ${t}`)},"setupViewPortForSVG"),n=(0,s.K)((e,t)=>{let a=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:a.width+2*t,height:a.height+2*t,x:a.x,y:a.y}},"calculateDimensionsWithPadding"),o=(0,s.K)((e,t,a,l,r)=>`${e-r} ${t-r} ${a} ${l}`,"createViewBox");a.d(t,{P:()=>i})},83743(e,t,a){var l=a(77454),r=a(22422),s=a(78257),i=a(14782),n=a(24692),o=a(64183),c=a(31293),d=a(86827),p=a(78731),h=a(74045),m=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=o.SV,this.getAccTitle=o.iN,this.setDiagramTitle=o.ke,this.getDiagramTitle=o.ab,this.getAccDescription=o.m7,this.setAccDescription=o.EI}static{(0,d.K)(this,"TreeMapDB")}getNodes(){return this.nodes}getConfig(){let e=o.UI,t=(0,o.zj)();return(0,n.$t)({...e.treemap,...t.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),0===t&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:"",children:this.outerNodes}}addClass(e,t){let a=this.classes.get(e)??{id:e,styles:[],textStyles:[]},l=t.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");l&&l.forEach(e=>{(0,i.KX)(e)&&(a?.textStyles?a.textStyles.push(e):a.textStyles=[e]),a?.styles?a.styles.push(e):a.styles=[e]}),this.classes.set(e,a)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){(0,o.IU)(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function y(e){if(!e.length)return[];let t=[],a=[];return e.forEach(e=>{let l={name:e.name,children:"Leaf"===e.type?void 0:[]};for(l.classSelector=e?.classSelector,e?.cssCompiledStyles&&(l.cssCompiledStyles=e.cssCompiledStyles),"Leaf"===e.type&&void 0!==e.value&&(l.value=e.value);a.length>0&&a[a.length-1].level>=e.level;)a.pop();if(0===a.length)t.push(l);else{let e=a[a.length-1].node;e.children?e.children.push(l):e.children=[l]}"Leaf"!==e.type&&a.push({node:l,level:e.level})}),t}(0,d.K)(y,"buildHierarchy");var f=(0,d.K)((e,t)=>{(0,l.S)(e,t);let a=[];for(let a of e.TreemapRows??[])"ClassDefStatement"===a.$type&&t.addClass(a.className??"",a.styleText??"");for(let l of e.TreemapRows??[]){let e=l.item;if(!e)continue;let r=l.indent?parseInt(l.indent):0,s=u(e),i=e.classSelector?t.getStylesForClass(e.classSelector):[],n=i.length>0?i:void 0,o={level:r,name:s,type:e.$type,value:e.value,classSelector:e.classSelector,cssCompiledStyles:n};a.push(o)}let r=y(a),s=(0,d.K)((e,a)=>{for(let l of e)t.addNode(l,a),l.children&&l.children.length>0&&s(l.children,a+1)},"addNodesRecursively");s(r,0)},"populate"),u=(0,d.K)(e=>e.name?String(e.name):"","getItemName"),S={parser:{yy:void 0},parse:(0,d.K)(async e=>{try{let t=p.qg,a=await t("treemap",e);c.R.debug("Treemap AST:",a);let l=S.parser?.yy;if(!(l instanceof m))throw Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");f(a,l)}catch(e){throw c.R.error("Error parsing treemap:",e),e}},"parse")},g=(0,d.K)((e,t,a,l)=>{let n,p=l.db,m=p.getConfig(),y=m.padding??10,f=p.getDiagramTitle(),u=p.getRoot(),{themeVariables:S}=(0,o.zj)();if(!u)return;let g=30*!!f,x=(0,r.D)(t),$=m.nodeWidth?10*m.nodeWidth:960,b=m.nodeHeight?10*m.nodeHeight:500,v=b+g;x.attr("viewBox",`0 0 ${$} ${v}`),(0,o.a$)(x,v,$,m.useMaxWidth);try{let e=m.valueFormat||",";if("$0,0"===e)n=(0,d.K)(e=>"$"+(0,h.GPZ)(",")(e),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){let t=/\.\d+/.exec(e),a=t?t[0]:"";n=(0,d.K)(e=>"$"+(0,h.GPZ)(","+a)(e),"valueFormat")}else if(e.startsWith("$")){let t=e.substring(1);n=(0,d.K)(e=>"$"+(0,h.GPZ)(t||"")(e),"valueFormat")}else n=(0,h.GPZ)(e)}catch(e){c.R.error("Error creating format function:",e),n=(0,h.GPZ)(",")}let C=(0,h.UMr)().range(["transparent",S.cScale0,S.cScale1,S.cScale2,S.cScale3,S.cScale4,S.cScale5,S.cScale6,S.cScale7,S.cScale8,S.cScale9,S.cScale10,S.cScale11]),w=(0,h.UMr)().range(["transparent",S.cScalePeer0,S.cScalePeer1,S.cScalePeer2,S.cScalePeer3,S.cScalePeer4,S.cScalePeer5,S.cScalePeer6,S.cScalePeer7,S.cScalePeer8,S.cScalePeer9,S.cScalePeer10,S.cScalePeer11]),L=(0,h.UMr)().range([S.cScaleLabel0,S.cScaleLabel1,S.cScaleLabel2,S.cScaleLabel3,S.cScaleLabel4,S.cScaleLabel5,S.cScaleLabel6,S.cScaleLabel7,S.cScaleLabel8,S.cScaleLabel9,S.cScaleLabel10,S.cScaleLabel11]);f&&x.append("text").attr("x",$/2).attr("y",g/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(f);let k=x.append("g").attr("transform",`translate(0, ${g})`).attr("class","treemapContainer"),T=(0,h.Sk5)(u).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),P=(0,h.hkb)().size([$,b]).paddingTop(e=>e.children&&e.children.length>0?35:0).paddingInner(y).paddingLeft(e=>e.children&&e.children.length>0?10:0).paddingRight(e=>e.children&&e.children.length>0?10:0).paddingBottom(e=>e.children&&e.children.length>0?10:0).round(!0)(T),M=P.descendants().filter(e=>e.children&&e.children.length>0),z=k.selectAll(".treemapSection").data(M).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);z.append("rect").attr("width",e=>e.x1-e.x0).attr("height",25).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>0===e.depth?"display: none;":""),z.append("clipPath").attr("id",(e,a)=>`clip-section-${t}-${a}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",25),z.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>C(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>w(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(0===e.depth)return"display: none;";let t=(0,i.GX)({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),z.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",12.5).attr("dominant-baseline","middle").text(e=>0===e.depth?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,a)=>`url(#clip-section-${t}-${a})`).attr("style",e=>0===e.depth?"display: none;":"dominant-baseline: middle; font-size: 12px; fill:"+L(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+(0,i.GX)({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).each(function(e){if(0===e.depth)return;let t=(0,h.Ltv)(this),a=e.data.name;t.text(a);let l=e.x1-e.x0,r=Math.max(15,!1!==m.showValues&&e.value?l-10-30-10-6:l-6-6),s=t.node();if(s.getComputedTextLength()>r){let e=a;for(;e.length>0;){if(0===(e=a.substring(0,e.length-1)).length){t.text("..."),s.getComputedTextLength()>r&&t.text("");break}if(t.text(e+"..."),s.getComputedTextLength()<=r)break}}}),!1!==m.showValues&&z.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",12.5).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?n(e.value):"").attr("font-style","italic").attr("style",e=>0===e.depth?"display: none;":"text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+L(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+(0,i.GX)({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:"));let F=P.leaves(),K=F.length>20,D=K?16:38,N=K?14:28,G=K?4:8,_=K?4:6,V=K?2:4,W=K?8:10,R=K?1:2,A=k.selectAll(".treemapLeafGroup").data(F).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);A.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?C(e.parent.data.name):C(e.data.name)).attr("style",e=>(0,i.GX)({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?C(e.parent.data.name):C(e.data.name)).attr("stroke-width",3),A.append("clipPath").attr("id",(e,a)=>`clip-${t}-${a}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),A.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>`text-anchor: middle; dominant-baseline: middle; font-size: ${D}px;fill:`+L(e.data.name)+";"+(0,i.GX)({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).attr("clip-path",(e,a)=>`url(#clip-${t}-${a})`).text(e=>e.data.name).each(function(e){let t=(0,h.Ltv)(this),a=e.x1-e.x0,l=e.y1-e.y0,r=t.node(),s=a-2*V,i=l-2*V;if(s<W||i<W)return void t.style("display","none");let n=parseInt(t.style("font-size"),10);for(;r.getComputedTextLength()>s&&n>G;)n--,t.style("font-size",`${n}px`);let o=Math.max(_,Math.min(N,Math.round(.6*n))),c=n+R+o;for(;c>i&&n>G&&(!((o=Math.max(_,Math.min(N,Math.round(.6*--n))))<_)||n!==G);)t.style("font-size",`${n}px`),c=n+R+o;t.style("font-size",`${n}px`),K?(n<G||i<G)&&t.style("display","none"):(r.getComputedTextLength()>s||n<G||i<n)&&t.style("display","none")}),!1!==m.showValues&&A.append("text").attr("class","treemapValue").attr("x",e=>(e.x1-e.x0)/2).attr("y",function(e){return(e.y1-e.y0)/2}).attr("style",e=>`text-anchor: middle; dominant-baseline: hanging; font-size: ${N}px;fill:`+L(e.data.name)+";"+(0,i.GX)({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).attr("clip-path",(e,a)=>`url(#clip-${t}-${a})`).text(e=>e.value?n(e.value):"").each(function(e){let t=(0,h.Ltv)(this),a=this.parentNode;if(!a)return void t.style("display","none");let l=(0,h.Ltv)(a).select(".treemapLabel");if(l.empty()||"none"===l.style("display"))return void t.style("display","none");let r=parseFloat(l.style("font-size")),s=Math.max(_,Math.min(N,Math.round(.6*r)));t.style("font-size",`${s}px`);let i=(e.y1-e.y0)/2+r/2+R;t.attr("y",i);let n=e.x1-e.x0,o=e.y1-e.y0;t.node().getComputedTextLength()>n-2*V||i+s>o-4||s<_?t.style("display","none"):t.style("display",null)});let B=m.diagramPadding??8;(0,s.P)(x,B,"flowchart",m?.useMaxWidth||!1)},"draw"),x=(0,d.K)(function(e,t){return t.db.getClasses()},"getClasses"),$={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},b={parser:S,get db(){return new m},renderer:{draw:g,getClasses:x},styles:(0,d.K)(({treemap:e}={})=>{let t=(0,o.P$)(),a=(0,o.zj)(),l=(0,n.$t)(t,a.themeVariables),r=(0,n.$t)($,e),s=r.titleColor??l.titleColor,i=r.labelColor??l.textColor,c=r.valueColor??l.textColor;return`
2
- .treemapNode.section {
3
- stroke: ${r.sectionStrokeColor};
4
- stroke-width: ${r.sectionStrokeWidth};
5
- fill: ${r.sectionFillColor};
1
+ export const __rspack_esm_id=788;export const __rspack_esm_ids=[788];export const __webpack_modules__={64687(t,e,n){n.d(e,{diagram:()=>te});var i=n(70736);n(31293);var r=n(86827),s=n(74045);function o(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 i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n>r||void 0===n&&r>=r)&&(n=r)}return n}function l(t){return t.target.depth}function a(t,e){return t.sourceLinks.length?t.depth:e-1}function h(t,e){let n=0;if(void 0===e)for(let e of t)(e*=1)&&(n+=e);else{let i=-1;for(let r of t)(r=+e(r,++i,t))&&(n+=r)}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 i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n<r||void 0===n&&r>=r)&&(n=r)}return n}function u(t){return function(){return t}}function f(t,e){return d(t.source,e.source)||t.index-e.index}function y(t,e){return d(t.target,e.target)||t.index-e.index}function d(t,e){return t.y0-e.y0}function p(t){return t.value}function g(t){return t.index}function _(t){return t.nodes}function x(t){return t.links}function k(t,e){let n=t.get(e);if(!n)throw Error("missing: "+e);return n}function m({nodes:t}){for(let e of t){let t=e.y0,n=t;for(let n of e.sourceLinks)n.y0=t+n.width/2,t+=n.width;for(let t of e.targetLinks)t.y1=n+t.width/2,n+=t.width}}var b=Math.PI,v=2*b,S=v-1e-6;function E(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function w(){return new E}E.prototype=w.prototype={constructor:E,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,s){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+s)},arcTo:function(t,e,n,i,r){t*=1,e*=1,n*=1,i*=1,r*=1;var s=this._x1,o=this._y1,l=n-t,a=i-e,h=s-t,c=o-e,u=h*h+c*c;if(r<0)throw Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(u>1e-6)if(Math.abs(c*l-a*h)>1e-6&&r){var f=n-s,y=i-o,d=l*l+a*a,p=Math.sqrt(d),g=Math.sqrt(u),_=r*Math.tan((b-Math.acos((d+u-(f*f+y*y))/(2*p*g)))/2),x=_/g,k=_/p;Math.abs(x-1)>1e-6&&(this._+="L"+(t+x*h)+","+(e+x*c)),this._+="A"+r+","+r+",0,0,"+ +(c*f>h*y)+","+(this._x1=t+k*l)+","+(this._y1=e+k*a)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,i,r,s){t*=1,e*=1,n*=1,s=!!s;var o=n*Math.cos(i),l=n*Math.sin(i),a=t+o,h=e+l,c=1^s,u=s?i-r:r-i;if(n<0)throw Error("negative radius: "+n);null===this._x1?this._+="M"+a+","+h:(Math.abs(this._x1-a)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+a+","+h),n&&(u<0&&(u=u%v+v),u>S?this._+="A"+n+","+n+",0,1,"+c+","+(t-o)+","+(e-l)+"A"+n+","+n+",0,1,"+c+","+(this._x1=a)+","+(this._y1=h):u>1e-6&&(this._+="A"+n+","+n+",0,"+ +(u>=b)+","+c+","+(this._x1=t+n*Math.cos(r))+","+(this._y1=e+n*Math.sin(r))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};var K=Array.prototype.slice;function L(t){return function(){return t}}function A(t){return t[0]}function M(t){return t[1]}function I(t){return t.source}function T(t){return t.target}function P(t,e,n,i,r){t.moveTo(e,n),t.bezierCurveTo(e=(e+i)/2,n,e,r,i,r)}function $(t){return[t.source.x1,t.y0]}function N(t){return[t.target.x0,t.y1]}var C=function(){var t=(0,r.K)(function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},"o"),e=[1,9],n=[1,10],i=[1,5,10,12],s={trace:(0,r.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:(0,r.K)(function(t,e,n,i,r,s,o){var l=s.length-1;switch(r){case 7:let a=i.findOrCreateNode(s[l-4].trim().replaceAll('""','"')),h=i.findOrCreateNode(s[l-2].trim().replaceAll('""','"')),c=parseFloat(s[l].trim());i.addLink(a,h,c);break;case 8:case 9:case 11:this.$=s[l];break;case 10:this.$=s[l-1]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:n},{1:[2,6],7:11,10:[1,12]},t(n,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(i,[2,8]),t(i,[2,9]),{19:[1,16]},t(i,[2,11]),{1:[2,1]},{1:[2,5]},t(n,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:n},{15:18,16:7,17:8,18:e,20:n},{18:[1,19]},t(n,[2,3]),{12:[1,20]},t(i,[2,10]),{15:21,16:7,17:8,18:e,20:n},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:(0,r.K)(function(t,e){if(e.recoverable)this.trace(t);else{var n=Error(t);throw n.hash=e,n}},"parseError"),parse:(0,r.K)(function(t){var e=this,n=[0],i=[],s=[null],o=[],l=this.table,a="",h=0,c=0,u=0,f=o.slice.call(arguments,1),y=Object.create(this.lexer),d={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d[p]=this.yy[p]);y.setInput(t,d),d.lexer=y,d.parser=this,void 0===y.yylloc&&(y.yylloc={});var g=y.yylloc;o.push(g);var _=y.options&&y.options.ranges;function x(){var t;return"number"!=typeof(t=i.pop()||y.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof d.parseError?this.parseError=d.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,r.K)(function(t){n.length=n.length-2*t,s.length=s.length-t,o.length=o.length-t},"popStack"),(0,r.K)(x,"lex");for(var k,m,b,v,S,E,w,K,L,A={};;){if(b=n[n.length-1],this.defaultActions[b]?v=this.defaultActions[b]:(null==k&&(k=x()),v=l[b]&&l[b][k]),void 0===v||!v.length||!v[0]){var M="";for(E in L=[],l[b])this.terminals_[E]&&E>2&&L.push("'"+this.terminals_[E]+"'");M=y.showPosition?"Parse error on line "+(h+1)+":\n"+y.showPosition()+"\nExpecting "+L.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==k?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(M,{text:y.match,token:this.terminals_[k]||k,line:y.yylineno,loc:g,expected:L})}if(v[0]instanceof Array&&v.length>1)throw Error("Parse Error: multiple actions possible at state: "+b+", token: "+k);switch(v[0]){case 1:n.push(k),s.push(y.yytext),o.push(y.yylloc),n.push(v[1]),k=null,m?(k=m,m=null):(c=y.yyleng,a=y.yytext,h=y.yylineno,g=y.yylloc,u>0&&u--);break;case 2:if(w=this.productions_[v[1]][1],A.$=s[s.length-w],A._$={first_line:o[o.length-(w||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(w||1)].first_column,last_column:o[o.length-1].last_column},_&&(A._$.range=[o[o.length-(w||1)].range[0],o[o.length-1].range[1]]),void 0!==(S=this.performAction.apply(A,[a,c,h,d,v[1],s,o].concat(f))))return S;w&&(n=n.slice(0,-1*w*2),s=s.slice(0,-1*w),o=o.slice(0,-1*w)),n.push(this.productions_[v[1]][0]),s.push(A.$),o.push(A._$),K=l[n[n.length-2]][n[n.length-1]],n.push(K);break;case 3:return!0}}return!0},"parse")};function o(){this.yy={}}return s.lexer={EOF:1,parseError:(0,r.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,r.K)(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,r.K)(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,r.K)(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,r.K)(function(){return this._more=!0,this},"more"),reject:(0,r.K)(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,r.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,r.K)(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,r.K)(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,r.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,r.K)(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,r.K)(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,r.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,r.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,r.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,r.K)(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,r.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,r.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,r.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,r.K)(function(t,e,n,i){switch(n){case 0:case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}},(0,r.K)(o,"Parser"),o.prototype=s,s.Parser=o,new o}();C.parser=C;var D=[],O=[],j=new Map,z=(0,r.K)(()=>{D=[],O=[],j=new Map,(0,i.IU)()},"clear"),F=class{constructor(t,e,n=0){this.source=t,this.target=e,this.value=n}static{(0,r.K)(this,"SankeyLink")}},U=(0,r.K)((t,e,n)=>{D.push(new F(t,e,n))},"addLink"),W=class{constructor(t){this.ID=t}static{(0,r.K)(this,"SankeyNode")}},V=(0,r.K)(t=>{t=i.Y2.sanitizeText(t,(0,i.D7)());let e=j.get(t);return void 0===e&&(e=new W(t),j.set(t,e),O.push(e)),e},"findOrCreateNode"),G=(0,r.K)(()=>O,"getNodes"),X=(0,r.K)(()=>D,"getLinks"),Y=(0,r.K)(()=>({nodes:O.map(t=>({id:t.ID})),links:D.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),q={nodesMap:j,getConfig:(0,r.K)(()=>(0,i.D7)().sankey,"getConfig"),getNodes:G,getLinks:X,getGraph:Y,addLink:U,findOrCreateNode:V,getAccTitle:i.iN,setAccTitle:i.SV,getAccDescription:i.m7,setAccDescription:i.EI,getDiagramTitle:i.ab,setDiagramTitle:i.ke,clear:z},B=class t{static{(0,r.K)(this,"Uid")}static{this.count=0}static next(e){return new t(e+ ++t.count)}constructor(t){this.id=t,this.href=`#${t}`}toString(){return"url("+this.href+")"}},Q={left:function(t){return t.depth},right:function(t,e){return e-1-t.height},center:function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?o(t.sourceLinks,l)-1:0},justify:a},R=(0,r.K)(t=>{let e=0,n=0;for(let i of t){let t=i.value??0;t>e&&(e=t,n=i.layer??0)}return n},"findCentralNodeLayer"),Z=(0,r.K)(function(t,e,n,l){let b,v,{securityLevel:S,sankey:E}=(0,i.D7)(),C=i.ME.sankey;"sandbox"===S&&(b=(0,s.Ltv)("#i"+e));let D="sandbox"===S?(0,s.Ltv)(b.nodes()[0].contentDocument.body):(0,s.Ltv)("body"),O="sandbox"===S?D.select(`[id="${e}"]`):(0,s.Ltv)(`[id="${e}"]`),j=E?.width??C.width,z=E?.height??C.width,F=E?.useMaxWidth??C.useMaxWidth,U=E?.nodeAlignment??C.nodeAlignment,W=E?.prefix??C.prefix,V=E?.suffix??C.suffix,G=E?.showValues??C.showValues,X=E?.nodeWidth??C.nodeWidth??10,Y=E?.nodePadding??C.nodePadding??12,q=E?.labelStyle??C.labelStyle??"legacy",Z=E?.nodeColors??{},H=l.db.getGraph(),J=Q[U];(function(){let t,e,n=0,i=0,r=1,s=1,l=24,b=8,v,S=g,E=a,w=_,K=x,L=6;function A(){let a={nodes:w.apply(null,arguments),links:K.apply(null,arguments)};return function({nodes:t,links:n}){for(let[e,n]of t.entries())n.index=e,n.sourceLinks=[],n.targetLinks=[];let i=new Map(t.map((e,n)=>[S(e,n,t),e]));for(let[t,e]of n.entries()){e.index=t;let{source:n,target:r}=e;"object"!=typeof n&&(n=e.source=k(i,n)),"object"!=typeof r&&(r=e.target=k(i,r)),n.sourceLinks.push(e),r.targetLinks.push(e)}if(null!=e)for(let{sourceLinks:n,targetLinks:i}of t)n.sort(e),i.sort(e)}(a),function({nodes:t}){for(let e of t)e.value=void 0===e.fixedValue?Math.max(h(e.sourceLinks,p),h(e.targetLinks,p)):e.fixedValue}(a),function({nodes:t}){let e=t.length,n=new Set(t),i=new Set,r=0;for(;n.size;){for(let t of n)for(let{target:e}of(t.depth=r,t.sourceLinks))i.add(e);if(++r>e)throw Error("circular link");n=i,i=new Set}}(a),function({nodes:t}){let e=t.length,n=new Set(t),i=new Set,r=0;for(;n.size;){for(let t of n)for(let{source:e}of(t.height=r,t.targetLinks))i.add(e);if(++r>e)throw Error("circular link");n=i,i=new Set}}(a),function(a){let u=function({nodes:e}){let i=c(e,t=>t.depth)+1,s=(r-n-l)/(i-1),o=Array(i);for(let t of e){let e=Math.max(0,Math.min(i-1,Math.floor(E.call(null,t,i))));t.layer=e,t.x0=n+e*s,t.x1=t.x0+l,o[e]?o[e].push(t):o[e]=[t]}if(t)for(let e of o)e.sort(t);return o}(a);v=Math.min(b,(s-i)/(c(u,t=>t.length)-1));let g=o(u,t=>(s-i-(t.length-1)*v)/h(t,p));for(let t of u){let n=i;for(let e of t)for(let t of(e.y0=n,e.y1=n+e.value*g,n=e.y1+v,e.sourceLinks))t.width=t.value*g;n=(s-n+v)/(t.length+1);for(let e=0;e<t.length;++e){let i=t[e];i.y0+=n*(e+1),i.y1+=n*(e+1)}var _=t;if(void 0===e)for(let{sourceLinks:t,targetLinks:e}of _)t.sort(y),e.sort(f)}for(let e=0;e<L;++e){let n=Math.pow(.99,e),i=Math.max(1-n,(e+1)/L);(function(e,n,i){for(let r=e.length,s=r-2;s>=0;--s){let r=e[s];for(let t of r){let e=0,i=0;for(let{target:n,value:r}of t.sourceLinks){let s=r*(n.layer-t.layer);e+=function(t,e){let n=e.y0-(e.targetLinks.length-1)*v/2;for(let{source:i,width:r}of e.targetLinks){if(i===t)break;n+=r+v}for(let{target:i,width:r}of t.sourceLinks){if(i===e)break;n-=r}return n}(t,n)*s,i+=s}if(!(i>0))continue;let r=(e/i-t.y0)*n;t.y0+=r,t.y1+=r,P(t)}void 0===t&&r.sort(d),M(r,i)}})(u,n,i),function(e,n,i){for(let r=1,s=e.length;r<s;++r){let s=e[r];for(let t of s){let e=0,i=0;for(let{source:n,value:r}of t.targetLinks){let s=r*(t.layer-n.layer);e+=function(t,e){let n=t.y0-(t.sourceLinks.length-1)*v/2;for(let{target:i,width:r}of t.sourceLinks){if(i===e)break;n+=r+v}for(let{source:i,width:r}of e.targetLinks){if(i===t)break;n-=r}return n}(n,t)*s,i+=s}if(!(i>0))continue;let r=(e/i-t.y0)*n;t.y0+=r,t.y1+=r,P(t)}void 0===t&&s.sort(d),M(s,i)}}(u,n,i)}}(a),m(a),a}function M(t,e){let n=t.length>>1,r=t[n];T(t,r.y0-v,n-1,e),I(t,r.y1+v,n+1,e),T(t,s,t.length-1,e),I(t,i,0,e)}function I(t,e,n,i){for(;n<t.length;++n){let r=t[n],s=(e-r.y0)*i;s>1e-6&&(r.y0+=s,r.y1+=s),e=r.y1+v}}function T(t,e,n,i){for(;n>=0;--n){let r=t[n],s=(r.y1-e)*i;s>1e-6&&(r.y0-=s,r.y1-=s),e=r.y0-v}}function P({sourceLinks:t,targetLinks:n}){if(void 0===e){for(let{source:{sourceLinks:t}}of n)t.sort(y);for(let{target:{targetLinks:e}}of t)e.sort(f)}}return A.update=function(t){return m(t),t},A.nodeId=function(t){return arguments.length?(S="function"==typeof t?t:u(t),A):S},A.nodeAlign=function(t){return arguments.length?(E="function"==typeof t?t:u(t),A):E},A.nodeSort=function(e){return arguments.length?(t=e,A):t},A.nodeWidth=function(t){return arguments.length?(l=+t,A):l},A.nodePadding=function(t){return arguments.length?(b=v=+t,A):b},A.nodes=function(t){return arguments.length?(w="function"==typeof t?t:u(t),A):w},A.links=function(t){return arguments.length?(K="function"==typeof t?t:u(t),A):K},A.linkSort=function(t){return arguments.length?(e=t,A):e},A.size=function(t){return arguments.length?(n=i=0,r=+t[0],s=+t[1],A):[r-n,s-i]},A.extent=function(t){return arguments.length?(n=+t[0][0],r=+t[1][0],i=+t[0][1],s=+t[1][1],A):[[n,i],[r,s]]},A.iterations=function(t){return arguments.length?(L=+t,A):L},A})().nodeId(t=>t.id).nodeWidth(X).nodePadding(Y+15*!!G).nodeAlign(J).extent([[0,0],[j,z]])(H);let tt=R(H.nodes),te=(0,s.UMr)(s.zt),tn=(0,r.K)(t=>Z[t]??te(t),"getNodeColor");O.append("g").attr("class","nodes").selectAll(".node").data(H.nodes).join("g").attr("class","node").attr("id",t=>(t.uid=B.next("node-")).id).attr("transform",function(t){return"translate("+t.x0+","+t.y0+")"}).attr("x",t=>t.x0).attr("y",t=>t.y0).append("rect").attr("height",t=>t.y1-t.y0).attr("width",t=>t.x1-t.x0).attr("fill",t=>tn(t.id));let ti=(0,r.K)(({id:t,value:e})=>G?`${t}
2
+ ${W}${Math.round(100*e)/100}${V}`:t,"getText"),tr=(0,r.K)(t=>"outlined"===q?(t.layer??0)<tt?{x:t.x0-6,anchor:"end"}:{x:t.x1+6,anchor:"start"}:t.x0<j/2?{x:t.x1+6,anchor:"start"}:{x:t.x0-6,anchor:"end"},"getLabelPosition"),ts=O.append("g").attr("class","node-labels").attr("font-size",14),to=(0,r.K)(t=>ts.selectAll(t?`.${t}`:"text").data(H.nodes).join("text").attr("class",t??null).attr("x",t=>tr(t).x).attr("y",t=>(t.y1+t.y0)/2).attr("dy",`${G?"0":"0.35"}em`).attr("text-anchor",t=>tr(t).anchor).text(ti),"appendLabel");"outlined"===q?(to("sankey-label-bg"),to("sankey-label-fg")):to();let tl=O.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(H.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),ta=E?.linkColor??"gradient";if("gradient"===ta){let t=tl.append("linearGradient").attr("id",t=>(t.uid=B.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",t=>t.source.x1).attr("x2",t=>t.target.x0);t.append("stop").attr("offset","0%").attr("stop-color",t=>tn(t.source.id)),t.append("stop").attr("offset","100%").attr("stop-color",t=>tn(t.target.id))}switch(ta){case"gradient":v=(0,r.K)(t=>t.uid,"coloring");break;case"source":v=(0,r.K)(t=>tn(t.source.id),"coloring");break;case"target":v=(0,r.K)(t=>tn(t.target.id),"coloring");break;default:v=ta}tl.append("path").attr("d",(function(t){var e=I,n=T,i=A,r=M,s=null;function o(){var o,l=K.call(arguments),a=e.apply(this,l),h=n.apply(this,l);if(s||(s=o=w()),t(s,+i.apply(this,(l[0]=a,l)),+r.apply(this,l),+i.apply(this,(l[0]=h,l)),+r.apply(this,l)),o)return s=null,o+""||null}return o.source=function(t){return arguments.length?(e=t,o):e},o.target=function(t){return arguments.length?(n=t,o):n},o.x=function(t){return arguments.length?(i="function"==typeof t?t:L(+t),o):i},o.y=function(t){return arguments.length?(r="function"==typeof t?t:L(+t),o):r},o.context=function(t){return arguments.length?(s=null==t?null:t,o):s},o})(P).source($).target(N)).attr("stroke",v).attr("stroke-width",t=>Math.max(1,t.width)),(0,i.ot)(void 0,O,0,F)},"draw"),H=(0,r.K)(t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,"\n").trim(),"prepareTextForParsing"),J=(0,r.K)(t=>`.label {
3
+ font-family: ${t.fontFamily};
6
4
  }
7
- .treemapNode.leaf {
8
- stroke: ${r.leafStrokeColor};
9
- stroke-width: ${r.leafStrokeWidth};
10
- fill: ${r.leafFillColor};
5
+
6
+ .node-labels {
7
+ font-family: ${t.fontFamily};
11
8
  }
12
- .treemapLabel {
13
- fill: ${i};
14
- font-size: ${r.labelFontSize};
9
+
10
+ /* Outlined label style - background stroke for better readability */
11
+ .sankey-label-bg {
12
+ stroke: ${t.mainBkg||t.background||"#fff"};
13
+ stroke-width: 4px;
14
+ stroke-linejoin: round;
15
+ paint-order: stroke;
15
16
  }
16
- .treemapValue {
17
- fill: ${c};
18
- font-size: ${r.valueFontSize};
17
+
18
+ /* Foreground label text */
19
+ .sankey-label-fg {
20
+ fill: ${t.textColor};
19
21
  }
20
- .treemapTitle {
21
- fill: ${s};
22
- font-size: ${r.titleFontSize};
22
+
23
+ /* Node styling */
24
+ .node rect {
25
+ shape-rendering: crispEdges;
23
26
  }
24
- `},"getStyles")};a.d(t,{diagram:()=>b})}};
27
+
28
+ /* Link styling */
29
+ .link {
30
+ fill: none;
31
+ stroke-opacity: 0.5;
32
+ mix-blend-mode: multiply;
33
+ }
34
+ `,"getStyles"),tt=C.parse.bind(C);C.parse=t=>tt(H(t));var te={styles:J,parser:C,db:q,renderer:{draw:Z}}}};
@@ -0,0 +1 @@
1
+ export const __rspack_esm_id=7946;export const __rspack_esm_ids=[7946];export const __webpack_modules__={27361(e,n,r){r.d(n,{Zp:()=>rj});var t,o,i,u=r(8058),a=r(12926),c=0,d=function(e){var n=++c;return(0,a.A)(e)+n},f=r(39142),s=r(65325),v=function(e){return(null==e?0:e.length)?(0,s.A)(e,1):[]},h=r(45572),l=r(24930),g=r(21616),p=r(38446),A=function(e,n){var r=-1,t=(0,p.A)(e)?Array(e.length):[];return(0,g.A)(e,function(e,o,i){t[++r]=n(e,o,i)}),t},b=r(92049),w=function(e,n){return((0,b.A)(e)?h.A:A)(e,(0,l.A)(n,3))},y=Math.ceil,m=Math.max,x=function(e,n,r,t){for(var o=-1,i=m(y((n-e)/(r||1)),0),u=Array(i);i--;)u[t?i:++o]=e,e+=r;return u},j=r(66984),k=r(25353),O=r(23149),E=function(e,n,r){if(!(0,O.A)(r))return!1;var t=typeof n;return("number"==t?!!((0,p.A)(r)&&(0,k.A)(n,r.length)):"string"==t&&n in r)&&(0,j.A)(r[n],e)},_=/\s/,P=function(e){for(var n=e.length;n--&&_.test(e.charAt(n)););return n},N=/^\s+/,M=r(61882),R=/^[-+]0x[0-9a-f]+$/i,L=/^0b[01]+$/i,C=/^0o[0-7]+$/i,T=parseInt,S=function(e){if("number"==typeof e)return e;if((0,M.A)(e))return 0/0;if((0,O.A)(e)){var n,r="function"==typeof e.valueOf?e.valueOf():e;e=(0,O.A)(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=(n=e)?n.slice(0,P(n)+1).replace(N,""):n;var t=L.test(e);return t||C.test(e)?T(e.slice(2),t?2:8):R.test(e)?0/0:+e},B=function(e){return e?1/0===(e=S(e))||-1/0===e?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0},I=function(e,n,r){return r&&"number"!=typeof r&&E(e,n,r)&&(n=r=void 0),e=B(e),void 0===n?(n=e,e=0):n=B(n),r=void 0===r?e<n?1:-1:B(r),x(e,n,r,void 0)},G=r(697);class F{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,n=e._prev;if(n!==e)return U(n),n}enqueue(e){var n=this._sentinel;e._prev&&e._next&&U(e),e._next=n._next,n._next._prev=e,n._next=e,e._prev=n}toString(){for(var e=[],n=this._sentinel,r=n._prev;r!==n;)e.push(JSON.stringify(r,q)),r=r._prev;return"["+e.join(", ")+"]"}}function U(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function q(e,n){if("_next"!==e&&"_prev"!==e)return n}var D=f.A(1);function z(e,n,r,t,o){var i=o?[]:void 0;return u.A(e.inEdges(t.v),function(t){var u=e.edge(t),a=e.node(t.v);o&&i.push({v:t.v,w:t.w}),a.out-=u,V(n,r,a)}),u.A(e.outEdges(t.v),function(t){var o=e.edge(t),i=t.w,u=e.node(i);u.in-=o,V(n,r,u)}),e.removeNode(t.v),i}function V(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}var $=r(74743),J=r(84171),W=function(e,n,r){"__proto__"==n&&J.A?(0,J.A)(e,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[n]=r},Z=function(e,n,r){(void 0===r||(0,j.A)(e[n],r))&&(void 0!==r||n in e)||W(e,n,r)},H=r(62022),K=r(41917),Q="object"==typeof exports&&exports&&!exports.nodeType&&exports,X=Q&&"object"==typeof module&&module&&!module.nodeType&&module,Y=X&&X.exports===Q?K.A.Buffer:void 0,ee=Y?Y.allocUnsafe:void 0,en=function(e,n){if(n)return e.slice();var r=e.length,t=ee?ee(r):new e.constructor(r);return e.copy(t),t},er=r(43988),et=function(e){var n=new e.constructor(e.byteLength);return new er.A(n).set(new er.A(e)),n},eo=function(e,n){var r=n?et(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},ei=function(e,n){var r=-1,t=e.length;for(n||(n=Array(t));++r<t;)n[r]=e[r];return n},eu=Object.create,ea=function(){function e(){}return function(n){if(!(0,O.A)(n))return{};if(eu)return eu(n);e.prototype=n;var r=new e;return e.prototype=void 0,r}}(),ec=(0,r(40367).A)(Object.getPrototypeOf,Object),ed=r(97271),ef=function(e){return"function"!=typeof e.constructor||(0,ed.A)(e)?{}:ea(ec(e))},es=r(58390),ev=r(53533),eh=r(91223),el=r(89610),eg=r(47627),ep=r(53098),eA=Object.prototype,eb=Function.prototype.toString,ew=eA.hasOwnProperty,ey=eb.call(Object),em=function(e){if(!(0,ep.A)(e)||"[object Object]"!=(0,eg.A)(e))return!1;var n=ec(e);if(null===n)return!0;var r=ew.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&eb.call(r)==ey},ex=r(96212),ej=function(e,n){if(("constructor"!==n||"function"!=typeof e[n])&&"__proto__"!=n)return e[n]},ek=Object.prototype.hasOwnProperty,eO=function(e,n,r){var t=e[n];ek.call(e,n)&&(0,j.A)(t,r)&&(void 0!==r||n in e)||W(e,n,r)},eE=function(e,n,r,t){var o=!r;r||(r={});for(var i=-1,u=n.length;++i<u;){var a=n[i],c=t?t(r[a],e[a],a,r,e):void 0;void 0===c&&(c=e[a]),o?W(r,a,c):eO(r,a,c)}return r},e_=r(10518),eP=function(e){var n=[];if(null!=e)for(var r in Object(e))n.push(r);return n},eN=Object.prototype.hasOwnProperty,eM=function(e){if(!(0,O.A)(e))return eP(e);var n=(0,ed.A)(e),r=[];for(var t in e)"constructor"==t&&(n||!eN.call(e,t))||r.push(t);return r},eR=function(e){return(0,p.A)(e)?(0,e_.A)(e,!0):eM(e)},eL=function(e,n,r,t,o,i,u){var a=ej(e,r),c=ej(n,r),d=u.get(c);if(d)return void Z(e,r,d);var f=i?i(a,c,r+"",e,n,u):void 0,s=void 0===f;if(s){var v=(0,b.A)(c),h=!v&&(0,eh.A)(c),l=!v&&!h&&(0,ex.A)(c);(f=c,v||h||l)?(0,b.A)(a)?f=a:(0,ev.A)(a)?f=ei(a):h?(s=!1,f=en(c,!0)):l?(s=!1,f=eo(c,!0)):f=[]:em(c)||(0,es.A)(c)?(f=a,(0,es.A)(a))?f=eE(a,eR(a)):(!(0,O.A)(a)||(0,el.A)(a))&&(f=ef(c)):s=!1}s&&(u.set(c,f),o(f,c,t,i,u),u.delete(c)),Z(e,r,f)},eC=function e(n,r,t,o,i){n!==r&&(0,H.A)(r,function(u,a){if(i||(i=new $.A),(0,O.A)(u))eL(n,r,a,t,e,o,i);else{var c=o?o(ej(n,a),u,a+"",n,r,i):void 0;void 0===c&&(c=u),Z(n,a,c)}},eR)},eT=r(1945),eS=(t=function(e,n,r){eC(e,n,r)},(0,eT.A)(function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,u=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&E(n[0],n[1],u)&&(i=o<3?void 0:i,o=1),e=Object(e);++r<o;){var a=n[r];a&&t(e,a,r)}return e})),eB=r(66318),eI=r(46008),eG=r(30901),eF=function(e,n,r,t){if(!(0,O.A)(e))return e;n=(0,eI.A)(n,e);for(var o=-1,i=n.length,u=i-1,a=e;null!=a&&++o<i;){var c=(0,eG.A)(n[o]),d=r;if("__proto__"===c||"constructor"===c||"prototype"===c)break;if(o!=u){var f=a[c];void 0===(d=t?t(f,c,a):void 0)&&(d=(0,O.A)(f)?f:(0,k.A)(n[o+1])?[]:{})}eO(a,c,d),a=a[c]}return e},eU=function(e,n,r){for(var t=-1,o=n.length,i={};++t<o;){var u=n[t],a=(0,eB.A)(e,u);r(a,u)&&eF(i,(0,eI.A)(u,e),a)}return i},eq=r(30005),eD=r(22254),ez=r(88551),eV=(o=function(e,n){return null==e?{}:eU(e,n,function(n,r){return(0,eq.A)(e,r)})},(0,ez.A)((0,eD.A)(o,void 0,v),o+"")),e$=Object.prototype,eJ=e$.hasOwnProperty,eW=(0,eT.A)(function(e,n){e=Object(e);var r=-1,t=n.length,o=t>2?n[2]:void 0;for(o&&E(n[0],n[1],o)&&(t=1);++r<t;)for(var i=n[r],u=eR(i),a=-1,c=u.length;++a<c;){var d=u[a],f=e[d];(void 0===f||(0,j.A)(f,e$[d])&&!eJ.call(e,d))&&(e[d]=i[d])}return e}),eZ=function(e,n,r){for(var t=-1,o=e.length;++t<o;){var i=e[t],u=n(i);if(null!=u&&(void 0===a?u==u&&!(0,M.A)(u):r(u,a)))var a=u,c=i}return c},eH=function(e,n){return e>n},eK=r(29008),eQ=function(e){return e&&e.length?eZ(e,eK.A,eH):void 0},eX=function(e){var n=null==e?0:e.length;return n?e[n-1]:void 0},eY=r(79841),e0=function(e,n){var r={};return n=(0,l.A)(n,3),(0,eY.A)(e,function(e,t,o){W(r,t,n(e,t,o))}),r},e1=r(69592),e2=function(e,n){return e<n},e3=function(e){return e&&e.length?eZ(e,eK.A,e2):void 0},e4=Object.prototype.hasOwnProperty,e6=function(e,n){return null!=e&&e4.call(e,n)},e8=r(85054),e9=function(e,n){return null!=e&&(0,e8.A)(e,n,e6)},e5=function(){return K.A.Date.now()};function e7(e,n,r,t){var o;do o=d(t);while(e.hasNode(o))return r.dummy=n,e.setNode(o,r),o}function ne(e){var n=new G.T({multigraph:e.isMultigraph()}).setGraph(e.graph());return u.A(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),u.A(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function nn(e,n){var r,t,o=e.x,i=e.y,u=n.x-o,a=n.y-i,c=e.width/2,d=e.height/2;if(!u&&!a)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(a)*c>Math.abs(u)*d?(a<0&&(d=-d),r=d*u/a,t=d):(u<0&&(c=-c),r=c,t=c*a/u),{x:o+r,y:i+t}}function nr(e){var n=w(I(no(e)+1),function(){return[]});return u.A(e.nodes(),function(r){var t=e.node(r),o=t.rank;e1.A(o)||(n[o][t.order]=r)}),n}function nt(e,n,r,t){var o={width:0,height:0};return arguments.length>=4&&(o.rank=r,o.order=t),e7(e,"border",o,n)}function no(e){return eQ(w(e.nodes(),function(n){var r=e.node(n).rank;if(!e1.A(r))return r}))}function ni(e,n){var r=e5();try{return n()}finally{console.log(e+" time: "+(e5()-r)+"ms")}}function nu(e,n){return n()}function na(e,n,r,t,o,i){var u=o[n][i-1],a=e7(e,"border",{width:0,height:0,rank:i,borderType:n},r);o[n][i]=a,e.setParent(a,t),u&&e.setEdge(u,a,{weight:1})}function nc(e){u.A(e.nodes(),function(n){nd(e.node(n))}),u.A(e.edges(),function(n){nd(e.edge(n))})}function nd(e){var n=e.width;e.width=e.height,e.height=n}function nf(e){e.y=-e.y}function ns(e){var n=e.x;e.x=e.y,e.y=n}var nv=function(e,n){return e&&e.length?eZ(e,(0,l.A)(n,2),e2):void 0};function nh(e){var n={};u.A(e.sources(),function r(t){var o=e.node(t);if(Object.prototype.hasOwnProperty.call(n,t))return o.rank;n[t]=!0;var i=e3(w(e.outEdges(t),function(n){return r(n.w)-e.edge(n).minlen}));return(1/0===i||null==i)&&(i=0),o.rank=i})}function nl(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function ng(e){var n,r,t,o,i=new G.T({directed:!1}),a=e.nodes()[0],c=e.nodeCount();for(i.setNode(a,{});n=i,r=e,u.A(n.nodes(),function e(t){u.A(r.nodeEdges(t),function(o){var i=o.v,u=t===i?o.w:i;n.hasNode(u)||nl(r,o)||(n.setNode(u,{}),n.setEdge(t,u,{}),e(u))})}),n.nodeCount()<c;)t=function(e,n){return nv(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return nl(n,r)})}(i,e),o=i.hasNode(t.v)?nl(e,t):-nl(e,t),function(e,n,r){u.A(e.nodes(),function(e){n.node(e).rank+=r})}(i,e,o);return i}var np=r(27422),nA=r(25707),nb=function(e){var n=B(e),r=n%1;return n==n?r?n-r:n:0},nw=Math.max,ny=(i=function(e,n,r){var t=null==e?0:e.length;if(!t)return -1;var o=null==r?0:nb(r);return o<0&&(o=nw(t+o,0)),(0,nA.A)(e,(0,l.A)(n,3),o)},function(e,n,r){var t=Object(e);if(!(0,p.A)(e)){var o=(0,l.A)(n,3);e=(0,np.A)(e),n=function(e){return o(t[e],e,t)}}var u=i(e,n,r);return u>-1?t[o?e[u]:u]:void 0}),nm=r(41629);f.A(1),f.A(1);var nx=r(54418),nj=r(20351),nk=(0,r(70805).A)("length"),nO=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),nE="\\ud800-\\udfff",n_="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",nP="\\ud83c[\\udffb-\\udfff]",nN="[^"+nE+"]",nM="(?:\\ud83c[\\udde6-\\uddff]){2}",nR="[\\ud800-\\udbff][\\udc00-\\udfff]",nL="(?:"+n_+"|"+nP+")?",nC="[\\ufe0e\\ufe0f]?",nT="(?:\\u200d(?:"+[nN,nM,nR].join("|")+")"+nC+nL+")*",nS=RegExp(nP+"(?="+nP+")|"+("(?:"+[nN+n_+"?",n_,nM,nR,"["+nE+"]"].join("|"))+")"+(nC+nL+nT),"g");function nB(){}function nI(e,n,r){b.A(n)||(n=[n]);var t=(e.isDirected()?e.successors:e.neighbors).bind(e),o=[],i={};return u.A(n,function(n){if(!e.hasNode(n))throw Error("Graph does not have node: "+n);!function e(n,r,t,o,i,a){!Object.prototype.hasOwnProperty.call(o,r)&&(o[r]=!0,t||a.push(r),u.A(i(r),function(r){e(n,r,t,o,i,a)}),t&&a.push(r))}(e,n,"post"===r,i,t,o)}),o}function nG(e){n=e,r=new G.T().setGraph(n.graph()),u.A(n.nodes(),function(e){r.setNode(e,n.node(e))}),u.A(n.edges(),function(e){var t=r.edge(e.v,e.w)||{weight:0,minlen:1},o=n.edge(e);r.setEdge(e.v,e.w,{weight:t.weight+o.weight,minlen:Math.max(t.minlen,o.minlen)})}),nh(e=r);var n,r,t,o,i=ng(e);for(nq(i),nF(i,e);t=nD(i);)o=nz(i,e,t),nV(i,e,t,o)}function nF(e,n){var r=nI(e,e.nodes(),"post");r=r.slice(0,r.length-1),u.A(r,function(r){var t,o,i,u;t=e,o=n,i=r,u=t.node(i).parent,t.edge(i,u).cutvalue=nU(t,o,i)})}function nU(e,n,r){var t=e.node(r).parent,o=!0,i=n.edge(r,t),a=0;return i||(o=!1,i=n.edge(t,r)),a=i.weight,u.A(n.nodeEdges(r),function(i){var u=i.v===r,c=u?i.w:i.v;if(c!==t){var d,f,s,v=u===o,h=n.edge(i).weight;if(a+=v?h:-h,d=e,f=r,s=c,d.hasEdge(f,s)){var l=e.edge(r,c).cutvalue;a+=v?-l:l}}}),a}function nq(e,n){arguments.length<2&&(n=e.nodes()[0]),function e(n,r,t,o,i){var a=t,c=n.node(o);return r[o]=!0,u.A(n.neighbors(o),function(i){Object.prototype.hasOwnProperty.call(r,i)||(t=e(n,r,t,i,o))}),c.low=a,c.lim=t++,i?c.parent=i:delete c.parent,t}(e,{},1,n)}function nD(e){return ny(e.edges(),function(n){return e.edge(n).cutvalue<0})}function nz(e,n,r){var t=r.v,o=r.w;n.hasEdge(t,o)||(t=r.w,o=r.v);var i=e.node(t),u=e.node(o),a=i,c=!1;return i.lim>u.lim&&(a=u,c=!0),nv(nm.A(n.edges(),function(n){return c===n$(e,e.node(n.v),a)&&c!==n$(e,e.node(n.w),a)}),function(e){return nl(n,e)})}function nV(e,n,r,t){var o,i,a,c,d=r.v,f=r.w;e.removeEdge(d,f),e.setEdge(t.v,t.w,{}),nq(e),nF(e,n),o=e,i=n,a=ny(o.nodes(),function(e){return!i.node(e).parent}),c=(c=nI(o,a,"pre")).slice(1),u.A(c,function(e){var n=o.node(e).parent,r=i.edge(e,n),t=!1;r||(r=i.edge(n,e),t=!0),i.node(e).rank=i.node(n).rank+(t?r.minlen:-r.minlen)})}function n$(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}nB.prototype=Error(),r(15219),nG.initLowLimValues=nq,nG.initCutValues=nF,nG.calcCutValue=nU,nG.leaveEdge=nD,nG.enterEdge=nz,nG.exchangeEdges=nV;var nJ=r(74899),nW=r(6517),nZ=r(72641),nH=r(14792),nK=r(76912),nQ=r(13153),nX=Object.getOwnPropertySymbols?function(e){for(var n=[];e;)(0,nK.A)(n,(0,nH.A)(e)),e=ec(e);return n}:nQ.A,nY=r(19042),n0=r(33831),n1=function(e){return(0,n0.A)(e,eR,nX)},n2=Object.prototype.hasOwnProperty,n3=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&n2.call(e,"index")&&(r.index=e.index,r.input=e.input),r},n4=function(e,n){var r=n?et(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)},n6=/\w*$/,n8=function(e){var n=new e.constructor(e.source,n6.exec(e));return n.lastIndex=e.lastIndex,n},n9=r(241),n5=n9.A?n9.A.prototype:void 0,n7=n5?n5.valueOf:void 0,re=function(e,n,r){var t=e.constructor;switch(n){case"[object ArrayBuffer]":return et(e);case"[object Boolean]":case"[object Date]":return new t(+e);case"[object DataView]":return n4(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return eo(e,r);case"[object Map]":case"[object Set]":return new t;case"[object Number]":case"[object String]":return new t(e);case"[object RegExp]":return n8(e);case"[object Symbol]":return n7?Object(n7.call(e)):{}}},rn=r(52789),rr=r(64841),rt=rr.A&&rr.A.isMap,ro=rt?(0,rn.A)(rt):function(e){return(0,ep.A)(e)&&"[object Map]"==(0,nj.A)(e)},ri=rr.A&&rr.A.isSet,ru=ri?(0,rn.A)(ri):function(e){return(0,ep.A)(e)&&"[object Set]"==(0,nj.A)(e)},ra="[object Arguments]",rc="[object Function]",rd="[object Object]",rf={};rf[ra]=rf["[object Array]"]=rf["[object ArrayBuffer]"]=rf["[object DataView]"]=rf["[object Boolean]"]=rf["[object Date]"]=rf["[object Float32Array]"]=rf["[object Float64Array]"]=rf["[object Int8Array]"]=rf["[object Int16Array]"]=rf["[object Int32Array]"]=rf["[object Map]"]=rf["[object Number]"]=rf[rd]=rf["[object RegExp]"]=rf["[object Set]"]=rf["[object String]"]=rf["[object Symbol]"]=rf["[object Uint8Array]"]=rf["[object Uint8ClampedArray]"]=rf["[object Uint16Array]"]=rf["[object Uint32Array]"]=!0,rf["[object Error]"]=rf[rc]=rf["[object WeakMap]"]=!1;var rs=function e(n,r,t,o,i,u){var a,c=1&r,d=2&r,f=4&r;if(t&&(a=i?t(n,o,i,u):t(n)),void 0!==a)return a;if(!(0,O.A)(n))return n;var s=(0,b.A)(n);if(s){if(a=n3(n),!c)return ei(n,a)}else{var v,h,l,g,p=(0,nj.A)(n),A=p==rc||"[object GeneratorFunction]"==p;if((0,eh.A)(n))return en(n,c);if(p==rd||p==ra||A&&!i){if(a=d||A?{}:ef(n),!c)return d?(h=(v=a)&&eE(n,eR(n),v),eE(n,nX(n),h)):(g=(l=a)&&eE(n,(0,np.A)(n),l),eE(n,(0,nH.A)(n),g))}else{if(!rf[p])return i?n:{};a=re(n,p,c)}}u||(u=new $.A);var w=u.get(n);if(w)return w;u.set(n,a),ru(n)?n.forEach(function(o){a.add(e(o,r,t,o,n,u))}):ro(n)&&n.forEach(function(o,i){a.set(i,e(o,r,t,i,n,u))});var y=f?d?n1:nY.A:d?eR:np.A,m=s?void 0:y(n);return(0,nZ.A)(m||n,function(o,i){m&&(o=n[i=o]),eO(a,i,e(o,r,t,i,n,u))}),a},rv=function(e,n,r){for(var t=-1,o=e.length,i=n.length,u={};++t<o;){var a=t<i?n[t]:void 0;r(u,e[t],a)}return u},rh=function(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e},rl=function(e,n){if(e!==n){var r=void 0!==e,t=null===e,o=e==e,i=(0,M.A)(e),u=void 0!==n,a=null===n,c=n==n,d=(0,M.A)(n);if(!a&&!d&&!i&&e>n||i&&u&&c&&!a&&!d||t&&u&&c||!r&&c||!o)return 1;if(!t&&!i&&!d&&e<n||d&&r&&o&&!t&&!i||a&&r&&o||!u&&o||!c)return -1}return 0},rg=function(e,n,r){for(var t=-1,o=e.criteria,i=n.criteria,u=o.length,a=r.length;++t<u;){var c=rl(o[t],i[t]);if(c){if(t>=a)return c;return c*("desc"==r[t]?-1:1)}}return e.index-n.index},rp=function(e,n,r){n=n.length?(0,h.A)(n,function(e){return(0,b.A)(e)?function(n){return(0,eB.A)(n,1===e.length?e[0]:e)}:e}):[eK.A];var t=-1;return n=(0,h.A)(n,(0,rn.A)(l.A)),rh(A(e,function(e,r,o){return{criteria:(0,h.A)(n,function(n){return n(e)}),index:++t,value:e}}),function(e,n){return rg(e,n,r)})},rA=(0,eT.A)(function(e,n){if(null==e)return[];var r=n.length;return r>1&&E(e,n[0],n[1])?n=[]:r>2&&E(n[0],n[1],n[2])&&(n=[n[0]]),rp(e,(0,s.A)(n,1),[])});function rb(e,n,r){for(var t;n.length&&(t=eX(n)).i<=r;)n.pop(),e.push(t.vs),r++;return r}function rw(e,n,r){return w(n,function(n){var t,o;return t=function(e){for(var n;e.hasNode(n=d("_root")););return n}(e),o=new G.T({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(n){return e.node(n)}),u.A(e.nodes(),function(i){var a=e.node(i),c=e.parent(i);(a.rank===n||a.minRank<=n&&n<=a.maxRank)&&(o.setNode(i),o.setParent(i,c||t),u.A(e[r](i),function(n){var r=n.v===i?n.w:n.v,t=o.edge(r,i),u=e1.A(t)?0:t.weight;o.setEdge(r,i,{weight:e.edge(n).weight+u})}),Object.prototype.hasOwnProperty.call(a,"minRank")&&o.setNode(i,{borderLeft:a.borderLeft[n],borderRight:a.borderRight[n]}))}),o})}function ry(e,n){u.A(n,function(n){u.A(n,function(n,r){e.node(n).order=r})})}var rm=r(99922);function rx(e,n,r){if(n>r){var t=n;n=r,r=t}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0}),Object.defineProperty(e[n],r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function rj(e,n){var r=n&&n.debugTiming?ni:nu;r("layout",()=>{var n=r(" buildLayoutGraph",()=>{var n,r,t;return n=e,r=new G.T({multigraph:!0,compound:!0}),t=rC(n.graph()),r.setGraph(eS({},rO,rL(t,rk),eV(t,rE))),u.A(n.nodes(),function(e){var t=rC(n.node(e));r.setNode(e,eW(rL(t,r_),rP)),r.setParent(e,n.parent(e))}),u.A(n.edges(),function(e){var t=rC(n.edge(e));r.setEdge(e,eS({},rM,rL(t,rN),eV(t,rR)))}),r});r(" runLayout",()=>{var e,t;return e=n,void((t=r)(" makeSpaceForEdgeLabels",()=>{var n,r;return r=(n=e).graph(),void(r.ranksep/=2,u.A(n.edges(),function(e){var t=n.edge(e);t.minlen*=2,"c"!==t.labelpos.toLowerCase()&&("TB"===r.rankdir||"BT"===r.rankdir?t.width+=t.labeloffset:t.height+=t.labeloffset)}))}),t(" removeSelfEdges",()=>{var n;return n=e,void u.A(n.edges(),function(e){if(e.v===e.w){var r=n.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:e,label:n.edge(e)}),n.removeEdge(e)}})}),t(" acyclic",()=>{var n,r,t,o,i,a;return n="greedy"===e.graph().acyclicer?function(e,n){if(1>=e.nodeCount())return[];var r,t,o,i,a,c,d,f=(r=e,t=n||D,o=new G.T,i=0,a=0,u.A(r.nodes(),function(e){o.setNode(e,{v:e,in:0,out:0})}),u.A(r.edges(),function(e){var n=o.edge(e.v,e.w)||0,r=t(e);o.setEdge(e.v,e.w,n+r),a=Math.max(a,o.node(e.v).out+=r),i=Math.max(i,o.node(e.w).in+=r)}),c=I(a+i+3).map(function(){return new F}),d=i+1,u.A(o.nodes(),function(e){V(c,d,o.node(e))}),{graph:o,buckets:c,zeroIdx:d});return v(w(function(e,n,r){for(var t,o=[],i=n[n.length-1],u=n[0];e.nodeCount();){for(;t=u.dequeue();)z(e,n,r,t);for(;t=i.dequeue();)z(e,n,r,t);if(e.nodeCount()){for(var a=n.length-2;a>0;--a)if(t=n[a].dequeue()){o=o.concat(z(e,n,r,t,!0));break}}}return o}(f.graph,f.buckets,f.zeroIdx),function(n){return e.outEdges(n.v,n.w)}))}(e,(r=e,function(e){return r.edge(e).weight})):(t=e,o=[],i={},a={},u.A(t.nodes(),function e(n){Object.prototype.hasOwnProperty.call(a,n)||(a[n]=!0,i[n]=!0,u.A(t.outEdges(n),function(n){Object.prototype.hasOwnProperty.call(i,n.w)?o.push(n):e(n.w)}),delete i[n])}),o),void u.A(n,function(n){var r=e.edge(n);e.removeEdge(n),r.forwardName=n.name,r.reversed=!0,e.setEdge(n.w,n.v,r,d("rev"))})}),t(" nestingGraph.run",()=>{var n,r,t,o,i,a,c,d;return n=e7(e,"root",{},"_root"),a=e,c={},u.A(a.children(),function(e){!function e(n,r){var t=a.children(n);t&&t.length&&u.A(t,function(n){e(n,r+1)}),c[n]=r}(e,1)}),r=c,o=2*(t=eQ(nJ.A(r))-1)+1,e.graph().nestingRoot=n,u.A(e.edges(),function(n){e.edge(n).minlen*=o}),i=(d=e,nW.A(d.edges(),function(e,n){return e+d.edge(n).weight},0)+1),void(u.A(e.children(),function(a){!function e(n,r,t,o,i,a,c){var d=n.children(c);if(!d.length){c!==r&&n.setEdge(r,c,{weight:0,minlen:t});return}var f=nt(n,"_bt"),s=nt(n,"_bb"),v=n.node(c);n.setParent(f,c),v.borderTop=f,n.setParent(s,c),v.borderBottom=s,u.A(d,function(u){e(n,r,t,o,i,a,u);var d=n.node(u),v=d.borderTop?d.borderTop:u,h=d.borderBottom?d.borderBottom:u,l=d.borderTop?o:2*o,g=v!==h?1:i-a[c]+1;n.setEdge(f,v,{weight:l,minlen:g,nestingEdge:!0}),n.setEdge(h,s,{weight:l,minlen:g,nestingEdge:!0})}),n.parent(c)||n.setEdge(r,f,{weight:0,minlen:i+a[c]})}(e,n,o,i,t,r,a)}),e.graph().nodeRankFactor=o)}),t(" rank",()=>(function(e){switch(e.graph().ranker){case"network-simplex":default:nG(e);break;case"tight-tree":var n;nh(n=e),ng(n);break;case"longest-path":nh(e)}})(ne(e))),t(" injectEdgeLabelProxies",()=>{var n;return n=e,void u.A(n.edges(),function(e){var r=n.edge(e);if(r.width&&r.height){var t=n.node(e.v),o={rank:(n.node(e.w).rank-t.rank)/2+t.rank,e:e};e7(n,"edge-proxy",o,"_ep")}})}),t(" removeEmptyRanks",()=>{var n,r,t,o;return n=e3(w(e.nodes(),function(n){return e.node(n).rank})),r=[],u.A(e.nodes(),function(t){var o=e.node(t).rank-n;r[o]||(r[o]=[]),r[o].push(t)}),t=0,o=e.graph().nodeRankFactor,void u.A(r,function(n,r){e1.A(n)&&r%o!=0?--t:t&&u.A(n,function(n){e.node(n).rank+=t})})}),t(" nestingGraph.cleanup",()=>{var n;return n=e.graph(),void(e.removeNode(n.nestingRoot),delete n.nestingRoot,u.A(e.edges(),function(n){e.edge(n).nestingEdge&&e.removeEdge(n)}))}),t(" normalizeRanks",()=>{var n;return n=e3(w(e.nodes(),function(n){return e.node(n).rank})),void u.A(e.nodes(),function(r){var t=e.node(r);e9(t,"rank")&&(t.rank-=n)})}),t(" assignRankMinMax",()=>{var n,r;return n=e,r=0,void(u.A(n.nodes(),function(e){var t=n.node(e);t.borderTop&&(t.minRank=n.node(t.borderTop).rank,t.maxRank=n.node(t.borderBottom).rank,r=eQ(r,t.maxRank))}),n.graph().maxRank=r)}),t(" removeEdgeLabelProxies",()=>{var n;return n=e,void u.A(n.nodes(),function(e){var r=n.node(e);"edge-proxy"===r.dummy&&(n.edge(r.e).labelRank=r.rank,n.removeNode(e))})}),t(" normalize.run",()=>{e.graph().dummyChains=[],u.A(e.edges(),function(n){!function(e,n){var r,t,o=n.v,i=e.node(o).rank,u=n.w,a=e.node(u).rank,c=n.name,d=e.edge(n),f=d.labelRank;if(a!==i+1){e.removeEdge(n);var s=void 0;for(t=0,++i;i<a;++t,++i)d.points=[],r=e7(e,"edge",s={width:0,height:0,edgeLabel:d,edgeObj:n,rank:i},"_d"),i===f&&(s.width=d.width,s.height=d.height,s.dummy="edge-label",s.labelpos=d.labelpos),e.setEdge(o,r,{weight:d.weight},c),0===t&&e.graph().dummyChains.push(r),o=r;e.setEdge(o,u,{weight:d.weight},c)}}(e,n)})}),t(" parentDummyChains",()=>{var n,r,t,o;return r=e,t={},o=0,u.A(r.children(),function e(n){var i=o;u.A(r.children(n),e),t[n]={low:i,lim:o++}}),n=t,void u.A(e.graph().dummyChains,function(r){for(var t=e.node(r),o=t.edgeObj,i=function(e,n,r,t){var o,i,u=[],a=[],c=Math.min(n[r].low,n[t].low),d=Math.max(n[r].lim,n[t].lim);o=r;do u.push(o=e.parent(o));while(o&&(n[o].low>c||d>n[o].lim))for(i=o,o=t;(o=e.parent(o))!==i;)a.push(o);return{path:u.concat(a.reverse()),lca:i}}(e,n,o.v,o.w),u=i.path,a=i.lca,c=0,d=u[0],f=!0;r!==o.w;){if(t=e.node(r),f){for(;(d=u[c])!==a&&e.node(d).maxRank<t.rank;)c++;d===a&&(f=!1)}if(!f){for(;c<u.length-1&&e.node(d=u[c+1]).minRank<=t.rank;)c++;d=u[c]}e.setParent(r,d),r=e.successors(r)[0]}})}),t(" addBorderSegments",()=>{u.A(e.children(),function n(r){var t=e.children(r),o=e.node(r);if(t.length&&u.A(t,n),Object.prototype.hasOwnProperty.call(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var i=o.minRank,a=o.maxRank+1;i<a;++i)na(e,"borderLeft","_bl",r,o,i),na(e,"borderRight","_br",r,o,i)}})}),t(" order",()=>(function(e){var n=no(e),r=rw(e,I(1,n+1),"inEdges"),t=rw(e,I(n-1,-1,-1),"outEdges"),o=(i={},c=eQ(w(a=nm.A(e.nodes(),function(n){return!e.children(n).length}),function(n){return e.node(n).rank})),d=w(I(c+1),function(){return[]}),f=rA(a,function(n){return e.node(n).rank}),u.A(f,function n(r){e9(i,r)||(i[r]=!0,d[e.node(r).rank].push(r),u.A(e.successors(r),n))}),d);ry(e,o);for(var i,a,c,d,f,s,h=1/0,l=0,g=0;g<4;++l,++g){(function(e,n){var r=new G.T;u.A(e,function(e){var t,o,i,a=e.graph().root,c=function e(n,r,t,o){var i,a,c,d,f,s,h,l,g,p,A,b=n.children(r),y=n.node(r),m=y?y.borderLeft:void 0,x=y?y.borderRight:void 0,j={};m&&(b=nm.A(b,function(e){return e!==m&&e!==x}));var k=w(b,function(e){var r=n.inEdges(e);if(!r.length)return{v:e};var t=nW.A(r,function(e,r){var t=n.edge(r),o=n.node(r.v);return{sum:e.sum+t.weight*o.order,weight:e.weight+t.weight}},{sum:0,weight:0});return{v:e,barycenter:t.sum/t.weight,weight:t.weight}});u.A(k,function(r){if(n.children(r.v).length){var i,u,a=e(n,r.v,t,o);j[r.v]=a,Object.prototype.hasOwnProperty.call(a,"barycenter")&&(i=r,u=a,e1.A(i.barycenter)?(i.barycenter=u.barycenter,i.weight=u.weight):(i.barycenter=(i.barycenter*i.weight+u.barycenter*u.weight)/(i.weight+u.weight),i.weight+=u.weight))}});var O=(i={},u.A(k,function(e,n){var r=i[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:n};e1.A(e.barycenter)||(r.barycenter=e.barycenter,r.weight=e.weight)}),u.A(t.edges(),function(e){var n=i[e.v],r=i[e.w];e1.A(n)||e1.A(r)||(r.indegree++,n.out.push(i[e.w]))}),function(e){for(var n=[];e.length;){var r=e.pop();n.push(r),u.A(r.in.reverse(),function(e){return function(n){!n.merged&&(e1.A(n.barycenter)||e1.A(e.barycenter)||n.barycenter>=e.barycenter)&&function(e,n){var r=0,t=0;e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/t,e.weight=t,e.i=Math.min(n.i,e.i),n.merged=!0}(e,n)}}(r)),u.A(r.out,function(n){return function(r){r.in.push(n),0==--r.indegree&&e.push(r)}}(r))}return w(nm.A(n,function(e){return!e.merged}),function(e){return eV(e,["vs","i","barycenter","weight"])})}(nm.A(i,function(e){return!e.indegree})));!function(e,n){u.A(e,function(e){e.vs=v(e.vs.map(function(e){return n[e]?n[e].vs:e}))})}(O,j);var E=(f=(a=function(e){return Object.prototype.hasOwnProperty.call(e,"barycenter")},c={lhs:[],rhs:[]},u.A(O,function(e){a(e)?c.lhs.push(e):c.rhs.push(e)}),d=c).lhs,s=rA(d.rhs,function(e){return-e.i}),h=[],l=0,g=0,p=0,f.sort(function(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}(!!o)),p=rb(h,s,p),u.A(f,function(e){p+=e.vs.length,h.push(e.vs),l+=e.barycenter*e.weight,g+=e.weight,p=rb(h,s,p)}),A={vs:v(h)},g&&(A.barycenter=l/g,A.weight=g),A);if(m&&(E.vs=v([m,E.vs,x]),n.predecessors(m).length)){var _=n.node(n.predecessors(m)[0]),P=n.node(n.predecessors(x)[0]);Object.prototype.hasOwnProperty.call(E,"barycenter")||(E.barycenter=0,E.weight=0),E.barycenter=(E.barycenter*E.weight+_.order+P.order)/(E.weight+2),E.weight+=2}return E}(e,a,r,n);u.A(c.vs,function(n,r){e.node(n).order=r}),t=c.vs,i={},u.A(t,function(n){for(var t,u,a=e.parent(n);a;){if((t=e.parent(a))?(u=i[t],i[t]=a):(u=o,o=a),u&&u!==a)return void r.setEdge(u,a);a=t}})})})(l%2?r:t,l%4>=2),o=nr(e);var p=function(e,n){for(var r=0,t=1;t<n.length;++t)r+=function(e,n,r){for(var t=rv(r||[],w(r,function(e,n){return n})||[],eO),o=v(w(n,function(n){return rA(w(e.outEdges(n),function(n){return{pos:t[n.w],weight:e.edge(n).weight}}),"pos")})),i=1;i<r.length;)i<<=1;var a=2*i-1;i-=1;var c=w(Array(a),function(){return 0}),d=0;return u.A(o.forEach(function(e){var n=e.pos+i;c[n]+=e.weight;for(var r=0;n>0;)n%2&&(r+=c[n+1]),n=n-1>>1,c[n]+=e.weight;d+=e.weight*r})),d}(e,n[t-1],n[t]);return r}(e,o);p<h&&(g=0,s=rs(o,5),h=p)}ry(e,s)})(e)),t(" insertSelfEdges",()=>{var n,r;return r=nr(n=e),void u.A(r,function(e){var r=0;u.A(e,function(e,t){var o=n.node(e);o.order=t+r,u.A(o.selfEdges,function(e){e7(n,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:t+ ++r,e:e.e,label:e.label},"_se")}),delete o.selfEdges})})}),t(" adjustCoordinateSystem",()=>{var n;("lr"===(n=e.graph().rankdir.toLowerCase())||"rl"===n)&&nc(e)}),t(" position",()=>{var n,r,t,o,i,a,c,d,f,s,v,h,l,g,p,A,b;p=nr(g=n=ne(n=e)),A=g.graph().ranksep,b=0,u.A(p,function(e){var n=eQ(w(e,function(e){return g.node(e).height}));u.A(e,function(e){g.node(e).y=b+n/2}),b+=n+A}),o=nr(r=n),a=eS((i={},nW.A(o,function(e,n){var t=0,o=0,a=e.length,c=eX(n);return u.A(n,function(e,d){var f=function(e,n){if(e.node(n).dummy)return ny(e.predecessors(n),function(n){return e.node(n).dummy})}(r,e),s=f?r.node(f).order:a;(f||e===c)&&(u.A(n.slice(o,d+1),function(e){u.A(r.predecessors(e),function(n){var o=r.node(n),u=o.order;(u<t||s<u)&&!(o.dummy&&r.node(e).dummy)&&rx(i,n,e)})}),o=d+1,t=s)}),n}),i),function(e,n){var r={};function t(n,t,o,i,a){var c;u.A(I(t,o),function(t){c=n[t],e.node(c).dummy&&u.A(e.predecessors(c),function(n){var t=e.node(n);t.dummy&&(t.order<i||t.order>a)&&rx(r,n,c)})})}return nW.A(n,function(n,r){var o,i=-1,a=0;return u.A(r,function(u,c){if("border"===e.node(u).dummy){var d=e.predecessors(u);d.length&&(o=e.node(d[0]).order,t(r,a,c,i,o),a=c,i=o)}t(r,a,r.length,o,n.length)}),r}),r}(r,o)),c={},u.A(["u","d"],function(e){t="u"===e?o:nJ.A(o).reverse(),u.A(["l","r"],function(n){"r"===n&&(t=w(t,function(e){return nJ.A(e).reverse()}));var o,i,d,f,s=("u"===e?r.predecessors:r.successors).bind(r),v=(o=t,i={},d={},f={},u.A(o,function(e){u.A(e,function(e,n){i[e]=e,d[e]=e,f[e]=n})}),u.A(o,function(e){var n=-1;u.A(e,function(e){var r=s(e);if(r.length)for(var t=((r=rA(r,function(e){return f[e]})).length-1)/2,o=Math.floor(t),u=Math.ceil(t);o<=u;++o){var c=r[o];d[e]===e&&n<f[c]&&!function(e,n,r){if(n>r){var t=n;n=r,r=t}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}(a,e,c)&&(d[c]=e,d[e]=i[e]=i[c],n=f[c])}})}),{root:i,align:d}),h=function(e,n,r,t,o){var i,a,c,d,f,s,v,h,l,g,p={},A=(i=e,a=n,c=r,d=o,h=new G.T,g=(f=(l=i.graph()).nodesep,s=l.edgesep,v=d,function(e,n,r){var t,o,i=e.node(n),u=e.node(r);if(t=0+i.width/2,Object.prototype.hasOwnProperty.call(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":o=-i.width/2;break;case"r":o=i.width/2}if(o&&(t+=v?o:-o),o=0,t+=(i.dummy?s:f)/2,t+=(u.dummy?s:f)/2,t+=u.width/2,Object.prototype.hasOwnProperty.call(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":o=u.width/2;break;case"r":o=-u.width/2}return o&&(t+=v?o:-o),o=0,t}),u.A(a,function(e){var n;u.A(e,function(e){var r=c[e];if(h.setNode(r),n){var t=c[n],o=h.edge(t,r);h.setEdge(t,r,Math.max(g(i,e,n),o||0))}n=e})}),h),b=o?"borderLeft":"borderRight";function w(e,n){for(var r=A.nodes(),t=r.pop(),o={};t;)o[t]?e(t):(o[t]=!0,r.push(t),r=r.concat(n(t))),t=r.pop()}return w(function(e){p[e]=A.inEdges(e).reduce(function(e,n){return Math.max(e,p[n.v]+A.edge(n))},0)},A.predecessors.bind(A)),w(function(n){var r=A.outEdges(n).reduce(function(e,n){return Math.min(e,p[n.w]-A.edge(n))},1/0),t=e.node(n);1/0!==r&&t.borderType!==b&&(p[n]=Math.max(p[n],r))},A.successors.bind(A)),u.A(t,function(e){p[e]=p[r[e]]}),p}(r,t,v.root,v.align,"r"===n);"r"===n&&(h=e0(h,function(e){return-e})),c[e+n]=h})}),d=nv(nJ.A(c),function(e){var n,t=-1/0,o=1/0;return n=function(e,n){var i,u,a=(i=r,u=n,i.node(u).width/2);t=Math.max(e+a,t),o=Math.min(e-a,o)},null==e||(0,H.A)(e,(0,rm.A)(n),eR),t-o}),s=e3(f=nJ.A(d)),v=eQ(f),u.A(["u","d"],function(e){u.A(["l","r"],function(n){var r,t=e+n,o=c[t];if(o!==d){var i=nJ.A(o);(r="l"===n?s-e3(i):v-eQ(i))&&(c[t]=e0(o,function(e){return e+r}))}})}),h=r.graph().align,l=e0(c.ul,function(e,n){if(h)return c[h.toLowerCase()][n];var r=rA(w(c,n));return(r[1]+r[2])/2}),l&&(0,eY.A)(l,(0,rm.A)(function(e,r){n.node(r).x=e}))}),t(" positionSelfEdges",()=>{var n;return n=e,void u.A(n.nodes(),function(e){var r=n.node(e);if("selfedge"===r.dummy){var t=n.node(r.e.v),o=t.x+t.width/2,i=t.y,u=r.x-o,a=t.height/2;n.setEdge(r.e,r.label),n.removeNode(e),r.label.points=[{x:o+2*u/3,y:i-a},{x:o+5*u/6,y:i-a},{x:o+u,y:i},{x:o+5*u/6,y:i+a},{x:o+2*u/3,y:i+a}],r.label.x=r.x,r.label.y=r.y}})}),t(" removeBorderNodes",()=>{var n;return n=e,void(u.A(n.nodes(),function(e){if(n.children(e).length){var r=n.node(e),t=n.node(r.borderTop),o=n.node(r.borderBottom),i=n.node(eX(r.borderLeft)),u=n.node(eX(r.borderRight));r.width=Math.abs(u.x-i.x),r.height=Math.abs(o.y-t.y),r.x=i.x+r.width/2,r.y=t.y+r.height/2}}),u.A(n.nodes(),function(e){"border"===n.node(e).dummy&&n.removeNode(e)}))}),t(" normalize.undo",()=>{u.A(e.graph().dummyChains,function(n){var r,t=e.node(n),o=t.edgeLabel;for(e.setEdge(t.edgeObj,o);t.dummy;)r=e.successors(n)[0],e.removeNode(n),o.points.push({x:t.x,y:t.y}),"edge-label"===t.dummy&&(o.x=t.x,o.y=t.y,o.width=t.width,o.height=t.height),n=r,t=e.node(n)})}),t(" fixupEdgeLabelCoords",()=>{var n;return n=e,void u.A(n.edges(),function(e){var r=n.edge(e);if(Object.prototype.hasOwnProperty.call(r,"x"))switch(("l"===r.labelpos||"r"===r.labelpos)&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset}})}),t(" undoCoordinateSystem",()=>{var n,r,t;("bt"===(n=e.graph().rankdir.toLowerCase())||"rl"===n)&&(r=e,u.A(r.nodes(),function(e){nf(r.node(e))}),u.A(r.edges(),function(e){var n=r.edge(e);u.A(n.points,nf),Object.prototype.hasOwnProperty.call(n,"y")&&nf(n)})),("lr"===n||"rl"===n)&&(t=e,u.A(t.nodes(),function(e){ns(t.node(e))}),u.A(t.edges(),function(e){var n=t.edge(e);u.A(n.points,ns),Object.prototype.hasOwnProperty.call(n,"x")&&ns(n)}),nc(e))}),t(" translateGraph",()=>(function(e){var n=1/0,r=0,t=1/0,o=0,i=e.graph(),a=i.marginx||0,c=i.marginy||0;function d(e){var i=e.x,u=e.y,a=e.width,c=e.height;n=Math.min(n,i-a/2),r=Math.max(r,i+a/2),t=Math.min(t,u-c/2),o=Math.max(o,u+c/2)}u.A(e.nodes(),function(n){d(e.node(n))}),u.A(e.edges(),function(n){var r=e.edge(n);Object.prototype.hasOwnProperty.call(r,"x")&&d(r)}),n-=a,t-=c,u.A(e.nodes(),function(r){var o=e.node(r);o.x-=n,o.y-=t}),u.A(e.edges(),function(r){var o=e.edge(r);u.A(o.points,function(e){e.x-=n,e.y-=t}),Object.prototype.hasOwnProperty.call(o,"x")&&(o.x-=n),Object.prototype.hasOwnProperty.call(o,"y")&&(o.y-=t)}),i.width=r-n+a,i.height=o-t+c})(e)),t(" assignNodeIntersects",()=>{var n;return n=e,void u.A(n.edges(),function(e){var r,t,o=n.edge(e),i=n.node(e.v),u=n.node(e.w);o.points?(r=o.points[0],t=o.points[o.points.length-1]):(o.points=[],r=u,t=i),o.points.unshift(nn(i,r)),o.points.push(nn(u,t))})}),t(" reversePoints",()=>{var n;return n=e,void u.A(n.edges(),function(e){var r=n.edge(e);r.reversed&&r.points.reverse()})}),t(" acyclic.undo",()=>{u.A(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var t=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,t)}})}))}),r(" updateInputGraph",()=>{var r,t;return r=e,t=n,void(u.A(r.nodes(),function(e){var n=r.node(e),o=t.node(e);n&&(n.x=o.x,n.y=o.y,t.children(e).length&&(n.width=o.width,n.height=o.height))}),u.A(r.edges(),function(e){var n=r.edge(e),o=t.edge(e);n.points=o.points,Object.prototype.hasOwnProperty.call(o,"x")&&(n.x=o.x,n.y=o.y)}),r.graph().width=t.graph().width,r.graph().height=t.graph().height)})})}var rk=["nodesep","edgesep","ranksep","marginx","marginy"],rO={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},rE=["acyclicer","ranker","rankdir","align"],r_=["width","height"],rP={width:0,height:0},rN=["minlen","weight","width","height","labeloffset"],rM={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},rR=["labelpos"];function rL(e,n){return e0(eV(e,n),Number)}function rC(e){var n={};return u.A(e,function(e,r){n[r.toLowerCase()]=e}),n}}};