From 2f28143b3786245e95ca9d8f4922152aed8c9672 Mon Sep 17 00:00:00 2001 From: lisb-jenkins Date: Tue, 22 Oct 2024 05:12:42 +0000 Subject: [PATCH 1/2] Update lib/*.js based on albero-client-web@direct-js@3.1.0 --- lib/direct-node.min.js | 2 +- lib/direct.min.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/direct-node.min.js b/lib/direct-node.min.js index c356273..a96b2b2 100755 --- a/lib/direct-node.min.js +++ b/lib/direct-node.min.js @@ -1 +1 @@ -!function(y,S){function a(){return G.__string_rec(this,"")}var t={};function e(e,t){function n(){}n.prototype=e;var i,r=new n;for(i in t)r[i]=t[i];return t.toString!==Object.prototype.toString&&(r.toString=t.toString),r}function v(e,t){this.r=new RegExp(e,t.split("u").join(""))}function T(){}function w(){}function N(){}function x(){}function A(){}function b(){}function M(){}function k(e){Mn.call(this,e)}function W(){}function K(){}function V(){}function q(){}function Q(){}function X(){}function J(){}function Z(){}function $(){}function ee(){}function te(){}function ne(){}function ie(){}function re(){}function oe(e,t,n){this.email=e,this.pass=t,this.accessToken=n}function ae(e){null!=e&&(this.id=e.id,this.group=new Ti(e.group),this.profilePolicy=new wi(e.profile_policy))}function se(e){null!=e&&(this.id=e.id,null!=e.group&&(this.group=new Ti(e.group)),null!=e.profile_policy)&&(this.profilePolicy=new wi(e.profile_policy))}function le(e){null!=e&&(this.id=D.fromIntOrInt64(e.id),this.groupName=e.group_name,this.groupOwnerName=e.group_owner_name,this.groupOwnerEmail=e.group_owner_email,this.hasDomainInvite=e.has_domain_invite,this.updatedAt=e.updated_at,this.version=e.version)}function ue(e){this.unreadCount=0,null!=e&&(this.domainId=e.domain_id,this.unreadCount=null!=e.unread_count?e.unread_count:0,this.maxAnnouncementId=e.max_announcement_id,null!=e.max_announcement&&(this.maxAnnouncement=new Ni(e.max_announcement)),this.maxReadAnnouncementId=e.max_read_announcement_id,null==this.maxReadAnnouncementId)&&0==this.unreadCount&&(this.maxReadAnnouncementId=this.maxAnnouncementId)}function ce(e){null!=e&&(this.domainId=e.domain_id,this.readAnnouncementIds=e.read_announcement_ids)}function _e(e){if(this.notificationInvisibleTalkSound=!0,this.notificationInvisibleTalkPopup=!1,this.notificationVisibleTalkSound=!1,this.notificationVisibleTalkPopup=!1,this.notificationIncludingMessageContent=!0,this.notificationPopupTime=5,this.talkAutoScroll=1,this.legacyNoteEnabled=!1,this.leaveTalksEnabled=!1,this.talksSortMode="new_messages_first",this.talkRightPanelOpened=!0,this.talkRightPanelWidth=0,this.keywordWatchingText="",this.keywordWatchingEmphasis=!1,this.keywordWatchingSelfMessage=!1,this.keywordWatchingActionReply=!1,this.userDataContainer=[],this.language="ja",this.conferenceIncomingSound=!0,this.domainsSortMode="name_order_asc",this.appLeftPanelOpened=!1,this.appLeftPanelWidth=0,null!=e){var t;if(null!=e.notificationInvisibleTalkSound&&(this.notificationInvisibleTalkSound=e.notificationInvisibleTalkSound),null!=e.notificationInvisibleTalkPopup&&(this.notificationInvisibleTalkPopup=e.notificationInvisibleTalkPopup),null!=e.notificationVisibleTalkSound&&(this.notificationVisibleTalkSound=e.notificationVisibleTalkSound),null!=e.notificationVisibleTalkPopup&&(this.notificationVisibleTalkPopup=e.notificationVisibleTalkPopup),null!=e.notificationIncludingMessageContent&&(this.notificationIncludingMessageContent=e.notificationIncludingMessageContent),null!=e.notificationPopupTime&&(this.notificationPopupTime=e.notificationPopupTime),null!=e.notificationVisibleTalkAutoScroll&&(this.talkAutoScroll=e.notificationVisibleTalkAutoScroll?1:3),null!=e.talkAutoScroll&&(this.talkAutoScroll=e.talkAutoScroll),null!=e.legacyNoteEnabled&&(this.legacyNoteEnabled=e.legacyNoteEnabled),null!=e.leaveTalksEnabled&&(this.leaveTalksEnabled=e.leaveTalksEnabled),null!=e.talksSortMode&&(this.talksSortMode=e.talksSortMode),this.talkRightPanelOpened=null!=e.talkRightPanelOpened?e.talkRightPanelOpened:null==o.getItem("right_panel_opened"),null!=e.talkRightPanelWidth?this.talkRightPanelWidth=e.talkRightPanelWidth:(t=L.parseInt(o.getItem("right_panel_width")),this.talkRightPanelWidth=null==t?0:t),null!=e.keywordWatchingText&&(this.keywordWatchingText=e.keywordWatchingText),null!=e.keywordWatchingEmphasis&&(this.keywordWatchingEmphasis=e.keywordWatchingEmphasis),null!=e.keywordWatchingSelfMessage&&(this.keywordWatchingSelfMessage=e.keywordWatchingSelfMessage),null!=e.keywordWatchingActionReply&&(this.keywordWatchingActionReply=e.keywordWatchingActionReply),null!=e.userDataContainer)for(var n=0,i=G.__cast(e.userDataContainer,Array);n=e.length);){if(!this.matchSub(e,n)){i+=L.string(U.substr(e,n,null));break}var r=this.matchedPos(),i=(i+=L.string(U.substr(e,n,r.pos-n)))+L.string(t(this)),n=0==r.len?(i+=L.string(U.substr(e,r.pos,1)),r.pos+1):r.pos+r.len;if(!this.r.global)break}return!this.r.global&&0r.interval)r.basetime=n,r.count=1;else{if(!(0").join(">"),t?e.split('"').join(""").split("'").join("'"):e},w.startsWith=function(e,t){return e.length>=t.length&&U.substr(e,0,t.length)==t},w.isSpace=function(e,t){e=U.cca(e,t);return 8>>=4););if(null!=t)for(;n.lengthn;){var t=U.substr(e,0,n);i.push(t),e=U.substr(e,n,null)}0n&&(t(r),r=""),0=this.length)throw new H("Invalid object");if(103==this.buf.charCodeAt(this.pos))break;var t=this.unserialize();if("string"!=typeof t)throw new H("Invalid object key");var n=this.unserialize();e[t]=n}this.pos++},unserializeEnum:function(e,t){if(58!=this.buf.charCodeAt(this.pos++))throw new H("Invalid enum format");var n=this.readDigits();if(0==n)return x.createEnum(e,t);for(var i=[];0=this.scache.length)throw new H("Invalid string reference");return this.scache[t];case 97:this.buf;var r=[];for(this.cache.push(r);;){var o=this.buf.charCodeAt(this.pos);if(104==o){this.pos++;break}117==o?(this.pos++,o=this.readDigits(),r[r.length+o-1]=null):r.push(this.unserialize())}return r;case 98:var a=new B;for(this.cache.push(a),this.buf;104!=this.buf.charCodeAt(this.pos);){var s=this.unserialize(),l=this.unserialize();null!=j[s]?a.setReserved(s,l):a.h[s]=l}return this.pos++,a;case 99:e=this.unserialize(),t=this.resolver.resolveClass(e);if(null==t)throw new H("Class not found "+e);e=x.createEmptyInstance(t);return this.cache.push(e),this.unserializeObject(e),e;case 100:return this.readFloat();case 102:return!1;case 105:return this.readDigits();case 106:t=this.unserialize(),e=this.resolver.resolveEnum(t);if(null==e)throw new H("Enum not found "+t);this.pos++;var u=this.readDigits(),c=e.__constructs__.slice()[u];if(null==c)throw new H("Unknown enum index "+t+"@"+u);t=this.unserializeEnum(e,c);return this.cache.push(t),t;case 107:return NaN;case 108:var _=new gn;for(this.cache.push(_),this.buf;104!=this.buf.charCodeAt(this.pos);)_.add(this.unserialize());return this.pos++,_;case 109:return-1/0;case 110:return null;case 111:u={};return this.cache.push(u),this.unserializeObject(u),u;case 112:return 1/0;case 113:for(var h=new Wa,d=(this.cache.push(h),this.buf,this.buf.charCodeAt(this.pos++));58==d;){var f=this.readDigits(),m=this.unserialize();h.h[f]=m,d=this.buf.charCodeAt(this.pos++)}if(104!=d)throw new H("Invalid IntMap format");return h;case 114:e=this.readDigits();if(e<0||e>=this.cache.length)throw new H("Invalid reference");return this.cache[e];case 115:var c=this.readDigits(),p=this.buf;if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos>2)+(2<=t?t-1:0))),T=0;y>4),g[p.charCodeAt(y++)]),I=(v.b[T++]=255&(I<<4|w>>2),g[p.charCodeAt(y++)]);v.b[T++]=255&(w<<6|I)}return 2<=t&&(u=g[p.charCodeAt(y++)],e=g[p.charCodeAt(y++)],v.b[T++]=255&(u<<2|e>>4),3==t)&&(u=g[p.charCodeAt(y++)],v.b[T++]=255&(e<<4|u>>2)),this.pos+=c,this.cache.push(v),v;case 116:return!0;case 118:return 48<=this.buf.charCodeAt(this.pos)&&this.buf.charCodeAt(this.pos)<=57&&48<=this.buf.charCodeAt(this.pos+1)&&this.buf.charCodeAt(this.pos+1)<=57&&48<=this.buf.charCodeAt(this.pos+2)&&this.buf.charCodeAt(this.pos+2)<=57&&48<=this.buf.charCodeAt(this.pos+3)&&this.buf.charCodeAt(this.pos+3)<=57&&45==this.buf.charCodeAt(this.pos+4)?(E=U.strDate(U.substr(this.buf,this.pos,19)),this.pos+=19):(t=this.readFloat(),E=new Date(t)),this.cache.push(E),E;case 119:e=this.unserialize(),u=this.resolver.resolveEnum(e);if(null==u)throw new H("Enum not found "+e);c=this.unserializeEnum(u,this.unserialize());return this.cache.push(c),c;case 120:throw H.wrap(this.unserialize());case 121:t=this.readDigits();if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos>>16,l=65535&n.low,u=n.low>>>16,c=E._mul(a,l),l=E._mul(s,l),a=E._mul(a,u),s=(E._mul(s,u)+(a>>>16)|0)+(l>>>16)|0,s=(a<<=16,E.ucompare(u=c+a|0,a)<0&&(s++,s|=0),l<<=16,E.ucompare(u=u+l|0,l)<0&&(s++,s|=0),s+(E._mul(t.low,n.high)+E._mul(t.high,n.low)|0)|0),c=new I(s,u),a=_.make(0,L.parseInt(e.charAt(o))),l=c.high+a.high|0,s=c.low+a.low|0;E.ucompare(s,c.low)<0&&(l++,l|=0);t=new I(l,s)}return t},D.getHigh=function(e){return e.high},D.getLow=function(e){return e.low},D.idStr=function(e){return"_"+e.high+"_"+e.low},D.makeFromIdStr=function(e){var t=new v("^_(-?\\d*)_(-?\\d*)$","");return t.match(e)?_.make(L.parseInt(t.matched(1)),L.parseInt(t.matched(2))):null},D.fromNullableIdStr=function(e){return null!=e?D.makeFromIdStr(e):null},D.toStr=function(e){return Pa.toString(e)},D.isNeg=function(e){return e.high<0},D.add=function(e,t){var n=e.high+t.high|0,t=e.low+t.low|0;return E.ucompare(t,e.low)<0&&(n++,n|=0),new I(n,t)},D.sub=function(e,t){var n=e.high-t.high|0,i=e.low-t.low|0;return E.ucompare(e.low,t.low)<0&&(n--,n|=0),new I(n,i)},D.compare=function(e,t){var n=e.high-t.high|0;return 0==n&&(n=E.ucompare(e.low,t.low)),e.high<0?t.high<0?n:-1:0<=t.high?n:1},D.eq=function(e,t){return null!=e&&null!=t&&e.high==t.high&&e.low==t.low},D.eqOrBothNull=function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.high==t.high&&e.low==t.low},D.toFloat=function(e){var t=4294967296,n=e.high,e=e.low;return n*t+(0<=e?e:e+t)},D.idStrToInt64=function(e){e=e.split("_");return 2>31,e))},D.eqArray=function(e,t){if(e!=t){if(null==e||null==t)return!1;if(e.length!=t.length)return!1;for(var n=0,i=e.length;n>31,t);return e.filter(function(e){var t=h.map(n.userPresences.getUserPresence(e),function(e){return e.isExpired(i,r)});switch(t[1]){case 0:return t[2];case 1:return!0}})},updateIfNeedPerSub:function(n,e){for(var i=this,t=Promise.resolve([]),r=D.splitUsingMaxCount(e,100),o=0;oe.version},isStampsetEnabled:function(e){return C.has(this.allowCreateMessageStampCategories,e)},isStampCategoriesEmpty:function(){return 0==this.allowCreateMessageStampCategories.length},getCategoryIndex:function(e){return this.allowCreateMessageStampCategories.indexOf(e)},__class__:Ci},(t["albero.entity.Conference"]=he).__name__=["albero","entity","Conference"],he.prototype={isIncomingExpired:function(){var e=this.createdAt,t=4294967296,n=e.high,e=e.low;return n*t+(0<=e?e:e+t)+he.INCOMING_TIME<(new Date).getTime()},isExpired:function(){var e=this.expiredAt,t=4294967296,n=e.high,e=e.low;return n*t+(0<=e?e:e+t)<(new Date).getTime()},__class__:he},function(){this.conferencesMap=new B,this.talkIdConferenceIdMap=new B}),Ri=((t["albero.entity.ConferenceStore"]=Di).__name__=["albero","entity","ConferenceStore"],Di.prototype={addConference:function(e){var t=e.id,t="_"+t.high+"_"+t.low,n=this.conferencesMap,n=(null!=j[t]?n.setReserved(t,e):n.h[t]=e,e.talkId),e="_"+n.high+"_"+n.low,n=this.talkIdConferenceIdMap;null!=j[e]?n.setReserved(e,t):n.h[e]=t},removeConference:function(e){var t=e.id,t="_"+t.high+"_"+t.low,e=(this.conferencesMap.remove(t),e.talkId),e="_"+e.high+"_"+e.low,n=this.talkIdConferenceIdMap;(null!=j[e]?n.getReserved(e):n.h[e])==t&&this.talkIdConferenceIdMap.remove(e)},getConferences:function(){return X.toValueArray(this.conferencesMap)},getConference:function(e){var e="_"+e.high+"_"+e.low,t=this.conferencesMap;return null!=j[e]?t.getReserved(e):t.h[e]},hasConferenceInTalk:function(e){var t;return null!=e&&(e="_"+e.high+"_"+e.low,t=this.talkIdConferenceIdMap,null!=j[e]?t.existsReserved(e):t.h.hasOwnProperty(e))},getConferenceIdInTalk:function(e){var t;return null==e||(e="_"+e.high+"_"+e.low,t=this.talkIdConferenceIdMap,null==(t=null!=j[e]?t.getReserved(e):t.h[e]))?null:D.makeFromIdStr(t)},getConferenceTalkIds:function(){return X.toKeyArray(this.talkIdConferenceIdMap).map(D.makeFromIdStr)},hasConference:function(){return this.talkIdConferenceIdMap.keys().hasNext()},__class__:Di},function(e){null!=e&&(this.maxFriends=e.max_friends,this.maxTalks=e.max_talks,this.maxTalkers=e.max_talkers,this.maxMessageContentLength=e.max_message_content_length,this.botExpiredVersion=e.bot_expired_version,this.presenceExpiration=null!=e.presence_expiration?e.presence_expiration:Ri.DEFAULT_PRESENCE_EXPIRATION,this.allowAttachmentType=Ei.fromInt(e.allow_attachment_type),this.imageSanitizationEnabled=!!e.image_sanitization_enabled,this.updateLastUsedAtInterval=null!=e.update_last_used_at_interval?e.update_last_used_at_interval:Ri.DEFAULT_PRESENCE_EXPIRATION)}),Oi=((t["albero.entity.Configuration"]=Ri).__name__=["albero","entity","Configuration"],Ri.prototype={__class__:Ri},function(e){this.contractConference=g.None,null!=e&&(this.id=e.contract_id,this.plan=new dr(e.plan),this.quota=new br(e.quota),this.solutionIds=e.solution_ids,null!=e.conference)&&(this.contractConference=g.Some(new Fi(e.conference)))}),Fi=((t["albero.entity.Contract"]=Oi).__name__=["albero","entity","Contract"],Oi.prototype={getMaxMessageContentLength:function(){return h.map(h.option(this.quota),function(e){return e.maxMessageContentLength})},getMaxTalkers:function(){return h.flatMap(h.option(this.quota),function(e){return h.option(e.maxTalkers)})},getMaxTalks:function(){return h.flatMap(h.option(this.quota),function(e){return h.option(e.maxTalks)})},isConferenceEnalbed:function(){return h.isDefined(this.contractConference)},isVideoEnalbed:function(){var e=h.map(this.contractConference,function(e){return e.videoEnabled});switch(e[1]){case 0:return e[2];case 1:return!1}},getConferenceTtl:function(){return h.map(this.contractConference,function(e){return e.ttl})},getConferenceMaxParticipants:function(){return h.map(this.contractConference,function(e){return e.maxConferenceParticipants})},isGroupConfenreceEnalbed:function(){var e=h.map(this.contractConference,function(e){return e.groupConferenceEnabled});switch(e[1]){case 0:return e[2];case 1:return!1}},isTargetOfPlanAd:function(){return null!=this.quota&&this.quota.withAd},isFreePlan:function(){return null!=this.plan&&this.plan.free},__class__:Oi},function(e){this.groupConferenceEnabled=!1,this.maxConferenceParticipants=Fi.DEFAULT_MAX_PARTICIPANTS,this.ttl=Fi.DEFAULT_TTL,this.videoEnabled=!1,null!=e&&(this.videoEnabled=e.video_enabled,this.ttl=e.ttl,this.maxConferenceParticipants=e.max_conference_participants,this.groupConferenceEnabled=e.group_conference_enabled)}),xi=((t["albero.entity.ContractConference"]=Fi).__name__=["albero","entity","ContractConference"],Fi.prototype={__class__:Fi},function(e){if(null!=e){switch(this.id=e.department_id,this.order=e.order,this.parentId=e.parent,this.nodeType=null==e.node?Ui.Normal:this.parseDepartmentNodeType(e.node),this.nodeType[1]){case 0:this.name=e.name;break;case 1:this.name=xi.getLabelRoot();break;case 2:this.name=xi.getLabelFree()}this.depth=0,this.childrenIds=null,this.userCount=null,this.userIds=null,this.userCountLoading=!1}}),Ui=((t["albero.entity.Department"]=xi).__name__=["albero","entity","Department"],xi.getLabelFree=function(){return c.localize("Department.label_free")},xi.getLabelRoot=function(){return c.localize("Department.label_root")},xi.prototype={addChild:function(e){null==this.childrenIds&&(this.childrenIds=[]),this.childrenIds.push(e)},isRoot:function(){return this.nodeType==Ui.Root},isFree:function(){return this.nodeType==Ui.Free},parseDepartmentNodeType:function(e){switch(e){case 1:return Ui.Root;case 2:return Ui.Free;default:return Ui.Normal}},getChildIdStrList:function(){return null==this.childrenIds?[]:this.childrenIds.map(D.idStr)},__class__:xi},(t["albero.entity.DepartmentHelper"]=de).__name__=["albero","entity","DepartmentHelper"],de.getName=function(e){return null==e?null:e.name},t["albero.entity.DepartmentNodeType"]={__ename__:["albero","entity","DepartmentNodeType"],__constructs__:["Normal","Root","Free"]}),Pi=(Ui.Normal=["Normal",0],Ui.Normal.toString=a,(Ui.Normal.__enum__=Ui).Root=["Root",1],Ui.Root.toString=a,(Ui.Root.__enum__=Ui).Free=["Free",2],Ui.Free.toString=a,(Ui.Free.__enum__=Ui).__empty_constructs__=[Ui.Normal,Ui.Root,Ui.Free],(t["albero.entity.DepartmentList"]=fe).__name__=["albero","entity","DepartmentList"],fe.prototype={getDepartments:function(e){return null==e?[]:e.map(function(e){return new xi(e)})},__class__:fe},function(){this.departmentMap=new B,this.rootDepartmentIdMap=new B}),Li=((t["albero.entity.DepartmentStore"]=Pi).__name__=["albero","entity","DepartmentStore"],Pi.prototype={getDepartment:function(e){var t;return null==e?null:(e="_"+e.high+"_"+e.low,t=this.departmentMap,null!=j[e]?t.getReserved(e):t.h[e])},setDepartment:function(e){null!=e.parentId&&null!=(t=this.getDepartment(e.parentId))&&(t.addChild(e.id),e.depth=t.depth+1);var t=e.id,t="_"+t.high+"_"+t.low,n=this.departmentMap;null!=j[t]?n.setReserved(t,e):n.h[t]=e},clearDomainDepartment:function(e){var t=this,e="_"+e.high+"_"+e.low,n=this.rootDepartmentIdMap,n=null!=j[e]?n.getReserved(e):n.h[e];null!=n&&(C.iter(this.getDepartmentsDescendantOrSelf(n),function(e){e=e.id;t.departmentMap.remove("_"+e.high+"_"+e.low)}),this.rootDepartmentIdMap.remove(e))},getRootDepartmentId:function(e){var e="_"+e.high+"_"+e.low,t=this.rootDepartmentIdMap;return null!=j[e]?t.getReserved(e):t.h[e]},setRootDepartmentId:function(e,t){var e="_"+e.high+"_"+e.low,n=this.rootDepartmentIdMap;null!=j[e]?n.setReserved(e,t):n.h[e]=t},setDepartmentUserCount:function(e){var t=this.getDepartment(e.departmentId);null!=t&&(t.userCount=e,t.userCountLoading=!1)},setUserCountLoading:function(e,t){e=this.getDepartment(e);null!=e&&(e.userCountLoading=t)},isUserCountLoadingRequired:function(e){e=this.getDepartment(e);return null==e||null==e.userCount&&!e.userCountLoading},clearDomainDepartmentUsers:function(e){e=this.getRootDepartmentId(e);return null!=e&&(C.iter(this.getDepartmentsDescendantOrSelf(e),function(e){e.userCount=null,e.userIds=null,e.userCountLoading=!1}),!0)},setDepartmentUsers:function(e,t){e=this.getDepartment(e);null!=e&&(e.userIds=t)},getDepartmentPath:function(e){return this.getDepartmentsAncestorOrSelf(e)},getDepartmentPathWithoutRoot:function(e){return this.getDepartmentPath(e).filter(function(e){return!e.isRoot()})},getDepartmentsAncestorOrSelf:function(e){var t=[];return this._getDepartmentsAncestorOrSelf(e,t),t},_getDepartmentsAncestorOrSelf:function(e,t){e=this.getDepartment(e);null!=e&&(null!=e.parentId&&this._getDepartmentsAncestorOrSelf(e.parentId,t),t.push(e))},getDepartmentsDescendantOrSelf:function(e){var t=[];return this._getDepartmentsDescendantOrSelf(e,t),t},_getDepartmentsDescendantOrSelf:function(e,t){var n=this,e=this.getDepartment(e);null!=e&&(t.push(e),null!=e.childrenIds)&&C.iter(e.childrenIds,function(e){n._getDepartmentsDescendantOrSelf(e,t)})},__class__:Pi},(t["albero.entity.DepartmentUserCount"]=me).__name__=["albero","entity","DepartmentUserCount"],me.prototype={__class__:me},(t["albero.entity.DepartmentUserCountList"]=pe).__name__=["albero","entity","DepartmentUserCountList"],pe.prototype={getDepartmentUserCounts:function(e){return null==e?[]:e.map(function(e){return new me(e)})},__class__:pe},(t["albero.entity.DirectApp"]=ge).__name__=["albero","entity","DirectApp"],ge.prototype={getLinkFeature:function(){return C.find(this.features,function(e){return e.isLink()})},getMessageExtensionFeature:function(){return C.find(this.features,function(e){return e.isMessageMenuExtension()})},getLocalizedLabel:function(e,t){var n=this.locales,n=null!=j[t]?n.getReserved(t):n.h[t];return null==n||null==(t=n.getResourceText(e))?"":t},__class__:ge},function(e){this.map=new B;for(var t=0,n=P.fields(e);t>t,e.high<<32-t|e.low>>>t):new I(e.high>>31,e.high>>t-32)},Ae.subTimestampPart=function(e,t){var e=Ae.timestamp(e),t=Ae.timestamp(t),n=e.high-t.high|0,i=e.low-t.low|0;return E.ucompare(e.low,t.low)<0&&(n--,n|=0),new I(n,i)},Ae.createForTest=function(e){var t=Ae.TIMESTAMP_SHIFT;return 0==(t&=63)?new I(e.high,e.low):t<32?new I(e.high<>>32-t,e.low<this.content.response?this.content.options[this.content.response]:"";case 17:return[this.content.title,c.localize("MessageStringMaker.achieve"),c.localize("MessageStringMaker.remand")].join(" ");case 18:return e&&null!=this.content.done?this.content.done?c.localize("MessageStringMaker.achieve"):c.localize("MessageStringMaker.remand"):"";default:return""}},messageStringForCompactMessage:function(){switch(this.type[1]){case 1:return this.content;case 5:if(null!=this.content.text&&0>>16,s=65535&t.low,l=t.low>>>16,u=E._mul(o,s),s=E._mul(a,s),o=E._mul(o,l),a=(E._mul(a,l)+(o>>>16)|0)+(s>>>16)|0,a=(o<<=16,E.ucompare(l=u+o|0,o)<0&&(a++,a|=0),s<<=16,E.ucompare(l=l+s|0,s)<0&&(a++,a|=0),a+(E._mul(e.low,t.high)+E._mul(e.high,t.low)|0)|0),u=new I(a,l),o=_.make(0,L.parseInt(this.commonStampId.charAt(r))),s=u.high+o.high|0,a=u.low+o.low|0;E.ucompare(a,u.low)<0&&(s++,s|=0);e=new I(s,a)}return e},__class__:Ye},(t["albero.entity.OriginalStamp"]=je).__name__=["albero","entity","OriginalStamp"],je.__interfaces__=[ze],je.fromJson=function(e){var t,n;return null==e.originalStamp||null==(e=e.originalStamp).stampsetIdStr||null==e.stampIdStr?null:(t=D.makeFromIdStr(e.stampsetIdStr),n=D.makeFromIdStr(e.stampIdStr),new je(t,n,e.illust))},je.fromPropsAndStampsetId=function(e,t){return new je(t,D.fromIntOrInt64(e.id),e.illust)},je.createKey=function(e){return"original__"+e.high+"_"+e.low},je.prototype={getImageUrl:function(){return this.illust},getKey:function(){return je.createKey(this.id)},toJson:function(){var e=this.stampsetId,t=this.id;return{originalStamp:{stampsetIdStr:"_"+e.high+"_"+e.low,stampIdStr:"_"+t.high+"_"+t.low,illust:this.illust}}},createMessage:function(e,t){var n=new O;return n.talkId=e,n.type=d.originalStamp,n.content={stampset_id:this.stampsetId,stamp_id:this.id},null!=t&&0!=t.length&&(n.content.text=t),n},__class__:je},function(){this.stampsetStore=new B,this.stampStore=new B,this.stampKeyCategoryIdMap=new B}),Lr=((t["albero.entity.StampStore"]=Pr).__name__=["albero","entity","StampStore"],Pr.prototype={addStampsets:function(e){for(var t=0;te.version},__class__:We},function(e){this.stampsetInfos=[],this.allowCreateMessageStampsetIds=[],this.version=0,null!=e&&(this.version=e.version,this.allowCreateMessageStampsetIds=e.allow_create_message_stampset_ids.map(D.fromIntOrInt64),this.stampsetInfos=this.getStampsetInfos(e.stampset_infos))}),l=((t["albero.entity.StampsetSetting"]=Br).__name__=["albero","entity","StampsetSetting"],Br.prototype={getStampsetInfos:function(e){return null==e?[]:e.map(function(e){return new We(e)})},isForwardForbidden:function(e){e=e.getContentsForOriginalStamp(),e=null==e?null:e.stampsetId;return null!=e&&!this.containSendableStampset(e)},containSendableStampset:function(t){return null!=this.allowCreateMessageStampsetIds&&C.exists(this.allowCreateMessageStampsetIds,function(e){return null!=t&&null!=e&&t.high==e.high&&t.low==e.low})},containVisibleStampset:function(t){return C.exists(this.stampsetInfos,function(e){e=e.stampsetId;return null!=t&&null!=e&&t.high==e.high&&t.low==e.low})},getSendableStampsetInfos:function(){var t=this;return null==this.stampsetInfos||null==this.allowCreateMessageStampsetIds?[]:this.stampsetInfos.filter(function(e){return t.containSendableStampset(e.stampsetId)})},isNewerThan:function(e){return this.version>e.version},updateStampsetInfo:function(t){this.stampsetInfos=this.stampsetInfos.map(function(e){return t.eqStampsetId(e)&&t.isNewerThan(e)?t:e})},deleteStampsetInfo:function(t){this.stampsetInfos=this.stampsetInfos.filter(function(e){e=e.stampsetId;return!(null!=e&&null!=t&&e.high==t.high&&e.low==t.low)}),this.allowCreateMessageStampsetIds=this.allowCreateMessageStampsetIds.filter(function(e){return!(null!=e&&null!=t&&e.high==t.high&&e.low==t.low)})},getStampsetIdsDiff:function(e){for(var t=new B,n=e.stampsetInfos.concat(this.stampsetInfos),i=0;ithis.pushNotificationSetting.version&&(this.pushNotificationSetting=Sr.createWithParams(e.type,e.version),!0)},isMessageAcceptable:function(e,t){var n;return!!this.isUnread(e.id)||(0==(n=(e=Ae.subTimestampPart(this.maxReadMessageId,e.id)).high-t.high|0)&&(n=E.ucompare(e.low,t.low)),(e.high<0?t.high<0?n:-1:0<=t.high?n:1)<=0)},isUnread:function(e){var t,n;return null==this.maxReadMessageId||(0==(n=(t=this.maxReadMessageId).high-e.high|0)&&(n=E.ucompare(t.low,e.low)),(t.high<0?e.high<0?n:-1:0<=e.high?n:1)<0)},isMax:function(e){var t;return null!=this.maxMessageId&&null!=(t=this.maxMessageId)&&null!=e&&t.high==e.high&&t.low==e.low},isNewMax:function(e){var t,n;return null==this.maxMessageId||(0==(n=(t=this.maxMessageId).high-e.high|0)&&(n=E.ucompare(t.low,e.low)),(t.high<0?e.high<0?n:-1:0<=e.high?n:1)<0)},isNotificationDisabled:function(){return this.pushNotificationSetting.isDisabled()},getNotificationType:function(){return this.pushNotificationSetting.type},hasUnreadMessage:function(){return null!=this.maxMessage&&this.isUnread(this.maxMessage.id)},clearReadingMessages:function(){this.readingMessages=null},__class__:Xe},(t["albero.entity.TalkStatusHelper"]=Je).__name__=["albero","entity","TalkStatusHelper"],Je.isNotificationDisabled=function(e){return null!=e&&e.isNotificationDisabled()},Je.isFavoriteTalk=function(e){return null!=e&&null!=e.orderInFavorites},Je.isUnreadMesasgeExisted=function(e){return null!=e&&e.hasUnreadMessage()},(t["albero.entity.TalkStatusUpdate"]=Ze).__name__=["albero","entity","TalkStatusUpdate"],Ze.prototype={__class__:Ze},(t["albero.entity.ThumbInfo"]=$e).__name__=["albero","entity","ThumbInfo"],$e.prototype={setAuth:function(e){this.auth=e},__class__:$e},function(e){null!=e&&(this.width=e.width,this.height=e.height)}),u=((t["albero.entity.ThumbDimension"]=qr).__name__=["albero","entity","ThumbDimension"],qr.createWithSize=function(e,t){var n=new qr;return n.width=e,n.height=t,n},qr.prototype={toObject:function(){return{width:this.width,height:this.height}},__class__:qr},(t["albero.entity.UpdateDomainStampSettingEvent"]=et).__name__=["albero","entity","UpdateDomainStampSettingEvent"],et.prototype={isValid:function(){return this.newSetting.isNewerThan(this.oldSetting)},getStampsetIdsDiff:function(){return this.oldSetting.getStampsetIdsDiff(this.newSetting)},__class__:et},t["albero.entity.UploadUseType"]={__ename__:["albero","entity","UploadUseType"],__constructs__:["PROFILE_IMAGE","MESSAGE","TALK_ICON","THUMBNAIL","NOTE_ATTACHMENT","NOTE_THUMBNAIL","SCHEDULE_MESSAGE"]}),I=(u.PROFILE_IMAGE=["PROFILE_IMAGE",0],u.PROFILE_IMAGE.toString=a,(u.PROFILE_IMAGE.__enum__=u).MESSAGE=["MESSAGE",1],u.MESSAGE.toString=a,(u.MESSAGE.__enum__=u).TALK_ICON=["TALK_ICON",2],u.TALK_ICON.toString=a,(u.TALK_ICON.__enum__=u).THUMBNAIL=["THUMBNAIL",3],u.THUMBNAIL.toString=a,(u.THUMBNAIL.__enum__=u).NOTE_ATTACHMENT=["NOTE_ATTACHMENT",4],u.NOTE_ATTACHMENT.toString=a,(u.NOTE_ATTACHMENT.__enum__=u).NOTE_THUMBNAIL=["NOTE_THUMBNAIL",5],u.NOTE_THUMBNAIL.toString=a,(u.NOTE_THUMBNAIL.__enum__=u).SCHEDULE_MESSAGE=["SCHEDULE_MESSAGE",6],u.SCHEDULE_MESSAGE.toString=a,(u.SCHEDULE_MESSAGE.__enum__=u).__empty_constructs__=[u.PROFILE_IMAGE,u.MESSAGE,u.TALK_ICON,u.THUMBNAIL,u.NOTE_ATTACHMENT,u.NOTE_THUMBNAIL,u.SCHEDULE_MESSAGE],(t["albero.entity.UploadUseTypeHelper"]=tt).__name__=["albero","entity","UploadUseTypeHelper"],tt.getUseTypeInt=function(e){switch(e[1]){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 4;case 4:return 5;case 5:return 6;case 6:return 1}},(t["albero.entity.UserIdentifier"]=nt).__name__=["albero","entity","UserIdentifier"],nt.prototype={__class__:nt},function(e,t){this.high=e,this.low=t}),Qr=((t["haxe._Int64.___Int64"]=I).__name__=["haxe","_Int64","___Int64"],I.prototype={__class__:I},(t["albero.entity.UserPresence"]=it).__name__=["albero","entity","UserPresence"],it.createUserPresenceState=function(e,t){var n=t.high-e.high|0,i=t.low-e.low|0;E.ucompare(t.low,e.low)<0&&(n--,n|=0);var t=new I(n,i),e=it.SIXTY_MINUTES,n=t.high-e.high|0;return 0==n&&(n=E.ucompare(t.low,e.low)),0<(t.high<0?e.high<0?n:-1:0<=e.high?n:1)?Qr.GT_60:(0==(e=t.high-(i=it.FIFTEEN_MINUTES).high|0)&&(e=E.ucompare(t.low,i.low)),0<(t.high<0?i.high<0?e:-1:0<=i.high?e:1)?Qr.LT_OR_EQ_60:Qr.LT_OR_EQ_15)},it.prototype={toState:function(e){var t=e,n=h.map(this.lastUsedAtOpt,function(e){return it.createUserPresenceState(e,t)});switch(n[1]){case 0:return n[2];case 1:return Qr.GT_60}},isExpired:function(e,t){var n=this.lastUpdatedAt,i=e.high-n.high|0,r=e.low-n.low|0;E.ucompare(e.low,n.low)<0&&(i--,i|=0);e=new I(i,r),n=e.high-t.high|0;return 0==n&&(n=E.ucompare(e.low,t.low)),0<(e.high<0?t.high<0?n:-1:0<=t.high?n:1)},__class__:it},t["albero.entity.UserPresenceState"]={__ename__:["albero","entity","UserPresenceState"],__constructs__:["LT_OR_EQ_15","LT_OR_EQ_60","GT_60"]}),Xr=(Qr.LT_OR_EQ_15=["LT_OR_EQ_15",0],Qr.LT_OR_EQ_15.toString=a,(Qr.LT_OR_EQ_15.__enum__=Qr).LT_OR_EQ_60=["LT_OR_EQ_60",1],Qr.LT_OR_EQ_60.toString=a,(Qr.LT_OR_EQ_60.__enum__=Qr).GT_60=["GT_60",2],Qr.GT_60.toString=a,(Qr.GT_60.__enum__=Qr).__empty_constructs__=[Qr.LT_OR_EQ_15,Qr.LT_OR_EQ_60,Qr.GT_60],(t["albero.entity.api.message.AddFavoriteMessageResult"]=rt).__name__=["albero","entity","api","message","AddFavoriteMessageResult"],rt.prototype={__class__:rt},(t["albero.entity.api.message.DeleteFavoriteMessageResult"]=ot).__name__=["albero","entity","api","message","DeleteFavoriteMessageResult"],ot.prototype={__class__:ot},(t["albero.entity.api.message.GetFavoriteMessagesResultWithParams"]=at).__name__=["albero","entity","api","message","GetFavoriteMessagesResultWithParams"],at.prototype={getNextMarker:function(){return this.nextMarker},getMessages:function(){return this.messages},__class__:at},(t["albero.entity.api.message.GetScheduledMessagesResultWithParams"]=st).__name__=["albero","entity","api","message","GetScheduledMessagesResultWithParams"],st.prototype={__class__:st},(t["albero.entity.api.message.SearchMessagesAroundDateTimeResult"]=lt).__name__=["albero","entity","api","message","SearchMessagesAroundDateTimeResult"],lt.prototype={__class__:lt},function(e){this.messageId=e.message_id,this.createdAt=e.created_at}),Jr=((t["albero.entity.api.message.MessageCreatedAt"]=Xr).__name__=["albero","entity","api","message","MessageCreatedAt"],Xr.prototype={__class__:Xr},function(e){this.noteRaw=e}),Zr=((t["albero.entity.api.note.CompressedNote"]=Jr).__name__=["albero","entity","api","note","CompressedNote"],Jr.prototype={uncompress:function(){var n=this,e=this.getCompressedContentRaw();return(new Z).run(e).then(function(e){var t=P.copy(n.noteRaw.note_revision),e=(t.content=e,P.copy(n.noteRaw));return e.note_revision=t,e})},getCompressedContentRaw:function(){return null==this.noteRaw||null==this.noteRaw.note_revision?null:this.noteRaw.note_revision.content},__class__:Jr},(t["albero.entity.api.note.CreateNoteError"]=ut).__name__=["albero","entity","api","note","CreateNoteError"],ut.prototype={__class__:ut},(t["albero.entity.api.note.CreateNoteResult"]=ct).__name__=["albero","entity","api","note","CreateNoteResult"],ct.prototype={updateWithEmitterKey:function(e){var t=new ct;return t.note=this.note,t.emitterKey=e,t},__class__:ct},(t["albero.entity.api.note.CreateNoteResultCompressed"]=_t).__name__=["albero","entity","api","note","CreateNoteResultCompressed"],_t.prototype={uncompress:function(){return this.compressedNote.uncompress().then(function(e){return new ct(e)})},__class__:_t},(t["albero.entity.api.note.DeleteNoteResult"]=ht).__name__=["albero","entity","api","note","DeleteNoteResult"],ht.prototype={__class__:ht},(t["albero.entity.api.note.GetNoteResult"]=dt).__name__=["albero","entity","api","note","GetNoteResult"],dt.prototype={getNoteId:function(){return this.note.noteId},getNoteCreateUserId:function(){return this.note.createdBy},getRevisionCreateUserId:function(){return this.note.getRevisionCreateUserId()},getNoteCreateDate:function(){return this.note.createdAt},getRevisionCreateDate:function(){return this.note.getRevisionCreateDate()},getLockedUserIdWithoutSelf:function(e){return this.note.getLockedUserIdWithoutSelf(e)},__class__:dt},(t["albero.entity.api.note.GetNoteResultCompressed"]=ft).__name__=["albero","entity","api","note","GetNoteResultCompressed"],ft.prototype={uncompress:function(){return this.compressedNote.uncompress().then(function(e){return new dt(e)})},__class__:ft},(t["albero.entity.api.note.GetNoteStatusesResult"]=mt).__name__=["albero","entity","api","note","GetNoteStatusesResult"],mt.prototype={isNotEmptyNoteStatuses:function(){return 0=bo.HIRAGANA_SMALL_A&&a<=bo.HIRAGANA_NN&&(n=(n+=e.substring(t,o))+String.fromCharCode(a+(bo.KATAKANA_SMALL_A-bo.HIRAGANA_SMALL_A)),t=1+o)}return n+=e.substring(t,e.length)},bo.katakanaToRoman=function(e){return(new Bt).convert(e)},bo.normalize=function(e){return new Mo(null).normalize(e)},bo.normalizeForFile=function(e){return new Mo(null).normalizeForFile(e)},bo.eraseInvisible=function(e){var t=new RegExp("[\\u0000-\\u0020 ]","g".split("u").join(""));return e.replace(t,"")},function(e){this.beforeTask=null,this.beforeTask=e}),ko=((t["albero.js.Normalizer"]=Mo).__name__=["albero","js","Normalizer"],Mo.prototype={normalize:function(e){try{return null!=this.beforeTask&&this.beforeTask(),e.normalize("NFKC")}catch(e){return e instanceof H&&(e=e.val),F.e("invalid character:",e),c.localize("TextCanonicalizer.invalid")}},normalizeForFile:function(e){try{return null!=this.beforeTask&&this.beforeTask(),e.normalize("NFC")}catch(e){return e instanceof H&&(e=e.val),F.e("invalid character:",e),c.localize("TextCanonicalizer.invalid")}},__class__:Mo},(t["albero.js.WebSocket"]=Yt).__name__=["albero","js","WebSocket"],Yt.prototype={__class__:Yt},(t["albero.js.WebSocketFactory"]=jt).__name__=["albero","js","WebSocketFactory"],jt.newInstance=function(e,t){return new ko(e,t)},function(e,t){var n=this,t=(this.onopen=t.onopen,this.onmessage=t.onmessage,this.onerror=null,this.onclose=t.onclose,this.onpong=t.onpong,Ls.wsConfig),i=require("websocket").client,i=(this.ws=new i(t),this.ws.on("connectFailed",Y(this,this.onError)),this.ws.on("connect",function(e){(n.connection=e).on("error",Y(n,n.onError)),e.on("close",Y(n,n.onConnectionClose)),e.on("message",Y(n,n.onMessage)),e.on("pong",Y(n,n.onPong)),n.onOpen(null)}),null);null!=Ls.proxyURL&&(i={agent:Ao.createAgent(Ls.proxyURL)}),this.ws.connect(e,null,null,null,i)}),Co=((t["albero.js.WebSocketForNodeJs"]=ko).__name__=["albero","js","WebSocketForNodeJs"],ko.__interfaces__=[Yt],ko.prototype={onOpen:function(e){F.i("WebSocket opened."),null!=this.onopen&&this.onopen()},onMessage:function(e){var t;null!=this.onmessage&&(t=null,t=this.getBinaryDataForHubot(e),this.onmessage(t))},getBinaryDataForHubot:function(e){return qa.ofData(e.binaryData)},onPong:function(e){null!=this.onpong&&this.onpong(e)},onError:function(e){F.e("WebSocket error. event:",e),null!=this.onerror&&this.onerror()},onClose:function(e){this.removeAllEventListenersForHubot(),F.i("WebSocket closed. "+L.string(e.code)+" "+L.string(e.reason)+" "+L.string(e.wasClean)),null!=this.onclose&&this.onclose(e.code,e.reason,e.wasClean)},removeAllEventListenersForHubot:function(){null!=this.ws&&(this.ws.removeAllListeners(),this.ws=null),null!=this.connection&&(this.connection.removeAllListeners(),this.connection=null)},onConnectionClose:function(e,t){this.onClose({code:e,reason:t})},close:function(){var e;this.onopen=null,this.onmessage=null,this.onerror=null,this.onclose=null,this.onpong=null,this.isClosed()||(e=this.connection,this.onConnectionClose(1e3,"Normal connection closure"),e.close())},send:function(e){this.isClosed()||this.connection.sendBytes(new ss(e.b.bufferValue))},ping:function(e){this.connection.ping(e)},isClosed:function(){return null==this.ws||null==this.connection||!this.connection.connected},__class__:ko},(t["puremvc.interfaces.IProxy"]=Wt).__name__=["puremvc","interfaces","IProxy"],Wt.prototype={__class__:Wt},(t["albero.proxy.AccessTokenResolverProxy"]=Kt).__name__=["albero","proxy","AccessTokenResolverProxy"],Kt.__interfaces__=[Wt],Kt.prototype={__class__:Kt},function(){}),m=((t["albero.proxy.AccessTokenResolverProxyFactory"]=Co).__name__=["albero","proxy","AccessTokenResolverProxyFactory"],Co.newInstance=function(){return new Do("accessTokenResolver")},function(e,t){On.call(this),this.proxyName=null!=e?e:m.NAME,null!=t&&this.setData(t)}),Do=((t["puremvc.patterns.proxy.Proxy"]=m).__name__=["puremvc","patterns","proxy","Proxy"],m.__interfaces__=[Wt],m.__super__=On,m.prototype=e(On.prototype,{getProxyName:function(){return this.proxyName},setData:function(e){this.data=e},getData:function(){return this.data},onRegister:function(){},onRemove:function(){},__class__:m}),function(e){m.call(this,e)}),Ro=((t["albero.proxy.AccessTokenResolverProxyForDirectJsHubot"]=Do).__name__=["albero","proxy","AccessTokenResolverProxyForDirectJsHubot"],Do.__interfaces__=[Kt],Do.__super__=m,Do.prototype=e(m.prototype,{asyncGetAccessToken:function(e,t){var n=this.settings.getAccessToken();null!=n?t(n):null!=(n=null!=Ls.account?Ls.account.split(":"):null)&&2==n.length?this.api.createAccessToken(n[0],n[1],t):null!=(e=null==e?this.accountLoader.load():e)&&(null!=e.accessToken?(this.settings.setAccessToken(e.accessToken),t(e.accessToken)):this.api.createAccessToken(e.email,e.pass,t))},__class__:Do}),(t["albero.proxy.AccountLoaderProxy"]=Vt).__name__=["albero","proxy","AccountLoaderProxy"],Vt.__interfaces__=[Wt],Vt.prototype={__class__:Vt},function(){}),Oo=((t["albero.proxy.AccountLoaderProxyFactory"]=Ro).__name__=["albero","proxy","AccountLoaderProxyFactory"],Ro.newInstance=function(){var e=x.resolveClass("albero.debug.proxy.AccountLoaderProxyImpl");return null!=e?x.createInstance(e,["accountLoader"]):new Oo("accountLoader")},function(e){m.call(this,e)}),Fo=((t["albero.proxy.AccountLoaderProxyForHubot"]=Oo).__name__=["albero","proxy","AccountLoaderProxyForHubot"],Oo.__interfaces__=[Vt],Oo.__super__=m,Oo.prototype=e(m.prototype,{load:function(){var i=this,t=require("read");return t({prompt:"Email: "},function(e,n){t({prompt:"Password: ",silent:!0},function(e,t){i.sendNotification("SignIn",new oe(n,t))})}),null},__class__:Oo}),function(){m.call(this,"broadcast")}),xo=((t["albero.proxy.AlberoBroadcastProxy"]=Fo).__name__=["albero","proxy","AlberoBroadcastProxy"],Fo.__super__=m,Fo.prototype=e(m.prototype,{handleNotification:function(e,t){var n=this;switch(F.v("Receive request from server. name:",e," body:",t),e){case"notify_add_account_control_request":var i=new le(t);this.dataStore.setAccountControlRequest(i),this.sendNotification(e,i);break;case"notify_add_acquaintance":var i=new ve(t[1]);this.dataStore.addAcquaintance(i),this.sendNotification(e,i);break;case"notify_add_acquaintances":i=t[1].map(function(e){return new ve(e)});C.iter(i,Y(z=this.dataStore,z.addAcquaintance)),this.api.sendAddAcquaintanceNotifications(i),this.sendNotification(e,i);break;case"notify_add_domain_invite":i=new Se(t);this.dataStore.setDomainInvite(i),this.sendNotification(e,i);break;case"notify_add_favorite_message":i=new bt(t);this.dataStore.addFavoriteMessage(i),this.sendNotification(e,i);break;case"notify_add_favorite_talk":i=new Ie(t);this.updateTalkStatusByFavoriteTalkEvent(i),this.sendNotification(e,i);break;case"notify_add_friend":i=new ve(t[1]);this.dataStore.addFriend(i),this.sendNotification(e,i);break;case"notify_add_talkers":i=new Gr(t);null==this.dataStore.getTalk(i.id)&&this.sendNotification("notify_add_talkers_including_me",i),this.dataStore.setTalk(i),this.sendNotification(e,i);break;case"notify_close_conference":i=new he(t);this.dataStore.removeConference(i),this.updateTalkStatusByConferenceClosedEvent(i),this.sendNotification(e,i);break;case"notify_conference_participant_join":var i=t[3],r=t[4],o=this.dataStore;null!=o.me&&null!=(o=o.me.id)&&null!=r&&o.high==r.high&&o.low==r.low&&this.dataStore.addReactedConfereceId(i),this.sendNotification(e,t);break;case"notify_conference_participant_reject":var o=t[3];this.dataStore.addReactedConfereceId(o),this.sendNotification(e,t);break;case"notify_create_announcement":var r=new Ni(t);this.dataStore.setAnnouncement(r),this.keywordWatcher.onAnnouncementCreated(r),this.sendNotification("notify_update_announcement_status",this.newAnnouncementStatus(r)),this.sendNotification(e,r);break;case"notify_create_message":var a=new O(t),i=(this.dataStore.setMessage(a),this.keywordWatcher.onMessageCreated(a),this.newTalkStatusByMessage(a));switch(null!=i&&this.sendNotification("notify_update_local_talk_status",i),a.type[1]){case 0:var s=a.content,l=null;switch(s.type){case"delete_talker":l=s.deleted_user_id;break;case"hide_pair_talk":l=s.user_id}if(null==l)return void this.sendNotification(e,a);for(var u=a.talkId,c=this.dataStore.getQuestions(u,l),_=0;_t.favoriteVersion)&&(t.favoriteVersion=e.favoriteVersion,t.orderInFavorites=e.orderInFavorites,this.dataStore.setTalkStatus(t))},updateTalkStatusByConferenceClosedEvent:function(e){var t,n=this.dataStore.getTalkStatus(e.talkId);null!=n&&null!=n.maxMessage&&(t=n.maxMessage.id,e=e.messageId,null!=t)&&null!=e&&t.high==e.high&&t.low==e.low&&(n.maxMessage.content.closed=!0,this.dataStore.setTalkStatus(n))},updateTalkStatusByTalkPushNotificationEvent:function(e){var t=this.dataStore.getTalkStatus(e.talkId);if(null==t){var n=this.dataStore.getTalk(e.talkId);if(null==n)return void F.e("talk not found on change favorite talk.");(t=new Xe).id=e.talkId,t.talkOrderingTimestamp=n.updatedAt}t.updateByTalkPushNotificationEvent(e)&&this.dataStore.setTalkStatus(t)},newTalkStatusByTalk:function(e){var t=this.dataStore.getTalkStatus(e.id);return null==t&&((t=new Xe).id=e.id),null==t.talkOrderingTimestamp&&(t.talkOrderingTimestamp=e.updatedAt),this.dataStore.setTalkStatus(t),t},newTalkStatusByMessage:function(e){var t=this.dataStore.getTalkStatus(e.talkId),n=(null==t&&((t=new Xe).id=e.talkId),this.dataStore),i=e.userId;return n=null!=n.me&&null!=(n=n.me.id)&&null!=i&&n.high==i.high&&n.low==i.low,t.updateByMessage(e,n),this.dataStore.setTalkStatus(t),t},updateTalkStatusOnMessageDelete:function(e){var t=this.dataStore.getTalkStatus(e.talkId);return null!=t&&t.updateByMessageDeletion(e)&&this.dataStore.setTalkStatus(t),t},updateTalkStatus:function(e){var t,n=this;return C.exists(e.readUserIds,function(e){var t=n.dataStore;return null!=t.me&&null!=(t=t.me.id)&&null!=e&&t.high==e.high&&t.low==e.low})?null==(t=this.dataStore.getTalkStatus(e.talkId))?(F.e("talkStatus is not found."),null):(t.updateByMessageReadStatusesUpdate(e)&&this.dataStore.setTalkStatus(t),t):null},newAnnouncementStatus:function(e){var t=this.dataStore.getAnnouncementStatus(e.domainId);return null==t&&((t=new ue).domainId=e.domainId),t.updateByAnnouncement(e),this.dataStore.setAnnouncementStatus(t),t},assureAnnouncementStatus:function(e){var t=this.dataStore.getAnnouncementStatus(e);return null==t&&(t=ue.fromDomainId(e),this.dataStore.setAnnouncementStatus(t)),t},__class__:Fo}),function(){m.call(this,"api")}),Uo=((t["albero.proxy.AlberoServiceProxy"]=xo).__name__=["albero","proxy","AlberoServiceProxy"],xo.__super__=m,xo.prototype=e(m.prototype,{getOSString:function(){return"bot"},createAccessToken:function(e,t,n){function i(e){F.v("access token:",e),o.settings.setAccessToken(e),n(e)}function r(e){o.sendNotification("Url",vi.FORWARD(p.error))}var o=this,a=e.split("$"),s=this.settings.getOs(),l=this.settings.getIDFV();(-1==e.indexOf("@")&&2==a.length?this.wsApi.createAccessTokenById(a[1],a[0],t,l,s):this.wsApi.createAccessToken(e,t,l,s)).then(i,r)},authorizeDevice:function(e,t){var n=this,i=this.settings.getIDFV();this.wsApi.authorizeDevice(e,i).then(function(e){t()},function(e){n.apiCaller.handleServerErrorDefault(e)})},createSession:function(e,n){var i=this,t=this.getOSString();this.apiCaller.onSessionClear(),this.wsApi.createSession(e,"1.127",t).then(function(e){var t=W.nowAsInt64();e.passwordExpiration.isExpired(t)?i.sendNotification("password_expiration_overed"):(e.passwordExpiration.needWarning(t,i.settings.getPasswordWarningSkipUntil())&&(i.settings.setPasswordWarningSkipUntil(W.oneDayAfterAsInt64()),i.sendNotification("password_expiration_warned")),i.apiCaller.onSessionCreated(),n(e),i.apiCaller.fireCallbacksWaitingForSession())},function(e){if(null!=e){if(401==e.code&&"expired password"==e.message)return void i.sendNotification("password_expiration_overed");if(401==e.code&&"deleted account"==e.message)return void i.sendNotification("SignOut");if(401==e.code&&"unauthorized device"==e.message)return void i.sendNotification("Device",Hn.AUTHORIZE);(400==e.code&&"older version specified"==e.message||401==e.code&&"bad token"==e.message||401==e.code&&"invalid token"==e.message)&&i.settings.clearAccessToken(),i.apiCaller.handleServerErrorDefault(e)}i.sendNotification("Url",vi.FORWARD(p.error))})},startNotification:function(){var t=this;this.wsApi.startNotification().then(function(e){e||(t.dataStore.clear(!0),t.sendNotification("start_notification_failed"))},function(e){t.apiCaller.handleServerErrorDefault(e)})},resetNotification:function(e){var t=this;this.wsApi.resetNotification().then(e,function(e){t.apiCaller.handleServerErrorDefault(e)})},sendDomainNotifications:function(e){for(var t=0;t=n.length||(e=n[i],r=t.id,o=this.dataFactory.newDummyMessage(r,e.type,e.content),this.sendNotification("create_message_start",o),this.wsApi.createMessage(r,e.type,e.content).then(function(e){a.dataStore.setMessage(e),a.sendNotification("create_message_complete",[e,o.id]),a.forwardMessages(t,n,i+1),a.dataStore.removeMessage(o.id)},function(e){var t;a.sendNotification("create_message_fail",[e,o]),null!=e&&409==e.code?(t=na.toLocalError(R.SendingMessageConflicted,e),a.sendNotification("error_occurred",t)):a.sendNotification("error_occurred",e)}))},deleteMessage:function(e,t){var n=this;this.wsApi.deleteMessage(e,t).then(function(e){},function(e){var t;null!=e&&((403!=e.code||"frozen domain"!=e.message)&&409==e.code&&"conflict"==e.message?(t=na.toLocalError(R.DeletingMessageConflicted,e),n.sendNotification("error_occurred",t)):n.sendNotification("error_occurred",e))})},updateReadStatuses:function(n,i){var r=this;this.wsApi.updateReadStatuses(n,i).then(function(e){var t=r.dataStore.getTalkStatus(n);null!=t&&(t.updateByReadingMessagesFinished(i),r.sendNotification("notify_update_local_talk_status",t))},function(e){var t=r.dataStore.getTalkStatus(n);null!=t&&(t.updateByReadingMessagesCanceled(i),r.dataStore.setTalkStatus(t),r.sendNotification("notify_update_local_talk_status",t)),r.apiCaller.handleServerErrorDefault(e)})},searchMessagesAroundDateTime:function(e,t){return this.wsApi.searchMessagesAroundDateTime(e,t)},uploadV2:function(e,t,n,i){var r=this,o=this.dataFactory.newDummyFileMessage(t,n);this.sendNotification("create_message_start",o),this.prepareMessageFileAsync(n.file,n.thumb,e,!1).then(function(e){r._createMessage(t,d.file,e,o,i)},function(e){r.sendNotification("create_message_fail",[e,o],i)})},uploadForHubot:function(e,t,n){var i,r=this.dataStore.getTalk(e),t={file:t,thumb:null};null==r?(e=this.dataFactory.newDummyFileMessage(e,t),F.w("WARNING method: upload",i={code:400,message:"invalid talk_id (deleted talk)"}),this.sendNotification("create_message_fail",[i,e],n)):this.uploadV2(r.domainId,r.id,t,n)},uploadMultiV2:function(e,t,n,i,r){var o=this,a=this.dataFactory.newDummyMultipleFileMessage(t,n,i);this.sendNotification("create_message_start",a),this.prepareMessageFilesAsync(e,n,i,!1).then(function(e){o._createMessage(t,d.textMultipleFile,e,a,r)},function(e){o.sendNotification("create_message_fail",[e,a],r)})},uploadMultiForHubot:function(e,t,n,i){var r,o=this.dataStore.getTalk(e),n=n.map(function(e){return{file:e,thumb:null}});null==o?(e=this.dataFactory.newDummyMultipleFileMessage(e,t,n),F.w("WARNING method: uploadMulti",r={code:400,message:"invalid talk_id (deleted talk)"}),this.sendNotification("create_message_fail",[r,e],i)):this.uploadMultiV2(o.domainId,o.id,t,n,i)},validateFileName:function(t){var n=w.replace(t.name,"$","__");if(n==t.name)return t;try{return t.name=n,t}catch(e){var i=t.slice(0,t.size,t.type);return new File([i],n,{type:t.type})}},prepareMessageFilesAsync:function(n,t,i,r){for(var o=this,e=Promise.resolve([]),a=0;ae.version?n:(n=this.accountControlRequests,null!=j[t]?n.setReserved(t,e):n.h[t]=e,this.storage.setDirtyFlag(),e)},removeAccountControlRequest:function(e){e="_"+e.high+"_"+e.low;this.accountControlRequests.remove(e),this.storage.setDirtyFlag()},removeAccountControlRequests:function(){this.accountControlRequests=new B,this.storage.setDirtyFlag()},getAccountControlGroup:function(){return this.accountControlGroup},setAccountControlGroup:function(e){return this.accountControlGroup=e,this.storage.setDirtyFlag(),this.accountControlGroup},updateAccountControlGroup:function(e){var t,n,i;null!=this.accountControlGroup&&(n=this.accountControlGroup.id,t=e.id,null!=n)&&null!=t&&n.high==t.high&&n.low==t.low&&(null!=(n=e.group)&&this.accountControlGroup.group.versionr[a])return!0;if(o[a]Xt.MAX_CONTENT_BYTES?{ok:!1,errorType:"limit",message:"Content length must be less than or equal to "+Xt.MAX_CONTENT_BYTES+" bytes, but the actual length is "+e.length+" bytes."}:Bs.validateXml(e)},Xt.hasPathField=function(e){return C.foreach(e,function(e){return!Xt.isStringNullOrEmpty(e.path)})},Xt.validateUpdateNoteInput=function(e,t){if(0==Object.keys(e).length)return Ya.Left("'update' function must not be called with no update fields.");if(null!=e.note_title){if("string"!=typeof e.note_title)return Ya.Left("'note_title' must be specified as String type.");if(0==e.note_title.length)return Ya.Left("'note_title' must not be empty.")}if(null!=e.note_content_type)return Ya.Left("'note_content_type' must not be specified. It cannot be changed.");if(null!=e.note_content){if("string"!=typeof e.note_content)return Ya.Left("'note_content' must be specified as String type.");if(0==e.note_content.length)return Ya.Left("'note_content' must not be empty.");if(t==uo.getValue(lo.RICH_TEXT)){t=Xt.validateXmlContent(e);if(0===t[1])return Ya.Left(t[2])}}t=null;if(null!=e.note_attachments){if(!(e.note_attachments instanceof Array&&null==e.note_attachments.__enum__&&Xt.all(e.note_attachments,Xt.isValidAsAttachment)))return Ya.Left("'note_attachments' is an invalid value: "+JSON.stringify(e.note_attachments));t=Xt.toUpdateNoteAttachmentArray(e.note_attachments)}return Ya.Right({title:e.note_title,content:e.note_content,attachments:t})},Xt.isValidAsAttachment=function(e){return Xt.isStringNullOrEmpty(e.url)?!Xt.isStringNullOrEmpty(e.path):!Xt.isStringNullOrEmpty(e.id)&&!Xt.isStringNullOrEmpty(e.name)&&null!=e.content_size&&!Xt.isStringNullOrEmpty(e.content_type)},Xt.toUpdateNoteAttachmentArray=function(e){var n=Ra.parseInt64;return C.array(C.map(e,function(e){var t;return Xt.isStringNullOrEmpty(e.url)?fa.LocalFileAttachment(e):((t=null==e?null:JSON.parse(JSON.stringify(e))).id=n(e.id),fa.RemoteFileAttachment(t))}))},Xt.validateUpdateNoteOptions=function(e){var t={notify_talk_members_of_update:!0};if(null!=e&&null!=e.notify_talk_members_of_update){if("boolean"!=typeof e.notify_talk_members_of_update)return Ya.Left("'notify_talk_members_of_update' must be of Bool type.");t.notify_talk_members_of_update=e.notify_talk_members_of_update}return Ya.Right(t)},Xt.all=function(e,t){return C.foreach(e,t)},Xt.isStringNullOrEmpty=function(e){return null==e||0==e.length},Xt.prototype={__class__:Xt},(t["albero_cli.INotes"]=Jt).__name__=["albero_cli","INotes"],Jt.prototype={__class__:Jt},function(e,t){this.delegate=e;e=null!=t?t:{max:24,interval:12e4};this.ratelimit=new wn(e.max,e.interval)}),pa=((t["albero_cli.LimitedNotes"]=ma).__name__=["albero_cli","LimitedNotes"],ma.__interfaces__=[Jt],ma.prototype={limit:function(e){return this.ratelimit.apply(e)},get:function(e){var t=this;return this.limit(function(){return t.delegate.get(e)})},update:function(e,t,n){var i=this;return this.limit(function(){return i.delegate.update(e,t,n)})},delete:function(e){var t=this;return this.limit(function(){return t.delegate.delete(e)})},validateXml:function(e){return this.delegate.validateXml(e)},__class__:ma},function(e,t,n){this.utils=e,this.api=t,this.fileService=n}),ga=((t["albero_cli.Notes"]=pa).__name__=["albero_cli","Notes"],pa.__interfaces__=[Jt],pa.prototype={toNoteId:function(e){return new co(this.utils.parseInt64(e.id))},handleResponse:function(n,i,r){return function(e,t){null!=e?(e=Ca.of(e),i(e)):(e=r(t),n(e))}},get:function(e){var i=this,r=this.toNoteId(e);return new Promise(function(e,t){var n=i.api,e=i.handleResponse(e,t,xa.of);n.getNote(r,e)})},update:function(e,t,n){var i=Xt.validateUpdateNoteInput(t,e.noteRevision.contentType);switch(i[1]){case 0:return Promise.reject(Ca.createInvalidParameterError(i[2]));case 1:var r=i[2],o=Xt.validateUpdateNoteOptions(n);switch(o[1]){case 0:return Promise.reject(Ca.createInvalidParameterError(o[2]));case 1:return this.updateNote(e,r,o[2])}}},delete:function(e){var i=this,r=this.toNoteId(e);return new Promise(function(e,t){var n=i.api,e=i.handleResponse(e,t,Fa.of);n.deleteNote(r,e)})},updateNote:function(e,t,n){var r=this,i=e.talkId_i64,o=new co(e.id_i64),a=this.mergeNoteObject(e,t),s=this.createNoteLocalEdit(i,o,a,null),l=n.notify_talk_members_of_update;return new Promise(function(e,t){var n=r.api,i=a.currentRevision,e=r.handleResponse(e,t,Ua.of);n.updateNoteV2(o,i,s,l,e)})},mergeNoteObject:function(e,t){e={title:e.noteRevision.title,contentType:e.noteRevision.contentType,content:e.noteRevision.contentText,attachments:Xt.toUpdateNoteAttachmentArray(e.get_attachments()),currentRevision:e.noteRevision.revision};return null!=t.title&&(e.title=t.title),null!=t.content&&(e.content=t.content),null!=t.attachments&&(e.attachments=t.attachments),e},createNoteLocalEdit:function(e,t,n,i){var r=this.createNoteAttachmentFileInfoList(n.attachments),o=n.contentType==uo.getValue(lo.RICH_TEXT);return new _o(e,t,n.title,n.content,r,i,null,o)},createNoteAttachmentFileInfoList:function(e){for(var t=[],n=0;n>>31,t.low<<1);if(s=new I(s.high<<1|s.low>>>31,s.low<<1),0<=l)break}for(;;){var u=new I(0,0);if(s.high==u.high&&s.low==u.low)break;var c,u=E.ucompare(n.high,t.high);0<=(0!=u?u:E.ucompare(n.low,t.low))&&(a=new I(a.high|s.high,a.low|s.low),u=n.high-t.high|0,c=n.low-t.low|0,E.ucompare(n.low,t.low)<0&&(u--,u|=0),n=new I(u,c)),s=new I(s.high>>>1,s.high<<31|s.low>>>1);t=new I(t.high>>>1,t.high<<31|t.low>>>1)}return i&&(o=~a.high,0==(r=-a.low)&&(o++,o|=0),a=new I(o,r)),e.high<0&&(i=~n.high,0==(o=-n.low)&&(i++,i|=0),n=new I(i,o)),{quotient:a,modulus:n}},function(){}),Ba=((t["haxe.Int64Helper"]=La).__name__=["haxe","Int64Helper"],La.parseString=function(e){for(var t=new I(0,10),n=new I(0,0),i=new I(0,1),r=!1,o=w.trim(e),a=("-"==o.charAt(0)&&(r=!0,o=o.substring(1,o.length)),o.length),s=0,l=a;s>31,u);if(r){var c=65535&i.low,_=i.low>>>16,h=65535&u.low,d=u.low>>>16,f=E._mul(c,h),h=E._mul(_,h),c=E._mul(c,d),_=(E._mul(_,d)+(c>>>16)|0)+(h>>>16)|0,f=(c<<=16,E.ucompare(d=f+c|0,c)<0&&(_++,_|=0),h<<=16,E.ucompare(d=d+h|0,h)<0&&(_++,_|=0),_=_+(E._mul(i.low,u.high)+E._mul(i.high,u.low)|0)|0,new I(_,d)),c=n.high-f.high|0,h=n.low-f.low|0;if(E.ucompare(n.low,f.low)<0&&(c--,c|=0),!((n=new I(c,h)).high<0))throw new H("NumberFormatError: Underflow")}else{var _=65535&i.low,d=i.low>>>16,f=65535&u.low,c=u.low>>>16,h=E._mul(_,f),m=E._mul(d,f),p=E._mul(_,c),g=(E._mul(d,c)+(p>>>16)|0)+(m>>>16)|0,p=(p<<=16,E.ucompare(y=h+p|0,p)<0&&(g++,g|=0),m<<=16,E.ucompare(y=y+m|0,m)<0&&(g++,g|=0),g=g+(E._mul(i.low,u.high)+E._mul(i.high,u.low)|0)|0,new I(g,y)),m=n.high+p.high|0,u=n.low+p.low|0;if(E.ucompare(u,n.low)<0&&(m++,m|=0),(n=new I(m,u)).high<0)throw new H("NumberFormatError: Overflow")}var g=65535&i.low,y=i.low>>>16,p=65535&t.low,m=t.low>>>16,u=E._mul(g,p),S=E._mul(y,p),v=E._mul(g,m),T=(E._mul(y,m)+(v>>>16)|0)+(S>>>16)|0,T=(v<<=16,E.ucompare(u=u+v|0,v)<0&&(T++,T|=0),S<<=16,E.ucompare(u=u+S|0,S)<0&&(T++,T|=0),T+(E._mul(i.low,t.high)+E._mul(i.high,t.low)|0)|0),i=new I(T,u)}return n},function(){this.buf=new In,this.cache=[],this.useCache=Ba.USE_CACHE,this.useEnumIndex=Ba.USE_ENUM_INDEX,this.shash=new B,this.scount=0}),Ha=((t["haxe.Serializer"]=Ba).__name__=["haxe","Serializer"],Ba.run=function(e){var t=new Ba;return t.serialize(e),t.toString()},Ba.prototype={toString:function(){return this.buf.b},serializeString:function(e){var t,n=this.shash,n=null!=j[e]?n.getReserved(e):n.h[e];null!=n?(this.buf.b+="R",this.buf.b+=null==n?"null":""+n):(n=this.shash,t=this.scount++,null!=j[e]?n.setReserved(e,t):n.h[e]=t,this.buf.b+="y",e=encodeURIComponent(e),this.buf.b+=L.string(e.length),this.buf.b+=":",this.buf.b+=null==e?"null":""+e)},serializeRef:function(e){for(var t=typeof e,n=0,i=this.cache.length;n>2]),this.buf.b+=String.fromCharCode(N[63&(k<<4|C>>4)]),this.buf.b+=String.fromCharCode(N[63&(C<<2|D>>6)]),this.buf.b+=String.fromCharCode(N[63&D])}I==E?(l=w.b[I++],T=w.b[I++],this.buf.b+=String.fromCharCode(N[l>>2]),this.buf.b+=String.fromCharCode(N[63&(l<<4|T>>4)]),this.buf.b+=String.fromCharCode(N[T<<2&63])):I==1+E&&(l=w.b[I++],this.buf.b+=String.fromCharCode(N[l>>2]),this.buf.b+=String.fromCharCode(N[l<<4&63]));break;default:this.useCache&&this.cache.pop(),null!=e.hxSerialize?(this.buf.b+="C",this.serializeString(x.getClassName(i)),this.useCache&&this.cache.push(e),e.hxSerialize(this),this.buf.b+="g"):(this.buf.b+="c",this.serializeString(x.getClassName(i)),this.useCache&&this.cache.push(e),this.serializeFields(e))}break;case 7:n=t[2];if(this.useCache){if(this.serializeRef(e))return;this.cache.pop()}this.buf.b+=L.string(this.useEnumIndex?"j":"w"),this.serializeString(x.getEnumName(n)),this.useEnumIndex?(this.buf.b+=":",this.buf.b+=L.string(e[1])):this.serializeString(e[0]),this.buf.b+=":";for(var n=e.length,R=(this.buf.b+=L.string(n-2),2),O=n;R=(null==(r=e.right)?0:r._height)?new za(e.left,e.key,e.value,new za(e.right,t,n,i)):new za(new za(e.left,e.key,e.value,e.right.left),e.right.key,e.right.value,new za(e.right.right,t,n,i)):o+2(null==(r=i.left)?0:r._height)?new za(new za(e,t,n,i.left),i.key,i.value,i.right):new za(new za(e,t,n,i.left.left),i.left.key,i.left.value,new za(i.left.right,i.key,i.value,i.right)):new za(e,t,n,i,(a(null==t?0:t._height)?null==(n=this.left)?0:n._height:null==(i=this.right)?0:i._height,this._height=e+1):this._height=r}),Ya=((t["haxe.ds.TreeNode"]=za).__name__=["haxe","ds","TreeNode"],za.prototype={__class__:za},t["haxe.ds.Either"]={__ename__:["haxe","ds","Either"],__constructs__:["Left","Right"]}),ja=(Ya.Left=function(e){e=["Left",0,e];return e.__enum__=Ya,e.toString=a,e},Ya.Right=function(e){e=["Right",1,e];return e.__enum__=Ya,e.toString=a,e},Ya.__empty_constructs__=[],function(){Ga.call(this)}),Wa=((t["haxe.ds.EnumValueMap"]=ja).__name__=["haxe","ds","EnumValueMap"],ja.__interfaces__=[on],ja.__super__=Ga,ja.prototype=e(Ga.prototype,{compare:function(e,t){var n=e[1]-t[1];return 0!=n?n:(n=e.slice(2),e=t.slice(2),0==n.length&&0==e.length?0:this.compareArgs(n,e))},compareArgs:function(e,t){var n=e.length-t.length;if(0!=n)return n;for(var i=0,r=e.length;i>6):(i<=65535?t.push(224|i>>12):(t.push(240|i>>18),t.push(128|i>>12&63)),t.push(128|i>>6&63)),t.push(128|63&i))}return new qa(new Uint8Array(t).buffer)},qa.ofData=function(e){var t=e.hxBytes;return null!=t?t:new qa(e)},qa.fastGet=function(e,t){return e.bytes[t]},qa.prototype={getString:function(e,t){if(e<0||t<0||e+t>this.length)throw new H($a.OutsideBounds);for(var n="",i=this.b,r=String.fromCharCode,o=e,a=e+t;o>10)))+r(1023&s|56320)}return n},toString:function(){return this.getString(0,this.length)},__class__:qa},function(){this.b=[]}),Xa=((t["haxe.io.BytesBuffer"]=Qa).__name__=["haxe","io","BytesBuffer"],Qa.prototype={getBytes:function(){var e=new qa(new Uint8Array(this.b).buffer);return this.b=null,e},__class__:Qa},(t["haxe.io.Input"]=an).__name__=["haxe","io","Input"],an.prototype={readByte:function(){throw new H("Not implemented")},readBytes:function(e,t,n){var i=n,r=e.b;if(t<0||n<0||e.lengthe.length)throw new H($a.OutsideBounds);this.b=e.b,this.pos=t,this.len=n,this.totlen=n}),Ja=((t["haxe.io.BytesInput"]=Xa).__name__=["haxe","io","BytesInput"],Xa.__super__=an,Xa.prototype=e(an.prototype,{readByte:function(){if(0==this.len)throw new H(new Za);return this.len--,this.b[this.pos++]},readBytes:function(e,t,n){if(t<0||n<0||t+n>e.length)throw new H($a.OutsideBounds);if(0==this.len&&0e.length)throw new H($a.OutsideBounds);for(var i=e.b,r=n;0>8),this.writeByte(255&e)):(this.writeByte(255&e),this.writeByte(e>>8))},writeInt32:function(e){this.bigEndian?(this.writeByte(e>>>24),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)):(this.writeByte(255&e),this.writeByte(e>>8&255),this.writeByte(e>>16&255),this.writeByte(e>>>24))},__class__:sn},function(){this.b=new Qa}),Za=((t["haxe.io.BytesOutput"]=Ja).__name__=["haxe","io","BytesOutput"],Ja.__super__=sn,Ja.prototype=e(sn.prototype,{writeByte:function(e){this.b.b.push(e)},writeBytes:function(e,t,n){var i=this.b;if(t<0||n<0||t+n>e.length)throw new H($a.OutsideBounds);i.b;for(var r=e.b,o=t,a=t+n;o>>23&255,n=8388607&e;return 0==n&&0==t?0:(1-(e>>>31<<1))*(1+Math.pow(2,-23)*n)*Math.pow(2,t-127)},es.floatToI32=function(e){var t,n;return 0==e?0:(n=e<0?-e:e,(t=Math.floor(Math.log(n)/.6931471805599453))<-127?t=-127:128>20&2047)-1023,e=4294967296*(1048575&t)+2147483648*(e>>>31)+(2147483647&e);return 0==e&&-1023==n?0:(1-(t>>>31<<1))*(1+Math.pow(2,-52)*e)*Math.pow(2,n)},es.doubleToI64=function(e){var t,n,i,r=es.i64tmp;return 0==e?(r.low=0,r.high=0):isFinite(e)?(n=e<0?-e:e,t=Math.floor(Math.log(n)/.6931471805599453),i=(n=Math.round(4503599627370496*(n/Math.pow(2,t)-1)))/4294967296|0,r.low=0|n,r.high=(e<0?-2147483648:0)|t+1023<<20|i):0";var n=typeof e;switch(n="function"==n&&(e.__name__||e.__ename__)?"object":n){case"function":return"";case"object":if(e instanceof Array){if(e.__enum__){if(2==e.length)return e[0];for(var i=e[0]+"(",r=(t+="\t",2),o=e.length;r{for(var n in t)gs(e,n,{get:t[n],enumerable:!0})})(y={},{codePointCount:()=>ws,extractMentionParts:()=>Ms,findMentionSuggestionHint:()=>Cs,hasMentionPartForMeOrAll:()=>Es,invalidateManualMentionMarkup:()=>As,parseMessageMention:()=>bs,removeMentionMarkup:()=>Ns}),Ts=e=>Array.from(e),ws=e=>Ts(e).length,Is=/{@:(ALL|\d+),(\d+)}@/g,Es=e=>Ms(e).some(({userIdNumStr:e})=>null===e||"ALL"===e),Ns=t=>bs(t).map(e=>"mention"===e.type?e.mentionText:"normal"===e.type?t.substring(e.start,e.end):"").join(""),As=e=>e.replace(Is,e=>e.substring(0,e.length-1)+" "),bs=e=>{let n=0;var t=Ms(e).flatMap(e=>{var t=[];return n!==e.start&&t.push({type:"normal",start:n,end:e.start}),t.push(e),n=e.end,t});return e.length!==n&&t.push({type:"normal",start:n,end:e.length}),t},Ms=o=>{let a=0;return Array.from(o.matchAll(Is)).flatMap(e=>{var t,n,i,r=null!=(r=e.index)?r:0;return r{e=e.match(ks);return null===e?null:{prev:e[1],atMarks:e[2],keyword:e[3]}},y=y,((t,n,i,r)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let e of Ss(n))vs.call(t,e)||e===i||gs(t,e,{get:()=>n[e],enumerable:!(r=ys(n,e))||r.enumerable});return t})(gs({},"__esModule",{value:!0}),y)),Vn.exports),Rs=((String.prototype.__class__=t.String=String).__name__=["String"],(t.Array=Array).__name__=["Array"],(Date.prototype.__class__=t.Date=Date).__name__=["Date"],t.Int={__name__:["Int"]}),Os=t.Dynamic={__name__:["Dynamic"]},Fs=t.Float=Number,xs=(Fs.__name__=["Float"],t.Bool=Boolean),Us=(xs.__ename__=["Bool"],t.Class={__name__:["Class"]}),Ps={},Ls={},y={},Bs=(y.exports=(()=>{var e=require("fs");let r=require("libxmljs");var t=require("path");let n=e=>e.namespace()?.href()??"",a=e=>`{${n(e)}}`+e.name();t=t.resolve(__dirname,"./note-richtext.v1.xsd"),e=r.parseXml(e.readFileSync(t,{encoding:"utf-8"}),{baseUrl:t});let i=new Map;function o(e){var t=Number(e.root().getAttribute("version")?.value()),n=i.get(t);return n?e.validate(n)?{ok:!0}:{ok:!1,errorType:"xsd",message:e.validationErrors.map(e=>e.message.trim()).join(" ")}:{ok:!1,errorType:"version",message:`The note version ${t} is not supported by this package. Please use one of the following values: `+Array.from(i.keys()).join(",")}}i.set(1,e);let s=new Map;function l(e){try{return function n(e,i,r){for(var o of e.childNodes())if("element"===o.type()){if(!i.includes(o.name()))throw new Error(`Element '${a(o)}': This element is not allowed at '${o.path()}'.`);{let t=r.get(o.name())??[],e=[...i].filter(e=>t.includes(e))??[];n(o,e,r)}}}(e.root(),s.get(e.root().name()),s),{ok:!0}}catch(e){return{ok:!1,errorType:"descendant",message:e.message}}}s.set("note",["textsize","color","b","link","u","strike","checkbox"]),s.set("textsize",["color","b","link","u","strike"]),s.set("color",["textsize","b","link","u","strike"]),s.set("b",["textsize","color","link","u","strike"]),s.set("link",["textsize","b","strike"]),s.set("u",["textsize","color","b","link","strike"]),s.set("strike",["textsize","color","b","link","u"]),s.set("checkbox",["color","b","link","u","strike"]);let u=e=>"element"===e.type(),c=e=>"element"===e.type()&&"checkbox"===e.name(),_=e=>"element"===e.type()&&"link"===e.name(),h=e=>"element"===e.type()&&["textsize","color","b","link","u","strike"].includes(e.name());function d(e,t,n,i){for(var r of e.childNodes())t(r)&&(n(r)&&i.push(r),d(r,t,n,i))}function f(e){var t=[];d(e.root(),u,_,t);try{for(var n of t){var i=n.text();if(null==i||""===i)throw new Error(`Element '${a(n)}': This element must not be empty. (element path: ${n.path()})`);if(/\r|\n/.test(i))throw new Error(`Element '${a(n)}': This element must not contain a new line. (element path: ${n.path()})`);var r=n.attrs().filter(e=>"url"===e.name())[0].value();if(!/^[\x20-\x7E]+$/.test(r))throw new Error(`Element '${a(n)}': The attribute 'url' must be URL-encoded or must be converted by Punycode if it's an IDN. (element path: ${n.path()})`)}return{ok:!0}}catch(e){return{ok:!1,errorType:"link",message:e.message}}}function m(e){var t=[];d(e.root(),u,c,t);try{for(var n of t)if(/\r|\n/.test(n.text()))throw new Error(`Element '${a(n)}': This element must not contain a new line. (element path: ${n.path()})`);return{ok:!0}}catch(e){return{ok:!1,errorType:"checkbox",message:e.message}}}function p(e){var t=[];d(e.root(),u,h,t);try{for(var n of t){var i=n.text();if(null==i||""===i)throw new Error(`Element '${a(n)}': This element must not be empty. (element path: ${n.path()})`)}return{ok:!0}}catch(e){return{ok:!1,errorType:"text-decorator",message:e.message}}}return{validateXml:function(e){let t;try{t=r.parseXml(e).doc()}catch(e){return{ok:!1,errorType:"parse",message:e.message}}let n={ok:!0};var i;for(i of[o,l,f,m,p])if(!(n=i(t)).ok)break;return n}}})(),y.exports),j={};i.APP_STATE_CHANGED="app_state_changed",i.ACCESS_TOKEN_CHANGED="access_token_changed",i.CURRENT_USER_CHANGED="current_user_changed",i.CONFIGURATION_CHANGED="configuration_changed",i.DOMAIN_SELECTION_CHANGED="domain_selection_changed",i.TALK_SELECTION_CHANGED="talk_selection_changed",i.TALK_LIST_SCROLL_TO_TALK_TOP_NEEDED="talk_list_scroll_to_talk_top_needed",i.USER_SELECTION_NEEDED="user_selection_needed",i.USER_SELECTION_CHANGED="user_selection_changed",i.FRIEND_SELECTION_NEEDED="friend_selection_needed",i.COMMON_STAMP_SET_LOADED="common_stamp_set_loaded",i.STAMP_SELECTION_STARTED="stamp_selection_started",i.STAMP_SELECTION_ENDED="stamp_selection_ended",i.STAMP_SELECTION_CHANGED="stamp_selection_changed",i.ACTION_SELECTION_CHANGED="action_selection_changed",i.CURRENT_PAGE_CHANGED="current_page_changed",i.CURRENT_PAGE_REASSIGNED="current_page_reassgined",i.FILEINFO_SELECTION_CHANGED="fileinfo_selection_changed",i.NOTE_FILEINFO_SELECTION_CHANGED="note_fileinfo_selection_changed",i.MESSAGE_FILEINFO_SELECTION_CHANGED="message_fileinfo_selection_changed",i.STAGED_FILEINFO_SELECTION_CHANGED="staged_fileinfo_selection_changed",i.STAGED_FILEINFOS_ADDED="staged_fileinfos_added",i.STAGED_FILEINFOS_MOVED="staged_fileinfos_moved",i.CLOSE_FILEPREVIEW_MODAL="close_filepreview_modal",i.ERROR_OCCURRED="error_occurred",i.UNREAD_COUNT_CHANGED="brand_badge_changed",i.SEND_FORM_TOP_CHANGED="send_form_top_changed",i.SOLUTIONS_LOADED="solutions_loaded",i.RIGHT_PANE_OPENED="right_pane_opened",i.RIGHT_PANE_CLOSED="right_pane_closed",i.PASSWORD_EXPIRATION_OVERED="password_expiration_overed",i.PASSWORD_EXPIRATION_WARNED="password_expiration_warned",i.PHOTO_EDITOR_SAVED="photo_editor_saved",i.ICON_EDITOR_SAVED="icon_editor_saved",i.MC_AUTHENTICATED_USER_RECEIVED="mc_authenticated_user_received",i.KEYWORD_WATCHING_UPDATED="keyword_watching_updated",i.KEYWORD_DETECTION_UPDATED="keyword_detaction_updated",i.DEPARTMENT_SELECTION_CHANGED_FOR_MEMBERS_PAGE="department_selection_changed_for_members_page",i.PRESENCES_UPDATED="presences_updated",i.NOTEINFO_SELECTION_CHANGED="noteinfo_selection_changed",i.START_NOTE_EDITING="start_note_editing",i.OPEN_EXISTING_PAIR_TALK_COMPLETED="open_existing_pair_talk_completed",i.FIRST_ROUTING_WILL_START="first_routing_will_start",i.SIGNED_OUT="signed_out",i.ROUTUNG_TALK_FALLBACK="routing_talk_fallback",i.ROUTUNG_DOMAIN_FALLBACK="routing_domain_fallback",i.TALKS_SORT_MODE_CHANGED="talks_sort_mode_changed",i.DATA_RECOVERING="data_recovering",i.DATA_RECOVERED="data_recovered",i.NOTIFY_UPDATE_USER="notify_update_user",i.NOTIFY_ADD_FRIEND="notify_add_friend",i.NOTIFY_ADD_ACQUAINTANCE="notify_add_acquaintance",i.NOTIFY_ADD_ACQUAINTANCES="notify_add_acquaintances",i.NOTIFY_DELETE_FRIEND="notify_delete_friend",i.NOTIFY_DELETE_ACQUAINTANCE="notify_delete_acquaintance",i.NOTIFY_DELETE_ACQUAINTANCES="notify_delete_acquaintances",i.NOTIFY_UPDATE_DOMAIN_USERS="notify_update_domain_users",i.GET_DOMAIN_USERS_RESPONSED="get_domain_users_responsed",i.GET_USERS_RESPONSED="get_users_responsed",i.GET_PROFILE_RESPONSED="get_profile_responsed",i.GET_PROFILE_ERRORED="get_profile_errored",i.UPDATE_USER_RESPONSED="update_user_responsed",i.UPDATE_USER_ERRORED="update_user_errored",i.UPDATE_PROFILE_RESPONSED="update_profile_responsed",i.UPDATE_PROFILE_ERRORED="update_profile_errored",i.NOTIFY_UPDATE_DEPARTMENT_TREE="notify_update_department_tree",i.NOTIFY_UPDATE_DEPARTMENT_USERS="notify_update_department_users",i.GET_DEPARTMENT_TREE_RESPONSED="get_department_tree_responsed",i.GET_DEPARTMENT_TREE_CANCELED="get_department_tree_canceled",i.GET_DEPARTMENT_USERS_RESPONSED="get_department_users_responsed",i.GET_DEPARTMENT_USERS_CANCELED="get_department_users_canceled",i.GET_DEPARTMENT_USER_COUNT_RESPONSED="get_department_user_count_responsed",i.GET_ME_RESPONSED="get_me_responsed",i.DEPARTMENT_USER_COUNT_CLEARED="department_user_count_cleared",i.DEPARTMENT_USER_IDS_PREPARED="department_user_ids_prepared",i.NOTIFY_ADD_DOMAIN_INVITE="notify_add_domain_invite",i.NOTIFY_ACCEPT_DOMAIN_INVITE="notify_accept_domain_invite",i.NOTIFY_DELETE_DOMAIN_INVITE="notify_delete_domain_invite",i.NOTIFY_JOIN_DOMAIN="notify_join_domain",i.NOTIFY_UPDATE_DOMAIN="notify_update_domain",i.NOTIFY_LEAVE_DOMAIN="notify_leave_domain",i.NOTIFY_ADD_DOMAIN_MEMBERS="notify_add_domain_members",i.NOTIFY_CREATE_PAIR_TALK="notify_create_pair_talk",i.CREATE_PAIR_TALK_COMPLETE="create_pair_talk_complete",i.CREATE_PAIR_TALK_FAIL="create_pair_talk_fail",i.NOTIFY_CREATE_GROUP_TALK="notify_create_group_talk",i.CREATE_GROUP_TALK_COMPLETE="create_group_talk_complete",i.CREATE_GROUP_TALK_FAIL="create_group_talk_fail",i.NOTIFY_UPDATE_GROUP_TALK="notify_update_group_talk",i.UPDATE_GROUP_TALK_COMPLETE="update_group_talk_complete",i.UPDATE_GROUP_TALK_FAIL="update_group_talk_fail",i.NOTIFY_ADD_TALKERS="notify_add_talkers",i.NOTIFY_ADD_TALKERS_INCLUDING_ME="notify_add_talkers_including_me",i.NOTIFY_DELETE_TALKER="notify_delete_talker",i.NOTIFY_DELETE_TALK="notify_delete_talk",i.NOTIFY_UPDATE_READ_STATUSES="notify_update_read_statuses",i.NOTIFY_UPDATE_TALK_STATUS="notify_update_talk_status",i.NOTIFY_UPDATE_LOCAL_TALK_STATUS="notify_update_local_talk_status",i.NOTIFY_ADD_FAVORITE_TALK="notify_add_favorite_talk",i.NOTIFY_DELETE_FAVORITE_TALK="notify_delete_favorite_talk",i.NOTIFY_DISABLE_PUSH_NOTIFICATION="notify_disable_push_notification",i.NOTIFY_ENABLE_PUSH_NOTIFICATION="notify_enable_push_notification",i.ADD_TALKERS_SUCCEEDED="add_talkers_succeeded",i.ADD_TALKERS_FAILED="add_talkers_failed",i.NOTIFY_CREATE_MESSAGE="notify_create_message",i.NOTIFY_DELETE_MESSAGE="notify_delete_message",i.NOTIFY_GET_MESSAGES="notify_get_messages",i.NOTIFY_GET_MESSAGE_READ_STATUS="notify_get_message_status",i.CREATE_MESSAGE_START="create_message_start",i.CREATE_MESSAGE_COMPLETE="create_message_complete",i.CREATE_MESSAGE_FAIL="create_message_fail",i.ADD_FAVORITE_MESSAGE_COMPLETED="add_favorite_message_completed",i.DELETE_FAVORITE_MESSAGE_COMPLETED="delete_favorite_message_completed",i.GET_FAVORITE_MESSAGES_COMPLETED="get_favorite_messages_completed",i.NOTIFY_ADD_FAVORITE_MESSAGE="notify_add_favorite_message",i.NOTIFY_DELETE_FAVORITE_MESSAGE="notify_delete_favorite_message",i.NOTIFY_SCHEDULE_MESSAGE="notify_schedule_message",i.NOTIFY_PROCESSED_SCHEDULED_MESSAGE="notify_processed_scheduled_message",i.NOTIFY_DELETE_SCHEDULED_MESSAGE="notify_delete_scheduled_message",i.GET_SCHEDULED_MESSAGES_COMPLETED="get_scheduled_messages_completed",i.GET_SCHEDULED_MESSAGES_FAILED="get_scheduled_messages_failed",i.DELETE_SCHEDULED_MESSAGES_COMPLETED="delete_scheduled_messages_completed",i.SCHEDULE_MESSAGE_STARTED="schedule_message_started",i.SCHEDULE_MESSAGE_COMPLETED="schedule_message_completed",i.SCHEDULE_MESSAGE_FAILED="schedule_message_faileed",i.REPLACE_SCHEDULE_MESSAGE_FINISHED="replace_schedule_message_finished",i.NOTIFY_UPDATE_MESSAGE_REACTIONS="notify_update_message_reactions",i.GET_MESSAGE_REACTION_SUMMARIES_COMPLETED="get_message_reaction_summaries_completed",i.GET_MESSAGE_REACTION_SUMMARIES_FAILED="get_message_reaction_summaries_failed",i.SET_MESSAGE_REACTION_COMPLETED="set_message_reaction_completed",i.SET_MESSAGE_REACTION_FAILED="set_message_reaction_failed",i.RESET_MESSAGE_REACTION_COMPLETED="reset_message_reaction_completed",i.RESET_MESSAGE_REACTION_FAILED="reset_message_reaction_failed",i.NOTIFY_CREATE_ANNOUNCEMENT="notify_create_announcement",i.NOTIFY_DELETE_ANNOUNCEMENT="notify_delete_announcement",i.NOTIFY_UPDATE_ANNOUNCEMENT_STATUS="notify_update_announcement_status",i.NOTIFY_GET_ANNOUNCEMENTS="notify_get_announcements",i.CREATE_ANNOUNCEMENT_START="create_announcement_start",i.CREATE_ANNOUNCEMENT_COMPLETE="create_announcement_complete",i.CREATE_ANNOUNCEMENT_FAIL="create_announcement_fail",i.NOTIFY_UPDATE_QUESTION="notify_update_question",i.NOTIFY_GET_QUESTIONS="get_questions_responsed",i.NOTIFY_CREATE_ATTACHMENT="notify_create_attachment",i.NOTIFY_DELETE_ATTACHMENT="notify_delete_attachment",i.GET_FILE_RESPONSED="get_file_responsed",i.GET_FILE_PREVIEW="get_file_preview",i.CREATE_FILE_PREVIEW="create_file_preview",i.GET_NOTE_STATUSES_LOADED="get_note_statuses_loaded",i.GET_NOTE_LOADED="get_note_loaded",i.GET_NOTE_FAILED_BY_NOTE_NOT_FOUND="get_note_failed_by_note_not_found",i.CREATE_NOTE_COMPLETED="create_note_completed",i.CREATE_NOTE_FAILED="create_note_failed",i.UPDATE_NOTE_LOCAL_EDIT="update_note_local_edit",i.CLEAR_NOTE_LOCAL_EDIT="clear_note_local_edit",i.UPDATE_NOTE_SETTING_COMPLETED="update_note_setting_completed",i.UPDATE_NOTE_SETTING_FAILED_BY_NOT_FOUND="update_note_setting_failed_by_not_found",i.UPDATE_NOTE_SETTING_FAILED_BY_CONFLICT="update_note_setting_failed_by_conflict",i.UPDATE_NOTE_SETTING_FAILED_BY_EDITING="update_note_setting_failed_by_editing",i.UPDATE_NOTE_COMPLETED="update_note_completed",i.DELETE_NOTE_COMPLETED="delete_note_completed",i.NOTIFY_CREATE_NOTE="notify_create_note",i.NOTIFY_UPDATE_NOTE_PARTIALLY="notify_update_note_partially",i.NOTIFY_DELETE_NOTE="notify_delete_note",i.NOTIFY_UPDATE_NOTE_FOR_SETTING="notify_update_note_for_setting",i.NOTIFY_UPDATE_NOTE_FOR_SUMMARY="notify_update_note_for_revision",i.CREATE_NOTE_BUTTON_CLICKED="create_note_button_clicked",i.NOTIFY_LOCK_NOTE="notify_lock_note",i.NOTIFY_UNLOCK_NOTE="notify_unlock_note",i.NOTIFY_SEARCH_MESSAGES="notify_search_messages",i.NOTIFY_SEARCH_ATTACHMENTS="notify_search_attachments",i.NOTIFY_SEARCH_MESSAGES_FAIL="notify_search_messages_fail",i.NOTIFY_SEARCH_ATTACHMENTS_FAIL="notify_search_attachments_fail",i.NOTIFY_SEARCH_PREPARE="notify_search_prepare",i.NOTIFY_SEARCH_CLEAR="notify_search_clear",i.NOTIFY_FILTER_BOX_TEXT_CHANGED="notify_filter_box_text_changed",i.NOTIFY_SEARCH_BOX_POPUP="notify_search_box_popup",i.NOTIFY_ADD_ACCOUNT_CONTROL_REQUEST="notify_add_account_control_request",i.NOTIFY_DELETE_ACCOUNT_CONTROL_REQUEST="notify_delete_account_control_request",i.NOTIFY_JOIN_ACCOUNT_CONTROL_GROUP="notify_join_account_control_group",i.NOTIFY_UPDATE_ACCOUNT_CONTROL_GROUP_PARTIALLY="notify_update_account_control_group_partially",i.NOTIFY_LEAVE_ACCOUNT_CONTROL_GROUP="notify_leave_account_control_group",i.PREPARE_CONFERENCE_FROM_MESSAGE="prepare_conference_from_message",i.JOIN_CONFERENCE_RESPONSED="join_conference_responsed",i.JOIN_CONFERENCE_CANCELED="join_conference_canceled",i.GET_CONFERENCE_PARTICIPANTS_RESPONSED="get_conference_participants_responsed",i.NOTIFY_OPEN_CONFERENCE="notify_open_conference",i.NOTIFY_CLOSE_CONFERENCE="notify_close_conference",i.NOTIFY_CONFERENCE_PARTICIPANT_JOIN="notify_conference_participant_join",i.NOTIFY_CONFERENCE_PARTICIPANT_LIMIT="notify_conference_participant_limit",i.NOTIFY_CONFERENCE_PARTICIPANT_REJECT="notify_conference_participant_reject",i.NOTIFY_ALL_TALK_MEMBERS_REJECTED_CONFERENCE="notify_all_talk_members_rejected_conference",i.NOTIFY_UPDATE_DOMAIN_STAMP_SETTING="notify_update_domain_stampsetting",i.NOTIFY_UPDATE_STAMPSET="notify_update_stampset",i.NOTIFY_DELETE_STAMPSET="notify_delete_stampset",i.NOTIFY_UPDATE_DOMAIN_BUILTIN_STAMP_SETTING="notify_update_domain_builtin_stampsetting",i.NOTIFY_FLOW_NOTIFICATION_BADGE="notify_flow_notification_badge",i.GET_FLOW_NOTIFICATION_BADGES_COMPLETED="get_flow_notification_badges_completed",i.GET_FLOW_NOTIFICATION_BADGES_FAILED="get_flow_notification_badges_failed",i.GET_DIRECT_APPS_COMPLETED="get_direct_apps_completed",i.GET_DIRECT_APPS_FAILED="get_direct_apps_failed",i.START_NOTIFICATION_FAILED="start_notification_failed",Mn.DEFAULT_RESOLVER=new bn,Mn.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:",_.accessMode=kn.Disabled,te.ANNOUNCEMENTS_KEY="-1",xn.__meta__={fields:{api:{inject:null}}},xn.NAME="AccountControlRequest",Pn.__meta__={fields:{api:{inject:null},dataStore:{inject:null}}},Pn.NAME="Conference",Bn.__meta__={fields:{api:{inject:null}}},Bn.NAME="Device",Gn.__meta__={fields:{api:{inject:null}}},Gn.NAME="Domain",Yn.__meta__={fields:{api:{inject:null},dataStore:{inject:null},fileService:{inject:null}}},Yn.NAME="FilePath",Wn.__meta__={fields:{api:{inject:null}}},Wn.NAME="FilePreview",Kn.__meta__={fields:{api:{inject:null},dataStore:{inject:null}}},Kn.NAME="LoadStampset",Qn.__meta__={fields:{api:{inject:null}}},Qn.NAME="ManageFriends",Xn.__meta__={fields:{api:{inject:null}}},Xn.NAME="Message",Zn.__meta__={fields:{dataStore:{inject:null},api:{inject:null}}},Zn.NAME="MessageReaction",ei.__meta__={fields:{api:{inject:null},dataStore:{inject:null},fileService:{inject:null}}},ei.NAME="Note",ni.__meta__={fields:{api:{inject:null},keywordWatcher:{inject:null},readStatusUpdater:{inject:null}}},ni.NAME="Read",ri.__meta__={fields:{api:{inject:null}}},ri.NAME="ReloadData",oi.__meta__={fields:{dataStore:{inject:null},api:{inject:null}}},oi.NAME="ScheduleMessage",si.__meta__={fields:{api:{inject:null},searchService:{inject:null}}},si.NAME="Search",ui.__meta__={fields:{dataStore:{inject:null},settings:{inject:null}}},ui.NAME="SelectTalk",_i.__meta__={fields:{api:{inject:null}}},_i.NAME="Send",hi.__meta__={fields:{accessTokenResolver:{inject:null},session:{inject:null}}},hi.NAME="SignIn",di.__meta__={fields:{api:{inject:null},settings:{inject:null},dataStore:{inject:null}}},di.NAME="SignOut",fi.__meta__={fields:{api:{inject:null},dataStore:{inject:null}}},fi.NAME="Talk",pi.__meta__={fields:{api:{inject:null},dataStore:{inject:null}}},pi.NAME="UpdateProfile",gi.__meta__={fields:{api:{inject:null}}},gi.NAME="UpdateUser",yi.__meta__={fields:{userPresences:{inject:null},api:{inject:null},settings:{inject:null}}},yi.NAME="UpdateUserPresences",yi.MAX_USERS_PER_API=100,Si.__meta__={fields:{routing:{inject:null}}},Si.NAME="Url",_e.TalkAutoScrollDelay=1,_e.TalkAutoScrollImmediately=2,_e.TalkAutoScrollNone=3,_e.NotificationPopupTime5Sec=5,_e.TalksSortModeNewMessagesFirst="new_messages_first",_e.TalksSortModeUnreadMessagesFirst="unread_messages_first",_e.TalksSortModeOldMessagesFirst="old_messages_first",_e.DomainsSortModeNameOrderAsc="name_order_asc",_e.OLD_KEY_RIGHT_PANEL_OPENED="right_panel_opened",_e.OLD_KEY_RIGHT_PANEL_WIDTH="right_panel_width",_e.OLD_KEY_APP_LEFT_PANEL_OPENED="app_left_panel_opened",_e.NAME="browser_settings",ki.MAX_SIZE=72,he.INCOMING_TIME=6e4,Ri.DEFAULT_PRESENCE_EXPIRATION=3e5,Ri.DEFAULT_UPDATE_LAST_USED_AT_INTERVAL=6e5,Fi.DEFAULT_TTL=3600,Fi.DEFAULT_MAX_PARTICIPANTS=8,$i.stagedFileInfosMaxId=0,Ae.TIMESTAMP_SHIFT=22,O.MAX_READ_USER_IDS_COUNT=16,Le.QUERY_DATE_TODAY="t",Le.QUERY_DATE_YESTERDAY="-1d",Le.QUERY_DATE_THREE_DAYS_BEFORE="-3d",Lr.HISTORY_TAB_NAME="stamp-history",it.SIXTY_MINUTES=new I(0,36e5),it.FIFTEEN_MINUTES=new I(0,9e5),co.PREFIX="note-",co.nextDummyId=new I(-1,-1),Dt.CONTINUE_MARGIN_RATE=.1,xt.CHEKBOX_UNCHECKED="- [ ] ",xt.CHEKBOX_CHECKED="- [x] ",Bt.TU_REG=new v("ッ([BCDFGHIJKLMNOPQRSTUVWYZ])","gm"),Bt.XTU_REG=new v("ッ","gm"),F.EMERGENCY=0,F.ALERT=1,F.CRITICAL=2,F.ERROR=3,F.WARNING=4,F.NOTICE=5,F.INFO=6,F.DEBUG=7,F.level=F.getLogLevel(process.env.HUBOT_LOG_LEVEL),F._d=7<=F.level&&null!=console?console.log.bind(console):F._nop,F._i=6<=F.level&&null!=console?console.info.bind(console):F._nop,F._w=4<=F.level&&null!=console?console.warn.bind(console):F._nop,F._e=3<=F.level&&null!=console?console.error.bind(console):F._nop,bo.HIRAGANA_SMALL_A=12353,bo.HIRAGANA_NN=12435,bo.KATAKANA_SMALL_A=12449,Co.NAME="accessTokenResolver",m.NAME="Proxy",Do.__meta__={fields:{settings:{inject:null},accountLoader:{inject:null},api:{inject:null}}},Ro.NAME="accountLoader",Fo.__meta__={fields:{api:{inject:null},dataStore:{inject:null},settings:{inject:null},keywordWatcher:{inject:null}}},Fo.NAME="broadcast",xo.__meta__={fields:{wsApi:{inject:null},apiCaller:{inject:null},apiNote:{inject:null},settings:{inject:null},dataStore:{inject:null},dataFactory:{inject:null},fileService:{inject:null},searchService:{inject:null},lastUsedAtUpdater:{inject:null}}},xo.NAME="api",xo.API_VERSION="1.127",xo.UPDATE_VERSION="1.127_2",xo.ACTIONS_COUNT_PER_API=20,Uo.__meta__={fields:{rpc:{inject:null}}},Uo.NAME="apiCaller",Uo.DELAY_FOR_DB_REPLICATION=500,Uo.DELAY_FOR_DB_REPLICATION_FOR_RETRY=1e3,Uo.API_TRY_COUNT=3,Po.__meta__={fields:{apiCaller:{inject:null},dataStore:{inject:null},settings:{inject:null}}},Po.NAME="apiNote",Lo.NAME="appState",Bo.__meta__={fields:{dataStore:{inject:null}}},Bo.NAME="dataFactory",Ho.NAME="dataStore",Ho.STORAGE_KEY_FOR_GENERAL="dataStore",Ho.STORAGE_KEY_FOR_TALKS="dataStoreTalks",Ho.STORAGE_KEY_FOR_TALK_STATUSES="dataStoreTalkStatuses",Ho.STORAGE_KEY_FOR_USERS="dataStoreUsers",Ho.TYPE_FRIEND=0,Ho.TYPE_ACQUAINSTANCE=1,Ho.TYPE_NONE=2,Go.__meta__={fields:{settings:{inject:null},dataStore:{inject:null}}},Go.NAME="features",Yo.NAME="fileService",jo.__meta__={fields:{settings:{inject:null}}},Wo.__meta__={fields:{settings:{inject:null},features:{inject:null},dataStore:{inject:null}}},Wo.NAME="keywordWatcher",Wo.TALK_KEY_PREFIX="talk_",Wo.ANNOUNCEMENT_KEY_PREFIX="announcement_",Ko.TEMP_HALF_SPACE="&SPACE",Ko.TEMP_FULL_SPACE="&FULL_PITCH_SPACE",Xo.__meta__={fields:{settings:{inject:null}}},Xo.NAME="lastUsedAtUpdater",Jo.__meta__={fields:{settings:{inject:null},dataStore:{inject:null}}},Jo.NAME="limitations",Zo.__meta__={fields:{broadcast:{inject:null},lastUsedAtUpdater:{inject:null}}},Zo.NAME="rpc",Zo.lastMsgId=0,$o.PING_INTERVAL_ON_CONNECTED=45e3,ra.__meta__={fields:{dataStore:{inject:null},api:{inject:null}}},ra.NAME="readStatusUpdater",oa.__meta__={fields:{settings:{inject:null},dataStore:{inject:null}}},oa.NAME="routing",la.__meta__={fields:{settings:{inject:null}}},la.NAME="searchService",la.LOAD_SIZE=20,la.DUMMY_VALUE_FOR_SET=1,ua.__meta__={fields:{settings:{inject:null},dataStore:{inject:null},api:{inject:null}}},ua.NAME="session",ca.NAME="settings",ca.KEY_ACCESS_TOKEN="access_token",ca.KEY_SELECTED_DOMAIN_ID_H="selected_domain_id_h",ca.KEY_SELECTED_DOMAIN_ID_L="selected_domain_id_l",ca.KEY_SELECTED_STAMP_TAB_ID="selected_stamp_tab_id",ca.KEY_INPUT_TEXT="input_text",ca.KEY_COPY_PROFILE_TO_ALL_DOMAINS="copy_profile_to_all_domains",ca.KEY_SELECTED_DEPARTMENT_IDS="selected_department_ids",ca.KEY_SEARCH_HISTORIES="search_histories",ca.KEY_MULTI_VIEW_MODE="multi_view_mode",ca.KEY_PASSWORD_WARNING_SKIP_UNTIL="password_warning_skip_until",ca.KEY_LAST_USED_EXPIRED_AT="last_used_expired_at",ca.KEY_IDFV="idfv",_a.__meta__={fields:{dataStore:{inject:null}}},_a.NAME="talksService",ha.__meta__={fields:{dataStore:{inject:null}}},ha.NAME="userPresences",da.__meta__={fields:{apiCaller:{inject:null}}},da.NAME="wsApi",Xt.MAX_CONTENT_BYTES=1e5,Sa.CONTENT_TYPE_XML="xml",Sa.CONTENT_TYPE_TEXT="text",Ta.NAME="Mediator",wa.__meta__={fields:{dataStore:{inject:null},api:{inject:null},hubotObject:{inject:null},messageEvent:{inject:null},sendQueue:{inject:null}}},wa.NAME="commandline",wa.DATA_SAVE_SPAN=5e3,Na.__meta__={fields:{dataStore:{inject:null}}},Na.NAME="hubotObject",Aa.__meta__={fields:{dataStore:{inject:null},hubotObject:{inject:null}}},Aa.NAME="messageEvent",ba.minWaitMinute=1,ba.maxWaitMinute=1440,ba.SEND_EVENT_NAME="send",Ma.__meta__={fields:{messageEvent:{inject:null}}},Ma.NAME="sendQueue",Ma.MIN_SEND_SPAN_MESSAGE=550,Ma.MIN_SEND_SPAN_ANNOUNCE=5050,Ma.MAX_TEXT_LENGTH=1024,Ma.MAX_FIELD_COUNT=9,Ma.MAX_FIELD_LENGTH=64,Da.INVALID_PARAMETER="INVALID_PARAMETER",Da.FORBIDDEN="FORBIDDEN",Da.NOT_FOUND="NOT_FOUND",Da.LOCKED_BY_ANOTHER_USER="LOCKED_BY_ANOTHER_USER",Da.CONFLICT="CONFLICT",Da.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",Da.CLIENT_UPGRADE_REQUIRED="CLIENT_UPGRADE_REQUIRED",Da.UNKNOWN="UNKNOWN",E._mul=null!=Math.imul?Math.imul:function(e,t){return e*(65535&t)+(e*(t>>>16)<<16|0)|0},Ba.USE_CACHE=!1,Ba.USE_ENUM_INDEX=!1,Ba.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:",Ka.count=0,es.i64tmp=new I(0,0),G.__toStr={}.toString,us.FLOAT_SINGLE_MIN=1401298464324817e-60,us.FLOAT_SINGLE_MAX=34028234663852886e22,us.FLOAT_DOUBLE_MIN=5e-324,us.FLOAT_DOUBLE_MAX=17976931348623157e292,fn.main()}("undefined"!=typeof exports?exports:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this,"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this); \ No newline at end of file +!function(y,S){function s(){return G.__string_rec(this,"")}var t={};function e(e,t){function n(){}n.prototype=e;var i,r=new n;for(i in t)r[i]=t[i];return t.toString!==Object.prototype.toString&&(r.toString=t.toString),r}function v(e,t){this.r=new RegExp(e,t.split("u").join(""))}function T(){}function I(){}function N(){}function x(){}function A(){}function b(){}function M(){}function C(e){Rn.call(this,e)}function W(){}function K(){}function V(){}function q(){}function Q(){}function X(){}function J(){}function Z(){}function $(){}function ee(){}function te(){}function ne(){}function ie(){}function re(){}function oe(e,t,n){this.email=e,this.pass=t,this.accessToken=n}function se(e){null!=e&&(this.id=e.id,this.group=new Ai(e.group),this.profilePolicy=new bi(e.profile_policy))}function ae(e){null!=e&&(this.id=e.id,null!=e.group&&(this.group=new Ai(e.group)),null!=e.profile_policy)&&(this.profilePolicy=new bi(e.profile_policy))}function le(e){null!=e&&(this.id=D.fromIntOrInt64(e.id),this.groupName=e.group_name,this.groupOwnerName=e.group_owner_name,this.groupOwnerEmail=e.group_owner_email,this.hasDomainInvite=e.has_domain_invite,this.updatedAt=e.updated_at,this.version=e.version)}function ue(e){this.unreadCount=0,null!=e&&(this.domainId=e.domain_id,this.unreadCount=null!=e.unread_count?e.unread_count:0,this.maxAnnouncementId=e.max_announcement_id,null!=e.max_announcement&&(this.maxAnnouncement=new ki(e.max_announcement)),this.maxReadAnnouncementId=e.max_read_announcement_id,null==this.maxReadAnnouncementId)&&0==this.unreadCount&&(this.maxReadAnnouncementId=this.maxAnnouncementId)}function ce(e){null!=e&&(this.domainId=e.domain_id,this.readAnnouncementIds=e.read_announcement_ids)}function _e(e){if(this.notificationInvisibleTalkSound=!0,this.notificationInvisibleTalkPopup=!1,this.notificationVisibleTalkSound=!1,this.notificationVisibleTalkPopup=!1,this.notificationIncludingMessageContent=!0,this.notificationPopupTime=5,this.talkAutoScroll=1,this.legacyNoteEnabled=!1,this.leaveTalksEnabled=!1,this.talksSortMode="new_messages_first",this.talkRightPanelOpened=!0,this.talkRightPanelWidth=0,this.keywordWatchingText="",this.keywordWatchingEmphasis=!1,this.keywordWatchingSelfMessage=!1,this.keywordWatchingActionReply=!1,this.userDataContainer=[],this.language="ja",this.conferenceIncomingSound=!0,this.domainsSortMode="name_order_asc",this.appLeftPanelOpened=!1,this.appLeftPanelWidth=0,this.scheduledMessageDefaultTimeStr="09:00",null!=e){var t;if(null!=e.notificationInvisibleTalkSound&&(this.notificationInvisibleTalkSound=e.notificationInvisibleTalkSound),null!=e.notificationInvisibleTalkPopup&&(this.notificationInvisibleTalkPopup=e.notificationInvisibleTalkPopup),null!=e.notificationVisibleTalkSound&&(this.notificationVisibleTalkSound=e.notificationVisibleTalkSound),null!=e.notificationVisibleTalkPopup&&(this.notificationVisibleTalkPopup=e.notificationVisibleTalkPopup),null!=e.notificationIncludingMessageContent&&(this.notificationIncludingMessageContent=e.notificationIncludingMessageContent),null!=e.notificationPopupTime&&(this.notificationPopupTime=e.notificationPopupTime),null!=e.notificationVisibleTalkAutoScroll&&(this.talkAutoScroll=e.notificationVisibleTalkAutoScroll?1:3),null!=e.talkAutoScroll&&(this.talkAutoScroll=e.talkAutoScroll),null!=e.legacyNoteEnabled&&(this.legacyNoteEnabled=e.legacyNoteEnabled),null!=e.leaveTalksEnabled&&(this.leaveTalksEnabled=e.leaveTalksEnabled),null!=e.talksSortMode&&(this.talksSortMode=e.talksSortMode),this.talkRightPanelOpened=null!=e.talkRightPanelOpened?e.talkRightPanelOpened:null==o.getItem("right_panel_opened"),null!=e.talkRightPanelWidth?this.talkRightPanelWidth=e.talkRightPanelWidth:(t=P.parseInt(o.getItem("right_panel_width")),this.talkRightPanelWidth=null==t?0:t),null!=e.keywordWatchingText&&(this.keywordWatchingText=e.keywordWatchingText),null!=e.keywordWatchingEmphasis&&(this.keywordWatchingEmphasis=e.keywordWatchingEmphasis),null!=e.keywordWatchingSelfMessage&&(this.keywordWatchingSelfMessage=e.keywordWatchingSelfMessage),null!=e.keywordWatchingActionReply&&(this.keywordWatchingActionReply=e.keywordWatchingActionReply),null!=e.userDataContainer)for(var n=0,i=G.__cast(e.userDataContainer,Array);n=e.length);){if(!this.matchSub(e,n)){i+=P.string(U.substr(e,n,null));break}var r=this.matchedPos(),i=(i+=P.string(U.substr(e,n,r.pos-n)))+P.string(t(this)),n=0==r.len?(i+=P.string(U.substr(e,r.pos,1)),r.pos+1):r.pos+r.len;if(!this.r.global)break}return!this.r.global&&0r.interval)r.basetime=n,r.count=1;else{if(!(0").join(">"),t?e.split('"').join(""").split("'").join("'"):e},I.startsWith=function(e,t){return e.length>=t.length&&U.substr(e,0,t.length)==t},I.isSpace=function(e,t){e=U.cca(e,t);return 8>>=4););if(null!=t)for(;n.lengthn;){var t=U.substr(e,0,n);i.push(t),e=U.substr(e,n,null)}0n&&(t(r),r=""),0=this.length)throw new H("Invalid object");if(103==this.buf.charCodeAt(this.pos))break;var t=this.unserialize();if("string"!=typeof t)throw new H("Invalid object key");var n=this.unserialize();e[t]=n}this.pos++},unserializeEnum:function(e,t){if(58!=this.buf.charCodeAt(this.pos++))throw new H("Invalid enum format");var n=this.readDigits();if(0==n)return x.createEnum(e,t);for(var i=[];0=this.scache.length)throw new H("Invalid string reference");return this.scache[t];case 97:this.buf;var r=[];for(this.cache.push(r);;){var o=this.buf.charCodeAt(this.pos);if(104==o){this.pos++;break}117==o?(this.pos++,o=this.readDigits(),r[r.length+o-1]=null):r.push(this.unserialize())}return r;case 98:var s=new B;for(this.cache.push(s),this.buf;104!=this.buf.charCodeAt(this.pos);){var a=this.unserialize(),l=this.unserialize();null!=Y[a]?s.setReserved(a,l):s.h[a]=l}return this.pos++,s;case 99:e=this.unserialize(),t=this.resolver.resolveClass(e);if(null==t)throw new H("Class not found "+e);e=x.createEmptyInstance(t);return this.cache.push(e),this.unserializeObject(e),e;case 100:return this.readFloat();case 102:return!1;case 105:return this.readDigits();case 106:t=this.unserialize(),e=this.resolver.resolveEnum(t);if(null==e)throw new H("Enum not found "+t);this.pos++;var u=this.readDigits(),c=e.__constructs__.slice()[u];if(null==c)throw new H("Unknown enum index "+t+"@"+u);t=this.unserializeEnum(e,c);return this.cache.push(t),t;case 107:return NaN;case 108:var _=new Tn;for(this.cache.push(_),this.buf;104!=this.buf.charCodeAt(this.pos);)_.add(this.unserialize());return this.pos++,_;case 109:return-1/0;case 110:return null;case 111:u={};return this.cache.push(u),this.unserializeObject(u),u;case 112:return 1/0;case 113:for(var h=new Zs,d=(this.cache.push(h),this.buf,this.buf.charCodeAt(this.pos++));58==d;){var f=this.readDigits(),m=this.unserialize();h.h[f]=m,d=this.buf.charCodeAt(this.pos++)}if(104!=d)throw new H("Invalid IntMap format");return h;case 114:e=this.readDigits();if(e<0||e>=this.cache.length)throw new H("Invalid reference");return this.cache[e];case 115:var c=this.readDigits(),p=this.buf;if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos>2)+(2<=t?t-1:0))),T=0;y>4),g[p.charCodeAt(y++)]),E=(v.b[T++]=255&(E<<4|I>>2),g[p.charCodeAt(y++)]);v.b[T++]=255&(I<<6|E)}return 2<=t&&(u=g[p.charCodeAt(y++)],e=g[p.charCodeAt(y++)],v.b[T++]=255&(u<<2|e>>4),3==t)&&(u=g[p.charCodeAt(y++)],v.b[T++]=255&(e<<4|u>>2)),this.pos+=c,this.cache.push(v),v;case 116:return!0;case 118:return 48<=this.buf.charCodeAt(this.pos)&&this.buf.charCodeAt(this.pos)<=57&&48<=this.buf.charCodeAt(this.pos+1)&&this.buf.charCodeAt(this.pos+1)<=57&&48<=this.buf.charCodeAt(this.pos+2)&&this.buf.charCodeAt(this.pos+2)<=57&&48<=this.buf.charCodeAt(this.pos+3)&&this.buf.charCodeAt(this.pos+3)<=57&&45==this.buf.charCodeAt(this.pos+4)?(w=U.strDate(U.substr(this.buf,this.pos,19)),this.pos+=19):(t=this.readFloat(),w=new Date(t)),this.cache.push(w),w;case 119:e=this.unserialize(),u=this.resolver.resolveEnum(e);if(null==u)throw new H("Enum not found "+e);c=this.unserializeEnum(u,this.unserialize());return this.cache.push(c),c;case 120:throw H.wrap(this.unserialize());case 121:t=this.readDigits();if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos>>16,l=65535&n.low,u=n.low>>>16,c=w._mul(s,l),l=w._mul(a,l),s=w._mul(s,u),a=(w._mul(a,u)+(s>>>16)|0)+(l>>>16)|0,a=(s<<=16,w.ucompare(u=c+s|0,s)<0&&(a++,a|=0),l<<=16,w.ucompare(u=u+l|0,l)<0&&(a++,a|=0),a+(w._mul(t.low,n.high)+w._mul(t.high,n.low)|0)|0),c=new E(a,u),s=_.make(0,P.parseInt(e.charAt(o))),l=c.high+s.high|0,a=c.low+s.low|0;w.ucompare(a,c.low)<0&&(l++,l|=0);t=new E(l,a)}return t},D.getHigh=function(e){return e.high},D.getLow=function(e){return e.low},D.idStr=function(e){return"_"+e.high+"_"+e.low},D.makeFromIdStr=function(e){var t=new v("^_(-?\\d*)_(-?\\d*)$","");return t.match(e)?_.make(P.parseInt(t.matched(1)),P.parseInt(t.matched(2))):null},D.fromNullableIdStr=function(e){return null!=e?D.makeFromIdStr(e):null},D.toStr=function(e){return Ys.toString(e)},D.isNeg=function(e){return e.high<0},D.add=function(e,t){var n=e.high+t.high|0,t=e.low+t.low|0;return w.ucompare(t,e.low)<0&&(n++,n|=0),new E(n,t)},D.sub=function(e,t){var n=e.high-t.high|0,i=e.low-t.low|0;return w.ucompare(e.low,t.low)<0&&(n--,n|=0),new E(n,i)},D.compare=function(e,t){var n=e.high-t.high|0;return 0==n&&(n=w.ucompare(e.low,t.low)),e.high<0?t.high<0?n:-1:0<=t.high?n:1},D.eq=function(e,t){return null!=e&&null!=t&&e.high==t.high&&e.low==t.low},D.eqOrBothNull=function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.high==t.high&&e.low==t.low},D.toFloat=function(e){var t=4294967296,n=e.high,e=e.low;return n*t+(0<=e?e:e+t)},D.idStrToInt64=function(e){e=e.split("_");return 2>31,e))},D.eqArray=function(e,t){if(e!=t){if(null==e||null==t)return!1;if(e.length!=t.length)return!1;for(var n=0,i=e.length;n>31,t);return e.filter(function(e){var t=h.map(n.userPresences.getUserPresence(e),function(e){return e.isExpired(i,r)});switch(t[1]){case 0:return t[2];case 1:return!0}})},updateIfNeedPerSub:function(n,e){for(var i=this,t=Promise.resolve([]),r=D.splitUsingMaxCount(e,100),o=0;oe.version},isStampsetEnabled:function(e){return k.has(this.allowCreateMessageStampCategories,e)},isStampCategoriesEmpty:function(){return 0==this.allowCreateMessageStampCategories.length},getCategoryIndex:function(e){return this.allowCreateMessageStampCategories.indexOf(e)},__class__:xi},(t["albero.entity.Conference"]=he).__name__=["albero","entity","Conference"],he.prototype={isIncomingExpired:function(){var e=this.createdAt,t=4294967296,n=e.high,e=e.low;return n*t+(0<=e?e:e+t)+he.INCOMING_TIME<(new Date).getTime()},isExpired:function(){var e=this.expiredAt,t=4294967296,n=e.high,e=e.low;return n*t+(0<=e?e:e+t)<(new Date).getTime()},__class__:he},function(){this.conferencesMap=new B,this.talkIdConferenceIdMap=new B}),Li=((t["albero.entity.ConferenceStore"]=Ui).__name__=["albero","entity","ConferenceStore"],Ui.prototype={addConference:function(e){var t=e.id,t="_"+t.high+"_"+t.low,n=this.conferencesMap,n=(null!=Y[t]?n.setReserved(t,e):n.h[t]=e,e.talkId),e="_"+n.high+"_"+n.low,n=this.talkIdConferenceIdMap;null!=Y[e]?n.setReserved(e,t):n.h[e]=t},removeConference:function(e){var t=e.id,t="_"+t.high+"_"+t.low,e=(this.conferencesMap.remove(t),e.talkId),e="_"+e.high+"_"+e.low,n=this.talkIdConferenceIdMap;(null!=Y[e]?n.getReserved(e):n.h[e])==t&&this.talkIdConferenceIdMap.remove(e)},getConferences:function(){return X.toValueArray(this.conferencesMap)},getConference:function(e){var e="_"+e.high+"_"+e.low,t=this.conferencesMap;return null!=Y[e]?t.getReserved(e):t.h[e]},hasConferenceInTalk:function(e){var t;return null!=e&&(e="_"+e.high+"_"+e.low,t=this.talkIdConferenceIdMap,null!=Y[e]?t.existsReserved(e):t.h.hasOwnProperty(e))},getConferenceIdInTalk:function(e){var t;return null==e||(e="_"+e.high+"_"+e.low,t=this.talkIdConferenceIdMap,null==(t=null!=Y[e]?t.getReserved(e):t.h[e]))?null:D.makeFromIdStr(t)},getConferenceTalkIds:function(){return X.toKeyArray(this.talkIdConferenceIdMap).map(D.makeFromIdStr)},hasConference:function(){return this.talkIdConferenceIdMap.keys().hasNext()},__class__:Ui},function(e){null!=e&&(this.maxFriends=e.max_friends,this.maxTalks=e.max_talks,this.maxTalkers=e.max_talkers,this.maxMessageContentLength=e.max_message_content_length,this.botExpiredVersion=e.bot_expired_version,this.presenceExpiration=null!=e.presence_expiration?e.presence_expiration:Li.DEFAULT_PRESENCE_EXPIRATION,this.allowAttachmentType=Ci.fromInt(e.allow_attachment_type),this.imageSanitizationEnabled=!!e.image_sanitization_enabled,this.updateLastUsedAtInterval=null!=e.update_last_used_at_interval?e.update_last_used_at_interval:Li.DEFAULT_PRESENCE_EXPIRATION)}),Pi=((t["albero.entity.Configuration"]=Li).__name__=["albero","entity","Configuration"],Li.prototype={__class__:Li},function(e){this.contractConference=m.None,null!=e&&(this.id=e.contract_id,this.plan=new yr(e.plan),this.quota=new Rr(e.quota),this.solutionIds=e.solution_ids,null!=e.conference)&&(this.contractConference=m.Some(new Bi(e.conference)))}),Bi=((t["albero.entity.Contract"]=Pi).__name__=["albero","entity","Contract"],Pi.prototype={getMaxMessageContentLength:function(){return h.map(h.option(this.quota),function(e){return e.maxMessageContentLength})},getMaxTalkers:function(){return h.flatMap(h.option(this.quota),function(e){return h.option(e.maxTalkers)})},getMaxTalks:function(){return h.flatMap(h.option(this.quota),function(e){return h.option(e.maxTalks)})},isConferenceEnalbed:function(){return h.isDefined(this.contractConference)},isVideoEnalbed:function(){var e=h.map(this.contractConference,function(e){return e.videoEnabled});switch(e[1]){case 0:return e[2];case 1:return!1}},getConferenceTtl:function(){return h.map(this.contractConference,function(e){return e.ttl})},getConferenceMaxParticipants:function(){return h.map(this.contractConference,function(e){return e.maxConferenceParticipants})},isGroupConfenreceEnalbed:function(){var e=h.map(this.contractConference,function(e){return e.groupConferenceEnabled});switch(e[1]){case 0:return e[2];case 1:return!1}},isTargetOfPlanAd:function(){return null!=this.quota&&this.quota.withAd},isFreePlan:function(){return null!=this.plan&&this.plan.free},__class__:Pi},function(e){this.groupConferenceEnabled=!1,this.maxConferenceParticipants=Bi.DEFAULT_MAX_PARTICIPANTS,this.ttl=Bi.DEFAULT_TTL,this.videoEnabled=!1,null!=e&&(this.videoEnabled=e.video_enabled,this.ttl=e.ttl,this.maxConferenceParticipants=e.max_conference_participants,this.groupConferenceEnabled=e.group_conference_enabled)}),Hi=((t["albero.entity.ContractConference"]=Bi).__name__=["albero","entity","ContractConference"],Bi.prototype={__class__:Bi},function(e){if(null!=e){switch(this.id=e.department_id,this.order=e.order,this.parentId=e.parent,this.nodeType=null==e.node?Gi.Normal:this.parseDepartmentNodeType(e.node),this.nodeType[1]){case 0:this.name=e.name;break;case 1:this.name=Hi.getLabelRoot();break;case 2:this.name=Hi.getLabelFree()}this.depth=0,this.childrenIds=null,this.userCount=null,this.userIds=null,this.userCountLoading=!1}}),Gi=((t["albero.entity.Department"]=Hi).__name__=["albero","entity","Department"],Hi.getLabelFree=function(){return c.localize("Department.label_free")},Hi.getLabelRoot=function(){return c.localize("Department.label_root")},Hi.prototype={addChild:function(e){null==this.childrenIds&&(this.childrenIds=[]),this.childrenIds.push(e)},isRoot:function(){return this.nodeType==Gi.Root},isFree:function(){return this.nodeType==Gi.Free},parseDepartmentNodeType:function(e){switch(e){case 1:return Gi.Root;case 2:return Gi.Free;default:return Gi.Normal}},getChildIdStrList:function(){return null==this.childrenIds?[]:this.childrenIds.map(D.idStr)},__class__:Hi},(t["albero.entity.DepartmentHelper"]=de).__name__=["albero","entity","DepartmentHelper"],de.getName=function(e){return null==e?null:e.name},t["albero.entity.DepartmentNodeType"]={__ename__:["albero","entity","DepartmentNodeType"],__constructs__:["Normal","Root","Free"]}),ji=(Gi.Normal=["Normal",0],Gi.Normal.toString=s,(Gi.Normal.__enum__=Gi).Root=["Root",1],Gi.Root.toString=s,(Gi.Root.__enum__=Gi).Free=["Free",2],Gi.Free.toString=s,(Gi.Free.__enum__=Gi).__empty_constructs__=[Gi.Normal,Gi.Root,Gi.Free],(t["albero.entity.DepartmentList"]=fe).__name__=["albero","entity","DepartmentList"],fe.prototype={getDepartments:function(e){return null==e?[]:e.map(function(e){return new Hi(e)})},__class__:fe},function(){this.departmentMap=new B,this.rootDepartmentIdMap=new B}),zi=((t["albero.entity.DepartmentStore"]=ji).__name__=["albero","entity","DepartmentStore"],ji.prototype={getDepartment:function(e){var t;return null==e?null:(e="_"+e.high+"_"+e.low,t=this.departmentMap,null!=Y[e]?t.getReserved(e):t.h[e])},setDepartment:function(e){null!=e.parentId&&null!=(t=this.getDepartment(e.parentId))&&(t.addChild(e.id),e.depth=t.depth+1);var t=e.id,t="_"+t.high+"_"+t.low,n=this.departmentMap;null!=Y[t]?n.setReserved(t,e):n.h[t]=e},clearDomainDepartment:function(e){var t=this,e="_"+e.high+"_"+e.low,n=this.rootDepartmentIdMap,n=null!=Y[e]?n.getReserved(e):n.h[e];null!=n&&(k.iter(this.getDepartmentsDescendantOrSelf(n),function(e){e=e.id;t.departmentMap.remove("_"+e.high+"_"+e.low)}),this.rootDepartmentIdMap.remove(e))},getRootDepartmentId:function(e){var e="_"+e.high+"_"+e.low,t=this.rootDepartmentIdMap;return null!=Y[e]?t.getReserved(e):t.h[e]},setRootDepartmentId:function(e,t){var e="_"+e.high+"_"+e.low,n=this.rootDepartmentIdMap;null!=Y[e]?n.setReserved(e,t):n.h[e]=t},setDepartmentUserCount:function(e){var t=this.getDepartment(e.departmentId);null!=t&&(t.userCount=e,t.userCountLoading=!1)},setUserCountLoading:function(e,t){e=this.getDepartment(e);null!=e&&(e.userCountLoading=t)},isUserCountLoadingRequired:function(e){e=this.getDepartment(e);return null==e||null==e.userCount&&!e.userCountLoading},clearDomainDepartmentUsers:function(e){e=this.getRootDepartmentId(e);return null!=e&&(k.iter(this.getDepartmentsDescendantOrSelf(e),function(e){e.userCount=null,e.userIds=null,e.userCountLoading=!1}),!0)},setDepartmentUsers:function(e,t){e=this.getDepartment(e);null!=e&&(e.userIds=t)},isInDepartment:function(e){e=this.getDepartment(e);return null!=e&&!e.isFree()},getDepartmentPath:function(e){return this.getDepartmentsAncestorOrSelf(e)},getDepartmentPathWithoutRoot:function(e){return this.getDepartmentPath(e).filter(function(e){return!e.isRoot()})},getDepartmentPathSlashSeparatedIfNeeded:function(e){return this.getDepartmentPathWithoutRoot(e).map(de.getName).filter(xn.isNotEmpty).join("/")},getDepartmentsAncestorOrSelf:function(e){var t=[];return this._getDepartmentsAncestorOrSelf(e,t),t},_getDepartmentsAncestorOrSelf:function(e,t){e=this.getDepartment(e);null!=e&&(null!=e.parentId&&this._getDepartmentsAncestorOrSelf(e.parentId,t),t.push(e))},getDepartmentsDescendantOrSelf:function(e){var t=[];return this._getDepartmentsDescendantOrSelf(e,t),t},_getDepartmentsDescendantOrSelf:function(e,t){var n=this,e=this.getDepartment(e);null!=e&&(t.push(e),null!=e.childrenIds)&&k.iter(e.childrenIds,function(e){n._getDepartmentsDescendantOrSelf(e,t)})},__class__:ji},(t["albero.entity.DepartmentUserCount"]=me).__name__=["albero","entity","DepartmentUserCount"],me.prototype={__class__:me},(t["albero.entity.DepartmentUserCountList"]=pe).__name__=["albero","entity","DepartmentUserCountList"],pe.prototype={getDepartmentUserCounts:function(e){return null==e?[]:e.map(function(e){return new me(e)})},__class__:pe},(t["albero.entity.DirectApp"]=ge).__name__=["albero","entity","DirectApp"],ge.prototype={getLinkFeature:function(){return k.find(this.features,function(e){return e.isLink()})},getMessageExtensionFeature:function(){return k.find(this.features,function(e){return e.isMessageMenuExtension()})},getLocalizedLabel:function(e,t){var n=this.locales,n=null!=Y[t]?n.getReserved(t):n.h[t];return null==n||null==(t=n.getResourceText(e))?"":t},__class__:ge},function(e){this.map=new B;for(var t=0,n=L.fields(e);t>t,e.high<<32-t|e.low>>>t):new E(e.high>>31,e.high>>t-32)},Ae.subTimestampPart=function(e,t){var e=Ae.timestamp(e),t=Ae.timestamp(t),n=e.high-t.high|0,i=e.low-t.low|0;return w.ucompare(e.low,t.low)<0&&(n--,n|=0),new E(n,i)},Ae.createForTest=function(e){var t=Ae.TIMESTAMP_SHIFT;return 0==(t&=63)?new E(e.high,e.low):t<32?new E(e.high<>>32-t,e.low<this.content.response?this.content.options[this.content.response]:"";case 17:return[this.content.title,c.localize("MessageStringMaker.achieve"),c.localize("MessageStringMaker.remand")].join(" ");case 18:return e&&null!=this.content.done?this.content.done?c.localize("MessageStringMaker.achieve"):c.localize("MessageStringMaker.remand"):"";default:return""}},messageStringForCompactMessage:function(){switch(this.type[1]){case 1:return this.content;case 5:if(null!=this.content.text&&0>>16,a=65535&t.low,l=t.low>>>16,u=w._mul(o,a),a=w._mul(s,a),o=w._mul(o,l),s=(w._mul(s,l)+(o>>>16)|0)+(a>>>16)|0,s=(o<<=16,w.ucompare(l=u+o|0,o)<0&&(s++,s|=0),a<<=16,w.ucompare(l=l+a|0,a)<0&&(s++,s|=0),s+(w._mul(e.low,t.high)+w._mul(e.high,t.low)|0)|0),u=new E(s,l),o=_.make(0,P.parseInt(this.commonStampId.charAt(r))),a=u.high+o.high|0,s=u.low+o.low|0;w.ucompare(s,u.low)<0&&(a++,a|=0);e=new E(a,s)}return e},__class__:ze},(t["albero.entity.OriginalStamp"]=Ye).__name__=["albero","entity","OriginalStamp"],Ye.__interfaces__=[je],Ye.fromJson=function(e){var t,n;return null==e.originalStamp||null==(e=e.originalStamp).stampsetIdStr||null==e.stampIdStr?null:(t=D.makeFromIdStr(e.stampsetIdStr),n=D.makeFromIdStr(e.stampIdStr),new Ye(t,n,e.illust))},Ye.fromPropsAndStampsetId=function(e,t){return new Ye(t,D.fromIntOrInt64(e.id),e.illust)},Ye.createKey=function(e){return"original__"+e.high+"_"+e.low},Ye.prototype={getImageUrl:function(){return this.illust},getKey:function(){return Ye.createKey(this.id)},toJson:function(){var e=this.stampsetId,t=this.id;return{originalStamp:{stampsetIdStr:"_"+e.high+"_"+e.low,stampIdStr:"_"+t.high+"_"+t.low,illust:this.illust}}},createMessage:function(e,t){var n=new O;return n.talkId=e,n.type=d.originalStamp,n.content={stampset_id:this.stampsetId,stamp_id:this.id},null!=t&&0!=t.length&&(n.content.text=t),n},__class__:Ye},function(){this.stampsetStore=new B,this.stampStore=new B,this.stampKeyCategoryIdMap=new B}),zr=((t["albero.entity.StampStore"]=jr).__name__=["albero","entity","StampStore"],jr.prototype={addStampsets:function(e){for(var t=0;te.version},__class__:We},function(e){this.stampsetInfos=[],this.allowCreateMessageStampsetIds=[],this.version=0,null!=e&&(this.version=e.version,this.allowCreateMessageStampsetIds=e.allow_create_message_stampset_ids.map(D.fromIntOrInt64),this.stampsetInfos=this.getStampsetInfos(e.stampset_infos))}),a=((t["albero.entity.StampsetSetting"]=Yr).__name__=["albero","entity","StampsetSetting"],Yr.prototype={getStampsetInfos:function(e){return null==e?[]:e.map(function(e){return new We(e)})},isForwardForbidden:function(e){e=e.getContentsForOriginalStamp(),e=null==e?null:e.stampsetId;return null!=e&&!this.containSendableStampset(e)},containSendableStampset:function(t){return null!=this.allowCreateMessageStampsetIds&&k.exists(this.allowCreateMessageStampsetIds,function(e){return null!=t&&null!=e&&t.high==e.high&&t.low==e.low})},containVisibleStampset:function(t){return k.exists(this.stampsetInfos,function(e){e=e.stampsetId;return null!=t&&null!=e&&t.high==e.high&&t.low==e.low})},getSendableStampsetInfos:function(){var t=this;return null==this.stampsetInfos||null==this.allowCreateMessageStampsetIds?[]:this.stampsetInfos.filter(function(e){return t.containSendableStampset(e.stampsetId)})},isNewerThan:function(e){return this.version>e.version},updateStampsetInfo:function(t){this.stampsetInfos=this.stampsetInfos.map(function(e){return t.eqStampsetId(e)&&t.isNewerThan(e)?t:e})},deleteStampsetInfo:function(t){this.stampsetInfos=this.stampsetInfos.filter(function(e){e=e.stampsetId;return!(null!=e&&null!=t&&e.high==t.high&&e.low==t.low)}),this.allowCreateMessageStampsetIds=this.allowCreateMessageStampsetIds.filter(function(e){return!(null!=e&&null!=t&&e.high==t.high&&e.low==t.low)})},getStampsetIdsDiff:function(e){for(var t=new B,n=e.stampsetInfos.concat(this.stampsetInfos),i=0;ithis.pushNotificationSetting.version&&(this.pushNotificationSetting=wr.createWithParams(e.type,e.version),!0)},isMessageAcceptable:function(e,t){var n;return!!this.isUnread(e.id)||(0==(n=(e=Ae.subTimestampPart(this.maxReadMessageId,e.id)).high-t.high|0)&&(n=w.ucompare(e.low,t.low)),(e.high<0?t.high<0?n:-1:0<=t.high?n:1)<=0)},isUnread:function(e){var t,n;return null==this.maxReadMessageId||(0==(n=(t=this.maxReadMessageId).high-e.high|0)&&(n=w.ucompare(t.low,e.low)),(t.high<0?e.high<0?n:-1:0<=e.high?n:1)<0)},isMax:function(e){var t;return null!=this.maxMessageId&&null!=(t=this.maxMessageId)&&null!=e&&t.high==e.high&&t.low==e.low},isNewMax:function(e){var t,n;return null==this.maxMessageId||(0==(n=(t=this.maxMessageId).high-e.high|0)&&(n=w.ucompare(t.low,e.low)),(t.high<0?e.high<0?n:-1:0<=e.high?n:1)<0)},isNotificationDisabled:function(){return this.pushNotificationSetting.isDisabled()},getNotificationType:function(){return this.pushNotificationSetting.type},hasUnreadMessage:function(){return null!=this.maxMessage&&this.isUnread(this.maxMessage.id)},clearReadingMessages:function(){this.readingMessages=null},__class__:Xe},(t["albero.entity.TalkStatusHelper"]=Je).__name__=["albero","entity","TalkStatusHelper"],Je.isNotificationDisabled=function(e){return null!=e&&e.isNotificationDisabled()},Je.isFavoriteTalk=function(e){return null!=e&&null!=e.orderInFavorites},Je.isUnreadMesasgeExisted=function(e){return null!=e&&e.hasUnreadMessage()},(t["albero.entity.TalkStatusUpdate"]=Ze).__name__=["albero","entity","TalkStatusUpdate"],Ze.prototype={__class__:Ze},(t["albero.entity.ThumbInfo"]=$e).__name__=["albero","entity","ThumbInfo"],$e.prototype={setAuth:function(e){this.auth=e},__class__:$e},function(e){null!=e&&(this.width=e.width,this.height=e.height)}),u=((t["albero.entity.ThumbDimension"]=$r).__name__=["albero","entity","ThumbDimension"],$r.createWithSize=function(e,t){var n=new $r;return n.width=e,n.height=t,n},$r.prototype={toObject:function(){return{width:this.width,height:this.height}},__class__:$r},(t["albero.entity.UpdateDomainStampSettingEvent"]=et).__name__=["albero","entity","UpdateDomainStampSettingEvent"],et.prototype={isValid:function(){return this.newSetting.isNewerThan(this.oldSetting)},getStampsetIdsDiff:function(){return this.oldSetting.getStampsetIdsDiff(this.newSetting)},__class__:et},t["albero.entity.UploadUseType"]={__ename__:["albero","entity","UploadUseType"],__constructs__:["PROFILE_IMAGE","MESSAGE","TALK_ICON","THUMBNAIL","NOTE_ATTACHMENT","NOTE_THUMBNAIL","SCHEDULE_MESSAGE"]}),E=(u.PROFILE_IMAGE=["PROFILE_IMAGE",0],u.PROFILE_IMAGE.toString=s,(u.PROFILE_IMAGE.__enum__=u).MESSAGE=["MESSAGE",1],u.MESSAGE.toString=s,(u.MESSAGE.__enum__=u).TALK_ICON=["TALK_ICON",2],u.TALK_ICON.toString=s,(u.TALK_ICON.__enum__=u).THUMBNAIL=["THUMBNAIL",3],u.THUMBNAIL.toString=s,(u.THUMBNAIL.__enum__=u).NOTE_ATTACHMENT=["NOTE_ATTACHMENT",4],u.NOTE_ATTACHMENT.toString=s,(u.NOTE_ATTACHMENT.__enum__=u).NOTE_THUMBNAIL=["NOTE_THUMBNAIL",5],u.NOTE_THUMBNAIL.toString=s,(u.NOTE_THUMBNAIL.__enum__=u).SCHEDULE_MESSAGE=["SCHEDULE_MESSAGE",6],u.SCHEDULE_MESSAGE.toString=s,(u.SCHEDULE_MESSAGE.__enum__=u).__empty_constructs__=[u.PROFILE_IMAGE,u.MESSAGE,u.TALK_ICON,u.THUMBNAIL,u.NOTE_ATTACHMENT,u.NOTE_THUMBNAIL,u.SCHEDULE_MESSAGE],(t["albero.entity.UploadUseTypeHelper"]=tt).__name__=["albero","entity","UploadUseTypeHelper"],tt.getUseTypeInt=function(e){switch(e[1]){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 4;case 4:return 5;case 5:return 6;case 6:return 1}},(t["albero.entity.UserIdentifier"]=nt).__name__=["albero","entity","UserIdentifier"],nt.prototype={__class__:nt},function(e,t){this.high=e,this.low=t}),eo=((t["haxe._Int64.___Int64"]=E).__name__=["haxe","_Int64","___Int64"],E.prototype={__class__:E},(t["albero.entity.UserPresence"]=it).__name__=["albero","entity","UserPresence"],it.createUserPresenceState=function(e,t){var n=t.high-e.high|0,i=t.low-e.low|0;w.ucompare(t.low,e.low)<0&&(n--,n|=0);var t=new E(n,i),e=it.SIXTY_MINUTES,n=t.high-e.high|0;return 0==n&&(n=w.ucompare(t.low,e.low)),0<(t.high<0?e.high<0?n:-1:0<=e.high?n:1)?eo.GT_60:(0==(e=t.high-(i=it.FIFTEEN_MINUTES).high|0)&&(e=w.ucompare(t.low,i.low)),0<(t.high<0?i.high<0?e:-1:0<=i.high?e:1)?eo.LT_OR_EQ_60:eo.LT_OR_EQ_15)},it.prototype={toState:function(e){var t=e,n=h.map(this.lastUsedAtOpt,function(e){return it.createUserPresenceState(e,t)});switch(n[1]){case 0:return n[2];case 1:return eo.GT_60}},isExpired:function(e,t){var n=this.lastUpdatedAt,i=e.high-n.high|0,r=e.low-n.low|0;w.ucompare(e.low,n.low)<0&&(i--,i|=0);e=new E(i,r),n=e.high-t.high|0;return 0==n&&(n=w.ucompare(e.low,t.low)),0<(e.high<0?t.high<0?n:-1:0<=t.high?n:1)},__class__:it},t["albero.entity.UserPresenceState"]={__ename__:["albero","entity","UserPresenceState"],__constructs__:["LT_OR_EQ_15","LT_OR_EQ_60","GT_60"]}),to=(eo.LT_OR_EQ_15=["LT_OR_EQ_15",0],eo.LT_OR_EQ_15.toString=s,(eo.LT_OR_EQ_15.__enum__=eo).LT_OR_EQ_60=["LT_OR_EQ_60",1],eo.LT_OR_EQ_60.toString=s,(eo.LT_OR_EQ_60.__enum__=eo).GT_60=["GT_60",2],eo.GT_60.toString=s,(eo.GT_60.__enum__=eo).__empty_constructs__=[eo.LT_OR_EQ_15,eo.LT_OR_EQ_60,eo.GT_60],(t["albero.entity.api.message.AddFavoriteMessageResult"]=rt).__name__=["albero","entity","api","message","AddFavoriteMessageResult"],rt.prototype={__class__:rt},(t["albero.entity.api.message.DeleteFavoriteMessageResult"]=ot).__name__=["albero","entity","api","message","DeleteFavoriteMessageResult"],ot.prototype={__class__:ot},(t["albero.entity.api.message.GetFavoriteMessagesResultWithParams"]=st).__name__=["albero","entity","api","message","GetFavoriteMessagesResultWithParams"],st.prototype={getNextMarker:function(){return this.nextMarker},getMessages:function(){return this.messages},__class__:st},(t["albero.entity.api.message.GetScheduledMessagesResultWithParams"]=at).__name__=["albero","entity","api","message","GetScheduledMessagesResultWithParams"],at.prototype={__class__:at},(t["albero.entity.api.message.SearchMessagesAroundDateTimeResult"]=lt).__name__=["albero","entity","api","message","SearchMessagesAroundDateTimeResult"],lt.prototype={__class__:lt},function(e){this.messageId=e.message_id,this.createdAt=e.created_at}),no=((t["albero.entity.api.message.MessageCreatedAt"]=to).__name__=["albero","entity","api","message","MessageCreatedAt"],to.prototype={__class__:to},function(e){this.noteRaw=e}),io=((t["albero.entity.api.note.CompressedNote"]=no).__name__=["albero","entity","api","note","CompressedNote"],no.prototype={uncompress:function(){var n=this,e=this.getCompressedContentRaw();return(new Z).run(e).then(function(e){var t=L.copy(n.noteRaw.note_revision),e=(t.content=e,L.copy(n.noteRaw));return e.note_revision=t,e})},getCompressedContentRaw:function(){return null==this.noteRaw||null==this.noteRaw.note_revision?null:this.noteRaw.note_revision.content},__class__:no},(t["albero.entity.api.note.CreateNoteError"]=ut).__name__=["albero","entity","api","note","CreateNoteError"],ut.prototype={__class__:ut},(t["albero.entity.api.note.CreateNoteResult"]=ct).__name__=["albero","entity","api","note","CreateNoteResult"],ct.prototype={updateWithEmitterKey:function(e){var t=new ct;return t.note=this.note,t.emitterKey=e,t},__class__:ct},(t["albero.entity.api.note.CreateNoteResultCompressed"]=_t).__name__=["albero","entity","api","note","CreateNoteResultCompressed"],_t.prototype={uncompress:function(){return this.compressedNote.uncompress().then(function(e){return new ct(e)})},__class__:_t},(t["albero.entity.api.note.DeleteNoteResult"]=ht).__name__=["albero","entity","api","note","DeleteNoteResult"],ht.prototype={__class__:ht},(t["albero.entity.api.note.GetNoteResult"]=dt).__name__=["albero","entity","api","note","GetNoteResult"],dt.prototype={getNoteId:function(){return this.note.noteId},getNoteCreateUserId:function(){return this.note.createdBy},getRevisionCreateUserId:function(){return this.note.getRevisionCreateUserId()},getNoteCreateDate:function(){return this.note.createdAt},getRevisionCreateDate:function(){return this.note.getRevisionCreateDate()},getLockedUserIdWithoutSelf:function(e){return this.note.getLockedUserIdWithoutSelf(e)},__class__:dt},(t["albero.entity.api.note.GetNoteResultCompressed"]=ft).__name__=["albero","entity","api","note","GetNoteResultCompressed"],ft.prototype={uncompress:function(){return this.compressedNote.uncompress().then(function(e){return new dt(e)})},__class__:ft},(t["albero.entity.api.note.GetNoteStatusesResult"]=mt).__name__=["albero","entity","api","note","GetNoteStatusesResult"],mt.prototype={isNotEmptyNoteStatuses:function(){return 0=Oo.HIRAGANA_SMALL_A&&s<=Oo.HIRAGANA_NN&&(n=(n+=e.substring(t,o))+String.fromCharCode(s+(Oo.KATAKANA_SMALL_A-Oo.HIRAGANA_SMALL_A)),t=1+o)}return n+=e.substring(t,e.length)},Oo.katakanaToRoman=function(e){return(new jt).convert(e)},Oo.normalize=function(e){return new Fo(null).normalize(e)},Oo.normalizeForFile=function(e){return new Fo(null).normalizeForFile(e)},Oo.eraseInvisible=function(e){var t=new RegExp("[\\u0000-\\u0020 ]","g".split("u").join(""));return e.replace(t,"")},function(e){this.beforeTask=null,this.beforeTask=e}),xo=((t["albero.js.Normalizer"]=Fo).__name__=["albero","js","Normalizer"],Fo.prototype={normalize:function(e){try{return null!=this.beforeTask&&this.beforeTask(),e.normalize("NFKC")}catch(e){return e instanceof H&&(e=e.val),F.e("invalid character:",e),c.localize("TextCanonicalizer.invalid")}},normalizeForFile:function(e){try{return null!=this.beforeTask&&this.beforeTask(),e.normalize("NFC")}catch(e){return e instanceof H&&(e=e.val),F.e("invalid character:",e),c.localize("TextCanonicalizer.invalid")}},__class__:Fo},(t["albero.js.WebSocket"]=Kt).__name__=["albero","js","WebSocket"],Kt.prototype={__class__:Kt},(t["albero.js.WebSocketFactory"]=Vt).__name__=["albero","js","WebSocketFactory"],Vt.newInstance=function(e,t){return new xo(e,t)},function(e,t){var n=this,t=(this.onopen=t.onopen,this.onmessage=t.onmessage,this.onerror=null,this.onclose=t.onclose,this.onpong=t.onpong,Wa.wsConfig),i=require("websocket").client,i=(this.ws=new i(t),this.ws.on("connectFailed",z(this,this.onError)),this.ws.on("connect",function(e){(n.connection=e).on("error",z(n,n.onError)),e.on("close",z(n,n.onConnectionClose)),e.on("message",z(n,n.onMessage)),e.on("pong",z(n,n.onPong)),n.onOpen(null)}),null);null!=Wa.proxyURL&&(i={agent:Ro.createAgent(Wa.proxyURL)}),this.ws.connect(e,null,null,null,i)}),Uo=((t["albero.js.WebSocketForNodeJs"]=xo).__name__=["albero","js","WebSocketForNodeJs"],xo.__interfaces__=[Kt],xo.prototype={onOpen:function(e){F.i("WebSocket opened."),null!=this.onopen&&this.onopen()},onMessage:function(e){var t;null!=this.onmessage&&(t=null,t=this.getBinaryDataForHubot(e),this.onmessage(t))},getBinaryDataForHubot:function(e){return ta.ofData(e.binaryData)},onPong:function(e){null!=this.onpong&&this.onpong(e)},onError:function(e){F.e("WebSocket error. event:",e),null!=this.onerror&&this.onerror()},onClose:function(e){this.removeAllEventListenersForHubot(),F.i("WebSocket closed. "+P.string(e.code)+" "+P.string(e.reason)+" "+P.string(e.wasClean)),null!=this.onclose&&this.onclose(e.code,e.reason,e.wasClean)},removeAllEventListenersForHubot:function(){null!=this.ws&&(this.ws.removeAllListeners(),this.ws=null),null!=this.connection&&(this.connection.removeAllListeners(),this.connection=null)},onConnectionClose:function(e,t){this.onClose({code:e,reason:t})},close:function(){var e;this.onopen=null,this.onmessage=null,this.onerror=null,this.onclose=null,this.onpong=null,this.isClosed()||(e=this.connection,this.onConnectionClose(1e3,"Normal connection closure"),e.close())},send:function(e){this.isClosed()||this.connection.sendBytes(new fa(e.b.bufferValue))},ping:function(e){this.connection.ping(e)},isClosed:function(){return null==this.ws||null==this.connection||!this.connection.connected},__class__:xo},(t["puremvc.interfaces.IProxy"]=qt).__name__=["puremvc","interfaces","IProxy"],qt.prototype={__class__:qt},(t["albero.proxy.AccessTokenResolverProxy"]=Qt).__name__=["albero","proxy","AccessTokenResolverProxy"],Qt.__interfaces__=[qt],Qt.prototype={__class__:Qt},function(){}),l=((t["albero.proxy.AccessTokenResolverProxyFactory"]=Uo).__name__=["albero","proxy","AccessTokenResolverProxyFactory"],Uo.newInstance=function(){return new Lo("accessTokenResolver")},function(e,t){Ln.call(this),this.proxyName=null!=e?e:l.NAME,null!=t&&this.setData(t)}),Lo=((t["puremvc.patterns.proxy.Proxy"]=l).__name__=["puremvc","patterns","proxy","Proxy"],l.__interfaces__=[qt],l.__super__=Ln,l.prototype=e(Ln.prototype,{getProxyName:function(){return this.proxyName},setData:function(e){this.data=e},getData:function(){return this.data},onRegister:function(){},onRemove:function(){},__class__:l}),function(e){l.call(this,e)}),Po=((t["albero.proxy.AccessTokenResolverProxyForDirectJsHubot"]=Lo).__name__=["albero","proxy","AccessTokenResolverProxyForDirectJsHubot"],Lo.__interfaces__=[Qt],Lo.__super__=l,Lo.prototype=e(l.prototype,{asyncGetAccessToken:function(e,t){var n=this.settings.getAccessToken();null!=n?t(n):null!=(n=null!=Wa.account?Wa.account.split(":"):null)&&2==n.length?this.api.createAccessToken(n[0],n[1],t):null!=(e=null==e?this.accountLoader.load():e)&&(null!=e.accessToken?(this.settings.setAccessToken(e.accessToken),t(e.accessToken)):this.api.createAccessToken(e.email,e.pass,t))},__class__:Lo}),(t["albero.proxy.AccountLoaderProxy"]=Xt).__name__=["albero","proxy","AccountLoaderProxy"],Xt.__interfaces__=[qt],Xt.prototype={__class__:Xt},function(){}),Bo=((t["albero.proxy.AccountLoaderProxyFactory"]=Po).__name__=["albero","proxy","AccountLoaderProxyFactory"],Po.newInstance=function(){var e=x.resolveClass("albero.debug.proxy.AccountLoaderProxyImpl");return null!=e?x.createInstance(e,["accountLoader"]):new Bo("accountLoader")},function(e){l.call(this,e)}),Ho=((t["albero.proxy.AccountLoaderProxyForHubot"]=Bo).__name__=["albero","proxy","AccountLoaderProxyForHubot"],Bo.__interfaces__=[Xt],Bo.__super__=l,Bo.prototype=e(l.prototype,{load:function(){var i=this,t=require("read");return t({prompt:"Email: "},function(e,n){t({prompt:"Password: ",silent:!0},function(e,t){i.sendNotification("SignIn",new oe(n,t))})}),null},__class__:Bo}),function(){l.call(this,"broadcast")}),Go=((t["albero.proxy.AlberoBroadcastProxy"]=Ho).__name__=["albero","proxy","AlberoBroadcastProxy"],Ho.__super__=l,Ho.prototype=e(l.prototype,{handleNotification:function(e,t){var n=this;switch(F.v("Receive request from server. name:",e," body:",t),e){case"notify_add_account_control_request":var i=new le(t);this.dataStore.setAccountControlRequest(i),this.sendNotification(e,i);break;case"notify_add_acquaintance":var i=new ve(t[1]);this.dataStore.addAcquaintance(i),this.sendNotification(e,i);break;case"notify_add_acquaintances":i=t[1].map(function(e){return new ve(e)});k.iter(i,z(j=this.dataStore,j.addAcquaintance)),this.api.sendAddAcquaintanceNotifications(i),this.sendNotification(e,i);break;case"notify_add_domain_invite":i=new Se(t);this.dataStore.setDomainInvite(i),this.sendNotification(e,i);break;case"notify_add_favorite_message":i=new Mt(t);this.dataStore.addFavoriteMessage(i),this.sendNotification(e,i);break;case"notify_add_favorite_talk":i=new Ee(t);this.updateTalkStatusByFavoriteTalkEvent(i),this.sendNotification(e,i);break;case"notify_add_friend":i=new ve(t[1]);this.dataStore.addFriend(i),this.sendNotification(e,i);break;case"notify_add_talkers":i=new Kr(t);null==this.dataStore.getTalk(i.id)&&this.sendNotification("notify_add_talkers_including_me",i),this.dataStore.setTalk(i),this.sendNotification(e,i);break;case"notify_close_conference":i=new he(t);this.dataStore.removeConference(i),this.updateTalkStatusByConferenceClosedEvent(i),this.sendNotification(e,i);break;case"notify_conference_participant_join":var i=t[3],r=t[4],o=this.dataStore;null!=o.me&&null!=(o=o.me.id)&&null!=r&&o.high==r.high&&o.low==r.low&&this.dataStore.addReactedConfereceId(i),this.sendNotification(e,t);break;case"notify_conference_participant_reject":var o=t[3];this.dataStore.addReactedConfereceId(o),this.sendNotification(e,t);break;case"notify_create_announcement":var r=new ki(t);this.dataStore.setAnnouncement(r),this.keywordWatcher.onAnnouncementCreated(r),this.sendNotification("notify_update_announcement_status",this.newAnnouncementStatus(r)),this.sendNotification(e,r);break;case"notify_create_message":var s=new O(t),i=(this.dataStore.setMessage(s),this.keywordWatcher.onMessageCreated(s),this.newTalkStatusByMessage(s));switch(null!=i&&this.sendNotification("notify_update_local_talk_status",i),s.type[1]){case 0:var a=s.content,l=null;switch(a.type){case"delete_talker":l=a.deleted_user_id;break;case"hide_pair_talk":l=a.user_id}if(null==l)return void this.sendNotification(e,s);for(var u=s.talkId,c=this.dataStore.getQuestions(u,l),_=0;_t.favoriteVersion)&&(t.favoriteVersion=e.favoriteVersion,t.orderInFavorites=e.orderInFavorites,this.dataStore.setTalkStatus(t))},updateTalkStatusByConferenceClosedEvent:function(e){var t,n=this.dataStore.getTalkStatus(e.talkId);null!=n&&null!=n.maxMessage&&(t=n.maxMessage.id,e=e.messageId,null!=t)&&null!=e&&t.high==e.high&&t.low==e.low&&(n.maxMessage.content.closed=!0,this.dataStore.setTalkStatus(n))},updateTalkStatusByTalkPushNotificationEvent:function(e){var t=this.dataStore.getTalkStatus(e.talkId);if(null==t){var n=this.dataStore.getTalk(e.talkId);if(null==n)return void F.e("talk not found on change favorite talk.");(t=new Xe).id=e.talkId,t.talkOrderingTimestamp=n.updatedAt}t.updateByTalkPushNotificationEvent(e)&&this.dataStore.setTalkStatus(t)},newTalkStatusByTalk:function(e){var t=this.dataStore.getTalkStatus(e.id);return null==t&&((t=new Xe).id=e.id),null==t.talkOrderingTimestamp&&(t.talkOrderingTimestamp=e.updatedAt),this.dataStore.setTalkStatus(t),t},newTalkStatusByMessage:function(e){var t=this.dataStore.getTalkStatus(e.talkId),n=(null==t&&((t=new Xe).id=e.talkId),this.dataStore),i=e.userId;return n=null!=n.me&&null!=(n=n.me.id)&&null!=i&&n.high==i.high&&n.low==i.low,t.updateByMessage(e,n),this.dataStore.setTalkStatus(t),t},updateTalkStatusOnMessageDelete:function(e){var t=this.dataStore.getTalkStatus(e.talkId);return null!=t&&t.updateByMessageDeletion(e)&&this.dataStore.setTalkStatus(t),t},updateTalkStatus:function(e){var t,n=this;return k.exists(e.readUserIds,function(e){var t=n.dataStore;return null!=t.me&&null!=(t=t.me.id)&&null!=e&&t.high==e.high&&t.low==e.low})?null==(t=this.dataStore.getTalkStatus(e.talkId))?(F.e("talkStatus is not found."),null):(t.updateByMessageReadStatusesUpdate(e)&&this.dataStore.setTalkStatus(t),t):null},newAnnouncementStatus:function(e){var t=this.dataStore.getAnnouncementStatus(e.domainId);return null==t&&((t=new ue).domainId=e.domainId),t.updateByAnnouncement(e),this.dataStore.setAnnouncementStatus(t),t},assureAnnouncementStatus:function(e){var t=this.dataStore.getAnnouncementStatus(e);return null==t&&(t=ue.fromDomainId(e),this.dataStore.setAnnouncementStatus(t)),t},__class__:Ho}),function(){l.call(this,"api")}),jo=((t["albero.proxy.AlberoServiceProxy"]=Go).__name__=["albero","proxy","AlberoServiceProxy"],Go.__super__=l,Go.prototype=e(l.prototype,{getOSString:function(){return"bot"},createAccessToken:function(e,t,n){function i(e){F.v("access token:",e),o.settings.setAccessToken(e),n(e)}function r(e){o.sendNotification("Url",Ni.FORWARD(g.error))}var o=this,s=e.split("$"),a=this.settings.getOs(),l=this.settings.getIDFV();(-1==e.indexOf("@")&&2==s.length?this.wsApi.createAccessTokenById(s[1],s[0],t,l,a):this.wsApi.createAccessToken(e,t,l,a)).then(i,r)},authorizeDevice:function(e,t){var n=this,i=this.settings.getIDFV();this.wsApi.authorizeDevice(e,i).then(function(e){t()},function(e){n.apiCaller.handleServerErrorDefault(e)})},createSession:function(e,n){var i=this,t=this.getOSString();this.apiCaller.onSessionClear(),this.wsApi.createSession(e,"1.128",t).then(function(e){var t=W.nowAsInt64();e.passwordExpiration.isExpired(t)?i.sendNotification("password_expiration_overed"):(e.passwordExpiration.needWarning(t,i.settings.getPasswordWarningSkipUntil())&&(i.settings.setPasswordWarningSkipUntil(W.oneDayAfterAsInt64()),i.sendNotification("password_expiration_warned")),i.apiCaller.onSessionCreated(),n(e),i.apiCaller.fireCallbacksWaitingForSession())},function(e){if(null!=e){if(401==e.code&&"expired password"==e.message)return void i.sendNotification("password_expiration_overed");if(401==e.code&&"deleted account"==e.message)return void i.sendNotification("SignOut");if(401==e.code&&"unauthorized device"==e.message)return void i.sendNotification("Device",Yn.AUTHORIZE);(400==e.code&&"older version specified"==e.message||401==e.code&&"bad token"==e.message||401==e.code&&"invalid token"==e.message)&&i.settings.clearAccessToken(),i.apiCaller.handleServerErrorDefault(e)}i.sendNotification("Url",Ni.FORWARD(g.error))})},startNotification:function(){var t=this;this.wsApi.startNotification().then(function(e){e||(t.dataStore.clear(!0),t.sendNotification("start_notification_failed"))},function(e){t.apiCaller.handleServerErrorDefault(e)})},resetNotification:function(e){var t=this;this.wsApi.resetNotification().then(e,function(e){t.apiCaller.handleServerErrorDefault(e)})},sendDomainNotifications:function(e){for(var t=0;t=n.length||(e=n[i],r=t.id,o=this.dataFactory.newDummyMessage(r,e.type,e.content),this.sendNotification("create_message_start",o),this.wsApi.createMessage(r,e.type,e.content).then(function(e){s.dataStore.setMessage(e),s.sendNotification("create_message_complete",[e,o.id]),s.forwardMessages(t,n,i+1),s.dataStore.removeMessage(o.id)},function(e){var t;s.sendNotification("create_message_fail",[e,o]),null!=e&&409==e.code?(t=ls.toLocalError(R.SendingMessageConflicted,e),s.sendNotification("error_occurred",t)):s.sendNotification("error_occurred",e)}))},deleteMessage:function(e,t){var n=this;this.wsApi.deleteMessage(e,t).then(function(e){},function(e){var t;null!=e&&((403!=e.code||"frozen domain"!=e.message)&&409==e.code&&"conflict"==e.message?(t=ls.toLocalError(R.DeletingMessageConflicted,e),n.sendNotification("error_occurred",t)):n.sendNotification("error_occurred",e))})},updateReadStatuses:function(n,i){var r=this;this.wsApi.updateReadStatuses(n,i).then(function(e){var t=r.dataStore.getTalkStatus(n);null!=t&&(t.updateByReadingMessagesFinished(i),r.sendNotification("notify_update_local_talk_status",t))},function(e){var t=r.dataStore.getTalkStatus(n);null!=t&&(t.updateByReadingMessagesCanceled(i),r.dataStore.setTalkStatus(t),r.sendNotification("notify_update_local_talk_status",t)),r.apiCaller.handleServerErrorDefault(e)})},searchMessagesAroundDateTime:function(e,t){return this.wsApi.searchMessagesAroundDateTime(e,t)},uploadV2:function(e,t,n,i){var r=this,o=At.toFileInfoDynamic(n),s=this.dataFactory.newDummyMessage(t,d.file,o);this.sendNotification("create_message_start",s),this.prepareMessageFileAsync(n,e,!1).then(function(e){r._createMessage(t,d.file,e,s,i).catch(function(e){})},function(e){r.sendNotification("create_message_fail",[e,s],i)})},uploadForHubot:function(e,t,n){var i,r=this.dataStore.getTalk(e),t={file:t,thumb:null};null==r?(i=At.toFileInfoDynamic(t),e=this.dataFactory.newDummyMessage(e,d.file,i),F.w("WARNING method: upload",i={code:400,message:"invalid talk_id (deleted talk)"}),this.sendNotification("create_message_fail",[i,e],n)):this.uploadV2(r.domainId,r.id,t,n)},uploadMultiV2:function(e,t,n,i,r){var o=this,s=At.toFileInfoDynamicArray(i),a=this.dataFactory.newDummyMessage(t,d.textMultipleFile,{text:n,files:s});this.sendNotification("create_message_start",a),this.prepareMessageFilesAsync(e,n,i,!1).then(function(e){o._createMessage(t,d.textMultipleFile,e,a,r).catch(function(e){})},function(e){o.sendNotification("create_message_fail",[e,a],r)})},uploadMultiForHubot:function(e,t,n,i){var r,o=this.dataStore.getTalk(e),n=n.map(function(e){return{file:e,thumb:null}});null==o?(r=At.toFileInfoDynamicArray(n),e=this.dataFactory.newDummyMessage(e,d.textMultipleFile,{text:t,files:r}),F.w("WARNING method: uploadMulti",r={code:400,message:"invalid talk_id (deleted talk)"}),this.sendNotification("create_message_fail",[r,e],i)):this.uploadMultiV2(o.domainId,o.id,t,n,i)},validateFileName:function(t){var n=I.replace(t.name,"$","__");if(n==t.name)return t;try{return t.name=n,t}catch(e){var i=t.slice(0,t.size,t.type);return new File([i],n,{type:t.type})}},prepareMessageFilesAsync:function(n,t,i,r){for(var o=this,e=Promise.resolve([]),s=0;se.version?n:(n=this.accountControlRequests,null!=Y[t]?n.setReserved(t,e):n.h[t]=e,this.storage.setDirtyFlag(),e)},removeAccountControlRequest:function(e){e="_"+e.high+"_"+e.low;this.accountControlRequests.remove(e),this.storage.setDirtyFlag()},removeAccountControlRequests:function(){this.accountControlRequests=new B,this.storage.setDirtyFlag()},getAccountControlGroup:function(){return this.accountControlGroup},setAccountControlGroup:function(e){return this.accountControlGroup=e,this.storage.setDirtyFlag(),this.accountControlGroup},updateAccountControlGroup:function(e){var t,n,i;null!=this.accountControlGroup&&(n=this.accountControlGroup.id,t=e.id,null!=n)&&null!=t&&n.high==t.high&&n.low==t.low&&(null!=(n=e.group)&&this.accountControlGroup.group.versionr[s])return!0;if(o[s]p.MAX_CONTENT_BYTES?{ok:!1,errorType:"limit",message:"Content length must be less than or equal to "+p.MAX_CONTENT_BYTES+" bytes, but the actual length is "+e.length+" bytes."}:Ka.validateXml(e)},p.hasPathField=function(e){return k.foreach(e,function(e){return!p.isStringNullOrEmpty(e.path)})},p.validateUpdateNoteInput=function(e,t){if(0==Object.keys(e).length)return Xs.Left("'update' function must not be called with no update fields.");if(null!=e.note_title){if("string"!=typeof e.note_title)return Xs.Left("'note_title' must be specified as String type.");if(0==e.note_title.length)return Xs.Left("'note_title' must not be empty.")}if(null!=e.note_content_type)return Xs.Left("'note_content_type' must not be specified. It cannot be changed.");if(null!=e.note_content){if("string"!=typeof e.note_content)return Xs.Left("'note_content' must be specified as String type.");if(0==e.note_content.length)return Xs.Left("'note_content' must not be empty.");if(t==po.getValue(mo.RICH_TEXT)){t=p.validateXmlContent(e);if(0===t[1])return Xs.Left(t[2])}}t=null;if(null!=e.note_attachments){if(!(e.note_attachments instanceof Array&&null==e.note_attachments.__enum__&&p.all(e.note_attachments,p.isValidAsAttachment)))return Xs.Left("'note_attachments' is an invalid value: "+JSON.stringify(e.note_attachments));t=p.toUpdateNoteAttachmentArray(e.note_attachments)}return Xs.Right({title:e.note_title,content:e.note_content,attachments:t})},p.isValidAsAttachment=function(e){return p.isStringNullOrEmpty(e.url)?!p.isStringNullOrEmpty(e.path):!p.isStringNullOrEmpty(e.id)&&!p.isStringNullOrEmpty(e.name)&&null!=e.content_size&&!p.isStringNullOrEmpty(e.content_type)},p.toUpdateNoteAttachmentArray=function(e){var n=Bs.parseInt64;return k.array(k.map(e,function(e){var t;return p.isStringNullOrEmpty(e.url)?vs.LocalFileAttachment(e):((t=null==e?null:JSON.parse(JSON.stringify(e))).id=n(e.id),vs.RemoteFileAttachment(t))}))},p.validateUpdateNoteOptions=function(e){var t={notify_talk_members_of_update:!0};if(null!=e&&null!=e.notify_talk_members_of_update){if("boolean"!=typeof e.notify_talk_members_of_update)return Xs.Left("'notify_talk_members_of_update' must be of Bool type.");t.notify_talk_members_of_update=e.notify_talk_members_of_update}return Xs.Right(t)},p.all=function(e,t){return k.foreach(e,t)},p.isStringNullOrEmpty=function(e){return null==e||0==e.length},p.prototype={__class__:p},(t["albero_cli.INotes"]=$t).__name__=["albero_cli","INotes"],$t.prototype={__class__:$t},function(e,t){this.delegate=e;e=null!=t?t:{max:24,interval:12e4};this.ratelimit=new An(e.max,e.interval)}),Is=((t["albero_cli.LimitedNotes"]=Ts).__name__=["albero_cli","LimitedNotes"],Ts.__interfaces__=[$t],Ts.prototype={limit:function(e){return this.ratelimit.apply(e)},get:function(e){var t=this;return this.limit(function(){return t.delegate.get(e)})},update:function(e,t,n){var i=this;return this.limit(function(){return i.delegate.update(e,t,n)})},delete:function(e){var t=this;return this.limit(function(){return t.delegate.delete(e)})},validateXml:function(e){return this.delegate.validateXml(e)},on:function(e,t){return this.delegate.on(e,t)},off:function(e,t){return this.delegate.off(e,t)},__class__:Ts},function(e,t,n){this.utils=e,this.api=t,this.fileService=n}),Es=((t["albero_cli.Notes"]=Is).__name__=["albero_cli","Notes"],Is.__interfaces__=[$t],Is.prototype={toNoteId:function(e){return new go(this.utils.parseInt64(e.id))},handleResponse:function(n,i,r){return function(e,t){null!=e?(e=Ls.of(e),i(e)):(e=r(t),n(e))}},get:function(e){var i=this,r=this.toNoteId(e);return new Promise(function(e,t){var n=i.api,e=i.handleResponse(e,t,js.of);n.getNote(r,e)})},update:function(e,t,n){var i=p.validateUpdateNoteInput(t,e.noteRevision.contentType);switch(i[1]){case 0:return Promise.reject(Ls.createInvalidParameterError(i[2]));case 1:var r=i[2],o=p.validateUpdateNoteOptions(n);switch(o[1]){case 0:return Promise.reject(Ls.createInvalidParameterError(o[2]));case 1:return this.updateNote(e,r,o[2])}}},delete:function(e){var i=this,r=this.toNoteId(e);return new Promise(function(e,t){var n=i.api,e=i.handleResponse(e,t,Gs.of);n.deleteNote(r,e)})},updateNote:function(e,t,n){var r=this,i=e.talkId_i64,o=new go(e.id_i64),s=this.mergeNoteObject(e,t),a=this.createNoteLocalEdit(i,o,s,null),l=n.notify_talk_members_of_update;return new Promise(function(e,t){var n=r.api,i=s.currentRevision,e=r.handleResponse(e,t,zs.of);n.updateNoteV2(o,i,a,l,e)})},mergeNoteObject:function(e,t){e={title:e.noteRevision.title,contentType:e.noteRevision.contentType,content:e.noteRevision.contentText,attachments:p.toUpdateNoteAttachmentArray(e.get_attachments()),currentRevision:e.noteRevision.revision};return null!=t.title&&(e.title=t.title),null!=t.content&&(e.content=t.content),null!=t.attachments&&(e.attachments=t.attachments),e},createNoteLocalEdit:function(e,t,n,i){var r=this.createNoteAttachmentFileInfoList(n.attachments),o=n.contentType==po.getValue(mo.RICH_TEXT);return new yo(e,t,n.title,n.content,r,i,null,o)},createNoteAttachmentFileInfoList:function(e){for(var t=[],n=0;n>>31,t.low<<1);if(a=new E(a.high<<1|a.low>>>31,a.low<<1),0<=l)break}for(;;){var u=new E(0,0);if(a.high==u.high&&a.low==u.low)break;var c,u=w.ucompare(n.high,t.high);0<=(0!=u?u:w.ucompare(n.low,t.low))&&(s=new E(s.high|a.high,s.low|a.low),u=n.high-t.high|0,c=n.low-t.low|0,w.ucompare(n.low,t.low)<0&&(u--,u|=0),n=new E(u,c)),a=new E(a.high>>>1,a.high<<31|a.low>>>1);t=new E(t.high>>>1,t.high<<31|t.low>>>1)}return i&&(o=~s.high,0==(r=-s.low)&&(o++,o|=0),s=new E(o,r)),e.high<0&&(i=~n.high,0==(o=-n.low)&&(i++,i|=0),n=new E(i,o)),{quotient:s,modulus:n}},function(){}),Ks=((t["haxe.Int64Helper"]=Ws).__name__=["haxe","Int64Helper"],Ws.parseString=function(e){for(var t=new E(0,10),n=new E(0,0),i=new E(0,1),r=!1,o=I.trim(e),s=("-"==o.charAt(0)&&(r=!0,o=o.substring(1,o.length)),o.length),a=0,l=s;a>31,u);if(r){var c=65535&i.low,_=i.low>>>16,h=65535&u.low,d=u.low>>>16,f=w._mul(c,h),h=w._mul(_,h),c=w._mul(c,d),_=(w._mul(_,d)+(c>>>16)|0)+(h>>>16)|0,f=(c<<=16,w.ucompare(d=f+c|0,c)<0&&(_++,_|=0),h<<=16,w.ucompare(d=d+h|0,h)<0&&(_++,_|=0),_=_+(w._mul(i.low,u.high)+w._mul(i.high,u.low)|0)|0,new E(_,d)),c=n.high-f.high|0,h=n.low-f.low|0;if(w.ucompare(n.low,f.low)<0&&(c--,c|=0),!((n=new E(c,h)).high<0))throw new H("NumberFormatError: Underflow")}else{var _=65535&i.low,d=i.low>>>16,f=65535&u.low,c=u.low>>>16,h=w._mul(_,f),m=w._mul(d,f),p=w._mul(_,c),g=(w._mul(d,c)+(p>>>16)|0)+(m>>>16)|0,p=(p<<=16,w.ucompare(y=h+p|0,p)<0&&(g++,g|=0),m<<=16,w.ucompare(y=y+m|0,m)<0&&(g++,g|=0),g=g+(w._mul(i.low,u.high)+w._mul(i.high,u.low)|0)|0,new E(g,y)),m=n.high+p.high|0,u=n.low+p.low|0;if(w.ucompare(u,n.low)<0&&(m++,m|=0),(n=new E(m,u)).high<0)throw new H("NumberFormatError: Overflow")}var g=65535&i.low,y=i.low>>>16,p=65535&t.low,m=t.low>>>16,u=w._mul(g,p),S=w._mul(y,p),v=w._mul(g,m),T=(w._mul(y,m)+(v>>>16)|0)+(S>>>16)|0,T=(v<<=16,w.ucompare(u=u+v|0,v)<0&&(T++,T|=0),S<<=16,w.ucompare(u=u+S|0,S)<0&&(T++,T|=0),T+(w._mul(i.low,t.high)+w._mul(i.high,t.low)|0)|0),i=new E(T,u)}return n},function(){this.buf=new bn,this.cache=[],this.useCache=Ks.USE_CACHE,this.useEnumIndex=Ks.USE_ENUM_INDEX,this.shash=new B,this.scount=0}),Vs=((t["haxe.Serializer"]=Ks).__name__=["haxe","Serializer"],Ks.run=function(e){var t=new Ks;return t.serialize(e),t.toString()},Ks.prototype={toString:function(){return this.buf.b},serializeString:function(e){var t,n=this.shash,n=null!=Y[e]?n.getReserved(e):n.h[e];null!=n?(this.buf.b+="R",this.buf.b+=null==n?"null":""+n):(n=this.shash,t=this.scount++,null!=Y[e]?n.setReserved(e,t):n.h[e]=t,this.buf.b+="y",e=encodeURIComponent(e),this.buf.b+=P.string(e.length),this.buf.b+=":",this.buf.b+=null==e?"null":""+e)},serializeRef:function(e){for(var t=typeof e,n=0,i=this.cache.length;n>2]),this.buf.b+=String.fromCharCode(N[63&(C<<4|k>>4)]),this.buf.b+=String.fromCharCode(N[63&(k<<2|D>>6)]),this.buf.b+=String.fromCharCode(N[63&D])}E==w?(l=I.b[E++],T=I.b[E++],this.buf.b+=String.fromCharCode(N[l>>2]),this.buf.b+=String.fromCharCode(N[63&(l<<4|T>>4)]),this.buf.b+=String.fromCharCode(N[T<<2&63])):E==1+w&&(l=I.b[E++],this.buf.b+=String.fromCharCode(N[l>>2]),this.buf.b+=String.fromCharCode(N[l<<4&63]));break;default:this.useCache&&this.cache.pop(),null!=e.hxSerialize?(this.buf.b+="C",this.serializeString(x.getClassName(i)),this.useCache&&this.cache.push(e),e.hxSerialize(this),this.buf.b+="g"):(this.buf.b+="c",this.serializeString(x.getClassName(i)),this.useCache&&this.cache.push(e),this.serializeFields(e))}break;case 7:n=t[2];if(this.useCache){if(this.serializeRef(e))return;this.cache.pop()}this.buf.b+=P.string(this.useEnumIndex?"j":"w"),this.serializeString(x.getEnumName(n)),this.useEnumIndex?(this.buf.b+=":",this.buf.b+=P.string(e[1])):this.serializeString(e[0]),this.buf.b+=":";for(var n=e.length,R=(this.buf.b+=P.string(n-2),2),O=n;R=(null==(r=e.right)?0:r._height)?new Qs(e.left,e.key,e.value,new Qs(e.right,t,n,i)):new Qs(new Qs(e.left,e.key,e.value,e.right.left),e.right.key,e.right.value,new Qs(e.right.right,t,n,i)):o+2(null==(r=i.left)?0:r._height)?new Qs(new Qs(e,t,n,i.left),i.key,i.value,i.right):new Qs(new Qs(e,t,n,i.left.left),i.left.key,i.left.value,new Qs(i.left.right,i.key,i.value,i.right)):new Qs(e,t,n,i,(s(null==t?0:t._height)?null==(n=this.left)?0:n._height:null==(i=this.right)?0:i._height,this._height=e+1):this._height=r}),Xs=((t["haxe.ds.TreeNode"]=Qs).__name__=["haxe","ds","TreeNode"],Qs.prototype={__class__:Qs},t["haxe.ds.Either"]={__ename__:["haxe","ds","Either"],__constructs__:["Left","Right"]}),Js=(Xs.Left=function(e){e=["Left",0,e];return e.__enum__=Xs,e.toString=s,e},Xs.Right=function(e){e=["Right",1,e];return e.__enum__=Xs,e.toString=s,e},Xs.__empty_constructs__=[],function(){qs.call(this)}),Zs=((t["haxe.ds.EnumValueMap"]=Js).__name__=["haxe","ds","EnumValueMap"],Js.__interfaces__=[un],Js.__super__=qs,Js.prototype=e(qs.prototype,{compare:function(e,t){var n=e[1]-t[1];return 0!=n?n:(n=e.slice(2),e=t.slice(2),0==n.length&&0==e.length?0:this.compareArgs(n,e))},compareArgs:function(e,t){var n=e.length-t.length;if(0!=n)return n;for(var i=0,r=e.length;i>6):(i<=65535?t.push(224|i>>12):(t.push(240|i>>18),t.push(128|i>>12&63)),t.push(128|i>>6&63)),t.push(128|63&i))}return new ta(new Uint8Array(t).buffer)},ta.ofData=function(e){var t=e.hxBytes;return null!=t?t:new ta(e)},ta.fastGet=function(e,t){return e.bytes[t]},ta.prototype={getString:function(e,t){if(e<0||t<0||e+t>this.length)throw new H(sa.OutsideBounds);for(var n="",i=this.b,r=String.fromCharCode,o=e,s=e+t;o>10)))+r(1023&a|56320)}return n},toString:function(){return this.getString(0,this.length)},__class__:ta},function(){this.b=[]}),ia=((t["haxe.io.BytesBuffer"]=na).__name__=["haxe","io","BytesBuffer"],na.prototype={getBytes:function(){var e=new ta(new Uint8Array(this.b).buffer);return this.b=null,e},__class__:na},(t["haxe.io.Input"]=cn).__name__=["haxe","io","Input"],cn.prototype={readByte:function(){throw new H("Not implemented")},readBytes:function(e,t,n){var i=n,r=e.b;if(t<0||n<0||e.lengthe.length)throw new H(sa.OutsideBounds);this.b=e.b,this.pos=t,this.len=n,this.totlen=n}),ra=((t["haxe.io.BytesInput"]=ia).__name__=["haxe","io","BytesInput"],ia.__super__=cn,ia.prototype=e(cn.prototype,{readByte:function(){if(0==this.len)throw new H(new oa);return this.len--,this.b[this.pos++]},readBytes:function(e,t,n){if(t<0||n<0||t+n>e.length)throw new H(sa.OutsideBounds);if(0==this.len&&0e.length)throw new H(sa.OutsideBounds);for(var i=e.b,r=n;0>8),this.writeByte(255&e)):(this.writeByte(255&e),this.writeByte(e>>8))},writeInt32:function(e){this.bigEndian?(this.writeByte(e>>>24),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)):(this.writeByte(255&e),this.writeByte(e>>8&255),this.writeByte(e>>16&255),this.writeByte(e>>>24))},__class__:_n},function(){this.b=new na}),oa=((t["haxe.io.BytesOutput"]=ra).__name__=["haxe","io","BytesOutput"],ra.__super__=_n,ra.prototype=e(_n.prototype,{writeByte:function(e){this.b.b.push(e)},writeBytes:function(e,t,n){var i=this.b;if(t<0||n<0||t+n>e.length)throw new H(sa.OutsideBounds);i.b;for(var r=e.b,o=t,s=t+n;o>>23&255,n=8388607&e;return 0==n&&0==t?0:(1-(e>>>31<<1))*(1+Math.pow(2,-23)*n)*Math.pow(2,t-127)},aa.floatToI32=function(e){var t,n;return 0==e?0:(n=e<0?-e:e,(t=Math.floor(Math.log(n)/.6931471805599453))<-127?t=-127:128>20&2047)-1023,e=4294967296*(1048575&t)+2147483648*(e>>>31)+(2147483647&e);return 0==e&&-1023==n?0:(1-(t>>>31<<1))*(1+Math.pow(2,-52)*e)*Math.pow(2,n)},aa.doubleToI64=function(e){var t,n,i,r=aa.i64tmp;return 0==e?(r.low=0,r.high=0):isFinite(e)?(n=e<0?-e:e,t=Math.floor(Math.log(n)/.6931471805599453),i=(n=Math.round(4503599627370496*(n/Math.pow(2,t)-1)))/4294967296|0,r.low=0|n,r.high=(e<0?-2147483648:0)|t+1023<<20|i):0";var n=typeof e;switch(n="function"==n&&(e.__name__||e.__ename__)?"object":n){case"function":return"";case"object":if(e instanceof Array){if(e.__enum__){if(2==e.length)return e[0];for(var i=e[0]+"(",r=(t+="\t",2),o=e.length;r{for(var n in t)wa(e,n,{get:t[n],enumerable:!0})})(y={},{codePointCount:()=>Ca,extractMentionParts:()=>xa,findMentionSuggestionHint:()=>La,hasMentionPartForMeOrAll:()=>Da,invalidateManualMentionMarkup:()=>Oa,parseMessageMention:()=>Fa,removeMentionMarkup:()=>Ra}),Ma=e=>Array.from(e),Ca=e=>Ma(e).length,ka=/{@:(ALL|\d+),(\d+)}@/g,Da=e=>xa(e).some(({userIdNumStr:e})=>null===e||"ALL"===e),Ra=t=>Fa(t).map(e=>"mention"===e.type?e.mentionText:"normal"===e.type?t.substring(e.start,e.end):"").join(""),Oa=e=>e.replace(ka,e=>e.substring(0,e.length-1)+" "),Fa=e=>{let n=0;var t=xa(e).flatMap(e=>{var t=[];return n!==e.start&&t.push({type:"normal",start:n,end:e.start}),t.push(e),n=e.end,t});return e.length!==n&&t.push({type:"normal",start:n,end:e.length}),t},xa=o=>{let s=0;return Array.from(o.matchAll(ka)).flatMap(e=>{var t,n,i,r=null!=(r=e.index)?r:0;return r{e=e.match(Ua);return null===e?null:{prev:e[1],atMarks:e[2],keyword:e[3]}},y=y,((t,n,i,r)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let e of Aa(n))ba.call(t,e)||e===i||wa(t,e,{get:()=>n[e],enumerable:!(r=Na(n,e))||r.enumerable});return t})(wa({},"__esModule",{value:!0}),y)),Jn.exports),Ba=((String.prototype.__class__=t.String=String).__name__=["String"],(t.Array=Array).__name__=["Array"],(Date.prototype.__class__=t.Date=Date).__name__=["Date"],t.Int={__name__:["Int"]}),Ha=t.Dynamic={__name__:["Dynamic"]},Ga=t.Float=Number,ja=(Ga.__name__=["Float"],t.Bool=Boolean),za=(ja.__ename__=["Bool"],t.Class={__name__:["Class"]}),Ya={},Wa={},y={},Ka=(y.exports=(()=>{var e=require("fs");let r=require("libxmljs");var t=require("path");let n=e=>e.namespace()?.href()??"",s=e=>`{${n(e)}}`+e.name();t=t.resolve(__dirname,"./note-richtext.v1.xsd"),e=r.parseXml(e.readFileSync(t,{encoding:"utf-8"}),{baseUrl:t});let i=new Map;function o(e){var t=Number(e.root().getAttribute("version")?.value()),n=i.get(t);return n?e.validate(n)?{ok:!0}:{ok:!1,errorType:"xsd",message:e.validationErrors.map(e=>e.message.trim()).join(" ")}:{ok:!1,errorType:"version",message:`The note version ${t} is not supported by this package. Please use one of the following values: `+Array.from(i.keys()).join(",")}}i.set(1,e);let a=new Map;function l(e){try{return function n(e,i,r){for(var o of e.childNodes())if("element"===o.type()){if(!i.includes(o.name()))throw new Error(`Element '${s(o)}': This element is not allowed at '${o.path()}'.`);{let t=r.get(o.name())??[],e=[...i].filter(e=>t.includes(e))??[];n(o,e,r)}}}(e.root(),a.get(e.root().name()),a),{ok:!0}}catch(e){return{ok:!1,errorType:"descendant",message:e.message}}}a.set("note",["textsize","color","b","link","u","strike","checkbox"]),a.set("textsize",["color","b","link","u","strike"]),a.set("color",["textsize","b","link","u","strike"]),a.set("b",["textsize","color","link","u","strike"]),a.set("link",["textsize","b","strike"]),a.set("u",["textsize","color","b","link","strike"]),a.set("strike",["textsize","color","b","link","u"]),a.set("checkbox",["color","b","link","u","strike"]);let u=e=>"element"===e.type(),c=e=>"element"===e.type()&&"checkbox"===e.name(),_=e=>"element"===e.type()&&"link"===e.name(),h=e=>"element"===e.type()&&["textsize","color","b","link","u","strike"].includes(e.name());function d(e,t,n,i){for(var r of e.childNodes())t(r)&&(n(r)&&i.push(r),d(r,t,n,i))}function f(e){var t=[];d(e.root(),u,_,t);try{for(var n of t){var i=n.text();if(null==i||""===i)throw new Error(`Element '${s(n)}': This element must not be empty. (element path: ${n.path()})`);if(/\r|\n/.test(i))throw new Error(`Element '${s(n)}': This element must not contain a new line. (element path: ${n.path()})`);var r=n.attrs().filter(e=>"url"===e.name())[0].value();if(!/^[\x20-\x7E]+$/.test(r))throw new Error(`Element '${s(n)}': The attribute 'url' must be URL-encoded or must be converted by Punycode if it's an IDN. (element path: ${n.path()})`)}return{ok:!0}}catch(e){return{ok:!1,errorType:"link",message:e.message}}}function m(e){var t=[];d(e.root(),u,c,t);try{for(var n of t)if(/\r|\n/.test(n.text()))throw new Error(`Element '${s(n)}': This element must not contain a new line. (element path: ${n.path()})`);return{ok:!0}}catch(e){return{ok:!1,errorType:"checkbox",message:e.message}}}function p(e){var t=[];d(e.root(),u,h,t);try{for(var n of t){var i=n.text();if(null==i||""===i)throw new Error(`Element '${s(n)}': This element must not be empty. (element path: ${n.path()})`)}return{ok:!0}}catch(e){return{ok:!1,errorType:"text-decorator",message:e.message}}}return{validateXml:function(e){let t;try{t=r.parseXml(e).doc()}catch(e){return{ok:!1,errorType:"parse",message:e.message}}let n={ok:!0};var i;for(i of[o,l,f,m,p])if(!(n=i(t)).ok)break;return n}}})(),y.exports),Y={};i.APP_STATE_CHANGED="app_state_changed",i.ACCESS_TOKEN_CHANGED="access_token_changed",i.CURRENT_USER_CHANGED="current_user_changed",i.CONFIGURATION_CHANGED="configuration_changed",i.DOMAIN_SELECTION_CHANGED="domain_selection_changed",i.TALK_SELECTION_CHANGED="talk_selection_changed",i.TALK_LIST_SCROLL_TO_TALK_TOP_NEEDED="talk_list_scroll_to_talk_top_needed",i.USER_SELECTION_NEEDED="user_selection_needed",i.USER_SELECTION_CHANGED="user_selection_changed",i.FRIEND_SELECTION_NEEDED="friend_selection_needed",i.COMMON_STAMP_SET_LOADED="common_stamp_set_loaded",i.STAMP_SELECTION_STARTED="stamp_selection_started",i.STAMP_SELECTION_ENDED="stamp_selection_ended",i.STAMP_SELECTION_CHANGED="stamp_selection_changed",i.ACTION_SELECTION_CHANGED="action_selection_changed",i.CURRENT_PAGE_CHANGED="current_page_changed",i.CURRENT_PAGE_REASSIGNED="current_page_reassgined",i.FILEINFO_SELECTION_CHANGED="fileinfo_selection_changed",i.NOTE_FILEINFO_SELECTION_CHANGED="note_fileinfo_selection_changed",i.MESSAGE_FILEINFO_SELECTION_CHANGED="message_fileinfo_selection_changed",i.STAGED_FILEINFO_SELECTION_CHANGED="staged_fileinfo_selection_changed",i.STAGED_FILEINFOS_ADDED="staged_fileinfos_added",i.STAGED_FILEINFOS_MOVED="staged_fileinfos_moved",i.CLOSE_FILEPREVIEW_MODAL="close_filepreview_modal",i.ERROR_OCCURRED="error_occurred",i.UNREAD_COUNT_CHANGED="brand_badge_changed",i.SEND_FORM_TOP_CHANGED="send_form_top_changed",i.SOLUTIONS_LOADED="solutions_loaded",i.RIGHT_PANE_OPENED="right_pane_opened",i.RIGHT_PANE_CLOSED="right_pane_closed",i.PASSWORD_EXPIRATION_OVERED="password_expiration_overed",i.PASSWORD_EXPIRATION_WARNED="password_expiration_warned",i.PHOTO_EDITOR_SAVED="photo_editor_saved",i.ICON_EDITOR_SAVED="icon_editor_saved",i.MC_AUTHENTICATED_USER_RECEIVED="mc_authenticated_user_received",i.KEYWORD_WATCHING_UPDATED="keyword_watching_updated",i.KEYWORD_DETECTION_UPDATED="keyword_detaction_updated",i.DEPARTMENT_SELECTION_CHANGED_FOR_MEMBERS_PAGE="department_selection_changed_for_members_page",i.PRESENCES_UPDATED="presences_updated",i.NOTEINFO_SELECTION_CHANGED="noteinfo_selection_changed",i.START_NOTE_EDITING="start_note_editing",i.OPEN_EXISTING_PAIR_TALK_COMPLETED="open_existing_pair_talk_completed",i.FIRST_ROUTING_WILL_START="first_routing_will_start",i.SIGNED_OUT="signed_out",i.ROUTUNG_TALK_FALLBACK="routing_talk_fallback",i.ROUTUNG_DOMAIN_FALLBACK="routing_domain_fallback",i.TALKS_SORT_MODE_CHANGED="talks_sort_mode_changed",i.RESERVE_SCHEDULED_MESSAGE_EDITING="reserve_scheduled_message_editing",i.DATA_RECOVERING="data_recovering",i.DATA_RECOVERED="data_recovered",i.NOTIFY_UPDATE_USER="notify_update_user",i.NOTIFY_ADD_FRIEND="notify_add_friend",i.NOTIFY_ADD_ACQUAINTANCE="notify_add_acquaintance",i.NOTIFY_ADD_ACQUAINTANCES="notify_add_acquaintances",i.NOTIFY_DELETE_FRIEND="notify_delete_friend",i.NOTIFY_DELETE_ACQUAINTANCE="notify_delete_acquaintance",i.NOTIFY_DELETE_ACQUAINTANCES="notify_delete_acquaintances",i.NOTIFY_UPDATE_DOMAIN_USERS="notify_update_domain_users",i.GET_DOMAIN_USERS_RESPONSED="get_domain_users_responsed",i.GET_USERS_RESPONSED="get_users_responsed",i.GET_PROFILE_RESPONSED="get_profile_responsed",i.GET_PROFILE_ERRORED="get_profile_errored",i.UPDATE_USER_RESPONSED="update_user_responsed",i.UPDATE_USER_ERRORED="update_user_errored",i.UPDATE_PROFILE_RESPONSED="update_profile_responsed",i.UPDATE_PROFILE_ERRORED="update_profile_errored",i.NOTIFY_UPDATE_DEPARTMENT_TREE="notify_update_department_tree",i.NOTIFY_UPDATE_DEPARTMENT_USERS="notify_update_department_users",i.GET_DEPARTMENT_TREE_RESPONSED="get_department_tree_responsed",i.GET_DEPARTMENT_TREE_CANCELED="get_department_tree_canceled",i.GET_DEPARTMENT_USERS_RESPONSED="get_department_users_responsed",i.GET_DEPARTMENT_USERS_CANCELED="get_department_users_canceled",i.GET_DEPARTMENT_USER_COUNT_RESPONSED="get_department_user_count_responsed",i.GET_ME_RESPONSED="get_me_responsed",i.DEPARTMENT_USER_COUNT_CLEARED="department_user_count_cleared",i.DEPARTMENT_USER_IDS_PREPARED="department_user_ids_prepared",i.NOTIFY_ADD_DOMAIN_INVITE="notify_add_domain_invite",i.NOTIFY_ACCEPT_DOMAIN_INVITE="notify_accept_domain_invite",i.NOTIFY_DELETE_DOMAIN_INVITE="notify_delete_domain_invite",i.NOTIFY_JOIN_DOMAIN="notify_join_domain",i.NOTIFY_UPDATE_DOMAIN="notify_update_domain",i.NOTIFY_LEAVE_DOMAIN="notify_leave_domain",i.NOTIFY_ADD_DOMAIN_MEMBERS="notify_add_domain_members",i.NOTIFY_CREATE_PAIR_TALK="notify_create_pair_talk",i.CREATE_PAIR_TALK_COMPLETE="create_pair_talk_complete",i.CREATE_PAIR_TALK_FAIL="create_pair_talk_fail",i.NOTIFY_CREATE_GROUP_TALK="notify_create_group_talk",i.CREATE_GROUP_TALK_COMPLETE="create_group_talk_complete",i.CREATE_GROUP_TALK_FAIL="create_group_talk_fail",i.NOTIFY_UPDATE_GROUP_TALK="notify_update_group_talk",i.UPDATE_GROUP_TALK_COMPLETE="update_group_talk_complete",i.UPDATE_GROUP_TALK_FAIL="update_group_talk_fail",i.NOTIFY_ADD_TALKERS="notify_add_talkers",i.NOTIFY_ADD_TALKERS_INCLUDING_ME="notify_add_talkers_including_me",i.NOTIFY_DELETE_TALKER="notify_delete_talker",i.NOTIFY_DELETE_TALK="notify_delete_talk",i.NOTIFY_UPDATE_READ_STATUSES="notify_update_read_statuses",i.NOTIFY_UPDATE_TALK_STATUS="notify_update_talk_status",i.NOTIFY_UPDATE_LOCAL_TALK_STATUS="notify_update_local_talk_status",i.NOTIFY_ADD_FAVORITE_TALK="notify_add_favorite_talk",i.NOTIFY_DELETE_FAVORITE_TALK="notify_delete_favorite_talk",i.NOTIFY_DISABLE_PUSH_NOTIFICATION="notify_disable_push_notification",i.NOTIFY_ENABLE_PUSH_NOTIFICATION="notify_enable_push_notification",i.ADD_TALKERS_SUCCEEDED="add_talkers_succeeded",i.ADD_TALKERS_FAILED="add_talkers_failed",i.NOTIFY_CREATE_MESSAGE="notify_create_message",i.NOTIFY_DELETE_MESSAGE="notify_delete_message",i.NOTIFY_GET_MESSAGES="notify_get_messages",i.NOTIFY_GET_MESSAGE_READ_STATUS="notify_get_message_status",i.CREATE_MESSAGE_START="create_message_start",i.CREATE_MESSAGE_COMPLETE="create_message_complete",i.CREATE_MESSAGE_FAIL="create_message_fail",i.ADD_FAVORITE_MESSAGE_COMPLETED="add_favorite_message_completed",i.DELETE_FAVORITE_MESSAGE_COMPLETED="delete_favorite_message_completed",i.GET_FAVORITE_MESSAGES_COMPLETED="get_favorite_messages_completed",i.NOTIFY_ADD_FAVORITE_MESSAGE="notify_add_favorite_message",i.NOTIFY_DELETE_FAVORITE_MESSAGE="notify_delete_favorite_message",i.NOTIFY_SCHEDULE_MESSAGE="notify_schedule_message",i.NOTIFY_PROCESSED_SCHEDULED_MESSAGE="notify_processed_scheduled_message",i.NOTIFY_DELETE_SCHEDULED_MESSAGE="notify_delete_scheduled_message",i.GET_SCHEDULED_MESSAGES_COMPLETED="get_scheduled_messages_completed",i.GET_SCHEDULED_MESSAGES_FAILED="get_scheduled_messages_failed",i.DELETE_SCHEDULED_MESSAGES_COMPLETED="delete_scheduled_messages_completed",i.SCHEDULE_MESSAGE_STARTED="schedule_message_started",i.SCHEDULE_MESSAGE_COMPLETED="schedule_message_completed",i.SCHEDULE_MESSAGE_FAILED="schedule_message_faileed",i.RESCHEDULE_MESSAGE_STARTED="reschedule_message_started",i.RESCHEDULE_MESSAGE_COMPLETED="reschedule_message_completed",i.RESCHEDULE_MESSAGE_FAILED="reschedule_message_failed",i.NOTIFY_UPDATE_MESSAGE_REACTIONS="notify_update_message_reactions",i.GET_MESSAGE_REACTION_SUMMARIES_COMPLETED="get_message_reaction_summaries_completed",i.GET_MESSAGE_REACTION_SUMMARIES_FAILED="get_message_reaction_summaries_failed",i.SET_MESSAGE_REACTION_COMPLETED="set_message_reaction_completed",i.SET_MESSAGE_REACTION_FAILED="set_message_reaction_failed",i.RESET_MESSAGE_REACTION_COMPLETED="reset_message_reaction_completed",i.RESET_MESSAGE_REACTION_FAILED="reset_message_reaction_failed",i.NOTIFY_CREATE_ANNOUNCEMENT="notify_create_announcement",i.NOTIFY_DELETE_ANNOUNCEMENT="notify_delete_announcement",i.NOTIFY_UPDATE_ANNOUNCEMENT_STATUS="notify_update_announcement_status",i.NOTIFY_GET_ANNOUNCEMENTS="notify_get_announcements",i.CREATE_ANNOUNCEMENT_START="create_announcement_start",i.CREATE_ANNOUNCEMENT_COMPLETE="create_announcement_complete",i.CREATE_ANNOUNCEMENT_FAIL="create_announcement_fail",i.NOTIFY_UPDATE_QUESTION="notify_update_question",i.NOTIFY_GET_QUESTIONS="get_questions_responsed",i.NOTIFY_CREATE_ATTACHMENT="notify_create_attachment",i.NOTIFY_DELETE_ATTACHMENT="notify_delete_attachment",i.GET_FILE_RESPONSED="get_file_responsed",i.GET_FILE_PREVIEW="get_file_preview",i.CREATE_FILE_PREVIEW="create_file_preview",i.GET_NOTE_STATUSES_LOADED="get_note_statuses_loaded",i.GET_NOTE_LOADED="get_note_loaded",i.GET_NOTE_FAILED_BY_NOTE_NOT_FOUND="get_note_failed_by_note_not_found",i.CREATE_NOTE_COMPLETED="create_note_completed",i.CREATE_NOTE_FAILED="create_note_failed",i.UPDATE_NOTE_LOCAL_EDIT="update_note_local_edit",i.CLEAR_NOTE_LOCAL_EDIT="clear_note_local_edit",i.UPDATE_NOTE_SETTING_COMPLETED="update_note_setting_completed",i.UPDATE_NOTE_SETTING_FAILED_BY_NOT_FOUND="update_note_setting_failed_by_not_found",i.UPDATE_NOTE_SETTING_FAILED_BY_CONFLICT="update_note_setting_failed_by_conflict",i.UPDATE_NOTE_SETTING_FAILED_BY_EDITING="update_note_setting_failed_by_editing",i.UPDATE_NOTE_COMPLETED="update_note_completed",i.DELETE_NOTE_COMPLETED="delete_note_completed",i.NOTIFY_CREATE_NOTE="notify_create_note",i.NOTIFY_UPDATE_NOTE_PARTIALLY="notify_update_note_partially",i.NOTIFY_DELETE_NOTE="notify_delete_note",i.NOTIFY_UPDATE_NOTE_FOR_SETTING="notify_update_note_for_setting",i.NOTIFY_UPDATE_NOTE_FOR_SUMMARY="notify_update_note_for_revision",i.CREATE_NOTE_BUTTON_CLICKED="create_note_button_clicked",i.NOTIFY_LOCK_NOTE="notify_lock_note",i.NOTIFY_UNLOCK_NOTE="notify_unlock_note",i.NOTIFY_SEARCH_MESSAGES="notify_search_messages",i.NOTIFY_SEARCH_ATTACHMENTS="notify_search_attachments",i.NOTIFY_SEARCH_MESSAGES_FAIL="notify_search_messages_fail",i.NOTIFY_SEARCH_ATTACHMENTS_FAIL="notify_search_attachments_fail",i.NOTIFY_SEARCH_PREPARE="notify_search_prepare",i.NOTIFY_SEARCH_CLEAR="notify_search_clear",i.NOTIFY_FILTER_BOX_TEXT_CHANGED="notify_filter_box_text_changed",i.NOTIFY_SEARCH_BOX_POPUP="notify_search_box_popup",i.NOTIFY_ADD_ACCOUNT_CONTROL_REQUEST="notify_add_account_control_request",i.NOTIFY_DELETE_ACCOUNT_CONTROL_REQUEST="notify_delete_account_control_request",i.NOTIFY_JOIN_ACCOUNT_CONTROL_GROUP="notify_join_account_control_group",i.NOTIFY_UPDATE_ACCOUNT_CONTROL_GROUP_PARTIALLY="notify_update_account_control_group_partially",i.NOTIFY_LEAVE_ACCOUNT_CONTROL_GROUP="notify_leave_account_control_group",i.PREPARE_CONFERENCE_FROM_MESSAGE="prepare_conference_from_message",i.JOIN_CONFERENCE_RESPONSED="join_conference_responsed",i.JOIN_CONFERENCE_CANCELED="join_conference_canceled",i.GET_CONFERENCE_PARTICIPANTS_RESPONSED="get_conference_participants_responsed",i.NOTIFY_OPEN_CONFERENCE="notify_open_conference",i.NOTIFY_CLOSE_CONFERENCE="notify_close_conference",i.NOTIFY_CONFERENCE_PARTICIPANT_JOIN="notify_conference_participant_join",i.NOTIFY_CONFERENCE_PARTICIPANT_LIMIT="notify_conference_participant_limit",i.NOTIFY_CONFERENCE_PARTICIPANT_REJECT="notify_conference_participant_reject",i.NOTIFY_ALL_TALK_MEMBERS_REJECTED_CONFERENCE="notify_all_talk_members_rejected_conference",i.NOTIFY_UPDATE_DOMAIN_STAMP_SETTING="notify_update_domain_stampsetting",i.NOTIFY_UPDATE_STAMPSET="notify_update_stampset",i.NOTIFY_DELETE_STAMPSET="notify_delete_stampset",i.NOTIFY_UPDATE_DOMAIN_BUILTIN_STAMP_SETTING="notify_update_domain_builtin_stampsetting",i.NOTIFY_FLOW_NOTIFICATION_BADGE="notify_flow_notification_badge",i.GET_FLOW_NOTIFICATION_BADGES_COMPLETED="get_flow_notification_badges_completed",i.GET_FLOW_NOTIFICATION_BADGES_FAILED="get_flow_notification_badges_failed",i.GET_DIRECT_APPS_COMPLETED="get_direct_apps_completed",i.GET_DIRECT_APPS_FAILED="get_direct_apps_failed",i.START_NOTIFICATION_FAILED="start_notification_failed",Rn.DEFAULT_RESOLVER=new Dn,Rn.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:",_.accessMode=On.Disabled,te.ANNOUNCEMENTS_KEY="-1",Bn.__meta__={fields:{api:{inject:null}}},Bn.NAME="AccountControlRequest",Gn.__meta__={fields:{api:{inject:null},dataStore:{inject:null}}},Gn.NAME="Conference",zn.__meta__={fields:{api:{inject:null}}},zn.NAME="Device",Wn.__meta__={fields:{api:{inject:null}}},Wn.NAME="Domain",Vn.__meta__={fields:{api:{inject:null},dataStore:{inject:null},fileService:{inject:null}}},Vn.NAME="FilePath",Qn.__meta__={fields:{api:{inject:null}}},Qn.NAME="FilePreview",Xn.__meta__={fields:{api:{inject:null},dataStore:{inject:null}}},Xn.NAME="LoadStampset",$n.__meta__={fields:{api:{inject:null}}},$n.NAME="ManageFriends",ei.__meta__={fields:{api:{inject:null}}},ei.NAME="Message",ni.__meta__={fields:{dataStore:{inject:null},api:{inject:null}}},ni.NAME="MessageReaction",ri.__meta__={fields:{api:{inject:null},dataStore:{inject:null},fileService:{inject:null}}},ri.NAME="Note",si.__meta__={fields:{api:{inject:null},keywordWatcher:{inject:null},readStatusUpdater:{inject:null}}},si.NAME="Read",li.__meta__={fields:{api:{inject:null}}},li.NAME="ReloadData",ci.__meta__={fields:{dataStore:{inject:null},api:{inject:null}}},ci.NAME="ScheduleMessage",hi.__meta__={fields:{api:{inject:null},searchService:{inject:null}}},hi.NAME="Search",fi.__meta__={fields:{dataStore:{inject:null},settings:{inject:null}}},fi.NAME="SelectTalk",pi.__meta__={fields:{api:{inject:null}}},pi.NAME="Send",gi.__meta__={fields:{accessTokenResolver:{inject:null},session:{inject:null}}},gi.NAME="SignIn",yi.__meta__={fields:{api:{inject:null},settings:{inject:null},dataStore:{inject:null}}},yi.NAME="SignOut",Si.__meta__={fields:{api:{inject:null},dataStore:{inject:null}}},Si.NAME="Talk",Ti.__meta__={fields:{api:{inject:null},dataStore:{inject:null}}},Ti.NAME="UpdateProfile",Ii.__meta__={fields:{api:{inject:null}}},Ii.NAME="UpdateUser",Ei.__meta__={fields:{userPresences:{inject:null},api:{inject:null},settings:{inject:null}}},Ei.NAME="UpdateUserPresences",Ei.MAX_USERS_PER_API=100,wi.__meta__={fields:{routing:{inject:null}}},wi.NAME="Url",_e.TalkAutoScrollDelay=1,_e.TalkAutoScrollImmediately=2,_e.TalkAutoScrollNone=3,_e.NotificationPopupTime5Sec=5,_e.TalksSortModeNewMessagesFirst="new_messages_first",_e.TalksSortModeUnreadMessagesFirst="unread_messages_first",_e.TalksSortModeOldMessagesFirst="old_messages_first",_e.DomainsSortModeNameOrderAsc="name_order_asc",_e.OLD_KEY_RIGHT_PANEL_OPENED="right_panel_opened",_e.OLD_KEY_RIGHT_PANEL_WIDTH="right_panel_width",_e.OLD_KEY_APP_LEFT_PANEL_OPENED="app_left_panel_opened",_e.NAME="browser_settings",Fi.MAX_SIZE=72,he.INCOMING_TIME=6e4,Li.DEFAULT_PRESENCE_EXPIRATION=3e5,Li.DEFAULT_UPDATE_LAST_USED_AT_INTERVAL=6e5,Bi.DEFAULT_TTL=3600,Bi.DEFAULT_MAX_PARTICIPANTS=8,rr.stagedFileInfosMaxId=0,Ae.TIMESTAMP_SHIFT=22,O.MAX_READ_USER_IDS_COUNT=16,Pe.QUERY_DATE_TODAY="t",Pe.QUERY_DATE_YESTERDAY="-1d",Pe.QUERY_DATE_THREE_DAYS_BEFORE="-3d",zr.HISTORY_TAB_NAME="stamp-history",it.SIXTY_MINUTES=new E(0,36e5),it.FIFTEEN_MINUTES=new E(0,9e5),go.PREFIX="note-",go.nextDummyId=new E(-1,-1),Ot.CONTINUE_MARGIN_RATE=.1,Pt.CHEKBOX_UNCHECKED="- [ ] ",Pt.CHEKBOX_CHECKED="- [x] ",jt.TU_REG=new v("ッ([BCDFGHIJKLMNOPQRSTUVWYZ])","gm"),jt.XTU_REG=new v("ッ","gm"),F.EMERGENCY=0,F.ALERT=1,F.CRITICAL=2,F.ERROR=3,F.WARNING=4,F.NOTICE=5,F.INFO=6,F.DEBUG=7,F.level=F.getLogLevel(process.env.HUBOT_LOG_LEVEL),F._d=7<=F.level&&null!=console?console.log.bind(console):F._nop,F._i=6<=F.level&&null!=console?console.info.bind(console):F._nop,F._w=4<=F.level&&null!=console?console.warn.bind(console):F._nop,F._e=3<=F.level&&null!=console?console.error.bind(console):F._nop,Oo.HIRAGANA_SMALL_A=12353,Oo.HIRAGANA_NN=12435,Oo.KATAKANA_SMALL_A=12449,Uo.NAME="accessTokenResolver",l.NAME="Proxy",Lo.__meta__={fields:{settings:{inject:null},accountLoader:{inject:null},api:{inject:null}}},Po.NAME="accountLoader",Ho.__meta__={fields:{api:{inject:null},dataStore:{inject:null},settings:{inject:null},keywordWatcher:{inject:null}}},Ho.NAME="broadcast",Go.__meta__={fields:{wsApi:{inject:null},apiCaller:{inject:null},apiNote:{inject:null},settings:{inject:null},dataStore:{inject:null},dataFactory:{inject:null},fileService:{inject:null},searchService:{inject:null},lastUsedAtUpdater:{inject:null}}},Go.NAME="api",Go.API_VERSION="1.128",Go.UPDATE_VERSION="1.128_0",Go.ACTIONS_COUNT_PER_API=20,jo.__meta__={fields:{rpc:{inject:null}}},jo.NAME="apiCaller",jo.DELAY_FOR_DB_REPLICATION=500,jo.DELAY_FOR_DB_REPLICATION_FOR_RETRY=1e3,jo.API_TRY_COUNT=3,zo.__meta__={fields:{dataStore:{inject:null},settings:{inject:null},wsApi:{inject:null}}},zo.NAME="apiNote",Yo.NAME="appState",Wo.__meta__={fields:{dataStore:{inject:null}}},Wo.NAME="dataFactory",Ko.NAME="dataStore",Ko.STORAGE_KEY_FOR_GENERAL="dataStore",Ko.STORAGE_KEY_FOR_TALKS="dataStoreTalks",Ko.STORAGE_KEY_FOR_TALK_STATUSES="dataStoreTalkStatuses",Ko.STORAGE_KEY_FOR_USERS="dataStoreUsers",Ko.TYPE_FRIEND=0,Ko.TYPE_ACQUAINSTANCE=1,Ko.TYPE_NONE=2,Vo.__meta__={fields:{settings:{inject:null},dataStore:{inject:null}}},Vo.NAME="features",Qo.NAME="fileService",Xo.__meta__={fields:{settings:{inject:null}}},Jo.__meta__={fields:{settings:{inject:null},features:{inject:null},dataStore:{inject:null}}},Jo.NAME="keywordWatcher",Jo.TALK_KEY_PREFIX="talk_",Jo.ANNOUNCEMENT_KEY_PREFIX="announcement_",Zo.TEMP_HALF_SPACE="&SPACE",Zo.TEMP_FULL_SPACE="&FULL_PITCH_SPACE",ns.__meta__={fields:{settings:{inject:null}}},ns.NAME="lastUsedAtUpdater",is.__meta__={fields:{settings:{inject:null},dataStore:{inject:null}}},is.NAME="limitations",rs.__meta__={fields:{broadcast:{inject:null},lastUsedAtUpdater:{inject:null}}},rs.NAME="rpc",rs.lastMsgId=0,os.PING_INTERVAL_ON_CONNECTED=45e3,cs.__meta__={fields:{dataStore:{inject:null},api:{inject:null}}},cs.NAME="readStatusUpdater",_s.__meta__={fields:{settings:{inject:null},dataStore:{inject:null}}},_s.NAME="routing",fs.__meta__={fields:{settings:{inject:null}}},fs.NAME="searchService",fs.LOAD_SIZE=20,fs.DUMMY_VALUE_FOR_SET=1,ms.__meta__={fields:{settings:{inject:null},dataStore:{inject:null},api:{inject:null}}},ms.NAME="session",ps.NAME="settings",ps.KEY_ACCESS_TOKEN="access_token",ps.KEY_SELECTED_DOMAIN_ID_H="selected_domain_id_h",ps.KEY_SELECTED_DOMAIN_ID_L="selected_domain_id_l",ps.KEY_SELECTED_STAMP_TAB_ID="selected_stamp_tab_id",ps.KEY_INPUT_TEXT="input_text",ps.KEY_COPY_PROFILE_TO_ALL_DOMAINS="copy_profile_to_all_domains",ps.KEY_SELECTED_DEPARTMENT_IDS="selected_department_ids",ps.KEY_SEARCH_HISTORIES="search_histories",ps.KEY_MULTI_VIEW_MODE="multi_view_mode",ps.KEY_PASSWORD_WARNING_SKIP_UNTIL="password_warning_skip_until",ps.KEY_LAST_USED_EXPIRED_AT="last_used_expired_at",ps.KEY_IDFV="idfv",gs.__meta__={fields:{dataStore:{inject:null}}},gs.NAME="talksService",ys.__meta__={fields:{dataStore:{inject:null}}},ys.NAME="userPresences",Ss.__meta__={fields:{apiCaller:{inject:null}}},Ss.NAME="wsApi",p.MAX_CONTENT_BYTES=1e5,p.NOTE_EVENT_NAMES=["created","updated","deleted"],Ns.CONTENT_TYPE_XML="xml",Ns.CONTENT_TYPE_TEXT="text",Ms.NAME="Mediator",Cs.__meta__={fields:{dataStore:{inject:null},api:{inject:null},hubotObject:{inject:null},messageEvent:{inject:null},sendQueue:{inject:null}}},Cs.NAME="commandline",Cs.DATA_SAVE_SPAN=5e3,Rs.__meta__={fields:{dataStore:{inject:null}}},Rs.NAME="hubotObject",Os.__meta__={fields:{dataStore:{inject:null},hubotObject:{inject:null}}},Os.NAME="messageEvent",Fs.minWaitMinute=1,Fs.maxWaitMinute=1440,Fs.SEND_EVENT_NAME="send",xs.__meta__={fields:{messageEvent:{inject:null}}},xs.NAME="sendQueue",xs.MIN_SEND_SPAN_MESSAGE=550,xs.MIN_SEND_SPAN_ANNOUNCE=5050,xs.MAX_TEXT_LENGTH=1024,xs.MAX_FIELD_COUNT=9,xs.MAX_FIELD_LENGTH=64,Ps.INVALID_PARAMETER="INVALID_PARAMETER",Ps.FORBIDDEN="FORBIDDEN",Ps.NOT_FOUND="NOT_FOUND",Ps.LOCKED_BY_ANOTHER_USER="LOCKED_BY_ANOTHER_USER",Ps.CONFLICT="CONFLICT",Ps.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",Ps.CLIENT_UPGRADE_REQUIRED="CLIENT_UPGRADE_REQUIRED",Ps.UNKNOWN="UNKNOWN",w._mul=null!=Math.imul?Math.imul:function(e,t){return e*(65535&t)+(e*(t>>>16)<<16|0)|0},Ks.USE_CACHE=!1,Ks.USE_ENUM_INDEX=!1,Ks.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:",$s.count=0,aa.i64tmp=new E(0,0),G.__toStr={}.toString,pa.FLOAT_SINGLE_MIN=1401298464324817e-60,pa.FLOAT_SINGLE_MAX=34028234663852886e22,pa.FLOAT_DOUBLE_MIN=5e-324,pa.FLOAT_DOUBLE_MAX=17976931348623157e292,yn.main()}("undefined"!=typeof exports?exports:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this,"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this); \ No newline at end of file diff --git a/lib/direct.min.js b/lib/direct.min.js index 6297eb1..d31572a 100755 --- a/lib/direct.min.js +++ b/lib/direct.min.js @@ -1 +1 @@ -!function(S,y){function o(){return H.__string_rec(this,"")}var t={};function e(e,t){function n(){}n.prototype=e;var i,r=new n;for(i in t)r[i]=t[i];return t.toString!==Object.prototype.toString&&(r.toString=t.toString),r}function v(e,t){this.r=new RegExp(e,t.split("u").join(""))}function C(){}function w(){}function N(e,t){this.basetime=0,this.count=0,this.max=e,this.interval=t}function x(){}function A(){this.b=""}function T(){}function U(){}function b(){}function M(){(M.instance=this).initializeFacade()}function D(){}function K(){}function j(){}function V(e){this.buf=e,this.length=e.length,this.pos=0,this.scache=[],this.cache=[],null==(e=V.DEFAULT_RESOLVER)&&(e=new j,V.DEFAULT_RESOLVER=e),this.resolver=e}function q(e){V.call(this,e)}function X(){}function Q(){}function J(){}function Z(){}function $(){}function ee(){}function te(){}function ne(){}function ie(){}function a(){}function re(){}function oe(){}function ae(){}function se(){}function le(){}function ue(){this.facade=M.getInstance()}function ce(){}function _e(){ue.call(this)}function n(){_e.call(this),s.getInstance().autoBind(this)}function he(e,t,n){this.email=e,this.pass=t,this.accessToken=n}function de(e){null!=e&&(this.id=e.id,this.group=new Qi(e.group),this.profilePolicy=new Ji(e.profile_policy))}function fe(e){null!=e&&(this.id=e.id,null!=e.group&&(this.group=new Qi(e.group)),null!=e.profile_policy)&&(this.profilePolicy=new Ji(e.profile_policy))}function me(e){null!=e&&(this.id=k.fromIntOrInt64(e.id),this.groupName=e.group_name,this.groupOwnerName=e.group_owner_name,this.groupOwnerEmail=e.group_owner_email,this.hasDomainInvite=e.has_domain_invite,this.updatedAt=e.updated_at,this.version=e.version)}function pe(e){this.value=e}function ge(e){null!=e&&(this.id=e.announcement_id,this.domainId=e.domain_id,this.groupId=e.group_id,this.groupName=e.group_name,this.type=O.typeOf(e.type),this.content=e.content,this.userId=e.user_id,this.userName=e.user_name,this.createdAt=e.created_at)}function Se(e){this.unreadCount=0,null!=e&&(this.domainId=e.domain_id,this.unreadCount=null!=e.unread_count?e.unread_count:0,this.maxAnnouncementId=e.max_announcement_id,null!=e.max_announcement&&(this.maxAnnouncement=new ge(e.max_announcement)),this.maxReadAnnouncementId=e.max_read_announcement_id,null==this.maxReadAnnouncementId)&&0==this.unreadCount&&(this.maxReadAnnouncementId=this.maxAnnouncementId)}function ye(e){null!=e&&(this.domainId=e.domain_id,this.readAnnouncementIds=e.read_announcement_ids)}function ve(){this.announcements=new B}function we(e){if(this.notificationInvisibleTalkSound=!0,this.notificationInvisibleTalkPopup=!1,this.notificationVisibleTalkSound=!1,this.notificationVisibleTalkPopup=!1,this.notificationIncludingMessageContent=!0,this.notificationPopupTime=5,this.talkAutoScroll=1,this.legacyNoteEnabled=!1,this.leaveTalksEnabled=!1,this.talksSortMode="new_messages_first",this.talkRightPanelOpened=!0,this.talkRightPanelWidth=0,this.keywordWatchingText="",this.keywordWatchingEmphasis=!1,this.keywordWatchingSelfMessage=!1,this.keywordWatchingActionReply=!1,this.userDataContainer=[],this.language="ja",this.conferenceIncomingSound=!0,this.domainsSortMode="name_order_asc",this.appLeftPanelOpened=!1,this.appLeftPanelWidth=0,null!=e){var t;if(null!=e.notificationInvisibleTalkSound&&(this.notificationInvisibleTalkSound=e.notificationInvisibleTalkSound),null!=e.notificationInvisibleTalkPopup&&(this.notificationInvisibleTalkPopup=e.notificationInvisibleTalkPopup),null!=e.notificationVisibleTalkSound&&(this.notificationVisibleTalkSound=e.notificationVisibleTalkSound),null!=e.notificationVisibleTalkPopup&&(this.notificationVisibleTalkPopup=e.notificationVisibleTalkPopup),null!=e.notificationIncludingMessageContent&&(this.notificationIncludingMessageContent=e.notificationIncludingMessageContent),null!=e.notificationPopupTime&&(this.notificationPopupTime=e.notificationPopupTime),null!=e.notificationVisibleTalkAutoScroll&&(this.talkAutoScroll=e.notificationVisibleTalkAutoScroll?1:3),null!=e.talkAutoScroll&&(this.talkAutoScroll=e.talkAutoScroll),null!=e.legacyNoteEnabled&&(this.legacyNoteEnabled=e.legacyNoteEnabled),null!=e.leaveTalksEnabled&&(this.leaveTalksEnabled=e.leaveTalksEnabled),null!=e.talksSortMode&&(this.talksSortMode=e.talksSortMode),this.talkRightPanelOpened=null!=e.talkRightPanelOpened?e.talkRightPanelOpened:null==a.getItem("right_panel_opened"),null!=e.talkRightPanelWidth?this.talkRightPanelWidth=e.talkRightPanelWidth:(t=P.parseInt(a.getItem("right_panel_width")),this.talkRightPanelWidth=null==t?0:t),null!=e.keywordWatchingText&&(this.keywordWatchingText=e.keywordWatchingText),null!=e.keywordWatchingEmphasis&&(this.keywordWatchingEmphasis=e.keywordWatchingEmphasis),null!=e.keywordWatchingSelfMessage&&(this.keywordWatchingSelfMessage=e.keywordWatchingSelfMessage),null!=e.keywordWatchingActionReply&&(this.keywordWatchingActionReply=e.keywordWatchingActionReply),null!=e.userDataContainer)for(var n=0,i=H.__cast(e.userDataContainer,Array);ne.length)throw new G(Ua.OutsideBounds);this.b=e.b,this.pos=t,this.len=n,this.totlen=n}function Yn(){}function Wn(){this.b=new Gn}function Kn(e){if(e instanceof Array&&null==e.__enum__)this.a=e,this.byteLength=e.length;else{this.a=[];for(var t=0,n=e;t=e.length);){if(!this.matchSub(e,n)){i+=P.string(L.substr(e,n,null));break}var r=this.matchedPos(),i=(i+=P.string(L.substr(e,n,r.pos-n)))+P.string(t(this)),n=0==r.len?(i+=P.string(L.substr(e,r.pos,1)),r.pos+1):r.pos+r.len;if(!this.r.global)break}return!this.r.global&&0r.interval)r.basetime=n,r.count=1;else{if(!(0").join(">"),t?e.split('"').join(""").split("'").join("'"):e},T.startsWith=function(e,t){return e.length>=t.length&&L.substr(e,0,t.length)==t},T.isSpace=function(e,t){e=L.cca(e,t);return 8>>=4););if(null!=t)for(;n.length=this.length)throw new G("Invalid object");if(103==this.buf.charCodeAt(this.pos))break;var t=this.unserialize();if("string"!=typeof t)throw new G("Invalid object key");var n=this.unserialize();e[t]=n}this.pos++},unserializeEnum:function(e,t){if(58!=this.buf.charCodeAt(this.pos++))throw new G("Invalid enum format");var n=this.readDigits();if(0==n)return U.createEnum(e,t);for(var i=[];0=this.scache.length)throw new G("Invalid string reference");return this.scache[t];case 97:this.buf;var r=[];for(this.cache.push(r);;){var o=this.buf.charCodeAt(this.pos);if(104==o){this.pos++;break}117==o?(this.pos++,o=this.readDigits(),r[r.length+o-1]=null):r.push(this.unserialize())}return r;case 98:var a=new B;for(this.cache.push(a),this.buf;104!=this.buf.charCodeAt(this.pos);){var s=this.unserialize(),l=this.unserialize();null!=W[s]?a.setReserved(s,l):a.h[s]=l}return this.pos++,a;case 99:e=this.unserialize(),t=this.resolver.resolveClass(e);if(null==t)throw new G("Class not found "+e);e=U.createEmptyInstance(t);return this.cache.push(e),this.unserializeObject(e),e;case 100:return this.readFloat();case 102:return!1;case 105:return this.readDigits();case 106:t=this.unserialize(),e=this.resolver.resolveEnum(t);if(null==e)throw new G("Enum not found "+t);this.pos++;var u=this.readDigits(),c=e.__constructs__.slice()[u];if(null==c)throw new G("Unknown enum index "+t+"@"+u);t=this.unserializeEnum(e,c);return this.cache.push(t),t;case 107:return NaN;case 108:var _=new ei;for(this.cache.push(_),this.buf;104!=this.buf.charCodeAt(this.pos);)_.add(this.unserialize());return this.pos++,_;case 109:return-1/0;case 110:return null;case 111:u={};return this.cache.push(u),this.unserializeObject(u),u;case 112:return 1/0;case 113:for(var h=new ka,d=(this.cache.push(h),this.buf,this.buf.charCodeAt(this.pos++));58==d;){var f=this.readDigits(),m=this.unserialize();h.h[f]=m,d=this.buf.charCodeAt(this.pos++)}if(104!=d)throw new G("Invalid IntMap format");return h;case 114:e=this.readDigits();if(e<0||e>=this.cache.length)throw new G("Invalid reference");return this.cache[e];case 115:var c=this.readDigits(),p=this.buf;if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos>2)+(2<=t?t-1:0))),w=0;S>4),g[p.charCodeAt(S++)]),E=(v.b[w++]=255&(E<<4|T>>2),g[p.charCodeAt(S++)]);v.b[w++]=255&(T<<6|E)}return 2<=t&&(u=g[p.charCodeAt(S++)],e=g[p.charCodeAt(S++)],v.b[w++]=255&(u<<2|e>>4),3==t)&&(u=g[p.charCodeAt(S++)],v.b[w++]=255&(e<<4|u>>2)),this.pos+=c,this.cache.push(v),v;case 116:return!0;case 118:return 48<=this.buf.charCodeAt(this.pos)&&this.buf.charCodeAt(this.pos)<=57&&48<=this.buf.charCodeAt(this.pos+1)&&this.buf.charCodeAt(this.pos+1)<=57&&48<=this.buf.charCodeAt(this.pos+2)&&this.buf.charCodeAt(this.pos+2)<=57&&48<=this.buf.charCodeAt(this.pos+3)&&this.buf.charCodeAt(this.pos+3)<=57&&45==this.buf.charCodeAt(this.pos+4)?(I=L.strDate(L.substr(this.buf,this.pos,19)),this.pos+=19):(t=this.readFloat(),I=new Date(t)),this.cache.push(I),I;case 119:e=this.unserialize(),u=this.resolver.resolveEnum(e);if(null==u)throw new G("Enum not found "+e);c=this.unserializeEnum(u,this.unserialize());return this.cache.push(c),c;case 120:throw G.wrap(this.unserialize());case 121:t=this.readDigits();if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos>>16,l=65535&n.low,u=n.low>>>16,c=I._mul(a,l),l=I._mul(s,l),a=I._mul(a,u),s=(I._mul(s,u)+(a>>>16)|0)+(l>>>16)|0,s=(a<<=16,I.ucompare(u=c+a|0,a)<0&&(s++,s|=0),l<<=16,I.ucompare(u=u+l|0,l)<0&&(s++,s|=0),s+(I._mul(t.low,n.high)+I._mul(t.high,n.low)|0)|0),c=new E(s,u),a=_.make(0,P.parseInt(e.charAt(o))),l=c.high+a.high|0,s=c.low+a.low|0;I.ucompare(s,c.low)<0&&(l++,l|=0);t=new E(l,s)}return t},k.getHigh=function(e){return e.high},k.getLow=function(e){return e.low},k.idStr=function(e){return"_"+e.high+"_"+e.low},k.makeFromIdStr=function(e){var t=new v("^_(-?\\d*)_(-?\\d*)$","");return t.match(e)?_.make(P.parseInt(t.matched(1)),P.parseInt(t.matched(2))):null},k.fromNullableIdStr=function(e){return null!=e?k.makeFromIdStr(e):null},k.toStr=function(e){return Ia.toString(e)},k.isNeg=function(e){return e.high<0},k.add=function(e,t){var n=e.high+t.high|0,t=e.low+t.low|0;return I.ucompare(t,e.low)<0&&(n++,n|=0),new E(n,t)},k.sub=function(e,t){var n=e.high-t.high|0,i=e.low-t.low|0;return I.ucompare(e.low,t.low)<0&&(n--,n|=0),new E(n,i)},k.compare=function(e,t){var n=e.high-t.high|0;return 0==n&&(n=I.ucompare(e.low,t.low)),e.high<0?t.high<0?n:-1:0<=t.high?n:1},k.eq=function(e,t){return null!=e&&null!=t&&e.high==t.high&&e.low==t.low},k.eqOrBothNull=function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.high==t.high&&e.low==t.low},k.toFloat=function(e){var t=4294967296,n=e.high,e=e.low;return n*t+(0<=e?e:e+t)},k.idStrToInt64=function(e){e=e.split("_");return 2>31,e))},k.eqArray=function(e,t){if(e!=t){if(null==e||null==t)return!1;if(e.length!=t.length)return!1;for(var n=0,i=e.length;n>31,t);return e.filter(function(e){var t=h.map(n.userPresences.getUserPresence(e),function(e){return e.isExpired(i,r)});switch(t[1]){case 0:return t[2];case 1:return!0}})},updateIfNeedPerSub:function(n,e){for(var i=this,t=Promise.resolve([]),r=k.splitUsingMaxCount(e,100),o=0;oe.version},isStampsetEnabled:function(e){return C.has(this.allowCreateMessageStampCategories,e)},isStampCategoriesEmpty:function(){return 0==this.allowCreateMessageStampCategories.length},getCategoryIndex:function(e){return this.allowCreateMessageStampCategories.indexOf(e)},__class__:Te},(t["albero.entity.Conference"]=Ee).__name__=["albero","entity","Conference"],Ee.prototype={isIncomingExpired:function(){var e=this.createdAt,t=4294967296,n=e.high,e=e.low;return n*t+(0<=e?e:e+t)+Ee.INCOMING_TIME<(new Date).getTime()},isExpired:function(){var e=this.expiredAt,t=4294967296,n=e.high,e=e.low;return n*t+(0<=e?e:e+t)<(new Date).getTime()},__class__:Ee},(t["albero.entity.ConferenceStore"]=Ie).__name__=["albero","entity","ConferenceStore"],Ie.prototype={addConference:function(e){var t=e.id,t="_"+t.high+"_"+t.low,n=this.conferencesMap,n=(null!=W[t]?n.setReserved(t,e):n.h[t]=e,e.talkId),e="_"+n.high+"_"+n.low,n=this.talkIdConferenceIdMap;null!=W[e]?n.setReserved(e,t):n.h[e]=t},removeConference:function(e){var t=e.id,t="_"+t.high+"_"+t.low,e=(this.conferencesMap.remove(t),e.talkId),e="_"+e.high+"_"+e.low,n=this.talkIdConferenceIdMap;(null!=W[e]?n.getReserved(e):n.h[e])==t&&this.talkIdConferenceIdMap.remove(e)},getConferences:function(){return te.toValueArray(this.conferencesMap)},getConference:function(e){var e="_"+e.high+"_"+e.low,t=this.conferencesMap;return null!=W[e]?t.getReserved(e):t.h[e]},hasConferenceInTalk:function(e){var t;return null!=e&&(e="_"+e.high+"_"+e.low,t=this.talkIdConferenceIdMap,null!=W[e]?t.existsReserved(e):t.h.hasOwnProperty(e))},getConferenceIdInTalk:function(e){var t;return null==e||(e="_"+e.high+"_"+e.low,t=this.talkIdConferenceIdMap,null==(t=null!=W[e]?t.getReserved(e):t.h[e]))?null:k.makeFromIdStr(t)},getConferenceTalkIds:function(){return te.toKeyArray(this.talkIdConferenceIdMap).map(k.makeFromIdStr)},hasConference:function(){return this.talkIdConferenceIdMap.keys().hasNext()},__class__:Ie},(t["albero.entity.Configuration"]=Ne).__name__=["albero","entity","Configuration"],Ne.prototype={__class__:Ne},(t["albero.entity.Contract"]=Ae).__name__=["albero","entity","Contract"],Ae.prototype={getMaxMessageContentLength:function(){return h.map(h.option(this.quota),function(e){return e.maxMessageContentLength})},getMaxTalkers:function(){return h.flatMap(h.option(this.quota),function(e){return h.option(e.maxTalkers)})},getMaxTalks:function(){return h.flatMap(h.option(this.quota),function(e){return h.option(e.maxTalks)})},isConferenceEnalbed:function(){return h.isDefined(this.contractConference)},isVideoEnalbed:function(){var e=h.map(this.contractConference,function(e){return e.videoEnabled});switch(e[1]){case 0:return e[2];case 1:return!1}},getConferenceTtl:function(){return h.map(this.contractConference,function(e){return e.ttl})},getConferenceMaxParticipants:function(){return h.map(this.contractConference,function(e){return e.maxConferenceParticipants})},isGroupConfenreceEnalbed:function(){var e=h.map(this.contractConference,function(e){return e.groupConferenceEnabled});switch(e[1]){case 0:return e[2];case 1:return!1}},isTargetOfPlanAd:function(){return null!=this.quota&&this.quota.withAd},isFreePlan:function(){return null!=this.plan&&this.plan.free},__class__:Ae},function(e){this.groupConferenceEnabled=!1,this.maxConferenceParticipants=nr.DEFAULT_MAX_PARTICIPANTS,this.ttl=nr.DEFAULT_TTL,this.videoEnabled=!1,null!=e&&(this.videoEnabled=e.video_enabled,this.ttl=e.ttl,this.maxConferenceParticipants=e.max_conference_participants,this.groupConferenceEnabled=e.group_conference_enabled)}),ir=((t["albero.entity.ContractConference"]=nr).__name__=["albero","entity","ContractConference"],nr.prototype={__class__:nr},(t["albero.entity.Department"]=be).__name__=["albero","entity","Department"],be.getLabelFree=function(){return p.localize("Department.label_free")},be.getLabelRoot=function(){return p.localize("Department.label_root")},be.prototype={addChild:function(e){null==this.childrenIds&&(this.childrenIds=[]),this.childrenIds.push(e)},isRoot:function(){return this.nodeType==ir.Root},isFree:function(){return this.nodeType==ir.Free},parseDepartmentNodeType:function(e){switch(e){case 1:return ir.Root;case 2:return ir.Free;default:return ir.Normal}},getChildIdStrList:function(){return null==this.childrenIds?[]:this.childrenIds.map(k.idStr)},__class__:be},(t["albero.entity.DepartmentHelper"]=Me).__name__=["albero","entity","DepartmentHelper"],Me.getName=function(e){return null==e?null:e.name},t["albero.entity.DepartmentNodeType"]={__ename__:["albero","entity","DepartmentNodeType"],__constructs__:["Normal","Root","Free"]}),rr=(ir.Normal=["Normal",0],ir.Normal.toString=o,(ir.Normal.__enum__=ir).Root=["Root",1],ir.Root.toString=o,(ir.Root.__enum__=ir).Free=["Free",2],ir.Free.toString=o,(ir.Free.__enum__=ir).__empty_constructs__=[ir.Normal,ir.Root,ir.Free],(t["albero.entity.DepartmentList"]=De).__name__=["albero","entity","DepartmentList"],De.prototype={getDepartments:function(e){return null==e?[]:e.map(function(e){return new be(e)})},__class__:De},(t["albero.entity.DepartmentStore"]=Ce).__name__=["albero","entity","DepartmentStore"],Ce.prototype={getDepartment:function(e){var t;return null==e?null:(e="_"+e.high+"_"+e.low,t=this.departmentMap,null!=W[e]?t.getReserved(e):t.h[e])},setDepartment:function(e){null!=e.parentId&&null!=(t=this.getDepartment(e.parentId))&&(t.addChild(e.id),e.depth=t.depth+1);var t=e.id,t="_"+t.high+"_"+t.low,n=this.departmentMap;null!=W[t]?n.setReserved(t,e):n.h[t]=e},clearDomainDepartment:function(e){var t=this,e="_"+e.high+"_"+e.low,n=this.rootDepartmentIdMap,n=null!=W[e]?n.getReserved(e):n.h[e];null!=n&&(C.iter(this.getDepartmentsDescendantOrSelf(n),function(e){e=e.id;t.departmentMap.remove("_"+e.high+"_"+e.low)}),this.rootDepartmentIdMap.remove(e))},getRootDepartmentId:function(e){var e="_"+e.high+"_"+e.low,t=this.rootDepartmentIdMap;return null!=W[e]?t.getReserved(e):t.h[e]},setRootDepartmentId:function(e,t){var e="_"+e.high+"_"+e.low,n=this.rootDepartmentIdMap;null!=W[e]?n.setReserved(e,t):n.h[e]=t},setDepartmentUserCount:function(e){var t=this.getDepartment(e.departmentId);null!=t&&(t.userCount=e,t.userCountLoading=!1)},setUserCountLoading:function(e,t){e=this.getDepartment(e);null!=e&&(e.userCountLoading=t)},isUserCountLoadingRequired:function(e){e=this.getDepartment(e);return null==e||null==e.userCount&&!e.userCountLoading},clearDomainDepartmentUsers:function(e){e=this.getRootDepartmentId(e);return null!=e&&(C.iter(this.getDepartmentsDescendantOrSelf(e),function(e){e.userCount=null,e.userIds=null,e.userCountLoading=!1}),!0)},setDepartmentUsers:function(e,t){e=this.getDepartment(e);null!=e&&(e.userIds=t)},getDepartmentPath:function(e){return this.getDepartmentsAncestorOrSelf(e)},getDepartmentPathWithoutRoot:function(e){return this.getDepartmentPath(e).filter(function(e){return!e.isRoot()})},getDepartmentsAncestorOrSelf:function(e){var t=[];return this._getDepartmentsAncestorOrSelf(e,t),t},_getDepartmentsAncestorOrSelf:function(e,t){e=this.getDepartment(e);null!=e&&(null!=e.parentId&&this._getDepartmentsAncestorOrSelf(e.parentId,t),t.push(e))},getDepartmentsDescendantOrSelf:function(e){var t=[];return this._getDepartmentsDescendantOrSelf(e,t),t},_getDepartmentsDescendantOrSelf:function(e,t){var n=this,e=this.getDepartment(e);null!=e&&(t.push(e),null!=e.childrenIds)&&C.iter(e.childrenIds,function(e){n._getDepartmentsDescendantOrSelf(e,t)})},__class__:Ce},(t["albero.entity.DepartmentUserCount"]=ke).__name__=["albero","entity","DepartmentUserCount"],ke.prototype={__class__:ke},(t["albero.entity.DepartmentUserCountList"]=Re).__name__=["albero","entity","DepartmentUserCountList"],Re.prototype={getDepartmentUserCounts:function(e){return null==e?[]:e.map(function(e){return new ke(e)})},__class__:Re},(t["albero.entity.DirectApp"]=Oe).__name__=["albero","entity","DirectApp"],Oe.prototype={getLinkFeature:function(){return C.find(this.features,function(e){return e.isLink()})},getMessageExtensionFeature:function(){return C.find(this.features,function(e){return e.isMessageMenuExtension()})},getLocalizedLabel:function(e,t){var n=this.locales,n=null!=W[t]?n.getReserved(t):n.h[t];return null==n||null==(t=n.getResourceText(e))?"":t},__class__:Oe},function(e){this.map=new B;for(var t=0,n=x.fields(e);t>t,e.high<<32-t|e.low>>>t):new E(e.high>>31,e.high>>t-32)},Xe.subTimestampPart=function(e,t){var e=Xe.timestamp(e),t=Xe.timestamp(t),n=e.high-t.high|0,i=e.low-t.low|0;return I.ucompare(e.low,t.low)<0&&(n--,n|=0),new E(n,i)},Xe.createForTest=function(e){var t=Xe.TIMESTAMP_SHIFT;return 0==(t&=63)?new E(e.high,e.low):t<32?new E(e.high<>>32-t,e.low<this.content.response?this.content.options[this.content.response]:"";case 17:return[this.content.title,p.localize("MessageStringMaker.achieve"),p.localize("MessageStringMaker.remand")].join(" ");case 18:return e&&null!=this.content.done?this.content.done?p.localize("MessageStringMaker.achieve"):p.localize("MessageStringMaker.remand"):"";default:return""}},messageStringForCompactMessage:function(){switch(this.type[1]){case 1:return this.content;case 5:if(null!=this.content.text&&0>>16,s=65535&t.low,l=t.low>>>16,u=I._mul(o,s),s=I._mul(a,s),o=I._mul(o,l),a=(I._mul(a,l)+(o>>>16)|0)+(s>>>16)|0,a=(o<<=16,I.ucompare(l=u+o|0,o)<0&&(a++,a|=0),s<<=16,I.ucompare(l=l+s|0,s)<0&&(a++,a|=0),a+(I._mul(e.low,t.high)+I._mul(e.high,t.low)|0)|0),u=new E(a,l),o=_.make(0,P.parseInt(this.commonStampId.charAt(r))),s=u.high+o.high|0,a=u.low+o.low|0;I.ucompare(a,u.low)<0&&(s++,s|=0);e=new E(s,a)}return e},__class__:yt},(t["albero.entity.OriginalStamp"]=vt).__name__=["albero","entity","OriginalStamp"],vt.__interfaces__=[St],vt.fromJson=function(e){var t,n;return null==e.originalStamp||null==(e=e.originalStamp).stampsetIdStr||null==e.stampIdStr?null:(t=k.makeFromIdStr(e.stampsetIdStr),n=k.makeFromIdStr(e.stampIdStr),new vt(t,n,e.illust))},vt.fromPropsAndStampsetId=function(e,t){return new vt(t,k.fromIntOrInt64(e.id),e.illust)},vt.createKey=function(e){return"original__"+e.high+"_"+e.low},vt.prototype={getImageUrl:function(){return this.illust},getKey:function(){return vt.createKey(this.id)},toJson:function(){var e=this.stampsetId,t=this.id;return{originalStamp:{stampsetIdStr:"_"+e.high+"_"+e.low,stampIdStr:"_"+t.high+"_"+t.low,illust:this.illust}}},createMessage:function(e,t){var n=new O;return n.talkId=e,n.type=c.originalStamp,n.content={stampset_id:this.stampsetId,stamp_id:this.id},null!=t&&0!=t.length&&(n.content.text=t),n},__class__:vt},(t["albero.entity.StampStore"]=wt).__name__=["albero","entity","StampStore"],wt.prototype={addStampsets:function(e){for(var t=0;te.version},__class__:Tt},function(e){this.stampsetInfos=[],this.allowCreateMessageStampsetIds=[],this.version=0,null!=e&&(this.version=e.version,this.allowCreateMessageStampsetIds=e.allow_create_message_stampset_ids.map(k.fromIntOrInt64),this.stampsetInfos=this.getStampsetInfos(e.stampset_infos))}),d=((t["albero.entity.StampsetSetting"]=Wr).__name__=["albero","entity","StampsetSetting"],Wr.prototype={getStampsetInfos:function(e){return null==e?[]:e.map(function(e){return new Tt(e)})},isForwardForbidden:function(e){e=e.getContentsForOriginalStamp(),e=null==e?null:e.stampsetId;return null!=e&&!this.containSendableStampset(e)},containSendableStampset:function(t){return null!=this.allowCreateMessageStampsetIds&&C.exists(this.allowCreateMessageStampsetIds,function(e){return null!=t&&null!=e&&t.high==e.high&&t.low==e.low})},containVisibleStampset:function(t){return C.exists(this.stampsetInfos,function(e){e=e.stampsetId;return null!=t&&null!=e&&t.high==e.high&&t.low==e.low})},getSendableStampsetInfos:function(){var t=this;return null==this.stampsetInfos||null==this.allowCreateMessageStampsetIds?[]:this.stampsetInfos.filter(function(e){return t.containSendableStampset(e.stampsetId)})},isNewerThan:function(e){return this.version>e.version},updateStampsetInfo:function(t){this.stampsetInfos=this.stampsetInfos.map(function(e){return t.eqStampsetId(e)&&t.isNewerThan(e)?t:e})},deleteStampsetInfo:function(t){this.stampsetInfos=this.stampsetInfos.filter(function(e){e=e.stampsetId;return!(null!=e&&null!=t&&e.high==t.high&&e.low==t.low)}),this.allowCreateMessageStampsetIds=this.allowCreateMessageStampsetIds.filter(function(e){return!(null!=e&&null!=t&&e.high==t.high&&e.low==t.low)})},getStampsetIdsDiff:function(e){for(var t=new B,n=e.stampsetInfos.concat(this.stampsetInfos),i=0;ithis.pushNotificationSetting.version&&(this.pushNotificationSetting=st.createWithParams(e.type,e.version),!0)},isMessageAcceptable:function(e,t){var n;return!!this.isUnread(e.id)||(0==(n=(e=Xe.subTimestampPart(this.maxReadMessageId,e.id)).high-t.high|0)&&(n=I.ucompare(e.low,t.low)),(e.high<0?t.high<0?n:-1:0<=t.high?n:1)<=0)},isUnread:function(e){var t,n;return null==this.maxReadMessageId||(0==(n=(t=this.maxReadMessageId).high-e.high|0)&&(n=I.ucompare(t.low,e.low)),(t.high<0?e.high<0?n:-1:0<=e.high?n:1)<0)},isMax:function(e){var t;return null!=this.maxMessageId&&null!=(t=this.maxMessageId)&&null!=e&&t.high==e.high&&t.low==e.low},isNewMax:function(e){var t,n;return null==this.maxMessageId||(0==(n=(t=this.maxMessageId).high-e.high|0)&&(n=I.ucompare(t.low,e.low)),(t.high<0?e.high<0?n:-1:0<=e.high?n:1)<0)},isNotificationDisabled:function(){return this.pushNotificationSetting.isDisabled()},getNotificationType:function(){return this.pushNotificationSetting.type},hasUnreadMessage:function(){return null!=this.maxMessage&&this.isUnread(this.maxMessage.id)},clearReadingMessages:function(){this.readingMessages=null},__class__:bt},(t["albero.entity.TalkStatusHelper"]=Mt).__name__=["albero","entity","TalkStatusHelper"],Mt.isNotificationDisabled=function(e){return null!=e&&e.isNotificationDisabled()},Mt.isFavoriteTalk=function(e){return null!=e&&null!=e.orderInFavorites},Mt.isUnreadMesasgeExisted=function(e){return null!=e&&e.hasUnreadMessage()},(t["albero.entity.TalkStatusUpdate"]=Dt).__name__=["albero","entity","TalkStatusUpdate"],Dt.prototype={__class__:Dt},(t["albero.entity.ThumbInfo"]=Ct).__name__=["albero","entity","ThumbInfo"],Ct.prototype={setAuth:function(e){this.auth=e},__class__:Ct},function(e){null!=e&&(this.width=e.width,this.height=e.height)}),f=((t["albero.entity.ThumbDimension"]=$r).__name__=["albero","entity","ThumbDimension"],$r.createWithSize=function(e,t){var n=new $r;return n.width=e,n.height=t,n},$r.prototype={toObject:function(){return{width:this.width,height:this.height}},__class__:$r},(t["albero.entity.UpdateDomainStampSettingEvent"]=kt).__name__=["albero","entity","UpdateDomainStampSettingEvent"],kt.prototype={isValid:function(){return this.newSetting.isNewerThan(this.oldSetting)},getStampsetIdsDiff:function(){return this.oldSetting.getStampsetIdsDiff(this.newSetting)},__class__:kt},t["albero.entity.UploadUseType"]={__ename__:["albero","entity","UploadUseType"],__constructs__:["PROFILE_IMAGE","MESSAGE","TALK_ICON","THUMBNAIL","NOTE_ATTACHMENT","NOTE_THUMBNAIL","SCHEDULE_MESSAGE"]}),E=(f.PROFILE_IMAGE=["PROFILE_IMAGE",0],f.PROFILE_IMAGE.toString=o,(f.PROFILE_IMAGE.__enum__=f).MESSAGE=["MESSAGE",1],f.MESSAGE.toString=o,(f.MESSAGE.__enum__=f).TALK_ICON=["TALK_ICON",2],f.TALK_ICON.toString=o,(f.TALK_ICON.__enum__=f).THUMBNAIL=["THUMBNAIL",3],f.THUMBNAIL.toString=o,(f.THUMBNAIL.__enum__=f).NOTE_ATTACHMENT=["NOTE_ATTACHMENT",4],f.NOTE_ATTACHMENT.toString=o,(f.NOTE_ATTACHMENT.__enum__=f).NOTE_THUMBNAIL=["NOTE_THUMBNAIL",5],f.NOTE_THUMBNAIL.toString=o,(f.NOTE_THUMBNAIL.__enum__=f).SCHEDULE_MESSAGE=["SCHEDULE_MESSAGE",6],f.SCHEDULE_MESSAGE.toString=o,(f.SCHEDULE_MESSAGE.__enum__=f).__empty_constructs__=[f.PROFILE_IMAGE,f.MESSAGE,f.TALK_ICON,f.THUMBNAIL,f.NOTE_ATTACHMENT,f.NOTE_THUMBNAIL,f.SCHEDULE_MESSAGE],(t["albero.entity.UploadUseTypeHelper"]=Rt).__name__=["albero","entity","UploadUseTypeHelper"],Rt.getUseTypeInt=function(e){switch(e[1]){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 4;case 4:return 5;case 5:return 6;case 6:return 1}},(t["albero.entity.UserIdentifier"]=Ot).__name__=["albero","entity","UserIdentifier"],Ot.prototype={__class__:Ot},function(e,t){this.high=e,this.low=t}),eo=((t["haxe._Int64.___Int64"]=E).__name__=["haxe","_Int64","___Int64"],E.prototype={__class__:E},(t["albero.entity.UserPresence"]=Ft).__name__=["albero","entity","UserPresence"],Ft.createUserPresenceState=function(e,t){var n=t.high-e.high|0,i=t.low-e.low|0;I.ucompare(t.low,e.low)<0&&(n--,n|=0);var t=new E(n,i),e=Ft.SIXTY_MINUTES,n=t.high-e.high|0;return 0==n&&(n=I.ucompare(t.low,e.low)),0<(t.high<0?e.high<0?n:-1:0<=e.high?n:1)?eo.GT_60:(0==(e=t.high-(i=Ft.FIFTEEN_MINUTES).high|0)&&(e=I.ucompare(t.low,i.low)),0<(t.high<0?i.high<0?e:-1:0<=i.high?e:1)?eo.LT_OR_EQ_60:eo.LT_OR_EQ_15)},Ft.prototype={toState:function(e){var t=e,n=h.map(this.lastUsedAtOpt,function(e){return Ft.createUserPresenceState(e,t)});switch(n[1]){case 0:return n[2];case 1:return eo.GT_60}},isExpired:function(e,t){var n=this.lastUpdatedAt,i=e.high-n.high|0,r=e.low-n.low|0;I.ucompare(e.low,n.low)<0&&(i--,i|=0);e=new E(i,r),n=e.high-t.high|0;return 0==n&&(n=I.ucompare(e.low,t.low)),0<(e.high<0?t.high<0?n:-1:0<=t.high?n:1)},__class__:Ft},t["albero.entity.UserPresenceState"]={__ename__:["albero","entity","UserPresenceState"],__constructs__:["LT_OR_EQ_15","LT_OR_EQ_60","GT_60"]}),to=(eo.LT_OR_EQ_15=["LT_OR_EQ_15",0],eo.LT_OR_EQ_15.toString=o,(eo.LT_OR_EQ_15.__enum__=eo).LT_OR_EQ_60=["LT_OR_EQ_60",1],eo.LT_OR_EQ_60.toString=o,(eo.LT_OR_EQ_60.__enum__=eo).GT_60=["GT_60",2],eo.GT_60.toString=o,(eo.GT_60.__enum__=eo).__empty_constructs__=[eo.LT_OR_EQ_15,eo.LT_OR_EQ_60,eo.GT_60],(t["albero.entity.api.message.AddFavoriteMessageResult"]=xt).__name__=["albero","entity","api","message","AddFavoriteMessageResult"],xt.prototype={__class__:xt},(t["albero.entity.api.message.DeleteFavoriteMessageResult"]=Ut).__name__=["albero","entity","api","message","DeleteFavoriteMessageResult"],Ut.prototype={__class__:Ut},(t["albero.entity.api.message.GetFavoriteMessagesResultWithParams"]=Lt).__name__=["albero","entity","api","message","GetFavoriteMessagesResultWithParams"],Lt.prototype={getNextMarker:function(){return this.nextMarker},getMessages:function(){return this.messages},__class__:Lt},(t["albero.entity.api.message.GetScheduledMessagesResultWithParams"]=Pt).__name__=["albero","entity","api","message","GetScheduledMessagesResultWithParams"],Pt.prototype={__class__:Pt},(t["albero.entity.api.message.SearchMessagesAroundDateTimeResult"]=Bt).__name__=["albero","entity","api","message","SearchMessagesAroundDateTimeResult"],Bt.prototype={__class__:Bt},function(e){this.messageId=e.message_id,this.createdAt=e.created_at}),no=((t["albero.entity.api.message.MessageCreatedAt"]=to).__name__=["albero","entity","api","message","MessageCreatedAt"],to.prototype={__class__:to},(t["albero.entity.api.note.CompressedNote"]=Gt).__name__=["albero","entity","api","note","CompressedNote"],Gt.prototype={uncompress:function(){var n=this,e=this.getCompressedContentRaw();return(new ie).run(e).then(function(e){var t=x.copy(n.noteRaw.note_revision),e=(t.content=e,x.copy(n.noteRaw));return e.note_revision=t,e})},getCompressedContentRaw:function(){return null==this.noteRaw||null==this.noteRaw.note_revision?null:this.noteRaw.note_revision.content},__class__:Gt},(t["albero.entity.api.note.CreateNoteError"]=Ht).__name__=["albero","entity","api","note","CreateNoteError"],Ht.prototype={__class__:Ht},(t["albero.entity.api.note.CreateNoteResult"]=zt).__name__=["albero","entity","api","note","CreateNoteResult"],zt.prototype={updateWithEmitterKey:function(e){var t=new zt;return t.note=this.note,t.emitterKey=e,t},__class__:zt},(t["albero.entity.api.note.CreateNoteResultCompressed"]=Yt).__name__=["albero","entity","api","note","CreateNoteResultCompressed"],Yt.prototype={uncompress:function(){return this.compressedNote.uncompress().then(function(e){return new zt(e)})},__class__:Yt},(t["albero.entity.api.note.DeleteNoteResult"]=Wt).__name__=["albero","entity","api","note","DeleteNoteResult"],Wt.prototype={__class__:Wt},(t["albero.entity.api.note.GetNoteResult"]=Kt).__name__=["albero","entity","api","note","GetNoteResult"],Kt.prototype={getNoteId:function(){return this.note.noteId},getNoteCreateUserId:function(){return this.note.createdBy},getRevisionCreateUserId:function(){return this.note.getRevisionCreateUserId()},getNoteCreateDate:function(){return this.note.createdAt},getRevisionCreateDate:function(){return this.note.getRevisionCreateDate()},getLockedUserIdWithoutSelf:function(e){return this.note.getLockedUserIdWithoutSelf(e)},__class__:Kt},(t["albero.entity.api.note.GetNoteResultCompressed"]=jt).__name__=["albero","entity","api","note","GetNoteResultCompressed"],jt.prototype={uncompress:function(){return this.compressedNote.uncompress().then(function(e){return new Kt(e)})},__class__:jt},(t["albero.entity.api.note.GetNoteStatusesResult"]=Vt).__name__=["albero","entity","api","note","GetNoteStatusesResult"],Vt.prototype={isNotEmptyNoteStatuses:function(){return 0>2)))+P.string(a.charAt(63&(s<<4|l>>4))))+P.string(a.charAt(63&(l<<2|u>>6))))+P.string(a.charAt(63&u));i==r?(e=n.b[i++],t=n.b[i++],o=(o=(o+=P.string(a.charAt(e>>2)))+P.string(a.charAt(63&(e<<4|t>>4))))+P.string(a.charAt(t<<2&63))):i==1+r&&(e=n.b[i++],o=(o+=P.string(a.charAt(e>>2)))+P.string(a.charAt(e<<4&63)));var c=o;switch(c.length%4){case 2:c+="==";break;case 3:c+="="}return c},Tn.decode=function(e){for(var t,n=e.length-1,n=("="==e.charAt(n)&&("="==e.charAt(n-1)&&--n,e=L.substr(e,0,n)),e.length),i=e,r=Tn.CODES,o=(null==r&&(r=Tn.initCodes(),Tn.CODES=r),0),e=3&n,a=o+(n-e),s=new Fa(new Ns(3*(n>>2)+(2<=e?e-1:0))),l=0;o>4),r[i.charCodeAt(o++)]),c=(s.b[l++]=255&(c<<4|u>>2),r[i.charCodeAt(o++)]);s.b[l++]=255&(u<<6|c)}return 2<=e&&(n=r[i.charCodeAt(o++)],t=r[i.charCodeAt(o++)],s.b[l++]=255&(n<<2|t>>4),3==e)&&(n=r[i.charCodeAt(o++)],s.b[l++]=255&(t<<4|n>>2)),s},(t["albero.js.KatakanaToRoman"]=En).__name__=["albero","js","KatakanaToRoman"],En.assureConvertTable=function(){return null==En.convertTable&&(En.convertTable=new B,C.iter([["ア","A"],["イ","I"],["ウ","U"],["エ","E"],["オ","O"],["カ","KA"],["キ","KI"],["ク","KU"],["ケ","KE"],["コ","KO"],["キャ","KYA"],["キュ","KYU"],["キョ","KYO"],["サ","SA"],["シ","SI"],["ス","SU"],["セ","SE"],["ソ","SO"],["シャ","SHA"],["シュ","SHU"],["ショ","SHO"],["タ","TA"],["チ","TI"],["ツ","TU"],["テ","TE"],["ト","TO"],["チャ","THA"],["チュ","THU"],["チョ","THO"],["ナ","NA"],["ニ","NI"],["ヌ","NU"],["ネ","NE"],["ノ","NO"],["ニャ","NYA"],["ニュ","NYU"],["ニョ","NYO"],["ハ","HA"],["ヒ","HI"],["フ","FU"],["ヘ","HE"],["ホ","HO"],["ヒャ","HYA"],["ヒュ","HYU"],["ヒョ","HYO"],["マ","MA"],["ミ","MI"],["ム","MU"],["メ","ME"],["モ","MO"],["ミャ","MYA"],["ミュ","MYU"],["ミョ","MYO"],["ヤ","YA"],["ユ","YU"],["ヨ","YO"],["ラ","RA"],["リ","RI"],["ル","RU"],["レ","RE"],["ロ","RO"],["リャ","RYA"],["リュ","RYU"],["リョ","RYO"],["ワ","WA"],["ヲ","O"],["ン","N"],["ガ","GA"],["ギ","GI"],["グ","GU"],["ゲ","GE"],["ゴ","GO"],["ギャ","GYA"],["ギュ","GYU"],["ギョ","GYO"],["ザ","ZA"],["ジ","JI"],["ズ","ZU"],["ゼ","ZE"],["ゾ","ZO"],["ジャ","ZYA"],["ジュ","ZYU"],["ジョ","ZYO"],["ダ","DA"],["ヂ","JI"],["ヅ","ZU"],["デ","DE"],["ド","DO"],["バ","BA"],["ビ","BI"],["ブ","BU"],["ベ","BE"],["ボ","BO"],["ビャ","BYA"],["ビュ","BYU"],["ビョ","BYO"],["パ","PA"],["ピ","PI"],["プ","PU"],["ペ","PE"],["ポ","PO"],["ピャ","PYA"],["ピュ","PYU"],["ピョ","PYO"],["ー",""],["ッ","ッ"]],function(e){var t=En.convertTable,n=e[0],e=e[1];null!=W[n]?t.setReserved(n,e):t.h[n]=e})),En.convertTable},En.matchNext=function(e,t){var n=En.assureConvertTable();if(t+1=Ao.HIRAGANA_SMALL_A&&a<=Ao.HIRAGANA_NN&&(n=(n+=e.substring(t,o))+String.fromCharCode(a+(Ao.KATAKANA_SMALL_A-Ao.HIRAGANA_SMALL_A)),t=1+o)}return n+=e.substring(t,e.length)},Ao.katakanaToRoman=function(e){return(new En).convert(e)},Ao.normalize=function(e){return new bo(null).normalize(e)},Ao.normalizeForFile=function(e){return new bo(null).normalizeForFile(e)},Ao.eraseInvisible=function(e){var t=new RegExp("[\\u0000-\\u0020 ]","g".split("u").join(""));return e.replace(t,"")},function(e){this.beforeTask=null,this.beforeTask=e}),Mo=((t["albero.js.Normalizer"]=bo).__name__=["albero","js","Normalizer"],bo.prototype={normalize:function(e){try{return null!=this.beforeTask&&this.beforeTask(),e.normalize("NFKC")}catch(e){return e instanceof G&&(e=e.val),F._e("["+L.dateStr(new Date)+"] ","invalid character:",e,"","",""),p.localize("TextCanonicalizer.invalid")}},normalizeForFile:function(e){try{return null!=this.beforeTask&&this.beforeTask(),e.normalize("NFC")}catch(e){return e instanceof G&&(e=e.val),F._e("["+L.dateStr(new Date)+"] ","invalid character:",e,"","",""),p.localize("TextCanonicalizer.invalid")}},__class__:bo},(t["albero.js.WebSocket"]=bn).__name__=["albero","js","WebSocket"],bn.prototype={__class__:bn},(t["albero.js.WebSocketFactory"]=Mn).__name__=["albero","js","WebSocketFactory"],Mn.newInstance=function(e,t){return new Mo(e,t)},function(e,t){this.onopen=t.onopen,this.onmessage=t.onmessage,this.onerror=null,this.onclose=t.onclose,this.onpong=t.onpong,this.ws=new WebSocket(e),ws.websocketsbinary&&(this.ws.binaryType="arraybuffer"),this.ws.onopen=Y(this,this.onOpen),this.ws.onmessage=Y(this,this.onMessage),this.ws.onerror=Y(this,this.onError),this.ws.onclose=Y(this,this.onClose)}),Do=((t["albero.js.WebSocketForBrowser"]=Mo).__name__=["albero","js","WebSocketForBrowser"],Mo.__interfaces__=[bn],Mo.prototype={onOpen:function(e){F._i("["+L.dateStr(new Date)+"] ","WebSocket opened.","","","",""),null!=this.onopen&&this.onopen()},onMessage:function(e){var t;null!=this.onmessage&&(t=null,t=this.getBinaryData(e),this.onmessage(t))},getBinaryData:function(e){return ws.websocketsbinary?Fa.ofData(new As(e.data)):Tn.decode(e.data)},onPong:function(e){null!=this.onpong&&this.onpong(e)},onError:function(e){F._e("["+L.dateStr(new Date)+"] ","WebSocket error. event:",e,"","",""),null!=this.onerror&&this.onerror()},onClose:function(e){var t="WebSocket closed. "+P.string(e.code)+" "+P.string(e.reason)+" "+P.string(e.wasClean);F._i("["+L.dateStr(new Date)+"] ",t,"","","",""),null!=this.onclose&&this.onclose(e.code,e.reason,e.wasClean)},close:function(){this.onopen=null,this.onmessage=null,this.onerror=null,this.onclose=null,this.onpong=null,this.ws.close()},send:function(e){ws.websocketsbinary?this.ws.send(new As(e.b.bufferValue).buffer):this.ws.send(Tn.encode(e))},ping:function(e){this.send(new Fa(new Ns(0)))},isClosed:function(){return null==this.ws||3==this.ws.readyState},__class__:Mo},(t["puremvc.interfaces.IProxy"]=Dn).__name__=["puremvc","interfaces","IProxy"],Dn.prototype={__class__:Dn},(t["albero.proxy.AccessTokenResolverProxy"]=Cn).__name__=["albero","proxy","AccessTokenResolverProxy"],Cn.__interfaces__=[Dn],Cn.prototype={__class__:Cn},function(){}),Co=((t["albero.proxy.AccessTokenResolverProxyFactory"]=Do).__name__=["albero","proxy","AccessTokenResolverProxyFactory"],Do.newInstance=function(){return new Co("accessTokenResolver")},(t["puremvc.patterns.proxy.Proxy"]=i).__name__=["puremvc","patterns","proxy","Proxy"],i.__interfaces__=[Dn],i.__super__=ue,i.prototype=e(ue.prototype,{getProxyName:function(){return this.proxyName},setData:function(e){this.data=e},getData:function(){return this.data},onRegister:function(){},onRemove:function(){},__class__:i}),function(e){i.call(this,e)}),ko=((t["albero.proxy.AccessTokenResolverProxyForDirectJs"]=Co).__name__=["albero","proxy","AccessTokenResolverProxyForDirectJs"],Co.__interfaces__=[Cn],Co.__super__=i,Co.prototype=e(i.prototype,{asyncGetAccessToken:function(e,t){var n=this.settings.getAccessToken();null!=n?t(n):null!=(n=null!=Ts.account?Ts.account.split(":"):null)&&2==n.length&&this.api.createAccessToken(n[0],n[1],t)},__class__:Co}),function(){i.call(this,"broadcast")}),Ro=((t["albero.proxy.AlberoBroadcastProxy"]=ko).__name__=["albero","proxy","AlberoBroadcastProxy"],ko.__super__=i,ko.prototype=e(i.prototype,{handleNotification:function(e,t){var n=this;switch(e){case"notify_add_account_control_request":var i=new me(t);this.dataStore.setAccountControlRequest(i),this.sendNotification(e,i);break;case"notify_add_acquaintance":var i=new Ge(t[1]);this.dataStore.addAcquaintance(i),this.sendNotification(e,i);break;case"notify_add_acquaintances":i=t[1].map(function(e){return new Ge(e)});C.iter(i,Y(z=this.dataStore,z.addAcquaintance)),this.api.sendAddAcquaintanceNotifications(i),this.sendNotification(e,i);break;case"notify_add_domain_invite":i=new Pe(t);this.dataStore.setDomainInvite(i),this.sendNotification(e,i);break;case"notify_add_favorite_message":i=new an(t);this.dataStore.addFavoriteMessage(i),this.sendNotification(e,i);break;case"notify_add_favorite_talk":i=new Ye(t);this.updateTalkStatusByFavoriteTalkEvent(i),this.sendNotification(e,i);break;case"notify_add_friend":i=new Ge(t[1]);this.dataStore.addFriend(i),this.sendNotification(e,i);break;case"notify_add_talkers":i=new jr(t);null==this.dataStore.getTalk(i.id)&&this.sendNotification("notify_add_talkers_including_me",i),this.dataStore.setTalk(i),this.sendNotification(e,i);break;case"notify_close_conference":i=new Ee(t);this.dataStore.removeConference(i),this.updateTalkStatusByConferenceClosedEvent(i),this.sendNotification(e,i);break;case"notify_conference_participant_join":var i=t[3],r=t[4],o=this.dataStore;null!=o.me&&null!=(o=o.me.id)&&null!=r&&o.high==r.high&&o.low==r.low&&this.dataStore.addReactedConfereceId(i),this.sendNotification(e,t);break;case"notify_conference_participant_reject":var o=t[3];this.dataStore.addReactedConfereceId(o),this.sendNotification(e,t);break;case"notify_create_announcement":var r=new ge(t);this.dataStore.setAnnouncement(r),this.keywordWatcher.onAnnouncementCreated(r),this.sendNotification("notify_update_announcement_status",this.newAnnouncementStatus(r)),this.sendNotification(e,r);break;case"notify_create_message":var a=new O(t),i=(this.dataStore.setMessage(a),this.keywordWatcher.onMessageCreated(a),this.newTalkStatusByMessage(a));switch(null!=i&&this.sendNotification("notify_update_local_talk_status",i),a.type[1]){case 0:var s=a.content,l=null;switch(s.type){case"delete_talker":l=s.deleted_user_id;break;case"hide_pair_talk":l=s.user_id}if(null==l)return void this.sendNotification(e,a);for(var u=a.talkId,c=this.dataStore.getQuestions(u,l),_=0;_t.favoriteVersion)&&(t.favoriteVersion=e.favoriteVersion,t.orderInFavorites=e.orderInFavorites,this.dataStore.setTalkStatus(t))},updateTalkStatusByConferenceClosedEvent:function(e){var t,n=this.dataStore.getTalkStatus(e.talkId);null!=n&&null!=n.maxMessage&&(t=n.maxMessage.id,e=e.messageId,null!=t)&&null!=e&&t.high==e.high&&t.low==e.low&&(n.maxMessage.content.closed=!0,this.dataStore.setTalkStatus(n))},updateTalkStatusByTalkPushNotificationEvent:function(e){var t=this.dataStore.getTalkStatus(e.talkId);if(null==t){var n=this.dataStore.getTalk(e.talkId);if(null==n)return void F._e("["+L.dateStr(new Date)+"] ","talk not found on change favorite talk.","","","","");(t=new bt).id=e.talkId,t.talkOrderingTimestamp=n.updatedAt}t.updateByTalkPushNotificationEvent(e)&&this.dataStore.setTalkStatus(t)},newTalkStatusByTalk:function(e){var t=this.dataStore.getTalkStatus(e.id);return null==t&&((t=new bt).id=e.id),null==t.talkOrderingTimestamp&&(t.talkOrderingTimestamp=e.updatedAt),this.dataStore.setTalkStatus(t),t},newTalkStatusByMessage:function(e){var t=this.dataStore.getTalkStatus(e.talkId),n=(null==t&&((t=new bt).id=e.talkId),this.dataStore),i=e.userId;return n=null!=n.me&&null!=(n=n.me.id)&&null!=i&&n.high==i.high&&n.low==i.low,t.updateByMessage(e,n),this.dataStore.setTalkStatus(t),t},updateTalkStatusOnMessageDelete:function(e){var t=this.dataStore.getTalkStatus(e.talkId);return null!=t&&t.updateByMessageDeletion(e)&&this.dataStore.setTalkStatus(t),t},updateTalkStatus:function(e){var t,n=this;return C.exists(e.readUserIds,function(e){var t=n.dataStore;return null!=t.me&&null!=(t=t.me.id)&&null!=e&&t.high==e.high&&t.low==e.low})?null==(t=this.dataStore.getTalkStatus(e.talkId))?(F._e("["+L.dateStr(new Date)+"] ","talkStatus is not found.","","","",""),null):(t.updateByMessageReadStatusesUpdate(e)&&this.dataStore.setTalkStatus(t),t):null},newAnnouncementStatus:function(e){var t=this.dataStore.getAnnouncementStatus(e.domainId);return null==t&&((t=new Se).domainId=e.domainId),t.updateByAnnouncement(e),this.dataStore.setAnnouncementStatus(t),t},assureAnnouncementStatus:function(e){var t=this.dataStore.getAnnouncementStatus(e);return null==t&&(t=Se.fromDomainId(e),this.dataStore.setAnnouncementStatus(t)),t},__class__:ko}),function(){i.call(this,"api")}),Oo=((t["albero.proxy.AlberoServiceProxy"]=Ro).__name__=["albero","proxy","AlberoServiceProxy"],Ro.__super__=i,Ro.prototype=e(i.prototype,{getOSString:function(){return"bot"},createAccessToken:function(e,t,n){function i(e){o.settings.setAccessToken(e),n(e)}function r(e){o.sendNotification("Url",Xi.FORWARD(u.error))}var o=this,a=e.split("$"),s=this.settings.getOs(),l=this.settings.getIDFV();(-1==e.indexOf("@")&&2==a.length?this.wsApi.createAccessTokenById(a[1],a[0],t,l,s):this.wsApi.createAccessToken(e,t,l,s)).then(i,r)},authorizeDevice:function(e,t){var n=this,i=this.settings.getIDFV();this.wsApi.authorizeDevice(e,i).then(function(e){t()},function(e){n.apiCaller.handleServerErrorDefault(e)})},createSession:function(e,n){var i=this;this.apiCaller.onSessionClear(),this.wsApi.createSession(e,"1.127",null).then(function(e){var t=X.nowAsInt64();e.passwordExpiration.isExpired(t)?i.sendNotification("password_expiration_overed"):(e.passwordExpiration.needWarning(t,i.settings.getPasswordWarningSkipUntil())&&(i.settings.setPasswordWarningSkipUntil(X.oneDayAfterAsInt64()),i.sendNotification("password_expiration_warned")),i.apiCaller.onSessionCreated(),n(e),i.apiCaller.fireCallbacksWaitingForSession())},function(e){if(null!=e){if(401==e.code&&"expired password"==e.message)return void i.sendNotification("password_expiration_overed");if(401==e.code&&"deleted account"==e.message)return void i.sendNotification("SignOut");if(401==e.code&&"unauthorized device"==e.message)return void i.sendNotification("Device",mi.AUTHORIZE);(400==e.code&&"older version specified"==e.message||401==e.code&&"bad token"==e.message||401==e.code&&"invalid token"==e.message)&&i.settings.clearAccessToken(),i.apiCaller.handleServerErrorDefault(e)}i.sendNotification("Url",Xi.FORWARD(u.error))})},startNotification:function(){var t=this;this.wsApi.startNotification().then(function(e){e||(t.dataStore.clear(!0),t.sendNotification("start_notification_failed"))},function(e){t.apiCaller.handleServerErrorDefault(e)})},resetNotification:function(e){var t=this;this.wsApi.resetNotification().then(e,function(e){t.apiCaller.handleServerErrorDefault(e)})},sendDomainNotifications:function(e){for(var t=0;t=n.length||(e=n[i],r=t.id,o=this.dataFactory.newDummyMessage(r,e.type,e.content),this.sendNotification("create_message_start",o),this.wsApi.createMessage(r,e.type,e.content).then(function(e){a.dataStore.setMessage(e),a.sendNotification("create_message_complete",[e,o.id]),a.forwardMessages(t,n,i+1),a.dataStore.removeMessage(o.id)},function(e){var t;a.sendNotification("create_message_fail",[e,o]),null!=e&&409==e.code?(t=$o.toLocalError(R.SendingMessageConflicted,e),a.sendNotification("error_occurred",t)):a.sendNotification("error_occurred",e)}))},deleteMessage:function(e,t){var n=this;this.wsApi.deleteMessage(e,t).then(function(e){},function(e){var t;null!=e&&((403!=e.code||"frozen domain"!=e.message)&&409==e.code&&"conflict"==e.message?(t=$o.toLocalError(R.DeletingMessageConflicted,e),n.sendNotification("error_occurred",t)):n.sendNotification("error_occurred",e))})},updateReadStatuses:function(n,i){var r=this;this.wsApi.updateReadStatuses(n,i).then(function(e){var t=r.dataStore.getTalkStatus(n);null!=t&&(t.updateByReadingMessagesFinished(i),r.sendNotification("notify_update_local_talk_status",t))},function(e){var t=r.dataStore.getTalkStatus(n);null!=t&&(t.updateByReadingMessagesCanceled(i),r.dataStore.setTalkStatus(t),r.sendNotification("notify_update_local_talk_status",t)),r.apiCaller.handleServerErrorDefault(e)})},searchMessagesAroundDateTime:function(e,t){return this.wsApi.searchMessagesAroundDateTime(e,t)},uploadV2:function(e,t,n,i){var r=this,o=this.dataFactory.newDummyFileMessage(t,n);this.sendNotification("create_message_start",o),this.prepareMessageFileAsync(n.file,n.thumb,e,!1).then(function(e){r._createMessage(t,c.file,e,o,i)},function(e){r.sendNotification("create_message_fail",[e,o],i)})},uploadForHubot:function(e,t,n){var i,r=this.dataStore.getTalk(e),t={file:t,thumb:null};null==r?(e=this.dataFactory.newDummyFileMessage(e,t),i={code:400,message:"invalid talk_id (deleted talk)"},F._w("["+L.dateStr(new Date)+"] ","WARNING method: upload",i,"","",""),this.sendNotification("create_message_fail",[i,e],n)):this.uploadV2(r.domainId,r.id,t,n)},uploadMultiV2:function(e,t,n,i,r){var o=this,a=this.dataFactory.newDummyMultipleFileMessage(t,n,i);this.sendNotification("create_message_start",a),this.prepareMessageFilesAsync(e,n,i,!1).then(function(e){o._createMessage(t,c.textMultipleFile,e,a,r)},function(e){o.sendNotification("create_message_fail",[e,a],r)})},uploadMultiForHubot:function(e,t,n,i){var r,o=this.dataStore.getTalk(e),n=n.map(function(e){return{file:e,thumb:null}});null==o?(e=this.dataFactory.newDummyMultipleFileMessage(e,t,n),r={code:400,message:"invalid talk_id (deleted talk)"},F._w("["+L.dateStr(new Date)+"] ","WARNING method: uploadMulti",r,"","",""),this.sendNotification("create_message_fail",[r,e],i)):this.uploadMultiV2(o.domainId,o.id,t,n,i)},validateFileName:function(t){var n=T.replace(t.name,"$","__");if(n==t.name)return t;try{return t.name=n,t}catch(e){var i=t.slice(0,t.size,t.type);return new File([i],n,{type:t.type})}},prepareMessageFilesAsync:function(n,t,i,r){for(var o=this,e=Promise.resolve([]),a=0;ae.version?n:(n=this.accountControlRequests,null!=W[t]?n.setReserved(t,e):n.h[t]=e,this.storage.setDirtyFlag(),e)},removeAccountControlRequest:function(e){e="_"+e.high+"_"+e.low;this.accountControlRequests.remove(e),this.storage.setDirtyFlag()},removeAccountControlRequests:function(){this.accountControlRequests=new B,this.storage.setDirtyFlag()},getAccountControlGroup:function(){return this.accountControlGroup},setAccountControlGroup:function(e){return this.accountControlGroup=e,this.storage.setDirtyFlag(),this.accountControlGroup},updateAccountControlGroup:function(e){var t,n,i;null!=this.accountControlGroup&&(n=this.accountControlGroup.id,t=e.id,null!=n)&&null!=t&&n.high==t.high&&n.low==t.low&&(null!=(n=e.group)&&this.accountControlGroup.group.versionOn.MAX_CONTENT_BYTES?{ok:!1,errorType:"limit",message:"Content length must be less than or equal to "+On.MAX_CONTENT_BYTES+" bytes, but the actual length is "+e.length+" bytes."}:Is.validateXml(e)},On.hasPathField=function(e){return C.foreach(e,function(e){return!On.isStringNullOrEmpty(e.path)})},On.validateUpdateNoteInput=function(e,t){if(0==Object.keys(e).length)return Da.Left("'update' function must not be called with no update fields.");if(null!=e.note_title){if("string"!=typeof e.note_title)return Da.Left("'note_title' must be specified as String type.");if(0==e.note_title.length)return Da.Left("'note_title' must not be empty.")}if(null!=e.note_content_type)return Da.Left("'note_content_type' must not be specified. It cannot be changed.");if(null!=e.note_content){if("string"!=typeof e.note_content)return Da.Left("'note_content' must be specified as String type.");if(0==e.note_content.length)return Da.Left("'note_content' must not be empty.");if(t==cn.getValue(_o.RICH_TEXT)){t=On.validateXmlContent(e);if(0===t[1])return Da.Left(t[2])}}t=null;if(null!=e.note_attachments){if(!(e.note_attachments instanceof Array&&null==e.note_attachments.__enum__&&On.all(e.note_attachments,On.isValidAsAttachment)))return Da.Left("'note_attachments' is an invalid value: "+JSON.stringify(e.note_attachments));t=On.toUpdateNoteAttachmentArray(e.note_attachments)}return Da.Right({title:e.note_title,content:e.note_content,attachments:t})},On.isValidAsAttachment=function(e){return On.isStringNullOrEmpty(e.url)?!On.isStringNullOrEmpty(e.path):!On.isStringNullOrEmpty(e.id)&&!On.isStringNullOrEmpty(e.name)&&null!=e.content_size&&!On.isStringNullOrEmpty(e.content_type)},On.toUpdateNoteAttachmentArray=function(e){var n=ya.parseInt64;return C.array(C.map(e,function(e){var t;return On.isStringNullOrEmpty(e.url)?_a.LocalFileAttachment(e):((t=null==e?null:JSON.parse(JSON.stringify(e))).id=n(e.id),_a.RemoteFileAttachment(t))}))},On.validateUpdateNoteOptions=function(e){var t={notify_talk_members_of_update:!0};if(null!=e&&null!=e.notify_talk_members_of_update){if("boolean"!=typeof e.notify_talk_members_of_update)return Da.Left("'notify_talk_members_of_update' must be of Bool type.");t.notify_talk_members_of_update=e.notify_talk_members_of_update}return Da.Right(t)},On.all=function(e,t){return C.foreach(e,t)},On.isStringNullOrEmpty=function(e){return null==e||0==e.length},On.prototype={__class__:On},(t["albero_cli.INotes"]=Fn).__name__=["albero_cli","INotes"],Fn.prototype={__class__:Fn},function(e,t){this.delegate=e;e=null!=t?t:{max:24,interval:12e4};this.ratelimit=new N(e.max,e.interval)}),da=((t["albero_cli.LimitedNotes"]=ha).__name__=["albero_cli","LimitedNotes"],ha.__interfaces__=[Fn],ha.prototype={limit:function(e){return this.ratelimit.apply(e)},get:function(e){var t=this;return this.limit(function(){return t.delegate.get(e)})},update:function(e,t,n){var i=this;return this.limit(function(){return i.delegate.update(e,t,n)})},delete:function(e){var t=this;return this.limit(function(){return t.delegate.delete(e)})},validateXml:function(e){return this.delegate.validateXml(e)},__class__:ha},function(e,t,n){this.utils=e,this.api=t,this.fileService=n}),fa=((t["albero_cli.Notes"]=da).__name__=["albero_cli","Notes"],da.__interfaces__=[Fn],da.prototype={toNoteId:function(e){return new ho(this.utils.parseInt64(e.id))},handleResponse:function(n,i,r){return function(e,t){null!=e?(e=ga.of(e),i(e)):(e=r(t),n(e))}},get:function(e){var i=this,r=this.toNoteId(e);return new Promise(function(e,t){var n=i.api,e=i.handleResponse(e,t,Ta.of);n.getNote(r,e)})},update:function(e,t,n){var i=On.validateUpdateNoteInput(t,e.noteRevision.contentType);switch(i[1]){case 0:return Promise.reject(ga.createInvalidParameterError(i[2]));case 1:var r=i[2],o=On.validateUpdateNoteOptions(n);switch(o[1]){case 0:return Promise.reject(ga.createInvalidParameterError(o[2]));case 1:return this.updateNote(e,r,o[2])}}},delete:function(e){var i=this,r=this.toNoteId(e);return new Promise(function(e,t){var n=i.api,e=i.handleResponse(e,t,wa.of);n.deleteNote(r,e)})},updateNote:function(e,t,n){var r=this,i=e.talkId_i64,o=new ho(e.id_i64),a=this.mergeNoteObject(e,t),s=this.createNoteLocalEdit(i,o,a,null),l=n.notify_talk_members_of_update;return new Promise(function(e,t){var n=r.api,i=a.currentRevision,e=r.handleResponse(e,t,Ea.of);n.updateNoteV2(o,i,s,l,e)})},mergeNoteObject:function(e,t){e={title:e.noteRevision.title,contentType:e.noteRevision.contentType,content:e.noteRevision.contentText,attachments:On.toUpdateNoteAttachmentArray(e.get_attachments()),currentRevision:e.noteRevision.revision};return null!=t.title&&(e.title=t.title),null!=t.content&&(e.content=t.content),null!=t.attachments&&(e.attachments=t.attachments),e},createNoteLocalEdit:function(e,t,n,i){var r=this.createNoteAttachmentFileInfoList(n.attachments),o=n.contentType==cn.getValue(_o.RICH_TEXT);return new fo(e,t,n.title,n.content,r,i,null,o)},createNoteAttachmentFileInfoList:function(e){for(var t=[],n=0;n>>31,t.low<<1);if(s=new E(s.high<<1|s.low>>>31,s.low<<1),0<=l)break}for(;;){var u=new E(0,0);if(s.high==u.high&&s.low==u.low)break;var c,u=I.ucompare(n.high,t.high);0<=(0!=u?u:I.ucompare(n.low,t.low))&&(a=new E(a.high|s.high,a.low|s.low),u=n.high-t.high|0,c=n.low-t.low|0,I.ucompare(n.low,t.low)<0&&(u--,u|=0),n=new E(u,c)),s=new E(s.high>>>1,s.high<<31|s.low>>>1);t=new E(t.high>>>1,t.high<<31|t.low>>>1)}return i&&(o=~a.high,0==(r=-a.low)&&(o++,o|=0),a=new E(o,r)),e.high<0&&(i=~n.high,0==(o=-n.low)&&(i++,i|=0),n=new E(i,o)),{quotient:a,modulus:n}},function(){}),Aa=((t["haxe.Int64Helper"]=Na).__name__=["haxe","Int64Helper"],Na.parseString=function(e){for(var t=new E(0,10),n=new E(0,0),i=new E(0,1),r=!1,o=T.trim(e),a=("-"==o.charAt(0)&&(r=!0,o=o.substring(1,o.length)),o.length),s=0,l=a;s>31,u);if(r){var c=65535&i.low,_=i.low>>>16,h=65535&u.low,d=u.low>>>16,f=I._mul(c,h),h=I._mul(_,h),c=I._mul(c,d),_=(I._mul(_,d)+(c>>>16)|0)+(h>>>16)|0,f=(c<<=16,I.ucompare(d=f+c|0,c)<0&&(_++,_|=0),h<<=16,I.ucompare(d=d+h|0,h)<0&&(_++,_|=0),_=_+(I._mul(i.low,u.high)+I._mul(i.high,u.low)|0)|0,new E(_,d)),c=n.high-f.high|0,h=n.low-f.low|0;if(I.ucompare(n.low,f.low)<0&&(c--,c|=0),!((n=new E(c,h)).high<0))throw new G("NumberFormatError: Underflow")}else{var _=65535&i.low,d=i.low>>>16,f=65535&u.low,c=u.low>>>16,h=I._mul(_,f),m=I._mul(d,f),p=I._mul(_,c),g=(I._mul(d,c)+(p>>>16)|0)+(m>>>16)|0,p=(p<<=16,I.ucompare(S=h+p|0,p)<0&&(g++,g|=0),m<<=16,I.ucompare(S=S+m|0,m)<0&&(g++,g|=0),g=g+(I._mul(i.low,u.high)+I._mul(i.high,u.low)|0)|0,new E(g,S)),m=n.high+p.high|0,u=n.low+p.low|0;if(I.ucompare(u,n.low)<0&&(m++,m|=0),(n=new E(m,u)).high<0)throw new G("NumberFormatError: Overflow")}var g=65535&i.low,S=i.low>>>16,p=65535&t.low,m=t.low>>>16,u=I._mul(g,p),y=I._mul(S,p),v=I._mul(g,m),w=(I._mul(S,m)+(v>>>16)|0)+(y>>>16)|0,w=(v<<=16,I.ucompare(u=u+v|0,v)<0&&(w++,w|=0),y<<=16,I.ucompare(u=u+y|0,y)<0&&(w++,w|=0),w+(I._mul(i.low,t.high)+I._mul(i.high,t.low)|0)|0),i=new E(w,u)}return n},function(){this.buf=new A,this.cache=[],this.useCache=Aa.USE_CACHE,this.useEnumIndex=Aa.USE_ENUM_INDEX,this.shash=new B,this.scount=0}),ba=((t["haxe.Serializer"]=Aa).__name__=["haxe","Serializer"],Aa.run=function(e){var t=new Aa;return t.serialize(e),t.toString()},Aa.prototype={toString:function(){return this.buf.b},serializeString:function(e){var t,n=this.shash,n=null!=W[e]?n.getReserved(e):n.h[e];null!=n?(this.buf.b+="R",this.buf.b+=null==n?"null":""+n):(n=this.shash,t=this.scount++,null!=W[e]?n.setReserved(e,t):n.h[e]=t,this.buf.b+="y",e=encodeURIComponent(e),this.buf.b+=P.string(e.length),this.buf.b+=":",this.buf.b+=null==e?"null":""+e)},serializeRef:function(e){for(var t=typeof e,n=0,i=this.cache.length;n>2]),this.buf.b+=String.fromCharCode(N[63&(D<<4|C>>4)]),this.buf.b+=String.fromCharCode(N[63&(C<<2|k>>6)]),this.buf.b+=String.fromCharCode(N[63&k])}E==I?(l=T.b[E++],w=T.b[E++],this.buf.b+=String.fromCharCode(N[l>>2]),this.buf.b+=String.fromCharCode(N[63&(l<<4|w>>4)]),this.buf.b+=String.fromCharCode(N[w<<2&63])):E==1+I&&(l=T.b[E++],this.buf.b+=String.fromCharCode(N[l>>2]),this.buf.b+=String.fromCharCode(N[l<<4&63]));break;default:this.useCache&&this.cache.pop(),null!=e.hxSerialize?(this.buf.b+="C",this.serializeString(U.getClassName(i)),this.useCache&&this.cache.push(e),e.hxSerialize(this),this.buf.b+="g"):(this.buf.b+="c",this.serializeString(U.getClassName(i)),this.useCache&&this.cache.push(e),this.serializeFields(e))}break;case 7:n=t[2];if(this.useCache){if(this.serializeRef(e))return;this.cache.pop()}this.buf.b+=P.string(this.useEnumIndex?"j":"w"),this.serializeString(U.getEnumName(n)),this.useEnumIndex?(this.buf.b+=":",this.buf.b+=P.string(e[1])):this.serializeString(e[0]),this.buf.b+=":";for(var n=e.length,R=(this.buf.b+=P.string(n-2),2),O=n;R=(null==(r=e.right)?0:r._height)?new Ma(e.left,e.key,e.value,new Ma(e.right,t,n,i)):new Ma(new Ma(e.left,e.key,e.value,e.right.left),e.right.key,e.right.value,new Ma(e.right.right,t,n,i)):o+2(null==(r=i.left)?0:r._height)?new Ma(new Ma(e,t,n,i.left),i.key,i.value,i.right):new Ma(new Ma(e,t,n,i.left.left),i.left.key,i.left.value,new Ma(i.left.right,i.key,i.value,i.right)):new Ma(e,t,n,i,(a(null==t?0:t._height)?null==(n=this.left)?0:n._height:null==(i=this.right)?0:i._height,this._height=e+1):this._height=r}),Da=((t["haxe.ds.TreeNode"]=Ma).__name__=["haxe","ds","TreeNode"],Ma.prototype={__class__:Ma},t["haxe.ds.Either"]={__ename__:["haxe","ds","Either"],__constructs__:["Left","Right"]}),Ca=(Da.Left=function(e){e=["Left",0,e];return e.__enum__=Da,e.toString=o,e},Da.Right=function(e){e=["Right",1,e];return e.__enum__=Da,e.toString=o,e},Da.__empty_constructs__=[],function(){Bn.call(this)}),ka=((t["haxe.ds.EnumValueMap"]=Ca).__name__=["haxe","ds","EnumValueMap"],Ca.__interfaces__=[Pn],Ca.__super__=Bn,Ca.prototype=e(Bn.prototype,{compare:function(e,t){var n=e[1]-t[1];return 0!=n?n:(n=e.slice(2),e=t.slice(2),0==n.length&&0==e.length?0:this.compareArgs(n,e))},compareArgs:function(e,t){var n=e.length-t.length;if(0!=n)return n;for(var i=0,r=e.length;i>6):(i<=65535?t.push(224|i>>12):(t.push(240|i>>18),t.push(128|i>>12&63)),t.push(128|i>>6&63)),t.push(128|63&i))}return new Fa(new As(t).buffer)},Fa.ofData=function(e){var t=e.hxBytes;return null!=t?t:new Fa(e)},Fa.fastGet=function(e,t){return e.bytes[t]},Fa.prototype={getString:function(e,t){if(e<0||t<0||e+t>this.length)throw new G(Ua.OutsideBounds);for(var n="",i=this.b,r=String.fromCharCode,o=e,a=e+t;o>10)))+r(1023&s|56320)}return n},toString:function(){return this.getString(0,this.length)},__class__:Fa},(t["haxe.io.BytesBuffer"]=Gn).__name__=["haxe","io","BytesBuffer"],Gn.prototype={getBytes:function(){var e=new Fa(new As(this.b).buffer);return this.b=null,e},__class__:Gn},(t["haxe.io.Input"]=Hn).__name__=["haxe","io","Input"],Hn.prototype={readByte:function(){throw new G("Not implemented")},readBytes:function(e,t,n){var i=n,r=e.b;if(t<0||n<0||e.lengthe.length)throw new G(Ua.OutsideBounds);if(0==this.len&&0e.length)throw new G(Ua.OutsideBounds);for(var i=e.b,r=n;0>8),this.writeByte(255&e)):(this.writeByte(255&e),this.writeByte(e>>8))},writeInt32:function(e){this.bigEndian?(this.writeByte(e>>>24),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)):(this.writeByte(255&e),this.writeByte(e>>8&255),this.writeByte(e>>16&255),this.writeByte(e>>>24))},__class__:Yn},(t["haxe.io.BytesOutput"]=Wn).__name__=["haxe","io","BytesOutput"],Wn.__super__=Yn,Wn.prototype=e(Yn.prototype,{writeByte:function(e){this.b.b.push(e)},writeBytes:function(e,t,n){var i=this.b;if(t<0||n<0||t+n>e.length)throw new G(Ua.OutsideBounds);i.b;for(var r=e.b,o=t,a=t+n;o>>23&255,n=8388607&e;return 0==n&&0==t?0:(1-(e>>>31<<1))*(1+Math.pow(2,-23)*n)*Math.pow(2,t-127)},La.floatToI32=function(e){var t,n;return 0==e?0:(n=e<0?-e:e,(t=Math.floor(Math.log(n)/.6931471805599453))<-127?t=-127:128>20&2047)-1023,e=4294967296*(1048575&t)+2147483648*(e>>>31)+(2147483647&e);return 0==e&&-1023==n?0:(1-(t>>>31<<1))*(1+Math.pow(2,-52)*e)*Math.pow(2,n)},La.doubleToI64=function(e){var t,n,i,r=La.i64tmp;return 0==e?(r.low=0,r.high=0):isFinite(e)?(n=e<0?-e:e,t=Math.floor(Math.log(n)/.6931471805599453),i=(n=Math.round(4503599627370496*(n/Math.pow(2,t)-1)))/4294967296|0,r.low=0|n,r.high=(e<0?-2147483648:0)|t+1023<<20|i):0";var n=typeof e;switch(n="function"==n&&(e.__name__||e.__ename__)?"object":n){case"function":return"";case"object":if(e instanceof Array){if(e.__enum__){if(2==e.length)return e[0];for(var i=e[0]+"(",r=(t+="\t",2),o=e.length;rthis.byteLength)throw new G("set() outside of range");for(var i=0,r=e.byteLength;ithis.byteLength)throw new G("set() outside of range");for(var s=0,l=a.length;st&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace)&&console.trace(),this;throw TypeError("listener must be a function")},Xa.prototype.once=function(e,t){var n;if(Qa(t))return n=!1,i.listener=t,this.on(e,i),this;throw TypeError("listener must be a function");function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}},Xa.prototype.removeListener=function(e,t){var n,i,r,o;if(!Qa(t))throw TypeError("listener must be a function");if(this._events&&this._events[e])if(r=(n=this._events[e]).length,i=-1,n===t||Qa(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Ja(n)){for(o=r;0{for(var n in t)$a(e,n,{get:t[n],enumerable:!0})})(Es={},{codePointCount:()=>rs,extractMentionParts:()=>cs,findMentionSuggestionHint:()=>hs,hasMentionPartForMeOrAll:()=>as,invalidateManualMentionMarkup:()=>ls,parseMessageMention:()=>us,removeMentionMarkup:()=>ss}),is=e=>Array.from(e),rs=e=>is(e).length,os=/{@:(ALL|\d+),(\d+)}@/g,as=e=>cs(e).some(({userIdNumStr:e})=>null===e||"ALL"===e),ss=t=>us(t).map(e=>"mention"===e.type?e.mentionText:"normal"===e.type?t.substring(e.start,e.end):"").join(""),ls=e=>e.replace(os,e=>e.substring(0,e.length-1)+" "),us=e=>{let n=0;var t=cs(e).flatMap(e=>{var t=[];return n!==e.start&&t.push({type:"normal",start:n,end:e.start}),t.push(e),n=e.end,t});return e.length!==n&&t.push({type:"normal",start:n,end:e.length}),t},cs=o=>{let a=0;return Array.from(o.matchAll(os)).flatMap(e=>{var t,n,i,r=null!=(r=e.index)?r:0;return r{e=e.match(_s);return null===e?null:{prev:e[1],atMarks:e[2],keyword:e[3]}},Es=Es,((t,n,i,r)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let e of ts(n))ns.call(t,e)||e===i||$a(t,e,{get:()=>n[e],enumerable:!(r=es(n,e))||r.enumerable});return t})($a({},"__esModule",{value:!0}),Es)),S.exports),fs=((String.prototype.__class__=t.String=String).__name__=["String"],(t.Array=Array).__name__=["Array"],(Date.prototype.__class__=t.Date=Date).__name__=["Date"],t.Int={__name__:["Int"]}),ms=t.Dynamic={__name__:["Dynamic"]},ps=t.Float=Number,gs=(ps.__name__=["Float"],t.Bool=Boolean),Ss=(gs.__ename__=["Bool"],t.Class={__name__:["Class"]}),ys={};(Ti={exports:null}).exports={upload:function(e){var t=e.url,n=e.headers,i=e.data,r=e.files,o=e.complete,a=new FormData;for(s in i)i.hasOwnProperty(s)&&a.append(s,i[s]);for(s in r)r.hasOwnProperty(s)&&a.append(s,r[s]);var s,l=new XMLHttpRequest;for(s in l.open("POST",t,!0),n)n.hasOwnProperty(s)&&l.setRequestHeader(s,n[s]);return l.onload=function(e){4===l.readyState&&o(200===l.status,l)},l.onerror=function(e){o(!1,l)},l.send(a),l}};var vs=Ti.exports,ws={websocketsbinary:!0,audio:!1},Ts={},Es={},Is=(Es.exports=(()=>{var e=require("fs");let r=require("libxmljs");var t=require("path");let n=e=>e.namespace()?.href()??"",a=e=>`{${n(e)}}`+e.name();t=t.resolve(__dirname,"./note-richtext.v1.xsd"),e=r.parseXml(e.readFileSync(t,{encoding:"utf-8"}),{baseUrl:t});let i=new Map;function o(e){var t=Number(e.root().getAttribute("version")?.value()),n=i.get(t);return n?e.validate(n)?{ok:!0}:{ok:!1,errorType:"xsd",message:e.validationErrors.map(e=>e.message.trim()).join(" ")}:{ok:!1,errorType:"version",message:`The note version ${t} is not supported by this package. Please use one of the following values: `+Array.from(i.keys()).join(",")}}i.set(1,e);let s=new Map;function l(e){try{return function n(e,i,r){for(var o of e.childNodes())if("element"===o.type()){if(!i.includes(o.name()))throw new Error(`Element '${a(o)}': This element is not allowed at '${o.path()}'.`);{let t=r.get(o.name())??[],e=[...i].filter(e=>t.includes(e))??[];n(o,e,r)}}}(e.root(),s.get(e.root().name()),s),{ok:!0}}catch(e){return{ok:!1,errorType:"descendant",message:e.message}}}s.set("note",["textsize","color","b","link","u","strike","checkbox"]),s.set("textsize",["color","b","link","u","strike"]),s.set("color",["textsize","b","link","u","strike"]),s.set("b",["textsize","color","link","u","strike"]),s.set("link",["textsize","b","strike"]),s.set("u",["textsize","color","b","link","strike"]),s.set("strike",["textsize","color","b","link","u"]),s.set("checkbox",["color","b","link","u","strike"]);let u=e=>"element"===e.type(),c=e=>"element"===e.type()&&"checkbox"===e.name(),_=e=>"element"===e.type()&&"link"===e.name(),h=e=>"element"===e.type()&&["textsize","color","b","link","u","strike"].includes(e.name());function d(e,t,n,i){for(var r of e.childNodes())t(r)&&(n(r)&&i.push(r),d(r,t,n,i))}function f(e){var t=[];d(e.root(),u,_,t);try{for(var n of t){var i=n.text();if(null==i||""===i)throw new Error(`Element '${a(n)}': This element must not be empty. (element path: ${n.path()})`);if(/\r|\n/.test(i))throw new Error(`Element '${a(n)}': This element must not contain a new line. (element path: ${n.path()})`);var r=n.attrs().filter(e=>"url"===e.name())[0].value();if(!/^[\x20-\x7E]+$/.test(r))throw new Error(`Element '${a(n)}': The attribute 'url' must be URL-encoded or must be converted by Punycode if it's an IDN. (element path: ${n.path()})`)}return{ok:!0}}catch(e){return{ok:!1,errorType:"link",message:e.message}}}function m(e){var t=[];d(e.root(),u,c,t);try{for(var n of t)if(/\r|\n/.test(n.text()))throw new Error(`Element '${a(n)}': This element must not contain a new line. (element path: ${n.path()})`);return{ok:!0}}catch(e){return{ok:!1,errorType:"checkbox",message:e.message}}}function p(e){var t=[];d(e.root(),u,h,t);try{for(var n of t){var i=n.text();if(null==i||""===i)throw new Error(`Element '${a(n)}': This element must not be empty. (element path: ${n.path()})`)}return{ok:!0}}catch(e){return{ok:!1,errorType:"text-decorator",message:e.message}}}return{validateXml:function(e){let t;try{t=r.parseXml(e).doc()}catch(e){return{ok:!1,errorType:"parse",message:e.message}}let n={ok:!0};var i;for(i of[o,l,f,m,p])if(!(n=i(t)).ok)break;return n}}})(),Es.exports),W={},Ns=y.ArrayBuffer||Kn,As=(null==Ns.prototype.slice&&(Ns.prototype.slice=Kn.sliceImpl),y.Uint8Array||jn._new);s.APP_STATE_CHANGED="app_state_changed",s.ACCESS_TOKEN_CHANGED="access_token_changed",s.CURRENT_USER_CHANGED="current_user_changed",s.CONFIGURATION_CHANGED="configuration_changed",s.DOMAIN_SELECTION_CHANGED="domain_selection_changed",s.TALK_SELECTION_CHANGED="talk_selection_changed",s.TALK_LIST_SCROLL_TO_TALK_TOP_NEEDED="talk_list_scroll_to_talk_top_needed",s.USER_SELECTION_NEEDED="user_selection_needed",s.USER_SELECTION_CHANGED="user_selection_changed",s.FRIEND_SELECTION_NEEDED="friend_selection_needed",s.COMMON_STAMP_SET_LOADED="common_stamp_set_loaded",s.STAMP_SELECTION_STARTED="stamp_selection_started",s.STAMP_SELECTION_ENDED="stamp_selection_ended",s.STAMP_SELECTION_CHANGED="stamp_selection_changed",s.ACTION_SELECTION_CHANGED="action_selection_changed",s.CURRENT_PAGE_CHANGED="current_page_changed",s.CURRENT_PAGE_REASSIGNED="current_page_reassgined",s.FILEINFO_SELECTION_CHANGED="fileinfo_selection_changed",s.NOTE_FILEINFO_SELECTION_CHANGED="note_fileinfo_selection_changed",s.MESSAGE_FILEINFO_SELECTION_CHANGED="message_fileinfo_selection_changed",s.STAGED_FILEINFO_SELECTION_CHANGED="staged_fileinfo_selection_changed",s.STAGED_FILEINFOS_ADDED="staged_fileinfos_added",s.STAGED_FILEINFOS_MOVED="staged_fileinfos_moved",s.CLOSE_FILEPREVIEW_MODAL="close_filepreview_modal",s.ERROR_OCCURRED="error_occurred",s.UNREAD_COUNT_CHANGED="brand_badge_changed",s.SEND_FORM_TOP_CHANGED="send_form_top_changed",s.SOLUTIONS_LOADED="solutions_loaded",s.RIGHT_PANE_OPENED="right_pane_opened",s.RIGHT_PANE_CLOSED="right_pane_closed",s.PASSWORD_EXPIRATION_OVERED="password_expiration_overed",s.PASSWORD_EXPIRATION_WARNED="password_expiration_warned",s.PHOTO_EDITOR_SAVED="photo_editor_saved",s.ICON_EDITOR_SAVED="icon_editor_saved",s.MC_AUTHENTICATED_USER_RECEIVED="mc_authenticated_user_received",s.KEYWORD_WATCHING_UPDATED="keyword_watching_updated",s.KEYWORD_DETECTION_UPDATED="keyword_detaction_updated",s.DEPARTMENT_SELECTION_CHANGED_FOR_MEMBERS_PAGE="department_selection_changed_for_members_page",s.PRESENCES_UPDATED="presences_updated",s.NOTEINFO_SELECTION_CHANGED="noteinfo_selection_changed",s.START_NOTE_EDITING="start_note_editing",s.OPEN_EXISTING_PAIR_TALK_COMPLETED="open_existing_pair_talk_completed",s.FIRST_ROUTING_WILL_START="first_routing_will_start",s.SIGNED_OUT="signed_out",s.ROUTUNG_TALK_FALLBACK="routing_talk_fallback",s.ROUTUNG_DOMAIN_FALLBACK="routing_domain_fallback",s.TALKS_SORT_MODE_CHANGED="talks_sort_mode_changed",s.DATA_RECOVERING="data_recovering",s.DATA_RECOVERED="data_recovered",s.NOTIFY_UPDATE_USER="notify_update_user",s.NOTIFY_ADD_FRIEND="notify_add_friend",s.NOTIFY_ADD_ACQUAINTANCE="notify_add_acquaintance",s.NOTIFY_ADD_ACQUAINTANCES="notify_add_acquaintances",s.NOTIFY_DELETE_FRIEND="notify_delete_friend",s.NOTIFY_DELETE_ACQUAINTANCE="notify_delete_acquaintance",s.NOTIFY_DELETE_ACQUAINTANCES="notify_delete_acquaintances",s.NOTIFY_UPDATE_DOMAIN_USERS="notify_update_domain_users",s.GET_DOMAIN_USERS_RESPONSED="get_domain_users_responsed",s.GET_USERS_RESPONSED="get_users_responsed",s.GET_PROFILE_RESPONSED="get_profile_responsed",s.GET_PROFILE_ERRORED="get_profile_errored",s.UPDATE_USER_RESPONSED="update_user_responsed",s.UPDATE_USER_ERRORED="update_user_errored",s.UPDATE_PROFILE_RESPONSED="update_profile_responsed",s.UPDATE_PROFILE_ERRORED="update_profile_errored",s.NOTIFY_UPDATE_DEPARTMENT_TREE="notify_update_department_tree",s.NOTIFY_UPDATE_DEPARTMENT_USERS="notify_update_department_users",s.GET_DEPARTMENT_TREE_RESPONSED="get_department_tree_responsed",s.GET_DEPARTMENT_TREE_CANCELED="get_department_tree_canceled",s.GET_DEPARTMENT_USERS_RESPONSED="get_department_users_responsed",s.GET_DEPARTMENT_USERS_CANCELED="get_department_users_canceled",s.GET_DEPARTMENT_USER_COUNT_RESPONSED="get_department_user_count_responsed",s.GET_ME_RESPONSED="get_me_responsed",s.DEPARTMENT_USER_COUNT_CLEARED="department_user_count_cleared",s.DEPARTMENT_USER_IDS_PREPARED="department_user_ids_prepared",s.NOTIFY_ADD_DOMAIN_INVITE="notify_add_domain_invite",s.NOTIFY_ACCEPT_DOMAIN_INVITE="notify_accept_domain_invite",s.NOTIFY_DELETE_DOMAIN_INVITE="notify_delete_domain_invite",s.NOTIFY_JOIN_DOMAIN="notify_join_domain",s.NOTIFY_UPDATE_DOMAIN="notify_update_domain",s.NOTIFY_LEAVE_DOMAIN="notify_leave_domain",s.NOTIFY_ADD_DOMAIN_MEMBERS="notify_add_domain_members",s.NOTIFY_CREATE_PAIR_TALK="notify_create_pair_talk",s.CREATE_PAIR_TALK_COMPLETE="create_pair_talk_complete",s.CREATE_PAIR_TALK_FAIL="create_pair_talk_fail",s.NOTIFY_CREATE_GROUP_TALK="notify_create_group_talk",s.CREATE_GROUP_TALK_COMPLETE="create_group_talk_complete",s.CREATE_GROUP_TALK_FAIL="create_group_talk_fail",s.NOTIFY_UPDATE_GROUP_TALK="notify_update_group_talk",s.UPDATE_GROUP_TALK_COMPLETE="update_group_talk_complete",s.UPDATE_GROUP_TALK_FAIL="update_group_talk_fail",s.NOTIFY_ADD_TALKERS="notify_add_talkers",s.NOTIFY_ADD_TALKERS_INCLUDING_ME="notify_add_talkers_including_me",s.NOTIFY_DELETE_TALKER="notify_delete_talker",s.NOTIFY_DELETE_TALK="notify_delete_talk",s.NOTIFY_UPDATE_READ_STATUSES="notify_update_read_statuses",s.NOTIFY_UPDATE_TALK_STATUS="notify_update_talk_status",s.NOTIFY_UPDATE_LOCAL_TALK_STATUS="notify_update_local_talk_status",s.NOTIFY_ADD_FAVORITE_TALK="notify_add_favorite_talk",s.NOTIFY_DELETE_FAVORITE_TALK="notify_delete_favorite_talk",s.NOTIFY_DISABLE_PUSH_NOTIFICATION="notify_disable_push_notification",s.NOTIFY_ENABLE_PUSH_NOTIFICATION="notify_enable_push_notification",s.ADD_TALKERS_SUCCEEDED="add_talkers_succeeded",s.ADD_TALKERS_FAILED="add_talkers_failed",s.NOTIFY_CREATE_MESSAGE="notify_create_message",s.NOTIFY_DELETE_MESSAGE="notify_delete_message",s.NOTIFY_GET_MESSAGES="notify_get_messages",s.NOTIFY_GET_MESSAGE_READ_STATUS="notify_get_message_status",s.CREATE_MESSAGE_START="create_message_start",s.CREATE_MESSAGE_COMPLETE="create_message_complete",s.CREATE_MESSAGE_FAIL="create_message_fail",s.ADD_FAVORITE_MESSAGE_COMPLETED="add_favorite_message_completed",s.DELETE_FAVORITE_MESSAGE_COMPLETED="delete_favorite_message_completed",s.GET_FAVORITE_MESSAGES_COMPLETED="get_favorite_messages_completed",s.NOTIFY_ADD_FAVORITE_MESSAGE="notify_add_favorite_message",s.NOTIFY_DELETE_FAVORITE_MESSAGE="notify_delete_favorite_message",s.NOTIFY_SCHEDULE_MESSAGE="notify_schedule_message",s.NOTIFY_PROCESSED_SCHEDULED_MESSAGE="notify_processed_scheduled_message",s.NOTIFY_DELETE_SCHEDULED_MESSAGE="notify_delete_scheduled_message",s.GET_SCHEDULED_MESSAGES_COMPLETED="get_scheduled_messages_completed",s.GET_SCHEDULED_MESSAGES_FAILED="get_scheduled_messages_failed",s.DELETE_SCHEDULED_MESSAGES_COMPLETED="delete_scheduled_messages_completed",s.SCHEDULE_MESSAGE_STARTED="schedule_message_started",s.SCHEDULE_MESSAGE_COMPLETED="schedule_message_completed",s.SCHEDULE_MESSAGE_FAILED="schedule_message_faileed",s.REPLACE_SCHEDULE_MESSAGE_FINISHED="replace_schedule_message_finished",s.NOTIFY_UPDATE_MESSAGE_REACTIONS="notify_update_message_reactions",s.GET_MESSAGE_REACTION_SUMMARIES_COMPLETED="get_message_reaction_summaries_completed",s.GET_MESSAGE_REACTION_SUMMARIES_FAILED="get_message_reaction_summaries_failed",s.SET_MESSAGE_REACTION_COMPLETED="set_message_reaction_completed",s.SET_MESSAGE_REACTION_FAILED="set_message_reaction_failed",s.RESET_MESSAGE_REACTION_COMPLETED="reset_message_reaction_completed",s.RESET_MESSAGE_REACTION_FAILED="reset_message_reaction_failed",s.NOTIFY_CREATE_ANNOUNCEMENT="notify_create_announcement",s.NOTIFY_DELETE_ANNOUNCEMENT="notify_delete_announcement",s.NOTIFY_UPDATE_ANNOUNCEMENT_STATUS="notify_update_announcement_status",s.NOTIFY_GET_ANNOUNCEMENTS="notify_get_announcements",s.CREATE_ANNOUNCEMENT_START="create_announcement_start",s.CREATE_ANNOUNCEMENT_COMPLETE="create_announcement_complete",s.CREATE_ANNOUNCEMENT_FAIL="create_announcement_fail",s.NOTIFY_UPDATE_QUESTION="notify_update_question",s.NOTIFY_GET_QUESTIONS="get_questions_responsed",s.NOTIFY_CREATE_ATTACHMENT="notify_create_attachment",s.NOTIFY_DELETE_ATTACHMENT="notify_delete_attachment",s.GET_FILE_RESPONSED="get_file_responsed",s.GET_FILE_PREVIEW="get_file_preview",s.CREATE_FILE_PREVIEW="create_file_preview",s.GET_NOTE_STATUSES_LOADED="get_note_statuses_loaded",s.GET_NOTE_LOADED="get_note_loaded",s.GET_NOTE_FAILED_BY_NOTE_NOT_FOUND="get_note_failed_by_note_not_found",s.CREATE_NOTE_COMPLETED="create_note_completed",s.CREATE_NOTE_FAILED="create_note_failed",s.UPDATE_NOTE_LOCAL_EDIT="update_note_local_edit",s.CLEAR_NOTE_LOCAL_EDIT="clear_note_local_edit",s.UPDATE_NOTE_SETTING_COMPLETED="update_note_setting_completed",s.UPDATE_NOTE_SETTING_FAILED_BY_NOT_FOUND="update_note_setting_failed_by_not_found",s.UPDATE_NOTE_SETTING_FAILED_BY_CONFLICT="update_note_setting_failed_by_conflict",s.UPDATE_NOTE_SETTING_FAILED_BY_EDITING="update_note_setting_failed_by_editing",s.UPDATE_NOTE_COMPLETED="update_note_completed",s.DELETE_NOTE_COMPLETED="delete_note_completed",s.NOTIFY_CREATE_NOTE="notify_create_note",s.NOTIFY_UPDATE_NOTE_PARTIALLY="notify_update_note_partially",s.NOTIFY_DELETE_NOTE="notify_delete_note",s.NOTIFY_UPDATE_NOTE_FOR_SETTING="notify_update_note_for_setting",s.NOTIFY_UPDATE_NOTE_FOR_SUMMARY="notify_update_note_for_revision",s.CREATE_NOTE_BUTTON_CLICKED="create_note_button_clicked",s.NOTIFY_LOCK_NOTE="notify_lock_note",s.NOTIFY_UNLOCK_NOTE="notify_unlock_note",s.NOTIFY_SEARCH_MESSAGES="notify_search_messages",s.NOTIFY_SEARCH_ATTACHMENTS="notify_search_attachments",s.NOTIFY_SEARCH_MESSAGES_FAIL="notify_search_messages_fail",s.NOTIFY_SEARCH_ATTACHMENTS_FAIL="notify_search_attachments_fail",s.NOTIFY_SEARCH_PREPARE="notify_search_prepare",s.NOTIFY_SEARCH_CLEAR="notify_search_clear",s.NOTIFY_FILTER_BOX_TEXT_CHANGED="notify_filter_box_text_changed",s.NOTIFY_SEARCH_BOX_POPUP="notify_search_box_popup",s.NOTIFY_ADD_ACCOUNT_CONTROL_REQUEST="notify_add_account_control_request",s.NOTIFY_DELETE_ACCOUNT_CONTROL_REQUEST="notify_delete_account_control_request",s.NOTIFY_JOIN_ACCOUNT_CONTROL_GROUP="notify_join_account_control_group",s.NOTIFY_UPDATE_ACCOUNT_CONTROL_GROUP_PARTIALLY="notify_update_account_control_group_partially",s.NOTIFY_LEAVE_ACCOUNT_CONTROL_GROUP="notify_leave_account_control_group",s.PREPARE_CONFERENCE_FROM_MESSAGE="prepare_conference_from_message",s.JOIN_CONFERENCE_RESPONSED="join_conference_responsed",s.JOIN_CONFERENCE_CANCELED="join_conference_canceled",s.GET_CONFERENCE_PARTICIPANTS_RESPONSED="get_conference_participants_responsed",s.NOTIFY_OPEN_CONFERENCE="notify_open_conference",s.NOTIFY_CLOSE_CONFERENCE="notify_close_conference",s.NOTIFY_CONFERENCE_PARTICIPANT_JOIN="notify_conference_participant_join",s.NOTIFY_CONFERENCE_PARTICIPANT_LIMIT="notify_conference_participant_limit",s.NOTIFY_CONFERENCE_PARTICIPANT_REJECT="notify_conference_participant_reject",s.NOTIFY_ALL_TALK_MEMBERS_REJECTED_CONFERENCE="notify_all_talk_members_rejected_conference",s.NOTIFY_UPDATE_DOMAIN_STAMP_SETTING="notify_update_domain_stampsetting",s.NOTIFY_UPDATE_STAMPSET="notify_update_stampset",s.NOTIFY_DELETE_STAMPSET="notify_delete_stampset",s.NOTIFY_UPDATE_DOMAIN_BUILTIN_STAMP_SETTING="notify_update_domain_builtin_stampsetting",s.NOTIFY_FLOW_NOTIFICATION_BADGE="notify_flow_notification_badge",s.GET_FLOW_NOTIFICATION_BADGES_COMPLETED="get_flow_notification_badges_completed",s.GET_FLOW_NOTIFICATION_BADGES_FAILED="get_flow_notification_badges_failed",s.GET_DIRECT_APPS_COMPLETED="get_direct_apps_completed",s.GET_DIRECT_APPS_FAILED="get_direct_apps_failed",s.START_NOTIFICATION_FAILED="start_notification_failed",V.DEFAULT_RESOLVER=new j,V.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:",_.accessMode=si.Disabled,ae.ANNOUNCEMENTS_KEY="-1",ci.__meta__={fields:{api:{inject:null}}},ci.NAME="AccountControlRequest",hi.__meta__={fields:{api:{inject:null},dataStore:{inject:null}}},hi.NAME="Conference",fi.__meta__={fields:{api:{inject:null}}},fi.NAME="Device",pi.__meta__={fields:{api:{inject:null}}},pi.NAME="Domain",Si.__meta__={fields:{api:{inject:null}}},Si.NAME="File",vi.__meta__={fields:{api:{inject:null}}},vi.NAME="FilePreview",wi.__meta__={fields:{api:{inject:null},dataStore:{inject:null}}},wi.NAME="LoadStampset",Ii.__meta__={fields:{api:{inject:null}}},Ii.NAME="ManageFriends",Ni.__meta__={fields:{api:{inject:null}}},Ni.NAME="Message",bi.__meta__={fields:{dataStore:{inject:null},api:{inject:null}}},bi.NAME="MessageReaction",Di.__meta__={fields:{api:{inject:null},dataStore:{inject:null},fileService:{inject:null}}},Di.NAME="Note",ki.__meta__={fields:{api:{inject:null},keywordWatcher:{inject:null},readStatusUpdater:{inject:null}}},ki.NAME="Read",Oi.__meta__={fields:{api:{inject:null}}},Oi.NAME="ReloadData",Fi.__meta__={fields:{dataStore:{inject:null},api:{inject:null}}},Fi.NAME="ScheduleMessage",Ui.__meta__={fields:{api:{inject:null},searchService:{inject:null}}},Ui.NAME="Search",Pi.__meta__={fields:{dataStore:{inject:null},settings:{inject:null}}},Pi.NAME="SelectTalk",Gi.__meta__={fields:{api:{inject:null}}},Gi.NAME="Send",Hi.__meta__={fields:{accessTokenResolver:{inject:null},session:{inject:null}}},Hi.NAME="SignIn",zi.__meta__={fields:{api:{inject:null},settings:{inject:null},dataStore:{inject:null}}},zi.NAME="SignOut",Yi.__meta__={fields:{api:{inject:null},dataStore:{inject:null}}},Yi.NAME="Talk",Ki.__meta__={fields:{api:{inject:null},dataStore:{inject:null}}},Ki.NAME="UpdateProfile",ji.__meta__={fields:{api:{inject:null}}},ji.NAME="UpdateUser",Vi.__meta__={fields:{userPresences:{inject:null},api:{inject:null},settings:{inject:null}}},Vi.NAME="UpdateUserPresences",Vi.MAX_USERS_PER_API=100,qi.__meta__={fields:{routing:{inject:null}}},qi.NAME="Url",we.TalkAutoScrollDelay=1,we.TalkAutoScrollImmediately=2,we.TalkAutoScrollNone=3,we.NotificationPopupTime5Sec=5,we.TalksSortModeNewMessagesFirst="new_messages_first",we.TalksSortModeUnreadMessagesFirst="unread_messages_first",we.TalksSortModeOldMessagesFirst="old_messages_first",we.DomainsSortModeNameOrderAsc="name_order_asc",we.OLD_KEY_RIGHT_PANEL_OPENED="right_panel_opened",we.OLD_KEY_RIGHT_PANEL_WIDTH="right_panel_width",we.OLD_KEY_APP_LEFT_PANEL_OPENED="app_left_panel_opened",we.NAME="browser_settings",tr.MAX_SIZE=72,Ee.INCOMING_TIME=6e4,Ne.DEFAULT_PRESENCE_EXPIRATION=3e5,Ne.DEFAULT_UPDATE_LAST_USED_AT_INTERVAL=6e5,nr.DEFAULT_TTL=3600,nr.DEFAULT_MAX_PARTICIPANTS=8,mr.stagedFileInfosMaxId=0,Xe.TIMESTAMP_SHIFT=22,O.MAX_READ_USER_IDS_COUNT=16,dt.QUERY_DATE_TODAY="t",dt.QUERY_DATE_YESTERDAY="-1d",dt.QUERY_DATE_THREE_DAYS_BEFORE="-3d",Yr.HISTORY_TAB_NAME="stamp-history",Ft.SIXTY_MINUTES=new E(0,36e5),Ft.FIFTEEN_MINUTES=new E(0,9e5),ho.PREFIX="note-",ho.nextDummyId=new E(-1,-1),hn.CONTINUE_MARGIN_RATE=.1,pn.CHEKBOX_UNCHECKED="- [ ] ",pn.CHEKBOX_CHECKED="- [x] ",Tn.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",En.TU_REG=new v("ッ([BCDFGHIJKLMNOPQRSTUVWYZ])","gm"),En.XTU_REG=new v("ッ","gm"),F.EMERGENCY=0,F.ALERT=1,F.CRITICAL=2,F.ERROR=3,F.WARNING=4,F.NOTICE=5,F.INFO=6,F.DEBUG=7,F.level=6,F._d=F._nop,F._i=null!=console?console.info.bind(console):F._nop,F._w=null!=console?console.warn.bind(console):F._nop,F._e=null!=console?console.error.bind(console):F._nop,Ao.HIRAGANA_SMALL_A=12353,Ao.HIRAGANA_NN=12435,Ao.KATAKANA_SMALL_A=12449,Do.NAME="accessTokenResolver",i.NAME="Proxy",Co.__meta__={fields:{settings:{inject:null},api:{inject:null}}},ko.__meta__={fields:{api:{inject:null},dataStore:{inject:null},settings:{inject:null},keywordWatcher:{inject:null}}},ko.NAME="broadcast",Ro.__meta__={fields:{wsApi:{inject:null},apiCaller:{inject:null},apiNote:{inject:null},settings:{inject:null},dataStore:{inject:null},dataFactory:{inject:null},fileService:{inject:null},searchService:{inject:null},lastUsedAtUpdater:{inject:null}}},Ro.NAME="api",Ro.API_VERSION="1.127",Ro.UPDATE_VERSION="1.127_2",Ro.ACTIONS_COUNT_PER_API=20,Oo.__meta__={fields:{rpc:{inject:null}}},Oo.NAME="apiCaller",Oo.DELAY_FOR_DB_REPLICATION=500,Oo.DELAY_FOR_DB_REPLICATION_FOR_RETRY=1e3,Oo.API_TRY_COUNT=3,Fo.__meta__={fields:{apiCaller:{inject:null},dataStore:{inject:null},settings:{inject:null}}},Fo.NAME="apiNote",xo.NAME="appState",Uo.__meta__={fields:{dataStore:{inject:null}}},Uo.NAME="dataFactory",Lo.NAME="dataStore",Lo.STORAGE_KEY_FOR_GENERAL="dataStore",Lo.STORAGE_KEY_FOR_TALKS="dataStoreTalks",Lo.STORAGE_KEY_FOR_TALK_STATUSES="dataStoreTalkStatuses",Lo.STORAGE_KEY_FOR_USERS="dataStoreUsers",Lo.TYPE_FRIEND=0,Lo.TYPE_ACQUAINSTANCE=1,Lo.TYPE_NONE=2,Po.__meta__={fields:{settings:{inject:null},dataStore:{inject:null}}},Po.NAME="features",Go.NAME="fileService",Ho.__meta__={fields:{settings:{inject:null}}},zo.__meta__={fields:{settings:{inject:null},features:{inject:null},dataStore:{inject:null}}},zo.NAME="keywordWatcher",zo.TALK_KEY_PREFIX="talk_",zo.ANNOUNCEMENT_KEY_PREFIX="announcement_",Yo.TEMP_HALF_SPACE="&SPACE",Yo.TEMP_FULL_SPACE="&FULL_PITCH_SPACE",Vo.__meta__={fields:{settings:{inject:null}}},Vo.NAME="lastUsedAtUpdater",qo.__meta__={fields:{settings:{inject:null},dataStore:{inject:null}}},qo.NAME="limitations",Xo.__meta__={fields:{broadcast:{inject:null},lastUsedAtUpdater:{inject:null}}},Xo.NAME="rpc",Xo.lastMsgId=0,Qo.PING_INTERVAL_ON_CONNECTED=45e3,ta.__meta__={fields:{dataStore:{inject:null},api:{inject:null}}},ta.NAME="readStatusUpdater",na.__meta__={fields:{settings:{inject:null},dataStore:{inject:null}}},na.NAME="routing",oa.__meta__={fields:{settings:{inject:null}}},oa.NAME="searchService",oa.LOAD_SIZE=20,oa.DUMMY_VALUE_FOR_SET=1,aa.__meta__={fields:{settings:{inject:null},dataStore:{inject:null},api:{inject:null}}},aa.NAME="session",sa.NAME="settings",sa.KEY_ACCESS_TOKEN="access_token",sa.KEY_SELECTED_DOMAIN_ID_H="selected_domain_id_h",sa.KEY_SELECTED_DOMAIN_ID_L="selected_domain_id_l",sa.KEY_SELECTED_STAMP_TAB_ID="selected_stamp_tab_id",sa.KEY_INPUT_TEXT="input_text",sa.KEY_COPY_PROFILE_TO_ALL_DOMAINS="copy_profile_to_all_domains",sa.KEY_SELECTED_DEPARTMENT_IDS="selected_department_ids",sa.KEY_SEARCH_HISTORIES="search_histories",sa.KEY_MULTI_VIEW_MODE="multi_view_mode",sa.KEY_PASSWORD_WARNING_SKIP_UNTIL="password_warning_skip_until",sa.KEY_LAST_USED_EXPIRED_AT="last_used_expired_at",sa.KEY_IDFV="idfv",la.__meta__={fields:{dataStore:{inject:null}}},la.NAME="talksService",ua.__meta__={fields:{dataStore:{inject:null}}},ua.NAME="userPresences",ca.__meta__={fields:{apiCaller:{inject:null}}},ca.NAME="wsApi",On.MAX_CONTENT_BYTES=1e5,fa.CONTENT_TYPE_XML="xml",fa.CONTENT_TYPE_TEXT="text",Ln.NAME="Mediator",pa.__meta__={fields:{dataStore:{inject:null},api:{inject:null}}},pa.NAME="commandline",pa.DATA_SAVE_SPAN=5e3,Sa.INVALID_PARAMETER="INVALID_PARAMETER",Sa.FORBIDDEN="FORBIDDEN",Sa.NOT_FOUND="NOT_FOUND",Sa.LOCKED_BY_ANOTHER_USER="LOCKED_BY_ANOTHER_USER",Sa.CONFLICT="CONFLICT",Sa.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",Sa.CLIENT_UPGRADE_REQUIRED="CLIENT_UPGRADE_REQUIRED",Sa.UNKNOWN="UNKNOWN",I._mul=null!=Math.imul?Math.imul:function(e,t){return e*(65535&t)+(e*(t>>>16)<<16|0)|0},Aa.USE_CACHE=!1,Aa.USE_ENUM_INDEX=!1,Aa.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:",Ra.count=0,La.i64tmp=new E(0,0),H.__toStr={}.toString,jn.BYTES_PER_ELEMENT=1,Ha.FLOAT_SINGLE_MIN=1401298464324817e-60,Ha.FLOAT_SINGLE_MAX=34028234663852886e22,Ha.FLOAT_DOUBLE_MIN=5e-324,Ha.FLOAT_DOUBLE_MAX=17976931348623157e292,$n.main()}("undefined"!=typeof exports?exports:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this,"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this); \ No newline at end of file +!function(S,y){function o(){return G.__string_rec(this,"")}var t={};function e(e,t){function n(){}n.prototype=e;var i,r=new n;for(i in t)r[i]=t[i];return t.toString!==Object.prototype.toString&&(r.toString=t.toString),r}function v(e,t){this.r=new RegExp(e,t.split("u").join(""))}function C(){}function T(){}function N(e,t){this.basetime=0,this.count=0,this.max=e,this.interval=t}function U(){}function A(){this.b=""}function w(){}function x(){}function b(){}function M(){(M.instance=this).initializeFacade()}function D(){}function K(){}function j(){}function V(e){this.buf=e,this.length=e.length,this.pos=0,this.scache=[],this.cache=[],null==(e=V.DEFAULT_RESOLVER)&&(e=new j,V.DEFAULT_RESOLVER=e),this.resolver=e}function q(e){V.call(this,e)}function X(){}function Q(){}function J(){}function Z(){}function $(){}function ee(){}function te(){}function ne(){}function ie(){}function a(){}function re(){}function oe(){}function ae(){}function se(){}function le(){}function ue(){this.facade=M.getInstance()}function ce(){}function _e(){ue.call(this)}function n(){_e.call(this),l.getInstance().autoBind(this)}function he(e,t,n){this.email=e,this.pass=t,this.accessToken=n}function de(e){null!=e&&(this.id=e.id,this.group=new $i(e.group),this.profilePolicy=new er(e.profile_policy))}function fe(e){null!=e&&(this.id=e.id,null!=e.group&&(this.group=new $i(e.group)),null!=e.profile_policy)&&(this.profilePolicy=new er(e.profile_policy))}function me(e){null!=e&&(this.id=k.fromIntOrInt64(e.id),this.groupName=e.group_name,this.groupOwnerName=e.group_owner_name,this.groupOwnerEmail=e.group_owner_email,this.hasDomainInvite=e.has_domain_invite,this.updatedAt=e.updated_at,this.version=e.version)}function pe(e){this.value=e}function ge(e){null!=e&&(this.id=e.announcement_id,this.domainId=e.domain_id,this.groupId=e.group_id,this.groupName=e.group_name,this.type=O.typeOf(e.type),this.content=e.content,this.userId=e.user_id,this.userName=e.user_name,this.createdAt=e.created_at)}function Se(e){this.unreadCount=0,null!=e&&(this.domainId=e.domain_id,this.unreadCount=null!=e.unread_count?e.unread_count:0,this.maxAnnouncementId=e.max_announcement_id,null!=e.max_announcement&&(this.maxAnnouncement=new ge(e.max_announcement)),this.maxReadAnnouncementId=e.max_read_announcement_id,null==this.maxReadAnnouncementId)&&0==this.unreadCount&&(this.maxReadAnnouncementId=this.maxAnnouncementId)}function ye(e){null!=e&&(this.domainId=e.domain_id,this.readAnnouncementIds=e.read_announcement_ids)}function ve(){this.announcements=new B}function Te(e){if(this.notificationInvisibleTalkSound=!0,this.notificationInvisibleTalkPopup=!1,this.notificationVisibleTalkSound=!1,this.notificationVisibleTalkPopup=!1,this.notificationIncludingMessageContent=!0,this.notificationPopupTime=5,this.talkAutoScroll=1,this.legacyNoteEnabled=!1,this.leaveTalksEnabled=!1,this.talksSortMode="new_messages_first",this.talkRightPanelOpened=!0,this.talkRightPanelWidth=0,this.keywordWatchingText="",this.keywordWatchingEmphasis=!1,this.keywordWatchingSelfMessage=!1,this.keywordWatchingActionReply=!1,this.userDataContainer=[],this.language="ja",this.conferenceIncomingSound=!0,this.domainsSortMode="name_order_asc",this.appLeftPanelOpened=!1,this.appLeftPanelWidth=0,this.scheduledMessageDefaultTimeStr="09:00",null!=e){var t;if(null!=e.notificationInvisibleTalkSound&&(this.notificationInvisibleTalkSound=e.notificationInvisibleTalkSound),null!=e.notificationInvisibleTalkPopup&&(this.notificationInvisibleTalkPopup=e.notificationInvisibleTalkPopup),null!=e.notificationVisibleTalkSound&&(this.notificationVisibleTalkSound=e.notificationVisibleTalkSound),null!=e.notificationVisibleTalkPopup&&(this.notificationVisibleTalkPopup=e.notificationVisibleTalkPopup),null!=e.notificationIncludingMessageContent&&(this.notificationIncludingMessageContent=e.notificationIncludingMessageContent),null!=e.notificationPopupTime&&(this.notificationPopupTime=e.notificationPopupTime),null!=e.notificationVisibleTalkAutoScroll&&(this.talkAutoScroll=e.notificationVisibleTalkAutoScroll?1:3),null!=e.talkAutoScroll&&(this.talkAutoScroll=e.talkAutoScroll),null!=e.legacyNoteEnabled&&(this.legacyNoteEnabled=e.legacyNoteEnabled),null!=e.leaveTalksEnabled&&(this.leaveTalksEnabled=e.leaveTalksEnabled),null!=e.talksSortMode&&(this.talksSortMode=e.talksSortMode),this.talkRightPanelOpened=null!=e.talkRightPanelOpened?e.talkRightPanelOpened:null==a.getItem("right_panel_opened"),null!=e.talkRightPanelWidth?this.talkRightPanelWidth=e.talkRightPanelWidth:(t=P.parseInt(a.getItem("right_panel_width")),this.talkRightPanelWidth=null==t?0:t),null!=e.keywordWatchingText&&(this.keywordWatchingText=e.keywordWatchingText),null!=e.keywordWatchingEmphasis&&(this.keywordWatchingEmphasis=e.keywordWatchingEmphasis),null!=e.keywordWatchingSelfMessage&&(this.keywordWatchingSelfMessage=e.keywordWatchingSelfMessage),null!=e.keywordWatchingActionReply&&(this.keywordWatchingActionReply=e.keywordWatchingActionReply),null!=e.userDataContainer)for(var n=0,i=G.__cast(e.userDataContainer,Array);ne.length)throw new H(Ha.OutsideBounds);this.b=e.b,this.pos=t,this.len=n,this.totlen=n}function Kn(){}function jn(){this.b=new zn}function Vn(e){if(e instanceof Array&&null==e.__enum__)this.a=e,this.byteLength=e.length;else{this.a=[];for(var t=0,n=e;t=e.length);){if(!this.matchSub(e,n)){i+=P.string(L.substr(e,n,null));break}var r=this.matchedPos(),i=(i+=P.string(L.substr(e,n,r.pos-n)))+P.string(t(this)),n=0==r.len?(i+=P.string(L.substr(e,r.pos,1)),r.pos+1):r.pos+r.len;if(!this.r.global)break}return!this.r.global&&0r.interval)r.basetime=n,r.count=1;else{if(!(0").join(">"),t?e.split('"').join(""").split("'").join("'"):e},w.startsWith=function(e,t){return e.length>=t.length&&L.substr(e,0,t.length)==t},w.isSpace=function(e,t){e=L.cca(e,t);return 8>>=4););if(null!=t)for(;n.length=this.length)throw new H("Invalid object");if(103==this.buf.charCodeAt(this.pos))break;var t=this.unserialize();if("string"!=typeof t)throw new H("Invalid object key");var n=this.unserialize();e[t]=n}this.pos++},unserializeEnum:function(e,t){if(58!=this.buf.charCodeAt(this.pos++))throw new H("Invalid enum format");var n=this.readDigits();if(0==n)return x.createEnum(e,t);for(var i=[];0=this.scache.length)throw new H("Invalid string reference");return this.scache[t];case 97:this.buf;var r=[];for(this.cache.push(r);;){var o=this.buf.charCodeAt(this.pos);if(104==o){this.pos++;break}117==o?(this.pos++,o=this.readDigits(),r[r.length+o-1]=null):r.push(this.unserialize())}return r;case 98:var a=new B;for(this.cache.push(a),this.buf;104!=this.buf.charCodeAt(this.pos);){var s=this.unserialize(),l=this.unserialize();null!=W[s]?a.setReserved(s,l):a.h[s]=l}return this.pos++,a;case 99:e=this.unserialize(),t=this.resolver.resolveClass(e);if(null==t)throw new H("Class not found "+e);e=x.createEmptyInstance(t);return this.cache.push(e),this.unserializeObject(e),e;case 100:return this.readFloat();case 102:return!1;case 105:return this.readDigits();case 106:t=this.unserialize(),e=this.resolver.resolveEnum(t);if(null==e)throw new H("Enum not found "+t);this.pos++;var u=this.readDigits(),c=e.__constructs__.slice()[u];if(null==c)throw new H("Unknown enum index "+t+"@"+u);t=this.unserializeEnum(e,c);return this.cache.push(t),t;case 107:return NaN;case 108:var _=new ni;for(this.cache.push(_),this.buf;104!=this.buf.charCodeAt(this.pos);)_.add(this.unserialize());return this.pos++,_;case 109:return-1/0;case 110:return null;case 111:u={};return this.cache.push(u),this.unserializeObject(u),u;case 112:return 1/0;case 113:for(var h=new Ua,d=(this.cache.push(h),this.buf,this.buf.charCodeAt(this.pos++));58==d;){var f=this.readDigits(),m=this.unserialize();h.h[f]=m,d=this.buf.charCodeAt(this.pos++)}if(104!=d)throw new H("Invalid IntMap format");return h;case 114:e=this.readDigits();if(e<0||e>=this.cache.length)throw new H("Invalid reference");return this.cache[e];case 115:var c=this.readDigits(),p=this.buf;if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos>2)+(2<=t?t-1:0))),T=0;S>4),g[p.charCodeAt(S++)]),E=(v.b[T++]=255&(E<<4|w>>2),g[p.charCodeAt(S++)]);v.b[T++]=255&(w<<6|E)}return 2<=t&&(u=g[p.charCodeAt(S++)],e=g[p.charCodeAt(S++)],v.b[T++]=255&(u<<2|e>>4),3==t)&&(u=g[p.charCodeAt(S++)],v.b[T++]=255&(e<<4|u>>2)),this.pos+=c,this.cache.push(v),v;case 116:return!0;case 118:return 48<=this.buf.charCodeAt(this.pos)&&this.buf.charCodeAt(this.pos)<=57&&48<=this.buf.charCodeAt(this.pos+1)&&this.buf.charCodeAt(this.pos+1)<=57&&48<=this.buf.charCodeAt(this.pos+2)&&this.buf.charCodeAt(this.pos+2)<=57&&48<=this.buf.charCodeAt(this.pos+3)&&this.buf.charCodeAt(this.pos+3)<=57&&45==this.buf.charCodeAt(this.pos+4)?(I=L.strDate(L.substr(this.buf,this.pos,19)),this.pos+=19):(t=this.readFloat(),I=new Date(t)),this.cache.push(I),I;case 119:e=this.unserialize(),u=this.resolver.resolveEnum(e);if(null==u)throw new H("Enum not found "+e);c=this.unserializeEnum(u,this.unserialize());return this.cache.push(c),c;case 120:throw H.wrap(this.unserialize());case 121:t=this.readDigits();if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos>>16,l=65535&n.low,u=n.low>>>16,c=I._mul(a,l),l=I._mul(s,l),a=I._mul(a,u),s=(I._mul(s,u)+(a>>>16)|0)+(l>>>16)|0,s=(a<<=16,I.ucompare(u=c+a|0,a)<0&&(s++,s|=0),l<<=16,I.ucompare(u=u+l|0,l)<0&&(s++,s|=0),s+(I._mul(t.low,n.high)+I._mul(t.high,n.low)|0)|0),c=new E(s,u),a=_.make(0,P.parseInt(e.charAt(o))),l=c.high+a.high|0,s=c.low+a.low|0;I.ucompare(s,c.low)<0&&(l++,l|=0);t=new E(l,s)}return t},k.getHigh=function(e){return e.high},k.getLow=function(e){return e.low},k.idStr=function(e){return"_"+e.high+"_"+e.low},k.makeFromIdStr=function(e){var t=new v("^_(-?\\d*)_(-?\\d*)$","");return t.match(e)?_.make(P.parseInt(t.matched(1)),P.parseInt(t.matched(2))):null},k.fromNullableIdStr=function(e){return null!=e?k.makeFromIdStr(e):null},k.toStr=function(e){return Ma.toString(e)},k.isNeg=function(e){return e.high<0},k.add=function(e,t){var n=e.high+t.high|0,t=e.low+t.low|0;return I.ucompare(t,e.low)<0&&(n++,n|=0),new E(n,t)},k.sub=function(e,t){var n=e.high-t.high|0,i=e.low-t.low|0;return I.ucompare(e.low,t.low)<0&&(n--,n|=0),new E(n,i)},k.compare=function(e,t){var n=e.high-t.high|0;return 0==n&&(n=I.ucompare(e.low,t.low)),e.high<0?t.high<0?n:-1:0<=t.high?n:1},k.eq=function(e,t){return null!=e&&null!=t&&e.high==t.high&&e.low==t.low},k.eqOrBothNull=function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.high==t.high&&e.low==t.low},k.toFloat=function(e){var t=4294967296,n=e.high,e=e.low;return n*t+(0<=e?e:e+t)},k.idStrToInt64=function(e){e=e.split("_");return 2>31,e))},k.eqArray=function(e,t){if(e!=t){if(null==e||null==t)return!1;if(e.length!=t.length)return!1;for(var n=0,i=e.length;n>31,t);return e.filter(function(e){var t=h.map(n.userPresences.getUserPresence(e),function(e){return e.isExpired(i,r)});switch(t[1]){case 0:return t[2];case 1:return!0}})},updateIfNeedPerSub:function(n,e){for(var i=this,t=Promise.resolve([]),r=k.splitUsingMaxCount(e,100),o=0;oe.version},isStampsetEnabled:function(e){return C.has(this.allowCreateMessageStampCategories,e)},isStampCategoriesEmpty:function(){return 0==this.allowCreateMessageStampCategories.length},getCategoryIndex:function(e){return this.allowCreateMessageStampCategories.indexOf(e)},__class__:we},(t["albero.entity.Conference"]=Ee).__name__=["albero","entity","Conference"],Ee.prototype={isIncomingExpired:function(){var e=this.createdAt,t=4294967296,n=e.high,e=e.low;return n*t+(0<=e?e:e+t)+Ee.INCOMING_TIME<(new Date).getTime()},isExpired:function(){var e=this.expiredAt,t=4294967296,n=e.high,e=e.low;return n*t+(0<=e?e:e+t)<(new Date).getTime()},__class__:Ee},(t["albero.entity.ConferenceStore"]=Ie).__name__=["albero","entity","ConferenceStore"],Ie.prototype={addConference:function(e){var t=e.id,t="_"+t.high+"_"+t.low,n=this.conferencesMap,n=(null!=W[t]?n.setReserved(t,e):n.h[t]=e,e.talkId),e="_"+n.high+"_"+n.low,n=this.talkIdConferenceIdMap;null!=W[e]?n.setReserved(e,t):n.h[e]=t},removeConference:function(e){var t=e.id,t="_"+t.high+"_"+t.low,e=(this.conferencesMap.remove(t),e.talkId),e="_"+e.high+"_"+e.low,n=this.talkIdConferenceIdMap;(null!=W[e]?n.getReserved(e):n.h[e])==t&&this.talkIdConferenceIdMap.remove(e)},getConferences:function(){return te.toValueArray(this.conferencesMap)},getConference:function(e){var e="_"+e.high+"_"+e.low,t=this.conferencesMap;return null!=W[e]?t.getReserved(e):t.h[e]},hasConferenceInTalk:function(e){var t;return null!=e&&(e="_"+e.high+"_"+e.low,t=this.talkIdConferenceIdMap,null!=W[e]?t.existsReserved(e):t.h.hasOwnProperty(e))},getConferenceIdInTalk:function(e){var t;return null==e||(e="_"+e.high+"_"+e.low,t=this.talkIdConferenceIdMap,null==(t=null!=W[e]?t.getReserved(e):t.h[e]))?null:k.makeFromIdStr(t)},getConferenceTalkIds:function(){return te.toKeyArray(this.talkIdConferenceIdMap).map(k.makeFromIdStr)},hasConference:function(){return this.talkIdConferenceIdMap.keys().hasNext()},__class__:Ie},(t["albero.entity.Configuration"]=Ne).__name__=["albero","entity","Configuration"],Ne.prototype={__class__:Ne},(t["albero.entity.Contract"]=Ae).__name__=["albero","entity","Contract"],Ae.prototype={getMaxMessageContentLength:function(){return h.map(h.option(this.quota),function(e){return e.maxMessageContentLength})},getMaxTalkers:function(){return h.flatMap(h.option(this.quota),function(e){return h.option(e.maxTalkers)})},getMaxTalks:function(){return h.flatMap(h.option(this.quota),function(e){return h.option(e.maxTalks)})},isConferenceEnalbed:function(){return h.isDefined(this.contractConference)},isVideoEnalbed:function(){var e=h.map(this.contractConference,function(e){return e.videoEnabled});switch(e[1]){case 0:return e[2];case 1:return!1}},getConferenceTtl:function(){return h.map(this.contractConference,function(e){return e.ttl})},getConferenceMaxParticipants:function(){return h.map(this.contractConference,function(e){return e.maxConferenceParticipants})},isGroupConfenreceEnalbed:function(){var e=h.map(this.contractConference,function(e){return e.groupConferenceEnabled});switch(e[1]){case 0:return e[2];case 1:return!1}},isTargetOfPlanAd:function(){return null!=this.quota&&this.quota.withAd},isFreePlan:function(){return null!=this.plan&&this.plan.free},__class__:Ae},function(e){this.groupConferenceEnabled=!1,this.maxConferenceParticipants=or.DEFAULT_MAX_PARTICIPANTS,this.ttl=or.DEFAULT_TTL,this.videoEnabled=!1,null!=e&&(this.videoEnabled=e.video_enabled,this.ttl=e.ttl,this.maxConferenceParticipants=e.max_conference_participants,this.groupConferenceEnabled=e.group_conference_enabled)}),ar=((t["albero.entity.ContractConference"]=or).__name__=["albero","entity","ContractConference"],or.prototype={__class__:or},(t["albero.entity.Department"]=be).__name__=["albero","entity","Department"],be.getLabelFree=function(){return p.localize("Department.label_free")},be.getLabelRoot=function(){return p.localize("Department.label_root")},be.prototype={addChild:function(e){null==this.childrenIds&&(this.childrenIds=[]),this.childrenIds.push(e)},isRoot:function(){return this.nodeType==ar.Root},isFree:function(){return this.nodeType==ar.Free},parseDepartmentNodeType:function(e){switch(e){case 1:return ar.Root;case 2:return ar.Free;default:return ar.Normal}},getChildIdStrList:function(){return null==this.childrenIds?[]:this.childrenIds.map(k.idStr)},__class__:be},(t["albero.entity.DepartmentHelper"]=Me).__name__=["albero","entity","DepartmentHelper"],Me.getName=function(e){return null==e?null:e.name},t["albero.entity.DepartmentNodeType"]={__ename__:["albero","entity","DepartmentNodeType"],__constructs__:["Normal","Root","Free"]}),sr=(ar.Normal=["Normal",0],ar.Normal.toString=o,(ar.Normal.__enum__=ar).Root=["Root",1],ar.Root.toString=o,(ar.Root.__enum__=ar).Free=["Free",2],ar.Free.toString=o,(ar.Free.__enum__=ar).__empty_constructs__=[ar.Normal,ar.Root,ar.Free],(t["albero.entity.DepartmentList"]=De).__name__=["albero","entity","DepartmentList"],De.prototype={getDepartments:function(e){return null==e?[]:e.map(function(e){return new be(e)})},__class__:De},(t["albero.entity.DepartmentStore"]=Ce).__name__=["albero","entity","DepartmentStore"],Ce.prototype={getDepartment:function(e){var t;return null==e?null:(e="_"+e.high+"_"+e.low,t=this.departmentMap,null!=W[e]?t.getReserved(e):t.h[e])},setDepartment:function(e){null!=e.parentId&&null!=(t=this.getDepartment(e.parentId))&&(t.addChild(e.id),e.depth=t.depth+1);var t=e.id,t="_"+t.high+"_"+t.low,n=this.departmentMap;null!=W[t]?n.setReserved(t,e):n.h[t]=e},clearDomainDepartment:function(e){var t=this,e="_"+e.high+"_"+e.low,n=this.rootDepartmentIdMap,n=null!=W[e]?n.getReserved(e):n.h[e];null!=n&&(C.iter(this.getDepartmentsDescendantOrSelf(n),function(e){e=e.id;t.departmentMap.remove("_"+e.high+"_"+e.low)}),this.rootDepartmentIdMap.remove(e))},getRootDepartmentId:function(e){var e="_"+e.high+"_"+e.low,t=this.rootDepartmentIdMap;return null!=W[e]?t.getReserved(e):t.h[e]},setRootDepartmentId:function(e,t){var e="_"+e.high+"_"+e.low,n=this.rootDepartmentIdMap;null!=W[e]?n.setReserved(e,t):n.h[e]=t},setDepartmentUserCount:function(e){var t=this.getDepartment(e.departmentId);null!=t&&(t.userCount=e,t.userCountLoading=!1)},setUserCountLoading:function(e,t){e=this.getDepartment(e);null!=e&&(e.userCountLoading=t)},isUserCountLoadingRequired:function(e){e=this.getDepartment(e);return null==e||null==e.userCount&&!e.userCountLoading},clearDomainDepartmentUsers:function(e){e=this.getRootDepartmentId(e);return null!=e&&(C.iter(this.getDepartmentsDescendantOrSelf(e),function(e){e.userCount=null,e.userIds=null,e.userCountLoading=!1}),!0)},setDepartmentUsers:function(e,t){e=this.getDepartment(e);null!=e&&(e.userIds=t)},isInDepartment:function(e){e=this.getDepartment(e);return null!=e&&!e.isFree()},getDepartmentPath:function(e){return this.getDepartmentsAncestorOrSelf(e)},getDepartmentPathWithoutRoot:function(e){return this.getDepartmentPath(e).filter(function(e){return!e.isRoot()})},getDepartmentPathSlashSeparatedIfNeeded:function(e){return this.getDepartmentPathWithoutRoot(e).map(Me.getName).filter(ci.isNotEmpty).join("/")},getDepartmentsAncestorOrSelf:function(e){var t=[];return this._getDepartmentsAncestorOrSelf(e,t),t},_getDepartmentsAncestorOrSelf:function(e,t){e=this.getDepartment(e);null!=e&&(null!=e.parentId&&this._getDepartmentsAncestorOrSelf(e.parentId,t),t.push(e))},getDepartmentsDescendantOrSelf:function(e){var t=[];return this._getDepartmentsDescendantOrSelf(e,t),t},_getDepartmentsDescendantOrSelf:function(e,t){var n=this,e=this.getDepartment(e);null!=e&&(t.push(e),null!=e.childrenIds)&&C.iter(e.childrenIds,function(e){n._getDepartmentsDescendantOrSelf(e,t)})},__class__:Ce},(t["albero.entity.DepartmentUserCount"]=ke).__name__=["albero","entity","DepartmentUserCount"],ke.prototype={__class__:ke},(t["albero.entity.DepartmentUserCountList"]=Re).__name__=["albero","entity","DepartmentUserCountList"],Re.prototype={getDepartmentUserCounts:function(e){return null==e?[]:e.map(function(e){return new ke(e)})},__class__:Re},(t["albero.entity.DirectApp"]=Oe).__name__=["albero","entity","DirectApp"],Oe.prototype={getLinkFeature:function(){return C.find(this.features,function(e){return e.isLink()})},getMessageExtensionFeature:function(){return C.find(this.features,function(e){return e.isMessageMenuExtension()})},getLocalizedLabel:function(e,t){var n=this.locales,n=null!=W[t]?n.getReserved(t):n.h[t];return null==n||null==(t=n.getResourceText(e))?"":t},__class__:Oe},function(e){this.map=new B;for(var t=0,n=U.fields(e);t>t,e.high<<32-t|e.low>>>t):new E(e.high>>31,e.high>>t-32)},Xe.subTimestampPart=function(e,t){var e=Xe.timestamp(e),t=Xe.timestamp(t),n=e.high-t.high|0,i=e.low-t.low|0;return I.ucompare(e.low,t.low)<0&&(n--,n|=0),new E(n,i)},Xe.createForTest=function(e){var t=Xe.TIMESTAMP_SHIFT;return 0==(t&=63)?new E(e.high,e.low):t<32?new E(e.high<>>32-t,e.low<this.content.response?this.content.options[this.content.response]:"";case 17:return[this.content.title,p.localize("MessageStringMaker.achieve"),p.localize("MessageStringMaker.remand")].join(" ");case 18:return e&&null!=this.content.done?this.content.done?p.localize("MessageStringMaker.achieve"):p.localize("MessageStringMaker.remand"):"";default:return""}},messageStringForCompactMessage:function(){switch(this.type[1]){case 1:return this.content;case 5:if(null!=this.content.text&&0>>16,s=65535&t.low,l=t.low>>>16,u=I._mul(o,s),s=I._mul(a,s),o=I._mul(o,l),a=(I._mul(a,l)+(o>>>16)|0)+(s>>>16)|0,a=(o<<=16,I.ucompare(l=u+o|0,o)<0&&(a++,a|=0),s<<=16,I.ucompare(l=l+s|0,s)<0&&(a++,a|=0),a+(I._mul(e.low,t.high)+I._mul(e.high,t.low)|0)|0),u=new E(a,l),o=_.make(0,P.parseInt(this.commonStampId.charAt(r))),s=u.high+o.high|0,a=u.low+o.low|0;I.ucompare(a,u.low)<0&&(s++,s|=0);e=new E(s,a)}return e},__class__:yt},(t["albero.entity.OriginalStamp"]=vt).__name__=["albero","entity","OriginalStamp"],vt.__interfaces__=[St],vt.fromJson=function(e){var t,n;return null==e.originalStamp||null==(e=e.originalStamp).stampsetIdStr||null==e.stampIdStr?null:(t=k.makeFromIdStr(e.stampsetIdStr),n=k.makeFromIdStr(e.stampIdStr),new vt(t,n,e.illust))},vt.fromPropsAndStampsetId=function(e,t){return new vt(t,k.fromIntOrInt64(e.id),e.illust)},vt.createKey=function(e){return"original__"+e.high+"_"+e.low},vt.prototype={getImageUrl:function(){return this.illust},getKey:function(){return vt.createKey(this.id)},toJson:function(){var e=this.stampsetId,t=this.id;return{originalStamp:{stampsetIdStr:"_"+e.high+"_"+e.low,stampIdStr:"_"+t.high+"_"+t.low,illust:this.illust}}},createMessage:function(e,t){var n=new O;return n.talkId=e,n.type=c.originalStamp,n.content={stampset_id:this.stampsetId,stamp_id:this.id},null!=t&&0!=t.length&&(n.content.text=t),n},__class__:vt},(t["albero.entity.StampStore"]=Tt).__name__=["albero","entity","StampStore"],Tt.prototype={addStampsets:function(e){for(var t=0;te.version},__class__:wt},function(e){this.stampsetInfos=[],this.allowCreateMessageStampsetIds=[],this.version=0,null!=e&&(this.version=e.version,this.allowCreateMessageStampsetIds=e.allow_create_message_stampset_ids.map(k.fromIntOrInt64),this.stampsetInfos=this.getStampsetInfos(e.stampset_infos))}),d=((t["albero.entity.StampsetSetting"]=Vr).__name__=["albero","entity","StampsetSetting"],Vr.prototype={getStampsetInfos:function(e){return null==e?[]:e.map(function(e){return new wt(e)})},isForwardForbidden:function(e){e=e.getContentsForOriginalStamp(),e=null==e?null:e.stampsetId;return null!=e&&!this.containSendableStampset(e)},containSendableStampset:function(t){return null!=this.allowCreateMessageStampsetIds&&C.exists(this.allowCreateMessageStampsetIds,function(e){return null!=t&&null!=e&&t.high==e.high&&t.low==e.low})},containVisibleStampset:function(t){return C.exists(this.stampsetInfos,function(e){e=e.stampsetId;return null!=t&&null!=e&&t.high==e.high&&t.low==e.low})},getSendableStampsetInfos:function(){var t=this;return null==this.stampsetInfos||null==this.allowCreateMessageStampsetIds?[]:this.stampsetInfos.filter(function(e){return t.containSendableStampset(e.stampsetId)})},isNewerThan:function(e){return this.version>e.version},updateStampsetInfo:function(t){this.stampsetInfos=this.stampsetInfos.map(function(e){return t.eqStampsetId(e)&&t.isNewerThan(e)?t:e})},deleteStampsetInfo:function(t){this.stampsetInfos=this.stampsetInfos.filter(function(e){e=e.stampsetId;return!(null!=e&&null!=t&&e.high==t.high&&e.low==t.low)}),this.allowCreateMessageStampsetIds=this.allowCreateMessageStampsetIds.filter(function(e){return!(null!=e&&null!=t&&e.high==t.high&&e.low==t.low)})},getStampsetIdsDiff:function(e){for(var t=new B,n=e.stampsetInfos.concat(this.stampsetInfos),i=0;ithis.pushNotificationSetting.version&&(this.pushNotificationSetting=st.createWithParams(e.type,e.version),!0)},isMessageAcceptable:function(e,t){var n;return!!this.isUnread(e.id)||(0==(n=(e=Xe.subTimestampPart(this.maxReadMessageId,e.id)).high-t.high|0)&&(n=I.ucompare(e.low,t.low)),(e.high<0?t.high<0?n:-1:0<=t.high?n:1)<=0)},isUnread:function(e){var t,n;return null==this.maxReadMessageId||(0==(n=(t=this.maxReadMessageId).high-e.high|0)&&(n=I.ucompare(t.low,e.low)),(t.high<0?e.high<0?n:-1:0<=e.high?n:1)<0)},isMax:function(e){var t;return null!=this.maxMessageId&&null!=(t=this.maxMessageId)&&null!=e&&t.high==e.high&&t.low==e.low},isNewMax:function(e){var t,n;return null==this.maxMessageId||(0==(n=(t=this.maxMessageId).high-e.high|0)&&(n=I.ucompare(t.low,e.low)),(t.high<0?e.high<0?n:-1:0<=e.high?n:1)<0)},isNotificationDisabled:function(){return this.pushNotificationSetting.isDisabled()},getNotificationType:function(){return this.pushNotificationSetting.type},hasUnreadMessage:function(){return null!=this.maxMessage&&this.isUnread(this.maxMessage.id)},clearReadingMessages:function(){this.readingMessages=null},__class__:bt},(t["albero.entity.TalkStatusHelper"]=Mt).__name__=["albero","entity","TalkStatusHelper"],Mt.isNotificationDisabled=function(e){return null!=e&&e.isNotificationDisabled()},Mt.isFavoriteTalk=function(e){return null!=e&&null!=e.orderInFavorites},Mt.isUnreadMesasgeExisted=function(e){return null!=e&&e.hasUnreadMessage()},(t["albero.entity.TalkStatusUpdate"]=Dt).__name__=["albero","entity","TalkStatusUpdate"],Dt.prototype={__class__:Dt},(t["albero.entity.ThumbInfo"]=Ct).__name__=["albero","entity","ThumbInfo"],Ct.prototype={setAuth:function(e){this.auth=e},__class__:Ct},function(e){null!=e&&(this.width=e.width,this.height=e.height)}),f=((t["albero.entity.ThumbDimension"]=no).__name__=["albero","entity","ThumbDimension"],no.createWithSize=function(e,t){var n=new no;return n.width=e,n.height=t,n},no.prototype={toObject:function(){return{width:this.width,height:this.height}},__class__:no},(t["albero.entity.UpdateDomainStampSettingEvent"]=kt).__name__=["albero","entity","UpdateDomainStampSettingEvent"],kt.prototype={isValid:function(){return this.newSetting.isNewerThan(this.oldSetting)},getStampsetIdsDiff:function(){return this.oldSetting.getStampsetIdsDiff(this.newSetting)},__class__:kt},t["albero.entity.UploadUseType"]={__ename__:["albero","entity","UploadUseType"],__constructs__:["PROFILE_IMAGE","MESSAGE","TALK_ICON","THUMBNAIL","NOTE_ATTACHMENT","NOTE_THUMBNAIL","SCHEDULE_MESSAGE"]}),E=(f.PROFILE_IMAGE=["PROFILE_IMAGE",0],f.PROFILE_IMAGE.toString=o,(f.PROFILE_IMAGE.__enum__=f).MESSAGE=["MESSAGE",1],f.MESSAGE.toString=o,(f.MESSAGE.__enum__=f).TALK_ICON=["TALK_ICON",2],f.TALK_ICON.toString=o,(f.TALK_ICON.__enum__=f).THUMBNAIL=["THUMBNAIL",3],f.THUMBNAIL.toString=o,(f.THUMBNAIL.__enum__=f).NOTE_ATTACHMENT=["NOTE_ATTACHMENT",4],f.NOTE_ATTACHMENT.toString=o,(f.NOTE_ATTACHMENT.__enum__=f).NOTE_THUMBNAIL=["NOTE_THUMBNAIL",5],f.NOTE_THUMBNAIL.toString=o,(f.NOTE_THUMBNAIL.__enum__=f).SCHEDULE_MESSAGE=["SCHEDULE_MESSAGE",6],f.SCHEDULE_MESSAGE.toString=o,(f.SCHEDULE_MESSAGE.__enum__=f).__empty_constructs__=[f.PROFILE_IMAGE,f.MESSAGE,f.TALK_ICON,f.THUMBNAIL,f.NOTE_ATTACHMENT,f.NOTE_THUMBNAIL,f.SCHEDULE_MESSAGE],(t["albero.entity.UploadUseTypeHelper"]=Rt).__name__=["albero","entity","UploadUseTypeHelper"],Rt.getUseTypeInt=function(e){switch(e[1]){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 4;case 4:return 5;case 5:return 6;case 6:return 1}},(t["albero.entity.UserIdentifier"]=Ot).__name__=["albero","entity","UserIdentifier"],Ot.prototype={__class__:Ot},function(e,t){this.high=e,this.low=t}),io=((t["haxe._Int64.___Int64"]=E).__name__=["haxe","_Int64","___Int64"],E.prototype={__class__:E},(t["albero.entity.UserPresence"]=Ft).__name__=["albero","entity","UserPresence"],Ft.createUserPresenceState=function(e,t){var n=t.high-e.high|0,i=t.low-e.low|0;I.ucompare(t.low,e.low)<0&&(n--,n|=0);var t=new E(n,i),e=Ft.SIXTY_MINUTES,n=t.high-e.high|0;return 0==n&&(n=I.ucompare(t.low,e.low)),0<(t.high<0?e.high<0?n:-1:0<=e.high?n:1)?io.GT_60:(0==(e=t.high-(i=Ft.FIFTEEN_MINUTES).high|0)&&(e=I.ucompare(t.low,i.low)),0<(t.high<0?i.high<0?e:-1:0<=i.high?e:1)?io.LT_OR_EQ_60:io.LT_OR_EQ_15)},Ft.prototype={toState:function(e){var t=e,n=h.map(this.lastUsedAtOpt,function(e){return Ft.createUserPresenceState(e,t)});switch(n[1]){case 0:return n[2];case 1:return io.GT_60}},isExpired:function(e,t){var n=this.lastUpdatedAt,i=e.high-n.high|0,r=e.low-n.low|0;I.ucompare(e.low,n.low)<0&&(i--,i|=0);e=new E(i,r),n=e.high-t.high|0;return 0==n&&(n=I.ucompare(e.low,t.low)),0<(e.high<0?t.high<0?n:-1:0<=t.high?n:1)},__class__:Ft},t["albero.entity.UserPresenceState"]={__ename__:["albero","entity","UserPresenceState"],__constructs__:["LT_OR_EQ_15","LT_OR_EQ_60","GT_60"]}),ro=(io.LT_OR_EQ_15=["LT_OR_EQ_15",0],io.LT_OR_EQ_15.toString=o,(io.LT_OR_EQ_15.__enum__=io).LT_OR_EQ_60=["LT_OR_EQ_60",1],io.LT_OR_EQ_60.toString=o,(io.LT_OR_EQ_60.__enum__=io).GT_60=["GT_60",2],io.GT_60.toString=o,(io.GT_60.__enum__=io).__empty_constructs__=[io.LT_OR_EQ_15,io.LT_OR_EQ_60,io.GT_60],(t["albero.entity.api.message.AddFavoriteMessageResult"]=Ut).__name__=["albero","entity","api","message","AddFavoriteMessageResult"],Ut.prototype={__class__:Ut},(t["albero.entity.api.message.DeleteFavoriteMessageResult"]=xt).__name__=["albero","entity","api","message","DeleteFavoriteMessageResult"],xt.prototype={__class__:xt},(t["albero.entity.api.message.GetFavoriteMessagesResultWithParams"]=Lt).__name__=["albero","entity","api","message","GetFavoriteMessagesResultWithParams"],Lt.prototype={getNextMarker:function(){return this.nextMarker},getMessages:function(){return this.messages},__class__:Lt},(t["albero.entity.api.message.GetScheduledMessagesResultWithParams"]=Pt).__name__=["albero","entity","api","message","GetScheduledMessagesResultWithParams"],Pt.prototype={__class__:Pt},(t["albero.entity.api.message.SearchMessagesAroundDateTimeResult"]=Bt).__name__=["albero","entity","api","message","SearchMessagesAroundDateTimeResult"],Bt.prototype={__class__:Bt},function(e){this.messageId=e.message_id,this.createdAt=e.created_at}),oo=((t["albero.entity.api.message.MessageCreatedAt"]=ro).__name__=["albero","entity","api","message","MessageCreatedAt"],ro.prototype={__class__:ro},(t["albero.entity.api.note.CompressedNote"]=Ht).__name__=["albero","entity","api","note","CompressedNote"],Ht.prototype={uncompress:function(){var n=this,e=this.getCompressedContentRaw();return(new ie).run(e).then(function(e){var t=U.copy(n.noteRaw.note_revision),e=(t.content=e,U.copy(n.noteRaw));return e.note_revision=t,e})},getCompressedContentRaw:function(){return null==this.noteRaw||null==this.noteRaw.note_revision?null:this.noteRaw.note_revision.content},__class__:Ht},(t["albero.entity.api.note.CreateNoteError"]=Gt).__name__=["albero","entity","api","note","CreateNoteError"],Gt.prototype={__class__:Gt},(t["albero.entity.api.note.CreateNoteResult"]=zt).__name__=["albero","entity","api","note","CreateNoteResult"],zt.prototype={updateWithEmitterKey:function(e){var t=new zt;return t.note=this.note,t.emitterKey=e,t},__class__:zt},(t["albero.entity.api.note.CreateNoteResultCompressed"]=Yt).__name__=["albero","entity","api","note","CreateNoteResultCompressed"],Yt.prototype={uncompress:function(){return this.compressedNote.uncompress().then(function(e){return new zt(e)})},__class__:Yt},(t["albero.entity.api.note.DeleteNoteResult"]=Wt).__name__=["albero","entity","api","note","DeleteNoteResult"],Wt.prototype={__class__:Wt},(t["albero.entity.api.note.GetNoteResult"]=Kt).__name__=["albero","entity","api","note","GetNoteResult"],Kt.prototype={getNoteId:function(){return this.note.noteId},getNoteCreateUserId:function(){return this.note.createdBy},getRevisionCreateUserId:function(){return this.note.getRevisionCreateUserId()},getNoteCreateDate:function(){return this.note.createdAt},getRevisionCreateDate:function(){return this.note.getRevisionCreateDate()},getLockedUserIdWithoutSelf:function(e){return this.note.getLockedUserIdWithoutSelf(e)},__class__:Kt},(t["albero.entity.api.note.GetNoteResultCompressed"]=jt).__name__=["albero","entity","api","note","GetNoteResultCompressed"],jt.prototype={uncompress:function(){return this.compressedNote.uncompress().then(function(e){return new Kt(e)})},__class__:jt},(t["albero.entity.api.note.GetNoteStatusesResult"]=Vt).__name__=["albero","entity","api","note","GetNoteStatusesResult"],Vt.prototype={isNotEmptyNoteStatuses:function(){return 0>2)))+P.string(a.charAt(63&(s<<4|l>>4))))+P.string(a.charAt(63&(l<<2|u>>6))))+P.string(a.charAt(63&u));i==r?(e=n.b[i++],t=n.b[i++],o=(o=(o+=P.string(a.charAt(e>>2)))+P.string(a.charAt(63&(e<<4|t>>4))))+P.string(a.charAt(t<<2&63))):i==1+r&&(e=n.b[i++],o=(o+=P.string(a.charAt(e>>2)))+P.string(a.charAt(e<<4&63)));var c=o;switch(c.length%4){case 2:c+="==";break;case 3:c+="="}return c},Nn.decode=function(e){for(var t,n=e.length-1,n=("="==e.charAt(n)&&("="==e.charAt(n-1)&&--n,e=L.substr(e,0,n)),e.length),i=e,r=Nn.CODES,o=(null==r&&(r=Nn.initCodes(),Nn.CODES=r),0),e=3&n,a=o+(n-e),s=new Pa(new Ds(3*(n>>2)+(2<=e?e-1:0))),l=0;o>4),r[i.charCodeAt(o++)]),c=(s.b[l++]=255&(c<<4|u>>2),r[i.charCodeAt(o++)]);s.b[l++]=255&(u<<6|c)}return 2<=e&&(n=r[i.charCodeAt(o++)],t=r[i.charCodeAt(o++)],s.b[l++]=255&(n<<2|t>>4),3==e)&&(n=r[i.charCodeAt(o++)],s.b[l++]=255&(t<<4|n>>2)),s},(t["albero.js.KatakanaToRoman"]=An).__name__=["albero","js","KatakanaToRoman"],An.assureConvertTable=function(){return null==An.convertTable&&(An.convertTable=new B,C.iter([["ア","A"],["イ","I"],["ウ","U"],["エ","E"],["オ","O"],["カ","KA"],["キ","KI"],["ク","KU"],["ケ","KE"],["コ","KO"],["キャ","KYA"],["キュ","KYU"],["キョ","KYO"],["サ","SA"],["シ","SI"],["ス","SU"],["セ","SE"],["ソ","SO"],["シャ","SHA"],["シュ","SHU"],["ショ","SHO"],["タ","TA"],["チ","TI"],["ツ","TU"],["テ","TE"],["ト","TO"],["チャ","THA"],["チュ","THU"],["チョ","THO"],["ナ","NA"],["ニ","NI"],["ヌ","NU"],["ネ","NE"],["ノ","NO"],["ニャ","NYA"],["ニュ","NYU"],["ニョ","NYO"],["ハ","HA"],["ヒ","HI"],["フ","FU"],["ヘ","HE"],["ホ","HO"],["ヒャ","HYA"],["ヒュ","HYU"],["ヒョ","HYO"],["マ","MA"],["ミ","MI"],["ム","MU"],["メ","ME"],["モ","MO"],["ミャ","MYA"],["ミュ","MYU"],["ミョ","MYO"],["ヤ","YA"],["ユ","YU"],["ヨ","YO"],["ラ","RA"],["リ","RI"],["ル","RU"],["レ","RE"],["ロ","RO"],["リャ","RYA"],["リュ","RYU"],["リョ","RYO"],["ワ","WA"],["ヲ","O"],["ン","N"],["ガ","GA"],["ギ","GI"],["グ","GU"],["ゲ","GE"],["ゴ","GO"],["ギャ","GYA"],["ギュ","GYU"],["ギョ","GYO"],["ザ","ZA"],["ジ","JI"],["ズ","ZU"],["ゼ","ZE"],["ゾ","ZO"],["ジャ","ZYA"],["ジュ","ZYU"],["ジョ","ZYO"],["ダ","DA"],["ヂ","JI"],["ヅ","ZU"],["デ","DE"],["ド","DO"],["バ","BA"],["ビ","BI"],["ブ","BU"],["ベ","BE"],["ボ","BO"],["ビャ","BYA"],["ビュ","BYU"],["ビョ","BYO"],["パ","PA"],["ピ","PI"],["プ","PU"],["ペ","PE"],["ポ","PO"],["ピャ","PYA"],["ピュ","PYU"],["ピョ","PYO"],["ー",""],["ッ","ッ"]],function(e){var t=An.convertTable,n=e[0],e=e[1];null!=W[n]?t.setReserved(n,e):t.h[n]=e})),An.convertTable},An.matchNext=function(e,t){var n=An.assureConvertTable();if(t+1=Co.HIRAGANA_SMALL_A&&a<=Co.HIRAGANA_NN&&(n=(n+=e.substring(t,o))+String.fromCharCode(a+(Co.KATAKANA_SMALL_A-Co.HIRAGANA_SMALL_A)),t=1+o)}return n+=e.substring(t,e.length)},Co.katakanaToRoman=function(e){return(new An).convert(e)},Co.normalize=function(e){return new ko(null).normalize(e)},Co.normalizeForFile=function(e){return new ko(null).normalizeForFile(e)},Co.eraseInvisible=function(e){var t=new RegExp("[\\u0000-\\u0020 ]","g".split("u").join(""));return e.replace(t,"")},function(e){this.beforeTask=null,this.beforeTask=e}),Ro=((t["albero.js.Normalizer"]=ko).__name__=["albero","js","Normalizer"],ko.prototype={normalize:function(e){try{return null!=this.beforeTask&&this.beforeTask(),e.normalize("NFKC")}catch(e){return e instanceof H&&(e=e.val),F._e("["+L.dateStr(new Date)+"] ","invalid character:",e,"","",""),p.localize("TextCanonicalizer.invalid")}},normalizeForFile:function(e){try{return null!=this.beforeTask&&this.beforeTask(),e.normalize("NFC")}catch(e){return e instanceof H&&(e=e.val),F._e("["+L.dateStr(new Date)+"] ","invalid character:",e,"","",""),p.localize("TextCanonicalizer.invalid")}},__class__:ko},(t["albero.js.WebSocket"]=Cn).__name__=["albero","js","WebSocket"],Cn.prototype={__class__:Cn},(t["albero.js.WebSocketFactory"]=kn).__name__=["albero","js","WebSocketFactory"],kn.newInstance=function(e,t){return new Ro(e,t)},function(e,t){this.onopen=t.onopen,this.onmessage=t.onmessage,this.onerror=null,this.onclose=t.onclose,this.onpong=t.onpong,this.ws=new WebSocket(e),Ns.websocketsbinary&&(this.ws.binaryType="arraybuffer"),this.ws.onopen=Y(this,this.onOpen),this.ws.onmessage=Y(this,this.onMessage),this.ws.onerror=Y(this,this.onError),this.ws.onclose=Y(this,this.onClose)}),Oo=((t["albero.js.WebSocketForBrowser"]=Ro).__name__=["albero","js","WebSocketForBrowser"],Ro.__interfaces__=[Cn],Ro.prototype={onOpen:function(e){F._i("["+L.dateStr(new Date)+"] ","WebSocket opened.","","","",""),null!=this.onopen&&this.onopen()},onMessage:function(e){var t;null!=this.onmessage&&(t=null,t=this.getBinaryData(e),this.onmessage(t))},getBinaryData:function(e){return Ns.websocketsbinary?Pa.ofData(new Cs(e.data)):Nn.decode(e.data)},onPong:function(e){null!=this.onpong&&this.onpong(e)},onError:function(e){F._e("["+L.dateStr(new Date)+"] ","WebSocket error. event:",e,"","",""),null!=this.onerror&&this.onerror()},onClose:function(e){var t="WebSocket closed. "+P.string(e.code)+" "+P.string(e.reason)+" "+P.string(e.wasClean);F._i("["+L.dateStr(new Date)+"] ",t,"","","",""),null!=this.onclose&&this.onclose(e.code,e.reason,e.wasClean)},close:function(){this.onopen=null,this.onmessage=null,this.onerror=null,this.onclose=null,this.onpong=null,this.ws.close()},send:function(e){Ns.websocketsbinary?this.ws.send(new Cs(e.b.bufferValue).buffer):this.ws.send(Nn.encode(e))},ping:function(e){this.send(new Pa(new Ds(0)))},isClosed:function(){return null==this.ws||3==this.ws.readyState},__class__:Ro},(t["puremvc.interfaces.IProxy"]=Rn).__name__=["puremvc","interfaces","IProxy"],Rn.prototype={__class__:Rn},(t["albero.proxy.AccessTokenResolverProxy"]=On).__name__=["albero","proxy","AccessTokenResolverProxy"],On.__interfaces__=[Rn],On.prototype={__class__:On},function(){}),Fo=((t["albero.proxy.AccessTokenResolverProxyFactory"]=Oo).__name__=["albero","proxy","AccessTokenResolverProxyFactory"],Oo.newInstance=function(){return new Fo("accessTokenResolver")},(t["puremvc.patterns.proxy.Proxy"]=i).__name__=["puremvc","patterns","proxy","Proxy"],i.__interfaces__=[Rn],i.__super__=ue,i.prototype=e(ue.prototype,{getProxyName:function(){return this.proxyName},setData:function(e){this.data=e},getData:function(){return this.data},onRegister:function(){},onRemove:function(){},__class__:i}),function(e){i.call(this,e)}),Uo=((t["albero.proxy.AccessTokenResolverProxyForDirectJs"]=Fo).__name__=["albero","proxy","AccessTokenResolverProxyForDirectJs"],Fo.__interfaces__=[On],Fo.__super__=i,Fo.prototype=e(i.prototype,{asyncGetAccessToken:function(e,t){var n=this.settings.getAccessToken();null!=n?t(n):null!=(n=null!=As.account?As.account.split(":"):null)&&2==n.length&&this.api.createAccessToken(n[0],n[1],t)},__class__:Fo}),function(){i.call(this,"broadcast")}),xo=((t["albero.proxy.AlberoBroadcastProxy"]=Uo).__name__=["albero","proxy","AlberoBroadcastProxy"],Uo.__super__=i,Uo.prototype=e(i.prototype,{handleNotification:function(e,t){var n=this;switch(e){case"notify_add_account_control_request":var i=new me(t);this.dataStore.setAccountControlRequest(i),this.sendNotification(e,i);break;case"notify_add_acquaintance":var i=new He(t[1]);this.dataStore.addAcquaintance(i),this.sendNotification(e,i);break;case"notify_add_acquaintances":i=t[1].map(function(e){return new He(e)});C.iter(i,Y(z=this.dataStore,z.addAcquaintance)),this.api.sendAddAcquaintanceNotifications(i),this.sendNotification(e,i);break;case"notify_add_domain_invite":i=new Pe(t);this.dataStore.setDomainInvite(i),this.sendNotification(e,i);break;case"notify_add_favorite_message":i=new sn(t);this.dataStore.addFavoriteMessage(i),this.sendNotification(e,i);break;case"notify_add_favorite_talk":i=new Ye(t);this.updateTalkStatusByFavoriteTalkEvent(i),this.sendNotification(e,i);break;case"notify_add_friend":i=new He(t[1]);this.dataStore.addFriend(i),this.sendNotification(e,i);break;case"notify_add_talkers":i=new Xr(t);null==this.dataStore.getTalk(i.id)&&this.sendNotification("notify_add_talkers_including_me",i),this.dataStore.setTalk(i),this.sendNotification(e,i);break;case"notify_close_conference":i=new Ee(t);this.dataStore.removeConference(i),this.updateTalkStatusByConferenceClosedEvent(i),this.sendNotification(e,i);break;case"notify_conference_participant_join":var i=t[3],r=t[4],o=this.dataStore;null!=o.me&&null!=(o=o.me.id)&&null!=r&&o.high==r.high&&o.low==r.low&&this.dataStore.addReactedConfereceId(i),this.sendNotification(e,t);break;case"notify_conference_participant_reject":var o=t[3];this.dataStore.addReactedConfereceId(o),this.sendNotification(e,t);break;case"notify_create_announcement":var r=new ge(t);this.dataStore.setAnnouncement(r),this.keywordWatcher.onAnnouncementCreated(r),this.sendNotification("notify_update_announcement_status",this.newAnnouncementStatus(r)),this.sendNotification(e,r);break;case"notify_create_message":var a=new O(t),i=(this.dataStore.setMessage(a),this.keywordWatcher.onMessageCreated(a),this.newTalkStatusByMessage(a));switch(null!=i&&this.sendNotification("notify_update_local_talk_status",i),a.type[1]){case 0:var s=a.content,l=null;switch(s.type){case"delete_talker":l=s.deleted_user_id;break;case"hide_pair_talk":l=s.user_id}if(null==l)return void this.sendNotification(e,a);for(var u=a.talkId,c=this.dataStore.getQuestions(u,l),_=0;_t.favoriteVersion)&&(t.favoriteVersion=e.favoriteVersion,t.orderInFavorites=e.orderInFavorites,this.dataStore.setTalkStatus(t))},updateTalkStatusByConferenceClosedEvent:function(e){var t,n=this.dataStore.getTalkStatus(e.talkId);null!=n&&null!=n.maxMessage&&(t=n.maxMessage.id,e=e.messageId,null!=t)&&null!=e&&t.high==e.high&&t.low==e.low&&(n.maxMessage.content.closed=!0,this.dataStore.setTalkStatus(n))},updateTalkStatusByTalkPushNotificationEvent:function(e){var t=this.dataStore.getTalkStatus(e.talkId);if(null==t){var n=this.dataStore.getTalk(e.talkId);if(null==n)return void F._e("["+L.dateStr(new Date)+"] ","talk not found on change favorite talk.","","","","");(t=new bt).id=e.talkId,t.talkOrderingTimestamp=n.updatedAt}t.updateByTalkPushNotificationEvent(e)&&this.dataStore.setTalkStatus(t)},newTalkStatusByTalk:function(e){var t=this.dataStore.getTalkStatus(e.id);return null==t&&((t=new bt).id=e.id),null==t.talkOrderingTimestamp&&(t.talkOrderingTimestamp=e.updatedAt),this.dataStore.setTalkStatus(t),t},newTalkStatusByMessage:function(e){var t=this.dataStore.getTalkStatus(e.talkId),n=(null==t&&((t=new bt).id=e.talkId),this.dataStore),i=e.userId;return n=null!=n.me&&null!=(n=n.me.id)&&null!=i&&n.high==i.high&&n.low==i.low,t.updateByMessage(e,n),this.dataStore.setTalkStatus(t),t},updateTalkStatusOnMessageDelete:function(e){var t=this.dataStore.getTalkStatus(e.talkId);return null!=t&&t.updateByMessageDeletion(e)&&this.dataStore.setTalkStatus(t),t},updateTalkStatus:function(e){var t,n=this;return C.exists(e.readUserIds,function(e){var t=n.dataStore;return null!=t.me&&null!=(t=t.me.id)&&null!=e&&t.high==e.high&&t.low==e.low})?null==(t=this.dataStore.getTalkStatus(e.talkId))?(F._e("["+L.dateStr(new Date)+"] ","talkStatus is not found.","","","",""),null):(t.updateByMessageReadStatusesUpdate(e)&&this.dataStore.setTalkStatus(t),t):null},newAnnouncementStatus:function(e){var t=this.dataStore.getAnnouncementStatus(e.domainId);return null==t&&((t=new Se).domainId=e.domainId),t.updateByAnnouncement(e),this.dataStore.setAnnouncementStatus(t),t},assureAnnouncementStatus:function(e){var t=this.dataStore.getAnnouncementStatus(e);return null==t&&(t=Se.fromDomainId(e),this.dataStore.setAnnouncementStatus(t)),t},__class__:Uo}),function(){i.call(this,"api")}),Lo=((t["albero.proxy.AlberoServiceProxy"]=xo).__name__=["albero","proxy","AlberoServiceProxy"],xo.__super__=i,xo.prototype=e(i.prototype,{getOSString:function(){return"bot"},createAccessToken:function(e,t,n){function i(e){o.settings.setAccessToken(e),n(e)}function r(e){o.sendNotification("Url",Zi.FORWARD(u.error))}var o=this,a=e.split("$"),s=this.settings.getOs(),l=this.settings.getIDFV();(-1==e.indexOf("@")&&2==a.length?this.wsApi.createAccessTokenById(a[1],a[0],t,l,s):this.wsApi.createAccessToken(e,t,l,s)).then(i,r)},authorizeDevice:function(e,t){var n=this,i=this.settings.getIDFV();this.wsApi.authorizeDevice(e,i).then(function(e){t()},function(e){n.apiCaller.handleServerErrorDefault(e)})},createSession:function(e,n){var i=this;this.apiCaller.onSessionClear(),this.wsApi.createSession(e,"1.128",null).then(function(e){var t=X.nowAsInt64();e.passwordExpiration.isExpired(t)?i.sendNotification("password_expiration_overed"):(e.passwordExpiration.needWarning(t,i.settings.getPasswordWarningSkipUntil())&&(i.settings.setPasswordWarningSkipUntil(X.oneDayAfterAsInt64()),i.sendNotification("password_expiration_warned")),i.apiCaller.onSessionCreated(),n(e),i.apiCaller.fireCallbacksWaitingForSession())},function(e){if(null!=e){if(401==e.code&&"expired password"==e.message)return void i.sendNotification("password_expiration_overed");if(401==e.code&&"deleted account"==e.message)return void i.sendNotification("SignOut");if(401==e.code&&"unauthorized device"==e.message)return void i.sendNotification("Device",gi.AUTHORIZE);(400==e.code&&"older version specified"==e.message||401==e.code&&"bad token"==e.message||401==e.code&&"invalid token"==e.message)&&i.settings.clearAccessToken(),i.apiCaller.handleServerErrorDefault(e)}i.sendNotification("Url",Zi.FORWARD(u.error))})},startNotification:function(){var t=this;this.wsApi.startNotification().then(function(e){e||(t.dataStore.clear(!0),t.sendNotification("start_notification_failed"))},function(e){t.apiCaller.handleServerErrorDefault(e)})},resetNotification:function(e){var t=this;this.wsApi.resetNotification().then(e,function(e){t.apiCaller.handleServerErrorDefault(e)})},sendDomainNotifications:function(e){for(var t=0;t=n.length||(e=n[i],r=t.id,o=this.dataFactory.newDummyMessage(r,e.type,e.content),this.sendNotification("create_message_start",o),this.wsApi.createMessage(r,e.type,e.content).then(function(e){a.dataStore.setMessage(e),a.sendNotification("create_message_complete",[e,o.id]),a.forwardMessages(t,n,i+1),a.dataStore.removeMessage(o.id)},function(e){var t;a.sendNotification("create_message_fail",[e,o]),null!=e&&409==e.code?(t=ia.toLocalError(R.SendingMessageConflicted,e),a.sendNotification("error_occurred",t)):a.sendNotification("error_occurred",e)}))},deleteMessage:function(e,t){var n=this;this.wsApi.deleteMessage(e,t).then(function(e){},function(e){var t;null!=e&&((403!=e.code||"frozen domain"!=e.message)&&409==e.code&&"conflict"==e.message?(t=ia.toLocalError(R.DeletingMessageConflicted,e),n.sendNotification("error_occurred",t)):n.sendNotification("error_occurred",e))})},updateReadStatuses:function(n,i){var r=this;this.wsApi.updateReadStatuses(n,i).then(function(e){var t=r.dataStore.getTalkStatus(n);null!=t&&(t.updateByReadingMessagesFinished(i),r.sendNotification("notify_update_local_talk_status",t))},function(e){var t=r.dataStore.getTalkStatus(n);null!=t&&(t.updateByReadingMessagesCanceled(i),r.dataStore.setTalkStatus(t),r.sendNotification("notify_update_local_talk_status",t)),r.apiCaller.handleServerErrorDefault(e)})},searchMessagesAroundDateTime:function(e,t){return this.wsApi.searchMessagesAroundDateTime(e,t)},uploadV2:function(e,t,n,i){var r=this,o=on.toFileInfoDynamic(n),a=this.dataFactory.newDummyMessage(t,c.file,o);this.sendNotification("create_message_start",a),this.prepareMessageFileAsync(n,e,!1).then(function(e){r._createMessage(t,c.file,e,a,i).catch(function(e){})},function(e){r.sendNotification("create_message_fail",[e,a],i)})},uploadForHubot:function(e,t,n){var i,r=this.dataStore.getTalk(e),t={file:t,thumb:null};null==r?(i=on.toFileInfoDynamic(t),e=this.dataFactory.newDummyMessage(e,c.file,i),i={code:400,message:"invalid talk_id (deleted talk)"},F._w("["+L.dateStr(new Date)+"] ","WARNING method: upload",i,"","",""),this.sendNotification("create_message_fail",[i,e],n)):this.uploadV2(r.domainId,r.id,t,n)},uploadMultiV2:function(e,t,n,i,r){var o=this,a=on.toFileInfoDynamicArray(i),s=this.dataFactory.newDummyMessage(t,c.textMultipleFile,{text:n,files:a});this.sendNotification("create_message_start",s),this.prepareMessageFilesAsync(e,n,i,!1).then(function(e){o._createMessage(t,c.textMultipleFile,e,s,r).catch(function(e){})},function(e){o.sendNotification("create_message_fail",[e,s],r)})},uploadMultiForHubot:function(e,t,n,i){var r,o=this.dataStore.getTalk(e),n=n.map(function(e){return{file:e,thumb:null}});null==o?(r=on.toFileInfoDynamicArray(n),e=this.dataFactory.newDummyMessage(e,c.textMultipleFile,{text:t,files:r}),r={code:400,message:"invalid talk_id (deleted talk)"},F._w("["+L.dateStr(new Date)+"] ","WARNING method: uploadMulti",r,"","",""),this.sendNotification("create_message_fail",[r,e],i)):this.uploadMultiV2(o.domainId,o.id,t,n,i)},validateFileName:function(t){var n=w.replace(t.name,"$","__");if(n==t.name)return t;try{return t.name=n,t}catch(e){var i=t.slice(0,t.size,t.type);return new File([i],n,{type:t.type})}},prepareMessageFilesAsync:function(n,t,i,r){for(var o=this,e=Promise.resolve([]),a=0;ae.version?n:(n=this.accountControlRequests,null!=W[t]?n.setReserved(t,e):n.h[t]=e,this.storage.setDirtyFlag(),e)},removeAccountControlRequest:function(e){e="_"+e.high+"_"+e.low;this.accountControlRequests.remove(e),this.storage.setDirtyFlag()},removeAccountControlRequests:function(){this.accountControlRequests=new B,this.storage.setDirtyFlag()},getAccountControlGroup:function(){return this.accountControlGroup},setAccountControlGroup:function(e){return this.accountControlGroup=e,this.storage.setDirtyFlag(),this.accountControlGroup},updateAccountControlGroup:function(e){var t,n,i;null!=this.accountControlGroup&&(n=this.accountControlGroup.id,t=e.id,null!=n)&&null!=t&&n.high==t.high&&n.low==t.low&&(null!=(n=e.group)&&this.accountControlGroup.group.versions.MAX_CONTENT_BYTES?{ok:!1,errorType:"limit",message:"Content length must be less than or equal to "+s.MAX_CONTENT_BYTES+" bytes, but the actual length is "+e.length+" bytes."}:Ms.validateXml(e)},s.hasPathField=function(e){return C.foreach(e,function(e){return!s.isStringNullOrEmpty(e.path)})},s.validateUpdateNoteInput=function(e,t){if(0==Object.keys(e).length)return Oa.Left("'update' function must not be called with no update fields.");if(null!=e.note_title){if("string"!=typeof e.note_title)return Oa.Left("'note_title' must be specified as String type.");if(0==e.note_title.length)return Oa.Left("'note_title' must not be empty.")}if(null!=e.note_content_type)return Oa.Left("'note_content_type' must not be specified. It cannot be changed.");if(null!=e.note_content){if("string"!=typeof e.note_content)return Oa.Left("'note_content' must be specified as String type.");if(0==e.note_content.length)return Oa.Left("'note_content' must not be empty.");if(t==hn.getValue(po.RICH_TEXT)){t=s.validateXmlContent(e);if(0===t[1])return Oa.Left(t[2])}}t=null;if(null!=e.note_attachments){if(!(e.note_attachments instanceof Array&&null==e.note_attachments.__enum__&&s.all(e.note_attachments,s.isValidAsAttachment)))return Oa.Left("'note_attachments' is an invalid value: "+JSON.stringify(e.note_attachments));t=s.toUpdateNoteAttachmentArray(e.note_attachments)}return Oa.Right({title:e.note_title,content:e.note_content,attachments:t})},s.isValidAsAttachment=function(e){return s.isStringNullOrEmpty(e.url)?!s.isStringNullOrEmpty(e.path):!s.isStringNullOrEmpty(e.id)&&!s.isStringNullOrEmpty(e.name)&&null!=e.content_size&&!s.isStringNullOrEmpty(e.content_type)},s.toUpdateNoteAttachmentArray=function(e){var n=Ea.parseInt64;return C.array(C.map(e,function(e){var t;return s.isStringNullOrEmpty(e.url)?ma.LocalFileAttachment(e):((t=null==e?null:JSON.parse(JSON.stringify(e))).id=n(e.id),ma.RemoteFileAttachment(t))}))},s.validateUpdateNoteOptions=function(e){var t={notify_talk_members_of_update:!0};if(null!=e&&null!=e.notify_talk_members_of_update){if("boolean"!=typeof e.notify_talk_members_of_update)return Oa.Left("'notify_talk_members_of_update' must be of Bool type.");t.notify_talk_members_of_update=e.notify_talk_members_of_update}return Oa.Right(t)},s.all=function(e,t){return C.foreach(e,t)},s.isStringNullOrEmpty=function(e){return null==e||0==e.length},s.prototype={__class__:s},(t["albero_cli.INotes"]=xn).__name__=["albero_cli","INotes"],xn.prototype={__class__:xn},function(e,t){this.delegate=e;e=null!=t?t:{max:24,interval:12e4};this.ratelimit=new N(e.max,e.interval)}),ga=((t["albero_cli.LimitedNotes"]=pa).__name__=["albero_cli","LimitedNotes"],pa.__interfaces__=[xn],pa.prototype={limit:function(e){return this.ratelimit.apply(e)},get:function(e){var t=this;return this.limit(function(){return t.delegate.get(e)})},update:function(e,t,n){var i=this;return this.limit(function(){return i.delegate.update(e,t,n)})},delete:function(e){var t=this;return this.limit(function(){return t.delegate.delete(e)})},validateXml:function(e){return this.delegate.validateXml(e)},on:function(e,t){return this.delegate.on(e,t)},off:function(e,t){return this.delegate.off(e,t)},__class__:pa},function(e,t,n){this.utils=e,this.api=t,this.fileService=n}),Sa=((t["albero_cli.Notes"]=ga).__name__=["albero_cli","Notes"],ga.__interfaces__=[xn],ga.prototype={toNoteId:function(e){return new go(this.utils.parseInt64(e.id))},handleResponse:function(n,i,r){return function(e,t){null!=e?(e=Ta.of(e),i(e)):(e=r(t),n(e))}},get:function(e){var i=this,r=this.toNoteId(e);return new Promise(function(e,t){var n=i.api,e=i.handleResponse(e,t,Aa.of);n.getNote(r,e)})},update:function(e,t,n){var i=s.validateUpdateNoteInput(t,e.noteRevision.contentType);switch(i[1]){case 0:return Promise.reject(Ta.createInvalidParameterError(i[2]));case 1:var r=i[2],o=s.validateUpdateNoteOptions(n);switch(o[1]){case 0:return Promise.reject(Ta.createInvalidParameterError(o[2]));case 1:return this.updateNote(e,r,o[2])}}},delete:function(e){var i=this,r=this.toNoteId(e);return new Promise(function(e,t){var n=i.api,e=i.handleResponse(e,t,Na.of);n.deleteNote(r,e)})},updateNote:function(e,t,n){var r=this,i=e.talkId_i64,o=new go(e.id_i64),a=this.mergeNoteObject(e,t),s=this.createNoteLocalEdit(i,o,a,null),l=n.notify_talk_members_of_update;return new Promise(function(e,t){var n=r.api,i=a.currentRevision,e=r.handleResponse(e,t,ba.of);n.updateNoteV2(o,i,s,l,e)})},mergeNoteObject:function(e,t){e={title:e.noteRevision.title,contentType:e.noteRevision.contentType,content:e.noteRevision.contentText,attachments:s.toUpdateNoteAttachmentArray(e.get_attachments()),currentRevision:e.noteRevision.revision};return null!=t.title&&(e.title=t.title),null!=t.content&&(e.content=t.content),null!=t.attachments&&(e.attachments=t.attachments),e},createNoteLocalEdit:function(e,t,n,i){var r=this.createNoteAttachmentFileInfoList(n.attachments),o=n.contentType==hn.getValue(po.RICH_TEXT);return new So(e,t,n.title,n.content,r,i,null,o)},createNoteAttachmentFileInfoList:function(e){for(var t=[],n=0;n>>31,t.low<<1);if(s=new E(s.high<<1|s.low>>>31,s.low<<1),0<=l)break}for(;;){var u=new E(0,0);if(s.high==u.high&&s.low==u.low)break;var c,u=I.ucompare(n.high,t.high);0<=(0!=u?u:I.ucompare(n.low,t.low))&&(a=new E(a.high|s.high,a.low|s.low),u=n.high-t.high|0,c=n.low-t.low|0,I.ucompare(n.low,t.low)<0&&(u--,u|=0),n=new E(u,c)),s=new E(s.high>>>1,s.high<<31|s.low>>>1);t=new E(t.high>>>1,t.high<<31|t.low>>>1)}return i&&(o=~a.high,0==(r=-a.low)&&(o++,o|=0),a=new E(o,r)),e.high<0&&(i=~n.high,0==(o=-n.low)&&(i++,i|=0),n=new E(i,o)),{quotient:a,modulus:n}},function(){}),Ca=((t["haxe.Int64Helper"]=Da).__name__=["haxe","Int64Helper"],Da.parseString=function(e){for(var t=new E(0,10),n=new E(0,0),i=new E(0,1),r=!1,o=w.trim(e),a=("-"==o.charAt(0)&&(r=!0,o=o.substring(1,o.length)),o.length),s=0,l=a;s>31,u);if(r){var c=65535&i.low,_=i.low>>>16,h=65535&u.low,d=u.low>>>16,f=I._mul(c,h),h=I._mul(_,h),c=I._mul(c,d),_=(I._mul(_,d)+(c>>>16)|0)+(h>>>16)|0,f=(c<<=16,I.ucompare(d=f+c|0,c)<0&&(_++,_|=0),h<<=16,I.ucompare(d=d+h|0,h)<0&&(_++,_|=0),_=_+(I._mul(i.low,u.high)+I._mul(i.high,u.low)|0)|0,new E(_,d)),c=n.high-f.high|0,h=n.low-f.low|0;if(I.ucompare(n.low,f.low)<0&&(c--,c|=0),!((n=new E(c,h)).high<0))throw new H("NumberFormatError: Underflow")}else{var _=65535&i.low,d=i.low>>>16,f=65535&u.low,c=u.low>>>16,h=I._mul(_,f),m=I._mul(d,f),p=I._mul(_,c),g=(I._mul(d,c)+(p>>>16)|0)+(m>>>16)|0,p=(p<<=16,I.ucompare(S=h+p|0,p)<0&&(g++,g|=0),m<<=16,I.ucompare(S=S+m|0,m)<0&&(g++,g|=0),g=g+(I._mul(i.low,u.high)+I._mul(i.high,u.low)|0)|0,new E(g,S)),m=n.high+p.high|0,u=n.low+p.low|0;if(I.ucompare(u,n.low)<0&&(m++,m|=0),(n=new E(m,u)).high<0)throw new H("NumberFormatError: Overflow")}var g=65535&i.low,S=i.low>>>16,p=65535&t.low,m=t.low>>>16,u=I._mul(g,p),y=I._mul(S,p),v=I._mul(g,m),T=(I._mul(S,m)+(v>>>16)|0)+(y>>>16)|0,T=(v<<=16,I.ucompare(u=u+v|0,v)<0&&(T++,T|=0),y<<=16,I.ucompare(u=u+y|0,y)<0&&(T++,T|=0),T+(I._mul(i.low,t.high)+I._mul(i.high,t.low)|0)|0),i=new E(T,u)}return n},function(){this.buf=new A,this.cache=[],this.useCache=Ca.USE_CACHE,this.useEnumIndex=Ca.USE_ENUM_INDEX,this.shash=new B,this.scount=0}),ka=((t["haxe.Serializer"]=Ca).__name__=["haxe","Serializer"],Ca.run=function(e){var t=new Ca;return t.serialize(e),t.toString()},Ca.prototype={toString:function(){return this.buf.b},serializeString:function(e){var t,n=this.shash,n=null!=W[e]?n.getReserved(e):n.h[e];null!=n?(this.buf.b+="R",this.buf.b+=null==n?"null":""+n):(n=this.shash,t=this.scount++,null!=W[e]?n.setReserved(e,t):n.h[e]=t,this.buf.b+="y",e=encodeURIComponent(e),this.buf.b+=P.string(e.length),this.buf.b+=":",this.buf.b+=null==e?"null":""+e)},serializeRef:function(e){for(var t=typeof e,n=0,i=this.cache.length;n>2]),this.buf.b+=String.fromCharCode(N[63&(D<<4|C>>4)]),this.buf.b+=String.fromCharCode(N[63&(C<<2|k>>6)]),this.buf.b+=String.fromCharCode(N[63&k])}E==I?(l=w.b[E++],T=w.b[E++],this.buf.b+=String.fromCharCode(N[l>>2]),this.buf.b+=String.fromCharCode(N[63&(l<<4|T>>4)]),this.buf.b+=String.fromCharCode(N[T<<2&63])):E==1+I&&(l=w.b[E++],this.buf.b+=String.fromCharCode(N[l>>2]),this.buf.b+=String.fromCharCode(N[l<<4&63]));break;default:this.useCache&&this.cache.pop(),null!=e.hxSerialize?(this.buf.b+="C",this.serializeString(x.getClassName(i)),this.useCache&&this.cache.push(e),e.hxSerialize(this),this.buf.b+="g"):(this.buf.b+="c",this.serializeString(x.getClassName(i)),this.useCache&&this.cache.push(e),this.serializeFields(e))}break;case 7:n=t[2];if(this.useCache){if(this.serializeRef(e))return;this.cache.pop()}this.buf.b+=P.string(this.useEnumIndex?"j":"w"),this.serializeString(x.getEnumName(n)),this.useEnumIndex?(this.buf.b+=":",this.buf.b+=P.string(e[1])):this.serializeString(e[0]),this.buf.b+=":";for(var n=e.length,R=(this.buf.b+=P.string(n-2),2),O=n;R=(null==(r=e.right)?0:r._height)?new Ra(e.left,e.key,e.value,new Ra(e.right,t,n,i)):new Ra(new Ra(e.left,e.key,e.value,e.right.left),e.right.key,e.right.value,new Ra(e.right.right,t,n,i)):o+2(null==(r=i.left)?0:r._height)?new Ra(new Ra(e,t,n,i.left),i.key,i.value,i.right):new Ra(new Ra(e,t,n,i.left.left),i.left.key,i.left.value,new Ra(i.left.right,i.key,i.value,i.right)):new Ra(e,t,n,i,(a(null==t?0:t._height)?null==(n=this.left)?0:n._height:null==(i=this.right)?0:i._height,this._height=e+1):this._height=r}),Oa=((t["haxe.ds.TreeNode"]=Ra).__name__=["haxe","ds","TreeNode"],Ra.prototype={__class__:Ra},t["haxe.ds.Either"]={__ename__:["haxe","ds","Either"],__constructs__:["Left","Right"]}),Fa=(Oa.Left=function(e){e=["Left",0,e];return e.__enum__=Oa,e.toString=o,e},Oa.Right=function(e){e=["Right",1,e];return e.__enum__=Oa,e.toString=o,e},Oa.__empty_constructs__=[],function(){Gn.call(this)}),Ua=((t["haxe.ds.EnumValueMap"]=Fa).__name__=["haxe","ds","EnumValueMap"],Fa.__interfaces__=[Hn],Fa.__super__=Gn,Fa.prototype=e(Gn.prototype,{compare:function(e,t){var n=e[1]-t[1];return 0!=n?n:(n=e.slice(2),e=t.slice(2),0==n.length&&0==e.length?0:this.compareArgs(n,e))},compareArgs:function(e,t){var n=e.length-t.length;if(0!=n)return n;for(var i=0,r=e.length;i>6):(i<=65535?t.push(224|i>>12):(t.push(240|i>>18),t.push(128|i>>12&63)),t.push(128|i>>6&63)),t.push(128|63&i))}return new Pa(new Cs(t).buffer)},Pa.ofData=function(e){var t=e.hxBytes;return null!=t?t:new Pa(e)},Pa.fastGet=function(e,t){return e.bytes[t]},Pa.prototype={getString:function(e,t){if(e<0||t<0||e+t>this.length)throw new H(Ha.OutsideBounds);for(var n="",i=this.b,r=String.fromCharCode,o=e,a=e+t;o>10)))+r(1023&s|56320)}return n},toString:function(){return this.getString(0,this.length)},__class__:Pa},(t["haxe.io.BytesBuffer"]=zn).__name__=["haxe","io","BytesBuffer"],zn.prototype={getBytes:function(){var e=new Pa(new Cs(this.b).buffer);return this.b=null,e},__class__:zn},(t["haxe.io.Input"]=Yn).__name__=["haxe","io","Input"],Yn.prototype={readByte:function(){throw new H("Not implemented")},readBytes:function(e,t,n){var i=n,r=e.b;if(t<0||n<0||e.lengthe.length)throw new H(Ha.OutsideBounds);if(0==this.len&&0e.length)throw new H(Ha.OutsideBounds);for(var i=e.b,r=n;0>8),this.writeByte(255&e)):(this.writeByte(255&e),this.writeByte(e>>8))},writeInt32:function(e){this.bigEndian?(this.writeByte(e>>>24),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)):(this.writeByte(255&e),this.writeByte(e>>8&255),this.writeByte(e>>16&255),this.writeByte(e>>>24))},__class__:Kn},(t["haxe.io.BytesOutput"]=jn).__name__=["haxe","io","BytesOutput"],jn.__super__=Kn,jn.prototype=e(Kn.prototype,{writeByte:function(e){this.b.b.push(e)},writeBytes:function(e,t,n){var i=this.b;if(t<0||n<0||t+n>e.length)throw new H(Ha.OutsideBounds);i.b;for(var r=e.b,o=t,a=t+n;o>>23&255,n=8388607&e;return 0==n&&0==t?0:(1-(e>>>31<<1))*(1+Math.pow(2,-23)*n)*Math.pow(2,t-127)},Ga.floatToI32=function(e){var t,n;return 0==e?0:(n=e<0?-e:e,(t=Math.floor(Math.log(n)/.6931471805599453))<-127?t=-127:128>20&2047)-1023,e=4294967296*(1048575&t)+2147483648*(e>>>31)+(2147483647&e);return 0==e&&-1023==n?0:(1-(t>>>31<<1))*(1+Math.pow(2,-52)*e)*Math.pow(2,n)},Ga.doubleToI64=function(e){var t,n,i,r=Ga.i64tmp;return 0==e?(r.low=0,r.high=0):isFinite(e)?(n=e<0?-e:e,t=Math.floor(Math.log(n)/.6931471805599453),i=(n=Math.round(4503599627370496*(n/Math.pow(2,t)-1)))/4294967296|0,r.low=0|n,r.high=(e<0?-2147483648:0)|t+1023<<20|i):0";var n=typeof e;switch(n="function"==n&&(e.__name__||e.__ename__)?"object":n){case"function":return"";case"object":if(e instanceof Array){if(e.__enum__){if(2==e.length)return e[0];for(var i=e[0]+"(",r=(t+="\t",2),o=e.length;rthis.byteLength)throw new H("set() outside of range");for(var i=0,r=e.byteLength;ithis.byteLength)throw new H("set() outside of range");for(var s=0,l=a.length;st&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace)&&console.trace(),this;throw TypeError("listener must be a function")},$a.prototype.once=function(e,t){var n;if(es(t))return n=!1,i.listener=t,this.on(e,i),this;throw TypeError("listener must be a function");function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}},$a.prototype.removeListener=function(e,t){var n,i,r,o;if(!es(t))throw TypeError("listener must be a function");if(this._events&&this._events[e])if(r=(n=this._events[e]).length,i=-1,n===t||es(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(ts(n)){for(o=r;0{for(var n in t)is(e,n,{get:t[n],enumerable:!0})})(bs={},{codePointCount:()=>ls,extractMentionParts:()=>fs,findMentionSuggestionHint:()=>ps,hasMentionPartForMeOrAll:()=>cs,invalidateManualMentionMarkup:()=>hs,parseMessageMention:()=>ds,removeMentionMarkup:()=>_s}),ss=e=>Array.from(e),ls=e=>ss(e).length,us=/{@:(ALL|\d+),(\d+)}@/g,cs=e=>fs(e).some(({userIdNumStr:e})=>null===e||"ALL"===e),_s=t=>ds(t).map(e=>"mention"===e.type?e.mentionText:"normal"===e.type?t.substring(e.start,e.end):"").join(""),hs=e=>e.replace(us,e=>e.substring(0,e.length-1)+" "),ds=e=>{let n=0;var t=fs(e).flatMap(e=>{var t=[];return n!==e.start&&t.push({type:"normal",start:n,end:e.start}),t.push(e),n=e.end,t});return e.length!==n&&t.push({type:"normal",start:n,end:e.length}),t},fs=o=>{let a=0;return Array.from(o.matchAll(us)).flatMap(e=>{var t,n,i,r=null!=(r=e.index)?r:0;return r{e=e.match(ms);return null===e?null:{prev:e[1],atMarks:e[2],keyword:e[3]}},bs=bs,((t,n,i,r)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let e of os(n))as.call(t,e)||e===i||is(t,e,{get:()=>n[e],enumerable:!(r=rs(n,e))||r.enumerable});return t})(is({},"__esModule",{value:!0}),bs)),S.exports),Ss=((String.prototype.__class__=t.String=String).__name__=["String"],(t.Array=Array).__name__=["Array"],(Date.prototype.__class__=t.Date=Date).__name__=["Date"],t.Int={__name__:["Int"]}),ys=t.Dynamic={__name__:["Dynamic"]},vs=t.Float=Number,Ts=(vs.__name__=["Float"],t.Bool=Boolean),ws=(Ts.__ename__=["Bool"],t.Class={__name__:["Class"]}),Es={};(Ii={exports:null}).exports={upload:function(e){var t=e.url,n=e.headers,i=e.data,r=e.files,o=e.complete,a=new FormData;for(s in i)i.hasOwnProperty(s)&&a.append(s,i[s]);for(s in r)r.hasOwnProperty(s)&&a.append(s,r[s]);var s,l=new XMLHttpRequest;for(s in l.open("POST",t,!0),n)n.hasOwnProperty(s)&&l.setRequestHeader(s,n[s]);return l.onload=function(e){4===l.readyState&&o(200===l.status,l)},l.onerror=function(e){o(!1,l)},l.send(a),l}};var Is=Ii.exports,Ns={websocketsbinary:!0,audio:!1},As={},bs={},Ms=(bs.exports=(()=>{var e=require("fs");let r=require("libxmljs");var t=require("path");let n=e=>e.namespace()?.href()??"",a=e=>`{${n(e)}}`+e.name();t=t.resolve(__dirname,"./note-richtext.v1.xsd"),e=r.parseXml(e.readFileSync(t,{encoding:"utf-8"}),{baseUrl:t});let i=new Map;function o(e){var t=Number(e.root().getAttribute("version")?.value()),n=i.get(t);return n?e.validate(n)?{ok:!0}:{ok:!1,errorType:"xsd",message:e.validationErrors.map(e=>e.message.trim()).join(" ")}:{ok:!1,errorType:"version",message:`The note version ${t} is not supported by this package. Please use one of the following values: `+Array.from(i.keys()).join(",")}}i.set(1,e);let s=new Map;function l(e){try{return function n(e,i,r){for(var o of e.childNodes())if("element"===o.type()){if(!i.includes(o.name()))throw new Error(`Element '${a(o)}': This element is not allowed at '${o.path()}'.`);{let t=r.get(o.name())??[],e=[...i].filter(e=>t.includes(e))??[];n(o,e,r)}}}(e.root(),s.get(e.root().name()),s),{ok:!0}}catch(e){return{ok:!1,errorType:"descendant",message:e.message}}}s.set("note",["textsize","color","b","link","u","strike","checkbox"]),s.set("textsize",["color","b","link","u","strike"]),s.set("color",["textsize","b","link","u","strike"]),s.set("b",["textsize","color","link","u","strike"]),s.set("link",["textsize","b","strike"]),s.set("u",["textsize","color","b","link","strike"]),s.set("strike",["textsize","color","b","link","u"]),s.set("checkbox",["color","b","link","u","strike"]);let u=e=>"element"===e.type(),c=e=>"element"===e.type()&&"checkbox"===e.name(),_=e=>"element"===e.type()&&"link"===e.name(),h=e=>"element"===e.type()&&["textsize","color","b","link","u","strike"].includes(e.name());function d(e,t,n,i){for(var r of e.childNodes())t(r)&&(n(r)&&i.push(r),d(r,t,n,i))}function f(e){var t=[];d(e.root(),u,_,t);try{for(var n of t){var i=n.text();if(null==i||""===i)throw new Error(`Element '${a(n)}': This element must not be empty. (element path: ${n.path()})`);if(/\r|\n/.test(i))throw new Error(`Element '${a(n)}': This element must not contain a new line. (element path: ${n.path()})`);var r=n.attrs().filter(e=>"url"===e.name())[0].value();if(!/^[\x20-\x7E]+$/.test(r))throw new Error(`Element '${a(n)}': The attribute 'url' must be URL-encoded or must be converted by Punycode if it's an IDN. (element path: ${n.path()})`)}return{ok:!0}}catch(e){return{ok:!1,errorType:"link",message:e.message}}}function m(e){var t=[];d(e.root(),u,c,t);try{for(var n of t)if(/\r|\n/.test(n.text()))throw new Error(`Element '${a(n)}': This element must not contain a new line. (element path: ${n.path()})`);return{ok:!0}}catch(e){return{ok:!1,errorType:"checkbox",message:e.message}}}function p(e){var t=[];d(e.root(),u,h,t);try{for(var n of t){var i=n.text();if(null==i||""===i)throw new Error(`Element '${a(n)}': This element must not be empty. (element path: ${n.path()})`)}return{ok:!0}}catch(e){return{ok:!1,errorType:"text-decorator",message:e.message}}}return{validateXml:function(e){let t;try{t=r.parseXml(e).doc()}catch(e){return{ok:!1,errorType:"parse",message:e.message}}let n={ok:!0};var i;for(i of[o,l,f,m,p])if(!(n=i(t)).ok)break;return n}}})(),bs.exports),W={},Ds=y.ArrayBuffer||Vn,Cs=(null==Ds.prototype.slice&&(Ds.prototype.slice=Vn.sliceImpl),y.Uint8Array||qn._new);l.APP_STATE_CHANGED="app_state_changed",l.ACCESS_TOKEN_CHANGED="access_token_changed",l.CURRENT_USER_CHANGED="current_user_changed",l.CONFIGURATION_CHANGED="configuration_changed",l.DOMAIN_SELECTION_CHANGED="domain_selection_changed",l.TALK_SELECTION_CHANGED="talk_selection_changed",l.TALK_LIST_SCROLL_TO_TALK_TOP_NEEDED="talk_list_scroll_to_talk_top_needed",l.USER_SELECTION_NEEDED="user_selection_needed",l.USER_SELECTION_CHANGED="user_selection_changed",l.FRIEND_SELECTION_NEEDED="friend_selection_needed",l.COMMON_STAMP_SET_LOADED="common_stamp_set_loaded",l.STAMP_SELECTION_STARTED="stamp_selection_started",l.STAMP_SELECTION_ENDED="stamp_selection_ended",l.STAMP_SELECTION_CHANGED="stamp_selection_changed",l.ACTION_SELECTION_CHANGED="action_selection_changed",l.CURRENT_PAGE_CHANGED="current_page_changed",l.CURRENT_PAGE_REASSIGNED="current_page_reassgined",l.FILEINFO_SELECTION_CHANGED="fileinfo_selection_changed",l.NOTE_FILEINFO_SELECTION_CHANGED="note_fileinfo_selection_changed",l.MESSAGE_FILEINFO_SELECTION_CHANGED="message_fileinfo_selection_changed",l.STAGED_FILEINFO_SELECTION_CHANGED="staged_fileinfo_selection_changed",l.STAGED_FILEINFOS_ADDED="staged_fileinfos_added",l.STAGED_FILEINFOS_MOVED="staged_fileinfos_moved",l.CLOSE_FILEPREVIEW_MODAL="close_filepreview_modal",l.ERROR_OCCURRED="error_occurred",l.UNREAD_COUNT_CHANGED="brand_badge_changed",l.SEND_FORM_TOP_CHANGED="send_form_top_changed",l.SOLUTIONS_LOADED="solutions_loaded",l.RIGHT_PANE_OPENED="right_pane_opened",l.RIGHT_PANE_CLOSED="right_pane_closed",l.PASSWORD_EXPIRATION_OVERED="password_expiration_overed",l.PASSWORD_EXPIRATION_WARNED="password_expiration_warned",l.PHOTO_EDITOR_SAVED="photo_editor_saved",l.ICON_EDITOR_SAVED="icon_editor_saved",l.MC_AUTHENTICATED_USER_RECEIVED="mc_authenticated_user_received",l.KEYWORD_WATCHING_UPDATED="keyword_watching_updated",l.KEYWORD_DETECTION_UPDATED="keyword_detaction_updated",l.DEPARTMENT_SELECTION_CHANGED_FOR_MEMBERS_PAGE="department_selection_changed_for_members_page",l.PRESENCES_UPDATED="presences_updated",l.NOTEINFO_SELECTION_CHANGED="noteinfo_selection_changed",l.START_NOTE_EDITING="start_note_editing",l.OPEN_EXISTING_PAIR_TALK_COMPLETED="open_existing_pair_talk_completed",l.FIRST_ROUTING_WILL_START="first_routing_will_start",l.SIGNED_OUT="signed_out",l.ROUTUNG_TALK_FALLBACK="routing_talk_fallback",l.ROUTUNG_DOMAIN_FALLBACK="routing_domain_fallback",l.TALKS_SORT_MODE_CHANGED="talks_sort_mode_changed",l.RESERVE_SCHEDULED_MESSAGE_EDITING="reserve_scheduled_message_editing",l.DATA_RECOVERING="data_recovering",l.DATA_RECOVERED="data_recovered",l.NOTIFY_UPDATE_USER="notify_update_user",l.NOTIFY_ADD_FRIEND="notify_add_friend",l.NOTIFY_ADD_ACQUAINTANCE="notify_add_acquaintance",l.NOTIFY_ADD_ACQUAINTANCES="notify_add_acquaintances",l.NOTIFY_DELETE_FRIEND="notify_delete_friend",l.NOTIFY_DELETE_ACQUAINTANCE="notify_delete_acquaintance",l.NOTIFY_DELETE_ACQUAINTANCES="notify_delete_acquaintances",l.NOTIFY_UPDATE_DOMAIN_USERS="notify_update_domain_users",l.GET_DOMAIN_USERS_RESPONSED="get_domain_users_responsed",l.GET_USERS_RESPONSED="get_users_responsed",l.GET_PROFILE_RESPONSED="get_profile_responsed",l.GET_PROFILE_ERRORED="get_profile_errored",l.UPDATE_USER_RESPONSED="update_user_responsed",l.UPDATE_USER_ERRORED="update_user_errored",l.UPDATE_PROFILE_RESPONSED="update_profile_responsed",l.UPDATE_PROFILE_ERRORED="update_profile_errored",l.NOTIFY_UPDATE_DEPARTMENT_TREE="notify_update_department_tree",l.NOTIFY_UPDATE_DEPARTMENT_USERS="notify_update_department_users",l.GET_DEPARTMENT_TREE_RESPONSED="get_department_tree_responsed",l.GET_DEPARTMENT_TREE_CANCELED="get_department_tree_canceled",l.GET_DEPARTMENT_USERS_RESPONSED="get_department_users_responsed",l.GET_DEPARTMENT_USERS_CANCELED="get_department_users_canceled",l.GET_DEPARTMENT_USER_COUNT_RESPONSED="get_department_user_count_responsed",l.GET_ME_RESPONSED="get_me_responsed",l.DEPARTMENT_USER_COUNT_CLEARED="department_user_count_cleared",l.DEPARTMENT_USER_IDS_PREPARED="department_user_ids_prepared",l.NOTIFY_ADD_DOMAIN_INVITE="notify_add_domain_invite",l.NOTIFY_ACCEPT_DOMAIN_INVITE="notify_accept_domain_invite",l.NOTIFY_DELETE_DOMAIN_INVITE="notify_delete_domain_invite",l.NOTIFY_JOIN_DOMAIN="notify_join_domain",l.NOTIFY_UPDATE_DOMAIN="notify_update_domain",l.NOTIFY_LEAVE_DOMAIN="notify_leave_domain",l.NOTIFY_ADD_DOMAIN_MEMBERS="notify_add_domain_members",l.NOTIFY_CREATE_PAIR_TALK="notify_create_pair_talk",l.CREATE_PAIR_TALK_COMPLETE="create_pair_talk_complete",l.CREATE_PAIR_TALK_FAIL="create_pair_talk_fail",l.NOTIFY_CREATE_GROUP_TALK="notify_create_group_talk",l.CREATE_GROUP_TALK_COMPLETE="create_group_talk_complete",l.CREATE_GROUP_TALK_FAIL="create_group_talk_fail",l.NOTIFY_UPDATE_GROUP_TALK="notify_update_group_talk",l.UPDATE_GROUP_TALK_COMPLETE="update_group_talk_complete",l.UPDATE_GROUP_TALK_FAIL="update_group_talk_fail",l.NOTIFY_ADD_TALKERS="notify_add_talkers",l.NOTIFY_ADD_TALKERS_INCLUDING_ME="notify_add_talkers_including_me",l.NOTIFY_DELETE_TALKER="notify_delete_talker",l.NOTIFY_DELETE_TALK="notify_delete_talk",l.NOTIFY_UPDATE_READ_STATUSES="notify_update_read_statuses",l.NOTIFY_UPDATE_TALK_STATUS="notify_update_talk_status",l.NOTIFY_UPDATE_LOCAL_TALK_STATUS="notify_update_local_talk_status",l.NOTIFY_ADD_FAVORITE_TALK="notify_add_favorite_talk",l.NOTIFY_DELETE_FAVORITE_TALK="notify_delete_favorite_talk",l.NOTIFY_DISABLE_PUSH_NOTIFICATION="notify_disable_push_notification",l.NOTIFY_ENABLE_PUSH_NOTIFICATION="notify_enable_push_notification",l.ADD_TALKERS_SUCCEEDED="add_talkers_succeeded",l.ADD_TALKERS_FAILED="add_talkers_failed",l.NOTIFY_CREATE_MESSAGE="notify_create_message",l.NOTIFY_DELETE_MESSAGE="notify_delete_message",l.NOTIFY_GET_MESSAGES="notify_get_messages",l.NOTIFY_GET_MESSAGE_READ_STATUS="notify_get_message_status",l.CREATE_MESSAGE_START="create_message_start",l.CREATE_MESSAGE_COMPLETE="create_message_complete",l.CREATE_MESSAGE_FAIL="create_message_fail",l.ADD_FAVORITE_MESSAGE_COMPLETED="add_favorite_message_completed",l.DELETE_FAVORITE_MESSAGE_COMPLETED="delete_favorite_message_completed",l.GET_FAVORITE_MESSAGES_COMPLETED="get_favorite_messages_completed",l.NOTIFY_ADD_FAVORITE_MESSAGE="notify_add_favorite_message",l.NOTIFY_DELETE_FAVORITE_MESSAGE="notify_delete_favorite_message",l.NOTIFY_SCHEDULE_MESSAGE="notify_schedule_message",l.NOTIFY_PROCESSED_SCHEDULED_MESSAGE="notify_processed_scheduled_message",l.NOTIFY_DELETE_SCHEDULED_MESSAGE="notify_delete_scheduled_message",l.GET_SCHEDULED_MESSAGES_COMPLETED="get_scheduled_messages_completed",l.GET_SCHEDULED_MESSAGES_FAILED="get_scheduled_messages_failed",l.DELETE_SCHEDULED_MESSAGES_COMPLETED="delete_scheduled_messages_completed",l.SCHEDULE_MESSAGE_STARTED="schedule_message_started",l.SCHEDULE_MESSAGE_COMPLETED="schedule_message_completed",l.SCHEDULE_MESSAGE_FAILED="schedule_message_faileed",l.RESCHEDULE_MESSAGE_STARTED="reschedule_message_started",l.RESCHEDULE_MESSAGE_COMPLETED="reschedule_message_completed",l.RESCHEDULE_MESSAGE_FAILED="reschedule_message_failed",l.NOTIFY_UPDATE_MESSAGE_REACTIONS="notify_update_message_reactions",l.GET_MESSAGE_REACTION_SUMMARIES_COMPLETED="get_message_reaction_summaries_completed",l.GET_MESSAGE_REACTION_SUMMARIES_FAILED="get_message_reaction_summaries_failed",l.SET_MESSAGE_REACTION_COMPLETED="set_message_reaction_completed",l.SET_MESSAGE_REACTION_FAILED="set_message_reaction_failed",l.RESET_MESSAGE_REACTION_COMPLETED="reset_message_reaction_completed",l.RESET_MESSAGE_REACTION_FAILED="reset_message_reaction_failed",l.NOTIFY_CREATE_ANNOUNCEMENT="notify_create_announcement",l.NOTIFY_DELETE_ANNOUNCEMENT="notify_delete_announcement",l.NOTIFY_UPDATE_ANNOUNCEMENT_STATUS="notify_update_announcement_status",l.NOTIFY_GET_ANNOUNCEMENTS="notify_get_announcements",l.CREATE_ANNOUNCEMENT_START="create_announcement_start",l.CREATE_ANNOUNCEMENT_COMPLETE="create_announcement_complete",l.CREATE_ANNOUNCEMENT_FAIL="create_announcement_fail",l.NOTIFY_UPDATE_QUESTION="notify_update_question",l.NOTIFY_GET_QUESTIONS="get_questions_responsed",l.NOTIFY_CREATE_ATTACHMENT="notify_create_attachment",l.NOTIFY_DELETE_ATTACHMENT="notify_delete_attachment",l.GET_FILE_RESPONSED="get_file_responsed",l.GET_FILE_PREVIEW="get_file_preview",l.CREATE_FILE_PREVIEW="create_file_preview",l.GET_NOTE_STATUSES_LOADED="get_note_statuses_loaded",l.GET_NOTE_LOADED="get_note_loaded",l.GET_NOTE_FAILED_BY_NOTE_NOT_FOUND="get_note_failed_by_note_not_found",l.CREATE_NOTE_COMPLETED="create_note_completed",l.CREATE_NOTE_FAILED="create_note_failed",l.UPDATE_NOTE_LOCAL_EDIT="update_note_local_edit",l.CLEAR_NOTE_LOCAL_EDIT="clear_note_local_edit",l.UPDATE_NOTE_SETTING_COMPLETED="update_note_setting_completed",l.UPDATE_NOTE_SETTING_FAILED_BY_NOT_FOUND="update_note_setting_failed_by_not_found",l.UPDATE_NOTE_SETTING_FAILED_BY_CONFLICT="update_note_setting_failed_by_conflict",l.UPDATE_NOTE_SETTING_FAILED_BY_EDITING="update_note_setting_failed_by_editing",l.UPDATE_NOTE_COMPLETED="update_note_completed",l.DELETE_NOTE_COMPLETED="delete_note_completed",l.NOTIFY_CREATE_NOTE="notify_create_note",l.NOTIFY_UPDATE_NOTE_PARTIALLY="notify_update_note_partially",l.NOTIFY_DELETE_NOTE="notify_delete_note",l.NOTIFY_UPDATE_NOTE_FOR_SETTING="notify_update_note_for_setting",l.NOTIFY_UPDATE_NOTE_FOR_SUMMARY="notify_update_note_for_revision",l.CREATE_NOTE_BUTTON_CLICKED="create_note_button_clicked",l.NOTIFY_LOCK_NOTE="notify_lock_note",l.NOTIFY_UNLOCK_NOTE="notify_unlock_note",l.NOTIFY_SEARCH_MESSAGES="notify_search_messages",l.NOTIFY_SEARCH_ATTACHMENTS="notify_search_attachments",l.NOTIFY_SEARCH_MESSAGES_FAIL="notify_search_messages_fail",l.NOTIFY_SEARCH_ATTACHMENTS_FAIL="notify_search_attachments_fail",l.NOTIFY_SEARCH_PREPARE="notify_search_prepare",l.NOTIFY_SEARCH_CLEAR="notify_search_clear",l.NOTIFY_FILTER_BOX_TEXT_CHANGED="notify_filter_box_text_changed",l.NOTIFY_SEARCH_BOX_POPUP="notify_search_box_popup",l.NOTIFY_ADD_ACCOUNT_CONTROL_REQUEST="notify_add_account_control_request",l.NOTIFY_DELETE_ACCOUNT_CONTROL_REQUEST="notify_delete_account_control_request",l.NOTIFY_JOIN_ACCOUNT_CONTROL_GROUP="notify_join_account_control_group",l.NOTIFY_UPDATE_ACCOUNT_CONTROL_GROUP_PARTIALLY="notify_update_account_control_group_partially",l.NOTIFY_LEAVE_ACCOUNT_CONTROL_GROUP="notify_leave_account_control_group",l.PREPARE_CONFERENCE_FROM_MESSAGE="prepare_conference_from_message",l.JOIN_CONFERENCE_RESPONSED="join_conference_responsed",l.JOIN_CONFERENCE_CANCELED="join_conference_canceled",l.GET_CONFERENCE_PARTICIPANTS_RESPONSED="get_conference_participants_responsed",l.NOTIFY_OPEN_CONFERENCE="notify_open_conference",l.NOTIFY_CLOSE_CONFERENCE="notify_close_conference",l.NOTIFY_CONFERENCE_PARTICIPANT_JOIN="notify_conference_participant_join",l.NOTIFY_CONFERENCE_PARTICIPANT_LIMIT="notify_conference_participant_limit",l.NOTIFY_CONFERENCE_PARTICIPANT_REJECT="notify_conference_participant_reject",l.NOTIFY_ALL_TALK_MEMBERS_REJECTED_CONFERENCE="notify_all_talk_members_rejected_conference",l.NOTIFY_UPDATE_DOMAIN_STAMP_SETTING="notify_update_domain_stampsetting",l.NOTIFY_UPDATE_STAMPSET="notify_update_stampset",l.NOTIFY_DELETE_STAMPSET="notify_delete_stampset",l.NOTIFY_UPDATE_DOMAIN_BUILTIN_STAMP_SETTING="notify_update_domain_builtin_stampsetting",l.NOTIFY_FLOW_NOTIFICATION_BADGE="notify_flow_notification_badge",l.GET_FLOW_NOTIFICATION_BADGES_COMPLETED="get_flow_notification_badges_completed",l.GET_FLOW_NOTIFICATION_BADGES_FAILED="get_flow_notification_badges_failed",l.GET_DIRECT_APPS_COMPLETED="get_direct_apps_completed",l.GET_DIRECT_APPS_FAILED="get_direct_apps_failed",l.START_NOTIFICATION_FAILED="start_notification_failed",V.DEFAULT_RESOLVER=new j,V.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:",_.accessMode=ui.Disabled,ae.ANNOUNCEMENTS_KEY="-1",hi.__meta__={fields:{api:{inject:null}}},hi.NAME="AccountControlRequest",fi.__meta__={fields:{api:{inject:null},dataStore:{inject:null}}},fi.NAME="Conference",pi.__meta__={fields:{api:{inject:null}}},pi.NAME="Device",Si.__meta__={fields:{api:{inject:null}}},Si.NAME="Domain",vi.__meta__={fields:{api:{inject:null}}},vi.NAME="File",wi.__meta__={fields:{api:{inject:null}}},wi.NAME="FilePreview",Ei.__meta__={fields:{api:{inject:null},dataStore:{inject:null}}},Ei.NAME="LoadStampset",Ai.__meta__={fields:{api:{inject:null}}},Ai.NAME="ManageFriends",bi.__meta__={fields:{api:{inject:null}}},bi.NAME="Message",Di.__meta__={fields:{dataStore:{inject:null},api:{inject:null}}},Di.NAME="MessageReaction",ki.__meta__={fields:{api:{inject:null},dataStore:{inject:null},fileService:{inject:null}}},ki.NAME="Note",Oi.__meta__={fields:{api:{inject:null},keywordWatcher:{inject:null},readStatusUpdater:{inject:null}}},Oi.NAME="Read",Ui.__meta__={fields:{api:{inject:null}}},Ui.NAME="ReloadData",Li.__meta__={fields:{dataStore:{inject:null},api:{inject:null}}},Li.NAME="ScheduleMessage",Bi.__meta__={fields:{api:{inject:null},searchService:{inject:null}}},Bi.NAME="Search",Gi.__meta__={fields:{dataStore:{inject:null},settings:{inject:null}}},Gi.NAME="SelectTalk",Yi.__meta__={fields:{api:{inject:null}}},Yi.NAME="Send",Wi.__meta__={fields:{accessTokenResolver:{inject:null},session:{inject:null}}},Wi.NAME="SignIn",Ki.__meta__={fields:{api:{inject:null},settings:{inject:null},dataStore:{inject:null}}},Ki.NAME="SignOut",ji.__meta__={fields:{api:{inject:null},dataStore:{inject:null}}},ji.NAME="Talk",qi.__meta__={fields:{api:{inject:null},dataStore:{inject:null}}},qi.NAME="UpdateProfile",Xi.__meta__={fields:{api:{inject:null}}},Xi.NAME="UpdateUser",Qi.__meta__={fields:{userPresences:{inject:null},api:{inject:null},settings:{inject:null}}},Qi.NAME="UpdateUserPresences",Qi.MAX_USERS_PER_API=100,Ji.__meta__={fields:{routing:{inject:null}}},Ji.NAME="Url",Te.TalkAutoScrollDelay=1,Te.TalkAutoScrollImmediately=2,Te.TalkAutoScrollNone=3,Te.NotificationPopupTime5Sec=5,Te.TalksSortModeNewMessagesFirst="new_messages_first",Te.TalksSortModeUnreadMessagesFirst="unread_messages_first",Te.TalksSortModeOldMessagesFirst="old_messages_first",Te.DomainsSortModeNameOrderAsc="name_order_asc",Te.OLD_KEY_RIGHT_PANEL_OPENED="right_panel_opened",Te.OLD_KEY_RIGHT_PANEL_WIDTH="right_panel_width",Te.OLD_KEY_APP_LEFT_PANEL_OPENED="app_left_panel_opened",Te.NAME="browser_settings",rr.MAX_SIZE=72,Ee.INCOMING_TIME=6e4,Ne.DEFAULT_PRESENCE_EXPIRATION=3e5,Ne.DEFAULT_UPDATE_LAST_USED_AT_INTERVAL=6e5,or.DEFAULT_TTL=3600,or.DEFAULT_MAX_PARTICIPANTS=8,Sr.stagedFileInfosMaxId=0,Xe.TIMESTAMP_SHIFT=22,O.MAX_READ_USER_IDS_COUNT=16,dt.QUERY_DATE_TODAY="t",dt.QUERY_DATE_YESTERDAY="-1d",dt.QUERY_DATE_THREE_DAYS_BEFORE="-3d",jr.HISTORY_TAB_NAME="stamp-history",Ft.SIXTY_MINUTES=new E(0,36e5),Ft.FIFTEEN_MINUTES=new E(0,9e5),go.PREFIX="note-",go.nextDummyId=new E(-1,-1),fn.CONTINUE_MARGIN_RATE=.1,yn.CHEKBOX_UNCHECKED="- [ ] ",yn.CHEKBOX_CHECKED="- [x] ",Nn.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",An.TU_REG=new v("ッ([BCDFGHIJKLMNOPQRSTUVWYZ])","gm"),An.XTU_REG=new v("ッ","gm"),F.EMERGENCY=0,F.ALERT=1,F.CRITICAL=2,F.ERROR=3,F.WARNING=4,F.NOTICE=5,F.INFO=6,F.DEBUG=7,F.level=6,F._d=F._nop,F._i=null!=console?console.info.bind(console):F._nop,F._w=null!=console?console.warn.bind(console):F._nop,F._e=null!=console?console.error.bind(console):F._nop,Co.HIRAGANA_SMALL_A=12353,Co.HIRAGANA_NN=12435,Co.KATAKANA_SMALL_A=12449,Oo.NAME="accessTokenResolver",i.NAME="Proxy",Fo.__meta__={fields:{settings:{inject:null},api:{inject:null}}},Uo.__meta__={fields:{api:{inject:null},dataStore:{inject:null},settings:{inject:null},keywordWatcher:{inject:null}}},Uo.NAME="broadcast",xo.__meta__={fields:{wsApi:{inject:null},apiCaller:{inject:null},apiNote:{inject:null},settings:{inject:null},dataStore:{inject:null},dataFactory:{inject:null},fileService:{inject:null},searchService:{inject:null},lastUsedAtUpdater:{inject:null}}},xo.NAME="api",xo.API_VERSION="1.128",xo.UPDATE_VERSION="1.128_0",xo.ACTIONS_COUNT_PER_API=20,Lo.__meta__={fields:{rpc:{inject:null}}},Lo.NAME="apiCaller",Lo.DELAY_FOR_DB_REPLICATION=500,Lo.DELAY_FOR_DB_REPLICATION_FOR_RETRY=1e3,Lo.API_TRY_COUNT=3,Po.__meta__={fields:{dataStore:{inject:null},settings:{inject:null},wsApi:{inject:null}}},Po.NAME="apiNote",Bo.NAME="appState",Ho.__meta__={fields:{dataStore:{inject:null}}},Ho.NAME="dataFactory",Go.NAME="dataStore",Go.STORAGE_KEY_FOR_GENERAL="dataStore",Go.STORAGE_KEY_FOR_TALKS="dataStoreTalks",Go.STORAGE_KEY_FOR_TALK_STATUSES="dataStoreTalkStatuses",Go.STORAGE_KEY_FOR_USERS="dataStoreUsers",Go.TYPE_FRIEND=0,Go.TYPE_ACQUAINSTANCE=1,Go.TYPE_NONE=2,zo.__meta__={fields:{settings:{inject:null},dataStore:{inject:null}}},zo.NAME="features",Wo.NAME="fileService",Ko.__meta__={fields:{settings:{inject:null}}},jo.__meta__={fields:{settings:{inject:null},features:{inject:null},dataStore:{inject:null}}},jo.NAME="keywordWatcher",jo.TALK_KEY_PREFIX="talk_",jo.ANNOUNCEMENT_KEY_PREFIX="announcement_",Vo.TEMP_HALF_SPACE="&SPACE",Vo.TEMP_FULL_SPACE="&FULL_PITCH_SPACE",Jo.__meta__={fields:{settings:{inject:null}}},Jo.NAME="lastUsedAtUpdater",Zo.__meta__={fields:{settings:{inject:null},dataStore:{inject:null}}},Zo.NAME="limitations",$o.__meta__={fields:{broadcast:{inject:null},lastUsedAtUpdater:{inject:null}}},$o.NAME="rpc",$o.lastMsgId=0,ea.PING_INTERVAL_ON_CONNECTED=45e3,oa.__meta__={fields:{dataStore:{inject:null},api:{inject:null}}},oa.NAME="readStatusUpdater",aa.__meta__={fields:{settings:{inject:null},dataStore:{inject:null}}},aa.NAME="routing",ua.__meta__={fields:{settings:{inject:null}}},ua.NAME="searchService",ua.LOAD_SIZE=20,ua.DUMMY_VALUE_FOR_SET=1,ca.__meta__={fields:{settings:{inject:null},dataStore:{inject:null},api:{inject:null}}},ca.NAME="session",_a.NAME="settings",_a.KEY_ACCESS_TOKEN="access_token",_a.KEY_SELECTED_DOMAIN_ID_H="selected_domain_id_h",_a.KEY_SELECTED_DOMAIN_ID_L="selected_domain_id_l",_a.KEY_SELECTED_STAMP_TAB_ID="selected_stamp_tab_id",_a.KEY_INPUT_TEXT="input_text",_a.KEY_COPY_PROFILE_TO_ALL_DOMAINS="copy_profile_to_all_domains",_a.KEY_SELECTED_DEPARTMENT_IDS="selected_department_ids",_a.KEY_SEARCH_HISTORIES="search_histories",_a.KEY_MULTI_VIEW_MODE="multi_view_mode",_a.KEY_PASSWORD_WARNING_SKIP_UNTIL="password_warning_skip_until",_a.KEY_LAST_USED_EXPIRED_AT="last_used_expired_at",_a.KEY_IDFV="idfv",ha.__meta__={fields:{dataStore:{inject:null}}},ha.NAME="talksService",da.__meta__={fields:{dataStore:{inject:null}}},da.NAME="userPresences",fa.__meta__={fields:{apiCaller:{inject:null}}},fa.NAME="wsApi",s.MAX_CONTENT_BYTES=1e5,s.NOTE_EVENT_NAMES=["created","updated","deleted"],Sa.CONTENT_TYPE_XML="xml",Sa.CONTENT_TYPE_TEXT="text",Bn.NAME="Mediator",va.__meta__={fields:{dataStore:{inject:null},api:{inject:null}}},va.NAME="commandline",va.DATA_SAVE_SPAN=5e3,wa.INVALID_PARAMETER="INVALID_PARAMETER",wa.FORBIDDEN="FORBIDDEN",wa.NOT_FOUND="NOT_FOUND",wa.LOCKED_BY_ANOTHER_USER="LOCKED_BY_ANOTHER_USER",wa.CONFLICT="CONFLICT",wa.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",wa.CLIENT_UPGRADE_REQUIRED="CLIENT_UPGRADE_REQUIRED",wa.UNKNOWN="UNKNOWN",I._mul=null!=Math.imul?Math.imul:function(e,t){return e*(65535&t)+(e*(t>>>16)<<16|0)|0},Ca.USE_CACHE=!1,Ca.USE_ENUM_INDEX=!1,Ca.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:",xa.count=0,Ga.i64tmp=new E(0,0),G.__toStr={}.toString,qn.BYTES_PER_ELEMENT=1,Ka.FLOAT_SINGLE_MIN=1401298464324817e-60,Ka.FLOAT_SINGLE_MAX=34028234663852886e22,Ka.FLOAT_DOUBLE_MIN=5e-324,Ka.FLOAT_DOUBLE_MAX=17976931348623157e292,ti.main()}("undefined"!=typeof exports?exports:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this,"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this); \ No newline at end of file From 0f02524c9de42b60fc5151062e9d04a779d2c612 Mon Sep 17 00:00:00 2001 From: "sho.kuroda" Date: Tue, 22 Oct 2024 14:56:15 +0900 Subject: [PATCH 2/2] chore: bump up version to 3.1.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a61700e..26bdbc5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "direct-js", - "version": "3.0.0", + "version": "3.1.0", "description": "Low-level javascript library for direct", "author": "L is B corp.", "license": "MIT",