!function(t,o){o.un,o.uns;var i=o.static,n=o.class,a=o.getset,d=(o.__newvec,laya.utils.Browser),l=o.Config,s=(laya.events.Event,laya.events.EventDispatcher),r=laya.resource.HTMLImage,m=laya.utils.Handler,u=laya.display.Input,p=laya.net.Loader,c=laya.net.LocalStorage,e=(laya.maths.Matrix,laya.renders.Render),f=laya.utils.RunDriver,h=(laya.media.Sound,laya.media.SoundChannel),g=laya.media.SoundManager,y=laya.net.URL,w=laya.utils.Utils,_=(n(v,"laya.tt.mini.MiniFileMgr",null,"MiniFileMgr$8"),v.isLocalNativeFile=function(e){for(var i=0,t=P.nativefiles.length;iP.minClearSize&&(P.minClearSize=e.size),v.onClearCacheRes()),v.deleteFile(t,n,o,a,e.size)},fail:function(e){null!=o&&o.runWith([1,e])}}):null!=o&&o.runWith([0]):v.fs.getFileInfo({filePath:t,success:function(i){l&&52428800<=u+4194304+i.size&&(i.size>P.minClearSize&&(P.minClearSize=i.size),v.onClearCacheRes()),v.fs.copyFile({srcPath:t,destPath:r,success:function(e){v.onSaveFile(n,s,!0,a,o,i.size)},fail:function(e){null!=o&&o.runWith([1,e])}})},fail:function(e){null!=o&&o.runWith([1,e])}})},v.onClearCacheRes=function(){var e,i=P.minClearSize,t=[];for(e in v.filesListObj)"fileUsedSize"!=e&&t.push(v.filesListObj[e]);v.sortOn(t,"times",16);for(var n=0,o=1,a=t.length;o\s+<");try{i=(new t.Parser.DOMParser).parseFromString(e,"text/xml")}catch(e){throw"需要引入xml解析库文件"}return i},S.idx=1,i(S,["nativefiles",function(){return this.nativefiles=["layaNativeDir","wxlocal"]}]),S);function S(){}!function(o){function a(){a.__super.call(this)}n(a,"laya.tt.mini.MiniAccelerator",o,"MiniAccelerator$8");var e=a.prototype;e.on=function(e,i,t,n){return o.prototype.on.call(this,e,i,t,n),a.startListen(this.onDeviceOrientationChange),this},e.off=function(e,i,t,n){return void 0===n&&(n=!1),this.hasListener(e)||a.stopListen(),o.prototype.off.call(this,e,i,t,n)},a.__init__=function(){try{var e=laya.device.motion.Accelerator;if(!e)return;e.prototype.on=a.prototype.on,e.prototype.off=a.prototype.off}catch(e){}},a.startListen=function(e){if(a._callBack=e,!a._isListening){a._isListening=!0;try{P.window.wx.onAccelerometerChange(laya.tt.mini.MiniAccelerator.onAccelerometerChange)}catch(e){}}},a.stopListen=function(){a._isListening=!1;try{P.window.wx.stopAccelerometer({})}catch(e){}},a.onAccelerometerChange=function(e){var i={};i.acceleration=e,i.accelerationIncludingGravity=e,i.rotationRate={},null!=a._callBack&&a._callBack(i)},a._isListening=!1,a._callBack=null}(s);var I=function(){function v(){v.__super.call(this)}n(v,"laya.tt.mini.MiniLoader",s,"MiniLoader$8");var e=v.prototype;return e.load=function(e,i,t,n,o){void 0===t&&(t=!0),void 0===o&&(o=!1);var a=this;if(0===(a._url=e).indexOf("data:image")?a._type=i="image":a._type=i=i||a.getTypeFromUrl(e),a._cache=t,a._data=null,!o&&p.loadedMap[y.formatURL(e)])return a._data=p.loadedMap[y.formatURL(e)],this.event("progress",1),void this.event("complete",a._data);if(null!=p.parserMap[i])return a._customParse=!0,void(p.parserMap[i]instanceof laya.utils.Handler?p.parserMap[i].runWith(this):p.parserMap[i].call(null,this));var l=P.getUrlEncode(e,i),s=w.getFileExtension(e);if(-1!=v._fileTypeArr.indexOf(s)||"image"==i)P.EnvConfig.load.call(this,e,i,t,n,o);else if(P.isZiYu&&!_.ziyuFileData[e]&&(e=y.formatURL(e)),P.isZiYu&&_.ziyuFileData[e]){s=_.ziyuFileData[e];a.onLoaded(s)}else if(_.getFileInfo(y.formatURL(e))){var r=_.getFileInfo(y.formatURL(e));r.encoding=null==r.encoding?"utf8":r.encoding;var u=_.getFileNativePath(r.md5);_.readFile(u,r.encoding,new m(v,v.onReadNativeCallBack,[l,e,i,t,n,o,a]),y.formatURL(e))}else{if(_.isLocalNativeFile(e)){if(P.subNativeFiles&&0==P.subNativeheads.length)for(var d in P.subNativeFiles){var c=P.subNativeFiles[d];P.subNativeheads=P.subNativeheads.concat(c);for(var f=0;f