PageSourceSearch

https://onefunc.com/app/plan/jslib/OF_SHARED_SPACE.js

js onefunc.com collected 2026-10-02 16:05:59 UTC 44,011 bytes, 1 lines download raw bytes

1(OF_SHARED_SPACE={init:function(){OF_SHARED_SPACE.space.endPoint="https://space-plan-api.onefunc.com/v1/sharedspace",OF_SHARED_SPACE.event.endPoint="https://space-plan-api.onefunc.com/v1/event",OF_SHARED_SPACE.event_repeat.endPoint="https://space-plan-api.onefunc.com/v1/event_repeat",OF_SHARED_SPACE.profile.endPoint="https://profile-plan-api.onefunc.com/v1/profile",OF_SHARED_SPACE.file.endPoint="https://file-plan-api.onefunc.com/v1/file",OF_SHARED_SPACE.masterpiece.endPoint="https://masterpiece-plan-api.onefunc.com/v1/masterpiece",OF_SHARED_SPACE.adjust.endPoint="https://adjust-plan-api.onefunc.com/v2/adjust",OF_SHARED_SPACE.activity.endPoint="https://activity-plan-api.onefunc.com/v1/activity",OF_SHARED_SPACE.knowing.endPoint="https://knowing-plan-api.onefunc.com/v1/profile",OF_SHARED_SPACE.status.endPoint="https://status-plan-api.onefunc.com/v1/status",OF_SHARED_SPACE.weather.endPoint="https://weather-api.onefunc.com/v1/weather"},profile:{endPoint:"http://localhost:4000/profile",profile_create:function(e,t,n,i,o,a,r){var _=OF_SHARED_SPACE.profile.endPoint+"/profile_create";OF_AWS.request(_,"profile_name="+e+"&profile_description="+t+"&profile_website="+n+"&profile_private="+i+"&profile_schedule_type="+o+"&goal="+a,r)},profile_update:function(e,t,n,i,o,a,r,_,c,s,l){var u=OF_SHARED_SPACE.profile.endPoint+"/profile_update";OF_AWS.request(u,"profile_id="+e+"&profile_token="+t+"&profile_name="+n+"&profile_description="+i+"&profile_website="+o+"&profile_private="+a+"&profile_schedule_type="+r+"&goal="+_+"&profile_team_id="+c+"&my_grade="+s,l)},profile_update_team:function(e,t,n,i,o){var a=OF_SHARED_SPACE.profile.endPoint+"/profile_update_team";OF_AWS.request(a,"profile_id="+e+"&profile_token="+t+"&profile_team_id="+n+"&my_grade="+i,o)},profile_update_grade:function(e,t,n,i){var o=OF_SHARED_SPACE.profile.endPoint+"/profile_update_grade";OF_AWS.request(o,"profile_id="+e+"&profile_token="+t+"&my_grade="+n,i)},profile_clear_website_auth:function(e,t,n){var i=OF_SHARED_SPACE.profile.endPoint+"/profile_clear_website_auth";OF_AWS.request(i,"profile_id="+e+"&profile_token="+t,n)},profile_clear_sns:function(e,t,n,i){var o=OF_SHARED_SPACE.profile.endPoint+"/profile_clear_sns";OF_AWS.request(o,"profile_id="+e+"&profile_token="+t+"&service_name="+n,i)},profile_get:function(e,t,n){var i=OF_SHARED_SPACE.profile.endPoint+"/profile_get";OF_AWS.request(i,"profile_id="+e+"&profile_token="+t,n)},searchUser:function(e,t){var n=OF_SHARED_SPACE.profile.endPoint+"/profile_search_user";OF_AWS.request(n,"search_word="+e,t)},profile_quit:function(e,t,n,i){var o=OF_SHARED_SPACE.profile.endPoint+"/profile_quit";OF_AWS.request(o,"user_id="+e+"&profile_id="+t+"&profile_token="+n,i)}},file:{endPoint:"http://localhost:4000/files",_getFile:function(e,t){fetch(e,{mode:"cors",method:"GET"}).then(function(e){if(e.ok)return e.text().then(function(e){t({status:0,data:e})});t()})},_putFile:function(e,t,n){fetch(e,{method:"PUT",body:t}).then(function(e){if(e.ok)return e.text().then(function(e){n("OK")});n()})},upload_profile_icon:function(e,t,n,i,o){OF_SHARED_SPACE.file._getProfileIconUploadURL(e,t,i,function(e){null==e?o():OF_SHARED_SPACE.file._putFile(e.signed_url,n,function(e){o(e)})})},_getProfileIconUploadURL:function(e,t,n,i){var o=OF_SHARED_SPACE.file.endPoint+"/upload_profile_icon";OF_AWS.request(o,"profile_id="+e+"&profile_token="+t+"&mime="+n,i)},upload_event_cover:function(e,t,n,i,o,a){OF_SHARED_SPACE.file._getEventC
1overUploadURL(e,t,n,o,function(e){null==e?a():OF_SHARED_SPACE.file._putFile(e.signed_url,i,function(e){a(e)})})},_getEventCoverUploadURL:function(e,t,n,i,o){var a=OF_SHARED_SPACE.file.endPoint+"/upload_event_cover";OF_AWS.request(a,"profile_id="+e+"&profile_token="+t+"&event_create_time="+n+"&mime="+i,o)},getEventCoverImage:function(e,t,n,i,o,a){OF_SHARED_SPACE.file._getEventCoverImageURL(e,t,n,i,o,function(e){null==e||null==e.signed_url?a():a(e)})},_getEventCoverImageURL:function(e,t,n,i,o,a){var r=OF_SHARED_SPACE.file.endPoint+"/get_event_cover",e="profile_id="+e+"&profile_token="+t+"&event_profile_id="+n+"&event_create_time="+i;""!=o&&(e+="&space_id="+o),OF_AWS.request(r,e,a)},deleteEventCoverImage:function(e,t,n,i){var o=OF_SHARED_SPACE.file.endPoint+"/delete_event_cover";OF_AWS.request(o,"profile_id="+e+"&profile_token="+t+"&event_createtime="+n,i)},uploadCommentFile:function(e,t,n,i,o,a,r,_,c){OF_SHARED_SPACE.file._getCommentFileUploadURL(e,t,n,i,o,r,_,function(t){null==t?c():OF_SHARED_SPACE.file._putFile(t.signed_url,a,function(e){c(e,t.file_url)})})},_getCommentFileUploadURL:function(e,t,n,i,o,a,r,_){var c=OF_SHARED_SPACE.file.endPoint+"/upload_comment_file";OF_AWS.request(c,"profile_id="+e+"&profile_token="+t+"&event_profile_id="+n+"&sharedspace_id="+i+"&event_create_time="+o+"&mime="+a+"&filename="+r,_)},getCommentFile:function(e,t,n,i,o,a,r,_){OF_SHARED_SPACE.file._getCommentFileURL(e,t,n,i,o,a,r,function(e){null==e||null==e.signed_url?_():_(e.signed_url)})},_getCommentFileURL:function(e,t,n,i,o,a,r,_){var c=OF_SHARED_SPACE.file.endPoint+"/get_comment_file";i=""!=i?"profile_id="+e+"&profile_token="+t+"&event_profile_id="+n+"&sharedspace_id="+i+"&event_create_time="+o+"&update_profile_id="+a+"&filename="+r:"profile_id="+e+"&profile_token="+t+"&event_profile_id="+n+"&event_create_time="+o+"&update_profile_id="+a+"&filename="+r,OF_AWS.request(c,i,_)},upload_masterpiece_cover_file:function(e,t,n,i,o,a,r){a=""!=a&&OF_SHARED_SPACE.SPACE.getSpaceObjBySpaceID(a)?.space_sharerange||0,OF_SHARED_SPACE.file._getMasterpieceCoverFileUploadURL(e,t,n,o,a,function(e){null==e?r():OF_SHARED_SPACE.file._putFile(e.signed_url,i,function(e){r(e)})})},_getMasterpieceCoverFileUploadURL:function(e,t,n,i,o,a){var r=OF_SHARED_SPACE.file.endPoint+"/upload_mp_cover",e="profile_id="+e+"&profile_token="+t+"&masterpiece_createtime="+n+"&mime="+i+"&space_sharerange="+o;OF_AWS.request(r,e,a)},getMasterPieceCoverFile:function(e,t,n,i,o,a){OF_SHARED_SPACE.file._getMasterPieceCoverFileURL(e,t,n,i,o,function(e){null==e||null==e.signed_url?a():a(e)})},_getMasterPieceCoverFileURL:function(e,t,n,i,o,a){var r=OF_SHARED_SPACE.file.endPoint+"/get_mp_cover",e="profile_id="+e+"&profile_token="+t+"&masterpiece_profile_id="+n+"&masterpiece_createtime="+i;""!=o&&(e+="&space_id="+o),OF_AWS.request(r,e,a)},deleteMasterPieceCoverFile:function(e,t){var n=C.base.getLocalStorage(),i=n.user_id,n=n.user_token,o=OF_SHARED_SPACE.file.endPoint+"/delete_mp_cover";OF_AWS.request(o,"profile_id="+i+"&profile_token="+n+"&masterpiece_createtime="+e,t)},upload_masterpiece_item_file:function(n,e,i,o,a,t,r,_,c){OF_SHARED_SPACE.file._getMasterpieceItemFileUploadURL(n,e,i,o,a,t,_,function(e){var t;null==e?c():(t="https://masterpiece-media.onefunc.com/"+n+"/"+i+"/"+o+"/"+a+".jpg",OF_SHARED_SPACE.file._putFile(e.signed_url,r,function(e){c(t)}))})},_getMasterpieceItemFileUploadURL:function(e,t,n,i,o,a,r,_){var c=OF_SHARED_SPACE.file.endPoint+"/upload_mp_item_file",e="profile_id="+e+"&profile_token="+t+"&masterpiece_createtime="+n+"&item_createtime="+i+"&media_createtime="+o+"&bucket_name="+a+"&mime="+r;OF_AWS.request(c,e,_)},getMasterPieceItemFile:function(e,t,n,i,o,a,r,_){OF_SHARED_SPACE.file._getMasterPieceItemFileURL(e,t,n,i,o,a,r,function(e){null==e||null==e.signed_url?_():_(e)})},_getMasterPieceItemFileURL:function(e,t,n,i,o,a,r,_){var c=OF_SHARED_SPACE.file.endPoint+"/get_mp_item_file",e="profile_id="+e+"&profile_token="+t+"&masterpiece_profile_id="+n+"&masterpiece_createtime="+i+"&item_createtime="+o+"&media_createtime="+a;""!=r&&(e+="&space_id="+r),OF_AWS.request(c,e,_)},delete_masterpiece_item_file:function(e,t,n,i,o,a){var r=OF_SHARED_SPACE.file.endPoint+"/delete_mp_item_file";OF_AWS.request(r,"profile_id="+e+"&profile_token="+t+"&masterpiece_createtime="+n+"&item_createtime="+i+"&media_createtime="+o,a)},upload_mldata_file:function(e,t,n,i,o,a){OF_SHARED_SPACE.file._getMlDataFileUploadURL(e,t,n,i,function(e){!e||1==e.status?(C.base.message(TL.error,"3000"),a()):OF_SHARED_SPACE.file._putFile(e.signed_url,JSON.stringify(o),function(e){a(e)})})},_getMlDataFileUploadURL:function(e,t,n,i,o){var a=OF_SHARED_SPACE.file.endPoint+"/upload_ml_backup";OF_AWS.request(a,"user_id="+e+"&user_token="+t+"&profile_id="+n+"&profile_token="+i,o)},getMLDataFile:function(e,t,n,i,o){OF_SHARED_SPACE.file._getMLDataFile(e,t,n,i,function(e){null==e||null==e.signed_url?o():OF_SHARED_SPACE.file._getFile(e.signed_url,function(e){o(e)})})},_getMLDataFile:function(e,t,n,i,o){var a=OF_SHARED_SPACE.file.endPoint+"/get_ml_backup";OF_AWS.request(a,"user_id="+e+"&user_token="+t+"&profile_id="+n+"&profile_token="+i,o)},upload_ss_icon:function(e,t,n,i,o,a){OF_SHARED_SPACE.file._getSSIconUploadURL(e,t,n,o,function(e){null==e?a():OF_SHARED_SPACE.file._putFile(e.signed_url,i,function(e){a(e)})})},_getSSIconUploadURL:function(e,t,n,i,o){var a=OF_SHARED_SPACE.file.endPoint+"/upload_ss_icon";OF_AWS.request(a,"profile_id="+e+"&profile_token="+t+"&ss_createtime="+n+"&mime="+i,o)}},knowing:{endPoint:"https://knowing-plan-api.onefunc.com/v1/profile",knowing:function(e,t,n,i,o){var a=OF_SHARED_SPACE.knowing.endPoint+"/knowing",e="profile_id="+e+"&profile_token="+t+"&knowing_id="+n+"&knowing_obj="+JSON.stringify(i);OF_AWS.request(a,e,o)},knowings:function(e,t,n,i){var o=OF_SHARED_SPACE.knowing.endPoint+"/knowings";OF_AWS.request(o,"profile_id="+e+"&profile_token="+t+"&knowing_ids="+n,i)},unKnowing:function(e,t,n,i){var o=OF_SHARED_SPACE.knowing.endPoint+"/unknowing";OF_AWS.request(o,"profile_id="+e+"&profile_token="+t+"&knowing_id="+n,i)},getKnowing:function(e,t,n){var i=OF_SHARED_SPACE.knowing.endPoint+"/get_knowing";OF_AWS.request(i,"profile_id="+e+"&profile_token="+t,n)}},status:{endPoint:"https://status-plan-api.onefunc.com/v1/status",statusUpload:function(e,t,n,i,o,a,r){var _=OF_SHARED_SPACE.status.endPoint+"/upload",e="profile_id="+e+"&profile_token="+t+"&year="+n+"&mon="
1+i+"&status_content="+JSON.stringify(o)+"&profile_obj="+JSON.stringify(a);OF_AWS.request(_,e,r)},statusFetchSingleUser:function(e,t,n,i){fetch("https://plan-status.onefunc.com/schedule/"+t+"/"+n+"/"+e+"/status.json",{method:"GET",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=utf-8"}}).then(function(e){if(e.ok)return e.text().then(function(e){e=JSON.parse(e);i(e)});i()}).catch(function(e){i()})},getMyVMTDataAll:function(e,t,n,i,o){var a=OF_SHARED_SPACE.status.endPoint+"/vmtdata_get_all";OF_AWS.request(a,"user_id="+e+"&user_token="+t+"&profile_id="+n+"&profile_token="+i,o)}},activity:{endPoint:"http://localhost:4000/activity",fetch:function(e,t,n,i){var o=OF_SHARED_SPACE.activity.endPoint+"/get";OF_AWS.request(o,"space_ids="+n+"&profile_id="+e+"&profile_token="+t,i)},fetchNext:function(e,t,n,i){var o=OF_SHARED_SPACE.activity.endPoint+"/get",e="profile_id="+e+"&profile_token="+t+"&start_keys="+JSON.stringify(n);OF_AWS.request(o,e,i)}},space:{endPoint:"http://localhost:4000/sharedspace",create:function(e,t,n,i,o,a,r,_){var c=OF_SHARED_SPACE.space.endPoint+"/space_create";OF_AWS.request(c,"profile_id="+e+"&profile_token="+t+"&space_name="+i+"&space_description="+o+"&space_createtime="+n+"&space_sharerange="+a+"&space_member="+r,_)},update:function(e,t,n,i,o,a,r){var _=OF_SHARED_SPACE.space.endPoint+"/space_update";OF_AWS.request(_,"profile_id="+e+"&profile_token="+t+"&space_name="+i+"&space_createtime="+n+"&space_sharerange="+o+"&space_member="+a,r)},remove:function(e,t,n,i){var o=OF_SHARED_SPACE.space.endPoint+"/space_remove";OF_AWS.request(o,"profile_id="+e+"&profile_token="+t+"&space_createtime="+n,i)},fetchMySpaces:function(e,t,n){var i=OF_SHARED_SPACE.space.endPoint+"/space_get_myspaces";OF_AWS.request(i,"profile_id="+e+"&profile_token="+t,function(e){OF_SHARED_SPACE.SPACE.updateLocalMySharedSpace(e.myspaces),n&&n(e)})},searchSpace:function(e,t,n,i){var o=OF_SHARED_SPACE.space.endPoint+"/space_get_search";OF_AWS.request(o,"profile_id="+e+"&profile_token="+t+"&search_value="+n,i)},fetchRecommendSpaces:function(e,t,n){var i=OF_SHARED_SPACE.space.endPoint+"/space_get_recommend";OF_AWS.request(i,"profile_id="+e+"&profile_token="+t,n)},spaceSync:function(e,t,n,i){var o=OF_SHARED_SPACE.space.endPoint+"/space_sync";OF_AWS.request(o,"profile_id="+e+"&profile_token="+t+"&space_ids="+n,i)},createInviteCode:function(e,t,n,i){var o=C.base.getLocalStorage(),a=o.user_id,o=o.user_token,r=OF_SHARED_SPACE.space.endPoint+"/invite_create_code";OF_AWS.request(r,"profile_id="+a+"&profile_token="+o+"&space_createtime="+e+"&max_member_number="+t+"&period="+n,i)},checkInviteCode:function(e,t){var n=C.base.getLocalStorage(),i=n.user_id,n=n.user_token,o=OF_SHARED_SPACE.space.endPoint+"/invite_check_code";OF_AWS.request(o,"profile_id="+i+"&profile_token="+n+"&invite_code="+e,t)}},event:{endPoint:"http://localhost:4000/event",share:function(e,t,n,i,o,a,r){var _=OF_SHARED_SPACE.event.endPoint+"/event_share",e="space_id="+e+"&profile_id="+t+"&profile_token="+n+"&event_content="+JSON.stringify(i)+"&grade="+o,c={check:0,event_title:0,event_allday:0,event_starttime:0,event_endtime:0};Object.keys(c).forEach(function(e){"check"==e||i.hasOwnProperty(e)||(c.check=1)}),1==c.check?r&&r():OF_AWS.request(_,e,a)},update:function(e,t,n,i,o,a,r){var _=OF_SHARED_SPACE.event.endPoint+"/event_update",c="profile_id="+e+"&profile_token="+t+"&create_time="+n+"&grade="+o,s={check:0,createtime:0,title:0,allday:0,time_start:0,time_end:0};
1Object.keys(i).forEach(function(e){c+="&"+e+"="+i[e],s[e]&&(s[e]=1)}),Object.keys(s).forEach(function(e){"check"!=e&&0==s[e]&&(s.check=1)}),1==s.check?r&&r():OF_AWS.request(_,c,a)},shareBulk:function(e,t,n,i,o,a){var r=OF_SHARED_SPACE.event.endPoint+"/event_share_bulk",e="space_id="+e+"&profile_id="+t+"&profile_token="+n+"&event_contents="+JSON.stringify(i)+"&grade="+o;OF_AWS.request(r,e,a)},updatePublic:function(e,t,n,i,o){var a=OF_SHARED_SPACE.event.endPoint+"/event_update_public";OF_AWS.request(a,"profile_id="+e+"&profile_token="+t+"&event_createtime="+n+"&event_public="+i,o)},remove:function(e,t,n,i){var o=OF_SHARED_SPACE.event.endPoint+"/event_remove";OF_AWS.request(o,"profile_id="+e+"&profile_token="+t+"&event_createtime="+n,i)},fetchEventByCreateTime:function(e,t,n,i,o){var a=OF_SHARED_SPACE.event.endPoint+"/event_get_by_createtime";OF_AWS.request(a,"profile_id="+e+"&profile_token="+t+"&event_profile_id="+n+"&event_createtime="+i,o)},fetchEventByTimeRange:function(e,t,n,i,o,a){var r=OF_SHARED_SPACE.event.endPoint+"/event_get_by_timerange";OF_AWS.request(r,"space_ids="+e+"&profile_id="+t+"&profile_token="+n+"&start_time="+i+"&end_time="+o,a)}},event_repeat:{share:function(e,t,n,i,o,a,r){var _={check:0,data:0,repeat_type:0,createtime:0};Object.keys(_).forEach(function(e){"check"==e||i.hasOwnProperty(e)||(_.check=1)}),1==_.check?r&&r():(r=OF_SHARED_SPACE.event_repeat.endPoint+"/event_share",e="space_id="+e+"&profile_id="+t+"&profile_token="+n+"&event_content="+JSON.stringify(i)+"&space_ids="+o,OF_AWS.request(r,e,a))},shareAllEvents:function(e,t,n,i,o){0==Object.keys(n).length&&o&&o();o=OF_SHARED_SPACE.event_repeat.endPoint+"/event_share_all",e="profile_id="+e+"&profile_token="+t+"&repeat_events="+JSON.stringify(n);OF_AWS.request(o,e,i)},remove:function(e,t,n,i,o){var a=OF_SHARED_SPACE.event_repeat.endPoint+"/event_remove";OF_AWS.request(a,"profile_id="+e+"&profile_token="+t+"&space_ids="+n+"&event_createtime="+i,o)},removeBySpaceids:function(e,t,n,i){var o=OF_SHARED_SPACE.event_repeat.endPoint+"/event_get_by_spaceids";OF_AWS.request(o,"profile_id="+e+"&profile_token="+t+"&space_ids="+n,i)},getEventsSharedSpace:function(e,t,n,i){var o=OF_SHARED_SPACE.event_repeat.endPoint+"/event_get_by_spaceids";OF_AWS.request(o,"profile_id="+e+"&profile_token="+t+"&space_ids="+n,i)},deviate:{share:function(e,t,n,i){var o=OF_SHARED_SPACE.event_repeat.endPoint+"/deviate_share",e="profile_id="+e+"&profile_token="+t+"&deviates="+JSON.stringify(n);OF_AWS.request(o,e,i)}}},comment:{send:function(e,t,n,i,o,a,r,_,c,s,l){var u=OF_SHARED_SPACE.event.endPoint+"/event_share_comment",e="profile_id="+e+"&profile_token="+t+"&event_profile_id="+n+"&event_createtime="+i+"&profile_name="+c+"&comment_data="+encodeURIComponent(s)+"&repeat_type="+o+"&repeat_createtime="+a+"&space_id="+r+"&event_title="+_;OF_AWS.request(u,e,l)},remove:function(e,t,n,i,o){var a=OF_SHARED_SPACE.event.endPoint+"/event_share_comment_remove";OF_AWS.request(a,"profile_id="+e+"&profile_token="+t+"&comment_createtime="+n+"&repeat_type="+i,o)},spam:function(e,t,n,i,o){var a=OF_SHARED_SPACE.event.endPoint+"/event_share_comment_spam",e="profile_id="+e+"&profile_token="+t+"&comment_profile_id="+n+"&comment_createtime="+i+"&repeat_type="+repeat_type;OF_AWS.request(a,e,o)},fetchEventAndComment:function(e,t,n,i,o,a){var r=OF_SHARED_SPACE.event.endPoint+"/event_get_event_and_comment";OF_AWS.request(r,"profile_id="+e+"&profile_token="+t+"&event_profile_id="+n+"&event_createtime="+i+"&repeat_type="+o,a)},fetchComment:function(e,t,n,i){var o=OF_SHARED_SPACE.event.endPoint+"/event_get_event_and_comment",e="profile_id="+e+"&profile_token="+t+"&start_key="+JSON.stringify(n);OF_AWS.request(o,e,i)}},masterpiece:{endPoint:"http://localhost:4000/masterpiece",update:function(e,t,n,i,o,a){var r=OF_SHARED_SPACE.masterpiece.endPoint+"/update",e="profile_id="+e+"&profile_token="+t+"&masterpiece_createtime="+n+"&space_id="+i+"&masterpiece_obj="+JSON.stringify(o);OF_AWS.request(r,e,a)},remove:function(e,t,n,i){var o=OF_SHARED_SPACE.masterpiece.endPoint+"/remove";OF_AWS.request(o,"profile_id="+e+"&profile_token="+t+"&masterpiece_createtime="+n,i)},fetchSingle:function(e,t,n,i){var o=OF_SHARED_SPACE.masterpiece.endPoint+"/fetch_single";OF_AWS.request(o,"profile_id="+e+"&profile_token="+t+"&masterpiece_createtime="+n,i)},fetchSpace:function(e,t,n,i){var o=OF_SHARED_SPACE.masterpiece.endPoint+"/fetch_space";OF_AWS.request(o,"profile_id="+e+"&profile_token="+t+"&space_ids="+n,i)},copyCover:function(e,t,n,i,o,a,r){var _=OF_SHARED_SPACE.masterpiece.endPoint+"/masterpiece_copy_cover";OF_AWS.request(_,"profile_id="+e+"&profile_token="+t+"&masterpiece_createtime="+n+"&from_space_sharerange="+i+"&from_profile_id="+o+"&from_masterpiece_createtime="+a,r)},copyItemMedia:function(e,t,n,i){var o=OF_SHARED_SPACE.masterpiece.endPoint+"/masterpiece_copy_item_media";OF_AWS.request(o,"profile_id="+e+"&profile_token="+t+"&copy_details="+n,i)}},adjust:{endPoint:"http://localhost:4000/adjust",update:function(e,t,n,i){var o=OF_SHARED_SPACE.adjust.endPoint+"/create",e="profile_id="+e+"&profile_token="+t+"&adjust_obj="+JSON.stringify(n);OF_AWS.request(o,e,i)},remove:function(e,t,n,i,o){var a=OF_SHARED_SPACE.adjust.endPoint+"/remove";OF_AWS.request(a,"profile_id="+e+"&profile_token="+t+"&adjust_id="+n+"&createtime="+i,o)},add_candidate:function(e,t,n,i,o,a,r){var _=OF_SHARED_SPACE.adjust.endPoint+"/add_candidate",e="profile_id="+e+"&profile_token="+t+"&adjust_id="+n+"&createtime="+i+"&time_diff="+
1a+"&candidate_array="+JSON.stringify(o);OF_AWS.request(_,e,r)},get_list:function(e,t,n){var i=OF_SHARED_SPACE.adjust.endPoint+"/get_list";OF_AWS.request(i,"profile_id="+e+"&profile_token="+t,n)},vote:function(e,t,n,i,o){var a=OF_SHARED_SPACE.adjust.endPoint+"/vote",e="profile_id="+e+"&profile_token="+t+"&end_time="+n+"&vote_array="+JSON.stringify(i);OF_AWS.request(a,e,o)},vote_multiple:function(e,t,n,i){var o=OF_SHARED_SPACE.adjust.endPoint+"/vote_multiple",e="profile_id="+e+"&profile_token="+t+"&vote_multiple="+JSON.stringify(n);OF_AWS.request(o,e,i)},attendance:function(e,t,n,i,o){var a=OF_SHARED_SPACE.adjust.endPoint+"/attendance";OF_AWS.request(a,"profile_id="+e+"&profile_token="+t+"&end_time="+n+"&attendance="+i,o)},result:function(e,t,n,i){var o=OF_SHARED_SPACE.adjust.endPoint+"/result";OF_AWS.request(o,"profile_id="+e+"&profile_token="+t+"&adjust_id="+n,i)}},weather:{endPoint:"https://weather-api.onefunc.com/v1/weather",getLocation:function(e){var t=OF_SHARED_SPACE.weather.endPoint+"/get_weather";OF_AWS.request(t,"location_only=1",e)},getOriginData:function(e){var t=OF_SHARED_SPACE.weather.endPoint+"/get_weather",n=new Date,i=n.getFullYear(),o=n.getMonth()+1,n=n.getDate(),a=OF_SHARED_SPACE.WEATEHR.getDelimitTime();OF_AWS.request(t,"year="+i+"&mon="+o+"&day="+n+"&hour="+a,e)},getAWSData:function(t){var e=new Date,n=e.getFullYear(),i=e.getMonth()+1,e=e.getDate(),o=OF_SHARED_SPACE.WEATEHR.getDelimitTime(),n="https://weather-oneplan.onefunc.com/"+n+"/"+i+"/"+e+"/"+OF.getLocalStorage("geohash").slice(0,5)+"/"+o+".json";try{fetch(n,{method:"GET",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=utf-8"}}).then(function(e){if(e.ok)return e.text().then(function(e){e=JSON.parse(e);t(e)});t()}).catch(function(e){t()})}catch(e){}}},PROFILE:{createProfile:function(e,t,n,i,o,a,r){30<e.length||300<t.length||300<n.length?OF.alertDialog(TL.cloud_error_max_count_title,TL.cloud_error_max_count_message,function(){}):OF_SHARED_SPACE.profile.profile_create(e,t,n,i,o,a,function(e){r&&r(e)})},updateProfile:function(e,t,n,i,o,a){var r,_=C.base.getLocalStorage(),c=_.user_id,s=_.user_token;1==i&&(i=1),30<e.length||300<t.length||300<n.length?OF.alertDialog(TL.cloud_error_max_count_title,TL.cloud_error_max_count_message,function(){}):(r="",_.hasOwnProperty("team_id")&&""!=_.team_id&&(r=_.team_id),_=C.Premium.getMyGrade(),OF_SHARED_SPACE.profile.profile_update(c,s,e,t,n,i,o,"",r,_,function(e){a&&a(e)}))},updateTeam:function(t){var e=C.base.getLocalStorage(),n=e.user_id,i=e.user_token,o="",e=(e.hasOwnProperty("team_id")&&""!=e.team_id&&(o=e.team_id),C.Premium.getMyGrade());OF_SHARED_SPACE.profile.profile_update_team(n,i,o,e,function(e){t&&t(e)})},updateGrade:function(t){var e=C.base.getLocalStorage(),n=e.user_id,e=e.user_token,i=C.Premium.getMyGrade();OF_SHARED_SPACE.profile.profile_update_grade(n,e,i,function(e){t&&t(e)})},getMyProfile:function(t){var e=C.base.getLocalStorage(),n=e.user_id,e=e.user_token;""==n?t&&t():OF_SHARED_SPACE.profile.profile_get(n,e,function(e){t&&t(e)})},clearWebsiteAuth:function(t){var e=C.base.getLocalStorage(),n=e.user_id,e=e.user_token;""==n?t&&t():OF_SHARED_SPACE.profile.profile_clear_website_auth(n,e,function(e){t&&t(e)})},clearSNSByname:function(e,t){var n=C.base.getLocalStorage(),i=n.user_id,n=n.user_token;""==i?t&&t():OF_SHARED_SPACE.profile.profile_clear_sns(i,n,e,function(e){t&&t(e)})},searchUser:function(e,t){OF_SHARED_SPACE.profile.searchUser(e,function(e){t&&t(e)})},getUserProfile:function(e,t){var e="&profile_id="+e,n=new XMLHttpRequest;n.open("POST","https://profile-plan-api.onefunc.com/v1/profile/profile_get_anonymous",!0),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.onreadystatechange=function(){var e;4===n.readyState&&(200===n.status&&(e=JSON.parse(n.responseText)),t(e))},n.send(e)},knowing:function(e,t,n){var i=C.base.getLocalStorage(),o=i.user_id,i=i.user_token;OF_SHARED_SPACE.knowing.knowing(o,i,e,t,function(e){n&&n(e)})},knowings:function(e,t){var n=C.base.getLocalStorage(),i=n.user_id,n=n.user_token;OF_SHARED_SPACE.knowing.knowings(i,n,e,function(e){t&&t(e)})},unKnowing:function(e,t){var n=C.base.getLocalStorage(),i=n.user_id,n=n.user_token;OF_SHARED_SPACE.knowing.unKnowing(i,n,e,function(e){t&&t(e)})},getKnowing:function(t){var e=C.base.getLocalStorage(),n=e.user_id,e=e.user_token;OF_SHARED_SPACE.knowing.getKnowing(n,e,function(e){t&&t(e)})}},STATUS:{upload:function(e,t,n,i){var o=C.base.getLocalStorage(),a=o.user_id,o=o.user_token;if(null==a||""==a)i();else{const r=new Date,_=new Date(r.getFullYear(),r.getMonth(),1,0,0),c=new Date(Number(e),Number(t)-1,1,0,0);_.getTime()<=c.getTime()&&OF_SHARED_SPACE.status.statusUpload(a,o,e,t,n,OF_PROFILE.currentProfile,function(e){i(e)})}}},ACTIVITY:{fetch:function(t){var e,n,i;OF.isOnline(!0)&&(e=(n=C.base.getLocalStorage()).user_id,n=n.user_token,""!=e&&(i="",Object.keys(OF_SHARED_SPACE.currentFollowingSharedSpaceObj).forEac
1h(function(e){i+=e+","}),OF_SHARED_SPACE.currentMySharedSpaceArray&&OF_SHARED_SPACE.currentMySharedSpaceArray.forEach(function(e,t,n){1==e.space_sharerange&&(e=e.profile_id+"_"+e.create_time,i+=e+",")}),""!=i&&(OF_SHARED_SPACE.SPACE.checkSpaceFollowingCount()?OF_SHARED_SPACE.activity.fetch(e,n,i,function(e){t&&t(e)}):(OFM.TOP.createMessage({message:TL.top_message_everyone_fetch_error,colorNumber:2,donotClear:!1,forceClear:!0,timeout:void 0}),OFM.TOP.createMessage({message:TL.sharedspace_following_dialog_following_count_is_max_need_premium_message,colorNumber:2,donotClear:!1,forceClear:!1,forceDisplay:!0,timeout:void 0}),t&&t()))))},fetchNext:function(e,t){var n,i;OF.isOnline(!0)&&(n=(i=C.base.getLocalStorage()).user_id,i=i.user_token,""!=n&&OF_SHARED_SPACE.activity.fetchNext(n,i,e,function(e){t&&t(e)}))}},SPACE:{fetchSpaceSyncLatestTime:0,fetchInterval:21600,spaceObjs:{},updateSyncSpaceLatestTime:function(){var e=parseInt(new Date/1e3);OF_SHARED_SPACE.SPACE.fetchSpaceSyncLatestTime=Number(e),C.base.setLocalStorage("fetchSpaceSyncLatestTime",e)},getShareRangeLocalText:function(e){var t="";switch(Number(e)){case 0:t=TL.sharedspace_edit_dialog_sharerange_type_0;break;case 1:t=TL.sharedspace_edit_dialog_sharerange_type_1;break;case 2:t=TL.sharedspace_edit_dialog_sharerange_type_2}return t},updateLocalMySharedSpace:function(e){null!=e&&(C.base.setLocalStorage("my_sharedspace",e),OF_SHARED_SPACE.SPACE.init(function(){OF_KNOWING.updateKnowingByAllSharedSpaceMembers(function(){})}))},init:function(e){var t=C.base.getLocalStorage();t.my_sharedspace?OF_SHARED_SPACE.currentMySharedSpaceArray=t.my_sharedspace:(C.base.setLocalStorage("my_sharedspace",[]),OF_SHARED_SPACE.currentMySharedSpaceArray=[]),t.following_sharedspace?OF_SHARED_SPACE.currentFollowingSharedSpaceObj=t.following_sharedspace:(C.base.setLocalStorage("following_sharedspace",{}),OF_SHARED_SPACE.currentFollowingSharedSpaceObj={}),t.following_sharedspace_history?OF_SHARED_SPACE.currentFollowingSharedSpaceHisotryArray=t.following_sharedspace_history:(C.base.setLocalStorage("following_sharedspace_history",[]),OF_SHARED_SPACE.currentFollowingSharedSpaceHisotryArray=[]),OF_SHARED_SPACE.SPACE.spaceObjs={},OF_SHARED_SPACE.currentMySharedSpaceArray.forEach(function(e,t,n){var i=e.profile_id+"_"+e.create_time;e.space_id=i,OF_SHARED_SPACE.SPACE.spaceObjs[i]=e}),Object.keys(OF_SHARED_SPACE.currentFollowingSharedSpaceObj).forEach(function(e){OF_SHARED_SPACE.currentFollowingSharedSpaceObj[e].space_id=e,OF_SHARED_SPACE.SPACE.spaceObjs[e]=OF_SHARED_SPACE.currentFollowingSharedSpaceObj[e]}),e&&e()},removeAllSharedSpace:function(e){C.base.setLocalStorage("my_sharedspace",[]),OF_SHARED_SPACE.currentMySharedSpaceArray=[],C.base.setLocalStorage("following_sharedspace",{}),OF_SHARED_SPACE.currentFollowingSharedSpaceObj={},C.base.setLocalStorage("following_sharedspace_history",[]),OF_SHARED_SPACE.currentFollowingSharedSpaceHisotryArray=[],OF_SHARED_SPACE.SPACE.spaceObjs={},e&&e()},getSpaceObjBySpaceID:function(e){return OF_SHARED_SPACE.SPACE.spaceObjs.hasOwnProperty(e)?OF_SHARED_SPACE.SPACE.spaceObjs[e]:{create_time:0,profile_id:"",space_description:"",space_id:"",space_member:[],space_name:"",space_searchname:"",space_sharerange:0}},getAllLocalSpaceArray:function(){var i=[];return OF_SHARED_SPACE.currentMySharedSpaceArray.forEach(function(e,t,n){e.space_id=e.profile_id+"_"+e.create_time,i.push(e)}),Object.keys(OF_SHARED_SPACE.currentFollowingSharedSpaceObj).forEach(function(e){OF_SHARED_SPACE.currentFollowingSharedSpaceObj[e].space_id=e,i.push(OF_SHARED_SPACE.currentFollowingSharedSpaceObj[e])}),i},checkCounterPointMaxMember:function(e){var t=C.Premium.getMyGrade();return t<=1&&e<=C.Premium.COUNTERPOINT_MEMBER||(2==t&&e<=C.Premium.COUNTERPOINT_MEMBER_PREMIUM_MAX||3<=t&&e<=C.Premium.COUNTERPOINT_MEMBER_MASTER_MAX)},checkSpaceMaxMember:function(e){var t=C.Premium.getMyGrade();return t<=1&&e<=C.Premium.SHAREDSPACE_MEMBER_MAX||(2==t&&e<=C.Premium.SHAREDSPACE_MEMBER_PREMIUM_MAX||3<=t&&e<=C.Premium.SHAREDSPACE_MEMBER_MASTER_MAX)},checkSpaceMaxCreate:function(){var t=[];return OF_SHARED_SPACE.currentMySharedSpaceArray.forEach(function(e){1<=e.space_sharerange&&t.push(e)}
1),!(2<t.length)||(!!C.Premium.checkProStatus()||!!C.Premium.checkPremiumStatus())},checkSpaceFollowingCount:function(){var e=Object.keys(OF_SHARED_SPACE.currentFollowingSharedSpaceObj).length,t=C.Premium.getMyGrade();return t<=1&&e<=C.Premium.SHAREDSPACE_FOLLOW_MAX||2<=t&&e<=C.Premium.SHAREDSPACE_FOLLOW_PREMIUM_MAX},showAboutMaxCreateDialog:function(){OF.dialog.show({hash:!0,title:TL.sharedspace_following_dialog_create_count_is_max_need_premium_title,message:TL.sharedspace_following_dialog_create_count_is_max_need_premium_message,labelArray:[{text:TL.sharedspace_following_dialog_create_count_is_max_need_premium_detail,color:"#00a381"},{text:TL.sharedspace_following_dialog_create_count_is_max_need_premium_close,color:OF.darkmode.dialogDefaultColor}],callbackFunc:function(e){e==TL.sharedspace_following_dialog_create_count_is_max_need_premium_detail&&setTimeout(function(){OF_ONETIME_PURCHASE.show(function(){})},500)}})},showAboutMaxFollowingDialog:function(){OF.dialog.show({hash:!0,title:TL.sharedspace_following_dialog_following_count_is_max_need_premium_title,message:TL.sharedspace_following_dialog_following_count_is_max_need_premium_message,labelArray:[{text:TL.sharedspace_following_dialog_following_count_is_max_need_premium_detail,color:"#00a381"},{text:TL.sharedspace_following_dialog_following_count_is_max_need_premium_close,color:OF.darkmode.dialogDefaultColor}],callbackFunc:function(e){e==TL.sharedspace_following_dialog_following_count_is_max_need_premium_detail&&setTimeout(function(){OF_ONETIME_PURCHASE.show(function(){})},500),e==TL.sharedspace_following_dialog_following_count_is_max_need_premium_edit&&OF_SHARED_SPACE_FOLLOWING_DIALOG.show(0,function(){})}})},saveFollowData:function(e,t,n,i,o,a,r,_){var c;OF_SHARED_SPACE.SPACE.checkSpaceFollowingCount()?(OF_SHARED_SPACE.currentFollowingSharedSpaceObj[e]={create_time:r,save_time:t,space_name:n,profile_id:o,space_sharerange:i,space_member:a},c={},Object.keys(OF_SHARED_SPACE.currentFollowingSharedSpaceObj).forEach(function(e){null!=OF_SHARED_SPACE.currentFollowingSharedSpaceObj[e]&&null!=OF_SHARED_SPACE.currentFollowingSharedSpaceObj[e]&&(c[e]=OF_SHARED_SPACE.currentFollowingSharedSpaceObj[e])}),C.base.setLocalStorage("following_sharedspace",c),OF_SHARED_SPACE.SPACE.init(function(){}),_&&_(c)):(OF_SHARED_SPACE.SPACE.showAboutMaxFollowingDialog(),_&&_())},removeFollowData:function(e){OF_SHARED_SPACE.currentFollowingSharedSpaceObj[e].space_id=e,OF_SHARED_SPACE.SPACE.addHistory(OF_SHARED_SPACE.currentFollowingSharedSpaceObj[e]),delete OF_SHARED_SPACE.currentFollowingSharedSpaceObj[e],C.base.setLocalStorage("following_sharedspace",OF_SHARED_SPACE.currentFollowingSharedSpaceObj),C.wd.everyoneClearUserData(e,function(){})},addHistory:function(e){var t=C.base.getLocalStorage();t.following_sharedspace_history?OF_SHARED_SPACE.currentFollowingSharedSpaceHisotryArray=t.following_sharedspace_history:(C.base.setLocalStorage("following_sharedspace_history",[]),OF_SHARED_SPACE.currentFollowingSharedSpaceHisotryArray=[]),30<=OF_SHARED_SPACE.currentFollowingSharedSpaceHisotryArray.length&&OF_SHARED_SPACE.currentFollowingSharedSpaceHisotryArray.shift(),OF_SHARED_SPACE.currentFollowingSharedSpaceHisotryArray.push(e),C.base.setLocalStorage("following_sharedspace_history",OF_SHARED_SPACE.currentFollowingSharedSpaceHisotryArray)},removeHistory:function(e){for(var t=0;t<OF_SHARED_SPACE.currentFollowingSharedSpaceHisotryArray.length;t++)OF_SHARED_SPACE.currentFollowingSharedSpaceHisotryArray[t].space_id==e&&OF_SHARED_SPACE.currentFollowingSharedSpaceHisotryArray.splice(t,1);C.base.setLocalStorage("following_sharedspace_history",OF_SHARED_SPACE.currentFollowingSharedSpaceHisotryArray)},syncToServer:function(e,t){var n,i;OF.isOnline(!0)&&(e||timeFunc.isExpired("onefunc_plan_space_sync",OF_SHARED_SPACE.SPACE.fetchInterval))?(n=(e=C.base.getLocalStorage()).user_id,e=e.user_token,""==n?t&&t():(i="",Object.keys(OF_SHARED_SPACE.currentFollowingSharedSpaceObj).forEach(function(e){i+=e+","}),""==i?t&&t():OF_SHARED_SPACE.space.spaceSync(n,e,i,function(e){var i,o;e&&1!=e.status&&(0==Object.keys(e.spaces).length?(OF_SHARED_SPACE.currentFollowingSharedSpaceObj={},C.base.setLocalStorage("following_sharedspace",OF_SHARED_SPACE.currentFollowingSharedSpaceObj),OF_SHARED_SPACE.SPACE.init(function(){})):(OF_SHARED_SPACE.currentFollowingSharedSpaceObj={}
1,i=parseInt(new Date/1e3),o=e.spaces,Object.keys(o).forEach(function(e){var t=e.split("_"),n=t[0],t=t[1];OF_SHARED_SPACE.currentFollowingSharedSpaceObj[e]={create_time:t,save_time:i,space_name:o[e].space_name,profile_id:n,space_sharerange:o[e].space_sharerange,space_member:o[e].space_member}}),C.base.setLocalStorage("following_sharedspace",OF_SHARED_SPACE.currentFollowingSharedSpaceObj),OF_SHARED_SPACE.SPACE.init(function(){OF_KNOWING.updateKnowingByAllSharedSpaceMembers(function(){})}))),t&&t()}))):t&&t()}},EVENT:{shareEvent:function(o,e,a){var t=C.base.getLocalStorage(),r=t.user_id,_=t.user_token;C.wd.getByCreateTime(e,function(t){e=1==t.PLAN_TIMEFLG?new Date(Number(t.PLAN_YEAR),Number(t.PLAN_MON)-1,Number(t.PLAN_DAY),0,0):new Date(Number(t.PLAN_YEAR),Number(t.PLAN_MON)-1,Number(t.PLAN_DAY),Number(t.PLAN_HOURS),Number(t.PLAN_MINUTES));var e=parseInt(e.getTime()/1e3),n=(document.getElementById("cloudimg-"+t.PLAN_CREATETIME)&&(document.getElementById("cloudimg-"+t.PLAN_CREATETIME).src=OF.darkmode.imagePath.activity_indicator),C.eventShare.getEndTime(t.PLAN_ENDTIME,t.PLAN_TIMEFLG)),i="";""==(i=t.hasOwnProperty("SPACE_ID")&&""!=t.SPACE_ID?t.SPACE_ID:o)||null==i||"undefined"==i||null==i?a&&a():(e={event_title:encodeURIComponent(t.PLAN_DATA),event_allday:t.PLAN_TIMEFLG,event_starttime:e,event_endtime:n,event_createtime:t.PLAN_CREATETIME,event_option:{location:t.PLAN_LOCATION,description:t.PLAN_NOTES,color:t.PLAN_COLOR},event_mediaimage:t.PLAN_MEDIA},0==(n=OF_SHARED_SPACE.SPACE.getSpaceObjBySpaceID(i)).create_time?C.base.message(TL.error_3,"3000"):(e.event_sharedrange=n.space_sharerange,OF_SHARED_SPACE.event.share(o,r,_,e,C.Premium.getMyGrade(),function(e){!e||1==e.status?a&&a():(document.getElementById("cloudimg-"+t.PLAN_CREATETIME)&&(document.getElementById("cloudimg-"+t.PLAN_CREATETIME).src=OF.darkmode.imagePath.main_action_on,document.getElementById("cloudimg-"+t.PLAN_CREATETIME).cloud_flg=1),a&&a(e))},function(e){document.getElementById("cloudimg-"+t.PLAN_CREATETIME)&&(document.getElementById("cloudimg-"+t.PLAN_CREATETIME).src=OF.darkmode.imagePath.main_action_off,document.getElementById("cloudimg-"+t.PLAN_CREATETIME).cloud_flg=0),C.base.message(TL.error_3,"3000")})))})},shareEventBulk:function(e,t,n){var i=OF_SHARED_SPACE.SPACE.getSpaceObjBySpaceID(e);if(0===i.create_time)C.base.message(TL.error_3,"3000");else{for(var o=0;o<t.length;o++)t[o].event_sharedrange=i.space_sharerange;var a=C.base.getLocalStorage(),r=a.user_id,a=a.user_token;OF_SHARED_SPACE.event.shareBulk(e,r,a,t,C.Premium.getMyGrade(),function(e){n&&n(e)})}},shareUpdatePublic:function(e,t,n){var i=C.base.getCurrentProfile(),o=i.profile_id,i=i.profile_token;OF_SHARED_SPACE.event.updatePublic(o,i,e,t,function(e){n&&n(e)})},deleteImage:function(e,t){var n=C.base.getLocalStorage(),i=n.user_id,n=n.user_token;OF_SHARED_SPACE.file.deleteEventCoverImage(i,n,e,function(e){t()})},deleteEvent:function(e,t){var n,i;OF.isOnline(!0)&&(document.getElementById("cloudimg-"+e)&&(document.getElementById("cloudimg-"+e).src=OF.darkmode.imagePath.activity_indicator),n=(i=C.base.getLocalStorage()).user_id,i=i.user_token,OF_SHARED_SPACE.event.remove(n,i,e,function(e){t&&t(e)}))},fetch:function(i,o,t){var a,e,r,n,_,c,s,l,u,S;OF.isOnline()&&(e=C.base.getLocalStorage(),a=e.user_id,e=e.user_token,""!=a&&(r=!1,null==i||null==o?(r=!0,n=new Date,_=new Date(n.getFullYear(),Number(n.getMonth()),1,0,0),c=new Date(n.getFullYear(),Number(n.getMonth())+2,1,0,0),i=n.getFullYear(),o=Number(n.getMonth())+1):(_=new Date(i,o-1,1,0,0),c=new Date(i,o,1,0,0)),s="",Object.keys(OF_SHARED_SPACE.currentFollowingSharedSpaceObj).forEach(function(e){s+=e+","}),l={"1_overCount":0},OF_SHARED_SPACE.currentMySharedSpaceArray&&OF_SHARED_SPACE.currentMySharedSpaceArray.forEach(function(e,t,n){var i;0==e.space_sharerange&&(i=e.profile_id+"_"+e.create_time,s+=i+","),1==e.space_sharerange&&(i=e.profile_id+"_"+e.create_time,s+=i+",",l["1_overCount"]+=1),2==e.space_sharerange&&(i=e.profile_id+"_"+e.create_time,s+=i+",",l["1_overCount"]+=1)}),0==Object.keys(OF_SHARED_SPACE.currentFollowingSharedSpaceObj).length&&0==l["1_overCount"]?C.wd.everyoneClearUserData(function(){OF_EVERYONE.reloadCalendar(function(){})}):OF_SHARED_SPACE.SPACE.checkSpaceFollowingCount()?(u=parseInt(_.getTime()/1e3),S=parseInt(c.getTime()/1e3),OFM.TOP.createMessage({message:TL.top_message_everyone_fetch_start,colorNumber:0,donotClear:!1,forceClear:!1,timeout:void 0}),OF_SHARED_SPACE.event.fetchEventByTimeRange(s,a,e,u,S,function(n){var e;n&&(1==n.status?OFM.TOP.createMessage({message:TL.top_message_everyone_fetch_error,colorNumber:2,donotClear:!1,forceClear:!1,timeout:void 0}):(r&&OF_EVERYONE.clearCache(),OF_REPEAT.core.space._save(n.repeat_events,n.repeat_deviates),(e=[]).push(new Promise(function(t,e){C.wd.everyoneReplaceData(a,u,S,n.events,function(e){t(e)})})),e.push(new Promise(function(t,e){C.wd.stopSharingByAcquiredData(i,o,n.events,function(e){t(e)})})),Promise.all(e).then(function(e){OFM.TOP.createMessage({message:TL.top_message_everyone_fetch_end,colorNumber:1,donotClear:!1,forceClear:!1,timeout:void 0}),OF_EVERYONE.reloadCalendar(function(){var e=OF_EVERYONE.createEveryoneEventsObjForMainCalendar(i,o),t=OF_INDEX_MAINVIEW.mainView.getCurrentDateObj().getDate();C.main.createEveryoneEventsForMainTable(e,i,o,t)}),e[0].isRow?C.crossOver.rebuild(i,1,function(){var n={};
1Object.keys(C.crossOver.eventsObj).forEach(function(e){Object.keys(C.crossOver.eventsObj[e]).forEach(function(e){e=e.split("_");n.hasOwnProperty(e[0]+"_"+e[1])||(n[e[0]+"_"+e[1]]=[]),n[e[0]+"_"+e[1]].push(Number(e[2]))})}),Object.keys(n).forEach(function(e){var t=e.split("_");C.main.scheduleReload(Number(t[0]),Number(t[1]),n[e])}),(e[0].todayExsist||e[1])&&C.shortcut.showReloadButton()}):(e[0].todayExsist||e[1])&&C.shortcut.showReloadButton(),t&&t()}).catch(e=>{})))})):(OFM.TOP.createMessage({message:TL.top_message_everyone_fetch_error,colorNumber:2,donotClear:!1,forceClear:!0,timeout:void 0}),OFM.TOP.createMessage({message:TL.sharedspace_following_dialog_following_count_is_max_need_premium_message,colorNumber:2,donotClear:!1,forceClear:!1,forceDisplay:!0,timeout:void 0}))))}},COMMENT:{send:function(e,t,n,i,o,a,r,_){var c,s,l;OF.isOnline()&&(c=(l=C.base.getLocalStorage()).user_id,s=l.user_token,""!=c&&(l=l.profile_information.profile_name,OF_SHARED_SPACE.comment.send(c,s,t,n,i,o,a,r,l,e,function(e){_(e)})))},remove:function(e,t,n){var i=C.base.getLocalStorage(),o=i.user_id,i=i.user_token;""!=o&&OF_SHARED_SPACE.comment.remove(o,i,e,t,function(e){n(e)})},spam:function(e,t,n){var i=C.base.getLocalStorage(),o=i.user_id,i=i.user_token;""!=o&&OF_SHARED_SPACE.comment.spam(o,i,e,t,function(e){n(e)})},fetchEventAndComment:function(e,t,n,i){var o,a;OF.isOnline()&&(o=(a=C.base.getLocalStorage()).user_id,a=a.user_token,""!=o&&OF_SHARED_SPACE.comment.fetchEventAndComment(o,a,e,t,n,function(e){i(e)}))},fetchComment:function(e,t){var n,i;OF.isOnline()&&(n=(i=C.base.getLocalStorage()).user_id,i=i.user_token,""!=n&&OF_SHARED_SPACE.comment.fetchComment(n,i,e,function(e){t(e)}))}},MASTERPIECE:{share:function(e,t,n,i,o,a){var r=OF_SHARED_SPACE.SPACE.getSpaceObjBySpaceID(i);0===r.create_time?C.base.message(TL.error_3,"3000"):(o.space_sharedrange=r.space_sharerange,OF_SHARED_SPACE.masterpiece.update(e,t,n,i,o,function(e){a&&a(e)}))},remove:function(e,t,n,i){OF_SHARED_SPACE.masterpiece.remove(e,t,n,function(e){i&&i(e)})},fetchSingle:function(e,t,n,i){},fetchSpace:function(r,e,n){var i="";Object.keys(OF_SHARED_SPACE.currentFollowingSharedSpaceObj).forEach(function(e){i+=e+","}),OF_SHARED_SPACE.currentMySharedSpaceArray&&OF_SHARED_SPACE.currentMySharedSpaceArray.forEach(function(e,t,n){e=e.profile_id+"_"+e.create_time;i+=e+","}),""==i?n&&n():(OF.id("MasterPiece_content_indicator_image").src=OF.darkmode.imagePath.activity_indicator,OF.id("MasterPiece_content_indicator").style.display="block",OF_SHARED_SPACE.masterpiece.fetchSpace(r,e,i,function(t){var i,a;!t||1==t.status?(OF.id("MasterPiece_content_indicator").style.display="none",n()):(i=[],a={},Object.keys(t.masterpieces).forEach(function(n){t.masterpieces[n].forEach(function(o,e,t){o.profile_id==r&&(a[o.masterpiece_createtime]=o,i.push(new Promise(function(e,t){var i=parseInt(new Date/1e3);o.masterpiece_items.items.forEach(function(e,t,n){OF_MASTERPIECE_DATABASE.inDevice.updateMasterPieceItem(Number(o.masterpiece_createtime),e.create_time,i,e.order,e.event_title,e.event_start_time,e.event_duration,e.event_note,e.event_location,function(){})}),o.masterpiece_items.media.forEach(function(e,t,n){OF_MASTERPIECE_DATABASE.media.insertMyMasterPieceItemMedia(e.profile_id,Number(o.masterpiece_createtime),e.item_create_time,e.media_create_time,function(){})}),OF_MASTERPIECE_DATABASE.inDevice.updateMasterPiece(Number(o.masterpiece_createtime),Number(o.masterpiece_updatetime),o.masterpiece_title,o.masterpiece_description,o.masterpiece_mediaimage,n,function(){e()})})))})}),Promise.all(i).then(function(e){OF_MASTERPIECE_DATABASE.following.restoreDatabase(t.masterpieces,function(){OF_MASTERPIECE_DATABASE.inDevice.getMasterPieceList(function(e){e.forEach(function(e,t,n){a[e.CREATE_TIME]||OF_MASTERPIECE_DATABASE.inDevice.updateMasterPiece(e.CREATE_TIME,e.UPDATE_TIME,e.TITLE,e.DESCRIPTION,e.COVER,"",function(){})})}),n(),OF.id("MasterPiece_content_indicator").style.display="none"})}))}))},copyCover:function(e,t,n,i,o,a,r){OF_SHARED_SPACE.masterpiece.copyCover(e,t,n,i,o,a,function(e){r&&r(e)})},copyItemMedia:function(e,t,n,i){OF_SHARED_SPACE.masterpiece.copyItemMedia(e,t,JSON.stringify(n),function(e){i&&i(e)})}},ADJUST:{update:function(e,t,n,i){OF_SHARED_SPACE.adjust.update(e,t,n,function(e){i&&i(e)})},remove:function(e,t,n,i,o){OF_SHARED_SPACE.adjust.remove(e,t,n,i,function(e){o&&o(e)})},addCandidate:function(e,t,n,i,o,a){OF_SHARED_SPACE.adjust.add_candidate(e,t,n,i,o,(new Date).getTimezoneOffset(),function(e){a&&a(e)})},get_list:function(e,t,n){OF_SHARED_SPACE.adjust.get_list(e,t,function(e){n&&n(e)})},vote:function(e,t,n,i,o){OF_SHARED_SPACE.adjust.vote(e,t,n,i,function(e){o&&o(e)})},voteMultiple:function(e,t,n,i){OF_SHARED_SPACE.adjust.vote_multiple(e,t,n,function(e){i&&i(e)})},attendance:function(e,t,n,i,o){OF_SHARED_SPACE.adjust.attendance(e,t,n,i,function(e){o&&o(e)})},result:function(e,t,n,i){OF_SHARED_SPACE.adjust.result(e,t,n,function(e){var t,n;
1e&&1!=e.status&&e.description&&(1==(t=e.description).adjust_obj.adjust_remove?(OF_CP_DETAIL_VIEW.noneCondicate(),n={resultArray:[],attendPeopleObj:{},resultDateObj:{},adjust_obj:t.adjust_obj,adjust_id:t.adjust_id,adjust_createtime:t.adjust_createtime,adjust_endtime:t.adjust_endtime},localStorage["oneplan_adjust_calced_"+t.adjust_id]=JSON.stringify(n)):((n=e.calced).adjust_id=t.adjust_id,n.adjust_createtime=t.adjust_createtime,n.adjust_endtime=t.adjust_endtime,n.adjust_obj=t.adjust_obj,localStorage["oneplan_adjust_calced_"+t.adjust_id]=JSON.stringify(n),0==n.resultArray.length&&OF_CP_DETAIL_VIEW.noneCondicate()),i&&i(n))})}},WEATEHR:{getDelimitTime:function(){var e=(new Date).getHours();return 0<e&&e<=3?3:4<e&&e<=6?6:6<e&&e<=9?9:9<e&&e<=12?12:12<e&&e<=15?15:15<e&&e<=18?18:18<e&&e<=21?21:21<e&&e<=24?24:0},get:function(t){OF_SHARED_SPACE.WEATEHR.getAWSData(function(e){e?t&&t(e):OF_SHARED_SPACE.WEATEHR.getOriginData(function(e){1==e.status&&t(),t&&t(e.result)})})},getOriginData:function(t){OF_SHARED_SPACE.weather.getOriginData(function(e){0==e.status&&OF.setLocalStorage("geohash",e.location.geohash),t&&t(e)})},getAWSData:function(t){var e=OF.getLocalStorage("geohash");null==e||""==e?OF_SHARED_SPACE.weather.getLocation(function(e){1==e.status&&t&&t(),0==e.status&&(OF.setLocalStorage("geohash",e.location.geohash),OF_SHARED_SPACE.weather.getAWSData(function(e){t&&t(e)}))}):OF_SHARED_SPACE.weather.getAWSData(function(e){t&&t(e)})}},DUMMY:{}}).init();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.