2
0

app.31bba3ca.js 14 KB

12
  1. (function(){"use strict";var __webpack_modules__={8271:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{S:function(){return Formula}});var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7658),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);class Formula{constructor(e){this.formula="",this.watchers=[],this.ast=[],this.formula=e,this.compile()}compile(){const e=this.formula.split(/([\+\-\*\/\(\)])/);this.ast=e.filter((e=>""!==e)),this.ast.forEach((e=>{this.isSymbol(e)||this.isStatic(e)||this.watchers.push(e.split(/[\.\[]/)[0])}))}isSymbol(e){return/^[\+\-\*\/\(\)]{1}$/g.test(e)}isStatic(e){return/[\"\']/.test(e)||/^\d+$/.test(e)}shouldUpdate(e){return this.watchers.includes(e)}result(_context){const ast=this.ast.map((e=>this.isSymbol(e)||this.isStatic(e)?e:e.replace(/(^[\.\[]*)/,"_context.$1")));return eval(ast.join(""))}destroy(){this.formula="",this.watchers=[],this.ast=[]}}},8822:function(e,t,r){r.d(t,{Si:function(){return i.S},jz:function(){return l},WQ:function(){return a}});class n{constructor(e){"session"===e?this.storage=window.sessionStorage:"local"===e&&(this.storage=window.localStorage)}setItem(e,t){return this.storage.setItem(e,JSON.stringify(t))}getItem(e){const t=this.storage.getItem(e);if(t)try{return JSON.parse(t)}catch(r){return t}return null}removeItem(e){return this.storage.removeItem(e)}getStorage(){return this.storage}get length(){return this.storage.length}clear(){return this.storage.clear()}key(e){return this.storage.key(e)}}function a(e){const t=document.documentElement,r=window.devicePixelRatio||1;function n(){let r=t.clientWidth;e.minWidth&&(r=Math.max(r,e.minWidth));const n=r/10;t.style.fontSize=n+"px"}if(n(),window.addEventListener("resize",n),window.addEventListener("pageshow",(function(e){e.persisted&&n()})),r>=2){const e=document.createElement("body"),r=document.createElement("div");r.style.border=".5px solid transparent",e.appendChild(r),t.appendChild(e),1===r.offsetHeight&&t.classList.add("hairlines"),t.removeChild(e)}}n.session=new n("session"),n.local=new n("local");var i=r(8271);r(7658);let o,s=!1;function _(e){return Array.from(e).map((e=>e[0]))}function u(){s=!0;const e=_(l.threadMap).sort(((e,t)=>t-e)),t=e[0],r=l.threadMap.get(t);r.forEach((e=>{e.samePriorityLength=r.length;let t=e.taskUnit;e.start();while(t&&!e.shouldYield&&!e.isEmpty)t=e.taskUnit=e.exec();void 0===t?e.destroy():e.pause()})),l.isAllEmpty()?s=!1:c(u)}function c(e){window.MessageChannel?(o||(o=new MessageChannel,o.port1.onmessage=e),o.port2.postMessage("notify")):setTimeout(e,0)}class l{static create(e,t=void 0,r){const n=new l(e,t,r);l.threads.push(n);const a=n.options.priority,i=l.threadMap.get(a);return i?i.push(n):l.threadMap.set(a,[n]),n}static isAllEmpty(){return!l.threads.find((e=>!e.isEmpty))}constructor(e,t,r){this.runner=void 0,this.taskUnit=void 0,this.options={priority:0},this.status="paused",this.samePriorityLength=0,this.startTime=0,this.runner=e,this.taskUnit=t,this.options=Object.assign(this.options,r)}start(){this.status="running",this.startTime=Date.now(),s||u()}pause(){this.status="paused",this.startTime=0}exec(){return this.runner(this.taskUnit)}destroy(){l.threads.splice(l.threads.findIndex((e=>e===this)),1);const e=l.threadMap.get(this.options.priority);e.splice(e.findIndex((e=>e===this)),1),0===e.length&&l.threadMap.delete(this.options.priority),this.runner=void 0,this.options=void 0,this.taskUnit=void 0,this.status="destroyed"}get shouldYield(){return Date.now()>this.startTime+this.yieldInterval}get isEmpty(){return void 0===this.taskUnit}get yieldInterval(){return l.yieldInterval/this.samePriorityLength}}l.threads=[],l.threadMap=new Map,l.yieldInterval=5},9276:function(e,t,r){var n=r(9242),a=r(3396);const i=e=>((0,a.dD)("data-v-5ce6e883"),e=e(),(0,a.Cn)(),e),o={class:"nav-bar"},s=i((()=>(0,a._)("div",{class:"logo"},[(0,a._)("h1",null,"Ludash")],-1))),_={class:"menu"};function u(e,t){const r=(0,a.up)("RouterLink");return(0,a.wg)(),(0,a.iD)("div",o,[s,(0,a._)("div",_,[(0,a.Wm)(r,{to:"/admin"},{default:(0,a.w5)((()=>[(0,a.Uk)("admin")])),_:1}),(0,a.Wm)(r,{to:"/bi"},{default:(0,a.w5)((()=>[(0,a.Uk)("bi")])),_:1}),(0,a.Wm)(r,{to:"/dashboard"},{default:(0,a.w5)((()=>[(0,a.Uk)("dashboard")])),_:1}),(0,a.Wm)(r,{to:"/three"},{default:(0,a.w5)((()=>[(0,a.Uk)("three")])),_:1}),(0,a.Wm)(r,{to:"/webgl"},{default:(0,a.w5)((()=>[(0,a.Uk)("webgl")])),_:1}),(0,a.Wm)(r,{to:"/flow"},{default:(0,a.w5)((()=>[(0,a.Uk)("Flow")])),_:1}),(0,a.Wm)(r,{to:"/install"},{default:(0,a.w5)((()=>[(0,a.Uk)("安装")])),_:1}),(0,a.Wm)(r,{to:"/sdk"},{default:(0,a.w5)((()=>[(0,a.Uk)("SDK")])),_:1})])])}var c=r(89);const l={},d=(0,c.Z)(l,[["render",u],["__scopeId","data-v-5ce6e883"]]);var h=d,p=r(7139);const m={class:"left-aside"};function f(e,t,r,n,i,o){const s=(0,a.up)("RouterLink");return(0,a.wg)(),(0,a.iD)("ul",m,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(n.subRoutes,(e=>((0,a.wg)(),(0,a.iD)("li",{key:e.name},[(0,a.Wm)(s,{to:e.path},{default:(0,a.w5)((()=>[(0,a.Uk)((0,p.zw)(e.name),1)])),_:2},1032,["to"])])))),128))])}var b=r(2483),w={name:"LeftAside",setup(){const e=(0,b.yj)(),t=(0,a.Fl)((()=>{const t=e.matched[e.matched.length-2]||e.matched[0];return e.matched,t?t.children.filter((e=>!["","/:pathMatch(.*)"].includes(e.path))):[]}));return{subRoutes:t}}};const k=(0,c.Z)(w,[["render",f],["__scopeId","data-v-03a976f4"]]);var g=k;const v={class:"root"},y={class:"wrap"},q={class:"right"};var E={__name:"App",setup(e){const t=(0,a.Fl)((()=>(0,b.yj)().fullPath.startsWith("/sdk")||(0,b.yj)().fullPath.startsWith("/three")));return(e,r)=>{const n=(0,a.up)("router-view");return(0,a.wg)(),(0,a.iD)("div",v,[(0,a.Wm)(h),(0,a._)("div",y,[t.value?((0,a.wg)(),(0,a.j4)(g,{key:0,class:"menu"})):(0,a.kq)("",!0),(0,a._)("div",q,[(0,a.Wm)(n)])])])}}};const x=(0,c.Z)(E,[["__scopeId","data-v-6a90847e"]]);var P=x;const S=(0,a.aZ)({name:"DynamicComponent",render(){return(0,a.Wm)((0,a.up)("router-view"),null,null)}}),j=[{path:"/",name:"home",redirect:{name:"sdk"}},{path:"/install",name:"install",component:S,children:[{path:"",name:"install",component:()=>Promise.all([r.e(787),r.e(250),r.e(965)]).then(r.bind(r,3199))}]},{path:"/flow",name:"flow",component:S,children:[{path:"",name:"flowIndex",component:()=>r.e(239).then(r.bind(r,8859))}]},{path:"/dashboard",name:"dashboard",component:S,children:[{path:"",name:"dashboardIndex",component:()=>r.e(966).then(r.bind(r,2154))}]},{path:"/webgl",name:"webgl",component:S,children:[{path:"",name:"webglIndex",component:()=>Promise.all([r.e(787),r.e(88)]).then(r.bind(r,7315))}]},{path:"/three",name:"three",component:S,children:[{path:"/three/index",name:"threeIndex",component:()=>Promise.all([r.e(787),r.e(841)]).then(r.bind(r,5381))},{path:"/three/light",name:"threeLight",component:()=>Promise.all([r.e(787),r.e(841)]).then(r.bind(r,383))},{path:"/three/material",name:"threeMaterial",component:()=>Promise.all([r.e(787),r.e(841)]).then(r.bind(r,8057))}]},{path:"/sdk",name:"sdk",component:S,children:[{path:"queue",name:"queue",component:()=>Promise.all([r.e(787),r.e(250),r.e(618)]).then(r.bind(r,2021))},{path:"async",name:"async",component:()=>Promise.all([r.e(787),r.e(250),r.e(931)]).then(r.bind(r,4359))},{path:"storage",name:"storage",component:()=>Promise.all([r.e(787),r.e(250),r.e(851)]).then(r.bind(r,668))},{path:"flexible",name:"flexible",component:()=>Promise.all([r.e(787),r.e(250),r.e(76)]).then(r.bind(r,6469))},{path:"http",name:"http",component:()=>Promise.all([r.e(787),r.e(250),r.e(981)]).then(r.bind(r,9947))},{path:"formula",name:"formula",component:()=>Promise.all([r.e(787),r.e(250),r.e(183)]).then(r.bind(r,8061))},{path:"thread",name:"thread",component:()=>Promise.all([r.e(787),r.e(250),r.e(834)]).then(r.bind(r,3092))},{path:"",redirect:{name:"queue"}},{path:"/:pathMatch(.*)",redirect:{name:"queue"}}]}],M=(0,b.p7)({history:(0,b.r5)(),routes:j});var O=M,C=r(65),I=(0,C.MT)({state:{},getters:{},mutations:{},actions:{},modules:{}}),W=r(8822);(0,W.WQ)({minWidth:700}),(0,n.ri)(P).use(I).use(O).mount("#app")}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.m=__webpack_modules__,function(){var e=[];__webpack_require__.O=function(t,r,n,a){if(!r){var i=1/0;for(u=0;u<e.length;u++){r=e[u][0],n=e[u][1],a=e[u][2];for(var o=!0,s=0;s<r.length;s++)(!1&a||i>=a)&&Object.keys(__webpack_require__.O).every((function(e){return __webpack_require__.O[e](r[s])}))?r.splice(s--,1):(o=!1,a<i&&(i=a));if(o){e.splice(u--,1);var _=n();void 0!==_&&(t=_)}}return t}a=a||0;for(var u=e.length;u>0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[r,n,a]}}(),function(){__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return __webpack_require__.d(t,{a:t}),t}}(),function(){__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){__webpack_require__.f={},__webpack_require__.e=function(e){return Promise.all(Object.keys(__webpack_require__.f).reduce((function(t,r){return __webpack_require__.f[r](e,t),t}),[]))}}(),function(){__webpack_require__.u=function(e){return"js/"+({76:"flexible",88:"webgl",183:"formula",239:"flow",618:"queue",834:"thread",841:"three",851:"storage",931:"async",965:"install",966:"dashboard",981:"http"}[e]||e)+"."+{76:"d97ef22a",88:"12cc3182",183:"ed46a2b3",239:"978f3057",250:"b42539e9",618:"489ba23e",787:"22164ff5",834:"467db427",841:"797e946e",851:"158dffa7",931:"44e78b99",965:"27367d00",966:"5664ac43",981:"61b1fb73"}[e]+".js"}}(),function(){__webpack_require__.miniCssF=function(e){return"css/"+{76:"flexible",183:"formula",239:"flow",618:"queue",834:"thread",841:"three",851:"storage",931:"async",965:"install",966:"dashboard",981:"http"}[e]+"."+{76:"fd441ab5",183:"fd441ab5",239:"7eb836ca",618:"fd441ab5",834:"fd441ab5",841:"b92e768b",851:"fd441ab5",931:"fd441ab5",965:"fd441ab5",966:"a960df03",981:"fd441ab5"}[e]+".css"}}(),function(){__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="ludash:";__webpack_require__.l=function(r,n,a,i){if(e[r])e[r].push(n);else{var o,s;if(void 0!==a)for(var _=document.getElementsByTagName("script"),u=0;u<_.length;u++){var c=_[u];if(c.getAttribute("src")==r||c.getAttribute("data-webpack")==t+a){o=c;break}}o||(s=!0,o=document.createElement("script"),o.charset="utf-8",o.timeout=120,__webpack_require__.nc&&o.setAttribute("nonce",__webpack_require__.nc),o.setAttribute("data-webpack",t+a),o.src=r),e[r]=[n];var l=function(t,n){o.onerror=o.onload=null,clearTimeout(d);var a=e[r];if(delete e[r],o.parentNode&&o.parentNode.removeChild(o),a&&a.forEach((function(e){return e(n)})),t)return t(n)},d=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),s&&document.head.appendChild(o)}}}(),function(){__webpack_require__.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){__webpack_require__.p="/ludash/"}(),function(){if("undefined"!==typeof document){var e=function(e,t,r,n,a){var i=document.createElement("link");i.rel="stylesheet",i.type="text/css";var o=function(r){if(i.onerror=i.onload=null,"load"===r.type)n();else{var o=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.href||t,_=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");_.code="CSS_CHUNK_LOAD_FAILED",_.type=o,_.request=s,i.parentNode&&i.parentNode.removeChild(i),a(_)}};return i.onerror=i.onload=o,i.href=t,r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i),i},t=function(e,t){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var a=r[n],i=a.getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(i===e||i===t))return a}var o=document.getElementsByTagName("style");for(n=0;n<o.length;n++){a=o[n],i=a.getAttribute("data-href");if(i===e||i===t)return a}},r=function(r){return new Promise((function(n,a){var i=__webpack_require__.miniCssF(r),o=__webpack_require__.p+i;if(t(i,o))return n();e(r,o,null,n,a)}))},n={143:0};__webpack_require__.f.miniCss=function(e,t){var a={76:1,183:1,239:1,618:1,834:1,841:1,851:1,931:1,965:1,966:1,981:1};n[e]?t.push(n[e]):0!==n[e]&&a[e]&&t.push(n[e]=r(e).then((function(){n[e]=0}),(function(t){throw delete n[e],t})))}}}(),function(){var e={143:0};__webpack_require__.f.j=function(t,r){var n=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var a=new Promise((function(r,a){n=e[t]=[r,a]}));r.push(n[2]=a);var i=__webpack_require__.p+__webpack_require__.u(t),o=new Error,s=function(r){if(__webpack_require__.o(e,t)&&(n=e[t],0!==n&&(e[t]=void 0),n)){var a=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;o.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",o.name="ChunkLoadError",o.type=a,o.request=i,n[1](o)}};__webpack_require__.l(i,s,"chunk-"+t,t)}},__webpack_require__.O.j=function(t){return 0===e[t]};var t=function(t,r){var n,a,i=r[0],o=r[1],s=r[2],_=0;if(i.some((function(t){return 0!==e[t]}))){for(n in o)__webpack_require__.o(o,n)&&(__webpack_require__.m[n]=o[n]);if(s)var u=s(__webpack_require__)}for(t&&t(r);_<i.length;_++)a=i[_],__webpack_require__.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return __webpack_require__.O(u)},r=self["webpackChunkludash"]=self["webpackChunkludash"]||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var __webpack_exports__=__webpack_require__.O(void 0,[998],(function(){return __webpack_require__(9276)}));__webpack_exports__=__webpack_require__.O(__webpack_exports__)})();
  2. //# sourceMappingURL=app.31bba3ca.js.map