@next-bricks/vb-experiment 1.3.16 → 1.3.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/bricks.json +3 -3
  2. package/dist/chunks/1563.e386a37f.js +2 -0
  3. package/dist/chunks/1563.e386a37f.js.map +1 -0
  4. package/dist/chunks/2357.2fb15b99.js +2 -0
  5. package/dist/chunks/2357.2fb15b99.js.map +1 -0
  6. package/dist/chunks/3483.c5ce1021.js +3 -0
  7. package/dist/chunks/3483.c5ce1021.js.LICENSE.txt +7 -0
  8. package/dist/chunks/3483.c5ce1021.js.map +1 -0
  9. package/dist/chunks/4212.c9d10eb9.js +2 -0
  10. package/dist/chunks/4212.c9d10eb9.js.map +1 -0
  11. package/dist/chunks/6746.1bd8aaa8.js +15 -0
  12. package/dist/chunks/6746.1bd8aaa8.js.map +1 -0
  13. package/dist/chunks/app-playground.12d062e1.js +2 -0
  14. package/dist/chunks/app-playground.12d062e1.js.map +1 -0
  15. package/dist/chunks/app-preview.12cdd3e2.js +2 -0
  16. package/dist/chunks/app-preview.12cdd3e2.js.map +1 -0
  17. package/dist/chunks/main.4a8e170f.js +2 -0
  18. package/dist/chunks/main.4a8e170f.js.map +1 -0
  19. package/dist/chunks/tsx-playground.c67c0906.js +2 -0
  20. package/dist/chunks/tsx-playground.c67c0906.js.map +1 -0
  21. package/dist/index.d90bf964.js +2 -0
  22. package/dist/index.d90bf964.js.map +1 -0
  23. package/dist/manifest.json +28 -15
  24. package/dist/types.json +27 -0
  25. package/dist-types/tsx-playground/index.d.ts +7 -0
  26. package/dist-types/tsx-playground/workers/tsxParser.d.ts +1 -1
  27. package/package.json +2 -2
  28. package/dist/chunks/1469.083be8f8.js +0 -2
  29. package/dist/chunks/1469.083be8f8.js.map +0 -1
  30. package/dist/chunks/1772.9590b4a1.js +0 -3
  31. package/dist/chunks/1772.9590b4a1.js.map +0 -1
  32. package/dist/chunks/2857.bfd7ab6b.js +0 -2
  33. package/dist/chunks/2857.bfd7ab6b.js.map +0 -1
  34. package/dist/chunks/3735.6be3dc55.js +0 -15
  35. package/dist/chunks/3735.6be3dc55.js.LICENSE.txt +0 -5
  36. package/dist/chunks/3735.6be3dc55.js.map +0 -1
  37. package/dist/chunks/4154.371b28c0.js +0 -2
  38. package/dist/chunks/4154.371b28c0.js.map +0 -1
  39. package/dist/chunks/843.2b31d687.js +0 -2
  40. package/dist/chunks/843.2b31d687.js.map +0 -1
  41. package/dist/chunks/app-playground.0745e311.js +0 -2
  42. package/dist/chunks/app-playground.0745e311.js.map +0 -1
  43. package/dist/chunks/app-preview.9fb1e8fc.js +0 -2
  44. package/dist/chunks/app-preview.9fb1e8fc.js.map +0 -1
  45. package/dist/chunks/main.5eb0373c.js +0 -2
  46. package/dist/chunks/main.5eb0373c.js.map +0 -1
  47. package/dist/chunks/tsx-playground.edb19559.js +0 -2
  48. package/dist/chunks/tsx-playground.edb19559.js.map +0 -1
  49. package/dist/index.b762a597.js +0 -2
  50. package/dist/index.b762a597.js.map +0 -1
  51. /package/dist/chunks/{1772.9590b4a1.js.LICENSE.txt → 6746.1bd8aaa8.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d90bf964.js","mappings":"uBAAIA,EACAC,ECDAC,EAIAC,EAIAC,EAIAC,EAIAC,EAGAC,EAIAC,EAeAC,EAQAC,EAMAC,EAGAC,EAOAC,EAMAC,EAGAC,EAQAC,EAcAC,EAYAC,EAgBAC,EACAC,EA4BAC,EAiEAC,E,kBCvNJ,IAAIC,EAAY,CACf,2BAA4B,IACpBC,QAAQC,IAAgC,CAACC,EAAoBC,EAAE,MAAOD,EAAoBC,EAAE,MAAOD,EAAoBC,EAAE,MAAOD,EAAoBC,EAAE,MAAOD,EAAoBC,EAAE,KAAMD,EAAoBC,EAAE,QAAQC,MAAK,IAAM,IAASF,EAAoB,QAEvQ,mBAAoB,IACZF,QAAQC,IAAwB,CAACC,EAAoBC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AAYxI,IAG7CyI,GAAsBA,EAAQ5J,EAClC,CAEA,IADGwJ,GAA4BA,EAA2BC,GACrD7F,EAAI8F,EAAS7F,OAAQD,IACzBvB,EAAUqH,EAAS9F,GAChB5D,EAAoBM,EAAEyI,EAAiB1G,IAAY0G,EAAgB1G,IACrE0G,EAAgB1G,GAAS,KAE1B0G,EAAgB1G,GAAW,CAC5B,EAIGyH,EAAqBnH,WAAmD,uCAAIA,WAAmD,wCAAK,GACxImH,EAAmB/E,QAAQwE,EAAqBrE,KAAK,KAAM,IAC3D4E,EAAmBxG,KAAOiG,EAAqBrE,KAAK,KAAM4E,EAAmBxG,KAAK4B,KAAK4E,G,KCrFvF9J,EAAoBmE,QAAK1D,ECGzB,IAAIsJ,EAAsB/J,EAAoB,M","sources":["webpack:///webpack/runtime/load script","webpack:///webpack/runtime/consumes","webpack:///webpack/container-entry","webpack:///webpack/bootstrap","webpack:///webpack/runtime/compat get default export","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/ensure chunk","webpack:///webpack/runtime/get javascript chunk filename","webpack:///webpack/runtime/global","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///webpack/runtime/node module decorator","webpack:///webpack/runtime/sharing","webpack:///webpack/runtime/publicPath","webpack:///webpack/runtime/jsonp chunk loading","webpack:///webpack/runtime/nonce","webpack:///webpack/startup"],"sourcesContent":["var inProgress = {};\nvar dataWebpackPrefix = \"@next-bricks/vb-experiment:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","var parseVersion = (str) => {\n\t// see webpack/lib/util/semver.js for original code\n\tvar p=p=>{return p.split(\".\").map((p=>{return+p==p?+p:p}))},n=/^([^-+]+)?(?:-([^+]+))?(?:\\+(.+))?$/.exec(str),r=n[1]?p(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,p(n[2]))),n[3]&&(r.push([]),r.push.apply(r,p(n[3]))),r;\n}\nvar versionLt = (a, b) => {\n\t// see webpack/lib/util/semver.js for original code\n\ta=parseVersion(a),b=parseVersion(b);for(var r=0;;){if(r>=a.length)return r<b.length&&\"u\"!=(typeof b[r])[0];var e=a[r],n=(typeof e)[0];if(r>=b.length)return\"u\"==n;var t=b[r],f=(typeof t)[0];if(n!=f)return\"o\"==n&&\"n\"==f||(\"s\"==f||\"u\"==n);if(\"o\"!=n&&\"u\"!=n&&e!=t)return e<t;r++}\n}\nvar rangeToString = (range) => {\n\t// see webpack/lib/util/semver.js for original code\n\tvar r=range[0],n=\"\";if(1===range.length)return\"*\";if(r+.5){n+=0==r?\">=\":-1==r?\"<\":1==r?\"^\":2==r?\"~\":r>0?\"=\":\"!=\";for(var e=1,a=1;a<range.length;a++){e--,n+=\"u\"==(typeof(t=range[a]))[0]?\"-\":(e>0?\".\":\"\")+(e=2,t)}return n}var g=[];for(a=1;a<range.length;a++){var t=range[a];g.push(0===t?\"not(\"+o()+\")\":1===t?\"(\"+o()+\" || \"+o()+\")\":2===t?g.pop()+\" \"+g.pop():rangeToString(t))}return o();function o(){return g.pop().replace(/^\\((.+)\\)$/,\"$1\")}\n}\nvar satisfy = (range, version) => {\n\t// see webpack/lib/util/semver.js for original code\n\tif(0 in range){version=parseVersion(version);var e=range[0],r=e<0;r&&(e=-e-1);for(var n=0,i=1,a=!0;;i++,n++){var f,s,g=i<range.length?(typeof range[i])[0]:\"\";if(n>=version.length||\"o\"==(s=(typeof(f=version[n]))[0]))return!a||(\"u\"==g?i>e&&!r:\"\"==g!=r);if(\"u\"==s){if(!a||\"u\"!=g)return!1}else if(a)if(g==s)if(i<=e){if(f!=range[i])return!1}else{if(r?f>range[i]:f<range[i])return!1;f!=range[i]&&(a=!1)}else if(\"s\"!=g&&\"n\"!=g){if(r||i<=e)return!1;a=!1,i--}else{if(i<=e||s<g!=r)return!1;a=!1}else\"s\"!=g&&\"n\"!=g&&(a=!1,i--)}}var t=[],o=t.pop.bind(t);for(n=1;n<range.length;n++){var u=range[n];t.push(1==u?o()|o():2==u?o()&o():u?satisfy(u,version):!o())}return!!o();\n}\nvar exists = (scope, key) => {\n\treturn scope && __webpack_require__.o(scope, key);\n}\nvar get = (entry) => {\n\tentry.loaded = 1;\n\treturn entry.get()\n};\nvar eagerOnly = (versions) => {\n\treturn Object.keys(versions).reduce((filtered, version) => {\n\t\t\tif (versions[version].eager) {\n\t\t\t\tfiltered[version] = versions[version];\n\t\t\t}\n\t\t\treturn filtered;\n\t}, {});\n};\nvar findLatestVersion = (scope, key, eager) => {\n\tvar versions = eager ? eagerOnly(scope[key]) : scope[key];\n\tvar key = Object.keys(versions).reduce((a, b) => {\n\t\treturn !a || versionLt(a, b) ? b : a;\n\t}, 0);\n\treturn key && versions[key];\n};\nvar findSatisfyingVersion = (scope, key, requiredVersion, eager) => {\n\tvar versions = eager ? eagerOnly(scope[key]) : scope[key];\n\tvar key = Object.keys(versions).reduce((a, b) => {\n\t\tif (!satisfy(requiredVersion, b)) return a;\n\t\treturn !a || versionLt(a, b) ? b : a;\n\t}, 0);\n\treturn key && versions[key]\n};\nvar findSingletonVersionKey = (scope, key, eager) => {\n\tvar versions = eager ? eagerOnly(scope[key]) : scope[key];\n\treturn Object.keys(versions).reduce((a, b) => {\n\t\treturn !a || (!versions[a].loaded && versionLt(a, b)) ? b : a;\n\t}, 0);\n};\nvar getInvalidSingletonVersionMessage = (scope, key, version, requiredVersion) => {\n\treturn \"Unsatisfied version \" + version + \" from \" + (version && scope[key][version].from) + \" of shared singleton module \" + key + \" (required \" + rangeToString(requiredVersion) + \")\"\n};\nvar getInvalidVersionMessage = (scope, scopeName, key, requiredVersion, eager) => {\n\tvar versions = scope[key];\n\treturn \"No satisfying version (\" + rangeToString(requiredVersion) + \")\" + (eager ? \" for eager consumption\" : \"\") + \" of shared module \" + key + \" found in shared scope \" + scopeName + \".\\n\" +\n\t\t\"Available versions: \" + Object.keys(versions).map((key) => {\n\t\treturn key + \" from \" + versions[key].from;\n\t}).join(\", \");\n};\nvar fail = (msg) => {\n\tthrow new Error(msg);\n}\nvar failAsNotExist = (scopeName, key) => {\n\treturn fail(\"Shared module \" + key + \" doesn't exist in shared scope \" + scopeName);\n}\nvar warn = /*#__PURE__*/ (msg) => {\n\tif (typeof console !== \"undefined\" && console.warn) console.warn(msg);\n};\nvar init = (fn) => (function(scopeName, key, eager, c, d) {\n\tvar promise = __webpack_require__.I(scopeName);\n\tif (promise && promise.then && !eager) {\n\t\treturn promise.then(fn.bind(fn, scopeName, __webpack_require__.S[scopeName], key, false, c, d));\n\t}\n\treturn fn(scopeName, __webpack_require__.S[scopeName], key, eager, c, d);\n});\n\nvar useFallback = (scopeName, key, fallback) => {\n\treturn fallback ? fallback() : failAsNotExist(scopeName, key);\n}\nvar load = /*#__PURE__*/ init((scopeName, scope, key, eager, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\treturn get(findLatestVersion(scope, key, eager));\n});\nvar loadVersion = /*#__PURE__*/ init((scopeName, scope, key, eager, requiredVersion, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar satisfyingVersion = findSatisfyingVersion(scope, key, requiredVersion, eager);\n\tif (satisfyingVersion) return get(satisfyingVersion);\n\twarn(getInvalidVersionMessage(scope, scopeName, key, requiredVersion, eager))\n\treturn get(findLatestVersion(scope, key, eager));\n});\nvar loadStrictVersion = /*#__PURE__*/ init((scopeName, scope, key, eager, requiredVersion, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar satisfyingVersion = findSatisfyingVersion(scope, key, requiredVersion, eager);\n\tif (satisfyingVersion) return get(satisfyingVersion);\n\tif (fallback) return fallback();\n\tfail(getInvalidVersionMessage(scope, scopeName, key, requiredVersion, eager));\n});\nvar loadSingleton = /*#__PURE__*/ init((scopeName, scope, key, eager, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar version = findSingletonVersionKey(scope, key, eager);\n\treturn get(scope[key][version]);\n});\nvar loadSingletonVersion = /*#__PURE__*/ init((scopeName, scope, key, eager, requiredVersion, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar version = findSingletonVersionKey(scope, key, eager);\n\tif (!satisfy(requiredVersion, version)) {\n\t\twarn(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));\n\t}\n\treturn get(scope[key][version]);\n});\nvar loadStrictSingletonVersion = /*#__PURE__*/ init((scopeName, scope, key, eager, requiredVersion, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar version = findSingletonVersionKey(scope, key, eager);\n\tif (!satisfy(requiredVersion, version)) {\n\t\tfail(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));\n\t}\n\treturn get(scope[key][version]);\n});\nvar installedModules = {};\nvar moduleToHandlerMapping = {\n\t563: () => (loadSingletonVersion(\"default\", \"lodash\", false, [0], () => (__webpack_require__.e(5250).then(() => (() => (__webpack_require__(5250))))))),\n\t1916: () => (loadSingletonVersion(\"default\", \"moment\", false, [0], () => (Promise.all([__webpack_require__.e(7721), __webpack_require__.e(9844)]).then(() => (() => (__webpack_require__(9420))))))),\n\t5310: () => (loadSingletonVersion(\"default\", \"js-yaml\", false, [0], () => (__webpack_require__.e(9515).then(() => (() => (__webpack_require__(9515))))))),\n\t580: () => (loadSingletonVersion(\"default\", \"@babel/parser\", false, [0], () => (__webpack_require__.e(6773).then(() => (() => (__webpack_require__(6773))))))),\n\t7019: () => (loadSingletonVersion(\"default\", \"@next-core/utils/general\", false, [1,1,8,7], () => (__webpack_require__.e(871).then(() => (() => (__webpack_require__(871))))))),\n\t848: () => (loadSingletonVersion(\"default\", \"i18next-browser-languagedetector\", false, [0], () => (__webpack_require__.e(726).then(() => (() => (__webpack_require__(726))))))),\n\t5630: () => (loadSingletonVersion(\"default\", \"i18next\", false, [0], () => (__webpack_require__.e(2357).then(() => (() => (__webpack_require__(2357))))))),\n\t9733: () => (loadSingletonVersion(\"default\", \"@next-core/i18n\", false, [0], () => (Promise.all([__webpack_require__.e(671), __webpack_require__.e(3171)]).then(() => (() => (__webpack_require__(5552))))))),\n\t9933: () => (loadSingletonVersion(\"default\", \"@next-core/pipes\", false, [0], () => (__webpack_require__.e(6519).then(() => (() => (__webpack_require__(6519))))))),\n\t8377: () => (loadSingletonVersion(\"default\", \"@easyops-cn/brick-next-pipes\", false, [0], () => (Promise.all([__webpack_require__.e(4306), __webpack_require__.e(563), __webpack_require__.e(1916), __webpack_require__.e(5310)]).then(() => (() => (__webpack_require__(4306))))))),\n\t8769: () => (loadStrictVersion(\"default\", \"react\", false, [6,0,0,0,,\"experimental-ee8509801-20230117\"], () => (__webpack_require__.e(4041).then(() => (() => (__webpack_require__(4041))))))),\n\t870: () => (loadStrictVersion(\"default\", \"@next-core/element\", false, [1,1,2,19], () => (__webpack_require__.e(3426).then(() => (() => (__webpack_require__(1045))))))),\n\t9435: () => (loadStrictVersion(\"default\", \"react-dom\", false, [6,0,0,0,,\"experimental-ee8509801-20230117\"], () => (__webpack_require__.e(3144).then(() => (() => (__webpack_require__(3144))))))),\n\t348: () => (loadSingletonVersion(\"default\", \"@next-core/runtime\", false, [1,1,71,0], () => (Promise.all([__webpack_require__.e(948), __webpack_require__.e(563), __webpack_require__.e(7019), __webpack_require__.e(1321), __webpack_require__.e(9655), __webpack_require__.e(1916), __webpack_require__.e(9733), __webpack_require__.e(6345)]).then(() => (() => (__webpack_require__(948))))))),\n\t981: () => (loadStrictVersion(\"default\", \"@next-core/react-element\", false, [1,1,0,38], () => (Promise.all([__webpack_require__.e(870), __webpack_require__.e(9435), __webpack_require__.e(7733)]).then(() => (() => (__webpack_require__(114))))))),\n\t1321: () => (loadSingletonVersion(\"default\", \"@next-core/cook\", false, [0], () => (Promise.all([__webpack_require__.e(1122), __webpack_require__.e(580)]).then(() => (() => (__webpack_require__(1122))))))),\n\t9655: () => (loadSingletonVersion(\"default\", \"@next-core/utils/storyboard\", false, [1,1,8,7], () => (__webpack_require__.e(4765).then(() => (() => (__webpack_require__(7146))))))),\n\t1361: () => (loadSingletonVersion(\"default\", \"@next-core/http\", false, [0], () => (__webpack_require__.e(1370).then(() => (() => (__webpack_require__(8989))))))),\n\t1732: () => (loadSingletonVersion(\"default\", \"history\", false, [0], () => (__webpack_require__.e(5384).then(() => (() => (__webpack_require__(5384))))))),\n\t1858: () => (loadSingletonVersion(\"default\", \"moment/locale/zh-cn.js\", false, [0], () => (Promise.all([__webpack_require__.e(7721), __webpack_require__.e(9844)]).then(() => (() => (__webpack_require__(1329))))))),\n\t4167: () => (loadSingletonVersion(\"default\", \"@next-core/supply\", false, [0], () => (Promise.all([__webpack_require__.e(9933), __webpack_require__.e(1940)]).then(() => (() => (__webpack_require__(9559))))))),\n\t5599: () => (loadSingletonVersion(\"default\", \"@next-core/loader\", false, [0], () => (__webpack_require__.e(5399).then(() => (() => (__webpack_require__(5399))))))),\n\t9283: () => (loadSingletonVersion(\"default\", \"@next-core/inject\", false, [0], () => (Promise.all([__webpack_require__.e(9933), __webpack_require__.e(4658)]).then(() => (() => (__webpack_require__(2277))))))),\n\t4419: () => (loadSingletonVersion(\"default\", \"@next-core/theme\", false, [1,1,6,1], () => (__webpack_require__.e(1889).then(() => (() => (__webpack_require__(1889))))))),\n\t709: () => (loadStrictVersion(\"default\", \"@next-core/react-runtime\", false, [1,1,7,39], () => (Promise.all([__webpack_require__.e(348), __webpack_require__.e(7218)]).then(() => (() => (__webpack_require__(4837)))))))\n};\n// no consumes in initial chunks\nvar chunkMapping = {\n\t\"348\": [\n\t\t348\n\t],\n\t\"563\": [\n\t\t563\n\t],\n\t\"580\": [\n\t\t580\n\t],\n\t\"671\": [\n\t\t848,\n\t\t5630\n\t],\n\t\"709\": [\n\t\t709\n\t],\n\t\"870\": [\n\t\t870\n\t],\n\t\"981\": [\n\t\t981\n\t],\n\t\"1321\": [\n\t\t1321\n\t],\n\t\"1916\": [\n\t\t1916\n\t],\n\t\"4419\": [\n\t\t4419\n\t],\n\t\"5310\": [\n\t\t5310\n\t],\n\t\"6345\": [\n\t\t1361,\n\t\t1732,\n\t\t1858,\n\t\t4167,\n\t\t5599,\n\t\t9283\n\t],\n\t\"6519\": [\n\t\t8377\n\t],\n\t\"7019\": [\n\t\t7019\n\t],\n\t\"8769\": [\n\t\t8769\n\t],\n\t\"9435\": [\n\t\t9435\n\t],\n\t\"9655\": [\n\t\t9655\n\t],\n\t\"9733\": [\n\t\t9733\n\t],\n\t\"9933\": [\n\t\t9933\n\t]\n};\nvar startedInstallModules = {};\n__webpack_require__.f.consumes = (chunkId, promises) => {\n\tif(__webpack_require__.o(chunkMapping, chunkId)) {\n\t\tchunkMapping[chunkId].forEach((id) => {\n\t\t\tif(__webpack_require__.o(installedModules, id)) return promises.push(installedModules[id]);\n\t\t\tif(!startedInstallModules[id]) {\n\t\t\tvar onFactory = (factory) => {\n\t\t\t\tinstalledModules[id] = 0;\n\t\t\t\t__webpack_require__.m[id] = (module) => {\n\t\t\t\t\tdelete __webpack_require__.c[id];\n\t\t\t\t\tmodule.exports = factory();\n\t\t\t\t}\n\t\t\t};\n\t\t\tstartedInstallModules[id] = true;\n\t\t\tvar onError = (error) => {\n\t\t\t\tdelete installedModules[id];\n\t\t\t\t__webpack_require__.m[id] = (module) => {\n\t\t\t\t\tdelete __webpack_require__.c[id];\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\t\t\t};\n\t\t\ttry {\n\t\t\t\tvar promise = moduleToHandlerMapping[id]();\n\t\t\t\tif(promise.then) {\n\t\t\t\t\tpromises.push(installedModules[id] = promise.then(onFactory)['catch'](onError));\n\t\t\t\t} else onFactory(promise);\n\t\t\t} catch(e) { onError(e); }\n\t\t\t}\n\t\t});\n\t}\n}","var moduleMap = {\n\t\"./export-as-source-files\": () => {\n\t\treturn Promise.all(/* export-as-source-files */[__webpack_require__.e(8135), __webpack_require__.e(6894), __webpack_require__.e(9752), __webpack_require__.e(7019), __webpack_require__.e(246), __webpack_require__.e(6494)]).then(() => (() => ((__webpack_require__(1012)))));\n\t},\n\t\"./export-widgets\": () => {\n\t\treturn Promise.all(/* export-widgets */[__webpack_require__.e(6894), __webpack_require__.e(7019), __webpack_require__.e(269)]).then(() => (() => ((__webpack_require__(8466)))));\n\t},\n\t\"./tsx-playground\": () => {\n\t\treturn Promise.all(/* tsx-playground */[__webpack_require__.e(8135), __webpack_require__.e(3483), __webpack_require__.e(563), __webpack_require__.e(7019), __webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(348), __webpack_require__.e(981), __webpack_require__.e(1321), __webpack_require__.e(9655), __webpack_require__.e(4419), __webpack_require__.e(709), __webpack_require__.e(3058)]).then(() => (() => ((__webpack_require__(5022)))));\n\t},\n\t\"./app-playground\": () => {\n\t\treturn Promise.all(/* app-playground */[__webpack_require__.e(8135), __webpack_require__.e(3483), __webpack_require__.e(563), __webpack_require__.e(7019), __webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(1321), __webpack_require__.e(9655), __webpack_require__.e(4419), __webpack_require__.e(709), __webpack_require__.e(2510)]).then(() => (() => ((__webpack_require__(9142)))));\n\t},\n\t\"./app-preview\": () => {\n\t\treturn Promise.all(/* app-preview */[__webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(348), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(7983)]).then(() => (() => ((__webpack_require__(875)))));\n\t}\n};\nvar get = (module, getScope) => {\n\t__webpack_require__.R = getScope;\n\tgetScope = (\n\t\t__webpack_require__.o(moduleMap, module)\n\t\t\t? moduleMap[module]()\n\t\t\t: Promise.resolve().then(() => {\n\t\t\t\tthrow new Error('Module \"' + module + '\" does not exist in container.');\n\t\t\t})\n\t);\n\t__webpack_require__.R = undefined;\n\treturn getScope;\n};\nvar init = (shareScope, initScope) => {\n\tif (!__webpack_require__.S) return;\n\tvar name = \"default\"\n\tvar oldScope = __webpack_require__.S[name];\n\tif(oldScope && oldScope !== shareScope) throw new Error(\"Container initialization failed as it has already been initialized with a different share scope\");\n\t__webpack_require__.S[name] = shareScope;\n\treturn __webpack_require__.I(name, initScope);\n};\n\n// This exports getters to disallow modifications\n__webpack_require__.d(exports, {\n\tget: () => (get),\n\tinit: () => (init)\n});","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n// expose the module cache\n__webpack_require__.c = __webpack_module_cache__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"chunks/\" + ({\"269\":\"export-widgets\",\"2510\":\"app-playground\",\"3058\":\"tsx-playground\",\"6494\":\"export-as-source-files\",\"7983\":\"app-preview\"}[chunkId] || chunkId) + \".\" + {\"114\":\"02b24711\",\"246\":\"3c1287e4\",\"269\":\"1562a8ae\",\"726\":\"cff7efcc\",\"871\":\"7f3be2fb\",\"948\":\"1b677be1\",\"1045\":\"21cab61f\",\"1122\":\"e8137c1f\",\"1370\":\"a95013f8\",\"1889\":\"e2b26594\",\"1940\":\"94c2f81b\",\"2052\":\"d93bd2a2\",\"2277\":\"cafa9fa6\",\"2357\":\"2fb15b99\",\"2510\":\"12d062e1\",\"3058\":\"c67c0906\",\"3144\":\"7b88e520\",\"3171\":\"bee73fe6\",\"3426\":\"b09ed5b7\",\"3483\":\"c5ce1021\",\"4041\":\"245c34a2\",\"4212\":\"c9d10eb9\",\"4306\":\"8fed0680\",\"4658\":\"906b7eb7\",\"4765\":\"3a3c2ed3\",\"4837\":\"05a838ee\",\"5250\":\"068cc2c9\",\"5384\":\"8a54d475\",\"5399\":\"22dcdc27\",\"5552\":\"96d83691\",\"6494\":\"5accf195\",\"6519\":\"c8005938\",\"6773\":\"87d0ae93\",\"6894\":\"03ec90f3\",\"7146\":\"a8c80bcf\",\"7218\":\"b5820c83\",\"7721\":\"510882be\",\"7733\":\"5b0ddb7e\",\"7983\":\"12cdd3e2\",\"8135\":\"e17b904e\",\"8989\":\"440ca8ad\",\"9515\":\"aa5c47c7\",\"9559\":\"599a63bf\",\"9752\":\"12c61013\",\"9844\":\"bcb533dc\"}[chunkId] + \".js\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.S = {};\nvar initPromises = {};\nvar initTokens = {};\n__webpack_require__.I = (name, initScope) => {\n\tif(!initScope) initScope = [];\n\t// handling circular init calls\n\tvar initToken = initTokens[name];\n\tif(!initToken) initToken = initTokens[name] = {};\n\tif(initScope.indexOf(initToken) >= 0) return;\n\tinitScope.push(initToken);\n\t// only runs once\n\tif(initPromises[name]) return initPromises[name];\n\t// creates a new share scope if needed\n\tif(!__webpack_require__.o(__webpack_require__.S, name)) __webpack_require__.S[name] = {};\n\t// runs all init snippets from all modules reachable\n\tvar scope = __webpack_require__.S[name];\n\tvar warn = (msg) => {\n\t\tif (typeof console !== \"undefined\" && console.warn) console.warn(msg);\n\t};\n\tvar uniqueName = \"@next-bricks/vb-experiment\";\n\tvar register = (name, version, factory, eager) => {\n\t\tvar versions = scope[name] = scope[name] || {};\n\t\tvar activeVersion = versions[version];\n\t\tif(!activeVersion || (!activeVersion.loaded && (!eager != !activeVersion.eager ? eager : uniqueName > activeVersion.from))) versions[version] = { get: factory, from: uniqueName, eager: !!eager };\n\t};\n\tvar initExternal = (id) => {\n\t\tvar handleError = (err) => (warn(\"Initialization of sharing external failed: \" + err));\n\t\ttry {\n\t\t\tvar module = __webpack_require__(id);\n\t\t\tif(!module) return;\n\t\t\tvar initFn = (module) => (module && module.init && module.init(__webpack_require__.S[name], initScope))\n\t\t\tif(module.then) return promises.push(module.then(initFn, handleError));\n\t\t\tvar initResult = initFn(module);\n\t\t\tif(initResult && initResult.then) return promises.push(initResult['catch'](handleError));\n\t\t} catch(err) { handleError(err); }\n\t}\n\tvar promises = [];\n\tswitch(name) {\n\t\tcase \"default\": {\n\t\t\tregister(\"@babel/parser\", \"7.27.2\", () => (__webpack_require__.e(6773).then(() => (() => (__webpack_require__(6773))))));\n\t\t\tregister(\"@easyops-cn/brick-next-pipes\", \"0.7.6\", () => (Promise.all([__webpack_require__.e(4306), __webpack_require__.e(563), __webpack_require__.e(1916), __webpack_require__.e(5310)]).then(() => (() => (__webpack_require__(4306))))));\n\t\t\tregister(\"@next-core/cook\", \"2.5.12\", () => (Promise.all([__webpack_require__.e(1122), __webpack_require__.e(580)]).then(() => (() => (__webpack_require__(1122))))));\n\t\t\tregister(\"@next-core/element\", \"1.2.19\", () => (__webpack_require__.e(1045).then(() => (() => (__webpack_require__(1045))))));\n\t\t\tregister(\"@next-core/http\", \"1.2.14\", () => (__webpack_require__.e(8989).then(() => (() => (__webpack_require__(8989))))));\n\t\t\tregister(\"@next-core/i18n\", \"1.0.86\", () => (Promise.all([__webpack_require__.e(7019), __webpack_require__.e(671), __webpack_require__.e(9733), __webpack_require__.e(5552)]).then(() => (() => (__webpack_require__(5552))))));\n\t\t\tregister(\"@next-core/inject\", \"1.0.61\", () => (Promise.all([__webpack_require__.e(563), __webpack_require__.e(9933), __webpack_require__.e(2277)]).then(() => (() => (__webpack_require__(2277))))));\n\t\t\tregister(\"@next-core/loader\", \"1.6.17\", () => (__webpack_require__.e(5399).then(() => (() => (__webpack_require__(5399))))));\n\t\t\tregister(\"@next-core/pipes\", \"2.0.36\", () => (__webpack_require__.e(6519).then(() => (() => (__webpack_require__(6519))))));\n\t\t\tregister(\"@next-core/react-element\", \"1.0.38\", () => (Promise.all([__webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(9435), __webpack_require__.e(114)]).then(() => (() => (__webpack_require__(114))))));\n\t\t\tregister(\"@next-core/react-runtime\", \"1.7.39\", () => (Promise.all([__webpack_require__.e(563), __webpack_require__.e(8769), __webpack_require__.e(348), __webpack_require__.e(981), __webpack_require__.e(4837)]).then(() => (() => (__webpack_require__(4837))))));\n\t\t\tregister(\"@next-core/runtime\", \"1.71.0\", () => (Promise.all([__webpack_require__.e(948), __webpack_require__.e(563), __webpack_require__.e(7019), __webpack_require__.e(1321), __webpack_require__.e(9655), __webpack_require__.e(1916), __webpack_require__.e(9733), __webpack_require__.e(6345)]).then(() => (() => (__webpack_require__(948))))));\n\t\t\tregister(\"@next-core/supply\", \"2.3.9\", () => (Promise.all([__webpack_require__.e(563), __webpack_require__.e(9933), __webpack_require__.e(1916), __webpack_require__.e(9559)]).then(() => (() => (__webpack_require__(9559))))));\n\t\t\tregister(\"@next-core/theme\", \"1.6.1\", () => (Promise.all([__webpack_require__.e(1889), __webpack_require__.e(2052)]).then(() => (() => (__webpack_require__(1889))))));\n\t\t\tregister(\"@next-core/utils/general\", \"1.8.7\", () => (__webpack_require__.e(871).then(() => (() => (__webpack_require__(871))))));\n\t\t\tregister(\"@next-core/utils/storyboard\", \"1.8.7\", () => (Promise.all([__webpack_require__.e(563), __webpack_require__.e(7019), __webpack_require__.e(1321), __webpack_require__.e(7146)]).then(() => (() => (__webpack_require__(7146))))));\n\t\t\tregister(\"history\", \"4.10.1\", () => (__webpack_require__.e(5384).then(() => (() => (__webpack_require__(5384))))));\n\t\t\tregister(\"i18next-browser-languagedetector\", \"7.2.2\", () => (__webpack_require__.e(726).then(() => (() => (__webpack_require__(726))))));\n\t\t\tregister(\"i18next\", \"22.5.1\", () => (__webpack_require__.e(2357).then(() => (() => (__webpack_require__(2357))))));\n\t\t\tregister(\"js-yaml\", \"3.14.1\", () => (__webpack_require__.e(9515).then(() => (() => (__webpack_require__(9515))))));\n\t\t\tregister(\"lodash\", \"4.17.21\", () => (__webpack_require__.e(5250).then(() => (() => (__webpack_require__(5250))))));\n\t\t\tregister(\"moment/locale/zh-cn.js\", \"2.30.1\", () => (Promise.all([__webpack_require__.e(7721), __webpack_require__.e(9844)]).then(() => (() => (__webpack_require__(1329))))));\n\t\t\tregister(\"moment\", \"2.30.1\", () => (Promise.all([__webpack_require__.e(7721), __webpack_require__.e(9844)]).then(() => (() => (__webpack_require__(9420))))));\n\t\t\tregister(\"react-dom\", \"0.0.0-experimental-ee8509801-20230117\", () => (Promise.all([__webpack_require__.e(3144), __webpack_require__.e(8769)]).then(() => (() => (__webpack_require__(3144))))));\n\t\t\tregister(\"react\", \"0.0.0-experimental-ee8509801-20230117\", () => (__webpack_require__.e(4041).then(() => (() => (__webpack_require__(4041))))));\n\t\t}\n\t\tbreak;\n\t}\n\tif(!promises.length) return initPromises[name] = 1;\n\treturn initPromises[name] = Promise.all(promises).then(() => (initPromises[name] = 1));\n};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) {\n\t\t\tvar i = scripts.length - 1;\n\t\t\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\n\t\t}\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/^blob:/, \"\").replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","__webpack_require__.b = document.baseURI || self.location.href;\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t632: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(!/^(5(310|63|80)|70(|1)9|87(0|69)|9([79]33|435|655|81)|1321|1916|348|4419|6345|671)$/.test(chunkId)) {\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n// no on chunks loaded\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunk_next_bricks_vb_experiment\"] = globalThis[\"webpackChunk_next_bricks_vb_experiment\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","__webpack_require__.nc = undefined;","// module cache are used so entry inlining is disabled\n// startup\n// Load entry module and return exports\nvar __webpack_exports__ = __webpack_require__(9970);\n"],"names":["inProgress","dataWebpackPrefix","parseVersion","versionLt","rangeToString","satisfy","exists","get","eagerOnly","findSatisfyingVersion","findSingletonVersionKey","getInvalidSingletonVersionMessage","getInvalidVersionMessage","fail","warn","init","useFallback","loadStrictVersion","loadSingletonVersion","installedModules","moduleToHandlerMapping","chunkMapping","startedInstallModules","moduleMap","Promise","all","__webpack_require__","e","then","module","getScope","R","o","resolve","Error","undefined","shareScope","initScope","S","name","oldScope","I","d","exports","__webpack_module_cache__","moduleId","cachedModule","id","loaded","__webpack_modules__","call","m","c","n","getter","__esModule","a","definition","key","Object","defineProperty","enumerable","f","chunkId","keys","reduce","promises","u","g","globalThis","this","Function","window","obj","prop","prototype","hasOwnProperty","l","url","done","push","script","needAttach","scripts","document","getElementsByTagName","i","length","s","getAttribute","createElement","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","forEach","fn","setTimeout","bind","type","target","head","appendChild","r","Symbol","toStringTag","value","nmd","paths","children","initPromises","initTokens","initToken","indexOf","scope","uniqueName","register","version","factory","eager","versions","activeVersion","from","scriptUrl","importScripts","location","currentScript","tagName","toUpperCase","test","replace","p","str","split","map","exec","apply","b","t","range","pop","entry","filtered","requiredVersion","scopeName","join","msg","console","fallback","failAsNotExist","promise","satisfyingVersion","consumes","onFactory","onError","error","baseURI","self","href","installedChunks","j","installedChunkData","reject","errorType","realSrc","message","request","webpackJsonpCallback","parentChunkLoadingFunction","data","chunkIds","moreModules","runtime","some","chunkLoadingGlobal","__webpack_exports__"],"sourceRoot":""}
@@ -16,6 +16,19 @@
16
16
  "name": "extraLibs",
17
17
  "attribute": false,
18
18
  "type": "ExtraLib[]"
19
+ },
20
+ {
21
+ "name": "viewLibs",
22
+ "attribute": false,
23
+ "type": "SourceFile[]"
24
+ },
25
+ {
26
+ "name": "withoutWrapper",
27
+ "type": "boolean"
28
+ },
29
+ {
30
+ "name": "allowAnyBricks",
31
+ "type": "boolean"
19
32
  }
