UNPKG

@peculiar/fortify-webcomponents

Version:

Web-components for creating CSR or Certificate and viewing certificates list using Fortify

10 lines 81 kB
/*! * © Peculiar Ventures https://peculiarventures.com/ - BSD 3-Clause License */ System.register(["./p-920e4680.system.js"],(function(exports){"use strict";var commonjsGlobal;return{setters:[function(t){commonjsGlobal=t.bj}],execute:function(){var protobuf$2={exports:{}}; /*! * protobuf.js v7.4.0 (c) 2016, daniel wirtz * compiled thu, 22 aug 2024 20:30:39 utc * licensed under the bsd-3-clause license * see: https://github.com/dcodeio/protobuf.js for details */(function(module){(function(undefined$1){(function t(i,e,n){function r(t){var n=e[t];if(!n)i[t][0].call(n=e[t]={exports:{}},r,n,n.exports);return n.exports}var s=r(n[0]);s.util.global.protobuf=s;if(typeof undefined$1==="function"&&undefined$1.amd)undefined$1(["long"],(function(t){if(t&&t.isLong){s.util.Long=t;s.configure()}return s}));if(module&&module.exports)module.exports=s})({1:[function(t,i,e){i.exports=n;function n(t,i){var e=new Array(arguments.length-1),n=0,r=2,s=true;while(r<arguments.length)e[n++]=arguments[r++];return new Promise((function r(f,u){e[n]=function t(i){if(s){s=false;if(i)u(i);else{var e=new Array(arguments.length-1),n=0;while(n<e.length)e[n++]=arguments[n];f.apply(null,e)}}};try{t.apply(i||null,e)}catch(t){if(s){s=false;u(t)}}}))}},{}],2:[function(t,i,e){var n=e;n.length=function t(i){var e=i.length;if(!e)return 0;var n=0;while(--e%4>1&&i.charAt(e)==="=")++n;return Math.ceil(i.length*3)/4-n};var r=new Array(64);var s=new Array(123);for(var f=0;f<64;)s[r[f]=f<26?f+65:f<52?f+71:f<62?f-4:f-59|43]=f++;n.encode=function t(i,e,n){var s=null,f=[];var u=0,o=0,a;while(e<n){var h=i[e++];switch(o){case 0:f[u++]=r[h>>2];a=(h&3)<<4;o=1;break;case 1:f[u++]=r[a|h>>4];a=(h&15)<<2;o=2;break;case 2:f[u++]=r[a|h>>6];f[u++]=r[h&63];o=0;break}if(u>8191){(s||(s=[])).push(String.fromCharCode.apply(String,f));u=0}}if(o){f[u++]=r[a];f[u++]=61;if(o===1)f[u++]=61}if(s){if(u)s.push(String.fromCharCode.apply(String,f.slice(0,u)));return s.join("")}return String.fromCharCode.apply(String,f.slice(0,u))};var u="invalid encoding";n.decode=function t(i,e,n){var r=n;var f=0,o;for(var a=0;a<i.length;){var h=i.charCodeAt(a++);if(h===61&&f>1)break;if((h=s[h])===undefined$1)throw Error(u);switch(f){case 0:o=h;f=1;break;case 1:e[n++]=o<<2|(h&48)>>4;o=h;f=2;break;case 2:e[n++]=(o&15)<<4|(h&60)>>2;o=h;f=3;break;case 3:e[n++]=(o&3)<<6|h;f=0;break}}if(f===1)throw Error(u);return n-r};n.test=function t(i){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(i)}},{}],3:[function(t,i,e){i.exports=n;function n(t,i){if(typeof t==="string"){i=t;t=undefined$1}var e=[];function r(t){if(typeof t!=="string"){var i=s();if(n.verbose)console.log("codegen: "+i);i="return "+i;if(t){var f=Object.keys(t),u=new Array(f.length+1),o=new Array(f.length),a=0;while(a<f.length){u[a]=f[a];o[a]=t[f[a++]]}u[a]=i;return Function.apply(null,u).apply(null,o)}return Function(i)()}var h=new Array(arguments.length-1),c=0;while(c<h.length)h[c]=arguments[++c];c=0;t=t.replace(/%([%dfijs])/g,(function t(i,e){var n=h[c++];switch(e){case"d":case"f":return String(Number(n));case"i":return String(Math.floor(n));case"j":return JSON.stringify(n);case"s":return String(n)}return"%"}));if(c!==h.length)throw Error("parameter count mismatch");e.push(t);return r}function s(n){return"function "+(n||i||"")+"("+(t&&t.join(",")||"")+"){\n "+e.join("\n ")+"\n}"}r.toString=s;return r}n.verbose=false},{}],4:[function(t,i,e){i.exports=n;function n(){this._listeners={}}n.prototype.on=function t(i,e,n){(this._listeners[i]||(this._listeners[i]=[])).push({fn:e,ctx:n||this});return this};n.prototype.off=function t(i,e){if(i===undefined$1)this._listeners={};else{if(e===undefined$1)this._listeners[i]=[];else{var n=this._listeners[i];for(var r=0;r<n.length;)if(n[r].fn===e)n.splice(r,1);else++r}}return this};n.prototype.emit=function t(i){var e=this._listeners[i];if(e){var n=[],r=1;for(;r<arguments.length;)n.push(arguments[r++]);for(r=0;r<e.length;)e[r].fn.apply(e[r++].ctx,n)}return this}},{}],5:[function(t,i,e){i.exports=f;var n=t(1),r=t(7);var s=r("fs");function f(t,i,e){if(typeof i==="function"){e=i;i={}}else if(!i)i={};if(!e)return n(f,this,t,i);if(!i.xhr&&s&&s.readFile)return s.readFile(t,(function n(r,s){return r&&typeof XMLHttpRequest!=="undefined"?f.xhr(t,i,e):r?e(r):e(null,i.binary?s:s.toString("utf8"))}));return f.xhr(t,i,e)}f.xhr=function t(i,e,n){var r=new XMLHttpRequest;r.onreadystatechange=function t(){if(r.readyState!==4)return undefined$1;if(r.status!==0&&r.status!==200)return n(Error("status "+r.status));if(e.binary){var i=r.response;if(!i){i=[];for(var s=0;s<r.responseText.length;++s)i.push(r.responseText.charCodeAt(s)&255)}return n(null,typeof Uint8Array!=="undefined"?new Uint8Array(i):i)}return n(null,r.responseText)};if(e.binary){if("overrideMimeType"in r)r.overrideMimeType("text/plain; charset=x-user-defined");r.responseType="arraybuffer"}r.open("GET",i);r.send()}},{1:1,7:7}],6:[function(t,i,e){i.exports=n(n);function n(t){if(typeof Float32Array!=="undefined")(function(){var i=new Float32Array([-0]),e=new Uint8Array(i.buffer),n=e[3]===128;function r(t,n,r){i[0]=t;n[r]=e[0];n[r+1]=e[1];n[r+2]=e[2];n[r+3]=e[3]}function s(t,n,r){i[0]=t;n[r]=e[3];n[r+1]=e[2];n[r+2]=e[1];n[r+3]=e[0]}t.writeFloatLE=n?r:s;t.writeFloatBE=n?s:r;function f(t,n){e[0]=t[n];e[1]=t[n+1];e[2]=t[n+2];e[3]=t[n+3];return i[0]}function u(t,n){e[3]=t[n];e[2]=t[n+1];e[1]=t[n+2];e[0]=t[n+3];return i[0]}t.readFloatLE=n?f:u;t.readFloatBE=n?u:f})();else(function(){function i(t,i,e,n){var r=i<0?1:0;if(r)i=-i;if(i===0)t(1/i>0?0:2147483648,e,n);else if(isNaN(i))t(2143289344,e,n);else if(i>34028234663852886e22)t((r<<31|2139095040)>>>0,e,n);else if(i<11754943508222875e-54)t((r<<31|Math.round(i/1401298464324817e-60))>>>0,e,n);else{var s=Math.floor(Math.log(i)/Math.LN2),f=Math.round(i*Math.pow(2,-s)*8388608)&8388607;t((r<<31|s+127<<23|f)>>>0,e,n)}}t.writeFloatLE=i.bind(null,r);t.writeFloatBE=i.bind(null,s);function e(t,i,e){var n=t(i,e),r=(n>>31)*2+1,s=n>>>23&255,f=n&8388607;return s===255?f?NaN:r*Infinity:s===0?r*1401298464324817e-60*f:r*Math.pow(2,s-150)*(f+8388608)}t.readFloatLE=e.bind(null,f);t.readFloatBE=e.bind(null,u)})();if(typeof Float64Array!=="undefined")(function(){var i=new Float64Array([-0]),e=new Uint8Array(i.buffer),n=e[7]===128;function r(t,n,r){i[0]=t;n[r]=e[0];n[r+1]=e[1];n[r+2]=e[2];n[r+3]=e[3];n[r+4]=e[4];n[r+5]=e[5];n[r+6]=e[6];n[r+7]=e[7]}function s(t,n,r){i[0]=t;n[r]=e[7];n[r+1]=e[6];n[r+2]=e[5];n[r+3]=e[4];n[r+4]=e[3];n[r+5]=e[2];n[r+6]=e[1];n[r+7]=e[0]}t.writeDoubleLE=n?r:s;t.writeDoubleBE=n?s:r;function f(t,n){e[0]=t[n];e[1]=t[n+1];e[2]=t[n+2];e[3]=t[n+3];e[4]=t[n+4];e[5]=t[n+5];e[6]=t[n+6];e[7]=t[n+7];return i[0]}function u(t,n){e[7]=t[n];e[6]=t[n+1];e[5]=t[n+2];e[4]=t[n+3];e[3]=t[n+4];e[2]=t[n+5];e[1]=t[n+6];e[0]=t[n+7];return i[0]}t.readDoubleLE=n?f:u;t.readDoubleBE=n?u:f})();else(function(){function i(t,i,e,n,r,s){var f=n<0?1:0;if(f)n=-n;if(n===0){t(0,r,s+i);t(1/n>0?0:2147483648,r,s+e)}else if(isNaN(n)){t(0,r,s+i);t(2146959360,r,s+e)}else if(n>17976931348623157e292){t(0,r,s+i);t((f<<31|2146435072)>>>0,r,s+e)}else{var u;if(n<22250738585072014e-324){u=n/5e-324;t(u>>>0,r,s+i);t((f<<31|u/4294967296)>>>0,r,s+e)}else{var o=Math.floor(Math.log(n)/Math.LN2);if(o===1024)o=1023;u=n*Math.pow(2,-o);t(u*4503599627370496>>>0,r,s+i);t((f<<31|o+1023<<20|u*1048576&1048575)>>>0,r,s+e)}}}t.writeDoubleLE=i.bind(null,r,0,4);t.writeDoubleBE=i.bind(null,s,4,0);function e(t,i,e,n,r){var s=t(n,r+i),f=t(n,r+e);var u=(f>>31)*2+1,o=f>>>20&2047,a=4294967296*(f&1048575)+s;return o===2047?a?NaN:u*Infinity:o===0?u*5e-324*a:u*Math.pow(2,o-1075)*(a+4503599627370496)}t.readDoubleLE=e.bind(null,f,0,4);t.readDoubleBE=e.bind(null,u,4,0)})();return t}function r(t,i,e){i[e]=t&255;i[e+1]=t>>>8&255;i[e+2]=t>>>16&255;i[e+3]=t>>>24}function s(t,i,e){i[e]=t>>>24;i[e+1]=t>>>16&255;i[e+2]=t>>>8&255;i[e+3]=t&255}function f(t,i){return(t[i]|t[i+1]<<8|t[i+2]<<16|t[i+3]<<24)>>>0}function u(t,i){return(t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3])>>>0}},{}],7:[function(require,module,exports){module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(t){}return null}},{}],8:[function(t,i,e){var n=e;var r=n.isAbsolute=function t(i){return/^(?:\/|\w+:)/.test(i)};var s=n.normalize=function t(i){i=i.replace(/\\/g,"/").replace(/\/{2,}/g,"/");var e=i.split("/"),n=r(i),s="";if(n)s=e.shift()+"/";for(var f=0;f<e.length;){if(e[f]===".."){if(f>0&&e[f-1]!=="..")e.splice(--f,2);else if(n)e.splice(f,1);else++f}else if(e[f]===".")e.splice(f,1);else++f}return s+e.join("/")};n.resolve=function t(i,e,n){if(!n)e=s(e);if(r(e))return e;if(!n)i=s(i);return(i=i.replace(/(?:\/|^)[^/]+$/,"")).length?s(i+"/"+e):e}},{}],9:[function(t,i,e){i.exports=n;function n(t,i,e){var n=e||8192;var r=n>>>1;var s=null;var f=n;return function e(u){if(u<1||u>r)return t(u);if(f+u>n){s=t(n);f=0}var o=i.call(s,f,f+=u);if(f&7)f=(f|7)+1;return o}}},{}],10:[function(t,i,e){var n=e;n.length=function t(i){var e=0,n=0;for(var r=0;r<i.length;++r){n=i.charCodeAt(r);if(n<128)e+=1;else if(n<2048)e+=2;else if((n&64512)===55296&&(i.charCodeAt(r+1)&64512)===56320){++r;e+=4}else e+=3}return e};n.read=function t(i,e,n){var r=n-e;if(r<1)return"";var s=null,f=[],u=0,o;while(e<n){o=i[e++];if(o<128)f[u++]=o;else if(o>191&&o<224)f[u++]=(o&31)<<6|i[e++]&63;else if(o>239&&o<365){o=((o&7)<<18|(i[e++]&63)<<12|(i[e++]&63)<<6|i[e++]&63)-65536;f[u++]=55296+(o>>10);f[u++]=56320+(o&1023)}else f[u++]=(o&15)<<12|(i[e++]&63)<<6|i[e++]&63;if(u>8191){(s||(s=[])).push(String.fromCharCode.apply(String,f));u=0}}if(s){if(u)s.push(String.fromCharCode.apply(String,f.slice(0,u)));return s.join("")}return String.fromCharCode.apply(String,f.slice(0,u))};n.write=function t(i,e,n){var r=n,s,f;for(var u=0;u<i.length;++u){s=i.charCodeAt(u);if(s<128){e[n++]=s}else if(s<2048){e[n++]=s>>6|192;e[n++]=s&63|128}else if((s&64512)===55296&&((f=i.charCodeAt(u+1))&64512)===56320){s=65536+((s&1023)<<10)+(f&1023);++u;e[n++]=s>>18|240;e[n++]=s>>12&63|128;e[n++]=s>>6&63|128;e[n++]=s&63|128}else{e[n++]=s>>12|224;e[n++]=s>>6&63|128;e[n++]=s&63|128}}return n-r}},{}],11:[function(t,i,e){i.exports=r;var n=/\/|\./;function r(t,i){if(!n.test(t)){t="google/protobuf/"+t+".proto";i={nested:{google:{nested:{protobuf:{nested:i}}}}}}r[t]=i}r("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}});var s;r("duration",{Duration:s={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}});r("timestamp",{Timestamp:s});r("empty",{Empty:{fields:{}}});r("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}});r("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}});r("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}});r.get=function t(i){return r[i]||null}},{}],12:[function(t,i,e){var n=e;var r=t(15),s=t(37);function f(t,i,e,n){var s=false;if(i.resolvedType){if(i.resolvedType instanceof r){t("switch(d%s){",n);for(var f=i.resolvedType.values,u=Object.keys(f),o=0;o<u.length;++o){if(f[u[o]]===i.typeDefault&&!s){t("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',n,n,n);if(!i.repeated)t("break");s=true}t("case%j:",u[o])("case %i:",f[u[o]])("m%s=%j",n,f[u[o]])("break")}t("}")}else t('if(typeof d%s!=="object")',n)("throw TypeError(%j)",i.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",n,e,n)}else{var a=false;switch(i.type){case"double":case"float":t("m%s=Number(d%s)",n,n);break;case"uint32":case"fixed32":t("m%s=d%s>>>0",n,n);break;case"int32":case"sint32":case"sfixed32":t("m%s=d%s|0",n,n);break;case"uint64":a=true;case"int64":case"sint64":case"fixed64":case"sfixed64":t("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",n,n,a)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,a?"true":"");break;case"bytes":t('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length >= 0)",n)("m%s=d%s",n,n);break;case"string":t("m%s=String(d%s)",n,n);break;case"bool":t("m%s=Boolean(d%s)",n,n);break}}return t}n.fromObject=function t(i){var e=i.fieldsArray;var n=s.codegen(["d"],i.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!e.length)return n("return new this.ctor");n("var m=new this.ctor");for(var u=0;u<e.length;++u){var o=e[u].resolve(),a=s.safeProp(o.name);if(o.map){n("if(d%s){",a)('if(typeof d%s!=="object")',a)("throw TypeError(%j)",o.fullName+": object expected")("m%s={}",a)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",a);f(n,o,u,a+"[ks[i]]")("}")("}")}else if(o.repeated){n("if(d%s){",a)("if(!Array.isArray(d%s))",a)("throw TypeError(%j)",o.fullName+": array expected")("m%s=[]",a)("for(var i=0;i<d%s.length;++i){",a);f(n,o,u,a+"[i]")("}")("}")}else{if(!(o.resolvedType instanceof r))n("if(d%s!=null){",a);f(n,o,u,a);if(!(o.resolvedType instanceof r))n("}")}}return n("return m")};function u(t,i,e,n){if(i.resolvedType){if(i.resolvedType instanceof r)t("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",n,e,n,n,e,n,n);else t("d%s=types[%i].toObject(m%s,o)",n,e,n)}else{var s=false;switch(i.type){case"double":case"float":t("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,n,n,n);break;case"uint64":s=true;case"int64":case"sint64":case"fixed64":case"sfixed64":t('if(typeof m%s==="number")',n)("d%s=o.longs===String?String(m%s):m%s",n,n,n)("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",n,n,n,n,s?"true":"",n);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",n,n,n,n,n);break;default:t("d%s=m%s",n,n);break}}return t}n.toObject=function t(i){var e=i.fieldsArray.slice().sort(s.compareFieldsById);if(!e.length)return s.codegen()("return {}");var n=s.codegen(["m","o"],i.name+"$toObject")("if(!o)")("o={}")("var d={}");var f=[],o=[],a=[],h=0;for(;h<e.length;++h)if(!e[h].partOf)(e[h].resolve().repeated?f:e[h].map?o:a).push(e[h]);if(f.length){n("if(o.arrays||o.defaults){");for(h=0;h<f.length;++h)n("d%s=[]",s.safeProp(f[h].name));n("}")}if(o.length){n("if(o.objects||o.defaults){");for(h=0;h<o.length;++h)n("d%s={}",s.safeProp(o[h].name));n("}")}if(a.length){n("if(o.defaults){");for(h=0;h<a.length;++h){var c=a[h],l=s.safeProp(c.name);if(c.resolvedType instanceof r)n("d%s=o.enums===String?%j:%j",l,c.resolvedType.valuesById[c.typeDefault],c.typeDefault);else if(c.long)n("if(util.Long){")("var n=new util.Long(%i,%i,%j)",c.typeDefault.low,c.typeDefault.high,c.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",l)("}else")("d%s=o.longs===String?%j:%i",l,c.typeDefault.toString(),c.typeDefault.toNumber());else if(c.bytes){var d="["+Array.prototype.slice.call(c.typeDefault).join(",")+"]";n("if(o.bytes===String)d%s=%j",l,String.fromCharCode.apply(String,c.typeDefault))("else{")("d%s=%s",l,d)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",l,l)("}")}else n("d%s=%j",l,c.typeDefault)}n("}")}var v=false;for(h=0;h<e.length;++h){var c=e[h],p=i._fieldsArray.indexOf(c),l=s.safeProp(c.name);if(c.map){if(!v){v=true;n("var ks2")}n("if(m%s&&(ks2=Object.keys(m%s)).length){",l,l)("d%s={}",l)("for(var j=0;j<ks2.length;++j){");u(n,c,p,l+"[ks2[j]]")("}")}else if(c.repeated){n("if(m%s&&m%s.length){",l,l)("d%s=[]",l)("for(var j=0;j<m%s.length;++j){",l);u(n,c,p,l+"[j]")("}")}else{n("if(m%s!=null&&m.hasOwnProperty(%j)){",l,c.name);u(n,c,p,l);if(c.partOf)n("if(o.oneofs)")("d%s=%j",s.safeProp(c.partOf.name),c.name)}n("}")}return n("return d")}},{15:15,37:37}],13:[function(t,i,e){i.exports=u;var n=t(15),r=t(36),s=t(37);function f(t){return"missing required '"+t.name+"'"}function u(t){var i=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()");if(t.group)i("if((t&7)===4)")("break");i("switch(t>>>3){");var e=0;for(;e<t.fieldsArray.length;++e){var u=t._fieldsArray[e].resolve(),o=u.resolvedType instanceof n?"int32":u.type,a="m"+s.safeProp(u.name);i("case %i: {",u.id);if(u.map){i("if(%s===util.emptyObject)",a)("%s={}",a)("var c2 = r.uint32()+r.pos");if(r.defaults[u.keyType]!==undefined$1)i("k=%j",r.defaults[u.keyType]);else i("k=null");if(r.defaults[o]!==undefined$1)i("value=%j",r.defaults[o]);else i("value=null");i("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",u.keyType)("case 2:");if(r.basic[o]===undefined$1)i("value=types[%i].decode(r,r.uint32())",e);else i("value=r.%s()",o);i("break")("default:")("r.skipType(tag2&7)")("break")("}")("}");if(r.long[u.keyType]!==undefined$1)i('%s[typeof k==="object"?util.longToHash(k):k]=value',a);else i("%s[k]=value",a)}else if(u.repeated){i("if(!(%s&&%s.length))",a,a)("%s=[]",a);if(r.packed[o]!==undefined$1)i("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",a,o)("}else");if(r.basic[o]===undefined$1)i(u.resolvedType.group?"%s.push(types[%i].decode(r))":"%s.push(types[%i].decode(r,r.uint32()))",a,e);else i("%s.push(r.%s())",a,o)}else if(r.basic[o]===undefined$1)i(u.resolvedType.group?"%s=types[%i].decode(r)":"%s=types[%i].decode(r,r.uint32())",a,e);else i("%s=r.%s()",a,o);i("break")("}")}i("default:")("r.skipType(t&7)")("break")("}")("}");for(e=0;e<t._fieldsArray.length;++e){var h=t._fieldsArray[e];if(h.required)i("if(!m.hasOwnProperty(%j))",h.name)("throw util.ProtocolError(%j,{instance:m})",f(h))}return i("return m")}},{15:15,36:36,37:37}],14:[function(t,i,e){i.exports=u;var n=t(15),r=t(36),s=t(37);function f(t,i,e,n){return i.resolvedType.group?t("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",e,n,(i.id<<3|3)>>>0,(i.id<<3|4)>>>0):t("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",e,n,(i.id<<3|2)>>>0)}function u(t){var i=s.codegen(["m","w"],t.name+"$encode")("if(!w)")("w=Writer.create()");var e,u;var o=t.fieldsArray.slice().sort(s.compareFieldsById);for(var e=0;e<o.length;++e){var a=o[e].resolve(),h=t._fieldsArray.indexOf(a),c=a.resolvedType instanceof n?"int32":a.type,l=r.basic[c];u="m"+s.safeProp(a.name);if(a.map){i("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",u,a.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",u)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(a.id<<3|2)>>>0,8|r.mapKey[a.keyType],a.keyType);if(l===undefined$1)i("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",h,u);else i(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|l,c,u);i("}")("}")}else if(a.repeated){i("if(%s!=null&&%s.length){",u,u);if(a.packed&&r.packed[c]!==undefined$1){i("w.uint32(%i).fork()",(a.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",u)("w.%s(%s[i])",c,u)("w.ldelim()")}else{i("for(var i=0;i<%s.length;++i)",u);if(l===undefined$1)f(i,a,h,u+"[i]");else i("w.uint32(%i).%s(%s[i])",(a.id<<3|l)>>>0,c,u)}i("}")}else{if(a.optional)i("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",u,a.name);if(l===undefined$1)f(i,a,h,u);else i("w.uint32(%i).%s(%s)",(a.id<<3|l)>>>0,c,u)}}return i("return w")}},{15:15,36:36,37:37}],15:[function(t,i,e){i.exports=f;var n=t(24);((f.prototype=Object.create(n.prototype)).constructor=f).className="Enum";var r=t(23),s=t(37);function f(t,i,e,r,s,f){n.call(this,t,e);if(i&&typeof i!=="object")throw TypeError("values must be an object");this.valuesById={};this.values=Object.create(this.valuesById);this.comment=r;this.comments=s||{};this.valuesOptions=f;this.reserved=undefined$1;if(i)for(var u=Object.keys(i),o=0;o<u.length;++o)if(typeof i[u[o]]==="number")this.valuesById[this.values[u[o]]=i[u[o]]]=u[o]}f.fromJSON=function t(i,e){var n=new f(i,e.values,e.options,e.comment,e.comments);n.reserved=e.reserved;return n};f.prototype.toJSON=function t(i){var e=i?Boolean(i.keepComments):false;return s.toObject(["options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:undefined$1,"comment",e?this.comment:undefined$1,"comments",e?this.comments:undefined$1])};f.prototype.add=function t(i,e,n,r){if(!s.isString(i))throw TypeError("name must be a string");if(!s.isInteger(e))throw TypeError("id must be an integer");if(this.values[i]!==undefined$1)throw Error("duplicate name '"+i+"' in "+this);if(this.isReservedId(e))throw Error("id "+e+" is reserved in "+this);if(this.isReservedName(i))throw Error("name '"+i+"' is reserved in "+this);if(this.valuesById[e]!==undefined$1){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+e+" in "+this);this.values[i]=e}else this.valuesById[this.values[i]=e]=i;if(r){if(this.valuesOptions===undefined$1)this.valuesOptions={};this.valuesOptions[i]=r||null}this.comments[i]=n||null;return this};f.prototype.remove=function t(i){if(!s.isString(i))throw TypeError("name must be a string");var e=this.values[i];if(e==null)throw Error("name '"+i+"' does not exist in "+this);delete this.valuesById[e];delete this.values[i];delete this.comments[i];if(this.valuesOptions)delete this.valuesOptions[i];return this};f.prototype.isReservedId=function t(i){return r.isReservedId(this.reserved,i)};f.prototype.isReservedName=function t(i){return r.isReservedName(this.reserved,i)}},{23:23,24:24,37:37}],16:[function(t,i,e){i.exports=a;var n=t(24);((a.prototype=Object.create(n.prototype)).constructor=a).className="Field";var r=t(15),s=t(36),f=t(37);var u;var o=/^required|optional|repeated$/;a.fromJSON=function t(i,e){return new a(i,e.id,e.type,e.rule,e.extend,e.options,e.comment)};function a(t,i,e,r,u,a,h){if(f.isObject(r)){h=u;a=r;r=u=undefined$1}else if(f.isObject(u)){h=a;a=u;u=undefined$1}n.call(this,t,a);if(!f.isInteger(i)||i<0)throw TypeError("id must be a non-negative integer");if(!f.isString(e))throw TypeError("type must be a string");if(r!==undefined$1&&!o.test(r=r.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(u!==undefined$1&&!f.isString(u))throw TypeError("extend must be a string");if(r==="proto3_optional"){r="optional"}this.rule=r&&r!=="optional"?r:undefined$1;this.type=e;this.id=i;this.extend=u||undefined$1;this.required=r==="required";this.optional=!this.required;this.repeated=r==="repeated";this.map=false;this.message=null;this.partOf=null;this.typeDefault=null;this.defaultValue=null;this.long=f.Long?s.long[e]!==undefined$1:false;this.bytes=e==="bytes";this.resolvedType=null;this.extensionField=null;this.declaringField=null;this._packed=null;this.comment=h}Object.defineProperty(a.prototype,"packed",{get:function(){if(this._packed===null)this._packed=this.getOption("packed")!==false;return this._packed}});a.prototype.setOption=function t(i,e,r){if(i==="packed")this._packed=null;return n.prototype.setOption.call(this,i,e,r)};a.prototype.toJSON=function t(i){var e=i?Boolean(i.keepComments):false;return f.toObject(["rule",this.rule!=="optional"&&this.rule||undefined$1,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",e?this.comment:undefined$1])};a.prototype.resolve=function t(){if(this.resolved)return this;if((this.typeDefault=s.defaults[this.type])===undefined$1){this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type);if(this.resolvedType instanceof u)this.typeDefault=null;else this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]}else if(this.options&&this.options.proto3_optional){this.typeDefault=null}if(this.options&&this.options["default"]!=null){this.typeDefault=this.options["default"];if(this.resolvedType instanceof r&&typeof this.typeDefault==="string")this.typeDefault=this.resolvedType.values[this.typeDefault]}if(this.options){if(this.options.packed===true||this.options.packed!==undefined$1&&this.resolvedType&&!(this.resolvedType instanceof r))delete this.options.packed;if(!Object.keys(this.options).length)this.options=undefined$1}if(this.long){this.typeDefault=f.Long.fromNumber(this.typeDefault,this.type.charAt(0)==="u");if(Object.freeze)Object.freeze(this.typeDefault)}else if(this.bytes&&typeof this.typeDefault==="string"){var i;if(f.base64.test(this.typeDefault))f.base64.decode(this.typeDefault,i=f.newBuffer(f.base64.length(this.typeDefault)),0);else f.utf8.write(this.typeDefault,i=f.newBuffer(f.utf8.length(this.typeDefault)),0);this.typeDefault=i}if(this.map)this.defaultValue=f.emptyObject;else if(this.repeated)this.defaultValue=f.emptyArray;else this.defaultValue=this.typeDefault;if(this.parent instanceof u)this.parent.ctor.prototype[this.name]=this.defaultValue;return n.prototype.resolve.call(this)};a.d=function t(i,e,n,r){if(typeof e==="function")e=f.decorateType(e).name;else if(e&&typeof e==="object")e=f.decorateEnum(e).name;return function t(s,u){f.decorateType(s.constructor).add(new a(u,i,e,n,{default:r}))}};a._configure=function t(i){u=i}},{15:15,24:24,36:36,37:37}],17:[function(t,i,e){var n=i.exports=t(18);n.build="light";function r(t,i,e){if(typeof i==="function"){e=i;i=new n.Root}else if(!i)i=new n.Root;return i.load(t,e)}n.load=r;function s(t,i){if(!i)i=new n.Root;return i.loadSync(t)}n.loadSync=s;n.encoder=t(14);n.decoder=t(13);n.verifier=t(40);n.converter=t(12);n.ReflectionObject=t(24);n.Namespace=t(23);n.Root=t(29);n.Enum=t(15);n.Type=t(35);n.Field=t(16);n.OneOf=t(25);n.MapField=t(20);n.Service=t(33);n.Method=t(22);n.Message=t(21);n.wrappers=t(41);n.types=t(36);n.util=t(37);n.ReflectionObject._configure(n.Root);n.Namespace._configure(n.Type,n.Service,n.Enum);n.Root._configure(n.Type);n.Field._configure(n.Type)},{12:12,13:13,14:14,15:15,16:16,18:18,20:20,21:21,22:22,23:23,24:24,25:25,29:29,33:33,35:35,36:36,37:37,40:40,41:41}],18:[function(t,i,e){var n=e;n.build="minimal";n.Writer=t(42);n.BufferWriter=t(43);n.Reader=t(27);n.BufferReader=t(28);n.util=t(39);n.rpc=t(31);n.roots=t(30);n.configure=r;function r(){n.util._configure();n.Writer._configure(n.BufferWriter);n.Reader._configure(n.BufferReader)}r()},{27:27,28:28,30:30,31:31,39:39,42:42,43:43}],19:[function(t,i,e){var n=i.exports=t(17);n.build="full";n.tokenize=t(34);n.parse=t(26);n.common=t(11);n.Root._configure(n.Type,n.parse,n.common)},{11:11,17:17,26:26,34:34}],20:[function(t,i,e){i.exports=f;var n=t(16);((f.prototype=Object.create(n.prototype)).constructor=f).className="MapField";var r=t(36),s=t(37);function f(t,i,e,r,f,u){n.call(this,t,i,r,undefined$1,undefined$1,f,u);if(!s.isString(e))throw TypeError("keyType must be a string");this.keyType=e;this.resolvedKeyType=null;this.map=true}f.fromJSON=function t(i,e){return new f(i,e.id,e.keyType,e.type,e.options,e.comment)};f.prototype.toJSON=function t(i){var e=i?Boolean(i.keepComments):false;return s.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",e?this.comment:undefined$1])};f.prototype.resolve=function t(){if(this.resolved)return this;if(r.mapKey[this.keyType]===undefined$1)throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)};f.d=function t(i,e,n){if(typeof n==="function")n=s.decorateType(n).name;else if(n&&typeof n==="object")n=s.decorateEnum(n).name;return function t(r,u){s.decorateType(r.constructor).add(new f(u,i,e,n))}}},{16:16,36:36,37:37}],21:[function(t,i,e){i.exports=r;var n=t(39);function r(t){if(t)for(var i=Object.keys(t),e=0;e<i.length;++e)this[i[e]]=t[i[e]]}r.create=function t(i){return this.$type.create(i)};r.encode=function t(i,e){return this.$type.encode(i,e)};r.encodeDelimited=function t(i,e){return this.$type.encodeDelimited(i,e)};r.decode=function t(i){return this.$type.decode(i)};r.decodeDelimited=function t(i){return this.$type.decodeDelimited(i)};r.verify=function t(i){return this.$type.verify(i)};r.fromObject=function t(i){return this.$type.fromObject(i)};r.toObject=function t(i,e){return this.$type.toObject(i,e)};r.prototype.toJSON=function t(){return this.$type.toObject(this,n.toJSONOptions)}},{39:39}],22:[function(t,i,e){i.exports=s;var n=t(24);((s.prototype=Object.create(n.prototype)).constructor=s).className="Method";var r=t(37);function s(t,i,e,s,f,u,o,a,h){if(r.isObject(f)){o=f;f=u=undefined$1}else if(r.isObject(u)){o=u;u=undefined$1}if(!(i===undefined$1||r.isString(i)))throw TypeError("type must be a string");if(!r.isString(e))throw TypeError("requestType must be a string");if(!r.isString(s))throw TypeError("responseType must be a string");n.call(this,t,o);this.type=i||"rpc";this.requestType=e;this.requestStream=f?true:undefined$1;this.responseType=s;this.responseStream=u?true:undefined$1;this.resolvedRequestType=null;this.resolvedResponseType=null;this.comment=a;this.parsedOptions=h}s.fromJSON=function t(i,e){return new s(i,e.type,e.requestType,e.responseType,e.requestStream,e.responseStream,e.options,e.comment,e.parsedOptions)};s.prototype.toJSON=function t(i){var e=i?Boolean(i.keepComments):false;return r.toObject(["type",this.type!=="rpc"&&this.type||undefined$1,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",e?this.comment:undefined$1,"parsedOptions",this.parsedOptions])};s.prototype.resolve=function t(){if(this.resolved)return this;this.resolvedRequestType=this.parent.lookupType(this.requestType);this.resolvedResponseType=this.parent.lookupType(this.responseType);return n.prototype.resolve.call(this)}},{24:24,37:37}],23:[function(t,i,e){i.exports=c;var n=t(24);((c.prototype=Object.create(n.prototype)).constructor=c).className="Namespace";var r=t(16),s=t(37),f=t(25);var u,o,a;c.fromJSON=function t(i,e){return new c(i,e.options).addJSON(e.nested)};function h(t,i){if(!(t&&t.length))return undefined$1;var e={};for(var n=0;n<t.length;++n)e[t[n].name]=t[n].toJSON(i);return e}c.arrayToJSON=h;c.isReservedId=function t(i,e){if(i)for(var n=0;n<i.length;++n)if(typeof i[n]!=="string"&&i[n][0]<=e&&i[n][1]>e)return true;return false};c.isReservedName=function t(i,e){if(i)for(var n=0;n<i.length;++n)if(i[n]===e)return true;return false};function c(t,i){n.call(this,t,i);this.nested=undefined$1;this._nestedArray=null}function l(t){t._nestedArray=null;return t}Object.defineProperty(c.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=s.toArray(this.nested))}});c.prototype.toJSON=function t(i){return s.toObject(["options",this.options,"nested",h(this.nestedArray,i)])};c.prototype.addJSON=function t(i){var e=this;if(i){for(var n=Object.keys(i),s=0,f;s<n.length;++s){f=i[n[s]];e.add((f.fields!==undefined$1?u.fromJSON:f.values!==undefined$1?a.fromJSON:f.methods!==undefined$1?o.fromJSON:f.id!==undefined$1?r.fromJSON:c.fromJSON)(n[s],f))}}return this};c.prototype.get=function t(i){return this.nested&&this.nested[i]||null};c.prototype.getEnum=function t(i){if(this.nested&&this.nested[i]instanceof a)return this.nested[i].values;throw Error("no such enum: "+i)};c.prototype.add=function t(i){if(!(i instanceof r&&i.extend!==undefined$1||i instanceof u||i instanceof f||i instanceof a||i instanceof o||i instanceof c))throw TypeError("object must be a valid nested object");if(!this.nested)this.nested={};else{var e=this.get(i.name);if(e){if(e instanceof c&&i instanceof c&&!(e instanceof u||e instanceof o)){var n=e.nestedArray;for(var s=0;s<n.length;++s)i.add(n[s]);this.remove(e);if(!this.nested)this.nested={};i.setOptions(e.options,true)}else throw Error("duplicate name '"+i.name+"' in "+this)}}this.nested[i.name]=i;i.onAdd(this);return l(this)};c.prototype.remove=function t(i){if(!(i instanceof n))throw TypeError("object must be a ReflectionObject");if(i.parent!==this)throw Error(i+" is not a member of "+this);delete this.nested[i.name];if(!Object.keys(this.nested).length)this.nested=undefined$1;i.onRemove(this);return l(this)};c.prototype.define=function t(i,e){if(s.isString(i))i=i.split(".");else if(!Array.isArray(i))throw TypeError("illegal path");if(i&&i.length&&i[0]==="")throw Error("path must be relative");var n=this;while(i.length>0){var r=i.shift();if(n.nested&&n.nested[r]){n=n.nested[r];if(!(n instanceof c))throw Error("path conflicts with non-namespace objects")}else n.add(n=new c(r))}if(e)n.addJSON(e);return n};c.prototype.resolveAll=function t(){var i=this.nestedArray,e=0;while(e<i.length)if(i[e]instanceof c)i[e++].resolveAll();else i[e++].resolve();return this.resolve()};c.prototype.lookup=function t(i,e,n){if(typeof e==="boolean"){n=e;e=undefined$1}else if(e&&!Array.isArray(e))e=[e];if(s.isString(i)&&i.length){if(i===".")return this.root;i=i.split(".")}else if(!i.length)return this;if(i[0]==="")return this.root.lookup(i.slice(1),e);var r=this.get(i[0]);if(r){if(i.length===1){if(!e||e.indexOf(r.constructor)>-1)return r}else if(r instanceof c&&(r=r.lookup(i.slice(1),e,true)))return r}else for(var f=0;f<this.nestedArray.length;++f)if(this._nestedArray[f]instanceof c&&(r=this._nestedArray[f].lookup(i,e,true)))return r;if(this.parent===null||n)return null;return this.parent.lookup(i,e)};c.prototype.lookupType=function t(i){var e=this.lookup(i,[u]);if(!e)throw Error("no such type: "+i);return e};c.prototype.lookupEnum=function t(i){var e=this.lookup(i,[a]);if(!e)throw Error("no such Enum '"+i+"' in "+this);return e};c.prototype.lookupTypeOrEnum=function t(i){var e=this.lookup(i,[u,a]);if(!e)throw Error("no such Type or Enum '"+i+"' in "+this);return e};c.prototype.lookupService=function t(i){var e=this.lookup(i,[o]);if(!e)throw Error("no such Service '"+i+"' in "+this);return e};c._configure=function(t,i,e){u=t;o=i;a=e}},{16:16,24:24,25:25,37:37}],24:[function(t,i,e){i.exports=s;s.className="ReflectionObject";var n=t(37);var r;function s(t,i){if(!n.isString(t))throw TypeError("name must be a string");if(i&&!n.isObject(i))throw TypeError("options must be an object");this.options=i;this.parsedOptions=null;this.name=t;this.parent=null;this.resolved=false;this.comment=null;this.filename=null}Object.defineProperties(s.prototype,{root:{get:function(){var t=this;while(t.parent!==null)t=t.parent;return t}},fullName:{get:function(){var t=[this.name],i=this.parent;while(i){t.unshift(i.name);i=i.parent}return t.join(".")}}});s.prototype.toJSON=function t(){throw Error()};s.prototype.onAdd=function t(i){if(this.parent&&this.parent!==i)this.parent.remove(this);this.parent=i;this.resolved=false;var e=i.root;if(e instanceof r)e._handleAdd(this)};s.prototype.onRemove=function t(i){var e=i.root;if(e instanceof r)e._handleRemove(this);this.parent=null;this.resolved=false};s.prototype.resolve=function t(){if(this.resolved)return this;if(this.root instanceof r)this.resolved=true;return this};s.prototype.getOption=function t(i){if(this.options)return this.options[i];return undefined$1};s.prototype.setOption=function t(i,e,n){if(!n||!this.options||this.options[i]===undefined$1)(this.options||(this.options={}))[i]=e;return this};s.prototype.setParsedOption=function t(i,e,r){if(!this.parsedOptions){this.parsedOptions=[]}var s=this.parsedOptions;if(r){var f=s.find((function(t){return Object.prototype.hasOwnProperty.call(t,i)}));if(f){var u=f[i];n.setProperty(u,r,e)}else{f={};f[i]=n.setProperty({},r,e);s.push(f)}}else{var o={};o[i]=e;s.push(o)}return this};s.prototype.setOptions=function t(i,e){if(i)for(var n=Object.keys(i),r=0;r<n.length;++r)this.setOption(n[r],i[n[r]],e);return this};s.prototype.toString=function t(){var i=this.constructor.className,e=this.fullName;if(e.length)return i+" "+e;return i};s._configure=function(t){r=t}},{37:37}],25:[function(t,i,e){i.exports=f;var n=t(24);((f.prototype=Object.create(n.prototype)).constructor=f).className="OneOf";var r=t(16),s=t(37);function f(t,i,e,r){if(!Array.isArray(i)){e=i;i=undefined$1}n.call(this,t,e);if(!(i===undefined$1||Array.isArray(i)))throw TypeError("fieldNames must be an Array");this.oneof=i||[];this.fieldsArray=[];this.comment=r}f.fromJSON=function t(i,e){return new f(i,e.oneof,e.options,e.comment)};f.prototype.toJSON=function t(i){var e=i?Boolean(i.keepComments):false;return s.toObject(["options",this.options,"oneof",this.oneof,"comment",e?this.comment:undefined$1])};function u(t){if(t.parent)for(var i=0;i<t.fieldsArray.length;++i)if(!t.fieldsArray[i].parent)t.parent.add(t.fieldsArray[i])}f.prototype.add=function t(i){if(!(i instanceof r))throw TypeError("field must be a Field");if(i.parent&&i.parent!==this.parent)i.parent.remove(i);this.oneof.push(i.name);this.fieldsArray.push(i);i.partOf=this;u(this);return this};f.prototype.remove=function t(i){if(!(i instanceof r))throw TypeError("field must be a Field");var e=this.fieldsArray.indexOf(i);if(e<0)throw Error(i+" is not a member of "+this);this.fieldsArray.splice(e,1);e=this.oneof.indexOf(i.name);if(e>-1)this.oneof.splice(e,1);i.partOf=null;return this};f.prototype.onAdd=function t(i){n.prototype.onAdd.call(this,i);var e=this;for(var r=0;r<this.oneof.length;++r){var s=i.get(this.oneof[r]);if(s&&!s.partOf){s.partOf=e;e.fieldsArray.push(s)}}u(this)};f.prototype.onRemove=function t(i){for(var e=0,r;e<this.fieldsArray.length;++e)if((r=this.fieldsArray[e]).parent)r.parent.remove(r);n.prototype.onRemove.call(this,i)};f.d=function t(){var i=new Array(arguments.length),e=0;while(e<arguments.length)i[e]=arguments[e++];return function t(e,n){s.decorateType(e.constructor).add(new f(n,i));Object.defineProperty(e,n,{get:s.oneOfGetter(i),set:s.oneOfSetter(i)})}}},{16:16,24:24,37:37}],26:[function(t,i,e){i.exports=O;O.filename=null;O.defaults={keepCase:false};var n=t(34),r=t(29),s=t(35),f=t(16),u=t(20),o=t(25),a=t(15),h=t(33),c=t(22),l=t(36),d=t(37);var v=/^[1-9][0-9]*$/,p=/^-?[1-9][0-9]*$/,w=/^0[x][0-9a-fA-F]+$/,b=/^-?0[x][0-9a-fA-F]+$/,y=/^0[0-7]+$/,m=/^-?0[0-7]+$/,g=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,j=/^[a-zA-Z_][a-zA-Z_0-9]*$/,k=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/,$=/^(?:\.[a-zA-Z_][a-zA-Z_0-9]*)+$/;function O(t,i,e){if(!(i instanceof r)){e=i;i=new r}if(!e)e=O.defaults;var E=e.preferTrailingComment||false;var A=n(t,e.alternateCommentMode||false),x=A.next,S=A.push,T=A.peek,N=A.skip,V=A.cmnt;var _=true,M,I,B,F,q=false;var L=i;var U=e.keepCase?function(t){return t}:d.camelCase;function R(t,i,e){var n=O.filename;if(!e)O.filename=null;return Error("illegal "+(i||"token")+" '"+t+"' ("+(n?n+", ":"")+"line "+A.line+")")}function z(){var t=[],i;do{if((i=x())!=='"'&&i!=="'")throw R(i);t.push(x());N(i);i=T()}while(i==='"'||i==="'");return t.join("")}function Z(t){var i=x();switch(i){case"'":case'"':S(i);return z();case"true":case"TRUE":return true;case"false":case"FALSE":return false}try{return P(i,true)}catch(e){if(t&&k.test(i))return i;throw R(i,"value")}}function G(t,i){var e,n;do{if(i&&((e=T())==='"'||e==="'"))t.push(z());else t.push([n=H(x()),N("to",true)?H(x()):n])}while(N(",",true));var r={options:undefined$1};r.setOption=function(t,i){if(this.options===undefined$1)this.options={};this.options[t]=i};W(r,(function t(i){if(i==="option"){rt(r,i);N(";")}else throw R(i)}),(function t(){ot(r)}))}function P(t,i){var e=1;if(t.charAt(0)==="-"){e=-1;t=t.substring(1)}switch(t){case"inf":case"INF":case"Inf":return e*Infinity;case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(v.test(t))return e*parseInt(t,10);if(w.test(t))return e*parseInt(t,16);if(y.test(t))return e*parseInt(t,8);if(g.test(t))return e*parseFloat(t);throw R(t,"number",i)}function H(t,i){switch(t){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!i&&t.charAt(0)==="-")throw R(t,"id");if(p.test(t))return parseInt(t,10);if(b.test(t))return parseInt(t,16);if(m.test(t))return parseInt(t,8);throw R(t,"id")}function X(){if(M!==undefined$1)throw R("package");M=x();if(!k.test(M))throw R(M,"name");L=L.define(M);N(";")}function C(){var t=T();var i;switch(t){case"weak":i=B||(B=[]);x();break;case"public":x();default:i=I||(I=[]);break}t=z();N(";");i.push(t)}function D(){N("=");F=z();q=F==="proto3";if(!q&&F!=="proto2")throw R(F,"syntax");i.setOption("syntax",F);N(";")}function J(t,i){switch(i){case"option":rt(t,i);N(";");return true;case"message":K(t,i);return true;case"enum":et(t,i);return true;case"service":at(t,i);return true;case"extend":ct(t,i);return true}return false}function W(t,i,e){var n=A.line;if(t){if(typeof t.comment!=="string"){t.comment=V()}t.filename=O.filename}if(N("{",true)){var r;while((r=x())!=="}")i(r);N(";",true)}else{if(e)e();N(";");if(t&&(typeof t.comment!=="string"||E))t.comment=V(n)||t.comment}}function K(t,i){if(!j.test(i=x()))throw R(i,"type name");var e=new s(i);W(e,(function t(i){if(J(e,i))return;switch(i){case"map":tt(e);break;case"required":case"repeated":Q(e,i);break;case"optional":if(q){Q(e,"proto3_optional")}else{Q(e,"optional")}break;case"oneof":it(e,i);break;case"extensions":G(e.extensions||(e.extensions=[]));break;case"reserved":G(e.reserved||(e.reserved=[]),true);break;default:if(!q||!k.test(i))throw R(i);S(i);Q(e,"optional");break}}));t.add(e)}function Q(t,i,e){var n=x();if(n==="group"){Y(t,i);return}while(n.endsWith(".")||T().startsWith(".")){n+=x()}if(!k.test(n))throw R(n,"type");var r=x();if(!j.test(r))throw R(r,"name");r=U(r);N("=");var s=new f(r,H(x()),n,i,e);W(s,(function t(i){if(i==="option"){rt(s,i);N(";")}else throw R(i)}),(function t(){ot(s)}));if(i==="proto3_optional"){var u=new o("_"+r);s.setOption("proto3_optional",true);u.add(s);t.add(u)}else{t.add(s)}if(!q&&s.repeated&&(l.packed[n]!==undefined$1||l.basic[n]===undefined$1))s.setOption("packed",false,true)}function Y(t,i){var e=x();if(!j.test(e))throw R(e,"name");var n=d.lcFirst(e);if(e===n)e=d.ucFirst(e);N("=");var r=H(x());var u=new s(e);u.group=true;var o=new f(n,r,e,i);o.filename=O.filename;W(u,(function t(i){switch(i){case"option":rt(u,i);N(";");break;case"required":case"repeated":Q(u,i);break;case"optional":if(q){Q(u,"proto3_optional")}else{Q(u,"optional")}break;case"message":K(u,i);break;case"enum":et(u,i);break;default:throw R(i)}}));t.add(u).add(o)}function tt(t){N("<");var i=x();if(l.mapKey[i]===undefined$1)throw R(i,"type");N(",");var e=x();if(!k.test(e))throw R(e,"type");N(">");var n=x();if(!j.test(n))throw R(n,"name");N("=");var r=new u(U(n),H(x()),i,e);W(r,(function t(i){if(i==="option"){rt(r,i);N(";")}else throw R(i)}),(function t(){ot(r)}));t.add(r)}function it(t,i){if(!j.test(i=x()))throw R(i,"name");var e=new o(U(i));W(e,(function t(i){if(i==="option"){rt(e,i);N(";")}else{S(i);Q(e,"optional")}}));t.add(e)}function et(t,i){if(!j.test(i=x()))throw R(i,"name");var e=new a(i);W(e,(function t(i){switch(i){case"option":rt(e,i);N(";");break;case"reserved":G(e.reserved||(e.reserved=[]),true);break;default:nt(e,i)}}));t.add(e)}function nt(t,i){if(!j.test(i))throw R(i,"name");N("=");var e=H(x(),true),n={options:undefined$1};n.setOption=function(t,i){if(this.options===undefined$1)this.options={};this.options[t]=i};W(n,(function t(i){if(i==="option"){rt(n,i);N(";")}else throw R(i)}),(function t(){ot(n)}));t.add(i,e,n.comment,n.options)}function rt(t,i){var e=N("(",true);if(!k.test(i=x()))throw R(i,"name");var n=i;var r=n;var s;if(e){N(")");n="("+n+")";r=n;i=T();if($.test(i)){s=i.slice(1);n+=i;x()}}N("=");var f=st(t,n);ut(t,r,f,s)}function st(t,i){if(N("{",true)){var e={};while(!N("}",true)){if(!j.test(lt=x())){throw R(lt,"name")}if(lt===null){throw R(lt,"end of input")}var n;var r=lt;N(":",true);if(T()==="{")n=st(t,i+"."+lt);else if(T()==="["){n=[];var s;if(N("[",true)){do{s=Z(true);n.push(s)}while(N(",",true));N("]");if(typeof s!=="undefined"){ft(t,i+"."+lt,s)}}}else{n=Z(true);ft(t,i+"."+lt,n)}var f=e[r];if(f)n=[].concat(f).concat(n);e[r]=n;N(",",true);N(";",true)}return e}var u=Z(true);ft(t,i,u);return u}function ft(t,i,e){if(t.setOption)t.setOption(i,e)}function ut(t,i,e,n){if(t.setParsedOption)t.setParsedOption(i,e,n)}function ot(t){if(N("[",true)){do{rt(t,"option")}while(N(",",true));N("]")}return t}function at(t,i){if(!j.test(i=x()))throw R(i,"service name");var e=new h(i);W(e,(function t(i){if(J(e,i))return;if(i==="rpc")ht(e,i);else throw R(i)}));t.add(e)}function ht(t,i){var e=V();var n=i;if(!j.test(i=x()))throw R(i,"name");var r=i,s,f,u,o;N("(");if(N("stream",true))f=true;if(!k.test(i=x()))throw R(i);s=i;N(")");N("returns");N("(");if(N("stream",true))o=true;if(!k.test(i=x()))throw R(i);u=i;N(")");var a=new c(r,n,s,u,f,o);a.comment=e;W(a,(function t(i){if(i==="option"){rt(a,i);N(";")}else throw R(i)}));t.add(a)}function ct(t,i){if(!k.test(i=x()))throw R(i,"reference");var e=i;W(null,(function i(n){switch(n){case"required":case"repeated":Q(t,n,e);break;case"optional":if(q){Q(t,"proto3_optional",e)}else{Q(t,"optional",e)}break;default:if(!q||!k.test(n))throw R(n);S(n);Q(t,"optional",e);break}}))}var lt;while((lt=x())!==null){switch(lt){case"package":if(!_)throw R(lt);X();break;case"import":if(!_)throw R(lt);C();break;case"syntax":if(!_)throw R(lt);D();break;case"option":rt(L,lt);N(";");break;default:if(J(L,lt)){_=false;continue}throw R(lt)}}O.filename=null;return{package:M,imports:I,weakImports:B,syntax:F,root:i}}},{15:15,16:16,20:20,22:22,25:25,29:29,33:33,34:34,35:35,36:36,37:37}],27:[function(t,i,e){i.exports=o;var n=t(39);var r;var s=n.LongBits,f=n.utf8;function u(t,i){return RangeError("index out of range: "+t.pos+" + "+(i||1)+" > "+t.len)}function o(t){this.buf=t;this.pos=0;this.len=t.length}var a=typeof Uint8Array!=="undefined"?function t(i){if(i instanceof Uint8Array||Array.isArray(i))return new o(i);throw Error("illegal buffer")}:function t(i){if(Array.isArray(i))return new o(i);throw Error("illegal buffer")};var h=function t(){return n.Buffer?function t(i){return(o.create=function t(i){return n.Buffer.isBuffer(i)?new r(i):a(i)})(i)}:a};o.create=h();o.prototype._slice=n.Array.prototype.subarray||n.Array.prototype.slice;o.prototype.uint32=function t(){var i=4294967295;return function t(){i=(this.buf[this.pos]&127)>>>0;if(this.buf[this.pos++]<128)return i;i=(i|(this.buf[this.pos]&127)<<7)>>>0;if(this.buf[this.pos++]<128)return i;i=(i|(this.buf[this.pos]&127)<<14)>>>0;if(this.buf[this.pos++]<128)return i;i=(i|(this.buf[this.pos]&127)<<21)>>>0;if(this.buf[this.pos++]<128)return i;i=(i|(this.buf[this.pos]&15)<<28)>>>0;if(this.buf[this.pos++]<128)return i;if((this.pos+=5)>this.len){this.pos=this.len;throw u(this,10)}return i}}();o.prototype.int32=function t(){return this.uint32()|0};o.prototype.sint32=function t(){var i=this.uint32();return i>>>1^-(i&1)|0};function c(){var t=new s(0,0);var i=0;if(this.len-this.pos>4){for(;i<4;++i){t.lo=(t.lo|(this.buf[this.pos]&127)<<i*7)>>>0;if(this.buf[this.pos++]<128)return t}t.lo=(t.lo|(this.buf[this.pos]&127)<<28)>>>0;t.hi=(t.hi|(this.buf[this.pos]&127)>>4)>>>0;if(this.buf[this.pos++]<128)return t;i=0}else{for(;i<3;++i){if(this.pos>=this.len)throw u(this);t.lo=(t.lo|(this.buf[this.pos]&127)<<i*7)>>>0;if(this.buf[this.pos++]<128)return t}t.lo=(t.lo|(this.buf[this.pos++]&127)<<i*7)>>>0;return t}if(this.len-this.pos>4){for(;i<5;++i){t.hi=(t.hi|(this.buf[this.pos]&127)<<i*7+3)>>>0;if(this.buf[this.pos++]<128)return t}}else{for(;i<5;++i){if(this.pos>=this.len)throw u(this);t.hi=(t.hi|(this.buf[this.pos]&127)<<i*7+3)>>>0;if(this.buf[this.pos++]<128)return t}}throw Error("invalid varint encoding")}o.prototype.bool=function t(){return this.uint32()!==0};function l(t,i){return(t[i-4]|t[i-3]<<8|t[i-2]<<16|t[i-1]<<24)>>>0}o.prototype.fixed32=function t(){if(this.pos+4>this.len)throw u(this,4);return l(this.buf,this.pos+=4)};o.prototype.sfixed32=function t(){if(this.pos+4>this.len)throw u(this,4);return l(this.buf,this.pos+=4)|0};function d(){if(this.pos+8>this.len)throw u(this,8);return new s(l(this.buf,this.pos+=4),l(this.buf,this.pos+=4))}o.prototype.float=function t(){if(this.pos+4>this.len)throw u(this,4);var i=n.float.readFloatLE(this.buf,this.pos);this.pos+=4;return i};o.prototype.double=function t(){if(this.pos+8>this.len)throw u(this,4);var i=n.float.readDoubleLE(this.buf,this.pos);this.pos+=8;return i};o.prototype.bytes=function t(){var i=this.uint32(),e=this.pos,r=this.pos+i;if(r>this.len)throw u(this,i);this.pos+=i;if(Array.isArray(this.buf))return this.buf.slice(e,r);if(e===r){var s=n.Buffer;return s?s.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,e,r)};o.prototype.string=function t(){var i=this.bytes();return f.read(i,0,i.length)};o.prototype.skip=function t(i){if(typeof i==="number"){if(this.pos+i>this.len)throw u(this,i);this.pos+=i}else{do{if(this.pos>=this.len)throw u(this)}while(this.buf[this.pos++]&128)}return this};o.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:while((t=this.uint32()&7)!==4){this.skipType(t)}break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this};o._configure=function(t){r=t;o.create=h();r._configure();var i=n.Long?"toLong":"toNumber";n.merge(o.prototype,{int64:function t(){return c.call(this)[i](false)},uint64:function t(){return c.call(this)[i](true)},sint64:function t(){return c.call(this).zzDecode()[i](false)},fixed64:function t(){return d.call(this)[i](true)},sfixed64:function t(){return d.call(this)[i](false)}})}},{39:39}],28:[function(t,i,e){i.exports=s;var n=t(27);(s.prototype=Object.create(n.