@intent-hq/web 2.338.1 → 2.340.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{DshMjQEH.js → 0A9zMXP1.js} +1 -1
  3. package/web/app/immutable/chunks/{vQ36nGYg.js → 2s5YLexB.js} +1 -1
  4. package/web/app/immutable/chunks/{CNgujfRJ.js → 4-D_C5ka.js} +1 -1
  5. package/web/app/immutable/chunks/{EjidVmY8.js → 56kThhU_.js} +1 -1
  6. package/web/app/immutable/chunks/{BHgKzDXJ.js → 6UoLYB73.js} +1 -1
  7. package/web/app/immutable/chunks/{CLQIdYtf.js → 88XLDyYp.js} +1 -1
  8. package/web/app/immutable/chunks/{Dihy2CGH.js → 8uAH6qHX.js} +1 -1
  9. package/web/app/immutable/chunks/{DhR-694R.js → B5IkzLIr.js} +1 -1
  10. package/web/app/immutable/chunks/{BNcfl1rp.js → B7VTWE2s.js} +1 -1
  11. package/web/app/immutable/chunks/{BC1IkzkM.js → BFrr_NGL.js} +1 -1
  12. package/web/app/immutable/chunks/{--TzVA3S.js → BUnB6-PL.js} +1 -1
  13. package/web/app/immutable/chunks/{Cne24NXp.js → BYAS9QfA.js} +1 -1
  14. package/web/app/immutable/chunks/{D_E5w2vv.js → Bb42C1jx.js} +2 -2
  15. package/web/app/immutable/chunks/{CMgSs0m0.js → BckkEJUR.js} +1 -1
  16. package/web/app/immutable/chunks/{BzDIseIS.js → BeJjj6hr.js} +1 -1
  17. package/web/app/immutable/chunks/{pwxUJrVV.js → Bkc-9cJz.js} +1 -1
  18. package/web/app/immutable/chunks/{HzVNNtmZ.js → BnTt2u_d.js} +1 -1
  19. package/web/app/immutable/chunks/{xE-qM4CT.js → BqTJBVj_.js} +1 -1
  20. package/web/app/immutable/chunks/{BilYWCw8.js → BsB_ZBpn.js} +1 -1
  21. package/web/app/immutable/chunks/{QvSCvTgk.js → BuGsU4Hb.js} +1 -1
  22. package/web/app/immutable/chunks/{DbIbkjr8.js → BuWw_qLX.js} +1 -1
  23. package/web/app/immutable/chunks/{DOcgdSXI.js → BupBV4w0.js} +6 -6
  24. package/web/app/immutable/chunks/{CzrNrMOH.js → BwrBLXeH.js} +1 -1
  25. package/web/app/immutable/chunks/{BKx8D0hn.js → C-JYxEbU.js} +3 -3
  26. package/web/app/immutable/chunks/C0Jq4DAw.js +2 -0
  27. package/web/app/immutable/chunks/{-SRhLsfH.js → C2TVch-A.js} +1 -1
  28. package/web/app/immutable/chunks/{zUhkglmS.js → C3Vm0B6o.js} +1 -1
  29. package/web/app/immutable/chunks/{SO2ToTkD.js → C7kkK1tY.js} +1 -1
  30. package/web/app/immutable/chunks/{CwjLA5I0.js → C7qqZ7Np.js} +1 -1
  31. package/web/app/immutable/chunks/{D15wv8Vo.js → C9qmGVAu.js} +1 -1
  32. package/web/app/immutable/chunks/{C0Md8A5J.js → CA611i5V.js} +21 -21
  33. package/web/app/immutable/chunks/{DKcu5hwj.js → CAV_oAtD.js} +1 -1
  34. package/web/app/immutable/chunks/{w0BZ2tS8.js → CAcCYcUh.js} +1 -1
  35. package/web/app/immutable/chunks/{DgFO9ngQ.js → CBRnEjo_.js} +4 -4
  36. package/web/app/immutable/chunks/{QKfrd0hZ.js → CDfuNZ37.js} +1 -1
  37. package/web/app/immutable/chunks/{BuszvIDw.js → CEKZLvrJ.js} +1 -1
  38. package/web/app/immutable/chunks/{CEsQleDv.js → CFUk70rP.js} +1 -1
  39. package/web/app/immutable/chunks/{DibpUDFe.js → CGpetF0X.js} +1 -1
  40. package/web/app/immutable/chunks/{Di_7c3Tz.js → CGssQRFx.js} +1 -1
  41. package/web/app/immutable/chunks/{QJ_UUVDw.js → CIPg4Oj3.js} +1 -1
  42. package/web/app/immutable/chunks/{tf5aM7kX.js → CIQ1pc5e.js} +1 -1
  43. package/web/app/immutable/chunks/{B7gpxSl6.js → CIcEE2lZ.js} +1 -1
  44. package/web/app/immutable/chunks/{l29U7LvB.js → CJ5T9oR0.js} +1 -1
  45. package/web/app/immutable/chunks/{CTUI81dg.js → CKecBSOS.js} +1 -1
  46. package/web/app/immutable/chunks/{DPkSGZl0.js → CO-56D0z.js} +1 -1
  47. package/web/app/immutable/chunks/{9yebF5CG.js → CQwVHpNy.js} +1 -1
  48. package/web/app/immutable/chunks/{c8OT2QUl.js → CUGyz-GO.js} +1 -1
  49. package/web/app/immutable/chunks/{CGFLlGKK.js → CW0EpZDE.js} +1 -1
  50. package/web/app/immutable/chunks/{CX7SaBcR.js → CWFv5PT5.js} +1 -1
  51. package/web/app/immutable/chunks/{Cry81AGu.js → CXdPB1q8.js} +1 -1
  52. package/web/app/immutable/chunks/{D00ZK3dW.js → CaGdQwZd.js} +1 -1
  53. package/web/app/immutable/chunks/{vcNfRBrL.js → CcUyq_m7.js} +1 -1
  54. package/web/app/immutable/chunks/{D1PC1f77.js → CcYvO5fW.js} +1 -1
  55. package/web/app/immutable/chunks/{iqon4GjF.js → CdjCvvRy.js} +1 -1
  56. package/web/app/immutable/chunks/{UGomc4DU.js → CjYiS2Dd.js} +1 -1
  57. package/web/app/immutable/chunks/{Al5gKQhw.js → Ckl7Uv0g.js} +1 -1
  58. package/web/app/immutable/chunks/{RXyByhXK.js → Cm75qM7a.js} +1 -1
  59. package/web/app/immutable/chunks/{Dqq-QSMH.js → Cm7nTtW_.js} +1 -1
  60. package/web/app/immutable/chunks/{BQBn6AXu.js → CmPnZSPM.js} +1 -1
  61. package/web/app/immutable/chunks/{DPa-xfh8.js → CncyYpim.js} +1 -1
  62. package/web/app/immutable/chunks/{CGL8_8zk.js → CoNImpwm.js} +1 -1
  63. package/web/app/immutable/chunks/{B1_E9UBq.js → Cp-LTiNq.js} +4 -4
  64. package/web/app/immutable/chunks/{ertp7R3g.js → Cp6MJgUQ.js} +1 -1
  65. package/web/app/immutable/chunks/{CiQFOdPb.js → CqhQxn7l.js} +1 -1
  66. package/web/app/immutable/chunks/{C_NbS-4j.js → CwA_zBFP.js} +1 -1
  67. package/web/app/immutable/chunks/{19loSN7h.js → CxBKFB6m.js} +1 -1
  68. package/web/app/immutable/chunks/{DnQqagmU.js → CxPlqAY_.js} +1 -1
  69. package/web/app/immutable/chunks/{WFVUS5Q2.js → CxwuSVPe.js} +3 -3
  70. package/web/app/immutable/chunks/{DJ0y2dBB.js → CyaIGPPT.js} +1 -1
  71. package/web/app/immutable/chunks/{Cg_TEGFC.js → D2F6GQPQ.js} +1 -1
  72. package/web/app/immutable/chunks/{D_B1cb64.js → D2OZOSK1.js} +2 -2
  73. package/web/app/immutable/chunks/{CbQcBewU.js → D455gGBd.js} +1 -1
  74. package/web/app/immutable/chunks/{wQ_gAJ8i.js → D71s6lTD.js} +1 -1
  75. package/web/app/immutable/chunks/{Cuhz8j8n.js → D9JDkiGX.js} +4 -4
  76. package/web/app/immutable/chunks/{CvUjaEmJ.js → D9SniPYE.js} +1 -1
  77. package/web/app/immutable/chunks/{DEIrZl-Q.js → DAHVbkwy.js} +1 -1
  78. package/web/app/immutable/chunks/{DgLaHMxU.js → DDZ2OsqF.js} +2 -2
  79. package/web/app/immutable/chunks/{CJvgWPEf.js → DJv91LeU.js} +1 -1
  80. package/web/app/immutable/chunks/{QGaLfYnp.js → DLTY4AKt.js} +1 -1
  81. package/web/app/immutable/chunks/{DLwZ6u1z.js → DNjH2AoR.js} +1 -1
  82. package/web/app/immutable/chunks/{DTmJTNN7.js → DQhpUNCJ.js} +1 -1
  83. package/web/app/immutable/chunks/{xp5T-On2.js → DT1if45V.js} +1 -1
  84. package/web/app/immutable/chunks/{dMMe6A0k.js → DTeENtoH.js} +1 -1
  85. package/web/app/immutable/chunks/{BFVWCDsZ.js → DTjVtyhg.js} +2 -2
  86. package/web/app/immutable/chunks/{BsyYcfIA.js → DVOhk-mH.js} +1 -1
  87. package/web/app/immutable/chunks/{DK5D4USl.js → DWcO-zLg.js} +1 -1
  88. package/web/app/immutable/chunks/{BQyc6weN.js → DcVJXt83.js} +1 -1
  89. package/web/app/immutable/chunks/{zKR5Yxu0.js → DdAHCwW1.js} +2 -2
  90. package/web/app/immutable/chunks/{CmEf5a2p.js → DdCxE_Xs.js} +1 -1
  91. package/web/app/immutable/chunks/{CpFmVP7v.js → DdUVLh9Y.js} +1 -1
  92. package/web/app/immutable/chunks/{DbH_I5Yv.js → DdplcBC-.js} +1 -1
  93. package/web/app/immutable/chunks/{8UJuJS22.js → DfgRQpui.js} +3 -3
  94. package/web/app/immutable/chunks/{DTHIPERj.js → DgmO0YM3.js} +1 -1
  95. package/web/app/immutable/chunks/{BUHv-UKO.js → DkbGHDwu.js} +1 -1
  96. package/web/app/immutable/chunks/{Cf-4o0C1.js → Dqh0mE9o.js} +1 -1
  97. package/web/app/immutable/chunks/{BF684udf.js → Ds_1J_Ua.js} +1 -1
  98. package/web/app/immutable/chunks/{Bfrvy6-f.js → DvW23_33.js} +2 -2
  99. package/web/app/immutable/chunks/{Bf86mLwh.js → DwcTeSht.js} +1 -1
  100. package/web/app/immutable/chunks/{5v54BHUZ.js → Dx_O9X_g.js} +2 -2
  101. package/web/app/immutable/chunks/{DiqFqdjd.js → DyZNfCXf.js} +1 -1
  102. package/web/app/immutable/chunks/{BabqdlUh.js → DyzUsn2r.js} +4 -4
  103. package/web/app/immutable/chunks/{_mh_sREE.js → EV-Wg10o.js} +1 -1
  104. package/web/app/immutable/chunks/{BtAXkZJT.js → J8XZPrPt.js} +1 -1
  105. package/web/app/immutable/chunks/{sxMN8r-q.js → J_N0r9J9.js} +1 -1
  106. package/web/app/immutable/chunks/{C-U2Q_Ce.js → L3UjiXrj.js} +1 -1
  107. package/web/app/immutable/chunks/{CAPelkZT.js → OWacZ7rY.js} +1 -1
  108. package/web/app/immutable/chunks/{BaGPGwll.js → PnL1aKrA.js} +3 -3
  109. package/web/app/immutable/chunks/{H4zMohfU.js → QhxXN72z.js} +1 -1
  110. package/web/app/immutable/chunks/{DtMeGqJv.js → RzGJYCKz.js} +1 -1
  111. package/web/app/immutable/chunks/{CCV8VTnq.js → Tx4_gQCC.js} +1 -1
  112. package/web/app/immutable/chunks/{CUSDRtYF.js → YTEWeGok.js} +3 -3
  113. package/web/app/immutable/chunks/{BbxpiJV6.js → YvLIZ0PA.js} +1 -1
  114. package/web/app/immutable/chunks/{Dj6MdpEs.js → _M-5y_H6.js} +1 -1
  115. package/web/app/immutable/chunks/{BgKtz5kX.js → _StK5_6x.js} +1 -1
  116. package/web/app/immutable/chunks/{CG3d-0wy.js → afZQ6UAr.js} +1 -1
  117. package/web/app/immutable/chunks/{jl7iZe2q.js → ehgj4JGx.js} +1 -1
  118. package/web/app/immutable/chunks/{Dg7D-dnV.js → g3EJS67v.js} +1 -1
  119. package/web/app/immutable/chunks/{BiO4t-Qa.js → i_iuhbAO.js} +1 -1
  120. package/web/app/immutable/chunks/{BBKBzeRB.js → k7kBuPkp.js} +1 -1
  121. package/web/app/immutable/chunks/{Cp5oSwWa.js → oudOPrje.js} +1 -1
  122. package/web/app/immutable/chunks/{BD_WUy--.js → rhZ58jO5.js} +1 -1
  123. package/web/app/immutable/chunks/{DgnjMBuV.js → vkW9Qpvz.js} +1 -1
  124. package/web/app/immutable/entry/{app.BXrls4Qh.js → app.Dr0ZNq2A.js} +2 -2
  125. package/web/app/immutable/entry/start.BZgIvCjP.js +1 -0
  126. package/web/app/immutable/nodes/{0.Bdj8ZT8c.js → 0.BECiWPST.js} +1 -1
  127. package/web/app/immutable/nodes/{1.Zl0F2Sz6.js → 1.BnIqeMZ5.js} +1 -1
  128. package/web/app/immutable/nodes/{10.CNUk2b9P.js → 10.DQX0bqgQ.js} +1 -1
  129. package/web/app/immutable/nodes/{14.BiNIXgP0.js → 14.RvlaUqh6.js} +1 -1
  130. package/web/app/immutable/nodes/{17.DsIjUuTv.js → 17.CtxxPZdN.js} +2 -2
  131. package/web/app/immutable/nodes/2.ixn1pA-c.js +13 -0
  132. package/web/app/immutable/nodes/{3.DmYudxdL.js → 3.CkPKjozI.js} +1 -1
  133. package/web/app/immutable/nodes/{4.C0P9sF9-.js → 4.BSXzHHqw.js} +1 -1
  134. package/web/app/immutable/nodes/5.CHa0ZTrq.js +5 -0
  135. package/web/app/immutable/nodes/{6.CG_NYMUH.js → 6.DKArX4yH.js} +1 -1
  136. package/web/app/immutable/nodes/{7.DEl0Oxtl.js → 7.zaZKNCI8.js} +1 -1
  137. package/web/app/immutable/nodes/{8.urQBqjSm.js → 8.DODsuOE6.js} +4 -4
  138. package/web/app/immutable/nodes/{9.B_Whvp9_.js → 9.CDgsFK7C.js} +4 -4
  139. package/web/app/version.json +1 -1
  140. package/web/index.html +9 -9
  141. package/web/app/immutable/chunks/DccmXxha.js +0 -2
  142. package/web/app/immutable/entry/start.BvzRKINi.js +0 -1
  143. package/web/app/immutable/nodes/2.DZVP3Lrs.js +0 -13
  144. package/web/app/immutable/nodes/5.C8gznsC_.js +0 -5