20
33
  ],
21
34
  "events": [
@@ -31,21 +44,6 @@
31
44
  "parts": [],
32
45
  "description": "构件 `vb-experiment.tsx-playground`"
33
46
  },
34
- {
35
- "name": "vb-experiment.app-preview",
36
- "properties": [
37
- {
38
- "name": "storyboard",
39
- "attribute": false,
40
- "type": "Storyboard"
41
- }
42
- ],
43
- "events": [],
44
- "slots": [],
45
- "methods": [],
46
- "parts": [],
47
- "description": "构件 `vb-experiment.app-preview`"
48
- },
49
47
  {
50
48
  "name": "vb-experiment.app-playground",
51
49
  "properties": [
@@ -73,6 +71,21 @@
73
71
  "methods": [],
74
72
  "parts": [],
75
73
  "description": "构件 `vb-experiment.app-playground`"
74
+ },
75
+ {
76
+ "name": "vb-experiment.app-preview",
77
+ "properties": [
78
+ {
79
+ "name": "storyboard",
80
+ "attribute": false,
81
+ "type": "Storyboard"
82
+ }
83
+ ],
84
+ "events": [],
85
+ "slots": [],
86
+ "methods": [],
87
+ "parts": [],
88
+ "description": "构件 `vb-experiment.app-preview`"
76
89
  }
77
90
  ],
