{"version":3,"sources":["webpack:///./app/dynloader.js","webpack:///./app/dynloader.mcss","webpack:///./app/dynloader.mcss?3d4b"],"names":["scriptList","scriptMapper","loaderActive","loader_id","real_body","endLoader","parentNode","replaceChild","beginLoader","document","createElement","classList","add","progressTool","innerHTML","getElementById","runScripts","length","name","scr","e","data","target","s","responseText","documentElement","appendChild","slice","addEventListener","updateProgressbar","progress","progressLoad","scriptname","req","XMLHttpRequest","event","lengthComputable","total","current","loaded","totalProgress","k","scriptName","open","send","push","window","content","require","transform","insertInto","options","undefined","update","locals","module","exports","hot","accept","newContent","id","a","b","key","idx","Error","dispose"],"mappings":";;;;;;;;AAAA;;;;;;AAEA,IAAIA,aAAa,EAAjB;AACA,IAAIC,eAAe,EAAnB;AACA,IAAIC,eAAe,KAAnB;AACA,IAAIC,YAAY,IAAhB;AACA,IAAIC,YAAY,IAAhB;;AAEA;AACA,SAASC,SAAT,GAAqB;AACnBF,YAAUG,UAAV,CAAqBC,YAArB,CAAkCJ,SAAlC,EAA6CC,SAA7C;AACAD,cAAY,IAAZ;AACD;;AAED,SAASK,WAAT,GAAuB;AACrBL,cAAYM,SAASC,aAAT,CAAuB,MAAvB,CAAZ;AACAP,YAAUQ,SAAV,CAAoBC,GAApB,CAAwB,oBAAMC,YAA9B;AACAJ,WAASC,aAAT,CAAuB,KAAvB;AACAP,YAAUW,SAAV,GAAsB,wBAAtB;;AAEAV,cAAYK,SAASM,cAAT,CAAwB,WAAxB,CAAZ;AACAX,YAAUE,UAAV,CAAqBC,YAArB,CAAkCH,SAAlC,EAA6CD,SAA7C;AACD;;AAED,SAASa,UAAT,GAAsB;AACpB,MAAIhB,WAAWiB,MAAX,IAAqB,CAAzB,EAA4B;AAC1BZ;AACA;AACD;;AAED,MAAMa,OAAOlB,WAAW,CAAX,CAAb;AACA,MAAMmB,MAAMlB,aAAaiB,IAAb,CAAZ;AACA,MAAI,UAAUC,GAAd,EAAmB;AACjB,QAAMC,IAAID,IAAIE,IAAJ,CAASC,MAA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QO,MAXI,EAWIK,WAAWL,MAXf,CAAd;;AAaA,MAAG,CAACA,MAAJ,EAAY,MAAM,IAAIW,KAAJ,CAAU,qDAAV,CAAN;;AAEZZ,SAAOM,UAAP;AACA,EArBD;;AAuBAJ,QAAOE,GAAP,CAAWS,OAAX,CAAmB,YAAW;AAAEb;AAAW,EAA3C;AACA,C;;;;;;;AC5CD;AACA;;;AAGA;AACA,0DAA2D,sBAAsB,WAAW,YAAY,UAAU,aAAa,2BAA2B,GAAG,oCAAoC,sBAAsB,UAAU,uBAAuB,YAAY,GAAG,wCAAwC,2BAA2B,WAAW,iBAAiB,+BAA+B,0BAA0B,8BAA8B,uBAAuB,uBAAuB,GAAG;;AAE9e;AACA;AACA;AACA;AACA;AACA,E","file":"dynloader.bundle.js","sourcesContent":["import style from './dynloader.mcss';\n\nlet scriptList = [];\nlet scriptMapper = {};\nlet loaderActive = false;\nlet loader_id = null;\nlet real_body = null;\n\n// This cleans up the DOM\nfunction endLoader() {\n loader_id.parentNode.replaceChild(loader_id, real_body);\n loader_id = null;\n}\n\nfunction beginLoader() {\n loader_id = document.createElement('body');\n loader_id.classList.add(style.progressTool);\n document.createElement('div');\n loader_id.innerHTML = '
';\n\n real_body = document.getElementById('main_body');\n real_body.parentNode.replaceChild(real_body, loader_id);\n}\n\nfunction runScripts() {\n if (scriptList.length == 0) {\n endLoader();\n return;\n }\n\n const name = scriptList[0];\n const scr = scriptMapper[name];\n if ('data' in scr) {\n const e = scr.data.target;\n const s = document.createElement('script');\n s.innerHTML = e.responseText;\n document.documentElement.appendChild(s);\n\n scriptList = scriptList.slice(1);\n\n s.addEventListener('load', runScripts);\n }\n}\n\nfunction updateProgressbar(progress) {}\n\n// This function does the queuing and parallel loading of the given script.\nfunction progressLoad(scriptname) {\n const req = new XMLHttpRequest();\n\n // Setup the progress event callback\n req.addEventListener(\n 'progress',\n function(event) {\n if (event.lengthComputable) {\n scriptMapper[scriptname].total = event.total;\n scriptMapper[scriptname].current = event.loaded;\n } else {\n }\n let totalProgress = { total: 0, current: 0 };\n for (const k in scriptMapper) {\n totalProgress.total += scriptMapper[k].total;\n totalProgress.current += scriptMapper[k].current;\n }\n // Update total progress bar\n updateProgressbar(totalProgress);\n },\n false\n );\n\n // Now we loaded the script completely.\n req.addEventListener(\n 'load',\n function(event) {\n // Save the data\n scriptMapper[scriptname].data = event;\n\n // If it is the top script then try to execute all of\n // them till the queue is empty.\n if (scriptList[0] == scriptName) {\n runScripts();\n }\n },\n false\n );\n\n req.open('GET', scriptname);\n req.send();\n\n scriptList.push(scriptname);\n\n scriptMapper[scriptname] = { current: 0, total: 0 };\n}\n\n// Export it to the global symbol list\nwindow['scriptProgressLoader'] = progressLoad;\n\n\n\n// WEBPACK FOOTER //\n// ./app/dynloader.js","\nvar content = require(\"!!../node_modules/css-loader/index.js??ref--10-1!../node_modules/postcss-loader/lib/index.js??ref--10-2!./dynloader.mcss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../node_modules/css-loader/index.js??ref--10-1!../node_modules/postcss-loader/lib/index.js??ref--10-2!./dynloader.mcss\", function() {\n\t\tvar newContent = require(\"!!../node_modules/css-loader/index.js??ref--10-1!../node_modules/postcss-loader/lib/index.js??ref--10-2!./dynloader.mcss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}\n\n\n// WEBPACK FOOTER //\n// ./app/dynloader.mcss","exports = module.exports = require(\"../node_modules/css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \"#_5zhwv-dynloader-progress_tool {\\n position:absolute;\\n left:0;\\n right:0;\\n top:0;\\n bottom:0;\\n background-color:black;\\n}\\n\\n#_227cc-dynloader-progress_div {\\n position:absolute; left:50%; border:1px red dotted;\\n top:50%;\\n}\\n\\n#_2dmy7-dynloader-progress_div_div { \\n position:relative; left:-50%;\\n top:-50%;\\n background-color:green;\\n text-align:center;\\n vertical-align:middle;\\n min-width:10em;\\n min-height:2em;\\n}\\n\\n\", \"\"]);\n\n// exports\nexports.locals = {\n\t\"progress_tool\": \"_5zhwv-dynloader-progress_tool\",\n\t\"progress_div\": \"_227cc-dynloader-progress_div\",\n\t\"progress_div_div\": \"_2dmy7-dynloader-progress_div_div\"\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/css-loader??ref--10-1!./node_modules/postcss-loader/lib??ref--10-2!./app/dynloader.mcss\n// module id = 682\n// module chunks = 4"],"sourceRoot":""}