window.__require=function e(n,t,r){function o(i,c){if(!t[i]){if(!n[i]){var s=i.split("/");if(s=s[s.length-1],!n[s]){var u="function"==typeof __require&&__require;if(!c&&u)return u(s,!0);if(a)return a(s,!0);throw new Error("Cannot find module '"+i+"'")}}var f=t[i]={exports:{}};n[i][0].call(f.exports,function(e){return o(n[i][1][e]||e)},f,f.exports,e,n,t,r)}return t[i].exports}for(var a="function"==typeof __require&&__require,i=0;i<r.length;i++)o(r[i]);return o}({launch:[function(e,n,t){"use strict";cc._RF.push(n,"e53e6YiUd9FJLf8yIQu1n47","launch"),cc.Class({extends:cc.Component,properties:{content:cc.Node,prefab:cc.Prefab},start:function(){var e=this;wx.onMessage(function(n){n.nickName&&n.avatarUrl&&(e.showUserData(n.nickName,n.avatarUrl),function(){for(var n=0;n<5;n++){cc.instantiate(e.prefab).parent=e.content}}())}),wx.getFriendCloudStorage({success:function(n){for(var t=0;t<5;t++){var r=n.data[t];if(!e.preSettingData(r," stop getting friends' infos"))return}},fail:function(e){console.log(e)}})},showUserData:function(e,n){var t=cc.instantiate(this.prefab);t.parent=this.content;var r=t.getChildByName("userName").getComponent(cc.Label),o=t.getChildByName("mask").children[0].getComponent(cc.Sprite);r.string=e,console.log(e+"'s info has been getten."),cc.loader.load({url:n,type:"png"},function(e,n){e&&console.error(e),console.log(n),o.spriteFrame=new cc.SpriteFrame(n)})},preSettingData:function(e,n){if(!e)return console.log(n),!1;var t=e.nickname,r=e.avatarUrl;return this.showUserData(t,r),!0}}),cc._RF.pop()},{}]},{},["launch"]);