@cline/cli-darwin-x64 3.0.44 → 3.0.45

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 (83) hide show
  1. package/bin/cline +0 -0
  2. package/cline-hub/webview/assets/Chat-DdYJaXK3.js +201 -0
  3. package/cline-hub/webview/assets/{abnfDiagram-VRR7QNED-4uU2kt4d.js → abnfDiagram-VRR7QNED-BmZn7QAr.js} +1 -1
  4. package/cline-hub/webview/assets/{architectureDiagram-ZJ3FMSHR-CnKk0xvT.js → architectureDiagram-ZJ3FMSHR-C3vvL6fG.js} +1 -1
  5. package/cline-hub/webview/assets/{badge-DLmAsOmN.js → badge-BYJWm79X.js} +1 -1
  6. package/cline-hub/webview/assets/{blockDiagram-677ZJIJ3-BeRdyY1z.js → blockDiagram-677ZJIJ3-CTTO2n8E.js} +1 -1
  7. package/cline-hub/webview/assets/{c4Diagram-LMCZKHZV-B5yMxnHY.js → c4Diagram-LMCZKHZV-tcjpT2HI.js} +1 -1
  8. package/cline-hub/webview/assets/channel-BLdg_aiM.js +1 -0
  9. package/cline-hub/webview/assets/{chunk-32BRIVSS-j1_za_Du.js → chunk-32BRIVSS-CSG4V8l0.js} +1 -1
  10. package/cline-hub/webview/assets/{chunk-52WLFC77-CX08u7QI.js → chunk-52WLFC77-BHME7Aek.js} +1 -1
  11. package/cline-hub/webview/assets/{chunk-BO2N2NFS-Drme6I0X.js → chunk-BO2N2NFS-CdVUj51Q.js} +4 -4
  12. package/cline-hub/webview/assets/{chunk-C7G6YPKG-DhC39wbm.js → chunk-C7G6YPKG-hGGgXHCs.js} +1 -1
  13. package/cline-hub/webview/assets/{chunk-EX3LRPZG-CsW2ZieN.js → chunk-EX3LRPZG-RlTRc8ig.js} +1 -1
  14. package/cline-hub/webview/assets/{chunk-FWX5IMBZ-BhRen1pH.js → chunk-FWX5IMBZ-Ct8ruXtc.js} +2 -2
  15. package/cline-hub/webview/assets/{chunk-HOUHSVGY-BvOEf_91.js → chunk-HOUHSVGY-BK-KWdyz.js} +1 -1
  16. package/cline-hub/webview/assets/{chunk-ICXQ74PX-b1EXixGM.js → chunk-ICXQ74PX-CW82p2Y4.js} +1 -1
  17. package/cline-hub/webview/assets/{chunk-MOJQB5TN-D2L0G7Xx.js → chunk-MOJQB5TN-CxW5bRIS.js} +1 -1
  18. package/cline-hub/webview/assets/{chunk-OGEWGWER-CdgEnhpe.js → chunk-OGEWGWER-C67_IQqL.js} +1 -1
  19. package/cline-hub/webview/assets/{chunk-PUDLZKDR-F7nqbbAB.js → chunk-PUDLZKDR-B2JIQ2o2.js} +1 -1
  20. package/cline-hub/webview/assets/{chunk-Q4XR5HBZ-BoWdsCmn.js → chunk-Q4XR5HBZ-BfwJ-RaF.js} +1 -1
  21. package/cline-hub/webview/assets/{chunk-V7JOEXUC-BU7LxSsa.js → chunk-V7JOEXUC-CkSEtC-h.js} +1 -1
  22. package/cline-hub/webview/assets/{chunk-VAUOI2AC-Cf1Uelo3.js → chunk-VAUOI2AC-IC4V3R7w.js} +1 -1
  23. package/cline-hub/webview/assets/{chunk-VR4S4FIN-C7Z72FpW.js → chunk-VR4S4FIN-Be22cetl.js} +1 -1
  24. package/cline-hub/webview/assets/{chunk-WYO6CB5R-Ck-9wAQ2.js → chunk-WYO6CB5R-BQDKJ2Op.js} +3 -3
  25. package/cline-hub/webview/assets/{chunk-ZGVPDNZ5-BgjMe3Ki.js → chunk-ZGVPDNZ5-CXHgucG6.js} +1 -1
  26. package/cline-hub/webview/assets/classDiagram-OUVF2IWQ-D4-OghAd.js +1 -0
  27. package/cline-hub/webview/assets/classDiagram-v2-EOCWNBFH-D4-OghAd.js +1 -0
  28. package/cline-hub/webview/assets/{cynefinDiagram-TSTJHNR4-zGtFrqal.js → cynefinDiagram-TSTJHNR4-DPD7rzDu.js} +1 -1
  29. package/cline-hub/webview/assets/{dagre-VKFMJZFB-DsgTixgV.js → dagre-VKFMJZFB-B13dhts9.js} +1 -1
  30. package/cline-hub/webview/assets/{desktop-client-BKJwuQxH.js → desktop-client-B4hwKFvn.js} +1 -1
  31. package/cline-hub/webview/assets/{diagram-FQU43EPY-CQe83Mad.js → diagram-FQU43EPY-BxASARJH.js} +1 -1
  32. package/cline-hub/webview/assets/{diagram-G47NLZAW-CUd_aPW9.js → diagram-G47NLZAW-oTkbqh9f.js} +1 -1
  33. package/cline-hub/webview/assets/{diagram-NH7WQ7WH-DylWrtC2.js → diagram-NH7WQ7WH-C7C5ULJ8.js} +1 -1
  34. package/cline-hub/webview/assets/{diagram-OA4YK3LP-D4MHK8dU.js → diagram-OA4YK3LP-YnGKMWID.js} +1 -1
  35. package/cline-hub/webview/assets/{diagram-WEI45ONY-C-vYiKix.js → diagram-WEI45ONY-Du5u8dXz.js} +1 -1
  36. package/cline-hub/webview/assets/{ebnfDiagram-CCIWWBDH-DxbBOPqu.js → ebnfDiagram-CCIWWBDH-BQguzKyi.js} +1 -1
  37. package/cline-hub/webview/assets/{erDiagram-Q63AITRT-CucvGCgK.js → erDiagram-Q63AITRT-BhPHKCzY.js} +1 -1
  38. package/cline-hub/webview/assets/{extensions-view-BY6yrQBH.js → extensions-view-BogTkjd7.js} +1 -1
  39. package/cline-hub/webview/assets/flowDiagram-23GEKE2U-sdhusQkI.js +1 -0
  40. package/cline-hub/webview/assets/{ganttDiagram-NO4QXBWP-DmbHxvFp.js → ganttDiagram-NO4QXBWP-CDrnksJz.js} +1 -1
  41. package/cline-hub/webview/assets/{gitGraphDiagram-IHSO6WYX-CXyn8Gj2.js → gitGraphDiagram-IHSO6WYX-Dy2SJx0-.js} +1 -1
  42. package/cline-hub/webview/assets/{highlighted-body-OFNGDK62-DpHwdPpz.js → highlighted-body-OFNGDK62-C3mWNVLk.js} +1 -1
  43. package/cline-hub/webview/assets/index-5GupTUxj.js +10 -0
  44. package/cline-hub/webview/assets/{infoDiagram-FWYZ7A6U-DBZY9zM-.js → infoDiagram-FWYZ7A6U-CBIO2hmL.js} +1 -1
  45. package/cline-hub/webview/assets/{ishikawaDiagram-FXEZZL3T-Rh3zXKIS.js → ishikawaDiagram-FXEZZL3T-PWD3Ibf0.js} +1 -1
  46. package/cline-hub/webview/assets/{journeyDiagram-5HDEW3XC-DbYD6Rhk.js → journeyDiagram-5HDEW3XC-ClvGKUe-.js} +1 -1
  47. package/cline-hub/webview/assets/{kanban-definition-HUTT4EX6-Dy30HM0o.js → kanban-definition-HUTT4EX6-fJ1fFzUw.js} +1 -1
  48. package/cline-hub/webview/assets/{label-C9rgOuFB.js → label-Cc-KKAtI.js} +1 -1
  49. package/cline-hub/webview/assets/{line-CBwMHOzI.js → line-EjRXpHXo.js} +1 -1
  50. package/cline-hub/webview/assets/mermaid-GHXKKRXX-DEqX-Lt6.js +1 -0
  51. package/cline-hub/webview/assets/{mermaid-markup-Cz_j3z-l.js → mermaid-markup-WcaG3JKD.js} +2 -2
  52. package/cline-hub/webview/assets/{mermaid.core-DCXhdR1k.js → mermaid.core-DlJVPoVA.js} +3 -3
  53. package/cline-hub/webview/assets/{mindmap-definition-LN4V7U3C-Bv51RAOX.js → mindmap-definition-LN4V7U3C-ZtuDCKE2.js} +1 -1
  54. package/cline-hub/webview/assets/{pegDiagram-2B236MQR-CMLkFu44.js → pegDiagram-2B236MQR-5kpPEH6L.js} +1 -1
  55. package/cline-hub/webview/assets/{pieDiagram-ENE6RG2P-BihbdkOv.js → pieDiagram-ENE6RG2P-cWlQRWsJ.js} +1 -1
  56. package/cline-hub/webview/assets/{quadrantDiagram-ABIIQ3AL-NZXE5SM5.js → quadrantDiagram-ABIIQ3AL-DeQgeOJA.js} +1 -1
  57. package/cline-hub/webview/assets/{railroadDiagram-RFXS5EU6-BnGd80hL.js → railroadDiagram-RFXS5EU6-D6A3-IXZ.js} +1 -1
  58. package/cline-hub/webview/assets/{requirementDiagram-TGXJPOKE-lNZY1MhN.js → requirementDiagram-TGXJPOKE-DSW4-mJO.js} +1 -1
  59. package/cline-hub/webview/assets/{sankeyDiagram-HTMAVEWB-OKhHqNo8.js → sankeyDiagram-HTMAVEWB-BP2CkHWV.js} +1 -1
  60. package/cline-hub/webview/assets/{sequenceDiagram-DBY2YBRQ-Bu2D_epn.js → sequenceDiagram-DBY2YBRQ-3PEfVMPW.js} +1 -1
  61. package/cline-hub/webview/assets/{settings-view-C2aSYMQY.js → settings-view-BS_lJimt.js} +1 -1
  62. package/cline-hub/webview/assets/{stateDiagram-2N3HPSRC-IzqUgC6d.js → stateDiagram-2N3HPSRC-B2JZL3aV.js} +1 -1
  63. package/cline-hub/webview/assets/stateDiagram-v2-6OUMAXLB-oGTg9O5j.js +1 -0
  64. package/cline-hub/webview/assets/{swimlanes-5IMT3BWC-CwxkHjVR.js → swimlanes-5IMT3BWC-CXyRqDVY.js} +1 -1
  65. package/cline-hub/webview/assets/swimlanesDiagram-G3AALYLV-CJ6z3fOQ.js +8 -0
  66. package/cline-hub/webview/assets/{switch-DQs_IHZT.js → switch-D32hLf2L.js} +1 -1
  67. package/cline-hub/webview/assets/{timeline-definition-FHXFAJF6-6wzaRyoh.js → timeline-definition-FHXFAJF6-BJnNE25n.js} +1 -1
  68. package/cline-hub/webview/assets/{vennDiagram-L72KCM5P-Di_Jj13D.js → vennDiagram-L72KCM5P-B_kZbemU.js} +1 -1
  69. package/cline-hub/webview/assets/vscode-DBs95Ixu.js +1 -0
  70. package/cline-hub/webview/assets/{wardleyDiagram-EHGQE667-C7_7mCTw.js → wardleyDiagram-EHGQE667-D11b5-Tq.js} +1 -1
  71. package/cline-hub/webview/assets/{xychartDiagram-FW5EYKEG-B6VevO2h.js → xychartDiagram-FW5EYKEG-kjsCjYFY.js} +1 -1
  72. package/cline-hub/webview/index.html +2 -2
  73. package/package.json +1 -1
  74. package/cline-hub/webview/assets/Chat-D_CMvq3q.js +0 -197
  75. package/cline-hub/webview/assets/channel-DQ4_qmRW.js +0 -1
  76. package/cline-hub/webview/assets/classDiagram-OUVF2IWQ-By5wmSUa.js +0 -1
  77. package/cline-hub/webview/assets/classDiagram-v2-EOCWNBFH-By5wmSUa.js +0 -1
  78. package/cline-hub/webview/assets/flowDiagram-23GEKE2U-CXSS5WEs.js +0 -1
  79. package/cline-hub/webview/assets/index-CygM3wBm.js +0 -10
  80. package/cline-hub/webview/assets/mermaid-GHXKKRXX-BGry6bOW.js +0 -1
  81. package/cline-hub/webview/assets/stateDiagram-v2-6OUMAXLB-Bcqj5vYN.js +0 -1
  82. package/cline-hub/webview/assets/swimlanesDiagram-G3AALYLV-DfEc389A.js +0 -8
  83. package/cline-hub/webview/assets/vscode-CAVw_AZi.js +0 -1