78
91
  "providers": [
package/dist/types.json CHANGED
@@ -174,6 +174,33 @@
174
174
  }
175
175
  }
176
176
  }
177
+ },
178
+ {
179
+ "name": "viewLibs",
180
+ "annotation": {
181
+ "type": "array",
182
+ "elementType": {
183
+ "type": "reference",
184
+ "typeName": {
185
+ "type": "identifier",
186
+ "name": "SourceFile"
187
+ }
188
+ }
189
+ }
190
+ },
191
+ {
192
+ "name": "withoutWrapper",
193
+ "annotation": {
194
+ "type": "keyword",
195
+ "value": "boolean"
196
+ }
197
+ },
198
+ {
199
+ "name": "allowAnyBricks",
200
+ "annotation": {
201
+ "type": "keyword",
202
+ "value": "boolean"
203
+ }
177
204
  }
178
205
  ],
179
206
  "events": [
@@ -1,10 +1,14 @@
1
1
  import React from "react";
2
2
  import { ReactNextElement } from "@next-core/react-element";
3
3
  import type { ExtraLib } from "@next-bricks/vs/code-editor";
4
+ import type { SourceFile } from "@next-tsx/parser";
4
5
  import "@next-core/theme";
5
6
  export interface TsxPlaygroundProps {
6
7
  source?: string;
7
8
  extraLibs?: ExtraLib[];
9
+ viewLibs?: SourceFile[];
10
+ withoutWrapper?: boolean;
11
+ allowAnyBricks?: boolean;
8
12
  }
9
13
  /**
10
14
  * 构件 `vb-experiment.tsx-playground`
@@ -14,5 +18,8 @@ export declare class TsxPlayground extends ReactNextElement implements TsxPlaygr
14
18
  /** 仅初始有效 */
15
19
  accessor source: string | undefined;
16
20
  accessor extraLibs: ExtraLib[] | undefined;
21
+ accessor viewLibs: SourceFile[] | undefined;
22
+ accessor withoutWrapper: boolean | undefined;
23
+ accessor allowAnyBricks: boolean | undefined;
17
24
  render(): React.JSX.Element;
18
25
  }
@@ -1,4 +1,4 @@
1
- import type { ParsedApp, ParseOptions, SourceFile } from "@next-shared/tsx-parser";
1
+ import type { ParsedApp, ParseOptions, SourceFile } from "@next-tsx/parser";
2
2
  export interface RemoteTsxParserWorker {
3
3
  parseView(source: string, options?: ParseOptions): Promise<ParsedApp>;
4
4
  parseApp(files: SourceFile[]): Promise<ParsedApp>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/vb-experiment",
3
- "version": "1.3.16",
3
+ "version": "1.3.18",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/vb-experiment",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,5 +38,5 @@
38
38
  "peerDependencies": {
39
39
  "@next-bricks/vs": "*"
40
40
  },
41
- "gitHead": "92d114b51e52f53f6ee4acc8322ad2caebbb3667"
41
+ "gitHead": "661dc7a85d28c62a4eaca4ba626e18e3c59f3d11"
42
42
  }
