configs/walls/Chat~Client~Governance~Reddit.72735f5fa6f10ef9a51d.js
2019-03-12 13:36:46 -05:00

2 lines
277 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["Chat~Client~Governance~Reddit"],{"./src/app/actions/session.ts":function(e,i,t){"use strict";var r=t("./src/app/actions/user.ts"),s=t("./src/lib/constants/index.ts"),n=t("./src/lib/makeApiRequest/index.ts");var d=t("./src/lib/makeActionCreator/index.ts"),o=t("./node_modules/lodash/find.js"),l=t.n(o),a=t("./src/app/actions/tfaActiveForm.ts");t.d(i,"b",function(){return p}),t.d(i,"a",function(){return u}),t.d(i,"c",function(){return h}),t.d(i,"g",function(){return _}),t.d(i,"e",function(){return c}),t.d(i,"h",function(){return m}),t.d(i,"d",function(){return y}),t.d(i,"f",function(){return g}),t.d(i,"i",function(){return I}),t.d(i,"l",function(){return E}),t.d(i,"j",function(){return R}),t.d(i,"k",function(){return N});const p="SESSION__SESSION_PENDING",u="SESSION__SESSION_NOT_PENDING",h="SESSION__USER_AUTHENTICATED",_="SESSION__USER_REAUTHENTICATED",c="SESSION__USER_LOG_IN_FAILURE",m="SESSION__USER_REGISTER_FAILURE",y="SESSION__USER_LOGGED_OUT",g="SESSION__USER_LOG_OUT_FAILURE",w=async(e,i,t)=>{const r=i().platform.currentPage;if(r){const s=r.routeMatch;if(s){const r=t.routes;l()(r,{path:s.route.path}).action(s.match)(e,i,t)}}},T=Object(d.a)(p),v=Object(d.a)(u),f=Object(d.a)(h),S=Object(d.a)(_),b=Object(d.a)(c),k=Object(d.a)(m),F=Object(d.a)(y),B=Object(d.a)(g),I=e=>async(i,t,d)=>{if(t().user.api.pendingSession)return;const o=t().tfaActiveForm,l=o===s.qc.BACKUP_CODE&&e.otp?"B_"+e.otp:e.otp;e.otp=l,e.tfaActiveForm=o||"none",i(T());const p=await((e,i)=>Object(n.c)(e,{endpoint:"/loginproxy",method:s.jb.POST,data:i}))(d.apiContext(),e);if("TWO_FA_REQUIRED"===p.details)return i(a.e()),void i(v());p.ok?(i(f(p.body)),i(a.d()),await i(r.g()),w(i,t,d)):i(b(p.error))},E=e=>async(i,t,d)=>{if(t().user.api.pendingSession)return;i(T());const o=await((e,i)=>Object(n.c)(e,{endpoint:"/registerproxy",method:s.jb.POST,data:i}))(d.apiContext(),e);o.ok?(i(f(o.body)),await i(r.g()),w(i,t,d)):i(k(o.error))},R=()=>async(e,i,t)=>{if(i().user.api.pendingSession)return;e(T());const r=await(e=>Object(n.c)(e,{endpoint:"/logoutproxy",method:s.jb.POST}))(t.apiContext());r.ok?(e(F()),w(e,i,t)):e(B(r.error))},N=()=>async(e,i,{apiContext:t})=>{const r=i().user.session;if(r){const i=await((e,i)=>Object(n.c)(e,{endpoint:"/refreshproxy",method:s.jb.POST,data:i}))(t(),r);if(i.ok){const t=i.body;if(t.unsafeLoggedOut)return void(r.unsafeLoggedOut||e(F()));e(S(t))}}}},"./src/app/actions/tfaActiveForm.ts":function(e,i,t){"use strict";t.d(i,"b",function(){return s}),t.d(i,"c",function(){return n}),t.d(i,"a",function(){return d}),t.d(i,"e",function(){return o}),t.d(i,"f",function(){return l}),t.d(i,"d",function(){return a});var r=t("./src/lib/makeActionCreator/index.ts");const s="OPEN_APP_CODE_FORM",n="OPEN_BACKUP_CODE_FORM",d="CLOSE_BOTH_FORMS",o=Object(r.a)(s),l=Object(r.a)(n),a=Object(r.a)(d)},"./src/app/actions/user.ts":function(e,i,t){"use strict";const r=e=>Object.keys(e).reduce((i,t)=>{const r=e[t];return"boolean"==typeof r&&(i[t]=r),"object"==typeof r&&(i[t]=s(r)),i},{}),s=e=>({experimentId:e.experiment_id,owner:e.owner,variant:e.variant});var n=t("./src/app/models/Preferences.ts"),d=t("./src/lib/constants/index.ts"),o=t("./src/lib/makeApiRequest/index.ts");const l=e=>(i,t)=>Object(o.c)(i,Object.assign({},t,{endpoint:e,method:d.jb.GET})),a=(e,i)=>Promise.resolve({error:null,ok:!1,status:-1,body:{},headers:{},details:""}),p=(e,i)=>{return(i.isLoggedOut?((e,i)=>Promise.all([`${e.apiUrl}/api/me.json`].map(l).concat([a]).map(t=>t(e,i))))(e,i):((e,i)=>Promise.all([`${e.apiUrl}/api/v1/me`,`${e.apiUrl}/api/v1/me/prefs`].map(l).map(t=>t(e,i))))(e,i)).then(([e,t])=>{if(!e.ok)return e;const s=t.ok?Object(n.a)(t.body):null,o=t.ok?t.body.lang:d.A;return Object.assign({},e,{body:{preferences:s,language:o,userAccount:i.isLoggedOut?null:u(e.body),experiments:i.isLoggedOut?r(e.body.data.features):r(e.body.features),mailbox:i.isLoggedOut?null:(e=>({hasMail:e.has_mail,hasOldModmail:e.has_mod_mail,hasModmail:!!e.new_modmail_exists,unreadMailCount:e.inbox_count}))(e.body)}})})},u=e=>({commentKarma:e.comment_karma,created:e.created,createdDate:e.created_utc,displayName:e.name,emailVerified:e.has_verified_email,goldCreddits:e.gold_creddits,goldExpiration:e.gold_expiration,hasGold:e.is_gold,hasVisitedNewProfile:!!e.has_visited_new_profile,id:e.id,inBeta:e.in_beta,isEmployee:e.is_employee,isMod:e.is_mod,isSuspended:e.is_suspended,postKarma:e.link_karma,suspensionExpirationDate:e.suspension_expiration_utc});var h=t("./src/lib/makeActionCreator/index.ts");t.d(i,"d",function(){return _}),t.d(i,"c",function(){return c}),t.d(i,"a",function(){return m}),t.d(i,"b",function(){return y}),t.d(i,"f",function(){return g}),t.d(i,"e",function(){return w}),t.d(i,"h",function(){return T}),t.d(i,"g",function(){return b}),t.d(i,"j",function(){return k}),t.d(i,"i",function(){return F});const _="USER__LOID_RECEIVED",c="USER__ACCOUNT_FETCH_PENDING",m="USER__ACCOUNT_FETCH_COMPLETED",y="USER__ACCOUNT_FETCH_FAILED",g="USER__SESSION_TRACKER_RECEIVED",w="USER__REDDAID_RECEIVED",T=Object(h.a)(_),v=Object(h.a)(c),f=Object(h.a)(m),S=Object(h.a)(y),b=()=>async(e,i,t)=>{const r=i();if(r.user.api.pendingAccount)return;if(r.user.account)return;if(r.user.isLoggedOut&&r.user.loid.loid)return;e(v());const s=await p(t.apiContext(),{isLoggedOut:r.user.isLoggedOut});s.ok?e(f(s.body)):e(S(s.error))},k=Object(h.a)(g),F=Object(h.a)(w)},"./src/app/models/Preferences.ts":function(e,i,t){"use strict";t.d(i,"c",function(){return n}),t.d(i,"b",function(){return d}),t.d(i,"a",function(){return o});var r=t("./src/lib/constants/index.ts"),s=t("./src/lib/makeApiRequest/index.ts");const n=(e,i)=>Object(s.c)(e,{method:r.jb.PATCH,endpoint:`${e.apiUrl}/api/v1/me/prefs`,data:{json:JSON.stringify({top_karma_subreddits:i})}}),d=(e,i)=>Object(s.c)(e,{method:r.jb.PATCH,endpoint:`${e.apiUrl}/api/v1/me/prefs`,data:{json:JSON.stringify({over_18:i})}}),o=e=>({acceptPms:e.accept_pms,allowClicktracking:e.allow_clicktracking,beta:e.beta,clickgadget:e.clickgadget,collapseLeftBar:e.collapse_left_bar,collapseReadMessages:e.collapse_read_message,compress:e.compress,contentLangs:e.content_langs,defaultCommentSort:e.default_comment_sort,forceHttps:e.force_https,hideAds:e.hide_ads,hideDowns:e.hide_downs,hideLocationBar:e.hide_location_bar,hideUps:e.hide_ups,highlightControversial:e.highlight_controversial,highlightNewComments:e.hightlight_new_comments,ignoreSuggestedSort:e.ignore_suggested_sort,labelNSFW:e.label_nsfw,markMessagesRead:e.mark_messages_read,minCommentScore:e.min_comment_score,minLinkScore:e.min_link_score,noProfanity:e.no_profanity,numComments:e.number,openLinkInNewTab:e.newwindow,over18:e.over_18,showDomainDetails:e.domain_details,showFlair:e.show_flair,showGoldExpiration:e.show_gold_expiration,showLinkFlair:e.show_link_flair,showLiveOrangereds:e.live_orangereds,showNSFW:!e.no_profanity,showSnoovatar:e.show_snoovatar,showTrending:e.show_trending,showThumbnails:r.nc[e.media],topKarmaSubreddits:e.top_karma_subreddits,expandSinglePosts:r.nc[e.media_preview]})},"./src/lib/omitHeaders/index.ts":function(e,i,t){"use strict";var r=t("./node_modules/lodash/omit.js"),s=t.n(r);i.a=((e,i)=>Object.assign({},e,{headers:s()(e.headers,i)}))},"./src/lib/redditId/index.ts":function(e,i,t){"use strict";t.d(i,"a",function(){return s}),t.d(i,"c",function(){return n}),t.d(i,"b",function(){return d});const r=/(?:t(\d+)_)?([a-z0-9]+)/;function s(e){return parseInt(n(e),36)}function n(e){const i=r.exec(e);return i?i[2]:""}function d(e,i){return"number"==typeof e?`${i}_${e.toString(36)}`:`${i}_${n(e)}`}},"./src/lib/reducers/addAuthentication/index.ts":function(e,i,t){"use strict";var r=t("./src/app/actions/session.ts");i.a=((e,i)=>(t=i,s)=>{switch(s.type){case r.c:case r.d:return i;default:return e(t,s)}})},"./src/lib/scheduler/index.ts":function(e,i,t){"use strict";t.d(i,"a",function(){return s}),t.d(i,"b",function(){return n});var r=t("./node_modules/request-idle-callback/index.js");class s{constructor({cb:e,args:i}){this.cb=e,this.args=i,this.next=null}execute(){this.cb.apply(null,this.args)}}function n(){let e=null,i=null,t=null;const s=()=>{null===t&&(t=Object(r.requestIdleCallback)(n))},n=i=>{let r=0;for(;(i.timeRemaining()>r||i.didTimeout)&&null!==e;){const t=i.timeRemaining();e.execute(),e=e.next,r=t-i.timeRemaining()}t=null,null!==e&&s()};return{enqueue(t){null===e?(e=t,i=t):(null!==i&&(i.next=t),i=t),s()},clear(){Object(r.cancelIdleCallback)(t),t=null,e=null},flush(){for(null!==t&&(Object(r.cancelIdleCallback)(t),t=null);null!==e;)e.execute(),e=e.next}}}},"./src/reddit/constants/colors.ts":function(e,i,t){"use strict";t.d(i,"a",function(){return s});var r=t("./node_modules/polished/dist/polished.es.js");const s={admin:"#EA0027",adminEmeritus:"#BE1337",alienblue:"#0079D3",approved:"#46D160",black:"#000000",defaultFlair:"#DADADA",gold:"#DDBD37",info:"#FFF7E6",locked:"#FFD635",lightboxHeaderBg:"#030303",lightboxHeaderText:"#D7DADC",moderator:"#75D377",notice:"#FF8617",nsfw:"#FF585B",op:"#24A0ED",orangered:"#FF4500",overlayBackground:Object(r.e)("#1c1c1c",.9),overlayReportFlow:Object(r.e)("#1a1a1b",.6),quarantine:"#FFB000",removed:"#FF585B",reported:"#FFB000",restricted:"#0DD3BB",snoo:"#FF4500",spoiler:"#000000",tooltip:"#373C3F",twitter:"#1DA1F2",warning:"#EA0027",white:"#FFFFFF"}},"./src/reddit/constants/postLayout.ts":function(e,i,t){"use strict";var r,s;t.d(i,"f",function(){return r}),t.d(i,"c",function(){return s}),t.d(i,"d",function(){return n}),t.d(i,"a",function(){return d}),t.d(i,"e",function(){return o}),t.d(i,"b",function(){return l}),function(e){e.Large="LARGE",e.Medium="MEDIUM",e.Classic="CLASSIC",e.Compact="COMPACT"}(r||(r={})),function(e){e.Card="card",e.Classic="classic",e.Compact="compact"}(s||(s={}));const n={[r.Large]:s.Card,[r.Medium]:s.Card,[r.Classic]:s.Classic,[r.Compact]:s.Compact},d={[s.Card]:r.Large,[s.Classic]:r.Classic,[s.Compact]:r.Compact},o=8,l={[s.Card]:o,[s.Classic]:16,[s.Compact]:25}},"./src/reddit/constants/posts.ts":function(e,i,t){"use strict";t.d(i,"a",function(){return r}),t.d(i,"b",function(){return s}),t.d(i,"c",function(){return n}),t.d(i,"d",function(){return d}),t.d(i,"e",function(){return o}),t.d(i,"f",function(){return l});const r={SUBREDDIT:"subreddit",PROFILE:"profile"},s={r:r.SUBREDDIT,user:r.PROFILE},n=60,d=80,o=5,l=60},"./src/reddit/helpers/imagePreview/index.ts":function(e,i,t){"use strict";function r(e){if("string"==typeof e)return e;if(e&&window.URL&&window.URL.createObjectURL)try{return window.URL.createObjectURL(e)}catch(i){}return""}function s(e){e&&window.URL&&window.URL.revokeObjectURL&&window.URL.revokeObjectURL(e)}async function n(e){return new Promise((i,t)=>{const r=new Image;r.onload=(()=>{i({width:r.width,height:r.height})}),r.onerror=(e=>t(e)),r.src=e})}t.d(i,"b",function(){return r}),t.d(i,"c",function(){return s}),t.d(i,"a",function(){return n})},"./src/reddit/models/Image/index.tsx":function(e,i,t){"use strict";t.d(i,"b",function(){return r}),t.d(i,"c",function(){return l}),t.d(i,"a",function(){return a}),t.d(i,"i",function(){return p}),t.d(i,"h",function(){return u}),t.d(i,"f",function(){return _}),t.d(i,"e",function(){return c}),t.d(i,"g",function(){return m}),t.d(i,"k",function(){return y}),t.d(i,"l",function(){return g}),t.d(i,"m",function(){return w}),t.d(i,"n",function(){return T}),t.d(i,"j",function(){return v}),t.d(i,"d",function(){return f});var r,s=t("./node_modules/uuid/v4.js"),n=t.n(s),d=t("./src/config.ts"),o=t("./src/reddit/helpers/imagePreview/index.ts");!function(e){e.Pending="pending",e.NotUploaded="not-uploaded",e.TempUploaded="temp-uploaded",e.Uploaded="uploaded",e.FailedToUpload="failed-to-upload",e.Saved="saved",e.Invalid="invalid"}(r||(r={}));const l=d.a.processingImageUrl;var a;function p(e){switch(e.kind){case r.Pending:case r.Saved:case r.Invalid:return!1;default:return!0}}function u(e){switch(e.kind){case r.TempUploaded:case r.Uploaded:case r.Saved:return!0;default:return!1}}async function h(e){const i=Object(o.b)(e),t=n()();let r=0,s=0;if(i){const e=await Object(o.a)(i);r=e.width,s=e.height}return{file:e,height:s,id:t,url:i,width:r}}async function _(e){const i=await h(e);return Object.assign({},i,{kind:r.Pending})}async function c(e){const i=await h(e);return Object.assign({},i,{kind:r.NotUploaded})}function m(e){return Object.assign({},e,{kind:r.Saved,id:n()()})}function y(e,i){return{kind:r.Invalid,file:e.file,height:e.height,id:e.id,url:e.url,width:e.width,errorString:i}}function g(e){return Object.assign({},e,{kind:r.NotUploaded})}function w(e,i,t,s){return{kind:r.TempUploaded,file:e.file,width:e.width,height:e.height,id:e.id,url:i,websocketUrl:t,context:s}}function T(e,i){return Object(o.c)(e.url),{kind:r.Uploaded,width:e.width,height:e.height,id:e.id,url:i}}function v(e,i){return{error:i,file:e.file,height:e.height,id:e.id,kind:r.FailedToUpload,url:e.url,width:e.width}}function f(e){Object(o.c)(e.url)}!function(e){e[e.StructuredStyles=0]="StructuredStyles",e[e.Widgets=1]="Widgets",e[e.FlairTemplates=2]="FlairTemplates"}(a||(a={}))},"./src/reddit/models/StructuredStyles/index.ts":function(e,i,t){"use strict";t.d(i,"a",function(){return o}),t.d(i,"h",function(){return a}),t.d(i,"f",function(){return g}),t.d(i,"e",function(){return w}),t.d(i,"d",function(){return v}),t.d(i,"c",function(){return f}),t.d(i,"g",function(){return S}),t.d(i,"b",function(){return b});var r=t("./node_modules/polished/dist/polished.es.js"),s=t("./src/reddit/models/Image/index.tsx");const n={primaryColor:"#0079D3",highlightColor:"#0079D3",postTitleColor:"#222222",backgroundColor:"#DAE0E6",postBackgroundColor:"#FFFFFF",postDownvoteCountColor:"#7193FF",postUpvoteCountColor:"#FF4500"},d={bannerBackgroundColor:void 0,bannerOverlayColor:void 0,menuBackgroundColor:void 0,menuLinkColorActive:void 0,menuLinkColorInactive:void 0,menuLinkColorHover:void 0,mobileKeyColor:void 0,sidebarWidgetBackgroundColor:void 0,sidebarWidgetHeaderColor:void 0,submenuBackgroundColor:void 0};var o;!function(e){e.ButtonWidgetButtonColor="buttonWidgetButtonColor",e.ButtonWidgetTextColor="buttonWidgetTextColor",e.ButtonWidgetFillColor="buttonWidgetFillColor",e.ButtonWidgetHoverColor="buttonWidgetHoverButtonColor",e.ButtonWidgetHoverTextColor="buttonWidgetHoverTextColor",e.ButtonWidgetHoverFillColor="buttonWidgetHoverFillColor",e.UserFlairBackgroundColor="userFlairBackgroundColor",e.PostFlairBackgroundColor="postFlairBackgroundColor"}(o||(o={}));const l={backgroundImage:void 0,bannerBackgroundImage:void 0,bannerPositionedImage:void 0,communityIcon:void 0,menuBackgroundImage:void 0,mobileBannerImage:void 0,postBackgroundImage:void 0,postDownvoteIconActive:void 0,postDownvoteIconInactive:void 0,postPlaceholderImage:void 0,postUpvoteIconActive:void 0,postUpvoteIconInactive:void 0,secondaryBannerPositionedImage:void 0};function a(e){return e in l}const p={menuBackgroundOpacity:70};const u={backgroundImagePosition:"cover",bannerBackgroundImagePosition:"cover",bannerPositionedImagePosition:"left",postBackgroundImagePosition:"cover",postPlaceholderImagePosition:"cover"};const h={postVoteIcons:"default",submenuBackgroundStyle:"default"};const _={bannerHeight:"small"};const c={bannerShowCommunityIcon:"show"};const m={bannerCommunityNameFormat:"slashtag"};const y={menuPosition:"default"};const g=e=>{const i=Object.assign({},f);for(const t in i)i[t]=t in e?e[t]:null;return i},w=e=>e.primaryColor||e.mobileKeyColor||n.primaryColor,T={highlightColor:e=>e.highlightColor?e.highlightColor:e.mobileKeyColor?Object(r.a)(.2,e.mobileKeyColor):n.highlightColor,primaryColor:w,sidebarWidgetHeaderColor:e=>e.sidebarWidgetHeaderColor||e.primaryColor||e.mobileKeyColor||n.primaryColor,sidebarWidgetBackgroundColor:e=>e.sidebarWidgetBackgroundColor||n.postBackgroundColor},v=(e,i)=>{const t={};for(const r in f){if(i&&r in i){if(null!=i[r]){t[r]=i[r];continue}}else if(r in T){const i=T[r](e);if(null!=i){t[r]=i;continue}}r in e&&null!=e[r]&&e[r]!==s.c?t[r]=e[r]:t[r]=f[r]}return t},f=Object.assign({},d,n,l,p,u,h,_,c,m,y),S=e=>Object.assign({},e,{bannerBackgroundColor:e.bannerBackgroundColor||Object(r.f)(.6,e.primaryColor),menuLinkColorActive:e.menuLinkColorActive||e.highlightColor,menuLinkColorInactive:e.menuLinkColorInactive||e.primaryColor,menuLinkColorHover:e.menuLinkColorHover||e.highlightColor,menuBackgroundColor:e.menuBackgroundColor||Object(r.f)(.93,e.primaryColor),submenuBackgroundColor:e.submenuBackgroundColor||Object(r.f)(.93,e.primaryColor),bannerOverlayColor:e.bannerOverlayColor||e.primaryColor}),b=["#EA0027","#FF4500","#FFB000","#FFD635","#94E044","#46D160","#0DD3BB","#00A6A5","#B8001F","#CC3600","#CC8B00","#CCAC2B","#73AD34","#349E48","#0AA18F","#007373","#0079D3","#014980","#7193FF","#FF66AC","#9E8D49","#DDBD37","#EDEFF1","#373C3F","#005BA1","#0266B3","#5A74CC","#CC5289","#6B6031","#AB912B","#BBBDBF","#646D73"]},"./src/telemetry/eventSchemas/action_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.ActionInfo=function(e){this.page_type=null,this.pane_name=null,this.position=null,this.success=null,this.count=null,this.retried=null,this.reason=null,this.setting_value=null,this.type=null,this.relative_position=null,e&&(void 0!==e.page_type&&null!==e.page_type&&(this.page_type=e.page_type),void 0!==e.pane_name&&null!==e.pane_name&&(this.pane_name=e.pane_name),void 0!==e.position&&null!==e.position&&(this.position=e.position),void 0!==e.success&&null!==e.success&&(this.success=e.success),void 0!==e.count&&null!==e.count&&(this.count=e.count),void 0!==e.retried&&null!==e.retried&&(this.retried=e.retried),void 0!==e.reason&&null!==e.reason&&(this.reason=e.reason),void 0!==e.setting_value&&null!==e.setting_value&&(this.setting_value=e.setting_value),void 0!==e.type&&null!==e.type&&(this.type=e.type),void 0!==e.relative_position&&null!==e.relative_position&&(this.relative_position=e.relative_position))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.page_type=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.pane_name=e.readString():e.skip(t);break;case 3:t==s.Type.I64?this.position=e.readI64():e.skip(t);break;case 4:t==s.Type.BOOL?this.success=e.readBool():e.skip(t);break;case 5:t==s.Type.I64?this.count=e.readI64():e.skip(t);break;case 6:t==s.Type.BOOL?this.retried=e.readBool():e.skip(t);break;case 7:t==s.Type.STRING?this.reason=e.readString():e.skip(t);break;case 8:t==s.Type.STRING?this.setting_value=e.readString():e.skip(t);break;case 9:t==s.Type.STRING?this.type=e.readString():e.skip(t);break;case 10:t==s.Type.I64?this.relative_position=e.readI64():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("ActionInfo"),null!==this.page_type&&void 0!==this.page_type&&(e.writeFieldBegin("page_type",s.Type.STRING,1),e.writeString(this.page_type),e.writeFieldEnd()),null!==this.pane_name&&void 0!==this.pane_name&&(e.writeFieldBegin("pane_name",s.Type.STRING,2),e.writeString(this.pane_name),e.writeFieldEnd()),null!==this.position&&void 0!==this.position&&(e.writeFieldBegin("position",s.Type.I64,3),e.writeI64(this.position),e.writeFieldEnd()),null!==this.success&&void 0!==this.success&&(e.writeFieldBegin("success",s.Type.BOOL,4),e.writeBool(this.success),e.writeFieldEnd()),null!==this.count&&void 0!==this.count&&(e.writeFieldBegin("count",s.Type.I64,5),e.writeI64(this.count),e.writeFieldEnd()),null!==this.retried&&void 0!==this.retried&&(e.writeFieldBegin("retried",s.Type.BOOL,6),e.writeBool(this.retried),e.writeFieldEnd()),null!==this.reason&&void 0!==this.reason&&(e.writeFieldBegin("reason",s.Type.STRING,7),e.writeString(this.reason),e.writeFieldEnd()),null!==this.setting_value&&void 0!==this.setting_value&&(e.writeFieldBegin("setting_value",s.Type.STRING,8),e.writeString(this.setting_value),e.writeFieldEnd()),null!==this.type&&void 0!==this.type&&(e.writeFieldBegin("type",s.Type.STRING,9),e.writeString(this.type),e.writeFieldEnd()),null!==this.relative_position&&void 0!==this.relative_position&&(e.writeFieldBegin("relative_position",s.Type.I64,10),e.writeI64(this.relative_position),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var d=e.exports.Expand=function(e){this.provider=null,e&&void 0!==e.provider&&null!==e.provider&&(this.provider=e.provider)};d.prototype={},d.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.provider=e.readString():e.skip(t);break;case 0:e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},d.prototype.write=function(e){e.writeStructBegin("Expand"),null!==this.provider&&void 0!==this.provider&&(e.writeFieldBegin("provider",s.Type.STRING,1),e.writeString(this.provider),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var o=e.exports.Widget=function(e){this.target_subreddit_name=null,this.target_subreddit_id=null,this.type=null,e&&(void 0!==e.target_subreddit_name&&null!==e.target_subreddit_name&&(this.target_subreddit_name=e.target_subreddit_name),void 0!==e.target_subreddit_id&&null!==e.target_subreddit_id&&(this.target_subreddit_id=e.target_subreddit_id),void 0!==e.type&&null!==e.type&&(this.type=e.type))};o.prototype={},o.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.target_subreddit_name=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.target_subreddit_id=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.type=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},o.prototype.write=function(e){e.writeStructBegin("Widget"),null!==this.target_subreddit_name&&void 0!==this.target_subreddit_name&&(e.writeFieldBegin("target_subreddit_name",s.Type.STRING,1),e.writeString(this.target_subreddit_name),e.writeFieldEnd()),null!==this.target_subreddit_id&&void 0!==this.target_subreddit_id&&(e.writeFieldBegin("target_subreddit_id",s.Type.STRING,2),e.writeString(this.target_subreddit_id),e.writeFieldEnd()),null!==this.type&&void 0!==this.type&&(e.writeFieldBegin("type",s.Type.STRING,3),e.writeString(this.type),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var l=e.exports.Share=function(e){this.target=null,this.id=null,e&&(void 0!==e.target&&null!==e.target&&(this.target=e.target),void 0!==e.id&&null!==e.id&&(this.id=e.id))};l.prototype={},l.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.target=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},l.prototype.write=function(e){e.writeStructBegin("Share"),null!==this.target&&void 0!==this.target&&(e.writeFieldBegin("target",s.Type.STRING,1),e.writeString(this.target),e.writeFieldEnd()),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,2),e.writeString(this.id),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/adblock_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.Adblock=function(e){this.enabled=null,this.acceptable_ads=null,e&&(void 0!==e.enabled&&null!==e.enabled&&(this.enabled=e.enabled),void 0!==e.acceptable_ads&&null!==e.acceptable_ads&&(this.acceptable_ads=e.acceptable_ads))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.BOOL?this.enabled=e.readBool():e.skip(t);break;case 2:t==s.Type.BOOL?this.acceptable_ads=e.readBool():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("Adblock"),null!==this.enabled&&void 0!==this.enabled&&(e.writeFieldBegin("enabled",s.Type.BOOL,1),e.writeBool(this.enabled),e.writeFieldEnd()),null!==this.acceptable_ads&&void 0!==this.acceptable_ads&&(e.writeFieldBegin("acceptable_ads",s.Type.BOOL,2),e.writeBool(this.acceptable_ads),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/adevent_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.AdRequest=function(e){this.number_min_distance=null,this.first_chunk=null,this.post_links=null,this.placement=null,this.platform=null,this.slots=null,e&&(void 0!==e.number_min_distance&&null!==e.number_min_distance&&(this.number_min_distance=e.number_min_distance),void 0!==e.first_chunk&&null!==e.first_chunk&&(this.first_chunk=e.first_chunk),void 0!==e.post_links&&null!==e.post_links&&(this.post_links=s.copyList(e.post_links,[null])),void 0!==e.placement&&null!==e.placement&&(this.placement=e.placement),void 0!==e.platform&&null!==e.platform&&(this.platform=e.platform),void 0!==e.slots&&null!==e.slots&&(this.slots=s.copyList(e.slots,[null])))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.I64?this.number_min_distance=e.readI64():e.skip(t);break;case 2:t==s.Type.BOOL?this.first_chunk=e.readBool():e.skip(t);break;case 3:if(t==s.Type.LIST){var n,d;this.post_links=[];(d=e.readListBegin()).etype,n=d.size;for(var o=0;o<n;++o){var l;l=e.readString(),this.post_links.push(l)}e.readListEnd()}else e.skip(t);break;case 4:t==s.Type.STRING?this.placement=e.readString():e.skip(t);break;case 5:t==s.Type.STRING?this.platform=e.readString():e.skip(t);break;case 6:if(t==s.Type.LIST){var a,p;this.slots=[];(p=e.readListBegin()).etype,a=p.size;for(var u=0;u<a;++u){var h;h=e.readString(),this.slots.push(h)}e.readListEnd()}else e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){if(e.writeStructBegin("AdRequest"),null!==this.number_min_distance&&void 0!==this.number_min_distance&&(e.writeFieldBegin("number_min_distance",s.Type.I64,1),e.writeI64(this.number_min_distance),e.writeFieldEnd()),null!==this.first_chunk&&void 0!==this.first_chunk&&(e.writeFieldBegin("first_chunk",s.Type.BOOL,2),e.writeBool(this.first_chunk),e.writeFieldEnd()),null!==this.post_links&&void 0!==this.post_links){for(var i in e.writeFieldBegin("post_links",s.Type.LIST,3),e.writeListBegin(s.Type.STRING,this.post_links.length),this.post_links)this.post_links.hasOwnProperty(i)&&(i=this.post_links[i],e.writeString(i));e.writeListEnd(),e.writeFieldEnd()}if(null!==this.placement&&void 0!==this.placement&&(e.writeFieldBegin("placement",s.Type.STRING,4),e.writeString(this.placement),e.writeFieldEnd()),null!==this.platform&&void 0!==this.platform&&(e.writeFieldBegin("platform",s.Type.STRING,5),e.writeString(this.platform),e.writeFieldEnd()),null!==this.slots&&void 0!==this.slots){for(var t in e.writeFieldBegin("slots",s.Type.LIST,6),e.writeListBegin(s.Type.STRING,this.slots.length),this.slots)this.slots.hasOwnProperty(t)&&(t=this.slots[t],e.writeString(t));e.writeListEnd(),e.writeFieldEnd()}e.writeFieldStop(),e.writeStructEnd()};var d=e.exports.AdDecision=function(e){this.hide_gold=null,this.hide_mod=null,this.hide_news=null,this.hide_whitelist=null,this.hide_sort=null,this.hide_experiment=null,this.hide_other=null,e&&(void 0!==e.hide_gold&&null!==e.hide_gold&&(this.hide_gold=e.hide_gold),void 0!==e.hide_mod&&null!==e.hide_mod&&(this.hide_mod=e.hide_mod),void 0!==e.hide_news&&null!==e.hide_news&&(this.hide_news=e.hide_news),void 0!==e.hide_whitelist&&null!==e.hide_whitelist&&(this.hide_whitelist=e.hide_whitelist),void 0!==e.hide_sort&&null!==e.hide_sort&&(this.hide_sort=e.hide_sort),void 0!==e.hide_experiment&&null!==e.hide_experiment&&(this.hide_experiment=e.hide_experiment),void 0!==e.hide_other&&null!==e.hide_other&&(this.hide_other=e.hide_other))};d.prototype={},d.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.BOOL?this.hide_gold=e.readBool():e.skip(t);break;case 2:t==s.Type.BOOL?this.hide_mod=e.readBool():e.skip(t);break;case 3:t==s.Type.BOOL?this.hide_news=e.readBool():e.skip(t);break;case 4:t==s.Type.BOOL?this.hide_whitelist=e.readBool():e.skip(t);break;case 5:t==s.Type.BOOL?this.hide_sort=e.readBool():e.skip(t);break;case 6:t==s.Type.BOOL?this.hide_experiment=e.readBool():e.skip(t);break;case 7:t==s.Type.BOOL?this.hide_other=e.readBool():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},d.prototype.write=function(e){e.writeStructBegin("AdDecision"),null!==this.hide_gold&&void 0!==this.hide_gold&&(e.writeFieldBegin("hide_gold",s.Type.BOOL,1),e.writeBool(this.hide_gold),e.writeFieldEnd()),null!==this.hide_mod&&void 0!==this.hide_mod&&(e.writeFieldBegin("hide_mod",s.Type.BOOL,2),e.writeBool(this.hide_mod),e.writeFieldEnd()),null!==this.hide_news&&void 0!==this.hide_news&&(e.writeFieldBegin("hide_news",s.Type.BOOL,3),e.writeBool(this.hide_news),e.writeFieldEnd()),null!==this.hide_whitelist&&void 0!==this.hide_whitelist&&(e.writeFieldBegin("hide_whitelist",s.Type.BOOL,4),e.writeBool(this.hide_whitelist),e.writeFieldEnd()),null!==this.hide_sort&&void 0!==this.hide_sort&&(e.writeFieldBegin("hide_sort",s.Type.BOOL,5),e.writeBool(this.hide_sort),e.writeFieldEnd()),null!==this.hide_experiment&&void 0!==this.hide_experiment&&(e.writeFieldBegin("hide_experiment",s.Type.BOOL,6),e.writeBool(this.hide_experiment),e.writeFieldEnd()),null!==this.hide_other&&void 0!==this.hide_other&&(e.writeFieldBegin("hide_other",s.Type.BOOL,7),e.writeBool(this.hide_other),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var o=e.exports.AdPush=function(e){this.push_whitelist=null,this.push_nsfw=null,this.push_keyword=null,this.push_other=null,this.direction=null,e&&(void 0!==e.push_whitelist&&null!==e.push_whitelist&&(this.push_whitelist=e.push_whitelist),void 0!==e.push_nsfw&&null!==e.push_nsfw&&(this.push_nsfw=e.push_nsfw),void 0!==e.push_keyword&&null!==e.push_keyword&&(this.push_keyword=e.push_keyword),void 0!==e.push_other&&null!==e.push_other&&(this.push_other=e.push_other),void 0!==e.direction&&null!==e.direction&&(this.direction=e.direction))};o.prototype={},o.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.BOOL?this.push_whitelist=e.readBool():e.skip(t);break;case 2:t==s.Type.BOOL?this.push_nsfw=e.readBool():e.skip(t);break;case 3:t==s.Type.STRING?this.push_keyword=e.readString():e.skip(t);break;case 4:t==s.Type.BOOL?this.push_other=e.readBool():e.skip(t);break;case 5:t==s.Type.STRING?this.direction=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},o.prototype.write=function(e){e.writeStructBegin("AdPush"),null!==this.push_whitelist&&void 0!==this.push_whitelist&&(e.writeFieldBegin("push_whitelist",s.Type.BOOL,1),e.writeBool(this.push_whitelist),e.writeFieldEnd()),null!==this.push_nsfw&&void 0!==this.push_nsfw&&(e.writeFieldBegin("push_nsfw",s.Type.BOOL,2),e.writeBool(this.push_nsfw),e.writeFieldEnd()),null!==this.push_keyword&&void 0!==this.push_keyword&&(e.writeFieldBegin("push_keyword",s.Type.STRING,3),e.writeString(this.push_keyword),e.writeFieldEnd()),null!==this.push_other&&void 0!==this.push_other&&(e.writeFieldBegin("push_other",s.Type.BOOL,4),e.writeBool(this.push_other),e.writeFieldEnd()),null!==this.direction&&void 0!==this.direction&&(e.writeFieldBegin("direction",s.Type.STRING,5),e.writeString(this.direction),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/admin_action_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.AdminAction=function(e){this.password_dump_id=null,this.number_password_dump_credentials=null,e&&(void 0!==e.password_dump_id&&null!==e.password_dump_id&&(this.password_dump_id=e.password_dump_id),void 0!==e.number_password_dump_credentials&&null!==e.number_password_dump_credentials&&(this.number_password_dump_credentials=e.number_password_dump_credentials))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.password_dump_id=e.readString():e.skip(t);break;case 2:t==s.Type.I32?this.number_password_dump_credentials=e.readI32():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("AdminAction"),null!==this.password_dump_id&&void 0!==this.password_dump_id&&(e.writeFieldBegin("password_dump_id",s.Type.STRING,1),e.writeString(this.password_dump_id),e.writeFieldEnd()),null!==this.number_password_dump_credentials&&void 0!==this.number_password_dump_credentials&&(e.writeFieldBegin("number_password_dump_credentials",s.Type.I32,2),e.writeI32(this.number_password_dump_credentials),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var d=e.exports.CSAIMedia=function(e){this.tracking_id=null,this.match=null,this.violation_types=null,this.violation_source=null,this.error_message=null,this.error_code=null,this.destination_queue_name=null,this.origin_queue_name=null,this.media_url=null,this.retry_media_url=null,e&&(void 0!==e.tracking_id&&null!==e.tracking_id&&(this.tracking_id=e.tracking_id),void 0!==e.match&&null!==e.match&&(this.match=e.match),void 0!==e.violation_types&&null!==e.violation_types&&(this.violation_types=s.copyList(e.violation_types,[null])),void 0!==e.violation_source&&null!==e.violation_source&&(this.violation_source=e.violation_source),void 0!==e.error_message&&null!==e.error_message&&(this.error_message=e.error_message),void 0!==e.error_code&&null!==e.error_code&&(this.error_code=e.error_code),void 0!==e.destination_queue_name&&null!==e.destination_queue_name&&(this.destination_queue_name=e.destination_queue_name),void 0!==e.origin_queue_name&&null!==e.origin_queue_name&&(this.origin_queue_name=e.origin_queue_name),void 0!==e.media_url&&null!==e.media_url&&(this.media_url=e.media_url),void 0!==e.retry_media_url&&null!==e.retry_media_url&&(this.retry_media_url=e.retry_media_url))};d.prototype={},d.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.tracking_id=e.readString():e.skip(t);break;case 2:t==s.Type.BOOL?this.match=e.readBool():e.skip(t);break;case 3:if(t==s.Type.LIST){var n,d;this.violation_types=[];(d=e.readListBegin()).etype,n=d.size;for(var o=0;o<n;++o){var l;l=e.readString(),this.violation_types.push(l)}e.readListEnd()}else e.skip(t);break;case 4:t==s.Type.STRING?this.violation_source=e.readString():e.skip(t);break;case 5:t==s.Type.STRING?this.error_message=e.readString():e.skip(t);break;case 6:t==s.Type.I32?this.error_code=e.readI32():e.skip(t);break;case 7:t==s.Type.STRING?this.destination_queue_name=e.readString():e.skip(t);break;case 8:t==s.Type.STRING?this.origin_queue_name=e.readString():e.skip(t);break;case 9:t==s.Type.STRING?this.media_url=e.readString():e.skip(t);break;case 10:t==s.Type.STRING?this.retry_media_url=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},d.prototype.write=function(e){if(e.writeStructBegin("CSAIMedia"),null!==this.tracking_id&&void 0!==this.tracking_id&&(e.writeFieldBegin("tracking_id",s.Type.STRING,1),e.writeString(this.tracking_id),e.writeFieldEnd()),null!==this.match&&void 0!==this.match&&(e.writeFieldBegin("match",s.Type.BOOL,2),e.writeBool(this.match),e.writeFieldEnd()),null!==this.violation_types&&void 0!==this.violation_types){for(var i in e.writeFieldBegin("violation_types",s.Type.LIST,3),e.writeListBegin(s.Type.STRING,this.violation_types.length),this.violation_types)this.violation_types.hasOwnProperty(i)&&(i=this.violation_types[i],e.writeString(i));e.writeListEnd(),e.writeFieldEnd()}null!==this.violation_source&&void 0!==this.violation_source&&(e.writeFieldBegin("violation_source",s.Type.STRING,4),e.writeString(this.violation_source),e.writeFieldEnd()),null!==this.error_message&&void 0!==this.error_message&&(e.writeFieldBegin("error_message",s.Type.STRING,5),e.writeString(this.error_message),e.writeFieldEnd()),null!==this.error_code&&void 0!==this.error_code&&(e.writeFieldBegin("error_code",s.Type.I32,6),e.writeI32(this.error_code),e.writeFieldEnd()),null!==this.destination_queue_name&&void 0!==this.destination_queue_name&&(e.writeFieldBegin("destination_queue_name",s.Type.STRING,7),e.writeString(this.destination_queue_name),e.writeFieldEnd()),null!==this.origin_queue_name&&void 0!==this.origin_queue_name&&(e.writeFieldBegin("origin_queue_name",s.Type.STRING,8),e.writeString(this.origin_queue_name),e.writeFieldEnd()),null!==this.media_url&&void 0!==this.media_url&&(e.writeFieldBegin("media_url",s.Type.STRING,9),e.writeString(this.media_url),e.writeFieldEnd()),null!==this.retry_media_url&&void 0!==this.retry_media_url&&(e.writeFieldBegin("retry_media_url",s.Type.STRING,10),e.writeString(this.retry_media_url),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/admin_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.Admin=function(e){if(this.id=null,e){if(void 0===e.id||null===e.id)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field id is unset!");this.id=e.id}});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 0:e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("Admin"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/banner_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.Banner=function(e){if(this.id=null,this.button_text=null,e){if(void 0===e.id||null===e.id)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field id is unset!");this.id=e.id,void 0!==e.button_text&&null!==e.button_text&&(this.button_text=e.button_text)}});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.button_text=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("Banner"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.button_text&&void 0!==this.button_text&&(e.writeFieldBegin("button_text",s.Type.STRING,2),e.writeString(this.button_text),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/brand_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.Brand=function(e){if(this.id=null,e){if(void 0===e.id||null===e.id)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field id is unset!");this.id=e.id}});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 0:e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("Brand"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/carousel_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.Carousel=function(e){if(this.id=null,this.type=null,e){if(void 0===e.id||null===e.id)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field id is unset!");if(this.id=e.id,void 0===e.type||null===e.type)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field type is unset!");this.type=e.type}});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.type=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("Carousel"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.type&&void 0!==this.type&&(e.writeFieldBegin("type",s.Type.STRING,2),e.writeString(this.type),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/category_header_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.CategoryHeader=function(e){if(this.id=null,this.name=null,this.subreddit_ids=null,this.subreddit_names=null,e){if(void 0===e.id||null===e.id)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field id is unset!");if(this.id=e.id,void 0===e.name||null===e.name)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field name is unset!");this.name=e.name,void 0!==e.subreddit_ids&&null!==e.subreddit_ids&&(this.subreddit_ids=s.copyList(e.subreddit_ids,[null])),void 0!==e.subreddit_names&&null!==e.subreddit_names&&(this.subreddit_names=s.copyList(e.subreddit_names,[null]))}});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.name=e.readString():e.skip(t);break;case 3:if(t==s.Type.LIST){var n,d;this.subreddit_ids=[];(d=e.readListBegin()).etype,n=d.size;for(var o=0;o<n;++o){var l;l=e.readString(),this.subreddit_ids.push(l)}e.readListEnd()}else e.skip(t);break;case 4:if(t==s.Type.LIST){var a,p;this.subreddit_names=[];(p=e.readListBegin()).etype,a=p.size;for(var u=0;u<a;++u){var h;h=e.readString(),this.subreddit_names.push(h)}e.readListEnd()}else e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){if(e.writeStructBegin("CategoryHeader"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.name&&void 0!==this.name&&(e.writeFieldBegin("name",s.Type.STRING,2),e.writeString(this.name),e.writeFieldEnd()),null!==this.subreddit_ids&&void 0!==this.subreddit_ids){for(var i in e.writeFieldBegin("subreddit_ids",s.Type.LIST,3),e.writeListBegin(s.Type.STRING,this.subreddit_ids.length),this.subreddit_ids)this.subreddit_ids.hasOwnProperty(i)&&(i=this.subreddit_ids[i],e.writeString(i));e.writeListEnd(),e.writeFieldEnd()}if(null!==this.subreddit_names&&void 0!==this.subreddit_names){for(var t in e.writeFieldBegin("subreddit_names",s.Type.LIST,4),e.writeListBegin(s.Type.STRING,this.subreddit_names.length),this.subreddit_names)this.subreddit_names.hasOwnProperty(t)&&(t=this.subreddit_names[t],e.writeString(t));e.writeListEnd(),e.writeFieldEnd()}e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/chat_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.Chat=function(e){this.blocked_user_id=null,this.id=null,this.type=null,this.existing_channel=null,this.image_upload_method=null,this.user_added_method=null,this.invitation_id=null,this.invitation_type=null,this.members=null,this.invitation_preview_type=null,this.message_type=null,this.number_channels=null,this.number_pending_invites=null,this.number_members=null,this.number_unreads=null,this.reported_user_id=null,this.sender_user_id=null,this.invitation_timestamp=null,this.message_length=null,this.recipient_user_id=null,this.number_blocked_users=null,this.request_name=null,this.is_member=null,this.shown_history=null,this.message_id=null,this.report_reason=null,e&&(void 0!==e.blocked_user_id&&null!==e.blocked_user_id&&(this.blocked_user_id=e.blocked_user_id),void 0!==e.id&&null!==e.id&&(this.id=e.id),void 0!==e.type&&null!==e.type&&(this.type=e.type),void 0!==e.existing_channel&&null!==e.existing_channel&&(this.existing_channel=e.existing_channel),void 0!==e.image_upload_method&&null!==e.image_upload_method&&(this.image_upload_method=e.image_upload_method),void 0!==e.user_added_method&&null!==e.user_added_method&&(this.user_added_method=e.user_added_method),void 0!==e.invitation_id&&null!==e.invitation_id&&(this.invitation_id=e.invitation_id),void 0!==e.invitation_type&&null!==e.invitation_type&&(this.invitation_type=e.invitation_type),void 0!==e.members&&null!==e.members&&(this.members=s.copyList(e.members,[null])),void 0!==e.invitation_preview_type&&null!==e.invitation_preview_type&&(this.invitation_preview_type=e.invitation_preview_type),void 0!==e.message_type&&null!==e.message_type&&(this.message_type=e.message_type),void 0!==e.number_channels&&null!==e.number_channels&&(this.number_channels=e.number_channels),void 0!==e.number_pending_invites&&null!==e.number_pending_invites&&(this.number_pending_invites=e.number_pending_invites),void 0!==e.number_members&&null!==e.number_members&&(this.number_members=e.number_members),void 0!==e.number_unreads&&null!==e.number_unreads&&(this.number_unreads=e.number_unreads),void 0!==e.reported_user_id&&null!==e.reported_user_id&&(this.reported_user_id=e.reported_user_id),void 0!==e.sender_user_id&&null!==e.sender_user_id&&(this.sender_user_id=e.sender_user_id),void 0!==e.invitation_timestamp&&null!==e.invitation_timestamp&&(this.invitation_timestamp=e.invitation_timestamp),void 0!==e.message_length&&null!==e.message_length&&(this.message_length=e.message_length),void 0!==e.recipient_user_id&&null!==e.recipient_user_id&&(this.recipient_user_id=e.recipient_user_id),void 0!==e.number_blocked_users&&null!==e.number_blocked_users&&(this.number_blocked_users=e.number_blocked_users),void 0!==e.request_name&&null!==e.request_name&&(this.request_name=e.request_name),void 0!==e.is_member&&null!==e.is_member&&(this.is_member=e.is_member),void 0!==e.shown_history&&null!==e.shown_history&&(this.shown_history=e.shown_history),void 0!==e.message_id&&null!==e.message_id&&(this.message_id=e.message_id),void 0!==e.report_reason&&null!==e.report_reason&&(this.report_reason=e.report_reason))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.blocked_user_id=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.type=e.readString():e.skip(t);break;case 4:t==s.Type.BOOL?this.existing_channel=e.readBool():e.skip(t);break;case 5:t==s.Type.STRING?this.image_upload_method=e.readString():e.skip(t);break;case 6:t==s.Type.STRING?this.user_added_method=e.readString():e.skip(t);break;case 7:t==s.Type.STRING?this.invitation_id=e.readString():e.skip(t);break;case 8:t==s.Type.STRING?this.invitation_type=e.readString():e.skip(t);break;case 9:if(t==s.Type.LIST){var n,d;this.members=[];(d=e.readListBegin()).etype,n=d.size;for(var o=0;o<n;++o){var l;l=e.readString(),this.members.push(l)}e.readListEnd()}else e.skip(t);break;case 10:t==s.Type.STRING?this.invitation_preview_type=e.readString():e.skip(t);break;case 11:t==s.Type.STRING?this.message_type=e.readString():e.skip(t);break;case 12:t==s.Type.I64?this.number_channels=e.readI64():e.skip(t);break;case 13:t==s.Type.I64?this.number_pending_invites=e.readI64():e.skip(t);break;case 14:t==s.Type.I64?this.number_members=e.readI64():e.skip(t);break;case 15:t==s.Type.I64?this.number_unreads=e.readI64():e.skip(t);break;case 16:t==s.Type.STRING?this.reported_user_id=e.readString():e.skip(t);break;case 17:t==s.Type.STRING?this.sender_user_id=e.readString():e.skip(t);break;case 18:t==s.Type.I64?this.invitation_timestamp=e.readI64():e.skip(t);break;case 19:t==s.Type.I64?this.message_length=e.readI64():e.skip(t);break;case 20:t==s.Type.STRING?this.recipient_user_id=e.readString():e.skip(t);break;case 21:t==s.Type.I64?this.number_blocked_users=e.readI64():e.skip(t);break;case 22:t==s.Type.STRING?this.request_name=e.readString():e.skip(t);break;case 23:t==s.Type.BOOL?this.is_member=e.readBool():e.skip(t);break;case 24:t==s.Type.BOOL?this.shown_history=e.readBool():e.skip(t);break;case 25:t==s.Type.I64?this.message_id=e.readI64():e.skip(t);break;case 26:t==s.Type.STRING?this.report_reason=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){if(e.writeStructBegin("Chat"),null!==this.blocked_user_id&&void 0!==this.blocked_user_id&&(e.writeFieldBegin("blocked_user_id",s.Type.STRING,1),e.writeString(this.blocked_user_id),e.writeFieldEnd()),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,2),e.writeString(this.id),e.writeFieldEnd()),null!==this.type&&void 0!==this.type&&(e.writeFieldBegin("type",s.Type.STRING,3),e.writeString(this.type),e.writeFieldEnd()),null!==this.existing_channel&&void 0!==this.existing_channel&&(e.writeFieldBegin("existing_channel",s.Type.BOOL,4),e.writeBool(this.existing_channel),e.writeFieldEnd()),null!==this.image_upload_method&&void 0!==this.image_upload_method&&(e.writeFieldBegin("image_upload_method",s.Type.STRING,5),e.writeString(this.image_upload_method),e.writeFieldEnd()),null!==this.user_added_method&&void 0!==this.user_added_method&&(e.writeFieldBegin("user_added_method",s.Type.STRING,6),e.writeString(this.user_added_method),e.writeFieldEnd()),null!==this.invitation_id&&void 0!==this.invitation_id&&(e.writeFieldBegin("invitation_id",s.Type.STRING,7),e.writeString(this.invitation_id),e.writeFieldEnd()),null!==this.invitation_type&&void 0!==this.invitation_type&&(e.writeFieldBegin("invitation_type",s.Type.STRING,8),e.writeString(this.invitation_type),e.writeFieldEnd()),null!==this.members&&void 0!==this.members){for(var i in e.writeFieldBegin("members",s.Type.LIST,9),e.writeListBegin(s.Type.STRING,this.members.length),this.members)this.members.hasOwnProperty(i)&&(i=this.members[i],e.writeString(i));e.writeListEnd(),e.writeFieldEnd()}null!==this.invitation_preview_type&&void 0!==this.invitation_preview_type&&(e.writeFieldBegin("invitation_preview_type",s.Type.STRING,10),e.writeString(this.invitation_preview_type),e.writeFieldEnd()),null!==this.message_type&&void 0!==this.message_type&&(e.writeFieldBegin("message_type",s.Type.STRING,11),e.writeString(this.message_type),e.writeFieldEnd()),null!==this.number_channels&&void 0!==this.number_channels&&(e.writeFieldBegin("number_channels",s.Type.I64,12),e.writeI64(this.number_channels),e.writeFieldEnd()),null!==this.number_pending_invites&&void 0!==this.number_pending_invites&&(e.writeFieldBegin("number_pending_invites",s.Type.I64,13),e.writeI64(this.number_pending_invites),e.writeFieldEnd()),null!==this.number_members&&void 0!==this.number_members&&(e.writeFieldBegin("number_members",s.Type.I64,14),e.writeI64(this.number_members),e.writeFieldEnd()),null!==this.number_unreads&&void 0!==this.number_unreads&&(e.writeFieldBegin("number_unreads",s.Type.I64,15),e.writeI64(this.number_unreads),e.writeFieldEnd()),null!==this.reported_user_id&&void 0!==this.reported_user_id&&(e.writeFieldBegin("reported_user_id",s.Type.STRING,16),e.writeString(this.reported_user_id),e.writeFieldEnd()),null!==this.sender_user_id&&void 0!==this.sender_user_id&&(e.writeFieldBegin("sender_user_id",s.Type.STRING,17),e.writeString(this.sender_user_id),e.writeFieldEnd()),null!==this.invitation_timestamp&&void 0!==this.invitation_timestamp&&(e.writeFieldBegin("invitation_timestamp",s.Type.I64,18),e.writeI64(this.invitation_timestamp),e.writeFieldEnd()),null!==this.message_length&&void 0!==this.message_length&&(e.writeFieldBegin("message_length",s.Type.I64,19),e.writeI64(this.message_length),e.writeFieldEnd()),null!==this.recipient_user_id&&void 0!==this.recipient_user_id&&(e.writeFieldBegin("recipient_user_id",s.Type.STRING,20),e.writeString(this.recipient_user_id),e.writeFieldEnd()),null!==this.number_blocked_users&&void 0!==this.number_blocked_users&&(e.writeFieldBegin("number_blocked_users",s.Type.I64,21),e.writeI64(this.number_blocked_users),e.writeFieldEnd()),null!==this.request_name&&void 0!==this.request_name&&(e.writeFieldBegin("request_name",s.Type.STRING,22),e.writeString(this.request_name),e.writeFieldEnd()),null!==this.is_member&&void 0!==this.is_member&&(e.writeFieldBegin("is_member",s.Type.BOOL,23),e.writeBool(this.is_member),e.writeFieldEnd()),null!==this.shown_history&&void 0!==this.shown_history&&(e.writeFieldBegin("shown_history",s.Type.BOOL,24),e.writeBool(this.shown_history),e.writeFieldEnd()),null!==this.message_id&&void 0!==this.message_id&&(e.writeFieldBegin("message_id",s.Type.I64,25),e.writeI64(this.message_id),e.writeFieldEnd()),null!==this.report_reason&&void 0!==this.report_reason&&(e.writeFieldBegin("report_reason",s.Type.STRING,26),e.writeString(this.report_reason),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/content_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.Post=function(e){if(this.id=null,this.type=null,this.title=null,this.nsfw=null,this.spoiler=null,this.url=null,this.domain=null,this.body_text=null,this.created_timestamp=null,this.promoted=null,this.author_id=null,this.content_duration=null,this.archived=null,this.crosspost_root_id=null,this.number_gildings=null,this.original_content=null,this.flair=null,this.score=null,this.upvote_ratio=null,this.impression_id=null,this.number_posts_from_ad=null,this.is_event=null,this.is_scheduled=null,this.submit_scheduled_timestamp=null,this.is_automated=null,this.comment_type=null,e){if(void 0===e.id||null===e.id)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field id is unset!");this.id=e.id,void 0!==e.type&&null!==e.type&&(this.type=e.type),void 0!==e.title&&null!==e.title&&(this.title=e.title),void 0!==e.nsfw&&null!==e.nsfw&&(this.nsfw=e.nsfw),void 0!==e.spoiler&&null!==e.spoiler&&(this.spoiler=e.spoiler),void 0!==e.url&&null!==e.url&&(this.url=e.url),void 0!==e.domain&&null!==e.domain&&(this.domain=e.domain),void 0!==e.body_text&&null!==e.body_text&&(this.body_text=e.body_text),void 0!==e.created_timestamp&&null!==e.created_timestamp&&(this.created_timestamp=e.created_timestamp),void 0!==e.promoted&&null!==e.promoted&&(this.promoted=e.promoted),void 0!==e.author_id&&null!==e.author_id&&(this.author_id=e.author_id),void 0!==e.content_duration&&null!==e.content_duration&&(this.content_duration=e.content_duration),void 0!==e.archived&&null!==e.archived&&(this.archived=e.archived),void 0!==e.crosspost_root_id&&null!==e.crosspost_root_id&&(this.crosspost_root_id=e.crosspost_root_id),void 0!==e.number_gildings&&null!==e.number_gildings&&(this.number_gildings=e.number_gildings),void 0!==e.original_content&&null!==e.original_content&&(this.original_content=e.original_content),void 0!==e.flair&&null!==e.flair&&(this.flair=e.flair),void 0!==e.score&&null!==e.score&&(this.score=e.score),void 0!==e.upvote_ratio&&null!==e.upvote_ratio&&(this.upvote_ratio=e.upvote_ratio),void 0!==e.impression_id&&null!==e.impression_id&&(this.impression_id=e.impression_id),void 0!==e.number_posts_from_ad&&null!==e.number_posts_from_ad&&(this.number_posts_from_ad=e.number_posts_from_ad),void 0!==e.is_event&&null!==e.is_event&&(this.is_event=e.is_event),void 0!==e.is_scheduled&&null!==e.is_scheduled&&(this.is_scheduled=e.is_scheduled),void 0!==e.submit_scheduled_timestamp&&null!==e.submit_scheduled_timestamp&&(this.submit_scheduled_timestamp=e.submit_scheduled_timestamp),void 0!==e.is_automated&&null!==e.is_automated&&(this.is_automated=e.is_automated),void 0!==e.comment_type&&null!==e.comment_type&&(this.comment_type=e.comment_type)}});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.type=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.title=e.readString():e.skip(t);break;case 4:t==s.Type.BOOL?this.nsfw=e.readBool():e.skip(t);break;case 5:t==s.Type.BOOL?this.spoiler=e.readBool():e.skip(t);break;case 6:t==s.Type.STRING?this.url=e.readString():e.skip(t);break;case 7:t==s.Type.STRING?this.domain=e.readString():e.skip(t);break;case 8:t==s.Type.STRING?this.body_text=e.readString():e.skip(t);break;case 9:t==s.Type.I64?this.created_timestamp=e.readI64():e.skip(t);break;case 10:t==s.Type.BOOL?this.promoted=e.readBool():e.skip(t);break;case 11:t==s.Type.STRING?this.author_id=e.readString():e.skip(t);break;case 12:t==s.Type.I64?this.content_duration=e.readI64():e.skip(t);break;case 13:t==s.Type.BOOL?this.archived=e.readBool():e.skip(t);break;case 14:t==s.Type.STRING?this.crosspost_root_id=e.readString():e.skip(t);break;case 15:t==s.Type.I64?this.number_gildings=e.readI64():e.skip(t);break;case 16:t==s.Type.BOOL?this.original_content=e.readBool():e.skip(t);break;case 17:t==s.Type.STRING?this.flair=e.readString():e.skip(t);break;case 18:t==s.Type.I64?this.score=e.readI64():e.skip(t);break;case 19:t==s.Type.DOUBLE?this.upvote_ratio=e.readDouble():e.skip(t);break;case 20:t==s.Type.STRING?this.impression_id=e.readString():e.skip(t);break;case 21:t==s.Type.I64?this.number_posts_from_ad=e.readI64():e.skip(t);break;case 22:t==s.Type.BOOL?this.is_event=e.readBool():e.skip(t);break;case 23:t==s.Type.BOOL?this.is_scheduled=e.readBool():e.skip(t);break;case 24:t==s.Type.I64?this.submit_scheduled_timestamp=e.readI64():e.skip(t);break;case 25:t==s.Type.BOOL?this.is_automated=e.readBool():e.skip(t);break;case 26:t==s.Type.STRING?this.comment_type=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("Post"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.type&&void 0!==this.type&&(e.writeFieldBegin("type",s.Type.STRING,2),e.writeString(this.type),e.writeFieldEnd()),null!==this.title&&void 0!==this.title&&(e.writeFieldBegin("title",s.Type.STRING,3),e.writeString(this.title),e.writeFieldEnd()),null!==this.nsfw&&void 0!==this.nsfw&&(e.writeFieldBegin("nsfw",s.Type.BOOL,4),e.writeBool(this.nsfw),e.writeFieldEnd()),null!==this.spoiler&&void 0!==this.spoiler&&(e.writeFieldBegin("spoiler",s.Type.BOOL,5),e.writeBool(this.spoiler),e.writeFieldEnd()),null!==this.url&&void 0!==this.url&&(e.writeFieldBegin("url",s.Type.STRING,6),e.writeString(this.url),e.writeFieldEnd()),null!==this.domain&&void 0!==this.domain&&(e.writeFieldBegin("domain",s.Type.STRING,7),e.writeString(this.domain),e.writeFieldEnd()),null!==this.body_text&&void 0!==this.body_text&&(e.writeFieldBegin("body_text",s.Type.STRING,8),e.writeString(this.body_text),e.writeFieldEnd()),null!==this.created_timestamp&&void 0!==this.created_timestamp&&(e.writeFieldBegin("created_timestamp",s.Type.I64,9),e.writeI64(this.created_timestamp),e.writeFieldEnd()),null!==this.promoted&&void 0!==this.promoted&&(e.writeFieldBegin("promoted",s.Type.BOOL,10),e.writeBool(this.promoted),e.writeFieldEnd()),null!==this.author_id&&void 0!==this.author_id&&(e.writeFieldBegin("author_id",s.Type.STRING,11),e.writeString(this.author_id),e.writeFieldEnd()),null!==this.content_duration&&void 0!==this.content_duration&&(e.writeFieldBegin("content_duration",s.Type.I64,12),e.writeI64(this.content_duration),e.writeFieldEnd()),null!==this.archived&&void 0!==this.archived&&(e.writeFieldBegin("archived",s.Type.BOOL,13),e.writeBool(this.archived),e.writeFieldEnd()),null!==this.crosspost_root_id&&void 0!==this.crosspost_root_id&&(e.writeFieldBegin("crosspost_root_id",s.Type.STRING,14),e.writeString(this.crosspost_root_id),e.writeFieldEnd()),null!==this.number_gildings&&void 0!==this.number_gildings&&(e.writeFieldBegin("number_gildings",s.Type.I64,15),e.writeI64(this.number_gildings),e.writeFieldEnd()),null!==this.original_content&&void 0!==this.original_content&&(e.writeFieldBegin("original_content",s.Type.BOOL,16),e.writeBool(this.original_content),e.writeFieldEnd()),null!==this.flair&&void 0!==this.flair&&(e.writeFieldBegin("flair",s.Type.STRING,17),e.writeString(this.flair),e.writeFieldEnd()),null!==this.score&&void 0!==this.score&&(e.writeFieldBegin("score",s.Type.I64,18),e.writeI64(this.score),e.writeFieldEnd()),null!==this.upvote_ratio&&void 0!==this.upvote_ratio&&(e.writeFieldBegin("upvote_ratio",s.Type.DOUBLE,19),e.writeDouble(this.upvote_ratio),e.writeFieldEnd()),null!==this.impression_id&&void 0!==this.impression_id&&(e.writeFieldBegin("impression_id",s.Type.STRING,20),e.writeString(this.impression_id),e.writeFieldEnd()),null!==this.number_posts_from_ad&&void 0!==this.number_posts_from_ad&&(e.writeFieldBegin("number_posts_from_ad",s.Type.I64,21),e.writeI64(this.number_posts_from_ad),e.writeFieldEnd()),null!==this.is_event&&void 0!==this.is_event&&(e.writeFieldBegin("is_event",s.Type.BOOL,22),e.writeBool(this.is_event),e.writeFieldEnd()),null!==this.is_scheduled&&void 0!==this.is_scheduled&&(e.writeFieldBegin("is_scheduled",s.Type.BOOL,23),e.writeBool(this.is_scheduled),e.writeFieldEnd()),null!==this.submit_scheduled_timestamp&&void 0!==this.submit_scheduled_timestamp&&(e.writeFieldBegin("submit_scheduled_timestamp",s.Type.I64,24),e.writeI64(this.submit_scheduled_timestamp),e.writeFieldEnd()),null!==this.is_automated&&void 0!==this.is_automated&&(e.writeFieldBegin("is_automated",s.Type.BOOL,25),e.writeBool(this.is_automated),e.writeFieldEnd()),null!==this.comment_type&&void 0!==this.comment_type&&(e.writeFieldBegin("comment_type",s.Type.STRING,26),e.writeString(this.comment_type),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var d=e.exports.Listing=function(e){this.length=null,this.links=null,this.sort=null,this.sort_time_filter=null,this.min_rank=null,this.max_rank=null,this.geo_filter=null,this.source=null,this.old_sort=null,this.depth=null,e&&(void 0!==e.length&&null!==e.length&&(this.length=e.length),void 0!==e.links&&null!==e.links&&(this.links=s.copyList(e.links,[null])),void 0!==e.sort&&null!==e.sort&&(this.sort=e.sort),void 0!==e.sort_time_filter&&null!==e.sort_time_filter&&(this.sort_time_filter=e.sort_time_filter),void 0!==e.min_rank&&null!==e.min_rank&&(this.min_rank=e.min_rank),void 0!==e.max_rank&&null!==e.max_rank&&(this.max_rank=e.max_rank),void 0!==e.geo_filter&&null!==e.geo_filter&&(this.geo_filter=e.geo_filter),void 0!==e.source&&null!==e.source&&(this.source=e.source),void 0!==e.old_sort&&null!==e.old_sort&&(this.old_sort=e.old_sort),void 0!==e.depth&&null!==e.depth&&(this.depth=e.depth))};d.prototype={},d.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.I64?this.length=e.readI64():e.skip(t);break;case 2:if(t==s.Type.LIST){var n,d;this.links=[];(d=e.readListBegin()).etype,n=d.size;for(var o=0;o<n;++o){var l;l=e.readString(),this.links.push(l)}e.readListEnd()}else e.skip(t);break;case 3:t==s.Type.STRING?this.sort=e.readString():e.skip(t);break;case 4:t==s.Type.STRING?this.sort_time_filter=e.readString():e.skip(t);break;case 5:t==s.Type.I64?this.min_rank=e.readI64():e.skip(t);break;case 6:t==s.Type.I64?this.max_rank=e.readI64():e.skip(t);break;case 7:t==s.Type.STRING?this.geo_filter=e.readString():e.skip(t);break;case 8:t==s.Type.STRING?this.source=e.readString():e.skip(t);break;case 9:t==s.Type.STRING?this.old_sort=e.readString():e.skip(t);break;case 10:t==s.Type.I64?this.depth=e.readI64():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},d.prototype.write=function(e){if(e.writeStructBegin("Listing"),null!==this.length&&void 0!==this.length&&(e.writeFieldBegin("length",s.Type.I64,1),e.writeI64(this.length),e.writeFieldEnd()),null!==this.links&&void 0!==this.links){for(var i in e.writeFieldBegin("links",s.Type.LIST,2),e.writeListBegin(s.Type.STRING,this.links.length),this.links)this.links.hasOwnProperty(i)&&(i=this.links[i],e.writeString(i));e.writeListEnd(),e.writeFieldEnd()}null!==this.sort&&void 0!==this.sort&&(e.writeFieldBegin("sort",s.Type.STRING,3),e.writeString(this.sort),e.writeFieldEnd()),null!==this.sort_time_filter&&void 0!==this.sort_time_filter&&(e.writeFieldBegin("sort_time_filter",s.Type.STRING,4),e.writeString(this.sort_time_filter),e.writeFieldEnd()),null!==this.min_rank&&void 0!==this.min_rank&&(e.writeFieldBegin("min_rank",s.Type.I64,5),e.writeI64(this.min_rank),e.writeFieldEnd()),null!==this.max_rank&&void 0!==this.max_rank&&(e.writeFieldBegin("max_rank",s.Type.I64,6),e.writeI64(this.max_rank),e.writeFieldEnd()),null!==this.geo_filter&&void 0!==this.geo_filter&&(e.writeFieldBegin("geo_filter",s.Type.STRING,7),e.writeString(this.geo_filter),e.writeFieldEnd()),null!==this.source&&void 0!==this.source&&(e.writeFieldBegin("source",s.Type.STRING,8),e.writeString(this.source),e.writeFieldEnd()),null!==this.old_sort&&void 0!==this.old_sort&&(e.writeFieldBegin("old_sort",s.Type.STRING,9),e.writeString(this.old_sort),e.writeFieldEnd()),null!==this.depth&&void 0!==this.depth&&(e.writeFieldBegin("depth",s.Type.I64,10),e.writeI64(this.depth),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var o=e.exports.Comment=function(e){if(this.id=null,this.post_id=null,this.parent_id=null,this.body_text=null,this.author_id=null,this.number_gildings=null,this.score=null,this.upvote_ratio=null,this.created_timestamp=null,this.type=null,e){if(void 0===e.id||null===e.id)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field id is unset!");this.id=e.id,void 0!==e.post_id&&null!==e.post_id&&(this.post_id=e.post_id),void 0!==e.parent_id&&null!==e.parent_id&&(this.parent_id=e.parent_id),void 0!==e.body_text&&null!==e.body_text&&(this.body_text=e.body_text),void 0!==e.author_id&&null!==e.author_id&&(this.author_id=e.author_id),void 0!==e.number_gildings&&null!==e.number_gildings&&(this.number_gildings=e.number_gildings),void 0!==e.score&&null!==e.score&&(this.score=e.score),void 0!==e.upvote_ratio&&null!==e.upvote_ratio&&(this.upvote_ratio=e.upvote_ratio),void 0!==e.created_timestamp&&null!==e.created_timestamp&&(this.created_timestamp=e.created_timestamp),void 0!==e.type&&null!==e.type&&(this.type=e.type)}};o.prototype={},o.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.post_id=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.parent_id=e.readString():e.skip(t);break;case 4:t==s.Type.STRING?this.body_text=e.readString():e.skip(t);break;case 5:t==s.Type.STRING?this.author_id=e.readString():e.skip(t);break;case 6:t==s.Type.I64?this.number_gildings=e.readI64():e.skip(t);break;case 7:t==s.Type.I64?this.score=e.readI64():e.skip(t);break;case 8:t==s.Type.DOUBLE?this.upvote_ratio=e.readDouble():e.skip(t);break;case 9:t==s.Type.I64?this.created_timestamp=e.readI64():e.skip(t);break;case 10:t==s.Type.STRING?this.type=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},o.prototype.write=function(e){e.writeStructBegin("Comment"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.post_id&&void 0!==this.post_id&&(e.writeFieldBegin("post_id",s.Type.STRING,2),e.writeString(this.post_id),e.writeFieldEnd()),null!==this.parent_id&&void 0!==this.parent_id&&(e.writeFieldBegin("parent_id",s.Type.STRING,3),e.writeString(this.parent_id),e.writeFieldEnd()),null!==this.body_text&&void 0!==this.body_text&&(e.writeFieldBegin("body_text",s.Type.STRING,4),e.writeString(this.body_text),e.writeFieldEnd()),null!==this.author_id&&void 0!==this.author_id&&(e.writeFieldBegin("author_id",s.Type.STRING,5),e.writeString(this.author_id),e.writeFieldEnd()),null!==this.number_gildings&&void 0!==this.number_gildings&&(e.writeFieldBegin("number_gildings",s.Type.I64,6),e.writeI64(this.number_gildings),e.writeFieldEnd()),null!==this.score&&void 0!==this.score&&(e.writeFieldBegin("score",s.Type.I64,7),e.writeI64(this.score),e.writeFieldEnd()),null!==this.upvote_ratio&&void 0!==this.upvote_ratio&&(e.writeFieldBegin("upvote_ratio",s.Type.DOUBLE,8),e.writeDouble(this.upvote_ratio),e.writeFieldEnd()),null!==this.created_timestamp&&void 0!==this.created_timestamp&&(e.writeFieldBegin("created_timestamp",s.Type.I64,9),e.writeI64(this.created_timestamp),e.writeFieldEnd()),null!==this.type&&void 0!==this.type&&(e.writeFieldBegin("type",s.Type.STRING,10),e.writeString(this.type),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var l=e.exports.CommentComposer=function(e){this.editor_mode=null,e&&void 0!==e.editor_mode&&null!==e.editor_mode&&(this.editor_mode=e.editor_mode)};l.prototype={},l.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.editor_mode=e.readString():e.skip(t);break;case 0:e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},l.prototype.write=function(e){e.writeStructBegin("CommentComposer"),null!==this.editor_mode&&void 0!==this.editor_mode&&(e.writeFieldBegin("editor_mode",s.Type.STRING,1),e.writeString(this.editor_mode),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var a=e.exports.Notification=function(e){if(this.id=null,this.process_notes=null,this.dropped=null,this.type=null,e){if(void 0===e.id||null===e.id)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field id is unset!");this.id=e.id,void 0!==e.process_notes&&null!==e.process_notes&&(this.process_notes=e.process_notes),void 0!==e.dropped&&null!==e.dropped&&(this.dropped=e.dropped),void 0!==e.type&&null!==e.type&&(this.type=e.type)}};a.prototype={},a.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.process_notes=e.readString():e.skip(t);break;case 3:t==s.Type.BOOL?this.dropped=e.readBool():e.skip(t);break;case 4:t==s.Type.STRING?this.type=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},a.prototype.write=function(e){e.writeStructBegin("Notification"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.process_notes&&void 0!==this.process_notes&&(e.writeFieldBegin("process_notes",s.Type.STRING,2),e.writeString(this.process_notes),e.writeFieldEnd()),null!==this.dropped&&void 0!==this.dropped&&(e.writeFieldBegin("dropped",s.Type.BOOL,3),e.writeBool(this.dropped),e.writeFieldEnd()),null!==this.type&&void 0!==this.type&&(e.writeFieldBegin("type",s.Type.STRING,4),e.writeString(this.type),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var p=e.exports.Media=function(e){this.width=null,this.height=null,this.load_time=null,this.id=null,this.orientation=null,this.duration=null,this.time=null,this.pinned=null,this.max_time_served=null,this.mimetype=null,this.size=null,this.url=null,this.source=null,this.upload_duration=null,this.file_name=null,this.type=null,this.thumbnail_url=null,this.cdn_name=null,this.cdn_region=null,this.destination_region=null,this.preview_url=null,e&&(void 0!==e.width&&null!==e.width&&(this.width=e.width),void 0!==e.height&&null!==e.height&&(this.height=e.height),void 0!==e.load_time&&null!==e.load_time&&(this.load_time=e.load_time),void 0!==e.id&&null!==e.id&&(this.id=e.id),void 0!==e.orientation&&null!==e.orientation&&(this.orientation=e.orientation),void 0!==e.duration&&null!==e.duration&&(this.duration=e.duration),void 0!==e.time&&null!==e.time&&(this.time=e.time),void 0!==e.pinned&&null!==e.pinned&&(this.pinned=e.pinned),void 0!==e.max_time_served&&null!==e.max_time_served&&(this.max_time_served=e.max_time_served),void 0!==e.mimetype&&null!==e.mimetype&&(this.mimetype=e.mimetype),void 0!==e.size&&null!==e.size&&(this.size=e.size),void 0!==e.url&&null!==e.url&&(this.url=e.url),void 0!==e.source&&null!==e.source&&(this.source=e.source),void 0!==e.upload_duration&&null!==e.upload_duration&&(this.upload_duration=e.upload_duration),void 0!==e.file_name&&null!==e.file_name&&(this.file_name=e.file_name),void 0!==e.type&&null!==e.type&&(this.type=e.type),void 0!==e.thumbnail_url&&null!==e.thumbnail_url&&(this.thumbnail_url=e.thumbnail_url),void 0!==e.cdn_name&&null!==e.cdn_name&&(this.cdn_name=e.cdn_name),void 0!==e.cdn_region&&null!==e.cdn_region&&(this.cdn_region=e.cdn_region),void 0!==e.destination_region&&null!==e.destination_region&&(this.destination_region=e.destination_region),void 0!==e.preview_url&&null!==e.preview_url&&(this.preview_url=e.preview_url))};p.prototype={},p.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.I64?this.width=e.readI64():e.skip(t);break;case 2:t==s.Type.I64?this.height=e.readI64():e.skip(t);break;case 3:t==s.Type.I64?this.load_time=e.readI64():e.skip(t);break;case 4:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 5:t==s.Type.STRING?this.orientation=e.readString():e.skip(t);break;case 6:t==s.Type.I64?this.duration=e.readI64():e.skip(t);break;case 7:t==s.Type.I64?this.time=e.readI64():e.skip(t);break;case 8:t==s.Type.BOOL?this.pinned=e.readBool():e.skip(t);break;case 9:t==s.Type.I64?this.max_time_served=e.readI64():e.skip(t);break;case 10:t==s.Type.STRING?this.mimetype=e.readString():e.skip(t);break;case 11:t==s.Type.I64?this.size=e.readI64():e.skip(t);break;case 12:t==s.Type.STRING?this.url=e.readString():e.skip(t);break;case 13:t==s.Type.STRING?this.source=e.readString():e.skip(t);break;case 14:t==s.Type.I64?this.upload_duration=e.readI64():e.skip(t);break;case 15:t==s.Type.STRING?this.file_name=e.readString():e.skip(t);break;case 16:t==s.Type.STRING?this.type=e.readString():e.skip(t);break;case 17:t==s.Type.STRING?this.thumbnail_url=e.readString():e.skip(t);break;case 18:t==s.Type.STRING?this.cdn_name=e.readString():e.skip(t);break;case 19:t==s.Type.STRING?this.cdn_region=e.readString():e.skip(t);break;case 20:t==s.Type.STRING?this.destination_region=e.readString():e.skip(t);break;case 21:t==s.Type.STRING?this.preview_url=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},p.prototype.write=function(e){e.writeStructBegin("Media"),null!==this.width&&void 0!==this.width&&(e.writeFieldBegin("width",s.Type.I64,1),e.writeI64(this.width),e.writeFieldEnd()),null!==this.height&&void 0!==this.height&&(e.writeFieldBegin("height",s.Type.I64,2),e.writeI64(this.height),e.writeFieldEnd()),null!==this.load_time&&void 0!==this.load_time&&(e.writeFieldBegin("load_time",s.Type.I64,3),e.writeI64(this.load_time),e.writeFieldEnd()),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,4),e.writeString(this.id),e.writeFieldEnd()),null!==this.orientation&&void 0!==this.orientation&&(e.writeFieldBegin("orientation",s.Type.STRING,5),e.writeString(this.orientation),e.writeFieldEnd()),null!==this.duration&&void 0!==this.duration&&(e.writeFieldBegin("duration",s.Type.I64,6),e.writeI64(this.duration),e.writeFieldEnd()),null!==this.time&&void 0!==this.time&&(e.writeFieldBegin("time",s.Type.I64,7),e.writeI64(this.time),e.writeFieldEnd()),null!==this.pinned&&void 0!==this.pinned&&(e.writeFieldBegin("pinned",s.Type.BOOL,8),e.writeBool(this.pinned),e.writeFieldEnd()),null!==this.max_time_served&&void 0!==this.max_time_served&&(e.writeFieldBegin("max_time_served",s.Type.I64,9),e.writeI64(this.max_time_served),e.writeFieldEnd()),null!==this.mimetype&&void 0!==this.mimetype&&(e.writeFieldBegin("mimetype",s.Type.STRING,10),e.writeString(this.mimetype),e.writeFieldEnd()),null!==this.size&&void 0!==this.size&&(e.writeFieldBegin("size",s.Type.I64,11),e.writeI64(this.size),e.writeFieldEnd()),null!==this.url&&void 0!==this.url&&(e.writeFieldBegin("url",s.Type.STRING,12),e.writeString(this.url),e.writeFieldEnd()),null!==this.source&&void 0!==this.source&&(e.writeFieldBegin("source",s.Type.STRING,13),e.writeString(this.source),e.writeFieldEnd()),null!==this.upload_duration&&void 0!==this.upload_duration&&(e.writeFieldBegin("upload_duration",s.Type.I64,14),e.writeI64(this.upload_duration),e.writeFieldEnd()),null!==this.file_name&&void 0!==this.file_name&&(e.writeFieldBegin("file_name",s.Type.STRING,15),e.writeString(this.file_name),e.writeFieldEnd()),null!==this.type&&void 0!==this.type&&(e.writeFieldBegin("type",s.Type.STRING,16),e.writeString(this.type),e.writeFieldEnd()),null!==this.thumbnail_url&&void 0!==this.thumbnail_url&&(e.writeFieldBegin("thumbnail_url",s.Type.STRING,17),e.writeString(this.thumbnail_url),e.writeFieldEnd()),null!==this.cdn_name&&void 0!==this.cdn_name&&(e.writeFieldBegin("cdn_name",s.Type.STRING,18),e.writeString(this.cdn_name),e.writeFieldEnd()),null!==this.cdn_region&&void 0!==this.cdn_region&&(e.writeFieldBegin("cdn_region",s.Type.STRING,19),e.writeString(this.cdn_region),e.writeFieldEnd()),null!==this.destination_region&&void 0!==this.destination_region&&(e.writeFieldBegin("destination_region",s.Type.STRING,20),e.writeString(this.destination_region),e.writeFieldEnd()),null!==this.preview_url&&void 0!==this.preview_url&&(e.writeFieldBegin("preview_url",s.Type.STRING,21),e.writeString(this.preview_url),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var u=e.exports.PostComposer=function(e){this.type=null,this.input_type=null,this.text_type=null,this.final_status=null,this.editor_mode=null,this.post_scheduled=null,this.submit_scheduled_timestamp=null,e&&(void 0!==e.type&&null!==e.type&&(this.type=e.type),void 0!==e.input_type&&null!==e.input_type&&(this.input_type=e.input_type),void 0!==e.text_type&&null!==e.text_type&&(this.text_type=e.text_type),void 0!==e.final_status&&null!==e.final_status&&(this.final_status=e.final_status),void 0!==e.editor_mode&&null!==e.editor_mode&&(this.editor_mode=e.editor_mode),void 0!==e.post_scheduled&&null!==e.post_scheduled&&(this.post_scheduled=e.post_scheduled),void 0!==e.submit_scheduled_timestamp&&null!==e.submit_scheduled_timestamp&&(this.submit_scheduled_timestamp=e.submit_scheduled_timestamp))};u.prototype={},u.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.type=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.input_type=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.text_type=e.readString():e.skip(t);break;case 4:t==s.Type.STRING?this.final_status=e.readString():e.skip(t);break;case 5:t==s.Type.STRING?this.editor_mode=e.readString():e.skip(t);break;case 6:t==s.Type.BOOL?this.post_scheduled=e.readBool():e.skip(t);break;case 7:t==s.Type.I64?this.submit_scheduled_timestamp=e.readI64():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},u.prototype.write=function(e){e.writeStructBegin("PostComposer"),null!==this.type&&void 0!==this.type&&(e.writeFieldBegin("type",s.Type.STRING,1),e.writeString(this.type),e.writeFieldEnd()),null!==this.input_type&&void 0!==this.input_type&&(e.writeFieldBegin("input_type",s.Type.STRING,2),e.writeString(this.input_type),e.writeFieldEnd()),null!==this.text_type&&void 0!==this.text_type&&(e.writeFieldBegin("text_type",s.Type.STRING,3),e.writeString(this.text_type),e.writeFieldEnd()),null!==this.final_status&&void 0!==this.final_status&&(e.writeFieldBegin("final_status",s.Type.STRING,4),e.writeString(this.final_status),e.writeFieldEnd()),null!==this.editor_mode&&void 0!==this.editor_mode&&(e.writeFieldBegin("editor_mode",s.Type.STRING,5),e.writeString(this.editor_mode),e.writeFieldEnd()),null!==this.post_scheduled&&void 0!==this.post_scheduled&&(e.writeFieldBegin("post_scheduled",s.Type.BOOL,6),e.writeBool(this.post_scheduled),e.writeFieldEnd()),null!==this.submit_scheduled_timestamp&&void 0!==this.submit_scheduled_timestamp&&(e.writeFieldBegin("submit_scheduled_timestamp",s.Type.I64,7),e.writeI64(this.submit_scheduled_timestamp),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var h=e.exports.Onboarding=function(e){this.id=null,this.action_source=null,this.process_notes=null,this.number_subreddits_selected=null,this.subreddits_selected=null,this.user_name=null,this.recommended_user_name=null,this.start_timestamp=null,this.end_timestamp=null,this.category_position=null,this.category_name=null,this.subreddit_name=null,this.subreddit_position=null,this.subreddit_is_selected=null,this.subreddits_already_selected=null,this.successful=null,this.semantic_version=null,this.landing_page=null,this.valid_email_submitted=null,this.pre_selected=null,this.passed_captcha=null,this.captcha_num_screens=null,this.personalized_subreddits=null,this.similar_subreddits=null,this.number_subreddits=null,this.is_similar_subreddit=null,e&&(void 0!==e.id&&null!==e.id&&(this.id=e.id),void 0!==e.action_source&&null!==e.action_source&&(this.action_source=e.action_source),void 0!==e.process_notes&&null!==e.process_notes&&(this.process_notes=e.process_notes),void 0!==e.number_subreddits_selected&&null!==e.number_subreddits_selected&&(this.number_subreddits_selected=e.number_subreddits_selected),void 0!==e.subreddits_selected&&null!==e.subreddits_selected&&(this.subreddits_selected=s.copyList(e.subreddits_selected,[null])),void 0!==e.user_name&&null!==e.user_name&&(this.user_name=e.user_name),void 0!==e.recommended_user_name&&null!==e.recommended_user_name&&(this.recommended_user_name=e.recommended_user_name),void 0!==e.start_timestamp&&null!==e.start_timestamp&&(this.start_timestamp=e.start_timestamp),void 0!==e.end_timestamp&&null!==e.end_timestamp&&(this.end_timestamp=e.end_timestamp),void 0!==e.category_position&&null!==e.category_position&&(this.category_position=e.category_position),void 0!==e.category_name&&null!==e.category_name&&(this.category_name=e.category_name),void 0!==e.subreddit_name&&null!==e.subreddit_name&&(this.subreddit_name=e.subreddit_name),void 0!==e.subreddit_position&&null!==e.subreddit_position&&(this.subreddit_position=e.subreddit_position),void 0!==e.subreddit_is_selected&&null!==e.subreddit_is_selected&&(this.subreddit_is_selected=e.subreddit_is_selected),void 0!==e.subreddits_already_selected&&null!==e.subreddits_already_selected&&(this.subreddits_already_selected=e.subreddits_already_selected),void 0!==e.successful&&null!==e.successful&&(this.successful=e.successful),void 0!==e.semantic_version&&null!==e.semantic_version&&(this.semantic_version=e.semantic_version),void 0!==e.landing_page&&null!==e.landing_page&&(this.landing_page=e.landing_page),void 0!==e.valid_email_submitted&&null!==e.valid_email_submitted&&(this.valid_email_submitted=e.valid_email_submitted),void 0!==e.pre_selected&&null!==e.pre_selected&&(this.pre_selected=e.pre_selected),void 0!==e.passed_captcha&&null!==e.passed_captcha&&(this.passed_captcha=e.passed_captcha),void 0!==e.captcha_num_screens&&null!==e.captcha_num_screens&&(this.captcha_num_screens=e.captcha_num_screens),void 0!==e.personalized_subreddits&&null!==e.personalized_subreddits&&(this.personalized_subreddits=e.personalized_subreddits),void 0!==e.similar_subreddits&&null!==e.similar_subreddits&&(this.similar_subreddits=s.copyList(e.similar_subreddits,[null])),void 0!==e.number_subreddits&&null!==e.number_subreddits&&(this.number_subreddits=e.number_subreddits),void 0!==e.is_similar_subreddit&&null!==e.is_similar_subreddit&&(this.is_similar_subreddit=e.is_similar_subreddit))};h.prototype={},h.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 6:t==s.Type.STRING?this.action_source=e.readString():e.skip(t);break;case 7:t==s.Type.STRING?this.process_notes=e.readString():e.skip(t);break;case 8:t==s.Type.I64?this.number_subreddits_selected=e.readI64():e.skip(t);break;case 9:if(t==s.Type.LIST){var n,d;this.subreddits_selected=[];(d=e.readListBegin()).etype,n=d.size;for(var o=0;o<n;++o){var l;l=e.readString(),this.subreddits_selected.push(l)}e.readListEnd()}else e.skip(t);break;case 10:t==s.Type.STRING?this.user_name=e.readString():e.skip(t);break;case 11:t==s.Type.BOOL?this.recommended_user_name=e.readBool():e.skip(t);break;case 12:t==s.Type.I64?this.start_timestamp=e.readI64():e.skip(t);break;case 13:t==s.Type.I64?this.end_timestamp=e.readI64():e.skip(t);break;case 14:t==s.Type.I64?this.category_position=e.readI64():e.skip(t);break;case 15:t==s.Type.STRING?this.category_name=e.readString():e.skip(t);break;case 16:t==s.Type.STRING?this.subreddit_name=e.readString():e.skip(t);break;case 17:t==s.Type.I64?this.subreddit_position=e.readI64():e.skip(t);break;case 18:t==s.Type.BOOL?this.subreddit_is_selected=e.readBool():e.skip(t);break;case 19:t==s.Type.I64?this.subreddits_already_selected=e.readI64():e.skip(t);break;case 20:t==s.Type.BOOL?this.successful=e.readBool():e.skip(t);break;case 21:t==s.Type.STRING?this.semantic_version=e.readString():e.skip(t);break;case 22:t==s.Type.STRING?this.landing_page=e.readString():e.skip(t);break;case 23:t==s.Type.BOOL?this.valid_email_submitted=e.readBool():e.skip(t);break;case 24:t==s.Type.BOOL?this.pre_selected=e.readBool():e.skip(t);break;case 25:t==s.Type.BOOL?this.passed_captcha=e.readBool():e.skip(t);break;case 26:t==s.Type.I64?this.captcha_num_screens=e.readI64():e.skip(t);break;case 27:t==s.Type.I64?this.personalized_subreddits=e.readI64():e.skip(t);break;case 28:if(t==s.Type.LIST){var a,p;this.similar_subreddits=[];(p=e.readListBegin()).etype,a=p.size;for(var u=0;u<a;++u){var h;h=e.readString(),this.similar_subreddits.push(h)}e.readListEnd()}else e.skip(t);break;case 29:t==s.Type.I64?this.number_subreddits=e.readI64():e.skip(t);break;case 30:t==s.Type.BOOL?this.is_similar_subreddit=e.readBool():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},h.prototype.write=function(e){if(e.writeStructBegin("Onboarding"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.action_source&&void 0!==this.action_source&&(e.writeFieldBegin("action_source",s.Type.STRING,6),e.writeString(this.action_source),e.writeFieldEnd()),null!==this.process_notes&&void 0!==this.process_notes&&(e.writeFieldBegin("process_notes",s.Type.STRING,7),e.writeString(this.process_notes),e.writeFieldEnd()),null!==this.number_subreddits_selected&&void 0!==this.number_subreddits_selected&&(e.writeFieldBegin("number_subreddits_selected",s.Type.I64,8),e.writeI64(this.number_subreddits_selected),e.writeFieldEnd()),null!==this.subreddits_selected&&void 0!==this.subreddits_selected){for(var i in e.writeFieldBegin("subreddits_selected",s.Type.LIST,9),e.writeListBegin(s.Type.STRING,this.subreddits_selected.length),this.subreddits_selected)this.subreddits_selected.hasOwnProperty(i)&&(i=this.subreddits_selected[i],e.writeString(i));e.writeListEnd(),e.writeFieldEnd()}if(null!==this.user_name&&void 0!==this.user_name&&(e.writeFieldBegin("user_name",s.Type.STRING,10),e.writeString(this.user_name),e.writeFieldEnd()),null!==this.recommended_user_name&&void 0!==this.recommended_user_name&&(e.writeFieldBegin("recommended_user_name",s.Type.BOOL,11),e.writeBool(this.recommended_user_name),e.writeFieldEnd()),null!==this.start_timestamp&&void 0!==this.start_timestamp&&(e.writeFieldBegin("start_timestamp",s.Type.I64,12),e.writeI64(this.start_timestamp),e.writeFieldEnd()),null!==this.end_timestamp&&void 0!==this.end_timestamp&&(e.writeFieldBegin("end_timestamp",s.Type.I64,13),e.writeI64(this.end_timestamp),e.writeFieldEnd()),null!==this.category_position&&void 0!==this.category_position&&(e.writeFieldBegin("category_position",s.Type.I64,14),e.writeI64(this.category_position),e.writeFieldEnd()),null!==this.category_name&&void 0!==this.category_name&&(e.writeFieldBegin("category_name",s.Type.STRING,15),e.writeString(this.category_name),e.writeFieldEnd()),null!==this.subreddit_name&&void 0!==this.subreddit_name&&(e.writeFieldBegin("subreddit_name",s.Type.STRING,16),e.writeString(this.subreddit_name),e.writeFieldEnd()),null!==this.subreddit_position&&void 0!==this.subreddit_position&&(e.writeFieldBegin("subreddit_position",s.Type.I64,17),e.writeI64(this.subreddit_position),e.writeFieldEnd()),null!==this.subreddit_is_selected&&void 0!==this.subreddit_is_selected&&(e.writeFieldBegin("subreddit_is_selected",s.Type.BOOL,18),e.writeBool(this.subreddit_is_selected),e.writeFieldEnd()),null!==this.subreddits_already_selected&&void 0!==this.subreddits_already_selected&&(e.writeFieldBegin("subreddits_already_selected",s.Type.I64,19),e.writeI64(this.subreddits_already_selected),e.writeFieldEnd()),null!==this.successful&&void 0!==this.successful&&(e.writeFieldBegin("successful",s.Type.BOOL,20),e.writeBool(this.successful),e.writeFieldEnd()),null!==this.semantic_version&&void 0!==this.semantic_version&&(e.writeFieldBegin("semantic_version",s.Type.STRING,21),e.writeString(this.semantic_version),e.writeFieldEnd()),null!==this.landing_page&&void 0!==this.landing_page&&(e.writeFieldBegin("landing_page",s.Type.STRING,22),e.writeString(this.landing_page),e.writeFieldEnd()),null!==this.valid_email_submitted&&void 0!==this.valid_email_submitted&&(e.writeFieldBegin("valid_email_submitted",s.Type.BOOL,23),e.writeBool(this.valid_email_submitted),e.writeFieldEnd()),null!==this.pre_selected&&void 0!==this.pre_selected&&(e.writeFieldBegin("pre_selected",s.Type.BOOL,24),e.writeBool(this.pre_selected),e.writeFieldEnd()),null!==this.passed_captcha&&void 0!==this.passed_captcha&&(e.writeFieldBegin("passed_captcha",s.Type.BOOL,25),e.writeBool(this.passed_captcha),e.writeFieldEnd()),null!==this.captcha_num_screens&&void 0!==this.captcha_num_screens&&(e.writeFieldBegin("captcha_num_screens",s.Type.I64,26),e.writeI64(this.captcha_num_screens),e.writeFieldEnd()),null!==this.personalized_subreddits&&void 0!==this.personalized_subreddits&&(e.writeFieldBegin("personalized_subreddits",s.Type.I64,27),e.writeI64(this.personalized_subreddits),e.writeFieldEnd()),null!==this.similar_subreddits&&void 0!==this.similar_subreddits){for(var t in e.writeFieldBegin("similar_subreddits",s.Type.LIST,28),e.writeListBegin(s.Type.STRING,this.similar_subreddits.length),this.similar_subreddits)this.similar_subreddits.hasOwnProperty(t)&&(t=this.similar_subreddits[t],e.writeString(t));e.writeListEnd(),e.writeFieldEnd()}null!==this.number_subreddits&&void 0!==this.number_subreddits&&(e.writeFieldBegin("number_subreddits",s.Type.I64,29),e.writeI64(this.number_subreddits),e.writeFieldEnd()),null!==this.is_similar_subreddit&&void 0!==this.is_similar_subreddit&&(e.writeFieldBegin("is_similar_subreddit",s.Type.BOOL,30),e.writeBool(this.is_similar_subreddit),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var _=e.exports.DiscoveryUnit=function(e){if(this.type=null,this.id=null,this.title=null,this.name=null,this.items=null,e){if(void 0===e.type||null===e.type)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field type is unset!");if(this.type=e.type,void 0===e.id||null===e.id)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field id is unset!");if(this.id=e.id,void 0!==e.title&&null!==e.title&&(this.title=e.title),void 0===e.name||null===e.name)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field name is unset!");this.name=e.name,void 0!==e.items&&null!==e.items&&(this.items=s.copyList(e.items,[null]))}};_.prototype={},_.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 2:t==s.Type.STRING?this.type=e.readString():e.skip(t);break;case 9:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 10:t==s.Type.STRING?this.title=e.readString():e.skip(t);break;case 11:t==s.Type.STRING?this.name=e.readString():e.skip(t);break;case 12:if(t==s.Type.LIST){var n,d;this.items=[];(d=e.readListBegin()).etype,n=d.size;for(var o=0;o<n;++o){var l;l=e.readString(),this.items.push(l)}e.readListEnd()}else e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},_.prototype.write=function(e){if(e.writeStructBegin("DiscoveryUnit"),null!==this.type&&void 0!==this.type&&(e.writeFieldBegin("type",s.Type.STRING,2),e.writeString(this.type),e.writeFieldEnd()),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,9),e.writeString(this.id),e.writeFieldEnd()),null!==this.title&&void 0!==this.title&&(e.writeFieldBegin("title",s.Type.STRING,10),e.writeString(this.title),e.writeFieldEnd()),null!==this.name&&void 0!==this.name&&(e.writeFieldBegin("name",s.Type.STRING,11),e.writeString(this.name),e.writeFieldEnd()),null!==this.items&&void 0!==this.items){for(var i in e.writeFieldBegin("items",s.Type.LIST,12),e.writeListBegin(s.Type.STRING,this.items.length),this.items)this.items.hasOwnProperty(i)&&(i=this.items[i],e.writeString(i));e.writeListEnd(),e.writeFieldEnd()}e.writeFieldStop(),e.writeStructEnd()};var c=e.exports.Message=function(e){if(this.id=null,this.recipient_id=null,this.recipient_type=null,this.sender_type=null,this.body=null,this.subject=null,this.created_timestamp=null,this.first_message_id=null,this.parent_message_id=null,this.source_page=null,this.filtered_by_recipient=null,this.type=null,e){if(void 0===e.id||null===e.id)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field id is unset!");this.id=e.id,void 0!==e.recipient_id&&null!==e.recipient_id&&(this.recipient_id=e.recipient_id),void 0!==e.recipient_type&&null!==e.recipient_type&&(this.recipient_type=e.recipient_type),void 0!==e.sender_type&&null!==e.sender_type&&(this.sender_type=e.sender_type),void 0!==e.body&&null!==e.body&&(this.body=e.body),void 0!==e.subject&&null!==e.subject&&(this.subject=e.subject),void 0!==e.created_timestamp&&null!==e.created_timestamp&&(this.created_timestamp=e.created_timestamp),void 0!==e.first_message_id&&null!==e.first_message_id&&(this.first_message_id=e.first_message_id),void 0!==e.parent_message_id&&null!==e.parent_message_id&&(this.parent_message_id=e.parent_message_id),void 0!==e.source_page&&null!==e.source_page&&(this.source_page=e.source_page),void 0!==e.filtered_by_recipient&&null!==e.filtered_by_recipient&&(this.filtered_by_recipient=e.filtered_by_recipient),void 0!==e.type&&null!==e.type&&(this.type=e.type)}};c.prototype={},c.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.recipient_id=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.recipient_type=e.readString():e.skip(t);break;case 4:t==s.Type.STRING?this.sender_type=e.readString():e.skip(t);break;case 5:t==s.Type.STRING?this.body=e.readString():e.skip(t);break;case 6:t==s.Type.STRING?this.subject=e.readString():e.skip(t);break;case 7:t==s.Type.I64?this.created_timestamp=e.readI64():e.skip(t);break;case 8:t==s.Type.STRING?this.first_message_id=e.readString():e.skip(t);break;case 9:t==s.Type.STRING?this.parent_message_id=e.readString():e.skip(t);break;case 10:t==s.Type.STRING?this.source_page=e.readString():e.skip(t);break;case 11:t==s.Type.BOOL?this.filtered_by_recipient=e.readBool():e.skip(t);break;case 12:t==s.Type.STRING?this.type=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},c.prototype.write=function(e){e.writeStructBegin("Message"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.recipient_id&&void 0!==this.recipient_id&&(e.writeFieldBegin("recipient_id",s.Type.STRING,2),e.writeString(this.recipient_id),e.writeFieldEnd()),null!==this.recipient_type&&void 0!==this.recipient_type&&(e.writeFieldBegin("recipient_type",s.Type.STRING,3),e.writeString(this.recipient_type),e.writeFieldEnd()),null!==this.sender_type&&void 0!==this.sender_type&&(e.writeFieldBegin("sender_type",s.Type.STRING,4),e.writeString(this.sender_type),e.writeFieldEnd()),null!==this.body&&void 0!==this.body&&(e.writeFieldBegin("body",s.Type.STRING,5),e.writeString(this.body),e.writeFieldEnd()),null!==this.subject&&void 0!==this.subject&&(e.writeFieldBegin("subject",s.Type.STRING,6),e.writeString(this.subject),e.writeFieldEnd()),null!==this.created_timestamp&&void 0!==this.created_timestamp&&(e.writeFieldBegin("created_timestamp",s.Type.I64,7),e.writeI64(this.created_timestamp),e.writeFieldEnd()),null!==this.first_message_id&&void 0!==this.first_message_id&&(e.writeFieldBegin("first_message_id",s.Type.STRING,8),e.writeString(this.first_message_id),e.writeFieldEnd()),null!==this.parent_message_id&&void 0!==this.parent_message_id&&(e.writeFieldBegin("parent_message_id",s.Type.STRING,9),e.writeString(this.parent_message_id),e.writeFieldEnd()),null!==this.source_page&&void 0!==this.source_page&&(e.writeFieldBegin("source_page",s.Type.STRING,10),e.writeString(this.source_page),e.writeFieldEnd()),null!==this.filtered_by_recipient&&void 0!==this.filtered_by_recipient&&(e.writeFieldBegin("filtered_by_recipient",s.Type.BOOL,11),e.writeBool(this.filtered_by_recipient),e.writeFieldEnd()),null!==this.type&&void 0!==this.type&&(e.writeFieldBegin("type",s.Type.STRING,12),e.writeString(this.type),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var m=e.exports.News=function(e){this.topic_id=null,this.topic_name=null,this.subtopic_id=null,this.subtopic_name=null,e&&(void 0!==e.topic_id&&null!==e.topic_id&&(this.topic_id=e.topic_id),void 0!==e.topic_name&&null!==e.topic_name&&(this.topic_name=e.topic_name),void 0!==e.subtopic_id&&null!==e.subtopic_id&&(this.subtopic_id=e.subtopic_id),void 0!==e.subtopic_name&&null!==e.subtopic_name&&(this.subtopic_name=e.subtopic_name))};m.prototype={},m.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.topic_id=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.topic_name=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.subtopic_id=e.readString():e.skip(t);break;case 4:t==s.Type.STRING?this.subtopic_name=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},m.prototype.write=function(e){e.writeStructBegin("News"),null!==this.topic_id&&void 0!==this.topic_id&&(e.writeFieldBegin("topic_id",s.Type.STRING,1),e.writeString(this.topic_id),e.writeFieldEnd()),null!==this.topic_name&&void 0!==this.topic_name&&(e.writeFieldBegin("topic_name",s.Type.STRING,2),e.writeString(this.topic_name),e.writeFieldEnd()),null!==this.subtopic_id&&void 0!==this.subtopic_id&&(e.writeFieldBegin("subtopic_id",s.Type.STRING,3),e.writeString(this.subtopic_id),e.writeFieldEnd()),null!==this.subtopic_name&&void 0!==this.subtopic_name&&(e.writeFieldBegin("subtopic_name",s.Type.STRING,4),e.writeString(this.subtopic_name),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var y=e.exports.Edit=function(e){this.previous_body_text=null,e&&void 0!==e.previous_body_text&&null!==e.previous_body_text&&(this.previous_body_text=e.previous_body_text)};y.prototype={},y.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.previous_body_text=e.readString():e.skip(t);break;case 0:e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},y.prototype.write=function(e){e.writeStructBegin("Edit"),null!==this.previous_body_text&&void 0!==this.previous_body_text&&(e.writeFieldBegin("previous_body_text",s.Type.STRING,1),e.writeString(this.previous_body_text),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var g=e.exports.PostEvent=function(e){this.type=null,this.event_state=null,this.event_start_timestamp=null,this.event_end_timestamp=null,e&&(void 0!==e.type&&null!==e.type&&(this.type=e.type),void 0!==e.event_state&&null!==e.event_state&&(this.event_state=e.event_state),void 0!==e.event_start_timestamp&&null!==e.event_start_timestamp&&(this.event_start_timestamp=e.event_start_timestamp),void 0!==e.event_end_timestamp&&null!==e.event_end_timestamp&&(this.event_end_timestamp=e.event_end_timestamp))};g.prototype={},g.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.type=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.event_state=e.readString():e.skip(t);break;case 3:t==s.Type.I64?this.event_start_timestamp=e.readI64():e.skip(t);break;case 4:t==s.Type.I64?this.event_end_timestamp=e.readI64():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},g.prototype.write=function(e){e.writeStructBegin("PostEvent"),null!==this.type&&void 0!==this.type&&(e.writeFieldBegin("type",s.Type.STRING,1),e.writeString(this.type),e.writeFieldEnd()),null!==this.event_state&&void 0!==this.event_state&&(e.writeFieldBegin("event_state",s.Type.STRING,2),e.writeString(this.event_state),e.writeFieldEnd()),null!==this.event_start_timestamp&&void 0!==this.event_start_timestamp&&(e.writeFieldBegin("event_start_timestamp",s.Type.I64,3),e.writeI64(this.event_start_timestamp),e.writeFieldEnd()),null!==this.event_end_timestamp&&void 0!==this.event_end_timestamp&&(e.writeFieldBegin("event_end_timestamp",s.Type.I64,4),e.writeI64(this.event_end_timestamp),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var w=e.exports.PostCollection=function(e){this.id=null,this.title=null,this.author_id=null,this.post_ids=null,e&&(void 0!==e.id&&null!==e.id&&(this.id=e.id),void 0!==e.title&&null!==e.title&&(this.title=e.title),void 0!==e.author_id&&null!==e.author_id&&(this.author_id=e.author_id),void 0!==e.post_ids&&null!==e.post_ids&&(this.post_ids=s.copyList(e.post_ids,[null])))};w.prototype={},w.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.title=e.readString():e.skip(t);break;case 4:t==s.Type.STRING?this.author_id=e.readString():e.skip(t);break;case 5:if(t==s.Type.LIST){var n,d;this.post_ids=[];(d=e.readListBegin()).etype,n=d.size;for(var o=0;o<n;++o){var l;l=e.readString(),this.post_ids.push(l)}e.readListEnd()}else e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},w.prototype.write=function(e){if(e.writeStructBegin("PostCollection"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.title&&void 0!==this.title&&(e.writeFieldBegin("title",s.Type.STRING,2),e.writeString(this.title),e.writeFieldEnd()),null!==this.author_id&&void 0!==this.author_id&&(e.writeFieldBegin("author_id",s.Type.STRING,4),e.writeString(this.author_id),e.writeFieldEnd()),null!==this.post_ids&&void 0!==this.post_ids){for(var i in e.writeFieldBegin("post_ids",s.Type.LIST,5),e.writeListBegin(s.Type.STRING,this.post_ids.length),this.post_ids)this.post_ids.hasOwnProperty(i)&&(i=this.post_ids[i],e.writeString(i));e.writeListEnd(),e.writeFieldEnd()}e.writeFieldStop(),e.writeStructEnd()};var T=e.exports.Vote=function(e){this.affects_karma=null,this.affects_score=null,e&&(void 0!==e.affects_karma&&null!==e.affects_karma&&(this.affects_karma=e.affects_karma),void 0!==e.affects_score&&null!==e.affects_score&&(this.affects_score=e.affects_score))};T.prototype={},T.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.BOOL?this.affects_karma=e.readBool():e.skip(t);break;case 2:t==s.Type.BOOL?this.affects_score=e.readBool():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},T.prototype.write=function(e){e.writeStructBegin("Vote"),null!==this.affects_karma&&void 0!==this.affects_karma&&(e.writeFieldBegin("affects_karma",s.Type.BOOL,1),e.writeBool(this.affects_karma),e.writeFieldEnd()),null!==this.affects_score&&void 0!==this.affects_score&&(e.writeFieldBegin("affects_score",s.Type.BOOL,2),e.writeBool(this.affects_score),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/email_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.Email=function(e){this.subject_line=null,this.preview_text=null,this.type=null,this.header_text=null,this.post_has_thumbnail=null,this.listing_source=null,e&&(void 0!==e.subject_line&&null!==e.subject_line&&(this.subject_line=e.subject_line),void 0!==e.preview_text&&null!==e.preview_text&&(this.preview_text=e.preview_text),void 0!==e.type&&null!==e.type&&(this.type=e.type),void 0!==e.header_text&&null!==e.header_text&&(this.header_text=e.header_text),void 0!==e.post_has_thumbnail&&null!==e.post_has_thumbnail&&(this.post_has_thumbnail=e.post_has_thumbnail),void 0!==e.listing_source&&null!==e.listing_source&&(this.listing_source=e.listing_source))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.subject_line=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.preview_text=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.type=e.readString():e.skip(t);break;case 4:t==s.Type.STRING?this.header_text=e.readString():e.skip(t);break;case 5:t==s.Type.BOOL?this.post_has_thumbnail=e.readBool():e.skip(t);break;case 6:t==s.Type.STRING?this.listing_source=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("Email"),null!==this.subject_line&&void 0!==this.subject_line&&(e.writeFieldBegin("subject_line",s.Type.STRING,1),e.writeString(this.subject_line),e.writeFieldEnd()),null!==this.preview_text&&void 0!==this.preview_text&&(e.writeFieldBegin("preview_text",s.Type.STRING,2),e.writeString(this.preview_text),e.writeFieldEnd()),null!==this.type&&void 0!==this.type&&(e.writeFieldBegin("type",s.Type.STRING,3),e.writeString(this.type),e.writeFieldEnd()),null!==this.header_text&&void 0!==this.header_text&&(e.writeFieldBegin("header_text",s.Type.STRING,4),e.writeString(this.header_text),e.writeFieldEnd()),null!==this.post_has_thumbnail&&void 0!==this.post_has_thumbnail&&(e.writeFieldBegin("post_has_thumbnail",s.Type.BOOL,5),e.writeBool(this.post_has_thumbnail),e.writeFieldEnd()),null!==this.listing_source&&void 0!==this.listing_source&&(e.writeFieldBegin("listing_source",s.Type.STRING,6),e.writeString(this.listing_source),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/event_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/action_types.js")),d=t("./src/telemetry/eventSchemas/adevent_types.js"),o=t("./src/telemetry/eventSchemas/brand_types.js"),l=t("./src/telemetry/eventSchemas/category_header_types.js"),a=t("./src/telemetry/eventSchemas/content_types.js"),p=t("./src/telemetry/eventSchemas/device_types.js"),u=t("./src/telemetry/eventSchemas/request_types.js"),h=t("./src/telemetry/eventSchemas/session_types.js"),_=t("./src/telemetry/eventSchemas/subreddit_types.js"),c=t("./src/telemetry/eventSchemas/timer_types.js"),m=(t("./src/telemetry/eventSchemas/typedefs_types.js"),t("./src/telemetry/eventSchemas/user_types.js")),y=t("./src/telemetry/eventSchemas/chat_types.js"),g=t("./src/telemetry/eventSchemas/security_types.js"),w=t("./src/telemetry/eventSchemas/midas_types.js"),T=t("./src/telemetry/eventSchemas/experiment_types.js"),v=t("./src/telemetry/eventSchemas/notification_types.js"),f=t("./src/telemetry/eventSchemas/search_types.js"),S=t("./src/telemetry/eventSchemas/admin_types.js"),b=t("./src/telemetry/eventSchemas/admin_action_types.js"),k=t("./src/telemetry/eventSchemas/ticket_types.js"),F=t("./src/telemetry/eventSchemas/gold_types.js"),B=t("./src/telemetry/eventSchemas/payment_types.js"),I=t("./src/telemetry/eventSchemas/outbound_types.js"),E=t("./src/telemetry/eventSchemas/carousel_types.js"),R=t("./src/telemetry/eventSchemas/adblock_types.js"),N=t("./src/telemetry/eventSchemas/email_types.js"),O=t("./src/telemetry/eventSchemas/metaflair_types.js"),G=t("./src/telemetry/eventSchemas/post_draft_types.js"),x=t("./src/telemetry/eventSchemas/setting_types.js"),L=t("./src/telemetry/eventSchemas/visibility_types.js"),C=t("./src/telemetry/eventSchemas/webhook_types.js"),j=t("./src/telemetry/eventSchemas/relevance_types.js"),P=t("./src/telemetry/eventSchemas/report_types.js"),U=t("./src/telemetry/eventSchemas/metasearch_types.js"),q=t("./src/telemetry/eventSchemas/postflair_types.js"),A=t("./src/telemetry/eventSchemas/thirdpartybadge_types.js"),D=t("./src/telemetry/eventSchemas/banner_types.js"),z=t("./src/telemetry/eventSchemas/tooltip_types.js"),M=t("./src/telemetry/eventSchemas/upload_types.js"),W=t("./src/telemetry/eventSchemas/live_thread_types.js"),Q=t("./src/telemetry/eventSchemas/popup_types.js"),K=t("./src/telemetry/eventSchemas/moderator_types.js"),H=t("./src/telemetry/eventSchemas/userflair_types.js"),V=t("./src/telemetry/eventSchemas/topic_tag_types.js"),$=e.exports={},J=e.exports.Event=function(e){if(this.source=null,this.action=null,this.noun=null,this.endpoint_timestamp=null,this.client_timestamp=null,this.uuid=null,this.utc_offset=null,this.correlation_id=null,this.post=null,this.listing=null,this.comment=null,this.notification=null,this.oauth=null,this.screen=null,this.app=null,this.platform=null,this.request=null,this.referrer=null,this.dom_timer=null,this.user=null,this.user_preferences=null,this.subreddit=null,this.session=null,this.action_info=null,this.expand=null,this.media=null,this.chat=null,this.post_composer=null,this.widget=null,this.profile=null,this.onboarding=null,this.timer=null,this.tfa=null,this.api_response=null,this.api=null,this.discovery_unit=null,this.experiment=null,this.share=null,this.user_subreddit=null,this.notification_request=null,this.search=null,this.message=null,this.admin=null,this.ticket=null,this.mailroom_request=null,this.comment_composer=null,this.gold_purchase=null,this.payment=null,this.news=null,this.outbound=null,this.click_test=null,this.carousel=null,this.adblock=null,this.email=null,this.metaflair=null,this.post_draft=null,this.setting=null,this.visibility=null,this.webhook=null,this.relevance_model=null,this.meta_search=null,this.post_flair=null,this.admin_action=null,this.zipkin=null,this.edit=null,this.post_event=null,this.post_collection=null,this.third_party_badge=null,this.brand=null,this.messenger_request=null,this.banner=null,this.tooltip=null,this.upload=null,this.csai_media=null,this.category_header=null,this.report=null,this.live_thread=null,this.ad_request=null,this.ad_decision=null,this.ad_push=null,this.vote=null,this.popup=null,this.mod_action=null,this.user_flair=null,this.topic_tag=null,this.geo=null,this.user_legacy_id=null,this.content_metadata=null,this.url_parsed=null,this.link_sharing=null,this.create_request_timestamp=null,this.inferred=null,this.event_hmac_key=null,e){if(void 0===e.source||null===e.source)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field source is unset!");if(this.source=e.source,void 0===e.action||null===e.action)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field action is unset!");if(this.action=e.action,void 0===e.noun||null===e.noun)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field noun is unset!");if(this.noun=e.noun,void 0!==e.endpoint_timestamp&&null!==e.endpoint_timestamp&&(this.endpoint_timestamp=e.endpoint_timestamp),void 0===e.client_timestamp||null===e.client_timestamp)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field client_timestamp is unset!");if(this.client_timestamp=e.client_timestamp,void 0===e.uuid||null===e.uuid)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field uuid is unset!");this.uuid=e.uuid,void 0!==e.utc_offset&&null!==e.utc_offset&&(this.utc_offset=e.utc_offset),void 0!==e.correlation_id&&null!==e.correlation_id&&(this.correlation_id=e.correlation_id),void 0!==e.post&&null!==e.post&&(this.post=new a.Post(e.post)),void 0!==e.listing&&null!==e.listing&&(this.listing=new a.Listing(e.listing)),void 0!==e.comment&&null!==e.comment&&(this.comment=new a.Comment(e.comment)),void 0!==e.notification&&null!==e.notification&&(this.notification=new a.Notification(e.notification)),void 0!==e.oauth&&null!==e.oauth&&(this.oauth=new u.Oauth(e.oauth)),void 0!==e.screen&&null!==e.screen&&(this.screen=new p.Screen(e.screen)),void 0!==e.app&&null!==e.app&&(this.app=new p.App(e.app)),void 0!==e.platform&&null!==e.platform&&(this.platform=new p.Platform(e.platform)),void 0!==e.request&&null!==e.request&&(this.request=new u.Request(e.request)),void 0!==e.referrer&&null!==e.referrer&&(this.referrer=new u.Referrer(e.referrer)),void 0!==e.dom_timer&&null!==e.dom_timer&&(this.dom_timer=new c.DOMTimers(e.dom_timer)),void 0!==e.user&&null!==e.user&&(this.user=new m.User(e.user)),void 0!==e.user_preferences&&null!==e.user_preferences&&(this.user_preferences=new m.UserPreferences(e.user_preferences)),void 0!==e.subreddit&&null!==e.subreddit&&(this.subreddit=new _.Subreddit(e.subreddit)),void 0!==e.session&&null!==e.session&&(this.session=new h.Session(e.session)),void 0!==e.action_info&&null!==e.action_info&&(this.action_info=new n.ActionInfo(e.action_info)),void 0!==e.expand&&null!==e.expand&&(this.expand=new n.Expand(e.expand)),void 0!==e.media&&null!==e.media&&(this.media=new a.Media(e.media)),void 0!==e.chat&&null!==e.chat&&(this.chat=new y.Chat(e.chat)),void 0!==e.post_composer&&null!==e.post_composer&&(this.post_composer=new a.PostComposer(e.post_composer)),void 0!==e.widget&&null!==e.widget&&(this.widget=new n.Widget(e.widget)),void 0!==e.profile&&null!==e.profile&&(this.profile=new _.Profile(e.profile)),void 0!==e.onboarding&&null!==e.onboarding&&(this.onboarding=new a.Onboarding(e.onboarding)),void 0!==e.timer&&null!==e.timer&&(this.timer=new c.Timer(e.timer)),void 0!==e.tfa&&null!==e.tfa&&(this.tfa=new g.TwoFactorAuth(e.tfa)),void 0!==e.api_response&&null!==e.api_response&&(this.api_response=new u.ApiResponse(e.api_response)),void 0!==e.api&&null!==e.api&&(this.api=new u.Api(e.api)),void 0!==e.discovery_unit&&null!==e.discovery_unit&&(this.discovery_unit=new a.DiscoveryUnit(e.discovery_unit)),void 0!==e.experiment&&null!==e.experiment&&(this.experiment=new T.Experiment(e.experiment)),void 0!==e.share&&null!==e.share&&(this.share=new n.Share(e.share)),void 0!==e.user_subreddit&&null!==e.user_subreddit&&(this.user_subreddit=new m.UserSubreddit(e.user_subreddit)),void 0!==e.notification_request&&null!==e.notification_request&&(this.notification_request=new v.NotificationRequest(e.notification_request)),void 0!==e.search&&null!==e.search&&(this.search=new f.Search(e.search)),void 0!==e.message&&null!==e.message&&(this.message=new a.Message(e.message)),void 0!==e.admin&&null!==e.admin&&(this.admin=new S.Admin(e.admin)),void 0!==e.ticket&&null!==e.ticket&&(this.ticket=new k.Ticket(e.ticket)),void 0!==e.mailroom_request&&null!==e.mailroom_request&&(this.mailroom_request=new v.MailroomRequest(e.mailroom_request)),void 0!==e.comment_composer&&null!==e.comment_composer&&(this.comment_composer=new a.CommentComposer(e.comment_composer)),void 0!==e.gold_purchase&&null!==e.gold_purchase&&(this.gold_purchase=new F.GoldPurchase(e.gold_purchase)),void 0!==e.payment&&null!==e.payment&&(this.payment=new B.Payment(e.payment)),void 0!==e.news&&null!==e.news&&(this.news=new a.News(e.news)),void 0!==e.outbound&&null!==e.outbound&&(this.outbound=new I.Outbound(e.outbound)),void 0!==e.click_test&&null!==e.click_test&&(this.click_test=new T.ClickTest(e.click_test)),void 0!==e.carousel&&null!==e.carousel&&(this.carousel=new E.Carousel(e.carousel)),void 0!==e.adblock&&null!==e.adblock&&(this.adblock=new R.Adblock(e.adblock)),void 0!==e.email&&null!==e.email&&(this.email=new N.Email(e.email)),void 0!==e.metaflair&&null!==e.metaflair&&(this.metaflair=new O.MetaFlair(e.metaflair)),void 0!==e.post_draft&&null!==e.post_draft&&(this.post_draft=new G.PostDraft(e.post_draft)),void 0!==e.setting&&null!==e.setting&&(this.setting=new x.Setting(e.setting)),void 0!==e.visibility&&null!==e.visibility&&(this.visibility=new L.Visibility(e.visibility)),void 0!==e.webhook&&null!==e.webhook&&(this.webhook=new C.Webhook(e.webhook)),void 0!==e.relevance_model&&null!==e.relevance_model&&(this.relevance_model=new j.RelevanceModel(e.relevance_model)),void 0!==e.meta_search&&null!==e.meta_search&&(this.meta_search=new U.MetaSearch(e.meta_search)),void 0!==e.post_flair&&null!==e.post_flair&&(this.post_flair=new q.PostFlair(e.post_flair)),void 0!==e.admin_action&&null!==e.admin_action&&(this.admin_action=new b.AdminAction(e.admin_action)),void 0!==e.zipkin&&null!==e.zipkin&&(this.zipkin=new u.Zipkin(e.zipkin)),void 0!==e.edit&&null!==e.edit&&(this.edit=new a.Edit(e.edit)),void 0!==e.post_event&&null!==e.post_event&&(this.post_event=new a.PostEvent(e.post_event)),void 0!==e.post_collection&&null!==e.post_collection&&(this.post_collection=new a.PostCollection(e.post_collection)),void 0!==e.third_party_badge&&null!==e.third_party_badge&&(this.third_party_badge=new A.ThirdPartyBadge(e.third_party_badge)),void 0!==e.brand&&null!==e.brand&&(this.brand=new o.Brand(e.brand)),void 0!==e.messenger_request&&null!==e.messenger_request&&(this.messenger_request=new v.MessengerRequest(e.messenger_request)),void 0!==e.banner&&null!==e.banner&&(this.banner=new D.Banner(e.banner)),void 0!==e.tooltip&&null!==e.tooltip&&(this.tooltip=new z.Tooltip(e.tooltip)),void 0!==e.upload&&null!==e.upload&&(this.upload=new M.Upload(e.upload)),void 0!==e.csai_media&&null!==e.csai_media&&(this.csai_media=new b.CSAIMedia(e.csai_media)),void 0!==e.category_header&&null!==e.category_header&&(this.category_header=new l.CategoryHeader(e.category_header)),void 0!==e.report&&null!==e.report&&(this.report=new P.Report(e.report)),void 0!==e.live_thread&&null!==e.live_thread&&(this.live_thread=new W.LiveThread(e.live_thread)),void 0!==e.ad_request&&null!==e.ad_request&&(this.ad_request=new d.AdRequest(e.ad_request)),void 0!==e.ad_decision&&null!==e.ad_decision&&(this.ad_decision=new d.AdDecision(e.ad_decision)),void 0!==e.ad_push&&null!==e.ad_push&&(this.ad_push=new d.AdPush(e.ad_push)),void 0!==e.vote&&null!==e.vote&&(this.vote=new a.Vote(e.vote)),void 0!==e.popup&&null!==e.popup&&(this.popup=new Q.Popup(e.popup)),void 0!==e.mod_action&&null!==e.mod_action&&(this.mod_action=new K.ModAction(e.mod_action)),void 0!==e.user_flair&&null!==e.user_flair&&(this.user_flair=new H.UserFlair(e.user_flair)),void 0!==e.topic_tag&&null!==e.topic_tag&&(this.topic_tag=new V.TopicTag(e.topic_tag)),void 0!==e.geo&&null!==e.geo&&(this.geo=new w.Geo(e.geo)),void 0!==e.user_legacy_id&&null!==e.user_legacy_id&&(this.user_legacy_id=e.user_legacy_id),void 0!==e.content_metadata&&null!==e.content_metadata&&(this.content_metadata=new w.ContentMetadata(e.content_metadata)),void 0!==e.url_parsed&&null!==e.url_parsed&&(this.url_parsed=new w.UrlParsed(e.url_parsed)),void 0!==e.link_sharing&&null!==e.link_sharing&&(this.link_sharing=new w.LinkSharing(e.link_sharing)),void 0!==e.create_request_timestamp&&null!==e.create_request_timestamp&&(this.create_request_timestamp=e.create_request_timestamp),void 0!==e.inferred&&null!==e.inferred&&(this.inferred=new w.Inferred(e.inferred)),void 0!==e.event_hmac_key&&null!==e.event_hmac_key&&(this.event_hmac_key=e.event_hmac_key)}};J.prototype={},J.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.source=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.action=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.noun=e.readString():e.skip(t);break;case 4:t==s.Type.I64?this.endpoint_timestamp=e.readI64():e.skip(t);break;case 5:t==s.Type.I64?this.client_timestamp=e.readI64():e.skip(t);break;case 6:t==s.Type.STRING?this.uuid=e.readString():e.skip(t);break;case 7:t==s.Type.DOUBLE?this.utc_offset=e.readDouble():e.skip(t);break;case 8:t==s.Type.STRING?this.correlation_id=e.readString():e.skip(t);break;case 100:t==s.Type.STRUCT?(this.post=new a.Post,this.post.read(e)):e.skip(t);break;case 101:t==s.Type.STRUCT?(this.listing=new a.Listing,this.listing.read(e)):e.skip(t);break;case 102:t==s.Type.STRUCT?(this.comment=new a.Comment,this.comment.read(e)):e.skip(t);break;case 103:t==s.Type.STRUCT?(this.notification=new a.Notification,this.notification.read(e)):e.skip(t);break;case 104:t==s.Type.STRUCT?(this.oauth=new u.Oauth,this.oauth.read(e)):e.skip(t);break;case 106:t==s.Type.STRUCT?(this.screen=new p.Screen,this.screen.read(e)):e.skip(t);break;case 107:t==s.Type.STRUCT?(this.app=new p.App,this.app.read(e)):e.skip(t);break;case 108:t==s.Type.STRUCT?(this.platform=new p.Platform,this.platform.read(e)):e.skip(t);break;case 109:t==s.Type.STRUCT?(this.request=new u.Request,this.request.read(e)):e.skip(t);break;case 110:t==s.Type.STRUCT?(this.referrer=new u.Referrer,this.referrer.read(e)):e.skip(t);break;case 111:t==s.Type.STRUCT?(this.dom_timer=new c.DOMTimers,this.dom_timer.read(e)):e.skip(t);break;case 112:t==s.Type.STRUCT?(this.user=new m.User,this.user.read(e)):e.skip(t);break;case 113:t==s.Type.STRUCT?(this.user_preferences=new m.UserPreferences,this.user_preferences.read(e)):e.skip(t);break;case 114:t==s.Type.STRUCT?(this.subreddit=new _.Subreddit,this.subreddit.read(e)):e.skip(t);break;case 115:t==s.Type.STRUCT?(this.session=new h.Session,this.session.read(e)):e.skip(t);break;case 116:t==s.Type.STRUCT?(this.action_info=new n.ActionInfo,this.action_info.read(e)):e.skip(t);break;case 117:t==s.Type.STRUCT?(this.expand=new n.Expand,this.expand.read(e)):e.skip(t);break;case 118:t==s.Type.STRUCT?(this.media=new a.Media,this.media.read(e)):e.skip(t);break;case 119:t==s.Type.STRUCT?(this.chat=new y.Chat,this.chat.read(e)):e.skip(t);break;case 120:t==s.Type.STRUCT?(this.post_composer=new a.PostComposer,this.post_composer.read(e)):e.skip(t);break;case 121:t==s.Type.STRUCT?(this.widget=new n.Widget,this.widget.read(e)):e.skip(t);break;case 122:t==s.Type.STRUCT?(this.profile=new _.Profile,this.profile.read(e)):e.skip(t);break;case 123:t==s.Type.STRUCT?(this.onboarding=new a.Onboarding,this.onboarding.read(e)):e.skip(t);break;case 124:t==s.Type.STRUCT?(this.timer=new c.Timer,this.timer.read(e)):e.skip(t);break;case 125:t==s.Type.STRUCT?(this.tfa=new g.TwoFactorAuth,this.tfa.read(e)):e.skip(t);break;case 126:t==s.Type.STRUCT?(this.api_response=new u.ApiResponse,this.api_response.read(e)):e.skip(t);break;case 127:t==s.Type.STRUCT?(this.api=new u.Api,this.api.read(e)):e.skip(t);break;case 128:t==s.Type.STRUCT?(this.discovery_unit=new a.DiscoveryUnit,this.discovery_unit.read(e)):e.skip(t);break;case 129:t==s.Type.STRUCT?(this.experiment=new T.Experiment,this.experiment.read(e)):e.skip(t);break;case 130:t==s.Type.STRUCT?(this.share=new n.Share,this.share.read(e)):e.skip(t);break;case 131:t==s.Type.STRUCT?(this.user_subreddit=new m.UserSubreddit,this.user_subreddit.read(e)):e.skip(t);break;case 132:t==s.Type.STRUCT?(this.notification_request=new v.NotificationRequest,this.notification_request.read(e)):e.skip(t);break;case 133:t==s.Type.STRUCT?(this.search=new f.Search,this.search.read(e)):e.skip(t);break;case 134:t==s.Type.STRUCT?(this.message=new a.Message,this.message.read(e)):e.skip(t);break;case 135:t==s.Type.STRUCT?(this.admin=new S.Admin,this.admin.read(e)):e.skip(t);break;case 136:t==s.Type.STRUCT?(this.ticket=new k.Ticket,this.ticket.read(e)):e.skip(t);break;case 137:t==s.Type.STRUCT?(this.mailroom_request=new v.MailroomRequest,this.mailroom_request.read(e)):e.skip(t);break;case 138:t==s.Type.STRUCT?(this.comment_composer=new a.CommentComposer,this.comment_composer.read(e)):e.skip(t);break;case 139:t==s.Type.STRUCT?(this.gold_purchase=new F.GoldPurchase,this.gold_purchase.read(e)):e.skip(t);break;case 140:t==s.Type.STRUCT?(this.payment=new B.Payment,this.payment.read(e)):e.skip(t);break;case 141:t==s.Type.STRUCT?(this.news=new a.News,this.news.read(e)):e.skip(t);break;case 142:t==s.Type.STRUCT?(this.outbound=new I.Outbound,this.outbound.read(e)):e.skip(t);break;case 143:t==s.Type.STRUCT?(this.click_test=new T.ClickTest,this.click_test.read(e)):e.skip(t);break;case 144:t==s.Type.STRUCT?(this.carousel=new E.Carousel,this.carousel.read(e)):e.skip(t);break;case 145:t==s.Type.STRUCT?(this.adblock=new R.Adblock,this.adblock.read(e)):e.skip(t);break;case 146:t==s.Type.STRUCT?(this.email=new N.Email,this.email.read(e)):e.skip(t);break;case 147:t==s.Type.STRUCT?(this.metaflair=new O.MetaFlair,this.metaflair.read(e)):e.skip(t);break;case 148:t==s.Type.STRUCT?(this.post_draft=new G.PostDraft,this.post_draft.read(e)):e.skip(t);break;case 149:t==s.Type.STRUCT?(this.setting=new x.Setting,this.setting.read(e)):e.skip(t);break;case 150:t==s.Type.STRUCT?(this.visibility=new L.Visibility,this.visibility.read(e)):e.skip(t);break;case 151:t==s.Type.STRUCT?(this.webhook=new C.Webhook,this.webhook.read(e)):e.skip(t);break;case 152:t==s.Type.STRUCT?(this.relevance_model=new j.RelevanceModel,this.relevance_model.read(e)):e.skip(t);break;case 153:t==s.Type.STRUCT?(this.meta_search=new U.MetaSearch,this.meta_search.read(e)):e.skip(t);break;case 154:t==s.Type.STRUCT?(this.post_flair=new q.PostFlair,this.post_flair.read(e)):e.skip(t);break;case 155:t==s.Type.STRUCT?(this.admin_action=new b.AdminAction,this.admin_action.read(e)):e.skip(t);break;case 156:t==s.Type.STRUCT?(this.zipkin=new u.Zipkin,this.zipkin.read(e)):e.skip(t);break;case 157:t==s.Type.STRUCT?(this.edit=new a.Edit,this.edit.read(e)):e.skip(t);break;case 158:t==s.Type.STRUCT?(this.post_event=new a.PostEvent,this.post_event.read(e)):e.skip(t);break;case 159:t==s.Type.STRUCT?(this.post_collection=new a.PostCollection,this.post_collection.read(e)):e.skip(t);break;case 160:t==s.Type.STRUCT?(this.third_party_badge=new A.ThirdPartyBadge,this.third_party_badge.read(e)):e.skip(t);break;case 161:t==s.Type.STRUCT?(this.brand=new o.Brand,this.brand.read(e)):e.skip(t);break;case 162:t==s.Type.STRUCT?(this.messenger_request=new v.MessengerRequest,this.messenger_request.read(e)):e.skip(t);break;case 163:t==s.Type.STRUCT?(this.banner=new D.Banner,this.banner.read(e)):e.skip(t);break;case 164:t==s.Type.STRUCT?(this.tooltip=new z.Tooltip,this.tooltip.read(e)):e.skip(t);break;case 165:t==s.Type.STRUCT?(this.upload=new M.Upload,this.upload.read(e)):e.skip(t);break;case 166:t==s.Type.STRUCT?(this.csai_media=new b.CSAIMedia,this.csai_media.read(e)):e.skip(t);break;case 167:t==s.Type.STRUCT?(this.category_header=new l.CategoryHeader,this.category_header.read(e)):e.skip(t);break;case 168:t==s.Type.STRUCT?(this.report=new P.Report,this.report.read(e)):e.skip(t);break;case 169:t==s.Type.STRUCT?(this.live_thread=new W.LiveThread,this.live_thread.read(e)):e.skip(t);break;case 170:t==s.Type.STRUCT?(this.ad_request=new d.AdRequest,this.ad_request.read(e)):e.skip(t);break;case 171:t==s.Type.STRUCT?(this.ad_decision=new d.AdDecision,this.ad_decision.read(e)):e.skip(t);break;case 172:t==s.Type.STRUCT?(this.ad_push=new d.AdPush,this.ad_push.read(e)):e.skip(t);break;case 173:t==s.Type.STRUCT?(this.vote=new a.Vote,this.vote.read(e)):e.skip(t);break;case 174:t==s.Type.STRUCT?(this.popup=new Q.Popup,this.popup.read(e)):e.skip(t);break;case 175:t==s.Type.STRUCT?(this.mod_action=new K.ModAction,this.mod_action.read(e)):e.skip(t);break;case 176:t==s.Type.STRUCT?(this.user_flair=new H.UserFlair,this.user_flair.read(e)):e.skip(t);break;case 177:t==s.Type.STRUCT?(this.topic_tag=new V.TopicTag,this.topic_tag.read(e)):e.skip(t);break;case 500:t==s.Type.STRUCT?(this.geo=new w.Geo,this.geo.read(e)):e.skip(t);break;case 502:t==s.Type.STRING?this.user_legacy_id=e.readString():e.skip(t);break;case 503:t==s.Type.STRUCT?(this.content_metadata=new w.ContentMetadata,this.content_metadata.read(e)):e.skip(t);break;case 504:t==s.Type.STRUCT?(this.url_parsed=new w.UrlParsed,this.url_parsed.read(e)):e.skip(t);break;case 505:t==s.Type.STRUCT?(this.link_sharing=new w.LinkSharing,this.link_sharing.read(e)):e.skip(t);break;case 506:t==s.Type.I64?this.create_request_timestamp=e.readI64():e.skip(t);break;case 507:t==s.Type.STRUCT?(this.inferred=new w.Inferred,this.inferred.read(e)):e.skip(t);break;case 508:t==s.Type.STRING?this.event_hmac_key=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},J.prototype.write=function(e){e.writeStructBegin("Event"),null!==this.source&&void 0!==this.source&&(e.writeFieldBegin("source",s.Type.STRING,1),e.writeString(this.source),e.writeFieldEnd()),null!==this.action&&void 0!==this.action&&(e.writeFieldBegin("action",s.Type.STRING,2),e.writeString(this.action),e.writeFieldEnd()),null!==this.noun&&void 0!==this.noun&&(e.writeFieldBegin("noun",s.Type.STRING,3),e.writeString(this.noun),e.writeFieldEnd()),null!==this.endpoint_timestamp&&void 0!==this.endpoint_timestamp&&(e.writeFieldBegin("endpoint_timestamp",s.Type.I64,4),e.writeI64(this.endpoint_timestamp),e.writeFieldEnd()),null!==this.client_timestamp&&void 0!==this.client_timestamp&&(e.writeFieldBegin("client_timestamp",s.Type.I64,5),e.writeI64(this.client_timestamp),e.writeFieldEnd()),null!==this.uuid&&void 0!==this.uuid&&(e.writeFieldBegin("uuid",s.Type.STRING,6),e.writeString(this.uuid),e.writeFieldEnd()),null!==this.utc_offset&&void 0!==this.utc_offset&&(e.writeFieldBegin("utc_offset",s.Type.DOUBLE,7),e.writeDouble(this.utc_offset),e.writeFieldEnd()),null!==this.correlation_id&&void 0!==this.correlation_id&&(e.writeFieldBegin("correlation_id",s.Type.STRING,8),e.writeString(this.correlation_id),e.writeFieldEnd()),null!==this.post&&void 0!==this.post&&(e.writeFieldBegin("post",s.Type.STRUCT,100),this.post.write(e),e.writeFieldEnd()),null!==this.listing&&void 0!==this.listing&&(e.writeFieldBegin("listing",s.Type.STRUCT,101),this.listing.write(e),e.writeFieldEnd()),null!==this.comment&&void 0!==this.comment&&(e.writeFieldBegin("comment",s.Type.STRUCT,102),this.comment.write(e),e.writeFieldEnd()),null!==this.notification&&void 0!==this.notification&&(e.writeFieldBegin("notification",s.Type.STRUCT,103),this.notification.write(e),e.writeFieldEnd()),null!==this.oauth&&void 0!==this.oauth&&(e.writeFieldBegin("oauth",s.Type.STRUCT,104),this.oauth.write(e),e.writeFieldEnd()),null!==this.screen&&void 0!==this.screen&&(e.writeFieldBegin("screen",s.Type.STRUCT,106),this.screen.write(e),e.writeFieldEnd()),null!==this.app&&void 0!==this.app&&(e.writeFieldBegin("app",s.Type.STRUCT,107),this.app.write(e),e.writeFieldEnd()),null!==this.platform&&void 0!==this.platform&&(e.writeFieldBegin("platform",s.Type.STRUCT,108),this.platform.write(e),e.writeFieldEnd()),null!==this.request&&void 0!==this.request&&(e.writeFieldBegin("request",s.Type.STRUCT,109),this.request.write(e),e.writeFieldEnd()),null!==this.referrer&&void 0!==this.referrer&&(e.writeFieldBegin("referrer",s.Type.STRUCT,110),this.referrer.write(e),e.writeFieldEnd()),null!==this.dom_timer&&void 0!==this.dom_timer&&(e.writeFieldBegin("dom_timer",s.Type.STRUCT,111),this.dom_timer.write(e),e.writeFieldEnd()),null!==this.user&&void 0!==this.user&&(e.writeFieldBegin("user",s.Type.STRUCT,112),this.user.write(e),e.writeFieldEnd()),null!==this.user_preferences&&void 0!==this.user_preferences&&(e.writeFieldBegin("user_preferences",s.Type.STRUCT,113),this.user_preferences.write(e),e.writeFieldEnd()),null!==this.subreddit&&void 0!==this.subreddit&&(e.writeFieldBegin("subreddit",s.Type.STRUCT,114),this.subreddit.write(e),e.writeFieldEnd()),null!==this.session&&void 0!==this.session&&(e.writeFieldBegin("session",s.Type.STRUCT,115),this.session.write(e),e.writeFieldEnd()),null!==this.action_info&&void 0!==this.action_info&&(e.writeFieldBegin("action_info",s.Type.STRUCT,116),this.action_info.write(e),e.writeFieldEnd()),null!==this.expand&&void 0!==this.expand&&(e.writeFieldBegin("expand",s.Type.STRUCT,117),this.expand.write(e),e.writeFieldEnd()),null!==this.media&&void 0!==this.media&&(e.writeFieldBegin("media",s.Type.STRUCT,118),this.media.write(e),e.writeFieldEnd()),null!==this.chat&&void 0!==this.chat&&(e.writeFieldBegin("chat",s.Type.STRUCT,119),this.chat.write(e),e.writeFieldEnd()),null!==this.post_composer&&void 0!==this.post_composer&&(e.writeFieldBegin("post_composer",s.Type.STRUCT,120),this.post_composer.write(e),e.writeFieldEnd()),null!==this.widget&&void 0!==this.widget&&(e.writeFieldBegin("widget",s.Type.STRUCT,121),this.widget.write(e),e.writeFieldEnd()),null!==this.profile&&void 0!==this.profile&&(e.writeFieldBegin("profile",s.Type.STRUCT,122),this.profile.write(e),e.writeFieldEnd()),null!==this.onboarding&&void 0!==this.onboarding&&(e.writeFieldBegin("onboarding",s.Type.STRUCT,123),this.onboarding.write(e),e.writeFieldEnd()),null!==this.timer&&void 0!==this.timer&&(e.writeFieldBegin("timer",s.Type.STRUCT,124),this.timer.write(e),e.writeFieldEnd()),null!==this.tfa&&void 0!==this.tfa&&(e.writeFieldBegin("tfa",s.Type.STRUCT,125),this.tfa.write(e),e.writeFieldEnd()),null!==this.api_response&&void 0!==this.api_response&&(e.writeFieldBegin("api_response",s.Type.STRUCT,126),this.api_response.write(e),e.writeFieldEnd()),null!==this.api&&void 0!==this.api&&(e.writeFieldBegin("api",s.Type.STRUCT,127),this.api.write(e),e.writeFieldEnd()),null!==this.discovery_unit&&void 0!==this.discovery_unit&&(e.writeFieldBegin("discovery_unit",s.Type.STRUCT,128),this.discovery_unit.write(e),e.writeFieldEnd()),null!==this.experiment&&void 0!==this.experiment&&(e.writeFieldBegin("experiment",s.Type.STRUCT,129),this.experiment.write(e),e.writeFieldEnd()),null!==this.share&&void 0!==this.share&&(e.writeFieldBegin("share",s.Type.STRUCT,130),this.share.write(e),e.writeFieldEnd()),null!==this.user_subreddit&&void 0!==this.user_subreddit&&(e.writeFieldBegin("user_subreddit",s.Type.STRUCT,131),this.user_subreddit.write(e),e.writeFieldEnd()),null!==this.notification_request&&void 0!==this.notification_request&&(e.writeFieldBegin("notification_request",s.Type.STRUCT,132),this.notification_request.write(e),e.writeFieldEnd()),null!==this.search&&void 0!==this.search&&(e.writeFieldBegin("search",s.Type.STRUCT,133),this.search.write(e),e.writeFieldEnd()),null!==this.message&&void 0!==this.message&&(e.writeFieldBegin("message",s.Type.STRUCT,134),this.message.write(e),e.writeFieldEnd()),null!==this.admin&&void 0!==this.admin&&(e.writeFieldBegin("admin",s.Type.STRUCT,135),this.admin.write(e),e.writeFieldEnd()),null!==this.ticket&&void 0!==this.ticket&&(e.writeFieldBegin("ticket",s.Type.STRUCT,136),this.ticket.write(e),e.writeFieldEnd()),null!==this.mailroom_request&&void 0!==this.mailroom_request&&(e.writeFieldBegin("mailroom_request",s.Type.STRUCT,137),this.mailroom_request.write(e),e.writeFieldEnd()),null!==this.comment_composer&&void 0!==this.comment_composer&&(e.writeFieldBegin("comment_composer",s.Type.STRUCT,138),this.comment_composer.write(e),e.writeFieldEnd()),null!==this.gold_purchase&&void 0!==this.gold_purchase&&(e.writeFieldBegin("gold_purchase",s.Type.STRUCT,139),this.gold_purchase.write(e),e.writeFieldEnd()),null!==this.payment&&void 0!==this.payment&&(e.writeFieldBegin("payment",s.Type.STRUCT,140),this.payment.write(e),e.writeFieldEnd()),null!==this.news&&void 0!==this.news&&(e.writeFieldBegin("news",s.Type.STRUCT,141),this.news.write(e),e.writeFieldEnd()),null!==this.outbound&&void 0!==this.outbound&&(e.writeFieldBegin("outbound",s.Type.STRUCT,142),this.outbound.write(e),e.writeFieldEnd()),null!==this.click_test&&void 0!==this.click_test&&(e.writeFieldBegin("click_test",s.Type.STRUCT,143),this.click_test.write(e),e.writeFieldEnd()),null!==this.carousel&&void 0!==this.carousel&&(e.writeFieldBegin("carousel",s.Type.STRUCT,144),this.carousel.write(e),e.writeFieldEnd()),null!==this.adblock&&void 0!==this.adblock&&(e.writeFieldBegin("adblock",s.Type.STRUCT,145),this.adblock.write(e),e.writeFieldEnd()),null!==this.email&&void 0!==this.email&&(e.writeFieldBegin("email",s.Type.STRUCT,146),this.email.write(e),e.writeFieldEnd()),null!==this.metaflair&&void 0!==this.metaflair&&(e.writeFieldBegin("metaflair",s.Type.STRUCT,147),this.metaflair.write(e),e.writeFieldEnd()),null!==this.post_draft&&void 0!==this.post_draft&&(e.writeFieldBegin("post_draft",s.Type.STRUCT,148),this.post_draft.write(e),e.writeFieldEnd()),null!==this.setting&&void 0!==this.setting&&(e.writeFieldBegin("setting",s.Type.STRUCT,149),this.setting.write(e),e.writeFieldEnd()),null!==this.visibility&&void 0!==this.visibility&&(e.writeFieldBegin("visibility",s.Type.STRUCT,150),this.visibility.write(e),e.writeFieldEnd()),null!==this.webhook&&void 0!==this.webhook&&(e.writeFieldBegin("webhook",s.Type.STRUCT,151),this.webhook.write(e),e.writeFieldEnd()),null!==this.relevance_model&&void 0!==this.relevance_model&&(e.writeFieldBegin("relevance_model",s.Type.STRUCT,152),this.relevance_model.write(e),e.writeFieldEnd()),null!==this.meta_search&&void 0!==this.meta_search&&(e.writeFieldBegin("meta_search",s.Type.STRUCT,153),this.meta_search.write(e),e.writeFieldEnd()),null!==this.post_flair&&void 0!==this.post_flair&&(e.writeFieldBegin("post_flair",s.Type.STRUCT,154),this.post_flair.write(e),e.writeFieldEnd()),null!==this.admin_action&&void 0!==this.admin_action&&(e.writeFieldBegin("admin_action",s.Type.STRUCT,155),this.admin_action.write(e),e.writeFieldEnd()),null!==this.zipkin&&void 0!==this.zipkin&&(e.writeFieldBegin("zipkin",s.Type.STRUCT,156),this.zipkin.write(e),e.writeFieldEnd()),null!==this.edit&&void 0!==this.edit&&(e.writeFieldBegin("edit",s.Type.STRUCT,157),this.edit.write(e),e.writeFieldEnd()),null!==this.post_event&&void 0!==this.post_event&&(e.writeFieldBegin("post_event",s.Type.STRUCT,158),this.post_event.write(e),e.writeFieldEnd()),null!==this.post_collection&&void 0!==this.post_collection&&(e.writeFieldBegin("post_collection",s.Type.STRUCT,159),this.post_collection.write(e),e.writeFieldEnd()),null!==this.third_party_badge&&void 0!==this.third_party_badge&&(e.writeFieldBegin("third_party_badge",s.Type.STRUCT,160),this.third_party_badge.write(e),e.writeFieldEnd()),null!==this.brand&&void 0!==this.brand&&(e.writeFieldBegin("brand",s.Type.STRUCT,161),this.brand.write(e),e.writeFieldEnd()),null!==this.messenger_request&&void 0!==this.messenger_request&&(e.writeFieldBegin("messenger_request",s.Type.STRUCT,162),this.messenger_request.write(e),e.writeFieldEnd()),null!==this.banner&&void 0!==this.banner&&(e.writeFieldBegin("banner",s.Type.STRUCT,163),this.banner.write(e),e.writeFieldEnd()),null!==this.tooltip&&void 0!==this.tooltip&&(e.writeFieldBegin("tooltip",s.Type.STRUCT,164),this.tooltip.write(e),e.writeFieldEnd()),null!==this.upload&&void 0!==this.upload&&(e.writeFieldBegin("upload",s.Type.STRUCT,165),this.upload.write(e),e.writeFieldEnd()),null!==this.csai_media&&void 0!==this.csai_media&&(e.writeFieldBegin("csai_media",s.Type.STRUCT,166),this.csai_media.write(e),e.writeFieldEnd()),null!==this.category_header&&void 0!==this.category_header&&(e.writeFieldBegin("category_header",s.Type.STRUCT,167),this.category_header.write(e),e.writeFieldEnd()),null!==this.report&&void 0!==this.report&&(e.writeFieldBegin("report",s.Type.STRUCT,168),this.report.write(e),e.writeFieldEnd()),null!==this.live_thread&&void 0!==this.live_thread&&(e.writeFieldBegin("live_thread",s.Type.STRUCT,169),this.live_thread.write(e),e.writeFieldEnd()),null!==this.ad_request&&void 0!==this.ad_request&&(e.writeFieldBegin("ad_request",s.Type.STRUCT,170),this.ad_request.write(e),e.writeFieldEnd()),null!==this.ad_decision&&void 0!==this.ad_decision&&(e.writeFieldBegin("ad_decision",s.Type.STRUCT,171),this.ad_decision.write(e),e.writeFieldEnd()),null!==this.ad_push&&void 0!==this.ad_push&&(e.writeFieldBegin("ad_push",s.Type.STRUCT,172),this.ad_push.write(e),e.writeFieldEnd()),null!==this.vote&&void 0!==this.vote&&(e.writeFieldBegin("vote",s.Type.STRUCT,173),this.vote.write(e),e.writeFieldEnd()),null!==this.popup&&void 0!==this.popup&&(e.writeFieldBegin("popup",s.Type.STRUCT,174),this.popup.write(e),e.writeFieldEnd()),null!==this.mod_action&&void 0!==this.mod_action&&(e.writeFieldBegin("mod_action",s.Type.STRUCT,175),this.mod_action.write(e),e.writeFieldEnd()),null!==this.user_flair&&void 0!==this.user_flair&&(e.writeFieldBegin("user_flair",s.Type.STRUCT,176),this.user_flair.write(e),e.writeFieldEnd()),null!==this.topic_tag&&void 0!==this.topic_tag&&(e.writeFieldBegin("topic_tag",s.Type.STRUCT,177),this.topic_tag.write(e),e.writeFieldEnd()),null!==this.geo&&void 0!==this.geo&&(e.writeFieldBegin("geo",s.Type.STRUCT,500),this.geo.write(e),e.writeFieldEnd()),null!==this.user_legacy_id&&void 0!==this.user_legacy_id&&(e.writeFieldBegin("user_legacy_id",s.Type.STRING,502),e.writeString(this.user_legacy_id),e.writeFieldEnd()),null!==this.content_metadata&&void 0!==this.content_metadata&&(e.writeFieldBegin("content_metadata",s.Type.STRUCT,503),this.content_metadata.write(e),e.writeFieldEnd()),null!==this.url_parsed&&void 0!==this.url_parsed&&(e.writeFieldBegin("url_parsed",s.Type.STRUCT,504),this.url_parsed.write(e),e.writeFieldEnd()),null!==this.link_sharing&&void 0!==this.link_sharing&&(e.writeFieldBegin("link_sharing",s.Type.STRUCT,505),this.link_sharing.write(e),e.writeFieldEnd()),null!==this.create_request_timestamp&&void 0!==this.create_request_timestamp&&(e.writeFieldBegin("create_request_timestamp",s.Type.I64,506),e.writeI64(this.create_request_timestamp),e.writeFieldEnd()),null!==this.inferred&&void 0!==this.inferred&&(e.writeFieldBegin("inferred",s.Type.STRUCT,507),this.inferred.write(e),e.writeFieldEnd()),null!==this.event_hmac_key&&void 0!==this.event_hmac_key&&(e.writeFieldBegin("event_hmac_key",s.Type.STRING,508),e.writeString(this.event_hmac_key),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var Z=e.exports.EventBatch=function(e){if(this.events=null,e){if(void 0===e.events||null===e.events)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field events is unset!");this.events=s.copyList(e.events,[$.Event])}};Z.prototype={},Z.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:if(t==s.Type.LIST){var n,d;this.events=[];(d=e.readListBegin()).etype,n=d.size;for(var o=0;o<n;++o){var l=null;(l=new $.Event).read(e),this.events.push(l)}e.readListEnd()}else e.skip(t);break;case 0:e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},Z.prototype.write=function(e){if(e.writeStructBegin("EventBatch"),null!==this.events&&void 0!==this.events){for(var i in e.writeFieldBegin("events",s.Type.LIST,1),e.writeListBegin(s.Type.STRUCT,this.events.length),this.events)this.events.hasOwnProperty(i)&&(i=this.events[i]).write(e);e.writeListEnd(),e.writeFieldEnd()}e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/experiment_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.Experiment=function(e){if(this.id=null,this.name=null,this.owner=null,this.variant=null,this.start_timestamp=null,this.end_timestamp=null,this.bucketing_key=null,this.version=null,this.bucketing_value=null,this.is_override=null,this.variant_names=null,this.variant_percentages=null,this.active=null,this.github_link=null,this.info=null,this.qa_proxy_event=null,this.bucketing_type=null,e){if(void 0===e.id||null===e.id)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field id is unset!");this.id=e.id,void 0!==e.name&&null!==e.name&&(this.name=e.name),void 0!==e.owner&&null!==e.owner&&(this.owner=e.owner),void 0!==e.variant&&null!==e.variant&&(this.variant=e.variant),void 0!==e.start_timestamp&&null!==e.start_timestamp&&(this.start_timestamp=e.start_timestamp),void 0!==e.end_timestamp&&null!==e.end_timestamp&&(this.end_timestamp=e.end_timestamp),void 0!==e.bucketing_key&&null!==e.bucketing_key&&(this.bucketing_key=e.bucketing_key),void 0!==e.version&&null!==e.version&&(this.version=e.version),void 0!==e.bucketing_value&&null!==e.bucketing_value&&(this.bucketing_value=e.bucketing_value),void 0!==e.is_override&&null!==e.is_override&&(this.is_override=e.is_override),void 0!==e.variant_names&&null!==e.variant_names&&(this.variant_names=s.copyList(e.variant_names,[null])),void 0!==e.variant_percentages&&null!==e.variant_percentages&&(this.variant_percentages=s.copyList(e.variant_percentages,[null])),void 0!==e.active&&null!==e.active&&(this.active=e.active),void 0!==e.github_link&&null!==e.github_link&&(this.github_link=e.github_link),void 0!==e.info&&null!==e.info&&(this.info=e.info),void 0!==e.qa_proxy_event&&null!==e.qa_proxy_event&&(this.qa_proxy_event=e.qa_proxy_event),void 0!==e.bucketing_type&&null!==e.bucketing_type&&(this.bucketing_type=e.bucketing_type)}});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.I64?this.id=e.readI64():e.skip(t);break;case 2:t==s.Type.STRING?this.name=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.owner=e.readString():e.skip(t);break;case 4:t==s.Type.STRING?this.variant=e.readString():e.skip(t);break;case 5:t==s.Type.I64?this.start_timestamp=e.readI64():e.skip(t);break;case 6:t==s.Type.I64?this.end_timestamp=e.readI64():e.skip(t);break;case 7:t==s.Type.STRING?this.bucketing_key=e.readString():e.skip(t);break;case 8:t==s.Type.STRING?this.version=e.readString():e.skip(t);break;case 9:t==s.Type.STRING?this.bucketing_value=e.readString():e.skip(t);break;case 10:t==s.Type.BOOL?this.is_override=e.readBool():e.skip(t);break;case 11:if(t==s.Type.LIST){var n,d;this.variant_names=[];(d=e.readListBegin()).etype,n=d.size;for(var o=0;o<n;++o){var l;l=e.readString(),this.variant_names.push(l)}e.readListEnd()}else e.skip(t);break;case 12:if(t==s.Type.LIST){var a,p;this.variant_percentages=[];(p=e.readListBegin()).etype,a=p.size;for(var u=0;u<a;++u){var h;h=e.readDouble(),this.variant_percentages.push(h)}e.readListEnd()}else e.skip(t);break;case 13:t==s.Type.BOOL?this.active=e.readBool():e.skip(t);break;case 15:t==s.Type.STRING?this.github_link=e.readString():e.skip(t);break;case 16:t==s.Type.STRING?this.info=e.readString():e.skip(t);break;case 17:t==s.Type.STRING?this.qa_proxy_event=e.readString():e.skip(t);break;case 18:t==s.Type.STRING?this.bucketing_type=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){if(e.writeStructBegin("Experiment"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.I64,1),e.writeI64(this.id),e.writeFieldEnd()),null!==this.name&&void 0!==this.name&&(e.writeFieldBegin("name",s.Type.STRING,2),e.writeString(this.name),e.writeFieldEnd()),null!==this.owner&&void 0!==this.owner&&(e.writeFieldBegin("owner",s.Type.STRING,3),e.writeString(this.owner),e.writeFieldEnd()),null!==this.variant&&void 0!==this.variant&&(e.writeFieldBegin("variant",s.Type.STRING,4),e.writeString(this.variant),e.writeFieldEnd()),null!==this.start_timestamp&&void 0!==this.start_timestamp&&(e.writeFieldBegin("start_timestamp",s.Type.I64,5),e.writeI64(this.start_timestamp),e.writeFieldEnd()),null!==this.end_timestamp&&void 0!==this.end_timestamp&&(e.writeFieldBegin("end_timestamp",s.Type.I64,6),e.writeI64(this.end_timestamp),e.writeFieldEnd()),null!==this.bucketing_key&&void 0!==this.bucketing_key&&(e.writeFieldBegin("bucketing_key",s.Type.STRING,7),e.writeString(this.bucketing_key),e.writeFieldEnd()),null!==this.version&&void 0!==this.version&&(e.writeFieldBegin("version",s.Type.STRING,8),e.writeString(this.version),e.writeFieldEnd()),null!==this.bucketing_value&&void 0!==this.bucketing_value&&(e.writeFieldBegin("bucketing_value",s.Type.STRING,9),e.writeString(this.bucketing_value),e.writeFieldEnd()),null!==this.is_override&&void 0!==this.is_override&&(e.writeFieldBegin("is_override",s.Type.BOOL,10),e.writeBool(this.is_override),e.writeFieldEnd()),null!==this.variant_names&&void 0!==this.variant_names){for(var i in e.writeFieldBegin("variant_names",s.Type.LIST,11),e.writeListBegin(s.Type.STRING,this.variant_names.length),this.variant_names)this.variant_names.hasOwnProperty(i)&&(i=this.variant_names[i],e.writeString(i));e.writeListEnd(),e.writeFieldEnd()}if(null!==this.variant_percentages&&void 0!==this.variant_percentages){for(var t in e.writeFieldBegin("variant_percentages",s.Type.LIST,12),e.writeListBegin(s.Type.DOUBLE,this.variant_percentages.length),this.variant_percentages)this.variant_percentages.hasOwnProperty(t)&&(t=this.variant_percentages[t],e.writeDouble(t));e.writeListEnd(),e.writeFieldEnd()}null!==this.active&&void 0!==this.active&&(e.writeFieldBegin("active",s.Type.BOOL,13),e.writeBool(this.active),e.writeFieldEnd()),null!==this.github_link&&void 0!==this.github_link&&(e.writeFieldBegin("github_link",s.Type.STRING,15),e.writeString(this.github_link),e.writeFieldEnd()),null!==this.info&&void 0!==this.info&&(e.writeFieldBegin("info",s.Type.STRING,16),e.writeString(this.info),e.writeFieldEnd()),null!==this.qa_proxy_event&&void 0!==this.qa_proxy_event&&(e.writeFieldBegin("qa_proxy_event",s.Type.STRING,17),e.writeString(this.qa_proxy_event),e.writeFieldEnd()),null!==this.bucketing_type&&void 0!==this.bucketing_type&&(e.writeFieldBegin("bucketing_type",s.Type.STRING,18),e.writeString(this.bucketing_type),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var d=e.exports.ClickTest=function(e){if(this.id=null,this.name=null,this.owner=null,this.variant=null,this.prompt=null,this.response=null,this.page_type=null,e){if(void 0===e.id||null===e.id)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field id is unset!");this.id=e.id,void 0!==e.name&&null!==e.name&&(this.name=e.name),void 0!==e.owner&&null!==e.owner&&(this.owner=e.owner),void 0!==e.variant&&null!==e.variant&&(this.variant=e.variant),void 0!==e.prompt&&null!==e.prompt&&(this.prompt=e.prompt),void 0!==e.response&&null!==e.response&&(this.response=e.response),void 0!==e.page_type&&null!==e.page_type&&(this.page_type=e.page_type)}};d.prototype={},d.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.I64?this.id=e.readI64():e.skip(t);break;case 2:t==s.Type.STRING?this.name=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.owner=e.readString():e.skip(t);break;case 4:t==s.Type.STRING?this.variant=e.readString():e.skip(t);break;case 5:t==s.Type.STRING?this.prompt=e.readString():e.skip(t);break;case 6:t==s.Type.STRING?this.response=e.readString():e.skip(t);break;case 7:t==s.Type.STRING?this.page_type=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},d.prototype.write=function(e){e.writeStructBegin("ClickTest"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.I64,1),e.writeI64(this.id),e.writeFieldEnd()),null!==this.name&&void 0!==this.name&&(e.writeFieldBegin("name",s.Type.STRING,2),e.writeString(this.name),e.writeFieldEnd()),null!==this.owner&&void 0!==this.owner&&(e.writeFieldBegin("owner",s.Type.STRING,3),e.writeString(this.owner),e.writeFieldEnd()),null!==this.variant&&void 0!==this.variant&&(e.writeFieldBegin("variant",s.Type.STRING,4),e.writeString(this.variant),e.writeFieldEnd()),null!==this.prompt&&void 0!==this.prompt&&(e.writeFieldBegin("prompt",s.Type.STRING,5),e.writeString(this.prompt),e.writeFieldEnd()),null!==this.response&&void 0!==this.response&&(e.writeFieldBegin("response",s.Type.STRING,6),e.writeString(this.response),e.writeFieldEnd()),null!==this.page_type&&void 0!==this.page_type&&(e.writeFieldBegin("page_type",s.Type.STRING,7),e.writeString(this.page_type),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/gold_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.GoldPurchase=function(e){this.type=null,this.number_months=null,this.one_time_type=null,this.gift_user_id=null,this.gift_anonymous=null,this.gift_message=null,this.gift_message_length=null,this.number_creddits=null,this.subscription_type=null,this.gilded_content=null,this.source=null,this.number_coins=null,this.number_coins_monthly=null,this.number_coins_bonus=null,this.transaction_id=null,this.content_type=null,this.default_option=null,this.default_anonymous=null,this.purchased_coins=null,this.proxy_for_user_id=null,e&&(void 0!==e.type&&null!==e.type&&(this.type=e.type),void 0!==e.number_months&&null!==e.number_months&&(this.number_months=e.number_months),void 0!==e.one_time_type&&null!==e.one_time_type&&(this.one_time_type=e.one_time_type),void 0!==e.gift_user_id&&null!==e.gift_user_id&&(this.gift_user_id=e.gift_user_id),void 0!==e.gift_anonymous&&null!==e.gift_anonymous&&(this.gift_anonymous=e.gift_anonymous),void 0!==e.gift_message&&null!==e.gift_message&&(this.gift_message=e.gift_message),void 0!==e.gift_message_length&&null!==e.gift_message_length&&(this.gift_message_length=e.gift_message_length),void 0!==e.number_creddits&&null!==e.number_creddits&&(this.number_creddits=e.number_creddits),void 0!==e.subscription_type&&null!==e.subscription_type&&(this.subscription_type=e.subscription_type),void 0!==e.gilded_content&&null!==e.gilded_content&&(this.gilded_content=e.gilded_content),void 0!==e.source&&null!==e.source&&(this.source=e.source),void 0!==e.number_coins&&null!==e.number_coins&&(this.number_coins=e.number_coins),void 0!==e.number_coins_monthly&&null!==e.number_coins_monthly&&(this.number_coins_monthly=e.number_coins_monthly),void 0!==e.number_coins_bonus&&null!==e.number_coins_bonus&&(this.number_coins_bonus=e.number_coins_bonus),void 0!==e.transaction_id&&null!==e.transaction_id&&(this.transaction_id=e.transaction_id),void 0!==e.content_type&&null!==e.content_type&&(this.content_type=e.content_type),void 0!==e.default_option&&null!==e.default_option&&(this.default_option=e.default_option),void 0!==e.default_anonymous&&null!==e.default_anonymous&&(this.default_anonymous=e.default_anonymous),void 0!==e.purchased_coins&&null!==e.purchased_coins&&(this.purchased_coins=e.purchased_coins),void 0!==e.proxy_for_user_id&&null!==e.proxy_for_user_id&&(this.proxy_for_user_id=e.proxy_for_user_id))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.type=e.readString():e.skip(t);break;case 2:t==s.Type.I32?this.number_months=e.readI32():e.skip(t);break;case 3:t==s.Type.STRING?this.one_time_type=e.readString():e.skip(t);break;case 4:t==s.Type.STRING?this.gift_user_id=e.readString():e.skip(t);break;case 5:t==s.Type.BOOL?this.gift_anonymous=e.readBool():e.skip(t);break;case 6:t==s.Type.BOOL?this.gift_message=e.readBool():e.skip(t);break;case 7:t==s.Type.I32?this.gift_message_length=e.readI32():e.skip(t);break;case 8:t==s.Type.I32?this.number_creddits=e.readI32():e.skip(t);break;case 9:t==s.Type.STRING?this.subscription_type=e.readString():e.skip(t);break;case 10:t==s.Type.BOOL?this.gilded_content=e.readBool():e.skip(t);break;case 11:t==s.Type.STRING?this.source=e.readString():e.skip(t);break;case 12:t==s.Type.I32?this.number_coins=e.readI32():e.skip(t);break;case 13:t==s.Type.I32?this.number_coins_monthly=e.readI32():e.skip(t);break;case 14:t==s.Type.I32?this.number_coins_bonus=e.readI32():e.skip(t);break;case 15:t==s.Type.STRING?this.transaction_id=e.readString():e.skip(t);break;case 16:t==s.Type.STRING?this.content_type=e.readString():e.skip(t);break;case 17:t==s.Type.STRING?this.default_option=e.readString():e.skip(t);break;case 18:t==s.Type.BOOL?this.default_anonymous=e.readBool():e.skip(t);break;case 19:t==s.Type.BOOL?this.purchased_coins=e.readBool():e.skip(t);break;case 20:t==s.Type.STRING?this.proxy_for_user_id=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("GoldPurchase"),null!==this.type&&void 0!==this.type&&(e.writeFieldBegin("type",s.Type.STRING,1),e.writeString(this.type),e.writeFieldEnd()),null!==this.number_months&&void 0!==this.number_months&&(e.writeFieldBegin("number_months",s.Type.I32,2),e.writeI32(this.number_months),e.writeFieldEnd()),null!==this.one_time_type&&void 0!==this.one_time_type&&(e.writeFieldBegin("one_time_type",s.Type.STRING,3),e.writeString(this.one_time_type),e.writeFieldEnd()),null!==this.gift_user_id&&void 0!==this.gift_user_id&&(e.writeFieldBegin("gift_user_id",s.Type.STRING,4),e.writeString(this.gift_user_id),e.writeFieldEnd()),null!==this.gift_anonymous&&void 0!==this.gift_anonymous&&(e.writeFieldBegin("gift_anonymous",s.Type.BOOL,5),e.writeBool(this.gift_anonymous),e.writeFieldEnd()),null!==this.gift_message&&void 0!==this.gift_message&&(e.writeFieldBegin("gift_message",s.Type.BOOL,6),e.writeBool(this.gift_message),e.writeFieldEnd()),null!==this.gift_message_length&&void 0!==this.gift_message_length&&(e.writeFieldBegin("gift_message_length",s.Type.I32,7),e.writeI32(this.gift_message_length),e.writeFieldEnd()),null!==this.number_creddits&&void 0!==this.number_creddits&&(e.writeFieldBegin("number_creddits",s.Type.I32,8),e.writeI32(this.number_creddits),e.writeFieldEnd()),null!==this.subscription_type&&void 0!==this.subscription_type&&(e.writeFieldBegin("subscription_type",s.Type.STRING,9),e.writeString(this.subscription_type),e.writeFieldEnd()),null!==this.gilded_content&&void 0!==this.gilded_content&&(e.writeFieldBegin("gilded_content",s.Type.BOOL,10),e.writeBool(this.gilded_content),e.writeFieldEnd()),null!==this.source&&void 0!==this.source&&(e.writeFieldBegin("source",s.Type.STRING,11),e.writeString(this.source),e.writeFieldEnd()),null!==this.number_coins&&void 0!==this.number_coins&&(e.writeFieldBegin("number_coins",s.Type.I32,12),e.writeI32(this.number_coins),e.writeFieldEnd()),null!==this.number_coins_monthly&&void 0!==this.number_coins_monthly&&(e.writeFieldBegin("number_coins_monthly",s.Type.I32,13),e.writeI32(this.number_coins_monthly),e.writeFieldEnd()),null!==this.number_coins_bonus&&void 0!==this.number_coins_bonus&&(e.writeFieldBegin("number_coins_bonus",s.Type.I32,14),e.writeI32(this.number_coins_bonus),e.writeFieldEnd()),null!==this.transaction_id&&void 0!==this.transaction_id&&(e.writeFieldBegin("transaction_id",s.Type.STRING,15),e.writeString(this.transaction_id),e.writeFieldEnd()),null!==this.content_type&&void 0!==this.content_type&&(e.writeFieldBegin("content_type",s.Type.STRING,16),e.writeString(this.content_type),e.writeFieldEnd()),null!==this.default_option&&void 0!==this.default_option&&(e.writeFieldBegin("default_option",s.Type.STRING,17),e.writeString(this.default_option),e.writeFieldEnd()),null!==this.default_anonymous&&void 0!==this.default_anonymous&&(e.writeFieldBegin("default_anonymous",s.Type.BOOL,18),e.writeBool(this.default_anonymous),e.writeFieldEnd()),null!==this.purchased_coins&&void 0!==this.purchased_coins&&(e.writeFieldBegin("purchased_coins",s.Type.BOOL,19),e.writeBool(this.purchased_coins),e.writeFieldEnd()),null!==this.proxy_for_user_id&&void 0!==this.proxy_for_user_id&&(e.writeFieldBegin("proxy_for_user_id",s.Type.STRING,20),e.writeString(this.proxy_for_user_id),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/live_thread_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.LiveThread=function(e){this.id=null,this.is_announcement=null,e&&(void 0!==e.id&&null!==e.id&&(this.id=e.id),void 0!==e.is_announcement&&null!==e.is_announcement&&(this.is_announcement=e.is_announcement))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 2:t==s.Type.BOOL?this.is_announcement=e.readBool():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("LiveThread"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.is_announcement&&void 0!==this.is_announcement&&(e.writeFieldBegin("is_announcement",s.Type.BOOL,2),e.writeBool(this.is_announcement),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/metaflair_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.MetaFlair=function(e){if(this.id=null,this.title=null,e){if(void 0===e.id||null===e.id)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field id is unset!");this.id=e.id,void 0!==e.title&&null!==e.title&&(this.title=e.title)}});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.title=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("MetaFlair"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.title&&void 0!==this.title&&(e.writeFieldBegin("title",s.Type.STRING,2),e.writeString(this.title),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/metasearch_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.MetaSearch=function(e){if(this.display_query=null,this.raw_query=null,this.structure_type=null,this.sort=null,this.range=null,this.subreddit_id=null,this.subreddit_name=null,this.post_flair_name=null,this.meta_flair_id=null,this.meta_flair_name=null,e){if(void 0!==e.display_query&&null!==e.display_query&&(this.display_query=e.display_query),void 0!==e.raw_query&&null!==e.raw_query&&(this.raw_query=e.raw_query),void 0===e.structure_type||null===e.structure_type)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field structure_type is unset!");this.structure_type=e.structure_type,void 0!==e.sort&&null!==e.sort&&(this.sort=e.sort),void 0!==e.range&&null!==e.range&&(this.range=e.range),void 0!==e.subreddit_id&&null!==e.subreddit_id&&(this.subreddit_id=e.subreddit_id),void 0!==e.subreddit_name&&null!==e.subreddit_name&&(this.subreddit_name=e.subreddit_name),void 0!==e.post_flair_name&&null!==e.post_flair_name&&(this.post_flair_name=e.post_flair_name),void 0!==e.meta_flair_id&&null!==e.meta_flair_id&&(this.meta_flair_id=e.meta_flair_id),void 0!==e.meta_flair_name&&null!==e.meta_flair_name&&(this.meta_flair_name=e.meta_flair_name)}});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.display_query=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.raw_query=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.structure_type=e.readString():e.skip(t);break;case 4:t==s.Type.STRING?this.sort=e.readString():e.skip(t);break;case 5:t==s.Type.STRING?this.range=e.readString():e.skip(t);break;case 6:t==s.Type.STRING?this.subreddit_id=e.readString():e.skip(t);break;case 7:t==s.Type.STRING?this.subreddit_name=e.readString():e.skip(t);break;case 8:t==s.Type.STRING?this.post_flair_name=e.readString():e.skip(t);break;case 9:t==s.Type.STRING?this.meta_flair_id=e.readString():e.skip(t);break;case 10:t==s.Type.STRING?this.meta_flair_name=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("MetaSearch"),null!==this.display_query&&void 0!==this.display_query&&(e.writeFieldBegin("display_query",s.Type.STRING,1),e.writeString(this.display_query),e.writeFieldEnd()),null!==this.raw_query&&void 0!==this.raw_query&&(e.writeFieldBegin("raw_query",s.Type.STRING,2),e.writeString(this.raw_query),e.writeFieldEnd()),null!==this.structure_type&&void 0!==this.structure_type&&(e.writeFieldBegin("structure_type",s.Type.STRING,3),e.writeString(this.structure_type),e.writeFieldEnd()),null!==this.sort&&void 0!==this.sort&&(e.writeFieldBegin("sort",s.Type.STRING,4),e.writeString(this.sort),e.writeFieldEnd()),null!==this.range&&void 0!==this.range&&(e.writeFieldBegin("range",s.Type.STRING,5),e.writeString(this.range),e.writeFieldEnd()),null!==this.subreddit_id&&void 0!==this.subreddit_id&&(e.writeFieldBegin("subreddit_id",s.Type.STRING,6),e.writeString(this.subreddit_id),e.writeFieldEnd()),null!==this.subreddit_name&&void 0!==this.subreddit_name&&(e.writeFieldBegin("subreddit_name",s.Type.STRING,7),e.writeString(this.subreddit_name),e.writeFieldEnd()),null!==this.post_flair_name&&void 0!==this.post_flair_name&&(e.writeFieldBegin("post_flair_name",s.Type.STRING,8),e.writeString(this.post_flair_name),e.writeFieldEnd()),null!==this.meta_flair_id&&void 0!==this.meta_flair_id&&(e.writeFieldBegin("meta_flair_id",s.Type.STRING,9),e.writeString(this.meta_flair_id),e.writeFieldEnd()),null!==this.meta_flair_name&&void 0!==this.meta_flair_name&&(e.writeFieldBegin("meta_flair_name",s.Type.STRING,10),e.writeString(this.meta_flair_name),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/midas_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.ContentMetadata=function(e){this.is_quarantined=null,this.is_nsfw=null,this.categories=null,e&&(void 0!==e.is_quarantined&&null!==e.is_quarantined&&(this.is_quarantined=e.is_quarantined),void 0!==e.is_nsfw&&null!==e.is_nsfw&&(this.is_nsfw=e.is_nsfw),void 0!==e.categories&&null!==e.categories&&(this.categories=s.copyList(e.categories,[null])))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.BOOL?this.is_quarantined=e.readBool():e.skip(t);break;case 2:t==s.Type.BOOL?this.is_nsfw=e.readBool():e.skip(t);break;case 3:if(t==s.Type.LIST){var n,d;this.categories=[];(d=e.readListBegin()).etype,n=d.size;for(var o=0;o<n;++o){var l;l=e.readString(),this.categories.push(l)}e.readListEnd()}else e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){if(e.writeStructBegin("ContentMetadata"),null!==this.is_quarantined&&void 0!==this.is_quarantined&&(e.writeFieldBegin("is_quarantined",s.Type.BOOL,1),e.writeBool(this.is_quarantined),e.writeFieldEnd()),null!==this.is_nsfw&&void 0!==this.is_nsfw&&(e.writeFieldBegin("is_nsfw",s.Type.BOOL,2),e.writeBool(this.is_nsfw),e.writeFieldEnd()),null!==this.categories&&void 0!==this.categories){for(var i in e.writeFieldBegin("categories",s.Type.LIST,3),e.writeListBegin(s.Type.STRING,this.categories.length),this.categories)this.categories.hasOwnProperty(i)&&(i=this.categories[i],e.writeString(i));e.writeListEnd(),e.writeFieldEnd()}e.writeFieldStop(),e.writeStructEnd()};var d=e.exports.Geo=function(e){this.country_code=null,this.region=null,this.city=null,this.time_zone=null,this.anonymous=null,this.anonymous_vpn=null,this.hosting_provider=null,this.public_proxy=null,this.tor_exit_node=null,this.metro_code=null,e&&(void 0!==e.country_code&&null!==e.country_code&&(this.country_code=e.country_code),void 0!==e.region&&null!==e.region&&(this.region=e.region),void 0!==e.city&&null!==e.city&&(this.city=e.city),void 0!==e.time_zone&&null!==e.time_zone&&(this.time_zone=e.time_zone),void 0!==e.anonymous&&null!==e.anonymous&&(this.anonymous=e.anonymous),void 0!==e.anonymous_vpn&&null!==e.anonymous_vpn&&(this.anonymous_vpn=e.anonymous_vpn),void 0!==e.hosting_provider&&null!==e.hosting_provider&&(this.hosting_provider=e.hosting_provider),void 0!==e.public_proxy&&null!==e.public_proxy&&(this.public_proxy=e.public_proxy),void 0!==e.tor_exit_node&&null!==e.tor_exit_node&&(this.tor_exit_node=e.tor_exit_node),void 0!==e.metro_code&&null!==e.metro_code&&(this.metro_code=e.metro_code))};d.prototype={},d.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.country_code=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.region=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.city=e.readString():e.skip(t);break;case 4:t==s.Type.STRING?this.time_zone=e.readString():e.skip(t);break;case 5:t==s.Type.BOOL?this.anonymous=e.readBool():e.skip(t);break;case 6:t==s.Type.BOOL?this.anonymous_vpn=e.readBool():e.skip(t);break;case 7:t==s.Type.BOOL?this.hosting_provider=e.readBool():e.skip(t);break;case 8:t==s.Type.BOOL?this.public_proxy=e.readBool():e.skip(t);break;case 9:t==s.Type.BOOL?this.tor_exit_node=e.readBool():e.skip(t);break;case 10:t==s.Type.I64?this.metro_code=e.readI64():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},d.prototype.write=function(e){e.writeStructBegin("Geo"),null!==this.country_code&&void 0!==this.country_code&&(e.writeFieldBegin("country_code",s.Type.STRING,1),e.writeString(this.country_code),e.writeFieldEnd()),null!==this.region&&void 0!==this.region&&(e.writeFieldBegin("region",s.Type.STRING,2),e.writeString(this.region),e.writeFieldEnd()),null!==this.city&&void 0!==this.city&&(e.writeFieldBegin("city",s.Type.STRING,3),e.writeString(this.city),e.writeFieldEnd()),null!==this.time_zone&&void 0!==this.time_zone&&(e.writeFieldBegin("time_zone",s.Type.STRING,4),e.writeString(this.time_zone),e.writeFieldEnd()),null!==this.anonymous&&void 0!==this.anonymous&&(e.writeFieldBegin("anonymous",s.Type.BOOL,5),e.writeBool(this.anonymous),e.writeFieldEnd()),null!==this.anonymous_vpn&&void 0!==this.anonymous_vpn&&(e.writeFieldBegin("anonymous_vpn",s.Type.BOOL,6),e.writeBool(this.anonymous_vpn),e.writeFieldEnd()),null!==this.hosting_provider&&void 0!==this.hosting_provider&&(e.writeFieldBegin("hosting_provider",s.Type.BOOL,7),e.writeBool(this.hosting_provider),e.writeFieldEnd()),null!==this.public_proxy&&void 0!==this.public_proxy&&(e.writeFieldBegin("public_proxy",s.Type.BOOL,8),e.writeBool(this.public_proxy),e.writeFieldEnd()),null!==this.tor_exit_node&&void 0!==this.tor_exit_node&&(e.writeFieldBegin("tor_exit_node",s.Type.BOOL,9),e.writeBool(this.tor_exit_node),e.writeFieldEnd()),null!==this.metro_code&&void 0!==this.metro_code&&(e.writeFieldBegin("metro_code",s.Type.I64,10),e.writeI64(this.metro_code),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var o=e.exports.UrlParsed=function(e){this.shared_timestamp=null,this.utm_source=null,this.utm_name=null,this.shared_hash=null,this.utm_campaign=null,this.utm_content=null,this.utm_medium=null,this.utm_term=null,e&&(void 0!==e.shared_timestamp&&null!==e.shared_timestamp&&(this.shared_timestamp=e.shared_timestamp),void 0!==e.utm_source&&null!==e.utm_source&&(this.utm_source=e.utm_source),void 0!==e.utm_name&&null!==e.utm_name&&(this.utm_name=e.utm_name),void 0!==e.shared_hash&&null!==e.shared_hash&&(this.shared_hash=e.shared_hash),void 0!==e.utm_campaign&&null!==e.utm_campaign&&(this.utm_campaign=e.utm_campaign),void 0!==e.utm_content&&null!==e.utm_content&&(this.utm_content=e.utm_content),void 0!==e.utm_medium&&null!==e.utm_medium&&(this.utm_medium=e.utm_medium),void 0!==e.utm_term&&null!==e.utm_term&&(this.utm_term=e.utm_term))};o.prototype={},o.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.I64?this.shared_timestamp=e.readI64():e.skip(t);break;case 2:t==s.Type.STRING?this.utm_source=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.utm_name=e.readString():e.skip(t);break;case 4:t==s.Type.STRING?this.shared_hash=e.readString():e.skip(t);break;case 5:t==s.Type.STRING?this.utm_campaign=e.readString():e.skip(t);break;case 6:t==s.Type.STRING?this.utm_content=e.readString():e.skip(t);break;case 7:t==s.Type.STRING?this.utm_medium=e.readString():e.skip(t);break;case 8:t==s.Type.STRING?this.utm_term=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},o.prototype.write=function(e){e.writeStructBegin("UrlParsed"),null!==this.shared_timestamp&&void 0!==this.shared_timestamp&&(e.writeFieldBegin("shared_timestamp",s.Type.I64,1),e.writeI64(this.shared_timestamp),e.writeFieldEnd()),null!==this.utm_source&&void 0!==this.utm_source&&(e.writeFieldBegin("utm_source",s.Type.STRING,2),e.writeString(this.utm_source),e.writeFieldEnd()),null!==this.utm_name&&void 0!==this.utm_name&&(e.writeFieldBegin("utm_name",s.Type.STRING,3),e.writeString(this.utm_name),e.writeFieldEnd()),null!==this.shared_hash&&void 0!==this.shared_hash&&(e.writeFieldBegin("shared_hash",s.Type.STRING,4),e.writeString(this.shared_hash),e.writeFieldEnd()),null!==this.utm_campaign&&void 0!==this.utm_campaign&&(e.writeFieldBegin("utm_campaign",s.Type.STRING,5),e.writeString(this.utm_campaign),e.writeFieldEnd()),null!==this.utm_content&&void 0!==this.utm_content&&(e.writeFieldBegin("utm_content",s.Type.STRING,6),e.writeString(this.utm_content),e.writeFieldEnd()),null!==this.utm_medium&&void 0!==this.utm_medium&&(e.writeFieldBegin("utm_medium",s.Type.STRING,7),e.writeString(this.utm_medium),e.writeFieldEnd()),null!==this.utm_term&&void 0!==this.utm_term&&(e.writeFieldBegin("utm_term",s.Type.STRING,8),e.writeString(this.utm_term),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var l=e.exports.LinkSharing=function(e){this.shared_at_timestamp=null,e&&void 0!==e.shared_at_timestamp&&null!==e.shared_at_timestamp&&(this.shared_at_timestamp=e.shared_at_timestamp)};l.prototype={},l.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.I64?this.shared_at_timestamp=e.readI64():e.skip(t);break;case 0:e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},l.prototype.write=function(e){e.writeStructBegin("LinkSharing"),null!==this.shared_at_timestamp&&void 0!==this.shared_at_timestamp&&(e.writeFieldBegin("shared_at_timestamp",s.Type.I64,1),e.writeI64(this.shared_at_timestamp),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var a=e.exports.Inferred=function(e){this.app_name=null,this.client_ip=null,this.user_agent_web_crawler=null,this.post_impression_id=null,e&&(void 0!==e.app_name&&null!==e.app_name&&(this.app_name=e.app_name),void 0!==e.client_ip&&null!==e.client_ip&&(this.client_ip=e.client_ip),void 0!==e.user_agent_web_crawler&&null!==e.user_agent_web_crawler&&(this.user_agent_web_crawler=e.user_agent_web_crawler),void 0!==e.post_impression_id&&null!==e.post_impression_id&&(this.post_impression_id=e.post_impression_id))};a.prototype={},a.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.app_name=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.client_ip=e.readString():e.skip(t);break;case 3:t==s.Type.BOOL?this.user_agent_web_crawler=e.readBool():e.skip(t);break;case 4:t==s.Type.I64?this.post_impression_id=e.readI64():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},a.prototype.write=function(e){e.writeStructBegin("Inferred"),null!==this.app_name&&void 0!==this.app_name&&(e.writeFieldBegin("app_name",s.Type.STRING,1),e.writeString(this.app_name),e.writeFieldEnd()),null!==this.client_ip&&void 0!==this.client_ip&&(e.writeFieldBegin("client_ip",s.Type.STRING,2),e.writeString(this.client_ip),e.writeFieldEnd()),null!==this.user_agent_web_crawler&&void 0!==this.user_agent_web_crawler&&(e.writeFieldBegin("user_agent_web_crawler",s.Type.BOOL,3),e.writeBool(this.user_agent_web_crawler),e.writeFieldEnd()),null!==this.post_impression_id&&void 0!==this.post_impression_id&&(e.writeFieldBegin("post_impression_id",s.Type.I64,4),e.writeI64(this.post_impression_id),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/moderator_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.ModAction=function(e){this.target_user_id=null,this.is_automoderator=null,e&&(void 0!==e.target_user_id&&null!==e.target_user_id&&(this.target_user_id=e.target_user_id),void 0!==e.is_automoderator&&null!==e.is_automoderator&&(this.is_automoderator=e.is_automoderator))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.target_user_id=e.readString():e.skip(t);break;case 2:t==s.Type.BOOL?this.is_automoderator=e.readBool():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("ModAction"),null!==this.target_user_id&&void 0!==this.target_user_id&&(e.writeFieldBegin("target_user_id",s.Type.STRING,1),e.writeString(this.target_user_id),e.writeFieldEnd()),null!==this.is_automoderator&&void 0!==this.is_automoderator&&(e.writeFieldBegin("is_automoderator",s.Type.BOOL,2),e.writeBool(this.is_automoderator),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/notification_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.MailroomRequest=function(e){this.message_id=null,this.message_type=null,this.dropped_by=null,this.delivery_queue_name=null,this.notification_transport=null,this.notification_target=null,this.message_variant=null,this.region=null,this.region_num=null,e&&(void 0!==e.message_id&&null!==e.message_id&&(this.message_id=e.message_id),void 0!==e.message_type&&null!==e.message_type&&(this.message_type=e.message_type),void 0!==e.dropped_by&&null!==e.dropped_by&&(this.dropped_by=e.dropped_by),void 0!==e.delivery_queue_name&&null!==e.delivery_queue_name&&(this.delivery_queue_name=e.delivery_queue_name),void 0!==e.notification_transport&&null!==e.notification_transport&&(this.notification_transport=e.notification_transport),void 0!==e.notification_target&&null!==e.notification_target&&(this.notification_target=e.notification_target),void 0!==e.message_variant&&null!==e.message_variant&&(this.message_variant=e.message_variant),void 0!==e.region&&null!==e.region&&(this.region=e.region),void 0!==e.region_num&&null!==e.region_num&&(this.region_num=e.region_num))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.message_id=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.message_type=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.dropped_by=e.readString():e.skip(t);break;case 4:t==s.Type.STRING?this.delivery_queue_name=e.readString():e.skip(t);break;case 5:t==s.Type.STRING?this.notification_transport=e.readString():e.skip(t);break;case 6:t==s.Type.STRING?this.notification_target=e.readString():e.skip(t);break;case 7:t==s.Type.STRING?this.message_variant=e.readString():e.skip(t);break;case 8:t==s.Type.STRING?this.region=e.readString():e.skip(t);break;case 9:t==s.Type.I32?this.region_num=e.readI32():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("MailroomRequest"),null!==this.message_id&&void 0!==this.message_id&&(e.writeFieldBegin("message_id",s.Type.STRING,1),e.writeString(this.message_id),e.writeFieldEnd()),null!==this.message_type&&void 0!==this.message_type&&(e.writeFieldBegin("message_type",s.Type.STRING,2),e.writeString(this.message_type),e.writeFieldEnd()),null!==this.dropped_by&&void 0!==this.dropped_by&&(e.writeFieldBegin("dropped_by",s.Type.STRING,3),e.writeString(this.dropped_by),e.writeFieldEnd()),null!==this.delivery_queue_name&&void 0!==this.delivery_queue_name&&(e.writeFieldBegin("delivery_queue_name",s.Type.STRING,4),e.writeString(this.delivery_queue_name),e.writeFieldEnd()),null!==this.notification_transport&&void 0!==this.notification_transport&&(e.writeFieldBegin("notification_transport",s.Type.STRING,5),e.writeString(this.notification_transport),e.writeFieldEnd()),null!==this.notification_target&&void 0!==this.notification_target&&(e.writeFieldBegin("notification_target",s.Type.STRING,6),e.writeString(this.notification_target),e.writeFieldEnd()),null!==this.message_variant&&void 0!==this.message_variant&&(e.writeFieldBegin("message_variant",s.Type.STRING,7),e.writeString(this.message_variant),e.writeFieldEnd()),null!==this.region&&void 0!==this.region&&(e.writeFieldBegin("region",s.Type.STRING,8),e.writeString(this.region),e.writeFieldEnd()),null!==this.region_num&&void 0!==this.region_num&&(e.writeFieldBegin("region_num",s.Type.I32,9),e.writeI32(this.region_num),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var d=e.exports.MessengerRequest=function(e){this.message_type=null,this.dropped_reason=null,this.queue_name=null,e&&(void 0!==e.message_type&&null!==e.message_type&&(this.message_type=e.message_type),void 0!==e.dropped_reason&&null!==e.dropped_reason&&(this.dropped_reason=e.dropped_reason),void 0!==e.queue_name&&null!==e.queue_name&&(this.queue_name=e.queue_name))};d.prototype={},d.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.message_type=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.dropped_reason=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.queue_name=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},d.prototype.write=function(e){e.writeStructBegin("MessengerRequest"),null!==this.message_type&&void 0!==this.message_type&&(e.writeFieldBegin("message_type",s.Type.STRING,1),e.writeString(this.message_type),e.writeFieldEnd()),null!==this.dropped_reason&&void 0!==this.dropped_reason&&(e.writeFieldBegin("dropped_reason",s.Type.STRING,2),e.writeString(this.dropped_reason),e.writeFieldEnd()),null!==this.queue_name&&void 0!==this.queue_name&&(e.writeFieldBegin("queue_name",s.Type.STRING,3),e.writeString(this.queue_name),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var o=e.exports.NotificationRequest=function(e){this.message_id=null,this.status=null,this.platform=null,this.failure_reason=null,this.source_queue_name=null,this.recipient_app_name=null,this.recipient_device_id=null,e&&(void 0!==e.message_id&&null!==e.message_id&&(this.message_id=e.message_id),void 0!==e.status&&null!==e.status&&(this.status=e.status),void 0!==e.platform&&null!==e.platform&&(this.platform=e.platform),void 0!==e.failure_reason&&null!==e.failure_reason&&(this.failure_reason=e.failure_reason),void 0!==e.source_queue_name&&null!==e.source_queue_name&&(this.source_queue_name=e.source_queue_name),void 0!==e.recipient_app_name&&null!==e.recipient_app_name&&(this.recipient_app_name=e.recipient_app_name),void 0!==e.recipient_device_id&&null!==e.recipient_device_id&&(this.recipient_device_id=e.recipient_device_id))};o.prototype={},o.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.message_id=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.status=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.platform=e.readString():e.skip(t);break;case 4:t==s.Type.STRING?this.failure_reason=e.readString():e.skip(t);break;case 5:t==s.Type.STRING?this.source_queue_name=e.readString():e.skip(t);break;case 6:t==s.Type.STRING?this.recipient_app_name=e.readString():e.skip(t);break;case 7:t==s.Type.STRING?this.recipient_device_id=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},o.prototype.write=function(e){e.writeStructBegin("NotificationRequest"),null!==this.message_id&&void 0!==this.message_id&&(e.writeFieldBegin("message_id",s.Type.STRING,1),e.writeString(this.message_id),e.writeFieldEnd()),null!==this.status&&void 0!==this.status&&(e.writeFieldBegin("status",s.Type.STRING,2),e.writeString(this.status),e.writeFieldEnd()),null!==this.platform&&void 0!==this.platform&&(e.writeFieldBegin("platform",s.Type.STRING,3),e.writeString(this.platform),e.writeFieldEnd()),null!==this.failure_reason&&void 0!==this.failure_reason&&(e.writeFieldBegin("failure_reason",s.Type.STRING,4),e.writeString(this.failure_reason),e.writeFieldEnd()),null!==this.source_queue_name&&void 0!==this.source_queue_name&&(e.writeFieldBegin("source_queue_name",s.Type.STRING,5),e.writeString(this.source_queue_name),e.writeFieldEnd()),null!==this.recipient_app_name&&void 0!==this.recipient_app_name&&(e.writeFieldBegin("recipient_app_name",s.Type.STRING,6),e.writeString(this.recipient_app_name),e.writeFieldEnd()),null!==this.recipient_device_id&&void 0!==this.recipient_device_id&&(e.writeFieldBegin("recipient_device_id",s.Type.STRING,7),e.writeString(this.recipient_device_id),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/outbound_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.Outbound=function(e){if(this.url=null,e){if(void 0===e.url||null===e.url)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field url is unset!");this.url=e.url}});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.url=e.readString():e.skip(t);break;case 0:e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("Outbound"),null!==this.url&&void 0!==this.url&&(e.writeFieldBegin("url",s.Type.STRING,1),e.writeString(this.url),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/payment_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.Payment=function(e){this.method=null,this.currency=null,this.amount_in_smallest_denom=null,this.default_option=null,this.stored_credit_card_state=null,e&&(void 0!==e.method&&null!==e.method&&(this.method=e.method),void 0!==e.currency&&null!==e.currency&&(this.currency=e.currency),void 0!==e.amount_in_smallest_denom&&null!==e.amount_in_smallest_denom&&(this.amount_in_smallest_denom=e.amount_in_smallest_denom),void 0!==e.default_option&&null!==e.default_option&&(this.default_option=e.default_option),void 0!==e.stored_credit_card_state&&null!==e.stored_credit_card_state&&(this.stored_credit_card_state=e.stored_credit_card_state))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.method=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.currency=e.readString():e.skip(t);break;case 3:t==s.Type.I64?this.amount_in_smallest_denom=e.readI64():e.skip(t);break;case 4:t==s.Type.STRING?this.default_option=e.readString():e.skip(t);break;case 5:t==s.Type.STRING?this.stored_credit_card_state=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("Payment"),null!==this.method&&void 0!==this.method&&(e.writeFieldBegin("method",s.Type.STRING,1),e.writeString(this.method),e.writeFieldEnd()),null!==this.currency&&void 0!==this.currency&&(e.writeFieldBegin("currency",s.Type.STRING,2),e.writeString(this.currency),e.writeFieldEnd()),null!==this.amount_in_smallest_denom&&void 0!==this.amount_in_smallest_denom&&(e.writeFieldBegin("amount_in_smallest_denom",s.Type.I64,3),e.writeI64(this.amount_in_smallest_denom),e.writeFieldEnd()),null!==this.default_option&&void 0!==this.default_option&&(e.writeFieldBegin("default_option",s.Type.STRING,4),e.writeString(this.default_option),e.writeFieldEnd()),null!==this.stored_credit_card_state&&void 0!==this.stored_credit_card_state&&(e.writeFieldBegin("stored_credit_card_state",s.Type.STRING,5),e.writeString(this.stored_credit_card_state),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/popup_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.Popup=function(e){this.id=null,this.button_text=null,this.text=null,e&&(void 0!==e.id&&null!==e.id&&(this.id=e.id),void 0!==e.button_text&&null!==e.button_text&&(this.button_text=e.button_text),void 0!==e.text&&null!==e.text&&(this.text=e.text))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.button_text=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.text=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("Popup"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.button_text&&void 0!==this.button_text&&(e.writeFieldBegin("button_text",s.Type.STRING,2),e.writeString(this.button_text),e.writeFieldEnd()),null!==this.text&&void 0!==this.text&&(e.writeFieldBegin("text",s.Type.STRING,3),e.writeString(this.text),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/post_draft_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.PostDraft=function(e){this.id=null,this.type=null,this.author_id=null,this.created_timestamp=null,this.title_length=null,this.url_length=null,this.body_text_length=null,this.nsfw=null,this.spoiler=null,this.original_content=null,this.flair=null,this.number_rte_images=null,this.number_rte_videos=null,e&&(void 0!==e.id&&null!==e.id&&(this.id=e.id),void 0!==e.type&&null!==e.type&&(this.type=e.type),void 0!==e.author_id&&null!==e.author_id&&(this.author_id=e.author_id),void 0!==e.created_timestamp&&null!==e.created_timestamp&&(this.created_timestamp=e.created_timestamp),void 0!==e.title_length&&null!==e.title_length&&(this.title_length=e.title_length),void 0!==e.url_length&&null!==e.url_length&&(this.url_length=e.url_length),void 0!==e.body_text_length&&null!==e.body_text_length&&(this.body_text_length=e.body_text_length),void 0!==e.nsfw&&null!==e.nsfw&&(this.nsfw=e.nsfw),void 0!==e.spoiler&&null!==e.spoiler&&(this.spoiler=e.spoiler),void 0!==e.original_content&&null!==e.original_content&&(this.original_content=e.original_content),void 0!==e.flair&&null!==e.flair&&(this.flair=e.flair),void 0!==e.number_rte_images&&null!==e.number_rte_images&&(this.number_rte_images=e.number_rte_images),void 0!==e.number_rte_videos&&null!==e.number_rte_videos&&(this.number_rte_videos=e.number_rte_videos))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.type=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.author_id=e.readString():e.skip(t);break;case 4:t==s.Type.I64?this.created_timestamp=e.readI64():e.skip(t);break;case 5:t==s.Type.I32?this.title_length=e.readI32():e.skip(t);break;case 6:t==s.Type.I32?this.url_length=e.readI32():e.skip(t);break;case 7:t==s.Type.I32?this.body_text_length=e.readI32():e.skip(t);break;case 8:t==s.Type.BOOL?this.nsfw=e.readBool():e.skip(t);break;case 9:t==s.Type.BOOL?this.spoiler=e.readBool():e.skip(t);break;case 10:t==s.Type.BOOL?this.original_content=e.readBool():e.skip(t);break;case 11:t==s.Type.STRING?this.flair=e.readString():e.skip(t);break;case 12:t==s.Type.I32?this.number_rte_images=e.readI32():e.skip(t);break;case 13:t==s.Type.I32?this.number_rte_videos=e.readI32():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("PostDraft"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.type&&void 0!==this.type&&(e.writeFieldBegin("type",s.Type.STRING,2),e.writeString(this.type),e.writeFieldEnd()),null!==this.author_id&&void 0!==this.author_id&&(e.writeFieldBegin("author_id",s.Type.STRING,3),e.writeString(this.author_id),e.writeFieldEnd()),null!==this.created_timestamp&&void 0!==this.created_timestamp&&(e.writeFieldBegin("created_timestamp",s.Type.I64,4),e.writeI64(this.created_timestamp),e.writeFieldEnd()),null!==this.title_length&&void 0!==this.title_length&&(e.writeFieldBegin("title_length",s.Type.I32,5),e.writeI32(this.title_length),e.writeFieldEnd()),null!==this.url_length&&void 0!==this.url_length&&(e.writeFieldBegin("url_length",s.Type.I32,6),e.writeI32(this.url_length),e.writeFieldEnd()),null!==this.body_text_length&&void 0!==this.body_text_length&&(e.writeFieldBegin("body_text_length",s.Type.I32,7),e.writeI32(this.body_text_length),e.writeFieldEnd()),null!==this.nsfw&&void 0!==this.nsfw&&(e.writeFieldBegin("nsfw",s.Type.BOOL,8),e.writeBool(this.nsfw),e.writeFieldEnd()),null!==this.spoiler&&void 0!==this.spoiler&&(e.writeFieldBegin("spoiler",s.Type.BOOL,9),e.writeBool(this.spoiler),e.writeFieldEnd()),null!==this.original_content&&void 0!==this.original_content&&(e.writeFieldBegin("original_content",s.Type.BOOL,10),e.writeBool(this.original_content),e.writeFieldEnd()),null!==this.flair&&void 0!==this.flair&&(e.writeFieldBegin("flair",s.Type.STRING,11),e.writeString(this.flair),e.writeFieldEnd()),null!==this.number_rte_images&&void 0!==this.number_rte_images&&(e.writeFieldBegin("number_rte_images",s.Type.I32,12),e.writeI32(this.number_rte_images),e.writeFieldEnd()),null!==this.number_rte_videos&&void 0!==this.number_rte_videos&&(e.writeFieldBegin("number_rte_videos",s.Type.I32,13),e.writeI32(this.number_rte_videos),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/postflair_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.PostFlair=function(e){this.id=null,this.title=null,e&&(void 0!==e.id&&null!==e.id&&(this.id=e.id),void 0!==e.title&&null!==e.title&&(this.title=e.title))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.title=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("PostFlair"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.title&&void 0!==this.title&&(e.writeFieldBegin("title",s.Type.STRING,2),e.writeString(this.title),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/relevance_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,e.exports={},e.exports.RelevanceModel=function(e){this.number_max_recommendations=null,this.feature_blob=null,this.result_blob=null,this.result_duration=null,this.version=null,this.family=null,this.identifier=null,e&&(void 0!==e.number_max_recommendations&&null!==e.number_max_recommendations&&(this.number_max_recommendations=e.number_max_recommendations),void 0!==e.feature_blob&&null!==e.feature_blob&&(this.feature_blob=e.feature_blob),void 0!==e.result_blob&&null!==e.result_blob&&(this.result_blob=e.result_blob),void 0!==e.result_duration&&null!==e.result_duration&&(this.result_duration=e.result_duration),void 0!==e.version&&null!==e.version&&(this.version=e.version),void 0!==e.family&&null!==e.family&&(this.family=e.family),void 0!==e.identifier&&null!==e.identifier&&(this.identifier=e.identifier))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 3:t==s.Type.I32?this.number_max_recommendations=e.readI32():e.skip(t);break;case 5:t==s.Type.STRING?this.feature_blob=e.readString():e.skip(t);break;case 6:t==s.Type.STRING?this.result_blob=e.readString():e.skip(t);break;case 7:t==s.Type.I64?this.result_duration=e.readI64():e.skip(t);break;case 9:t==s.Type.STRING?this.version=e.readString():e.skip(t);break;case 10:t==s.Type.STRING?this.family=e.readString():e.skip(t);break;case 11:t==s.Type.STRING?this.identifier=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("RelevanceModel"),null!==this.number_max_recommendations&&void 0!==this.number_max_recommendations&&(e.writeFieldBegin("number_max_recommendations",s.Type.I32,3),e.writeI32(this.number_max_recommendations),e.writeFieldEnd()),null!==this.feature_blob&&void 0!==this.feature_blob&&(e.writeFieldBegin("feature_blob",s.Type.STRING,5),e.writeString(this.feature_blob),e.writeFieldEnd()),null!==this.result_blob&&void 0!==this.result_blob&&(e.writeFieldBegin("result_blob",s.Type.STRING,6),e.writeString(this.result_blob),e.writeFieldEnd()),null!==this.result_duration&&void 0!==this.result_duration&&(e.writeFieldBegin("result_duration",s.Type.I64,7),e.writeI64(this.result_duration),e.writeFieldEnd()),null!==this.version&&void 0!==this.version&&(e.writeFieldBegin("version",s.Type.STRING,9),e.writeString(this.version),e.writeFieldEnd()),null!==this.family&&void 0!==this.family&&(e.writeFieldBegin("family",s.Type.STRING,10),e.writeString(this.family),e.writeFieldEnd()),null!==this.identifier&&void 0!==this.identifier&&(e.writeFieldBegin("identifier",s.Type.STRING,11),e.writeString(this.identifier),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/report_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.Report=function(e){this.reason_code=null,e&&void 0!==e.reason_code&&null!==e.reason_code&&(this.reason_code=e.reason_code)});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.reason_code=e.readString():e.skip(t);break;case 0:e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("Report"),null!==this.reason_code&&void 0!==this.reason_code&&(e.writeFieldBegin("reason_code",s.Type.STRING,1),e.writeString(this.reason_code),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/request_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.Request=function(e){this.user_agent=null,this.domain=null,this.base_url=null,this.client_ip=null,this.known_bot=null,this.header_signature=null,this.cookies_present=null,this.accept_encoding=null,this.accept_language=null,this.reddaid=null,this.google_aaid=null,this.amazon_aid=null,this.apple_ios_aid=null,this.isp_organization=null,this.accept_language_header=null,e&&(void 0!==e.user_agent&&null!==e.user_agent&&(this.user_agent=e.user_agent),void 0!==e.domain&&null!==e.domain&&(this.domain=e.domain),void 0!==e.base_url&&null!==e.base_url&&(this.base_url=e.base_url),void 0!==e.client_ip&&null!==e.client_ip&&(this.client_ip=e.client_ip),void 0!==e.known_bot&&null!==e.known_bot&&(this.known_bot=e.known_bot),void 0!==e.header_signature&&null!==e.header_signature&&(this.header_signature=e.header_signature),void 0!==e.cookies_present&&null!==e.cookies_present&&(this.cookies_present=e.cookies_present),void 0!==e.accept_encoding&&null!==e.accept_encoding&&(this.accept_encoding=e.accept_encoding),void 0!==e.accept_language&&null!==e.accept_language&&(this.accept_language=e.accept_language),void 0!==e.reddaid&&null!==e.reddaid&&(this.reddaid=e.reddaid),void 0!==e.google_aaid&&null!==e.google_aaid&&(this.google_aaid=e.google_aaid),void 0!==e.amazon_aid&&null!==e.amazon_aid&&(this.amazon_aid=e.amazon_aid),void 0!==e.apple_ios_aid&&null!==e.apple_ios_aid&&(this.apple_ios_aid=e.apple_ios_aid),void 0!==e.isp_organization&&null!==e.isp_organization&&(this.isp_organization=e.isp_organization),void 0!==e.accept_language_header&&null!==e.accept_language_header&&(this.accept_language_header=e.accept_language_header))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.user_agent=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.domain=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.base_url=e.readString():e.skip(t);break;case 4:t==s.Type.STRING?this.client_ip=e.readString():e.skip(t);break;case 5:t==s.Type.STRING?this.known_bot=e.readString():e.skip(t);break;case 6:t==s.Type.STRING?this.header_signature=e.readString():e.skip(t);break;case 7:t==s.Type.BOOL?this.cookies_present=e.readBool():e.skip(t);break;case 8:t==s.Type.BOOL?this.accept_encoding=e.readBool():e.skip(t);break;case 9:t==s.Type.BOOL?this.accept_language=e.readBool():e.skip(t);break;case 10:t==s.Type.STRING?this.reddaid=e.readString():e.skip(t);break;case 11:t==s.Type.STRING?this.google_aaid=e.readString():e.skip(t);break;case 12:t==s.Type.STRING?this.amazon_aid=e.readString():e.skip(t);break;case 13:t==s.Type.STRING?this.apple_ios_aid=e.readString():e.skip(t);break;case 14:t==s.Type.STRING?this.isp_organization=e.readString():e.skip(t);break;case 15:t==s.Type.STRING?this.accept_language_header=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("Request"),null!==this.user_agent&&void 0!==this.user_agent&&(e.writeFieldBegin("user_agent",s.Type.STRING,1),e.writeString(this.user_agent),e.writeFieldEnd()),null!==this.domain&&void 0!==this.domain&&(e.writeFieldBegin("domain",s.Type.STRING,2),e.writeString(this.domain),e.writeFieldEnd()),null!==this.base_url&&void 0!==this.base_url&&(e.writeFieldBegin("base_url",s.Type.STRING,3),e.writeString(this.base_url),e.writeFieldEnd()),null!==this.client_ip&&void 0!==this.client_ip&&(e.writeFieldBegin("client_ip",s.Type.STRING,4),e.writeString(this.client_ip),e.writeFieldEnd()),null!==this.known_bot&&void 0!==this.known_bot&&(e.writeFieldBegin("known_bot",s.Type.STRING,5),e.writeString(this.known_bot),e.writeFieldEnd()),null!==this.header_signature&&void 0!==this.header_signature&&(e.writeFieldBegin("header_signature",s.Type.STRING,6),e.writeString(this.header_signature),e.writeFieldEnd()),null!==this.cookies_present&&void 0!==this.cookies_present&&(e.writeFieldBegin("cookies_present",s.Type.BOOL,7),e.writeBool(this.cookies_present),e.writeFieldEnd()),null!==this.accept_encoding&&void 0!==this.accept_encoding&&(e.writeFieldBegin("accept_encoding",s.Type.BOOL,8),e.writeBool(this.accept_encoding),e.writeFieldEnd()),null!==this.accept_language&&void 0!==this.accept_language&&(e.writeFieldBegin("accept_language",s.Type.BOOL,9),e.writeBool(this.accept_language),e.writeFieldEnd()),null!==this.reddaid&&void 0!==this.reddaid&&(e.writeFieldBegin("reddaid",s.Type.STRING,10),e.writeString(this.reddaid),e.writeFieldEnd()),null!==this.google_aaid&&void 0!==this.google_aaid&&(e.writeFieldBegin("google_aaid",s.Type.STRING,11),e.writeString(this.google_aaid),e.writeFieldEnd()),null!==this.amazon_aid&&void 0!==this.amazon_aid&&(e.writeFieldBegin("amazon_aid",s.Type.STRING,12),e.writeString(this.amazon_aid),e.writeFieldEnd()),null!==this.apple_ios_aid&&void 0!==this.apple_ios_aid&&(e.writeFieldBegin("apple_ios_aid",s.Type.STRING,13),e.writeString(this.apple_ios_aid),e.writeFieldEnd()),null!==this.isp_organization&&void 0!==this.isp_organization&&(e.writeFieldBegin("isp_organization",s.Type.STRING,14),e.writeString(this.isp_organization),e.writeFieldEnd()),null!==this.accept_language_header&&void 0!==this.accept_language_header&&(e.writeFieldBegin("accept_language_header",s.Type.STRING,15),e.writeString(this.accept_language_header),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var d=e.exports.Referrer=function(e){this.domain=null,this.url=null,this.element=null,e&&(void 0!==e.domain&&null!==e.domain&&(this.domain=e.domain),void 0!==e.url&&null!==e.url&&(this.url=e.url),void 0!==e.element&&null!==e.element&&(this.element=e.element))};d.prototype={},d.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.domain=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.url=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.element=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},d.prototype.write=function(e){e.writeStructBegin("Referrer"),null!==this.domain&&void 0!==this.domain&&(e.writeFieldBegin("domain",s.Type.STRING,1),e.writeString(this.domain),e.writeFieldEnd()),null!==this.url&&void 0!==this.url&&(e.writeFieldBegin("url",s.Type.STRING,2),e.writeString(this.url),e.writeFieldEnd()),null!==this.element&&void 0!==this.element&&(e.writeFieldBegin("element",s.Type.STRING,3),e.writeString(this.element),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var o=e.exports.Oauth=function(e){this.client_app_type=null,this.client_name=null,this.client_id=null,e&&(void 0!==e.client_app_type&&null!==e.client_app_type&&(this.client_app_type=e.client_app_type),void 0!==e.client_name&&null!==e.client_name&&(this.client_name=e.client_name),void 0!==e.client_id&&null!==e.client_id&&(this.client_id=e.client_id))};o.prototype={},o.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.client_app_type=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.client_name=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.client_id=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},o.prototype.write=function(e){e.writeStructBegin("Oauth"),null!==this.client_app_type&&void 0!==this.client_app_type&&(e.writeFieldBegin("client_app_type",s.Type.STRING,1),e.writeString(this.client_app_type),e.writeFieldEnd()),null!==this.client_name&&void 0!==this.client_name&&(e.writeFieldBegin("client_name",s.Type.STRING,2),e.writeString(this.client_name),e.writeFieldEnd()),null!==this.client_id&&void 0!==this.client_id&&(e.writeFieldBegin("client_id",s.Type.STRING,3),e.writeString(this.client_id),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var l=e.exports.Api=function(e){this.name=null,this.address=null,this.endpoint=null,e&&(void 0!==e.name&&null!==e.name&&(this.name=e.name),void 0!==e.address&&null!==e.address&&(this.address=e.address),void 0!==e.endpoint&&null!==e.endpoint&&(this.endpoint=e.endpoint))};l.prototype={},l.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.name=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.address=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.endpoint=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},l.prototype.write=function(e){e.writeStructBegin("Api"),null!==this.name&&void 0!==this.name&&(e.writeFieldBegin("name",s.Type.STRING,1),e.writeString(this.name),e.writeFieldEnd()),null!==this.address&&void 0!==this.address&&(e.writeFieldBegin("address",s.Type.STRING,2),e.writeString(this.address),e.writeFieldEnd()),null!==this.endpoint&&void 0!==this.endpoint&&(e.writeFieldBegin("endpoint",s.Type.STRING,3),e.writeString(this.endpoint),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var a=e.exports.ApiResponse=function(e){this.response_code=null,this.error_name=null,this.error=null,this.content=null,e&&(void 0!==e.response_code&&null!==e.response_code&&(this.response_code=e.response_code),void 0!==e.error_name&&null!==e.error_name&&(this.error_name=e.error_name),void 0!==e.error&&null!==e.error&&(this.error=e.error),void 0!==e.content&&null!==e.content&&(this.content=e.content))};a.prototype={},a.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.I32?this.response_code=e.readI32():e.skip(t);break;case 2:t==s.Type.STRING?this.error_name=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.error=e.readString():e.skip(t);break;case 4:t==s.Type.STRING?this.content=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},a.prototype.write=function(e){e.writeStructBegin("ApiResponse"),null!==this.response_code&&void 0!==this.response_code&&(e.writeFieldBegin("response_code",s.Type.I32,1),e.writeI32(this.response_code),e.writeFieldEnd()),null!==this.error_name&&void 0!==this.error_name&&(e.writeFieldBegin("error_name",s.Type.STRING,2),e.writeString(this.error_name),e.writeFieldEnd()),null!==this.error&&void 0!==this.error&&(e.writeFieldBegin("error",s.Type.STRING,3),e.writeString(this.error),e.writeFieldEnd()),null!==this.content&&void 0!==this.content&&(e.writeFieldBegin("content",s.Type.STRING,4),e.writeString(this.content),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var p=e.exports.Zipkin=function(e){this.trace_id=null,e&&void 0!==e.trace_id&&null!==e.trace_id&&(this.trace_id=e.trace_id)};p.prototype={},p.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.trace_id=e.readString():e.skip(t);break;case 0:e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},p.prototype.write=function(e){e.writeStructBegin("Zipkin"),null!==this.trace_id&&void 0!==this.trace_id&&(e.writeFieldBegin("trace_id",s.Type.STRING,1),e.writeString(this.trace_id),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/search_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.Search=function(e){this.query=null,this.sort=null,this.range=null,this.typeahead_active=null,this.subreddit_id=null,this.subreddit_name=null,this.post_flair_name=null,this.meta_flair_id=null,this.meta_flair_name=null,this.origin_page_type=null,this.origin_element=null,this.number_links=null,this.links=null,this.nsfw_reason=null,this.structure_type=null,e&&(void 0!==e.query&&null!==e.query&&(this.query=e.query),void 0!==e.sort&&null!==e.sort&&(this.sort=e.sort),void 0!==e.range&&null!==e.range&&(this.range=e.range),void 0!==e.typeahead_active&&null!==e.typeahead_active&&(this.typeahead_active=e.typeahead_active),void 0!==e.subreddit_id&&null!==e.subreddit_id&&(this.subreddit_id=e.subreddit_id),void 0!==e.subreddit_name&&null!==e.subreddit_name&&(this.subreddit_name=e.subreddit_name),void 0!==e.post_flair_name&&null!==e.post_flair_name&&(this.post_flair_name=e.post_flair_name),void 0!==e.meta_flair_id&&null!==e.meta_flair_id&&(this.meta_flair_id=e.meta_flair_id),void 0!==e.meta_flair_name&&null!==e.meta_flair_name&&(this.meta_flair_name=e.meta_flair_name),void 0!==e.origin_page_type&&null!==e.origin_page_type&&(this.origin_page_type=e.origin_page_type),void 0!==e.origin_element&&null!==e.origin_element&&(this.origin_element=e.origin_element),void 0!==e.number_links&&null!==e.number_links&&(this.number_links=e.number_links),void 0!==e.links&&null!==e.links&&(this.links=s.copyList(e.links,[null])),void 0!==e.nsfw_reason&&null!==e.nsfw_reason&&(this.nsfw_reason=e.nsfw_reason),void 0!==e.structure_type&&null!==e.structure_type&&(this.structure_type=e.structure_type))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.query=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.sort=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.range=e.readString():e.skip(t);break;case 4:t==s.Type.BOOL?this.typeahead_active=e.readBool():e.skip(t);break;case 5:t==s.Type.STRING?this.subreddit_id=e.readString():e.skip(t);break;case 6:t==s.Type.STRING?this.subreddit_name=e.readString():e.skip(t);break;case 7:t==s.Type.STRING?this.post_flair_name=e.readString():e.skip(t);break;case 8:t==s.Type.STRING?this.meta_flair_id=e.readString():e.skip(t);break;case 9:t==s.Type.STRING?this.meta_flair_name=e.readString():e.skip(t);break;case 10:t==s.Type.STRING?this.origin_page_type=e.readString():e.skip(t);break;case 11:t==s.Type.STRING?this.origin_element=e.readString():e.skip(t);break;case 12:t==s.Type.I64?this.number_links=e.readI64():e.skip(t);break;case 13:if(t==s.Type.LIST){var n,d;this.links=[];(d=e.readListBegin()).etype,n=d.size;for(var o=0;o<n;++o){var l;l=e.readString(),this.links.push(l)}e.readListEnd()}else e.skip(t);break;case 14:t==s.Type.STRING?this.nsfw_reason=e.readString():e.skip(t);break;case 15:t==s.Type.STRING?this.structure_type=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){if(e.writeStructBegin("Search"),null!==this.query&&void 0!==this.query&&(e.writeFieldBegin("query",s.Type.STRING,1),e.writeString(this.query),e.writeFieldEnd()),null!==this.sort&&void 0!==this.sort&&(e.writeFieldBegin("sort",s.Type.STRING,2),e.writeString(this.sort),e.writeFieldEnd()),null!==this.range&&void 0!==this.range&&(e.writeFieldBegin("range",s.Type.STRING,3),e.writeString(this.range),e.writeFieldEnd()),null!==this.typeahead_active&&void 0!==this.typeahead_active&&(e.writeFieldBegin("typeahead_active",s.Type.BOOL,4),e.writeBool(this.typeahead_active),e.writeFieldEnd()),null!==this.subreddit_id&&void 0!==this.subreddit_id&&(e.writeFieldBegin("subreddit_id",s.Type.STRING,5),e.writeString(this.subreddit_id),e.writeFieldEnd()),null!==this.subreddit_name&&void 0!==this.subreddit_name&&(e.writeFieldBegin("subreddit_name",s.Type.STRING,6),e.writeString(this.subreddit_name),e.writeFieldEnd()),null!==this.post_flair_name&&void 0!==this.post_flair_name&&(e.writeFieldBegin("post_flair_name",s.Type.STRING,7),e.writeString(this.post_flair_name),e.writeFieldEnd()),null!==this.meta_flair_id&&void 0!==this.meta_flair_id&&(e.writeFieldBegin("meta_flair_id",s.Type.STRING,8),e.writeString(this.meta_flair_id),e.writeFieldEnd()),null!==this.meta_flair_name&&void 0!==this.meta_flair_name&&(e.writeFieldBegin("meta_flair_name",s.Type.STRING,9),e.writeString(this.meta_flair_name),e.writeFieldEnd()),null!==this.origin_page_type&&void 0!==this.origin_page_type&&(e.writeFieldBegin("origin_page_type",s.Type.STRING,10),e.writeString(this.origin_page_type),e.writeFieldEnd()),null!==this.origin_element&&void 0!==this.origin_element&&(e.writeFieldBegin("origin_element",s.Type.STRING,11),e.writeString(this.origin_element),e.writeFieldEnd()),null!==this.number_links&&void 0!==this.number_links&&(e.writeFieldBegin("number_links",s.Type.I64,12),e.writeI64(this.number_links),e.writeFieldEnd()),null!==this.links&&void 0!==this.links){for(var i in e.writeFieldBegin("links",s.Type.LIST,13),e.writeListBegin(s.Type.STRING,this.links.length),this.links)this.links.hasOwnProperty(i)&&(i=this.links[i],e.writeString(i));e.writeListEnd(),e.writeFieldEnd()}null!==this.nsfw_reason&&void 0!==this.nsfw_reason&&(e.writeFieldBegin("nsfw_reason",s.Type.STRING,14),e.writeString(this.nsfw_reason),e.writeFieldEnd()),null!==this.structure_type&&void 0!==this.structure_type&&(e.writeFieldBegin("structure_type",s.Type.STRING,15),e.writeString(this.structure_type),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/security_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.TwoFactorAuth=function(e){this.device_previous_remaining_backup_codes=null,this.device_name=null,this.device_exists=null,this.device_algorithm=null,this.device_backup_codes_remaining=null,this.backup_code_used=null,this.otp_embedded_in_password=null,e&&(void 0!==e.device_previous_remaining_backup_codes&&null!==e.device_previous_remaining_backup_codes&&(this.device_previous_remaining_backup_codes=e.device_previous_remaining_backup_codes),void 0!==e.device_name&&null!==e.device_name&&(this.device_name=e.device_name),void 0!==e.device_exists&&null!==e.device_exists&&(this.device_exists=e.device_exists),void 0!==e.device_algorithm&&null!==e.device_algorithm&&(this.device_algorithm=e.device_algorithm),void 0!==e.device_backup_codes_remaining&&null!==e.device_backup_codes_remaining&&(this.device_backup_codes_remaining=e.device_backup_codes_remaining),void 0!==e.backup_code_used&&null!==e.backup_code_used&&(this.backup_code_used=e.backup_code_used),void 0!==e.otp_embedded_in_password&&null!==e.otp_embedded_in_password&&(this.otp_embedded_in_password=e.otp_embedded_in_password))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.I64?this.device_previous_remaining_backup_codes=e.readI64():e.skip(t);break;case 2:t==s.Type.STRING?this.device_name=e.readString():e.skip(t);break;case 3:t==s.Type.BOOL?this.device_exists=e.readBool():e.skip(t);break;case 4:t==s.Type.STRING?this.device_algorithm=e.readString():e.skip(t);break;case 5:t==s.Type.I32?this.device_backup_codes_remaining=e.readI32():e.skip(t);break;case 6:t==s.Type.BOOL?this.backup_code_used=e.readBool():e.skip(t);break;case 7:t==s.Type.BOOL?this.otp_embedded_in_password=e.readBool():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("TwoFactorAuth"),null!==this.device_previous_remaining_backup_codes&&void 0!==this.device_previous_remaining_backup_codes&&(e.writeFieldBegin("device_previous_remaining_backup_codes",s.Type.I64,1),e.writeI64(this.device_previous_remaining_backup_codes),e.writeFieldEnd()),null!==this.device_name&&void 0!==this.device_name&&(e.writeFieldBegin("device_name",s.Type.STRING,2),e.writeString(this.device_name),e.writeFieldEnd()),null!==this.device_exists&&void 0!==this.device_exists&&(e.writeFieldBegin("device_exists",s.Type.BOOL,3),e.writeBool(this.device_exists),e.writeFieldEnd()),null!==this.device_algorithm&&void 0!==this.device_algorithm&&(e.writeFieldBegin("device_algorithm",s.Type.STRING,4),e.writeString(this.device_algorithm),e.writeFieldEnd()),null!==this.device_backup_codes_remaining&&void 0!==this.device_backup_codes_remaining&&(e.writeFieldBegin("device_backup_codes_remaining",s.Type.I32,5),e.writeI32(this.device_backup_codes_remaining),e.writeFieldEnd()),null!==this.backup_code_used&&void 0!==this.backup_code_used&&(e.writeFieldBegin("backup_code_used",s.Type.BOOL,6),e.writeBool(this.backup_code_used),e.writeFieldEnd()),null!==this.otp_embedded_in_password&&void 0!==this.otp_embedded_in_password&&(e.writeFieldBegin("otp_embedded_in_password",s.Type.BOOL,7),e.writeBool(this.otp_embedded_in_password),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/session_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.Session=function(e){if(this.id=null,this.referrer_url=null,this.referrer_domain=null,this.version=null,this.type=null,this.created_timestamp=null,e){if(void 0===e.id||null===e.id)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field id is unset!");this.id=e.id,void 0!==e.referrer_url&&null!==e.referrer_url&&(this.referrer_url=e.referrer_url),void 0!==e.referrer_domain&&null!==e.referrer_domain&&(this.referrer_domain=e.referrer_domain),void 0!==e.version&&null!==e.version&&(this.version=e.version),void 0!==e.type&&null!==e.type&&(this.type=e.type),void 0!==e.created_timestamp&&null!==e.created_timestamp&&(this.created_timestamp=e.created_timestamp)}});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.referrer_url=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.referrer_domain=e.readString():e.skip(t);break;case 4:t==s.Type.STRING?this.version=e.readString():e.skip(t);break;case 5:t==s.Type.STRING?this.type=e.readString():e.skip(t);break;case 6:t==s.Type.I64?this.created_timestamp=e.readI64():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("Session"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.referrer_url&&void 0!==this.referrer_url&&(e.writeFieldBegin("referrer_url",s.Type.STRING,2),e.writeString(this.referrer_url),e.writeFieldEnd()),null!==this.referrer_domain&&void 0!==this.referrer_domain&&(e.writeFieldBegin("referrer_domain",s.Type.STRING,3),e.writeString(this.referrer_domain),e.writeFieldEnd()),null!==this.version&&void 0!==this.version&&(e.writeFieldBegin("version",s.Type.STRING,4),e.writeString(this.version),e.writeFieldEnd()),null!==this.type&&void 0!==this.type&&(e.writeFieldBegin("type",s.Type.STRING,5),e.writeString(this.type),e.writeFieldEnd()),null!==this.created_timestamp&&void 0!==this.created_timestamp&&(e.writeFieldBegin("created_timestamp",s.Type.I64,6),e.writeI64(this.created_timestamp),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/setting_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.Setting=function(e){if(this.value=null,this.old_value=null,this.scope=null,e){if(void 0===e.value||null===e.value)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field value is unset!");this.value=e.value,void 0!==e.old_value&&null!==e.old_value&&(this.old_value=e.old_value),void 0!==e.scope&&null!==e.scope&&(this.scope=e.scope)}});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.value=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.old_value=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.scope=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("Setting"),null!==this.value&&void 0!==this.value&&(e.writeFieldBegin("value",s.Type.STRING,1),e.writeString(this.value),e.writeFieldEnd()),null!==this.old_value&&void 0!==this.old_value&&(e.writeFieldBegin("old_value",s.Type.STRING,2),e.writeString(this.old_value),e.writeFieldEnd()),null!==this.scope&&void 0!==this.scope&&(e.writeFieldBegin("scope",s.Type.STRING,3),e.writeString(this.scope),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/subreddit_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.Subreddit=function(e){this.id=null,this.name=null,this.category_name=null,this.whitelist_status=null,this.access_type=null,this.quarantined=null,this.nsfw=null,this.topic_tag_ids=null,this.topic_tag_contents=null,this.topic_tag_types=null,e&&(void 0!==e.id&&null!==e.id&&(this.id=e.id),void 0!==e.name&&null!==e.name&&(this.name=e.name),void 0!==e.category_name&&null!==e.category_name&&(this.category_name=e.category_name),void 0!==e.whitelist_status&&null!==e.whitelist_status&&(this.whitelist_status=e.whitelist_status),void 0!==e.access_type&&null!==e.access_type&&(this.access_type=e.access_type),void 0!==e.quarantined&&null!==e.quarantined&&(this.quarantined=e.quarantined),void 0!==e.nsfw&&null!==e.nsfw&&(this.nsfw=e.nsfw),void 0!==e.topic_tag_ids&&null!==e.topic_tag_ids&&(this.topic_tag_ids=s.copyList(e.topic_tag_ids,[null])),void 0!==e.topic_tag_contents&&null!==e.topic_tag_contents&&(this.topic_tag_contents=s.copyList(e.topic_tag_contents,[null])),void 0!==e.topic_tag_types&&null!==e.topic_tag_types&&(this.topic_tag_types=s.copyList(e.topic_tag_types,[null])))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.name=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.category_name=e.readString():e.skip(t);break;case 4:t==s.Type.STRING?this.whitelist_status=e.readString():e.skip(t);break;case 5:t==s.Type.STRING?this.access_type=e.readString():e.skip(t);break;case 6:t==s.Type.BOOL?this.quarantined=e.readBool():e.skip(t);break;case 7:t==s.Type.BOOL?this.nsfw=e.readBool():e.skip(t);break;case 8:if(t==s.Type.LIST){var n,d;this.topic_tag_ids=[];(d=e.readListBegin()).etype,n=d.size;for(var o=0;o<n;++o){var l;l=e.readString(),this.topic_tag_ids.push(l)}e.readListEnd()}else e.skip(t);break;case 9:if(t==s.Type.LIST){var a,p;this.topic_tag_contents=[];(p=e.readListBegin()).etype,a=p.size;for(var u=0;u<a;++u){var h;h=e.readString(),this.topic_tag_contents.push(h)}e.readListEnd()}else e.skip(t);break;case 10:if(t==s.Type.LIST){var _,c;this.topic_tag_types=[];(c=e.readListBegin()).etype,_=c.size;for(var m=0;m<_;++m){var y;y=e.readString(),this.topic_tag_types.push(y)}e.readListEnd()}else e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){if(e.writeStructBegin("Subreddit"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.name&&void 0!==this.name&&(e.writeFieldBegin("name",s.Type.STRING,2),e.writeString(this.name),e.writeFieldEnd()),null!==this.category_name&&void 0!==this.category_name&&(e.writeFieldBegin("category_name",s.Type.STRING,3),e.writeString(this.category_name),e.writeFieldEnd()),null!==this.whitelist_status&&void 0!==this.whitelist_status&&(e.writeFieldBegin("whitelist_status",s.Type.STRING,4),e.writeString(this.whitelist_status),e.writeFieldEnd()),null!==this.access_type&&void 0!==this.access_type&&(e.writeFieldBegin("access_type",s.Type.STRING,5),e.writeString(this.access_type),e.writeFieldEnd()),null!==this.quarantined&&void 0!==this.quarantined&&(e.writeFieldBegin("quarantined",s.Type.BOOL,6),e.writeBool(this.quarantined),e.writeFieldEnd()),null!==this.nsfw&&void 0!==this.nsfw&&(e.writeFieldBegin("nsfw",s.Type.BOOL,7),e.writeBool(this.nsfw),e.writeFieldEnd()),null!==this.topic_tag_ids&&void 0!==this.topic_tag_ids){for(var i in e.writeFieldBegin("topic_tag_ids",s.Type.LIST,8),e.writeListBegin(s.Type.STRING,this.topic_tag_ids.length),this.topic_tag_ids)this.topic_tag_ids.hasOwnProperty(i)&&(i=this.topic_tag_ids[i],e.writeString(i));e.writeListEnd(),e.writeFieldEnd()}if(null!==this.topic_tag_contents&&void 0!==this.topic_tag_contents){for(var t in e.writeFieldBegin("topic_tag_contents",s.Type.LIST,9),e.writeListBegin(s.Type.STRING,this.topic_tag_contents.length),this.topic_tag_contents)this.topic_tag_contents.hasOwnProperty(t)&&(t=this.topic_tag_contents[t],e.writeString(t));e.writeListEnd(),e.writeFieldEnd()}if(null!==this.topic_tag_types&&void 0!==this.topic_tag_types){for(var r in e.writeFieldBegin("topic_tag_types",s.Type.LIST,10),e.writeListBegin(s.Type.STRING,this.topic_tag_types.length),this.topic_tag_types)this.topic_tag_types.hasOwnProperty(r)&&(r=this.topic_tag_types[r],e.writeString(r));e.writeListEnd(),e.writeFieldEnd()}e.writeFieldStop(),e.writeStructEnd()};var d=e.exports.Profile=function(e){if(this.id=null,this.name=null,this.type=null,this.display_name=null,this.about=null,this.avatar_url=null,this.cover_url=null,this.nsfw=null,this.content_visible=null,this.communities_visible=null,e){if(void 0===e.id||null===e.id)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field id is unset!");if(this.id=e.id,void 0===e.name||null===e.name)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field name is unset!");this.name=e.name,void 0!==e.type&&null!==e.type&&(this.type=e.type),void 0!==e.display_name&&null!==e.display_name&&(this.display_name=e.display_name),void 0!==e.about&&null!==e.about&&(this.about=e.about),void 0!==e.avatar_url&&null!==e.avatar_url&&(this.avatar_url=e.avatar_url),void 0!==e.cover_url&&null!==e.cover_url&&(this.cover_url=e.cover_url),void 0!==e.nsfw&&null!==e.nsfw&&(this.nsfw=e.nsfw),void 0!==e.content_visible&&null!==e.content_visible&&(this.content_visible=e.content_visible),void 0!==e.communities_visible&&null!==e.communities_visible&&(this.communities_visible=e.communities_visible)}};d.prototype={},d.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.name=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.type=e.readString():e.skip(t);break;case 4:t==s.Type.STRING?this.display_name=e.readString():e.skip(t);break;case 5:t==s.Type.STRING?this.about=e.readString():e.skip(t);break;case 6:t==s.Type.STRING?this.avatar_url=e.readString():e.skip(t);break;case 7:t==s.Type.STRING?this.cover_url=e.readString():e.skip(t);break;case 8:t==s.Type.BOOL?this.nsfw=e.readBool():e.skip(t);break;case 9:t==s.Type.BOOL?this.content_visible=e.readBool():e.skip(t);break;case 11:t==s.Type.BOOL?this.communities_visible=e.readBool():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},d.prototype.write=function(e){e.writeStructBegin("Profile"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.name&&void 0!==this.name&&(e.writeFieldBegin("name",s.Type.STRING,2),e.writeString(this.name),e.writeFieldEnd()),null!==this.type&&void 0!==this.type&&(e.writeFieldBegin("type",s.Type.STRING,3),e.writeString(this.type),e.writeFieldEnd()),null!==this.display_name&&void 0!==this.display_name&&(e.writeFieldBegin("display_name",s.Type.STRING,4),e.writeString(this.display_name),e.writeFieldEnd()),null!==this.about&&void 0!==this.about&&(e.writeFieldBegin("about",s.Type.STRING,5),e.writeString(this.about),e.writeFieldEnd()),null!==this.avatar_url&&void 0!==this.avatar_url&&(e.writeFieldBegin("avatar_url",s.Type.STRING,6),e.writeString(this.avatar_url),e.writeFieldEnd()),null!==this.cover_url&&void 0!==this.cover_url&&(e.writeFieldBegin("cover_url",s.Type.STRING,7),e.writeString(this.cover_url),e.writeFieldEnd()),null!==this.nsfw&&void 0!==this.nsfw&&(e.writeFieldBegin("nsfw",s.Type.BOOL,8),e.writeBool(this.nsfw),e.writeFieldEnd()),null!==this.content_visible&&void 0!==this.content_visible&&(e.writeFieldBegin("content_visible",s.Type.BOOL,9),e.writeBool(this.content_visible),e.writeFieldEnd()),null!==this.communities_visible&&void 0!==this.communities_visible&&(e.writeFieldBegin("communities_visible",s.Type.BOOL,11),e.writeBool(this.communities_visible),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/thirdpartybadge_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.ThirdPartyBadge=function(e){this.id=null,this.title=null,this.target_user_id=null,e&&(void 0!==e.id&&null!==e.id&&(this.id=e.id),void 0!==e.title&&null!==e.title&&(this.title=e.title),void 0!==e.target_user_id&&null!==e.target_user_id&&(this.target_user_id=e.target_user_id))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.title=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.target_user_id=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("ThirdPartyBadge"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.title&&void 0!==this.title&&(e.writeFieldBegin("title",s.Type.STRING,2),e.writeString(this.title),e.writeFieldEnd()),null!==this.target_user_id&&void 0!==this.target_user_id&&(e.writeFieldBegin("target_user_id",s.Type.STRING,3),e.writeString(this.target_user_id),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/ticket_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.Ticket=function(e){if(this.id=null,this.type=null,this.queue_id=null,this.status=null,e){if(void 0===e.id||null===e.id)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field id is unset!");this.id=e.id,void 0!==e.type&&null!==e.type&&(this.type=e.type),void 0!==e.queue_id&&null!==e.queue_id&&(this.queue_id=e.queue_id),void 0!==e.status&&null!==e.status&&(this.status=e.status)}});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.type=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.queue_id=e.readString():e.skip(t);break;case 4:t==s.Type.STRING?this.status=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("Ticket"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.type&&void 0!==this.type&&(e.writeFieldBegin("type",s.Type.STRING,2),e.writeString(this.type),e.writeFieldEnd()),null!==this.queue_id&&void 0!==this.queue_id&&(e.writeFieldBegin("queue_id",s.Type.STRING,3),e.writeString(this.queue_id),e.writeFieldEnd()),null!==this.status&&void 0!==this.status&&(e.writeFieldBegin("status",s.Type.STRING,4),e.writeString(this.status),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/timer_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.DOMTimers=function(e){this.request=null,this.loading=null,this.loaded=null,e&&(void 0!==e.request&&null!==e.request&&(this.request=e.request),void 0!==e.loading&&null!==e.loading&&(this.loading=e.loading),void 0!==e.loaded&&null!==e.loaded&&(this.loaded=e.loaded))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.I64?this.request=e.readI64():e.skip(t);break;case 2:t==s.Type.I64?this.loading=e.readI64():e.skip(t);break;case 3:t==s.Type.I64?this.loaded=e.readI64():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("DOMTimers"),null!==this.request&&void 0!==this.request&&(e.writeFieldBegin("request",s.Type.I64,1),e.writeI64(this.request),e.writeFieldEnd()),null!==this.loading&&void 0!==this.loading&&(e.writeFieldBegin("loading",s.Type.I64,2),e.writeI64(this.loading),e.writeFieldEnd()),null!==this.loaded&&void 0!==this.loaded&&(e.writeFieldBegin("loaded",s.Type.I64,3),e.writeI64(this.loaded),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var d=e.exports.Timer=function(e){this.type=null,this.millis=null,e&&(void 0!==e.type&&null!==e.type&&(this.type=e.type),void 0!==e.millis&&null!==e.millis&&(this.millis=e.millis))};d.prototype={},d.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.type=e.readString():e.skip(t);break;case 2:t==s.Type.I64?this.millis=e.readI64():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},d.prototype.write=function(e){e.writeStructBegin("Timer"),null!==this.type&&void 0!==this.type&&(e.writeFieldBegin("type",s.Type.STRING,1),e.writeString(this.type),e.writeFieldEnd()),null!==this.millis&&void 0!==this.millis&&(e.writeFieldBegin("millis",s.Type.I64,2),e.writeI64(this.millis),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/tooltip_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.Tooltip=function(e){if(this.id=null,this.text=null,e){if(void 0===e.id||null===e.id)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field id is unset!");if(this.id=e.id,void 0===e.text||null===e.text)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field text is unset!");this.text=e.text}});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.text=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("Tooltip"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.text&&void 0!==this.text&&(e.writeFieldBegin("text",s.Type.STRING,2),e.writeString(this.text),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/topic_tag_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.TopicTag=function(e){this.id=null,this.content=null,this.type=null,e&&(void 0!==e.id&&null!==e.id&&(this.id=e.id),void 0!==e.content&&null!==e.content&&(this.content=e.content),void 0!==e.type&&null!==e.type&&(this.type=e.type))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.content=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.type=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("TopicTag"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.content&&void 0!==this.content&&(e.writeFieldBegin("content",s.Type.STRING,2),e.writeString(this.content),e.writeFieldEnd()),null!==this.type&&void 0!==this.type&&(e.writeFieldBegin("type",s.Type.STRING,3),e.writeString(this.type),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/upload_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.Upload=function(e){this.file_size=null,this.category=null,this.optimization_type=null,e&&(void 0!==e.file_size&&null!==e.file_size&&(this.file_size=e.file_size),void 0!==e.category&&null!==e.category&&(this.category=e.category),void 0!==e.optimization_type&&null!==e.optimization_type&&(this.optimization_type=e.optimization_type))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.I64?this.file_size=e.readI64():e.skip(t);break;case 2:t==s.Type.STRING?this.category=e.readString():e.skip(t);break;case 3:t==s.Type.STRING?this.optimization_type=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("Upload"),null!==this.file_size&&void 0!==this.file_size&&(e.writeFieldBegin("file_size",s.Type.I64,1),e.writeI64(this.file_size),e.writeFieldEnd()),null!==this.category&&void 0!==this.category&&(e.writeFieldBegin("category",s.Type.STRING,2),e.writeString(this.category),e.writeFieldEnd()),null!==this.optimization_type&&void 0!==this.optimization_type&&(e.writeFieldBegin("optimization_type",s.Type.STRING,3),e.writeString(this.optimization_type),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/user_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.User=function(e){this.id=null,this.created_timestamp=null,this.logged_in=null,this.cookie_created_timestamp=null,this.has_gold=null,this.suspect=null,this.disenfranchised=null,this.in_timeout=null,this.neutered=null,this.number_creddits=null,this.is_admin=null,this.has_premium=null,this.number_coins=null,this.number_premium_days_remaining=null,this.is_employee=null,this.is_premium_subscriber=null,this.post_karma=null,this.comment_karma=null,this.name=null,e&&(void 0!==e.id&&null!==e.id&&(this.id=e.id),void 0!==e.created_timestamp&&null!==e.created_timestamp&&(this.created_timestamp=e.created_timestamp),void 0!==e.logged_in&&null!==e.logged_in&&(this.logged_in=e.logged_in),void 0!==e.cookie_created_timestamp&&null!==e.cookie_created_timestamp&&(this.cookie_created_timestamp=e.cookie_created_timestamp),void 0!==e.has_gold&&null!==e.has_gold&&(this.has_gold=e.has_gold),void 0!==e.suspect&&null!==e.suspect&&(this.suspect=e.suspect),void 0!==e.disenfranchised&&null!==e.disenfranchised&&(this.disenfranchised=e.disenfranchised),void 0!==e.in_timeout&&null!==e.in_timeout&&(this.in_timeout=e.in_timeout),void 0!==e.neutered&&null!==e.neutered&&(this.neutered=e.neutered),void 0!==e.number_creddits&&null!==e.number_creddits&&(this.number_creddits=e.number_creddits),void 0!==e.is_admin&&null!==e.is_admin&&(this.is_admin=e.is_admin),void 0!==e.has_premium&&null!==e.has_premium&&(this.has_premium=e.has_premium),void 0!==e.number_coins&&null!==e.number_coins&&(this.number_coins=e.number_coins),void 0!==e.number_premium_days_remaining&&null!==e.number_premium_days_remaining&&(this.number_premium_days_remaining=e.number_premium_days_remaining),void 0!==e.is_employee&&null!==e.is_employee&&(this.is_employee=e.is_employee),void 0!==e.is_premium_subscriber&&null!==e.is_premium_subscriber&&(this.is_premium_subscriber=e.is_premium_subscriber),void 0!==e.post_karma&&null!==e.post_karma&&(this.post_karma=e.post_karma),void 0!==e.comment_karma&&null!==e.comment_karma&&(this.comment_karma=e.comment_karma),void 0!==e.name&&null!==e.name&&(this.name=e.name))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 2:t==s.Type.I64?this.created_timestamp=e.readI64():e.skip(t);break;case 3:t==s.Type.BOOL?this.logged_in=e.readBool():e.skip(t);break;case 4:t==s.Type.I64?this.cookie_created_timestamp=e.readI64():e.skip(t);break;case 5:t==s.Type.BOOL?this.has_gold=e.readBool():e.skip(t);break;case 6:t==s.Type.BOOL?this.suspect=e.readBool():e.skip(t);break;case 8:t==s.Type.BOOL?this.disenfranchised=e.readBool():e.skip(t);break;case 9:t==s.Type.BOOL?this.in_timeout=e.readBool():e.skip(t);break;case 10:t==s.Type.BOOL?this.neutered=e.readBool():e.skip(t);break;case 11:t==s.Type.I64?this.number_creddits=e.readI64():e.skip(t);break;case 12:t==s.Type.BOOL?this.is_admin=e.readBool():e.skip(t);break;case 13:t==s.Type.BOOL?this.has_premium=e.readBool():e.skip(t);break;case 14:t==s.Type.I64?this.number_coins=e.readI64():e.skip(t);break;case 15:t==s.Type.I64?this.number_premium_days_remaining=e.readI64():e.skip(t);break;case 16:t==s.Type.BOOL?this.is_employee=e.readBool():e.skip(t);break;case 17:t==s.Type.BOOL?this.is_premium_subscriber=e.readBool():e.skip(t);break;case 18:t==s.Type.I64?this.post_karma=e.readI64():e.skip(t);break;case 19:t==s.Type.I64?this.comment_karma=e.readI64():e.skip(t);break;case 20:t==s.Type.STRING?this.name=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("User"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.created_timestamp&&void 0!==this.created_timestamp&&(e.writeFieldBegin("created_timestamp",s.Type.I64,2),e.writeI64(this.created_timestamp),e.writeFieldEnd()),null!==this.logged_in&&void 0!==this.logged_in&&(e.writeFieldBegin("logged_in",s.Type.BOOL,3),e.writeBool(this.logged_in),e.writeFieldEnd()),null!==this.cookie_created_timestamp&&void 0!==this.cookie_created_timestamp&&(e.writeFieldBegin("cookie_created_timestamp",s.Type.I64,4),e.writeI64(this.cookie_created_timestamp),e.writeFieldEnd()),null!==this.has_gold&&void 0!==this.has_gold&&(e.writeFieldBegin("has_gold",s.Type.BOOL,5),e.writeBool(this.has_gold),e.writeFieldEnd()),null!==this.suspect&&void 0!==this.suspect&&(e.writeFieldBegin("suspect",s.Type.BOOL,6),e.writeBool(this.suspect),e.writeFieldEnd()),null!==this.disenfranchised&&void 0!==this.disenfranchised&&(e.writeFieldBegin("disenfranchised",s.Type.BOOL,8),e.writeBool(this.disenfranchised),e.writeFieldEnd()),null!==this.in_timeout&&void 0!==this.in_timeout&&(e.writeFieldBegin("in_timeout",s.Type.BOOL,9),e.writeBool(this.in_timeout),e.writeFieldEnd()),null!==this.neutered&&void 0!==this.neutered&&(e.writeFieldBegin("neutered",s.Type.BOOL,10),e.writeBool(this.neutered),e.writeFieldEnd()),null!==this.number_creddits&&void 0!==this.number_creddits&&(e.writeFieldBegin("number_creddits",s.Type.I64,11),e.writeI64(this.number_creddits),e.writeFieldEnd()),null!==this.is_admin&&void 0!==this.is_admin&&(e.writeFieldBegin("is_admin",s.Type.BOOL,12),e.writeBool(this.is_admin),e.writeFieldEnd()),null!==this.has_premium&&void 0!==this.has_premium&&(e.writeFieldBegin("has_premium",s.Type.BOOL,13),e.writeBool(this.has_premium),e.writeFieldEnd()),null!==this.number_coins&&void 0!==this.number_coins&&(e.writeFieldBegin("number_coins",s.Type.I64,14),e.writeI64(this.number_coins),e.writeFieldEnd()),null!==this.number_premium_days_remaining&&void 0!==this.number_premium_days_remaining&&(e.writeFieldBegin("number_premium_days_remaining",s.Type.I64,15),e.writeI64(this.number_premium_days_remaining),e.writeFieldEnd()),null!==this.is_employee&&void 0!==this.is_employee&&(e.writeFieldBegin("is_employee",s.Type.BOOL,16),e.writeBool(this.is_employee),e.writeFieldEnd()),null!==this.is_premium_subscriber&&void 0!==this.is_premium_subscriber&&(e.writeFieldBegin("is_premium_subscriber",s.Type.BOOL,17),e.writeBool(this.is_premium_subscriber),e.writeFieldEnd()),null!==this.post_karma&&void 0!==this.post_karma&&(e.writeFieldBegin("post_karma",s.Type.I64,18),e.writeI64(this.post_karma),e.writeFieldEnd()),null!==this.comment_karma&&void 0!==this.comment_karma&&(e.writeFieldBegin("comment_karma",s.Type.I64,19),e.writeI64(this.comment_karma),e.writeFieldEnd()),null!==this.name&&void 0!==this.name&&(e.writeFieldBegin("name",s.Type.STRING,20),e.writeString(this.name),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var d=e.exports.UserPreferences=function(e){this.in_beta=null,this.language=null,this.hide_nsfw=null,this.expando=null,this.hide_previously_seen_posts=null,e&&(void 0!==e.in_beta&&null!==e.in_beta&&(this.in_beta=e.in_beta),void 0!==e.language&&null!==e.language&&(this.language=e.language),void 0!==e.hide_nsfw&&null!==e.hide_nsfw&&(this.hide_nsfw=e.hide_nsfw),void 0!==e.expando&&null!==e.expando&&(this.expando=e.expando),void 0!==e.hide_previously_seen_posts&&null!==e.hide_previously_seen_posts&&(this.hide_previously_seen_posts=e.hide_previously_seen_posts))};d.prototype={},d.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.BOOL?this.in_beta=e.readBool():e.skip(t);break;case 2:t==s.Type.STRING?this.language=e.readString():e.skip(t);break;case 3:t==s.Type.BOOL?this.hide_nsfw=e.readBool():e.skip(t);break;case 4:t==s.Type.STRING?this.expando=e.readString():e.skip(t);break;case 5:t==s.Type.BOOL?this.hide_previously_seen_posts=e.readBool():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},d.prototype.write=function(e){e.writeStructBegin("UserPreferences"),null!==this.in_beta&&void 0!==this.in_beta&&(e.writeFieldBegin("in_beta",s.Type.BOOL,1),e.writeBool(this.in_beta),e.writeFieldEnd()),null!==this.language&&void 0!==this.language&&(e.writeFieldBegin("language",s.Type.STRING,2),e.writeString(this.language),e.writeFieldEnd()),null!==this.hide_nsfw&&void 0!==this.hide_nsfw&&(e.writeFieldBegin("hide_nsfw",s.Type.BOOL,3),e.writeBool(this.hide_nsfw),e.writeFieldEnd()),null!==this.expando&&void 0!==this.expando&&(e.writeFieldBegin("expando",s.Type.STRING,4),e.writeString(this.expando),e.writeFieldEnd()),null!==this.hide_previously_seen_posts&&void 0!==this.hide_previously_seen_posts&&(e.writeFieldBegin("hide_previously_seen_posts",s.Type.BOOL,5),e.writeBool(this.hide_previously_seen_posts),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()};var o=e.exports.UserSubreddit=function(e){this.is_mod=null,this.mod_full=null,this.mod_access=null,this.mod_config=null,this.mod_flair=null,this.mod_mail=null,this.mod_post=null,this.mod_wiki=null,this.mod_none=null,this.is_favorite=null,this.is_subscriber=null,this.post_karma=null,this.comment_karma=null,e&&(void 0!==e.is_mod&&null!==e.is_mod&&(this.is_mod=e.is_mod),void 0!==e.mod_full&&null!==e.mod_full&&(this.mod_full=e.mod_full),void 0!==e.mod_access&&null!==e.mod_access&&(this.mod_access=e.mod_access),void 0!==e.mod_config&&null!==e.mod_config&&(this.mod_config=e.mod_config),void 0!==e.mod_flair&&null!==e.mod_flair&&(this.mod_flair=e.mod_flair),void 0!==e.mod_mail&&null!==e.mod_mail&&(this.mod_mail=e.mod_mail),void 0!==e.mod_post&&null!==e.mod_post&&(this.mod_post=e.mod_post),void 0!==e.mod_wiki&&null!==e.mod_wiki&&(this.mod_wiki=e.mod_wiki),void 0!==e.mod_none&&null!==e.mod_none&&(this.mod_none=e.mod_none),void 0!==e.is_favorite&&null!==e.is_favorite&&(this.is_favorite=e.is_favorite),void 0!==e.is_subscriber&&null!==e.is_subscriber&&(this.is_subscriber=e.is_subscriber),void 0!==e.post_karma&&null!==e.post_karma&&(this.post_karma=e.post_karma),void 0!==e.comment_karma&&null!==e.comment_karma&&(this.comment_karma=e.comment_karma))};o.prototype={},o.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.BOOL?this.is_mod=e.readBool():e.skip(t);break;case 2:t==s.Type.BOOL?this.mod_full=e.readBool():e.skip(t);break;case 3:t==s.Type.BOOL?this.mod_access=e.readBool():e.skip(t);break;case 4:t==s.Type.BOOL?this.mod_config=e.readBool():e.skip(t);break;case 5:t==s.Type.BOOL?this.mod_flair=e.readBool():e.skip(t);break;case 6:t==s.Type.BOOL?this.mod_mail=e.readBool():e.skip(t);break;case 7:t==s.Type.BOOL?this.mod_post=e.readBool():e.skip(t);break;case 8:t==s.Type.BOOL?this.mod_wiki=e.readBool():e.skip(t);break;case 9:t==s.Type.BOOL?this.mod_none=e.readBool():e.skip(t);break;case 10:t==s.Type.BOOL?this.is_favorite=e.readBool():e.skip(t);break;case 11:t==s.Type.BOOL?this.is_subscriber=e.readBool():e.skip(t);break;case 12:t==s.Type.I64?this.post_karma=e.readI64():e.skip(t);break;case 13:t==s.Type.I64?this.comment_karma=e.readI64():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},o.prototype.write=function(e){e.writeStructBegin("UserSubreddit"),null!==this.is_mod&&void 0!==this.is_mod&&(e.writeFieldBegin("is_mod",s.Type.BOOL,1),e.writeBool(this.is_mod),e.writeFieldEnd()),null!==this.mod_full&&void 0!==this.mod_full&&(e.writeFieldBegin("mod_full",s.Type.BOOL,2),e.writeBool(this.mod_full),e.writeFieldEnd()),null!==this.mod_access&&void 0!==this.mod_access&&(e.writeFieldBegin("mod_access",s.Type.BOOL,3),e.writeBool(this.mod_access),e.writeFieldEnd()),null!==this.mod_config&&void 0!==this.mod_config&&(e.writeFieldBegin("mod_config",s.Type.BOOL,4),e.writeBool(this.mod_config),e.writeFieldEnd()),null!==this.mod_flair&&void 0!==this.mod_flair&&(e.writeFieldBegin("mod_flair",s.Type.BOOL,5),e.writeBool(this.mod_flair),e.writeFieldEnd()),null!==this.mod_mail&&void 0!==this.mod_mail&&(e.writeFieldBegin("mod_mail",s.Type.BOOL,6),e.writeBool(this.mod_mail),e.writeFieldEnd()),null!==this.mod_post&&void 0!==this.mod_post&&(e.writeFieldBegin("mod_post",s.Type.BOOL,7),e.writeBool(this.mod_post),e.writeFieldEnd()),null!==this.mod_wiki&&void 0!==this.mod_wiki&&(e.writeFieldBegin("mod_wiki",s.Type.BOOL,8),e.writeBool(this.mod_wiki),e.writeFieldEnd()),null!==this.mod_none&&void 0!==this.mod_none&&(e.writeFieldBegin("mod_none",s.Type.BOOL,9),e.writeBool(this.mod_none),e.writeFieldEnd()),null!==this.is_favorite&&void 0!==this.is_favorite&&(e.writeFieldBegin("is_favorite",s.Type.BOOL,10),e.writeBool(this.is_favorite),e.writeFieldEnd()),null!==this.is_subscriber&&void 0!==this.is_subscriber&&(e.writeFieldBegin("is_subscriber",s.Type.BOOL,11),e.writeBool(this.is_subscriber),e.writeFieldEnd()),null!==this.post_karma&&void 0!==this.post_karma&&(e.writeFieldBegin("post_karma",s.Type.I64,12),e.writeI64(this.post_karma),e.writeFieldEnd()),null!==this.comment_karma&&void 0!==this.comment_karma&&(e.writeFieldBegin("comment_karma",s.Type.I64,13),e.writeI64(this.comment_karma),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/userflair_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.UserFlair=function(e){this.id=null,this.title=null,e&&(void 0!==e.id&&null!==e.id&&(this.id=e.id),void 0!==e.title&&null!==e.title&&(this.title=e.title))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.title=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("UserFlair"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.title&&void 0!==this.title&&(e.writeFieldBegin("title",s.Type.STRING,2),e.writeString(this.title),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/visibility_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.Visibility=function(e){this.seen=null,this.seen_items=null,this.number_items=null,this.number_seen_items=null,this.number_scrolled_pages=null,this.on_screen_timestamp=null,this.off_screen_timestamp=null,e&&(void 0!==e.seen&&null!==e.seen&&(this.seen=e.seen),void 0!==e.seen_items&&null!==e.seen_items&&(this.seen_items=s.copyList(e.seen_items,[null])),void 0!==e.number_items&&null!==e.number_items&&(this.number_items=e.number_items),void 0!==e.number_seen_items&&null!==e.number_seen_items&&(this.number_seen_items=e.number_seen_items),void 0!==e.number_scrolled_pages&&null!==e.number_scrolled_pages&&(this.number_scrolled_pages=e.number_scrolled_pages),void 0!==e.on_screen_timestamp&&null!==e.on_screen_timestamp&&(this.on_screen_timestamp=e.on_screen_timestamp),void 0!==e.off_screen_timestamp&&null!==e.off_screen_timestamp&&(this.off_screen_timestamp=e.off_screen_timestamp))});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.BOOL?this.seen=e.readBool():e.skip(t);break;case 4:if(t==s.Type.LIST){var n,d;this.seen_items=[];(d=e.readListBegin()).etype,n=d.size;for(var o=0;o<n;++o){var l;l=e.readString(),this.seen_items.push(l)}e.readListEnd()}else e.skip(t);break;case 5:t==s.Type.I64?this.number_items=e.readI64():e.skip(t);break;case 6:t==s.Type.I64?this.number_seen_items=e.readI64():e.skip(t);break;case 7:t==s.Type.I64?this.number_scrolled_pages=e.readI64():e.skip(t);break;case 8:t==s.Type.I64?this.on_screen_timestamp=e.readI64():e.skip(t);break;case 9:t==s.Type.I64?this.off_screen_timestamp=e.readI64():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){if(e.writeStructBegin("Visibility"),null!==this.seen&&void 0!==this.seen&&(e.writeFieldBegin("seen",s.Type.BOOL,1),e.writeBool(this.seen),e.writeFieldEnd()),null!==this.seen_items&&void 0!==this.seen_items){for(var i in e.writeFieldBegin("seen_items",s.Type.LIST,4),e.writeListBegin(s.Type.STRING,this.seen_items.length),this.seen_items)this.seen_items.hasOwnProperty(i)&&(i=this.seen_items[i],e.writeString(i));e.writeListEnd(),e.writeFieldEnd()}null!==this.number_items&&void 0!==this.number_items&&(e.writeFieldBegin("number_items",s.Type.I64,5),e.writeI64(this.number_items),e.writeFieldEnd()),null!==this.number_seen_items&&void 0!==this.number_seen_items&&(e.writeFieldBegin("number_seen_items",s.Type.I64,6),e.writeI64(this.number_seen_items),e.writeFieldEnd()),null!==this.number_scrolled_pages&&void 0!==this.number_scrolled_pages&&(e.writeFieldBegin("number_scrolled_pages",s.Type.I64,7),e.writeI64(this.number_scrolled_pages),e.writeFieldEnd()),null!==this.on_screen_timestamp&&void 0!==this.on_screen_timestamp&&(e.writeFieldBegin("on_screen_timestamp",s.Type.I64,8),e.writeI64(this.on_screen_timestamp),e.writeFieldEnd()),null!==this.off_screen_timestamp&&void 0!==this.off_screen_timestamp&&(e.writeFieldBegin("off_screen_timestamp",s.Type.I64,9),e.writeI64(this.off_screen_timestamp),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/eventSchemas/webhook_types.js":function(e,i,t){"use strict";var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js"),s=r.Thrift,n=(r.Q,t("./src/telemetry/eventSchemas/typedefs_types.js"),e.exports={},e.exports.Webhook=function(e){if(this.id=null,this.type=null,e){if(void 0===e.id||null===e.id)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field id is unset!");if(this.id=e.id,void 0===e.type||null===e.type)throw new s.TProtocolException(s.TProtocolExceptionType.UNKNOWN,"Required field type is unset!");this.type=e.type}});n.prototype={},n.prototype.read=function(e){for(e.readStructBegin();;){var i=e.readFieldBegin(),t=(i.fname,i.ftype),r=i.fid;if(t==s.Type.STOP)break;switch(r){case 1:t==s.Type.STRING?this.id=e.readString():e.skip(t);break;case 2:t==s.Type.STRING?this.type=e.readString():e.skip(t);break;default:e.skip(t)}e.readFieldEnd()}e.readStructEnd()},n.prototype.write=function(e){e.writeStructBegin("Webhook"),null!==this.id&&void 0!==this.id&&(e.writeFieldBegin("id",s.Type.STRING,1),e.writeString(this.id),e.writeFieldEnd()),null!==this.type&&void 0!==this.type&&(e.writeFieldBegin("type",s.Type.STRING,2),e.writeString(this.type),e.writeFieldEnd()),e.writeFieldStop(),e.writeStructEnd()}},"./src/telemetry/helpers/ThriftSerializer.ts":function(e,i,t){"use strict";(function(e){t.d(i,"a",function(){return a});var r=t("./node_modules/thrift/lib/nodejs/lib/thrift/int64_util.js"),s=t.n(r),n=t("./node_modules/node-int64/Int64.js"),d=t.n(n),o=t("./node_modules/thrift/lib/nodejs/lib/thrift/browser.js");const l={[o.Thrift.Type.BOOL]:"tf",[o.Thrift.Type.BYTE]:"i8",[o.Thrift.Type.I16]:"i16",[o.Thrift.Type.I32]:"i32",[o.Thrift.Type.I64]:"i64",[o.Thrift.Type.DOUBLE]:"dbl",[o.Thrift.Type.STRUCT]:"rec",[o.Thrift.Type.STRING]:"str",[o.Thrift.Type.MAP]:"map",[o.Thrift.Type.LIST]:"lst",[o.Thrift.Type.SET]:"set"};class a{constructor(){this.stack=[]}writeFieldBegin(e,i,t){this.stack.push(e=>({[t]:{[l[i]]:e}}))}writeFieldEnd(){const e=this.stack.pop(),i=this.stack.pop();this.stack.push(i(e))}writeFieldStop(){}writeStructBegin(e){this.stack.push("structStart")}writeStructEnd(){let e={};for(;;){const i=this.stack.pop();if("structStart"===i)break;e=Object.assign({},e,i)}this.stack.push(e)}writeListBegin(){this.stack.push("listStart")}writeListEnd(){const e=[];for(;;){const i=this.stack.pop();if("listStart"===i)break;e.push(i)}this.stack.push(["rec",e.length,...e])}writeSetBegin(){this.stack.push("setStart")}writeSetEnd(){const e=[];for(;;){const i=this.stack.pop();if("setStart"===i)break;e.push(i)}this.stack.push(["rec",e.length,...e])}writeMapStart(){throw new Error("Maps not implemented. Contact Niranjan Ramadas")}writeMapEnd(){throw new Error("Maps not implemented. Contact Niranjan Ramadas")}writeBool(e){this.stack.push(e?1:0)}writeByte(e){this.stack.push(e)}writeI16(e){this.stack.push(e)}writeI32(e){this.stack.push(e)}writeI64(e){e instanceof d.a?this.stack.push(s.a.toDecimalString(e)):this.stack.push(e)}writeDouble(e){this.stack.push(e)}writeString(e){null===e?this.stack.push(null):this.stack.push(JSON.stringify(e).slice(1,-1))}writeBinary(i){let t;if("string"==typeof i)t=new e(i,"binary");else{if(!(i instanceof e||"[object Uint8Array]"===Object.prototype.toString.call(i)))throw new Error("writeBinary called without a string/Buffer argument: "+i);t=i}this.stack.push(t.toString("base64"))}getString(){if(this.stack.length>1)throw new Error("Did not correctly serialize Thrift Event");return JSON.stringify(this.stack.pop())}}}).call(this,t("./node_modules/node-libs-browser/node_modules/buffer/index.js").Buffer)},"./src/telemetry/helpers/sendEvent.ts":function(e,i,t){"use strict";t.d(i,"c",function(){return m}),t.d(i,"b",function(){return T});var r=t("./node_modules/Base64/base64.js"),s=t("./node_modules/crypto-js/hmac-sha256.js"),n=t.n(s),d=t("./node_modules/lodash/throttle.js"),o=t.n(d),l=t("./src/lib/constants/index.ts"),a=t("./src/lib/makeRequest/index.ts"),p=t("./src/lib/scheduler/index.ts"),u=t("./src/telemetry/eventSchemas/event_types.js"),h=t("./src/telemetry/models/Event.ts"),_=t("./src/telemetry/helpers/ThriftSerializer.ts");let c;const m=e=>{c=e};let y=[],g=!1,w=!1;const T=Object(p.b)();i.a=(e=>{w||(window.addEventListener("beforeunload",()=>{T.flush(),g||v(!0)}),w=!0);const i=h.e(e);if(y=y.concat([i]),c){const e=c.getState();e.push(i);const t=e.length;t>250&&e.splice(0,250-t),c.setState(e)}g||f()});const v=e=>{if(!y.length)return;const i=[...y],t=new u.EventBatch({events:i}),s=new _.a,d=Object(r.atob)("YWVjYWltMnNlaTlzZXNoNmVpQ2hhZXJ1dW03dHU4");y=[],g=!0,t.write(s);const o=s.getString(),p=n()(o,d).toString();Object(a.b)({data:o,endpoint:"https://www.reddit.com",sync:e,method:l.jb.POST,type:"text/plain",headers:{"X-Signature-v2":`key=Desktop2x3, mac=${p}`}}).then(i=>{y.length?e?v():f():g=!1})},f=o()(v,1e3,{leading:!1,trailing:!0})},"./src/telemetry/index.ts":function(e,i,t){"use strict";var r={};t.r(r),t.d(r,"start",function(){return u}),t.d(r,"end",function(){return h}),t.d(r,"cancel",function(){return _}),t.d(r,"has",function(){return c});var s=t("./src/telemetry/helpers/sendEvent.ts"),n=t("./src/telemetry/helpers/sendTiming.ts");const d={},o="timer - too many created. is there a memory leak?",l=e=>`timer - none found with id: ${e}.\n Make sure you check for its existence before trying to stop.`;let a=0,p=0;const u=e=>{const i=e||a++;return p>100&&console.error(o),d[i]=Date.now(),p++,i},h=e=>{const i=d[e];if(!i)return console.error(l(e)),-1;const t=Date.now()-i;return delete d[e],p--,t},_=e=>!!d[e]&&(delete d[e],p--,!0),c=e=>!!d[e];t.d(i,"a",function(){return s.a}),t.d(i,"b",function(){return n.a}),t.d(i,"c",function(){return r})},"./src/telemetry/models/Event.ts":function(e,i,t){"use strict";var r={};t.r(r),t.d(r,"toThrift",function(){return j});var s={};t.r(s),t.d(s,"toThrift",function(){return U});var n={};t.r(n),t.d(n,"toThrift",function(){return D});var d={};t.r(d),t.d(d,"toThrift",function(){return M});var o={};t.r(o),t.d(o,"toThrift",function(){return Q});var l={};t.r(l),t.d(l,"toThrift",function(){return H});var a={};t.r(a),t.d(a,"toThrift",function(){return V});var p={};t.r(p),t.d(p,"toThrift",function(){return $});var u={};t.r(u),t.d(u,"toThrift",function(){return X});var h={};t.r(h),t.d(h,"toThrift",function(){return Y});var _={};t.r(_),t.d(_,"toThrift",function(){return ie});var c={};t.r(c),t.d(c,"toThrift",function(){return re});var m={};t.r(m),t.d(m,"toThrift",function(){return de});var y={};t.r(y),t.d(y,"toThrift",function(){return oe});var g={};t.r(g),t.d(g,"toThrift",function(){return le});var w={};t.r(w),t.d(w,"toThrift",function(){return pe});var T={};t.r(T),t.d(T,"toThrift",function(){return he});var v={};t.r(v),t.d(v,"toThrift",function(){return ye});var f={};t.r(f),t.d(f,"toThrift",function(){return ge});var S={};t.r(S),t.d(S,"toThrift",function(){return we});var b={};t.r(b),t.d(b,"toThrift",function(){return Se});var k={};t.r(k),t.d(k,"toThrift",function(){return ke});var F={};t.r(F),t.d(F,"toThrift",function(){return Be});var B={};t.r(B),t.d(B,"toThrift",function(){return Ee});var I={};t.r(I),t.d(I,"toThrift",function(){return Ge});var E={};t.r(E),t.d(E,"toThrift",function(){return Le});var R={};t.r(R),t.d(R,"toThrift",function(){return Ce});var N={};t.r(N),t.d(N,"toThrift",function(){return je});var O={};t.r(O),t.d(O,"toThrift",function(){return Pe});var G=t("./node_modules/uuid/v4.js"),x=t.n(G),L=t("./src/telemetry/eventSchemas/event_types.js"),C=t("./src/telemetry/eventSchemas/action_types.js");const j=e=>new C.ActionInfo({count:e.count,page_type:e.pageType,pane_name:e.paneName,position:e.position,reason:e.reason,setting_value:e.settingValue,success:e.success,relative_position:e.relativePosition});var P=t("./src/telemetry/eventSchemas/adblock_types.js");const U=e=>new P.Adblock({enabled:e.enabled,acceptable_ads:e.acceptableAds});var q=t("./src/telemetry/models/App.ts"),A=t("./src/telemetry/eventSchemas/banner_types.js");const D=e=>new A.Banner({button_text:e.buttonText,id:e.id});var z=t("./src/telemetry/eventSchemas/chat_types.js");const M=e=>new z.Chat({blocked_user_id:e.blocked_user_id,id:e.id,type:e.type,existing_channel:e.existing_channel,image_upload_method:e.image_upload_method,user_added_method:e.user_added_method,invitation_id:e.invitation_id,invitation_type:e.invitation_type,members:e.members,invitation_preview_type:e.invitation_preview_type,message_type:e.message_type,number_channels:e.number_channels,number_pending_invites:e.number_pending_invites,number_members:e.number_members,number_unreads:e.number_unreads,reported_user_id:e.reported_user_id,sender_user_id:e.sender_user_id,invitation_timestamp:e.invitation_timestamp,blocked_members:e.blocked_members,recipient_user_id:e.recipient_user_id,number_blocked_users:e.number_blocked_users,is_member:e.is_member,shown_history:e.shown_history,message_id:e.message_id,report_reason:e.report_reason});var W=t("./src/telemetry/eventSchemas/experiment_types.js");const Q=e=>new W.ClickTest({id:e.id,name:e.name,owner:e.owner,variant:e.variant,prompt:e.prompt,response:e.response,page_type:e.pageType});var K=t("./src/telemetry/eventSchemas/content_types.js");const H=e=>new K.Comment({body:e.body,id:e.id,post_id:e.postId,author_id:e.authorId,parent_id:e.parentId,body_text:e.bodyText,gildings:e.gildings,score:e.score,created:e.created}),V=e=>new K.CommentComposer({editor_mode:e.editorMode}),$=e=>new K.DiscoveryUnit({id:e.id,type:e.type,title:e.title,name:e.name,items:e.items});var J=t("./src/telemetry/eventSchemas/timer_types.js");const Z=(e,i)=>e&&i?i-e==0?null:i-e:null,X=e=>{if(!performance||!performance.timing)return null;const i=performance.timing;return new J.DOMTimers({request:Z(i.requestStart,i.responseStart),loading:Z(i.domLoading,i.domInteractive),loaded:Z(i.domContentLoadedEventStart,i.domContentLoadedEventEnd)})},Y=e=>new W.Experiment({id:e.id,is_override:e.isOverride,name:e.name,variant:e.variant,version:e.version});var ee=t("./src/telemetry/models/GoldPurchase.ts");const ie=e=>new K.Listing({length:e.length,links:e.links,sort:e.sort,sort_time_filter:e.sortTime});var te=t("./src/telemetry/eventSchemas/live_thread_types.js");const re=e=>new te.LiveThread({id:e.id,is_announcement:e.isAnnouncement});var se=t("./src/telemetry/models/Media.ts"),ne=t("./src/telemetry/eventSchemas/metasearch_types.js");const de=e=>new ne.MetaSearch({display_query:e.displayQuery,raw_query:e.rawQuery,structure_type:e.structureType,sort:e.sort,range:e.range,subreddit_id:e.subredditId,subreddit_name:e.subredditName,post_flair_name:e.postFlairName,meta_flair_id:e.metaFlairId,meta_flair_name:e.metaFlairName}),oe=e=>new K.News({topic_id:e.topicId,topic_name:e.topicName,subtopic_id:e.subtopicId,subtopic_name:e.subtopicName}),le=e=>new K.Notification({id:e.id,type:e.type});var ae=t("./src/telemetry/eventSchemas/request_types.js");const pe=e=>new ae.Oauth({client_app_type:"web"});var ue=t("./src/telemetry/models/Payment.ts");const he=e=>new K.Post({created_timestamp:e.createdTimestamp,domain:e.domain,id:e.id,nsfw:e.nsfw,number_posts_from_ad:e.numberPostsFromAd,score:e.score,spoiler:e.spoiler,title:e.title,type:e.type,upvote_ratio:e.upvoteRatio,url:e.url,promoted:e.promoted,impression_id:e.impressionId});var _e=t("./src/telemetry/models/PostComposer.ts"),ce=t("./src/telemetry/models/PostDraft.ts"),me=t("./src/telemetry/eventSchemas/subreddit_types.js");const ye=e=>new me.Profile({id:e.id,name:e.name,type:e.type||"default",display_name:e.display_name,about:e.about,avatar_url:e.avatar_url,cover_url:e.cover_url,nsfw:e.nsfw,content_visible:e.content_visible,communities_visible:e.communities_visible}),ge=e=>new ae.Referrer({domain:e.domain,element:e.element,url:e.url}),we=e=>new ae.Request({base_url:e.base_url,domain:e.domain,reddaid:e.reddaid,user_agent:e.user_agent});var Te=t("./src/reddit/constants/postLayout.ts"),ve=t("./src/telemetry/eventSchemas/device_types.js");const fe=x()(),Se=e=>new ve.Screen({browser_tab_id:fe,in_focus:"undefined"!=typeof window&&document.hasFocus?document.hasFocus():null,theme:e.theme,width:"undefined"!=typeof window?window.screen.width:null,height:"undefined"!=typeof window?window.screen.height:null,scroll_position:e.scrollPosition,viewport_width:"undefined"!=typeof window?window.innerWidth:null,viewport_height:"undefined"!=typeof window?window.innerHeight:null,view_type:e.viewType||(e=>e?Te.d[e]:void 0)(e.layout)});var be=t("./src/telemetry/eventSchemas/search_types.js");const ke=e=>new be.Search({origin_element:e.originElement,origin_page_type:e.originPageType,post_flair_name:e.postFlairName,query:e.query,range:e.range,sort:e.sort,structure_type:e.structureType,subreddit_name:e.subredditName,subreddit_id:e.subredditId,typeahead_active:e.typeaheadActive});var Fe=t("./src/telemetry/eventSchemas/session_types.js");const Be=e=>new Fe.Session({id:e.id,referrer_url:e.referrerUrl,referrer_domain:e.referrerDomain,version:e.version,type:e.type,created_timestamp:e.createdTimestamp});var Ie=t("./src/telemetry/eventSchemas/setting_types.js");const Ee=e=>new Ie.Setting({value:e.value,old_value:e.oldValue});var Re=t("./src/telemetry/models/Subreddit.ts"),Ne=t("./src/telemetry/models/Timer.ts"),Oe=t("./src/telemetry/eventSchemas/topic_tag_types.js");const Ge=e=>new Oe.TopicTag({id:e.id,content:e.content,type:e.type?e.type.toLowerCase():e.type});var xe=t("./src/telemetry/eventSchemas/user_types.js");const Le=e=>new xe.User({id:e.id,is_admin:e.isAdmin,created_timestamp:e.createdTimestamp,logged_in:e.isLoggedIn,cookie_created_timestamp:e.cookieCreatedTimestamp,has_gold:e.hasGold,has_premium:e.hasPremium,is_premium_subscriber:e.isPremiumSubscriber,number_coins:e.numberCoins,number_premium_days_remaining:e.numberPremiumDaysRemaining}),Ce=e=>new xe.UserPreferences({in_beta:e.inBeta,language:e.language,hide_nsfw:e.hideNsfw,expando:e.expando}),je=e=>new xe.UserSubreddit({is_mod:e.isMod,mod_access:e.modAccess,mod_config:e.modConfig,mod_flair:e.modFlair,mod_full:e.modFull,mod_mail:e.modMail,mod_none:e.modNone,mod_post:e.modPost,mod_wiki:e.modWiki,is_subscriber:e.isSubscriber}),Pe=e=>new C.Widget({type:e.type,target_subreddit_name:e.targetSubredditName,target_subreddit_id:e.targetSubredditId});var Ue,qe,Ae,De;t.d(i,"a",function(){return Ue}),t.d(i,"d",function(){return qe}),t.d(i,"c",function(){return Ae}),t.d(i,"b",function(){return De}),t.d(i,"e",function(){return ze}),function(e){e.Ban="ban",e.Click="click",e.Heartbeat="heartbeat",e.Kick="kick",e.Load="load",e.ModDelete="mod_delete",e.Submit="submit",e.View="view"}(Ue||(Ue={})),function(e){e.Experiment="experiment"}(qe||(qe={})),function(e){e.Expose="expose"}(Ae||(Ae={})),function(e){e.ChatPerformance="chat_performance",e.ChatPreview="chat_preview",e.ChatKeyboard="chat_keyboard",e.ChatSettings="chat_settings",e.ChatSetup="chat_setup",e.ChatSidebarModal="chat_sidebar_modal",e.ChatSidebarWidget="chat_sidebar_widget",e.ChatView="chat_view",e.ContactsList="contacts_list",e.Global="global",e.InvitationInbox="invitation_inbox",e.MessageInbox="messages_inbox",e.Nav="nav",e.UserProfile="user_profile"}(De||(De={}));const ze=e=>new L.Event({action:e.action,source:e.source,noun:e.noun,client_timestamp:Date.now(),uuid:x()(),correlation_id:e.correlationId||null,action_info:Me(e.actionInfo,r),app:Me(e.app,q),banner:Me(e.banner,n),chat:Me(e.chat,d),click_test:Me(e.clickTest,o),comment:Me(e.comment,l),comment_composer:Me(e.commentComposer,a),dom_timer:Me(e.domTimer,u),experiment:Me(e.experiment,h),gold_purchase:Me(e.goldPurchase,ee),listing:Me(e.listing,_),live_thread:Me(e.liveThread,c),media:Me(e.media,se),meta_search:Me(e.metaSearch,m),notification:Me(e.notification,g),news:Me(e.news,y),oauth:Me(e.oauth,w),payment:Me(e.payment,ue),post:Me(e.post,T),post_draft:Me(e.postDraft,ce),post_composer:Me(e.postComposer,_e),profile:Me(e.profile,v),referrer:Me(e.referrer,f),request:Me(e.request,S),screen:Me(e.screen,b),search:Me(e.search,k),session:Me(e.session,F),setting:Me(e.setting,B),subreddit:Me(e.subreddit,Re),timer:Me(e.timer,Ne),topic_tag:Me(e.topicTag,I),user:Me(e.user,E),user_preferences:Me(e.userPreferences,R),user_subreddit:Me(e.userSubreddit,N),widget:Me(e.widget,O),adblock:Me(e.adblock,s),discovery_unit:Me(e.discoveryUnit,p)}),Me=(e,i)=>e?i.toThrift(e):null},"./src/telemetry/models/GoldPurchase.ts":function(e,i,t){"use strict";t.r(i),t.d(i,"New",function(){return s}),t.d(i,"Renew",function(){return n}),t.d(i,"GiftCode",function(){return d}),t.d(i,"GetPremium",function(){return o}),t.d(i,"Cancel",function(){return l}),t.d(i,"Gid1",function(){return a}),t.d(i,"Gid2",function(){return p}),t.d(i,"Gid3",function(){return u}),t.d(i,"CoinsGid1",function(){return h}),t.d(i,"CoinsGid2",function(){return _}),t.d(i,"CoinsGid3",function(){return c}),t.d(i,"Premium",function(){return m}),t.d(i,"Coins",function(){return y}),t.d(i,"HideAds",function(){return g}),t.d(i,"PremiumMarketing",function(){return w}),t.d(i,"CoinsMarketing",function(){return T}),t.d(i,"GiveGold",function(){return v}),t.d(i,"toThrift",function(){return f});var r=t("./src/telemetry/eventSchemas/gold_types.js");const s="new",n="renew",d="gift_code",o="get_premium",l="cancel",a="gid_1",p="gid_2",u="gid_3",h="coins_gid_1",_="coins_gid_2",c="coins_gid_3",m="premium",y="coins",g="hide_ads",w="premium_marketing",T="coins_marketing",v="give_gold",f=e=>new r.GoldPurchase({default_option:e.defaultOption,default_anonymous:e.defaultAnonymous,gilded_content:e.gildedContent,number_coins:e.numberCoins,source:e.source,transaction_id:e.transactionId,type:e.type,content_type:e.contentType})},"./src/telemetry/models/Media.ts":function(e,i,t){"use strict";t.r(i),t.d(i,"FileSource",function(){return r}),t.d(i,"toThrift",function(){return n});var r,s=t("./src/telemetry/eventSchemas/content_types.js");!function(e){e.FileSelector="fileselector",e.Clipboard="clipboard",e.DragAndDrop="drag_and_drop"}(r||(r={}));const n=e=>new s.Media({height:e.height,load_time:e.loadTime,width:e.width,id:e.id,duration:e.duration,mimetype:e.mimetype,size:e.size,url:e.url,source:e.source,upload_duration:e.uploadDuration,file_name:e.fileName,type:e.type,thumbnail_url:e.thumbnailUrl,time:e.time,orientation:e.orientation,max_time_served:e.maxTimeServed,cdn_name:e.cdnName,cdn_region:e.cdnRegion,destination_region:e.destinationRegion})},"./src/telemetry/models/Payment.ts":function(e,i,t){"use strict";t.r(i),t.d(i,"PaymentMethod",function(){return r}),t.d(i,"toThrift",function(){return n});var r,s=t("./src/telemetry/eventSchemas/payment_types.js");!function(e){e.CreditCard="credit_card",e.Paypal="paypal"}(r||(r={}));const n=e=>new s.Payment({amount_in_smallest_denom:e.amountInSmallestDenom,currency:e.currency,default_option:e.defaultOption,method:e.method})},"./src/telemetry/models/PostComposer.ts":function(e,i,t){"use strict";t.r(i),t.d(i,"toThrift",function(){return s}),t.d(i,"ToggleAction",function(){return n}),t.d(i,"getToggleAction",function(){return d}),t.d(i,"ToggleNoun",function(){return o});var r=t("./src/telemetry/eventSchemas/content_types.js");const s=e=>new r.PostComposer({editor_mode:e.editorMode,final_status:e.finalStatus,input_type:e.inputType,text_type:e.textType,type:e.type});var n;!function(e){e.DESELECT="deselect",e.SELECT="select"}(n||(n={}));const d=e=>e?n.SELECT:n.DESELECT;var o;!function(e){e.NSFW="nsfw",e.ORIGINAL_CONTENT="original_content",e.SPOILER="spoiler"}(o||(o={}))},"./src/telemetry/models/PostDraft.ts":function(e,i,t){"use strict";t.r(i),t.d(i,"DraftType",function(){return r}),t.d(i,"toThrift",function(){return n});var r,s=t("./src/telemetry/eventSchemas/post_draft_types.js");!function(e){e.Self="self",e.RichText="multi_media",e.Link="link",e.Image="image",e.Video="video"}(r||(r={}));const n=e=>new s.PostDraft({author_id:e.authorId,body_text_length:e.bodyTextLength,created_timestamp:e.createdTimestamp,flair:e.flair,id:e.id,nsfw:e.nsfw,number_rte_images:e.numberRteImages,number_rte_videos:e.numberRteVideos,original_content:e.originalContent,spoiler:e.spoiler,title_length:e.titleLength,type:e.type,url_length:e.urlLength})},"./src/telemetry/models/Subreddit.ts":function(e,i,t){"use strict";t.r(i),t.d(i,"toThrift",function(){return n}),t.d(i,"getSubscribeEventNoun",function(){return d});var r=t("./src/reddit/constants/posts.ts"),s=t("./src/telemetry/eventSchemas/subreddit_types.js");const n=e=>new s.Subreddit({id:e.id,name:e.name,category_name:e.categoryName,topic_tag_ids:e.topicTagIds,topic_tag_contents:e.topicTagContents,topic_tag_types:e.topicTagTypes}),d=(e,i)=>e===r.a.PROFILE?i?"unfollow":"follow":i?"unsubscribe":"subscribe"},"./src/telemetry/models/Timer.ts":function(e,i,t){"use strict";t.r(i),t.d(i,"TimerType",function(){return r}),t.d(i,"toThrift",function(){return n});var r,s=t("./src/telemetry/eventSchemas/timer_types.js");!function(e){e.Initial="initial_page_load",e.InApp="in_app_navigation",e.UserCancelled="user_cancelled",e.HeartbeatIdleTime="heartbeat_idle_time",e.ChatLoadInboxNew="chat_performance_load_inbox_new",e.ChatLoadInboxCached="chat_performance_load_inbox_cached",e.ChatLoadChannelNew="chat_performance_load_channel_new",e.ChatLoadChannelCached="chat_performance_load_channel_cached",e.VideoFirstFrame="video_first_frame"}(r||(r={}));const n=e=>new s.Timer({type:e.type,millis:e.millis})}}]);
//# sourceMappingURL=Chat~Client~Governance~Reddit.72735f5fa6f10ef9a51d.js.map