Rules-For-Quantumult-X/Scripts/AdBlock/Other/Tieba-2.min.js

1 line
108 KiB
JavaScript

let protobuf;!function(g){"use strict";var r,e,i;r={1:[function(t,e,i){e.exports=function(t,e){for(var i=Array(arguments.length-1),n=0,r=2,s=!0;r<arguments.length;)i[n++]=arguments[r++];return new Promise((function(r,o){i[n]=function(t){if(s)if(s=!1,t)o(t);else{for(var e=Array(arguments.length-1),i=0;i<e.length;)e[i++]=arguments[i];r.apply(null,e)}};try{t.apply(e||null,i)}catch(t){s&&(s=!1,o(t))}}))}},{}],2:[function(t,e,i){i.length=function(t){var e=t.length;if(!e)return 0;for(var i=0;1<--e%4&&"="==(t[0|e]||"");)++i;return Math.ceil(3*t.length)/4-i};for(var n=Array(64),r=Array(123),s=0;s<64;)r[n[s]=s<26?s+65:s<52?s+71:s<62?s-4:s-59|43]=s++;i.encode=function(t,e,i){for(var r,s=null,o=[],p=0,d=0;e<i;){var a=t[e++];switch(d){case 0:o[p++]=n[a>>2],r=(3&a)<<4,d=1;break;case 1:o[p++]=n[r|a>>4],r=(15&a)<<2,d=2;break;case 2:o[p++]=n[r|a>>6],o[p++]=n[63&a],d=0}8191<p&&((s=s||[]).push(String.fromCharCode.apply(String,o)),p=0)}return d&&(o[p++]=n[r],o[p++]=61,1===d&&(o[p++]=61)),s?(p&&s.push(String.fromCharCode.apply(String,o.slice(0,p))),s.join("")):String.fromCharCode.apply(String,o.slice(0,p))};var o="invalid encoding";i.decode=function(t,e,i){for(var n,s=i,p=0,d=0;d<t.length;){var a=t.charCodeAt(d++);if(61==a&&1<p)break;if((a=r[a])===g)throw Error(o);switch(p){case 0:n=a,p=1;break;case 1:e[i++]=n<<2|(48&a)>>4,n=a,p=2;break;case 2:e[i++]=(15&n)<<4|(60&a)>>2,n=a,p=3;break;case 3:e[i++]=(3&n)<<6|a,p=0}}if(1===p)throw Error(o);return i-s},i.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},{}],3:[function(t,e,i){(e.exports=function t(e,i){"string"==typeof e&&(i=e,e=g);var n=[];function r(e){if("string"!=typeof e){var i=s();if(t.verbose&&console.log("codegen: "+i),i="return "+i,e){for(var o=Object.keys(e),p=Array(o.length+1),d=Array(o.length),a=0;a<o.length;)p[a]=o[a],d[a]=e[o[a++]];return p[a]=i,Function.apply(null,p).apply(null,d)}return Function(i)()}for(var l=Array(arguments.length-1),y=0;y<l.length;)l[y]=arguments[++y];if(y=0,e=e.replace(/%([%dfijs])/g,(function(t,e){var i=l[y++];switch(e){case"d":case"f":return""+ +(""+i);case"i":return""+Math.floor(i);case"j":return JSON.stringify(i);case"s":return""+i}return"%"})),y!==l.length)throw Error("parameter count mismatch");return n.push(e),r}function s(t){return"function "+(t||i||"")+"("+(e&&e.join(",")||"")+"){\n "+n.join("\n ")+"\n}"}return r.toString=s,r}).verbose=!1},{}],4:[function(t,e,i){function n(){this.t={}}(e.exports=n).prototype.on=function(t,e,i){return(this.t[t]||(this.t[t]=[])).push({fn:e,ctx:i||this}),this},n.prototype.off=function(t,e){if(t===g)this.t={};else if(e===g)this.t[t]=[];else for(var i=this.t[t],n=0;n<i.length;)i[n].fn===e?i.splice(n,1):++n;return this},n.prototype.emit=function(t){var e=this.t[t];if(e){for(var i=[],n=1;n<arguments.length;)i.push(arguments[n++]);for(n=0;n<e.length;)e[n].fn.apply(e[n++].ctx,i)}return this}},{}],5:[function(t,e,i){e.exports=s;var n=t(1),r=t(7)("fs");function s(t,e,i){return e="function"==typeof e?(i=e,{}):e||{},i?!e.xhr&&r&&r.readFile?r.readFile(t,(function(n,r){return n&&"undefined"!=typeof XMLHttpRequest?s.xhr(t,e,i):n?i(n):i(null,e.binary?r:r.toString("utf8"))})):s.xhr(t,e,i):n(s,this,t,e)}s.xhr=function(t,e,i){var n=new XMLHttpRequest;n.onreadystatechange=function(){if(4!==n.readyState)return g;if(0!==n.status&&200!==n.status)return i(Error("status "+n.status));if(e.binary){if(!(t=n.response))for(var t=[],r=0;r<n.responseText.length;++r)t.push(255&n.responseText.charCodeAt(r));return i(null,"undefined"!=typeof Uint8Array?new Uint8Array(t):t)}return i(null,n.responseText)},e.binary&&("overrideMimeType"in n&&n.overrideMimeType("text/plain; charset=x-user-defined"),n.responseType="arraybuffer"),n.open("GET",t),n.send()}},{1:1,7:7}],6:[function(t,e,i){function n(t){function e(t,e,i,n){var r=e<0?1:0;t(0===(e=r?-e:e)?0<1/e?0:2147483648:isNaN(e)?2143289344:34028234663852886e22<e?(r<<31|2139095040)>>>0:e<11754943508222875e-54?(r<<31|Math.round(e/1401298464324817e-60))>>>0:(r<<31|127+(t=Math.floor(Math.log(e)/Math.LN2))<<23|8388607&Math.round(e*Math.pow(2,-t)*8388608))>>>0,i,n)}function i(t,e,i){return e=2*((t=t(e,i))>>31)+1,i=t>>>23&255,t&=8388607,255==i?t?NaN:1/0*e:0==i?1401298464324817e-60*e*t:e*Math.pow(2,i-150)*(8388608+t)}function n(t,e,i){y[0]=t,e[i]=u[0],e[i+1]=u[1],e[i+2]=u[2],e[i+3]=u[3]}function d(t,e,i){y[0]=t,e[i]=u[3],e[i+1]=u[2],e[i+2]=u[1],e[i+3]=u[0]}function a(t,e){return u[0]=t[e],u[1]=t[e+1],u[2]=t[e+2],u[3]=t[e+3],y[0]}function l(t,e){return u[3]=t[e],u[2]=t[e+1],u[1]=t[e+2],u[0]=t[e+3],y[0]}var y,u,f,c,h;function g(t,e,i,n,r,s){var o,p=n<0?1:0;0===(n=p?-n:n)?(t(0,r,s+e),t(0<1/n?0:2147483648,r,s+i)):isNaN(n)?(t(0,r,s+e),t(2146959360,r,s+i)):17976931348623157e292<n?(t(0,r,s+e),t((p<<31|2146435072)>>>0,r,s+i)):n<22250738585072014e-324?(t((o=n/5e-324)>>>0,r,s+e),t((p<<31|o/4294967296)>>>0,r,s+i)):(t(4503599627370496*(o=n*Math.pow(2,-(n=1024===(n=Math.floor(Math.log(n)/Math.LN2))?1023:n)))>>>0,r,s+e),t((p<<31|n+1023<<20|1048576*o&1048575)>>>0,r,s+i))}function m(t,e,i,n,r){return e=t(n,r+e),n=2*((t=t(n,r+i))>>31)+1,i=4294967296*(1048575&t)+e,2047==(r=t>>>20&2047)?i?NaN:1/0*n:0==r?5e-324*n*i:n*Math.pow(2,r-1075)*(i+4503599627370496)}function b(t,e,i){f[0]=t,e[i]=c[0],e[i+1]=c[1],e[i+2]=c[2],e[i+3]=c[3],e[i+4]=c[4],e[i+5]=c[5],e[i+6]=c[6],e[i+7]=c[7]}function v(t,e,i){f[0]=t,e[i]=c[7],e[i+1]=c[6],e[i+2]=c[5],e[i+3]=c[4],e[i+4]=c[3],e[i+5]=c[2],e[i+6]=c[1],e[i+7]=c[0]}function I(t,e){return c[0]=t[e],c[1]=t[e+1],c[2]=t[e+2],c[3]=t[e+3],c[4]=t[e+4],c[5]=t[e+5],c[6]=t[e+6],c[7]=t[e+7],f[0]}function T(t,e){return c[7]=t[e],c[6]=t[e+1],c[5]=t[e+2],c[4]=t[e+3],c[3]=t[e+4],c[2]=t[e+5],c[1]=t[e+6],c[0]=t[e+7],f[0]}return"undefined"!=typeof Float32Array?(y=new Float32Array([-0]),h=128===(u=new Uint8Array(y.buffer))[3],t.writeFloatLE=h?n:d,t.writeFloatBE=h?d:n,t.readFloatLE=h?a:l,t.readFloatBE=h?l:a):(t.writeFloatLE=e.bind(null,r),t.writeFloatBE=e.bind(null,s),t.readFloatLE=i.bind(null,o),t.readFloatBE=i.bind(null,p)),"undefined"!=typeof Float64Array?(f=new Float64Array([-0]),h=128===(c=new Uint8Array(f.buffer))[7],t.writeDoubleLE=h?b:v,t.writeDoubleBE=h?v:b,t.readDoubleLE=h?I:T,t.readDoubleBE=h?T:I):(t.writeDoubleLE=g.bind(null,r,0,4),t.writeDoubleBE=g.bind(null,s,4,0),t.readDoubleLE=m.bind(null,o,0,4),t.readDoubleBE=m.bind(null,p,4,0)),t}function r(t,e,i){e[i]=255&t,e[i+1]=t>>>8&255,e[i+2]=t>>>16&255,e[i+3]=t>>>24}function s(t,e,i){e[i]=t>>>24,e[i+1]=t>>>16&255,e[i+2]=t>>>8&255,e[i+3]=255&t}function o(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function p(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}e.exports=n(n)},{}],7:[function(t,i,n){function r(t){try{var i=eval("require")(t);if(i&&(i.length||Object.keys(i).length))return i}catch(t){}return null}i.exports=r},{}],8:[function(t,e,i){var n=i.isAbsolute=function(t){return/^(?:\/|\w+:)/.test(t)},r=i.normalize=function(t){var e=(t=t.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),i=n(t);t="",i&&(t=e.shift()+"/");for(var r=0;r<e.length;)".."===e[r]?0<r&&".."!==e[r-1]?e.splice(--r,2):i?e.splice(r,1):++r:"."===e[r]?e.splice(r,1):++r;return t+e.join("/")};i.resolve=function(t,e,i){return i||(e=r(e)),!n(e)&&(t=(t=i?t:r(t)).replace(/(?:\/|^)[^/]+$/,"")).length?r(t+"/"+e):e}},{}],9:[function(t,e,i){e.exports=function(t,e,i){var n=i||8192,r=n>>>1,s=null,o=n;return function(i){return i<1||r<i?t(i):(n<o+i&&(s=t(n),o=0),i=e.call(s,o,o+=i),7&o&&(o=1+(7|o)),i)}}},{}],10:[function(t,e,i){i.length=function(t){for(var e,i=0,n=0;n<t.length;++n)(e=t.charCodeAt(n))<128?i+=1:e<2048?i+=2:55296==(64512&e)&&56320==(64512&t.charCodeAt(n+1))?(++n,i+=4):i+=3;return i},i.read=function(t,e,i){if(i-e<1)return"";for(var n,r=null,s=[],o=0;e<i;)(n=t[e++])<128?s[o++]=n:191<n&&n<224?s[o++]=(31&n)<<6|63&t[e++]:239<n&&n<365?(n=((7&n)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,s[o++]=55296+(n>>10),s[o++]=56320+(1023&n)):s[o++]=(15&n)<<12|(63&t[e++])<<6|63&t[e++],8191<o&&((r=r||[]).push(String.fromCharCode.apply(String,s)),o=0);return r?(o&&r.push(String.fromCharCode.apply(String,s.slice(0,o))),r.join("")):String.fromCharCode.apply(String,s.slice(0,o))},i.write=function(t,e,i){for(var n,r,s=i,o=0;o<t.length;++o)(n=t.charCodeAt(o))<128?e[i++]=n:(n<2048?e[i++]=n>>6|192:(55296==(64512&n)&&56320==(64512&(r=t.charCodeAt(o+1)))?(++o,e[i++]=(n=65536+((1023&n)<<10)+(1023&r))>>18|240,e[i++]=n>>12&63|128):e[i++]=n>>12|224,e[i++]=n>>6&63|128),e[i++]=63&n|128);return i-s}},{}],11:[function(t,e,i){var n=t(14),r=t(33);function s(t,e,i,r){var s=!1;if(e.resolvedType)if(e.resolvedType instanceof n){t("switch(d%s){",r);for(var o=e.resolvedType.values,p=Object.keys(o),d=0;d<p.length;++d)o[p[d]]!==e.typeDefault||s||(t("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',r,r,r),e.repeated||t("break"),s=!0),t("case%j:",p[d])("case %i:",o[p[d]])("m%s=%j",r,o[p[d]])("break");t("}")}else t('if(typeof d%s!=="object")',r)("throw TypeError(%j)",e.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",r,i,r);else{var a=!1;switch(e.type){case"double":case"float":t("m%s=Number(d%s)",r,r);break;case"uint32":case"fixed32":t("m%s=d%s>>>0",r,r);break;case"int32":case"sint32":case"sfixed32":t("m%s=d%s|0",r,r);break;case"uint64":a=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":t("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",r,r,a)('else if(typeof d%s==="string")',r)("m%s=parseInt(d%s,10)",r,r)('else if(typeof d%s==="number")',r)("m%s=d%s",r,r)('else if(typeof d%s==="object")',r)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",r,r,r,a?"true":"");break;case"bytes":t('if(typeof d%s==="string")',r)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",r,r,r)("else if(d%s.length >= 0)",r)("m%s=d%s",r,r);break;case"string":t("m%s=String(d%s)",r,r);break;case"bool":t("m%s=Boolean(d%s)",r,r)}}return t}function o(t,e,i,r){if(e.resolvedType)e.resolvedType instanceof n?t("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",r,i,r,r,i,r,r):t("d%s=types[%i].toObject(m%s,o)",r,i,r);else{var s=!1;switch(e.type){case"double":case"float":t("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",r,r,r,r);break;case"uint64":s=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":t('if(typeof m%s==="number")',r)("d%s=o.longs===String?String(m%s):m%s",r,r,r)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",r,r,r,r,s?"true":"",r);break;case"bytes":t("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",r,r,r,r,r);break;default:t("d%s=m%s",r,r)}}return t}i.fromObject=function(t){var e=t.fieldsArray,i=r.codegen(["d"],t.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!e.length)return i("return new this.ctor");i("var m=new this.ctor");for(var o=0;o<e.length;++o){var p=e[o].resolve(),d=r.safeProp(p.name);p.map?(i("if(d%s){",d)('if(typeof d%s!=="object")',d)("throw TypeError(%j)",p.fullName+": object expected")("m%s={}",d)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",d),s(i,p,o,d+"[ks[i]]")("}")("}")):p.repeated?(i("if(d%s){",d)("if(!Array.isArray(d%s))",d)("throw TypeError(%j)",p.fullName+": array expected")("m%s=[]",d)("for(var i=0;i<d%s.length;++i){",d),s(i,p,o,d+"[i]")("}")("}")):(p.resolvedType instanceof n||i("if(d%s!=null){",d),s(i,p,o,d),p.resolvedType instanceof n||i("}"))}return i("return m")},i.toObject=function(t){var e=t.fieldsArray.slice().sort(r.compareFieldsById);if(!e.length)return r.codegen()("return {}");for(var i=r.codegen(["m","o"],t.name+"$toObject")("if(!o)")("o={}")("var d={}"),s=[],p=[],d=[],a=0;a<e.length;++a)e[a].partOf||(e[a].resolve().repeated?s:e[a].map?p:d).push(e[a]);if(s.length){for(i("if(o.arrays||o.defaults){"),a=0;a<s.length;++a)i("d%s=[]",r.safeProp(s[a].name));i("}")}if(p.length){for(i("if(o.objects||o.defaults){"),a=0;a<p.length;++a)i("d%s={}",r.safeProp(p[a].name));i("}")}if(d.length){for(i("if(o.defaults){"),a=0;a<d.length;++a){var l,y=d[a],u=r.safeProp(y.name);y.resolvedType instanceof n?i("d%s=o.enums===String?%j:%j",u,y.resolvedType.valuesById[y.typeDefault],y.typeDefault):y.long?i("if(util.Long){")("var n=new util.Long(%i,%i,%j)",y.typeDefault.low,y.typeDefault.high,y.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",u)("}else")("d%s=o.longs===String?%j:%i",u,y.typeDefault.toString(),y.typeDefault.toNumber()):y.bytes?(l="["+Array.prototype.slice.call(y.typeDefault).join(",")+"]",i("if(o.bytes===String)d%s=%j",u,String.fromCharCode.apply(String,y.typeDefault))("else{")("d%s=%s",u,l)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",u,u)("}")):i("d%s=%j",u,y.typeDefault)}i("}")}var f=!1;for(a=0;a<e.length;++a){y=e[a];var c=t.i.indexOf(y);u=r.safeProp(y.name),y.map?(f||(f=!0,i("var ks2")),i("if(m%s&&(ks2=Object.keys(m%s)).length){",u,u)("d%s={}",u)("for(var j=0;j<ks2.length;++j){"),o(i,y,c,u+"[ks2[j]]")("}")):y.repeated?(i("if(m%s&&m%s.length){",u,u)("d%s=[]",u)("for(var j=0;j<m%s.length;++j){",u),o(i,y,c,u+"[j]")("}")):(i("if(m%s!=null&&m.hasOwnProperty(%j)){",u,y.name),o(i,y,c,u),y.partOf&&i("if(o.oneofs)")("d%s=%j",r.safeProp(y.partOf.name),y.name)),i("}")}return i("return d")}},{14:14,33:33}],12:[function(t,e,i){e.exports=function(t){var e=s.codegen(["r","l"],t.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(t.fieldsArray.filter((function(t){return t.map})).length?",k,value":""))("while(r.pos<c){")("var t=r.uint32()");t.group&&e("if((t&7)===4)")("break"),e("switch(t>>>3){");for(var i=0;i<t.fieldsArray.length;++i){var o=t.i[i].resolve(),p=o.resolvedType instanceof n?"int32":o.type,d="m"+s.safeProp(o.name);e("case %i: {",o.id),o.map?(e("if(%s===util.emptyObject)",d)("%s={}",d)("var c2 = r.uint32()+r.pos"),r.defaults[o.keyType]!==g?e("k=%j",r.defaults[o.keyType]):e("k=null"),r.defaults[p]!==g?e("value=%j",r.defaults[p]):e("value=null"),e("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",o.keyType)("case 2:"),r.basic[p]===g?e("value=types[%i].decode(r,r.uint32())",i):e("value=r.%s()",p),e("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),r.long[o.keyType]!==g?e('%s[typeof k==="object"?util.longToHash(k):k]=value',d):e("%s[k]=value",d)):o.repeated?(e("if(!(%s&&%s.length))",d,d)("%s=[]",d),r.packed[p]!==g&&e("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",d,p)("}else"),r.basic[p]===g?e(o.resolvedType.group?"%s.push(types[%i].decode(r))":"%s.push(types[%i].decode(r,r.uint32()))",d,i):e("%s.push(r.%s())",d,p)):r.basic[p]===g?e(o.resolvedType.group?"%s=types[%i].decode(r)":"%s=types[%i].decode(r,r.uint32())",d,i):e("%s=r.%s()",d,p),e("break")("}")}for(e("default:")("r.skipType(t&7)")("break")("}")("}"),i=0;i<t.i.length;++i){var a=t.i[i];a.required&&e("if(!m.hasOwnProperty(%j))",a.name)("throw util.ProtocolError(%j,{instance:m})","missing required '"+a.name+"'")}return e("return m")};var n=t(14),r=t(32),s=t(33)},{14:14,32:32,33:33}],13:[function(t,e,i){e.exports=function(t){for(var e,i=s.codegen(["m","w"],t.name+"$encode")("if(!w)")("w=Writer.create()"),p=t.fieldsArray.slice().sort(s.compareFieldsById),d=0;d<p.length;++d){var a=p[d].resolve(),l=t.i.indexOf(a),y=a.resolvedType instanceof n?"int32":a.type,u=r.basic[y];e="m"+s.safeProp(a.name),a.map?(i("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",e,a.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",e)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(a.id<<3|2)>>>0,8|r.mapKey[a.keyType],a.keyType),u===g?i("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,e):i(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|u,y,e),i("}")("}")):a.repeated?(i("if(%s!=null&&%s.length){",e,e),a.packed&&r.packed[y]!==g?i("w.uint32(%i).fork()",(a.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",e)("w.%s(%s[i])",y,e)("w.ldelim()"):(i("for(var i=0;i<%s.length;++i)",e),u===g?o(i,a,l,e+"[i]"):i("w.uint32(%i).%s(%s[i])",(a.id<<3|u)>>>0,y,e)),i("}")):(a.optional&&i("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",e,a.name),u===g?o(i,a,l,e):i("w.uint32(%i).%s(%s)",(a.id<<3|u)>>>0,y,e))}return i("return w")};var n=t(14),r=t(32),s=t(33);function o(t,e,i,n){e.resolvedType.group?t("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",i,n,(e.id<<3|3)>>>0,(e.id<<3|4)>>>0):t("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",i,n,(e.id<<3|2)>>>0)}},{14:14,32:32,33:33}],14:[function(t,e,i){e.exports=o;var n=t(22),r=(((o.prototype=Object.create(n.prototype)).constructor=o).className="Enum",t(21)),s=t(33);function o(t,e,i,r,s,o){if(n.call(this,t,i),e&&"object"!=typeof e)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=r,this.comments=s||{},this.valuesOptions=o,this.reserved=g,e)for(var p=Object.keys(e),d=0;d<p.length;++d)"number"==typeof e[p[d]]&&(this.valuesById[this.values[p[d]]=e[p[d]]]=p[d])}o.fromJSON=function(t,e){return(t=new o(t,e.values,e.options,e.comment,e.comments)).reserved=e.reserved,t},o.prototype.toJSON=function(t){return t=!!t&&!!t.keepComments,s.toObject(["options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:g,"comment",t?this.comment:g,"comments",t?this.comments:g])},o.prototype.add=function(t,e,i,n){if(!s.isString(t))throw TypeError("name must be a string");if(!s.isInteger(e))throw TypeError("id must be an integer");if(this.values[t]!==g)throw Error("duplicate name '"+t+"' in "+this);if(this.isReservedId(e))throw Error("id "+e+" is reserved in "+this);if(this.isReservedName(t))throw Error("name '"+t+"' is reserved in "+this);if(this.valuesById[e]!==g){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+e+" in "+this);this.values[t]=e}else this.valuesById[this.values[t]=e]=t;return n&&(this.valuesOptions===g&&(this.valuesOptions={}),this.valuesOptions[t]=n||null),this.comments[t]=i||null,this},o.prototype.remove=function(t){if(!s.isString(t))throw TypeError("name must be a string");var e=this.values[t];if(null==e)throw Error("name '"+t+"' does not exist in "+this);return delete this.valuesById[e],delete this.values[t],delete this.comments[t],this.valuesOptions&&delete this.valuesOptions[t],this},o.prototype.isReservedId=function(t){return r.isReservedId(this.reserved,t)},o.prototype.isReservedName=function(t){return r.isReservedName(this.reserved,t)}},{21:21,22:22,33:33}],15:[function(t,e,i){e.exports=a;var n,r=t(22),s=(((a.prototype=Object.create(r.prototype)).constructor=a).className="Field",t(14)),o=t(32),p=t(33),d=/^required|optional|repeated$/;function a(t,e,i,n,s,a,l){if(p.isObject(n)?(l=s,a=n,n=s=g):p.isObject(s)&&(l=a,a=s,s=g),r.call(this,t,a),!p.isInteger(e)||e<0)throw TypeError("id must be a non-negative integer");if(!p.isString(i))throw TypeError("type must be a string");if(n!==g&&!d.test(n=n.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(s!==g&&!p.isString(s))throw TypeError("extend must be a string");this.rule=(n="proto3_optional"===n?"optional":n)&&"optional"!==n?n:g,this.type=i,this.id=e,this.extend=s||g,this.required="required"===n,this.optional=!this.required,this.repeated="repeated"===n,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!p.Long&&o.long[i]!==g,this.bytes="bytes"===i,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.n=null,this.comment=l}a.fromJSON=function(t,e){return new a(t,e.id,e.type,e.rule,e.extend,e.options,e.comment)},Object.defineProperty(a.prototype,"packed",{get:function(){return null===this.n&&(this.n=!1!==this.getOption("packed")),this.n}}),a.prototype.setOption=function(t,e,i){return"packed"===t&&(this.n=null),r.prototype.setOption.call(this,t,e,i)},a.prototype.toJSON=function(t){return t=!!t&&!!t.keepComments,p.toObject(["rule","optional"!==this.rule&&this.rule||g,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:g])},a.prototype.resolve=function(){var t;return this.resolved?this:((this.typeDefault=o.defaults[this.type])===g?(this.resolvedType=(this.declaringField||this).parent.lookupTypeOrEnum(this.type),this.resolvedType instanceof n?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof s&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(!0!==this.options.packed&&(this.options.packed===g||!this.resolvedType||this.resolvedType instanceof s)||delete this.options.packed,Object.keys(this.options).length||(this.options=g)),this.long?(this.typeDefault=p.Long.fromNumber(this.typeDefault,"u"==(this.type[0]||"")),Object.freeze&&Object.freeze(this.typeDefault)):this.bytes&&"string"==typeof this.typeDefault&&(p.base64.test(this.typeDefault)?p.base64.decode(this.typeDefault,t=p.newBuffer(p.base64.length(this.typeDefault)),0):p.utf8.write(this.typeDefault,t=p.newBuffer(p.utf8.length(this.typeDefault)),0),this.typeDefault=t),this.map?this.defaultValue=p.emptyObject:this.repeated?this.defaultValue=p.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof n&&(this.parent.ctor.prototype[this.name]=this.defaultValue),r.prototype.resolve.call(this))},a.d=function(t,e,i,n){return"function"==typeof e?e=p.decorateType(e).name:e&&"object"==typeof e&&(e=p.decorateEnum(e).name),function(r,s){p.decorateType(r.constructor).add(new a(s,t,e,i,{default:n}))}},a.r=function(t){n=t}},{14:14,22:22,32:32,33:33}],16:[function(t,e,i){var n=e.exports=t(17);n.build="light",n.load=function(t,e,i){return(e="function"==typeof e?(i=e,new n.Root):e||new n.Root).load(t,i)},n.loadSync=function(t,e){return(e=e||new n.Root).loadSync(t)},n.encoder=t(13),n.decoder=t(12),n.verifier=t(36),n.converter=t(11),n.ReflectionObject=t(22),n.Namespace=t(21),n.Root=t(26),n.Enum=t(14),n.Type=t(31),n.Field=t(15),n.OneOf=t(23),n.MapField=t(18),n.Service=t(30),n.Method=t(20),n.Message=t(19),n.wrappers=t(37),n.types=t(32),n.util=t(33),n.ReflectionObject.r(n.Root),n.Namespace.r(n.Type,n.Service,n.Enum),n.Root.r(n.Type),n.Field.r(n.Type)},{11:11,12:12,13:13,14:14,15:15,17:17,18:18,19:19,20:20,21:21,22:22,23:23,26:26,30:30,31:31,32:32,33:33,36:36,37:37}],17:[function(t,e,i){var n=i;function r(){n.util.r(),n.Writer.r(n.BufferWriter),n.Reader.r(n.BufferReader)}n.build="minimal",n.Writer=t(38),n.BufferWriter=t(39),n.Reader=t(24),n.BufferReader=t(25),n.util=t(35),n.rpc=t(28),n.roots=t(27),n.configure=r,r()},{24:24,25:25,27:27,28:28,35:35,38:38,39:39}],18:[function(t,e,i){e.exports=o;var n=t(15),r=(((o.prototype=Object.create(n.prototype)).constructor=o).className="MapField",t(32)),s=t(33);function o(t,e,i,r,o,p){if(n.call(this,t,e,r,g,g,o,p),!s.isString(i))throw TypeError("keyType must be a string");this.keyType=i,this.resolvedKeyType=null,this.map=!0}o.fromJSON=function(t,e){return new o(t,e.id,e.keyType,e.type,e.options,e.comment)},o.prototype.toJSON=function(t){return t=!!t&&!!t.keepComments,s.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:g])},o.prototype.resolve=function(){if(this.resolved)return this;if(r.mapKey[this.keyType]===g)throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},o.d=function(t,e,i){return"function"==typeof i?i=s.decorateType(i).name:i&&"object"==typeof i&&(i=s.decorateEnum(i).name),function(n,r){s.decorateType(n.constructor).add(new o(r,t,e,i))}}},{15:15,32:32,33:33}],19:[function(t,e,i){e.exports=r;var n=t(35);function r(t){if(t)for(var e=Object.keys(t),i=0;i<e.length;++i)this[e[i]]=t[e[i]]}r.create=function(t){return this.$type.create(t)},r.encode=function(t,e){return this.$type.encode(t,e)},r.encodeDelimited=function(t,e){return this.$type.encodeDelimited(t,e)},r.decode=function(t){return this.$type.decode(t)},r.decodeDelimited=function(t){return this.$type.decodeDelimited(t)},r.verify=function(t){return this.$type.verify(t)},r.fromObject=function(t){return this.$type.fromObject(t)},r.toObject=function(t,e){return this.$type.toObject(t,e)},r.prototype.toJSON=function(){return this.$type.toObject(this,n.toJSONOptions)}},{35:35}],20:[function(t,e,i){e.exports=s;var n=t(22),r=(((s.prototype=Object.create(n.prototype)).constructor=s).className="Method",t(33));function s(t,e,i,s,o,p,d,a,l){if(r.isObject(o)?(d=o,o=p=g):r.isObject(p)&&(d=p,p=g),e!==g&&!r.isString(e))throw TypeError("type must be a string");if(!r.isString(i))throw TypeError("requestType must be a string");if(!r.isString(s))throw TypeError("responseType must be a string");n.call(this,t,d),this.type=e||"rpc",this.requestType=i,this.requestStream=!!o||g,this.responseType=s,this.responseStream=!!p||g,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=a,this.parsedOptions=l}s.fromJSON=function(t,e){return new s(t,e.type,e.requestType,e.responseType,e.requestStream,e.responseStream,e.options,e.comment,e.parsedOptions)},s.prototype.toJSON=function(t){return t=!!t&&!!t.keepComments,r.toObject(["type","rpc"!==this.type&&this.type||g,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",t?this.comment:g,"parsedOptions",this.parsedOptions])},s.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),n.prototype.resolve.call(this))}},{22:22,33:33}],21:[function(t,e,i){e.exports=y;var n,r,s,o=t(22),p=(((y.prototype=Object.create(o.prototype)).constructor=y).className="Namespace",t(15)),d=t(33),a=t(23);function l(t,e){if(!t||!t.length)return g;for(var i={},n=0;n<t.length;++n)i[t[n].name]=t[n].toJSON(e);return i}function y(t,e){o.call(this,t,e),this.nested=g,this.e=null}function u(t){return t.e=null,t}y.fromJSON=function(t,e){return new y(t,e.options).addJSON(e.nested)},y.arrayToJSON=l,y.isReservedId=function(t,e){if(t)for(var i=0;i<t.length;++i)if("string"!=typeof t[i]&&t[i][0]<=e&&t[i][1]>e)return!0;return!1},y.isReservedName=function(t,e){if(t)for(var i=0;i<t.length;++i)if(t[i]===e)return!0;return!1},Object.defineProperty(y.prototype,"nestedArray",{get:function(){return this.e||(this.e=d.toArray(this.nested))}}),y.prototype.toJSON=function(t){return d.toObject(["options",this.options,"nested",l(this.nestedArray,t)])},y.prototype.addJSON=function(t){if(t)for(var e,i=Object.keys(t),o=0;o<i.length;++o)e=t[i[o]],this.add((e.fields!==g?n:e.values!==g?s:e.methods!==g?r:e.id!==g?p:y).fromJSON(i[o],e));return this},y.prototype.get=function(t){return this.nested&&this.nested[t]||null},y.prototype.getEnum=function(t){if(this.nested&&this.nested[t]instanceof s)return this.nested[t].values;throw Error("no such enum: "+t)},y.prototype.add=function(t){if(!(t instanceof p&&t.extend!==g||t instanceof n||t instanceof a||t instanceof s||t instanceof r||t instanceof y))throw TypeError("object must be a valid nested object");if(this.nested){var e=this.get(t.name);if(e){if(!(e instanceof y&&t instanceof y)||e instanceof n||e instanceof r)throw Error("duplicate name '"+t.name+"' in "+this);for(var i=e.nestedArray,o=0;o<i.length;++o)t.add(i[o]);this.remove(e),this.nested||(this.nested={}),t.setOptions(e.options,!0)}}else this.nested={};return(this.nested[t.name]=t).onAdd(this),u(this)},y.prototype.remove=function(t){if(!(t instanceof o))throw TypeError("object must be a ReflectionObject");if(t.parent!==this)throw Error(t+" is not a member of "+this);return delete this.nested[t.name],Object.keys(this.nested).length||(this.nested=g),t.onRemove(this),u(this)},y.prototype.define=function(t,e){if(d.isString(t))t=t.split(".");else if(!Array.isArray(t))throw TypeError("illegal path");if(t&&t.length&&""===t[0])throw Error("path must be relative");for(var i=this;0<t.length;){var n=t.shift();if(i.nested&&i.nested[n]){if(!((i=i.nested[n])instanceof y))throw Error("path conflicts with non-namespace objects")}else i.add(i=new y(n))}return e&&i.addJSON(e),i},y.prototype.resolveAll=function(){for(var t=this.nestedArray,e=0;e<t.length;)t[e]instanceof y?t[e++].resolveAll():t[e++].resolve();return this.resolve()},y.prototype.lookup=function(t,e,i){if("boolean"==typeof e?(i=e,e=g):e&&!Array.isArray(e)&&(e=[e]),d.isString(t)&&t.length){if("."===t)return this.root;t=t.split(".")}else if(!t.length)return this;if(""===t[0])return this.root.lookup(t.slice(1),e);var n=this.get(t[0]);if(n){if(1===t.length){if(!e||~e.indexOf(n.constructor))return n}else if(n instanceof y&&(n=n.lookup(t.slice(1),e,!0)))return n}else for(var r=0;r<this.nestedArray.length;++r)if(this.e[r]instanceof y&&(n=this.e[r].lookup(t,e,!0)))return n;return null===this.parent||i?null:this.parent.lookup(t,e)},y.prototype.lookupType=function(t){var e=this.lookup(t,[n]);if(e)return e;throw Error("no such type: "+t)},y.prototype.lookupEnum=function(t){var e=this.lookup(t,[s]);if(e)return e;throw Error("no such Enum '"+t+"' in "+this)},y.prototype.lookupTypeOrEnum=function(t){var e=this.lookup(t,[n,s]);if(e)return e;throw Error("no such Type or Enum '"+t+"' in "+this)},y.prototype.lookupService=function(t){var e=this.lookup(t,[r]);if(e)return e;throw Error("no such Service '"+t+"' in "+this)},y.r=function(t,e,i){n=t,r=e,s=i}},{15:15,22:22,23:23,33:33}],22:[function(t,e,i){(e.exports=s).className="ReflectionObject";var n,r=t(33);function s(t,e){if(!r.isString(t))throw TypeError("name must be a string");if(e&&!r.isObject(e))throw TypeError("options must be an object");this.options=e,this.parsedOptions=null,this.name=t,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(s.prototype,{root:{get:function(){for(var t=this;null!==t.parent;)t=t.parent;return t}},fullName:{get:function(){for(var t=[this.name],e=this.parent;e;)t.unshift(e.name),e=e.parent;return t.join(".")}}}),s.prototype.toJSON=function(){throw Error()},s.prototype.onAdd=function(t){this.parent&&this.parent!==t&&this.parent.remove(this),this.parent=t,this.resolved=!1,(t=t.root)instanceof n&&t.u(this)},s.prototype.onRemove=function(t){(t=t.root)instanceof n&&t.o(this),this.parent=null,this.resolved=!1},s.prototype.resolve=function(){return this.resolved||this.root instanceof n&&(this.resolved=!0),this},s.prototype.getOption=function(t){return this.options?this.options[t]:g},s.prototype.setOption=function(t,e,i){return i&&this.options&&this.options[t]!==g||((this.options||(this.options={}))[t]=e),this},s.prototype.setParsedOption=function(t,e,i){this.parsedOptions||(this.parsedOptions=[]);var n,s,o=this.parsedOptions;return i?(n=o.find((function(e){return Object.prototype.hasOwnProperty.call(e,t)})))?(s=n[t],r.setProperty(s,i,e)):((n={})[t]=r.setProperty({},i,e),o.push(n)):((s={})[t]=e,o.push(s)),this},s.prototype.setOptions=function(t,e){if(t)for(var i=Object.keys(t),n=0;n<i.length;++n)this.setOption(i[n],t[i[n]],e);return this},s.prototype.toString=function(){var t=this.constructor.className,e=this.fullName;return e.length?t+" "+e:t},s.r=function(t){n=t}},{33:33}],23:[function(t,e,i){e.exports=o;var n=t(22),r=(((o.prototype=Object.create(n.prototype)).constructor=o).className="OneOf",t(15)),s=t(33);function o(t,e,i,r){if(Array.isArray(e)||(i=e,e=g),n.call(this,t,i),e!==g&&!Array.isArray(e))throw TypeError("fieldNames must be an Array");this.oneof=e||[],this.fieldsArray=[],this.comment=r}function p(t){if(t.parent)for(var e=0;e<t.fieldsArray.length;++e)t.fieldsArray[e].parent||t.parent.add(t.fieldsArray[e])}o.fromJSON=function(t,e){return new o(t,e.oneof,e.options,e.comment)},o.prototype.toJSON=function(t){return t=!!t&&!!t.keepComments,s.toObject(["options",this.options,"oneof",this.oneof,"comment",t?this.comment:g])},o.prototype.add=function(t){if(t instanceof r)return t.parent&&t.parent!==this.parent&&t.parent.remove(t),this.oneof.push(t.name),this.fieldsArray.push(t),p(t.partOf=this),this;throw TypeError("field must be a Field")},o.prototype.remove=function(t){if(!(t instanceof r))throw TypeError("field must be a Field");var e=this.fieldsArray.indexOf(t);if(e<0)throw Error(t+" is not a member of "+this);return this.fieldsArray.splice(e,1),-1<(e=this.oneof.indexOf(t.name))&&this.oneof.splice(e,1),t.partOf=null,this},o.prototype.onAdd=function(t){n.prototype.onAdd.call(this,t);for(var e=0;e<this.oneof.length;++e){var i=t.get(this.oneof[e]);i&&!i.partOf&&(i.partOf=this).fieldsArray.push(i)}p(this)},o.prototype.onRemove=function(t){for(var e,i=0;i<this.fieldsArray.length;++i)(e=this.fieldsArray[i]).parent&&e.parent.remove(e);n.prototype.onRemove.call(this,t)},o.d=function(){for(var t=Array(arguments.length),e=0;e<arguments.length;)t[e]=arguments[e++];return function(e,i){s.decorateType(e.constructor).add(new o(i,t)),Object.defineProperty(e,i,{get:s.oneOfGetter(t),set:s.oneOfSetter(t)})}}},{15:15,22:22,33:33}],24:[function(t,e,i){e.exports=d;var n,r=t(35),s=r.LongBits,o=r.utf8;function p(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function d(t){this.buf=t,this.pos=0,this.len=t.length}function a(){return r.Buffer?function(t){return(d.create=function(t){return r.Buffer.isBuffer(t)?new n(t):y(t)})(t)}:y}var l,y="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new d(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new d(t);throw Error("illegal buffer")};function u(){var t=new s(0,0),e=0;if(!(4<this.len-this.pos)){for(;e<3;++e){if(this.pos>=this.len)throw p(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*e)>>>0,t}for(;e<4;++e)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;if(e=0,4<this.len-this.pos){for(;e<5;++e)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw p(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function f(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}function c(){if(this.pos+8>this.len)throw p(this,8);return new s(f(this.buf,this.pos+=4),f(this.buf,this.pos+=4))}d.create=a(),d.prototype.h=r.Array.prototype.subarray||r.Array.prototype.slice,d.prototype.uint32=(l=4294967295,function(){if(l=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(l=(l|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128||(l=(l|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128||(l=(l|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128||(l=(l|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128||!((this.pos+=5)>this.len))))))return l;throw this.pos=this.len,p(this,10)}),d.prototype.int32=function(){return 0|this.uint32()},d.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)|0},d.prototype.bool=function(){return 0!==this.uint32()},d.prototype.fixed32=function(){if(this.pos+4>this.len)throw p(this,4);return f(this.buf,this.pos+=4)},d.prototype.sfixed32=function(){if(this.pos+4>this.len)throw p(this,4);return 0|f(this.buf,this.pos+=4)},d.prototype.float=function(){if(this.pos+4>this.len)throw p(this,4);var t=r.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},d.prototype.double=function(){if(this.pos+8>this.len)throw p(this,4);var t=r.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},d.prototype.bytes=function(){var t=this.uint32(),e=this.pos,i=this.pos+t;if(i>this.len)throw p(this,t);return this.pos+=t,Array.isArray(this.buf)?this.buf.slice(e,i):e===i?new this.buf.constructor(0):this.h.call(this.buf,e,i)},d.prototype.string=function(){var t=this.bytes();return o.read(t,0,t.length)},d.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw p(this,t);this.pos+=t}else do{if(this.pos>=this.len)throw p(this)}while(128&this.buf[this.pos++]);return this},d.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},d.r=function(t){n=t,d.create=a(),n.r();var e=r.Long?"toLong":"toNumber";r.merge(d.prototype,{int64:function(){return u.call(this)[e](!1)},uint64:function(){return u.call(this)[e](!0)},sint64:function(){return u.call(this).zzDecode()[e](!1)},fixed64:function(){return c.call(this)[e](!0)},sfixed64:function(){return c.call(this)[e](!1)}})}},{35:35}],25:[function(t,e,i){e.exports=s;var n=t(24),r=((s.prototype=Object.create(n.prototype)).constructor=s,t(35));function s(t){n.call(this,t)}s.r=function(){r.Buffer&&(s.prototype.h=r.Buffer.prototype.slice)},s.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},s.r()},{24:24,35:35}],26:[function(t,e,i){e.exports=y;var n,r,s,o=t(21),p=(((y.prototype=Object.create(o.prototype)).constructor=y).className="Root",t(15)),d=t(14),a=t(23),l=t(33);function y(t){o.call(this,"",t),this.deferred=[],this.files=[]}function u(){}y.fromJSON=function(t,e){return e=e||new y,t.options&&e.setOptions(t.options),e.addJSON(t.nested)},y.prototype.resolvePath=l.path.resolve,y.prototype.fetch=l.fetch,y.prototype.load=function t(e,i,n){"function"==typeof i&&(n=i,i=g);var o=this;if(!n)return l.asPromise(t,o,e,i);var p=n===u;function d(t,e){if(n){var i=n;if(n=null,p)throw t;i(t,e)}}function a(t){var e=t.lastIndexOf("google/protobuf/");return-1<e&&(t=t.substring(e))in s?t:null}function y(t,e){try{if(l.isString(e)&&"{"==(e[0]||"")&&(e=JSON.parse(e)),l.isString(e)){r.filename=t;var n,s=r(e,o,i),y=0;if(s.imports)for(;y<s.imports.length;++y)(n=a(s.imports[y])||o.resolvePath(t,s.imports[y]))&&f(n);if(s.weakImports)for(y=0;y<s.weakImports.length;++y)(n=a(s.weakImports[y])||o.resolvePath(t,s.weakImports[y]))&&f(n,!0)}else o.setOptions(e.options).addJSON(e.nested)}catch(t){d(t)}p||c||d(null,o)}function f(t,e){if(t=a(t)||t,!~o.files.indexOf(t))if(o.files.push(t),t in s)p?y(t,s[t]):(++c,setTimeout((function(){--c,y(t,s[t])})));else if(p){var i;try{i=l.fs.readFileSync(t).toString("utf8")}catch(i){return void(e||d(i))}y(t,i)}else++c,o.fetch(t,(function(i,r){--c,n&&(i?e?c||d(null,o):d(i):y(t,r))}))}var c=0;l.isString(e)&&(e=[e]);for(var h,m=0;m<e.length;++m)(h=o.resolvePath("",e[m]))&&f(h);return p?o:(c||d(null,o),g)},y.prototype.loadSync=function(t,e){if(l.isNode)return this.load(t,e,u);throw Error("not supported")},y.prototype.resolveAll=function(){if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map((function(t){return"'extend "+t.extend+"' in "+t.parent.fullName})).join(", "));return o.prototype.resolveAll.call(this)};var f=/^[A-Z]/;function c(t,e){var i,n=e.parent.lookup(e.extend);if(n)return i=new p(e.fullName,e.id,e.type,e.rule,g,e.options),n.get(i.name)||((i.declaringField=e).extensionField=i,n.add(i)),1}y.prototype.u=function(t){if(t instanceof p)t.extend===g||t.extensionField||c(0,t)||this.deferred.push(t);else if(t instanceof d)f.test(t.name)&&(t.parent[t.name]=t.values);else if(!(t instanceof a)){if(t instanceof n)for(var e=0;e<this.deferred.length;)c(0,this.deferred[e])?this.deferred.splice(e,1):++e;for(var i=0;i<t.nestedArray.length;++i)this.u(t.e[i]);f.test(t.name)&&(t.parent[t.name]=t)}},y.prototype.o=function(t){var e;if(t instanceof p)t.extend!==g&&(t.extensionField?(t.extensionField.parent.remove(t.extensionField),t.extensionField=null):-1<(e=this.deferred.indexOf(t))&&this.deferred.splice(e,1));else if(t instanceof d)f.test(t.name)&&delete t.parent[t.name];else if(t instanceof o){for(var i=0;i<t.nestedArray.length;++i)this.o(t.e[i]);f.test(t.name)&&delete t.parent[t.name]}},y.r=function(t,e,i){n=t,r=e,s=i}},{14:14,15:15,21:21,23:23,33:33}],27:[function(t,e,i){e.exports={}},{}],28:[function(t,e,i){i.Service=t(29)},{29:29}],29:[function(t,e,i){e.exports=r;var n=t(35);function r(t,e,i){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!e,this.responseDelimited=!!i}((r.prototype=Object.create(n.EventEmitter.prototype)).constructor=r).prototype.rpcCall=function t(e,i,r,s,o){if(!s)throw TypeError("request must be specified");var p=this;if(!o)return n.asPromise(t,p,e,i,r,s);if(!p.rpcImpl)return setTimeout((function(){o(Error("already ended"))}),0),g;try{return p.rpcImpl(e,i[p.requestDelimited?"encodeDelimited":"encode"](s).finish(),(function(t,i){if(t)return p.emit("error",t,e),o(t);if(null===i)return p.end(!0),g;if(!(i instanceof r))try{i=r[p.responseDelimited?"decodeDelimited":"decode"](i)}catch(t){return p.emit("error",t,e),o(t)}return p.emit("data",i,e),o(null,i)}))}catch(t){return p.emit("error",t,e),setTimeout((function(){o(t)}),0),g}},r.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},{35:35}],30:[function(t,e,i){e.exports=p;var n=t(21),r=(((p.prototype=Object.create(n.prototype)).constructor=p).className="Service",t(20)),s=t(33),o=t(28);function p(t,e){n.call(this,t,e),this.methods={},this.f=null}function d(t){return t.f=null,t}p.fromJSON=function(t,e){var i=new p(t,e.options);if(e.methods)for(var n=Object.keys(e.methods),s=0;s<n.length;++s)i.add(r.fromJSON(n[s],e.methods[n[s]]));return e.nested&&i.addJSON(e.nested),i.comment=e.comment,i},p.prototype.toJSON=function(t){var e=n.prototype.toJSON.call(this,t),i=!!t&&!!t.keepComments;return s.toObject(["options",e&&e.options||g,"methods",n.arrayToJSON(this.methodsArray,t)||{},"nested",e&&e.nested||g,"comment",i?this.comment:g])},Object.defineProperty(p.prototype,"methodsArray",{get:function(){return this.f||(this.f=s.toArray(this.methods))}}),p.prototype.get=function(t){return this.methods[t]||n.prototype.get.call(this,t)},p.prototype.resolveAll=function(){for(var t=this.methodsArray,e=0;e<t.length;++e)t[e].resolve();return n.prototype.resolve.call(this)},p.prototype.add=function(t){if(this.get(t.name))throw Error("duplicate name '"+t.name+"' in "+this);return t instanceof r?d((this.methods[t.name]=t).parent=this):n.prototype.add.call(this,t)},p.prototype.remove=function(t){if(t instanceof r){if(this.methods[t.name]!==t)throw Error(t+" is not a member of "+this);return delete this.methods[t.name],t.parent=null,d(this)}return n.prototype.remove.call(this,t)},p.prototype.create=function(t,e,i){for(var n,r=new o.Service(t,e,i),p=0;p<this.methodsArray.length;++p){var d=s.lcFirst((n=this.f[p]).resolve().name).replace(/[^$\w_]/g,"");r[d]=s.codegen(["r","c"],s.isReserved(d)?d+"_":d)("return this.rpcCall(m,q,s,r,c)")({m:n,q:n.resolvedRequestType.ctor,s:n.resolvedResponseType.ctor})}return r}},{20:20,21:21,28:28,33:33}],31:[function(t,e,i){e.exports=v;var n=t(21),r=(((v.prototype=Object.create(n.prototype)).constructor=v).className="Type",t(14)),s=t(23),o=t(15),p=t(18),d=t(30),a=t(19),l=t(24),y=t(38),u=t(33),f=t(13),c=t(12),h=t(36),m=t(11),b=t(37);function v(t,e){n.call(this,t,e),this.fields={},this.oneofs=g,this.extensions=g,this.reserved=g,this.group=g,this.c=null,this.i=null,this.a=null,this.l=null}function I(t){return t.c=t.i=t.a=null,delete t.encode,delete t.decode,delete t.verify,t}Object.defineProperties(v.prototype,{fieldsById:{get:function(){if(!this.c){this.c={};for(var t=Object.keys(this.fields),e=0;e<t.length;++e){var i=this.fields[t[e]],n=i.id;if(this.c[n])throw Error("duplicate id "+n+" in "+this);this.c[n]=i}}return this.c}},fieldsArray:{get:function(){return this.i||(this.i=u.toArray(this.fields))}},oneofsArray:{get:function(){return this.a||(this.a=u.toArray(this.oneofs))}},ctor:{get:function(){return this.l||(this.ctor=v.generateConstructor(this)())},set:function(t){for(var e=t.prototype,i=(e instanceof a||((t.prototype=new a).constructor=t,u.merge(t.prototype,e)),t.$type=t.prototype.$type=this,u.merge(t,a,!0),this.l=t,0);i<this.fieldsArray.length;++i)this.i[i].resolve();var n={};for(i=0;i<this.oneofsArray.length;++i)n[this.a[i].resolve().name]={get:u.oneOfGetter(this.a[i].oneof),set:u.oneOfSetter(this.a[i].oneof)};i&&Object.defineProperties(t.prototype,n)}}}),v.generateConstructor=function(t){for(var e,i=u.codegen(["p"],t.name),n=0;n<t.fieldsArray.length;++n)(e=t.i[n]).map?i("this%s={}",u.safeProp(e.name)):e.repeated&&i("this%s=[]",u.safeProp(e.name));return i("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")},v.fromJSON=function(t,e){for(var i=new v(t,e.options),a=(i.extensions=e.extensions,i.reserved=e.reserved,Object.keys(e.fields)),l=0;l<a.length;++l)i.add((void 0!==e.fields[a[l]].keyType?p:o).fromJSON(a[l],e.fields[a[l]]));if(e.oneofs)for(a=Object.keys(e.oneofs),l=0;l<a.length;++l)i.add(s.fromJSON(a[l],e.oneofs[a[l]]));if(e.nested)for(a=Object.keys(e.nested),l=0;l<a.length;++l){var y=e.nested[a[l]];i.add((y.id!==g?o:y.fields!==g?v:y.values!==g?r:y.methods!==g?d:n).fromJSON(a[l],y))}return e.extensions&&e.extensions.length&&(i.extensions=e.extensions),e.reserved&&e.reserved.length&&(i.reserved=e.reserved),e.group&&(i.group=!0),e.comment&&(i.comment=e.comment),i},v.prototype.toJSON=function(t){var e=n.prototype.toJSON.call(this,t),i=!!t&&!!t.keepComments;return u.toObject(["options",e&&e.options||g,"oneofs",n.arrayToJSON(this.oneofsArray,t),"fields",n.arrayToJSON(this.fieldsArray.filter((function(t){return!t.declaringField})),t)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:g,"reserved",this.reserved&&this.reserved.length?this.reserved:g,"group",this.group||g,"nested",e&&e.nested||g,"comment",i?this.comment:g])},v.prototype.resolveAll=function(){for(var t=this.fieldsArray,e=0;e<t.length;)t[e++].resolve();var i=this.oneofsArray;for(e=0;e<i.length;)i[e++].resolve();return n.prototype.resolveAll.call(this)},v.prototype.get=function(t){return this.fields[t]||this.oneofs&&this.oneofs[t]||this.nested&&this.nested[t]||null},v.prototype.add=function(t){if(this.get(t.name))throw Error("duplicate name '"+t.name+"' in "+this);if(t instanceof o&&t.extend===g){if((this.c||this.fieldsById)[t.id])throw Error("duplicate id "+t.id+" in "+this);if(this.isReservedId(t.id))throw Error("id "+t.id+" is reserved in "+this);if(this.isReservedName(t.name))throw Error("name '"+t.name+"' is reserved in "+this);return t.parent&&t.parent.remove(t),(this.fields[t.name]=t).message=this,t.onAdd(this),I(this)}return t instanceof s?(this.oneofs||(this.oneofs={}),(this.oneofs[t.name]=t).onAdd(this),I(this)):n.prototype.add.call(this,t)},v.prototype.remove=function(t){if(t instanceof o&&t.extend===g){if(this.fields&&this.fields[t.name]===t)return delete this.fields[t.name],t.parent=null,t.onRemove(this),I(this);throw Error(t+" is not a member of "+this)}if(t instanceof s){if(this.oneofs&&this.oneofs[t.name]===t)return delete this.oneofs[t.name],t.parent=null,t.onRemove(this),I(this);throw Error(t+" is not a member of "+this)}return n.prototype.remove.call(this,t)},v.prototype.isReservedId=function(t){return n.isReservedId(this.reserved,t)},v.prototype.isReservedName=function(t){return n.isReservedName(this.reserved,t)},v.prototype.create=function(t){return new this.ctor(t)},v.prototype.setup=function(){for(var t=this.fullName,e=[],i=0;i<this.fieldsArray.length;++i)e.push(this.i[i].resolve().resolvedType);var n;return this.encode=f(this)({Writer:y,types:e,util:u}),this.decode=c(this)({Reader:l,types:e,util:u}),this.verify=h(this)({types:e,util:u}),this.fromObject=m.fromObject(this)({types:e,util:u}),this.toObject=m.toObject(this)({types:e,util:u}),(t=b[t])&&((n=Object.create(this)).fromObject=this.fromObject,this.fromObject=t.fromObject.bind(n),n.toObject=this.toObject,this.toObject=t.toObject.bind(n)),this},v.prototype.encode=function(t,e){return this.setup().encode(t,e)},v.prototype.encodeDelimited=function(t,e){return this.encode(t,e&&e.len?e.fork():e).ldelim()},v.prototype.decode=function(t,e){return this.setup().decode(t,e)},v.prototype.decodeDelimited=function(t){return t instanceof l||(t=l.create(t)),this.decode(t,t.uint32())},v.prototype.verify=function(t){return this.setup().verify(t)},v.prototype.fromObject=function(t){return this.setup().fromObject(t)},v.prototype.toObject=function(t,e){return this.setup().toObject(t,e)},v.d=function(t){return function(e){u.decorateType(e,t)}}},{11:11,12:12,13:13,14:14,15:15,18:18,19:19,21:21,23:23,24:24,30:30,33:33,36:36,37:37,38:38}],32:[function(t,e,i){t=t(33);var n=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function r(t,e){var i=0,r={};for(e|=0;i<t.length;)r[n[i+e]]=t[i++];return r}i.basic=r([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),i.defaults=r([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",t.emptyArray,null]),i.long=r([0,0,0,1,1],7),i.mapKey=r([0,0,0,5,5,0,0,0,1,1,0,2],2),i.packed=r([1,5,0,0,0,5,5,0,0,0,1,1,0])},{33:33}],33:[function(t,e,i){var n,r,s=e.exports=t(35),o=t(27),p=(s.codegen=t(3),s.fetch=t(5),s.path=t(8),s.fs=s.inquire("fs"),s.toArray=function(t){if(t){for(var e=Object.keys(t),i=Array(e.length),n=0;n<e.length;)i[n]=t[e[n++]];return i}return[]},s.toObject=function(t){for(var e={},i=0;i<t.length;){var n=t[i++],r=t[i++];r!==g&&(e[n]=r)}return e},/\\/g),d=/"/g,a=(s.isReserved=function(t){return/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(t)},s.safeProp=function(t){return!/^[$\w_]+$/.test(t)||s.isReserved(t)?'["'+t.replace(p,"\\\\").replace(d,'\\"')+'"]':"."+t},s.ucFirst=function(t){return(t[0]||"").toUpperCase()+t.substring(1)},/_([a-z])/g),l=(s.camelCase=function(t){return t.substring(0,1)+t.substring(1).replace(a,(function(t,e){return e.toUpperCase()}))},s.compareFieldsById=function(t,e){return t.id-e.id},s.decorateType=function(e,i){return e.$type?(i&&e.$type.name!==i&&(s.decorateRoot.remove(e.$type),e.$type.name=i,s.decorateRoot.add(e.$type)),e.$type):(i=new(n=n||t(31))(i||e.name),s.decorateRoot.add(i),i.ctor=e,Object.defineProperty(e,"$type",{value:i,enumerable:!1}),Object.defineProperty(e.prototype,"$type",{value:i,enumerable:!1}),i)},0);s.decorateEnum=function(e){var i;return e.$type||(i=new(r=r||t(14))("Enum"+l++,e),s.decorateRoot.add(i),Object.defineProperty(e,"$type",{value:i,enumerable:!1}),i)},s.setProperty=function(t,e,i){if("object"!=typeof t)throw TypeError("dst must be an object");if(e)return function t(e,i,n){var r=i.shift();return"__proto__"!==r&&(0<i.length?e[r]=t(e[r]||{},i,n):((i=e[r])&&(n=[].concat(i).concat(n)),e[r]=n)),e}(t,e=e.split("."),i);throw TypeError("path must be specified")},Object.defineProperty(s,"decorateRoot",{get:function(){return o.decorated||(o.decorated=new(t(26)))}})},{14:14,26:26,27:27,3:3,31:31,35:35,5:5,8:8}],34:[function(t,e,i){e.exports=r;var n=t(35);function r(t,e){this.lo=t>>>0,this.hi=e>>>0}var s=r.zero=new r(0,0),o=(s.toNumber=function(){return 0},s.zzEncode=s.zzDecode=function(){return this},s.length=function(){return 1},r.zeroHash="\0\0\0\0\0\0\0\0",r.fromNumber=function(t){var e,i;return 0===t?s:(i=(t=(e=t<0)?-t:t)>>>0,t=(t-i)/4294967296>>>0,e&&(t=~t>>>0,i=~i>>>0,4294967295<++i&&(i=0,4294967295<++t&&(t=0))),new r(i,t))},r.from=function(t){if("number"==typeof t)return r.fromNumber(t);if(n.isString(t)){if(!n.Long)return r.fromNumber(parseInt(t,10));t=n.Long.fromString(t)}return t.low||t.high?new r(t.low>>>0,t.high>>>0):s},r.prototype.toNumber=function(t){var e;return!t&&this.hi>>>31?(t=1+~this.lo>>>0,e=~this.hi>>>0,-(t+4294967296*(e=t?e:e+1>>>0))):this.lo+4294967296*this.hi},r.prototype.toLong=function(t){return n.Long?new n.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}},String.prototype.charCodeAt);r.fromHash=function(t){return"\0\0\0\0\0\0\0\0"===t?s:new r((o.call(t,0)|o.call(t,1)<<8|o.call(t,2)<<16|o.call(t,3)<<24)>>>0,(o.call(t,4)|o.call(t,5)<<8|o.call(t,6)<<16|o.call(t,7)<<24)>>>0)},r.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},r.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},r.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},r.prototype.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,i=this.hi>>>24;return 0==i?0==e?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:i<128?9:10}},{35:35}],35:[function(t,e,i){var n=i;function r(t,e,i){for(var n=Object.keys(e),r=0;r<n.length;++r)t[n[r]]!==g&&i||(t[n[r]]=e[n[r]]);return t}function s(t){function e(t,i){if(!(this instanceof e))return new e(t,i);Object.defineProperty(this,"message",{get:function(){return t}}),Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack||""}),i&&r(this,i)}return e.prototype=Object.create(Error.prototype,{constructor:{value:e,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return t},set:g,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),e}n.asPromise=t(1),n.base64=t(2),n.EventEmitter=t(4),n.float=t(6),n.inquire=t(7),n.utf8=t(10),n.pool=t(9),n.LongBits=t(34),n.isNode=!!("undefined"!=typeof global&&global&&global.process&&global.process.versions&&global.process.versions.node),n.global=n.isNode&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,n.emptyArray=Object.freeze?Object.freeze([]):[],n.emptyObject=Object.freeze?Object.freeze({}):{},n.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},n.isString=function(t){return"string"==typeof t||t instanceof String},n.isObject=function(t){return t&&"object"==typeof t},n.isset=n.isSet=function(t,e){var i=t[e];return null!=i&&t.hasOwnProperty(e)&&("object"!=typeof i||0<(Array.isArray(i)?i:Object.keys(i)).length)},n.Buffer=function(){try{var t=n.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),n.v=null,n.b=null,n.newBuffer=function(t){return"number"==typeof t?n.Buffer?n.b(t):new n.Array(t):n.Buffer?n.v(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(t){return t?n.LongBits.from(t).toHash():n.LongBits.zeroHash},n.longFromHash=function(t,e){return t=n.LongBits.fromHash(t),n.Long?n.Long.fromBits(t.lo,t.hi,e):t.toNumber(!!e)},n.merge=r,n.lcFirst=function(t){return(t[0]||"").toLowerCase()+t.substring(1)},n.newError=s,n.ProtocolError=s("ProtocolError"),n.oneOfGetter=function(t){for(var e={},i=0;i<t.length;++i)e[t[i]]=1;return function(){for(var t=Object.keys(this),i=t.length-1;-1<i;--i)if(1===e[t[i]]&&this[t[i]]!==g&&null!==this[t[i]])return t[i]}},n.oneOfSetter=function(t){return function(e){for(var i=0;i<t.length;++i)t[i]!==e&&delete this[t[i]]}},n.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},n.r=function(){var t=n.Buffer;t?(n.v=t.from!==Uint8Array.from&&t.from||function(e,i){return new t(e,i)},n.b=t.allocUnsafe||function(e){return new t(e)}):n.v=n.b=null}},{1:1,10:10,2:2,34:34,4:4,6:6,7:7,9:9}],36:[function(t,e,i){e.exports=function(t){var e=r.codegen(["m"],t.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),i={};t.oneofsArray.length&&e("var p={}");for(var n=0;n<t.fieldsArray.length;++n){var p,d=t.i[n].resolve(),a="m"+r.safeProp(d.name);d.optional&&e("if(%s!=null&&m.hasOwnProperty(%j)){",a,d.name),d.map?(e("if(!util.isObject(%s))",a)("return%j",s(d,"object"))("var k=Object.keys(%s)",a)("for(var i=0;i<k.length;++i){"),function(t,e,i){switch(e.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":t("if(!util.key32Re.test(%s))",i)("return%j",s(e,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":t("if(!util.key64Re.test(%s))",i)("return%j",s(e,"integer|Long key"));break;case"bool":t("if(!util.key2Re.test(%s))",i)("return%j",s(e,"boolean key"))}}(e,d,"k[i]"),o(e,d,n,a+"[k[i]]")("}")):d.repeated?(e("if(!Array.isArray(%s))",a)("return%j",s(d,"array"))("for(var i=0;i<%s.length;++i){",a),o(e,d,n,a+"[i]")("}")):(d.partOf&&(p=r.safeProp(d.partOf.name),1===i[d.partOf.name]&&e("if(p%s===1)",p)("return%j",d.partOf.name+": multiple values"),i[d.partOf.name]=1,e("p%s=1",p)),o(e,d,n,a)),d.optional&&e("}")}return e("return null")};var n=t(14),r=t(33);function s(t,e){return t.name+": "+e+(t.repeated&&"array"!==e?"[]":t.map&&"object"!==e?"{k:"+t.keyType+"}":"")+" expected"}function o(t,e,i,r){if(e.resolvedType)if(e.resolvedType instanceof n){t("switch(%s){",r)("default:")("return%j",s(e,"enum value"));for(var o=Object.keys(e.resolvedType.values),p=0;p<o.length;++p)t("case %i:",e.resolvedType.values[o[p]]);t("break")("}")}else t("{")("var e=types[%i].verify(%s);",i,r)("if(e)")("return%j+e",e.name+".")("}");else switch(e.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":t("if(!util.isInteger(%s))",r)("return%j",s(e,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":t("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",r,r,r,r)("return%j",s(e,"integer|Long"));break;case"float":case"double":t('if(typeof %s!=="number")',r)("return%j",s(e,"number"));break;case"bool":t('if(typeof %s!=="boolean")',r)("return%j",s(e,"boolean"));break;case"string":t("if(!util.isString(%s))",r)("return%j",s(e,"string"));break;case"bytes":t('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',r,r,r)("return%j",s(e,"buffer"))}return t}},{14:14,33:33}],37:[function(t,e,i){var n=t(19);i[".google.protobuf.Any"]={fromObject:function(t){if(t&&t["@type"]){var e,i=t["@type"].substring(1+t["@type"].lastIndexOf("/"));if(i=this.lookup(i))return~(e="."==(t["@type"][0]||"")?t["@type"].slice(1):t["@type"]).indexOf("/")||(e="/"+e),this.create({type_url:e,value:i.encode(i.fromObject(t)).finish()})}return this.fromObject(t)},toObject:function(t,e){var i,r,s="",o="";return e&&e.json&&t.type_url&&t.value&&(o=t.type_url.substring(1+t.type_url.lastIndexOf("/")),s=t.type_url.substring(0,1+t.type_url.lastIndexOf("/")),(i=this.lookup(o))&&(t=i.decode(t.value))),!(t instanceof this.ctor)&&t instanceof n?(i=t.$type.toObject(t,e),r="."===t.$type.fullName[0]?t.$type.fullName.slice(1):t.$type.fullName,i["@type"]=o=(s=""===s?"type.googleapis.com/":s)+r,i):this.toObject(t,e)}}},{19:19}],38:[function(t,e,i){e.exports=y;var n,r=t(35),s=r.LongBits,o=r.base64,p=r.utf8;function d(t,e,i){this.fn=t,this.len=e,this.next=g,this.val=i}function a(){}function l(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function y(){this.len=0,this.head=new d(a,0,0),this.tail=this.head,this.states=null}function u(){return r.Buffer?function(){return(y.create=function(){return new n})()}:function(){return new y}}function f(t,e,i){e[i]=255&t}function c(t,e){this.len=t,this.next=g,this.val=e}function h(t,e,i){for(;t.hi;)e[i++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;127<t.lo;)e[i++]=127&t.lo|128,t.lo=t.lo>>>7;e[i++]=t.lo}function m(t,e,i){e[i]=255&t,e[i+1]=t>>>8&255,e[i+2]=t>>>16&255,e[i+3]=t>>>24}y.create=u(),y.alloc=function(t){return new r.Array(t)},r.Array!==Array&&(y.alloc=r.pool(y.alloc,r.Array.prototype.subarray)),y.prototype.p=function(t,e,i){return this.tail=this.tail.next=new d(t,e,i),this.len+=e,this},(c.prototype=Object.create(d.prototype)).fn=function(t,e,i){for(;127<t;)e[i++]=127&t|128,t>>>=7;e[i]=t},y.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new c((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this},y.prototype.int32=function(t){return t<0?this.p(h,10,s.fromNumber(t)):this.uint32(t)},y.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},y.prototype.int64=y.prototype.uint64=function(t){return t=s.from(t),this.p(h,t.length(),t)},y.prototype.sint64=function(t){return t=s.from(t).zzEncode(),this.p(h,t.length(),t)},y.prototype.bool=function(t){return this.p(f,1,t?1:0)},y.prototype.sfixed32=y.prototype.fixed32=function(t){return this.p(m,4,t>>>0)},y.prototype.sfixed64=y.prototype.fixed64=function(t){return t=s.from(t),this.p(m,4,t.lo).p(m,4,t.hi)},y.prototype.float=function(t){return this.p(r.float.writeFloatLE,4,t)},y.prototype.double=function(t){return this.p(r.float.writeDoubleLE,8,t)};var b=r.Array.prototype.set?function(t,e,i){e.set(t,i)}:function(t,e,i){for(var n=0;n<t.length;++n)e[i+n]=t[n]};y.prototype.bytes=function(t){var e,i=t.length>>>0;return i?(r.isString(t)&&(e=y.alloc(i=o.length(t)),o.decode(t,e,0),t=e),this.uint32(i).p(b,i,t)):this.p(f,1,0)},y.prototype.string=function(t){var e=p.length(t);return e?this.uint32(e).p(p.write,e,t):this.p(f,1,0)},y.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new d(a,0,0),this.len=0,this},y.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new d(a,0,0),this.len=0),this},y.prototype.ldelim=function(){var t=this.head,e=this.tail,i=this.len;return this.reset().uint32(i),i&&(this.tail.next=t.next,this.tail=e,this.len+=i),this},y.prototype.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),i=0;t;)t.fn(t.val,e,i),i+=t.len,t=t.next;return e},y.r=function(t){n=t,y.create=u(),n.r()}},{35:35}],39:[function(t,e,i){e.exports=s;var n=t(38),r=((s.prototype=Object.create(n.prototype)).constructor=s,t(35));function s(){n.call(this)}function o(t,e,i){t.length<40?r.utf8.write(t,e,i):e.utf8Write?e.utf8Write(t,i):e.write(t,i)}s.r=function(){s.alloc=r.b,s.writeBytesBuffer=r.Buffer&&r.Buffer.prototype instanceof Uint8Array&&"set"===r.Buffer.prototype.set.name?function(t,e,i){e.set(t,i)}:function(t,e,i){if(t.copy)t.copy(e,i,0,t.length);else for(var n=0;n<t.length;)e[i++]=t[n++]}},s.prototype.bytes=function(t){var e=(t=r.isString(t)?r.v(t,"base64"):t).length>>>0;return this.uint32(e),e&&this.p(s.writeBytesBuffer,e,t),this},s.prototype.string=function(t){var e=r.Buffer.byteLength(t);return this.uint32(e),e&&this.p(o,e,t),this},s.r()},{35:35,38:38}]},e={},i=function t(i){var n=e[i];return n||r[i][0].call(n=e[i]={exports:{}},t,n,n.exports),n.exports}(16),protobuf=i.util.global.protobuf=i,"function"==typeof define&&define.amd&&define(["long"],(function(t){return t&&t.isLong&&(i.util.Long=t,i.configure()),i})),"object"==typeof module&&module&&module.exports&&(module.exports=i)}();const tiebaJson={nested:{model:{nested:{Abstract:{fields:{text:{type:"string",id:2},type:{type:"int32",id:1}}},ActionControl:{fields:{name:{type:"string",id:2},textColor:{type:"string",id:3},textColorPressed:{type:"string",id:4},url:{type:"string",id:1}}},AdCloseInfo:{fields:{actionControl:{type:"ActionControl",id:5},reasons:{rule:"repeated",type:"string",id:3},supportClose:{type:"int32",id:1}}},Advertisement:{fields:{advertisementId:{type:"string",id:5},clickStatisticsUrl:{type:"string",id:7},deeplink:{type:"string",id:9},displayAdIcon:{type:"string",id:12},floatingText:{type:"string",id:8},jumpLink:{type:"string",id:4},packageName:{type:"string",id:11},pic:{type:"string",id:2},picClick:{type:"string",id:3},scheme:{type:"string",id:10},time:{type:"int64",id:1},viewStatisticsUrl:{type:"string",id:6}}},AgreeBanner:{fields:{iconUrl:{type:"string",id:2},text:{type:"string",id:1},topAgreeUser:{rule:"repeated",type:"SimpleUser",id:4},url:{type:"string",id:3}}},SimpleUser:{fields:{portrait:{type:"string",id:8},userId:{type:"int64",id:1},userName:{type:"string",id:5}}},Agree:{fields:{agreeNum:{type:"int64",id:1},agreeType:{type:"int32",id:3},diffAgreeNum:{type:"int64",id:5},disagreeNum:{type:"int64",id:4},hasAgree:{type:"int32",id:2},lzAgree:{type:"int32",id:6}}},AlaChallengeInfo:{fields:{challengeId:{type:"int64",id:1},rivalHlsUrl:{type:"string",id:5},rivalRtmpUrl:{type:"string",id:4},rivalSession:{type:"string",id:3},winningNum:{type:"int64",id:2}}},AlaLiveInfo:{fields:{audienceCount:{type:"uint32",id:14},challengeInfo:{type:"AlaChallengeInfo",id:25},cover:{type:"string",id:2},coverWide:{type:"string",id:48},description:{type:"string",id:11},dislikeInfo:{rule:"repeated",type:"DislikeInfo",id:43},firstHeadline:{type:"string",id:34},groupId:{type:"uint64",id:6},hlsUrl:{type:"string",id:5},liveFrom:{type:"int32",id:29},liveId:{type:"uint64",id:1},liveStatus:{type:"int32",id:18},liveType:{type:"uint32",id:15},openRecomDuration:{type:"uint32",id:41},openRecomFans:{type:"uint32",id:40},openRecomLocation:{type:"uint32",id:39},openRecomReason:{type:"uint32",id:38},pbDisplayType:{type:"uint32",id:36},recomReason:{type:"string",id:37},roomId:{type:"uint64",id:44},routerType:{type:"string",id:32},rtmpUrl:{type:"string",id:4},screenDirection:{type:"uint32",id:16},secondHeadline:{type:"string",id:35},sessionId:{type:"string",id:3},shareInfo:{type:"AlaShareInfo",id:19},thirdAppId:{type:"string",id:21},thirdLiveType:{type:"string",id:33},thirdRoomId:{type:"string",id:31},userInfo:{type:"AlaUserInfo",id:12},yyExt:{type:"YyExt",id:49},labelName:{type:"string",id:17},userLabel:{type:"UniversalLabel",id:51}}},DislikeInfo:{fields:{dislikeId:{type:"uint32",id:2},dislikeReason:{type:"string",id:1},extra:{type:"string",id:3}}},AlaShareInfo:{fields:{shareCount:{type:"int32",id:3},shareUserCount:{type:"int32",id:2}}},AlaUserInfo:{fields:{alaId:{type:"uint64",id:1},anchorFans:{type:"int32",id:24},anchorLive:{type:"uint64",id:7},enterLive:{type:"uint64",id:6},lat:{type:"double",id:12},liveId:{type:"uint64",id:9},liveStatus:{type:"uint32",id:8},lng:{type:"double",id:11},location:{type:"string",id:10},portrait:{type:"string",id:3},userId:{type:"uint64",id:23},userName:{type:"string",id:2},yyExt:{type:"YyExt",id:25}}},YyExt:{fields:{iconUrl:{type:"string",id:8},isYyGame:{type:"int32",id:5},rankShow:{type:"string",id:7},sid:{type:"string",id:1},ssid:{type:"string",id:2},streamInfo:{type:"string",id:6},templateId:{type:"string",id:3},yyUid:{type:"string",id:4},feedId:{type:"string",id:9}}},UniversalLabel:{fields:{backgroundColor:{type:"string",id:5},backgroundColorBlack:{type:"string",id:6},labelId:{type:"string",id:1},labelText:{type:"string",id:2},roundRadius:{type:"int32",id:7},textColor:{type:"string",id:3},textColorBlack:{type:"string",id:4}}},Anti:{fields:{blockPopInfo:{type:"BlockPopInfo",id:22},blockStat:{type:"int32",id:6},canGoods:{type:"int32",id:27},daysTofree:{type:"int32",id:9},delThreadText:{rule:"repeated",type:"DelThreadText",id:24},forbidFlag:{type:"int32",id:4},forbidInfo:{type:"string",id:5},hasChance:{type:"int32",id:10},hideStat:{type:"int32",id:7},ifaddition:{type:"int32",id:13},ifpost:{type:"int32",id:2},ifvoice:{type:"int32",id:11},ifxiaoying:{type:"string",id:18},multiDelthread:{type:"int32",id:25},pollLevel:{type:"uint32",id:26},pollMessage:{type:"string",id:19},replyPrivateFlag:{type:"int32",id:23},tbs:{type:"string",id:1},vcodeStat:{type:"int32",id:8},videoLocalMessage:{type:"string",id:21},videoMessage:{type:"string",id:20},voiceMessage:{type:"string",id:12}}},BlockPopInfo:{fields:{aheadInfo:{type:"string",id:3},aheadType:{type:"int32",id:6},aheadUrl:{type:"string",id:4},appealMsg:{type:"string",id:8},appealStatus:{type:"int32",id:7},blockInfo:{type:"string",id:2},canPost:{type:"int32",id:1},okInfo:{type:"string",id:5},subBlockInfo:{type:"string",id:11}}},DelThreadText:{fields:{textId:{type:"int32",id:1},textInfo:{type:"string",id:2}}},ApkDetail:{fields:{authorityUrl:{type:"string",id:11},developer:{type:"string",id:1},needInnerBuy:{type:"int32",id:10},needNetwork:{type:"int32",id:9},privacyUrl:{type:"string",id:12},publisher:{type:"string",id:2},size:{type:"string",id:8},updateTime:{type:"string",id:7},version:{type:"string",id:3},versionCode:{type:"int32",id:6}}},App:{fields:{appTime:{type:"int32",id:10},extInfo:{type:"string",id:29},id:{type:"string",id:13},locCode:{type:"string",id:31},name:{type:"string",id:14},posName:{type:"string",id:20},url:{type:"string",id:16},urlType:{type:"int32",id:15}}},BaijiahaoInfo:{fields:{authDesc:{type:"string",id:6},authId:{type:"int32",id:5},avatar:{type:"string",id:2}}},Baijiahao:{fields:{oriUgcNid:{type:"string",id:1},oriUgcTid:{type:"string",id:2},oriUgcVid:{type:"string",id:4}}},Balv:{fields:{daysTofree:{type:"int32",id:3},isBlack:{type:"int32",id:1},isBlock:{type:"int32",id:2}}},BannerList:{fields:{app:{rule:"repeated",type:"App",id:1},pbBannerAd:{type:"App",id:5}}},Banner:{fields:{bannerType:{type:"int32",id:2},bannerUrl:{type:"string",id:1},desc:{type:"string",id:5},type:{type:"int32",id:4}}},BazhuSign:{fields:{desc:{type:"string",id:1},level:{type:"string",id:2}}},BusinessAccountInfo:{fields:{isBusinessAccount:{type:"int32",id:1},isForumBusinessAccount:{type:"int32",id:2}}},CallFansInfo:{fields:{canCall:{type:"int32",id:1}}},Classify:{fields:{classId:{type:"int32",id:3},className:{type:"string",id:4}}},CustomFigure:{fields:{backgroundType:{type:"string",id:2},backgroundValue:{type:"string",id:3},dynamicFigureUrl:{type:"string",id:4},figureUrl:{type:"string",id:1}}},CustomState:{fields:{content:{type:"string",id:2},icon:{type:"string",id:1},iconType:{type:"string",id:3}}},DeletedReasonInfo:{fields:{isBoomgrow:{type:"int32",id:2},isGraysCaleForum:{type:"int32",id:1}}},EditConfig:{fields:{isFirstEdit:{type:"int32",id:2},showEdit:{type:"int32",id:1}}},EditInfo:{fields:{editEnable:{type:"int32",id:2},editErrorMsg:{type:"string",id:3},editErrorNo:{type:"int32",id:6},editFrom:{type:"int32",id:5},editStatus:{type:"int32",id:1},lastEditTime:{type:"int32",id:4}}},Error:{fields:{errmsg:{type:"string",id:2},errorno:{type:"int32",id:1},usermsg:{type:"string",id:3}}},ForumActiveInfo:{fields:{forumBrief:{type:"string",id:1},forumShareUrl:{type:"string",id:2}}},ForumRuleStatus:{fields:{hasForumRule:{type:"int32",id:4},title:{type:"string",id:2}}},ForumShowInfo:{fields:{content:{type:"string",id:1},showType:{type:"int64",id:3},tag:{type:"ForumShowInfoTag",id:2}}},ForumShowInfoTag:{fields:{bgColor:{type:"ThemeColorInfo",id:3},text:{type:"string",id:1},textColor:{type:"ThemeColorInfo",id:2}}},ThemeColorInfo:{fields:{dark:{type:"ThemeElement",id:3},day:{type:"ThemeElement",id:1},night:{type:"ThemeElement",id:2}}},ThemeElement:{fields:{commonColor:{type:"string",id:1},darkColor:{type:"string",id:2},fontColor:{type:"string",id:5},lightColor:{type:"string",id:3},patternImage:{type:"string",id:4}}},FrequentlyForumInfo:{fields:{accessFlag:{type:"uint32",id:15},forumState:{type:"uint32",id:14}}},FrsTabInfo:{fields:{isGeneralTab:{type:"int32",id:7},tabCode:{type:"string",id:8},tabId:{type:"int32",id:1},tabName:{type:"string",id:3},tabType:{type:"int32",id:2},tabUrl:{type:"string",id:4}}},GconAccount:{fields:{hasAccount:{type:"int32",id:1},menuName:{type:"string",id:2}}},GraffitiInfo:{fields:{gid:{type:"int64",id:2},url:{type:"string",id:1}}},Group:{fields:{groupCount:{type:"int32",id:2},hideRecommendGroup:{type:"int32",id:1}}},HeadItem:{fields:{content:{type:"string",id:2},name:{type:"string",id:1},type:{type:"int32",id:3}}},HeadSdk:{fields:{headPic:{type:"string",id:1},headText:{type:"string",id:2},headType:{type:"int32",id:5},sdkName:{type:"string",id:3},sdkParams:{type:"string",id:4}}},HotUserRankEntry:{fields:{hotUser:{rule:"repeated",type:"ShortUserInfo",id:1},moduleName:{type:"string",id:2}}},ShortUserInfo:{fields:{portrait:{type:"string",id:2},userId:{type:"int64",id:1}}},Icon:{fields:{icon:{type:"string",id:4},name:{type:"string",id:1},position:{type:"Position",id:7},spriteInfo:{rule:"repeated",type:"string",id:8},terminal:{type:"Terminal",id:6},value:{type:"int32",id:5},weight:{type:"int32",id:2}}},Position:{fields:{card:{type:"int32",id:4},frs:{type:"int32",id:1},home:{type:"int32",id:3},pb:{type:"int32",id:2}}},Terminal:{fields:{client:{type:"int32",id:3},pc:{type:"int32",id:1},wap:{type:"int32",id:2}}},ItemInfo:{fields:{apkName:{type:"string",id:23},brief:{type:"string",id:4},buttonLink:{type:"string",id:20},buttonLinkType:{type:"int32",id:22},buttonName:{type:"string",id:19},forumName:{type:"string",id:12},iconSize:{type:"double",id:6},iconUrl:{type:"string",id:3},id:{type:"uint32",id:1},isSchool:{type:"uint32",id:9},itemAppid:{type:"string",id:21},itemOptions:{rule:"repeated",type:"ItemOptions",id:7},name:{type:"string",id:2},score:{type:"ItemTable",id:8},tags:{rule:"repeated",type:"string",id:5}}},ItemOptions:{fields:{key:{type:"string",id:1},value:{type:"string",id:2}}},ItemTable:{fields:{itemPlot:{rule:"repeated",type:"ItemPlot",id:7},itemPoint:{rule:"repeated",type:"ItemPoint",id:6},totalPointNum:{type:"int32",id:5}}},ItemPlot:{fields:{level:{type:"uint32",id:1},num:{type:"uint32",id:2}}},ItemPoint:{fields:{point:{type:"double",id:2},timeIntval:{type:"string",id:1}}},Item:{fields:{apkDetail:{type:"ApkDetail",id:15},apkName:{type:"string",id:13},buttonLink:{type:"string",id:9},buttonLinkType:{type:"int32",id:12},buttonName:{type:"string",id:8},categoryId:{type:"int32",id:11},forumName:{type:"string",id:14},iconSize:{type:"double",id:3},iconUrl:{type:"string",id:4},itemAppid:{type:"string",id:10},itemId:{type:"int64",id:1},itemName:{type:"string",id:2},score:{type:"double",id:6},star:{type:"int32",id:7},tags:{rule:"repeated",type:"string",id:5}}},Lbs:{fields:{lat:{type:"string",id:1},lng:{type:"string",id:2},name:{type:"string",id:3}}},Manager:{fields:{id:{type:"int64",id:1},name:{type:"string",id:2},portrait:{type:"string",id:4},showName:{type:"string",id:3}}},MediaNum:{fields:{pic:{type:"int32",id:1}}},Media:{fields:{bigPic:{type:"string",id:3},bsize:{type:"string",id:12},dynamicPic:{type:"string",id:18},height:{type:"uint32",id:11},hthMidLoc:{type:"double",id:23},isLongPic:{type:"uint32",id:19},originPic:{type:"string",id:15},originSize:{type:"uint32",id:16},postId:{type:"int64",id:17},showOriginalBtn:{type:"uint32",id:20},smallPic:{type:"string",id:2},srcPic:{type:"string",id:8},type:{type:"int32",id:1},vhsrc:{type:"string",id:7},vpic:{type:"string",id:5},vsrc:{type:"string",id:6},waterPic:{type:"string",id:4},width:{type:"uint32",id:10},wthMidLoc:{type:"double",id:22}}},MemberShowIcon:{fields:{icon:{type:"string",id:1},name:{type:"string",id:2},url:{type:"string",id:3}}},MemeInfo:{fields:{detailLink:{type:"string",id:7},height:{type:"uint32",id:6},pckId:{type:"uint32",id:1},picId:{type:"uint64",id:2},picUrl:{type:"string",id:3},thumbnail:{type:"string",id:4},width:{type:"uint32",id:5}}},NativeApp:{fields:{downloadAnd:{type:"string",id:3},downloadIos:{type:"string",id:4},jumpIos:{type:"string",id:2}}},NavTabInfo:{fields:{menu:{rule:"repeated",type:"FrsTabInfo",id:2},tab:{rule:"repeated",type:"FrsTabInfo",id:1}}},NewGodInfo:{fields:{fieldId:{type:"uint32",id:2},fieldName:{type:"string",id:3},status:{type:"int32",id:1},type:{type:"uint32",id:4},typeName:{type:"string",id:5}}},OriginThreadInfo:{fields:{_abstract:{rule:"repeated",type:"Abstract",id:3},agree:{type:"Agree",id:19},alaInfo:{type:"AlaLiveInfo",id:6},author:{type:"User",id:18},content:{rule:"repeated",type:"PbContent",id:14},fid:{type:"int64",id:7},fname:{type:"string",id:4},isDeleted:{type:"int32",id:9},isFrsMask:{type:"int32",id:28},isNewStyle:{type:"int32",id:15},isUgc:{type:"int32",id:10},item:{type:"Item",id:22},media:{rule:"repeated",type:"Media",id:2},oriUgcInfo:{type:"Baijiahao",id:11},pid:{type:"int64",id:25},pollInfo:{type:"PollInfo",id:21},replyNum:{type:"int32",id:16},sharedNum:{type:"int32",id:20},threadType:{type:"int32",id:8},tid:{type:"string",id:5},title:{type:"string",id:1},videoInfo:{type:"VideoInfo",id:13}}},User:{fields:{agreeNum:{type:"int32",id:88},alaInfo:{type:"AlaUserInfo",id:78},alaLiveInfo:{type:"AlaLiveInfo",id:85},appealThreadPopover:{type:"string",id:112},baijiahaoInfo:{type:"BaijiahaoInfo",id:95},balv:{type:"Balv",id:10},bawuType:{type:"string",id:26},bazhuGrade:{type:"BazhuSign",id:105},bimgEndTime:{type:"int32",id:40},bimgUrl:{type:"string",id:13},businessAccountInfo:{type:"BusinessAccountInfo",id:111},callFansInfo:{type:"CallFansInfo",id:104},displayAuthType:{type:"int32",id:123},displayIntro:{type:"string",id:138},fansNickname:{type:"string",id:57},fansNum:{type:"int32",id:30},gender:{type:"int32",id:42},giftNum:{type:"int32",id:49},hasConcerned:{type:"int32",id:35},iconinfo:{rule:"repeated",type:"Icon",id:17},id:{type:"int64",id:2},iosBimgFormat:{type:"string",id:22},ip:{type:"string",id:28},ipAddress:{type:"string",id:127},isBawu:{type:"int32",id:25},isDefaultAvatar:{type:"int32",id:106},isInterestman:{type:"int32",id:16},isLike:{type:"int32",id:24},isLogin:{type:"int32",id:1},isManager:{type:"int32",id:11},isMem:{type:"int32",id:39},isSelectTail:{type:"int32",id:51},isVerify:{type:"int32",id:15},isVideobiggie:{type:"int32",id:93},leftCallNum:{type:"int32",id:89},levelId:{type:"int32",id:23},name:{type:"string",id:3},nameShow:{type:"string",id:4},newGodData:{type:"NewGodInfo",id:101},newTshowIcon:{rule:"repeated",type:"TshowInfo",id:65},noUn:{type:"int32",id:6},payMemberInfo:{type:"PayMemberInfo",id:41},pendant:{type:"Pendant",id:77},portrait:{type:"string",id:5},privSets:{type:"PrivSets",id:45},privThread:{type:"int32",id:92},profitList:{rule:"repeated",type:"TwAnchorProfitItem",id:67},rank:{type:"string",id:12},sealPrefix:{type:"string",id:79},sex:{type:"int32",id:32},showPbPrivateFlag:{type:"int32",id:117},tbVip:{type:"TbVipInfo",id:72},themeCard:{type:"ThemeCardInUser",id:69},threadNum:{type:"int32",id:87},tshowIcon:{rule:"repeated",type:"TshowInfo",id:18},twAnchorInfo:{type:"TwZhiBoUser",id:66},type:{type:"int32",id:7},uk:{type:"string",id:107},userType:{type:"int32",id:19},userhide:{type:"int32",id:9},vipInfo:{type:"UserVipInfo",id:61},workCreatorInfo:{type:"WorkCreatorInfo",id:124},userGrowth:{type:"UserGrowth",id:137},themeTail:{type:"ThemeTailInUser",id:141},editConfig:{type:"EditConfig",id:126},levelName:{type:"string",id:125}}},TshowInfo:{fields:{icon:{type:"string",id:1},name:{type:"string",id:2},url:{type:"string",id:3}}},PayMemberInfo:{fields:{endTime:{type:"int32",id:2},picUrl:{type:"string",id:5},propsId:{type:"int32",id:1}}},Pendant:{fields:{imgUrl:{type:"string",id:2},propsId:{type:"uint64",id:1},dynamicUrl:{type:"string",id:3}}},PrivSets:{fields:{bazhuShowInside:{type:"int32",id:8},bazhuShowOutside:{type:"int32",id:9},friend:{type:"int32",id:5},group:{type:"int32",id:3},like:{type:"int32",id:2},live:{type:"int32",id:6},location:{type:"int32",id:1},post:{type:"int32",id:4},reply:{type:"int32",id:7}}},TwAnchorProfitItem:{fields:{availableAnchorLevel:{type:"uint32",id:2},iconLockUrl:{type:"string",id:5},iconUnlockUrl:{type:"string",id:4},id:{type:"int32",id:1},name:{type:"string",id:3}}},TbVipInfo:{fields:{intro:{type:"string",id:1},vDetail:{type:"string",id:3},vUrl:{type:"string",id:2}}},ThemeCardInUser:{fields:{imgAndroid:{type:"string",id:4},imgIos:{type:"string",id:2},level:{type:"uint32",id:5},propsId:{type:"uint64",id:1},dynamicUrl:{type:"string",id:6},exclusiveNo:{type:"string",id:7},jumpUrl:{type:"string",id:8}}},TwZhiBoUser:{fields:{anchorLevel:{type:"uint32",id:1},fieldEx:{type:"string",id:3},inBlackList:{type:"uint32",id:2}}},UserVipInfo:{fields:{aScore:{type:"int32",id:6},eTime:{type:"uint32",id:3},extScore:{type:"uint32",id:4},iconUrl:{type:"string",id:8},nScore:{type:"uint32",id:7},sTime:{type:"uint32",id:2},vLevel:{type:"uint32",id:5},vStatus:{type:"uint32",id:1}}},WorkCreatorInfo:{fields:{authDesc:{type:"string",id:1}}},UserGrowth:{fields:{levelId:{type:"uint32",id:1},score:{type:"int64",id:2},targetScore:{type:"int64",id:3},taskInfo:{rule:"repeated",type:"UserTaskInfo",id:5},tmoney:{type:"double",id:4}}},UserTaskInfo:{fields:{actType:{type:"string",id:10},brief:{type:"string",id:3},currNum:{type:"int32",id:7},id:{type:"int64",id:1},name:{type:"string",id:2},status:{type:"int32",id:5},targetNum:{type:"int32",id:6},targetScheme:{type:"string",id:11},taskIconUrl:{type:"string",id:4},taskType:{type:"int32",id:8},weight:{type:"int32",id:9}}},ThemeTailInUser:{fields:{dynamic:{type:"string",id:2},propsId:{type:"string",id:3},url:{type:"string",id:1}}},PbContent:{fields:{_static:{type:"string",id:17},bigCdnSrc:{type:"string",id:9},bsize:{type:"string",id:5},c:{type:"string",id:11},cdnSrc:{type:"string",id:8},cdnSrcActive:{type:"string",id:36},count:{type:"int32",id:28},duringTime:{type:"uint32",id:13},dynamic:{type:"string",id:16},eType:{type:"uint32",id:24},graffitiInfo:{type:"GraffitiInfo",id:29},height:{type:"uint32",id:19},isLongPic:{type:"uint32",id:34},isNativeApp:{type:"uint32",id:22},itemForumName:{type:"string",id:39},itemId:{type:"uint64",id:38},link:{type:"string",id:3},memeInfo:{type:"MemeInfo",id:33},nativeApp:{type:"NativeApp",id:23},originSize:{type:"uint32",id:27},originSrc:{type:"string",id:25},packetName:{type:"string",id:20},phonetype:{type:"string",id:21},picId:{type:"int64",id:42},showOriginalBtn:{type:"uint32",id:35},src:{type:"string",id:4},text:{type:"string",id:2},tiebaplusInfo:{type:"TiebaPlusInfo",id:40},type:{type:"uint32",id:1},uid:{type:"int64",id:15},width:{type:"uint32",id:18},urlType:{type:"int32",id:32},voiceMd5:{type:"string",id:12},isSub:{type:"uint32",id:14}}},TiebaPlusInfo:{fields:{appCompany:{type:"string",id:11},appIcon:{type:"string",id:6},appId:{type:"string",id:5},appPackage:{type:"string",id:7},appPower:{type:"string",id:10},appPrivacy:{type:"string",id:9},appVersion:{type:"string",id:8},buttonDesc:{type:"string",id:23},desc:{type:"string",id:2},downloadUrl:{type:"string",id:4},forumName:{type:"string",id:20},h5JumpNumber:{type:"string",id:14},h5JumpParam:{type:"string",id:15},h5JumpType:{type:"int32",id:13},isAppoint:{type:"int32",id:18},itemId:{type:"string",id:17},jumpSetting:{type:"int32",id:21},jumpType:{type:"int32",id:16},jumpUrl:{type:"string",id:3},pluginUser:{type:"PluginUser",id:19},targetType:{type:"int32",id:12},title:{type:"string",id:1},wxThumbnail:{type:"string",id:22}}},PluginUser:{fields:{isDownloadCardWhiteuser:{type:"int32",id:5},userId:{type:"int64",id:1},userNameShow:{type:"string",id:2},userPhoto:{type:"string",id:4},userType:{type:"int32",id:3}}},PollInfo:{fields:{endTime:{type:"int32",id:8},isMulti:{type:"int32",id:2},isPolled:{type:"int32",id:5},lastTime:{type:"uint32",id:13},options:{rule:"repeated",type:"PollOption",id:9},optionsCount:{type:"int32",id:4},polledValue:{type:"string",id:6},title:{type:"string",id:12},totalNum:{type:"int64",id:3},totalPoll:{type:"int64",id:11}}},PollOption:{fields:{id:{type:"int32",id:1},num:{type:"int64",id:2},text:{type:"string",id:3}}},VideoInfo:{fields:{firstFrameThumbnail:{type:"string",id:22},isVertical:{type:"uint32",id:15},playCount:{type:"int32",id:10},smallThumbnailUrl:{type:"string",id:21},thumbnailHeight:{type:"uint32",id:8},thumbnailUrl:{type:"string",id:6},thumbnailWidth:{type:"uint32",id:7},videoDesc:{rule:"repeated",type:"VideoDesc",id:12},videoDuration:{type:"uint32",id:3},videoHeight:{type:"uint32",id:5},videoLength:{type:"int32",id:9},videoMd5:{type:"string",id:1},videoType:{type:"uint32",id:14},videoUrl:{type:"string",id:2},videoWidth:{type:"uint32",id:4}}},VideoDesc:{fields:{videoHeight:{type:"string",id:5},videoId:{type:"int32",id:1},videoUrl:{type:"string",id:3},videoWidth:{type:"string",id:4}}},Page:{fields:{curGoodId:{type:"int32",id:8},currentPage:{type:"int32",id:3},hasMore:{type:"int32",id:6},hasPrev:{type:"int32",id:7},newTotalPage:{type:"int32",id:14},offset:{type:"int32",id:2},pageSize:{type:"int32",id:1},pnum:{type:"int32",id:10},reqNum:{type:"int32",id:9},tnum:{type:"int32",id:11},totalCount:{type:"int32",id:4},totalNum:{type:"int32",id:12},totalPage:{type:"int32",id:5}}},PbGoodsInfo:{fields:{goodsFrom:{type:"string",id:6},goodsImage:{type:"string",id:2},goodsPrice:{type:"string",id:3},goodsTitle:{type:"string",id:1},goodsUrl:{type:"string",id:4},goodsUrlH5:{type:"string",id:7},sort:{type:"uint32",id:5}}},PbLinkInfo:{fields:{extTxt:{type:"string",id:5},linkFrom:{type:"string",id:4},picUrl:{type:"string",id:3},sort:{type:"uint32",id:6},title:{type:"string",id:1},toUrl:{type:"string",id:2},urlType:{type:"int32",id:7}}},PbPresent:{fields:{total:{type:"uint32",id:1}}},Post:{fields:{agree:{type:"Agree",id:37},author:{type:"User",id:23},authorId:{type:"int64",id:19},bimgUrl:{type:"string",id:17},content:{rule:"repeated",type:"PbContent",id:5},customFigure:{type:"CustomFigure",id:60},customState:{type:"CustomState",id:61},floor:{type:"uint32",id:3},foldCommentApplyUrl:{type:"string",id:57},foldCommentStatus:{type:"int32",id:56},foldTip:{type:"string",id:44},id:{type:"uint64",id:1},imgNumAbtest:{type:"int32",id:41},iosBimgFormat:{type:"string",id:18},isBub:{type:"uint32",id:11},isFold:{type:"int32",id:43},isPostVisible:{type:"int32",id:39},isTopAgreePost:{type:"int32",id:45},isVoice:{type:"uint32",id:9},isVote:{type:"uint32",id:8},isWonderfulPost:{type:"int32",id:51},lbsInfo:{type:"Lbs",id:7},needLog:{type:"int32",id:40},outerItem:{type:"Item",id:54},present:{type:"PbPresent",id:28},showSquared:{type:"int32",id:47},signature:{type:"SignatureData",id:21},subPostList:{type:"SubPost",id:15},subPostNumber:{type:"uint32",id:13},tailInfo:{type:"TailInfo",id:22},tid:{type:"int64",id:46},time:{type:"uint32",id:4},title:{type:"string",id:2},dynamicUrl:{type:"string",id:63},itemStar:{rule:"repeated",type:"HeadItem",id:52},item:{type:"Item",id:53},bubbleInfo:{type:"ThemeBubble",id:64},rumorSourceImg:{type:"string",id:65},advertisement:{type:"Advertisement",id:55}}},SignatureData:{fields:{content:{rule:"repeated",type:"SignatureContent",id:4},fontColor:{type:"string",id:3},fontKeyName:{type:"string",id:2},signatureId:{type:"int32",id:1}}},SignatureContent:{fields:{text:{type:"string",id:2},type:{type:"int32",id:1}}},SubPost:{fields:{subPostList:{rule:"repeated",type:"SubPostList",id:2}}},SubPostList:{fields:{authorId:{type:"int64",id:4},content:{rule:"repeated",type:"PbContent",id:2},floor:{type:"uint32",id:6},id:{type:"uint64",id:1},time:{type:"uint32",id:3},title:{type:"string",id:5}}},TailInfo:{fields:{content:{type:"string",id:4},iconLink:{type:"string",id:3},iconUrl:{type:"string",id:2},tailType:{type:"int32",id:1}}},ThemeBubble:{fields:{jumpUrl:{type:"string",id:3},packageId:{type:"int32",id:2},propsId:{type:"int32",id:1}}},RecommendInfo:{fields:{title:{type:"string",id:1},userList:{rule:"repeated",type:"SchoolRecomUserInfo",id:2}}},SchoolRecomUserInfo:{fields:{institute:{type:"string",id:4},isLiked:{type:"uint32",id:5},portrait:{type:"string",id:3},uid:{type:"uint64",id:1},uname:{type:"string",id:2}}},RecommendTip:{fields:{isFollow:{type:"string",id:2},reason:{type:"string",id:1}}},RecomTagInfo:{fields:{id:{type:"int32",id:1},name:{type:"string",id:2},pic:{type:"string",id:3}}},RecomTopicList:{fields:{discussNum:{type:"uint64",id:4},tag:{type:"uint32",id:5},topicDesc:{type:"string",id:6},topicId:{type:"uint64",id:1},topicName:{type:"string",id:2},topicPic:{type:"string",id:7},type:{type:"uint32",id:3}}},RewardCard:{fields:{bannerJumpUrl:{type:"string",id:15},buttonText:{type:"string",id:7},endText:{type:"string",id:5},endTime:{type:"string",id:6},headImgs:{rule:"repeated",type:"string",id:13},icon:{type:"string",id:2},id:{type:"string",id:1},joinNum:{type:"string",id:9},joinSuccText:{type:"string",id:14},jumpUrl:{type:"string",id:8},rewardMaterial:{rule:"repeated",type:"RewardMaterial",id:11},startText:{type:"string",id:4},title:{type:"string",id:3},totalNum:{type:"string",id:12}}},RewardMaterial:{fields:{icon:{type:"string",id:1},isMatched:{type:"int32",id:3},isNewestMatchedLevel:{type:"int32",id:4},unlockLevel:{type:"string",id:2}}},ServiceArea:{fields:{picurl:{type:"string",id:2},servicename:{type:"string",id:1},serviceurl:{type:"string",id:3},thirdStatisticsUrl:{rule:"repeated",type:"string",id:8}}},SimpleForum:{fields:{avatar:{type:"string",id:4},deletedReasonInfo:{type:"DeletedReasonInfo",id:17},firstClass:{type:"string",id:7},id:{type:"int64",id:1},isBrandForum:{type:"int32",id:14},isExists:{type:"int32",id:3},isFrsMask:{type:"int32",id:18},isLiked:{type:"uint32",id:5},memberNum:{type:"int32",id:12},name:{type:"string",id:2},postNum:{type:"int32",id:13},secondClass:{type:"string",id:8},themeColor:{type:"ThemeColorInfo",id:19},recommendTip:{type:"string",id:20},showInfo:{type:"ForumShowInfo",id:22},spritePbGuide:{type:"SpritePBGuide",id:23}}},SpritePBGuide:{fields:{buttonText:{type:"string",id:3},guideText:{type:"string",id:2},guideType:{type:"int64",id:1},jumpUrl:{type:"string",id:4}}},SmartApp:{fields:{_abstract:{type:"string",id:3},avatar:{type:"string",id:1},h5Url:{type:"string",id:5},id:{type:"string",id:6},isGame:{type:"int32",id:10},isRecom:{type:"int32",id:9},link:{type:"string",id:7},name:{type:"string",id:2},nawsAppId:{type:"uint64",id:8},pic:{type:"string",id:4}}},SortOption:{fields:{name:{type:"string",id:1},sortType:{type:"int32",id:2}}},StarEnter:{fields:{bazhuMark:{type:"int32",id:10},icon:{type:"string",id:1},text:{type:"string",id:8},time:{type:"int32",id:6},title:{type:"string",id:2},type:{type:"int32",id:4},url:{type:"string",id:5},weight:{type:"int32",id:3}}},TaskInfo:{fields:{bgimg:{type:"string",id:3},cardType:{type:"int32",id:15},endTime:{type:"int64",id:6},floorGodReply:{type:"string",id:14},forumId:{type:"int64",id:8},forumName:{type:"string",id:9},isGodReply:{type:"int32",id:13},objId:{type:"string",id:10},rewardCard:{type:"RewardCard",id:12},startTime:{type:"int64",id:5},taskId:{type:"int64",id:1},threadId:{type:"int64",id:2},threadImg:{type:"string",id:4},threadImgSize:{type:"string",id:7},voteSchema:{type:"VoteSchema",id:11}}},VoteSchema:{fields:{jumpUrl:{type:"string",id:3},textAfterVote:{type:"string",id:2},textBeforeVote:{type:"string",id:1}}},ThreadIdListInfo:{fields:{isPartialVisible:{type:"int32",id:2},tid:{type:"int64",id:1}}},ThreadInfo:{fields:{_abstract:{rule:"repeated",type:"Abstract",id:21},abTag:{type:"string",id:108},agree:{type:"Agree",id:126},agreeNum:{type:"int32",id:124},alaInfo:{type:"AlaLiveInfo",id:113},articleCover:{type:"string",id:162},author:{type:"User",id:18},authorId:{type:"int64",id:56},bjhContentTag:{type:"int32",id:163},categoryName:{type:"string",id:73},cheakRepeat:{type:"uint32",id:107},clickMonitorUrl:{type:"string",id:206},clickUrl:{type:"string",id:32},collectMarkPid:{type:"string",id:51},collectNum:{type:"uint32",id:190},collectStatus:{type:"int32",id:50},commentNum:{type:"int32",id:20},createTime:{type:"int32",id:45},customFigure:{type:"CustomFigure",id:211},customState:{type:"CustomState",id:212},dislikeInfo:{rule:"repeated",type:"DislikeInfo",id:120},exposureMonitorUrl:{type:"string",id:205},fid:{type:"int64",id:27},firstPostContent:{rule:"repeated",type:"PbContent",id:142},firstPostId:{type:"int64",id:40},fname:{type:"string",id:28},forumInfo:{type:"SimpleForum",id:155},id:{type:"int64",id:1},isActivity:{type:"int32",id:16},isBakan:{type:"int32",id:12},isBjh:{type:"int32",id:161},isBookChapter:{type:"uint32",id:103},isBub:{type:"int32",id:39},isCalled:{type:"int32",id:136},isDeal:{type:"int32",id:97},isDeleted:{type:"int32",id:181},isFrsMask:{type:"int32",id:198},isGod:{type:"int32",id:131},isGodthreadRecommend:{type:"int32",id:85},isGood:{type:"int32",id:10},isHeadlinepost:{type:"int32",id:165},isHighlight:{type:"int32",id:213},isLinkThread:{type:"int32",id:128},isLivepost:{type:"int32",id:30},isMeizhi:{type:"int32",id:14},isMembertop:{type:"int32",id:54},isMultiforumThread:{type:"int32",id:123},isNotice:{type:"int32",id:17},isNovel:{type:"int32",id:76},isNovelReward:{type:"int32",id:78},isNovelThank:{type:"int32",id:77},isNtitle:{type:"int32",id:38},isPartialVisible:{type:"int32",id:127},isPic:{type:"int32",id:43},isPictxt:{type:"int32",id:204},isProtal:{type:"int32",id:13},isSCard:{type:"uint32",id:170},isShareThread:{type:"int32",id:143},isTiebaplusAd:{type:"string",id:193},isTop:{type:"int32",id:9},isTopic:{type:"int32",id:148},isVideobiggieRecomthread:{type:"int32",id:153},isVoiceThread:{type:"int32",id:15},isVote:{type:"int32",id:11},lastReadPid:{type:"uint64",id:106},lastReplyer:{type:"User",id:19},lastTime:{type:"string",id:6},lastTimeInt:{type:"int32",id:7},legoCard:{type:"string",id:94},livecoverSrc:{type:"string",id:67},location:{type:"Lbs",id:62},media:{rule:"repeated",type:"Media",id:22},mediaNum:{rule:"repeated",type:"MediaNum",id:25},nid:{type:"string",id:164},originThreadInfo:{type:"OriginThreadInfo",id:141},pbLinkInfo:{rule:"repeated",type:"PbLinkInfo",id:178},pollInfo:{type:"PollInfo",id:74},postId:{type:"int64",id:52},recomReason:{type:"string",id:109},recomSource:{type:"string",id:104},recomWeight:{type:"string",id:105},recommendTip:{type:"RecommendTip",id:202},replyNum:{type:"int32",id:4},richAbstract:{rule:"repeated",type:"PbContent",id:112},richTitle:{rule:"repeated",type:"PbContent",id:111},scardPacketId:{type:"string",id:171},shareNum:{type:"int64",id:135},showCommented:{type:"int32",id:31},storecount:{type:"int32",id:68},tShareImg:{type:"string",id:159},tabId:{type:"int32",id:175},tabName:{type:"string",id:176},threadRecommendInfos:{rule:"repeated",type:"ThreadRecommendInfo",id:191},threadShareLink:{type:"string",id:172},threadType:{type:"int32",id:26},threadTypes:{type:"int32",id:8},tid:{type:"int64",id:2},tiebaplusCantDelete:{type:"int32",id:197},tiebaplusExtraParam:{type:"string",id:196},tiebaplusOrderId:{type:"string",id:194},tiebaplusToken:{type:"string",id:195},title:{type:"string",id:3},topAgreePost:{type:"Post",id:125},topic:{type:"Topic",id:47},topicH5Url:{type:"string",id:150},topicUserName:{type:"string",id:149},twzhiboInfo:{type:"ZhiBoInfoTW",id:72},videoInfo:{type:"VideoInfo",id:79},viewNum:{type:"int32",id:5},wonderfulPostInfo:{type:"string",id:177},worksInfo:{type:"WorksInfo",id:189},zan:{type:"Zan",id:41},tiebaplusAd:{type:"TiebaPlusAd",id:201},itemStar:{rule:"repeated",type:"HeadItem",id:180},threadRecommendTag:{type:"ThreadRecommendTag",id:210},item:{type:"Item",id:179},taskInfo:{type:"TaskInfo",id:83},isXiuxiuThread:{type:"int32",id:214},nawsInfo:{type:"SmartApp",id:156},editInfo:{type:"EditInfo",id:203},isExcellentThread:{type:"int32",id:219}}},ThreadRecommendInfo:{fields:{backgroundColor:{type:"ThemeColorInfo",id:13},recommendIcon:{type:"string",id:9},recommendReason:{type:"string",id:5},recommendReasonColor:{type:"ThemeColorInfo",id:11},recommendType:{type:"string",id:7},recommendTypeColor:{type:"ThemeColorInfo",id:10},stripColor:{type:"ThemeColorInfo",id:12},topicId:{type:"int64",id:6},recommendTail:{type:"string",id:8},jumpLink:{type:"string",id:14}}},Topic:{fields:{isLpost:{type:"int32",id:1},link:{type:"string",id:3}}},ZhiBoInfoTW:{fields:{content:{type:"string",id:11},copythreadRemind:{type:"uint32",id:20},fieldEx:{type:"string",id:22},forumId:{type:"uint64",id:8},forumName:{type:"string",id:7},freqNum:{type:"uint32",id:19},isCopytwzhibo:{type:"uint32",id:21},isHeadline:{type:"int32",id:17},lastModifiedTime:{type:"uint64",id:9},livecoverSrc:{type:"string",id:2},livecoverSrcBsize:{type:"string",id:3},livecoverSrcStatus:{type:"string",id:15},postNum:{type:"uint32",id:4},replyNum:{type:"uint32",id:5},threadId:{type:"uint64",id:1},title:{type:"string",id:10},user:{type:"User",id:12},zan:{type:"Zan",id:6}}},Zan:{fields:{isLiked:{type:"int32",id:3},lastTime:{type:"int32",id:4},num:{type:"int32",id:1}}},WorksInfo:{fields:{isWorks:{type:"int32",id:1},tagList:{type:"VideoTags",id:3}}},VideoTags:{fields:{first:{type:"string",id:1},second:{type:"string",id:2},tags:{rule:"repeated",type:"string",id:3}}},TiebaPlusAd:{fields:{adSource:{type:"string",id:3},costUrl:{type:"string",id:1},showUrl:{type:"string",id:2}}},ThreadRecommendTag:{fields:{backgroundColor:{type:"ThemeColorInfo",id:3},text:{type:"string",id:1},textColor:{type:"ThemeColorInfo",id:2}}},VitalityInfo:{fields:{frequentlyForumInfo:{type:"FrequentlyForumInfo",id:1}}},frs:{nested:{ActivityHead:{fields:{activityTitle:{type:"string",id:2},activityType:{type:"int32",id:1},headImgs:{rule:"repeated",type:"HeadImgs",id:3},isAd:{type:"bool",id:13},objId:{type:"string",id:5},pullDownClickUrl:{type:"string",id:12},pullDownExposureUrl:{type:"string",id:11},pullDownInterval:{type:"int32",id:8},pullDownPackageName:{type:"string",id:15},pullDownPicAndroid:{type:"string",id:10},pullDownPicIos:{type:"string",id:9},pullDownSchema:{type:"string",id:14},pullDownUrl:{type:"string",id:7},topSize:{type:"Size",id:4}}},CoverImageColor:{fields:{model:{type:"int32",id:2},value:{type:"string",id:1}}},DataRes:{fields:{activityhead:{type:"ActivityHead",id:23},adSampleMapKey:{type:"string",id:114},adShowSelect:{type:"int32",id:112},agreeBanner:{type:"AgreeBanner",id:65},anti:{type:"Anti",id:5},aspShownInfo:{type:"string",id:56},ctime:{type:"int32",id:12},fortuneBag:{type:"int32",id:10},fortuneDesc:{type:"string",id:19},forum:{type:"ForumInfo",id:2},forumRule:{type:"ForumRuleStatus",id:105},frsStar:{type:"StarInfo",id:3},frsTabDefault:{type:"int32",id:38},frsTabInfo:{rule:"repeated",type:"FrsTabInfo",id:22},gameDefaultTabId:{type:"int32",id:74},gconAccount:{type:"GconAccount",id:18},group:{type:"Group",id:6},hotUserEntry:{type:"HotUserRankEntry",id:102},isGetHorseRaceLamp:{type:"int32",id:104},isNewUrl:{type:"int32",id:9},itemInfo:{type:"ItemInfo",id:103},logid:{type:"int64",id:13},navTabInfo:{type:"NavTabInfo",id:37},needLog:{type:"int32",id:48},page:{type:"Page",id:4},partialVisibleToast:{type:"string",id:62},privateForumActiveInfo:{type:"ForumActiveInfo",id:98},serverTime:{type:"int32",id:14},serviceArea:{rule:"repeated",type:"ServiceArea",id:100},showAdsense:{type:"int32",id:108},smartFrsType:{type:"int32",id:47},sortType:{type:"int32",id:39},starEnter:{rule:"repeated",type:"StarEnter",id:20},threadIdList:{rule:"repeated",type:"int64",id:8},threadIdListInfo:{rule:"repeated",type:"ThreadIdListInfo",id:64},threadList:{rule:"repeated",type:"ThreadInfo",id:7},time:{type:"int32",id:11},user:{type:"User",id:1},userList:{rule:"repeated",type:"User",id:17},videoAutoPlay:{type:"int32",id:93},vitalityInfo:{type:"VitalityInfo",id:42},voiceRoomConfig:{type:"int32",id:111},headSdk:{type:"HeadSdk",id:34},frsGameTabInfo:{rule:"repeated",type:"FrsTabInfo",id:68},isMemberBroadcastForum:{type:"int32",id:119},forumGroup:{type:"ForumGroup",id:120}}},Fans:{fields:{isGet:{type:"int32",id:4},leftTime:{type:"int32",id:2},num:{type:"int32",id:5},open:{type:"int32",id:3},startTime:{type:"int32",id:1}}},FeedGroupInfo:{fields:{jumpUrl:{type:"string",id:2},name:{type:"string",id:1}}},ForumGroup:{fields:{feedCard:{type:"GroupFeedCard",id:2},topbarEntrance:{type:"TopbarEntrance",id:1}}},ForumInfo:{fields:{accelerateCotent:{type:"string",id:50},albumOpenPhotoFrs:{type:"int32",id:23},avatar:{type:"string",id:24},banner:{type:"Banner",id:32},bannerList:{type:"BannerList",id:33},canUseAccelerate:{type:"int32",id:49},curScore:{type:"int32",id:13},deletedReasonInfo:{type:"DeletedReasonInfo",id:85},fShareImg:{type:"string",id:78},firstClass:{type:"string",id:3},forumGameLabel:{type:"string",id:66},forumShareLink:{type:"string",id:79},forumvipShowIcon:{type:"MemberShowIcon",id:55},gameName:{type:"string",id:54},gameUrl:{type:"string",id:47},goodClassify:{rule:"repeated",type:"Classify",id:21},hasFrsStar:{type:"int32",id:12},hasGame:{type:"int32",id:46},hasPostpre:{type:"int32",id:26},id:{type:"int64",id:1},isBrandForum:{type:"int32",id:71},isFrsMask:{type:"int32",id:86},isLike:{type:"int32",id:6},isLiveGameForum:{type:"int32",id:63},isNewGameForum:{type:"int32",id:65},isPrivateForum:{type:"int32",id:75},isShowAllTopThread:{type:"int32",id:72},isShowBawutask:{type:"int32",id:77},isShowForumrule:{type:"int32",id:84},levelId:{type:"int32",id:35},levelName:{type:"string",id:8},levelupScore:{type:"int32",id:14},managers:{rule:"repeated",type:"Manager",id:17},memberNum:{type:"int32",id:9},name:{type:"string",id:2},postNum:{type:"int32",id:11},riskTipNotice:{type:"string",id:81},riskTipPop:{type:"string",id:80},riskTipPopTitle:{type:"string",id:82},secondClass:{type:"string",id:4},signInInfo:{type:"SignInfo",id:15},slogan:{type:"string",id:25},specialForumType:{type:"string",id:68},superboy:{type:"string",id:40},tagInfo:{type:"TagInfo",id:38},themeColor:{type:"ThemeColorInfo",id:73},threadNum:{type:"int32",id:10},topicSpecialIcon:{type:"string",id:69},topicSpecialIconRight:{type:"string",id:70},userLevel:{type:"int32",id:7},warningMsg:{type:"string",id:67},postPrefix:{type:"PostPrefix",id:39}}},FrsPageResIdl:{fields:{data:{type:"DataRes",id:2},error:{type:"Error",id:1}}},GroupFeedCard:{fields:{cardTitle:{type:"string",id:1},groupList:{rule:"repeated",type:"FeedGroupInfo",id:3},index:{type:"uint32",id:2}}},HeadImgs:{fields:{btnText:{type:"string",id:5},coverImageColor:{type:"CoverImageColor",id:26},coverUrl:{type:"string",id:24},downloadAppid:{type:"string",id:23},downloadAppname:{type:"string",id:13},downloadDeveloper:{type:"string",id:14},downloadImg:{type:"string",id:17},downloadIsThirdpage:{type:"int32",id:12},downloadItemId:{type:"int32",id:22},downloadPackageName:{type:"string",id:21},downloadPackageSize:{type:"string",id:15},downloadPrivacyPolicy:{type:"string",id:20},downloadUrl:{type:"string",id:16},downloadUserPower:{type:"string",id:19},downloadVersion:{type:"string",id:18},hasSecondPage:{type:"uint32",id:10},imgUrl:{type:"string",id:1},packageName:{type:"string",id:11},pcUrl:{type:"string",id:2},playUrl:{type:"string",id:25},schema:{type:"string",id:8},subtitle:{type:"string",id:4},tagNameUrl:{type:"string",id:6},tagNameWh:{type:"string",id:7},thirdStatisticsUrl:{rule:"repeated",type:"string",id:9},title:{type:"string",id:3},videoImageColor:{rule:"repeated",type:"VideoImageColor",id:27}}},PostPrefix:{fields:{mode:{type:"int32",id:1},text:{type:"string",id:2},time:{type:"string",id:4},type:{type:"string",id:3}}},SignForum:{fields:{isOn:{type:"int32",id:1}}},SignInfo:{fields:{forumInfo:{type:"SignForum",id:2},userInfo:{type:"SignUser",id:1},hasChatroomSign:{type:"int32",id:3}}},SignUser:{fields:{cSignNum:{type:"int32",id:8},contSignNum:{type:"int32",id:5},hunSignNum:{type:"int32",id:9},isOrgDisabled:{type:"int32",id:7},isSignIn:{type:"int32",id:2},missSignNum:{type:"int32",id:11},signTime:{type:"int32",id:4},totalResignNum:{type:"int32",id:10},userId:{type:"int64",id:1},userSignRank:{type:"int32",id:3}}},Size:{fields:{height:{type:"int32",id:2},width:{type:"int32",id:1}}},StarInfo:{fields:{hasFrsStar:{type:"int32",id:1},head:{type:"string",id:3},starForumHeadimg:{type:"string",id:17},top:{type:"string",id:2},fans:{type:"Fans",id:6},topSize:{type:"Size",id:14},headSize:{type:"Size",id:15}}},TagInfo:{fields:{color:{type:"int32",id:4},firstCategory:{type:"string",id:12},forumId:{type:"int64",id:1},hotValue:{type:"int32",id:5},influence:{type:"int32",id:8},opTime:{type:"int32",id:10},recomTag:{type:"RecomTagInfo",id:11},relationWeight:{type:"int32",id:9},tagId:{type:"int32",id:2},tagLevel:{type:"int32",id:7},tagName:{type:"string",id:3},tagType:{type:"int32",id:6}}},TopbarEntrance:{fields:{guideTipFirstText:{type:"string",id:1},guideTipText:{type:"string",id:2},jumpUrl:{type:"string",id:3}}},VideoImageColor:{fields:{color:{type:"string",id:2},time:{type:"uint32",id:1}}}}},threadlist:{nested:{DataRes:{fields:{adSampleMapKey:{type:"string",id:8},adShowSelect:{type:"int32",id:7},bannerList:{type:"BannerList",id:3},partialVisibleToast:{type:"string",id:5},threadList:{rule:"repeated",type:"ThreadInfo",id:1},userList:{rule:"repeated",type:"User",id:2}}},ThreadListResIdl:{fields:{data:{type:"DataRes",id:2},error:{type:"Error",id:1}}}}},generaltablelist:{nested:{DataRes:{fields:{adSampleMapKey:{type:"string",id:13},adShowSelect:{type:"int32",id:11},appList:{rule:"repeated",type:"App",id:10},generalList:{rule:"repeated",type:"ThreadInfo",id:1},hasMore:{type:"int32",id:2},itemInfo:{type:"ItemInfo",id:8},sortType:{type:"int32",id:7},userList:{rule:"repeated",type:"User",id:3},sortOption:{rule:"repeated",type:"SortOption",id:9}}},GeneralTabListResIdl:{fields:{data:{type:"DataRes",id:2},error:{type:"Error",id:1}}}}},pb:{nested:{BusinessPromotInfo:{fields:{isHeadlinepost:{type:"int32",id:2},isPromot:{type:"int64",id:1},isSCard:{type:"int32",id:3}}},DataRes:{fields:{anti:{type:"Anti",id:4},bannerList:{type:"BannerList",id:12},businessPromotInfo:{type:"BusinessPromotInfo",id:53},displayForum:{type:"SimpleForum",id:39},foldTip:{type:"string",id:44},forum:{type:"SimpleForum",id:2},forumRule:{type:"ForumRuleStatus",id:60},hasFloor:{type:"int32",id:7},hasFoldComment:{type:"int32",id:68},isBlackWhite:{type:"int32",id:62},isNewUrl:{type:"int32",id:10},isOfficialForum:{type:"int32",id:63},isPurchase:{type:"int32",id:65},page:{type:"Page",id:3},partialVisibleToast:{type:"string",id:41},pbNotice:{type:"string",id:67},pbNoticeType:{type:"int32",id:66},pbSortInfo:{rule:"repeated",type:"PbSortType",id:49},postList:{rule:"repeated",type:"Post",id:6},recomAlaInfo:{type:"AlaLiveInfo",id:55},serverTime:{type:"int32",id:14},showAdsense:{type:"int32",id:61},sortType:{type:"int32",id:50},switchReadOpen:{type:"int32",id:32},thread:{type:"ThreadInfo",id:8},threadFreqNum:{type:"int64",id:37},threadTopic:{rule:"repeated",type:"RecomTopicList",id:48},user:{type:"User",id:1},userList:{rule:"repeated",type:"User",id:13},floatingIcon:{type:"FloatingIcon",id:64},firstFloorPost:{type:"Post",id:38},topAnswer:{type:"Post",id:73}}},FloatingIconItem:{fields:{clickStatisticsUrl:{type:"string",id:4},deeplink:{type:"string",id:5},displayAdIcon:{type:"string",id:13},floatType:{type:"string",id:10},foldLottie:{type:"string",id:8},foldName:{type:"string",id:11},iconUrl:{type:"string",id:2},packageName:{type:"string",id:7},scheme:{type:"string",id:6},unfoldLottie:{type:"string",id:9},unfoldName:{type:"string",id:12},url:{type:"string",id:1},viewStatisticsUrl:{type:"string",id:3}}},FloatingIcon:{fields:{pbpage:{type:"FloatingIconItem",id:1}}},PbPageResIdl:{fields:{data:{type:"DataRes",id:2},error:{type:"Error",id:1}}},PbSortType:{fields:{sortName:{type:"string",id:2},sortType:{type:"int32",id:1}}}}},personalized:{nested:{DataRes:{fields:{anti:{type:"Anti",id:16},liveAnswer:{type:"LiveAnswer",id:17},bannerList:{type:"BannerList",id:9},freshCtrlNum:{type:"int32",id:21},isNewUrl:{type:"int32",id:8},sugSeconds:{type:"uint32",id:6},threadList:{rule:"repeated",type:"ThreadInfo",id:2},threadPersonalized:{rule:"repeated",type:"ThreadPersonalized",id:7},userFollowLive:{type:"UserFollowLive",id:20},showAdsense:{type:"int32",id:25}}},DislikeReason:{fields:{dislikeId:{type:"uint32",id:2},dislikeReason:{type:"string",id:1},extra:{type:"string",id:3}}},LiveAnswer:{fields:{bannerHigh:{type:"int32",id:3},bannerUrl:{type:"string",id:1},bannerWidth:{type:"int32",id:2},jumpUrl:{type:"string",id:4},activityId:{type:"int64",id:5}}},PersonalizedResIdl:{fields:{data:{type:"DataRes",id:2},error:{type:"Error",id:1}}},ThreadPersonalized:{fields:{abtestTag:{type:"string",id:4},dislikeResource:{rule:"repeated",type:"DislikeReason",id:5},extra:{type:"string",id:6},source:{type:"string",id:3},tid:{type:"uint64",id:1},weight:{type:"string",id:2}}},UserFollowLive:{fields:{_switch:{type:"uint32",id:2}}}}}}}}},tiebaRoot=protobuf.Root.fromJSON(tiebaJson),url=$request.url,method=$request.method,isQuanX="undefined"!=typeof $task,binaryBody=isQuanX?new Uint8Array($response.bodyBytes):$response.body;let body;if(console.log("2023-06-15"),"POST"!==$request.method&&$notification.post("贴吧proto去广告脚本错误","请求方法不为POST:",url),url.includes("frs/page")){console.log("贴吧-FrsPage");let t=tiebaRoot.lookupType("model.frs.FrsPageResIdl"),e=t.decode(binaryBody);e.data.threadList=removeLive(e.data.threadList),e.data.activityhead?.isAd?(console.log("frs去除吧内header图片广告"),e.data.activityhead=null):console.log("无需处理activityhead"),body=t.encode(e).finish()}else if(url.includes("frs/threadlist")){console.log("贴吧-threadlist");let t=tiebaRoot.lookupType("model.threadlist.ThreadListResIdl"),e=t.decode(binaryBody);body=t.encode(e).finish()}else if(url.includes("pb/page")){console.log("贴吧-PbPage");let t=tiebaRoot.lookupType("model.pb.PbPageResIdl"),e=t.decode(binaryBody);if(e.data.postList?.length)for(const t of e.data.postList)t.outerItem&&(console.log("outer_item去除"),t.outerItem=null);else console.log("无需处理postList中的outer_item");e.data.recomAlaInfo?.liveId?(console.log("帖子详情页推荐的直播广告去除"),e.data.recomAlaInfo=null):console.log("帖子详情页无直播广告"),body=t.encode(e).finish()}else if(url.includes("excellent/personalized")){console.log("贴吧-personalized");let t=tiebaRoot.lookupType("model.personalized.PersonalizedResIdl"),e=t.decode(binaryBody);e.data.threadList=removeLive(e.data.threadList),e.data.liveAnswer?(console.log("去除推荐页上方的banner广告"),e.data.liveAnswer=null):console.log("推荐页无banner广告"),body=t.encode(e).finish()}else if(url.includes("frs/generalTabList")){console.log("贴吧-generalTabList");let t=tiebaRoot.lookupType("model.generaltablelist.GeneralTabListResIdl"),e=t.decode(binaryBody);body=t.encode(e).finish()}else $notification.post("贴吧proto去广告脚本错误","url匹配错误:",url);function removeLive(t){let e=t;const i=t?.length;return i?(e=t.filter((t=>!t.alaInfo||(console.log("去除推荐的直播帖子"),!1))),i===e.length&&console.log("无推荐的直播帖子")):console.log("无需处理threadList"),e}console.log(`${body.byteLength}---${body.buffer.byteLength}`),isQuanX?$done({bodyBytes:body.buffer.slice(body.byteOffset,body.byteLength+body.byteOffset)}):$done({body:body});