@@ -1,2 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_vb_experiment=globalThis.webpackChunk_next_bricks_vb_experiment||[]).push([[1469],{1469:(e,t,n)=>{var r=n(7019),o=n(2461),i=n.n(o),s=n(5060),a=n(2408),l=n(1914),c=n(3242),u=n(77),d=n(4437),p=n(6337),m=n(1672),f=n(743),h=n(7577),g=n(2582),x=n(535),y=n(4215),v=n(1330),w=n(3812),b=n(1259),A=n(1895),k=n(6414),E=n(7585),_=n(6357),j=n(7837);async function N(e){let{typescript:t,semi:n=!0,printWidth:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return await(0,a.GP)(e,{parser:t?"babel-ts":"babel",plugins:[l,c],semi:n,printWidth:r,trailingComma:"es5"})}async function S(e,t,n){for(const r of e){const e=[...n,r.name];if("folder"===r.type){const n=t.folder(r.name);await S(r.items,n,e)}else t.file(`${r.name}.js${"routes"===r.nodeType||"bricks"===r.nodeType||"template"===r.nodeType?"x":""}`,await N((0,m.c)(r.node,r.nodeType,e)))}}function $(e){for(const[t,n]of Object.entries(e))switch(t){case"items":if(Array.isArray(n))for(const e of n)C(e);break;case"type":"main"===n&&delete e[t];break;case"if":break;case"i18n":0===Object.keys(n).length&&delete e[t];break;default:null!==n&&!1!==n||delete e[t]}}function C(e){for(const[t,n]of Object.entries(e))switch(t){case"children":Array.isArray(n)&&n.length>0&&C(n);break;case"if":break;case"activeExcludes":case"activeIncludes":Array.isArray(n)&&0===n.length&&delete e[t];break;default:null!==n&&!1!==n||delete e[t]}}customElements.define("vb-experiment.export-as-source-files",(0,r.createProviderClass)((async function(e){var t,n,r,o,a,l;let{projectDetail:c,storyboard:C}=e;const L=new(i()),T=L.folder("project"),P=T.folder("src"),M={extracts:[],namePool:new Map},R=(0,d.WM)(C.routes,[],M),W={id:c.appId,name:c.name,homepage:c.appSetting.homepage,layoutType:c.appSetting.layoutType,theme:c.appSetting.theme,noAuthGuard:c.appSetting.noAuthGuard,locales:c.appSetting.locales,defaultConfig:JSON.parse(c.appSetting.defaultConfig||"{}"),menuIcon:JSON.parse(c.appSetting.icon||"null"),standaloneMode:!0};P.file("app.js",await N(`export default ${JSON.stringify(W,null,2)};`));const I=null!==(t=C.meta)&&void 0!==t?t:{},O=null!==(n=I.customTemplates)&&void 0!==n?n:[],F=null!==(r=I.functions)&&void 0!==r?r:[],D=null!==(o=I.menus)&&void 0!==o?o:[],B=null!==(a=I.contracts)&&void 0!==a?a:[],H=null!==(l=I.i18n)&&void 0!==l?l:{};delete I.customTemplates,delete I.functions,delete I.menus,delete I.contracts,delete I.i18n,delete I.workflows,delete I.mocks,delete I.userGroups;const J=(0,d.pA)(O,["components"],M);M.extracts.push({name:"index",path:["components"],node:J,nodeType:"others"});const V=(0,p._)(M.extracts);P.file("index.js",h),P.file("routes.jsx",await N((0,m.c)(R,"routes",["routes.jsx"])));const z=P.folder("resources"),q=z.folder("functions"),G=[],U=[];for(const e of F){if("index"===e.name)throw new Error('Unexpected function name: "index"');const t=new Set;let{code:n}=(0,u.transform)(e.source,{filename:"expr."+(e.typescript?"ts":"js"),plugins:[...e.typescript?["syntax-typescript"]:[],_.A,[j.A,{imports:t}]]});const r=t.has("FN");r&&t.delete("FN");const o=[];t.size>0&&o.push(`import { ${[...t].join(", ")} } from "next-jsx/runtime";`),r&&o.push('import FN from "./index.js";'),o.length>0&&(n=`${o.join("\n")}\n\n${n}`),q.file(`${e.name}.${e.typescript?"ts":"js"}`,n),U.push(`import ${e.name} from "./${e.name}.js";`),G.push(e.name)}q.file("index.js",await N(`${U.join("\n")}\n\nconst FN = { ${G.join(",")} };\n\nexport default FN;`));const X=z.folder("menus"),Z=[],Y=[];for(const e of D){if($(e),"index"===e.menuId)throw new Error('Unexpected menu id: "index"');const t=`${e.menuId}.js`;X.file(t,await N((0,m.c)(e,"menu",["resources","menus",t])));let n=e.menuId.replace(/^\d+|[^\w]+/g,"_");E.bB.has(n)&&(n=`${n}__2`),Y.push(`import ${n} from "./${t}";`),Z.push(n)}X.file("index.js",await N(`${Y.join("\n")}\n\nexport default [${Z.join(",")}]`));const K=z.folder("contracts"),Q=[],ee=new Set;for(const e of B){const t=e.name.replace(/^\d+|[^\w]+/g,"_");let n=2,r=t;for(;ee.has(r)||E.bB.has(r)||"index"===r;)r=`${t}_${n++}`;ee.add(r),K.file(`${r}.js`,await N(`export default ${JSON.stringify(e)};`)),Q.push(`import ${r} from "./${r}.js";`)}K.file("index.js",await N(`${Q.join("\n")}\n\nexport default [${[...ee].join(",")}]`)),z.folder("i18n").file("index.js",await N(`export default ${JSON.stringify(H)};`)),z.file("meta.js",await N(`export default ${JSON.stringify(I,null,2)};`)),z.file("index.js",f),await S(V,P,[]),T.folder("mock-micro-apps").folder(c.appId).file(".gitignore","*\n!.gitignore"),T.file(".editorconfig",g),T.file(".gitignore",x),T.file("dev.config.mjs",v),T.file("declarations.d.ts",y),T.file("jsconfig.json",w),T.file("next-jsx.config.js",b.replaceAll("__APP_ID__",c.appId)),T.file("package.json",A.replaceAll("__APP_ID__",c.appId)),T.file("README.md",k.replaceAll("__PROJECT_NAME__",c.name).replaceAll("__PROJECT_HOMEPAGE__",c.appSetting.homepage));const te=await L.generateAsync({type:"blob"});(0,s.saveAs)(te,"project.zip")}))),customElements.define("vb-experiment.export-widgets",(0,r.createProviderClass)((async function(e){let{name:t,files:n}=e;const r=new Map,o=new(i()),a=o.folder("widgets").folder(t);for(const{path:e,content:t}of n){const n=e.split("/"),o=n.pop();let i=a,s=1;for(const e of n){const t=n.slice(0,s).join("/"),o=r.get(t);o?i=o:(i=i.folder(e),r.set(t,i)),s++}i.file(o,t)}const l=await o.generateAsync({type:"blob"});(0,s.saveAs)(l,`${t}.zip`)})));var L=n(4635),T=n(918),P=n(6902),M=n(5536),R=n(6121),W=n(829),I=n(2740),O=n(8769),F=n.n(O),D=n(870),B=n(348),H=n(981),J=n(709),V=n(563),z=n(5146),q=n(2518),G=n(6806);let U;function X(e){return e.replace(/^export /m,"").replace(/^import [^\n]+\n/gm,"")}var Z=n(3808);function Y(e,t){return{brick:"div",properties:{style:t.expanded?{background:"rgba(255, 255, 255, 0.9)",backdropFilter:"blur(10px)",borderRadius:"16px",padding:"24px"}:{background:"var(--elevo-component-background)",backdropFilter:"var(--elevo-component-backdrop-filter)",borderRadius:"var(--elevo-border-radius)",padding:"16px"}},children:e}}n(4419);var K=n(2591),Q=n.n(K),ee=n(1740),te=n.n(ee),ne=n(8128),re=n.n(ne),oe=n(855),ie=n.n(oe),se=n(3051),ae=n.n(se),le=n(3656),ce=n.n(le),ue=n(8957),de={};de.styleTagTransform=ce(),de.setAttributes=ie(),de.insert=re().bind(null,"head"),de.domAPI=te(),de.insertStyleElement=ae(),Q()(ue.A,de);const pe=ue.A&&ue.A.locals?ue.A.locals:void 0;var me,fe=n(1746);let he,ge,xe,ye,ve,we,be,Ae,ke;const Ee=F().lazy((async()=>({default:await(0,J.asyncWrapBrick)("vs.code-editor",{onCodeChange:"code.change"})}))),_e=[{filePath:"/node_modules/next-tsx/components.d.ts",content:q.replaceAll("export interface","interface")},{filePath:"/node_modules/next-tsx/package.json",content:JSON.stringify({name:"next-tsx",types:"./index.d.ts"})},{filePath:"/node_modules/next-tsx/index.d.ts",content:z}],{defineElement:je,property:Ne,event:Se}=(0,D.createDecorators)();let $e;var Ce=new WeakMap,Le=new WeakMap,Te=new WeakMap,Pe=new WeakSet,Me=new WeakMap;class Re extends H.ReactNextElement{constructor(){super(...arguments),(0,L.A)(this,Pe),(0,T.A)(this,Ce,ge(this)),(0,T.A)(this,Le,(xe(this),ye(this))),(0,T.A)(this,Te,(ve(this),we(this))),(0,T.A)(this,Me,(ke(this),e=>{var t;null===(t=(0,M.A)(Pe,this,be))||void 0===t||t.emit(e)}))}get source(){return(0,W.A)(Ce,this)}set source(e){(0,R.A)(Ce,this,e)}get extraLibs(){return(0,W.A)(Le,this)}set extraLibs(e){(0,R.A)(Le,this,e)}render(){return F().createElement(Ie,{source:this.source,extraLibs:this.extraLibs,onChange:(0,W.A)(Me,this)})}}function We(e){switch(e){case"notice":return"Hint";case"warning":return"Warning";case"error":case"fatal":return"Error"}return e}function Ie(e){let{source:t,extraLibs:n,onChange:r}=e;const[o,i]=(0,O.useState)(null!=t?t:""),s=(0,O.useDeferredValue)(o),[a,l]=(0,O.useState)(),[c,u]=(0,O.useState)(),d=(0,O.useMemo)((()=>[..._e,...null!=n?n:[]]),[n]),p=(0,O.useCallback)((e=>{i(e.detail),r(e.detail)}),[r]);(0,O.useEffect)((()=>{let e=!1;return async function(){const t=await(0,fe.f)();if(e)return;const n=await t.parseView(s);if(e)return;u(n);const r=n.errors.filter((e=>!!e.node));r.length>0?l(r.map((e=>({message:e.message,severity:We(e.severity),startLineNumber:e.node.loc.start.line,startColumn:e.node.loc.start.column+1,endLineNumber:e.node.loc.end.line,endColumn:e.node.loc.end.column+1})))):l(void 0)}(),()=>{e=!0}}),[s]);const m=(0,O.useMemo)((()=>(0,V.uniqueId)()),[]),f=(0,O.useRef)(null),h=(0,O.useRef)(null);return(0,O.useEffect)((()=>{const e=f.current;if(!e)return;const t=function(e){const t=document.createElement("div");return t.dataset.rootId=e,t.style.position="absolute",t.style.width=t.style.height="0",document.body.append(t),t}(m),n=(0,B.unstable_createRoot)(e,{portal:t,supportsUseChildren:!0});return h.current=n,()=>{n.unmount(),t.remove(),h.current=null}}),[m]),(0,O.useEffect)((()=>{let e=!1;return(async()=>{if(!c)return;let t;try{var n;if(t=await async function(e,t){const{entry:n}=e;if(!n)throw new Error("No entry module found in the view.");const r={usedHelpers:new Set,app:e},o=await(0,G.A)(n,r,t),{defaultExport:i,internals:s,namedExports:a}=o;if(!i)throw new Error("No view found in the entry module.");const l=[],c=[];for(const e of[...s,...a.values()])"function"===e.type?l.push(e.function):"template"===e.type&&c.push({name:(0,Z.$)(e.name,t.rootId),bricks:e.bricks,state:e.context});const u=Array.from(r.usedHelpers).map((e=>{const t=(U||(U=new Map([["_helper_mergeTexts",X('export function mergeTexts(\n ...items: (\n | { type: "text"; text: string }\n | { type: "expression"; value: unknown }\n )[]\n): string {\n function mergeValuesAsText(value: unknown): string {\n if (Array.isArray(value)) {\n return value.map(mergeValuesAsText).join("");\n }\n const type = typeof value;\n if (type === "string" || type === "number") {\n return String(value);\n }\n if (type === "object" && value !== null) {\n throw new Error("Can not render object as text");\n }\n return "";\n }\n\n const texts: string[] = [];\n for (const item of items) {\n if (item.type === "text") {\n texts.push(item.text.trim());\n } else {\n texts.push(mergeValuesAsText(item.value));\n }\n }\n return texts.join("");\n}\n')],["_helper_getLatestMetricValue",X('import { pipes as PIPES } from "@easyops-cn/brick-next-pipes";\n\nexport function getLatestMetricValue(\n list: Record<string, any>[] | undefined,\n {\n metric,\n precision,\n }: { metric: { id: string; unit: string }; precision?: number }\n) {\n const value = list?.findLast?.((item) => item[metric.id] != null)?.[\n metric.id\n ];\n const unit = metric.unit === "load" ? "" : metric.unit;\n return PIPES.unitFormat(value, unit, precision).join("");\n}\n')],["_helper_extractList",X("export function extractList<T = unknown>(data: T[] | { list: T[] }): T[] {\n if (Array.isArray(data)) {\n return data;\n }\n return data?.list;\n}\n")],["_helper_groupMetricData",X("export function groupMetricData(\n list: Record<string, any>[],\n groupField: string\n) {\n if (!list || !Array.isArray(list) || list.length === 0) {\n return [];\n }\n const grouped = new Map<\n string,\n { group: string; list: Record<string, any>[] }\n >();\n for (const item of list) {\n const key = item[groupField];\n let groupedList = grouped.get(key);\n if (!groupedList) {\n grouped.set(key, (groupedList = { group: key, list: [] }));\n }\n groupedList.list.push(item);\n }\n return Array.from(grouped.values());\n}\n")],["_helper_getMetricDisplayNames",X("export function getMetricDisplayNames(\n displayNameList:\n | { metric_name: string; metric_display_name: string }[]\n | undefined,\n metricNames: string[]\n): string[] {\n return metricNames.map(\n (metricName) =>\n displayNameList?.find((item) => item.metric_name === metricName)\n ?.metric_display_name ?? metricName\n );\n}\n")]])),U).get(e);if(!t)throw new Error(`Helper function ${e} not found`);return{name:e,source:t,typescript:!0}})),{title:d,bricks:p,context:m}=i;return{title:d,brick:{brick:"eo-content-layout",children:p.every((e=>["eo-form","eo-descriptions","eo-button"].includes(e.brick)))?[Y(p,t)]:p},context:[...m,...t.withContexts?Object.entries(t.withContexts).map((e=>{let[t,n]=e;return{name:t,value:n}})):[]],functions:[...l,...u],templates:c}}(c,{rootId:m,expanded:!0}),e)return;const{brick:r,context:o,functions:i,templates:s}=null!=t?t:{};await(null===(n=h.current)||void 0===n?void 0:n.render(null!=r?r:[],{context:o,functions:i,templates:s}))}catch(e){var r;console.error("Failed to render view:",e),null===(r=h.current)||void 0===r||r.render({brick:customElements.get("easyops-default-error")?"easyops-default-error":"div",properties:{errorTitle:"解析失败",dataset:{errorBoundary:""},style:{color:"var(--color-error)"}},children:[{brick:"div",properties:{textContent:(0,B.httpErrorToString)(e)}}]})}})(),()=>{e=!0}}),[m,c]),F().createElement("div",{className:pe.container},F().createElement("div",{className:pe.editor},F().createElement(O.Suspense,{fallback:"Loading..."},F().createElement(Ee,{value:t,onCodeChange:p,language:"typescript",uri:"file:///view.tsx",automaticLayout:"fit-container",theme:"tm-vs-dark",extraLibs:d,extraMarkers:a,"data-override-theme":"dark-v2"}))),F().createElement("div",{className:pe.preview},F().createElement("div",{"data-root-id":m,ref:f})))}me=Re,({e:[ge,xe,ye,ve,we,be,Ae,ke],c:[$e,he]}=(0,I.A)(me,[je("vb-experiment.tsx-playground",{shadowOptions:!1})],[[Ne({attribute:!1}),1,"source"],[Ne({attribute:!1}),1,"extraLibs"],[Se({type:"change"}),1,"change",e=>(0,W.A)(Te,e),(e,t)=>(0,R.A)(Te,e,t)]],0,(e=>Me.has((0,P.A)(e))),H.ReactNextElement)),he();var Oe,Fe=n(4504);let De,Be,He;const{defineElement:Je,property:Ve}=(0,D.createDecorators)();let ze;var qe=new WeakMap;class Ge extends H.ReactNextElement{constructor(){super(...arguments),(0,T.A)(this,qe,Be(this)),He(this)}get storyboard(){return(0,W.A)(qe,this)}set storyboard(e){(0,R.A)(qe,this,e)}render(){return F().createElement(Ue,{storyboard:this.storyboard})}}function Ue(e){let{storyboard:t}=e;const n=(0,O.useRef)(null),[r,o]=(0,O.useState)(null),i=(0,O.useCallback)((()=>{const e=()=>{var t;const r=null===(t=n.current)||void 0===t||null===(t=t.contentWindow)||void 0===t?void 0:t._preview_only_appPreviewer;r?o(r):setTimeout(e,100)};e()}),[]),s=(0,O.useRef)(null);return(0,O.useEffect)((()=>{if(!r||!t)return;const e={id:"lab-app-preview",name:"Lab: App Preview",homepage:"/lab-app-preview"};if(s.current){let n=!1;return s.current.then((()=>{n||(r.update(e.id,{...t,app:e}),r.reload())})),()=>{n=!0}}s.current=r.setup({brickPackages:B.__secret_internals.getBrickPackages(),storyboards:[{...t,app:e}]},e.homepage)}),[r,t]),F().createElement("div",{className:"container"},F().createElement("iframe",{ref:n,src:`${(0,B.getBasePath)()}lab/?_experimental_app_preview_=1`,loading:"lazy",onLoad:i}))}Oe=Ge,({e:[Be,He],c:[ze,De]}=(0,I.A)(Oe,[Je("vb-experiment.app-preview",{styleTexts:[Fe.A]})],[[Ve({attribute:!1}),1,"storyboard"]],0,void 0,H.ReactNextElement)),De();var Xe=n(2826),Ze=n(3303),Ye=n(4373),Ke={};Ke.styleTagTransform=ce(),Ke.setAttributes=ie(),Ke.insert=re().bind(null,"head"),Ke.domAPI=te(),Ke.insertStyleElement=ae(),Q()(Ye.A,Ke);const Qe=Ye.A&&Ye.A.locals?Ye.A.locals:void 0;var et;let tt,nt,rt,ot,it,st,at,lt,ct;const ut=F().lazy((async()=>({default:await(0,J.asyncWrapBrick)("vs.code-editor",{onCodeChange:"code.change"})}))),dt=(0,H.wrapBrick)("vb-experiment.app-preview"),pt=[{filePath:"/node_modules/next-tsx/components.d.ts",content:q.replaceAll("export interface","interface")},{filePath:"/node_modules/next-tsx/package.json",content:JSON.stringify({name:"next-tsx",types:"./index.d.ts"})},{filePath:"/node_modules/next-tsx/index.d.ts",content:z}],{defineElement:mt,property:ft,event:ht}=(0,D.createDecorators)();let gt;var xt=new WeakMap,yt=new WeakMap,vt=new WeakMap,wt=new WeakSet,bt=new WeakMap;class At extends H.ReactNextElement{constructor(){super(...arguments),(0,L.A)(this,wt),(0,T.A)(this,xt,nt(this)),(0,T.A)(this,yt,(rt(this),ot(this))),(0,T.A)(this,vt,(it(this),st(this))),(0,T.A)(this,bt,(ct(this),e=>{var t;null===(t=(0,M.A)(wt,this,at))||void 0===t||t.emit(e)}))}get source(){return(0,W.A)(xt,this)}set source(e){(0,R.A)(xt,this,e)}get extraLibs(){return(0,W.A)(yt,this)}set extraLibs(e){(0,R.A)(yt,this,e)}render(){return F().createElement(Et,{source:this.source,extraLibs:this.extraLibs,onChange:(0,W.A)(bt,this)})}}function kt(e){switch(e){case"notice":return"Hint";case"warning":return"Warning";case"error":case"fatal":return"Error"}return e}function Et(e){let{source:t,extraLibs:n,onChange:r}=e;const[o,i]=(0,O.useState)(null!=t?t:""),s=(0,O.useDeferredValue)(o),[a,l]=(0,O.useState)(),[c,u]=(0,O.useState)(),d=(0,O.useMemo)((()=>[...pt,...null!=n?n:[]]),[n]),p=(0,O.useCallback)((e=>{i(e.detail),r(e.detail)}),[r]);(0,O.useEffect)((()=>{let e=!1;return async function(){const t=await(0,fe.f)();if(e)return;const n=await t.parseApp([{filePath:"index.tsx",content:s}]);if(e)return;u(n);const r=n.errors.filter((e=>!!e.node));r.length>0?l(r.map((e=>({message:e.message,severity:kt(e.severity),startLineNumber:e.node.loc.start.line,startColumn:e.node.loc.start.column+1,endLineNumber:e.node.loc.end.line,endColumn:e.node.loc.end.column+1})))):l(void 0)}(),()=>{e=!0}}),[s]);const m=(0,O.useMemo)((()=>(0,V.uniqueId)()),[]),[f,h]=(0,O.useState)();return(0,O.useEffect)((()=>{let e=!1;return(async()=>{if(!c)return;let t;try{if(t=await async function(e,t){var n,r;const{entry:o}=e;if(!o)throw new Error("No entry module found in the app.");const i=o.render;if(!i)throw new Error("No render call found in the entry module.");const{children:s}=i;if(1!==s.length)throw new Error(`Expects exactly one root component in the render call, but got ${s.length}.`);const a=s[0];if(!(0,Xe.dN)(a,"Routes"))throw new Error(`The root component must be <Routes> from "${Ze.F}".`);let l;const c=new Map,u={usedHelpers:new Set,app:e},d=[],p=[];return await Promise.all(Array.from(e.modules).map((async e=>{let[n,r]=e;if(r){const e=await(0,G.A)(r,u,t);c.set(n,e),r===o&&(l=e);for(const t of[...e.internals,...e.namedExports.values()])"function"===t.type?d.push(t.function):"template"===t.type&&p.push({name:(0,Z.v)(t.name),bricks:t.bricks,state:t.context})}}))),{routes:null!==(n=null===(r=a.children)||void 0===r?void 0:r.map((e=>{if(!(0,Xe.dN)(e,"Route"))throw new Error(`All children of <Routes> must be <Route> from "${Ze.F}".`);const{path:t,component:n}=e.properties;if("string"!=typeof t||!t.startsWith("/"))throw new Error('The "path" property of <Route> must be a string starting with "/".');if(!n)throw new Error('The "component" property of <Route> is required.');const{reference:r}=n;let o;if("local"===r.type)o=[...l.internals,...l.namedExports.values()].find((e=>"function"!==e.type&&e.name&&e.name===r.name));else{const e=c.get(r.importSource);if(!e)throw new Error(`Cannot find the module "${r.importSource}" imported by the route "${t}".`);o=r.name?e.namedExports.get(r.name):e.defaultExport}if(!o)throw new Error(`Cannot find the component "${r.name}" used in the route "${t}".`);if("page"!==o.type)throw new Error(`The component "${r.name}" used in the route "${t}" must be a page component.`);return{path:`\${APP.homepage}${"/"===t?"":t}`,bricks:o.bricks,context:o.context}})))&&void 0!==n?n:[],meta:{functions:d,templates:p}}}(c,{rootId:m,expanded:!0}),e)return;h(t)}catch(e){console.error("Failed to render app:",e)}})(),()=>{e=!0}}),[m,c]),F().createElement("div",{className:Qe.container},F().createElement("div",{className:Qe.editor},F().createElement(O.Suspense,{fallback:"Loading..."},F().createElement(ut,{value:t,onCodeChange:p,language:"typescript",uri:"file:///view.tsx",automaticLayout:"fit-container",theme:"tm-vs-dark",extraLibs:d,extraMarkers:a,"data-override-theme":"dark-v2"}))),F().createElement("div",{className:Qe.preview},F().createElement(dt,{storyboard:f})))}et=At,({e:[nt,rt,ot,it,st,at,lt,ct],c:[gt,tt]}=(0,I.A)(et,[mt("vb-experiment.app-playground",{shadowOptions:!1})],[[ft({attribute:!1}),1,"source"],[ft({attribute:!1}),1,"extraLibs"],[ht({type:"change"}),1,"change",e=>(0,W.A)(vt,e),(e,t)=>(0,R.A)(vt,e,t)]],0,(e=>bt.has((0,P.A)(e))),H.ReactNextElement)),tt()},4373:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(6758),o=n.n(r),i=n(935),s=n.n(i)()(o());s.push([e.id,".container--AW813tLb{display:flex;height:100%}.editor--B5m74LRR,\n.preview--THWZoCIv{flex:1;min-width:0}.preview--THWZoCIv{padding:0;height:100%}",""]),s.locals={container:"container--AW813tLb",editor:"editor--B5m74LRR",preview:"preview--THWZoCIv"};const a=s},4504:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(6758),o=n.n(r),i=n(935),s=n.n(i)()(o());s.push([e.id,":host{display:block;height:100%}:host([hidden]){display:none}*{box-sizing:border-box}.container,\niframe{width:100%;height:100%;border-radius:4px}iframe{display:block;border:none;margin:0;padding:0;transform-origin:0% 0%;-webkit-user-select:none;user-select:none}",""]);const a=s.toString()},8957:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(6758),o=n.n(r),i=n(935),s=n.n(i)()(o());s.push([e.id,".container--M22i1CYq{display:flex;height:100%}.editor--kF8SUoBP,\n.preview--gu5OlS2X{flex:1;min-width:0}.preview--gu5OlS2X{padding:1em;overflow:auto}",""]),s.locals={container:"container--M22i1CYq",editor:"editor--kF8SUoBP",preview:"preview--gu5OlS2X"};const a=s}}]);
2
- //# sourceMappingURL=1469.083be8f8.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chunks/1469.083be8f8.js","mappings":"mYA8RAA,eAAeC,EACbC,GAEiB,IADjB,WAAEC,EAAU,KAAEC,GAAO,EAAI,WAAEC,GAA6BC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,CAAC,EAE5D,aAAaG,EAAAA,EAAAA,IAAOP,EAAQ,CAC1BQ,OAAQP,EAAa,WAAa,QAClCQ,QAAS,CAACC,EAAqBC,GAC/BT,OACAC,aACAS,cAAe,OAEnB,CAEAd,eAAee,EACbC,EACAC,EACAC,GAEA,IAAK,MAAMC,KAAQH,EAAO,CACxB,MAAMI,EAAY,IAAIF,EAAMC,EAAKE,MACjC,GAAkB,WAAdF,EAAKG,KAAmB,CAC1B,MAAMC,EAAcN,EAAOA,OAAOE,EAAKE,YACjCN,EAAwBI,EAAKH,MAAOO,EAAaH,EACzD,MACEH,EAAOO,KACL,GAAGL,EAAKE,UACY,WAAlBF,EAAKM,UACa,WAAlBN,EAAKM,UACa,aAAlBN,EAAKM,SACD,IACA,WAEAxB,GAASyB,EAAAA,EAAAA,GAASP,EAAKQ,KAAMR,EAAKM,SAAUL,IAGxD,CACF,CAEA,SAASQ,EAAUC,GACjB,IAAK,MAAOC,EAAKC,KAAUC,OAAOC,QAAQJ,GACxC,OAAQC,GACN,IAAK,QACH,GAAII,MAAMC,QAAQJ,GAChB,IAAK,MAAMZ,KAAQY,EACjBK,EAAcjB,GAGlB,MACF,IAAK,OACW,SAAVY,UACKF,EAAKC,GAEd,MACF,IAAK,KACH,MACF,IAAK,OAC+B,IAA9BE,OAAOK,KAAKN,GAAOxB,eACdsB,EAAKC,GAEd,MACF,QACgB,OAAVC,IAA4B,IAAVA,UACbF,EAAKC,GAItB,CAEA,SAASM,EAAcE,GACrB,IAAK,MAAOR,EAAKC,KAAUC,OAAOC,QA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AAC,GAAAC,GAAAK,GAAA8G,GAAAlH,IAAAmH,GAAAwC,GAAAvC,MAAAC,EAAAA,EAAAA,GAAAkE,GAAA,CA5BA7M,GAAc,+BAAgC,CAE7C4I,eAAe,KACf,EAGC3I,GAAS,CAAE4I,WAAW,IAAQ,aAG9B5I,GAAS,CAAE4I,WAAW,IAAQ,gBAG9B3I,GAAM,CAAEnK,KAAM,WAAW,WAAA+S,IAAAlH,EAAAA,EAAAA,GAAApB,GAAAsI,GAAA,CAAAA,EAAAjH,KAAAC,EAAAA,EAAAA,GAAAtB,GAAAsI,EAAAjH,KAAA,GAAAkH,GAAApI,GAAAtF,KAAA2N,EAAAA,EAAAA,GAAAD,KARAlI,EAAAA,mBAAgB6H,I,kEEjFxCoE,E,MAA0B,GAA4B,KAE1DA,EAAwB5S,KAAK,CAAC6S,EAAOvU,GAAI,oJACyC,KAElFsU,EAAwBzN,OAAS,CAChC,UAAa,sBACb,OAAU,mBACV,QAAW,qBAEZ,S,kECVIyN,E,MAA0B,GAA4B,KAE1DA,EAAwB5S,KAAK,CAAC6S,EAAOvU,GAAI,0QAC+H,KAExK,QAAesU,EAAwBE,U,kECLnCF,E,MAA0B,GAA4B,KAE1DA,EAAwB5S,KAAK,CAAC6S,EAAOvU,GAAI,wJAC6C,KAEtFsU,EAAwBzN,OAAS,CAChC,UAAa,sBACb,OAAU,mBACV,QAAW,qBAEZ,S","sources":["webpack:///./src/data-providers/export-as-source-files.ts","webpack:///./src/data-providers/export-widgets.ts","webpack:///../../../src/helpers/index.ts","webpack:///../../src/withBox.ts","webpack:///./src/tsx-playground/styles.module.css?e933","webpack:///./src/tsx-playground/index.tsx","webpack:///./src/tsx-playground/createPortal.ts","webpack:///../../../src/modules/convertView.ts","webpack:///./src/app-preview/index.tsx","webpack:///./src/app-playground/styles.module.css?1659","webpack:///./src/app-playground/index.tsx","webpack:///../../../src/modules/convertApp.ts","webpack:///./src/app-playground/styles.module.css","webpack:///./src/app-preview/styles.shadow.css","webpack:///./src/tsx-playground/styles.module.css"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-non-null-assertion */\nimport type { Storyboard, MicroApp, StoryboardMeta } from \"@next-core/types\";\nimport { createProviderClass } from \"@next-core/utils/general\";\nimport JSZip from \"jszip\";\nimport { saveAs } from \"file-saver\";\nimport { format } from \"prettier/standalone\";\nimport * as prettierPluginBabel from \"prettier/plugins/babel\";\nimport * as prettierPluginEstree from \"prettier/plugins/estree\";\nimport { transform } from \"@babel/standalone\";\nimport {\n ExtractState,\n extractRoutes,\n extractTemplates,\n} from \"./utils/extract.js\";\nimport {\n SourceFileOrFolder,\n buildFileStructure,\n} from \"./utils/buildFileStructure.js\";\nimport { generate } from \"./utils/generators/generate.js\";\nimport srcResourcesIndexJs from \"./raws/src/resources/index.js.txt\";\nimport srcIndexJs from \"./raws/src/index.js.txt\";\nimport editorConfig from \"./raws/.editorconfig.txt\";\nimport gitIgnore from \"./raws/.gitignore.txt\";\nimport declarationsDTs from \"./raws/declarations.d.ts.txt\";\nimport devConfigMjs from \"./raws/dev.config.mjs.txt\";\nimport jsconfigJson from \"./raws/jsconfig.json.txt\";\nimport nextJsxConfigJs from \"./raws/next-jsx.config.js.txt\";\nimport packageJson from \"./raws/package.json.txt\";\nimport readmeMd from \"./raws/README.md.txt\";\nimport { JS_RESERVED_WORDS } from \"./utils/constants.js\";\nimport TransformStoryboardFunction from \"./utils/plugins/storyboard-function.js\";\nimport SmartImports from \"./utils/plugins/smart-imports.js\";\n\nexport interface StoryboardAssemblyResult {\n storyboard: Storyboard;\n\n projectDetail: {\n appId: string;\n name: string;\n appSetting: Pick<\n MicroApp,\n \"homepage\" | \"theme\" | \"locales\" | \"noAuthGuard\"\n > & {\n layoutType?: string;\n defaultConfig?: string;\n icon?: string;\n };\n brickNextVersion?: number;\n };\n}\n\nexport async function exportAsSourceFiles({\n projectDetail,\n storyboard,\n}: StoryboardAssemblyResult): Promise<void> {\n const zip = new JSZip();\n const project = zip.folder(\"project\")!;\n const src = project.folder(\"src\")!;\n\n const extractState: ExtractState = {\n extracts: [],\n namePool: new Map(),\n };\n const extractedRoutes = extractRoutes(storyboard.routes, [], extractState);\n\n const app: MicroApp & { layoutType?: string } = {\n id: projectDetail.appId,\n name: projectDetail.name,\n homepage: projectDetail.appSetting.homepage,\n layoutType: projectDetail.appSetting.layoutType,\n theme: projectDetail.appSetting.theme,\n noAuthGuard: projectDetail.appSetting.noAuthGuard,\n locales: projectDetail.appSetting.locales,\n defaultConfig: JSON.parse(projectDetail.appSetting.defaultConfig || \"{}\"),\n menuIcon: JSON.parse(projectDetail.appSetting.icon || \"null\"),\n standaloneMode: true,\n };\n src.file(\n \"app.js\",\n await formatJs(`export default ${JSON.stringify(app, null, 2)};`)\n );\n\n const meta = (storyboard.meta ?? {}) as StoryboardMeta & {\n workflows?: unknown;\n userGroups?: unknown;\n };\n const customTemplates = meta.customTemplates ?? [];\n const functions = meta.functions ?? [];\n const menus = meta.menus ?? [];\n const contracts = meta.contracts ?? [];\n const i18n = meta.i18n ?? {};\n delete meta.customTemplates;\n delete meta.functions;\n delete meta.menus;\n delete meta.contracts;\n delete meta.i18n;\n delete meta.workflows;\n delete meta.mocks;\n delete meta.userGroups;\n\n const extractedTemplates = extractTemplates(\n customTemplates,\n [\"components\"],\n extractState\n );\n extractState.extracts.push({\n name: \"index\",\n path: [\"components\"],\n node: extractedTemplates,\n nodeType: \"others\",\n });\n\n const fileStructure = buildFileStructure(extractState.extracts);\n\n src.file(\"index.js\", srcIndexJs);\n\n src.file(\n \"routes.jsx\",\n await formatJs(generate(extractedRoutes, \"routes\", [\"routes.jsx\"]))\n );\n\n const resources = src.folder(\"resources\")!;\n\n // Functions\n const fnDir = resources.folder(\"functions\")!;\n const fnNames: string[] = [];\n const fnImports: string[] = [];\n for (const fn of functions) {\n if (fn.name === \"index\") {\n throw new Error('Unexpected function name: \"index\"');\n }\n\n // Prepend with `export default` for functions\n const inferredImports = new Set<string>();\n let { code } = transform(fn.source, {\n filename: `expr.${fn.typescript ? \"ts\" : \"js\"}`,\n plugins: [\n ...(fn.typescript ? [\"syntax-typescript\"] : []),\n TransformStoryboardFunction,\n [\n SmartImports,\n {\n imports: inferredImports,\n },\n ],\n ],\n }) as { code: string };\n const hasFN = inferredImports.has(\"FN\");\n if (hasFN) {\n inferredImports.delete(\"FN\");\n }\n const importStrings: string[] = [];\n if (inferredImports.size > 0) {\n importStrings.push(\n `import { ${[...inferredImports].join(\", \")} } from \"next-jsx/runtime\";`\n );\n }\n if (hasFN) {\n importStrings.push(`import FN from \"./index.js\";`);\n }\n if (importStrings.length > 0) {\n code = `${importStrings.join(\"\\n\")}\\n\\n${code}`;\n }\n\n fnDir.file(`${fn.name}.${fn.typescript ? \"ts\" : \"js\"}`, code);\n fnImports.push(`import ${fn.name} from \"./${fn.name}.js\";`);\n fnNames.push(fn.name);\n }\n fnDir.file(\n \"index.js\",\n await formatJs(\n `${fnImports.join(\"\\n\")}\\n\\nconst FN = { ${fnNames.join(\n \",\"\n )} };\\n\\nexport default FN;`\n )\n );\n\n // Menus\n const menusDir = resources.folder(\"menus\")!;\n const menuNames: string[] = [];\n const menuImports: string[] = [];\n for (const menu of menus) {\n cleanMenu(menu);\n if (menu.menuId === \"index\") {\n throw new Error('Unexpected menu id: \"index\"');\n }\n const filename = `${menu.menuId}.js`;\n menusDir.file(\n filename,\n await formatJs(generate(menu, \"menu\", [\"resources\", \"menus\", filename]))\n );\n let name = menu.menuId.replace(/^\\d+|[^\\w]+/g, \"_\");\n if (JS_RESERVED_WORDS.has(name)) {\n name = `${name}__2`;\n }\n menuImports.push(`import ${name} from \"./${filename}\";`);\n menuNames.push(name);\n }\n menusDir.file(\n \"index.js\",\n await formatJs(\n `${menuImports.join(\"\\n\")}\\n\\nexport default [${menuNames.join(\",\")}]`\n )\n );\n\n // Contracts\n const contractsDir = resources.folder(\"contracts\")!;\n const contractImports: string[] = [];\n const contractNames = new Set<string>();\n for (const contract of contracts) {\n const baseName = contract.name.replace(/^\\d+|[^\\w]+/g, \"_\");\n let counter = 2;\n let varName = baseName;\n while (\n contractNames.has(varName) ||\n JS_RESERVED_WORDS.has(varName) ||\n varName === \"index\"\n ) {\n varName = `${baseName}_${counter++}`;\n }\n contractNames.add(varName);\n\n contractsDir.file(\n `${varName}.js`,\n await formatJs(`export default ${JSON.stringify(contract)};`)\n );\n contractImports.push(`import ${varName} from \"./${varName}.js\";`);\n }\n contractsDir.file(\n \"index.js\",\n await formatJs(\n `${contractImports.join(\"\\n\")}\\n\\nexport default [${[\n ...contractNames,\n ].join(\",\")}]`\n )\n );\n\n resources\n .folder(\"i18n\")!\n .file(\n \"index.js\",\n await formatJs(`export default ${JSON.stringify(i18n)};`)\n );\n resources.file(\n \"meta.js\",\n await formatJs(`export default ${JSON.stringify(meta, null, 2)};`)\n );\n resources.file(\"index.js\", srcResourcesIndexJs);\n\n await generateByFileStructure(fileStructure, src, []);\n\n const appDir = project\n .folder(\"mock-micro-apps\")!\n .folder(projectDetail.appId)!;\n appDir.file(\".gitignore\", \"*\\n!.gitignore\");\n\n project.file(\".editorconfig\", editorConfig);\n project.file(\".gitignore\", gitIgnore);\n project.file(\"dev.config.mjs\", devConfigMjs);\n project.file(\"declarations.d.ts\", declarationsDTs);\n project.file(\"jsconfig.json\", jsconfigJson);\n project.file(\n \"next-jsx.config.js\",\n nextJsxConfigJs.replaceAll(\"__APP_ID__\", projectDetail.appId)\n );\n project.file(\n \"package.json\",\n packageJson.replaceAll(\"__APP_ID__\", projectDetail.appId)\n );\n project.file(\n \"README.md\",\n readmeMd\n .replaceAll(\"__PROJECT_NAME__\", projectDetail.name)\n .replaceAll(\"__PROJECT_HOMEPAGE__\", projectDetail.appSetting.homepage)\n );\n\n const blob = await zip.generateAsync({ type: \"blob\" });\n saveAs(blob, \"project.zip\");\n}\n\ninterface FormatJsOptions {\n typescript?: boolean;\n semi?: boolean;\n printWidth?: number;\n}\n\nasync function formatJs(\n source: string,\n { typescript, semi = true, printWidth }: FormatJsOptions = {}\n): Promise<string> {\n return await format(source, {\n parser: typescript ? \"babel-ts\" : \"babel\",\n plugins: [prettierPluginBabel, prettierPluginEstree as any],\n semi,\n printWidth,\n trailingComma: \"es5\",\n });\n}\n\nasync function generateByFileStructure(\n items: SourceFileOrFolder[],\n folder: JSZip,\n path: string[]\n) {\n for (const item of items) {\n const childPath = [...path, item.name];\n if (item.type === \"folder\") {\n const childFolder = folder.folder(item.name)!;\n await generateByFileStructure(item.items, childFolder, childPath);\n } else {\n folder.file(\n `${item.name}.js${\n item.nodeType === \"routes\" ||\n item.nodeType === \"bricks\" ||\n item.nodeType === \"template\"\n ? \"x\"\n : \"\"\n }`,\n await formatJs(generate(item.node, item.nodeType, childPath))\n );\n }\n }\n}\n\nfunction cleanMenu(menu: Record<string, any>) {\n for (const [key, value] of Object.entries(menu)) {\n switch (key) {\n case \"items\":\n if (Array.isArray(value)) {\n for (const item of value) {\n cleanMenuItem(item);\n }\n }\n break;\n case \"type\":\n if (value === \"main\") {\n delete menu[key];\n }\n break;\n case \"if\":\n break;\n case \"i18n\":\n if (Object.keys(value).length === 0) {\n delete menu[key];\n }\n break;\n default:\n if (value === null || value === false) {\n delete menu[key];\n }\n }\n }\n}\n\nfunction cleanMenuItem(menuItem: Record<string, any>) {\n for (const [key, value] of Object.entries(menuItem)) {\n switch (key) {\n case \"children\":\n if (Array.isArray(value) && value.length > 0) {\n cleanMenuItem(value);\n }\n break;\n case \"if\":\n break;\n case \"activeExcludes\":\n case \"activeIncludes\":\n if (Array.isArray(value) && value.length === 0) {\n delete menuItem[key];\n }\n break;\n default:\n if (value === null || value === false) {\n delete menuItem[key];\n }\n }\n }\n}\n\ncustomElements.define(\n \"vb-experiment.export-as-source-files\",\n createProviderClass(exportAsSourceFiles)\n);\n","import { createProviderClass } from \"@next-core/utils/general\";\nimport JSZip from \"jszip\";\nimport { saveAs } from \"file-saver\";\n\ninterface ExportWidgetsParams {\n name: string;\n files: FileInfo[];\n}\n\ninterface FileInfo {\n path: string;\n content: string;\n}\n\nexport async function exportWidgets({\n name,\n files,\n}: ExportWidgetsParams): Promise<void> {\n const fs = new Map<string, JSZip>();\n const zip = new JSZip();\n const widgets = zip.folder(\"widgets\")!;\n const project = widgets.folder(name)!;\n\n for (const { path, content } of files) {\n const segments = path.split(\"/\");\n const filename = segments.pop()!;\n let handle = project;\n let i = 1;\n for (const segment of segments) {\n const current = segments.slice(0, i).join(\"/\");\n const found = fs.get(current);\n if (found) {\n handle = found;\n } else {\n handle = handle.folder(segment)!;\n fs.set(current, handle);\n }\n i++;\n }\n handle.file(filename, content);\n }\n\n const blob = await zip.generateAsync({ type: \"blob\" });\n saveAs(blob, `${name}.zip`);\n}\n\ncustomElements.define(\n \"vb-experiment.export-widgets\",\n createProviderClass(exportWidgets)\n);\n","import mergeTexts from \"../../../src/helpers/mergeTexts.ts?raw\";\nimport getLatestMetricValue from \"../../../src/helpers/getLatestMetricValue.ts?raw\";\nimport extractList from \"../../../src/helpers/extractList.ts?raw\";\nimport groupMetricData from \"../../../src/helpers/groupMetricData.ts?raw\";\nimport getMetricDisplayNames from \"../../../src/helpers/getMetricDisplayNames.ts?raw\";\n\nlet helperFunctions: Map<string, string> | undefined;\n\nexport function getHelperFunctions() {\n if (!helperFunctions) {\n helperFunctions = new Map([\n [\"_helper_mergeTexts\", fixFunctionSource(mergeTexts)],\n [\"_helper_getLatestMetricValue\", fixFunctionSource(getLatestMetricValue)],\n [\"_helper_extractList\", fixFunctionSource(extractList)],\n [\"_helper_groupMetricData\", fixFunctionSource(groupMetricData)],\n [\n \"_helper_getMetricDisplayNames\",\n fixFunctionSource(getMetricDisplayNames),\n ],\n ]);\n }\n return helperFunctions;\n}\n\nfunction fixFunctionSource(source: string): string {\n return source.replace(/^export /m, \"\").replace(/^import [^\\n]+\\n/gm, \"\");\n}\n","import { BrickConf } from \"@next-core/types\";\nimport type { ConvertOptions } from \"./interfaces.js\";\n\nexport function withBox(\n children: BrickConf[] | undefined,\n options: ConvertOptions\n): BrickConf {\n return {\n brick: \"div\",\n properties: {\n style: options.expanded\n ? {\n background: \"rgba(255, 255, 255, 0.9)\",\n backdropFilter: \"blur(10px)\",\n borderRadius: \"16px\",\n padding: \"24px\",\n }\n : {\n background: \"var(--elevo-component-background)\",\n backdropFilter: \"var(--elevo-component-backdrop-filter)\",\n borderRadius: \"var(--elevo-border-radius)\",\n padding: \"16px\",\n },\n },\n children,\n };\n}\n","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!./styles.module.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!./styles.module.css\";\n export default content && content.locals ? content.locals : undefined;\n","import React, {\n Suspense,\n useCallback,\n useDeferredValue,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport { createDecorators, type EventEmitter } from \"@next-core/element\";\nimport { httpErrorToString, unstable_createRoot } from \"@next-core/runtime\";\nimport { ReactNextElement } from \"@next-core/react-element\";\nimport { asyncWrapBrick } from \"@next-core/react-runtime\";\nimport { uniqueId } from \"lodash\";\nimport type {\n CodeEditor,\n CodeEditorProps,\n ExtraLib,\n ExtraMarker,\n} from \"@next-bricks/vs/code-editor\";\nimport nextTsxDefinition from \"@next-shared/tsx-parser/lib/next-tsx.d.ts?raw\";\nimport componentsDefinition from \"@next-shared/tsx-converter/lib/components.d.ts?raw\";\nimport { convertView, type ConvertResult } from \"@next-shared/tsx-converter\";\nimport type { ParsedApp } from \"@next-shared/tsx-parser\";\nimport \"@next-core/theme\";\nimport styles from \"./styles.module.css\";\nimport { getRemoteTsxParserWorker } from \"./workers/tsxParser.js\";\nimport { createPortal } from \"./createPortal.js\";\n\ninterface CodeEditorEvents {\n \"code.change\": CustomEvent<string>;\n}\n\ninterface CodeEditorMapEvents {\n onCodeChange: \"code.change\";\n}\n\nconst AsyncWrappedCodeEditor = React.lazy(async () => ({\n default: await asyncWrapBrick<\n CodeEditor,\n CodeEditorProps,\n CodeEditorEvents,\n CodeEditorMapEvents\n >(\"vs.code-editor\", {\n onCodeChange: \"code.change\",\n }),\n}));\n\nconst BUILTIN_LIBS: ExtraLib[] = [\n {\n filePath: \"/node_modules/next-tsx/components.d.ts\",\n content: componentsDefinition.replaceAll(\"export interface\", \"interface\"),\n },\n {\n filePath: \"/node_modules/next-tsx/package.json\",\n content: JSON.stringify({\n name: \"next-tsx\",\n types: \"./index.d.ts\",\n }),\n },\n {\n filePath: \"/node_modules/next-tsx/index.d.ts\",\n content: nextTsxDefinition,\n },\n];\n\nconst { defineElement, property, event } = createDecorators();\n\nexport interface TsxPlaygroundProps {\n source?: string;\n extraLibs?: ExtraLib[];\n}\n\n/**\n * 构件 `vb-experiment.tsx-playground`\n */\nexport\n@defineElement(\"vb-experiment.tsx-playground\", {\n // Monaco editor does not work well with shadow DOM\n shadowOptions: false,\n})\nclass TsxPlayground extends ReactNextElement implements TsxPlaygroundProps {\n /** 仅初始有效 */\n @property({ attribute: false })\n accessor source: string | undefined;\n\n @property({ attribute: false })\n accessor extraLibs: ExtraLib[] | undefined;\n\n @event({ type: \"change\" })\n accessor #change!: EventEmitter<string>;\n\n #handleChange = (value: string) => {\n this.#change?.emit(value);\n };\n\n render() {\n return (\n <TsxPlaygroundComponent\n source={this.source}\n extraLibs={this.extraLibs}\n onChange={this.#handleChange}\n />\n );\n }\n}\n\ninterface TsxPlaygroundComponentProps extends TsxPlaygroundProps {\n onChange: (value: string) => void;\n}\n\nfunction convertSeverity(\n severity: \"notice\" | \"warning\" | \"error\" | \"fatal\"\n): \"Hint\" | \"Info\" | \"Warning\" | \"Error\" {\n switch (severity) {\n case \"notice\":\n return \"Hint\";\n case \"warning\":\n return \"Warning\";\n case \"error\":\n return \"Error\";\n case \"fatal\":\n return \"Error\";\n }\n return severity;\n}\n\nfunction TsxPlaygroundComponent({\n source,\n extraLibs,\n onChange,\n}: TsxPlaygroundComponentProps) {\n const [code, setCode] = useState(source ?? \"\");\n const deferredCode = useDeferredValue(code);\n const [markers, setMarkers] = useState<ExtraMarker[] | undefined>();\n const [view, setView] = useState<ParsedApp | undefined>();\n\n const allLibs = useMemo(\n () => [...BUILTIN_LIBS, ...(extraLibs ?? [])],\n [extraLibs]\n );\n\n const handleCodeChange = useCallback(\n (e: CustomEvent<string>) => {\n setCode(e.detail);\n onChange(e.detail);\n },\n [onChange]\n );\n useEffect(() => {\n let ignore = false;\n (async function run() {\n const worker = await getRemoteTsxParserWorker();\n if (ignore) {\n return;\n }\n const result = await worker.parseView(deferredCode);\n if (ignore) {\n return;\n }\n setView(result);\n const withNodeErrors = result.errors.filter((err) => !!err.node);\n if (withNodeErrors.length > 0) {\n setMarkers(\n withNodeErrors.map((error) => ({\n message: error.message,\n severity: convertSeverity(error.severity),\n startLineNumber: error.node!.loc!.start.line,\n startColumn: error.node!.loc!.start.column + 1,\n endLineNumber: error.node!.loc!.end.line,\n endColumn: error.node!.loc!.end.column + 1,\n }))\n );\n } else {\n setMarkers(undefined);\n }\n if (ignore) {\n return;\n }\n })();\n return () => {\n ignore = true;\n };\n }, [deferredCode]);\n\n const rootId = useMemo(() => uniqueId(), []);\n const ref = useRef<HTMLDivElement>(null);\n const rootRef = useRef<Awaited<\n ReturnType<typeof unstable_createRoot>\n > | null>(null);\n\n useEffect(() => {\n const container = ref.current;\n if (!container) {\n return;\n }\n const portal = createPortal(rootId);\n const root = unstable_createRoot(container, {\n portal,\n supportsUseChildren: true,\n } as any);\n rootRef.current = root;\n\n return () => {\n root.unmount();\n portal.remove();\n rootRef.current = null;\n };\n }, [rootId]);\n\n // const [loading, setLoading] = useState(true);\n\n useEffect(() => {\n let ignore = false;\n (async () => {\n if (!view) {\n return;\n }\n // setLoading(true);\n let convertedView: ConvertResult | undefined;\n try {\n convertedView = await convertView(view, { rootId, expanded: true });\n if (ignore) {\n return;\n }\n const { brick, context, functions, templates } = convertedView ?? {};\n await rootRef.current?.render(brick ?? [], {\n context,\n functions,\n templates,\n });\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error(\"Failed to render view:\", error);\n rootRef.current?.render({\n brick: customElements.get(\"easyops-default-error\")\n ? \"easyops-default-error\"\n : \"div\",\n properties: {\n errorTitle: \"解析失败\",\n dataset: {\n errorBoundary: \"\",\n },\n style: {\n color: \"var(--color-error)\",\n },\n },\n children: [\n {\n brick: \"div\",\n properties: {\n textContent: httpErrorToString(error),\n },\n },\n ],\n });\n }\n // if (!ignore) {\n // setLoading(false);\n // }\n })();\n\n return () => {\n ignore = true;\n };\n }, [rootId, view]);\n\n return (\n <div className={styles.container}>\n <div className={styles.editor}>\n <Suspense fallback=\"Loading...\">\n <AsyncWrappedCodeEditor\n value={source}\n onCodeChange={handleCodeChange}\n language=\"typescript\"\n uri=\"file:///view.tsx\"\n automaticLayout=\"fit-container\"\n theme=\"tm-vs-dark\"\n extraLibs={allLibs}\n extraMarkers={markers}\n data-override-theme=\"dark-v2\"\n />\n </Suspense>\n </div>\n <div className={styles.preview}>\n <div data-root-id={rootId} ref={ref} />\n </div>\n </div>\n );\n}\n","export function createPortal(rootId: string) {\n const portal = document.createElement(\"div\");\n portal.dataset.rootId = rootId;\n portal.style.position = \"absolute\";\n portal.style.width = portal.style.height = \"0\";\n document.body.append(portal);\n return portal;\n}\n","import type {\n BrickConfInTemplate,\n CustomTemplate,\n StoryboardFunction,\n} from \"@next-core/types\";\nimport type { ParsedApp } from \"@next-shared/tsx-parser\";\nimport convertModule, {\n type ConvertedPartOfComponent,\n} from \"./convertModule.js\";\nimport type {\n ConvertState,\n ConvertOptions,\n ConvertResult,\n} from \"../interfaces.js\";\nimport { getHelperFunctions } from \"../helpers/index.js\";\nimport { getViewTplName } from \"./getTplName.js\";\nimport { withBox } from \"../withBox.js\";\n\nexport async function convertView(\n view: ParsedApp,\n options: ConvertOptions\n): Promise<ConvertResult> {\n const { entry } = view;\n if (!entry) {\n throw new Error(\"No entry module found in the view.\");\n }\n\n const state: ConvertState = {\n usedHelpers: new Set(),\n app: view,\n };\n const convertedEntry = await convertModule(entry, state, options);\n\n const { defaultExport, internals, namedExports } = convertedEntry;\n\n if (!defaultExport) {\n throw new Error(\"No view found in the entry module.\");\n }\n\n const functions: StoryboardFunction[] = [];\n const templates: CustomTemplate[] = [];\n\n for (const part of [...internals, ...namedExports.values()]) {\n if (part.type === \"function\") {\n functions.push(part.function);\n } else if (part.type === \"template\") {\n templates.push({\n name: getViewTplName(part.name!, options.rootId),\n bricks: part.bricks as BrickConfInTemplate[],\n state: part.context,\n });\n }\n }\n\n const helpers = Array.from(state.usedHelpers).map<StoryboardFunction>(\n (name) => {\n const source = getHelperFunctions().get(name);\n if (!source) {\n throw new Error(`Helper function ${name} not found`);\n }\n return {\n name,\n source,\n typescript: true,\n };\n }\n );\n\n const { title, bricks, context } = defaultExport as ConvertedPartOfComponent;\n\n const needBox = bricks.every((brick) =>\n [\"eo-form\", \"eo-descriptions\", \"eo-button\"].includes(brick.brick)\n );\n\n return {\n title,\n brick: {\n brick: \"eo-content-layout\",\n children: needBox ? [withBox(bricks, options)] : bricks,\n },\n context: [\n ...context,\n ...(options.withContexts\n ? Object.entries(options.withContexts).map(([name, value]) => ({\n name,\n value,\n }))\n : []),\n ],\n functions: [...functions, ...helpers],\n templates,\n };\n}\n","import React, { useCallback, useEffect, useRef, useState } from \"react\";\nimport { createDecorators } from \"@next-core/element\";\nimport { ReactNextElement } from \"@next-core/react-element\";\nimport { __secret_internals, getBasePath } from \"@next-core/runtime\";\nimport type { BootstrapData, MicroApp, Storyboard } from \"@next-core/types\";\nimport \"@next-core/theme\";\nimport styleText from \"./styles.shadow.css\";\n\nconst { defineElement, property } = createDecorators();\n\nexport interface AppPreviewProps {\n storyboard?: Storyboard;\n}\n\n/**\n * 构件 `vb-experiment.app-preview`\n */\nexport\n@defineElement(\"vb-experiment.app-preview\", {\n styleTexts: [styleText],\n})\nclass AppPreview extends ReactNextElement {\n @property({ attribute: false })\n accessor storyboard: Storyboard | undefined;\n\n render() {\n return <AppPreviewComponent storyboard={this.storyboard} />;\n }\n}\n\ninterface PreviewWindow extends Window {\n _preview_only_appPreviewer?: AppPreviewer;\n}\n\ninterface AppPreviewer {\n setup(data: BootstrapData, url: string): Promise<void>;\n update(appId: string, storyboard: Partial<Storyboard>): void;\n reload(): void;\n push(url: string): void;\n replace(url: string): void;\n goBack(): void;\n goForward(): void;\n}\n\nfunction AppPreviewComponent({ storyboard }: AppPreviewProps) {\n const iframeRef = useRef<HTMLIFrameElement>(null);\n const [appPreviewer, setAppPreviewer] = useState<AppPreviewer | null>(null);\n\n const handleIframeLoad = useCallback(() => {\n const check = () => {\n const previewer = (iframeRef.current?.contentWindow as PreviewWindow)\n ?._preview_only_appPreviewer;\n if (previewer) {\n setAppPreviewer(previewer);\n } else {\n setTimeout(check, 100);\n }\n };\n check();\n }, []);\n\n const setupRef = useRef<Promise<void> | null>(null);\n\n useEffect(() => {\n if (!appPreviewer || !storyboard) {\n return;\n }\n\n const app: MicroApp = {\n id: \"lab-app-preview\",\n name: \"Lab: App Preview\",\n homepage: \"/lab-app-preview\",\n };\n\n if (setupRef.current) {\n let ignore = false;\n setupRef.current.then(() => {\n if (ignore) {\n return;\n }\n appPreviewer.update(app.id, { ...storyboard, app });\n appPreviewer.reload();\n });\n return () => {\n ignore = true;\n };\n } else {\n setupRef.current = appPreviewer.setup(\n {\n brickPackages: (__secret_internals as any).getBrickPackages(),\n storyboards: [\n {\n ...storyboard,\n app,\n },\n ],\n },\n app.homepage\n );\n }\n }, [appPreviewer, storyboard]);\n\n return (\n <div className=\"container\">\n <iframe\n ref={iframeRef}\n src={`${getBasePath()}lab/?_experimental_app_preview_=1`}\n loading=\"lazy\"\n onLoad={handleIframeLoad}\n />\n </div>\n );\n}\n","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!./styles.module.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!./styles.module.css\";\n export default content && content.locals ? content.locals : undefined;\n","import React, {\n Suspense,\n useCallback,\n useDeferredValue,\n useEffect,\n useMemo,\n useState,\n} from \"react\";\nimport { createDecorators, type EventEmitter } from \"@next-core/element\";\nimport { ReactNextElement, wrapBrick } from \"@next-core/react-element\";\nimport { asyncWrapBrick } from \"@next-core/react-runtime\";\nimport type { Storyboard } from \"@next-core/types\";\nimport { uniqueId } from \"lodash\";\nimport type {\n CodeEditor,\n CodeEditorProps,\n ExtraLib,\n ExtraMarker,\n} from \"@next-bricks/vs/code-editor\";\nimport nextTsxDefinition from \"@next-shared/tsx-parser/lib/next-tsx.d.ts?raw\";\nimport componentsDefinition from \"@next-shared/tsx-converter/lib/components.d.ts?raw\";\nimport { convertApp, type ConvertedApp } from \"@next-shared/tsx-converter\";\nimport type { ParsedApp } from \"@next-shared/tsx-parser\";\nimport \"@next-core/theme\";\nimport styles from \"./styles.module.css\";\nimport { getRemoteTsxParserWorker } from \"../tsx-playground/workers/tsxParser.js\";\nimport type { AppPreview, AppPreviewProps } from \"../app-preview/index.js\";\n\ninterface CodeEditorEvents {\n \"code.change\": CustomEvent<string>;\n}\n\ninterface CodeEditorMapEvents {\n onCodeChange: \"code.change\";\n}\n\nconst AsyncWrappedCodeEditor = React.lazy(async () => ({\n default: await asyncWrapBrick<\n CodeEditor,\n CodeEditorProps,\n CodeEditorEvents,\n CodeEditorMapEvents\n >(\"vs.code-editor\", {\n onCodeChange: \"code.change\",\n }),\n}));\n\nconst WrappedAppPreview = wrapBrick<AppPreview, AppPreviewProps>(\n \"vb-experiment.app-preview\"\n);\n\nconst BUILTIN_LIBS: ExtraLib[] = [\n {\n filePath: \"/node_modules/next-tsx/components.d.ts\",\n content: componentsDefinition.replaceAll(\"export interface\", \"interface\"),\n },\n {\n filePath: \"/node_modules/next-tsx/package.json\",\n content: JSON.stringify({\n name: \"next-tsx\",\n types: \"./index.d.ts\",\n }),\n },\n {\n filePath: \"/node_modules/next-tsx/index.d.ts\",\n content: nextTsxDefinition,\n },\n];\n\nconst { defineElement, property, event } = createDecorators();\n\nexport interface AppPlaygroundProps {\n source?: string;\n extraLibs?: ExtraLib[];\n}\n\n/**\n * 构件 `vb-experiment.app-playground`\n */\nexport\n@defineElement(\"vb-experiment.app-playground\", {\n // Monaco editor does not work well with shadow DOM\n shadowOptions: false,\n})\nclass AppPlayground extends ReactNextElement implements AppPlaygroundProps {\n /** 仅初始有效 */\n @property({ attribute: false })\n accessor source: string | undefined;\n\n @property({ attribute: false })\n accessor extraLibs: ExtraLib[] | undefined;\n\n @event({ type: \"change\" })\n accessor #change!: EventEmitter<string>;\n\n #handleChange = (value: string) => {\n this.#change?.emit(value);\n };\n\n render() {\n return (\n <AppPlaygroundComponent\n source={this.source}\n extraLibs={this.extraLibs}\n onChange={this.#handleChange}\n />\n );\n }\n}\n\ninterface AppPlaygroundComponentProps extends AppPlaygroundProps {\n onChange: (value: string) => void;\n}\n\nfunction convertSeverity(\n severity: \"notice\" | \"warning\" | \"error\" | \"fatal\"\n): \"Hint\" | \"Info\" | \"Warning\" | \"Error\" {\n switch (severity) {\n case \"notice\":\n return \"Hint\";\n case \"warning\":\n return \"Warning\";\n case \"error\":\n return \"Error\";\n case \"fatal\":\n return \"Error\";\n }\n return severity;\n}\n\nfunction AppPlaygroundComponent({\n source,\n extraLibs,\n onChange,\n}: AppPlaygroundComponentProps) {\n const [code, setCode] = useState(source ?? \"\");\n const deferredCode = useDeferredValue(code);\n const [markers, setMarkers] = useState<ExtraMarker[] | undefined>();\n const [view, setView] = useState<ParsedApp | undefined>();\n\n const allLibs = useMemo(\n () => [...BUILTIN_LIBS, ...(extraLibs ?? [])],\n [extraLibs]\n );\n\n const handleCodeChange = useCallback(\n (e: CustomEvent<string>) => {\n setCode(e.detail);\n onChange(e.detail);\n },\n [onChange]\n );\n useEffect(() => {\n let ignore = false;\n (async function run() {\n const worker = await getRemoteTsxParserWorker();\n if (ignore) {\n return;\n }\n const result = await worker.parseApp([\n {\n filePath: \"index.tsx\",\n content: deferredCode,\n },\n ]);\n if (ignore) {\n return;\n }\n setView(result);\n const withNodeErrors = result.errors.filter((err) => !!err.node);\n if (withNodeErrors.length > 0) {\n setMarkers(\n withNodeErrors.map((error) => ({\n message: error.message,\n severity: convertSeverity(error.severity),\n startLineNumber: error.node!.loc!.start.line,\n startColumn: error.node!.loc!.start.column + 1,\n endLineNumber: error.node!.loc!.end.line,\n endColumn: error.node!.loc!.end.column + 1,\n }))\n );\n } else {\n setMarkers(undefined);\n }\n if (ignore) {\n return;\n }\n })();\n return () => {\n ignore = true;\n };\n }, [deferredCode]);\n\n const rootId = useMemo(() => uniqueId(), []);\n\n // const [loading, setLoading] = useState(true);\n\n const [storyboard, setStoryboard] = useState<Storyboard | undefined>();\n\n useEffect(() => {\n let ignore = false;\n (async () => {\n if (!view) {\n return;\n }\n // setLoading(true);\n let convertedApp: ConvertedApp | undefined;\n try {\n convertedApp = await convertApp(view, { rootId, expanded: true });\n if (ignore) {\n return;\n }\n setStoryboard(convertedApp as Partial<Storyboard> as Storyboard);\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error(\"Failed to render app:\", error);\n }\n // if (!ignore) {\n // setLoading(false);\n // }\n })();\n\n return () => {\n ignore = true;\n };\n }, [rootId, view]);\n\n return (\n <div className={styles.container}>\n <div className={styles.editor}>\n <Suspense fallback=\"Loading...\">\n <AsyncWrappedCodeEditor\n value={source}\n onCodeChange={handleCodeChange}\n language=\"typescript\"\n uri=\"file:///view.tsx\"\n automaticLayout=\"fit-container\"\n theme=\"tm-vs-dark\"\n extraLibs={allLibs}\n extraMarkers={markers}\n data-override-theme=\"dark-v2\"\n />\n </Suspense>\n </div>\n <div className={styles.preview}>\n <WrappedAppPreview storyboard={storyboard} />\n </div>\n </div>\n );\n}\n","import type {\n BrickConfInTemplate,\n CustomTemplate,\n RouteConf,\n StoryboardFunction,\n} from \"@next-core/types\";\nimport {\n MODULE_SOURCE,\n type ParsedApp,\n type ComponentChild,\n type ComponentReference,\n isOfficialComponent,\n} from \"@next-shared/tsx-parser\";\nimport convertModule, {\n type ConvertedModule,\n type ConvertedPart,\n} from \"./convertModule.js\";\nimport type {\n ConvertState,\n ConvertOptions,\n ConvertedApp,\n} from \"../interfaces.js\";\nimport { getAppTplName } from \"./getTplName.js\";\n\nexport async function convertApp(\n app: ParsedApp,\n options: ConvertOptions\n): Promise<ConvertedApp> {\n const { entry } = app;\n if (!entry) {\n throw new Error(\"No entry module found in the app.\");\n }\n\n const render = entry.render;\n if (!render) {\n throw new Error(\"No render call found in the entry module.\");\n }\n\n const { children } = render;\n\n if (children.length !== 1) {\n throw new Error(\n `Expects exactly one root component in the render call, but got ${children.length}.`\n );\n }\n\n const routesComponent = children[0];\n if (!isOfficialComponent(routesComponent, \"Routes\")) {\n throw new Error(\n `The root component must be <Routes> from \"${MODULE_SOURCE}\".`\n );\n }\n\n let convertedEntry: ConvertedModule;\n const convertedModules = new Map<string, ConvertedModule>();\n\n const state: ConvertState = {\n usedHelpers: new Set(),\n app,\n };\n\n const functions: StoryboardFunction[] = [];\n const templates: CustomTemplate[] = [];\n\n await Promise.all(\n Array.from(app.modules).map(async ([filePath, mod]) => {\n if (mod) {\n const converted = await convertModule(mod, state, options);\n convertedModules.set(filePath, converted);\n if (mod === entry) {\n convertedEntry = converted;\n }\n for (const part of [\n ...converted.internals,\n ...converted.namedExports.values(),\n ]) {\n if (part.type === \"function\") {\n functions.push(part.function);\n } else if (part.type === \"template\") {\n templates.push({\n name: getAppTplName(part.name!),\n bricks: part.bricks as BrickConfInTemplate[],\n state: part.context,\n });\n }\n }\n }\n })\n );\n\n const routes: RouteConf[] =\n routesComponent.children?.map((child) => {\n if (!isOfficialComponent(child, \"Route\")) {\n throw new Error(\n `All children of <Routes> must be <Route> from \"${MODULE_SOURCE}\".`\n );\n }\n const { path, component } = child.properties;\n\n if (typeof path !== \"string\" || !path.startsWith(\"/\")) {\n throw new Error(\n `The \"path\" property of <Route> must be a string starting with \"/\".`\n );\n }\n\n if (!component) {\n throw new Error(`The \"component\" property of <Route> is required.`);\n }\n\n const { reference } = component as ComponentChild & {\n reference: ComponentReference;\n };\n let page: ConvertedPart | null | undefined;\n if (reference.type === \"local\") {\n const parts = [\n ...convertedEntry.internals,\n ...convertedEntry.namedExports.values(),\n ];\n page = parts.find(\n (p) => p.type !== \"function\" && p.name && p.name === reference.name\n );\n } else {\n const mod = convertedModules.get(reference.importSource!);\n if (!mod) {\n throw new Error(\n `Cannot find the module \"${reference.importSource}\" imported by the route \"${path}\".`\n );\n }\n page = reference.name\n ? mod.namedExports.get(reference.name)\n : mod.defaultExport;\n }\n\n if (!page) {\n throw new Error(\n `Cannot find the component \"${reference.name}\" used in the route \"${path}\".`\n );\n }\n if (page.type !== \"page\") {\n throw new Error(\n `The component \"${reference.name}\" used in the route \"${path}\" must be a page component.`\n );\n }\n\n return {\n path: `\\${APP.homepage}${path === \"/\" ? \"\" : path}`,\n bricks: page.bricks,\n context: page.context,\n };\n }) ?? [];\n\n return {\n routes,\n meta: {\n functions,\n templates,\n },\n };\n}\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.container--AW813tLb{display:flex;height:100%}.editor--B5m74LRR,\n.preview--THWZoCIv{flex:1;min-width:0}.preview--THWZoCIv{padding:0;height:100%}`, \"\"]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"container\": `container--AW813tLb`,\n\t\"editor\": `editor--B5m74LRR`,\n\t\"preview\": `preview--THWZoCIv`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:host{display:block;height:100%}:host([hidden]){display:none}*{box-sizing:border-box}.container,\niframe{width:100%;height:100%;border-radius:4px}iframe{display:block;border:none;margin:0;padding:0;transform-origin:0% 0%;-webkit-user-select:none;user-select:none}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.container--M22i1CYq{display:flex;height:100%}.editor--kF8SUoBP,\n.preview--gu5OlS2X{flex:1;min-width:0}.preview--gu5OlS2X{padding:1em;overflow:auto}`, \"\"]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"container\": `container--M22i1CYq`,\n\t\"editor\": `editor--kF8SUoBP`,\n\t\"preview\": `preview--gu5OlS2X`\n};\nexport default ___CSS_LOADER_EXPORT___;\n"],"names":["async","formatJs","source","typescript","semi","printWidth","arguments","length","undefined","format","parser","plugins","prettierPluginBabel","prettierPluginEstree","trailingComma","generateByFileStructure","items","folder","path","item","childPath","name","type","childFolder","file","nodeType","generate","node","cleanMenu","menu","key","value","Object","entries","Array","isArray","cleanMenuItem","keys","menuItem","customElements","define","createProviderClass","_ref","_storyboard$meta","_meta$customTemplates","_meta$functions","_meta$menus","_meta$contracts","_meta$i18n","projectDetail","storyboard","zip","JSZip","project","src","extractState","extracts","namePool","Map","extractedRoutes","extractRoutes","routes","app","id","appId","homepage","appSetting","layoutType","theme","noAuthGuard","locales","defaultConfig","JSON","parse","menuIcon","icon","standaloneMode","stringify","meta","customTemplates","functions","menus","contracts","i18n","workflows","mocks","userGroups","extractedTemplates","extractTemplates","push","fileStructure","buildFileStructure","srcIndexJs","resources","fnDir","fnNames","fnImports","fn","Error","inferredImports","Set","code","transform","filename","TransformStoryboardFunction","SmartImports","imports","hasFN","has","delete","importStrings","size","join","menusDir","menuNames","menuImports","menuId","replace","JS_RESERVED_WORDS","contractsDir","contractImports","contractNames","contract","baseName","counter","varName","add","srcResourcesIndexJs","editorConfig","gitIgnore","devConfigMjs","declarationsDTs","jsconfigJson","nextJsxConfigJs","replaceAll","packageJson","readmeMd","blob","generateAsync","saveAs","files","fs","content","segments","split","pop","handle","i","segment","current","slice","found","get","set","helperFunctions","fixFunctionSource","withBox","children","options","brick","properties","style","expanded","background","backdropFilter","borderRadius","padding","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","AsyncWrappedCodeEditor","React","default","asyncWrapBrick","onCodeChange","BUILTIN_LIBS","filePath","componentsDefinition","types","nextTsxDefinition","defineElement","property","event","createDecorators","_TsxPlayground","_A","WeakMap","_B","_C","_TsxPlayground_brand","WeakSet","_handleChange","TsxPlayground","ReactNextElement","constructor","_classPrivateMethodInitSpec","_classPrivateFieldInitSpec","_init_source","_init_extra_source","_init_extraLibs","_init_extra_extraLibs","_init_change","_init_extra_change","_classPrivateGetter2","_classPrivateGetter","this","_get_change","emit","_classPrivateFieldGet","v","_classPrivateFieldSet","extraLibs","render","TsxPlaygroundComponent","onChange","convertSeverity","severity","setCode","useState","deferredCode","useDeferredValue","markers","setMarkers","view","setView","allLibs","useMemo","handleCodeChange","useCallback","e","detail","useEffect","ignore","worker","getRemoteTsxParserWorker","result","parseView","withNodeErrors","errors","filter","err","map","error","message","startLineNumber","loc","start","line","startColumn","column","endLineNumber","end","endColumn","rootId","uniqueId","ref","useRef","rootRef","container","portal","document","createElement","dataset","position","width","height","body","append","createPortal","root","unstable_createRoot","supportsUseChildren","unmount","remove","convertedView","_rootRef$current","entry","state","usedHelpers","convertedEntry","convertModule","defaultExport","internals","namedExports","templates","part","values","function","getViewTplName","bricks","context","helpers","from","title","every","includes","withContexts","convertView","_rootRef$current2","console","errorTitle","errorBoundary","color","textContent","httpErrorToString","className","styles","editor","Suspense","fallback","language","uri","automaticLayout","extraMarkers","preview","_TsxPlayground2","_set_change","c","_initClass","_applyDecs","shadowOptions","attribute","o","_","_checkInRHS","_AppPreview","AppPreview","_init_storyboard","_init_extra_storyboard","AppPreviewComponent","iframeRef","appPreviewer","setAppPreviewer","handleIframeLoad","check","_iframeRef$current","previewer","contentWindow","_preview_only_appPreviewer","setTimeout","setupRef","then","update","reload","setup","brickPackages","__secret_internals","getBrickPackages","storyboards","getBasePath","loading","onLoad","_AppPreview2","styleTexts","styleText","WrappedAppPreview","wrapBrick","_AppPlayground","_AppPlayground_brand","AppPlayground","AppPlaygroundComponent","parseApp","setStoryboard","convertedApp","_routesComponent$chil","_routesComponent$chil2","routesComponent","isOfficialComponent","MODULE_SOURCE","convertedModules","Promise","all","modules","mod","converted","getAppTplName","child","component","startsWith","reference","page","find","p","importSource","convertApp","_AppPlayground2","___CSS_LOADER_EXPORT___","module","toString"],"sourceRoot":""}
@@ -1,3 +0,0 @@
1
- /*! For license information please see 1772.9590b4a1.js.LICENSE.txt */
2
- "use strict";(globalThis.webpackChunk_next_bricks_vb_experiment=globalThis.webpackChunk_next_bricks_vb_experiment||[]).push([[1772,2052],{829:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(2559);function o(e,t){return e.get((0,r.A)(e,t))}},855:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},918:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(2016);function o(e,t,n){(0,r.A)(e,t),t.set(e,n)}},935:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(i[c]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u]);r&&i[l[0]]||(void 0!==a&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=a),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},1369:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(7545);function o(e){var t=function(e){if("object"!=(0,r.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=(0,r.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:t+""}},1740:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},2016:(e,t,n)=>{function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{A:()=>r})},2559:(e,t,n)=>{function r(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n.d(t,{A:()=>r})},2591:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},i=[],s=0;s<e.length;s++){var c=e[s],u=r.base?c[0]+r.base:c[0],l=a[u]||0,f="".concat(u," ").concat(l);a[u]=l+1;var p=n(f),d={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)t[p].references++,t[p].updater(d);else{var m=o(d,r);r.byIndex=s,t.splice(s,0,{identifier:f,updater:m,references:1})}i.push(f)}return i}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var s=n(a[i]);t[s].references--}for(var c=r(e,o),u=0;u<a.length;u++){var l=n(a[u]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}a=c}}},2740:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(7545),o=n(6902);function a(e,t,n){"symbol"==(0,r.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}var i=n(1369);function s(e,t,n,s,c,u){var l,f,p,d,m,v,h,y=Symbol.metadata||Symbol.for("Symbol.metadata"),g=Object.defineProperty,b=Object.create,w=[b(null),b(null)],E=t.length;function A(t,n,r){return function(o,a){n&&(a=o,o=e);for(var i=0;i<t.length;i++)a=t[i].apply(o,r?[a]:[]);return r?a:o}}function S(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function T(e,t,n,o,i,s,c,u,p,d,m){function v(e){if(!m(e))throw new TypeError("Attempted to access private element on non-instance")}var h=[].concat(t[0]),y=t[3],b=!c,E=1===i,T=3===i,j=4===i,k=2===i;function x(t,n,r){return function(o,a){return n&&(a=o,o=e),r&&r(o),C[t].call(o,a)}}if(!b){var C={},M=[],O=T?"get":j||E?"set":"value";if(p?(d||E?C={get:a((function(){return y(this)}),o,"get"),set:function(e){t[4](this,e)}}:C[O]=y,d||a(C[O],o,k?"":O)):d||(C=Object.getOwnPropertyDescriptor(e,o)),!d&&!p){if((f=w[+u][o])&&7!=(f^i))throw Error("Decorating two elements with the same name ("+C[O].name+") is not supported yet");w[+u][o]=i<3?1:i}}for(var P=e,L=h.length-1;L>=0;L-=n?2:1){var R=S(h[L],"A decorator","be",!0),z=n?h[L-1]:void 0,N={},I={kind:["field","accessor","method","getter","setter","class"][i],name:o,metadata:l,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");S(t,"An initializer","be",!0),s.push(t)}.bind(null,N)};if(b)f=R.call(z,P,I),N.v=1,S(f,"class decorators","return")&&(P=f);else if(I.static=u,I.private=p,f=I.access={has:p?m.bind():function(e){return o in e}},j||(f.get=p?k?function(e){return v(e),C.value}:x("get",0,v):function(e){return e[o]}),k||T||(f.set=p?x("set",0,v):function(e,t){e[o]=t}),P=R.call(z,E?{get:C.get,set:C.set}:C[O],I),N.v=1,E){if("object"==(0,r.A)(P)&&P)(f=S(P.get,"accessor.get"))&&(C.get=f),(f=S(P.set,"accessor.set"))&&(C.set=f),(f=S(P.init,"accessor.init"))&&M.unshift(f);else if(void 0!==P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else S(P,(d?"field":"method")+" decorators","return")&&(d?M.unshift(P):C[O]=P)}return i<2&&c.push(A(M,u,1),A(s,u,0)),d||b||(p?E?c.splice(-1,0,x("get",u),x("set",u)):c.push(k?C[O]:S.call.bind(C[O])):g(e,o,C)),P}function j(e){return g(e,y,{configurable:!0,enumerable:!0,value:l})}return void 0!==u&&(l=u[y]),l=b(null==l?null:l),m=[],v=function(e){e&&m.push(A(e))},h=function(t,r){for(var a=0;a<n.length;a++){var s=n[a],u=s[1],l=7&u;if((8&u)==t&&!l==r){var f=s[2],v=!!s[3],h=16&u;T(t?e:e.prototype,s,h,v?"#"+f:(0,i.A)(f),l,l<2?[]:t?d=d||[]:p=p||[],m,!!t,v,r,t&&v?function(t){return(0,o.A)(t)===e}:c)}}},h(8,0),h(0,0),h(8,1),h(0,1),v(p),v(d),f=m,E||j(e),{e:f,get c(){var n=[];return E&&[j(e=T(e,[t],s,e.name,5,n)),A(n,1)]}}}},3051:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3656:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},4635:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(2016);function o(e,t){(0,r.A)(e,t),t.add(e)}},5536:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(2559);function o(e,t,n){return n((0,r.A)(e,t))}},6121:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(2559);function o(e,t,n){return e.set((0,r.A)(e,t),n),n}},6758:e=>{e.exports=function(e){return e[1]}},6902:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(7545);function o(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,r.A)(e):"null"));return e}},7545:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},7695:(e,t,n)=>{n.d(t,{LV:()=>p});const r=Symbol("Comlink.proxy"),o=Symbol("Comlink.endpoint"),a=Symbol("Comlink.releaseProxy"),i=Symbol("Comlink.finalizer"),s=Symbol("Comlink.thrown"),c=e=>"object"==typeof e&&null!==e||"function"==typeof e,u=new Map([["proxy",{canHandle:e=>c(e)&&e[r],serialize(e){const{port1:t,port2:n}=new MessageChannel;return l(e,t),[n,[n]]},deserialize:e=>(e.start(),p(e))}],["throw",{canHandle:e=>c(e)&&s in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value);throw e.value}}]]);function l(e,t=globalThis,n=["*"]){t.addEventListener("message",(function o(a){if(!a||!a.data)return;if(!function(e,t){for(const n of e){if(t===n||"*"===n)return!0;if(n instanceof RegExp&&n.test(t))return!0}return!1}(n,a.origin))return void console.warn(`Invalid origin '${a.origin}' for comlink proxy`);const{id:c,type:u,path:p}=Object.assign({path:[]},a.data),d=(a.data.argumentList||[]).map(E);let m;try{const t=p.slice(0,-1).reduce(((e,t)=>e[t]),e),n=p.reduce(((e,t)=>e[t]),e);switch(u){case"GET":m=n;break;case"SET":t[p.slice(-1)[0]]=E(a.data.value),m=!0;break;case"APPLY":m=n.apply(t,d);break;case"CONSTRUCT":m=function(e){return Object.assign(e,{[r]:!0})}(new n(...d));break;case"ENDPOINT":{const{port1:t,port2:n}=new MessageChannel;l(e,n),m=function(e,t){return b.set(e,t),e}(t,[t])}break;case"RELEASE":m=void 0;break;default:return}}catch(e){m={value:e,[s]:0}}Promise.resolve(m).catch((e=>({value:e,[s]:0}))).then((n=>{const[r,a]=w(n);t.postMessage(Object.assign(Object.assign({},r),{id:c}),a),"RELEASE"===u&&(t.removeEventListener("message",o),f(t),i in e&&"function"==typeof e[i]&&e[i]())})).catch((e=>{const[n,r]=w({value:new TypeError("Unserializable return value"),[s]:0});t.postMessage(Object.assign(Object.assign({},n),{id:c}),r)}))})),t.start&&t.start()}function f(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function p(e,t){const n=new Map;return e.addEventListener("message",(function(e){const{data:t}=e;if(!t||!t.id)return;const r=n.get(t.id);if(r)try{r(t)}finally{n.delete(t.id)}})),y(e,n,[],t)}function d(e){if(e)throw new Error("Proxy has been released and is not useable")}function m(e){return A(e,new Map,{type:"RELEASE"}).then((()=>{f(e)}))}const v=new WeakMap,h="FinalizationRegistry"in globalThis&&new FinalizationRegistry((e=>{const t=(v.get(e)||0)-1;v.set(e,t),0===t&&m(e)}));function y(e,t,n=[],r=function(){}){let i=!1;const s=new Proxy(r,{get(r,o){if(d(i),o===a)return()=>{!function(e){h&&h.unregister(e)}(s),m(e),t.clear(),i=!0};if("then"===o){if(0===n.length)return{then:()=>s};const r=A(e,t,{type:"GET",path:n.map((e=>e.toString()))}).then(E);return r.then.bind(r)}return y(e,t,[...n,o])},set(r,o,a){d(i);const[s,c]=w(a);return A(e,t,{type:"SET",path:[...n,o].map((e=>e.toString())),value:s},c).then(E)},apply(r,a,s){d(i);const c=n[n.length-1];if(c===o)return A(e,t,{type:"ENDPOINT"}).then(E);if("bind"===c)return y(e,t,n.slice(0,-1));const[u,l]=g(s);return A(e,t,{type:"APPLY",path:n.map((e=>e.toString())),argumentList:u},l).then(E)},construct(r,o){d(i);const[a,s]=g(o);return A(e,t,{type:"CONSTRUCT",path:n.map((e=>e.toString())),argumentList:a},s).then(E)}});return function(e,t){const n=(v.get(t)||0)+1;v.set(t,n),h&&h.register(e,t,e)}(s,e),s}function g(e){const t=e.map(w);return[t.map((e=>e[0])),(n=t.map((e=>e[1])),Array.prototype.concat.apply([],n))];var n}const b=new WeakMap;function w(e){for(const[t,n]of u)if(n.canHandle(e)){const[r,o]=n.serialize(e);return[{type:"HANDLER",name:t,value:r},o]}return[{type:"RAW",value:e},b.get(e)||[]]}function E(e){switch(e.type){case"HANDLER":return u.get(e.name).deserialize(e.value);case"RAW":return e.value}}function A(e,t,n,r){return new Promise((o=>{const a=new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-");t.set(a,o),e.start&&e.start(),e.postMessage(Object.assign({id:a},n),r)}))}},8128:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}}}]);
3
- //# sourceMappingURL=1772.9590b4a1.js.map