1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5920],{4444:function(t,e,r){"use strict";r.d(e,{$s:function(){return C},BH:function(){return v},L:function(){return u},LL:function(){return S},P0:function(){return m},Sg:function(){return b},ZR:function(){return T},aH:function(){return y},eu:function(){return I},hl:function(){return _},m9:function(){return k},ru:function(){return w},vZ:function(){return function t(e,r){if(e===r)return!0;let i=Object.keys(e),n=Object.keys(r);for(let s of i){if(!n.includes(s))return!1;let i=e[s],a=r[s];if(D(i)&&D(a)){if(!t(i,a))return!1}else if(i!==a)return!1}for(let t of n)if(!i.includes(t))return!1;return!0}},zI:function(){return E}});var i=r(3454);/** 2 * @license 3 * Copyright 2017 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 */let n=function(t){let e=[],r=0;for(let i=0;i<t.length;i++){let n=t.charCodeAt(i);n<128?e[r++]=n:n<2048?(e[r++]=n>>6|192,e[r++]=63&n|128):(64512&n)==55296&&i+1<t.length&&(64512&t.charCodeAt(i+1))==56320?(n=65536+((1023&n)<<10)+(1023&t.charCodeAt(++i)),e[r++]=n>>18|240,e[r++]=n>>12&63|128,e[r++]=n>>6&63|128,e[r++]=63&n|128):(e[r++]=n>>12|224,e[r++]=n>>6&63|128,e[r++]=63&n|128)}return e},s=function(t){let e=[],r=0,i=0;for(;r<t.length;){let n=t[r++];if(n<128)e[i++]=String.fromCharCode(n);else if(n>191&&n<224){let s=t[r++];e[i++]=String.fromCharCode((31&n)<<6|63&s)}else if(n>239&&n<365){let s=t[r++],a=t[r++],o=t[r++],l=((7&n)<<18|(63&s)<<12|(63&a)<<6|63&o)-65536;e[i++]=String.fromCharCode(55296+(l>>10)),e[i++]=String.fromCharCode(56320+(1023&l))}else{let s=t[r++],a=t[r++];e[i++]=String.fromCharCode((15&n)<<12|(63&s)<<6|63&a)}}return e.join("")},a={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(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();let r=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,i=[];for(let e=0;e<t.length;e+=3){let n=t[e],s=e+1<t.length,a=s?t[e+1]:0,o=e+2<t.length,l=o?t[e+2]:0,u=n>>2,h=(3&n)<<4|a>>4,c=(15&a)<<2|l>>6,f=63&l;o||(f=64,s||(c=64)),i.push(r[u],r[h],r[c],r[f])}return i.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(n(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):s(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();let r=e?this.charToByteMapWebSafe_:this.charToByteMap_,i=[];for(let e=0;e<t.length;){let n=r[t.charAt(e++)],s=e<t.length,a=s?r[t.charAt(e)]:0;++e;let l=e<t.length,u=l?r[t.charAt(e)]:64;++e;let h=e<t.length,c=h?r[t.charAt(e)]:64;if(++e,null==n||null==a||null==u||null==c)throw new o;let f=n<<2|a>>4;if(i.push(f),64!==u){let t=a<<4&240|u>>2;if(i.push(t),64!==c){let t=u<<6&192|c;i.push(t)}}}return i},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};
16class o extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}let l=function(t){let e=n(t);return a.encodeByteArray(e,!0)},u=function(t){return l(t).replace(/\./g,"")},h=function(t){try{return a.decodeString(t,!0)}catch(t){console.error("base64Decode failed: ",t)}return null},c=()=>/** 17 * @license 18 * Copyright 2022 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 */(function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw Error("Unable to locate global object.")})().__FIREBASE_DEFAULTS__,f=()=>{if(void 0===i||void 0===i.env)return;let t=i.env.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},d=()=>{let t;if("undefined"==typeof document)return;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(t){return}let e=t&&h(t[1]);return e&&JSON.parse(e)},p=()=>{try{return c()||f()||d()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},g=t=>{var e,r;return null===(r=null===(e=p())||void 0===e?void 0:e.emulatorHosts)||void 0===r?void 0:r[t]},m=t=>{let e=g(t);if(!e)return;let r=e.lastIndexOf(":");if(r<=0||r+1===e.length)throw Error(`Invalid host ${e} with no separate hostname and port!`);let i=parseInt(e.substring(r+1),10);return"["===e[0]?[e.substring(1,r-1),i]:[e.substring(0,r),i]},y=()=>{var t;return null===(t=p())||void 0===t?void 0:t.config};/** 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 v{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}wrapCallback(t){return(e,r)=>{e?this.reject(e):this.resolve(r),"function"==typeof t&&(this.promise.catch(()=>{}),1===t.length?t(e):t(e,r))}}}/** 47 * @license 48 * Copyright 2021 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 */function b(t,e){if(t.uid)throw Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');let r=e||"demo-project",i=t.iat||0,n=t.sub||t.user_id;if(!n)throw Error("mockUserToken must contain 'sub' or 'user_id' field!");let s=Object.assign({iss:`https://securetoken.google.com/${r}`,aud:r,iat:i,exp:i+3600,auth_time:i,sub:n,user_id:n,firebase:{sign_in_provider:"custom",identities:{}}},t);return[u(JSON.stringify({alg:"none",type:"JWT"})),u(JSON.stringify(s)),""].join(".")}function w(){let t="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof t&&void 0!==t.id}function _(){try{return"object"==typeof indexedDB}catch(t){return!1}}function I(){return new Promise((t,e)=>{try{let r=!0,i="validate-browser-context-for-indexeddb-analytics-module",n=self.indexedDB.open(i);n.onsuccess=()=>{n.result.close(),r||self.indexedDB.deleteDatabase(i),t(!0)},n.onupgradeneeded=()=>{r=!1},n.onerror=()=>{var t;e((null===(t=n.error)||void 0===t?void 0:t.message)||"")}}catch(t){e(t)}})}function E(){return"undefined"!=typeof navigator&&!!navigator.cookieEnabled}
61class T extends Error{constructor(t,e,r){super(e),this.code=t,this.customData=r,this.name="FirebaseError",Object.setPrototypeOf(this,T.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,S.prototype.create)}}class S{constructor(t,e,r){this.service=t,this.serviceName=e,this.errors=r}create(t,...e){let r=e[0]||{},i=`${this.service}/${t}`,n=this.errors[t],s=n?n.replace(A,(t,e)=>{let i=r[e];return null!=i?String(i):`<${e}?>`}):"Error",a=`${this.serviceName}: ${s} (${i}).`,o=new T(i,a,r);return o}}let A=/\{\$([^}]+)}/g;function D(t){return null!==t&&"object"==typeof t}function C(t,e=1e3,r=2){let i=e*Math.pow(r,t);return Math.min(144e5,i+Math.round(.5*i*(Math.random()-.5)*2))}/** 62 * @license 63 * Copyright 2021 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 k(t){return t&&t._delegate?t._delegate:t}},3454:function(t,e,r){"use strict";var i,n;t.exports=(null==(i=r.g.process)?void 0:i.env)&&"object"==typeof(null==(n=r.g.process)?void 0:n.env)?r.g.process:r(7663)},7663:function(t){!function(){var e={229:function(t){var e,r,i,n=t.exports={};function s(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function o(t){if(e===setTimeout)return setTimeout(t,0);if((e===s||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:s}catch(t){e=s}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var l=[],u=!1,h=-1;function c(){u&&i&&(u=!1,i.length?l=i.concat(l):h=-1,l.length&&f())}function f(){if(!u){var t=o(c);u=!0;for(var e=l.length;e;){for(i=l,l=[];++h<e;)i&&i[h].run();h=-1,e=l.length}i=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function p(){}n.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];l.push(new d(t,e)),1!==l.length||u||o(f)},d.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(t){return[]},n.binding=function(t){throw Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw Error("process.chdir is not supported")},n.umask=function(){return 0}}},r={};function i(t){var n=r[t];if(void 0!==n)return n.exports;var s=r[t]={exports:{}},a=!0;try{e[t](s,s.exports,i),a=!1}finally{a&&delete r[t]}return s.exports}i.ab="//";var n=i(229);t.exports=n}()},7632:function(t,e,r){"use strict";let i;r.d(e,{Z:function(){return u}});let n="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var s={randomUUID:n};let a=new Uint8Array(16);function o(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(a)}let l=[];for(let t=0;t<256;++t)l.push((t+256).toString(16).slice(1));var u=function(t,e,r){if(s.randomUUID&&!e&&!t)return s.randomUUID();t=t||{};let i=t.random||(t.rng||o)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){r=r||0;for(let t=0;t<16;++t)e[r+t]=i[t];return e}return function(t,e=0){return l[t[e+0]]+l[t[e+1]]+l[t[e+2]]+l[t[e+3]]+"-"+l[t[e+4]]+l[t[e+5]]+"-"+l[t[e+6]]+l[t[e+7]]+"-"+l[t[e+8]]+l[t[e+9]]+"-"+l[t[e+10]]+l[t[e+11]]+l[t[e+12]]+l[t[e+13]]+l[t[e+14]]+l[t[e+15]]}(i)}},7456:function(t,e,r){"use strict";let i,n;r.d(e,{Jn:function(){return N},qX:function(){return R},Xd:function(){return O},Mq:function(){return M},ZF:function(){return j},KN:function(){return P}});var s,a=r(740),o=r(3333),l=r(4444);let u=(t,e)=>e.some(e=>t instanceof e),h=new WeakMap,c=new WeakMap,f=new WeakMap,d=new WeakMap,p=new WeakMap,g={get(t,e,r){if(t instanceof IDBTransaction){if("done"===e)return c.get(t);if("objectStoreNames"===e)return t.objectStoreNames||f.get(t);if("store"===e)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return m(t[e])},set:(t,e,r)=>(t[e]=r,!0),has:(t,e)=>t instanceof IDBTransaction&&("done"===e||"store"===e)||e in t};function m(t){var e;if(t instanceof IDBRequest)return function(t){let e=new Promise((e,r)=>{let i=()=>{t.removeEventListener("success",n),t.removeEventListener("error",s)},n=()=>{e(m(t.result)),i()},s=()=>{r(t.error),i()};t.addEventListener("success",n),t.addEventListener("error",s)});return e.then(e=>{e instanceof IDBCursor&&h.set(e,t)}).catch(()=>{}),p.set(e,t),e}(t);if(d.has(t))return d.get(t);let r="function"==typeof(e=t)?e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(n||(n=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(y(this),t),m(h.get(this))}:function(...t){return m(e.apply(y(this),t))}:function(t,...r){let i=e.call(y(this),t,...r);return f.set(i,t.sort?t.sort():[t]),m(i)}:(e instanceof IDBTransaction&&function(t){if(c.has(t))return;let e=new Promise((e,r)=>{let i=()=>{t.removeEventListener("complete",n),t.removeEventListener("error",s),t.removeEventListener("abort",s)},n=()=>{e(),i()},s=()=>{r(t.error||new DOMException("AbortError","AbortError")),i()};t.addEventListener("complete",n),t.addEventListener("error",s),t.addEventListener("abort",s)});c.set(t,e)}(e),u(e,i||(i=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(e,g):e;return r!==t&&(d.set(t,r),p.set(r,t)),r}let y=t=>p.get(t),v=["get","getKey","getAll","getAllKeys","count"],b=["put","add","delete","clear"],w=new Map;function _(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&"string"==typeof e))return;if(w.get(e))return w.get(e);let r=e.replace(/FromIndex$/,""),i=e!==r,n=b.includes(r);if(!(r in(i?IDBIndex:IDBObjectStore).prototype)||!(n||v.includes(r)))return;let s=async function(t,...e){let s=this.transaction(t,n?"readwrite":"readonly"),a=s.store;
76return i&&(a=a.index(e.shift())),(await Promise.all([a[r](...e),n&&s.done]))[0]};return w.set(e,s),s}g={...s=g,get:(t,e,r)=>_(t,e)||s.get(t,e,r),has:(t,e)=>!!_(t,e)||s.has(t,e)};/** 77 * @license 78 * Copyright 2019 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 */class I{constructor(t){this.container=t}getPlatformInfoString(){let t=this.container.getProviders();return t.map(t=>{if(!function(t){let e=t.getComponent();return(null==e?void 0:e.type)==="VERSION"}(t))return null;{let e=t.getImmediate();return`${e.library}/${e.version}`}}).filter(t=>t).join(" ")}}let E="@firebase/app",T="0.9.19",S=new o.Yd("@firebase/app"),A="[DEFAULT]",D={[E]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},C=new Map,k=new Map;function O(t){let e=t.name;if(k.has(e))return S.debug(`There were multiple attempts to register component ${e}.`),!1;for(let r of(k.set(e,t),C.values()))!function(t,e){try{t.container.addComponent(e)}catch(r){S.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,r)}}(r,t);return!0}function R(t,e){let r=t.container.getProvider("heartbeat").getImmediate({optional:!0});return r&&r.triggerHeartbeat(),t.container.getProvider(e)}let x=new l.LL("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
91d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."});/** 92 * @license 93 * Copyright 2019 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 L{constructor(t,e,r){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},e),this._name=e.name,this._automaticDataCollectionEnabled=e.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new a.wA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw x.create("app-deleted",{appName:this._name})}}/** 107 * @license 108 * Copyright 2019 Google LLC 109 * 110 * Licensed under the Apache License, Version 2.0 (the "License"); 111 * you may not use this file except in compliance with the License. 112 * You may obtain a copy of the License at 113 * 114 * http://www.apache.org/licenses/LICENSE-2.0 115 * 116 * Unless required by applicable law or agreed to in writing, software 117 * distributed under the License is distributed on an "AS IS" BASIS, 118 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 119 * See the License for the specific language governing permissions and 120 * limitations under the License. 121 */let N="10.4.0";function j(t,e={}){let r=t;if("object"!=typeof e){let t=e;e={name:t}}let i=Object.assign({name:A,automaticDataCollectionEnabled:!1},e),n=i.name;if("string"!=typeof n||!n)throw x.create("bad-app-name",{appName:String(n)});if(r||(r=(0,l.aH)()),!r)throw x.create("no-options");let s=C.get(n);if(s){if((0,l.vZ)(r,s.options)&&(0,l.vZ)(i,s.config))return s;throw x.create("duplicate-app",{appName:n})}let o=new a.H0(n);for(let t of k.values())o.addComponent(t);let u=new L(r,i,o);return C.set(n,u),u}function M(t=A){let e=C.get(t);if(!e&&t===A&&(0,l.aH)())return j();if(!e)throw x.create("no-app",{appName:t});return e}function P(t,e,r){var i;let n=null!==(i=D[t])&&void 0!==i?i:t;r&&(n+=`-${r}`);let s=n.match(/\s|\//),o=e.match(/\s|\//);if(s||o){let t=[`Unable to register library "${n}" with version "${e}":`];
121s&&t.push(`library name "${n}" contains illegal characters (whitespace or "/")`),s&&o&&t.push("and"),o&&t.push(`version name "${e}" contains illegal characters (whitespace or "/")`),S.warn(t.join(" "));return}O(new a.wA(`${n}-version`,()=>({library:n,version:e}),"VERSION"))}let F="firebase-heartbeat-store",B=null;function V(){return B||(B=(function(t,e,{blocked:r,upgrade:i,blocking:n,terminated:s}={}){let a=indexedDB.open(t,1),o=m(a);return i&&a.addEventListener("upgradeneeded",t=>{i(m(a.result),t.oldVersion,t.newVersion,m(a.transaction),t)}),r&&a.addEventListener("blocked",t=>r(t.oldVersion,t.newVersion,t)),o.then(t=>{s&&t.addEventListener("close",()=>s()),n&&t.addEventListener("versionchange",t=>n(t.oldVersion,t.newVersion,t))}).catch(()=>{}),o})("firebase-heartbeat-database",0,{upgrade:(t,e)=>{0===e&&t.createObjectStore(F)}}).catch(t=>{throw x.create("idb-open",{originalErrorMessage:t.message})})),B}async function U(t){try{let e=await V(),r=await e.transaction(F).objectStore(F).get(H(t));return r}catch(t){if(t instanceof l.ZR)S.warn(t.message);else{let e=x.create("idb-get",{originalErrorMessage:null==t?void 0:t.message});S.warn(e.message)}}}async function $(t,e){try{let r=await V(),i=r.transaction(F,"readwrite"),n=i.objectStore(F);await n.put(e,H(t)),await i.done}catch(t){if(t instanceof l.ZR)S.warn(t.message);else{let e=x.create("idb-set",{originalErrorMessage:null==t?void 0:t.message});S.warn(e.message)}}}function H(t){return`${t.name}!${t.options.appId}`}class q{constructor(t){this.container=t,this._heartbeatsCache=null;let e=this.container.getProvider("app").getImmediate();this._storage=new X(e),this._heartbeatsCachePromise=this._storage.read().then(t=>(this._heartbeatsCache=t,t))}async triggerHeartbeat(){let t=this.container.getProvider("platform-logger").getImmediate(),e=t.getPlatformInfoString(),r=z();return(null===this._heartbeatsCache&&(this._heartbeatsCache=await this._heartbeatsCachePromise),this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some(t=>t.date===r))?void 0:(this._heartbeatsCache.heartbeats.push({date:r,agent:e}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(t=>{let e=new Date(t.date).valueOf(),r=Date.now();return r-e<=2592e6}),this._storage.overwrite(this._heartbeatsCache))}async getHeartbeatsHeader(){if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null===this._heartbeatsCache||0===this._heartbeatsCache.heartbeats.length)return"";let t=z(),{heartbeatsToSend:e,unsentEntries:r}=function(t,e=1024){let r=[],i=t.slice();for(let n of t){let t=r.find(t=>t.agent===n.agent);if(t){if(t.dates.push(n.date),W(r)>e){t.dates.pop();break}}else if(r.push({agent:n.agent,dates:[n.date]}),W(r)>e){r.pop();break}i=i.slice(1)}return{heartbeatsToSend:r,unsentEntries:i}}(this._heartbeatsCache.heartbeats),i=(0,l.L)(JSON.stringify({version:2,heartbeats:e}));return this._heartbeatsCache.lastSentHeartbeatDate=t,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}}function z(){let t=new Date;return t.toISOString().substring(0,10)}class X{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,l.hl)()&&(0,l.eu)().then(()=>!0).catch(()=>!1)}async read(){let t=await this._canUseIndexedDBPromise;if(!t)return{heartbeats:[]};{let t=await U(this.app);return t||{heartbeats:[]}}}async overwrite(t){var e;let r=await this._canUseIndexedDBPromise;if(r){let r=await this.read();return $(this.app,{lastSentHeartbeatDate:null!==(e=t.lastSentHeartbeatDate)&&void 0!==e?e:r.lastSentHeartbeatDate,heartbeats:t.heartbeats})}}async add(t){var e;let r=await this._canUseIndexedDBPromise;if(r){let r=await this.read();return $(this.app,{lastSentHeartbeatDate:null!==(e=t.lastSentHeartbeatDate)&&void 0!==e?e:r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...t.heartbeats]})}}}function W(t){return(0,l.L)(JSON.stringify({version:2,heartbeats:t})).length}O(new a.wA("platform-logger",t=>new I(t),"PRIVATE")),O(new a.wA("heartbeat",t=>new q(t),"PRIVATE")),P(E,T,""),P(E,T,"esm2017"),P("fire-js","")},740:function(t,e,r){"use strict";r.d(e,{H0:function(){return o},wA:function(){return n}});var i=r(4444);class n{constructor(t,e,r){this.name=t,this.instanceFactory=e,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}/** 122 * @license 123 * Copyright 2019 Google LLC 124 * 125 * Licensed under the Apache License, Version 2.0 (the "License");
126 * you may not use this file except in compliance with the License. 127 * You may obtain a copy of the License at 128 * 129 * http://www.apache.org/licenses/LICENSE-2.0 130 * 131 * Unless required by applicable law or agreed to in writing, software 132 * distributed under the License is distributed on an "AS IS" BASIS, 133 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 134 * See the License for the specific language governing permissions and 135 * limitations under the License. 136 */let s="[DEFAULT]";/** 137 * @license 138 * Copyright 2019 Google LLC 139 * 140 * Licensed under the Apache License, Version 2.0 (the "License"); 141 * you may not use this file except in compliance with the License. 142 * You may obtain a copy of the License at 143 * 144 * http://www.apache.org/licenses/LICENSE-2.0 145 * 146 * Unless required by applicable law or agreed to in writing, software 147 * distributed under the License is distributed on an "AS IS" BASIS, 148 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 149 * See the License for the specific language governing permissions and 150 * limitations under the License. 151 */class a{constructor(t,e){this.name=t,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){let e=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(e)){let t=new i.BH;if(this.instancesDeferred.set(e,t),this.isInitialized(e)||this.shouldAutoInitialize())try{let r=this.getOrInitializeService({instanceIdentifier:e});r&&t.resolve(r)}catch(t){}}return this.instancesDeferred.get(e).promise}getImmediate(t){var e;let r=this.normalizeInstanceIdentifier(null==t?void 0:t.identifier),i=null!==(e=null==t?void 0:t.optional)&&void 0!==e&&e;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(t){if(i)return null;throw t}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,this.shouldAutoInitialize()){if("EAGER"===t.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:s})}catch(t){}for(let[t,e]of this.instancesDeferred.entries()){let r=this.normalizeInstanceIdentifier(t);try{let t=this.getOrInitializeService({instanceIdentifier:r});e.resolve(t)}catch(t){}}}}clearInstance(t=s){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){let t=Array.from(this.instances.values());await Promise.all([...t.filter(t=>"INTERNAL"in t).map(t=>t.INTERNAL.delete()),...t.filter(t=>"_delete"in t).map(t=>t._delete())])}isComponentSet(){return null!=this.component}isInitialized(t=s){return this.instances.has(t)}getOptions(t=s){return this.instancesOptions.get(t)||{}}initialize(t={}){let{options:e={}}=t,r=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let i=this.getOrInitializeService({instanceIdentifier:r,options:e});for(let[t,e]of this.instancesDeferred.entries()){let n=this.normalizeInstanceIdentifier(t);r===n&&e.resolve(i)}return i}onInit(t,e){var r;let i=this.normalizeInstanceIdentifier(e),n=null!==(r=this.onInitCallbacks.get(i))&&void 0!==r?r:new Set;n.add(t),this.onInitCallbacks.set(i,n);let s=this.instances.get(i);return s&&t(s,i),()=>{n.delete(t)}}invokeOnInitCallbacks(t,e){let r=this.onInitCallbacks.get(e);if(r)for(let i of r)try{i(t,e)}catch(t){}}getOrInitializeService({instanceIdentifier:t,options:e={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:t===s?void 0:t,options:e}),this.instances.set(t,r),this.instancesOptions.set(t,e),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch(t){}return r||null}normalizeInstanceIdentifier(t=s){return this.component?this.component.multipleInstances?t:s:t}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}/** 152 * @license 153 * Copyright 2019 Google LLC 154 * 155 * Licensed under the Apache License, Version 2.0 (the "License");
156 * you may not use this file except in compliance with the License. 157 * You may obtain a copy of the License at 158 * 159 * http://www.apache.org/licenses/LICENSE-2.0 160 * 161 * Unless required by applicable law or agreed to in writing, software 162 * distributed under the License is distributed on an "AS IS" BASIS, 163 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 164 * See the License for the specific language governing permissions and 165 * limitations under the License. 166 */class o{constructor(t){this.name=t,this.providers=new Map}addComponent(t){let e=this.getProvider(t.name);if(e.isComponentSet())throw Error(`Component ${t.name} has already been registered with ${this.name}`);e.setComponent(t)}addOrOverwriteComponent(t){let e=this.getProvider(t.name);e.isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);let e=new a(t,this);return this.providers.set(t,e),e}getProviders(){return Array.from(this.providers.values())}}},3333:function(t,e,r){"use strict";var i,n;r.d(e,{Yd:function(){return h},in:function(){return i}});/** 167 * @license 168 * Copyright 2017 Google LLC 169 * 170 * Licensed under the Apache License, Version 2.0 (the "License"); 171 * you may not use this file except in compliance with the License. 172 * You may obtain a copy of the License at 173 * 174 * http://www.apache.org/licenses/LICENSE-2.0 175 * 176 * Unless required by applicable law or agreed to in writing, software 177 * distributed under the License is distributed on an "AS IS" BASIS, 178 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 179 * See the License for the specific language governing permissions and 180 * limitations under the License. 181 */let s=[];(n=i||(i={}))[n.DEBUG=0]="DEBUG",n[n.VERBOSE=1]="VERBOSE",n[n.INFO=2]="INFO",n[n.WARN=3]="WARN",n[n.ERROR=4]="ERROR",n[n.SILENT=5]="SILENT";let a={debug:i.DEBUG,verbose:i.VERBOSE,info:i.INFO,warn:i.WARN,error:i.ERROR,silent:i.SILENT},o=i.INFO,l={[i.DEBUG]:"log",[i.VERBOSE]:"log",[i.INFO]:"info",[i.WARN]:"warn",[i.ERROR]:"error"},u=(t,e,...r)=>{if(e<t.logLevel)return;let i=new Date().toISOString(),n=l[e];if(n)console[n](`[${i}] ${t.name}:`,...r);else throw Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class h{constructor(t){this.name=t,this._logLevel=o,this._logHandler=u,this._userLogHandler=null,s.push(this)}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in i))throw TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel="string"==typeof t?a[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if("function"!=typeof t)throw TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,i.DEBUG,...t),this._logHandler(this,i.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,i.VERBOSE,...t),this._logHandler(this,i.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,i.INFO,...t),this._logHandler(this,i.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,i.WARN,...t),this._logHandler(this,i.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,i.ERROR,...t),this._logHandler(this,i.ERROR,...t)}}},6640:function(t,e,r){"use strict";r.d(e,{FJ:function(){return rM},JJ:function(){return r$},UE:function(){return rj},ii:function(){return rU},jK:function(){return rP},ju:function(){return rB},kN:function(){return rV},tw:function(){return rF},z8:function(){return rH}});var i,n,s,a,o,l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},u={},h=h||{},c=l||self;function f(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 d(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}function p(t,e,r){return t.call.apply(t.bind,arguments)}function g(t,e,r){if(!t)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var r=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(r,i),t.apply(e,r)}}return function(){return t.apply(e,arguments)}}function m(t,e,r){return(m=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?p:g).apply(null,arguments)}
181function y(t,e){var r=Array.prototype.slice.call(arguments,1);return function(){var e=r.slice();return e.push.apply(e,arguments),t.apply(this,e)}}function v(t,e){function r(){}r.prototype=e.prototype,t.$=e.prototype,t.prototype=new r,t.prototype.constructor=t,t.ac=function(t,r,i){for(var n=Array(arguments.length-2),s=2;s<arguments.length;s++)n[s-2]=arguments[s];return e.prototype[r].apply(t,n)}}function b(){this.s=this.s,this.o=this.o}b.prototype.s=!1,b.prototype.sa=function(){this.s||(this.s=!0,this.N())},b.prototype.N=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 r=0;r<t.length;r++)if(r in t&&t[r]===e)return r;return -1};function _(t){let e=t.length;if(0<e){let r=Array(e);for(let i=0;i<e;i++)r[i]=t[i];return r}return[]}function I(t,e){for(let e=1;e<arguments.length;e++){let r=arguments[e];if(f(r)){let e=t.length||0,i=r.length||0;t.length=e+i;for(let n=0;n<i;n++)t[e+n]=r[n]}else t.push(r)}}function E(t,e){this.type=t,this.g=this.target=e,this.defaultPrevented=!1}E.prototype.h=function(){this.defaultPrevented=!0};var T=function(){if(!c.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{c.addEventListener("test",()=>{},e),c.removeEventListener("test",()=>{},e)}catch(t){}return t}();function S(t){return/^[\s\xa0]*$/.test(t)}function A(){var t=c.navigator;return t&&(t=t.userAgent)?t:""}function D(t){return -1!=A().indexOf(t)}function C(t){return C[" "](t),t}C[" "]=function(){};var k=D("Opera"),O=D("Trident")||D("MSIE"),R=D("Edge"),x=R||O,L=D("Gecko")&&!(-1!=A().toLowerCase().indexOf("webkit")&&!D("Edge"))&&!(D("Trident")||D("MSIE"))&&!D("Edge"),N=-1!=A().toLowerCase().indexOf("webkit")&&!D("Edge");function j(){var t=c.document;return t?t.documentMode:void 0}t:{var M,P="",F=(M=A(),L?/rv:([^\);]+)(\)|;)/.exec(M):R?/Edge\/([\d\.]+)/.exec(M):O?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(M):N?/WebKit\/(\S+)/.exec(M):k?/(?:Version)[ \/]?(\S+)/.exec(M):void 0);if(F&&(P=F?F[1]:""),O){var B=j();if(null!=B&&B>parseFloat(P)){n=String(B);break t}}n=P}var V=c.document&&O&&(j()||parseInt(n,10))||void 0;function U(t,e){if(E.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 r=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(L){t:{try{C(e.nodeName);var n=!0;break t}catch(t){}n=!1}n||(e=null)}}else"mouseover"==r?e=t.fromElement:"mouseout"==r&&(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:$[t.pointerType]||"",this.state=t.state,this.i=t,t.defaultPrevented&&U.$.h.call(this)}}v(U,E);var $={2:"touch",3:"pen",4:"mouse"};U.prototype.h=function(){U.$.h.call(this);var t=this.i;t.preventDefault?t.preventDefault():t.returnValue=!1};var H="closure_listenable_"+(1e6*Math.random()|0),q=0;function z(t,e,r,i,n){this.listener=t,this.proxy=null,this.src=e,this.type=r,this.capture=!!i,this.la=n,this.key=++q,this.fa=this.ia=!1}function X(t){t.fa=!0,t.listener=null,t.proxy=null,t.src=null,t.la=null}function W(t,e,r){for(let i in t)e.call(r,t[i],i,t)}function K(t){let e={};for(let r in t)e[r]=t[r];return e}let G="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleStr
181ing toString valueOf".split(" ");function J(t,e){let r,i;for(let e=1;e<arguments.length;e++){for(r in i=arguments[e])t[r]=i[r];for(let e=0;e<G.length;e++)r=G[e],Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}}function Y(t){this.src=t,this.g={},this.h=0}function Z(t,e){var r=e.type;if(r in t.g){var i,n=t.g[r],s=w(n,e);(i=0<=s)&&Array.prototype.splice.call(n,s,1),i&&(X(e),0==t.g[r].length&&(delete t.g[r],t.h--))}}function Q(t,e,r,i){for(var n=0;n<t.length;++n){var s=t[n];if(!s.fa&&s.listener==e&&!!r==s.capture&&s.la==i)return n}return -1}Y.prototype.add=function(t,e,r,i,n){var s=t.toString();(t=this.g[s])||(t=this.g[s]=[],this.h++);var a=Q(t,e,i,n);return -1<a?(e=t[a],r||(e.ia=!1)):((e=new z(e,this.src,s,!!i,n)).ia=r,t.push(e)),e};var tt="closure_lm_"+(1e6*Math.random()|0),te={};function tr(t,e,r,i,n,s){if(!e)throw Error("Invalid event type");var a=d(n)?!!n.capture:!!n,o=ta(t);if(o||(t[tt]=o=new Y(t)),(r=o.add(e,r,i,a,s)).proxy)return r;if(i=function t(e){return ts.call(t.src,t.listener,e)},r.proxy=i,i.src=t,i.listener=r,t.addEventListener)T||(n=a),void 0===n&&(n=!1),t.addEventListener(e.toString(),i,n);else if(t.attachEvent)t.attachEvent(tn(e.toString()),i);else if(t.addListener&&t.removeListener)t.addListener(i);else throw Error("addEventListener and attachEvent are unavailable.");return r}function ti(t){if("number"!=typeof t&&t&&!t.fa){var e=t.src;if(e&&e[H])Z(e.i,t);else{var r=t.type,i=t.proxy;e.removeEventListener?e.removeEventListener(r,i,t.capture):e.detachEvent?e.detachEvent(tn(r),i):e.addListener&&e.removeListener&&e.removeListener(i),(r=ta(e))?(Z(r,t),0==r.h&&(r.src=null,e[tt]=null)):X(t)}}}function tn(t){return t in te?te[t]:te[t]="on"+t}function ts(t,e){if(t.fa)t=!0;else{e=new U(e,this);var r=t.listener,i=t.la||t.src;t.ia&&ti(t),t=r.call(i,e)}return t}function ta(t){return(t=t[tt])instanceof Y?t:null}var to="__closure_events_fn_"+(1e9*Math.random()>>>0);function tl(t){return"function"==typeof t?t:(t[to]||(t[to]=function(e){return t.handleEvent(e)}),t[to])}function tu(){b.call(this),this.i=new Y(this),this.S=this,this.J=null}function th(t,e){var r,i=t.J;if(i)for(r=[];i;i=i.J)r.push(i);if(t=t.S,i=e.type||e,"string"==typeof e)e=new E(e,t);else if(e instanceof E)e.target=e.target||t;else{var n=e;J(e=new E(i,t),n)}if(n=!0,r)for(var s=r.length-1;0<=s;s--){var a=e.g=r[s];n=tc(a,i,!0,e)&&n}if(n=tc(a=e.g=t,i,!0,e)&&n,n=tc(a,i,!1,e)&&n,r)for(s=0;s<r.length;s++)n=tc(a=e.g=r[s],i,!1,e)&&n}function tc(t,e,r,i){if(!(e=t.i.g[String(e)]))return!0;e=e.concat();for(var n=!0,s=0;s<e.length;++s){var a=e[s];if(a&&!a.fa&&a.capture==r){var o=a.listener,l=a.la||a.src;a.ia&&Z(t.i,a),n=!1!==o.call(l,i)&&n}}return n&&!i.defaultPrevented}v(tu,b),tu.prototype[H]=!0,tu.prototype.removeEventListener=function(t,e,r,i){!function t(e,r,i,n,s){if(Array.isArray(r))for(var a=0;a<r.length;a++)t(e,r[a],i,n,s);else(n=d(n)?!!n.capture:!!n,i=tl(i),e&&e[H])?(e=e.i,(r=String(r).toString())in e.g&&-1<(i=Q(a=e.g[r],i,n,s))&&(X(a[i]),Array.prototype.splice.call(a,i,1),0==a.length&&(delete e.g[r],e.h--))):e&&(e=ta(e))&&(r=e.g[r.toString()],e=-1,r&&(e=Q(r,i,n,s)),(i=-1<e?r[e]:null)&&ti(i))}(this,t,e,r,i)},tu.prototype.N=function(){if(tu.$.N.call(this),this.i){var t,e=this.i;for(t in e.g){for(var r=e.g[t],i=0;i<r.length;i++)X(r[i]);delete e.g[t],e.h--}}this.J=null},tu.prototype.O=function(t,e,r,i){return this.i.add(String(t),e,!1,r,i)},tu.prototype.P=function(t,e,r,i){return this.i.add(String(t),e,!0,r,i)};var tf=c.JSON.stringify,td=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 tp,t=>t.reset());class tp{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}}let tg,tm=!1,ty=new class{constructor(){this.h=this.g=null}add(t,e){let r=td.get();r.set(t,e),this.h?this.h.next=r:this.g=r,this.h=r}},tv=()=>{let t=c.Promise.resolve(void 0);tg=()=>{t.then(tb)}};var tb=()=>{let t;for(;t=null,(e=ty).g&&(t=e.g,e.g=e.g.next,e.g||(e.h=null),t.next=null),r=t;){try{r.h.call(r.g)}catch(t){!function(t){c.setTimeout(()=>{throw t},0)}(t)}var e,r,i=td;i.j(r),100>i.h&&(i.h++,r.next=i.g,i.g=r)}tm=!1};function tw(t,e){tu.call(this),this.h=t||1,this.g=e||c,this.j=m(this.qb,this),this.l=Date.now()}function t_(t){t.ga=!1,t.T&&(t.g.clearTimeout(t.T),t.T=null)}function tI(t,e,r){if("function"==typeof t)r&&(t=m(t,r));else if(t&&"function"==typeof t.handleEvent)t=m(t.handleEvent,t);else throw Error("Invalid listener argument");return 2147483647<Number(e)?-1:c.setTimeout(t,e||0)}v(tw,tu),(o=tw.prototype).ga=!1,o.T=null,o.qb=function(){if(this.ga){var t=Date.now()-this.l;0<t&&t<.8*this.h?this.T=this.g.setTimeout(this.j,this.h-t):(this.T&&(this.g.clearTimeout(this.T),this.T=null),th(this,"tick"),this.ga&&(t_(this),this.start()))}},o.start=function(){this.ga=!0,this.T||(this.T=this.g.setTimeout(this.j,this.h),this.l=Date.now())},o.N=function(){tw.$.N.call(this),t_(this),delete this.g};class tE extends b{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=tI(()=>{e.g=null,e.i&&(e.i=!1,t(e))},e.j);let r=e.h;e.h=null,e.m.apply(null,r)}(this)}N(){super.N(),this.g&&(c.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function tT(t){b.call(this),this.h=t,this.g={}}v(tT,b);var tS=[];function tA(t,e,r,i){Array.isArray(r)||(r&&(tS[0]=r.toString()),r=tS);for(var n=0;n<r.length;n++){var s=function t(e,r,i,n,s){if(n&&n.once)return function t(e,r,i,n,s){if(Array.isArray(r)){for(var a=0;a<r.length;a++)t(e,r[a],i,n,s);return null}return i=tl(i),e&&e[H]?e.P(r,i,d(n)?!!n.capture:!!n,s):tr(e,r,i,!0,n,s)}(e,r,i,n,s);if(Array.isArray(r)){for(var a=0;a<r.length;a++)t(e,r[a],i,n,s);return null}return i=tl(i),e&&e[H]?e.O(r,i,d(n)?!!n.capture:!!n,s):tr(e,r,i,!1,n,s)}(e,r[n],i||t.handleEvent,!1,t.h||t);if(!s)break;t.g[s.key]=s}}function tD(t){W(t.g,function(t,e){this.g.hasOwnProperty(e)&&ti(t)},t),t.g={}}function tC(){this.g=!0}function tk(t,e,r,i){t.info(function(){return"XMLHTTP TEXT ("+e+"): "+function(t,e){if(!t.g)return e;if(!e)return null;try{var r=JSON.parse(e);if(r){for(t=0;t<r.length;t++)if(Array.isArray(r[t])){var i=r[t];if(!(2>i.length)){var n=i[1];if(Array.isArray(n)&&!(1>n.length)){var s=n[0];if("noop"!=s&&"stop"!=s&&"close"!=s)for(var a=1;a<n.length;a++)n[a]=""}}}}return tf(r)}catch(t){return e}}(t,r)+(i?" "+i:"")})}tT.prototype.N=function(){tT.$.N.call(this),tD(this)},tT.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},tC.prototype.Ea=function(){this.g=!1},tC.prototype.info=function(){};var tO={},tR=null;function tx(){return tR=tR||new tu}function tL(t){E.call(this,tO.Ta,t)}function tN(t){let e=tx();th(e,new tL(e))}function tj(t,e){E.call(this,tO.STAT_EVENT,t),this.stat=e}function tM(t){let e=tx();th(e,new tj(e,t))}function tP(t,e){E.call(this,tO.Ua,t),this.size=e}function tF(t,e){if("function"!=typeof t)throw Error("Fn must not be null and must be a function");return c.setTimeout(function(){t()},e)}tO.Ta="serverreachability",v(tL,E),tO.STAT_EVENT="statevent",v(tj,E),tO.Ua="timingevent",v(tP,E);var tB={NO_ERROR:0,rb:1,Eb:2,Db:3,yb:4,Cb:5,Fb:6,Qa:7,TIMEOUT:8,Ib:9}
181,tV={wb:"complete",Sb:"success",Ra:"error",Qa:"abort",Kb:"ready",Lb:"readystatechange",TIMEOUT:"timeout",Gb:"incrementaldata",Jb:"progress",zb:"downloadprogress",$b:"uploadprogress"};function tU(){}function t$(t){return t.h||(t.h=t.i())}function tH(){}tU.prototype.h=null;var tq={OPEN:"a",vb:"b",Ra:"c",Hb:"d"};function tz(){E.call(this,"d")}function tX(){E.call(this,"c")}function tW(){}function tK(t,e,r,i){this.l=t,this.j=e,this.m=r,this.W=i||1,this.U=new tT(this),this.P=tJ,t=x?125:void 0,this.V=new tw(t),this.I=null,this.i=!1,this.s=this.A=this.v=this.L=this.G=this.Y=this.B=null,this.F=[],this.g=null,this.C=0,this.o=this.u=null,this.ca=-1,this.J=!1,this.O=0,this.M=null,this.ba=this.K=this.aa=this.S=!1,this.h=new tG}function tG(){this.i=null,this.g="",this.h=!1}v(tz,E),v(tX,E),v(tW,tU),tW.prototype.g=function(){return new XMLHttpRequest},tW.prototype.i=function(){return{}},a=new tW;var tJ=45e3,tY={},tZ={};function tQ(t,e,r){t.L=1,t.v=eo(er(e)),t.s=r,t.S=!0,t0(t,null)}function t0(t,e){t.G=Date.now(),t9(t),t.A=er(t.v);var r=t.A,i=t.W;Array.isArray(i)||(i=[String(i)]),ew(r.i,"t",i),t.C=0,r=t.l.J,t.h=new tG,t.g=ru(t.l,r?e:null,!t.s),0<t.O&&(t.M=new tE(m(t.Pa,t,t.g),t.O)),tA(t.U,t.g,"readystatechange",t.nb),e=t.I?K(t.I):{},t.s?(t.u||(t.u="POST"),e["Content-Type"]="application/x-www-form-urlencoded",t.g.ha(t.A,t.u,t.s,e)):(t.u="GET",t.g.ha(t.A,t.u,null,e)),tN(),function(t,e,r,i,n,s){t.info(function(){if(t.g){if(s)for(var a="",o=s.split("&"),l=0;l<o.length;l++){var u=o[l].split("=");if(1<u.length){var h=u[0];u=u[1];var c=h.split("_");a=2<=c.length&&"type"==c[1]?a+(h+"=")+u+"&":a+(h+"=redacted&")}}else a=null}else a=s;return"XMLHTTP REQ ("+i+") [attempt "+n+"]: "+e+"\n"+r+"\n"+a})}(t.j,t.u,t.A,t.m,t.W,t.s)}function t1(t){return!!t.g&&"GET"==t.u&&2!=t.L&&t.l.Ha}function t2(t,e,r){let i=!0,n;for(;!t.J&&t.C<r.length;)if((n=function(t,e){var r=t.C,i=e.indexOf("\n",r);return -1==i?tZ:isNaN(r=Number(e.substring(r,i)))?tY:(i+=1)+r>e.length?tZ:(e=e.slice(i,i+r),t.C=i+r,e)}(t,r))==tZ){4==e&&(t.o=4,tM(14),i=!1),tk(t.j,t.m,null,"[Incomplete Response]");break}else if(n==tY){t.o=4,tM(15),tk(t.j,t.m,r,"[Invalid Chunk]"),i=!1;break}else tk(t.j,t.m,n,null),t3(t,n);t1(t)&&n!=tZ&&n!=tY&&(t.h.g="",t.C=0),4!=e||0!=r.length||t.h.h||(t.o=1,tM(16),i=!1),t.i=t.i&&i,i?0<r.length&&!t.ba&&(t.ba=!0,(e=t.l).g==t&&e.ca&&!e.M&&(e.l.info("Great, no buffering proxy detected. Bytes received: "+r.length),re(e),e.M=!0,tM(11))):(tk(t.j,t.m,r,"[Invalid Chunked Response]"),t7(t),t5(t))}function t9(t){t.Y=Date.now()+t.P,t4(t,t.P)}function t4(t,e){if(null!=t.B)throw Error("WatchDog timer not null");t.B=tF(m(t.lb,t),e)}function t6(t){t.B&&(c.clearTimeout(t.B),t.B=null)}function t5(t){0==t.l.H||t.J||rn(t.l,t)}function t7(t){t6(t);var e=t.M;e&&"function"==typeof e.sa&&e.sa(),t.M=null,t_(t.V),tD(t.U),t.g&&(e=t.g,t.g=null,e.abort(),e.sa())}function t3(t,e){try{var r=t.l;if(0!=r.H&&(r.g==t||eD(r.i,t))){if(!t.K&&eD(r.i,t)&&3==r.H){try{var i=r.Ja.g.parse(e)}catch(t){i=null}if(Array.isArray(i)&&3==i.length){var n=i;if(0==n[0]){t:if(!r.u){if(r.g){if(r.g.G+3e3<t.G)ri(r),e9(r);else break t}rt(r),tM(18)}}else r.Fa=n[1],0<r.Fa-r.V&&37500>n[2]&&r.G&&0==r.A&&!r.v&&(r.v=tF(m(r.ib,r),6e3));if(1>=eA(r.i)&&r.oa){try{r.oa()}catch(t){}r.oa=void 0}}else ra(r,11)}else if((t.K||r.g==t)&&ri(r),!S(e))for(n=r.Ja.g.parse(e),e=0;e<n.length;e++){let o=n[e];if(r.V=o[0],o=o[1],2==r.H){if("c"==o[0]){r.K=o[1],r.pa=o[2];let e=o[3];null!=e&&(r.ra=e,r.l.info("VER="+r.ra));let n=o[4];null!=n&&(r.Ga=n,r.l.info("SVER="+r.Ga));let l=o[5];null!=l&&"number"==typeof l&&0<l&&(i=1.5*l,r.L=i,r.l.info("backChannelRequestTimeoutMs_="+i)),i=r;let u=t.g;if(u){let t=u.g?u.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(t){var s=i.i;s.g||-1==t.indexOf("spdy")&&-1==t.indexOf("quic")&&-1==t.indexOf("h2")||(s.j=s.l,s.g=new Set,s.h&&(eC(s,s.h),s.h=null))}if(i.F){let t=u.g?u.g.getResponseHeader("X-HTTP-Session-Id"):null;t&&(i.Da=t,ea(i.I,i.F,t))}}if(r.H=3,r.h&&r.h.Ba(),r.ca&&(r.S=Date.now()-t.G,r.l.info("Handshake RTT: "+r.S+"ms")),(i=r).wa=rl(i,i.J?i.pa:null,i.Y),t.K){ek(i.i,t);var a=i.L;a&&t.setTimeout(a),t.B&&(t6(t),t9(t)),i.g=t}else e8(i);0<r.j.length&&e6(r)}else"stop"!=o[0]&&"close"!=o[0]||ra(r,7)}else 3==r.H&&("stop"==o[0]||"close"==o[0]?"stop"==o[0]?ra(r,7):e2(r):"noop"!=o[0]&&r.h&&r.h.Aa(o),r.A=0)}}tN(4)}catch(t){}}function t8(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(f(t)||"string"==typeof t)Array.prototype.forEach.call(t,e,void 0);else for(var r=function(t){if(t.ta&&"function"==typeof t.ta)return t.ta();if(!t.Z||"function"!=typeof t.Z){if("undefined"!=typeof Map&&t instanceof Map)return Array.from(t.keys());if(!("undefined"!=typeof Set&&t instanceof Set)){if(f(t)||"string"==typeof t){var e=[];t=t.length;for(var r=0;r<t;r++)e.push(r);return e}for(let i in e=[],r=0,t)e[r++]=i;return e}}}(t),i=function(t){if(t.Z&&"function"==typeof t.Z)return t.Z();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("");
181if(f(t)){for(var e=[],r=t.length,i=0;i<r;i++)e.push(t[i]);return e}for(i in e=[],r=0,t)e[r++]=t[i];return e}(t),n=i.length,s=0;s<n;s++)e.call(void 0,i[s],r&&r[s],t)}(o=tK.prototype).setTimeout=function(t){this.P=t},o.nb=function(t){t=t.target;let e=this.M;e&&3==eJ(t)?e.l():this.Pa(t)},o.Pa=function(t){try{if(t==this.g)t:{let h=eJ(this.g);var e=this.g.Ia();let f=this.g.da();if(!(3>h)&&(3!=h||x||this.g&&(this.h.h||this.g.ja()||eY(this.g)))){this.J||4!=h||7==e||(8==e||0>=f?tN(3):tN(2)),t6(this);var r=this.g.da();this.ca=r;e:if(t1(this)){var i=eY(this.g);t="";var n=i.length,s=4==eJ(this.g);if(!this.h.i){if("undefined"==typeof TextDecoder){t7(this),t5(this);var a="";break e}this.h.i=new c.TextDecoder}for(e=0;e<n;e++)this.h.h=!0,t+=this.h.i.decode(i[e],{stream:s&&e==n-1});i.splice(0,n),this.h.g+=t,this.C=0,a=this.h.g}else a=this.g.ja();if(this.i=200==r,function(t,e,r,i,n,s,a){t.info(function(){return"XMLHTTP RESP ("+i+") [ attempt "+n+"]: "+e+"\n"+r+"\n"+s+" "+a})}(this.j,this.u,this.A,this.m,this.W,h,r),this.i){if(this.aa&&!this.K){e:{if(this.g){var o,l=this.g;if((o=l.g?l.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!S(o)){var u=o;break e}}u=null}if(r=u)tk(this.j,this.m,r,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,t3(this,r);else{this.i=!1,this.o=3,tM(12),t7(this),t5(this);break t}}this.S?(t2(this,h,a),x&&this.i&&3==h&&(tA(this.U,this.V,"tick",this.mb),this.V.start())):(tk(this.j,this.m,a,null),t3(this,a)),4==h&&t7(this),this.i&&!this.J&&(4==h?rn(this.l,this):(this.i=!1,t9(this)))}else(function(t){let e={};t=(t.g&&2<=eJ(t)&&t.g.getAllResponseHeaders()||"").split("\r\n");for(let i=0;i<t.length;i++){if(S(t[i]))continue;var r=function(t){var e=1;t=t.split(":");let r=[];for(;0<e&&t.length;)r.push(t.shift()),e--;return t.length&&r.push(t.join(":")),r}(t[i]);let n=r[0];if("string"!=typeof(r=r[1]))continue;r=r.trim();let s=e[n]||[];e[n]=s,s.push(r)}!function(t,e){for(let r in t)e.call(void 0,t[r],r,t)}(e,function(t){return t.join(", ")})})(this.g),400==r&&0<a.indexOf("Unknown SID")?(this.o=3,tM(12)):(this.o=0,tM(13)),t7(this),t5(this)}}}catch(t){}finally{}},o.mb=function(){if(this.g){var t=eJ(this.g),e=this.g.ja();this.C<e.length&&(t6(this),t2(this,t,e),this.i&&4!=t&&t9(this))}},o.cancel=function(){this.J=!0,t7(this)},o.lb=function(){this.B=null;let t=Date.now();0<=t-this.Y?(function(t,e){t.info(function(){return"TIMEOUT: "+e})}(this.j,this.A),2!=this.L&&(tN(),tM(17)),t7(this),this.o=2,t5(this)):t4(this,this.Y-t)};var et=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function ee(t){if(this.g=this.s=this.j="",this.m=null,this.o=this.l="",this.h=!1,t instanceof ee){this.h=t.h,ei(this,t.j),this.s=t.s,this.g=t.g,en(this,t.m),this.l=t.l;var e=t.i,r=new em;r.i=e.i,e.g&&(r.g=new Map(e.g),r.h=e.h),es(this,r),this.o=t.o}else t&&(e=String(t).match(et))?(this.h=!1,ei(this,e[1]||"",!0),this.s=el(e[2]||""),this.g=el(e[3]||"",!0),en(this,e[4]),this.l=el(e[5]||"",!0),es(this,e[6]||"",!0),this.o=el(e[7]||"")):(this.h=!1,this.i=new em(null,this.h))}function er(t){return new ee(t)}function ei(t,e,r){t.j=r?el(e,!0):e,t.j&&(t.j=t.j.replace(/:$/,""))}function en(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 es(t,e,r){var i,n;e instanceof em?(t.i=e,i=t.i,(n=t.h)&&!i.j&&(ey(i),i.i=null,i.g.forEach(function(t,e){var r=e.toLowerCase();e!=r&&(ev(this,e),ew(this,r,t))},i)),i.j=n):(r||(e=eu(e,ep)),t.i=new em(e,t.h))}function ea(t,e,r){t.i.set(e,r)}function eo(t){return ea(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),t}function el(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function eu(t,e,r){return"string"==typeof t?(t=encodeURI(t).replace(e,eh),r&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function eh(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}ee.prototype.toString=function(){var t=[],e=this.j;e&&t.push(eu(e,ec,!0),":");var r=this.g;
181return(r||"file"==e)&&(t.push("//"),(e=this.s)&&t.push(eu(e,ec,!0),"@"),t.push(encodeURIComponent(String(r)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(r=this.m)&&t.push(":",String(r))),(r=this.l)&&(this.g&&"/"!=r.charAt(0)&&t.push("/"),t.push(eu(r,"/"==r.charAt(0)?ed:ef,!0))),(r=this.i.toString())&&t.push("?",r),(r=this.o)&&t.push("#",eu(r,eg)),t.join("")};var ec=/[#\/\?@]/g,ef=/[#\?:]/g,ed=/[#\?]/g,ep=/[#\?@]/g,eg=/#/g;function em(t,e){this.h=this.g=null,this.i=t||null,this.j=!!e}function ey(t){t.g||(t.g=new Map,t.h=0,t.i&&function(t,e){if(t){t=t.split("&");for(var r=0;r<t.length;r++){var i=t[r].indexOf("="),n=null;if(0<=i){var s=t[r].substring(0,i);n=t[r].substring(i+1)}else s=t[r];e(s,n?decodeURIComponent(n.replace(/\+/g," ")):"")}}}(t.i,function(e,r){t.add(decodeURIComponent(e.replace(/\+/g," ")),r)}))}function ev(t,e){ey(t),e=e_(t,e),t.g.has(e)&&(t.i=null,t.h-=t.g.get(e).length,t.g.delete(e))}function eb(t,e){return ey(t),e=e_(t,e),t.g.has(e)}function ew(t,e,r){ev(t,e),0<r.length&&(t.i=null,t.g.set(e_(t,e),_(r)),t.h+=r.length)}function e_(t,e){return e=String(e),t.j&&(e=e.toLowerCase()),e}(o=em.prototype).add=function(t,e){ey(this),this.i=null,t=e_(this,t);var r=this.g.get(t);return r||this.g.set(t,r=[]),r.push(e),this.h+=1,this},o.forEach=function(t,e){ey(this),this.g.forEach(function(r,i){r.forEach(function(r){t.call(e,r,i,this)},this)},this)},o.ta=function(){ey(this);let t=Array.from(this.g.values()),e=Array.from(this.g.keys()),r=[];for(let i=0;i<e.length;i++){let n=t[i];for(let t=0;t<n.length;t++)r.push(e[i])}return r},o.Z=function(t){ey(this);let e=[];
181if("string"==typeof t)eb(this,t)&&(e=e.concat(this.g.get(e_(this,t))));else{t=Array.from(this.g.values());for(let r=0;r<t.length;r++)e=e.concat(t[r])}return e},o.set=function(t,e){return ey(this),this.i=null,eb(this,t=e_(this,t))&&(this.h-=this.g.get(t).length),this.g.set(t,[e]),this.h+=1,this},o.get=function(t,e){return t&&0<(t=this.Z(t)).length?String(t[0]):e},o.toString=function(){if(this.i)return this.i;if(!this.g)return"";let t=[],e=Array.from(this.g.keys());for(var r=0;r<e.length;r++){var i=e[r];let s=encodeURIComponent(String(i)),a=this.Z(i);for(i=0;i<a.length;i++){var n=s;""!==a[i]&&(n+="="+encodeURIComponent(String(a[i]))),t.push(n)}}return this.i=t.join("&")};var eI=class{constructor(t,e){this.g=t,this.map=e}};function eE(t){this.l=t||eT,t=c.PerformanceNavigationTiming?0<(t=c.performance.getEntriesByType("navigation")).length&&("hq"==t[0].nextHopProtocol||"h2"==t[0].nextHopProtocol):!!(c.g&&c.g.Ka&&c.g.Ka()&&c.g.Ka().dc),this.j=t?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}var eT=10;function eS(t){return!!t.h||!!t.g&&t.g.size>=t.j}function eA(t){return t.h?1:t.g?t.g.size:0}function eD(t,e){return t.h?t.h==e:!!t.g&&t.g.has(e)}function eC(t,e){t.g?t.g.add(e):t.h=e}function ek(t,e){t.h&&t.h==e?t.h=null:t.g&&t.g.has(e)&&t.g.delete(e)}function eO(t){if(null!=t.h)return t.i.concat(t.h.F);if(null!=t.g&&0!==t.g.size){let e=t.i;for(let r of t.g.values())e=e.concat(r.F);return e}return _(t.i)}eE.prototype.cancel=function(){if(this.i=eO(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()}};var eR=class{stringify(t){return c.JSON.stringify(t,void 0)}parse(t){return c.JSON.parse(t,void 0)}};function ex(){this.g=new eR}function eL(t,e,r,i,n){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,n(i)}catch(t){}}function eN(t){this.l=t.ec||null,this.j=t.ob||!1}function ej(t,e){tu.call(this),this.F=t,this.u=e,this.m=void 0,this.readyState=eM,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}v(eN,tU),eN.prototype.g=function(){return new ej(this.l,this.j)},eN.prototype.i=(i={},function(){return i}),v(ej,tu);var eM=0;function eP(t){t.j.read().then(t.Xa.bind(t)).catch(t.ka.bind(t))}function eF(t){t.readyState=4,t.l=null,t.j=null,t.A=null,eB(t)}function eB(t){t.onreadystatechange&&t.onreadystatechange.call(t)}(o=ej.prototype).open=function(t,e){if(this.readyState!=eM)throw this.abort(),Error("Error reopening a connection");this.C=t,this.B=e,this.readyState=1,eB(this)},o.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.F||c).fetch(new Request(this.B,e)).then(this.$a.bind(this),this.ka.bind(this))},o.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,eF(this)),this.readyState=eM},o.$a=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,eB(this)),this.g&&(this.readyState=3,eB(this),this.g))){if("arraybuffer"===this.responseType)t.arrayBuffer().then(this.Ya.bind(this),this.ka.bind(this));else if(void 0!==c.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;eP(this)}else t.text().then(this.Za.bind(this),this.ka.bind(this))}},o.Xa=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?eF(this):eB(this),3==this.readyState&&eP(this)}},o.Za=function(t){this.g&&(this.response=this.responseText=t,eF(this))},o.Ya=function(t){this.g&&(this.response=t,eF(this))},o.ka=function(){this.g&&eF(this)},o.setRequestHeader=function(t,e){this.v.append(t,e)},o.getResponseHeader=function(t){return this.h&&this.h.get(t.toLowerCase())||""},o.getAllResponseHeaders=function(){if(!this.h)return"";let t=[],e=this.h.entries();for(var r=e.next();!r.done;)t.push((r=r.value)[0]+": "+r[1]),r=e.next();return t.join("\r\n")},Object.defineProperty(ej.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(t){this.m=t?"include":"same-origin"}});var eV=c.JSON.parse;function eU(t){tu.call(this),this.headers=new Map,this.u=t||null,this.h=!1,this.C=this.g=null,this.I="",this.m=0,this.j="",this.l=this.G=this.v=this.F=!1,this.B=0,this.A=null,this.K=e$,this.L=this.M=!1}v(eU,tu);var e$="",eH=/^https?$/i,eq=["POST","PUT"];function ez(t,e){t.h=!1,t.g&&(t.l=!0,t.g.abort(),t.l=!1),t.j=e,t.m=5,eX(t),eK(t)}function eX(t){t.F||(t.F=!0,th(t,"complete"),th(t,"error"))}function eW(t){if(t.h&&void 0!==h&&(!t.C[1]||4!=eJ(t)||2!=t.da())){if(t.v&&4==eJ(t))tI(t.La,0,t);else if(th(t,"readystatechange"),4==eJ(t)){t.h=!1;try{let a=t.da();t:switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var e,r,i=!0;break t;default:i=!1}
181if(!(e=i)){if(r=0===a){var n=String(t.I).match(et)[1]||null;!n&&c.self&&c.self.location&&(n=c.self.location.protocol.slice(0,-1)),r=!eH.test(n?n.toLowerCase():"")}e=r}if(e)th(t,"complete"),th(t,"success");else{t.m=6;try{var s=2<eJ(t)?t.g.statusText:""}catch(t){s=""}t.j=s+" ["+t.da()+"]",eX(t)}}finally{eK(t)}}}}function eK(t,e){if(t.g){eG(t);let r=t.g,i=t.C[0]?()=>{}:null;t.g=null,t.C=null,e||th(t,"ready");try{r.onreadystatechange=i}catch(t){}}}function eG(t){t.g&&t.L&&(t.g.ontimeout=null),t.A&&(c.clearTimeout(t.A),t.A=null)}function eJ(t){return t.g?t.g.readyState:0}function eY(t){try{if(!t.g)return null;if("response"in t.g)return t.g.response;switch(t.K){case e$:case"text":return t.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in t.g)return t.g.mozResponseArrayBuffer}return null}catch(t){return null}}function eZ(t){let e="";return W(t,function(t,r){e+=r+":"+t+"\r\n"}),e}function eQ(t,e,r){t:{for(i in r){var i=!1;break t}i=!0}i||(r=eZ(r),"string"==typeof t?null!=r&&encodeURIComponent(String(r)):ea(t,e,r))}function e0(t,e,r){return r&&r.internalChannelParams&&r.internalChannelParams[t]||e}function e1(t){this.Ga=0,this.j=[],this.l=new tC,this.pa=this.wa=this.I=this.Y=this.g=this.Da=this.F=this.na=this.o=this.U=this.s=null,this.fb=this.W=0,this.cb=e0("failFast",!1,t),this.G=this.v=this.u=this.m=this.h=null,this.aa=!0,this.Fa=this.V=-1,this.ba=this.A=this.C=0,this.ab=e0("baseRetryDelayMs",5e3,t),this.hb=e0("retryDelaySeedMs",1e4,t),this.eb=e0("forwardChannelMaxRetries",2,t),this.xa=e0("forwardChannelRequestTimeoutMs",2e4,t),this.va=t&&t.xmlHttpFactory||void 0,this.Ha=t&&t.useFetchStreams||!1,this.L=void 0,this.J=t&&t.supportsCrossDomainXhr||!1,this.K="",this.i=new eE(t&&t.concurrentRequestLimit),this.Ja=new ex,this.P=t&&t.fastHandshake||!1,this.O=t&&t.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.bb=t&&t.bc||!1,t&&t.Ea&&this.l.Ea(),t&&t.forceLongPolling&&(this.aa=!1),this.ca=!this.P&&this.aa&&t&&t.detectBufferingProxy||!1,this.qa=void 0,t&&t.longPollingTimeout&&0<t.longPollingTimeout&&(this.qa=t.longPollingTimeout),this.oa=void 0,this.S=0,this.M=!1,this.ma=this.B=null}function e2(t){if(e4(t),3==t.H){var e=t.W++,r=er(t.I);if(ea(r,"SID",t.K),ea(r,"RID",e),ea(r,"TYPE","terminate"),e7(t,r),(e=new tK(t,t.l,e)).L=2,e.v=eo(er(r)),r=!1,c.navigator&&c.navigator.sendBeacon)try{r=c.navigator.sendBeacon(e.v.toString(),"")}catch(t){}!r&&c.Image&&((new Image).src=e.v,r=!0),r||(e.g=ru(e.l,null),e.g.ha(e.v)),e.G=Date.now(),t9(e)}ro(t)}function e9(t){t.g&&(re(t),t.g.cancel(),t.g=null)}function e4(t){e9(t),t.u&&(c.clearTimeout(t.u),t.u=null),ri(t),t.i.cancel(),t.m&&("number"==typeof t.m&&c.clearTimeout(t.m),t.m=null)}function e6(t){if(!eS(t.i)&&!t.m){t.m=!0;var e=t.Na;tg||tv(),tm||(tg(),tm=!0),ty.add(e,t),t.C=0}}function e5(t,e){var r;r=e?e.m:t.W++;let i=er(t.I);ea(i,"SID",t.K),ea(i,"RID",r),ea(i,"AID",t.V),e7(t,i),t.o&&t.s&&eQ(i,t.o,t.s),r=new tK(t,t.l,r,t.C+1),null===t.o&&(r.I=t.s),e&&(t.j=e.F.concat(t.j)),e=e3(t,r,1e3),r.setTimeout(Math.round(.5*t.xa)+Math.round(.5*t.xa*Math.random())),eC(t.i,r),tQ(r,i,e)}function e7(t,e){t.na&&W(t.na,function(t,r){ea(e,r,t)}),t.h&&t8({},function(t,r){ea(e,r,t)})}function e3(t,e,r){r=Math.min(t.j.length,r);var i=t.h?m(t.h.Va,t.h,t):null;t:{var n=t.j;let e=-1;for(;;){let t=["count="+r];-1==e?0<r?(e=n[0].g,t.push("ofs="+e)):e=0:t.push("ofs="+e);let s=!0;for(let a=0;a<r;a++){let r=n[a].g,o=n[a].map;if(0>(r-=e))e=Math.max(0,n[a].g-100),s=!1;else try{!function(t,e,r){let i=r||"";try{t8(t,function(t,r){let n=t;d(t)&&(n=tf(t)),e.push(i+r+"="+encodeURIComponent(n))})}catch(t){throw e.push(i+"type="+encodeURIComponent("_badmap")),t}}(o,t,"req"+r+"_")}catch(t){i&&i(o)}}if(s){i=t.join("&");break t}}}return t=t.j.splice(0,r),e.F=t,i}function e8(t){if(!t.g&&!t.u){t.ba=1;var e=t.Ma;tg||tv(),tm||(tg(),tm=!0),ty.add(e,t),t.A=0}}function rt(t){return!t.g&&!t.u&&!(3<=t.A)&&(t.ba++,t.u=tF(m(t.Ma,t),rs(t,t.A)),t.A++,!0)}function re(t){null!=t.B&&(c.clearTimeout(t.B),t.B=null)}function rr(t){t.g=new tK(t,t.l,"rpc",t.ba),null===t.o&&(t.g.I=t.s),t.g.O=0;var e=er(t.wa);ea(e,"RID","rpc"),ea(e,"SID",t.K),ea(e,"AID",t.V),ea(e,"CI",t.G?"0":"1"),!t.G&&t.qa&&ea(e,"TO",t.qa),ea(e,"TYPE","xmlhttp"),e7(t,e),t.o&&t.s&&eQ(e,t.o,t.s),t.L&&t.g.setTimeout(t.L);var r=t.g;t=t.pa,r.L=1,r.v=eo(er(e)),r.s=null,r.S=!0,t0(r,t)}function ri(t){null!=t.v&&(c.clearTimeout(t.v),t.v=null)}function rn(t,e){var r=null;if(t.g==e){ri(t),re(t),t.g=null;var i=2}else{if(!eD(t.i,e))return;r=e.F,ek(t.i,e),i=1}if(0!=t.H){if(e.i){if(1==i){r=e.s?e.s.length:0,e=Date.now()-e.G;var n,s,a=t.C;th(i=tx(),new tP(i,r)),e6(t)}else e8(t)}else if(3==(a=e.o)||0==a&&0<e.ca||!(1==i&&(n=t,s=e,!(eA(n.i)>=n.i.j-(n.m?1:0))&&(n.m?(n.j=s.F.concat(n.j),!0):1!=n.H&&2!=n.H&&!(n.C>=(n.cb?0:n.eb))&&(n.m=tF(m(n.Na,n,s),rs(n,n.C)),n.C++,!0)))||2==i&&rt(t)))switch(r&&0<r.length&&((e=t.i).i=e.i.concat(r)),a){case 1:ra(t,5);break;case 4:ra(t,10);break;case 3:ra(t,6);break;default:ra(t,2)}}}function rs(t,e){let r=t.ab+Math.floor(Math.random()*t.hb);return t.isActive()||(r*=2),r*e}function ra(t,e){if(t.l.info("Error code "+e),2==e){var r=null;t.h&&(r=null);var i=m(t.pb,t);r||(r=new ee("//www.google.com/images/cleardot.gif"),c.location&&"http"==c.location.protocol||ei(r,"https"),eo(r)),function(t,e){let r=new tC;if(c.Image){let i=new Image;i.onload=y(eL,r,i,"TestLoadImage: loaded",!0,e),i.onerror=y(eL,r,i,"TestLoadImage: error",!1,e),i.onabort=y(eL,r,i,"TestLoadImage: abort",!1,e),i.ontimeout=y(eL,r,i,"TestLoadImage: timeout",!1,e),c.setTimeout(function(){i.ontimeout&&i.ontimeout()},1e4),i.src=t}else e(!1)}(r.toString(),i)}else tM(2);t.H=0,t.h&&t.h.za(e),ro(t),e4(t)}function ro(t){if(t.H=0,t.ma=[],t.h){let e=eO(t.i);(0!=e.length||0!=t.j.length)&&(I(t.ma,e),I(t.ma,t.j),t.i.i.length=0,_(t.j),t.j.length=0),t.h.ya()}}function rl(t,e,r){var i=r instanceof ee?er(r):new ee(r);if(""!=i.g)e&&(i.g=e+"."+i.g),en(i,i.m);else{var n=c.location;i=n.protocol,e=e?e+"."+n.hostname:n.hostname,n=+n.port;var s=new ee(null);i&&ei(s,i),e&&(s.g=e),n&&en(s,n),r&&(s.l=r),i=s}return r=t.F,e=t.Da,r&&e&&ea(i,r,e),ea(i,"VER",t.ra),e7(t,i),i}function ru(t,e,r){if(e&&!t.J)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new eU(r&&t.Ha&&!t.va?new eN({ob:!0}):t.va)).Oa(t.J),e}function rh(){}
181function rc(){if(O&&!(10<=Number(V)))throw Error("Environmental error: no available transport.")}function rf(t,e){tu.call(this),this.g=new e1(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.Ca&&(t?t["X-WebChannel-Client-Profile"]=e.Ca:t={"X-WebChannel-Client-Profile":e.Ca}),this.g.U=t,(t=e&&e.cc)&&!S(t)&&(this.g.o=t),this.A=e&&e.supportsCrossDomainXhr||!1,this.v=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!S(e)&&(this.g.F=e,null!==(t=this.h)&&e in t&&e in(t=this.h)&&delete t[e]),this.j=new rg(this)}function rd(t){tz.call(this),t.__headers__&&(this.headers=t.__headers__,this.statusCode=t.__status__,delete t.__headers__,delete t.__status__);var e=t.__sm__;if(e){t:{for(let r in e){t=r;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 rp(){tX.call(this),this.status=1}function rg(t){this.g=t}function rm(){this.blockSize=-1,this.blockSize=64,this.g=[,,,,],this.m=Array(this.blockSize),this.i=this.h=0,this.reset()}function ry(t,e,r){r||(r=0);var i=Array(16);if("string"==typeof e)for(var n=0;16>n;++n)i[n]=e.charCodeAt(r++)|e.charCodeAt(r++)<<8|e.charCodeAt(r++)<<16|e.charCodeAt(r++)<<24;else for(n=0;16>n;++n)i[n]=e[r++]|e[r++]<<8|e[r++]<<16|e[r++]<<24;e=t.g[0],r=t.g[1],n=t.g[2];var s=t.g[3],a=e+(s^r&(n^s))+i[0]+3614090360&4294967295;a=s+(n^(e=r+(a<<7&4294967295|a>>>25))&(r^n))+i[1]+3905402710&4294967295,a=n+(r^(s=e+(a<<12&4294967295|a>>>20))&(e^r))+i[2]+606105819&4294967295,a=r+(e^(n=s+(a<<17&4294967295|a>>>15))&(s^e))+i[3]+3250441966&4294967295,a=e+(s^(r=n+(a<<22&4294967295|a>>>10))&(n^s))+i[4]+4118548399&4294967295,a=s+(n^(e=r+(a<<7&4294967295|a>>>25))&(r^n))+i[5]+1200080426&4294967295,a=n+(r^(s=e+(a<<12&4294967295|a>>>20))&(e^r))+i[6]+2821735955&4294967295,a=r+(e^(n=s+(a<<17&4294967295|a>>>15))&(s^e))+i[7]+4249261313&4294967295,a=e+(s^(r=n+(a<<22&4294967295|a>>>10))&(n^s))+i[8]+1770035416&4294967295,a=s+(n^(e=r+(a<<7&4294967295|a>>>25))&(r^n))+i[9]+2336552879&4294967295,a=n+(r^(s=e+(a<<12&4294967295|a>>>20))&(e^r))+i[10]+4294925233&4294967295,a=r+(e^(n=s+(a<<17&4294967295|a>>>15))&(s^e))+i[11]+2304563134&4294967295,a=e+(s^(r=n+(a<<22&4294967295|a>>>10))&(n^s))+i[12]+1804603682&4294967295,a=s+(n^(e=r+(a<<7&4294967295|a>>>25))&(r^n))+i[13]+4254626195&4294967295,a=n+(r^(s=e+(a<<12&4294967295|a>>>20))&(e^r))+i[14]+2792965006&4294967295,a=r+(e^(n=s+(a<<17&4294967295|a>>>15))&(s^e))+i[15]+1236535329&4294967295,r=n+(a<<22&4294967295|a>>>10),a=e+(n^s&(r^n))+i[1]+4129170786&4294967295,e=r+(a<<5&4294967295|a>>>27),a=s+(r^n&(e^r))+i[6]+3225465664&4294967295,s=e+(a<<9&4294967295|a>>>23),a=n+(e^r&(s^e))+i[11]+643717713&4294967295,n=s+(a<<14&4294967295|a>>>18),a=r+(s^e&(n^s))+i[0]+3921069994&4294967295,r=n+(a<<20&4294967295|a>>>12),a=e+(n^s&(r^n))+i[5]+3593408605&4294967295,e=r+(a<<5&4294967295|a>>>27),a=s+(r^n&(e^r))+i[10]+38016083&4294967295,s=e+(a<<9&4294967295|a>>>23),a=n+(e^r&(s^e))+i[15]+3634488961&4294967295,n=s+(a<<14&4294967295|a>>>18),a=r+(s^e&(n^s))+i[4]+3889429448&4294967295,r=n+(a<<20&4294967295|a>>>12),a=e+(n^s&(r^n))+i[9]+568446438&4294967295,e=r+(a<<5&4294967295|a>>>27),a=s+(r^n&(e^r))+i[14]+3275163606&4294967295,s=e+(a<<9&4294967295|a>>>23),a=n+(e^r&(s^e))+i[3]+4107603335&4294967295,n=s+(a<<14&4294967295|a>>>18),a=r+(s^e&(n^s))+i[8]+1163531501&4294967295,r=n+(a<<20&4294967295|a>>>12),a=e+(n^s&(r^n))+i[13]+2850285829&4294967295,e=r+(a<<5&4294967295|a>>>27),a=s+(r^n&(e^r))+i[2]+4243563512&4294967295,s=e+(a<<9&4294967295|a>>>23),a=n+(e^r&(s^e))+i[7]+1735328473&4294967295,n=s+(a<<14&4294967295|a>>>18),a=r+(s^e&(n^s))+i[12]+2368359562&4294967295,a=e+((r=n+(a<<20&4294967295|a>>>12))^n^s)+i[5]+4294588738&4294967295,a=s+((e=r+(a<<4&4294967295|a>>>28))^r^n)+i[8]+2272392833&4294967295,a=n+((s=e+(a<<11&4294967295|a>>>21))^e^r)+i[11]+1839030562&4294967295,a=r+((n=s+(a<<16&4294967295|a>>>16))^s^e)+i[14]+4259657740&4294967295,a=e+((r=n+(a<<23&4294967295|a>>>9))^n^s)+i[1]+2763975236&4294967295,a=s+((e=r+(a<<4&4294967295|a>>>28))^r^n)+i[4]+1272893353&4294967295,a=n+((s=e+(a<<11&4294967295|a>>>21))^e^r)+i[7]+4139469664&4294967295,a=r+((n=s+(a<<16&4294967295|a>>>16))^s^e)+i[10]+3200236656&4294967295,a=e+((r=n+(a<<23&4294967295|a>>>9))^n^s)+i[13]+681279174&4294967295,a=s+((e=r+(a<<4&4294967295|a>>>28))^r^n)+i[0]+3936430074&4294967295,a=n+((s=e+(a<<11&4294967295|a>>>21))^e^r)+i[3]+3572445317&4294967295,a=r+((n=s+(a<<16&4294967295|a>>>16))^s^e)+i[6]+76029189&4294967295,a=e+((r=n+(a<<23&4294967295|a>>>9))^n^s)+i[9]+3654602809&4294967295,a=s+((e=r+(a<<4&4294967295|a>>>28))^r^n)+i[12]+3873151461&4294967295,a=n+((s=e+(a<<11&4294967295|a>>>21))^e^r)+i[15]+530742520&4294967295,a=r+((n=s+(a<<16&4294967295|a>>>16))^s^e)+i[2]+3299628645&4294967295,r=n+(a<<23&4294967295|a>>>
1819),a=e+(n^(r|~s))+i[0]+4096336452&4294967295,e=r+(a<<6&4294967295|a>>>26),a=s+(r^(e|~n))+i[7]+1126891415&4294967295,s=e+(a<<10&4294967295|a>>>22),a=n+(e^(s|~r))+i[14]+2878612391&4294967295,n=s+(a<<15&4294967295|a>>>17),a=r+(s^(n|~e))+i[5]+4237533241&4294967295,r=n+(a<<21&4294967295|a>>>11),a=e+(n^(r|~s))+i[12]+1700485571&4294967295,e=r+(a<<6&4294967295|a>>>26),a=s+(r^(e|~n))+i[3]+2399980690&4294967295,s=e+(a<<10&4294967295|a>>>22),a=n+(e^(s|~r))+i[10]+4293915773&4294967295,n=s+(a<<15&4294967295|a>>>17),a=r+(s^(n|~e))+i[1]+2240044497&4294967295,r=n+(a<<21&4294967295|a>>>11),a=e+(n^(r|~s))+i[8]+1873313359&4294967295,e=r+(a<<6&4294967295|a>>>26),a=s+(r^(e|~n))+i[15]+4264355552&4294967295,s=e+(a<<10&4294967295|a>>>22),a=n+(e^(s|~r))+i[6]+2734768916&4294967295,n=s+(a<<15&4294967295|a>>>17),a=r+(s^(n|~e))+i[13]+1309151649&4294967295,r=n+(a<<21&4294967295|a>>>11),a=e+(n^(r|~s))+i[4]+4149444226&4294967295,e=r+(a<<6&4294967295|a>>>26),a=s+(r^(e|~n))+i[11]+3174756917&4294967295,s=e+(a<<10&4294967295|a>>>22),a=n+(e^(s|~r))+i[2]+718787259&4294967295,n=s+(a<<15&4294967295|a>>>17),a=r+(s^(n|~e))+i[9]+3951481745&4294967295,t.g[0]=t.g[0]+e&4294967295,t.g[1]=t.g[1]+(n+(a<<21&4294967295|a>>>11))&4294967295,t.g[2]=t.g[2]+n&4294967295,t.g[3]=t.g[3]+s&4294967295}function rv(t,e){this.h=e;for(var r=[],i=!0,n=t.length-1;0<=n;n--){var s=0|t[n];i&&s==e||(r[n]=s,i=!1)}this.g=r}(o=eU.prototype).Oa=function(t){this.M=t},o.ha=function(t,e,r,i){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.I+"; newUri="+t);e=e?e.toUpperCase():"GET",this.I=t,this.j="",this.m=0,this.F=!1,this.h=!0,this.g=this.u?this.u.g():a.g(),this.C=this.u?t$(this.u):t$(a),this.g.onreadystatechange=m(this.La,this);try{this.G=!0,this.g.open(e,String(t),!0),this.G=!1}catch(t){ez(this,t);return}if(t=r||"",r=new Map(this.headers),i){if(Object.getPrototypeOf(i)===Object.prototype)for(var n in i)r.set(n,i[n]);else if("function"==typeof i.keys&&"function"==typeof i.get)for(let t of i.keys())r.set(t,i.get(t));else throw Error("Unknown input type for opt_headers: "+String(i))}for(let[s,a]of(i=Array.from(r.keys()).find(t=>"content-type"==t.toLowerCase()),n=c.FormData&&t instanceof c.FormData,!(0<=w(eq,e))||i||n||r.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),r))this.g.setRequestHeader(s,a);this.K&&(this.g.responseType=this.K),"withCredentials"in this.g&&this.g.withCredentials!==this.M&&(this.g.withCredentials=this.M);try{var s;eG(this),0<this.B&&((this.L=(s=this.g,O&&"number"==typeof s.timeout&&void 0!==s.ontimeout))?(this.g.timeout=this.B,this.g.ontimeout=m(this.ua,this)):this.A=tI(this.ua,this.B,this)),this.v=!0,this.g.send(t),this.v=!1}catch(t){ez(this,t)}},o.ua=function(){void 0!==h&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,th(this,"timeout"),this.abort(8))},o.abort=function(t){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=t||7,th(this,"complete"),th(this,"abort"),eK(this))},o.N=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),eK(this,!0)),eU.$.N.call(this)},o.La=function(){this.s||(this.G||this.v||this.l?eW(this):this.kb())},o.kb=function(){eW(this)},o.isActive=function(){return!!this.g},o.da=function(){try{return 2<eJ(this)?this.g.status:-1}catch(t){return -1}},o.ja=function(){try{return this.g?this.g.responseText:""}catch(t){return""}},o.Wa=function(t){if(this.g){var e=this.g.responseText;return t&&0==e.indexOf(t)&&(e=e.substring(t.length)),eV(e)}},o.Ia=function(){return this.m},o.Sa=function(){return"string"==typeof this.j?this.j:String(this.j)},(o=e1.prototype).ra=8,o.H=1,o.Na=function(t){if(this.m){if(this.m=null,1==this.H){if(!t){this.W=Math.floor(1e5*Math.random()),t=this.W++;let n=new tK(this,this.l,t),s=this.s;if(this.U&&(s?J(s=K(s),this.U):s=this.U),null!==this.o||this.O||(n.I=s,s=null),this.P)t:{for(var e=0,r=0;r<this.j.length;r++){e:{var i=this.j[r];if("__data__"in i.map&&"string"==typeof(i=i.map.__data__)){i=i.length;break e}i=void 0}if(void 0===i)break;if(4096<(e+=i)){e=r;break t}if(4096===e||r===this.j.length-1){e=r+1;break t}}e=1e3}else e=1e3;
181e=e3(this,n,e),ea(r=er(this.I),"RID",t),ea(r,"CVER",22),this.F&&ea(r,"X-HTTP-Session-Id",this.F),e7(this,r),s&&(this.O?e="headers="+encodeURIComponent(String(eZ(s)))+"&"+e:this.o&&eQ(r,this.o,s)),eC(this.i,n),this.bb&&ea(r,"TYPE","init"),this.P?(ea(r,"$req",e),ea(r,"SID","null"),n.aa=!0,tQ(n,r,null)):tQ(n,r,e),this.H=2}}else 3==this.H&&(t?e5(this,t):0==this.j.length||eS(this.i)||e5(this))}},o.Ma=function(){if(this.u=null,rr(this),this.ca&&!(this.M||null==this.g||0>=this.S)){var t=2*this.S;this.l.info("BP detection timer enabled: "+t),this.B=tF(m(this.jb,this),t)}},o.jb=function(){this.B&&(this.B=null,this.l.info("BP detection timeout reached."),this.l.info("Buffering proxy detected and switch to long-polling!"),this.G=!1,this.M=!0,tM(10),e9(this),rr(this))},o.ib=function(){null!=this.v&&(this.v=null,e9(this),rt(this),tM(19))},o.pb=function(t){t?(this.l.info("Successfully pinged google.com"),tM(2)):(this.l.info("Failed to ping google.com"),tM(1))},o.isActive=function(){return!!this.h&&this.h.isActive(this)},(o=rh.prototype).Ba=function(){},o.Aa=function(){},o.za=function(){},o.ya=function(){},o.isActive=function(){return!0},o.Va=function(){},rc.prototype.g=function(t,e){return new rf(t,e)},v(rf,tu),rf.prototype.m=function(){this.g.h=this.j,this.A&&(this.g.J=!0);var t=this.g,e=this.l,r=this.h||void 0;tM(0),t.Y=e,t.na=r||{},t.G=t.aa,t.I=rl(t,null,t.Y),e6(t)},rf.prototype.close=function(){e2(this.g)},rf.prototype.u=function(t){var e=this.g;if("string"==typeof t){var r={};r.__data__=t,t=r}else this.v&&((r={}).__data__=tf(t),t=r);e.j.push(new eI(e.fb++,t)),3==e.H&&e6(e)},rf.prototype.N=function(){this.g.h=null,delete this.j,e2(this.g),delete this.g,rf.$.N.call(this)},v(rd,tz),v(rp,tX),v(rg,rh),rg.prototype.Ba=function(){th(this.g,"a")},rg.prototype.Aa=function(t){th(this.g,new rd(t))},rg.prototype.za=function(t){th(this.g,new rp)},rg.prototype.ya=function(){th(this.g,"b")},v(rm,function(){this.blockSize=-1}),rm.prototype.reset=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.i=this.h=0},rm.prototype.j=function(t,e){void 0===e&&(e=t.length);for(var r=e-this.blockSize,i=this.m,n=this.h,s=0;s<e;){if(0==n)for(;s<=r;)ry(this,t,s),s+=this.blockSize;if("string"==typeof t){for(;s<e;)if(i[n++]=t.charCodeAt(s++),n==this.blockSize){ry(this,i),n=0;break}}else for(;s<e;)if(i[n++]=t[s++],n==this.blockSize){ry(this,i),n=0;break}}this.h=n,this.i+=e},rm.prototype.l=function(){var t=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);t[0]=128;for(var e=1;e<t.length-8;++e)t[e]=0;var r=8*this.i;for(e=t.length-8;e<t.length;++e)t[e]=255&r,r/=256;for(this.j(t),t=Array(16),e=r=0;4>e;++e)for(var i=0;32>i;i+=8)t[r++]=this.g[e]>>>i&255;return t};var rb={};function rw(t){var e;return -128<=t&&128>t?(e=rb,Object.prototype.hasOwnProperty.call(e,t)?e[t]:e[t]=new rv([0|t],0>t?-1:0)):new rv([0|t],0>t?-1:0)}function r_(t){if(isNaN(t)||!isFinite(t))return rE;if(0>t)return rC(r_(-t));for(var e=[],r=1,i=0;t>=r;i++)e[i]=t/r|0,r*=rI;return new rv(e,0)}var rI=4294967296,rE=rw(0),rT=rw(1),rS=rw(16777216);function rA(t){if(0!=t.h)return!1;for(var e=0;e<t.g.length;e++)if(0!=t.g[e])return!1;return!0}function rD(t){return -1==t.h}function rC(t){for(var e=t.g.length,r=[],i=0;i<e;i++)r[i]=~t.g[i];return new rv(r,~t.h).add(rT)}function rk(t,e){return t.add(rC(e))}function rO(t,e){for(;(65535&t[e])!=t[e];)t[e+1]+=t[e]>>>16,t[e]&=65535,e++}function rR(t,e){this.g=t,this.h=e}function rx(t,e){if(rA(e))throw Error("division by zero");if(rA(t))return new rR(rE,rE);if(rD(t))return e=rx(rC(t),e),new rR(rC(e.g),rC(e.h));if(rD(e))return e=rx(t,rC(e)),new rR(rC(e.g),e.h);if(30<t.g.length){if(rD(t)||rD(e))throw Error("slowDivide_ only works with positive integers.");for(var r=rT,i=e;0>=i.X(t);)r=rL(r),i=rL(i);var n=rN(r,1),s=rN(i,1);for(i=rN(i,2),r=rN(r,2);!rA(i);){var a=s.add(i);0>=a.X(t)&&(n=n.add(r),s=a),i=rN(i,1),r=rN(r,1)}return e=rk(t,n.R(e)),new rR(n,e)}for(n=rE;0<=t.X(e);){for(i=48>=(i=Math.ceil(Math.log(r=Math.max(1,Math.floor(t.ea()/e.ea())))/Math.LN2))?1:Math.pow(2,i-48),a=(s=r_(r)).R(e);rD(a)||0<a.X(t);)r-=i,a=(s=r_(r)).R(e);rA(s)&&(s=rT),n=n.add(s),t=rk(t,a)}return new rR(n,t)}function rL(t){for(var e=t.g.length+1,r=[],i=0;i<e;i++)r[i]=t.D(i)<<1|t.D(i-1)>>>31;return new rv(r,t.h)}function rN(t,e){var r=e>>5;e%=32;for(var i=t.g.length-r,n=[],s=0;s<i;s++)n[s]=0<e?t.D(s+r)>>>e|t.D(s+r+1)<<32-e:t.D(s+r);return new rv(n,t.h)}(o=rv.prototype).ea=function(){if(rD(this))return-rC(this).ea();for(var t=0,e=1,r=0;r<this.g.length;r++){var i=this.D(r);t+=(0<=i?i:rI+i)*e,e*=rI}return t},o.toString=function(t){if(2>(t=t||10)||36<t)throw Error("radix out of range: "+t);if(rA(this))return"0";if(rD(this))return"-"+rC(this).toString(t);for(var e=r_(Math.pow(t,6)),r=this,i="";;){var n=rx(r,e).g,s=((0<(r=rk(r,n.R(e))).g.length?r.g[0]:r.h)>>>0).toString(t);if(rA(r=n))return s+i;for(;6>s.length;)s="0"+s;i=s+i}},o.D=function(t){return 0>t?0:t<this.g.length?this.g[t]:this.h},o.X=function(t){return rD(t=rk(this,t))?-1:rA(t)?0:1},o.abs=function(){return rD(this)?rC(this):this},o.add=function(t){for(var e=Math.max(this.g.length,t.g.length),r=[],i=0,n=0;n<=e;n++){var s=i+(65535&this.D(n))+(65535&t.D(n)),a=(s>>>16)+(this.D(n)>>>16)+(t.D(n)>>>16);i=a>>>16,s&=65535,a&=65535,r[n]=a<<16|s}return new rv(r,-2147483648&r[r.length-1]?-1:0)},o.R=function(t){if(rA(this)||rA(t))return rE;if(rD(this))return rD(t)?rC(this).R(rC(t)):rC(rC(this).R(t));if(rD(t))return rC(this.R(rC(t)));if(0>this.X(rS)&&0>t.X(rS))return r_(this.ea()*t.ea());for(var e=this.g.length+t.g.length,r=[],i=0;i<2*e;i++)r[i]=0;for(i=0;i<this.g.length;i++)for(var n=0;n<t.g.length;n++){var s=this.D(i)>>>16,a=65535&this.D(i),o=t.D(n)>>>16,l=65535&t.D(n);r[2*i+2*n]+=a*l,rO(r,2*i+2*n),r[2*i+2*n+1]+=s*l,rO(r,2*i+2*n+1),r[2*i+2*n+1]+=a*o,rO(r,2*i+2*n+1),r[2*i+2*n+2]+=s*o,rO(r,2*i+2*n+2)}for(i=0;i<e;i++)r[i]=r[2*i+1]<<16|r[2*i];for(i=e;i<2*e;i++)r[i]=0;return new rv(r,0)},o.gb=function(t){return rx(this,t).h},o.and=function(t){for(var e=Math.max(this.g.length,t.g.length),r=[],i=0;i<e;i++)r[i]=this.D(i)&t.D(i);return new rv(r,this.h&t.h)},o.or=function(t){for(var e=Math.max(this.g.length,t.g.length),r=[],i=0;i<e;i++)r[i]=this.D(i)|t.D(i);return new rv(r,this.h|t.h)},o.xor=function(t){for(var e=Math.max(this.g.length,t.g.length),r=[],i=0;i<e;i++)r[i]=this.D(i)^t.D(i);return new rv(r,this.h^t.h)},rc.prototype.createWebChannel=rc.prototype.g,rf.prototype.send=rf.prototype.u,rf.prototype.open=rf.prototype.m,rf.prototype.close=rf.prototype.close,tB.NO_ERROR=0,tB.TIMEOUT=8,tB.HTTP_ERROR=6,tV.COMPLETE="complete",tH.EventType=tq,tq.OPEN="a",tq.CLOSE="b",tq.ERROR="c",tq.MESSAGE="d",tu.prototype.listen=tu.prototype.O,eU.prototype.listenOnce=eU.prototype.P,eU.prototype.getLastError=eU.prototype.Sa,eU.prototype.getLastErrorCode=eU.prototype.Ia,eU.prototype.getStatus=eU.prototype.da,eU.prototype.getResponseJson=eU.prototype.Wa,eU.prototype.getResponseText=eU.prototype.ja,eU.prototype.send=eU.prototype.ha,eU.prototype.setWithCredentials=eU.prototype.Oa,rm.prototype.digest=rm.prototype.l,rm.prototype.reset=rm.prototype.reset,rm.prototype.update=rm.prototype.j,rv.prototype.add=rv.prototype.add,rv.prototype.multiply=rv.prototype.R,rv.prototype.modulo=rv.prototype.gb,rv.prototype.compare=rv.prototype.X,rv.prototype.toNumber=rv.prototype.ea,rv.prototype.toString=rv.prototype.toString,rv.prototype.getBits=rv.prototype.D,rv.fromNumber=r_,rv.fromString=function t(e,r){if(0==e.length)throw Error("number format error: empty string");if(2>(r=r||10)||36<r)throw Error("radix out of range: "+r);if("-"==e.charAt(0))return rC(t(e.substring(1),r));if(0<=e.indexOf("-"))throw Error('number format error: interior "-" character');for(var i=r_(Math.pow(r,8)),n=rE,s=0;s<e.length;s+=8){var a=Math.min(8,e.length-s),o=parseInt(e.substring(s,s+a),r);8>a?(a=r_(Math.pow(r,a)),n=n.R(a).add(r_(o))):n=(n=n.R(i)).add(r_(o))}return n};var rj=u.createWebChannelTransport=function(){return new rc},rM=u.getStatEventTarget=function(){return tx()},rP=u.ErrorCode=tB,rF=u.EventType=tV,rB=u.Event=tO,rV=u.Stat={xb:0,Ab:1,Bb:2,Ub:3,Zb:4,Wb:5,Xb:6,Vb:7,Tb:8,Yb:9,PROXY:10,NOPROXY:11,Rb:12,Nb:13,Ob:14,Mb:15,Pb:16,Qb:17,tb:18,sb:19,ub:20};u.FetchXmlHttpFactory=eN;var rU=u.WebChannel=tH,r$=u.XhrIo=eU;u.Md5=rm;var rH=u.Integer=rv},6665:function(t,e,r){"use strict";let i,n,s,a,o,l;r.d(e,{IH:function(){return tF},Gb:function(){return tB}});
181var u,h=r(7456),c=r(3333),f=r(4444),d=r(740);let p=(t,e)=>e.some(e=>t instanceof e),g=new WeakMap,m=new WeakMap,y=new WeakMap,v=new WeakMap,b=new WeakMap,w={get(t,e,r){if(t instanceof IDBTransaction){if("done"===e)return m.get(t);if("objectStoreNames"===e)return t.objectStoreNames||y.get(t);if("store"===e)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return _(t[e])},set:(t,e,r)=>(t[e]=r,!0),has:(t,e)=>t instanceof IDBTransaction&&("done"===e||"store"===e)||e in t};function _(t){var e;if(t instanceof IDBRequest)return function(t){let e=new Promise((e,r)=>{let i=()=>{t.removeEventListener("success",n),t.removeEventListener("error",s)},n=()=>{e(_(t.result)),i()},s=()=>{r(t.error),i()};t.addEventListener("success",n),t.addEventListener("error",s)});return e.then(e=>{e instanceof IDBCursor&&g.set(e,t)}).catch(()=>{}),b.set(e,t),e}(t);if(v.has(t))return v.get(t);let r="function"==typeof(e=t)?e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(n||(n=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(I(this),t),_(g.get(this))}:function(...t){return _(e.apply(I(this),t))}:function(t,...r){let i=e.call(I(this),t,...r);return y.set(i,t.sort?t.sort():[t]),_(i)}:(e instanceof IDBTransaction&&function(t){if(m.has(t))return;let e=new Promise((e,r)=>{let i=()=>{t.removeEventListener("complete",n),t.removeEventListener("error",s),t.removeEventListener("abort",s)},n=()=>{e(),i()},s=()=>{r(t.error||new DOMException("AbortError","AbortError")),i()};t.addEventListener("complete",n),t.addEventListener("error",s),t.addEventListener("abort",s)});m.set(t,e)}(e),p(e,i||(i=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(e,w):e;return r!==t&&(v.set(t,r),b.set(r,t)),r}let I=t=>b.get(t),E=["get","getKey","getAll","getAllKeys","count"],T=["put","add","delete","clear"],S=new Map;function A(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&"string"==typeof e))return;if(S.get(e))return S.get(e);let r=e.replace(/FromIndex$/,""),i=e!==r,n=T.includes(r);if(!(r in(i?IDBIndex:IDBObjectStore).prototype)||!(n||E.includes(r)))return;let s=async function(t,...e){let s=this.transaction(t,n?"readwrite":"readonly"),a=s.store;return i&&(a=a.index(e.shift())),(await Promise.all([a[r](...e),n&&s.done]))[0]};return S.set(e,s),s}w={...u=w,get:(t,e,r)=>A(t,e)||u.get(t,e,r),has:(t,e)=>!!A(t,e)||u.has(t,e)};let D="@firebase/installations",C="0.6.4",k=`w:${C}`,O="FIS_v2",R=new f.LL("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function x(t){return t instanceof f.ZR&&t.code.includes("request-failed")}/** 182 * @license 183 * Copyright 2019 Google LLC 184 * 185 * Licensed under the Apache License, Version 2.0 (the "License"); 186 * you may not use this file except in compliance with the License. 187 * You may obtain a copy of the License at 188 * 189 * http://www.apache.org/licenses/LICENSE-2.0 190 * 191 * Unless required by applicable law or agreed to in writing, software 192 * distributed under the License is distributed on an "AS IS" BASIS, 193 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 194 * See the License for the specific language governing permissions and 195 * limitations under the License. 196 */function L({projectId:t}){return`https://firebaseinstallations.googleapis.com/v1/projects/${t}/installations`}function N(t){return{token:t.token,requestStatus:2,expiresIn:Number(t.expiresIn.replace("s","000")),creationTime:Date.now()}}async function j(t,e){let r=await e.json(),i=r.error;return R.create("request-failed",{requestName:t,serverCode:i.code,serverMessage:i.message,serverStatus:i.status})}function M({apiKey:t}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}async function P(t){let e=await t();return e.status>=500&&e.status<600?t():e}/** 197 * @license 198 * Copyright 2019 Google LLC 199 * 200 * Licensed under the Apache License, Version 2.0 (the "License");
201 * you may not use this file except in compliance with the License. 202 * You may obtain a copy of the License at 203 * 204 * http://www.apache.org/licenses/LICENSE-2.0 205 * 206 * Unless required by applicable law or agreed to in writing, software 207 * distributed under the License is distributed on an "AS IS" BASIS, 208 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 209 * See the License for the specific language governing permissions and 210 * limitations under the License. 211 */async function F({appConfig:t,heartbeatServiceProvider:e},{fid:r}){let i=L(t),n=M(t),s=e.getImmediate({optional:!0});if(s){let t=await s.getHeartbeatsHeader();t&&n.append("x-firebase-client",t)}let a={fid:r,authVersion:O,appId:t.appId,sdkVersion:k},o={method:"POST",headers:n,body:JSON.stringify(a)},l=await P(()=>fetch(i,o));if(l.ok){let t=await l.json(),e={fid:t.fid||r,registrationStatus:2,refreshToken:t.refreshToken,authToken:N(t.authToken)};return e}throw await j("Create Installation",l)}/** 212 * @license 213 * Copyright 2019 Google LLC 214 * 215 * Licensed under the Apache License, Version 2.0 (the "License"); 216 * you may not use this file except in compliance with the License. 217 * You may obtain a copy of the License at 218 * 219 * http://www.apache.org/licenses/LICENSE-2.0 220 * 221 * Unless required by applicable law or agreed to in writing, software 222 * distributed under the License is distributed on an "AS IS" BASIS, 223 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 224 * See the License for the specific language governing permissions and 225 * limitations under the License. 226 */function B(t){return new Promise(e=>{setTimeout(e,t)})}/** 227 * @license 228 * Copyright 2019 Google LLC 229 * 230 * Licensed under the Apache License, Version 2.0 (the "License"); 231 * you may not use this file except in compliance with the License. 232 * You may obtain a copy of the License at 233 * 234 * http://www.apache.org/licenses/LICENSE-2.0 235 * 236 * Unless required by applicable law or agreed to in writing, software 237 * distributed under the License is distributed on an "AS IS" BASIS, 238 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 239 * See the License for the specific language governing permissions and 240 * limitations under the License. 241 */let V=/^[cdef][\w-]{21}$/;/** 242 * @license 243 * Copyright 2019 Google LLC 244 * 245 * Licensed under the Apache License, Version 2.0 (the "License"); 246 * you may not use this file except in compliance with the License. 247 * You may obtain a copy of the License at 248 * 249 * http://www.apache.org/licenses/LICENSE-2.0 250 * 251 * Unless required by applicable law or agreed to in writing, software 252 * distributed under the License is distributed on an "AS IS" BASIS, 253 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 254 * See the License for the specific language governing permissions and 255 * limitations under the License. 256 */function U(t){return`${t.appName}!${t.appId}`}/** 257 * @license 258 * Copyright 2019 Google LLC 259 * 260 * Licensed under the Apache License, Version 2.0 (the "License"); 261 * you may not use this file except in compliance with the License. 262 * You may obtain a copy of the License at 263 * 264 * http://www.apache.org/licenses/LICENSE-2.0 265 * 266 * Unless required by applicable law or agreed to in writing, software 267 * distributed under the License is distributed on an "AS IS" BASIS, 268 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 269 * See the License for the specific language governing permissions and 270 * limitations under the License. 271 */let $=new Map;function H(t,e){let r=U(t);q(r,e),function(t,e){let r=(!z&&"BroadcastChannel"in self&&((z=new BroadcastChannel("[Firebase] FID Change")).onmessage=t=>{q(t.data.key,t.data.fid)}),z);r&&r.postMessage({key:t,fid:e}),0===$.size&&z&&(z.close(),z=null)}(r,e)}function q(t,e){let r=$.get(t);if(r)for(let t of r)t(e)}let z=null,X="firebase-installations-store",W=null;function K(){return W||(W=function(t,e,{blocked:r,upgrade:i,blocking:n,terminated:s}={}){let a=indexedDB.open(t,1),o=_(a);return i&&a.addEventListener("upgradeneeded",t=>
271{i(_(a.result),t.oldVersion,t.newVersion,_(a.transaction))}),r&&a.addEventListener("blocked",()=>r()),o.then(t=>{s&&t.addEventListener("close",()=>s()),n&&t.addEventListener("versionchange",()=>n())}).catch(()=>{}),o}("firebase-installations-database",0,{upgrade:(t,e)=>{0===e&&t.createObjectStore(X)}})),W}async function G(t,e){let r=U(t),i=await K(),n=i.transaction(X,"readwrite"),s=n.objectStore(X),a=await s.get(r);return await s.put(e,r),await n.done,a&&a.fid===e.fid||H(t,e.fid),e}async function J(t){let e=U(t),r=await K(),i=r.transaction(X,"readwrite");await i.objectStore(X).delete(e),await i.done}async function Y(t,e){let r=U(t),i=await K(),n=i.transaction(X,"readwrite"),s=n.objectStore(X),a=await s.get(r),o=e(a);return void 0===o?await s.delete(r):await s.put(o,r),await n.done,o&&(!a||a.fid!==o.fid)&&H(t,o.fid),o}/** 272 * @license 273 * Copyright 2019 Google LLC 274 * 275 * Licensed under the Apache License, Version 2.0 (the "License"); 276 * you may not use this file except in compliance with the License. 277 * You may obtain a copy of the License at 278 * 279 * http://www.apache.org/licenses/LICENSE-2.0 280 * 281 * Unless required by applicable law or agreed to in writing, software 282 * distributed under the License is distributed on an "AS IS" BASIS, 283 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 284 * See the License for the specific language governing permissions and 285 * limitations under the License. 286 */async function Z(t){let e;let r=await Y(t.appConfig,r=>{let i=function(t){let e=t||{fid:function(){try{let t=new Uint8Array(17),e=self.crypto||self.msCrypto;e.getRandomValues(t),t[0]=112+t[0]%16;let r=function(t){let e=/** 287 * @license 288 * Copyright 2019 Google LLC 289 * 290 * Licensed under the Apache License, Version 2.0 (the "License"); 291 * you may not use this file except in compliance with the License. 292 * You may obtain a copy of the License at 293 * 294 * http://www.apache.org/licenses/LICENSE-2.0 295 * 296 * Unless required by applicable law or agreed to in writing, software 297 * distributed under the License is distributed on an "AS IS" BASIS, 298 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 299 * See the License for the specific language governing permissions and 300 * limitations under the License. 301 */function(t){let e=btoa(String.fromCharCode(...t));return e.replace(/\+/g,"-").replace(/\//g,"_")}(t);return e.substr(0,22)}(t);return V.test(r)?r:""}catch(t){return""}}(),registrationStatus:0};return tr(e)}(r),n=function(t,e){if(0===e.registrationStatus){if(!navigator.onLine){let t=Promise.reject(R.create("app-offline"));return{installationEntry:e,registrationPromise:t}}let r={fid:e.fid,registrationStatus:1,registrationTime:Date.now()},i=Q(t,r);return{installationEntry:r,registrationPromise:i}}return 1===e.registrationStatus?{installationEntry:e,registrationPromise:tt(t)}:{installationEntry:e}}(t,i);return e=n.registrationPromise,n.installationEntry});return""===r.fid?{installationEntry:await e}:{installationEntry:r,registrationPromise:e}}async function Q(t,e){try{let r=await F(t,e);return G(t.appConfig,r)}catch(r){throw x(r)&&409===r.customData.serverCode?await J(t.appConfig):await G(t.appConfig,{fid:e.fid,registrationStatus:0}),r}}async function tt(t){let e=await te(t.appConfig);for(;1===e.registrationStatus;)await B(100),e=await te(t.appConfig);if(0===e.registrationStatus){let{installationEntry:e,registrationPromise:r}=await Z(t);return r||e}return e}function te(t){return Y(t,t=>{if(!t)throw R.create("installation-not-found");return tr(t)})}function tr(t){return 1===t.registrationStatus&&t.registrationTime+1e4<Date.now()?{fid:t.fid,registrationStatus:0}:t}/** 302 * @license 303 * Copyright 2019 Google LLC 304 * 305 * Licensed under the Apache License, Version 2.0 (the "License"); 306 * you may not use this file except in compliance with the License. 307 * You may obtain a copy of the License at 308 * 309 * http://www.apache.org/licenses/LICENSE-2.0 310 * 311 * Unless required by applicable law or agreed to in writing, software 312 * distributed under the License is distributed on an "AS IS" BASIS, 313 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 314 * See the License for the specific language governing permissions and 315 * limitations under the License. 316 */async function ti({appConfig:t,heartbeatServiceProvider:e},r){let i=function(t,{fid:e}){return`${L(t)}/${e}/authTokens:generate`}(t,r),n=function(t,{refreshToken:e}){let r=M(t);return r.append("Authorization",`${O} ${e}`),r}(t,r),s=e.getImmediate({optional:!0});if(s){let t=await s.getHeartbeatsHeader();t&&n.append("x-firebase-client",t)}let a={installation:{sdkVersion:k,appId:t.appId}},o={method:"POST",headers:n,body:JSON.stringify(a)},l=await P(()=>fetch(i,o));if(l.ok){let t=await l.json(),e=N(t);return e}throw await j("Generate Auth Token",l)}/** 317 * @license 318 * Copyright 2019 Google LLC 319 * 320 * Licensed under the Apache License, Version 2.0 (the "License");
321 * you may not use this file except in compliance with the License. 322 * You may obtain a copy of the License at 323 * 324 * http://www.apache.org/licenses/LICENSE-2.0 325 * 326 * Unless required by applicable law or agreed to in writing, software 327 * distributed under the License is distributed on an "AS IS" BASIS, 328 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 329 * See the License for the specific language governing permissions and 330 * limitations under the License. 331 */async function tn(t,e=!1){let r;let i=await Y(t.appConfig,i=>{var n;if(!tl(i))throw R.create("not-registered");let s=i.authToken;if(!e&&2===(n=s).requestStatus&&!function(t){let e=Date.now();return e<t.creationTime||t.creationTime+t.expiresIn<e+36e5}(n))return i;if(1===s.requestStatus)return r=ts(t,e),i;{if(!navigator.onLine)throw R.create("app-offline");let e=function(t){let e={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},t),{authToken:e})}(i);return r=to(t,e),e}}),n=r?await r:i.authToken;return n}async function ts(t,e){let r=await ta(t.appConfig);for(;1===r.authToken.requestStatus;)await B(100),r=await ta(t.appConfig);let i=r.authToken;return 0===i.requestStatus?tn(t,e):i}function ta(t){return Y(t,t=>{if(!tl(t))throw R.create("not-registered");let e=t.authToken;return 1===e.requestStatus&&e.requestTime+1e4<Date.now()?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}async function to(t,e){try{let r=await ti(t,e),i=Object.assign(Object.assign({},e),{authToken:r});return await G(t.appConfig,i),r}catch(r){if(x(r)&&(401===r.customData.serverCode||404===r.customData.serverCode))await J(t.appConfig);else{let r=Object.assign(Object.assign({},e),{authToken:{requestStatus:0}});await G(t.appConfig,r)}throw r}}function tl(t){return void 0!==t&&2===t.registrationStatus}/** 332 * @license 333 * Copyright 2019 Google LLC 334 * 335 * Licensed under the Apache License, Version 2.0 (the "License"); 336 * you may not use this file except in compliance with the License. 337 * You may obtain a copy of the License at 338 * 339 * http://www.apache.org/licenses/LICENSE-2.0 340 * 341 * Unless required by applicable law or agreed to in writing, software 342 * distributed under the License is distributed on an "AS IS" BASIS, 343 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 344 * See the License for the specific language governing permissions and 345 * limitations under the License. 346 */async function tu(t){let{installationEntry:e,registrationPromise:r}=await Z(t);return r?r.catch(console.error):tn(t).catch(console.error),e.fid}/** 347 * @license 348 * Copyright 2019 Google LLC 349 * 350 * Licensed under the Apache License, Version 2.0 (the "License"); 351 * you may not use this file except in compliance with the License. 352 * You may obtain a copy of the License at 353 * 354 * http://www.apache.org/licenses/LICENSE-2.0 355 * 356 * Unless required by applicable law or agreed to in writing, software 357 * distributed under the License is distributed on an "AS IS" BASIS, 358 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 359 * See the License for the specific language governing permissions and 360 * limitations under the License. 361 */async function th(t,e=!1){await tc(t);let r=await tn(t,e);return r.token}async function tc(t){let{registrationPromise:e}=await Z(t);e&&await e}function tf(t){return R.create("missing-app-config-values",{valueName:t})}/** 362 * @license 363 * Copyright 2020 Google LLC 364 * 365 * Licensed under the Apache License, Version 2.0 (the "License"); 366 * you may not use this file except in compliance with the License. 367 * You may obtain a copy of the License at 368 * 369 * http://www.apache.org/licenses/LICENSE-2.0 370 * 371 * Unless required by applicable law or agreed to in writing, software 372 * distributed under the License is distributed on an "AS IS" BASIS, 373 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 374 * See the License for the specific language governing permissions and 375 * limitations under the License. 376 */let td="installations",tp=t=>{let e=t.getProvider("app").getImmediate(),r=/** 377 * @license 378 * Copyright 2019 Google LLC 379 * 380 * Licensed under the Apache License, Version 2.0 (the "License");
381 * you may not use this file except in compliance with the License. 382 * You may obtain a copy of the License at 383 * 384 * http://www.apache.org/licenses/LICENSE-2.0 385 * 386 * Unless required by applicable law or agreed to in writing, software 387 * distributed under the License is distributed on an "AS IS" BASIS, 388 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 389 * See the License for the specific language governing permissions and 390 * limitations under the License. 391 */function(t){if(!t||!t.options)throw tf("App Configuration");if(!t.name)throw tf("App Name");for(let e of["projectId","apiKey","appId"])if(!t.options[e])throw tf(e);return{appName:t.name,projectId:t.options.projectId,apiKey:t.options.apiKey,appId:t.options.appId}}(e),i=(0,h.qX)(e,"heartbeat");return{app:e,appConfig:r,heartbeatServiceProvider:i,_delete:()=>Promise.resolve()}},tg=t=>{let e=t.getProvider("app").getImmediate(),r=(0,h.qX)(e,td).getImmediate();return{getId:()=>tu(r),getToken:t=>th(r,t)}};(0,h.Xd)(new d.wA(td,tp,"PUBLIC")),(0,h.Xd)(new d.wA("installations-internal",tg,"PRIVATE")),(0,h.KN)(D,C),(0,h.KN)(D,C,"esm2017");/** 392 * @license 393 * Copyright 2019 Google LLC 394 * 395 * Licensed under the Apache License, Version 2.0 (the "License"); 396 * you may not use this file except in compliance with the License. 397 * You may obtain a copy of the License at 398 * 399 * http://www.apache.org/licenses/LICENSE-2.0 400 * 401 * Unless required by applicable law or agreed to in writing, software 402 * distributed under the License is distributed on an "AS IS" BASIS, 403 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 404 * See the License for the specific language governing permissions and 405 * limitations under the License. 406 */let tm="analytics",ty="https://www.googletagmanager.com/gtag/js",tv=new c.Yd("@firebase/analytics"),tb=new f.LL("analytics","Analytics",{"already-exists":"A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-intialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invalid-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."});/** 407 * @license 408 * Copyright 2019 Google LLC 409 * 410 * Licensed under the Apache License, Version 2.0 (the "License"); 411 * you may not use this file except in compliance with the License. 412 * You may obtain a copy of the License at 413 * 414 * http://www.apache.org/licenses/LICENSE-2.0 415 * 416 * Unless required by applicable law or agreed to in writing, softw
416are 417 * distributed under the License is distributed on an "AS IS" BASIS, 418 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 419 * See the License for the specific language governing permissions and 420 * limitations under the License. 421 */function tw(t){if(!t.startsWith(ty)){let e=tb.create("invalid-gtag-resource",{gtagURL:t});return tv.warn(e.message),""}return t}function t_(t){return Promise.all(t.map(t=>t.catch(t=>t)))}async function tI(t,e,r,i,n,s){let a=i[n];try{if(a)await e[a];else{let t=await t_(r),i=t.find(t=>t.measurementId===n);i&&await e[i.appId]}}catch(t){tv.error(t)}t("config",n,s)}async function tE(t,e,r,i,n){try{let s=[];if(n&&n.send_to){let t=n.send_to;Array.isArray(t)||(t=[t]);let i=await t_(r);for(let r of t){let t=i.find(t=>t.measurementId===r),n=t&&e[t.appId];if(n)s.push(n);else{s=[];break}}}0===s.length&&(s=Object.values(e)),await Promise.all(s),t("event",i,n||{})}catch(t){tv.error(t)}}let tT=new class{constructor(t={},e=1e3){this.throttleMetadata=t,this.intervalMillis=e}getThrottleMetadata(t){return this.throttleMetadata[t]}setThrottleMetadata(t,e){this.throttleMetadata[t]=e}deleteThrottleMetadata(t){delete this.throttleMetadata[t]}};async function tS(t){var e;let{appId:r,apiKey:i}=t,n={method:"GET",headers:new Headers({Accept:"application/json","x-goog-api-key":i})},s="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig".replace("{app-id}",r),a=await fetch(s,n);if(200!==a.status&&304!==a.status){let t="";try{let r=await a.json();(null===(e=r.error)||void 0===e?void 0:e.message)&&(t=r.error.message)}catch(t){}throw tb.create("config-fetch-failed",{httpStatus:a.status,responseMessage:t})}return a.json()}async function tA(t,e=tT,r){let{appId:i,apiKey:n,measurementId:s}=t.options;if(!i)throw tb.create("no-app-id");if(!n){if(s)return{measurementId:s,appId:i};throw tb.create("no-api-key")}let a=e.getThrottleMetadata(i)||{backoffCount:0,throttleEndTimeMillis:Date.now()},o=new tC;return setTimeout(async()=>{o.abort()},void 0!==r?r:6e4),tD({appId:i,apiKey:n,measurementId:s},a,o,e)}async function tD(t,{throttleEndTimeMillis:e,backoffCount:r},i,n=tT){var s;let{appId:a,measurementId:o}=t;try{await new Promise((t,r)=>{let n=Math.max(e-Date.now(),0),s=setTimeout(t,n);i.addEventListener(()=>{clearTimeout(s),r(tb.create("fetch-throttle",{throttleEndTimeMillis:e}))})})}catch(t){if(o)return tv.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${o} provided in the "measurementId" field in the local Firebase config. [${null==t?void 0:t.message}]`),{appId:a,measurementId:o};throw t}try{let e=await tS(t);return n.deleteThrottleMetadata(a),e}catch(u){if(!function(t){if(!(t instanceof f.ZR)||!t.customData)return!1;let e=Number(t.customData.httpStatus);return 429===e||500===e||503===e||504===e}(u)){if(n.deleteThrottleMetadata(a),o)return tv.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${o} provided in the "measurementId" field in the local Firebase config. [${null==u?void 0:u.message}]`),{appId:a,measurementId:o};throw u}let e=503===Number(null===(s=null==u?void 0:u.customData)||void 0===s?void 0:s.httpStatus)?(0,f.$s)(r,n.intervalMillis,30):(0,f.$s)(r,n.intervalMillis),l={throttleEndTimeMillis:Date.now()+e,backoffCount:r+1};return n.setThrottleMetadata(a,l),tv.debug(`Calling attemptFetch again in ${e} millis`),tD(t,l,i,n)}}class tC{constructor(){this.listeners=[]}addEventListener(t){this.listeners.push(t)}abort(){this.listeners.forEach(t=>t())}}async function tk(t,e,r,i,n){if(n&&n.global){t("event",r,i);return}{let n=await e,s=Object.assign(Object.assign({},i),{send_to:n});t("event",r,s)}}/** 422 * @license 423 * Copyright 2020 Google LLC 424 * 425 * Licensed under the Apache License, Version 2.0 (the "License"); 426 * you may not use this file except in compliance with the License. 427 * You may obtain a copy of the License at 428 * 429 * http://www.apache.org/licenses/LICENSE-2.0 430 * 431 * Unless required by applicable law or agreed to in writing, software 432 * distributed under the License is distributed on an "AS IS" BASIS, 433 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 434 * See the License for the specific language governing permissions and 435 * limitations under the License. 436 */async function tO(){if(!(0,f.hl)())return tv.warn(tb.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{await (0,f.eu)()}catch(t){return tv.warn(tb.create("indexeddb-unavailable",{errorInfo:null==t?void 0:t.toString()}).message),!1}return!0}async function tR(t,e,r,i,n,o,l){var u;let h=tA(t);h.then(e=>{r[e.measurementId]=e.appId,t.options.measurementId&&e.measurementId!==t.options.measurementId&&tv.warn(`The measurement ID in the local Firebase config (${t.options.measurementId}) does not match the measurement ID fetched from the server (${e.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(t=>tv.error(t)),e.push(h);let c=tO().then(t=>t?i.getId():void 0),[f,d]=await Promise.all([h,c]);!function(t){let e=window.document.getElementsByTagName("script");for(let r of Object.values(e))if(r.src&&r.src.includes(ty)&&r.src.includes(t))return r;return null}(o)&&function(t,e){let r;let i=(window.trustedTypes&&(r=window.trustedTypes.createPolicy("firebase-js-sdk-policy",{createScriptURL:tw})),r),n=document.createElement("script"),s=`${ty}?l=${t}&id=${e}`;n.src=i?null==i?void 0:i.createScriptURL(s):s,n.async=!0,document.head.appendChild(n)}(o,f.measurementId),a&&(n("consent","default",a),a=void 0),n("js",new Date);let p=null!==(u=null==l?void 0:l.config)&&void 0!==u?u:{};return p.origin="firebase",p.update=!0,null!=d&&(p.firebase_id=d),n("config",f.measurementId,p),s&&(n("set",s),s=void 0),f.measurementId}/** 437 * @license 438 * Copyright 2019 Google LLC 439 * 440 * Licensed under the Apache License, Version 2.0 (the "License");
441 * you may not use this file except in compliance with the License. 442 * You may obtain a copy of the License at 443 * 444 * http://www.apache.org/licenses/LICENSE-2.0 445 * 446 * Unless required by applicable law or agreed to in writing, software 447 * distributed under the License is distributed on an "AS IS" BASIS, 448 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 449 * See the License for the specific language governing permissions and 450 * limitations under the License. 451 */class tx{constructor(t){this.app=t}_delete(){return delete tL[this.app.options.appId],Promise.resolve()}}let tL={},tN=[],tj={},tM="dataLayer",tP=!1;function tF(t=(0,h.Mq)()){t=(0,f.m9)(t);let e=(0,h.qX)(t,tm);return e.isInitialized()?e.getImmediate():function(t,e={}){let r=(0,h.qX)(t,tm);if(r.isInitialized()){let t=r.getImmediate();if((0,f.vZ)(e,r.getOptions()))return t;throw tb.create("already-initialized")}let i=r.initialize({options:e});return i}(t)}async function tB(){if((0,f.ru)()||!(0,f.zI)()||!(0,f.hl)())return!1;try{let t=await (0,f.eu)();return t}catch(t){return!1}}let tV="@firebase/analytics",tU="0.10.0";(0,h.Xd)(new d.wA(tm,(t,{options:e})=>{let r=t.getProvider("app").getImmediate(),i=t.getProvider("installations-internal").getImmediate();return function(t,e,r){!function(){let t=[];if((0,f.ru)()&&t.push("This is a browser extension environment."),(0,f.zI)()||t.push("Cookies are not available."),t.length>0){let e=t.map((t,e)=>`(${e+1}) ${t}`).join(" "),r=tb.create("invalid-analytics-context",{errorInfo:e});tv.warn(r.message)}}();let i=t.options.appId;if(!i)throw tb.create("no-app-id");if(!t.options.apiKey){if(t.options.measurementId)tv.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${t.options.measurementId} provided in the "measurementId" field in the local Firebase config.`);else throw tb.create("no-api-key")}if(null!=tL[i])throw tb.create("already-exists",{id:i});if(!tP){var n,s;let t,e;t=[],Array.isArray(window[tM])?t=window[tM]:window[tM]=t;let{wrappedGtag:r,gtagCore:i}=(n="gtag",e=function(...t){window[tM].push(arguments)},window[n]&&"function"==typeof window[n]&&(e=window[n]),window[n]=(s=e,async function(t,...e){try{if("event"===t){let[t,r]=e;await tE(s,tL,tN,t,r)}else if("config"===t){let[t,r]=e;await tI(s,tL,tN,tj,t,r)}else if("consent"===t){let[t]=e;s("consent","update",t)}else if("get"===t){let[t,r,i]=e;s("get",t,r,i)}else if("set"===t){let[t]=e;s("set",t)}else s(t,...e)}catch(t){tv.error(t)}}),{gtagCore:e,wrappedGtag:window[n]});l=r,o=i,tP=!0}tL[i]=tR(t,tN,tj,e,o,tM,r);let a=new tx(t);return a}(r,i,e)},"PUBLIC")),(0,h.Xd)(new d.wA("analytics-internal",function(t){try{let e=t.getProvider(tm).getImmediate();return{logEvent:(t,r,i)=>(function(t,e,r,i){tk(l,tL[(t=(0,f.m9)(t)).app.options.appId],e,r,i).catch(t=>tv.error(t))})(e,t,r,i)}}catch(t){throw tb.create("interop-component-reg-failed",{reason:t})}},"PRIVATE")),(0,h.KN)(tV,tU),(0,h.KN)(tV,tU,"esm2017")},3977:function(t,e,r){"use strict";r.d(e,{ZF:function(){return i.ZF}});var i=r(7456);/** 452 * @license 453 * Copyright 2020 Google LLC 454 * 455 * Licensed under the Apache License, Version 2.0 (the "License"); 456 * you may not use this file except in compliance with the License. 457 * You may obtain a copy of the License at 458 * 459 * http://www.apache.org/licenses/LICENSE-2.0 460 * 461 * Unless required by applicable law or agreed to in writing, software 462 * distributed under the License is distributed on an "AS IS" BASIS, 463 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 464 * See the License for the specific language governing permissions and 465 * limitations under the License. 466 */(0,i.KN)("firebase","10.4.0","app")},9828:function(t,e,r){"use strict";r.d(e,{Bt:function(){return i.Bt},JU:function(){return i.JU},ad:function(){return i.ad},nP:function(){return i.nP},pl:function(){return i.pl},r7:function(){return i.r7}});var i=r(19)},6650:function(t,e,r){"use strict";r.d(e,{cF:function(){return A}});var i,n,s,a,o=r(7456),l=r(4444),u=r(740);/** 467 * @license 468 * Copyright 2017 Google LLC 469 * 470 * Licensed under the Apache License, Version 2.0 (the "License");
471 * you may not use this file except in compliance with the License. 472 * You may obtain a copy of the License at 473 * 474 * http://www.apache.org/licenses/LICENSE-2.0 475 * 476 * Unless required by applicable law or agreed to in writing, software 477 * distributed under the License is distributed on an "AS IS" BASIS, 478 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 479 * See the License for the specific language governing permissions and 480 * limitations under the License. 481 */let h="firebasestorage.googleapis.com";/** 482 * @license 483 * Copyright 2017 Google LLC 484 * 485 * Licensed under the Apache License, Version 2.0 (the "License"); 486 * you may not use this file except in compliance with the License. 487 * You may obtain a copy of the License at 488 * 489 * http://www.apache.org/licenses/LICENSE-2.0 490 * 491 * Unless required by applicable law or agreed to in writing, software 492 * distributed under the License is distributed on an "AS IS" BASIS, 493 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 494 * See the License for the specific language governing permissions and 495 * limitations under the License. 496 */class c extends l.ZR{constructor(t,e,r=0){super(f(t),`Firebase Storage: ${e} (${f(t)})`),this.status_=r,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,c.prototype)}get status(){return this.status_}set status(t){this.status_=t}_codeEquals(t){return f(t)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(t){this.customData.serverResponse=t,this.customData.serverResponse?this.message=`${this._baseMessage} 497${this.customData.serverResponse}`:this.message=this._baseMessage}}function f(t){return"storage/"+t}function d(t){return new c(s.INVALID_ARGUMENT,t)}function p(){return new c(s.APP_DELETED,"The Firebase app was deleted.")}(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";/** 498 * @license 499 * Copyright 2017 Google LLC 500 * 501 * Licensed under the Apache License, Version 2.0 (the "License"); 502 * you may not use this file except in compliance with the License. 503 * You may obtain a copy of the License at 504 * 505 * http://www.apache.org/licenses/LICENSE-2.0 506 * 507 * Unless required by applicable law or agreed to in writing, software 508 * distributed under the License is distributed on an "AS IS" BASIS, 509 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 510 * See the License for the specific language governing permissions and 511 * limitations under the License. 512 */class g{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 r;try{r=g.makeFromUrl(t,e)}catch(e){return new g(t,"")}if(""===r.path)return r;throw new c(s.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+t+"'.")}static makeFromUrl(t,e){let r=null,i="([A-Za-z0-9.\\-_]+)",n=RegExp("^gs://"+i+"(/(.*))?$","i");function a(t){t.path_=decodeURIComponent(t.path)}let o=e.replace(/[.]/g,"\\."),l=RegExp(`^https?://${o}/v[A-Za-z0-9_]+/b/${i}/o(/([^?#]*).*)?$`,"i"),u=RegExp(`^https?://${e===h?"(?:storage.googleapis.com|storage.cloud.google.com)":e}/${i}/([^?#]*)`,"i"),f=[{regex:n,indices:{bucket:1,path:3},postModify:function(t){"/"===t.path.charAt(t.path.length-1)&&(t.path_=t.path_.slice(0,-1))}},{regex:l,indices:{bucket:1,path:3},postModify:a},{regex:u,indices:{bucket:1,path:2},postModify:a}];for(let e=0;e<f.length;e++){let i=f[e],n=i.regex.exec(t);if(n){let t=n[i.indices.bucket],e=n[i.indices.path];e||(e=""),r=new g(t,e),i.postModify(r);break}}if(null==r)throw new c(s.INVALID_URL,"Invalid URL '"+t+"'.");return r}}class m{constructor(t){this.promise_=Promise.reject(t)}getPromise(){return this.promise_}cancel(t=!1){}}function y(t,e,r,i){if(i<e)throw d(`Invalid value for '${t}'. Expected ${e} or greater.`);if(i>r)throw d(`Invalid value for '${t}'. Expected ${r} or less.`)}(n=a||(a={}
512))[n.NO_ERROR=0]="NO_ERROR",n[n.NETWORK_ERROR=1]="NETWORK_ERROR",n[n.ABORT=2]="ABORT";/** 513 * @license 514 * Copyright 2017 Google LLC 515 * 516 * Licensed under the Apache License, Version 2.0 (the "License"); 517 * you may not use this file except in compliance with the License. 518 * You may obtain a copy of the License at 519 * 520 * http://www.apache.org/licenses/LICENSE-2.0 521 * 522 * Unless required by applicable law or agreed to in writing, software 523 * distributed under the License is distributed on an "AS IS" BASIS, 524 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 525 * See the License for the specific language governing permissions and 526 * limitations under the License. 527 */class v{constructor(t,e,r,i,n,s,a,o,l,u,h,c=!0){this.url_=t,this.method_=e,this.headers_=r,this.body_=i,this.successCodes_=n,this.additionalRetryCodes_=s,this.callback_=a,this.errorCallback_=o,this.timeout_=l,this.progressCallback_=u,this.connectionFactory_=h,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)=>{if(e){t(!1,new b(!1,null,!0));return}let r=this.connectionFactory_();this.pendingConnection_=r;let i=t=>{let e=t.loaded,r=t.lengthComputable?t.total:-1;null!==this.progressCallback_&&this.progressCallback_(e,r)};null!==this.progressCallback_&&r.addUploadProgressListener(i),r.send(this.url_,this.method_,this.body_,this.headers_).then(()=>{null!==this.progressCallback_&&r.removeUploadProgressListener(i),this.pendingConnection_=null;let e=r.getErrorCode()===a.NO_ERROR,n=r.getStatus();if(!e||/** 528 * @license 529 * Copyright 2022 Google LLC 530 * 531 * Licensed under the Apache License, Version 2.0 (the "License"); 532 * you may not use this file except in compliance with the License. 533 * You may obtain a copy of the License at 534 * 535 * http://www.apache.org/licenses/LICENSE-2.0 536 * 537 * Unless required by applicable law or agreed to in writing, software 538 * distributed under the License is distributed on an "AS IS" BASIS, 539 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 540 * See the License for the specific language governing permissions and 541 * limitations under the License. 542 */function(t,e){let r=-1!==[408,429].indexOf(t),i=-1!==e.indexOf(t);return t>=500&&t<600||r||i}(n,this.additionalRetryCodes_)&&this.retry){let e=r.getErrorCode()===a.ABORT;t(!1,new b(!1,null,e));return}let s=-1!==this.successCodes_.indexOf(n);t(!0,new b(s,r))})},e=(t,e)=>{let r=this.resolve_,i=this.reject_,n=e.connection;if(e.wasSuccessCode)try{let t=this.callback_(n,n.getResponse());void 0!==t?r(t):r()}catch(t){i(t)}else if(null!==n){let t=new c(s.UNKNOWN,"An unknown error occurred, please check the error payload for server response.");t.serverResponse=n.getErrorText(),i(this.errorCallback_?this.errorCallback_(n,t):t)}else if(e.canceled){let t=this.appDelete_?p():new c(s.CANCELED,"User canceled the upload/download.");i(t)}else{let t=new c(s.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.");i(t)}};this.canceled_?e(!1,new b(!1,null,!0)):this.backoffId_=/** 543 * @license 544 * Copyright 2017 Google LLC 545 * 546 * Licensed under the Apache License, Version 2.0 (the "License"); 547 * you may not use this file except in compliance with the License. 548 * You may obtain a copy of the License at 549 * 550 * http://www.apache.org/licenses/LICENSE-2.0 551 * 552 * Unless required by applicable law or agreed to in writing, software 553 * distributed under the License is distributed on an "AS IS" BASIS, 554 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 555 * See the License for the specific language governing permissions and 556 * limitations under the License. 557 */function(t,e,r){let i=1,n=null,s=null,a=!1,o=0,l=!1;function u(...t){l||(l=!0,e.apply(null,t))}function h(e){n=setTimeout(()=>{n=null,t(f,2===o)},e)}function c(){s&&clearTimeout(s)}function f(t,...e){let r;if(l){c();return}if(t){c(),u.call(null,t,...e);return}let n=2===o||a;if(n){c(),u.call(null,t,...e);return}i<64&&(i*=2),1===o?(o=2,r=0):r=(i+Math.random())*1e3,h(r)}let d=!1;function p(t){!d&&(d=!0,c(),!l&&(null!==n?(t||(o=2),clearTimeout(n),h(0)):t||(o=1)))}return h(0),s=setTimeout(()=>{a=!0,p(!0)},r),p}(t,e,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 b{constructor(t,e,r){this.wasSuccessCode=t,this.connection=e,this.canceled=!!r}}/** 558 * @license 559 * Copyright 2019 Google LLC 560 * 561 * Licensed under the Apache License, Version 2.0 (the "License");
562 * you may not use this file except in compliance with the License. 563 * You may obtain a copy of the License at 564 * 565 * http://www.apache.org/licenses/LICENSE-2.0 566 * 567 * Unless required by applicable law or agreed to in writing, software 568 * distributed under the License is distributed on an "AS IS" BASIS, 569 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 570 * See the License for the specific language governing permissions and 571 * limitations under the License. 572 */class w{constructor(t,e){this._service=t,e instanceof g?this._location=e:this._location=g.makeFromUrl(e,t.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(t,e){return new w(t,e)}get root(){let t=new g(this._location.bucket,"");return this._newRef(this._service,t)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return function(t){let e=t.lastIndexOf("/",t.length-2);return -1===e?t:t.slice(e+1)}(this._location.path)}get storage(){return this._service}get parent(){let t=/** 573 * @license 574 * Copyright 2017 Google LLC 575 * 576 * Licensed under the Apache License, Version 2.0 (the "License"); 577 * you may not use this file except in compliance with the License. 578 * You may obtain a copy of the License at 579 * 580 * http://www.apache.org/licenses/LICENSE-2.0 581 * 582 * Unless required by applicable law or agreed to in writing, software 583 * distributed under the License is distributed on an "AS IS" BASIS, 584 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 585 * See the License for the specific language governing permissions and 586 * limitations under the License. 587 */function(t){if(0===t.length)return null;let e=t.lastIndexOf("/");if(-1===e)return"";let r=t.slice(0,e);return r}(this._location.path);if(null===t)return null;let e=new g(this._location.bucket,t);return new w(this._service,e)}_throwIfRoot(t){if(""===this._location.path)throw new c(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').")}}function _(t,e){let r=null==e?void 0:e.storageBucket;return null==r?null:g.makeFromBucketSpec(r,t)}class I{constructor(t,e,r,i,n){this.app=t,this._authProvider=e,this._appCheckProvider=r,this._url=i,this._firebaseVersion=n,this._bucket=null,this._host=h,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,null!=i?this._bucket=g.makeFromBucketSpec(i,this._host):this._bucket=_(this._host,this.app.options)}get host(){return this._host}set host(t){this._host=t,null!=this._url?this._bucket=g.makeFromBucketSpec(this._url,t):this._bucket=_(t,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(t){y("time",0,Number.POSITIVE_INFINITY,t),this._maxUploadRetryTime=t}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(t){y("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 w(this,t)}_makeRequest(t,e,r,i,n=!0){if(this._deleted)return new m(p());{let s=function(t,e,r,i,n,s,a=!0){var o,l,u;let h=function(t){let e=encodeURIComponent,r="?";for(let i in t)if(t.hasOwnProperty(i)){let n=e(i)+"="+e(t[i]);r=r+n+"&"}return r.slice(0,-1)}(t.urlParams),c=t.url+h,f=Object.assign({},t.headers);return o=f,e&&(o["X-Firebase-GMPID"]=e),l=f,null!==r&&r.length>0&&(l.Authorization="Firebase "+r),f["X-Firebase-Storage-Version"]="webjs/"+(null!=s?s:"AppManager"),u=f,null!==i&&(u["X-Firebase-AppCheck"]=i),new v(c,t.method,f,t.body,t.successCodes,t.additionalRetryCodes,t.handler,t.errorHandler,t.timeout,t.progressCallback,n,a)}(t,this._appId,r,i,e,this._firebaseVersion,n);return this._requests.add(s),s.getPromise().then(()=>this._requests.delete(s),()=>this._requests.delete(s)),s}}async makeRequestWithTokens(t,e){let[r,i]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);
587return this._makeRequest(t,e,r,i).getPromise()}}let E="@firebase/storage",T="0.11.2",S="storage";function A(t=(0,o.Mq)(),e){t=(0,l.m9)(t);let r=(0,o.qX)(t,S),i=r.getImmediate({identifier:e}),n=(0,l.P0)("storage");return n&&function(t,e,r,i={}){!function(t,e,r,i={}){t.host=`${e}:${r}`,t._protocol="http";let{mockUserToken:n}=i;n&&(t._overrideAuthToken="string"==typeof n?n:(0,l.Sg)(n,t.app.options.projectId))}(t,e,r,i)}(i,...n),i}(0,o.Xd)(new u.wA(S,function(t,{instanceIdentifier:e}){let r=t.getProvider("app").getImmediate(),i=t.getProvider("auth-internal"),n=t.getProvider("app-check-internal");return new I(r,i,n,e,o.Jn)},"PUBLIC").setMultipleInstances(!0)),(0,o.KN)(E,T,""),(0,o.KN)(E,T,"esm2017")},7536:function(t,e,r){"use strict";r.d(e,{cI:function(){return tg}});var i=r(7294),n=t=>"checkbox"===t.type,s=t=>t instanceof Date,a=t=>null==t;let o=t=>"object"==typeof t;var l=t=>!a(t)&&!Array.isArray(t)&&o(t)&&!s(t),u=t=>l(t)&&t.target?n(t.target)?t.target.checked:t.target.value:t,h=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,c=(t,e)=>t.has(h(e)),f=t=>{let e=t.constructor&&t.constructor.prototype;return l(e)&&e.hasOwnProperty("isPrototypeOf")},d="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function p(t){let e;let r=Array.isArray(t);if(t instanceof Date)e=new Date(t);else if(t instanceof Set)e=new Set(t);else if(!(!(d&&(t instanceof Blob||t instanceof FileList))&&(r||l(t))))return t;else if(e=r?[]:{},r||f(t))for(let r in t)t.hasOwnProperty(r)&&(e[r]=p(t[r]));else e=t;return e}var g=t=>Array.isArray(t)?t.filter(Boolean):[],m=t=>void 0===t,y=(t,e,r)=>{if(!e||!l(t))return r;let i=g(e.split(/[,[\].]+?/)).reduce((t,e)=>a(t)?t:t[e],t);return m(i)||i===t?m(t[e])?r:t[e]:i},v=t=>"boolean"==typeof t;let b={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},w={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},_={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};i.createContext(null);var I=(t,e,r,i=!0)=>{let n={defaultValues:e._defaultValues};for(let s in t)Object.defineProperty(n,s,{get:()=>{let n=s;return e._proxyFormState[n]!==w.all&&(e._proxyFormState[n]=!i||w.all),r&&(r[n]=!0),t[n]}});return n},E=t=>l(t)&&!Object.keys(t).length,T=(t,e,r,i)=>{r(t);let{name:n,...s}=t;return E(s)||Object.keys(s).length>=Object.keys(e).length||Object.keys(s).find(t=>e[t]===(!i||w.all))},S=t=>Array.isArray(t)?t:[t],A=t=>"string"==typeof t,D=(t,e,r,i,n)=>A(t)?(i&&e.watch.add(t),y(r,t,n)):Array.isArray(t)?t.map(t=>(i&&e.watch.add(t),y(r,t))):(i&&(e.watchAll=!0),r),C=t=>/^\w*$/.test(t),k=t=>g(t.replace(/["|']|\]/g,"").split(/\.|\[/));function O(t,e,r){let i=-1,n=C(e)?[e]:k(e),s=n.length,a=s-1;for(;++i<s;){let e=n[i],s=r;if(i!==a){let r=t[e];s=l(r)||Array.isArray(r)?r:isNaN(+n[i+1])?{}:[]}t[e]=s,t=t[e]}return t}var R=(t,e,r,i,n)=>e?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[i]:n||!0}}:{};let x=(t,e,r)=>{for(let i of r||Object.keys(t)){let r=y(t,i);if(r){let{_f:t,...i}=r;if(t&&e(t.name)){if(t.ref.focus){t.ref.focus();break}if(t.refs&&t.refs[0].focus){t.refs[0].focus();break}}else l(i)&&x(i,e)}}};var L=t=>({isOnSubmit:!t||t===w.onSubmit,isOnBlur:t===w.onBlur,isOnChange:t===w.onChange,isOnAll:t===w.all,isOnTouch:t===w.onTouched}),N=(t,e,r)=>!r&&(e.watchAll||e.watch.has(t)||[...e.watch].some(e=>t.startsWith(e)&&/^\.\w+/.test(t.slice(e.length)))),j=(t,e,r)=>{let i=g(y(t,r));return O(i,"root",e[r]),O(t,r,i),t},M=t=>"file"===t.type,P=t=>"function"==typeof t,F=t=>{if(!d)return!1;let e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},B=t=>A(t),V=t=>"radio"===t.type,U=t=>t instanceof RegExp;let $={value:!1,isValid:!1},H={value:!0,isValid:!0};var q=t=>{if(Array.isArray(t)){if(t.length>1){let e=t.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:e,isValid:!!e.length}}return t[0].checked&&!t[0].disabled?t[0].attributes&&!m(t[0].attributes.value)?m(t[0].value)||""===t[0].value?H:{value:t[0].value,isValid:!0}:H:$}return $};let z={isValid:!1,value:null};var X=t=>Array.isArray(t)?t.reduce((t,e)=>e&&e.checked&&!e.disabled?{isValid:!0,value:e.value}:t,z):z;function W(t,e,r="validate"){if(B(t)||Array.isArray(t)&&t.every(B)||v(t)&&!t)return{type:r,message:B(t)?t:"",ref:e}}var K=t=>l(t)&&!U(t)?t:{value:t,message:""},G=async(t,e,r,i,s)=>{let{ref:o,refs:u,required:h,maxLength:c,minLength:f,min:d,max:p,pattern:g,validate:b,name:w,valueAsNumber:I,mount:T,disabled:S}=t._f,D=y(e,w);if(!T||S)return{};let C=u?u[0]:o,k=t=>{i&&C.reportValidity&&(C.setCustomValidity(v(t)?"":t||""),C.reportValidity())},O={},x=V(o),L=n(o),N=(I||M(o))&&m(o.value)&&m(D)||F(o)&&""===o.value||""===D||Array.isArray(D)&&!D.length,j=R.bind(null,w,r,O),$=(t,e,r,i=_.maxLength,n=_.minLength)=>{let s=t?e:r;O[w]={type:t?i:n,message:s,ref:o,...j(t?i:n,s)}};
587if(s?!Array.isArray(D)||!D.length:h&&(!(x||L)&&(N||a(D))||v(D)&&!D||L&&!q(u).isValid||x&&!X(u).isValid)){let{value:t,message:e}=B(h)?{value:!!h,message:h}:K(h);if(t&&(O[w]={type:_.required,message:e,ref:C,...j(_.required,e)},!r))return k(e),O}if(!N&&(!a(d)||!a(p))){let t,e;let i=K(p),n=K(d);if(a(D)||isNaN(D)){let r=o.valueAsDate||new Date(D),s=t=>new Date(new Date().toDateString()+" "+t),a="time"==o.type,l="week"==o.type;A(i.value)&&D&&(t=a?s(D)>s(i.value):l?D>i.value:r>new Date(i.value)),A(n.value)&&D&&(e=a?s(D)<s(n.value):l?D<n.value:r<new Date(n.value))}else{let r=o.valueAsNumber||(D?+D:D);a(i.value)||(t=r>i.value),a(n.value)||(e=r<n.value)}if((t||e)&&($(!!t,i.message,n.message,_.max,_.min),!r))return k(O[w].message),O}if((c||f)&&!N&&(A(D)||s&&Array.isArray(D))){let t=K(c),e=K(f),i=!a(t.value)&&D.length>+t.value,n=!a(e.value)&&D.length<+e.value;if((i||n)&&($(i,t.message,e.message),!r))return k(O[w].message),O}if(g&&!N&&A(D)){let{value:t,message:e}=K(g);if(U(t)&&!D.match(t)&&(O[w]={type:_.pattern,message:e,ref:o,...j(_.pattern,e)},!r))return k(e),O}if(b){if(P(b)){let t=await b(D,e),i=W(t,C);if(i&&(O[w]={...i,...j(_.validate,i.message)},!r))return k(i.message),O}else if(l(b)){let t={};for(let i in b){if(!E(t)&&!r)break;let n=W(await b[i](D,e),C,i);n&&(t={...n,...j(i,n.message)},k(n.message),r&&(O[w]=t))}if(!E(t)&&(O[w]={ref:C,...t},!r))return O}}return k(!0),O};function J(t,e){let r=Array.isArray(e)?e:C(e)?[e]:k(e),i=1===r.length?t:function(t,e){let r=e.slice(0,-1).length,i=0;for(;i<r;)t=m(t)?i++:t[e[i++]];return t}(t,r),n=r.length-1,s=r[n];return i&&delete i[s],0!==n&&(l(i)&&E(i)||Array.isArray(i)&&function(t){for(let e in t)if(t.hasOwnProperty(e)&&!m(t[e]))return!1;return!0}(i))&&J(t,r.slice(0,-1)),t}function Y(){let t=[],e=e=>{for(let r of t)r.next&&r.next(e)},r=e=>(t.push(e),{unsubscribe:()=>{t=t.filter(t=>t!==e)}}),i=()=>{t=[]};return{get observers(){return t},next:e,subscribe:r,unsubscribe:i}}var Z=t=>a(t)||!o(t);function Q(t,e){if(Z(t)||Z(e))return t===e;if(s(t)&&s(e))return t.getTime()===e.getTime();let r=Object.keys(t),i=Object.keys(e);if(r.length!==i.length)return!1;for(let n of r){let r=t[n];if(!i.includes(n))return!1;if("ref"!==n){let t=e[n];if(s(r)&&s(t)||l(r)&&l(t)||Array.isArray(r)&&Array.isArray(t)?!Q(r,t):r!==t)return!1}}return!0}var tt=t=>"select-multiple"===t.type,te=t=>V(t)||n(t),tr=t=>F(t)&&t.isConnected,ti=t=>{for(let e in t)if(P(t[e]))return!0;return!1};function tn(t,e={}){let r=Array.isArray(t);if(l(t)||r)for(let r in t)Array.isArray(t[r])||l(t[r])&&!ti(t[r])?(e[r]=Array.isArray(t[r])?[]:{},tn(t[r],e[r])):a(t[r])||(e[r]=!0);return e}var ts=(t,e)=>(function t(e,r,i){let n=Array.isArray(e);
587if(l(e)||n)for(let n in e)Array.isArray(e[n])||l(e[n])&&!ti(e[n])?m(r)||Z(i[n])?i[n]=Array.isArray(e[n])?tn(e[n],[]):{...tn(e[n])}:t(e[n],a(r)?{}:r[n],i[n]):i[n]=!Q(e[n],r[n]);return i})(t,e,tn(e)),ta=(t,{valueAsNumber:e,valueAsDate:r,setValueAs:i})=>m(t)?t:e?""===t?NaN:t?+t:t:r&&A(t)?new Date(t):i?i(t):t;function to(t){let e=t.ref;return(t.refs?t.refs.every(t=>t.disabled):e.disabled)?void 0:M(e)?e.files:V(e)?X(t.refs).value:tt(e)?[...e.selectedOptions].map(({value:t})=>t):n(e)?q(t.refs).value:ta(m(e.value)?t.ref.value:e.value,t)}var tl=(t,e,r,i)=>{let n={};for(let r of t){let t=y(e,r);t&&O(n,r,t._f)}return{criteriaMode:r,names:[...t],fields:n,shouldUseNativeValidation:i}},tu=t=>m(t)?t:U(t)?t.source:l(t)?U(t.value)?t.value.source:t.value:t,th=t=>t.mount&&(t.required||t.min||t.max||t.maxLength||t.minLength||t.pattern||t.validate);function tc(t,e,r){let i=y(t,r);if(i||C(r))return{error:i,name:r};let n=r.split(".");for(;n.length;){let i=n.join("."),s=y(e,i),a=y(t,i);if(s&&!Array.isArray(s)&&r!==i)break;if(a&&a.type)return{name:i,error:a};n.pop()}return{name:r}}var tf=(t,e,r,i,n)=>!n.isOnAll&&(!r&&n.isOnTouch?!(e||t):(r?i.isOnBlur:n.isOnBlur)?!t:(r?!i.isOnChange:!n.isOnChange)||t),td=(t,e)=>!g(y(t,e)).length&&J(t,e);let tp={mode:w.onSubmit,reValidateMode:w.onChange,shouldFocusError:!0};function tg(t={}){let e=i.useRef(),r=i.useRef(),[o,h]=i.useState({isDirty:!1,isValidating:!1,isLoading:P(t.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:P(t.defaultValues)?void 0:t.defaultValues});e.current||(e.current={...function(t={},e){let r,i={...tp,...t},o={submitCount:0,isDirty:!1,isLoading:P(i.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},h={},f=(l(i.defaultValues)||l(i.values))&&p(i.defaultValues||i.values)||{},_=i.shouldUnregister?{}:p(f),I={action:!1,mount:!1,watch:!1},T={mount:new Set,unMount:new Set,array:new Set,watch:new Set},C=0,k={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},R={values:Y(),array:Y(),state:Y()},B=t.resetOptions&&t.resetOptions.keepDirtyValues,V=L(i.mode),U=L(i.reValidateMode),$=i.criteriaMode===w.all,H=t=>e=>{clearTimeout(C),C=setTimeout(t,e)},q=async t=>{if(k.isValid||t){let t=i.resolver?E((await tg()).errors):await ty(h,!0);t!==o.isValid&&R.state.next({isValid:t})}},z=t=>k.isValidating&&R.state.next({isValidating:t}),X=(t,e=[],r,i,n=!0,s=!0)=>{if(i&&r){if(I.action=!0,s&&Array.isArray(y(h,t))){let e=r(y(h,t),i.argA,i.argB);n&&O(h,t,e)}if(s&&Array.isArray(y(o.errors,t))){let e=r(y(o.errors,t),i.argA,i.argB);n&&O(o.errors,t,e),td(o.errors,t)}if(k.touchedFields&&s&&Array.isArray(y(o.touchedFields,t))){let e=r(y(o.touchedFields,t),i.argA,i.argB);n&&O(o.touchedFields,t,e)}k.dirtyFields&&(o.dirtyFields=ts(f,_)),R.state.next({name:t,isDirty:tb(t,e),dirtyFields:o.dirtyFields,errors:o.errors,isValid:o.isValid})}else O(_,t,e)},W=(t,e)=>{O(o.errors,t,e),R.state.next({errors:o.errors})},K=(t,e,r,i)=>{let n=y(h,t);if(n){let s=y(_,t,m(r)?y(f,t):r);m(s)||i&&i.defaultChecked||e?O(_,t,e?s:to(n._f)):tI(t,s),I.mount&&q()}},ti=(t,e,r,i,n)=>{let s=!1,a=!1,l={name:t};if(!r||i){k.isDirty&&(a=o.isDirty,o.isDirty=l.isDirty=tb(),s=a!==l.isDirty);let r=Q(y(f,t),e);a=y(o.dirtyFields,t),r?J(o.dirtyFields,t):O(o.dirtyFields,t,!0),l.dirtyFields=o.dirtyFields,s=s||k.dirtyFields&&!r!==a}if(r){let e=y(o.touchedFields,t);e||(O(o.touchedFields,t,r),l.touchedFields=o.touchedFields,s=s||k.touchedFields&&e!==r)}return s&&n&&R.state.next(l),s?l:{}},tn=(e,i,n,s)=>{let a=y(o.errors,e),l=k.isValid&&v(i)&&o.isValid!==i;if(t.delayError&&n?(r=H(()=>W(e,n)))(t.delayError):(clearTimeout(C),r=null,n?O(o.errors,e,n):J(o.errors,e)),(n?!Q(a,n):a)||!E(s)||l){let t={...s,...l&&v(i)?{isValid:i}:{},errors:o.errors,name:e};o={...o,...t},R.state.next(t)}z(!1)},tg=async t=>i.resolver(_,i.context,tl(t||T.mount,h,i.criteriaMode,i.shouldUseNativeValidation)),tm=async t=>{let{errors:e}=await tg(t);if(t)for(let r of t){let t=y(e,r);t?O(o.errors,r,t):J(o.errors,r)}else o.errors=e;return e},ty=async(t,e,r={valid:!0})=>{for(let n in t){let s=t[n];if(s){let{_f:t,...n}=s;
587if(t){let n=T.array.has(t.name),a=await G(s,_,$,i.shouldUseNativeValidation&&!e,n);if(a[t.name]&&(r.valid=!1,e))break;e||(y(a,t.name)?n?j(o.errors,a,t.name):O(o.errors,t.name,a[t.name]):J(o.errors,t.name))}n&&await ty(n,e,r)}}return r.valid},tv=()=>{for(let t of T.unMount){let e=y(h,t);e&&(e._f.refs?e._f.refs.every(t=>!tr(t)):!tr(e._f.ref))&&tx(t)}T.unMount=new Set},tb=(t,e)=>(t&&e&&O(_,t,e),!Q(tD(),f)),tw=(t,e,r)=>D(t,T,{...I.mount?_:m(e)?f:A(t)?{[t]:e}:e},r,e),t_=e=>g(y(I.mount?_:f,e,t.shouldUnregister?y(f,e,[]):[])),tI=(t,e,r={})=>{let i=y(h,t),s=e;if(i){let r=i._f;r&&(r.disabled||O(_,t,ta(e,r)),s=F(r.ref)&&a(e)?"":e,tt(r.ref)?[...r.ref.options].forEach(t=>t.selected=s.includes(t.value)):r.refs?n(r.ref)?r.refs.length>1?r.refs.forEach(t=>(!t.defaultChecked||!t.disabled)&&(t.checked=Array.isArray(s)?!!s.find(e=>e===t.value):s===t.value)):r.refs[0]&&(r.refs[0].checked=!!s):r.refs.forEach(t=>t.checked=t.value===s):M(r.ref)?r.ref.value="":(r.ref.value=s,r.ref.type||R.values.next({name:t,values:{..._}})))}(r.shouldDirty||r.shouldTouch)&&ti(t,s,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&tA(t)},tE=(t,e,r)=>{for(let i in e){let n=e[i],a=`${t}.${i}`,o=y(h,a);!T.array.has(t)&&Z(n)&&(!o||o._f)||s(n)?tI(a,n,r):tE(a,n,r)}},tT=(t,r,i={})=>{let n=y(h,t),s=T.array.has(t),l=p(r);O(_,t,l),s?(R.array.next({name:t,values:{..._}}),(k.isDirty||k.dirtyFields)&&i.shouldDirty&&R.state.next({name:t,dirtyFields:ts(f,_),isDirty:tb(t,l)})):!n||n._f||a(l)?tI(t,l,i):tE(t,l,i),N(t,T)&&R.state.next({...o}),R.values.next({name:t,values:{..._}}),I.mount||e()},tS=async t=>{let e=t.target,n=e.name,s=!0,a=y(h,n);if(a){let l,c;let f=e.type?to(a._f):u(t),d=t.type===b.BLUR||t.type===b.FOCUS_OUT,p=!th(a._f)&&!i.resolver&&!y(o.errors,n)&&!a._f.deps||tf(d,y(o.touchedFields,n),o.isSubmitted,U,V),g=N(n,T,d);O(_,n,f),d?(a._f.onBlur&&a._f.onBlur(t),r&&r(0)):a._f.onChange&&a._f.onChange(t);let m=ti(n,f,d,!1),v=!E(m)||g;if(d||R.values.next({name:n,type:t.type,values:{..._}}),p)return k.isValid&&q(),v&&R.state.next({name:n,...g?{}:m});if(!d&&g&&R.state.next({...o}),z(!0),i.resolver){let{errors:t}=await tg([n]),e=tc(o.errors,h,n),r=tc(t,h,e.name||n);l=r.error,n=r.name,c=E(t)}else l=(await G(a,_,$,i.shouldUseNativeValidation))[n],(s=Number.isNaN(f)||f===y(_,n,f))&&(l?c=!1:k.isValid&&(c=await ty(h,!0)));s&&(a._f.deps&&tA(a._f.deps),tn(n,c,l,m))}},tA=async(t,e={})=>{let r,n;let s=S(t);if(z(!0),i.resolver){let e=await tm(m(t)?t:s);r=E(e),n=t?!s.some(t=>y(e,t)):r}else t?((n=(await Promise.all(s.map(async t=>{let e=y(h,t);return await ty(e&&e._f?{[t]:e}:e)}))).every(Boolean))||o.isValid)&&q():n=r=await ty(h);return R.state.next({...!A(t)||k.isValid&&r!==o.isValid?{}:{name:t},...i.resolver||!t?{isValid:r}:{},errors:o.errors,isValidating:!1}),e.shouldFocus&&!n&&x(h,t=>t&&y(o.errors,t),t?s:T.mount),n},tD=t=>{let e={...f,...I.mount?_:{}};return m(t)?e:A(t)?y(e,t):t.map(t=>y(e,t))},tC=(t,e)=>({invalid:!!y((e||o).errors,t),isDirty:!!y((e||o).dirtyFields,t),isTouched:!!y((e||o).touchedFields,t),error:y((e||o).errors,t)}),tk=t=>{t&&S(t).forEach(t=>J(o.errors,t)),R.state.next({errors:t?o.errors:{}})},tO=(t,e,r)=>{let i=(y(h,t,{_f:{}})._f||{}).ref;O(o.errors,t,{...e,ref:i}),R.state.next({name:t,errors:o.errors,isValid:!1}),r&&r.shouldFocus&&i&&i.focus&&i.focus()},tR=(t,e)=>P(t)?R.values.subscribe({next:r=>t(tw(void 0,e),r)}):tw(t,e,!0),tx=(t,e={})=>{for(let r of t?S(t):T.mount)T.mount.delete(r),T.array.delete(r),e.keepValue||(J(h,r),J(_,r)),e.keepError||J(o.errors,r),e.keepDirty||J(o.dirtyFields,r),e.keepTouched||J(o.touchedFields,r),i.shouldUnregister||e.keepDefaultValue||J(f,r);R.values.next({values:{..._}}),R.state.next({...o,...e.keepDirty?{isDirty:tb()}:{}}),e.keepIsValid||q()},tL=({disabled:t,name:e,field:r,fields:i})=>{if(v(t)){let n=t?void 0:y(_,e,to(r?r._f:y(i,e)._f));O(_,e,n),ti(e,n,!1,!1,!0)}},tN=(t,e={})=>{let r=y(h,t),n=v(e.disabled);return O(h,t,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:t}},name:t,mount:!0,...e}}),T.mount.add(t),r?tL({field:r,disabled:e.disabled,name:t}):K(t,!0,e.value),{...n?{disabled:e.disabled}:{},...i.progressive?{required:!!e.required,min:tu(e.min),max:tu(e.max),minLength:tu(e.minLength),maxLength:tu(e.maxLength),pattern:tu(e.pattern)}:{},name:t,onChange:tS,onBlur:tS,ref:n=>{if(n){tN(t,e),r=y(h,t);let i=m(n.value)&&n.querySelectorAll&&n.querySelectorAll("input,select,textarea")[0]||n,s=te(i),a=r._f.refs||[];(s?a.find(t=>t===i):i===r._f.ref)||(O(h,t,{_f:{...r._f,...s?{refs:[...a.filter(tr),i,...Array.isArray(y(f,t))?[{}]:[]],ref:{type:i.type,name:t}}:{ref:i}}}),K(t,!1,void 0,i))}else(r=y(h,t,{}))._f&&(r._f.mount=!1),(i.shouldUnregister||e.shouldUnregister)&&!(c(T.array,t)&&I.action)&&T.unMount.add(t)}}},tj=()=>i.shouldFocusError&&x(h,t=>t&&y(o.errors,t),T.mount),tM=(t,e)=>async r=>{r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let n=p(_);if(R.state.next({isSubmitting:!0}),i.resolver){let{errors:t,values:e}=await tg();o.errors=t,n=e}else await ty(h);J(o.errors,"root"),E(o.errors)?(R.state.next({errors:{}}),await t(n,r)):(e&&await e({...o.errors},r),tj(),setTimeout(tj)),R.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:E(o.errors),submitCount:o.submitCount+1,errors:o.errors})},tP=(t,e={})=>{y(h,t)&&(m(e.defaultValue)?tT(t,y(f,t)):(tT(t,e.defaultValue),O(f,t,e.defaultValue)),e.keepTouched||J(o.touchedFields,t),e.keepDirty||(J(o.dirtyFields,t),o.isDirty=e.defaultValue?tb(t,y(f,t)):tb()),!e.keepError&&(J(o.errors,t),k.isValid&&q()),R.state.next({...o}))},tF=(r,i={})=>{let n=r?p(r):f,s=p(n),a=r&&!E(r)?s:f;if(i.keepDefaultValues||(f=n),!i.keepValues){if(i.keepDirtyValues||B)for(let t of T.mount)y(o.dirtyFields,t)?O(a,t,y(_,t)):tT(t,y(a,t));else{if(d&&m(r))for(let t of T.mount){let e=y(h,t);if(e&&e._f){let t=Array.isArray(e._f.refs)?e._f.refs[0]:e._f.ref;if(F(t)){let e=t.closest("form");if(e){e.reset();break}}}}h={}}_=t.shouldUnregister?i.keepDefaultValues?p(f):{}:p(a),R.array.next({values:{...a}}),R.values.next({values:{...a}})}T={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},I.mount||e(),I.mount=!k.isValid||!!i.keepIsValid,I.watch=!!t.shouldUnregister,R.state.next({submitCount:i.keepSubmitCount?o.submitCount:0,isDirty:i.keepDirty?o.isDirty:!!(i.keepDefaultValues&&!Q(r,f)),isSubmitted:!!i.keepIsSubmitted&&o.isSubmitted,dirtyFields:i.keepDirtyValues?o.dirtyFields:i.keepDefaultValues&&r?ts(f,r):{},touchedFields:i.keepTouched?o.touchedFields:{},errors:i.keepErrors?o.errors:{},isSubmitSuccessful:!!i.keepIsSubmitSuccessful&&o.isSubmitSuccessful,isSubmitting:!1})},tB=(t,e)=>tF(P(t)?t(_):t,e),tV=(t,e={})=>{let r=y(h,t),i=r&&r._f;if(i){let t=i.refs?i.refs[0]:i.ref;
587t.focus&&(t.focus(),e.shouldSelect&&t.select())}},tU=t=>{o={...o,...t}},t$=()=>P(i.defaultValues)&&i.defaultValues().then(t=>{tB(t,i.resetOptions),R.state.next({isLoading:!1})});return{control:{register:tN,unregister:tx,getFieldState:tC,handleSubmit:tM,setError:tO,_executeSchema:tg,_getWatch:tw,_getDirty:tb,_updateValid:q,_removeUnmounted:tv,_updateFieldArray:X,_updateDisabledField:tL,_getFieldArray:t_,_reset:tF,_resetDefaultValues:t$,_updateFormState:tU,_subjects:R,_proxyFormState:k,get _fields(){return h},get _formValues(){return _},get _state(){return I},set _state(value){I=value},get _defaultValues(){return f},get _names(){return T},set _names(value){T=value},get _formState(){return o},set _formState(value){o=value},get _options(){return i},set _options(value){i={...i,...value}}},trigger:tA,register:tN,handleSubmit:tM,watch:tR,setValue:tT,getValues:tD,reset:tB,resetField:tP,clearErrors:tk,unregister:tx,setError:tO,setFocus:tV,getFieldState:tC}}(t,()=>h(t=>({...t}))),formState:o});let f=e.current.control;return f._options=t,!function(t){let e=i.useRef(t);e.current=t,i.useEffect(()=>{let r=!t.disabled&&e.current.subject&&e.current.subject.subscribe({next:e.current.next});return()=>{r&&r.unsubscribe()}},[t.disabled])}({subject:f._subjects.state,next:t=>{T(t,f._proxyFormState,f._updateFormState,!0)&&h({...f._formState})}}),i.useEffect(()=>{t.values&&!Q(t.values,r.current)?(f._reset(t.values,f._options.resetOptions),r.current=t.values):f._resetDefaultValues()},[t.values,f]),i.useEffect(()=>{f._state.mount||(f._updateValid(),f._state.mount=!0),f._state.watch&&(f._state.watch=!1,f._subjects.state.next({...f._formState})),f._removeUnmounted()}),e.current.formState=I(o,f),e.current}}}]);
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.