@next-bricks/ai-portal 0.26.1 → 0.26.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bricks.json CHANGED
@@ -4,16 +4,16 @@
4
4
  "ai-portal.cruise-canvas",
5
5
  "ai-portal.chat-history",
6
6
  "ai-portal.stat-with-mini-chart",
7
+ "ai-portal.home-container",
7
8
  "ai-portal.elevo-logo",
8
9
  "ai-portal.elevo-sidebar",
9
10
  "ai-portal.icon-button",
11
+ "ai-portal.chat-box",
10
12
  "ai-portal.show-cases",
11
13
  "ai-portal.mcp-tools",
12
- "ai-portal.home-container",
13
14
  "ai-portal.chat-stream",
14
- "ai-portal.ai-employees",
15
15
  "ai-portal.ai-agents",
16
- "ai-portal.chat-box"
16
+ "ai-portal.ai-employees"
17
17
  ],
18
18
  "elements": [],
19
19
  "processors": [],
@@ -51,6 +51,9 @@
51
51
  "eo-icon",
52
52
  "eo-tooltip"
53
53
  ],
54
+ "ai-portal.chat-box": [
55
+ "eo-icon"
56
+ ],
54
57
  "ai-portal.show-cases": [
55
58
  "eo-link"
56
59
  ],
@@ -70,10 +73,7 @@
70
73
  ],
71
74
  "ai-portal.ai-agents": [
72
75
  "eo-icon"
73
- ],
74
- "ai-portal.chat-box": [
75
- "eo-icon"
76
76
  ]
77
77
  },
78
- "filePath": "bricks/ai-portal/dist/index.fc03ce86.js"
78
+ "filePath": "bricks/ai-portal/dist/index.86e21f56.js"
79
79
  }