@@ -1,2 +1,2 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t}from"./src-Cz8bXOH0.js";import{c as n}from"./chunk-WYO6CB5R-Ck-9wAQ2.js";import{t as r}from"./chunk-VAUOI2AC-Cf1Uelo3.js";import{n as i}from"./mermaid-parser-CUZ6GPid.js";var a={parse:e(async e=>{let n=await i(`info`,e);t.debug(n)},`parse`)},o={version:`11.16.0`},s={parser:a,db:{getVersion:e(()=>o.version,`getVersion`)},renderer:{draw:e((e,i,a)=>{t.debug(`rendering info diagram
1
+ import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t}from"./src-Cz8bXOH0.js";import{c as n}from"./chunk-WYO6CB5R-BQDKJ2Op.js";import{t as r}from"./chunk-VAUOI2AC-IC4V3R7w.js";import{n as i}from"./mermaid-parser-CUZ6GPid.js";var a={parse:e(async e=>{let n=await i(`info`,e);t.debug(n)},`parse`)},o={version:`11.16.0`},s={parser:a,db:{getVersion:e(()=>o.version,`getVersion`)},renderer:{draw:e((e,i,a)=>{t.debug(`rendering info diagram
2
2
  `+e);let o=r(i);n(o,100,400,!0),o.append(`g`).append(`text`).attr(`x`,100).attr(`y`,40).attr(`class`,`version`).attr(`font-size`,32).style(`text-anchor`,`middle`).text(`v${a}`)},`draw`)}};export{s as diagram};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-Cz8bXOH0.js";import{H as t,K as n,U as r,a as i,c as a,s as o,v as s,w as c,x as l,y as u}from"./chunk-WYO6CB5R-Ck-9wAQ2.js";import{p as d}from"./chunk-ICXQ74PX-b1EXixGM.js";import{t as f}from"./chunk-VAUOI2AC-Cf1Uelo3.js";import{t as p}from"./rough.esm-CSKSodPl.js";var m=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,14],i=[1,12],a=[1,13],o=[6,7,8],s=[1,20],c=[1,18],l=[1,19],u=[6,7,11],d=[1,6,13,14],f=[1,23],p=[1,24],m=[1,6,7,11,13,14],h={trace:e(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:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 15:r.addNode(a[s-1].length,a[s].trim());break;case 16:r.addNode(0,a[s].trim());break}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:a},t(o,[2,3]),{1:[2,2]},t(o,[2,4]),t(o,[2,5]),{1:[2,6],6:r,12:15,13:i,14:a},{6:r,9:16,12:11,13:i,14:a},{6:s,7:c,10:17,11:l},t(u,[2,18],{14:[1,21]}),t(u,[2,16]),t(u,[2,17]),{6:s,7:c,10:22,11:l},{1:[2,7],6:r,12:15,13:i,14:a},t(d,[2,14],{7:f,11:p}),t(m,[2,8]),t(m,[2,9]),t(m,[2,10]),t(u,[2,15]),t(d,[2,13],{7:f,11:p}),t(m,[2,11]),t(m,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-Cz8bXOH0.js";import{H as t,K as n,U as r,a as i,c as a,s as o,v as s,w as c,x as l,y as u}from"./chunk-WYO6CB5R-BQDKJ2Op.js";import{p as d}from"./chunk-ICXQ74PX-CW82p2Y4.js";import{t as f}from"./chunk-VAUOI2AC-IC4V3R7w.js";import{t as p}from"./rough.esm-CSKSodPl.js";var m=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,14],i=[1,12],a=[1,13],o=[6,7,8],s=[1,20],c=[1,18],l=[1,19],u=[6,7,11],d=[1,6,13,14],f=[1,23],p=[1,24],m=[1,6,7,11,13,14],h={trace:e(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:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 15:r.addNode(a[s-1].length,a[s].trim());break;case 16:r.addNode(0,a[s].trim());break}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:a},t(o,[2,3]),{1:[2,2]},t(o,[2,4]),t(o,[2,5]),{1:[2,6],6:r,12:15,13:i,14:a},{6:r,9:16,12:11,13:i,14:a},{6:s,7:c,10:17,11:l},t(u,[2,18],{14:[1,21]}),t(u,[2,16]),t(u,[2,17]),{6:s,7:c,10:22,11:l},{1:[2,7],6:r,12:15,13:i,14:a},t(d,[2,14],{7:f,11:p}),t(m,[2,8]),t(m,[2,9]),t(m,[2,10]),t(u,[2,15]),t(d,[2,13],{7:f,11:p}),t(m,[2,11]),t(m,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};h.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,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:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(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:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{p as t}from"./src-Cz8bXOH0.js";import{H as n,K as r,U as i,a,c as o,v as s,w as c,x as l,y as u}from"./chunk-WYO6CB5R-Ck-9wAQ2.js";import{t as d}from"./arc-C6pGbJrV.js";import{t as f}from"./chunk-5VM5RSS4-ZNzvKenW.js";import{a as p,n as m,o as h,s as g}from"./chunk-32BRIVSS-j1_za_Du.js";var _=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,8,10,11,12,14,16,17,18],r=[1,9],i=[1,10],a=[1,11],o=[1,12],s=[1,13],c=[1,14],l={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:`error`,4:`journey`,6:`EOF`,8:`SPACE`,10:`NEWLINE`,11:`title`,12:`acc_title`,13:`acc_title_value`,14:`acc_descr`,15:`acc_descr_value`,16:`acc_descr_multiline_value`,17:`section`,18:`taskName`,19:`taskData`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 10:case 11:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 12:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:r.addTask(a[s-1],a[s]),this.$=`task`;break}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},t(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:i,14:a,16:o,17:s,18:c},t(n,[2,7],{1:[2,1]}),t(n,[2,3]),{9:15,11:r,12:i,14:a,16:o,17:s,18:c},t(n,[2,5]),t(n,[2,6]),t(n,[2,8]),{13:[1,16]},{15:[1,17]},t(n,[2,11]),t(n,[2,12]),{19:[1,18]},t(n,[2,4]),t(n,[2,9]),t(n,[2,10]),t(n,[2,13])],defaultActions:{},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{p as t}from"./src-Cz8bXOH0.js";import{H as n,K as r,U as i,a,c as o,v as s,w as c,x as l,y as u}from"./chunk-WYO6CB5R-BQDKJ2Op.js";import{t as d}from"./arc-C6pGbJrV.js";import{t as f}from"./chunk-5VM5RSS4-ZNzvKenW.js";import{a as p,n as m,o as h,s as g}from"./chunk-32BRIVSS-CSG4V8l0.js";var _=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,8,10,11,12,14,16,17,18],r=[1,9],i=[1,10],a=[1,11],o=[1,12],s=[1,13],c=[1,14],l={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:`error`,4:`journey`,6:`EOF`,8:`SPACE`,10:`NEWLINE`,11:`title`,12:`acc_title`,13:`acc_title_value`,14:`acc_descr`,15:`acc_descr_value`,16:`acc_descr_multiline_value`,17:`section`,18:`taskName`,19:`taskData`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 10:case 11:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 12:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:r.addTask(a[s-1],a[s]),this.$=`task`;break}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},t(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:i,14:a,16:o,17:s,18:c},t(n,[2,7],{1:[2,1]}),t(n,[2,3]),{9:15,11:r,12:i,14:a,16:o,17:s,18:c},t(n,[2,5]),t(n,[2,6]),t(n,[2,8]),{13:[1,16]},{15:[1,17]},t(n,[2,11]),t(n,[2,12]),{19:[1,18]},t(n,[2,4]),t(n,[2,9]),t(n,[2,10]),t(n,[2,13])],defaultActions:{},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};l.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,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:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(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:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t}from"./src-Cz8bXOH0.js";import{$ as n,J as r,et as i,f as a,nt as o,x as s,z as c}from"./chunk-WYO6CB5R-Ck-9wAQ2.js";import"./chunk-ICXQ74PX-b1EXixGM.js";import{t as l}from"./chunk-VAUOI2AC-Cf1Uelo3.js";import"./chunk-HOUHSVGY-BvOEf_91.js";import"./chunk-Q4XR5HBZ-BoWdsCmn.js";import{t as u}from"./chunk-5VM5RSS4-ZNzvKenW.js";import"./chunk-OGEWGWER-CdgEnhpe.js";import"./chunk-C7G6YPKG-DhC39wbm.js";import{a as d,c as f,i as p}from"./chunk-ZGVPDNZ5-BgjMe3Ki.js";import{n as m,t as h}from"./chunk-ZIRB5QZD-C6fEPe3t.js";var g=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,31],h=[6,7,11,24],g=[1,6,13,16,17,20,23],_=[1,35],v=[1,36],y=[1,6,7,11,13,16,17,20,23],b=[1,38],x={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`KANBAN`,11:`EOF`,13:`SPACELIST`,16:`ICON`,17:`CLASS`,20:`NODE_DSTART`,21:`NODE_DESCR`,22:`NODE_DEND`,23:`NODE_ID`,24:`SHAPE_DATA`},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,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s-1].id),r.addNode(a[s-2].length,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 16:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 17:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 18:case 23:r.decorateNode({class:a[s]});break;case 19:r.getLogger().trace(`SPACELIST`);break;case 20:r.getLogger().trace(`Node: `,a[s-1].id),r.addNode(0,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 21:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 22:r.decorateNode({icon:a[s]});break;case 27:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 28:this.$={id:a[s],descr:a[s],type:0};break;case 29:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 30:this.$=a[s-1]+a[s];break;case 31:this.$=a[s];break}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},t(l,[2,3]),{1:[2,2]},t(l,[2,4]),t(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:r,9:22,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:u,7:d,10:23,11:f},t(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:s,23:c}),t(p,[2,19]),t(p,[2,21],{15:30,24:m}),t(p,[2,22]),t(p,[2,23]),t(h,[2,25]),t(h,[2,26]),t(h,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:f},{1:[2,7],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},t(g,[2,14],{7:_,11:v}),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(p,[2,16],{15:37,24:m}),t(p,[2,17]),t(p,[2,18]),t(p,[2,20],{24:b}),t(h,[2,31]),{21:[1,39]},{22:[1,40]},t(g,[2,13],{7:_,11:v}),t(y,[2,11]),t(y,[2,12]),t(p,[2,15],{24:b}),t(h,[2,30]),{22:[1,41]},t(h,[2,27]),t(h,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t}from"./src-Cz8bXOH0.js";import{$ as n,J as r,et as i,f as a,nt as o,x as s,z as c}from"./chunk-WYO6CB5R-BQDKJ2Op.js";import"./chunk-ICXQ74PX-CW82p2Y4.js";import{t as l}from"./chunk-VAUOI2AC-IC4V3R7w.js";import"./chunk-HOUHSVGY-BK-KWdyz.js";import"./chunk-Q4XR5HBZ-BfwJ-RaF.js";import{t as u}from"./chunk-5VM5RSS4-ZNzvKenW.js";import"./chunk-OGEWGWER-C67_IQqL.js";import"./chunk-C7G6YPKG-hGGgXHCs.js";import{a as d,c as f,i as p}from"./chunk-ZGVPDNZ5-CXHgucG6.js";import{n as m,t as h}from"./chunk-ZIRB5QZD-C6fEPe3t.js";var g=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,31],h=[6,7,11,24],g=[1,6,13,16,17,20,23],_=[1,35],v=[1,36],y=[1,6,7,11,13,16,17,20,23],b=[1,38],x={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`KANBAN`,11:`EOF`,13:`SPACELIST`,16:`ICON`,17:`CLASS`,20:`NODE_DSTART`,21:`NODE_DESCR`,22:`NODE_DEND`,23:`NODE_ID`,24:`SHAPE_DATA`},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,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s-1].id),r.addNode(a[s-2].length,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 16:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 17:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 18:case 23:r.decorateNode({class:a[s]});break;case 19:r.getLogger().trace(`SPACELIST`);break;case 20:r.getLogger().trace(`Node: `,a[s-1].id),r.addNode(0,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 21:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 22:r.decorateNode({icon:a[s]});break;case 27:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 28:this.$={id:a[s],descr:a[s],type:0};break;case 29:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 30:this.$=a[s-1]+a[s];break;case 31:this.$=a[s];break}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},t(l,[2,3]),{1:[2,2]},t(l,[2,4]),t(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:r,9:22,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:u,7:d,10:23,11:f},t(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:s,23:c}),t(p,[2,19]),t(p,[2,21],{15:30,24:m}),t(p,[2,22]),t(p,[2,23]),t(h,[2,25]),t(h,[2,26]),t(h,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:f},{1:[2,7],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},t(g,[2,14],{7:_,11:v}),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(p,[2,16],{15:37,24:m}),t(p,[2,17]),t(p,[2,18]),t(p,[2,20],{24:b}),t(h,[2,31]),{21:[1,39]},{22:[1,40]},t(g,[2,13],{7:_,11:v}),t(y,[2,11]),t(y,[2,12]),t(p,[2,15],{24:b}),t(h,[2,30]),{22:[1,41]},t(h,[2,27]),t(h,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};x.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,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:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(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:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{a as e}from"./rolldown-runtime-CNC7AqOf.js";import{i as t,r as n}from"./bundle-mjs-D3mlU5Wg.js";import{A as r,B as i,Bt as a,D as o,E as s,F as c,H as l,Ht as u,I as d,L as f,Nt as p,O as m,P as h,Q as g,R as _,Rt as v,S as y,T as b,Vt as x,_ as S,a as C,b as w,c as T,ct as E,d as D,dt as O,et as k,f as ee,h as te,i as A,k as j,l as M,o as N,ot as P,r as F,s as I,st as ne,u as re,v as L,x as ie,xt as ae,y as oe,z as se}from"./vscode-CAVw_AZi.js";import{$ as ce,A as R,At as z,Ct as le,D as B,E as ue,Et as V,F as de,G as H,I as U,M as W,N as G,O as fe,Ot as K,P as pe,Q as me,St as he,T as ge,X as _e,Z as ve,_t as ye,at as be,bt as xe,ct as Se,d as Ce,dt as we,et as Te,f as Ee,ft as De,gt as Oe,h as ke,ht as q,it as Ae,j as je,jt as Me,k as Ne,kt as Pe,m as Fe,mt as J,nt as Y,ot as Ie,p as Le,pt as Re,rt as ze,st as Be,tt as Ve,u as He,vt as Ue,w as We,xt as Ge,yt as Ke}from"./index-CygM3wBm.js";var X=e(t(),1);function qe(e){let[t,n]=X.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}var Je=b(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Ye=b(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Xe=b(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),Ze=b(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),Qe=b(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),$e=b(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),et=b(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),tt=X.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:o=!1,nativeButton:s=!0,id:c,payload:l,handle:u,...d}=e,f=U(!0),p=u?.store??f?.store;if(!p)throw Error(a(79));let h=m(c),g=p.useState(`floatingRootContext`),_=p.useState(`isOpenedByTrigger`,h),v=p.useState(`triggerPopupId`,h),b=X.useRef(null),{registerTrigger:x,isMountedByThisTrigger:S}=Be(h,b,p,{payload:l}),{getButtonProps:C,buttonRef:w}=y({disabled:o,native:s}),T=Ke(g,{enabled:g!=null}),E=ge(()=>p.select(`open`),e=>{p.set(`openMethod`,e)}),D={disabled:o,open:_},O=p.useState(`triggerProps`,S);return j(`button`,e,{state:D,ref:[w,t,x,b],props:[T.reference,O,E,{[he]:``,id:h,"aria-haspopup":`dialog`,"aria-expanded":_,"aria-controls":v},d,C],stateAttributesMapping:Y})});function nt(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var rt=X.createContext(null),it=X.createContext(null);function Z(){let e=X.useContext(rt);if(e===null)throw Error(a(60));return e}function at(){let e=X.useContext(it);if(e===null)throw Error(a(61));return e}var ot=(e,t)=>Object.is(e,t);function st(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function ct(e,t,n){return!e||e.length===0?!1:e.some(e=>e!==void 0&&st(t,e,n))}function lt(e,t,n){return!e||e.length===0?-1:e.findIndex(e=>e!==void 0&&st(e,t,n))}function ut(e,t,n){return e.filter(e=>!st(t,e,n))}function dt(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}var Q=n();function ft(e){return e!=null&&e.length>0&&typeof e[0]==`object`&&e[0]!=null&&`items`in e[0]}function pt(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(ft(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function mt(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return dt(e)}function ht(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?dt(e.value):dt(e)}function gt(e,t,n){function r(){return mt(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){let n=t,i=ft(n)?n.flatMap(e=>e.items):n;if(typeof e!=`object`||!e){let t=i.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=i.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function _t(e,t,n){return e.reduce((e,r,i)=>(i>0&&e.push(`, `),e.push((0,Q.jsx)(X.Fragment,{children:gt(r,t,n)},i)),e),[])}var $={id:q(e=>e.id),labelId:q(e=>e.labelId),modal:q(e=>e.modal),multiple:q(e=>e.multiple),items:q(e=>e.items),itemToStringLabel:q(e=>e.itemToStringLabel),itemToStringValue:q(e=>e.itemToStringValue),isItemEqualToValue:q(e=>e.isItemEqualToValue),value:q(e=>e.value),hasSelectedValue:q(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:ht(t,r)!==``}),hasNullItemLabel:q((e,t)=>t?pt(e.items):!1),open:q(e=>e.open),mounted:q(e=>e.mounted),forceMount:q(e=>e.forceMount),transitionStatus:q(e=>e.transitionStatus),openMethod:q(e=>e.openMethod),activeIndex:q(e=>e.activeIndex),selectedIndex:q(e=>e.selectedIndex),isActive:q((e,t)=>e.activeIndex===t),isSelected:q((e,t)=>{let n=e.isItemEqualToValue,r=e.value;return e.multiple?Array.isArray(r)&&r.some(e=>st(t,e,n)):st(t,r,n)}),isSelectedByFocus:q((e,t)=>e.selectedIndex===t),popupProps:q(e=>e.popupProps),triggerProps:q(e=>e.triggerProps),triggerElement:q(e=>e.triggerElement),positionerElement:q(e=>e.positionerElement),listElement:q(e=>e.listElement),popupSide:q(e=>e.popupSide),scrollUpArrowVisible:q(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:q(e=>e.scrollDownArrowVisible),hasScrollArrows:q(e=>e.hasScrollArrows)};function vt(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}function yt(e){let{id:t,value:n,defaultValue:a=null,onValueChange:o,open:s,defaultOpen:l=!1,onOpenChange:d,name:p,form:m,autoComplete:g,disabled:v=!1,readOnly:y=!1,required:b=!1,modal:S=!0,actionsRef:C,inputRef:w,onOpenChangeComplete:T,items:D,multiple:O=!1,itemToStringLabel:j,itemToStringValue:N,isItemEqualToValue:P=ot,highlightItemOnHover:I=!0,children:ae}=e,{clearErrors:oe}=ee(),{setDirty:se,setTouched:ce,setFocused:R,validityData:z,setFilled:le,name:B,disabled:ue,validation:V,validationMode:de}=te(),H=re({id:t}),U=ue||v,W=B??p,[G,fe]=L({controlled:n,default:O?a??ne:a,name:`Select`,state:`value`}),[K,pe]=L({controlled:s,default:l,name:`Select`,state:`open`}),me=X.useRef([]),he=X.useRef([]),ge=X.useRef(null),_e=X.useRef(null),ve=X.useRef(0),ye=X.useRef(null),xe=X.useRef([]),Ce=X.useRef(!1),we=X.useRef(null),Te=X.useRef(null),Ee=X.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),ke=X.useRef(!1),{mounted:q,setMounted:je,transitionStatus:Me}=De(K),{openMethod:Ne,triggerProps:Fe}=We(K),Y=u(()=>new Re({id:H,labelId:void 0,modal:S,multiple:O,itemToStringLabel:j,itemToStringValue:N,isItemEqualToValue:P,value:G,open:K,mounted:q,transitionStatus:Me,items:D,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,Le=J(Y,$.activeIndex),Be=J(Y,$.selectedIndex),Ve=J(Y,$.triggerElement),He=J(Y,$.positionerElement),Ge=qe(Ne),Je=Ne??Ge??null,Ye=X.useMemo(()=>O?``:ht(G,N),[O,G,N]),Xe=X.useMemo(()=>O&&Array.isArray(G)?G.map(e=>ht(e,N)):ht(G,N),[O,G,N]);M(Pe(Y.state.triggerElement),H,G,f(()=>Xe),!U,p);let Ze=X.useRef(G),Qe=O?Array.isArray(G)&&G.length>0:G!=null&&ht(G,N)!==``;x(()=>{G!==Ze.current&&Y.set(`forceMount`,!0)},[Y,G]),x(()=>{le(Qe)},[Qe,le]),x(function(){let e=xe.current,t;if(O){let n=Array.isArray(G)?G:[];if(n.length===0)t=null;else{let r=n[n.length-1],i=lt(e,r,P);t=i===-1?null:i}}else{let n=lt(e,G,P);t=n===-1?null:n}t===null&&(Te.current=null),!K&&Y.set(`selectedIndex`,t)},[Qe,O,K,G,xe,P,Y,Te]);function $e(e){let t=z.initialValue;return Array.isArray(e)&&Array.isArray(t)?!vt(e,t,(e,t)=>st(e,t,P)):e!==t}ie(G,()=>{oe(W),se($e(G)),V.change(G)});let et=f((e,t)=>{d?.(e,t),!t.isCanceled&&(pe(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(ce(!0),R(!1),de===`onBlur`&&V.commit(G)))}),tt=f(()=>{je(!1),Y.update({activeIndex:null,openMethod:null}),T?.(!1)});Se({enabled:!C,open:K,ref:ge,onComplete(){K||tt()}}),X.useImperativeHandle(C,()=>({unmount:tt}),[tt]);let Z=f((e,t)=>{o?.(e,t),!t.isCanceled&&fe(e)}),at=f(()=>{let e=Y.state.listElement||ge.current;if(!e)return;let t=F(e.scrollHeight,e.clientHeight),n=A(e.scrollTop,t),r=n>0,i=n<t;Y.state.scrollUpArrowVisible!==r&&Y.set(`scrollUpArrowVisible`,r),Y.state.scrollDownArrowVisible!==i&&Y.set(`scrollDownArrowVisible`,i)}),ct=be({open:K,onOpenChange:et,elements:{reference:Ve,floating:He}}),ut=Ke(ct,{enabled:!y&&!U,event:`mousedown`}),dt=Ue(ct),ft=Ae(ct,{enabled:!y&&!U,listRef:me,activeIndex:Le,selectedIndex:Be,disabledIndices:ne,onNavigate(e){e===null&&!K||Y.set(`activeIndex`,e)},focusItemOnHover:I}),pt=ze(ct,{enabled:!y&&!U&&(K||!O),listRef:he,activeIndex:Le,selectedIndex:Be,disabledIndices:e=>nt(me.current[e]),onMatch(e){K?Y.set(`activeIndex`,e):Z(xe.current[e],i(`none`))},onTyping(e){Ce.current=e}}),gt=X.useMemo(()=>{let e=r(pt.reference,ft.reference,dt.reference,ut.reference,Fe);return H&&(e.id=H),e},[ut.reference,pt.reference,ft.reference,dt.reference,Fe,H]),_t=X.useMemo(()=>r(Ie,pt.floating,ft.floating,dt.floating),[pt.floating,ft.floating,dt.floating]),yt=ft.item??E;Oe(()=>{Y.update({popupProps:_t,triggerProps:gt})}),x(()=>{Y.update({id:H,modal:S,multiple:O,value:G,open:K,mounted:q,transitionStatus:Me,popupProps:_t,triggerProps:gt,items:D,itemToStringLabel:j,itemToStringValue:N,isItemEqualToValue:P,openMethod:Je})},[Y,H,S,O,G,K,q,Me,_t,gt,D,j,N,P,Je]);let bt=X.useMemo(()=>({store:Y,name:W,required:b,disabled:U,readOnly:y,multiple:O,highlightItemOnHover:I,setValue:Z,setOpen:et,listRef:me,popupRef:ge,scrollHandlerRef:_e,handleScrollArrowVisibility:at,scrollArrowsMountedCountRef:ve,itemProps:yt,valueRef:ye,valuesRef:xe,labelsRef:he,typingRef:Ce,selectionRef:Ee,firstItemTextRef:we,selectedItemTextRef:Te,validation:V,onOpenChangeComplete:T,alignItemWithTriggerActiveRef:ke,initialValueRef:Ze}),[Y,W,b,U,y,O,I,Z,et,yt,V,T,at]),xt=_(w,V.inputRef),St=O&&Array.isArray(G)&&G.length>0,Ct=O?void 0:W,wt=X.useMemo(()=>!O||!Array.isArray(G)||!W?null:G.map(e=>{let t=ht(e,N);return(0,Q.jsx)(`input`,{type:`hidden`,form:m,name:W,value:t,disabled:U},t)}),[O,G,m,W,N,U]);return(0,Q.jsx)(rt.Provider,{value:bt,children:(0,Q.jsxs)(it.Provider,{value:ct,children:[ae,(0,Q.jsx)(`input`,{...V.getValidationProps(U,{onFocus(){Y.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||U||y)return;let t=e.currentTarget.value,n=i(k,e.nativeEvent);function r(){if(O)return;let e=t.toLowerCase(),r=xe.current.findIndex(t=>ht(t,N).toLowerCase()===e||mt(t,j).toLowerCase()===e);r===-1&&(r=xe.current.findIndex((t,n)=>{let r=he.current[n];return r!=null&&r.toLowerCase()===e}));let i=r===-1?void 0:xe.current[r];i!=null&&Z(i,n)}Y.set(`forceMount`,!0),queueMicrotask(r)}}),id:H&&Ct==null?`${H}-hidden-input`:void 0,form:m,name:Ct,autoComplete:g,value:Ye,disabled:U,required:b&&!St,readOnly:y,ref:xt,style:W?c:h,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),wt]})})}function bt(e,t){return e??t}var xt=2,St=400,Ct={...Ve,...S,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},wt=X.forwardRef(function(e,t){let{render:n,className:a,id:o,disabled:s=!1,nativeButton:c=!0,style:u,...p}=e,{setTouched:m,setFocused:h,validationMode:g,state:_,disabled:b}=te(),{labelId:x}=D(),{store:S,setOpen:C,selectionRef:w,validation:T,readOnly:E,required:ee,alignItemWithTriggerActiveRef:A,disabled:M}=Z(),N=b||M||s,P=J(S,$.open),F=J(S,$.mounted),I=J(S,$.value),ne=J(S,$.triggerProps),L=J(S,$.positionerElement),ie=J(S,$.listElement),ae=J(S,$.popupSide),oe=J(S,$.id),se=J(S,$.labelId),ce=J(S,$.hasSelectedValue),R=F&&L?ae:null,le=o??oe,B=bt(x,se);re({id:le});let ue=Pe(L),V=X.useRef(null),{getButtonProps:de,buttonRef:H}=y({disabled:N,native:c}),U=f(e=>{S.set(`triggerElement`,e)}),W=v(),G=v(),fe=v();X.useEffect(()=>{if(P)return fe.start(St,()=>{w.current.allowUnselectedMouseUp=!0,w.current.allowSelectedMouseUp=!0}),()=>{fe.clear()};w.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},G.clear()},[P,w,G,fe]);let K=r(ne,{id:le,role:`combobox`,"aria-expanded":P?`true`:`false`,"aria-haspopup":`listbox`,"aria-controls":P?ie?.id??z(L)?.id:void 0,"aria-labelledby":B,"aria-readonly":E||void 0,"aria-required":ee||void 0,tabIndex:N?-1:0,onFocus(e){h(!0),P&&A.current&&C(!1,i(k,e.nativeEvent)),W.start(0,()=>{S.set(`forceMount`,!0)})},onBlur(e){O(L,e.relatedTarget)||(m(!0),h(!1),g===`onBlur`&&T.commit(I))},onMouseDown(e){if(P)return;let t=d(e.currentTarget);function n(e){if(!V.current)return;let t=e.target;if(O(V.current,t)||O(ue.current,t))return;let n=He(V.current);e.clientX>=n.left-xt&&e.clientX<=n.right+xt&&e.clientY>=n.top-xt&&e.clientY<=n.bottom+xt||C(!1,i(l,e))}G.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},p,de),pe=T.getValidationProps(N,K);pe.role=`combobox`;let me={..._,open:P,disabled:N,value:I,readOnly:E,popupSide:R,placeholder:!ce};return j(`button`,e,{ref:[t,V,H,U],state:me,stateAttributesMapping:Ct,props:pe})}),Tt={value:()=>null},Et=X.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,{store:c,valueRef:l}=Z(),u=J(c,$.value),d=J(c,$.items),f=J(c,$.itemToStringLabel),p=J(c,$.hasSelectedValue),m=!p&&a!=null&&i==null,h=J(c,$.hasNullItemLabel,m),g={value:u,placeholder:!p},_=null;return _=typeof i==`function`?i(u):i??(!p&&a!=null&&!h?a:Array.isArray(u)?_t(u,d,f):gt(u,d,f)),j(`span`,e,{state:g,ref:[t,l],props:[{children:_},s],stateAttributesMapping:Tt})}),Dt=X.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=Z();return j(`span`,e,{state:{open:J(o,$.open)},ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:Y})}),Ot=X.createContext(void 0),kt=X.forwardRef(function(e,t){let{store:n}=Z(),r=J(n,$.mounted),i=J(n,$.forceMount);return r||i?(0,Q.jsx)(Ot.Provider,{value:!0,children:(0,Q.jsx)(Ge,{ref:t,...e})}):null}),At=X.createContext(void 0);function jt(){let e=X.useContext(At);if(!e)throw Error(a(59));return e}function Mt(e,t){e&&Object.assign(e.style,t)}var Nt={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},Pt={position:`fixed`},Ft=X.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:a,render:o,side:s=`bottom`,align:c=`center`,sideOffset:l=0,alignOffset:u=0,collisionBoundary:d=`clipping-ancestors`,collisionPadding:p,arrowPadding:m=5,sticky:h=!1,disableAnchorTracking:g,alignItemWithTrigger:_=!0,collisionAvoidance:v=le,style:y,...b}=e,{store:S,listRef:C,labelsRef:w,alignItemWithTriggerActiveRef:T,selectedItemTextRef:E,valuesRef:D,initialValueRef:O,popupRef:ee,setValue:te}=Z(),A=at(),j=J(S,$.open),M=J(S,$.mounted),N=J(S,$.modal),P=J(S,$.value),F=J(S,$.openMethod),I=J(S,$.positionerElement),ne=J(S,$.triggerElement),re=J(S,$.isItemEqualToValue),L=J(S,$.transitionStatus),ie=X.useRef(null),ae=X.useRef(null),[oe,se]=X.useState(_),R=M&&oe&&F!==`touch`;!M&&oe!==_&&se(_),x(()=>{M||($.scrollUpArrowVisible(S.state)&&S.set(`scrollUpArrowVisible`,!1),$.scrollDownArrowVisible(S.state)&&S.set(`scrollDownArrowVisible`,!1))},[S,M]),X.useImperativeHandle(T,()=>R),Ce((R||N)&&j,F===`touch`,I,ne);let z=ce({anchor:n,floatingRootContext:A,positionMethod:r,mounted:M,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:m,collisionBoundary:d,collisionPadding:p,sticky:h,disableAnchorTracking:g??R,collisionAvoidance:v,keepMounted:!0}),B=R?`none`:z.side,ue=R?Pt:z.positionerStyles,V={open:j,side:B,align:z.align,anchorHidden:z.anchorHidden};x(()=>{S.set(`popupSide`,z.side)},[S,z.side]);let de=ve(e,V,{styles:ue,transitionStatus:L,props:b,refs:[t,f(e=>{S.set(`positionerElement`,e)})],hidden:!M,inert:!j}),H=X.useRef(0),U=f(e=>{if(e.size===0&&H.current===0||D.current.length===0)return;let t=H.current;if(H.current=e.size,e.size===t)return;let n=i(k);if(t!==0&&!S.state.multiple&&P!==null&&lt(D.current,P,re)===-1){let e=O.current,t=e!=null&&lt(D.current,e,re)!==-1?e:null;te(t,n),t===null&&(S.set(`selectedIndex`,null),E.current=null)}if(t!==0&&S.state.multiple&&Array.isArray(P)){let e=e=>lt(D.current,e,re)!==-1,t=P.filter(t=>e(t));(t.length!==P.length||t.some(e=>!ct(P,e,re)))&&(te(t,n),t.length===0&&(S.set(`selectedIndex`,null),E.current=null))}if(j&&R){S.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};Mt(I,e),Mt(ee.current,e)}}),W=X.useMemo(()=>({...z,side:B,alignItemWithTriggerActive:R,setControlledAlignItemWithTrigger:se,scrollUpArrowRef:ie,scrollDownArrowRef:ae}),[z,B,R,se]);return(0,Q.jsx)(Ee,{elementsRef:C,labelsRef:w,onMapChange:U,children:(0,Q.jsxs)(At.Provider,{value:W,children:[M&&N&&(0,Q.jsx)(fe,{inert:_e(!j),cutout:ne}),de]})})}),It={...Te,...we},Lt=X.forwardRef(function(e,t){let{render:n,className:r,style:a,finalFocus:s,...c}=e,{store:l,popupRef:u,onOpenChangeComplete:m,setOpen:h,valueRef:g,firstItemTextRef:_,selectedItemTextRef:v,multiple:y,handleScrollArrowVisibility:b,scrollHandlerRef:S,listRef:w,highlightItemOnHover:T}=Z(),{side:E,align:D,alignItemWithTriggerActive:O,isPositioned:k,setControlledAlignItemWithTrigger:ee}=jt(),te=Le(!0)!=null,A=at(),M=o(),{nonce:F,disableStyleElements:ne}=N(),re=J(l,$.id),L=J(l,$.open),ie=J(l,$.openMethod),oe=J(l,$.mounted),ce=J(l,$.popupProps),z=J(l,$.transitionStatus),le=J(l,$.triggerElement),B=J(l,$.positionerElement),ue=J(l,$.listElement),V=X.useRef(!1),de=X.useRef(!1),H=X.useRef({}),U=K(),W=f(e=>{if(!B||!u.current||!de.current)return;if(V.current||!O){b();return}let t=B.style.top===`0px`,n=B.style.bottom===`0px`;if(!t&&!n){b();return}let r=Bt(B),i=Vt(B.getBoundingClientRect().height,`y`,r),a=d(B),o=ae(B),s=o.getComputedStyle(B),c=parseFloat(s.marginTop),l=parseFloat(s.marginBottom),f=Rt(o.getComputedStyle(u.current)),p=Math.min(a.documentElement.clientHeight-c-l,f),m=e.scrollTop,h=zt(e),g=0,_=null,v=!1,y=!1,x=e=>{B.style.height=`${e}px`},S=(t,n)=>{let r=C(t,0,p-i);r>0&&x(i+r),e.scrollTop=n,p-(i+r)<=1&&(V.current=!0),b()},w=t?h-m:m,T=Math.min(i+w,p);if(g=T,w<=1){S(w,t?h:0);return}if(p-T>1?t?y=!0:_=0:(v=!0,n&&m<h&&(_=m-(w-(i+w-p)))),g=Math.ceil(g),g!==0&&x(g),y||_!=null){let t=zt(e),n=y?t:C(_,0,t);Math.abs(e.scrollTop-n)>1&&(e.scrollTop=n)}(v||g>=p-1)&&(V.current=!0),b()});X.useImperativeHandle(S,()=>W,[W]),Se({open:L,ref:u,onComplete(){L&&m?.(!0)}});let G={open:L,transitionStatus:z,side:E,align:D};x(()=>{!B||!u.current||Object.keys(H.current).length||(H.current={top:B.style.top||`0`,left:B.style.left||`0`,right:B.style.right,height:B.style.height,bottom:B.style.bottom,minHeight:B.style.minHeight,maxHeight:B.style.maxHeight,marginTop:B.style.marginTop,marginBottom:B.style.marginBottom})},[u,B]),x(()=>{L||O||(de.current=!1,V.current=!1,Mt(B,H.current))},[L,O,B,u]),x(()=>{let e=u.current;if(!L||!le||!B||!e||O&&!k||l.state.transitionStatus===`ending`)return;if(!O){de.current=!0,U.request(b),e.style.removeProperty(`--transform-origin`);return}let t=Wt(e);e.style.removeProperty(`--transform-origin`);try{let t=v.current;t?.isConnected||(t=!$.hasSelectedValue(l.state)&&_.current?.isConnected?_.current:null);let n=g.current,r=ae(B),i=r.getComputedStyle(B),a=r.getComputedStyle(e),o=d(le),s=Bt(le),c=Ht(le.getBoundingClientRect(),s),u=Ht(B.getBoundingClientRect(),s),f=c.height,m=ue||e,h=m.scrollHeight,y=parseFloat(a.borderBottomWidth),x=parseFloat(i.marginTop)||10,S=parseFloat(i.marginBottom)||10,E=parseFloat(i.minHeight)||100,D=Rt(a),O=o.documentElement.clientHeight-x-S,k=o.documentElement.clientWidth,te=O-c.bottom+f,A,j=M===`rtl`?c.right-u.width:c.left,N=0;if(t&&n){let e=Ht(n.getBoundingClientRect(),s);A=Ht(t.getBoundingClientRect(),s),j=u.left+(M===`rtl`?e.right-A.right:e.left-A.left);let r=e.top-c.top+e.height/2;N=A.top-u.top+A.height/2-r}let P=te+N+S+y,F=Math.min(O,P),I=O-x-S,ne=P-F,re=k-5;B.style.left=`${C(j,5,re-u.width)}px`,B.style.height=`${F}px`,B.style.maxHeight=`none`,B.style.marginTop=`${x}px`,B.style.marginBottom=`${S}px`,e.style.height=`100%`;let L=zt(m),ie=ne>=L-1;ie&&(F=Math.min(O,u.height)-(ne-L));let oe=c.top<20||c.bottom>O-20||Math.ceil(F)+1<Math.min(h,E),se=(r.visualViewport?.scale??1)!==1&&p;if(oe||se){de.current=!0,Mt(B,H.current),ee(!1);return}let ce=Math.max(E,F);if(ie){let e=Math.max(0,O-P);B.style.top=u.height>=I?`0`:`${e}px`,B.style.height=`${F}px`,m.scrollTop=zt(m)}else B.style.bottom=`0`,m.scrollTop=ne;if(A){let t=u.top,n=u.height,r=A.top+A.height/2,i=C(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(`--transform-origin`,`50% ${i}%`)}(ce===O||F>=D)&&(V.current=!0),b(),T&&l.state.selectedIndex===null&&l.state.activeIndex===null&&w.current[0]!=null&&l.set(`activeIndex`,0),de.current=!0}finally{t()}},[l,L,B,le,g,_,v,u,b,O,ee,U,ue,w,T,M,k]),X.useEffect(()=>{if(!O||!B||!L)return;let e=ae(B);function t(e){h(!1,i(P,e))}return se(e,`resize`,t)},[h,O,B,L]);let fe={...ue?{role:`presentation`,"aria-orientation":void 0}:{role:`listbox`,"aria-multiselectable":y||void 0,id:`${re}-list`},onKeyDown(e){te&&R.has(e.key)&&e.stopPropagation()},onScroll(e){ue||W(e.currentTarget)},...O&&{style:ue?{height:`100%`}:Nt}},pe=j(`div`,e,{ref:[t,u],state:G,stateAttributesMapping:It,props:[ce,fe,me(z),{className:!ue&&O?I.className:void 0},c]});return(0,Q.jsxs)(X.Fragment,{children:[!ne&&I.getElement(F),(0,Q.jsx)(xe,{context:A,modal:!1,disabled:!oe,openInteractionType:ie,returnFocus:s,restoreFocus:!0,children:pe})]})});function Rt(e){let t=e.maxHeight||``;return t.endsWith(`px`)&&parseFloat(t)||1/0}function zt(e){return F(e.scrollHeight,e.clientHeight)}function Bt(e){return ye.getScale(e)}function Vt(e,t,n){return e/n[t]}function Ht(e,t){return V({x:Vt(e.x,`x`,t),y:Vt(e.y,`y`,t),width:Vt(e.width,`x`,t),height:Vt(e.height,`y`,t)})}var Ut=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function Wt(e){let{style:t}=e,n={};for(let[e,r]of Ut)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of Ut){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var Gt=X.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o,scrollHandlerRef:s}=Z(),{alignItemWithTriggerActive:c}=jt(),l=J(o,$.hasScrollArrows),u=J(o,$.openMethod),d=J(o,$.multiple),p={id:`${J(o,$.id)}-list`,role:`listbox`,"aria-multiselectable":d||void 0,onScroll(e){s.current?.(e.currentTarget)},...c&&{style:Nt},className:l&&u!==`touch`?I.className:void 0};return j(`div`,e,{ref:[t,f(e=>{o.set(`listElement`,e)})],props:[p,a]})}),Kt=X.createContext(void 0);function qt(){let e=X.useContext(Kt);if(!e)throw Error(a(57));return e}var Jt=X.memo(X.forwardRef(function(e,t){let{render:n,className:r,style:a,value:o=null,label:s,disabled:c=!1,nativeButton:l=!1,...u}=e,d=X.useRef(null),f=ke({label:s,textRef:d,indexGuessBehavior:Fe.GuessFromOrder}),{store:p,itemProps:m,setOpen:h,setValue:_,selectionRef:v,typingRef:b,valuesRef:S,multiple:C,selectedItemTextRef:w,disabled:T,readOnly:E}=Z(),D=J(p,$.isActive,f.index),O=J(p,$.open),k=J(p,$.isSelected,o),ee=J(p,$.isSelectedByFocus,f.index),te=J(p,$.isItemEqualToValue),A=f.index,M=A!==-1,N=X.useRef(null);x(()=>{if(!M)return;let e=S.current;return e[A]=o,()=>{delete e[A]}},[M,A,o,S]),x(()=>{if(!M)return;let e=p.state.value,t=e;C&&Array.isArray(e)&&(t=e.length>0?e[e.length-1]:void 0),t!==void 0&&st(o,t,te)&&(p.set(`selectedIndex`,A),d.current&&(w.current=d.current))},[M,A,C,te,p,o,w]);let P=X.useRef(null),F=X.useRef(`mouse`),I=X.useRef(!1),{getButtonProps:ne,buttonRef:re}=y({disabled:c,focusableWhenDisabled:!0,native:l,composite:!0}),L={disabled:c,selected:k,highlighted:D};function ie(e){if(T||E)return;let t=p.state.value;if(C){let n=Array.isArray(t)?t:[],r=k?ut(n,o,te):[...n,o];_(r,i(g,e))}else _(o,i(g,e)),h(!1,i(g,e))}function ae(){v.current.dragY=0}let oe={role:`option`,"aria-selected":k,tabIndex:O&&D?0:-1,onKeyDown(e){P.current=e.key,p.set(`activeIndex`,A),e.key===` `&&b.current&&e.preventDefault()},onClick(e){let t=e.type===`click`&&F.current!==`touch`,n=e.nativeEvent.pointerType,r=t&&Me(e.nativeEvent)&&(n!==void 0||D),i=t&&!r&&!I.current;I.current=!1,!(e.type===`keydown`&&P.current===null)&&(c||e.type===`keydown`&&P.current===` `&&b.current||i||(P.current=null,ie(e.nativeEvent)))},onPointerEnter(e){F.current=e.pointerType},onPointerMove(e){if(e.pointerType===`mouse`&&e.buttons===1){let t=v.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){F.current=e.pointerType,I.current=!0,ae()},onMouseUp(){if(ae(),c||F.current===`touch`||I.current)return;let e=!v.current.allowSelectedMouseUp&&k,t=!v.current.allowUnselectedMouseUp&&!k;e||t||(I.current=!0,N.current?.click(),I.current=!1)}},se=j(`div`,e,{ref:[re,t,f.ref,N],state:L,props:[m,oe,u,ne]}),ce=X.useMemo(()=>({selected:k,index:A,textRef:d,selectedByFocus:ee,hasRegistered:M}),[k,A,d,ee,M]);return(0,Q.jsx)(Kt.Provider,{value:ce,children:se})})),Yt=X.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=qt();return n||r?(0,Q.jsx)(Xt,{...e,ref:t}):null}),Xt=X.memo(X.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=qt(),c=X.useRef(null),{transitionStatus:l,setMounted:u}=De(s),d=j(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:we});return Se({open:s,ref:c,onComplete(){s||u(!1)}}),d})),Zt=X.memo(X.forwardRef(function(e,t){let{index:n,textRef:r,selectedByFocus:i,hasRegistered:a}=qt(),{firstItemTextRef:o,selectedItemTextRef:s}=Z(),{render:c,className:l,style:u,...d}=e;return j(`div`,e,{ref:[X.useCallback(e=>{e&&(a&&n===0&&(o.current=e),a&&i&&(s.current=e))},[o,s,n,i,a]),t,r],props:d})})),Qt=X.forwardRef(function(e,t){let{render:n,className:r,style:i,direction:a,keepMounted:o=!1,...s}=e,c=a===`up`,{store:l,popupRef:u,listRef:d,handleScrollArrowVisibility:f,scrollArrowsMountedCountRef:p}=Z(),{side:m,scrollDownArrowRef:h,scrollUpArrowRef:g}=jt(),_=J(l,c?$.scrollUpArrowVisible:$.scrollDownArrowVisible),y=J(l,$.openMethod),b=_&&y!==`touch`,S=v(),C=c?g:h,{mounted:w,transitionStatus:T,setMounted:E}=De(b);x(()=>(p.current+=1,l.state.hasScrollArrows||l.set(`hasScrollArrows`,!0),()=>{p.current=Math.max(0,p.current-1),p.current===0&&l.state.hasScrollArrows&&l.set(`hasScrollArrows`,!1)}),[l,p]),Se({open:b,ref:C,onComplete(){b||E(!1)}});let D=j(`div`,e,{ref:[t,C],state:{direction:a,visible:b,side:m,transitionStatus:T},props:[{"aria-hidden":!0,children:c?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||S.isStarted())return;l.set(`activeIndex`,null);function t(){let e=l.state.listElement??u.current;if(!e)return;l.set(`activeIndex`,null),f();let n=F(e.scrollHeight,e.clientHeight),r=A(e.scrollTop,n),i=r===(c?0:n),a=d.current;if(r!==e.scrollTop&&(e.scrollTop=r),a.length===0&&l.set(c?`scrollUpArrowVisible`:`scrollDownArrowVisible`,!i),i){S.clear();return}if(a.length>0){let t=C.current?.offsetHeight||0;e.scrollTop=$t(a,c,r,e.clientHeight,t,n)}S.start(40,t)}S.start(40,t)},onMouseLeave(){S.clear()}},s],stateAttributesMapping:we});return w||o?D:null});function $t(e,t,n,r,i,a){if(t){let t=0,r=n+i-1;for(let n=0;n<e.length;n+=1){let i=e[n];if(i&&i.offsetTop>=r){t=n;break}}let o=Math.max(0,t-1),s=e[o];return o<t&&s?A(s.offsetTop-i,a):0}let o=e.length-1,s=n+r-i+1;for(let t=0;t<e.length;t+=1){let n=e[t];if(n&&n.offsetTop+n.offsetHeight>s){o=Math.max(0,t-1);break}}let c=Math.min(e.length-1,o+1),l=e[c];return c>o&&l?A(l.offsetTop+l.offsetHeight-r+i,a):a}var en=X.forwardRef(function(e,t){return(0,Q.jsx)(Qt,{...e,ref:t,direction:`down`})}),tn=X.forwardRef(function(e,t){return(0,Q.jsx)(Qt,{...e,ref:t,direction:`up`})}),nn=yt;function rn({className:e,...t}){return(0,Q.jsx)(Et,{"data-slot":`select-value`,className:s(`flex flex-1 text-left`,e),...t})}function an({className:e,size:t=`default`,children:n,...r}){return(0,Q.jsxs)(wt,{"data-slot":`select-trigger`,"data-size":t,className:s(`flex w-fit cursor-pointer items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...r,children:[n,(0,Q.jsx)(Dt,{render:(0,Q.jsx)(Je,{className:`pointer-events-none size-4 text-muted-foreground`})})]})}function on({className:e,children:t,side:n=`bottom`,sideOffset:r=4,align:i=`center`,alignOffset:a=0,alignItemWithTrigger:o=!0,...c}){return(0,Q.jsx)(kt,{children:(0,Q.jsx)(Ft,{side:n,sideOffset:r,align:i,alignOffset:a,alignItemWithTrigger:o,className:`isolate z-50`,children:(0,Q.jsxs)(Lt,{"data-slot":`select-content`,"data-align-trigger":o,className:s(`relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...c,children:[(0,Q.jsx)(cn,{}),(0,Q.jsx)(Gt,{children:t}),(0,Q.jsx)(ln,{})]})})})}function sn({className:e,children:t,...n}){return(0,Q.jsxs)(Jt,{"data-slot":`select-item`,className:s(`relative flex w-full cursor-pointer items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...n,children:[(0,Q.jsx)(Zt,{className:`flex flex-1 shrink-0 gap-2 whitespace-nowrap`,children:t}),(0,Q.jsx)(Yt,{render:(0,Q.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex size-4 items-center justify-center`}),children:(0,Q.jsx)(H,{className:`pointer-events-none`})})]})}function cn({className:e,...t}){return(0,Q.jsx)(tn,{"data-slot":`select-scroll-up-button`,className:s(`top-0 z-10 flex w-full cursor-pointer items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4`,e),...t,children:(0,Q.jsx)(Ye,{})})}function ln({className:e,...t}){return(0,Q.jsx)(en,{"data-slot":`select-scroll-down-button`,className:s(`bottom-0 z-10 flex w-full cursor-pointer items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4`,e),...t,children:(0,Q.jsx)(Je,{})})}function un(e){return pe(e,X.useContext(de)?`drawer`:`dialog`)}function dn({...e}){return(0,Q.jsx)(un,{"data-slot":`dialog`,...e})}function fn({...e}){return(0,Q.jsx)(tt,{"data-slot":`dialog-trigger`,...e})}function pn({...e}){return(0,Q.jsx)(B,{"data-slot":`dialog-portal`,...e})}function mn({className:e,...t}){return(0,Q.jsx)(G,{"data-slot":`dialog-overlay`,className:s(`fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function hn({className:e,children:t,showCloseButton:n=!0,...r}){return(0,Q.jsxs)(pn,{children:[(0,Q.jsx)(mn,{}),(0,Q.jsxs)(Ne,{"data-slot":`dialog-content`,className:s(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-background p-4 text-sm ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r,children:[t,n&&(0,Q.jsxs)(W,{"data-slot":`dialog-close`,render:(0,Q.jsx)(oe,{variant:`ghost`,className:`absolute top-2 right-2`,size:`icon-sm`}),children:[(0,Q.jsx)(et,{}),(0,Q.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function gn({className:e,...t}){return(0,Q.jsx)(`div`,{"data-slot":`dialog-header`,className:s(`flex flex-col gap-2`,e),...t})}function _n({className:e,showCloseButton:t=!1,children:n,...r}){return(0,Q.jsxs)(`div`,{"data-slot":`dialog-footer`,className:s(`-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end`,e),...r,children:[n,t&&(0,Q.jsx)(W,{render:(0,Q.jsx)(oe,{variant:`outline`}),children:`Close`})]})}function vn({className:e,...t}){return(0,Q.jsx)(ue,{"data-slot":`dialog-title`,className:s(`text-base leading-none font-medium`,e),...t})}function yn({className:e,...t}){return(0,Q.jsx)(je,{"data-slot":`dialog-description`,className:s(`text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}function bn({className:e,...t}){return(0,Q.jsx)(`textarea`,{"data-slot":`textarea`,className:s(`flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,e),...t})}function xn({className:e,...t}){return(0,Q.jsx)(`div`,{"data-slot":`input-group`,role:`group`,className:s(`group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5`,e),...t})}var Sn=w(`flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4`,{variants:{align:{"inline-start":`order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]`,"inline-end":`order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]`,"block-start":`order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2`,"block-end":`order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2`}},defaultVariants:{align:`inline-start`}});function Cn({className:e,align:t=`inline-start`,...n}){return(0,Q.jsx)(`div`,{role:`group`,"data-slot":`input-group-addon`,"data-align":t,className:s(Sn({align:t}),e),onClick:e=>{e.target.closest(`button`)||e.currentTarget.parentElement?.querySelector(`input`)?.focus()},...n})}var wn=w(`flex items-center gap-2 text-sm shadow-none`,{variants:{size:{xs:`h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5`,sm:``,"icon-xs":`size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0`,"icon-sm":`size-8 p-0 has-[>svg]:p-0`}},defaultVariants:{size:`xs`}});function Tn({className:e,type:t=`button`,variant:n=`ghost`,size:r=`xs`,...i}){return(0,Q.jsx)(oe,{type:t,"data-size":r,variant:n,className:s(wn({size:r}),e),...i})}function En({className:e,...t}){return(0,Q.jsx)(T,{"data-slot":`input-group-control`,className:s(`flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent`,e),...t})}function Dn({className:e,...t}){return(0,Q.jsx)(bn,{"data-slot":`input-group-control`,className:s(`flex-1 resize-none rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent`,e),...t})}function On({className:e,...t}){return(0,Q.jsx)(`label`,{"data-slot":`label`,className:s(`flex items-center gap-2 text-base leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,e),...t})}export{ct as A,ft as C,ot as D,st as E,Xe as F,Je as I,$e as M,Qe as N,lt as O,Ze as P,pt as S,ht as T,sn as _,En as a,bt as b,dn as c,_n as d,gn as f,on as g,nn as h,Tn as i,et as j,ut as k,hn as l,fn as m,xn as n,Dn as o,vn as p,Cn as r,bn as s,On as t,yn as u,an as v,mt as w,vt as x,rn as y};
1
+ import{a as e}from"./rolldown-runtime-CNC7AqOf.js";import{i as t,r as n}from"./bundle-mjs-D3mlU5Wg.js";import{A as r,B as i,Bt as a,D as o,E as s,F as c,H as l,Ht as u,I as d,L as f,Nt as p,O as m,P as h,Q as g,R as _,Rt as v,S as y,T as b,Vt as x,_ as S,a as C,b as w,c as T,ct as E,d as D,dt as O,et as k,f as ee,h as te,i as A,k as j,l as M,o as N,ot as P,r as F,s as I,st as ne,u as re,v as L,x as ie,xt as ae,y as oe,z as se}from"./vscode-DBs95Ixu.js";import{$ as ce,A as R,At as z,Ct as le,D as B,E as ue,Et as V,F as de,G as H,I as U,M as W,N as G,O as fe,Ot as K,P as pe,Q as me,St as he,T as ge,X as _e,Z as ve,_t as ye,at as be,bt as xe,ct as Se,d as Ce,dt as we,et as Te,f as Ee,ft as De,gt as Oe,h as ke,ht as q,it as Ae,j as je,jt as Me,k as Ne,kt as Pe,m as Fe,mt as J,nt as Y,ot as Ie,p as Le,pt as Re,rt as ze,st as Be,tt as Ve,u as He,vt as Ue,w as We,xt as Ge,yt as Ke}from"./index-5GupTUxj.js";var X=e(t(),1);function qe(e){let[t,n]=X.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}var Je=b(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Ye=b(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Xe=b(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),Ze=b(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),Qe=b(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),$e=b(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),et=b(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),tt=X.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:o=!1,nativeButton:s=!0,id:c,payload:l,handle:u,...d}=e,f=U(!0),p=u?.store??f?.store;if(!p)throw Error(a(79));let h=m(c),g=p.useState(`floatingRootContext`),_=p.useState(`isOpenedByTrigger`,h),v=p.useState(`triggerPopupId`,h),b=X.useRef(null),{registerTrigger:x,isMountedByThisTrigger:S}=Be(h,b,p,{payload:l}),{getButtonProps:C,buttonRef:w}=y({disabled:o,native:s}),T=Ke(g,{enabled:g!=null}),E=ge(()=>p.select(`open`),e=>{p.set(`openMethod`,e)}),D={disabled:o,open:_},O=p.useState(`triggerProps`,S);return j(`button`,e,{state:D,ref:[w,t,x,b],props:[T.reference,O,E,{[he]:``,id:h,"aria-haspopup":`dialog`,"aria-expanded":_,"aria-controls":v},d,C],stateAttributesMapping:Y})});function nt(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var rt=X.createContext(null),it=X.createContext(null);function Z(){let e=X.useContext(rt);if(e===null)throw Error(a(60));return e}function at(){let e=X.useContext(it);if(e===null)throw Error(a(61));return e}var ot=(e,t)=>Object.is(e,t);function st(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function ct(e,t,n){return!e||e.length===0?!1:e.some(e=>e!==void 0&&st(t,e,n))}function lt(e,t,n){return!e||e.length===0?-1:e.findIndex(e=>e!==void 0&&st(e,t,n))}function ut(e,t,n){return e.filter(e=>!st(t,e,n))}function dt(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}var Q=n();function ft(e){return e!=null&&e.length>0&&typeof e[0]==`object`&&e[0]!=null&&`items`in e[0]}function pt(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(ft(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function mt(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return dt(e)}function ht(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?dt(e.value):dt(e)}function gt(e,t,n){function r(){return mt(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){let n=t,i=ft(n)?n.flatMap(e=>e.items):n;if(typeof e!=`object`||!e){let t=i.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=i.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function _t(e,t,n){return e.reduce((e,r,i)=>(i>0&&e.push(`, `),e.push((0,Q.jsx)(X.Fragment,{children:gt(r,t,n)},i)),e),[])}var $={id:q(e=>e.id),labelId:q(e=>e.labelId),modal:q(e=>e.modal),multiple:q(e=>e.multiple),items:q(e=>e.items),itemToStringLabel:q(e=>e.itemToStringLabel),itemToStringValue:q(e=>e.itemToStringValue),isItemEqualToValue:q(e=>e.isItemEqualToValue),value:q(e=>e.value),hasSelectedValue:q(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:ht(t,r)!==``}),hasNullItemLabel:q((e,t)=>t?pt(e.items):!1),open:q(e=>e.open),mounted:q(e=>e.mounted),forceMount:q(e=>e.forceMount),transitionStatus:q(e=>e.transitionStatus),openMethod:q(e=>e.openMethod),activeIndex:q(e=>e.activeIndex),selectedIndex:q(e=>e.selectedIndex),isActive:q((e,t)=>e.activeIndex===t),isSelected:q((e,t)=>{let n=e.isItemEqualToValue,r=e.value;return e.multiple?Array.isArray(r)&&r.some(e=>st(t,e,n)):st(t,r,n)}),isSelectedByFocus:q((e,t)=>e.selectedIndex===t),popupProps:q(e=>e.popupProps),triggerProps:q(e=>e.triggerProps),triggerElement:q(e=>e.triggerElement),positionerElement:q(e=>e.positionerElement),listElement:q(e=>e.listElement),popupSide:q(e=>e.popupSide),scrollUpArrowVisible:q(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:q(e=>e.scrollDownArrowVisible),hasScrollArrows:q(e=>e.hasScrollArrows)};function vt(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}function yt(e){let{id:t,value:n,defaultValue:a=null,onValueChange:o,open:s,defaultOpen:l=!1,onOpenChange:d,name:p,form:m,autoComplete:g,disabled:v=!1,readOnly:y=!1,required:b=!1,modal:S=!0,actionsRef:C,inputRef:w,onOpenChangeComplete:T,items:D,multiple:O=!1,itemToStringLabel:j,itemToStringValue:N,isItemEqualToValue:P=ot,highlightItemOnHover:I=!0,children:ae}=e,{clearErrors:oe}=ee(),{setDirty:se,setTouched:ce,setFocused:R,validityData:z,setFilled:le,name:B,disabled:ue,validation:V,validationMode:de}=te(),H=re({id:t}),U=ue||v,W=B??p,[G,fe]=L({controlled:n,default:O?a??ne:a,name:`Select`,state:`value`}),[K,pe]=L({controlled:s,default:l,name:`Select`,state:`open`}),me=X.useRef([]),he=X.useRef([]),ge=X.useRef(null),_e=X.useRef(null),ve=X.useRef(0),ye=X.useRef(null),xe=X.useRef([]),Ce=X.useRef(!1),we=X.useRef(null),Te=X.useRef(null),Ee=X.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),ke=X.useRef(!1),{mounted:q,setMounted:je,transitionStatus:Me}=De(K),{openMethod:Ne,triggerProps:Fe}=We(K),Y=u(()=>new Re({id:H,labelId:void 0,modal:S,multiple:O,itemToStringLabel:j,itemToStringValue:N,isItemEqualToValue:P,value:G,open:K,mounted:q,transitionStatus:Me,items:D,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,Le=J(Y,$.activeIndex),Be=J(Y,$.selectedIndex),Ve=J(Y,$.triggerElement),He=J(Y,$.positionerElement),Ge=qe(Ne),Je=Ne??Ge??null,Ye=X.useMemo(()=>O?``:ht(G,N),[O,G,N]),Xe=X.useMemo(()=>O&&Array.isArray(G)?G.map(e=>ht(e,N)):ht(G,N),[O,G,N]);M(Pe(Y.state.triggerElement),H,G,f(()=>Xe),!U,p);let Ze=X.useRef(G),Qe=O?Array.isArray(G)&&G.length>0:G!=null&&ht(G,N)!==``;x(()=>{G!==Ze.current&&Y.set(`forceMount`,!0)},[Y,G]),x(()=>{le(Qe)},[Qe,le]),x(function(){let e=xe.current,t;if(O){let n=Array.isArray(G)?G:[];if(n.length===0)t=null;else{let r=n[n.length-1],i=lt(e,r,P);t=i===-1?null:i}}else{let n=lt(e,G,P);t=n===-1?null:n}t===null&&(Te.current=null),!K&&Y.set(`selectedIndex`,t)},[Qe,O,K,G,xe,P,Y,Te]);function $e(e){let t=z.initialValue;return Array.isArray(e)&&Array.isArray(t)?!vt(e,t,(e,t)=>st(e,t,P)):e!==t}ie(G,()=>{oe(W),se($e(G)),V.change(G)});let et=f((e,t)=>{d?.(e,t),!t.isCanceled&&(pe(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(ce(!0),R(!1),de===`onBlur`&&V.commit(G)))}),tt=f(()=>{je(!1),Y.update({activeIndex:null,openMethod:null}),T?.(!1)});Se({enabled:!C,open:K,ref:ge,onComplete(){K||tt()}}),X.useImperativeHandle(C,()=>({unmount:tt}),[tt]);let Z=f((e,t)=>{o?.(e,t),!t.isCanceled&&fe(e)}),at=f(()=>{let e=Y.state.listElement||ge.current;if(!e)return;let t=F(e.scrollHeight,e.clientHeight),n=A(e.scrollTop,t),r=n>0,i=n<t;Y.state.scrollUpArrowVisible!==r&&Y.set(`scrollUpArrowVisible`,r),Y.state.scrollDownArrowVisible!==i&&Y.set(`scrollDownArrowVisible`,i)}),ct=be({open:K,onOpenChange:et,elements:{reference:Ve,floating:He}}),ut=Ke(ct,{enabled:!y&&!U,event:`mousedown`}),dt=Ue(ct),ft=Ae(ct,{enabled:!y&&!U,listRef:me,activeIndex:Le,selectedIndex:Be,disabledIndices:ne,onNavigate(e){e===null&&!K||Y.set(`activeIndex`,e)},focusItemOnHover:I}),pt=ze(ct,{enabled:!y&&!U&&(K||!O),listRef:he,activeIndex:Le,selectedIndex:Be,disabledIndices:e=>nt(me.current[e]),onMatch(e){K?Y.set(`activeIndex`,e):Z(xe.current[e],i(`none`))},onTyping(e){Ce.current=e}}),gt=X.useMemo(()=>{let e=r(pt.reference,ft.reference,dt.reference,ut.reference,Fe);return H&&(e.id=H),e},[ut.reference,pt.reference,ft.reference,dt.reference,Fe,H]),_t=X.useMemo(()=>r(Ie,pt.floating,ft.floating,dt.floating),[pt.floating,ft.floating,dt.floating]),yt=ft.item??E;Oe(()=>{Y.update({popupProps:_t,triggerProps:gt})}),x(()=>{Y.update({id:H,modal:S,multiple:O,value:G,open:K,mounted:q,transitionStatus:Me,popupProps:_t,triggerProps:gt,items:D,itemToStringLabel:j,itemToStringValue:N,isItemEqualToValue:P,openMethod:Je})},[Y,H,S,O,G,K,q,Me,_t,gt,D,j,N,P,Je]);let bt=X.useMemo(()=>({store:Y,name:W,required:b,disabled:U,readOnly:y,multiple:O,highlightItemOnHover:I,setValue:Z,setOpen:et,listRef:me,popupRef:ge,scrollHandlerRef:_e,handleScrollArrowVisibility:at,scrollArrowsMountedCountRef:ve,itemProps:yt,valueRef:ye,valuesRef:xe,labelsRef:he,typingRef:Ce,selectionRef:Ee,firstItemTextRef:we,selectedItemTextRef:Te,validation:V,onOpenChangeComplete:T,alignItemWithTriggerActiveRef:ke,initialValueRef:Ze}),[Y,W,b,U,y,O,I,Z,et,yt,V,T,at]),xt=_(w,V.inputRef),St=O&&Array.isArray(G)&&G.length>0,Ct=O?void 0:W,wt=X.useMemo(()=>!O||!Array.isArray(G)||!W?null:G.map(e=>{let t=ht(e,N);return(0,Q.jsx)(`input`,{type:`hidden`,form:m,name:W,value:t,disabled:U},t)}),[O,G,m,W,N,U]);return(0,Q.jsx)(rt.Provider,{value:bt,children:(0,Q.jsxs)(it.Provider,{value:ct,children:[ae,(0,Q.jsx)(`input`,{...V.getValidationProps(U,{onFocus(){Y.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||U||y)return;let t=e.currentTarget.value,n=i(k,e.nativeEvent);function r(){if(O)return;let e=t.toLowerCase(),r=xe.current.findIndex(t=>ht(t,N).toLowerCase()===e||mt(t,j).toLowerCase()===e);r===-1&&(r=xe.current.findIndex((t,n)=>{let r=he.current[n];return r!=null&&r.toLowerCase()===e}));let i=r===-1?void 0:xe.current[r];i!=null&&Z(i,n)}Y.set(`forceMount`,!0),queueMicrotask(r)}}),id:H&&Ct==null?`${H}-hidden-input`:void 0,form:m,name:Ct,autoComplete:g,value:Ye,disabled:U,required:b&&!St,readOnly:y,ref:xt,style:W?c:h,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),wt]})})}function bt(e,t){return e??t}var xt=2,St=400,Ct={...Ve,...S,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},wt=X.forwardRef(function(e,t){let{render:n,className:a,id:o,disabled:s=!1,nativeButton:c=!0,style:u,...p}=e,{setTouched:m,setFocused:h,validationMode:g,state:_,disabled:b}=te(),{labelId:x}=D(),{store:S,setOpen:C,selectionRef:w,validation:T,readOnly:E,required:ee,alignItemWithTriggerActiveRef:A,disabled:M}=Z(),N=b||M||s,P=J(S,$.open),F=J(S,$.mounted),I=J(S,$.value),ne=J(S,$.triggerProps),L=J(S,$.positionerElement),ie=J(S,$.listElement),ae=J(S,$.popupSide),oe=J(S,$.id),se=J(S,$.labelId),ce=J(S,$.hasSelectedValue),R=F&&L?ae:null,le=o??oe,B=bt(x,se);re({id:le});let ue=Pe(L),V=X.useRef(null),{getButtonProps:de,buttonRef:H}=y({disabled:N,native:c}),U=f(e=>{S.set(`triggerElement`,e)}),W=v(),G=v(),fe=v();X.useEffect(()=>{if(P)return fe.start(St,()=>{w.current.allowUnselectedMouseUp=!0,w.current.allowSelectedMouseUp=!0}),()=>{fe.clear()};w.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},G.clear()},[P,w,G,fe]);let K=r(ne,{id:le,role:`combobox`,"aria-expanded":P?`true`:`false`,"aria-haspopup":`listbox`,"aria-controls":P?ie?.id??z(L)?.id:void 0,"aria-labelledby":B,"aria-readonly":E||void 0,"aria-required":ee||void 0,tabIndex:N?-1:0,onFocus(e){h(!0),P&&A.current&&C(!1,i(k,e.nativeEvent)),W.start(0,()=>{S.set(`forceMount`,!0)})},onBlur(e){O(L,e.relatedTarget)||(m(!0),h(!1),g===`onBlur`&&T.commit(I))},onMouseDown(e){if(P)return;let t=d(e.currentTarget);function n(e){if(!V.current)return;let t=e.target;if(O(V.current,t)||O(ue.current,t))return;let n=He(V.current);e.clientX>=n.left-xt&&e.clientX<=n.right+xt&&e.clientY>=n.top-xt&&e.clientY<=n.bottom+xt||C(!1,i(l,e))}G.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},p,de),pe=T.getValidationProps(N,K);pe.role=`combobox`;let me={..._,open:P,disabled:N,value:I,readOnly:E,popupSide:R,placeholder:!ce};return j(`button`,e,{ref:[t,V,H,U],state:me,stateAttributesMapping:Ct,props:pe})}),Tt={value:()=>null},Et=X.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,{store:c,valueRef:l}=Z(),u=J(c,$.value),d=J(c,$.items),f=J(c,$.itemToStringLabel),p=J(c,$.hasSelectedValue),m=!p&&a!=null&&i==null,h=J(c,$.hasNullItemLabel,m),g={value:u,placeholder:!p},_=null;return _=typeof i==`function`?i(u):i??(!p&&a!=null&&!h?a:Array.isArray(u)?_t(u,d,f):gt(u,d,f)),j(`span`,e,{state:g,ref:[t,l],props:[{children:_},s],stateAttributesMapping:Tt})}),Dt=X.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=Z();return j(`span`,e,{state:{open:J(o,$.open)},ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:Y})}),Ot=X.createContext(void 0),kt=X.forwardRef(function(e,t){let{store:n}=Z(),r=J(n,$.mounted),i=J(n,$.forceMount);return r||i?(0,Q.jsx)(Ot.Provider,{value:!0,children:(0,Q.jsx)(Ge,{ref:t,...e})}):null}),At=X.createContext(void 0);function jt(){let e=X.useContext(At);if(!e)throw Error(a(59));return e}function Mt(e,t){e&&Object.assign(e.style,t)}var Nt={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},Pt={position:`fixed`},Ft=X.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:a,render:o,side:s=`bottom`,align:c=`center`,sideOffset:l=0,alignOffset:u=0,collisionBoundary:d=`clipping-ancestors`,collisionPadding:p,arrowPadding:m=5,sticky:h=!1,disableAnchorTracking:g,alignItemWithTrigger:_=!0,collisionAvoidance:v=le,style:y,...b}=e,{store:S,listRef:C,labelsRef:w,alignItemWithTriggerActiveRef:T,selectedItemTextRef:E,valuesRef:D,initialValueRef:O,popupRef:ee,setValue:te}=Z(),A=at(),j=J(S,$.open),M=J(S,$.mounted),N=J(S,$.modal),P=J(S,$.value),F=J(S,$.openMethod),I=J(S,$.positionerElement),ne=J(S,$.triggerElement),re=J(S,$.isItemEqualToValue),L=J(S,$.transitionStatus),ie=X.useRef(null),ae=X.useRef(null),[oe,se]=X.useState(_),R=M&&oe&&F!==`touch`;!M&&oe!==_&&se(_),x(()=>{M||($.scrollUpArrowVisible(S.state)&&S.set(`scrollUpArrowVisible`,!1),$.scrollDownArrowVisible(S.state)&&S.set(`scrollDownArrowVisible`,!1))},[S,M]),X.useImperativeHandle(T,()=>R),Ce((R||N)&&j,F===`touch`,I,ne);let z=ce({anchor:n,floatingRootContext:A,positionMethod:r,mounted:M,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:m,collisionBoundary:d,collisionPadding:p,sticky:h,disableAnchorTracking:g??R,collisionAvoidance:v,keepMounted:!0}),B=R?`none`:z.side,ue=R?Pt:z.positionerStyles,V={open:j,side:B,align:z.align,anchorHidden:z.anchorHidden};x(()=>{S.set(`popupSide`,z.side)},[S,z.side]);let de=ve(e,V,{styles:ue,transitionStatus:L,props:b,refs:[t,f(e=>{S.set(`positionerElement`,e)})],hidden:!M,inert:!j}),H=X.useRef(0),U=f(e=>{if(e.size===0&&H.current===0||D.current.length===0)return;let t=H.current;if(H.current=e.size,e.size===t)return;let n=i(k);if(t!==0&&!S.state.multiple&&P!==null&&lt(D.current,P,re)===-1){let e=O.current,t=e!=null&&lt(D.current,e,re)!==-1?e:null;te(t,n),t===null&&(S.set(`selectedIndex`,null),E.current=null)}if(t!==0&&S.state.multiple&&Array.isArray(P)){let e=e=>lt(D.current,e,re)!==-1,t=P.filter(t=>e(t));(t.length!==P.length||t.some(e=>!ct(P,e,re)))&&(te(t,n),t.length===0&&(S.set(`selectedIndex`,null),E.current=null))}if(j&&R){S.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};Mt(I,e),Mt(ee.current,e)}}),W=X.useMemo(()=>({...z,side:B,alignItemWithTriggerActive:R,setControlledAlignItemWithTrigger:se,scrollUpArrowRef:ie,scrollDownArrowRef:ae}),[z,B,R,se]);return(0,Q.jsx)(Ee,{elementsRef:C,labelsRef:w,onMapChange:U,children:(0,Q.jsxs)(At.Provider,{value:W,children:[M&&N&&(0,Q.jsx)(fe,{inert:_e(!j),cutout:ne}),de]})})}),It={...Te,...we},Lt=X.forwardRef(function(e,t){let{render:n,className:r,style:a,finalFocus:s,...c}=e,{store:l,popupRef:u,onOpenChangeComplete:m,setOpen:h,valueRef:g,firstItemTextRef:_,selectedItemTextRef:v,multiple:y,handleScrollArrowVisibility:b,scrollHandlerRef:S,listRef:w,highlightItemOnHover:T}=Z(),{side:E,align:D,alignItemWithTriggerActive:O,isPositioned:k,setControlledAlignItemWithTrigger:ee}=jt(),te=Le(!0)!=null,A=at(),M=o(),{nonce:F,disableStyleElements:ne}=N(),re=J(l,$.id),L=J(l,$.open),ie=J(l,$.openMethod),oe=J(l,$.mounted),ce=J(l,$.popupProps),z=J(l,$.transitionStatus),le=J(l,$.triggerElement),B=J(l,$.positionerElement),ue=J(l,$.listElement),V=X.useRef(!1),de=X.useRef(!1),H=X.useRef({}),U=K(),W=f(e=>{if(!B||!u.current||!de.current)return;if(V.current||!O){b();return}let t=B.style.top===`0px`,n=B.style.bottom===`0px`;if(!t&&!n){b();return}let r=Bt(B),i=Vt(B.getBoundingClientRect().height,`y`,r),a=d(B),o=ae(B),s=o.getComputedStyle(B),c=parseFloat(s.marginTop),l=parseFloat(s.marginBottom),f=Rt(o.getComputedStyle(u.current)),p=Math.min(a.documentElement.clientHeight-c-l,f),m=e.scrollTop,h=zt(e),g=0,_=null,v=!1,y=!1,x=e=>{B.style.height=`${e}px`},S=(t,n)=>{let r=C(t,0,p-i);r>0&&x(i+r),e.scrollTop=n,p-(i+r)<=1&&(V.current=!0),b()},w=t?h-m:m,T=Math.min(i+w,p);if(g=T,w<=1){S(w,t?h:0);return}if(p-T>1?t?y=!0:_=0:(v=!0,n&&m<h&&(_=m-(w-(i+w-p)))),g=Math.ceil(g),g!==0&&x(g),y||_!=null){let t=zt(e),n=y?t:C(_,0,t);Math.abs(e.scrollTop-n)>1&&(e.scrollTop=n)}(v||g>=p-1)&&(V.current=!0),b()});X.useImperativeHandle(S,()=>W,[W]),Se({open:L,ref:u,onComplete(){L&&m?.(!0)}});let G={open:L,transitionStatus:z,side:E,align:D};x(()=>{!B||!u.current||Object.keys(H.current).length||(H.current={top:B.style.top||`0`,left:B.style.left||`0`,right:B.style.right,height:B.style.height,bottom:B.style.bottom,minHeight:B.style.minHeight,maxHeight:B.style.maxHeight,marginTop:B.style.marginTop,marginBottom:B.style.marginBottom})},[u,B]),x(()=>{L||O||(de.current=!1,V.current=!1,Mt(B,H.current))},[L,O,B,u]),x(()=>{let e=u.current;if(!L||!le||!B||!e||O&&!k||l.state.transitionStatus===`ending`)return;if(!O){de.current=!0,U.request(b),e.style.removeProperty(`--transform-origin`);return}let t=Wt(e);e.style.removeProperty(`--transform-origin`);try{let t=v.current;t?.isConnected||(t=!$.hasSelectedValue(l.state)&&_.current?.isConnected?_.current:null);let n=g.current,r=ae(B),i=r.getComputedStyle(B),a=r.getComputedStyle(e),o=d(le),s=Bt(le),c=Ht(le.getBoundingClientRect(),s),u=Ht(B.getBoundingClientRect(),s),f=c.height,m=ue||e,h=m.scrollHeight,y=parseFloat(a.borderBottomWidth),x=parseFloat(i.marginTop)||10,S=parseFloat(i.marginBottom)||10,E=parseFloat(i.minHeight)||100,D=Rt(a),O=o.documentElement.clientHeight-x-S,k=o.documentElement.clientWidth,te=O-c.bottom+f,A,j=M===`rtl`?c.right-u.width:c.left,N=0;if(t&&n){let e=Ht(n.getBoundingClientRect(),s);A=Ht(t.getBoundingClientRect(),s),j=u.left+(M===`rtl`?e.right-A.right:e.left-A.left);let r=e.top-c.top+e.height/2;N=A.top-u.top+A.height/2-r}let P=te+N+S+y,F=Math.min(O,P),I=O-x-S,ne=P-F,re=k-5;B.style.left=`${C(j,5,re-u.width)}px`,B.style.height=`${F}px`,B.style.maxHeight=`none`,B.style.marginTop=`${x}px`,B.style.marginBottom=`${S}px`,e.style.height=`100%`;let L=zt(m),ie=ne>=L-1;ie&&(F=Math.min(O,u.height)-(ne-L));let oe=c.top<20||c.bottom>O-20||Math.ceil(F)+1<Math.min(h,E),se=(r.visualViewport?.scale??1)!==1&&p;if(oe||se){de.current=!0,Mt(B,H.current),ee(!1);return}let ce=Math.max(E,F);if(ie){let e=Math.max(0,O-P);B.style.top=u.height>=I?`0`:`${e}px`,B.style.height=`${F}px`,m.scrollTop=zt(m)}else B.style.bottom=`0`,m.scrollTop=ne;if(A){let t=u.top,n=u.height,r=A.top+A.height/2,i=C(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(`--transform-origin`,`50% ${i}%`)}(ce===O||F>=D)&&(V.current=!0),b(),T&&l.state.selectedIndex===null&&l.state.activeIndex===null&&w.current[0]!=null&&l.set(`activeIndex`,0),de.current=!0}finally{t()}},[l,L,B,le,g,_,v,u,b,O,ee,U,ue,w,T,M,k]),X.useEffect(()=>{if(!O||!B||!L)return;let e=ae(B);function t(e){h(!1,i(P,e))}return se(e,`resize`,t)},[h,O,B,L]);let fe={...ue?{role:`presentation`,"aria-orientation":void 0}:{role:`listbox`,"aria-multiselectable":y||void 0,id:`${re}-list`},onKeyDown(e){te&&R.has(e.key)&&e.stopPropagation()},onScroll(e){ue||W(e.currentTarget)},...O&&{style:ue?{height:`100%`}:Nt}},pe=j(`div`,e,{ref:[t,u],state:G,stateAttributesMapping:It,props:[ce,fe,me(z),{className:!ue&&O?I.className:void 0},c]});return(0,Q.jsxs)(X.Fragment,{children:[!ne&&I.getElement(F),(0,Q.jsx)(xe,{context:A,modal:!1,disabled:!oe,openInteractionType:ie,returnFocus:s,restoreFocus:!0,children:pe})]})});function Rt(e){let t=e.maxHeight||``;return t.endsWith(`px`)&&parseFloat(t)||1/0}function zt(e){return F(e.scrollHeight,e.clientHeight)}function Bt(e){return ye.getScale(e)}function Vt(e,t,n){return e/n[t]}function Ht(e,t){return V({x:Vt(e.x,`x`,t),y:Vt(e.y,`y`,t),width:Vt(e.width,`x`,t),height:Vt(e.height,`y`,t)})}var Ut=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function Wt(e){let{style:t}=e,n={};for(let[e,r]of Ut)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of Ut){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var Gt=X.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o,scrollHandlerRef:s}=Z(),{alignItemWithTriggerActive:c}=jt(),l=J(o,$.hasScrollArrows),u=J(o,$.openMethod),d=J(o,$.multiple),p={id:`${J(o,$.id)}-list`,role:`listbox`,"aria-multiselectable":d||void 0,onScroll(e){s.current?.(e.currentTarget)},...c&&{style:Nt},className:l&&u!==`touch`?I.className:void 0};return j(`div`,e,{ref:[t,f(e=>{o.set(`listElement`,e)})],props:[p,a]})}),Kt=X.createContext(void 0);function qt(){let e=X.useContext(Kt);if(!e)throw Error(a(57));return e}var Jt=X.memo(X.forwardRef(function(e,t){let{render:n,className:r,style:a,value:o=null,label:s,disabled:c=!1,nativeButton:l=!1,...u}=e,d=X.useRef(null),f=ke({label:s,textRef:d,indexGuessBehavior:Fe.GuessFromOrder}),{store:p,itemProps:m,setOpen:h,setValue:_,selectionRef:v,typingRef:b,valuesRef:S,multiple:C,selectedItemTextRef:w,disabled:T,readOnly:E}=Z(),D=J(p,$.isActive,f.index),O=J(p,$.open),k=J(p,$.isSelected,o),ee=J(p,$.isSelectedByFocus,f.index),te=J(p,$.isItemEqualToValue),A=f.index,M=A!==-1,N=X.useRef(null);x(()=>{if(!M)return;let e=S.current;return e[A]=o,()=>{delete e[A]}},[M,A,o,S]),x(()=>{if(!M)return;let e=p.state.value,t=e;C&&Array.isArray(e)&&(t=e.length>0?e[e.length-1]:void 0),t!==void 0&&st(o,t,te)&&(p.set(`selectedIndex`,A),d.current&&(w.current=d.current))},[M,A,C,te,p,o,w]);let P=X.useRef(null),F=X.useRef(`mouse`),I=X.useRef(!1),{getButtonProps:ne,buttonRef:re}=y({disabled:c,focusableWhenDisabled:!0,native:l,composite:!0}),L={disabled:c,selected:k,highlighted:D};function ie(e){if(T||E)return;let t=p.state.value;if(C){let n=Array.isArray(t)?t:[],r=k?ut(n,o,te):[...n,o];_(r,i(g,e))}else _(o,i(g,e)),h(!1,i(g,e))}function ae(){v.current.dragY=0}let oe={role:`option`,"aria-selected":k,tabIndex:O&&D?0:-1,onKeyDown(e){P.current=e.key,p.set(`activeIndex`,A),e.key===` `&&b.current&&e.preventDefault()},onClick(e){let t=e.type===`click`&&F.current!==`touch`,n=e.nativeEvent.pointerType,r=t&&Me(e.nativeEvent)&&(n!==void 0||D),i=t&&!r&&!I.current;I.current=!1,!(e.type===`keydown`&&P.current===null)&&(c||e.type===`keydown`&&P.current===` `&&b.current||i||(P.current=null,ie(e.nativeEvent)))},onPointerEnter(e){F.current=e.pointerType},onPointerMove(e){if(e.pointerType===`mouse`&&e.buttons===1){let t=v.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){F.current=e.pointerType,I.current=!0,ae()},onMouseUp(){if(ae(),c||F.current===`touch`||I.current)return;let e=!v.current.allowSelectedMouseUp&&k,t=!v.current.allowUnselectedMouseUp&&!k;e||t||(I.current=!0,N.current?.click(),I.current=!1)}},se=j(`div`,e,{ref:[re,t,f.ref,N],state:L,props:[m,oe,u,ne]}),ce=X.useMemo(()=>({selected:k,index:A,textRef:d,selectedByFocus:ee,hasRegistered:M}),[k,A,d,ee,M]);return(0,Q.jsx)(Kt.Provider,{value:ce,children:se})})),Yt=X.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=qt();return n||r?(0,Q.jsx)(Xt,{...e,ref:t}):null}),Xt=X.memo(X.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=qt(),c=X.useRef(null),{transitionStatus:l,setMounted:u}=De(s),d=j(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:we});return Se({open:s,ref:c,onComplete(){s||u(!1)}}),d})),Zt=X.memo(X.forwardRef(function(e,t){let{index:n,textRef:r,selectedByFocus:i,hasRegistered:a}=qt(),{firstItemTextRef:o,selectedItemTextRef:s}=Z(),{render:c,className:l,style:u,...d}=e;return j(`div`,e,{ref:[X.useCallback(e=>{e&&(a&&n===0&&(o.current=e),a&&i&&(s.current=e))},[o,s,n,i,a]),t,r],props:d})})),Qt=X.forwardRef(function(e,t){let{render:n,className:r,style:i,direction:a,keepMounted:o=!1,...s}=e,c=a===`up`,{store:l,popupRef:u,listRef:d,handleScrollArrowVisibility:f,scrollArrowsMountedCountRef:p}=Z(),{side:m,scrollDownArrowRef:h,scrollUpArrowRef:g}=jt(),_=J(l,c?$.scrollUpArrowVisible:$.scrollDownArrowVisible),y=J(l,$.openMethod),b=_&&y!==`touch`,S=v(),C=c?g:h,{mounted:w,transitionStatus:T,setMounted:E}=De(b);x(()=>(p.current+=1,l.state.hasScrollArrows||l.set(`hasScrollArrows`,!0),()=>{p.current=Math.max(0,p.current-1),p.current===0&&l.state.hasScrollArrows&&l.set(`hasScrollArrows`,!1)}),[l,p]),Se({open:b,ref:C,onComplete(){b||E(!1)}});let D=j(`div`,e,{ref:[t,C],state:{direction:a,visible:b,side:m,transitionStatus:T},props:[{"aria-hidden":!0,children:c?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||S.isStarted())return;l.set(`activeIndex`,null);function t(){let e=l.state.listElement??u.current;if(!e)return;l.set(`activeIndex`,null),f();let n=F(e.scrollHeight,e.clientHeight),r=A(e.scrollTop,n),i=r===(c?0:n),a=d.current;if(r!==e.scrollTop&&(e.scrollTop=r),a.length===0&&l.set(c?`scrollUpArrowVisible`:`scrollDownArrowVisible`,!i),i){S.clear();return}if(a.length>0){let t=C.current?.offsetHeight||0;e.scrollTop=$t(a,c,r,e.clientHeight,t,n)}S.start(40,t)}S.start(40,t)},onMouseLeave(){S.clear()}},s],stateAttributesMapping:we});return w||o?D:null});function $t(e,t,n,r,i,a){if(t){let t=0,r=n+i-1;for(let n=0;n<e.length;n+=1){let i=e[n];if(i&&i.offsetTop>=r){t=n;break}}let o=Math.max(0,t-1),s=e[o];return o<t&&s?A(s.offsetTop-i,a):0}let o=e.length-1,s=n+r-i+1;for(let t=0;t<e.length;t+=1){let n=e[t];if(n&&n.offsetTop+n.offsetHeight>s){o=Math.max(0,t-1);break}}let c=Math.min(e.length-1,o+1),l=e[c];return c>o&&l?A(l.offsetTop+l.offsetHeight-r+i,a):a}var en=X.forwardRef(function(e,t){return(0,Q.jsx)(Qt,{...e,ref:t,direction:`down`})}),tn=X.forwardRef(function(e,t){return(0,Q.jsx)(Qt,{...e,ref:t,direction:`up`})}),nn=yt;function rn({className:e,...t}){return(0,Q.jsx)(Et,{"data-slot":`select-value`,className:s(`flex flex-1 text-left`,e),...t})}function an({className:e,size:t=`default`,children:n,...r}){return(0,Q.jsxs)(wt,{"data-slot":`select-trigger`,"data-size":t,className:s(`flex w-fit cursor-pointer items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...r,children:[n,(0,Q.jsx)(Dt,{render:(0,Q.jsx)(Je,{className:`pointer-events-none size-4 text-muted-foreground`})})]})}function on({className:e,children:t,side:n=`bottom`,sideOffset:r=4,align:i=`center`,alignOffset:a=0,alignItemWithTrigger:o=!0,...c}){return(0,Q.jsx)(kt,{children:(0,Q.jsx)(Ft,{side:n,sideOffset:r,align:i,alignOffset:a,alignItemWithTrigger:o,className:`isolate z-50`,children:(0,Q.jsxs)(Lt,{"data-slot":`select-content`,"data-align-trigger":o,className:s(`relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...c,children:[(0,Q.jsx)(cn,{}),(0,Q.jsx)(Gt,{children:t}),(0,Q.jsx)(ln,{})]})})})}function sn({className:e,children:t,...n}){return(0,Q.jsxs)(Jt,{"data-slot":`select-item`,className:s(`relative flex w-full cursor-pointer items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...n,children:[(0,Q.jsx)(Zt,{className:`flex flex-1 shrink-0 gap-2 whitespace-nowrap`,children:t}),(0,Q.jsx)(Yt,{render:(0,Q.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex size-4 items-center justify-center`}),children:(0,Q.jsx)(H,{className:`pointer-events-none`})})]})}function cn({className:e,...t}){return(0,Q.jsx)(tn,{"data-slot":`select-scroll-up-button`,className:s(`top-0 z-10 flex w-full cursor-pointer items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4`,e),...t,children:(0,Q.jsx)(Ye,{})})}function ln({className:e,...t}){return(0,Q.jsx)(en,{"data-slot":`select-scroll-down-button`,className:s(`bottom-0 z-10 flex w-full cursor-pointer items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4`,e),...t,children:(0,Q.jsx)(Je,{})})}function un(e){return pe(e,X.useContext(de)?`drawer`:`dialog`)}function dn({...e}){return(0,Q.jsx)(un,{"data-slot":`dialog`,...e})}function fn({...e}){return(0,Q.jsx)(tt,{"data-slot":`dialog-trigger`,...e})}function pn({...e}){return(0,Q.jsx)(B,{"data-slot":`dialog-portal`,...e})}function mn({className:e,...t}){return(0,Q.jsx)(G,{"data-slot":`dialog-overlay`,className:s(`fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function hn({className:e,children:t,showCloseButton:n=!0,...r}){return(0,Q.jsxs)(pn,{children:[(0,Q.jsx)(mn,{}),(0,Q.jsxs)(Ne,{"data-slot":`dialog-content`,className:s(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-background p-4 text-sm ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r,children:[t,n&&(0,Q.jsxs)(W,{"data-slot":`dialog-close`,render:(0,Q.jsx)(oe,{variant:`ghost`,className:`absolute top-2 right-2`,size:`icon-sm`}),children:[(0,Q.jsx)(et,{}),(0,Q.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function gn({className:e,...t}){return(0,Q.jsx)(`div`,{"data-slot":`dialog-header`,className:s(`flex flex-col gap-2`,e),...t})}function _n({className:e,showCloseButton:t=!1,children:n,...r}){return(0,Q.jsxs)(`div`,{"data-slot":`dialog-footer`,className:s(`-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end`,e),...r,children:[n,t&&(0,Q.jsx)(W,{render:(0,Q.jsx)(oe,{variant:`outline`}),children:`Close`})]})}function vn({className:e,...t}){return(0,Q.jsx)(ue,{"data-slot":`dialog-title`,className:s(`text-base leading-none font-medium`,e),...t})}function yn({className:e,...t}){return(0,Q.jsx)(je,{"data-slot":`dialog-description`,className:s(`text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}function bn({className:e,...t}){return(0,Q.jsx)(`textarea`,{"data-slot":`textarea`,className:s(`flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,e),...t})}function xn({className:e,...t}){return(0,Q.jsx)(`div`,{"data-slot":`input-group`,role:`group`,className:s(`group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5`,e),...t})}var Sn=w(`flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4`,{variants:{align:{"inline-start":`order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]`,"inline-end":`order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]`,"block-start":`order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2`,"block-end":`order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2`}},defaultVariants:{align:`inline-start`}});function Cn({className:e,align:t=`inline-start`,...n}){return(0,Q.jsx)(`div`,{role:`group`,"data-slot":`input-group-addon`,"data-align":t,className:s(Sn({align:t}),e),onClick:e=>{e.target.closest(`button`)||e.currentTarget.parentElement?.querySelector(`input`)?.focus()},...n})}var wn=w(`flex items-center gap-2 text-sm shadow-none`,{variants:{size:{xs:`h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5`,sm:``,"icon-xs":`size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0`,"icon-sm":`size-8 p-0 has-[>svg]:p-0`}},defaultVariants:{size:`xs`}});function Tn({className:e,type:t=`button`,variant:n=`ghost`,size:r=`xs`,...i}){return(0,Q.jsx)(oe,{type:t,"data-size":r,variant:n,className:s(wn({size:r}),e),...i})}function En({className:e,...t}){return(0,Q.jsx)(T,{"data-slot":`input-group-control`,className:s(`flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent`,e),...t})}function Dn({className:e,...t}){return(0,Q.jsx)(bn,{"data-slot":`input-group-control`,className:s(`flex-1 resize-none rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent`,e),...t})}function On({className:e,...t}){return(0,Q.jsx)(`label`,{"data-slot":`label`,className:s(`flex items-center gap-2 text-base leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,e),...t})}export{ct as A,ft as C,ot as D,st as E,Xe as F,Je as I,$e as M,Qe as N,lt as O,Ze as P,pt as S,ht as T,sn as _,En as a,bt as b,dn as c,_n as d,gn as f,on as g,nn as h,Tn as i,et as j,ut as k,hn as l,fn as m,xn as n,Dn as o,vn as p,Cn as r,bn as s,On as t,yn as u,an as v,mt as w,vt as x,rn as y};
@@ -1 +1 @@
1
- import{n as e,t}from"./path-BWPyau1x.js";import{t as n}from"./array-BifhSqXX.js";import{rt as r}from"./chunk-ICXQ74PX-b1EXixGM.js";function i(e){return e[0]}function a(e){return e[1]}function o(o,s){var c=e(!0),l=null,u=r,d=null,f=t(p);o=typeof o==`function`?o:o===void 0?i:e(o),s=typeof s==`function`?s:s===void 0?a:e(s);function p(e){var t,r=(e=n(e)).length,i,a=!1,p;for(l??(d=u(p=f())),t=0;t<=r;++t)!(t<r&&c(i=e[t],t,e))===a&&((a=!a)?d.lineStart():d.lineEnd()),a&&d.point(+o(i,t,e),+s(i,t,e));if(p)return d=null,p+``||null}return p.x=function(t){return arguments.length?(o=typeof t==`function`?t:e(+t),p):o},p.y=function(t){return arguments.length?(s=typeof t==`function`?t:e(+t),p):s},p.defined=function(t){return arguments.length?(c=typeof t==`function`?t:e(!!t),p):c},p.curve=function(e){return arguments.length?(u=e,l!=null&&(d=u(l)),p):u},p.context=function(e){return arguments.length?(e==null?l=d=null:d=u(l=e),p):l},p}export{o as t};
1
+ import{n as e,t}from"./path-BWPyau1x.js";import{t as n}from"./array-BifhSqXX.js";import{rt as r}from"./chunk-ICXQ74PX-CW82p2Y4.js";function i(e){return e[0]}function a(e){return e[1]}function o(o,s){var c=e(!0),l=null,u=r,d=null,f=t(p);o=typeof o==`function`?o:o===void 0?i:e(o),s=typeof s==`function`?s:s===void 0?a:e(s);function p(e){var t,r=(e=n(e)).length,i,a=!1,p;for(l??(d=u(p=f())),t=0;t<=r;++t)!(t<r&&c(i=e[t],t,e))===a&&((a=!a)?d.lineStart():d.lineEnd()),a&&d.point(+o(i,t,e),+s(i,t,e));if(p)return d=null,p+``||null}return p.x=function(t){return arguments.length?(o=typeof t==`function`?t:e(+t),p):o},p.y=function(t){return arguments.length?(s=typeof t==`function`?t:e(+t),p):s},p.defined=function(t){return arguments.length?(c=typeof t==`function`?t:e(!!t),p):c},p.curve=function(e){return arguments.length?(u=e,l!=null&&(d=u(l)),p):u},p.context=function(e){return arguments.length?(e==null?l=d=null:d=u(l=e),p):l},p}export{o as t};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-BO2N2NFS-CdVUj51Q.js";export{e as Mermaid};
@@ -255,5 +255,5 @@ l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
255
255
  ?)[ \r ]*`,na=`[̀-ͯ]`,ra=RegExp(na+`+$`),ia=`(`+Zi+`+)|`+(ta+`|`)+`([!-\\[\\]-‧‪-퟿豈-￿]`+(na+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(na+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+ea)+(`|`+$i+`)`),aa=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(ia,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new oi(`EOF`,new ai(this,t,t));var r=this.tokenRegex.exec(e);if(r===null||r.index!==t)throw new n(`Unexpected character: '`+e[t]+`'`,new oi(e[t],new ai(this,t,t+1)));var i=r[6]||r[3]||(r[2]?`\\ `:` `);if(this.catcodes[i]===14){var a=e.indexOf(`
256
256
  `,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict(`commentAtEnd`,`% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)`)):this.tokenRegex.lastIndex=a+1,this.lex()}return new oi(i,new ai(this,t,this.tokenRegex.lastIndex))}},oa=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new n(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}},sa=ii;Q(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),Q(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),Q(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),Q(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),Q(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),Q(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),Q(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var ca={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Q(`\\char`,function(e){var t=e.popToken(),r,i=0;if(t.text===`'`)r=8,t=e.popToken();else if(t.text===`"`)r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]===`\\`)i=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new n("\\char` missing argument");else i=t.text.charCodeAt(0);else r=10;if(r){if(i=ca[t.text],i==null||i>=r)throw new n(`Invalid base-`+r+` digit `+t.text);for(var a;(a=ca[e.future().text])!=null&&a<r;)i*=r,i+=a,e.popToken()}return`\\@char{`+i+`}`});var la=(e,t,r,i)=>{var a=e.consumeArg().tokens;if(a.length!==1)throw new n(`\\newcommand's first argument must be a macro name`);var o=a[0].text,s=e.isDefined(o);if(s&&!t)throw new n(`\\newcommand{`+o+`} attempting to redefine `+(o+`; use \\renewcommand`));if(!s&&!r)throw new n(`\\renewcommand{`+o+`} when command `+o+` does not yet exist; use \\newcommand`);var c=0;if(a=e.consumeArg().tokens,a.length===1&&a[0].text===`[`){for(var l=``,u=e.expandNextToken();u.text!==`]`&&u.text!==`EOF`;)l+=u.text,u=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new n(`Invalid number of arguments: `+l);c=parseInt(l),a=e.consumeArg().tokens}return s&&i||e.macros.set(o,{tokens:a,numArgs:c}),``};Q(`\\newcommand`,e=>la(e,!1,!0,!1)),Q(`\\renewcommand`,e=>la(e,!0,!1,!1)),Q(`\\providecommand`,e=>la(e,!0,!0,!0)),Q(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),Q(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),Q(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Xi[n],M.math[n],M.text[n]),``}),Q(`\\bgroup`,`{`),Q(`\\egroup`,`}`),Q(`~`,`\\nobreakspace`),Q(`\\lq`,"`"),Q(`\\rq`,`'`),Q(`\\aa`,`\\r a`),Q(`\\AA`,`\\r A`),Q(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),Q(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),Q(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),Q(`ℬ`,`\\mathscr{B}`),Q(`ℰ`,`\\mathscr{E}`),Q(`ℱ`,`\\mathscr{F}`),Q(`ℋ`,`\\mathscr{H}`),Q(`ℐ`,`\\mathscr{I}`),Q(`ℒ`,`\\mathscr{L}`),Q(`ℳ`,`\\mathscr{M}`),Q(`ℛ`,`\\mathscr{R}`),Q(`ℭ`,`\\mathfrak{C}`),Q(`ℌ`,`\\mathfrak{H}`),Q(`ℨ`,`\\mathfrak{Z}`),Q(`\\Bbbk`,`\\Bbb{k}`),Q(`\\llap`,`\\mathllap{\\textrm{#1}}`),Q(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),Q(`\\clap`,`\\mathclap{\\textrm{#1}}`),Q(`\\mathstrut`,`\\vphantom{(}`),Q(`\\underbar`,`\\underline{\\text{#1}}`),Q(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),Q(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),Q(`\\ne`,`\\neq`),Q(`≠`,`\\neq`),Q(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),Q(`∉`,`\\notin`),Q(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),Q(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),Q(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),Q(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),Q(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),Q(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),Q(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),Q(`⟂`,`\\perp`),Q(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),Q(`∌`,`\\notni`),Q(`⌜`,`\\ulcorner`),Q(`⌝`,`\\urcorner`),Q(`⌞`,`\\llcorner`),Q(`⌟`,`\\lrcorner`),Q(`©`,`\\copyright`),Q(`®`,`\\textregistered`),Q(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),Q(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),Q(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),Q(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),Q(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),Q(`⋮`,`\\vdots`),Q(`\\varGamma`,`\\mathit{\\Gamma}`),Q(`\\varDelta`,`\\mathit{\\Delta}`),Q(`\\varTheta`,`\\mathit{\\Theta}`),Q(`\\varLambda`,`\\mathit{\\Lambda}`),Q(`\\varXi`,`\\mathit{\\Xi}`),Q(`\\varPi`,`\\mathit{\\Pi}`),Q(`\\varSigma`,`\\mathit{\\Sigma}`),Q(`\\varUpsilon`,`\\mathit{\\Upsilon}`),Q(`\\varPhi`,`\\mathit{\\Phi}`),Q(`\\varPsi`,`\\mathit{\\Psi}`),Q(`\\varOmega`,`\\mathit{\\Omega}`),Q(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),Q(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),Q(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),Q(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),Q(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),Q(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),Q(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),Q(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var ua={",":`\\dotsc`,"\\not":`\\dotsb`,"+":`\\dotsb`,"=":`\\dotsb`,"<":`\\dotsb`,">":`\\dotsb`,"-":`\\dotsb`,"*":`\\dotsb`,":":`\\dotsb`,"\\DOTSB":`\\dotsb`,"\\coprod":`\\dotsb`,"\\bigvee":`\\dotsb`,"\\bigwedge":`\\dotsb`,"\\biguplus":`\\dotsb`,"\\bigcap":`\\dotsb`,"\\bigcup":`\\dotsb`,"\\prod":`\\dotsb`,"\\sum":`\\dotsb`,"\\bigotimes":`\\dotsb`,"\\bigoplus":`\\dotsb`,"\\bigodot":`\\dotsb`,"\\bigsqcup":`\\dotsb`,"\\And":`\\dotsb`,"\\longrightarrow":`\\dotsb`,"\\Longrightarrow":`\\dotsb`,"\\longleftarrow":`\\dotsb`,"\\Longleftarrow":`\\dotsb`,"\\longleftrightarrow":`\\dotsb`,"\\Longleftrightarrow":`\\dotsb`,"\\mapsto":`\\dotsb`,"\\longmapsto":`\\dotsb`,"\\hookrightarrow":`\\dotsb`,"\\doteq":`\\dotsb`,"\\mathbin":`\\dotsb`,"\\mathrel":`\\dotsb`,"\\relbar":`\\dotsb`,"\\Relbar":`\\dotsb`,"\\xrightarrow":`\\dotsb`,"\\xleftarrow":`\\dotsb`,"\\DOTSI":`\\dotsi`,"\\int":`\\dotsi`,"\\oint":`\\dotsi`,"\\iint":`\\dotsi`,"\\iiint":`\\dotsi`,"\\iiiint":`\\dotsi`,"\\idotsint":`\\dotsi`,"\\DOTSX":`\\dotsx`},da=new Set([`bin`,`rel`]);Q(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in ua?t=ua[n]:(n.slice(0,4)===`\\not`||n in M.math&&da.has(M.math[n].group))&&(t=`\\dotsb`),t});var fa={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Q(`\\dotso`,function(e){return e.future().text in fa?`\\ldots\\,`:`\\ldots`}),Q(`\\dotsc`,function(e){var t=e.future().text;return t in fa&&t!==`,`?`\\ldots\\,`:`\\ldots`}),Q(`\\cdots`,function(e){return e.future().text in fa?`\\@cdots\\,`:`\\@cdots`}),Q(`\\dotsb`,`\\cdots`),Q(`\\dotsm`,`\\cdots`),Q(`\\dotsi`,`\\!\\cdots`),Q(`\\dotsx`,`\\ldots\\,`),Q(`\\DOTSI`,`\\relax`),Q(`\\DOTSB`,`\\relax`),Q(`\\DOTSX`,`\\relax`),Q(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),Q(`\\,`,`\\tmspace+{3mu}{.1667em}`),Q(`\\thinspace`,`\\,`),Q(`\\>`,`\\mskip{4mu}`),Q(`\\:`,`\\tmspace+{4mu}{.2222em}`),Q(`\\medspace`,`\\:`),Q(`\\;`,`\\tmspace+{5mu}{.2777em}`),Q(`\\thickspace`,`\\;`),Q(`\\!`,`\\tmspace-{3mu}{.1667em}`),Q(`\\negthinspace`,`\\!`),Q(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),Q(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),Q(`\\enspace`,`\\kern.5em `),Q(`\\enskip`,`\\hskip.5em\\relax`),Q(`\\quad`,`\\hskip1em\\relax`),Q(`\\qquad`,`\\hskip2em\\relax`),Q(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),Q(`\\tag@paren`,`\\tag@literal{({#1})}`),Q(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new n(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),Q(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),Q(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),Q(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),Q(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),Q(`\\newline`,`\\\\\\relax`),Q(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var pa=j(Ue[`Main-Regular`][84][1]-.7*Ue[`Main-Regular`][65][1]);Q(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+pa+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),Q(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+pa+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),Q(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),Q(`\\@hspace`,`\\hskip #1\\relax`),Q(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),Q(`\\ordinarycolon`,`:`),Q(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),Q(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),Q(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),Q(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),Q(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),Q(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),Q(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),Q(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),Q(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),Q(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),Q(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),Q(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),Q(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),Q(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),Q(`∷`,`\\dblcolon`),Q(`∹`,`\\eqcolon`),Q(`≔`,`\\coloneqq`),Q(`≕`,`\\eqqcolon`),Q(`⩴`,`\\Coloneqq`),Q(`\\ratio`,`\\vcentcolon`),Q(`\\coloncolon`,`\\dblcolon`),Q(`\\colonequals`,`\\coloneqq`),Q(`\\coloncolonequals`,`\\Coloneqq`),Q(`\\equalscolon`,`\\eqqcolon`),Q(`\\equalscoloncolon`,`\\Eqqcolon`),Q(`\\colonminus`,`\\coloneq`),Q(`\\coloncolonminus`,`\\Coloneq`),Q(`\\minuscolon`,`\\eqcolon`),Q(`\\minuscoloncolon`,`\\Eqcolon`),Q(`\\coloncolonapprox`,`\\Colonapprox`),Q(`\\coloncolonsim`,`\\Colonsim`),Q(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),Q(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),Q(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),Q(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),Q(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Q(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),Q(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),Q(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),Q(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),Q(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),Q(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),Q(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),Q(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),Q(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),Q(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),Q(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),Q(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),Q(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),Q(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),Q(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),Q(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),Q(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),Q(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),Q(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),Q(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),Q(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),Q(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),Q(`\\imath`,`\\html@mathml{\\@imath}{ı}`),Q(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),Q(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Q(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Q(`⟦`,`\\llbracket`),Q(`⟧`,`\\rrbracket`),Q(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Q(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Q(`⦃`,`\\lBrace`),Q(`⦄`,`\\rBrace`),Q(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),Q(`⦵`,`\\minuso`),Q(`\\darr`,`\\downarrow`),Q(`\\dArr`,`\\Downarrow`),Q(`\\Darr`,`\\Downarrow`),Q(`\\lang`,`\\langle`),Q(`\\rang`,`\\rangle`),Q(`\\uarr`,`\\uparrow`),Q(`\\uArr`,`\\Uparrow`),Q(`\\Uarr`,`\\Uparrow`),Q(`\\N`,`\\mathbb{N}`),Q(`\\R`,`\\mathbb{R}`),Q(`\\Z`,`\\mathbb{Z}`),Q(`\\alef`,`\\aleph`),Q(`\\alefsym`,`\\aleph`),Q(`\\Alpha`,`\\mathrm{A}`),Q(`\\Beta`,`\\mathrm{B}`),Q(`\\bull`,`\\bullet`),Q(`\\Chi`,`\\mathrm{X}`),Q(`\\clubs`,`\\clubsuit`),Q(`\\cnums`,`\\mathbb{C}`),Q(`\\Complex`,`\\mathbb{C}`),Q(`\\Dagger`,`\\ddagger`),Q(`\\diamonds`,`\\diamondsuit`),Q(`\\empty`,`\\emptyset`),Q(`\\Epsilon`,`\\mathrm{E}`),Q(`\\Eta`,`\\mathrm{H}`),Q(`\\exist`,`\\exists`),Q(`\\harr`,`\\leftrightarrow`),Q(`\\hArr`,`\\Leftrightarrow`),Q(`\\Harr`,`\\Leftrightarrow`),Q(`\\hearts`,`\\heartsuit`),Q(`\\image`,`\\Im`),Q(`\\infin`,`\\infty`),Q(`\\Iota`,`\\mathrm{I}`),Q(`\\isin`,`\\in`),Q(`\\Kappa`,`\\mathrm{K}`),Q(`\\larr`,`\\leftarrow`),Q(`\\lArr`,`\\Leftarrow`),Q(`\\Larr`,`\\Leftarrow`),Q(`\\lrarr`,`\\leftrightarrow`),Q(`\\lrArr`,`\\Leftrightarrow`),Q(`\\Lrarr`,`\\Leftrightarrow`),Q(`\\Mu`,`\\mathrm{M}`),Q(`\\natnums`,`\\mathbb{N}`),Q(`\\Nu`,`\\mathrm{N}`),Q(`\\Omicron`,`\\mathrm{O}`),Q(`\\plusmn`,`\\pm`),Q(`\\rarr`,`\\rightarrow`),Q(`\\rArr`,`\\Rightarrow`),Q(`\\Rarr`,`\\Rightarrow`),Q(`\\real`,`\\Re`),Q(`\\reals`,`\\mathbb{R}`),Q(`\\Reals`,`\\mathbb{R}`),Q(`\\Rho`,`\\mathrm{P}`),Q(`\\sdot`,`\\cdot`),Q(`\\sect`,`\\S`),Q(`\\spades`,`\\spadesuit`),Q(`\\sub`,`\\subset`),Q(`\\sube`,`\\subseteq`),Q(`\\supe`,`\\supseteq`),Q(`\\Tau`,`\\mathrm{T}`),Q(`\\thetasym`,`\\vartheta`),Q(`\\weierp`,`\\wp`),Q(`\\Zeta`,`\\mathrm{Z}`),Q(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),Q(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),Q(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),Q(`\\bra`,`\\mathinner{\\langle{#1}|}`),Q(`\\ket`,`\\mathinner{|{#1}\\rangle}`),Q(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),Q(`\\Bra`,`\\left\\langle#1\\right|`),Q(`\\Ket`,`\\left|#1\\right\\rangle`);var ma=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var c=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,c(!1)),i.length&&t.macros.set(`\\|`,c(!0));var l=t.consumeArg().tokens,u=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};Q(`\\bra@ket`,ma(!1)),Q(`\\bra@set`,ma(!0)),Q(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),Q(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),Q(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),Q(`\\angln`,`{\\angl n}`),Q(`\\blue`,`\\textcolor{##6495ed}{#1}`),Q(`\\orange`,`\\textcolor{##ffa500}{#1}`),Q(`\\pink`,`\\textcolor{##ff00af}{#1}`),Q(`\\red`,`\\textcolor{##df0030}{#1}`),Q(`\\green`,`\\textcolor{##28ae7b}{#1}`),Q(`\\gray`,`\\textcolor{gray}{#1}`),Q(`\\purple`,`\\textcolor{##9d38bd}{#1}`),Q(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),Q(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),Q(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),Q(`\\blueD`,`\\textcolor{##11accd}{#1}`),Q(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),Q(`\\tealA`,`\\textcolor{##94fff5}{#1}`),Q(`\\tealB`,`\\textcolor{##26edd5}{#1}`),Q(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),Q(`\\tealD`,`\\textcolor{##01a995}{#1}`),Q(`\\tealE`,`\\textcolor{##208170}{#1}`),Q(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),Q(`\\greenB`,`\\textcolor{##8af281}{#1}`),Q(`\\greenC`,`\\textcolor{##74cf70}{#1}`),Q(`\\greenD`,`\\textcolor{##1fab54}{#1}`),Q(`\\greenE`,`\\textcolor{##0d923f}{#1}`),Q(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),Q(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),Q(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),Q(`\\goldD`,`\\textcolor{##e07d10}{#1}`),Q(`\\goldE`,`\\textcolor{##a75a05}{#1}`),Q(`\\redA`,`\\textcolor{##fca9a9}{#1}`),Q(`\\redB`,`\\textcolor{##ff8482}{#1}`),Q(`\\redC`,`\\textcolor{##f9685d}{#1}`),Q(`\\redD`,`\\textcolor{##e84d39}{#1}`),Q(`\\redE`,`\\textcolor{##bc2612}{#1}`),Q(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),Q(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),Q(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),Q(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),Q(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),Q(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),Q(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),Q(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),Q(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),Q(`\\purpleE`,`\\textcolor{##543b78}{#1}`),Q(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),Q(`\\mintB`,`\\textcolor{##edf2df}{#1}`),Q(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),Q(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),Q(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),Q(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),Q(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),Q(`\\grayE`,`\\textcolor{##babec2}{#1}`),Q(`\\grayF`,`\\textcolor{##888d93}{#1}`),Q(`\\grayG`,`\\textcolor{##626569}{#1}`),Q(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),Q(`\\grayI`,`\\textcolor{##21242c}{#1}`),Q(`\\kaBlue`,`\\textcolor{##314453}{#1}`),Q(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var ha={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},ga=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new oa(sa,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new aa(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken(),{tokens:r,end:n}=this.consumeArg([`]`])}else({tokens:r,start:t,end:n}=this.consumeArg());return this.pushToken(new oi(`EOF`,n.loc)),this.pushTokens(r),new oi(``,ai.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],r=e&&e.length>0;r||this.consumeSpaces();var i=this.future(),a,o=0,s=0;do{if(a=this.popToken(),t.push(a),a.text===`{`)++o;else if(a.text===`}`){if(--o,o===-1)throw new n(`Extra }`,a)}else if(a.text===`EOF`)throw new n(`Unexpected end of input in a macro argument, expected '`+(e&&r?e[s]:`}`)+`'`,a);if(e&&r)if((o===0||o===1&&e[s]===`{`)&&a.text===e[s]){if(++s,s===e.length){t.splice(-s,s);break}}else s=0}while(o!==0||r);return i.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:i,end:a}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new n(`The length of delimiters doesn't match the number of args!`);for(var r=t[0],i=0;i<r.length;i++){var a=this.popToken();if(r[i]!==a.text)throw new n(`Use of the macro doesn't match its definition`,a)}}for(var o=[],s=0;s<e;s++)o.push(this.consumeArg(t&&t[s+1]).tokens);return o}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new n(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),r=t.text,i=t.noexpand?null:this._getExpansion(r);if(i==null||e&&i.unexpandable){if(e&&i==null&&r[0]===`\\`&&!this.isDefined(r))throw new n(`Undefined control sequence: `+r);return this.pushToken(t),!1}this.countExpansion(1);var a=i.tokens,o=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var s=a.length-1;s>=0;--s){var c=a[s];if(c.text===`#`){if(s===0)throw new n(`Incomplete placeholder at end of macro body`,c);if(c=a[--s],c.text===`#`)a.splice(s+1,1);else if(/^[1-9]$/.test(c.text))a.splice(s,2,...o[c.text-1]);else throw new n(`Not a valid argument number`,c)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=`\\relax`),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new oi(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new aa(r,this.settings),s=[],c=o.lex();c.text!==`EOF`;)s.push(c),c=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||Xi.hasOwnProperty(e)||M.math.hasOwnProperty(e)||M.text.hasOwnProperty(e)||ha.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t==null?Xi.hasOwnProperty(e)&&!Xi[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},_a=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,va=Object.freeze({"₊":`+`,"₋":`-`,"₌":`=`,"₍":`(`,"₎":`)`,"₀":`0`,"₁":`1`,"₂":`2`,"₃":`3`,"₄":`4`,"₅":`5`,"₆":`6`,"₇":`7`,"₈":`8`,"₉":`9`,ₐ:`a`,ₑ:`e`,ₕ:`h`,ᵢ:`i`,ⱼ:`j`,ₖ:`k`,ₗ:`l`,ₘ:`m`,ₙ:`n`,ₒ:`o`,ₚ:`p`,ᵣ:`r`,ₛ:`s`,ₜ:`t`,ᵤ:`u`,ᵥ:`v`,ₓ:`x`,ᵦ:`β`,ᵧ:`γ`,ᵨ:`ρ`,ᵩ:`ϕ`,ᵪ:`χ`,"⁺":`+`,"⁻":`-`,"⁼":`=`,"⁽":`(`,"⁾":`)`,"⁰":`0`,"¹":`1`,"²":`2`,"³":`3`,"⁴":`4`,"⁵":`5`,"⁶":`6`,"⁷":`7`,"⁸":`8`,"⁹":`9`,ᴬ:`A`,ᴮ:`B`,ᴰ:`D`,ᴱ:`E`,ᴳ:`G`,ᴴ:`H`,ᴵ:`I`,ᴶ:`J`,ᴷ:`K`,ᴸ:`L`,ᴹ:`M`,ᴺ:`N`,ᴼ:`O`,ᴾ:`P`,ᴿ:`R`,ᵀ:`T`,ᵁ:`U`,ⱽ:`V`,ᵂ:`W`,ᵃ:`a`,ᵇ:`b`,ᶜ:`c`,ᵈ:`d`,ᵉ:`e`,ᶠ:`f`,ᵍ:`g`,ʰ:`h`,ⁱ:`i`,ʲ:`j`,ᵏ:`k`,ˡ:`l`,ᵐ:`m`,ⁿ:`n`,ᵒ:`o`,ᵖ:`p`,ʳ:`r`,ˢ:`s`,ᵗ:`t`,ᵘ:`u`,ᵛ:`v`,ʷ:`w`,ˣ:`x`,ʸ:`y`,ᶻ:`z`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),ya={"́":{text:`\\'`,math:`\\acute`},"̀":{text:"\\`",math:`\\grave`},"̈":{text:`\\"`,math:`\\ddot`},"̃":{text:`\\~`,math:`\\tilde`},"̄":{text:`\\=`,math:`\\bar`},"̆":{text:`\\u`,math:`\\breve`},"̌":{text:`\\v`,math:`\\check`},"̂":{text:`\\^`,math:`\\hat`},"̇":{text:`\\.`,math:`\\dot`},"̊":{text:`\\r`,math:`\\mathring`},"̋":{text:`\\H`},"̧":{text:`\\c`}},ba={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},xa=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new ga(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new n(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??=this.gullet.expandNextToken(),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(`\\color`,`\\textcolor`);try{var e=this.parseExpression(!1);return this.expect(`EOF`),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new oi(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&Xi[i.text]&&Xi[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,r,i=0;i<e.length;i++){var a=e[i];if(a.type===`infix`){if(t!==-1)throw new n(`only one infix operator per group`,a.token);t=i,r=a.replaceWith}}if(t!==-1&&r){var o,s,c=e.slice(0,t),l=e.slice(t+1);return o=c.length===1&&c[0].type===`ordgroup`?c[0]:{type:`ordgroup`,mode:this.mode,body:c},s=l.length===1&&l[0].type===`ordgroup`?l[0]:{type:`ordgroup`,mode:this.mode,body:l},[r===`\\\\abovefrac`?this.callFunction(r,[o,e[t],s],[]):this.callFunction(r,[o,s],[])]}else return e}handleSupSubscript(e){var t=this.fetch(),r=t.text;this.consume(),this.consumeSpaces();var i;do i=this.parseGroup(e);while(i?.type===`internal`);if(!i)throw new n(`Expected group after '`+r+`'`,t);return i}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:`textord`,mode:`text`,text:e[n]});var r={type:`text`,mode:this.mode,body:t};return{type:`color`,mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(e){var t=this.parseGroup(`atom`,e);if(t?.type===`internal`||this.mode===`text`)return t;for(var r,i;;){this.consumeSpaces();var a=this.fetch();if(a.text===`\\limits`||a.text===`\\nolimits`){if(t&&t.type===`op`)t.limits=a.text===`\\limits`,t.alwaysHandleSupSub=!0;else if(t&&t.type===`operatorname`)t.alwaysHandleSupSub&&(t.limits=a.text===`\\limits`);else throw new n(`Limit controls must follow a math operator`,a);this.consume()}else if(a.text===`^`){if(r)throw new n(`Double superscript`,a);r=this.handleSupSubscript(`superscript`)}else if(a.text===`_`){if(i)throw new n(`Double subscript`,a);i=this.handleSupSubscript(`subscript`)}else if(a.text===`'`){if(r)throw new n(`Double superscript`,a);var o={type:`textord`,mode:this.mode,text:`\\prime`},s=[o];for(this.consume();this.fetch().text===`'`;)s.push(o),this.consume();this.fetch().text===`^`&&s.push(this.handleSupSubscript(`superscript`)),r={type:`ordgroup`,mode:this.mode,body:s}}else if(va[a.text]){var c=_a.test(a.text),l=[];for(l.push(new oi(va[a.text])),this.consume();;){var u=this.fetch().text;if(!va[u]||_a.test(u)!==c)break;l.unshift(new oi(va[u])),this.consume()}var d=this.subparse(l);c?i={type:`ordgroup`,mode:`math`,body:d}:r={type:`ordgroup`,mode:`math`,body:d}}else break}return r||i?{type:`supsub`,mode:this.mode,base:t,sup:r,sub:i}:t}parseFunction(e,t){var r=this.fetch(),i=r.text,a=Xi[i];if(!a)return null;if(this.consume(),t&&t!==`atom`&&!a.allowedInArgument)throw new n(`Got function '`+i+`' with no arguments`+(t?` as `+t:``),r);if(this.mode===`text`&&!a.allowedInText)throw new n(`Can't use function '`+i+`' in text mode`,r);if(this.mode===`math`&&a.allowedInMath===!1)throw new n(`Can't use function '`+i+`' in math mode`,r);var{args:o,optArgs:s}=this.parseArguments(i,a);return this.callFunction(i,o,s,r,e)}callFunction(e,t,r,i,a){var o={funcName:e,parser:this,token:i,breakOnTokenText:a},s=Xi[e];if(s&&s.handler)return s.handler(o,t,r);throw new n(`No function handler for `+e)}parseArguments(e,t){var r=t.numArgs+t.numOptionalArgs;if(r===0)return{args:[],optArgs:[]};for(var i=[],a=[],o=0;o<r;o++){var s=t.argTypes&&t.argTypes[o],c=o<t.numOptionalArgs;(`primitive`in t&&t.primitive&&s==null||t.type===`sqrt`&&o===1&&a[0]==null)&&(s=`primitive`);var l=this.parseGroupOfType(`argument to '`+e+`'`,s,c);if(c)a.push(l);else if(l!=null)i.push(l);else throw new n(`Null argument, please report this as a bug`)}return{args:i,optArgs:a}}parseGroupOfType(e,t,r){switch(t){case`color`:return this.parseColorGroup(r);case`size`:return this.parseSizeGroup(r);case`url`:return this.parseUrlGroup(r);case`math`:case`text`:return this.parseArgumentGroup(r,t);case`hbox`:var i=this.parseArgumentGroup(r,`text`);return i==null?null:{type:`styling`,mode:i.mode,body:[i],style:`text`,resetFont:!0};case`raw`:var a=this.parseStringGroup(`raw`,r);return a==null?null:{type:`raw`,mode:`text`,string:a.text};case`primitive`:if(r)throw new n(`A primitive argument cannot be optional`);var o=this.parseGroup(e);if(o==null)throw new n(`Expected group as `+e,this.fetch());return o;case`original`:case null:case void 0:return this.parseArgumentGroup(r);default:throw new n(`Unknown group type as `+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===` `;)this.consume()}parseStringGroup(e,t){var n=this.gullet.scanArgument(t);if(n==null)return null;for(var r=``,i;(i=this.fetch()).text!==`EOF`;)r+=i.text,this.consume();return this.consume(),n.text=r,n}parseRegexGroup(e,t){for(var r=this.fetch(),i=r,a=``,o;(o=this.fetch()).text!==`EOF`&&e.test(a+o.text);)i=o,a+=i.text,this.consume();if(a===``)throw new n(`Invalid `+t+`: '`+r.text+`'`,r);return r.range(i,a)}parseColorGroup(e){var t=this.parseStringGroup(`color`,e);if(t==null)return null;var r=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!r)throw new n(`Invalid color: '`+t.text+`'`,t);var i=r[0];return/^[0-9a-f]{6}$/i.test(i)&&(i=`#`+i),{type:`color-token`,mode:this.mode,color:i}}parseSizeGroup(e){var t,r=!1;if(this.gullet.consumeSpaces(),t=!e&&this.gullet.future().text!==`{`?this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,`size`):this.parseStringGroup(`size`,e),!t)return null;!e&&t.text.length===0&&(t.text=`0pt`,r=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!i)throw new n(`Invalid size: '`+t.text+`'`,t);var a={number:+(i[1]+i[2]),unit:i[3]};if(!Te(a))throw new n(`Invalid unit: '`+a.unit+`'`,t);return{type:`size`,mode:this.mode,value:a,isBlank:r}}parseUrlGroup(e){this.gullet.lexer.setCatcode(`%`,13),this.gullet.lexer.setCatcode(`~`,12);var t=this.parseStringGroup(`url`,e);if(this.gullet.lexer.setCatcode(`%`,14),this.gullet.lexer.setCatcode(`~`,13),t==null)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,`$1`);return{type:`url`,mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(n==null)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,`EOF`);this.expect(`EOF`),this.gullet.endGroup();var a={type:`ordgroup`,mode:this.mode,loc:n.loc,body:i};return t&&this.switchMode(r),a}parseGroup(e,t){var r=this.fetch(),i=r.text,a;if(i===`{`||i===`\\begingroup`){this.consume();var o=i===`{`?`}`:`\\endgroup`;this.gullet.beginGroup();var s=this.parseExpression(!1,o),c=this.fetch();this.expect(o),this.gullet.endGroup(),a={type:`ordgroup`,mode:this.mode,loc:ai.range(r,c),body:s,semisimple:i===`\\begingroup`||void 0}}else if(a=this.parseFunction(t,e)||this.parseSymbol(),a==null&&i[0]===`\\`&&!ha.hasOwnProperty(i)){if(this.settings.throwOnError)throw new n(`Undefined control sequence: `+i,r);a=this.formatUnsupportedCmd(i),this.consume()}return a}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n];if(r.type===`textord`){var i=r.text,a=e[n+1];if(!(!a||a.type!==`textord`)){if(i===`-`&&a.text===`-`){var o=e[n+2];n+1<t&&o&&o.type===`textord`&&o.text===`-`?(e.splice(n,3,{type:`textord`,mode:`text`,loc:ai.range(r,o),text:`---`}),t-=2):(e.splice(n,2,{type:`textord`,mode:`text`,loc:ai.range(r,a),text:`--`}),--t)}(i===`'`||i==="`")&&a.text===i&&(e.splice(n,2,{type:`textord`,mode:`text`,loc:ai.range(r,a),text:i+i}),--t)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var r=t.slice(5),i=r.charAt(0)===`*`;if(i&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new n(`\\verb assertion failed --
257
257
  please report what input caused this bug`);return r=r.slice(1,-1),{type:`verb`,mode:`text`,body:r,star:i}}ba.hasOwnProperty(t[0])&&!M[this.mode][t[0]]&&(this.settings.strict&&this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Accented Unicode text character "`+t[0]+`" used in math mode`,e),t=ba[t[0]]+t.slice(1));var a=ra.exec(t);a&&(t=t.substring(0,a.index),t===`i`?t=`ı`:t===`j`&&(t=`ȷ`));var o;if(M[this.mode][t]){this.settings.strict&&this.mode===`math`&&ht.includes(t)&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Latin-1/Unicode text character "`+t[0]+`" used in math mode`,e);var s=M[this.mode][t].group,c=ai.range(e);o=Zn(s)?{type:`atom`,mode:this.mode,family:s,loc:c,text:t}:{type:s,mode:this.mode,loc:c,text:t}}else if(t.charCodeAt(0)>=128)this.settings.strict&&(le(t.charCodeAt(0))?this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Unicode text character "`+t[0]+`" used in math mode`,e):this.settings.reportNonstrict(`unknownSymbol`,`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),e)),o={type:`textord`,mode:`text`,loc:ai.range(e),text:t};else return null;if(this.consume(),a)for(var l=0;l<a[0].length;l++){var u=a[0][l];if(!ya[u])throw new n(`Unknown accent ' `+u+`'`,e);var d=ya[u][this.mode]||ya[u].text;if(!d)throw new n(`Accent `+u+` unsupported in `+this.mode+` mode`,e);o={type:`accent`,mode:this.mode,loc:ai.range(e),label:d,isStretchy:!1,isShifty:!0,base:o}}return o}};xa.endOfExpression=new Set([`}`,`\\endgroup`,`\\end`,`\\right`,`&`]);var Sa=function(e,t){if(!(typeof e==`string`||e instanceof String))throw TypeError(`KaTeX can only parse string typed expression`);var r=new xa(e,t);delete r.gullet.macros.current[`\\df@tag`];var i=r.parse();if(delete r.gullet.macros.current[`\\current@color`],delete r.gullet.macros.current[`\\color`],r.gullet.macros.get(`\\df@tag`)){if(!t.displayMode)throw new n(`\\tag works only in display equations`);i=[{type:`tag`,mode:`text`,body:i,tag:r.subparse([new oi(`\\df@tag`)])}]}return i},Ca=function(e,t,n){t.textContent=``;var r=Da(e,n).toNode();t.appendChild(r)};typeof document<`u`&&document.compatMode!==`CSS1Compat`&&(typeof console<`u`&&console.warn(`Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype.`),Ca=function(){throw new n(`KaTeX doesn't work in quirks mode.`)});var wa=function(e,t){return Da(e,t).toMarkup()},Ta=function(e,t){return Sa(e,new g(t))},Ea=function(e,t,r){if(r.throwOnError||!(e instanceof n))throw e;var i=G([`katex-error`],[new Ie(t)]);return i.setAttribute(`title`,e.toString()),i.setAttribute(`style`,`color:`+r.errorColor),i},Da=function(e,t){var n=new g(t);try{return Vn(Sa(e,n),e,n)}catch(t){return Ea(t,e,n)}},Oa=function(e,t){var n=new g(t);try{return Hn(Sa(e,n),e,n)}catch(t){return Ea(t,e,n)}},ka=`0.16.47`,Aa={Span:Me,Anchor:Ne,SymbolNode:Ie,SvgNode:Le,PathNode:Re,LineNode:ze},ja={version:ka,render:Ca,renderToString:wa,ParseError:n,SETTINGS_SCHEMA:f,__parse:Ta,__renderToDomTree:Da,__renderToHTMLTree:Oa,__setFontMetrics:Ke,__defineSymbol:N,__defineFunction:q,__defineMacro:Q,__domTree:Aa};function Ma(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Na(e){if(Array.isArray(e))return e}function Pa(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Fa(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
258
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ia(e,t){return Na(e)||Pa(e,t)||La(e,t)||Fa()}function La(e,t){if(e){if(typeof e==`string`)return Ma(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ma(e,t):void 0}}var Ra=Object.entries,za=Object.setPrototypeOf,Ba=Object.isFrozen,Va=Object.getPrototypeOf,Ha=Object.getOwnPropertyDescriptor,Ua=Object.freeze,Wa=Object.seal,Ga=Object.create,Ka=typeof Reflect<`u`&&Reflect,qa=Ka.apply,Ja=Ka.construct;Ua||=function(e){return e},Wa||=function(e){return e},qa||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},Ja||=function(e){return new e(...[...arguments].slice(1))};var Ya=go(Array.prototype.forEach),Xa=go(Array.prototype.lastIndexOf),Za=go(Array.prototype.pop),Qa=go(Array.prototype.push),$a=go(Array.prototype.splice),eo=Array.isArray,to=go(String.prototype.toLowerCase),no=go(String.prototype.toString),ro=go(String.prototype.match),io=go(String.prototype.replace),ao=go(String.prototype.indexOf),oo=go(String.prototype.trim),so=go(Number.prototype.toString),co=go(Boolean.prototype.toString),lo=typeof BigInt>`u`?null:go(BigInt.prototype.toString),uo=typeof Symbol>`u`?null:go(Symbol.prototype.toString),fo=go(Object.prototype.hasOwnProperty),po=go(Object.prototype.toString),mo=go(RegExp.prototype.test),ho=_o(TypeError);function go(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return qa(e,t,n)}}function _o(e){return function(){return Ja(e,[...arguments])}}function $(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:to;if(za&&za(e,null),!eo(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Ba(t)||(t[r]=e),i=e)}e[i]=!0}return e}function vo(e){for(let t=0;t<e.length;t++)fo(e,t)||(e[t]=null);return e}function yo(e){let t=Ga(null);for(let r of Ra(e)){var n=Ia(r,2);let i=n[0],a=n[1];fo(e,i)&&(eo(a)?t[i]=vo(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=yo(a):t[i]=a)}return t}function bo(e){switch(typeof e){case`string`:return e;case`number`:return so(e);case`boolean`:return co(e);case`bigint`:return lo?lo(e):`0`;case`symbol`:return uo?uo(e):`Symbol()`;case`undefined`:return po(e);case`function`:case`object`:{if(e===null)return po(e);let t=e,n=xo(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:po(e)}return po(e)}default:return po(e)}}function xo(e,t){for(;e!==null;){let n=Ha(e,t);if(n){if(n.get)return go(n.get);if(typeof n.value==`function`)return go(n.value)}e=Va(e)}function n(){return null}return n}function So(e){try{return mo(e,``),!0}catch{return!1}}var Co=Ua(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),wo=Ua(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),To=Ua([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Eo=Ua([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Do=Ua(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),Oo=Ua([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),ko=Ua([`#text`]),Ao=Ua(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),jo=Ua(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Mo=Ua(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),No=Ua([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Po=Wa(/{{[\w\W]*|^[\w\W]*}}/g),Fo=Wa(/<%[\w\W]*|^[\w\W]*%>/g),Io=Wa(/\${[\w\W]*/g),Lo=Wa(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ro=Wa(/^aria-[\-\w]+$/),zo=Wa(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Bo=Wa(/^(?:\w+script|data):/i),Vo=Wa(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ho=Wa(/^html$/i),Uo=Wa(/^[a-z][.\w]*(-[.\w]+)+$/i),Wo=Wa(/<[/\w!]/g),Go=Wa(/<[/\w]/g),Ko=Wa(/<\/no(script|embed|frames)/i),qo=Wa(/\/>/i),Jo={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Yo=function(){return typeof window>`u`?null:window},Xo=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Zo=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Qo=function(e,t,n,r){return fo(e,t)&&eo(e[t])?$(r.base?yo(r.base):{},e[t],r.transform):n};function $o(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Yo(),t=e=>$o(e);if(t.version=`3.4.11`,t.removed=[],!e||!e.document||e.document.nodeType!==Jo.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=xo(d,`cloneNode`),p=xo(d,`remove`),m=xo(d,`nextSibling`),h=xo(d,`childNodes`),g=xo(d,`parentNode`),_=xo(d,`shadowRoot`),v=xo(d,`attributes`),y=o&&o.prototype?xo(o.prototype,`nodeType`):null,b=o&&o.prototype?xo(o.prototype,`nodeName`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let x,S=``,C,ee=!1,w=0,T=function(){if(w>0)throw ho(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},te=function(e){T(),w++;try{return x.createHTML(e)}finally{w--}},ne=function(e){T(),w++;try{return x.createScriptURL(e)}finally{w--}},re=function(){return ee||=(C=Xo(u,i),!0),C},ie=n,ae=ie.implementation,oe=ie.createNodeIterator,E=ie.createDocumentFragment,se=ie.getElementsByTagName,ce=r.importNode,D=Zo();t.isSupported=typeof Ra==`function`&&typeof g==`function`&&ae&&ae.createHTMLDocument!==void 0;let le=Po,O=Fo,ue=Io,de=Lo,fe=Ro,pe=Bo,me=Vo,he=Uo,ge=zo,k=null,_e=$({},[...Co,...wo,...To,...Do,...ko]),ve=null,ye=$({},[...Ao,...jo,...Mo,...No]),be=Object.seal(Ga(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xe=null,Se=null,Ce=Object.seal(Ga(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),we=!0,Te=!0,A=!1,j=!0,Ee=!1,De=!0,Oe=!1,ke=!1,Ae=null,je=null,Me=!1,Ne=!1,Pe=!1,Fe=!1,Ie=!0,Le=!1,Re=`user-content-`,ze=!0,Be=!1,Ve={},He=null,Ue=$({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),We=null,Ge=$({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ke=null,qe=$({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Je=`http://www.w3.org/1998/Math/MathML`,Ye=`http://www.w3.org/2000/svg`,M=`http://www.w3.org/1999/xhtml`,N=M,P=!1,F=null,I=$({},[Je,Ye,M],no),L=Ua([`mi`,`mo`,`mn`,`ms`,`mtext`]),R=$({},L),z=Ua([`annotation-xml`]),Xe=$({},z),Ze=$({},[`title`,`style`,`font`,`a`,`script`]),B=null,Qe=[`application/xhtml+xml`,`text/html`],V=null,$e=null,H=n.createElement(`form`),et=function(e){return e instanceof RegExp||e instanceof Function},U=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if($e&&$e===e)return;(!e||typeof e!=`object`)&&(e={}),e=yo(e),B=Qe.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,V=B===`application/xhtml+xml`?no:to,k=Qo(e,`ALLOWED_TAGS`,_e,{transform:V}),ve=Qo(e,`ALLOWED_ATTR`,ye,{transform:V}),F=Qo(e,`ALLOWED_NAMESPACES`,I,{transform:no}),Ke=Qo(e,`ADD_URI_SAFE_ATTR`,qe,{transform:V,base:qe}),We=Qo(e,`ADD_DATA_URI_TAGS`,Ge,{transform:V,base:Ge}),He=Qo(e,`FORBID_CONTENTS`,Ue,{transform:V}),xe=Qo(e,`FORBID_TAGS`,yo({}),{transform:V}),Se=Qo(e,`FORBID_ATTR`,yo({}),{transform:V}),Ve=fo(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?yo(e.USE_PROFILES):e.USE_PROFILES:!1,we=e.ALLOW_ARIA_ATTR!==!1,Te=e.ALLOW_DATA_ATTR!==!1,A=e.ALLOW_UNKNOWN_PROTOCOLS||!1,j=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ee=e.SAFE_FOR_TEMPLATES||!1,De=e.SAFE_FOR_XML!==!1,Oe=e.WHOLE_DOCUMENT||!1,Ne=e.RETURN_DOM||!1,Pe=e.RETURN_DOM_FRAGMENT||!1,Fe=e.RETURN_TRUSTED_TYPE||!1,Me=e.FORCE_BODY||!1,Ie=e.SANITIZE_DOM!==!1,Le=e.SANITIZE_NAMED_PROPS||!1,ze=e.KEEP_CONTENT!==!1,Be=e.IN_PLACE||!1,ge=So(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:zo,N=typeof e.NAMESPACE==`string`?e.NAMESPACE:M,R=fo(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?yo(e.MATHML_TEXT_INTEGRATION_POINTS):$({},L),Xe=fo(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?yo(e.HTML_INTEGRATION_POINTS):$({},z);let t=fo(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?yo(e.CUSTOM_ELEMENT_HANDLING):Ga(null);if(be=Ga(null),fo(t,`tagNameCheck`)&&et(t.tagNameCheck)&&(be.tagNameCheck=t.tagNameCheck),fo(t,`attributeNameCheck`)&&et(t.attributeNameCheck)&&(be.attributeNameCheck=t.attributeNameCheck),fo(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(be.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Wa(be),Ee&&(Te=!1),Pe&&(Ne=!0),Ve&&(k=$({},ko),ve=Ga(null),Ve.html===!0&&($(k,Co),$(ve,Ao)),Ve.svg===!0&&($(k,wo),$(ve,jo),$(ve,No)),Ve.svgFilters===!0&&($(k,To),$(ve,jo),$(ve,No)),Ve.mathMl===!0&&($(k,Do),$(ve,Mo),$(ve,No))),Ce.tagCheck=null,Ce.attributeCheck=null,fo(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?Ce.tagCheck=e.ADD_TAGS:eo(e.ADD_TAGS)&&(k===_e&&(k=yo(k)),$(k,e.ADD_TAGS,V))),fo(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?Ce.attributeCheck=e.ADD_ATTR:eo(e.ADD_ATTR)&&(ve===ye&&(ve=yo(ve)),$(ve,e.ADD_ATTR,V))),fo(e,`ADD_URI_SAFE_ATTR`)&&eo(e.ADD_URI_SAFE_ATTR)&&$(Ke,e.ADD_URI_SAFE_ATTR,V),fo(e,`FORBID_CONTENTS`)&&eo(e.FORBID_CONTENTS)&&(He===Ue&&(He=yo(He)),$(He,e.FORBID_CONTENTS,V)),fo(e,`ADD_FORBID_CONTENTS`)&&eo(e.ADD_FORBID_CONTENTS)&&(He===Ue&&(He=yo(He)),$(He,e.ADD_FORBID_CONTENTS,V)),ze&&(k[`#text`]=!0),Oe&&$(k,[`html`,`head`,`body`]),k.table&&($(k,[`tbody`]),delete xe.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw ho(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw ho(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=x;x=e.TRUSTED_TYPES_POLICY;try{S=te(``)}catch(e){throw x=t,e}}else e.TRUSTED_TYPES_POLICY===null?(x=void 0,S=``):(x===void 0&&(x=re()),x&&typeof S==`string`&&(S=te(``)));Ua&&Ua(e),$e=e},tt=$({},[...wo,...To,...Eo]),nt=$({},[...Do,...Oo]),rt=function(e,t,n){return t.namespaceURI===M?e===`svg`:t.namespaceURI===Je?e===`svg`&&(n===`annotation-xml`||R[n]):!!tt[e]},it=function(e,t,n){return t.namespaceURI===M?e===`math`:t.namespaceURI===Ye?e===`math`&&Xe[n]:!!nt[e]},at=function(e,t,n){return t.namespaceURI===Ye&&!Xe[n]||t.namespaceURI===Je&&!R[n]?!1:!nt[e]&&(Ze[e]||!tt[e])},ot=function(e){let t=g(e);(!t||!t.tagName)&&(t={namespaceURI:N,tagName:`template`});let n=to(e.tagName),r=to(t.tagName);return F[e.namespaceURI]?e.namespaceURI===Ye?rt(n,t,r):e.namespaceURI===Je?it(n,t,r):e.namespaceURI===M?at(n,t,r):!!(B===`application/xhtml+xml`&&F[e.namespaceURI]):!1},st=function(e){Qa(t.removed,{element:e});try{g(e).removeChild(e)}catch{if(p(e),!g(e))throw ho(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},ct=function(e){let t=h(e);if(t){let e=[];Ya(t,t=>{Qa(e,t)}),Ya(e,e=>{try{p(e)}catch{}})}let n=v(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;if(typeof i==`string`)try{e.removeAttribute(i)}catch{}}},lt=function(e,n){try{Qa(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{Qa(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(Ne||Pe)try{st(n)}catch{}else try{n.setAttribute(e,``)}catch{}},ut=function(e){let t=v(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;if(!(typeof i!=`string`||ve[V(i)]))try{e.removeAttribute(i)}catch{}}},W=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(y?y(e):e.nodeType)===Jo.element&&ut(e);let n=h(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},dt=function(e){let t=null,r=null;if(Me)e=`<remove></remove>`+e;else{let t=ro(e,/^[\r\n\t ]+/);r=t&&t[0]}B===`application/xhtml+xml`&&N===M&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=x?te(e):e;if(N===M)try{t=new l().parseFromString(i,B)}catch{}if(!t||!t.documentElement){t=ae.createDocument(N,`template`,null);try{t.documentElement.innerHTML=P?S:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),N===M?se.call(t,Oe?`html`:`body`)[0]:Oe?t.documentElement:a},ft=function(e){return oe.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},pt=function(e){return e=io(e,le,` `),e=io(e,O,` `),e=io(e,ue,` `),e},mt=function(e){e.normalize();let t=oe.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),n=t.nextNode();for(;n;)n.data=pt(n.data),n=t.nextNode();let r=e.querySelectorAll?.call(e,`template`);r&&Ya(r,e=>{gt(e.content)&&mt(e.content)})},ht=function(e){let t=b?b(e):null;return typeof t!=`string`||V(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==v(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==y(e)||e.childNodes!==h(e)},gt=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return y(e)===Jo.documentFragment}catch{return!1}},_t=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return typeof y(e)==`number`}catch{return!1}};function vt(e,n,r){e.length!==0&&Ya(e,e=>{e.call(t,n,r,$e)})}let yt=function(e,t){return!!(De&&e.hasChildNodes()&&!_t(e.firstElementChild)&&mo(Wo,e.textContent)&&mo(Wo,e.innerHTML)||De&&e.namespaceURI===M&&t===`style`&&_t(e.firstElementChild)||e.nodeType===Jo.processingInstruction||De&&e.nodeType===Jo.comment&&mo(Go,e.data))},bt=function(e,t){if(!xe[t]&&wt(t)&&(be.tagNameCheck instanceof RegExp&&mo(be.tagNameCheck,t)||be.tagNameCheck instanceof Function&&be.tagNameCheck(t)))return!1;if(ze&&!He[t]){let t=g(e),n=h(e);if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=Be?n[i]:f(n[i],!0);t.insertBefore(r,m(e))}}}return st(e),!0},xt=function(e){if(vt(D.beforeSanitizeElements,e,null),ht(e))return st(e),!0;let n=V(b?b(e):e.nodeName);if(vt(D.uponSanitizeElement,e,{tagName:n,allowedTags:k}),yt(e,n))return st(e),!0;if(xe[n]||!(Ce.tagCheck instanceof Function&&Ce.tagCheck(n))&&!k[n])return bt(e,n);if((y?y(e):e.nodeType)===Jo.element&&!ot(e)||(n===`noscript`||n===`noembed`||n===`noframes`)&&mo(Ko,e.innerHTML))return st(e),!0;if(Ee&&e.nodeType===Jo.text){let n=pt(e.textContent);e.textContent!==n&&(Qa(t.removed,{element:e.cloneNode()}),e.textContent=n)}return vt(D.afterSanitizeElements,e,null),!1},St=function(e,t,r){if(Se[t]||Ie&&(t===`id`||t===`name`)&&(r in n||r in H))return!1;let i=ve[t]||Ce.attributeCheck instanceof Function&&Ce.attributeCheck(t,e);if(!(Te&&mo(de,t))&&!(we&&mo(fe,t))){if(!i){if(!(wt(e)&&(be.tagNameCheck instanceof RegExp&&mo(be.tagNameCheck,e)||be.tagNameCheck instanceof Function&&be.tagNameCheck(e))&&(be.attributeNameCheck instanceof RegExp&&mo(be.attributeNameCheck,t)||be.attributeNameCheck instanceof Function&&be.attributeNameCheck(t,e))||t===`is`&&be.allowCustomizedBuiltInElements&&(be.tagNameCheck instanceof RegExp&&mo(be.tagNameCheck,r)||be.tagNameCheck instanceof Function&&be.tagNameCheck(r))))return!1}else if(!Ke[t]&&!mo(ge,io(r,me,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&ao(r,`data:`)===0&&We[e])&&!(A&&!mo(pe,io(r,me,``)))&&r)return!1}return!0},Ct=$({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),wt=function(e){return!Ct[to(e)]&&mo(he,e)},Tt=function(e,t,n,r){if(x&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return te(r);case`TrustedScriptURL`:return ne(r)}return r},Et=function(e,n,r,i){try{r?e.setAttributeNS(r,n,i):e.setAttribute(n,i),ht(e)?st(e):Za(t.removed)}catch{lt(n,e)}},Dt=function(e){vt(D.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||ht(e))return;let n={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:ve,forceKeepAttr:void 0},r=t.length,i=V(e.nodeName);for(;r--;){let a=t[r],o=a.name,s=a.namespaceURI,c=a.value,l=V(o),u=c,d=o===`value`?u:oo(u);if(n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,vt(D.uponSanitizeAttribute,e,n),d=n.attrValue,Le&&(l===`id`||l===`name`)&&ao(d,Re)!==0&&(lt(o,e),d=Re+d),De&&mo(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){lt(o,e);continue}if(l===`attributename`&&ro(d,`href`)){lt(o,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr){lt(o,e);continue}if(!j&&mo(qo,d)){lt(o,e);continue}if(Ee&&(d=pt(d)),!St(i,l,d)){lt(o,e);continue}d=Tt(i,l,s,d),d!==u&&Et(e,o,s,d)}}vt(D.afterSanitizeAttributes,e,null)},Ot=function(e){let t=null,n=ft(e);for(vt(D.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(vt(D.uponSanitizeShadowNode,t,null),xt(t),Dt(t),gt(t.content)&&Ot(t.content),(y?y(t):t.nodeType)===Jo.element){let e=_(t);gt(e)&&(kt(e),Ot(e))}vt(D.afterSanitizeShadowDOM,e,null)},kt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Ot(e.shadow);continue}let n=e.node,r=(y?y(n):n.nodeType)===Jo.element,i=h(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=b?b(n):null;if(typeof e==`string`&&V(e)===`template`){let e=n.content;gt(e)&&t.push({node:e,shadow:null})}}if(r){let e=_(n);gt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(P=!e,P&&(e=`<!-->`),typeof e!=`string`&&!_t(e)&&(e=bo(e),typeof e!=`string`))throw ho(`dirty is not a string, aborting`);if(!t.isSupported)return e;ke?(k=Ae,ve=je):U(n),(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&(k=yo(k)),D.uponSanitizeAttribute.length>0&&(ve=yo(ve)),t.removed=[];let c=Be&&typeof e!=`string`&&_t(e);if(c){let t=b?b(e):e.nodeName;if(typeof t==`string`){let e=V(t);if(!k[e]||xe[e])throw ho(`root node is forbidden and cannot be sanitized in-place`)}if(ht(e))throw ho(`root node is clobbered and cannot be sanitized in-place`);try{kt(e)}catch(t){throw ct(e),t}}else if(_t(e))i=dt(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===Jo.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),kt(a);else{if(!Ne&&!Ee&&!Oe&&e.indexOf(`<`)===-1)return x&&Fe?te(e):e;if(i=dt(e),!i)return Ne?null:Fe?S:``}i&&Me&&st(i.firstChild);let l=ft(c?e:i);try{for(;o=l.nextNode();)xt(o),Dt(o),gt(o.content)&&Ot(o.content)}catch(t){throw c&&ct(e),t}if(c)return Ya(t.removed,e=>{e.element&&W(e.element)}),Ee&&mt(e),e;if(Ne){if(Ee&&mt(i),Pe)for(s=E.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(ve.shadowroot||ve.shadowrootmode)&&(s=ce.call(r,s,!0)),s}let u=Oe?i.outerHTML:i.innerHTML;return Oe&&k[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&mo(Ho,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
259
- `+u),Ee&&(u=pt(u)),x&&Fe?te(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};U(e),ke=!0,Ae=k,je=ve},t.clearConfig=function(){$e=null,ke=!1,Ae=null,je=null,x=C,S=``},t.isValidAttribute=function(e,t,n){$e||U({});let r=V(e),i=V(t);return St(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&fo(D,e)&&Qa(D[e],t)},t.removeHook=function(e,t){if(fo(D,e)){if(t!==void 0){let n=Xa(D[e],t);return n===-1?void 0:$a(D[e],n,1)[0]}return Za(D[e])}},t.removeHooks=function(e){fo(D,e)&&(D[e]=[])},t.removeAllHooks=function(){D=Zo()},t}var es=$o();export{t as n,es as t};
258
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ia(e,t){return Na(e)||Pa(e,t)||La(e,t)||Fa()}function La(e,t){if(e){if(typeof e==`string`)return Ma(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ma(e,t):void 0}}var Ra=Object.entries,za=Object.setPrototypeOf,Ba=Object.isFrozen,Va=Object.getPrototypeOf,Ha=Object.getOwnPropertyDescriptor,Ua=Object.freeze,Wa=Object.seal,Ga=Object.create,Ka=typeof Reflect<`u`&&Reflect,qa=Ka.apply,Ja=Ka.construct;Ua||=function(e){return e},Wa||=function(e){return e},qa||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},Ja||=function(e){return new e(...[...arguments].slice(1))};var Ya=go(Array.prototype.forEach),Xa=go(Array.prototype.lastIndexOf),Za=go(Array.prototype.pop),Qa=go(Array.prototype.push),$a=go(Array.prototype.splice),eo=Array.isArray,to=go(String.prototype.toLowerCase),no=go(String.prototype.toString),ro=go(String.prototype.match),io=go(String.prototype.replace),ao=go(String.prototype.indexOf),oo=go(String.prototype.trim),so=go(Number.prototype.toString),co=go(Boolean.prototype.toString),lo=typeof BigInt>`u`?null:go(BigInt.prototype.toString),uo=typeof Symbol>`u`?null:go(Symbol.prototype.toString),fo=go(Object.prototype.hasOwnProperty),po=go(Object.prototype.toString),mo=go(RegExp.prototype.test),ho=_o(TypeError);function go(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return qa(e,t,n)}}function _o(e){return function(){return Ja(e,[...arguments])}}function $(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:to;if(za&&za(e,null),!eo(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Ba(t)||(t[r]=e),i=e)}e[i]=!0}return e}function vo(e){for(let t=0;t<e.length;t++)fo(e,t)||(e[t]=null);return e}function yo(e){let t=Ga(null);for(let r of Ra(e)){var n=Ia(r,2);let i=n[0],a=n[1];fo(e,i)&&(eo(a)?t[i]=vo(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=yo(a):t[i]=a)}return t}function bo(e){switch(typeof e){case`string`:return e;case`number`:return so(e);case`boolean`:return co(e);case`bigint`:return lo?lo(e):`0`;case`symbol`:return uo?uo(e):`Symbol()`;case`undefined`:return po(e);case`function`:case`object`:{if(e===null)return po(e);let t=e,n=xo(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:po(e)}return po(e)}default:return po(e)}}function xo(e,t){for(;e!==null;){let n=Ha(e,t);if(n){if(n.get)return go(n.get);if(typeof n.value==`function`)return go(n.value)}e=Va(e)}function n(){return null}return n}function So(e){try{return mo(e,``),!0}catch{return!1}}var Co=Ua(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),wo=Ua(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),To=Ua([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Eo=Ua([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Do=Ua(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),Oo=Ua([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),ko=Ua([`#text`]),Ao=Ua(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),jo=Ua(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Mo=Ua(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),No=Ua([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Po=Wa(/{{[\w\W]*|^[\w\W]*}}/g),Fo=Wa(/<%[\w\W]*|^[\w\W]*%>/g),Io=Wa(/\${[\w\W]*/g),Lo=Wa(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ro=Wa(/^aria-[\-\w]+$/),zo=Wa(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Bo=Wa(/^(?:\w+script|data):/i),Vo=Wa(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ho=Wa(/^html$/i),Uo=Wa(/^[a-z][.\w]*(-[.\w]+)+$/i),Wo=Wa(/<[/\w!]/g),Go=Wa(/<[/\w]/g),Ko=Wa(/<\/no(script|embed|frames)/i),qo=Wa(/\/>/i),Jo={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Yo=function(){return typeof window>`u`?null:window},Xo=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Zo=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Qo=function(e,t,n,r){return fo(e,t)&&eo(e[t])?$(r.base?yo(r.base):{},e[t],r.transform):n};function $o(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Yo(),t=e=>$o(e);if(t.version=`3.4.12`,t.removed=[],!e||!e.document||e.document.nodeType!==Jo.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=xo(d,`cloneNode`),p=xo(d,`remove`),m=xo(d,`nextSibling`),h=xo(d,`childNodes`),g=xo(d,`parentNode`),_=xo(d,`shadowRoot`),v=xo(d,`attributes`),y=o&&o.prototype?xo(o.prototype,`nodeType`):null,b=o&&o.prototype?xo(o.prototype,`nodeName`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let x,S=``,C,ee=!1,w=0,T=function(){if(w>0)throw ho(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},te=function(e){T(),w++;try{return x.createHTML(e)}finally{w--}},ne=function(e){T(),w++;try{return x.createScriptURL(e)}finally{w--}},re=function(){return ee||=(C=Xo(u,i),!0),C},ie=n,ae=ie.implementation,oe=ie.createNodeIterator,E=ie.createDocumentFragment,se=ie.getElementsByTagName,ce=r.importNode,D=Zo();t.isSupported=typeof Ra==`function`&&typeof g==`function`&&ae&&ae.createHTMLDocument!==void 0;let le=Po,O=Fo,ue=Io,de=Lo,fe=Ro,pe=Bo,me=Vo,he=Uo,ge=zo,k=null,_e=$({},[...Co,...wo,...To,...Do,...ko]),ve=null,ye=$({},[...Ao,...jo,...Mo,...No]),be=Object.seal(Ga(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xe=null,Se=null,Ce=Object.seal(Ga(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),we=!0,Te=!0,A=!1,j=!0,Ee=!1,De=!0,Oe=!1,ke=!1,Ae=null,je=null,Me=!1,Ne=!1,Pe=!1,Fe=!1,Ie=!0,Le=!1,Re=`user-content-`,ze=!0,Be=!1,Ve={},He=null,Ue=$({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),We=null,Ge=$({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ke=null,qe=$({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Je=`http://www.w3.org/1998/Math/MathML`,Ye=`http://www.w3.org/2000/svg`,M=`http://www.w3.org/1999/xhtml`,N=M,P=!1,F=null,I=$({},[Je,Ye,M],no),L=Ua([`mi`,`mo`,`mn`,`ms`,`mtext`]),R=$({},L),z=Ua([`annotation-xml`]),Xe=$({},z),Ze=$({},[`title`,`style`,`font`,`a`,`script`]),B=null,Qe=[`application/xhtml+xml`,`text/html`],V=null,$e=null,H=n.createElement(`form`),et=function(e){return e instanceof RegExp||e instanceof Function},U=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if($e&&$e===e)return;(!e||typeof e!=`object`)&&(e={}),e=yo(e),B=Qe.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,V=B===`application/xhtml+xml`?no:to,k=Qo(e,`ALLOWED_TAGS`,_e,{transform:V}),ve=Qo(e,`ALLOWED_ATTR`,ye,{transform:V}),F=Qo(e,`ALLOWED_NAMESPACES`,I,{transform:no}),Ke=Qo(e,`ADD_URI_SAFE_ATTR`,qe,{transform:V,base:qe}),We=Qo(e,`ADD_DATA_URI_TAGS`,Ge,{transform:V,base:Ge}),He=Qo(e,`FORBID_CONTENTS`,Ue,{transform:V}),xe=Qo(e,`FORBID_TAGS`,yo({}),{transform:V}),Se=Qo(e,`FORBID_ATTR`,yo({}),{transform:V}),Ve=fo(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?yo(e.USE_PROFILES):e.USE_PROFILES:!1,we=e.ALLOW_ARIA_ATTR!==!1,Te=e.ALLOW_DATA_ATTR!==!1,A=e.ALLOW_UNKNOWN_PROTOCOLS||!1,j=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ee=e.SAFE_FOR_TEMPLATES||!1,De=e.SAFE_FOR_XML!==!1,Oe=e.WHOLE_DOCUMENT||!1,Ne=e.RETURN_DOM||!1,Pe=e.RETURN_DOM_FRAGMENT||!1,Fe=e.RETURN_TRUSTED_TYPE||!1,Me=e.FORCE_BODY||!1,Ie=e.SANITIZE_DOM!==!1,Le=e.SANITIZE_NAMED_PROPS||!1,ze=e.KEEP_CONTENT!==!1,Be=e.IN_PLACE||!1,ge=So(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:zo,N=typeof e.NAMESPACE==`string`?e.NAMESPACE:M,R=fo(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?yo(e.MATHML_TEXT_INTEGRATION_POINTS):$({},L),Xe=fo(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?yo(e.HTML_INTEGRATION_POINTS):$({},z);let t=fo(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?yo(e.CUSTOM_ELEMENT_HANDLING):Ga(null);if(be=Ga(null),fo(t,`tagNameCheck`)&&et(t.tagNameCheck)&&(be.tagNameCheck=t.tagNameCheck),fo(t,`attributeNameCheck`)&&et(t.attributeNameCheck)&&(be.attributeNameCheck=t.attributeNameCheck),fo(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(be.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Wa(be),Ee&&(Te=!1),Pe&&(Ne=!0),Ve&&(k=$({},ko),ve=Ga(null),Ve.html===!0&&($(k,Co),$(ve,Ao)),Ve.svg===!0&&($(k,wo),$(ve,jo),$(ve,No)),Ve.svgFilters===!0&&($(k,To),$(ve,jo),$(ve,No)),Ve.mathMl===!0&&($(k,Do),$(ve,Mo),$(ve,No))),Ce.tagCheck=null,Ce.attributeCheck=null,fo(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?Ce.tagCheck=e.ADD_TAGS:eo(e.ADD_TAGS)&&(k===_e&&(k=yo(k)),$(k,e.ADD_TAGS,V))),fo(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?Ce.attributeCheck=e.ADD_ATTR:eo(e.ADD_ATTR)&&(ve===ye&&(ve=yo(ve)),$(ve,e.ADD_ATTR,V))),fo(e,`ADD_URI_SAFE_ATTR`)&&eo(e.ADD_URI_SAFE_ATTR)&&$(Ke,e.ADD_URI_SAFE_ATTR,V),fo(e,`FORBID_CONTENTS`)&&eo(e.FORBID_CONTENTS)&&(He===Ue&&(He=yo(He)),$(He,e.FORBID_CONTENTS,V)),fo(e,`ADD_FORBID_CONTENTS`)&&eo(e.ADD_FORBID_CONTENTS)&&(He===Ue&&(He=yo(He)),$(He,e.ADD_FORBID_CONTENTS,V)),ze&&(k[`#text`]=!0),Oe&&$(k,[`html`,`head`,`body`]),k.table&&($(k,[`tbody`]),delete xe.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw ho(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw ho(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=x;x=e.TRUSTED_TYPES_POLICY;try{S=te(``)}catch(e){throw x=t,e}}else e.TRUSTED_TYPES_POLICY===null?(x=void 0,S=``):(x===void 0&&(x=re()),x&&typeof S==`string`&&(S=te(``)));Ua&&Ua(e),$e=e},tt=$({},[...wo,...To,...Eo]),nt=$({},[...Do,...Oo]),rt=function(e,t,n){return t.namespaceURI===M?e===`svg`:t.namespaceURI===Je?e===`svg`&&(n===`annotation-xml`||R[n]):!!tt[e]},it=function(e,t,n){return t.namespaceURI===M?e===`math`:t.namespaceURI===Ye?e===`math`&&Xe[n]:!!nt[e]},at=function(e,t,n){return t.namespaceURI===Ye&&!Xe[n]||t.namespaceURI===Je&&!R[n]?!1:!nt[e]&&(Ze[e]||!tt[e])},ot=function(e){let t=g(e);(!t||!t.tagName)&&(t={namespaceURI:N,tagName:`template`});let n=to(e.tagName),r=to(t.tagName);return F[e.namespaceURI]?e.namespaceURI===Ye?rt(n,t,r):e.namespaceURI===Je?it(n,t,r):e.namespaceURI===M?at(n,t,r):!!(B===`application/xhtml+xml`&&F[e.namespaceURI]):!1},st=function(e){Qa(t.removed,{element:e});try{g(e).removeChild(e)}catch{if(p(e),!g(e))throw ho(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},ct=function(e){W(e);let t=h(e);if(t){let e=[];Ya(t,t=>{Qa(e,t)}),Ya(e,e=>{try{p(e)}catch{}})}let n=v(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;if(typeof i==`string`)try{e.removeAttribute(i)}catch{}}},lt=function(e,n){try{Qa(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{Qa(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(Ne||Pe)try{st(n)}catch{}else try{n.setAttribute(e,``)}catch{}},ut=function(e){let t=v(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;if(!(typeof i!=`string`||ve[V(i)]))try{e.removeAttribute(i)}catch{}}},W=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(y?y(e):e.nodeType)===Jo.element&&ut(e);let n=h(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},dt=function(e){if(!De)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=y?y(e):e.nodeType;if(n===Jo.processingInstruction||n===Jo.comment&&mo(Go,e.data)){try{p(e)}catch{}continue}if(n===Jo.element){let t=e,n=V(b?b(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&n!==`label`&&n!==`output`&&t.removeAttribute(`for`)}catch{}}let r=h(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},ft=function(e){let t=null,r=null;if(Me)e=`<remove></remove>`+e;else{let t=ro(e,/^[\r\n\t ]+/);r=t&&t[0]}B===`application/xhtml+xml`&&N===M&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=x?te(e):e;if(N===M)try{t=new l().parseFromString(i,B)}catch{}if(!t||!t.documentElement){t=ae.createDocument(N,`template`,null);try{t.documentElement.innerHTML=P?S:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),N===M?se.call(t,Oe?`html`:`body`)[0]:Oe?t.documentElement:a},pt=function(e){return oe.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},mt=function(e){return e=io(e,le,` `),e=io(e,O,` `),e=io(e,ue,` `),e},ht=function(e){e.normalize();let t=oe.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),n=t.nextNode();for(;n;)n.data=mt(n.data),n=t.nextNode();let r=e.querySelectorAll?.call(e,`template`);r&&Ya(r,e=>{_t(e.content)&&ht(e.content)})},gt=function(e){let t=b?b(e):null;return typeof t!=`string`||V(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==v(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==y(e)||e.childNodes!==h(e)},_t=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return y(e)===Jo.documentFragment}catch{return!1}},vt=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return typeof y(e)==`number`}catch{return!1}};function yt(e,n,r){e.length!==0&&Ya(e,e=>{e.call(t,n,r,$e)})}let bt=function(e,t){return!!(De&&e.hasChildNodes()&&!vt(e.firstElementChild)&&mo(Wo,e.textContent)&&mo(Wo,e.innerHTML)||De&&e.namespaceURI===M&&t===`style`&&vt(e.firstElementChild)||e.nodeType===Jo.processingInstruction||De&&e.nodeType===Jo.comment&&mo(Go,e.data))},xt=function(e,t){if(!xe[t]&&Tt(t)&&(be.tagNameCheck instanceof RegExp&&mo(be.tagNameCheck,t)||be.tagNameCheck instanceof Function&&be.tagNameCheck(t)))return!1;if(ze&&!He[t]){let t=g(e),n=h(e);if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=Be?n[i]:f(n[i],!0);t.insertBefore(r,m(e))}}}return st(e),!0},St=function(e,n){if(yt(D.beforeSanitizeElements,e,null),e!==n&&g(e)===null)return!0;if(gt(e))return st(e),!0;let r=V(b?b(e):e.nodeName);if(yt(D.uponSanitizeElement,e,{tagName:r,allowedTags:k}),e!==n&&g(e)===null)return!0;if(bt(e,r))return st(e),!0;if(xe[r]||!(Ce.tagCheck instanceof Function&&Ce.tagCheck(r))&&!k[r]){let t=xt(e,r);return t===!1&&yt(D.afterSanitizeElements,e,null),t}if((y?y(e):e.nodeType)===Jo.element&&!ot(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&mo(Ko,e.innerHTML))return st(e),!0;if(Ee&&e.nodeType===Jo.text){let n=mt(e.textContent);e.textContent!==n&&(Qa(t.removed,{element:e.cloneNode()}),e.textContent=n)}return yt(D.afterSanitizeElements,e,null),!1},Ct=function(e,t,r){if(Se[t]||De&&t===`patchsrc`||De&&t===`for`&&e!==`label`&&e!==`output`||Ie&&(t===`id`||t===`name`)&&(r in n||r in H))return!1;let i=ve[t]||Ce.attributeCheck instanceof Function&&Ce.attributeCheck(t,e);if(!(Te&&mo(de,t))&&!(we&&mo(fe,t))){if(!i){if(!(Tt(e)&&(be.tagNameCheck instanceof RegExp&&mo(be.tagNameCheck,e)||be.tagNameCheck instanceof Function&&be.tagNameCheck(e))&&(be.attributeNameCheck instanceof RegExp&&mo(be.attributeNameCheck,t)||be.attributeNameCheck instanceof Function&&be.attributeNameCheck(t,e))||t===`is`&&be.allowCustomizedBuiltInElements&&(be.tagNameCheck instanceof RegExp&&mo(be.tagNameCheck,r)||be.tagNameCheck instanceof Function&&be.tagNameCheck(r))))return!1}else if(!Ke[t]&&!mo(ge,io(r,me,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&ao(r,`data:`)===0&&We[e])&&!(A&&!mo(pe,io(r,me,``)))&&r)return!1}return!0},wt=$({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Tt=function(e){return!wt[to(e)]&&mo(he,e)},Et=function(e,t,n,r){if(x&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return te(r);case`TrustedScriptURL`:return ne(r)}return r},Dt=function(e,n,r,i){try{r?e.setAttributeNS(r,n,i):e.setAttribute(n,i),gt(e)?st(e):Za(t.removed)}catch{lt(n,e)}},Ot=function(e){yt(D.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||gt(e))return;let n={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:ve,forceKeepAttr:void 0},r=t.length,i=V(e.nodeName);for(;r--;){let a=t[r],o=a.name,s=a.namespaceURI,c=a.value,l=V(o),u=c,d=o===`value`?u:oo(u);if(n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,yt(D.uponSanitizeAttribute,e,n),d=n.attrValue,Le&&(l===`id`||l===`name`)&&ao(d,Re)!==0&&(lt(o,e),d=Re+d),De&&mo(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){lt(o,e);continue}if(l===`attributename`&&ro(d,`href`)){lt(o,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr){lt(o,e);continue}if(!j&&mo(qo,d)){lt(o,e);continue}if(Ee&&(d=mt(d)),!Ct(i,l,d)){lt(o,e);continue}d=Et(i,l,s,d),d!==u&&Dt(e,o,s,d)}}yt(D.afterSanitizeAttributes,e,null)},kt=function(e){let t=null,n=pt(e);for(yt(D.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(yt(D.uponSanitizeShadowNode,t,null),St(t,e),Ot(t),_t(t.content)&&kt(t.content),(y?y(t):t.nodeType)===Jo.element){let e=_(t);_t(e)&&(At(e),kt(e))}yt(D.afterSanitizeShadowDOM,e,null)},At=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){kt(e.shadow);continue}let n=e.node,r=(y?y(n):n.nodeType)===Jo.element,i=h(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=b?b(n):null;if(typeof e==`string`&&V(e)===`template`){let e=n.content;_t(e)&&t.push({node:e,shadow:null})}}if(r){let e=_(n);_t(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(P=!e,P&&(e=`<!-->`),typeof e!=`string`&&!vt(e)&&(e=bo(e),typeof e!=`string`))throw ho(`dirty is not a string, aborting`);if(!t.isSupported)return e;ke?(k=Ae,ve=je):U(n),(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&(k=yo(k)),D.uponSanitizeAttribute.length>0&&(ve=yo(ve)),t.removed=[];let c=Be&&typeof e!=`string`&&vt(e);if(c){dt(e);let t=b?b(e):e.nodeName;if(typeof t==`string`){let n=V(t);if(!k[n]||xe[n])throw ct(e),ho(`root node is forbidden and cannot be sanitized in-place`)}if(gt(e))throw ct(e),ho(`root node is clobbered and cannot be sanitized in-place`);try{At(e)}catch(t){throw ct(e),t}}else if(vt(e))i=ft(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===Jo.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),At(a);else{if(!Ne&&!Ee&&!Oe&&e.indexOf(`<`)===-1)return x&&Fe?te(e):e;if(i=ft(e),!i)return Ne?null:Fe?S:``}i&&Me&&st(i.firstChild);let l=c?e:i,u=pt(l);try{for(;o=u.nextNode();)St(o,l),Ot(o),_t(o.content)&&kt(o.content)}catch(n){throw c&&(ct(e),Ya(t.removed,e=>{e.element&&W(e.element)})),n}if(c)return Ya(t.removed,e=>{e.element&&W(e.element)}),Ee&&ht(e),e;if(Ne){if(Ee&&ht(i),Pe)for(s=E.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(ve.shadowroot||ve.shadowrootmode)&&(s=ce.call(r,s,!0)),s}let d=Oe?i.outerHTML:i.innerHTML;return Oe&&k[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&mo(Ho,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
259
+ `+d),Ee&&(d=mt(d)),x&&Fe?te(d):d},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};U(e),ke=!0,Ae=k,je=ve},t.clearConfig=function(){$e=null,ke=!1,Ae=null,je=null,x=C,S=``},t.isValidAttribute=function(e,t,n){$e||U({});let r=V(e),i=V(t);return Ct(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&fo(D,e)&&Qa(D[e],t)},t.removeHook=function(e,t){if(fo(D,e)){if(t!==void 0){let n=Xa(D[e],t);return n===-1?void 0:$a(D[e],n,1)[0]}return Za(D[e])}},t.removeHooks=function(e){fo(D,e)&&(D[e]=[])},t.removeAllHooks=function(){D=Zo()},t}var es=$o();export{t as n,es as t};