@@ -1,4 +1,4 @@
1
- import{g as ze}from"./CwjLA5I0.js";import{s as Xe}from"./sxMN8r-q.js";import{b as m,W as Be,a_ as Je,V as Ze,aZ as et,U as tt,b0 as st,Y as it,X as Ne,ay as qe,r as rt,am as nt,aU as at,ab as lt,aG as ct,_ as ot,a1 as ht,aP as ut,bh as ft}from"./B1_E9UBq.js";var Ce=(function(){var e=m(function($,i,n,o){for(n=n||{},o=$.length;o--;n[$[o]]=i);return n},"o"),r=[1,3],u=[1,4],h=[1,5],f=[1,6],a=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],c=[1,22],S=[2,7],d=[1,26],_=[1,27],b=[1,28],q=[1,29],C=[1,33],A=[1,34],V=[1,35],v=[1,36],L=[1,37],x=[1,38],w=[1,24],D=[1,31],O=[1,32],M=[1,30],R=[1,39],g=[1,40],p=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],X=[89,90],Ae=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Ee=[27,29],Ve=[1,70],ve=[1,71],Le=[1,72],xe=[1,73],we=[1,74],De=[1,75],Oe=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:m(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:m(function(i,n,o,s,E,t,de){var l=t.length-1;switch(E){case 4:this.$=t[l].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[l].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[l-3],t[l-4]);break;case 22:s.addRequirement(t[l-5],t[l-6]),s.setClass([t[l-5]],t[l-3]);break;case 23:s.setNewReqId(t[l-2]);break;case 24:s.setNewReqText(t[l-2]);break;case 25:s.setNewReqRisk(t[l-2]);break;case 26:s.setNewReqVerifyMethod(t[l-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[l-3]);break;case 43:s.addElement(t[l-5]),s.setClass([t[l-5]],t[l-3]);break;case 44:s.setNewElementType(t[l-2]);break;case 45:s.setNewElementDocRef(t[l-2]);break;case 48:s.addRelationship(t[l-2],t[l],t[l-4]);break;case 49:s.addRelationship(t[l-2],t[l-4],t[l]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[l-2],s.defineClass(t[l-1],t[l]);break;case 58:s.setClass(t[l-1],t[l]);break;case 59:s.setClass([t[l-2]],t[l]);break;case 60:case 62:this.$=[t[l]];break;case 61:case 63:this.$=t[l-2].concat([t[l]]);break;case 64:this.$=t[l-2],s.setCssStyle(t[l-1],t[l]);break;case 65:this.$=[t[l]];break;case 66:t[l-2].push(t[l]),this.$=t[l-2];break;case 68:this.$=t[l-1]+t[l];break}},"anonymous"),table:[{3:1,4:2,6:r,9:u,11:h,13:f},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:u,11:h,13:f},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(a,[2,6]),{3:12,4:2,6:r,9:u,11:h,13:f},{1:[2,2]},{4:17,5:c,7:13,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},e(a,[2,4]),e(a,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:c,7:42,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:43,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:44,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:45,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:46,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:47,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:48,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:49,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:50,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(p,[2,17]),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),{30:60,33:62,75:P,89:R,90:g},{30:63,33:62,75:P,89:R,90:g},{30:64,33:62,75:P,89:R,90:g},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ae,[2,81]),e(Ae,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Ee,[2,79]),e(Ee,[2,80]),{27:[1,67],29:[1,68]},e(Ee,[2,85]),e(Ee,[2,86]),{62:69,65:Ve,66:ve,67:Le,68:xe,69:we,70:De,71:Oe},{62:77,65:Ve,66:ve,67:Le,68:xe,69:we,70:De,71:Oe},{30:78,33:62,75:P,89:R,90:g},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:P,76:U,89:R,90:g},{5:[1,95]},{30:96,33:62,75:P,89:R,90:g},{5:[1,97]},{30:98,33:62,75:P,89:R,90:g},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(p,[2,59],{76:U}),e(p,[2,64],{76:Me}),{33:103,75:[1,102],89:R,90:g},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(T,[2,67]),e(T,[2,69]),e(T,[2,70]),e(T,[2,71]),e(T,[2,72]),e(T,[2,73]),e(T,[2,74]),e(T,[2,75]),e(T,[2,76]),e(T,[2,77]),e(T,[2,78]),e(p,[2,57],{76:Me}),e(p,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:R,90:g},{33:120,89:R,90:g},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(T,[2,68]),e(p,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(p,[2,28]),{5:[1,127]},e(p,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(p,[2,47]),{5:[1,131]},e(p,[2,48]),e(p,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:R,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(p,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(p,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(p,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(p,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,44]),e(p,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:m(function(i,n){if(n.recoverable)this.trace(i);else{var o=new Error(i);throw o.hash=n,o}},"parseError"),parse:m(function(i){var n=this,o=[0],s=[],E=[null],t=[],de=this.table,l="",ge=0,$e=0,Ke=2,Pe=1,We=t.slice.call(arguments,1),y=Object.create(this.lexer),G={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(G.yy[be]=this.yy[be]);y.setInput(i,G.yy),G.yy.lexer=y,G.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var Ie=y.yylloc;t.push(Ie);var je=y.options&&y.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ge(k){o.length=o.length-2*k,E.length=E.length-k,t.length=t.length-k}m(Ge,"popStack");function Ue(){var k;return k=s.pop()||y.lex()||Pe,typeof k!="number"&&(k instanceof Array&&(s=k,k=s.pop()),k=n.symbols_[k]||k),k}m(Ue,"lex");for(var I,z,N,ke,J={},ye,F,Ye,_e;;){if(z=o[o.length-1],this.defaultActions[z]?N=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=Ue()),N=de[z]&&de[z][I]),typeof N>"u"||!N.length||!N[0]){var Te="";_e=[];for(ye in de[z])this.terminals_[ye]&&ye>Ke&&_e.push("'"+this.terminals_[ye]+"'");y.showPosition?Te="Parse error on line "+(ge+1)+`:
1
+ import{g as ze}from"./C7qqZ7Np.js";import{s as Xe}from"./J_N0r9J9.js";import{b as m,W as Be,a_ as Je,V as Ze,aZ as et,U as tt,b0 as st,Y as it,X as Ne,ay as qe,r as rt,am as nt,aU as at,ab as lt,aG as ct,_ as ot,a1 as ht,aP as ut,bh as ft}from"./Cp-LTiNq.js";var Ce=(function(){var e=m(function($,i,n,o){for(n=n||{},o=$.length;o--;n[$[o]]=i);return n},"o"),r=[1,3],u=[1,4],h=[1,5],f=[1,6],a=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],c=[1,22],S=[2,7],d=[1,26],_=[1,27],b=[1,28],q=[1,29],C=[1,33],A=[1,34],V=[1,35],v=[1,36],L=[1,37],x=[1,38],w=[1,24],D=[1,31],O=[1,32],M=[1,30],R=[1,39],g=[1,40],p=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],X=[89,90],Ae=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Ee=[27,29],Ve=[1,70],ve=[1,71],Le=[1,72],xe=[1,73],we=[1,74],De=[1,75],Oe=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:m(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:m(function(i,n,o,s,E,t,de){var l=t.length-1;switch(E){case 4:this.$=t[l].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[l].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[l-3],t[l-4]);break;case 22:s.addRequirement(t[l-5],t[l-6]),s.setClass([t[l-5]],t[l-3]);break;case 23:s.setNewReqId(t[l-2]);break;case 24:s.setNewReqText(t[l-2]);break;case 25:s.setNewReqRisk(t[l-2]);break;case 26:s.setNewReqVerifyMethod(t[l-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[l-3]);break;case 43:s.addElement(t[l-5]),s.setClass([t[l-5]],t[l-3]);break;case 44:s.setNewElementType(t[l-2]);break;case 45:s.setNewElementDocRef(t[l-2]);break;case 48:s.addRelationship(t[l-2],t[l],t[l-4]);break;case 49:s.addRelationship(t[l-2],t[l-4],t[l]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[l-2],s.defineClass(t[l-1],t[l]);break;case 58:s.setClass(t[l-1],t[l]);break;case 59:s.setClass([t[l-2]],t[l]);break;case 60:case 62:this.$=[t[l]];break;case 61:case 63:this.$=t[l-2].concat([t[l]]);break;case 64:this.$=t[l-2],s.setCssStyle(t[l-1],t[l]);break;case 65:this.$=[t[l]];break;case 66:t[l-2].push(t[l]),this.$=t[l-2];break;case 68:this.$=t[l-1]+t[l];break}},"anonymous"),table:[{3:1,4:2,6:r,9:u,11:h,13:f},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:u,11:h,13:f},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(a,[2,6]),{3:12,4:2,6:r,9:u,11:h,13:f},{1:[2,2]},{4:17,5:c,7:13,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},e(a,[2,4]),e(a,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:c,7:42,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:43,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:44,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:45,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:46,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:47,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:48,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:49,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:50,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(p,[2,17]),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),{30:60,33:62,75:P,89:R,90:g},{30:63,33:62,75:P,89:R,90:g},{30:64,33:62,75:P,89:R,90:g},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ae,[2,81]),e(Ae,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Ee,[2,79]),e(Ee,[2,80]),{27:[1,67],29:[1,68]},e(Ee,[2,85]),e(Ee,[2,86]),{62:69,65:Ve,66:ve,67:Le,68:xe,69:we,70:De,71:Oe},{62:77,65:Ve,66:ve,67:Le,68:xe,69:we,70:De,71:Oe},{30:78,33:62,75:P,89:R,90:g},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:P,76:U,89:R,90:g},{5:[1,95]},{30:96,33:62,75:P,89:R,90:g},{5:[1,97]},{30:98,33:62,75:P,89:R,90:g},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(p,[2,59],{76:U}),e(p,[2,64],{76:Me}),{33:103,75:[1,102],89:R,90:g},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(T,[2,67]),e(T,[2,69]),e(T,[2,70]),e(T,[2,71]),e(T,[2,72]),e(T,[2,73]),e(T,[2,74]),e(T,[2,75]),e(T,[2,76]),e(T,[2,77]),e(T,[2,78]),e(p,[2,57],{76:Me}),e(p,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:R,90:g},{33:120,89:R,90:g},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(T,[2,68]),e(p,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(p,[2,28]),{5:[1,127]},e(p,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(p,[2,47]),{5:[1,131]},e(p,[2,48]),e(p,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:R,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(p,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(p,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(p,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(p,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,44]),e(p,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:m(function(i,n){if(n.recoverable)this.trace(i);else{var o=new Error(i);throw o.hash=n,o}},"parseError"),parse:m(function(i){var n=this,o=[0],s=[],E=[null],t=[],de=this.table,l="",ge=0,$e=0,Ke=2,Pe=1,We=t.slice.call(arguments,1),y=Object.create(this.lexer),G={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(G.yy[be]=this.yy[be]);y.setInput(i,G.yy),G.yy.lexer=y,G.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var Ie=y.yylloc;t.push(Ie);var je=y.options&&y.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ge(k){o.length=o.length-2*k,E.length=E.length-k,t.length=t.length-k}m(Ge,"popStack");function Ue(){var k;return k=s.pop()||y.lex()||Pe,typeof k!="number"&&(k instanceof Array&&(s=k,k=s.pop()),k=n.symbols_[k]||k),k}m(Ue,"lex");for(var I,z,N,ke,J={},ye,F,Ye,_e;;){if(z=o[o.length-1],this.defaultActions[z]?N=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=Ue()),N=de[z]&&de[z][I]),typeof N>"u"||!N.length||!N[0]){var Te="";_e=[];for(ye in de[z])this.terminals_[ye]&&ye>Ke&&_e.push("'"+this.terminals_[ye]+"'");y.showPosition?Te="Parse error on line "+(ge+1)+`:
2
2
  `+y.showPosition()+`
3
3
  Expecting `+_e.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Te="Parse error on line "+(ge+1)+": Unexpected "+(I==Pe?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Te,{text:y.match,token:this.terminals_[I]||I,line:y.yylineno,loc:Ie,expected:_e})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+I);switch(N[0]){case 1:o.push(I),E.push(y.yytext),t.push(y.yylloc),o.push(N[1]),I=null,$e=y.yyleng,l=y.yytext,ge=y.yylineno,Ie=y.yylloc;break;case 2:if(F=this.productions_[N[1]][1],J.$=E[E.length-F],J._$={first_line:t[t.length-(F||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(F||1)].first_column,last_column:t[t.length-1].last_column},je&&(J._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]]),ke=this.performAction.apply(J,[l,$e,ge,G.yy,N[1],E,t].concat(We)),typeof ke<"u")return ke;F&&(o=o.slice(0,-1*F*2),E=E.slice(0,-1*F),t=t.slice(0,-1*F)),o.push(this.productions_[N[1]][0]),E.push(J.$),t.push(J._$),Ye=de[o[o.length-2]][o[o.length-1]],o.push(Ye);break;case 3:return!0}}return!0},"parse")},He=(function(){var $={EOF:1,parseError:m(function(n,o){if(this.yy.parser)this.yy.parser.parseError(n,o);else throw new Error(n)},"parseError"),setInput:m(function(i,n){return this.yy=n||this.yy||{},this._input=i,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:m(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:m(function(i){var n=i.length,o=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;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),o.length-1&&(this.yylineno-=o.length-1);var E=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:o?(o.length===s.length?this.yylloc.first_column:0)+s[s.length-o.length].length-o[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:m(function(){return this._more=!0,this},"more"),reject:m(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:m(function(i){this.unput(this.match.slice(i))},"less"),pastInput:m(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:m(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:m(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{t as le,br as u,a_ as D,bz as ce,b as ve}from"./Cv-W__h8.js";import{bs as de,ca as fe,aD as e,a5 as H,bS as ue,bA as L,bH as K,b_ as S,W as T,bn as ge,bV as P,c9 as x,aA as g,a7 as me,ay as he,bl as pe,bO as be,aB as z}from"./DYhIMPy1.js";import{v as X,u as c,n as _e,w as R}from"./DPvDLGgX.js";import{s as ke}from"./ClsZrb8B.js";import{b as we}from"./BaIAhI85.js";import{t as j}from"./j0KL2ItM.js";import{A as xe}from"./BabqdlUh.js";import{s as We}from"./zKR5Yxu0.js";function Ie(W){const{itemCount:a,maxVisible:v,availableWidth:r,surface:s,overlap:b,overflowOverlap:d}=W;if(r<=0)return 0;const _=s-b,m=Math.min(a,Math.max(0,v)),y=i=>i===0?0:s+(i-1)*_;if(a<=m&&y(a)<=r)return a;for(let i=m;i>=0;i-=1){const A=a-i;if(y(i)+(A>0?W.measureOverflowText(A)-(i>0?d:0):0)<=r)return i}return 0}function ye(W,a=r=>requestAnimationFrame(r),v=r=>cancelAnimationFrame(r)){let r,s;return{set(b){if(r=b,s!==void 0)return;let d=!1;const _=a(()=>{d=!0,s=void 0;const m=r;r=void 0,W(m)});d||(s=_)},cancel(){s!==void 0&&(v(s),s=void 0),r=void 0}}}const Ae=20,Ce=12;let O,J;const Q=new Map;var Te=z('<span data-agent-avatar-stack-item=""><!></span>'),Oe=z('<span class="agent-avatar-stack-track svelte-1nk9fhe"></span>'),Ve=z('<span class="agent-avatar-stack-overflow svelte-1nk9fhe" data-agent-avatar-overflow=""> </span>'),Me=z('<span data-agent-avatar-stack="" data-agent-avatar-stack-overlap="later-on-top"><!> <!></span>');function Se(W,a){if(new.target)return le({component:Se,...W});de(a,!0);let v=u(a,"items",7),r=u(a,"maxVisible",7,3),s=u(a,"adaptive",7,!1),b=u(a,"align",7,"end"),d=u(a,"variant",7,"card-stack"),_=u(a,"interactive",7,!1),m=u(a,"overflowId",7),y=u(a,"overflowTestId",7),i=u(a,"itemContent",7),A=u(a,"class",7,""),I=P(void 0),F=P(void 0);const h=x(()=>We[d()]),U=x(()=>s()&&e(F)!==void 0?Ie({itemCount:v().length,maxVisible:r(),availableWidth:e(F),surface:e(h).surface,overlap:e(h).overlap,overflowOverlap:e(h).overlap,measureOverflowText:t=>Math.max(e(h).surface,$(t)+Ce)}):void 0),Y=x(()=>Math.min(v().length,Math.max(0,s()?e(U)??r():r()))),k=x(()=>v().slice(0,e(Y))),E=x(()=>Math.max(0,v().length-e(k).length)),N=x(()=>e(h).surface-e(h).overlap),Z=x(()=>e(k).length===0?0:e(h).surface+(e(k).length-1)*e(N));function $(t){const n=`+${j(t)}`,o=Q.get(n);if(o!==void 0)return o;if(O===void 0&&(O=document.createElement("canvas").getContext("2d")),!O||!e(I))return Ae;J??=`500 12px ${getComputedStyle(e(I)).fontFamily}`,O.font=J;const l=O.measureText(n).width;return Q.set(n,l),l}fe(()=>{if(!s()||!e(I)||typeof ResizeObserver>"u")return;const t=ye(o=>{K(F,o,!0)}),n=new ResizeObserver(o=>{const l=o[o.length-1];t.set(l.borderBoxSize?.[0]?.inlineSize??l.contentRect.width)});return n.observe(e(I)),()=>{n.disconnect(),t.cancel()}});var ee={get items(){return v()},set items(t){v(t),g()},get maxVisible(){return r()},set maxVisible(t=3){r(t),g()},get adaptive(){return s()},set adaptive(t=!1){s(t),g()},get align(){return b()},set align(t="end"){b(t),g()},get variant(){return d()},set variant(t="card-stack"){d(t),g()},get interactive(){return _()},set interactive(t=!1){_(t),g()},get overflowId(){return m()},set overflowId(t){m(t),g()},get overflowTestId(){return y()},set overflowTestId(t){y(t),g()},get itemContent(){return i()},set itemContent(t){i(t),g()},get class(){return A()},set class(t=""){A(t),g()},$set:ce,$on:(t,n)=>ve(a,t,n)},p=Me();let q;var B=H(p);{var te=t=>{var n=Oe();let o;_e(n,23,()=>e(k),l=>l.key,(l,w,V)=>{var f=Te();let G;var re=H(f);{var se=C=>{var M=me(),oe=he(M);ke(oe,i,()=>e(w)),T(C,M)},ie=C=>{{let M=x(()=>e(w).state??"idle");xe(C,{get agentId(){return e(w).agentId},get specialist(){return e(w).specialist},get icon(){return e(w).icon},get state(){return e(M)},get variant(){return d()},class:"agent-avatar-stack-surface"})}};D(re,C=>{i()?C(se):C(ie,-1)})}L(f),S(()=>{G=X(f,1,"agent-avatar-stack-item svelte-1nk9fhe",null,G,{"agent-avatar-stack-item--before-overflow":e(E)>0&&e(V)===e(k).length-1}),R(f,`inset-inline-start: ${e(V)*e(N)}px; z-index: ${e(V)+1};`),c(f,"data-agent-avatar-stack-index",e(V)),c(f,"data-agent-avatar-stack-key",e(w).key),c(f,"data-agent-avatar-stack-agent-id",e(w).agentId),c(f,"data-agent-avatar-stack-specialist",e(w).specialist??void 0),c(f,"aria-hidden",_()?void 0:"true")}),T(l,f)}),L(n),S(()=>o=R(n,"",o,{width:`${e(Z)}px`})),T(t,n)};D(B,t=>{e(k).length>0&&t(te)})}var ae=ue(B,2);{var ne=t=>{var n=Ve(),o=pe(n);S(l=>{c(n,"id",m()),R(n,`margin-inline-start: ${e(k).length>0?-e(h).overlap:0}px; z-index: ${e(k).length+1};`),c(n,"data-testid",y()),be(o,`+${l??""}`)},[()=>j(e(E))]),T(t,n)};D(ae,t=>{e(E)>0&&t(ne)})}return L(p),we(p,t=>K(I,t),()=>e(I)),S(()=>{q=X(p,1,`agent-avatar-stack ${A()??""}`,"svelte-1nk9fhe",q,{"agent-avatar-stack--adaptive":s(),"agent-avatar-stack--start":b()==="start"}),c(p,"data-agent-avatar-stack-align",b()),c(p,"data-avatar-variant",d()),c(p,"data-agent-avatar-stack-clear-space",e(h).ring),c(p,"aria-hidden",!_()&&!m()?"true":void 0)}),T(W,p),ge(ee)}export{Se as A};
1
+ import{t as le,br as u,a_ as D,bz as ce,b as ve}from"./Cv-W__h8.js";import{bs as de,ca as fe,aD as e,a5 as H,bS as ue,bA as L,bH as K,b_ as S,W as T,bn as ge,bV as P,c9 as x,aA as g,a7 as me,ay as he,bl as pe,bO as be,aB as z}from"./DYhIMPy1.js";import{v as X,u as c,n as _e,w as R}from"./DPvDLGgX.js";import{s as ke}from"./ClsZrb8B.js";import{b as we}from"./BaIAhI85.js";import{t as j}from"./j0KL2ItM.js";import{A as xe}from"./DyzUsn2r.js";import{s as We}from"./DdAHCwW1.js";function Ie(W){const{itemCount:a,maxVisible:v,availableWidth:r,surface:s,overlap:b,overflowOverlap:d}=W;if(r<=0)return 0;const _=s-b,m=Math.min(a,Math.max(0,v)),y=i=>i===0?0:s+(i-1)*_;if(a<=m&&y(a)<=r)return a;for(let i=m;i>=0;i-=1){const A=a-i;if(y(i)+(A>0?W.measureOverflowText(A)-(i>0?d:0):0)<=r)return i}return 0}function ye(W,a=r=>requestAnimationFrame(r),v=r=>cancelAnimationFrame(r)){let r,s;return{set(b){if(r=b,s!==void 0)return;let d=!1;const _=a(()=>{d=!0,s=void 0;const m=r;r=void 0,W(m)});d||(s=_)},cancel(){s!==void 0&&(v(s),s=void 0),r=void 0}}}const Ae=20,Ce=12;let O,J;const Q=new Map;var Te=z('<span data-agent-avatar-stack-item=""><!></span>'),Oe=z('<span class="agent-avatar-stack-track svelte-1nk9fhe"></span>'),Ve=z('<span class="agent-avatar-stack-overflow svelte-1nk9fhe" data-agent-avatar-overflow=""> </span>'),Me=z('<span data-agent-avatar-stack="" data-agent-avatar-stack-overlap="later-on-top"><!> <!></span>');function Se(W,a){if(new.target)return le({component:Se,...W});de(a,!0);let v=u(a,"items",7),r=u(a,"maxVisible",7,3),s=u(a,"adaptive",7,!1),b=u(a,"align",7,"end"),d=u(a,"variant",7,"card-stack"),_=u(a,"interactive",7,!1),m=u(a,"overflowId",7),y=u(a,"overflowTestId",7),i=u(a,"itemContent",7),A=u(a,"class",7,""),I=P(void 0),F=P(void 0);const h=x(()=>We[d()]),U=x(()=>s()&&e(F)!==void 0?Ie({itemCount:v().length,maxVisible:r(),availableWidth:e(F),surface:e(h).surface,overlap:e(h).overlap,overflowOverlap:e(h).overlap,measureOverflowText:t=>Math.max(e(h).surface,$(t)+Ce)}):void 0),Y=x(()=>Math.min(v().length,Math.max(0,s()?e(U)??r():r()))),k=x(()=>v().slice(0,e(Y))),E=x(()=>Math.max(0,v().length-e(k).length)),N=x(()=>e(h).surface-e(h).overlap),Z=x(()=>e(k).length===0?0:e(h).surface+(e(k).length-1)*e(N));function $(t){const n=`+${j(t)}`,o=Q.get(n);if(o!==void 0)return o;if(O===void 0&&(O=document.createElement("canvas").getContext("2d")),!O||!e(I))return Ae;J??=`500 12px ${getComputedStyle(e(I)).fontFamily}`,O.font=J;const l=O.measureText(n).width;return Q.set(n,l),l}fe(()=>{if(!s()||!e(I)||typeof ResizeObserver>"u")return;const t=ye(o=>{K(F,o,!0)}),n=new ResizeObserver(o=>{const l=o[o.length-1];t.set(l.borderBoxSize?.[0]?.inlineSize??l.contentRect.width)});return n.observe(e(I)),()=>{n.disconnect(),t.cancel()}});var ee={get items(){return v()},set items(t){v(t),g()},get maxVisible(){return r()},set maxVisible(t=3){r(t),g()},get adaptive(){return s()},set adaptive(t=!1){s(t),g()},get align(){return b()},set align(t="end"){b(t),g()},get variant(){return d()},set variant(t="card-stack"){d(t),g()},get interactive(){return _()},set interactive(t=!1){_(t),g()},get overflowId(){return m()},set overflowId(t){m(t),g()},get overflowTestId(){return y()},set overflowTestId(t){y(t),g()},get itemContent(){return i()},set itemContent(t){i(t),g()},get class(){return A()},set class(t=""){A(t),g()},$set:ce,$on:(t,n)=>ve(a,t,n)},p=Me();let q;var B=H(p);{var te=t=>{var n=Oe();let o;_e(n,23,()=>e(k),l=>l.key,(l,w,V)=>{var f=Te();let G;var re=H(f);{var se=C=>{var M=me(),oe=he(M);ke(oe,i,()=>e(w)),T(C,M)},ie=C=>{{let M=x(()=>e(w).state??"idle");xe(C,{get agentId(){return e(w).agentId},get specialist(){return e(w).specialist},get icon(){return e(w).icon},get state(){return e(M)},get variant(){return d()},class:"agent-avatar-stack-surface"})}};D(re,C=>{i()?C(se):C(ie,-1)})}L(f),S(()=>{G=X(f,1,"agent-avatar-stack-item svelte-1nk9fhe",null,G,{"agent-avatar-stack-item--before-overflow":e(E)>0&&e(V)===e(k).length-1}),R(f,`inset-inline-start: ${e(V)*e(N)}px; z-index: ${e(V)+1};`),c(f,"data-agent-avatar-stack-index",e(V)),c(f,"data-agent-avatar-stack-key",e(w).key),c(f,"data-agent-avatar-stack-agent-id",e(w).agentId),c(f,"data-agent-avatar-stack-specialist",e(w).specialist??void 0),c(f,"aria-hidden",_()?void 0:"true")}),T(l,f)}),L(n),S(()=>o=R(n,"",o,{width:`${e(Z)}px`})),T(t,n)};D(B,t=>{e(k).length>0&&t(te)})}var ae=ue(B,2);{var ne=t=>{var n=Ve(),o=pe(n);S(l=>{c(n,"id",m()),R(n,`margin-inline-start: ${e(k).length>0?-e(h).overlap:0}px; z-index: ${e(k).length+1};`),c(n,"data-testid",y()),be(o,`+${l??""}`)},[()=>j(e(E))]),T(t,n)};D(ae,t=>{e(E)>0&&t(ne)})}return L(p),we(p,t=>K(I,t),()=>e(I)),S(()=>{q=X(p,1,`agent-avatar-stack ${A()??""}`,"svelte-1nk9fhe",q,{"agent-avatar-stack--adaptive":s(),"agent-avatar-stack--start":b()==="start"}),c(p,"data-agent-avatar-stack-align",b()),c(p,"data-avatar-variant",d()),c(p,"data-agent-avatar-stack-clear-space",e(h).ring),c(p,"aria-hidden",!_()&&!m()?"true":void 0)}),T(W,p),ge(ee)}export{Se as A};
@@ -1,4 +1,4 @@
1
- import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./B1_E9UBq.js";var J=(function(){var e=o(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,c,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(n[w-1].length,n[w].trim());break;case 16:c.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(u,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],c=[],p=[null],n=[],v=this.table,w="",I=0,$=0,L=2,A=1,V=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(S.yy[B]=this.yy[B]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;n.push(R);var U=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(P){i.length=i.length-2*P,p.length=p.length-P,n.length=n.length-P}o(Y,"popStack");function tt(){var P;return P=c.pop()||b.lex()||A,typeof P!="number"&&(P instanceof Array&&(c=P,P=c.pop()),P=s.symbols_[P]||P),P}o(tt,"lex");for(var M,W,N,K,z={},G,C,et,X;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var q="";X=[];for(G in v[W])this.terminals_[G]&&G>L&&X.push("'"+this.terminals_[G]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
1
+ import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./Cp-LTiNq.js";var J=(function(){var e=o(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,c,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(n[w-1].length,n[w].trim());break;case 16:c.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(u,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],c=[],p=[null],n=[],v=this.table,w="",I=0,$=0,L=2,A=1,V=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(S.yy[B]=this.yy[B]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;n.push(R);var U=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(P){i.length=i.length-2*P,p.length=p.length-P,n.length=n.length-P}o(Y,"popStack");function tt(){var P;return P=c.pop()||b.lex()||A,typeof P!="number"&&(P instanceof Array&&(c=P,P=c.pop()),P=s.symbols_[P]||P),P}o(tt,"lex");for(var M,W,N,K,z={},G,C,et,X;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var q="";X=[];for(G in v[W])this.terminals_[G]&&G>L&&X.push("'"+this.terminals_[G]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+X.join(", ")+", got '"+(this.terminals_[M]||M)+"'":q="Parse error on line "+(I+1)+": Unexpected "+(M==A?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(q,{text:b.match,token:this.terminals_[M]||M,line:b.yylineno,loc:R,expected:X})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+M);switch(N[0]){case 1:i.push(M),p.push(b.yytext),n.push(b.yylloc),i.push(N[1]),M=null,$=b.yyleng,w=b.yytext,I=b.yylineno,R=b.yylloc;break;case 2:if(C=this.productions_[N[1]][1],z.$=p[p.length-C],z._$={first_line:n[n.length-(C||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(C||1)].first_column,last_column:n[n.length-1].last_column},U&&(z._$.range=[n[n.length-(C||1)].range[0],n[n.length-1].range[1]]),K=this.performAction.apply(z,[w,$,I,S.yy,N[1],p,n].concat(V)),typeof K<"u")return K;C&&(i=i.slice(0,-1*C*2),p=p.slice(0,-1*C),n=n.slice(0,-1*C)),i.push(this.productions_[N[1]][0]),p.push(z.$),n.push(z._$),et=v[i[i.length-2]][i[i.length-1]],i.push(et);break;case 3:return!0}}return!0},"parse")},O=(function(){var T={EOF:1,parseError:o(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:o(function(t,s){return this.yy=s||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var s=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===c.length?this.yylloc.first_column:0)+c[c.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{t as lt,br as $,a_ as y,bz as pt,bt as dt,b as mt,bv as S,bp as T}from"./Cv-W__h8.js";import{bs as ut,ca as A,aD as e,bj as ft,a7 as f,ay as l,W as p,bn as _t,c9 as _,cd as z,aA as k,bS as vt,aB as gt}from"./DYhIMPy1.js";import{G}from"./GdlMbZRO.js";import{c as H}from"./D4os-974.js";import{as as bt,cN as It}from"./BKpkoMuv.js";import{dl as $t,dK as St}from"./B10dK85Q.js";import{S as kt,c as Ct}from"./Cp5oSwWa.js";import{selectScriptById as ht,selectCanDeleteScript as wt}from"./D15wv8Vo.js";import"./DPvDLGgX.js";import"./ClsZrb8B.js";import"./BePtUMMB.js";import"./BvDMLNjQ.js";import{M as K}from"./C-SF0TBp.js";import{g as xt}from"./DfN8_dcw.js";import{T as yt}from"./DgFO9ngQ.js";import{Ir as D,Cx as Tt,uN as At,gL as Dt}from"./DBkMUdAo.js";var Bt=gt("<!> <!>",1);function Wt(B,c){if(new.target)return lt({component:Wt,...B});ut(c,!0);const v=()=>S(E,"$fullContext$",g),L=()=>S(Q,"$canDeleteScript$",g),P=()=>S(F,"$scriptContext$",g),R=()=>S(J,"$script$",g),[g,V]=dt(),q=t=>{var r=f(),n=l(r);{var m=w=>{var O=Bt(),j=l(O);{let u=_(()=>T.workspace_shell_showInBottomBar_tooltip());H(j,()=>K,(I,x)=>{x(I,{get icon(){return bt},get label(){return e(u)},onclick:X,"data-move-to-bottom-bar":!0})})}var at=vt(j,2);{var st=u=>{var I=f(),x=l(I);{let ot=_(()=>T.scripts_delete_label()),nt=_(()=>L()?void 0:T.scripts_delete_disabled_description());H(x,()=>K,(ct,it)=>{it(ct,{get icon(){return It},get label(){return e(ot)},destructive:!0,get disabledReason(){return e(nt)},onclick:U})})}p(u,I)};y(at,u=>{e(s)&&u(st)})}p(w,O)};y(n,w=>{v()&&w(m)})}p(t,r)};let o=$(c,"tab",7),a=$(c,"workspaceId",7),C=$(c,"layoutId",7),i=$(c,"isActive",7);const b=_(()=>o().terminalId),s=_(()=>o().scriptId),W=xt(),d=z(""),h=z("");A(()=>d.set(a())),A(()=>h.set(e(s)??""));const E=$t(d),F=St(d),J=ht(d,h),Q=wt(d,h);let M=!0;ft(()=>{M=!1});function U(){if(!e(s))return;const t=a(),r=e(s),n=o().id;return Ct(t,r,()=>M&&i()&&a()===t&&e(s)===r&&o().id===n)}function X(){v()&&(e(s)&&D.dispatch(Tt(a(),e(s))),D.dispatch(At(a(),e(b))),D.dispatch(Dt(C()??a(),o().id)))}A(()=>{if(!(!W||!i()))return W.registerActions({actions:q})});var Y={get tab(){return o()},set tab(t){o(t),k()},get workspaceId(){return a()},set workspaceId(t){a(t),k()},get layoutId(){return C()},set layoutId(t){C(t),k()},get isActive(){return i()},set isActive(t){i(t),k()},$set:pt,$on:(t,r)=>mt(c,t,r)},N=f(),Z=l(N);{var tt=t=>{var r=f(),n=l(r);G(n,()=>e(s),m=>{kt(m,{get scriptId(){return e(s)},get workspaceId(){return a()},class:"h-full"})}),p(t,r)},et=t=>{var r=f(),n=l(r);G(n,()=>e(b),m=>{yt(m,{get terminalId(){return e(b)},get workspaceId(){return a()},class:"h-full"})}),p(t,r)};y(Z,t=>{e(s)&&i()&&P()&&(v()||R())?t(tt):e(b)&&i()&&v()&&t(et,1)})}p(B,N);var rt=_t(Y);return V(),rt}export{Wt as default};
1
+ import{t as lt,br as $,a_ as y,bz as pt,bt as dt,b as mt,bv as S,bp as T}from"./Cv-W__h8.js";import{bs as ut,ca as A,aD as e,bj as ft,a7 as f,ay as l,W as p,bn as _t,c9 as _,cd as z,aA as k,bS as vt,aB as gt}from"./DYhIMPy1.js";import{G}from"./GdlMbZRO.js";import{c as H}from"./D4os-974.js";import{as as bt,cN as It}from"./BKpkoMuv.js";import{dl as $t,dK as St}from"./B10dK85Q.js";import{S as kt,c as Ct}from"./oudOPrje.js";import{selectScriptById as ht,selectCanDeleteScript as wt}from"./C9qmGVAu.js";import"./DPvDLGgX.js";import"./ClsZrb8B.js";import"./BePtUMMB.js";import"./BvDMLNjQ.js";import{M as K}from"./C-SF0TBp.js";import{g as xt}from"./DfN8_dcw.js";import{T as yt}from"./CBRnEjo_.js";import{Ir as D,Cx as Tt,uN as At,gL as Dt}from"./DBkMUdAo.js";var Bt=gt("<!> <!>",1);function Wt(B,c){if(new.target)return lt({component:Wt,...B});ut(c,!0);const v=()=>S(E,"$fullContext$",g),L=()=>S(Q,"$canDeleteScript$",g),P=()=>S(F,"$scriptContext$",g),R=()=>S(J,"$script$",g),[g,V]=dt(),q=t=>{var r=f(),n=l(r);{var m=w=>{var O=Bt(),j=l(O);{let u=_(()=>T.workspace_shell_showInBottomBar_tooltip());H(j,()=>K,(I,x)=>{x(I,{get icon(){return bt},get label(){return e(u)},onclick:X,"data-move-to-bottom-bar":!0})})}var at=vt(j,2);{var st=u=>{var I=f(),x=l(I);{let ot=_(()=>T.scripts_delete_label()),nt=_(()=>L()?void 0:T.scripts_delete_disabled_description());H(x,()=>K,(ct,it)=>{it(ct,{get icon(){return It},get label(){return e(ot)},destructive:!0,get disabledReason(){return e(nt)},onclick:U})})}p(u,I)};y(at,u=>{e(s)&&u(st)})}p(w,O)};y(n,w=>{v()&&w(m)})}p(t,r)};let o=$(c,"tab",7),a=$(c,"workspaceId",7),C=$(c,"layoutId",7),i=$(c,"isActive",7);const b=_(()=>o().terminalId),s=_(()=>o().scriptId),W=xt(),d=z(""),h=z("");A(()=>d.set(a())),A(()=>h.set(e(s)??""));const E=$t(d),F=St(d),J=ht(d,h),Q=wt(d,h);let M=!0;ft(()=>{M=!1});function U(){if(!e(s))return;const t=a(),r=e(s),n=o().id;return Ct(t,r,()=>M&&i()&&a()===t&&e(s)===r&&o().id===n)}function X(){v()&&(e(s)&&D.dispatch(Tt(a(),e(s))),D.dispatch(At(a(),e(b))),D.dispatch(Dt(C()??a(),o().id)))}A(()=>{if(!(!W||!i()))return W.registerActions({actions:q})});var Y={get tab(){return o()},set tab(t){o(t),k()},get workspaceId(){return a()},set workspaceId(t){a(t),k()},get layoutId(){return C()},set layoutId(t){C(t),k()},get isActive(){return i()},set isActive(t){i(t),k()},$set:pt,$on:(t,r)=>mt(c,t,r)},N=f(),Z=l(N);{var tt=t=>{var r=f(),n=l(r);G(n,()=>e(s),m=>{kt(m,{get scriptId(){return e(s)},get workspaceId(){return a()},class:"h-full"})}),p(t,r)},et=t=>{var r=f(),n=l(r);G(n,()=>e(b),m=>{yt(m,{get terminalId(){return e(b)},get workspaceId(){return a()},class:"h-full"})}),p(t,r)};y(Z,t=>{e(s)&&i()&&P()&&(v()||R())?t(tt):e(b)&&i()&&v()&&t(et,1)})}p(B,N);var rt=_t(Y);return V(),rt}export{Wt as default};
@@ -1 +1 @@
1
- import{i}from"./CEpchTPD.js";import{w as a,I as e}from"./GdlMbZRO.js";import{Ir as s}from"./DBkMUdAo.js";import{c as t}from"./DTmJTNN7.js";function C(o,r){return t(s,o,{navigate:r,...a("windowChrome")?{closeWindow:()=>i(e.WINDOW.CLOSE)}:{}})}export{C as closeActiveTab};
1
+ import{i}from"./CEpchTPD.js";import{w as a,I as e}from"./GdlMbZRO.js";import{Ir as s}from"./DBkMUdAo.js";import{c as t}from"./DQhpUNCJ.js";function C(o,r){return t(s,o,{navigate:r,...a("windowChrome")?{closeWindow:()=>i(e.WINDOW.CLOSE)}:{}})}export{C as closeActiveTab};
@@ -1 +1 @@
1
- import{aB as v,b as y}from"./B1_E9UBq.js";var w=5,O=1e-5,X=2,Y=.6,R=1e-6;function N(t){const e=[];for(let s=0;s<t.length-1;s++)e.push({a:t[s],b:t[s+1]});return e}y(N,"buildSegmentList");function T(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=a.x-s.x,d=a.y-s.y,u=r*d-o*i;if(u===0)return null;const n=s.x-t.x,c=s.y-t.y,p=(n*d-c*i)/u,f=(n*o-c*r)/u;return p<=R||p>=1-R||f<=R||f>=1-R?null:{point:{x:t.x+p*r,y:t.y+p*o},tA:p,tB:f}}y(T,"segmentIntersection");function P(t){return Math.abs(t.b.x-t.a.x)>=Math.abs(t.b.y-t.a.y)}y(P,"isHorizontalSeg");function B(t,e,s){if(t.curve!=="rounded")return!1;const a=t.points,r=a[e],o=a[e+1];if(!r||!o)return!1;const i=Math.hypot(o.x-r.x,o.y-r.y),d=s*i,u=e>0?L(a[e-1],r,o,w):null;if(u&&d<u.cutLen)return!0;const n=e+2<a.length?L(r,o,a[e+2],w):null;return n!==null&&i-d<n.cutLen}y(B,"crossingSitsInRoundedCorner");function C(t){const e=[];for(let s=0;s<t.length;s++){const a=t[s],r=N(a.points);for(let o=s+1;o<t.length;o++){const i=t[o],d=N(i.points);for(const[u,n]of r.entries())for(const[c,p]of d.entries()){const f=T(n.a,n.b,p.a,p.b);if(!f||B(a,u,f.tA)||B(i,c,f.tB))continue;const g=P(n),S=P(p);(g!==S?g:!1)?e.push({jumpEdgeId:a.id,otherEdgeId:i.id,segIndex:u,t:f.tA,point:f.point}):e.push({jumpEdgeId:i.id,otherEdgeId:a.id,segIndex:c,t:f.tB,point:f.point})}}}return e}y(C,"findEdgeIntersections");function M(t){const e=Math.round(t*1e3)/1e3;return Number.isInteger(e)?`${e}`:`${e}`}y(M,"fmt");function A(t){return`${M(t.x)},${M(t.y)}`}y(A,"pointToString");function D(t){const e=t.b.x-t.a.x,s=t.b.y-t.a.y;return Math.abs(e)>=Math.abs(s)?e>=0?1:0:s>=0?1:0}y(D,"getArcSweepFlag");function _(t,e){if(t.length<2)return t.map(o=>({...o}));const s=t.map(o=>({...o})),a=e.arrowTypeStart&&v[e.arrowTypeStart];if(a){const o=t[0],i=t[1],d=Math.atan2(i.y-o.y,i.x-o.x);s[0].x=o.x+a*Math.cos(d),s[0].y=o.y+a*Math.sin(d)}const r=e.arrowTypeEnd&&v[e.arrowTypeEnd];if(r){const o=t.length,i=t[o-2],d=t[o-1],u=Math.atan2(d.y-i.y,d.x-i.x);s[o-1].x=d.x-r*Math.cos(u),s[o-1].y=d.y-r*Math.sin(u)}return s}y(_,"applyMarkerOffsets");function k(t,e,s,a,r){const o=t.point.x,i=t.point.y,d={x:o-e*t.r,y:i-s*t.r},u={x:o+e*t.r,y:i+s*t.r},n=[`L${A(d)}`];return r==="arc"?n.push(`A${M(t.r)},${M(t.r)} 0 0 ${a} ${A(u)}`):n.push(`M${A(u)}`),n}y(k,"emitJump");function L(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=s.x-e.x,d=s.y-e.y,u=Math.hypot(r,o),n=Math.hypot(i,d);if(u<O||n<O)return null;const c=r/u,p=o/u,f=i/n,g=d/n,S=c*f+p*g,b=Math.max(-1,Math.min(1,S)),m=Math.acos(b);if(m<O||Math.abs(Math.PI-m)<O)return null;const h=Math.min(a/Math.sin(m/2),u/2,n/2);return{startX:e.x-c*h,startY:e.y-p*h,endX:e.x+f*h,endY:e.y+g*h,ctrlX:e.x,ctrlY:e.y,cutLen:h}}y(L,"computeRoundedCorner");function H(t,e,s){const a=t.points;if(a.length<2)return"";const r=_(a,t),o=t.curve==="rounded",i=N(r),d=new Map;for(const n of e){const c=i[n.segIndex];if(!c)continue;const p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=d.get(n.segIndex)??[];f.push({t:n.t,point:n.point,d:n.t*p,r:s.jumpRadius}),d.set(n.segIndex,f)}const u=[`M${A(r[0])}`];for(let n=0;n<i.length;n++){const c=i[n],p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=p===0?0:(c.b.x-c.a.x)/p,g=p===0?0:(c.b.y-c.a.y)/p,S=D(c);let b=0;if(o&&n>0){const l=L(r[n-1],r[n],r[n+1]??r[n],w);l&&(b=l.cutLen)}let m=p,h=null;o&&n<i.length-1&&(h=L(r[n],r[n+1],r[n+2]??r[n+1],w),h&&(m=p-h.cutLen));const $=s.jumpRadius*Y,x=[...d.get(n)??[]].sort((l,E)=>l.t-E.t).filter(l=>{const E=Math.min(l.d-b,m-l.d)-X;return l.r=Math.min(l.r,E),l.r>=$});for(let l=0;l<x.length-1;l++){const E=x[l+1].d-x[l].d;if(x[l].r+x[l+1].r>E){const I=E/2;x[l].r=Math.min(x[l].r,I),x[l+1].r=Math.min(x[l+1].r,I)}}for(const l of x)l.r<$||u.push(...k(l,f,g,S,s.jumpStyle));o&&h?(u.push(`L${M(h.startX)},${M(h.startY)}`),u.push(`Q${M(h.ctrlX)},${M(h.ctrlY)} ${M(h.endX)},${M(h.endY)}`)):u.push(`L${A(c.b)}`)}return u.join(" ")}y(H,"rewriteEdgePath");function J(t){return/^[\d\s+,.LMelm-]*$/.test(t)}y(J,"isStraightPath");function U(t){return t?t==="linear"||t==="rounded"||t==="step"||t==="stepBefore"||t==="stepAfter":!0}y(U,"curveSupportsLineHops");function j(t){if(!t)return null;try{const e=typeof atob=="function"?atob(t):Buffer.from(t,"base64").toString(),s=JSON.parse(e);if(!Array.isArray(s))return null;const a=[];for(const r of s)r&&typeof r.x=="number"&&typeof r.y=="number"&&a.push({x:r.x,y:r.y});return a.length>=2?a:null}catch{return null}}y(j,"decodeDataPoints");function F(t,e,s){if(!s.enabled)return;const a=t.node();if(!a)return;const r=new Map;for(const n of e)r.set(n.id,n);const o=new Map;for(const n of a.querySelectorAll("path[data-id]")){const c=n.getAttribute("data-id");c!==null&&!o.has(c)&&o.set(c,n)}const i=[];for(const n of e){const c=o.get(n.id);if(!c)continue;const f=j(c.getAttribute("data-points"))??n.points;i.push({...n,points:f})}const d=C(i);if(d.length===0)return;const u=new Map;for(const n of d){const c=u.get(n.jumpEdgeId)??[];c.push(n),u.set(n.jumpEdgeId,c)}for(const n of i){const c=u.get(n.id);if(!c||c.length===0)continue;const f=r.get(n.id)?.curve;if(f!==void 0&&!U(f))continue;const g=o.get(n.id);if(!g)continue;if(f===void 0){const x=g.getAttribute("d")??"";if(!J(x))continue}const S=g.getAttribute("style")??"",b=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(S),m=b?Number.parseFloat(b[1]):null,h=b?Number.parseFloat(b[2]):null,$=H(n,c,s);if(g.setAttribute("d",$),m!==null&&h!==null&&typeof g.getTotalLength=="function"){const x=g.getTotalLength(),l=Math.max(0,x-m-h),E=`0 ${m} ${l} ${h}`,I=S.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${E};`).replace(/;\s*;+/g,";");g.setAttribute("style",I)}}}y(F,"applyLineJumpsToSvg");export{F as a};
1
+ import{aB as v,b as y}from"./Cp-LTiNq.js";var w=5,O=1e-5,X=2,Y=.6,R=1e-6;function N(t){const e=[];for(let s=0;s<t.length-1;s++)e.push({a:t[s],b:t[s+1]});return e}y(N,"buildSegmentList");function T(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=a.x-s.x,d=a.y-s.y,u=r*d-o*i;if(u===0)return null;const n=s.x-t.x,c=s.y-t.y,p=(n*d-c*i)/u,f=(n*o-c*r)/u;return p<=R||p>=1-R||f<=R||f>=1-R?null:{point:{x:t.x+p*r,y:t.y+p*o},tA:p,tB:f}}y(T,"segmentIntersection");function P(t){return Math.abs(t.b.x-t.a.x)>=Math.abs(t.b.y-t.a.y)}y(P,"isHorizontalSeg");function B(t,e,s){if(t.curve!=="rounded")return!1;const a=t.points,r=a[e],o=a[e+1];if(!r||!o)return!1;const i=Math.hypot(o.x-r.x,o.y-r.y),d=s*i,u=e>0?L(a[e-1],r,o,w):null;if(u&&d<u.cutLen)return!0;const n=e+2<a.length?L(r,o,a[e+2],w):null;return n!==null&&i-d<n.cutLen}y(B,"crossingSitsInRoundedCorner");function C(t){const e=[];for(let s=0;s<t.length;s++){const a=t[s],r=N(a.points);for(let o=s+1;o<t.length;o++){const i=t[o],d=N(i.points);for(const[u,n]of r.entries())for(const[c,p]of d.entries()){const f=T(n.a,n.b,p.a,p.b);if(!f||B(a,u,f.tA)||B(i,c,f.tB))continue;const g=P(n),S=P(p);(g!==S?g:!1)?e.push({jumpEdgeId:a.id,otherEdgeId:i.id,segIndex:u,t:f.tA,point:f.point}):e.push({jumpEdgeId:i.id,otherEdgeId:a.id,segIndex:c,t:f.tB,point:f.point})}}}return e}y(C,"findEdgeIntersections");function M(t){const e=Math.round(t*1e3)/1e3;return Number.isInteger(e)?`${e}`:`${e}`}y(M,"fmt");function A(t){return`${M(t.x)},${M(t.y)}`}y(A,"pointToString");function D(t){const e=t.b.x-t.a.x,s=t.b.y-t.a.y;return Math.abs(e)>=Math.abs(s)?e>=0?1:0:s>=0?1:0}y(D,"getArcSweepFlag");function _(t,e){if(t.length<2)return t.map(o=>({...o}));const s=t.map(o=>({...o})),a=e.arrowTypeStart&&v[e.arrowTypeStart];if(a){const o=t[0],i=t[1],d=Math.atan2(i.y-o.y,i.x-o.x);s[0].x=o.x+a*Math.cos(d),s[0].y=o.y+a*Math.sin(d)}const r=e.arrowTypeEnd&&v[e.arrowTypeEnd];if(r){const o=t.length,i=t[o-2],d=t[o-1],u=Math.atan2(d.y-i.y,d.x-i.x);s[o-1].x=d.x-r*Math.cos(u),s[o-1].y=d.y-r*Math.sin(u)}return s}y(_,"applyMarkerOffsets");function k(t,e,s,a,r){const o=t.point.x,i=t.point.y,d={x:o-e*t.r,y:i-s*t.r},u={x:o+e*t.r,y:i+s*t.r},n=[`L${A(d)}`];return r==="arc"?n.push(`A${M(t.r)},${M(t.r)} 0 0 ${a} ${A(u)}`):n.push(`M${A(u)}`),n}y(k,"emitJump");function L(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=s.x-e.x,d=s.y-e.y,u=Math.hypot(r,o),n=Math.hypot(i,d);if(u<O||n<O)return null;const c=r/u,p=o/u,f=i/n,g=d/n,S=c*f+p*g,b=Math.max(-1,Math.min(1,S)),m=Math.acos(b);if(m<O||Math.abs(Math.PI-m)<O)return null;const h=Math.min(a/Math.sin(m/2),u/2,n/2);return{startX:e.x-c*h,startY:e.y-p*h,endX:e.x+f*h,endY:e.y+g*h,ctrlX:e.x,ctrlY:e.y,cutLen:h}}y(L,"computeRoundedCorner");function H(t,e,s){const a=t.points;if(a.length<2)return"";const r=_(a,t),o=t.curve==="rounded",i=N(r),d=new Map;for(const n of e){const c=i[n.segIndex];if(!c)continue;const p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=d.get(n.segIndex)??[];f.push({t:n.t,point:n.point,d:n.t*p,r:s.jumpRadius}),d.set(n.segIndex,f)}const u=[`M${A(r[0])}`];for(let n=0;n<i.length;n++){const c=i[n],p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=p===0?0:(c.b.x-c.a.x)/p,g=p===0?0:(c.b.y-c.a.y)/p,S=D(c);let b=0;if(o&&n>0){const l=L(r[n-1],r[n],r[n+1]??r[n],w);l&&(b=l.cutLen)}let m=p,h=null;o&&n<i.length-1&&(h=L(r[n],r[n+1],r[n+2]??r[n+1],w),h&&(m=p-h.cutLen));const $=s.jumpRadius*Y,x=[...d.get(n)??[]].sort((l,E)=>l.t-E.t).filter(l=>{const E=Math.min(l.d-b,m-l.d)-X;return l.r=Math.min(l.r,E),l.r>=$});for(let l=0;l<x.length-1;l++){const E=x[l+1].d-x[l].d;if(x[l].r+x[l+1].r>E){const I=E/2;x[l].r=Math.min(x[l].r,I),x[l+1].r=Math.min(x[l+1].r,I)}}for(const l of x)l.r<$||u.push(...k(l,f,g,S,s.jumpStyle));o&&h?(u.push(`L${M(h.startX)},${M(h.startY)}`),u.push(`Q${M(h.ctrlX)},${M(h.ctrlY)} ${M(h.endX)},${M(h.endY)}`)):u.push(`L${A(c.b)}`)}return u.join(" ")}y(H,"rewriteEdgePath");function J(t){return/^[\d\s+,.LMelm-]*$/.test(t)}y(J,"isStraightPath");function U(t){return t?t==="linear"||t==="rounded"||t==="step"||t==="stepBefore"||t==="stepAfter":!0}y(U,"curveSupportsLineHops");function j(t){if(!t)return null;try{const e=typeof atob=="function"?atob(t):Buffer.from(t,"base64").toString(),s=JSON.parse(e);if(!Array.isArray(s))return null;const a=[];for(const r of s)r&&typeof r.x=="number"&&typeof r.y=="number"&&a.push({x:r.x,y:r.y});return a.length>=2?a:null}catch{return null}}y(j,"decodeDataPoints");function F(t,e,s){if(!s.enabled)return;const a=t.node();if(!a)return;const r=new Map;for(const n of e)r.set(n.id,n);const o=new Map;for(const n of a.querySelectorAll("path[data-id]")){const c=n.getAttribute("data-id");c!==null&&!o.has(c)&&o.set(c,n)}const i=[];for(const n of e){const c=o.get(n.id);if(!c)continue;const f=j(c.getAttribute("data-points"))??n.points;i.push({...n,points:f})}const d=C(i);if(d.length===0)return;const u=new Map;for(const n of d){const c=u.get(n.jumpEdgeId)??[];c.push(n),u.set(n.jumpEdgeId,c)}for(const n of i){const c=u.get(n.id);if(!c||c.length===0)continue;const f=r.get(n.id)?.curve;if(f!==void 0&&!U(f))continue;const g=o.get(n.id);if(!g)continue;if(f===void 0){const x=g.getAttribute("d")??"";if(!J(x))continue}const S=g.getAttribute("style")??"",b=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(S),m=b?Number.parseFloat(b[1]):null,h=b?Number.parseFloat(b[2]):null,$=H(n,c,s);if(g.setAttribute("d",$),m!==null&&h!==null&&typeof g.getTotalLength=="function"){const x=g.getTotalLength(),l=Math.max(0,x-m-h),E=`0 ${m} ${l} ${h}`,I=S.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${E};`).replace(/;\s*;+/g,";");g.setAttribute("style",I)}}}y(F,"applyLineJumpsToSvg");export{F as a};
@@ -1,4 +1,4 @@
1
- import{b as o,W as pt,x as nt,am as Wt,an as Rt,au as Pt,H as Bt,X as ft,ay as E,aX as Vt,aH as Ft,b3 as yt,aW as U,d as ct,_ as zt,y as Ot,r as Gt}from"./B1_E9UBq.js";var tt=(function(){var e=o(function(k,a,d,l){for(d=d||{},l=k.length;l--;d[k[l]]=a);return d},"o"),t=[6,11,13,14,15,17,19,20,23,24],s=[1,12],r=[1,13],n=[1,14],h=[1,15],c=[1,16],i=[1,19],y=[1,20],p={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:o(function(a,d,l,g,x,u,S){var v=u.length-1;switch(x){case 1:return u[v-1];case 3:g.setDirection("LR");break;case 4:g.setDirection("TD");break;case 5:this.$=[];break;case 6:u[v-1].push(u[v]),this.$=u[v-1];break;case 7:case 8:this.$=u[v];break;case 9:case 10:this.$=[];break;case 11:g.getCommonDb().setDiagramTitle(u[v].substr(6)),this.$=u[v].substr(6);break;case 12:this.$=u[v].trim(),g.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=u[v].trim(),g.getCommonDb().setAccDescription(this.$);break;case 15:g.addSection(u[v].substr(8)),this.$=u[v].substr(8);break;case 18:g.addTask(u[v],0,""),this.$=u[v];break;case 19:g.addEvent(u[v].substr(2)),this.$=u[v];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:s,15:r,17:n,19:h,20:c,21:17,22:18,23:i,24:y},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:s,15:r,17:n,19:h,20:c,21:17,22:18,23:i,24:y},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:o(function(a,d){if(d.recoverable)this.trace(a);else{var l=new Error(a);throw l.hash=d,l}},"parseError"),parse:o(function(a){var d=this,l=[0],g=[],x=[null],u=[],S=this.table,v="",I=0,C=0,R=2,O=1,L=u.slice.call(arguments,1),w=Object.create(this.lexer),H={yy:{}};for(var V in this.yy)Object.prototype.hasOwnProperty.call(this.yy,V)&&(H.yy[V]=this.yy[V]);w.setInput(a,H.yy),H.yy.lexer=w,H.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var F=w.yylloc;u.push(F);var K=w.options&&w.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function N(A){l.length=l.length-2*A,x.length=x.length-A,u.length=u.length-A}o(N,"popStack");function b(){var A;return A=g.pop()||w.lex()||O,typeof A!="number"&&(A instanceof Array&&(g=A,A=g.pop()),A=d.symbols_[A]||A),A}o(b,"lex");for(var _,$,T,P,W={},G,B,Z,j;;){if($=l[l.length-1],this.defaultActions[$]?T=this.defaultActions[$]:((_===null||typeof _>"u")&&(_=b()),T=S[$]&&S[$][_]),typeof T>"u"||!T.length||!T[0]){var Y="";j=[];for(G in S[$])this.terminals_[G]&&G>R&&j.push("'"+this.terminals_[G]+"'");w.showPosition?Y="Parse error on line "+(I+1)+`:
1
+ import{b as o,W as pt,x as nt,am as Wt,an as Rt,au as Pt,H as Bt,X as ft,ay as E,aX as Vt,aH as Ft,b3 as yt,aW as U,d as ct,_ as zt,y as Ot,r as Gt}from"./Cp-LTiNq.js";var tt=(function(){var e=o(function(k,a,d,l){for(d=d||{},l=k.length;l--;d[k[l]]=a);return d},"o"),t=[6,11,13,14,15,17,19,20,23,24],s=[1,12],r=[1,13],n=[1,14],h=[1,15],c=[1,16],i=[1,19],y=[1,20],p={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:o(function(a,d,l,g,x,u,S){var v=u.length-1;switch(x){case 1:return u[v-1];case 3:g.setDirection("LR");break;case 4:g.setDirection("TD");break;case 5:this.$=[];break;case 6:u[v-1].push(u[v]),this.$=u[v-1];break;case 7:case 8:this.$=u[v];break;case 9:case 10:this.$=[];break;case 11:g.getCommonDb().setDiagramTitle(u[v].substr(6)),this.$=u[v].substr(6);break;case 12:this.$=u[v].trim(),g.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=u[v].trim(),g.getCommonDb().setAccDescription(this.$);break;case 15:g.addSection(u[v].substr(8)),this.$=u[v].substr(8);break;case 18:g.addTask(u[v],0,""),this.$=u[v];break;case 19:g.addEvent(u[v].substr(2)),this.$=u[v];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:s,15:r,17:n,19:h,20:c,21:17,22:18,23:i,24:y},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:s,15:r,17:n,19:h,20:c,21:17,22:18,23:i,24:y},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:o(function(a,d){if(d.recoverable)this.trace(a);else{var l=new Error(a);throw l.hash=d,l}},"parseError"),parse:o(function(a){var d=this,l=[0],g=[],x=[null],u=[],S=this.table,v="",I=0,C=0,R=2,O=1,L=u.slice.call(arguments,1),w=Object.create(this.lexer),H={yy:{}};for(var V in this.yy)Object.prototype.hasOwnProperty.call(this.yy,V)&&(H.yy[V]=this.yy[V]);w.setInput(a,H.yy),H.yy.lexer=w,H.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var F=w.yylloc;u.push(F);var K=w.options&&w.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function N(A){l.length=l.length-2*A,x.length=x.length-A,u.length=u.length-A}o(N,"popStack");function b(){var A;return A=g.pop()||w.lex()||O,typeof A!="number"&&(A instanceof Array&&(g=A,A=g.pop()),A=d.symbols_[A]||A),A}o(b,"lex");for(var _,$,T,P,W={},G,B,Z,j;;){if($=l[l.length-1],this.defaultActions[$]?T=this.defaultActions[$]:((_===null||typeof _>"u")&&(_=b()),T=S[$]&&S[$][_]),typeof T>"u"||!T.length||!T[0]){var Y="";j=[];for(G in S[$])this.terminals_[G]&&G>R&&j.push("'"+this.terminals_[G]+"'");w.showPosition?Y="Parse error on line "+(I+1)+`:
2
2
  `+w.showPosition()+`
3
3
  Expecting `+j.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Y="Parse error on line "+(I+1)+": Unexpected "+(_==O?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Y,{text:w.match,token:this.terminals_[_]||_,line:w.yylineno,loc:F,expected:j})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+_);switch(T[0]){case 1:l.push(_),x.push(w.yytext),u.push(w.yylloc),l.push(T[1]),_=null,C=w.yyleng,v=w.yytext,I=w.yylineno,F=w.yylloc;break;case 2:if(B=this.productions_[T[1]][1],W.$=x[x.length-B],W._$={first_line:u[u.length-(B||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(B||1)].first_column,last_column:u[u.length-1].last_column},K&&(W._$.range=[u[u.length-(B||1)].range[0],u[u.length-1].range[1]]),P=this.performAction.apply(W,[v,C,I,H.yy,T[1],x,u].concat(L)),typeof P<"u")return P;B&&(l=l.slice(0,-1*B*2),x=x.slice(0,-1*B),u=u.slice(0,-1*B)),l.push(this.productions_[T[1]][0]),x.push(W.$),u.push(W._$),Z=S[l[l.length-2]][l[l.length-1]],l.push(Z);break;case 3:return!0}}return!0},"parse")},m=(function(){var k={EOF:1,parseError:o(function(d,l){if(this.yy.parser)this.yy.parser.parseError(d,l);else throw new Error(d)},"parseError"),setInput:o(function(a,d){return this.yy=d||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var d=a.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:o(function(a){var d=a.length,l=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var x=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===g.length?this.yylloc.first_column:0)+g[g.length-l.length].length-l[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(a){this.unput(this.match.slice(a))},"less"),pastInput:o(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var a=this.pastInput(),d=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
@@ -1 +1 @@
1
- import"./DYhIMPy1.js";import{s as De}from"./DPvDLGgX.js";import{D as Oe,E as we,c as We,F as ke}from"./j0KL2ItM.js";import{s as qe}from"./wQ_gAJ8i.js";import{i as _e}from"./hvA7NN8H.js";function Qe(t,i={}){const l=(i.axis??"y")==="y"?"height":"width",o=parseFloat(getComputedStyle(t)[l]);if(!Number.isFinite(o))return{duration:0};const v=i.duration??160,y=v<=80?"fast":v<=160?"moderate":"slow";return Oe(t,{axis:i.axis,tier:y},{direction:"in"})}function $e(){return qe.get("enableComponentTransitions")}const Ae={request(){},settle(){}},O=new WeakMap,He=2,ze=2e3,re=2,Pe=1e3,Ve=3e3;function Ze(t,i){let l=i.enabled??!0,o=i.follow,v=i.onFollowChange,y=i.onScrollStateChange,T=i.threshold??100,w=!1,h=null,u=null,m=null,x=null,d=null,b=null,M=null,F=null,S=0,R=null,g=!1,$=null;const L=new Set,W=new Map,P=new WeakSet,k=new Map,A=document.createElement("div");A.dataset.followBottomAnchor="",A.setAttribute("aria-hidden","true"),A.style.cssText=`height:1px;${i.layoutNeutralBottomAnchor?"margin-top:-1px;":""}overflow-anchor:auto;pointer-events:none;flex:0 0 auto;`;function G(e){e===A||k.has(e)||(k.set(e,e.style.overflowAnchor),e.style.overflowAnchor="none")}function V(e){const n=k.get(e);n!==void 0&&(e.style.overflowAnchor=n,k.delete(e))}function I(e){if(e)for(const r of t.children)r instanceof HTMLElement&&G(r);else for(const r of k.keys())V(r);const n=e?"auto":"none";A.style.overflowAnchor!==n&&(A.style.overflowAnchor=n),e?(A.parentElement!==t||A.nextSibling)&&t.append(A):A.remove()}function H(){I(o)}function C(){A.remove();for(const e of k.keys())V(e)}function Y(e){P.add(e),x?.observe(e)}function j(){d!==null&&cancelAnimationFrame(d),F!==null&&cancelAnimationFrame(F),d=null,F=null,S=0,R=null}function c(){return Math.max(0,t.scrollHeight-t.clientHeight)}function D(){return $??=getComputedStyle(t).overflowAnchor!=="none",$}function q(){const e=c(),n=t.scrollTop,r=h??void 0;h={maximum:e,scrollTop:n};const f={maximum:e,scrollTop:n,previous:r};return p.observe(f),f}function U(e=q()){return e.scrollTop!==e.maximum&&(t.scrollTop=e.maximum),h={maximum:e.maximum,scrollTop:e.maximum},{maximum:e.maximum,scrollTop:e.maximum}}function N(e=q()){const n=Math.max(0,e.maximum-e.scrollTop),r=n<=T;u?.distanceFromBottom===n&&u.isAtBottom===r&&u.isFollowing===o||(u={distanceFromBottom:n,isAtBottom:r,isFollowing:o},y?.({distanceFromBottom:n,isAtBottom:r,isFollowing:o}))}function _(e,n=!0){if(p.cancel(),!l){o=e;return}const r=o!==e;r&&(o=e,I(e)),r&&n&&v?.(e),e||j(),N()}function ee(e,n=!0){if(!L.delete(e))return;const r=(W.get(e.element)??1)-1;r>0?W.set(e.element,r):(W.delete(e.element),P.has(e.element)||x?.unobserve?.(e.element)),S=0,n&&X()}function te(e=!0){if(L.size===0)return;const n=performance.now();for(const r of L)(!t.contains(r.element)||n>=r.expiresAt)&&ee(r,e)}function oe(){if(d=null,g||!l||!o)return;if(te(!1),L.size>0){d=requestAnimationFrame(oe);return}const e=U(),{maximum:n}=e;N(e),n===R?S+=1:(S=0,R=n),S<He&&(d=requestAnimationFrame(oe))}function X(){g||!l||!o||d!==null||(d=requestAnimationFrame(oe))}function z(e=!0){if(g||!l||!o)return;const n=U(),{maximum:r}=n;N(n),S=0,R=r,e&&X()}function ne(){M===null&&(M=requestAnimationFrame(()=>{M=null,!(g||!l)&&N()}))}function Te(){if(F=null,g||!l)return;let e=q();const n=e.scrollTop!==e.maximum;e=U(e),(n||e.maximum!==R||L.size>0)&&(S=0,R=e.maximum,X()),N(e)}function Fe(){if(!(g||!l)){if(o){if(d!==null||F!==null)return;F=requestAnimationFrame(Te);return}ne()}}function Se(){if(!(g||!l)){if(o){z(F===null);return}ne()}}const K={followAndScroll(){_(!0),z()},isFollowing:()=>o,isNativeScrollAnchoringActive:()=>!o&&getComputedStyle(t).overflowAnchor!=="none",hasActiveMutation:()=>o?(te(),L.size>0):!1,beforeMutation(e,n){if(g||!l||!o)return Ae;const r={element:e,expiresAt:performance.now()+(n.maxHoldMs??ze)};L.add(r);const f=W.get(e)??0;return W.set(e,f+1),f===0&&!P.has(e)&&x?.observe(e),S=0,X(),{request(){!L.has(r)||g||(D()?X():z())},settle(){if(!(g||!L.has(r))){if(D()){ee(r);return}ee(r,!1),z()}}}}};function Le(){let e=null,n=null,r=null,f;function Q(s){return!e||s&&e.wheel!==s?!1:!e.wheel?.defaultPrevented&&performance.now()<e.expiresAt}function Me(s,a){if(s.maximum-s.scrollTop<=re)return!0;const B=s.previous;return a&&B!==void 0&&B.maximum<s.maximum&&B.maximum-s.scrollTop<=re}function Z(s,a){return Me(s,a)?(K.followAndScroll(),!0):!1}function ge(s){const a=q();return Q(s)&&Z(a,!0)}function Re(s){f=s,r===null&&(r=requestAnimationFrame(()=>{r=null;const a=f;f=void 0,!(g||!l||!Q(a))&&(ge(a)||N())}))}function Ne(s,a){const B=Math.max(0,a.maximum-a.scrollTop);if(a.maximum!==s.maximum)return s.maximum=a.maximum,s.distance=B,s.movedTowardBottom=!1,!1;const ve=B-s.distance;return s.distance=B,ve>0?(s.movedTowardBottom=!1,_(!1),!0):ve===0?!1:(s.movedTowardBottom=!0,Z(a,!1))}function Ce(s){if(o||!e)return!1;const a=s.previous;return a&&s.scrollTop<a.scrollTop?(e=null,!1):(!a||s.scrollTop>a.scrollTop)&&Q()&&Z(s,!0)}return{isDragging:()=>n!==null,start(s,a){const B=s==="touch"?Ve:Pe;e={wheel:a,expiresAt:performance.now()+B}},grab(s){if(e=null,!s){n=null;return}const a=c();n={maximum:a,distance:Math.max(0,a-t.scrollTop),movedTowardBottom:!1}},move(s){return n?Ne(n,s):Ce(s)},land(s,a){if(s==="frame"){Re(a);return}if(s==="scrollend"){Q()&&ge(),e=null;return}if(!n)return;const{movedTowardBottom:B}=n;n=null,B&&Z(q(),!1)||N()},observe(s){const a=s.previous;e&&a!==void 0&&s.maximum<a.maximum&&s.maximum-s.scrollTop<=re&&(e=null)},cancel(){e=null},requestBottom(){K.followAndScroll()},reset(){e=null,n=null,f=void 0,r!==null&&cancelAnimationFrame(r),r=null}}}const p=Le();function ie(e){e.deltaY<0?_(!1):e.deltaY>0&&(p.start("wheel",e),p.land("frame",e))}function le(e){e.target===t?p.land("scrollend"):p.cancel()}let se=0;function ae(e){p.cancel(),w=!1,se=e.touches[0]?.clientY??0}function ue(e){const n=e.touches[0]?.clientY??0,r=se-n;w=r>0,r<0&&_(!1)}function ce(){w&&p.start("touch"),p.land("frame")}function fe(e){if(p.cancel(),["ArrowUp","PageUp","Home"].includes(e.key))_(!1);else if(["ArrowDown","PageDown","End"].includes(e.key)){if(e.target instanceof Element&&_e(e.target))return;if(e.key==="End"){p.requestBottom();return}p.start("keyboard"),p.land("frame")}}function Be(e){if(e.button!==0||e.target!==t)return!1;const n=Math.max(0,t.offsetWidth-t.clientWidth);if(n===0)return!1;const r=t.getBoundingClientRect(),f=t.offsetWidth>0?n*(r.width/t.offsetWidth):n;return getComputedStyle(t).direction==="rtl"?e.clientX<=r.left+f:e.clientX>=r.right-f}function me(){const e=p.isDragging();if(!e&&o&&d!==null)return;let n=q();p.move(n)||(o&&!e&&(n=U(n)),N(n))}function de(e){p.grab(Be(e))}function J(){p.land("release")}function Ee(){if(!m){m=new MutationObserver(e=>{let n=!1;for(const r of e)if(r.type==="childList"){for(const f of r.removedNodes)n=!0,f instanceof HTMLElement&&V(f);for(const f of r.addedNodes)f instanceof HTMLElement&&f!==A&&x&&(Y(f),o&&f.parentElement===t&&G(f))}n&&te(),I(o),Fe()}),m.observe(t,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),x=new ResizeObserver(Se),Y(t);for(const e of t.children)e instanceof HTMLElement&&e!==A&&Y(e)}}function be(){m?.disconnect(),m=null,x?.disconnect(),x=null}function pe(e=!1){if(!l||g)return;if(O.set(t,K),t.addEventListener("scroll",me,{passive:!0}),t.addEventListener("scrollend",le,{passive:!0,capture:!0}),t.addEventListener("wheel",ie,{passive:!0}),t.addEventListener("touchstart",ae,{passive:!0}),t.addEventListener("touchmove",ue,{passive:!0}),t.addEventListener("touchend",ce,{passive:!0}),t.addEventListener("keydown",fe),t.addEventListener("pointerdown",de,{passive:!0}),window.addEventListener("pointerup",J,{passive:!0}),window.addEventListener("pointercancel",J,{passive:!0}),H(),Ee(),e){b=requestAnimationFrame(()=>{b=null,!(g||!l)&&(D(),o?z():N())});return}D();let n=q();o&&(n=U(n),R=n.maximum),N(n)}function he(){p.reset(),w=!1,h=null,L.clear(),W.clear(),j(),b!==null&&cancelAnimationFrame(b),b=null,M!==null&&cancelAnimationFrame(M),M=null,u=null,$=null,O.get(t)===K&&O.delete(t),be(),C(),t.removeEventListener("scroll",me),t.removeEventListener("scrollend",le,!0),t.removeEventListener("wheel",ie),t.removeEventListener("touchstart",ae),t.removeEventListener("touchmove",ue),t.removeEventListener("touchend",ce),t.removeEventListener("keydown",fe),t.removeEventListener("pointerdown",de),window.removeEventListener("pointerup",J),window.removeEventListener("pointercancel",J)}return pe(!0),{update(e){v=e.onFollowChange,y=e.onScrollStateChange,T=e.threshold??100;const n=e.enabled??!0;if(l!==n&&(n||he(),l=n,l)){o=e.follow,pe(!0);return}l?e.follow&&!o?(_(!0,!1),z()):!e.follow&&o?_(!1,!1):b===null&&ne():o=e.follow},destroy(){g=!0,he()}}}function et(t){return O.get(t)?.isFollowing()??!1}function tt(t){return O.get(t)?.isNativeScrollAnchoringActive()??!1}function ot(t){return O.get(t)?.hasActiveMutation()??!1}function xe(t,i={}){let l=t;for(;l;){const o=O.get(l);if(o)return o.beforeMutation(t,i);l=l.parentElement}return Ae}function Ie(t){const{scrollTop:i,scrollHeight:l,clientHeight:o}=t;return l-i-o}function Ye(t,i=100){return Ie(t)<=i}function Ue(t,i=!1){t.scrollTo({top:t.scrollHeight,behavior:i?"smooth":"auto"})}function nt(t){const i=O.get(t);if(i){i.followAndScroll();return}Ue(t)}function rt(t,i,l=150,o){const v=t();if(!v)return;const y=v.scrollTop,T=performance.now();function w(u){return 1-Math.pow(1-u,3)}function h(u){const m=t();if(!m)return;const x=u-T,d=Math.min(x/l,1),b=typeof i=="function"?i(m):i;m.scrollTop=y+(b-y)*w(d),d<1?requestAnimationFrame(h):o?.(m)}requestAnimationFrame(h)}function it(t,i="[data-message-id], [data-lazy-turn-key]"){const l=t.scrollTop,o=t.getBoundingClientRect(),v=Ye(t,100);if(v&&O.get(t)?.isFollowing()!==!1)return{element:null,offsetFromViewport:0,scrollTop:l,isNearBottom:v};const y=t.querySelectorAll(i);let T=null,w=0,h;for(const u of y){const m=u.getBoundingClientRect();if(m.top>=o.bottom)break;if(m.top>=o.top){T||(T=u,w=m.top-o.top);const x=u.getAttribute("data-message-id");if(x){h={id:x,offsetFromViewport:m.top-o.top};break}}}return{element:T,offsetFromViewport:w,scrollTop:l,isNearBottom:v,...h?{message:h}:{}}}function ye(t,i){if(i.message){const l=t.querySelector(`[data-message-id="${CSS.escape(i.message.id)}"]`);if(l)return{element:l,offsetFromViewport:i.message.offsetFromViewport}}return i.element?.isConnected?{element:i.element,offsetFromViewport:i.offsetFromViewport}:null}function lt(t,i){return ye(t,i)!==null}function st(t,i){const l=ye(t,i);if(l){const{element:o,offsetFromViewport:v}=l,y=t.getBoundingClientRect(),h=o.getBoundingClientRect().top-y.top-v;Math.abs(h)>5&&(t.scrollTop+=h)}}function E(t,i){const l=Number.parseFloat(String(t[i]));return Number.isFinite(l)?l:0}function at(t,i={},l={}){const o=t,y={maxHoldMs:we[i.tier??"moderate"].settleMs*2+500};let T=xe(o,y);const w=()=>{T?.settle(),T=null},h=()=>{T??=xe(o,y)};if(!$e()||De())return w(),{duration:0};const u=getComputedStyle(o),m=i.axis??"y",x=o.getBoundingClientRect(),d=m==="y"?E(u,"height")||x.height:E(u,"width")||x.width;if(!Number.isFinite(d)||d<=0)return w(),{duration:0};const b=E(u,"opacity")||1,M=i.tier??"moderate",F=we[M],S=l.direction==="out",R=typeof u.getPropertyValue=="function"?S?We(o,{tier:M}):ke(o,{tier:M}):{duration:S?F.exit.duration:F.settleMs,easing:F.exit.easing},g=R.duration??(S?F.exit.duration:F.settleMs),$=i.y??-4,L=E(u,"paddingTop"),W=E(u,"paddingBottom"),P=E(u,"marginTop"),k=E(u,"marginBottom"),A=E(u,"paddingLeft"),G=E(u,"paddingRight"),V=E(u,"marginLeft"),I=E(u,"marginRight");let H=null,C=l.direction==="out"?"outro":l.direction==="in"?"intro":"idle";const Y=(c,D)=>{o.style.overflow="hidden",m==="y"?(o.style.height=`${c*d}px`,o.style.paddingTop=`${c*L}px`,o.style.paddingBottom=`${c*W}px`,o.style.marginTop=`${c*P}px`,o.style.marginBottom=`${c*k}px`):(o.style.width=`${c*d}px`,o.style.paddingLeft=`${c*A}px`,o.style.paddingRight=`${c*G}px`,o.style.marginLeft=`${c*V}px`,o.style.marginRight=`${c*I}px`),o.style.opacity=`${c*b}`,o.style.transform=m==="y"?`translateY(${$*D}px)`:`translateX(${$*D}px)`},j=()=>{o.style.overflow="",o.style.height="",o.style.width="",o.style.paddingTop="",o.style.paddingBottom="",o.style.marginTop="",o.style.marginBottom="",o.style.paddingLeft="",o.style.paddingRight="",o.style.marginLeft="",o.style.marginRight="",o.style.opacity="",o.style.transform=""};return{duration:g,easing:R.easing,tick:(c,D)=>{if(l.direction==="both"&&(H===null?c<1&&(C="outro"):c<H?(h(),C="outro"):c>H&&(h(),C="intro")),H=c,c===1&&C!=="outro"){j(),w(),C="idle";return}Y(c,D),T?.request(),c===0&&C==="outro"&&(w(),C="idle")}}}export{rt as a,$e as b,xe as c,lt as d,it as e,Ze as f,nt as g,ot as h,et as i,tt as j,Qe as k,Ue as l,st as r,at as s};
1
+ import"./DYhIMPy1.js";import{s as De}from"./DPvDLGgX.js";import{D as Oe,E as we,c as We,F as ke}from"./j0KL2ItM.js";import{s as qe}from"./D71s6lTD.js";import{i as _e}from"./hvA7NN8H.js";function Qe(t,i={}){const l=(i.axis??"y")==="y"?"height":"width",o=parseFloat(getComputedStyle(t)[l]);if(!Number.isFinite(o))return{duration:0};const v=i.duration??160,y=v<=80?"fast":v<=160?"moderate":"slow";return Oe(t,{axis:i.axis,tier:y},{direction:"in"})}function $e(){return qe.get("enableComponentTransitions")}const Ae={request(){},settle(){}},O=new WeakMap,He=2,ze=2e3,re=2,Pe=1e3,Ve=3e3;function Ze(t,i){let l=i.enabled??!0,o=i.follow,v=i.onFollowChange,y=i.onScrollStateChange,T=i.threshold??100,w=!1,h=null,u=null,m=null,x=null,d=null,b=null,M=null,F=null,S=0,R=null,g=!1,$=null;const L=new Set,W=new Map,P=new WeakSet,k=new Map,A=document.createElement("div");A.dataset.followBottomAnchor="",A.setAttribute("aria-hidden","true"),A.style.cssText=`height:1px;${i.layoutNeutralBottomAnchor?"margin-top:-1px;":""}overflow-anchor:auto;pointer-events:none;flex:0 0 auto;`;function G(e){e===A||k.has(e)||(k.set(e,e.style.overflowAnchor),e.style.overflowAnchor="none")}function V(e){const n=k.get(e);n!==void 0&&(e.style.overflowAnchor=n,k.delete(e))}function I(e){if(e)for(const r of t.children)r instanceof HTMLElement&&G(r);else for(const r of k.keys())V(r);const n=e?"auto":"none";A.style.overflowAnchor!==n&&(A.style.overflowAnchor=n),e?(A.parentElement!==t||A.nextSibling)&&t.append(A):A.remove()}function H(){I(o)}function C(){A.remove();for(const e of k.keys())V(e)}function Y(e){P.add(e),x?.observe(e)}function j(){d!==null&&cancelAnimationFrame(d),F!==null&&cancelAnimationFrame(F),d=null,F=null,S=0,R=null}function c(){return Math.max(0,t.scrollHeight-t.clientHeight)}function D(){return $??=getComputedStyle(t).overflowAnchor!=="none",$}function q(){const e=c(),n=t.scrollTop,r=h??void 0;h={maximum:e,scrollTop:n};const f={maximum:e,scrollTop:n,previous:r};return p.observe(f),f}function U(e=q()){return e.scrollTop!==e.maximum&&(t.scrollTop=e.maximum),h={maximum:e.maximum,scrollTop:e.maximum},{maximum:e.maximum,scrollTop:e.maximum}}function N(e=q()){const n=Math.max(0,e.maximum-e.scrollTop),r=n<=T;u?.distanceFromBottom===n&&u.isAtBottom===r&&u.isFollowing===o||(u={distanceFromBottom:n,isAtBottom:r,isFollowing:o},y?.({distanceFromBottom:n,isAtBottom:r,isFollowing:o}))}function _(e,n=!0){if(p.cancel(),!l){o=e;return}const r=o!==e;r&&(o=e,I(e)),r&&n&&v?.(e),e||j(),N()}function ee(e,n=!0){if(!L.delete(e))return;const r=(W.get(e.element)??1)-1;r>0?W.set(e.element,r):(W.delete(e.element),P.has(e.element)||x?.unobserve?.(e.element)),S=0,n&&X()}function te(e=!0){if(L.size===0)return;const n=performance.now();for(const r of L)(!t.contains(r.element)||n>=r.expiresAt)&&ee(r,e)}function oe(){if(d=null,g||!l||!o)return;if(te(!1),L.size>0){d=requestAnimationFrame(oe);return}const e=U(),{maximum:n}=e;N(e),n===R?S+=1:(S=0,R=n),S<He&&(d=requestAnimationFrame(oe))}function X(){g||!l||!o||d!==null||(d=requestAnimationFrame(oe))}function z(e=!0){if(g||!l||!o)return;const n=U(),{maximum:r}=n;N(n),S=0,R=r,e&&X()}function ne(){M===null&&(M=requestAnimationFrame(()=>{M=null,!(g||!l)&&N()}))}function Te(){if(F=null,g||!l)return;let e=q();const n=e.scrollTop!==e.maximum;e=U(e),(n||e.maximum!==R||L.size>0)&&(S=0,R=e.maximum,X()),N(e)}function Fe(){if(!(g||!l)){if(o){if(d!==null||F!==null)return;F=requestAnimationFrame(Te);return}ne()}}function Se(){if(!(g||!l)){if(o){z(F===null);return}ne()}}const K={followAndScroll(){_(!0),z()},isFollowing:()=>o,isNativeScrollAnchoringActive:()=>!o&&getComputedStyle(t).overflowAnchor!=="none",hasActiveMutation:()=>o?(te(),L.size>0):!1,beforeMutation(e,n){if(g||!l||!o)return Ae;const r={element:e,expiresAt:performance.now()+(n.maxHoldMs??ze)};L.add(r);const f=W.get(e)??0;return W.set(e,f+1),f===0&&!P.has(e)&&x?.observe(e),S=0,X(),{request(){!L.has(r)||g||(D()?X():z())},settle(){if(!(g||!L.has(r))){if(D()){ee(r);return}ee(r,!1),z()}}}}};function Le(){let e=null,n=null,r=null,f;function Q(s){return!e||s&&e.wheel!==s?!1:!e.wheel?.defaultPrevented&&performance.now()<e.expiresAt}function Me(s,a){if(s.maximum-s.scrollTop<=re)return!0;const B=s.previous;return a&&B!==void 0&&B.maximum<s.maximum&&B.maximum-s.scrollTop<=re}function Z(s,a){return Me(s,a)?(K.followAndScroll(),!0):!1}function ge(s){const a=q();return Q(s)&&Z(a,!0)}function Re(s){f=s,r===null&&(r=requestAnimationFrame(()=>{r=null;const a=f;f=void 0,!(g||!l||!Q(a))&&(ge(a)||N())}))}function Ne(s,a){const B=Math.max(0,a.maximum-a.scrollTop);if(a.maximum!==s.maximum)return s.maximum=a.maximum,s.distance=B,s.movedTowardBottom=!1,!1;const ve=B-s.distance;return s.distance=B,ve>0?(s.movedTowardBottom=!1,_(!1),!0):ve===0?!1:(s.movedTowardBottom=!0,Z(a,!1))}function Ce(s){if(o||!e)return!1;const a=s.previous;return a&&s.scrollTop<a.scrollTop?(e=null,!1):(!a||s.scrollTop>a.scrollTop)&&Q()&&Z(s,!0)}return{isDragging:()=>n!==null,start(s,a){const B=s==="touch"?Ve:Pe;e={wheel:a,expiresAt:performance.now()+B}},grab(s){if(e=null,!s){n=null;return}const a=c();n={maximum:a,distance:Math.max(0,a-t.scrollTop),movedTowardBottom:!1}},move(s){return n?Ne(n,s):Ce(s)},land(s,a){if(s==="frame"){Re(a);return}if(s==="scrollend"){Q()&&ge(),e=null;return}if(!n)return;const{movedTowardBottom:B}=n;n=null,B&&Z(q(),!1)||N()},observe(s){const a=s.previous;e&&a!==void 0&&s.maximum<a.maximum&&s.maximum-s.scrollTop<=re&&(e=null)},cancel(){e=null},requestBottom(){K.followAndScroll()},reset(){e=null,n=null,f=void 0,r!==null&&cancelAnimationFrame(r),r=null}}}const p=Le();function ie(e){e.deltaY<0?_(!1):e.deltaY>0&&(p.start("wheel",e),p.land("frame",e))}function le(e){e.target===t?p.land("scrollend"):p.cancel()}let se=0;function ae(e){p.cancel(),w=!1,se=e.touches[0]?.clientY??0}function ue(e){const n=e.touches[0]?.clientY??0,r=se-n;w=r>0,r<0&&_(!1)}function ce(){w&&p.start("touch"),p.land("frame")}function fe(e){if(p.cancel(),["ArrowUp","PageUp","Home"].includes(e.key))_(!1);else if(["ArrowDown","PageDown","End"].includes(e.key)){if(e.target instanceof Element&&_e(e.target))return;if(e.key==="End"){p.requestBottom();return}p.start("keyboard"),p.land("frame")}}function Be(e){if(e.button!==0||e.target!==t)return!1;const n=Math.max(0,t.offsetWidth-t.clientWidth);if(n===0)return!1;const r=t.getBoundingClientRect(),f=t.offsetWidth>0?n*(r.width/t.offsetWidth):n;return getComputedStyle(t).direction==="rtl"?e.clientX<=r.left+f:e.clientX>=r.right-f}function me(){const e=p.isDragging();if(!e&&o&&d!==null)return;let n=q();p.move(n)||(o&&!e&&(n=U(n)),N(n))}function de(e){p.grab(Be(e))}function J(){p.land("release")}function Ee(){if(!m){m=new MutationObserver(e=>{let n=!1;for(const r of e)if(r.type==="childList"){for(const f of r.removedNodes)n=!0,f instanceof HTMLElement&&V(f);for(const f of r.addedNodes)f instanceof HTMLElement&&f!==A&&x&&(Y(f),o&&f.parentElement===t&&G(f))}n&&te(),I(o),Fe()}),m.observe(t,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),x=new ResizeObserver(Se),Y(t);for(const e of t.children)e instanceof HTMLElement&&e!==A&&Y(e)}}function be(){m?.disconnect(),m=null,x?.disconnect(),x=null}function pe(e=!1){if(!l||g)return;if(O.set(t,K),t.addEventListener("scroll",me,{passive:!0}),t.addEventListener("scrollend",le,{passive:!0,capture:!0}),t.addEventListener("wheel",ie,{passive:!0}),t.addEventListener("touchstart",ae,{passive:!0}),t.addEventListener("touchmove",ue,{passive:!0}),t.addEventListener("touchend",ce,{passive:!0}),t.addEventListener("keydown",fe),t.addEventListener("pointerdown",de,{passive:!0}),window.addEventListener("pointerup",J,{passive:!0}),window.addEventListener("pointercancel",J,{passive:!0}),H(),Ee(),e){b=requestAnimationFrame(()=>{b=null,!(g||!l)&&(D(),o?z():N())});return}D();let n=q();o&&(n=U(n),R=n.maximum),N(n)}function he(){p.reset(),w=!1,h=null,L.clear(),W.clear(),j(),b!==null&&cancelAnimationFrame(b),b=null,M!==null&&cancelAnimationFrame(M),M=null,u=null,$=null,O.get(t)===K&&O.delete(t),be(),C(),t.removeEventListener("scroll",me),t.removeEventListener("scrollend",le,!0),t.removeEventListener("wheel",ie),t.removeEventListener("touchstart",ae),t.removeEventListener("touchmove",ue),t.removeEventListener("touchend",ce),t.removeEventListener("keydown",fe),t.removeEventListener("pointerdown",de),window.removeEventListener("pointerup",J),window.removeEventListener("pointercancel",J)}return pe(!0),{update(e){v=e.onFollowChange,y=e.onScrollStateChange,T=e.threshold??100;const n=e.enabled??!0;if(l!==n&&(n||he(),l=n,l)){o=e.follow,pe(!0);return}l?e.follow&&!o?(_(!0,!1),z()):!e.follow&&o?_(!1,!1):b===null&&ne():o=e.follow},destroy(){g=!0,he()}}}function et(t){return O.get(t)?.isFollowing()??!1}function tt(t){return O.get(t)?.isNativeScrollAnchoringActive()??!1}function ot(t){return O.get(t)?.hasActiveMutation()??!1}function xe(t,i={}){let l=t;for(;l;){const o=O.get(l);if(o)return o.beforeMutation(t,i);l=l.parentElement}return Ae}function Ie(t){const{scrollTop:i,scrollHeight:l,clientHeight:o}=t;return l-i-o}function Ye(t,i=100){return Ie(t)<=i}function Ue(t,i=!1){t.scrollTo({top:t.scrollHeight,behavior:i?"smooth":"auto"})}function nt(t){const i=O.get(t);if(i){i.followAndScroll();return}Ue(t)}function rt(t,i,l=150,o){const v=t();if(!v)return;const y=v.scrollTop,T=performance.now();function w(u){return 1-Math.pow(1-u,3)}function h(u){const m=t();if(!m)return;const x=u-T,d=Math.min(x/l,1),b=typeof i=="function"?i(m):i;m.scrollTop=y+(b-y)*w(d),d<1?requestAnimationFrame(h):o?.(m)}requestAnimationFrame(h)}function it(t,i="[data-message-id], [data-lazy-turn-key]"){const l=t.scrollTop,o=t.getBoundingClientRect(),v=Ye(t,100);if(v&&O.get(t)?.isFollowing()!==!1)return{element:null,offsetFromViewport:0,scrollTop:l,isNearBottom:v};const y=t.querySelectorAll(i);let T=null,w=0,h;for(const u of y){const m=u.getBoundingClientRect();if(m.top>=o.bottom)break;if(m.top>=o.top){T||(T=u,w=m.top-o.top);const x=u.getAttribute("data-message-id");if(x){h={id:x,offsetFromViewport:m.top-o.top};break}}}return{element:T,offsetFromViewport:w,scrollTop:l,isNearBottom:v,...h?{message:h}:{}}}function ye(t,i){if(i.message){const l=t.querySelector(`[data-message-id="${CSS.escape(i.message.id)}"]`);if(l)return{element:l,offsetFromViewport:i.message.offsetFromViewport}}return i.element?.isConnected?{element:i.element,offsetFromViewport:i.offsetFromViewport}:null}function lt(t,i){return ye(t,i)!==null}function st(t,i){const l=ye(t,i);if(l){const{element:o,offsetFromViewport:v}=l,y=t.getBoundingClientRect(),h=o.getBoundingClientRect().top-y.top-v;Math.abs(h)>5&&(t.scrollTop+=h)}}function E(t,i){const l=Number.parseFloat(String(t[i]));return Number.isFinite(l)?l:0}function at(t,i={},l={}){const o=t,y={maxHoldMs:we[i.tier??"moderate"].settleMs*2+500};let T=xe(o,y);const w=()=>{T?.settle(),T=null},h=()=>{T??=xe(o,y)};if(!$e()||De())return w(),{duration:0};const u=getComputedStyle(o),m=i.axis??"y",x=o.getBoundingClientRect(),d=m==="y"?E(u,"height")||x.height:E(u,"width")||x.width;if(!Number.isFinite(d)||d<=0)return w(),{duration:0};const b=E(u,"opacity")||1,M=i.tier??"moderate",F=we[M],S=l.direction==="out",R=typeof u.getPropertyValue=="function"?S?We(o,{tier:M}):ke(o,{tier:M}):{duration:S?F.exit.duration:F.settleMs,easing:F.exit.easing},g=R.duration??(S?F.exit.duration:F.settleMs),$=i.y??-4,L=E(u,"paddingTop"),W=E(u,"paddingBottom"),P=E(u,"marginTop"),k=E(u,"marginBottom"),A=E(u,"paddingLeft"),G=E(u,"paddingRight"),V=E(u,"marginLeft"),I=E(u,"marginRight");let H=null,C=l.direction==="out"?"outro":l.direction==="in"?"intro":"idle";const Y=(c,D)=>{o.style.overflow="hidden",m==="y"?(o.style.height=`${c*d}px`,o.style.paddingTop=`${c*L}px`,o.style.paddingBottom=`${c*W}px`,o.style.marginTop=`${c*P}px`,o.style.marginBottom=`${c*k}px`):(o.style.width=`${c*d}px`,o.style.paddingLeft=`${c*A}px`,o.style.paddingRight=`${c*G}px`,o.style.marginLeft=`${c*V}px`,o.style.marginRight=`${c*I}px`),o.style.opacity=`${c*b}`,o.style.transform=m==="y"?`translateY(${$*D}px)`:`translateX(${$*D}px)`},j=()=>{o.style.overflow="",o.style.height="",o.style.width="",o.style.paddingTop="",o.style.paddingBottom="",o.style.marginTop="",o.style.marginBottom="",o.style.paddingLeft="",o.style.paddingRight="",o.style.marginLeft="",o.style.marginRight="",o.style.opacity="",o.style.transform=""};return{duration:g,easing:R.easing,tick:(c,D)=>{if(l.direction==="both"&&(H===null?c<1&&(C="outro"):c<H?(h(),C="outro"):c>H&&(h(),C="intro")),H=c,c===1&&C!=="outro"){j(),w(),C="idle";return}Y(c,D),T?.request(),c===0&&C==="outro"&&(w(),C="idle")}}}export{rt as a,$e as b,xe as c,lt as d,it as e,Ze as f,nt as g,ot as h,et as i,tt as j,Qe as k,Ue as l,st as r,at as s};
@@ -1 +1 @@
1
- import{ac as En,w as Bn,aS as Wn,F as Xn}from"./B1_E9UBq.js";function Mn(n,e){return n==null||e==null?NaN:n<e?-1:n>e?1:n>=e?0:NaN}function _e(n,e){return n==null||e==null?NaN:e<n?-1:e>n?1:e>=n?0:NaN}function Pn(n){let e,r,t;n.length!==2?(e=Mn,r=(a,f)=>Mn(n(a),f),t=(a,f)=>n(a)-f):(e=n===Mn||n===_e?n:Qe,r=n,t=n);function u(a,f,c=0,h=a.length){if(c<h){if(e(f,f)!==0)return h;do{const g=c+h>>>1;r(a[g],f)<0?c=g+1:h=g}while(c<h)}return c}function o(a,f,c=0,h=a.length){if(c<h){if(e(f,f)!==0)return h;do{const g=c+h>>>1;r(a[g],f)<=0?c=g+1:h=g}while(c<h)}return c}function i(a,f,c=0,h=a.length){const g=u(a,f,c,h-1);return g>c&&t(a[g-1],f)>-t(a[g],f)?g-1:g}return{left:u,center:i,right:o}}function Qe(){return 0}function Ve(n){return n===null?NaN:+n}const Ee=Pn(Mn),Be=Ee.right;Pn(Ve).center;class Gn extends Map{constructor(e,r=Je){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[t,u]of e)this.set(t,u)}get(e){return super.get(Jn(this,e))}has(e){return super.has(Jn(this,e))}set(e,r){return super.set(Xe(this,e),r)}delete(e){return super.delete(Ge(this,e))}}function Jn({_intern:n,_key:e},r){const t=e(r);return n.has(t)?n.get(t):r}function Xe({_intern:n,_key:e},r){const t=e(r);return n.has(t)?n.get(t):(n.set(t,r),r)}function Ge({_intern:n,_key:e},r){const t=e(r);return n.has(t)&&(r=n.get(t),n.delete(t)),r}function Je(n){return n!==null&&typeof n=="object"?n.valueOf():n}const Ke=Math.sqrt(50),nr=Math.sqrt(10),er=Math.sqrt(2);function dn(n,e,r){const t=(e-n)/Math.max(0,r),u=Math.floor(Math.log10(t)),o=t/Math.pow(10,u),i=o>=Ke?10:o>=nr?5:o>=er?2:1;let a,f,c;return u<0?(c=Math.pow(10,-u)/i,a=Math.round(n*c),f=Math.round(e*c),a/c<n&&++a,f/c>e&&--f,c=-c):(c=Math.pow(10,u)*i,a=Math.round(n/c),f=Math.round(e/c),a*c<n&&++a,f*c>e&&--f),f<a&&.5<=r&&r<2?dn(n,e,r*2):[a,f,c]}function rr(n,e,r){if(e=+e,n=+n,r=+r,!(r>0))return[];if(n===e)return[n];const t=e<n,[u,o,i]=t?dn(e,n,r):dn(n,e,r);if(!(o>=u))return[];const a=o-u+1,f=new Array(a);if(t)if(i<0)for(let c=0;c<a;++c)f[c]=(o-c)/-i;else for(let c=0;c<a;++c)f[c]=(o-c)*i;else if(i<0)for(let c=0;c<a;++c)f[c]=(u+c)/-i;else for(let c=0;c<a;++c)f[c]=(u+c)*i;return f}function Ln(n,e,r){return e=+e,n=+n,r=+r,dn(n,e,r)[2]}function In(n,e,r){e=+e,n=+n,r=+r;const t=e<n,u=t?Ln(e,n,r):Ln(n,e,r);return(t?-1:1)*(u<0?1/-u:u)}function lu(n,e){let r;if(e===void 0)for(const t of n)t!=null&&(r<t||r===void 0&&t>=t)&&(r=t);else{let t=-1;for(let u of n)(u=e(u,++t,n))!=null&&(r<u||r===void 0&&u>=u)&&(r=u)}return r}function gu(n,e){let r;if(e===void 0)for(const t of n)t!=null&&(r>t||r===void 0&&t>=t)&&(r=t);else{let t=-1;for(let u of n)(u=e(u,++t,n))!=null&&(r>u||r===void 0&&u>=u)&&(r=u)}return r}function tr(n,e,r){n=+n,e=+e,r=(u=arguments.length)<2?(e=n,n=0,1):u<3?1:+r;for(var t=-1,u=Math.max(0,Math.ceil((e-n)/r))|0,o=new Array(u);++t<u;)o[t]=n+t*r;return o}function ur(n,e,r,t,u){var o=n*n,i=o*n;return((1-3*n+3*o-i)*e+(4-6*o+3*i)*r+(1+3*n+3*o-3*i)*t+i*u)/6}function or(n){var e=n.length-1;return function(r){var t=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),u=n[t],o=n[t+1],i=t>0?n[t-1]:2*u-o,a=t<e-1?n[t+2]:2*o-u;return ur((r-t/e)*e,i,u,o,a)}}var xn=n=>()=>n;function pe(n,e){return function(r){return n+r*e}}function ir(n,e,r){return n=Math.pow(n,r),e=Math.pow(e,r)-n,r=1/r,function(t){return Math.pow(n+t*e,r)}}function we(n,e){var r=e-n;return r?pe(n,r>180||r<-180?r-360*Math.round(r/360):r):xn(isNaN(n)?e:n)}function ar(n){return(n=+n)==1?Z:function(e,r){return r-e?ir(e,r,n):xn(isNaN(e)?r:e)}}function Z(n,e){var r=e-n;return r?pe(n,r):xn(isNaN(n)?e:n)}var Kn=(function n(e){var r=ar(e);function t(u,o){var i=r((u=Wn(u)).r,(o=Wn(o)).r),a=r(u.g,o.g),f=r(u.b,o.b),c=Z(u.opacity,o.opacity);return function(h){return u.r=i(h),u.g=a(h),u.b=f(h),u.opacity=c(h),u+""}}return t.gamma=n,t})(1);function cr(n){return function(e){var r=e.length,t=new Array(r),u=new Array(r),o=new Array(r),i,a;for(i=0;i<r;++i)a=Wn(e[i]),t[i]=a.r||0,u[i]=a.g||0,o[i]=a.b||0;return t=n(t),u=n(u),o=n(o),a.opacity=1,function(f){return a.r=t(f),a.g=u(f),a.b=o(f),a+""}}}var hu=cr(or);function fr(n,e){e||(e=[]);var r=n?Math.min(e.length,n.length):0,t=e.slice(),u;return function(o){for(u=0;u<r;++u)t[u]=n[u]*(1-o)+e[u]*o;return t}}function sr(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function lr(n,e){var r=e?e.length:0,t=n?Math.min(r,n.length):0,u=new Array(t),o=new Array(r),i;for(i=0;i<t;++i)u[i]=Rn(n[i],e[i]);for(;i<r;++i)o[i]=e[i];return function(a){for(i=0;i<t;++i)o[i]=u[i](a);return o}}function gr(n,e){var r=new Date;return n=+n,e=+e,function(t){return r.setTime(n*(1-t)+e*t),r}}function Tn(n,e){return n=+n,e=+e,function(r){return n*(1-r)+e*r}}function hr(n,e){var r={},t={},u;(n===null||typeof n!="object")&&(n={}),(e===null||typeof e!="object")&&(e={});for(u in e)u in n?r[u]=Rn(n[u],e[u]):t[u]=e[u];return function(o){for(u in r)t[u]=r[u](o);return t}}var On=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Fn=new RegExp(On.source,"g");function mr(n){return function(){return n}}function yr(n){return function(e){return n(e)+""}}function Mr(n,e){var r=On.lastIndex=Fn.lastIndex=0,t,u,o,i=-1,a=[],f=[];for(n=n+"",e=e+"";(t=On.exec(n))&&(u=Fn.exec(e));)(o=u.index)>r&&(o=e.slice(r,o),a[i]?a[i]+=o:a[++i]=o),(t=t[0])===(u=u[0])?a[i]?a[i]+=u:a[++i]=u:(a[++i]=null,f.push({i,x:Tn(t,u)})),r=Fn.lastIndex;return r<e.length&&(o=e.slice(r),a[i]?a[i]+=o:a[++i]=o),a.length<2?f[0]?yr(f[0].x):mr(e):(e=f.length,function(c){for(var h=0,g;h<e;++h)a[(g=f[h]).i]=g.x(c);return a.join("")})}function Rn(n,e){var r=typeof e,t;return e==null||r==="boolean"?xn(e):(r==="number"?Tn:r==="string"?(t=Bn(e))?(e=t,Kn):Mr:e instanceof Bn?Kn:e instanceof Date?gr:sr(e)?fr:Array.isArray(e)?lr:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?hr:Tn)(n,e)}function dr(n,e){return n=+n,e=+e,function(r){return Math.round(n*(1-r)+e*r)}}var Tr=1e-12;function ne(n){return((n=Math.exp(n))+1/n)/2}function pr(n){return((n=Math.exp(n))-1/n)/2}function wr(n){return((n=Math.exp(2*n))-1)/(n+1)}(function n(e,r,t){function u(o,i){var a=o[0],f=o[1],c=o[2],h=i[0],g=i[1],l=i[2],w=h-a,v=g-f,U=w*w+v*v,S,Y;if(U<Tr)Y=Math.log(l/c)/e,S=function(D){return[a+D*w,f+D*v,c*Math.exp(e*D*Y)]};else{var O=Math.sqrt(U),N=(l*l-c*c+t*U)/(2*c*r*O),x=(l*l-c*c-t*U)/(2*l*r*O),L=Math.log(Math.sqrt(N*N+1)-N),y=Math.log(Math.sqrt(x*x+1)-x);Y=(y-L)/e,S=function(D){var P=D*Y,V=ne(L),J=c/(r*O)*(V*wr(e*P+L)-pr(L));return[a+J*w,f+J*v,c*V/ne(e*P+L)]}}return S.duration=Math.abs(Y)*1e3*e/Math.SQRT2,S}return u.rho=function(o){var i=Math.max(.001,+o),a=i*i,f=a*a;return n(i,a,f)},u})(Math.SQRT2,2,4);function vr(n){return function(e,r){var t=n((e=En(e)).h,(r=En(r)).h),u=Z(e.c,r.c),o=Z(e.l,r.l),i=Z(e.opacity,r.opacity);return function(a){return e.h=t(a),e.c=u(a),e.l=o(a),e.opacity=i(a),e+""}}}var mu=vr(we);function ve(n){return(function e(r){r=+r;function t(u,o){var i=n((u=Xn(u)).h,(o=Xn(o)).h),a=Z(u.s,o.s),f=Z(u.l,o.l),c=Z(u.opacity,o.opacity);return function(h){return u.h=i(h),u.s=a(h),u.l=f(Math.pow(h,r)),u.opacity=c(h),u+""}}return t.gamma=e,t})(1)}ve(we);var yu=ve(Z);function Cr(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function pn(n,e){if(!isFinite(n)||n===0)return null;var r=(n=e?n.toExponential(e-1):n.toExponential()).indexOf("e"),t=n.slice(0,r);return[t.length>1?t[0]+t.slice(2):t,+n.slice(r+1)]}function on(n){return n=pn(Math.abs(n)),n?n[1]:NaN}function Ur(n,e){return function(r,t){for(var u=r.length,o=[],i=0,a=n[0],f=0;u>0&&a>0&&(f+a+1>t&&(a=Math.max(1,t-f)),o.push(r.substring(u-=a,u+a)),!((f+=a+1)>t));)a=n[i=(i+1)%n.length];return o.reverse().join(e)}}function Dr(n){return function(e){return e.replace(/[0-9]/g,function(r){return n[+r]})}}var xr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function wn(n){if(!(e=xr.exec(n)))throw new Error("invalid format: "+n);var e;return new zn({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}wn.prototype=zn.prototype;function zn(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}zn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Sr(n){n:for(var e=n.length,r=1,t=-1,u;r<e;++r)switch(n[r]){case".":t=u=r;break;case"0":t===0&&(t=r),u=r;break;default:if(!+n[r])break n;t>0&&(t=0);break}return t>0?n.slice(0,t)+n.slice(u+1):n}var vn;function kr(n,e){var r=pn(n,e);if(!r)return vn=void 0,n.toPrecision(e);var t=r[0],u=r[1],o=u-(vn=Math.max(-8,Math.min(8,Math.floor(u/3)))*3)+1,i=t.length;return o===i?t:o>i?t+new Array(o-i+1).join("0"):o>0?t.slice(0,o)+"."+t.slice(o):"0."+new Array(1-o).join("0")+pn(n,Math.max(0,e+o-1))[0]}function ee(n,e){var r=pn(n,e);if(!r)return n+"";var t=r[0],u=r[1];return u<0?"0."+new Array(-u).join("0")+t:t.length>u+1?t.slice(0,u+1)+"."+t.slice(u+1):t+new Array(u-t.length+2).join("0")}var re={"%":(n,e)=>(n*100).toFixed(e),b:n=>Math.round(n).toString(2),c:n=>n+"",d:Cr,e:(n,e)=>n.toExponential(e),f:(n,e)=>n.toFixed(e),g:(n,e)=>n.toPrecision(e),o:n=>Math.round(n).toString(8),p:(n,e)=>ee(n*100,e),r:ee,s:kr,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function te(n){return n}var ue=Array.prototype.map,oe=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Fr(n){var e=n.grouping===void 0||n.thousands===void 0?te:Ur(ue.call(n.grouping,Number),n.thousands+""),r=n.currency===void 0?"":n.currency[0]+"",t=n.currency===void 0?"":n.currency[1]+"",u=n.decimal===void 0?".":n.decimal+"",o=n.numerals===void 0?te:Dr(ue.call(n.numerals,String)),i=n.percent===void 0?"%":n.percent+"",a=n.minus===void 0?"−":n.minus+"",f=n.nan===void 0?"NaN":n.nan+"";function c(g,l){g=wn(g);var w=g.fill,v=g.align,U=g.sign,S=g.symbol,Y=g.zero,O=g.width,N=g.comma,x=g.precision,L=g.trim,y=g.type;y==="n"?(N=!0,y="g"):re[y]||(x===void 0&&(x=12),L=!0,y="g"),(Y||w==="0"&&v==="=")&&(Y=!0,w="0",v="=");var D=(l&&l.prefix!==void 0?l.prefix:"")+(S==="$"?r:S==="#"&&/[boxX]/.test(y)?"0"+y.toLowerCase():""),P=(S==="$"?t:/[%p]/.test(y)?i:"")+(l&&l.suffix!==void 0?l.suffix:""),V=re[y],J=/[defgprs%]/.test(y);x=x===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function hn(d){var R=D,b=P,Q,mn,K;if(y==="c")b=V(d)+b,d="";else{d=+d;var nn=d<0||1/d<0;if(d=isNaN(d)?f:V(Math.abs(d),x),L&&(d=Sr(d)),nn&&+d==0&&U!=="+"&&(nn=!1),R=(nn?U==="("?U:a:U==="-"||U==="("?"":U)+R,b=(y==="s"&&!isNaN(d)&&vn!==void 0?oe[8+vn/3]:"")+b+(nn&&U==="("?")":""),J){for(Q=-1,mn=d.length;++Q<mn;)if(K=d.charCodeAt(Q),48>K||K>57){b=(K===46?u+d.slice(Q+1):d.slice(Q))+b,d=d.slice(0,Q);break}}}N&&!Y&&(d=e(d,1/0));var en=R.length+d.length+b.length,$=en<O?new Array(O-en+1).join(w):"";switch(N&&Y&&(d=e($+d,$.length?O-b.length:1/0),$=""),v){case"<":d=R+d+b+$;break;case"=":d=R+$+d+b;break;case"^":d=$.slice(0,en=$.length>>1)+R+d+b+$.slice(en);break;default:d=$+R+d+b;break}return o(d)}return hn.toString=function(){return g+""},hn}function h(g,l){var w=Math.max(-8,Math.min(8,Math.floor(on(l)/3)))*3,v=Math.pow(10,-w),U=c((g=wn(g),g.type="f",g),{suffix:oe[8+w/3]});return function(S){return U(v*S)}}return{format:c,formatPrefix:h}}var yn,Ce,Ue;Nr({thousands:",",grouping:[3],currency:["$",""]});function Nr(n){return yn=Fr(n),Ce=yn.format,Ue=yn.formatPrefix,yn}function Yr(n){return Math.max(0,-on(Math.abs(n)))}function br(n,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(on(e)/3)))*3-on(Math.abs(n)))}function Ar(n,e){return n=Math.abs(n),e=Math.abs(e)-n,Math.max(0,on(e)-on(n))+1}const Nn=new Date,Yn=new Date;function k(n,e,r,t){function u(o){return n(o=arguments.length===0?new Date:new Date(+o)),o}return u.floor=o=>(n(o=new Date(+o)),o),u.ceil=o=>(n(o=new Date(o-1)),e(o,1),n(o),o),u.round=o=>{const i=u(o),a=u.ceil(o);return o-i<a-o?i:a},u.offset=(o,i)=>(e(o=new Date(+o),i==null?1:Math.floor(i)),o),u.range=(o,i,a)=>{const f=[];if(o=u.ceil(o),a=a==null?1:Math.floor(a),!(o<i)||!(a>0))return f;let c;do f.push(c=new Date(+o)),e(o,a),n(o);while(c<o&&o<i);return f},u.filter=o=>k(i=>{if(i>=i)for(;n(i),!o(i);)i.setTime(i-1)},(i,a)=>{if(i>=i)if(a<0)for(;++a<=0;)for(;e(i,-1),!o(i););else for(;--a>=0;)for(;e(i,1),!o(i););}),r&&(u.count=(o,i)=>(Nn.setTime(+o),Yn.setTime(+i),n(Nn),n(Yn),Math.floor(r(Nn,Yn))),u.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?u.filter(t?i=>t(i)%o===0:i=>u.count(0,i)%o===0):u)),u}const Cn=k(()=>{},(n,e)=>{n.setTime(+n+e)},(n,e)=>e-n);Cn.every=n=>(n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?k(e=>{e.setTime(Math.floor(e/n)*n)},(e,r)=>{e.setTime(+e+r*n)},(e,r)=>(r-e)/n):Cn);Cn.range;const z=1e3,I=z*60,j=I*60,q=j*24,jn=q*7,ie=q*30,bn=q*365,tn=k(n=>{n.setTime(n-n.getMilliseconds())},(n,e)=>{n.setTime(+n+e*z)},(n,e)=>(e-n)/z,n=>n.getUTCSeconds());tn.range;const Zn=k(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*z)},(n,e)=>{n.setTime(+n+e*I)},(n,e)=>(e-n)/I,n=>n.getMinutes());Zn.range;const Hr=k(n=>{n.setUTCSeconds(0,0)},(n,e)=>{n.setTime(+n+e*I)},(n,e)=>(e-n)/I,n=>n.getUTCMinutes());Hr.range;const qn=k(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*z-n.getMinutes()*I)},(n,e)=>{n.setTime(+n+e*j)},(n,e)=>(e-n)/j,n=>n.getHours());qn.range;const Wr=k(n=>{n.setUTCMinutes(0,0,0)},(n,e)=>{n.setTime(+n+e*j)},(n,e)=>(e-n)/j,n=>n.getUTCHours());Wr.range;const gn=k(n=>n.setHours(0,0,0,0),(n,e)=>n.setDate(n.getDate()+e),(n,e)=>(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*I)/q,n=>n.getDate()-1);gn.range;const _n=k(n=>{n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCDate(n.getUTCDate()+e)},(n,e)=>(e-n)/q,n=>n.getUTCDate()-1);_n.range;const Lr=k(n=>{n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCDate(n.getUTCDate()+e)},(n,e)=>(e-n)/q,n=>Math.floor(n/q));Lr.range;function X(n){return k(e=>{e.setDate(e.getDate()-(e.getDay()+7-n)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*I)/jn)}const Sn=X(0),Un=X(1),Ir=X(2),Or=X(3),an=X(4),$r=X(5),Pr=X(6);Sn.range;Un.range;Ir.range;Or.range;an.range;$r.range;Pr.range;function G(n){return k(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-n)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/jn)}const De=G(0),Dn=G(1),Rr=G(2),zr=G(3),cn=G(4),jr=G(5),Zr=G(6);De.range;Dn.range;Rr.range;zr.range;cn.range;jr.range;Zr.range;const Qn=k(n=>{n.setDate(1),n.setHours(0,0,0,0)},(n,e)=>{n.setMonth(n.getMonth()+e)},(n,e)=>e.getMonth()-n.getMonth()+(e.getFullYear()-n.getFullYear())*12,n=>n.getMonth());Qn.range;const qr=k(n=>{n.setUTCDate(1),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCMonth(n.getUTCMonth()+e)},(n,e)=>e.getUTCMonth()-n.getUTCMonth()+(e.getUTCFullYear()-n.getUTCFullYear())*12,n=>n.getUTCMonth());qr.range;const _=k(n=>{n.setMonth(0,1),n.setHours(0,0,0,0)},(n,e)=>{n.setFullYear(n.getFullYear()+e)},(n,e)=>e.getFullYear()-n.getFullYear(),n=>n.getFullYear());_.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:k(e=>{e.setFullYear(Math.floor(e.getFullYear()/n)*n),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*n)});_.range;const B=k(n=>{n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCFullYear(n.getUTCFullYear()+e)},(n,e)=>e.getUTCFullYear()-n.getUTCFullYear(),n=>n.getUTCFullYear());B.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:k(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/n)*n),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*n)});B.range;function _r(n,e,r,t,u,o){const i=[[tn,1,z],[tn,5,5*z],[tn,15,15*z],[tn,30,30*z],[o,1,I],[o,5,5*I],[o,15,15*I],[o,30,30*I],[u,1,j],[u,3,3*j],[u,6,6*j],[u,12,12*j],[t,1,q],[t,2,2*q],[r,1,jn],[e,1,ie],[e,3,3*ie],[n,1,bn]];function a(c,h,g){const l=h<c;l&&([c,h]=[h,c]);const w=g&&typeof g.range=="function"?g:f(c,h,g),v=w?w.range(c,+h+1):[];return l?v.reverse():v}function f(c,h,g){const l=Math.abs(h-c)/g,w=Pn(([,,S])=>S).right(i,l);if(w===i.length)return n.every(In(c/bn,h/bn,g));if(w===0)return Cn.every(Math.max(In(c,h,g),1));const[v,U]=i[l/i[w-1][2]<i[w][2]/l?w-1:w];return v.every(U)}return[a,f]}const[Qr,Vr]=_r(_,Qn,Sn,gn,qn,Zn);function An(n){if(0<=n.y&&n.y<100){var e=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return e.setFullYear(n.y),e}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function Hn(n){if(0<=n.y&&n.y<100){var e=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return e.setUTCFullYear(n.y),e}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function fn(n,e,r){return{y:n,m:e,d:r,H:0,M:0,S:0,L:0}}function Er(n){var e=n.dateTime,r=n.date,t=n.time,u=n.periods,o=n.days,i=n.shortDays,a=n.months,f=n.shortMonths,c=sn(u),h=ln(u),g=sn(o),l=ln(o),w=sn(i),v=ln(i),U=sn(a),S=ln(a),Y=sn(f),O=ln(f),N={a:K,A:nn,b:en,B:$,c:null,d:ge,e:ge,f:dt,g:kt,G:Nt,H:mt,I:yt,j:Mt,L:xe,m:Tt,M:pt,p:Oe,q:$e,Q:ye,s:Me,S:wt,u:vt,U:Ct,V:Ut,w:Dt,W:xt,x:null,X:null,y:St,Y:Ft,Z:Yt,"%":me},x={a:Pe,A:Re,b:ze,B:je,c:null,d:he,e:he,f:Wt,g:qt,G:Qt,H:bt,I:At,j:Ht,L:ke,m:Lt,M:It,p:Ze,q:qe,Q:ye,s:Me,S:Ot,u:$t,U:Pt,V:Rt,w:zt,W:jt,x:null,X:null,y:Zt,Y:_t,Z:Vt,"%":me},L={a:J,A:hn,b:d,B:R,c:b,d:se,e:se,f:st,g:fe,G:ce,H:le,I:le,j:it,L:ft,m:ot,M:at,p:V,q:ut,Q:gt,s:ht,S:ct,u:Kr,U:nt,V:et,w:Jr,W:rt,x:Q,X:mn,y:fe,Y:ce,Z:tt,"%":lt};N.x=y(r,N),N.X=y(t,N),N.c=y(e,N),x.x=y(r,x),x.X=y(t,x),x.c=y(e,x);function y(m,M){return function(T){var s=[],A=-1,C=0,H=m.length,W,E,Vn;for(T instanceof Date||(T=new Date(+T));++A<H;)m.charCodeAt(A)===37&&(s.push(m.slice(C,A)),(E=ae[W=m.charAt(++A)])!=null?W=m.charAt(++A):E=W==="e"?" ":"0",(Vn=M[W])&&(W=Vn(T,E)),s.push(W),C=A+1);return s.push(m.slice(C,A)),s.join("")}}function D(m,M){return function(T){var s=fn(1900,void 0,1),A=P(s,m,T+="",0),C,H;if(A!=T.length)return null;if("Q"in s)return new Date(s.Q);if("s"in s)return new Date(s.s*1e3+("L"in s?s.L:0));if(M&&!("Z"in s)&&(s.Z=0),"p"in s&&(s.H=s.H%12+s.p*12),s.m===void 0&&(s.m="q"in s?s.q:0),"V"in s){if(s.V<1||s.V>53)return null;"w"in s||(s.w=1),"Z"in s?(C=Hn(fn(s.y,0,1)),H=C.getUTCDay(),C=H>4||H===0?Dn.ceil(C):Dn(C),C=_n.offset(C,(s.V-1)*7),s.y=C.getUTCFullYear(),s.m=C.getUTCMonth(),s.d=C.getUTCDate()+(s.w+6)%7):(C=An(fn(s.y,0,1)),H=C.getDay(),C=H>4||H===0?Un.ceil(C):Un(C),C=gn.offset(C,(s.V-1)*7),s.y=C.getFullYear(),s.m=C.getMonth(),s.d=C.getDate()+(s.w+6)%7)}else("W"in s||"U"in s)&&("w"in s||(s.w="u"in s?s.u%7:"W"in s?1:0),H="Z"in s?Hn(fn(s.y,0,1)).getUTCDay():An(fn(s.y,0,1)).getDay(),s.m=0,s.d="W"in s?(s.w+6)%7+s.W*7-(H+5)%7:s.w+s.U*7-(H+6)%7);return"Z"in s?(s.H+=s.Z/100|0,s.M+=s.Z%100,Hn(s)):An(s)}}function P(m,M,T,s){for(var A=0,C=M.length,H=T.length,W,E;A<C;){if(s>=H)return-1;if(W=M.charCodeAt(A++),W===37){if(W=M.charAt(A++),E=L[W in ae?M.charAt(A++):W],!E||(s=E(m,T,s))<0)return-1}else if(W!=T.charCodeAt(s++))return-1}return s}function V(m,M,T){var s=c.exec(M.slice(T));return s?(m.p=h.get(s[0].toLowerCase()),T+s[0].length):-1}function J(m,M,T){var s=w.exec(M.slice(T));return s?(m.w=v.get(s[0].toLowerCase()),T+s[0].length):-1}function hn(m,M,T){var s=g.exec(M.slice(T));return s?(m.w=l.get(s[0].toLowerCase()),T+s[0].length):-1}function d(m,M,T){var s=Y.exec(M.slice(T));return s?(m.m=O.get(s[0].toLowerCase()),T+s[0].length):-1}function R(m,M,T){var s=U.exec(M.slice(T));return s?(m.m=S.get(s[0].toLowerCase()),T+s[0].length):-1}function b(m,M,T){return P(m,e,M,T)}function Q(m,M,T){return P(m,r,M,T)}function mn(m,M,T){return P(m,t,M,T)}function K(m){return i[m.getDay()]}function nn(m){return o[m.getDay()]}function en(m){return f[m.getMonth()]}function $(m){return a[m.getMonth()]}function Oe(m){return u[+(m.getHours()>=12)]}function $e(m){return 1+~~(m.getMonth()/3)}function Pe(m){return i[m.getUTCDay()]}function Re(m){return o[m.getUTCDay()]}function ze(m){return f[m.getUTCMonth()]}function je(m){return a[m.getUTCMonth()]}function Ze(m){return u[+(m.getUTCHours()>=12)]}function qe(m){return 1+~~(m.getUTCMonth()/3)}return{format:function(m){var M=y(m+="",N);return M.toString=function(){return m},M},parse:function(m){var M=D(m+="",!1);return M.toString=function(){return m},M},utcFormat:function(m){var M=y(m+="",x);return M.toString=function(){return m},M},utcParse:function(m){var M=D(m+="",!0);return M.toString=function(){return m},M}}}var ae={"-":"",_:" ",0:"0"},F=/^\s*\d+/,Br=/^%/,Xr=/[\\^$*+?|[\]().{}]/g;function p(n,e,r){var t=n<0?"-":"",u=(t?-n:n)+"",o=u.length;return t+(o<r?new Array(r-o+1).join(e)+u:u)}function Gr(n){return n.replace(Xr,"\\$&")}function sn(n){return new RegExp("^(?:"+n.map(Gr).join("|")+")","i")}function ln(n){return new Map(n.map((e,r)=>[e.toLowerCase(),r]))}function Jr(n,e,r){var t=F.exec(e.slice(r,r+1));return t?(n.w=+t[0],r+t[0].length):-1}function Kr(n,e,r){var t=F.exec(e.slice(r,r+1));return t?(n.u=+t[0],r+t[0].length):-1}function nt(n,e,r){var t=F.exec(e.slice(r,r+2));return t?(n.U=+t[0],r+t[0].length):-1}function et(n,e,r){var t=F.exec(e.slice(r,r+2));return t?(n.V=+t[0],r+t[0].length):-1}function rt(n,e,r){var t=F.exec(e.slice(r,r+2));return t?(n.W=+t[0],r+t[0].length):-1}function ce(n,e,r){var t=F.exec(e.slice(r,r+4));return t?(n.y=+t[0],r+t[0].length):-1}function fe(n,e,r){var t=F.exec(e.slice(r,r+2));return t?(n.y=+t[0]+(+t[0]>68?1900:2e3),r+t[0].length):-1}function tt(n,e,r){var t=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return t?(n.Z=t[1]?0:-(t[2]+(t[3]||"00")),r+t[0].length):-1}function ut(n,e,r){var t=F.exec(e.slice(r,r+1));return t?(n.q=t[0]*3-3,r+t[0].length):-1}function ot(n,e,r){var t=F.exec(e.slice(r,r+2));return t?(n.m=t[0]-1,r+t[0].length):-1}function se(n,e,r){var t=F.exec(e.slice(r,r+2));return t?(n.d=+t[0],r+t[0].length):-1}function it(n,e,r){var t=F.exec(e.slice(r,r+3));return t?(n.m=0,n.d=+t[0],r+t[0].length):-1}function le(n,e,r){var t=F.exec(e.slice(r,r+2));return t?(n.H=+t[0],r+t[0].length):-1}function at(n,e,r){var t=F.exec(e.slice(r,r+2));return t?(n.M=+t[0],r+t[0].length):-1}function ct(n,e,r){var t=F.exec(e.slice(r,r+2));return t?(n.S=+t[0],r+t[0].length):-1}function ft(n,e,r){var t=F.exec(e.slice(r,r+3));return t?(n.L=+t[0],r+t[0].length):-1}function st(n,e,r){var t=F.exec(e.slice(r,r+6));return t?(n.L=Math.floor(t[0]/1e3),r+t[0].length):-1}function lt(n,e,r){var t=Br.exec(e.slice(r,r+1));return t?r+t[0].length:-1}function gt(n,e,r){var t=F.exec(e.slice(r));return t?(n.Q=+t[0],r+t[0].length):-1}function ht(n,e,r){var t=F.exec(e.slice(r));return t?(n.s=+t[0],r+t[0].length):-1}function ge(n,e){return p(n.getDate(),e,2)}function mt(n,e){return p(n.getHours(),e,2)}function yt(n,e){return p(n.getHours()%12||12,e,2)}function Mt(n,e){return p(1+gn.count(_(n),n),e,3)}function xe(n,e){return p(n.getMilliseconds(),e,3)}function dt(n,e){return xe(n,e)+"000"}function Tt(n,e){return p(n.getMonth()+1,e,2)}function pt(n,e){return p(n.getMinutes(),e,2)}function wt(n,e){return p(n.getSeconds(),e,2)}function vt(n){var e=n.getDay();return e===0?7:e}function Ct(n,e){return p(Sn.count(_(n)-1,n),e,2)}function Se(n){var e=n.getDay();return e>=4||e===0?an(n):an.ceil(n)}function Ut(n,e){return n=Se(n),p(an.count(_(n),n)+(_(n).getDay()===4),e,2)}function Dt(n){return n.getDay()}function xt(n,e){return p(Un.count(_(n)-1,n),e,2)}function St(n,e){return p(n.getFullYear()%100,e,2)}function kt(n,e){return n=Se(n),p(n.getFullYear()%100,e,2)}function Ft(n,e){return p(n.getFullYear()%1e4,e,4)}function Nt(n,e){var r=n.getDay();return n=r>=4||r===0?an(n):an.ceil(n),p(n.getFullYear()%1e4,e,4)}function Yt(n){var e=n.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+p(e/60|0,"0",2)+p(e%60,"0",2)}function he(n,e){return p(n.getUTCDate(),e,2)}function bt(n,e){return p(n.getUTCHours(),e,2)}function At(n,e){return p(n.getUTCHours()%12||12,e,2)}function Ht(n,e){return p(1+_n.count(B(n),n),e,3)}function ke(n,e){return p(n.getUTCMilliseconds(),e,3)}function Wt(n,e){return ke(n,e)+"000"}function Lt(n,e){return p(n.getUTCMonth()+1,e,2)}function It(n,e){return p(n.getUTCMinutes(),e,2)}function Ot(n,e){return p(n.getUTCSeconds(),e,2)}function $t(n){var e=n.getUTCDay();return e===0?7:e}function Pt(n,e){return p(De.count(B(n)-1,n),e,2)}function Fe(n){var e=n.getUTCDay();return e>=4||e===0?cn(n):cn.ceil(n)}function Rt(n,e){return n=Fe(n),p(cn.count(B(n),n)+(B(n).getUTCDay()===4),e,2)}function zt(n){return n.getUTCDay()}function jt(n,e){return p(Dn.count(B(n)-1,n),e,2)}function Zt(n,e){return p(n.getUTCFullYear()%100,e,2)}function qt(n,e){return n=Fe(n),p(n.getUTCFullYear()%100,e,2)}function _t(n,e){return p(n.getUTCFullYear()%1e4,e,4)}function Qt(n,e){var r=n.getUTCDay();return n=r>=4||r===0?cn(n):cn.ceil(n),p(n.getUTCFullYear()%1e4,e,4)}function Vt(){return"+0000"}function me(){return"%"}function ye(n){return+n}function Me(n){return Math.floor(+n/1e3)}var rn,Ne,Ye,be;Et({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Et(n){return rn=Er(n),Ne=rn.format,rn.parse,Ye=rn.utcFormat,be=rn.utcParse,rn}var Ae="%Y-%m-%dT%H:%M:%S.%LZ";function Bt(n){return n.toISOString()}Date.prototype.toISOString||Ye(Ae);function Xt(n){var e=new Date(n);return isNaN(e)?null:e}+new Date("2000-01-01T00:00:00.000Z")||be(Ae);function kn(n,e){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(e).domain(n);break}return this}const de=Symbol("implicit");function He(){var n=new Gn,e=[],r=[],t=de;function u(o){let i=n.get(o);if(i===void 0){if(t!==de)return t;n.set(o,i=e.push(o)-1)}return r[i%r.length]}return u.domain=function(o){if(!arguments.length)return e.slice();e=[],n=new Gn;for(const i of o)n.has(i)||n.set(i,e.push(i)-1);return u},u.range=function(o){return arguments.length?(r=Array.from(o),u):r.slice()},u.unknown=function(o){return arguments.length?(t=o,u):t},u.copy=function(){return He(e,r).unknown(t)},kn.apply(u,arguments),u}function Gt(){var n=He().unknown(void 0),e=n.domain,r=n.range,t=0,u=1,o,i,a=!1,f=0,c=0,h=.5;delete n.unknown;function g(){var l=e().length,w=u<t,v=w?u:t,U=w?t:u;o=(U-v)/Math.max(1,l-f+c*2),a&&(o=Math.floor(o)),v+=(U-v-o*(l-f))*h,i=o*(1-f),a&&(v=Math.round(v),i=Math.round(i));var S=tr(l).map(function(Y){return v+o*Y});return r(w?S.reverse():S)}return n.domain=function(l){return arguments.length?(e(l),g()):e()},n.range=function(l){return arguments.length?([t,u]=l,t=+t,u=+u,g()):[t,u]},n.rangeRound=function(l){return[t,u]=l,t=+t,u=+u,a=!0,g()},n.bandwidth=function(){return i},n.step=function(){return o},n.round=function(l){return arguments.length?(a=!!l,g()):a},n.padding=function(l){return arguments.length?(f=Math.min(1,c=+l),g()):f},n.paddingInner=function(l){return arguments.length?(f=Math.min(1,l),g()):f},n.paddingOuter=function(l){return arguments.length?(c=+l,g()):c},n.align=function(l){return arguments.length?(h=Math.max(0,Math.min(1,l)),g()):h},n.copy=function(){return Gt(e(),[t,u]).round(a).paddingInner(f).paddingOuter(c).align(h)},kn.apply(g(),arguments)}function Jt(n){return function(){return n}}function Kt(n){return+n}var Te=[0,1];function un(n){return n}function $n(n,e){return(e-=n=+n)?function(r){return(r-n)/e}:Jt(isNaN(e)?NaN:.5)}function nu(n,e){var r;return n>e&&(r=n,n=e,e=r),function(t){return Math.max(n,Math.min(e,t))}}function eu(n,e,r){var t=n[0],u=n[1],o=e[0],i=e[1];return u<t?(t=$n(u,t),o=r(i,o)):(t=$n(t,u),o=r(o,i)),function(a){return o(t(a))}}function ru(n,e,r){var t=Math.min(n.length,e.length)-1,u=new Array(t),o=new Array(t),i=-1;for(n[t]<n[0]&&(n=n.slice().reverse(),e=e.slice().reverse());++i<t;)u[i]=$n(n[i],n[i+1]),o[i]=r(e[i],e[i+1]);return function(a){var f=Be(n,a,1,t)-1;return o[f](u[f](a))}}function We(n,e){return e.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function tu(){var n=Te,e=Te,r=Rn,t,u,o,i=un,a,f,c;function h(){var l=Math.min(n.length,e.length);return i!==un&&(i=nu(n[0],n[l-1])),a=l>2?ru:eu,f=c=null,g}function g(l){return l==null||isNaN(l=+l)?o:(f||(f=a(n.map(t),e,r)))(t(i(l)))}return g.invert=function(l){return i(u((c||(c=a(e,n.map(t),Tn)))(l)))},g.domain=function(l){return arguments.length?(n=Array.from(l,Kt),h()):n.slice()},g.range=function(l){return arguments.length?(e=Array.from(l),h()):e.slice()},g.rangeRound=function(l){return e=Array.from(l),r=dr,h()},g.clamp=function(l){return arguments.length?(i=l?!0:un,h()):i!==un},g.interpolate=function(l){return arguments.length?(r=l,h()):r},g.unknown=function(l){return arguments.length?(o=l,g):o},function(l,w){return t=l,u=w,h()}}function Le(){return tu()(un,un)}function uu(n,e,r,t){var u=In(n,e,r),o;switch(t=wn(t??",f"),t.type){case"s":{var i=Math.max(Math.abs(n),Math.abs(e));return t.precision==null&&!isNaN(o=br(u,i))&&(t.precision=o),Ue(t,i)}case"":case"e":case"g":case"p":case"r":{t.precision==null&&!isNaN(o=Ar(u,Math.max(Math.abs(n),Math.abs(e))))&&(t.precision=o-(t.type==="e"));break}case"f":case"%":{t.precision==null&&!isNaN(o=Yr(u))&&(t.precision=o-(t.type==="%")*2);break}}return Ce(t)}function ou(n){var e=n.domain;return n.ticks=function(r){var t=e();return rr(t[0],t[t.length-1],r??10)},n.tickFormat=function(r,t){var u=e();return uu(u[0],u[u.length-1],r??10,t)},n.nice=function(r){r==null&&(r=10);var t=e(),u=0,o=t.length-1,i=t[u],a=t[o],f,c,h=10;for(a<i&&(c=i,i=a,a=c,c=u,u=o,o=c);h-- >0;){if(c=Ln(i,a,r),c===f)return t[u]=i,t[o]=a,e(t);if(c>0)i=Math.floor(i/c)*c,a=Math.ceil(a/c)*c;else if(c<0)i=Math.ceil(i*c)/c,a=Math.floor(a*c)/c;else break;f=c}return n},n}function iu(){var n=Le();return n.copy=function(){return We(n,iu())},kn.apply(n,arguments),ou(n)}function au(n,e){n=n.slice();var r=0,t=n.length-1,u=n[r],o=n[t],i;return o<u&&(i=r,r=t,t=i,i=u,u=o,o=i),n[r]=e.floor(u),n[t]=e.ceil(o),n}function cu(n){return new Date(n)}function fu(n){return n instanceof Date?+n:Math.round(n)}function Ie(n,e,r,t,u,o,i,a,f,c){var h=Le(),g=h.invert,l=h.domain,w=c(".%L"),v=c(":%S"),U=c("%I:%M"),S=c("%I %p"),Y=c("%a %d"),O=c("%b %d"),N=c("%B"),x=c("%Y");function L(y){return(f(y)<y?w:a(y)<y?v:i(y)<y?U:o(y)<y?S:t(y)<y?u(y)<y?Y:O:r(y)<y?N:x)(y)}return h.invert=function(y){return new Date(Math.round(g(y)))},h.domain=function(y){return arguments.length?l(Array.from(y,fu)):l().map(cu)},h.ticks=function(y){var D=l();return n(D[0],D[D.length-1],y??10)},h.tickFormat=function(y,D){return D==null?L:c(D)},h.nice=function(y){var D=l();return(!y||typeof y.range!="function")&&(y=e(D[0],D[D.length-1],y??10)),y?l(au(D,y)):h},h.copy=function(){return We(h,Ie(n,e,r,t,u,o,i,a,f,c))},h}function Mu(){return kn.apply(Ie(Qr,Vr,_,Qn,Sn,gn,qn,Zn,tn,Ne).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}export{Cn as a,Gt as b,yu as c,gu as d,gn as e,Ce as f,Ne as g,mu as h,$r as i,qn as j,Zn as k,iu as l,lu as m,Un as n,He as o,Qn as p,Pr as q,hu as r,tn as s,Mu as t,Sn as u,an as v,Ir as w,Or as x};
1
+ import{ac as En,w as Bn,aS as Wn,F as Xn}from"./Cp-LTiNq.js";function Mn(n,e){return n==null||e==null?NaN:n<e?-1:n>e?1:n>=e?0:NaN}function _e(n,e){return n==null||e==null?NaN:e<n?-1:e>n?1:e>=n?0:NaN}function Pn(n){let e,r,t;n.length!==2?(e=Mn,r=(a,f)=>Mn(n(a),f),t=(a,f)=>n(a)-f):(e=n===Mn||n===_e?n:Qe,r=n,t=n);function u(a,f,c=0,h=a.length){if(c<h){if(e(f,f)!==0)return h;do{const g=c+h>>>1;r(a[g],f)<0?c=g+1:h=g}while(c<h)}return c}function o(a,f,c=0,h=a.length){if(c<h){if(e(f,f)!==0)return h;do{const g=c+h>>>1;r(a[g],f)<=0?c=g+1:h=g}while(c<h)}return c}function i(a,f,c=0,h=a.length){const g=u(a,f,c,h-1);return g>c&&t(a[g-1],f)>-t(a[g],f)?g-1:g}return{left:u,center:i,right:o}}function Qe(){return 0}function Ve(n){return n===null?NaN:+n}const Ee=Pn(Mn),Be=Ee.right;Pn(Ve).center;class Gn extends Map{constructor(e,r=Je){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[t,u]of e)this.set(t,u)}get(e){return super.get(Jn(this,e))}has(e){return super.has(Jn(this,e))}set(e,r){return super.set(Xe(this,e),r)}delete(e){return super.delete(Ge(this,e))}}function Jn({_intern:n,_key:e},r){const t=e(r);return n.has(t)?n.get(t):r}function Xe({_intern:n,_key:e},r){const t=e(r);return n.has(t)?n.get(t):(n.set(t,r),r)}function Ge({_intern:n,_key:e},r){const t=e(r);return n.has(t)&&(r=n.get(t),n.delete(t)),r}function Je(n){return n!==null&&typeof n=="object"?n.valueOf():n}const Ke=Math.sqrt(50),nr=Math.sqrt(10),er=Math.sqrt(2);function dn(n,e,r){const t=(e-n)/Math.max(0,r),u=Math.floor(Math.log10(t)),o=t/Math.pow(10,u),i=o>=Ke?10:o>=nr?5:o>=er?2:1;let a,f,c;return u<0?(c=Math.pow(10,-u)/i,a=Math.round(n*c),f=Math.round(e*c),a/c<n&&++a,f/c>e&&--f,c=-c):(c=Math.pow(10,u)*i,a=Math.round(n/c),f=Math.round(e/c),a*c<n&&++a,f*c>e&&--f),f<a&&.5<=r&&r<2?dn(n,e,r*2):[a,f,c]}function rr(n,e,r){if(e=+e,n=+n,r=+r,!(r>0))return[];if(n===e)return[n];const t=e<n,[u,o,i]=t?dn(e,n,r):dn(n,e,r);if(!(o>=u))return[];const a=o-u+1,f=new Array(a);if(t)if(i<0)for(let c=0;c<a;++c)f[c]=(o-c)/-i;else for(let c=0;c<a;++c)f[c]=(o-c)*i;else if(i<0)for(let c=0;c<a;++c)f[c]=(u+c)/-i;else for(let c=0;c<a;++c)f[c]=(u+c)*i;return f}function Ln(n,e,r){return e=+e,n=+n,r=+r,dn(n,e,r)[2]}function In(n,e,r){e=+e,n=+n,r=+r;const t=e<n,u=t?Ln(e,n,r):Ln(n,e,r);return(t?-1:1)*(u<0?1/-u:u)}function lu(n,e){let r;if(e===void 0)for(const t of n)t!=null&&(r<t||r===void 0&&t>=t)&&(r=t);else{let t=-1;for(let u of n)(u=e(u,++t,n))!=null&&(r<u||r===void 0&&u>=u)&&(r=u)}return r}function gu(n,e){let r;if(e===void 0)for(const t of n)t!=null&&(r>t||r===void 0&&t>=t)&&(r=t);else{let t=-1;for(let u of n)(u=e(u,++t,n))!=null&&(r>u||r===void 0&&u>=u)&&(r=u)}return r}function tr(n,e,r){n=+n,e=+e,r=(u=arguments.length)<2?(e=n,n=0,1):u<3?1:+r;for(var t=-1,u=Math.max(0,Math.ceil((e-n)/r))|0,o=new Array(u);++t<u;)o[t]=n+t*r;return o}function ur(n,e,r,t,u){var o=n*n,i=o*n;return((1-3*n+3*o-i)*e+(4-6*o+3*i)*r+(1+3*n+3*o-3*i)*t+i*u)/6}function or(n){var e=n.length-1;return function(r){var t=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),u=n[t],o=n[t+1],i=t>0?n[t-1]:2*u-o,a=t<e-1?n[t+2]:2*o-u;return ur((r-t/e)*e,i,u,o,a)}}var xn=n=>()=>n;function pe(n,e){return function(r){return n+r*e}}function ir(n,e,r){return n=Math.pow(n,r),e=Math.pow(e,r)-n,r=1/r,function(t){return Math.pow(n+t*e,r)}}function we(n,e){var r=e-n;return r?pe(n,r>180||r<-180?r-360*Math.round(r/360):r):xn(isNaN(n)?e:n)}function ar(n){return(n=+n)==1?Z:function(e,r){return r-e?ir(e,r,n):xn(isNaN(e)?r:e)}}function Z(n,e){var r=e-n;return r?pe(n,r):xn(isNaN(n)?e:n)}var Kn=(function n(e){var r=ar(e);function t(u,o){var i=r((u=Wn(u)).r,(o=Wn(o)).r),a=r(u.g,o.g),f=r(u.b,o.b),c=Z(u.opacity,o.opacity);return function(h){return u.r=i(h),u.g=a(h),u.b=f(h),u.opacity=c(h),u+""}}return t.gamma=n,t})(1);function cr(n){return function(e){var r=e.length,t=new Array(r),u=new Array(r),o=new Array(r),i,a;for(i=0;i<r;++i)a=Wn(e[i]),t[i]=a.r||0,u[i]=a.g||0,o[i]=a.b||0;return t=n(t),u=n(u),o=n(o),a.opacity=1,function(f){return a.r=t(f),a.g=u(f),a.b=o(f),a+""}}}var hu=cr(or);function fr(n,e){e||(e=[]);var r=n?Math.min(e.length,n.length):0,t=e.slice(),u;return function(o){for(u=0;u<r;++u)t[u]=n[u]*(1-o)+e[u]*o;return t}}function sr(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function lr(n,e){var r=e?e.length:0,t=n?Math.min(r,n.length):0,u=new Array(t),o=new Array(r),i;for(i=0;i<t;++i)u[i]=Rn(n[i],e[i]);for(;i<r;++i)o[i]=e[i];return function(a){for(i=0;i<t;++i)o[i]=u[i](a);return o}}function gr(n,e){var r=new Date;return n=+n,e=+e,function(t){return r.setTime(n*(1-t)+e*t),r}}function Tn(n,e){return n=+n,e=+e,function(r){return n*(1-r)+e*r}}function hr(n,e){var r={},t={},u;(n===null||typeof n!="object")&&(n={}),(e===null||typeof e!="object")&&(e={});for(u in e)u in n?r[u]=Rn(n[u],e[u]):t[u]=e[u];return function(o){for(u in r)t[u]=r[u](o);return t}}var On=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Fn=new RegExp(On.source,"g");function mr(n){return function(){return n}}function yr(n){return function(e){return n(e)+""}}function Mr(n,e){var r=On.lastIndex=Fn.lastIndex=0,t,u,o,i=-1,a=[],f=[];for(n=n+"",e=e+"";(t=On.exec(n))&&(u=Fn.exec(e));)(o=u.index)>r&&(o=e.slice(r,o),a[i]?a[i]+=o:a[++i]=o),(t=t[0])===(u=u[0])?a[i]?a[i]+=u:a[++i]=u:(a[++i]=null,f.push({i,x:Tn(t,u)})),r=Fn.lastIndex;return r<e.length&&(o=e.slice(r),a[i]?a[i]+=o:a[++i]=o),a.length<2?f[0]?yr(f[0].x):mr(e):(e=f.length,function(c){for(var h=0,g;h<e;++h)a[(g=f[h]).i]=g.x(c);return a.join("")})}function Rn(n,e){var r=typeof e,t;return e==null||r==="boolean"?xn(e):(r==="number"?Tn:r==="string"?(t=Bn(e))?(e=t,Kn):Mr:e instanceof Bn?Kn:e instanceof Date?gr:sr(e)?fr:Array.isArray(e)?lr:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?hr:Tn)(n,e)}function dr(n,e){return n=+n,e=+e,function(r){return Math.round(n*(1-r)+e*r)}}var Tr=1e-12;function ne(n){return((n=Math.exp(n))+1/n)/2}function pr(n){return((n=Math.exp(n))-1/n)/2}function wr(n){return((n=Math.exp(2*n))-1)/(n+1)}(function n(e,r,t){function u(o,i){var a=o[0],f=o[1],c=o[2],h=i[0],g=i[1],l=i[2],w=h-a,v=g-f,U=w*w+v*v,S,Y;if(U<Tr)Y=Math.log(l/c)/e,S=function(D){return[a+D*w,f+D*v,c*Math.exp(e*D*Y)]};else{var O=Math.sqrt(U),N=(l*l-c*c+t*U)/(2*c*r*O),x=(l*l-c*c-t*U)/(2*l*r*O),L=Math.log(Math.sqrt(N*N+1)-N),y=Math.log(Math.sqrt(x*x+1)-x);Y=(y-L)/e,S=function(D){var P=D*Y,V=ne(L),J=c/(r*O)*(V*wr(e*P+L)-pr(L));return[a+J*w,f+J*v,c*V/ne(e*P+L)]}}return S.duration=Math.abs(Y)*1e3*e/Math.SQRT2,S}return u.rho=function(o){var i=Math.max(.001,+o),a=i*i,f=a*a;return n(i,a,f)},u})(Math.SQRT2,2,4);function vr(n){return function(e,r){var t=n((e=En(e)).h,(r=En(r)).h),u=Z(e.c,r.c),o=Z(e.l,r.l),i=Z(e.opacity,r.opacity);return function(a){return e.h=t(a),e.c=u(a),e.l=o(a),e.opacity=i(a),e+""}}}var mu=vr(we);function ve(n){return(function e(r){r=+r;function t(u,o){var i=n((u=Xn(u)).h,(o=Xn(o)).h),a=Z(u.s,o.s),f=Z(u.l,o.l),c=Z(u.opacity,o.opacity);return function(h){return u.h=i(h),u.s=a(h),u.l=f(Math.pow(h,r)),u.opacity=c(h),u+""}}return t.gamma=e,t})(1)}ve(we);var yu=ve(Z);function Cr(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function pn(n,e){if(!isFinite(n)||n===0)return null;var r=(n=e?n.toExponential(e-1):n.toExponential()).indexOf("e"),t=n.slice(0,r);return[t.length>1?t[0]+t.slice(2):t,+n.slice(r+1)]}function on(n){return n=pn(Math.abs(n)),n?n[1]:NaN}function Ur(n,e){return function(r,t){for(var u=r.length,o=[],i=0,a=n[0],f=0;u>0&&a>0&&(f+a+1>t&&(a=Math.max(1,t-f)),o.push(r.substring(u-=a,u+a)),!((f+=a+1)>t));)a=n[i=(i+1)%n.length];return o.reverse().join(e)}}function Dr(n){return function(e){return e.replace(/[0-9]/g,function(r){return n[+r]})}}var xr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function wn(n){if(!(e=xr.exec(n)))throw new Error("invalid format: "+n);var e;return new zn({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}wn.prototype=zn.prototype;function zn(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}zn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Sr(n){n:for(var e=n.length,r=1,t=-1,u;r<e;++r)switch(n[r]){case".":t=u=r;break;case"0":t===0&&(t=r),u=r;break;default:if(!+n[r])break n;t>0&&(t=0);break}return t>0?n.slice(0,t)+n.slice(u+1):n}var vn;function kr(n,e){var r=pn(n,e);if(!r)return vn=void 0,n.toPrecision(e);var t=r[0],u=r[1],o=u-(vn=Math.max(-8,Math.min(8,Math.floor(u/3)))*3)+1,i=t.length;return o===i?t:o>i?t+new Array(o-i+1).join("0"):o>0?t.slice(0,o)+"."+t.slice(o):"0."+new Array(1-o).join("0")+pn(n,Math.max(0,e+o-1))[0]}function ee(n,e){var r=pn(n,e);if(!r)return n+"";var t=r[0],u=r[1];return u<0?"0."+new Array(-u).join("0")+t:t.length>u+1?t.slice(0,u+1)+"."+t.slice(u+1):t+new Array(u-t.length+2).join("0")}var re={"%":(n,e)=>(n*100).toFixed(e),b:n=>Math.round(n).toString(2),c:n=>n+"",d:Cr,e:(n,e)=>n.toExponential(e),f:(n,e)=>n.toFixed(e),g:(n,e)=>n.toPrecision(e),o:n=>Math.round(n).toString(8),p:(n,e)=>ee(n*100,e),r:ee,s:kr,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function te(n){return n}var ue=Array.prototype.map,oe=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Fr(n){var e=n.grouping===void 0||n.thousands===void 0?te:Ur(ue.call(n.grouping,Number),n.thousands+""),r=n.currency===void 0?"":n.currency[0]+"",t=n.currency===void 0?"":n.currency[1]+"",u=n.decimal===void 0?".":n.decimal+"",o=n.numerals===void 0?te:Dr(ue.call(n.numerals,String)),i=n.percent===void 0?"%":n.percent+"",a=n.minus===void 0?"−":n.minus+"",f=n.nan===void 0?"NaN":n.nan+"";function c(g,l){g=wn(g);var w=g.fill,v=g.align,U=g.sign,S=g.symbol,Y=g.zero,O=g.width,N=g.comma,x=g.precision,L=g.trim,y=g.type;y==="n"?(N=!0,y="g"):re[y]||(x===void 0&&(x=12),L=!0,y="g"),(Y||w==="0"&&v==="=")&&(Y=!0,w="0",v="=");var D=(l&&l.prefix!==void 0?l.prefix:"")+(S==="$"?r:S==="#"&&/[boxX]/.test(y)?"0"+y.toLowerCase():""),P=(S==="$"?t:/[%p]/.test(y)?i:"")+(l&&l.suffix!==void 0?l.suffix:""),V=re[y],J=/[defgprs%]/.test(y);x=x===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function hn(d){var R=D,b=P,Q,mn,K;if(y==="c")b=V(d)+b,d="";else{d=+d;var nn=d<0||1/d<0;if(d=isNaN(d)?f:V(Math.abs(d),x),L&&(d=Sr(d)),nn&&+d==0&&U!=="+"&&(nn=!1),R=(nn?U==="("?U:a:U==="-"||U==="("?"":U)+R,b=(y==="s"&&!isNaN(d)&&vn!==void 0?oe[8+vn/3]:"")+b+(nn&&U==="("?")":""),J){for(Q=-1,mn=d.length;++Q<mn;)if(K=d.charCodeAt(Q),48>K||K>57){b=(K===46?u+d.slice(Q+1):d.slice(Q))+b,d=d.slice(0,Q);break}}}N&&!Y&&(d=e(d,1/0));var en=R.length+d.length+b.length,$=en<O?new Array(O-en+1).join(w):"";switch(N&&Y&&(d=e($+d,$.length?O-b.length:1/0),$=""),v){case"<":d=R+d+b+$;break;case"=":d=R+$+d+b;break;case"^":d=$.slice(0,en=$.length>>1)+R+d+b+$.slice(en);break;default:d=$+R+d+b;break}return o(d)}return hn.toString=function(){return g+""},hn}function h(g,l){var w=Math.max(-8,Math.min(8,Math.floor(on(l)/3)))*3,v=Math.pow(10,-w),U=c((g=wn(g),g.type="f",g),{suffix:oe[8+w/3]});return function(S){return U(v*S)}}return{format:c,formatPrefix:h}}var yn,Ce,Ue;Nr({thousands:",",grouping:[3],currency:["$",""]});function Nr(n){return yn=Fr(n),Ce=yn.format,Ue=yn.formatPrefix,yn}function Yr(n){return Math.max(0,-on(Math.abs(n)))}function br(n,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(on(e)/3)))*3-on(Math.abs(n)))}function Ar(n,e){return n=Math.abs(n),e=Math.abs(e)-n,Math.max(0,on(e)-on(n))+1}const Nn=new Date,Yn=new Date;function k(n,e,r,t){function u(o){return n(o=arguments.length===0?new Date:new Date(+o)),o}return u.floor=o=>(n(o=new Date(+o)),o),u.ceil=o=>(n(o=new Date(o-1)),e(o,1),n(o),o),u.round=o=>{const i=u(o),a=u.ceil(o);return o-i<a-o?i:a},u.offset=(o,i)=>(e(o=new Date(+o),i==null?1:Math.floor(i)),o),u.range=(o,i,a)=>{const f=[];if(o=u.ceil(o),a=a==null?1:Math.floor(a),!(o<i)||!(a>0))return f;let c;do f.push(c=new Date(+o)),e(o,a),n(o);while(c<o&&o<i);return f},u.filter=o=>k(i=>{if(i>=i)for(;n(i),!o(i);)i.setTime(i-1)},(i,a)=>{if(i>=i)if(a<0)for(;++a<=0;)for(;e(i,-1),!o(i););else for(;--a>=0;)for(;e(i,1),!o(i););}),r&&(u.count=(o,i)=>(Nn.setTime(+o),Yn.setTime(+i),n(Nn),n(Yn),Math.floor(r(Nn,Yn))),u.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?u.filter(t?i=>t(i)%o===0:i=>u.count(0,i)%o===0):u)),u}const Cn=k(()=>{},(n,e)=>{n.setTime(+n+e)},(n,e)=>e-n);Cn.every=n=>(n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?k(e=>{e.setTime(Math.floor(e/n)*n)},(e,r)=>{e.setTime(+e+r*n)},(e,r)=>(r-e)/n):Cn);Cn.range;const z=1e3,I=z*60,j=I*60,q=j*24,jn=q*7,ie=q*30,bn=q*365,tn=k(n=>{n.setTime(n-n.getMilliseconds())},(n,e)=>{n.setTime(+n+e*z)},(n,e)=>(e-n)/z,n=>n.getUTCSeconds());tn.range;const Zn=k(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*z)},(n,e)=>{n.setTime(+n+e*I)},(n,e)=>(e-n)/I,n=>n.getMinutes());Zn.range;const Hr=k(n=>{n.setUTCSeconds(0,0)},(n,e)=>{n.setTime(+n+e*I)},(n,e)=>(e-n)/I,n=>n.getUTCMinutes());Hr.range;const qn=k(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*z-n.getMinutes()*I)},(n,e)=>{n.setTime(+n+e*j)},(n,e)=>(e-n)/j,n=>n.getHours());qn.range;const Wr=k(n=>{n.setUTCMinutes(0,0,0)},(n,e)=>{n.setTime(+n+e*j)},(n,e)=>(e-n)/j,n=>n.getUTCHours());Wr.range;const gn=k(n=>n.setHours(0,0,0,0),(n,e)=>n.setDate(n.getDate()+e),(n,e)=>(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*I)/q,n=>n.getDate()-1);gn.range;const _n=k(n=>{n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCDate(n.getUTCDate()+e)},(n,e)=>(e-n)/q,n=>n.getUTCDate()-1);_n.range;const Lr=k(n=>{n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCDate(n.getUTCDate()+e)},(n,e)=>(e-n)/q,n=>Math.floor(n/q));Lr.range;function X(n){return k(e=>{e.setDate(e.getDate()-(e.getDay()+7-n)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*I)/jn)}const Sn=X(0),Un=X(1),Ir=X(2),Or=X(3),an=X(4),$r=X(5),Pr=X(6);Sn.range;Un.range;Ir.range;Or.range;an.range;$r.range;Pr.range;function G(n){return k(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-n)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/jn)}const De=G(0),Dn=G(1),Rr=G(2),zr=G(3),cn=G(4),jr=G(5),Zr=G(6);De.range;Dn.range;Rr.range;zr.range;cn.range;jr.range;Zr.range;const Qn=k(n=>{n.setDate(1),n.setHours(0,0,0,0)},(n,e)=>{n.setMonth(n.getMonth()+e)},(n,e)=>e.getMonth()-n.getMonth()+(e.getFullYear()-n.getFullYear())*12,n=>n.getMonth());Qn.range;const qr=k(n=>{n.setUTCDate(1),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCMonth(n.getUTCMonth()+e)},(n,e)=>e.getUTCMonth()-n.getUTCMonth()+(e.getUTCFullYear()-n.getUTCFullYear())*12,n=>n.getUTCMonth());qr.range;const _=k(n=>{n.setMonth(0,1),n.setHours(0,0,0,0)},(n,e)=>{n.setFullYear(n.getFullYear()+e)},(n,e)=>e.getFullYear()-n.getFullYear(),n=>n.getFullYear());_.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:k(e=>{e.setFullYear(Math.floor(e.getFullYear()/n)*n),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*n)});_.range;const B=k(n=>{n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCFullYear(n.getUTCFullYear()+e)},(n,e)=>e.getUTCFullYear()-n.getUTCFullYear(),n=>n.getUTCFullYear());B.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:k(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/n)*n),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*n)});B.range;function _r(n,e,r,t,u,o){const i=[[tn,1,z],[tn,5,5*z],[tn,15,15*z],[tn,30,30*z],[o,1,I],[o,5,5*I],[o,15,15*I],[o,30,30*I],[u,1,j],[u,3,3*j],[u,6,6*j],[u,12,12*j],[t,1,q],[t,2,2*q],[r,1,jn],[e,1,ie],[e,3,3*ie],[n,1,bn]];function a(c,h,g){const l=h<c;l&&([c,h]=[h,c]);const w=g&&typeof g.range=="function"?g:f(c,h,g),v=w?w.range(c,+h+1):[];return l?v.reverse():v}function f(c,h,g){const l=Math.abs(h-c)/g,w=Pn(([,,S])=>S).right(i,l);if(w===i.length)return n.every(In(c/bn,h/bn,g));if(w===0)return Cn.every(Math.max(In(c,h,g),1));const[v,U]=i[l/i[w-1][2]<i[w][2]/l?w-1:w];return v.every(U)}return[a,f]}const[Qr,Vr]=_r(_,Qn,Sn,gn,qn,Zn);function An(n){if(0<=n.y&&n.y<100){var e=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return e.setFullYear(n.y),e}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function Hn(n){if(0<=n.y&&n.y<100){var e=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return e.setUTCFullYear(n.y),e}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function fn(n,e,r){return{y:n,m:e,d:r,H:0,M:0,S:0,L:0}}function Er(n){var e=n.dateTime,r=n.date,t=n.time,u=n.periods,o=n.days,i=n.shortDays,a=n.months,f=n.shortMonths,c=sn(u),h=ln(u),g=sn(o),l=ln(o),w=sn(i),v=ln(i),U=sn(a),S=ln(a),Y=sn(f),O=ln(f),N={a:K,A:nn,b:en,B:$,c:null,d:ge,e:ge,f:dt,g:kt,G:Nt,H:mt,I:yt,j:Mt,L:xe,m:Tt,M:pt,p:Oe,q:$e,Q:ye,s:Me,S:wt,u:vt,U:Ct,V:Ut,w:Dt,W:xt,x:null,X:null,y:St,Y:Ft,Z:Yt,"%":me},x={a:Pe,A:Re,b:ze,B:je,c:null,d:he,e:he,f:Wt,g:qt,G:Qt,H:bt,I:At,j:Ht,L:ke,m:Lt,M:It,p:Ze,q:qe,Q:ye,s:Me,S:Ot,u:$t,U:Pt,V:Rt,w:zt,W:jt,x:null,X:null,y:Zt,Y:_t,Z:Vt,"%":me},L={a:J,A:hn,b:d,B:R,c:b,d:se,e:se,f:st,g:fe,G:ce,H:le,I:le,j:it,L:ft,m:ot,M:at,p:V,q:ut,Q:gt,s:ht,S:ct,u:Kr,U:nt,V:et,w:Jr,W:rt,x:Q,X:mn,y:fe,Y:ce,Z:tt,"%":lt};N.x=y(r,N),N.X=y(t,N),N.c=y(e,N),x.x=y(r,x),x.X=y(t,x),x.c=y(e,x);function y(m,M){return function(T){var s=[],A=-1,C=0,H=m.length,W,E,Vn;for(T instanceof Date||(T=new Date(+T));++A<H;)m.charCodeAt(A)===37&&(s.push(m.slice(C,A)),(E=ae[W=m.charAt(++A)])!=null?W=m.charAt(++A):E=W==="e"?" ":"0",(Vn=M[W])&&(W=Vn(T,E)),s.push(W),C=A+1);return s.push(m.slice(C,A)),s.join("")}}function D(m,M){return function(T){var s=fn(1900,void 0,1),A=P(s,m,T+="",0),C,H;if(A!=T.length)return null;if("Q"in s)return new Date(s.Q);if("s"in s)return new Date(s.s*1e3+("L"in s?s.L:0));if(M&&!("Z"in s)&&(s.Z=0),"p"in s&&(s.H=s.H%12+s.p*12),s.m===void 0&&(s.m="q"in s?s.q:0),"V"in s){if(s.V<1||s.V>53)return null;"w"in s||(s.w=1),"Z"in s?(C=Hn(fn(s.y,0,1)),H=C.getUTCDay(),C=H>4||H===0?Dn.ceil(C):Dn(C),C=_n.offset(C,(s.V-1)*7),s.y=C.getUTCFullYear(),s.m=C.getUTCMonth(),s.d=C.getUTCDate()+(s.w+6)%7):(C=An(fn(s.y,0,1)),H=C.getDay(),C=H>4||H===0?Un.ceil(C):Un(C),C=gn.offset(C,(s.V-1)*7),s.y=C.getFullYear(),s.m=C.getMonth(),s.d=C.getDate()+(s.w+6)%7)}else("W"in s||"U"in s)&&("w"in s||(s.w="u"in s?s.u%7:"W"in s?1:0),H="Z"in s?Hn(fn(s.y,0,1)).getUTCDay():An(fn(s.y,0,1)).getDay(),s.m=0,s.d="W"in s?(s.w+6)%7+s.W*7-(H+5)%7:s.w+s.U*7-(H+6)%7);return"Z"in s?(s.H+=s.Z/100|0,s.M+=s.Z%100,Hn(s)):An(s)}}function P(m,M,T,s){for(var A=0,C=M.length,H=T.length,W,E;A<C;){if(s>=H)return-1;if(W=M.charCodeAt(A++),W===37){if(W=M.charAt(A++),E=L[W in ae?M.charAt(A++):W],!E||(s=E(m,T,s))<0)return-1}else if(W!=T.charCodeAt(s++))return-1}return s}function V(m,M,T){var s=c.exec(M.slice(T));return s?(m.p=h.get(s[0].toLowerCase()),T+s[0].length):-1}function J(m,M,T){var s=w.exec(M.slice(T));return s?(m.w=v.get(s[0].toLowerCase()),T+s[0].length):-1}function hn(m,M,T){var s=g.exec(M.slice(T));return s?(m.w=l.get(s[0].toLowerCase()),T+s[0].length):-1}function d(m,M,T){var s=Y.exec(M.slice(T));return s?(m.m=O.get(s[0].toLowerCase()),T+s[0].length):-1}function R(m,M,T){var s=U.exec(M.slice(T));return s?(m.m=S.get(s[0].toLowerCase()),T+s[0].length):-1}function b(m,M,T){return P(m,e,M,T)}function Q(m,M,T){return P(m,r,M,T)}function mn(m,M,T){return P(m,t,M,T)}function K(m){return i[m.getDay()]}function nn(m){return o[m.getDay()]}function en(m){return f[m.getMonth()]}function $(m){return a[m.getMonth()]}function Oe(m){return u[+(m.getHours()>=12)]}function $e(m){return 1+~~(m.getMonth()/3)}function Pe(m){return i[m.getUTCDay()]}function Re(m){return o[m.getUTCDay()]}function ze(m){return f[m.getUTCMonth()]}function je(m){return a[m.getUTCMonth()]}function Ze(m){return u[+(m.getUTCHours()>=12)]}function qe(m){return 1+~~(m.getUTCMonth()/3)}return{format:function(m){var M=y(m+="",N);return M.toString=function(){return m},M},parse:function(m){var M=D(m+="",!1);return M.toString=function(){return m},M},utcFormat:function(m){var M=y(m+="",x);return M.toString=function(){return m},M},utcParse:function(m){var M=D(m+="",!0);return M.toString=function(){return m},M}}}var ae={"-":"",_:" ",0:"0"},F=/^\s*\d+/,Br=/^%/,Xr=/[\\^$*+?|[\]().{}]/g;function p(n,e,r){var t=n<0?"-":"",u=(t?-n:n)+"",o=u.length;return t+(o<r?new Array(r-o+1).join(e)+u:u)}function Gr(n){return n.replace(Xr,"\\$&")}function sn(n){return new RegExp("^(?:"+n.map(Gr).join("|")+")","i")}function ln(n){return new Map(n.map((e,r)=>[e.toLowerCase(),r]))}function Jr(n,e,r){var t=F.exec(e.slice(r,r+1));return t?(n.w=+t[0],r+t[0].length):-1}function Kr(n,e,r){var t=F.exec(e.slice(r,r+1));return t?(n.u=+t[0],r+t[0].length):-1}function nt(n,e,r){var t=F.exec(e.slice(r,r+2));return t?(n.U=+t[0],r+t[0].length):-1}function et(n,e,r){var t=F.exec(e.slice(r,r+2));return t?(n.V=+t[0],r+t[0].length):-1}function rt(n,e,r){var t=F.exec(e.slice(r,r+2));return t?(n.W=+t[0],r+t[0].length):-1}function ce(n,e,r){var t=F.exec(e.slice(r,r+4));return t?(n.y=+t[0],r+t[0].length):-1}function fe(n,e,r){var t=F.exec(e.slice(r,r+2));return t?(n.y=+t[0]+(+t[0]>68?1900:2e3),r+t[0].length):-1}function tt(n,e,r){var t=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return t?(n.Z=t[1]?0:-(t[2]+(t[3]||"00")),r+t[0].length):-1}function ut(n,e,r){var t=F.exec(e.slice(r,r+1));return t?(n.q=t[0]*3-3,r+t[0].length):-1}function ot(n,e,r){var t=F.exec(e.slice(r,r+2));return t?(n.m=t[0]-1,r+t[0].length):-1}function se(n,e,r){var t=F.exec(e.slice(r,r+2));return t?(n.d=+t[0],r+t[0].length):-1}function it(n,e,r){var t=F.exec(e.slice(r,r+3));return t?(n.m=0,n.d=+t[0],r+t[0].length):-1}function le(n,e,r){var t=F.exec(e.slice(r,r+2));return t?(n.H=+t[0],r+t[0].length):-1}function at(n,e,r){var t=F.exec(e.slice(r,r+2));return t?(n.M=+t[0],r+t[0].length):-1}function ct(n,e,r){var t=F.exec(e.slice(r,r+2));return t?(n.S=+t[0],r+t[0].length):-1}function ft(n,e,r){var t=F.exec(e.slice(r,r+3));return t?(n.L=+t[0],r+t[0].length):-1}function st(n,e,r){var t=F.exec(e.slice(r,r+6));return t?(n.L=Math.floor(t[0]/1e3),r+t[0].length):-1}function lt(n,e,r){var t=Br.exec(e.slice(r,r+1));return t?r+t[0].length:-1}function gt(n,e,r){var t=F.exec(e.slice(r));return t?(n.Q=+t[0],r+t[0].length):-1}function ht(n,e,r){var t=F.exec(e.slice(r));return t?(n.s=+t[0],r+t[0].length):-1}function ge(n,e){return p(n.getDate(),e,2)}function mt(n,e){return p(n.getHours(),e,2)}function yt(n,e){return p(n.getHours()%12||12,e,2)}function Mt(n,e){return p(1+gn.count(_(n),n),e,3)}function xe(n,e){return p(n.getMilliseconds(),e,3)}function dt(n,e){return xe(n,e)+"000"}function Tt(n,e){return p(n.getMonth()+1,e,2)}function pt(n,e){return p(n.getMinutes(),e,2)}function wt(n,e){return p(n.getSeconds(),e,2)}function vt(n){var e=n.getDay();return e===0?7:e}function Ct(n,e){return p(Sn.count(_(n)-1,n),e,2)}function Se(n){var e=n.getDay();return e>=4||e===0?an(n):an.ceil(n)}function Ut(n,e){return n=Se(n),p(an.count(_(n),n)+(_(n).getDay()===4),e,2)}function Dt(n){return n.getDay()}function xt(n,e){return p(Un.count(_(n)-1,n),e,2)}function St(n,e){return p(n.getFullYear()%100,e,2)}function kt(n,e){return n=Se(n),p(n.getFullYear()%100,e,2)}function Ft(n,e){return p(n.getFullYear()%1e4,e,4)}function Nt(n,e){var r=n.getDay();return n=r>=4||r===0?an(n):an.ceil(n),p(n.getFullYear()%1e4,e,4)}function Yt(n){var e=n.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+p(e/60|0,"0",2)+p(e%60,"0",2)}function he(n,e){return p(n.getUTCDate(),e,2)}function bt(n,e){return p(n.getUTCHours(),e,2)}function At(n,e){return p(n.getUTCHours()%12||12,e,2)}function Ht(n,e){return p(1+_n.count(B(n),n),e,3)}function ke(n,e){return p(n.getUTCMilliseconds(),e,3)}function Wt(n,e){return ke(n,e)+"000"}function Lt(n,e){return p(n.getUTCMonth()+1,e,2)}function It(n,e){return p(n.getUTCMinutes(),e,2)}function Ot(n,e){return p(n.getUTCSeconds(),e,2)}function $t(n){var e=n.getUTCDay();return e===0?7:e}function Pt(n,e){return p(De.count(B(n)-1,n),e,2)}function Fe(n){var e=n.getUTCDay();return e>=4||e===0?cn(n):cn.ceil(n)}function Rt(n,e){return n=Fe(n),p(cn.count(B(n),n)+(B(n).getUTCDay()===4),e,2)}function zt(n){return n.getUTCDay()}function jt(n,e){return p(Dn.count(B(n)-1,n),e,2)}function Zt(n,e){return p(n.getUTCFullYear()%100,e,2)}function qt(n,e){return n=Fe(n),p(n.getUTCFullYear()%100,e,2)}function _t(n,e){return p(n.getUTCFullYear()%1e4,e,4)}function Qt(n,e){var r=n.getUTCDay();return n=r>=4||r===0?cn(n):cn.ceil(n),p(n.getUTCFullYear()%1e4,e,4)}function Vt(){return"+0000"}function me(){return"%"}function ye(n){return+n}function Me(n){return Math.floor(+n/1e3)}var rn,Ne,Ye,be;Et({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Et(n){return rn=Er(n),Ne=rn.format,rn.parse,Ye=rn.utcFormat,be=rn.utcParse,rn}var Ae="%Y-%m-%dT%H:%M:%S.%LZ";function Bt(n){return n.toISOString()}Date.prototype.toISOString||Ye(Ae);function Xt(n){var e=new Date(n);return isNaN(e)?null:e}+new Date("2000-01-01T00:00:00.000Z")||be(Ae);function kn(n,e){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(e).domain(n);break}return this}const de=Symbol("implicit");function He(){var n=new Gn,e=[],r=[],t=de;function u(o){let i=n.get(o);if(i===void 0){if(t!==de)return t;n.set(o,i=e.push(o)-1)}return r[i%r.length]}return u.domain=function(o){if(!arguments.length)return e.slice();e=[],n=new Gn;for(const i of o)n.has(i)||n.set(i,e.push(i)-1);return u},u.range=function(o){return arguments.length?(r=Array.from(o),u):r.slice()},u.unknown=function(o){return arguments.length?(t=o,u):t},u.copy=function(){return He(e,r).unknown(t)},kn.apply(u,arguments),u}function Gt(){var n=He().unknown(void 0),e=n.domain,r=n.range,t=0,u=1,o,i,a=!1,f=0,c=0,h=.5;delete n.unknown;function g(){var l=e().length,w=u<t,v=w?u:t,U=w?t:u;o=(U-v)/Math.max(1,l-f+c*2),a&&(o=Math.floor(o)),v+=(U-v-o*(l-f))*h,i=o*(1-f),a&&(v=Math.round(v),i=Math.round(i));var S=tr(l).map(function(Y){return v+o*Y});return r(w?S.reverse():S)}return n.domain=function(l){return arguments.length?(e(l),g()):e()},n.range=function(l){return arguments.length?([t,u]=l,t=+t,u=+u,g()):[t,u]},n.rangeRound=function(l){return[t,u]=l,t=+t,u=+u,a=!0,g()},n.bandwidth=function(){return i},n.step=function(){return o},n.round=function(l){return arguments.length?(a=!!l,g()):a},n.padding=function(l){return arguments.length?(f=Math.min(1,c=+l),g()):f},n.paddingInner=function(l){return arguments.length?(f=Math.min(1,l),g()):f},n.paddingOuter=function(l){return arguments.length?(c=+l,g()):c},n.align=function(l){return arguments.length?(h=Math.max(0,Math.min(1,l)),g()):h},n.copy=function(){return Gt(e(),[t,u]).round(a).paddingInner(f).paddingOuter(c).align(h)},kn.apply(g(),arguments)}function Jt(n){return function(){return n}}function Kt(n){return+n}var Te=[0,1];function un(n){return n}function $n(n,e){return(e-=n=+n)?function(r){return(r-n)/e}:Jt(isNaN(e)?NaN:.5)}function nu(n,e){var r;return n>e&&(r=n,n=e,e=r),function(t){return Math.max(n,Math.min(e,t))}}function eu(n,e,r){var t=n[0],u=n[1],o=e[0],i=e[1];return u<t?(t=$n(u,t),o=r(i,o)):(t=$n(t,u),o=r(o,i)),function(a){return o(t(a))}}function ru(n,e,r){var t=Math.min(n.length,e.length)-1,u=new Array(t),o=new Array(t),i=-1;for(n[t]<n[0]&&(n=n.slice().reverse(),e=e.slice().reverse());++i<t;)u[i]=$n(n[i],n[i+1]),o[i]=r(e[i],e[i+1]);return function(a){var f=Be(n,a,1,t)-1;return o[f](u[f](a))}}function We(n,e){return e.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function tu(){var n=Te,e=Te,r=Rn,t,u,o,i=un,a,f,c;function h(){var l=Math.min(n.length,e.length);return i!==un&&(i=nu(n[0],n[l-1])),a=l>2?ru:eu,f=c=null,g}function g(l){return l==null||isNaN(l=+l)?o:(f||(f=a(n.map(t),e,r)))(t(i(l)))}return g.invert=function(l){return i(u((c||(c=a(e,n.map(t),Tn)))(l)))},g.domain=function(l){return arguments.length?(n=Array.from(l,Kt),h()):n.slice()},g.range=function(l){return arguments.length?(e=Array.from(l),h()):e.slice()},g.rangeRound=function(l){return e=Array.from(l),r=dr,h()},g.clamp=function(l){return arguments.length?(i=l?!0:un,h()):i!==un},g.interpolate=function(l){return arguments.length?(r=l,h()):r},g.unknown=function(l){return arguments.length?(o=l,g):o},function(l,w){return t=l,u=w,h()}}function Le(){return tu()(un,un)}function uu(n,e,r,t){var u=In(n,e,r),o;switch(t=wn(t??",f"),t.type){case"s":{var i=Math.max(Math.abs(n),Math.abs(e));return t.precision==null&&!isNaN(o=br(u,i))&&(t.precision=o),Ue(t,i)}case"":case"e":case"g":case"p":case"r":{t.precision==null&&!isNaN(o=Ar(u,Math.max(Math.abs(n),Math.abs(e))))&&(t.precision=o-(t.type==="e"));break}case"f":case"%":{t.precision==null&&!isNaN(o=Yr(u))&&(t.precision=o-(t.type==="%")*2);break}}return Ce(t)}function ou(n){var e=n.domain;return n.ticks=function(r){var t=e();return rr(t[0],t[t.length-1],r??10)},n.tickFormat=function(r,t){var u=e();return uu(u[0],u[u.length-1],r??10,t)},n.nice=function(r){r==null&&(r=10);var t=e(),u=0,o=t.length-1,i=t[u],a=t[o],f,c,h=10;for(a<i&&(c=i,i=a,a=c,c=u,u=o,o=c);h-- >0;){if(c=Ln(i,a,r),c===f)return t[u]=i,t[o]=a,e(t);if(c>0)i=Math.floor(i/c)*c,a=Math.ceil(a/c)*c;else if(c<0)i=Math.ceil(i*c)/c,a=Math.floor(a*c)/c;else break;f=c}return n},n}function iu(){var n=Le();return n.copy=function(){return We(n,iu())},kn.apply(n,arguments),ou(n)}function au(n,e){n=n.slice();var r=0,t=n.length-1,u=n[r],o=n[t],i;return o<u&&(i=r,r=t,t=i,i=u,u=o,o=i),n[r]=e.floor(u),n[t]=e.ceil(o),n}function cu(n){return new Date(n)}function fu(n){return n instanceof Date?+n:Math.round(n)}function Ie(n,e,r,t,u,o,i,a,f,c){var h=Le(),g=h.invert,l=h.domain,w=c(".%L"),v=c(":%S"),U=c("%I:%M"),S=c("%I %p"),Y=c("%a %d"),O=c("%b %d"),N=c("%B"),x=c("%Y");function L(y){return(f(y)<y?w:a(y)<y?v:i(y)<y?U:o(y)<y?S:t(y)<y?u(y)<y?Y:O:r(y)<y?N:x)(y)}return h.invert=function(y){return new Date(Math.round(g(y)))},h.domain=function(y){return arguments.length?l(Array.from(y,fu)):l().map(cu)},h.ticks=function(y){var D=l();return n(D[0],D[D.length-1],y??10)},h.tickFormat=function(y,D){return D==null?L:c(D)},h.nice=function(y){var D=l();return(!y||typeof y.range!="function")&&(y=e(D[0],D[D.length-1],y??10)),y?l(au(D,y)):h},h.copy=function(){return We(h,Ie(n,e,r,t,u,o,i,a,f,c))},h}function Mu(){return kn.apply(Ie(Qr,Vr,_,Qn,Sn,gn,qn,Zn,tn,Ne).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}export{Cn as a,Gt as b,yu as c,gu as d,gn as e,Ce as f,Ne as g,mu as h,$r as i,qn as j,Zn as k,iu as l,lu as m,Un as n,He as o,Qn as p,Pr as q,hu as r,tn as s,Mu as t,Sn as u,an as v,Ir as w,Or as x};
@@ -1,4 +1,4 @@
1
- import{c as Gt,aZ as Kt,U as Ht,Y as Yt,b0 as Xt,V as Zt,a_ as Jt,b as w,W as wt,aX as Qt,aW as ot,i as $t,an as te,au as ee,H as ne,B as se,r as ie,q as oe,O as re}from"./B1_E9UBq.js";const kt=(t,n)=>Gt(t,"a",-n),_t=1e-10;function st(t,n){const s=le(t),e=s.filter(l=>ae(l,t));let i=0,o=0;const r=[];if(e.length>1){const l=Et(e);for(let u=0;u<e.length;++u){const a=e[u];a.angle=Math.atan2(a.x-l.x,a.y-l.y)}e.sort((u,a)=>a.angle-u.angle);let f=e[e.length-1];for(let u=0;u<e.length;++u){const a=e[u];o+=(f.x+a.x)*(a.y-f.y);const y={x:(a.x+f.x)/2,y:(a.y+f.y)/2};let h=null;for(let b=0;b<a.parentIndex.length;++b)if(f.parentIndex.includes(a.parentIndex[b])){const p=t[a.parentIndex[b]],M=Math.atan2(a.x-p.x,a.y-p.y),E=Math.atan2(f.x-p.x,f.y-p.y);let _=E-M;_<0&&(_+=2*Math.PI);const S=E-_/2;let g=q(y,{x:p.x+p.radius*Math.sin(S),y:p.y+p.radius*Math.cos(S)});g>p.radius*2&&(g=p.radius*2),(h==null||h.width>g)&&(h={circle:p,width:g,p1:a,p2:f,large:g>p.radius,sweep:!0})}h!=null&&(r.push(h),i+=lt(h.circle.radius,h.width),f=a)}}else{let l=t[0];for(let u=1;u<t.length;++u)t[u].radius<l.radius&&(l=t[u]);let f=!1;for(let u=0;u<t.length;++u)if(q(t[u],l)>Math.abs(l.radius-t[u].radius)){f=!0;break}f?i=o=0:(i=l.radius*l.radius*Math.PI,r.push({circle:l,p1:{x:l.x,y:l.y+l.radius},p2:{x:l.x-_t,y:l.y+l.radius},width:l.radius*2,large:!0,sweep:!0}))}return o/=2,n&&(n.area=i+o,n.arcArea=i,n.polygonArea=o,n.arcs=r,n.innerPoints=e,n.intersectionPoints=s),i+o}function ae(t,n){return n.every(s=>q(t,s)<s.radius+_t)}function le(t){const n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){const i=Tt(t[s],t[e]);for(const o of i)o.parentIndex=[s,e],n.push(o)}return n}function lt(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function q(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function xt(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return lt(t,e)+lt(n,i)}function Tt(t,n){const s=q(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];const o=(e*e-i*i+s*s)/(2*s),r=Math.sqrt(e*e-o*o),l=t.x+o*(n.x-t.x)/s,f=t.y+o*(n.y-t.y)/s,u=-(n.y-t.y)*(r/s),a=-(n.x-t.x)*(r/s);return[{x:l+u,y:f-a},{x:l-u,y:f+a}]}function Et(t){const n={x:0,y:0};for(const s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function ce(t,n,s,e){e=e||{};const i=e.maxIterations||100,o=e.tolerance||1e-10,r=t(n),l=t(s);let f=s-n;if(r*l>0)throw"Initial bisect points must have opposite signs";if(r===0)return n;if(l===0)return s;for(let u=0;u<i;++u){f/=2;const a=n+f,y=t(a);if(y*r>=0&&(n=a),Math.abs(f)<o||y===0)return a}return n+f}function ct(t){const n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}function Mt(t,n){return ct(t).map(()=>ct(n))}function $(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}function ut(t){return Math.sqrt($(t,t))}function ft(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}function Z(t,n,s,e,i){for(let o=0;o<t.length;++o)t[o]=n*s[o]+e*i[o]}function zt(t,n,s){s=s||{};const e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,o=s.zeroDelta||.001,r=s.minErrorDelta||1e-6,l=s.minErrorDelta||1e-5,f=s.rho!==void 0?s.rho:1,u=s.chi!==void 0?s.chi:2,a=s.psi!==void 0?s.psi:-.5,y=s.sigma!==void 0?s.sigma:.5;let h;const b=n.length,p=new Array(b+1);p[0]=n,p[0].fx=t(n),p[0].id=0;for(let v=0;v<b;++v){const c=n.slice();c[v]=c[v]?c[v]*i:o,p[v+1]=c,p[v+1].fx=t(c),p[v+1].id=v+1}function M(v){for(let c=0;c<v.length;c++)p[b][c]=v[c];p[b].fx=v.fx}const E=(v,c)=>v.fx-c.fx,_=n.slice(),S=n.slice(),g=n.slice(),m=n.slice();for(let v=0;v<e;++v){if(p.sort(E),s.history){const x=p.map(d=>{const C=d.slice();return C.fx=d.fx,C.id=d.id,C});x.sort((d,C)=>d.id-C.id),s.history.push({x:p[0].slice(),fx:p[0].fx,simplex:x})}h=0;for(let x=0;x<b;++x)h=Math.max(h,Math.abs(p[0][x]-p[1][x]));if(Math.abs(p[0].fx-p[b].fx)<r&&h<l)break;for(let x=0;x<b;++x){_[x]=0;for(let d=0;d<b;++d)_[x]+=p[d][x];_[x]/=b}const c=p[b];if(Z(S,1+f,_,-f,c),S.fx=t(S),S.fx<p[0].fx)Z(m,1+u,_,-u,c),m.fx=t(m),m.fx<S.fx?M(m):M(S);else if(S.fx>=p[b-1].fx){let x=!1;if(S.fx>c.fx?(Z(g,1+a,_,-a,c),g.fx=t(g),g.fx<c.fx?M(g):x=!0):(Z(g,1-a*f,_,a*f,c),g.fx=t(g),g.fx<S.fx?M(g):x=!0),x){if(y>=1)break;for(let d=1;d<p.length;++d)Z(p[d],1-y,p[0],y,p[d]),p[d].fx=t(p[d])}}else M(S)}return p.sort(E),{fx:p[0].fx,x:p[0]}}function ue(t,n,s,e,i,o,r){const l=s.fx,f=$(s.fxprime,n);let u=l,a=l,y=f,h=0;i=i||1,o=o||1e-6,r=r||.1;function b(p,M,E){for(let _=0;_<16;++_)if(i=(p+M)/2,Z(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||u>=E)M=i;else{if(Math.abs(y)<=-r*f)return i;y*(M-p)>=0&&(M=p),p=i,E=u}return 0}for(let p=0;p<10;++p){if(Z(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||p&&u>=a)return b(h,i,a);if(Math.abs(y)<=-r*f)return i;if(y>=0)return b(i,h,u);a=u,h=i,i*=2}return i}function fe(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const o=n.slice();let r,l,f=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),r=e.fxprime.slice(),ft(r,e.fxprime,-1);for(let a=0;a<u;++a){if(f=ue(t,r,e,i,f),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),!f)ft(r,e.fxprime,-1);else{Z(o,1,i.fxprime,-1,e.fxprime);const y=$(e.fxprime,e.fxprime),h=Math.max(0,$(o,i.fxprime)/y);Z(r,h,r,-1,i.fxprime),l=e,e=i,i=l}if(ut(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),e}function At(t,n={}){n.maxIterations=n.maxIterations||500;const s=n.initialLayout||xe,e=n.lossFunction||tt,i=he(t,n),o=s(i,n),r=Object.keys(o),l=[];for(const a of r)l.push(o[a].x),l.push(o[a].y);const u=zt(a=>{const y={};for(let h=0;h<r.length;++h){const b=r[h];y[b]={x:a[2*h],y:a[2*h+1],radius:o[b].radius}}return e(y,i)},l,n).x;for(let a=0;a<r.length;++a){const y=r[a];o[y].x=u[2*a],o[y].y=u[2*a+1]}return o}const Rt=1e-10;function ht(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+Rt?Math.abs(t-n):ce(e=>xt(t,n,e)-s,0,t+n)}function he(t,n={}){const s=n.distinct,e=t.map(l=>Object.assign({},l));function i(l){return l.join(";")}if(s){const l=new Map;for(const f of e)for(let u=0;u<f.sets.length;u++){const a=String(f.sets[u]);l.set(a,f.size+(l.get(a)||0));for(let y=u+1;y<f.sets.length;y++){const h=String(f.sets[y]),b=`${a};${h}`,p=`${h};${a}`;l.set(b,f.size+(l.get(b)||0)),l.set(p,f.size+(l.get(p)||0))}}for(const f of e)f.sets.length<3&&(f.size=l.get(i(f.sets)))}const o=[],r=new Set;for(const l of e)if(l.sets.length===1)o.push(l.sets[0]);else if(l.sets.length===2){const f=l.sets[0],u=l.sets[1];r.add(i(l.sets)),r.add(i([u,f]))}o.sort((l,f)=>l===f?0:l<f?-1:1);for(let l=0;l<o.length;++l){const f=o[l];for(let u=l+1;u<o.length;++u){const a=o[u];r.has(i([f,a]))||e.push({sets:[f,a],size:0})}}return e}function de(t,n,s){const e=Mt(n.length,n.length),i=Mt(n.length,n.length);return t.filter(o=>o.sets.length===2).forEach(o=>{const r=s[o.sets[0]],l=s[o.sets[1]],f=Math.sqrt(n[r].size/Math.PI),u=Math.sqrt(n[l].size/Math.PI),a=ht(f,u,o.size);e[r][l]=e[l][r]=a;let y=0;o.size+1e-10>=Math.min(n[r].size,n[l].size)?y=1:o.size<=1e-10&&(y=-1),i[r][l]=i[l][r]=y}),{distances:e,constraints:i}}function ge(t,n,s,e){for(let o=0;o<n.length;++o)n[o]=0;let i=0;for(let o=0;o<s.length;++o){const r=t[2*o],l=t[2*o+1];for(let f=o+1;f<s.length;++f){const u=t[2*f],a=t[2*f+1],y=s[o][f],h=e[o][f],b=(u-r)*(u-r)+(a-l)*(a-l),p=Math.sqrt(b),M=b-y*y;h>0&&p<=y||h<0&&p>=y||(i+=2*M*M,n[2*o]+=4*M*(r-u),n[2*o+1]+=4*M*(l-a),n[2*f]+=4*M*(u-r),n[2*f+1]+=4*M*(a-l))}}return i}function xe(t,n={}){let s=pe(t,n);const e=n.lossFunction||tt;if(t.length>=8){const i=ye(t,n),o=e(i,t),r=e(s,t);o+1e-8<r&&(s=i)}return s}function ye(t,n={}){const s=n.restarts||10,e=[],i={};for(const h of t)h.sets.length===1&&(i[h.sets[0]]=e.length,e.push(h));let{distances:o,constraints:r}=de(t,e,i);const l=ut(o.map(ut))/o.length;o=o.map(h=>h.map(b=>b/l));const f=(h,b)=>ge(h,b,o,r);let u=null;for(let h=0;h<s;++h){const b=ct(o.length*2).map(Math.random),p=fe(f,b,n);(!u||p.fx<u.fx)&&(u=p)}const a=u.x,y={};for(let h=0;h<e.length;++h){const b=e[h];y[b.sets[0]]={x:a[2*h]*l,y:a[2*h+1]*l,radius:Math.sqrt(b.size/Math.PI)}}if(n.history)for(const h of n.history)ft(h.x,l);return y}function pe(t,n){const s=n&&n.lossFunction?n.lossFunction:tt,e={},i={};for(const y of t)if(y.sets.length===1){const h=y.sets[0];e[h]={x:1e10,y:1e10,rowid:e.length,size:y.size,radius:Math.sqrt(y.size/Math.PI)},i[h]=[]}t=t.filter(y=>y.sets.length===2);for(const y of t){let h=y.weight!=null?y.weight:1;const b=y.sets[0],p=y.sets[1];y.size+Rt>=Math.min(e[b].size,e[p].size)&&(h=0),i[b].push({set:p,size:y.size,weight:h}),i[p].push({set:b,size:y.size,weight:h})}const o=[];Object.keys(i).forEach(y=>{let h=0;for(let b=0;b<i[y].length;++b)h+=i[y][b].size*i[y][b].weight;o.push({set:y,size:h})});function r(y,h){return h.size-y.size}o.sort(r);const l={};function f(y){return y.set in l}function u(y,h){e[h].x=y.x,e[h].y=y.y,l[h]=!0}u({x:0,y:0},o[0].set);for(let y=1;y<o.length;++y){const h=o[y].set,b=i[h].filter(f),p=e[h];if(b.sort(r),b.length===0)throw"ERROR: missing pairwise overlap information";const M=[];for(var a=0;a<b.length;++a){const S=e[b[a].set],g=ht(p.radius,S.radius,b[a].size);M.push({x:S.x+g,y:S.y}),M.push({x:S.x-g,y:S.y}),M.push({y:S.y+g,x:S.x}),M.push({y:S.y-g,x:S.x});for(let m=a+1;m<b.length;++m){const v=e[b[m].set],c=ht(p.radius,v.radius,b[m].size),x=Tt({x:S.x,y:S.y,radius:g},{x:v.x,y:v.y,radius:c});M.push(...x)}}let E=1e50,_=M[0];for(const S of M){e[h].x=S.x,e[h].y=S.y;const g=s(e,t);g<E&&(E=g,_=S)}u(_,h)}return e}function tt(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const r=t[e.sets[0]],l=t[e.sets[1]];i=xt(r.radius,l.radius,q(r,l))}else i=st(e.sets.map(r=>t[r]));const o=e.weight!=null?e.weight:1;s+=o*(i-e.size)*(i-e.size)}return s}function Ct(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const l=t[e.sets[0]],f=t[e.sets[1]];i=xt(l.radius,f.radius,q(l,f))}else i=st(e.sets.map(l=>t[l]));const o=e.weight!=null?e.weight:1,r=Math.log((i+1)/(e.size+1));s+=o*r*r}return s}function me(t,n,s){if(s==null?t.sort((i,o)=>o.radius-i.radius):t.sort(s),t.length>0){const i=t[0].x,o=t[0].y;for(const r of t)r.x-=i,r.y-=o}if(t.length===2&&q(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-n,o=Math.cos(i),r=Math.sin(i);for(const l of t){const f=l.x,u=l.y;l.x=o*f-r*u,l.y=r*f+o*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const o=t[1].y/(1e-10+t[1].x);for(const r of t){var e=(r.x+o*r.y)/(1+o*o);r.x=2*e-r.x,r.y=2*e*o-r.y}}}}function be(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,o){const r=n(i),l=n(o);r.parent=l}for(let i=0;i<t.length;++i)for(let o=i+1;o<t.length;++o){const r=t[i].radius+t[o].radius;q(t[i],t[o])+1e-10<r&&s(t[o],t[i])}const e=new Map;for(let i=0;i<t.length;++i){const o=n(t[i]).parent.setid;e.has(o)||e.set(o,[]),e.get(o).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}function dt(t){const n=s=>{const e=t.reduce((o,r)=>Math.max(o,r[s]+r.radius),Number.NEGATIVE_INFINITY),i=t.reduce((o,r)=>Math.min(o,r[s]-r.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}};return{xRange:n("x"),yRange:n("y")}}function Dt(t,n,s){n==null&&(n=Math.PI/2);let e=Ft(t).map(u=>Object.assign({},u));const i=be(e);for(const u of i){me(u,n,s);const a=dt(u);u.size=(a.xRange.max-a.xRange.min)*(a.yRange.max-a.yRange.min),u.bounds=a}i.sort((u,a)=>a.size-u.size),e=i[0];let o=e.bounds;const r=(o.xRange.max-o.xRange.min)/50;function l(u,a,y){if(!u)return;const h=u.bounds;let b,p;if(a)b=o.xRange.max-h.xRange.min+r;else{b=o.xRange.max-h.xRange.max;const M=(h.xRange.max-h.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;M<0&&(b+=M)}if(y)p=o.yRange.max-h.yRange.min+r;else{p=o.yRange.max-h.yRange.max;const M=(h.yRange.max-h.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;M<0&&(p+=M)}for(const M of u)M.x+=b,M.y+=p,e.push(M)}let f=1;for(;f<i.length;)l(i[f],!0,!1),l(i[f+1],!1,!0),l(i[f+2],!0,!0),f+=3,o=dt(e);return Nt(e)}function Ot(t,n,s,e,i){const o=Ft(t);n-=2*e,s-=2*e;const{xRange:r,yRange:l}=dt(o);if(r.max===r.min||l.max===l.min)return console.log("not scaling solution: zero size detected"),t;let f,u;if(i){const b=Math.sqrt(i/Math.PI)*2;f=n/b,u=s/b}else f=n/(r.max-r.min),u=s/(l.max-l.min);const a=Math.min(u,f),y=(n-(r.max-r.min)*a)/2,h=(s-(l.max-l.min)*a)/2;return Nt(o.map(b=>({radius:a*b.radius,x:e+y+(b.x-r.min)*a,y:e+h+(b.y-l.min)*a,setid:b.setid})))}function Nt(t){const n={};for(const s of t)n[s.setid]=s;return n}function Ft(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}function ve(t={}){let n=!1,s=600,e=350,i=15,o=1e3,r=Math.PI/2,l=!0,f=null,u=!0,a=!0,y=null,h=null,b=!1,p=null,M=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,E={},_=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],S=0,g=function(x){if(x in E)return E[x];var d=E[x]=_[S];return S+=1,S>=_.length&&(S=0),d},m=At,v=tt;function c(x){let d=x.datum();const C=new Set;d.forEach(k=>{k.size==0&&k.sets.length==1&&C.add(k.sets[0])}),d=d.filter(k=>!k.sets.some(O=>C.has(O)));let I={},D={};if(d.length>0){let k=m(d,{lossFunction:v,distinct:b});l&&(k=Dt(k,r,h)),I=Ot(k,s,e,i,f),D=Lt(I,d,M)}const U={};d.forEach(k=>{k.label&&(U[k.sets]=k.label)});function V(k){if(k.sets in U)return U[k.sets];if(k.sets.length==1)return""+k.sets[0]}x.selectAll("svg").data([I]).enter().append("svg");const F=x.select("svg");n?F.attr("viewBox",`0 0 ${s} ${e}`):F.attr("width",s).attr("height",e);const R={};let T=!1;F.selectAll(".venn-area path").each(function(k){const O=this.getAttribute("d");k.sets.length==1&&O&&!b&&(T=!0,R[k.sets[0]]=Me(O))});function A(k){return O=>{const K=k.sets.map(et=>{let Y=R[et],X=I[et];return Y||(Y={x:s/2,y:e/2,radius:1}),X||(X={x:s/2,y:e/2,radius:1}),{x:Y.x*(1-O)+X.x*O,y:Y.y*(1-O)+X.y*O,radius:Y.radius*(1-O)+X.radius*O}});return St(K,p)}}const W=F.selectAll(".venn-area").data(d,k=>k.sets),P=W.enter().append("g").attr("class",k=>`venn-area venn-${k.sets.length==1?"circle":"intersection"}${k.colour||k.color?" venn-coloured":""}`).attr("data-venn-sets",k=>k.sets.join("_")),B=P.append("path"),G=P.append("text").attr("class","label").text(k=>V(k)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);a&&(B.style("fill-opacity","0").filter(k=>k.sets.length==1).style("fill",k=>k.colour?k.colour:k.color?k.color:g(k.sets)).style("fill-opacity",".25"),G.style("fill",k=>k.colour||k.color?"#FFF":t.textFill?t.textFill:k.sets.length==1?g(k.sets):"#444"));function L(k){return typeof k.transition=="function"?k.transition("venn").duration(o):k}let z=x;T&&typeof z.transition=="function"?(z=L(x),z.selectAll("path").attrTween("d",A)):z.selectAll("path").attr("d",k=>St(k.sets.map(O=>I[O])),p);const N=z.selectAll("text").filter(k=>k.sets in D).text(k=>V(k)).attr("x",k=>Math.floor(D[k.sets].x)).attr("y",k=>Math.floor(D[k.sets].y));u&&(T?"on"in N?N.on("end",rt(I,V)):N.each("end",rt(I,V)):N.each(rt(I,V)));const j=L(W.exit()).remove();typeof W.transition=="function"&&j.selectAll("path").attrTween("d",A);const Q=j.selectAll("text").attr("x",s/2).attr("y",e/2);return y!==null&&(G.style("font-size","0px"),N.style("font-size",y),Q.style("font-size","0px")),{circles:I,textCentres:D,nodes:W,enter:P,update:z,exit:j}}return c.wrap=function(x){return arguments.length?(u=x,c):u},c.useViewBox=function(){return n=!0,c},c.width=function(x){return arguments.length?(s=x,c):s},c.height=function(x){return arguments.length?(e=x,c):e},c.padding=function(x){return arguments.length?(i=x,c):i},c.distinct=function(x){return arguments.length?(b=x,c):b},c.colours=function(x){return arguments.length?(g=x,c):g},c.colors=function(x){return arguments.length?(g=x,c):g},c.fontSize=function(x){return arguments.length?(y=x,c):y},c.round=function(x){return arguments.length?(p=x,c):p},c.duration=function(x){return arguments.length?(o=x,c):o},c.layoutFunction=function(x){return arguments.length?(m=x,c):m},c.normalize=function(x){return arguments.length?(l=x,c):l},c.scaleToFit=function(x){return arguments.length?(f=x,c):f},c.styled=function(x){return arguments.length?(a=x,c):a},c.orientation=function(x){return arguments.length?(r=x,c):r},c.orientationOrder=function(x){return arguments.length?(h=x,c):h},c.lossFunction=function(x){return arguments.length?(v=x==="default"?tt:x==="logRatio"?Ct:x,c):v},c}function rt(t,n){return function(s){const e=this,i=t[s.sets[0]].radius||50,o=n(s)||"",r=o.split(/\s+/).reverse(),f=(o.length+r.length)/3;let u=r.pop(),a=[u],y=0;const h=1.1;e.textContent=null;const b=[];function p(g){const m=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return m.textContent=g,b.push(m),e.append(m),m}let M=p(u);for(;u=r.pop(),!!u;){a.push(u);const g=a.join(" ");M.textContent=g,g.length>f&&M.getComputedTextLength()>i&&(a.pop(),M.textContent=a.join(" "),a=[u],M=p(u),y++)}const E=.35-y*h/2,_=e.getAttribute("x"),S=e.getAttribute("y");b.forEach((g,m)=>{g.setAttribute("x",_),g.setAttribute("y",S),g.setAttribute("dy",`${E+m*h}em`)})}}function at(t,n,s){let e=n[0].radius-q(n[0],t);for(let i=1;i<n.length;++i){const o=n[i].radius-q(n[i],t);o<=e&&(e=o)}for(let i=0;i<s.length;++i){const o=q(s[i],t)-s[i].radius;o<=e&&(e=o)}return e}function jt(t,n,s){const e=[];for(const a of t)e.push({x:a.x,y:a.y}),e.push({x:a.x+a.radius/2,y:a.y}),e.push({x:a.x-a.radius/2,y:a.y}),e.push({x:a.x,y:a.y+a.radius/2}),e.push({x:a.x,y:a.y-a.radius/2});let i=e[0],o=at(e[0],t,n);for(let a=1;a<e.length;++a){const y=at(e[a],t,n);y>=o&&(i=e[a],o=y)}const r=zt(a=>-1*at({x:a[0],y:a[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:s?0:r[0],y:r[1]};let f=!0;for(const a of t)if(q(l,a)>a.radius){f=!1;break}for(const a of n)if(q(l,a)<a.radius){f=!1;break}if(f)return l;if(t.length==1)return{x:t[0].x,y:t[0].y};const u={};return st(t,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:n.length?jt(t,[]):Et(u.arcs.map(a=>a.p1))}function Ie(t){const n={},s=Object.keys(t);for(const e of s)n[e]=[];for(let e=0;e<s.length;e++){const i=s[e],o=t[i];for(let r=e+1;r<s.length;++r){const l=s[r],f=t[l],u=q(o,f);u+f.radius<=o.radius+1e-10?n[l].push(i):u+o.radius<=f.radius+1e-10&&n[i].push(l)}}return n}function Lt(t,n,s){const e={},i=Ie(t);for(let o=0;o<n.length;++o){const r=n[o].sets,l={},f={};for(let h=0;h<r.length;++h){l[r[h]]=!0;const b=i[r[h]];for(let p=0;p<b.length;++p)f[b[p]]=!0}const u=[],a=[];for(let h in t)h in l?u.push(t[h]):h in f||a.push(t[h]);const y=jt(u,a,s);e[r]=y,y.disjoint&&n[o].size>0&&console.log("WARNING: area "+r+" not represented on screen")}return e}function ke(t,n,s){const e=[];return e.push(`
1
+ import{c as Gt,aZ as Kt,U as Ht,Y as Yt,b0 as Xt,V as Zt,a_ as Jt,b as w,W as wt,aX as Qt,aW as ot,i as $t,an as te,au as ee,H as ne,B as se,r as ie,q as oe,O as re}from"./Cp-LTiNq.js";const kt=(t,n)=>Gt(t,"a",-n),_t=1e-10;function st(t,n){const s=le(t),e=s.filter(l=>ae(l,t));let i=0,o=0;const r=[];if(e.length>1){const l=Et(e);for(let u=0;u<e.length;++u){const a=e[u];a.angle=Math.atan2(a.x-l.x,a.y-l.y)}e.sort((u,a)=>a.angle-u.angle);let f=e[e.length-1];for(let u=0;u<e.length;++u){const a=e[u];o+=(f.x+a.x)*(a.y-f.y);const y={x:(a.x+f.x)/2,y:(a.y+f.y)/2};let h=null;for(let b=0;b<a.parentIndex.length;++b)if(f.parentIndex.includes(a.parentIndex[b])){const p=t[a.parentIndex[b]],M=Math.atan2(a.x-p.x,a.y-p.y),E=Math.atan2(f.x-p.x,f.y-p.y);let _=E-M;_<0&&(_+=2*Math.PI);const S=E-_/2;let g=q(y,{x:p.x+p.radius*Math.sin(S),y:p.y+p.radius*Math.cos(S)});g>p.radius*2&&(g=p.radius*2),(h==null||h.width>g)&&(h={circle:p,width:g,p1:a,p2:f,large:g>p.radius,sweep:!0})}h!=null&&(r.push(h),i+=lt(h.circle.radius,h.width),f=a)}}else{let l=t[0];for(let u=1;u<t.length;++u)t[u].radius<l.radius&&(l=t[u]);let f=!1;for(let u=0;u<t.length;++u)if(q(t[u],l)>Math.abs(l.radius-t[u].radius)){f=!0;break}f?i=o=0:(i=l.radius*l.radius*Math.PI,r.push({circle:l,p1:{x:l.x,y:l.y+l.radius},p2:{x:l.x-_t,y:l.y+l.radius},width:l.radius*2,large:!0,sweep:!0}))}return o/=2,n&&(n.area=i+o,n.arcArea=i,n.polygonArea=o,n.arcs=r,n.innerPoints=e,n.intersectionPoints=s),i+o}function ae(t,n){return n.every(s=>q(t,s)<s.radius+_t)}function le(t){const n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){const i=Tt(t[s],t[e]);for(const o of i)o.parentIndex=[s,e],n.push(o)}return n}function lt(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function q(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function xt(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return lt(t,e)+lt(n,i)}function Tt(t,n){const s=q(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];const o=(e*e-i*i+s*s)/(2*s),r=Math.sqrt(e*e-o*o),l=t.x+o*(n.x-t.x)/s,f=t.y+o*(n.y-t.y)/s,u=-(n.y-t.y)*(r/s),a=-(n.x-t.x)*(r/s);return[{x:l+u,y:f-a},{x:l-u,y:f+a}]}function Et(t){const n={x:0,y:0};for(const s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function ce(t,n,s,e){e=e||{};const i=e.maxIterations||100,o=e.tolerance||1e-10,r=t(n),l=t(s);let f=s-n;if(r*l>0)throw"Initial bisect points must have opposite signs";if(r===0)return n;if(l===0)return s;for(let u=0;u<i;++u){f/=2;const a=n+f,y=t(a);if(y*r>=0&&(n=a),Math.abs(f)<o||y===0)return a}return n+f}function ct(t){const n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}function Mt(t,n){return ct(t).map(()=>ct(n))}function $(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}function ut(t){return Math.sqrt($(t,t))}function ft(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}function Z(t,n,s,e,i){for(let o=0;o<t.length;++o)t[o]=n*s[o]+e*i[o]}function zt(t,n,s){s=s||{};const e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,o=s.zeroDelta||.001,r=s.minErrorDelta||1e-6,l=s.minErrorDelta||1e-5,f=s.rho!==void 0?s.rho:1,u=s.chi!==void 0?s.chi:2,a=s.psi!==void 0?s.psi:-.5,y=s.sigma!==void 0?s.sigma:.5;let h;const b=n.length,p=new Array(b+1);p[0]=n,p[0].fx=t(n),p[0].id=0;for(let v=0;v<b;++v){const c=n.slice();c[v]=c[v]?c[v]*i:o,p[v+1]=c,p[v+1].fx=t(c),p[v+1].id=v+1}function M(v){for(let c=0;c<v.length;c++)p[b][c]=v[c];p[b].fx=v.fx}const E=(v,c)=>v.fx-c.fx,_=n.slice(),S=n.slice(),g=n.slice(),m=n.slice();for(let v=0;v<e;++v){if(p.sort(E),s.history){const x=p.map(d=>{const C=d.slice();return C.fx=d.fx,C.id=d.id,C});x.sort((d,C)=>d.id-C.id),s.history.push({x:p[0].slice(),fx:p[0].fx,simplex:x})}h=0;for(let x=0;x<b;++x)h=Math.max(h,Math.abs(p[0][x]-p[1][x]));if(Math.abs(p[0].fx-p[b].fx)<r&&h<l)break;for(let x=0;x<b;++x){_[x]=0;for(let d=0;d<b;++d)_[x]+=p[d][x];_[x]/=b}const c=p[b];if(Z(S,1+f,_,-f,c),S.fx=t(S),S.fx<p[0].fx)Z(m,1+u,_,-u,c),m.fx=t(m),m.fx<S.fx?M(m):M(S);else if(S.fx>=p[b-1].fx){let x=!1;if(S.fx>c.fx?(Z(g,1+a,_,-a,c),g.fx=t(g),g.fx<c.fx?M(g):x=!0):(Z(g,1-a*f,_,a*f,c),g.fx=t(g),g.fx<S.fx?M(g):x=!0),x){if(y>=1)break;for(let d=1;d<p.length;++d)Z(p[d],1-y,p[0],y,p[d]),p[d].fx=t(p[d])}}else M(S)}return p.sort(E),{fx:p[0].fx,x:p[0]}}function ue(t,n,s,e,i,o,r){const l=s.fx,f=$(s.fxprime,n);let u=l,a=l,y=f,h=0;i=i||1,o=o||1e-6,r=r||.1;function b(p,M,E){for(let _=0;_<16;++_)if(i=(p+M)/2,Z(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||u>=E)M=i;else{if(Math.abs(y)<=-r*f)return i;y*(M-p)>=0&&(M=p),p=i,E=u}return 0}for(let p=0;p<10;++p){if(Z(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||p&&u>=a)return b(h,i,a);if(Math.abs(y)<=-r*f)return i;if(y>=0)return b(i,h,u);a=u,h=i,i*=2}return i}function fe(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const o=n.slice();let r,l,f=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),r=e.fxprime.slice(),ft(r,e.fxprime,-1);for(let a=0;a<u;++a){if(f=ue(t,r,e,i,f),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),!f)ft(r,e.fxprime,-1);else{Z(o,1,i.fxprime,-1,e.fxprime);const y=$(e.fxprime,e.fxprime),h=Math.max(0,$(o,i.fxprime)/y);Z(r,h,r,-1,i.fxprime),l=e,e=i,i=l}if(ut(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),e}function At(t,n={}){n.maxIterations=n.maxIterations||500;const s=n.initialLayout||xe,e=n.lossFunction||tt,i=he(t,n),o=s(i,n),r=Object.keys(o),l=[];for(const a of r)l.push(o[a].x),l.push(o[a].y);const u=zt(a=>{const y={};for(let h=0;h<r.length;++h){const b=r[h];y[b]={x:a[2*h],y:a[2*h+1],radius:o[b].radius}}return e(y,i)},l,n).x;for(let a=0;a<r.length;++a){const y=r[a];o[y].x=u[2*a],o[y].y=u[2*a+1]}return o}const Rt=1e-10;function ht(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+Rt?Math.abs(t-n):ce(e=>xt(t,n,e)-s,0,t+n)}function he(t,n={}){const s=n.distinct,e=t.map(l=>Object.assign({},l));function i(l){return l.join(";")}if(s){const l=new Map;for(const f of e)for(let u=0;u<f.sets.length;u++){const a=String(f.sets[u]);l.set(a,f.size+(l.get(a)||0));for(let y=u+1;y<f.sets.length;y++){const h=String(f.sets[y]),b=`${a};${h}`,p=`${h};${a}`;l.set(b,f.size+(l.get(b)||0)),l.set(p,f.size+(l.get(p)||0))}}for(const f of e)f.sets.length<3&&(f.size=l.get(i(f.sets)))}const o=[],r=new Set;for(const l of e)if(l.sets.length===1)o.push(l.sets[0]);else if(l.sets.length===2){const f=l.sets[0],u=l.sets[1];r.add(i(l.sets)),r.add(i([u,f]))}o.sort((l,f)=>l===f?0:l<f?-1:1);for(let l=0;l<o.length;++l){const f=o[l];for(let u=l+1;u<o.length;++u){const a=o[u];r.has(i([f,a]))||e.push({sets:[f,a],size:0})}}return e}function de(t,n,s){const e=Mt(n.length,n.length),i=Mt(n.length,n.length);return t.filter(o=>o.sets.length===2).forEach(o=>{const r=s[o.sets[0]],l=s[o.sets[1]],f=Math.sqrt(n[r].size/Math.PI),u=Math.sqrt(n[l].size/Math.PI),a=ht(f,u,o.size);e[r][l]=e[l][r]=a;let y=0;o.size+1e-10>=Math.min(n[r].size,n[l].size)?y=1:o.size<=1e-10&&(y=-1),i[r][l]=i[l][r]=y}),{distances:e,constraints:i}}function ge(t,n,s,e){for(let o=0;o<n.length;++o)n[o]=0;let i=0;for(let o=0;o<s.length;++o){const r=t[2*o],l=t[2*o+1];for(let f=o+1;f<s.length;++f){const u=t[2*f],a=t[2*f+1],y=s[o][f],h=e[o][f],b=(u-r)*(u-r)+(a-l)*(a-l),p=Math.sqrt(b),M=b-y*y;h>0&&p<=y||h<0&&p>=y||(i+=2*M*M,n[2*o]+=4*M*(r-u),n[2*o+1]+=4*M*(l-a),n[2*f]+=4*M*(u-r),n[2*f+1]+=4*M*(a-l))}}return i}function xe(t,n={}){let s=pe(t,n);const e=n.lossFunction||tt;if(t.length>=8){const i=ye(t,n),o=e(i,t),r=e(s,t);o+1e-8<r&&(s=i)}return s}function ye(t,n={}){const s=n.restarts||10,e=[],i={};for(const h of t)h.sets.length===1&&(i[h.sets[0]]=e.length,e.push(h));let{distances:o,constraints:r}=de(t,e,i);const l=ut(o.map(ut))/o.length;o=o.map(h=>h.map(b=>b/l));const f=(h,b)=>ge(h,b,o,r);let u=null;for(let h=0;h<s;++h){const b=ct(o.length*2).map(Math.random),p=fe(f,b,n);(!u||p.fx<u.fx)&&(u=p)}const a=u.x,y={};for(let h=0;h<e.length;++h){const b=e[h];y[b.sets[0]]={x:a[2*h]*l,y:a[2*h+1]*l,radius:Math.sqrt(b.size/Math.PI)}}if(n.history)for(const h of n.history)ft(h.x,l);return y}function pe(t,n){const s=n&&n.lossFunction?n.lossFunction:tt,e={},i={};for(const y of t)if(y.sets.length===1){const h=y.sets[0];e[h]={x:1e10,y:1e10,rowid:e.length,size:y.size,radius:Math.sqrt(y.size/Math.PI)},i[h]=[]}t=t.filter(y=>y.sets.length===2);for(const y of t){let h=y.weight!=null?y.weight:1;const b=y.sets[0],p=y.sets[1];y.size+Rt>=Math.min(e[b].size,e[p].size)&&(h=0),i[b].push({set:p,size:y.size,weight:h}),i[p].push({set:b,size:y.size,weight:h})}const o=[];Object.keys(i).forEach(y=>{let h=0;for(let b=0;b<i[y].length;++b)h+=i[y][b].size*i[y][b].weight;o.push({set:y,size:h})});function r(y,h){return h.size-y.size}o.sort(r);const l={};function f(y){return y.set in l}function u(y,h){e[h].x=y.x,e[h].y=y.y,l[h]=!0}u({x:0,y:0},o[0].set);for(let y=1;y<o.length;++y){const h=o[y].set,b=i[h].filter(f),p=e[h];if(b.sort(r),b.length===0)throw"ERROR: missing pairwise overlap information";const M=[];for(var a=0;a<b.length;++a){const S=e[b[a].set],g=ht(p.radius,S.radius,b[a].size);M.push({x:S.x+g,y:S.y}),M.push({x:S.x-g,y:S.y}),M.push({y:S.y+g,x:S.x}),M.push({y:S.y-g,x:S.x});for(let m=a+1;m<b.length;++m){const v=e[b[m].set],c=ht(p.radius,v.radius,b[m].size),x=Tt({x:S.x,y:S.y,radius:g},{x:v.x,y:v.y,radius:c});M.push(...x)}}let E=1e50,_=M[0];for(const S of M){e[h].x=S.x,e[h].y=S.y;const g=s(e,t);g<E&&(E=g,_=S)}u(_,h)}return e}function tt(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const r=t[e.sets[0]],l=t[e.sets[1]];i=xt(r.radius,l.radius,q(r,l))}else i=st(e.sets.map(r=>t[r]));const o=e.weight!=null?e.weight:1;s+=o*(i-e.size)*(i-e.size)}return s}function Ct(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const l=t[e.sets[0]],f=t[e.sets[1]];i=xt(l.radius,f.radius,q(l,f))}else i=st(e.sets.map(l=>t[l]));const o=e.weight!=null?e.weight:1,r=Math.log((i+1)/(e.size+1));s+=o*r*r}return s}function me(t,n,s){if(s==null?t.sort((i,o)=>o.radius-i.radius):t.sort(s),t.length>0){const i=t[0].x,o=t[0].y;for(const r of t)r.x-=i,r.y-=o}if(t.length===2&&q(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-n,o=Math.cos(i),r=Math.sin(i);for(const l of t){const f=l.x,u=l.y;l.x=o*f-r*u,l.y=r*f+o*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const o=t[1].y/(1e-10+t[1].x);for(const r of t){var e=(r.x+o*r.y)/(1+o*o);r.x=2*e-r.x,r.y=2*e*o-r.y}}}}function be(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,o){const r=n(i),l=n(o);r.parent=l}for(let i=0;i<t.length;++i)for(let o=i+1;o<t.length;++o){const r=t[i].radius+t[o].radius;q(t[i],t[o])+1e-10<r&&s(t[o],t[i])}const e=new Map;for(let i=0;i<t.length;++i){const o=n(t[i]).parent.setid;e.has(o)||e.set(o,[]),e.get(o).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}function dt(t){const n=s=>{const e=t.reduce((o,r)=>Math.max(o,r[s]+r.radius),Number.NEGATIVE_INFINITY),i=t.reduce((o,r)=>Math.min(o,r[s]-r.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}};return{xRange:n("x"),yRange:n("y")}}function Dt(t,n,s){n==null&&(n=Math.PI/2);let e=Ft(t).map(u=>Object.assign({},u));const i=be(e);for(const u of i){me(u,n,s);const a=dt(u);u.size=(a.xRange.max-a.xRange.min)*(a.yRange.max-a.yRange.min),u.bounds=a}i.sort((u,a)=>a.size-u.size),e=i[0];let o=e.bounds;const r=(o.xRange.max-o.xRange.min)/50;function l(u,a,y){if(!u)return;const h=u.bounds;let b,p;if(a)b=o.xRange.max-h.xRange.min+r;else{b=o.xRange.max-h.xRange.max;const M=(h.xRange.max-h.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;M<0&&(b+=M)}if(y)p=o.yRange.max-h.yRange.min+r;else{p=o.yRange.max-h.yRange.max;const M=(h.yRange.max-h.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;M<0&&(p+=M)}for(const M of u)M.x+=b,M.y+=p,e.push(M)}let f=1;for(;f<i.length;)l(i[f],!0,!1),l(i[f+1],!1,!0),l(i[f+2],!0,!0),f+=3,o=dt(e);return Nt(e)}function Ot(t,n,s,e,i){const o=Ft(t);n-=2*e,s-=2*e;const{xRange:r,yRange:l}=dt(o);if(r.max===r.min||l.max===l.min)return console.log("not scaling solution: zero size detected"),t;let f,u;if(i){const b=Math.sqrt(i/Math.PI)*2;f=n/b,u=s/b}else f=n/(r.max-r.min),u=s/(l.max-l.min);const a=Math.min(u,f),y=(n-(r.max-r.min)*a)/2,h=(s-(l.max-l.min)*a)/2;return Nt(o.map(b=>({radius:a*b.radius,x:e+y+(b.x-r.min)*a,y:e+h+(b.y-l.min)*a,setid:b.setid})))}function Nt(t){const n={};for(const s of t)n[s.setid]=s;return n}function Ft(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}function ve(t={}){let n=!1,s=600,e=350,i=15,o=1e3,r=Math.PI/2,l=!0,f=null,u=!0,a=!0,y=null,h=null,b=!1,p=null,M=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,E={},_=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],S=0,g=function(x){if(x in E)return E[x];var d=E[x]=_[S];return S+=1,S>=_.length&&(S=0),d},m=At,v=tt;function c(x){let d=x.datum();const C=new Set;d.forEach(k=>{k.size==0&&k.sets.length==1&&C.add(k.sets[0])}),d=d.filter(k=>!k.sets.some(O=>C.has(O)));let I={},D={};if(d.length>0){let k=m(d,{lossFunction:v,distinct:b});l&&(k=Dt(k,r,h)),I=Ot(k,s,e,i,f),D=Lt(I,d,M)}const U={};d.forEach(k=>{k.label&&(U[k.sets]=k.label)});function V(k){if(k.sets in U)return U[k.sets];if(k.sets.length==1)return""+k.sets[0]}x.selectAll("svg").data([I]).enter().append("svg");const F=x.select("svg");n?F.attr("viewBox",`0 0 ${s} ${e}`):F.attr("width",s).attr("height",e);const R={};let T=!1;F.selectAll(".venn-area path").each(function(k){const O=this.getAttribute("d");k.sets.length==1&&O&&!b&&(T=!0,R[k.sets[0]]=Me(O))});function A(k){return O=>{const K=k.sets.map(et=>{let Y=R[et],X=I[et];return Y||(Y={x:s/2,y:e/2,radius:1}),X||(X={x:s/2,y:e/2,radius:1}),{x:Y.x*(1-O)+X.x*O,y:Y.y*(1-O)+X.y*O,radius:Y.radius*(1-O)+X.radius*O}});return St(K,p)}}const W=F.selectAll(".venn-area").data(d,k=>k.sets),P=W.enter().append("g").attr("class",k=>`venn-area venn-${k.sets.length==1?"circle":"intersection"}${k.colour||k.color?" venn-coloured":""}`).attr("data-venn-sets",k=>k.sets.join("_")),B=P.append("path"),G=P.append("text").attr("class","label").text(k=>V(k)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);a&&(B.style("fill-opacity","0").filter(k=>k.sets.length==1).style("fill",k=>k.colour?k.colour:k.color?k.color:g(k.sets)).style("fill-opacity",".25"),G.style("fill",k=>k.colour||k.color?"#FFF":t.textFill?t.textFill:k.sets.length==1?g(k.sets):"#444"));function L(k){return typeof k.transition=="function"?k.transition("venn").duration(o):k}let z=x;T&&typeof z.transition=="function"?(z=L(x),z.selectAll("path").attrTween("d",A)):z.selectAll("path").attr("d",k=>St(k.sets.map(O=>I[O])),p);const N=z.selectAll("text").filter(k=>k.sets in D).text(k=>V(k)).attr("x",k=>Math.floor(D[k.sets].x)).attr("y",k=>Math.floor(D[k.sets].y));u&&(T?"on"in N?N.on("end",rt(I,V)):N.each("end",rt(I,V)):N.each(rt(I,V)));const j=L(W.exit()).remove();typeof W.transition=="function"&&j.selectAll("path").attrTween("d",A);const Q=j.selectAll("text").attr("x",s/2).attr("y",e/2);return y!==null&&(G.style("font-size","0px"),N.style("font-size",y),Q.style("font-size","0px")),{circles:I,textCentres:D,nodes:W,enter:P,update:z,exit:j}}return c.wrap=function(x){return arguments.length?(u=x,c):u},c.useViewBox=function(){return n=!0,c},c.width=function(x){return arguments.length?(s=x,c):s},c.height=function(x){return arguments.length?(e=x,c):e},c.padding=function(x){return arguments.length?(i=x,c):i},c.distinct=function(x){return arguments.length?(b=x,c):b},c.colours=function(x){return arguments.length?(g=x,c):g},c.colors=function(x){return arguments.length?(g=x,c):g},c.fontSize=function(x){return arguments.length?(y=x,c):y},c.round=function(x){return arguments.length?(p=x,c):p},c.duration=function(x){return arguments.length?(o=x,c):o},c.layoutFunction=function(x){return arguments.length?(m=x,c):m},c.normalize=function(x){return arguments.length?(l=x,c):l},c.scaleToFit=function(x){return arguments.length?(f=x,c):f},c.styled=function(x){return arguments.length?(a=x,c):a},c.orientation=function(x){return arguments.length?(r=x,c):r},c.orientationOrder=function(x){return arguments.length?(h=x,c):h},c.lossFunction=function(x){return arguments.length?(v=x==="default"?tt:x==="logRatio"?Ct:x,c):v},c}function rt(t,n){return function(s){const e=this,i=t[s.sets[0]].radius||50,o=n(s)||"",r=o.split(/\s+/).reverse(),f=(o.length+r.length)/3;let u=r.pop(),a=[u],y=0;const h=1.1;e.textContent=null;const b=[];function p(g){const m=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return m.textContent=g,b.push(m),e.append(m),m}let M=p(u);for(;u=r.pop(),!!u;){a.push(u);const g=a.join(" ");M.textContent=g,g.length>f&&M.getComputedTextLength()>i&&(a.pop(),M.textContent=a.join(" "),a=[u],M=p(u),y++)}const E=.35-y*h/2,_=e.getAttribute("x"),S=e.getAttribute("y");b.forEach((g,m)=>{g.setAttribute("x",_),g.setAttribute("y",S),g.setAttribute("dy",`${E+m*h}em`)})}}function at(t,n,s){let e=n[0].radius-q(n[0],t);for(let i=1;i<n.length;++i){const o=n[i].radius-q(n[i],t);o<=e&&(e=o)}for(let i=0;i<s.length;++i){const o=q(s[i],t)-s[i].radius;o<=e&&(e=o)}return e}function jt(t,n,s){const e=[];for(const a of t)e.push({x:a.x,y:a.y}),e.push({x:a.x+a.radius/2,y:a.y}),e.push({x:a.x-a.radius/2,y:a.y}),e.push({x:a.x,y:a.y+a.radius/2}),e.push({x:a.x,y:a.y-a.radius/2});let i=e[0],o=at(e[0],t,n);for(let a=1;a<e.length;++a){const y=at(e[a],t,n);y>=o&&(i=e[a],o=y)}const r=zt(a=>-1*at({x:a[0],y:a[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:s?0:r[0],y:r[1]};let f=!0;for(const a of t)if(q(l,a)>a.radius){f=!1;break}for(const a of n)if(q(l,a)<a.radius){f=!1;break}if(f)return l;if(t.length==1)return{x:t[0].x,y:t[0].y};const u={};return st(t,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:n.length?jt(t,[]):Et(u.arcs.map(a=>a.p1))}function Ie(t){const n={},s=Object.keys(t);for(const e of s)n[e]=[];for(let e=0;e<s.length;e++){const i=s[e],o=t[i];for(let r=e+1;r<s.length;++r){const l=s[r],f=t[l],u=q(o,f);u+f.radius<=o.radius+1e-10?n[l].push(i):u+o.radius<=f.radius+1e-10&&n[i].push(l)}}return n}function Lt(t,n,s){const e={},i=Ie(t);for(let o=0;o<n.length;++o){const r=n[o].sets,l={},f={};for(let h=0;h<r.length;++h){l[r[h]]=!0;const b=i[r[h]];for(let p=0;p<b.length;++p)f[b[p]]=!0}const u=[],a=[];for(let h in t)h in l?u.push(t[h]):h in f||a.push(t[h]);const y=jt(u,a,s);e[r]=y,y.disjoint&&n[o].size>0&&console.log("WARNING: area "+r+" not represented on screen")}return e}function ke(t,n,s){const e=[];return e.push(`
2
2
  M`,t,n),e.push(`
3
3
  m`,-s,0),e.push(`
4
4
  a`,s,s,0,1,0,s*2,0),e.push(`