firebase
Version:
Firebase JavaScript library for web and Node.js
1 lines • 507 kB
JavaScript
import{_isFirebaseServerApp as e,_getProvider,getApp as r,_removeServiceInstance as i,_registerComponent as s,registerVersion as o,SDK_VERSION as _}from"https://www.gstatic.com/firebasejs/12.11.0/firebase-app.js";const stringToByteArray$1=function(e){const r=[];let i=0;for(let s=0;s<e.length;s++){let o=e.charCodeAt(s);o<128?r[i++]=o:o<2048?(r[i++]=o>>6|192,r[i++]=63&o|128):55296==(64512&o)&&s+1<e.length&&56320==(64512&e.charCodeAt(s+1))?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++s)),r[i++]=o>>18|240,r[i++]=o>>12&63|128,r[i++]=o>>6&63|128,r[i++]=63&o|128):(r[i++]=o>>12|224,r[i++]=o>>6&63|128,r[i++]=63&o|128)}return r},h={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,r){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const i=r?this.byteToCharMapWebSafe_:this.byteToCharMap_,s=[];for(let r=0;r<e.length;r+=3){const o=e[r],_=r+1<e.length,h=_?e[r+1]:0,d=r+2<e.length,f=d?e[r+2]:0,g=o>>2,A=(3&o)<<4|h>>4;let b=(15&h)<<2|f>>6,M=63&f;d||(M=64,_||(b=64)),s.push(i[g],i[A],i[b],i[M])}return s.join("")},encodeString(e,r){return this.HAS_NATIVE_SUPPORT&&!r?btoa(e):this.encodeByteArray(stringToByteArray$1(e),r)},decodeString(e,r){return this.HAS_NATIVE_SUPPORT&&!r?atob(e):function(e){const r=[];let i=0,s=0;for(;i<e.length;){const o=e[i++];if(o<128)r[s++]=String.fromCharCode(o);else if(o>191&&o<224){const _=e[i++];r[s++]=String.fromCharCode((31&o)<<6|63&_)}else if(o>239&&o<365){const _=((7&o)<<18|(63&e[i++])<<12|(63&e[i++])<<6|63&e[i++])-65536;r[s++]=String.fromCharCode(55296+(_>>10)),r[s++]=String.fromCharCode(56320+(1023&_))}else{const _=e[i++],h=e[i++];r[s++]=String.fromCharCode((15&o)<<12|(63&_)<<6|63&h)}}return r.join("")}(this.decodeStringToByteArray(e,r))},decodeStringToByteArray(e,r){this.init_();const i=r?this.charToByteMapWebSafe_:this.charToByteMap_,s=[];for(let r=0;r<e.length;){const o=i[e.charAt(r++)],_=r<e.length?i[e.charAt(r)]:0;++r;const h=r<e.length?i[e.charAt(r)]:64;++r;const d=r<e.length?i[e.charAt(r)]:64;if(++r,null==o||null==_||null==h||null==d)throw new DecodeBase64StringError;const f=o<<2|_>>4;if(s.push(f),64!==h){const e=_<<4&240|h>>2;if(s.push(e),64!==d){const e=h<<6&192|d;s.push(e)}}}return s},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class DecodeBase64StringError extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const base64urlEncodeWithoutPadding=function(e){return function(e){const r=stringToByteArray$1(e);return h.encodeByteArray(r,!0)}(e).replace(/\./g,"")};function getGlobal(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("Unable to locate global object.")}const getDefaultsFromCookie=()=>{if("undefined"==typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}const r=e&&function(e){try{return h.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null}(e[1]);return r&&JSON.parse(r)},getDefaults=()=>{try{return getGlobal().__FIREBASE_DEFAULTS__||(()=>{if("undefined"==typeof process||void 0===process.env)return;const e=process.env.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0})()||getDefaultsFromCookie()}catch(e){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`)}},getDefaultEmulatorHostnameAndPort=e=>{const r=(e=>getDefaults()?.emulatorHosts?.[e])(e);if(!r)return;const i=r.lastIndexOf(":");if(i<=0||i+1===r.length)throw new Error(`Invalid host ${r} with no separate hostname and port!`);const s=parseInt(r.substring(i+1),10);return"["===r[0]?[r.substring(1,i-1),s]:[r.substring(0,i),s]};function getUA(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function isNode(){const e=getDefaults()?.forceEnvironment;if("node"===e)return!0;if("browser"===e)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(e){return!1}}function isSafari(){return!isNode()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function isSafariOrWebkit(){return!isNode()&&!!navigator.userAgent&&(navigator.userAgent.includes("Safari")||navigator.userAgent.includes("WebKit"))&&!navigator.userAgent.includes("Chrome")}class FirebaseError extends Error{constructor(e,r,i){super(r),this.code=e,this.customData=i,this.name="FirebaseError",Object.setPrototypeOf(this,FirebaseError.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ErrorFactory.prototype.create)}}class ErrorFactory{constructor(e,r,i){this.service=e,this.serviceName=r,this.errors=i}create(e,...r){const i=r[0]||{},s=`${this.service}/${e}`,o=this.errors[e],_=o?function replaceTemplate(e,r){return e.replace(d,((e,i)=>{const s=r[i];return null!=s?String(s):`<${i}?>`}))}(o,i):"Error",h=`${this.serviceName}: ${_} (${s}).`;return new FirebaseError(s,h,i)}}const d=/\{\$([^}]+)}/g;function deepEqual(e,r){if(e===r)return!0;const i=Object.keys(e),s=Object.keys(r);for(const o of i){if(!s.includes(o))return!1;const i=e[o],_=r[o];if(isObject(i)&&isObject(_)){if(!deepEqual(i,_))return!1}else if(i!==_)return!1}for(const e of s)if(!i.includes(e))return!1;return!0}function isObject(e){return null!==e&&"object"==typeof e}function getModularInstance(e){return e&&e._delegate?e._delegate:e}function isCloudWorkstation(e){try{return(e.startsWith("http://")||e.startsWith("https://")?new URL(e).hostname:e).endsWith(".cloudworkstations.dev")}catch{return!1}}async function pingServer(e){return(await fetch(e,{credentials:"include"})).ok}class Component{constructor(e,r,i){this.name=e,this.instanceFactory=r,this.type=i,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}var f,g,A,b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};(function(){var e;function m(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.C=Array(this.blockSize),this.o=this.h=0,this.u()}function n(e,r,i){i||(i=0);const s=Array(16);if("string"==typeof r)for(var o=0;o<16;++o)s[o]=r.charCodeAt(i++)|r.charCodeAt(i++)<<8|r.charCodeAt(i++)<<16|r.charCodeAt(i++)<<24;else for(o=0;o<16;++o)s[o]=r[i++]|r[i++]<<8|r[i++]<<16|r[i++]<<24;r=e.g[0],i=e.g[1],o=e.g[2];let _,h=e.g[3];_=r+(h^i&(o^h))+s[0]+3614090360&4294967295,_=h+(o^(r=i+(_<<7&4294967295|_>>>25))&(i^o))+s[1]+3905402710&4294967295,h=r+(_<<12&4294967295|_>>>20),_=o+(i^h&(r^i))+s[2]+606105819&4294967295,_=i+(r^(o=h+(_<<17&4294967295|_>>>15))&(h^r))+s[3]+3250441966&4294967295,_=r+(h^(i=o+(_<<22&4294967295|_>>>10))&(o^h))+s[4]+4118548399&4294967295,_=h+(o^(r=i+(_<<7&4294967295|_>>>25))&(i^o))+s[5]+1200080426&4294967295,h=r+(_<<12&4294967295|_>>>20),_=o+(i^h&(r^i))+s[6]+2821735955&4294967295,_=i+(r^(o=h+(_<<17&4294967295|_>>>15))&(h^r))+s[7]+4249261313&4294967295,_=r+(h^(i=o+(_<<22&4294967295|_>>>10))&(o^h))+s[8]+1770035416&4294967295,_=h+(o^(r=i+(_<<7&4294967295|_>>>25))&(i^o))+s[9]+2336552879&4294967295,h=r+(_<<12&4294967295|_>>>20),_=o+(i^h&(r^i))+s[10]+4294925233&4294967295,_=i+(r^(o=h+(_<<17&4294967295|_>>>15))&(h^r))+s[11]+2304563134&4294967295,_=r+(h^(i=o+(_<<22&4294967295|_>>>10))&(o^h))+s[12]+1804603682&4294967295,_=h+(o^(r=i+(_<<7&4294967295|_>>>25))&(i^o))+s[13]+4254626195&4294967295,h=r+(_<<12&4294967295|_>>>20),_=o+(i^h&(r^i))+s[14]+2792965006&4294967295,_=i+(r^(o=h+(_<<17&4294967295|_>>>15))&(h^r))+s[15]+1236535329&4294967295,_=r+(o^h&((i=o+(_<<22&4294967295|_>>>10))^o))+s[1]+4129170786&4294967295,_=h+(i^o&((r=i+(_<<5&4294967295|_>>>27))^i))+s[6]+3225465664&4294967295,h=r+(_<<9&4294967295|_>>>23),_=o+(r^i&(h^r))+s[11]+643717713&4294967295,_=i+(h^r&((o=h+(_<<14&4294967295|_>>>18))^h))+s[0]+3921069994&4294967295,_=r+(o^h&((i=o+(_<<20&4294967295|_>>>12))^o))+s[5]+3593408605&4294967295,_=h+(i^o&((r=i+(_<<5&4294967295|_>>>27))^i))+s[10]+38016083&4294967295,h=r+(_<<9&4294967295|_>>>23),_=o+(r^i&(h^r))+s[15]+3634488961&4294967295,_=i+(h^r&((o=h+(_<<14&4294967295|_>>>18))^h))+s[4]+3889429448&4294967295,_=r+(o^h&((i=o+(_<<20&4294967295|_>>>12))^o))+s[9]+568446438&4294967295,_=h+(i^o&((r=i+(_<<5&4294967295|_>>>27))^i))+s[14]+3275163606&4294967295,h=r+(_<<9&4294967295|_>>>23),_=o+(r^i&(h^r))+s[3]+4107603335&4294967295,_=i+(h^r&((o=h+(_<<14&4294967295|_>>>18))^h))+s[8]+1163531501&4294967295,_=r+(o^h&((i=o+(_<<20&4294967295|_>>>12))^o))+s[13]+2850285829&4294967295,_=h+(i^o&((r=i+(_<<5&4294967295|_>>>27))^i))+s[2]+4243563512&4294967295,h=r+(_<<9&4294967295|_>>>23),_=o+(r^i&(h^r))+s[7]+1735328473&4294967295,_=i+(h^r&((o=h+(_<<14&4294967295|_>>>18))^h))+s[12]+2368359562&4294967295,_=r+((i=o+(_<<20&4294967295|_>>>12))^o^h)+s[5]+4294588738&4294967295,_=h+((r=i+(_<<4&4294967295|_>>>28))^i^o)+s[8]+2272392833&4294967295,h=r+(_<<11&4294967295|_>>>21),_=o+(h^r^i)+s[11]+1839030562&4294967295,_=i+((o=h+(_<<16&4294967295|_>>>16))^h^r)+s[14]+4259657740&4294967295,_=r+((i=o+(_<<23&4294967295|_>>>9))^o^h)+s[1]+2763975236&4294967295,_=h+((r=i+(_<<4&4294967295|_>>>28))^i^o)+s[4]+1272893353&4294967295,h=r+(_<<11&4294967295|_>>>21),_=o+(h^r^i)+s[7]+4139469664&4294967295,_=i+((o=h+(_<<16&4294967295|_>>>16))^h^r)+s[10]+3200236656&4294967295,_=r+((i=o+(_<<23&4294967295|_>>>9))^o^h)+s[13]+681279174&4294967295,_=h+((r=i+(_<<4&4294967295|_>>>28))^i^o)+s[0]+3936430074&4294967295,h=r+(_<<11&4294967295|_>>>21),_=o+(h^r^i)+s[3]+3572445317&4294967295,_=i+((o=h+(_<<16&4294967295|_>>>16))^h^r)+s[6]+76029189&4294967295,_=r+((i=o+(_<<23&4294967295|_>>>9))^o^h)+s[9]+3654602809&4294967295,_=h+((r=i+(_<<4&4294967295|_>>>28))^i^o)+s[12]+3873151461&4294967295,h=r+(_<<11&4294967295|_>>>21),_=o+(h^r^i)+s[15]+530742520&4294967295,_=i+((o=h+(_<<16&4294967295|_>>>16))^h^r)+s[2]+3299628645&4294967295,_=r+(o^((i=o+(_<<23&4294967295|_>>>9))|~h))+s[0]+4096336452&4294967295,_=h+(i^((r=i+(_<<6&4294967295|_>>>26))|~o))+s[7]+1126891415&4294967295,h=r+(_<<10&4294967295|_>>>22),_=o+(r^(h|~i))+s[14]+2878612391&4294967295,_=i+(h^((o=h+(_<<15&4294967295|_>>>17))|~r))+s[5]+4237533241&4294967295,_=r+(o^((i=o+(_<<21&4294967295|_>>>11))|~h))+s[12]+1700485571&4294967295,_=h+(i^((r=i+(_<<6&4294967295|_>>>26))|~o))+s[3]+2399980690&4294967295,h=r+(_<<10&4294967295|_>>>22),_=o+(r^(h|~i))+s[10]+4293915773&4294967295,_=i+(h^((o=h+(_<<15&4294967295|_>>>17))|~r))+s[1]+2240044497&4294967295,_=r+(o^((i=o+(_<<21&4294967295|_>>>11))|~h))+s[8]+1873313359&4294967295,_=h+(i^((r=i+(_<<6&4294967295|_>>>26))|~o))+s[15]+4264355552&4294967295,h=r+(_<<10&4294967295|_>>>22),_=o+(r^(h|~i))+s[6]+2734768916&4294967295,_=i+(h^((o=h+(_<<15&4294967295|_>>>17))|~r))+s[13]+1309151649&4294967295,_=r+(o^((i=o+(_<<21&4294967295|_>>>11))|~h))+s[4]+4149444226&4294967295,_=h+(i^((r=i+(_<<6&4294967295|_>>>26))|~o))+s[11]+3174756917&4294967295,h=r+(_<<10&4294967295|_>>>22),_=o+(r^(h|~i))+s[2]+718787259&4294967295,_=i+(h^((o=h+(_<<15&4294967295|_>>>17))|~r))+s[9]+3951481745&4294967295,e.g[0]=e.g[0]+r&4294967295,e.g[1]=e.g[1]+(o+(_<<21&4294967295|_>>>11))&4294967295,e.g[2]=e.g[2]+o&4294967295,e.g[3]=e.g[3]+h&4294967295}function t(e,r){this.h=r;const i=[];let s=!0;for(let o=e.length-1;o>=0;o--){const _=0|e[o];s&&_==r||(i[o]=_,s=!1)}this.g=i}!function k(e,r){function c(){}c.prototype=r.prototype,e.F=r.prototype,e.prototype=new c,e.prototype.constructor=e,e.D=function(e,i,s){for(var o=Array(arguments.length-2),_=2;_<arguments.length;_++)o[_-2]=arguments[_];return r.prototype[i].apply(e,o)}}(m,(function l(){this.blockSize=-1})),m.prototype.u=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0},m.prototype.v=function(e,r){void 0===r&&(r=e.length);const i=r-this.blockSize,s=this.C;let o=this.h,_=0;for(;_<r;){if(0==o)for(;_<=i;)n(this,e,_),_+=this.blockSize;if("string"==typeof e){for(;_<r;)if(s[o++]=e.charCodeAt(_++),o==this.blockSize){n(this,s),o=0;break}}else for(;_<r;)if(s[o++]=e[_++],o==this.blockSize){n(this,s),o=0;break}}this.h=o,this.o+=r},m.prototype.A=function(){var e=Array((this.h<56?this.blockSize:2*this.blockSize)-this.h);e[0]=128;for(var r=1;r<e.length-8;++r)e[r]=0;r=8*this.o;for(var i=e.length-8;i<e.length;++i)e[i]=255&r,r/=256;for(this.v(e),e=Array(16),r=0,i=0;i<4;++i)for(let s=0;s<32;s+=8)e[r++]=this.g[i]>>>s&255;return e};var r={};function u(e){return-128<=e&&e<128?function p(e,i){var s=r;return Object.prototype.hasOwnProperty.call(s,e)?s[e]:s[e]=i(e)}(e,(function(e){return new t([0|e],e<0?-1:0)})):new t([0|e],e<0?-1:0)}function v(e){if(isNaN(e)||!isFinite(e))return i;if(e<0)return x(v(-e));const r=[];let s=1;for(let i=0;e>=s;i++)r[i]=e/s|0,s*=4294967296;return new t(r,0)}var i=u(0),s=u(1),o=u(16777216);function C(e){if(0!=e.h)return!1;for(let r=0;r<e.g.length;r++)if(0!=e.g[r])return!1;return!0}function B(e){return-1==e.h}function x(e){const r=e.g.length,i=[];for(let s=0;s<r;s++)i[s]=~e.g[s];return new t(i,~e.h).add(s)}function F(e,r){return e.add(x(r))}function G(e,r){for(;(65535&e[r])!=e[r];)e[r+1]+=e[r]>>>16,e[r]&=65535,r++}function H(e,r){this.g=e,this.h=r}function D(e,r){if(C(r))throw Error("division by zero");if(C(e))return new H(i,i);if(B(e))return r=D(x(e),r),new H(x(r.g),x(r.h));if(B(r))return r=D(e,x(r)),new H(x(r.g),r.h);if(e.g.length>30){if(B(e)||B(r))throw Error("slowDivide_ only works with positive integers.");for(var o=s,_=r;_.l(e)<=0;)o=I(o),_=I(_);var h=J(o,1),d=J(_,1);for(_=J(_,2),o=J(o,2);!C(_);){var f=d.add(_);f.l(e)<=0&&(h=h.add(o),d=f),_=J(_,1),o=J(o,1)}return r=F(e,h.j(r)),new H(h,r)}for(h=i;e.l(r)>=0;){for(o=Math.max(1,Math.floor(e.m()/r.m())),_=(_=Math.ceil(Math.log(o)/Math.LN2))<=48?1:Math.pow(2,_-48),f=(d=v(o)).j(r);B(f)||f.l(e)>0;)f=(d=v(o-=_)).j(r);C(d)&&(d=s),h=h.add(d),e=F(e,f)}return new H(h,e)}function I(e){const r=e.g.length+1,i=[];for(let s=0;s<r;s++)i[s]=e.i(s)<<1|e.i(s-1)>>>31;return new t(i,e.h)}function J(e,r){const i=r>>5;r%=32;const s=e.g.length-i,o=[];for(let _=0;_<s;_++)o[_]=r>0?e.i(_+i)>>>r|e.i(_+i+1)<<32-r:e.i(_+i);return new t(o,e.h)}(e=t.prototype).m=function(){if(B(this))return-x(this).m();let e=0,r=1;for(let i=0;i<this.g.length;i++){const s=this.i(i);e+=(s>=0?s:4294967296+s)*r,r*=4294967296}return e},e.toString=function(e){if((e=e||10)<2||36<e)throw Error("radix out of range: "+e);if(C(this))return"0";if(B(this))return"-"+x(this).toString(e);const r=v(Math.pow(e,6));var i=this;let s="";for(;;){const o=D(i,r).g;let _=(((i=F(i,o.j(r))).g.length>0?i.g[0]:i.h)>>>0).toString(e);if(C(i=o))return _+s;for(;_.length<6;)_="0"+_;s=_+s}},e.i=function(e){return e<0?0:e<this.g.length?this.g[e]:this.h},e.l=function(e){return B(e=F(this,e))?-1:C(e)?0:1},e.abs=function(){return B(this)?x(this):this},e.add=function(e){const r=Math.max(this.g.length,e.g.length),i=[];let s=0;for(let o=0;o<=r;o++){let r=s+(65535&this.i(o))+(65535&e.i(o)),_=(r>>>16)+(this.i(o)>>>16)+(e.i(o)>>>16);s=_>>>16,r&=65535,_&=65535,i[o]=_<<16|r}return new t(i,-2147483648&i[i.length-1]?-1:0)},e.j=function(e){if(C(this)||C(e))return i;if(B(this))return B(e)?x(this).j(x(e)):x(x(this).j(e));if(B(e))return x(this.j(x(e)));if(this.l(o)<0&&e.l(o)<0)return v(this.m()*e.m());const r=this.g.length+e.g.length,s=[];for(var _=0;_<2*r;_++)s[_]=0;for(_=0;_<this.g.length;_++)for(let r=0;r<e.g.length;r++){const i=this.i(_)>>>16,o=65535&this.i(_),h=e.i(r)>>>16,d=65535&e.i(r);s[2*_+2*r]+=o*d,G(s,2*_+2*r),s[2*_+2*r+1]+=i*d,G(s,2*_+2*r+1),s[2*_+2*r+1]+=o*h,G(s,2*_+2*r+1),s[2*_+2*r+2]+=i*h,G(s,2*_+2*r+2)}for(e=0;e<r;e++)s[e]=s[2*e+1]<<16|s[2*e];for(e=r;e<2*r;e++)s[e]=0;return new t(s,0)},e.B=function(e){return D(this,e).h},e.and=function(e){const r=Math.max(this.g.length,e.g.length),i=[];for(let s=0;s<r;s++)i[s]=this.i(s)&e.i(s);return new t(i,this.h&e.h)},e.or=function(e){const r=Math.max(this.g.length,e.g.length),i=[];for(let s=0;s<r;s++)i[s]=this.i(s)|e.i(s);return new t(i,this.h|e.h)},e.xor=function(e){const r=Math.max(this.g.length,e.g.length),i=[];for(let s=0;s<r;s++)i[s]=this.i(s)^e.i(s);return new t(i,this.h^e.h)},m.prototype.digest=m.prototype.A,m.prototype.reset=m.prototype.u,m.prototype.update=m.prototype.v,g=m,t.prototype.add=t.prototype.add,t.prototype.multiply=t.prototype.j,t.prototype.modulo=t.prototype.B,t.prototype.compare=t.prototype.l,t.prototype.toNumber=t.prototype.m,t.prototype.toString=t.prototype.toString,t.prototype.getBits=t.prototype.i,t.fromNumber=v,t.fromString=function y(e,r){if(0==e.length)throw Error("number format error: empty string");if((r=r||10)<2||36<r)throw Error("radix out of range: "+r);if("-"==e.charAt(0))return x(y(e.substring(1),r));if(e.indexOf("-")>=0)throw Error('number format error: interior "-" character');const s=v(Math.pow(r,8));let o=i;for(let i=0;i<e.length;i+=8){var _=Math.min(8,e.length-i);const h=parseInt(e.substring(i,i+_),r);_<8?(_=v(Math.pow(r,_)),o=o.j(_).add(v(h))):(o=o.j(s),o=o.add(v(h)))}return o},f=t}).apply(void 0!==b?b:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(A||(A={}));const M={debug:A.DEBUG,verbose:A.VERBOSE,info:A.INFO,warn:A.WARN,error:A.ERROR,silent:A.SILENT},q=A.INFO,$={[A.DEBUG]:"log",[A.VERBOSE]:"log",[A.INFO]:"info",[A.WARN]:"warn",[A.ERROR]:"error"},defaultLogHandler=(e,r,...i)=>{if(r<e.logLevel)return;const s=(new Date).toISOString(),o=$[r];if(!o)throw new Error(`Attempted to log a message with an invalid logType (value: ${r})`);console[o](`[${s}] ${e.name}:`,...i)};var j,ee,te,ne,re,ie,se,oe,ae="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};(function(){var e,r=Object.defineProperty;var i=function ba(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof ae&&ae];for(var r=0;r<e.length;++r){var i=e[r];if(i&&i.Math==Math)return i}throw Error("Cannot find global object")}(this);function da(e,s){if(s)e:{var o=i;e=e.split(".");for(var _=0;_<e.length-1;_++){var h=e[_];if(!(h in o))break e;o=o[h]}(s=s(_=o[e=e[e.length-1]]))!=_&&null!=s&&r(o,e,{configurable:!0,writable:!0,value:s})}}da("Symbol.dispose",(function(e){return e||Symbol("Symbol.dispose")})),da("Array.prototype.values",(function(e){return e||function(){return this[Symbol.iterator]()}})),da("Object.entries",(function(e){return e||function(e){var r,i=[];for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&i.push([r,e[r]]);return i}}));var s=s||{},o=this||self;function n(e){var r=typeof e;return"object"==r&&null!=e||"function"==r}function fa(e,r,i){return e.call.apply(e.bind,arguments)}function p(e,r,i){return(p=fa).apply(null,arguments)}function ha(e,r){var i=Array.prototype.slice.call(arguments,1);return function(){var r=i.slice();return r.push.apply(r,arguments),e.apply(this,r)}}function t(e,r){function c(){}c.prototype=r.prototype,e.Z=r.prototype,e.prototype=new c,e.prototype.constructor=e,e.Ob=function(e,i,s){for(var o=Array(arguments.length-2),_=2;_<arguments.length;_++)o[_-2]=arguments[_];return r.prototype[i].apply(e,o)}}var _="undefined"!=typeof AsyncContext&&"function"==typeof AsyncContext.Snapshot?e=>e&&AsyncContext.Snapshot.wrap(e):e=>e;function ja(e){const r=e.length;if(r>0){const i=Array(r);for(let s=0;s<r;s++)i[s]=e[s];return i}return[]}function ka(e,r){for(let r=1;r<arguments.length;r++){const s=arguments[r];var i=typeof s;if("array"==(i="object"!=i?i:s?Array.isArray(s)?"array":i:"null")||"object"==i&&"number"==typeof s.length){i=e.length||0;const r=s.length||0;e.length=i+r;for(let o=0;o<r;o++)e[i+o]=s[o]}else e.push(s)}}function ma(e){o.setTimeout((()=>{throw e}),0)}function na(){var e=g;let r=null;return e.g&&(r=e.g,e.g=e.g.next,e.g||(e.h=null),r.next=null),r}var h=new class la{constructor(e,r){this.i=e,this.j=r,this.h=0,this.g=null}get(){let e;return this.h>0?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}((()=>new ra),(e=>e.reset()));class ra{constructor(){this.next=this.g=this.h=null}set(e,r){this.h=e,this.g=r,this.next=null}reset(){this.next=this.g=this.h=null}}let d,f=!1,g=new class pa{constructor(){this.h=this.g=null}add(e,r){const i=h.get();i.set(e,r),this.h?this.h.next=i:this.g=i,this.h=i}},ta=()=>{const e=Promise.resolve(void 0);d=()=>{e.then(sa)}};function sa(){for(var e;e=na();){try{e.h.call(e.g)}catch(e){ma(e)}var r=h;r.j(e),r.h<100&&(r.h++,e.next=r.g,r.g=e)}f=!1}function w(){this.u=this.u,this.C=this.C}function x(e,r){this.type=e,this.g=this.target=r,this.defaultPrevented=!1}w.prototype.u=!1,w.prototype.dispose=function(){this.u||(this.u=!0,this.N())},w.prototype[Symbol.dispose]=function(){this.dispose()},w.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},x.prototype.h=function(){this.defaultPrevented=!0};var A=function(){if(!o.addEventListener||!Object.defineProperty)return!1;var e=!1,r=Object.defineProperty({},"passive",{get:function(){e=!0}});try{const c=()=>{};o.addEventListener("test",c,r),o.removeEventListener("test",c,r)}catch(e){}return e}();function y(e){return/^[\s\xa0]*$/.test(e)}function z(e,r){x.call(this,e?e.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,e&&this.init(e,r)}t(z,x),z.prototype.init=function(e,r){const i=this.type=e.type,s=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;this.target=e.target||e.srcElement,this.g=r,(r=e.relatedTarget)||("mouseover"==i?r=e.fromElement:"mouseout"==i&&(r=e.toElement)),this.relatedTarget=r,s?(this.clientX=void 0!==s.clientX?s.clientX:s.pageX,this.clientY=void 0!==s.clientY?s.clientY:s.pageY,this.screenX=s.screenX||0,this.screenY=s.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType=e.pointerType,this.state=e.state,this.i=e,e.defaultPrevented&&z.Z.h.call(this)},z.prototype.h=function(){z.Z.h.call(this);const e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var b="closure_listenable_"+(1e6*Math.random()|0),M=0;function wa(e,r,i,s,o){this.listener=e,this.proxy=null,this.src=r,this.type=i,this.capture=!!s,this.ha=o,this.key=++M,this.da=this.fa=!1}function xa(e){e.da=!0,e.listener=null,e.proxy=null,e.src=null,e.ha=null}function ya(e,r,i){for(const s in e)r.call(i,e[s],s,e)}function Ba(e){const r={};for(const i in e)r[i]=e[i];return r}const q="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Da(e,r){let i,s;for(let r=1;r<arguments.length;r++){for(i in s=arguments[r],s)e[i]=s[i];for(let r=0;r<q.length;r++)i=q[r],Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}}function Ea(e){this.src=e,this.g={},this.h=0}function Ga(e,r){const i=r.type;if(i in e.g){var s,o=e.g[i],_=Array.prototype.indexOf.call(o,r,void 0);(s=_>=0)&&Array.prototype.splice.call(o,_,1),s&&(xa(r),0==e.g[i].length&&(delete e.g[i],e.h--))}}function Fa(e,r,i,s){for(let o=0;o<e.length;++o){const _=e[o];if(!_.da&&_.listener==r&&_.capture==!!i&&_.ha==s)return o}return-1}Ea.prototype.add=function(e,r,i,s,o){const _=e.toString();(e=this.g[_])||(e=this.g[_]=[],this.h++);const h=Fa(e,r,s,o);return h>-1?(r=e[h],i||(r.fa=!1)):((r=new wa(r,this.src,_,!!s,o)).fa=i,e.push(r)),r};var $="closure_lm_"+(1e6*Math.random()|0),ue={};function Ka(e,r,i,s,o){if(s&&s.once)return La(e,r,i,s,o);if(Array.isArray(r)){for(let _=0;_<r.length;_++)Ka(e,r[_],i,s,o);return null}return i=Ma(i),e&&e[b]?e.J(r,i,n(s)?!!s.capture:!!s,o):Na(e,r,i,!1,s,o)}function Na(e,r,i,s,o,_){if(!r)throw Error("Invalid event type");const h=n(o)?!!o.capture:!!o;let d=Oa(e);if(d||(e[$]=d=new Ea(e)),(i=d.add(r,i,s,h,_)).proxy)return i;if(s=function Pa(){function a(r){return e.call(a.src,a.listener,r)}const e=Ra;return a}(),i.proxy=s,s.src=e,s.listener=i,e.addEventListener)A||(o=h),void 0===o&&(o=!1),e.addEventListener(r.toString(),s,o);else if(e.attachEvent)e.attachEvent(Qa(r.toString()),s);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(s)}return i}function La(e,r,i,s,o){if(Array.isArray(r)){for(let _=0;_<r.length;_++)La(e,r[_],i,s,o);return null}return i=Ma(i),e&&e[b]?e.K(r,i,n(s)?!!s.capture:!!s,o):Na(e,r,i,!0,s,o)}function Sa(e,r,i,s,o){if(Array.isArray(r))for(var _=0;_<r.length;_++)Sa(e,r[_],i,s,o);else s=n(s)?!!s.capture:!!s,i=Ma(i),e&&e[b]?(e=e.i,(_=String(r).toString())in e.g&&((i=Fa(r=e.g[_],i,s,o))>-1&&(xa(r[i]),Array.prototype.splice.call(r,i,1),0==r.length&&(delete e.g[_],e.h--)))):e&&(e=Oa(e))&&(r=e.g[r.toString()],e=-1,r&&(e=Fa(r,i,s,o)),(i=e>-1?r[e]:null)&&Ta(i))}function Ta(e){if("number"!=typeof e&&e&&!e.da){var r=e.src;if(r&&r[b])Ga(r.i,e);else{var i=e.type,s=e.proxy;r.removeEventListener?r.removeEventListener(i,s,e.capture):r.detachEvent?r.detachEvent(Qa(i),s):r.addListener&&r.removeListener&&r.removeListener(s),(i=Oa(r))?(Ga(i,e),0==i.h&&(i.src=null,r[$]=null)):xa(e)}}}function Qa(e){return e in ue?ue[e]:ue[e]="on"+e}function Ra(e,r){if(e.da)e=!0;else{r=new z(r,this);const i=e.listener,s=e.ha||e.src;e.fa&&Ta(e),e=i.call(s,r)}return e}function Oa(e){return(e=e[$])instanceof Ea?e:null}var ce="__closure_events_fn_"+(1e9*Math.random()>>>0);function Ma(e){return"function"==typeof e?e:(e[ce]||(e[ce]=function(r){return e.handleEvent(r)}),e[ce])}function C(){w.call(this),this.i=new Ea(this),this.M=this,this.G=null}function D(e,r){var i,s=e.G;if(s)for(i=[];s;s=s.G)i.push(s);if(e=e.M,s=r.type||r,"string"==typeof r)r=new x(r,e);else if(r instanceof x)r.target=r.target||e;else{var o=r;Da(r=new x(s,e),o)}let _,h;if(o=!0,i)for(h=i.length-1;h>=0;h--)_=r.g=i[h],o=Va(_,s,!0,r)&&o;if(_=r.g=e,o=Va(_,s,!0,r)&&o,o=Va(_,s,!1,r)&&o,i)for(h=0;h<i.length;h++)_=r.g=i[h],o=Va(_,s,!1,r)&&o}function Va(e,r,i,s){if(!(r=e.i.g[String(r)]))return!0;r=r.concat();let o=!0;for(let _=0;_<r.length;++_){const h=r[_];if(h&&!h.da&&h.capture==i){const r=h.listener,i=h.ha||h.src;h.fa&&Ga(e.i,h),o=!1!==r.call(i,s)&&o}}return o&&!s.defaultPrevented}function Xa(e){e.g=function Wa(e,r){if("function"!=typeof e){if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=p(e.handleEvent,e)}return Number(r)>2147483647?-1:o.setTimeout(e,r||0)}((()=>{e.g=null,e.i&&(e.i=!1,Xa(e))}),e.l);const r=e.h;e.h=null,e.m.apply(null,r)}t(C,w),C.prototype[b]=!0,C.prototype.removeEventListener=function(e,r,i,s){Sa(this,e,r,i,s)},C.prototype.N=function(){if(C.Z.N.call(this),this.i){var e=this.i;for(const r in e.g){const i=e.g[r];for(let e=0;e<i.length;e++)xa(i[e]);delete e.g[r],e.h--}}this.G=null},C.prototype.J=function(e,r,i,s){return this.i.add(String(e),r,!1,i,s)},C.prototype.K=function(e,r,i,s){return this.i.add(String(e),r,!0,i,s)};class Ya extends w{constructor(e,r){super(),this.m=e,this.l=r,this.h=null,this.i=!1,this.g=null}j(e){this.h=arguments,this.g?this.i=!0:Xa(this)}N(){super.N(),this.g&&(o.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function E(e){w.call(this),this.h=e,this.g={}}t(E,w);var _e=[];function $a(e){ya(e.g,(function(e,r){this.g.hasOwnProperty(r)&&Ta(e)}),e),e.g={}}E.prototype.N=function(){E.Z.N.call(this),$a(this)},E.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var le=o.JSON.stringify,he=o.JSON.parse,de=class{stringify(e){return o.JSON.stringify(e,void 0)}parse(e){return o.JSON.parse(e,void 0)}};function eb(){}function fb(){}var me={OPEN:"a",hb:"b",ERROR:"c",tb:"d"};function gb(){x.call(this,"d")}function hb(){x.call(this,"c")}t(gb,x),t(hb,x);var fe={},pe=null;function jb(){return pe=pe||new C}function kb(e){x.call(this,fe.Ia,e)}function lb(e){const r=jb();D(r,new kb(r))}function mb(e,r){x.call(this,fe.STAT_EVENT,e),this.stat=r}function J(e){const r=jb();D(r,new mb(r,e))}function nb(e,r){x.call(this,fe.Ja,e),this.size=r}function ob(e,r){if("function"!=typeof e)throw Error("Fn must not be null and must be a function");return o.setTimeout((function(){e()}),r)}function pb(){this.g=!0}function K(e,r,i,s){e.info((function(){return"XMLHTTP TEXT ("+r+"): "+function sb(e,r){if(!e.g)return r;if(!r)return null;try{const _=JSON.parse(r);if(_)for(e=0;e<_.length;e++)if(Array.isArray(_[e])){var i=_[e];if(!(i.length<2)){var s=i[1];if(Array.isArray(s)&&!(s.length<1)){var o=s[0];if("noop"!=o&&"stop"!=o&&"close"!=o)for(let e=1;e<s.length;e++)s[e]=""}}}return le(_)}catch(e){return r}}(e,i)+(s?" "+s:"")}))}fe.Ia="serverreachability",t(kb,x),fe.STAT_EVENT="statevent",t(mb,x),fe.Ja="timingevent",t(nb,x),pb.prototype.ua=function(){this.g=!1},pb.prototype.info=function(){};var Ee,Te={NO_ERROR:0,cb:1,qb:2,pb:3,kb:4,ob:5,rb:6,Ga:7,TIMEOUT:8,ub:9},ge={ib:"complete",Fb:"success",ERROR:"error",Ga:"abort",xb:"ready",yb:"readystatechange",TIMEOUT:"timeout",sb:"incrementaldata",wb:"progress",lb:"downloadprogress",Nb:"uploadprogress"};function xb(){}function L(e){return encodeURIComponent(String(e))}function yb(e){var r=1;e=e.split(":");const i=[];for(;r>0&&e.length;)i.push(e.shift()),r--;return e.length&&i.push(e.join(":")),i}function N(e,r,i,s){this.j=e,this.i=r,this.l=i,this.S=s||1,this.V=new E(this),this.H=45e3,this.J=null,this.o=!1,this.u=this.B=this.A=this.M=this.F=this.T=this.D=null,this.G=[],this.g=null,this.C=0,this.m=this.v=null,this.X=-1,this.K=!1,this.P=0,this.O=null,this.W=this.L=this.U=this.R=!1,this.h=new zb}function zb(){this.i=null,this.g="",this.h=!1}t(xb,eb),xb.prototype.g=function(){return new XMLHttpRequest},Ee=new xb;var Ie={},Pe={};function Cb(e,r,i){e.M=1,e.A=Db(O(r)),e.u=i,e.R=!0,Eb(e,null)}function Eb(e,r){e.F=Date.now(),Fb(e),e.B=O(e.A);var i=e.B,s=e.S;Array.isArray(s)||(s=[String(s)]),Gb(i.i,"t",s),e.C=0,i=e.j.L,e.h=new zb,e.g=Hb(e.j,i?r:null,!e.u),e.P>0&&(e.O=new Ya(p(e.Y,e,e.g),e.P)),r=e.V,i=e.g,s=e.ba;var o="readystatechange";Array.isArray(o)||(o&&(_e[0]=o.toString()),o=_e);for(let e=0;e<o.length;e++){const _=Ka(i,o[e],s||r.handleEvent,!1,r.h||r);if(!_)break;r.g[_.key]=_}r=e.J?Ba(e.J):{},e.u?(e.v||(e.v="POST"),r["Content-Type"]="application/x-www-form-urlencoded",e.g.ea(e.B,e.v,e.u,r)):(e.v="GET",e.g.ea(e.B,e.v,null,r)),lb(),function qb(e,r,i,s,o,_){e.info((function(){if(e.g)if(_){var h="",d=_.split("&");for(let e=0;e<d.length;e++){var f=d[e].split("=");if(f.length>1){const e=f[0];f=f[1];const r=e.split("_");h=r.length>=2&&"type"==r[1]?h+(e+"=")+f+"&":h+(e+"=redacted&")}}}else h=null;else h=_;return"XMLHTTP REQ ("+s+") [attempt "+o+"]: "+r+"\n"+i+"\n"+h}))}(e.i,e.v,e.B,e.l,e.S,e.u)}function Ob(e){return!!e.g&&("GET"==e.v&&2!=e.M&&e.j.Aa)}function Nb(e,r){var i=e.C,s=r.indexOf("\n",i);return-1==s?Pe:(i=Number(r.substring(i,s)),isNaN(i)?Ie:(s+=1)+i>r.length?Pe:(r=r.slice(s,s+i),e.C=s+i,r))}function Fb(e){e.T=Date.now()+e.H,Sb(e,e.H)}function Sb(e,r){if(null!=e.D)throw Error("WatchDog timer not null");e.D=ob(p(e.aa,e),r)}function Jb(e){e.D&&(o.clearTimeout(e.D),e.D=null)}function Mb(e){0==e.j.I||e.K||Qb(e.j,e)}function Q(e){Jb(e);var r=e.O;r&&"function"==typeof r.dispose&&r.dispose(),e.O=null,$a(e.V),e.g&&(r=e.g,e.g=null,r.abort(),r.dispose())}function Lb(e,r){try{var i=e.j;if(0!=i.I&&(i.g==e||Tb(i.h,e)))if(!e.L&&Tb(i.h,e)&&3==i.I){try{var s=i.Ba.g.parse(r)}catch(e){s=null}if(Array.isArray(s)&&3==s.length){var o=s;if(0==o[0]){e:if(!i.v){if(i.g){if(!(i.g.F+3e3<e.F))break e;Ub(i),Vb(i)}Wb(i),J(18)}}else i.xa=o[1],0<i.xa-i.K&&o[2]<37500&&i.F&&0==i.A&&!i.C&&(i.C=ob(p(i.Va,i),6e3));Xb(i.h)<=1&&i.ta&&(i.ta=void 0)}else R(i,11)}else if((e.L||i.g==e)&&Ub(i),!y(r))for(o=i.Ba.g.parse(r),r=0;r<o.length;r++){let g=o[r];const A=g[0];if(!(A<=i.K))if(i.K=A,g=g[1],2==i.I)if("c"==g[0]){i.M=g[1],i.ba=g[2];const r=g[3];null!=r&&(i.ka=r,i.j.info("VER="+i.ka));const o=g[4];null!=o&&(i.za=o,i.j.info("SVER="+i.za));const A=g[5];null!=A&&"number"==typeof A&&A>0&&(s=1.5*A,i.O=s,i.j.info("backChannelRequestTimeoutMs_="+s)),s=i;const b=e.g;if(b){const e=b.g?b.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(e){var _=s.h;_.g||-1==e.indexOf("spdy")&&-1==e.indexOf("quic")&&-1==e.indexOf("h2")||(_.j=_.l,_.g=new Set,_.h&&(Yb(_,_.h),_.h=null))}if(s.G){const e=b.g?b.g.getResponseHeader("X-HTTP-Session-Id"):null;e&&(s.wa=e,S(s.J,s.G,e))}}i.I=3,i.l&&i.l.ra(),i.aa&&(i.T=Date.now()-e.F,i.j.info("Handshake RTT: "+i.T+"ms"));var h=e;if((s=i).na=Zb(s,s.L?s.ba:null,s.W),h.L){$b(s.h,h);var d=h,f=s.O;f&&(d.H=f),d.D&&(Jb(d),Fb(d)),s.g=h}else ac(s);i.i.length>0&&bc(i)}else"stop"!=g[0]&&"close"!=g[0]||R(i,7);else 3==i.I&&("stop"==g[0]||"close"==g[0]?"stop"==g[0]?R(i,7):cc(i):"noop"!=g[0]&&i.l&&i.l.qa(g),i.A=0)}lb()}catch(e){}}N.prototype.ba=function(e){e=e.target;const r=this.O;r&&3==P(e)?r.j():this.Y(e)},N.prototype.Y=function(e){try{if(e==this.g)e:{const f=P(this.g),g=this.g.ya();this.g.ca();if(!(f<3)&&(3!=f||this.g&&(this.h.h||this.g.la()||Ib(this.g)))){this.K||4!=f||7==g||lb(),Jb(this);var r=this.g.ca();this.X=r;var i=function Kb(e){if(!Ob(e))return e.g.la();const r=Ib(e.g);if(""===r)return"";let i="";const s=r.length,_=4==P(e.g);if(!e.h.i){if("undefined"==typeof TextDecoder)return Q(e),Mb(e),"";e.h.i=new o.TextDecoder}for(let o=0;o<s;o++)e.h.h=!0,i+=e.h.i.decode(r[o],{stream:!(_&&o==s-1)});return r.length=0,e.h.g+=i,e.C=0,e.h.g}(this);if(this.o=200==r,function rb(e,r,i,s,o,_,h){e.info((function(){return"XMLHTTP RESP ("+s+") [ attempt "+o+"]: "+r+"\n"+i+"\n"+_+" "+h}))}(this.i,this.v,this.B,this.l,this.S,f,r),this.o){if(this.U&&!this.L){t:{if(this.g){var s,_=this.g;if((s=_.g?_.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!y(s)){var h=s;break t}}h=null}if(!(e=h)){this.o=!1,this.m=3,J(12),Q(this),Mb(this);break e}K(this.i,this.l,e,"Initial handshake response via X-HTTP-Initial-Response"),this.L=!0,Lb(this,e)}if(this.R){let r;for(e=!0;!this.K&&this.C<i.length;){if(r=Nb(this,i),r==Pe){4==f&&(this.m=4,J(14),e=!1),K(this.i,this.l,null,"[Incomplete Response]");break}if(r==Ie){this.m=4,J(15),K(this.i,this.l,i,"[Invalid Chunk]"),e=!1;break}K(this.i,this.l,r,null),Lb(this,r)}if(Ob(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=f||0!=i.length||this.h.h||(this.m=1,J(16),e=!1),this.o=this.o&&e,e){if(i.length>0&&!this.W){this.W=!0;var d=this.j;d.g==this&&d.aa&&!d.P&&(d.j.info("Great, no buffering proxy detected. Bytes received: "+i.length),Pb(d),d.P=!0,J(11))}}else K(this.i,this.l,i,"[Invalid Chunked Response]"),Q(this),Mb(this)}else K(this.i,this.l,i,null),Lb(this,i);4==f&&Q(this),this.o&&!this.K&&(4==f?Qb(this.j,this):(this.o=!1,Fb(this)))}else(function Rb(e){const r={};e=(e.g&&P(e)>=2&&e.g.getAllResponseHeaders()||"").split("\r\n");for(let s=0;s<e.length;s++){if(y(e[s]))continue;var i=yb(e[s]);const o=i[0];if("string"!=typeof(i=i[1]))continue;i=i.trim();const _=r[o]||[];r[o]=_,_.push(i)}!function Aa(e,r){for(const i in e)r.call(void 0,e[i],i,e)}(r,(function(e){return e.join(", ")}))})(this.g),400==r&&i.indexOf("Unknown SID")>0?(this.m=3,J(12)):(this.m=0,J(13)),Q(this),Mb(this)}}}catch(e){}},N.prototype.cancel=function(){this.K=!0,Q(this)},N.prototype.aa=function(){this.D=null;const e=Date.now();e-this.T>=0?(function tb(e,r){e.info((function(){return"TIMEOUT: "+r}))}(this.i,this.B),2!=this.M&&(lb(),J(17)),Q(this),this.m=2,Mb(this)):Sb(this,this.T-e)};var Ae=class{constructor(e,r){this.g=e,this.map=r}};function ec(e){this.l=e||10,o.PerformanceNavigationTiming?e=(e=o.performance.getEntriesByType("navigation")).length>0&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):e=!!(o.chrome&&o.chrome.loadTimes&&o.chrome.loadTimes()&&o.chrome.loadTimes().wasFetchedViaSpdy),this.j=e?this.l:1,this.g=null,this.j>1&&(this.g=new Set),this.h=null,this.i=[]}function fc(e){return!!e.h||!!e.g&&e.g.size>=e.j}function Xb(e){return e.h?1:e.g?e.g.size:0}function Tb(e,r){return e.h?e.h==r:!!e.g&&e.g.has(r)}function Yb(e,r){e.g?e.g.add(r):e.h=r}function $b(e,r){e.h&&e.h==r?e.h=null:e.g&&e.g.has(r)&&e.g.delete(r)}function hc(e){if(null!=e.h)return e.i.concat(e.h.G);if(null!=e.g&&0!==e.g.size){let r=e.i;for(const i of e.g.values())r=r.concat(i.G);return r}return ja(e.i)}ec.prototype.cancel=function(){if(this.i=hc(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(const e of this.g.values())e.cancel();this.g.clear()}};var Re=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function T(e){let r;this.g=this.o=this.j="",this.u=null,this.m=this.h="",this.l=!1,e instanceof T?(this.l=e.l,kc(this,e.j),this.o=e.o,this.g=e.g,lc(this,e.u),this.h=e.h,mc(this,nc(e.i)),this.m=e.m):e&&(r=String(e).match(Re))?(this.l=!1,kc(this,r[1]||"",!0),this.o=oc(r[2]||""),this.g=oc(r[3]||"",!0),lc(this,r[4]),this.h=oc(r[5]||"",!0),mc(this,r[6]||"",!0),this.m=oc(r[7]||"")):(this.l=!1,this.i=new pc(null,this.l))}function O(e){return new T(e)}function kc(e,r,i){e.j=i?oc(r,!0):r,e.j&&(e.j=e.j.replace(/:$/,""))}function lc(e,r){if(r){if(r=Number(r),isNaN(r)||r<0)throw Error("Bad port number "+r);e.u=r}else e.u=null}function mc(e,r,i){r instanceof pc?(e.i=r,function vc(e,r){r&&!e.j&&(U(e),e.i=null,e.g.forEach((function(e,r){const i=r.toLowerCase();r!=i&&(yc(this,r),Gb(this,i,e))}),e)),e.j=r}(e.i,e.l)):(i||(r=qc(r,Se)),e.i=new pc(r,e.l))}function S(e,r,i){e.i.set(r,i)}function Db(e){return S(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),e}function oc(e,r){return e?r?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function qc(e,r,i){return"string"==typeof e?(e=encodeURI(e).replace(r,xc),i&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function xc(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}T.prototype.toString=function(){const e=[];var r=this.j;r&&e.push(qc(r,Ve,!0),":");var i=this.g;return(i||"file"==r)&&(e.push("//"),(r=this.o)&&e.push(qc(r,Ve,!0),"@"),e.push(L(i).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(i=this.u)&&e.push(":",String(i))),(i=this.h)&&(this.g&&"/"!=i.charAt(0)&&e.push("/"),e.push(qc(i,"/"==i.charAt(0)?be:ye,!0))),(i=this.i.toString())&&e.push("?",i),(i=this.m)&&e.push("#",qc(i,we)),e.join("")},T.prototype.resolve=function(e){const r=O(this);let i=!!e.j;i?kc(r,e.j):i=!!e.o,i?r.o=e.o:i=!!e.g,i?r.g=e.g:i=null!=e.u;var s=e.h;if(i)lc(r,e.u);else if(i=!!e.h){if("/"!=s.charAt(0))if(this.g&&!this.h)s="/"+s;else{var o=r.h.lastIndexOf("/");-1!=o&&(s=r.h.slice(0,o+1)+s)}if(".."==(o=s)||"."==o)s="";else if(-1!=o.indexOf("./")||-1!=o.indexOf("/.")){s=0==o.lastIndexOf("/",0),o=o.split("/");const e=[];for(let r=0;r<o.length;){const i=o[r++];"."==i?s&&r==o.length&&e.push(""):".."==i?((e.length>1||1==e.length&&""!=e[0])&&e.pop(),s&&r==o.length&&e.push("")):(e.push(i),s=!0)}s=e.join("/")}else s=o}return i?r.h=s:i=""!==e.i.toString(),i?mc(r,nc(e.i)):i=!!e.m,i&&(r.m=e.m),r};var Ve=/[#\/\?@]/g,ye=/[#\?:]/g,be=/[#\?]/g,Se=/[#\?@]/g,we=/#/g;function pc(e,r){this.h=this.g=null,this.i=e||null,this.j=!!r}function U(e){e.g||(e.g=new Map,e.h=0,e.i&&function jc(e,r){if(e){e=e.split("&");for(let i=0;i<e.length;i++){const s=e[i].indexOf("=");let o,_=null;s>=0?(o=e[i].substring(0,s),_=e[i].substring(s+1)):o=e[i],r(o,_?decodeURIComponent(_.replace(/\+/g," ")):"")}}}(e.i,(function(r,i){e.add(decodeURIComponent(r.replace(/\+/g," ")),i)})))}function yc(e,r){U(e),r=V(e,r),e.g.has(r)&&(e.i=null,e.h-=e.g.get(r).length,e.g.delete(r))}function zc(e,r){return U(e),r=V(e,r),e.g.has(r)}function Ac(e,r){U(e);let i=[];if("string"==typeof r)zc(e,r)&&(i=i.concat(e.g.get(V(e,r))));else for(e=Array.from(e.g.values()),r=0;r<e.length;r++)i=i.concat(e[r]);return i}function Gb(e,r,i){yc(e,r),i.length>0&&(e.i=null,e.g.set(V(e,r),ja(i)),e.h+=i.length)}function nc(e){const r=new pc;return r.i=e.i,e.g&&(r.g=new Map(e.g),r.h=e.h),r}function V(e,r){return r=String(r),e.j&&(r=r.toLowerCase()),r}function W(e,r,i,s,o){try{o&&(o.onload=null,o.onerror=null,o.onabort=null,o.ontimeout=null),s(i)}catch(e){}}function Dc(){this.g=new de}function Ec(e){this.i=e.Sb||null,this.h=e.ab||!1}function Fc(e,r){C.call(this),this.H=e,this.o=r,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.A=new Headers,this.h=null,this.F="GET",this.D="",this.g=!1,this.B=this.j=this.l=null,this.v=new AbortController}function Ic(e){e.j.read().then(e.Ma.bind(e)).catch(e.ga.bind(e))}function Hc(e){e.readyState=4,e.l=null,e.j=null,e.B=null,Gc(e)}function Gc(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function Jc(e){let r="";return ya(e,(function(e,i){r+=i,r+=":",r+=e,r+="\r\n"})),r}function Kc(e,r,i){e:{for(s in i){var s=!1;break e}s=!0}s||(i=Jc(i),"string"==typeof e?null!=i&&L(i):S(e,r,i))}function X(e){C.call(this),this.headers=new Map,this.L=e||null,this.h=!1,this.g=null,this.D="",this.o=0,this.l="",this.j=this.B=this.v=this.A=!1,this.m=null,this.F="",this.H=!1}(e=pc.prototype).add=function(e,r){U(this),this.i=null,e=V(this,e);let i=this.g.get(e);return i||this.g.set(e,i=[]),i.push(r),this.h+=1,this},e.forEach=function(e,r){U(this),this.g.forEach((function(i,s){i.forEach((function(i){e.call(r,i,s,this)}),this)}),this)},e.set=function(e,r){return U(this),this.i=null,zc(this,e=V(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[r]),this.h+=1,this},e.get=function(e,r){return e&&(e=Ac(this,e)).length>0?String(e[0]):r},e.toString=function(){if(this.i)return this.i;if(!this.g)return"";const e=[],r=Array.from(this.g.keys());for(let s=0;s<r.length;s++){var i=r[s];const o=L(i);i=Ac(this,i);for(let r=0;r<i.length;r++){let s=o;""!==i[r]&&(s+="="+L(i[r])),e.push(s)}}return this.i=e.join("&")},t(Ec,eb),Ec.prototype.g=function(){return new Fc(this.i,this.h)},t(Fc,C),(e=Fc.prototype).open=function(e,r){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.F=e,this.D=r,this.readyState=1,Gc(this)},e.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");if(this.v.signal.aborted)throw this.abort(),Error("Request was aborted.");this.g=!0;const r={headers:this.A,method:this.F,credentials:this.m,cache:void 0,signal:this.v.signal};e&&(r.body=e),(this.H||o).fetch(new Request(this.D,r)).then(this.Pa.bind(this),this.ga.bind(this))},e.abort=function(){this.response=this.responseText="",this.A=new Headers,this.status=0,this.v.abort(),this.j&&this.j.cancel("Request was aborted.").catch((()=>{})),this.readyState>=1&&this.g&&4!=this.readyState&&(this.g=!1,Hc(this)),this.readyState=0},e.Pa=function(e){if(this.g&&(this.l=e,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=e.headers,this.readyState=2,Gc(this)),this.g&&(this.readyState=3,Gc(this),this.g)))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Na.bind(this),this.ga.bind(this));else if(void 0!==o.ReadableStream&&"body"in e){if(this.j=e.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.B=new TextDecoder;Ic(this)}else e.text().then(this.Oa.bind(this),this.ga.bind(this))},e.Ma=function(e){if(this.g){if(this.o&&e.value)this.response.push(e.value);else if(!this.o){var r=e.value?e.value:new Uint8Array(0);(r=this.B.decode(r,{stream:!e.done}))&&(this.response=this.responseText+=r)}e.done?Hc(this):Gc(this),3==this.readyState&&Ic(this)}},e.Oa=function(e){this.g&&(this.response=this.responseText=e,Hc(this))},e.Na=function(e){this.g&&(this.response=e,Hc(this))},e.ga=function(){this.g&&Hc(this)},e.setRequestHeader=function(e,r){this.A.append(e,r)},e.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},e.getAllResponseHeaders=function(){if(!this.h)return"";const e=[],r=this.h.entries();for(var i=r.next();!i.done;)i=i.value,e.push(i[0]+": "+i[1]),i=r.next();return e.join("\r\n")},Object.defineProperty(Fc.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}}),t(X,C);var ve=/^https?$/i,De=["POST","PUT"];function Nc(e,r){e.h=!1,e.g&&(e.j=!0,e.g.abort(),e.j=!1),e.l=r,e.o=5,Oc(e),Pc(e)}function Oc(e){e.A||(e.A=!0,D(e,"complete"),D(e,"error"))}function Qc(e){if(e.h&&void 0!==s)if(e.v&&4==P(e))setTimeout(e.Ca.bind(e),0);else if(D(e,"readystatechange"),4==P(e)){e.h=!1;try{const s=e.ca();e:switch(s){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break e;default:r=!1}var i;if(!(i=r)){var _;if(_=0===s){let r=String(e.D).match(Re)[1]||null;!r&&o.self&&o.self.location&&(r=o.self.location.protocol.slice(0,-1)),_=!ve.test(r?r.toLowerCase():"")}i=_}if(i)D(e,"complete"),D(e,"success");else{e.o=6;try{var h=P(e)>2?e.g.statusText:""}catch(e){h=""}e.l=h+" ["+e.ca()+"]",Oc(e)}}finally{Pc(e)}}}function Pc(e,r){if(e.g){e.m&&(clearTimeout(e.m),e.m=null);const i=e.g;e.g=null,r||D(e,"ready");try{i.onreadystatechange=null}catch(e){}}}function P(e){return e.g?e.g.readyState:0}function Ib(e){try{if(!e.g)return null;if("response"in e.g)return e.g.response;switch(e.F){case"":case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}return null}catch(e){return null}}function Rc(e,r,i){return i&&i.internalChannelParams&&i.internalChannelParams[e]||r}function Sc(e){this.za=0,this.i=[],this.j=new pb,this.ba=this.na=this.J=this.W=this.g=this.wa=this.G=this.H=this.u=this.U=this.o=null,this.Ya=this.V=0,this.Sa=Rc("failFast",!1,e),this.F=this.C=this.v=this.m=this.l=null,this.X=!0,this.xa=this.K=-1,this.Y=this.A=this.D=0,this.Qa=Rc("baseRetryDelayMs",5e3,e),this.Za=Rc("retryDelaySeedMs",1e4,e),this.Ta=Rc("forwardChannelMaxRetries",2,e),this.va=Rc("forwardChannelRequestTimeoutMs",2e4,e),this.ma=e&&e.xmlHttpFactory||void 0,this.Ua=e&&e.Rb||void 0,this.Aa=e&&e.useFetchStreams||!1,this.O=void 0,this.L=e&&e.supportsCrossDomainXhr||!1,this.M="",this.h=new ec(e&&e.concurrentRequestLimit),this.Ba=new Dc,this.S=e&&e.fastHandshake||!1,this.R=e&&e.encodeInitMessageHeaders||!1,this.S&&this.R&&(this.R=!1),this.Ra=e&&e.Pb||!1,e&&e.ua&&this.j.ua(),e&&e.forceLongPolling&&(this.X=!1),this.aa=!this.S&&this.X&&e&&e.detectBufferingProxy||!1,this.ia=void 0,e&&e.longPollingTimeout&&e.longPollingTimeout>0&&(this.ia=e.longPollingTimeout),this.ta=void 0,this.T=0,this.P=!1,this.ja=this.B=null}function cc(e){if(Tc(e),3==e.I){var r=e.V++,i=O(e.J);if(S(i,"SID",e.M),S(i,"RID",r),S(i,"TYPE","terminate"),Uc(e,i),(r=new N(e,e.j,r)).M=2,r.A=Db(O(i)),i=!1,o.navigator&&o.navigator.sendBeacon)try{i=o.navigator.sendBeacon(r.A.toString(),"")}catch(e){}!i&&o.Image&&((new Image).src=r.A,i=!0),i||(r.g=Hb(r.j,null),r.g.ea(r.A)),r.F=Date.now(),Fb(r)}Vc(e)}function Vb(e){e.g&&(Pb(e),e.g.cancel(),e.g=null)}function Tc(e){Vb(e),e.v&&(o.clearTimeout(e.v),e.v=null),Ub(e),e.h.cancel(),e.m&&("number"==typeof e.m&&o.clearTimeout(e.m),e.m=null)}function bc(e){if(!fc(e.h)&&!e.m){e.m=!0;var r=e.Ea;d||ta(),f||(d(),f=!0),g.add(r,e),e.D=0}}function Zc(e,r){var i;i=r?r.l:e.V++;const s=O(e.J);S(s,"SID",e.M),S(s,"RID",i),S(s,"AID",e.K),Uc(e,s),e.u&&e.o&&Kc(s,e.u,e.o),i=new N(e,e.j,i,e.D+1),null===e.u&&(i.J=e.o),r&&(e.i=r.G.concat(e.i)),r=Yc(e,i,1e3),i.H=Math.round(.5*e.va)+Math.round(.5*e.va*Math.random()),Yb(e.h,i),Cb(i,s,r)}function Uc(e,r){e.H&&ya(e.H,(function(e,i){S(r,i,e)})),e.l&&ya({},(function(e,i){S(r,i,e)}))}function Yc(e,r,i){i=Math.min(e.i.length,i);const s=e.l?p(e.l.Ka,e.l,e):null;e:{var o=e.i;let r=-1;for(;;){const e=["count="+i];-1==r?i>0?(r=o[0].g,e.push("ofs="+r)):r=0:e.push("ofs="+r);let d=!0;for(let f=0;f<i;f++){var _=o[f].g;const i=o[f].map;if((_-=r)<0)r=Math.max(0,o[f].g-100),d=!1;else try{_="req"+_+"_"||"";try{var h=i instanceof Map?i:Object.entries(i);for(const[r,i]of h){let s=i;n(i)&&(s=le(i)),e.push(_+r+"="+encodeURIComponent(s))}}catch(r){throw e.push(_+"type="+encodeURIComponent("_badmap")),r}}catch(e){s&&s(i)}}if(d){h=e.join("&");break e}}h=void 0}return e=e.i.splice(0,i),r.G=e,h}function ac(e){if(!e.g&&!e.v){e.Y=1;var r=e.Da;d||ta(),f||(d(),f=!0),g.add(r,e),e.A=0}}function Wb(e){return!(e.g||e.v||e.A>=3)&&(e.Y++,e.v=ob(p(e.Da,e),Xc(e,e.A)),e.A++,!0)}function Pb(e){null!=e.B&&(o.clearTimeout(e.B),e.B=null)}function $c(e){e.g=new N(e,e.j,"rpc",e.Y),null===e.u&&(e.g.J=e.o),e.g.P=0;var r=O(e.na);S(r,"RID","rpc"),S(r,"SID",e.M),S(r,"AID",e.K),S(r,"CI",e.F?"0":"1"),!e.F&&e.ia&&S(r,"TO",e.ia),S(r,"TYPE","xmlhttp"),Uc(e,r),e.u&&e.o&&Kc(r,e.u,e.o),e.O&&(e.g.H=e.O);var i=e.g;e=e.ba,i.M=1,i.A=Db(O(r)),i.u=null,i.R=!0,Eb(i,e)}function Ub(e){null!=e.C&&(o.clearTimeout(e.C),e.C=null)}function Qb(e,r){var i=null;if(e.g==r){Ub(e),Pb(e),e.g=null;var s=2}else{if(!Tb(e.h,r))return;i=r.G,$b(e.h,r),s=1}if(0!=e.I)if(r.o)if(1==s){i=r.u?r.u.length:0,r=Date.now()-r.F;var o=e.D;D(s=jb(),new nb(s,i)),bc(e)}else ac(e);else if(3==(o=r.m)||0==o&&r.X>0||!(1==s&&function Wc(e,r){return!(Xb(e.h)>=e.h.j-(e.m?1:0)||(e.m?(e.i=r.G.concat(e.i),0):1==e.I||2==e.I||e.D>=(e.Sa?0:e.Ta)||(e.m=ob(p(e.Ea,e,r),Xc(e,e.D)),e.D++,