/******/ (function(modules) { // webpackBootstrap /******/ // install a JSONP callback for chunk loading /******/ function webpackJsonpCallback(data) { /******/ var chunkIds = data[0]; /******/ var moreModules = data[1]; /******/ var executeModules = data[2]; /******/ /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; /******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; /******/ } /******/ for(moduleId in moreModules) { /******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) { /******/ modules[moduleId] = moreModules[moduleId]; /******/ } /******/ } /******/ if(parentJsonpFunction) parentJsonpFunction(data); /******/ /******/ while(resolves.length) { /******/ resolves.shift()(); /******/ } /******/ /******/ // add entry modules from loaded chunk to deferred list /******/ deferredModules.push.apply(deferredModules, executeModules || []); /******/ /******/ // run deferred modules when all chunks ready /******/ return checkDeferredModules(); /******/ }; /******/ function checkDeferredModules() { /******/ var result; /******/ for(var i = 0; i < deferredModules.length; i++) { /******/ var deferredModule = deferredModules[i]; /******/ var fulfilled = true; /******/ for(var j = 1; j < deferredModule.length; j++) { /******/ var depId = deferredModule[j]; /******/ if(installedChunks[depId] !== 0) fulfilled = false; /******/ } /******/ if(fulfilled) { /******/ deferredModules.splice(i--, 1); /******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); /******/ } /******/ } /******/ /******/ return result; /******/ } /******/ /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // object to store loaded and loading chunks /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // Promise = chunk loading, 0 = chunk loaded /******/ var installedChunks = { /******/ "app": 0 /******/ }; /******/ /******/ var deferredModules = []; /******/ /******/ // script path function /******/ function jsonpScriptSrc(chunkId) { /******/ return __webpack_require__.p + "js/" + ({}[chunkId]||chunkId) + ".js" /******/ } /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ // This file contains only the entry chunk. /******/ // The chunk loading function for additional chunks /******/ __webpack_require__.e = function requireEnsure(chunkId) { /******/ var promises = []; /******/ /******/ /******/ // JSONP chunk loading for javascript /******/ /******/ var installedChunkData = installedChunks[chunkId]; /******/ if(installedChunkData !== 0) { // 0 means "already installed". /******/ /******/ // a Promise means "currently loading". /******/ if(installedChunkData) { /******/ promises.push(installedChunkData[2]); /******/ } else { /******/ // setup Promise in chunk cache /******/ var promise = new Promise(function(resolve, reject) { /******/ installedChunkData = installedChunks[chunkId] = [resolve, reject]; /******/ }); /******/ promises.push(installedChunkData[2] = promise); /******/ /******/ // start chunk loading /******/ var script = document.createElement('script'); /******/ var onScriptComplete; /******/ /******/ script.charset = 'utf-8'; /******/ script.timeout = 120; /******/ if (__webpack_require__.nc) { /******/ script.setAttribute("nonce", __webpack_require__.nc); /******/ } /******/ script.src = jsonpScriptSrc(chunkId); /******/ /******/ // create error before stack unwound to get useful stacktrace later /******/ var error = new Error(); /******/ onScriptComplete = function (event) { /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; /******/ clearTimeout(timeout); /******/ var chunk = installedChunks[chunkId]; /******/ if(chunk !== 0) { /******/ if(chunk) { /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); /******/ var realSrc = event && event.target && event.target.src; /******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'; /******/ error.name = 'ChunkLoadError'; /******/ error.type = errorType; /******/ error.request = realSrc; /******/ chunk[1](error); /******/ } /******/ installedChunks[chunkId] = undefined; /******/ } /******/ }; /******/ var timeout = setTimeout(function(){ /******/ onScriptComplete({ type: 'timeout', target: script }); /******/ }, 120000); /******/ script.onerror = script.onload = onScriptComplete; /******/ document.head.appendChild(script); /******/ } /******/ } /******/ return Promise.all(promises); /******/ }; /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; /******/ /******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || []; /******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray); /******/ jsonpArray.push = webpackJsonpCallback; /******/ jsonpArray = jsonpArray.slice(); /******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]); /******/ var parentJsonpFunction = oldJsonpFunction; /******/ /******/ /******/ // add entry module to deferred list /******/ deferredModules.push([0,"chunk-vendors"]); /******/ // run deferred modules when ready /******/ return checkDeferredModules(); /******/ }) /************************************************************************/ /******/ ({ /***/ "../simple-mind-map/example/exampleData.js": /*!*************************************************!*\ !*** ../simple-mind-map/example/exampleData.js ***! \*************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\nconst createFullData = () => {\n return {\n \"image\": \"/enJFNMHnedQTYTESGfDkctCp2.jpeg\",\n \"imageTitle\": \"图片名称\",\n \"imageSize\": {\n \"width\": 1000,\n \"height\": 563\n },\n \"icon\": ['priority_1'],\n \"tag\": [\"标签1\", \"标签2\"],\n \"hyperlink\": \"http://lxqnsys.com/\",\n \"hyperlinkTitle\": \"理想青年实验室\",\n \"note\": \"理想青年实验室\\n一个有意思的角落\"\n // 自定义位置\n // \"customLeft\": 1318,\n // \"customTop\": 374.5\n };\n};\n\n/** \n * @Author: 王林 \n * @Date: 2021-04-15 22:23:24 \n * @Desc: 节点较多示例数据 \n */\nconst data1 = {\n \"root\": {\n \"data\": {\n \"text\": \"根节点\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"二级节点1\",\n \"expand\": true\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\",\n ...createFullData()\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\",\n ...createFullData()\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }]\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }]\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }]\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }]\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }]\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }]\n }]\n }, {\n \"data\": {\n \"text\": \"二级节点2\",\n \"expand\": true\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }]\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }]\n }, {\n \"data\": {\n \"text\": \"二级节点3\",\n \"expand\": true\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }]\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }]\n }]\n }, {\n \"data\": {\n \"text\": \"二级节点4\",\n \"expand\": true\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }]\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }]\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }]\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }]\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }]\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }]\n }]\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }]\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }]\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }]\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n }\n }]\n }]\n }]\n }]\n }]\n }\n};\n\n/** \n * javascript comment \n * @Author: 王林25 \n * @Date: 2021-07-12 13:49:43 \n * @Desc: 真实场景数据 \n */\nconst data2 = {\n \"root\": {\n \"data\": {\n \"text\": \"一周安排\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"生活\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"锻炼\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"晨跑\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"7:00-8:00\"\n },\n \"children\": []\n }]\n }, {\n \"data\": {\n \"text\": \"夜跑\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"20:00-21:00\"\n },\n \"children\": []\n }]\n }]\n }, {\n \"data\": {\n \"text\": \"饮食\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"早餐\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"8:30\"\n },\n \"children\": []\n }]\n }, {\n \"data\": {\n \"text\": \"午餐\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"11:30\"\n },\n \"children\": []\n }]\n }, {\n \"data\": {\n \"text\": \"晚餐\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"19:00\"\n },\n \"children\": []\n }]\n }]\n }, {\n \"data\": {\n \"text\": \"休息\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"午休\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"12:30-13:00\"\n },\n \"children\": []\n }]\n }, {\n \"data\": {\n \"text\": \"晚休\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"23:00-6:30\"\n },\n \"children\": []\n }]\n }]\n }]\n }, {\n \"data\": {\n \"text\": \"工作日\\n周一至周五\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"日常工作\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"9:00-18:00\"\n },\n \"children\": []\n }]\n }, {\n \"data\": {\n \"text\": \"工作总结\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"21:00-22:00\"\n },\n \"children\": []\n }]\n }]\n }, {\n \"data\": {\n \"text\": \"学习\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"工作日\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"早间新闻\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"8:00-8:30\"\n },\n \"children\": []\n }]\n }, {\n \"data\": {\n \"text\": \"阅读\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"21:00-23:00\"\n },\n \"children\": []\n }]\n }]\n }, {\n \"data\": {\n \"text\": \"休息日\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"财务管理\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"9:00-10:30\"\n },\n \"children\": []\n }]\n }, {\n \"data\": {\n \"text\": \"职场技能\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"14:00-15:30\"\n },\n \"children\": []\n }]\n }, {\n \"data\": {\n \"text\": \"其他书籍\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"16:00-18:00\"\n },\n \"children\": []\n }]\n }]\n }]\n }, {\n \"data\": {\n \"text\": \"休闲娱乐\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"看电影\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"1~2部\"\n },\n \"children\": []\n }]\n }, {\n \"data\": {\n \"text\": \"逛街\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"1~2次\"\n },\n \"children\": []\n }]\n }]\n }]\n }\n};\n\n/** \n * javascript comment \n * @Author: 王林25 \n * @Date: 2021-07-12 14:29:10 \n * @Desc: 极简数据 \n */\nconst data3 = {\n \"root\": {\n \"data\": {\n \"text\": \"根节点\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"二级节点\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n },\n \"children\": []\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n },\n \"children\": []\n }]\n }]\n }\n};\nconst data4 = {\n \"root\": {\n \"data\": {\n \"text\": \"根节点\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"二级节点1\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"子节点1-1\"\n },\n \"children\": []\n }, {\n \"data\": {\n \"text\": \"子节点1-2\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"子节点1-2-1\"\n },\n \"children\": []\n }, {\n \"data\": {\n \"text\": \"子节点1-2-2\"\n },\n \"children\": []\n }, {\n \"data\": {\n \"text\": \"子节点1-2-3\"\n },\n \"children\": []\n }]\n }]\n }, {\n \"data\": {\n \"text\": \"二级节点2\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"子节点2-1\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"子节点2-1-1\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"子节点2-1-1-1\"\n },\n \"children\": []\n }]\n }]\n }, {\n \"data\": {\n \"text\": \"子节点2-2\"\n },\n \"children\": []\n }]\n }]\n }\n};\n\n// 带概要\nconst data5 = {\n \"root\": {\n \"data\": {\n \"text\": \"根节点\"\n },\n \"children\": [{\n \"data\": {\n \"text\": \"二级节点\",\n \"generalization\": {\n \"text\": \"概要\"\n }\n },\n \"children\": [{\n \"data\": {\n \"text\": \"分支主题\"\n },\n \"children\": []\n }, {\n \"data\": {\n \"text\": \"分支主题\"\n },\n \"children\": []\n }]\n }]\n }\n};\n\n// 富文本数据v0.4.0+,需要使用RichText插件才支持富文本编辑\nconst richTextData = {\n \"root\": {\n \"data\": {\n \"text\": \"理想去年实验室\",\n \"richText\": true\n },\n \"children\": []\n }\n};\nconst rootData = {\n \"root\": {\n \"data\": {\n \"text\": \"根节点\"\n },\n \"children\": []\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n // ...data1,\n // ...data2,\n // ...data3,\n // ...data4,\n ...data5,\n // ...rootData,\n \"theme\": {\n \"template\": \"classic4\",\n \"config\": {\n // 自定义配置...\n }\n },\n \"layout\": \"logicalStructure\",\n // \"layout\": \"mindMap\",\n // \"layout\": \"catalogOrganization\"\n // \"layout\": \"organizationStructure\",\n \"config\": {}\n});\n\n//# sourceURL=webpack:///../simple-mind-map/example/exampleData.js?"); /***/ }), /***/ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/App.vue?vue&type=script&lang=js": /*!************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=script&lang=js ***! \************************************************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'App',\n components: {},\n data() {\n return {\n currentChunk: '',\n controller: new AbortController(),\n content: ''\n };\n },\n created() {\n this.getData();\n },\n methods: {\n async getData() {\n return;\n const res = await this.postMsg();\n return;\n const decoder = new TextDecoder();\n while (1) {\n const {\n done,\n value\n } = await res.read();\n if (done) {\n return;\n }\n // 拿到当前切片的数据\n const text = decoder.decode(value);\n // 处理切片数据\n let chunk = this.handleChunkData(text);\n // 判断是否有不完整切片,如果有,合并下一次处理,没有则获取数据\n if (this.currentChunk) continue;\n const list = chunk.split('\\n').filter(item => {\n return !!item;\n }).map(item => {\n return JSON.parse(item.replace(/^data:/, ''));\n });\n list.forEach(item => {\n this.content += item.choices.map(item2 => {\n return item2.delta.content;\n }).join('');\n console.log(this.content);\n });\n }\n },\n async postMsg() {\n const res = await fetch('http://localhost:3000/ai/chat', {\n signal: this.controller.signal,\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify({\n a: '227d32b1-08aa-413d-9c12-6832c34bc59b',\n b: 'ep-20250214110611-hhf9z',\n messages: [{\n role: 'user',\n content: '帮我写一个【2025年前端学习计划】,需要以Markdown格式返回,因为我要导入思维导图软件进行使用,只需返回内容即可。'\n }]\n })\n });\n if (res.status && res.status !== 200) {\n return false;\n }\n return res.body.getReader();\n },\n handleChunkData(chunk) {\n chunk = chunk.trim();\n // 如果存在上一个切片\n if (this.currentChunk) {\n chunk = this.currentChunk + chunk;\n this.currentChunk = '';\n }\n\n // 如果存在done,认为是完整切片且是最后一个切片\n if (chunk.includes('[DONE]')) {\n return chunk;\n }\n\n // 最后一个字符串不为},则默认切片不完整,保存与下次拼接使用(这种方法不严谨,但已经能解决大部分场景的问题)\n if (chunk[chunk.length - 1] !== '}') {\n this.currentChunk = chunk;\n }\n return chunk;\n },\n stop() {\n this.controller.abort();\n this.controller = new AbortController();\n }\n }\n});\n\n//# sourceURL=webpack:///./src/App.vue?./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"551ac3d2-vue-loader-template\"}!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/App.vue?vue&type=template&id=7ba5bd90": /*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"551ac3d2-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--7!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=template&id=7ba5bd90 ***! \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! exports provided: render, staticRenderFns */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _c(\"div\", {\n attrs: {\n id: \"app\"\n }\n }, [_c(\"router-view\")], 1);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack:///./src/App.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%22551ac3d2-vue-loader-template%22%7D!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--7!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./src/assets/icon-font/iconfont.css": /*!*******************************************************************************************************************************************************!*\ !*** ./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-3-1!./node_modules/postcss-loader/src??ref--7-oneOf-3-2!./src/assets/icon-font/iconfont.css ***! \*******************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_GET_URL_IMPORT___ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/getUrl.js */ \"./node_modules/css-loader/dist/runtime/getUrl.js\");\nvar ___CSS_LOADER_URL_IMPORT_0___ = __webpack_require__(/*! ./iconfont.woff2?t=1739152990179 */ \"./src/assets/icon-font/iconfont.woff2?t=1739152990179\");\nvar ___CSS_LOADER_URL_IMPORT_1___ = __webpack_require__(/*! ./iconfont.woff?t=1739152990179 */ \"./src/assets/icon-font/iconfont.woff?t=1739152990179\");\nvar ___CSS_LOADER_URL_IMPORT_2___ = __webpack_require__(/*! ./iconfont.ttf?t=1739152990179 */ \"./src/assets/icon-font/iconfont.ttf?t=1739152990179\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\nvar ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);\nvar ___CSS_LOADER_URL_REPLACEMENT_1___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_1___);\nvar ___CSS_LOADER_URL_REPLACEMENT_2___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_2___);\n// Module\nexports.push([module.i, \"@font-face {\\n font-family: \\\"iconfont\\\"; /* Project id 2479351 */\\n src: url(\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \") format('woff2'),\\n url(\" + ___CSS_LOADER_URL_REPLACEMENT_1___ + \") format('woff'),\\n url(\" + ___CSS_LOADER_URL_REPLACEMENT_2___ + \") format('truetype');\\n}\\n\\n.iconfont {\\n font-family: \\\"iconfont\\\" !important;\\n font-size: 16px;\\n font-style: normal;\\n -webkit-font-smoothing: antialiased;\\n -moz-osx-font-smoothing: grayscale;\\n}\\n\\n.iconprinting:before {\\n content: \\\"\\\\ea28\\\";\\n}\\n\\n.iconwenjianjia:before {\\n content: \\\"\\\\e614\\\";\\n}\\n\\n.iconcontentleft:before {\\n content: \\\"\\\\e8c9\\\";\\n}\\n\\n.iconjuzhongduiqi:before {\\n content: \\\"\\\\ec80\\\";\\n}\\n\\n.iconfile-excel:before {\\n content: \\\"\\\\e7b7\\\";\\n}\\n\\n.iconfreemind:before {\\n content: \\\"\\\\e97d\\\";\\n}\\n\\n.iconwaikuang:before {\\n content: \\\"\\\\e640\\\";\\n}\\n\\n.iconhighlight:before {\\n content: \\\"\\\\e6b8\\\";\\n}\\n\\n.iconyanshibofang:before {\\n content: \\\"\\\\e648\\\";\\n}\\n\\n.iconfujian:before {\\n content: \\\"\\\\e88a\\\";\\n}\\n\\n.icongeshihua:before {\\n content: \\\"\\\\e7a3\\\";\\n}\\n\\n.iconyuanma:before {\\n content: \\\"\\\\e658\\\";\\n}\\n\\n.icongundongtiao:before {\\n content: \\\"\\\\e670\\\";\\n}\\n\\n.iconxietongwendang:before {\\n content: \\\"\\\\e60d\\\";\\n}\\n\\n.iconTXT:before {\\n content: \\\"\\\\e6e1\\\";\\n}\\n\\n.iconwenjian1:before {\\n content: \\\"\\\\e69f\\\";\\n}\\n\\n.icondodeparent:before {\\n content: \\\"\\\\e70f\\\";\\n}\\n\\n.icongongshi:before {\\n content: \\\"\\\\e617\\\";\\n}\\n\\n.icontouming:before {\\n content: \\\"\\\\e60c\\\";\\n}\\n\\n.iconlieri:before {\\n content: \\\"\\\\e60b\\\";\\n}\\n\\n.iconmoon_line:before {\\n content: \\\"\\\\e745\\\";\\n}\\n\\n.iconsousuo:before {\\n content: \\\"\\\\e693\\\";\\n}\\n\\n.iconjiantouyou:before {\\n content: \\\"\\\\e62d\\\";\\n}\\n\\n.iconbianji1:before {\\n content: \\\"\\\\e60a\\\";\\n}\\n\\n.icondaohang1:before {\\n content: \\\"\\\\e632\\\";\\n}\\n\\n.iconyanjing:before {\\n content: \\\"\\\\e8bf\\\";\\n}\\n\\n.iconwangzhan:before {\\n content: \\\"\\\\e628\\\";\\n}\\n\\n.iconcsdn:before {\\n content: \\\"\\\\e608\\\";\\n}\\n\\n.iconshejiaotubiao-10:before {\\n content: \\\"\\\\e644\\\";\\n}\\n\\n.iconstar:before {\\n content: \\\"\\\\e7df\\\";\\n}\\n\\n.iconfork:before {\\n content: \\\"\\\\e641\\\";\\n}\\n\\n.iconxiazai:before {\\n content: \\\"\\\\e613\\\";\\n}\\n\\n.iconteamwork:before {\\n content: \\\"\\\\e870\\\";\\n}\\n\\n.iconshuiyin:before {\\n content: \\\"\\\\e67a\\\";\\n}\\n\\n.iconxmind:before {\\n content: \\\"\\\\ea57\\\";\\n}\\n\\n.iconmouseR:before {\\n content: \\\"\\\\e6bd\\\";\\n}\\n\\n.iconmouseL:before {\\n content: \\\"\\\\e6c0\\\";\\n}\\n\\n.iconwenjian:before {\\n content: \\\"\\\\e607\\\";\\n}\\n\\n.iconpdf:before {\\n content: \\\"\\\\e740\\\";\\n}\\n\\n.iconPNG:before {\\n content: \\\"\\\\ec18\\\";\\n}\\n\\n.iconSVG:before {\\n content: \\\"\\\\e621\\\";\\n}\\n\\n.iconmarkdown:before {\\n content: \\\"\\\\ec04\\\";\\n}\\n\\n.iconjson:before {\\n content: \\\"\\\\ea42\\\";\\n}\\n\\n.iconlianjiexian:before {\\n content: \\\"\\\\e75b\\\";\\n}\\n\\n.iconbangzhu:before {\\n content: \\\"\\\\e620\\\";\\n}\\n\\n.iconshezhi:before {\\n content: \\\"\\\\e8b7\\\";\\n}\\n\\n.iconwushuju:before {\\n content: \\\"\\\\e643\\\";\\n}\\n\\n.iconzuijinliulan:before {\\n content: \\\"\\\\e62f\\\";\\n}\\n\\n.icon3zuidahua-3:before {\\n content: \\\"\\\\e692\\\";\\n}\\n\\n.iconzuixiaohua:before {\\n content: \\\"\\\\e650\\\";\\n}\\n\\n.iconzuidahua:before {\\n content: \\\"\\\\e651\\\";\\n}\\n\\n.iconguanbi:before {\\n content: \\\"\\\\e652\\\";\\n}\\n\\n.icondiannao:before {\\n content: \\\"\\\\eac0\\\";\\n}\\n\\n.iconzhuye:before {\\n content: \\\"\\\\e65c\\\";\\n}\\n\\n.iconbendi1x:before {\\n content: \\\"\\\\e606\\\";\\n}\\n\\n.iconbeijingyanse:before {\\n content: \\\"\\\\e6f8\\\";\\n}\\n\\n.iconqingchu:before {\\n content: \\\"\\\\e605\\\";\\n}\\n\\n.iconcase:before {\\n content: \\\"\\\\e6c6\\\";\\n}\\n\\n.iconxingzhuang-wenzi:before {\\n content: \\\"\\\\eb99\\\";\\n}\\n\\n.iconzitijiacu:before {\\n content: \\\"\\\\ec83\\\";\\n}\\n\\n.iconzitixiahuaxian:before {\\n content: \\\"\\\\ec85\\\";\\n}\\n\\n.iconzitixieti:before {\\n content: \\\"\\\\ec86\\\";\\n}\\n\\n.iconshanchuxian:before {\\n content: \\\"\\\\e612\\\";\\n}\\n\\n.iconzitiyanse:before {\\n content: \\\"\\\\e854\\\";\\n}\\n\\n.icongithub:before {\\n content: \\\"\\\\e64f\\\";\\n}\\n\\n.iconchoose1:before {\\n content: \\\"\\\\e6c5\\\";\\n}\\n\\n.iconzhuti:before {\\n content: \\\"\\\\e7aa\\\";\\n}\\n\\n.icondaochu1:before {\\n content: \\\"\\\\e63e\\\";\\n}\\n\\n.iconlingcunwei:before {\\n content: \\\"\\\\e657\\\";\\n}\\n\\n.iconexport:before {\\n content: \\\"\\\\e642\\\";\\n}\\n\\n.icondakai:before {\\n content: \\\"\\\\ebdf\\\";\\n}\\n\\n.iconxinjian:before {\\n content: \\\"\\\\e64e\\\";\\n}\\n\\n.iconjianqie:before {\\n content: \\\"\\\\e601\\\";\\n}\\n\\n.iconzhengli:before {\\n content: \\\"\\\\e83b\\\";\\n}\\n\\n.iconfuzhi:before {\\n content: \\\"\\\\e604\\\";\\n}\\n\\n.iconniantie:before {\\n content: \\\"\\\\e63f\\\";\\n}\\n\\n.iconshangyi:before {\\n content: \\\"\\\\e6be\\\";\\n}\\n\\n.iconxiayi:before {\\n content: \\\"\\\\e6bf\\\";\\n}\\n\\n.icongaikuozonglan:before {\\n content: \\\"\\\\e609\\\";\\n}\\n\\n.iconquanxuan:before {\\n content: \\\"\\\\f199\\\";\\n}\\n\\n.icondaoru:before {\\n content: \\\"\\\\e6a3\\\";\\n}\\n\\n.iconhoutui-shi:before {\\n content: \\\"\\\\e656\\\";\\n}\\n\\n.iconqianjin1:before {\\n content: \\\"\\\\e654\\\";\\n}\\n\\n.iconwithdraw:before {\\n content: \\\"\\\\e603\\\";\\n}\\n\\n.iconqianjin:before {\\n content: \\\"\\\\e600\\\";\\n}\\n\\n.iconhuifumoren:before {\\n content: \\\"\\\\e60e\\\";\\n}\\n\\n.iconhuanhang:before {\\n content: \\\"\\\\e61e\\\";\\n}\\n\\n.iconsuoxiao:before {\\n content: \\\"\\\\ec13\\\";\\n}\\n\\n.iconbianji:before {\\n content: \\\"\\\\e626\\\";\\n}\\n\\n.iconfangda:before {\\n content: \\\"\\\\e663\\\";\\n}\\n\\n.iconquanping1:before {\\n content: \\\"\\\\e664\\\";\\n}\\n\\n.icondingwei:before {\\n content: \\\"\\\\e616\\\";\\n}\\n\\n.icondaohang:before {\\n content: \\\"\\\\e611\\\";\\n}\\n\\n.iconjianpan:before {\\n content: \\\"\\\\e64d\\\";\\n}\\n\\n.iconquanping:before {\\n content: \\\"\\\\e602\\\";\\n}\\n\\n.icondaochu:before {\\n content: \\\"\\\\e63d\\\";\\n}\\n\\n.iconbiaoqian:before {\\n content: \\\"\\\\e63c\\\";\\n}\\n\\n.iconflow-Mark:before {\\n content: \\\"\\\\e65b\\\";\\n}\\n\\n.iconchaolianjie:before {\\n content: \\\"\\\\e6f4\\\";\\n}\\n\\n.iconjingzi:before {\\n content: \\\"\\\\e610\\\";\\n}\\n\\n.iconxiaolian:before {\\n content: \\\"\\\\e60f\\\";\\n}\\n\\n.iconimage:before {\\n content: \\\"\\\\e629\\\";\\n}\\n\\n.iconjiegou:before {\\n content: \\\"\\\\e61d\\\";\\n}\\n\\n.iconyangshi:before {\\n content: \\\"\\\\e631\\\";\\n}\\n\\n.iconfuhao-dagangshu:before {\\n content: \\\"\\\\e71f\\\";\\n}\\n\\n.icontianjiazijiedian:before {\\n content: \\\"\\\\e622\\\";\\n}\\n\\n.iconjiedian:before {\\n content: \\\"\\\\e655\\\";\\n}\\n\\n.iconshanchu:before {\\n content: \\\"\\\\e696\\\";\\n}\\n\\n.iconzhankai:before {\\n content: \\\"\\\\e64c\\\";\\n}\\n\\n.iconzhankai1:before {\\n content: \\\"\\\\e673\\\";\\n}\\n\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///./src/assets/icon-font/iconfont.css?./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-3-1!./node_modules/postcss-loader/src??ref--7-oneOf-3-2"); /***/ }), /***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/App.vue?vue&type=style&index=0&id=7ba5bd90&lang=css": /*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=style&index=0&id=7ba5bd90&lang=css ***! \******************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \"\\n* {\\n margin: 0;\\n padding: 0;\\n box-sizing: border-box;\\n}\\n#app {\\n font-family: Avenir, Helvetica, Arial, sans-serif;\\n -webkit-font-smoothing: antialiased;\\n -moz-osx-font-smoothing: grayscale;\\n color: #2c3e50;\\n}\\n.el-dialog {\\n border-radius: 5px !important;\\n}\\n.customScrollbar {\\n&::-webkit-scrollbar {\\n width: 7px;\\n height: 7px;\\n}\\n&::-webkit-scrollbar-thumb {\\n border-radius: 7px;\\n background-color: rgba(0, 0, 0, 0.3);\\n cursor: pointer;\\n}\\n&::-webkit-scrollbar-track {\\n box-shadow: none;\\n background: transparent;\\n display: none;\\n}\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///./src/App.vue?./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/App.vue?vue&type=style&index=0&id=7ba5bd90&lang=css": /*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/vue-style-loader??ref--7-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=style&index=0&id=7ba5bd90&lang=css ***! \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { eval("// style-loader: Adds some css to the DOM by adding a