fika-editor 3.0.1 → 3.0.2

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 (105) hide show
  1. package/dist/embed/947.js +144 -0
  2. package/dist/embed/agentic-manifest.json +186 -11
  3. package/dist/embed/chunks/1131.css +1 -1
  4. package/dist/embed/chunks/1131.js +1 -1
  5. package/dist/embed/chunks/1505.js +8 -0
  6. package/dist/embed/chunks/1904.js +1 -1
  7. package/dist/embed/chunks/2020.js +43 -37
  8. package/dist/embed/chunks/2289.js +1 -1
  9. package/dist/embed/chunks/2796.js +1 -1
  10. package/dist/embed/chunks/2807.js +1 -1
  11. package/dist/embed/chunks/3030.js +1 -1
  12. package/dist/embed/chunks/3729.js +3 -3
  13. package/dist/embed/chunks/4552.js +1 -1
  14. package/dist/embed/chunks/4625.js +1 -1
  15. package/dist/embed/chunks/4891.js +2 -2
  16. package/dist/embed/chunks/4950.js +1 -1
  17. package/dist/embed/chunks/4975.js +5 -5
  18. package/dist/embed/chunks/5216.js +1 -1
  19. package/dist/embed/chunks/5792.js +1 -1
  20. package/dist/embed/chunks/627.js +1 -1
  21. package/dist/embed/chunks/6567.js +1 -1
  22. package/dist/embed/chunks/717.js +2 -2
  23. package/dist/embed/chunks/7175.js +1 -1
  24. package/dist/embed/chunks/7311.js +1 -1
  25. package/dist/embed/chunks/7594.js +1 -1
  26. package/dist/embed/chunks/7854.js +1 -1
  27. package/dist/embed/chunks/788.js +1 -1
  28. package/dist/embed/chunks/7916.js +1 -1
  29. package/dist/embed/chunks/8212.js +1 -1
  30. package/dist/embed/chunks/8239.js +1 -1
  31. package/dist/embed/chunks/8645.js +1 -1
  32. package/dist/embed/chunks/8716.js +3 -3
  33. package/dist/embed/chunks/9121.js +1 -1
  34. package/dist/embed/chunks/9465.js +2 -2
  35. package/dist/embed/fika-embed.css +1 -1
  36. package/dist/embed/fika-embed.js +3 -2
  37. package/dist/types/components/Button.d.ts +2 -1
  38. package/dist/types/components/ColorSwatches.d.ts +2 -1
  39. package/dist/types/components/Draggable.d.ts +9 -4
  40. package/dist/types/configs/animation.d.ts +2 -0
  41. package/dist/types/configs/font.d.ts +0 -2
  42. package/dist/types/configs/templates.d.ts +1 -5
  43. package/dist/types/embed/agentic/templates.d.ts +2 -1
  44. package/dist/types/embed/agentic/types.d.ts +57 -1
  45. package/dist/types/hooks/useScreening.d.ts +5 -3
  46. package/dist/types/i18n/i18n-types.d.ts +4 -4
  47. package/dist/types/store/index.d.ts +2 -2
  48. package/dist/types/store/slides.d.ts +18 -3
  49. package/dist/types/types/injectKey.d.ts +6 -0
  50. package/dist/types/utils/canvasHitTest.d.ts +14 -2
  51. package/dist/types/utils/commitQueue.d.ts +13 -0
  52. package/dist/types/utils/cssLength.d.ts +8 -0
  53. package/dist/types/utils/database.d.ts +6 -1
  54. package/dist/types/utils/element.d.ts +18 -0
  55. package/dist/types/utils/imageBitmapCache.d.ts +14 -2
  56. package/dist/types/utils/imageSize.d.ts +9 -0
  57. package/dist/types/utils/liveElementSize.d.ts +20 -1
  58. package/dist/types/utils/mediaIntern.d.ts +12 -0
  59. package/dist/types/utils/placeholderLayout.d.ts +25 -6
  60. package/dist/types/utils/prosemirror/commitEditor.d.ts +3 -0
  61. package/dist/types/utils/prosemirror/index.d.ts +1 -0
  62. package/dist/types/utils/screening.d.ts +10 -0
  63. package/dist/types/utils/shapePaint.d.ts +23 -0
  64. package/dist/types/utils/simpleShape.d.ts +5 -0
  65. package/dist/types/utils/slideOrder.d.ts +10 -0
  66. package/dist/types/utils/snap.d.ts +9 -0
  67. package/dist/types/utils/tableCellStyle.d.ts +12 -0
  68. package/dist/types/utils/tableStyleTarget.d.ts +3 -0
  69. package/dist/types/utils/textContrast.d.ts +25 -1
  70. package/dist/types/utils/textFit.d.ts +31 -13
  71. package/dist/types/views/Editor/Canvas/Operate/ResizeHandler.d.ts +2 -1
  72. package/dist/types/views/Editor/Thumbnails/paneSize.d.ts +7 -3
  73. package/dist/types/views/Editor/Thumbnails/useThumbnailVirtualizer.d.ts +1 -0
  74. package/dist/types/views/components/ThumbnailSlide/LiveSlideThumb.d.ts +21 -0
  75. package/dist/types/views/components/ThumbnailSlide/index.d.ts +8 -0
  76. package/dist/types/views/components/ThumbnailSlide/paintedSlide.d.ts +1 -1
  77. package/dist/types/views/components/ThumbnailSlide/thumbSnapshot.d.ts +54 -0
  78. package/dist/types/views/components/element/TableElement/CustomTextarea.d.ts +2 -1
  79. package/dist/types/views/components/element/hooks/useAutoShapeTextHeight.d.ts +3 -1
  80. package/docs/RELEASE.md +2 -0
  81. package/package.json +8 -11
  82. package/dist/embed/350.js +0 -164
  83. package/dist/types/previewRaster/index.d.ts +0 -9
  84. package/dist/types/previewRaster/painters/background.d.ts +0 -2
  85. package/dist/types/previewRaster/painters/booth.d.ts +0 -13
  86. package/dist/types/previewRaster/painters/chart.d.ts +0 -2
  87. package/dist/types/previewRaster/painters/code.d.ts +0 -2
  88. package/dist/types/previewRaster/painters/image.d.ts +0 -2
  89. package/dist/types/previewRaster/painters/index.d.ts +0 -3
  90. package/dist/types/previewRaster/painters/line.d.ts +0 -2
  91. package/dist/types/previewRaster/painters/media.d.ts +0 -2
  92. package/dist/types/previewRaster/painters/shape.d.ts +0 -2
  93. package/dist/types/previewRaster/painters/table.d.ts +0 -2
  94. package/dist/types/previewRaster/painters/text.d.ts +0 -2
  95. package/dist/types/previewRaster/planSlideRaster.d.ts +0 -19
  96. package/dist/types/previewRaster/rasterCache.d.ts +0 -19
  97. package/dist/types/previewRaster/scheduler.d.ts +0 -4
  98. package/dist/types/previewRaster/stagePool.d.ts +0 -36
  99. package/dist/types/previewRaster/stats.d.ts +0 -10
  100. package/dist/types/previewRaster/subscribeSlides.d.ts +0 -10
  101. package/dist/types/previewRaster/types.d.ts +0 -12
  102. package/dist/types/utils/elementPaint.d.ts +0 -129
  103. package/dist/types/views/components/element/ChartElement/chartBooth.d.ts +0 -2
  104. /package/dist/embed/{350.css → 947.css} +0 -0
  105. /package/dist/types/{previewRaster → utils}/diffPaintedSlide.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- export const __rspack_esm_id=2289;export const __rspack_esm_ids=[2289];export const __webpack_modules__={75937(t,e,i){var s=i(9601),n=i(71005);e.A=(t,e)=>s.A.lang.round(n.A.parse(t)[e])},78257(t,e,i){var s=i(64183),n=i(31293),r=i(86827),a=(0,r.K)((t,e,i,r)=>{t.attr("class",i);let{width:a,height:l,x:h,y:u}=o(t,e);(0,s.a$)(t,l,a,r);let d=c(h,u,a,l,e);t.attr("viewBox",d),n.R.debug(`viewBox configured: ${d} with padding: ${e}`)},"setupViewPortForSVG"),o=(0,r.K)((t,e)=>{let i=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+2*e,height:i.height+2*e,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),c=(0,r.K)((t,e,i,s,n)=>`${t-n} ${e-n} ${i} ${s}`,"createViewBox");i.d(e,{P:()=>a})},96755(t,e,i){var s=i(86827),n=i(8141),r=(0,s.K)((t,e)=>{let i;return"sandbox"===e&&(i=(0,n.Ltv)("#i"+t)),("sandbox"===e?(0,n.Ltv)(i.nodes()[0].contentDocument.body):(0,n.Ltv)("body")).select(`[id="${t}"]`)},"getDiagramElement");i.d(e,{A:()=>r})},10648(t,e,i){var s=i(96755),n=i(78257),r=i(21570);i(9290),i(9636),i(14782),i(91865),i(6129),i(23656),i(15198);var a=i(24692),o=i(64183),c=i(31293),l=i(86827),h=i(8141),u=i(75937),d=i(25582),y=function(){var t=(0,l.K)(function(t,e,i,s){for(i=i||{},s=t.length;s--;i[t[s]]=e);return i},"o"),e=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],i=[1,10],s=[1,11],n=[1,12],r=[1,13],a=[1,23],o=[1,24],c=[1,25],h=[1,26],u=[1,27],d=[1,19],y=[1,28],_=[1,29],p=[1,20],g=[1,18],b=[1,21],m=[1,22],f=[1,36],E=[1,37],k=[1,38],T=[1,39],O=[1,40],S=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,66,67,68,69,70],A=[1,45],N=[1,46],R=[1,55],I=[40,48,50,51,52,71,72],$=[1,66],x=[1,64],C=[1,61],D=[1,65],v=[1,67],L=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,66,67,68,69,70],K=[66,67,68,69,70],w=[1,85],M=[1,84],B=[1,82],F=[1,83],Y=[6,10,42,47],P=[6,10,13,41,42,47,48,49],z=[1,93],G=[1,92],U=[1,91],Z=[19,58],j=[1,102],W=[1,101],X=[19,58,61,63],V={trace:(0,l.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,"?":59,attributeKeyType:60,",":61,ATTRIBUTE_KEY:62,COMMENT:63,cardinality:64,relType:65,ZERO_OR_ONE:66,ZERO_OR_MORE:67,ONE_OR_MORE:68,ONLY_ONE:69,MD_PARENT:70,NON_IDENTIFYING:71,IDENTIFYING:72,WORD:73,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",59:"?",61:",",62:"ATTRIBUTE_KEY",63:"COMMENT",66:"ZERO_OR_ONE",67:"ZERO_OR_MORE",68:"ONE_OR_MORE",69:"ONLY_ONE",70:"MD_PARENT",71:"NON_IDENTIFYING",72:"IDENTIFYING",73:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[54,2],[55,1],[56,1],[56,3],[60,1],[57,1],[12,3],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[14,1],[14,1],[14,1]],performAction:(0,l.K)(function(t,e,i,s,n,r,a){var o=r.length-1;switch(n){case 1:break;case 2:case 6:case 7:this.$=[];break;case 3:r[o-1].push(r[o]),this.$=r[o-1];break;case 4:case 5:case 55:case 56:case 57:case 58:case 82:case 65:case 67:case 70:this.$=r[o];break;case 8:s.addEntity(r[o-4]),s.addEntity(r[o-2]),s.addRelationship(r[o-4],r[o],r[o-2],r[o-3]);break;case 9:s.addEntity(r[o-8]),s.addEntity(r[o-4]),s.addRelationship(r[o-8],r[o],r[o-4],r[o-5]),s.setClass([r[o-8]],r[o-6]),s.setClass([r[o-4]],r[o-2]);break;case 10:s.addEntity(r[o-6]),s.addEntity(r[o-2]),s.addRelationship(r[o-6],r[o],r[o-2],r[o-3]),s.setClass([r[o-6]],r[o-4]);break;case 11:s.addEntity(r[o-6]),s.addEntity(r[o-4]),s.addRelationship(r[o-6],r[o],r[o-4],r[o-5]),s.setClass([r[o-4]],r[o-2]);break;case 12:s.addEntity(r[o-3]),s.addAttributes(r[o-3],r[o-1]);break;case 13:s.addEntity(r[o-5]),s.addAttributes(r[o-5],r[o-1]),s.setClass([r[o-5]],r[o-3]);break;case 14:s.addEntity(r[o-2]);break;case 15:s.addEntity(r[o-4]),s.setClass([r[o-4]],r[o-2]);break;case 16:s.addEntity(r[o]);break;case 17:s.addEntity(r[o-2]),s.setClass([r[o-2]],r[o]);break;case 18:s.addEntity(r[o-6],r[o-4]),s.addAttributes(r[o-6],r[o-1]);break;case 19:s.addEntity(r[o-8],r[o-6]),s.addAttributes(r[o-8],r[o-1]),s.setClass([r[o-8]],r[o-3]);break;case 20:s.addEntity(r[o-5],r[o-3]);break;case 21:s.addEntity(r[o-7],r[o-5]),s.setClass([r[o-7]],r[o-2]);break;case 22:s.addEntity(r[o-3],r[o-1]);break;case 23:s.addEntity(r[o-5],r[o-3]),s.setClass([r[o-5]],r[o]);break;case 24:case 25:this.$=r[o].trim(),s.setAccTitle(this.$);break;case 26:case 27:this.$=r[o].trim(),s.setAccDescription(this.$);break;case 32:s.setDirection("TB");break;case 33:s.setDirection("BT");break;case 34:s.setDirection("RL");break;case 35:s.setDirection("LR");break;case 36:this.$=r[o-3],s.addClass(r[o-2],r[o-1]);break;case 37:case 38:case 59:case 68:case 43:this.$=[r[o]];break;case 39:case 40:this.$=r[o-2].concat([r[o]]);break;case 41:this.$=r[o-2],s.setClass(r[o-1],r[o]);break;case 42:this.$=r[o-3],s.addCssStyles(r[o-2],r[o-1]);break;case 44:case 69:r[o-2].push(r[o]),this.$=r[o-2];break;case 46:case 66:this.$=r[o-1]+r[o];break;case 54:case 80:case 81:case 71:this.$=r[o].replace(/"/g,"");break;case 60:r[o].push(r[o-1]),this.$=r[o];break;case 61:this.$={type:r[o-1],name:r[o]};break;case 62:this.$={type:r[o-2],name:r[o-1],keys:r[o]};break;case 63:this.$={type:r[o-2],name:r[o-1],comment:r[o]};break;case 64:this.$={type:r[o-3],name:r[o-2],keys:r[o-1],comment:r[o]};break;case 72:this.$={cardA:r[o],relType:r[o-1],cardB:r[o-2]};break;case 73:this.$=s.Cardinality.ZERO_OR_ONE;break;case 74:this.$=s.Cardinality.ZERO_OR_MORE;break;case 75:this.$=s.Cardinality.ONE_OR_MORE;break;case 76:this.$=s.Cardinality.ONLY_ONE;break;case 77:this.$=s.Cardinality.MD_PARENT;break;case 78:this.$=s.Identification.NON_IDENTIFYING;break;case 79:this.$=s.Identification.IDENTIFYING}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:i,24:s,26:n,28:r,29:14,30:15,31:16,32:17,33:a,34:o,35:c,36:h,37:u,40:d,43:y,44:_,48:p,50:g,51:b,52:m},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:30,11:9,22:i,24:s,26:n,28:r,29:14,30:15,31:16,32:17,33:a,34:o,35:c,36:h,37:u,40:d,43:y,44:_,48:p,50:g,51:b,52:m},t(e,[2,5]),t(e,[2,6]),t(e,[2,16],{12:31,64:35,15:[1,32],17:[1,33],20:[1,34],66:f,67:E,68:k,69:T,70:O}),{23:[1,41]},{25:[1,42]},{27:[1,43]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),t(e,[2,30]),t(e,[2,31]),t(S,[2,54]),t(S,[2,55]),t(S,[2,56]),t(S,[2,57]),t(S,[2,58]),t(e,[2,32]),t(e,[2,33]),t(e,[2,34]),t(e,[2,35]),{16:44,40:A,41:N},{16:47,40:A,41:N},{16:48,40:A,41:N},t(e,[2,4]),{11:49,40:d,48:p,50:g,51:b,52:m},{16:50,40:A,41:N},{18:51,19:[1,52],53:53,54:54,58:R},{11:56,40:d,48:p,50:g,51:b,52:m},{65:57,71:[1,58],72:[1,59]},t(I,[2,73]),t(I,[2,74]),t(I,[2,75]),t(I,[2,76]),t(I,[2,77]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),{13:$,38:60,41:x,42:C,45:62,46:63,48:D,49:v},t(L,[2,37]),t(L,[2,38]),{16:68,40:A,41:N,42:C},{13:$,38:69,41:x,42:C,45:62,46:63,48:D,49:v},{13:[1,70],15:[1,71]},t(e,[2,17],{64:35,12:72,17:[1,73],42:C,66:f,67:E,68:k,69:T,70:O}),{19:[1,74]},t(e,[2,14]),{18:75,19:[2,59],53:53,54:54,58:R},{55:76,58:[1,77]},{58:[2,65],59:[1,78]},{21:[1,79]},{64:80,66:f,67:E,68:k,69:T,70:O},t(K,[2,78]),t(K,[2,79]),{6:w,10:M,39:81,42:B,47:F},{40:[1,86],41:[1,87]},t(Y,[2,43],{46:88,13:$,41:x,48:D,49:v}),t(P,[2,45]),t(P,[2,50]),t(P,[2,51]),t(P,[2,52]),t(P,[2,53]),t(e,[2,41],{42:C}),{6:w,10:M,39:89,42:B,47:F},{14:90,40:z,50:G,73:U},{16:94,40:A,41:N},{11:95,40:d,48:p,50:g,51:b,52:m},{18:96,19:[1,97],53:53,54:54,58:R},t(e,[2,12]),{19:[2,60]},t(Z,[2,61],{56:98,57:99,60:100,62:j,63:W}),t([19,58,62,63],[2,67]),{58:[2,66]},t(e,[2,22],{15:[1,104],17:[1,103]}),t([40,48,50,51,52],[2,72]),t(e,[2,36]),{13:$,41:x,45:105,46:63,48:D,49:v},t(e,[2,47]),t(e,[2,48]),t(e,[2,49]),t(L,[2,39]),t(L,[2,40]),t(P,[2,46]),t(e,[2,42]),t(e,[2,8]),t(e,[2,80]),t(e,[2,81]),t(e,[2,82]),{13:[1,106],42:C},{13:[1,108],15:[1,107]},{19:[1,109]},t(e,[2,15]),t(Z,[2,62],{57:110,61:[1,111],63:W}),t(Z,[2,63]),t(X,[2,68]),t(Z,[2,71]),t(X,[2,70]),{18:112,19:[1,113],53:53,54:54,58:R},{16:114,40:A,41:N},t(Y,[2,44],{46:88,13:$,41:x,48:D,49:v}),{14:115,40:z,50:G,73:U},{16:116,40:A,41:N},{14:117,40:z,50:G,73:U},t(e,[2,13]),t(Z,[2,64]),{60:118,62:j},{19:[1,119]},t(e,[2,20]),t(e,[2,23],{17:[1,120],42:C}),t(e,[2,11]),{13:[1,121],42:C},t(e,[2,10]),t(X,[2,69]),t(e,[2,18]),{18:122,19:[1,123],53:53,54:54,58:R},{14:124,40:z,50:G,73:U},{19:[1,125]},t(e,[2,21]),t(e,[2,9]),t(e,[2,19])],defaultActions:{75:[2,60],78:[2,66]},parseError:(0,l.K)(function(t,e){if(e.recoverable)this.trace(t);else{var i=Error(t);throw i.hash=e,i}},"parseError"),parse:(0,l.K)(function(t){var e=this,i=[0],s=[],n=[null],r=[],a=this.table,o="",c=0,h=0,u=0,d=r.slice.call(arguments,1),y=Object.create(this.lexer),_={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(_[p]=this.yy[p]);y.setInput(t,_),_.lexer=y,_.parser=this,void 0===y.yylloc&&(y.yylloc={});var g=y.yylloc;r.push(g);var b=y.options&&y.options.ranges;function m(){var t;return"number"!=typeof(t=s.pop()||y.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof _.parseError?this.parseError=_.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,l.K)(function(t){i.length=i.length-2*t,n.length=n.length-t,r.length=r.length-t},"popStack"),(0,l.K)(m,"lex");for(var f,E,k,T,O,S,A,N,R,I={};;){if(k=i[i.length-1],this.defaultActions[k]?T=this.defaultActions[k]:(null==f&&(f=m()),T=a[k]&&a[k][f]),void 0===T||!T.length||!T[0]){var $="";for(S in R=[],a[k])this.terminals_[S]&&S>2&&R.push("'"+this.terminals_[S]+"'");$=y.showPosition?"Parse error on line "+(c+1)+":\n"+y.showPosition()+"\nExpecting "+R.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError($,{text:y.match,token:this.terminals_[f]||f,line:y.yylineno,loc:g,expected:R})}if(T[0]instanceof Array&&T.length>1)throw Error("Parse Error: multiple actions possible at state: "+k+", token: "+f);switch(T[0]){case 1:i.push(f),n.push(y.yytext),r.push(y.yylloc),i.push(T[1]),f=null,E?(f=E,E=null):(h=y.yyleng,o=y.yytext,c=y.yylineno,g=y.yylloc,u>0&&u--);break;case 2:if(A=this.productions_[T[1]][1],I.$=n[n.length-A],I._$={first_line:r[r.length-(A||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(A||1)].first_column,last_column:r[r.length-1].last_column},b&&(I._$.range=[r[r.length-(A||1)].range[0],r[r.length-1].range[1]]),void 0!==(O=this.performAction.apply(I,[o,h,c,_,T[1],n,r].concat(d))))return O;A&&(i=i.slice(0,-1*A*2),n=n.slice(0,-1*A),r=r.slice(0,-1*A)),i.push(this.productions_[T[1]][0]),n.push(I.$),r.push(I._$),N=a[i[i.length-2]][i[i.length-1]],i.push(N);break;case 3:return!0}}return!0},"parse")};function Q(){this.yy={}}return V.lexer={EOF:1,parseError:(0,l.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,l.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,l.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,l.K)(function(t){var e=t.length,i=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 s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===s.length?this.yylloc.first_column:0)+s[s.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,l.K)(function(){return this._more=!0,this},"more"),reject:(0,l.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,l.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,l.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,l.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,l.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,l.K)(function(t,e){var i,s,n;if(this.options.backtrack_lexer&&(n={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&&(n.yylloc.range=this.yylloc.range.slice(0))),(s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var r in n)this[r]=n[r];return!1},"test_match"),next:(0,l.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,i,s,n=this._currentRules(),r=0;r<n.length;r++)if((i=this._input.match(this.rules[n[r]]))&&(!e||i[0].length>e[0].length)){if(e=i,s=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,n[r])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[s]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,l.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,l.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,l.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,l.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,l.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,l.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,l.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,l.K)(function(t,e,i,s){switch(i){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 29:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:case 23:case 31:case 38:break;case 13:return 8;case 14:return 50;case 15:return 73;case 16:return 4;case 17:return this.begin("block"),17;case 18:case 19:case 41:return 49;case 20:case 40:return 42;case 21:return 15;case 22:case 39:return 13;case 24:return 62;case 25:case 26:case 28:return 58;case 27:this.begin("block_bq");break;case 30:return 63;case 32:return this.popState(),19;case 33:case 80:return e.yytext[0];case 34:return 20;case 35:return 21;case 36:return this.begin("style"),44;case 37:return this.popState(),10;case 42:return this.begin("style"),37;case 43:return 43;case 44:case 48:case 49:case 67:return 66;case 45:case 46:case 47:case 55:case 57:case 69:return 68;case 50:case 51:case 52:case 53:case 54:case 56:case 68:return 67;case 58:case 59:case 61:case 62:case 63:case 66:return 69;case 60:return 51;case 64:return 52;case 65:return 48;case 70:return 70;case 71:case 74:case 75:case 76:return 71;case 72:case 73:return 72;case 77:return 41;case 78:return 47;case 79:return 40;case 81:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\.,\u00C0-\uFFFF\*]*))/i,/^(?:[`])/i,/^(?:[^`]+)/i,/^(?:[`])/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[37,38,39,40,41,77,78],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block_bq:{rules:[28,29],inclusive:!1},block:{rules:[23,24,25,26,27,30,31,32,33],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,34,35,36,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,79,80,81],inclusive:!0}}},(0,l.K)(Q,"Parser"),Q.prototype=V,V.Parser=Q,new Q}();y.parser=y;var _=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=o.SV,this.getAccTitle=o.iN,this.setAccDescription=o.EI,this.getAccDescription=o.m7,this.setDiagramTitle=o.ke,this.getDiagramTitle=o.ab,this.getConfig=(0,l.K)(()=>(0,o.D7)().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{(0,l.K)(this,"ErDB")}addEntity(t,e=""){return this.entities.has(t)?!this.entities.get(t)?.alias&&e&&(this.entities.get(t).alias=e,c.R.info(`Add alias '${e}' to entity '${t}'`)):(this.entities.set(t,{id:`entity-${t}-${this.entities.size}`,label:t,attributes:[],alias:e,shape:"erBox",look:(0,o.D7)().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),c.R.info("Added new entity :",t)),this.entities.get(t)}getEntity(t){return this.entities.get(t)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(t,e){let i,s=this.addEntity(t);for(i=e.length-1;i>=0;i--)e[i].keys||(e[i].keys=[]),e[i].comment||(e[i].comment=""),s.attributes.push(e[i]),c.R.debug("Added attribute ",e[i].name)}addRelationship(t,e,i,s){let n=this.entities.get(t),r=this.entities.get(i);if(!n||!r)return;let a={entityA:n.id,roleA:e,entityB:r.id,relSpec:s};this.relationships.push(a),c.R.debug("Added new relationship :",a)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(t){this.direction=t}getCompiledStyles(t){let e=[];for(let i of t){let t=this.classes.get(i);t?.styles&&(e=[...e,...t.styles??[]].map(t=>t.trim())),t?.textStyles&&(e=[...e,...t.textStyles??[]].map(t=>t.trim()))}return e}addCssStyles(t,e){for(let i of t){let t=this.entities.get(i);if(!e||!t)return;for(let i of e)t.cssStyles.push(i)}}addClass(t,e){t.forEach(t=>{let i=this.classes.get(t);void 0===i&&(i={id:t,styles:[],textStyles:[]},this.classes.set(t,i)),e&&e.forEach(function(t){if(/color/.exec(t)){let e=t.replace("fill","bgFill");i.textStyles.push(e)}i.styles.push(t)})})}setClass(t,e){for(let i of t){let t=this.entities.get(i);if(t)for(let i of e)t.cssClasses+=" "+i}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],(0,o.IU)()}getData(){let t=[],e=[],i=(0,o.D7)(),s=0;for(let e of this.entities.keys()){let i=this.entities.get(e);i&&(i.cssCompiledStyles=this.getCompiledStyles(i.cssClasses.split(" ")),i.colorIndex=s++,t.push(i))}let n=0;for(let t of this.relationships){let s={id:(0,a.rY)(t.entityA,t.entityB,{prefix:"id",counter:n++}),type:"normal",curve:"basis",start:t.entityA,end:t.entityB,label:t.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:t.relSpec.cardB.toLowerCase(),arrowTypeEnd:t.relSpec.cardA.toLowerCase(),pattern:"IDENTIFYING"==t.relSpec.relType?"solid":"dashed",look:i.look,labelType:"markdown"};e.push(s)}return{nodes:t,edges:e,other:{},config:i,direction:"TB"}}},p={};(0,l.V)(p,{draw:()=>g});var g=(0,l.K)(async function(t,e,i,l){c.R.info("REF0:"),c.R.info("Drawing er diagram (unified)",e);let{securityLevel:u,er:d,layout:y}=(0,o.D7)(),_=l.db.getData(),p=(0,s.A)(e,u);_.type=l.type,_.layoutAlgorithm=(0,r.q7)(y),_.config.flowchart.nodeSpacing=d?.nodeSpacing||140,_.config.flowchart.rankSpacing=d?.rankSpacing||80,_.direction=l.db.getDirection();let{config:g}=_,{look:b}=g;"neo"===b?_.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"]:_.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],_.diagramId=e,await (0,r.XX)(_,p),"elk"===_.layoutAlgorithm&&p.select(".edges").lower();let m=p.selectAll('[id*="-background"]');Array.from(m).length>0&&m.each(function(){let t=(0,h.Ltv)(this),e=t.attr("id").replace("-background",""),i=p.select(`#${CSS.escape(e)}`);if(!i.empty()){let e=i.attr("transform");t.attr("transform",e)}}),a._K.insertTitle(p,"erDiagramTitleText",d?.titleTopMargin??25,l.db.getDiagramTitle()),(0,n.P)(p,8,"erDiagram",d?.useMaxWidth??!0)},"draw"),b=(0,l.K)((t,e)=>{let i=u.A,s=i(t,"r"),n=i(t,"g"),r=i(t,"b");return d.A(s,n,r,e)},"fade"),m=new Set(["redux-color","redux-dark-color"]),f=(0,l.K)(t=>{let{theme:e,look:i,bkgColorArray:s,borderColorArray:n}=t;if(!m.has(e))return"";let r=s?.length>0,a="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)a+=`
1
+ export const __rspack_esm_id=2289;export const __rspack_esm_ids=[2289];export const __webpack_modules__={75937(t,e,i){var s=i(9601),n=i(71005);e.A=(t,e)=>s.A.lang.round(n.A.parse(t)[e])},78257(t,e,i){var s=i(64183),n=i(31293),r=i(86827),a=(0,r.K)((t,e,i,r)=>{t.attr("class",i);let{width:a,height:l,x:h,y:u}=o(t,e);(0,s.a$)(t,l,a,r);let d=c(h,u,a,l,e);t.attr("viewBox",d),n.R.debug(`viewBox configured: ${d} with padding: ${e}`)},"setupViewPortForSVG"),o=(0,r.K)((t,e)=>{let i=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+2*e,height:i.height+2*e,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),c=(0,r.K)((t,e,i,s,n)=>`${t-n} ${e-n} ${i} ${s}`,"createViewBox");i.d(e,{P:()=>a})},96755(t,e,i){var s=i(86827),n=i(74045),r=(0,s.K)((t,e)=>{let i;return"sandbox"===e&&(i=(0,n.Ltv)("#i"+t)),("sandbox"===e?(0,n.Ltv)(i.nodes()[0].contentDocument.body):(0,n.Ltv)("body")).select(`[id="${t}"]`)},"getDiagramElement");i.d(e,{A:()=>r})},10648(t,e,i){var s=i(96755),n=i(78257),r=i(21570);i(9290),i(9636),i(14782),i(91865),i(6129),i(23656),i(15198);var a=i(24692),o=i(64183),c=i(31293),l=i(86827),h=i(74045),u=i(75937),d=i(25582),y=function(){var t=(0,l.K)(function(t,e,i,s){for(i=i||{},s=t.length;s--;i[t[s]]=e);return i},"o"),e=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],i=[1,10],s=[1,11],n=[1,12],r=[1,13],a=[1,23],o=[1,24],c=[1,25],h=[1,26],u=[1,27],d=[1,19],y=[1,28],_=[1,29],p=[1,20],g=[1,18],b=[1,21],m=[1,22],f=[1,36],E=[1,37],k=[1,38],T=[1,39],O=[1,40],S=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,66,67,68,69,70],A=[1,45],N=[1,46],R=[1,55],I=[40,48,50,51,52,71,72],$=[1,66],x=[1,64],C=[1,61],D=[1,65],v=[1,67],L=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,66,67,68,69,70],K=[66,67,68,69,70],w=[1,85],M=[1,84],B=[1,82],F=[1,83],Y=[6,10,42,47],P=[6,10,13,41,42,47,48,49],z=[1,93],G=[1,92],U=[1,91],Z=[19,58],j=[1,102],W=[1,101],X=[19,58,61,63],V={trace:(0,l.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,"?":59,attributeKeyType:60,",":61,ATTRIBUTE_KEY:62,COMMENT:63,cardinality:64,relType:65,ZERO_OR_ONE:66,ZERO_OR_MORE:67,ONE_OR_MORE:68,ONLY_ONE:69,MD_PARENT:70,NON_IDENTIFYING:71,IDENTIFYING:72,WORD:73,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",59:"?",61:",",62:"ATTRIBUTE_KEY",63:"COMMENT",66:"ZERO_OR_ONE",67:"ZERO_OR_MORE",68:"ONE_OR_MORE",69:"ONLY_ONE",70:"MD_PARENT",71:"NON_IDENTIFYING",72:"IDENTIFYING",73:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[54,2],[55,1],[56,1],[56,3],[60,1],[57,1],[12,3],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[14,1],[14,1],[14,1]],performAction:(0,l.K)(function(t,e,i,s,n,r,a){var o=r.length-1;switch(n){case 1:break;case 2:case 6:case 7:this.$=[];break;case 3:r[o-1].push(r[o]),this.$=r[o-1];break;case 4:case 5:case 55:case 56:case 57:case 58:case 82:case 65:case 67:case 70:this.$=r[o];break;case 8:s.addEntity(r[o-4]),s.addEntity(r[o-2]),s.addRelationship(r[o-4],r[o],r[o-2],r[o-3]);break;case 9:s.addEntity(r[o-8]),s.addEntity(r[o-4]),s.addRelationship(r[o-8],r[o],r[o-4],r[o-5]),s.setClass([r[o-8]],r[o-6]),s.setClass([r[o-4]],r[o-2]);break;case 10:s.addEntity(r[o-6]),s.addEntity(r[o-2]),s.addRelationship(r[o-6],r[o],r[o-2],r[o-3]),s.setClass([r[o-6]],r[o-4]);break;case 11:s.addEntity(r[o-6]),s.addEntity(r[o-4]),s.addRelationship(r[o-6],r[o],r[o-4],r[o-5]),s.setClass([r[o-4]],r[o-2]);break;case 12:s.addEntity(r[o-3]),s.addAttributes(r[o-3],r[o-1]);break;case 13:s.addEntity(r[o-5]),s.addAttributes(r[o-5],r[o-1]),s.setClass([r[o-5]],r[o-3]);break;case 14:s.addEntity(r[o-2]);break;case 15:s.addEntity(r[o-4]),s.setClass([r[o-4]],r[o-2]);break;case 16:s.addEntity(r[o]);break;case 17:s.addEntity(r[o-2]),s.setClass([r[o-2]],r[o]);break;case 18:s.addEntity(r[o-6],r[o-4]),s.addAttributes(r[o-6],r[o-1]);break;case 19:s.addEntity(r[o-8],r[o-6]),s.addAttributes(r[o-8],r[o-1]),s.setClass([r[o-8]],r[o-3]);break;case 20:s.addEntity(r[o-5],r[o-3]);break;case 21:s.addEntity(r[o-7],r[o-5]),s.setClass([r[o-7]],r[o-2]);break;case 22:s.addEntity(r[o-3],r[o-1]);break;case 23:s.addEntity(r[o-5],r[o-3]),s.setClass([r[o-5]],r[o]);break;case 24:case 25:this.$=r[o].trim(),s.setAccTitle(this.$);break;case 26:case 27:this.$=r[o].trim(),s.setAccDescription(this.$);break;case 32:s.setDirection("TB");break;case 33:s.setDirection("BT");break;case 34:s.setDirection("RL");break;case 35:s.setDirection("LR");break;case 36:this.$=r[o-3],s.addClass(r[o-2],r[o-1]);break;case 37:case 38:case 59:case 68:case 43:this.$=[r[o]];break;case 39:case 40:this.$=r[o-2].concat([r[o]]);break;case 41:this.$=r[o-2],s.setClass(r[o-1],r[o]);break;case 42:this.$=r[o-3],s.addCssStyles(r[o-2],r[o-1]);break;case 44:case 69:r[o-2].push(r[o]),this.$=r[o-2];break;case 46:case 66:this.$=r[o-1]+r[o];break;case 54:case 80:case 81:case 71:this.$=r[o].replace(/"/g,"");break;case 60:r[o].push(r[o-1]),this.$=r[o];break;case 61:this.$={type:r[o-1],name:r[o]};break;case 62:this.$={type:r[o-2],name:r[o-1],keys:r[o]};break;case 63:this.$={type:r[o-2],name:r[o-1],comment:r[o]};break;case 64:this.$={type:r[o-3],name:r[o-2],keys:r[o-1],comment:r[o]};break;case 72:this.$={cardA:r[o],relType:r[o-1],cardB:r[o-2]};break;case 73:this.$=s.Cardinality.ZERO_OR_ONE;break;case 74:this.$=s.Cardinality.ZERO_OR_MORE;break;case 75:this.$=s.Cardinality.ONE_OR_MORE;break;case 76:this.$=s.Cardinality.ONLY_ONE;break;case 77:this.$=s.Cardinality.MD_PARENT;break;case 78:this.$=s.Identification.NON_IDENTIFYING;break;case 79:this.$=s.Identification.IDENTIFYING}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:i,24:s,26:n,28:r,29:14,30:15,31:16,32:17,33:a,34:o,35:c,36:h,37:u,40:d,43:y,44:_,48:p,50:g,51:b,52:m},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:30,11:9,22:i,24:s,26:n,28:r,29:14,30:15,31:16,32:17,33:a,34:o,35:c,36:h,37:u,40:d,43:y,44:_,48:p,50:g,51:b,52:m},t(e,[2,5]),t(e,[2,6]),t(e,[2,16],{12:31,64:35,15:[1,32],17:[1,33],20:[1,34],66:f,67:E,68:k,69:T,70:O}),{23:[1,41]},{25:[1,42]},{27:[1,43]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),t(e,[2,30]),t(e,[2,31]),t(S,[2,54]),t(S,[2,55]),t(S,[2,56]),t(S,[2,57]),t(S,[2,58]),t(e,[2,32]),t(e,[2,33]),t(e,[2,34]),t(e,[2,35]),{16:44,40:A,41:N},{16:47,40:A,41:N},{16:48,40:A,41:N},t(e,[2,4]),{11:49,40:d,48:p,50:g,51:b,52:m},{16:50,40:A,41:N},{18:51,19:[1,52],53:53,54:54,58:R},{11:56,40:d,48:p,50:g,51:b,52:m},{65:57,71:[1,58],72:[1,59]},t(I,[2,73]),t(I,[2,74]),t(I,[2,75]),t(I,[2,76]),t(I,[2,77]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),{13:$,38:60,41:x,42:C,45:62,46:63,48:D,49:v},t(L,[2,37]),t(L,[2,38]),{16:68,40:A,41:N,42:C},{13:$,38:69,41:x,42:C,45:62,46:63,48:D,49:v},{13:[1,70],15:[1,71]},t(e,[2,17],{64:35,12:72,17:[1,73],42:C,66:f,67:E,68:k,69:T,70:O}),{19:[1,74]},t(e,[2,14]),{18:75,19:[2,59],53:53,54:54,58:R},{55:76,58:[1,77]},{58:[2,65],59:[1,78]},{21:[1,79]},{64:80,66:f,67:E,68:k,69:T,70:O},t(K,[2,78]),t(K,[2,79]),{6:w,10:M,39:81,42:B,47:F},{40:[1,86],41:[1,87]},t(Y,[2,43],{46:88,13:$,41:x,48:D,49:v}),t(P,[2,45]),t(P,[2,50]),t(P,[2,51]),t(P,[2,52]),t(P,[2,53]),t(e,[2,41],{42:C}),{6:w,10:M,39:89,42:B,47:F},{14:90,40:z,50:G,73:U},{16:94,40:A,41:N},{11:95,40:d,48:p,50:g,51:b,52:m},{18:96,19:[1,97],53:53,54:54,58:R},t(e,[2,12]),{19:[2,60]},t(Z,[2,61],{56:98,57:99,60:100,62:j,63:W}),t([19,58,62,63],[2,67]),{58:[2,66]},t(e,[2,22],{15:[1,104],17:[1,103]}),t([40,48,50,51,52],[2,72]),t(e,[2,36]),{13:$,41:x,45:105,46:63,48:D,49:v},t(e,[2,47]),t(e,[2,48]),t(e,[2,49]),t(L,[2,39]),t(L,[2,40]),t(P,[2,46]),t(e,[2,42]),t(e,[2,8]),t(e,[2,80]),t(e,[2,81]),t(e,[2,82]),{13:[1,106],42:C},{13:[1,108],15:[1,107]},{19:[1,109]},t(e,[2,15]),t(Z,[2,62],{57:110,61:[1,111],63:W}),t(Z,[2,63]),t(X,[2,68]),t(Z,[2,71]),t(X,[2,70]),{18:112,19:[1,113],53:53,54:54,58:R},{16:114,40:A,41:N},t(Y,[2,44],{46:88,13:$,41:x,48:D,49:v}),{14:115,40:z,50:G,73:U},{16:116,40:A,41:N},{14:117,40:z,50:G,73:U},t(e,[2,13]),t(Z,[2,64]),{60:118,62:j},{19:[1,119]},t(e,[2,20]),t(e,[2,23],{17:[1,120],42:C}),t(e,[2,11]),{13:[1,121],42:C},t(e,[2,10]),t(X,[2,69]),t(e,[2,18]),{18:122,19:[1,123],53:53,54:54,58:R},{14:124,40:z,50:G,73:U},{19:[1,125]},t(e,[2,21]),t(e,[2,9]),t(e,[2,19])],defaultActions:{75:[2,60],78:[2,66]},parseError:(0,l.K)(function(t,e){if(e.recoverable)this.trace(t);else{var i=Error(t);throw i.hash=e,i}},"parseError"),parse:(0,l.K)(function(t){var e=this,i=[0],s=[],n=[null],r=[],a=this.table,o="",c=0,h=0,u=0,d=r.slice.call(arguments,1),y=Object.create(this.lexer),_={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(_[p]=this.yy[p]);y.setInput(t,_),_.lexer=y,_.parser=this,void 0===y.yylloc&&(y.yylloc={});var g=y.yylloc;r.push(g);var b=y.options&&y.options.ranges;function m(){var t;return"number"!=typeof(t=s.pop()||y.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof _.parseError?this.parseError=_.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,l.K)(function(t){i.length=i.length-2*t,n.length=n.length-t,r.length=r.length-t},"popStack"),(0,l.K)(m,"lex");for(var f,E,k,T,O,S,A,N,R,I={};;){if(k=i[i.length-1],this.defaultActions[k]?T=this.defaultActions[k]:(null==f&&(f=m()),T=a[k]&&a[k][f]),void 0===T||!T.length||!T[0]){var $="";for(S in R=[],a[k])this.terminals_[S]&&S>2&&R.push("'"+this.terminals_[S]+"'");$=y.showPosition?"Parse error on line "+(c+1)+":\n"+y.showPosition()+"\nExpecting "+R.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError($,{text:y.match,token:this.terminals_[f]||f,line:y.yylineno,loc:g,expected:R})}if(T[0]instanceof Array&&T.length>1)throw Error("Parse Error: multiple actions possible at state: "+k+", token: "+f);switch(T[0]){case 1:i.push(f),n.push(y.yytext),r.push(y.yylloc),i.push(T[1]),f=null,E?(f=E,E=null):(h=y.yyleng,o=y.yytext,c=y.yylineno,g=y.yylloc,u>0&&u--);break;case 2:if(A=this.productions_[T[1]][1],I.$=n[n.length-A],I._$={first_line:r[r.length-(A||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(A||1)].first_column,last_column:r[r.length-1].last_column},b&&(I._$.range=[r[r.length-(A||1)].range[0],r[r.length-1].range[1]]),void 0!==(O=this.performAction.apply(I,[o,h,c,_,T[1],n,r].concat(d))))return O;A&&(i=i.slice(0,-1*A*2),n=n.slice(0,-1*A),r=r.slice(0,-1*A)),i.push(this.productions_[T[1]][0]),n.push(I.$),r.push(I._$),N=a[i[i.length-2]][i[i.length-1]],i.push(N);break;case 3:return!0}}return!0},"parse")};function Q(){this.yy={}}return V.lexer={EOF:1,parseError:(0,l.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,l.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,l.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,l.K)(function(t){var e=t.length,i=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 s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===s.length?this.yylloc.first_column:0)+s[s.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,l.K)(function(){return this._more=!0,this},"more"),reject:(0,l.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,l.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,l.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,l.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,l.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,l.K)(function(t,e){var i,s,n;if(this.options.backtrack_lexer&&(n={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&&(n.yylloc.range=this.yylloc.range.slice(0))),(s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var r in n)this[r]=n[r];return!1},"test_match"),next:(0,l.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,i,s,n=this._currentRules(),r=0;r<n.length;r++)if((i=this._input.match(this.rules[n[r]]))&&(!e||i[0].length>e[0].length)){if(e=i,s=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,n[r])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[s]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,l.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,l.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,l.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,l.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,l.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,l.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,l.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,l.K)(function(t,e,i,s){switch(i){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 29:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:case 23:case 31:case 38:break;case 13:return 8;case 14:return 50;case 15:return 73;case 16:return 4;case 17:return this.begin("block"),17;case 18:case 19:case 41:return 49;case 20:case 40:return 42;case 21:return 15;case 22:case 39:return 13;case 24:return 62;case 25:case 26:case 28:return 58;case 27:this.begin("block_bq");break;case 30:return 63;case 32:return this.popState(),19;case 33:case 80:return e.yytext[0];case 34:return 20;case 35:return 21;case 36:return this.begin("style"),44;case 37:return this.popState(),10;case 42:return this.begin("style"),37;case 43:return 43;case 44:case 48:case 49:case 67:return 66;case 45:case 46:case 47:case 55:case 57:case 69:return 68;case 50:case 51:case 52:case 53:case 54:case 56:case 68:return 67;case 58:case 59:case 61:case 62:case 63:case 66:return 69;case 60:return 51;case 64:return 52;case 65:return 48;case 70:return 70;case 71:case 74:case 75:case 76:return 71;case 72:case 73:return 72;case 77:return 41;case 78:return 47;case 79:return 40;case 81:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\.,\u00C0-\uFFFF\*]*))/i,/^(?:[`])/i,/^(?:[^`]+)/i,/^(?:[`])/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[37,38,39,40,41,77,78],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block_bq:{rules:[28,29],inclusive:!1},block:{rules:[23,24,25,26,27,30,31,32,33],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,34,35,36,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,79,80,81],inclusive:!0}}},(0,l.K)(Q,"Parser"),Q.prototype=V,V.Parser=Q,new Q}();y.parser=y;var _=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=o.SV,this.getAccTitle=o.iN,this.setAccDescription=o.EI,this.getAccDescription=o.m7,this.setDiagramTitle=o.ke,this.getDiagramTitle=o.ab,this.getConfig=(0,l.K)(()=>(0,o.D7)().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{(0,l.K)(this,"ErDB")}addEntity(t,e=""){return this.entities.has(t)?!this.entities.get(t)?.alias&&e&&(this.entities.get(t).alias=e,c.R.info(`Add alias '${e}' to entity '${t}'`)):(this.entities.set(t,{id:`entity-${t}-${this.entities.size}`,label:t,attributes:[],alias:e,shape:"erBox",look:(0,o.D7)().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),c.R.info("Added new entity :",t)),this.entities.get(t)}getEntity(t){return this.entities.get(t)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(t,e){let i,s=this.addEntity(t);for(i=e.length-1;i>=0;i--)e[i].keys||(e[i].keys=[]),e[i].comment||(e[i].comment=""),s.attributes.push(e[i]),c.R.debug("Added attribute ",e[i].name)}addRelationship(t,e,i,s){let n=this.entities.get(t),r=this.entities.get(i);if(!n||!r)return;let a={entityA:n.id,roleA:e,entityB:r.id,relSpec:s};this.relationships.push(a),c.R.debug("Added new relationship :",a)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(t){this.direction=t}getCompiledStyles(t){let e=[];for(let i of t){let t=this.classes.get(i);t?.styles&&(e=[...e,...t.styles??[]].map(t=>t.trim())),t?.textStyles&&(e=[...e,...t.textStyles??[]].map(t=>t.trim()))}return e}addCssStyles(t,e){for(let i of t){let t=this.entities.get(i);if(!e||!t)return;for(let i of e)t.cssStyles.push(i)}}addClass(t,e){t.forEach(t=>{let i=this.classes.get(t);void 0===i&&(i={id:t,styles:[],textStyles:[]},this.classes.set(t,i)),e&&e.forEach(function(t){if(/color/.exec(t)){let e=t.replace("fill","bgFill");i.textStyles.push(e)}i.styles.push(t)})})}setClass(t,e){for(let i of t){let t=this.entities.get(i);if(t)for(let i of e)t.cssClasses+=" "+i}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],(0,o.IU)()}getData(){let t=[],e=[],i=(0,o.D7)(),s=0;for(let e of this.entities.keys()){let i=this.entities.get(e);i&&(i.cssCompiledStyles=this.getCompiledStyles(i.cssClasses.split(" ")),i.colorIndex=s++,t.push(i))}let n=0;for(let t of this.relationships){let s={id:(0,a.rY)(t.entityA,t.entityB,{prefix:"id",counter:n++}),type:"normal",curve:"basis",start:t.entityA,end:t.entityB,label:t.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:t.relSpec.cardB.toLowerCase(),arrowTypeEnd:t.relSpec.cardA.toLowerCase(),pattern:"IDENTIFYING"==t.relSpec.relType?"solid":"dashed",look:i.look,labelType:"markdown"};e.push(s)}return{nodes:t,edges:e,other:{},config:i,direction:"TB"}}},p={};(0,l.V)(p,{draw:()=>g});var g=(0,l.K)(async function(t,e,i,l){c.R.info("REF0:"),c.R.info("Drawing er diagram (unified)",e);let{securityLevel:u,er:d,layout:y}=(0,o.D7)(),_=l.db.getData(),p=(0,s.A)(e,u);_.type=l.type,_.layoutAlgorithm=(0,r.q7)(y),_.config.flowchart.nodeSpacing=d?.nodeSpacing||140,_.config.flowchart.rankSpacing=d?.rankSpacing||80,_.direction=l.db.getDirection();let{config:g}=_,{look:b}=g;"neo"===b?_.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"]:_.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],_.diagramId=e,await (0,r.XX)(_,p),"elk"===_.layoutAlgorithm&&p.select(".edges").lower();let m=p.selectAll('[id*="-background"]');Array.from(m).length>0&&m.each(function(){let t=(0,h.Ltv)(this),e=t.attr("id").replace("-background",""),i=p.select(`#${CSS.escape(e)}`);if(!i.empty()){let e=i.attr("transform");t.attr("transform",e)}}),a._K.insertTitle(p,"erDiagramTitleText",d?.titleTopMargin??25,l.db.getDiagramTitle()),(0,n.P)(p,8,"erDiagram",d?.useMaxWidth??!0)},"draw"),b=(0,l.K)((t,e)=>{let i=u.A,s=i(t,"r"),n=i(t,"g"),r=i(t,"b");return d.A(s,n,r,e)},"fade"),m=new Set(["redux-color","redux-dark-color"]),f=(0,l.K)(t=>{let{theme:e,look:i,bkgColorArray:s,borderColorArray:n}=t;if(!m.has(e))return"";let r=s?.length>0,a="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)a+=`
2
2
 
3
3
  [data-look="${i}"][data-color-id="color-${e}"].node path {
4
4
  stroke: ${n[e]};
@@ -1,4 +1,4 @@
1
- export const __rspack_esm_id=2796;export const __rspack_esm_ids=[2796];export const __webpack_modules__={6471(t,e,n){n.d(e,{diagram:()=>te});var i=n(64183);n(31293);var r=n(86827),s=n(8141);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}
1
+ export const __rspack_esm_id=2796;export const __rspack_esm_ids=[2796];export const __webpack_modules__={6471(t,e,n){n.d(e,{diagram:()=>te});var i=n(64183);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
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
3
  font-family: ${t.fontFamily};
4
4
  }
@@ -1 +1 @@
1
- export const __rspack_esm_id=2807;export const __rspack_esm_ids=[2807];export const __webpack_modules__={13594(e,t,n){n.r(t),n.d(t,{default:()=>I});var s=n(71178),r=n(24282),l=n(2476),c={"presenter-view":"presenter-view-cTduwM",pane:"pane-T2Raos","pane-head":"pane-head-n9XNOO",label:"label-U9D_9i",progress:"progress-SBPdLP",kicker:"kicker-RVzjUf",times:"times-szRiLP",scale:"scale-MwFHRr",rail:"rail-hl0GsO","rail-group":"rail-group-mFTAjv",rule:"rule-rNRWQ7",tool:"tool-zvqEWN",on:"on-Ii2WCU",compact:"compact-ywTg4S",end:"end-_ds6_n",stage:"stage-dAgjhs",elapsed:"elapsed-iKYUSz",clock:"clock-CIXL0Q","stage-body":"stage-body-qDk0Ct","laser-pen":"laser-pen-COdYgR",filmstrip:"filmstrip-v42QNN","filmstrip-scroller":"filmstrip-scroller-_Bv_P0","filmstrip-track":"filmstrip-track-xqeizt",thumb:"thumb-_wYeHy",active:"active-fBwvwD","thumb-index":"thumb-index-ctFXHd",side:"side-YN8fBJ","next-pane":"next-pane-i3qfqL","next-body":"next-body-U9k16e","next-card":"next-card-Tid4bD","next-empty":"next-empty-EJ6tJw","notes-pane":"notes-pane-nO0CGT","notes-body":"notes-body-WcWg_C",empty:"empty-e0Su2A"},a=n(51649),o=n(7081),i=n(36333),m=n(98649),d=n(54670),p=n(88268),h=n(32519),u=n(83527),b=n(12574),x=n(86216),_=n(38571),f=n(3678),y=n(71753),j=n(22277),S=n(72354),v=n(48586),N=n(19436),g=n(4396),k=n(20718),w=n(73801);let C=(0,l.Q)(c);function I(e){let t,n,l,I,E,W,M,P,R,V,B,D,L,O,$,F,q,H,U,Q,Y,J,X,G,K,Z,ee,et,en,es,er,el,ec,ea,eo,ei,em,ed,ep,eh,eu,eb,ex,e_,ef,ey,ej,eS,ev,eN,eg,ek,ew,eC,eI,eT,eA,ez,eE,eW,eM,eP,eR,eV,eB,eD,eL,eO,e$,eF,eq,eH,eU,eQ,eY,eJ,eX,eG,eK,eZ,e2,e1,e0,e3,e6,e7,e8,e9,e4,e5,te,tt,tn,ts,tr,tl,tc,ta,to,ti,tm,td,tp,th,tu,tb,tx,t_,tf,ty,tj,tS,tv,tN,tg,tk,tw,tC,tI,tT,tA,tz,tE,tW,tM,tP,tR,tV,tB,tD,tL,tO,t$,tF,tq,tH,tU,tQ,tY,tJ,tX,tG,tK,tZ,t2=(0,r.c)(330),{changeViewMode:t1}=e,{LL:t0}=(0,m.PO)(),t3=(0,i.B7)(z),t6=(0,i.B7)(A),t7=(0,i.B7)(T),t8=(0,i.B7)(i.Zl),t9=(0,a.useRef)(null),t4=(0,a.useRef)(null),t5=(0,a.useRef)(null),[ne,nt]=(0,a.useState)(!1),nn=(0,o.l)(ne);t2[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>nt(!1),t2[0]=t):t=t2[0];let ns=t,[nr,nl]=(0,a.useState)(18),[nc,na]=(0,a.useState)(0),[no,ni]=(0,a.useState)(""),[nm,nd]=(0,a.useState)(240),{mousewheelListener:np,touchStartListener:nh,touchEndListener:nu,turnPrevSlide:nb,turnNextSlide:nx,turnSlideToIndex:n_,turnSlideToId:nf,execPrev:ny,execNext:nj,handleSlideClick:nS,animationIndex:nv,laserActive:nN,laserColor:ng,penActive:nk,penSession:nw,switchTool:nC,toggleTool:nI,toggleLaserColor:nT,closePenSession:nA,broadcastExit:nz}=(0,_.A)(),{slideWidth:nE,slideHeight:nW}=(0,f.A)(t9),{exitScreening:nM}=(0,x.A)(),{fullscreenState:nP,manualExitFullscreen:nR}=(0,y.A)(),nV=t3[t6+1]??null;t2[1]!==t8?(n=t8?.remark?(0,b.U)(t8.remark):"",t2[1]=t8,t2[2]=n):n=t2[2];let nB=n;e:{let e,t,n=Math.floor(nc/3600),s=Math.floor(nc%3600/60),r=nc%60;if(n>0){let e,t;t2[3]!==s?(e=(0,u.z9)(s,2),t2[3]=s,t2[4]=e):e=t2[4],t2[5]!==r?(t=(0,u.z9)(r,2),t2[5]=r,t2[6]=t):t=t2[6],l=`${n}:${e}:${t}`;break e}t2[7]!==s?(e=(0,u.z9)(s,2),t2[7]=s,t2[8]=e):e=t2[8],t2[9]!==r?(t=(0,u.z9)(r,2),t2[9]=r,t2[10]=t):t=t2[10],l=`${e}:${t}`}let nD=l;t2[11]===Symbol.for("react.memo_cache_sentinel")?(I=()=>{ni(new Intl.DateTimeFormat(void 0,{hour:"numeric",minute:"2-digit"}).format(new Date))},t2[11]=I):I=t2[11];let nL=I;t2[12]!==t7?(E=()=>{let e=t5.current;e&&nd(Math.max(0,Math.floor(Math.min(e.clientWidth,e.clientHeight/t7))))},t2[12]=t7,t2[13]=E):E=t2[13];let nO=E;t2[14]!==nR?(W=()=>{nR(),window.open(`${location.origin}${location.pathname}?mode=audience`,"fika-audience","popup")},t2[14]=nR,t2[15]=W):W=t2[15];let n$=W;t2[16]!==nS||t2[17]!==nk?(M=e=>{nk||nS(e.nativeEvent)},t2[16]=nS,t2[17]=nk,t2[18]=M):M=t2[18];let nF=M;t2[19]!==nM||t2[20]!==nz?(P=()=>{nz(),nM()},t2[19]=nM,t2[20]=nz,t2[21]=P):P=t2[21];let nq=P;t2[22]===Symbol.for("react.memo_cache_sentinel")?(R=e=>{e.preventDefault(),t4.current&&t4.current.scrollBy(e.deltaY,0)},t2[22]=R):R=t2[22];let nH=R;t2[23]===Symbol.for("react.memo_cache_sentinel")?(V=e=>{e<12||e>40||nl(e)},t2[23]=V):V=t2[23];let nU=V;t2[24]!==nO?(B=()=>{let e=Date.now();nL();let t=setInterval(()=>{na(Math.floor((Date.now()-e)/1e3)),nL()},1e3);nO();let n=t5.current,s=n?new ResizeObserver(nO):null;return n&&s&&s.observe(n),()=>{clearInterval(t),s?.disconnect()}},t2[24]=nO,t2[25]=B):B=t2[25],t2[26]===Symbol.for("react.memo_cache_sentinel")?(D=[],t2[26]=D):D=t2[26],(0,a.useEffect)(B,D),t2[27]!==nO?(L=()=>{nO()},t2[27]=nO,t2[28]=L):L=t2[28],t2[29]!==t7?(O=[t7],t2[29]=t7,t2[30]=O):O=t2[30],(0,a.useEffect)(L,O),t2[31]===Symbol.for("react.memo_cache_sentinel")?($=()=>{let e=requestAnimationFrame(()=>{if(!t4.current)return;let e=t4.current.querySelector(`.${c.thumb}.${c.active}, .thumb.active`);if(!e)return;let t=t4.current.offsetWidth,n=e.offsetLeft+e.clientWidth/2;t4.current.scrollTo({left:n-t/2,behavior:"smooth"})});return()=>cancelAnimationFrame(e)},t2[31]=$):$=t2[31],t2[32]!==t6?(F=[t6],t2[32]=t6,t2[33]=F):F=t2[33],(0,a.useEffect)($,F),t2[34]!==t0.screen.contextmenu||t2[35]!==t1||t2[36]!==nq||t2[37]!==t6||t2[38]!==t3.length||t2[39]!==nI||t2[40]!==nx||t2[41]!==nb||t2[42]!==n_?(q=()=>{let e=t0.screen.contextmenu;return[{text:e.previousSlide(),subText:"↑ ←",disable:t6<=0,handler:()=>nb()},{text:e.nextSlide(),subText:"↓ →",disable:t6>=t3.length-1,handler:()=>nx()},{text:e.firstSlide(),disable:0===t6,handler:()=>n_(0)},{text:e.lastSlide(),disable:t6===t3.length-1,handler:()=>n_(t3.length-1)},{divider:!0},{text:e.penTool(),handler:()=>nI("pen")},{text:e.laserPen(),subText:"L",handler:()=>nI("laser")},{text:e.standardView(),handler:()=>t1("base")},{divider:!0},{text:e.endSlideshow(),subText:"ESC",handler:nq}]},t2[34]=t0.screen.contextmenu,t2[35]=t1,t2[36]=nq,t2[37]=t6,t2[38]=t3.length,t2[39]=nI,t2[40]=nx,t2[41]=nb,t2[42]=n_,t2[43]=q):q=t2[43];let nQ=q;t2[44]===Symbol.for("react.memo_cache_sentinel")?(H=C("presenter-view"),U=C("rail","pane"),Q=C("rail-group"),t2[44]=H,t2[45]=U,t2[46]=Q):(H=t2[44],U=t2[45],Q=t2[46]),t2[47]===Symbol.for("react.memo_cache_sentinel")?(Y=C("tool"),t2[47]=Y):Y=t2[47],t2[48]!==t0.screen.presenter?(J=t0.screen.presenter.standardView(),t2[48]=t0.screen.presenter,t2[49]=J):J=t2[49],t2[50]!==t1?(X=()=>t1("base"),t2[50]=t1,t2[51]=X):X=t2[51],t2[52]===Symbol.for("react.memo_cache_sentinel")?(G=(0,s.jsx)(d.I,{icon:"list"}),t2[52]=G):G=t2[52],t2[53]!==J||t2[54]!==X?(K=(0,s.jsx)("button",{type:"button",className:Y,"data-tooltip":J,onClick:X,children:G}),t2[53]=J,t2[54]=X,t2[55]=K):K=t2[55],t2[56]===Symbol.for("react.memo_cache_sentinel")?(Z=C("tool"),t2[56]=Z):Z=t2[56],t2[57]!==t0.screen.presenter?(ee=t0.screen.presenter.audienceView(),t2[57]=t0.screen.presenter,t2[58]=ee):ee=t2[58],t2[59]===Symbol.for("react.memo_cache_sentinel")?(et=(0,s.jsx)(d.I,{icon:"users"}),t2[59]=et):et=t2[59],t2[60]!==n$||t2[61]!==ee?(en=(0,s.jsx)("button",{type:"button",className:Z,"data-tooltip":ee,onClick:n$,children:et}),t2[60]=n$,t2[61]=ee,t2[62]=en):en=t2[62],t2[63]!==K||t2[64]!==en?(es=(0,s.jsxs)("div",{className:Q,children:[K,en]}),t2[63]=K,t2[64]=en,t2[65]=es):es=t2[65],t2[66]===Symbol.for("react.memo_cache_sentinel")?(er=(0,s.jsx)("span",{className:C("rule")}),el=C("rail-group"),t2[66]=er,t2[67]=el):(er=t2[66],el=t2[67]),t2[68]===Symbol.for("react.memo_cache_sentinel")?(ec=C("tool"),t2[68]=ec):ec=t2[68];let nY=t6<=0;t2[69]!==t0.screen.baseView.tooltip?(ea=t0.screen.baseView.tooltip.prevSlide(),t2[69]=t0.screen.baseView.tooltip,t2[70]=ea):ea=t2[70],t2[71]!==ny?(eo=()=>ny(),t2[71]=ny,t2[72]=eo):eo=t2[72],t2[73]===Symbol.for("react.memo_cache_sentinel")?(ei=(0,s.jsx)(d.I,{icon:"chevron-up"}),t2[73]=ei):ei=t2[73],t2[74]!==nY||t2[75]!==ea||t2[76]!==eo?(em=(0,s.jsx)("button",{type:"button",className:ec,disabled:nY,"data-tooltip":ea,onClick:eo,children:ei}),t2[74]=nY,t2[75]=ea,t2[76]=eo,t2[77]=em):em=t2[77],t2[78]===Symbol.for("react.memo_cache_sentinel")?(ed=C("tool"),t2[78]=ed):ed=t2[78];let nJ=t6>=t3.length-1;t2[79]!==t0.screen.baseView.tooltip?(ep=t0.screen.baseView.tooltip.nextSlide(),t2[79]=t0.screen.baseView.tooltip,t2[80]=ep):ep=t2[80],t2[81]!==nj?(eh=()=>nj(),t2[81]=nj,t2[82]=eh):eh=t2[82],t2[83]===Symbol.for("react.memo_cache_sentinel")?(eu=(0,s.jsx)(d.I,{icon:"chevron-down"}),t2[83]=eu):eu=t2[83],t2[84]!==nJ||t2[85]!==ep||t2[86]!==eh?(eb=(0,s.jsx)("button",{type:"button",className:ed,disabled:nJ,"data-tooltip":ep,onClick:eh,children:eu}),t2[84]=nJ,t2[85]=ep,t2[86]=eh,t2[87]=eb):eb=t2[87],t2[88]!==em||t2[89]!==eb?(ex=(0,s.jsxs)("div",{className:el,children:[em,eb]}),t2[88]=em,t2[89]=eb,t2[90]=ex):ex=t2[90],t2[91]===Symbol.for("react.memo_cache_sentinel")?(e_=(0,s.jsx)("span",{className:C("rule")}),ef=C("rail-group"),t2[91]=e_,t2[92]=ef):(e_=t2[91],ef=t2[92]),t2[93]!==nk?(ey=C("tool",{on:nk}),t2[93]=nk,t2[94]=ey):ey=t2[94],t2[95]!==t0.screen.presenter?(ej=t0.screen.presenter.pen(),t2[95]=t0.screen.presenter,t2[96]=ej):ej=t2[96],t2[97]!==nC?(eS=()=>nC("pen"),t2[97]=nC,t2[98]=eS):eS=t2[98],t2[99]===Symbol.for("react.memo_cache_sentinel")?(ev=(0,s.jsx)(d.I,{icon:"pencil"}),t2[99]=ev):ev=t2[99],t2[100]!==ey||t2[101]!==ej||t2[102]!==eS?(eN=(0,s.jsx)("button",{type:"button",className:ey,"data-tooltip":ej,onClick:eS,children:ev}),t2[100]=ey,t2[101]=ej,t2[102]=eS,t2[103]=eN):eN=t2[103],t2[104]!==nN?(eg=C("tool",{on:nN}),t2[104]=nN,t2[105]=eg):eg=t2[105],t2[106]!==t0.screen.presenter?(ek=t0.screen.presenter.laserPen(),t2[106]=t0.screen.presenter,t2[107]=ek):ek=t2[107],t2[108]!==nI?(ew=()=>nI("laser"),t2[108]=nI,t2[109]=ew):ew=t2[109],t2[110]===Symbol.for("react.memo_cache_sentinel")?(eC=(0,s.jsx)(d.I,{icon:"sparkles"}),t2[110]=eC):eC=t2[110],t2[111]!==eg||t2[112]!==ek||t2[113]!==ew?(eI=(0,s.jsx)("button",{type:"button",className:eg,"data-tooltip":ek,onClick:ew,children:eC}),t2[111]=eg,t2[112]=ek,t2[113]=ew,t2[114]=eI):eI=t2[114],t2[115]!==ng||t2[116]!==nT?(eT=(0,s.jsx)(w.A,{layout:"grid",laserColor:ng,toggleLaserColor:nT}),t2[115]=ng,t2[116]=nT,t2[117]=eT):eT=t2[117],t2[118]!==eN||t2[119]!==eI||t2[120]!==eT?(eA=(0,s.jsxs)("div",{className:ef,children:[eN,eI,eT]}),t2[118]=eN,t2[119]=eI,t2[120]=eT,t2[121]=eA):eA=t2[121],t2[122]===Symbol.for("react.memo_cache_sentinel")?(ez=(0,s.jsx)("span",{className:C("rule")}),eE=C("rail-group"),t2[122]=ez,t2[123]=eE):(ez=t2[122],eE=t2[123]),t2[124]!==ne?(eW=C("tool",{on:ne}),t2[124]=ne,t2[125]=eW):eW=t2[125],t2[126]!==t0.screen.presenter?(eM=t0.screen.presenter.timer(),t2[126]=t0.screen.presenter,t2[127]=eM):eM=t2[127],t2[128]!==ne?(eP=()=>nt(!ne),t2[128]=ne,t2[129]=eP):eP=t2[129],t2[130]===Symbol.for("react.memo_cache_sentinel")?(eR=(0,s.jsx)(d.I,{icon:"timer"}),t2[130]=eR):eR=t2[130],t2[131]!==eW||t2[132]!==eM||t2[133]!==eP?(eV=(0,s.jsx)("button",{type:"button",className:eW,"data-tooltip":eM,onClick:eP,children:eR}),t2[131]=eW,t2[132]=eM,t2[133]=eP,t2[134]=eV):eV=t2[134],t2[135]===Symbol.for("react.memo_cache_sentinel")?(eB=C("tool"),t2[135]=eB):eB=t2[135],t2[136]!==t0.screen.presenter||t2[137]!==nP?(eD=nP?t0.screen.presenter.exitFullscreen():t0.screen.presenter.fullscreen(),t2[136]=t0.screen.presenter,t2[137]=nP,t2[138]=eD):eD=t2[138];let nX=nP?nR:h.Kk,nG=nP?"minimize":"maximize";if(t2[139]!==nG?(eL=(0,s.jsx)(d.I,{icon:nG}),t2[139]=nG,t2[140]=eL):eL=t2[140],t2[141]!==eD||t2[142]!==nX||t2[143]!==eL?(eO=(0,s.jsx)("button",{type:"button",className:eB,"data-tooltip":eD,onClick:nX,children:eL}),t2[141]=eD,t2[142]=nX,t2[143]=eL,t2[144]=eO):eO=t2[144],t2[145]!==eV||t2[146]!==eO?(e$=(0,s.jsxs)("div",{className:eE,children:[eV,eO]}),t2[145]=eV,t2[146]=eO,t2[147]=e$):e$=t2[147],t2[148]===Symbol.for("react.memo_cache_sentinel")?(eF=C("tool","end"),t2[148]=eF):eF=t2[148],t2[149]!==t0.screen.presenter?(eq=t0.screen.presenter.endSlideshow(),t2[149]=t0.screen.presenter,t2[150]=eq):eq=t2[150],t2[151]===Symbol.for("react.memo_cache_sentinel")?(eH=(0,s.jsx)(d.I,{icon:"power"}),t2[151]=eH):eH=t2[151],t2[152]!==nq||t2[153]!==eq?(eU=(0,s.jsx)("button",{type:"button",className:eF,"data-tooltip":eq,onClick:nq,children:eH}),t2[152]=nq,t2[153]=eq,t2[154]=eU):eU=t2[154],t2[155]!==es||t2[156]!==ex||t2[157]!==eA||t2[158]!==e$||t2[159]!==eU?(eQ=(0,s.jsxs)("nav",{className:U,children:[es,er,ex,e_,eA,ez,e$,eU]}),t2[155]=es,t2[156]=ex,t2[157]=eA,t2[158]=e$,t2[159]=eU,t2[160]=eQ):eQ=t2[160],t2[161]===Symbol.for("react.memo_cache_sentinel")?(eY=C("stage","pane"),eJ=C("pane-head"),eX=C("kicker"),eG=C("label"),t2[161]=eY,t2[162]=eJ,t2[163]=eX,t2[164]=eG):(eY=t2[161],eJ=t2[162],eX=t2[163],eG=t2[164]),t2[165]!==t0.screen.presenter?(eK=t0.screen.presenter.now(),t2[165]=t0.screen.presenter,t2[166]=eK):eK=t2[166],t2[167]!==eK?(eZ=(0,s.jsx)("span",{className:eG,children:eK}),t2[167]=eK,t2[168]=eZ):eZ=t2[168],t2[169]===Symbol.for("react.memo_cache_sentinel")?(e2=C("progress"),t2[169]=e2):e2=t2[169],t2[170]!==t0.screen.presenter||t2[171]!==t6||t2[172]!==t3.length?(e1=t0.screen.presenter.slideProgress({current:t6+1,total:t3.length}),t2[170]=t0.screen.presenter,t2[171]=t6,t2[172]=t3.length,t2[173]=e1):e1=t2[173],t2[174]!==e1?(e0=(0,s.jsx)("span",{className:e2,children:e1}),t2[174]=e1,t2[175]=e0):e0=t2[175],t2[176]!==eZ||t2[177]!==e0?(e3=(0,s.jsxs)("div",{className:eX,children:[eZ,e0]}),t2[176]=eZ,t2[177]=e0,t2[178]=e3):e3=t2[178],t2[179]===Symbol.for("react.memo_cache_sentinel")?(e6=C("times"),e7=C("elapsed"),t2[179]=e6,t2[180]=e7):(e6=t2[179],e7=t2[180]),t2[181]!==t0.screen.presenter?(e8=t0.screen.presenter.elapsed(),t2[181]=t0.screen.presenter,t2[182]=e8):e8=t2[182],t2[183]===Symbol.for("react.memo_cache_sentinel")?(e9=(0,s.jsx)(d.I,{icon:"timer"}),t2[183]=e9):e9=t2[183],t2[184]!==nD||t2[185]!==e8?(e4=(0,s.jsxs)("span",{className:e7,"data-tooltip":e8,children:[e9,nD]}),t2[184]=nD,t2[185]=e8,t2[186]=e4):e4=t2[186],t2[187]===Symbol.for("react.memo_cache_sentinel")?(e5=C("clock"),t2[187]=e5):e5=t2[187],t2[188]!==no?(te=(0,s.jsx)("span",{className:e5,children:no}),t2[188]=no,t2[189]=te):te=t2[189],t2[190]!==e4||t2[191]!==te?(tt=(0,s.jsxs)("div",{className:e6,children:[e4,te]}),t2[190]=e4,t2[191]=te,t2[192]=tt):tt=t2[192],t2[193]!==e3||t2[194]!==tt?(tn=(0,s.jsxs)("header",{className:eJ,children:[e3,tt]}),t2[193]=e3,t2[194]=tt,t2[195]=tn):tn=t2[195],t2[196]!==nN?(ts=C("stage-body",{"laser-pen":nN}),t2[196]=nN,t2[197]=ts):ts=t2[197],t2[198]!==np?(tr=e=>np(e.nativeEvent),t2[198]=np,t2[199]=tr):tr=t2[199],t2[200]!==nh?(tl=e=>nh(e.nativeEvent),t2[200]=nh,t2[201]=tl):tl=t2[201],t2[202]!==nu?(tc=e=>nu(e.nativeEvent),t2[202]=nu,t2[203]=tc):tc=t2[203],t2[204]!==nQ?(ta=e=>(0,p.L)(e,nQ),t2[204]=nQ,t2[205]=ta):ta=t2[205],t2[206]!==nv||t2[207]!==nR||t2[208]!==nF||t2[209]!==nW||t2[210]!==nE||t2[211]!==tl||t2[212]!==tc||t2[213]!==ta||t2[214]!==tr||t2[215]!==nf?(to=(0,s.jsx)(S.A,{variant:"paper",slideWidth:nE,slideHeight:nW,animationIndex:nv,turnSlideToId:nf,manualExitFullscreen:nR,onWheel:tr,onTouchStart:tl,onTouchEnd:tc,onClick:nF,onContextMenu:ta}),t2[206]=nv,t2[207]=nR,t2[208]=nF,t2[209]=nW,t2[210]=nE,t2[211]=tl,t2[212]=tc,t2[213]=ta,t2[214]=tr,t2[215]=nf,t2[216]=to):to=t2[216],t2[217]!==nA||t2[218]!==nk||t2[219]!==nw||t2[220]!==nW||t2[221]!==nE?(ti=nw?(0,s.jsx)(g.A,{slideWidth:nE,slideHeight:nW,left:72,top:56,drawing:nk,onClose:nA}):null,t2[217]=nA,t2[218]=nk,t2[219]=nw,t2[220]=nW,t2[221]=nE,t2[222]=ti):ti=t2[222],t2[223]!==nN||t2[224]!==ng?(tm=(0,s.jsx)(N.A,{active:nN,color:ng,trackPointer:!0}),t2[223]=nN,t2[224]=ng,t2[225]=tm):tm=t2[225],t2[226]!==nn||t2[227]!==ne?(td=nn?(0,s.jsx)("div",{style:{display:ne?void 0:"none"},children:(0,s.jsx)(k.A,{left:72,top:56,onClose:ns})}):null,t2[226]=nn,t2[227]=ne,t2[228]=td):td=t2[228],t2[229]!==to||t2[230]!==ti||t2[231]!==tm||t2[232]!==td||t2[233]!==ts?(tp=(0,s.jsxs)("div",{className:ts,ref:t9,children:[to,ti,tm,td]}),t2[229]=to,t2[230]=ti,t2[231]=tm,t2[232]=td,t2[233]=ts,t2[234]=tp):tp=t2[234],t2[235]!==tp||t2[236]!==tn?(th=(0,s.jsxs)("section",{className:eY,children:[tn,tp]}),t2[235]=tp,t2[236]=tn,t2[237]=th):th=t2[237],t2[238]===Symbol.for("react.memo_cache_sentinel")?(tu=C("filmstrip","pane"),tb=C("filmstrip-scroller"),t2[238]=tu,t2[239]=tb):(tu=t2[238],tb=t2[239]),t2[240]===Symbol.for("react.memo_cache_sentinel")?(tx=C("filmstrip-track"),t2[240]=tx):tx=t2[240],t2[241]!==t6||t2[242]!==t3||t2[243]!==n_||t2[244]!==t7){let e;t2[246]!==t6||t2[247]!==n_||t2[248]!==t7?(e=(e,t)=>(0,s.jsxs)("button",{type:"button",className:C("thumb",{active:t===t6}),onClick:()=>n_(t),children:[(0,s.jsx)(j.A,{slide:{id:e.id},size:72/t7,visible:(0,v.QO)(t,t6,6)}),(0,s.jsx)("span",{className:C("thumb-index"),children:t+1})]},e.id),t2[246]=t6,t2[247]=n_,t2[248]=t7,t2[249]=e):e=t2[249],t_=t3.map(e),t2[241]=t6,t2[242]=t3,t2[243]=n_,t2[244]=t7,t2[245]=t_}else t_=t2[245];t2[250]!==t_?(tf=(0,s.jsx)("aside",{className:tu,children:(0,s.jsx)("div",{className:tb,ref:t4,onWheel:nH,children:(0,s.jsx)("div",{className:tx,children:t_})})}),t2[250]=t_,t2[251]=tf):tf=t2[251],t2[252]===Symbol.for("react.memo_cache_sentinel")?(ty=C("side"),tj=C("next-pane","pane"),tS=C("pane-head"),tv=C("label"),t2[252]=ty,t2[253]=tj,t2[254]=tS,t2[255]=tv):(ty=t2[252],tj=t2[253],tS=t2[254],tv=t2[255]),t2[256]!==t0.screen.presenter?(tN=t0.screen.presenter.next(),t2[256]=t0.screen.presenter,t2[257]=tN):tN=t2[257],t2[258]!==tN?(tg=(0,s.jsx)("span",{className:tv,children:tN}),t2[258]=tN,t2[259]=tg):tg=t2[259],t2[260]!==t0.screen.presenter||t2[261]!==nV||t2[262]!==t6||t2[263]!==t3.length?(tk=nV?(0,s.jsx)("span",{className:C("progress"),children:t0.screen.presenter.slideProgress({current:t6+2,total:t3.length})}):null,t2[260]=t0.screen.presenter,t2[261]=nV,t2[262]=t6,t2[263]=t3.length,t2[264]=tk):tk=t2[264],t2[265]!==tg||t2[266]!==tk?(tw=(0,s.jsxs)("header",{className:tS,children:[tg,tk]}),t2[265]=tg,t2[266]=tk,t2[267]=tw):tw=t2[267],t2[268]===Symbol.for("react.memo_cache_sentinel")?(tC=C("next-body"),t2[268]=tC):tC=t2[268],t2[269]!==t0.screen.presenter||t2[270]!==nm||t2[271]!==nV||t2[272]!==t6||t2[273]!==n_?(tI=(0,s.jsx)("div",{className:tC,ref:t5,children:nV?(0,s.jsx)("button",{type:"button",className:C("next-card"),onClick:()=>n_(t6+1),children:nm>0?(0,s.jsx)(j.A,{slide:{id:nV.id},size:nm}):null}):(0,s.jsx)("div",{className:C("next-empty"),children:t0.screen.presenter.endOfSlides()})}),t2[269]=t0.screen.presenter,t2[270]=nm,t2[271]=nV,t2[272]=t6,t2[273]=n_,t2[274]=tI):tI=t2[274],t2[275]!==tw||t2[276]!==tI?(tT=(0,s.jsxs)("section",{className:tj,children:[tw,tI]}),t2[275]=tw,t2[276]=tI,t2[277]=tT):tT=t2[277],t2[278]===Symbol.for("react.memo_cache_sentinel")?(tA=C("notes-pane","pane"),tz=C("pane-head"),tE=C("label"),t2[278]=tA,t2[279]=tz,t2[280]=tE):(tA=t2[278],tz=t2[279],tE=t2[280]),t2[281]!==t0.screen.presenter?(tW=t0.screen.presenter.speakerNotes(),t2[281]=t0.screen.presenter,t2[282]=tW):tW=t2[282],t2[283]!==tW?(tM=(0,s.jsx)("span",{className:tE,children:tW}),t2[283]=tW,t2[284]=tM):tM=t2[284],t2[285]===Symbol.for("react.memo_cache_sentinel")?(tP=C("scale"),t2[285]=tP):tP=t2[285],t2[286]===Symbol.for("react.memo_cache_sentinel")?(tR=C("tool","compact"),t2[286]=tR):tR=t2[286];let nK=12===nr;t2[287]!==nr?(tV=()=>nU(nr-2),t2[287]=nr,t2[288]=tV):tV=t2[288],t2[289]===Symbol.for("react.memo_cache_sentinel")?(tB=(0,s.jsx)(d.I,{icon:"minus"}),t2[289]=tB):tB=t2[289],t2[290]!==nK||t2[291]!==tV?(tD=(0,s.jsx)("button",{type:"button",className:tR,disabled:nK,onClick:tV,children:tB}),t2[290]=nK,t2[291]=tV,t2[292]=tD):tD=t2[292],t2[293]===Symbol.for("react.memo_cache_sentinel")?(tL=C("tool","compact"),t2[293]=tL):tL=t2[293];let nZ=40===nr;t2[294]!==nr?(tO=()=>nU(nr+2),t2[294]=nr,t2[295]=tO):tO=t2[295],t2[296]===Symbol.for("react.memo_cache_sentinel")?(t$=(0,s.jsx)(d.I,{icon:"plus"}),t2[296]=t$):t$=t2[296],t2[297]!==nZ||t2[298]!==tO?(tF=(0,s.jsx)("button",{type:"button",className:tL,disabled:nZ,onClick:tO,children:t$}),t2[297]=nZ,t2[298]=tO,t2[299]=tF):tF=t2[299],t2[300]!==tD||t2[301]!==tF?(tq=(0,s.jsxs)("div",{className:tP,children:[tD,tF]}),t2[300]=tD,t2[301]=tF,t2[302]=tq):tq=t2[302],t2[303]!==tM||t2[304]!==tq?(tH=(0,s.jsxs)("header",{className:tz,children:[tM,tq]}),t2[303]=tM,t2[304]=tq,t2[305]=tH):tH=t2[305];let n2=!nB;t2[306]!==n2?(tU=C("notes-body","ProseMirror-static",{empty:n2}),t2[306]=n2,t2[307]=tU):tU=t2[307];let n1=nr+"px";return t2[308]!==n1?(tQ={fontSize:n1},t2[308]=n1,t2[309]=tQ):tQ=t2[309],t2[310]!==t0.screen.presenter||t2[311]!==nB?(tY=nB||t0.screen.presenter.noNotes(),t2[310]=t0.screen.presenter,t2[311]=nB,t2[312]=tY):tY=t2[312],t2[313]!==tY?(tJ={__html:tY},t2[313]=tY,t2[314]=tJ):tJ=t2[314],t2[315]!==tU||t2[316]!==tQ||t2[317]!==tJ?(tX=(0,s.jsx)("div",{className:tU,style:tQ,dangerouslySetInnerHTML:tJ}),t2[315]=tU,t2[316]=tQ,t2[317]=tJ,t2[318]=tX):tX=t2[318],t2[319]!==tH||t2[320]!==tX?(tG=(0,s.jsxs)("section",{className:tA,children:[tH,tX]}),t2[319]=tH,t2[320]=tX,t2[321]=tG):tG=t2[321],t2[322]!==tT||t2[323]!==tG?(tK=(0,s.jsxs)("aside",{className:ty,children:[tT,tG]}),t2[322]=tT,t2[323]=tG,t2[324]=tK):tK=t2[324],t2[325]!==th||t2[326]!==tf||t2[327]!==tK||t2[328]!==eQ?(tZ=(0,s.jsxs)("div",{className:H,children:[eQ,th,tf,tK]}),t2[325]=th,t2[326]=tf,t2[327]=tK,t2[328]=eQ,t2[329]=tZ):tZ=t2[329],tZ}function T(e){return e.viewportRatio}function A(e){return e.slideIndex}function z(e){return e.slides}}};
1
+ export const __rspack_esm_id=2807;export const __rspack_esm_ids=[2807];export const __webpack_modules__={13594(e,t,n){n.r(t),n.d(t,{default:()=>I});var s=n(71178),r=n(24282),l=n(2476),c={"presenter-view":"presenter-view-cTduwM",pane:"pane-T2Raos","pane-head":"pane-head-n9XNOO",label:"label-U9D_9i",progress:"progress-SBPdLP",kicker:"kicker-RVzjUf",times:"times-szRiLP",scale:"scale-MwFHRr",rail:"rail-hl0GsO","rail-group":"rail-group-mFTAjv",rule:"rule-rNRWQ7",tool:"tool-zvqEWN",on:"on-Ii2WCU",compact:"compact-ywTg4S",end:"end-_ds6_n",stage:"stage-dAgjhs",elapsed:"elapsed-iKYUSz",clock:"clock-CIXL0Q","stage-body":"stage-body-qDk0Ct","laser-pen":"laser-pen-COdYgR",filmstrip:"filmstrip-v42QNN","filmstrip-scroller":"filmstrip-scroller-_Bv_P0","filmstrip-track":"filmstrip-track-xqeizt",thumb:"thumb-_wYeHy",active:"active-fBwvwD","thumb-index":"thumb-index-ctFXHd",side:"side-YN8fBJ","next-pane":"next-pane-i3qfqL","next-body":"next-body-U9k16e","next-card":"next-card-Tid4bD","next-empty":"next-empty-EJ6tJw","notes-pane":"notes-pane-nO0CGT","notes-body":"notes-body-WcWg_C",empty:"empty-e0Su2A"},a=n(51649),o=n(7081),i=n(36333),m=n(98649),d=n(54670),p=n(88268),h=n(32519),u=n(83527),b=n(12574),x=n(86216),_=n(38571),f=n(3678),y=n(71753),j=n(80496),S=n(10071),v=n(48586),N=n(19436),g=n(4396),k=n(20718),w=n(73801);let C=(0,l.Q)(c);function I(e){let t,n,l,I,E,W,M,P,R,V,B,D,L,O,$,F,q,H,U,Q,Y,J,X,G,K,Z,ee,et,en,es,er,el,ec,ea,eo,ei,em,ed,ep,eh,eu,eb,ex,e_,ef,ey,ej,eS,ev,eN,eg,ek,ew,eC,eI,eT,eA,ez,eE,eW,eM,eP,eR,eV,eB,eD,eL,eO,e$,eF,eq,eH,eU,eQ,eY,eJ,eX,eG,eK,eZ,e2,e1,e0,e3,e6,e8,e7,e9,e4,e5,te,tt,tn,ts,tr,tl,tc,ta,to,ti,tm,td,tp,th,tu,tb,tx,t_,tf,ty,tj,tS,tv,tN,tg,tk,tw,tC,tI,tT,tA,tz,tE,tW,tM,tP,tR,tV,tB,tD,tL,tO,t$,tF,tq,tH,tU,tQ,tY,tJ,tX,tG,tK,tZ,t2=(0,r.c)(330),{changeViewMode:t1}=e,{LL:t0}=(0,m.PO)(),t3=(0,i.B7)(z),t6=(0,i.B7)(A),t8=(0,i.B7)(T),t7=(0,i.B7)(i.Zl),t9=(0,a.useRef)(null),t4=(0,a.useRef)(null),t5=(0,a.useRef)(null),[ne,nt]=(0,a.useState)(!1),nn=(0,o.l)(ne);t2[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>nt(!1),t2[0]=t):t=t2[0];let ns=t,[nr,nl]=(0,a.useState)(18),[nc,na]=(0,a.useState)(0),[no,ni]=(0,a.useState)(""),[nm,nd]=(0,a.useState)(240),{mousewheelListener:np,touchStartListener:nh,touchEndListener:nu,turnPrevSlide:nb,turnNextSlide:nx,turnSlideToIndex:n_,turnSlideToId:nf,execPrev:ny,execNext:nj,handleSlideClick:nS,animationIndex:nv,laserActive:nN,laserColor:ng,penActive:nk,penSession:nw,switchTool:nC,toggleTool:nI,toggleLaserColor:nT,closePenSession:nA,broadcastExit:nz}=(0,_.A)(),{slideWidth:nE,slideHeight:nW}=(0,f.A)(t9),{exitScreening:nM}=(0,x.A)(),{fullscreenState:nP,manualExitFullscreen:nR}=(0,y.A)(),nV=t3[t6+1]??null;t2[1]!==t7?(n=t7?.remark?(0,b.U)(t7.remark):"",t2[1]=t7,t2[2]=n):n=t2[2];let nB=n;e:{let e,t,n=Math.floor(nc/3600),s=Math.floor(nc%3600/60),r=nc%60;if(n>0){let e,t;t2[3]!==s?(e=(0,u.z9)(s,2),t2[3]=s,t2[4]=e):e=t2[4],t2[5]!==r?(t=(0,u.z9)(r,2),t2[5]=r,t2[6]=t):t=t2[6],l=`${n}:${e}:${t}`;break e}t2[7]!==s?(e=(0,u.z9)(s,2),t2[7]=s,t2[8]=e):e=t2[8],t2[9]!==r?(t=(0,u.z9)(r,2),t2[9]=r,t2[10]=t):t=t2[10],l=`${e}:${t}`}let nD=l;t2[11]===Symbol.for("react.memo_cache_sentinel")?(I=()=>{ni(new Intl.DateTimeFormat(void 0,{hour:"numeric",minute:"2-digit"}).format(new Date))},t2[11]=I):I=t2[11];let nL=I;t2[12]!==t8?(E=()=>{let e=t5.current;e&&nd(Math.max(0,Math.floor(Math.min(e.clientWidth,e.clientHeight/t8))))},t2[12]=t8,t2[13]=E):E=t2[13];let nO=E;t2[14]!==nR?(W=()=>{nR(),window.open(`${location.origin}${location.pathname}?mode=audience`,"fika-audience","popup")},t2[14]=nR,t2[15]=W):W=t2[15];let n$=W;t2[16]!==nS||t2[17]!==nk?(M=e=>{nk||nS(e.nativeEvent)},t2[16]=nS,t2[17]=nk,t2[18]=M):M=t2[18];let nF=M;t2[19]!==nM||t2[20]!==nz?(P=()=>{nz(),nM()},t2[19]=nM,t2[20]=nz,t2[21]=P):P=t2[21];let nq=P;t2[22]===Symbol.for("react.memo_cache_sentinel")?(R=e=>{e.preventDefault(),t4.current&&t4.current.scrollBy(e.deltaY,0)},t2[22]=R):R=t2[22];let nH=R;t2[23]===Symbol.for("react.memo_cache_sentinel")?(V=e=>{e<12||e>40||nl(e)},t2[23]=V):V=t2[23];let nU=V;t2[24]!==nO?(B=()=>{let e=Date.now();nL();let t=setInterval(()=>{na(Math.floor((Date.now()-e)/1e3)),nL()},1e3);nO();let n=t5.current,s=n?new ResizeObserver(nO):null;return n&&s&&s.observe(n),()=>{clearInterval(t),s?.disconnect()}},t2[24]=nO,t2[25]=B):B=t2[25],t2[26]===Symbol.for("react.memo_cache_sentinel")?(D=[],t2[26]=D):D=t2[26],(0,a.useEffect)(B,D),t2[27]!==nO?(L=()=>{nO()},t2[27]=nO,t2[28]=L):L=t2[28],t2[29]!==t8?(O=[t8],t2[29]=t8,t2[30]=O):O=t2[30],(0,a.useEffect)(L,O),t2[31]===Symbol.for("react.memo_cache_sentinel")?($=()=>{let e=requestAnimationFrame(()=>{if(!t4.current)return;let e=t4.current.querySelector(`.${c.thumb}.${c.active}, .thumb.active`);if(!e)return;let t=t4.current.offsetWidth,n=e.offsetLeft+e.clientWidth/2;t4.current.scrollTo({left:n-t/2,behavior:"smooth"})});return()=>cancelAnimationFrame(e)},t2[31]=$):$=t2[31],t2[32]!==t6?(F=[t6],t2[32]=t6,t2[33]=F):F=t2[33],(0,a.useEffect)($,F),t2[34]!==t0.screen.contextmenu||t2[35]!==t1||t2[36]!==nq||t2[37]!==t6||t2[38]!==t3.length||t2[39]!==nI||t2[40]!==nx||t2[41]!==nb||t2[42]!==n_?(q=()=>{let e=t0.screen.contextmenu;return[{text:e.previousSlide(),subText:"↑ ←",disable:t6<=0,handler:()=>nb()},{text:e.nextSlide(),subText:"↓ →",disable:t6>=t3.length-1,handler:()=>nx()},{text:e.firstSlide(),disable:0===t6,handler:()=>n_(0)},{text:e.lastSlide(),disable:t6===t3.length-1,handler:()=>n_(t3.length-1)},{divider:!0},{text:e.penTool(),handler:()=>nI("pen")},{text:e.laserPen(),subText:"L",handler:()=>nI("laser")},{text:e.standardView(),handler:()=>t1("base")},{divider:!0},{text:e.endSlideshow(),subText:"ESC",handler:nq}]},t2[34]=t0.screen.contextmenu,t2[35]=t1,t2[36]=nq,t2[37]=t6,t2[38]=t3.length,t2[39]=nI,t2[40]=nx,t2[41]=nb,t2[42]=n_,t2[43]=q):q=t2[43];let nQ=q;t2[44]===Symbol.for("react.memo_cache_sentinel")?(H=C("presenter-view"),U=C("rail","pane"),Q=C("rail-group"),t2[44]=H,t2[45]=U,t2[46]=Q):(H=t2[44],U=t2[45],Q=t2[46]),t2[47]===Symbol.for("react.memo_cache_sentinel")?(Y=C("tool"),t2[47]=Y):Y=t2[47],t2[48]!==t0.screen.presenter?(J=t0.screen.presenter.standardView(),t2[48]=t0.screen.presenter,t2[49]=J):J=t2[49],t2[50]!==t1?(X=()=>t1("base"),t2[50]=t1,t2[51]=X):X=t2[51],t2[52]===Symbol.for("react.memo_cache_sentinel")?(G=(0,s.jsx)(d.I,{icon:"list"}),t2[52]=G):G=t2[52],t2[53]!==J||t2[54]!==X?(K=(0,s.jsx)("button",{type:"button",className:Y,"data-tooltip":J,onClick:X,children:G}),t2[53]=J,t2[54]=X,t2[55]=K):K=t2[55],t2[56]===Symbol.for("react.memo_cache_sentinel")?(Z=C("tool"),t2[56]=Z):Z=t2[56],t2[57]!==t0.screen.presenter?(ee=t0.screen.presenter.audienceView(),t2[57]=t0.screen.presenter,t2[58]=ee):ee=t2[58],t2[59]===Symbol.for("react.memo_cache_sentinel")?(et=(0,s.jsx)(d.I,{icon:"users"}),t2[59]=et):et=t2[59],t2[60]!==n$||t2[61]!==ee?(en=(0,s.jsx)("button",{type:"button",className:Z,"data-tooltip":ee,onClick:n$,children:et}),t2[60]=n$,t2[61]=ee,t2[62]=en):en=t2[62],t2[63]!==K||t2[64]!==en?(es=(0,s.jsxs)("div",{className:Q,children:[K,en]}),t2[63]=K,t2[64]=en,t2[65]=es):es=t2[65],t2[66]===Symbol.for("react.memo_cache_sentinel")?(er=(0,s.jsx)("span",{className:C("rule")}),el=C("rail-group"),t2[66]=er,t2[67]=el):(er=t2[66],el=t2[67]),t2[68]===Symbol.for("react.memo_cache_sentinel")?(ec=C("tool"),t2[68]=ec):ec=t2[68];let nY=t6<=0;t2[69]!==t0.screen.baseView.tooltip?(ea=t0.screen.baseView.tooltip.prevSlide(),t2[69]=t0.screen.baseView.tooltip,t2[70]=ea):ea=t2[70],t2[71]!==ny?(eo=()=>ny(),t2[71]=ny,t2[72]=eo):eo=t2[72],t2[73]===Symbol.for("react.memo_cache_sentinel")?(ei=(0,s.jsx)(d.I,{icon:"chevron-up"}),t2[73]=ei):ei=t2[73],t2[74]!==nY||t2[75]!==ea||t2[76]!==eo?(em=(0,s.jsx)("button",{type:"button",className:ec,disabled:nY,"data-tooltip":ea,onClick:eo,children:ei}),t2[74]=nY,t2[75]=ea,t2[76]=eo,t2[77]=em):em=t2[77],t2[78]===Symbol.for("react.memo_cache_sentinel")?(ed=C("tool"),t2[78]=ed):ed=t2[78];let nJ=t6>=t3.length-1;t2[79]!==t0.screen.baseView.tooltip?(ep=t0.screen.baseView.tooltip.nextSlide(),t2[79]=t0.screen.baseView.tooltip,t2[80]=ep):ep=t2[80],t2[81]!==nj?(eh=()=>nj(),t2[81]=nj,t2[82]=eh):eh=t2[82],t2[83]===Symbol.for("react.memo_cache_sentinel")?(eu=(0,s.jsx)(d.I,{icon:"chevron-down"}),t2[83]=eu):eu=t2[83],t2[84]!==nJ||t2[85]!==ep||t2[86]!==eh?(eb=(0,s.jsx)("button",{type:"button",className:ed,disabled:nJ,"data-tooltip":ep,onClick:eh,children:eu}),t2[84]=nJ,t2[85]=ep,t2[86]=eh,t2[87]=eb):eb=t2[87],t2[88]!==em||t2[89]!==eb?(ex=(0,s.jsxs)("div",{className:el,children:[em,eb]}),t2[88]=em,t2[89]=eb,t2[90]=ex):ex=t2[90],t2[91]===Symbol.for("react.memo_cache_sentinel")?(e_=(0,s.jsx)("span",{className:C("rule")}),ef=C("rail-group"),t2[91]=e_,t2[92]=ef):(e_=t2[91],ef=t2[92]),t2[93]!==nk?(ey=C("tool",{on:nk}),t2[93]=nk,t2[94]=ey):ey=t2[94],t2[95]!==t0.screen.presenter?(ej=t0.screen.presenter.pen(),t2[95]=t0.screen.presenter,t2[96]=ej):ej=t2[96],t2[97]!==nC?(eS=()=>nC("pen"),t2[97]=nC,t2[98]=eS):eS=t2[98],t2[99]===Symbol.for("react.memo_cache_sentinel")?(ev=(0,s.jsx)(d.I,{icon:"pencil"}),t2[99]=ev):ev=t2[99],t2[100]!==ey||t2[101]!==ej||t2[102]!==eS?(eN=(0,s.jsx)("button",{type:"button",className:ey,"data-tooltip":ej,onClick:eS,children:ev}),t2[100]=ey,t2[101]=ej,t2[102]=eS,t2[103]=eN):eN=t2[103],t2[104]!==nN?(eg=C("tool",{on:nN}),t2[104]=nN,t2[105]=eg):eg=t2[105],t2[106]!==t0.screen.presenter?(ek=t0.screen.presenter.laserPen(),t2[106]=t0.screen.presenter,t2[107]=ek):ek=t2[107],t2[108]!==nI?(ew=()=>nI("laser"),t2[108]=nI,t2[109]=ew):ew=t2[109],t2[110]===Symbol.for("react.memo_cache_sentinel")?(eC=(0,s.jsx)(d.I,{icon:"sparkles"}),t2[110]=eC):eC=t2[110],t2[111]!==eg||t2[112]!==ek||t2[113]!==ew?(eI=(0,s.jsx)("button",{type:"button",className:eg,"data-tooltip":ek,onClick:ew,children:eC}),t2[111]=eg,t2[112]=ek,t2[113]=ew,t2[114]=eI):eI=t2[114],t2[115]!==ng||t2[116]!==nT?(eT=(0,s.jsx)(w.A,{layout:"grid",laserColor:ng,toggleLaserColor:nT}),t2[115]=ng,t2[116]=nT,t2[117]=eT):eT=t2[117],t2[118]!==eN||t2[119]!==eI||t2[120]!==eT?(eA=(0,s.jsxs)("div",{className:ef,children:[eN,eI,eT]}),t2[118]=eN,t2[119]=eI,t2[120]=eT,t2[121]=eA):eA=t2[121],t2[122]===Symbol.for("react.memo_cache_sentinel")?(ez=(0,s.jsx)("span",{className:C("rule")}),eE=C("rail-group"),t2[122]=ez,t2[123]=eE):(ez=t2[122],eE=t2[123]),t2[124]!==ne?(eW=C("tool",{on:ne}),t2[124]=ne,t2[125]=eW):eW=t2[125],t2[126]!==t0.screen.presenter?(eM=t0.screen.presenter.timer(),t2[126]=t0.screen.presenter,t2[127]=eM):eM=t2[127],t2[128]!==ne?(eP=()=>nt(!ne),t2[128]=ne,t2[129]=eP):eP=t2[129],t2[130]===Symbol.for("react.memo_cache_sentinel")?(eR=(0,s.jsx)(d.I,{icon:"timer"}),t2[130]=eR):eR=t2[130],t2[131]!==eW||t2[132]!==eM||t2[133]!==eP?(eV=(0,s.jsx)("button",{type:"button",className:eW,"data-tooltip":eM,onClick:eP,children:eR}),t2[131]=eW,t2[132]=eM,t2[133]=eP,t2[134]=eV):eV=t2[134],t2[135]===Symbol.for("react.memo_cache_sentinel")?(eB=C("tool"),t2[135]=eB):eB=t2[135],t2[136]!==t0.screen.presenter||t2[137]!==nP?(eD=nP?t0.screen.presenter.exitFullscreen():t0.screen.presenter.fullscreen(),t2[136]=t0.screen.presenter,t2[137]=nP,t2[138]=eD):eD=t2[138];let nX=nP?nR:h.Kk,nG=nP?"minimize":"maximize";if(t2[139]!==nG?(eL=(0,s.jsx)(d.I,{icon:nG}),t2[139]=nG,t2[140]=eL):eL=t2[140],t2[141]!==eD||t2[142]!==nX||t2[143]!==eL?(eO=(0,s.jsx)("button",{type:"button",className:eB,"data-tooltip":eD,onClick:nX,children:eL}),t2[141]=eD,t2[142]=nX,t2[143]=eL,t2[144]=eO):eO=t2[144],t2[145]!==eV||t2[146]!==eO?(e$=(0,s.jsxs)("div",{className:eE,children:[eV,eO]}),t2[145]=eV,t2[146]=eO,t2[147]=e$):e$=t2[147],t2[148]===Symbol.for("react.memo_cache_sentinel")?(eF=C("tool","end"),t2[148]=eF):eF=t2[148],t2[149]!==t0.screen.presenter?(eq=t0.screen.presenter.endSlideshow(),t2[149]=t0.screen.presenter,t2[150]=eq):eq=t2[150],t2[151]===Symbol.for("react.memo_cache_sentinel")?(eH=(0,s.jsx)(d.I,{icon:"power"}),t2[151]=eH):eH=t2[151],t2[152]!==nq||t2[153]!==eq?(eU=(0,s.jsx)("button",{type:"button",className:eF,"data-tooltip":eq,onClick:nq,children:eH}),t2[152]=nq,t2[153]=eq,t2[154]=eU):eU=t2[154],t2[155]!==es||t2[156]!==ex||t2[157]!==eA||t2[158]!==e$||t2[159]!==eU?(eQ=(0,s.jsxs)("nav",{className:U,children:[es,er,ex,e_,eA,ez,e$,eU]}),t2[155]=es,t2[156]=ex,t2[157]=eA,t2[158]=e$,t2[159]=eU,t2[160]=eQ):eQ=t2[160],t2[161]===Symbol.for("react.memo_cache_sentinel")?(eY=C("stage","pane"),eJ=C("pane-head"),eX=C("kicker"),eG=C("label"),t2[161]=eY,t2[162]=eJ,t2[163]=eX,t2[164]=eG):(eY=t2[161],eJ=t2[162],eX=t2[163],eG=t2[164]),t2[165]!==t0.screen.presenter?(eK=t0.screen.presenter.now(),t2[165]=t0.screen.presenter,t2[166]=eK):eK=t2[166],t2[167]!==eK?(eZ=(0,s.jsx)("span",{className:eG,children:eK}),t2[167]=eK,t2[168]=eZ):eZ=t2[168],t2[169]===Symbol.for("react.memo_cache_sentinel")?(e2=C("progress"),t2[169]=e2):e2=t2[169],t2[170]!==t0.screen.presenter||t2[171]!==t6||t2[172]!==t3.length?(e1=t0.screen.presenter.slideProgress({current:t6+1,total:t3.length}),t2[170]=t0.screen.presenter,t2[171]=t6,t2[172]=t3.length,t2[173]=e1):e1=t2[173],t2[174]!==e1?(e0=(0,s.jsx)("span",{className:e2,children:e1}),t2[174]=e1,t2[175]=e0):e0=t2[175],t2[176]!==eZ||t2[177]!==e0?(e3=(0,s.jsxs)("div",{className:eX,children:[eZ,e0]}),t2[176]=eZ,t2[177]=e0,t2[178]=e3):e3=t2[178],t2[179]===Symbol.for("react.memo_cache_sentinel")?(e6=C("times"),e8=C("elapsed"),t2[179]=e6,t2[180]=e8):(e6=t2[179],e8=t2[180]),t2[181]!==t0.screen.presenter?(e7=t0.screen.presenter.elapsed(),t2[181]=t0.screen.presenter,t2[182]=e7):e7=t2[182],t2[183]===Symbol.for("react.memo_cache_sentinel")?(e9=(0,s.jsx)(d.I,{icon:"timer"}),t2[183]=e9):e9=t2[183],t2[184]!==nD||t2[185]!==e7?(e4=(0,s.jsxs)("span",{className:e8,"data-tooltip":e7,children:[e9,nD]}),t2[184]=nD,t2[185]=e7,t2[186]=e4):e4=t2[186],t2[187]===Symbol.for("react.memo_cache_sentinel")?(e5=C("clock"),t2[187]=e5):e5=t2[187],t2[188]!==no?(te=(0,s.jsx)("span",{className:e5,children:no}),t2[188]=no,t2[189]=te):te=t2[189],t2[190]!==e4||t2[191]!==te?(tt=(0,s.jsxs)("div",{className:e6,children:[e4,te]}),t2[190]=e4,t2[191]=te,t2[192]=tt):tt=t2[192],t2[193]!==e3||t2[194]!==tt?(tn=(0,s.jsxs)("header",{className:eJ,children:[e3,tt]}),t2[193]=e3,t2[194]=tt,t2[195]=tn):tn=t2[195],t2[196]!==nN?(ts=C("stage-body",{"laser-pen":nN}),t2[196]=nN,t2[197]=ts):ts=t2[197],t2[198]!==np?(tr=e=>np(e.nativeEvent),t2[198]=np,t2[199]=tr):tr=t2[199],t2[200]!==nh?(tl=e=>nh(e.nativeEvent),t2[200]=nh,t2[201]=tl):tl=t2[201],t2[202]!==nu?(tc=e=>nu(e.nativeEvent),t2[202]=nu,t2[203]=tc):tc=t2[203],t2[204]!==nQ?(ta=e=>(0,p.L)(e,nQ),t2[204]=nQ,t2[205]=ta):ta=t2[205],t2[206]!==nv||t2[207]!==nR||t2[208]!==nF||t2[209]!==nW||t2[210]!==nE||t2[211]!==tl||t2[212]!==tc||t2[213]!==ta||t2[214]!==tr||t2[215]!==nf?(to=(0,s.jsx)(S.A,{variant:"paper",slideWidth:nE,slideHeight:nW,animationIndex:nv,turnSlideToId:nf,manualExitFullscreen:nR,onWheel:tr,onTouchStart:tl,onTouchEnd:tc,onClick:nF,onContextMenu:ta}),t2[206]=nv,t2[207]=nR,t2[208]=nF,t2[209]=nW,t2[210]=nE,t2[211]=tl,t2[212]=tc,t2[213]=ta,t2[214]=tr,t2[215]=nf,t2[216]=to):to=t2[216],t2[217]!==nA||t2[218]!==nk||t2[219]!==nw||t2[220]!==nW||t2[221]!==nE?(ti=nw?(0,s.jsx)(g.A,{slideWidth:nE,slideHeight:nW,left:72,top:56,drawing:nk,onClose:nA}):null,t2[217]=nA,t2[218]=nk,t2[219]=nw,t2[220]=nW,t2[221]=nE,t2[222]=ti):ti=t2[222],t2[223]!==nN||t2[224]!==ng?(tm=(0,s.jsx)(N.A,{active:nN,color:ng,trackPointer:!0}),t2[223]=nN,t2[224]=ng,t2[225]=tm):tm=t2[225],t2[226]!==nn||t2[227]!==ne?(td=nn?(0,s.jsx)("div",{style:{display:ne?void 0:"none"},children:(0,s.jsx)(k.A,{left:72,top:56,onClose:ns})}):null,t2[226]=nn,t2[227]=ne,t2[228]=td):td=t2[228],t2[229]!==to||t2[230]!==ti||t2[231]!==tm||t2[232]!==td||t2[233]!==ts?(tp=(0,s.jsxs)("div",{className:ts,ref:t9,children:[to,ti,tm,td]}),t2[229]=to,t2[230]=ti,t2[231]=tm,t2[232]=td,t2[233]=ts,t2[234]=tp):tp=t2[234],t2[235]!==tp||t2[236]!==tn?(th=(0,s.jsxs)("section",{className:eY,children:[tn,tp]}),t2[235]=tp,t2[236]=tn,t2[237]=th):th=t2[237],t2[238]===Symbol.for("react.memo_cache_sentinel")?(tu=C("filmstrip","pane"),tb=C("filmstrip-scroller"),t2[238]=tu,t2[239]=tb):(tu=t2[238],tb=t2[239]),t2[240]===Symbol.for("react.memo_cache_sentinel")?(tx=C("filmstrip-track"),t2[240]=tx):tx=t2[240],t2[241]!==t6||t2[242]!==t3||t2[243]!==n_||t2[244]!==t8){let e;t2[246]!==t6||t2[247]!==n_||t2[248]!==t8?(e=(e,t)=>(0,s.jsxs)("button",{type:"button",className:C("thumb",{active:t===t6}),onClick:()=>n_(t),children:[(0,s.jsx)(j.A,{slide:{id:e.id},size:72/t8,visible:(0,v.QO)(t,t6,6)}),(0,s.jsx)("span",{className:C("thumb-index"),children:t+1})]},e.id),t2[246]=t6,t2[247]=n_,t2[248]=t8,t2[249]=e):e=t2[249],t_=t3.map(e),t2[241]=t6,t2[242]=t3,t2[243]=n_,t2[244]=t8,t2[245]=t_}else t_=t2[245];t2[250]!==t_?(tf=(0,s.jsx)("aside",{className:tu,children:(0,s.jsx)("div",{className:tb,ref:t4,onWheel:nH,children:(0,s.jsx)("div",{className:tx,children:t_})})}),t2[250]=t_,t2[251]=tf):tf=t2[251],t2[252]===Symbol.for("react.memo_cache_sentinel")?(ty=C("side"),tj=C("next-pane","pane"),tS=C("pane-head"),tv=C("label"),t2[252]=ty,t2[253]=tj,t2[254]=tS,t2[255]=tv):(ty=t2[252],tj=t2[253],tS=t2[254],tv=t2[255]),t2[256]!==t0.screen.presenter?(tN=t0.screen.presenter.next(),t2[256]=t0.screen.presenter,t2[257]=tN):tN=t2[257],t2[258]!==tN?(tg=(0,s.jsx)("span",{className:tv,children:tN}),t2[258]=tN,t2[259]=tg):tg=t2[259],t2[260]!==t0.screen.presenter||t2[261]!==nV||t2[262]!==t6||t2[263]!==t3.length?(tk=nV?(0,s.jsx)("span",{className:C("progress"),children:t0.screen.presenter.slideProgress({current:t6+2,total:t3.length})}):null,t2[260]=t0.screen.presenter,t2[261]=nV,t2[262]=t6,t2[263]=t3.length,t2[264]=tk):tk=t2[264],t2[265]!==tg||t2[266]!==tk?(tw=(0,s.jsxs)("header",{className:tS,children:[tg,tk]}),t2[265]=tg,t2[266]=tk,t2[267]=tw):tw=t2[267],t2[268]===Symbol.for("react.memo_cache_sentinel")?(tC=C("next-body"),t2[268]=tC):tC=t2[268],t2[269]!==t0.screen.presenter||t2[270]!==nm||t2[271]!==nV||t2[272]!==t6||t2[273]!==n_?(tI=(0,s.jsx)("div",{className:tC,ref:t5,children:nV?(0,s.jsx)("button",{type:"button",className:C("next-card"),onClick:()=>n_(t6+1),children:nm>0?(0,s.jsx)(j.A,{slide:{id:nV.id},size:nm}):null}):(0,s.jsx)("div",{className:C("next-empty"),children:t0.screen.presenter.endOfSlides()})}),t2[269]=t0.screen.presenter,t2[270]=nm,t2[271]=nV,t2[272]=t6,t2[273]=n_,t2[274]=tI):tI=t2[274],t2[275]!==tw||t2[276]!==tI?(tT=(0,s.jsxs)("section",{className:tj,children:[tw,tI]}),t2[275]=tw,t2[276]=tI,t2[277]=tT):tT=t2[277],t2[278]===Symbol.for("react.memo_cache_sentinel")?(tA=C("notes-pane","pane"),tz=C("pane-head"),tE=C("label"),t2[278]=tA,t2[279]=tz,t2[280]=tE):(tA=t2[278],tz=t2[279],tE=t2[280]),t2[281]!==t0.screen.presenter?(tW=t0.screen.presenter.speakerNotes(),t2[281]=t0.screen.presenter,t2[282]=tW):tW=t2[282],t2[283]!==tW?(tM=(0,s.jsx)("span",{className:tE,children:tW}),t2[283]=tW,t2[284]=tM):tM=t2[284],t2[285]===Symbol.for("react.memo_cache_sentinel")?(tP=C("scale"),t2[285]=tP):tP=t2[285],t2[286]===Symbol.for("react.memo_cache_sentinel")?(tR=C("tool","compact"),t2[286]=tR):tR=t2[286];let nK=12===nr;t2[287]!==nr?(tV=()=>nU(nr-2),t2[287]=nr,t2[288]=tV):tV=t2[288],t2[289]===Symbol.for("react.memo_cache_sentinel")?(tB=(0,s.jsx)(d.I,{icon:"minus"}),t2[289]=tB):tB=t2[289],t2[290]!==nK||t2[291]!==tV?(tD=(0,s.jsx)("button",{type:"button",className:tR,disabled:nK,onClick:tV,children:tB}),t2[290]=nK,t2[291]=tV,t2[292]=tD):tD=t2[292],t2[293]===Symbol.for("react.memo_cache_sentinel")?(tL=C("tool","compact"),t2[293]=tL):tL=t2[293];let nZ=40===nr;t2[294]!==nr?(tO=()=>nU(nr+2),t2[294]=nr,t2[295]=tO):tO=t2[295],t2[296]===Symbol.for("react.memo_cache_sentinel")?(t$=(0,s.jsx)(d.I,{icon:"plus"}),t2[296]=t$):t$=t2[296],t2[297]!==nZ||t2[298]!==tO?(tF=(0,s.jsx)("button",{type:"button",className:tL,disabled:nZ,onClick:tO,children:t$}),t2[297]=nZ,t2[298]=tO,t2[299]=tF):tF=t2[299],t2[300]!==tD||t2[301]!==tF?(tq=(0,s.jsxs)("div",{className:tP,children:[tD,tF]}),t2[300]=tD,t2[301]=tF,t2[302]=tq):tq=t2[302],t2[303]!==tM||t2[304]!==tq?(tH=(0,s.jsxs)("header",{className:tz,children:[tM,tq]}),t2[303]=tM,t2[304]=tq,t2[305]=tH):tH=t2[305];let n2=!nB;t2[306]!==n2?(tU=C("notes-body","ProseMirror-static",{empty:n2}),t2[306]=n2,t2[307]=tU):tU=t2[307];let n1=nr+"px";return t2[308]!==n1?(tQ={fontSize:n1},t2[308]=n1,t2[309]=tQ):tQ=t2[309],t2[310]!==t0.screen.presenter||t2[311]!==nB?(tY=nB||t0.screen.presenter.noNotes(),t2[310]=t0.screen.presenter,t2[311]=nB,t2[312]=tY):tY=t2[312],t2[313]!==tY?(tJ={__html:tY},t2[313]=tY,t2[314]=tJ):tJ=t2[314],t2[315]!==tU||t2[316]!==tQ||t2[317]!==tJ?(tX=(0,s.jsx)("div",{className:tU,style:tQ,dangerouslySetInnerHTML:tJ}),t2[315]=tU,t2[316]=tQ,t2[317]=tJ,t2[318]=tX):tX=t2[318],t2[319]!==tH||t2[320]!==tX?(tG=(0,s.jsxs)("section",{className:tA,children:[tH,tX]}),t2[319]=tH,t2[320]=tX,t2[321]=tG):tG=t2[321],t2[322]!==tT||t2[323]!==tG?(tK=(0,s.jsxs)("aside",{className:ty,children:[tT,tG]}),t2[322]=tT,t2[323]=tG,t2[324]=tK):tK=t2[324],t2[325]!==th||t2[326]!==tf||t2[327]!==tK||t2[328]!==eQ?(tZ=(0,s.jsxs)("div",{className:H,children:[eQ,th,tf,tK]}),t2[325]=th,t2[326]=tf,t2[327]=tK,t2[328]=eQ,t2[329]=tZ):tZ=t2[329],tZ}function T(e){return e.viewportRatio}function A(e){return e.slideIndex}function z(e){return e.slides}}};