@@ -0,0 +1,2 @@
1
+ "use strict";(globalThis.webpackChunk_next_bricks_ai_portal=globalThis.webpackChunk_next_bricks_ai_portal||[]).push([[3624],{2098:(e,u,t)=>{t.d(u,{w:()=>s,m:()=>l});var n=t(41030),r=t.n(n);const o=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10140}-\u{10174}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{10300}-\u{1031F}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{103D1}-\u{103D5}\u{10400}-\u{1049D}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10860}-\u{10876}\u{10880}-\u{1089E}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{10900}-\u{10915}\u{10920}-\u{10939}\u{10980}-\u{109B7}\u{109BE}\u{109BF}\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A60}-\u{10A7C}\u{10A80}-\u{10A9C}\u{10AC0}-\u{10AC7}\u{10AC9}-\u{10AE4}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B60}-\u{10B72}\u{10B80}-\u{10B91}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10D00}-\u{10D23}\u{10D4A}-\u{10D65}\u{10D6F}-\u{10D85}\u{10E80}-\u{10EA9}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10F00}-\u{10F1C}\u{10F27}\u{10F30}-\u{10F45}\u{10F70}-\u{10F81}\u{10FB0}-\u{10FC4}\u{10FE0}-\u{10FF6}\u{11003}-\u{11037}\u{11071}\u{11072}\u{11075}\u{11083}-\u{110AF}\u{110D0}-\u{110E8}\u{11103}-\u{11126}\u{11144}\u{11147}\u{11150}-\u{11172}\u{11176}\u{11183}-\u{111B2}\u{111C1}-\u{111C4}\u{111DA}\u{111DC}\u{11200}-\u{11211}\u{11213}-\u{1122B}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A8}\u{112B0}-\u{112DE}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}\u{11350}\u{1135D}-\u{11361}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}\u{113D1}\u{113D3}\u{11400}-\u{11434}\u{11447}-\u{1144A}\u{1145F}-\u{11461}\u{11480}-\u{114AF}\u{114C4}\u{114C5}\u{114C7}\u{11580}-\u{115AE}\u{115D8}-\u{115DB}\u{11600}-\u{1162F}\u{11644}\u{11680}-\u{116AA}\u{116B8}\u{11700}-\u{1171A}\u{11740}-\u{11746}\u{11800}-\u{1182B}\u{118A0}-\u{118DF}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{1192F}\u{1193F}\u{11941}\u{119A0}-\u{119A7}\u{119AA}-\u{119D0}\u{119E1}\u{119E3}\u{11A00}\u{11A0B}-\u{11A32}\u{11A3A}\u{11A50}\u{11A5C}-\u{11A89}\u{11A9D}\u{11AB0}-\u{11AF8}\u{11BC0}-\u{11BE0}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2E}\u{11C40}\u{11C72}-\u{11C8F}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D89}\u{11D98}\u{11EE0}-\u{11EF2}\u{11F02}\u{11F04}-\u{11F10}\u{11F12}-\u{11F33}\u{11FB0}\u{12000}-\u{12399}\u{12400}-\u{1246E}\u{12480}-\u{12543}\u{12F90}-\u{12FF0}\u{13000}-\u{1342F}\u{13441}-\u{13446}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{1611D}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A70}-\u{16ABE}\u{16AD0}-\u{16AED}\u{16B00}-\u{16B2F}\u{16B40}-\u{16B43}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D6C}\u{16E40}-\u{16E7F}\u{16F00}-\u{16F4A}\u{16F50}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18CFF}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E14E}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E4D0}-\u{1E4EB}\u{1E5D0}-\u{1E5ED}\u{1E5F0}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E900}-\u{1E943}\u{1E94B}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}][\$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088E\u0897-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF65-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10140}-\u{10174}\u{101FD}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E0}\u{10300}-\u{1031F}\u{1032D}-\u{1034A}\u{10350}-\u{1037A}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{103D1}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10860}-\u{10876}\u{10880}-\u{1089E}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{10900}-\u{10915}\u{10920}-\u{10939}\u{10980}-\u{109B7}\u{109BE}\u{109BF}\u{10A00}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A38}-\u{10A3A}\u{10A3F}\u{10A60}-\u{10A7C}\u{10A80}-\u{10A9C}\u{10AC0}-\u{10AC7}\u{10AC9}-\u{10AE6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B60}-\u{10B72}\u{10B80}-\u{10B91}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10D00}-\u{10D27}\u{10D30}-\u{10D39}\u{10D40}-\u{10D65}\u{10D69}-\u{10D6D}\u{10D6F}-\u{10D85}\u{10E80}-\u{10EA9}\u{10EAB}\u{10EAC}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10EFC}-\u{10F1C}\u{10F27}\u{10F30}-\u{10F50}\u{10F70}-\u{10F85}\u{10FB0}-\u{10FC4}\u{10FE0}-\u{10FF6}\u{11000}-\u{11046}\u{11066}-\u{11075}\u{1107F}-\u{110BA}\u{110C2}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11100}-\u{11134}\u{11136}-\u{1113F}\u{11144}-\u{11147}\u{11150}-\u{11173}\u{11176}\u{11180}-\u{111C4}\u{111C9}-\u{111CC}\u{111CE}-\u{111DA}\u{111DC}\u{11200}-\u{11211}\u{11213}-\u{11237}\u{1123E}-\u{11241}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A8}\u{112B0}-\u{112EA}\u{112F0}-\u{112F9}\u{11300}-\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133B}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113C0}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}-\u{113D3}\u{113E1}\u{113E2}\u{11400}-\u{1144A}\u{11450}-\u{11459}\u{1145E}-\u{11461}\u{11480}-\u{114C5}\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B5}\u{115B8}-\u{115C0}\u{115D8}-\u{115DD}\u{11600}-\u{11640}\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116B8}\u{116C0}-\u{116C9}\u{116D0}-\u{116E3}\u{11700}-\u{1171A}\u{1171D}-\u{1172B}\u{11730}-\u{11739}\u{11740}-\u{11746}\u{11800}-\u{1183A}\u{118A0}-\u{118E9}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{11943}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D7}\u{119DA}-\u{119E1}\u{119E3}\u{119E4}\u{11A00}-\u{11A3E}\u{11A47}\u{11A50}-\u{11A99}\u{11A9D}\u{11AB0}-\u{11AF8}\u{11BC0}-\u{11BE0}\u{11BF0}-\u{11BF9}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C36}\u{11C38}-\u{11C40}\u{11C50}-\u{11C59}\u{11C72}-\u{11C8F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D47}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF6}\u{11F00}-\u{11F10}\u{11F12}-\u{11F3A}\u{11F3E}-\u{11F42}\u{11F50}-\u{11F5A}\u{11FB0}\u{12000}-\u{12399}\u{12400}-\u{1246E}\u{12480}-\u{12543}\u{12F90}-\u{12FF0}\u{13000}-\u{1342F}\u{13440}-\u{13455}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{16139}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A70}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF0}-\u{16AF4}\u{16B00}-\u{16B36}\u{16B40}-\u{16B43}\u{16B50}-\u{16B59}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D6C}\u{16D70}-\u{16D79}\u{16E40}-\u{16E7F}\u{16F00}-\u{16F4A}\u{16F4F}-\u{16F87}\u{16F8F}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FE4}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18CFF}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9D}\u{1BC9E}\u{1CCF0}-\u{1CCF9}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D165}-\u{1D169}\u{1D16D}-\u{1D172}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D7FF}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E030}-\u{1E06D}\u{1E08F}\u{1E100}-\u{1E12C}\u{1E130}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E290}-\u{1E2AE}\u{1E2C0}-\u{1E2F9}\u{1E4D0}-\u{1E4F9}\u{1E5D0}-\u{1E5FA}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E8D0}-\u{1E8D6}\u{1E900}-\u{1E94B}\u{1E950}-\u{1E959}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{E0100}-\u{E01EF}]*$/u;function a(e){const u=String(e);return o.test(u)?`.${u}`:`[${JSON.stringify(u)}]`}const{pick:i}=r();function s(e,u,t){return l(e,a(u),t)}function l(e,u,t){let n;switch(e.display){case"link":case"text":n=d(e,u,t),"struct-list"!==e.type||e.countOnly?"link"===e.display&&(n={brick:"eo-link",children:[n]}):n={brick:"eo-tag",children:[n]};break;case"tag":{var r,o,a,i,s;const t="background"===(null===(r=e.style)||void 0===r?void 0:r.variant)?"-inverse":"",l=p(e,u);n={brick:"eo-tag",properties:{textContent:`<% ${l} %>`,size:E(null===(o=e.style)||void 0===o?void 0:o.size),color:null!==(a=e.style)&&void 0!==a&&a.background?`${e.style.background}${t}`:null!==(i=e.style)&&void 0!==i&&i.palette?`<%\n \`\${new Map(Object.entries(${JSON.stringify(e.style.palette,null,2).replaceAll("\n","\n ")})).get(${l}) ?? "gray"}${t}\`\n%>`:`gray${t}`,outline:"outline"===(null===(s=e.style)||void 0===s?void 0:s.variant)}};break}case"icon":n=c(e,u,t);break;case"icon+text":n={brick:"span",properties:{style:{display:"inline-flex",alignItems:"center",gap:"0.5em"}},children:[c(e,u,t),d(e,u,t)]};break;default:return null}if("struct-list"!==e.type||e.countOnly)return n;const l=Number(e.maxItems)||3;return{brick:"span",properties:{style:{display:"inline-flex",alignItems:"center",gap:"0.5em"}},children:[{brick:":forEach",dataSource:`<% DATA${u}.slice(0, ${l}) %>`,children:[n]},{brick:"eo-link",if:`<% DATA${u}.length > ${l} %>`,properties:{textContent:`<% \`+ \${DATA${u}.length - ${l}}\` %>`}}]}}function c(e,u,t){if("boolean"===e.type){var n,r,o,a,i,s;const l=p(e,u),c=null!==(n=null===(r=e.true)||void 0===r?void 0:r.icon)&&void 0!==n?n:"check",d=null!==(o=null===(a=e.false)||void 0===a?void 0:a.icon)&&void 0!==o?o:"xmark",E=A(null===(i=e.true)||void 0===i?void 0:i.style,t),m=A(null===(s=e.false)||void 0===s?void 0:s.style,t);return{brick:"eo-icon",properties:{lib:"fa",prefix:"fas",icon:`<% ${l} ? ${JSON.stringify(c)} : ${JSON.stringify(d)} %>`,style:`<% ${l} ? ${JSON.stringify(E)} : ${JSON.stringify(m)} %>`}}}if("json"===e.type){const n=p(e,u);return{brick:"eo-icon",properties:{lib:`<% ${n}?.lib %>`,prefix:`<% ${n}?.prefix %>`,category:`<% ${n}?.category %>`,theme:`<% ${n}?.theme %>`,icon:`<% ${n}?.icon %>`,style:A(e.style,t)}}}return{brick:"eo-icon",properties:{lib:"fa",prefix:"fas",icon:e.icon,style:A(e.style,t)}}}function d(e,u,t){var n;if("struct-list"===e.type&&e.countOnly)return{brick:"span",properties:{textContent:`<% \`\${DATA${u}.length}\` %>`}};const r=p(e,u),o=`<% ${r} %>`;switch(null===(n=e.formatter)||void 0===n?void 0:n.type){case"number":return{brick:"eo-formatter-number",properties:{value:o,type:e.formatter.format,...i(e.formatter,["currency","originalUnit","decimals","thousandsSeparator"]),style:A(e.style,t)}};case"date":case"date-time":return{brick:"eo-humanize-time",properties:{value:o,type:"date"===e.type?"date":void 0,formatter:e.formatter.format,style:A(e.style,t)}};case"cost-time":return{brick:"eo-humanize-time",properties:{value:o,isCostTime:!0,style:A(e.style,t)}};default:{let u,n,i="span";if("boolean"===e.type){var a,s,l,c,d,E;const o=null!==(a=null===(s=e.true)||void 0===s?void 0:s.text)&&void 0!==a?a:"Yes",i=null!==(l=null===(c=e.false)||void 0===c?void 0:c.text)&&void 0!==l?l:"No",p=A(null===(d=e.true)||void 0===d?void 0:d.style,t),m=A(null===(E=e.false)||void 0===E?void 0:E.style,t);u=`<% ${r} ? ${JSON.stringify(o)} : ${JSON.stringify(i)} %>`,n=`<% ${r} ? ${JSON.stringify(p)} : ${JSON.stringify(m)} %>`}else n=A(e.style,t),"json"===e.type?"link"===e.display?u='<% I18N("VIEW", "查看") %>':(i="pre",u=`<% PIPES.jsonStringify(${r}) %>`):u=o;return{brick:i,properties:{textContent:u,style:n}}}}}function p(e,u){return"struct"!==e.type&&"struct-list"!==e.type||!e.field?`DATA${u}`:`${"struct"===e.type?`DATA${u}`:"ITEM"}${a(e.field)}`}function E(e){switch(e){case"large":case"medium":case"small":return e;case"x-large":return"large"}}function A(e,u){if(!e||null!=u&&u.ignoreStyle)return;const t={};switch(e.size){case"small":t.fontSize="var(--sub-title-font-size-small)";break;case"medium":t.fontSize="var(--normal-font-size)";break;case"large":t.fontSize="var(--card-title-font-size)";break;case"x-large":t.fontSize="var(--title-font-size-larger)"}switch(e.fontWeight){case"bold":case"normal":t.fontWeight=e.fontWeight}return e.color&&(t.color=e.color),t}},4833:(e,u,t)=>{t.d(u,{W:()=>b});var n=t(18769),r=t.n(n),o=t(53373),a=t.n(o),i=t(72591),s=t.n(i),l=t(1740),c=t.n(l),d=t(88128),p=t.n(d),E=t(30855),A=t.n(E),m=t(93051),F=t.n(m),C=t(73656),D=t.n(C),f=t(67993),g={};g.styleTagTransform=D(),g.setAttributes=A(),g.insert=p().bind(null,"head"),g.domAPI=c(),g.insertStyleElement=F(),s()(f.A,g);const B=f.A&&f.A.locals?f.A.locals:void 0;function b(e){let{progress:u,failed:t}=e;const n=u.data;return r().createElement("div",{className:a()(B["progress-line"],{[B.failed]:t})},r().createElement("div",{className:a()(B.step),key:n.progress},r().createElement("div",{className:B.axis},r().createElement("div",{className:B.line}),r().createElement("div",{className:B.dot})),r().createElement("div",{className:B.progress},r().createElement("span",{className:B.count},n.progress),r().createElement("span",null,"/"),r().createElement("span",{className:B.total},n.total)),r().createElement("div",{className:B.description},n.message)))}},5543:(e,u,t)=>{t.d(u,{x:()=>o});var n=t(8406);const r=new Map;async function o(e){if(r.has(e))return r.get(e);const u=async function(e){const{list:u}=await(0,n.y)("MODEL_OBJECT",{fields:["instanceId"],query:{objectId:{$eq:e}},page_size:1});return null!=u&&u.length?u[0].instanceId:null}(e);return r.set(e,u),u}},8590:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".node-feedback--qSAvjvCa{width:var(--cruise-canvas-node-width-medium);background:rgba(255,255,255,0.2);border-radius:12px;border:1px solid rgba(255,255,255,0.3);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:20px 28px}.heading--zbbPDsFk{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.title--l9cmJRhB{font-weight:500}.form-item--wtgYuM1v{font-size:12px;line-height:17px;color:rgba(0,0,0,0.88)}.form-item--wtgYuM1v.horizontal--zqc5U1Jh{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:1em}.form-item--wtgYuM1v.vertical--i26lXOiT{margin-top:16px}.form-item--wtgYuM1v.vertical--i26lXOiT label{display:block;color:rgba(0,0,0,0.45);margin-bottom:8px}.form-item--wtgYuM1v textarea{width:100%;background:none;border-radius:8px;border:1px solid rgba(0,0,0,0.15);padding:8px;color:#262626}.form-item--wtgYuM1v textarea:focus{outline:none;border-color:rgba(0,0,0,0.25)}.options--Cak4FPTk{display:flex;align-items:center}.radio--P5Vo_D45{position:relative;cursor:pointer}.radio--P5Vo_D45 input{width:0px;height:0px;position:absolute;-webkit-appearance:none;-moz-appearance:none;appearance:none}.radio--P5Vo_D45 span{display:flex;align-items:center;justify-content:center;width:64px;height:28px;border-radius:8px;background:none;border:1px solid rgba(0,0,0,0.15)}.radio--P5Vo_D45 input:checked + span{background:rgba(255,255,255,0.5);border:none}.radio--P5Vo_D45 input:not(:checked) + span:hover{background:rgba(255,255,255,0.3);border:none}.radio--P5Vo_D45 + .radio--P5Vo_D45{margin-left:8px}.submit--eCyA49Nq{display:flex;justify-content:end;margin-top:18px;gap:8px}.validate--krlXob4C .form-item--wtgYuM1v:has(input:invalid) .label--U8YsN4Mm{color:#f24c25}.submitted--XxktB9y5{background:#d0e7d6;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:none;font-weight:500;color:#009929;padding:17px;text-align:center}",""]),a.locals={"node-feedback":"node-feedback--qSAvjvCa",heading:"heading--zbbPDsFk",title:"title--l9cmJRhB","form-item":"form-item--wtgYuM1v",horizontal:"horizontal--zqc5U1Jh",vertical:"vertical--i26lXOiT",options:"options--Cak4FPTk",radio:"radio--P5Vo_D45",submit:"submit--eCyA49Nq",validate:"validate--krlXob4C",label:"label--U8YsN4Mm",submitted:"submitted--XxktB9y5"};const i=a},11190:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".heading--Mi2u66PA{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.buttons--s1Vtr06S{display:flex;align-items:center;gap:8px}.title--t7OpwWbH{font-size:12px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;--shine-text-color:rgba(38,38,38,0.65);--shine-text-highlight-color:#dcdcdc}ai-portal\\.cruise-canvas .title--t7OpwWbH{text-indent:4px}ai-portal\\.cruise-canvas .heading--Mi2u66PA{margin-bottom:10px}.button--ulIeUcT5{display:flex;background:none;border:none;padding:3px;cursor:pointer;color:#595959}.button--ulIeUcT5:hover{color:var(--elevo-color-brand)}",""]),a.locals={heading:"heading--Mi2u66PA",buttons:"buttons--s1Vtr06S",title:"title--t7OpwWbH",button:"button--ulIeUcT5"};const i=a},11303:(e,u,t)=>{t.d(u,{k:()=>T});var n=t(18769),r=t.n(n),o=t(53373),a=t.n(o),i=t(90079),s=t(72591),l=t.n(s),c=t(1740),d=t.n(c),p=t(88128),E=t.n(p),A=t(30855),m=t.n(A),F=t(93051),C=t.n(F),D=t(73656),f=t.n(D),g=t(8590),B={};B.styleTagTransform=f(),B.setAttributes=m(),B.insert=E().bind(null,"head"),B.domAPI=d(),B.insertStyleElement=C(),l()(g.A,B);const b=g.A&&g.A.locals?g.A.locals:void 0;let v=function(e){return e.YES="YES",e.NO="NO",e.SUBMIT="SUBMIT",e.RESET="RESET",e.FEEDBACK_NODE_TITLE="FEEDBACK_NODE_TITLE",e.PROBLEM_FEEDBACK="PROBLEM_FEEDBACK",e.PROBLEM_FEEDBACK_PLACEHOLDER="PROBLEM_FEEDBACK_PLACEHOLDER",e.IS_THE_TASK_PLAN_COMPLETE="IS_THE_TASK_PLAN_COMPLETE",e.IS_THE_TASK_PLAN_LOGICALLY_CORRECT="IS_THE_TASK_PLAN_LOGICALLY_CORRECT",e.ARE_THE_TASK_PLAN_STEPS_CONCISE="ARE_THE_TASK_PLAN_STEPS_CONCISE",e.ARE_THE_ANALYTICAL_CONCLUSIONS_ACCURATE="ARE_THE_ANALYTICAL_CONCLUSIONS_ACCURATE",e.IS_THE_EVIDENCE_SUPPORTING_THE_CONCLUSIONS_SUFFICIENT="IS_THE_EVIDENCE_SUPPORTING_THE_CONCLUSIONS_SUFFICIENT",e.THANKS_FOR_YOUR_FEEDBACK="THANKS_FOR_YOUR_FEEDBACK",e}({});const h="bricks/ai-portal/NodeFeedback",y=i.i18n.getFixedT(null,h);var x=t(44394),k=t(97907),w=t(31918);let S;function _(){return S||(S=[{label:`1. ${y(v.IS_THE_TASK_PLAN_COMPLETE)}`,value:"计划完备",group:"plan"},{label:`2. ${y(v.IS_THE_TASK_PLAN_LOGICALLY_CORRECT)}`,value:"逻辑正确",group:"plan"},{label:`3. ${y(v.ARE_THE_TASK_PLAN_STEPS_CONCISE)}`,value:"步骤精简",group:"plan"},{label:`4. ${y(v.ARE_THE_ANALYTICAL_CONCLUSIONS_ACCURATE)}`,value:"结论准确",group:"result"},{label:`5. ${y(v.IS_THE_EVIDENCE_SUPPORTING_THE_CONCLUSIONS_SUFFICIENT)}`,value:"支撑证据充足",group:"result"}]),S}function T(e){let{className:u}=e;const{submittingFeedback:t,submittedFeedback:o,setShowFeedback:i,onSubmitFeedback:s}=(0,n.useContext)(w.j),l=(0,n.useRef)(null),c=_(),[d,p]=(0,n.useState)(!1),E=(0,n.useCallback)((e=>{var u,t;if(e.preventDefault(),p(!0),null===(u=l.current)||void 0===u||!u.reportValidity())return;const n=new FormData(l.current),r=[],o=[];for(let e=0;e<c.length;e++){const u=n.get(`feedback-check-${e}`);u&&("plan"===c[e].group?r.push(u):o.push(u))}s({plan:r,result:o,feedback:null!==(t=n.get("feedback"))&&void 0!==t?t:""})}),[c,s]),A=(0,n.useCallback)((e=>{var u;e.preventDefault(),p(!1),null===(u=l.current)||void 0===u||u.reset()}),[]);return o?r().createElement("div",{className:`${b["node-feedback"]} ${b.submitted}`},y(v.THANKS_FOR_YOUR_FEEDBACK)):r().createElement("div",{className:a()(b["node-feedback"],u)},r().createElement("div",{className:b.heading},r().createElement("div",{className:b.title},y(v.FEEDBACK_NODE_TITLE)),r().createElement(x.Py,{icon:k.LQ,variant:"mini",onClick:()=>i(!1)})),r().createElement("form",{className:a()(b.form,{[b.validate]:d}),ref:l},c.map(((e,u)=>r().createElement("div",{key:u,className:`${b["form-item"]} ${b.horizontal}`},r().createElement("div",{className:b.label},e.label),r().createElement("div",{className:b.options},r().createElement("label",{className:b.radio},r().createElement("input",{type:"radio",required:!0,name:`feedback-check-${u}`,value:e.value}),r().createElement("span",null,y(v.YES))),r().createElement("label",{className:b.radio},r().createElement("input",{type:"radio",required:!0,name:`feedback-check-${u}`,value:""}),r().createElement("span",null,y(v.NO))))))),r().createElement("div",{className:`${b["form-item"]} ${b.vertical}`},r().createElement("label",{htmlFor:"feedback-content"},y(v.PROBLEM_FEEDBACK)),r().createElement("textarea",{id:"feedback-content",name:"feedback",placeholder:y(v.PROBLEM_FEEDBACK_PLACEHOLDER),rows:2})),r().createElement("div",{className:b.submit},r().createElement(x.Gx,{themeVariant:"elevo",type:"text",onClick:A},y(v.RESET)),r().createElement(x.Gx,{themeVariant:"elevo",type:"primary",shape:"round",onClick:E,disabled:t},y(v.SUBMIT)))))}(0,i.initializeI18n)(h,{en:{YES:"Yes",NO:"No",SUBMIT:"Submit",RESET:"Reset",FEEDBACK_NODE_TITLE:"How do you think Elevo has done this task?",PROBLEM_FEEDBACK:"Problem feedback",PROBLEM_FEEDBACK_PLACEHOLDER:"Please describe the problem you encountered.",IS_THE_TASK_PLAN_COMPLETE:"Is the task plan complete:",IS_THE_TASK_PLAN_LOGICALLY_CORRECT:"Is the task plan logically correct:",ARE_THE_TASK_PLAN_STEPS_CONCISE:"Are the task plan steps concise:",ARE_THE_ANALYTICAL_CONCLUSIONS_ACCURATE:"Are the analytical conclusions accurate:",IS_THE_EVIDENCE_SUPPORTING_THE_CONCLUSIONS_SUFFICIENT:"Is the evidence supporting the conclusions sufficient:",THANKS_FOR_YOUR_FEEDBACK:"Thank you for helping us become better."},zh:{YES:"是",NO:"否",SUBMIT:"提交",RESET:"重置",FEEDBACK_NODE_TITLE:"Elevo 完成这项任务的效果如何?",PROBLEM_FEEDBACK:"问题反馈",PROBLEM_FEEDBACK_PLACEHOLDER:"欢迎留下您的意见",IS_THE_TASK_PLAN_COMPLETE:"任务计划是否完备:",IS_THE_TASK_PLAN_LOGICALLY_CORRECT:"任务计划是否逻辑正确:",ARE_THE_TASK_PLAN_STEPS_CONCISE:"任务计划步骤是否精简:",ARE_THE_ANALYTICAL_CONCLUSIONS_ACCURATE:"分析结论是否准确:",IS_THE_EVIDENCE_SUPPORTING_THE_CONCLUSIONS_SUFFICIENT:"结论的支撑证据是否充足:",THANKS_FOR_YOUR_FEEDBACK:"感谢你帮我们变得更好。"}})},14399:(e,u,t)=>{t.d(u,{P1:()=>i,UQ:()=>a,iO:()=>s,kf:()=>l});var n=t(58135);const r=/^\s*<%=?\s/,o=/\s%>\s*$/;function a(e){return"string"==typeof e&&r.test(e)&&o.test(e)}function i(e){let u=null;return n.traverse(e,{enter(e){!u&&(n.isFunctionExpression(e)||n.isStatement(e)||n.isJSX(e)||n.isArrowFunctionExpression(e)&&n.isBlockStatement(e.body))&&(u=e)}}),u}function s(e){return n.isNullLiteral(e)||n.isIdentifier(e)&&"undefined"===e.name}function l(e){return e.slice(2).replace(/([a-z])([A-Z])/g,"$1.$2").toLowerCase()}},20918:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".container--Apd6yCgP{background-image:linear-gradient(#fff,#fff),linear-gradient(338deg,rgba(198,183,247,1),rgba(157,198,255,1),rgba(153,196,255,1));background-origin:border-box;background-clip:content-box,border-box;box-shadow:0px 9px 28px 8px rgba(0,0,0,0.05),0px 6px 16px 0px rgba(0,0,0,0.08),0px 3px 6px -4px rgba(0,0,0,0.12);border-radius:12px;padding:2px;cursor:text}.container--Apd6yCgP:has(textarea:focus){background-image:linear-gradient(#fff,#fff),linear-gradient(338deg,rgba(160,133,249,1),rgba(101,162,246,1),rgba(120,145,255,1))}.box--XpA_yq1C{display:flex;flex-wrap:wrap;border-radius:10px;padding:8px}.input--e72Z4Eem{min-width:0;flex:1}.wrap--AFlJemgG .input--e72Z4Eem{flex-basis:100%}.input--e72Z4Eem textarea{display:block;width:100%;padding:8px;font-size:16px;line-height:24px;color:var(--antd-input-color);border:none;background:none;height:24px;color:#262626}.input--e72Z4Eem textarea::placeholder{color:#bfbfbf}.toolbar--QaTOip9S{padding:5px 0 5px 8px;margin-left:auto;display:flex;align-items:center;gap:2px}.btn-send--W8EuSrM1:focus,\ntextarea:focus{outline:none}.btn-send--W8EuSrM1{width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:var(--elevo-color-brand);border:none;border-radius:8px;color:#fff}.btn-send--W8EuSrM1:disabled{background:rgba(0,0,0,0.15)}.btn-send--W8EuSrM1:not(:disabled){cursor:pointer}.btn-send--W8EuSrM1:not(:disabled):hover{background:#5166ff}.btn-send--W8EuSrM1:not(:disabled):active{background:#1e33cc}",""]),a.locals={container:"container--Apd6yCgP",box:"box--XpA_yq1C",input:"input--e72Z4Eem",wrap:"wrap--AFlJemgG",toolbar:"toolbar--QaTOip9S","btn-send":"btn-send--W8EuSrM1"};const i=a},21472:(e,u,t)=>{t.d(u,{b:()=>y});var n=t(40580),r=t(58135),o=t(97238);const a="defineVariable",i="defineDataSource",s=o.re({action:o.eu("update_variable"),payload:o.re({name:o.Yj(),value:o.bz()})}),l=o.re({action:o.eu("refresh_data_source"),payload:o.re({name:o.Yj()})}),c=o.re({action:o.eu("call_component"),payload:o.re({componentId:o.Yj(),method:o.Yj(),args:o.YO(o.bz()).optional()})}),d=o.re({action:o.eu("show_message"),payload:o.re({type:o.k5(["info","success","warn","error"]),content:o.Yj()})}),p=o.re({action:o.eu("call_api"),payload:o.re({api:o.Yj(),params:o.bz().optional()}),get callback(){return m.optional()}}),E=o.KC([s,l,p,c,d]),A=o.KC([E,o.YO(E)]),m=o.re({success:A.optional(),error:A.optional(),finally:A.optional()});var F=t(14399);const C=Symbol("ambiguous");function D(e,u,t){if(r.isObjectExpression(e))return function(e,u,t){if(e.properties.some((e=>r.isSpreadElement(e)))&&t.allowExpression){const r=(0,F.P1)(e);var n;if(!r)return t.ambiguous?C:`<%${null!==(n=t.modifier)&&void 0!==n?n:""} ${u.source.substring(e.start,e.end)} %>`;u.errors.push({message:`Unsupported node type: ${r.type}`,node:r,severity:"error"})}const o={};for(const n of e.properties)if(r.isObjectProperty(n)){if(n.computed||n.shorthand){u.errors.push({message:"Computed properties and shorthand properties are not supported",node:n.key,severity:"error"});continue}let e;if(r.isIdentifier(n.key))e=n.key.name;else{if(!r.isStringLiteral(n.key)){u.errors.push({message:`Unsupported object key type: ${n.key.type}`,node:n.key,severity:"error"});continue}e=n.key.value}o[e]=D(n.value,u,t)}else u.errors.push({message:`Unsupported property type: ${n.type}`,node:n,severity:"error"});return o}(e,u,t);if(r.isArrayExpression(e))return function(e,u,t){if(e.elements.some((e=>r.isSpreadElement(e)))&&t.allowExpression){const r=(0,F.P1)(e);var n;if(!r)return t.ambiguous?C:`<%${null!==(n=t.modifier)&&void 0!==n?n:""} ${u.source.substring(e.start,e.end)} %>`;u.errors.push({message:`Unsupported node type: ${r.type}`,node:r,severity:"error"})}const o=[];for(const n of e.elements)null!==n?r.isSpreadElement(n)?u.errors.push({message:"Spread elements are not supported in arrays",node:n,severity:"error"}):o.push(D(n,u,t)):u.errors.push({message:"Array elements cannot be empty",node:e,severity:"error"});return o}(e,u,t);if(r.isStringLiteral(e)||r.isNumericLiteral(e)||r.isBooleanLiteral(e))return e.value;if(r.isNullLiteral(e))return null;if(!r.isIdentifier(e)||"undefined"!==e.name){if(r.isExpression(e)&&t.allowExpression){const r=(0,F.P1)(e);return r?(u.errors.push({message:`Unsupported node type: ${r.type}`,node:r,severity:"error"}),null):t.ambiguous?C:`<%${null!==(n=t.modifier)&&void 0!==n?n:""} ${u.source.substring(e.start,e.end)} %>`;var n}return u.errors.push({message:`Unsupported node type: ${e.type}`,node:e,severity:"error"}),null}}function f(e,u,t){let n=!1;var o;if((r.traverse(e,{enter(e,u){var t;let o;n||r.isStringLiteral(e)||r.isNumericLiteral(e)||r.isBooleanLiteral(e)||r.isNullLiteral(e)||r.isObjectExpression(e)||r.isArrayExpression(e)||r.isObjectProperty(e)||r.isIdentifier(e)&&(o=null===(t=u[u.length-1])||void 0===t?void 0:t.node,1)&&(o&&r.isObjectProperty(o)?!o.computed&&!o.shorthand:"undefined"===e.name)||(n=!0)}}),n)&&!(0,F.P1)(e))return`<%${null!==(o=t.modifier)&&void 0!==o?o:""} ${u.source.substring(e.start,e.end)} %>`;return D(e,u,t)}function g(e,u){if(!r.isObjectExpression(e))return void u.errors.push({message:`Expected an object expression for events, but got ${e.type}`,node:e,severity:"error"});const t={};for(const n of e.properties){if(!r.isObjectProperty(n)){u.errors.push({message:`Unsupported property type in events: ${n.type}`,node:n,severity:"error"});continue}if(n.computed||n.shorthand){u.errors.push({message:"Computed properties and shorthand properties are not supported in events",node:n,severity:"error"});continue}let e;if(r.isIdentifier(n.key))e=n.key.name;else{if(!r.isStringLiteral(n.key)){u.errors.push({message:`Unsupported object key type in events: ${n.key.type}`,node:n.key,severity:"error"});continue}e=n.key.value}if(r.isArrayExpression(n.value)){const o=[];for(const e of n.value.elements){if(null===e){u.errors.push({message:"Array elements cannot be empty in events",node:n.value,severity:"error"});continue}if(r.isSpreadElement(e)){u.errors.push({message:"Spread elements are not supported in events",node:e,severity:"error"});continue}const t=B(e,u);t&&o.push(t)}t[e]=o}else if(r.isObjectExpression(n.value)){const r=B(n.value,u);r&&(t[e]=r)}}return t}function B(e,u){var t;if(!r.isObjectExpression(e))return u.errors.push({message:`Expected an object expression for event handler, but got ${e.type}`,node:e,severity:"error"}),null;const n={};let o,a;for(const t of e.properties){if(!r.isObjectProperty(t)){u.errors.push({message:`Unsupported property type in event handler: ${t.type}`,node:t,severity:"error"});continue}if(t.computed||t.shorthand){u.errors.push({message:"Computed properties and shorthand properties are not supported in event handlers",node:t,severity:"error"});continue}let e;if(r.isIdentifier(t.key))e=t.key.name;else{if(!r.isStringLiteral(t.key)){u.errors.push({message:`Unsupported object key type in event handler: ${t.key.type}`,node:t.key,severity:"error"});continue}e=t.key.value}n[e]=D(t.value,u,{allowExpression:!0}),"payload"===e&&(o=t.value)}if("call_api"===n.action&&null!==(t=n.payload)&&void 0!==t&&t.api&&o&&r.isObjectExpression(o))for(const e of o.properties)r.isObjectProperty(e)&&!e.computed&&!e.shorthand&&r.isIdentifier(e.key)&&"params"===e.key.name&&(a=D(e.value,{...u,errors:[]},{allowExpression:!0,ambiguous:!0}));const i=E.safeParse(n);if(i.success){const e=i.data;return a&&(e.payload.ambiguousParams=a),e}return u.errors.push({message:`Invalid event handler structure: ${i.error}`,node:e,severity:"error"}),null}function b(e,u,t){if(r.isJSXElement(e)){if(!r.isJSXIdentifier(e.openingElement.name))return u.errors.push({message:`Expected JSXIdentifier, but got ${e.openingElement.name.type}`,node:e.openingElement.name,severity:"error"}),null;const d=e.openingElement.name.name,p={},E={};let A,m;for(const s of e.openingElement.attributes){if(r.isJSXSpreadAttribute(s)){u.errors.push({message:"Spread attributes are not supported in component",node:s,severity:"error"});continue}if(!r.isJSXIdentifier(s.name)){u.errors.push({message:`Expected JSXIdentifier, but got ${s.name.type}`,node:s.name,severity:"error"});continue}const e=s.name.name;if("events"===e){if(!r.isJSXExpressionContainer(s.value)){var n,o;u.errors.push({message:`"events" attribute in component expects a JSXExpressionContainer, but got ${null===(n=s.value)||void 0===n?void 0:n.type}`,node:null!==(o=s.value)&&void 0!==o?o:s,severity:"error"});continue}if(r.isJSXEmptyExpression(s.value.expression)){u.errors.push({message:"Empty expression in events is not allowed",node:s.value,severity:"warning"});continue}A=g(s.value.expression,u)}else if("componentId"===e){if(!r.isStringLiteral(s.value)){var a,i;u.errors.push({message:`"componentId" attribute in component expects a string literal, but got ${null===(a=s.value)||void 0===a?void 0:a.type}`,node:null!==(i=s.value)&&void 0!==i?i:s,severity:"error"});continue}m=s.value.value}else if(null==s.value)p[e]=!0;else if(r.isStringLiteral(s.value))p[e]=s.value.value,E[e]=s.value.value;else if(r.isJSXExpressionContainer(s.value)){if(r.isJSXEmptyExpression(s.value.expression)){u.errors.push({message:`Empty expression in JSX attribute "${e}" is not allowed`,node:s.value,severity:"warning"});continue}p[e]=f(s.value.expression,u,{allowExpression:!0,modifier:"="}),null!=t&&t.reward&&(E[e]=D(s.value.expression,{...u,errors:[]},{allowExpression:!0,ambiguous:!0}))}else u.errors.push({message:`Unsupported attribute value type in component: ${s.value.type}`,node:s.value,severity:"error"})}let F,C=e.children.map((e=>b(e,u,t))),B=C.every((e=>"text"===(null==e?void 0:e.type)));if(!B){let e=null;const u=[];for(const t of C){if(null===t);else if("text"===t.type||"expression"===t.type){var s,l,c;if("text"===(null===(s=e)||void 0===s?void 0:s.type)||"expression"===(null===(l=e)||void 0===l?void 0:l.type)){e={type:"merged",children:[e,t]},u.splice(u.length-1,1,e);continue}if("merged"===(null===(c=e)||void 0===c?void 0:c.type)){e.children.push(t);continue}}e=t,u.push(t)}C=u,B=C.every((e=>"text"===(null==e?void 0:e.type)||"merged"===(null==e?void 0:e.type)&&e.children.every((e=>"text"===e.type))))}if(B){const e=C.flatMap((e=>"text"===e.type?e.text:e.children.map((e=>e.text)))).join("").trim();e&&(p.textContent=e)}else if(C.every((e=>!!e&&"component"!==e.type))){const e=v(C.flatMap((e=>"merged"===e.type?e.children:e)),u.source);p.textContent=e}else F=C.filter((e=>!!e)).map((e=>"component"===e.type?e.component:{name:"eo-text",properties:{textContent:"text"===e.type?e.text:"expression"===e.type?`<%= ${e.expression} %>`:v(e.children,u.source)}}));const h={name:d,componentId:m,properties:p,events:A,children:F};return null!=t&&t.reward&&(h.ambiguousProps=E),m&&(u.componentsMap.has(m)?u.errors.push({message:`Duplicated componentId "${m}" found`,node:e,severity:"error"}):u.componentsMap.set(m,h)),{type:"component",component:h}}if(r.isJSXText(e))return e.value.trim()?{type:"text",text:e.value}:null;if(r.isJSXExpressionContainer(e)){if(r.isJSXEmptyExpression(e.expression))return u.errors.push({message:"Empty expression in JSX is not allowed",node:e,severity:"warning"}),null;const t=(0,F.P1)(e.expression);return t?(u.errors.push({message:`Unsupported node type in expression: ${t.type}`,node:t,severity:"error"}),null):{type:"expression",expression:e.expression}}return u.errors.push({message:`Unsupported node type in component: ${e.type}`,node:e,severity:"error"}),null}function v(e,u){return`<%= CTX.__builtin_fn_mergeTexts(${e.map((e=>"text"===e.type?JSON.stringify(e):`{type:"expression",value:(${u.substring(e.expression.start,e.expression.end)})}`)).join(", ")}) %>`}function h(e,u,t){const n=e.openingElement;if(!r.isJSXIdentifier(n.name))return void u.errors.push({message:`Expected JSXIdentifier, but got ${n.name.type}`,node:n.name,severity:"error"});const o=n.name.name;if("eo-view"===o){for(const e of n.attributes){if(r.isJSXSpreadAttribute(e)){u.errors.push({message:"Spread attributes are not supported in <eo-view>",node:e,severity:"error"});continue}if(!r.isJSXIdentifier(e.name)){u.errors.push({message:`Expected JSXIdentifier, but got ${e.name.type}`,node:e.name,severity:"error"});continue}const t=e.name.name;var a,i;"title"===t?r.isStringLiteral(e.value)?u.title=e.value.value:u.errors.push({message:`"title" attribute in <eo-view> expects a string literal, but got ${null===(a=e.value)||void 0===a?void 0:a.type}`,node:null!==(i=e.value)&&void 0!==i?i:e,severity:"error"}):u.errors.push({message:`Unsupported attribute "${t}" in <eo-view>`,node:e.name,severity:"notice"})}u.title||u.errors.push({message:'"title" attribute is required in <eo-view>',node:n.name,severity:"warning"});for(const n of e.children){const e=b(n,u,t);if(null!==e)if("text"!==e.type)"expression"!==e.type?u.components.push(e.component):u.errors.push({message:`Unexpected expression child in <eo-view>: "${e.expression}". Only components are allowed.`,node:e.expression,severity:"warning"});else{if(""===e.text.trim())continue;u.errors.push({message:`Unexpected string child in <eo-view>: "${e.text}". Only components are allowed.`,node:n,severity:"warning"})}}}else u.errors.push({message:`Expected <eo-view>, but got <${o}>`,node:n.name,severity:"error"})}function y(e,u){var t;const o=[],s=[],l=[],c={source:e,title:void 0,dataSources:o,variables:s,components:[],componentsMap:new Map,errors:l,contexts:[],contracts:new Set};let d;try{d=(0,n.parse)(e,{plugins:["jsx"],sourceType:"module",errorRecovery:!0})}catch(e){l.push({message:`Failed to parse JSX: ${e}`,node:null,severity:"fatal"})}if(null!==(t=d)&&void 0!==t&&null!==(t=t.errors)&&void 0!==t&&t.length)for(const e of d.errors)l.push({message:`${e.code}: ${e.reasonCode}`,node:null,severity:"error"});for(const t of null!==(p=null===(E=d)||void 0===E?void 0:E.program.body)&&void 0!==p?p:[]){var p,E;if(r.isExpressionStatement(t)){const n=t.expression;if(r.isCallExpression(n)&&r.isIdentifier(n.callee))if(n.callee.name===a){const e=n.arguments.length<1;if((e||n.arguments.length>2)&&(l.push({message:`"${a}()" expects one or two arguments, but got ${n.arguments.length}`,node:n,severity:e?"error":"notice"}),e))continue;const u=n.arguments[0];if(!r.isStringLiteral(u)){l.push({message:`"${a}()" expects a string literal as the first argument, but got ${u.type}`,node:u,severity:"error"});continue}const t=u.value;if(2===n.arguments.length){const e=D(n.arguments[1],c,{allowExpression:!0});s.push({name:t,value:e})}else s.push({name:t})}else if(n.callee.name===i){const t=n.arguments.length<2;if((t||n.arguments.length>2)&&(l.push({message:`"${i}()" expects two arguments, but got ${n.arguments.length}`,node:n,severity:t?"error":"notice"}),t))continue;const a=n.arguments[0];if(!r.isStringLiteral(a)){l.push({message:`"${i}()" expects a string literal as the first argument, but got ${a.type}`,node:a,severity:"error"});continue}const s=n.arguments[1];if(!r.isObjectExpression(s)){l.push({message:`"${i}()" expects an object literal as the second argument, but got ${s.type}`,node:s,severity:"error"});continue}const d={name:a.value};for(const t of s.properties){if(!r.isObjectProperty(t)){l.push({message:`Unsupported property type in data source config: ${t.type}`,node:t,severity:"error"});continue}if(t.computed||t.shorthand){l.push({message:"Computed properties and shorthand properties are not supported in data source config",node:t,severity:"error"});continue}let n;if(r.isIdentifier(t.key))n=t.key.name;else{if(!r.isStringLiteral(t.key)){l.push({message:`Unsupported object key type in data source config: ${t.key.type}`,node:t.key,severity:"error"});continue}n=t.key.value}switch(n){case"api":if(!r.isStringLiteral(t.value)){l.push({message:`Data source "api" expects a string literal, but got ${t.value.type}`,node:t.value,severity:"error"});continue}d.api=t.value.value;break;case"objectId":if(!r.isStringLiteral(t.value)){l.push({message:`Data source "objectId" expects a string literal, but got ${t.value.type}`,node:t.value,severity:"error"});continue}d.objectId=t.value.value;break;case"params":if(!(0,F.iO)(t.value)){r.isObjectExpression(t.value)||l.push({message:`Data source "params" prefers an object literal, but got ${t.value.type}`,node:t.value,severity:"notice"});const e=D(t.value,c,{allowExpression:!0});(0,F.UQ)(e)||"object"==typeof e&&null!==e?d.params=e:l.push({message:'Data source "params" expects an object or expression, but got '+typeof e,node:t.value,severity:"error"}),null!=u&&u.reward&&(d.ambiguousParams=D(t.value,{...c,errors:[]},{allowExpression:!0,ambiguous:!0}))}break;case"transform":if(!(0,F.iO)(t.value)){if(!r.isArrowFunctionExpression(t.value)){l.push({message:`Data source "transform" expects an arrow function, but got ${t.value.type}`,node:t.value,severity:"error"});continue}if(!r.isExpression(t.value.body)){l.push({message:`"transform" function body expects an expression, but got ${t.value.body.type}`,node:t.value.body,severity:"error"});continue}if(1!==t.value.params.length){var A;l.push({message:`"transform" function expects exactly one parameter, but got ${t.value.params.length}`,node:null!==(A=t.value.params[1])&&void 0!==A?A:t.value,severity:"error"});continue}const u=t.value.params[0];if(!r.isIdentifier(u)){l.push({message:`"transform" function parameter expects an identifier, but got ${u.type}`,node:u,severity:"error"});continue}if("DATA"!==u.name){l.push({message:`"transform" function parameter expects named "DATA", but got "${u.name}"`,node:u,severity:"error"});continue}d.transform=`<% ${e.substring(t.value.body.start,t.value.body.end)} %>`}}}d.api?o.push(d):l.push({message:`"${i}()" requires "api" property in the second argument`,node:s,severity:"error"})}}else{if(!r.isExportDefaultDeclaration(t)){l.push({message:`Unsupported statement type: ${t.type}`,node:t,severity:"error"});continue}{const e=t.declaration;if(!r.isJSXElement(e)){l.push({message:`Exported default declaration must be a JSX element, but got ${e.type}`,node:e,severity:"error"});continue}h(e,c,u)}}}return c}},22238:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".container--L3e7p3FP{background-image:linear-gradient(#fff,#fff),linear-gradient(338deg,rgba(198,183,247,1),rgba(157,198,255,1),rgba(153,196,255,1));background-origin:border-box;background-clip:content-box,border-box;box-shadow:0px 9px 28px 8px rgba(0,0,0,0.05),0px 6px 16px 0px rgba(0,0,0,0.08),0px 3px 6px -4px rgba(0,0,0,0.12);border-radius:12px;padding:2px;cursor:text}.container--L3e7p3FP:has(textarea:focus){background-image:linear-gradient(#fff,#fff),linear-gradient(338deg,rgba(160,133,249,1),rgba(101,162,246,1),rgba(120,145,255,1))}.replay--f75xXTdn{display:flex;align-items:center;border-radius:10px;height:50px;padding:0 16px}.text--JTEj9D2P{min-width:0;flex:1;font-size:16px}.button--deqoKbsu{margin-left:4px}",""]),a.locals={container:"container--L3e7p3FP",replay:"replay--f75xXTdn",text:"text--JTEj9D2P",button:"button--deqoKbsu"};const i=a},23543:(e,u,t)=>{t.d(u,{y:()=>L});var n=t(18769),r=t.n(n),o=t(23081),a=t(53373),i=t.n(a),s=t(41030),l=t(90079),c=t(72591),d=t.n(c),p=t(1740),E=t.n(p),A=t(88128),m=t.n(A),F=t(30855),C=t.n(F),D=t(93051),f=t.n(D),g=t(73656),B=t.n(g),b=t(11190),v={};v.styleTagTransform=B(),v.setAttributes=C(),v.insert=m().bind(null,"head"),v.domAPI=E(),v.insertStyleElement=f(),d()(b.A,v);const h=b.A&&b.A.locals?b.A.locals:void 0;var y=t(36903),x=t(36404),k=t(44394);let w=function(e){return e.FULLSCREEN="FULLSCREEN",e}({});const S="bricks/ai-portal/CreatedView",_=l.i18n.getFixedT(null,S);var T=t(28599),$=t(70558),N=t(69131),I=t(31918);function L(e){var u;let{job:t,onSizeChange:a}=e;const l=(0,n.useMemo)((()=>(0,s.uniqueId)()),[]),{showJsxEditor:c,setActiveExpandedViewJobId:d,setActiveJsxEditorJob:p,manuallyUpdatedViews:E}=(0,n.useContext)(I.j),A=(0,n.useRef)(null),m=(0,n.useRef)(null),F=null!==(u=null==E?void 0:E.get(t.id))&&void 0!==u?u:t.generatedView;(0,n.useEffect)((()=>{const e=A.current;if(!e)return;const u=(0,T.d)(l),t=(0,o.unstable_createRoot)(e,{portal:u,supportsUseChildren:!0});return m.current=t,()=>{t.unmount(),u.remove(),m.current=null}}),[l]);const[C,D]=(0,n.useState)(!0);(0,n.useEffect)((()=>{let e=!1;return(async()=>{D(!0);try{var u;const t=await((0,N.F)(F)?(0,$.V)(F,{rootId:l}):(0,x.z)(F,{rootId:l}));if(e)return;await(null===(u=m.current)||void 0===u?void 0:u.render(null!=t?t:[]))}catch(e){console.error("Failed to render view:",e)}e||D(!1)})(),()=>{e=!0}}),[l,F]);const f=(0,n.useMemo)((()=>{if((0,N.F)(F))for(const t of null!==(e=F.components)&&void 0!==e?e:[]){var e;if("Table"===t.name||"eo-table"===t.name)return!0;if("Dashboard"===t.name||"eo-dashboard"===t.name){var u;const e=null==t||null===(u=t.properties)||void 0===u?void 0:u.widgets;if(Array.isArray(e)&&e.length>=(t.properties.groupField?3:7))return!0}}else for(const e of null!==(t=F.components)&&void 0!==t?t:[]){var t;if("table"===e.componentName)return!0;if("dashboard"===e.componentName){var n;const u=null==e||null===(n=e.properties)||void 0===n?void 0:n.widgets;if(Array.isArray(u)&&u.length>=(e.properties.groupField?3:7))return!0}}return!1}),[F]);(0,n.useEffect)((()=>{null==a||a(f?"large":"medium")}),[a,f]);const g=(0,n.useCallback)((()=>{d(t.id)}),[t.id,d]);return r().createElement("div",null,r().createElement("div",{className:h.heading},r().createElement("div",{className:i()(h.title,{[y.A["shine-text"]]:C})},F.title),r().createElement("div",{className:h.buttons},c&&(0,N.F)(F)&&r().createElement("button",{className:h.button,onClick:()=>{null==p||p(t)}},r().createElement(k.Bj,{lib:"antd",icon:"bug"})),r().createElement("button",{className:h.button,title:_(w.FULLSCREEN),onClick:g},r().createElement(k.Bj,{lib:"easyops",icon:"expand"})))),r().createElement("div",{"data-root-id":l,ref:A}))}(0,l.initializeI18n)(S,{en:{FULLSCREEN:"Fullscreen"},zh:{FULLSCREEN:"全屏"}})},25017:(e,u,t)=>{t.d(u,{t:()=>C});var n=t(40580),r=t(58135),o=t(14399),a=t(71321);function i(e,u){return s(e,new Map(u.map((e=>[e,`CTX.${e}`]))))}function s(e,u){if(!u)return e;if([...u.keys()].some((u=>e.includes(u)))){const t=[];let n;try{n=(0,a.preevaluate)(e,{withParent:!0,hooks:{beforeVisitGlobal(e,n){if(u.has(e.name)){var r;const u=null===(r=n[n.length-1])||void 0===r?void 0:r.node;let o;u&&"Property"===u.type&&!u.computed&&u.shorthand&&(o=!0),t.push({id:e,shorthand:o})}}}})}catch(e){console.error("Parse evaluation string failed when scanning expression:",e)}if(t.length>0&&n){const{prefix:e,source:r,suffix:o}=n,a=[];let i=0;for(let e=0;e<t.length;e++){const{id:n,shorthand:o}=t[e],{name:s,start:l,end:c}=n;a.push(r.substring(i,l),`${o?`${s}: `:""}${u.get(s)}`),i=c}return a.push(r.substring(i)),`${e}${a.join("")}${o}`}}return e}const l=Symbol("ambiguous");function c(e,u,t){if(r.isObjectExpression(e))return function(e,u,t){if(e.properties.some((e=>r.isSpreadElement(e)))&&t.allowExpression){const r=(0,o.P1)(e);var n;if(!r)return t.ambiguous?l:s(i(`<%${null!==(n=t.modifier)&&void 0!==n?n:""} ${u.source.substring(e.start,e.end)} %>`,u.contexts),null==t?void 0:t.replacePatterns);u.errors.push({message:`Unsupported node type: ${r.type}`,node:r,severity:"error"})}const a={};for(const n of e.properties)if(r.isObjectProperty(n)){if(n.computed||n.shorthand){u.errors.push({message:"Computed properties and shorthand properties are not supported",node:n.key,severity:"error"});continue}let e;if(r.isIdentifier(n.key))e=n.key.name;else{if(!r.isStringLiteral(n.key)){u.errors.push({message:`Unsupported object key type: ${n.key.type}`,node:n.key,severity:"error"});continue}e=n.key.value}a[e]=c(n.value,u,t)}else u.errors.push({message:`Unsupported property type: ${n.type}`,node:n,severity:"error"});return a}(e,u,t);if(r.isArrayExpression(e))return function(e,u,t){if(e.elements.some((e=>r.isSpreadElement(e)))&&t.allowExpression){const r=(0,o.P1)(e);var n;if(!r)return t.ambiguous?l:s(i(`<%${null!==(n=t.modifier)&&void 0!==n?n:""} ${u.source.substring(e.start,e.end)} %>`,u.contexts),null==t?void 0:t.replacePatterns);u.errors.push({message:`Unsupported node type: ${r.type}`,node:r,severity:"error"})}const a=[];for(const n of e.elements)null!==n?r.isSpreadElement(n)?u.errors.push({message:"Spread elements are not supported in arrays",node:n,severity:"error"}):a.push(c(n,u,t)):u.errors.push({message:"Array elements cannot be empty",node:e,severity:"error"});return a}(e,u,t);if(r.isStringLiteral(e)||r.isNumericLiteral(e)||r.isBooleanLiteral(e))return e.value;if(r.isNullLiteral(e))return null;if(!r.isIdentifier(e)||"undefined"!==e.name){if(r.isExpression(e)&&t.allowExpression){const r=(0,o.P1)(e);return r?(u.errors.push({message:`Unsupported node type: ${r.type}`,node:r,severity:"error"}),null):t.ambiguous?l:s(i(`<%${null!==(n=t.modifier)&&void 0!==n?n:""} ${u.source.substring(e.start,e.end)} %>`,u.contexts),null==t?void 0:t.replacePatterns);var n}return u.errors.push({message:`Unsupported node type: ${e.type}`,node:e,severity:"error"}),null}}function d(e,u,t){let n=!1;var a;if((r.traverse(e,{enter(e,u){var t;let o;n||r.isStringLiteral(e)||r.isNumericLiteral(e)||r.isBooleanLiteral(e)||r.isNullLiteral(e)||r.isObjectExpression(e)||r.isArrayExpression(e)||r.isObjectProperty(e)||r.isIdentifier(e)&&(o=null===(t=u[u.length-1])||void 0===t?void 0:t.node,1)&&(o&&r.isObjectProperty(o)?!o.computed&&!o.shorthand:"undefined"===e.name)||(n=!0)}}),n)&&!(0,o.P1)(e))return s(i(`<%${null!==(a=t.modifier)&&void 0!==a?a:""} ${u.source.substring(e.start,e.end)} %>`,u.contexts),null==t?void 0:t.replacePatterns);return c(e,u,t)}function p(e,u,t,n){if(!r.isCallExpression(e)&&!r.isOptionalCallExpression(e))return u.errors.push({message:`Await expression must be a call expression, received ${e.type}`,node:e,severity:"error"}),null;const{callee:a}=e;if(!r.isIdentifier(a))return u.errors.push({message:`Await expression must call an identifier, received ${a.type}`,node:a,severity:"error"}),null;if("callApi"!==a.name)return u.errors.push({message:`Await expression must call "callApi", received ${a.name}`,node:a,severity:"error"}),null;const i=e.arguments.length<2;if((i||e.arguments.length>3)&&(u.errors.push({message:`"callApi()" expects 2 or 3 arguments, but got ${e.arguments.length}`,node:e,severity:i?"error":"notice"}),i))return null;const s=e.arguments[0];if(!r.isStringLiteral(s))return u.errors.push({message:`"callApi()" expects a string literal as the first argument, but got ${s.type}`,node:s,severity:"error"}),null;const l={api:s.value},d=e.arguments[1];if(!(0,o.iO)(d)){r.isObjectExpression(d)||u.errors.push({message:`Data source "params" prefers an object literal, but got ${d.type}`,node:d,severity:"notice"});const e=c(d,u,{allowExpression:!0,...n});(0,o.UQ)(e)||"object"==typeof e&&null!==e?l.params=e:u.errors.push({message:"API params expects an object or expression, but got "+typeof e,node:d,severity:"error"}),null!=t&&t.reward&&(l.ambiguousParams=c(d,{...u,errors:[]},{allowExpression:!0,ambiguous:!0}))}const p=e.arguments[2];if(p&&!(0,o.iO)(p))if(r.isObjectExpression(p))for(const e of p.properties){if(!r.isObjectProperty(e)){u.errors.push({message:`"callApi()" third param "meta" expects object properties, but got ${e.type}`,node:e,severity:"error"});continue}const t=e.key;if(!r.isIdentifier(t)){u.errors.push({message:`"callApi()" third param "meta" property key must be an identifier, but got ${t.type}`,node:t,severity:"error"});continue}if("objectId"!==t.name){u.errors.push({message:`"callApi()" third param "meta" property key must be "objectId", but got "${t.name}"`,node:t,severity:"error"});continue}const n=e.value;if(!(0,o.iO)(n)){if(!r.isStringLiteral(n)){u.errors.push({message:`"callApi()" third param "meta" property "${t.name}" expects a string literal, but got ${n.type}`,node:n,severity:"error"});continue}l.objectId=n.value}}else u.errors.push({message:`"callApi()" third param "meta" expects an object literal, but got ${p.type}`,node:p,severity:"error"});return l}function E(e,u,t){if(!r.isArrowFunctionExpression(e))return u.errors.push({message:`Expected arrow function expression as event handler, but got ${e.type}`,node:e,severity:"error"}),null;if(e.params.length>1)return u.errors.push({message:`Event handler expects 0 or 1 parameter, but got ${e.params.length}`,node:e,severity:"error"}),null;let n;const o=e.params[0];if(o){if(!r.isIdentifier(o))return u.errors.push({message:`Event handler parameter expects an identifier, but got ${o.type}`,node:o,severity:"error"}),null;const e=o.name;n=new Map([[e,"EVENT"]]),u.contexts.includes(e)&&u.errors.push({message:`Event handler parameter "${e}" conflicts with existing global variables`,node:o,severity:"error"})}if(!r.isBlockStatement(e.body))return u.errors.push({message:`Event handler body expects a block statement, but got ${e.body.type}`,node:e.body,severity:"error"}),null;const a=[];for(const o of e.body.body)if(r.isExpressionStatement(o))if(r.isAssignmentExpression(o.expression)){const{left:e,right:t}=o.expression;if(!r.isIdentifier(e)){u.errors.push({message:`Assignment in event handler expects an identifier on the left side, but got ${e.type}`,node:e,severity:"error"});continue}const i=c(t,u,{allowExpression:!0,replacePatterns:n});a.push({action:"update_variable",payload:{name:e.name,value:i}})}else if(r.isCallExpression(o.expression)||r.isOptionalCallExpression(o.expression)){const{callee:e,arguments:i}=o.expression;if(r.isMemberExpression(e)||r.isOptionalMemberExpression(e)){if(!r.isCallExpression(e.object)){u.errors.push({message:`Member expression in event handler expects a call expression as object, but got ${e.object.type}`,node:e.object,severity:"error"});continue}if(!r.isIdentifier(e.object.callee)){u.errors.push({message:`Member expression in event handler expects an identifier as callee, but got ${e.object.callee.type}`,node:e.object.callee,severity:"error"});continue}if(!r.isIdentifier(e.property)){u.errors.push({message:`Member expression in event handler expects an identifier as property, but got ${e.property.type}`,node:e.property,severity:"error"});continue}const s=e.object.callee.name,l=e.object.arguments;if("getComponent"===s){if(2!==l.length){u.errors.push({message:`"getComponent()" expects 2 arguments, but got ${l.length}`,node:o.expression,severity:"error"});continue}const t=l[0];if(!r.isStringLiteral(t)){u.errors.push({message:`"getComponent()" expects a string literal as its first argument, but got ${t.type}`,node:t,severity:"error"});continue}const s=l[1];if(!r.isStringLiteral(s)){u.errors.push({message:`"getComponent()" expects a string literal as its second argument, but got ${s.type}`,node:s,severity:"error"});continue}a.push({action:"call_component",payload:{componentId:s.value,method:e.property.name,args:i.map((e=>c(e,u,{allowExpression:!0,replacePatterns:n})))}})}else if("callApi"===s){if("then"!==e.property.name){u.errors.push({message:`"callApi()" expects "then" as its method, but got ${e.property.name}`,node:e.property,severity:"error"});continue}if(1!==i.length){u.errors.push({message:`"callApi().then()" expects exactly 1 argument, but got ${i.length}`,node:o.expression,severity:"error"});continue}const r=p(e.object,u,t,{replacePatterns:n});if(!r)continue;u.contracts.add(r.api);const s=E(i[0],u,t);a.push({action:"call_api",payload:r,callback:s?{success:s}:void 0})}else u.errors.push({message:`Unsupported action in event handler: ${s}`,node:e.object.callee,severity:"error"});continue}if(!r.isIdentifier(e)){u.errors.push({message:`Call expression in event handler expects an identifier as callee, but got ${e.type}`,node:e,severity:"error"});continue}if("showMessage"===e.name){if(1!==i.length){u.errors.push({message:`"showMessage()" expects 1 argument, but got ${i.length}`,node:o.expression,severity:"error"});continue}const e=c(i[0],u,{allowExpression:!0,replacePatterns:n});a.push({action:"show_message",payload:e})}else if("refresh"===e.name){if(1!==i.length){u.errors.push({message:`"refresh()" expects 1 argument, but got ${i.length}`,node:o.expression,severity:"error"});continue}if(!r.isIdentifier(i[0])){u.errors.push({message:`"refresh()" expects an identifier as its argument, but got ${i[0].type}`,node:i[0],severity:"error"});continue}a.push({action:"refresh_data_source",payload:{name:i[0].name}})}else if("callApi"===e.name){const e=p(o.expression,u,t,{replacePatterns:n});if(!e)continue;u.contracts.add(e.api),a.push({action:"call_api",payload:e})}else u.errors.push({message:`Unsupported action in event handler: ${e.name}`,node:e,severity:"error"})}else u.errors.push({message:`Unsupported event handler expression: ${o.expression.type}`,node:o.expression,severity:"error"});else u.errors.push({message:`Unsupported event handler statement: ${o.type}`,node:o,severity:"error"});return a}function A(e,u,t){if(r.isJSXElement(e)){if(!r.isJSXIdentifier(e.openingElement.name))return u.errors.push({message:`Expected JSXIdentifier, but got ${e.openingElement.name.type}`,node:e.openingElement.name,severity:"error"}),null;const C=e.openingElement.name.name,D={},f={};let g,B;for(const l of e.openingElement.attributes){if(r.isJSXSpreadAttribute(l)){u.errors.push({message:"Spread attributes are not supported in component",node:l,severity:"error"});continue}if(!r.isJSXIdentifier(l.name)){u.errors.push({message:`Expected JSXIdentifier, but got ${l.name.type}`,node:l.name,severity:"error"});continue}const e=l.name.name;if(/^on[A-Z]/.test(e)){if(!r.isJSXExpressionContainer(l.value)){var n,a;u.errors.push({message:`Event handler "${e}" expects a JSXExpressionContainer, but got ${null===(n=l.value)||void 0===n?void 0:n.type}`,node:null!==(a=l.value)&&void 0!==a?a:l,severity:"error"});continue}if(r.isJSXEmptyExpression(l.value.expression)){u.errors.push({message:"Empty expression in events is not allowed",node:l.value,severity:"warning"});continue}const i=E(l.value.expression,u,t);i&&(null!=g||(g={}),g[(0,o.kf)(e)]=i)}else if("componentId"===e){if(!r.isStringLiteral(l.value)){var i,s;u.errors.push({message:`"componentId" attribute in component expects a string literal, but got ${null===(i=l.value)||void 0===i?void 0:i.type}`,node:null!==(s=l.value)&&void 0!==s?s:l,severity:"error"});continue}B=l.value.value}else if(null==l.value)D[e]=!0;else if(r.isStringLiteral(l.value))D[e]=l.value.value,f[e]=l.value.value;else if(r.isJSXExpressionContainer(l.value)){if(r.isJSXEmptyExpression(l.value.expression)){u.errors.push({message:`Empty expression in JSX attribute "${e}" is not allowed`,node:l.value,severity:"warning"});continue}D[e]=d(l.value.expression,u,{allowExpression:!0,modifier:"="}),null!=t&&t.reward&&(f[e]=c(l.value.expression,{...u,errors:[]},{allowExpression:!0,ambiguous:!0}))}else u.errors.push({message:`Unsupported attribute value type in component: ${l.value.type}`,node:l.value,severity:"error"})}let b,v=e.children.map((e=>A(e,u,t))),h=v.every((e=>"text"===(null==e?void 0:e.type)));if(!h){let e=null;const u=[];for(const t of v){if(null===t);else if("text"===t.type||"expression"===t.type){var l,p,F;if("text"===(null===(l=e)||void 0===l?void 0:l.type)||"expression"===(null===(p=e)||void 0===p?void 0:p.type)){e={type:"merged",children:[e,t]},u.splice(u.length-1,1,e);continue}if("merged"===(null===(F=e)||void 0===F?void 0:F.type)){e.children.push(t);continue}}e=t,u.push(t)}v=u,h=v.every((e=>"text"===(null==e?void 0:e.type)||"merged"===(null==e?void 0:e.type)&&e.children.every((e=>"text"===e.type))))}if(h){const e=v.flatMap((e=>"text"===e.type?e.text:e.children.map((e=>e.text)))).join("").trim();e&&(D.textContent=e)}else if(v.every((e=>!!e&&"component"!==e.type))){const e=m(v.flatMap((e=>"merged"===e.type?e.children:e)),u.source);D.textContent=e}else b=v.filter((e=>!!e)).map((e=>"component"===e.type?e.component:{name:"Plaintext",properties:{textContent:"text"===e.type?e.text:"expression"===e.type?`<%= ${e.expression} %>`:m(e.children,u.source)}}));const y={name:C,componentId:B,properties:D,events:g,children:b};return null!=t&&t.reward&&(y.ambiguousProps=f),B&&(u.componentsMap.has(B)?u.errors.push({message:`Duplicated componentId "${B}" found`,node:e,severity:"error"}):u.componentsMap.set(B,y)),{type:"component",component:y}}if(r.isJSXText(e))return e.value.trim()?{type:"text",text:e.value}:null;if(r.isJSXExpressionContainer(e)){if(r.isJSXEmptyExpression(e.expression))return u.errors.push({message:"Empty expression in JSX is not allowed",node:e,severity:"warning"}),null;const t=(0,o.P1)(e.expression);return t?(u.errors.push({message:`Unsupported node type in expression: ${t.type}`,node:t,severity:"error"}),null):{type:"expression",expression:e.expression}}return u.errors.push({message:`Unsupported node type in component: ${e.type}`,node:e,severity:"error"}),null}function m(e,u){return`<%= CTX.__builtin_fn_mergeTexts(${e.map((e=>"text"===e.type?JSON.stringify(e):`{type:"expression",value:(${u.substring(e.expression.start,e.expression.end)})}`)).join(", ")}) %>`}function F(e,u,t){const n=e.openingElement;if(!r.isJSXIdentifier(n.name))return void u.errors.push({message:`Expected JSXIdentifier, but got ${n.name.type}`,node:n.name,severity:"error"});const o=n.name.name;if("View"===o){for(const e of n.attributes){if(r.isJSXSpreadAttribute(e)){u.errors.push({message:"Spread attributes are not supported in <eo-view>",node:e,severity:"error"});continue}if(!r.isJSXIdentifier(e.name)){u.errors.push({message:`Expected JSXIdentifier, but got ${e.name.type}`,node:e.name,severity:"error"});continue}const t=e.name.name;var a,i;"title"===t?r.isStringLiteral(e.value)?u.title=e.value.value:u.errors.push({message:`"title" attribute in <eo-view> expects a string literal, but got ${null===(a=e.value)||void 0===a?void 0:a.type}`,node:null!==(i=e.value)&&void 0!==i?i:e,severity:"error"}):u.errors.push({message:`Unsupported attribute "${t}" in <eo-view>`,node:e.name,severity:"notice"})}u.title||u.errors.push({message:'"title" attribute is required in <eo-view>',node:n.name,severity:"warning"});for(const n of e.children){const e=A(n,u,t);if(null!==e)if("text"!==e.type)"expression"!==e.type?u.components.push(e.component):u.errors.push({message:`Unexpected expression child in <View>: "${e.expression}". Only components are allowed.`,node:e.expression,severity:"warning"});else{if(""===e.text.trim())continue;u.errors.push({message:`Unexpected string child in <View>: "${e.text}". Only components are allowed.`,node:n,severity:"warning"})}}}else u.errors.push({message:`Expected <View>, but got <${o}>`,node:n.name,severity:"error"})}function C(e,u){var t,o,a;const i=[],l=[],d=[],E=new Map,A=[],m=new Set,C={source:e,title:void 0,dataSources:i,variables:l,components:[],componentsMap:E,errors:d,contexts:A,contracts:m};let D;try{D=(0,n.parse)(e,{plugins:["jsx","typescript"],sourceType:"module",errorRecovery:!0})}catch(e){d.push({message:`Failed to parse TSX: ${e}`,node:null,severity:"fatal"})}if(null!==(t=D)&&void 0!==t&&null!==(t=t.errors)&&void 0!==t&&t.length)for(const e of D.errors)d.push({message:`${e.code}: ${e.reasonCode}`,node:null,severity:"error"});function f(t,n,o){const a=p(t,C,u);if(!a)return null;m.add(a.api);const l={name:n,...a};if(o){if(1!==o.length)return d.push({message:`"callApi().then()" expects exactly 1 argument, but got ${o.length}`,node:t,severity:"error"}),!1;const u=o[0];if(!r.isArrowFunctionExpression(u))return d.push({message:`"callApi().then()" expects an arrow function, but got ${u.type}`,node:u,severity:"error"}),!1;if(!r.isExpression(u.body))return d.push({message:`"callApi().then()" function body expects an expression, but got ${u.body.type}`,node:u.body,severity:"error"}),!1;var c;if(1!==u.params.length)return d.push({message:`"callApi().then()" function expects exactly one parameter, but got ${u.params.length}`,node:null!==(c=u.params[1])&&void 0!==c?c:u,severity:"error"}),!1;const n=u.params[0];if(!r.isIdentifier(n))return d.push({message:`"callApi().then()" function parameter expects an identifier, but got ${n.type}`,node:n,severity:"error"}),!1;const a=`<% ${e.substring(u.body.start,u.body.end)} %>`;l.transform=s(a,new Map([[n.name,"DATA"]]))}i.push(l)}const g=null!==(o=null===(a=D)||void 0===a?void 0:a.program.body)&&void 0!==o?o:[];D&&r.traverse(D.program,{enter(e){r.isTSAnyKeyword(e)?d.push({message:"Unexpected 'any' type",node:e,severity:"warning"}):r.isTSAsExpression(e)&&d.push({message:"Unexpected 'as' usage",node:e,severity:"warning"})}});for(const e of g)if(r.isVariableDeclaration(e))for(const u of e.declarations)r.isIdentifier(u.id)&&A.push(u.id.name);let B=!1;for(const e of g)if(r.isVariableDeclaration(e)){if(B&&d.push({message:"Unexpected variable declaration after export",node:e,severity:"error"}),"let"!==e.kind&&"const"!==e.kind){d.push({message:`Unsupported variable declaration kind: ${e.kind}`,node:e,severity:"error"});continue}if(1!==e.declarations.length){d.push({message:`Expect exactly 1 declaration in a variable declaration statement, received ${e.declarations.length}`,node:e,severity:"error"});continue}const u=e.declarations[0];if(!r.isIdentifier(u.id)){d.push({message:`Expect an identifier as the variable name, received ${u.id.type}`,node:u.id,severity:"error"});continue}const t=u.id.name;if(null==u.init)u.id.typeAnnotation||d.push({message:`Variable "${t}" with no initial value must have a type annotation`,node:u.id,severity:"error"}),l.push({name:t});else if(r.isAwaitExpression(u.init)){const e=u.init.argument;if(!r.isCallExpression(e)){d.push({message:`Await expression must be a call expression, received ${e.type}`,node:e,severity:"error"});continue}const{callee:n}=e;if(!r.isIdentifier(n)&&!r.isMemberExpression(n)){d.push({message:`Await expression must call an identifier or member expression, received ${n.type}`,node:n,severity:"error"});continue}r.isMemberExpression(n)?(r.isIdentifier(n.property)&&!n.computed&&"then"===n.property.name||d.push({message:"Unexpected awaited expression",node:n.property,severity:"error"}),f(n.object,t,e.arguments)):f(e,t)}else{const e=c(u.init,C,{allowExpression:!0});l.push({name:t,value:e})}}else{if(!r.isExportDefaultDeclaration(e)){d.push({message:`Unsupported top level statement type: ${e.type}`,node:e,severity:"error"});continue}{B=!0;const t=e.declaration;if(!r.isJSXElement(t)){d.push({message:`Exported default declaration must be a JSX element, but got ${t.type}`,node:t,severity:"error"});continue}F(t,C,u)}}return C}},25538:(e,u,t)=>{function n(e,u){const t=null!=e?e:[],n=new Map,r=new Map;let o=new Map,a=[];const i=[],s=new Map,l=new Set,c=null==u?void 0:u.showHiddenJobs;for(const e of t)if(n.set(e.id,e),!c&&e.hidden&&l.add(e.id),e.parent){let u=r.get(e.parent);u||r.set(e.parent,u=[]),u.push(e.id)}else i.push(e.id);for(const e of t){var d;for(const u of null!==(p=e.upstream)&&void 0!==p?p:[]){var p;let t=o.get(u);t||o.set(u,t=[]),t.push(e.id)}e.parent||null!==(d=e.upstream)&&void 0!==d&&d.length||!c&&e.hidden||a.push(e.id)}const E=(e,u)=>{for(const t of e){s.set(t,u);const e=r.get(t),a=o.get(t);if(e){const r=e.filter((e=>{var u;return!(null!==(u=n.get(e).upstream)&&void 0!==u&&u.length)})),i=a?e.filter((e=>!o.has(e))):[];o.set(t,r);for(const e of i)o.set(e,[...a]);E(e,u+1)}}};let A;if(E(i,0),!c&&l.size>0){const e=u=>u.flatMap((u=>{if(n.get(u).hidden){const t=o.get(u);return t?e(t):[]}return u})),u=new Map,t=n=>{for(const r of n){const n=o.get(r);if(n){const o=e(n);u.set(r,o),t(o)}}};a=e(a),t(a),A=o,o=u}const m=[],F=new Set,C=[...a];for(;C.length>0;){const e=C.shift();if(F.has(e))continue;F.add(e),m.push(e);const u=o.get(e);u&&C.push(...u)}return{list:m,jobMap:n,jobLevels:s,downstreamMap:o,originalDownstreamMap:A}}t.d(u,{K:()=>n})},28599:(e,u,t)=>{function n(e){const u=document.createElement("div");return u.dataset.rootId=e,u.style.position="absolute",u.style.width=u.style.height="0",document.body.append(u),u}t.d(u,{d:()=>n})},31918:(e,u,t)=>{t.d(u,{j:()=>n});const n=(0,t(18769).createContext)({humanInput:()=>{},onShare:()=>{},onPause:()=>{},onResume:()=>{},onCancel:()=>{},activeExpandedViewJobId:null,setActiveExpandedViewJobId:()=>{},activeToolCallJobId:null,setActiveToolCallJobId:()=>{},submittingFeedback:!1,submittedFeedback:!1,onSubmitFeedback:()=>{},setShowFeedback:()=>{}})},36404:(e,u,t)=>{t.d(u,{z:()=>F});var n=t(58377),r=t(37912),o=t(2098),a=t(65971),i=t(10102);function s(e,u,t){let n;if(null!=e&&e.size&&null!=u&&u.length){const r=new Map;for(const e of u)e.api.objectId&&r.set(e.name,e.api.objectId);const o=new Map;for(const e of null!=t?t:[]){const u=(0,i.strictCollectMemberUsage)(e.value,"CTX");o.set(e.name,u)}const a=new Set,s=e=>{if(a.has(e))return!1;a.add(e);const u=r.get(e);if(u)return n=u,!0;const t=o.get(e);for(const e of null!=t?t:[])if(s(e))return!0;return!1};for(const u of e)if(s(u))break}return n}async function l(e,u,t){let{properties:n}=e;const{data:i,title:l,columns:c,list:d,...p}=n,E=(0,r.jV)(i),A=s(E.usedContexts,u.dataSources,u.variables),m=A?await(0,a.Q)(A):void 0,F=new Map;if(null!=m&&m.size)for(const e of d)if(e.field){const u=m.get(e.field);if(u){const t=(0,o.w)(u,e.field);t&&(t.slot=`[${e.field}]`,F.set(e.field,t))}}return{brick:"eo-descriptions",properties:{...p,dataSource:E.isString?E.embedded:i,list:d.map((e=>(e.field?F.get(e.field):void 0)?{label:e.label,useChildren:`[${e.field}]`}:e)),column:t.expanded?3:1,themeVariant:"elevo"},children:F.size>0?Array.from(F.values()):[]}}var c=t(56609);const d=["#336EF4","#45CAFF","#41CDCF","#8146F3","#F8A075","#94E65E","#57689C","#C285EF","#FAC60B","#E4551F","#8984FF","#2540FF","#08BF33","#F7811C","#AC7CFF","#1BA5DC","#E89716","#76A6F5","#4F69FF"];function p(e,u){const t=e.slice(1),n=parseInt(t,16);return`rgba(${n>>16&255}, ${n>>8&255}, ${255&n}, ${u})`}async function E(e,u,t){var n;const{properties:i}=e,{data:l,size:c,columns:d,rowKey:p,pagination:E,...A}=i,m=(0,r.jV)(l),F=s(m.usedContexts,u.dataSources,u.variables),C=F?await(0,a.Q)(F):void 0,D=new Map;if(null!=C&&C.size)for(const e of d){const u=C.get(e.dataIndex);if(u){const t=(0,o.m)(u,".cellData");t&&(t.slot=`[${e.dataIndex}]`,D.set(e.dataIndex,t))}}return{brick:"eo-next-table",properties:{dataSource:m.isString?m.embedded:l,...A,rowKey:null!=p?p:null===(n=d[0])||void 0===n?void 0:n.key,columns:d.map((e=>D.get(e.dataIndex)?{...e,useChildren:`[${e.dataIndex}]`}:e)),themeVariant:"elevo",scrollConfig:{x:"max-content"},...t.expanded?{bordered:!0,pagination:E,size:"large"}:{size:"middle",pagination:!1}},children:D.size>0?Array.from(D.values()):[]}}function A(e,u,t){switch(null==e?void 0:e.action){case"update_variable":return{action:"context.replace",args:[e.payload.name,Object.prototype.hasOwnProperty.call(e.payload,"value")?e.payload.value:null!=t?t:"<% EVENT.detail %>"]};case"refresh_data_source":return{action:"context.refresh",args:[e.payload.name]};case"call_api":{var n;const{api:t,params:r}=e.payload,o=null!==(n=e.callback)&&void 0!==n&&n.success?[].concat(e.callback.success).map((e=>A(e,u))).filter(Boolean):void 0;return{useProvider:`${t.name}:${t.version}`,params:r,callback:{success:null!=o&&o.length?o:void 0,error:{action:"handleHttpError"}}}}case"call_component":return{target:`[data-root-id="${u.rootId}"] [data-component-id="${e.payload.componentId}"]`,method:e.payload.method,args:e.payload.args};case"show_message":return{action:`message.${e.payload.type}`,args:[e.payload.content]}}}var m=t(52810);async function F(e,u){var t,o;if(!e)return null;const a=new Map,i=new Map,F=[],C=new Set;for(const u of e.components)if(a.set(u.componentId,u),u.parentComponentId){let e=i.get(u.parentComponentId);e||(e=[],i.set(u.parentComponentId,e)),e.push(u)}else F.push(u);const D=async t=>{var n,o,a,m,F;if(C.has(t.componentId))throw new Error(`Component ${t.componentId} has been converted already, it indicates a circular component tree.`);C.add(t.componentId);let f=null;switch(t.componentName){case"list":f=await function(e){let{properties:u}=e;const t=u,{data:n,fields:o,variant:a}=t,i=(0,r.jV)(n);return{brick:"eo-list",properties:{variant:a,dataSource:i.isString?i.embedded:n,fields:o,themeVariant:"elevo"}}}(t);break;case"table":f=await E(t,e,u);break;case"descriptions":f=await l(t,e,u);break;case"dashboard":f=await async function(e,u,t){let{properties:n}=e;const{dataSource:o,groupField:a,widgets:i}=n,l=a?"#showKey":void 0,{isString:E,expression:A,usedContexts:m}=(0,r.jV)(o),F=E?`<%= CTX.__builtin_fn_extractList((${A})) %>`:o;if(t.expanded){let e=i;const t=s(m,u.dataSources,u.variables),n=t?await(0,c.H)(t):[];if(n.length>0){e=[];const u=new Set,t=new Set(i.map((e=>e.metric.id)));for(const r of i){if(u.has(r.metric.id))continue;const o={...r};e.push(o);const a=n.find((e=>e.metrics.includes(r.metric.id)));if(a){const e=a.metrics.filter((e=>t.has(e)));if(e.length>1){o.relevantMetrics=e,o.counterMetric=a.counter,o.groupTitle=a.group;for(const n of e)u.add(n),t.delete(n)}}}}let r=0;return{brick:"div",properties:{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(500px, 1fr))",gap:"16px"}},children:e.map((e=>{var u,t;const{title:n,metric:o,size:a,precision:i,min:s,max:c}=e,E=null!==(u=null===(t=e.relevantMetrics)||void 0===t?void 0:t.length)&&void 0!==u?u:l?2:1,m=Array.from({length:E},((e,u)=>d[(r+u)%d.length]));r+=E;const C="load"===o.unit?"":o.unit,D={brick:"chart-v2.time-series-chart",properties:{data:F,xField:"time",...e.relevantMetrics?{yFields:`<% CTX.__builtin_fn_getMetricDisplayNames((${A}).displayNameList, ${JSON.stringify(e.relevantMetrics)}) %>`}:{yField:`<% CTX.__builtin_fn_getMetricDisplayNames((${A}).displayNameList, [${JSON.stringify(o.id)}])[0] %>`},...e.counterMetric?{forceAbsoluteNumbers:!0,series:{[e.counterMetric]:{isNegative:!0}}}:null,height:"large"===a?230:200,timeFormat:"HH:mm",...e.relevantMetrics||l?null:{areaOptions:{style:{fill:`l(90) 0:${m[0]} 1:#ffffff`}}},axis:{yAxis:{unit:C,precision:i,...e.counterMetric?null:"percent(1)"===C?{min:0,max:1}:"percent(100)"===C||"%"===C?{min:0,max:100}:{min:s,max:c},shape:"smooth"}},groupField:l,areaShape:"smooth",legends:!(!e.relevantMetrics&&!l),colors:m,tooltip:{marker:{fill:m[0],stroke:"#fff",lineWidth:2,shadowColor:m[0],shadowBlur:8,shadowOffsetX:0,shadowOffsetY:4},domStyles:{"g2-tooltip":{background:[`radial-gradient( farthest-corner at -20px 150px, ${m[0]} 0%, rgba(238,238,238,0) 60%)`,"linear-gradient( 180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.8) 100%)"].join(", "),boxShadow:`0px 4px 8px 0px ${p(m[0],.08)}`,borderRadius:"8px",border:"1px solid rgba(255,255,255,1)",backdropFilter:"blur(3px)"}}}}};return{brick:"div",properties:{style:{background:"rgba(255,255,255,0.8)",boxShadow:"0px 2px 4px 0px rgba(0,0,0,0.06)",borderRadius:"8px",padding:"16px 20px 20px"}},children:[{brick:"div",properties:{style:{fontSize:"16px",fontWeight:"500",marginBottom:"20px"},textContent:e.groupTitle||n||o.id}},D]}}))}}return l?{brick:"div",properties:{style:{display:"flex",flexDirection:"column",gap:"8px"}},children:[{brick:":forEach",dataSource:`<%= CTX.__builtin_fn_groupMetricData(CTX.__builtin_fn_extractList((${A})), ${JSON.stringify(l)}) %>`,children:[{brick:"div",properties:{textContent:"<% `${ITEM.group}:` %>",style:{fontWeight:"500"}}},{brick:"div",properties:{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(200px, 1fr))",gap:"10px",marginBottom:"8px"}},children:i.map(((e,u)=>{const{title:t,metric:n,precision:r}=e;return{brick:"ai-portal.stat-with-mini-chart",properties:{size:"small",label:t||n.id,data:"<% ITEM.list %>",xField:"time",yField:n.id,lineColor:d[u%d.length],showArea:!0,..."percent(1)"===n.unit?{min:0,max:1}:"percent(100)"===n.unit||"%"===n.unit?{min:0,max:100}:null,value:`<%= CTX.__builtin_fn_getLatestMetricValue(ITEM.list, ${JSON.stringify({metric:n,precision:r})}) %>`}}}))}]}]}:{brick:"div",properties:{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(200px, 1fr))",gap:"10px"}},children:i.map(((e,u)=>{const{title:t,metric:n,precision:r}=e;return{brick:"ai-portal.stat-with-mini-chart",properties:{size:"small",label:t||n.id,data:F,xField:"time",yField:n.id,lineColor:d[u%d.length],showArea:!0,..."percent(1)"===n.unit?{min:0,max:1}:"percent(100)"===n.unit||"%"===n.unit?{min:0,max:100}:null,value:`<%= CTX.__builtin_fn_getLatestMetricValue((${E?`CTX.__builtin_fn_extractList((${A}))`:JSON.stringify(null!=o?o:null)}), ${JSON.stringify({metric:n,precision:r})}) %>`}}}))}}(t,e,u);break;case"button":f=await function(e){const{properties:u}=e;return{brick:"eo-button",properties:{...u,themeVariant:"elevo"}}}(t);break;case"form":f=await function(e){const{properties:u}=e,{values:t}=null!=u?u:{};return{brick:"eo-form",properties:{values:null!=t?t:{},themeVariant:"elevo"}}}(t);break;case"form-item":f=await function(e){const{properties:u}=e,{type:t,...n}=u;let r,o={...n,themeVariant:"elevo"};switch(t){case"search":r="eo-search",o={...o,trim:!0};break;case"input":r="eo-input";break;case"number-input":r="eo-input",o={type:"number",...o};break;case"textarea":r="eo-textarea";break;case"select":r="eo-select";break;case"radio":r="eo-radio";break;case"checkbox":r="eo-checkbox";break;case"switch":r="eo-switch";break;case"date-picker":r="eo-date-picker";break;case"time-picker":r="eo-time-picker";break;default:throw new Error(`Unsupported form item type: ${t}`)}return{brick:r,properties:o}}(t);break;case"flex-layout":f=await{brick:"eo-flex-layout",properties:{gap:"0.5em",alignItems:"center"}};break;case"modal":f=await function(e){const{properties:u}=e,{title:t,confirmText:n,cancelText:r}=u;return{brick:"eo-modal",portal:!0,properties:{themeVariant:"elevo",modalTitle:t,confirmText:n,cancelText:r,keyboard:!0}}}(t)}if(!f)return null;f.events=function(e,u,t){const n=u.eventListeners.filter((u=>u.componentId===e.componentId)),r={};for(const u of n)switch(e.componentName){case"table":switch(u.event){case"select":{const e=A(u.handler,t);e&&(r["row.select.v2"]=e);break}case"sort":{const e=A(u.handler,t);e&&(r["sort.change"]=e);break}case"paginate":{const e=A(u.handler,t);e&&(r["page.change"]=e);break}}break;case"button":if("click"===u.event){const e=A(u.handler,t);e&&(r.click=e)}break;case"form-item":switch(e.properties.type){case"search":if("search"===u.event){const e=A(u.handler,t);e&&(r.search=e)}break;case"select":if("change"===u.event){const e=A(u.handler,t);e&&(r["change.v2"]=e)}}break;default:{const e=A(u.handler,t);e&&(r[u.event]=e)}}return Object.keys(r).length>0?r:void 0}(t,e,u),null!==(o=(n=f).properties)&&void 0!==o||(n.properties={}),null!==(m=(a=f.properties).dataset)&&void 0!==m||(a.dataset={}),f.properties.dataset.componentId=t.componentId;const g=(await Promise.all((null!==(F=i.get(t.componentId))&&void 0!==F?F:[]).map(D))).filter(Boolean);var B;return g.length>0&&(f.children=[...null!==(B=f.children)&&void 0!==B?B:[],...g]),f},f=[...(B=null!==(t=e.dataSources)&&void 0!==t?t:[],B.map((e=>({name:e.name,resolve:{useProvider:`${e.api.name}:*`,params:e.params,..."easyops.api.data_exchange.olap@Query"===e.api.name?{params:{...e.params,translate:["#showKey"],limit:void 0,limitBy:void 0,order:void 0,displayName:!0}}:e.transform?{transform:{value:e.transform}}:null},track:!0})))),...(g=null!==(o=e.variables)&&void 0!==o?o:[],g.map((e=>{let{name:u,value:t}=e;return{name:u,value:t}}))),{name:"__builtin_fn_getLatestMetricValue",value:function(e,u){var t;let{metric:r,precision:o}=u;const a=null==e||null===(t=e.findLast)||void 0===t||null===(t=t.call(e,(e=>null!=e[r.id])))||void 0===t?void 0:t[r.id],i="load"===r.unit?"":r.unit;return n.pipes.unitFormat(a,i,o).join("")}},{name:"__builtin_fn_extractList",value:function(e){return Array.isArray(e)?e:null==e?void 0:e.list}},{name:"__builtin_fn_groupMetricData",value:function(e,u){if(!e||!Array.isArray(e)||0===e.length)return[];const t=new Map;for(const n of e){const e=n[u];let r=t.get(e);r||t.set(e,r={group:e,list:[]}),r.list.push(n)}return Array.from(t.values())}},{name:"__builtin_fn_getMetricDisplayNames",value:function(e,u){return u.map((u=>{var t,n;return null!==(t=null==e||null===(n=e.find((e=>e.metric_name===u)))||void 0===n?void 0:n.metric_display_name)&&void 0!==t?t:u}))}},{name:"SIZE",value:u.expanded?"medium":"small"}];var g,B;const b=(await Promise.all(F.map(D))).filter(Boolean);return{brick:"eo-content-layout",children:F.every((e=>["form","descriptions","button"].includes(e.componentName)))?[(0,m.i)(b,u)]:b,context:f}}},36903:(e,u,t)=>{t.d(u,{A:()=>C});var n=t(72591),r=t.n(n),o=t(1740),a=t.n(o),i=t(88128),s=t.n(i),l=t(30855),c=t.n(l),d=t(93051),p=t.n(d),E=t(73656),A=t.n(E),m=t(91525),F={};F.styleTagTransform=A(),F.setAttributes=c(),F.insert=s().bind(null,"head"),F.domAPI=a(),F.insertStyleElement=p(),r()(m.A,F);const C=m.A&&m.A.locals?m.A.locals:void 0},37912:(e,u,t)=>{t.d(u,{jV:()=>i});var n=t(10102);const r=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10140}-\u{10174}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{10300}-\u{1031F}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{103D1}-\u{103D5}\u{10400}-\u{1049D}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10860}-\u{10876}\u{10880}-\u{1089E}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{10900}-\u{10915}\u{10920}-\u{10939}\u{10980}-\u{109B7}\u{109BE}\u{109BF}\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A60}-\u{10A7C}\u{10A80}-\u{10A9C}\u{10AC0}-\u{10AC7}\u{10AC9}-\u{10AE4}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B60}-\u{10B72}\u{10B80}-\u{10B91}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10D00}-\u{10D23}\u{10D4A}-\u{10D65}\u{10D6F}-\u{10D85}\u{10E80}-\u{10EA9}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10F00}-\u{10F1C}\u{10F27}\u{10F30}-\u{10F45}\u{10F70}-\u{10F81}\u{10FB0}-\u{10FC4}\u{10FE0}-\u{10FF6}\u{11003}-\u{11037}\u{11071}\u{11072}\u{11075}\u{11083}-\u{110AF}\u{110D0}-\u{110E8}\u{11103}-\u{11126}\u{11144}\u{11147}\u{11150}-\u{11172}\u{11176}\u{11183}-\u{111B2}\u{111C1}-\u{111C4}\u{111DA}\u{111DC}\u{11200}-\u{11211}\u{11213}-\u{1122B}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A8}\u{112B0}-\u{112DE}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}\u{11350}\u{1135D}-\u{11361}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}\u{113D1}\u{113D3}\u{11400}-\u{11434}\u{11447}-\u{1144A}\u{1145F}-\u{11461}\u{11480}-\u{114AF}\u{114C4}\u{114C5}\u{114C7}\u{11580}-\u{115AE}\u{115D8}-\u{115DB}\u{11600}-\u{1162F}\u{11644}\u{11680}-\u{116AA}\u{116B8}\u{11700}-\u{1171A}\u{11740}-\u{11746}\u{11800}-\u{1182B}\u{118A0}-\u{118DF}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{1192F}\u{1193F}\u{11941}\u{119A0}-\u{119A7}\u{119AA}-\u{119D0}\u{119E1}\u{119E3}\u{11A00}\u{11A0B}-\u{11A32}\u{11A3A}\u{11A50}\u{11A5C}-\u{11A89}\u{11A9D}\u{11AB0}-\u{11AF8}\u{11BC0}-\u{11BE0}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2E}\u{11C40}\u{11C72}-\u{11C8F}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D89}\u{11D98}\u{11EE0}-\u{11EF2}\u{11F02}\u{11F04}-\u{11F10}\u{11F12}-\u{11F33}\u{11FB0}\u{12000}-\u{12399}\u{12400}-\u{1246E}\u{12480}-\u{12543}\u{12F90}-\u{12FF0}\u{13000}-\u{1342F}\u{13441}-\u{13446}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{1611D}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A70}-\u{16ABE}\u{16AD0}-\u{16AED}\u{16B00}-\u{16B2F}\u{16B40}-\u{16B43}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D6C}\u{16E40}-\u{16E7F}\u{16F00}-\u{16F4A}\u{16F50}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18CFF}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E14E}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E4D0}-\u{1E4EB}\u{1E5D0}-\u{1E5ED}\u{1E5F0}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E900}-\u{1E943}\u{1E94B}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}][\$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088E\u0897-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF65-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10140}-\u{10174}\u{101FD}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E0}\u{10300}-\u{1031F}\u{1032D}-\u{1034A}\u{10350}-\u{1037A}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{103D1}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10860}-\u{10876}\u{10880}-\u{1089E}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{10900}-\u{10915}\u{10920}-\u{10939}\u{10980}-\u{109B7}\u{109BE}\u{109BF}\u{10A00}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A38}-\u{10A3A}\u{10A3F}\u{10A60}-\u{10A7C}\u{10A80}-\u{10A9C}\u{10AC0}-\u{10AC7}\u{10AC9}-\u{10AE6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B60}-\u{10B72}\u{10B80}-\u{10B91}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10D00}-\u{10D27}\u{10D30}-\u{10D39}\u{10D40}-\u{10D65}\u{10D69}-\u{10D6D}\u{10D6F}-\u{10D85}\u{10E80}-\u{10EA9}\u{10EAB}\u{10EAC}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10EFC}-\u{10F1C}\u{10F27}\u{10F30}-\u{10F50}\u{10F70}-\u{10F85}\u{10FB0}-\u{10FC4}\u{10FE0}-\u{10FF6}\u{11000}-\u{11046}\u{11066}-\u{11075}\u{1107F}-\u{110BA}\u{110C2}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11100}-\u{11134}\u{11136}-\u{1113F}\u{11144}-\u{11147}\u{11150}-\u{11173}\u{11176}\u{11180}-\u{111C4}\u{111C9}-\u{111CC}\u{111CE}-\u{111DA}\u{111DC}\u{11200}-\u{11211}\u{11213}-\u{11237}\u{1123E}-\u{11241}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A8}\u{112B0}-\u{112EA}\u{112F0}-\u{112F9}\u{11300}-\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133B}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113C0}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}-\u{113D3}\u{113E1}\u{113E2}\u{11400}-\u{1144A}\u{11450}-\u{11459}\u{1145E}-\u{11461}\u{11480}-\u{114C5}\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B5}\u{115B8}-\u{115C0}\u{115D8}-\u{115DD}\u{11600}-\u{11640}\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116B8}\u{116C0}-\u{116C9}\u{116D0}-\u{116E3}\u{11700}-\u{1171A}\u{1171D}-\u{1172B}\u{11730}-\u{11739}\u{11740}-\u{11746}\u{11800}-\u{1183A}\u{118A0}-\u{118E9}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{11943}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D7}\u{119DA}-\u{119E1}\u{119E3}\u{119E4}\u{11A00}-\u{11A3E}\u{11A47}\u{11A50}-\u{11A99}\u{11A9D}\u{11AB0}-\u{11AF8}\u{11BC0}-\u{11BE0}\u{11BF0}-\u{11BF9}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C36}\u{11C38}-\u{11C40}\u{11C50}-\u{11C59}\u{11C72}-\u{11C8F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D47}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF6}\u{11F00}-\u{11F10}\u{11F12}-\u{11F3A}\u{11F3E}-\u{11F42}\u{11F50}-\u{11F5A}\u{11FB0}\u{12000}-\u{12399}\u{12400}-\u{1246E}\u{12480}-\u{12543}\u{12F90}-\u{12FF0}\u{13000}-\u{1342F}\u{13440}-\u{13455}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{16139}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A70}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF0}-\u{16AF4}\u{16B00}-\u{16B36}\u{16B40}-\u{16B43}\u{16B50}-\u{16B59}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D6C}\u{16D70}-\u{16D79}\u{16E40}-\u{16E7F}\u{16F00}-\u{16F4A}\u{16F4F}-\u{16F87}\u{16F8F}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FE4}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18CFF}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9D}\u{1BC9E}\u{1CCF0}-\u{1CCF9}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D165}-\u{1D169}\u{1D16D}-\u{1D172}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D7FF}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E030}-\u{1E06D}\u{1E08F}\u{1E100}-\u{1E12C}\u{1E130}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E290}-\u{1E2AE}\u{1E2C0}-\u{1E2F9}\u{1E4D0}-\u{1E4F9}\u{1E5D0}-\u{1E5FA}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E8D0}-\u{1E8D6}\u{1E900}-\u{1E94B}\u{1E950}-\u{1E959}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{E0100}-\u{E01EF}]*$/u,o=/^\s*<%=?\s+/,a=/\s+%>\s*$/;function i(e){if("string"!=typeof e)return{isString:!1};let u,t;var i;return i=e,o.test(i)&&a.test(i)?(t=e.replace(o,"").replace(a,"").trim(),u=e):e.includes("CTX.")?(t=e,u=`<%= ${e} %>`):(t=`CTX${function(e){const u=String(e);return r.test(u)?`.${u}`:`[${JSON.stringify(u)}]`}(e)}`,u=`<%= ${t} %>`),{isString:!0,embedded:u,expression:t,usedContexts:(0,n.strictCollectMemberUsage)(u,"CTX")}}},41763:(e,u,t)=>{t.d(u,{w:()=>_});var n=t(89575),r=t(18769),o=t.n(r),a=t(31085),i=t(83091),s=t(97447),l=t(46025),c=t(23640),d=t(24360),p=t(74269),E=t(74650),A=t(60798),m=t(63869),F=t(89515);function C(e){const u=e.properties.className||[];for(const e of u)if("language-"===e.slice(0,9))return e.slice(9).toLowerCase();return null}function D(){function e(e,u,t){if(!t||"pre"!==t.tagName||"code"!==e.tagName)return;const n=C(e);if(null===n||"mermaid"===n)return;let r;try{t.properties.className=(t.properties.className||[]).concat("language-"+n),r=A.L.highlight((0,E.d)(e),n)}catch{return}e.children=r.children}return u=>{(0,p.YR)(u,"element",e)}}A.L.register(m.A),A.L.register(F.A);var f=t(67367),g=t(53349);let B=0;f.A.initialize({startOnLoad:!1,theme:"base",themeVariables:{fontSize:"14px",lineColor:"#979797",primaryColor:"#DCD2F3",primaryBorderColor:"#0000001A"}});const b=new DOMParser,v=new XMLSerializer;function h(){return async e=>{const u=[];(0,p.YR)(e,"element",(function(e,t,n){n&&"pre"===n.tagName&&"code"===e.tagName&&"mermaid"===C(e)&&u.push((async()=>{const u="mermaid-"+B++;let r;try{r=(await f.A.render(u,(0,E.d)(e))).svg}catch(e){var o;return console.error("Error rendering mermaid diagram:",e),void(null===(o=document.getElementById(u))||void 0===o||o.remove())}const a=b.parseFromString(r,"text/html"),i=a.querySelector("svg"),s=a.createElementNS("http://www.w3.org/2000/svg","defs");s.innerHTML=`<linearGradient id="linear-gradient-${u}" x1="0%" y1="0%" x2="0%" y2="100%">\n <stop offset="0%" stop-color="#F0EBFA" />\n <stop offset="75%" stop-color="#DED4F4" />\n <stop offset="100%" stop-color="#C5C7FA" />\n</linearGradient>`,i.prepend(s);const l=a.createElementNS("http://www.w3.org/2000/svg","style");l.textContent=`\n#${u} .node rect,\n#${u} .node circle,\n#${u} .node ellipse,\n#${u} .node polygon,\n#${u} .node path {\n fill: url(#linear-gradient-${u});\n}\n#${u} .node rect {\n rx: 4;\n ry: 4;\n}\n#${u} .labelBkg {\n background-color: #f5f8ff;\n}\n#${u} .edgeLabel,\n#${u} .edgeLabel p {\n background-color: transparent;\n}\n#${u} .edgeLabel {\n color: #8c8c8c;\n font-size: 12px;\n}\n`,i.appendChild(l);const c=v.serializeToString(i),d=(0,g.f)(c,{fragment:!0}).children;n.children.splice(t,1,...d),n.properties.className=(n.properties.className||[]).concat("mermaid")})())})),await Promise.all(u)}}const y={Fragment:a.Fragment,jsx:a.jsx,jsxs:a.jsxs};function x(e){let{content:u,components:t}=e;const[n,o]=(0,r.useState)(null);return(0,r.useEffect)((()=>{let e=!1;return(0,i.l)().use(s.A).use(l.A).use(c.A).use([D]).use(h).use(d.A,{...y,passNode:!0,components:t}).process(u).then((u=>{e||o(u.result)})).catch((u=>{e||(console.error("Convert markdown failed:",u),o(null))})),()=>{e=!0}}),[t,u]),n}var k=t(85993),w=t(85620);const S={pre:k.N};function _(e){let{className:u,...t}=e;const a=(0,r.useRef)(null),{setHoverOnScrollableContent:i}=(0,r.useContext)(w.Q),s=(0,r.useCallback)((e=>{let u=!1;for(const t of e.nativeEvent.composedPath()){if(t===a.current)break;if((t instanceof HTMLTableElement||t instanceof HTMLPreElement)&&t.scrollWidth>t.clientWidth){u=!0;break}}i(u)}),[i]),l=(0,r.useCallback)((()=>{i(!1)}),[i]);return o().createElement("div",{className:u,onMouseMove:s,onMouseLeave:l},o().createElement(x,(0,n.A)({},t,{components:S})))}},42137:(e,u,t)=>{t.d(u,{t:()=>w});var n=t(18769),r=t.n(n),o=t(53373),a=t.n(o),i=t(21302),s=t.n(i),l=t(72591),c=t.n(l),d=t(1740),p=t.n(d),E=t(88128),A=t.n(E),m=t(30855),F=t.n(m),C=t(93051),D=t.n(C),f=t(73656),g=t.n(f),B=t(42671),b={};b.styleTagTransform=g(),b.setAttributes=F(),b.insert=A().bind(null,"head"),b.domAPI=p(),b.insertStyleElement=D(),c()(B.A,b);const v=B.A&&B.A.locals?B.A.locals:void 0;var h=t(44394),y=t(31918),x=t(4833);const k=e=>{let u;return null==e||e.findLast((e=>{var t;return u=null===(t=e.parts)||void 0===t?void 0:t.findLast((e=>{var u;return"data"===e.type&&"progress"===(null===(u=e.data)||void 0===u?void 0:u.type)})),!!u})),u};function w(e){var u;let{job:t,variant:o}=e;const{setActiveToolCallJobId:i}=(0,n.useContext)(y.j),l=t.toolCall,c=null===(u=l.annotations)||void 0===u?void 0:u.title,[d,p]=(0,n.useMemo)((()=>{var e;const u=null===(e=t.messages)||void 0===e?void 0:e.filter((e=>"tool"===e.role));return[k(u),null==u?void 0:u.some((e=>e.parts.some((e=>"text"===e.type))))]}),[t.messages]),E=(0,n.useMemo)((()=>"read-only"===o),[o]),A=(0,n.useCallback)((()=>{"read-only"!==o&&i(t.id)}),[t.id,o,i]),m=["working","input-required"].includes(t.state)&&p?"completed":t.state,F=t.isError||"failed"===m;return r().createElement("div",{className:a()(v["tool-call"],{[v.failed]:F,[v["read-only"]]:E}),onClick:A},r().createElement("div",{className:a()(v.status),title:t.startTime?`${s()(1e3*t.startTime).format("YYYY-MM-DD HH:mm:ss")}${t.endTime?` (${s().duration(1e3*t.endTime-1e3*t.startTime).humanize({ss:-1})})`:""}`:void 0},t.isError||"failed"===m?r().createElement(h.Bj,{className:v.icon,lib:"fa",prefix:"fas",icon:"xmark"}):"completed"===m?r().createElement(h.Bj,{className:v.icon,lib:"fa",prefix:"fas",icon:"check"}):"working"===m?r().createElement(h.Bj,{className:v.icon,lib:"antd",theme:"outlined",icon:"loading-3-quarters",spinning:!0}):"input-required"===m?r().createElement(h.Bj,{className:v.icon,lib:"fa",prefix:"far",icon:"circle-user"}):"canceled"===m?r().createElement(h.Bj,{className:v.icon,lib:"fa",prefix:"far",icon:"circle-stop"}):r().createElement(h.Bj,{className:v.icon,lib:"fa",prefix:"far",icon:"clock"}),r().createElement("span",{className:v.name},"read-only"===o?l.name:c||l.name)),!!d&&!E&&r().createElement(x.W,{progress:d,failed:F}))}},42671:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".tool-call--aTh276av{--failed-color:#f24c25;--border-color:#e2e2ec;--status-border-color:rgba(226,226,236,0.8);font-size:13px;color:#595959;border-radius:10px;border:1px solid var(--border-color);background:#e6e9f3}.tool-call--aTh276av:not(.read-only--xWUswNds):hover{background:#e4e9fb;border:1px solid #b8c1ff}.tool-call--aTh276av:not(:last-child){margin-bottom:10px}.tool-call--aTh276av:not(.read-only--xWUswNds){cursor:pointer}.tool-call--aTh276av .status--V5ZXGYOG:not(:last-child){border-bottom:1px solid var(--status-border-color)}.read-only--xWUswNds{font-size:14px;padding:4px}.failed--sz70SlSa{background:#fef5f3}.failed--sz70SlSa:not(.read-only--xWUswNds):hover{background:#fee7e1;border:1px solid #ffc3b5}.failed--sz70SlSa .status--V5ZXGYOG:not(:last-child){border-bottom:1px solid rgba(253,225,218,0.8)}.status--V5ZXGYOG{height:24px;display:flex;align-items:center;padding:0 12px;color:#262626}.icon--LTp5Jjna{margin-right:8px;color:#8c8c8c}.failed--sz70SlSa .icon--LTp5Jjna{color:var(--failed-color)}.name--FwiqyIlQ{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",""]),a.locals={"tool-call":"tool-call--aTh276av","read-only":"read-only--xWUswNds",status:"status--V5ZXGYOG",failed:"failed--sz70SlSa",icon:"icon--LTp5Jjna",name:"name--FwiqyIlQ"};const i=a},44394:(e,u,t)=>{t.d(u,{Bj:()=>o,Gx:()=>a,Py:()=>s,lW:()=>c,ui:()=>l,xb:()=>i}),t(18769);var n=t(11280),r=t(37732);t(4273);const o=(0,n.wrapBrick)("eo-icon"),a=(0,n.wrapBrick)("eo-button"),i=((0,n.wrapBrick)("eo-link"),(0,n.wrapBrick)("eo-tooltip"),(0,n.wrapBrick)("eo-popover"),(0,n.wrapBrick)("eo-drawer",{onClose:"close",onOpen:"open"})),s=(0,n.wrapBrick)("ai-portal.icon-button"),l=(0,r.unwrapProvider)("basic.show-dialog"),c=(0,r.unwrapProvider)("basic.copy-to-clipboard")},52810:(e,u,t)=>{function n(e,u){return{brick:"div",properties:{style:u.expanded?{background:"rgba(255, 255, 255, 0.9)",backdropFilter:"blur(10px)",borderRadius:"16px",padding:"24px"}:{background:"var(--elevo-component-background)",backdropFilter:"var(--elevo-component-backdrop-filter)",borderRadius:"var(--elevo-border-radius)",padding:"16px"}},children:e}}t.d(u,{i:()=>n})},55198:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".plan--wphhC6CP,\n.toolbar--V4jK_1LK{font-size:14px;line-height:22px}.plan--wphhC6CP{padding:8px;background:rgba(62,67,102,0.05);box-shadow:0px 1px 0px 0px rgba(255,255,255,0.5);border-radius:9px}.plan--wphhC6CP:not(:first-child){margin-top:6px}.steps--Ba0Uqoow{list-style:none;margin:0;padding:0}.step--vXcPggL0{background:#fff;border-radius:8px;padding-right:12px;display:flex}.step--vXcPggL0 + .step--vXcPggL0{margin-top:4px}.step--vXcPggL0.editing--NZsTtGHU{background:var(--cruise-canvas-input-background);box-shadow:var(--cruise-canvas-input-box-shadow)}.content--V4BbaELE{flex:1;min-width:0;padding:0 10px 0 5px;margin:10px 0}.step--vXcPggL0:not(.editing--NZsTtGHU) .content--V4BbaELE{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis}.content--V4BbaELE:focus{outline:none}.dragging--bSak5zJX{cursor:grabbing}.toolbar--V4jK_1LK{margin-top:12px;display:flex;justify-content:center}.handle--n8KwiyLW,\n.delete--TSNogdQu{color:#8c8c8c;display:flex;align-items:center;justify-content:center}.handle--n8KwiyLW{cursor:grab;width:24px;border-radius:8px 0px 0px 8px;touch-action:none}.handle--n8KwiyLW:hover,\n.dragging--bSak5zJX .handle--n8KwiyLW{background:rgba(62,67,102,0.05)}.dragging--bSak5zJX,\n.dragging--bSak5zJX .handle--n8KwiyLW{cursor:grabbing}.dragging--bSak5zJX{position:relative;z-index:1}.delete--TSNogdQu{cursor:pointer}.step--vXcPggL0:not(:hover) .delete--TSNogdQu{visibility:hidden}.delete--TSNogdQu > *:hover{color:#595959}.actions--GWq0_5DJ{display:flex;justify-content:space-between;align-items:center;margin-top:8px}.button-add--zKhH8CP1,\n.button-reset--VKCfnFas{background:none;border:none;padding:0;cursor:pointer}.button-icon--qL49LHsn{border-radius:9px;width:18px;height:18px;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0.04);color:rgba(0,0,0,0.45);margin-right:8px}.button-reset--VKCfnFas{color:#8c8c8c}.button-reset--VKCfnFas:hover,\n.button-add--zKhH8CP1{color:#595959}.button-add--zKhH8CP1:hover .button-icon--qL49LHsn{background:rgba(0,0,0,0.08)}.button-add--zKhH8CP1{display:flex;align-items:center}",""]),a.locals={plan:"plan--wphhC6CP",toolbar:"toolbar--V4jK_1LK",steps:"steps--Ba0Uqoow",step:"step--vXcPggL0",editing:"editing--NZsTtGHU",content:"content--V4BbaELE",dragging:"dragging--bSak5zJX",handle:"handle--n8KwiyLW",delete:"delete--TSNogdQu",actions:"actions--GWq0_5DJ","button-add":"button-add--zKhH8CP1","button-reset":"button-reset--VKCfnFas","button-icon":"button-icon--qL49LHsn"};const i=a},56609:(e,u,t)=>{t.d(u,{H:()=>a});var n=t(48518),r=t(5543);const o=new Map;async function a(e){if(o.has(e))return o.get(e);const u=async function(e){let u=[];try{const t=await(0,r.x)(e);if(t){const e=["metricGroups"].join(","),{metricGroups:r}=await(0,n.y)("MODEL_OBJECT",t,{fields:e});Array.isArray(r)&&r.length&&(u=r)}}catch(e){console.error("Error fetching pre-generated metric groups:",e)}return u}(e);return o.set(e,u),u}},56819:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".container--YostHfxu{background:var(--elevo-component-background);-webkit-backdrop-filter:var(--elevo-component-backdrop-filter);backdrop-filter:var(--elevo-component-backdrop-filter);border-radius:var(--elevo-border-radius);padding:16px}ai-portal\\.chat-stream .container--YostHfxu{background:rgba(255,255,255,0.6);border-radius:8px;border:1px solid rgba(0,0,0,0.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:12px 20px}.loading--FzSrGTPm{position:absolute;top:calc(50% - 7px);left:calc(50% - 7px)}",""]),a.locals={container:"container--YostHfxu",loading:"loading--FzSrGTPm"};const i=a},65023:(e,u,t)=>{t.d(u,{b:()=>y});var n=t(18769),r=t.n(n),o=t(90079),a=t(72591),i=t.n(a),s=t(1740),l=t.n(s),c=t(88128),d=t.n(c),p=t(30855),E=t.n(p),A=t(93051),m=t.n(A),F=t(73656),C=t.n(F),D=t(22238),f={};f.styleTagTransform=C(),f.setAttributes=E(),f.insert=d().bind(null,"head"),f.domAPI=l(),f.insertStyleElement=m(),i()(D.A,f);const g=D.A&&D.A.locals?D.A.locals:void 0;var B=t(44394);let b=function(e){return e.REPLAYING="REPLAYING",e.REPLAY_COMPLETED="REPLAY_COMPLETED",e.SKIP_TO_RESULTS="SKIP_TO_RESULTS",e.WATCH_AGAIN="WATCH_AGAIN",e}({});const v="bricks/ai-portal/ReplayToolbar",h=o.i18n.getFixedT(null,v);function y(e){let{taskDone:u,skipToResults:t,watchAgain:n}=e;return r().createElement("div",{className:g.container},r().createElement("div",{className:g.replay},r().createElement("div",{className:g.text},h(u?b.REPLAY_COMPLETED:b.REPLAYING)),u?r().createElement(B.Gx,{type:"primary",themeVariant:"elevo",className:g.button,onClick:n},h(b.WATCH_AGAIN)):r().createElement(B.Gx,{type:"primary",themeVariant:"elevo",className:g.button,onClick:t},h(b.SKIP_TO_RESULTS))))}(0,o.initializeI18n)(v,{en:{REPLAYING:"Task is replaying...",REPLAY_COMPLETED:"Task replay completed.",SKIP_TO_RESULTS:"Skip to results",WATCH_AGAIN:"Watch again"},zh:{REPLAYING:"任务正在回放中...",REPLAY_COMPLETED:"任务回放完成。",SKIP_TO_RESULTS:"跳转到结果",WATCH_AGAIN:"重新观看"}})},65971:(e,u,t)=>{t.d(u,{Q:()=>s});var n=t(48518);function r(e,u){return null==e?void 0:e.reduce(((e,t)=>!e||Math.abs(t.visualWeight-u)<Math.abs(e.visualWeight-u)?t:e))}var o=t(5543);const a=new Map,i=new Map;async function s(e,u){if(a.has(e))return a.get(e);const t=async function(e,u){const t=new Map;try{const s=await async function(e){if(i.has(e))return i.get(e);const u=async function(e){const u=await(0,o.x)(e);if(!u)return null;const t=["attrList.id","attrList.generatedView.list"].join(","),{attrList:r}=await(0,n.y)("MODEL_OBJECT",u,{fields:t});return r}(e);return i.set(e,u),u}(e);if(s)for(const e of s){var a;const n=r(null===(a=e.generatedView)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.list,null!=u?u:0);n&&t.set(e.id,n)}}catch(e){console.error("Error fetching pre-generated attr views:",e)}return t}(e,u);return a.set(e,t),t}},67993:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".progress-line--CX_xuAHC{--breathing-color:rgba(205,205,217,0.7);--breathing-color-2:rgba(205,205,217,0);display:flex;flex-direction:column}.progress-line--CX_xuAHC .step--YXd66tSR{position:relative;display:flex;align-items:center;padding:10px 4px 10px 16px;color:rgba(0,0,0,0.5)}.progress-line--CX_xuAHC .step--YXd66tSR .axis--T4nVxQt5{position:absolute;top:0;bottom:0;left:14px;width:1px}.progress-line--CX_xuAHC .step--YXd66tSR .axis--T4nVxQt5 .line--BUSBjzxD{width:1px;height:100%;background:linear-gradient(172deg,rgba(205,205,217,0) 0%,#cdcdd9 46%,rgba(205,205,217,0) 100%)}.progress-line--CX_xuAHC .step--YXd66tSR .axis--T4nVxQt5 .dot--TPMEta87{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:5px;height:5px;background:rgba(205,205,217,1);border-radius:50%}.progress-line--CX_xuAHC .step--YXd66tSR .progress--alc7SspF{padding:3px;margin:0 8px 0 12px;border-radius:10px;line-height:1;background:#ffffff}.progress-line--CX_xuAHC .step--YXd66tSR .progress--alc7SspF .count--RdZcMYhZ{font-weight:400}.progress-line--CX_xuAHC .step--YXd66tSR .progress--alc7SspF .total--BKoLTm8c{opacity:0.6}.progress-line--CX_xuAHC .step--YXd66tSR .description--AyfMh1_M{flex:1;color:#999}.progress-line--CX_xuAHC .step--YXd66tSR:last-child .progress--alc7SspF .count--RdZcMYhZ{font-weight:600}.failed--Q9TADo_k .step--YXd66tSR:last-child .axis--T4nVxQt5 .line--BUSBjzxD{background:linear-gradient(172deg,rgba(242,76,37,0) 0%,rgba(242,76,37,0.3) 47%,rgba(242,76,37,0) 100%)}.failed--Q9TADo_k .step--YXd66tSR:last-child .axis--T4nVxQt5 .dot--TPMEta87{background:rgba(255,154,120,1)}.failed--Q9TADo_k .step--YXd66tSR:last-child .progress--alc7SspF{background:#ffd6d6}.failed--Q9TADo_k .step--YXd66tSR:last-child .progress--alc7SspF .count--RdZcMYhZ{color:#f44336}",""]),a.locals={"progress-line":"progress-line--CX_xuAHC",step:"step--YXd66tSR",axis:"axis--T4nVxQt5",line:"line--BUSBjzxD",dot:"dot--TPMEta87",progress:"progress--alc7SspF",count:"count--RdZcMYhZ",total:"total--BKoLTm8c",description:"description--AyfMh1_M",failed:"failed--Q9TADo_k"};const i=a},69131:(e,u,t)=>{function n(e){return!!e.source}t.d(u,{F:()=>n})},70558:(e,u,t)=>{t.d(u,{V:()=>C});var n=t(58377),r=t(37912);function o(e,u){const t=(Array.isArray(e)?e:[e]).map((e=>function(e,u){switch(null==e?void 0:e.action){case"update_variable":return{action:"context.replace",args:[e.payload.name,e.payload.value]};case"refresh_data_source":return{action:"context.refresh",args:[e.payload.name]};case"call_api":{var t;const{api:n,params:r}=e.payload,a=null!==(t=e.callback)&&void 0!==t&&t.success?o(e.callback.success,u):void 0;return{useProvider:`${n}:*`,params:r,callback:{...a&&{success:a},error:{action:"handleHttpError"}}}}case"call_component":return{target:`[data-root-id="${u.rootId}"] [data-component-id="${e.payload.componentId}"]`,method:e.payload.method,args:e.payload.args};case"show_message":return{action:`message.${e.payload.type}`,args:[e.payload.content]}}}(e,u))).filter(Boolean);return t.length>0?t:void 0}var a=t(52810),i=t(37732),s=t(2098),l=t(65971),c=t(10102);function d(e,u,t){let n;if(null!=e&&e.size&&null!=u&&u.length){const r=new Map;for(const e of u)e.objectId&&r.set(e.name,e.objectId);const o=new Map;for(const e of null!=t?t:[]){const u=(0,c.strictCollectMemberUsage)(e.value,"CTX");o.set(e.name,u)}const a=new Set,i=e=>{if(a.has(e))return!1;a.add(e);const u=r.get(e);if(u)return n=u,!0;const t=o.get(e);for(const e of null!=t?t:[])if(i(e))return!0;return!1};for(const u of e)if(i(u))break}return n}async function p(e,u,t){var n;const{properties:o}=e,{dataSource:a,size:i,columns:c,rowKey:p,pagination:E,...A}=o,m=(0,r.jV)(a),F=d(m.usedContexts,u.dataSources,u.variables),C=F?await(0,l.Q)(F):void 0,D=new Map;if(null!=C&&C.size)for(const e of c){const u=C.get(e.dataIndex);if(u){const t=(0,s.m)(u,".cellData");t&&(t.slot=`[${e.dataIndex}]`,D.set(e.dataIndex,t))}}return{brick:"eo-next-table",properties:{dataSource:m.isString?m.embedded:a,...A,rowKey:null!=p?p:null===(n=c[0])||void 0===n?void 0:n.key,columns:c.map((e=>D.get(e.dataIndex)?{...e,useChildren:`[${e.dataIndex}]`}:e)),themeVariant:"elevo",scrollConfig:{x:"max-content"},...t.expanded?{bordered:!0,pagination:E,size:"large"}:{size:"middle",pagination:!1}},children:D.size>0?Array.from(D.values()):[]}}async function E(e,u,t){let{properties:n}=e;const{dataSource:o,title:a,columns:i,list:c,...p}=n,E=(0,r.jV)(o),A=d(E.usedContexts,u.dataSources,u.variables),m=A?await(0,l.Q)(A):void 0,F=new Map;if(null!=m&&m.size)for(const e of c)if(e.field){const u=m.get(e.field);if(u){const t=(0,s.w)(u,e.field);t&&(t.slot=`[${e.field}]`,F.set(e.field,t))}}return{brick:"eo-descriptions",properties:{...p,dataSource:E.isString?E.embedded:o,list:c.map((e=>(e.field?F.get(e.field):void 0)?{label:e.label,useChildren:`[${e.field}]`}:e)),column:t.expanded?3:1,themeVariant:"elevo"},children:F.size>0?Array.from(F.values()):[]}}var A=t(56609);const m=["#336EF4","#45CAFF","#41CDCF","#8146F3","#F8A075","#94E65E","#57689C","#C285EF","#FAC60B","#E4551F","#8984FF","#2540FF","#08BF33","#F7811C","#AC7CFF","#1BA5DC","#E89716","#76A6F5","#4F69FF"];function F(e,u){const t=e.slice(1),n=parseInt(t,16);return`rgba(${n>>16&255}, ${n>>8&255}, ${255&n}, ${u})`}async function C(e,u){var t,n;const s=async t=>{var n;let a=null;switch(t.name){case"List":case"eo-list":a=await function(e){let{properties:u}=e;const t=u,{dataSource:n,fields:o,variant:a}=t,i=(0,r.jV)(n);return{brick:"eo-list",properties:{variant:a,dataSource:i.isString?i.embedded:n,fields:o,themeVariant:"elevo"}}}(t);break;case"Table":case"eo-table":a=await p(t,e,u);break;case"Descriptions":case"eo-descriptions":a=await E(t,e,u);break;case"Dashboard":case"eo-dashboard":a=await async function(e,u,t){let{properties:n}=e;const{dataSource:o,groupField:a,widgets:i}=n,s=a?"#showKey":void 0,{isString:l,expression:c,usedContexts:p}=(0,r.jV)(o),E=l?`<%= CTX.__builtin_fn_extractList((${c})) %>`:o;if(t.expanded){let e=i;const t=d(p,u.dataSources,u.variables),n=t?await(0,A.H)(t):[];if(n.length>0){e=[];const u=new Set,t=new Set(i.map((e=>e.metric.id)));for(const r of i){if(u.has(r.metric.id))continue;const o={...r};e.push(o);const a=n.find((e=>e.metrics.includes(r.metric.id)));if(a){const e=a.metrics.filter((e=>t.has(e)));if(e.length>1){o.relevantMetrics=e,o.counterMetric=a.counter,o.groupTitle=a.group;for(const n of e)u.add(n),t.delete(n)}}}}let r=0;return{brick:"div",properties:{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(500px, 1fr))",gap:"16px"}},children:e.map((e=>{var u,t;const{title:n,metric:o,size:a,precision:i,min:l,max:d}=e,p=null!==(u=null===(t=e.relevantMetrics)||void 0===t?void 0:t.length)&&void 0!==u?u:s?2:1,A=Array.from({length:p},((e,u)=>m[(r+u)%m.length]));r+=p;const C="load"===o.unit?"":o.unit,D={brick:"chart-v2.time-series-chart",properties:{data:E,xField:"time",...e.relevantMetrics?{yFields:`<% CTX.__builtin_fn_getMetricDisplayNames((${c}).displayNameList, ${JSON.stringify(e.relevantMetrics)}) %>`}:{yField:`<% CTX.__builtin_fn_getMetricDisplayNames((${c}).displayNameList, [${JSON.stringify(o.id)}])[0] %>`},...e.counterMetric?{forceAbsoluteNumbers:!0,series:{[e.counterMetric]:{isNegative:!0}}}:null,height:"large"===a?230:200,timeFormat:"HH:mm",...e.relevantMetrics||s?null:{areaOptions:{style:{fill:`l(90) 0:${A[0]} 1:#ffffff`}}},axis:{yAxis:{unit:C,precision:i,...e.counterMetric?null:"percent(1)"===C?{min:0,max:1}:"percent(100)"===C||"%"===C?{min:0,max:100}:{min:l,max:d},shape:"smooth"}},groupField:s,areaShape:"smooth",legends:!(!e.relevantMetrics&&!s),colors:A,tooltip:{marker:{fill:A[0],stroke:"#fff",lineWidth:2,shadowColor:A[0],shadowBlur:8,shadowOffsetX:0,shadowOffsetY:4},domStyles:{"g2-tooltip":{background:[`radial-gradient( farthest-corner at -20px 150px, ${A[0]} 0%, rgba(238,238,238,0) 60%)`,"linear-gradient( 180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.8) 100%)"].join(", "),boxShadow:`0px 4px 8px 0px ${F(A[0],.08)}`,borderRadius:"8px",border:"1px solid rgba(255,255,255,1)",backdropFilter:"blur(3px)"}}}}};return{brick:"div",properties:{style:{background:"rgba(255,255,255,0.8)",boxShadow:"0px 2px 4px 0px rgba(0,0,0,0.06)",borderRadius:"8px",padding:"16px 20px 20px"}},children:[{brick:"div",properties:{style:{fontSize:"16px",fontWeight:"500",marginBottom:"20px"},textContent:e.groupTitle||n||o.id}},D]}}))}}return s?{brick:"div",properties:{style:{display:"flex",flexDirection:"column",gap:"8px"}},children:[{brick:":forEach",dataSource:`<%= CTX.__builtin_fn_groupMetricData(CTX.__builtin_fn_extractList((${c})), ${JSON.stringify(s)}) %>`,children:[{brick:"div",properties:{textContent:"<% `${ITEM.group}:` %>",style:{fontWeight:"500"}}},{brick:"div",properties:{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(200px, 1fr))",gap:"10px",marginBottom:"8px"}},children:i.map(((e,u)=>{const{title:t,metric:n,precision:r}=e;return{brick:"ai-portal.stat-with-mini-chart",properties:{size:"small",label:t||n.id,data:"<% ITEM.list %>",xField:"time",yField:n.id,lineColor:m[u%m.length],showArea:!0,..."percent(1)"===n.unit?{min:0,max:1}:"percent(100)"===n.unit||"%"===n.unit?{min:0,max:100}:null,value:`<%= CTX.__builtin_fn_getLatestMetricValue(ITEM.list, ${JSON.stringify({metric:n,precision:r})}) %>`}}}))}]}]}:{brick:"div",properties:{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(200px, 1fr))",gap:"10px"}},children:i.map(((e,u)=>{const{title:t,metric:n,precision:r}=e;return{brick:"ai-portal.stat-with-mini-chart",properties:{size:"small",label:t||n.id,data:E,xField:"time",yField:n.id,lineColor:m[u%m.length],showArea:!0,..."percent(1)"===n.unit?{min:0,max:1}:"percent(100)"===n.unit||"%"===n.unit?{min:0,max:100}:null,value:`<%= CTX.__builtin_fn_getLatestMetricValue((${l?`CTX.__builtin_fn_extractList((${c}))`:JSON.stringify(null!=o?o:null)}), ${JSON.stringify({metric:n,precision:r})}) %>`}}}))}}(t,e,u);break;case"Button":case"eo-button":a=await function(e){const{properties:u}=e;return{brick:"eo-button",properties:{...u,themeVariant:"elevo"}}}(t);break;case"Form":case"eo-form":a=await function(e){const{properties:u}=e,{values:t}=null!=u?u:{};return{brick:"eo-form",properties:{values:null!=t?t:{},themeVariant:"elevo"}}}(t);break;case"Toolbar":case"eo-toolbar":a=await{brick:"eo-flex-layout",properties:{gap:"0.5em",alignItems:"center"}};break;case"Modal":case"eo-modal":a=await function(e){const{properties:u}=e,{title:t,confirmText:n,cancelText:r}=u;return{brick:"eo-modal",portal:!0,properties:{themeVariant:"elevo",modalTitle:t,confirmText:n,cancelText:r,keyboard:!0}}}(t);break;case"Plaintext":case"eo-text":a=await function(e){const{properties:u}=e,{textContent:t}=u;return{brick:"span",portal:!0,properties:{textContent:t}}}(t);break;case"eo-search":case"eo-input":case"eo-number-input":case"eo-textarea":case"eo-select":case"eo-radio":case"eo-checkbox":case"eo-switch":case"eo-date-picker":case"eo-time-picker":case"Search":case"Input":case"NumberInput":case"Textarea":case"Select":case"Radio":case"Checkbox":case"Switch":case"DatePicker":case"TimePicker":a=await function(e,u){const{properties:t}=e;let n=u,r={...t,themeVariant:"elevo"};switch(n){case"eo-search":r={...r,trim:!0};break;case"eo-number-input":n="eo-input",r={type:"number",...r}}return{brick:n,properties:r}}(t,(i=t.name,i.includes("-")?i:`eo${i.replace(/([A-Z])/g,"-$1").toLowerCase()}`))}var i,l,c,C,D;return a?(t.componentId&&(null!==(c=(l=a).properties)&&void 0!==c||(l.properties={}),null!==(D=(C=a.properties).dataset)&&void 0!==D||(C.dataset={}),a.properties.dataset.componentId=t.componentId),a.events=function(e,u){const t={};for(const[r,a]of Object.entries(null!==(n=e.events)&&void 0!==n?n:{})){var n;switch(e.name){case"Table":case"eo-table":switch(r){case"select":{const e=o(a,u);e&&(t["row.select.v2"]=e);break}case"sort":{const e=o(a,u);e&&(t["sort.change"]=e);break}case"paginate":{const e=o(a,u);e&&(t["page.change"]=e);break}}break;case"Button":case"eo-button":if("click"===r){const e=o(a,u);e&&(t.click=e)}break;case"Search":case"eo-search":if("search"===r){const e=o(a,u);e&&(t.search=e)}break;case"Select":case"eo-select":if("change"===r){const e=o(a,u);e&&(t["change.v2"]=e)}break;default:{const e=o(a,u);e&&(t[r]=e)}}}return Object.keys(t).length>0?t:void 0}(t,u),null!==(n=t.children)&&void 0!==n&&n.length&&(a.children=(await Promise.all(t.children.map(s))).filter(Boolean)),a):null},l=[...(C=null!==(t=e.dataSources)&&void 0!==t?t:[],C.map((e=>({name:e.name,resolve:{useProvider:`${e.api}:*`,params:e.params,..."easyops.api.data_exchange.olap@Query"===e.api&&(0,i.isObject)(e.params)?{params:{...e.params,translate:["#showKey"],limit:void 0,limitBy:void 0,order:void 0,displayName:!0}}:e.transform?{transform:{value:e.transform}}:null},track:!0})))),...(c=null!==(n=e.variables)&&void 0!==n?n:[],c.map((e=>{let{name:u,value:t}=e;return{name:u,value:t}}))),{name:"__builtin_fn_mergeTexts",value:D},{name:"__builtin_fn_getLatestMetricValue",value:g},{name:"__builtin_fn_extractList",value:B},{name:"__builtin_fn_groupMetricData",value:b},{name:"__builtin_fn_getMetricDisplayNames",value:v}];var c,C;const f=(await Promise.all(e.components.map(s))).filter(Boolean);return{brick:"eo-content-layout",children:e.components.every((e=>["Form","Descriptions","Button","eo-form","eo-descriptions","eo-button","form","descriptions","button"].includes(e.name)))?[(0,a.i)(f,u)]:f,context:l}}function D(e){const u=[];for(const t of e)"text"===t.type?u.push(t.text.trim()):u.push(f(t.value));return u.join("")}function f(e){if(Array.isArray(e))return e.map(f).join("");const u=typeof e;if("string"===u||"number"===u)return String(e);if("object"===u&&null!==e)throw new Error("Can not render object as text");return""}function g(e,u){var t;let{metric:r,precision:o}=u;const a=null==e||null===(t=e.findLast)||void 0===t||null===(t=t.call(e,(e=>null!=e[r.id])))||void 0===t?void 0:t[r.id],i="load"===r.unit?"":r.unit;return n.pipes.unitFormat(a,i,o).join("")}function B(e){return Array.isArray(e)?e:null==e?void 0:e.list}function b(e,u){if(!e||!Array.isArray(e)||0===e.length)return[];const t=new Map;for(const n of e){const e=n[u];let r=t.get(e);r||t.set(e,r={group:e,list:[]}),r.list.push(n)}return Array.from(t.values())}function v(e,u){return u.map((u=>{var t,n;return null!==(t=null==e||null===(n=e.find((e=>e.metric_name===u)))||void 0===n?void 0:n.metric_display_name)&&void 0!==t?t:u}))}},71451:(e,u,t)=>{t.d(u,{e:()=>c});var n=t(89575),r=t(18769),o=t(59435),a=t(99126);const i=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"];let s;const l=/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"metaKey":"ctrlKey",c=r.forwardRef(d);function d(e,u){let{autoResize:t,minRows:c,maxRows:d,borderSize:p,paddingSize:E,containerRef:A,value:m,style:F,submitWhen:C,onChange:D,onSubmit:f,onKeyDown:g,onCompositionStart:B,onCompositionEnd:b,...v}=e;const h=null==t||t,[y,x]=(0,r.useState)(null!=m?m:""),k=(0,r.useRef)(null),[w,S]=(0,r.useState)(null);(0,r.useImperativeHandle)(u,(()=>({focus:()=>{const e=k.current;if(e){var u;const t=null===(u=e.value)||void 0===u?void 0:u.length;e.focus(),t&&e.setSelectionRange(t,t)}}})),[]);const _=(0,r.useCallback)((()=>{const e=k.current;if(e&&h){const u=function(e,u){const{minRows:t=null,maxRows:n=null,borderSize:r=2,paddingSize:o=8}=null!=u?u:{};s||(s=document.createElement("textarea"),s.setAttribute("tab-index","-1"),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));const a=window.getComputedStyle(e),l=i.map((e=>`${e}:${a.getPropertyValue(e)}`)).join(";");let c,d,p;s.setAttribute("style",`${l};\n min-height: 0!important;\n max-height: none!important;\n height: 0!important;\n visibility: hidden!important;\n overflow: hidden!important;\n position: absolute!important;\n z-index: -1000!important;\n top: 0!important;\n right: 0!important;\n pointer-events: none!important;\n`),s.value=e.value||e.placeholder||"";let E=s.scrollHeight+r;if(null!==t||null!==n){const e=parseFloat(window.getComputedStyle(s).getPropertyValue("line-height"));null!==t&&(c=e*t+o+r,E=Math.max(c,E)),null!==n&&(d=e*n+o+r,E<=d&&(p="hidden"),E=Math.min(d,E))}const A={height:E,overflowY:p,resize:"none"};return c&&(A.minHeight=c),d&&(A.maxHeight=d),A}(e,{minRows:c,maxRows:d,borderSize:p,paddingSize:E});(0,o.flushSync)((()=>{S(u)}))}}),[h,d,c,p,E]);(0,r.useEffect)((()=>{x(null!=m?m:"")}),[m]),(0,r.useEffect)((()=>{_()}),[_,y]);const T=(0,r.useRef)(!1),$=(0,r.useCallback)((e=>{T.current=!0,null==B||B(e)}),[B]),N=(0,r.useCallback)((e=>{T.current=!1,null==b||b(e)}),[b]),I=(0,r.useCallback)((e=>{T.current||("Enter"===e.key&&("enter-without-shift"===C?!e.shiftKey:"enter-with-mod"===C&&e[l])&&(e.preventDefault(),e.stopPropagation(),null==f||f(e)),null==g||g(e))}),[g,f,C]);return(0,r.useEffect)((()=>{const e=null==A?void 0:A.current;if(!e||!h)return;let u;const t=new a.A((t=>{for(const n of t)if(n.target===e){const e=n.contentBoxSize?n.contentBoxSize[0]?n.contentBoxSize[0].inlineSize:n.contentBoxSize.inlineSize:n.contentRect.width;if(void 0!==e&&e!==u){const t=!u;u=e,t||requestAnimationFrame(_)}}}));return t.observe(e),()=>{t.disconnect()}}),[h,A,_]),r.createElement("textarea",(0,n.A)({},v,{ref:k,value:y,style:{...F,...w},onChange:e=>{x(e.target.value),null==D||D(e)},onCompositionStart:$,onCompositionEnd:N,onKeyDown:I}))}},74049:(e,u,t)=>{t.d(u,{H:()=>$});var n=t(89575),r=t(18769),o=t.n(r),a=t(41030),i=t(23081),s=t(37732),l=t(65971),c=t(2098),d=t(72591),p=t.n(d),E=t(1740),A=t.n(E),m=t(88128),F=t.n(m),C=t(30855),D=t.n(C),f=t(93051),g=t.n(f),B=t(73656),b=t.n(B),v=t(56819),h={};h.styleTagTransform=b(),h.setAttributes=D(),h.insert=F().bind(null,"head"),h.domAPI=A(),h.insertStyleElement=g(),p()(v.A,h);const y=v.A&&v.A.locals?v.A.locals:void 0;var x=t(28599),k=t(44394),w=t(97907);const S=6,_=2,T="__builtin_fn_stringify";function $(e){let{objectId:u,detail:t,outputSchema:d}=e;const p=(0,r.useMemo)((()=>(0,a.uniqueId)()),[]),E=(0,r.useRef)(null),A=(0,r.useRef)(null);(0,r.useEffect)((()=>{const e=E.current;if(!e)return;const u=(0,x.d)(p),t=(0,i.unstable_createRoot)(e,{portal:u,supportsUseChildren:!0});return A.current=t,()=>{t.unmount(),u.remove(),A.current=null}}),[p]);const[m,F]=(0,r.useState)(!0);return(0,r.useEffect)((()=>{let e=!1;return(async()=>{F(!0);try{var n;const{bricks:r,context:o}=await async function(e,u,t,n){var r;const o=await(0,l.Q)(u,1);let i,d;if("string"==typeof t)try{i=JSON.parse(t)}catch(e){console.error("Failed to parse outputSchema as JSON",e)}else i=t;const p=[],E=[{name:T,value:O}];function A(e,u,t,r,o){var i;const s=Object.entries(u.properties),l=s.length>0?s[0][0]:null,c=L(`modal__${r}`),d=L(`context__${r}`);o&&E.push({name:d});const F={brick:"eo-modal",portal:!0,properties:{dataset:{modalId:c},width:"800px",themeVariant:"elevo",modalTitle:t,hideCancelButton:!0,maskClosable:!0,keyboard:!0}};p.push(F);const C=[],D=[];for(const[e,u]of s){let t;"array"===u.type&&"object"===u.items.type?(t=`[${e}]`,D.push({...A("DATA.cellData",u.items,u.description||(0,a.upperFirst)(e),`${r}__${e}`,!0),slot:t})):"object"===u.type&&(t=`[${e}]`,D.push({...m("DATA.cellData",u,u.description||(0,a.upperFirst)(e),`${r}__${e}`,!0),slot:t})),C.push({key:e,dataIndex:e,title:u.description||(0,a.upperFirst)(e),useChildren:t})}F.children=[{brick:"eo-next-table",properties:{dataSource:o?`<%= { list: CTX.${d} } %>`:`<% { list: (${e}) } %>`,columns:C,themeVariant:"elevo",pagination:!1,bordered:!0},children:D}];const f=[...o?[{action:"context.replace",args:[{name:d,value:`<% ${e} %>`}]}]:[],{target:`[data-root-id="${n}"] [data-modal-id="${c}"]`,method:"open"}];return{brick:"span",if:`<% !!(${e}) %>`,properties:{style:{display:"inline-flex",alignItems:"center",gap:"0.5em"}},children:[{brick:":forEach",dataSource:`<% (${e}).slice(0, ${_}) %>`,children:[{brick:"eo-tag",properties:{textContent:`<% CTX.${T}(ITEM, ${JSON.stringify(l)}, ${JSON.stringify(null===(i=s[0])||void 0===i?void 0:i[1].type)}) %>`,outline:!0,style:{cursor:"pointer"}},events:{click:f}}]},{brick:"eo-link",if:`<% (${e}).length > ${_} %>`,properties:{textContent:`<% \`+\${(${e}).length - ${_}}\` %>`},events:{click:f}}]}}function m(e,u,t,r,o){var i;const s=Object.entries(u.properties),l=s.length>0?s[0][0]:null,c=L(`modal__${r}`),d=L(`context__${r}`);return o&&E.push({name:d}),p.push({brick:"eo-modal",portal:!0,properties:{dataset:{modalId:c},themeVariant:"elevo",modalTitle:t,hideCancelButton:!0,maskClosable:!0,keyboard:!0},children:[{brick:"eo-descriptions",properties:{themeVariant:"elevo",column:1,dataSource:o?`<%= CTX.${d} %>`:`<% ${e} %> `,list:s.map((e=>{let[u,t]=e;return{label:t.description||(0,a.upperFirst)(u),field:u}}))}}]}),{brick:"span",if:`<% !!(${e}) %>`,properties:{style:{display:"inline-flex",alignItems:"center",gap:"0.5em"}},children:[{brick:"eo-tag",properties:{textContent:`<% CTX.${T}(${e}, ${JSON.stringify(l)}, ${JSON.stringify(null===(i=s[0])||void 0===i?void 0:i[1].type)}) %>`,outline:!0,style:{cursor:"pointer"}},events:{click:[...o?[{action:"context.replace",args:[{name:d,value:`<% ${e} %>`}]}]:[],{target:`[data-root-id="${n}"] [data-modal-id="${c}"]`,method:"open"}]}}]}}return d="object"===(null===(r=i)||void 0===r?void 0:r.type)?Object.entries(i.properties).map((u=>{let[t,n]=u;const{description:r,type:i}=n,l=r||(0,a.upperFirst)(t);if(I(e,t))return{label:l,text:""};if("array"===i&&Array.isArray(e[t])){const{items:u}=n;if("object"===(null==u?void 0:u.type)){const n=L(`context__${t}`);return E.push({name:n,value:e[t]}),{label:l,useBrick:A(`CTX.${n}`,u,l,t)}}if(!N(null==u?void 0:u.type))return{label:l,text:e[t].join(", ")}}if("object"===i&&(0,s.isObject)(e[t])){const u=L(`context__${t}`);return E.push({name:u,value:e[t]}),{label:l,useBrick:m(`CTX.${u}`,n,l,t)}}if(N(i))return{label:l,text:JSON.stringify(e[t],null,2)};const d=null==o?void 0:o.get(t);if(d){const e=(0,c.w)(d,t,{ignoreStyle:!0});if(e)return{label:l,useBrick:e}}return{label:l,field:t}})):Object.keys(e).map((e=>({label:(0,a.upperFirst)(e),field:e}))),{bricks:[{brick:"eo-descriptions",properties:{themeVariant:"elevo",column:d.length>S?2:1,dataSource:e,list:d}},...p],context:E}}(t,u,d,p);if(e)return;await(null===(n=A.current)||void 0===n?void 0:n.render(r,{context:o}))}catch(e){console.error("Failed to render view:",e)}e||F(!1)})(),()=>{e=!0}}),[t,u,d,p]),o().createElement("div",{className:y.container},m&&o().createElement(k.Bj,(0,n.A)({className:y.loading},w.Xc)),o().createElement("div",{"data-root-id":p,ref:E}))}function N(e){return!e||"object"===e||"array"===e}function I(e,u){return!(0,s.hasOwnProperty)(e,u)||null==e[u]||""===e[u]||Array.isArray(e[u])&&0===e[u].length}function L(e){return e.replace(/[^a-zA-Z0-9_]+/g,"_")}function O(e,u,t){if(null===u||I(e,u))return"";const n=e[u];return N(t)&&(0,s.isObject)(n)?JSON.stringify(n,null,2):String(n)}},81621:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".code-block--B8VszXyv{position:relative}.copy--xhIT7aTz{position:absolute;top:8px;right:8px}.code-block--B8VszXyv:not(:hover) .copy--xhIT7aTz{display:none}.success--y_M0QrXy::part(button){color:var(--color-success)}.failed--WtJHXSP6::part(button){color:var(--color-error)}.code-block--B8VszXyv .mermaid{display:flex;justify-content:center}ai-portal\\.cruise-canvas[hide-mermaid] .code-block--B8VszXyv .mermaid{display:none}",""]),a.locals={"code-block":"code-block--B8VszXyv",copy:"copy--xhIT7aTz",success:"success--y_M0QrXy",failed:"failed--WtJHXSP6"};const i=a},85011:(e,u,t)=>{t.d(u,{f:()=>T});var n=t(18769),r=t.n(n),o=t(53373),a=t.n(o),i=t(23081),s=t(41030),l=t(72591),c=t.n(l),d=t(1740),p=t.n(d),E=t(88128),A=t.n(E),m=t(30855),F=t.n(m),C=t(93051),D=t.n(C),f=t(73656),g=t.n(f),B=t(85036),b={};b.styleTagTransform=g(),b.setAttributes=F(),b.insert=A().bind(null,"head"),b.domAPI=p(),b.insertStyleElement=D(),c()(B.A,b);const v=B.A&&B.A.locals?B.A.locals:void 0;var h=t(36404),y=t(44394),x=t(28599),k=t(97907),w=t(69131),S=t(70558),_=t(31918);function T(e){var u,t;let{views:o}=e;const l=(0,n.useMemo)((()=>(0,s.uniqueId)()),[]),{activeExpandedViewJobId:c,setActiveExpandedViewJobId:d,manuallyUpdatedViews:p}=(0,n.useContext)(_.j),E=(0,n.useRef)(null),A=(0,n.useRef)(null),m=(0,n.useRef)(null),F=c?null!==(u=null==p?void 0:p.get(c))&&void 0!==u?u:null===(t=o.find((e=>e.id===c)))||void 0===t?void 0:t.view:null,C=(0,n.useMemo)((()=>{let e=!1;if(F&&(0,w.F)(F))for(const t of null!==(u=null==F?void 0:F.components)&&void 0!==u?u:[]){var u;switch(t.name){case"Form":case"eo-form":case"Button":case"eo-button":e=!0;break;default:return!1}}else for(const u of null!==(t=null==F?void 0:F.components)&&void 0!==t?t:[]){var t;if(!u.parentComponentId)switch(u.componentName){case"form":case"button":e=!0;break;default:return!1}}return e}),[F]);(0,n.useEffect)((()=>{const e=A.current;if(!e)return;const u=(0,x.d)(l),t=(0,i.unstable_createRoot)(e,{portal:u,supportsUseChildren:!0});return m.current=t,()=>{t.unmount(),u.remove(),m.current=null}}),[l]);const[D,f]=(0,n.useState)(!0);(0,n.useEffect)((()=>{let e=!1;return(async()=>{f(!0);try{var u;const t=F?await((0,w.F)(F)?(0,S.V)(F,{rootId:l,expanded:!0}):(0,h.z)(F,{rootId:l,expanded:!0})):null;if(e)return;await(null===(u=m.current)||void 0===u?void 0:u.render(null!=t?t:[]))}catch(e){console.error("Failed to render view:",e)}e||f(!1)})(),()=>{e=!0}}),[l,F]);const g=(0,n.useCallback)((()=>{d(null)}),[d]);(0,n.useEffect)((()=>{setTimeout((()=>{var e;null===(e=E.current)||void 0===e||e.focus()}),0)}),[]);const B=(0,n.useCallback)((e=>{"Escape"===e.key&&(e.stopPropagation(),g())}),[g]);return r().createElement("div",{className:v["expanded-view"],tabIndex:-1,ref:E,onKeyDown:B},D&&r().createElement("div",{className:v.loading},r().createElement(y.Bj,{lib:"antd",icon:"loading-3-quarters",spinning:!0})),r().createElement("div",{className:a()(v.body,{[v.small]:C}),ref:A,"data-root-id":l}),r().createElement("ul",{className:v.nav},o.map((e=>r().createElement("li",{key:e.id},r().createElement("button",{className:a()(v["nav-button"],{[v.active]:c===e.id})},e.view.title))))),r().createElement(y.Py,{icon:k.LQ,className:v.close,onClick:g}))}},85036:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,".expanded-view--Pl3PL2nR{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1;background:rgba(247,248,250,0.5);-webkit-backdrop-filter:blur(74px);backdrop-filter:blur(74px);padding:106px var(--page-padding-right) 40px var(--page-padding-left);overflow-y:auto;display:flex;flex-direction:column;align-items:center}.nav--dLWwzH3E{position:absolute;top:39px;left:50%;transform:translate(-50%,0);list-style:none;margin:0 0 25px;padding:4px;display:flex;justify-content:start;align-items:center;background:rgba(2,0,102,0.05);box-shadow:inset 0px 1px 2px 0px #cdd1d7;border-radius:21px;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px)}.nav-button--zv2Yj10m{display:flex;align-items:center;height:34px;padding:0 26px;background:none;border:none;color:#595959;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.nav-button--zv2Yj10m:not(:last-child){margin-right:12px}.nav-button--zv2Yj10m.active--MHyqtaKu{background:rgba(255,255,255,0.6);border-radius:20px;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);color:var(--elevo-color-brand);text-shadow:-0.02ex 0 0 currentColor,0.02ex 0 0 currentColor}.nav-button--zv2Yj10m:hover{color:var(--elevo-color-brand)}.body--edodw95r{width:100%;max-width:1556px}.body--edodw95r.small--Y90AL_bt{max-width:804px}.close--yKYpU14x{position:absolute;top:24px;right:24px}.loading--UxfFogUY{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:48px;color:#fff}",""]),a.locals={"expanded-view":"expanded-view--Pl3PL2nR",nav:"nav--dLWwzH3E","nav-button":"nav-button--zv2Yj10m",active:"active--MHyqtaKu",body:"body--edodw95r",small:"small--Y90AL_bt",close:"close--yKYpU14x",loading:"loading--UxfFogUY"};const i=a},85317:(e,u,t)=>{t.d(u,{a:()=>L});var n=t(89575),r=t(18769),o=t.n(r),a=t(41030),i=t(81380),s=t(5414),l=t(87046),c=t(56550),d=t(53373),p=t.n(d),E=t(90079),A=t(72591),m=t.n(A),F=t(1740),C=t.n(F),D=t(88128),f=t.n(D),g=t(30855),B=t.n(g),b=t(93051),v=t.n(b),h=t(73656),y=t.n(h),x=t(55198),k={};k.styleTagTransform=y(),k.setAttributes=B(),k.insert=f().bind(null,"head"),k.domAPI=C(),k.insertStyleElement=v(),m()(x.A,k);const w=x.A&&x.A.locals?x.A.locals:void 0;var S=t(44394);let _=function(e){return e.CONFIRM="CONFIRM",e.ADD_STEP="ADD_STEP",e.RESET_PLAN="RESET_PLAN",e}({});const T="bricks/ai-portal/HumanAdjustPlan",$=E.i18n.getFixedT(null,T);let N;var I=t(31918);function L(e){let{jobId:u,steps:t}=e;const{humanInput:n}=(0,r.useContext)(I.j),[c,d]=(0,r.useState)([]);(0,r.useEffect)((()=>{d((null!=t?t:[]).map((e=>({id:(0,a.uniqueId)("step-"),content:e}))))}),[t]);const p=(0,r.useMemo)((()=>c.map((e=>e.id))),[c]),[E,A]=(0,r.useState)(!1),m=(0,i.FR)((0,i.MS)(i.AN,{activationConstraint:{distance:1}})),F=(0,r.useMemo)((()=>[s.FN,s.Mk]),[]),C=(0,r.useCallback)((e=>{let{active:u,over:t}=e;t&&u.id!==t.id&&(d((e=>{const n=e.findIndex((e=>e.id===u.id)),r=e.findIndex((e=>e.id===t.id));return(0,l.be)(e,n,r)})),A(!0))}),[]),D=(0,r.useCallback)((()=>{n(u,JSON.stringify({type:"plan",steps:c.map((e=>e.content))}))}),[n,u,c]),f=(0,r.useCallback)((()=>{d((null!=t?t:[]).map((e=>({id:(0,a.uniqueId)("step-"),content:e})))),A(!1)}),[t]),g=(0,r.useCallback)((()=>{d((e=>e.concat({id:(0,a.uniqueId)("step-"),content:"",newlyAdded:!0}))),A(!0)}),[]),B=(0,r.useCallback)((e=>{d((u=>u.filter((u=>u.id!==e)))),A(!0)}),[]),b=(0,r.useCallback)(((e,u)=>{d((t=>t.map((t=>t.id===e?{...t,content:u}:t)))),A(!0)}),[]);return o().createElement(o().Fragment,null,o().createElement("div",{className:w.plan},o().createElement(i.Mp,{sensors:m,collisionDetection:i.fp,modifiers:F,onDragEnd:C},o().createElement(l.gB,{items:p,strategy:l._G},o().createElement("ul",{className:w.steps},c.map((e=>o().createElement(O,{key:e.id,id:e.id,content:e.content,newlyAdded:e.newlyAdded,onDelete:B,onUpdateContent:b})))))),o().createElement("div",{className:w.actions},o().createElement("button",{className:w["button-add"],onClick:g},o().createElement(S.Bj,{className:w["button-icon"],lib:"antd",icon:"plus"}),o().createElement("span",{className:w["button-text"]},$(_.ADD_STEP))),o().createElement("button",{className:w["button-reset"],hidden:!E,onClick:f},$(_.RESET_PLAN)))),o().createElement("div",{className:w.toolbar},o().createElement(S.Gx,{type:"primary",themeVariant:"elevo",shape:"round",onClick:D},$(_.CONFIRM))))}function O(e){let{id:u,content:t,newlyAdded:a,onDelete:i,onUpdateContent:s}=e;const{attributes:d,listeners:E,setNodeRef:A,transform:m,transition:F,isDragging:C}=(0,l.gl)({id:u}),D=(0,r.useRef)(null);(0,r.useEffect)((()=>{var e;a&&(null===(e=D.current)||void 0===e||e.focus())}),[]);const f=(0,r.useMemo)((()=>({transform:c.Ks.Transform.toString(m),transition:F})),[m,F]),[g,B]=(0,r.useState)(!1),b=(0,r.useCallback)((()=>{B(!0)}),[]),v=(0,r.useCallback)((e=>{B(!1);const n=e.currentTarget.textContent;null!==n&&t!==n&&s(u,n)}),[t,u,s]),h=(0,r.useCallback)((e=>{"Enter"===e.key&&(e.preventDefault(),e.currentTarget.blur())}),[]);return o().createElement("li",(0,n.A)({ref:A},d,E,{className:p()(w.step,{[w.dragging]:C,[w.editing]:g}),style:f}),o().createElement("span",{className:w.handle},o().createElement(S.Bj,{lib:"antd",icon:"holder"})),o().createElement("span",{className:w.content,ref:D,onFocus:b,onBlur:v,onKeyDown:h,contentEditable:(y=!0,y?function(){if("boolean"!=typeof N){const e=document.createElement("div");e.setAttribute("contenteditable","PLAINTEXT-ONLY"),N="plaintext-only"===e.contentEditable}return N}()?"plaintext-only":"true":"false")},t),o().createElement("span",{className:w.delete},o().createElement(S.Bj,{className:w.delete,lib:"antd",icon:"delete",onClick:()=>i(u)})));var y}(0,E.initializeI18n)(T,{en:{CONFIRM:"Confirm",ADD_STEP:"Add step",RESET_PLAN:"Reset plan"},zh:{CONFIRM:"确认",ADD_STEP:"添加步骤",RESET_PLAN:"重置计划"}})},85620:(e,u,t)=>{t.d(u,{Q:()=>n});const n=(0,t(18769).createContext)({onNodeResize:()=>{},setActiveNodeId:()=>{},hoverOnScrollableContent:!1,setHoverOnScrollableContent:()=>{},setActiveFile:()=>{}})},85993:(e,u,t)=>{t.d(u,{N:()=>k});var n=t(89575),r=t(18769),o=t.n(r),a=t(53373),i=t.n(a),s=t(44394),l=t(72591),c=t.n(l),d=t(1740),p=t.n(d),E=t(88128),A=t.n(E),m=t(30855),F=t.n(m),C=t(93051),D=t.n(C),f=t(73656),g=t.n(f),B=t(81621),b={};b.styleTagTransform=g(),b.setAttributes=F(),b.insert=A().bind(null,"head"),b.domAPI=p(),b.insertStyleElement=D(),c()(B.A,b);const v=B.A&&B.A.locals?B.A.locals:void 0,h={lib:"fa",prefix:"far",icon:"copy"},y={lib:"fa",prefix:"fas",icon:"check"},x={lib:"fa",prefix:"fas",icon:"triangle-exclamation"};function k(e){var u;let{children:t,node:a,...l}=e;const c=(0,r.useRef)(null),d=null===(u=l.className)||void 0===u?void 0:u.includes("language-"),[p,E]=(0,r.useState)("idle"),A=(0,r.useRef)(),m=(0,r.useCallback)((async()=>{var e;clearTimeout(A.current),E("idle");const u=null===(e=c.current)||void 0===e||null===(e=e.querySelector("code"))||void 0===e?void 0:e.textContent;if(u){try{await(0,s.lW)(u),E("success")}catch(e){console.error("Failed to copy code block content to clipboard.",e),E("failed")}A.current=setTimeout((()=>{E("idle")}),2e3)}}),[]);return(0,r.useEffect)((()=>()=>{clearTimeout(A.current)}),[]),o().createElement("div",{className:v["code-block"]},o().createElement("pre",(0,n.A)({},l,{className:l.className,ref:c}),t,d&&o().createElement(s.Gx,{themeVariant:"elevo",className:i()(v.copy,{[v.success]:"success"===p,[v.failed]:"failed"===p}),onClick:m,icon:"success"===p?y:"failed"===p?x:h})))}},91525:(e,u,t)=>{t.d(u,{A:()=>i});var n=t(36758),r=t.n(n),o=t(40935),a=t.n(o)()(r());a.push([e.id,'.shine-text--t2t9tIJp{color:transparent;background:linear-gradient(to right,var(--shine-text-color) 0%,var(--shine-text-color) 40%,var(--shine-text-highlight-color) 50%,var(--shine-text-color) 60%,var(--shine-text-color) 100%);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;animation:shineText--ycIJ4nxc 2s infinite linear}@keyframes shineText--ycIJ4nxc{0%{background-position:-50% 50%}100%{background-position:-250% 50%}}.markdown--t5EHw6k4 a{color:var(--elevo-color-brand)}.markdown--t5EHw6k4 a:hover{color:var(--elevo-color-brand-hover)}.markdown--t5EHw6k4 a:active{color:var(--elevo-color-brand-active)}.markdown--t5EHw6k4 code[class*="language-"],.markdown--t5EHw6k4 pre[class*="language-"]{background:hsl(230,1%,98%);color:hsl(230,8%,24%);font-family:"Fira Code","Fira Mono",Menlo,Consolas,"DejaVu Sans Mono",monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:1.5;-moz-tab-size:2;tab-size:2;-webkit-hyphens:none;hyphens:none;font-size:13px}.markdown--t5EHw6k4 code[class*="language-"]::selection,.markdown--t5EHw6k4 code[class*="language-"] *::selection,.markdown--t5EHw6k4 pre[class*="language-"] *::selection{background:hsl(230,1%,90%);color:inherit}.markdown--t5EHw6k4 pre[class*="language-"]{padding:1em;margin:0.5em 0;overflow-x:auto;border-radius:9px}.markdown--t5EHw6k4 :not(pre) > code[class*="language-"]{padding:0.2em 0.3em;border-radius:9px;white-space:normal}.markdown--t5EHw6k4 .token.comment,.markdown--t5EHw6k4 .token.prolog,.markdown--t5EHw6k4 .token.cdata{color:hsl(230,4%,64%)}.markdown--t5EHw6k4 .token.doctype,.markdown--t5EHw6k4 .token.punctuation,.markdown--t5EHw6k4 .token.entity{color:hsl(230,8%,24%)}.markdown--t5EHw6k4 .token.attr-name,.markdown--t5EHw6k4 .token.class-name,.markdown--t5EHw6k4 .token.boolean,.markdown--t5EHw6k4 .token.constant,.markdown--t5EHw6k4 .token.number,.markdown--t5EHw6k4 .token.atrule{color:hsl(35,99%,36%)}.markdown--t5EHw6k4 .token.keyword{color:hsl(301,63%,40%)}.markdown--t5EHw6k4 .token.property,.markdown--t5EHw6k4 .token.tag,.markdown--t5EHw6k4 .token.symbol,.markdown--t5EHw6k4 .token.deleted,.markdown--t5EHw6k4 .token.important{color:hsl(5,74%,59%)}.markdown--t5EHw6k4 .token.selector,.markdown--t5EHw6k4 .token.string,.markdown--t5EHw6k4 .token.char,.markdown--t5EHw6k4 .token.builtin,.markdown--t5EHw6k4 .token.inserted,.markdown--t5EHw6k4 .token.regex,.markdown--t5EHw6k4 .token.attr-value,.markdown--t5EHw6k4 .token.attr-value > .token.punctuation{color:hsl(119,34%,47%)}.markdown--t5EHw6k4 .token.variable,.markdown--t5EHw6k4 .token.operator,.markdown--t5EHw6k4 .token.function{color:hsl(221,87%,60%)}.markdown--t5EHw6k4 .token.url{color:hsl(198,99%,37%)}.markdown--t5EHw6k4 .token.attr-value > .token.punctuation.attr-equals,.markdown--t5EHw6k4 .token.special-attr > .token.attr-value > .token.value.css{color:hsl(230,8%,24%)}.markdown--t5EHw6k4 .language-css .token.selector{color:hsl(5,74%,59%)}.markdown--t5EHw6k4 .language-css .token.property{color:hsl(230,8%,24%)}.markdown--t5EHw6k4 .language-css .token.function,.markdown--t5EHw6k4 .language-css .token.url > .token.function{color:hsl(198,99%,37%)}.markdown--t5EHw6k4 .language-css .token.url > .token.string.url{color:hsl(119,34%,47%)}.markdown--t5EHw6k4 .language-css .token.important,.markdown--t5EHw6k4 .language-css .token.atrule .token.rule{color:hsl(301,63%,40%)}.markdown--t5EHw6k4 .language-javascript .token.operator{color:hsl(301,63%,40%)}.markdown--t5EHw6k4 .language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation{color:hsl(344,84%,43%)}.markdown--t5EHw6k4 .language-json .token.operator{color:hsl(230,8%,24%)}.markdown--t5EHw6k4 .language-json .token.null.keyword{color:hsl(35,99%,36%)}.markdown--t5EHw6k4 .language-markdown .token.url,.markdown--t5EHw6k4 .language-markdown .token.url > .token.operator,.markdown--t5EHw6k4 .language-markdown .token.url-reference.url > .token.string{color:hsl(230,8%,24%)}.markdown--t5EHw6k4 .language-markdown .token.url > .token.content{color:hsl(221,87%,60%)}.markdown--t5EHw6k4 .language-markdown .token.url > .token.url,.markdown--t5EHw6k4 .language-markdown .token.url-reference.url{color:hsl(198,99%,37%)}.markdown--t5EHw6k4 .language-markdown .token.blockquote.punctuation,.markdown--t5EHw6k4 .language-markdown .token.hr.punctuation{color:hsl(230,4%,64%);font-style:italic}.markdown--t5EHw6k4 .language-markdown .token.code-snippet{color:hsl(119,34%,47%)}.markdown--t5EHw6k4 .language-markdown .token.bold .token.content{color:hsl(35,99%,36%)}.markdown--t5EHw6k4 .language-markdown .token.italic .token.content{color:hsl(301,63%,40%)}.markdown--t5EHw6k4 .language-markdown .token.strike .token.content,.markdown--t5EHw6k4 .language-markdown .token.strike .token.punctuation,.markdown--t5EHw6k4 .language-markdown .token.list.punctuation,.markdown--t5EHw6k4 .language-markdown .token.title.important > .token.punctuation{color:hsl(5,74%,59%)}.markdown--t5EHw6k4 .token.bold{font-weight:bold}.markdown--t5EHw6k4 .token.comment,.markdown--t5EHw6k4 .token.italic{font-style:italic}.markdown--t5EHw6k4 .token.entity{cursor:help}.markdown--t5EHw6k4 .token.namespace{opacity:0.8}.markdown--t5EHw6k4 table{width:100%;overflow-x:auto;border-collapse:collapse}.markdown--t5EHw6k4 tr{border-top:1px solid #ccd1de}.markdown--t5EHw6k4 td,.markdown--t5EHw6k4 th{border:1px solid #ccd1de;padding:6px 13px}.markdown--t5EHw6k4{overflow-wrap:break-word}.markdown--t5EHw6k4:not(:first-child){margin-top:6px}.markdown--t5EHw6k4 p{margin:1em 0}.markdown--t5EHw6k4 > :first-child{margin-top:0}.markdown--t5EHw6k4 > :last-child{margin-bottom:0}.table-container--hekbaxrD{padding:8px 8px 10px;border-radius:12px;border:1px solid #e2e2ec;background:#ffffff}.table-container--hekbaxrD:not(:first-child){margin-top:6px}',""]),a.locals={"shine-text":"shine-text--t2t9tIJp",shineText:"shineText--ycIJ4nxc",markdown:"markdown--t5EHw6k4","table-container":"table-container--hekbaxrD"};const i=a},92449:(e,u,t)=>{t.d(u,{s:()=>I});var n=t(18769),r=t.n(n),o=t(53373),a=t.n(o),i=t(71451),s=t(99126),l=t(90079),c=t(72591),d=t.n(c),p=t(1740),E=t.n(p),A=t(88128),m=t.n(A),F=t(30855),C=t.n(F),D=t(93051),f=t.n(D),g=t(73656),B=t.n(g),b=t(20918),v={};v.styleTagTransform=B(),v.setAttributes=C(),v.insert=m().bind(null,"head"),v.domAPI=E(),v.insertStyleElement=f(),d()(b.A,v);const h=b.A&&b.A.locals?b.A.locals:void 0;var y=t(44394);let x=function(e){return e.PAUSE_THE_TASK="PAUSE_THE_TASK",e.RESUME_THE_TASK="RESUME_THE_TASK",e.CANCEL_THE_TASK="CANCEL_THE_TASK",e.CONFIRM_TO_CANCEL_THE_TASK_TITLE="CONFIRM_TO_CANCEL_THE_TASK_TITLE",e.CONFIRM_TO_CANCEL_THE_TASK_CONTENT="CONFIRM_TO_CANCEL_THE_TASK_CONTENT",e.SEND_MESSAGE="SEND_MESSAGE",e}({});const k="bricks/ai-portal/ChatBox",w=l.i18n.getFixedT(null,k);var S=t(97907),_=t(31918);(0,l.initializeI18n)(k,{en:{PAUSE_THE_TASK:"Pause the task",RESUME_THE_TASK:"Resume the task",CANCEL_THE_TASK:"Cancel the task",CONFIRM_TO_CANCEL_THE_TASK_TITLE:"Are you sure to cancel the task?",CONFIRM_TO_CANCEL_THE_TASK_CONTENT:"The task can not be resumed after been canceled.",SEND_MESSAGE:"Send message"},zh:{PAUSE_THE_TASK:"暂停任务",RESUME_THE_TASK:"恢复任务",CANCEL_THE_TASK:"取消任务",CONFIRM_TO_CANCEL_THE_TASK_TITLE:"确定取消任务吗?",CONFIRM_TO_CANCEL_THE_TASK_CONTENT:"任务取消后将无法再恢复运行。",SEND_MESSAGE:"发送消息"}});const T={lib:"fa",prefix:"far",icon:"circle-pause"},$={lib:"fa",prefix:"far",icon:"circle-stop"},N={lib:"fa",prefix:"far",icon:"circle-play"};function I(e){let{taskState:u,taskDone:t,inputRequiredJobId:o}=e;const l=(0,n.useRef)(null),c=(0,n.useRef)(null),[d,p]=(0,n.useState)(""),E=(0,n.useRef)(""),[A,m]=(0,n.useState)(!1),{humanInput:F,onPause:C,onResume:D,onCancel:f,supports:g}=(0,n.useContext)(_.j),[B,b]=(0,n.useState)(null);(0,n.useEffect)((()=>{b(null)}),[u]);const v=(0,n.useCallback)((()=>{D(),b("toggle")}),[D]),k=(0,n.useCallback)((()=>{C(),b("toggle")}),[C]),I=(0,n.useCallback)((async()=>{try{await(0,y.ui)({type:"confirm",title:w(x.CONFIRM_TO_CANCEL_THE_TASK_TITLE),content:w(x.CONFIRM_TO_CANCEL_THE_TASK_CONTENT)})}catch{return}f(),b("cancel")}),[f]);(0,n.useEffect)((()=>{var e;o&&(null===(e=c.current)||void 0===e||e.focus())}),[o]);const L=(0,n.useCallback)((e=>{(t||o)&&e&&(o?F(o,e):(0,y.ui)({type:"warn",title:"提示",content:"功能暂未实现"}),E.current="",p(""))}),[F,o,t]),O=(0,n.useCallback)((e=>{e.currentTarget.value&&(null==L||L(e.currentTarget.value))}),[L]),P=(0,n.useCallback)((e=>{E.current=e.target.value,p(e.target.value)}),[]),M=(0,n.useCallback)((()=>{null==L||L(E.current)}),[L]);(0,n.useEffect)((()=>{const e=null==l?void 0:l.current;if(!e)return;const u=new s.A((u=>{for(const t of u)t.target===e&&(t.contentBoxSize?t.contentBoxSize[0]?t.contentBoxSize[0].blockSize:t.contentBoxSize.blockSize:t.contentRect.height)>52&&m(!0)}));return u.observe(e),()=>{u.disconnect()}}),[]),(0,n.useEffect)((()=>{d||m(!1)}),[d]);const H=(0,n.useCallback)((e=>{var u;for(const u of e.nativeEvent.composedPath())if(u instanceof HTMLTextAreaElement||u instanceof HTMLButtonElement)return;null===(u=c.current)||void 0===u||u.focus()}),[]);return r().createElement("div",{className:h.container,onClick:H},r().createElement("div",{className:a()(h.box,{[h.wrap]:A})},r().createElement("div",{className:h.input,ref:l},r().createElement(i.e,{containerRef:l,ref:c,value:d,minRows:1,maxRows:4,borderSize:0,paddingSize:16,autoResize:!0,placeholder:w(x.SEND_MESSAGE),submitWhen:"enter-without-shift",onSubmit:O,onChange:P})),r().createElement("div",{className:h.toolbar},t||null==g||!g.intercept?r().createElement("button",{className:h["btn-send"],disabled:!d||!t,onClick:M},r().createElement(y.Bj,{lib:"fa",prefix:"fas",icon:"arrow-up"})):r().createElement(r().Fragment,null,"toggle"===B?r().createElement(y.Py,{icon:S.Xc,disabled:!0}):"paused"===u?r().createElement(y.Py,{icon:N,disabled:!!B,tooltip:B?void 0:w(x.RESUME_THE_TASK),onClick:v}):r().createElement(y.Py,{icon:T,disabled:!!B,tooltip:B?void 0:w(x.PAUSE_THE_TASK),onClick:k}),"cancel"===B?r().createElement(y.Py,{icon:S.Xc,disabled:!0}):r().createElement(y.Py,{icon:$,disabled:!!B,tooltip:B?void 0:w(x.CANCEL_THE_TASK),onClick:I})))))}},92773:(e,u,t)=>{t.d(u,{S:()=>C});var n=t(18769),r=t(57372),o=t(37732),a=t(23081),i=t(41030),s=t(21472),l=t(25017);function c(e){const u=[];let t;for(const n of e){if(t&&t===n.role){const e=u[u.length-1];e.parts=[...e.parts,...n.parts]}else u.push({...n});t=n.role}for(const e of u)e.parts=d(e.parts);return u}function d(e){const u=[];let t,n;for(const a of e){var r,o;"text"===t&&"text"===a.type?u[u.length-1].text+=a.text:"stream"===n&&"data"===a.type&&"stream"===(null===(r=a.data)||void 0===r?void 0:r.type)?u[u.length-1].data.message+=a.data.message:u.push({...a}),t=a.type,n="data"===a.type?null===(o=a.data)||void 0===o?void 0:o.type:void 0}return u}function p(e){if(e)for(const u of e)if("tool"===u.role)for(const e of u.parts)if("text"===e.type)try{const u=JSON.parse(e.text);return u.code?(u.code.includes("<eo-view")?s.b:l.t)(u.code):u}catch{}}function E(e,u){let t=u,n=!1;for(const u of e)if("tool"===u.role)for(const e of u.parts){var r;if("data"===e.type&&"graph"===(null===(r=e.data)||void 0===r?void 0:r.type)){const u=e.data.message;switch(null==u?void 0:u.type){case"component_graph":{const e=[],r=[];for(const t of Object.values(u.data)){var o,a;Array.isArray(t.children)&&(0,i.pull)(t.children,t.id),e.push({type:"node",id:t.id,data:t}),r.push(...null!==(o=null===(a=t.children)||void 0===a?void 0:a.map((e=>({type:"edge",source:t.id,target:e}))))&&void 0!==o?o:[])}t={nodes:e,edges:r,initial:!0},n=!0;break}case"component_graph_node":if(t){const e=t.nodes.findIndex((e=>e.id===u.data.component));if(-1!==e){const n=t.nodes[e];n.data.status!==u.data.status&&(t={nodes:[...t.nodes.slice(0,e),{...n,data:{...n.data,status:u.data.status}},...t.nodes.slice(e+1)],edges:t.edges,initial:!1})}n=!0}}}}return n?t:void 0}const A=(m={task:(e,u)=>{switch(u.type){case"sse":{const t=(0,i.pick)(u.payload,["id","requirement","state","title","startTime","endTime","plan"]);return u.isInitial?t:e&&(0,i.isMatchWith)(e,t,i.isEqual)?e:{...e,...t}}case"reset":return null}return e},jobs:(e,u)=>{switch(u.type){case"sse":{var t;const C=u.payload.jobs;let D=u.isInitial?[]:e;if(!Array.isArray(C)||0===C.length)return D;const f=null===(t=e.findLast((e=>!!e.componentGraph)))||void 0===t?void 0:t.componentGraph;for(const e of C){var n,r;const u=null!==(n=null===(r=D)||void 0===r?void 0:r.findIndex((u=>u.id===e.id)))&&void 0!==n?n:-1,{messages:t,toolCall:C}=e;if("string"==typeof(null==C?void 0:C.arguments)){C.originalArguments=C.arguments;try{C.arguments=JSON.parse(C.arguments)}catch(e){C.arguments={},C.argumentsParseFailed=!0,C.argumentsParseError=e}}if(-1===u){var o,a;const u={...e};if(("get_view_with_info"===(null===(o=u.toolCall)||void 0===o?void 0:o.name)||"create_view"===(null===(a=u.toolCall)||void 0===a?void 0:a.name))&&"completed"===u.state){const e=p(t);e&&(u.generatedView=e)}const n=E(null!=t?t:[],f);n&&(u.componentGraph=n),D=Array.isArray(t)&&t.length>0?[...D,{...u,messages:c(t)}]:[...D,u]}else{var s,l,d,A,m;const n=D[u],r=(0,i.pick)(e,["id","upstream","parent","state","instruction","toolCall","isError","hidden","startTime","endTime"]);var F;if(Array.isArray(t)&&t.length>0&&(r.messages=c([...null!==(F=n.messages)&&void 0!==F?F:[],...t])),!n.generatedView&&["get_view_with_info","create_view"].includes(null!==(s=null===(l=r.toolCall)||void 0===l?void 0:l.name)&&void 0!==s?s:null===(d=n.toolCall)||void 0===d?void 0:d.name)&&"completed"===(null!==(A=r.state)&&void 0!==A?A:n.state)){const e=p(t);e&&(r.generatedView=e)}const o=E([...null!==(m=n.messages)&&void 0!==m?m:[],...null!=t?t:[]],f);o&&(r.componentGraph=o),(0,i.isMatchWith)(n,r,i.isEqual)||(D=[...D.slice(0,u),{...n,...r},...D.slice(u+1)])}}return D}case"reset":return 0===e.length?e:[]}return e},error:(e,u)=>{switch(u.type){case"sse":{const t=u.payload.error;return null===e&&"string"==typeof t?t:e}case"reset":return null}return e}},(e,u)=>Object.fromEntries(Object.entries(m).map((t=>{let[n,r]=t;return[n,r(e[n],u)]}))));var m;const F=500;function C(e,u,t){const[{task:i,jobs:s,error:l},c]=(0,n.useReducer)(A,null,(()=>({task:null,jobs:[],error:null}))),d=(0,n.useRef)(),p=(0,n.useRef)(),E=(0,n.useRef)(null),m=(0,n.useRef)(u),C=(0,n.useRef)(1e3*(null!=t?t:2)),D=(0,n.useRef)(null),f=(0,n.useCallback)((()=>{m.current=!1,D.current&&(D.current(),D.current=null)}),[]),g=(0,n.useCallback)((async()=>{m.current=!0;let e,u=!0;for(const t of E.current){if(m.current){let n=C.current;t.time&&e&&(n=Math.min(Math.max(F,1e3*(t.time-e)),n)),e=t.time,u||(await new Promise((e=>{D.current=e,setTimeout(e,n)})),D.current=null)}c({type:"sse",payload:t,isInitial:u}),u=!1}}),[]);return(0,n.useEffect)((()=>{if(c({type:"reset"}),d.current=void 0,!e)return;let u,t=!1,n=!1;const i=async()=>{if(!n){n=!0,E.current=[],u=new AbortController;try{const r=await(0,o.createSSEStream)(`${(0,a.getBasePath)()}api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/${e}`,{signal:u.signal}),i=await r;let s,l=!0;for await(const e of i){if(t)return void(n=!1);if(m.current){let u=C.current;e.time&&s&&(u=Math.min(Math.max(F,1e3*(e.time-s)),u)),s=e.time,l||(await new Promise((e=>{D.current=e,setTimeout(e,u)})),D.current=null)}E.current.push(e),c({type:"sse",payload:e,isInitial:l}),l=!1}}catch(e){console.error("sse failed",e),(0,a.handleHttpError)(e)}finally{n=!1}}};return p.current=i,d.current=async(u,t)=>{try{await r.http.post(`${(0,a.getBasePath)()}api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/${e}/job/${u}`,{input:t})}catch(e){return console.error("human input failed",e),void(0,a.handleHttpError)(e)}i()},i(),()=>{var e;t=!0,null===(e=u)||void 0===e||e.abort()}}),[e]),{task:i,jobs:s,error:l,humanInputRef:d,resumedRef:p,skipToResults:f,watchAgain:g}}},97907:(e,u,t)=>{t.d(u,{$g:()=>l,LQ:()=>a,QB:()=>n,Rq:()=>s,X4:()=>r,Xc:()=>i,Z5:()=>o});const n=["completed","failed","canceled"],r=[...n,"paused"],o=[...r,"input-required"],a={lib:"antd",icon:"close"},i={lib:"antd",icon:"loading-3-quarters",spinning:!0},s={lib:"antd",icon:"partition"},l={lib:"antd",icon:"message"}}}]);
2
+ //# sourceMappingURL=3624.e9311500.js.map