(async()=>{let a=await load("data -r");await load("xque");let t=await load("common/data");window.pageRunner={v:"10300",data:a,commonData:t},window.beforeInit&&beforeInit(t,a);let i=await load("util/dataUtil");$("[p-custom]").length&&await load("task/initCustomEle"),i.addLength(a),await load("task/fixActive").post(a),i.transPos(a);let e=$(".p_main");await load("task/renderPage").post({target:e,data:a}),$(".mainLoading").hide();let o=a.mainPage,d=0;switch(Array.from(o).some((a,t)=>{if(a.active)return d=t,!0}),e.attr("h5-mode",o.type||"h5"),o.type){case"scroll":await load("task/scroll/initScrollMode").post({initActiveId:d});break;case"ppt":await load("task/ppt/initPPTMode").post({initActiveId:d});break;case"h5":default:await load("task/h5/initH5").post({initActiveId:d})}top!==window&&top.postMessage({type:"initBack"},"*")})();