@next-bricks/ai-portal 0.46.1 → 0.46.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 +17 -17
- package/dist/chunks/{7570.a411e1f2.js → 7570.708bdafd.js} +2 -2
- package/dist/chunks/{7570.a411e1f2.js.map → 7570.708bdafd.js.map} +1 -1
- package/dist/chunks/{7954.48580daf.js → 7954.c1753f33.js} +2 -2
- package/dist/chunks/7954.c1753f33.js.map +1 -0
- package/dist/chunks/8882.30a26232.js +3 -0
- package/dist/chunks/8882.30a26232.js.map +1 -0
- package/dist/chunks/9328.c93d9ac1.js +2 -0
- package/dist/chunks/9328.c93d9ac1.js.map +1 -0
- package/dist/chunks/{9474.094511f1.js → 9474.59a27cc1.js} +2 -2
- package/dist/chunks/9474.59a27cc1.js.map +1 -0
- package/dist/chunks/main.4b1fba76.js +2 -0
- package/dist/chunks/main.4b1fba76.js.map +1 -0
- package/dist/examples.json +12 -12
- package/dist/index.56b83bc9.js +2 -0
- package/dist/index.56b83bc9.js.map +1 -0
- package/dist/manifest.json +143 -143
- package/dist/types.json +309 -309
- package/dist-types/cruise-canvas/NodeRequirement/NodeRequirement.d.ts +2 -1
- package/dist-types/cruise-canvas/interfaces.d.ts +1 -0
- package/dist-types/shared/interfaces.d.ts +1 -0
- package/package.json +2 -2
- package/dist/chunks/1097.56d301a5.js +0 -3
- package/dist/chunks/1097.56d301a5.js.LICENSE.txt +0 -9
- package/dist/chunks/1097.56d301a5.js.map +0 -1
- package/dist/chunks/6862.32630cc8.js +0 -3
- package/dist/chunks/6862.32630cc8.js.map +0 -1
- package/dist/chunks/7954.48580daf.js.map +0 -1
- package/dist/chunks/9328.4ac010e3.js +0 -2
- package/dist/chunks/9328.4ac010e3.js.map +0 -1
- package/dist/chunks/9474.094511f1.js.map +0 -1
- package/dist/chunks/9848.ab8ad988.js +0 -3
- package/dist/chunks/9848.ab8ad988.js.LICENSE.txt +0 -1
- package/dist/chunks/9848.ab8ad988.js.map +0 -1
- package/dist/chunks/main.8ec249fd.js +0 -2
- package/dist/chunks/main.8ec249fd.js.map +0 -1
- package/dist/index.609de131.js +0 -2
- package/dist/index.609de131.js.map +0 -1
- /package/dist/chunks/{6862.32630cc8.js.LICENSE.txt → 8882.30a26232.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunks/8882.30a26232.js","mappings":";2IA4DAA,EAAOC,QAjBP,SAAgBC,GACd,GAAwB,oBAAbC,SACT,MAAO,CACLC,OAAQ,WAAmB,EAC3BC,OAAQ,WAAmB,GAG/B,IAAIC,EAAeJ,EAAQK,mBAAmBL,GAC9C,MAAO,CACLE,OAAQ,SAAgBI,IAjD5B,SAAeF,EAAcJ,EAASM,GACpC,IAAIC,EAAM,GACND,EAAIE,WACND,GAAO,cAAcE,OAAOH,EAAIE,SAAU,QAExCF,EAAII,QACNH,GAAO,UAAUE,OAAOH,EAAII,MAAO,OAErC,IAAIC,OAAiC,IAAdL,EAAIM,MACvBD,IACFJ,GAAO,SAASE,OAAOH,EAAIM,MAAMC,OAAS,EAAI,IAAIJ,OAAOH,EAAIM,OAAS,GAAI,OAE5EL,GAAOD,EAAIC,IACPI,IACFJ,GAAO,KAELD,EAAII,QACNH,GAAO,KAELD,EAAIE,WACND,GAAO,KAET,IAAIO,EAAYR,EAAIQ,UAChBA,GAA6B,oBAATC,OACtBR,GAAO,uDAAuDE,OAAOM,KAAKC,SAASC,mBAAmBC,KAAKC,UAAUL,MAAe,QAKtId,EAAQoB,kBAAkBb,EAAKH,EAAcJ,EAAQA,QACvD,CAoBMqB,CAAMjB,EAAcJ,EAASM,EAC/B,EACAH,OAAQ,YArBZ,SAA4BC,GAE1B,GAAgC,OAA5BA,EAAakB,WACf,OAAO,EAETlB,EAAakB,WAAWC,YAAYnB,EACtC,CAgBMoB,CAAmBpB,EACrB,EAEJ,6DCrDWqB,EAAwC,WACjD,IAAIC,GAAO,QAAk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,EAASuP,EAAQC,EAAOC,EAAQ,QAASQ,EACnE,CACAT,OAAM1P,EACR,GACF,CACF,6BC3BA,IAAIoQ,EAAO,CAAC,EA+BZ7W,EAAOC,QAPP,SAA0B6W,EAAQC,GAChC,IAAIrP,EAtBN,SAAmBA,GACjB,QAA4B,IAAjBmP,EAAKnP,GAAyB,CACvC,IAAIsP,EAAc7W,SAAS8W,cAAcvP,GAGzC,GAAIwP,OAAOC,mBAAqBH,aAAuBE,OAAOC,kBAC5D,IAGEH,EAAcA,EAAYI,gBAAgBC,IAC5C,CAAE,MAAO3M,GAEPsM,EAAc,IAChB,CAEFH,EAAKnP,GAAUsP,CACjB,CACA,OAAOH,EAAKnP,EACd,CAIe4P,CAAUR,GACvB,IAAKpP,EACH,MAAM,IAAIrD,MAAM,2GAElBqD,EAAOoO,YAAYiB,EACrB,aCvBA/W,EAAOC,QANP,SAA4BC,GAC1B,IAAIqX,EAAUpX,SAASqX,cAAc,SAGrC,OAFAtX,EAAQuX,cAAcF,EAASrX,EAAQwX,YACvCxX,EAAQ4W,OAAOS,EAASrX,EAAQA,SACzBqX,CACT","sources":["webpack:///../../node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack:///../../node_modules/@next-api-sdk/cmdb-sdk/dist/esm/api/cmdb/instance/postSearchV3.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack:///../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack:///../../node_modules/comlink/dist/esm/comlink.mjs","webpack:///../../node_modules/@babel/runtime/helpers/esm/objectSpread2.js","webpack:///../../node_modules/@next-api-sdk/cmdb-sdk/dist/esm/api/cmdb/instance/getDetail.js","webpack:///../../node_modules/@babel/types/lib/index.js","webpack:///../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack:///../../node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","webpack:///../../node_modules/style-loader/dist/runtime/insertBySelector.js","webpack:///../../node_modules/style-loader/dist/runtime/insertStyleElement.js"],"sourcesContent":["\"use strict\";\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;","import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport { http } from \"@next-core/http\";\n/**\n * @description 搜索实例V3 (支持多属性排序)\n * @endpoint POST /v3/object/:objectId/instance/_search\n */\nexport var InstanceApi_postSearchV3 = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(function* (objectId, data, options) {\n return (/**! @contract easyops.api.cmdb.instance.PostSearchV3@1.1.0 */(yield http.post(\"api/gateway/cmdb.instance.PostSearchV3/v3/object/\".concat(objectId, \"/instance/_search\"), data, options)).data\n );\n });\n return function InstanceApi_postSearchV3(_x, _x2, _x3) {\n return _ref.apply(this, arguments);\n };\n}();\n//# sourceMappingURL=postSearchV3.js.map","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;","/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nconst proxyMarker = Symbol(\"Comlink.proxy\");\nconst createEndpoint = Symbol(\"Comlink.endpoint\");\nconst releaseProxy = Symbol(\"Comlink.releaseProxy\");\nconst finalizer = Symbol(\"Comlink.finalizer\");\nconst throwMarker = Symbol(\"Comlink.thrown\");\nconst isObject = (val) => (typeof val === \"object\" && val !== null) || typeof val === \"function\";\n/**\n * Internal transfer handle to handle objects marked to proxy.\n */\nconst proxyTransferHandler = {\n canHandle: (val) => isObject(val) && val[proxyMarker],\n serialize(obj) {\n const { port1, port2 } = new MessageChannel();\n expose(obj, port1);\n return [port2, [port2]];\n },\n deserialize(port) {\n port.start();\n return wrap(port);\n },\n};\n/**\n * Internal transfer handler to handle thrown exceptions.\n */\nconst throwTransferHandler = {\n canHandle: (value) => isObject(value) && throwMarker in value,\n serialize({ value }) {\n let serialized;\n if (value instanceof Error) {\n serialized = {\n isError: true,\n value: {\n message: value.message,\n name: value.name,\n stack: value.stack,\n },\n };\n }\n else {\n serialized = { isError: false, value };\n }\n return [serialized, []];\n },\n deserialize(serialized) {\n if (serialized.isError) {\n throw Object.assign(new Error(serialized.value.message), serialized.value);\n }\n throw serialized.value;\n },\n};\n/**\n * Allows customizing the serialization of certain values.\n */\nconst transferHandlers = new Map([\n [\"proxy\", proxyTransferHandler],\n [\"throw\", throwTransferHandler],\n]);\nfunction isAllowedOrigin(allowedOrigins, origin) {\n for (const allowedOrigin of allowedOrigins) {\n if (origin === allowedOrigin || allowedOrigin === \"*\") {\n return true;\n }\n if (allowedOrigin instanceof RegExp && allowedOrigin.test(origin)) {\n return true;\n }\n }\n return false;\n}\nfunction expose(obj, ep = globalThis, allowedOrigins = [\"*\"]) {\n ep.addEventListener(\"message\", function callback(ev) {\n if (!ev || !ev.data) {\n return;\n }\n if (!isAllowedOrigin(allowedOrigins, ev.origin)) {\n console.warn(`Invalid origin '${ev.origin}' for comlink proxy`);\n return;\n }\n const { id, type, path } = Object.assign({ path: [] }, ev.data);\n const argumentList = (ev.data.argumentList || []).map(fromWireValue);\n let returnValue;\n try {\n const parent = path.slice(0, -1).reduce((obj, prop) => obj[prop], obj);\n const rawValue = path.reduce((obj, prop) => obj[prop], obj);\n switch (type) {\n case \"GET\" /* MessageType.GET */:\n {\n returnValue = rawValue;\n }\n break;\n case \"SET\" /* MessageType.SET */:\n {\n parent[path.slice(-1)[0]] = fromWireValue(ev.data.value);\n returnValue = true;\n }\n break;\n case \"APPLY\" /* MessageType.APPLY */:\n {\n returnValue = rawValue.apply(parent, argumentList);\n }\n break;\n case \"CONSTRUCT\" /* MessageType.CONSTRUCT */:\n {\n const value = new rawValue(...argumentList);\n returnValue = proxy(value);\n }\n break;\n case \"ENDPOINT\" /* MessageType.ENDPOINT */:\n {\n const { port1, port2 } = new MessageChannel();\n expose(obj, port2);\n returnValue = transfer(port1, [port1]);\n }\n break;\n case \"RELEASE\" /* MessageType.RELEASE */:\n {\n returnValue = undefined;\n }\n break;\n default:\n return;\n }\n }\n catch (value) {\n returnValue = { value, [throwMarker]: 0 };\n }\n Promise.resolve(returnValue)\n .catch((value) => {\n return { value, [throwMarker]: 0 };\n })\n .then((returnValue) => {\n const [wireValue, transferables] = toWireValue(returnValue);\n ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);\n if (type === \"RELEASE\" /* MessageType.RELEASE */) {\n // detach and deactive after sending release response above.\n ep.removeEventListener(\"message\", callback);\n closeEndPoint(ep);\n if (finalizer in obj && typeof obj[finalizer] === \"function\") {\n obj[finalizer]();\n }\n }\n })\n .catch((error) => {\n // Send Serialization Error To Caller\n const [wireValue, transferables] = toWireValue({\n value: new TypeError(\"Unserializable return value\"),\n [throwMarker]: 0,\n });\n ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);\n });\n });\n if (ep.start) {\n ep.start();\n }\n}\nfunction isMessagePort(endpoint) {\n return endpoint.constructor.name === \"MessagePort\";\n}\nfunction closeEndPoint(endpoint) {\n if (isMessagePort(endpoint))\n endpoint.close();\n}\nfunction wrap(ep, target) {\n const pendingListeners = new Map();\n ep.addEventListener(\"message\", function handleMessage(ev) {\n const { data } = ev;\n if (!data || !data.id) {\n return;\n }\n const resolver = pendingListeners.get(data.id);\n if (!resolver) {\n return;\n }\n try {\n resolver(data);\n }\n finally {\n pendingListeners.delete(data.id);\n }\n });\n return createProxy(ep, pendingListeners, [], target);\n}\nfunction throwIfProxyReleased(isReleased) {\n if (isReleased) {\n throw new Error(\"Proxy has been released and is not useable\");\n }\n}\nfunction releaseEndpoint(ep) {\n return requestResponseMessage(ep, new Map(), {\n type: \"RELEASE\" /* MessageType.RELEASE */,\n }).then(() => {\n closeEndPoint(ep);\n });\n}\nconst proxyCounter = new WeakMap();\nconst proxyFinalizers = \"FinalizationRegistry\" in globalThis &&\n new FinalizationRegistry((ep) => {\n const newCount = (proxyCounter.get(ep) || 0) - 1;\n proxyCounter.set(ep, newCount);\n if (newCount === 0) {\n releaseEndpoint(ep);\n }\n });\nfunction registerProxy(proxy, ep) {\n const newCount = (proxyCounter.get(ep) || 0) + 1;\n proxyCounter.set(ep, newCount);\n if (proxyFinalizers) {\n proxyFinalizers.register(proxy, ep, proxy);\n }\n}\nfunction unregisterProxy(proxy) {\n if (proxyFinalizers) {\n proxyFinalizers.unregister(proxy);\n }\n}\nfunction createProxy(ep, pendingListeners, path = [], target = function () { }) {\n let isProxyReleased = false;\n const proxy = new Proxy(target, {\n get(_target, prop) {\n throwIfProxyReleased(isProxyReleased);\n if (prop === releaseProxy) {\n return () => {\n unregisterProxy(proxy);\n releaseEndpoint(ep);\n pendingListeners.clear();\n isProxyReleased = true;\n };\n }\n if (prop === \"then\") {\n if (path.length === 0) {\n return { then: () => proxy };\n }\n const r = requestResponseMessage(ep, pendingListeners, {\n type: \"GET\" /* MessageType.GET */,\n path: path.map((p) => p.toString()),\n }).then(fromWireValue);\n return r.then.bind(r);\n }\n return createProxy(ep, pendingListeners, [...path, prop]);\n },\n set(_target, prop, rawValue) {\n throwIfProxyReleased(isProxyReleased);\n // FIXME: ES6 Proxy Handler `set` methods are supposed to return a\n // boolean. To show good will, we return true asynchronously ¯\\_(ツ)_/¯\n const [value, transferables] = toWireValue(rawValue);\n return requestResponseMessage(ep, pendingListeners, {\n type: \"SET\" /* MessageType.SET */,\n path: [...path, prop].map((p) => p.toString()),\n value,\n }, transferables).then(fromWireValue);\n },\n apply(_target, _thisArg, rawArgumentList) {\n throwIfProxyReleased(isProxyReleased);\n const last = path[path.length - 1];\n if (last === createEndpoint) {\n return requestResponseMessage(ep, pendingListeners, {\n type: \"ENDPOINT\" /* MessageType.ENDPOINT */,\n }).then(fromWireValue);\n }\n // We just pretend that `bind()` didn’t happen.\n if (last === \"bind\") {\n return createProxy(ep, pendingListeners, path.slice(0, -1));\n }\n const [argumentList, transferables] = processArguments(rawArgumentList);\n return requestResponseMessage(ep, pendingListeners, {\n type: \"APPLY\" /* MessageType.APPLY */,\n path: path.map((p) => p.toString()),\n argumentList,\n }, transferables).then(fromWireValue);\n },\n construct(_target, rawArgumentList) {\n throwIfProxyReleased(isProxyReleased);\n const [argumentList, transferables] = processArguments(rawArgumentList);\n return requestResponseMessage(ep, pendingListeners, {\n type: \"CONSTRUCT\" /* MessageType.CONSTRUCT */,\n path: path.map((p) => p.toString()),\n argumentList,\n }, transferables).then(fromWireValue);\n },\n });\n registerProxy(proxy, ep);\n return proxy;\n}\nfunction myFlat(arr) {\n return Array.prototype.concat.apply([], arr);\n}\nfunction processArguments(argumentList) {\n const processed = argumentList.map(toWireValue);\n return [processed.map((v) => v[0]), myFlat(processed.map((v) => v[1]))];\n}\nconst transferCache = new WeakMap();\nfunction transfer(obj, transfers) {\n transferCache.set(obj, transfers);\n return obj;\n}\nfunction proxy(obj) {\n return Object.assign(obj, { [proxyMarker]: true });\n}\nfunction windowEndpoint(w, context = globalThis, targetOrigin = \"*\") {\n return {\n postMessage: (msg, transferables) => w.postMessage(msg, targetOrigin, transferables),\n addEventListener: context.addEventListener.bind(context),\n removeEventListener: context.removeEventListener.bind(context),\n };\n}\nfunction toWireValue(value) {\n for (const [name, handler] of transferHandlers) {\n if (handler.canHandle(value)) {\n const [serializedValue, transferables] = handler.serialize(value);\n return [\n {\n type: \"HANDLER\" /* WireValueType.HANDLER */,\n name,\n value: serializedValue,\n },\n transferables,\n ];\n }\n }\n return [\n {\n type: \"RAW\" /* WireValueType.RAW */,\n value,\n },\n transferCache.get(value) || [],\n ];\n}\nfunction fromWireValue(value) {\n switch (value.type) {\n case \"HANDLER\" /* WireValueType.HANDLER */:\n return transferHandlers.get(value.name).deserialize(value.value);\n case \"RAW\" /* WireValueType.RAW */:\n return value.value;\n }\n}\nfunction requestResponseMessage(ep, pendingListeners, msg, transfers) {\n return new Promise((resolve) => {\n const id = generateUUID();\n pendingListeners.set(id, resolve);\n if (ep.start) {\n ep.start();\n }\n ep.postMessage(Object.assign({ id }, msg), transfers);\n });\n}\nfunction generateUUID() {\n return new Array(4)\n .fill(0)\n .map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16))\n .join(\"-\");\n}\n\nexport { createEndpoint, expose, finalizer, proxy, proxyMarker, releaseProxy, transfer, transferHandlers, windowEndpoint, wrap };\n//# sourceMappingURL=comlink.mjs.map\n","import defineProperty from \"./defineProperty.js\";\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nexport default function _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}","import _objectSpread from \"@babel/runtime/helpers/objectSpread2\";\nimport _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport { http } from \"@next-core/http\";\n/**\n * @description 获取实例详情\n * @endpoint GET /object/:objectId/instance/:instanceId\n */\nexport var InstanceApi_getDetail = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(function* (objectId, instanceId, params, options) {\n return (/**! @contract easyops.api.cmdb.instance.GetDetail@1.0.0 */(yield http.get(\"api/gateway/cmdb.instance.GetDetail/object/\".concat(objectId, \"/instance/\").concat(instanceId), _objectSpread(_objectSpread({}, options), {}, {\n params\n }))).data\n );\n });\n return function InstanceApi_getDetail(_x, _x2, _x3, _x4) {\n return _ref.apply(this, arguments);\n };\n}();\n//# sourceMappingURL=getDetail.js.map","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {\n react: true,\n assertNode: true,\n createTypeAnnotationBasedOnTypeof: true,\n createUnionTypeAnnotation: true,\n createFlowUnionType: true,\n createTSUnionType: true,\n cloneNode: true,\n clone: true,\n cloneDeep: true,\n cloneDeepWithoutLoc: true,\n cloneWithoutLoc: true,\n addComment: true,\n addComments: true,\n inheritInnerComments: true,\n inheritLeadingComments: true,\n inheritsComments: true,\n inheritTrailingComments: true,\n removeComments: true,\n ensureBlock: true,\n toBindingIdentifierName: true,\n toBlock: true,\n toComputedKey: true,\n toExpression: true,\n toIdentifier: true,\n toKeyAlias: true,\n toStatement: true,\n valueToNode: true,\n appendToMemberExpression: true,\n inherits: true,\n prependToMemberExpression: true,\n removeProperties: true,\n removePropertiesDeep: true,\n removeTypeDuplicates: true,\n getAssignmentIdentifiers: true,\n getBindingIdentifiers: true,\n getOuterBindingIdentifiers: true,\n getFunctionName: true,\n traverse: true,\n traverseFast: true,\n shallowEqual: true,\n is: true,\n isBinding: true,\n isBlockScoped: true,\n isImmutable: true,\n isLet: true,\n isNode: true,\n isNodesEquivalent: true,\n isPlaceholderType: true,\n isReferenced: true,\n isScope: true,\n isSpecifierDefault: true,\n isType: true,\n isValidES3Identifier: true,\n isValidIdentifier: true,\n isVar: true,\n matchesPattern: true,\n validate: true,\n buildMatchMemberExpression: true,\n __internal__deprecationWarning: true\n};\nObject.defineProperty(exports, \"__internal__deprecationWarning\", {\n enumerable: true,\n get: function () {\n return _deprecationWarning.default;\n }\n});\nObject.defineProperty(exports, \"addComment\", {\n enumerable: true,\n get: function () {\n return _addComment.default;\n }\n});\nObject.defineProperty(exports, \"addComments\", {\n enumerable: true,\n get: function () {\n return _addComments.default;\n }\n});\nObject.defineProperty(exports, \"appendToMemberExpression\", {\n enumerable: true,\n get: function () {\n return _appendToMemberExpression.default;\n }\n});\nObject.defineProperty(exports, \"assertNode\", {\n enumerable: true,\n get: function () {\n return _assertNode.default;\n }\n});\nObject.defineProperty(exports, \"buildMatchMemberExpression\", {\n enumerable: true,\n get: function () {\n return _buildMatchMemberExpression.default;\n }\n});\nObject.defineProperty(exports, \"clone\", {\n enumerable: true,\n get: function () {\n return _clone.default;\n }\n});\nObject.defineProperty(exports, \"cloneDeep\", {\n enumerable: true,\n get: function () {\n return _cloneDeep.default;\n }\n});\nObject.defineProperty(exports, \"cloneDeepWithoutLoc\", {\n enumerable: true,\n get: function () {\n return _cloneDeepWithoutLoc.default;\n }\n});\nObject.defineProperty(exports, \"cloneNode\", {\n enumerable: true,\n get: function () {\n return _cloneNode.default;\n }\n});\nObject.defineProperty(exports, \"cloneWithoutLoc\", {\n enumerable: true,\n get: function () {\n return _cloneWithoutLoc.default;\n }\n});\nObject.defineProperty(exports, \"createFlowUnionType\", {\n enumerable: true,\n get: function () {\n return _createFlowUnionType.default;\n }\n});\nObject.defineProperty(exports, \"createTSUnionType\", {\n enumerable: true,\n get: function () {\n return _createTSUnionType.default;\n }\n});\nObject.defineProperty(exports, \"createTypeAnnotationBasedOnTypeof\", {\n enumerable: true,\n get: function () {\n return _createTypeAnnotationBasedOnTypeof.default;\n }\n});\nObject.defineProperty(exports, \"createUnionTypeAnnotation\", {\n enumerable: true,\n get: function () {\n return _createFlowUnionType.default;\n }\n});\nObject.defineProperty(exports, \"ensureBlock\", {\n enumerable: true,\n get: function () {\n return _ensureBlock.default;\n }\n});\nObject.defineProperty(exports, \"getAssignmentIdentifiers\", {\n enumerable: true,\n get: function () {\n return _getAssignmentIdentifiers.default;\n }\n});\nObject.defineProperty(exports, \"getBindingIdentifiers\", {\n enumerable: true,\n get: function () {\n return _getBindingIdentifiers.default;\n }\n});\nObject.defineProperty(exports, \"getFunctionName\", {\n enumerable: true,\n get: function () {\n return _getFunctionName.default;\n }\n});\nObject.defineProperty(exports, \"getOuterBindingIdentifiers\", {\n enumerable: true,\n get: function () {\n return _getOuterBindingIdentifiers.default;\n }\n});\nObject.defineProperty(exports, \"inheritInnerComments\", {\n enumerable: true,\n get: function () {\n return _inheritInnerComments.default;\n }\n});\nObject.defineProperty(exports, \"inheritLeadingComments\", {\n enumerable: true,\n get: function () {\n return _inheritLeadingComments.default;\n }\n});\nObject.defineProperty(exports, \"inheritTrailingComments\", {\n enumerable: true,\n get: function () {\n return _inheritTrailingComments.default;\n }\n});\nObject.defineProperty(exports, \"inherits\", {\n enumerable: true,\n get: function () {\n return _inherits.default;\n }\n});\nObject.defineProperty(exports, \"inheritsComments\", {\n enumerable: true,\n get: function () {\n return _inheritsComments.default;\n }\n});\nObject.defineProperty(exports, \"is\", {\n enumerable: true,\n get: function () {\n return _is.default;\n }\n});\nObject.defineProperty(exports, \"isBinding\", {\n enumerable: true,\n get: function () {\n return _isBinding.default;\n }\n});\nObject.defineProperty(exports, \"isBlockScoped\", {\n enumerable: true,\n get: function () {\n return _isBlockScoped.default;\n }\n});\nObject.defineProperty(exports, \"isImmutable\", {\n enumerable: true,\n get: function () {\n return _isImmutable.default;\n }\n});\nObject.defineProperty(exports, \"isLet\", {\n enumerable: true,\n get: function () {\n return _isLet.default;\n }\n});\nObject.defineProperty(exports, \"isNode\", {\n enumerable: true,\n get: function () {\n return _isNode.default;\n }\n});\nObject.defineProperty(exports, \"isNodesEquivalent\", {\n enumerable: true,\n get: function () {\n return _isNodesEquivalent.default;\n }\n});\nObject.defineProperty(exports, \"isPlaceholderType\", {\n enumerable: true,\n get: function () {\n return _isPlaceholderType.default;\n }\n});\nObject.defineProperty(exports, \"isReferenced\", {\n enumerable: true,\n get: function () {\n return _isReferenced.default;\n }\n});\nObject.defineProperty(exports, \"isScope\", {\n enumerable: true,\n get: function () {\n return _isScope.default;\n }\n});\nObject.defineProperty(exports, \"isSpecifierDefault\", {\n enumerable: true,\n get: function () {\n return _isSpecifierDefault.default;\n }\n});\nObject.defineProperty(exports, \"isType\", {\n enumerable: true,\n get: function () {\n return _isType.default;\n }\n});\nObject.defineProperty(exports, \"isValidES3Identifier\", {\n enumerable: true,\n get: function () {\n return _isValidES3Identifier.default;\n }\n});\nObject.defineProperty(exports, \"isValidIdentifier\", {\n enumerable: true,\n get: function () {\n return _isValidIdentifier.default;\n }\n});\nObject.defineProperty(exports, \"isVar\", {\n enumerable: true,\n get: function () {\n return _isVar.default;\n }\n});\nObject.defineProperty(exports, \"matchesPattern\", {\n enumerable: true,\n get: function () {\n return _matchesPattern.default;\n }\n});\nObject.defineProperty(exports, \"prependToMemberExpression\", {\n enumerable: true,\n get: function () {\n return _prependToMemberExpression.default;\n }\n});\nexports.react = void 0;\nObject.defineProperty(exports, \"removeComments\", {\n enumerable: true,\n get: function () {\n return _removeComments.default;\n }\n});\nObject.defineProperty(exports, \"removeProperties\", {\n enumerable: true,\n get: function () {\n return _removeProperties.default;\n }\n});\nObject.defineProperty(exports, \"removePropertiesDeep\", {\n enumerable: true,\n get: function () {\n return _removePropertiesDeep.default;\n }\n});\nObject.defineProperty(exports, \"removeTypeDuplicates\", {\n enumerable: true,\n get: function () {\n return _removeTypeDuplicates.default;\n }\n});\nObject.defineProperty(exports, \"shallowEqual\", {\n enumerable: true,\n get: function () {\n return _shallowEqual.default;\n }\n});\nObject.defineProperty(exports, \"toBindingIdentifierName\", {\n enumerable: true,\n get: function () {\n return _toBindingIdentifierName.default;\n }\n});\nObject.defineProperty(exports, \"toBlock\", {\n enumerable: true,\n get: function () {\n return _toBlock.default;\n }\n});\nObject.defineProperty(exports, \"toComputedKey\", {\n enumerable: true,\n get: function () {\n return _toComputedKey.default;\n }\n});\nObject.defineProperty(exports, \"toExpression\", {\n enumerable: true,\n get: function () {\n return _toExpression.default;\n }\n});\nObject.defineProperty(exports, \"toIdentifier\", {\n enumerable: true,\n get: function () {\n return _toIdentifier.default;\n }\n});\nObject.defineProperty(exports, \"toKeyAlias\", {\n enumerable: true,\n get: function () {\n return _toKeyAlias.default;\n }\n});\nObject.defineProperty(exports, \"toStatement\", {\n enumerable: true,\n get: function () {\n return _toStatement.default;\n }\n});\nObject.defineProperty(exports, \"traverse\", {\n enumerable: true,\n get: function () {\n return _traverse.default;\n }\n});\nObject.defineProperty(exports, \"traverseFast\", {\n enumerable: true,\n get: function () {\n return _traverseFast.default;\n }\n});\nObject.defineProperty(exports, \"validate\", {\n enumerable: true,\n get: function () {\n return _validate.default;\n }\n});\nObject.defineProperty(exports, \"valueToNode\", {\n enumerable: true,\n get: function () {\n return _valueToNode.default;\n }\n});\nvar _isReactComponent = require(\"./validators/react/isReactComponent.js\");\nvar _isCompatTag = require(\"./validators/react/isCompatTag.js\");\nvar _buildChildren = require(\"./builders/react/buildChildren.js\");\nvar _assertNode = require(\"./asserts/assertNode.js\");\nvar _index = require(\"./asserts/generated/index.js\");\nObject.keys(_index).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _index[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _index[key];\n }\n });\n});\nvar _createTypeAnnotationBasedOnTypeof = require(\"./builders/flow/createTypeAnnotationBasedOnTypeof.js\");\nvar _createFlowUnionType = require(\"./builders/flow/createFlowUnionType.js\");\nvar _createTSUnionType = require(\"./builders/typescript/createTSUnionType.js\");\nvar _productions = require(\"./builders/productions.js\");\nObject.keys(_productions).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _productions[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _productions[key];\n }\n });\n});\nvar _index2 = require(\"./builders/generated/index.js\");\nObject.keys(_index2).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _index2[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _index2[key];\n }\n });\n});\nvar _cloneNode = require(\"./clone/cloneNode.js\");\nvar _clone = require(\"./clone/clone.js\");\nvar _cloneDeep = require(\"./clone/cloneDeep.js\");\nvar _cloneDeepWithoutLoc = require(\"./clone/cloneDeepWithoutLoc.js\");\nvar _cloneWithoutLoc = require(\"./clone/cloneWithoutLoc.js\");\nvar _addComment = require(\"./comments/addComment.js\");\nvar _addComments = require(\"./comments/addComments.js\");\nvar _inheritInnerComments = require(\"./comments/inheritInnerComments.js\");\nvar _inheritLeadingComments = require(\"./comments/inheritLeadingComments.js\");\nvar _inheritsComments = require(\"./comments/inheritsComments.js\");\nvar _inheritTrailingComments = require(\"./comments/inheritTrailingComments.js\");\nvar _removeComments = require(\"./comments/removeComments.js\");\nvar _index3 = require(\"./constants/generated/index.js\");\nObject.keys(_index3).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _index3[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _index3[key];\n }\n });\n});\nvar _index4 = require(\"./constants/index.js\");\nObject.keys(_index4).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _index4[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _index4[key];\n }\n });\n});\nvar _ensureBlock = require(\"./converters/ensureBlock.js\");\nvar _toBindingIdentifierName = require(\"./converters/toBindingIdentifierName.js\");\nvar _toBlock = require(\"./converters/toBlock.js\");\nvar _toComputedKey = require(\"./converters/toComputedKey.js\");\nvar _toExpression = require(\"./converters/toExpression.js\");\nvar _toIdentifier = require(\"./converters/toIdentifier.js\");\nvar _toKeyAlias = require(\"./converters/toKeyAlias.js\");\nvar _toStatement = require(\"./converters/toStatement.js\");\nvar _valueToNode = require(\"./converters/valueToNode.js\");\nvar _index5 = require(\"./definitions/index.js\");\nObject.keys(_index5).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _index5[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _index5[key];\n }\n });\n});\nvar _appendToMemberExpression = require(\"./modifications/appendToMemberExpression.js\");\nvar _inherits = require(\"./modifications/inherits.js\");\nvar _prependToMemberExpression = require(\"./modifications/prependToMemberExpression.js\");\nvar _removeProperties = require(\"./modifications/removeProperties.js\");\nvar _removePropertiesDeep = require(\"./modifications/removePropertiesDeep.js\");\nvar _removeTypeDuplicates = require(\"./modifications/flow/removeTypeDuplicates.js\");\nvar _getAssignmentIdentifiers = require(\"./retrievers/getAssignmentIdentifiers.js\");\nvar _getBindingIdentifiers = require(\"./retrievers/getBindingIdentifiers.js\");\nvar _getOuterBindingIdentifiers = require(\"./retrievers/getOuterBindingIdentifiers.js\");\nvar _getFunctionName = require(\"./retrievers/getFunctionName.js\");\nvar _traverse = require(\"./traverse/traverse.js\");\nObject.keys(_traverse).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _traverse[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _traverse[key];\n }\n });\n});\nvar _traverseFast = require(\"./traverse/traverseFast.js\");\nvar _shallowEqual = require(\"./utils/shallowEqual.js\");\nvar _is = require(\"./validators/is.js\");\nvar _isBinding = require(\"./validators/isBinding.js\");\nvar _isBlockScoped = require(\"./validators/isBlockScoped.js\");\nvar _isImmutable = require(\"./validators/isImmutable.js\");\nvar _isLet = require(\"./validators/isLet.js\");\nvar _isNode = require(\"./validators/isNode.js\");\nvar _isNodesEquivalent = require(\"./validators/isNodesEquivalent.js\");\nvar _isPlaceholderType = require(\"./validators/isPlaceholderType.js\");\nvar _isReferenced = require(\"./validators/isReferenced.js\");\nvar _isScope = require(\"./validators/isScope.js\");\nvar _isSpecifierDefault = require(\"./validators/isSpecifierDefault.js\");\nvar _isType = require(\"./validators/isType.js\");\nvar _isValidES3Identifier = require(\"./validators/isValidES3Identifier.js\");\nvar _isValidIdentifier = require(\"./validators/isValidIdentifier.js\");\nvar _isVar = require(\"./validators/isVar.js\");\nvar _matchesPattern = require(\"./validators/matchesPattern.js\");\nvar _validate = require(\"./validators/validate.js\");\nvar _buildMatchMemberExpression = require(\"./validators/buildMatchMemberExpression.js\");\nvar _index6 = require(\"./validators/generated/index.js\");\nObject.keys(_index6).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _index6[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _index6[key];\n }\n });\n});\nvar _deprecationWarning = require(\"./utils/deprecationWarning.js\");\nvar _toSequenceExpression = require(\"./converters/toSequenceExpression.js\");\nconst react = exports.react = {\n isReactComponent: _isReactComponent.default,\n isCompatTag: _isCompatTag.default,\n buildChildren: _buildChildren.default\n};\n{\n exports.toSequenceExpression = _toSequenceExpression.default;\n}\nif (process.env.BABEL_TYPES_8_BREAKING) {\n console.warn(\"BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!\");\n}\n\n//# sourceMappingURL=index.js.map\n","\"use strict\";\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n _next(undefined);\n });\n };\n}","\"use strict\";\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;"],"names":["module","exports","options","document","update","remove","styleElement","insertStyleElement","obj","css","supports","concat","media","needLayer","layer","length","sourceMap","btoa","unescape","encodeURIComponent","JSON","stringify","styleTagTransform","apply","parentNode","removeChild","removeStyleElement","InstanceApi_postSearchV3","_ref","objectId","data","http","post","_x","_x2","_x3","this","arguments","_defineProperty","key","value","Object","defineProperty","enumerable","configurable","writable","nonce","setAttribute","proxyMarker","Symbol","createEndpoint","releaseProxy","finalizer","throwMarker","isObject","val","transferHandlers","Map","canHandle","serialize","port1","port2","MessageChannel","expose","deserialize","port","start","wrap","serialized","Error","isError","message","name","stack","assign","ep","globalThis","allowedOrigins","addEventListener","callback","ev","origin","allowedOrigin","RegExp","test","isAllowedOrigin","console","warn","id","type","path","argumentList","map","fromWireValue","returnValue","parent","slice","reduce","prop","rawValue","proxy","transfers","transferCache","set","transfer","undefined","Promise","resolve","catch","then","wireValue","transferables","toWireValue","postMessage","removeEventListener","closeEndPoint","error","TypeError","endpoint","constructor","isMessagePort","close","target","pendingListeners","resolver","get","delete","createProxy","throwIfProxyReleased","isReleased","releaseEndpoint","requestResponseMessage","proxyCounter","WeakMap","proxyFinalizers","FinalizationRegistry","newCount","isProxyReleased","Proxy","_target","unregister","unregisterProxy","clear","r","p","toString","bind","_thisArg","rawArgumentList","last","processArguments","construct","register","registerProxy","processed","v","arr","Array","prototype","handler","serializedValue","msg","fill","Math","floor","random","Number","MAX_SAFE_INTEGER","join","ownKeys","e","t","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","push","_objectSpread2","forEach","getOwnPropertyDescriptors","defineProperties","InstanceApi_getDetail","instanceId","params","_x4","_exportNames","react","assertNode","createTypeAnnotationBasedOnTypeof","createUnionTypeAnnotation","createFlowUnionType","createTSUnionType","cloneNode","clone","cloneDeep","cloneDeepWithoutLoc","cloneWithoutLoc","addComment","addComments","inheritInnerComments","inheritLeadingComments","inheritsComments","inheritTrailingComments","removeComments","ensureBlock","toBindingIdentifierName","toBlock","toComputedKey","toExpression","toIdentifier","toKeyAlias","toStatement","valueToNode","appendToMemberExpression","inherits","prependToMemberExpression","removeProperties","removePropertiesDeep","removeTypeDuplicates","getAssignmentIdentifiers","getBindingIdentifiers","getOuterBindingIdentifiers","getFunctionName","traverse","traverseFast","shallowEqual","is","isBinding","isBlockScoped","isImmutable","isLet","isNode","isNodesEquivalent","isPlaceholderType","isReferenced","isScope","isSpecifierDefault","isType","isValidES3Identifier","isValidIdentifier","isVar","matchesPattern","validate","buildMatchMemberExpression","__internal__deprecationWarning","_deprecationWarning","default","_addComment","_addComments","_appendToMemberExpression","_assertNode","_buildMatchMemberExpression","_clone","_cloneDeep","_cloneDeepWithoutLoc","_cloneNode","_cloneWithoutLoc","_createFlowUnionType","_createTSUnionType","_createTypeAnnotationBasedOnTypeof","_ensureBlock","_getAssignmentIdentifiers","_getBindingIdentifiers","_getFunctionName","_getOuterBindingIdentifiers","_inheritInnerComments","_inheritLeadingComments","_inheritTrailingComments","_inherits","_inheritsComments","_is","_isBinding","_isBlockScoped","_isImmutable","_isLet","_isNode","_isNodesEquivalent","_isPlaceholderType","_isReferenced","_isScope","_isSpecifierDefault","_isType","_isValidES3Identifier","_isValidIdentifier","_isVar","_matchesPattern","_prependToMemberExpression","_removeComments","_removeProperties","_removePropertiesDeep","_removeTypeDuplicates","_shallowEqual","_toBindingIdentifierName","_toBlock","_toComputedKey","_toExpression","_toIdentifier","_toKeyAlias","_toStatement","_traverse","_traverseFast","_validate","_valueToNode","_isReactComponent","_isCompatTag","_buildChildren","_index","hasOwnProperty","call","_productions","_index2","_index3","_index4","_index5","_index6","_toSequenceExpression","isReactComponent","isCompatTag","buildChildren","toSequenceExpression","stylesInDOM","getIndexByIdentifier","identifier","result","i","modulesToDom","list","idCountMap","identifiers","item","base","count","indexByIdentifier","references","updater","addElementStyle","byIndex","splice","api","domAPI","newObj","lastIdentifiers","newList","index","newLastIdentifiers","_i","styleSheet","cssText","firstChild","appendChild","createTextNode","asyncGeneratorStep","gen","reject","_next","_throw","arg","info","done","_asyncToGenerator","fn","self","args","err","memo","insert","style","styleTarget","querySelector","window","HTMLIFrameElement","contentDocument","head","getTarget","element","createElement","setAttributes","attributes"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_next_bricks_ai_portal=globalThis.webpackChunk_next_bricks_ai_portal||[]).push([[9328],{1703:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(36758),a=n.n(o),r=n(40935),i=n.n(r)()(a());i.push([e.id,".files--SBFNeFls{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:4px;list-style:none;margin:12px 0 0;padding:0}.large--M2NOUc4a{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}.file--sJi1z1FZ{background:rgba(0,0,0,0.04);border-radius:8px;display:flex;height:60px;align-items:center;padding:0 14px}.file--sJi1z1FZ,\n.file--sJi1z1FZ:hover{color:var(--elevo-color-brand)}.file--sJi1z1FZ:hover{background:rgba(0,0,0,0.08)}.content--W8hFyMBh{min-width:0;flex:1}.icon--OV3uC006{margin-right:11px}.name--i9JLowqW,\n.metadata--xbNLgFgO{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.name--i9JLowqW{color:rgba(0,0,0,0.88)}.metadata--xbNLgFgO{color:rgba(0,0,0,0.45);font-size:12px;margin-top:3px}",""]),i.locals={files:"files--SBFNeFls",large:"large--M2NOUc4a",file:"file--sJi1z1FZ",content:"content--W8hFyMBh",icon:"icon--OV3uC006",name:"name--i9JLowqW",metadata:"metadata--xbNLgFgO"};const s=i},3921:(e,t,n)=>{e.exports=n.p+"images/f85dd9e6.png"},7017:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(36758),a=n.n(o),r=n(40935),i=n.n(r)()(a());i.push([e.id,".container--nviLvTo4{position:absolute;right:0;top:72px;bottom:72px;padding:48px 0;overflow-y:auto;scrollbar-width:none;pointer-events:none}.nav--lm9zwHhG{list-style:none;margin:0;padding:20px 0;background:rgba(255,255,255,0);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);pointer-events:auto}.container--nviLvTo4,\n.nav--lm9zwHhG{border-radius:8px 0px 0px 8px}.link--sJDeRfjL{display:flex;align-items:center;width:170px;height:36px;border-radius:18px 0 0 18px;padding:0 24px 0 16px;font-size:13px}.link--sJDeRfjL,\n.link--sJDeRfjL:hover{color:rgba(93,105,126,0.7)}.link--sJDeRfjL.disabled--UpGab11N{cursor:default}.item--B4GvcxMx:not(:first-child){margin-top:12px}.icon--YLvYVRdC{margin-right:12px;font-size:14px;color:#abaab7}.text--PwKz_ODc{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link--sJDeRfjL:not(.disabled--UpGab11N):hover,\n.item--B4GvcxMx.active--DwuLIQY_ .link--sJDeRfjL{background-color:rgba(255,255,255,0.2)}.item--B4GvcxMx.active--DwuLIQY_ .link--sJDeRfjL{font-size:14px;color:#424a58;padding-right:16px}.completed--ZPZ8DEeN .icon--YLvYVRdC{color:#0fbe59}.failed--dxvB8UKT .icon--YLvYVRdC{color:#f24c25}.working--IbqFvpPm .icon--YLvYVRdC{color:var(--elevo-color-brand)}.input-required--zcO5ZufK .icon--YLvYVRdC{color:#12aacc}.canceled--GqvLm_YF .icon--YLvYVRdC{color:#fcaa07}@media (max-height: 639px){.container--nviLvTo4{padding:0}}@media (max-width: 719px){.container--nviLvTo4{display:none}}",""]),i.locals={container:"container--nviLvTo4",nav:"nav--lm9zwHhG",link:"link--sJDeRfjL",disabled:"disabled--UpGab11N",item:"item--B4GvcxMx",icon:"icon--YLvYVRdC",text:"text--PwKz_ODc",active:"active--DwuLIQY_",completed:"completed--ZPZ8DEeN",failed:"failed--dxvB8UKT",working:"working--IbqFvpPm","input-required":"input-required--zcO5ZufK",canceled:"canceled--GqvLm_YF"};const s=i},24105:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(36758),a=n.n(o),r=n(40935),i=n.n(r)()(a());i.push([e.id,".loading--LlSQxd6c{width:24px;height:24px;display:flex;align-items:center;justify-content:center;background:rgba(69,94,255,0.5);border-radius:24px;animation:loading--LlSQxd6c 1s infinite linear}.inner--I4b7rAPw{width:12px;height:12px;background:rgb(69,94,255);border-radius:12px}@keyframes loading--LlSQxd6c{0%{transform:scale(1);opacity:1}100%{transform:scale(1.5);opacity:0}}",""]),i.locals={loading:"loading--LlSQxd6c",inner:"inner--I4b7rAPw"};const s=i},25313:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(36758),a=n.n(o),r=n(40935),i=n.n(r)()(a());i.push([e.id,".avatar--v2FiKghW::part(avatar){background-color:rgb(213,214,230);padding:1px}",""]),i.locals={avatar:"avatar--v2FiKghW"};const s=i},27110:(e,t,n)=>{n.d(t,{A:()=>p});var o=n(36758),a=n.n(o),r=n(40935),i=n.n(r),s=n(20062),l=n.n(s),c=new URL(n(3921),n.b),d=i()(a()),u=l()(c);d.push([e.id,`ai-portal\\.cruise-canvas{display:block;position:relative;width:100%;height:100%;overflow:hidden;background-color:#fff;background-image:url(${u});background-size:cover;background-repeat:no-repeat;background-position:center;background-attachment:fixed;color:#262626;--cruise-canvas-node-border:1px solid gray;--cruise-canvas-node-width-small:330px;--cruise-canvas-node-width-medium:453px;--cruise-canvas-node-width-large:800px;--cruise-canvas-primary-color:var(--elevo-color-brand);--cruise-canvas-input-background:rgba(255,255,255,0.8);--cruise-canvas-input-box-shadow:0px 1px 0px 0px #ffffff,inset 0px 2px 4px 0px #b3bcf9}.root--z6jdb_BU{width:100%;height:100%;position:relative}.widgets--r6lUPOu2{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;-webkit-user-select:none;user-select:none}.root--z6jdb_BU.loading--m5r507Hp .canvas--u6C26uH_,\n.root--z6jdb_BU.loading--m5r507Hp + .widgets--r6lUPOu2{visibility:hidden}.loading-icon--UkRBMlBy{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:48px;color:#fff}.widgets--r6lUPOu2 > *{pointer-events:auto;-webkit-user-select:text;user-select:text}.canvas--u6C26uH_,\n.edges--uNPQGWZg{width:100%;height:100%;position:absolute;transform-origin:0% 0%;-webkit-user-select:none;user-select:none}.node--IBGywwp4{position:absolute;-webkit-user-select:text;user-select:text;cursor:auto}.node--IBGywwp4:not(.ready--pmh440go),\n.canvas--u6C26uH_:not(.ready--pmh440go) > .edges--uNPQGWZg{visibility:hidden}svg.edges--uNPQGWZg{pointer-events:none;overflow:visible}.edge--muRUWYG1{fill:none;stroke-width:2px;stroke:rgba(255,255,255,0.6);stroke-dasharray:5,5}.go-back--myNmSpSv{position:absolute;top:20px;left:20px}.go-back--myNmSpSv::part(link){width:32px;height:32px;display:flex;justify-content:center;align-items:center;background:rgba(255,255,255,0.7);box-shadow:0px 3px 14px 0px rgba(0,0,0,0.1),0px 1px 4px 0px rgba(0,0,0,0.06);border-radius:8px;border:1px solid rgba(255,255,255,0.3);color:inherit;box-sizing:border-box}.go-back--myNmSpSv::part(link):hover{background:rgba(255,255,255,0.5)}.go-back--myNmSpSv::part(link):active{background:rgba(255,255,255,0.3)}.footer-container--sTjEGP7I{position:absolute;bottom:28px;left:50%;transform:translate(-50%,0);width:var(--cruise-canvas-node-width-large);max-width:80%}`,""]),d.locals={root:"root--z6jdb_BU",widgets:"widgets--r6lUPOu2",loading:"loading--m5r507Hp",canvas:"canvas--u6C26uH_","loading-icon":"loading-icon--UkRBMlBy",edges:"edges--uNPQGWZg",node:"node--IBGywwp4",ready:"ready--pmh440go",edge:"edge--muRUWYG1","go-back":"go-back--myNmSpSv","footer-container":"footer-container--sTjEGP7I"};const p=d},36137:(e,t,n)=>{n.d(t,{A:()=>p});var o=n(36758),a=n.n(o),r=n(40935),i=n.n(r),s=n(20062),l=n.n(s),c=new URL(n(91776),n.b),d=i()(a()),u=l()(c);d.push([e.id,`.node-requirement--aVjY3LFY{width:var(--cruise-canvas-node-width-medium);max-width:90vw;background-color:rgba(255,255,255,0.4);background-image:url(${u});background-position:center bottom;background-size:var(--cruise-canvas-node-width-medium) 128px;background-repeat:no-repeat;box-shadow:0px 4px 10px 0px rgba(54,64,80,0.18);border-radius:12px;-webkit-backdrop-filter:blur(28px);backdrop-filter:blur(28px);border:1px solid rgba(255,255,255,0.4);padding:8px;white-space:pre-wrap;position:relative}.node-requirement--aVjY3LFY.active--aEZLkOZe{border-color:#a1b5ff}.heading--F8b1aIJT{display:flex;align-items:center;margin-bottom:11px;font-size:13px}.avatar--BbtS9D46{flex:1;min-width:0}.avatar--BbtS9D46::part(avatar){border:1px solid #fff}.time--IRwoiblW{color:#8c8c8c}.body--JYv_r9n_{background:#f1f6ff;box-shadow:0px 1px 0px 0px #ffffff;border-radius:9px;padding:15px 10px;overflow-wrap:break-word}`,""]),d.locals={"node-requirement":"node-requirement--aVjY3LFY",active:"active--aEZLkOZe",heading:"heading--F8b1aIJT",avatar:"avatar--BbtS9D46",time:"time--IRwoiblW",body:"body--JYv_r9n_"};const p=d},36811:(e,t,n)=>{e.exports=n.p+"images/d4ea5a5c.png"},54998:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(36758),a=n.n(o),r=n(40935),i=n.n(r)()(a());i.push([e.id,".container--qJxxNcfJ{position:fixed;top:0;right:0;bottom:0;left:0;padding:20px;background-color:var(--mask-bg)}.editor--SCuHEqYM{height:100%;max-width:1200px;margin:0 auto;background:#ffffff;box-shadow:1px 1px 10px 0px rgba(0,10,26,0.1);border-radius:12px;display:flex;flex-direction:column}.header--nRP4oDyL{height:52px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(0,0,0,0.15);padding:0 20px}.title--Tq8TUpVz{font-weight:500;font-size:16px;color:#262626}.body--uTZ0qYhS{flex:1;min-height:0;padding:20px;display:flex;flex-direction:column}.content--_WNf_qJr{height:100%}.footer--cblnjGHn{padding:12px 20px;border-top:1px solid rgba(0,0,0,0.15)}",""]),i.locals={container:"container--qJxxNcfJ",editor:"editor--SCuHEqYM",header:"header--nRP4oDyL",title:"title--Tq8TUpVz",body:"body--uTZ0qYhS",content:"content--_WNf_qJr",footer:"footer--cblnjGHn"};const s=i},57617:(e,t,n)=>{n.d(t,{A:()=>p});var o=n(36758),a=n.n(o),r=n(40935),i=n.n(r),s=n(20062),l=n.n(s),c=new URL(n(63747),n.b),d=i()(a()),u=l()(c);d.push([e.id,`.node-job--soTYrcA7{width:var(--cruise-canvas-node-width-medium);max-width:90vw;background:linear-gradient(180deg,#f5f8ff 0%,#edf0f9 100%);box-shadow:0px 4px 10px 0px rgba(177,149,207,0.4),0px 2px 4px 0px rgba(0,0,0,0.06);border-radius:12px;border:1px solid rgba(255,255,255,0.5);padding:8px;position:relative}.node-job--soTYrcA7.active--WIcgH7xW{border-color:#a1b5ff}.background--CKldFV7M{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:12px;background-image:url(${u});background-repeat:no-repeat;background-position:top right;z-index:0;transition:opacity 0.15s;opacity:0}.node-job--soTYrcA7.active--WIcgH7xW .background--CKldFV7M,\n.node-job--soTYrcA7:hover .background--CKldFV7M{opacity:1}.background--CKldFV7M ~ *{position:relative;z-index:1}.fit-content--HuAZHd31{min-width:var(--cruise-canvas-node-width-medium);width:min-content}.node-job--soTYrcA7.large--bn_n8RL5{width:var(--cruise-canvas-node-width-large)}.error--IwtdD0T6{box-shadow:inset 0px 0px 8px 2px rgba(242,76,37,0.6);border-color:rgba(242,76,37,0.6)}.heading--GZqrhPqL{display:flex;align-items:center;padding:0 5px 5px;font-size:13px;color:#8c8c8c}.body--V34MsV9R{padding:9px 4px 4px}.scrollable--LudR_5Pj{max-height:462px;overflow-y:auto}.message--iVQBlD6k:not(:first-child){margin-top:6px}.role-assistant--Y8vd9Oms,\n.role-user--nAW4Hzsu{background:var(--cruise-canvas-input-background);border-radius:9px;border:1px solid #ccd1de;padding:6px 16px}.role-user--nAW4Hzsu{white-space:pre-wrap}.role-user--nAW4Hzsu:empty{display:none}.human-input--wFc6ovnT{margin-top:1em;display:block;width:100%;padding:10px 16px;color:inherit;background:var(--cruise-canvas-input-background);box-shadow:var(--cruise-canvas-input-box-shadow);border-radius:9px;border:none;font-size:14px;line-height:22px;height:64px}.human-input--wFc6ovnT:focus{outline:none}.human-input--wFc6ovnT::placeholder{color:#bfbfbf}.node-job--soTYrcA7 *::-webkit-scrollbar{width:5px;height:5px;background:transparent}.node-job--soTYrcA7 *::-webkit-scrollbar-thumb{background-color:#d8d8d8;border-radius:3px}.node-job--soTYrcA7 *::-webkit-scrollbar-track{background:transparent}`,""]),d.locals={"node-job":"node-job--soTYrcA7",active:"active--WIcgH7xW",background:"background--CKldFV7M","fit-content":"fit-content--HuAZHd31",large:"large--bn_n8RL5",error:"error--IwtdD0T6",heading:"heading--GZqrhPqL",body:"body--V34MsV9R",scrollable:"scrollable--LudR_5Pj",message:"message--iVQBlD6k","role-assistant":"role-assistant--Y8vd9Oms","role-user":"role-user--nAW4Hzsu","human-input":"human-input--wFc6ovnT"};const p=d},58905:(e,t,n)=>{n.d(t,{A:()=>p});var o=n(36758),a=n.n(o),r=n(40935),i=n.n(r),s=n(20062),l=n.n(s),c=new URL(n(36811),n.b),d=i()(a()),u=l()(c);d.push([e.id,`.node-start--Mrh1iP5r{width:65px;height:65px;position:relative;overflow:visible}.icon--NxC4u6Wl{width:75px;height:75px;background-image:url(${u});background-size:75px 75px;background-repeat:no-repeat;background-position:center;position:absolute;left:-5px;top:-1px}`,""]),d.locals={"node-start":"node-start--Mrh1iP5r",icon:"icon--NxC4u6Wl"};const p=d},63747:(e,t,n)=>{e.exports=n.p+"images/98d93242.png"},65005:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(36758),a=n.n(o),r=n(40935),i=n.n(r)()(a());i.push([e.id,".node-instruction--Gu7k6RDs{max-width:437px;max-width:min(437px,90vw);background:rgba(255,255,255,0.2);box-shadow:0px 4px 10px 0px rgba(54,64,80,0.08);border-radius:9999px;border:1px solid rgba(255,255,255,0.284);padding:6px 16px;color:rgba(0,0,0,0.45)}.text--jsSeLl7B{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;--shine-text-color:rgba(0,0,0,0.45);--shine-text-highlight-color:#dcdcdc}",""]),i.locals={"node-instruction":"node-instruction--Gu7k6RDs",text:"text--jsSeLl7B"};const s=i},77221:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(36758),a=n.n(o),r=n(40935),i=n.n(r)()(a());i.push([e.id,".node-end--yzRaOZnC{display:flex;flex-direction:column;align-items:center;gap:20px}.content--iXSH199p{display:flex;align-items:center}.icon--IVcHjGFO{width:18px;height:18px;display:flex;align-items:center;justify-content:center;color:#fff;background:#29cc49;border-radius:18px;font-size:14px;margin-right:6px}.text--dW7Y74et{font-weight:500}.button--mkIwsPzt{width:120px;height:30px;background:rgba(0,0,0,0.04);border:none;border-radius:15px;text-align:center;cursor:pointer}.button--mkIwsPzt:hover{background:rgba(0,0,0,0.08)}.button--mkIwsPzt:active{background:rgba(0,0,0,0.15)}.button--mkIwsPzt:focus{outline:none}",""]),i.locals={"node-end":"node-end--yzRaOZnC",content:"content--iXSH199p",icon:"icon--IVcHjGFO",text:"text--dW7Y74et",button:"button--mkIwsPzt"};const s=i},80079:(e,t,n)=>{n.d(t,{I:()=>i,K:()=>a,NS:()=>r,t:()=>s});var o=n(87117);let a=function(e){return e.YES="YES",e.NO="NO",e.TASK_COMPLETED="TASK_COMPLETED",e.SHARE="SHARE",e.TYPE_YOUR_MESSAGE_HERE="TYPE_YOUR_MESSAGE_HERE",e.ARGUMENTS="ARGUMENTS",e.PROCESS="PROCESS",e.RESPONSE="RESPONSE",e.SWITCH_TO_CHAT="SWITCH_TO_CHAT",e.BACK_TO_CENTER="BACK_TO_CENTER",e.ZOOM_IN="ZOOM_IN",e.ZOOM_OUT="ZOOM_OUT",e.FULLSCREEN="FULLSCREEN",e.SEND_MESSAGE="SEND_MESSAGE",e.UNTITLED="UNTITLED",e.FILE_PREVIEW_UNPREVIEWABLE_TIP_PREFIX="FILE_PREVIEW_UNPREVIEWABLE_TIP_PREFIX",e.FILE_PREVIEW_UNPREVIEWABLE_TIP_SUFFIX="FILE_PREVIEW_UNPREVIEWABLE_TIP_SUFFIX",e.DOWNLOAD="DOWNLOAD",e}({});const r="bricks/ai-portal/cruise-canvas",i={en:{YES:"Yes",NO:"No",TASK_COMPLETED:"Task completed",SHARE:"Share",TYPE_YOUR_MESSAGE_HERE:"Type your message here",ARGUMENTS:"Arguments",PROCESS:"Process",RESPONSE:"Response",SWITCH_TO_CHAT:"Switch to chat",BACK_TO_CENTER:"Back to center",ZOOM_IN:"Zoom in",ZOOM_OUT:"Zoom out",FULLSCREEN:"Fullscreen",SEND_MESSAGE:"Send message",UNTITLED:"Untitled",FILE_PREVIEW_UNPREVIEWABLE_TIP_PREFIX:"This file is unpreviewable currently, you can",FILE_PREVIEW_UNPREVIEWABLE_TIP_SUFFIX:"and view it locally.",DOWNLOAD:"Download"},zh:{YES:"是",NO:"否",TASK_COMPLETED:"任务完成",SHARE:"分享",TYPE_YOUR_MESSAGE_HERE:"在这里输入信息",ARGUMENTS:"参数",PROCESS:"过程",RESPONSE:"响应",SWITCH_TO_CHAT:"切换为聊天",BACK_TO_CENTER:"回中",ZOOM_IN:"放大",ZOOM_OUT:"缩小",FULLSCREEN:"全屏",SEND_MESSAGE:"发送消息",UNTITLED:"未命名",FILE_PREVIEW_UNPREVIEWABLE_TIP_PREFIX:"该类型文件暂不支持预览,您可以",FILE_PREVIEW_UNPREVIEWABLE_TIP_SUFFIX:"查看。",DOWNLOAD:"下载"}},s=o.i18n.getFixedT(null,r)},83865:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(36758),a=n.n(o),r=n(40935),i=n.n(r)()(a());i.push([e.id,".zoom-bar--MTw5VGPl{left:20px;bottom:20px}@media (max-width: 1123px){.zoom-bar--MTw5VGPl{left:auto;bottom:auto;top:20px;right:20px}}",""]),i.locals={"zoom-bar":"zoom-bar--MTw5VGPl"};const s=i},85533:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(36758),a=n.n(o),r=n(40935),i=n.n(r)()(a());i.push([e.id,".content--zNKsww2N{margin:0 auto;padding:16px 0;max-width:800px}.toolbar--YWbNSe1o{display:flex;align-items:center;gap:8px}.loading--yng_2TL3{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:48px;color:var(--text-color-secondary)}.error--a2Er1bw7{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding-bottom:20%;display:flex;flex-direction:column;align-items:center;color:#8c8c8c}.error--a2Er1bw7 eo-button{margin:0 14px}.embed--y9Wq2k7W{display:block}",""]),i.locals={content:"content--zNKsww2N",toolbar:"toolbar--YWbNSe1o",loading:"loading--yng_2TL3",error:"error--a2Er1bw7",embed:"embed--y9Wq2k7W"};const s=i},87545:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(36758),a=n.n(o),r=n(40935),i=n.n(r)()(a());i.push([e.id,".detail--JiiWugxP{margin-top:20px;color:#595959;margin-bottom:7px}.detail--JiiWugxP .body--H_Wy7M2z .shiki.light-plus{background:#fff!important;border:1px solid #ccd1de;border-radius:9px}.detail--JiiWugxP .body--H_Wy7M2z .shiki.light-plus.fallback--mxkVhIEE{white-space:pre-wrap;background:#fef5f3!important}.progress-container--tFUAQo73,\n.stream-message--G0tAm9aa{border-radius:9px;border:1px solid #ccd1de;background:#fff}.progress-container--tFUAQo73{padding:6px 2px}.fallback--mxkVhIEE{background:#fef5f3}.stream-message--G0tAm9aa{padding:1em;margin:0.5em 0}",""]),i.locals={detail:"detail--JiiWugxP",body:"body--H_Wy7M2z",fallback:"fallback--mxkVhIEE","progress-container":"progress-container--tFUAQo73","stream-message":"stream-message--G0tAm9aa"};const s=i},87716:(e,t,n)=>{n.d(t,{B:()=>tn});var o=n(18769),a=n.n(o),r=n(29475),i=(n(65168),n(53373)),s=n.n(i),l=n(99126),c=n(67566),d=n(8324);function u(e){let t=1/0,n=1/0,o=-1/0,a=-1/0;for(const r of e){const e=r.x+r.width,i=r.y+r.height;r.x<t&&(t=r.x),e>o&&(o=e),r.y<n&&(n=r.y),i>a&&(a=i)}return{x:t,y:n,width:o-t,height:a-n}}var p=n(72591),m=n.n(p),f=n(1740),b=n.n(f),g=n(88128),v=n.n(g),h=n(30855),x=n.n(h),E=n(93051),y=n.n(E),w=n(73656),k=n.n(w),A=n(27110),T={};T.styleTagTransform=k(),T.setAttributes=x(),T.insert=v().bind(null,"head"),T.domAPI=b(),T.insertStyleElement=y(),m()(A.A,T);const P=A.A&&A.A.locals?A.A.locals:void 0;var S,N,I;const C=.5,R=2,L="<START>",_="<END>",M="<FEEDBACK>",O="<LOADING>",j="<REPLAY>",F=20,z=20,B=122,D=160,U=40,W=42,V=10,H=/mac/i.test(null!==(S=null!==(N=null===(I=navigator.userAgentData)||void 0===I?void 0:I.platform)&&void 0!==N?N:navigator.platform)&&void 0!==S?S:navigator.userAgent);var Y=n(57617),K={};K.styleTagTransform=k(),K.setAttributes=x(),K.insert=v().bind(null,"head"),K.domAPI=b(),K.insertStyleElement=y(),m()(Y.A,K);const J=Y.A&&Y.A.locals?Y.A.locals:void 0;function G(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey&&H?10:1)}var q=n(57586),$=n.n(q);function Z(e,t){return t?{x:e.x+t.x,y:e.y+t.y}:{x:e.x,y:e.y}}var Q=n(89107),X=n(17299),ee=n(83865),te={};te.styleTagTransform=k(),te.setAttributes=x(),te.insert=v().bind(null,"head"),te.domAPI=b(),te.insertStyleElement=y(),m()(ee.A,te);const ne=ee.A&&ee.A.locals?ee.A.locals:void 0;var oe=n(86767),ae=n(44394),re=n(80079),ie=n(97907);const se={lib:"easyops",icon:"back-to-center"},le={lib:"antd",icon:"minus-circle"},ce={lib:"antd",icon:"plus-circle"};function de(e){let{scale:t,showUiSwitch:n,onScaleChange:r,onReCenter:i,onSwitchToChat:s}=e;const l=(0,o.useCallback)((()=>{null==r||r(t+.1)}),[r,t]),c=(0,o.useCallback)((()=>{null==r||r(t-.1)}),[r,t]);return a().createElement("div",{className:`${oe.A.toolbar} ${ne["zoom-bar"]}`},n&&a().createElement(a().Fragment,null,a().createElement(ae.Py,{variant:"mini",icon:ie.$g,onClick:s}),a().createElement("div",{className:oe.A.divider})),a().createElement(ae.Py,{variant:"mini",icon:se,onClick:i,title:(0,re.t)(re.K.BACK_TO_CENTER)}),a().createElement("div",{className:oe.A.divider}),a().createElement(ae.Py,{variant:"mini",icon:le,onClick:c,title:(0,re.t)(re.K.ZOOM_OUT)}),a().createElement(ae.Py,{variant:"mini",icon:ce,onClick:l,title:(0,re.t)(re.K.ZOOM_IN)}))}var ue=n(58905),pe={};pe.styleTagTransform=k(),pe.setAttributes=x(),pe.insert=v().bind(null,"head"),pe.domAPI=b(),pe.insertStyleElement=y(),m()(ue.A,pe);const me=ue.A&&ue.A.locals?ue.A.locals:void 0;function fe(){return a().createElement("div",{className:me["node-start"]},a().createElement("div",{className:me.icon}))}var be=n(11280),ge=n(21302),ve=n.n(ge),he=n(36137),xe={};xe.styleTagTransform=k(),xe.setAttributes=x(),xe.insert=v().bind(null,"head"),xe.domAPI=b(),xe.insertStyleElement=y(),m()(he.A,xe);const Ee=he.A&&he.A.locals?he.A.locals:void 0,ye=(0,be.wrapBrick)("eo-easyops-avatar");function we(e){let{username:t,content:n,startTime:o,active:r}=e;return a().createElement("div",{className:s()(Ee["node-requirement"],{[Ee.active]:r})},a().createElement("div",{className:Ee.heading},a().createElement(ye,{className:Ee.avatar,nameOrInstanceId:t,showName:!0,size:"xs"}),a().createElement("div",{className:Ee.time},o&&ve()(1e3*o).format("MM-DD HH:mm"))),a().createElement("div",{className:Ee.body},n))}var ke=n(65005),Ae={};Ae.styleTagTransform=k(),Ae.setAttributes=x(),Ae.insert=v().bind(null,"head"),Ae.domAPI=b(),Ae.insertStyleElement=y(),m()(ke.A,Ae);const Te=ke.A&&ke.A.locals?ke.A.locals:void 0;var Pe=n(36903);function Se(e){let{content:t,loading:n}=e;return a().createElement("div",{className:Te["node-instruction"]},a().createElement("div",{className:s()(Te.text,{[Pe.A["shine-text"]]:n}),title:t},t))}var Ne=n(89575),Ie=n(42137),Ce=n(66993),Re=n(74049),Le=n(1703),_e={};_e.styleTagTransform=k(),_e.setAttributes=x(),_e.insert=v().bind(null,"head"),_e.domAPI=b(),_e.insertStyleElement=y(),m()(Le.A,_e);const Me=Le.A&&Le.A.locals?Le.A.locals:void 0;var Oe=n(85620),je=n(61919);const Fe=n.p+"images/62542537.png",ze=n.p+"images/94d7a053.png",Be=n.p+"images/3316492a.png";function De(e){let t="";const n=null==e?void 0:e.match(/\.([^.]+)$/);switch(n&&(t=n[1].toLowerCase()),t){case"md":return"text/markdown";case"pdf":return"application/pdf";default:return"unknown"}}function Ue(e){let{files:t,large:n}=e;const{setActiveFile:r}=(0,o.useContext)(Oe.Q);return a().createElement("ul",{className:s()(Me.files,{[Me.large]:n})},t.map(((e,t)=>{const[n,o]=function(e,t){const n=e||De(t);switch(n){case"text/markdown":return["Markdown",Fe];case"application/pdf":return["PDF",ze]}return n.startsWith("text/")?["Text",Fe]:["File",Be]}(e.mimeType,e.name);return a().createElement("li",{key:t},a().createElement("a",{className:Me.file,onClick:()=>r(e)},a().createElement("img",{className:Me.icon,src:o,width:26,height:32}),a().createElement("div",{className:Me.content},a().createElement("div",{className:Me.name},e.name||(0,re.t)(re.K.UNTITLED)),a().createElement("div",{className:Me.metadata},`${n}${e.size?` · ${function(e){const[t,n]=je.pipes.unitFormat(e,"bytes",1),o=+t;return`${o>100?Math.round(o):o} ${n}`}(e.size)}`:""}`))))})))}var We=n(90108),Ve={};Ve.styleTagTransform=k(),Ve.setAttributes=x(),Ve.insert=v().bind(null,"head"),Ve.domAPI=b(),Ve.insertStyleElement=y(),m()(We.A,Ve);const He=We.A&&We.A.locals?We.A.locals:void 0;var Ye=n(31918);function Ke(e){let{action:t}=e;const{humanInput:n,replay:r}=(0,o.useContext)(Ye.j),[i,s]=(0,o.useState)(!1);return"select"===t.type?null:a().createElement("div",{className:He["human-action"]},a().createElement(ae.Gx,{type:"primary",themeVariant:"elevo",shape:"round",disabled:i,onClick:()=>{r||(n("",null,t.confirmText||"确认"),s(!0))}},t.confirmText||"确认"))}var Je=n(11879);const Ge=n.p+"images/8834094d.png";var qe=n(25313),$e={};$e.styleTagTransform=k(),$e.setAttributes=x(),$e.insert=v().bind(null,"head"),$e.domAPI=b(),$e.insertStyleElement=y(),m()(qe.A,$e);const Ze=qe.A&&qe.A.locals?qe.A.locals:void 0,Qe=(0,be.wrapBrick)("eo-avatar"),Xe=new Map;function et(e){let{aiEmployeeId:t}=e;return a().createElement(o.Suspense,{fallback:a().createElement(Qe,{className:Ze.avatar,showName:!0,size:"xs",name:t,src:Ge})},a().createElement(tt,{aiEmployeeId:t}))}function tt(e){let{aiEmployeeId:t}=e;const n=(0,o.useMemo)((()=>{const e=Xe.get(t);if(e)return e;const n=async function(e){var t;const n=null===(t=(await(0,Je.v)({employeeId:e})).list)||void 0===t?void 0:t[0];return(null==n?void 0:n.employeeId)===e?n:void 0}(t);return Xe.set(t,n),n}),[t]),r=(0,o.use)(n),i=(0,o.useMemo)((()=>{if(!r)return{name:t,src:Ge};const{name:e,avatar:n}=r;return{name:e,src:n?new URL(n,location.origin).toString():Ge}}),[r,t]);return a().createElement(Qe,(0,Ne.A)({className:Ze.avatar,showName:!0,size:"xs"},i))}const nt=/^\s*\|(?:\s*:?-+:?\s*\|){4,}\s*$/m;function ot(e){var t,n;let{job:r,active:i,isLeaf:l}=e;const c=null===(t=r.toolCall)||void 0===t?void 0:t.name,[d,u,p,m]=(0,o.useMemo)((()=>{var e;const t=[],n=[],o=[];let a="llm_answer"===c;null===(e=r.messages)||void 0===e||e.forEach((e=>{if("tool"===e.role)for(const s of e.parts){var r;if("data"===s.type)switch(null===(r=s.data)||void 0===r?void 0:r.type){case"markdown":t.push(s.data.content);break;case"cmdb_instance_detail":var i;n.push(s.data),a||(a=Object.keys("object"===(null===(i=s.data)||void 0===i||null===(i=i.outputSchema)||void 0===i?void 0:i.type)?s.data.outputSchema.properties:s.data.detail).length>6)}else"file"===s.type&&o.push(s.file)}}));const i=t.join("");return a=a||nt.test(i),[i,n,o,a]}),[r.messages,c]);return a().createElement("div",{className:s()(J["node-job"],{[J.error]:r.isError,[J.active]:i,[J.large]:m})},a().createElement("div",{className:J.background}),r.aiEmployeeId?a().createElement("div",{className:J.heading},a().createElement(et,{aiEmployeeId:r.aiEmployeeId})):null,a().createElement("div",{className:J.body},r.toolCall&&a().createElement(Ie.t,{job:r}),null===(n=r.messages)||void 0===n?void 0:n.map(((e,t)=>{var n;return"tool"===e.role?null:a().createElement("div",{key:t,className:s()(J.message,Pe.A.markdown,{[J["role-user"]]:"tool"===e.role||"user"===e.role})},null===(n=e.parts)||void 0===n?void 0:n.map(((e,t)=>a().createElement(a().Fragment,{key:t},"text"===e.type&&a().createElement(Ce.w,{className:Pe.A["markdown-wrapper"],content:e.text})))))})),d&&a().createElement("div",{className:s()(J.message,Pe.A.markdown),style:{padding:"0 8px"}},a().createElement(Ce.w,{className:Pe.A["markdown-wrapper"],content:d})),u.map(((e,t)=>a().createElement(Re.H,(0,Ne.A)({key:t},e)))),p.length>0&&a().createElement(Ue,{files:p,large:m}),l&&!r.humanAction&&r.requestHumanAction&&("working"===r.state||"input-required"===r.state)&&a().createElement(Ke,{action:r.requestHumanAction})))}var at=n(77221),rt={};rt.styleTagTransform=k(),rt.setAttributes=x(),rt.insert=v().bind(null,"head"),rt.domAPI=b(),rt.insertStyleElement=y(),m()(at.A,rt);const it=at.A&&at.A.locals?at.A.locals:void 0;function st(){const{onShare:e,replay:t}=(0,o.useContext)(Ye.j);return a().createElement("div",{className:it["node-end"]},t&&a().createElement("div",{className:it.content},a().createElement("span",{className:it.icon},a().createElement(ae.Bj,{lib:"fa",prefix:"fas",icon:"check"})),a().createElement("span",{className:it.text},(0,re.t)(re.K.TASK_COMPLETED))),!t&&a().createElement("button",{className:it.button,onClick:e},(0,re.t)(re.K.SHARE)))}var lt=n(23543);function ct(e){let{job:t,active:n}=e;const r=(0,o.useRef)(null),{setHoverOnScrollableContent:i}=(0,o.useContext)(Oe.Q),[l,c]=(0,o.useState)("medium"),d=(0,o.useCallback)((e=>{c(e)}),[]),u=(0,o.useCallback)((e=>{let t,n=!1;for(const o of e.nativeEvent.composedPath()){if(o===r.current)break;if(o instanceof HTMLElement)if(o.classList.contains("ant-table-content"))t=o;else if(o.classList.contains("ant-table")&&o.classList.contains("ant-table-scroll-horizontal")){t&&t.scrollWidth>t.clientWidth&&(n=!0);break}}i(n)}),[i]),p=(0,o.useCallback)((()=>{i(!1)}),[i]);return a().createElement("div",{className:s()(J["node-job"],{[J.active]:n,[J.large]:"large"===l}),ref:r,onMouseMove:u,onMouseLeave:p},a().createElement("div",{className:J.background}),a().createElement(lt.y,{job:t,onSizeChange:d}))}var dt=n(87545),ut={};ut.styleTagTransform=k(),ut.setAttributes=x(),ut.insert=v().bind(null,"head"),ut.domAPI=b(),ut.insertStyleElement=y(),m()(dt.A,ut);const pt=dt.A&&dt.A.locals?dt.A.locals:void 0;var mt=n(4833),ft=n(85993),bt=n(18905);function gt(){const{innerWidth:e}=window;return e<800?Math.min(500,e):e<1e3?.8*e:800}function vt(e){var t;let{job:n}=e;const{setActiveToolCallJobId:r}=(0,o.useContext)(Ye.j),i=n.toolCall,l=null===(t=i.annotations)||void 0===t?void 0:t.title,[c,d,u]=(0,o.useMemo)((()=>{var e;const t=null===(e=n.messages)||void 0===e?void 0:e.filter((e=>"tool"===e.role)),o=[],a=[];let r;for(const e of null!=t?t:[])for(const t of e.parts){var i;if("data"===t.type)switch(null===(i=t.data)||void 0===i?void 0:i.type){case"progress":r=t;continue;case"markdown":case"cmdb_instance_detail":case"static_data_view":continue;default:o.push(t);continue}else if("file"===t.type)continue;a.push(t)}return[r,o,a]}),[n.messages]),p=(0,o.useCallback)((()=>{setTimeout((()=>{r(null)}),300)}),[r]),m=(0,o.useRef)(null);(0,o.useEffect)((()=>{setTimeout((()=>{var e;null===(e=m.current)||void 0===e||e.open()}))}),[]);const[f,b]=(0,o.useState)(gt);(0,o.useEffect)((()=>{const e=()=>{b(gt)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]);const g=d.length>0||!!c,v=u.length>0,h=["working","input-required"].includes(n.state)&&g||v?"completed":n.state,x=n.isError||"failed"===h;return a().createElement(ae.xb,{ref:m,customTitle:l||i.name,width:f,closable:!0,mask:!0,maskClosable:!0,keyboard:!0,onClose:p},a().createElement(Ie.t,{job:n,variant:"read-only"}),a().createElement("div",{className:pt.detail},a().createElement("div",{className:pt.heading},(0,re.t)(re.K.ARGUMENTS),":"),a().createElement("div",{className:`${pt.body} ${Pe.A.markdown}`},a().createElement(ht,{content:i.originalArguments,maybeJson:!0}))),g&&a().createElement("div",{className:pt.detail},a().createElement("div",{className:pt.heading},(0,re.t)(re.K.PROCESS),":"),a().createElement("div",{className:pt.body},d.map(((e,t)=>{var n;return"stream"===(null===(n=e.data)||void 0===n?void 0:n.type)?a().createElement("div",{key:t,className:s()(pt["stream-message"],Pe.A.markdown)},a().createElement(Ce.w,{className:Pe.A["markdown-wrapper"],content:e.data.message})):a().createElement("div",{key:t,className:Pe.A.markdown},a().createElement(ht,{content:JSON.stringify(e)}))})),!!c&&a().createElement("div",{className:s()(pt["progress-container"],{[pt.fallback]:x})},a().createElement(mt.W,{progress:c,failed:x})))),v&&a().createElement("div",{className:pt.detail},a().createElement("div",{className:pt.heading},(0,re.t)(re.K.RESPONSE),":"),a().createElement("div",{className:`${pt.body} ${Pe.A.markdown}`},u.map(((e,t)=>{var n;return"data"===e.type&&"progress"===(null===(n=e.data)||void 0===n?void 0:n.type)?null:a().createElement(ht,{key:t,content:"text"===e.type?e.text:JSON.stringify(e),maybeJson:"text"===e.type})})))))}function ht(e){let{content:t,maybeJson:n}=e;const[r,i]=(0,o.useMemo)((()=>{if(n&&t)try{const e=JSON.parse(t);return[JSON.stringify(e,null,2),!1]}catch{}return[t,!0]}),[t,n]);return i?a().createElement(ft.N,{className:s()("shiki light-plus",pt.fallback)},a().createElement("code",null,r)):a().createElement(o.Suspense,{fallback:a().createElement(ae.Bj,ie.Xc)},a().createElement(bt.s,{source:r,language:"json"}))}var xt=n(41030);function Et(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}var yt=n(85011),wt=n(7017),kt={};kt.styleTagTransform=k(),kt.setAttributes=x(),kt.insert=v().bind(null,"head"),kt.domAPI=b(),kt.insertStyleElement=y(),m()(wt.A,kt);const At=wt.A&&wt.A.locals?wt.A.locals:void 0;function Tt(e){let{nav:t,plan:n,jobMap:r,jobLevels:i,currentNavId:s,taskState:l,onClick:c}=e;const d=(0,o.useMemo)((()=>{const e=null==n?void 0:n.filter((e=>!(null!=t&&t.find((t=>t.id===e.id)))));if(null==e||!e.length)return t;const o=new Map;let a=null;for(let t=n.length-1;t>=0;t--){const r=n[t];if(e.includes(r)){let e=o.get(a);e||o.set(a,e=[]),e.unshift(r)}else a=r.id}const s=[...null!=t?t:[]];for(const[e,t]of o.entries()){const n=null===e?s.length:s.findIndex((t=>t.id===e)),o=s[n],a=ie.QB.includes((null==o?void 0:o.state)||"unknown");s.splice(n,0,...t.map((e=>{var t;const n=null==r?void 0:r.get(e.id),o=null==i?void 0:i.get(e.id);return{id:e.id,title:e.instruction,state:null!==(t=null==n?void 0:n.state)&&void 0!==t?t:a?"skipped":void 0,level:null!=o?o:0,disabled:!0}})))}return s}),[t,n,r,i]),u=(0,o.useRef)(null);return(0,o.useEffect)((()=>{var e;const t=u.current;t&&s&&(null===(e=t.querySelector(`[data-job-id="${s}"]`))||void 0===e||e.scrollIntoView({behavior:"smooth",block:"nearest"}))}),[s]),(0,o.useEffect)((()=>{const e=u.current;if(!e||s)return;const t=null==d?void 0:d.findLast((e=>ie.QB.includes(e.state||"unknown")||"working"===e.state||"input-required"===e.state));var n;t&&(null===(n=e.querySelector(`[data-job-id="${t.id}"]`))||void 0===n||n.scrollIntoView({behavior:"smooth",block:"nearest"}))}),[s,d]),a().createElement("div",{className:At.container},a().createElement("ul",{className:At.nav,ref:u},null==d?void 0:d.map((e=>a().createElement(Pt,(0,Ne.A)({key:e.id},e,{currentNavId:s,taskState:l,onClick:c}))))))}function Pt(e){let{id:t,title:n,state:r,level:i,taskState:l,currentNavId:c,disabled:d,onClick:u}=e;const{className:p,icon:m}=(0,o.useMemo)((()=>function(e,t){switch(e){case"completed":return{className:At.completed,icon:{lib:"fa",prefix:"fas",icon:"check"}};case"submitted":case"working":return"terminated"===t?{icon:{lib:"fa",prefix:"far",icon:"circle-stop"}}:{className:At.working,icon:{lib:"antd",theme:"outlined",icon:"loading-3-quarters",spinning:!0}};case"input-required":return{className:At["input-required"],icon:{lib:"fa",prefix:"far",icon:"circle-user"}};case"failed":return{className:At.failed,icon:{lib:"fa",prefix:"fas",icon:"xmark"}};case"canceled":case"terminated":return{className:At.canceled,icon:{lib:"fa",prefix:"far",icon:"circle-stop"}};case"skipped":return{icon:{lib:"fa",prefix:"fas",icon:"ban"}};default:return{icon:{lib:"fa",prefix:"far",icon:"clock"}}}}(r,l)),[r,l]);return a().createElement("li",{className:s()(At.item,{[At.active]:c===t}),style:{marginLeft:20*i+"px"}},a().createElement("a",{className:s()(At.link,p,{[At.disabled]:d}),"data-job-id":t,title:n,onClick:()=>{d||u(t)}},a().createElement(ae.Bj,(0,Ne.A)({className:At.icon},m)),a().createElement("span",{className:At.text},n)))}var St=n(15171),Nt=n(45060),It=n(85533),Ct={};Ct.styleTagTransform=k(),Ct.setAttributes=x(),Ct.insert=v().bind(null,"head"),Ct.domAPI=b(),Ct.insertStyleElement=y(),m()(It.A,Ct);const Rt=It.A&&It.A.locals?It.A.locals:void 0,Lt=n.p+"images/28ac62e6.png",_t={lib:"antd",icon:"download"};function Mt(){const{innerWidth:e}=window;return e<800?e:e<1280?.9*e:1246}function Ot(e){let{file:t}=e;const n=(0,o.useRef)(null),{setActiveFile:i}=(0,o.useContext)(Oe.Q),{bytes:l,uri:c,mimeType:d,name:u}=t,p=d||De(u),[m,f]=(0,o.useState)("loading"),[b,g]=(0,o.useState)();(0,o.useEffect)((()=>{if("application/pdf"!==p)if(f("loading"),"text/markdown"===p){if(l)return g(atob(l)),void f("loaded");if(c){let e=!1;return(async()=>{try{const t=await fetch(new URL(c,`${location.origin}${(0,r.getBasePath)()}`));if(!t.ok)throw new Error(`Failed to fetch file: ${t.statusText}`);const n=await t.text();if(e)return;g(n),f("loaded")}catch(e){console.error("Error fetching file:",e),f("error")}})(),()=>{e=!0}}}else f("error");else f(c||l?"loaded":"error")}),[l,p,c]);const v=(0,o.useCallback)((()=>{const{bytes:e,uri:n,mimeType:o,name:a}=t,i=a||(0,re.t)(re.K.UNTITLED);if(e)(0,Nt.saveAs)(new Blob([atob(e)],{type:o}),i);else if(n){const e=document.createElement("a");e.href=new URL(n,`${location.origin}${(0,r.getBasePath)()}`).toString(),e.download=i,document.body.appendChild(e),e.click(),document.body.removeChild(e)}}),[t]),h=(0,o.useCallback)((()=>{var e;null===(e=n.current)||void 0===e||e.close()}),[]),x=(0,o.useCallback)((()=>{setTimeout((()=>{i(null)}),300)}),[i]);(0,o.useEffect)((()=>{setTimeout((()=>{var e;null===(e=n.current)||void 0===e||e.open()}))}),[]);const[E,y]=(0,o.useState)(Mt);return(0,o.useEffect)((()=>{const e=()=>{y(Mt)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),a().createElement(ae.xb,{ref:n,customTitle:t.name||(0,re.t)(re.K.UNTITLED),width:E,closable:!1,mask:!0,maskClosable:!0,keyboard:!0,onClose:x},"loading"===m?a().createElement("div",{className:Rt.loading},a().createElement(ae.Bj,ie.Xc)):"error"===m?a().createElement("div",{className:Rt.error},a().createElement("img",{src:Lt,alt:"Unpreviewable",width:591,height:249}),a().createElement("p",null,(0,re.t)(re.K.FILE_PREVIEW_UNPREVIEWABLE_TIP_PREFIX),a().createElement(ae.Gx,{themeVariant:"elevo",type:"primary",onClick:v},(0,re.t)(re.K.DOWNLOAD)),(0,re.t)(re.K.FILE_PREVIEW_UNPREVIEWABLE_TIP_SUFFIX))):"application/pdf"===p?a().createElement("embed",{className:Rt.embed,src:c?new URL(c,`${location.origin}${(0,r.getBasePath)()}`).toString():`data:application/pdf;base64,${l}`,type:p,title:u,width:"100%",height:"100%"}):a().createElement("div",{className:s()(Rt.content,Pe.A.markdown)},a().createElement(Ce.w,{content:b})),a().createElement("div",{slot:"extra",className:Rt.toolbar},a().createElement(ae.Py,{icon:_t,onClick:v}),a().createElement("div",{className:oe.A.divider}),a().createElement(ae.Py,{icon:ie.LQ,onClick:h})))}var jt=n(11303),Ft=n(24105),zt={};zt.styleTagTransform=k(),zt.setAttributes=x(),zt.insert=v().bind(null,"head"),zt.domAPI=b(),zt.insertStyleElement=y(),m()(Ft.A,zt);const Bt=Ft.A&&Ft.A.locals?Ft.A.locals:void 0;function Dt(){return a().createElement("div",{className:Bt.loading},a().createElement("div",{className:Bt.inner}))}var Ut=n(28247),Wt=n(54998),Vt={};Vt.styleTagTransform=k(),Vt.setAttributes=x(),Vt.insert=v().bind(null,"head"),Vt.domAPI=b(),Vt.insertStyleElement=y(),m()(Wt.A,Vt);const Ht=Wt.A&&Wt.A.locals?Wt.A.locals:void 0;var Yt=n(35731);const Kt=[{filePath:"tsx-view/actions.d.ts",content:'/** 提示用户操作结果 */\ndeclare const showMessage: (options: {\n type: "success" | "error";\n content: string;\n}) => void;\n\n/** 刷新指定的数据源 */\ndeclare const refresh: (dataSource: unknown) => void;\n\n/** 调用指定的 Provider 接口 */\ndeclare const callApi: <T extends keyof ContractMap>(\n api: T,\n params: Parameters<ContractMap[T]>[0]\n) => Promise<ReturnType<ContractMap[T]>>;\n\n/** 调用指定的 HTTP 接口 */\ndeclare const callHttp: <T = any>(\n url: string,\n init?: RequestInit\n) => Promise<T>;\n\ndeclare const useState: <T>(\n initialValue?: T\n) => [value: T, setter: (value: T) => void];\n\ndeclare const useResource: <T = any>(\n fetcher: () => Promise<T>,\n options?: {\n // 不启用则直接返回 fallback\n enabled?: boolean;\n fallback?: unknown;\n }\n) => [data: T, refetch: () => void];\n\ndeclare const callTool: <T = any, P = any>(\n conversationId: string,\n stepId: string,\n params: P\n) => Promise<T>;\n\n/** 获取指定的组件 */\ndeclare const getComponent: <T extends keyof ComponentInstanceMap>(\n name: T,\n id: string\n) => ComponentInstanceMap[T];\n\ninterface ComponentInstanceMap {\n Form: {\n validate: () => void;\n reset: () => void;\n };\n Modal: {\n open: () => void;\n };\n}\n'},{filePath:"tsx-view/components.d.ts",content:'/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/no-empty-object-type */\n\nexport interface ViewProps {\n title: string;\n}\n\nexport interface BaseProps {\n componentId?: string;\n key?: string | number;\n}\n\nexport interface TableProps<T extends object> extends BaseProps {\n dataSource: {\n list: T[];\n page?: number;\n pageSize?: number;\n total?: number;\n };\n columns: TableColumn<T>[];\n rowKey: string;\n rowSelection?: boolean;\n sort?: TableSort | null;\n pagination?: boolean;\n onSelect?: (event: CustomEvent<T[]>) => void;\n onPaginate?: (event: CustomEvent<{ page: number; pageSize: number }>) => void;\n onSort?: (event: CustomEvent<TableSort | null>) => void;\n}\n\nexport interface ListProps extends BaseProps {\n dataSource: object[];\n fields?: {\n title?: string;\n icon?: string;\n url?: string;\n };\n variant?: "default" | "navigation" | "ranking";\n}\n\nexport interface DescriptionsProps<T extends object> extends BaseProps {\n title?: string;\n dataSource?: T;\n list: Array<\n | {\n label: string;\n text: string;\n }\n | {\n label: string;\n /** 数据字段,多级字段使用点号分隔 */\n field: string;\n }\n | {\n label: string;\n render: (record: T) => any;\n }\n >;\n}\n\nexport interface ButtonProps extends BaseProps {\n type?: "default" | "primary";\n icon?: IconProps;\n onClick?: (e: Event) => void;\n}\n\nexport interface SearchProps extends BaseProps {\n placeholder?: string;\n onSearch?: (e: CustomEvent<string>) => void;\n}\n\nexport interface FormProps<T extends object> extends BaseProps {\n values?: T;\n onValidateSuccess?: (e: CustomEvent<T>) => void;\n}\n\nexport interface InputProps extends FormItemProps {\n placeholder?: string;\n}\n\nexport interface NumberInputProps extends InputProps {\n min?: number;\n max?: number;\n}\n\nexport interface TextareaProps extends InputProps {}\n\nexport interface SelectProps extends InputProps {\n options: FormItemOptions[];\n onChange?: (e: CustomEvent<string | number | boolean | null>) => void;\n}\n\nexport interface RadioProps extends SelectProps {}\n\nexport interface CheckboxProps extends SelectProps {}\n\nexport interface SwitchProps extends FormItemProps {}\n\nexport interface DatePickerProps extends FormItemProps {}\n\nexport interface TimePickerProps extends FormItemProps {}\n\nexport interface DashboardProps extends BaseProps {\n dataSource: Array<object>;\n groupField?: string;\n widgets: Array<DashboardWidget>;\n}\n\nexport interface ModalProps extends BaseProps {\n title: string;\n confirmText?: string;\n cancelText?: string;\n onConfirm?: () => void;\n}\n\nexport interface CardProps extends BaseProps {\n title?: string;\n}\n\nexport interface TagProps extends BaseProps {\n color?: string;\n outline?: boolean;\n}\n\nexport interface LinkProps extends BaseProps {\n /** 站外链接 */\n href?: string;\n\n /** 站内链接 */\n url?: string;\n\n target?: "_blank" | "_self";\n}\n\nexport interface AvatarProps extends BaseProps {\n size?: "large" | "medium" | "small";\n name?: string;\n src?: string;\n}\n\nexport interface AvatarGroupProps extends BaseProps {\n size?: "large" | "medium" | "small";\n}\n\nexport interface PlaintextProps extends BaseProps {\n /** Related advisory information */\n title?: string;\n}\n\nexport interface DashboardWidget {\n widget: "chart";\n type: "line" | "area";\n title?: string;\n metric: {\n id: string;\n unit: string;\n };\n precision?: number;\n}\n\nexport interface FormItemProps extends BaseProps {\n name: string;\n label?: string;\n required?: boolean;\n disabled?: boolean;\n}\n\nexport interface FormItemOptions {\n label: string;\n value: string;\n}\n\nexport interface IconProps {\n lib: "fa";\n prefix: "fas" | "far";\n icon: string;\n}\n\nexport interface TableColumn<T extends object> {\n key: string;\n /** 数据索引,多级索引使用数组 */\n dataIndex: string | string[];\n title: string;\n sortable?: boolean;\n render?: (value: any, record: T) => any;\n}\n\nexport interface TableSort {\n columnKey: string | number;\n order: "ascend" | "descend";\n}\n\ndeclare const View: (props: ViewProps) => any;\ndeclare const Table: <T extends object>(props: TableProps<T>) => any;\ndeclare const List: (props: ListProps) => any;\ndeclare const Descriptions: <T extends object>(\n props: DescriptionsProps<T>\n) => any;\ndeclare const Button: (props: ButtonProps) => any;\ndeclare const Toolbar: (props: BaseProps) => any;\ndeclare const Search: (props: SearchProps) => any;\ndeclare const Form: <T extends object>(props: FormProps<T>) => any;\ndeclare const Input: (props: InputProps) => any;\ndeclare const NumberInput: (props: NumberInputProps) => any;\ndeclare const Textarea: (props: TextareaProps) => any;\ndeclare const Select: (props: SelectProps) => any;\ndeclare const Radio: (props: RadioProps) => any;\ndeclare const Checkbox: (props: CheckboxProps) => any;\ndeclare const Switch: (props: SwitchProps) => any;\ndeclare const DatePicker: (props: DatePickerProps) => any;\ndeclare const TimePicker: (props: TimePickerProps) => any;\ndeclare const Dashboard: (props: DashboardProps) => any;\ndeclare const Modal: (props: ModalProps) => any;\ndeclare const Card: (props: CardProps) => any;\ndeclare const Output: (props: BaseProps) => any;\ndeclare const Tag: (props: TagProps) => any;\ndeclare const Link: (props: LinkProps) => any;\ndeclare const Avatar: (props: AvatarProps) => any;\ndeclare const AvatarGroup: (props: AvatarGroupProps) => any;\ndeclare const Plaintext: (props: PlaintextProps) => any;\ndeclare const Fragment: (props: { key?: string | number }) => any;\n'.replaceAll("export interface","interface")},{filePath:"tsx-view/contracts.d.ts",content:"type ContractMap = Record<string, any>;"}],Jt=a().lazy((async()=>({default:await(0,Ut.asyncWrapBrick)("vs.code-editor",{onCodeChange:"code.change"})})));function Gt(){var e,t;const{workspace:n,manuallyUpdatedViews:r,updateView:i,activeJsxEditorJob:s,setActiveJsxEditorJob:l}=(0,o.useContext)(Ye.j),c=null!==(e=null==r?void 0:r.get(s.id))&&void 0!==e?e:s.generatedView,d=c.code,[u,p]=(0,o.useState)(d),m=(0,o.useMemo)((()=>{var e;const t=Kt;return null!==(e=c.withContexts)&&void 0!==e&&e.RESPONSE?[...t,{filePath:"tsx-view/response.d.ts",content:`const RESPONSE_VALUE = ${JSON.stringify(c.withContexts.RESPONSE,null,2)};\n\ndeclare const RESPONSE: typeof RESPONSE_VALUE;`}]:t}),[null===(t=c.withContexts)||void 0===t?void 0:t.RESPONSE]);return a().createElement("div",{className:Ht.container},a().createElement("div",{className:Ht.editor},a().createElement("div",{className:Ht.header},a().createElement("span",{className:Ht.title},"JSX Editor"),a().createElement(ae.Py,{icon:ie.LQ,onClick:()=>{null==l||l(void 0)}})),a().createElement("div",{className:Ht.body},a().createElement("div",{className:Ht.content},a().createElement(o.Suspense,{fallback:"Loading..."},a().createElement(Jt,{value:d,onCodeChange:e=>{p(e.detail)},language:"typescript",uri:"file:///view.tsx",automaticLayout:"fit-container",theme:"tm-vs-dark",extraLibs:m,"data-override-theme":"dark-v2"})))),a().createElement("div",{className:Ht.footer},a().createElement(ae.Gx,{themeVariant:"elevo",type:"primary",onClick:()=>{const e={...c,code:u};e.asyncConstructedView=(0,Yt.e)(e,n),null==i||i(s.id,e),null==l||l(void 0)}},"Save"))))}var qt=n(91417),$t={};$t.styleTagTransform=k(),$t.setAttributes=x(),$t.insert=v().bind(null,"head"),$t.domAPI=b(),$t.insertStyleElement=y(),m()(qt.A,$t);const Zt=qt.A&&qt.A.locals?qt.A.locals:void 0;function Qt(e){let{content:t}=e;return a().createElement("div",{className:s()(J["node-job"],J.error)},a().createElement("div",{className:Zt.error},t))}var Xt=n(40928);const en=(0,o.memo)(nn);function tn(e,t){var n,i;let{conversationId:l,initialRequest:p,replay:m,replayDelay:f,supports:b,showHiddenJobs:g,showHumanActions:v,showFeedback:h,showFeedbackAfterFailed:x,showFeedbackOnView:E,showUiSwitch:y,showJsxEditor:w,previewUrlTemplate:k,showCases:A,exampleProjects:T,tryItOutUrl:S,onShare:N,onTerminate:I,onSubmitFeedback:Y,onSwitchToChat:K,onFeedbackOnView:q,onDetailChange:ee}=e;const te=(0,o.useRef)(null),{conversation:ne,tasks:oe,errors:re,humanInputRef:se,skipToResults:le,watchAgain:ce}=(0,Q.u)(l,p,m,f),ue=null===(n=oe[oe.length-1])||void 0===n?void 0:n.plan,pe=function(e,t,n,a){return(0,o.useMemo)((()=>{if(!e)return null;const o=[],r=[],i=[],s=[],{list:l,roots:c,map:d,levels:u,downstreamMap:p,jobsWithFollowingErrors:m}=(0,X.$)(t,n,a),f=new Map,b=[];let g;for(const e of l){var v,h;const t=d.get(e),{messages:n}=t,r=Array.isArray(n)&&n.length>0||t.toolCall,l=[],p=null==n||null===(v=n.find((e=>"user"===e.role)))||void 0===v||null===(v=v.parts)||void 0===v||null===(v=v.find((e=>"text"===e.type)))||void 0===v?void 0:v.text;if(void 0!==p&&(c.includes(e)||1===n.length)){const n=`requirement:${e}`;g=t.username,o.push({type:"requirement",id:n,content:p,username:g}),l.push(n),f.set(e,l),b.push(n);continue}if(t.instruction){const n=`instruction:${e}`;o.push({type:"instruction",id:n,job:t,state:t.state}),l.push(n),i.push({id:t.id,title:t.instruction,state:t.state,level:u.get(t.id)})}else null!==(h=t.toolCall)&&void 0!==h&&null!==(h=h.annotations)&&void 0!==h&&h.title&&i.push({id:t.id,title:t.toolCall.annotations.title,state:t.state,level:u.get(t.id)});const x=`job:${t.id}`;r&&(o.push({type:"job",id:x,job:t,state:t.state}),l.push(x));const E=t.generatedView;if(E){const e=`view:${t.id}`;o.push({type:"view",id:e,job:t}),l.push(e),s.push({id:t.id,view:E})}const y=m.get(e);if(y){const t=`error:${e}`;o.push({type:"error",id:t,content:y}),l.push(t)}if(null!=a&&a.showHumanActions&&t.humanAction){const e=`human-action:${t.id}`;o.push({type:"requirement",id:e,content:t.humanAction,username:g}),l.push(e)}0===l.length&&(o.push({type:"job",id:x,job:t,state:t.state}),l.push(x)),f.set(e,l),void 0!==p&&"completed"===t.state&&b.push(l[l.length-1])}for(const e of l){var x;const t=f.get(e);for(let e=1;e<t.length;e++)r.push({source:t[e-1],target:t[e]});const n=t[t.length-1],o=null!==(x=p.get(e))&&void 0!==x?x:[];for(const e of o){const t=f.get(e);r.push({source:n,target:t[0]})}}if("terminated"!==e.state&&"failed"!==e.state)if(0===o.length)o.push({type:"loading",id:O});else{let e=0;for(const t of b)if(!r.some((e=>e.source===t))){const n=`${O}:${e++}`;o.push({type:"loading",id:n}),r.push({source:t,target:n})}}return{nodes:o,edges:r,nav:i,views:s,jobMap:d,jobLevels:u}}),[e,t])}(ne,oe,re,{showHiddenJobs:g,showHumanActions:v}),me=null==pe?void 0:pe.nodes,fe=null==pe?void 0:pe.edges,be=null==pe?void 0:pe.nav,ge=null==pe?void 0:pe.views,ve=null==pe?void 0:pe.jobMap,he=null==pe?void 0:pe.jobLevels,xe=null!==(i=null==ne?void 0:ne.title)&&void 0!==i?i:"",Ee=null==ne?void 0:ne.state,[ye,we]=(0,o.useState)(null),ke=(0,o.useMemo)((()=>{if(ye){const[e,t]=ye.split(":");if("job"===e||"view"===e)return t}return null}),[ye]);(0,o.useEffect)((()=>{ee({projectId:null==ne?void 0:ne.projectId})}),[ee,null==ne?void 0:ne.projectId]);const[Ae,Te]=(0,o.useState)(!1),[Pe,Se]=(0,o.useState)(!1),[Ne,Ie]=(0,o.useState)(!!h);(0,o.useEffect)((()=>{Ie(!!h)}),[h]);const[Ce,Re]=(0,o.useState)(),Le=(0,o.useCallback)((e=>{Te(!0),Y(e)}),[Y]);(0,o.useImperativeHandle)(t,(()=>({feedbackSubmitDone:()=>{Se(!0),setTimeout((()=>{Ie(!1)}),3e3)},feedbackSubmitFailed:()=>{Te(!1)},feedbackOnViewDone:e=>{Re((t=>{const n=new Set(t);return n.add(e),n}))}})),[]);const _e=(0,o.useRef)(!1);(0,o.useEffect)((()=>{const e=setTimeout((()=>{_e.current=!0}),3e3);return()=>{clearTimeout(e)}}),[]),(0,o.useEffect)((()=>{(0,r.getRuntime)().applyPageTitle(xe)}),[xe]);const Me=(0,o.useCallback)(((e,t,n)=>{var o;null===(o=se.current)||void 0===o||o.call(se,e,t,n)}),[se]),[je,Fe]=(0,o.useState)(null),ze=(0,o.useCallback)(((e,t)=>{Fe((n=>{if(!t){if(!n)return null;const t=new Map(n);return t.delete(e)?t:n}return n?new Map(n).set(e,t):new Map([[e,t]])}))}),[]),{sizeReady:Be,nodes:De,edges:Ue}=function(e){let{rawNodes:t,rawEdges:n,sizeMap:a,completed:r,failed:i,finished:s,showFeedback:l,showFeedbackAfterFailed:c,replay:d}=e;const u=(0,o.useRef)(null),{initialNodes:p,initialEdges:m}=(0,o.useMemo)((()=>{const e=[{type:"start",id:L}],o=[],a=[],p=null!=t?t:[],m=null!=n?n:[],f=new Set(m.map((e=>e.target))),b=i&&l&&c,g=d?s:r||b,v=g?new Set(m.map((e=>e.source))):null;for(const e of p)f.has(e.id)||o.push({source:L,target:e.id}),g&&!v.has(e.id)&&a.push(e.id);if(e.push(...p),o.push(...m),a.length>0){let t=a;if(d)s&&(e.push({id:_,type:"end"}),o.push(...t.map((e=>({source:e,target:_})))),e.push({id:j,type:"replay"}),o.push({source:_,target:j}));else if(r&&(e.push({id:_,type:"end"}),o.push(...t.map((e=>({source:e,target:_})))),t=[_]),l&&(r||b)){e.push({id:M,type:"feedback"});for(const e of t)o.push({source:e,target:M})}}const h=u.current;if(h)for(const t of e){const e=h.get(t.id);e&&(t.view=e)}return{initialNodes:e,initialEdges:o}}),[t,n,r,i,s,l,c,d]),f=(0,o.useRef)(null);return(0,o.useMemo)((()=>{var e;for(const e of p)if(null==a||!a.has(e.id))return{sizeReady:!1,nodes:p,edges:[]};const t=new($().graphlib.Graph);t.setGraph({rankdir:"TB",nodesep:W,edgesep:V,ranksep:U}),t.setDefaultEdgeLabel((function(){return{}}));for(const e of m)t.setEdge(e.source,e.target);for(const e of p){const[n,o]=a.get(e.id);t.setNode(e.id,{id:e.id,width:n,height:o})}$().layout(t);let n=null;const o=p.map((e=>{const o=t.node(e.id),a=o.x-o.width/2,r=o.y-o.height/2;return"start"===e.type&&(f.current?n={x:f.current.x-a,y:f.current.y-r}:f.current={x:a,y:r}),{...e,view:{x:a,y:r,width:o.width,height:o.height}}}));if(n)for(const e of o)Object.assign(e.view,Z(e.view,n));const r=null!==(e=u.current)&&void 0!==e?e:u.current=new Map;for(const e of o){const{x:t,y:n}=e.view;r.set(e.id,{x:t,y:n})}return{sizeReady:!0,nodes:o,edges:m.map((e=>{const o=t.node(e.source),a=Z(o,n),r=t.node(e.target),i=Z(r,n),s=i.y-(r.height+U)/2,l=[{x:a.x,y:a.y+o.height/2},{x:a.x,y:s},{x:i.x,y:s},{x:i.x,y:i.y-r.height/2}];return{...e,points:l}}))}}),[m,p,a])}({rawNodes:me,rawEdges:fe,completed:"completed"===Ee,failed:"failed"===Ee,finished:null==ne?void 0:ne.finished,sizeMap:je,showFeedback:Ne,showFeedbackAfterFailed:x,replay:m}),We=(0,o.useRef)(!1),Ve=(0,o.useRef)(!1),[He,Ke]=(0,o.useState)(!1),{grabbing:Je,transform:Ge,transformRef:qe,zoomer:$e}=function(e){let{rootRef:t,zoomable:n,scrollable:a,pannable:r,pannableWithCtrl:i,scaleRange:s,manualScrolledUpRef:l,onSwitchActiveTarget:u}=e;const[p,m]=(0,o.useState)(!1),[f,b]=(0,o.useState)({k:1,x:0,y:0}),g=(0,o.useRef)(f),v=(0,o.useMemo)((()=>null!=s?s:[C,R]),[s]),h=(0,o.useMemo)((()=>(0,d.s_)().wheelDelta(G)),[]);return(0,o.useEffect)((()=>{let e=!1;h.scaleExtent(n?v:[1,1]).on("start",(()=>{e=!1,m(!0)})).on("zoom",(t=>{e=!0,b(t.transform),g.current=t.transform})).on("end",(()=>{m(!1),e||null==u||u(null)})).filter((e=>("wheel"===e.type?e.ctrlKey:i?r||e.ctrlKey:!e.ctrlKey)&&!e.button))}),[u,v,n,h,i,r]),(0,o.useEffect)((()=>{if(i){const e=e=>{e.ctrlKey&&e.preventDefault()};return document.addEventListener("contextmenu",e,!0),()=>{document.removeEventListener("contextmenu",e,!0)}}}),[i]),(0,o.useEffect)((()=>{const e=t.current;if(!e)return;const o=(0,c.A)(e),s=()=>{o.on(".zoom",null).on(".zoom.custom",null).on("wheel",null)};if(n||a||r)return(n||a)&&o.on("wheel.zoom.custom",(e=>{if(!e.ctrlKey&&a){const t=e.target.closest(`.${J.body}`);if(t&&function(e,t){if(!t)return!1;if(t>0){const t=e.scrollHeight-e.clientHeight;return e.scrollTop<=t-1}return e.scrollTop>=1}(t,e.deltaY))return;e.cancelable&&(e.deltaY<0&&(l.current=!0),e.preventDefault(),h.translateBy(o,e.wheelDeltaX/5,e.wheelDeltaY/5))}})),o.call(h).on("wheel",(e=>{(a||n&&e.ctrlKey)&&e.preventDefault()})).on("dblclick.zoom",null),r||i||o.on("mousedown.zoom",null),r||o.on("touchstart.zoom",null).on("touchmove.zoom",null).on("touchend.zoom",null),s;s()}),[i,r,t,l,a,n,h]),{grabbing:p,transform:f,transformRef:g,zoomer:h,scaleRange:v}}({rootRef:te,zoomable:Be,scrollable:Be&&!He,pannable:Be,manualScrolledUpRef:Ve}),Ze=(0,o.useRef)(!1),Qe=(0,o.useMemo)((()=>{let e=null;const t=n=>{const o=qe.current,a="function"==typeof n?n(o):n;if(!a)return;const{transform:r,translateBy:i}=a;let s=(0,c.A)(te.current);var l,u,p,m,f,b;_e.current&&0!==a.duration&&(Ze.current=!0,s=s.transition().duration(null!==(l=a.duration)&&void 0!==l?l:300).ease((e=>e*(2-e))).on("end",(()=>{if(Ze.current=!1,e){const n=e;e=null,t(n)}}))),r?$e.transform(s,new d.uV(null!==(u=r.k)&&void 0!==u?u:o.k,null!==(p=r.x)&&void 0!==p?p:o.x,null!==(m=r.y)&&void 0!==m?m:o.y)):$e.translateBy(s,null!==(f=i[0])&&void 0!==f?f:0,null!==(b=i[1])&&void 0!==b?b:0)};return n=>{Ze.current?e=n:t(n)}}),[qe,$e]),{centered:Xe,setCentered:et,reCenterRef:tt}=function(e){let{nodes:t,sizeReady:n,zoomer:a,rootRef:r,pushZoomTransition:i}=e;const[s,l]=(0,o.useState)(!1),c=(0,o.useRef)(!1);return(0,o.useEffect)((()=>{const e=r.current;if(n&&e&&!s&&t.length>0){const{x:n,y:o,width:a,height:r}=u(t.map((e=>e.view))),s=n+a,d=o+r,p=(e.clientWidth-(s+n))/2;let m=30;if(c.current){const t=d-o+B-e.clientHeight;m=t>0?-t-o:(e.clientHeight-(d+o))/2}i({transform:{k:1,x:p,y:m},duration:c.current?void 0:0}),l(!0)}c.current=!1}),[s,t,r,n,a,i]),{centered:s,setCentered:l,reCenterRef:c}}({nodes:De,sizeReady:Be,zoomer:$e,rootRef:te,pushZoomTransition:Qe}),nt=ie.QB.includes(Ee)||"input-required"===Ee,ot=(0,o.useMemo)((()=>new Set(Ue.map((e=>e.source)))),[Ue]),at=(0,o.useMemo)((()=>{if(!Be)return null;const e=[];for(const t of De)ot.has(t.id)||e.push(t);return e.length>0?Math.max(...e.map((e=>e.view.y+e.view.height))):null}),[De,ot,Be]),rt=(0,o.useRef)(null);(0,o.useEffect)((()=>{rt.current=at}),[at]),(0,o.useEffect)((()=>{const e=te.current;!e||null===at||We.current&&Ve.current||Qe((t=>{const{offsetHeight:n}=e,o=at*t.k+t.y,a=n-B-o;return a<0?{transform:{y:t.y+a},duration:a>-100?100:a<-500?300:200}:null}))}),[at,Qe]),(0,o.useEffect)((()=>{const e=rt.current,t=te.current;if(!t||null===e||Ze.current)return;const{offsetHeight:n}=t,o=e*Ge.k+Ge.y,a=n-B-o;We.current=a<0}),[Ge,$e]);const it=(0,o.useCallback)((()=>{tt.current=!0,et(!1)}),[tt,et]),st=(0,o.useCallback)((e=>{$e.scaleTo((0,c.A)(te.current),e)}),[$e]),lt=(0,o.useMemo)((()=>Be?u(De.map((e=>e.view))):null),[De,Be]);(0,o.useEffect)((()=>{if(!lt)return;const e=te.current;if(!e)return;const{offsetWidth:t,offsetHeight:n}=e,o=t/Ge.k,a=n/Ge.k,r=-(o-20-lt.x),i=o-20+(lt.x+lt.width),s=-(a-20-lt.y),l=a-20+(lt.y+lt.height);$e.translateExtent([[r,s],[i,l]])}),[$e,Ge.k,lt]);const ct=(0,o.useCallback)((e=>{let{nodeId:t,jobId:n,behavior:o,block:a}=e;const r=te.current,i=De.filter((e=>{var o;return!(t&&e.id!==t||n&&(null===(o=e.job)||void 0===o?void 0:o.id)!==n)}));if(!r||0===i.length)return;const s=u(i.map((e=>e.view))),{x:l,y:c}=function(e,t,n,o,a){const[r,i]=t,[s,l,c,d]=n,{x:u,y:p,width:m,height:f}=e,b=u+m,g=p+f,v=s-(p*o.k+o.y),h=i-c-(g*o.k+o.y),x=v>0||"start"===a?v/o.k:h<0?h/o.k:0,E=d-(u*o.k+o.x),y=r-l-(b*o.k+o.x);return{x:E>0?E/o.k:y<0?y/o.k:0,y:x}}(s,[r.offsetWidth,r.offsetHeight],[F,z,B,D],qe.current,a);(l||c)&&Qe({translateBy:[l,c],duration:"instant"===o?0:void 0})}),[De,Qe,qe]),dt=(0,o.useCallback)(((e,t)=>{const n=te.current;if(!n||!Be)return;let o,a=0,r=0,i=300;const s="left"===e||"right"===e;if("line"===t)o=40*("up"===e||"left"===e?1:-1),i=150;else if("page"===t)o=(n.offsetHeight-B)*("up"===e?-1:1);else{const{y:t,height:a}=u(De.map((e=>e.view)));if("down"===e){const e=t+a-t+B;o=n.offsetHeight-e-qe.current.y}else o=t+F-qe.current.y}s?a=o:r=o,(a||r)&&Qe({translateBy:[a,r],duration:i})}),[De,Qe,Be,qe]),[ut,pt]=(0,o.useState)(null),[mt,ft]=(0,o.useState)(null),[bt,gt]=a().useState(null),[ht,wt]=(0,o.useState)(),[kt,At]=(0,o.useState)(),Pt=(0,o.useCallback)(((e,t)=>{At((n=>{const o=new Map(n);return o.set(e,t),o}))}),[]),Nt=null==me?void 0:me[0],It=(0,o.useMemo)((()=>{if("requirement"===(null==Nt?void 0:Nt.type))return Nt.content}),[Nt]),Ct=l,Rt=(0,o.useMemo)((()=>({conversationId:l,workspace:Ct,previewUrlTemplate:k,replay:m,showCases:A,exampleProjects:T,humanInput:Me,onShare:N,onTerminate:I,supports:b,activeExpandedViewJobId:mt,setActiveExpandedViewJobId:ft,activeToolCallJobId:ut,setActiveToolCallJobId:pt,submittingFeedback:Ae,submittedFeedback:Pe,onSubmitFeedback:Le,setShowFeedback:Ie,showJsxEditor:w,activeJsxEditorJob:ht,setActiveJsxEditorJob:wt,manuallyUpdatedViews:kt,updateView:Pt,showFeedbackOnView:E,onFeedbackOnView:q,feedbackDoneViews:Ce,skipToResults:le,watchAgain(){ce(),et(!1)},tryItOut(){const e=window.open(`${(0,r.getBasePath)().slice(0,-1)}${null!=S?S:"/elevo"}`,"_blank");e&&(e.__elevo_try_it_out={content:It})}})),[l,Ct,k,m,A,T,Me,I,N,b,mt,ut,Ae,Pe,Le,w,ht,kt,Pt,E,q,Ce,le,ce,et,It,S]),Lt=(0,o.useMemo)((()=>({onNodeResize:ze,setActiveNodeId:we,hoverOnScrollableContent:He,setHoverOnScrollableContent:Ke,setActiveFile:gt})),[He,ze]),_t=(0,o.useMemo)((()=>ut&&(null==ve?void 0:ve.get(ut))||null),[ut,ve]),Mt=(0,o.useCallback)((e=>{for(const t of e.nativeEvent.composedPath()){if(t instanceof HTMLElement&&t.classList.contains(P.node))return;if(t===te.current)break}we(null)}),[]);return(0,o.useEffect)((()=>{const e=te.current;if(!e||_t||mt||bt)return;const t=t=>{if(document.activeElement&&document.activeElement!==document.body&&document.activeElement!==e)return;const n=function(e,t){let{activeNodeId:n,nodes:o}=t;if(e.ctrlKey||e.altKey)return;const a=n?o.find((e=>e.id===n)):null,r=e.key;if(!a){if(" "===r&&!e.metaKey)return{action:"scroll",direction:e.shiftKey?"down":"up",range:"page"};if(e.shiftKey||!H&&e.metaKey)return;switch(r){case"Home":return{action:"scroll",direction:"up",range:"document"};case"End":return{action:"scroll",direction:"down",range:"document"};case"ArrowUp":case"ArrowDown":{const t="ArrowUp"===r?"up":"down";return e.metaKey?{action:"scroll",direction:t,range:"document"}:{action:"scroll",direction:t,range:"line"}}case"ArrowLeft":case"ArrowRight":if(!e.metaKey)return{action:"scroll",direction:"ArrowLeft"===r?"left":"right",range:"line"}}return}if(e.shiftKey||!H&&e.metaKey)return;const i=(t,n)=>{if(e.metaKey&&"x"===t)return;const r="x"===t?"y":"x",i=Et(a.view),s=o.filter((e=>{let o,s;return e!==a&&"start"!==e.type&&"end"!==e.type&&"feedback"!==e.type&&"error"!==e.type&&"replay"!==e.type&&"instruction"!==e.type&&(s=Et(e.view),o=(s[t]-i[t])*n,o>0)&&o>Math.abs(i[r]-s[r])}));return(e.metaKey?xt.maxBy:xt.minBy)(s,(e=>{const n=Et(e.view);return(i[r]-n[r])**2+(i[t]-n[t])**2}))};let s,l;switch(r){case"ArrowLeft":l="switch-active-node",s=i("x",-1);break;case"ArrowUp":l="switch-active-node",s=i("y",-1);break;case"ArrowRight":l="switch-active-node",s=i("x",1);break;case"ArrowDown":l="switch-active-node",s=i("y",1);break;case"Escape":l="switch-active-node",s=null;break;case"Enter":l="enter",s=a}return l&&void 0!==s?{action:l,node:s}:void 0}(t,{activeNodeId:ye,nodes:De});if(!n)return;const{action:o,node:a}=n;if("scroll"===o)dt(n.direction,n.range);else if("enter"===o){var r,i;if("job"!==a.type&&"view"!==a.type)return;const e="ask_human"===(null===(r=a.job.toolCall)||void 0===r?void 0:r.name),t="ask_human_confirming_plan"===(null===(i=a.job.toolCall)||void 0===i?void 0:i.name);if(e||t)return}t.preventDefault(),t.stopPropagation(),"enter"===o?"view"===a.type?ft(a.job.id):pt(a.job.id):"switch-active-node"===o&&(a?(we(a.id),"job"===a.type||"view"===a.type?ct({jobId:a.job.id,behavior:"smooth"}):ct({nodeId:a.id,behavior:"smooth"})):we(null))};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[ye,_t,mt,bt,De,ct,dt]),a().createElement(Ye.j.Provider,{value:Rt},a().createElement(Oe.Q.Provider,{value:Lt},a().createElement("div",{className:s()(P.root,{[P.loading]:!ne}),ref:te,style:{cursor:Je?"grabbing":"grab"},tabIndex:-1,onClick:Mt},!ne&&a().createElement("div",{className:P["loading-icon"]},a().createElement(ae.Bj,{lib:"antd",theme:"outlined",icon:"loading-3-quarters",spinning:!0})),a().createElement("div",{className:s()(P.canvas,{[P.ready]:Be&&Xe}),style:{transform:`translate3d(${Ge.x}px, ${Ge.y}px, 0) scale(${Ge.k})`}},a().createElement("svg",{className:P.edges},Ue.map((e=>e.target===_||e.target===j||e.target===M?null:a().createElement("path",{className:P.edge,key:`${e.source}-${e.target}`,d:e.points.map(((e,t)=>{let{x:n,y:o}=e;return`${0===t?"M":"L"}${n},${o}`})).join(" ")})))),De.map((e=>{var t,n;return a().createElement(en,{key:e.id,id:e.id,type:e.type,username:e.username,content:e.content,job:e.job,startTime:null==ne?void 0:ne.startTime,instructionLoading:"instruction"===e.type&&!ot.has(e.id)&&!ie.QB.includes(e.state)&&!ie.X4.includes(Ee),isLeaf:!ot.has(e.id),x:null===(t=e.view)||void 0===t?void 0:t.x,y:null===(n=e.view)||void 0===n?void 0:n.y,active:ye===e.id})})))),a().createElement("div",{className:P.widgets},a().createElement(Tt,{nav:be,plan:ue,jobMap:ve,jobLevels:he,currentNavId:ke,taskState:Ee,onClick:e=>{we(`job:${e}`),ct({jobId:e,block:"start"})}}),a().createElement(de,{scale:Ge.k,showUiSwitch:y,onScaleChange:st,onReCenter:it,onSwitchToChat:K}),m?!(null!=ne&&ne.finished)&&a().createElement("div",{className:P["footer-container"]},a().createElement(Xt.A,null)):null!=b&&b.chat?a().createElement("div",{className:P["footer-container"]},a().createElement(St.s,{state:Ee,canChat:nt})):null),_t&&a().createElement(vt,{job:_t}),mt&&a().createElement(yt.f,{views:ge}),bt&&a().createElement(Ot,{file:bt}),w&&ht&&a().createElement(Gt,null)))}function nn(e){let{id:t,type:n,job:r,username:i,content:c,startTime:d,instructionLoading:u,isLeaf:p,x:m,y:f,active:b}=e;const g=(0,o.useRef)(null),{onNodeResize:v,setActiveNodeId:h}=(0,o.useContext)(Oe.Q);(0,o.useEffect)((()=>{const e=g.current;if(!e)return;const n=new l.A((()=>{v(t,[e.offsetWidth,e.offsetHeight])}));return n.observe(e),()=>{n.disconnect(),v(t,null)}}),[t,v]),(0,o.useEffect)((()=>{const e=g.current;if(!e)return;const t=e=>{e.stopPropagation()};return e.addEventListener("mousedown",t),()=>{e.removeEventListener("mousedown",t)}}),[]);const x=(0,o.useCallback)((()=>{"start"!==n&&"instruction"!==n&&h(t)}),[t,h,n]);return a().createElement("div",{className:s()(P.node,{[P.ready]:null!=m&&null!=f}),ref:g,style:{left:m,top:f},onClick:x},"start"===n?a().createElement(fe,null):"end"===n?a().createElement(st,null):"feedback"===n?a().createElement(jt.k,null):"requirement"===n?a().createElement(we,{username:i,content:c,startTime:d,active:b}):"loading"===n?a().createElement(Dt,null):"error"===n?a().createElement(Qt,{content:c}):"replay"===n?a().createElement(Xt.A,{finished:!0}):"instruction"===n?a().createElement(Se,{content:r.instruction,loading:u}):"view"===n?a().createElement(ct,{job:r,active:b}):a().createElement(ot,{job:r,active:b,isLeaf:p}))}},90108:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(36758),a=n.n(o),r=n(40935),i=n.n(r)()(a());i.push([e.id,".human-action--WMMvJhMD{display:flex;justify-content:center;align-items:center;padding:24px 12px;background:rgba(62,67,102,0.05);box-shadow:0px 1px 0px 0px rgba(255,255,255,0.5);border-radius:9px}",""]),i.locals={"human-action":"human-action--WMMvJhMD"};const s=i},91417:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(36758),a=n.n(o),r=n(40935),i=n.n(r)()(a());i.push([e.id,".error--D_UJOZDA{color:var(--color-error);padding:8px;white-space:pre-wrap;word-break:break-word}",""]),i.locals={error:"error--D_UJOZDA"};const s=i},91776:(e,t,n)=>{e.exports=n.p+"images/a1d108f4.png"}}]);
|
|
2
|
+
//# sourceMappingURL=9328.c93d9ac1.js.map
|