1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{3107:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GA4=void 0;var n=l(r(91078)),i=l(r(40310)),s=["eventCategory","eventAction","eventLabel","eventValue","hitType"],a=["title","location"],o=["page","hitType"];function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)r=s[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){g(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function f(e,t){if(e){if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function g(e,t,r){return(t=y(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==u(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===u(t)?t:String(t)}var v=function(){var e;function t(){var e=this;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");g(this,"reset",function(){e.isInitialized=!1,e._testMode=!1,e._currentMeasurementId,e._hasLoadedGA=!1,e._isQueuing=!1,e._queueGtag=[]}),g(this,"_gtag",function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];e._testMode||e._isQueuing?e._queueGtag.push(r):n.default.apply(void 0,r)}),g(this,"_loadGA",function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"https://www.googletagmanager.com/gtag/js";if("undefined"!=typeof window&&"undefined"!=typeof document&&!e._hasLoadedGA){var i=document.createElement("script");i.async=!0,i.src="".concat(n,"?id=").concat(t),r&&i.setAttribute("nonce",r),document.body.appendChild(i),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},e._hasLoadedGA=!0}}),g(this,"_toGtagOptions",function(e){if(e){var t={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"};return Object.entries(e).reduce(function(e,r){var n=function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,s,a,o=[],l=!0,c=!1;
1try{s=(r=r.call(e)).next,!1;for(;!(l=(n=s.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}(r,2)||f(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=n[0],s=n[1];return t[i]?e[t[i]]=s:e[i]=s,e},{})}}),g(this,"initialize",function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw Error("Require GA_MEASUREMENT_ID");var n="string"==typeof t?[{trackingId:t}]:t;e._currentMeasurementId=n[0].trackingId;var i=r.gaOptions,s=r.gtagOptions,a=r.nonce,o=r.testMode,l=void 0!==o&&o,c=r.gtagUrl;if(e._testMode=l,l||e._loadGA(e._currentMeasurementId,a,c),e.isInitialized||(e._gtag("js",new Date),n.forEach(function(t){var r=p(p(p({},e._toGtagOptions(p(p({},i),t.gaOptions))),s),t.gtagOptions);Object.keys(r).length?e._gtag("config",t.trackingId,r):e._gtag("config",t.trackingId)})),e.isInitialized=!0,!l){var u=h(e._queueGtag);for(e._queueGtag=[],e._isQueuing=!1;u.length;){var d=u.shift();e._gtag.apply(e,h(d)),"get"===d[0]&&(e._isQueuing=!0)}}}),g(this,"set",function(t){return t?"object"!==u(t)?void console.warn("Expected `fieldsObject` arg to be an Object"):void(0===Object.keys(t).length&&console.warn("empty `fieldsObject` given to .set()"),e._gaCommand("set",t)):void console.warn("`fieldsObject` is required in .set()")}),g(this,"_gaCommandSendEvent",function(t,r,n,i,s){e._gtag("event",r,p(p({event_category:t,event_label:n,value:i},s&&{non_interaction:s.nonInteraction}),e._toGtagOptions(s)))}),g(this,"_gaCommandSendEventParameters",function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];if("string"==typeof r[0])e._gaCommandSendEvent.apply(e,h(r.slice(1)));else{var i=r[0],a=i.eventCategory,o=i.eventAction,l=i.eventLabel,u=i.eventValue,d=(i.hitType,c(i,s));e._gaCommandSendEvent(a,o,l,u,d)}}),g(this,"_gaCommandSendTiming",function(t,r,n,i){e._gtag("event","timing_complete",{name:r,value:n,event_category:t,event_label:i})}),g(this,"_gaCommandSendPageview",function(t,r){if(r&&Object.keys(r).length){var n=e._toGtagOptions(r),i=n.title,s=n.location,o=c(n,a);e._gtag("event","page_view",p(p(p(p({},t&&{page_path:t}),i&&{page_title:i}),s&&{page_location:s}),o))}else t?e._gtag("event","page_view",{page_path:t}):e._gtag("event","page_view")}),g(this,"_gaCommandSendPageviewParameters",function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];if("string"==typeof r[0])e._gaCommandSendPageview.apply(e,h(r.slice(1)));else{var i=r[0],s=i.page,a=(i.hitType,c(i,o));e._gaCommandSendPageview(s,a)}}),g(this,"_gaCommandSend",function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i="string"==typeof r[0]?r[0]:r[0].hitType;switch(i){case"event":e._gaCommandSendEventParameters.apply(e,r);break;case"pageview":e._gaCommandSendPageviewParameters.apply(e,r);break;case"timing":e._gaCommandSendTiming.apply(e,h(r.slice(1)));break;case"screenview":case"transaction":case"item":case"social":case"exception":console.warn("Unsupported send command: ".concat(i));break;default:console.warn("Send command doesn't exist: ".concat(i))}}),g(this,"_gaCommandSet",function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];"string"==typeof r[0]&&(r[0]=g({},r[0],r[1])),e._gtag("set",e._toGtagOptions(r[0]))}),g(this,"_gaCommand",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];switch(t){case"send":e._gaCommandSend.apply(e,n);break;case"set":e._gaCommandSet.apply(e,n);break;default:console.warn("Command doesn't exist: ".concat(t))}}),g(this,"ga",function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];if("string"==typeof r[0])e._gaCommand.apply(e,r);else{var i=r[0];e._gtag("get",e._currentMeasurementId,"client_id",function(t){e._isQueuing=!1;var r=e._queueGtag;for(i({get:function(r){return"clientId"===r?t:"trackingId"===r?e._currentMeasurementId:"apiVersion"===r?"1":void 0}});r.length;){var n=r.shift();e._gtag.apply(e,h(n))}}),e._isQueuing=!0}return e.ga}),g(this,"event",function(t,r){if("string"==typeof t)e._gtag("event",t,e._toGtagOptions(r));else{var n=t.action,s=t.category,a=t.label,o=t.value,l=t.nonInteraction,c=t.transport;if(!s||!n)return void console.warn("args.category AND args.action are required in event()");var u={hitType:"event",eventCategory:(0,i.default)(s),eventAction:(0,i.default)(n)};a&&(u.eventLabel=(0,i.default)(a)),void 0!==o&&("number"!=typeof o?console.warn("Expected `args.value` arg to be a Number."):u.eventValue=o),void 0!==l&&("boolean"!=typeof l?console.warn("`args.nonInteraction` must be a boolean."):u.nonInteraction=l),void 0!==c&&("string"!=typeof c?console.warn("`args.transport` must be a string."):(-1===["beacon","xhr","image"].indexOf(c)&&console.warn("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),u.transport=c)),e._gaCommand("send",u)}}),g(this,"send",function(t){e._gaCommand("send",t)}),this.reset()}return e=[{key:"gtag",value:function(){this._gtag.apply(this,arguments)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}();
1t.GA4=v,t.default=new v},3217:(e,t,r)=>{"use strict";r.d(t,{G:()=>s});var n=r(41421),i=r(27201);function s(e){return n.g&&function(e){let t=new Set([e]);t.forEach(e=>{(0,i.U)(e)&&function(e){if(n.g&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(r=>{(0,i.U)(e[r])&&t.add(e[r])})})}(e),e}},6299:(e,t,r)=>{"use strict";r.d(t,{OC:()=>i,yo:()=>s});var n=r(84896);function i(e){var t,r;let i=Number.MAX_SAFE_INTEGER,s=null,a=-1;for(let t=0;t<e.length;++t){let o=e[t],l=function(e){let t=0;for(;t<e.length&&(0,n.i0)(e.charCodeAt(t));)++t;return t}(o);l!==o.length&&(s=null!=(r=s)?r:t,a=t,0!==t&&l<i&&(i=l))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!=(t=s)?t:0,a+1)}function s(e,t){let r=e.replace(/"""/g,'\\"""'),i=r.split(/\r\n|[\n\r]/g),s=1===i.length,a=i.length>1&&i.slice(1).every(e=>0===e.length||(0,n.i0)(e.charCodeAt(0))),o=r.endsWith('\\"""'),l=e.endsWith('"')&&!o,c=e.endsWith("\\"),u=l||c,h=!(null!=t&&t.minimize)&&(!s||e.length>70||u||a||o),d="",p=s&&(0,n.i0)(e.charCodeAt(0));return(h&&!p||a)&&(d+="\n"),d+=r,(h||u)&&(d+="\n"),'"""'+d+'"""'}},9329:(e,t,r)=>{"use strict";function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,{_:()=>n})},13100:(e,t,r)=>{"use strict";r.d(t,{v:()=>i});let n=new Map;function i(e){let t=n.get(e)||1;return n.set(e,t+1),`${e}:${t}:${Math.random().toString(36).slice(2)}`}},13829:(e,t,r)=>{"use strict";r.d(t,{AQ:()=>p,C6:()=>i,Cl:()=>s,Ju:()=>c,N3:()=>d,Tt:()=>a,YH:()=>l,fX:()=>h,sH:()=>o,xN:()=>f,zs:()=>u});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var s=function(){return(s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function o(e,t,r,n){return new(r||(r=Promise))(function(i,s){function a(e){try{l(n.next(e))}catch(e){s(e)}}function o(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,o)}l((n=n.apply(e,t||[])).next())})}function l(e,t){var r,n,i,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=o(0),a.throw=o(1),a.return=o(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(l){var c=[o,l];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,n=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){s=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){s.label=c[1];break}if(6===c[0]&&s.label<i[1]){s.label=i[1],i=c;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(c);break}i[2]&&s.ops.pop(),s.trys.pop();continue}c=t.call(e,s)}catch(e){c=[6,e],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function c(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);
1if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a}function h(e,t,r){if(r||2==arguments.length)for(var n,i=0,s=t.length;i<s;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function d(e){return this instanceof d?(this.v=e,this):new d(e)}function p(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),s=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,c)}}),n[Symbol.asyncIterator]=function(){return this},n;function a(e,t){i[e]&&(n[e]=function(t){return new Promise(function(r,n){
1s.push([e,t,r,n])>1||o(e,t)})},t&&(n[e]=t(n[e])))}function o(e,t){try{var r;(r=i[e](t)).value instanceof d?Promise.resolve(r.value.v).then(l,c):u(s[0][2],r)}catch(e){u(s[0][3],e)}}function l(e){o("next",e)}function c(e){o("throw",e)}function u(e,t){e(t),s.shift(),s.length&&o(s[0][0],s[0][1])}}function f(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=c(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){var s,a,o;s=n,a=i,o=(t=e[r](t)).done,Promise.resolve(t.value).then(function(e){s({value:e,done:o})},a)})}}}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},16878:(e,t,r)=>{"use strict";e.exports=r(29610)},18240:(e,t,r)=>{"use strict";function n(e){return"function"==typeof e}r.d(t,{T:()=>n})},19723:(e,t,r)=>{"use strict";var n;r.d(t,{Ll:()=>l,aD:()=>a,aZ:()=>i,cE:()=>n,ou:()=>s});class i{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class s{constructor(e,t,r,n,i,s){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let a={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o=new Set(Object.keys(a));function l(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&o.has(t)}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(n||(n={}))},21832:e=>{e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var s=Object.keys(e),a=Object.keys(t);if(s.length!==a.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),l=0;l<s.length;l++){var c=s[l];if(!o(c))return!1;var u=e[c],h=t[c];if(!1===(i=r?r.call(n,u,h,c):void 0)||void 0===i&&u!==h)return!1}return!0}},22465:(e,t,r)=>{"use strict";r.d(t,{N:()=>i});var n=r(18240);function i(e){return function(t){if((0,n.T)(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}},22568:(e,t,r)=>{"use strict";r.d(t,{DW:()=>
1o,a3:()=>i,gY:()=>s,ll:()=>n,xr:()=>c});let n=[{value:"èºåå¸",label:"å°åå¸"},{value:"æ°åå¸",label:"æ°åå¸"},{value:"æ¡åå¸",label:"æ¡åå¸"},{value:"èºä¸å¸",label:"å°ä¸å¸"},{value:"èºåå¸",label:"å°åå¸"},{value:"é«éå¸",label:"é«éå¸"},{value:"åºéå¸",label:"åºéå¸"},{value:"æ°ç«¹å¸",label:"æ°ç«¹å¸"},{value:"æ°ç«¹ç¸£",label:"æ°ç«¹ç¸£"},{value:"èæ ç¸£",label:"èæ ç¸£"},{value:"å½°å縣",label:"å½°å縣"},{value:"åæç¸£",label:"åæç¸£"},{value:"é²æç¸£",label:"é²æç¸£"},{value:"å義å¸",label:"å義å¸"},{value:"å義縣",label:"å義縣"},{value:"屿±ç¸£",label:"屿±ç¸£"},{value:"å®è縣",label:"å®è縣"},{value:"è±è®ç¸£",label:"è±è®ç¸£"},{value:"èºæ±ç¸£",label:"å°æ±ç¸£"},{value:"æ¾æ¹ç¸£",label:"æ¾æ¹ç¸£"},{value:"éé縣",label:"éé縣"},{value:"飿±ç¸£",label:"飿±ç¸£"},{value:"å
¶ä»",label:"å
¶ä»"}],i=[{value:"å
¨å°",label:"å
¨å°"},...n],s={password:{minLength:8,message:"å¯ç¢¼å¨ 8 使¸ä»¥ä¸",errorMessage:"å¯ç¢¼æ ¼å¼é¯èª¤ï¼"},email:{pattern:/^[^\s@]+@[^\s@]+\.[^\s@]+$/,message:"Email æ ¼å¼æ£ç¢º",errorMessage:"Email æ ¼å¼é¯èª¤"},confirmPassword:{message:"å¯ç¢¼é©èæ£ç¢º",errorMessage:"å¯ç¢¼è¼¸å
¥ä¸ä¸è´ï¼è«ç¢ºèª"}},a={"auth/user-not-found":"æ¾ä¸å°æ¤å¸³è","auth/wrong-password":"å¯ç¢¼é¯èª¤","auth/email-already-in-use":"æ¤ Email 已被使ç¨","auth/weak-password":"å¯ç¢¼å¼·åº¦ä¸è¶³","auth/invalid-email":"Email æ ¼å¼ä¸æ£ç¢º","auth/too-many-requests":"å試次æ¸éå¤ï¼è«ç¨å¾å試","auth/network-request-failed":"網路é£ç·é¯èª¤ï¼è«æª¢æ¥ç¶²è·¯","auth/popup-closed-by-user":"ç»å
¥è¦çªå·²éé","auth/operation-not-allowed":"æ¤ç»å
¥æ¹å¼æªåç¨","auth/invalid-credential":"èªèè³è¨ç¡æ","auth/requires-recent-login":"è«éæ°ç»å
¥å¾å試","auth/user-mismatch":"èªèè³è¨ä¸ç¬¦"},o=e=>a[e]||"ç¼çé¯èª¤ï¼è«ç¨å¾å試",l={"google.com":"Google","facebook.com":"Facebook","apple.com":"Apple",password:"Email"},c=e=>l[e]||e},23582:e=>{!function(){var t={229:function(e){var t,r,n,i=e.exports={};function s(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}try{t="function"==typeof setTimeout?setTimeout:s}catch(e){t=s}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}var l=[],c=!1,u=-1;function h(){c&&n&&(c=!1,n.length?l=n.concat(l):u=-1,l.length&&d())}function d(){if(!c){var e=o(h);c=!0;for(var t=l.length;t;){for(n=l,l=[];++u<t;)n&&n[u].run();u=-1,t=l.length}n=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function f(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new p(e,t)),1!==l.length||c||o(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=f,i.addListener=f,i.once=f,i.off=f,i.removeListener=f,i.removeAllListeners=f,i.emit=f,i.prependListener=f,i.prependOnceListener=f,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var s=r[e]={exports:{}},a=!0;try{t[e](s,s.exports,n),a=!1}finally{a&&delete r[e]}return s.exports}n.ab="//",e.exports=n(229)}()},24304:(e,t,r)=>{"use strict";r.d(t,{A:()=>V});var n=r(6029),i=r(55729),s=r(56760),a=r(41735),o=r(62793),l=r(60648),c=r(88177);let u=a.default.div.withConfig({displayName:"newsletter-modal__Overlay",componentId:"sc-72e48060-0"})(["position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0.5);display:flex;align-items:center;justify-content:center;z-index:10001;padding:20px;"]),h=a.default.div.withConfig({displayName:"newsletter-modal__ModalContainer",componentId:"sc-72e48060-1"})(["background-color:white;border-radius:12px;max-width:300px;width:100%;max-height:90vh;overflow-y:auto;padding:40px 14px 36px;position:relative;"]),d=a.default.button.withConfig({displayName:"newsletter-modal__CloseButton",componentId:"sc-72e48060-2"})(["position:absolute;top:12px;right:12px;background:none;border:none;font-size:24px;
1cursor:pointer;color:",";padding:4px;line-height:1;&:hover{color:",";}"],e=>{let{theme:t}=e;return t.colors.grayscale[60]},e=>{let{theme:t}=e;return t.colors.grayscale[40]}),p=a.default.h2.withConfig({displayName:"newsletter-modal__Title",componentId:"sc-72e48060-3"})(["font-size:24px;font-weight:700;color:",";text-align:center;margin:0 0 16px;"],e=>{let{theme:t}=e;return t.colors.primary[40]}),f=a.default.p.withConfig({displayName:"newsletter-modal__Description",componentId:"sc-72e48060-4"})(["font-size:14px;line-height:1.8;color:",";text-align:center;margin-top:12px;"],e=>{let{theme:t}=e;return t.colors.grayscale[40]}),m=a.default.div.withConfig({displayName:"newsletter-modal__CheckboxGroup",componentId:"sc-72e48060-5"})(["display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin-bottom:12px;"]),g=a.default.label.withConfig({displayName:"newsletter-modal__CheckboxItem",componentId:"sc-72e48060-6"})(["display:flex;align-items:center;gap:12px;font-size:14px;font-weight:400;line-height:1.5;color:",";cursor:pointer;"],e=>{let{theme:t}=e;return t.colors.primary[20]}),y=a.default.input.withConfig({displayName:"newsletter-modal__HiddenCheckbox",componentId:"sc-72e48060-7"})(["position:absolute;opacity:0;width:0;height:0;"]),v=a.default.span.withConfig({displayName:"newsletter-modal__CheckboxIcon",componentId:"sc-72e48060-8"})(["display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;border:1px solid ",";background-color:",";transition:all 0.2s ease;flex-shrink:0;&::after{content:'';display:",";width:6px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg);margin-top:-2px;}"],e=>{let{theme:t,$checked:r}=e;return r?t.colors.primary[40]:t.colors.grayscale[60]},e=>{let{theme:t,$checked:r}=e;return r?t.colors.primary[40]:"transparent"},e=>{let{$checked:t}=e;return t?"block":"none"}),b=a.default.div.withConfig({displayName:"newsletter-modal__FormatContainer",componentId:"sc-72e48060-9"})(["display:flex;align-items:center;flex-wrap:wrap;justify-content:center;"]),w=a.default.span.withConfig({displayName:"newsletter-modal__SecondaryCheckboxIcon",componentId:"sc-72e48060-10"})(["display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;border:1px solid ",";background-color:",";transition:all 0.2s ease;flex-shrink:0;&::after{content:'';display:",";width:6px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg);margin-top:-2px;}"],e=>{let{theme:t,$checked:r}=e;return r?t.colors.secondary[20]:t.colors.grayscale[60]},e=>{let{theme:t,$checked:r}=e;return r?t.colors.secondary[20]:"transparent"},e=>{let{$checked:t}=e;return t?"block":"none"}),_=a.default.label.withConfig({displayName:"newsletter-modal__FormatItem",componentId:"sc-72e48060-11"})(["display:flex;align-items:center;gap:8px;font-size:12px;font-weight:400;line-height:1.25;color:",";cursor:pointer;"],e=>{let{theme:t}=e;return t.colors.grayscale[0]}),S=a.default.a.withConfig({displayName:"newsletter-modal__InfoLink",componentId:"sc-72e48060-12"})(["font-size:12px;font-weight:400;line-height:1.25;color:",";text-decoration:underline;cursor:pointer;&:hover{color:",";}"],e=>{let{theme:t}=e;return t.colors.secondary[20]},e=>{let{theme:t}=e;return t.colors.secondary[0]}),E=a.default.div.withConfig({displayName:"newsletter-modal__LinkContainer",componentId:"sc-72e48060-13"})(["text-align:center;margin:12px 0;"]),I=a.default.a.withConfig({displayName:"newsletter-modal__NewsletterLink",componentId:"sc-72e48060-14"})(["font-size:14px;font-weight:400;line-height:1.5;color:",";text-decoration:underline;cursor:pointer;&:hover{color:",";}"],e=>{let{theme:t}=e;return t.colors.secondary[20]},e=>{let{theme:t}=e;return t.colors.secondary[0]}),k=a.default.hr.withConfig({displayName:"newsletter-modal__Divider",componentId:"sc-72e48060-15"})(["border:none;border-top:1px solid ",";margin:12px 0;"],e=>{let{theme:t}=e;return t.colors.grayscale[80]}),T=a.default.div.withConfig({displayName:"newsletter-modal__RecentNewsletterLinkContainer",componentId:"sc-72e48060-16"})(["text-align:center;"]),x=a.default.a.withConfig({displayName:"newsletter-modal__RecentNewsletterLink",componentId:"sc-72e48060-17"})(["font-size:12px;font-weight:400;line-height:1.25;color:",";text-decoration:underline;cursor:pointer;&:hover{color:",";}"],e=>{let{theme:t}=e;return t.colors.grayscale[40]},e=>{let{theme:t}=e;return t.colors.grayscale[20]}),O=a.default.div.withConfig({displayName:"newsletter-modal__InfoBox",componentId:"sc-72e48060-18"})(["font-size:14px;font-weight:400;line-height:1.25;color:",";background-color:",";
1border:0.5px solid ",";box-shadow:0px 2px 2px 0px rgba(0,0,0,0.1);padding:25.5px 4px;border-radius:4px;margin:8px auto 0;max-width:272px;text-align:center;"],e=>{let{theme:t}=e;return t.colors.grayscale[0]},e=>{let{theme:t}=e;return t.colors.secondary[80]},e=>{let{theme:t}=e;return t.colors.grayscale[80]}),C=a.default.div.withConfig({displayName:"newsletter-modal__FormSection",componentId:"sc-72e48060-19"})(["display:flex;flex-direction:column;gap:8px;margin-top:12px;margin-bottom:12px;"]),A=a.default.input.withConfig({displayName:"newsletter-modal__Input",componentId:"sc-72e48060-20"})(["width:100%;padding:6px 10px;font-size:16px;line-height:1.5;color:",";background-color:",";box-shadow:1px 1px 2px 0px rgba(0,0,0,0.05) inset;border-radius:4px;text-align:center;&:focus{outline:none;border-color:",";}&::placeholder{color:",";}"],e=>{let{theme:t}=e;return t.colors.grayscale[0]},e=>{let{theme:t}=e;return t.colors.grayscale[99]},e=>{let{theme:t}=e;return t.colors.primary[20]},e=>{let{theme:t}=e;return t.colors.grayscale[60]}),N=a.default.span.withConfig({displayName:"newsletter-modal__InputLabel",componentId:"sc-72e48060-21"})(["font-size:12px;font-weight:400;line-height:1.25;color:",";text-align:center;"],e=>{let{theme:t}=e;return t.colors.grayscale[40]}),P=a.default.button.withConfig({displayName:"newsletter-modal__SubmitButton",componentId:"sc-72e48060-22"})(["margin:0 auto;display:block;padding:4px 52px;background-color:",";color:white;border:none;border-radius:8px;font-size:16px;font-weight:700;line-height:1.5;cursor:pointer;transition:background-color 0.2s ease;&:hover:not(:disabled){background-color:",";}&:disabled{opacity:0.6;cursor:not-allowed;}"],e=>{let{theme:t}=e;return t.colors.primary[40]},e=>{let{theme:t}=e;return t.colors.primary[20]}),R=a.default.div.withConfig({displayName:"newsletter-modal__SuccessContainer",componentId:"sc-72e48060-23"})(["display:flex;flex-direction:column;align-items:center;padding:24px 0;"]),D=a.default.p.withConfig({displayName:"newsletter-modal__SuccessMessage",componentId:"sc-72e48060-24"})(["font-size:16px;color:",";margin:0 0 24px;text-align:center;"],e=>{let{theme:t}=e;return t.colors.grayscale[40]}),j=a.default.p.withConfig({displayName:"newsletter-modal__ErrorText",componentId:"sc-72e48060-25"})(["font-size:14px;color:#d32f2f;text-align:center;margin:0 0 16px;"]),M=a.default.p.withConfig({displayName:"newsletter-modal__ValidationError",componentId:"sc-72e48060-26"})(["font-size:12px;color:#d32f2f;text-align:center;margin:4px 0 0;"]),F=a.default.button.withConfig({displayName:"newsletter-modal__CloseButtonLarge",componentId:"sc-72e48060-27"})(["width:100%;max-width:200px;padding:12px 24px;background-color:",";color:white;border:none;border-radius:8px;font-size:16px;font-weight:700;cursor:pointer;transition:background-color 0.2s ease;&:hover{background-color:",";}"],e=>{let{theme:t}=e;return t.colors.primary[40]},e=>{let{theme:t}=e;return t.colors.primary[20]}),L=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),V=e=>{let{isOpen:t,onClose:r}=e,{member:a,firebaseUser:V}=(0,i.useContext)(o.A),[U,z]=(0,i.useState)(!1),[B,q]=(0,i.useState)(!1),[$,W]=(0,i.useState)(!1),[H,G]=(0,i.useState)(!1),[K,Q]=(0,i.useState)(""),[J,Z]=(0,i.useState)(""),[Y,X]=(0,i.useState)(!1),[ee,et]=(0,i.useState)(!1),[er,en]=(0,i.useState)("idle"),[ei,es]=(0,i.useState)(""),[ea,eo]=(0,i.useState)([]),el=K.length>0&&!L(K),ec=K.length>0&&J.length>0&&K!==J;(0,i.useEffect)(()=>{X(!0)},[]);let eu=()=>{et(!1),z(!1),q(!1),W(!1),G(!1),Q(""),Z(""),en("idle"),es(""),eo([]),r()},eh=(e,t)=>"æ¨å·²è¨é±é".concat("daily"===e?"ãç°å¢è³è¨ä¸å¿é»åå ±ã":"ãç°å¢è³è¨ä¸å¿é»åå ±ä¸é±åé¡§ã").concat("styled"===t?"ç¾åçï¼":"ï¼","è¬è¬"),ed=async()=>{es(""),eo([]),en("loading");let e=$?"styled":"standard";try{let t=await fetch("/api/newsletter/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:K})});if(!t.ok)throw Error("Check API failed");let r=await t.json(),n=[],i=[];U&&(r.daily.subscribed?n.push(eh("daily",r.daily.format||"standard")):i.push("daily")),B&&(r.weekly.subscribed?n.push(eh("weekly",r.weekly.format||"standard")):i.push("weekly"));let s=!1;for(let t of i){let r=await fetch("/api/newsletter/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:K,frequency:t,format:e})}),n=await r.json();if(n.success)s=!0;else{en("error"),es(n.error||"è¨é±å¤±æï¼è«ç¨å¾å試");return}}if(eo(n),en("success"),et(!0),s){let e=2===i.length?"both":i[0]||(U?"daily":"weekly");c.fK("newsletter_subscribe",e)}if(a&&V)try{await (0,l.sj)(a.id,V.uid,{daily:U?e:null,weekly:B?e:null}),console.log("[Newsletter] Member subscription synced")}catch(e){console.error("[Newsletter] Member sync error:",e)}}catch(e){console.error("[Newsletter] Subscription error:",e),en("error"),es("網路é¯èª¤ï¼è«ç¨å¾å試")}};if(!t||!Y)return null;let ep=(0,n.jsx)(u,{onClick:e=>{e.target===e.currentTarget&&eu()},children:(0,n.jsxs)(h,{children:[(0,n.jsx)(d,{onClick:eu,children:"\xd7"}),ee?(0,n.jsxs)(R,{children:[ea.map((e,t)=>(0,n.jsx)(D,{children:e},t)),0===ea.length&&(0,n.jsx)(D,{children:"è¨é±æåï¼"}),ea.length>0&&ea.length<+!!U+ +!!B&&(0,n.jsx)(D,{children:"é»åå ±è¨é±æåï¼"}),(0,n.jsx)(F,{onClick:eu,children:"éé"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p,{children:"è¨é±é»åå ±"}),(0,n.jsx)(f,{children:"æåæ¯ç°å¢è³è¨ä¸å¿ï¼èèäºäºåå¤å¹´çç¨ç«åªé«ï¼æåç¸ä¿¡çé·å¨å°ç£çæ¯ä¸å人ï¼é½ææ¬å©ç¥ééçåå°ç¼ççäºæ
ã"}),(0,n.jsx)(k,{}),(0,n.jsx)(E,{children:(0,n.jsx)(I,{href:"/newsletter",children:"æ¥çææé»åå ±"})}),(0,n.jsx)(T,{children:(0,n.jsx)(x,{href:"https://us12.campaign-archive.com/home/?u=988c9f400efc81e6842917795&id=f99f939cdc",target:"_blank",rel:"noopener noreferrer",children:"黿¤çè¦½è¿æé»åå ±"})}),(0,n.jsx)(k,{}),(0,n.jsxs)(m,{children:[(0,n.jsxs)(g,{children:[(0,n.jsx)(y,{type:"checkbox",checked:U,onChange:e=>z(e.target.checked)}),(0,n.jsx)(v,{$checked:U}),"è¨é±ãç°å¢è³è¨ä¸å¿é»åå ±ãæ¯æ¥å ±"]}),(0,n.jsxs)(g,{children:[(0,n.jsx)(y,{type:"checkbox",checked:B,onChange:e=>q(e.target.checked)}),(0,n.jsx)(v,{$checked:B}),"è¨é±ãç°å¢è³è¨ä¸å¿é»åå ±ä¸é±åé¡§ã"]})]}),(U||B)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(b,{children:[(0,n.jsxs)(_,{children:[(0,n.jsx)(y,{type:"checkbox",checked:$,onChange:e=>W(e.target.checked)}),(0,n.jsx)(w,{$checked:$}),"è¨é±ç¾åç"]}),(0,n.jsx)(S,{href:"#",onClick:e=>{e.preventDefault(),G(!H)},children:"ï¼ä»éº¼æ¯ç¾åçï¼"})]}),H&&(0,n.jsx)(O,{children:"ç¾åç坿¾å¤§éè¦è³è¨åé«ï¼å¸¶ä¾æ´ååçé±è®é«é©"})]}),(0,n.jsxs)(C,{children:[(0,n.jsx)(A,{type:"email",placeholder:"è«è¼¸å
¥ Email",value:K,onChange:e=>Q(e.target.value)}),el&&(0,n.jsx)(M,{children:"æ¨è¼¸å
¥ç email ç¡æï¼è«éæ°è¼¸å
¥"}),(0,n.jsx)(N,{children:"è«å輸å
¥ä¸æ¬¡"}),(0,n.jsx)(A,{type:"email",placeholder:"è«å輸å
¥ä¸æ¬¡ Email",value:J,onChange:e=>Z(e.target.value)}),ec&&(0,n.jsx)(M,{children:"æ¨è¼¸å
¥ç email ä¸ä¸è´ï¼è«ç¢ºèª"})]}),"error"===er&&ei&&(0,n.jsx)(j,{children:ei}),(0,n.jsx)(P,{onClick:ed,disabled:!K||!J||!L(K)||K!==J||!U&&!B||"loading"===er,children:"loading"===er?"è¨é±ä¸...":"è¨é±"})]})]})});return(0,s.createPortal)(ep,document.body)}},24553:(e,t,r)=>{"use strict";r.d(t,{m:()=>s});var n=r(42077),i=r(26661);function s(e){i.f.setTimeout(function(){var t=n.$.onUnhandledError;if(t)t(e);else throw e})}},24772:(e,t,r)=>{"use strict";r.d(t,{$s:()=>l,J:()=>o,Nd:()=>u,kr:()=>h,t_:()=>c});var n,i,s=r(33601);s.env.MOCK_API_SERVER_PORT;let a=null!=(n=s.env.MAILCHIMP_API_KEY)?n:"";s.env.MAILCHIMP_LIST_ID_DAILY,s.env.MAILCHIMP_LIST_ID_WEEKLY,null!=s.env.MAILCHIMP_SERVER_PREFIX||a.split("-").pop(),s.env.TURNSTILE_SECRET_KEY,s.env.FIREBASE_ADMIN_SERVICE_ACCOUNT_PATH,s.env.FIREBASE_ADMIN_PROJECT_ID,s.env.FIREBASE_ADMIN_CLIENT_EMAIL,(null!=(i=s.env.FIREBASE_ADMIN_PRIVATE_KEY)?i:"").replace(/\\n
1/g,"\n");let o="",l="",c="",u={apiKey:"",authDomain:"",projectId:"",storageBucket:"",messagingSenderId:"",appId:""};o="https://storage.googleapis.com/statics-e-info-prod/json/header.json",l="https://storage.googleapis.com/statics-e-info-prod",c="https://www.e-info.org.tw",u={apiKey:"AIzaSyDSB9cyyI_XZ52v8F4_tEuJv6KXjo9aVag",authDomain:"e-info-prod.firebaseapp.com",projectId:"e-info-prod",storageBucket:"e-info-prod.firebasestorage.app",messagingSenderId:"1077023789574",appId:"1:1077023789574:web:e3c98327e4e3e5250d6987"};let h=!1;s.env.NEXT_PUBLIC_FIREBASE_API_KEY&&(u.apiKey=s.env.NEXT_PUBLIC_FIREBASE_API_KEY),s.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN&&(u.authDomain=s.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN),s.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID&&(u.projectId=s.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID),s.env.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET&&(u.storageBucket=s.env.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET),s.env.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID&&(u.messagingSenderId=s.env.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID),s.env.NEXT_PUBLIC_FIREBASE_APP_ID&&(u.appId=s.env.NEXT_PUBLIC_FIREBASE_APP_ID)},25126:(e,t,r)=>{"use strict";r.d(t,{Kn:()=>l,yU:()=>o,Uv:()=>c});var n=r(13829),i=r(18240),s=(0,r(98774).L)(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}),a=r(74079),o=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,r,a,o,l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=(0,n.Ju)(l),h=c.next();!h.done;h=c.next())h.value.remove(this)}catch(t){e={error:t}}finally{try{h&&!h.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}else l.remove(this);var d=this.initialTeardown;if((0,i.T)(d))try{d()}catch(e){o=e instanceof s?e.errors:[e]}var p=this._finalizers;if(p){this._finalizers=null;
1try{for(var f=(0,n.Ju)(p),m=f.next();!m.done;m=f.next()){var g=m.value;try{u(g)}catch(e){o=null!=o?o:[],e instanceof s?o=(0,n.fX)((0,n.fX)([],(0,n.zs)(o)),(0,n.zs)(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{m&&!m.done&&(a=f.return)&&a.call(f)}finally{if(r)throw r.error}}}if(o)throw new s(o)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)u(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(r=this._finalizers)?r:[]).push(e)}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&(0,a.o)(t,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&(0,a.o)(r,e),e instanceof t&&e._removeParent(this)},(e=new t).closed=!0,t.EMPTY=e,t}(),l=o.EMPTY;function c(e){return e instanceof o||e&&"closed"in e&&(0,i.T)(e.remove)&&(0,i.T)(e.add)&&(0,i.T)(e.unsubscribe)}function u(e){(0,i.T)(e)?e():e.unsubscribe()}},25237:(e,t,r)=>{"use strict";r.d(t,{_:()=>i,w:()=>n});let n={facebook:"https://www.facebook.com/enc.teia",x:"https://x.com/e_info",instagram:"https://www.instagram.com/enc.teia/",line:"https://line.me/R/ti/p/@e-info"},i={facebook:e=>"https://www.facebook.com/share.php?u=".concat(e),x:e=>"https://twitter.com/intent/tweet?url=".concat(e),line:e=>"https://social-plugins.line.me/lineit/share?url=".concat(e)}},26661:(e,t,r)=>{"use strict";r.d(t,{f:()=>i});var n=r(13829),i={setTimeout:function(e,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];var a=i.delegate;return(null==a?void 0:a.setTimeout)?a.setTimeout.apply(a,(0,n.fX)([e,t],(0,n.zs)(r))):setTimeout.apply(void 0,(0,n.fX)([e,t],(0,n.zs)(r)))},clearTimeout:function(e){var t=i.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0}},27201:(e,t,r)=>{"use strict";function n(e){return null!==e&&"object"==typeof e}r.d(t,{U:()=>n})},28321:(e,t,r)=>{"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(85765),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29058:(e,t,r)=>{"use strict";r.d(t,{Q:()=>a});var n=r(71198),i=r(22465),s=r(50895);function a(e,t){return void 0===t&&(t=0),(0,i.N)(function(r,i){r.subscribe((0,s._)(i,function(r){return(0,n.N)(i,e,function(){return i.next(r)},t)},function(){return(0,n.N)(i,e,function(){return i.complete()},t)},function(r){return(0,n.N)(i,e,function(){return i.error(r)},t)}))})}},29152:(e,t,r)=>{"use strict";r.d(t,{hO:()=>o,po:()=>l});var n=r(6029),i=r(55729);let s={sections:[],featuredTags:[],topics:[],newsBarPicks:[],siteConfigs:[]},a=(0,i.createContext)(s),o=e=>{let{children:t,data:r}=e;return(0,n.jsx)(a.Provider,{value:r||s,children:t})},l=()=>(0,i.useContext)(a)},29610:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,o=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case h:case s:case o:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case g:case m:case l:return e;default:return t}}case i:return t}}}function S(e){return _(e)===h}t.AsyncMode=u,t.ConcurrentMode=h,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=d,t.Fragment=s,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=o,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||_(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return _(e)===c},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return _(e)===d},t.isFragment=function(e){return _(e)===s},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===o},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===h||e===o||e===a||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=_},31179:(e,t,r)=>{"use strict";var n=r(16878),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function l(e){return n.isMemo(e)?a:o[e.$$typeof]||i}o[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[n.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(f){var i=p(r);i&&i!==f&&e(t,i,n)}var a=u(r);h&&(a=a.concat(h(r)));for(var o=l(t),m=l(r),g=0;g<a.length;++g){var y=a[g];if(!s[y]&&!(n&&n[y])&&!(m&&m[y])&&!(o&&o[y])){var v=d(r,y);try{c(t,y,v)}catch(e){}}}}return t}},31500:(e,t,r)=>{"use strict";var n;r.d(t,{$b:()=>n,Vy:()=>c});let i=[];!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.E
1RROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(n||(n={}));let s={debug:n.DEBUG,verbose:n.VERBOSE,info:n.INFO,warn:n.WARN,error:n.ERROR,silent:n.SILENT},a=n.INFO,o={[n.DEBUG]:"log",[n.VERBOSE]:"log",[n.INFO]:"info",[n.WARN]:"warn",[n.ERROR]:"error"},l=(e,t,...r)=>{if(t<e.logLevel)return;let n=new Date().toISOString(),i=o[t];if(i)console[i](`[${n}] ${e.name}:`,...r);else throw Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class c{constructor(e){this.name=e,this._logLevel=a,this._logHandler=l,this._userLogHandler=null,i.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in n))throw TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?s[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,n.DEBUG,...e),this._logHandler(this,n.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,n.VERBOSE,...e),this._logHandler(this,n.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,n.INFO,...e),this._logHandler(this,n.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,n.WARN,...e),this._logHandler(this,n.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,n.ERROR,...e),this._logHandler(this,n.ERROR,...e)}}},32030:(e,t,r)=>{"use strict";r.d(t,{p:()=>i});var n=r(13100);function i(e,t=0){let r=(0,n.v)("stringifyForDisplay");return JSON.stringify(e,(e,t)=>void 0===t?r:t,t).split(JSON.stringify(r)).join("<undefined>")}},32351:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},33601:(e,t,r)=>{"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(23582)},36021:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(84595)}])},36484:(e,t,r)=>{"use strict";let n,i,s;r.d(t,{O:()=>nj});var a,o=r(42818),l=r(25126),c="function"==typeof Symbol&&Symbol.observable||"@@observable";function u(e){return e}var h=r(42077),d=r(18240),p=r(72269),f=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n=this,i=!function(e){return e&&e instanceof o.vU||e&&(0,d.T)(e.next)&&(0,d.T)(e.error)&&(0,d.T)(e.complete)&&(0,l.Uv)(e)}(e)?new o.Ms(e,t,r):e;return(0,p.Y)(function(){var e=n.operator,t=n.source;i.add(e?e.call(i,t):t?n._subscribe(i):n._trySubscribe(i))}),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=m(t))(function(t,n){var i=new o.Ms({next:function(t){try{e(t)}catch(e){n(e),i.unsubscribe()}},error:n,complete:t});r.subscribe(i)})},e.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},e.prototype[c]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===e.length?u:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=m(e))(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})},e.create=function(t){return new e(t)},e}();function m(e){var t;return null!=(t=null!=e?e:h.$.Promise)?t:Promise}var g=new f(function(e){return e.complete()});function y(e,t){return e.definitions.find(e=>"OperationDefinition"===e.kind&&!!e.name)?.name.value??t}var v=r(71960),b=r(59583),w=r(19723),_=r(45858);let S=Object.freeze({});function E(e,t,r=w.aD){let n,i,s,a=new Map;for(let e of Object.values(_.b))a.set(e,function(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let o=Array.isArray(e),l=[e],c=-1,u=[],h=e,d=[],p=[];do{var f,m,g;let e,y=++c===l.length,_=y&&0!==u.length;if(y){if(i=0===p.length?void 0:d[d.length-1],h=s,s=p.pop(),_)if(o){h=h.slice();let e=0;for(let[t,r]of u){let n=t-e;null===r?(h.splice(n,1),e++):h[n]=r}}else for(let[e,t]of(h={...h},u))h[e]=t;c=n.index,l=n.keys,u=n.edits,o=n.inArray,n=n.prev}else if(s){if(null==(h=s[i=o?c:l[c]]))continue;d.push(i)}if(!Array.isArray(h)){(0,w.Ll)(h)||(0,v.U)(!1,`Invalid AST Node: ${(0,b.N)(h)}.`);let r=y?null==(f=a.get(h.kind))?void 0:f.leave:null==(m=a.get(h.kind))?void 0:m.enter;if((e=null==r?void 0:r.call(t,h,i,s,d,p))===S)break;if(!1===e){if(!y){d.pop();continue}}else if(void 0!==e&&(u.push([i,e]),!y))if((0,w.Ll)(e))h=e;else{d.pop();continue}}void 0===e&&_&&u.push([i,h]),y?d.pop():(n={inArray:o,index:c,keys:l,edits:u,prev:n},l=(o=Array.isArray(h))?h:null!=(g=r[h.kind])?g:[],c=-1,u=[],s&&p.push(s),s=h)}while(void 0!==n);return 0!==u.length?u[u.length-1][1]:e}
1var I=r(41421),k=r(59789),T=r(64902);let x=Symbol.for("apollo.cacheSize"),O={...T.A[x]},C=()=>Object.create(null),{forEach:A,slice:N}=Array.prototype,{hasOwnProperty:P}=Object.prototype;class R{constructor(e=!0,t=C){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return A.call(e,e=>t=t.getChildTrie(e)),P.call(t,"data")?t.data:t.data=this.makeData(N.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){let n=t.mapFor(e[r],!1);t=n&&n.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let r=e[0],n=this.mapFor(r,!1),i=n&&n.get(r);i&&(t=i.removeArray(N.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||n.delete(r))}else t=this.data,delete this.data;return t}getChildTrie(e){let t=this.mapFor(e,!0),r=t.get(e);return r||t.set(e,r=new R(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}function D(){}let j="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},M="undefined"!=typeof WeakMap?WeakMap:Map,F="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:D,unregister:D}};class L{constructor(e=1/0,t=D){this.max=e,this.dispose=t,this.map=new M,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){let t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);let r=t.key;delete t.key,t.keyRef=new j(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new F(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(e,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;let t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){let t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}function V(){}class U{constructor(e=1/0,t=V){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}let z=new WeakSet;function B(e){!(e.size<=(e.max||-1))&&(z.has(e)||(z.add(e),setTimeout(()=>{e.clean(),z.delete(e)},100)))}let q=function(e,t){let r=new L(e,t);return r.set=function(e,t){let r=L.prototype.set.call(this,e,t);return B(this),r},r},$=function(e,t){let r=new U(e,t);return r.set=function(e,t){let r=U.prototype.set.call(this,e,t);return B(this),r},r},W=function(e,{max:t}){let r=new R(!0),n=new q(t);return(...t)=>{let i=r.lookupArray(t),s=n.get(i);if(s){if(s.error)throw s.error;return s.result}let a=n.set(i,{});try{return a.result=e(...t)}catch(e){throw a.error=e,e}}}((e,t)=>{(0,k.V1)(e&&"Document"===e.kind,1);let r=e.definitions.filter(e=>"OperationDefinition"===e.kind);
1I.g&&(e.definitions.forEach(e=>{if("OperationDefinition"!==e.kind&&"FragmentDefinition"!==e.kind)throw(0,k.vA)(2,e.kind)}),(0,k.V1)(r.length<=1,3,r.length)),t&&(0,k.V1)(1==r.length&&r[0].operation===t,4,t,t,r[0].operation),E(e,{Field(t,n,i,s){if(t.alias&&("__typename"===t.alias.value||t.alias.value.startsWith("__ac_"))&&t.alias.value!==t.name.value){let n=e,i=[];for(let e of s)(n=n[e]).kind===_.b.FIELD&&i.push(n.alias?.value||n.name.value);throw i.splice(-1,1,t.name.value),(0,k.vA)(5,t.alias.value,i.join("."),r[0].operation,y(e,"(anonymous)"))}}})},{max:O.checkDocument||2e3});function H(e){return W(e),e.definitions.filter(e=>"OperationDefinition"===e.kind)[0]}class G{static empty(){return new G(()=>g)}static from(e){if(0===e.length)return G.empty();let[t,...r]=e;return t.concat(...r)}static split(e,t,r=new G((e,t)=>t(e))){return Object.assign(new G((n,i)=>{let s=e(n);return I.g&&"boolean"!=typeof s&&I.g&&k.V1.warn(61,s),s?t.request(n,i):r.request(n,i)}),{left:t,right:r})}static execute(e,t,r){return e.request(function(e,{client:t}){let r={query:e.query,variables:e.variables||{},extensions:e.extensions||{},operationName:y(e.query),operationType:H(e.query).operation},n={...e.context},i=()=>Object.freeze({...n});return Object.defineProperty(r,"setContext",{enumerable:!1,value:e=>{n="function"==typeof e?{...n,...e(i())}:{...n,...e}}}),Object.defineProperty(r,"getContext",{enumerable:!1,value:i}),Object.defineProperty(r,"client",{enumerable:!1,value:t}),r}(t,r),()=>(I.g&&I.g&&k.V1.warn(62),g))}static concat(...e){return G.from(e)}constructor(e){e&&(this.request=e)}split(e,t,r){return this.concat(G.split(e,t,r))}concat(...e){return 0===e.length?this:e.reduce(this.combine.bind(this),this)}combine(e,t){return Object.assign(new G((r,n)=>e.request(r,e=>t.request(e,n))),{left:e,right:t})}request(e,t){throw(0,k.vA)(63)}left;right}var K=r(38937);class Q extends G{constructor(e={}){super((t,r)=>{let n=t.client,i=n.queryManager.clientOptions,s=t.getContext();{let{name:r,version:n,transport:a="headers"}=(0,K.o)({},i.clientAwareness,e.clientAwareness,s.clientAwareness);"headers"===a&&t.setContext(({headers:e,extensions:t})=>({headers:(0,K.o)({"apollographql-client-name":r,"apollographql-client-version":n},e)}))}{let{transport:r="extensions"}=(0,K.o)({},i.enhancedClientAwareness,e.enhancedClientAwareness);"extensions"===r&&(t.extensions=(0,K.o)({clientLibrary:{name:"@apollo/client",version:n.version}},t.extensions))}return r(t)})}}function J(e,t){return H(e)?.operation===t}var Z=r(82439);function Y(e,t){return"object"==typeof e&&null!==e&&e[Symbol.for("apollo.error")]===t}function X(e){Object.defineProperty(e,Symbol.for("apollo.error"),{value:e.name,enumerable:!1,writable:!1,configurable:!1})}function ee(e){return e.map(e=>e.message||"Error message not found.").join("\n")}class et extends Error{static is(e){return Y(e,"CombinedProtocolErrors")}static formatMessage=ee;errors;constructor(e){super(et.formatMessage(e,{defaultFormatMessage:ee})),this.name="CombinedProtocolErrors",this.errors=e,X(this),Object.setPrototypeOf(this,et.prototype)}}class er extends Error{static is(e){return Y(e,"UnconventionalError")}constructor(e){super("An error of unexpected shape occurred.",{cause:e}),this.name="UnconventionalError",X(this),Object.setPrototypeOf(this,er.prototype)}}let en=Symbol();class ei extends Error{static is(e){return Y(e,"ServerError")}response;statusCode;bodyText;constructor(e,t){super(e),this.name="ServerError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,X(this),Object.setPrototypeOf(this,ei.prototype)}}class es extends Error{static is(e){return Y(e,"ServerParseError")}response;statusCode;bodyText;constructor(e,t){super(e instanceof Error?e.message:"Could not parse server response",{cause:e}),this.name="ServerParseError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,X(this),Object.setPrototypeOf(this,es.prototype)}}var ea=r(27201);let{hasOwnProperty:eo}=Object.prototype;async function*el(e){let t,r=new TextDecoder("utf-8"),n=e.headers?.get("content-type"),i=n?.match(/;\s*boundary=(?:'([^']+)'|"([^"]+)"|([^"'].+?))\s*(?:;|$)/i),s="\r\n--"+(i?i[1]??i[2]??i[3]??"-":"-"),a="";(0,k.V1)(e.body&&"function"==typeof e.body.getReader,60);let o=e.body.getReader(),l=!1,c=!1,u=()=>c&&"-"==a[0]&&"-"==a[1];try{for(;!l;){({value:t,done:l}=await o.read());let e="string"==typeof t?t:r.decode(t),n=a.length-s.length+1,i=(a+=e).indexOf(s,n);for(;i>-1&&!u();){let e;c=!0,[e,a]=[a.slice(0,i),a.slice(i+s.length)];let t=e.indexOf("\r\n\r\n"),r=function(e){let t={};
1return e.split("\n").forEach(e=>{let r=e.indexOf(":");if(r>-1){let n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(e.slice(0,t))["content-type"];if(r&&-1===r.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");let n=e.slice(t);n&&(yield n),i=a.indexOf(s)}if(u())return}throw Error("premature end of multipart body")}finally{o.cancel()}}async function ec(e,t){for await(let r of el(e)){let n=eu(e,r);if(0!=Object.keys(n).length)if((0,ea.U)(n)&&"payload"in n){if(1===Object.keys(n).length&&null===n.payload)return;let e={...n.payload};"errors"in n&&(e.extensions={...e.extensions,[en]:new et(n.errors??[])}),t(e)}else t(n)}}function eu(e,t){if(e.status>=300)throw new ei(`Response not successful: Received status code ${e.status}`,{response:e,bodyText:t});try{return JSON.parse(t)}catch(r){throw new es(r,{response:e,bodyText:t})}}var eh=r(6299);let ed=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function ep(e){return ef[e.charCodeAt(0)]}let ef=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],em={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>eg(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=ev("(",eg(e.variableDefinitions,", "),")"),r=eg([e.operation,eg([e.name,t]),eg(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+ev(" = ",r)+ev(" ",eg(n," "))},SelectionSet:{leave:({selections:e})=>ey(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let s=ev("",e,": ")+t,a=s+ev("(",eg(r,", "),")");return a.length>80&&(a=s+ev("(\n",eb(eg(r,"\n")),"\n)")),eg([a,eg(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+ev(" ",eg(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>eg(["...",ev("on ",e),eg(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${ev("(",eg(r,", "),")")} on ${t} ${ev("",eg(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,eh.yo)(e):`"${e.replace(ed,ep)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+eg(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+eg(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+ev("(",eg(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>ev("",e,"\n")+eg(["schema",eg(t," "),ey(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>ev("",e,"\n")+eg(["scalar",t,eg(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>ev("",e,"\n")+eg(["type",t,ev("implements ",eg(r," & ")),eg(n," "),ey(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>
1ev("",e,"\n")+t+(ew(r)?ev("(\n",eb(eg(r,"\n")),"\n)"):ev("(",eg(r,", "),")"))+": "+n+ev(" ",eg(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>ev("",e,"\n")+eg([t+": "+r,ev("= ",n),eg(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>ev("",e,"\n")+eg(["interface",t,ev("implements ",eg(r," & ")),eg(n," "),ey(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>ev("",e,"\n")+eg(["union",t,eg(r," "),ev("= ",eg(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>ev("",e,"\n")+eg(["enum",t,eg(r," "),ey(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>ev("",e,"\n")+eg([t,eg(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>ev("",e,"\n")+eg(["input",t,eg(r," "),ey(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>ev("",e,"\n")+"directive @"+t+(ew(r)?ev("(\n",eb(eg(r,"\n")),"\n)"):ev("(",eg(r,", "),")"))+(n?" repeatable":"")+" on "+eg(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>eg(["extend schema",eg(e," "),ey(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>eg(["extend scalar",e,eg(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>eg(["extend type",e,ev("implements ",eg(t," & ")),eg(r," "),ey(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>eg(["extend interface",e,ev("implements ",eg(t," & ")),eg(r," "),ey(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>eg(["extend union",e,eg(t," "),ev("= ",eg(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>eg(["extend enum",e,eg(t," "),ey(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>eg(["extend input",e,eg(t," "),ey(r)]," ")}};function eg(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function ey(e){return ev("{\n",eb(eg(e,"\n")),"\n}")}function ev(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function eb(e){return ev(" ",e.replace(/\n/g,"\n "))}function ew(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}let e_={},eS=Object.assign(e=>{let t=n.get(e);return t||(t=E(e,em),n.set(e,t)),t},{reset(){n=new q(O.print||2e3)}});eS.reset(),I.g&&(e_.print=()=>n?n.size:0);let eE={http:{includeQuery:!0,includeExtensions:!0,preserveHeaderCase:!1},headers:{accept:"application/graphql-response+json,application/json;q=0.9","content-type":"application/json"},options:{method:"POST"}},eI=(e,t)=>t(e),ek=(0,Z.n)(()=>fetch);function eT(){}class ex extends G{constructor(e={}){let{uri:t="/graphql",fetch:r,print:n=eI,includeExtensions:i,preserveHeaderCase:s,useGETForQueries:a,includeUnusedVariables:o=!1,...l}=e;I.g&&(0,k.V1)(r||ek||"undefined"!=typeof fetch,59);let c={http:(0,K.o)({includeExtensions:i,preserveHeaderCase:s}),options:l.fetchOptions,credentials:l.credentials,headers:l.headers};super(e=>{let i=((e,t)=>{let r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")})(e,t),s=e.getContext(),l={...s.http};J(e.query,"subscription")&&(l.accept=["multipart/mixed;boundary=graphql;subscriptionSpec=1.0",...l.accept||[]]);let{options:u,body:h}=function(e,t,...r){let n={},i={};r.forEach(e=>{n={...n,...e.options,headers:{...n.headers,...e.headers}},e.credentials&&(n.credentials=e.credentials),n.headers.accept=(e.http?.accept||[]).concat(n.headers.accept).join(","),i={...i,...e.http}}),n.headers=function(e,t){if(!t){let t={};
1return Object.keys(Object(e)).forEach(r=>{t[r.toLowerCase()]=e[r]}),t}let r={};Object.keys(Object(e)).forEach(t=>{r[t.toLowerCase()]={originalName:t,value:e[t]}});let n={};return Object.keys(r).forEach(e=>{n[r[e].originalName]=r[e].value}),n}(n.headers,i.preserveHeaderCase);let{operationName:s,extensions:a,variables:o,query:l}=e,c={operationName:s,variables:o};return i.includeExtensions&&Object.keys(a||{}).length&&(c.extensions=a),i.includeQuery&&(c.query=t(l,eS)),{options:n,body:c}}(e,n,eE,c,{http:l,options:s.fetchOptions,credentials:s.credentials,headers:s.headers});h.variables&&!o&&(h.variables=function(e,t){let r={...e},n=new Set(Object.keys(e));return E(t,{Variable(e,t,r){r&&"VariableDefinition"!==r.kind&&n.delete(e.name.value)}}),n.forEach(e=>{delete r[e]}),r}(h.variables,e.query));let d=new AbortController,p=()=>{d=void 0};if(u.signal){let e=u.signal,t=()=>{d?.abort(e.reason)};e.addEventListener("abort",t,{once:!0}),p=()=>{d?.signal.removeEventListener("abort",p),d=void 0,e.removeEventListener("abort",t),p=eT},d.signal.addEventListener("abort",p,{once:!0})}return u.signal=d.signal,a&&!J(e.query,"mutation")&&(u.method="GET"),new f(t=>{if("GET"===u.method){let{newURI:e,parseError:t}=function(e,t){let r=[],n=(e,t)=>{r.push(`${e}=${encodeURIComponent(t)}`)};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){let e;try{e=JSON.stringify(t.variables)}catch(e){return{parseError:e}}n("variables",e)}if(t.extensions){let e;try{e=JSON.stringify(t.extensions)}catch(e){return{parseError:e}}n("extensions",e)}let i="",s=e,a=e.indexOf("#");-1!==a&&(i=e.substr(a),s=e.substr(0,a));let o=-1===s.indexOf("?")?"?":"&";return{newURI:s+o+r.join("&")+i}}(i,h);if(t)throw t;i=e}else u.body=JSON.stringify(h);let n=r||(0,Z.n)(()=>fetch)||ek,s=t.next.bind(t);return n(i,u).then(t=>{e.setContext({response:t});let r=t.headers?.get("content-type");return null!==r&&/^multipart\/mixed/i.test(r)?ec(t,s):(function(e){return t=>t.text().then(r=>{let n=function(e,t){let r=e.headers.get("content-type");if(r?.includes("application/graphql-response+json"))try{return JSON.parse(t)}catch(r){throw new es(r,{response:e,bodyText:t})}return eu(e,t)}(t,r);if(!Array.isArray(n)&&!eo.call(n,"data")&&!eo.call(n,"errors"))throw new ei(`Server response was malformed for query '${Array.isArray(e)?e.map(e=>e.operationName):e.operationName}'.`,{response:t,bodyText:r});return n})})(e)(t).then(s)}).then(()=>{p(),t.complete()}).catch(e=>{p(),t.error(e)}),()=>{d&&d.abort()}})})}}class eO extends G{constructor(e={}){let{left:t,right:r,request:n}=G.from([new Q(e),new ex(e)]);super(n),Object.assign(this,{left:t,right:r})}}var eC=r(22465),eA=r(50895);function eN(e,t){return(0,eC.N)(function(r,n){var i=0;r.subscribe((0,eA._)(n,function(r){n.next(e.call(t,r,i++))}))})}function eP(e,t,r){let n=new Set(e),i=n.size;return E(t,{Directive(e){if(n.delete(e.name.value)&&(!r||!n.size))return S}}),r?!n.size:n.size<i}class eR{isIncrementalResult(e){return!1}prepareRequest(e){return(0,k.V1)(!eP(["defer"],e.query),64),e}extractErrors(){}startRequest=void 0}let eD=G.execute,ej=null,eM={},eF=1;function eL(e){try{return e()}catch(e){}}let eV="@wry/context:Slot",eU=eL(()=>globalThis)||eL(()=>global)||Object.create(null),ez=eU[eV]||Array[eV]||function(e){try{Object.defineProperty(eU,eV,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",eF++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=ej;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===eM)break;return e!==ej&&(ej.slots[this.id]=t),!0}return ej&&(ej.slots[this.id]=eM),!1}getValue(){if(this.hasValue())return ej.slots[this.id]}withValue(e,t,r,n){let i={__proto__:null,[this.id]:e},s=ej;ej={parent:s,slots:i};try{return t.apply(n,r)}finally{ej=s}}static bind(e){let t=ej;return function(){let r=ej;try{return ej=t,e.apply(this,arguments)}finally{ej=r}}}static noContext(e,t,r){if(!ej)return e.apply(r,t);{let n=ej;try{return ej=null,e.apply(r,t)}finally{ej=n}}}}),{bind:eB,noContext:eq}=ez,e$=new ez,{hasOwnProperty:eW}=Object.prototype,eH=Array.from||function(e){let t=[];
1return e.forEach(e=>t.push(e)),t};function eG(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let eK=[];function eQ(e,t){if(!e)throw Error(t||"assertion failure")}function eJ(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function eZ(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class eY{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++eY.count}peek(){if(1===this.value.length&&!e1(this))return eX(this),this.value[0]}recompute(e){var t,r,n;return eQ(!this.recomputing,"already recomputing"),eX(this),e1(this)?(t=this,r=e,e5(t),e$.withValue(t,e0,[t,r]),function(e,t){if("function"==typeof e.subscribe)try{eG(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(t,r)&&((n=t).dirty=!1,e1(n)||function(e){e2(e,e3)}(n)),eZ(t.value)):eZ(this.value)}setDirty(){var e;this.dirty||(this.dirty=!0,e=this,e2(e,e4),eG(this))}dispose(){this.setDirty(),e5(this),e2(this,(e,t)=>{e.setDirty(),e8(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=eK.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(eH(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),eK.push(this.deps),this.deps=null)}}function eX(e){let t=e$.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),e1(e)?e4(t,e):e3(t,e),t}function e0(e,t){let r;e.recomputing=!0;let{normalizeResult:n}=e;n&&1===e.value.length&&(r=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!eJ(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function e1(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}eY.count=0;function e2(e,t){let r=e.parents.size;if(r){let n=eH(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function e4(e,t){eQ(e.childValues.has(t)),eQ(e1(t));let r=!e1(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=eK.pop()||new Set;e.dirtyChildren.add(t),r&&e2(e,e4)}function e3(e,t){eQ(e.childValues.has(t)),eQ(!e1(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):eJ(r,t.value)||e.setDirty(),e6(e,t),e1(e)||e2(e,e3)}function e6(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(eK.length<100&&eK.push(r),e.dirtyChildren=null))}function e5(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{e8(e,r)}),e.forgetDeps(),eQ(null===e.dirtyChildren)}function e8(e,t){t.parents.delete(e),e.childValues.delete(t),e6(e,t)}let e7={setDirty:!0,dispose:!0,forget:!0};function e9(e){let t=new Map,r=e&&e.subscribe;function n(e){let n=e$.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(eG(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){let n=t.get(e);if(n){let i=r&&eW.call(e7,r)?r:"setDirty";
1eH(n).forEach(e=>e[i]()),t.delete(e),eG(n)}},n}function te(...e){return(i||(i=new R("function"==typeof WeakMap))).lookupArray(e)}let tt=new Set;function tr(e,{max:t=65536,keyArgs:r,makeCacheKey:n=te,normalizeResult:i,subscribe:s,cache:a=U}=Object.create(null)){let o="function"==typeof a?new a(t,e=>e.dispose()):a,l=function(){let t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=o.get(t);a||(o.set(t,a=new eY(e)),a.normalizeResult=i,a.subscribe=s,a.forget=()=>o.delete(t));let l=a.recompute(Array.prototype.slice.call(arguments));return o.set(t,a),tt.add(o),e$.hasValue()||(tt.forEach(e=>e.clean()),tt.clear()),l};function c(e){let t=e&&o.get(e);t&&t.setDirty()}function u(e){let t=e&&o.get(e);if(t)return t.peek()}function h(e){return!!e&&o.delete(e)}return Object.defineProperty(l,"size",{get:()=>o.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:s,cache:o}),l.dirtyKey=c,l.dirty=function(){c(n.apply(null,arguments))},l.peekKey=u,l.peek=function(){return u(n.apply(null,arguments))},l.forgetKey=h,l.forget=function(){return h(n.apply(null,arguments))},l.makeCacheKey=n,l.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(l)}function tn(e){return e}class ti{transform;cached;resultCache=new WeakSet;getCacheKey(e){return[e]}static identity(){return new ti(tn,{cache:!1})}static split(e,t,r=ti.identity()){return Object.assign(new ti(n=>(e(n)?t:r).transformDocument(n),{cache:!1}),{left:t,right:r})}constructor(e,t={}){this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}resetCache(){if(this.cached){let e=new R;this.performWork=tr(ti.prototype.performWork.bind(this),{makeCacheKey:t=>{let r=this.getCacheKey(t);if(r)return(0,k.V1)(Array.isArray(r),20),e.lookupArray(r)},max:O["documentTransform.cache"],cache:L})}}performWork(e){return W(e),this.transform(e)}transformDocument(e){if(this.resultCache.has(e))return e;let t=this.performWork(e);return this.resultCache.add(t),t}concat(e){return Object.assign(new ti(t=>e.transformDocument(this.transformDocument(t)),{cache:!1}),{left:this,right:e})}left;right}var ts=r(64526);function ta(e){return E(e,{FragmentSpread(e){if(!e.directives?.some(({name:e})=>"unmask"===e.value))return null}})}function to(){throw Error("only supported in development mode")}var tl=r(78841);function tc(e,t){var r=(0,d.T)(e)?e:function(){return e},n=function(e){return e.error(r())};return new f(t?function(e){return t.schedule(n,0,e)}:n)}var tu=r(13829),th=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function td(e){return(0,d.T)(null==e?void 0:e.then)}function tp(e){return Symbol.asyncIterator&&(0,d.T)(null==e?void 0:e[Symbol.asyncIterator])}function tf(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var tm="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function tg(e){return(0,d.T)(null==e?void 0:e[tm])}function ty(e){return(0,tu.AQ)(this,arguments,function(){var t,r,n;return(0,tu.YH)(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,(0,tu.N3)(t.read())];case 3:if(n=(r=i.sent()).value,!r.done)return[3,5];return[4,(0,tu.N3)(void 0)];case 4:return[2,i.sent()];case 5:return[4,(0,tu.N3)(n)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function tv(e){return(0,d.T)(null==e?void 0:e.getReader)}var tb=r(24553);function tw(e){if(e instanceof f)return e;if(null!=e){var t,r,n,i;if((0,d.T)(e[c])){return t=e,new f(function(e){var r=t[c]();if((0,d.T)(r.subscribe))return r.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if(th(e)){return r=e,new f(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()})}if(td(e)){return n=e,new f(function(e){n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,tb.m)})}if(tp(e))return t_(e);
1if(tg(e)){return i=e,new f(function(e){var t,r;try{for(var n=(0,tu.Ju)(i),s=n.next();!s.done;s=n.next()){var a=s.value;if(e.next(a),e.closed)return}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}e.complete()})}if(tv(e))return t_(ty(e))}throw tf(e)}function t_(e){return new f(function(t){(function(e,t){var r,n,i,s;return(0,tu.sH)(this,void 0,void 0,function(){var a;return(0,tu.YH)(this,function(o){switch(o.label){case 0:o.trys.push([0,5,6,11]),r=(0,tu.xN)(e),o.label=1;case 1:return[4,r.next()];case 2:if((n=o.sent()).done)return[3,4];if(a=n.value,t.next(a),t.closed)return[2];o.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:o.sent()},[3,11];case 6:if(o.trys.push([6,,9,10]),!(n&&!n.done&&(s=r.return)))return[3,8];return[4,s.call(r)];case 7:o.sent(),o.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}var tS=r(71198);function tE(e,t,r){return(void 0===r&&(r=1/0),(0,d.T)(t))?tE(function(r,n){return eN(function(e,i){return t(r,e,n,i)})(tw(e(r,n)))},r):("number"==typeof t&&(r=t),(0,eC.N)(function(t,n){var i,s,a,o,l,c,u,h,d;return i=r,a=[],o=0,l=0,c=!1,u=function(){!c||a.length||o||n.complete()},h=function(e){return o<i?d(e):a.push(e)},d=function(t){o++;var r=!1;tw(e(t,l++)).subscribe((0,eA._)(n,function(e){s?h(e):n.next(e)},function(){r=!0},void 0,function(){if(r)try{for(o--;a.length&&o<i;)!function(){var e=a.shift();d(e)}();u()}catch(e){n.error(e)}}))},t.subscribe((0,eA._)(n,h,function(){c=!0,u()})),function(){}}))}var tI=r(29058);function tk(e,t){return void 0===t&&(t=0),(0,eC.N)(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function tT(e,t){if(!e)throw Error("Iterable cannot be null");return new f(function(r){(0,tS.N)(r,t,function(){var n=e[Symbol.asyncIterator]();(0,tS.N)(r,t,function(){n.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}function tx(e,t){return t?function(e,t){if(null!=e){if((0,d.T)(e[c]))return tw(e).pipe(tk(t),(0,tI.Q)(t));if(th(e))return new f(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})});if(td(e))return tw(e).pipe(tk(t),(0,tI.Q)(t));if(tp(e))return tT(e,t);if(tg(e))return new f(function(r){var n;return(0,tS.N)(r,t,function(){n=e[tm](),(0,tS.N)(r,t,function(){var e,t,i;try{t=(e=n.next()).value,i=e.done}catch(e){r.error(e);return}i?r.complete():r.next(t)},0,!0)}),function(){return(0,d.T)(null==n?void 0:n.return)&&n.return()}});if(tv(e))return tT(ty(e),t)}throw tf(e)}(e,t):tw(e)}var tO=r(98774),tC=(0,tO.L)(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function tA(e){var t;return(t=e[e.length-1])&&(0,d.T)(t.schedule)?e.pop():void 0}function tN(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=tA(e);return tx(e,r)}function tP(e){return(0,eC.N)(function(t,r){var n,i=null,s=!1;i=t.subscribe((0,eA._)(r,void 0,void 0,function(a){n=tw(e(a,tP(e)(t))),i?(i.unsubscribe(),i=null,n.subscribe(r)):s=!0})),s&&(i.unsubscribe(),i=null,n.subscribe(r))})}var tR=(0,tO.L)(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),tD=r(74079),tj=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,tu.C6)(t,e),t.prototype.lift=function(e){var t=new tM(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new tR},t.prototype.next=function(e){var t=this;(0,p.Y)(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=(0,tu.Ju)(t.currentObservers),s=i.next();!s.done;s=i.next())s.value.next(e)}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;(0,p.Y)(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;(0,p.Y)(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null==(e=this.observers)?void 0:e.length)>0}
1,enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?l.Kn:(this.currentObservers=null,i.push(e),new l.yU(function(){t.currentObservers=null,(0,tD.o)(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},t.prototype.asObservable=function(){var e=new f;return e.source=this,e},t.create=function(e,t){return new tM(e,t)},t}(f),tM=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return(0,tu.C6)(t,e),t.prototype.next=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.next)||r.call(t,e)},t.prototype.error=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.error)||r.call(t,e)},t.prototype.complete=function(){var e,t;null==(t=null==(e=this.destination)?void 0:e.complete)||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!=(r=null==(t=this.source)?void 0:t.subscribe(e))?r:l.Kn},t}(tj);function tF(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new tj}:t,n=e.resetOnError,i=void 0===n||n,s=e.resetOnComplete,a=void 0===s||s,l=e.resetOnRefCountZero,c=void 0===l||l;return function(e){var t,n,s,l=0,u=!1,h=!1,d=function(){null==n||n.unsubscribe(),n=void 0},p=function(){d(),t=s=void 0,u=h=!1},f=function(){var e=t;p(),null==e||e.unsubscribe()};return(0,eC.N)(function(e,m){l++,h||u||d();var g=s=null!=s?s:r();m.add(function(){0!=--l||h||u||(n=tL(f,c))}),g.subscribe(m),!t&&l>0&&(t=new o.Ms({next:function(e){return g.next(e)},error:function(e){h=!0,d(),n=tL(p,i,e),g.error(e)},complete:function(){u=!0,d(),n=tL(p,a),g.complete()}}),tw(e).subscribe(t))})(e)}}function tL(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(!0===t)return void e();if(!1!==t){var i=new o.Ms({next:function(){i.unsubscribe(),e()}});return tw(t.apply(void 0,(0,tu.fX)([],(0,tu.zs)(r)))).subscribe(i)}}var tV=r(61838),tU=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=tV.U);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return(0,tu.C6)(t,e),t.prototype.next=function(t){var r=this.isStopped,n=this._buffer,i=this._infiniteTimeWindow,s=this._timestampProvider,a=this._windowTime;!r&&(n.push(t),i||n.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var s=t.now(),a=0,o=1;o<r.length&&r[o]<=s;o+=2)a=o;a&&r.splice(0,a+1)}},t}(tj);!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(a||(a={}));var tz=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return function(e,t){var r,n,i,s=e.kind,a=e.value,o=e.error;if("string"!=typeof s)throw TypeError('Invalid notification, missing "kind"');"N"===s?null==(r=t.next)||r.call(t,a):"E"===s?null==(n=t.error)||n.call(t,o):null==(i=t.complete)||i.call(t)}(this,e)},e.prototype.do=function(e,t,r){var n=this.kind,i=this.value,s=this.error;return"N"===n?null==e?void 0:e(i):"E"===n?null==t?void 0:t(s):null==r?void 0:r()},e.prototype.accept=function(e,t,r){return(0,d.T)(null==e?void 0:e.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this.kind,t=this.value,r=this.error,n="N"===e?tN(t):"E"===e?tc(function(){return r}):"C"===e?g:0;if(!n)throw TypeError("Unexpected notification kind "+e);return n},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function tB(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return tE(u,1)(tx(e,tA(e)))}function tq(e,t,r){var n=(0,d.T)(e)||t||r?{next:e,error:t,complete:r}:e;return n?(0,eC.N)(function(e,t){null==(r=n.subscribe)||r.call(n);var r,i=!0;e.subscribe((0,eA._)(t,function(e){var r;null==(r=n.next)||r.call(n,e),t.next(e)},function(){var e;i=!1,null==(e=n.complete)||e.call(n),t.complete()},function(e){var r;i=!1,null==(r=n.error)||r.call(n,e),t.error(e)},function(){var e,t;i&&(null==(e=n.unsubscribe)||e.call(n)),null==(t=n.finalize)||t.call(n)}))}):u}let t$=Object.assign(function(e){return JSON.stringify(e,tW)},{reset(){s=new $(O.canonicalStringify||1e3)}});function tW(e,t){if(t&&"object"==typeof t){let e=Object.getPrototypeOf(t);if(e===Object.prototype||null===e){let r=Object.keys(t);if(r.every(tH))return t;let n=JSON.stringify(r),i=s.get(n);if(!i){r.sort();let e=JSON.stringify(r);i=s.get(e)||r,s.set(n,i),s.set(e,i)}let a=Object.create(e);
1return i.forEach(e=>{a[e]=t[e]}),a}}return t}function tH(e,t,r){return 0===t||r[t-1]<=e}function tG(e){return e.filter(e=>e).map(e=>e.message||"Error message not found.").join("\n")}I.g&&(e_.canonicalStringify=()=>s.size),t$.reset();class tK extends Error{static is(e){return Y(e,"CombinedGraphQLErrors")}static formatMessage=tG;errors;data;extensions;constructor(e,t=e.errors||[]){super(tK.formatMessage(t,{result:e,defaultFormatMessage:tG})),this.errors=t,this.data=e.data,this.extensions=e.extensions,this.name="CombinedGraphQLErrors",X(this),Object.setPrototypeOf(this,tK.prototype)}}let tQ=new WeakSet;function tJ(e=[]){let t={};return e.forEach(e=>{t[e.name.value]=e}),t}function tZ(e){return e.definitions.filter(e=>"FragmentDefinition"===e.kind)}var tY=r(3217);function tX(e){return e.alias?e.alias.value:e.name.value}let t0=new ez;function t1(e,t,r){return t0.withValue(!0,()=>{let n=function e(t,r,n,i,s){let{knownChanged:a}=n,o=function(e,t){if(t.has(e))return t.get(e);let r=Array.isArray(e)?[]:{};return t.set(e,r),r}(t,n.mutableTargets);if(Array.isArray(t)){for(let[l,c]of Array.from(t.entries())){if(null===c){o[l]=null;continue}let t=e(c,r,n,i,I.g?`${s||""}[${l}]`:void 0);a.has(t)&&a.add(o),o[l]=t}return a.has(o)?o:t}for(let l of r.selections){let r;if(i&&a.add(o),l.kind===_.b.FIELD){let c=tX(l),u=l.selectionSet;if(void 0===(r=o[c]||t[c]))continue;if(u&&null!==r){let o=e(t[c],u,n,i,I.g?`${s||""}.${c}`:void 0);a.has(o)&&(r=o)}I.g||(o[c]=r),I.g&&(i&&"__typename"!==c&&!Object.getOwnPropertyDescriptor(o,c)?.value?Object.defineProperty(o,c,function(e,t,r,n,i){let s=()=>(t0.getValue()||(I.g&&k.V1.warn(40,n?`${i} '${n}'`:`anonymous ${i}`,`${r}.${e}`.replace(/^\./,"")),s=()=>t),t);return{get:()=>s(),set(e){s=()=>e},enumerable:!0,configurable:!0}}(c,r,s||"",n.operationName,n.operationType)):(delete o[c],o[c]=r))}if(l.kind===_.b.INLINE_FRAGMENT&&(!l.typeCondition||n.cache.fragmentMatches(l,t.__typename))&&(r=e(t,l.selectionSet,n,i,s)),l.kind===_.b.FRAGMENT_SPREAD){let i=l.name.value,a=n.fragmentMap[i]||(n.fragmentMap[i]=n.cache.lookupFragment(i));(0,k.V1)(a,39,i);let o=function(e){let t=e.directives?.find(({name:e})=>"unmask"===e.value);if(!t)return"mask";let r=t.arguments?.find(({name:e})=>"mode"===e.value);return(I.g&&r&&(r.value.kind===_.b.VARIABLE?I.g&&k.V1.warn(44):r.value.kind!==_.b.STRING?I.g&&k.V1.warn(45):"migrate"!==r.value.value&&I.g&&k.V1.warn(46,r.value.value)),r&&"value"in r.value&&"migrate"===r.value.value)?"migrate":"unmask"}(l);"mask"!==o&&(r=e(t,a.selectionSet,n,"migrate"===o,s))}a.has(r)&&a.add(o)}return"__typename"in t&&!("__typename"in o)&&(o.__typename=t.__typename),Object.keys(o).length!==Object.keys(t).length&&a.add(o),a.has(o)?o:t}(e,t,r,!1);return Object.isFrozen(e)&&(0,tY.G)(n),n})}var t2=r(52541);function t4(e){return 7!==e&&8!==e}function t3(e){return!!e.errors?.length}function t6(e,t=()=>void 0){return r=>new f(n=>{let i=t();return r.subscribe({next(t){let r;try{r=e(t,i)}catch(e){n.error(e)}void 0!==r&&n.next(r)},error(e){n.error(e)},complete(){n.complete()}})})}function t5(e){let t={data:e.data};return e.error&&(t.error=e.error),t}function t8(e){(0,k.V1)("Document"===e.kind,6),(0,k.V1)(e.definitions.length<=1,7);let t=e.definitions[0];return(0,k.V1)("FragmentDefinition"===t.kind,8),t}let t7=Array.isArray;function t9(e){return Array.isArray(e)&&e.length>0}function re(e){let t=new Map;return function(r=e){let n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function rt(e,t,r,n){if(r.kind===_.b.INT||r.kind===_.b.FLOAT)e[t.value]=Number(r.value);else if(r.kind===_.b.BOOLEAN||r.kind===_.b.STRING)e[t.value]=r.value;else if(r.kind===_.b.OBJECT){let i={};r.fields.map(e=>rt(i,e.name,e.value,n)),e[t.value]=i}else if(r.kind===_.b.VARIABLE){let i=(n||{})[r.name.value];e[t.value]=i}else if(r.kind===_.b.LIST)e[t.value]=r.values.map(e=>{let r={};return rt(r,t,e,n),r[t.value]});else if(r.kind===_.b.ENUM)e[t.value]=r.value;else if(r.kind===_.b.NULL)e[t.value]=null;else throw(0,k.vA)(19,t.value,r.kind)}function rr(e){let t={},r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(e=>{e.defaultValue&&rt(t,e.variable.name,e.defaultValue)}),t}var rn=r(13100),ri=r(62927),rs=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return(0,tu.C6)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()}
1,enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return r.closed||t.next(this._value),r},t.prototype.getValue=function(){var e=this.hasError,t=this.thrownError,r=this._value;if(e)throw t;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(tj),ra=r(98661);function ro(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{let r=e.name.value;if("function"==typeof t)return t(r);let n=t&&t[r];return(0,k.V1)(n,9,r),n||null}default:return null}}function rl(e){let t;for(let r of(W(e),e.definitions)){if("OperationDefinition"===r.kind)return r;"FragmentDefinition"!==r.kind||t||(t=r)}if(t)return t;throw(0,k.vA)(12)}function rc(e){return"Field"===e.kind}function ru({directives:e},t){return!e||!e.length||(function(e){let t=[];return e&&e.length&&e.forEach(e=>{if(!function({name:{value:e}}){return"skip"===e||"include"===e}(e))return;let r=e.arguments,n=e.name.value;(0,k.V1)(r&&1===r.length,16,n);let i=r[0];(0,k.V1)(i.name&&"if"===i.name.value,17,n);let s=i.value;(0,k.V1)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),18,n),t.push({directive:e,ifArgument:i})}),t})(e).every(({directive:e,ifArgument:r})=>{let n=!1;return"Variable"===r.value.kind?(n=t&&t[r.value.name.value],(0,k.V1)(void 0!==n,15,e.name.value)):n=r.value.value,"skip"===e.name.value?!n:n})}function rh(e,{data:t,...r},{data:n,...i},s){return(0,t2.L)(r,i)&&function e(t,r,n,i){if(r===n)return!0;let s=new Set;return t.selections.every(t=>{if(s.has(t)||(s.add(t),!ru(t,i.variables)||rd(t)))return!0;if(rc(t)){let s=tX(t),a=r&&r[s],o=n&&n[s],l=t.selectionSet;if(!l)return(0,t2.L)(a,o);let c=Array.isArray(a),u=Array.isArray(o);if(c!==u)return!1;if(c&&u){let t=a.length;if(o.length!==t)return!1;for(let r=0;r<t;++r)if(!e(l,a[r],o[r],i))return!1;return!0}return e(l,a,o,i)}{let s=ro(t,i.fragmentMap);if(s)return!!rd(s)||e(s.selectionSet,r,n,i)}})}(rl(e).selectionSet,t,n,{fragmentMap:tJ(tZ(e)),variables:s})}function rd(e){return!!e.directives&&e.directives.some(rp)}function rp(e){return"nonreactive"===e.name.value}function rf(e){let t=H(e);return(0,k.V1)(t&&"query"===t.operation,13),t}let{assign:rm,hasOwnProperty:rg}=Object,ry={loading:!0,networkStatus:ri.p.loading,data:void 0,dataState:"empty",partial:!0},rv={loading:!1,networkStatus:ri.p.ready,data:void 0,dataState:"empty",partial:!0};class rb{options;queryName;variablesUnknown=!1;_lastWrite;get query(){return this.lastQuery}get variables(){return this.options.variables}unsubscribeFromCache;input;subject;isTornDown;queryManager;subscriptions=new Set;waitForNetworkResult;lastQuery;linkSubscription;pollingInfo;get networkStatus(){return this.subject.getValue().result.networkStatus}constructor({queryManager:e,options:t,transformedQuery:r=e.transform(t.query)}){this.queryManager=e,this.waitForNetworkResult="network-only"===t.fetchPolicy,this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);let{watchQuery:{fetchPolicy:n="cache-first"}={}}=e.defaultOptions,{fetchPolicy:i=n,initialFetchPolicy:s="standby"===i?n:i}=t;t[ra._]&&((0,k.V1)("standby"===i,77),this.variablesUnknown=!0),this.lastQuery=r,this.options={...t,initialFetchPolicy:s,fetchPolicy:i,variables:this.getVariablesWithDefaults(t.variables)},this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);let a=H(this.query);this.queryName=a&&a.name&&a.name.value}initializeObservablesQueue(){this.subject=new rs({query:this.query,variables:this.variables,result:ry,meta:{}});let e=this.subject.pipe(tq({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),t6(({query:e,variables:t,result:r,meta:n},i)=>{let{shouldEmit:s}=n;if(r===ry&&(i.previous=void 0,i.previousVariables=void 0),"standby"===this.options.fetchPolicy||2===s)return;if(1===s)return l();let{previous:a,previousVariables:o}=i;if(a){let n=this.queryManager.getDocumentInfo(e),i=this.queryManager.dataMasking,s=i?n.nonReactiveQuery:e;if((i||n.hasNonreactiveDirective?rh(s,a,r,t):(0,t2.L)(a,r))&&(0,t2.L)(o,t))return}if(!(3===s&&(!this.options.notifyOnNetworkStatusChange||(0,t2.L)(a,r))))return l();function l(){return i.previous=r,i.previousVariables=t,r}},()=>({})));this.pipe=e.pipe.bind(e),this.subscribe=e.subscribe.bind(e),this.input=new tj,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}subscribe;pipe;[Symbol.observable];"@@observable";getCacheDiff({optimistic:e=!0}={}){return this.queryManager.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:e})}getInitialResult(e){let t=this.queryManager.prioritizeCacheValues?"cache-first":e||this.options.fetchPolicy,r=()=>{let e=this.getCacheDiff(),t=this.options.returnPartialData||e.complete?e.result??void 0:void 0;return this.maskResult({data:t,dataState:e.complete?"complete":void 0===t?"empty":"partial",loading:!e.complete,networkStatus:e.complete?ri.p.ready:ri.p.loading,partial:!e.complete})};switch(t){case"cache-only":return{...r(),loading:!1,networkStatus:ri.p.ready};case"cache-first":return r();case"cache-and-network":return{...r(),loading:!0,networkStatus:ri.p.loading};case"standby":return rv;default:return ry}}resubscribeCache(){let{variables:e,fetchPolicy:t}=this.options,r=this.query,n="standby"===t||"no-cache"===t||this.waitForNetworkResult,i=!rw({query:r,variables:e},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((n||i)&&this.unsubscribeFromCache?.(),n||!i)return;let s={query:r,variables:e,optimistic:!0,watcher:this,callback:e=>{let t=this.queryManager.getDocumentInfo(r);
1if((t.hasClientExports||t.hasForcedResolvers)&&(s.lastDiff=void 0),s.lastOwnDiff===e)return;let{result:n}=this.subject.getValue();(e.complete||!n.error&&n!==ry&&n!==rv)&&((0,t2.L)(n.data,e.result)||this.scheduleNotify())}},a=this.queryManager.cache.watch(s);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,a()},{query:r,variables:e})}stableLastResult;getCurrentResult(){let{result:e}=this.subject.getValue(),t=e.networkStatus===ri.p.error||this.hasObservers()||"no-cache"===this.options.fetchPolicy?e:this.getInitialResult();return t===ry&&(t=this.getInitialResult()),(0,t2.L)(this.stableLastResult,t)||(this.stableLastResult=t),this.stableLastResult}refetch(e){let{fetchPolicy:t}=this.options,r={pollInterval:0};if("no-cache"===t?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",I.g&&e&&rg.call(e,"variables")){let t=rf(this.query),r=t.variableDefinitions;r&&r.some(e=>"variables"===e.variable.name.value)||!I.g||k.V1.warn(78,e,t.name?.value||t)}return e&&!(0,t2.L)(this.variables,e)&&(r.variables=this.options.variables=this.getVariablesWithDefaults({...this.variables,...e})),this._lastWrite=void 0,this._reobserve(r,{newNetworkStatus:ri.p.refetch})}fetchMore({query:e,variables:t,context:r,errorPolicy:n,updateQuery:i}){(0,k.V1)("cache-only"!==this.options.fetchPolicy,79,y(this.query,"(anonymous)"));let s={...(0,K.o)(this.options,{errorPolicy:"none"},{query:e,context:r,errorPolicy:n}),variables:e?t:{...this.variables,...t},fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange};s.query=this.transformDocument(s.query),this.lastQuery=e?this.transformDocument(this.options.query):s.query;let a=!1,o="no-cache"!==this.options.fetchPolicy;o||(0,k.V1)(i,80);let{finalize:l,pushNotification:c}=this.pushOperation(ri.p.fetchMore);return c({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3}),this.queryManager.fetchQuery(s,ri.p.fetchMore).then(e=>{if(l(),o){let t=this.getCacheDiff();this.queryManager.cache.batch({update:t=>{i?t.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1},t=>i(t,{fetchMoreResult:e.data,variables:s.variables})):t.writeQuery({query:s.query,variables:s.variables,data:e.data})},onWatchUpdated:(e,r)=>{e.watcher!==this||(0,t2.L)(r.result,t.result)||(a=!0)}})}else{let t=this.getCurrentResult(),r=i(t.data,{fetchMoreResult:e.data,variables:s.variables});c({kind:"N",value:{...t,networkStatus:ri.p.ready,loading:!1,data:r,dataState:"streaming"===t.dataState?"streaming":"complete"},source:"network"})}return this.maskResult(e)}).finally(()=>{l(),o&&!a&&c({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})})}subscribeToMore(e){let t=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:t=>{let{updateQuery:r,onError:n}=e,{error:i}=t;if(i)return void(n?n(i):k.V1.error(81,i));r&&this.updateQuery((e,n)=>r(e,{subscriptionData:t,...n}))}});return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)&&t.unsubscribe()}}applyOptions(e){let t=(0,K.o)(this.options,e||{});rm(this.options,t),this.updatePolling()}async setVariables(e){return(e=this.getVariablesWithDefaults(e),(0,t2.L)(this.variables,e))?t5(this.getCurrentResult()):(this.options.variables=e,this.hasObservers())?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},{newNetworkStatus:ri.p.setVariables}):t5(this.getCurrentResult())}updateQuery(e){let{queryManager:t}=this,{result:r,complete:n}=this.getCacheDiff({optimistic:!1}),i=e(r,{variables:this.variables,complete:!!n,previousData:r});i&&(t.cache.writeQuery({query:this.options.query,data:i,variables:this.variables}),t.broadcastQueries())}startPolling(e){this.options.pollInterval=e,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(e,t){if(t.nextFetchPolicy){let{fetchPolicy:r="cache-first",initialFetchPolicy:n=r}=t;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy.call(t,r,{reason:e,options:t,observable:this,initialFetchPolicy:n}):"variables-changed"===e?t.fetchPolicy=n:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy}fetch(e,t,r,n){let i=this.options.fetchPolicy;e.context??={};let s=!1,a=e=>new f(r=>{try{return e.subscribe({next(e){s=!0,r.next(e)},error:e=>r.error(e),complete:()=>r.complete()})}finally{s||(h.override=t,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:c,variables:u,meta:{shouldEmit:3,fetchPolicy:i}}))}}),{observable:o,fromLink:l}=this.queryManager.fetchObservableWithInfo(e,{networkStatus:t,query:r,onCacheHit:()=>{s=!0},fetchQueryOperator:a,observableQuery:this}),{query:c,variables:u}=this,h={abort:()=>{p.unsubscribe()},query:c,variables:u};this.activeOperations.add(h);let d=t==ri.p.refetch||t==ri.p.setVariables,p=(o=o.pipe(n,tF())).pipe(tq({
1next:e=>{"newNetworkStatus"===e.source||"N"===e.kind&&e.value.loading?h.override=t:delete h.override},finalize:()=>this.activeOperations.delete(h)})).subscribe({next:e=>{let t={};d&&"N"===e.kind&&"loading"in e.value&&!e.value.loading&&(d=!1,t.shouldEmit=1),this.input.next({...e,query:c,variables:u,meta:t})}});return{fromLink:l,subscription:p,observable:o}}didWarnCacheOnlyPolling=!1;updatePolling(){if(this.queryManager.ssrMode)return;let{pollingInfo:e,options:{fetchPolicy:t,pollInterval:r}}=this;if(!r||!this.hasObservers()||"cache-only"===t){I.g&&!this.didWarnCacheOnlyPolling&&r&&"cache-only"===t&&(I.g&&k.V1.warn(82,y(this.query,"(anonymous)")),this.didWarnCacheOnlyPolling=!0),this.cancelPolling();return}if(e?.interval===r)return;(e||(this.pollingInfo={})).interval=r;let n=()=>{this.pollingInfo&&(t4(this.networkStatus)||this.options.skipPollAttempt?.()?i():this._reobserve({fetchPolicy:"no-cache"===this.options.initialFetchPolicy?"no-cache":"network-only"},{newNetworkStatus:ri.p.poll}).then(i,i))},i=()=>{let e=this.pollingInfo;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(n,e.interval))};i()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(e){return this._reobserve(e)}_reobserve(e,t){var r,n;let i,s,a;this.isTornDown=!1;let{newNetworkStatus:o}=t||{};this.queryManager.obsQueries.add(this);let l=o===ri.p.refetch||o===ri.p.poll,c=this.variables,u=this.options.fetchPolicy,h=(0,K.o)(this.options,e||{});this.variablesUnknown&&="standby"===h.fetchPolicy;let d=l?h:rm(this.options,h),p=this.transformDocument(d.query);this.lastQuery=p,e&&"variables"in e&&(d.variables=this.getVariablesWithDefaults(e.variables)),!l&&(this.updatePolling(),e&&e.variables&&!(0,t2.L)(e.variables,c)&&"standby"!==d.fetchPolicy&&(d.fetchPolicy===u||"function"==typeof d.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",d),void 0===o&&(o=ri.p.setVariables)));let f=this.networkStatus;o||(o=ri.p.loading,f!==ri.p.loading&&e?.variables&&!(0,t2.L)(e.variables,c)&&(o=ri.p.setVariables),"standby"===d.fetchPolicy&&(o=ri.p.ready)),"standby"===d.fetchPolicy&&this.cancelPolling(),this.resubscribeCache();let{promise:m,operator:g}=(n=e=>{switch(e.kind){case"E":throw e.error;case"N":if("newNetworkStatus"!==e.source&&!e.value.loading)return e.value}},i="standby"===d.fetchPolicy?{data:void 0}:void 0,{promise:new Promise((e,t)=>{s=e,a=t}),operator:tq({next(e){try{let t=n(e);void 0!==t&&(i=t)}catch(e){a(e)}},finalize:()=>{if(i)s(i);else{let e="The operation was aborted.",t="AbortError";a("undefined"!=typeof DOMException?new DOMException(e,t):Object.assign(Error(e),{name:t}))}}})}),{subscription:y,observable:v,fromLink:b}=this.fetch(d,o,p,g);l||!b&&this.linkSubscription||(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=y);let w=Object.assign(((r=m.then(e=>t5(this.maskResult(e))).finally(()=>{this.hasObservers()||0!==this.activeOperations.size||this.tearDownQuery()})).catch(()=>{}),r),{retain:()=>{let e=v.subscribe({}),t=()=>e.unsubscribe();return m.then(t,t),w}});return w}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){this.isTornDown||(this.resetNotifications(),this.unsubscribeFromCache?.(),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this._lastWrite=void 0)}transformDocument(e){return this.queryManager.transform(e)}maskResult(e){let t=this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,cause:this});return t===e.data?e:{...e,data:t}}dirty=!1;notifyTimeout;resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){!this.dirty&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(e=!1){if(!e){let e=this.queryManager.getDocumentInfo(this.query);if(e.hasClientExports||e.hasForcedResolvers)return}let{dirty:t}=this;if(this.resetNotifications(),t&&("cache-only"==this.options.fetchPolicy||"cache-and-network"==this.options.fetchPolicy||!this.activeOperations.size)){let e=this.getCacheDiff();(0,t2.L)(e.result,this.getCacheDiff({optimistic:!1}).result)?this.reobserveCacheFirst():this.input.next({kind:"N",value:{data:e.result,dataState:e.complete?"complete":e.result?"partial":"empty",networkStatus:ri.p.ready,loading:!1,error:void 0,partial:!e.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}}activeOperations=new Set;pushOperation(e){let t=!1,{query:r,variables:n}=this,i=()=>{this.activeOperations.delete(s)},s={override:e,abort:()=>{t=!0,i()},query:r,variables:n};return this.activeOperations.add(s),{finalize:i,pushNotification:(e,i)=>{t||this.input.next({...e,query:r,variables:n,meta:{...i}})}}}calculateNetworkStatus(e){if(e===ri.p.streaming)return e;let t=Array.from(this.activeOperations.values()).reverse().find(e=>rw(e,this)&&void 0!==e.override);return t?.override??e}
1abortActiveOperations(){this.activeOperations.forEach(e=>e.abort())}reset(){let e="cache-only"===this.options.fetchPolicy;this.setResult(e?rv:ry,{shouldEmit:e?1:2}),this.abortActiveOperations()}setResult(e,t){this.input.next({source:"setResult",kind:"N",value:e,query:this.query,variables:this.variables,meta:{...t}})}operator=t6(e=>{let t,{query:r,variables:n,meta:i}=e;if("setResult"===e.source)return{query:r,variables:n,result:e.value,meta:i};if("C"===e.kind||!rw(e,this))return;let s=this.subject.getValue();if("cache"===e.source){if((t=e.value).networkStatus===ri.p.ready&&t.partial&&(!this.options.returnPartialData||s.result.networkStatus===ri.p.error)&&"cache-only"!==this.options.fetchPolicy)return}else if("network"===e.source)this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),t="E"===e.kind?{...rw(s,e)?s.result:{data:void 0,dataState:"empty",partial:!0},error:e.error,networkStatus:ri.p.error,loading:!1}:e.value,"E"===e.kind&&"streaming"===t.dataState&&(t.dataState="complete"),t.error&&(i.shouldEmit=1);else if("newNetworkStatus"===e.source){let r=rw(s,e)?s.result:this.getInitialResult(i.fetchPolicy),{resetError:n}=e.value,a=n?void 0:r.error,o=a?ri.p.error:ri.p.ready;t={...r,error:a,networkStatus:o}}return(0,k.V1)(t),t.error||delete t.error,t.networkStatus=this.calculateNetworkStatus(t.networkStatus),t.loading=t4(t.networkStatus),{query:r,variables:n,result:t=this.maskResult(t),meta:i}});reobserveCacheFirst(){let{fetchPolicy:e,nextFetchPolicy:t}=this.options;"cache-and-network"===e||"network-only"===e?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy(r,n){return(this.nextFetchPolicy=t,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(r,n):e}}):this.reobserve()}getVariablesWithDefaults(e){return this.queryManager.getVariables(this.query,e)}}function rw(e,t){return!!(e&&t&&e.query===t.query&&(0,t2.L)(e.variables,t.variables))}let r_={},rS=new WeakMap;function rE(e,t){let r=e[t];"function"==typeof r&&(e[t]=function(){return rS.set(e,(rS.get(e)+1)%1e15),r.apply(this,arguments)})}let rI=new WeakMap;class rk{lastRequestId=1;cache;queryManager;id;observableQuery;incremental;constructor(e,t){let r=this.cache=e.cache,n=(rI.get(e)||0)+1;rI.set(e,n),this.id=n+"",this.observableQuery=t,this.queryManager=e,rS.has(r)||(rS.set(r,0),rE(r,"evict"),rE(r,"modify"),rE(r,"reset"))}_lastWrite;get lastWrite(){return(this.observableQuery||this)._lastWrite}set lastWrite(e){(this.observableQuery||this)._lastWrite=e}resetLastWrite(){this.lastWrite=void 0}shouldWrite(e,t){let{lastWrite:r}=this;return!(r&&r.dmCount===rS.get(this.cache)&&(0,t2.L)(t,r.variables)&&(0,t2.L)(e.data,r.result.data))}get hasNext(){return!!this.incremental&&this.incremental.hasNext}maybeHandleIncrementalResult(e,t,r){let{incrementalHandler:n}=this.queryManager;return n.isIncrementalResult(t)?(this.incremental||=n.startRequest({query:r}),this.incremental.handle(e,t)):t}markQueryResult(e,{document:t,variables:r,errorPolicy:n,cacheWriteBehavior:i}){let s={query:t,variables:r,returnPartialData:!0,optimistic:!0};this.observableQuery?.resetNotifications();let a=0===i,o=a?void 0:this.cache.diff(s),l=this.maybeHandleIncrementalResult(o?.result,e,t);return a||(rT(l,n)?this.cache.batch({onWatchUpdated:(e,t)=>{e.watcher===this.observableQuery&&(e.lastOwnDiff=t)}
1,update:e=>{if(this.shouldWrite(l,r))e.writeQuery({query:t,data:l.data,variables:r,overwrite:1===i}),this.lastWrite={result:l,variables:r,dmCount:rS.get(this.cache)};else if(o&&o.complete){l={...l,data:o.result};return}let n=e.diff(s);n.complete&&(l={...l,data:n.result})}}):this.lastWrite=void 0),l}markMutationResult(e,t,r=this.cache){let n=[],i=0===t.cacheWriteBehavior,s=this.maybeHandleIncrementalResult(i?void 0:r.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}).result,e,t.document);if("ignore"===t.errorPolicy&&(s={...s,errors:[]}),t3(s)&&"none"===t.errorPolicy)return Promise.resolve(s);let a=()=>({...s,dataState:this.hasNext?"streaming":"complete"});if(!i&&rT(s,t.errorPolicy)){n.push({result:s.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables});let{updateQueries:e}=t;e&&this.queryManager.getObservableQueries("all").forEach(t=>{let r=t&&t.queryName;if(!r||!Object.hasOwnProperty.call(e,r))return;let i=e[r],{query:s,variables:o}=t,{result:l,complete:c}=t.getCacheDiff({optimistic:!1});if(c&&l){let e=i(l,{mutationResult:a(),queryName:s&&y(s)||void 0,queryVariables:o});e&&n.push({result:e,dataId:"ROOT_QUERY",query:s,variables:o})}})}let o=t.refetchQueries;if("function"==typeof o&&(o=o(a())),n.length>0||(o||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){let e=[];
1if(this.queryManager.refetchQueries({updateCache:e=>{i||n.forEach(t=>e.write(t));let{update:r}=t;if(r){if(!i){let r=e.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});r.complete&&(s={...s,data:r.result})}this.hasNext||r(e,s,{context:t.context,variables:t.variables})}i||t.keepRootFields||this.hasNext||e.modify({id:"ROOT_MUTATION",fields:(e,{fieldName:t,DELETE:r})=>"__typename"===t?e:r})},include:o,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(t=>e.push(t)),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(e).then(()=>s)}return Promise.resolve(s)}markMutationOptimistic(e,t){let r="function"==typeof e?e(t.variables,{IGNORE:r_}):e;return r!==r_&&(this.cache.recordOptimisticTransaction(e=>{try{this.markMutationResult({data:r},t,e)}catch(e){k.V1.error(e)}},this.id),!0)}markSubscriptionResult(e,{document:t,variables:r,errorPolicy:n,cacheWriteBehavior:i}){0!==i&&(rT(e,n)&&this.cache.write({query:t,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:r}),this.queryManager.broadcastQueries())}}function rT(e,t="none"){let r=!t3(e);return!r&&("ignore"===t||"all"===t)&&e.data&&(r=!0),r}class rx{defaultOptions;client;clientOptions;assumeImmutableResults;documentTransform;ssrMode;defaultContext;dataMasking;incrementalHandler;localState;queryDeduplication;prioritizeCacheValues=!1;onBroadcast;mutationStore;obsQueries=new Set;fetchCancelFns=new Map;constructor(e){let t=new ti(e=>this.cache.transformDocument(e),{cache:!1});this.client=e.client,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientOptions=e.clientOptions,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking,this.localState=e.localState,this.incrementalHandler=e.incrementalHandler;let r=e.documentTransform;this.documentTransform=r?t.concat(r).concat(t):t,this.defaultContext=e.defaultContext||{},(this.onBroadcast=e.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(e=>e.stop()),this.cancelPendingFetches((0,k.vA)(84))}cancelPendingFetches(e){this.fetchCancelFns.forEach(t=>t(e)),this.fetchCancelFns.clear()}async mutate({mutation:e,variables:t,optimisticResponse:r,updateQueries:n,refetchQueries:i=[],awaitRefetchQueries:s=!1,update:a,onQueryUpdated:o,fetchPolicy:l,errorPolicy:c,keepRootFields:u,context:h}){let d=new rk(this);e=this.cache.transformForLink(this.transform(e));let{hasClientExports:p}=this.getDocumentInfo(e);t=this.getVariables(e,t),p&&(I.g&&(0,k.V1)(this.localState,85,y(e,"(anonymous)")),t=await this.localState.getExportedVariables({client:this.client,document:e,variables:t,context:h}));let f=this.mutationStore&&(this.mutationStore[d.id]={mutation:e,variables:t,loading:!0,error:null}),m=r&&d.markMutationOptimistic(r,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==l),errorPolicy:c,context:h,updateQueries:n,update:a,keepRootFields:u});return this.broadcastQueries(),new Promise((p,g)=>{let y={};return this.getObservableFromLink(e,{...h,optimisticResponse:m?r:void 0},t,{},!1).observable.pipe(rO(),tE(r=>{let p={...r};return tx(d.markMutationResult(p,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==l),errorPolicy:c,context:h,update:a,updateQueries:n,awaitRefetchQueries:s,refetchQueries:i,removeOptimistic:m?d.id:void 0,onQueryUpdated:o,keepRootFields:u}))})).pipe(eN(e=>{if(t3(e)&&"none"===c)throw new tK(e);return f&&(f.loading=!1,f.error=null),e})).subscribe({next:t=>{if(this.broadcastQueries(),!d.hasNext){let r={data:this.maskOperation({document:e,data:t.data,fetchPolicy:l,cause:y})};t3(t)&&(r.error=new tK(t)),Object.keys(t.extensions||{}).length&&(r.extensions=t.extensions),p(r)}},error:e=>(f&&(f.loading=!1,f.error=e),m&&this.cache.removeOptimistic(d.id),this.broadcastQueries(),"ignore"===c)?p({data:void 0}):"all"===c?p({data:void 0,error:e}):void g(e)})})}fetchQuery(e,t){return W(e.query,w.cE.QUERY),(async()=>{var r,n,i;return r=this.fetchObservableWithInfo(e,{networkStatus:t}
1).observable.pipe(t6(e=>{switch(e.kind){case"E":throw e.error;case"N":if("newNetworkStatus"!==e.source)return t5(e.value)}})),i="object"==typeof(n={defaultValue:{data:void 0}}),new Promise(function(e,t){var s,a=!1;r.subscribe({next:function(e){s=e,a=!0},error:t,complete:function(){a?e(s):i?e(n.defaultValue):t(new tC)}})})})()}transform(e){return this.documentTransform.transformDocument(e)}transformCache=new q(O["queryManager.getDocumentInfo"]||2e3);getDocumentInfo(e){let{transformCache:t}=this;if(!t.has(e)){let r,n=H(e),i={hasClientExports:eP(["client","export"],e,!0),hasForcedResolvers:(r=!1,E(e,{Directive:{enter(e){if("client"===e.name.value&&e.arguments&&(r=e.arguments.some(e=>"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value)))return S}}}),r),hasNonreactiveDirective:eP(["nonreactive"],e),hasIncrementalDirective:eP(["defer"],e),nonReactiveQuery:E(e,{FragmentSpread:e=>{if(!e.directives?.some(e=>"unmask"===e.name.value))return{...e,directives:[...e.directives||[],{kind:_.b.DIRECTIVE,name:{kind:_.b.NAME,value:"nonreactive"}}
1]}}}),clientQuery:eP(["client"],e)?e:null,serverQuery:function(e,t){var r;W(t);let n=re(""),i=re(""),s=e=>{for(let t=0,r;t<e.length&&(r=e[t]);++t)if(!t7(r)){if(r.kind===_.b.OPERATION_DEFINITION)return n(r.name&&r.name.value);if(r.kind===_.b.FRAGMENT_DEFINITION)return i(r.name.value)}return k.V1.error(14),null},a=0;for(let e=t.definitions.length-1;e>=0;--e)t.definitions[e].kind===_.b.OPERATION_DEFINITION&&++a;let o=function(e){let t=new Map,r=new Map;return e.forEach(e=>{e&&(e.name?t.set(e.name,e):e.test&&r.set(e.test,e))}),e=>{let n=t.get(e.name.value);return!n&&r.size&&r.forEach((t,r)=>{r(e)&&(n=t)}),n}}(e),l=e=>t9(e)&&e.map(o).some(e=>e&&e.remove),c=new Map,u=!1,h={enter(e){if(l(e.directives))return u=!0,null}},d=E(t,{Field:h,InlineFragment:h,VariableDefinition:{enter:()=>!1},Variable:{enter(e,t,r,n,i){let a=s(i);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter(e,t,r,n,i){if(l(e.directives))return u=!0,null;let a=s(i);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter(e,t,r,n){c.set(JSON.stringify(n),e)},leave:(e,t,r,n)=>e===c.get(JSON.stringify(n))?e:a>0&&e.selectionSet.selections.every(e=>e.kind===_.b.FIELD&&"__typename"===e.name.value)?(i(e.name.value).removed=!0,u=!0,null):void 0},Directive:{leave(e){if(o(e))return u=!0,null}}});if(!u)return t;let p=e=>(!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(t=>{p(i(t)).transitiveVars.forEach(t=>{e.transitiveVars.add(t)})})),e),f=new Set;d.definitions.forEach(e=>{e.kind===_.b.OPERATION_DEFINITION?p(n(e.name&&e.name.value)).fragmentSpreads.forEach(e=>{f.add(e)}):e.kind!==_.b.FRAGMENT_DEFINITION||0!==a||i(e.name.value).removed||f.add(e.name.value)}),f.forEach(e=>{p(i(e)).fragmentSpreads.forEach(e=>{f.add(e)})});let m={enter(e){let t;if(t=e.name.value,!f.has(t)||i(t).removed)return null}};return!function e(t,r){return!t||t.selectionSet.selections.every(t=>t.kind===_.b.FRAGMENT_SPREAD&&e(r[t.name.value],r))}(H(r=E(d,{FragmentSpread:m,FragmentDefinition:m,OperationDefinition:{leave(e){if(e.variableDefinitions){let t=p(n(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return{...e,variableDefinitions:e.variableDefinitions.filter(e=>t.has(e.variable.name.value))}}}}}))||t8(r),tJ(tZ(r)))?r:null}([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),operationType:n?.operation,defaultVars:rr(n),asQuery:{...e,definitions:e.definitions.map(e=>"OperationDefinition"===e.kind&&"query"!==e.operation?{...e,operation:"query"}:e)}};t.set(e,i)}let r=t.get(e);if(r.violation)throw r.violation;return r}getVariables(e,t){let r=this.getDocumentInfo(e).defaultVars,n=Object.entries(t??{}).map(([e,t])=>[e,void 0===t?r[e]:t]);return{...r,...Object.fromEntries(n)}}watchQuery(e){W(e.query,w.cE.QUERY);let t=this.transform(e.query);return void 0===(e={...e,variables:this.getVariables(t,e.variables)}).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!0),new rb({queryManager:this,options:e,transformedQuery:t})}query(e){let t=this.transform(e.query);return this.fetchQuery({...e,query:t}).then(r=>({...r,data:this.maskOperation({document:t,data:r?.data,fetchPolicy:e.fetchPolicy})}))}requestIdCounter=1;generateRequestId(){return this.requestIdCounter++}clearStore(e={discardWatches:!0}){return this.cancelPendingFetches((0,k.vA)(86)),this.obsQueries.forEach(e=>{e.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(e)}getObservableQueries(e="active"){let t=new Set,r=new Map,n=new Map,i=new Set;return Array.isArray(e)&&e.forEach(e=>{if("string"==typeof e)r.set(e,e),n.set(e,!1);else if((0,ea.U)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)){let t=eS(this.transform(e));r.set(t,y(e)),n.set(t,!1)}else(0,ea.U)(e)&&e.query&&i.add(e)}),this.obsQueries.forEach(r=>{let i=eS(this.transform(r.options.query));if("all"===e)return void t.add(r);let{queryName:s,options:{fetchPolicy:a}}=r;("active"!==e||"standby"!==a)&&("active"===e||s&&n.has(s)||i&&n.has(i))&&(t.add(r),s&&n.set(s,!0),i&&n.set(i,!0))}),i.size&&i.forEach(e=>{let r=new rb({queryManager:this,options:{...e,fetchPolicy:"network-only"}});t.add(r)}
1),I.g&&n.size&&n.forEach((e,t)=>{if(!e){let e=r.get(t);e?I.g&&k.V1.warn(87,e):I.g&&k.V1.warn(88)}}),t}refetchObservableQueries(e=!1){let t=[];return this.getObservableQueries(e?"all":"active").forEach(r=>{let{fetchPolicy:n}=r.options;(e||"standby"!==n)&&"cache-only"!==n&&t.push(r.refetch())}),this.broadcastQueries(),Promise.all(t)}startGraphQLSubscription(e){let t,{query:r,variables:n}=e,{fetchPolicy:i,errorPolicy:s="none",context:a={},extensions:o={}}=e;return W(r,w.cE.SUBSCRIPTION),r=this.transform(r),n=this.getVariables(r,n),I.g&&(0,k.V1)(!this.getDocumentInfo(r).hasClientExports||this.localState,89,y(r,"(anonymous)")),Object.assign((this.getDocumentInfo(r).hasClientExports?tx(this.localState.getExportedVariables({client:this.client,document:r,variables:n,context:a})):tN(n)).pipe(tE(e=>{var n;let{observable:l,restart:c}=this.getObservableFromLink(r,a,e,o),u=new rk(this);return t=c,l.pipe(eN(t=>{u.markSubscriptionResult(t,{document:r,variables:e,errorPolicy:s,cacheWriteBehavior:2*("no-cache"!==i)});let n={data:t.data??void 0};if(t3(t))n.error=new tK(t);else"extensions"in t&&et.is(t.extensions[en])&&(n.error=t.extensions[en],delete t.extensions[en]);return t.extensions&&Object.keys(t.extensions).length&&(n.extensions=t.extensions),n.error&&"none"===s&&(n.data=void 0),"ignore"===s&&delete n.error,n}),tP(e=>"ignore"===s?tN({data:void 0}):tN({data:void 0,error:e})),(n=e=>!!(e.data||e.error),(0,eC.N)(function(e,t){var r=0;e.subscribe((0,eA._)(t,function(e){return n.call(void 0,e,r++)&&t.next(e)}))})))})),{restart:()=>t?.()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(e=>e.notify())}inFlightLinkObservables=new R(!1);getObservableFromLink(e,t,r,n,i=t?.queryDeduplication??this.queryDeduplication){let s={},{serverQuery:a,clientQuery:o,operationType:l,hasIncrementalDirective:c}=this.getDocumentInfo(e),u=y(e),h={client:this.client};if(a){let{inFlightLinkObservables:e,link:o}=this;try{let c=this.incrementalHandler.prepareRequest({query:a,variables:r,context:{...this.defaultContext,...t,queryDeduplication:i},extensions:n});function d(e){return new f(t=>{function r(){return e.subscribe({next:t.next.bind(t),complete:t.complete.bind(t),error:t.error.bind(t)})}let n=r();return s.restart||=()=>{n.unsubscribe(),n=r()},()=>{n.unsubscribe(),s.restart=void 0}})}if(t=c.context,i){var p,m,g,v,b,_,S,E,T;let t=eS(a),n=t$(r);(s=e.lookup(t,n)).observable||(s.observable=eD(o,c,h).pipe(d,(p=()=>{e.peek(t,n)===s&&e.remove(t,n)},(0,eC.N)(function(e,t){try{e.subscribe(t)}finally{t.add(p)}})),l===w.cE.SUBSCRIPTION?tF():(m={refCount:!0},T=!1,m&&!0?(E=void 0===(b=m.bufferSize)?1/0:b,g=void 0===(_=m.windowTime)?1/0:_,T=void 0!==(S=m.refCount)&&S,v=m.scheduler):E=null!=m?m:1/0,tF({connector:function(){return new tU(E,g,v)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:T}))))}else s.observable=eD(o,c,h).pipe(d)}catch(e){s.observable=tc(()=>e)}}else s.observable=tN({data:{}});if(o){let{operation:n}=H(e);I.g&&(0,k.V1)(this.localState,90,n[0].toUpperCase()+n.slice(1),u??"(anonymous)"),(0,k.V1)(!c,91,n[0].toUpperCase()+n.slice(1),u??"(anonymous)"),s.observable=s.observable.pipe(tE(e=>tx(this.localState.execute({client:this.client,document:o,remoteResult:e,context:t,variables:r}))))}return{restart:()=>s.restart?.(),observable:s.observable.pipe(tP(e=>{var t,r,n;throw n=e=null!==(r=t=e)&&"object"==typeof r&&"string"==typeof r.message&&"string"==typeof r.name&&("string"==typeof r.stack||void 0===r.stack)?t:"string"==typeof t?Error(t,{cause:t}):new er(t),tQ.add(n),e}))}}getResultsFromLink(e,{queryInfo:t,cacheWriteBehavior:r,observableQuery:n}){let i=t.lastRequestId=this.generateRequestId(),{errorPolicy:s}=e,a=this.cache.transformForLink(e.query);return this.getObservableFromLink(a,e.context,e.variables).observable.pipe(eN(i=>{let o=t.markQueryResult(i,{...e,document:a,cacheWriteBehavior:r}),l=t3(o);if(l&&"none"===s)throw t.resetLastWrite(),n?.resetNotifications(),new tK(o);let c={data:o.data,...t.hasNext?{loading:!0,networkStatus:ri.p.streaming,dataState:"streaming",partial:!0}:{dataState:o.data?"complete":"empty",loading:!1,networkStatus:ri.p.ready,partial:!o.data}};return l&&("none"===s&&(c.data=void 0,c.dataState="empty"),"ignore"!==s&&(c.error=new tK(o),"streaming"!==c.dataState&&(c.networkStatus=ri.p.error))),c}),tP(e=>{if(i>=t.lastRequestId&&"none"===s)throw t.resetLastWrite(),n?.resetNotifications(),e;let r={data:void 0,dataState:"empty",loading:!1,networkStatus:ri.p.ready,partial:!0};return"ignore"!==s&&(r.error=e,r.networkStatus=ri.p.error),tN(r)}))}fetchObservableWithInfo(e,{networkStatus:t=ri.p.loading,query:r=e.query,fetchQueryOperator:n=e=>e,onCacheHit:i=()=>{},observableQuery:s}){let a,o,l=this.getVariables(r,e.variables),c=this.defaultOptions.watchQuery,{fetchPolicy:u=c&&c.fetchPolicy||"cache-first",errorPolicy:h=c&&c.errorPolicy||"none",returnPartialData:d=!1,notifyOnNetworkStatusChange:p=!0,context:m={}}=e;this.prioritizeCacheValues&&("network-only"===u||"cache-and-network"===u)&&(u="cache-first");let g=Object.assign({},e,{query:r,variables:l,fetchPolicy:u,errorPolicy:h,returnPartialData:d,notifyOnNetworkStatusChange:p,context:m}),v=new rk(this,s),b=r=>{g.variables=r;let a="no-cache"===u?0:t===ri.p.refetch&&"merge"!==g.refetchWritePolicy?1:2,o=this.fetchQueryByPolicy(g,{queryInfo:v,cacheWriteBehavior:a,onCacheHit:i,observableQuery:s});return o.observable=o.observable.pipe(n),"standby"!==g.fetchPolicy&&s?.applyNextFetchPolicy("after-fetch",e),o},w=()=>{this.fetchCancelFns.delete(v.id)};this.fetchCancelFns.set(v.id,e=>{_.next({kind:"E",error:e,source:"network"})});let _=new tj;if(this.getDocumentInfo(g.query).hasClientExports)I.g&&(0,k.V1)(this.localState,92,y(g.query,"(anonymous)")),a=tx(this.localState.getExportedVariables({client:this.client,document:g.query,variables:g.variables,context:g.context})).pipe(tE(e=>b(e).observable)),o=!0;else{let e=b(g.variables);o=e.fromLink,a=e.observable}return{observable:new f(e=>{e.add(w),a.subscribe(e),_.subscribe(e)}).pipe(tF()),fromLink:o}}refetchQueries({updateCache:e,include:t,optimistic:r=!1,removeOptimistic:n=r?(0,rn.v)("refetchQueries"):void 0,onQueryUpdated:i}){let s=new Map;
1t&&this.getObservableQueries(t).forEach(e=>{if("cache-only"===e.options.fetchPolicy||e.variablesUnknown)return;let t=e.getCurrentResult();s.set(e,{oq:e,lastDiff:{result:t?.data,complete:!t?.partial}})});let a=new Map;if(e){let t=new Set;this.cache.batch({update:e,optimistic:r&&n||!1,removeOptimistic:n,onWatchUpdated(e,r,n){let o=e.watcher;if(o instanceof rb&&!t.has(o)){if(t.add(o),i){s.delete(o);let e=i(o,r,n);return!0===e&&(e=o.refetch().retain()),!1!==e&&a.set(o,e),e}null!==i&&"cache-only"!==o.options.fetchPolicy&&s.set(o,{oq:o,lastDiff:n,diff:r})}}})}return s.size&&s.forEach(({oq:e,lastDiff:t,diff:r})=>{let n;i&&(r||(r=e.getCacheDiff()),n=i(e,r,t)),i&&!0!==n||(n=e.refetch().retain()),!1!==n&&a.set(e,n)}),n&&this.cache.removeOptimistic(n),a}noCacheWarningsByCause=new WeakSet;maskOperation(e){let{document:t,data:r}=e;if(I.g){let r,{fetchPolicy:n,cause:i={}}=e,s=H(t)?.operation;this.dataMasking&&"no-cache"===n&&(r=!0,E(t,{FragmentSpread:e=>{if(!(r=!!e.directives&&e.directives.some(e=>"unmask"===e.name.value)))return S}}),!r)&&!this.noCacheWarningsByCause.has(i)&&(this.noCacheWarningsByCause.add(i),I.g&&k.V1.warn(93,y(t,`Unnamed ${s??"operation"}`)))}return this.dataMasking?function(e,t,r){let n=H(t);return((0,k.V1)(n,43),null==e)?e:t1(e,n.selectionSet,{operationType:n.operation,operationName:n.name?.value,fragmentMap:tJ(tZ(t)),cache:r,mutableTargets:new WeakMap,knownChanged:new WeakSet})}(r,t,this.cache):r}maskFragment(e){let{data:t,fragment:r,fragmentName:n}=e;return this.dataMasking?function(e,t,r,n){let i=t.definitions.filter(e=>e.kind===_.b.FRAGMENT_DEFINITION);void 0===n&&((0,k.V1)(1===i.length,41,i.length),n=i[0].name.value);let s=i.find(e=>e.name.value===n);return((0,k.V1)(!!s,42,n),null==e||(0,t2.L)(e,{}))?e:t1(e,s.selectionSet,{operationType:"fragment",operationName:s.name.value,fragmentMap:tJ(tZ(t)),cache:r,mutableTargets:new WeakMap,knownChanged:new WeakSet})}(t,r,this.cache,n):t}fetchQueryByPolicy({query:e,variables:t,fetchPolicy:r,errorPolicy:n,returnPartialData:i,context:s},{cacheWriteBehavior:a,onCacheHit:o,queryInfo:l,observableQuery:c}){let u=()=>this.cache.diff({query:e,variables:t,returnPartialData:!0,optimistic:!0}),h=(r,a)=>{var l;let c=r.result;I.g&&!i&&null!==c&&(l=r.missing,I.g&&l&&I.g&&k.V1.debug(83,l));let u=e=>(r.complete||i||(e=void 0),{data:e,dataState:r.complete?"complete":e?"partial":"empty",loading:t4(a),networkStatus:a,partial:!r.complete}),h=e=>tN({kind:"N",value:u(e),source:"cache"});return(r.complete||i)&&this.getDocumentInfo(e).hasForcedResolvers?(I.g&&(0,k.V1)(this.localState,94,y(e,"(anonymous)")),o(),tx(this.localState.execute({client:this.client,document:e,remoteResult:c?{data:c}:void 0,context:s,variables:t,onlyRunForcedResolvers:!0,returnPartialData:!0}).then(e=>({kind:"N",value:u(e.data||void 0),source:"cache"})))):h("none"===n&&a===ri.p.refetch&&r.missing?void 0:c||void 0)},d=()=>this.getResultsFromLink({query:e,variables:t,context:s,fetchPolicy:r,errorPolicy:n},{cacheWriteBehavior:a,queryInfo:l,observableQuery:c}).pipe(rO(),(0,eC.N)(function(e,t){e.subscribe((0,eA._)(t,function(e){t.next(tz.createNext(e))},function(){t.next(tz.createComplete()),t.complete()},function(e){t.next(tz.createError(e)),t.complete()}))}),eN(e=>({...e,source:"network"})));switch(r){default:case"cache-first":{let e=u();if(e.complete)return{fromLink:!1,observable:h(e,ri.p.ready)};if(i)return{fromLink:!0,observable:tB(h(e,ri.p.loading),d())};return{fromLink:!0,observable:d()}}case"cache-and-network":{let e=u();if(e.complete||i)return{fromLink:!0,observable:tB(h(e,ri.p.loading),d())};return{fromLink:!0,observable:d()}}case"cache-only":return{fromLink:!1,observable:tB(h(u(),ri.p.ready))};case"network-only":case"no-cache":return{fromLink:!0,observable:d()};case"standby":return{fromLink:!1,observable:g}}}}function rO(){let e=!1;return tq({next(){e=!0},complete(){(0,k.V1)(e,95)}})}let rC=!1;class rA{link;cache;disableNetworkFetches;set prioritizeCacheValues(e){this.queryManager.prioritizeCacheValues=e}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}version;queryDeduplication;defaultOptions;devtoolsConfig;queryManager;devToolsHookCb;resetStoreCallbacks=[];clearStoreCallbacks=[];constructor(e){I.g&&((0,k.V1)(e.cache,65),(0,k.V1)(e.link,66));let{cache:t,documentTransform:r,ssrMode:n=!1,ssrForceFetchDelay:i=0,queryDeduplication:s=!0,defaultOptions:a,defaultContext:o,assumeImmutableResults:l=t.assumeImmutableResults,localState:c,devtools:u,dataMasking:h,link:d,incrementalHandler:p=new eR}=e;this.link=d,this.cache=t,this.queryDeduplication=s,this.defaultOptions=a||{},this.devtoolsConfig={...u,enabled:u?.enabled??I.g},this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.refetchObservableQueries=this.refetchObservableQueries.bind(this),this.version=tl.r,this.queryManager=new rx({client:this,defaultOptions:this.defaultOptions,defaultContext:o,documentTransform:r,queryDeduplication:s,ssrMode:n,dataMasking:!!h,clientOptions:e,incrementalHandler:p,assumeImmutableResults:l,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:c}),this.prioritizeCacheValues=n||i>0,i&&setTimeout(()=>{this.prioritizeCacheValues=!1},i),this.devtoolsConfig.enabled&&this.connectToDevTools()}connectToDevTools(){if("undefined"==typeof window)return;let e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!rC&&I.g&&(rC=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(()=>{if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){let e,t=window.navigator,r=t&&t.userAgent;"string"==typeof r&&(r.indexOf("Chrome/")>-1?e="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":r.indexOf("Firefox/")>-1&&(e="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),e&&I.g&&k.V1.log("Download the Apollo DevTools for a better development experience: %s",e)}},1e4))}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(e){this.queryManager.localState=e}stop(){this.queryManager.stop()}watchQuery(e){return this.defaultOptions.watchQuery&&(e=(0,ts.l)(this.defaultOptions.watchQuery,e)),this.queryManager.watchQuery(e)}query(e){return this.defaultOptions.query&&(e=(0,ts.l)(this.defaultOptions.query,e)),I.g&&((0,k.V1)("cache-and-network"!==e.fetchPolicy,67),(0,k.V1)("standby"!==e.fetchPolicy,68),(0,k.V1)(e.query,69),(0,k.V1)("Document"===e.query.kind,70),(0,k.V1)(!e.returnPartialData,71),(0,k.V1)(!e.pollInterval,72),(0,k.V1)(!e.notifyOnNetworkStatusChange,73)),this.queryManager.query(e)}mutate(e){let t=(0,ts.l)((0,K.o)({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),e);return I.g&&((0,k.V1)(t.mutation,74),(0,k.V1)("network-only"===t.fetchPolicy||"no-cache"===t.fetchPolicy,75)),W(t.mutation,w.cE.MUTATION),this.queryManager.mutate(t)}subscribe(e){let t={},r=this.queryManager.startGraphQLSubscription(e);return Object.assign(r.pipe(eN(r=>({...r,data:this.queryManager.maskOperation({document:e.query,data:r.data,fetchPolicy:e.fetchPolicy,cause:t})}))),{restart:r.restart})}readQuery(e,t=!1){return this.cache.readQuery({...e,query:this.transform(e.query)},t)}watchFragment(e){let t=this.queryManager.dataMasking;return this.cache.watchFragment({...e,fragment:this.transform(e.fragment,t)}).pipe(eN(r=>{if(I.g&&t){let t=this.queryManager.maskFragment({...e,data:r.data});return{...r,data:t}}return r}))}
1readFragment(e,t=!1){return this.cache.readFragment({...e,fragment:this.transform(e.fragment)},t)}writeQuery(e){let t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}writeFragment(e){let t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}__actionHookForDevTools(e){this.devToolsHookCb=e}__requestRaw(e){return eD(this.link,e,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(e=>e()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(e=>e())))}onResetStore(e){return this.resetStoreCallbacks.push(e),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(t=>t!==e)}}onClearStore(e){return this.clearStoreCallbacks.push(e),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(t=>t!==e)}}reFetchObservableQueries;refetchObservableQueries(e){return this.queryManager.refetchObservableQueries(e)}refetchQueries(e){let t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach((e,t)=>{r.push(t),n.push(e)});let i=Promise.all(n);return i.queries=r,i.results=n,i.catch(e=>{I.g&&k.V1.debug(76,e)}),i}getObservableQueries(e="active"){return this.queryManager.getObservableQueries(e)}extract(e){return this.cache.extract(e)}restore(e){return this.cache.restore(e)}setLink(e){this.link=e}get defaultContext(){return this.queryManager.defaultContext}maskedFragmentTransform=new ti(ta);transform(e,t=!1){let r=this.queryManager.transform(e);return t?this.maskedFragmentTransform.transformDocument(r):r}}I.g&&(rA.prototype.getMemoryInternals=to);let rN={kind:_.b.FIELD,name:{kind:_.b.NAME,value:"__typename"}},rP=Object.assign(function(e){return E(e,{SelectionSet:{enter(e,t,r){if(r&&r.kind===_.b.OPERATION_DEFINITION)return;let{selections:n}=e;if(!(!n||n.some(e=>e.kind===_.b.FIELD&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))))&&!(r.kind===_.b.FIELD&&r.directives&&r.directives.some(e=>"export"===e.name.value)))return{...e,selections:[...n,rN]}}}})},{added:e=>e===rN});function rR(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function rD(e,t){let r=t,n=[];return e.definitions.forEach(e=>{if("OperationDefinition"===e.kind)throw(0,k.vA)(10,e.operation,e.name?` named '${e.name.value}'`:"");"FragmentDefinition"===e.kind&&n.push(e)}),void 0===r&&((0,k.V1)(1===n.length,11,n.length),r=n[0].name.value),{...e,definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}},...e.definitions]}}class rj{assumeImmutableResults=!1;lookupFragment(e){return null}batch(e){let t,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(()=>t=e.update(this),r),t}recordOptimisticTransaction(e,t){this.performTransaction(e,t)}transformDocument(e){return e}transformForLink(e){return e}identify(e){}gc(){return[]}modify(e){return!1}readQuery(e,t=!!e.optimistic){return this.read({...e,rootId:e.id||"ROOT_QUERY",optimistic:t})}watchFragment(e){let t,{fragment:r,fragmentName:n,from:i,optimistic:s=!0,...a}=e,o=this.getFragmentDoc(r,n),l=void 0===i||"string"==typeof i?i:this.identify(i);if(I.g){let e=n||t8(r).name.value;!l&&I.g&&k.V1.warn(110,e)}let c={...a,returnPartialData:!0,id:l,query:o,optimistic:s};return new f(r=>this.watch({...c,immediate:!0,callback:n=>{let i=n.result;if(null===i&&(i={}),t&&rh(o,{data:t.result},{data:i},e.variables))return;let s={data:i,dataState:n.complete?"complete":"partial",complete:!!n.complete};n.missing&&(s.missing=n.missing.missing),t={...n,result:i},r.next(s)}}))}getFragmentDoc=tr(rD,{max:O["cache.fragmentQueryDocuments"]||1e3,cache:L,makeCacheKey:function(...e){return te.bind(null,...e)}(this)});readFragment(e,t=!!e.optimistic){return this.read({...e,query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t})}writeQuery({id:e,data:t,...r}){return this.write(Object.assign(r,{dataId:e||"ROOT_QUERY",result:t}))}writeFragment({id:e,data:t,fragment:r,fragmentName:n,...i}){return this.write(Object.assign(i,{query:this.getFragmentDoc(r,n),dataId:e,result:t}))}updateQuery(e,t){return this.batch({update(r){let n=r.readQuery(e),i=t(n);return null==i?n:(r.writeQuery({...e,data:i}),i)}})}updateFragment(e,t){return this.batch({update(r){let n=r.readFragment(e),i=t(n);return null==i?n:(r.writeFragment({...e,data:i}),i)}})}}I.g&&(rj.prototype.getMemoryInternals=to);let{hasOwnProperty:rM}
1=Object.prototype,rF=function(e,t,r){return this.merge(e[r],t[r])};class rL{reconciler;constructor(e=rF){this.reconciler=e}merge(e,t,...r){return(0,ea.U)(t)&&(0,ea.U)(e)?(Object.keys(t).forEach(n=>{if(rM.call(e,n)){let i=e[n];if(t[n]!==i){let s=this.reconciler(e,t,n,...r);s!==i&&((e=this.shallowCopyForMerge(e))[n]=s)}}else(e=this.shallowCopyForMerge(e))[n]=t[n]}),e):t}isObject=ea.U;pastCopies=new Set;shallowCopyForMerge(e){return(0,ea.U)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):{__proto__:Object.getPrototypeOf(e),...e},this.pastCopies.add(e)),e}}function rV(e){return{__ref:String(e)}}let{hasOwnProperty:rU}=Object.prototype;function rz({__typename:e,id:t,_id:r},n){if("string"==typeof e&&(n&&(n.keyObject=null!=t?{id:t}:null!=r?{_id:r}:void 0),null==t&&null!=r&&(t=r),null!=t))return`${e}:${"number"==typeof t||"string"==typeof t?t:JSON.stringify(t)}`}let rB={dataIdFromObject:rz,resultCaching:!0},rq=/^[_a-z][_0-9a-z]*/i;function r$(e){let t=e.match(rq);return t?t[0]:e}function rW(e){return(0,ea.U)(e)&&!rR(e)&&!t7(e)}function rH(e,t){let r=tJ(tZ(e));return{fragmentMap:r,lookupFragment(e){let n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}let rG={},rK=()=>rG,rQ={};class rJ{policies;group;data={};constructor(e,t){this.policies=e,this.group=t}toObject(){return{...this.data}}has(e){return void 0!==this.lookup(e,!0)}get(e,t){if(this.group.depend(e,t),rU.call(this.data,e)){let r=this.data[e];if(r&&rU.call(r,t))return r[t]}return"__typename"===t&&rU.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof r0?this.parent.get(e,t):void 0}lookup(e,t){return(t&&this.group.depend(e,"__exists"),rU.call(this.data,e))?this.data[e]:this instanceof r0?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?{}:void 0}merge(e,t){let r;rR(e)&&(e=e.__ref),rR(t)&&(t=t.__ref);let n="string"==typeof e?this.lookup(r=e):e,i="string"==typeof t?this.lookup(r=t):t;if(!i)return;(0,k.V1)("string"==typeof r,96);let s=new rL(r2).merge(n,i);if(this.data[r]=s,s!==n&&(delete this.refs[r],this.group.caching)){let e={};
1n||(e.__exists=1),Object.keys(i).forEach(t=>{if(!n||n[t]!==s[t]){e[t]=1;let r=r$(t);r===t||this.policies.hasKeyArgs(s.__typename,r)||(e[r]=1),void 0!==s[t]||this instanceof r0||delete s[t]}}),e.__typename&&!(n&&n.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete e.__typename,Object.keys(e).forEach(e=>this.group.dirty(r,e))}}modify(e,t,r){let n=this.lookup(e);if(n){let i={},s=!1,a=!0,o={DELETE:rG,INVALIDATE:rQ,isReference:rR,toReference:this.toReference,canRead:this.canRead,readField:(t,r)=>this.policies.readField("string"==typeof t?{fieldName:t,from:r||rV(e)}:t,{store:this})};if(Object.keys(n).forEach(l=>{let c=r$(l),u=n[l];if(void 0===u)return;let h="function"==typeof t?t:t[l]||(r?void 0:t[c]);if(h){let t=h===rK?rG:h((0,tY.G)(u),{...o,fieldName:c,storeFieldName:l,storage:this.getStorage(e,l)});if(t===rQ)this.group.dirty(e,l);else if(t===rG&&(t=void 0),t!==u&&(i[l]=t,s=!0,u=t,I.g)){let e=e=>{if(void 0===this.lookup(e.__ref))return I.g&&k.V1.warn(97,e),!0};if(rR(t))e(t);else if(Array.isArray(t)){let r,n=!1;for(let i of t){if(rR(i)){if(n=!0,e(i))break}else if("object"==typeof i&&i){let[e]=this.policies.identify(i);e&&(r=i)}if(n&&void 0!==r){I.g&&k.V1.warn(98,r);break}}}}}void 0!==u&&(a=!1)}),s)return this.merge(e,i),a&&(this instanceof r0?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1}delete(e,t,r){let n=this.lookup(e);if(n){let i=this.getFieldValue(n,"__typename"),s=t&&r?this.policies.getStoreFieldName({typename:i,fieldName:t,args:r}):t;return this.modify(e,s?{[s]:rK}:rK,!!r)}return!1}evict(e,t){let r=!1;return e.id&&(rU.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof r0&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r}clear(){this.replace(null)}extract(){let e=this.toObject(),t=[];return this.getRootIdSet().forEach(e=>{rU.call(this.policies.rootTypenamesById,e)||t.push(e)}),t.length&&(e.__META={extraRootIds:t.sort()}),e}replace(e){if(Object.keys(this.data).forEach(t=>{e&&rU.call(e,t)||this.delete(t)}),e){let{__META:t,...r}=e;Object.keys(r).forEach(e=>{this.merge(e,r[e])}),t&&t.extraRootIds.forEach(this.retain,this)}}rootIds={};retain(e){return this.rootIds[e]=(this.rootIds[e]||0)+1}release(e){if(this.rootIds[e]>0){let t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0}getRootIdSet(e=new Set){return Object.keys(this.rootIds).forEach(e.add,e),this instanceof r0?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e}gc(){let e=this.getRootIdSet(),t=this.toObject();e.forEach(r=>{rU.call(t,r)&&(Object.keys(this.findChildRefIds(r)).forEach(e.add,e),delete t[r])});let r=Object.keys(t);if(r.length){let e=this;for(;e instanceof r0;)e=e.parent;r.forEach(t=>e.delete(t))}return r}refs={};findChildRefIds(e){if(!rU.call(this.refs,e)){let t=this.refs[e]={},r=this.data[e];if(!r)return t;let n=new Set([r]);n.forEach(e=>{rR(e)&&(t[e.__ref]=!0),(0,ea.U)(e)&&Object.keys(e).forEach(t=>{let r=e[t];(0,ea.U)(r)&&n.add(r)})})}return this.refs[e]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(e,t)=>(0,tY.G)(rR(e)?this.get(e.__ref,t):e&&e[t]);canRead=e=>rR(e)?this.has(e.__ref):"object"==typeof e;toReference=(e,t)=>{if("string"==typeof e)return rV(e);if(rR(e))return e;let[r]=this.policies.identify(e);if(r){let n=rV(r);return t&&this.merge(r,e),n}};get supportsResultCaching(){return this.group.caching}}class rZ{caching;parent;d=null;keyMaker;constructor(e,t=null){this.caching=e,this.parent=t,this.resetCaching()}resetCaching(){this.d=this.caching?e9():null,this.keyMaker=new R}depend(e,t){if(this.d){this.d(t+"#"+e);let r=r$(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}}dirty(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")}}function rY(e,t){r4(e)&&e.group.depend(t,"__exists")}class rX extends rJ{constructor({policies:e,resultCaching:t=!0,seed:r}){super(e,new rZ(t)),r&&this.replace(r)}stump=new r1(this);addLayer(e,t){return this.stump.addLayer(e,t)}removeLayer(){return this}storageTrie=new R;getStorage(){return this.storageTrie.lookupArray(arguments)}}rJ.Root=rX;class r0 extends rJ{id;parent;replay;group;constructor(e,t,r,n){super(t.policies,n),this.id=e,this.parent=t,this.replay=r,this.group=n,r(this)}addLayer(e,t){return new r0(e,this,t,this.group)}removeLayer(e){let t=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEac
1h(e=>{let r=this.data[e],n=t.lookup(e);n?r?r!==n&&Object.keys(r).forEach(t=>{(0,t2.L)(r[t],n[t])||this.group.dirty(e,t)}):(this.group.dirty(e,"__exists"),Object.keys(n).forEach(t=>{this.group.dirty(e,t)})):this.delete(e)}),t):t===this.parent?this:t.addLayer(this.id,this.replay)}toObject(){return{...this.parent.toObject(),...this.data}}findChildRefIds(e){let t=this.parent.findChildRefIds(e);return rU.call(this.data,e)?{...t,...super.findChildRefIds(e)}:t}getStorage(...e){let t=this.parent;for(;t.parent;)t=t.parent;return t.getStorage(...e)}}class r1 extends r0{constructor(e){super("EntityStore.Stump",e,()=>{},new rZ(e.group.caching,e.group))}removeLayer(){return this}merge(e,t){return this.parent.merge(e,t)}}function r2(e,t,r){let n=e[r],i=t[r];return(0,t2.L)(n,i)?n:i}function r4(e){return!!(e&&e.supportsResultCaching)}function r3(e,t){if(e.arguments&&e.arguments.length){let r={};return e.arguments.forEach(({name:e,value:n})=>rt(r,e,n,t)),r}return null}let r6=["connection","include","skip","client","rest","export","nonreactive"],r5=t$,r8=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){let e=r.connection.filter?r.connection.filter:[];e.sort();let n={};e.forEach(e=>{n[e]=t[e]});let i=r5(n);if("{}"!==i)return`${r.connection.key}(${i})`}return r.connection.key}let n=e;if(t){let e=r5(t);"{}"!==e&&(n+=`(${e})`)}return r&&Object.keys(r).forEach(e=>{-1===r6.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?n+=`@${e}(${r5(r[e])})`:n+=`@${e}`)}),n},{setStringify(e){let t=r5;return r5=e,t}});var r7=r(32030);let r9={};function ne(e){let t=JSON.stringify(e);return r9[t]||(r9[t]={})}function nt(e){let t=ne(e);return t.keyFieldsFn||(t.keyFieldsFn=(t,r)=>{let n=(e,t)=>r.readField(t,e),i=r.keyObject=nn(e,e=>{let i=ns(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&rU.call(t,e[0])&&(i=ns(t,e,ni)),(0,k.V1)(void 0!==i,99,e.join("."),t),i});return`${r.typename}:${JSON.stringify(i)}`})}function nr(e){let t=ne(e);return t.keyArgsFn||(t.keyArgsFn=(t,{field:r,variables:n,fieldName:i})=>{let s=JSON.stringify(nn(e,e=>{let i=e[0],s=i.charAt(0);if("@"===s){if(r&&t9(r.directives)){let t=i.slice(1),s=r.directives.find(e=>e.name.value===t),a=s&&r3(s,n);return a&&ns(a,e.slice(1))}return}if("$"===s){let t=i.slice(1);if(n&&rU.call(n,t)){let r=e.slice(0);return r[0]=t,ns(n,r)}return}if(t)return ns(t,e)}));return(t||"{}"!==s)&&(i+=":"+s),i})}function nn(e,t){let r=new rL;return(function e(t){let r=ne(t);if(!r.paths){let n=r.paths=[],i=[];t.forEach((r,s)=>{t7(r)?(e(r).forEach(e=>n.push(i.concat(e))),i.length=0):(i.push(r),t7(t[s+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce((e,n)=>{let i=t(n);if(void 0!==i){for(let e=n.length-1;e>=0;--e)i={[n[e]]:i};e=r.merge(e,i)}return e},{})}function ni(e,t){return e[t]}function ns(e,t,r){return r=r||ni,function e(t){return(0,ea.U)(t)?t7(t)?t.map(e):nn(Object.keys(t).sort(),e=>ns(t,e)):t}(t.reduce(function e(t,n){return t7(t)?t.map(t=>e(t,n)):t&&r(t,n)},e))}let na=new ez,no=new WeakMap;function nl(e){let t=no.get(e);return t||no.set(e,t={vars:new Set,dep:e9()}),t}function nc(e){nl(e).vars.forEach(t=>t.forgetCache(e))}function nu(e){let t=new Set,r=new Set,n=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(e=>{var t;nl(e).dep.dirty(n),(t=e).broadcastWatches&&t.broadcastWatches()});let i=Array.from(r);r.clear(),i.forEach(t=>t(e))}}else{let e=na.getValue();e&&(i(e),nl(e).dep(n))}return e};n.onNextChange=e=>(r.add(e),()=>{r.delete(e)});let i=n.attachCache=e=>(t.add(e),nl(e).vars.add(n),n);return n.forgetCache=e=>t.delete(e),n}function nh(e){return void 0!==e.args?e.args:e.field?r3(e.field,e.variables):null}let nd=()=>void 0,np=(e,t)=>t.fieldName,nf=(e,t,{mergeObjects:r})=>r(e,t),nm=(e,t)=>t;class ng{config;typePolicies={};toBeAdded={};supertypeMap=new Map;fuzzySubtypes=new Map;cache;rootIdsByTypename={};rootTypenamesById={};usingPossibleTypes=!1;constructor(e){this.config=e,this.config={dataIdFromObject:rz,...e},this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}identify(e,t){let r,n=this,i=t&&(t.typename||t.storeObject?.__typename)||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];let s=t&&t.storeObject||e,a={...t,typename:i,storeObject:s,readField:t&&t.readField||((...e)=>{let t=nv(e,s);return n.readField(t,{store:n.cache.data,variables:t.variables})})},o=i&&this.getTypePolicy(i),l=o&&o.keyFn||this.config.dataIdFromObject;return t0.withValue(!0,()=>{for(;l;){let t=l({...e,...s},a);if(t7(t))l=nt(t);else{r=t;break}}}),r=r?String(r):void 0,a.keyObject?[r,a.keyObject]:[r]}addTypePolicies(e){Object.keys(e).forEach(t=>{let{queryType:r,mutationType:n,subscriptionType:i,...s}=e[t];r&&this.setRootTypename("Query",t),n&&this.setRootTypename("Mutation",t),i&&this.setRootTypename("Subscription",t),rU.call(this.toBeAdded,t)?this.toBeAdded[t].push(s):this.toBeAdded[t]=[s]})}updateTypePolicy(e,t,r){let n=this.getTypePolicy(e),{keyFields:i,fields:s}=t;function a(e,t){e.merge="function"==typeof t?t:!0===t?nf:!1===t?nm:e.merge}a(n,t.merge),n.keyFn=!1===i?nd:t7(i)?nt(i):"function"==typeof i?i:n.keyFn,s&&Object.keys(s).forEac
1h(t=>{let n=r[t];n&&n?.typename===e||(n=r[t]={typename:e});let i=s[t];if("function"==typeof i)n.read=i;else{let{keyArgs:e,read:t,merge:r}=i;n.keyFn=!1===e?np:t7(e)?nr(e):"function"==typeof e?e:n.keyFn,"function"==typeof t&&(n.read=t),a(n,r)}n.read&&n.merge&&(n.keyFn=n.keyFn||np)})}setRootTypename(e,t=e){let r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,k.V1)(!n||n===e,100,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)}addPossibleTypes(e){this.usingPossibleTypes=!0,Object.keys(e).forEach(t=>{this.getSupertypeSet(t,!0),e[t].forEach(e=>{this.getSupertypeSet(e,!0).add(t);let r=e.match(rq);r&&r[0]===e||this.fuzzySubtypes.set(e,new RegExp(e))})})}getTypePolicy(e){if(!rU.call(this.typePolicies,e)){let t=this.typePolicies[e]={};t.fields={};let r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((t,n)=>{if(t.test(e)){let e=this.supertypeMap.get(n);e&&e.forEach(e=>r.add(e))}})),r&&r.size&&r.forEach(e=>{let{fields:r,...n}=this.getTypePolicy(e);Object.assign(t,n),Object.assign(t.fields,r)})}let t=this.toBeAdded[e];return t&&t.length&&t.splice(0).forEach(t=>{this.updateTypePolicy(e,t,this.typePolicies[e].fields)}),this.typePolicies[e]}getFieldPolicy(e,t){if(e)return this.getTypePolicy(e).fields[t]}getSupertypeSet(e,t){let r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r}fragmentMatches(e,t,r,n){if(!e.typeCondition)return!0;if(!t)return!1;let i=e.typeCondition.name.value;if(t===i)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(i)){let s=this.getSupertypeSet(t,!0),a=[s],o=e=>{let t=this.getSupertypeSet(e,!1);t&&t.size&&0>a.indexOf(t)&&a.push(t)},l=!!(r&&this.fuzzySubtypes.size),c=!1;for(let u=0;u<a.length;++u){let h=a[u];if(h.has(i))return s.has(i)||(c&&I.g&&k.V1.warn(101,t,i),s.add(i)),!0;h.forEach(o),l&&u===a.length-1&&function e(t,r,n){return!!(0,ea.U)(r)&&(t7(r)?r.every(r=>e(t,r,n)):t.selections.every(t=>{if(rc(t)&&ru(t,n)){let i=tX(t);return rU.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))}(e.selectionSet,r,n)&&(l=!1,c=!0,this.fuzzySubtypes.forEach((e,r)=>{let n=t.match(e);n&&n[0]===t&&o(r)}))}}return!1}hasKeyArgs(e,t){let r=this.getFieldPolicy(e,t);return!!(r&&r.keyFn)}getStoreFieldName(e){var t,r;let n,i,s,{typename:a,fieldName:o}=e,l=this.getFieldPolicy(a,o),c=l&&l.keyFn;if(c&&a){let t={typename:a,fieldName:o,field:e.field||null,variables:e.variables},r=nh(e);for(;c;){let e=c(r,t);if(t7(e))c=nr(e);else{n=e||o;break}}}return(void 0===n&&(n=e.field?(t=e.field,r=e.variables,i=null,t.directives&&(i={},t.directives.forEach(e=>{i[e.name.value]={},e.arguments&&e.arguments.forEach(({name:t,value:n})=>rt(i[e.name.value],t,n,r))})),s=null,t.arguments&&t.arguments.length&&(s={},t.arguments.forEach(({name:e,value:t})=>rt(s,e,t,r))),r8(t.name.value,s,i)):r8(o,nh(e))),!1===n)?o:o===r$(n)?n:o+":"+n}readField(e,t){let r=e.from;if(!r||!(e.field||e.fieldName))return;if(void 0===e.typename){let n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}let n=this.getStoreFieldName(e),i=r$(n),s=t.store.getFieldValue(r,n),a=this.getFieldPolicy(e.typename,i),o=a&&a.read;if(o){let i=ny(this,r,e,t,t.store.getStorage(rR(r)?r.__ref:r,n));return na.withValue(this.cache,o,[s,i])}return s}getReadFunction(e,t){let r=this.getFieldPolicy(e,t);return r&&r.read}getMergeFunction(e,t,r){let n=this.getFieldPolicy(e,t),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i}runMergeFunction(e,t,{field:r,typename:n,merge:i},s,a){return i===nf?nb(s.store)(e,t):i===nm?t:(s.overwrite&&(e=void 0),i(e,t,ny(this,void 0,{typename:n,fieldName:r.name.value,field:r,variables:s.variables},s,a||{})))}}function ny(e,t,r,n,i){let s=e.getStoreFieldName(r),a=r$(s),o=r.variables||n.variables,{toReference:l,canRead:c}=n.store;return{args:nh(r),field:r.field||null,fieldName:a,storeFieldName:s,variables:o,isReference:rR,toReference:l,storage:i,cache:e.cache,canRead:c,readField:(...r)=>e.readField(nv(r,t,o),n),mergeObjects:nb(n.store)}}function nv(e,t,r){let n,{0:i,1:s,length:a}=e;return"string"==typeof i?n={fieldName:i,from:a>1?s:t}:(n={...i},rU.call(n,"from")||(n.from=t)),I.g&&void 0===n.from&&I.g&&k.V1.warn(102,(0,r7.p)(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function nb(e){return function(t,r){if(t7(t)||t7(r))throw(0,k.vA)(103);if((0,ea.U)(t)&&(0,ea.U)(r)){let n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if(rR(t)&&rW(r))return e.merge(t.__ref,r),t;if(rW(t)&&rR(r))return e.merge(t,r.__ref),r;if(rW(t)&&rW(r))return{...t,...r}}return r}}
1class nw extends Error{message;path;query;variables;constructor(e,t,r,n){if(super(e),this.message=e,this.path=t,this.query=r,this.variables=n,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let e=this.path.length-1;e>=0;--e)this.missing={[this.path[e]]:this.missing}}else this.missing=this.path;this.__proto__=nw.prototype}missing}function n_(e){return[e.selectionSet,e.objectOrReference,e.context]}class nS{executeSelectionSet;executeSubSelectedArray;config;knownResults=new WeakMap;constructor(e){this.config=e,this.executeSelectionSet=tr(e=>{let t=n_(e),r=this.executeSelectionSet.peek(...t);return r||(rY(e.context.store,e.enclosingRef.__ref),this.execSelectionSetImpl(e))},{max:O["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:n_,makeCacheKey(e,t,r){if(r4(r.store))return r.store.makeCacheKey(e,rR(t)?t.__ref:t,r.varString)}}),this.executeSubSelectedArray=tr(e=>(rY(e.context.store,e.enclosingRef.__ref),this.execSubSelectedArrayImpl(e)),{max:O["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:e,array:t,context:r}){if(r4(r.store))return r.store.makeCacheKey(e,t,r.varString)}})}diffQueryAgainstStore({store:e,query:t,rootId:r="ROOT_QUERY",variables:n,returnPartialData:i=!0}){let s,a=this.config.cache.policies;n={...rr(rf(t)),...n};let o=rV(r),l=this.executeSelectionSet({selectionSet:rl(t).selectionSet,objectOrReference:o,enclosingRef:o,context:{store:e,query:t,policies:a,variables:n,varString:t$(n),...rH(t,this.config.fragments)}});l.missing&&(s=new nw(function(e){try{JSON.stringify(e,(e,t)=>{if("string"==typeof t)throw t;return t})}catch(e){return e}}(l.missing),l.missing,t,n));let c=!s,{result:u}=l;return{result:c||i?0===Object.keys(u).length?null:u:null,complete:c,missing:s}}isFresh(e,t,r,n){if(r4(n.store)&&this.knownResults.get(e)===r){let i=this.executeSelectionSet.peek(r,t,n);if(i&&e===i.result)return!0}return!1}execSelectionSetImpl({selectionSet:e,objectOrReference:t,enclosingRef:r,context:n}){let i;if(rR(t)&&!n.policies.rootTypenamesById[t.__ref]&&!n.store.has(t.__ref))return{result:{},missing:`Dangling reference to missing ${t.__ref} object`};let{variables:s,policies:a,store:o}=n,l=o.getFieldValue(t,"__typename"),c=[],u=new rL;function h(e,t){return e.missing&&(i=u.merge(i,{[t]:e.missing})),e.result}"string"!=typeof l||a.rootIdsByTypename[l]||c.push({__typename:l});let d=new Set(e.selections);d.forEach(e=>{if(ru(e,s))if(rc(e)){let s=a.readField({fieldName:e.name.value,field:e,variables:n.variables,from:t},n),o=tX(e);void 0===s?rP.added(e)||(i=u.merge(i,{[o]:`Can't find field '${e.name.value}' on ${rR(t)?t.__ref+" object":"object "+JSON.stringify(t,null,2)}`})):t7(s)?s.length>0&&(s=h(this.executeSubSelectedArray({field:e,array:s,enclosingRef:r,context:n}),o)):e.selectionSet&&null!=s&&(s=h(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:s,enclosingRef:rR(s)?s:r,context:n}),o)),void 0!==s&&c.push({[o]:s})}else{let t=ro(e,n.lookupFragment);if(!t&&e.kind===_.b.FRAGMENT_SPREAD)throw(0,k.vA)(104,e.name.value);t&&a.fragmentMatches(t,l)&&t.selectionSet.selections.forEach(d.add,d)}});let p={result:function(e){let t=e[0]||{},r=e.length;if(r>1){let n=new rL;for(let i=1;i<r;++i)t=n.merge(t,e[i])}return t}(c),missing:i},f=(0,tY.G)(p);return f.result&&this.knownResults.set(f.result,e),f}execSubSelectedArrayImpl({field:e,array:t,enclosingRef:r,context:n}){let i,s=new rL;
1function a(e,t){return e.missing&&(i=s.merge(i,{[t]:e.missing})),e.result}return e.selectionSet&&(t=t.filter(n.store.canRead)),{result:t=t.map((t,i)=>null===t?null:t7(t)?a(this.executeSubSelectedArray({field:e,array:t,enclosingRef:r,context:n}),i):e.selectionSet?a(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:t,enclosingRef:rR(t)?t:r,context:n}),i):(I.g&&function(e,t,r){if(!t.selectionSet){let n=new Set([r]);n.forEach(r=>{(0,ea.U)(r)&&((0,k.V1)(!rR(r),105,rR(r)?e.get(r.__ref,"__typename"):r&&r.__typename,t.name.value),Object.values(r).forEach(n.add,n))})}}(n.store,e,t),t)),missing:i}}}let{toString:nE}=Object.prototype;function nI(e,t,r){let n=`${t}${r}`,i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:{...e,clientOnly:t,deferred:r}),i}class nk{cache;reader;fragments;constructor(e,t,r){this.cache=e,this.reader=t,this.fragments=r}writeToStore(e,{query:t,result:r,dataId:n,variables:i,overwrite:s}){let a=H(t),o=new rL,l={store:e,written:{},merge:(e,t)=>o.merge(e,t),variables:i={...rr(a),...i},varString:t$(i),...rH(t,this.fragments),overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},c=this.processSelectionSet({result:r||{},dataId:n,selectionSet:a.selectionSet,mergeTree:{map:new Map},context:l});if(!rR(c))throw(0,k.vA)(106,r);return l.incomingById.forEach(({storeObject:t,mergeTree:r,fieldNodeSet:n},i)=>{let s=rV(i);if(r&&r.map.size){let e=this.applyMerges(r,s,t,l);if(rR(e))return;t=e}if(I.g&&!l.overwrite){let e={};n.forEach(t=>{t.selectionSet&&(e[t.name.value]=!0)}),Object.keys(t).forEach(n=>{!0!==e[r$(n)]||(e=>{let t=r&&r.map.get(e);return!!(t&&t.info&&t.info.merge)})(n)||function(e,t,r,n){let i=e=>{let t=n.getFieldValue(e,r);return"object"==typeof t&&t},s=i(e);if(!s)return;let a=i(t);if(!a||rR(s)||(0,t2.L)(s,a)||Object.keys(s).every(e=>void 0!==n.getFieldValue(a,e)))return;let o=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),l=r$(r),c=`${o}.${l}`;if(nA.has(c))return;nA.add(c);let u=[];t7(s)||t7(a)||[s,a].forEach(e=>{let t=n.getFieldValue(e,"__typename");"string"!=typeof t||u.includes(t)||u.push(t)}),I.g&&k.V1.warn(109,l,o,u.length?"either ensure all objects of type "+u.join(" and ")+" have an ID or a custom merge function, or ":"",c,{...s},{...a})}(s,t,n,l.store)})}e.merge(i,t)}),e.retain(c.__ref),c}processSelectionSet({dataId:e,result:t,selectionSet:r,context:n,mergeTree:i}){let{policies:s}=this.cache,a={},o=e&&s.rootTypenamesById[e]||nN(t,r,n.fragmentMap)||e&&n.store.get(e,"__typename");"string"==typeof o&&(a.__typename=o);let l=(...e)=>{let t=nv(e,a,n.variables);if(rR(t.from)){let e=n.incomingById.get(t.from.__ref);if(e){let r=s.readField({...t,from:e.storeObject},n);if(void 0!==r)return r}}return s.readField(t,n)},c=new Set;this.flattenFields(r,t,n,o).forEach((e,r)=>{let n=t[tX(r)];if(c.add(r),void 0!==n){let t,c=s.getStoreFieldName({typename:o,fieldName:r.name.value,field:r,variables:e.variables}),u=nx(i,c),h=this.processFieldValue(n,r,r.selectionSet?nI(e,!1,!1):e,u);r.selectionSet&&(rR(h)||rW(h))&&(t=l("__typename",h));let d=s.getMergeFunction(o,r.name.value,t);d?u.info={field:r,typename:o,merge:d}:nC(i,c),a=e.merge(a,{[c]:h})}else!I.g||e.clientOnly||e.deferred||rP.added(r)||s.getReadFunction(o,r.name.value)||k.V1.error(107,tX(r),t)});try{let[i,c]=s.identify(t,{typename:o,selectionSet:r,fragmentMap:n.fragmentMap,storeObject:a,readField:l});e=e||i,c&&(a=n.merge(a,c))}catch(t){if(!e)throw t}if("string"==typeof e){let s=rV(e),o=n.written[e]||(n.written[e]=[]);if(o.indexOf(r)>=0||(o.push(r),this.reader&&this.reader.isFresh(t,s,r,n)))return s;let l=n.incomingById.get(e);return l?(l.storeObject=n.merge(l.storeObject,a),l.mergeTree=function e(t,r){if(t===r||!r||nO(r))return t;if(!t||nO(t))return r;let n=t.info&&r.info?{...t.info,...r.info}:t.info||r.info,i=t.map.size&&r.map.size,s={info:n,map:i?new Map:t.map.size?t.map:r.map};if(i){let n=new Set(r.map.keys());t.map.forEach((t,i)=>{s.map.set(i,e(t,r.map.get(i))),n.delete(i)}),n.forEach(n=>{s.map.set(n,e(r.map.get(n),t.map.get(n)))})}return s}(l.mergeTree,i),c.forEach(e=>l.fieldNodeSet.add(e))):n.incomingById.set(e,{storeObject:a,mergeTree:nO(i)?void 0:i,fieldNodeSet:c}),s}return a}processFieldValue(e,t,r,n){return t.selectionSet&&null!==e?t7(e)?e.map((e,i)=>{let s=this.processFieldValue(e,t,r,nx(n,i));return nC(n,i),s}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):I.g?function e(t,r){switch(nE.call(t)){case"[object Array]":{if((r=r||new Map).has(t))return r.get(t);let n=t.slice(0);
1return r.set(t,n),n.forEach(function(t,i){n[i]=e(t,r)}),n}case"[object Object]":{if((r=r||new Map).has(t))return r.get(t);let n=Object.create(Object.getPrototypeOf(t));return r.set(t,n),Object.keys(t).forEach(i=>{n[i]=e(t[i],r)}),n}default:return t}}(e):e}flattenFields(e,t,r,n=nN(t,e,r.fragmentMap)){let i=new Map,{policies:s}=this.cache,a=new R(!1);return!function e(o,l){let c=a.lookup(o,l.clientOnly,l.deferred);c.visited||(c.visited=!0,o.selections.forEach(a=>{if(!ru(a,r.variables))return;let{clientOnly:o,deferred:c}=l;if(!(o&&c)&&t9(a.directives)&&a.directives.forEach(e=>{let t=e.name.value;if("client"===t&&(o=!0),"defer"===t){let t=r3(e,r.variables);t&&!1===t.if||(c=!0)}}),rc(a)){let e=i.get(a);e&&(o=o&&e.clientOnly,c=c&&e.deferred),i.set(a,nI(r,o,c))}else{let i=ro(a,r.lookupFragment);if(!i&&a.kind===_.b.FRAGMENT_SPREAD)throw(0,k.vA)(108,a.name.value);i&&s.fragmentMatches(i,n,t,r.variables)&&e(i.selectionSet,nI(r,o,c))}}))}(e,r),i}applyMerges(e,t,r,n,i){if(e.map.size&&!rR(r)){let s,a=!t7(r)&&(rR(t)||rW(t))?t:void 0,o=r;a&&!i&&(i=[rR(a)?a.__ref:a]);let l=(e,t)=>t7(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t));e.map.forEach((e,t)=>{let r=l(a,t),c=l(o,t);if(void 0===c)return;i&&i.push(t);let u=this.applyMerges(e,r,c,n,i);u!==c&&(s=s||new Map).set(t,u),i&&(0,k.V1)(i.pop()===t)}),s&&(r=t7(o)?o.slice(0):{...o},s.forEach((e,t)=>{r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&n.store.getStorage(...i)):r}}let nT=[];function nx({map:e},t){return e.has(t)||e.set(t,nT.pop()||{map:new Map}),e.get(t)}function nO(e){return!e||!(e.info||e.map.size)}function nC({map:e},t){let r=e.get(t);r&&nO(r)&&(nT.push(r),e.delete(t))}let nA=new Set;function nN(e,t,r){let n;for(let r of t.selections)if(rc(r)){if("__typename"===r.name.value)return e[tX(r)]}else n?n.push(r):n=[r];if("string"==typeof e.__typename)return e.__typename;if(n)for(let t of n){let n=nN(e,ro(t,r).selectionSet,r);if("string"==typeof n)return n}}class nP extends rj{data;optimisticData;config;watches=new Set;storeReader;storeWriter;addTypenameTransform=new ti(rP);maybeBroadcastWatch;assumeImmutableResults=!0;policies;makeVar=nu;constructor(e={}){super(),this.config=(0,K.o)(rB,e),this.policies=new ng({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){let e=this.data=new rJ.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()}resetResultCache(){let{fragments:e}=this.config;this.addTypenameTransform.resetCache(),e?.resetCaches(),this.storeWriter=new nk(this,this.storeReader=new nS({cache:this,fragments:e}),e),this.maybeBroadcastWatch=tr((e,t)=>this.broadcastWatch(e,t),{max:O["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:e=>{let t=e.optimistic?this.optimisticData:this.data;if(r4(t)){let{optimistic:r,id:n,variables:i}=e;return t.makeCacheKey(e.query,e.callback,t$({optimistic:r,id:n,variables:i}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(e=>e.resetCaching())}restore(e){return this.init(),e&&this.data.replace(e),this}extract(e=!1){return(e?this.optimisticData:this.data).extract()}read(e){let{returnPartialData:t=!1}=e;return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:t}).result}write(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}modify(e){if(rU.call(e,"id")&&!e.id)return!1;let t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields,!1)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}diff(e){return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config})}watch(e){var t;return this.watches.size||(t=this,nl(t).vars.forEach(e=>e.attachCache(t))),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),()=>{this.watches.delete(e)&&!this.watches.size&&nc(this),this.maybeBroadcastWatch.forget(e)}}gc(e){t$.reset(),eS.reset();let t=this.optimisticData.gc();return e&&!this.txCount&&e.resetResultCache&&this.resetResultCache(),t}retain(e,t){return(t?this.optimisticData:this.data).retain(e)}release(e,t){return(t?this.optimisticData:this.data).release(e)}identify(e){if(rR(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){I.g&&k.V1.warn(e)}}evict(e){if(!e.id){if(rU.call(e,"id"))return!1;e={...e,id:"ROOT_QUERY"}}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}reset(e){return this.init(),t$.reset(),e&&e.discardWatches?(this.watches.forEac
1h(e=>this.maybeBroadcastWatch.forget(e)),this.watches.clear(),nc(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(e){let t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())}txCount=0;batch(e){let t,{update:r,optimistic:n=!0,removeOptimistic:i,onWatchUpdated:s}=e,a=e=>{let{data:n,optimisticData:i}=this;++this.txCount,e&&(this.data=this.optimisticData=e);try{return t=r(this)}finally{--this.txCount,this.data=n,this.optimisticData=i}},o=new Set;return s&&!this.txCount&&this.broadcastWatches({...e,onWatchUpdated:e=>(o.add(e),!1)}),"string"==typeof n?this.optimisticData=this.optimisticData.addLayer(n,a):!1===n?a(this.data):a(),"string"==typeof i&&(this.optimisticData=this.optimisticData.removeLayer(i)),s&&o.size?(this.broadcastWatches({...e,onWatchUpdated(e,t){let r=s.call(this,e,t);return!1!==r&&o.delete(e),r}}),o.size&&o.forEach(e=>this.maybeBroadcastWatch.dirty(e))):this.broadcastWatches(e),t}performTransaction(e,t){return this.batch({update:e,optimistic:t||null!==t})}transformDocument(e){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(e))}fragmentMatches(e,t){return this.policies.fragmentMatches(e,t)}lookupFragment(e){return this.config.fragments?.lookup(e)||null}broadcastWatches(e){this.txCount||this.watches.forEach(t=>this.maybeBroadcastWatch(t,e))}addFragmentsToDocument(e){let{fragments:t}=this.config;return t?t.transform(e):e}broadcastWatch(e,t){let{lastDiff:r}=e,n=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,n,r)))&&(r&&(0,t2.L)(r.result,n.result)||e.callback(e.lastDiff=n,r))}}I.g&&(nP.prototype.getMemoryInternals=to);var nR=r(70177);let nD=new G((e,t)=>
1new f(r=>{t(e).subscribe({next:e=>{e.data&&(e.data=(0,nR.Q)(e.data)),r.next(e)},error:e=>r.error(e),complete:()=>r.complete()})})),nj=()=>{let e;return e=new eO({uri:"".concat(window.location.origin,"/api/graphql")}),new rA({link:G.from([nD,e]),cache:new nP,defaultOptions:{query:{fetchPolicy:"cache-first",errorPolicy:"all"}}})}},37197:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>z,J1:()=>V});var n,i,s=r(13829);let a=/\r\n|[\n\r]/g;function o(e,t){let r=0,n=1;for(let i of e.body.matchAll(a)){if("number"==typeof i.index||function(e,t){if(!e)throw Error("Unexpected invariant triggered.")}(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function l(e,t){let r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,s=e.locationOffset.line-1,a=t.line+s,o=1===t.line?r:0,l=t.column+o,u=`${e.name}:${a}:${l} 2`,h=n.split(/\r\n|[\n\r]/g),d=h[i];if(d.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e<d.length;e+=80)t.push(d.slice(e,e+80));return u+c([[`${a} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return u+c([[`${a-1} |`,h[i-1]],[`${a} |`,d],["|","^".padStart(l)],[`${a+1} |`,h[i+1]]])}function c(e){let t=e.filter(([e,t])=>void 0!==t),r=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(r)+(t?" "+t:"")).join("\n")}class u extends Error{constructor(e,...t){var r,n,i;let{nodes:s,source:a,positions:l,path:c,originalError:d,extensions:p}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=c?c:void 0,this.originalError=null!=d?d:void 0,this.nodes=h(Array.isArray(s)?s:s?[s]:void 0);let f=h(null==(r=this.nodes)?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=a?a:null==f||null==(n=f[0])?void 0:n.source,this.positions=null!=l?l:null==f?void 0:f.map(e=>e.start),this.locations=l&&a?l.map(e=>o(a,e)):null==f?void 0:f.map(e=>o(e.source,e.start));let m=!function(e){return"object"==typeof e&&null!==e}(null==d?void 0:d.extensions)||null==d?void 0:d.extensions;this.extensions=null!=(i=null!=p?p:m)?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=d&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,u):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let r of this.nodes){var t;r.loc&&(e+="\n\n"+l((t=r.loc).source,o(t.source,t.start)))}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+l(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function h(e){return void 0===e||0===e.length?void 0:e}function d(e,t,r){return new u(`Syntax Error: ${r}`,{source:e,positions:[t]})}var p=r(19723);!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(n||(n={}));var f=r(45858),m=r(6299),g=r(84896);!function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}
2",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(i||(i={}));class y{constructor(e){let t=new p.ou(i.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==i.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let r=e.source.body,n=r.length,s=t;for(;s<n;){let t=r.charCodeAt(s);switch(t){case 65279:case 9:case 32:case 44:++s;continue;case 10:++s,++e.line,e.lineStart=s;continue;case 13:10===r.charCodeAt(s+1)?s+=2:++s,++e.line,e.lineStart=s;continue;case 35:return function(e,t){let r=e.source.body,n=r.length,s=t+1;for(;s<n;){let e=r.charCodeAt(s);if(10===e||13===e)break;if(v(e))++s;else if(b(r,s))s+=2;else break}return E(e,i.COMMENT,t,s,r.slice(t+1,s))}(e,s);case 33:return E(e,i.BANG,s,s+1);case 36:return E(e,i.DOLLAR,s,s+1);case 38:return E(e,i.AMP,s,s+1);case 40:return E(e,i.PAREN_L,s,s+1);case 41:return E(e,i.PAREN_R,s,s+1);case 46:if(46===r.charCodeAt(s+1)&&46===r.charCodeAt(s+2))return E(e,i.SPREAD,s,s+3);break;case 58:return E(e,i.COLON,s,s+1);case 61:return E(e,i.EQUALS,s,s+1);case 64:return E(e,i.AT,s,s+1);case 91:return E(e,i.BRACKET_L,s,s+1);case 93:return E(e,i.BRACKET_R,s,s+1);case 123:return E(e,i.BRACE_L,s,s+1);case 124:return E(e,i.PIPE,s,s+1);case 125:return E(e,i.BRACE_R,s,s+1);case 34:if(34===r.charCodeAt(s+1)&&34===r.charCodeAt(s+2))return function(e,t){let r=e.source.body,n=r.length,s=e.lineStart,a=t+3,o=a,l="",c=[];for(;a<n;){let n=r.charCodeAt(a);if(34===n&&34===r.charCodeAt(a+1)&&34===r.charCodeAt(a+2)){l+=r.slice(o,a),c.push(l);let n=E(e,i.BLOCK_STRING,t,a+3,(0,m.OC)(c).join("\n"));return e.line+=c.length-1,e.lineStart=s,n}if(92===n&&34===r.charCodeAt(a+1)&&34===r.charCodeAt(a+2)&&34===r.charCodeAt(a+3)){l+=r.slice(o,a),o=a+1,a+=4;continue}if(10===n||13===n){l+=r.slice(o,a),c.push(l),13===n&&10===r.charCodeAt(a+1)?a+=2:++a,l="",o=a,s=a;continue}if(v(n))++a;else if(b(r,a))a+=2;else throw d(e.source,a,`Invalid character within String: ${S(e,a)}.`)}throw d(e.source,a,"Unterminated string.")}(e,s);return function(e,t){let r=e.source.body,n=r.length,s=t+1,a=s,o="";for(;s<n;){let n=r.charCodeAt(s);if(34===n)return o+=r.slice(a,s),E(e,i.STRING,t,s+1,o);if(92===n){o+=r.slice(a,s);let t=117===r.charCodeAt(s+1)?123===r.charCodeAt(s+2)?function(e,t){let r=e.source.body,n=0,i=3;for(;i<12;){let e=r.charCodeAt(t+i++);if(125===e){if(i<5||!v(n))break;return{value:String.fromCodePoint(n),size:i}}if((n=n<<4|T(e))<0)break}throw d(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+i)}".`)}(e,s):function(e,t){let r=e.source.body,n=k(r,t+2);if(v(n))return{value:String.fromCodePoint(n),size:6};if(w(n)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){let e=k(r,t+8);if(_(e))return{value:String.fromCodePoint(n,e),size:12}}throw d(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}(e,s):function(e,t){let r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw d(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}(e,s);o+=t.value,s+=t.size,a=s;continue}if(10===n||13===n)break;if(v(n))++s;else if(b(r,s))s+=2;else throw d(e.source,s,`Invalid character within String: ${S(e,s)}.`)}throw d(e.source,s,"Unterminated string.")}(e,s)}if((0,g.yp)(t)||45===t)return function(e,t,r){let n=e.source.body,s=t,a=r,o=!1;if(45===a&&(a=n.charCodeAt(++s)),48===a){if(a=n.charCodeAt(++s),(0,g.yp)(a))throw d(e.source,s,`Invalid number, unexpected digit after 0: ${S(e,s)}.`)}else s=I(e,s,a),a=n.charCodeAt(s);if(46===a&&(o=!0,a=n.charCodeAt(++s),s=I(e,s,a),a=n.charCodeAt(s)),(69===a||101===a)&&(o=!0,(43===(a=n.charCodeAt(++s))||45===a)&&(a=n.charCodeAt(++s)),s=I(e,s,a),a=n.charCodeAt(s)),46===a||(0,g.un)(a))throw d(e.source,s,`Invalid number, expected digit but got: ${S(e,s)}.`);return E(e,o?i.FLOAT:i.INT,t,s,n.slice(t,s))}(e,s,t);if((0,g.un)(t))return function(e,t){let r=e.source.body,n=r.length,s=t+1;for(;s<n;){let e=r.charCodeAt(s);if((0,g.xr)(e))++s;else break}return E(e,i.NAME,t,s,r.slice(t,s))}(e,s);throw d(e.source,s,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":v(t)||b(r,s)?`Unexpected character: ${S(e,s)}.`:`Invalid character: ${S(e,s)}.`)}return E(e,i.EOF,n,n)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===i.COMMENT);return e}}function v(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function b(e,t){return w(e.charCodeAt(t))&&_(e.charCodeAt(t+1))}function w(e){return e>=55296&&e<=56319}function _(e){return e>=56320&&e<=57343}function S(e,t){let r=e.source.body.codePointAt(t);if(void 0===r)return i.EOF;
2if(r>=32&&r<=126){let e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function E(e,t,r,n,i){let s=e.line,a=1+r-e.lineStart;return new p.ou(t,r,n,s,a,i)}function I(e,t,r){if(!(0,g.yp)(r))throw d(e.source,t,`Invalid number, expected digit but got: ${S(e,t)}.`);let n=e.source.body,i=t+1;for(;(0,g.yp)(n.charCodeAt(i));)++i;return i}function k(e,t){return T(e.charCodeAt(t))<<12|T(e.charCodeAt(t+1))<<8|T(e.charCodeAt(t+2))<<4|T(e.charCodeAt(t+3))}function T(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}var x=r(71960),O=r(59583);let C=globalThis.process&&1?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var r;let n=t.prototype[Symbol.toStringTag];if(n===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(r=e.constructor)?void 0:r.name)){let t=(0,O.N)(e);throw Error(`Cannot use ${n} "${t}" from another module or realm. 3 4Ensure that there is only one instance of "graphql" in the node_modules 5directory. If different versions of "graphql" are the dependencies of other 6relied on modules, use "resolutions" to ensure only one version is installed. 7 8https://yarnpkg.com/en/docs/selective-version-resolutions 9 10Duplicate "graphql" modules cannot be used at the same time since different 11versions may have different capabilities and behavior. The data from one 12version used in the function from another could produce confusing and 13spurious results.`)}}return!1};class A{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||(0,x.U)(!1,`Body must be a string. Received: ${(0,O.N)(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||(0,x.U)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,x.U)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class N{constructor(e,t={}){let r=C(e,A)?e:new A(e);this._lexer=new y(r),this._options=t,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(i.NAME);return this.node(e,{kind:f.b.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:f.b.DOCUMENT,definitions:this.many(i.SOF,this.parseDefinition,i.EOF)})}parseDefinition(){if(this.peek(i.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===i.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw d(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e,t=this._lexer.token;if(this.peek(i.BRACE_L))return this.node(t,{kind:f.b.OPERATION_DEFINITION,operation:p.cE.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let r=this.parseOperationType();return this.peek(i.NAME)&&(e=this.parseName()),this.node(t,{kind:f.b.OPERATION_DEFINITION,operation:r,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(i.NAME);switch(e.value){case"query":return p.cE.QUERY;case"mutation":return p.cE.MUTATION;case"subscription":return p.cE.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(i.PAREN_L,this.parseVariableDefinition,i.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:f.b.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(i.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(i.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(i.DOLLAR),this.node(e,{kind:f.b.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:f.b.SELECTION_SET,selections:this.many(i.BRACE_L,this.parseSelection,i.BRACE_R)})}parseSelection(){return this.peek(i.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(i.COLON)?(e=n,t=this.parseName()):t=n,this.node(r,{kind:f.b.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(i.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(i.PAREN_L,t,i.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,r=this.parseName();return this.expectToken(i.COLON),this.node(t,{kind:f.b.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(i.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(i.NAME)?this.node(e,{kind:f.b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:f.b.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:f.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:f.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case i.BRACKET_L:return this.parseList(e);case i.BRACE_L:return this.parseObject(e);case i.INT:return this.advanceLexer(),this.node(t,{kind:f.b.INT,value:t.value});case i.FLOAT:return this.advanceLexer(),this.node(t,{kind:f.b.FLOAT,value:t.value});case i.STRING:case i.BLOCK_STRING:return this.parseStringLiteral();case i.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:f.b.BOOLEAN,value:!0});case"false":return this.node(t,{kind:f.b.BOOLEAN,value:!1});case"null":return this.node(t,{kind:f.b.NULL});default:return this.node(t,{kind:f.b.ENUM,value:t.value})}case i.DOLLAR:if(e){if(this.expectToken(i.DOLLAR),this._lexer.token.kind===i.NAME){let e=this._lexer.token.value;throw d(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:f.b.STRING,value:e.value,block:e.kind===i.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:f.b.LIST,values:this.any(i.BRACKET_L,t,i.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:f.b.OBJECT,fields:this.any(i.BRACE_L,t,i.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,r=this.parseName();return this.expectToken(i.COLON),this.node(t,{kind:f.b.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(i.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(i.AT),this.node(t,{kind:f.b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(i.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(i.BRACKET_R),e=this.node(t,{kind:f.b.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(i.BANG)?this.node(t,{kind:f.b.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:f.b.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(i.STRING)||this.peek(i.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),n=this.many(i.BRACE_L,this.parseOperationTypeDefinition,i.BRACE_R);return this.node(e,{kind:f.b.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(i.COLON);let r=this.parseNamedType();
13return this.node(e,{kind:f.b.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:f.b.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:f.b.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(i.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(i.BRACE_L,this.parseFieldDefinition,i.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(i.COLON);let s=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:f.b.FIELD_DEFINITION,description:t,name:r,arguments:n,type:s,directives:a})}parseArgumentDefs(){return this.optionalMany(i.PAREN_L,this.parseInputValueDef,i.PAREN_R)}parseInputValueDef(){let e,t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(i.COLON);let s=this.parseTypeReference();this.expectOptionalToken(i.EQUALS)&&(e=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(t,{kind:f.b.INPUT_VALUE_DEFINITION,description:r,name:n,type:s,defaultValue:e,directives:a})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:f.b.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:s})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:f.b.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(i.EQUALS)?this.delimitedMany(i.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:f.b.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(i.BRACE_L,this.parseEnumValueDefinition,i.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:f.b.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw d(this._lexer.source,this._lexer.token.start,`${P(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:f.b.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(i.BRACE_L,this.parseInputValueDef,i.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===i.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),r=this.optionalMany(i.BRACE_L,this.parseOperationTypeDefinition,i.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:f.b.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:f.b.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:f.b.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:f.b.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:f.b.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:f.b.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:f.b.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(i.AT);let r=this.parseName(),n=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(e,{kind:f.b.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:s,locations:a})}parseDirectiveLocations(){return this.delimitedMany(i.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(n,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new p.aZ(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw d(this._lexer.source,t.start,`Expected ${R(e)}, found ${P(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===i.NAME&&t.value===e)this.advanceLexer();else throw d(this._lexer.source,t.start,`Expected "${e}", found ${P(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===i.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return d(this._lexer.source,t.start,`Unexpected ${P(t)}.`)}any(e,t,r){this.expectToken(e);let n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);let n=[];do n.push(t.call(this));while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);let r=[];do r.push(t.call(this));while(this.expectOptionalToken(e));return r}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==i.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw d(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function P(e){let t=e.value;return R(e.kind)+(null!=t?` "${t}"`:"")}function R(e){return e===i.BANG||e===i.DOLLAR||e===i.AMP||e===i.PAREN_L||e===i.PAREN_R||e===i.SPREAD||e===i.COLON||e===i.EQUALS||e===i.AT||e===i.BRACKET_L||e===i.BRACKET_R||e===i.BRACE_L||e===i.PIPE||e===i.BRACE_R?`"${e}"`:e}var D=new Map,j=new Map,M=!0,F=!1;function L(e){return e.replace(/[\s,]+/g," ").trim()}function V(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach(function(t,r){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[r+1]}),function(e){var t=L(e);if(!D.has(t)){var r,n,i,a,o,l=function(e,t){let r=new N(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}(e,{experimentalFragmentVariables:F,allowLegacyFragmentVariables:F});if(!l||"Document"!==l.kind)throw Error("Not a valid GraphQL document.");D.set(t,((a=new Set((r=new Set,n=[],l.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,i=e.name.value,s=L((t=e.loc).source.body.substring(t.start,t.end)),a=j.get(i);a&&!a.has(s)?M&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||j.set(i,a=new Set),a.add(s),r.has(s)||(r.add(s),n.push(e))}else n.push(e)}),i=(0,s.Cl)((0,s.Cl)({},l),{definitions:n}
13)).definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&a.add(r)})}),(o=i.loc)&&(delete o.startToken,delete o.endToken),i))}return D.get(t)}(n)}var U={gql:V,resetCaches:function(){D.clear(),j.clear()},disableFragmentWarnings:function(){M=!1},enableExperimentalFragmentVariables:function(){F=!0},disableExperimentalFragmentVariables:function(){F=!1}};!function(e){e.gql=U.gql,e.resetCaches=U.resetCaches,e.disableFragmentWarnings=U.disableFragmentWarnings,e.enableExperimentalFragmentVariables=U.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=U.disableExperimentalFragmentVariables}(V||(V={})),V.default=V;let z=V},38937:(e,t,r)=>{"use strict";function n(...e){let t={};return e.forEach(e=>{e&&Reflect.ownKeys(e).forEach(r=>{let n=e[r];void 0!==n&&(t[r]=n)})}),t}r.d(t,{o:()=>n})},40310:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=!(arguments.length>1)||void 0===arguments[1]||arguments[1],s=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=n||"";return i&&(a=n.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(e,t,n){return t>0&&t+e.length!==n.length&&e.search(r)>-1&&":"!==n.charAt(t-2)&&("-"!==n.charAt(t+e.length)||"-"===n.charAt(t-1))&&0>n.charAt(t-1).search(/[^\s-]/)?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)})),s&&(a="string"==typeof(t=e=a)&&-1!==t.indexOf("@")?(console.warn("This arg looks like an email address, redacting."),"REDACTED (Potential Email Address)"):e),a};var r=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i},41076:(e,t,r)=>{"use strict";r.d(t,{$c:()=>b,$n:()=>u,CI:()=>g,G6:()=>l,Lm:()=>w,Nq:()=>f,Ru:()=>h,Yk:()=>y,bk:()=>d,hE:()=>p,yA:()=>m,zo:()=>c});var n=r(49481),i=r(53614);let s=new n.HF,a=new n.sk;a.addScope("email");let o=new n.LD("apple.com"),l=()=>(0,n.df)(i.j,s),c=()=>(0,n.df)(i.j,a),u=()=>(0,n.df)(i.j,o),h=(e,t)=>(0,n.x9)(i.j,e,t),d=(e,t)=>(0,n.eJ)(i.j,e,t),p=e=>(0,n.J1)(i.j,e),f=async e=>{try{return(await (0,n.Wm)(i.j,e)).length>0}catch(e){return!1}},m=e=>(0,n.Wm)(i.j,e),g=()=>(0,n.CI)(i.j),y=e=>(0,n.hg)(i.j,e),v=async(e,t)=>{if(!e.email)throw Error("User email not found");let r=n.IX.credential(e.email,t);await (0,n.kZ)(e,r)},b=async(e,t,r)=>{await v(e,t),await (0,n.f3)(e,r)},w=e=>e.providerData.some(e=>"password"===e.providerId)},41421:(e,t,r)=>{"use strict";r.d(t,{g:()=>n});let n=!1},41735:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ServerStyleSheet:()=>eM,StyleSheetConsumer:()=>ei,StyleSheetContext:()=>en,StyleSheetManager:()=>eu,ThemeConsumer:()=>eC,ThemeContext:()=>eO,ThemeProvider:()=>eA,__PRIVATE__:()=>eV,createGlobalStyle:()=>eD,css:()=>ew,default:()=>eU,isStyledComponent:()=>_,keyframes:()=>ej,useTheme:()=>eL,version:()=>E,withTheme:()=>eF});var n=r(16878),i=r(55729),s=r(21832),a=r.n(s);let o=function(e){function t(e,t,n){var i=t.trim().split(f);t=i;var s=i.length,a=e.length;switch(a){case 0:case 1:var o=0;for(e=0===a?"":e[0]+" ";o<s;++o)t[o]=r(e,t[o],n).trim();break;default:var l=o=0;for(t=[];o<s;++o)for(var c=0;c<a;++c)t[l++]=r(e[c]+" ",i[o],n).trim()}return t}function r(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<+r&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function n(e,t,r,s){var a=e+";",o=2*t+3*r+4*s;if(944===o){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===C||2===C&&i(l,1)?"-webkit-"+l+l:l}if(0===C||2===C&&!i(a,1))return a;switch(o){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;
vendor: 4,322 bytes, line 13
13case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(k,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return d.test(a)?a.replace(h,":-webkit-")+a.replace(h,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(b,"tb");break;case 232:l=a.replace(b,"tb-rl");break;case 220:l=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,o=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<o?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(S,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(S,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===I.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?n(e.replace("stretch","fill-available"),t,r,s).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+s&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),R(2!==t?n:n.replace(E,"$1"),r,t)}function s(e,t){var r=n(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(_," or ($1)").substring(4):"("+t+")"}function a(e,t,r,n,i,s,a,o,c,u){for(var h,d=0,p=t;d<P;++d)switch(h=N[d].call(l,e,p,r,n,i,s,a,o,c,u)){case void 0:case!1:case!0:case null:break;default:p=h}if(p!==t)return p}function o(e){return void 0!==(e=e.prefix)&&(R=null,e?"function"!=typeof e?C=1:(C=2,R=e):C=0),o}function l(e,r){var o=e;if(33>o.charCodeAt(0)&&(o=o.trim()),o=[o],0<P){var l=a(-1,r,o,o,x,T,0,0,0,0);void 0!==l&&"string"==typeof l&&(r=l)}var h=function e(r,o,l,h,d){for(var p,f,m,b,_,S=0,E=0,I=0,k=0,N=0,R=0,j=m=p=0,M=0,F=0,L=0,V=0,U=l.length,z=U-1,B="",q="",$="",W="";M<U;){if(f=l.charCodeAt(M),M===z&&0!==E+k+I+S&&(0!==E&&(f=47===E?10:47),k=I=S=0,U++,z++),0===E+k+I+S){if(M===z&&(0<F&&(B=B.replace(u,"")),0<B.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:B+=l.charAt(M)}f=59}switch(f){case 123:for(p=(B=B.trim()).charCodeAt(0),m=1,V=++M;M<U;){switch(f=l.charCodeAt(M)){case 123:m++;break;case 125:m--;break;case 47:switch(f=l.charCodeAt(M+1)){case 42:case 47:e:{for(j=M+1;j<z;++j)switch(l.charCodeAt(j)){case 47:if(42===f&&42===l.charCodeAt(j-1)&&M+2!==j){M=j+1;break e}break;case 10:if(47===f){M=j+1;break e}}M=j}}break;case 91:f++;case 40:f++;case 34:case 39:for(;M++<z&&l.charCodeAt(M)!==f;);}if(0===m)break;M++}if(m=l.substring(V,M),0===p&&(p=(B=B.replace(c,"").trim()).charCodeAt(0)),64===p){switch(0<F&&(B=B.replace(u,"")),f=B.charCodeAt(1)){case 100:case 109:case 115:case 45:F=o;break;default:F=A}if(V=(m=e(o,F,m,f,d+1)).length,0<P&&(_=a(3,m,F=t(A,B,L),o,x,T,V,f,d,h),B=F.join(""),void 0!==_&&0===(V=(m=_.trim()).length)&&(f=0,m="")),0<V)switch(f){case 115:B=B.replace(w,s);case 100:case 109:case 45:m=B+"{"+m+"}";break;case 107:m=(B=B.replace(g,"$1 $2"))+"{"+m+"}",m=1===C||2===C&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;
vendor: 4,348 bytes, line 13
13default:m=B+m,112===h&&(q+=m,m="")}else m=""}else m=e(o,t(o,B,L),m,h,d+1);$+=m,m=L=F=j=p=0,B="",f=l.charCodeAt(++M);break;case 125:case 59:if(1<(V=(B=(0<F?B.replace(u,""):B).trim()).length))switch(0===j&&(45===(p=B.charCodeAt(0))||96<p&&123>p)&&(V=(B=B.replace(" ",":")).length),0<P&&void 0!==(_=a(1,B,o,r,x,T,q.length,h,d,h))&&0===(V=(B=_.trim()).length)&&(B="\0\0"),p=B.charCodeAt(0),f=B.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){W+=B+l.charAt(M);break}default:58!==B.charCodeAt(V-1)&&(q+=n(B,p,f,B.charCodeAt(2)))}L=F=j=p=0,B="",f=l.charCodeAt(++M)}}switch(f){case 13:case 10:47===E?E=0:0===1+p&&107!==h&&0<B.length&&(F=1,B+="\0"),0<P*D&&a(0,B,o,r,x,T,q.length,h,d,h),T=1,x++;break;case 59:case 125:if(0===E+k+I+S){T++;break}default:switch(T++,b=l.charAt(M),f){case 9:case 32:if(0===k+S+E)switch(N){case 44:case 58:case 9:case 32:b="";break;default:32!==f&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===k+E+S&&(F=L=1,b="\f"+b);break;case 108:if(0===k+E+S+O&&0<j)switch(M-j){case 2:112===N&&58===l.charCodeAt(M-3)&&(O=N);case 8:111===R&&(O=R)}break;case 58:0===k+E+S&&(j=M);break;case 44:0===E+I+k+S&&(F=1,b+="\r");break;case 34:case 39:0===E&&(k=k===f?0:0===k?f:k);break;case 91:0===k+E+I&&S++;break;case 93:0===k+E+I&&S--;break;case 41:0===k+E+S&&I--;break;case 40:0===k+E+S&&(0===p&&(2*N+3*R==533||(p=1)),I++);break;case 64:0===E+I+k+S+j+m&&(m=1);break;case 42:case 47:if(!(0<k+S+I))switch(E){case 0:switch(2*f+3*l.charCodeAt(M+1)){case 235:E=47;break;case 220:V=M,E=42}break;case 42:47===f&&42===N&&V+2!==M&&(33===l.charCodeAt(V+2)&&(q+=l.substring(V,M+1)),b="",E=0)}}0===E&&(B+=b)}R=N,N=f,M++}if(0<(V=q.length)){if(F=o,0<P&&void 0!==(_=a(2,q,F,r,x,T,V,h,d,h))&&0===(q=_).length)return W+q+$;if(q=F.join(",")+"{"+q+"}",0!=C*O){switch(2!==C||i(q,2)||(O=0),O){case 111:q=q.replace(v,":-moz-$1")+q;break;case 112:q=q.replace(y,"::-webkit-input-$1")+q.replace(y,"::-moz-$1")+q.replace(y,":-ms-input-$1")+q}O=0}}return W+q+$}(A,o,r,0,0);return 0<P&&void 0!==(l=a(-2,h,o,o,x,T,h.length,0,0,0))&&(h=l),O=0,T=x=1,h}var c=/^\0+/g,u=/[\0\r\f]/g,h=/: */g,d=/zoo|gra/,p=/([,: ])(transform)/g,f=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,v=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,_=/([\s\S]*?);/g,S=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,I=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,T=1,x=1,O=0,C=1,A=[],N=[],P=0,R=null,D=0;return l.use=function e(t){switch(t){case void 0:case null:P=N.length=0;break;default:if("function"==typeof t)N[P++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else D=0|!!t}return e},l.set=o,void 0!==e&&o(e),l},l={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var c=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
13ine|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,u=function(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}(function(e){return c.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),h=r(31179),d=r.n(h),p=r(33601);function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var m=function(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r},g=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,n.typeOf)(e)},y=Object.freeze([]),v=Object.freeze({});function b(e){return"function"==typeof e}function w(e){return e.displayName||e.name||"Component"}function _(e){return e&&"string"==typeof e.styledComponentId}var S=void 0!==p&&void 0!==p.env&&(p.env.REACT_APP_SC_ATTR||p.env.SC_ATTR)||"data-styled",E="5.3.11",I="undefined"!=typeof window&&"HTMLElement"in window,k=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==p&&void 0!==p.env&&(void 0!==p.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==p.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==p.env.REACT_APP_SC_DISABLE_SPEEDY&&p.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==p.env.SC_DISABLE_SPEEDY&&""!==p.env.SC_DISABLE_SPEEDY&&"false"!==p.env.SC_DISABLE_SPEEDY&&p.env.SC_DISABLE_SPEEDY)),T={};function x(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var O=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)(i<<=1)<0&&x(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var s=n;s<i;s++)this.groupSizes[s]=0}for(var a=this.indexOfGroup(e+1),o=0,l=t.length;o<l;o++)this.tag.insertRule(a,t[o])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,s=n;s<i;s++)t+=this.tag.getRule(s)+"/*!sc*/\n";return t},e}(),C=new Map,A=new Map,N=1,P=function(e){if(C.has(e))return C.get(e);for(;A.has(N);)N++;var t=N++;return C.set(e,t),A.set(t,e),t},R=function(e,t){t>=N&&(N=t+1),C.set(e,t),A.set(t,e)}
vendor: 6,211 bytes, line 13
13,D="style["+S+'][data-styled-version="5.3.11"]',j=RegExp("^"+S+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),M=function(e,t,r){for(var n,i=r.split(","),s=0,a=i.length;s<a;s++)(n=i[s])&&e.registerName(t,n)},F=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var o=a.match(j);if(o){var l=0|parseInt(o[1],10),c=o[2];0!==l&&(R(c,l),M(e,c,o[3]),e.getTag().insertRules(l,n)),n.length=0}else n.push(a)}}},L=function(){return r.nc},V=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(S))return n}}(r),s=void 0!==i?i.nextSibling:null;n.setAttribute(S,"active"),n.setAttribute("data-styled-version","5.3.11");var a=L();return a&&n.setAttribute("nonce",a),r.insertBefore(n,s),n},U=function(){function e(e){var t=this.element=V(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var i=t[r];if(i.ownerNode===e)return i}x(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),z=function(){function e(e){var t=this.element=V(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),B=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),q=I,$={isServer:!I,useCSSOMInjection:!k},W=function(){function e(e,t,r){void 0===e&&(e=v),void 0===t&&(t={}),this.options=f({},$,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&I&&q&&(q=!1,function(e){for(var t=document.querySelectorAll(D),r=0,n=t.length;r<n;r++){var i=t[r];i&&"active"!==i.getAttribute(S)&&(F(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return P(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(f({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){var e,t,r,n;return this.tag||(this.tag=(t=(e=this.options).isServer,r=e.useCSSOMInjection,n=e.target,new O(t?new B(n):r?new U(n):new z(n))))},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(P(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(P(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(P(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",i=0;i<r;i++){var s,a=(s=i,A.get(s));if(void 0!==a){var o=e.names.get(a),l=t.getGroup(i);if(o&&l&&o.size){var c=S+".g"+i+'[id="'+a+'"]',u="";void 0!==o&&o.forEach(function(e){e.length>0&&(u+=e+",")}),n+=""+l+c+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),H=/(a)(d)/gi,G=function(e){return String.fromCharCode(e+(e>25?39:97))};function K(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=G(t%52)+r;return(G(t%52)+r).replace(H,"$1-$2")}var Q=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},J=function(e){return Q(5381,e)};function Z(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(b(r)&&!_(r))return!1}return!0}var Y=J("5.3.11"),X=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Z(e),this.componentId=t,this.baseHash=Q(Y,t),this.baseStyle=r,W.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))i.push(this.staticRulesId);else{var s=ev(this.rules,e,t,r).join(""),a=K(Q(this.baseHash,s)>>>0);if(!t.hasNameForId(n,a)){var o=r(s,"."+a,void 0,n);t.insertRules(n,a,o)}i.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,c=Q(this.baseHash,r.hash),u="",h=0;h<l;h++){var d=this.rules[h];if("string"==typeof d)u+=d;else if(d){var p=ev(d,e,t,r),f=Array.isArray(p)?p.join(""):p;c=Q(c,f+h),u+=f}}if(u){var m=K(c>>>0);if(!t.hasNameForId(n,m)){var g=r(u,"."+m,void 0,n);t.insertRules(n,m,g)}i.push(m)}}return i.join(" ")},e}(),ee=/^\s*\/\/.*$/gm,et=[":","[",".","#"];function er(e){var t,r,n,i,s=void 0===e?v:e,a=s.options,l=void 0===a?v:a,c=s.plugins,u=void 0===c?y:c,h=new o(l),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,i,s,a,o,l,c,u,h){switch(r){case 1:if(0===u&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+n),"";default:return n+(0===h?"/*|*/":"")}case -2:n.split("/*|*/}").forEach(t)}}}(function(e){d.push(e)}),f=function(e,n,s){return 0===n&&-1!==et.indexOf(s[r.length])||s.match(i)?e:"."+t};function m(e,s,a,o){void 0===o&&(o="&");var l=e.replace(ee,""),c=s&&a?a+" "+s+" { "+l+" }":l;return t=o,n=RegExp("\\"+(r=s)+"\\b","g"),i=RegExp("(\\"+r+"\\b){2,}"),h(a||!s?"":s,c)}return h.use([].concat(u,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(r)>0&&(i[0]=i[0].replace(n,f))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=u.length?u.reduce(function(e,t){return t.name||x(15),Q(e,t.name)},5381).toString():"",m}
13var en=i.createContext(),ei=en.Consumer,es=i.createContext(),ea=(es.Consumer,new W),eo=er();function el(){return(0,i.useContext)(en)||ea}function ec(){return(0,i.useContext)(es)||eo}function eu(e){var t=(0,i.useState)(e.stylisPlugins),r=t[0],n=t[1],s=el(),o=(0,i.useMemo)(function(){var t=s;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target]),l=(0,i.useMemo)(function(){return er({options:{prefix:!e.disableVendorPrefixes},plugins:r})},[e.disableVendorPrefixes,r]);return(0,i.useEffect)(function(){a()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]),i.createElement(en.Provider,{value:o},i.createElement(es.Provider,{value:l},e.children))}var eh=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=eo);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return x(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=eo),this.name+e.hash},e}(),ed=/([A-Z])/,ep=/([A-Z])/g,ef=/^ms-/,em=function(e){return"-"+e.toLowerCase()};function eg(e){return ed.test(e)?e.replace(ep,em).replace(ef,"-ms-"):e}var ey=function(e){return null==e||!1===e||""===e};function ev(e,t,r,n){if(Array.isArray(e)){for(var i,s=[],a=0,o=e.length;a<o;a+=1)""!==(i=ev(e[a],t,r,n))&&(Array.isArray(i)?s.push.apply(s,i):s.push(i));return s}return ey(e)?"":_(e)?"."+e.styledComponentId:b(e)?"function"!=typeof e||e.prototype&&e.prototype.isReactComponent||!t?e:ev(e(t),t,r,n):e instanceof eh?r?(e.inject(r,n),e.getName(n)):e:g(e)?function e(t,r){var n,i=[];for(var s in t)t.hasOwnProperty(s)&&!ey(t[s])&&(Array.isArray(t[s])&&t[s].isCss||b(t[s])?i.push(eg(s)+":",t[s],";"):g(t[s])?i.push.apply(i,e(t[s],s)):i.push(eg(s)+": "+(null==(n=t[s])||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||s in l||s.startsWith("--")?String(n).trim():n+"px")+";"));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString()}var eb=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ew(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return b(e)||g(e)?eb(ev(m(y,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:eb(ev(m(e,r)))}var e_=function(e,t,r){return void 0===r&&(r=v),e.theme!==r.theme&&e.theme||t||r.theme},eS=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,eE=/(^-|-$)/g;function eI(e){return e.replace(eS,"-").replace(eE,"")}var ek=function(e){return K(J(e)>>>0)};function eT(e){return"string"==typeof e}var ex=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},eO=i.createContext(),eC=eO.Consumer;function eA(e){var t=(0,i.useContext)(eO),r=(0,i.useMemo)(function(){var r;return r=e.theme,r?b(r)?r(t):Array.isArray(r)||"object"!=typeof r?x(8):t?f({},t,{},r):r:x(14)},[e.theme,t]);return e.children?i.createElement(eO.Provider,{value:r},e.children):null}var eN={},eP=function(e){return function e(t,r,i){if(void 0===i&&(i=v),!(0,n.isValidElementType)(r))return x(1,String(r));var s=function(){return t(r,i,ew.apply(void 0,arguments))};return s.withConfig=function(n){return e(t,r,f({},i,{},n))},s.attrs=function(n){return e(t,r,f({},i,{attrs:Array.prototype.concat(i.attrs,n).filter(Boolean)}))},s}(function e(t,r,n){var s=_(t),a=!eT(t),o=r.attrs,l=void 0===o?y:o,c=r.componentId,h=void 0===c?(I=r.displayName,k=r.parentComponentId,eN[T="string"!=typeof I?"sc":eI(I)]=(eN[T]||0)+1,x=T+"-"+ek("5.3.11"+T+eN[T]),k?k+"-"+x:x):c,p=r.displayName,m=void 0===p?eT(t)?"styled."+t:"Styled("+w(t)+")":p,g=r.displayName&&r.componentId?eI(r.displayName)+"-"+r.componentId:r.componentId||h,S=s&&t.attrs?Array.prototype.concat(t.attrs,l).filter(Boolean):l,E=r.shouldForwardProp;s&&t.shouldForwardProp&&(E=r.shouldForwardProp?function(e,n,i){return t.shouldForwardProp(e,n,i)&&r.shouldForwardProp(e,n,i)}:t.shouldForwardProp);var I,k,T,x,O,C=new X(n,g,s?t.componentStyle:void 0),A=C.isStatic&&0===l.length,N=function(e,t){return function(e,t,r,n){var s,a,o,l,c,h=e.attrs,d=e.componentStyle,p=e.defaultProps,m=e.foldedComponentIds,g=e.shouldForwardProp,y=e.styledComponentId,w=e.target,_=(s=e_
13(t,(0,i.useContext)(eO),p)||v,void 0===s&&(s=v),a=f({},t,{theme:s}),o={},h.forEach(function(e){var t,r,n,i=e;for(t in b(i)&&(i=i(a)),i)a[t]=o[t]="className"===t?(r=o[t],n=i[t],r&&n?r+" "+n:r||n):i[t]}),[a,o]),S=_[0],E=_[1],I=(l=el(),c=ec(),n?d.generateAndInjectStyles(v,l,c):d.generateAndInjectStyles(S,l,c)),k=E.$as||t.$as||E.as||t.as||w,T=eT(k),x=E!==t?f({},t,{},E):t,O={};for(var C in x)"$"!==C[0]&&"as"!==C&&("forwardedAs"===C?O.as=x[C]:(g?g(C,u,k):!T||u(C))&&(O[C]=x[C]));return t.style&&E.style!==t.style&&(O.style=f({},t.style,{},E.style)),O.className=Array.prototype.concat(m,y,I!==y?I:null,t.className,E.className).filter(Boolean).join(" "),O.ref=r,(0,i.createElement)(k,O)}(O,e,t,A)};return N.displayName=m,(O=i.forwardRef(N)).attrs=S,O.componentStyle=C,O.displayName=m,O.shouldForwardProp=E,O.foldedComponentIds=s?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):y,O.styledComponentId=g,O.target=s?t.target:t,O.withComponent=function(t){var i=r.componentId,s=function(e,t){if(null==e)return{};var r,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)t.indexOf(r=s[n])>=0||(i[r]=e[r]);return i}(r,["componentId"]),a=i&&i+"-"+(eT(t)?t:eI(w(t)));return e(t,f({},s,{attrs:S,componentId:a}),n)},Object.defineProperty(O,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];for(var s=0;s<n.length;s++){var a=n[s];if(ex(a))for(var o in a)"__proto__"!==o&&"constructor"!==o&&"prototype"!==o&&function(t,r,n){var i=t[n];ex(r)&&ex(i)?e(i,r):t[n]=r}(t,a[o],o)}return t}({},t.defaultProps,e):e}}),Object.defineProperty(O,"toString",{value:function(){return"."+O.styledComponentId}}),a&&d()(O,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),O},e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){eP[e]=eP(e)});var eR=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Z(e),W.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var i=n(ev(this.rules,t,r,n).join(""),""),s=this.componentId+e;r.insertRules(s,s,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&W.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function eD(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var s=ew.apply(void 0,[e].concat(r)),a="sc-global-"+ek(JSON.stringify(s)),o=new eR(s,a);function l(e){var t=el(),r=ec(),n=(0,i.useContext)(eO),s=(0,i.useRef)(t.allocateGSInstance(a)).current;return t.server&&c(s,e,t,n,r),(0,i.useLayoutEffect)(function(){if(!t.server)return c(s,e,t,n,r),function(){return o.removeStyles(s,t)}},[s,e,t,n,r]),null}function c(e,t,r,n,i){if(o.isStatic)o.renderStyles(e,T,r,i);else{var s=f({},t,{theme:e_(t,n,l.defaultProps)});o.renderStyles(e,s,r,i)}}return i.memo(l)}function ej(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=ew.apply(void 0,[e].concat(r)).join("");return new eh(ek(i),i)}var eM=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=L();return"<style "+[r&&'nonce="'+r+'"',S+'="true"','data-styled-version="5.3.11"'].filter(
13Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?x(2):e._emitSheetCSS()},this.getStyleElement=function(){if(e.sealed)return x(2);var t,r=((t={})[S]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=L();return n&&(r.nonce=n),[i.createElement("style",f({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?x(2):i.createElement(eu,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return x(3)},e}(),eF=function(e){var t=i.forwardRef(function(t,r){var n=e_(t,(0,i.useContext)(eO),e.defaultProps);return i.createElement(e,f({},t,{theme:n,ref:r}))});return d()(t,e),t.displayName="WithTheme("+w(e)+")",t},eL=function(){return(0,i.useContext)(eO)},eV={StyleSheet:W,masterSheet:ea};let eU=eP},42077:(e,t,r)=>{"use strict";r.d(t,{$:()=>n});var n={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},42818:(e,t,r)=>{"use strict";r.d(t,{Ms:()=>y,vU:()=>p});var n=r(13829),i=r(18240),s=r(25126),a=r(42077),o=r(24553);function l(){}var c=u("C",void 0,void 0);function u(e,t,r){return{kind:e,value:t,error:r}}var h=r(26661),d=r(72269),p=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,(0,s.Uv)(t)&&t.add(r)):r.destination=w,r}return(0,n.C6)(t,e),t.create=function(e,t,r){return new y(e,t,r)},t.prototype.next=function(e){this.isStopped?b(u("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?b(u("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?b(c,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(s.yU),f=Function.prototype.bind;function m(e,t){return f.call(e,t)}var g=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){v(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){v(e)}else v(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){v(e)}},e}(),y=function(e){function t(t,r,n){var s,o,l=e.call(this)||this;return(0,i.T)(t)||!t?s={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:l&&a.$.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return l.unsubscribe()},s={next:t.next&&m(t.next,o),error:t.error&&m(t.error,o),complete:t.complete&&m(t.complete,o)}):s=t,l.destination=new g(s),l}return(0,n.C6)(t,e),t}(p);function v(e){a.$.useDeprecatedSynchronousErrorHandling?(0,d.l)(e):(0,o.m)(e)}function b(e,t){var r=a.$.onStoppedNotification;r&&h.f.setTimeout(function(){return r(e,t)})}var w={closed:!0,next:l,error:function(e){throw e},complete:l}},45611:(e,t,r)=>{"use strict";let n,i;r.d(t,{MF:()=>j,j6:()=>N,xZ:()=>P,om:()=>A,Sx:()=>F,Dk:()=>L,Wp:()=>M,KO:()=>V});var s=r(93247),a=r(31500),o=r(94386);let l=new WeakMap,c=new WeakMap,u=new WeakMap,h=new WeakMap,d=new WeakMap,p={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return c.get(e);if("objectStoreNames"===t)return e.objectStoreNames||u.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return f(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function f(e){if(e instanceof IDBRequest){let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{t(f(e.result)),n()},s=()=>{r(e.error),n()};e.addEventListener("success",i),e.addEventListener("error",s)});return t.then(t=>{t instanceof IDBCursor&&l.set(t,e)}).catch(()=>{}),d.set(t,e),t}if(h.has(e))return h.get(e);let t=function(e){if("function"==typeof e)return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(m(this),t),f(l.get(this))}:function(...t){return f(e.apply(m(this),t))}:function(t,...r){let n=e.call(m(this),t,...r);return u.set(n,t.sort?t.sort():[t]),f(n)};return e instanceof IDBTransaction&&function(e){if(c.has(e))return;let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{t(),n()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)});c.set(e,t)}(e),(n||(n=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(t=>e instanceof t)?new Proxy(e,p):e}(e);return t!==e&&(h.set(e,t),d.set(t,e)),t}let m=e=>d.get(e),g=["get","getKey","getAll","getAllKeys","count"],y=["put","add","delete","clear"],v=new Map;function b(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(v.get(t))return v.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,i=y.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||g.includes(r)))return;let s=async function(e,...t){let s=this.transaction(e,i?"readwrite":"readonly"),a=s.store;
13return n&&(a=a.index(t.shift())),(await Promise.all([a[r](...t),i&&s.done]))[0]};return v.set(t,s),s}p=(e=>({...e,get:(t,r,n)=>b(t,r)||e.get(t,r,n),has:(t,r)=>!!b(t,r)||e.has(t,r)}))(p);class w{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(!function(e){let t=e.getComponent();return(null==t?void 0:t.type)==="VERSION"}(e))return null;{let t=e.getImmediate();return`${t.library}/${t.version}`}}).filter(e=>e).join(" ")}}let _="@firebase/app",S="0.10.13",E=new a.Vy("@firebase/app"),I="[DEFAULT]",k={[_]:"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/data-connect":"fire-data-connect","@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","@firebase/vertexai-preview":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},T=new Map,x=new Map,O=new Map;function C(e,t){try{e.container.addComponent(t)}catch(r){E.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,r)}}function A(e){let t=e.name;if(O.has(t))return E.debug(`There were multiple attempts to register component ${t}.`),!1;
13for(let r of(O.set(t,e),T.values()))C(r,e);for(let t of x.values())C(t,e);return!0}function N(e,t){let r=e.container.getProvider("heartbeat").getImmediate({optional:!0});return r&&r.triggerHeartbeat(),e.container.getProvider(t)}function P(e){return void 0!==e.settings}let R=new o.FA("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","server-app-deleted":"Firebase Server App has been 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.","invalid-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}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class D{constructor(e,t,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new s.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}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(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw R.create("app-deleted",{appName:this._name})}}let j="10.14.1";function M(e,t={}){let r=e;"object"!=typeof t&&(t={name:t});let n=Object.assign({name:I,automaticDataCollectionEnabled:!1},t),i=n.name;if("string"!=typeof i||!i)throw R.create("bad-app-name",{appName:String(i)});if(r||(r=(0,o.T9)()),!r)throw R.create("no-options");let a=T.get(i);if(a)if((0,o.bD)(r,a.options)&&(0,o.bD)(n,a.config))return a;else throw R.create("duplicate-app",{appName:i});let l=new s.h1(i);for(let e of O.values())l.addComponent(e);let c=new D(r,n,l);return T.set(i,c),c}function F(e=I){let t=T.get(e);if(!t&&e===I&&(0,o.T9)())return M();if(!t)throw R.create("no-app",{appName:e});return t}function L(){return Array.from(T.values())}function V(e,t,r){var n;let i=null!=(n=k[e])?n:e;r&&(i+=`-${r}`);let a=i.match(/\s|\//),o=t.match(/\s|\//);if(a||o){let e=[`Unable to register library "${i}" with version "${t}":`];a&&e.push(`library name "${i}" contains illegal characters (whitespace or "/")`),a&&o&&e.push("and"),o&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),E.warn(e.join(" "));return}A(new s.uA(`${i}-version`,()=>({library:i,version:t}),"VERSION"))}let U="firebase-heartbeat-store",z=null;function B(){return z||(z=(function(e,t,{blocked:r,upgrade:n,blocking:i,terminated:s}={}){let a=indexedDB.open(e,1),o=f(a);return n&&a.addEventListener("upgradeneeded",e=>{n(f(a.result),e.oldVersion,e.newVersion,f(a.transaction),e)}),r&&a.addEventListener("blocked",e=>r(e.oldVersion,e.newVersion,e)),o.then(e=>{s&&e.addEventListener("close",()=>s()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),o})("firebase-heartbeat-database",0,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(U)}catch(e){console.warn(e)}}}).catch(e=>{throw R.create("idb-open",{originalErrorMessage:e.message})})),z}async function q(e){try{let t=(await B()).transaction(U),r=await t.objectStore(U).get(W(e));return await t.done,r}catch(e){if(e instanceof o.g)E.warn(e.message);else{let t=R.create("idb-get",{originalErrorMessage:null==e?void 0:e.message});E.warn(t.message)}}}async function $(e,t){try{let r=(await B()).transaction(U,"readwrite"),n=r.objectStore(U);await n.put(t,W(e)),await r.done}catch(e){if(e instanceof o.g)E.warn(e.message);else{let t=R.create("idb-set",{originalErrorMessage:null==e?void 0:e.message});E.warn(t.message)}}}function W(e){return`${e.name}!${e.options.appId}`}class H{constructor(e){this.container=e,this._heartbeatsCache=null;let t=this.container.getProvider("app").getImmediate();this._storage=new K(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){var e,t;try{let r=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),n=G();if((null==(e=this._heartbeatsCache)?void 0:e.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,(null==(t=this._heartbeatsCache)?void 0:t.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===n||this._heartbeatsCache.heartbeats.some(e=>e.date===n))return;return this._heartbeatsCache.heartbeats.push({date:n,agent:r}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(e=>{let t=new Date(e.date).valueOf();return Date.now()-t<=2592e6}),this._storage.overwrite(this._heartbeatsCache)}catch(e){E.warn(e)}}async getHeartbeatsHeader(){var e;try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,(null==(e=this._heartbeatsCache)?void 0:e.heartbeats)==null||0===this._heartbeatsCache.heartbeats.length)return"";let t=G(),{heartbeatsToSend:r,unsentEntries:n}=function(e,t=1024){let r=[],n=e.slice();for(let i of e){let e=r.find(e=>e.agent===i.agent);if(e){if(e.dates.push(i.date),Q(r)>t){e.dates.pop();break}}else if(r.push({agent:i.agent,dates:[i.date]}),Q(r)>t){r.pop();break}n=n.slice(1)}return{heartbeatsToSend:r,unsentEntries:n}}(this._heartbeatsCache.heartbeats),i=(0,o.Uj)(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=t,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(e){return E.warn(e),""}}}function G(){return new Date().toISOString().substring(0,10)}class K{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,o.zW)()&&(0,o.eX)().then(()=>!0).catch(()=>!1)}async read(){if(!await this._canUseIndexedDBPromise)return{heartbeats:[]};{let e=await q(this.app);return(null==e?void 0:e.heartbeats)?e:{heartbeats:[]}}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){let r=await this.read();return $(this.app,{lastSentHeartbeatDate:null!=(t=e.lastSentHeartbeatDate)?t:r.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){let r=await this.read();return $(this.app,{lastSentHeartbeatDate:null!=(t=e.lastSentHeartbeatDate)?t:r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...e.heartbeats]})}}}function Q(e){return(0,o.Uj)(JSON.stringify({version:2,heartbeats:e})).length}A(new s.uA("platform-logger",e=>new w(e),"PRIVATE")),A(new s.uA("heartbeat",e=>new H(e),"PRIVATE")),V(_,S,""),V(_,S,"esm2017"),V("fire-js","")},45647:(e,t,r)=>{"use strict";r.d(t,{l:()=>a});var n=r(55729),i=r(59789);let s=Symbol.for("__APOLLO_CONTEXT__");function a(){(0,i.V1)(!0,37);let e=n.createContext[s];return e||(Object.defineProperty(n.createContext,s,{value:e=n.createContext({}
13),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}},45858:(e,t,r)=>{"use strict";var n;r.d(t,{b:()=>n}),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(n||(n={}))},49481:(e,t,r)=>{"use strict";r.d(t,{IX:()=>eK,sk:()=>eY,HF:()=>eX,LD:()=>eZ,eJ:()=>to,Wm:()=>tu,xI:()=>rb,hg:()=>tp,kZ:()=>tt,J1:()=>ta,x9:()=>tl,df:()=>t$,CI:()=>tf,f3:()=>th});
13var n=r(45611),i=r(94386),s=r(31500),a=r(13829),o=r(93247);function l(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}let c=new i.FA("auth","Firebase",l()),u=new s.Vy("@firebase/auth");function h(e,...t){u.logLevel<=s.$b.ERROR&&u.error(`Auth (${n.MF}): ${e}`,...t)}function d(e,...t){throw g(e,...t)}function p(e,...t){return g(e,...t)}function f(e,t,r){let n=Object.assign(Object.assign({},l()),{[t]:r});return new i.FA("auth","Firebase",n).create(t,{appName:e.name})}function m(e){return f(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function g(e,...t){if("string"!=typeof e){let r=t[0],n=[...t.slice(1)];return n[0]&&(n[0].appName=e.name),e._errorFactory.create(r,...n)}return c.create(e,...t)}function y(e,t,...r){if(!e)throw g(t,...r)}function v(e){let t="INTERNAL ASSERTION FAILED: "+e;throw h(t),Error(t)}function b(){var e;return"undefined"!=typeof self&&(null==(e=self.location)?void 0:e.href)||""}function w(){return"http:"===_()||"https:"===_()}function _(){var e;return"undefined"!=typeof self&&(null==(e=self.location)?void 0:e.protocol)||null}class S{constructor(e,t){var r;this.shortDelay=e,this.longDelay=t,r="Short delay should be less than long delay!",t>e||v(r),this.isMobile=(0,i.jZ)()||(0,i.lV)()}get(){return!("undefined"!=typeof navigator&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(w()||(0,i.sr)()||"connection"in navigator))||navigator.onLine?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function E(e,t){var r,n;r=e.emulator,n="Emulator should always be set here",r||v(n);let{url:i}=e.emulator;return t?`${i}${t.startsWith("/")?t.slice(1):t}`:i}class I{static initialize(e,t,r){this.fetchImpl=e,t&&(this.headersImpl=t),r&&(this.responseImpl=r)}static fetch(){return this.fetchImpl?this.fetchImpl:"undefined"!=typeof self&&"fetch"in self?self.fetch:"undefined"!=typeof globalThis&&globalThis.fetch?globalThis.fetch:"undefined"!=typeof fetch?fetch:void v("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:"undefined"!=typeof self&&"Headers"in self?self.Headers:"undefined"!=typeof globalThis&&globalThis.Headers?globalThis.Headers:"undefined"!=typeof Headers?Headers:void v("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:"undefined"!=typeof self&&"Response"in self?self.Response:"undefined"!=typeof globalThis&&globalThis.Response?globalThis.Response:"undefined"!=typeof Response?Response:void v("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}let k={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-rec
13aptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},T=new S(3e4,6e4);function x(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function O(e,t,r,n,s={}){return C(e,s,async()=>{let s={},a={};n&&("GET"===t?a=n:s={body:JSON.stringify(n)});let o=(0,i.Am)(Object.assign({key:e.config.apiKey},a)).slice(1),l=await e._getAdditionalHeaders();l["Content-Type"]="application/json",e.languageCode&&(l["X-Firebase-Locale"]=e.languageCode);let c=Object.assign({method:t,headers:l},s);return(0,i.c1)()||(c.referrerPolicy="no-referrer"),I.fetch()(N(e,e.config.apiHost,r,o),c)})}async function C(e,t,r){e._canInitEmulator=!1;let n=Object.assign(Object.assign({},k),t);try{let t=new P(e),i=await Promise.race([r(),t.promise]);t.clearNetworkTimeout();let s=await i.json();if("needConfirmation"in s)throw R(e,"account-exists-with-different-credential",s);if(i.ok&&!("errorMessage"in s))return s;{let[t,r]=(i.ok?s.errorMessage:s.error.message).split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===t)throw R(e,"credential-already-in-use",s);if("EMAIL_EXISTS"===t)throw R(e,"email-already-in-use",s);if("USER_DISABLED"===t)throw R(e,"user-disabled",s);let a=n[t]||t.toLowerCase().replace(/[_\s]+/g,"-");if(r)throw f(e,a,r);d(e,a)}}catch(t){if(t instanceof i.g)throw t;d(e,"network-request-failed",{message:String(t)})}}async function A(e,t,r,n,i={}){let s=await O(e,t,r,n,i);return"mfaPendingCredential"in s&&d(e,"multi-factor-auth-required",{_serverResponse:s}),s}function N(e,t,r,n){let i=`${t}${r}?${n}`;return e.config.emulator?E(e.config,i):`${e.config.apiScheme}://${i}`}class P{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((e,t)=>{this.timer=setTimeout(()=>t(p(this.auth,"network-request-failed")),T.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function R(e,t,r){let n={appName:e.name};r.email&&(n.email=r.email),r.phoneNumber&&(n.phoneNumber=r.phoneNumber);let i=p(e,t,n);return i.customData._tokenResponse=r,i}function D(e){return void 0!==e&&void 0!==e.enterprise}class j{constructor(e){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===e.recaptchaKey)throw Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(let t of this.recaptchaEnforcementState)if(t.provider&&t.provider===e)switch(t.enforcementState){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}return null}isProviderEnabled(e){return"ENFORCE"===this.getProviderEnforcementState(e)||"AUDIT"===this.getProviderEnforcementState(e)}}async function M(e,t){return O(e,"GET","/v2/recaptchaConfig",x(e,t))}async function F(e,t){return O(e,"POST","/v1/accounts:delete",t)}async function L(e,t){return O(e,"POST","/v1/accounts:lookup",t)}function V(e){if(e)try{let t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(e){}}async function U(e,t=!1){let r=(0,i.Ku)(e),n=await r.getIdToken(t),s=B(n);y(s&&s.exp&&s.auth_time&&s.iat,r.auth,"internal-error");let a="object"==typeof s.firebase?s.firebase:void 0,o=null==a?void 0:a.sign_in_provider;return{claims:s,token:n,authTime:V(z(s.auth_time)),issuedAtTime:V(z(s.iat)),expirationTime:V(z(s.exp)),signInProvider:o||null,signInSecondFactor:(null==a?void 0:a.sign_in_second_factor)||null}}function z(e){return 1e3*Number(e)}function B(e){let[t,r,n]=e.split(".");if(void 0===t||void 0===r||void 0===n)return h("JWT malformed, contained fewer than 3 sections"),null;try{let e=(0,i.u)(r);if(!e)return h("Failed to decode base64 JWT payload"),null;return JSON.parse(e)}catch(e){return h("Caught error parsing JWT payload as JSON",null==e?void 0:e.toString()),null}}function q(e){let t=B(e);return y(t,"internal-error"),y(void 0!==t.exp,"internal-error"),y(void 0!==t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}async function $(e,t,r=!1){if(r)return t;try{return await t}catch(t){throw t instanceof i.g&&function({code:e}){return"auth/user-disabled"===e||"auth/user-token-expired"===e}(t)&&e.auth.currentUser===e&&await e.auth.signOut(),t}}class W{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(e){var t;if(!e)return this.errorBackoff=3e4,Math.max(0,(null!=(t=this.user.stsTokenManager.expirationTime)?t:0)-Date.now()-3e5);{let e=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),e}}schedule(e=!1){if(!this.isRunning)return;let t=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},t)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){(null==e?void 0:e.code)==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}class H{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=V(this.lastLoginAt),this.creationTime=V(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}async function G(e){var t,r,n;let i=e.auth,s=await e.getIdToken(),a=await $(e,L(i,{idToken:s}));y(null==a?void 0:a.users.length,i,"internal-error");let o=a.users[0];e._notifyReloadListener(o);let l=(null==(t=o.providerUserInfo)?void 0:t.length)?Q(o.providerUserInfo):[],c=(r=e.providerData,n=l,[...r.filter(e=>!n.some(t=>t.providerId===e.providerId)),...n]),u=e.isAnonymous,h=!(e.email&&o.passwordHash)&&!(null==c?void 0:c.length);Object.assign(e,{uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:c,metadata:new H(o.createdAt,o.lastLoginAt),isAnonymous:!!u&&h})}async function K(e){let t=(0,i.Ku)(e);await G(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}function Q(e){return e.map(e=>{var{providerId:t}=e,r=(0,a.Tt)(e,["providerId"]);
13return{providerId:t,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})}async function J(e,t){let r=await C(e,{},async()=>{let r=(0,i.Am)({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:n,apiKey:s}=e.config,a=N(e,n,"/v1/token",`key=${s}`),o=await e._getAdditionalHeaders();return o["Content-Type"]="application/x-www-form-urlencoded",I.fetch()(a,{method:"POST",headers:o,body:r})});return{accessToken:r.access_token,expiresIn:r.expires_in,refreshToken:r.refresh_token}}async function Z(e,t){return O(e,"POST","/v2/accounts:revokeToken",x(e,t))}class Y{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){y(e.idToken,"internal-error"),y(void 0!==e.idToken,"internal-error"),y(void 0!==e.refreshToken,"internal-error");let t="expiresIn"in e&&void 0!==e.expiresIn?Number(e.expiresIn):q(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}updateFromIdToken(e){y(0!==e.length,"internal-error");let t=q(e);this.updateTokensAndExpiration(e,null,t)}async getToken(e,t=!1){return t||!this.accessToken||this.isExpired?(y(this.refreshToken,e,"user-token-expired"),this.refreshToken)?(await this.refresh(e,this.refreshToken),this.accessToken):null:this.accessToken}clearRefreshToken(){this.refreshToken=null}async refresh(e,t){let{accessToken:r,refreshToken:n,expiresIn:i}=await J(e,t);this.updateTokensAndExpiration(r,n,Number(i))}updateTokensAndExpiration(e,t,r){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*r}static fromJSON(e,t){let{refreshToken:r,accessToken:n,expirationTime:i}=t,s=new Y;return r&&(y("string"==typeof r,"internal-error",{appName:e}),s.refreshToken=r),n&&(y("string"==typeof n,"internal-error",{appName:e}),s.accessToken=n),i&&(y("number"==typeof i,"internal-error",{appName:e}),s.expirationTime=i),s}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new Y,this.toJSON())}_performRefresh(){return v("not implemented")}}function X(e,t){y("string"==typeof e||void 0===e,"internal-error",{appName:t})}class ee{constructor(e){var{uid:t,auth:r,stsTokenManager:n}=e,i=(0,a.Tt)(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new W(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=r,this.stsTokenManager=n,this.accessToken=n.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new H(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(e){let t=await $(this,this.stsTokenManager.getToken(this.auth,e));return y(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return U(this,e)}reload(){return K(this)}_assign(e){this!==e&&(y(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(e=>Object.assign({},e)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){let t=new ee(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return t.metadata._copy(this.metadata),t}_onReload(e){y(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,t=!1){let r=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),r=!0),t&&await G(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){if((0,n.xZ)(this.auth.app))return Promise.reject(m(this.auth));let e=await this.getIdToken();return await $(this,F(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isA
13nonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>Object.assign({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){var r,n,i,s,a,o,l,c;let u=null!=(r=t.displayName)?r:void 0,h=null!=(n=t.email)?n:void 0,d=null!=(i=t.phoneNumber)?i:void 0,p=null!=(s=t.photoURL)?s:void 0,f=null!=(a=t.tenantId)?a:void 0,m=null!=(o=t._redirectEventId)?o:void 0,g=null!=(l=t.createdAt)?l:void 0,v=null!=(c=t.lastLoginAt)?c:void 0,{uid:b,emailVerified:w,isAnonymous:_,providerData:S,stsTokenManager:E}=t;y(b&&E,e,"internal-error");let I=Y.fromJSON(this.name,E);y("string"==typeof b,e,"internal-error"),X(u,e.name),X(h,e.name),y("boolean"==typeof w,e,"internal-error"),y("boolean"==typeof _,e,"internal-error"),X(d,e.name),X(p,e.name),X(f,e.name),X(m,e.name),X(g,e.name),X(v,e.name);let k=new ee({uid:b,auth:e,email:h,emailVerified:w,displayName:u,isAnonymous:_,photoURL:p,phoneNumber:d,tenantId:f,stsTokenManager:I,createdAt:g,lastLoginAt:v});return S&&Array.isArray(S)&&(k.providerData=S.map(e=>Object.assign({},e))),m&&(k._redirectEventId=m),k}static async _fromIdTokenResponse(e,t,r=!1){let n=new Y;n.updateFromServerResponse(t);let i=new ee({uid:t.localId,auth:e,stsTokenManager:n,isAnonymous:r});return await G(i),i}static async _fromGetAccountInfoResponse(e,t,r){let n=t.users[0];y(void 0!==n.localId,"internal-error");let i=void 0!==n.providerUserInfo?Q(n.providerUserInfo):[],s=!(n.email&&n.passwordHash)&&!(null==i?void 0:i.length),a=new Y;a.updateFromIdToken(r);let o=new ee({uid:n.localId,auth:e,stsTokenManager:a,isAnonymous:s});return Object.assign(o,{uid:n.localId,displayName:n.displayName||null,photoURL:n.photoUrl||null,email:n.email||null,emailVerified:n.emailVerified||!1,phoneNumber:n.phoneNumber||null,tenantId:n.tenantId||null,providerData:i,metadata:new H(n.createdAt,n.lastLoginAt),isAnonymous:!(n.email&&n.passwordHash)&&!(null==i?void 0:i.length)}),o}}let et=new Map;function er(e){var t,r;t="Expected a class definition",e instanceof Function||v(t);let n=et.get(e);return n?(r="Instance stored in cache mismatched with class",n instanceof e||v(r)):(n=new e,et.set(e,n)),n}class en{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,t){this.storage[e]=t}async _get(e){let t=this.storage[e];return void 0===t?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}}function ei(e,t,r){return`firebase:${e}:${t}:${r}`}en.type="NONE";class es{constructor(e,t,r){this.persistence=e,this.auth=t,this.userKey=r;let{config:n,name:i}=this.auth;this.fullUserKey=ei(this.userKey,n.apiKey,i),this.fullPersistenceKey=ei("persistence",n.apiKey,i),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){let e=await this.persistence._get(this.fullUserKey);return e?ee._fromJSON(this.auth,e):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;let t=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=e,t)return this.setCurrentUser(t)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,t,r="authUser"){if(!t.length)return new es(er(en),e,r);let n=(await Promise.all(t.map(async e=>{if(await e._isAvailable())return e}))).filter(e=>e),i=n[0]||er(en),s=ei(r,e.config.apiKey,e.name),a=null;for(let r of t)try{let t=await r._get(s);if(t){let n=ee._fromJSON(e,t);r!==i&&(a=n),i=r;break}}catch(e){}let o=n.filter(e=>e._shouldAllowMigration);return i._shouldAllowMigration&&o.length&&(i=o[0],a&&await i._set(s,a.toJSON()),await Promise.all(t.map(async e=>{if(e!==i)try{await e._remove(s)}catch(e){}}))),new es(i,e,r)}}function ea(e){let t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";{if(eu(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(eo(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(ed(t))return"Blackberry";if(ep(t))return"Webos";if(el(t))return"Safari";if((t.includes("chrome/")||ec(t))&&!t.includes("edge/"))return"Chrome";if(eh(t))return"Android";let r=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if((null==r?void 0:r.length)===2)return r[1]}return"Other"}function eo(e=(0,i.ZQ)()){return/firefox\//i.test(e)}function el(e=(0,i.ZQ)()){let t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function ec(e=(0,i.ZQ)()){return/crios\//i.test(e)}function eu(e=(0,i.ZQ)()){return/iemobile/i.test(e)}function eh(e=(0,i.ZQ)()){return/android/i.test(e)}function ed(e=(0,i.ZQ)()){return/blackberry/i.test(e)}function ep(e=(0,i.ZQ)()){return/webos/i.test(e)}function ef(e=(0,i.ZQ)()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function em(e=(0,i.ZQ)()){return ef(e)||eh(e)||ep(e)||ed(e)||/windows phone/i.test(e)||eu(e)}function eg(e,t=[]){let r;switch(e){case"Browser":r=ea((0,i.ZQ)());break;case"Worker":r=`${ea((0,i.ZQ)())}-${e}`;break;default:r=e}let s=t.length?t.join(","):"FirebaseCore-web";return`${r}/JsCore/${n.MF}/${s}`}class ey{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){let r=t=>new Promise((r,n)=>{try{let n=e(t);r(n)}catch(e){n(e)}});r.onAbort=t,this.queue.push(r);let n=this.queue.length-1;return()=>{this.queue[n]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;let t=[];try{for(let r of this.queue)await r(e),r.onAbort&&t.push(r.onAbort)}catch(e){for(let e of(t.reverse(),t))try{e()}catch(e){}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null==e?void 0:e.message})}}}async function ev(e,t={}){return O(e,"GET","/v2/passwordPolicy",x(e,t))}class eb{constructor(e){var t,r,n,i;let s=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!=(t=s.minPasswordLength)?t:6,s.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=s.maxPasswordLength),void 0!==s.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=s.containsLowercaseCharacter),void 0!==s.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=s.containsUppercaseCharacter),void 0!==s.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=s.containsNumericCharacter),void 0!==s.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=s.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!=(n=null==(r=e.allowedNonAlphanumericCharacters)?void 0:r.join(""))?n:"",this.forceUpgradeOnSignin=null!=(i=e.forceUpgradeOnSignin)&&i,this.schemaVersion=e.schemaVersion}validatePassword(e){var t,r,n,i,s,a;let o={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,o),this.validatePasswordCharacterOptions(e,o),o.isValid&&
13(o.isValid=null==(t=o.meetsMinPasswordLength)||t),o.isValid&&(o.isValid=null==(r=o.meetsMaxPasswordLength)||r),o.isValid&&(o.isValid=null==(n=o.containsLowercaseLetter)||n),o.isValid&&(o.isValid=null==(i=o.containsUppercaseLetter)||i),o.isValid&&(o.isValid=null==(s=o.containsNumericCharacter)||s),o.isValid&&(o.isValid=null==(a=o.containsNonAlphanumericCharacter)||a),o}validatePasswordLengthOptions(e,t){let r=this.customStrengthOptions.minPasswordLength,n=this.customStrengthOptions.maxPasswordLength;r&&(t.meetsMinPasswordLength=e.length>=r),n&&(t.meetsMaxPasswordLength=e.length<=n)}validatePasswordCharacterOptions(e,t){let r;this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);for(let n=0;n<e.length;n++)r=e.charAt(n),this.updatePasswordCharacterOptionsStatuses(t,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(e,t,r,n,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=n)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=i))}}class ew{constructor(e,t,r,n){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=r,this.config=n,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new eS(this),this.idTokenSubscription=new eS(this),this.beforeStateQueue=new ey(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=c,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=n.sdkClientVersion}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=er(t)),this._initializationPromise=this.queue(async()=>{var r,n;if(!this._deleted){if(this.persistenceManager=await es.create(this,e),!this._deleted){if(null==(r=this._popupRedirectResolver)?void 0:r._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(e){}await this.initializeCurrentUser(t),this.lastNotifiedUid=(null==(n=this.currentUser)?void 0:n.uid)||null,this._deleted||(this._isInitialized=!0)}}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;let e=await this.assertedPersistence.getCurrentUser();if(this.currentUser||e){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e,!0)}}async initializeCurrentUserFromIdToken(e){try{let t=await L(this,{idToken:e}),r=await ee._fromGetAccountInfoResponse(this,t,e);await this.directlySetCurrentUser(r)}catch(e){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",e),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){var t;if((0,n.xZ)(this.app)){let e=this.app.settings.authIdToken;return e?new Promise(t=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(e).then(t,t))}):this.directlySetCurrentUser(null)}let r=await this.assertedPersistence.getCurrentUser(),i=r,s=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();let r=null==(t=this.redirectUser)?void 0:t._redirectEventId,n=null==i?void 0:i._redirectEventId,a=await this.tryRedirectSignIn(e);(!r||r===n)&&(null==a?void 0:a.user)&&(i=a.user,s=!0)}if(!i)return this.directlySetCurrentUser(null);if(!i._redirectEventId){if(s)try{await this.beforeStateQueue.runMiddleware(i)}catch(e){i=r,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(e))}return i?this.reloadAndSetCurrentUserOrClear(i):this.directlySetCurrentUser(null)}return(y(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===i._redirectEventId)?this.directlySetCurrentUser(i):this.reloadAndSetCurrentUserOrClear(i)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch(e){await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await G(e)}catch(e){if((null==e?void 0:e.code)!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=function(){if("undefined"==typeof navigator)return null;let e=navigator;return e.languages&&e.languages[0]||e.language||null}()}async _delete(){this._deleted=!0}
13async updateCurrentUser(e){if((0,n.xZ)(this.app))return Promise.reject(m(this));let t=e?(0,i.Ku)(e):null;return t&&y(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e,t=!1){if(!this._deleted)return e&&y(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return(0,n.xZ)(this.app)?Promise.reject(m(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return(0,n.xZ)(this.app)?Promise.reject(m(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(er(e))})}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();let t=this._getPasswordPolicyInternal();return t.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):t.validatePassword(e)}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){let e=new eb(await ev(this));null===this.tenantId?this._projectPasswordPolicy=e:this._tenantPasswordPolicies[this.tenantId]=e}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new i.FA("auth","Firebase",e())}onAuthStateChanged(e,t,r){return this.registerStateListener(this.authStateSubscription,e,t,r)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,r){return this.registerStateListener(this.idTokenSubscription,e,t,r)}authStateReady(){return new Promise((e,t)=>{if(this.currentUser)e();else{let r=this.onAuthStateChanged(()=>{r(),e()},t)}})}async revokeAccessToken(e){if(this.currentUser){let t={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:await this.currentUser.getIdToken()};null!=this.tenantId&&(t.tenantId=this.tenantId),await Z(this,t)}}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null==(e=this._currentUser)?void 0:e.toJSON()}}async _setRedirectUser(e,t){let r=await this.getOrInitRedirectPersistenceManager(t);return null===e?r.removeCurrentUser():r.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){let t=e&&er(e)||this._popupRedirectResolver;y(t,this,"argument-error"),this.redirectPersistenceManager=await es.create(this,[er(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var t,r;return(this._isInitialized&&await this.queue(async()=>{}),(null==(t=this._currentUser)?void 0:t._redirectEventId)===e)?this._currentUser:(null==(r=this.redirectUser)?void 0:r._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,t;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);let r=null!=(t=null==(e=this.currentUser)?void 0:e.uid)?t:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,r,n){if(this._deleted)return()=>{};let i="function"==typeof t?t:t.next.bind(t),s=!1,a=this._isInitialized?Promise.resolve():this._initializationPromise;if(y(a,this,"internal-error"),a.then(()=>{s||i(this.currentUser)}),"function"==typeof t){let i=e.addObserver(t,r,n);return()=>{s=!0,i()}}{let r=e.addObserver(t);return()=>{s=!0,r()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return y(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=eg(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;let t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);let r=await (null==(e=this.heartbeatServiceProvider.getImmediate({optional:!0}))?void 0:e.getHeartbeatsHeader());r&&(t["X-Firebase-Client"]=r);let n=await this._getAppCheckToken();return n&&(t["X-Firebase-AppCheck"]=n),t}async _getAppCheckToken(){var e;let t=await (null==(e=this.appCheckServiceProvider.getImmediate({optional:!0}))?void 0:e.getToken());return(null==t?void 0:t.error)&&function(e,...t){u.logLevel<=s.$b.WARN&&u.warn(`Auth (${n.MF}): ${e}`,...t)}(`Error while retrieving App Check token: ${t.error}`),null==t?void 0:t.token}}function e_(e){return(0,i.Ku)(e)}class eS{constructor(e){this.auth=e,this.observer=null,this.addObserver=(0,i.tD)(e=>this.observer=e)}get next(){return y(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let eE={async loadJS(){throw Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function eI(e){return`__${e}${Math.floor(1e6*Math.random())}`}class ek{constructor(e){this.type="recaptcha-enterprise",this.auth=e_(e)}async verify(e="verify",t=!1){async function r(e){if(!t){if(null==e.tenantId&&null!=e._agentRecaptchaConfig)return e._agentRecaptchaConfig.siteKey;if(null!=e.tenantId&&void 0!==e._tenantRecaptchaConfigs[e.tenantId])return e._tenantRecaptchaConfigs[e.tenantId].siteKey}return new Promise(async(t,r)=>
13{M(e,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(n=>{if(void 0===n.recaptchaKey)r(Error("recaptcha Enterprise site key undefined"));else{let r=new j(n);return null==e.tenantId?e._agentRecaptchaConfig=r:e._tenantRecaptchaConfigs[e.tenantId]=r,t(r.siteKey)}}).catch(e=>{r(e)})})}function n(t,r,n){let i=window.grecaptcha;D(i)?i.enterprise.ready(()=>{i.enterprise.execute(t,{action:e}).then(e=>{r(e)}).catch(()=>{r("NO_RECAPTCHA")})}):n(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((e,i)=>{r(this.auth).then(r=>{if(!t&&D(window.grecaptcha))n(r,e,i);else{var s;if("undefined"==typeof window)return void i(Error("RecaptchaVerifier is only supported in browser"));let t=eE.recaptchaEnterpriseScript;0!==t.length&&(t+=r),(s=t,eE.loadJS(s)).then(()=>{n(r,e,i)}).catch(e=>{i(e)})}}).catch(e=>{i(e)})})}}async function eT(e,t,r,n=!1){let i,s=new ek(e);try{i=await s.verify(r)}catch(e){i=await s.verify(r,!0)}let a=Object.assign({},t);return n?Object.assign(a,{captchaResp:i}):Object.assign(a,{captchaResponse:i}),Object.assign(a,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(a,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),a}async function ex(e,t,r,n){var i;if(null==(i=e._getRecaptchaConfig())||!i.isProviderEnabled("EMAIL_PASSWORD_PROVIDER"))return n(e,t).catch(async i=>{if("auth/missing-recaptcha-token"!==i.code)return Promise.reject(i);{console.log(`${r} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);let i=await eT(e,t,r,"getOobCode"===r);return n(e,i)}});{let i=await eT(e,t,r,"getOobCode"===r);return n(e,i)}}function eO(e){let t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function eC(e){if(!e)return null;let t=Number(e);return isNaN(t)?null:t}class eA{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return v("not implemented")}_getIdTokenResponse(e){return v("not implemented")}_linkToIdToken(e,t){return v("not implemented")}_getReauthenticationResolver(e){return v("not implemented")}}async function eN(e,t){return O(e,"POST","/v1/accounts:update",t)}async function eP(e,t){return O(e,"POST","/v1/accounts:signUp",t)}async function eR(e,t){return A(e,"POST","/v1/accounts:signInWithPassword",x(e,t))}async function eD(e,t){return O(e,"POST","/v1/accounts:sendOobCode",x(e,t))}async function ej(e,t){return eD(e,t)}async function eM(e,t){return A(e,"POST","/v1/accounts:signInWithEmailLink",x(e,t))}async function eF(e,t){return A(e,"POST","/v1/accounts:signInWithEmailLink",x(e,t))}class eL extends eA{constructor(e,t,r,n=null){super("password",r),this._email=e,this._password=t,this._tenantId=n}static _fromEmailAndPassword(e,t){return new eL(e,t,"password")}static _fromEmailAndCode(e,t,r=null){return new eL(e,t,"emailLink",r)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){let t="string"==typeof e?JSON.parse(e):e;if((null==t?void 0:t.email)&&(null==t?void 0:t.password)){if("password"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);else if("emailLink"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":return ex(e,{returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",eR);case"emailLink":return eM(e,{email:this._email,oobCode:this._password});default:d(e,"internal-error")}}async _linkToIdToken(e,t){switch(this.signInMethod){case"password":return ex(e,{idToken:t,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",eP);case"emailLink":return eF(e,{idToken:t,email:this._email,oobCode:this._password});default:d(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}async function eV(e,t){return A(e,"POST","/v1/accounts:signInWithIdp",x(e,t))}class eU extends eA{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){let t=new eU(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&
13(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):d("argument-error"),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){let t="string"==typeof e?JSON.parse(e):e,{providerId:r,signInMethod:n}=t,i=(0,a.Tt)(t,["providerId","signInMethod"]);if(!r||!n)return null;let s=new eU(r,n);return s.idToken=i.idToken||void 0,s.accessToken=i.accessToken||void 0,s.secret=i.secret,s.nonce=i.nonce,s.pendingToken=i.pendingToken||null,s}_getIdTokenResponse(e){return eV(e,this.buildRequest())}_linkToIdToken(e,t){let r=this.buildRequest();return r.idToken=t,eV(e,r)}_getReauthenticationResolver(e){let t=this.buildRequest();return t.autoCreate=!1,eV(e,t)}buildRequest(){let e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{let t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=(0,i.Am)(t)}return e}}async function ez(e,t){return O(e,"POST","/v1/accounts:sendVerificationCode",x(e,t))}async function eB(e,t){return A(e,"POST","/v1/accounts:signInWithPhoneNumber",x(e,t))}async function eq(e,t){let r=await A(e,"POST","/v1/accounts:signInWithPhoneNumber",x(e,t));if(r.temporaryProof)throw R(e,"account-exists-with-different-credential",r);return r}let e$={USER_NOT_FOUND:"user-not-found"};async function eW(e,t){return A(e,"POST","/v1/accounts:signInWithPhoneNumber",x(e,Object.assign(Object.assign({},t),{operation:"REAUTH"})),e$)}class eH extends eA{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new eH({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new eH({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return eB(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return eq(e,Object.assign({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return eW(e,this._makeVerificationRequest())}_makeVerificationRequest(){let{temporaryProof:e,phoneNumber:t,verificationId:r,verificationCode:n}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:r,code:n}}toJSON(){let e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){"string"==typeof e&&(e=JSON.parse(e));let{verificationId:t,verificationCode:r,phoneNumber:n,temporaryProof:i}=e;return r||t||n||i?new eH({verificationId:t,verificationCode:r,phoneNumber:n,temporaryProof:i}):null}}class eG{constructor(e){var t,r,n,s,a,o;let l=(0,i.I9)((0,i.hp)(e)),c=null!=(t=l.apiKey)?t:null,u=null!=(r=l.oobCode)?r:null,h=function(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!=(n=l.mode)?n:null);y(c&&u&&h,"argument-error"),this.apiKey=c,this.operation=h,this.code=u,this.continueUrl=null!=(s=l.continueUrl)?s:null,this.languageCode=null!=(a=l.languageCode)?a:null,this.tenantId=null!=(o=l.tenantId)?o:null}static parseLink(e){let t=function(e){let t=(0,i.I9)((0,i.hp)(e)).link,r=t?(0,i.I9)((0,i.hp)(t)).deep_link_id:null,n=(0,i.I9)((0,i.hp)(e)).deep_link_id;return(n?(0,i.I9)((0,i.hp)(n)).link:null)||n||r||t||e}(e);try{return new eG(t)}catch(e){return null}}}class eK{constructor(){this.providerId=eK.PROVIDER_ID}static credential(e,t){return eL._fromEmailAndPassword(e,t)}static credentialWithLink(e,t){let r=eG.parseLink(t);return y(r,"argument-error"),eL._fromEmailAndCode(e,r.code,r.tenantId)}}eK.PROVIDER_ID="password",eK.EMAIL_PASSWORD_SIGN_IN_METHOD="password",eK.EMAIL_LINK_SIGN_IN_METHOD="emailLink";class eQ{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}class eJ extends eQ{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}class eZ extends eJ{static credentialFromJSON(e){let t="string"==typeof e?JSON.parse(e):e;return y("providerId"in t&&"signInMethod"in t,"argument-error"),eU._fromParams(t)}credential(e){return this._credential(Object.assign(Object.assign({},e),{nonce:e.rawNonce}))}_credential(e){return y(e.idToken||e.accessToken,"argument-error"),eU._fromParams(Object.assign(Object.assign({}
13,e),{providerId:this.providerId,signInMethod:this.providerId}))}static credentialFromResult(e){return eZ.oauthCredentialFromTaggedObject(e)}static credentialFromError(e){return eZ.oauthCredentialFromTaggedObject(e.customData||{})}static oauthCredentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{oauthIdToken:t,oauthAccessToken:r,oauthTokenSecret:n,pendingToken:i,nonce:s,providerId:a}=e;if(!r&&!n&&!t&&!i||!a)return null;try{return new eZ(a)._credential({idToken:t,accessToken:r,nonce:s,pendingToken:i})}catch(e){return null}}}class eY extends eJ{constructor(){super("facebook.com")}static credential(e){return eU._fromParams({providerId:eY.PROVIDER_ID,signInMethod:eY.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return eY.credentialFromTaggedObject(e)}static credentialFromError(e){return eY.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return eY.credential(e.oauthAccessToken)}catch(e){return null}}}eY.FACEBOOK_SIGN_IN_METHOD="facebook.com",eY.PROVIDER_ID="facebook.com";class eX extends eJ{constructor(){super("google.com"),this.addScope("profile")}static credential(e,t){return eU._fromParams({providerId:eX.PROVIDER_ID,signInMethod:eX.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return eX.credentialFromTaggedObject(e)}static credentialFromError(e){return eX.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{oauthIdToken:t,oauthAccessToken:r}=e;if(!t&&!r)return null;try{return eX.credential(t,r)}catch(e){return null}}}eX.GOOGLE_SIGN_IN_METHOD="google.com",eX.PROVIDER_ID="google.com";class e0 extends eJ{constructor(){super("github.com")}static credential(e){return eU._fromParams({providerId:e0.PROVIDER_ID,signInMethod:e0.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return e0.credentialFromTaggedObject(e)}static credentialFromError(e){return e0.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return e0.credential(e.oauthAccessToken)}catch(e){return null}}}e0.GITHUB_SIGN_IN_METHOD="github.com",e0.PROVIDER_ID="github.com";class e1 extends eJ{constructor(){super("twitter.com")}static credential(e,t){return eU._fromParams({providerId:e1.PROVIDER_ID,signInMethod:e1.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return e1.credentialFromTaggedObject(e)}static credentialFromError(e){return e1.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{oauthAccessToken:t,oauthTokenSecret:r}=e;if(!t||!r)return null;try{return e1.credential(t,r)}catch(e){return null}}}async function e2(e,t){return A(e,"POST","/v1/accounts:signUp",x(e,t))}e1.TWITTER_SIGN_IN_METHOD="twitter.com",e1.PROVIDER_ID="twitter.com";class e4{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,t,r,n=!1){return new e4({user:await ee._fromIdTokenResponse(e,r,n),providerId:e3(r),_tokenResponse:r,operationType:t})}static async _forOperation(e,t,r){return await e._updateTokensIfNecessary(r,!0),new e4({user:e,providerId:e3(r),_tokenResponse:r,operationType:t})}}function e3(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}class e6 extends i.g{constructor(e,t,r,n){var i;super(t.code,t.message),this.operationType=r,this.user=n,Object.setPrototypeOf(this,e6.prototype),this.customData={appName:e.name,tenantId:null!=(i=e.tenantId)?i:void 0,_serverResponse:t.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(e,t,r,n){return new e6(e,t,r,n)}}function e5(e,t,r,n){return("reauthenticate"===t?r._getReauthenticationResolver(e):r._getIdTokenResponse(e)).catch(r=>{if("auth/multi-factor-auth-required"===r.code)throw e6._fromErrorAndOperation(e,r,t,n);throw r})}async function e8(e,t,r=!1){let n=await $(e,t._linkToIdToken(e.auth,await e.getIdToken()),r);return e4._forOperation(e,"link",n)}async function e7(e,t,r=!1){let{auth:i}=e;if((0,n.xZ)(i.app))return Promise.reject(m(i));let s="reauthenticate";try{let n=await $(e,e5(i,s,t,e),r);y(n.idToken,i,"internal-error");let a=B(n.idToken);y(a,i,"internal-error");let{sub:o}=a;return y(e.uid===o,i,"user-mismatch"),e4._forOperation(e,s,n)}catch(e){throw(null==e?void 0:e.code)==="auth/user-not-found"&&d(i,"user-mismatch"),e}}async function e9(e,t,r=!1){if((0,n.xZ)(e.app))return Promise.reject(m(e));let i="signIn",s=await e5(e,i,t),a=await e4._fromIdTokenResponse(e,i,s);return r||await e._updateCurrentUser(a.user),a}async function te(e,t){return e9(e_(e),t)}async function tt(e,t){return e7((0,i.Ku)(e),t)}class tr{constructor(e,t){this.factorId=e,this.uid=t.mfaEnrollmentId,this.enrollmentTime=new Date(t.enrolledAt).toUTCString(),this.displayName=t.displayName}static _fromServerResponse(e,t){return"phoneInfo"in t?tn._fromServerResponse(e,t):"totpInfo"in t?ti._fromServerResponse(e,t):d(e,"internal-error")}}class tn extends tr{constructor(e){super("phone",e),this.phoneNumber=e.phoneInfo}static _fromServerResponse(e,t){return new tn(t)}}class ti extends tr{constructor(e){super("totp",e)}static _fromServerResponse(e,t){return new ti(t)}}async function ts(e){let t=e_(e);t._getPasswordPolicyInternal()&&await t._updatePasswordPolicy()}async function ta(e,t,r){var n;let i=e_(e),s={requestType:"PASSWORD_RESET",email:t,clientType:"CLIENT_TYPE_WEB"};r&&(y((null==(n=r.url)?void 0:n.length)>0,i,"invalid-continue-uri"),y(void 0===r.dynamicLinkDomain||r.dynamicLinkDomain.length>0,i,"invalid-dynamic-link-domain"),s.continueUrl=r.url,s.dynamicLinkDomain=r.dynamicLinkDomain,s.canHandleCodeInApp=r.handleCodeInApp,r.iOS&&(y(r.iOS.bundleId.length>0,i,"missing-ios-bundle-id"),s.iOSBundleId=r.iOS.bundleId),r.android&&(y(r.android.packageName.length>0,i,"missing-android-pkg-name"),s.androidInstallApp=r.android.installApp,s.androidMinimumVersionCode=r.android.minimumVersion,s.androidPackageName=r.android.packageName)),await ex(i,s,"getOobCode",ej)}async function to(e,t,r){if((0,n.xZ)(e.app))return Promise.reject(m(e));let i=e_(e),s=ex(i,{returnSecureToken:!0,email:t,password:r,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",e2),a=await s.catch(t=>{throw"auth/password-does-not-meet-requirements"===t.code&&ts(e),t}),o=await e4._fromIdTokenResponse(i,"signIn",a);return await i._updateCurrentUser(o.user),o}function tl(e,t,r){return(0,n.xZ)(e.app)?Promise.reject(m(e)):te((0,i.Ku)(e),eK.credential(t,r)).catch(async t=>{throw"auth/password-does-not-meet-requirements"===t.code&&ts(e),t})}async function tc(e,t){return O(e,"POST","/v1/accounts:createAuthUri",x(e,t))}async function tu(e,t){let r=w()?b():"http://localhost",{signinMethods:n}=await tc((0,i.Ku)(e),{identifier:t,continueUri:r});return n||[]}function th(e,t){return td((0,i.Ku)(e),null,t)}async function td(e,t,r){let{auth:n}=e,i={idToken:await e.getIdToken(),returnSecureToken:!0};t&&(i.email=t),r&&(i.password=r);let s=await $(e,eN(n,i));await e._updateTokensIfNecessary(s,!0)}function tp(e,t,r,n){return(0,i.Ku)(e).onAuthStateChanged(t,r,n)}function tf(e){return(0,i.Ku)(e).signOut()}new WeakMap;let tm="__sak";class tg{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{if(!this.storage)return Promise.resolve(!1);return this.storage.setItem(tm,"1"),this.storage.removeItem(tm),Promise.resolve(!0)}catch(e){return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){let t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}class ty extends tg{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=em(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(let t of Object.keys(this.listeners)){let r=this.storage.getItem(t),n=this.localCache[t];r!==n&&e(t,n,r)}}
13onStorageEvent(e,t=!1){if(!e.key)return void this.forAllChangedKeys((e,t,r)=>{this.notifyListeners(e,r)});let r=e.key;t?this.detachListener():this.stopPolling();let n=()=>{let e=this.storage.getItem(r);(t||this.localCache[r]!==e)&&this.notifyListeners(r,e)},s=this.storage.getItem(r);(0,i.lT)()&&10===document.documentMode&&s!==e.newValue&&e.newValue!==e.oldValue?setTimeout(n,10):n()}notifyListeners(e,t){this.localCache[e]=t;let r=this.listeners[e];if(r)for(let e of Array.from(r))e(t?JSON.parse(t):t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,t,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:t,newValue:r}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,t){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}async _set(e,t){await super._set(e,t),this.localCache[e]=JSON.stringify(t)}async _get(e){let t=await super._get(e);return this.localCache[e]=JSON.stringify(t),t}async _remove(e){await super._remove(e),delete this.localCache[e]}}ty.type="LOCAL";class tv extends tg{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,t){}_removeListener(e,t){}}tv.type="SESSION";class tb{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){let t=this.receivers.find(t=>t.isListeningto(e));if(t)return t;let r=new tb(e);return this.receivers.push(r),r}isListeningto(e){return this.eventTarget===e}async handleEvent(e){let{eventId:t,eventType:r,data:n}=e.data,i=this.handlersMap[r];if(!(null==i?void 0:i.size))return;e.ports[0].postMessage({status:"ack",eventId:t,eventType:r});let s=Array.from(i).map(async t=>t(e.origin,n)),a=await Promise.all(s.map(async e=>{try{let t=await e;return{fulfilled:!0,value:t}}catch(e){return{fulfilled:!1,reason:e}}}));e.ports[0].postMessage({status:"done",eventId:t,eventType:r,response:a})}_subscribe(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}function tw(e="",t=10){let r="";for(let e=0;e<t;e++)r+=Math.floor(10*Math.random());return e+r}tb.receivers=[];class t_{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,t,r=50){let n,i,s="undefined"!=typeof MessageChannel?new MessageChannel:null;if(!s)throw Error("connection_unavailable");return new Promise((a,o)=>{let l=tw("",20);s.port1.start();let c=setTimeout(()=>{o(Error("unsupported_event"))},r);i={messageChannel:s,onMessage(e){if(e.data.eventId===l)switch(e.data.status){case"ack":clearTimeout(c),n=setTimeout(()=>{o(Error("timeout"))},3e3);break;case"done":clearTimeout(n),a(e.data.response);break;default:clearTimeout(c),clearTimeout(n),o(Error("invalid_response"))}}},this.handlers.add(i),s.port1.addEventListener("message",i.onMessage),this.target.postMessage({eventType:e,eventId:l,data:t},[s.port2])}).finally(()=>{i&&this.removeMessageHandler(i)})}}function tS(){return window}function tE(){return void 0!==tS().WorkerGlobalScope&&"function"==typeof tS().importScripts}async function tI(){if(!(null==navigator?void 0:navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch(e){return null}}let tk="firebaseLocalStorageDb",tT="firebaseLocalStorage",tx="fbase_key";class tO{constructor(e){this.request=e}toPromise(){return new Promise((e,t)=>
13{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{t(this.request.error)})})}}function tC(e,t){return e.transaction([tT],t?"readwrite":"readonly").objectStore(tT)}function tA(){let e=indexedDB.open(tk,1);return new Promise((t,r)=>{e.addEventListener("error",()=>{r(e.error)}),e.addEventListener("upgradeneeded",()=>{let t=e.result;try{t.createObjectStore(tT,{keyPath:tx})}catch(e){r(e)}}),e.addEventListener("success",async()=>{let r=e.result;r.objectStoreNames.contains(tT)?t(r):(r.close(),await new tO(indexedDB.deleteDatabase(tk)).toPromise(),t(await tA()))})})}async function tN(e,t,r){return new tO(tC(e,!0).put({[tx]:t,value:r})).toPromise()}async function tP(e,t){let r=tC(e,!1).get(t),n=await new tO(r).toPromise();return void 0===n?null:n.value}function tR(e,t){return new tO(tC(e,!0).delete(t)).toPromise()}class tD{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db||(this.db=await tA()),this.db}async _withRetries(e){let t=0;for(;;)try{let t=await this._openDb();return await e(t)}catch(e){if(t++>3)throw e;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return tE()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=tb._getInstance(tE()?self:null),this.receiver._subscribe("keyChanged",async(e,t)=>({keyProcessed:(await this._poll()).includes(t.key)})),this.receiver._subscribe("ping",async(e,t)=>["keyChanged"])}async initializeSender(){var e,t;if(this.activeServiceWorker=await tI(),!this.activeServiceWorker)return;this.sender=new t_(this.activeServiceWorker);let r=await this.sender._send("ping",{},800);r&&(null==(e=r[0])?void 0:e.fulfilled)&&(null==(t=r[0])?void 0:t.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){var t;if(this.sender&&this.activeServiceWorker&&((null==(t=null==navigator?void 0:navigator.serviceWorker)?void 0:t.controller)||null)===this.activeServiceWorker)try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch(e){}}async _isAvailable(){try{if(!indexedDB)return!1;let e=await tA();return await tN(e,tm,"1"),await tR(e,tm),!0}catch(e){}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,t){return this._withPendingWrite(async()=>(await this._withRetries(r=>tN(r,e,t)),this.localCache[e]=t,this.notifyServiceWorker(e)))}async _get(e){let t=await this._withRetries(t=>tP(t,e));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(t=>tR(t,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){let e=await this._withRetries(e=>new tO(tC(e,!1).getAll()).toPromise());if(!e||0!==this.pendingWrites)return[];let t=[],r=new Set;if(0!==e.length)for(let{fbase_key:n,value:i}of e)r.add(n),JSON.stringify(this.localCache[n])!==JSON.stringify(i)&&(this.notifyListeners(n,i),t.push(n));for(let e of Object.keys(this.localCache))this.localCache[e]&&!r.has(e)&&(this.notifyListeners(e,null),t.push(e));return t}notifyListeners(e,t){this.localCache[e]=t;let r=this.listeners[e];if(r)for(let e of Array.from(r))e(t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,t){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&this.stopPolling()}}async function tj(e,t,r){var n,i,s;let a=await r.verify();try{let o;if(y("string"==typeof a,e,"argument-error"),y("recaptcha"===r.type,e,"argument-error"),o="string"==typeof t?{phoneNumber:t}
13:t,"session"in o){let t=o.session;if("phoneNumber"in o)return y("enroll"===t.type,e,"internal-error"),(await (i={idToken:t.credential,phoneEnrollmentInfo:{phoneNumber:o.phoneNumber,recaptchaToken:a}},O(e,"POST","/v2/accounts/mfaEnrollment:start",x(e,i)))).phoneSessionInfo.sessionInfo;{y("signin"===t.type,e,"internal-error");let r=(null==(n=o.multiFactorHint)?void 0:n.uid)||o.multiFactorUid;return y(r,e,"missing-multi-factor-info"),(await (s={mfaPendingCredential:t.credential,mfaEnrollmentId:r,phoneSignInInfo:{recaptchaToken:a}},O(e,"POST","/v2/accounts/mfaSignIn:start",x(e,s)))).phoneResponseInfo.sessionInfo}}{let{sessionInfo:t}=await ez(e,{phoneNumber:o.phoneNumber,recaptchaToken:a});return t}}finally{r._reset()}}tD.type="LOCAL",eI("rcb"),new S(3e4,6e4);class tM{constructor(e){this.providerId=tM.PROVIDER_ID,this.auth=e_(e)}verifyPhoneNumber(e,t){return tj(this.auth,e,(0,i.Ku)(t))}static credential(e,t){return eH._fromVerification(e,t)}static credentialFromResult(e){return tM.credentialFromTaggedObject(e)}static credentialFromError(e){return tM.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{phoneNumber:t,temporaryProof:r}=e;return t&&r?eH._fromTokenResponse(t,r):null}}function tF(e,t){return t?er(t):(y(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}tM.PROVIDER_ID="phone",tM.PHONE_SIGN_IN_METHOD="phone";class tL extends eA{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return eV(e,this._buildIdpRequest())}_linkToIdToken(e,t){return eV(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return eV(e,this._buildIdpRequest())}_buildIdpRequest(e){let t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}}function tV(e){return e9(e.auth,new tL(e),e.bypassAuthState)}function tU(e){let{auth:t,user:r}=e;return y(r,t,"internal-error"),e7(r,new tL(e),e.bypassAuthState)}async function tz(e){let{auth:t,user:r}=e;return y(r,t,"internal-error"),e8(r,new tL(e),e.bypassAuthState)}class tB{constructor(e,t,r,n,i=!1){this.auth=e,this.resolver=r,this.user=n,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise(async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(e){this.reject(e)}})}async onAuthEvent(e){let{urlResponse:t,sessionId:r,postBody:n,tenantId:i,error:s,type:a}=e;if(s)return void this.reject(s);let o={auth:this.auth,requestUri:t,sessionId:r,tenantId:i||void 0,postBody:n||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(o))}catch(e){this.reject(e)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return tV;case"linkViaPopup":case"linkViaRedirect":return tz;case"reauthViaPopup":case"reauthViaRedirect":return tU;default:d(this.auth,"internal-error")}}resolve(e){var t,r;t=this.pendingPromise,r="Pending promise was never set",t||v(r),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){var t,r;t=this.pendingPromise,r="Pending promise was never set",t||v(r),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}let tq=new S(2e3,1e4);async function t$(e,t,r){if((0,n.xZ)(e.app))return Promise.reject(p(e,"operation-not-supported-in-this-environment"));let i=e_(e);if(!(t instanceof eQ))throw eQ.name!==t.constructor.name&&d(e,"argument-error"),f(e,"argument-error",`Type of ${t.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`);let s=tF(i,r);return new tW(i,"signInViaPopup",t,s).executeNotNull()}class tW extends tB{constructor(e,t,r,n,i){super(e,t,n,i),this.provider=r,this.authWindow=null,this.pollId=null,tW.currentPopupAction&&tW.currentPopupAction.cancel(),tW.currentPopupAction=this}async executeNotNull(){let e=await this.execute();return y(e,this.auth,"internal-error"),e}async onExecution(){var e,t;e=1===this.filter.length,t="Popup operations only handle one event",e||v(t);let r=tw();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],r),this.authWindow.associatedEvent=r,this.resolver._originValidation(this.auth).catch(e=>{this.reject(e)}),this.resolver._isIframeWebStorageSupported(this.auth,e=>{e||this.reject(p(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var e;return(null==(e=this.authWindow)?void 0:e.associatedEvent)||null}cancel(){this.reject(p(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,tW.currentPopupAction=null}pollUserCancellation(){let e=()=>{var t,r;if(null==(r=null==(t=this.authWindow)?void 0:t.window)?void 0:r.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(p(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(e,tq.get())};e()}}tW.currentPopupAction=null;let tH=new Map;class tG extends tB{constructor(e,t,r=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,r),this.eventId=null}async execute(){let e=tH.get(this.auth._key());if(!e){try{let t=await tK(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(t)}catch(t){e=()=>Promise.reject(t)}tH.set(this.auth._key(),e)}return this.bypassAuthState||tH.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);
13if("unknown"===e.type)return void this.resolve(null);if(e.eventId){let t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function tK(e,t){var r;let n=ei("pendingRedirect",(r=t).config.apiKey,r.name),i=er(e._redirectPersistence);if(!await i._isAvailable())return!1;let s=await i._get(n)==="true";return await i._remove(n),s}function tQ(e,t){tH.set(e._key(),t)}async function tJ(e,t,r=!1){if((0,n.xZ)(e.app))return Promise.reject(m(e));let i=e_(e),s=tF(i,t),a=new tG(i,s,r),o=await a.execute();return o&&!r&&(delete o.user._redirectEventId,await i._persistUserIfCurrent(o.user),await i._setRedirectUser(null,t)),o}class tZ{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let t=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(e,r)&&(t=!0,this.sendToConsumer(e,r),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!function(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return tX(e);default:return!1}}(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){var r;if(e.error&&!tX(e)){let n=(null==(r=e.error.code)?void 0:r.split("auth/")[1])||"internal-error";t.onError(p(this.auth,n))}else t.onAuthEvent(e)}isEventForConsumer(e,t){let r=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&r}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(tY(e))}saveEventToCache(e){this.cachedEventUids.add(tY(e)),this.lastProcessedEventTime=Date.now()}}function tY(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(e=>e).join("-")}function tX({type:e,error:t}){return"unknown"===e&&(null==t?void 0:t.code)==="auth/no-auth-event"}async function t0(e,t={}){return O(e,"GET","/v1/projects",t)}let t1=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,t2=/^https?/;async function t4(e){if(e.config.emulator)return;let{authorizedDomains:t}=await t0(e);for(let e of t)try{if(function(e){let t=b(),{protocol:r,hostname:n}=new URL(t);if(e.startsWith("chrome-extension://")){let i=new URL(e);return""===i.hostname&&""===n?"chrome-extension:"===r&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===r&&i.hostname===n}if(!t2.test(r))return!1;if(t1.test(e))return n===e;let i=e.replace(/\./g,"\\.");return RegExp("^(.+\\."+i+"|"+i+")$","i").test(n)}(e))return}catch(e){}d(e,"unauthorized-domain")}let t3=new S(3e4,6e4);function t6(){let e=tS().___jsl;if(null==e?void 0:e.H){for(let t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let t=0;t<e.CP.length;t++)e.CP[t]=null}}let t5=null,t8=new S(5e3,15e3),t7={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},t9=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);async function re(e){let t=await (t5=t5||new Promise((t,r)=>{var n,i,s,a;function o(){t6(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{t6(),r(p(e,"network-request-failed"))},timeout:t3.get()})}if(null==(i=null==(n=tS().gapi)?void 0:n.iframes)?void 0:i.Iframe)t(gapi.iframes.getContext());else if(null==(s=tS().gapi)?void 0:s.load)o();else{let t=eI("iframefcb");return tS()[t]=()=>{gapi.load?o():r(p(e,"network-request-failed"))},(a=`${eE.gapiScript}?onload=${t}`,eE.loadJS(a)).catch(e=>r(e))}}).catch(e=>{throw t5=null,e})),r=tS().gapi;return y(r,e,"internal-error"),t.open({where:document.body,url:function(e){let t=e.config;y(t.authDomain,e,"auth-domain-config-required");let r=t.emulator?E(t,"emulator/auth/iframe"):`https://${e.config.authDomain}
13/__/auth/iframe`,s={apiKey:t.apiKey,appName:e.name,v:n.MF},a=t9.get(e.config.apiHost);a&&(s.eid=a);let o=e._getFrameworks();return o.length&&(s.fw=o.join(",")),`${r}?${(0,i.Am)(s).slice(1)}`}(e),messageHandlersFilter:r.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:t7,dontclear:!0},t=>new Promise(async(r,n)=>{await t.restyle({setHideOnLeave:!1});let i=p(e,"network-request-failed"),s=tS().setTimeout(()=>{n(i)},t8.get());function a(){tS().clearTimeout(s),r(t)}t.ping(a).then(a,()=>{n(i)})}))}let rt={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class rr{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(e){}}}let rn=encodeURIComponent("fac");async function ri(e,t,r,s,a,o){y(e.config.authDomain,e,"auth-domain-config-required"),y(e.config.apiKey,e,"invalid-api-key");let l={apiKey:e.config.apiKey,appName:e.name,authType:r,redirectUrl:s,v:n.MF,eventId:a};if(t instanceof eQ)for(let[r,n]of(t.setDefaultLanguage(e.languageCode),l.providerId=t.providerId||"",(0,i.Im)(t.getCustomParameters())||(l.customParameters=JSON.stringify(t.getCustomParameters())),Object.entries(o||{})))l[r]=n;if(t instanceof eJ){let e=t.getScopes().filter(e=>""!==e);e.length>0&&(l.scopes=e.join(","))}for(let t of(e.tenantId&&(l.tid=e.tenantId),Object.keys(l)))void 0===l[t]&&delete l[t];let c=await e._getAppCheckToken(),u=c?`#${rn}=${encodeURIComponent(c)}`:"";return`${function({config:e}){return e.emulator?E(e,"emulator/auth/handler"):`https://${e.authDomain}/__/auth/handler`}(e)}?${(0,i.Am)(l).slice(1)}${u}`}let rs="webStorageSupport";class ra{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=tv,this._completeRedirectFn=tJ,this._overrideRedirectResult=tQ}async _openPopup(e,t,r,n){var s,a,o;a=null==(s=this.eventManagers[e._key()])?void 0:s.manager,o="_initialize() not called before _openPopup()",a||v(o);let l=await ri(e,t,r,b(),n);return function(e,t,r,n=500,s=600){let a=Math.max((window.screen.availHeight-s)/2,0).toString(),o=Math.max((window.screen.availWidth-n)/2,0).toString(),l="",c=Object.assign(Object.assign({},rt),{width:n.toString(),height:s.toString(),top:a,left:o}),u=(0,i.ZQ)().toLowerCase();r&&(l=ec(u)?"_blank":r),eo(u)&&(t=t||"http://localhost",c.scrollbars="yes");let h=Object.entries(c).reduce((e,[t,r])=>`${e}${t}=${r},`,"");if(function(e=(0,i.ZQ)()){var t;return ef(e)&&!!(null==(t=window.navigator)?void 0:t.standalone)}(u)&&"_self"!==l)return function(e,t){let r=document.createElement("a");r.href=e,r.target=t;let n=document.createEvent("MouseEvent");n.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),r.dispatchEvent(n)}(t||"",l),new rr(null);let d=window.open(t||"",l,h);y(d,e,"popup-blocked");try{d.focus()}catch(e){}return new rr(d)}(e,l,tw())}async _openRedirect(e,t,r,n){var i;return await this._originValidation(e),i=await ri(e,t,r,b(),n),tS().location.href=i,new Promise(()=>{})}_initialize(e){let t=e._key();if(this.eventManagers[t]){var r;let{manager:e,promise:n}=this.eventManagers[t];return e?Promise.resolve(e):(r="If manager is not set, promise should be",n||v(r),n)}let n=this.initAndGetManager(e);return this.eventManagers[t]={promise:n},n.catch(()=>{delete this.eventManagers[t]}),n}async initAndGetManager(e){let t=await re(e),r=new tZ(e);return t.register("authEvent",t=>(y(null==t?void 0:t.authEvent,e,"invalid-auth-event"),{status:r.onEvent(t.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:r},this.iframes[e._key()]=t,r}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(rs,{type:rs},r=>{var n;let i=null==(n=null==r?void 0:r[0])?void 0:n[rs];void 0!==i&&t(!!i),d(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){let t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=t4(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return em()||el()||ef()}}class ro{constructor(e){this.factorId=e}_process(e,t,r){switch(t.type){case"enroll":return this._finalizeEnroll(e,t.credential,r);case"signin":return this._finalizeSignIn(e,t.credential);default:return v("unexpected MultiFactorSessionType")}}}class rl extends ro{constructor(e){super("phone"),this.credential=e}static _fromCredential(e){return new rl(e)}_finalizeEnroll(e,t,r){return O(e,"POST","/v2/accounts/mfaEnrollment:finalize",x(e,{idToken:t,displayName:r,phoneVerificationInfo:this.credential._makeVerificationRequest()}))}_finalizeSignIn(e,t){return O(e,"POST","/v2/accounts/mfaSignIn:finalize",x(e,{mfaPendingCredential:t,phoneVerificationInfo:this.credential._makeVerificationRequest()}))}}class rc{constructor(){}static assertion(e){return rl._fromCredential(e)}}rc.FACTOR_ID="phone";class ru{static assertionForEnrollment(e,t){return rh._fromSecret(e,t)}static assertionForSignIn(e,t){return rh._fromEnrollmentId(e,t)}static async generateSecret(e){var t,r;y(void 0!==(null==(t=e.user)?void 0:t.auth),"internal-error");let n=await O(r=e.user.auth,"POST","/v2/accounts/mfaEnrollment:start",x(r,{idToken:e.credential,totpEnrollmentInfo:{}}));return rd._fromStartTotpMfaEnrollmentResponse(n,e.user.auth)}}ru.FACTOR_ID="totp";class rh extends ro{constructor(e,t,r){super("totp"),this.otp=e,this.enrollmentId=t,this.secret=r}static _fromSecret(e,t){return new rh(t,void 0,e)}static _fromEnrollmentId(e,t){return new rh(t,e)}async _finalizeEnroll(e,t,r){return y(void 0!==this.secret,e,"argument-error"),O(e,"POST","/v2/accounts/mfaEnrollment:finalize",x(e,{idToken:t,displayName:r,totpVerificationInfo:this.secret._makeTotpVerificationInfo(this.otp)}))}async _finalizeSignIn(e,t){y(void 0!==this.enrollmentId&&void 0!==this.otp,e,"argument-error");let r={verificationCode:this.otp};return O(e,"POST","/v2/accounts/mfaSignIn:finalize",x(e,{mfaPendingCredential:t,mfaEnrollmentId:this.enrollmentId,totpVerificationInfo:r}))}}class rd{constructor(e,t,r,n,i,s,a){this.sessionInfo=s,this.auth=a,this.secretKey=e,this.hashingAlgorithm=t,this.co
13deLength=r,this.codeIntervalSeconds=n,this.enrollmentCompletionDeadline=i}static _fromStartTotpMfaEnrollmentResponse(e,t){return new rd(e.totpSessionInfo.sharedSecretKey,e.totpSessionInfo.hashingAlgorithm,e.totpSessionInfo.verificationCodeLength,e.totpSessionInfo.periodSec,new Date(e.totpSessionInfo.finalizeEnrollmentTime).toUTCString(),e.totpSessionInfo.sessionInfo,t)}_makeTotpVerificationInfo(e){return{sessionInfo:this.sessionInfo,verificationCode:e}}generateQrCodeUrl(e,t){var r;let n=!1;return(rp(e)||rp(t))&&(n=!0),n&&(rp(e)&&(e=(null==(r=this.auth.currentUser)?void 0:r.email)||"unknownuser"),rp(t)&&(t=this.auth.name)),`otpauth://totp/${t}:${e}?secret=${this.secretKey}&issuer=${t}&algorithm=${this.hashingAlgorithm}&digits=${this.codeLength}`}}function rp(e){return void 0===e||(null==e?void 0:e.length)===0}var rf="@firebase/auth",rm="1.7.9";class rg{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),(null==(e=this.auth.currentUser)?void 0:e.uid)||null}async getToken(e){return(this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser)?{accessToken:await this.auth.currentUser.getIdToken(e)}:null}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;let t=this.auth.onIdTokenChanged(t=>{e((null==t?void 0:t.stsTokenManager.accessToken)||null)});this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();let t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){y(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}let ry=(0,i.XA)("authIdTokenMaxAge")||300,rv=null;function rb(e=(0,n.Sx)()){let t=(0,n.j6)(e,"auth");if(t.isInitialized())return t.getImmediate();let r=function(e,t){let r=(0,n.j6)(e,"auth");if(r.isInitialized()){let e=r.getImmediate(),n=r.getOptions();if((0,i.bD)(n,null!=t?t:{}))return e;d(e,"already-initialized")}return r.initialize({options:t})}(e,{popupRedirectResolver:ra,persistence:[tD,ty,tv]}),s=(0,i.XA)("authTokenSyncURL");if(s&&"boolean"==typeof isSecureContext&&isSecureContext){let e=new URL(s,location.origin);if(location.origin===e.origin){let t,n=(t=e.toString(),async e=>{let r=e&&await e.getIdTokenResult(),n=r&&(new Date().getTime()-Date.parse(r.issuedAtTime))/1e3;if(n&&n>ry)return;let i=null==r?void 0:r.token;rv!==i&&(rv=i,await fetch(t,{method:i?"POST":"DELETE",headers:i?{Authorization:`Bearer ${i}`}:{}}))});(0,i.Ku)(r).beforeAuthStateChanged(n,()=>n(r.currentUser)),(0,i.Ku)(r).onIdTokenChanged(e=>n(e),void 0,void 0)}}let a=(0,i.Tj)("auth");return a&&function(e,t,r){let n=e_(e);y(n._canInitEmulator,n,"emulator-config-failed"),y(/^https?:\/\//.test(t),n,"invalid-emulator-scheme");let i=eO(t),{host:s,port:a}=function(e){let t=eO(e),r=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!r)return{host:"",port:null};let n=r[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(n);if(i){let e=i[1];return{host:e,port:eC(n.substr(e.length+1))}}{let[e,t]=n.split(":");return{host:e,port:eC(t)}}}(t),o=null===a?"":`:${a}`;n.config.emulator={url:`${i}//${s}${o}/`},n.settings.appVerificationDisabledForTesting=!0,n.emulatorConfig=Object.freeze({host:s,port:a,protocol:i.replace(":",""),options:Object.freeze({disableWarnings:!1})}),function(){function e(){let e=document.createElement("p"),t=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",t.position="fixed",t.width="100%",t.backgroundColor="#ffffff",t.border=".1em solid #000000",t.color="#b50000",t.bottom="0px",t.left="0px",t.margin="0px",t.zIndex="10000",t.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}"undefined"!=typeof console&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),"undefined"!=typeof window&&"undefined"!=typeof document&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e())}()}(r,`http://${a}`),r}eE={loadJS:e=>
13new Promise((t,r)=>{let n=document.createElement("script");n.setAttribute("src",e),n.onload=t,n.onerror=e=>{let t=p("internal-error");t.customData=e,r(t)},n.type="text/javascript",n.charset="UTF-8",(function(){var e,t;return null!=(t=null==(e=document.getElementsByTagName("head"))?void 0:e[0])?t:document})().appendChild(n)}),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="},function(e){(0,n.om)(new o.uA("auth",(t,{options:r})=>{let n=t.getProvider("app").getImmediate(),i=t.getProvider("heartbeat"),s=t.getProvider("app-check-internal"),{apiKey:a,authDomain:o}=n.options;y(a&&!a.includes(":"),"invalid-api-key",{appName:n.name});let l=new ew(n,i,s,{apiKey:a,authDomain:o,clientPlatform:e,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:eg(e)}),c=(null==r?void 0:r.persistence)||[],u=(Array.isArray(c)?c:[c]).map(er);return(null==r?void 0:r.errorMap)&&l._updateErrorMap(r.errorMap),l._initializeWithPersistence(u,null==r?void 0:r.popupRedirectResolver),l},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,r)=>{e.getProvider("auth-internal").initialize()})),(0,n.om)(new o.uA("auth-internal",e=>new rg(e_(e.getProvider("auth").getImmediate())),"PRIVATE").setInstantiationMode("EXPLICIT")),(0,n.KO)(rf,rm,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(e)),(0,n.KO)(rf,rm,"esm2017")}("Browser")},49899:(e,t,r)=>{"use strict";let n,i,s;r.d(t,{Ki:()=>s,W6:()=>n,Zu:()=>i,xx:()=>a}),n="e-info.org.tw",i="G-3G2CB5BM24",s="e7af92d93bc65444d";let a="0x4AAAAAACafuPbpZq5oVpSN"},50123:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return S},useLinkStatus:function(){return _}});let n=r(13514),i=r(6029),s=n._(r(55729)),a=r(86425),o=r(61413),l=r(32584),c=r(92018),u=r(51991),h=r(11828),d=r(52056),p=r(28321),f=r(35588),m=r(91609);r(32351);let g=new Set;function y(e,t,r,n){if((0,o.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let i=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(g.has(i))return;g.add(i)}e.prefetch(t,r,n).catch(e=>{})}}function v(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=s.default.forwardRef(function(e,t){let r,n,{href:l,as:g,children:b,prefetch:w=null,passHref:_,replace:S,shallow:E,scroll:I,locale:k,onClick:T,onNavigate:x,onMouseEnter:O,onTouchStart:C,legacyBehavior:A=!1,...N}=e;r=b,A&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let P=s.default.useContext(h.RouterContext),R=!1!==w,{href:D,as:j}=s.default.useMemo(()=>{if(!P){let e=v(l);return{href:e,as:g?v(g):e}}let[e,t]=(0,a.resolveHref)(P,l,!0);return{href:e,as:g?(0,a.resolveHref)(P,g):t||e}},[P,l,g]),M=s.default.useRef(D),F=s.default.useRef(j);A&&(n=s.default.Children.only(r));let L=A?n&&"object"==typeof n&&n.ref:t,[V,U,z]=(0,d.useIntersection)({rootMargin:"200px"}),B=s.default.useCallback(e=>{(F.current!==j||M.current!==D)&&(z(),F.current=j,M.current=D),V(e)},[j,D,z,V]),q=(0,m.useMergedRef)(B,L);s.default.useEffect(()=>{P&&U&&R&&y(P,D,j,{locale:k})},[j,D,U,k,R,null==P?void 0:P.locale,P]);let $={ref:q,onClick(e){A||"function"!=typeof T||T(e),A&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),P&&(e.defaultPrevented||function(e,t,r,n,i,s,a,l,c){let{nodeName:u}=e.currentTarget;if(!("A"===u.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,o.isLocalURL)(r)){i&&(e.preventDefault(),location.replace(r));return}e.preventDefault(),(()=>{if(c){let e=!1;if(c({preventDefault:()=>{e=!0}}),e)return}let e=null==a||a;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:s,locale:l,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})})()}}(e,P,D,j,S,E,I,k,x))},onMouseEnter(e){A||"function"!=typeof O||O(e),A&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),P&&y(P,D,j,{locale:k,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){A||"function"!=typeof C||C(e),A&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),P&&y(P,D,j,{locale:k,priority:!0,bypassPrefetchedCheck:!0})}};if((0,c.isAbsoluteUrl)(j))$.href=j;else if(!A||_||"a"===n.type&&!("href"in n.props)){let e=void 0!==k?k:null==P?void 0:P.locale;$.href=(null==P?void 0:P.isLocaleDomain)&&(0,p.getDomainLocale)(j,e,null==P?void 0:P.locales,null==P?void 0:P.domainLocales)||
13(0,f.addBasePath)((0,u.addLocale)(j,e,null==P?void 0:P.defaultLocale))}return A?s.default.cloneElement(n,$):(0,i.jsx)("a",{...N,...$,children:r})}),w=(0,s.createContext)({pending:!1}),_=()=>(0,s.useContext)(w),S=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},50895:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(13829);function i(e,t,r,n,i){return new s(e,t,r,n,i)}var s=function(e){function t(t,r,n,i,s,a){var o=e.call(this,t)||this;return o.onFinalize=s,o.shouldUnsubscribe=a,o._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,o._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,o._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,o}return(0,n.C6)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),r||null==(t=this.onFinalize)||t.call(this)}},t}(r(42818).vU)},52056:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(55729),i=r(54455),s="function"==typeof IntersectionObserver,a=new Map,o=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}=e,c=l||!s,[u,h]=(0,n.useState)(!1),d=(0,n.useRef)(null),p=(0,n.useCallback)(e=>{d.current=e},[]);return(0,n.useEffect)(()=>{if(s){if(c||u)return;let e=d.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:i,elements:s}=function(e){let t,r={root:e.root||null,margin:e.rootMargin||""},n=o.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},o.push(r),a.set(r,t),t}(r);return s.set(e,t),i.observe(e),function(){if(s.delete(e),i.unobserve(e),0===s.size){i.disconnect(),a.delete(n);let e=o.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&o.splice(e,1)}}}(e,e=>e&&h(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!u){let e=(0,i.requestIdleCallback)(()=>h(!0));return()=>(0,i.cancelIdleCallback)(e)}},[c,r,t,u,d.current]),[p,u,(0,n.useCallback)(()=>{h(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52541:(e,t,r)=>{"use strict";r.d(t,{L:()=>o});let{toString:n,hasOwnProperty:i}=Object.prototype,s=Function.prototype.toString,a=new Map;function o(e,t){try{return function e(t,r){if(t===r)return!0;let a=n.call(t);if(a!==n.call(r))return!1;switch(a){case"[object Array]":if(t.length!==r.length)break;case"[object Object]":{if(h(t,r))return!0;let n=l(t),s=l(r),a=n.length;if(a!==s.length)return!1;for(let e=0;e<a;++e)if(!i.call(r,n[e]))return!1;for(let i=0;i<a;++i){let s=n[i];if(!e(t[s],r[s]))return!1}return!0}case"[object Error]":return t.name===r.name&&t.message===r.message;case"[object Number]":if(t!=t)return r!=r;case"[object Boolean]":case"[object Date]":return+t==+r;case"[object RegExp]":case"[object String]":return t==`${r}`;case"[object Map]":case"[object Set]":{if(t.size!==r.size)return!1;if(h(t,r))return!0;let n=t.entries(),i="[object Map]"===a;for(;;){let t=n.next();if(t.done)break;let[s,a]=t.value;if(!r.has(s)||i&&!e(a,r.get(s)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),r=new Uint8Array(r);case"[object DataView]":{let e=t.byteLength;if(e===r.byteLength)for(;e--&&t[e]===r[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{let e=s.call(t);if(e!==s.call(r))return!1;return!function(e,t){let r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(e,u)}}return!1}(e,t)}finally{a.clear()}}function l(e){return Object.keys(e).filter(c,e)}function c(e){return void 0!==this[e]}let u="{ [native code] }";function h(e,t){let r=a.get(e);if(r){if(r.has(t))return!0}else a.set(e,r=new Set);return r.add(t),!1}},53614:(e,t,r)=>{"use strict";r.d(t,{j:()=>o});var n=r(45611);(0,n.KO)("firebase","10.14.1","app");var i=r(49481),s=r(24772);let a=0===(0,n.Dk)().length?(0,n.Wp)(s.Nd):(0,n.Dk)()[0],o=(0,i.xI)(a)},59583:(e,t,r)=>{"use strict";function n(e){return function e(t,r){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,r){if(null===t)return"null";if(r.includes(t))return"[Circular]";let n=[...r,t];if("function"==typeof t.toJSON){let r=t.toJSON();if(r!==t)return"string"==typeof r?r:e(r,n)}else if(Array.isArray(t)){var i=t,s=n;if(0===i.length)return"[]";if(s.length>2)return"[Array]";let r=Math.min(10,i.length),a=i.length-r,o=[];for(let t=0;t<r;++t)o.push(e(i[t],s));return 1===a?o.push("... 1 more item"):a>1&&o.push(`... ${a} more items`),"["+o.join(", ")+"]"}var a=t,o=n;let l=Object.entries(a);return 0===l.length?"{}":o.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(a)+"]":"{ "+l.map(([t,r])=>t+": "+e(r,o)).join(", ")+" }"}(t,r);default:return String(t)}}(e,[])}r.d(t,{N:()=>n})},59789:(e,t,r)=>{"use strict";r.d(t,{V1:()=>h,vA:()=>p});var n=r(41421),i=r(64902),s=r(78841),a=r(32030);let o="Invariant Violation";
13class l extends Error{constructor(e=o){super(e),this.name=o,Object.setPrototypeOf(this,l.prototype)}}let c=["debug","log","warn","error","silent"],u=c.indexOf(n.g?"log":"silent");function h(e,...t){if(!e)throw p(...t)}function d(e){return function(t,...r){if(c.indexOf(e)>=u){let n=console[e]||console.log;if("number"==typeof t){let e=t;(t=g(e))||(t=y(e,r),r=[])}n(t,...r)}}}function p(e,...t){return new l(g(e,t)||y(e,t))}h.debug=d("debug"),h.log=d("log"),h.warn=d("warn"),h.error=d("error");let f=Symbol.for("ApolloErrorMessageHandler_"+s.r);function m(e){if("string"==typeof e)return e;try{return(0,a.p)(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function g(e,t=[]){if(e)return i.A[f]&&i.A[f](e,t.map(m))}function y(e,t=[]){if(e)return"string"==typeof e?t.reduce((e,t)=>e.replace(/%[sdfo]/,m(t)),e):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:s.r,message:e,args:t.map(m)}))}`}},60648:(e,t,r)=>{"use strict";r.d(t,{D3:()=>d,Fy:()=>b,Gm:()=>v,Mm:()=>w,Pc:()=>y,Yw:()=>f,as:()=>_,bi:()=>p,en:()=>g,sP:()=>h,sj:()=>S,tB:()=>m});var n=r(9329),i=r(37197),s=r(36484),a=r(83148);function o(){let e=(0,n._)(["\n query CheckMemberExists($firebaseId: String!) {\n membersCount(where: { firebaseId: { equals: $firebaseId } })\n }\n"]);return o=function(){return e},e}function l(){let e=(0,n._)(["\n query GetAllSections {\n sections(orderBy: { sortOrder: asc }) {\n id\n slug\n name\n description\n }\n }\n"]);return l=function(){return e},e}function c(){let e=(0,n._)(["\n query CountMemberFavorites($memberId: ID!) {\n favoritesCount(where: { member: { id: { equals: $memberId } } })\n }\n"]);return c=function(){return e},e}let u=(0,i.J1)(o());(0,i.J1)(l()),(0,i.J1)(c());let h=async e=>{let t=await (0,a.p)();try{let r=await fetch("/api/member/get",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idToken:t,firebaseId:e})}),n=await r.json();if(!r.ok||!n.success)return console.error("getMemberByFirebaseId error:",n.error),null;return n.member||null}catch(e){return console.error("getMemberByFirebaseId error:",e),null}},d=async e=>{var t,r;let n=(0,s.O)(),i=await n.query({query:u,variables:{firebaseId:e},fetchPolicy:"network-only"});return i.error?(console.error("checkMemberExists error:",i.error),!1):(null!=(r=null==(t=i.data)?void 0:t.membersCount)?r:0)>0},p=async e=>{let t=await (0,a.p)(),r=await fetch("/api/member/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idToken:t,data:e})}),n=await r.json();if(!r.ok||!n.success)throw Error(n.error||"Failed to create member");if(!n.member)throw Error("Failed to create member");return n.member},f=async(e,t,r)=>{let n=await (0,a.p)(),i=await fetch("/api/member/update",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idToken:n,memberId:e,firebaseId:r,data:t})}),s=await i.json();if(!i.ok||!s.success)throw Error(s.error||"Failed to update member");if(!s.member)throw Error("Failed to update member");return s.member},m=async(e,t,r)=>{let n,i=await (0,a.p)(),s=new FormData;s.append("file",t),s.append("name","avatar-".concat(r,"-").concat(Date.now())),i&&s.append("idToken",i);try{n=await fetch("/api/upload-photo",{method:"POST",body:s})}catch(e){throw console.error("Photo upload request error:",e),Error("Photo upload failed: ".concat(e instanceof Error?e.message:"Unknown error"))}let o=await n.json();if(!o.success||!o.photoId)throw console.error("Photo upload failed:",o.error),Error(o.error||"Failed to upload photo");return f(e,{avatar:{connect:{id:o.photoId}}},r)},g=e=>e.lastName&&e.firstName?"".concat(e.lastName).concat(e.firstName):e.lastName?e.lastName:e.firstName?e.firstName:e.email||"",y=async(e,t,r)=>{let n=await (0,a.p)();try{let i=await fetch("/api/favorites/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idToken:n,memberId:e,firebaseId:r,postId:t})}),s=await i.json();if(!i.ok||!s.success)return console.error("checkPostFavorited error:",s.error),null;return s.favoriteId||null}catch(e){return console.error("checkPostFavorited error:",e),null}},v=async(e,t,r)=>{let n=await (0,a.p)();try{let i=await fetch("/api/favorites/add",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idToken:n,memberId:e,firebaseId:r,postId:t})}),s=await i.json();if(!i.ok||!s.success)return console.error("addFavorite error:",s.error),null;return s.favoriteId||null}catch(e){return console.error("addFavorite error:",e),null}},b=async(e,t)=>{let r=await (0,a.p)();try{let n=await fetch("/api/favorites/remove",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idToken:r,favoriteId:e,firebaseId:t})}),i=await n.json();if(!n.ok||!i.success)return console.error("removeFavorite error:",i.error),!1;return!0}catch(e){return console.error("removeFavorite error:",e),!1}},w=async(e,t,r,n,i)=>{let s=await (0,a.p)();try{var o;let a=await fetch("/api/favorites/list",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idToken:s,memberId:e,firebaseId:t,take:r,skip:n,postIds:i})}),l=await a.json();if(!a.ok||!l.success)return console.error("getMemberFavorites error:",l.error),{items:[],total:0};return{items:l.favorites||[],total:null!=(o=l.total)?o:0}}catch(e){return console.error("getMemberFavorites error:",e),{items:[],total:0}}},_=async(e,t)=>{let r=await (0,a.p)();try{let n=await fetch("/api/favorites/stats",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idToken:r,memberId:e,firebaseId:t})}),i=await n.json();if(!n.ok||!i.success||!i.stats)return console.error("getMemberFavoriteStats error:",i.error),{total:0,sections:[]};return i.stats}catch(e){return console.error("getMemberFavoriteStats error:",e),{total:0,sections:[]}}},S=async(e,t,r,n)=>{let i=await (0,a.p)();try{let s=await fetch("/api/member/subscriptions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idToken:i,memberId:e,firebaseId:t,subscriptions:r,syncToMailchimp:null==n?void 0:n.syncToMailchimp,email:null==n?void 0:n.email})}),a=await s.json();if(!s.ok||!a.success)throw console.error("updateMemberSubscriptions error:",a.error),Error(a.error||"Failed to update subscriptions");return a.subscriptions||[]}catch(e){throw console.error("updateMemberSubscriptions error:",e),e}}},61838:(e,t,r)=>{"use strict";r.d(t,{U:()=>n});var n={now:function(){return(n.delegate||Date).now()},delegate:void 0}},62793:(e,t,r)=>{"use strict";r.d(t,{A:()=>h,O:()=>u});var n=r(6029),i=r(55729),s=r(22568),a=r(88177),o=r(41076),l=r(60648);let c=(0,i.createContext)({firebaseUser:null,member:null,loading:!0,error:null,needsRegistration:!1,signInWithGoogle:async()=>!1,signInWithFacebook:async()=>!1,signInWithApple:async()=>!1,signInWithEmail:async()=>!1,signUpWithEmail:async()=>null,signOut:async()=>{},checkEmailExists:async()=>!1,sendPasswordReset:async()=>!1,clearError:()=>{},refreshMember:async()=>{}}),u=e=>{let{children:t}=e,[r,u]=(0,i.useState)(null),[h,d]=(0,i.useState)(null),[p,f]=(0,i.useState)(!0),[m,g]=(0,i.useState)(null),[y,v]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=(0,o.Yk)(async e=>{if(console.log("[AuthContext] onAuthChange:",(null==e?void 0:e.uid)||"null"),u(e),e){let t=await (0,l.D3)(e.uid);if(console.log("[AuthContext] Member exists (onAuthChange):",t),t){let t=await (0,l.sP)(e.uid);console.log("[AuthContext] Got member:",!!t),d(t),v(!1)}else console.log("[AuthContext] No member, needs registration"),v(!0),d(null)}else d(null),v(!1);console.log("[AuthContext] Setting loading to false"),f(!1)});return()=>e()},[]);let b=(0,i.useCallback)(()=>{g(null)},[]),w=(0,i.useCallback)(async()=>
13{if(r){let e=await (0,l.sP)(r.uid);d(e),e&&v(!1)}},[r]),_=async e=>{var t;let r=e&&"object"==typeof e&&"customData"in e?null==(t=e.customData)?void 0:t.email:null;if(!r)return null;try{let e=await (0,o.yA)(r);if(e.length>0){let t=(0,s.xr)(e[0]);return"æ¤ email å·²ç¶è¨»åéï¼è«é¸æä»¥ ".concat(t," 帳èç»å
¥")}}catch(e){}return"æ¤ email å·²ç¶ä½¿ç¨å
¶ä»æ¹å¼è¨»åéï¼è«ä½¿ç¨åç»å
¥æ¹å¼ç»å
¥"},S=(0,i.useCallback)(async()=>{try{g(null);let e=await (0,o.G6)();if(!await (0,l.D3)(e.user.uid))return v(!0),!1;return!0}catch(t){console.error("[AuthContext] Google sign-in error:",t);let e=t&&"object"==typeof t&&"code"in t?t.code:"";return"auth/account-exists-with-different-credential"===e?g(await _(t)||(0,s.DW)(e)):g((0,s.DW)(e)),!1}},[]),E=(0,i.useCallback)(async()=>{try{g(null);let e=await (0,o.zo)();if(!await (0,l.D3)(e.user.uid))return v(!0),!1;return!0}catch(t){console.error("[AuthContext] Facebook sign-in error:",t);let e=t&&"object"==typeof t&&"code"in t?t.code:"";return"auth/account-exists-with-different-credential"===e?g(await _(t)||(0,s.DW)(e)):g((0,s.DW)(e)),!1}},[]),I=(0,i.useCallback)(async()=>{try{g(null);let e=await (0,o.$n)();if(!await (0,l.D3)(e.user.uid))return v(!0),!1;return!0}catch(t){console.error("[AuthContext] Apple sign-in error:",t);let e=t&&"object"==typeof t&&"code"in t?t.code:"";return"auth/account-exists-with-different-credential"===e?g(await _(t)||(0,s.DW)(e)):g((0,s.DW)(e)),!1}},[]),k=(0,i.useCallback)(async(e,t)=>{try{return g(null),await (0,o.Ru)(e,t),!0}catch(r){console.error("[AuthContext] Email sign-in error:",r);let e=r&&"object"==typeof r&&"code"in r?r.code:"",t=(0,s.DW)(e);
13return console.error("[AuthContext] Error code:",e,"| Message:",t),g(t),!1}},[]),T=(0,i.useCallback)(async(e,t)=>{try{g(null);let r=await (0,o.bk)(e,t);return v(!0),r.user}catch(r){console.error("[AuthContext] Email sign-up error:",r);let e=r&&"object"==typeof r&&"code"in r?r.code:"",t=(0,s.DW)(e);return console.error("[AuthContext] Error code:",e,"| Message:",t),g(t),null}},[]),x=(0,i.useCallback)(async()=>{try{await (0,o.CI)(),d(null),v(!1),a.T8("logout")}catch(r){console.error("[AuthContext] Sign-out error:",r);let e=r&&"object"==typeof r&&"code"in r?r.code:"",t=(0,s.DW)(e);console.error("[AuthContext] Error code:",e,"| Message:",t),g(t)}},[]),O=(0,i.useCallback)(async e=>{try{return await (0,o.Nq)(e)}catch(e){return!1}},[]),C=(0,i.useCallback)(async e=>{try{return g(null),await (0,o.hE)(e),!0}catch(r){console.error("[AuthContext] Password reset error:",r);let e=r&&"object"==typeof r&&"code"in r?r.code:"",t=(0,s.DW)(e);return console.error("[AuthContext] Error code:",e,"| Message:",t),g(t),!1}},[]),A=(0,i.useMemo)(()=>({firebaseUser:r,member:h,loading:p,error:m,needsRegistration:y,signInWithGoogle:S,signInWithFacebook:E,signInWithApple:I,signInWithEmail:k,signUpWithEmail:T,signOut:x,checkEmailExists:O,sendPasswordReset:C,clearError:b,refreshMember:w}),[r,h,p,m,y,S,E,I,k,T,x,O,C,b,w]);return(0,n.jsx)(c.Provider,{value:A,children:t})},h=c},62927:(e,t,r)=>{"use strict";var n;r.d(t,{p:()=>n}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error",e[e.streaming=9]="streaming"}(n||(n={}))},64526:(e,t,r)=>{"use strict";r.d(t,{l:()=>i});var n=r(38937);function i(e,t){return(0,n.o)(e,t,t.variables&&{variables:(0,n.o)({...e&&e.variables,...t.variables})})}},64902:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(82439);let i=(0,n.n)(()=>globalThis)||(0,n.n)(()=>window)||(0,n.n)(()=>self)||(0,n.n)(()=>global)||(0,n.n)(function(){return n.n.constructor("return this")()})},66316:e=>{e.exports={style:{fontFamily:"'Noto Sans TC', 'Noto Sans TC Fallback', PingFang TC, Microsoft JhengHei, å¾®è»æ£é»é«, sans-serif",fontStyle:"normal"},className:"__className_db15d2",variable:"__variable_db15d2"}},67051:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.Ay=void 0;var i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=a?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(i,o,l):i[o]=e[o]}return i.default=e,r&&r.set(e,i),i}(r(3107));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}i.GA4,t.Ay=i.default},70177:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i});var n=r(24772);function i(e){if(!n.$s||!n.t_||!e)return e;let t="".concat(n.$s,"/images/"),r=JSON.stringify(e);return r.includes(t)?JSON.parse(r.replaceAll(t,"".concat(n.t_,"/images/"))):e}},71198:(e,t,r)=>{"use strict";function n(e,t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var s=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(s),!i)return s}r.d(t,{N:()=>n})},71960:(e,t,r)=>{"use strict";function n(e,t){if(!e)throw Error(t)}r.d(t,{U:()=>n})},72269:(e,t,r)=>{"use strict";r.d(t,{Y:()=>s,l:()=>a});var n=r(42077),i=null;function s(e){if(n.$.useDeprecatedSynchronousErrorHandling){var t=!i;if(t&&(i={errorThrown:!1,error:null}),e(),t){var r=i,s=r.errorThrown,a=r.error;if(i=null,s)throw a}}else e()}function a(e){n.$.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=e)}},73551:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n,i=r(55729);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
13).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let a=function(e){return i.createElement("svg",s({width:209,height:43,viewBox:"0 0 209 43",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=i.createElement("g",{fill:"#388A48"},i.createElement("path",{d:"M62.258 20.429c-2.176.9-4.048 1.673-6.5 2.547l-.45-2.248c.8-.276 1.651-.524 2.474-.8v-5.273h-1.876v-1.972h1.876V8.086h-2.276V6.114h6.623v1.972h-2.277v4.597h2.001v1.972h-2v4.597a66.805 66.805 0 0 0 2.276-.873l.124 2.05h.005Zm11.95-1.25 1.274 1.025c-.8.772-1.674 1.6-2.474 2.248.924.8 2.051 1.475 3.174 1.898l-1.201 1.876c-3.15-1.448-5.373-3.774-6.55-6.822-.423.45-.925.9-1.398 1.3v2.874c1.099-.175 2.198-.4 3.325-.648l.05 1.797c-1.747.552-4.7 1.076-7.3 1.522l-.597-1.972c.8-.102 1.6-.198 2.401-.327v-1.774c-1.049.597-2.199 1.149-3.45 1.7l-.998-1.847c2.176-.8 4.076-1.747 5.501-2.846h-2.898v-4.822h11.426v4.822h-.276l-.009-.005Zm-12.3-5.82v-1.922h13.625v1.922H61.908Zm.874-2.924V5.59H74.83v4.845H62.782Zm2.075-1.623h1.398V7.263h-1.398v1.55Zm.248 8.716h7.3V15.98h-7.3v1.55Zm2.953-8.716h1.399V7.263h-1.399v1.55Zm2.374 10.367c.35.726.772 1.397 1.302 2.022.648-.574 1.347-1.25 1.973-2.023h-3.275Zm.823-11.916v1.55h1.5v-1.55h-1.5ZM89.677 20.452a59.596 59.596 0 0 1-7 2.675l-.599-2.321a61.32 61.32 0 0 0 2.7-.772v-7.222h-2.322v-2.175h2.322V4.841h2.25v5.796h1.775v-.4h3.124c-.125-.675-.327-1.397-.502-2.123h-1.9V6.289h4.927V4.615h2.373V6.29h4.899v1.825h-1.702c-.198.726-.35 1.397-.575 2.123h2.999v1.899H89.024v.676h-2v6.472c.85-.299 1.747-.625 2.575-.974l.074 2.146.004-.004Zm12.953 2.073c-.124.924-.175 1.747-.474 2.45-.4.924-1.426 1.025-3.325 1.025-2.176-.023-3.027-.4-3.027-1.898V20.98h-1.2c-.677 3.297-3.1 4.772-6.224 5.448l-1.1-2.023c2.498-.5 4.426-1.3 5.024-3.425h-2.001v-7.892H100.9v7.893H98.15v2.5c0 .4.248.524 1.049.552.823 0 1.049-.124 1.15-.501.124-.4.174-.901.197-1.724l2.075.726.009-.009Zm-10.05-6.367h5.975v-1.2H92.58v1.2Zm0 2.947h5.975v-1.25H92.58v1.25Zm5.147-10.991h-3.951c.174.648.35 1.347.501 2.123h2.852c.248-.772.45-1.498.598-2.123ZM115.551 10.858c-1.923 1.025-3.551 1.724-5.676 2.547l-.851-1.972a51.988 51.988 0 0 0 5.474-2.225l1.048 1.65h.005Zm4.627-5.87c-.174.423-.377.8-.575 1.149h7.25l1.426.901c-.502 1.15-1.049 2.1-1.702 3.346l-1.826-.776c.151-.198.326-.423.45-.7.198-.298.4-.624.525-.974h-3.248c1.173 2.4 3.349 3.223 6.026 3.95l-1.076 1.999a10.778 10.778 0 0 1-1.252-.474v9.594h-3.173c1.798.676 3.923 1.048 5.924 1.301l-1.2 2c-2.549-.423-5.451-1.324-7.199-2.372l1.127-.924h-5.327l1.201.924c-2.024 1.2-4.549 2.05-7.226 2.473l-1.224-1.972c2.024-.225 4.223-.648 6.026-1.425h-3.349V13.34h3.924l-.801-1.222c2.149-.603 4.623-1.825 5.424-4.174h-1.748c-.598.822-1.252 1.622-2.075 2.372l-1.55-1.522c1.173-.873 2.323-2.597 3.073-4.248l2.175.45v-.008Zm-10.625 2.648V5.714h5.451v1.922h-5.451Zm4.498 8.495h9.849v-1.099h-9.849v1.099Zm0 2.597h9.849V17.68h-9.849v1.048Zm0 2.648h9.849v-1.099h-9.849v1.099Zm7.401-11.313c-.924 1.498-2.373 2.574-4.199 3.273h8.698c-1.798-.726-3.376-1.798-4.499-3.273ZM135.399 10.761v-2.05h7.875v2.05h-7.875Zm12.148 2.345h2.35V7.608h-6.674v-2.1h8.901v8.545l.05 2.873c.023 2.197.198 4.62.773 5.898.074.175.152.4.35.423h.05c.152 0 .276-.152.378-.524.124-.676.197-1.375.275-2.299l1.776 1.2c-.198 1.347-.423 2.423-.8 3.296-.276.699-.953 1.076-1.624 1.076-.575 0-1.477-.423-2.001-1.375-.998-1.673-1.302-4.298-1.398-7.143a58.932 58.932 0 0 1-.051-2.322h-2.373c-.152 4.97-.824 7.971-3.05 11.318l-1.877-1.448v.997h-2.148v-.726h-2.199v1.048h-2.102v-8.017h6.449v6.597c2.125-2.873 2.627-5.921 2.751-9.769h-2.277v-2.05h2.3V8.284h2.176v4.822h-.005Zm-11.325.777v-1.95h6.251v1.95h-6.251Zm0 3.172v-1.972h6.251v1.972h-6.251Zm.028-9.544v-2h6.297v2h-6.297Zm2.001 15.915h2.199v-3.121h-2.199v3.121ZM170.771 26.3v-7.494h-5.174v1.425h-2.425V8.914h7.599V4.666h2.526v4.248h7.999v11.193h-2.475v-1.3h-5.524v7.492h-2.526Zm-5.174-9.521h5.174v-5.87h-5.174v5.87Zm7.672-5.87v5.87h5.547v-5.87h-5.547ZM192.896 14.108c-.299 3.121-.901 6.022-1.973 8.744l-2.226-.998c1.099-2.322 1.725-5.696 1.922-8.146l2.277.4Zm12.723 6.395c-.152 1.397-.501 3.222-.975 4.045-.501.726-1.026 1.25-5.074 1.25-4.875 0-5.501-.524-5.501-2.524V10.008h2.401v12.315c0 .947.299 1.223 3.174 1.223 2.452 0 2.7-.124 3.073-.777.299-.524.423-1.95.524-3.15l2.374.874.004.01Zm-5.175-9.944c-1.623-1.521-3.049-2.721-4.848-3.82l1.55-1.747c1.551.952 3.699 2.473 5.051 3.646l-1.748 1.921h-.005Zm6.298 10.895c-1.049-2.648-2.351-5.346-3.975-7.668l2.125-1.149c1.528 2.35 3.073 5.07 4.099 7.594l-2.249 1.223ZM59.627 31.567h-3.068v1.84h2.976v1.084h-2.976v2.556h3.068v1.085h-4.223v-7.645h4.223v1.085-.
13005ZM60.929 33.305h1.117v.446c.391-.386.828-.58 1.316-.58.561 0 .998.175 1.31.53.272.298.406.79.406 1.47v2.956H63.96v-2.694c0-.473-.065-.804-.198-.983-.129-.184-.363-.276-.704-.276-.368 0-.63.124-.786.368-.152.239-.23.661-.23 1.264v2.326h-1.118V33.31l.005-.005ZM66.94 33.305l1.247 2.708 1.242-2.708h1.256l-2.507 5.153-2.489-5.153H66.94ZM71.269 31.3c0-.192.069-.362.212-.505a.695.695 0 0 1 .51-.211c.198 0 .373.069.515.211a.68.68 0 0 1 .212.51.697.697 0 0 1-.212.515.68.68 0 0 1-.51.212.698.698 0 0 1-.515-.212.707.707 0 0 1-.212-.52Zm1.283 2.005v4.822H71.44v-4.822h1.113ZM73.964 33.305h1.114v.432c.206-.216.386-.363.542-.441.161-.083.355-.124.575-.124.295 0 .603.096.92.29l-.51 1.02c-.212-.152-.419-.23-.621-.23-.608 0-.911.46-.911 1.374v2.501H73.96v-4.822h.004ZM77.442 35.682c0-.7.248-1.288.75-1.78.496-.487 1.108-.73 1.821-.73.713 0 1.33.248 1.83.74.498.492.746 1.094.746 1.811 0 .717-.248 1.328-.75 1.816-.501.487-1.117.726-1.849.726-.731 0-1.33-.248-1.817-.745-.487-.487-.731-1.103-.731-1.843v.005Zm1.14.023c0 .482.13.864.387 1.144.262.285.612.428 1.044.428.432 0 .787-.143 1.044-.423.262-.28.391-.657.391-1.126 0-.47-.129-.842-.39-1.122-.263-.285-.613-.428-1.045-.428-.432 0-.773.143-1.035.428-.262.285-.395.648-.395 1.099ZM83.766 33.305h1.118v.446c.391-.386.828-.58 1.316-.58.561 0 .998.175 1.31.53.272.298.405.79.405 1.47v2.956h-1.117v-2.694c0-.473-.065-.804-.198-.983-.129-.184-.363-.276-.704-.276-.368 0-.63.124-.786.368-.152.239-.23.661-.23 1.264v2.326h-1.118V33.31l.004-.005ZM89.332 33.305h1.113v.446c.217-.225.4-.377.552-.455.161-.083.364-.124.608-.124.542 0 .975.239 1.292.712.35-.473.823-.712 1.421-.712 1.086 0 1.629.657 1.629 1.976v2.98h-1.118v-2.68c0-.465-.055-.791-.17-.98-.115-.193-.304-.294-.57-.294-.309 0-.53.115-.672.345-.143.23-.212.602-.212 1.112v2.492h-1.117V35.46c0-.86-.249-1.287-.746-1.287-.312 0-.542.12-.685.35-.143.234-.216.601-.216 1.107v2.492h-1.113V33.3l.004.005ZM101.752 35.98h-3.46c.028.396.157.713.387.947.23.23.52.345.879.345.275 0 .506-.064.69-.197.179-.134.381-.377.607-.731l.943.524a3.81 3.81 0 0 1-.46.634 2.547 2.547 0 0 1-.52.437 2.014 2.014 0 0 1-.598.248c-.216.05-.446.078-.7.078-.721 0-1.296-.23-1.733-.694-.437-.464-.654-1.08-.654-1.853 0-.772.212-1.379.635-1.852.428-.465.99-.699 1.693-.699.704 0 1.269.225 1.683.68.41.451.617 1.072.617 1.867v.262l-.009.004Zm-1.146-.91c-.156-.593-.529-.892-1.122-.892a1.3 1.3 0 0 0-.382.06 1.121 1.121 0 0 0-.575.46c-.069.11-.124.234-.156.372h2.24-.005ZM102.971 33.305h1.117v.446c.391-.386.828-.58 1.316-.58.561 0 .998.175 1.311.53.271.298.405.79.405 1.47v2.956h-1.118v-2.694c0-.473-.065-.804-.198-.983-.129-.184-.363-.276-.704-.276-.368 0-.63.124-.786.368-.152.239-.23.661-.23 1.264v2.326h-1.118V33.31l.005-.005ZM109.682 34.349v3.783h-1.113v-3.783h-.474v-1.04h.474v-1.77h1.113v1.77h.864v1.04h-.864ZM114.953 33.305h1.118v4.822h-1.118v-.506c-.46.428-.952.644-1.481.644-.667 0-1.219-.239-1.656-.722-.432-.492-.649-1.108-.649-1.843 0-.736.217-1.324.649-1.807a2.088 2.088 0 0 1 1.624-.721c.561 0 1.067.23 1.508.694v-.561h.005Zm-2.645 2.4c0 .464.124.836.373 1.13.253.295.575.442.961.442.414 0 .745-.143 1.003-.428.253-.294.382-.666.382-1.117 0-.45-.129-.823-.382-1.117a1.266 1.266 0 0 0-.989-.432c-.382 0-.704.147-.961.437-.253.294-.382.657-.382 1.09l-.005-.005ZM118.596 29.765v8.362h-1.113v-8.362h1.113ZM124.507 30.483v7.644h-1.155v-7.645h1.155ZM126.13 33.305h1.118v.446c.391-.386.828-.58 1.316-.58.561 0 .998.175 1.311.53.271.298.404.79.404 1.47v2.956h-1.117v-2.694c0-.473-.065-.804-.198-.983-.129-.184-.363-.276-.704-.276-.368 0-.63.124-.786.368-.152.239-.23.661-.23 1.264v2.326h-1.118V33.31l.004-.005ZM132.851 34.349v3.783h-1.118v-3.783h-.396v-1.04h.396v-1.861c0-.607.106-1.035.317-1.287.29-.35.713-.524 1.27-.524.198 0 .446.06.75.174v1.14l-.115-.06c-.24-.123-.437-.183-.594-.183-.197 0-.331.069-.4.211-.069.138-.106.405-.106.805v1.59h1.215v1.04h-1.215l-.004-.005ZM134.603 35.682c0-.7.249-1.288.75-1.78.497-.487 1.109-.73 1.822-.73.712 0 1.329.248 1.83.74.497.492.745 1.094.745 1.811 0 .717-.248 1.328-.749 1.816-.502.487-1.118.726-1.849.726-.732 0-1.33-.248-1.817-.745-.488-.487-.732-1.103-.732-1.843v.005Zm1.141.023c0 .482.129.864.386 1.144.263.285.612.428 1.045.428.432 0 .786-.143 1.044-.423.262-.28.391-.657.391-1.126 0-.47-.129-.842-.391-1.122-.263-.285-.612-.428-1.044-.428-.433 0-.773.143-1.035.428-.263.285-.396.648-.396 1.099ZM140.928 33.305h1.113v.432c.207-.216.386-.363.543-.441.161-.083.354-.124.575-.124.294 0 .602.096.92.29l-.511 1.02c-.211-.152-.418-.23-.621-.23-.607 0-.911.46-.911 1.374v2.501h-1.113v-4.822h.005ZM144.879 33.305h1.113v.446c.216-.225.4-.37
137.552-.455.161-.083.364-.124.607-.124.543 0 .976.239 1.293.712.35-.473.823-.712 1.421-.712 1.086 0 1.629.657 1.629 1.976v2.98h-1.118v-2.68c0-.465-.055-.791-.17-.98-.115-.193-.304-.294-.571-.294-.308 0-.529.115-.671.345-.143.23-.212.602-.212 1.112v2.492h-1.118V35.46c0-.86-.248-1.287-.745-1.287-.313 0-.543.12-.685.35-.143.234-.216.601-.216 1.107v2.492h-1.113V33.3l.004.005ZM156.461 33.305h1.118v4.822h-1.118v-.506c-.46.428-.952.644-1.481.644-.667 0-1.219-.239-1.656-.722-.432-.492-.648-1.108-.648-1.843 0-.736.216-1.324.648-1.807a2.09 2.09 0 0 1 1.624-.721c.561 0 1.067.23 1.509.694v-.561h.004Zm-2.645 2.4c0 .464.125.836.373 1.13.253.295.575.442.961.442.414 0 .746-.143 1.003-.428.253-.294.382-.666.382-1.117 0-.45-.129-.823-.382-1.117a1.266 1.266 0 0 0-.989-.432c-.382 0-.704.147-.961.437-.253.294-.382.657-.382 1.09l-.005-.005ZM160.137 34.349v3.783h-1.114v-3.783h-.473v-1.04h.473v-1.77h1.114v1.77h.864v1.04h-.864ZM161.595 31.3c0-.192.069-.362.211-.505a.696.696 0 0 1 .511-.211c.198 0 .372.069.515.211a.679.679 0 0 1 .212.51.696.696 0 0 1-.212.515.68.68 0 0 1-.511.212.699.699 0 0 1-.515-.212.71.71 0 0 1-.211-.52Zm1.283 2.005v4.822h-1.113v-4.822h1.113ZM164.06 35.682c0-.7.249-1.288.75-1.78.497-.487 1.109-.73 1.821-.73.713 0 1.33.248 1.831.74.497.492.745 1.094.745 1.811 0 .717-.248 1.328-.749 1.816-.502.487-1.118.726-1.85.726-.731 0-1.329-.248-1.816-.745-.488-.487-.732-1.103-.732-1.843v.005Zm1.141.023c0 .482.129.864.386 1.144.263.285.612.428 1.044.428.433 0 .787-.143 1.045-.423.262-.28.391-.657.391-1.126 0-.47-.129-.842-.391-1.122-.263-.285-.612-.428-1.045-.428-.432 0-.772.143-1.034.428-.263.285-.396.648-.396 1.099ZM170.389 33.305h1.118v.446c.391-.386.828-.58 1.316-.58.561 0 .998.175 1.311.53.271.298.404.79.404 1.47v2.956h-1.117v-2.694c0-.473-.065-.804-.198-.983-.129-.184-.363-.276-.704-.276-.368 0-.63.124-.786.368-.152.239-.23.661-.23 1.264v2.326h-1.118V33.31l.004-.005ZM184.948 30.896v1.365c-.667-.556-1.357-.836-2.07-.836-.787 0-1.449.28-1.987.846-.543.56-.814 1.245-.814 2.06 0 .813.271 1.48.814 2.031a2.684 2.684 0 0 0 1.991.827c.405 0 .75-.064 1.035-.197.157-.065.322-.156.493-.267.17-.11.349-.248.538-.404v1.393a4.18 4.18 0 0 1-2.079.56c-1.095 0-2.029-.381-2.802-1.144-.768-.768-1.154-1.697-1.154-2.782 0-.974.322-1.843.966-2.606.791-.933 1.817-1.402 3.077-1.402.685 0 1.352.188 1.992.56v-.004ZM190.587 35.98h-3.459c.028.396.156.713.386.947.23.23.52.345.879.345.276 0 .506-.064.69-.197.179-.134.382-.377.607-.731l.943.524c-.147.248-.299.46-.46.634a2.547 2.547 0 0 1-.52.437 2.004 2.004 0 0 1-.598.248c-.216.05-.446.078-.699.078-.722 0-1.297-.23-1.734-.694-.437-.464-.653-1.08-.653-1.853 0-.772.212-1.379.635-1.852.427-.465.989-.699 1.692-.699.704 0 1.27.225 1.684.68.409.451.616 1.072.616 1.867v.262l-.009.004Zm-1.145-.91c-.157-.593-.529-.892-1.123-.892-.133 0-.262.023-.381.06a1.112 1.112 0 0 0-.575.46c-.069.11-.125.234-.157.372h2.24-.004ZM191.806 33.305h1.118v.446c.391-.386.828-.58 1.315-.58.562 0 .998.175 1.311.53.272.298.405.79.405 1.47v2.956h-1.118v-2.694c0-.473-.064-.804-.197-.983-.129-.184-.364-.276-.704-.276-.368 0-.63.124-.787.368-.152.239-.23.661-.23 1.264v2.326h-1.118V33.31l.005-.005ZM198.517 34.349v3.783h-1.113v-3.783h-.474v-1.04h.474v-1.77h1.113v1.77h.865v1.04h-.865ZM204.626 35.98h-3.459c.027.396.156.713.386.947.23.23.52.345.879.345.276 0 .505-.064.689-.197.18-.134.382-.377.608-.731l.943.524a3.81 3.81 0 0 1-.46.634 2.547 2.547 0 0 1-.52.437 2.014 2.014 0 0 1-.598.248c-.216.05-.446.078-.699.078-.722 0-1.297-.23-1.734-.694-.437-.464-.654-1.08-.654-1.853 0-.772.212-1.379.635-1.852.428-.465.989-.699 1.693-.699.704 0 1.269.225 1.683.68.41.451.617 1.072.617 1.867v.262l-.009.004Zm-1.146-.91c-.156-.593-.529-.892-1.122-.892-.133 0-.262.023-.382.06a1.116 1.116 0 0 0-.575.46 1.22 1.22 0 0 0-.156.372h2.24-.005ZM205.845 33.305h1.113v.432c.207-.216.386-.363.542-.441a1.25 1.25 0 0 1 .575-.124c.295 0 .603.096.92.29l-.51 1.02c-.212-.152-.419-.23-.621-.23-.607 0-.911.46-.911 1.374v2.501h-1.113v-4.822h.005ZM33.68 37.148c-3.506 2.726-7.714 4.165-12.167 4.165-10.934 0-19.825-8.89-19.825-19.813 0-10.922 8.891-19.813 19.825-19.813 9.269 0 17.208 6.289 19.31 15.294a.843.843 0 0 0 1.642-.381C40.184 6.826 31.568 0 21.513 0 9.65 0 0 9.644 0 21.5S9.65 43 21.513 43c4.83 0 9.397-1.563 13.201-4.523a.841.841 0 1 0-1.034-1.329Z"}),i.createElement("path",{d:"M21.463 17.505c-.598.088-1.339.474-1.633 1.14-.194.437-.313 1.19.165 1.499.985.634 2.355-1.117 2.447-1.954.028-.253-.05-.404-.12-.487-.156-.184-.464-.253-.86-.198ZM30.543 10.996c-.019-.193-.157-.372-.4-.52-.47-.285-1.298-.432-1.97-.16-.551.22-.758.625-1.016 1.135-.147.285-.313.611-.575.993-.653.947-1.38 1.485-1.858 1.834-.46.336-.787.58-.653.952.069.188.257.335.542.427.226.074.506.115.805.11.51-.009 1.086-.142 1.55-.454.603-.4.805-.947.999-1.476.193-.529.39-1.071.998-1.595.363-.313.708-.478.984-.60
137.327-.156.63-.303.598-.634l-.005-.005ZM12.833 25.725h-.004c-.695.013-1.109 1.126-1.182 1.907-.033.373-.083.878.266 1.223.217.212.516.303.824.299.363-.005.731-.143.984-.368.7-.625.368-1.733.097-2.234-.115-.207-.456-.837-.98-.827h-.005ZM29.075 28.896c-1.085-.308-2.438-.689-3.693-.04-2.632 1.355.147 2.642 1.89 2.523.93-.065 1.799-.294 2.69-.428a7.808 7.808 0 0 1-.091-1.797 13.154 13.154 0 0 0-.791-.258h-.005Z"}),i.createElement("path",{d:"M37.355 17.073a.844.844 0 0 0 1.623-.455c-2.152-7.686-8.97-13-16.959-13.225-9.995-.29-18.362 7.617-18.647 17.61A18.003 18.003 0 0 0 8.32 33.972a18.032 18.032 0 0 0 12.672 5.672 18.04 18.04 0 0 0 10.395-2.914.845.845 0 0 0 .25-1.168c-.01-.01-.02-.018-.024-.027 0 0 .005 0 .01-.005-.01-.018-.014-.032-.023-.046-.424-.782-1.298-1.853-2.204-2.078-1.564-.39-1.136 1.59-2.36 1.706-.326.032-.63-.152-.933-.276-.87-.35-1.882-.203-2.723.211-.897.442-2.18 1.582-3.027 2.878a16.344 16.344 0 0 1-10.8-5.107 16.352 16.352 0 0 1-4.122-7.778c.847-.529 1.435-3.636 1.66-4.322.065-.202.143-.413.304-.551.212-.175.53-.17.778-.06.248.115.446.317.62.529.889 1.062 1.422 2.358 2.462 3.296.234.211.506.418.823.446.796.069 1.223-.984 1.067-1.77-.156-.786-.62-1.522-.552-2.322.078-.924.865-1.64 1.707-2.032.841-.39 1.77-.547 2.622-.914.85-.368 1.665-1.035 1.817-1.95.17-1.048-.539-2.27.11-3.116.648-.841 1.936-.529 2.824-.86 1.127-.423 2.093-1.49 2.429-2.634.069-.234.12-.478.193-.712.06-.18.138-.354.253-.506.998-1.296 3.215 1.89 3.602-.446.036-.23.046-.446.036-.653A16.358 16.358 0 0 1 37.37 17.07l-.014.004Z"}),i.createElement("path",{d:"M42.161 19.519a6.652 6.652 0 0 0-8.744 3.443l-1.757 4.04c-1.462 3.361.083 7.278 3.445 8.74a6.652 6.652 0 0 0 8.745-3.444l1.757-4.04c1.462-3.36-.083-7.277-3.446-8.74Zm1.9 8.067-1.757 4.041a4.964 4.964 0 0 1-6.522 2.57 4.959 4.959 0 0 1-2.572-6.519l1.758-4.04c.975-2.244 3.417-3.393 5.717-2.832l-.442 1.02a.44.44 0 0 1-.367.267 2.458 2.458 0 0 0-2.162 1.48l-.368.85a2.455 2.455 0 0 0 .395 2.589c.106.124.12.299.055.45l-.423.97c-.165.386-.06.855.295 1.085a.845.845 0 0 0 1.237-.372l.441-1.012a.44.44 0 0 1 .369-.266 2.462 2.462 0 0 0 2.161-1.476l.368-.85a2.457 2.457 0 0 0-.395-2.588.43.43 0 0 1-.055-.45l.441-1.021a4.958 4.958 0 0 1 1.826 6.114v-.01Zm-3.371-2.73-.368.85a.782.782 0 0 1-1.146.34c-.326-.211-.428-.648-.271-1.002l.336-.772c.156-.359.542-.584.92-.487.478.12.717.634.529 1.07Z"}))))}},74079:(e,t,r)=>{"use strict";function n(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}r.d(t,{o:()=>n})},78841:(e,t,r)=>{"use strict";r.d(t,{r:()=>n});let n="4.0.13"},81278:(e,t,r)=>{e.exports=r(77006)},82203:(e,t,r)=>{e.exports=r(50123)},82439:(e,t,r)=>{"use strict";function n(e){try{return e()}catch{}}r.d(t,{n:()=>n})},83148:(e,t,r)=>{"use strict";r.d(t,{p:()=>i});var n=r(53614);async function i(){try{let e=n.j.currentUser;if(!e)return null;return await e.getIdToken()}catch(e){return console.error("[getIdToken] Failed to get ID token:",e),null}}},83604:(e,t,r)=>{"use strict";r.d(t,{DY:()=>s,Sk:()=>n,kj:()=>a,r7:()=>i});let n="1200px",i=3,s=6e4,a=1e4},84595:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>Z});var n=r(6029),i=r(55729),s=r(59789),a=r(45647);let o=({client:e,children:t})=>{let r=(0,a.l)(),n=i.useContext(r),o=i.useMemo(()=>({...n,client:e||n.client}),[n,e]);return(0,s.V1)(o.client,38),i.createElement(r.Provider,{value:o},t)};var l=r(66316),c=r.n(l),u=r(41735),h=r(36484),d=r(24304),p=r(83604),f=r(25237),m=r(29152),g=r(73551),y=r(86205);let v=u.default.footer.withConfig({displayName:"footer__FooterContainer",componentId:"sc-cee360f8-0"})(["background-color:",";padding:36px 24px 24px;@media (min-width:","px){grid-template-columns:repeat(4,1fr);row-gap:0;column-gap:30px;}@media (min-width:","px){column-gap:64px;}"],e=>{let{theme:t}=e;return t.colors.grayscale[95]},e=>{let{theme:t}=e;return t.mediaSize.md},e=>{let{theme:t}=e;return t.mediaSize.xl}),b=u.default.div.withConfig({displayName:"footer__Container",componentId:"sc-cee360f8-1"})(["max-width:",";margin:0 auto;"],p.Sk),w=u.default.div.withConfig({displayName:"footer__TopSection",componentId:"sc-cee360f8-2"})(["display:flex;flex-direction:column;gap:2rem;margin-bottom:2rem;justify-content:center;align-items:center;@media (min-width:","px){flex-direction:row;justify-content:space-between;align-items:flex-start;}"],e=>{let{theme:t}=e;return t.mediaSize.md}),_=u.default.div.withConfig({displayName:"footer__LeftSection",componentId:"sc-cee360f8-3"})(["display:flex;flex-direction:column;gap:27px;@media (min-width:","px){flex-direction:column;align-items:center;gap:11px;}@media (min-width:","px){flex-direction:row;gap:51px;}"],e=>{let{theme:t}=e;return t.mediaSize.md},e=>{let{theme:t}=e;return t.mediaSize.xl}),S=u.default.div.withConfig({displayName:"footer__Logo",componentId:"sc-cee360f8-4"})(["display:flex;align-items:center;gap:0.75rem;flex-shrink:0;svg{width:209px;height:auto;}"]),E=u.default.div.withConfig({displayName:"footer__ActionButtons",componentId:"sc-cee360f8-5"})(["display:flex;gap:18px;flex-wrap:wrap;flex-direction:row;@media (min-width:","px){flex-direction:row;}"],e=>{let{theme:t}=e;return t.mediaSize.md}),I=u.default.button.withConfig({displayName:"footer__Button",componentId:"sc-cee360f8-6"})(["background:#fff;border:1px solid ",";color:",";padding:5.5px 12px;border-radius:6px;font-size:14px;line-height:1.5;font-weight:500;cursor:pointer;transition:all 0.3s ease;&:hover{background-color:",";color:white;}"],e=>{let{theme:t}=e;return t.colors.primary[40]},e=>{let{theme:t}=e;return t.colors.primary[40]},e=>{let{theme:t}=e;return t.colors.primary[40]}),k=u.default.div.withConfig({displayName:"footer__NavigationSection",componentId:"sc-cee360f8-7"})(["display:grid;grid-template-columns:repeat(3,1fr);column-gap:20px;@media (min-width:","px){grid-template-columns:repeat(4,1fr);row-gap:0;column-gap:30px;}@media (min-width:","px){column-gap:64px;}"],e=>{let{theme:t}=e;return t.mediaSize.md},e=>{let{theme:t}=e;return t.mediaSize.xl}),T=u.default.a.withConfig({displayName:"footer__NavLink",componentId:"sc-cee360f8-8"})(["display:flex;flex-direction:column;justify-content:flex-start;align-items:center;flex-wrap:nowrap;white-space:nowrap;color:",";font-size:14px;line-height:2;font-weight:500;text-decoration:none;cursor:pointer;&:hover{color:",";}@media (min-width:","px){font-size:14px;align-items:flex-start;}"],e=>{let{theme:t}=e;return t.colors.grayscale[40]},e=>{let{theme:t}=e;return t.colors.primary[20]},e=>{let{theme:t}=e;return t.mediaSize.md}),x=u.default.hr.withConfig({displayName:"footer__Divider",componentId:"sc-cee360f8-9"})(["border:none;border-top:1px solid ",";margin:31px 16px 18px 16px;@media (min-width:","px){margin-left:0;margin-right:0;}"],e=>{let{theme:t}=e;return t.colors.grayscale[60]},e=>{let{theme:t}=e;return t.mediaSize.md}),O=u.default.div.withConfig({displayName:"footer__BottomSection",componentId:"sc-cee360f8-10"})(["display:flex;flex-direction:column;gap:1.5rem;@media (min-width:","px){flex-direction:row;justify-content:space-between;align-items:flex-start;}"],e=>{let{theme:t}=e;return t.mediaSize.md}),C=u.default.div.withConfig({displayName:"footer__CopyrightSection",componentId:"sc-cee360f8-11"})(["display:flex;flex-direction:column;align-items:center;gap:8px;@media (min-width:","px){align-items:flex-start;}"],e=>{let{theme:t}=e;return t.mediaSize.md}),A=u.default.p.withConfig({displayName:"footer__CopyrightText",componentId:"sc-cee360f8-12"})(["color:",";font-size:12px;line-height:1.25;font-weight:400;letter-spacing:0;margin:0;"],e=>{let{theme:t}=e;return t.colors.grayscale[40]}),N=u.default.div.withConfig({displayName:"footer__ContactSection",componentId:"sc-cee360f8-13"})(["display:flex;flex-direction:column;gap:4px;text-align:center;@media (min-width:","px){text-align:left;}"],e=>{let{theme:t}=e;return t.mediaSize.md}),P=u.default.p.withConfig({displayName:"footer__ContactText",componentId:"sc-cee360f8-14"})(["color:",";font-size:12px;line-height:1.5;margin:0;a{color:",";text-decoration:none;&:hover{color:",";}}"],e=>{let{theme:t}=e;return t.colors.grayscale[40]},e=>{let{theme:t}=e;return t.colors.grayscale[40]},e=>{let{theme:t}=e;return t.colors.primary[40]}),R=u.default.div.withConfig({displayName:"footer__SocialSection",componentId:"sc-cee360f8-15"})(["display:flex;align-items:center;justify-content:center;gap:12px;@media (min-width:","px){justify-content:flex-end;}"],e=>{let{theme:t}=e;return t.mediaSize.md}),D=u.default.a.withConfig({displayName:"footer__SocialLink",componentId:"sc-cee360f8-16"})(["display:flex;align-items:center;justify-content:center;width:24px;height:24px;color:",";transition:color 0.3s ease;&:hover{color:",";}svg{width:24px;height:24px;}"],e=>{let{theme:t}=e;return t.colors.grayscale[40]},e=>{let{theme:t}=e;return t.colors.primary[40]}),j=()=>{let[e,t]=(0,i.useState)(!1),{siteConfigs:r}=(0,m.po)(),s=r.find(e=>"1"===e.id),a=(null==s?void 0:s.content)||"",o=r.find(e=>"3"===e.id),l=(null==o?void 0:o.content)||"";return(0,n.jsxs)(v,{children:[(0,n.jsxs)(b,{children:[(0,n.jsxs)(w,{children:[(0,n.jsxs)(_,{children:[(0,n.jsx)(S,{children:(0,n.jsx)(g.A,{})}),(0,n.jsxs)(E,{children:[(0,n.jsx)(I,{onClick:()=>t(!0),children:"è¨é±é»åå ±"}),(0,n.jsx)(I,{as:"a",href:l,target:"_blank",rel:"noopener noreferrer",onClick:()=>(0,y.v)("footer"),children:"ææ¬¾æ¯æ"})]})]}),(0,n.jsx)(k,{children:[[{label:"ç°å¢å¾µæ",href:"/job"},{label:"æ´»å",href:"/event"},{label:"éæ¼æå",href:"/about"},{label:"About us",href:"/about-en"}],[{label:"編輯室èªå¾å
¬ç´",href:"/editorial-guidelines"},{label:"ç¶²ç«ææ¬æ¢æ¬¾",href:"/copyright"},{label:"常è¦åé¡",href:"/faq"},{label:"åä½åªé«",href:"/media-partners"}],[{label:"æç¨¿é ç¥",href:"/submission-guidelines"},{label:"é±ç§æ¬æ¿ç",href:"/privacy"},{label:"ç²çç´é",href:"/awards"}
13,{label:"æè¦åé¥",href:"https://forms.gle/5e4hQsSJcSxtyJkF7"}]].map((e,t)=>e.map((e,r)=>(0,n.jsx)(T,{href:e.href,target:e.href.startsWith("http")?"_blank":void 0,rel:e.href.startsWith("http")?"noopener noreferrer":void 0,children:e.label},"".concat(t,"-").concat(r))))})]}),(0,n.jsx)(x,{}),(0,n.jsxs)(O,{children:[(0,n.jsxs)(C,{children:[(0,n.jsx)(A,{children:"\xa9 Copyright ç°å¢è³è¨ä¸å¿ãèªç¶ä¿è²èç°å¢è³è¨åºéæ çæ¬ææ"}),(0,n.jsxs)(A,{children:["å
¬çå¸ååèï¼",a]})]}),(0,n.jsxs)(N,{children:[(0,n.jsxs)(P,{children:["æåä¿¡ç®±ï¼",(0,n.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"})]}),(0,n.jsxs)(P,{children:["æç¨¿ä¿¡ç®±ï¼",(0,n.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"})]})]}),(0,n.jsxs)(N,{children:[(0,n.jsx)(P,{children:"客æé»è©±ï¼070-10101-666ï¼02-2910-6000"}),(0,n.jsx)(P,{children:"å°åï¼231023æ°å叿°åºåæ°æ¬è·¯48è3æ¨ï¼è¿æ·éå¤§åªæç«1èåºå£ï¼"})]}),(0,n.jsxs)(R,{children:[(0,n.jsx)(D,{href:f.w.facebook,target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook",children:(0,n.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,n.jsx)("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})})}),(0,n.jsx)(D,{href:f.w.x,target:"_blank",rel:"noopener noreferrer","aria-label":"X (Twitter)",children:(0,n.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,n.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}),(0,n.jsx)(D,{href:f.w.instagram,target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",children:(0,n.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,n.jsx)("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"})})})]})]})]}),(0,n.jsx)(d.A,{isOpen:e,onClose:()=>t(!1)})]})};var M=r(82203),F=r.n(M);function L(e){return"".concat("einfo2026",".").concat(e)}let V=u.default.div.withConfig({displayName:"gdpr-control__Container",componentId:"sc-99d80c35-0"})(["position:fixed;display:flex;flex-direction:column;width:100%;left:0;bottom:0;font-size:15px;line-height:1.5;letter-spacing:2.5px;border-top-left-radius:2px;border-top-left-radius:2px;overflow:hidden;z-index:",";","{flex-direction:row;font-size:18px;}"],e=>{let{theme:t}=e;return t.zIndex.top},e=>{let{theme:t}=e;return t.breakpoint.md}),U=u.default.p.withConfig({displayName:"gdpr-control__Message",componentId:"sc-99d80c35-1"})(["order:2;background-color:",";color:#fff;padding:20px;","{order:1;flex:1 1 auto;display:flex;align-items:center;}","{padding-left:60px;}a{text-decoration:underline;}"],e=>{let{theme:t}=e;return t.colors.primary[20]},e=>{let{theme:t}=e;return t.breakpoint.md},e=>{let{theme:t}=e;return t.breakpoint.xl}),z=u.default.button.withConfig({displayName:"gdpr-control__Control",componentId:"sc-99d80c35-2"})(["order:1;background-color:",";color:",";padding-top:11px;padding-bottom:11px;letter-spacing:2.5px;font-weight:900;display:flex;align-items:center;justify-content:center;width:100%;","{order:2;flex:0 0 170px;padding-top:32px;padding-bottom:32px;}p{margin-left:2.5px;}"],e=>{let{theme:t}=e;return t.colors.primary[80]},e=>{let{theme:t}=e;return t.colors.primary[40]},e=>{let{theme:t}=e;return t.breakpoint.md});function B(){let e="shouldShowGDPRControl",[t,r]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{r(function(e,t){let r=window.localStorage.getItem(L(e));return null!==r?JSON.parse(r):t}(e,!0))},[]),t)?(0,n.jsxs)(V,{children:[(0,n.jsxs)(U,{children:["æ¬ç¶²ç«ä½¿ç¨ Cookie 以åç¸éæè¡åæä¾æ¹å使ç¨è
é«é©ãé»é¸ãæç¥éäºãï¼è¦çªæééã",(0,n.jsx)(F(),{href:"/privacy",target:"_blank",rel:"noreferrer",children:"äºè§£æ´å¤"})]}),(0,n.jsx)(z,{type:"button",onClick:function(){r(!1),window.localStorage.setItem(L(e),JSON.stringify(!1))},children:(0,n.jsx)("p",{children:"æç¥éäº"})})]}):(0,n.jsx)(n.Fragment,{})}let q=(0,u.createGlobalStyle)(["picture{display:block;}a{cursor:pointer;border:none;&:focus{outline:none;}}button{&:focus{outline:none;}}button,input,optgroup,select,textarea,a{-webkit-tap-highlight-color:rgba(0,0,0,0);}h1,h2,h3,h4,h5,h6,p{word-wrap:break-word;}"]),$=(0,u.createGlobalStyle)(["/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0;}main{display:block;}h1{font-size:2em;
13margin:0.67em 0;}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace,monospace;font-size:1em;}a{background-color:transparent;}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder;}code,kbd,samp{font-family:monospace,monospace;font-size:1em;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sub{bottom:-0.25em;}sup{top:-0.5em;}img{border-style:none;}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible;}button,select{text-transform:none;}button,[type='button'],[type='reset'],[type='submit']{-webkit-appearance:button;}button::-moz-focus-inner,[type='button']::-moz-focus-inner,[type='reset']::-moz-focus-inner,[type='submit']::-moz-focus-inner{border-style:none;padding:0;}button:-moz-focusring,[type='button']:-moz-focusring,[type='reset']:-moz-focusring,[type='submit']:-moz-focusring{outline:1px dotted ButtonText;}fieldset{padding:0.35em 0.75em 0.625em;}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline;}textarea{overflow:auto;}[type='checkbox'],[type='radio']{box-sizing:border-box;padding:0;}[type='number']::-webkit-inner-spin-button,[type='number']::-webkit-outer-spin-button{height:auto;}[type='search']{-webkit-appearance:textfield;outline-offset:-2px;}[type='search']::-webkit-search-decoration{-webkit-appearance:none;}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block;}summary{display:list-item;}template{display:none;}[hidden]{display:none;}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0;}button{background-color:transparent;background-image:none;padding:0;}button:focus{outline:none;}fieldset{margin:0;padding:0;}ol,ul{list-style:none;margin:0;padding:0;}html{line-height:1.5;}*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e2e8f0;}hr{border-top-width:1px;}img{border-style:solid;}textarea{resize:vertical;}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#a0aec0;}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:#a0aec0;}input::placeholder,textarea::placeholder{color:#a0aec0;}button,[role='button']{cursor:pointer;}table{border-collapse:collapse;}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;}a{color:inherit;text-decoration:inherit;}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit;}pre,code,kbd,samp{font-family:Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace;}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle;}img,video{max-width:100%;height:auto;}"]);var W=r(62793),H=r(81278);let G="__scroll_",K={xs:0,sm:576,md:768,lg:960,xl:1200,xxl:1400},Q={mediaSize:K,breakpoint:{xs:"@media (min-width: ".concat(K.xs,"px)"),sm:"@media (min-width: ".concat(K.sm,"px)"),md:"@media (min-width: ".concat(K.md,"px)"),lg:"@media (min-width: ".concat(K.lg,"px)"),xl:"@media (min-width: ".concat(K.xl,"px)"),xxl:"@media (min-width: ".concat(K.xxl,"px)")},colors:{primary:{0:"#126020",20:"#388A48",40:"#5B9D68",60:"#8BC890",80:"#CFEDD1",95:"#F2FCF2",100:"#FFFFFF"},secondary:{0:"#B55514",20:"#DD8346",40:"#E1B596",60:"#F1D5C1",80:"#FDEADD",95:"#FFF9F5",100:"#FFFFFF"},grayscale:{0:"#232333",20:"#373740",40:"#6F6F72",60:"#A0A0A2",80:"#D3D3D3",95:"#EAEAEA",99:"#F6F6F6",100:"#FFFFFF"},error:{d:"#E73F1B",a:"#C02200",n:"#FFC4B8"}},width:{main:"1096px"},zIndex:{top:1e4,articleType:650,headerMobile:550,headerDesktop:499,maskOfPicture:10}};var J=r(88177);let Z=e=>{var t;let{Component:r,pageProps:s}=e,a=(0,h.O)();!function(){let e=(0,H.useRouter)(),t=(0,i.useRef)(!1),r=(0,i.useRef)([]);(0,i.useEffect)(()=>{"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");let n=()=>{r.current.forEach(clearTimeout),r.current=[]},i=()=>{t.current=!0},s=()=>{n();let t="".concat(G).concat(e.asPath);try{sessionStorage.setItem(t,String(window.scrollY))}catch(e){}},a=e=>{if(t.current){let t="".concat(G).concat(e),n=sessionStorage.getItem(t);if(null!==n){let e=parseInt(n,10);for(let t of[0,100,300]){let n=setTimeout(()=>{window.scrollTo(0,e)},t);r.current.push(n)}}}t.current=!1};return window.addEventListener("popstate",i),e.events.on("routeChangeStart",s),e.events.on("routeChangeComplete",a),()=>{n(),window.removeEventListener("popstate",i),e.events.off("routeChangeStart",s),e.events.off("routeChangeComplete",a)}},[e])}(),(0,i.useEffect)(()=>{J.Ts()},[]);let l=null!=(t=r.getLayout)?t:e=>e,{headerData:d,...p}=s;return(0,n.jsxs)("div",{className:"".concat(c().variable," ").concat(c().className),children:[(0,n.jsx)($,{}),(0,n.jsx)(q,{}),(0,n.jsx)(o,{client:a,children:(0,n.jsx)(u.ThemeProvider,{theme:Q,children:(0,n.jsx)(W.O,{children:(0,n.jsxs)(m.hO,{data:d,children:[l((0,n.jsx)(r,{...p})),(0,n.jsx)(j,{}),(0,n.jsx)(B,{})]})})})})]})}},84896:(e,t,r)=>{"use strict";function n(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function s(e){return e>=97&&e<=122||e>=65&&e<=90}function a(e){return s(e)||95===e}function o(e){return s(e)||i(e)||95===e}r.d(t,{i0:()=>n,un:()=>a,xr:()=>o,yp:()=>i})},86205:(e,t,r)=>{"use strict";function n(e){fetch("/api/donation-pv",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pageUrl:window.location.href,clickFrom:e})}).catch(()=>{})}r.d(t,{v:()=>n})},88177:(e,t,r)=>{"use strict";r.d(t,{Am:()=>u,BI:()=>a,Bm:()=>h,JE:()=>o,T8:()=>c,Ts:()=>s,fK:()=>l});var n=r(67051),i=r(49899);let s=()=>n.Ay.initialize(i.Zu,{gaOptions:{send_page_view:!1}}),a=(e,t,r)=>n.Ay.event({category:e,action:t,label:r}),o=(e,t)=>{var r;return n.Ay.gtag("event","page_view",{page_path:e,article_id:t.articleId,article_title:t.articleTitle,article_category:t.articleCategory,article_section:t.articleSection,article_tags:null==(r=t.articleTags)?void 0:r.join(",")})},l=(e,t)=>
13n.Ay.event({category:"Conversion",action:e,label:null==t?void 0:t.toString()}),c=(e,t)=>n.Ay.event({category:"Member",action:e,label:t}),u=(e,t,r)=>n.Ay.gtag("event","scroll_depth",{event_category:"Reading",event_label:"".concat(e,"%"),article_id:t,article_category:r}),h=(e,t)=>n.Ay.gtag("event","outbound_click",{event_category:"Outbound",event_label:e,link_text:t})},91078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];"undefined"!=typeof window&&(void 0===window.gtag&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(e=window).gtag.apply(e,r))}},91609:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(55729);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=s(e,n)),t&&(i.current=s(t,n))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93247:(e,t,r)=>{"use strict";r.d(t,{h1:()=>o,uA:()=>i});var n=r(94386);class i{constructor(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}let s="[DEFAULT]";class a{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){let t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){let e=new n.cY;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{let r=this.getOrInitializeService({instanceIdentifier:t});r&&e.resolve(r)}catch(e){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;let r=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),n=null!=(t=null==e?void 0:e.optional)&&t;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(e){if(n)return null;throw e}if(n)return null;throw Error(`Service ${this.name} is not available`)}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if("EAGER"===e.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:s})}catch(e){}for(let[e,t]of this.instancesDeferred.entries()){let r=this.normalizeInstanceIdentifier(e);try{let e=this.getOrInitializeService({instanceIdentifier:r});t.resolve(e)}catch(e){}}}}clearInstance(e=s){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){let e=Array.from(this.instances.values());await Promise.all([...e.filter(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>"_delete"in e).map(e=>e._delete())])}isComponentSet(){return null!=this.component}isInitialized(e=s){return this.instances.has(e)}getOptions(e=s){return this.instancesOptions.get(e)||{}}initialize(e={}){let{options:t={}}=e,r=this.normalizeInstanceIdentifier(e.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 n=this.getOrInitializeService({instanceIdentifier:r,options:t});for(let[e,t]of this.instancesDeferred.entries())r===this.normalizeInstanceIdentifier(e)&&t.resolve(n);return n}onInit(e,t){var r;let n=this.normalizeInstanceIdentifier(t),i=null!=(r=this.onInitCallbacks.get(n))?r:new Set;i.add(e),this.onInitCallbacks.set(n,i);let s=this.instances.get(n);return s&&e(s,n),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){let r=this.onInitCallbacks.get(t);if(r)for(let n of r)try{n(e,t)}catch(e){}}getOrInitializeService({instanceIdentifier:e,options:t={}}){var r;let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:(r=e)===s?void 0:r,options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch(e){}return n||null}normalizeInstanceIdentifier(e=s){return this.component?this.component.multipleInstances?e:s:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class o{constructor(e){this.name=e,this.providers=new Map}addComponent(e){let t=this.getProvider(e.name);if(t.isComponentSet())throw Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);let t=new a(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}},94386:(e,t,r)=>{"use strict";r.d(t,{Am:()=>C,FA:()=>k,I9:()=>A,Im:()=>x,Ku:()=>j,T9:()=>p,Tj:()=>d,Uj:()=>c,XA:()=>f,ZQ:()=>g,bD:()=>function e(t,r){if(t===r)return!0;let n=Object.keys(t),i=Object.keys(r);for(let s of n){if(!i.includes(s))return!1;let n=t[s],a=r[s];if(O(n)&&O(a)){if(!e(n,a))return!1}else if(n!==a)return!1}for(let e of i)if(!n.includes(e))return!1;return!0},c1:()=>v,cY:()=>m,eX:()=>E,g:()=>I,hp:()=>N,jZ:()=>y,lT:()=>_,lV:()=>w,sr:()=>b,tD:()=>P,u:()=>u,zW:()=>S});var n=r(33601);let i=function(e){let t=[],r=0;for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);i<128?t[r++]=i:(i<2048?t[r++]=i>>6|192:((64512&i)==55296&&n+1<e.length&&(64512&e.charCodeAt(n+1))==56320?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++n)),t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128)}return t},s=function(e){let t=[],r=0,n=0;for(;r<e.length;){let i=e[r++];if(i<128)t[n++]=String.fromCharCode(i);else if(i>191&&i<224){let s=e[r++];t[n++]=String.fromCharCode((31&i)<<6|63&s)}else if(i>239&&i<365){let s=e[r++],a=((7&i)<<18|(63&s)<<12|(63&e[r++])<<6|63&e[r++])-65536;t[n++]=String.fromCharCode(55296+(a>>10)),t[n++]=String.fromCharCode(56320+(1023&a))}else{let s=e[r++],a=e[r++];
13t[n++]=String.fromCharCode((15&i)<<12|(63&s)<<6|63&a)}}return t.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(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();let r=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let t=0;t<e.length;t+=3){let i=e[t],s=t+1<e.length,a=s?e[t+1]:0,o=t+2<e.length,l=o?e[t+2]:0,c=i>>2,u=(3&i)<<4|a>>4,h=(15&a)<<2|l>>6,d=63&l;!o&&(d=64,s||(h=64)),n.push(r[c],r[u],r[h],r[d])}return n.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(i(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):s(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();let r=t?this.charToByteMapWebSafe_:this.charToByteMap_,n=[];for(let t=0;t<e.length;){let i=r[e.charAt(t++)],s=t<e.length?r[e.charAt(t)]:0,a=++t<e.length?r[e.charAt(t)]:64,l=++t<e.length?r[e.charAt(t)]:64;if(++t,null==i||null==s||null==a||null==l)throw new o;let c=i<<2|s>>4;if(n.push(c),64!==a){let e=s<<4&240|a>>2;if(n.push(e),64!==l){let e=a<<6&192|l;n.push(e)}}}return n},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class o extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}let l=function(e){let t=i(e);return a.encodeByteArray(t,!0)},c=function(e){return l(e).replace(/\./g,"")},u=function(e){try{return a.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null},h=()=>{try{return 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__||(()=>{if(void 0===n||void 0===n.env)return;let e=n.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)})()||(()=>{let e;if("undefined"==typeof document)return;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}let t=e&&u(e[1]);return t&&JSON.parse(t)})()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},d=e=>{var t,r;return null==(r=null==(t=h())?void 0:t.emulatorHosts)?void 0:r[e]},p=()=>{var e;return null==(e=h())?void 0:e.config},f=e=>{var t;return null==(t=h())?void 0:t[`_${e}`]};class m{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,r)=>{t?this.reject(t):this.resolve(r),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,r))}}}function g(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function y(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(g())}function v(){return"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent}function b(){let e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id}function w(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function _(){let e=g();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function S(){try{return"object"==typeof indexedDB}catch(e){return!1}}function E(){return new Promise((e,t)=>{try{let r=!0,n="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(n);i.onsuccess=()=>{i.result.close(),r||self.indexedDB.deleteDatabase(n),e(!0)},i.onupgradeneeded=()=>{r=!1},i.onerror=()=>{var e;t((null==(e=i.error)?void 0:e.message)||"")}}catch(e){t(e)}})}
13class I extends Error{constructor(e,t,r){super(t),this.code=e,this.customData=r,this.name="FirebaseError",Object.setPrototypeOf(this,I.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,k.prototype.create)}}class k{constructor(e,t,r){this.service=e,this.serviceName=t,this.errors=r}create(e,...t){var r,n;let i=t[0]||{},s=`${this.service}/${e}`,a=this.errors[e],o=a?(r=a,n=i,r.replace(T,(e,t)=>{let r=n[t];return null!=r?String(r):`<${t}?>`})):"Error",l=`${this.serviceName}: ${o} (${s}).`;return new I(s,l,i)}}let T=/\{\$([^}]+)}/g;function x(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function O(e){return null!==e&&"object"==typeof e}function C(e){let t=[];for(let[r,n]of Object.entries(e))Array.isArray(n)?n.forEach(e=>{t.push(encodeURIComponent(r)+"="+encodeURIComponent(e))}):t.push(encodeURIComponent(r)+"="+encodeURIComponent(n));return t.length?"&"+t.join("&"):""}function A(e){let t={};return e.replace(/^\?/,"").split("&").forEach(e=>{if(e){let[r,n]=e.split("=");t[decodeURIComponent(r)]=decodeURIComponent(n)}}),t}function N(e){let t=e.indexOf("?");if(!t)return"";let r=e.indexOf("#",t);return e.substring(t,r>0?r:void 0)}function P(e,t){let r=new R(e,t);return r.subscribe.bind(r)}class R{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(()=>{e(this)}).catch(e=>{this.error(e)})}next(e){this.forEachObserver(t=>{t.next(e)})}error(e){this.forEachObserver(t=>{t.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,t,r){let n;if(void 0===e&&void 0===t&&void 0===r)throw Error("Missing Observer.");void 0===(n=!function(e,t){if("object"!=typeof e||null===e)return!1;for(let r of t)if(r in e&&"function"==typeof e[r])return!0;return!1}(e,["next","error","complete"])?{next:e,error:t,complete:r}:e).next&&(n.next=D),void 0===n.error&&(n.error=D),void 0===n.complete&&(n.complete=D);let i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?n.error(this.finalError):n.complete()}catch(e){}}),this.observers.push(n),i}unsubscribeOne(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(e){"undefined"!=typeof console&&console.error&&console.error(e)}})}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function D(){}function j(e){return e&&e._delegate?e._delegate:e}},98661:(e,t,r)=>{"use strict";r.d(t,{_:()=>n});let n=Symbol.for("apollo.observableQuery.variablesUnknown")},98774:(e,t,r)=>{"use strict";function n(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}r.d(t,{L:()=>n})}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(36021),t(77006))),_N_E=e.O()}]);
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.