!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3112ce99-f9b1-36bb-b7b2-a2dedf4d2ade")}catch(e){}}(); define(["exports","./e_core_exception"],(function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t)}const r=34028234663852886e22,i=-34028234663852886e22,s=4294967295,a=2147483647,o=-2147483648;function c(e){if("number"!=typeof e)throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>a||es||e<0)throw new Error("invalid uint 32: "+e)}function l(e){if("number"!=typeof e)throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>r||e({no:t.no,name:t.name,localName:e[t.no]}))))}function p(e,t,n){const r=Object.create(null),i=Object.create(null),s=[];for(const e of t){const t=y(e);s.push(t),r[e.name]=t,i[e.no]=t}return{typeName:e,values:s,findName:e=>r[e],findNumber:e=>i[e]}}function m(e,t,n){const r={};for(const e of t){const t=y(e);r[t.localName]=t.no,r[t.no]=t.localName}return h(r,e,t),r}function y(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}class g{equals(e){return this.getType().runtime.util.equals(this.getType(),this,e)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(e,t){const n=this.getType().runtime.bin,r=n.makeReadOptions(t);return n.readMessage(this,r.readerFactory(e),e.byteLength,r),this}fromJson(e,t){const n=this.getType(),r=n.runtime.json,i=r.makeReadOptions(t);return r.readMessage(n,e,i,this),this}fromJsonString(e,t){return this.fromJson(JSON.parse(e),t)}toBinary(e){const t=this.getType().runtime.bin,n=t.makeWriteOptions(e),r=n.writerFactory();return t.writeMessage(this,r,n),r.finish()}toJson(e){const t=this.getType().runtime.json,n=t.makeWriteOptions(e);return t.writeMessage(this,n)}toJsonString(e){var t;const n=this.toJson(e);return JSON.stringify(n,null,null!==(t=null==e?void 0:e.prettySpaces)&&void 0!==t?t:0)}getType(){return Object.getPrototypeOf(this).constructor}}function T(e,t,n,r){return{syntax:e,json:t,bin:n,util:r,makeMessageType(e,t,n){return function(e,t,n,r){var i;const s=null!==(i=null==r?void 0:r.localName)&&void 0!==i?i:t.substring(t.lastIndexOf(".")+1),a={[s]:function(t){e.util.initFields(this),e.util.initPartial(t,this)}}[s];return Object.setPrototypeOf(a.prototype,new g),Object.assign(a,{runtime:e,typeName:t,fields:e.util.newFieldList(n),fromBinary:(e,t)=>(new a).fromBinary(e,t),fromJson:(e,t)=>(new a).fromJson(e,t),fromJsonString:(e,t)=>(new a).fromJsonString(e,t),equals:(t,n)=>e.util.equals(a,t,n)}),a}(this,e,t,n)},makeEnum:m,makeEnumType:p,getEnumType:d}}var b;function w(){let e=0,t=0;for(let n=0;n<28;n+=7){let r=this.buf[this.pos++];if(e|=(127&r)<>4,!(128&n))return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let r=this.buf[this.pos++];if(t|=(127&r)<>>r,s=!(i>>>7==0&&0==t),a=255&(s?128|i:i);if(n.push(a),!s)return}const r=e>>>28&15|(7&t)<<4,i=!!(t>>3);if(n.push(255&(i?128|r:r)),i){for(let e=3;e<31;e+=7){const r=t>>>e,i=!(r>>>7==0),s=255&(i?128|r:r);if(n.push(s),!i)return}n.push(t>>>31&1)}}e.ScalarType=void 0,(b=e.ScalarType||(e.ScalarType={}))[b.DOUBLE=1]="DOUBLE",b[b.FLOAT=2]="FLOAT",b[b.INT64=3]="INT64",b[b.UINT64=4]="UINT64",b[b.INT32=5]="INT32",b[b.FIXED64=6]="FIXED64",b[b.FIXED32=7]="FIXED32",b[b.BOOL=8]="BOOL",b[b.STRING=9]="STRING",b[b.BYTES=12]="BYTES",b[b.UINT32=13]="UINT32",b[b.SFIXED32=15]="SFIXED32",b[b.SFIXED64=16]="SFIXED64",b[b.SINT32=17]="SINT32",b[b.SINT64=18]="SINT64";const v=4294967296;function k(e){const t="-"===e[0];t&&(e=e.slice(1));const n=1e6;let r=0,i=0;function s(t,s){const a=Number(e.slice(t,s));i*=n,r=r*n+a,r>=v&&(i+=r/v|0,r%=v)}return s(-24,-18),s(-18,-12),s(-12,-6),s(-6),t?E(r,i):I(r,i)}function N(e,t){if(({lo:e,hi:t}=function(e,t){return{lo:e>>>0,hi:t>>>0}}(e,t)),t<=2097151)return String(v*t+e);const n=16777215&(e>>>24|t<<8),r=t>>16&65535;let i=(16777215&e)+6777216*n+6710656*r,s=n+8147497*r,a=2*r;const o=1e7;return i>=o&&(s+=Math.floor(i/o),i%=o),s>=o&&(a+=Math.floor(s/o),s%=o),a.toString()+O(s)+O(i)}function I(e,t){return{lo:0|e,hi:0|t}}function E(e,t){return t=~t,e?e=1+~e:t+=1,I(e,t)}const O=e=>{const t=String(e);return"0000000".slice(t.length)+t};function _(e,t){if(e>=0){for(;e>127;)t.push(127&e|128),e>>>=7;t.push(e)}else{for(let n=0;n<9;n++)t.push(127&e|128),e>>=7;t.push(1)}}function B(){let e=this.buf[this.pos++],t=127&e;if(!(128&e))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(127&e)<<7,!(128&e))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(127&e)<<14,!(128&e))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(127&e)<<21,!(128&e))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(15&e)<<28;for(let t=5;128&e&&t<10;t++)e=this.buf[this.pos++];if(128&e)throw new Error("invalid varint");return this.assertBounds(),t>>>0}const U=function(){const e=new DataView(new ArrayBuffer(8));if(void 0!==globalThis.BigInt&&"function"==typeof e.getBigInt64&&"function"==typeof e.getBigUint64&&"function"==typeof e.setBigInt64&&"function"==typeof e.setBigUint64&&("object"!=typeof process||"object"!=typeof process.env||!0)){const t=BigInt("-9223372036854775808"),n=BigInt("9223372036854775807"),r=BigInt("0"),i=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(e){const r="bigint"==typeof e?e:BigInt(e);if(r>n||ri||t(e.setInt32(0,t,!0),e.setInt32(4,n,!0),e.getBigInt64(0,!0)),uDec:(t,n)=>(e.setInt32(0,t,!0),e.setInt32(4,n,!0),e.getBigUint64(0,!0))}}const t=e=>n(/^-?[0-9]+$/.test(e),`int64 invalid: ${e}`),r=e=>n(/^[0-9]+$/.test(e),`uint64 invalid: ${e}`);return{zero:"0",supported:!1,parse:e=>("string"!=typeof e&&(e=e.toString()),t(e),e),uParse:e=>("string"!=typeof e&&(e=e.toString()),r(e),e),enc:e=>("string"!=typeof e&&(e=e.toString()),t(e),k(e)),uEnc:e=>("string"!=typeof e&&(e=e.toString()),r(e),k(e)),dec:(e,t)=>function(e,t){let n=I(e,t);const r=2147483648&n.hi;r&&(n=E(n.lo,n.hi));const i=N(n.lo,n.hi);return r?"-"+i:i}(e,t),uDec:(e,t)=>N(e,t)}}();var F;!function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"}(F||(F={}));class A{constructor(e){this.stack=[],this.textEncoder=null!=e?e:new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let t=0;t>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(u(e);e>127;)this.buf.push(127&e|128),e>>>=7;return this.buf.push(e),this}int32(e){return c(e),_(e,this.buf),this}bool(e){return this.buf.push(e?1:0),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let t=this.textEncoder.encode(e);return this.uint32(t.byteLength),this.raw(t)}float(e){l(e);let t=new Uint8Array(4);return new DataView(t.buffer).setFloat32(0,e,!0),this.raw(t)}double(e){let t=new Uint8Array(8);return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}fixed32(e){u(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){c(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return c(e),_(e=(e<<1^e>>31)>>>0,this.buf),this}sfixed64(e){let t=new Uint8Array(8),n=new DataView(t.buffer),r=U.enc(e);return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}fixed64(e){let t=new Uint8Array(8),n=new DataView(t.buffer),r=U.uEnc(e);return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}int64(e){let t=U.enc(e);return S(t.lo,t.hi,this.buf),this}sint64(e){let t=U.enc(e),n=t.hi>>31;return S(t.lo<<1^n,(t.hi<<1|t.lo>>>31)^n,this.buf),this}uint64(e){let t=U.uEnc(e);return S(t.lo,t.hi,this.buf),this}}class J{constructor(e,t){this.varint64=w,this.uint32=B,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.textDecoder=null!=t?t:new TextDecoder}tag(){let e=this.uint32(),t=e>>>3,n=7&e;if(t<=0||n<0||n>5)throw new Error("illegal tag: field no "+t+" wire type "+n);return[t,n]}skip(e){let t=this.pos;switch(e){case F.Varint:for(;128&this.buf[this.pos++];);break;case F.Bit64:this.pos+=4;case F.Bit32:this.pos+=4;break;case F.LengthDelimited:let t=this.uint32();this.pos+=t;break;case F.StartGroup:let n;for(;(n=this.tag()[1])!==F.EndGroup;)this.skip(n);break;default:throw new Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(t,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return 0|this.uint32()}sint32(){let e=this.uint32();return e>>>1^-(1&e)}int64(){return U.dec(...this.varint64())}uint64(){return U.uDec(...this.varint64())}sint64(){let[e,t]=this.varint64(),n=-(1&e);return e=(e>>>1|(1&t)<<31)^n,t=t>>>1^n,U.dec(e,t)}bool(){let[e,t]=this.varint64();return 0!==e||0!==t}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return U.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return U.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}}function D(e,t){if(t instanceof e)return t;if(e.fieldWrapper)return e.fieldWrapper.wrapField(t);throw new Error(`cannot unwrap field value, ${e.typeName} does not define a field wrapper`)}function j(e,t){return e.fieldWrapper?e.fieldWrapper.unwrapField(t):t}function $(t,n,r){if(n===r)return!0;if(t==e.ScalarType.BYTES){if(!(n instanceof Uint8Array&&r instanceof Uint8Array))return!1;if(n.length!==r.length)return!1;for(let e=0;enew J(e)},P={writeUnknownFields:!0,writerFactory:()=>new A};function x(e){return e?Object.assign(Object.assign({},V),e):V}function C(e){return e?Object.assign(Object.assign({},P),e):P}function M(){return{makeReadOptions:x,makeWriteOptions:C,listUnknownFields(e){var t;return null!==(t=e[R])&&void 0!==t?t:[]},discardUnknownFields(e){delete e[R]},writeUnknownFields(e,t){const n=e[R];if(n)for(const e of n)t.tag(e.no,e.wireType).raw(e.data)},onUnknownField(e,t,n,r){const i=e;Array.isArray(i[R])||(i[R]=[]),i[R].push({no:t,wireType:n,data:r})},readMessage(t,n,r,i){const s=t.getType(),a=void 0===r?n.len:n.pos+r;for(;n.pos>4,a=n,s=2;break;case 2:r[i++]=(15&a)<<4|(60&n)>>2,a=n,s=3;break;case 3:r[i++]=(3&a)<<6|n,s=0}}if(1==s)throw Error("invalid base64 string.");return r.subarray(0,i)},enc(e){let t,n="",r=0,i=0;for(let s=0;s>2],i=(3&t)<<4,r=1;break;case 1:n+=z[i|t>>4],i=(15&t)<<2,r=2;break;case 2:n+=z[i|t>>6],n+=z[63&t],r=0}return r&&(n+=z[i],n+="=",1==r&&(n+="=")),n}},ee={ignoreUnknownFields:!1},te={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function ne(e){return e?Object.assign(Object.assign({},ee),e):ee}function re(e){return e?Object.assign(Object.assign({},te),e):te}function ie(t){const n=t(ce,ue);return{makeReadOptions:ne,makeWriteOptions:re,readMessage(t,n,r,i){if(null==n||Array.isArray(n)||"object"!=typeof n)throw new Error(`cannot decode message ${t.typeName} from JSON: ${this.debug(n)}`);i=null!=i?i:new t;const s={};for(const[a,o]of Object.entries(n)){const n=t.fields.findJsonName(a);if(!n){if(!r.ignoreUnknownFields)throw new Error(`cannot decode message ${t.typeName} from JSON: key "${a}" is unknown`);continue}let c=n.localName,u=i;if(n.oneof){if(null===o&&"scalar"==n.kind)continue;const e=s[n.oneof.localName];if(e)throw new Error(`cannot decode message ${t.typeName} from JSON: multiple keys for oneof "${n.oneof.name}" present: "${e}", "${a}"`);s[n.oneof.localName]=a,u=u[n.oneof.localName]={case:c},c="value"}if(n.repeated){if(null===o)continue;if(!Array.isArray(o))throw new Error(`cannot decode field ${t.typeName}.${n.name} from JSON: ${this.debug(o)}`);const e=u[c];for(const i of o){if(null===i)throw new Error(`cannot decode field ${t.typeName}.${n.name} from JSON: ${this.debug(i)}`);let s;switch(n.kind){case"message":s=n.T.fromJson(i,r);break;case"enum":if(s=oe(n.T,i,r.ignoreUnknownFields),void 0===s)continue;break;case"scalar":try{s=ae(n.T,i)}catch(e){let r=`cannot decode field ${t.typeName}.${n.name} from JSON: ${this.debug(i)}`;throw e instanceof Error&&e.message.length>0&&(r+=`: ${e.message}`),new Error(r)}}e.push(s)}}else if("map"==n.kind){if(null===o)continue;if(Array.isArray(o)||"object"!=typeof o)throw new Error(`cannot decode field ${t.typeName}.${n.name} from JSON: ${this.debug(o)}`);const i=u[c];for(const[s,a]of Object.entries(o)){if(null===a)throw new Error(`cannot decode field ${t.typeName}.${n.name} from JSON: map value null`);let c;switch(n.V.kind){case"message":c=n.V.T.fromJson(a,r);break;case"enum":if(c=oe(n.V.T,a,r.ignoreUnknownFields),void 0===c)continue;break;case"scalar":try{c=ae(n.V.T,a)}catch(e){let r=`cannot decode map value for field ${t.typeName}.${n.name} from JSON: ${this.debug(o)}`;throw e instanceof Error&&e.message.length>0&&(r+=`: ${e.message}`),new Error(r)}}try{i[ae(n.K,n.K==e.ScalarType.BOOL?"true"==s||"false"!=s&&s:s).toString()]=c}catch(e){let r=`cannot decode map key for field ${t.typeName}.${n.name} from JSON: ${this.debug(o)}`;throw e instanceof Error&&e.message.length>0&&(r+=`: ${e.message}`),new Error(r)}}}else switch(n.kind){case"message":const e=n.T;if(null===o&&"google.protobuf.Value"!=e.typeName){if(n.oneof)throw new Error(`cannot decode field ${t.typeName}.${n.name} from JSON: null is invalid for oneof field "${a}"`);continue}const i=void 0===u[c]?new e:D(e,u[c]);u[c]=j(e,i.fromJson(o,r));break;case"enum":const s=oe(n.T,o,r.ignoreUnknownFields);void 0!==s&&(u[c]=s);break;case"scalar":try{u[c]=ae(n.T,o)}catch(e){let r=`cannot decode field ${t.typeName}.${n.name} from JSON: ${this.debug(o)}`;throw e instanceof Error&&e.message.length>0&&(r+=`: ${e.message}`),new Error(r)}}}return i},writeMessage(e,t){const r=e.getType(),i={};let s;try{for(const a of r.fields.byMember()){let r;if("oneof"==a.kind){const i=e[a.localName];if(void 0===i.value)continue;if(s=a.findField(i.case),!s)throw"oneof case not found: "+i.case;r=n(s,i.value,t)}else s=a,r=n(s,e[s.localName],t);void 0!==r&&(i[t.useProtoFieldName?s.name:s.jsonName]=r)}}catch(e){const t=s?`cannot encode field ${r.typeName}.${s.name} to JSON`:`cannot encode message ${r.typeName} to JSON`,n=e instanceof Error?e.message:String(e);throw new Error(t+(n.length>0?`: ${n}`:""))}return i},readScalar:ae,writeScalar:ue,debug:se}}function se(e){if(null===e)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":`"${e.split('"').join('\\"')}"`;default:return e.toString()}}function ae(t,n){switch(t){case e.ScalarType.DOUBLE:case e.ScalarType.FLOAT:if(null===n)return 0;if("NaN"===n)return Number.NaN;if("Infinity"===n)return Number.POSITIVE_INFINITY;if("-Infinity"===n)return Number.NEGATIVE_INFINITY;if(""===n)break;if("string"==typeof n&&n.trim().length!==n.length)break;if("string"!=typeof n&&"number"!=typeof n)break;const r=Number(n);if(Number.isNaN(r))break;if(!Number.isFinite(r))break;return t==e.ScalarType.FLOAT&&l(r),r;case e.ScalarType.INT32:case e.ScalarType.FIXED32:case e.ScalarType.SFIXED32:case e.ScalarType.SINT32:case e.ScalarType.UINT32:if(null===n)return 0;let i;if("number"==typeof n?i=n:"string"==typeof n&&n.length>0&&n.trim().length===n.length&&(i=Number(n)),void 0===i)break;return t==e.ScalarType.UINT32?u(i):c(i),i;case e.ScalarType.INT64:case e.ScalarType.SFIXED64:case e.ScalarType.SINT64:if(null===n)return U.zero;if("number"!=typeof n&&"string"!=typeof n)break;return U.parse(n);case e.ScalarType.FIXED64:case e.ScalarType.UINT64:if(null===n)return U.zero;if("number"!=typeof n&&"string"!=typeof n)break;return U.uParse(n);case e.ScalarType.BOOL:if(null===n)return!1;if("boolean"!=typeof n)break;return n;case e.ScalarType.STRING:if(null===n)return"";if("string"!=typeof n)break;try{encodeURIComponent(n)}catch(e){throw new Error("invalid UTF8")}return n;case e.ScalarType.BYTES:if(null===n||""===n)return new Uint8Array(0);if("string"!=typeof n)break;return Z.dec(n)}throw new Error}function oe(e,t,n){if(null===t)return 0;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":const r=e.findName(t);if(r||n)return null==r?void 0:r.no}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${se(t)}`)}function ce(e,t,n,r){var i;if(void 0===t)return t;if(0===t&&!n)return;if(r)return t;if("google.protobuf.NullValue"==e.typeName)return null;const s=e.findNumber(t);return null!==(i=null==s?void 0:s.name)&&void 0!==i?i:t}function ue(t,r,i){if(void 0!==r)switch(t){case e.ScalarType.INT32:case e.ScalarType.SFIXED32:case e.ScalarType.SINT32:case e.ScalarType.FIXED32:case e.ScalarType.UINT32:return n("number"==typeof r),0!=r||i?r:void 0;case e.ScalarType.FLOAT:case e.ScalarType.DOUBLE:return n("number"==typeof r),Number.isNaN(r)?"NaN":r===Number.POSITIVE_INFINITY?"Infinity":r===Number.NEGATIVE_INFINITY?"-Infinity":0!==r||i?r:void 0;case e.ScalarType.STRING:return n("string"==typeof r),r.length>0||i?r:void 0;case e.ScalarType.BOOL:return n("boolean"==typeof r),r||i?r:void 0;case e.ScalarType.UINT64:case e.ScalarType.FIXED64:case e.ScalarType.INT64:case e.ScalarType.SFIXED64:case e.ScalarType.SINT64:return n("bigint"==typeof r||"string"==typeof r||"number"==typeof r),i||0!=r?r.toString(10):void 0;case e.ScalarType.BYTES:return n(r instanceof Uint8Array),i||r.byteLength>0?Z.enc(r):void 0}}function le(){return{setEnumType:h,initPartial(e,t){if(void 0===e)return;const n=t.getType();for(const r of n.fields.byMember()){const n=r.localName,i=t,s=e;if(void 0!==s[n])switch(r.kind){case"oneof":const e=s[n].case;if(void 0===e)continue;const t=r.findField(e);let a=s[n].value;!t||"message"!=t.kind||a instanceof t.T||(a=new t.T(a)),i[n]={case:e,value:a};break;case"scalar":case"enum":i[n]=s[n];break;case"map":switch(r.V.kind){case"scalar":case"enum":Object.assign(i[n],s[n]);break;case"message":const e=r.V.T;for(const t of Object.keys(s[n])){let r=s[n][t];e.fieldWrapper||(r=new e(r)),i[n][t]=r}}break;case"message":const o=r.T;if(r.repeated)i[n]=s[n].map((e=>e instanceof o?e:new o(e)));else if(void 0!==s[n]){const e=s[n];o.fieldWrapper?i[n]=e:i[n]=e instanceof o?e:new o(e)}}}},equals:(t,n,r)=>n===r||!(!n||!r)&&t.fields.byMember().every((t=>{const i=n[t.localName],s=r[t.localName];if(t.repeated){if(i.length!==s.length)return!1;switch(t.kind){case"message":return i.every(((e,n)=>t.T.equals(e,s[n])));case"scalar":return i.every(((e,n)=>$(t.T,e,s[n])));case"enum":return i.every(((t,n)=>$(e.ScalarType.INT32,t,s[n])))}throw new Error(`repeated cannot contain ${t.kind}`)}switch(t.kind){case"message":return t.T.equals(i,s);case"enum":return $(e.ScalarType.INT32,i,s);case"scalar":return $(t.T,i,s);case"oneof":if(i.case!==s.case)return!1;const n=i.case,r=t.findField(n);if(void 0===r)return!0;switch(r.kind){case"message":return r.T.equals(i[n],s[n]);case"enum":return $(e.ScalarType.INT32,i,s);case"scalar":return $(r.T,i,s)}throw new Error(`oneof cannot contain ${r.kind}`);case"map":const a=Object.keys(i);if(a.some((e=>void 0===s[e])))return!1;switch(t.V.kind){case"message":const n=t.V.T;return a.every((e=>n.equals(i[e],s[e])));case"enum":return a.every((t=>$(e.ScalarType.INT32,i[t],s[t])));case"scalar":const r=t.V.T;return a.every((e=>$(r,i[e],s[e])))}}})),clone(e){const t=e.getType(),n=new t,r=n;for(const n of t.fields.byMember()){const t=e[n.localName];let i;if(n.repeated)i=t.map((e=>fe(n,e)));else if("map"==n.kind){i=r[n.localName];for(const[e,r]of Object.entries(t))i[e]=fe(n.V,r)}else if("oneof"==n.kind){const e=n.findField(t.case);i=e?{case:t.case,value:fe(e,t.value)}:{case:void 0}}else i=fe(n,t);r[n.localName]=i}return n}}}function fe(t,n){if(void 0===n)return n;switch(t.kind){case"enum":return n;case"scalar":if(t.T===e.ScalarType.BYTES){const e=new Uint8Array(n.byteLength);return e.set(n),e}return n;case"message":return t.T.fieldWrapper?t.T.fieldWrapper.unwrapField(t.T.fieldWrapper.wrapField(n).clone()):n.clone()}}class de{constructor(e,t){this._fields=e,this._normalizer=t}findJsonName(e){if(!this.jsonNames){const e={};for(const t of this.list())e[t.jsonName]=e[t.name]=t;this.jsonNames=e}return this.jsonNames[e]}find(e){if(!this.numbers){const e={};for(const t of this.list())e[t.no]=t;this.numbers=e}return this.numbers[e]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort(((e,t)=>e.no-t.no))),this.numbersAsc}byMember(){if(!this.members){this.members=[];const e=this.members;let t;for(const n of this.list())n.oneof?n.oneof!==t&&(t=n.oneof,e.push(t)):e.push(n)}return this.members}}function he(e,t){let n=me(e);return t||(ye[n]||ge[n])&&(n+="$"),n}const pe=me;function me(e){let t=!1;const n=[];for(let r=0;rfunction(r,i,s){if("map"==r.kind){const a={};switch(r.V.kind){case"scalar":for(const[e,s]of Object.entries(i)){const i=t(r.V.T,s,!0);n(void 0!==i),a[e.toString()]=i}break;case"message":for(const[e,t]of Object.entries(i))a[e.toString()]=t.toJson(s);break;case"enum":const o=r.V.T;for(const[t,r]of Object.entries(i)){n(void 0===r||"number"==typeof r);const i=e(o,r,!0,s.enumAsInteger);n(void 0!==i),a[t.toString()]=i}}return s.emitDefaultValues||Object.keys(a).length>0?a:void 0}if(r.repeated){const n=[];switch(r.kind){case"scalar":for(let e=0;e0?n:void 0}switch(r.kind){case"scalar":return t(r.T,i,!!r.oneof||r.opt||s.emitDefaultValues);case"enum":return e(r.T,i,!!r.oneof||r.opt||s.emitDefaultValues,s.enumAsInteger);case"message":return void 0!==i?D(r.T,i).toJson(s):void 0}})),Object.assign(Object.assign({},M()),{writeMessage(t,n,r){const i=t.getType();for(const s of i.fields.byNumber()){let i,a=s.repeated,o=s.localName;if(s.oneof){const e=t[s.oneof.localName];if(e.case!==o)continue;i=e.value}else i=t[o];switch(s.kind){case"scalar":case"enum":let t="enum"==s.kind?e.ScalarType.INT32:s.T;if(a)if(s.packed)H(n,t,s.no,i);else for(const e of i)K(n,t,s.no,e,!0);else void 0!==i&&K(n,t,s.no,i,!!s.oneof||s.opt);break;case"message":if(a)for(const e of i)Y(n,r,s.T,s.no,e);else Y(n,r,s.T,s.no,i);break;case"map":for(const[e,t]of Object.entries(i))G(n,r,s,e,t)}}return r.writeUnknownFields&&this.writeUnknownFields(t,n),n}}),Object.assign(Object.assign({},le()),{newFieldList:e=>new de(e,we),initFields(e){for(const t of e.getType().fields.byMember()){if(t.opt)continue;const n=t.localName,r=e;if(t.repeated)r[n]=[];else switch(t.kind){case"oneof":r[n]={case:void 0};break;case"enum":r[n]=0;break;case"map":r[n]={};break;case"scalar":r[n]=L(t.T)}}}}));function we(t){var n,r,i;const s=[];let a;for(const o of"function"==typeof t?t():t){const t=o;if(t.localName=he(o.name,void 0!==o.oneof),t.jsonName=null!==(n=o.jsonName)&&void 0!==n?n:pe(o.name),t.repeated=null!==(r=o.repeated)&&void 0!==r&&r,t.packed=null!==(i=o.packed)&&void 0!==i?i:"enum"==o.kind||"scalar"==o.kind&&o.T!=e.ScalarType.BYTES&&o.T!=e.ScalarType.STRING,void 0!==o.oneof){const e="string"==typeof o.oneof?o.oneof:o.oneof.name;a&&a.name==e||(a=new Te(e)),t.oneof=a,a.addField(t)}s.push(t)}return s}class Se extends g{constructor(e){super(),this.typeUrl="",this.value=new Uint8Array(0),be.util.initPartial(e,this)}toJson(e){var t;if(""===this.typeUrl)return{};const n=this.typeUrlToName(this.typeUrl),r=null===(t=null==e?void 0:e.typeRegistry)||void 0===t?void 0:t.findMessage(n);if(!r)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let i=r.fromBinary(this.value).toJson(e);return(n.startsWith("google.protobuf.")||null===i||Array.isArray(i)||"object"!=typeof i)&&(i={value:i}),i["@type"]=this.typeUrl,i}fromJson(e,t){var n;if(null===e||Array.isArray(e)||"object"!=typeof e)throw new Error("cannot decode message google.protobuf.Any from JSON: expected object but got "+(null===e?"null":Array.isArray(e)?"array":typeof e));if(0==Object.keys(e).length)return this;const r=e["@type"];if("string"!=typeof r||""==r)throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const i=this.typeUrlToName(r),s=null===(n=null==t?void 0:t.typeRegistry)||void 0===n?void 0:n.findMessage(i);if(!s)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${r} is not in the type registry`);let a;if(i.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(e,"value"))a=s.fromJson(e.value,t);else{const n=Object.assign({},e);delete n["@type"],a=s.fromJson(n,t)}return this.packFrom(a),this}packFrom(e){this.value=e.toBinary(),this.typeUrl=this.typeNameToUrl(e.getType().typeName)}unpackTo(e){return!!this.is(e.getType())&&(e.fromBinary(this.value),!0)}is(e){return this.typeUrl===this.typeNameToUrl(e.typeName)}typeNameToUrl(e){return`type.googleapis.com/${e}`}typeUrlToName(e){if(!e.length)throw new Error(`invalid type url: ${e}`);const t=e.lastIndexOf("/"),n=t>0?e.substring(t+1):e;if(!n.length)throw new Error(`invalid type url: ${e}`);return n}static pack(e){const t=new Se;return t.packFrom(e),t}static fromBinary(e,t){return(new Se).fromBinary(e,t)}static fromJson(e,t){return(new Se).fromJson(e,t)}static fromJsonString(e,t){return(new Se).fromJsonString(e,t)}static equals(e,t){return be.util.equals(Se,e,t)}}function ve(e,t){const n="string"==typeof e?Z.dec(e):e;try{const e=Se.fromBinary(n);if(e&&e.typeUrl&&e.typeUrl.startsWith("type.googleapis.com/")&&e.value)return t.fromBinary(e.value)}catch(e){}try{return t.fromBinary(n)}catch(e){throw new Error(`Invalid data while trying to unpack encoded proto: ${e}`)}}Se.runtime=be,Se.typeName="google.protobuf.Any",Se.fields=be.util.newFieldList((()=>[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}]));const ke=2**53;function Ne(e){switch(typeof e){case"string":return e?Number(e):void 0;case"number":return e;case"bigint":return(e>ke||e<-ke)&&t.reportStack(`${e} cannot be represented as a number without loss of precision`,{severity:t.SEVERITY.NONCRITICAL,tags:["proto-utils-bigint-precision-loss"]}),Number(e);default:return}}class Ie extends g{constructor(e){super(),this.id="",this.hexId="",this.isUserAgentNotSupported=!1,be.util.initPartial(e,this)}static fromBinary(e,t){return(new Ie).fromBinary(e,t)}static fromJson(e,t){return(new Ie).fromJson(e,t)}static fromJsonString(e,t){return(new Ie).fromJsonString(e,t)}static equals(e,t){return be.util.equals(Ie,e,t)}}Ie.runtime=be,Ie.typeName="init_data.Device",Ie.fields=be.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"hex_id",kind:"scalar",T:9},{no:3,name:"is_user_agent_not_supported",kind:"scalar",T:8}]));class Ee extends g{constructor(e){super(),this.id=U.zero,this.rootNsId=U.zero,this.customerPublicUserId="",be.util.initPartial(e,this)}static fromBinary(e,t){return(new Ee).fromBinary(e,t)}static fromJson(e,t){return(new Ee).fromJson(e,t)}static fromJsonString(e,t){return(new Ee).fromJsonString(e,t)}static equals(e,t){return be.util.equals(Ee,e,t)}}Ee.runtime=be,Ee.typeName="init_data.User",Ee.fields=be.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"root_ns_id",kind:"scalar",T:4},{no:3,name:"customer_public_user_id",kind:"scalar",T:9}]));class Oe extends g{constructor(e){super(),this.id=U.zero,this.customerPublicTeamId="",be.util.initPartial(e,this)}static fromBinary(e,t){return(new Oe).fromBinary(e,t)}static fromJson(e,t){return(new Oe).fromJson(e,t)}static fromJsonString(e,t){return(new Oe).fromJsonString(e,t)}static equals(e,t){return be.util.equals(Oe,e,t)}}Oe.runtime=be,Oe.typeName="init_data.Team",Oe.fields=be.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"customer_public_team_id",kind:"scalar",T:9}]));class _e extends g{constructor(e){super(),this.authRole=0,this.authActionType=0,be.util.initPartial(e,this)}static fromBinary(e,t){return(new _e).fromBinary(e,t)}static fromJson(e,t){return(new _e).fromJson(e,t)}static fromJsonString(e,t){return(new _e).fromJsonString(e,t)}static equals(e,t){return be.util.equals(_e,e,t)}}_e.runtime=be,_e.typeName="init_data.AuthRequestInfo",_e.fields=be.util.newFieldList((()=>[{no:1,name:"active_user",kind:"message",T:Ee},{no:2,name:"active_team",kind:"message",T:Oe},{no:3,name:"auth_role",kind:"scalar",T:13},{no:4,name:"auth_action_type",kind:"scalar",T:13}]));class Be extends g{constructor(e){super(),this.entryPointModuleName="",this.dws2Revision="",this.dws2Lifecycle="",be.util.initPartial(e,this)}static fromBinary(e,t){return(new Be).fromBinary(e,t)}static fromJson(e,t){return(new Be).fromJson(e,t)}static fromJsonString(e,t){return(new Be).fromJsonString(e,t)}static equals(e,t){return be.util.equals(Be,e,t)}}var Ue;Be.runtime=be,Be.typeName="init_data.DebugPanelInfo",Be.fields=be.util.newFieldList((()=>[{no:1,name:"entry_point_module_name",kind:"scalar",T:9},{no:2,name:"dws2_revision",kind:"scalar",T:9},{no:3,name:"dws2_lifecycle",kind:"scalar",T:9}])),e.AuthChannel=void 0,(Ue=e.AuthChannel||(e.AuthChannel={}))[Ue.WEB_COOKIES=0]="WEB_COOKIES",Ue[Ue.OAUTH_TOKEN=1]="OAUTH_TOKEN",be.util.setEnumType(e.AuthChannel,"init_data.AuthChannel",[{no:0,name:"WEB_COOKIES"},{no:1,name:"OAUTH_TOKEN"}]);class Fe extends g{constructor(t){super(),this.isSeleniumTest=!1,this.requestId="",this.requestStartTimeMs=U.zero,this.requestOriginalUrl="",this.requestOriginalReferer="",this.unsafeRequestFromOfficeIp=!1,this.project="",this.lifecycle="",this.devServerHostname="",this.pageName="",this.subPage="",this.pageLocale="",this.pageRevision="",this.extraHttpRequestHeaders={},this.deprecatedPromptController="",this.deprecatedPromptAction="",this.isHttp3SupportEnabled=!1,this.authChannel=e.AuthChannel.WEB_COOKIES,this.lifecycleOverride="",this.authedUserIds=[],this.countryCodeFromIp="",be.util.initPartial(t,this)}static fromBinary(e,t){return(new Fe).fromBinary(e,t)}static fromJson(e,t){return(new Fe).fromJson(e,t)}static fromJsonString(e,t){return(new Fe).fromJsonString(e,t)}static equals(e,t){return be.util.equals(Fe,e,t)}}Fe.runtime=be,Fe.typeName="init_data.InitData",Fe.fields=be.util.newFieldList((()=>[{no:1,name:"is_selenium_test",kind:"scalar",T:8},{no:2,name:"request_id",kind:"scalar",T:9},{no:3,name:"request_start_time_ms",kind:"scalar",T:3},{no:4,name:"request_original_url",kind:"scalar",T:9},{no:5,name:"request_original_referer",kind:"scalar",T:9},{no:6,name:"unsafe_request_from_office_ip",kind:"scalar",T:8},{no:7,name:"device",kind:"message",T:Ie},{no:8,name:"project",kind:"scalar",T:9},{no:9,name:"lifecycle",kind:"scalar",T:9},{no:24,name:"dev_server_hostname",kind:"scalar",T:9},{no:10,name:"page_name",kind:"scalar",T:9},{no:19,name:"sub_page",kind:"scalar",T:9},{no:11,name:"page_locale",kind:"scalar",T:9},{no:12,name:"page_revision",kind:"scalar",T:9},{no:13,name:"extra_http_request_headers",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:14,name:"auth_request_info",kind:"message",T:_e},{no:15,name:"deprecated_prompt_controller",kind:"scalar",T:9},{no:16,name:"deprecated_prompt_action",kind:"scalar",T:9},{no:17,name:"is_http3_support_enabled",kind:"scalar",T:8},{no:18,name:"debug_panel_info",kind:"message",T:Be},{no:20,name:"auth_channel",kind:"enum",T:be.getEnumType(e.AuthChannel)},{no:21,name:"lifecycle_override",kind:"scalar",T:9},{no:22,name:"authed_user_ids",kind:"scalar",T:4,repeated:!0},{no:23,name:"country_code_from_ip",kind:"scalar",T:9}]));const Ae="undefined"==typeof jest?"initial data wasn't initialized yet, you need to call js/init_data/init_raw:initRaw function first":"initial data wasn't initialized yet, you need to call js/init_data/init_test.test_util:initTest function first";let Je=null;function De(){if(Je)return Je;const e=ve(function(){if("string"!=typeof globalThis.__init_data_raw__)throw new Error(Ae);return globalThis.__init_data_raw__}(),Fe);return je(e),e}function je(e){Je=e}function $e(){return De().project}function Le(){var e,t,n,r,i,s;const a=(null===(n=null===(t=null===(e=De())||void 0===e?void 0:e.authRequestInfo)||void 0===t?void 0:t.activeUser)||void 0===n?void 0:n.id)?Ne(null===(s=null===(i=null===(r=De())||void 0===r?void 0:r.authRequestInfo)||void 0===i?void 0:i.activeUser)||void 0===s?void 0:s.id):void 0;if(0!==a)return a}e.Any=Se,e.AuthRequestInfo=_e,e.InternalFieldList=de,e.InternalOneofInfo=Te,e.Message=g,e.Team=Oe,e.User=Ee,e.assert=n,e.fieldJsonName=pe,e.getActiveTeamId=function(){var e,t,n,r,i,s;const a=(null===(n=null===(t=null===(e=De())||void 0===e?void 0:e.authRequestInfo)||void 0===t?void 0:t.activeTeam)||void 0===n?void 0:n.id)?Ne(null===(s=null===(i=null===(r=De())||void 0===r?void 0:r.authRequestInfo)||void 0===i?void 0:i.activeTeam)||void 0===s?void 0:s.id):void 0;if(0!==a)return a},e.getActiveUserId=Le,e.getAtlasservlet=function(){const e=$e();return e.startsWith("edison_atlasservlet.")?e.split("edison_atlasservlet.")[1].split("-edison")[0]:e},e.getAuthRequestInfo=function(){var e;const t=null===(e=De())||void 0===e?void 0:e.authRequestInfo;return t?t.clone():void 0},e.getAuthedUserIds=function(){var e,t;return null!==(t=null===(e=De())||void 0===e?void 0:e.authedUserIds.map(Ne))&&void 0!==t?t:[]},e.getBrowserId=function(){var e,t;return(null===(t=null===(e=De())||void 0===e?void 0:e.device)||void 0===t?void 0:t.id)||""},e.getCountryCodeFromIP=function(){return De().countryCodeFromIp},e.getCountryOverride=function(){return new URL(De().requestOriginalUrl).searchParams.get("country_override")||""},e.getDeviceIdHex=function(){return De().device.hexId},e.getEdisonLifecycleOverride=function(){return De().lifecycleOverride},e.getExtraHttpRequestHeaders=function(){return De().extraHttpRequestHeaders||{}},e.getInitData=De,e.getPageAuthChannel=function(){var t,n;return null!==(n=null===(t=De())||void 0===t?void 0:t.authChannel)&&void 0!==n?n:e.AuthChannel.WEB_COOKIES},e.getPageLocale=function(){if("undefined"!=typeof jest){try{return De().pageLocale||"en"}catch(e){}return"en"}return De().pageLocale||"en"},e.getPageName=function(){return De().pageName},e.getPublicModeOverride=function(){const e=new URL(De().requestOriginalUrl).searchParams.get("public_mode_override");return"true"===e||"1"===e},e.getRepoRev=function(){return De().pageRevision},e.getRequestId=function(){return De().requestId},e.getRequestOriginalReferrer=function(){return De().requestOriginalReferer||void 0},e.getRequestOriginalUrl=function(){return De().requestOriginalUrl},e.getRequestStartTime=function(){return Ne(De().requestStartTimeMs)||0},e.getSubPage=function(){return De().subPage},e.getYapsDeployment=function(){return De().lifecycle},e.getYapsProject=$e,e.init=je,e.isAnyUserSignedIn=function(){return!!Le()},e.isHTTP3SupportEnabled=function(){return De().isHttp3SupportEnabled},e.isRequestTracingEnabled=function(){return!1},e.isSeleniumTest=function(){return De().isSeleniumTest},e.isServedByEdisonWebServer=function(){return"undefined"!=typeof __SERVED_BY_EDISON_WEB_SERVER__},e.isServerSide=function(){return"undefined"!=typeof RUNNING_IN_REACTSERVER},e.isUserAgentNotSupported=function(){var e,t;return!!(null===(t=null===(e=De())||void 0===e?void 0:e.device)||void 0===t?void 0:t.isUserAgentNotSupported)},e.localFieldName=he,e.makeBinaryFormatCommon=M,e.makeJsonFormatCommon=ie,e.makeProtoRuntime=T,e.makeUtilCommon=le,e.marshalProto=function(e){return Z.enc(e.toBinary())},e.mustGetActiveUserId=function(){const e=Le();if("number"!=typeof e)throw new Error("could not get active user id");return e},e.proto3=be,e.protoBase64=Z,e.protoInt64=U,e.toNumber=Ne,e.unmarshalProto=ve,e.withActionNamespace=function(e,t){const n={},r={};for(const i of Object.keys(t||{})){const s=t[i];if(n[i]=`${e}__${s}`,null!=r[s])throw new Error(`Duplicate action value '${s}'!`);r[s]=!0}return n},e.wrapField=D,e.wrapInAny=function(e,t){return new Se({typeUrl:t,value:e.toBinary()})},e.writeMapEntry=G,e.writeMessageField=Y,e.writePacked=H,e.writeScalar=K})); //# sourceMappingURL=c_flux_action_type.js-vflP_zhcQ.map //# debugId=3112ce99-f9b1-36bb-b7b2-a2dedf4d2ade