1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2114],{3510:function(t,e,n){n.d(e,{FJ:function(){return nT},JJ:function(){return nS},UE:function(){return nb},ii:function(){return nO},jK:function(){return nw},ju:function(){return nR},kN:function(){return nk},tw:function(){return nE},zI:function(){return nC}});var i,r,s,o,a,h,l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},u={},c=c||{},f=l||self;function p(){}function d(t){var e=typeof t;return"array"==(e="object"!=e?e:t?Array.isArray(t)?"array":e:"null")||"object"==e&&"number"==typeof t.length}function g(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}function m(t,e,n){return t.call.apply(t.bind,arguments)}function _(t,e,n){if(!t)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,i),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function y(t,e,n){return(y=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?m:_).apply(null,arguments)}function v(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}function b(t,e){function n(){}n.prototype=e.prototype,t.X=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.Wb=function(t,n,i){for(var r=Array(arguments.length-2),s=2;s<arguments.length;s++)r[s-2]=arguments[s];return e.prototype[n].apply(t,r)}}function T(){this.s=this.s,this.o=this.o}T.prototype.s=!1,T.prototype.na=function(){this.s||(this.s=!0,this.M())},T.prototype.M=function(){if(this.o)for(;this.o.length;)this.o.shift()()};let w=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if("string"==typeof t)return"string"!=typeof e||1!=e.length?-1:t.indexOf(e,0);for(let n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return -1};function E(t){let e=t.length;if(0<e){let n=Array(e);for(let i=0;i<e;i++)n[i]=t[i];return n}return[]}function R(t,e){for(let e=1;e<arguments.length;e++){let n=arguments[e];if(d(n)){let e=t.length||0,i=n.length||0;t.length=e+i;for(let r=0;r<i;r++)t[e+r]=n[r]}else t.push(n)}}function k(t,e){this.type=t,this.g=this.target=e,this.defaultPrevented=!1}k.prototype.h=function(){this.defaultPrevented=!0};var C=function(){if(!f.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{f.addEventListener("test",p,e),f.removeEventListener("test",p,e)}catch(t){}return t}();function O(t){return/^[\s\xa0]*$/.test(t)}var S=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]};function A(t,e){return t<e?-1:t>e?1:0}function I(){var t=f.navigator;return t&&(t=t.userAgent)?t:""}function x(t){return -1!=I().indexOf(t)}function U(t){return U[" "](t),t}U[" "]=p;var P=x("Opera"),N=x("Trident")||x("MSIE"),D=x("Edge"),L=D||N,j=x("Gecko")&&!(-1!=I().toLowerCase().indexOf("webkit")&&!x("Edge"))&&!(x("Trident")||x("MSIE"))&&!x("Edge"),M=-1!=I().toLowerCase().indexOf("webkit")&&!x("Edge");function B(){var t=f.document;return t?t.documentMode:void 0}t:{var H,F="",X=(H=I(),j?/rv:([^\);]+)(\)|;)/.exec(H):D?/Edge\/([\d\.]+)/.exec(H):N?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(H):M?/WebKit\/(\S+)/.exec(H):P?/(?:Version)[ \/]?(\S+)/.exec(H):void 0);if(X&&(F=X?X[1]:""),N){var q=B();if(null!=q&&q>parseFloat(F)){r=String(q);break t}}r=F}var $={},K=f.document&&N&&(B()||parseInt(r,10))||void 0;function G(t,e){if(k.call(this,t?t.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,t){var n=this.type=t.type,i=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.g=e,e=t.relatedTarget){if(j){t:{try{U(e.nodeName);var r=!0;break t}catch(t){}r=!1}r||(e=null)}}
1else"mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement);this.relatedTarget=e,i?(this.clientX=void 0!==i.clientX?i.clientX:i.pageX,this.clientY=void 0!==i.clientY?i.clientY:i.pageY,this.screenX=i.screenX||0,this.screenY=i.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType="string"==typeof t.pointerType?t.pointerType:z[t.pointerType]||"",this.state=t.state,this.i=t,t.defaultPrevented&&G.X.h.call(this)}}b(G,k);var z={2:"touch",3:"pen",4:"mouse"};G.prototype.h=function(){G.X.h.call(this);var t=this.i;t.preventDefault?t.preventDefault():t.returnValue=!1};var V="closure_listenable_"+(1e6*Math.random()|0),J=0;function W(t,e,n,i,r){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!i,this.ha=r,this.key=++J,this.ba=this.ea=!1}function Y(t){t.ba=!0,t.listener=null,t.proxy=null,t.src=null,t.ha=null}function Z(t,e,n){for(let i in t)e.call(n,t[i],i,t)}function Q(t){let e={};for(let n in t)e[n]=t[n];return e}let tt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function te(t,e){let n,i;for(let e=1;e<arguments.length;e++){for(n in i=arguments[e])t[n]=i[n];for(let e=0;e<tt.length;e++)n=tt[e],Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}}function tn(t){this.src=t,this.g={},this.h=0}function ti(t,e){var n=e.type;if(n in t.g){var i,r=t.g[n],s=w(r,e);(i=0<=s)&&Array.prototype.splice.call(r,s,1),i&&(Y(e),0==t.g[n].length&&(delete t.g[n],t.h--))}}function tr(t,e,n,i){for(var r=0;r<t.length;++r){var s=t[r];if(!s.ba&&s.listener==e&&!!n==s.capture&&s.ha==i)return r}return -1}tn.prototype.add=function(t,e,n,i,r){var s=t.toString();(t=this.g[s])||(t=this.g[s]=[],this.h++);var o=tr(t,e,i,r);return -1<o?(e=t[o],n||(e.ea=!1)):((e=new W(e,this.src,s,!!i,r)).ea=n,t.push(e)),e};var ts="closure_lm_"+(1e6*Math.random()|0),to={};function ta(t,e,n,i,r,s){if(!e)throw Error("Invalid event type");var o=g(r)?!!r.capture:!!r,a=tc(t);if(a||(t[ts]=a=new tn(t)),(n=a.add(e,n,i,o,s)).proxy)return n;if(i=function t(e){return tu.call(t.src,t.listener,e)},n.proxy=i,i.src=t,i.listener=n,t.addEventListener)C||(r=o),void 0===r&&(r=!1),t.addEventListener(e.toString(),i,r);else if(t.attachEvent)t.attachEvent(tl(e.toString()),i);else if(t.addListener&&t.removeListener)t.addListener(i);else throw Error("addEventListener and attachEvent are unavailable.");return n}function th(t){if("number"!=typeof t&&t&&!t.ba){var e=t.src;if(e&&e[V])ti(e.i,t);else{var n=t.type,i=t.proxy;e.removeEventListener?e.removeEventListener(n,i,t.capture):e.detachEvent?e.detachEvent(tl(n),i):e.addListener&&e.removeListener&&e.removeListener(i),(n=tc(e))?(ti(n,t),0==n.h&&(n.src=null,e[ts]=null)):Y(t)}}}function tl(t){return t in to?to[t]:to[t]="on"+t}function tu(t,e){if(t.ba)t=!0;else{e=new G(e,this);var n=t.listener,i=t.ha||t.src;t.ea&&th(t),t=n.call(i,e)}return t}function tc(t){return(t=t[ts])instanceof tn?t:null}var tf="__closure_events_fn_"+(1e9*Math.random()>>>0);function tp(t){return"function"==typeof t?t:(t[tf]||(t[tf]=function(e){return t.handleEvent(e)}),t[tf])}function td(){T.call(this),this.i=new tn(this),this.P=this,this.I=null}function tg(t,e){var n,i=t.I;if(i)for(n=[];i;i=i.I)n.push(i);if(t=t.P,i=e.type||e,"string"==typeof e)e=new k(e,t);else if(e instanceof k)e.target=e.target||t;else{var r=e;te(e=new k(i,t),r)}if(r=!0,n)for(var s=n.length-1;0<=s;s--){var o=e.g=n[s];r=tm(o,i,!0,e)&&r}if(r=tm(o=e.g=t,i,!0,e)&&r,r=tm(o,i,!1,e)&&r,n)for(s=0;s<n.length;s++)r=tm(o=e.g=n[s],i,!1,e)&&r}function tm(t,e,n,i){if(!(e=t.i.g[String(e)]))return!0;e=e.concat();for(var r=!0,s=0;s<e.length;++s){var o=e[s];if(o&&!o.ba&&o.capture==n){var a=o.listener,h=o.ha||o.src;o.ea&&ti(t.i,o),r=!1!==a.call(h,i)&&r}}return r&&!i.defaultPrevented}b(td,T),td.prototype[V]=!0,td.prototype.removeEventListener=function(t,e,n,i){!function t(e,n,i,r,s){if(Array.isArray(n))for(var o=0;o<n.length;o++)t(e,n[o],i,r,s);else(r=g(r)?!!r.capture:!!r,i=tp(i),e&&e[V])?(e=e.i,(n=String(n).toString())in e.g&&-1<(i=tr(o=e.g[n],i,r,s))&&
1(Y(o[i]),Array.prototype.splice.call(o,i,1),0==o.length&&(delete e.g[n],e.h--))):e&&(e=tc(e))&&(n=e.g[n.toString()],e=-1,n&&(e=tr(n,i,r,s)),(i=-1<e?n[e]:null)&&th(i))}(this,t,e,n,i)},td.prototype.M=function(){if(td.X.M.call(this),this.i){var t,e=this.i;for(t in e.g){for(var n=e.g[t],i=0;i<n.length;i++)Y(n[i]);delete e.g[t],e.h--}}this.I=null},td.prototype.N=function(t,e,n,i){return this.i.add(String(t),e,!1,n,i)},td.prototype.O=function(t,e,n,i){return this.i.add(String(t),e,!0,n,i)};var t_=f.JSON.stringify,ty=new class{constructor(t,e){this.i=t,this.j=e,this.h=0,this.g=null}get(){let t;return 0<this.h?(this.h--,t=this.g,this.g=t.next,t.next=null):t=this.i(),t}}(()=>new tv,t=>t.reset());class tv{constructor(){this.next=this.g=this.h=null}set(t,e){this.h=t,this.g=e,this.next=null}reset(){this.next=this.g=this.h=null}}function tb(t,e){var n;o||(n=f.Promise.resolve(void 0),o=function(){n.then(tE)}),tT||(o(),tT=!0),tw.add(t,e)}var tT=!1,tw=new class{constructor(){this.h=this.g=null}add(t,e){let n=ty.get();n.set(t,e),this.h?this.h.next=n:this.g=n,this.h=n}};function tE(){let t;for(var e;t=null,tw.g&&(t=tw.g,tw.g=tw.g.next,tw.g||(tw.h=null),t.next=null),e=t;){try{e.h.call(e.g)}catch(t){!function(t){f.setTimeout(()=>{throw t},0)}(t)}ty.j(e),100>ty.h&&(ty.h++,e.next=ty.g,ty.g=e)}tT=!1}function tR(t,e){td.call(this),this.h=t||1,this.g=e||f,this.j=y(this.lb,this),this.l=Date.now()}function tk(t){t.ca=!1,t.R&&(t.g.clearTimeout(t.R),t.R=null)}function tC(t,e,n){if("function"==typeof t)n&&(t=y(t,n));else if(t&&"function"==typeof t.handleEvent)t=y(t.handleEvent,t);else throw Error("Invalid listener argument");return 2147483647<Number(e)?-1:f.setTimeout(t,e||0)}b(tR,td),(h=tR.prototype).ca=!1,h.R=null,h.lb=function(){if(this.ca){var t=Date.now()-this.l;0<t&&t<.8*this.h?this.R=this.g.setTimeout(this.j,this.h-t):(this.R&&(this.g.clearTimeout(this.R),this.R=null),tg(this,"tick"),this.ca&&(tk(this),this.start()))}},h.start=function(){this.ca=!0,this.R||(this.R=this.g.setTimeout(this.j,this.h),this.l=Date.now())},h.M=function(){tR.X.M.call(this),tk(this),delete this.g};class tO extends T{constructor(t,e){super(),this.m=t,this.j=e,this.h=null,this.i=!1,this.g=null}l(t){this.h=arguments,this.g?this.i=!0:function t(e){e.g=tC(()=>{e.g=null,e.i&&(e.i=!1,t(e))},e.j);let n=e.h;e.h=null,e.m.apply(null,n)}(this)}M(){super.M(),this.g&&(f.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function tS(t){T.call(this),this.h=t,this.g={}}b(tS,T);var tA=[];function tI(t,e,n,i){Array.isArray(n)||(n&&(tA[0]=n.toString()),n=tA);for(var r=0;r<n.length;r++){var s=function t(e,n,i,r,s){if(r&&r.once)return function t(e,n,i,r,s){if(Array.isArray(n)){for(var o=0;o<n.length;o++)t(e,n[o],i,r,s);return null}return i=tp(i),e&&e[V]?e.O(n,i,g(r)?!!r.capture:!!r,s):ta(e,n,i,!0,r,s)}(e,n,i,r,s);if(Array.isArray(n)){for(var o=0;o<n.length;o++)t(e,n[o],i,r,s);return null}return i=tp(i),e&&e[V]?e.N(n,i,g(r)?!!r.capture:!!r,s):ta(e,n,i,!1,r,s)}(e,n[r],i||t.handleEvent,!1,t.h||t);if(!s)break;t.g[s.key]=s}}function tx(t){Z(t.g,function(t,e){this.g.hasOwnProperty(e)&&th(t)},t),t.g={}}function tU(){this.g=!0}function tP(t,e,n,i){t.info(function(){return"XMLHTTP TEXT ("+e+"): "+function(t,e){if(!t.g)return e;if(!e)return null;try{var n=JSON.parse(e);if(n){for(t=0;t<n.length;t++)if(Array.isArray(n[t])){var i=n[t];if(!(2>i.length)){var r=i[1];if(Array.isArray(r)&&!(1>r.length)){var s=r[0];if("noop"!=s&&"stop"!=s&&"close"!=s)for(var o=1;o<r.length;o++)r[o]=""}}}}return t_(n)}catch(t){return e}}(t,n)+(i?" "+i:"")})}tS.prototype.M=function(){tS.X.M.call(this),tx(this)},tS.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},tU.prototype.Aa=function(){this.g=!1},tU.prototype.info=function(){};var tN={},tD=null;function tL(){return tD=tD||new td}function tj(t){k.call(this,tN.Pa,t)}function tM(t){let e=tL();tg(e,new tj(e))}function tB(t,e){k.call(this,tN.STAT_EVENT,t),this.stat=e}function tH(t){let e=tL();tg(e,new tB(e,t))}function tF(t,e){k.call(this,tN.Qa,t),this.size=e}function tX(t,e){if("function"!=typeof t)throw Error("Fn must not be null and must be a function");return f.setTimeout(function(){t()},e)}tN.Pa="serverreachability",b(tj,k),tN.STAT_EVENT="statevent",b(tB,k),tN.Qa="timingevent",b(tF,k);var tq={NO_ERROR:0,mb:1,zb:2,yb:3,tb:4,xb:5,Ab:6,Ma:7,TIMEOUT:8,Db:9},t$={rb:"complete",Nb:"success",Na:"error",Ma:"abort",Fb:"ready",Gb:"readystatechange",TIMEOUT:"timeout",Bb:"incrementaldata",Eb:"progress",ub:"downloadprogress",Vb:"uploadprogress"};function tK(){}function tG(t){return t.h||(t.h=t.i())}function tz(){}tK.prototype.h=null;var tV={OPEN:"a",qb:"b",Na:"c",Cb:"d"};function tJ(){k.call(this,"d")}function tW(){k.call(this,"c")}function tY(){}function tZ(t,e,n,i){this.l=t,this.j=e,this.m=n,this.U=i||1,this.S=new tS(this),this.O=t0,t=L?125:void 0,this.T=new tR(t),this.H=null,this.i=!1,this.s=this.A=this.v=this.K=this.F=this.V=this.B=null,this.D=[],this.g=null,this.C=0,this.o=this.u=null,this.Y=-1,this.I=!1,this.N=0,this.L=null,this.$=this.J=this.Z=this.P=!1,this.h=new tQ}function tQ(){this.i=null,this.g="",this.h=!1}b(tJ,k),b(tW,k),b(tY,tK),tY.prototype.g=function(){return new XMLHttpRequest},tY.prototype.i=function(){return{}},a=new tY;var t0=45e3,t1={},t2={};function t4(t,e,n){t.K=1,t.v=ec(eo(e)),t.s=n,t.P=!0,t3(t,null)}function t3(t,e){t.F=Date.now(),t5(t),t.A=eo(t.v);var n=t.A,i=t.U;Array.isArray(i)||(i=[String(i)]),eR(n.i,"t",i),t.C=0,n=t.l.H,t.h=new tQ,t.g=np(t.l,n?e:null,!t.s),0<t.N&&(t.L=new tO(y(t.La,t,t.g),t.N)),tI(t.S,t.g,"readystatechange",t.ib),e=t.H?Q(t.H):{},t.s?(t.u||(t.u="POST"),e["Content-Type"]="application/x-www-form-urlencoded",t.g.da(t.A,t.u,t.s,e)):(t.u="GET",t.g.da(t.A,t.u,null,e)),tM(),function(t,e,n,i,r,s){t.info(function(){if(t.g){if(s)for(var o="",a=s.split("&"),h=0;h<a.length;h++){var l=a[h].split("=");if(1<l.length){var u=l[0];l=l[1];var c=u.split("_");o=2<=c.length&&"type"==c[1]?o+(u+"=")+l+"&":o+(u+"=redacted&")}}else o=null}else o=s;return"XMLHTTP REQ ("+i+") [attempt "+r+"]: "+e+"\n"+n+"\n"+o})}(t.j,t.u,t.A,t.m,t.U,t.s)}function t6(t){return!!t.g&&"GET"==t.u&&2!=t.K&&t.l.Da}function t8(t,e,n){let i=!0,r;for(;!t.I&&t.C<n.length;)if((r=function(t,e){var n=t.C,i=e.indexOf("\n",n);return -1==i?t2:isNaN(n=Number(e.substring(n,i)))?t1:(i+=1)+n>e.length?t2:(e=e.substr(i,n),t.C=i+n,e)}(t,n))==t2){4==e&&(t.o=4,tH(14),i=!1),tP(t.j,t.m,null,"[Incomplete Response]");break}else if(r==t1){t.o=4,tH(15),tP(t.j,t.m,n,"[Invalid Chunk]"),i=!1;break}else tP(t.j,t.m,r,null),en(t,r);t6(t)&&r!=t2&&r!=t1&&(t.h.g="",t.C=0),4!=e||0!=n.length||t.h.h||(t.o=1,tH(16),i=!1),t.i=t.i&&i,i?0<n.length&&!t.$&&(t.$=!0,(e=t.l).g==t&&e.$&&!e.K&&(e.j.info("Great, no buffering proxy detected. Bytes received: "+n.length),ns(e),e.K=!0,tH(11))):(tP(t.j,t.m,n,"[Invalid Chunked Response]"),ee(t),et(t))}function t5(t){t.V=Date.now()+t.O,t9(t,t.O)}function t9(t,e){if(null!=t.B)throw Error("WatchDog timer not null");t.B=tX(y(t.gb,t),e)}function t7(t){t.B&&(f.clearTimeout(t.B),t.B=null)}function et(t){0==t.l.G||t.I||nh(t.l,t)}function ee(t){t7(t);var e=t.L;e&&"function"==typeof e.na&&e.na(),t.L=null,tk(t.T),tx(t.S),t.g&&(e=t.g,t.g=null,e.abort(),e.na())}function en(t,e){try{var n=t.l;if(0!=n.G&&(n.g==t||ex(n.h,t))){if(!t.J&&ex(n.h,t)&&3==n.G){try{var i=n.Fa.g.parse(e)}catch(t){i=null}if(Array.isArray(i)&&3==i.length){var r=i;if(0==r[0]){t:if(!n.u){if(n.g){if(n.g.F+3e3<t.F)na(n),e5(n);else break t}nr(n),tH(18)}}else n.Ba=r[1],0<n.Ba-n.T&&37500>r[2]&&n.L&&0==n.A&&!n.v&&(n.v=tX(y(n.cb,n),6e3));if(1>=eI(n.h)&&n.ja){try{n.ja()}catch(t){}n.ja=void 0}}else nu(n,11)}else if((t.J||n.g==t)&&na(n),!O(e))for(r=n.Fa.g.parse(e),e=0;e<r.length;e++){let a=r[e];if(n.T=a[0],a=a[1],2==n.G){if("c"==a[0]){n.I=a[1],n.ka=a[2];let e=a[3];null!=e&&(n.ma=e,n.j.info("VER="+n.ma));let r=a[4];null!=r&&(n.Ca=r,n.j.info("SVER="+n.Ca));let h=a[5];null!=h&&"number"==typeof h&&0<h&&(i=1.5*h,n.J=i,n.j.info("backChannelRequestTimeoutMs_="+i)),i=n;let l=t.g;if(l){let t=l.g?l.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(t){var s=i.h;s.g||-1==t.indexOf("spdy")&&-1==t.indexOf("quic")&&-1==t.indexOf("h2")||(s.j=s.l,s.g=new Set,s.h&&(eU(s,s.h),s.h=null))}if(i.D){let t=l.g?l.g.getResponseHeader("X-HTTP-Session-Id"):null;t&&(i.za=t,eu(i.F,i.D,t))}}if(n.G=3,n.l&&n.l.xa(),n.$&&(n.P=Date.now()-t.F,n.j.info("Handshake RTT: "+n.P+"ms")),(i=n).sa=nf(i,i.H?i.ka:null,i.V),t.J){eP(i.h,t);var o=i.J;o&&t.setTimeout(o),t.B&&(t7(t),t5(t)),i.g=t}else ni(i);0<n.i.length&&e7(n)}else"stop"!=a[0]&&"close"!=a[0]||nu(n,7)}else 3==n.G&&("stop"==a[0]||"close"==a[0]?"stop"==a[0]?nu(n,7):e8(n):"noop"!=a[0]&&n.l&&n.l.wa(a),n.A=0)}}tM(4)}catch(t){}}function ei(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(d(t)||"string"==typeof t)Array.prototype.forEach.call(t,e,void 0);else for(var n=function(t){if(t.oa&&"function"==typeof t.oa)return t.oa();if(!t.W||"function"!=typeof t.W){if("undefined"!=typeof Map&&t instanceof Map)return Array.from(t.keys());if(!("undefined"!=typeof Set&&t instanceof Set)){if(d(t)||"string"==typeof t){var e=[];t=t.length;for(var n=0;n<t;n++)e.push(n);return e}for(let i in e=[],n=0,t)e[n++]=i;return e}}}(t),i=function(t){if(t.W&&"function"==typeof t.W)return t.W();if("undefined"!=typeof Map&&t instanceof Map||"undefined"!=typeof Set&&t instanceof Set)return Array.from(t.values());if("string"==typeof t)return t.split("");
1if(d(t)){for(var e=[],n=t.length,i=0;i<n;i++)e.push(t[i]);return e}for(i in e=[],n=0,t)e[n++]=t[i];return e}(t),r=i.length,s=0;s<r;s++)e.call(void 0,i[s],n&&n[s],t)}(h=tZ.prototype).setTimeout=function(t){this.O=t},h.ib=function(t){t=t.target;let e=this.L;e&&3==e0(t)?e.l():this.La(t)},h.La=function(t){try{if(t==this.g)t:{let u=e0(this.g);var e=this.g.Ea();let c=this.g.aa();if(!(3>u)&&(3!=u||L||this.g&&(this.h.h||this.g.fa()||e1(this.g)))){this.I||4!=u||7==e||(8==e||0>=c?tM(3):tM(2)),t7(this);var n=this.g.aa();this.Y=n;e:if(t6(this)){var i=e1(this.g);t="";var r=i.length,s=4==e0(this.g);if(!this.h.i){if("undefined"==typeof TextDecoder){ee(this),et(this);var o="";break e}this.h.i=new f.TextDecoder}for(e=0;e<r;e++)this.h.h=!0,t+=this.h.i.decode(i[e],{stream:s&&e==r-1});i.splice(0,r),this.h.g+=t,this.C=0,o=this.h.g}else o=this.g.fa();if(this.i=200==n,function(t,e,n,i,r,s,o){t.info(function(){return"XMLHTTP RESP ("+i+") [ attempt "+r+"]: "+e+"\n"+n+"\n"+s+" "+o})}(this.j,this.u,this.A,this.m,this.U,u,n),this.i){if(this.Z&&!this.J){e:{if(this.g){var a,h=this.g;if((a=h.g?h.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!O(a)){var l=a;break e}}l=null}if(n=l)tP(this.j,this.m,n,"Initial handshake response via X-HTTP-Initial-Response"),this.J=!0,en(this,n);else{this.i=!1,this.o=3,tH(12),ee(this),et(this);break t}}this.P?(t8(this,u,o),L&&this.i&&3==u&&(tI(this.S,this.T,"tick",this.hb),this.T.start())):(tP(this.j,this.m,o,null),en(this,o)),4==u&&ee(this),this.i&&!this.I&&(4==u?nh(this.l,this):(this.i=!1,t5(this)))}else 400==n&&0<o.indexOf("Unknown SID")?(this.o=3,tH(12)):(this.o=0,tH(13)),ee(this),et(this)}}}catch(t){}finally{}},h.hb=function(){if(this.g){var t=e0(this.g),e=this.g.fa();this.C<e.length&&(t7(this),t8(this,t,e),this.i&&4!=t&&t5(this))}},h.cancel=function(){this.I=!0,ee(this)},h.gb=function(){this.B=null;let t=Date.now();0<=t-this.V?(function(t,e){t.info(function(){return"TIMEOUT: "+e})}(this.j,this.A),2!=this.K&&(tM(),tH(17)),ee(this),this.o=2,et(this)):t9(this,this.V-t)};var er=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function es(t,e){if(this.g=this.s=this.j="",this.m=null,this.o=this.l="",this.h=!1,t instanceof es){this.h=void 0!==e?e:t.h,ea(this,t.j),this.s=t.s,this.g=t.g,eh(this,t.m),this.l=t.l,e=t.i;var n=new eb;n.i=e.i,e.g&&(n.g=new Map(e.g),n.h=e.h),el(this,n),this.o=t.o}else t&&(n=String(t).match(er))?(this.h=!!e,ea(this,n[1]||"",!0),this.s=ef(n[2]||""),this.g=ef(n[3]||"",!0),eh(this,n[4]),this.l=ef(n[5]||"",!0),el(this,n[6]||"",!0),this.o=ef(n[7]||"")):(this.h=!!e,this.i=new eb(null,this.h))}function eo(t){return new es(t)}function ea(t,e,n){t.j=n?ef(e,!0):e,t.j&&(t.j=t.j.replace(/:$/,""))}function eh(t,e){if(e){if(isNaN(e=Number(e))||0>e)throw Error("Bad port number "+e);t.m=e}else t.m=null}function el(t,e,n){var i,r;e instanceof eb?(t.i=e,i=t.i,(r=t.h)&&!i.j&&(eT(i),i.i=null,i.g.forEach(function(t,e){var n=e.toLowerCase();e!=n&&(ew(this,e),eR(this,n,t))},i)),i.j=r):(n||(e=ep(e,ey)),t.i=new eb(e,t.h))}function eu(t,e,n){t.i.set(e,n)}function ec(t){return eu(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),t}function ef(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function ep(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,ed),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function ed(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}es.prototype.toString=function(){var t=[],e=this.j;e&&t.push(ep(e,eg,!0),":");var n=this.g;return(n||"file"==e)&&(t.push("//"),(e=this.s)&&t.push(ep(e,eg,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.m)&&t.push(":",String(n))),(n=this.l)&&(this.g&&"/"!=n.charAt(0)&&t.push("/"),t.push(ep(n,"/"==n.charAt(0)?e_:em,!0))),(n=this.i.toString())&&t.push("?",n),(n=this.o)&&t.push("#",ep(n,ev)),t.join("")};var eg=/[#\/\?@]/g,em=/[#\?:]/g,e_=/[#\?]/g,ey=/[#\?@]/g,ev=/#/g;function eb(t,e){this.h=this.g=null,this.i=t||null,this.j=!!e}function eT(t){t.g||(t.g=new Map,t.h=0,t.i&&function(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var i=t[n].indexOf("="),r=null;if(0<=i){var s=t[n].substring(0,i);r=t[n].substring(i+1)}else s=t[n];e(s,r?decodeURIComponent(r.replace(/\+/g," ")):"")}}}(t.i,function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)}))}function ew(t,e){eT(t),e=ek(t,e),t.g.has(e)&&(t.i=null,t.h-=t.g.get(e).length,t.g.delete(e))}function eE(t,e){return eT(t),e=ek(t,e),t.g.has(e)}
1function eR(t,e,n){ew(t,e),0<n.length&&(t.i=null,t.g.set(ek(t,e),E(n)),t.h+=n.length)}function ek(t,e){return e=String(e),t.j&&(e=e.toLowerCase()),e}(h=eb.prototype).add=function(t,e){eT(this),this.i=null,t=ek(this,t);var n=this.g.get(t);return n||this.g.set(t,n=[]),n.push(e),this.h+=1,this},h.forEach=function(t,e){eT(this),this.g.forEach(function(n,i){n.forEach(function(n){t.call(e,n,i,this)},this)},this)},h.oa=function(){eT(this);let t=Array.from(this.g.values()),e=Array.from(this.g.keys()),n=[];for(let i=0;i<e.length;i++){let r=t[i];for(let t=0;t<r.length;t++)n.push(e[i])}return n},h.W=function(t){eT(this);let e=[];if("string"==typeof t)eE(this,t)&&(e=e.concat(this.g.get(ek(this,t))));else{t=Array.from(this.g.values());for(let n=0;n<t.length;n++)e=e.concat(t[n])}return e},h.set=function(t,e){return eT(this),this.i=null,eE(this,t=ek(this,t))&&(this.h-=this.g.get(t).length),this.g.set(t,[e]),this.h+=1,this},h.get=function(t,e){return t&&0<(t=this.W(t)).length?String(t[0]):e},h.toString=function(){if(this.i)return this.i;if(!this.g)return"";let t=[],e=Array.from(this.g.keys());for(var n=0;n<e.length;n++){var i=e[n];let s=encodeURIComponent(String(i)),o=this.W(i);for(i=0;i<o.length;i++){var r=s;""!==o[i]&&(r+="="+encodeURIComponent(String(o[i]))),t.push(r)}}return this.i=t.join("&")};var eC=class{constructor(t,e){this.h=t,this.g=e}};function eO(t){this.l=t||eS,t=f.PerformanceNavigationTiming?0<(t=f.performance.getEntriesByType("navigation")).length&&("hq"==t[0].nextHopProtocol||"h2"==t[0].nextHopProtocol):!!(f.g&&f.g.Ga&&f.g.Ga()&&f.g.Ga().$b),this.j=t?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}var eS=10;function eA(t){return!!t.h||!!t.g&&t.g.size>=t.j}function eI(t){return t.h?1:t.g?t.g.size:0}function ex(t,e){return t.h?t.h==e:!!t.g&&t.g.has(e)}function eU(t,e){t.g?t.g.add(e):t.h=e}function eP(t,e){t.h&&t.h==e?t.h=null:t.g&&t.g.has(e)&&t.g.delete(e)}function eN(t){if(null!=t.h)return t.i.concat(t.h.D);if(null!=t.g&&0!==t.g.size){let e=t.i;for(let n of t.g.values())e=e.concat(n.D);return e}return E(t.i)}function eD(){}function eL(){this.g=new eD}function ej(t,e,n,i,r){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,r(i)}catch(t){}}function eM(t){this.l=t.ac||null,this.j=t.jb||!1}function eB(t,e){td.call(this),this.D=t,this.u=e,this.m=void 0,this.readyState=eH,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.v=new Headers,this.h=null,this.C="GET",this.B="",this.g=!1,this.A=this.j=this.l=null}eO.prototype.cancel=function(){if(this.i=eN(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(let t of this.g.values())t.cancel();this.g.clear()}},eD.prototype.stringify=function(t){return f.JSON.stringify(t,void 0)},eD.prototype.parse=function(t){return f.JSON.parse(t,void 0)},b(eM,tK),eM.prototype.g=function(){return new eB(this.l,this.j)},eM.prototype.i=(i={},function(){return i}),b(eB,td);var eH=0;function eF(t){t.j.read().then(t.Ta.bind(t)).catch(t.ga.bind(t))}function eX(t){t.readyState=4,t.l=null,t.j=null,t.A=null,eq(t)}function eq(t){t.onreadystatechange&&t.onreadystatechange.call(t)}(h=eB.prototype).open=function(t,e){if(this.readyState!=eH)throw this.abort(),Error("Error reopening a connection");this.C=t,this.B=e,this.readyState=1,eq(this)},h.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;let e={headers:this.v,method:this.C,credentials:this.m,cache:void 0};t&&(e.body=t),(this.D||f).fetch(new Request(this.B,e)).then(this.Wa.bind(this),this.ga.bind(this))},h.abort=function(){this.response=this.responseText="",this.v=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,eX(this)),this.readyState=eH},h.Wa=function(t){if(this.g&&(this.l=t,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=t.headers,this.readyState=2,eq(this)),this.g&&(this.readyState=3,eq(this),this.g))){if("arraybuffer"===this.responseType)t.arrayBuffer().then(this.Ua.bind(this),this.ga.bind(this));else if(void 0!==f.ReadableStream&&"body"in t){if(this.j=t.body.getReader(),this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.A=new TextDecoder;eF(this)}else t.text().then(this.Va.bind(this),this.ga.bind(this))}},h.Ta=function(t){if(this.g){if(this.u&&t.value)this.response.push(t.value);else if(!this.u){var e=t.value?t.value:new Uint8Array(0);(e=this.A.decode(e,{stream:!t.done}))&&(this.response=this.responseText+=e)}t.done?eX(this):eq(this),3==this.readyState&&eF(this)}},h.Va=function(t){this.g&&(this.response=this.responseText=t,eX(this))},h.Ua=function(t){this.g&&(this.response=t,eX(this))},h.ga=function(){this.g&&eX(this)},h.setRequestHeader=function(t,e){this.v.append(t,e)},h.getResponseHeader=function(t){return this.h&&this.h.get(t.toLowerCase())||""},h.getAllResponseHeaders=function(){if(!this.h)return"";let t=[],e=this.h.entries();for(var n=e.next();!n.done;)t.push((n=n.value)[0]+": "+n[1]),n=e.next();return t.join("\r\n")},Object.defineProperty(eB.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(t){this.m=t?"include":"same-origin"}});var e$=f.JSON.parse;function eK(t){td.call(this),this.headers=new Map,this.u=t||null,this.h=!1,this.C=this.g=null,this.H="",this.m=0,this.j="",this.l=this.F=this.v=this.D=!1,this.B=0,this.A=null,this.J=eG,this.K=this.L=!1}b(eK,td);var eG="",ez=/^https?$/i,eV=["POST","PUT"];function eJ(t,e){t.h=!1,t.g&&(t.l=!0,t.g.abort(),t.l=!1),t.j=e,t.m=5,eW(t),eZ(t)}function eW(t){t.D||(t.D=!0,tg(t,"complete"),tg(t,"error"))}function eY(t){if(t.h&&void 0!==c&&(!t.C[1]||4!=e0(t)||2!=t.aa())
1){if(t.v&&4==e0(t))tC(t.Ha,0,t);else if(tg(t,"readystatechange"),4==e0(t)){t.h=!1;try{let a=t.aa();switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var e,n,i=!0;break;default:i=!1}if(!(e=i)){if(n=0===a){var r=String(t.H).match(er)[1]||null;if(!r&&f.self&&f.self.location){var s=f.self.location.protocol;r=s.substr(0,s.length-1)}n=!ez.test(r?r.toLowerCase():"")}e=n}if(e)tg(t,"complete"),tg(t,"success");else{t.m=6;try{var o=2<e0(t)?t.g.statusText:""}catch(t){o=""}t.j=o+" ["+t.aa()+"]",eW(t)}}finally{eZ(t)}}}}function eZ(t,e){if(t.g){eQ(t);let n=t.g,i=t.C[0]?p:null;t.g=null,t.C=null,e||tg(t,"ready");try{n.onreadystatechange=i}catch(t){}}}function eQ(t){t.g&&t.K&&(t.g.ontimeout=null),t.A&&(f.clearTimeout(t.A),t.A=null)}function e0(t){return t.g?t.g.readyState:0}function e1(t){try{if(!t.g)return null;if("response"in t.g)return t.g.response;switch(t.J){case eG:case"text":return t.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in t.g)return t.g.mozResponseArrayBuffer}return null}catch(t){return null}}function e2(t){let e="";return Z(t,function(t,n){e+=n+":"+t+"\r\n"}),e}function e4(t,e,n){t:{for(i in n){var i=!1;break t}i=!0}i||(n=e2(n),"string"==typeof t?null!=n&&encodeURIComponent(String(n)):eu(t,e,n))}function e3(t,e,n){return n&&n.internalChannelParams&&n.internalChannelParams[t]||e}function e6(t){this.Ca=0,this.i=[],this.j=new tU,this.ka=this.sa=this.F=this.V=this.g=this.za=this.D=this.ia=this.o=this.S=this.s=null,this.ab=this.U=0,this.Za=e3("failFast",!1,t),this.L=this.v=this.u=this.m=this.l=null,this.Y=!0,this.pa=this.Ba=this.T=-1,this.Z=this.A=this.C=0,this.Xa=e3("baseRetryDelayMs",5e3,t),this.bb=e3("retryDelaySeedMs",1e4,t),this.$a=e3("forwardChannelMaxRetries",2,t),this.ta=e3("forwardChannelRequestTimeoutMs",2e4,t),this.ra=t&&t.xmlHttpFactory||void 0,this.Da=t&&t.Zb||!1,this.J=void 0,this.H=t&&t.supportsCrossDomainXhr||!1,this.I="",this.h=new eO(t&&t.concurrentRequestLimit),this.Fa=new eL,this.O=t&&t.fastHandshake||!1,this.N=t&&t.encodeInitMessageHeaders||!1,this.O&&this.N&&(this.N=!1),this.Ya=t&&t.Xb||!1,t&&t.Aa&&this.j.Aa(),t&&t.forceLongPolling&&(this.Y=!1),this.$=!this.O&&this.Y&&t&&t.detectBufferingProxy||!1,this.ja=void 0,this.P=0,this.K=!1,this.la=this.B=null}function e8(t){if(e9(t),3==t.G){var e=t.U++,n=eo(t.F);eu(n,"SID",t.I),eu(n,"RID",e),eu(n,"TYPE","terminate"),ne(t,n),(e=new tZ(t,t.j,e,void 0)).K=2,e.v=ec(eo(n)),n=!1,f.navigator&&f.navigator.sendBeacon&&(n=f.navigator.sendBeacon(e.v.toString(),"")),!n&&f.Image&&((new Image).src=e.v,n=!0),n||(e.g=np(e.l,null),e.g.da(e.v)),e.F=Date.now(),t5(e)}nc(t)}function e5(t){t.g&&(ns(t),t.g.cancel(),t.g=null)}function e9(t){e5(t),t.u&&(f.clearTimeout(t.u),t.u=null),na(t),t.h.cancel(),t.m&&("number"==typeof t.m&&f.clearTimeout(t.m),t.m=null)}function e7(t){eA(t.h)||t.m||(t.m=!0,tb(t.Ja,t),t.C=0)}function nt(t,e){var n;n=e?e.m:t.U++;let i=eo(t.F);eu(i,"SID",t.I),eu(i,"RID",n),eu(i,"AID",t.T),ne(t,i),t.o&&t.s&&e4(i,t.o,t.s),n=new tZ(t,t.j,n,t.C+1),null===t.o&&(n.H=t.s),e&&(t.i=e.D.concat(t.i)),e=nn(t,n,1e3),n.setTimeout(Math.round(.5*t.ta)+Math.round(.5*t.ta*Math.random())),eU(t.h,n),t4(n,i,e)}function ne(t,e){t.ia&&Z(t.ia,function(t,n){eu(e,n,t)}),t.l&&ei({},function(t,n){eu(e,n,t)})}function nn(t,e,n){n=Math.min(t.i.length,n);var i=t.l?y(t.l.Ra,t.l,t):null;t:{var r=t.i;let e=-1;for(;;){let t=["count="+n];-1==e?0<n?(e=r[0].h,t.push("ofs="+e)):e=0:t.push("ofs="+e);let s=!0;for(let o=0;o<n;o++){let n=r[o].h,a=r[o].g;if(0>(n-=e))e=Math.max(0,r[o].h-100),s=!1;else try{!function(t,e,n){let i=n||"";try{ei(t,function(t,n){let r=t;g(t)&&(r=t_(t)),e.push(i+n+"="+encodeURIComponent(r))})}catch(t){throw e.push(i+"type="+encodeURIComponent("_badmap")),t}}(a,t,"req"+n+"_")}catch(t){i&&i(a)}}if(s){i=t.join("&");break t}}}return t=t.i.splice(0,n),e.D=t,i}function ni(t){t.g||t.u||(t.Z=1,tb(t.Ia,t),t.A=0)}function nr(t){return!t.g&&!t.u&&!(3<=t.A)&&(t.Z++,t.u=tX(y(t.Ia,t),nl(t,t.A)),t.A++,!0)}function ns(t){null!=t.B&&(f.clearTimeout(t.B),t.B=null)}function no(t){t.g=new tZ(t,t.j,"rpc",t.Z),null===t.o&&(t.g.H=t.s),t.g.N=0;var e=eo(t.sa);eu(e,"RID","rpc"),eu(e,"SID",t.I),eu(e,"CI",t.L?"0":"1"),eu(e,"AID",t.T),eu(e,"TYPE","xmlhttp"),ne(t,e),t.o&&t.s&&e4(e,t.o,t.s),t.J&&t.g.setTimeout(t.J);var n=t.g;t=t.ka,n.K=1,n.v=ec(eo(e)),n.s=null,n.P=!0,t3(n,t)}function na(t){null!=t.v&&(f.clearTimeout(t.v),t.v=null)}function nh(t,e){var n=null;if(t.g==e){na(t),ns(t),t.g=null;var i=2}else{if(!ex(t.h,e))return;n=e.D,eP(t.h,e),i=1}if(0!=t.G){if(t.pa=e.Y,e.i){if(1==i){n=e.s?e.s.length:0,e=Date.now()-e.F;var r,s=t.C;tg(i=tL(),new tF(i,n)),e7(t)}else ni(t)}else if(3==(s=e.o)||0==s&&0<t.pa||!(1==i&&(r=e,!(eI(t.h)>=t.h.j-(t.m?1:0))&&(t.m?(t.i=r.D.concat(t.i),!0):1!=t.G&&2!=t.G&&!(t.C>=(t.Za?0:t.$a))&&(t.m=tX(y(t.Ja,t,r),nl(t,t.C)),t.C++,!0)))||2==i&&nr(t)))switch(n&&0<n.length&&((e=t.h).i=e.i.concat(n)),s){case 1:nu(t,5);break;case 4:nu(t,10);break;case 3:nu(t,6);break;default:nu(t,2)}}}function nl(t,e){let n=t.Xa+Math.floor(Math.random()*t.bb);return t.l||(n*=2),n*e}function nu(t,e){if(t.j.info("Error code "+e),2==e){var n=null;t.l&&(n=null);var i=y(t.kb,t);
1n||(n=new es("//www.google.com/images/cleardot.gif"),f.location&&"http"==f.location.protocol||ea(n,"https"),ec(n)),function(t,e){let n=new tU;if(f.Image){let i=new Image;i.onload=v(ej,n,i,"TestLoadImage: loaded",!0,e),i.onerror=v(ej,n,i,"TestLoadImage: error",!1,e),i.onabort=v(ej,n,i,"TestLoadImage: abort",!1,e),i.ontimeout=v(ej,n,i,"TestLoadImage: timeout",!1,e),f.setTimeout(function(){i.ontimeout&&i.ontimeout()},1e4),i.src=t}else e(!1)}(n.toString(),i)}else tH(2);t.G=0,t.l&&t.l.va(e),nc(t),e9(t)}function nc(t){if(t.G=0,t.la=[],t.l){let e=eN(t.h);(0!=e.length||0!=t.i.length)&&(R(t.la,e),R(t.la,t.i),t.h.i.length=0,E(t.i),t.i.length=0),t.l.ua()}}function nf(t,e,n){var i=n instanceof es?eo(n):new es(n,void 0);if(""!=i.g)e&&(i.g=e+"."+i.g),eh(i,i.m);else{var r=f.location;i=r.protocol,e=e?e+"."+r.hostname:r.hostname,r=+r.port;var s=new es(null,void 0);i&&ea(s,i),e&&(s.g=e),r&&eh(s,r),n&&(s.l=n),i=s}return n=t.D,e=t.za,n&&e&&eu(i,n,e),eu(i,"VER",t.ma),ne(t,i),i}function np(t,e,n){if(e&&!t.H)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new eK(n&&t.Da&&!t.ra?new eM({jb:!0}):t.ra)).Ka(t.H),e}function nd(){}function ng(){if(N&&!(10<=Number(K)))throw Error("Environmental error: no available transport.")}function nm(t,e){td.call(this),this.g=new e6(e),this.l=t,this.h=e&&e.messageUrlParams||null,t=e&&e.messageHeaders||null,e&&e.clientProtocolHeaderRequired&&(t?t["X-Client-Protocol"]="webchannel":t={"X-Client-Protocol":"webchannel"}),this.g.s=t,t=e&&e.initMessageHeaders||null,e&&e.messageContentType&&(t?t["X-WebChannel-Content-Type"]=e.messageContentType:t={"X-WebChannel-Content-Type":e.messageContentType}),e&&e.ya&&(t?t["X-WebChannel-Client-Profile"]=e.ya:t={"X-WebChannel-Client-Profile":e.ya}),this.g.S=t,(t=e&&e.Yb)&&!O(t)&&(this.g.o=t),this.A=e&&e.supportsCrossDomainXhr||!1,this.v=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!O(e)&&(this.g.D=e,null!==(t=this.h)&&e in t&&e in(t=this.h)&&delete t[e]),this.j=new nv(this)}function n_(t){tJ.call(this);var e=t.__sm__;if(e){t:{for(let n in e){t=n;break t}t=void 0}(this.i=t)&&(t=this.i,e=null!==e&&t in e?e[t]:void 0),this.data=e}else this.data=t}function ny(){tW.call(this),this.status=1}function nv(t){this.g=t}(h=eK.prototype).Ka=function(t){this.L=t},h.da=function(t,e,n,i){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.H+"; newUri="+t);e=e?e.toUpperCase():"GET",this.H=t,this.j="",this.m=0,this.D=!1,this.h=!0,this.g=this.u?this.u.g():a.g(),this.C=this.u?tG(this.u):tG(a),this.g.onreadystatechange=y(this.Ha,this);try{this.F=!0,this.g.open(e,String(t),!0),this.F=!1}catch(t){eJ(this,t);return}if(t=n||"",n=new Map(this.headers),i){if(Object.getPrototypeOf(i)===Object.prototype)for(var s in i)n.set(s,i[s]);else if("function"==typeof i.keys&&"function"==typeof i.get)for(let t of i.keys())n.set(t,i.get(t));else throw Error("Unknown input type for opt_headers: "+String(i))}for(let[r,o]of(i=Array.from(n.keys()).find(t=>"content-type"==t.toLowerCase()),s=f.FormData&&t instanceof f.FormData,!(0<=w(eV,e))||i||s||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),n))this.g.setRequestHeader(r,o);this.J&&(this.g.responseType=this.J),"withCredentials"in this.g&&this.g.withCredentials!==this.L&&(this.g.withCredentials=this.L);try{var o;eQ(this),0<this.B&&((this.K=(o=this.g,N&&(Object.prototype.hasOwnProperty.call($,9)?$[9]:$[9]=function(){let t=0,e=S(String(r)).split("."),n=S("9").split("."),i=Math.max(e.length,n.length);for(let r=0;0==t&&r<i;r++){var s=e[r]||"",o=n[r]||"";do{if(s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],o=/(\d*)(\D*)(.*)/.exec(o)||["","","",""],0==s[0].length&&0==o[0].length)break;t=A(0==s[1].length?0:parseInt(s[1],10),0==o[1].length?0:parseInt(o[1],10))||A(0==s[2].length,0==o[2].length)||A(s[2],o[2]),s=s[3],o=o[3]}while(0==t)}return 0<=t}(9))&&"number"==typeof o.timeout&&void 0!==o.ontimeout))?(this.g.timeout=this.B,this.g.ontimeout=y(this.qa,this)):this.A=tC(this.qa,this.B,this)),this.v=!0,this.g.send(t),this.v=!1}catch(t){eJ(this,t)}},h.qa=function(){void 0!==c&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,tg(this,"timeout"),this.abort(8))},h.abort=function(t){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=t||7,tg(this,"complete"),tg(this,"abort"),eZ(this))},h.M=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),eZ(this,!0)),eK.X.M.call(this)},h.Ha=function(){this.s||(this.F||this.v||this.l?eY(this):this.fb())},h.fb=function(){eY(this)},h.aa=function(){try{return 2<e0(this)?this.g.status:-1}catch(t){return -1}},h.fa=function(){try{return this.g?this.g.responseText:""}catch(t){return""}},h.Sa=function(t){if(this.g){var e=this.g.responseText;return t&&0==e.indexOf(t)&&(e=e.substring(t.length)),e$(e)}},h.Ea=function(){return this.m},h.Oa=function(){return"string"==typeof this.j?this.j:String(this.j)},(h=e6.prototype).ma=8,h.G=1,h.Ja=function(t){if(this.m){if(this.m=null,1==this.G){if(!t){this.U=Math.floor(1e5*Math.random()),t=this.U++;let r=new tZ(this,this.j,t,void 0),s=this.s;if(this.S&&(s?te(s=Q(s),this.S):s=this.S),null!==this.o||this.N||(r.H=s,s=null),this.O)t:{for(var e=0,n=0;n<this.i.length;n++){e:{var i=this.i[n];if("__data__"in i.g&&"string"==typeof(i=i.g.__data__)){i=i.length;break e}i=void 0}if(void 0===i)break;if(4096<(e+=i)){e=n;break t}if(4096===e||n===this.i.length-1){e=n+1;break t}}e=1e3}else e=1e3;e=nn(this,r,e),eu(n=eo(this.F),"RID",t),eu(n,"CVER",22),this.D&&eu(n,"X-HTTP-Session-Id",this.D),ne(this,n),s&&(this.N?e="headers="+encodeURIComponent(String(e2(s)))+"&"+e:this.o&&e4(n,this.o,s)),eU(this.h,r),this.Ya&&eu(n,"TYPE","init"),this.O?(eu(n,"$req",e),eu(n,"SID","null"),r.Z=!0,t4(r,n,null)):t4(r,n,e),this.G=2}}else 3==this.G&&(t?nt(this,t):0==this.i.length||eA(this.h)||nt(this))}},h.Ia=function(){if(this.u=null,no(this),this.$&&!(this.K||null==this.g||0>=this.P)){var t=2*this.P;this.j.info("BP detection timer enabled: "+t),this.B=tX(y(this.eb,this),t)}},h.eb=function(){this.B&&(this.B=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.L=!1,this.K=!0,tH(10),e5(this),no(this))},h.cb=function(){null!=this.v&&(this.v=null,e5(this),nr(this),tH(19))},h.kb=function(t){t?(this.j.info("Successfully pinged google.com"),tH(2)):(this.j.info("Failed to ping google.com"),tH(1))},(h=nd.prototype).xa=function(){},h.wa=function(){},h.va=function(){},h.ua=function(){},h.Ra=function(){},ng.prototype.g=function(t,e){return new nm(t,e)},b(nm,td),nm.prototype.m=function(){this.g.l=this.j,this.A&&(this.g.H=!0);var t=this.g,e=this.l,n=this.h||void 0;tH(0),t.V=e,t.ia=n||{},t.L=t.Y,t.F=nf(t,null,t.V),e7(t)},nm.prototype.close=function(){e8(this.g)},nm.prototype.u=function(t){var e=this.g;if("string"==typeof t){var n={};n.__data__=t,t=n}else this.v&&((n={}).__data__=t_(t),t=n);e.i.push(new eC(e.ab++,t)),3==e.G&&e7(e)},nm.prototype.M=function(){this.g.l=null,delete this.j,e8(this.g),delete this.g,nm.X.M.call(this)},b(n_,tJ),b(ny,tW),b(nv,nd),nv.prototype.xa=function(){tg(this.g,"a")},nv.prototype.wa=function(t){tg(this.g,new n_(t))},nv.prototype.va=function(t){tg(this.g,new ny)},nv.prototype.ua=function(){tg(this.g,"b")},ng.prototype.createWebChannel=ng.prototype.g,nm.prototype.send=nm.prototype.u,nm.prototype.open=nm.prototype.m,nm.prototype.close=nm.prototype.close,tq.NO_ERROR=0,tq.TIMEOUT=8,tq.HTTP_ERROR=6,t$.COMPLETE="complete",tz.EventType=tV,tV.OPEN="a",tV.CLOSE="b",tV.ERROR="c",tV.MESSAGE="d",td.prototype.listen=td.prototype.N,eK.prototype.listenOnce=eK.prototype.O,eK.prototype.getLastError=eK.prototype.Oa,eK.prototype.getLastErrorCode=eK.prototype.Ea,eK.prototype.getStatus=eK.prototype.aa,eK.prototype.getResponseJson=eK.prototype.Sa,eK.prototype.getResponseText=eK.prototype.fa,eK.prototype.send=eK.prototype.da,eK.prototype.setWithCredentials=eK.prototype.Ka;var nb=u.createWebChannelTransport=function(){return new ng},nT=u.getStatEventTarget=function(){return tL()},nw=u.ErrorCode=tq,nE=u.EventType=t$,nR=u.Event=tN,nk=u.Stat={sb:0,vb:1,wb:2,Pb:3,Ub:4,Rb:5,Sb:6,Qb:7,Ob:8,Tb:9,PROXY:10,NOPROXY:11,Mb:12,Ib:13,Jb:14,Hb:15,Kb:16,Lb:17,ob:18,nb:19,pb:20},nC=u.FetchXmlHttpFactory=eM,nO=u.WebChannel=tz,nS=u.XhrIo=eK},3977:function(t,e,n){n.d(e,{C6:function(){return i.C6},ZF:function(){return i.ZF}});var i=n(5816);/** 2 * @license 3 * Copyright 2020 Google LLC 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 */(0,i.KN)("firebase","9.18.0","app")},1259:function(t,e,n){n.d(e,{hJ:function(){return i.Q},v0:function(){return i.n},Aj:function(){return i.v},rh:function(){return i.c}});var i=n(4378);n(4444),n(5816),n(3333),n(740)},9828:function(t,e,n){n.d(e,{AK:function(){return i.AK},Bt:function(){return i.Bt},ET:function(){return i.ET},IO:function(){return i.IO},JU:function(){return i.JU},PL:function(){return i.PL},QT:function(){return i.QT},Xk:function(){return i.Xk},Xo:function(){return i.Xo},ad:function(){return i.ad},b9:function(){return i.b9},cf:function(){return i.cf},hJ:function(){return i.hJ},oe:function(){return i.oe},pl:function(){return i.pl},qs:function(){return i.qs},r7:function(){return i.r7}});var i=n(19)},7004:function(t,e,n){n.d(e,{$C:function(){return p}});var i,r=n(5816),s=n(4444),o=n(740);/** 17 * @license 18 * Copyright 2020 Google LLC 19 * 20 * Licensed under the Apache License, Version 2.0 (the "License"); 21 * you may not use this file except in compliance with the License. 22 * You may obtain a copy of the License at 23 * 24 * http://www.apache.org/licenses/LICENSE-2.0 25 * 26 * Unless required by applicable law or agreed to in writing, software 27 * distributed under the License is distributed on an "AS IS" BASIS, 28 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 29 * See the License for the specific language governing permissions and 30 * limitations under the License. 31 */let a="functions";/** 32 * @license 33 * Copyright 2017 Google LLC 34 * 35 * Licensed under the Apache License, Version 2.0 (the "License"); 36 * you may not use this file except in compliance with the License. 37 * You may obtain a copy of the License at 38 * 39 * http://www.apache.org/licenses/LICENSE-2.0 40 * 41 * Unless required by applicable law or agreed to in writing, software 42 * distributed under the License is distributed on an "AS IS" BASIS, 43 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 44 * See the License for the specific language governing permissions and 45 * limitations under the License. 46 */class h{constructor(t,e,n){this.auth=null,this.messaging=null,this.appCheck=null,this.auth=t.getImmediate({optional:!0}),this.messaging=e.getImmediate({optional:!0}),this.auth||t.get().then(t=>this.auth=t,()=>{}),this.messaging||e.get().then(t=>this.messaging=t,()=>{}),this.appCheck||n.get().then(t=>this.appCheck=t,()=>{})}async getAuthToken(){if(this.auth)try{let t=await this.auth.getToken();return null==t?void 0:t.accessToken}catch(t){return}}async getMessagingToken(){if(this.messaging&&"Notification"in self&&"granted"===Notification.permission)try{return await this.messaging.getToken()}catch(t){return}}async getAppCheckToken(){if(this.appCheck){let t=await this.appCheck.getToken();return t.error?null:t.token}return null}async getContext(){let t=await this.getAuthToken(),e=await this.getMessagingToken(),n=await this.getAppCheckToken();return{authToken:t,messagingToken:e,appCheckToken:n}}}/** 47 * @license 48 * Copyright 2017 Google LLC 49 * 50 * Licensed under the Apache License, Version 2.0 (the "License"); 51 * you may not use this file except in compliance with the License. 52 * You may obtain a copy of the License at 53 * 54 * http://www.apache.org/licenses/LICENSE-2.0 55 * 56 * Unless required by applicable law or agreed to in writing, software 57 * distributed under the License is distributed on an "AS IS" BASIS, 58 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 59 * See the License for the specific language governing permissions and 60 * limitations under the License. 61 */let l="us-central1";class u{constructor(t,e,n,i,r=l,s){this.app=t,this.fetchImpl=s,this.emulatorOrigin=null,this.contextProvider=new h(e,n,i),this.cancelAllRequests=new Promise(t=>{this.deleteService=()=>Promise.resolve(t())});try{let t=new URL(r);this.customDomain=t.origin,this.region=l}catch(t){this.customDomain=null,this.region=r}}_delete(){return this.deleteService()}_url(t){let e=this.app.options.projectId;if(null!==this.emulatorOrigin){let n=this.emulatorOrigin;return`${n}/${e}/${this.region}/${t}`}return null!==this.customDomain?`${this.customDomain}/${t}`:`https://${this.region}-${e}.cloudfunctions.net/${t}`}}let c="@firebase/functions",f="0.9.4";/** 62 * @license 63 * Copyright 2020 Google LLC 64 * 65 * Licensed under the Apache License, Version 2.0 (the "License");
66 * you may not use this file except in compliance with the License. 67 * You may obtain a copy of the License at 68 * 69 * http://www.apache.org/licenses/LICENSE-2.0 70 * 71 * Unless required by applicable law or agreed to in writing, software 72 * distributed under the License is distributed on an "AS IS" BASIS, 73 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 74 * See the License for the specific language governing permissions and 75 * limitations under the License. 76 */function p(t=(0,r.Mq)(),e=l){let n=(0,r.qX)((0,s.m9)(t),a),i=n.getImmediate({identifier:e}),o=(0,s.P0)("functions");return o&&function(t,e,n){(0,s.m9)(t).emulatorOrigin=`http://${e}:${n}`}(i,...o),i}i=fetch.bind(self),(0,r.Xd)(new o.wA(a,(t,{instanceIdentifier:e})=>{let n=t.getProvider("app").getImmediate(),r=t.getProvider("auth-internal"),s=t.getProvider("messaging-internal"),o=t.getProvider("app-check-internal");return new u(n,r,s,o,e,i)},"PUBLIC").setMultipleInstances(!0)),(0,r.KN)(c,f,void 0),(0,r.KN)(c,f,"esm2017")},6650:function(t,e,n){n.d(e,{oq:function(){return tR},Jt:function(){return tE},cF:function(){return tC},aF:function(){return tw},iH:function(){return tk},KV:function(){return tb},B0:function(){return tT}});var i,r,s,o,a=n(5816),h=n(4444),l=n(740);/** 77 * @license 78 * Copyright 2017 Google LLC 79 * 80 * Licensed under the Apache License, Version 2.0 (the "License"); 81 * you may not use this file except in compliance with the License. 82 * You may obtain a copy of the License at 83 * 84 * http://www.apache.org/licenses/LICENSE-2.0 85 * 86 * Unless required by applicable law or agreed to in writing, software 87 * distributed under the License is distributed on an "AS IS" BASIS, 88 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 89 * See the License for the specific language governing permissions and 90 * limitations under the License. 91 */let u="firebasestorage.googleapis.com",c="storageBucket";/** 92 * @license 93 * Copyright 2017 Google LLC 94 * 95 * Licensed under the Apache License, Version 2.0 (the "License"); 96 * you may not use this file except in compliance with the License. 97 * You may obtain a copy of the License at 98 * 99 * http://www.apache.org/licenses/LICENSE-2.0 100 * 101 * Unless required by applicable law or agreed to in writing, software 102 * distributed under the License is distributed on an "AS IS" BASIS, 103 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 104 * See the License for the specific language governing permissions and 105 * limitations under the License. 106 */class f extends h.ZR{constructor(t,e,n=0){super(p(t),`Firebase Storage: ${e} (${p(t)})`),this.status_=n,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,f.prototype)}get status(){return this.status_}set status(t){this.status_=t}_codeEquals(t){return p(t)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(t){this.customData.serverResponse=t,this.customData.serverResponse?this.message=`${this._baseMessage} 107${this.customData.serverResponse}`:this.message=this._baseMessage}}function p(t){return"storage/"+t}function d(){return new f(s.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function g(){return new f(s.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function m(){return new f(s.CANCELED,"User canceled the upload/download.")}function _(){return new f(s.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function y(t){return new f(s.INVALID_ARGUMENT,t)}function v(){return new f(s.APP_DELETED,"The Firebase app was deleted.")}function b(t,e){return new f(s.INVALID_FORMAT,"String does not match format '"+t+"': "+e)}function T(t){throw new f(s.INTERNAL_ERROR,"Internal error: "+t)}(i=s||(s={})).UNKNOWN="unknown",i.OBJECT_NOT_FOUND="object-not-found",i.BUCKET_NOT_FOUND="bucket-not-found",i.PROJECT_NOT_FOUND="project-not-found",i.QUOTA_EXCEEDED="quota-exceeded",i.UNAUTHENTICATED="unauthenticated",i.UNAUTHORIZED="unauthorized",i.UNAUTHORIZED_APP="unauthorized-app",i.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",i.INVALID_CHECKSUM="invalid-checksum",i.CANCELED="canceled",i.INVALID_EVENT_NAME="invalid-event-name",i.INVALID_URL="invalid-url",i.INVALID_DEFAULT_BUCKET="invalid-default-bucket",i.NO_DEFAULT_BUCKET="no-default-bucket",i.CANNOT_SLICE_BLOB="cannot-slice-blob",i.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",i.NO_DOWNLOAD_URL="no-download-url",i.INVALID_ARGUMENT="invalid-argument",i.INVALID_ARGUMENT_COUNT="invalid-argument-count",i.APP_DELETED="app-deleted",i.INVALID_ROOT_OPERATION="invalid-root-operation",i.INVALID_FORMAT="invalid-format",i.INTERNAL_ERROR="internal-error",i.UNSUPPORTED_ENVIRONMENT="unsupported-environment";/** 108 * @license 109 * Copyright 2017 Google LLC 110 * 111 * Licensed under the Apache License, Version 2.0 (the "License");
112 * you may not use this file except in compliance with the License. 113 * You may obtain a copy of the License at 114 * 115 * http://www.apache.org/licenses/LICENSE-2.0 116 * 117 * Unless required by applicable law or agreed to in writing, software 118 * distributed under the License is distributed on an "AS IS" BASIS, 119 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 120 * See the License for the specific language governing permissions and 121 * limitations under the License. 122 */class w{constructor(t,e){this.bucket=t,this.path_=e}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){let t=encodeURIComponent;return"/b/"+t(this.bucket)+"/o/"+t(this.path)}bucketOnlyServerUrl(){let t=encodeURIComponent;return"/b/"+t(this.bucket)+"/o"}static makeFromBucketSpec(t,e){let n;try{n=w.makeFromUrl(t,e)}catch(e){return new w(t,"")}if(""===n.path)return n;throw new f(s.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+t+"'.")}static makeFromUrl(t,e){let n=null,i="([A-Za-z0-9.\\-_]+)",r=RegExp("^gs://"+i+"(/(.*))?$","i");function o(t){t.path_=decodeURIComponent(t.path)}let a=e.replace(/[.]/g,"\\."),h=RegExp(`^https?://${a}/v[A-Za-z0-9_]+/b/${i}/o(/([^?#]*).*)?$`,"i"),l=RegExp(`^https?://${e===u?"(?:storage.googleapis.com|storage.cloud.google.com)":e}/${i}/([^?#]*)`,"i"),c=[{regex:r,indices:{bucket:1,path:3},postModify:function(t){"/"===t.path.charAt(t.path.length-1)&&(t.path_=t.path_.slice(0,-1))}},{regex:h,indices:{bucket:1,path:3},postModify:o},{regex:l,indices:{bucket:1,path:2},postModify:o}];for(let e=0;e<c.length;e++){let i=c[e],r=i.regex.exec(t);if(r){let t=r[i.indices.bucket],e=r[i.indices.path];e||(e=""),n=new w(t,e),i.postModify(n);break}}if(null==n)throw new f(s.INVALID_URL,"Invalid URL '"+t+"'.");return n}}class E{constructor(t){this.promise_=Promise.reject(t)}getPromise(){return this.promise_}cancel(t=!1){}}function R(t){return"string"==typeof t||t instanceof String}function k(t){return C()&&t instanceof Blob}function C(){return"undefined"!=typeof Blob&&!(0,h.UG)()}function O(t,e,n,i){if(i<e)throw y(`Invalid value for '${t}'. Expected ${e} or greater.`);if(i>n)throw y(`Invalid value for '${t}'. Expected ${n} or less.`)}/** 123 * @license 124 * Copyright 2017 Google LLC 125 * 126 * Licensed under the Apache License, Version 2.0 (the "License"); 127 * you may not use this file except in compliance with the License. 128 * You may obtain a copy of the License at 129 * 130 * http://www.apache.org/licenses/LICENSE-2.0 131 * 132 * Unless required by applicable law or agreed to in writing, software 133 * distributed under the License is distributed on an "AS IS" BASIS, 134 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 135 * See the License for the specific language governing permissions and 136 * limitations under the License. 137 */function S(t,e,n){let i=e;return null==n&&(i=`https://${e}`),`${n}://${i}/v0${t}`}function A(t){let e=encodeURIComponent,n="?";for(let i in t)if(t.hasOwnProperty(i)){let r=e(i)+"="+e(t[i]);n=n+r+"&"}return n.slice(0,-1)}/** 138 * @license 139 * Copyright 2022 Google LLC 140 * 141 * Licensed under the Apache License, Version 2.0 (the "License"); 142 * you may not use this file except in compliance with the License. 143 * You may obtain a copy of the License at 144 * 145 * http://www.apache.org/licenses/LICENSE-2.0 146 * 147 * Unless required by applicable law or agreed to in writing, software 148 * distributed under the License is distributed on an "AS IS" BASIS, 149 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 150 * See the License for the specific language governing permissions and 151 * limitations under the License. 152 */function I(t,e){let n=t>=500&&t<600,i=-1!==[408,429].indexOf(t),r=-1!==e.indexOf(t);return n||i||r}(r=o||(o={}))[r.NO_ERROR=0]="NO_ERROR",r[r.NETWORK_ERROR=1]="NETWORK_ERROR",r[r.ABORT=2]="ABORT";/** 153 * @license 154 * Copyright 2017 Google LLC 155 * 156 * Licensed under the Apache License, Version 2.0 (the "License"); 157 * you may not use this file except in compliance with the License. 158 * You may obtain a copy of the License at 159 * 160 * http://www.apache.org/licenses/LICENSE-2.0 161 * 162 * Unless required by applicable law or agreed to in writing, softw
162are 163 * distributed under the License is distributed on an "AS IS" BASIS, 164 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 165 * See the License for the specific language governing permissions and 166 * limitations under the License. 167 */class x{constructor(t,e,n,i,r,s,o,a,h,l,u,c=!0){this.url_=t,this.method_=e,this.headers_=n,this.body_=i,this.successCodes_=r,this.additionalRetryCodes_=s,this.callback_=o,this.errorCallback_=a,this.timeout_=h,this.progressCallback_=l,this.connectionFactory_=u,this.retry=c,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((t,e)=>{this.resolve_=t,this.reject_=e,this.start_()})}start_(){let t=(t,e)=>{let n=this.resolve_,i=this.reject_,r=e.connection;if(e.wasSuccessCode)try{let t=this.callback_(r,r.getResponse());void 0!==t?n(t):n()}catch(t){i(t)}else if(null!==r){let t=d();t.serverResponse=r.getErrorText(),i(this.errorCallback_?this.errorCallback_(r,t):t)}else if(e.canceled){let t=this.appDelete_?v():m();i(t)}else{let t=g();i(t)}};this.canceled_?t(!1,new U(!1,null,!0)):this.backoffId_=/** 168 * @license 169 * Copyright 2017 Google LLC 170 * 171 * Licensed under the Apache License, Version 2.0 (the "License"); 172 * you may not use this file except in compliance with the License. 173 * You may obtain a copy of the License at 174 * 175 * http://www.apache.org/licenses/LICENSE-2.0 176 * 177 * Unless required by applicable law or agreed to in writing, software 178 * distributed under the License is distributed on an "AS IS" BASIS, 179 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 180 * See the License for the specific language governing permissions and 181 * limitations under the License. 182 */function(t,e,n){let i=1,r=null,s=null,o=!1,a=0,h=!1;function l(...t){h||(h=!0,e.apply(null,t))}function u(e){r=setTimeout(()=>{r=null,t(f,2===a)},e)}function c(){s&&clearTimeout(s)}function f(t,...e){let n;if(h){c();return}if(t){c(),l.call(null,t,...e);return}let r=2===a||o;if(r){c(),l.call(null,t,...e);return}i<64&&(i*=2),1===a?(a=2,n=0):n=(i+Math.random())*1e3,u(n)}let p=!1;function d(t){!p&&(p=!0,c(),!h&&(null!==r?(t||(a=2),clearTimeout(r),u(0)):t||(a=1)))}return u(0),s=setTimeout(()=>{o=!0,d(!0)},n),d}((t,e)=>{if(e){t(!1,new U(!1,null,!0));return}let n=this.connectionFactory_();this.pendingConnection_=n;let i=t=>{let e=t.loaded,n=t.lengthComputable?t.total:-1;null!==this.progressCallback_&&this.progressCallback_(e,n)};null!==this.progressCallback_&&n.addUploadProgressListener(i),n.send(this.url_,this.method_,this.body_,this.headers_).then(()=>{null!==this.progressCallback_&&n.removeUploadProgressListener(i),this.pendingConnection_=null;let e=n.getErrorCode()===o.NO_ERROR,r=n.getStatus();if(!e||I(r,this.additionalRetryCodes_)&&this.retry){let e=n.getErrorCode()===o.ABORT;t(!1,new U(!1,null,e));return}let s=-1!==this.successCodes_.indexOf(r);t(!0,new U(s,n))})},t,this.timeout_)}getPromise(){return this.promise_}cancel(t){this.canceled_=!0,this.appDelete_=t||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class U{constructor(t,e,n){this.wasSuccessCode=t,this.connection=e,this.canceled=!!n}}function P(...t){let e="undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0;if(void 0!==e){let n=new e;for(let e=0;e<t.length;e++)n.append(t[e]);return n.getBlob()}if(C())return new Blob(t);throw new f(s.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to support creating Blobs")}/** 183 * @license 184 * Copyright 2017 Google LLC 185 * 186 * Licensed under the Apache License, Version 2.0 (the "License"); 187 * you may not use this file except in compliance with the License. 188 * You may obtain a copy of the License at 189 * 190 * http://www.apache.org/licenses/LICENSE-2.0 191 * 192 * Unless required by applicable law or agreed to in writing, software 193 * distributed under the License is distributed on an "AS IS" BASIS, 194 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 195 * See the License for the specific language governing permissions and 196 * limitations under the License. 197 */let N={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};class D{constructor(t,e){this.data=t,this.contentType=e||null}}function L(t){let e=[];for(let n=0;n<t.length;n++){let i=t.charCodeAt(n);if(i<=127)e.push(i);else if(i<=2047)e.push(192|i>>6,128|63&i);else if((64512&i)==55296){let r=n<t.length-1&&(64512&t.charCodeAt(n+1))==56320;if(r){let r=i,s=t.charCodeAt(++n);i=65536|(1023&r)<<10|1023&s,e.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i)}else e.push(239,191,189)}else(64512&i)==56320?e.push(239,191,189):e.push(224|i>>12,128|i>>6&63,128|63&i)}return new Uint8Array(e)}function j(t,e){let n;switch(t){case N.BASE64:{let n=-1!==e.indexOf("-"),i=-1!==e.indexOf("_");if(n||i)throw b(t,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break}case N.BASE64URL:{let n=-1!==e.indexOf("+"),i=-1!==e.indexOf("/");if(n||i)throw b(t,"Invalid character '"+(n?"+":"/")+"' found: is it base64 encoded?");e=e.replace(/-/g,"+").replace(/_/g,"/")}}try{n=/** 198 * @license 199 * Copyright 2021 Google LLC 200 * 201 * Licensed under the Apache License, Version 2.0 (the "License");
202 * you may not use this file except in compliance with the License. 203 * You may obtain a copy of the License at 204 * 205 * http://www.apache.org/licenses/LICENSE-2.0 206 * 207 * Unless required by applicable law or agreed to in writing, software 208 * distributed under the License is distributed on an "AS IS" BASIS, 209 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 210 * See the License for the specific language governing permissions and 211 * limitations under the License. 212 */function(t){if("undefined"==typeof atob)throw new f(s.UNSUPPORTED_ENVIRONMENT,"base-64 is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.");return atob(t)}(e)}catch(e){if(e.message.includes("polyfill"))throw e;throw b(t,"Invalid character found")}let i=new Uint8Array(n.length);for(let t=0;t<n.length;t++)i[t]=n.charCodeAt(t);return i}class M{constructor(t){this.base64=!1,this.contentType=null;let e=t.match(/^data:([^,]+)?,/);if(null===e)throw b(N.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");let n=e[1]||null;null!=n&&(this.base64=function(t,e){let n=t.length>=e.length;return!!n&&t.substring(t.length-e.length)===e}(n,";base64"),this.contentType=this.base64?n.substring(0,n.length-7):n),this.rest=t.substring(t.indexOf(",")+1)}}/** 213 * @license 214 * Copyright 2017 Google LLC 215 * 216 * Licensed under the Apache License, Version 2.0 (the "License"); 217 * you may not use this file except in compliance with the License. 218 * You may obtain a copy of the License at 219 * 220 * http://www.apache.org/licenses/LICENSE-2.0 221 * 222 * Unless required by applicable law or agreed to in writing, software 223 * distributed under the License is distributed on an "AS IS" BASIS, 224 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 225 * See the License for the specific language governing permissions and 226 * limitations under the License. 227 */class B{constructor(t,e){let n=0,i="";k(t)?(this.data_=t,n=t.size,i=t.type):t instanceof ArrayBuffer?(e?this.data_=new Uint8Array(t):(this.data_=new Uint8Array(t.byteLength),this.data_.set(new Uint8Array(t))),n=this.data_.length):t instanceof Uint8Array&&(e?this.data_=t:(this.data_=new Uint8Array(t.length),this.data_.set(t)),n=t.length),this.size_=n,this.type_=i}size(){return this.size_}type(){return this.type_}slice(t,e){if(k(this.data_)){let n=this.data_,i=n.webkitSlice?n.webkitSlice(t,e):n.mozSlice?n.mozSlice(t,e):n.slice?n.slice(t,e):null;return null===i?null:new B(i)}{let n=new Uint8Array(this.data_.buffer,t,e-t);return new B(n,!0)}}static getBlob(...t){if(C()){let e=t.map(t=>t instanceof B?t.data_:t);return new B(P.apply(null,e))}{let e=t.map(t=>R(t)?function(t,e){switch(t){case N.RAW:return new D(L(e));case N.BASE64:case N.BASE64URL:return new D(j(t,e));case N.DATA_URL:return new D(function(t){let e=new M(t);return e.base64?j(N.BASE64,e.rest):function(t){let e;try{e=decodeURIComponent(t)}catch(t){throw b(N.DATA_URL,"Malformed data URL.")}return L(e)}(e.rest)}(e),function(t){let e=new M(t);return e.contentType}(e))}throw d()}(N.RAW,t).data:t.data_),n=0;e.forEach(t=>{n+=t.byteLength});let i=new Uint8Array(n),r=0;return e.forEach(t=>{for(let e=0;e<t.length;e++)i[r++]=t[e]}),new B(i,!0)}}uploadData(){return this.data_}}/** 228 * @license 229 * Copyright 2017 Google LLC 230 * 231 * Licensed under the Apache License, Version 2.0 (the "License"); 232 * you may not use this file except in compliance with the License. 233 * You may obtain a copy of the License at 234 * 235 * http://www.apache.org/licenses/LICENSE-2.0 236 * 237 * Unless required by applicable law or agreed to in writing, software 238 * distributed under the License is distributed on an "AS IS" BASIS, 239 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 240 * See the License for the specific language governing permissions and 241 * limitations under the License. 242 */function H(t){var e;let n;try{n=JSON.parse(t)}catch(t){return null}return"object"!=typeof(e=n)||Array.isArray(e)?null:n}function F(t){let e=t.lastIndexOf("/",t.length-2);return -1===e?t:t.slice(e+1)}/** 243 * @license 244 * Copyright 2017 Google LLC 245 * 246 * Licensed under the Apache License, Version 2.0 (the "License");
247 * you may not use this file except in compliance with the License. 248 * You may obtain a copy of the License at 249 * 250 * http://www.apache.org/licenses/LICENSE-2.0 251 * 252 * Unless required by applicable law or agreed to in writing, software 253 * distributed under the License is distributed on an "AS IS" BASIS, 254 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 255 * See the License for the specific language governing permissions and 256 * limitations under the License. 257 */function X(t,e){return e}class q{constructor(t,e,n,i){this.server=t,this.local=e||t,this.writable=!!n,this.xform=i||X}}let $=null;function K(){if($)return $;let t=[];t.push(new q("bucket")),t.push(new q("generation")),t.push(new q("metageneration")),t.push(new q("name","fullPath",!0));let e=new q("name");e.xform=function(t,e){return!R(e)||e.length<2?e:F(e)},t.push(e);let n=new q("size");return n.xform=function(t,e){return void 0!==e?Number(e):e},t.push(n),t.push(new q("timeCreated")),t.push(new q("updated")),t.push(new q("md5Hash",null,!0)),t.push(new q("cacheControl",null,!0)),t.push(new q("contentDisposition",null,!0)),t.push(new q("contentEncoding",null,!0)),t.push(new q("contentLanguage",null,!0)),t.push(new q("contentType",null,!0)),t.push(new q("metadata","customMetadata",!0)),$=t}function G(t,e,n){let i=H(e);return null===i?null:function(t,e,n){let i={};i.type="file";let r=n.length;for(let t=0;t<r;t++){let r=n[t];i[r.local]=r.xform(i,e[r.server])}return Object.defineProperty(i,"ref",{get:function(){let e=i.bucket,n=i.fullPath,r=new w(e,n);return t._makeStorageReference(r)}}),i}(t,i,n)}function z(t,e){let n={},i=e.length;for(let r=0;r<i;r++){let i=e[r];i.writable&&(n[i.server]=t[i.local])}return JSON.stringify(n)}/** 258 * @license 259 * Copyright 2019 Google LLC 260 * 261 * Licensed under the Apache License, Version 2.0 (the "License"); 262 * you may not use this file except in compliance with the License. 263 * You may obtain a copy of the License at 264 * 265 * http://www.apache.org/licenses/LICENSE-2.0 266 * 267 * Unless required by applicable law or agreed to in writing, software 268 * distributed under the License is distributed on an "AS IS" BASIS, 269 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 270 * See the License for the specific language governing permissions and 271 * limitations under the License. 272 */let V="prefixes",J="items";class W{constructor(t,e,n,i){this.url=t,this.method=e,this.handler=n,this.timeout=i,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}/** 273 * @license 274 * Copyright 2017 Google LLC 275 * 276 * Licensed under the Apache License, Version 2.0 (the "License"); 277 * you may not use this file except in compliance with the License. 278 * You may obtain a copy of the License at 279 * 280 * http://www.apache.org/licenses/LICENSE-2.0 281 * 282 * Unless required by applicable law or agreed to in writing, software 283 * distributed under the License is distributed on an "AS IS" BASIS, 284 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 285 * See the License for the specific language governing permissions and 286 * limitations under the License. 287 */function Y(t){if(!t)throw d()}function Z(t,e){return function(n,i){let r=G(t,i,e);return Y(null!==r),r}}function Q(t){return function(e,n){var i,r;let o;return 401===e.getStatus()?o=e.getErrorText().includes("Firebase App Check token is invalid")?new f(s.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project."):new f(s.UNAUTHENTICATED,"User is not authenticated, please authenticate using Firebase Authentication and try again."):402===e.getStatus()?(i=t.bucket,o=new f(s.QUOTA_EXCEEDED,"Quota for bucket '"+i+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===e.getStatus()?(r=t.path,o=new f(s.UNAUTHORIZED,"User does not have permission to access '"+r+"'.")):o=n,o.status=e.getStatus(),o.serverResponse=n.serverResponse,o}}function tt(t){let e=Q(t);return function(n,i){let r=e(n,i);
287if(404===n.getStatus()){var o;o=t.path,r=new f(s.OBJECT_NOT_FOUND,"Object '"+o+"' does not exist.")}return r.serverResponse=i.serverResponse,r}}function te(t,e,n){let i=Object.assign({},n);return i.fullPath=t.path,i.size=e.size(),!i.contentType&&(i.contentType=e&&e.type()||"application/octet-stream"),i}function tn(t,e,n,i,r){let s=e.bucketOnlyServerUrl(),o={"X-Goog-Upload-Protocol":"multipart"},a=function(){let t="";for(let e=0;e<2;e++)t+=Math.random().toString().slice(2);return t}();o["Content-Type"]="multipart/related; boundary="+a;let h=te(e,i,r),l=z(h,n),u="--"+a+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+l+"\r\n--"+a+"\r\nContent-Type: "+h.contentType+"\r\n\r\n",c=B.getBlob(u,i,"\r\n--"+a+"--");if(null===c)throw _();let f={name:h.fullPath},p=S(s,t.host,t._protocol),d=t.maxUploadRetryTime,g=new W(p,"POST",Z(t,n),d);return g.urlParams=f,g.headers=o,g.body=c.uploadData(),g.errorHandler=Q(e),g}class ti{constructor(t,e,n,i){this.current=t,this.total=e,this.finalized=!!n,this.metadata=i||null}}function tr(t,e){let n=null;try{n=t.getResponseHeader("X-Goog-Upload-Status")}catch(t){Y(!1)}return Y(!!n&&-1!==(e||["active"]).indexOf(n)),n}let ts={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function to(t){switch(t){case"running":case"pausing":case"canceling":return ts.RUNNING;case"paused":return ts.PAUSED;case"success":return ts.SUCCESS;case"canceled":return ts.CANCELED;default:return ts.ERROR}}/** 288 * @license 289 * Copyright 2017 Google LLC 290 * 291 * Licensed under the Apache License, Version 2.0 (the "License"); 292 * you may not use this file except in compliance with the License. 293 * You may obtain a copy of the License at 294 * 295 * http://www.apache.org/licenses/LICENSE-2.0 296 * 297 * Unless required by applicable law or agreed to in writing, software 298 * distributed under the License is distributed on an "AS IS" BASIS, 299 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 300 * See the License for the specific language governing permissions and 301 * limitations under the License. 302 */class ta{constructor(t,e,n){"function"==typeof t||null!=e||null!=n?(this.next=t,this.error=null!=e?e:void 0,this.complete=null!=n?n:void 0):(this.next=t.next,this.error=t.error,this.complete=t.complete)}}/** 303 * @license 304 * Copyright 2017 Google LLC 305 * 306 * Licensed under the Apache License, Version 2.0 (the "License"); 307 * you may not use this file except in compliance with the License. 308 * You may obtain a copy of the License at 309 * 310 * http://www.apache.org/licenses/LICENSE-2.0 311 * 312 * Unless required by applicable law or agreed to in writing, software 313 * distributed under the License is distributed on an "AS IS" BASIS, 314 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 315 * See the License for the specific language governing permissions and 316 * limitations under the License. 317 */function th(t){return(...e)=>{Promise.resolve().then(()=>t(...e))}}class tl{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=o.NO_ERROR,this.sendPromise_=new Promise(t=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=o.ABORT,t()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=o.NETWORK_ERROR,t()}),this.xhr_.addEventListener("load",()=>{t()})})}send(t,e,n,i){if(this.sent_)throw T("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(e,t,!0),void 0!==i)for(let t in i)i.hasOwnProperty(t)&&this.xhr_.setRequestHeader(t,i[t].toString());return void 0!==n?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw T("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw T("cannot .getStatus() before sending");try{return this.xhr_.status}catch(t){return -1}}getResponse(){if(!this.sent_)throw T("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw T("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(t){return this.xhr_.getResponseHeader(t)}addUploadProgressListener(t){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",t)}removeUploadProgressListener(t){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",t)}}class tu extends tl{initXhr(){this.xhr_.responseType="text"}}function tc(){return new tu}/** 318 * @license 319 * Copyright 2017 Google LLC 320 * 321 * Licensed under the Apache License, Version 2.0 (the "License");
322 * you may not use this file except in compliance with the License. 323 * You may obtain a copy of the License at 324 * 325 * http://www.apache.org/licenses/LICENSE-2.0 326 * 327 * Unless required by applicable law or agreed to in writing, software 328 * distributed under the License is distributed on an "AS IS" BASIS, 329 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 330 * See the License for the specific language governing permissions and 331 * limitations under the License. 332 */class tf{constructor(t,e,n=null){this._transferred=0,this._needToFetchStatus=!1,this._needToFetchMetadata=!1,this._observers=[],this._error=void 0,this._uploadUrl=void 0,this._request=void 0,this._chunkMultiplier=1,this._resolve=void 0,this._reject=void 0,this._ref=t,this._blob=e,this._metadata=n,this._mappings=K(),this._resumable=this._shouldDoResumable(this._blob),this._state="running",this._errorHandler=t=>{if(this._request=void 0,this._chunkMultiplier=1,t._codeEquals(s.CANCELED))this._needToFetchStatus=!0,this.completeTransitions_();else{let e=this.isExponentialBackoffExpired();if(I(t.status,[])){if(e)t=g();else{this.sleepTime=Math.max(2*this.sleepTime,1e3),this._needToFetchStatus=!0,this.completeTransitions_();return}}this._error=t,this._transition("error")}},this._metadataErrorHandler=t=>{this._request=void 0,t._codeEquals(s.CANCELED)?this.completeTransitions_():(this._error=t,this._transition("error"))},this.sleepTime=0,this.maxSleepTime=this._ref.storage.maxUploadRetryTime,this._promise=new Promise((t,e)=>{this._resolve=t,this._reject=e,this._start()}),this._promise.then(null,()=>{})}isExponentialBackoffExpired(){return this.sleepTime>this.maxSleepTime}_makeProgressCallback(){let t=this._transferred;return e=>this._updateProgress(t+e)}_shouldDoResumable(t){return t.size()>262144}_start(){"running"===this._state&&void 0===this._request&&(this._resumable?void 0===this._uploadUrl?this._createResumable():this._needToFetchStatus?this._fetchStatus():this._needToFetchMetadata?this._fetchMetadata():this.pendingTimeout=setTimeout(()=>{this.pendingTimeout=void 0,this._continueUpload()},this.sleepTime):this._oneShotUpload())}_resolveToken(t){Promise.all([this._ref.storage._getAuthToken(),this._ref.storage._getAppCheckToken()]).then(([e,n])=>{switch(this._state){case"running":t(e,n);break;case"canceling":this._transition("canceled");break;case"pausing":this._transition("paused")}})}_createResumable(){this._resolveToken((t,e)=>{let n=function(t,e,n,i,r){let s=e.bucketOnlyServerUrl(),o=te(e,i,r),a={name:o.fullPath},h=S(s,t.host,t._protocol),l={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":`${i.size()}`,"X-Goog-Upload-Header-Content-Type":o.contentType,"Content-Type":"application/json; charset=utf-8"},u=z(o,n),c=t.maxUploadRetryTime,f=new W(h,"POST",function(t){let e;tr(t);try{e=t.getResponseHeader("X-Goog-Upload-URL")}catch(t){Y(!1)}return Y(R(e)),e},c);return f.urlParams=a,f.headers=l,f.body=u,f.errorHandler=Q(e),f}(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),i=this._ref.storage._makeRequest(n,tc,t,e);this._request=i,i.getPromise().then(t=>{this._request=void 0,this._uploadUrl=t,this._needToFetchStatus=!1,this.completeTransitions_()},this._errorHandler)})}_fetchStatus(){let t=this._uploadUrl;this._resolveToken((e,n)=>{let i=function(t,e,n,i){let r=t.maxUploadRetryTime,s=new W(n,"POST",function(t){let e=tr(t,["active","final"]),n=null;try{n=t.getResponseHeader("X-Goog-Upload-Size-Received")}catch(t){Y(!1)}n||Y(!1);let r=Number(n);return Y(!isNaN(r)),new ti(r,i.size(),"final"===e)},r);return s.headers={"X-Goog-Upload-Command":"query"},s.errorHandler=Q(e),s}(this._ref.storage,this._ref._location,t,this._blob),r=this._ref.storage._makeRequest(i,tc,e,n);this._request=r,r.getPromise().then(t=>{this._request=void 0,this._updateProgress(t.current),this._needToFetchStatus=!1,t.finalized&&(this._needToFetchMetadata=!0),this.completeTransitions_()},this._errorHandler)})}_continueUpload(){let t=262144*this._chunkMultiplier,e=new ti(this._transferred,this._blob.size()),n=this._uploadUrl;this._resolveToken((i,r)=>{let o;try{o=function(t,e,n,i,r,o,a,h){let l=new ti(0,0);if(a?(l.current=a.current,l.total=a.total):(l.current=0,l.total=i.size()),i.size()!==l.total)throw new f(s.SERVER_FILE_WRONG_SIZE,"Server recorded incorrect upload file size, please retry the upload.");let u=l.total-l.current,c=u;r>0&&(c=Math.min(c,r));let p=l.current,d=p+c,g="";g=0===c?"finalize":u===c?"upload, finalize":"upload";let m={"X-Goog-Upload-Command":g,"X-Goog-Upload-Offset":`${l.current}`},y=i.slice(p,d);if(null===y)throw _();let v=e.maxUploadRetryTime,b=new W(n,"POST",function(t,n){let r;let s=tr(t,["active","final"]),a=l.current+c,h=i.size();return r="final"===s?Z(e,o)(t,n):null,new ti(a,h,"final"===s,r)},v);return b.headers=m,b.body=y.uploadData(),b.progressCallback=h||null,b.errorHandler=Q(t),b}(this._ref._location,this._ref.storage,n,this._blob,t,this._mappings,e,this._makeProgressCallback())}catch(t){this._error=t,this._transition("error");return}
332let a=this._ref.storage._makeRequest(o,tc,i,r,!1);this._request=a,a.getPromise().then(t=>{this._increaseMultiplier(),this._request=void 0,this._updateProgress(t.current),t.finalized?(this._metadata=t.metadata,this._transition("success")):this.completeTransitions_()},this._errorHandler)})}_increaseMultiplier(){let t=262144*this._chunkMultiplier;2*t<33554432&&(this._chunkMultiplier*=2)}_fetchMetadata(){this._resolveToken((t,e)=>{let n=function(t,e,n){let i=e.fullServerUrl(),r=S(i,t.host,t._protocol),s=t.maxOperationRetryTime,o=new W(r,"GET",Z(t,n),s);return o.errorHandler=tt(e),o}(this._ref.storage,this._ref._location,this._mappings),i=this._ref.storage._makeRequest(n,tc,t,e);this._request=i,i.getPromise().then(t=>{this._request=void 0,this._metadata=t,this._transition("success")},this._metadataErrorHandler)})}_oneShotUpload(){this._resolveToken((t,e)=>{let n=tn(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),i=this._ref.storage._makeRequest(n,tc,t,e);this._request=i,i.getPromise().then(t=>{this._request=void 0,this._metadata=t,this._updateProgress(this._blob.size()),this._transition("success")},this._errorHandler)})}_updateProgress(t){let e=this._transferred;this._transferred=t,this._transferred!==e&&this._notifyObservers()}_transition(t){if(this._state!==t)switch(t){case"canceling":case"pausing":this._state=t,void 0!==this._request?this._request.cancel():this.pendingTimeout&&(clearTimeout(this.pendingTimeout),this.pendingTimeout=void 0,this.completeTransitions_());break;case"running":let e="paused"===this._state;this._state=t,e&&(this._notifyObservers(),this._start());break;case"paused":case"error":case"success":this._state=t,this._notifyObservers();break;case"canceled":this._error=m(),this._state=t,this._notifyObservers()}}completeTransitions_(){switch(this._state){case"pausing":this._transition("paused");break;case"canceling":this._transition("canceled");break;case"running":this._start()}}get snapshot(){let t=to(this._state);return{bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:t,metadata:this._metadata,task:this,ref:this._ref}}on(t,e,n,i){let r=new ta(e||void 0,n||void 0,i||void 0);return this._addObserver(r),()=>{this._removeObserver(r)}}then(t,e){return this._promise.then(t,e)}catch(t){return this.then(null,t)}_addObserver(t){this._observers.push(t),this._notifyObserver(t)}_removeObserver(t){let e=this._observers.indexOf(t);-1!==e&&this._observers.splice(e,1)}_notifyObservers(){this._finishPromise();let t=this._observers.slice();t.forEach(t=>{this._notifyObserver(t)})}_finishPromise(){if(void 0!==this._resolve){let t=!0;switch(to(this._state)){case ts.SUCCESS:th(this._resolve.bind(null,this.snapshot))();break;case ts.CANCELED:case ts.ERROR:let e=this._reject;th(e.bind(null,this._error))();break;default:t=!1}t&&(this._resolve=void 0,this._reject=void 0)}}_notifyObserver(t){let e=to(this._state);switch(e){case ts.RUNNING:case ts.PAUSED:t.next&&th(t.next.bind(t,this.snapshot))();break;case ts.SUCCESS:t.complete&&th(t.complete.bind(t))();break;case ts.CANCELED:case ts.ERROR:default:t.error&&th(t.error.bind(t,this._error))()}}resume(){let t="paused"===this._state||"pausing"===this._state;return t&&this._transition("running"),t}pause(){let t="running"===this._state;return t&&this._transition("pausing"),t}cancel(){let t="running"===this._state||"pausing"===this._state;return t&&this._transition("canceling"),t}}/** 333 * @license 334 * Copyright 2019 Google LLC 335 * 336 * Licensed under the Apache License, Version 2.0 (the "License"); 337 * you may not use this file except in compliance with the License. 338 * You may obtain a copy of the License at 339 * 340 * http://www.apache.org/licenses/LICENSE-2.0 341 * 342 * Unless required by applicable law or agreed to in writing, software 343 * distributed under the License is distributed on an "AS IS" BASIS, 344 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 345 * See the License for the specific language governing permissions and 346 * limitations under the License. 347 */class tp{constructor(t,e){this._service=t,e instanceof w?this._location=e:this._location=w.makeFromUrl(e,t.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(t,e){return new tp(t,e)}get root(){let t=new w(this._location.bucket,"");return this._newRef(this._service,t)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return F(this._location.path)}get storage(){return this._service}get parent(){let t=/** 348 * @license 349 * Copyright 2017 Google LLC 350 * 351 * Licensed under the Apache License, Version 2.0 (the "License");
352 * you may not use this file except in compliance with the License. 353 * You may obtain a copy of the License at 354 * 355 * http://www.apache.org/licenses/LICENSE-2.0 356 * 357 * Unless required by applicable law or agreed to in writing, software 358 * distributed under the License is distributed on an "AS IS" BASIS, 359 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 360 * See the License for the specific language governing permissions and 361 * limitations under the License. 362 */function(t){if(0===t.length)return null;let e=t.lastIndexOf("/");if(-1===e)return"";let n=t.slice(0,e);return n}(this._location.path);if(null===t)return null;let e=new w(this._location.bucket,t);return new tp(this._service,e)}_throwIfRoot(t){if(""===this._location.path)throw new f(s.INVALID_ROOT_OPERATION,"The operation '"+t+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}}async function td(t,e,n){let i=await function(t,e){null!=e&&"number"==typeof e.maxResults&&O("options.maxResults",1,1e3,e.maxResults);let n=e||{},i=function(t,e,n,i,r){var s;let o={};e.isRoot?o.prefix="":o.prefix=e.path+"/",n&&n.length>0&&(o.delimiter=n),i&&(o.pageToken=i),r&&(o.maxResults=r);let a=e.bucketOnlyServerUrl(),h=S(a,t.host,t._protocol),l=t.maxOperationRetryTime,u=new W(h,"GET",(s=e.bucket,function(e,n){let i=function(t,e,n){let i=H(n);return null===i?null:function(t,e,n){let i={prefixes:[],items:[],nextPageToken:n.nextPageToken};if(n[V])for(let r of n[V]){let n=r.replace(/\/$/,""),s=t._makeStorageReference(new w(e,n));i.prefixes.push(s)}if(n[J])for(let r of n[J]){let n=t._makeStorageReference(new w(e,r.name));i.items.push(n)}return i}(t,e,i)}(t,s,n);return Y(null!==i),i}),l);return u.urlParams=o,u.errorHandler=Q(e),u}(t.storage,t._location,"/",n.pageToken,n.maxResults);return t.storage.makeRequestWithTokens(i,tc)}(t,{pageToken:n});e.prefixes.push(...i.prefixes),e.items.push(...i.items),null!=i.nextPageToken&&await td(t,e,i.nextPageToken)}function tg(t,e){let n=null==e?void 0:e[c];return null==n?null:w.makeFromBucketSpec(n,t)}class tm{constructor(t,e,n,i,r){this.app=t,this._authProvider=e,this._appCheckProvider=n,this._url=i,this._firebaseVersion=r,this._bucket=null,this._host=u,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,null!=i?this._bucket=w.makeFromBucketSpec(i,this._host):this._bucket=tg(this._host,this.app.options)}get host(){return this._host}set host(t){this._host=t,null!=this._url?this._bucket=w.makeFromBucketSpec(this._url,t):this._bucket=tg(t,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(t){O("time",0,Number.POSITIVE_INFINITY,t),this._maxUploadRetryTime=t}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(t){O("time",0,Number.POSITIVE_INFINITY,t),this._maxOperationRetryTime=t}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;let t=this._authProvider.getImmediate({optional:!0});if(t){let e=await t.getToken();if(null!==e)return e.accessToken}return null}async _getAppCheckToken(){let t=this._appCheckProvider.getImmediate({optional:!0});if(t){let e=await t.getToken();return e.token}return null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(t=>t.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(t){return new tp(this,t)}_makeRequest(t,e,n,i,r=!0){if(this._deleted)return new E(v());{let s=function(t,e,n,i,r,s,o=!0){let a=A(t.urlParams),h=t.url+a,l=Object.assign({},t.headers);return e&&(l["X-Firebase-GMPID"]=e),null!==n&&n.length>0&&(l.Authorization="Firebase "+n),l["X-Firebase-Storage-Version"]="webjs/"+(null!=s?s:"AppManager"),null!==i&&(l["X-Firebase-AppCheck"]=i),new x(h,t.method,l,t.body,t.successCodes,t.additionalRetryCodes,t.handler,t.errorHandler,t.timeout,t.progressCallback,r,o)}(t,this._appId,n,i,e,this._firebaseVersion,r);return this._requests.add(s),s.getPromise().then(()=>this._requests.delete(s),()=>this._requests.delete(s)),s}}async makeRequestWithTokens(t,e){let[n,i]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);
362return this._makeRequest(t,e,n,i).getPromise()}}let t_="@firebase/storage",ty="0.11.2",tv="storage";function tb(t,e,n){return function(t,e,n){t._throwIfRoot("uploadBytes");let i=tn(t.storage,t._location,K(),new B(e,!0),n);return t.storage.makeRequestWithTokens(i,tc).then(e=>({metadata:e,ref:t}))}(t=(0,h.m9)(t),e,n)}function tT(t,e,n){var i;return(i=t=(0,h.m9)(t))._throwIfRoot("uploadBytesResumable"),new tf(i,new B(e),n)}function tw(t){return function(t){let e={prefixes:[],items:[]};return td(t,e).then(()=>e)}(t=(0,h.m9)(t))}function tE(t){return function(t){t._throwIfRoot("getDownloadURL");let e=function(t,e,n){let i=e.fullServerUrl(),r=S(i,t.host,t._protocol),s=t.maxOperationRetryTime,o=new W(r,"GET",function(e,i){let r=G(t,i,n);return Y(null!==r),function(t,e,n,i){let r=H(e);if(null===r||!R(r.downloadTokens))return null;let s=r.downloadTokens;if(0===s.length)return null;let o=encodeURIComponent,a=s.split(","),h=a.map(e=>{let r=t.bucket,s=t.fullPath,a="/b/"+o(r)+"/o/"+o(s),h=S(a,n,i),l=A({alt:"media",token:e});return h+l});return h[0]}(r,i,t.host,t._protocol)},s);return o.errorHandler=tt(e),o}(t.storage,t._location,K());return t.storage.makeRequestWithTokens(e,tc).then(t=>{if(null===t)throw new f(s.NO_DOWNLOAD_URL,"The given file does not have any download URLs.");return t})}(t=(0,h.m9)(t))}function tR(t){return function(t){t._throwIfRoot("deleteObject");let e=function(t,e){let n=e.fullServerUrl(),i=S(n,t.host,t._protocol),r=t.maxOperationRetryTime,s=new W(i,"DELETE",function(t,e){},r);return s.successCodes=[200,204],s.errorHandler=tt(e),s}(t.storage,t._location);return t.storage.makeRequestWithTokens(e,tc)}(t=(0,h.m9)(t))}function tk(t,e){return function(t,e){if(!(e&&/^[A-Za-z]+:\/\//.test(e)))return function t(e,n){if(e instanceof tm){if(null==e._bucket)throw new f(s.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+c+"' property when initializing the app?");let i=new tp(e,e._bucket);return null!=n?t(i,n):i}return void 0!==n?function(t,e){let n=function(t,e){let n=e.split("/").filter(t=>t.length>0).join("/");return 0===t.length?n:t+"/"+n}(t._location.path,e),i=new w(t._location.bucket,n);return new tp(t.storage,i)}(e,n):e}(t,e);if(t instanceof tm)return new tp(t,e);throw y("To use ref(service, url), the first argument must be a Storage instance.")}(t=(0,h.m9)(t),e)}function tC(t=(0,a.Mq)(),e){t=(0,h.m9)(t);let n=(0,a.qX)(t,tv),i=n.getImmediate({identifier:e}),r=(0,h.P0)("storage");return r&&function(t,e,n,i={}){!function(t,e,n,i={}){t.host=`${e}:${n}`,t._protocol="http";let{mockUserToken:r}=i;r&&(t._overrideAuthToken="string"==typeof r?r:(0,h.Sg)(r,t.app.options.projectId))}(t,e,n,i)}(i,...r),i}(0,a.Xd)(new l.wA(tv,function(t,{instanceIdentifier:e}){let n=t.getProvider("app").getImmediate(),i=t.getProvider("auth-internal"),r=t.getProvider("app-check-internal");return new tm(n,i,r,e,a.Jn)},"PUBLIC").setMultipleInstances(!0)),(0,a.KN)(t_,ty,""),(0,a.KN)(t_,ty,"esm2017")},7582:function(t,e,n){n.d(e,{_T:function(){return i}});function i(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&0>e.indexOf(i)&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)0>e.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n}"function"==typeof SuppressedError&&SuppressedError}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.