define("share/assert/js/ioutil_web",["./ioutil","share/assert/js/appcontext","share/assert/js/path","share/assert/js/widgettype"],function(require,exports){function a(){}var b=require("./ioutil").IOUtilBase,c=require("share/assert/js/appcontext").AppContext,d=require("share/assert/js/widgettype");a.prototype=new b,a.prototype.constructor=a,a.prototype.readFile=function(a){var b=jQuery.Deferred();if(!a)throw new Error("error argument");var e=a.match(/slide.json/);if(c.isSingleWidgetPlayMode&&e){var f="",g=800,h=600;switch(c.singleWidgetType){case"cn_word":f=d.Types.CnEval,g=900;break;case"en_word":f=d.Types.EnEval,g=900;break;case"situ":f=d.Types.Situdlg,g=1e3;break;case"exercise":f=d.Types.Exercise;break;case"flipcard":f=d.Types.Flipcard;break;case"gallery":f=d.Types.Gallery;break;case"history":f=d.Types.History;break;case"pickcard":f=d.Types.Pickcard;break;case"matchcard":f=d.Types.Matchcard;break;case"ppt":f=d.Types.PPT}var i={canvas:{objects:[{type:f,originX:"left",originY:"top",left:0,top:0,width:g,height:h,fill:"rgb(0,0,0)",stroke:"#d0cece",strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:10,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:{color:"rgba(0,0,0,0.4)",blur:5,offsetX:0,offsetY:0},visible:!0,clipTo:null,backgroundColor:"",id:f,rid:"r1",src:"",filters:[],crossOrigin:""}],background:"white"},rels:[{id:"r1",src:"",title:"",des:"",type:"dir"}],animationInfo:[],presentfmt:"800:500"},j=JSON.stringify(i);b.resolve(j)}else c.singleWidgetRouteAddress?$.ajax({url:c.singleWidgetRouteAddress,type:"POST",data:{prewUrl:a},success:function(a){"object"==typeof a&&(a=JSON.stringify(a)),b.resolve(a)},error:function(){b.resolve("")}}):$.post(a,null,function(a){"object"==typeof a&&(a=JSON.stringify(a)),b.resolve(a)}).fail(function(){b.resolve("")});return b.promise()},a.prototype.writeFile=function(){throw new Error("writeFile need impl")},a.prototype.shellexecute=function(){throw new Error("shellexecute is not implemented !")},exports.IOUtil=new a}),define("share/assert/js/ioutil",[],function(require,exports){function a(){}a.prototype.readFile=function(){},a.prototype.writeFile=function(){},a.prototype.mkdir=function(){},a.prototype.shellexecute=function(){},exports.IOUtilBase=a});