require.scopes.io=function(){var a={};return a.IO={_getFileEntry:function(a,b,c,d){a instanceof FakeFile?a=a.path:"spec"in a&&(a=a.spec),a=a.replace(/^.*[\/\\]/,""),(window.requestFileSystem||window.webkitRequestFileSystem)(window.PERSISTENT,1073741824,function(e){e.root.getFile(a,{create:b},function(a){c(e,a)},d)},d)},lineBreak:"\n",resolveFilePath:function(a){return new FakeFile(a)},readFromFile:function(a,b,c,d){return"spec"in a&&/^defaults\b/.test(a.spec)?(localStorage.currentVersion&&(seenDataCorruption=!0),delete localStorage.currentVersion,d(null),void 0):(this._getFileEntry(a,!1,function(a,b){b.file(function(a){var b=new FileReader;b.onloadend=function(){if(b.error)d(b.error);else{for(var a=b.result.split(/[\r\n]+/),e=0;e<a.length;e++)c.process(a[e]);c.process(null),d(null)}},b.readAsText(a)},d)},d),void 0)},writeToFile:function(a,b,c,d){this._getFileEntry(a,!0,function(a,b){b.createWriter(function(a){var b=function(b,c){a.onwriteend=function(){a.error?d(a.error):c()}.bind(this),b()}.bind(this);b(a.truncate.bind(a,0),function(){var e;try{e=new Blob([c.join(this.lineBreak)+this.lineBreak],{type:"text/plain"})}catch(f){if(!(f instanceof TypeError))throw f;var g=new window.BlobBuilder||window.WebKitBlobBuilder();g.append(c.join(this.lineBreak)+this.lineBreak),e=g.getBlob("text/plain")}b(a.write.bind(a,e),d.bind(null,null))}.bind(this))}.bind(this),d)}.bind(this),d)},copyFile:function(a,b,c){var d=[];this.readFromFile(a,!1,{process:function(a){null!==a&&d.push(a)}},function(a){a?c(a):this.writeToFile(b,!1,d,c)}.bind(this))},renameFile:function(a,b,c){this._getFileEntry(a,!1,function(a,d){d.moveTo(a.root,b,function(){c(null)},c)},c)},removeFile:function(a,b){this._getFileEntry(a,!1,function(a,c){c.remove(function(){b(null)},b)},b)},statFile:function(a,b){this._getFileEntry(a,!1,function(a,c){c.getMetadata(function(a){b(null,{exists:!0,isDirectory:c.isDirectory,isFile:c.isFile,lastModified:a.modificationTime.getTime()})},b)},b)}},a}();