1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{7748:function(e){var t;t=function(){var e,t,r,n,i=["navigation","request","process","log","user","state","error","manual"],o=function(e,t,r){for(var n=r,i=0,o=e.length;i<o;i++)n=t(n,e[i],i,e);return n},a=function(e,t){return o(e,function(e,r,n,i){return t(r,n,i)?e.concat(r):e},[])},s=function(e,t){return o(e,function(e,r,n,i){return!0===e||r===t},!1)},u=function(e){return"[object Array]"===Object.prototype.toString.call(e)},c=!({toString:null}).propertyIsEnumerable("toString"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);if(!c)return r;for(var n=0,i=l.length;n<i;n++)Object.prototype.hasOwnProperty.call(e,l[n])&&r.push(l[n]);return r},d=function(e,t){return void 0===e&&(e=1),void 0===t&&(t=1/0),function(r){return"number"==typeof r&&parseInt(""+r,10)===r&&r>=e&&r<=t}},p=function(e){return"function"==typeof e||u(e)&&a(e,function(e){return"function"==typeof e}).length===e.length},h=function(e){return"string"==typeof e&&!!e.length},v={},y=function(){return{unhandledExceptions:!0,unhandledRejections:!0}};v.schema={apiKey:{defaultValue:function(){return null},message:"is required",validate:h},appVersion:{defaultValue:function(){},message:"should be a string",validate:function(e){return void 0===e||h(e)}},appType:{defaultValue:function(){},message:"should be a string",validate:function(e){return void 0===e||h(e)}},autoDetectErrors:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}},enabledErrorTypes:{defaultValue:function(){return y()},message:"should be an object containing the flags { unhandledExceptions:true|false, unhandledRejections:true|false }",allowPartialObject:!0,validate:function(e){if("object"!=typeof e||!e)return!1;var t=f(e),r=f(y());return!(a(t,function(e){return s(r,e)}).length<t.length)&&!(a(f(e),function(t){return"boolean"!=typeof e[t]}).length>0)}},onError:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:p},onSession:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:p},onBreadcrumb:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:p},endpoints:{defaultValue:function(){return{notify:"https://notify.bugsnag.com",sessions:"https://sessions.bugsnag.com"}},message:"should be an object containing endpoint URLs { notify, sessions }",validate:function(e){return e&&"object"==typeof e&&h(e.notify)&&h(e.sessions)&&0===a(f(e),function(e){return!s(["notify","sessions"],e)}).length}},autoTrackSessions:{defaultValue:function(e){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}},enabledReleaseStages:{defaultValue:function(){return null},message:"should be an array of strings",validate:function(e){return null===e||u(e)&&a(e,function(e){return"string"==typeof e}).length===e.length}},releaseStage:{defaultValue:function(){return"production"},message:"should be a string",validate:function(e){return"string"==typeof e&&e.length}},maxBreadcrumbs:{defaultValue:function(){return 25},message:"should be a number â¤100",validate:function(e){return d(0,100)(e)}},enabledBreadcrumbTypes:{defaultValue:function(){return i},message:"should be null or a list of available breadcrumb types ("+i.join(",")+")",validate:function(e){return null===e||u(e)&&o(e,function(e,t){return!1===e?e:s(i,t)},!0)}},context:{defaultValue:function(){},message:"should be a string",validate:function(e){return void 0===e||"string"==typeof e}},user:{defaultValue:function(){return{}},message:"should be an object with { id, email, name } properties",validate:function(e){return null===e||e&&o(f(e),function(e,t){return e&&s(["id","email","name"],t)},!0)}},metadata:{defaultValue:function(){return{}},message:"should be an object",validate:function(e){return"object"==typeof e&&null!==e}},logger:{defaultValue:function(){},message:"should be null or an object with methods { debug, info, warn, error }",validate:function(e){return!e||e&&o(["debug","info","warn","error"],function(t,r){return t&&"function"==typeof e[r]},!0)}},redactedKeys:{defaultValue:function(){return["password"]}
1,message:"should be an array of strings|regexes",validate:function(e){return u(e)&&e.length===a(e,function(e){return"string"==typeof e||e&&"function"==typeof e.test}).length}},plugins:{defaultValue:function(){return[]},message:"should be an array of plugin objects",validate:function(e){return u(e)&&e.length===a(e,function(e){return e&&"object"==typeof e&&"function"==typeof e.load}).length}},featureFlags:{defaultValue:function(){return[]},message:'should be an array of objects that have a "name" property',validate:function(e){return u(e)&&e.length===a(e,function(e){return e&&"object"==typeof e&&"string"==typeof e.name}).length}}};var g=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},m=function(e,t){return o(e,function(e,r,n,i){return e.concat(t(r,n,i))},[])};function b(){return(b=Object.assign?Object.assign.bind():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 _=v.schema,w={releaseStage:g({},_.releaseStage,{defaultValue:function(){return/^localhost(:\d+)?$/.test(window.location.host)?"development":"production"}}),appType:b({},_.appType,{defaultValue:function(){return"browser"}}),logger:g({},_.logger,{defaultValue:function(){return"undefined"!=typeof console&&"function"==typeof console.debug?S():void 0}})},S=function(){var e={},t=console.log;return m(["debug","info","warn","error"],function(r){var n=console[r];e[r]="function"==typeof n?n.bind(console,"[bugsnag]"):t.bind(console,"[bugsnag]")}),e},E=function(){function e(e,t,r,n){void 0===n&&(n=new Date),this.type=r,this.message=e,this.metadata=t,this.timestamp=n}return e.prototype.toJSON=function(){return{type:this.type,name:this.message,timestamp:this.timestamp,metaData:this.metadata}},e}(),O={};e=function(){"use strict";function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}function r(e){return function(){return this[e]}}var n=["isConstructor","isEval","isNative","isToplevel"],i=["columnNumber","lineNumber"],o=["fileName","functionName","source"],a=n.concat(i,o,["args"]);function s(e){if(e instanceof Object)for(var r=0;r<a.length;r++)e.hasOwnProperty(a[r])&&void 0!==e[a[r]]&&this["set"+t(a[r])](e[a[r]])}s.prototype={getArgs:function(){return this.args},setArgs:function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw TypeError("Args must be an Array");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof s)this.evalOrigin=e;else if(e instanceof Object)this.evalOrigin=new s(e);else throw TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){return(this.getFunctionName()||"{anonymous}")+"("+(this.getArgs()||[]).join(",")+")"+(this.getFileName()?"@"+this.getFileName():"")+(e(this.getLineNumber())?":"+this.getLineNumber():"")+(e(this.getColumnNumber())?":"+this.getColumnNumber():"")}};for(var u=0;u<n.length;u++)s.prototype["get"+t(n[u])]=r(n[u]),s.prototype["set"+t(n[u])]=function(e){return function(t){this[e]=!!t}}(n[u]);for(var c=0;c<i.length;c++)s.prototype["get"+t(i[c])]=r(i[c]),s.prototype["set"+t(i[c])]=function(t){return function(r){if(!e(r))throw TypeError(t+" must be a Number");this[t]=Number(r)}}(i[c]);for(var l=0;l<o.length;l++)s.prototype["get"+t(o[l])]=r(o[l]),s.prototype["set"+t(o[l])]=function(e){return function(t){this[e]=String(t)}}(o[l]);return s},"function"==typeof n&&n.amd?n("stackframe",[],e):"object"==typeof O?O=e():this.StackFrame=e();var k={};t=function(e){"use strict";var t=/(^|@)\S+\:\d+/,r=/^\s*at .*(\S+\:\d+|\(native\))/m,n=/^(eval@)?(\[native code\])?$/;return{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(r))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?:\:(\d+))?(?:\:(\d+))?$/.exec(e.replace(/[\(\)]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return t.stack.split("\n").filter(function(e){return!!e.match(r)},this).map(function(t){t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var r=t.replace(/^\s+/,"").replace(/\(eval code/g,"("),n=r.match(/ (\((.+):(\d+):(\d+)\)$)/),i=(r=n?r.replace(n[0],""):r).split(/\s+/).slice(1),o=this.extractLocation(n?n[1]:i.pop());return new e({functionName:i.join(" ")||void 0,fileName:["eval","<anonymous>"].indexOf(o[0])>-1?void 0:o[0],lineNumber:o[1],columnNumber:o[2],source:t})},this)},parseFFOrSafari:function(t){return t.stack.split("\n").filter(function(e){return!e.match(n)},this).map(function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new e({functionName:t});var r=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=t.match(r),i=n&&n[1]?n[1]:void 0,o=this.extractLocation(t.replace(r,""));return new e({functionName:i,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:t})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var r=/Line (\d+).*script (?:in )?(\S+)/i,n=t.message.split("\n"),i=[],o=2,a=n.length;o<a;o+=2){var s=r.exec(n[o]);s&&i.push(new e({fileName:s[2],lineNumber:s[1],source:n[o]}))}return i},parseOpera10:function(t){for(var r=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,n=t.stacktrace.split("\n"),i=[],o=0,a=n.length;o<a;o+=2){var s=r.exec(n[o]);s&&i.push(new e({functionName:s[3]||void 0,fileName:s[2],lineNumber:s[1],source:n[o]}))}return i},parseOpera11:function(r){return r.stack.split("\n").filter(function(e){return!!e.match(t)&&!e.match(/^Error created at/)},this).map(function(t){var r,n=t.split("@"),i=this.extractLocation(n.pop()),o=n.shift()||"",a=o.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^\)]*\)/g,"")||void 0;return o.match(/\(([^\)]*)\)/)&&(r=o.replace(/^[^\(]+\(([^\)]*)\)$/,"$1")),new e({functionName:a,args:void 0===r||"[arguments not available]"===r?void 0:r.split(","),fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:t})},this)}}}
1,"function"==typeof n&&n.amd?n("error-stack-parser",["stackframe"],t):"object"==typeof k?k=t(O):this.ErrorStackParser=t(this.StackFrame);var T=k,I=function(e,t,r,n){var i,o,a,s;return JSON.stringify((i=n&&n.redactedKeys?n.redactedKeys:[],o=n&&n.redactedPaths?n.redactedPaths:[],a=[],s=0,function e(t,r){function n(){return r.length>8&&s>25e3}if(s++,r.length>20||n())return"...";if(null===t||"object"!=typeof t)return t;if(function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return!0;return!1}(a,t))return"[Circular]";if(a.push(t),"function"==typeof t.toJSON)try{s--;var u=e(t.toJSON(),r);return a.pop(),u}catch(e){return x(e)}if(t instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(t))){s--;var c=e({name:t.name,message:t.message},r);return a.pop(),c}if("[object Array]"===Object.prototype.toString.call(t)){for(var l=[],f=0,d=t.length;f<d;f++){if(n()){l.push("...");break}l.push(e(t[f],r.concat("[]")))}return a.pop(),l}var p={};try{for(var h in t)if(Object.prototype.hasOwnProperty.call(t,h)){if(function(e,t){for(var r=0,n=e.length;r<n;r++)if(0===t.indexOf(e[r]))return!0;return!1}(o,r.join("."))&&function(e,t){for(var r=0,n=e.length;r<n;r++)if("string"==typeof e[r]&&e[r].toLowerCase()===t.toLowerCase()||e[r]&&"function"==typeof e[r].test&&e[r].test(t))return!0;return!1}(i,h)){p[h]="[REDACTED]";continue}if(n()){p[h]="...";break}p[h]=e(function(e,t){try{return e[t]}catch(e){return x(e)}}(t,h),r.concat(h))}}catch(e){}return a.pop(),p}(e,[])),t,r)};function x(e){return"[Throws: "+(e?e.message:"?")+"]"}function D(e,t,r,n){if("string"==typeof r){void 0===n?n=null:null!==n&&"string"!=typeof n&&(n=I(n));var i=t[r];if("number"==typeof i){e[i]={name:r,variant:n};return}e.push({name:r,variant:n}),t[r]=e.length-1}}var j=function(e,t,r){var n=t[r];"number"==typeof n&&(e[n]=null,delete t[r])},R=function(e,t,r){if(u(t)){for(var n=0;n<t.length;++n){var i=t[n];null!==i&&"object"==typeof i&&D(e,r,i.name,i.variant)}return e}},N=function(e){return!!e&&(!!e.stack||!!e.stacktrace||!!e["opera#sourceloc"])&&"string"==typeof(e.stack||e.stacktrace||e["opera#sourceloc"])&&e.stack!==e.name+": "+e.message},C=function(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}},P=function(e,t,r){if("string"==typeof t){if(!r){delete e[t];return}"__proto__"!==t&&"constructor"!==t&&"prototype"!==t&&e[t]&&delete e[t][r]}},A=function(e,t,r,n){var i,o;if(t){if(null===r)return P(e,t);if("object"==typeof r&&(o=r),"string"==typeof r&&((i={})[r]=n,o=i),o){if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]||(e[t]={}),e[t]=g({},e[t],o)}}},F=function(e,t,r){if("string"==typeof t){if(!r)return e[t];if(e[t])return e[t][r]}},M={};r=function(e){return{backtrace:function(t){var r=[],n=10;"object"==typeof t&&"number"==typeof t.maxStackSize&&(n=t.maxStackSize);for(var i=arguments.callee;i&&r.length<n&&i.arguments;){for(var o=Array(i.arguments.length),a=0;a<o.length;++a)o[a]=i.arguments[a];/function(?:\s+([\w$]+))+\s*\(/.test(i.toString())?r.push(new e({functionName:RegExp.$1||void 0,args:o})):r.push(new e({args:o}));try{i=i.caller}catch(e){break}}return r}}},"function"==typeof n&&n.amd?n("stack-generator",["stackframe"],r):"object"==typeof M?M=r(O):this.StackGenerator=r(this.StackFrame);var q=function(){function e(t,r,n,i,o){void 0===n&&(n=[]),void 0===i&&(i=Q()),this.apiKey=void 0,this.context=void 0,this.groupingHash=void 0,this.originalError=o,this._handledState=i,this.severity=this._handledState.severity,this.unhandled=this._handledState.unhandled,this.app={},this.device={},this.request={},this.breadcrumbs=[],this.threads=[],this._metadata={},this._features=[],this._featuresIndex={},this._user={},this._session=void 0,this.errors=[z(t,r,e.__type,n)]}var t=e.prototype;return t.addMetadata=function(e,t,r){return A(this._metadata,e,t,r)},t.getMetadata=function(e,t){return F(this._metadata,e,t)},t.clearMetadata=function(e,t){return P(this._metadata,e,t)},t.addFeatureFlag=function(e,t){void 0===t&&(t=null),D(this._features,this._featuresIndex,e,t)},t.addFeatureFlags=function(e){R(this._features,e,this._featuresIndex)},t.getFeatureFlags=function(){return m(a(this._features,Boolean),function(e){var t=e.name,r=e.variant,n={featureFlag:t};return"string"==typeof r&&(n.variant=r),n})},t.clearFeatureFlag=function(e){j(this._features,this._featuresIndex,e)},t.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},t.getUser=function(){return this._user},t.setUser=function(e,t,r){this._user={id:e,email:t,name:r}},t.toJSON=function(){return{payloadVersion:"4",exceptions:m(this.errors,function(e){return g({},e,{message:e.errorMessage})}),severity:this.severity,unhandled:this._handledState.unhandled,severityReason:this._handledState.severityReason,app:this.app,device:this.device,request:this.request,breadcrumbs:this.breadcrumbs,context:this.context,groupingHash:this.groupingHash,metaData:this._metadata,user:this._user,session:this._session,featureFlags:this.getFeatureFlags()}},e}(),L=function(e){var t={file:e.fileName,method:V(e.functionName),lineNumber:e.lineNumber,columnNumber:e.columnNumber,code:void 0,inProject:void 0};return!(t.lineNumber>-1)||t.file||t.method||(t.file="global code"),t},V=function(e){return/^global code$/i.test(e)?"global code":e},Q=function(){return{unhandled:!1,severity:"warning",severityReason:{type:"handledException"}}},B=function(e){return"string"==typeof e?e:""};function z(e,t,r,n){return{errorClass:B(e),errorMessage:B(t),type:r,stacktrace:o(n,function(e,t){var r=L(t);try{if("{}"===JSON.stringify(r))return e;return e.concat(r)}catch(t){return e}},[])}}q.getStacktrace=function(e,t,r){if(N(e))return T.parse(e).slice(t);try{return a(M.backtrace(),function(e){return -1===(e.functionName||"").indexOf("StackGenerator$$")}).slice(1+r)}catch(e){return[]}},q.create=function(e,t,r,n,i,o){void 0===i&&(i=0);var a=U(e,t,n,o),s=a[0],u=a[1];try{var c=q.getStacktrace(s,u>0?1+u+i:0,1+i);l=new q(s.name,s.message,c,r,e)}catch(t){l=new q(s.name,s.message,[],r,e)}if("InvalidError"===s.name&&l.addMetadata(""+n,"non-error parameter",G(e)),s.cause){var l,f,d=m((function e(t){return t.cause?[t].concat(e(t.cause)):[t]})(s).slice(1),function(e){var t=C(e)&&N(e)?T.parse(e):[],r=U(e,!0,"error cause")[0];return"InvalidError"===r.name&&l.addMetadata("error cause",G(e)),z(r.name,r.message,q.__type,t)});(f=l.errors).push.apply(f,d)}return l};var G=function(e){return null===e?"null":void 0===e?"undefined":e},U=function(e,t,r,n){var i,o=0,a=function(e){var t="error cause"===r?"was":"received";n&&n.warn(r+" "+t+' a non-error: "'+e+'"');var i=Error(r+" "+t+' a non-error. See "'+r+'" tab for more detail.');return i.name="InvalidError",i};if(t)switch(typeof e){case"string":case"number":case"boolean":i=Error(String(e)),o+=1;break;case"function":i=a("function"),o+=2;break;case"object":null!==e&&C(e)?i=e:null!==e&&W(e)?((i=Error(e.message||e.errorMessage)).name=e.name||e.errorClass,o+=1):(i=a(null===e?"null":"unsupported object"),o+=2);break;default:i=a("nothing"),o+=2}else C(e)?i=e:(i=a(typeof e),o+=2);if(!N(i))try{throw i}catch(e){N(e)&&(i=e,o=1)}return[i,o]};q.__type="browserjs";var W=function(e){return("string"==typeof e.name||"string"==typeof e.errorClass)&&("string"==typeof e.message||"string"==typeof e.errorMessage)},K=function(e,t,r){var n=0,i=function(){if(n>=e.length)return r(null,!0);t(e[n],function(e,t){return e?r(e):!1===t?r(null,!1):void(n++,i())})};i()},$=function(e,t,r,n){K(e,function(e,n){if("function"!=typeof e)return n(null);try{if(2!==e.length){var i=e(t);if(i&&"function"==typeof i.then)return i.then(function(e){return setTimeout(function(){return n(null,e)})},function(e){setTimeout(function(){return r(e),n(null,!0)})});return n(null,i)}e(t,function(e,t){if(e)return r(e),n(null);n(null,t)})}catch(e){r(e),n(null)}},n)},J=function(e,t,r,n){for(var i=!1,o=e.slice();!i&&o.length;)try{i=!1===o.pop()(t)}catch(e){n.error("Error occurred in "+r+" callback, continuing anywayâ¦"),n.error(e)}return i},H=function(e,t){var r="000000000"+e;return r.substr(r.length-t)},X="object"==typeof window?window:self,Y=0;for(var Z in X)Object.hasOwnProperty.call(X,Z)&&Y++;var ee=H(((navigator.mimeTypes?navigator.mimeTypes.length:0)+navigator.userAgent.length).toString(36)+Y.toString(36),4),et=function(){return ee},er=0;function en(){return H((1679616*Math.random()<<0).toString(36),4)}function ei(){return"c"+new Date().getTime().toString(36)+H((er=er<1679616?er:0,++er-1).toString(36),4)+et()+(en()+en())}ei.fingerprint=et;var eo=function(){function e(){this.id=ei(),this.startedAt=new Date,this._handled=0,this._unhandled=0,this._user={},this.app={},this.device={}}var t=e.prototype;return t.getUser=function(){return this._user},t.setUser=function(e,t,r){this._user={id:e,email:t,name:r}},t.toJSON=function(){return{id:this.id,startedAt:this.startedAt,events:{handled:this._handled,unhandled:this._unhandled}}},t._track=function(e){this[e._handledState.unhandled?"_unhandled":"_handled"]+=1},e}(),ea=function(){},es=function(){function e(t,r,n,i){var o=this;void 0===r&&(r=v.schema),void 0===n&&(n=[]),this._notifier=i,this._config={},this._schema=r,this._delivery={sendSession:ea,sendEvent:ea},this._logger={debug:ea,info:ea,warn:ea,error:ea},this._plugins={},this._breadcrumbs=[],this._session=null,this._metadata={},this._featuresIndex={},this._features=[],this._context=void 0,this._user={},this._cbs={e:[],s:[],sp:[],b:[]},this.Client=e,this.Event=q,this.Breadcrumb=E,this.Session=eo,this._config=this._configure(t,n),m(n.concat(this._config.plugins),function(e){e&&o._loadPlugin(e)}),this._depth=1;var a=this,s=this.notify;this.notify=function(){return s.apply(a,arguments)}}var t=e.prototype;return t.addMetadata=function(e,t,r){return A(this._metadata,e,t,r)},t.getMetadata=function(e,t){return F(this._metadata,e,t)},t.clearMetadata=function(e,t){return P(this._metadata,e,t)},t.addFeatureFlag=function(e,t){void 0===t&&(t=null),D(this._features,this._featuresIndex,e,t)},t.addFeatureFlags=function(e){R(this._features,e,this._featuresIndex)},t.clearFeatureFlag=function(e){j(this._features,this._featuresIndex,e)},t.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},t.getContext=function(){return this._context},t.setContext=function(e){this._context=e},t._configure=function(e,t){var r=o(t,function(e,t){return t&&t.configSchema?g({},e,t.configSchema):e},this._schema),n=o(f(r),function(t,n){var i=r[n].defaultValue(e[
1n]);return void 0!==e[n]?r[n].validate(e[n])?r[n].allowPartialObject?t.config[n]=g(i,e[n]):t.config[n]=e[n]:(t.errors[n]=r[n].message,t.config[n]=i):t.config[n]=i,t},{errors:{},config:{}}),i=n.errors,a=n.config;if(r.apiKey){if(!a.apiKey)throw Error("No Bugsnag API Key set");/^[0-9a-f]{32}$/i.test(a.apiKey)||(i.apiKey="should be a string of 32 hexadecimal characters")}return this._metadata=g({},a.metadata),R(this._features,a.featureFlags,this._featuresIndex),this._user=g({},a.user),this._context=a.context,a.logger&&(this._logger=a.logger),a.onError&&(this._cbs.e=this._cbs.e.concat(a.onError)),a.onBreadcrumb&&(this._cbs.b=this._cbs.b.concat(a.onBreadcrumb)),a.onSession&&(this._cbs.s=this._cbs.s.concat(a.onSession)),f(i).length&&this._logger.warn(eu(i,e)),a},t.getUser=function(){return this._user},t.setUser=function(e,t,r){this._user={id:e,email:t,name:r}},t._loadPlugin=function(e){var t=e.load(this);return e.name&&(this._plugins["~"+e.name+"~"]=t),this},t.getPlugin=function(e){return this._plugins["~"+e+"~"]},t._setDelivery=function(e){this._delivery=e(this)},t.startSession=function(){var e=new eo;return(e.app.releaseStage=this._config.releaseStage,e.app.version=this._config.appVersion,e.app.type=this._config.appType,e._user=g({},this._user),J(this._cbs.s,e,"onSession",this._logger))?(this._logger.debug("Session not started due to onSession callback"),this):this._sessionDelegate.startSession(this,e)},t.addOnError=function(e,t){void 0===t&&(t=!1),this._cbs.e[t?"unshift":"push"](e)},t.removeOnError=function(e){this._cbs.e=a(this._cbs.e,function(t){return t!==e})},t._addOnSessionPayload=function(e){this._cbs.sp.push(e)},t.addOnSession=function(e){this._cbs.s.push(e)},t.removeOnSession=function(e){this._cbs.s=a(this._cbs.s,function(t){return t!==e})},t.addOnBreadcrumb=function(e,t){void 0===t&&(t=!1),this._cbs.b[t?"unshift":"push"](e)},t.removeOnBreadcrumb=function(e){this._cbs.b=a(this._cbs.b,function(t){return t!==e})},t.pauseSession=function(){return this._sessionDelegate.pauseSession(this)},t.resumeSession=function(){return this._sessionDelegate.resumeSession(this)},t.leaveBreadcrumb=function(e,t,r){if(e="string"==typeof e?e:"",r="string"==typeof r&&s(i,r)?r:"manual",t="object"==typeof t&&null!==t?t:{},e){var n=new E(e,t,r);if(J(this._cbs.b,n,"onBreadcrumb",this._logger)){this._logger.debug("Breadcrumb not attached due to onBreadcrumb callback");return}this._breadcrumbs.push(n),this._breadcrumbs.length>this._config.maxBreadcrumbs&&(this._breadcrumbs=this._breadcrumbs.slice(this._breadcrumbs.length-this._config.maxBreadcrumbs))}},t._isBreadcrumbTypeEnabled=function(e){var t=this._config.enabledBreadcrumbTypes;return null===t||s(t,e)},t.notify=function(e,t,r){void 0===r&&(r=ea);var n=q.create(e,!0,void 0,"notify()",this._depth+1,this._logger);this._notify(n,t,r)},t._notify=function(t,r,n){var i=this;if(void 0===n&&(n=ea),t.app=g({},t.app,{releaseStage:this._config.releaseStage,version:this._config.appVersion,type:this._config.appType}),t.context=t.context||this._context,t._metadata=g({},t._metadata,this._metadata),t._user=g({},t._user,this._user),t.breadcrumbs=this._breadcrumbs.slice(),R(t._features,this._features,t._featuresIndex),null!==this._config.enabledReleaseStages&&!s(this._config.enabledReleaseStages,this._config.releaseStage))return this._logger.warn("Event not sent due to releaseStage/enabledReleaseStages configuration"),n(null,t);var o=t.severity,a=function(e){i._logger.error("Error occurred in onError callback, continuing anywayâ¦"),i._logger.error(e)};$([].concat(this._cbs.e).concat(r),t,a,function(r,s){if(r&&a(r),!s)return i._logger.debug("Event not sent due to onError callback"),n(null,t);i._isBreadcrumbTypeEnabled("error")&&e.prototype.leaveBreadcrumb.call(i,t.errors[0].errorClass,{errorClass:t.errors[0].errorClass,errorMessage:t.errors[0].errorMessage,severity:t.severity},"error"),o!==t.severity&&(t._handledState.severityReason={type:"userCallbackSetSeverity"}),t.unhandled!==t._handledState.unhandled&&(t._handledState.severityReason.unhandledOverridden=!0,t._handledState.unhandled=t.unhandled),i._session&&(i._session._track(t),t._session=i._session),i._delivery.sendEvent({apiKey:t.apiKey||i._config.apiKey,notifier:i._notifier,events:[t]},function(e){return n(e,t)})})},e}(),eu=function(e,t){return Error("Invalid configuration\n"+m(f(e),function(r){return" - "+r+" "+e[r]+", got "+ec(t[r])}).join("\n\n"))},ec=function(e){switch(typeof e){case"string":case"number":case"object":return JSON.stringify(e);default:return String(e)}},el={},ef=["events.[].metaData","events.[].breadcrumbs.[].metaData","events.[].request"];el.event=function(e,t){var r=I(e,null,null,{redactedPaths:ef,redactedKeys:t});return r.length>1e6&&(e.events[0]._metadata={notifier:"WARNING!\nSerialized payload was "+r.length/1e6+"MB (limit = 1MB)\nmetadata was removed"},r=I(e,null,null,{redactedPaths:ef,redactedKeys:t})),r},el.session=function(e,t){return I(e,null,null)};var ed={},ep=function(e,t,r,n){var i=JSON.parse(JSON.stringify(new Date));return eh(e.endpoints[t],n.location.protocol)+"?apiKey="+encodeURIComponent(e.apiKey)+"&payloadVersion="+r+"&sentAt="+encodeURIComponent(i)},eh=(ed=function(e,t){return void 0===t&&(t=window),{sendEvent:function(r,n){void 0===n&&(n=function(){});var i=ep(e._config,"notify","4",t),o=el.event(r,e._config.redactedKeys),a=new t.XDomainRequest;a.onload=function(){n(null)},a.onerror=function(){var t=Error("Event failed to send");e._logger.error("Event failed to sendâ¦",t),o.length>1e6&&e._logger.warn("Event oversized ("+(o.length/1e6).toFixed(2)+" MB)"),n(t)},a.open("POST",i),setTimeout(function(){try{a.send(o)}catch(t){e._logger.error(t),n(t)}},0)},sendSession:function(r,n){void 0===n&&(n=function(){});var i=ep(e._config,"sessions","1",t),o=new t.XDomainRequest;o.onload=function(){n(null)},o.open("POST",i),setTimeout(function(){try{o.send(el.session(r,e._config.redactedKeys))}catch(t){e._logger.error(t),n(t)}},0)}}})._matchPageProtocol=function(e,t){return"http:"===t?e.replace(/^https:/,"http:"):e},ev=function(e,t){return void 0===t&&(t=window),{sendEvent:function(r,n){void 0===n&&(n=function(){});try{var i=e._config.endpoints.notify,o=new t.XMLHttpRequest,a=el.event(r,e._config.redactedKeys);o.onreadystatechange=function(){if(o.readyState===t.XMLHttpRequest.DONE){var r=o.status;if(0===r||r>=400){var i=Error("Request failed with status "+r);e._logger.error("Event failed to sendâ¦",i),a.length>1e6&&e._logger.warn("Event oversized ("+(a.length/1e6).toFixed(2)+" MB)"),n(i)}else n(null)}},o.open("POST",i),o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("Bugsnag-Api-Key",r.apiKey||e._config.apiKey),o.setRequestHeader("Bugsnag-Payload-Version","4"),o.setRequestHeader("Bugsnag-Sent-At",new Date().toISOString()),o.send(a)}catch(t){e._logger.error(t)}},sendSession:function(r,n){void 0===n&&(n=function(){});try{var i=e._config.endpoints.sessions,o=new t.XMLHttpRequest;o.onreadystatechange=function(){if(o.readyState===t.XMLHttpRequest.DONE){var r=o.status;if(0===r||r>=400){var i=Error("Request failed with status "+r);e._logger.error("Session failed to sendâ¦",i),n(i)}else n(null)}},o.open("POST",i),o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("Bugsnag-Api-Key",e._config.apiKey),o.setRequestHeader("Bugsnag-Payload-Version","1"),o.setRequestHeader("Bugsnag-Sent-At",new Date().toISOString()),o.send(el.session(r,e._config.redactedKeys))}catch(t){e._logger.error(t)}}}},ey=new Date,eg=function(){ey=new Date},em={name:"appDuration",load:function(e){return e.addOnError(function(e){var t=new Date;e.app.duration=t-ey},!0),{reset:eg}}},eb=function(e,t){var r="000000000"+e;return r.substr(r.length-t)},e_="object"==typeof window?window:self,ew=0;for(var eS in e_)Object.hasOwnProperty.call(e_,eS)&&ew++;var eE=eb(((navigator.mimeTypes?navigator.mimeTypes.length:0)+navigator.userAgent.length).toString(36)+ew.toString(36),4),eO=function(){return eE},ek=0;function eT(){return eb((1679616*Math.random()<<0).toString(36),4)}function eI(){return"c"+new Date().getTime().toString(36)+eb((ek=ek<1679616?ek:0,++ek-1).toString(36),4)+eO()+(eT()+eT())}eI.fingerprint=eO;var ex="bugsnag-anonymous-id",eD=function(e){try{var t=e.localStorage,r=t.getItem(ex);if(r&&/^c[a-z0-9]{20,32}$/.test(r))return r;return r=eI(),t.setItem(ex,r),r}catch(e){}},ej=function(e){var t=e.getUser();t&&t.id||e.setUser(e.device.id)},eR={load:function(e){e._sessionDelegate=eN}},eN={startSession:function(e,t){return(e._session=t,e._pausedSession=null,null===e._config.enabledReleaseStages||s(e._config.enabledReleaseStages,e._config.releaseStage))?e._delivery.sendSession({notifier:e._notifier,device:t.device,app:t.app,sessions:[{id:t.id,startedAt:t.startedAt,user:t._user}]}):e._logger.warn("Session not sent due to releaseStage/enabledReleaseStages configuration"),e},resumeSession:function(e){return e._session?e:e._pausedSession?(e._session=e._pausedSession,e._pausedSession=null,e):e.startSession()},pauseSession:function(e){e._pausedSession=e._session,e._session=null}},eC={load:function(e){e._config.collectUserIp||e.addOnError(function(e){e._user&&void 0===e._user.id&&delete e._user.id,e._user=g({i
1d:"[REDACTED]"},e._user),e.request=g({clientIp:"[REDACTED]"},e.request)})},configSchema:{collectUserIp:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}}}},eP={};eP.load=function(e){!/^(local-)?dev(elopment)?$/.test(e._config.releaseStage)&&e._isBreadcrumbTypeEnabled("log")&&m(eA,function(t){var r=console[t];console[t]=function(){for(var n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];e.leaveBreadcrumb("Console output",o(i,function(e,t,r){var n="[Unknown value]";try{n=String(t)}catch(e){}if("[object Object]"===n)try{n=JSON.stringify(t)}catch(e){}return e["["+r+"]"]=n,e},{severity:0===t.indexOf("group")?"log":t}),"log"),r.apply(console,i)},console[t]._restore=function(){console[t]=r}})};var eA=a(["log","debug","info","warn","error"],function(e){return"undefined"!=typeof console&&"function"==typeof console[e]});function eF(e,t,r){var n=e[t];if(!n)return n;var i=r(n);return e[t]=i,n}function eM(e){var t=!!e[1]&&"function"==typeof e[1].handleEvent;return{get:function(){return t?e[1].handleEvent:e[1]},replace:function(r){t?e[1].handleEvent=r:e[1]=r}}}var eq=/^\s*([^\s][\s\S]{0,139}[^\s])?\s*/,eL={};eL=function(e){return void 0===e&&(e=window),{load:function(t){if("addEventListener"in e&&t._isBreadcrumbTypeEnabled("navigation")){var r=function(e){return function(){return t.leaveBreadcrumb(e,{},"navigation")}};e.addEventListener("pagehide",r("Page hidden"),!0),e.addEventListener("pageshow",r("Page shown"),!0),e.addEventListener("load",r("Page loaded"),!0),e.document.addEventListener("DOMContentLoaded",r("DOMContentLoaded"),!0),e.addEventListener("load",function(){return e.addEventListener("popstate",r("Navigated back"),!0)}),e.addEventListener("hashchange",function(r){var n=r.oldURL?{from:eV(r.oldURL,e),to:eV(r.newURL,e),state:ez(e)}:{to:eV(e.location.href,e)};t.leaveBreadcrumb("Hash changed",n,"navigation")},!0),e.history.replaceState&&eB(t,e.history,"replaceState",e),e.history.pushState&&eB(t,e.history,"pushState",e)}}}};var eV=function(e,t){var r=t.document.createElement("A");return r.href=e,""+r.pathname+r.search+r.hash},eQ=function(e,t,r,n){var i=eV(e.location.href,e);return{title:r,state:t,prevState:ez(e),to:n||i,from:i}},eB=function(e,t,r,n){var i=t[r];t[r]=function(o,a,s){e.leaveBreadcrumb("History "+r,eQ(n,o,a,s),"navigation"),"function"==typeof e.resetEventCount&&e.resetEventCount(),e._config.autoTrackSessions&&e.startSession(),i.apply(t,[o,a].concat(void 0!==s?s:[]))}},ez=function(e){try{return e.history.state}catch(e){}},eG="request",eU={load:function(e){var t=0;e.addOnError(function(r){if(t>=e._config.maxEvents)return e._logger.warn("Cancelling event send due to maxEvents per session limit of "+e._config.maxEvents+" being reached"),!1;t++}),e.resetEventCount=function(){t=0}},configSchema:{maxEvents:{defaultValue:function(){return 10},message:"should be a positive integer â¤100",validate:function(e){return d(1,100)(e)}}}},eW={},eK=(eW={load:function(e){e.addOnError(function(e){m(o(e.errors,function(e,t){return e.concat(t.stacktrace)},[]),function(e){e.file=eK(e.file)})})}})._strip=function(e){return"string"==typeof e?e.replace(/\?.*$/,"").replace(/#.*$/,""):e},e$=function(e,t,r,n){e[0]||e.push({});var i=e[0];i.file||"string"!=typeof t||(i.file=t),!i.lineNumber&&eJ(r)&&(i.lineNumber=r),!i.columnNumber&&(eJ(n)?i.columnNumber=n:window.event&&eJ(window.event.errorCharacter)&&(i.columnNumber=window.event.errorCharacter))},eJ=function(e){return"number"==typeof e&&"NaN"!==String.call(e)},eH={},eX=g({},v.schema,w),eY={_client:null,createClient:function(e){"string"==typeof e&&(e={apiKey:e}),e||(e={});var t,r,n,i,u,c,l,f,d,p,h,v,y=new es(e,eX,[em,(void 0===t&&(t=navigator),void 0===r&&(r=window),{load:function(e){var n={locale:t.browserLanguage||t.systemLanguage||t.userLanguage||t.language,userAgent:t.userAgent};r&&r.screen&&r.screen.orientation&&r.screen.orientation.type?n.orientation=r.screen.orientation.type:r&&r.document&&(n.orientation=r.document.documentElement.clientWidth>r.document.documentElement.clientHeight?"landscape":"portrait"),e._config.generateAnonymousId&&(n.id=eD(r)),e.addOnSession(function(t){t.device=g({}
1,t.device,n),e._config.collectUserIp||ej(t)}),e.addOnError(function(t){t.device=g({},t.device,n,{time:new Date}),e._config.collectUserIp||ej(t)},!0)},configSchema:{generateAnonymousId:{validate:function(e){return!0===e||!1===e},defaultValue:function(){return!0},message:"should be true|false"}}}),(void 0===n&&(n=window),{load:function(e){e.addOnError(function(e){void 0===e.context&&(e.context=n.location.pathname)},!0)}}),(void 0===i&&(i=window),{load:function(e){e.addOnError(function(e){e.request&&e.request.url||(e.request=g({},e.request,{url:i.location.href}))},!0)}}),eU,eR,eC,eW,(void 0===u&&(u=window),void 0===c&&(c="window onerror"),{load:function(e){if(e._config.autoDetectErrors&&e._config.enabledErrorTypes.unhandledExceptions){var t=u.onerror;u.onerror=function(r,n,i,o,a){if(0===i&&/Script error\.?/.test(r))e._logger.warn("Ignoring cross-domain or eval script error. See docs: https://tinyurl.com/yy3rn63z");else{var s,u={severity:"error",unhandled:!0,severityReason:{type:"unhandledException"}};if(a)e$((s=e.Event.create(a,!0,u,c,1)).errors[0].stacktrace,n,i,o);else if("object"!=typeof r||null===r||n&&"string"==typeof n||i||o||a)e$((s=e.Event.create(r,!0,u,c,1)).errors[0].stacktrace,n,i,o);else{var l=r.type?"Event: "+r.type:"Error",f=r.message||r.detail||"";(s=e.Event.create({name:l,message:f},!0,u,c,1)).originalError=r,s.addMetadata(c,{event:r,extraParameters:n})}e._notify(s)}"function"==typeof t&&t.apply(this,arguments)}}}}),(void 0===l&&(l=window),{load:function(e){if(e._config.autoDetectErrors&&e._config.enabledErrorTypes.unhandledRejections){var t=function(t){var r,n=t.reason,i=!1;try{t.detail&&t.detail.reason&&(n=t.detail.reason,i=!0)}catch(e){}var o=e.Event.create(n,!1,{severity:"error",unhandled:!0,severityReason:{type:"unhandledPromiseRejection"}},"unhandledrejection handler",1,e._logger);i&&m(o.errors[0].stacktrace,(r=n,function(e){e.file!==r.toString()&&e.method&&(e.method=e.method.replace(/^\s+/,""))})),e._notify(o,function(e){if(C(e.originalError)&&!e.originalError.stack){var t;e.addMetadata("unhandledRejection handler",((t={})[Object.prototype.toString.call(e.originalError)]={name:e.originalError.name,message:e.originalError.message,code:e.originalError.code},t))}})};"addEventListener"in l?l.addEventListener("unhandledrejection",t):l.onunhandledrejection=function(e,r){t({detail
1:{reason:e,promise:r}})}}}}),eL(),(void 0===f&&(f=window),{load:function(e){"addEventListener"in f&&e._isBreadcrumbTypeEnabled("user")&&f.addEventListener("click",function(t){var r,n,i,o;try{(o=(i=t.target).textContent||i.innerText||"")||"submit"!==i.type&&"button"!==i.type||(o=i.value),r=(o=o.replace(eq,"$1")).length>140?o.slice(0,135)+"(...)":o,n=function e(t,r){var n=[t.tagName];if(t.id&&n.push("#"+t.id),t.className&&t.className.length&&n.push("."+t.className.split(" ").join(".")),!r.document.querySelectorAll||!Array.prototype.indexOf)return n.join("");try{if(1===r.document.querySelectorAll(n.join("")).length)return n.join("")}catch(e){return n.join("")}if(t.parentNode.childNodes.length>1){var i=Array.prototype.indexOf.call(t.parentNode.childNodes,t)+1;n.push(":nth-child("+i+")")}return 1===r.document.querySelectorAll(n.join("")).length?n.join(""):t.parentNode?e(t.parentNode,r)+" > "+n.join(""):n.join("")}(t.target,f)}catch(t){r="[hidden]",n="[hidden]",e._logger.error("Cross domain error when tracking click event. See docs: https://tinyurl.com/yy3rn63z")}e.leaveBreadcrumb("UI click",{targetText:r,targetSelector:n},"user")},!0)}}),(void 0===d&&(d=[]),void 0===p&&(p=window),{load:function(e){if(e._isBreadcrumbTypeEnabled("request")){var t=[e._config.endpoints.notify,e._config.endpoints.sessions].concat(d);(function(){if("addEventListener"in p.XMLHttpRequest.prototype){var r=p.XMLHttpRequest.prototype.open;p.XMLHttpRequest.prototype.open=function(n,i){var o=this;this.addEventListener("load",function(){return function(r,n,i){if(void 0===n){e._logger.warn("The request URL is no longer present on this XMLHttpRequest. A breadcrumb cannot be left for this request.");return}if(!("string"==typeof n&&s(t,n.replace(/\?.*$/,"")))){var o={status:i,request:r+" "+n};i>=400?e.leaveBreadcrumb("XMLHttpRequest failed",o,eG):e.leaveBreadcrumb("XMLHttpRequest succeeded",o,eG)}}(n,i,o.status)}),this.addEventListener("error",function(){return function(r,n){if(void 0===n){e._logger.warn("The request URL is no longer present on this XMLHttpRequest. A breadcrumb cannot be left for this request.");return}"string"==typeof n&&s(t,n.replace(/\?.*$/,""))||e.leaveBreadcrumb("XMLHttpRequest error",{request:r+" "+n},eG)}(n,i)}),r.apply(this,arguments)}}})(),function(){if("fetch"in p&&!p.fetch.polyfill){var e=p.fetch;p.fetch=function(){var t,i=arguments,o=arguments[0],a=arguments[1],s=null;return o&&"object"==typeof o?(s=o.url,a&&"method"in a?t=a.method:o&&"method"in o&&(t=o.method)):(s=o,a&&"method"in a&&(t=a.method)),void 0===t&&(t="GET"),new Promise(function(o,a){e.apply(void 0,i).then(function(e){r(e,t,s),o(e)}).catch(function(e){n(t,s),a(e)})})}}}();var r=function(t,r,n){var i={status:t.status,request:r+" "+n};t.status>=400?e.leaveBreadcrumb("fetch() failed",i,eG):e.leaveBreadcrumb("fetch() succeeded",i,eG)},n=function(t,r){e.leaveBreadcrumb("fetch() error",{request:t+" "+r},eG)}}}}),eP,(void 0===h&&(h=document),void 0===v&&(v=window),{load:function(e){if(e._config.trackInlineScripts){var t=v.location.href,r="",n=h.attachEvent?"complete"===h.readyState:"loading"!==h.readyState,i=function(){return h.documentElement.outerHTML};r=i();var s=h.onreadystatechange;h.onreadystatechange=function(){"interactive"===h.readyState&&(r=i(),n=!0);try{s.apply(this,arguments)}catch(e){}};var u=null,c=function(e){u=e},l=function(){var e=h.currentScript||u;if(!e&&!n){var t=h.scripts||h.getElementsByTagName("script");e=t[t.length-1]}return e},f=function(e){n&&r||(r=i());var t=["<!-- DOC START -->"].concat(r.split("\n")),a=e-1,s=Math.max(a-3,0),u=Math.min(a+3,t.length);return o(t.slice(s,u),function(e,t,r){return e[s+1+r]=t.length<=200?t:t.substr(0,200),e},{})};e.addOnError(function(e){e.errors[0].stacktrace=a(e.errors[0].stacktrace,function(e){return!/__trace__$/.test(e.method)});var r=e.errors[0].stacktrace[0],n=function(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"")};if(!r||!r.file||n(r.file)===n(t)){var i=l();if(i){var o=i.innerHTML;e.addMetadata("script","content",o.length<=5e5?o:o.substr(0,5e5)),r&&r.lineNumber&&(r.code=f(r.lineNumber))}}},!0);var d=m(["setTimeout","setInterval","setImmediate","requestAnimationFrame"],function(e){return eF(v,e,function(e){return p(e,function(e){return{get:function(){return e[0]},replace:function(t){e[0]=t}}})})})[0];m(["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],function(e){v[e]&&v[e].prototype&&Object.prototype.hasOwnProperty.call(v[e].prototype,"addEventListener")&&(eF(v[e].prototype,"addEventListener",function(e){return p(e,eM)}),eF(v[e].prototype,"removeEventListener",function(e){return p(e,eM,!0)}))})}function p(e,t,r){return void 0===r&&(r=!1),function(){var n=[].slice.call(arguments);try{var i=t(n),o=i.get();if(r&&e.apply(this,n),"function"!=typeof o)return e.apply(this,n);if(o.__trace__)i.replace(o.__trace__);else{var a=l();o.__trace__=function(){c(a),d(function(){c(null)},0);var e=o.apply(this,arguments);return c(null),e},o.__trace__.__trace__=o.__trace__,i.replace(o.__trace__)}}catch(e){}if(e.apply)return e.apply(this,n);switch(n.length){case 1:return e(n[0]);case 2:return e(n[0],n[1]);default:return e()}}}},configSchema:{trackInlineScripts:{validate:function(e){return!0===e||!1===e},defaultValue:function(){return!0},message:"should be true|false"}}})],{name:"Bugsnag JavaScript",version:"7.22.7",url:"https://github.com/bugsnag/bugsnag-js"});return y._setDelivery(window.XDomainRequest?ed:ev),y._logger.debug("Loaded!"),y.leaveBreadcrumb("Bugsnag loaded",{},"state"),y._config.autoTrackSessions?y.startSession():y},start:function(e){return eY._client?eY._client._logger.warn("Bugsnag.start() was called more than once. Ignoring."):eY._client=eY.createClient(e),eY._client},isStarted:function(){return null!=eY._client}};return m(["resetEventCount"].concat(f(es.prototype)),function(e){/^_/.test(e)||(eY[e]=function(){if(!eY._client)return console.log("Bugsnag."+e+"() was called before Bugsnag.start()");eY._client._depth+=1;var t=eY._client[e].apply(eY._client,arguments);return eY._client._depth-=1,t})}),(eH=eY).Client=es,eH.Event=q,eH.Session=eo,eH.Breadcrumb=E,eH.default=eY,eH},e.exports=t()},4061:function(e,t,r){e.exports=r(7748)},2994:function(e){var t;t=function(){var e={};function t(){return(t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}e=function(){function e(){var e="undefined"!=typeof window&&window.React;if(this.name="react",this.lazy=0==arguments.length&&!e,!this.lazy&&(this.React=(arguments.length<=0?void 0:arguments[0])||e,!this.React))throw Error("@bugsnag/plugin-react reference to `React` was undefined")}return e.prototype.load=function(e){if(!this.lazy){var t=i(this.React,e);return t.createErrorBoundary=function(){return t},t}var r=function(){throw Error("@bugsnag/plugin-react was used incorrectly. Valid usage is as follows:\nPass React to the plugin constructor\n\n `Bugsnag.start({ plugins: [new BugsnagPluginReact(React)] })`\nand then call `const ErrorBoundary = Bugsnag.getPlugin('react').createErrorBoundary()`\n\nOr if React is not available until after Bugsnag has started,\nconstruct the plugin with no arguments\n `Bugsnag.start({ plugins: [new BugsnagPluginReact()] })`,\nthen pass in React when available to construct your error boundary\n `const ErrorBoundary = Bugsnag.getPlugin('react').createErrorBoundary(React)`")};return r.createErrorBoundary=function(t){if(!t)throw Error("@bugsnag/plugin-react reference to `React` was undefined");return i(t,e)},r},e}();var n=function(e){for(var t=e.split(/\n/g),r="",n=0,i=t.length;n<i;n++)t[n].length&&(r+=(r.length?"\n":"")+t[n].trim());return r},i=function(e,i){return function(o){function a(e){var t;return(t=o.call(this,e)||this).state={error:null,info:null},t.handleClearError=t.handleClearError.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)),t}a.prototype=Object.create(o.prototype),a.prototype.constructor=a,r(a,o);var s=a.prototype;return s.handleClearError=function(){this.setState({error:null,info:null})},s.componentDidCatch=function(e,t){var r=this.props.onError,o=i.Event.create(e,!0,{severity:"error",unhandled:!0,severityReason:{type:"unhandledException"}},1);t&&t.componentStack&&(t.componentStack=n(t.componentStack)),o.addMetadata("react",t),i._notify(o,r),this.setState({error:e,info:t})},s.render=function(){if(this.state.error){var r=this.props.FallbackComponent;return r?e.createElement(r,t({},this.state,{clearError:this.handleClearError})):null}return this.props.children},a}(e.Component)};return e.formatComponentStack=n,e.default=e,e},e.exports=t()},3454:function(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(7663)},6840:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(5331)}])},9463:function(e,t,r){"use strict";r.d(t,{D:function(){return a},I:function(){return s}});var n=r(5893),i=r(7294);let o=(0,i.createContext)({isEligible:!1,showModal:!0,setEligibility:()=>{},setShowModal:()=>{},isOptOut:!1,setIsOptOut:()=>{},showOptOutModal:!0,setShowOptOutModal:()=>{}}),a=()=>(0,i.useContext)(o),s=e=>{let{children:t}=e,[r,a]=(0,i.useState)(!1),[s,u]=(0,i.useState)(!0),[c,l]=(0,i.useState)(!1),[f,d]=(0,i.useState)(!1);(0,i.useEffect)(()=>{{let e=localStorage.getItem("isOptOut");e?p(JSON.parse(e)):localStorage.setItem("isOptOut",JSON.stringify(!1))}},[]),(0,i.useEffect)(()=>{{let e=localStorage.getItem("isEligible");e&&(a(JSON.parse(e)),u(!1))}},[]);let p=e=>{l(e),localStorage.setItem("isOptOut",JSON.stringify(e)),d(!1)};return(0,n.jsx)(o.Provider,{value:{isEligible:r,showModal:s,setShowModal:u,setEligibility:e=>{a(e),localStorage.setItem("isEligible",JSON.stringify(e)),u(!1)},isOptOut:c,setIsOptOut:p,showOptOutModal:f,setShowOptOutModal:d},children:t})}},6063:function(e,t,r){"use strict";var n,i,o,a,s=r(3454);t.Z={nodeEnv:"production",siteName:"Keuken Kampioen Divisie",siteUrl:"https://keukenkampioendivisie.nl",apiUrl:"https://api.keukenkampioendivisie.nl",bugsnagApiKey:"90c7bbd6a223d09ba0ee81bc67d794e0",flocklerSiteId:"178f89878920e654af66d42fb9630dcb",flocklerEmbedId:"189da85c87a04aa686d6959bd4301511",gaMeasurementId:"G-MHY1VP66CF",onesignalAppId:"86e9e196-b6c5-4591-a764-2f768fbc34f9",brevoApiUrl:"https://api.brevo.com/v3/smtp/email",brevoApiKey:null!==(n=s.env.NEXT_BREVO_API_KEY)&&void 0!==n?n:"",recaptchaSiteKey:"6LfzcLQpAAAAAGcHE6hi9QCPN77WSJVQ5quy4LXz",recaptchaSecretKey:null!==(i=s.env.NEXT_RECAPTCHA_SECRET_KEY)&&void 0!==i?i:"",doApiUrl:"https://kkd-site-zg3xl.ondigitalocean.app",allowedOrigins:null!==(o=s.env.NEXT_CORS_ALLOWED_ORIGINS)&&void 0!==o?o:[],doAssetUrl:"https://play-offs.ams3.cdn.digitaloceanspaces.com",vlApiUrl:"https://api.novamedia.com/2.0.0/fundraiser/VL",vlApiSecret:null!==(a=s.env.NEXT_VL_API_SECRET)&&void 0!==a?a:"",vlApiUsername:"southfields_pr"}}
1,5331:function(e,t,r){"use strict";let n;r.r(t),r.d(t,{default:function(){return nE}});var i,o,a,s,u,c=r(5893),l=r(7294),f=r(1758),d=r(7582),p=r(8287),h=r(3914),v=r(5317),y=function(e){var t=e.client,r=e.children,n=(0,v.K)(),i=h.useContext(n),o=h.useMemo(function(){return(0,d.pi)((0,d.pi)({},i),{client:t||i.client})},[i,t]);return(0,p.kG)(o.client,46),h.createElement(n.Provider,{value:o},r)},g=r(259),m=r(4061),b=r.n(m),_=r(4298),w=r.n(_),S=r(2994),E=r.n(S),O=r(9089),k=r(6063);let T=()=>{O.ZP.initialize(k.Z.gaMeasurementId)};function I(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 x(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,n.key,n)}}function D(e,t,r){return t&&x(e.prototype,t),r&&x(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var j=function(){return"function"==typeof Symbol},R=function(e){return j()&&!!Symbol[e]},N=function(e){return R(e)?Symbol[e]:"@@"+e};j()&&!R("observable")&&(Symbol.observable=Symbol("observable"));var C=N("iterator"),P=N("observable"),A=N("species");function F(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw TypeError(r+" is not a function");return r}}function M(e){var t=e.constructor;return void 0!==t&&null===(t=t[A])&&(t=void 0),void 0!==t?t:W}function q(e){q.log?q.log(e):setTimeout(function(){throw e})}function L(e){Promise.resolve().then(function(){try{e()}catch(e){q(e)}})}function V(e){var t=e._cleanup;if(void 0!==t){if(e._cleanup=void 0,!t)return;try{if("function"==typeof t)t();else{var r=F(t,"unsubscribe");r&&r.call(t)}}catch(e){q(e)}}}function Q(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function B(e,t,r){e._state="running";var n=e._observer;try{var i=F(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(Q(e),i)i.call(n,r);else throw r;break;case"complete":Q(e),i&&i.call(n)}}catch(e){q(e)}"closed"===e._state?V(e):"running"===e._state&&(e._state="ready")}function z(e,t,r){if("closed"!==e._state){if("buffering"===e._state){e._queue.push({type:t,value:r});return}if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:r}],L(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(B(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)});return}B(e,t,r)}}var G=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new U(this);try{this._cleanup=t.call(void 0,r)}catch(e){r.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(Q(this),V(this))},D(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),U=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){z(this._subscription,"next",e)},t.error=function(e){z(this._subscription,"error",e)},t.complete=function(){z(this._subscription,"complete")},D(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),W=function(){function e(t){if(!(this instanceof e))throw TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new G(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(r,n){if("function"!=typeof e){n(TypeError(e+" is not a function"));return}function i(){o.unsubscribe(),r()}var o=t.subscribe({next:function(t){try{e(t,i)}catch(e){n(e),o.unsubscribe()}},error:n,complete:r})})},t.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(M(this))(function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(M(this))(function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=M(this),n=arguments.length>1,i=!1,o=arguments[1],a=o;return new r(function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(e){return r.error(e)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=M(this);return new i(function(t){var n,o=0;return function e(a){n=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===r.length?(n=void 0,t.complete()):e(i.from(r[o++]
1))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=M(this);return new r(function(n){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return n.error(e)}var o=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[P]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var n=F(t,P);if(n){var i=n.call(t);if(Object(i)!==i)throw TypeError(i+" is not an object");return i instanceof W&&i.constructor===r?i:new r(function(e){return i.subscribe(e)})}if(R("iterator")&&(n=F(t,C)))return new r(function(e){L(function(){if(!e.closed){for(var r,i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return I(e,void 0);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 I(e,void 0)}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n.call(t));!(r=i()).done;){var o=r.value;if(e.next(o),e.closed)return}e.complete()}})});if(Array.isArray(t))return new r(function(e){L(function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}})});throw TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)(function(e){L(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})})},D(e,null,[{key:A,get:function(){return this}}]),e}();j()&&Object.defineProperty(W,Symbol("extensions"),{value:{symbol:P,hostReportError:q},configurable:!0});var K=r(3154);function $(e,t){var r=t,n=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw(0,p._K)(72,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&n.push(e)}),void 0===r&&((0,p.kG)(1===n.length,73,n.length),r=n[0].name.value),(0,d.pi)((0,d.pi)({},e),{definitions:(0,d.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function J(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function H(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return(0,p.kG)(n,74,r),n||null;default:return null}}var X=r(8991),Y=r(6331),Z=r(8244),ee=Object.assign(function(e){return JSON.stringify(e,et)},{reset:function(){s=new X.L(Y.Q.canonicalStringify||1e3)}});function et(e,t){if(t&&"object"==typeof t){var r=Object.getPrototypeOf(t);if(r===Object.prototype||null===r){var n=Object.keys(t);if(n.every(er))return t;var i=JSON.stringify(n),o=s.get(i);if(!o){n.sort();var a=JSON.stringify(n);o=s.get(a)||n,s.set(i,o),s.set(a,o)}var u=Object.create(r);return o.forEach(function(e){u[e]=t[e]}),u}}return t}function er(e,t,r){return 0===t||r[t-1]<=e}function en(e){return{__ref:String(e)}}function ei(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function eo(e,t,r,n){if("IntValue"===r.kind||"FloatValue"===r.kind)e[t.value]=Number(r.value);else if("BooleanValue"===r.kind||"StringValue"===r.kind)e[t.value]=r.value;else if("ObjectValue"===r.kind){var i={};r.fields.map(function(e){return eo(i,e.name,e.value,n)}),e[t.value]=i}
1else if("Variable"===r.kind){var o=(n||{})[r.name.value];e[t.value]=o}else if("ListValue"===r.kind)e[t.value]=r.values.map(function(e){var r={};return eo(r,t,e,n),r[t.value]});else if("EnumValue"===r.kind)e[t.value]=r.value;else if("NullValue"===r.kind)e[t.value]=null;else throw(0,p._K)(83,t.value,r.kind)}!1!==globalThis.__DEV__&&(0,Z.zP)("canonicalStringify",function(){return s.size}),ee.reset();var ea=["connection","include","skip","client","rest","export","nonreactive"],es=ee,eu=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(!r.connection.filter||!(r.connection.filter.length>0))return r.connection.key;var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(e){i[e]=t[e]}),"".concat(r.connection.key,"(").concat(es(i),")")}var o=e;if(t){var a=es(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(e){-1===ea.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(es(r[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=es;return es=e,t}});function ec(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return eo(r,e.name,e.value,t)}),r}return null}function el(e){return e.alias?e.alias.value:e.name.value}function ef(e,t,r){for(var n,i=0,o=t.selections;i<o.length;i++){var a=o[i];if(ed(a)){if("__typename"===a.name.value)return e[el(a)]}else n?n.push(a):n=[a]}if("string"==typeof e.__typename)return e.__typename;if(n)for(var s=0,u=n;s<u.length;s++){var a=u[s],c=ef(e,H(a,r).selectionSet,r);if("string"==typeof c)return c}}function ed(e){return"Field"===e.kind}function ep(e){(0,p.kG)(e&&"Document"===e.kind,75);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw(0,p._K)(76,e.kind);return e});return(0,p.kG)(t.length<=1,77,t.length),e}function eh(e){return ep(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function ev(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function ey(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function eg(e){var t=eh(e);return(0,p.kG)(t&&"query"===t.operation,78),t}function em(e){ep(e);for(var t,r=0,n=e.definitions;r<n.length;r++){var i=n[r];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw(0,p._K)(82)}function eb(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&eo(t,e.variable.name,e.defaultValue)}),t}function e_(e,t){return t?t(e):W.of()}function ew(e){return"function"==typeof e?new eE(e):e}function eS(e){return e.request.length<=1}var eE=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return W.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(ew).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var i=ew(r),o=ew(n||new e(e_));return Object.assign(new e(eS(i)&&eS(o)?function(e){return t(e)?i.request(e)||W.of():o.request(e)||W.of()}:function(e,r){return t(e)?i.request(e,r)||W.of():o.request(e,r)||W.of()}),{left:i,right:o})},e.execute=function(e,t){var r,n,i,o;return e.request((i=t.context,(n={variables:(r=function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(0>t.indexOf(i))throw(0,p._K)(43,i)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(n.operationName="string"!=typeof n.query?ev(n.query)||void 0:""),o=(0,d.pi)({},i),Object.defineProperty(n,"setContext",{enumerable:!1,value:function(e){o="function"==typeof e?(0,d.pi)((0,d.pi)({},o),e(o)):(0,d.pi)((0,d.pi)({},o),e)}}),Object.defineProperty(n,"getContext",{enumerable:!1,value:function(){return(0,d.pi)({},o)}}),n))||W.of()},e.concat=function(t,r){var n=ew(t);if(eS(n))return!1!==globalThis.__DEV__&&p.kG.warn(35,n),n;var i=ew(r);return Object.assign(new e(eS(i)?function(e){return n.request(e,function(e){return i.request(e)||W.of()})||W.of()}:function(e,t){return n.request(e,function(e){return i.request(e,t)||W.of()})||W.of()}),{left:n,right:i})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(e_)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,p._K)(36)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),eO=r(7826),ek=r(5821),eT=r(2380),eI=r(7359);let ex=Object.freeze({});function eD(e,t,r=eT.h8){let n,i,o;let a=new Map;for(let e of Object.values(eI.h))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 s=Array.isArray(e),u=[e],c=-1,l=[],f=e,d=[],p=[];do{var h,v,y;let e;let g=++c===u.length,m=g&&0!==l.length;if(g){if(i=0===p.length?void 0:d[d.length-1],f=o,o=p.pop(),m){if(s){f=f.slice();let e=0;for(let[t,r]of l){let n=t-e;null===r?(f.splice(n,1),e++):f[n]=r}}else for(let[e,t]of(f=Object.defineProperties({},Object.getOwnPropertyDescriptors(f)),l))f[e]=t}c=n.index,u=n.keys,l=n.edits,s=n.inArray,n=n.prev}else if(o){if(null==(f=o[i=s?c:u[c]]))continue;d.push(i)}if(!Array.isArray(f)){(0,eT.UG)(f)||(0,eO.a)(!1,`Invalid AST Node: ${(0,ek.X)(f)}.`);let r=g?null===(h=a.get(f.kind))||void 0===h?void 0:h.leave:null===(v=a.get(f.kind))||void 0===v?void 0:v.enter;if((e=null==r?void 0:r.call(t,f,i,o,d,p))===ex)break;if(!1===e){if(!g){d.pop();continue}}else if(void 0!==e&&(l.push([i,e]),!g)){if((0,eT.UG)(e))f=e;else{d.pop();continue}}}void 0===e&&m&&l.push([i,f]),g?d.pop():(n={inArray:s,index:c,keys:u,edits:l,prev:n},u=(s=Array.isArray(f))?f:null!==(y=r[f.kind])&&void 0!==y?y:[],c=-1,l=[],o&&p.push(o),o=f)}while(void 0!==n);return 0!==l.length?l[l.length-1][1]:e}function ej(e,t){var r,n=e.directives;
1return!n||!n.length||(r=[],n&&n.length&&n.forEach(function(e){var t;if(!("skip"!==(t=e.name.value)&&"include"!==t)){var n=e.arguments,i=e.name.value;(0,p.kG)(n&&1===n.length,69,i);var o=n[0];(0,p.kG)(o.name&&"if"===o.name.value,70,i);var a=o.value;(0,p.kG)(a&&("Variable"===a.kind||"BooleanValue"===a.kind),71,i),r.push({directive:e,ifArgument:o})}}),r).every(function(e){var r=e.directive,n=e.ifArgument,i=!1;return"Variable"===n.value.kind?(i=t&&t[n.value.name.value],(0,p.kG)(void 0!==i,68,r.name.value)):i=n.value.value,"skip"===r.name.value?!i:i})}function eR(e,t,r){var n=new Set(e),i=n.size;return eD(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return ex}}),r?!n.size:n.size<i}var eN=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=(0,p._K)(39,t,e.message);throw n.parseError=e,n}return r},eC=r(320);function eP(e){var t={next:function(){return e.read()}};return eC.DN&&(t[Symbol.asyncIterator]=function(){return this}),t}var eA=function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},eF=r(990),eM=r(1436),eq=Object.prototype.hasOwnProperty;function eL(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return eV(e)}function eV(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new eB,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var eQ=function(e,t,r){return this.merge(e[r],t[r])},eB=function(){function e(e){void 0===e&&(e=eQ),this.reconciler=e,this.isObject=K.s,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return(0,K.s)(t)&&(0,K.s)(e)?(Object.keys(t).forEach(function(i){if(eq.call(e,i)){var o=e[i];if(t[i]!==o){var a=r.reconciler.apply(r,(0,d.ev)([e,t,i],n,!1));a!==o&&((e=r.shallowCopyForMerge(e))[i]=a)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,K.s)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,d.pi)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();function ez(e){return"incremental"in e}function eG(e,t){var r=e,n=new eB;return ez(t)&&(0,eM.O)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var a=i[o],s=isNaN(+a)?{}:[];s[a]=t,t=s}r=n.merge(r,t)}),r}var eU=Object.prototype.hasOwnProperty;function eW(e,t){e.status>=300&&eA(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}var eK=function(e){if(!e&&"undefined"==typeof fetch)throw(0,p._K)(37)},e$=r(7392);let eJ=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function eH(e){return eX[e.charCodeAt(0)]}let eX=["\\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"],eY={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>eZ(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=e1("(",eZ(e.variableDefinitions,", "),")"),r=eZ([e.operation,eZ([e.name,t]),eZ(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+e1(" = ",r)+e1(" ",eZ(n," "))},SelectionSet:{leave:({selections:e})=>e0(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let o=e1("",e,": ")+t,a=o+e1("(",eZ(r,", "),")");return a.length>80&&(a=o+e1("(\n",e2(eZ(r,"\n")),"\n)")),eZ([a,eZ(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+e1(" ",eZ(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>eZ(["...",e1("on ",e),eZ(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${e1("(",eZ(r,", "),")")} on ${t} ${e1("",eZ(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e}
1,StringValue:{leave:({value:e,block:t})=>t?(0,e$.LZ)(e):`"${e.replace(eJ,eH)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+eZ(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+eZ(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+e1("(",eZ(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>e1("",e,"\n")+eZ(["schema",eZ(t," "),e0(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>e1("",e,"\n")+eZ(["scalar",t,eZ(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>e1("",e,"\n")+eZ(["type",t,e1("implements ",eZ(r," & ")),eZ(n," "),e0(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>e1("",e,"\n")+t+(e3(r)?e1("(\n",e2(eZ(r,"\n")),"\n)"):e1("(",eZ(r,", "),")"))+": "+n+e1(" ",eZ(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>e1("",e,"\n")+eZ([t+": "+r,e1("= ",n),eZ(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>e1("",e,"\n")+eZ(["interface",t,e1("implements ",eZ(r," & ")),eZ(n," "),e0(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>e1("",e,"\n")+eZ(["union",t,eZ(r," "),e1("= ",eZ(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>e1("",e,"\n")+eZ(["enum",t,eZ(r," "),e0(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>e1("",e,"\n")+eZ([t,eZ(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>e1("",e,"\n")+eZ(["input",t,eZ(r," "),e0(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>e1("",e,"\n")+"directive @"+t+(e3(r)?e1("(\n",e2(eZ(r,"\n")),"\n)"):e1("(",eZ(r,", "),")"))+(n?" repeatable":"")+" on "+eZ(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>eZ(["extend schema",eZ(e," "),e0(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>eZ(["extend scalar",e,eZ(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>eZ(["extend type",e,e1("implements ",eZ(t," & ")),eZ(r," "),e0(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>eZ(["extend interface",e,e1("implements ",eZ(t," & ")),eZ(r," "),e0(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>eZ(["extend union",e,eZ(t," "),e1("= ",eZ(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>eZ(["extend enum",e,eZ(t," "),e0(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>eZ(["extend input",e,eZ(t," "),e0(r)]," ")}};function eZ(e,t=""){var r;return null!==(r=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==r?r:""}function e0(e){return e1("{\n",e2(eZ(e,"\n")),"\n}")}function e1(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function e2(e){return e1(" ",e.replace(/\n/g,"\n "))}function e3(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}var e6=Object.assign(function(e){var t=u.get(e);return t||(t=eD(e,eY),u.set(e,t)),t},{reset:function(){u=new X.s(Y.Q.print||2e3)}});e6.reset(),!1!==globalThis.__DEV__&&(0,Z.zP)("print",function(){return u?u.size:0});var e8={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},e9=function(e,t){return t(e)};function e7(e){return new W(function(t){t.error(e)})}var e4={kind:eI.h.FIELD,name:{kind:eI.h.NAME,value:"__typename"}};function e5(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function te(e,t){ep(t);for(var r,n,i,o,a=e5(""),s=e5(""),u=function(e){for(var t=0,r=void 0;t<e.length&&(r=e[t]);++t)if(!(0,eM.k)(r)){if(r.kind===eI.h.OPERATION_DEFINITION)return a(r.name&&r.name.value);if(r.kind===eI.h.FRAGMENT_DEFINITION)return s(r.name.value)}return!1!==globalThis.__DEV__&&p.kG.error(84),null},c=0,l=t.definitions.length-1;l>=0;--l)t.definitions[l].kind===eI.h.OPERATION_DEFINITION&&++c;var f=(r=new Map,n=new Map,e.forEach(function(e){e&&(e.name?r.set(e.name,e):e.test&&n.set(e.test,e))}
1),function(e){var t=r.get(e.name.value);return!t&&n.size&&n.forEach(function(r,n){n(e)&&(t=r)}),t}),h=function(e){return(0,eM.O)(e)&&e.map(f).some(function(e){return e&&e.remove})},v=new Map,y=!1,g={enter:function(e){if(h(e.directives))return y=!0,null}},m=eD(t,{Field:g,InlineFragment:g,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var o=u(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(h(e.directives))return y=!0,null;var o=u(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){v.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===v.get(JSON.stringify(n))?e:c>0&&e.selectionSet.selections.every(function(e){return e.kind===eI.h.FIELD&&"__typename"===e.name.value})?(s(e.name.value).removed=!0,y=!0,null):void 0}},Directive:{leave:function(e){if(f(e))return y=!0,null}}});if(!y)return t;var b=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){b(s(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},_=new Set;m.definitions.forEach(function(e){e.kind===eI.h.OPERATION_DEFINITION?b(a(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){_.add(e)}):e.kind!==eI.h.FRAGMENT_DEFINITION||0!==c||s(e.name.value).removed||_.add(e.name.value)}),_.forEach(function(e){b(s(e)).fragmentSpreads.forEach(function(e){_.add(e)})});var w={enter:function(e){var t;if(t=e.name.value,!_.has(t)||s(t).removed)return null}};return!function e(t,r){return!t||t.selectionSet.selections.every(function(t){return t.kind===eI.h.FRAGMENT_SPREAD&&e(r[t.name.value],r)})}(eh(i=eD(m,{FragmentSpread:w,FragmentDefinition:w,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=b(a(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,d.pi)((0,d.pi)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))||((0,p.kG)("Document"===i.kind,79),(0,p.kG)(i.definitions.length<=1,80),o=i.definitions[0],(0,p.kG)("FragmentDefinition"===o.kind,81),o),J(ey(i)))?i:null}var tt=Object.assign(function(e){return eD(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==eI.h.OPERATION_DEFINITION){var n=e.selections;if(!(!n||n.some(function(e){return ed(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!(ed(r)&&r.directives&&r.directives.some(function(e){return"export"===e.name.value})))return(0,d.pi)((0,d.pi)({},e),{selections:(0,d.ev)((0,d.ev)([],n,!0),[e4],!1)})}}}})},{added:function(e){return e===e4}});function tr(e){return ep(e),te([{test:function(e){return"client"===e.name.value},remove:!0}],e)}var tn=(0,p.wY)(function(){return fetch}),ti=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,n=e.fetch,i=e.print,o=void 0===i?e9:i,a=e.includeExtensions,s=e.preserveHeaderCase,u=e.useGETForQueries,c=e.includeUnusedVariables,l=void 0!==c&&c,f=(0,d._T)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&eK(n||tn);var h={http:{includeExtensions:a,preserveHeaderCase:s},options:f.fetchOptions,credentials:f.credentials,headers:f.headers};return new eE(function(e){var t,i,a,s,c,f,v,y,g=(t=e,i=r,t.getContext().uri||("function"==typeof i?i(t):i||"/graphql")),m=e.getContext(),b={};if(m.clientAwareness){var _=m.clientAwareness,w=_.name,S=_.version;w&&(b["apollographql-client-name"]=w),S&&(b["apollographql-client-version"]=S)}var E=(0,d.pi)((0,d.pi)({},b),m.headers),O={http:m.http,options:m.fetchOptions,credentials:m.credentials,headers:E};if(eR(["client"],e.query)){var k=tr(e.query);if(!k)return e7(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=k}var T=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i={},o={};r.forEach(function(e){i=(0,d.pi)((0,d.pi)((0,d.pi)({},i),e.options),{headers:(0,d.pi)((0,d.pi)({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),o=(0,d.pi)((0,d.pi)({},o),e.http)}),i.headers&&(i.headers=function(e,t){if(!t){var r=Object.create(null);
1return Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]=e[t]}),r}var n=Object.create(null);Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}});var i=Object.create(null);return Object.keys(n).forEach(function(e){i[n[e].originalName]=n[e].value}),i}(i.headers,o.preserveHeaderCase));var a=e.operationName,s=e.extensions,u=e.variables,c=e.query,l={operationName:a,variables:u};return o.includeExtensions&&(l.extensions=s),o.includeQuery&&(l.query=t(c,e6)),{options:i,body:l}}(e,o,e8,h,O),I=T.options,x=T.body;x.variables&&!l&&(x.variables=(a=x.variables,s=e.query,c=(0,d.pi)({},a),f=new Set(Object.keys(a)),eD(s,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&f.delete(e.name.value)}}),f.forEach(function(e){delete c[e]}),c)),I.signal||"undefined"==typeof AbortController||(y=new AbortController,I.signal=y.signal);var D="OperationDefinition"===(v=em(e.query)).kind&&"subscription"===v.operation,j=eR(["defer"],e.query);if(u&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(I.method="GET"),j||D){I.headers=I.headers||{};var R="multipart/mixed;";D&&j&&!1!==globalThis.__DEV__&&p.kG.warn(38),D?R+="boundary=graphql;subscriptionSpec=1.0,application/json":j&&(R+="deferSpec=20220824,application/json"),I.headers.accept=R}if("GET"===I.method){var N=function(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=eN(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=eN(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",o)}var a="",s=e,u=e.indexOf("#");-1!==u&&(a=e.substr(u),s=e.substr(0,u));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+r.join("&")+a}}(g,x),C=N.newURI,P=N.parseError;if(P)return e7(P);g=C}else try{I.body=eN(x,"Payload")}catch(e){return e7(e)}return new W(function(t){var r=n||(0,p.wY)(function(){return fetch})||tn,i=t.next.bind(t);return r(g,I).then(function(t){e.setContext({response:t});var r,n=null===(r=t.headers)||void 0===r?void 0:r.get("content-type");return null!==n&&/^multipart\/mixed/i.test(n)?function(e,t){return(0,d.mG)(this,void 0,void 0,function(){var r,n,i,o,a,s,u,c,l,f,p,h,v,y,g,m,b,_,w,S,E,O,k;return(0,d.Jh)(this,function(T){switch(T.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),n=null===(k=e.headers)||void 0===k?void 0:k.get("content-type"),i="boundary=",o=(null==n?void 0:n.includes(i))?null==n?void 0:n.substring((null==n?void 0:n.indexOf(i))+i.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",a="\r\n--".concat(o),s="",u=function(e){var t,r,n,i,o,a,s=e;if(e.body&&(s=e.body),t=s,eC.DN&&t[Symbol.asyncIterator])return n=s[Symbol.asyncIterator](),(r={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},r;if(s.getReader)return eP(s.getReader());if(s.stream)return eP(s.stream().getReader());if(s.arrayBuffer)return i=s.arrayBuffer(),o=!1,a={next:function(){return o?Promise.resolve({value:void 0,done:!0}):(o=!0,new Promise(function(e,t){i.then(function(t){e({value:t,done:!1})}).catch(t)}))}},eC.DN&&(a[Symbol.asyncIterator]=function(){return this}),a;if(s.pipe)return function(e){var t=null,r=null,n=!1,i=[],o=[];function a(e){if(!r){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){r=e,o.slice().forEach(function(t){t[1](e)}),t&&t()}function u(){n=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",u),e.removeListener("finish",u),e.removeListener("close",u)},e.on("data",a),e.on("error",s),e.on("end",u),e.on("finish",u),e.on("close",u);var c={next:function(){return new Promise(function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void o.push([e,t])})}};return eC.DN&&(c[Symbol.asyncIterator]=function(){return this}),c}(s);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),c=!0,T.label=1;case 1:if(!c)return[3,3];return[4,u.next()];case 2:for(f=(l=T.sent()).value,p=l.done,h="string"==typeof f?f:r.decode(f),v=s.length-a.length+1,c=!p,s+=h,y=s.indexOf(a,v);y>-1;){if(g=void 0,g=(E=[s.slice(0,y),s.slice(y+a.length)])[0],s=E[1],m=g.indexOf("\r\n\r\n"),(b=function(e){var t={};return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(g.slice(0,m))["content-type"])&&-1===b.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");
1if(_=g.slice(m)){if(Object.keys(w=eW(e,_)).length>1||"data"in w||"incremental"in w||"errors"in w||"payload"in w){if((0,K.s)(w)&&"payload"in w){if(S={},"payload"in w){if(1===Object.keys(w).length&&null===w.payload)return[2];S=(0,d.pi)({},w.payload)}"errors"in w&&(S=(0,d.pi)((0,d.pi)({},S),{extensions:(0,d.pi)((0,d.pi)({},"extensions"in S?S.extensions:null),((O={})[eF.YG]=w.errors,O))})),t(S)}else t(w)}else if(1===Object.keys(w).length&&"hasNext"in w&&!w.hasNext)return[2]}y=s.indexOf(a)}return[3,1];case 3:return[2]}})})}(t,i):t.text().then(function(e){return eW(t,e)}).then(function(r){return Array.isArray(r)||eU.call(r,"data")||eU.call(r,"errors")||eA(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),r}).then(i)}).then(function(){y=void 0,t.complete()}).catch(function(e){y=void 0,e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}),function(){y&&y.abort()}})})};let to=()=>Object.create(null),{forEach:ta,slice:ts}=Array.prototype,{hasOwnProperty:tu}=Object.prototype;class tc{constructor(e=!0,t=to){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return ta.call(e,e=>t=t.getChildTrie(e)),tu.call(t,"data")?t.data:t.data=this.makeData(ts.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){let n=this.weakness&&tl(e[r])?t.weak:t.strong;t=n&&n.get(e[r])}return t&&t.data}getChildTrie(e){let t=this.weakness&&tl(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=t.get(e);return r||t.set(e,r=new tc(this.weakness,this.makeData)),r}}function tl(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}var tf=r(2379);let td=null,tp={},th=1;function tv(e){try{return e()}catch(e){}}let ty="@wry/context:Slot",tg=tv(()=>globalThis)||tv(()=>global)||Object.create(null),tm=tg[ty]||Array[ty]||function(e){try{Object.defineProperty(tg,ty,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",th++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=td;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===tp)break;return e!==td&&(td.slots[this.id]=t),!0}return td&&(td.slots[this.id]=tp),!1}getValue(){if(this.hasValue())return td.slots[this.id]}withValue(e,t,r,n){let i={__proto__:null,[this.id]:e},o=td;td={parent:o,slots:i};try{return t.apply(n,r)}finally{td=o}}static bind(e){let t=td;return function(){let r=td;try{return td=t,e.apply(this,arguments)}finally{td=r}}}static noContext(e,t,r){if(!td)return e.apply(r,t);{let n=td;try{return td=null,e.apply(r,t)}finally{td=n}}}}),{bind:tb,noContext:t_}=tm,tw=new tm,{hasOwnProperty:tS}=Object.prototype,tE=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function tO(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let tk=[];function tT(e,t){if(!e)throw Error(t||"assertion failure")}function tI(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function tx(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class tD{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,++tD.count}peek(){if(1===this.value.length&&!tN(this))return tj(this),this.value[0]}recompute(e){var t;return tT(!this.recomputing,"already recomputing"),tj(this),tN(this)&&(tM(this),tw.withValue(this,tR,[this,e]),function(e,t){if("function"==typeof e.subscribe)try{tO(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(this,e)&&(this.dirty=!1,tN(this)||(t=this,tC(t,tA)))),tx(this.value)}setDirty(){this.dirty||(this.dirty=!0,tC(this,tP),tO(this))}dispose(){this.setDirty(),tM(this),tC(this,(e,t)=>{e.setDirty(),tq(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=tk.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(tE(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),tk.push(this.deps),this.deps=null)}}function tj(e){let t=tw.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),tN(e)?tP(t,e):tA(t,e),t}function tR(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&&!tI(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 tN(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function tC(e,t){let r=e.parents.size;if(r){let n=tE(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function tP(e,t){tT(e.childValues.has(t)),tT(tN(t));let r=!tN(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=tk.pop()||new Set;e.dirtyChildren.add(t),r&&tC(e,tP)}function tA(e,t){tT(e.childValues.has(t)),tT(!tN(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):tI(r,t.value)||e.setDirty(),tF(e,t),tN(e)||tC(e,tA)}function tF(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(tk.length<100&&tk.push(r),e.dirtyChildren=null))}function tM(e){e.childValues.size>
10&&e.childValues.forEach((t,r)=>{tq(e,r)}),e.forgetDeps(),tT(null===e.dirtyChildren)}function tq(e,t){t.parents.delete(e),e.childValues.delete(t),tF(e,t)}tD.count=0;let tL={setDirty:!0,dispose:!0,forget:!0};function tV(e){let t=new Map,r=e&&e.subscribe;function n(e){let n=tw.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(tO(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){let n=t.get(e);if(n){let i=r&&tS.call(tL,r)?r:"setDirty";tE(n).forEach(e=>e[i]()),t.delete(e),tO(n)}},n}function tQ(...e){return(n||(n=new tc("function"==typeof WeakMap))).lookupArray(e)}let tB=new Set;function tz(e,{max:t=65536,keyArgs:r,makeCacheKey:n=tQ,normalizeResult:i,subscribe:o,cache:a=tf.e}=Object.create(null)){let s="function"==typeof a?new a(t,e=>e.dispose()):a,u=function(){let t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=s.get(t);a||(s.set(t,a=new tD(e)),a.normalizeResult=i,a.subscribe=o,a.forget=()=>s.delete(t));let u=a.recompute(Array.prototype.slice.call(arguments));return s.set(t,a),tB.add(s),tw.hasValue()||(tB.forEach(e=>e.clean()),tB.clear()),u};function c(e){let t=e&&s.get(e);t&&t.setDirty()}function l(e){let t=e&&s.get(e);if(t)return t.peek()}function f(e){return!!e&&s.delete(e)}return Object.defineProperty(u,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(u.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:o,cache:s}),u.dirtyKey=c,u.dirty=function(){c(n.apply(null,arguments))},u.peekKey=l,u.peek=function(){return l(n.apply(null,arguments))},u.forgetKey=f,u.forget=function(){return f(n.apply(null,arguments))},u.makeCacheKey=n,u.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(u)}var tG=r(20),tU=r(9869);function tW(e,t,r,n){var i=t.data,o=(0,d._T)(t,["data"]),a=r.data,s=(0,d._T)(r,["data"]);return(0,tG.Z)(o,s)&&function e(t,r,n,i){if(r===n)return!0;var o=new Set;return t.selections.every(function(t){if(o.has(t)||(o.add(t),!ej(t,i.variables)||tK(t)))return!0;if(ed(t)){var a=el(t),s=r&&r[a],u=n&&n[a],c=t.selectionSet;if(!c)return(0,tG.Z)(s,u);var l=Array.isArray(s),f=Array.isArray(u);if(l!==f)return!1;if(l&&f){var d=s.length;if(u.length!==d)return!1;for(var p=0;p<d;++p)if(!e(c,s[p],u[p],i))return!1;return!0}return e(c,s,u,i)}var h=H(t,i.fragmentMap);if(h)return!!tK(h)||e(h.selectionSet,r,n,i)})}(em(e).selectionSet,i,a,{fragmentMap:J(ey(e)),variables:n})}function tK(e){return!!e.directives&&e.directives.some(t$)}function t$(e){return"nonreactive"===e.name.value}var tJ=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=tz($,{max:Y.Q["cache.fragmentQueryDocuments"]||1e3,cache:tU.k})}return e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,d.pi)((0,d.pi)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t,r=this,n=e.fragment,i=e.fragmentName,o=e.from,a=e.optimistic,s=this.getFragmentDoc(n,i),u={returnPartialData:!0,id:"string"==typeof o?o:this.identify(o),query:s,optimistic:void 0===a||a};return new W(function(e){return r.watch((0,d.pi)((0,d.pi)({},u),{immediate:!0,callback:function(r){if(!(t&&tW(s,{data:null==t?void 0:t.result},{data:r.result}))){var n={data:r.result,complete:!!r.complete};r.missing&&(n.missing=eV(r.missing.map(function(e){return e.missing}))),t=r,e.next(n)}}}))})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,d.pi)((0,d.pi)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=(0,d._T)(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,i=e.fragmentName,o=(0,d._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(n,i),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var n=r.readQuery(e),i=t(n);return null==i?n:(r.writeQuery((0,d.pi)((0,d.pi)({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var n=r.readFragment(e),i=t(n);return null==i?n:(r.writeFragment((0,d.pi)((0,d.pi)({},e),{data:i})),i)}})},e}();!1!==globalThis.__DEV__&&(tJ.prototype.getMemoryInternals=Z.Kb);var tH=function(e){function t(r,n,i,o){var a,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var u=s.path.length-1;u>=0;--u)s.missing=((a={})[s.path[u]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,d.ZT)(t,e),t}(Error);let tX=()=>Object.create(null),{forEach:tY,slice:tZ}=Array.prototype,{hasOwnProperty:t0}=Object.prototype;class t1{constructor(e=!0,t=tX){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return tY.call(e,e=>t=t.getChildTrie(e)),t0.call(t,"data")?t.data:t.data=this.makeData(tZ.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(tZ.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 t1(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 t2(e){return e}var t3=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=eC.sy?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(t2,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),Object.assign(new e(function(e){return(t(e)?r:n).transformDocument(e)},{cache:!1}),{left:r,right:n})},e.prototype.resetCache=function(){var t=this;if(this.cached){var r=new t1(eC.mr);this.performWork=tz(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return(0,p.kG)(Array.isArray(n),67),r.lookupArray(n)},max:Y.Q["documentTransform.cache"],cache:tU.k})}},e.prototype.performWork=function(e){return ep(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var r=this;return Object.assign(new e(function(e){return t.transformDocument(r.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}(),t6=r(3712),t8=r(8702),t9=Object.prototype.hasOwnProperty;function t7(e){return null==e}function t4(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=t7(n)?t7(i)?void 0:{_id:i}:{id:n}),t7(n)&&!t7(i)&&(n=i),!t7(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var t5={dataIdFromObject:t4,addTypename:!0,resultCaching:!0,canonizeResults:!1};function re(e){var t=e.canonizeResults;return void 0===t?t5.canonizeResults:t}var rt=/^[_a-z][_0-9a-z]*/i;function rr(e){var t=e.match(rt);return t?t[0]:e}
1function rn(e){return(0,K.s)(e)&&!ei(e)&&!(0,eM.k)(e)}function ri(e,t){var r=J(ey(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var ro=Object.create(null),ra=function(){return ro},rs=Object.create(null),ru=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,t8.J)(ei(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return ei(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return en(e);if(ei(e))return e;var n=r.policies.identify(e)[0];if(n){var i=en(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,d.pi)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),t9.call(this.data,e)){var r=this.data[e];if(r&&t9.call(r,t))return r[t]}return"__typename"===t&&t9.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof rf?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),t9.call(this.data,e))?this.data[e]:this instanceof rf?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;ei(e)&&(e=e.__ref),ei(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(r=e):e,o="string"==typeof t?this.lookup(r=t):t;if(o){(0,p.kG)("string"==typeof r,1);var a=new eB(rp).merge(i,o);if(this.data[r]=a,a!==i&&(delete this.refs[r],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(o).forEach(function(e){if(!i||i[e]!==a[e]){s[e]=1;var t=rr(e);t===e||n.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||n instanceof rf||delete a[e]}}),s.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===a.__typename&&delete s.__typename,Object.keys(s).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),o=!1,a=!0,s={DELETE:ro,INVALIDATE:rs,isReference:ei,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||en(e)}:t,{store:r})}};if(Object.keys(n).forEach(function(u){var c=rr(u),l=n[u];if(void 0!==l){var f="function"==typeof t?t:t[u]||t[c];if(f){var h=f===ra?ro:f((0,t8.J)(l),(0,d.pi)((0,d.pi)({},s),{fieldName:c,storeFieldName:u,storage:r.getStorage(e,u)}));if(h===rs)r.group.dirty(e,u);else if(h===ro&&(h=void 0),h!==l&&(i[u]=h,o=!0,l=h,!1!==globalThis.__DEV__)){var v=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&p.kG.warn(2,e),!0};if(ei(h))v(h);else if(Array.isArray(h))for(var y=!1,g=void 0,m=0,b=h;m<b.length;m++){var _=b[m];if(ei(_)){if(y=!0,v(_))break}else"object"==typeof _&&_&&r.policies.identify(_)[0]&&(g=_);if(y&&void 0!==g){!1!==globalThis.__DEV__&&p.kG.warn(3,g);break}}}}void 0!==l&&(a=!1)}}),o)return this.merge(e,i),a&&(this instanceof rf?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=ra,n):ra)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(t9.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof rf&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){t9.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&t9.call(e,r)||t.delete(r)}),e){var r=e.__META,n=(0,d._T)(e,["__META"]);
1Object.keys(n).forEach(function(e){t.merge(e,n[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof rf?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){t9.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof rf;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!t9.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){ei(e)&&(t[e.__ref]=!0),(0,K.s)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,K.s)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),rc=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?tV():null,this.keyMaker=new t1(eC.mr)}
1,e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=rr(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function rl(e,t){rh(e)&&e.group.depend(t,"__exists")}o=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,o=e.call(this,r,new rc(void 0===n||n))||this;return o.stump=new rd(o),o.storageTrie=new t1(eC.mr),i&&o.replace(i),o}return(0,d.ZT)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(i=ru||(ru={})),i.Root=o;var rf=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return(0,d.ZT)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){(0,tG.D)(n[r],i[r])||t.group.dirty(e,r)}
1):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,d.pi)((0,d.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return t9.call(this.data,t)?(0,d.pi)((0,d.pi)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(ru),rd=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new rc(t.group.caching,t.group))||this}return(0,d.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(rf);function rp(e,t,r){var n=e[r],i=t[r];return(0,tG.D)(n,i)?n:i}function rh(e){return!!(e instanceof ru&&e.group.caching)}var rv=function(){function e(){this.known=new(eC.sy?WeakSet:Set),this.pool=new t1(eC.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,K.s)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,K.s)(e)){var t=(0,K.s)(e)?(0,eM.k)(e)?e.slice(0):(0,d.pi)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,K.s)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var n=e.map(this.admit,this),i=this.pool.lookupArray(n);return i.array||(this.known.add(i.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var o=Object.getPrototypeOf(e),a=[o],s=this.sortedKeys(e);a.push(s.json);var u=a.length;s.sorted.forEach(function(r){a.push(t.admit(e[r]))});var i=this.pool.lookupArray(a);if(!i.object){var c=i.object=Object.create(o);this.known.add(c),s.sorted.forEach(function(e,t){c[e]=a[u+t]}),!1!==globalThis.__DEV__&&Object.freeze(c)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}();function ry(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var rg=function(){function e(e){var t=this;this.knownResults=new(eC.mr?WeakMap:Map),this.config=(0,t6.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:re(e)}),this.canon=e.canon||new rv,this.executeSelectionSet=tz(function(e){var r,n=e.context.canonizeResults,i=ry(e);i[3]=!n;var o=(r=t.executeSelectionSet).peek.apply(r,i);return o?n?(0,d.pi)((0,d.pi)({},o),{result:t.canon.admit(o.result)}):o:(rl(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||Y.Q["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:ry,makeCacheKey:function(e,t,r,n){if(rh(r.store))return r.store.makeCacheKey(e,ei(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=tz(function(e){return rl(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||Y.Q["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(rh(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new rv},e.prototype.diffQueryAgainstStore=function(e){var t,r=e.store,n=e.query,i=e.rootId,o=e.variables,a=e.returnPartialData,s=e.canonizeResults,u=void 0===s?this.config.canonizeResults:s,c=this.config.cache.policies;o=(0,d.pi)((0,d.pi)({},eb(eg(n))),o);var l=en(void 0===i?"ROOT_QUERY":i),f=this.executeSelectionSet({selectionSet:em(n).selectionSet,objectOrReference:l,enclosingRef:l,context:(0,d.pi)({store:r,query:n,policies:c,variables:o,varString:ee(o),canonizeResults:u},ri(n,this.config.fragments))});if(f.missing&&(t=[new tH(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(f.missing),f.missing,n,o)],!(void 0===a||a)))throw t[0];return{result:f.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,r,n){if(rh(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,r=this,n=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,a=e.context;if(ei(i)&&!a.policies.rootTypenamesById[i.__ref]&&!a.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var s=a.variables,u=a.policies,c=a.store.getFieldValue(i,"__typename"),l=[],f=new eB;function d(e,r){var n;return e.missing&&(t=f.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof c&&!u.rootIdsByTypename[c]&&l.push({__typename:c}
1);var h=new Set(n.selections);h.forEach(function(e){var n,v;if(ej(e,s)){if(ed(e)){var y=u.readField({fieldName:e.name.value,field:e,variables:a.variables,from:i},a),g=el(e);void 0===y?tt.added(e)||(t=f.merge(t,((n={})[g]="Can't find field '".concat(e.name.value,"' on ").concat(ei(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),n))):(0,eM.k)(y)?y.length>0&&(y=d(r.executeSubSelectedArray({field:e,array:y,enclosingRef:o,context:a}),g)):e.selectionSet?null!=y&&(y=d(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:y,enclosingRef:ei(y)?y:o,context:a}),g)):a.canonizeResults&&(y=r.canon.pass(y)),void 0!==y&&l.push(((v={})[g]=y,v))}else{var m=H(e,a.lookupFragment);if(!m&&e.kind===eI.h.FRAGMENT_SPREAD)throw(0,p._K)(9,e.name.value);m&&u.fragmentMatches(m,c)&&m.selectionSet.selections.forEach(h.add,h)}}});var v={result:eV(l),missing:t},y=a.canonizeResults?this.canon.admit(v):(0,t8.J)(v);return y.result&&this.knownResults.set(y.result,n),y},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.enclosingRef,a=e.context,s=new eB;function u(e,r){var n;return e.missing&&(t=s.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map(function(e,t){return null===e?null:(0,eM.k)(e)?u(r.executeSubSelectedArray({field:n,array:e,enclosingRef:o,context:a}),t):n.selectionSet?u(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:ei(e)?e:o,context:a}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(r){(0,K.s)(r)&&((0,p.kG)(!ei(r),10,ei(r)?e.get(r.__ref,"__typename"):r&&r.__typename,t.name.value),Object.values(r).forEach(n.add,n))})}}(a.store,n,e),e)}),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),rm=Object.prototype.toString;function rb(e,t){switch(rm.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach(function(e,n){r[n]=rb(e,t)}),r;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var n=Object.create(Object.getPrototypeOf(e));return t.set(e,n),Object.keys(e).forEach(function(r){n[r]=rb(e[r],t)}),n;default:return e}}var r_=r(3887),rw=new tm,rS=new WeakMap;function rE(e){var t=rS.get(e);return t||rS.set(e,t={vars:new Set,dep:tV()}),t}function rO(e){rE(e).vars.forEach(function(t){return t.forgetCache(e)})}function rk(e){var t=new Set,r=new Set,n=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(e){rE(e).dep.dirty(n),e.broadcastWatches&&e.broadcastWatches()});var a=Array.from(r);r.clear(),a.forEach(function(t){return t(e)})}}else{var s=rw.getValue();s&&(i(s),rE(s).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var i=n.attachCache=function(e){return t.add(e),rE(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}var rT=Object.create(null);function rI(e){var t=JSON.stringify(e);return rT[t]||(rT[t]=Object.create(null))}function rx(e){var t=rI(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},i=r.keyObject=rj(e,function(e){var i=rN(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&t9.call(t,e[0])&&(i=rN(t,e,rR)),(0,p.kG)(void 0!==i,4,e.join("."),t),i});return"".concat(r.typename,":").concat(JSON.stringify(i))})}function rD(e){var t=rI(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,a=JSON.stringify(rj(e,function(e){var r=e[0],o=r.charAt(0);if("@"===o){if(n&&(0,eM.O)(n.directives)){var a=r.slice(1),s=n.directives.find(function(e){return e.name.value===a}),u=s&&ec(s,i);return u&&rN(u,e.slice(1))}return}if("$"===o){var c=r.slice(1);if(i&&t9.call(i,c)){var l=e.slice(0);return l[0]=c,rN(i,l)}return}if(t)return rN(t,e)}));return(t||"{}"!==a)&&(o+=":"+a),o})}function rj(e,t){var r=new eB;return(function e(t){var r=rI(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,o){(0,eM.k)(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),(0,eM.k)(t[o+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce(function(e,n){var i,o=t(n);if(void 0!==o){for(var a=n.length-1;a>=0;--a)(i={})[n[a]]=o,o=i;e=r.merge(e,o)}return e},Object.create(null))}function rR(e,t){return e[t]}function rN(e,t,r){return r=r||rR,function e(t){return(0,K.s)(t)?(0,eM.k)(t)?t.map(e):rj(Object.keys(t).sort(),function(e){return rN(t,e)}):t}
1(t.reduce(function e(t,n){return(0,eM.k)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}function rC(e){return void 0!==e.args?e.args:e.field?ec(e.field,e.variables):null}var rP=function(){},rA=function(e,t){return t.fieldName},rF=function(e,t,r){return(0,r.mergeObjects)(e,t)},rM=function(e,t){return t},rq=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,d.pi)({dataIdFromObject:t4},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)}return e.prototype.identify=function(e,t){var r,n,i=this,o=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a=t&&t.storeObject||e,s=(0,d.pi)((0,d.pi)({},t),{typename:o,storeObject:a,readField:t&&t.readField||function(){var e=rV(arguments,a);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),u=o&&this.getTypePolicy(o),c=u&&u.keyFn||this.config.dataIdFromObject;c;){var l=c((0,d.pi)((0,d.pi)({},e),a),s);if((0,eM.k)(l))c=rx(l);else{n=l;break}}return n=n?String(n):void 0,s.keyObject?[n,s.keyObject]:[n]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var n=e[r],i=n.queryType,o=n.mutationType,a=n.subscriptionType,s=(0,d._T)(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),o&&t.setRootTypename("Mutation",r),a&&t.setRootTypename("Subscription",r),t9.call(t.toBeAdded,r)?t.toBeAdded[r].push(s):t.toBeAdded[r]=[s]})},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?rF:!1===t?rM:e.merge}a(n,t.merge),n.keyFn=!1===i?rP:(0,eM.k)(i)?rx(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEach(function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;n.keyFn=!1===s?rA:(0,eM.k)(s)?rD(s):"function"==typeof s?s:n.keyFn,"function"==typeof u&&(n.read=u),a(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||rA)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,p.kG)(!n||n===e,5,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(rt);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!t9.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(r,i){if(r.test(e)){var o=t.supertypeMap.get(i);o&&o.forEach(function(e){return n.add(e)})}})),n&&n.size&&n.forEach(function(e){var n=t.getTypePolicy(e),i=n.fields;Object.assign(r,(0,d._T)(n,["fields"])),Object.assign(r.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(r){t.updateTypePolicy(e,r)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>s.indexOf(t)&&s.push(t)},c=!!(r&&this.fuzzySubtypes.size),l=!1,f=0;f<s.length;++f){var d=s[f];
1if(d.has(o))return a.has(o)||(l&&!1!==globalThis.__DEV__&&p.kG.warn(6,t,o),a.add(o)),!0;d.forEach(u),c&&f===s.length-1&&function e(t,r,n){return!!(0,K.s)(r)&&((0,eM.k)(r)?r.every(function(r){return e(t,r,n)}):t.selections.every(function(t){if(ed(t)&&ej(t,n)){var i=el(t);return t9.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))}(e.selectionSet,r,n)&&(c=!1,l=!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&u(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r,n,i,o,a=e.typename,s=e.fieldName,u=this.getFieldPolicy(a,s,!1),c=u&&u.keyFn;if(c&&a)for(var l={typename:a,fieldName:s,field:e.field||null,variables:e.variables},f=rC(e);c;){var d=c(f,l);if((0,eM.k)(d))c=rD(d);else{o=d||s;break}}return void 0===o&&(o=e.field?(t=e.field,r=e.variables,n=null,t.directives&&(n={},t.directives.forEach(function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach(function(t){var i=t.name,o=t.value;return eo(n[e.name.value],i,o,r)})})),i=null,t.arguments&&t.arguments.length&&(i={},t.arguments.forEach(function(e){var t=e.name,n=e.value;return eo(i,t,n,r)})),eu(t.name.value,i,n)):eu(s,rC(e))),!1===o?s:s===rr(o)?o:s+":"+o},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),o=rr(i),a=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,o,!1),u=s&&s.read;if(u){var c=rL(this,r,e,t,t.store.getStorage(ei(r)?r.__ref:r,i));return rw.withValue(this.cache,u,[a,c])}return a}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var o=r.field,a=r.typename,s=r.merge;return s===rF?rQ(n.store)(e,t):s===rM?t:(n.overwrite&&(e=void 0),s(e,t,rL(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function rL(e,t,r,n,i){var o=e.getStoreFieldName(r),a=rr(o),s=r.variables||n.variables,u=n.store,c=u.toReference,l=u.canRead;return{args:rC(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:ei,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(rV(arguments,t,s),n)},mergeObjects:rQ(n.store)}}function rV(e,t,r){var n,i=e[0],o=e[1],a=e.length;return"string"==typeof i?n={fieldName:i,from:a>1?o:t}:(n=(0,d.pi)({},i),t9.call(n,"from")||(n.from=t)),!1!==globalThis.__DEV__&&void 0===n.from&&!1!==globalThis.__DEV__&&p.kG.warn(7,(0,r_.v)(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function rQ(e){return function(t,r){if((0,eM.k)(t)||(0,eM.k)(r))throw(0,p._K)(8);if((0,K.s)(t)&&(0,K.s)(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if(ei(t)&&rn(r))return e.merge(t.__ref,r),t;if(rn(t)&&ei(r))return e.merge(t,r.__ref),r;if(rn(t)&&rn(r))return(0,d.pi)((0,d.pi)({},t),r)}return r}}function rB(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:(0,d.pi)((0,d.pi)({},e),{clientOnly:t,deferred:r})),i}var rz=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,n=t.query,i=t.result,o=t.dataId,a=t.variables,s=t.overwrite,u=eh(n),c=new eB;a=(0,d.pi)((0,d.pi)({},eb(u)),a);var l=(0,d.pi)((0,d.pi)({store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:a,varString:ee(a)},ri(n,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),f=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:l});if(!ei(f))throw(0,p._K)(11,i);return l.incomingById.forEach(function(t,n){var i=t.storeObject,o=t.mergeTree,a=t.fieldNodeSet,s=en(n);if(o&&o.map.size){var u=r.applyMerges(o,s,i,l);if(ei(u))return;i=u}if(!1!==globalThis.__DEV__&&!l.overwrite){var c=Object.create(null);a.forEach(function(e){e.selectionSet&&(c[e.name.value]=!0)});var f=function(e){var t=o&&o.map.get(e);return!!(t&&t.info&&t.info.merge)};
1Object.keys(i).forEach(function(e){!0!==c[rr(e)]||f(e)||function(e,t,r,n){var i=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},o=i(e);if(o){var a=i(t);if(!(!a||ei(o)||(0,tG.D)(o,a)||Object.keys(o).every(function(e){return void 0!==n.getFieldValue(a,e)}))){var s=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),u=rr(r),c="".concat(s,".").concat(u);if(!r$.has(c)){r$.add(c);var l=[];(0,eM.k)(o)||(0,eM.k)(a)||[o,a].forEach(function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||l.includes(t)||l.push(t)}),!1!==globalThis.__DEV__&&p.kG.warn(14,u,s,l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"",c,(0,d.pi)({},o),(0,d.pi)({},a))}}}}(s,i,e,l.store)})}e.merge(n,i)}),e.retain(f.__ref),f},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,s=this.cache.policies,u=Object.create(null),c=r&&s.rootTypenamesById[r]||ef(n,i,o.fragmentMap)||r&&o.store.get(r,"__typename");"string"==typeof c&&(u.__typename=c);var l=function(){var e=rV(arguments,u,o.variables);if(ei(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var r=s.readField((0,d.pi)((0,d.pi)({},e),{from:t.storeObject}),o);if(void 0!==r)return r}}return s.readField(e,o)},f=new Set;this.flattenFields(i,n,o,c).forEach(function(e,r){var i,o=n[el(r)];if(f.add(r),void 0!==o){var d=s.getStoreFieldName({typename:c,fieldName:r.name.value,field:r,variables:e.variables}),h=rU(a,d),v=t.processFieldValue(o,r,r.selectionSet?rB(e,!1,!1):e,h),y=void 0;r.selectionSet&&(ei(v)||rn(v))&&(y=l("__typename",v));var g=s.getMergeFunction(c,r.name.value,y);g?h.info={field:r,typename:c,merge:g}:rK(a,d),u=e.merge(u,((i={})[d]=v,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||tt.added(r)||s.getReadFunction(c,r.name.value)||!1===globalThis.__DEV__||p.kG.error(12,el(r),n)});try{var h=s.identify(n,{typename:c,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:u,readField:l}),v=h[0],y=h[1];r=r||v,y&&(u=o.merge(u,y))}catch(e){if(!r)throw e}if("string"==typeof r){var g=en(r),m=o.written[r]||(o.written[r]=[]);if(m.indexOf(i)>=0||(m.push(i),this.reader&&this.reader.isFresh(n,g,i,o)))return g;var b=o.incomingById.get(r);return b?(b.storeObject=o.merge(b.storeObject,u),b.mergeTree=function e(t,r){if(t===r||!r||rW(r))return t;if(!t||rW(t))return r;var n=t.info&&r.info?(0,d.pi)((0,d.pi)({},t.info),r.info):t.info||r.info,i=t.map.size&&r.map.size,o={info:n,map:i?new Map:t.map.size?t.map:r.map};if(i){var a=new Set(r.map.keys());t.map.forEach(function(t,n){o.map.set(n,e(t,r.map.get(n))),a.delete(n)}),a.forEach(function(n){o.map.set(n,e(r.map.get(n),t.map.get(n)))})}return o}(b.mergeTree,a),f.forEach(function(e){return b.fieldNodeSet.add(e)})):o.incomingById.set(r,{storeObject:u,mergeTree:rW(a)?void 0:a,fieldNodeSet:f}),g}return u},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,eM.k)(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,r,rU(n,o));return rK(n,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?rb(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=ef(t,e,r.fragmentMap));var i=new Map,o=this.cache.policies,a=new t1(!1);return function e(s,u){var c=a.lookup(s,u.clientOnly,u.deferred);c.visited||(c.visited=!0,s.selections.forEach(function(a){if(ej(a,r.variables)){var s=u.clientOnly,c=u.deferred;if(!(s&&c)&&(0,eM.O)(a.directives)&&a.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var n=ec(e,r.variables);n&&!1===n.if||(c=!0)}}),ed(a)){var l=i.get(a);l&&(s=s&&l.clientOnly,c=c&&l.deferred),i.set(a,rB(r,s,c))}else{var f=H(a,r.lookupFragment);if(!f&&a.kind===eI.h.FRAGMENT_SPREAD)throw(0,p._K)(13,a.name.value);f&&o.fragmentMatches(f,n,t,r.variables)&&e(f.selectionSet,rB(r,s,c))}}}))}(e,r),i},e.prototype.applyMerges=function(e,t,r,n,i){var o=this;if(e.map.size&&!ei(r)){var a,s,u=!(0,eM.k)(r)&&(ei(t)||rn(t))?t:void 0,c=r;u&&!i&&(i=[ei(u)?u.__ref:u]);
1var l=function(e,t){return(0,eM.k)(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var r=l(u,t),a=l(c,t);if(void 0!==a){i&&i.push(t);var f=o.applyMerges(e,r,a,n,i);f!==a&&(s=s||new Map).set(t,f),i&&(0,p.kG)(i.pop()===t)}}),s&&(r=(0,eM.k)(c)?c.slice(0):(0,d.pi)({},c),s.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(a=n.store).getStorage.apply(a,i)):r},e}(),rG=[];function rU(e,t){var r=e.map;return r.has(t)||r.set(t,rG.pop()||{map:new Map}),r.get(t)}function rW(e){return!e||!(e.info||e.map.size)}function rK(e,t){var r=e.map,n=r.get(t);n&&rW(n)&&(rG.push(n),r.delete(t))}var r$=new Set,rJ=function(e){function t(t){void 0===t&&(t={});var r,n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new t3(tt),n.assumeImmutableResults=!0,n.makeVar=rk,n.txCount=0,n.config=(r=t,(0,t6.o)(t5,r)),n.addTypename=!!n.config.addTypename,n.policies=new rq({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,d.ZT)(t,e),t.prototype.init=function(){var e=this.data=new ru.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new rz(this,this.storeReader=new rg({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:re(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=tz(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize||Y.Q["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(rh(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,ee({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,d.pi)((0,d.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof tH)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(t9.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,d.pi)((0,d.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||function(e){rE(e).vars.forEach(function(t){return t.attachCache(e)})}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&rO(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){ee.reset(),e6.reset(),this.addTypenameTransform.resetCache(),null===(t=this.config.fragments)||void 0===t||t.resetCaches();var t,r=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),r},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(ei(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&p.kG.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(t9.call(e,"id"))return!1;e=(0,d.pi)((0,d.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),ee.reset(),e&&e.discardWatches?(this.watches.forEac
1h(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),rO(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,n=e.update,i=e.optimistic,o=void 0===i||i,a=e.removeOptimistic,s=e.onWatchUpdated,u=function(e){var i=r.data,o=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=i,r.optimisticData=o}},c=new Set;return s&&!this.txCount&&this.broadcastWatches((0,d.pi)((0,d.pi)({},e),{onWatchUpdated:function(e){return c.add(e),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,u):!1===o?u(this.data):u(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),s&&c.size?(this.broadcastWatches((0,d.pi)((0,d.pi)({},e),{onWatchUpdated:function(e,t){var r=s.call(this,e,t);return!1!==r&&c.delete(e),r}})),c.size&&c.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,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,tG.D)(r.result,n.result)||e.callback(e.lastDiff=n,r))},t}(tJ);!1!==globalThis.__DEV__&&(rJ.prototype.getMemoryInternals=Z.q4);var rH=eE.execute,rX=r(9379),rY=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,ti(t).request)||this;return r.options=t,r}return(0,d.ZT)(t,e),t}(eE);function rZ(e,t,r){return new W(function(n){var i={then:function(e){return new Promise(function(t){return t(e())})}};function o(e,t){return function(r){if(e){var o=function(){return n.closed?0:e(r)};i=i.then(o,o).then(function(e){return n.next(e)},function(e){return n.error(e)})}else n[t](r)}}var a={next:o(t,"next"),error:o(r,"error"),complete:function(){i.then(function(){return n.complete()})}},s=e.subscribe(a);return function(){return s.unsubscribe()}})}function r0(e){var t=r1(e);return(0,eM.O)(t)}function r1(e){var t=(0,eM.O)(e.errors)?e.errors.slice(0):[];return ez(e)&&(0,eM.O)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var r2=r(897);function r3(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}function r6(e){function t(t){Object.defineProperty(e,t,{value:W})}return eC.aS&&Symbol.species&&t(Symbol.species),t("@@species"),e}function r8(e){return e&&"function"==typeof e.then}var r9=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),r3(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),r3(r.observers,"error",e))},complete:function(){var e=r.sub,t=r.sources;if(null!==e){var n=(void 0===t?[]:t).shift();n?r8(n)?n.then(function(e){return r.sub=e.subscribe(r.handlers)},r.handlers.error):r.sub=n.subscribe(r.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),r3(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new W(t)]),r8(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,d.ZT)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach(function(r){return r(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},t}(W);r6(r9);var r7=r(1644),r4=Object.assign,r5=Object.hasOwnProperty,ne=function(e){function t(t){var r=t.queryManager,n=t.queryInfo,i=t.options,o=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=nr)}catch(e){}var r=!o.observers.size;o.observers.add(e);var n=o.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(n.result),r&&o.reobserve().catch(function(){}),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}})||this;o.observers=new Set,o.subscriptions=new Set,o.queryInfo=n,o.queryManager=r,o.waitForOwnResult=ni(i.fetchPolicy),o.isTornDown=!1;var a=r.defaultOptions.watchQuery,s=(void 0===a?{}:a).fetchPolicy,u=void 0===s?"cache-first":s,c=i.fetchPolicy,l=void 0===c?u:c,f=i.initialFetchPolicy,p=void 0===f?"standby"===l?u:l:f;o.options=(0,d.pi)((0,d.pi)({},i),{initialFetchPolicy:p,fetchPolicy:l}),o.queryId=n.queryId||r.generateQueryId();var h=eh(o.query);return o.queryName=h&&h.name&&h.name.value,o}return(0,d.ZT)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||r7.Ie.ready,n=(0,d.pi)((0,d.pi)({},t),{loading:(0,r7.Oj)(r),networkStatus:r}),i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if(ni(o)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var a=this.queryInfo.getDiff();(a.complete||this.options.returnPartialData)&&(n.data=a.result),(0,tG.D)(n.data,{})&&(n.data=void 0),a.complete?(delete n.partial,a.complete&&n.networkStatus===r7.Ie.loading&&("cache-first"===o||"cac
1he-only"===o)&&(n.networkStatus=r7.Ie.ready,n.loading=!1)):n.partial=!0,!1===globalThis.__DEV__||a.complete||this.options.partialRefetch||n.loading||n.data||n.error||nn(a.missing)}return e&&this.updateLastResult(n),n},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!tW(this.query,this.last.result,e,this.variables):!(0,tG.D)(this.last.result,e))||t&&!(0,tG.D)(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,tG.D)(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0},n=this.options.fetchPolicy;if("cache-and-network"===n?r.fetchPolicy=n:"no-cache"===n?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",!1!==globalThis.__DEV__&&e&&r5.call(e,"variables")){var i=eg(this.query),o=i.variableDefinitions;o&&o.some(function(e){return"variables"===e.variable.name.value})||!1===globalThis.__DEV__||p.kG.warn(20,e,(null===(t=i.name)||void 0===t?void 0:t.value)||i)}return e&&!(0,tG.D)(this.options.variables,e)&&(r.variables=this.options.variables=(0,d.pi)((0,d.pi)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,r7.Ie.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,d.pi)((0,d.pi)({},e.query?e:(0,d.pi)((0,d.pi)((0,d.pi)((0,d.pi)({},this.options),{query:this.options.query}),e),{variables:(0,d.pi)((0,d.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});r.query=this.transformDocument(r.query);var n=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):r.query;var i=this.queryInfo,o=i.networkStatus;i.networkStatus=r7.Ie.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var a=new Set;return this.queryManager.fetchQuery(n,r,r7.Ie.fetchMore).then(function(s){return t.queryManager.removeQuery(n),i.networkStatus===r7.Ie.fetchMore&&(i.networkStatus=o),t.queryManager.cache.batch({update:function(n){var i=e.updateQuery;i?n.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return i(e,{fetchMoreResult:s.data,variables:r.variables})}):n.writeQuery({query:r.query,variables:r.variables,data:s.data})},onWatchUpdated:function(e){a.add(e.query)}}),s}).finally(function(){a.has(t.query)||nt(t)})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery(function(e,t){return n(e,{subscriptionData:r,variables:t.variables})})},error:function(t){if(e.onError){e.onError(t);return}!1!==globalThis.__DEV__&&p.kG.error(21,t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=(0,t6.o)(this.options,e||{});r4(this.options,t)},t.prototype.setVariables=function(e){return(0,tG.D)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},r7.Ie.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,r=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,o=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:o}):"variables-changed"===e?t.fetchPolicy=o:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,r){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t,r)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(!r||!this.hasObservers()){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==r){(0,p.kG)(r,22),(t||(this.pollingInfo={})).interval=r;var n=function(){var t,r;e.pollingInfo&&((0,r7.Oj)(e.queryInfo.networkStatus)||(null===(r=(t=e.options).skipPollAttempt)||void 0===r?void 0:r.call(t))?i():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},r7.Ie.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};i()}}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var r=this.getLastError();return r&&this.last&&!(0,tG.D)(t,this.last.variables)&&(r=void 0),this.last=(0,d.pi)({result:this.queryManager.assumeImmutableResults?e:rb(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;
1var n=t===r7.Ie.refetch||t===r7.Ie.fetchMore||t===r7.Ie.poll,i=this.options.variables,o=this.options.fetchPolicy,a=(0,t6.o)(this.options,e||{}),s=n?a:r4(this.options,a),u=this.transformDocument(s.query);this.lastQuery=u,!n&&(this.updatePolling(),e&&e.variables&&!(0,tG.D)(e.variables,i)&&"standby"!==s.fetchPolicy&&s.fetchPolicy===o&&(this.applyNextFetchPolicy("variables-changed",s),void 0===t&&(t=r7.Ie.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=ni(s.fetchPolicy));var c=function(){r.concast===p&&(r.waitForOwnResult=!1)},l=s.variables&&(0,d.pi)({},s.variables),f=this.fetch(s,t,u),p=f.concast,h=f.fromLink,v={next:function(e){(0,tG.D)(r.variables,l)&&(c(),r.reportResult(e,l))},error:function(e){(0,tG.D)(r.variables,l)&&(c(),r.reportError(e,l))}};return n||!h&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=p,this.observer=v),p.addObserver(v),p},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.last;this.resetLastResults();var n=this.subscribe.apply(this,e);return this.last=r,n},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError(),n=this.isDifferentFromLastResult(e,t);(r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(r||n)&&r3(this.observers,"next",e)},t.prototype.reportError=function(e,t){var r=(0,d.pi)((0,d.pi)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:r7.Ie.error,loading:!1});this.updateLastResult(r,t),r3(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t}(W);function nt(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,t){return(this.nextFetchPolicy=n,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(e,t):r}}):e.reobserve()}function nr(e){!1!==globalThis.__DEV__&&p.kG.error(23,e.message,e.stack)}function nn(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&p.kG.debug(24,e)}function ni(e){return"network-only"===e||"no-cache"===e||"standby"===e}function no(e){return e.kind===eI.h.FIELD||e.kind===eI.h.FRAGMENT_SPREAD||e.kind===eI.h.INLINE_FRAGMENT}r6(ne);var na=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=eL(t.resolvers,e)}):this.resolvers=eL(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return(0,d.mG)(this,arguments,void 0,function(e){var t=e.document,r=e.remoteResult,n=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return(0,d.Jh)(this,function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,a).then(function(e){return(0,d.pi)((0,d.pi)({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return eR(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return tr(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,d.pi)((0,d.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,d.mG)(this,arguments,void 0,function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,d.Jh)(this,function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,d.pi)((0,d.pi)({},t),e.exportedVariables)})]:[2,(0,d.pi)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return eD(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return ex}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:"query"===em(e).operation?e:eD(e,{OperationDefinition:{enter:function(e){return(0,d.pi)((0,d.pi)({},e),{operation:"query"})}}}),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,d.mG)(this,arguments,void 0,function(e,t,r,n,i,o){var a,s,u,c,l,f,p,h,v;return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),(0,d.Jh)(this,function(y){return a=em(e),s=J(ey(e)),u=this.collectSelectionsToResolve(a,s),l=(c=a.operation)?c.charAt(0).toUpperCase()+c.slice(1):"Query",f=this,p=f.cache,h=f.client,v={fragmentMap:s,context:(0,d.pi)((0,d.pi)({},r),{cache:p,client:h}),variables:n,fragmentMatcher:i,defaultOperationType:l,exportedVariables:{},selectionsToResolve:u,onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,!1,t,v).then(function(e){return{result:e,exportedVariables:v.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,n){return(0,d.mG)(this,void 0,void 0,function(){var i,o,a,s,u,c=this;return(0,d.Jh)(this,function(l){return i=n.fragmentMap,o=n.context,a=n.variables,s=[r],u=function(e){return(0,d.mG)(c,void 0,void 0,function(){var u,c;return(0,d.Jh)(this,function(l){return(t||n.selectionsToResolve.has(e))&&ej(e,a)?ed(e)?[2,this.resolveField(e,t,r,n).then(function(t){var r;void 0!==t&&s.push(((r={})[el(e)]=t,r))})]:("InlineFragment"===e.kind?u=e:(u=i[e.name.value],(0,p.kG)(u,18,e.name.value)),u&&u.typeCondition&&(c=u.typeCondition.name.value,n.fragmentMatcher(r,c,o))?[2,this.resolveSelectionSet(u.selectionSet,t,r,n).then(function(e){s.push(e)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(u)).then(function(){return eV(s)})]})})},e.prototype.resolveField=function(e,t,r,n){return(0,d.mG)(this,void 0,void 0,function(){var i,o,a,s,u,c,l,f,p,h=this;return(0,d.Jh)(this,function(d){return r?(i=n.variables,s=(o=e.name.value)!==(a=el(e)),c=Promise.resolve(u=r[a
1]||r[o]),(!n.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(l=r.__typename||n.defaultOperationType,(f=this.resolvers&&this.resolvers[l])&&(p=f[s?o:a])&&(c=Promise.resolve(rw.withValue(this.cache,p,[r,ec(e,i),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,c.then(function(r){if(void 0===r&&(r=u),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=r)})}),!e.selectionSet||null==r)return r;var i,o,a=null!==(o=null===(i=e.directives)||void 0===i?void 0:i.some(function(e){return"client"===e.name.value}))&&void 0!==o&&o;return Array.isArray(r)?h.resolveSubSelectedArray(e,t||a,r,n):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t||a,r,n):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(i){if(!n.has(i)){var o=new Set;n.set(i,o),eD(i,{Directive:function(e,t,n,i,a){"client"===e.name.value&&a.forEach(function(e){r(e)&&no(e)&&o.add(e)})},FragmentSpread:function(n,i,a,s,u){var c=t[n.name.value];(0,p.kG)(c,19,n.name.value);var l=e(c);l.size>0&&(u.forEach(function(e){r(e)&&no(e)&&o.add(e)}),o.add(n),l.forEach(function(e){o.add(e)}))}})}return n.get(i)}(e)},e}(),ns=new(eC.mr?WeakMap:Map);function nu(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return ns.set(e,(ns.get(e)+1)%1e15),r.apply(this,arguments)})}function nc(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var nl=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;ns.has(r)||(ns.set(r,0),nu(r,"evict"),nu(r,"modify"),nu(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||r7.Ie.loading;return this.variables&&this.networkStatus!==r7.Ie.loading&&!(0,tG.D)(this.variables,e.variables)&&(t=r7.Ie.setVariables),(0,tG.D)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){nc(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&(0,tG.D)(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(e);return this.updateLastDiff(r,e),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r=this,n=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&(null===(t=this.observableQuery)||void 0===t?void 0:t.getLastError()))&&(this.updateLastDiff(e),this.dirty||(0,tG.D)(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return r.notify()},0))))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():nt(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;
1nc(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,r7.Oj)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var n=(0,d.pi)((0,d.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,tG.D)(n,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=n))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===ns.get(this.cache)&&(0,tG.D)(t,r.variables)&&(0,tG.D)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,o=new eB,a=(0,eM.O)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,eM.O)(e.incremental)){var s=eG(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=o.merge(u.result,e.data)}this.graphQLErrors=a,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(nf(e,r.errorPolicy)?this.cache.performTransaction(function(o){if(i.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:ns.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var a=i.getDiffOptions(r.variables),s=o.diff(a);!i.stopped&&(0,tG.D)(i.variables,r.variables)&&i.updateWatch(r.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=r7.Ie.ready},e.prototype.markError=function(e){return this.networkStatus=r7.Ie.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function nf(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!r0(e);return!n&&r&&e.data&&(n=!0),n}var nd=Object.prototype.hasOwnProperty,np=Object.create(null),nh=function(){function e(e){var t=e.cache,r=e.link,n=e.defaultOptions,i=e.documentTransform,o=e.queryDeduplication,a=e.onBroadcast,s=e.ssrMode,u=e.clientAwareness,c=e.localState,l=e.assumeImmutableResults,f=void 0===l?!!t.assumeImmutableResults:l,d=e.defaultContext,p=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new X.s(Y.Q["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new t1(!1);var h=new t3(function(e){return p.cache.transformDocument(e)},{cache:!1});this.cache=t,this.link=r,this.defaultOptions=n||Object.create(null),this.queryDeduplication=void 0!==o&&o,this.clientAwareness=void 0===u?{}:u,this.localState=c||new na({cache:t}),this.ssrMode=void 0!==s&&s,this.assumeImmutableResults=f,this.documentTransform=i?h.concat(i).concat(h):h,this.defaultContext=d||Object.create(null),(this.onBroadcast=a)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches((0,p._K)(25))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,d.mG)(this,arguments,void 0,function(e){var t,r,n,i,o,a,s,u=e.mutation,c=e.variables,l=e.optimisticResponse,f=e.updateQueries,h=e.refetchQueries,v=void 0===h?[]:h,y=e.awaitRefetchQueries,g=void 0!==y&&y,m=e.update,b=e.onQueryUpdated,_=e.fetchPolicy,w=void 0===_?(null===(a=this.defaultOptions.mutate)||void 0===a?void 0:a.fetchPolicy)||"network-only":_,S=e.errorPolicy,E=void 0===S?(null===(s=this.defaultOptions.mutate)||void 0===s?void 0:s.errorPolicy)||"none":S,O=e.keepRootFields,k=e.context;return(0,d.Jh)(this,function(e){switch(e.label){case 0:if((0,p.kG)(u,26),(0,p.kG)("network-only"===w||"no-cache"===w,27),t=this.generateMutationId(),u=this.cache.transformForLink(this.transform(u)),r=this.getDocumentInfo(u).hasClientExports,c=this.getVariables(u,c),!r)return[3,2];return[4,this.localState.addExportedVariables(u,c,k)];case 1:c=e.sent(),e.label=2;case 2:return n=this.mutationStore&&(this.mutationStore[t]={mutation:u,variables:c,loading:!0,error:null}),i=l&&this.markMutationOptimistic(l,{mutationId:t,document:u,variables:c,fetchPolicy:w,errorPolicy:E,context:k,updateQueries:f,update:m,keepRootFields:O}),this.broadcastQueries(),o=this,[2,new Promise(function(e,r){return rZ(o.getObservableFromLink(u,(0,d.pi)((0,d.pi)({},k),{optimisticResponse:i?l:void 0}),c,!1),function(e){if(r0(e)&&"none"===E)throw new eF.cA({graphQLErrors:r1(e)});n&&(n.loading=!1,n.error=null);var r=(0,d.pi)({},e);return"function"==typeof v&&(v=v(r)),"ignore"===E&&r0(r)&&delete r.errors,o.markMutationResult({mutationId:t,result:r,document:u,variables:c,fetchPolicy:w,errorPolicy:E,context:k,update:m,updateQueries:f,awaitRefetchQueries:g,refetchQueries:v,removeOptimistic:i?t:void 0,onQueryUpdated:b,keepRootFields:O})}).subscribe({next:function(t){o.broadcastQueries(),"hasNext"in t&&!1!==t.hasNext||e(t)},error:function(e){n&&(n.loading=!1,n.error=e),i&&o.cache.removeOptimistic(t),o.broadcastQueries(),r(e instanceof eF.cA?e:new eF.cA({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var n=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&nf(n,e.errorPolicy)){if(ez(n)||i.push({result:n.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),ez(n)&&(0,eM.O)(n.incremental)){var a=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}
1),s=void 0;a.result&&(s=eG(a.result,n)),void 0!==s&&(n.data=s,i.push({result:s,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var u=e.updateQueries;u&&this.queries.forEach(function(e,o){var a=e.observableQuery,s=a&&a.queryName;if(s&&nd.call(u,s)){var c=u[s],l=r.queries.get(o),f=l.document,d=l.variables,p=t.diff({query:f,variables:d,returnPartialData:!0,optimistic:!1}),h=p.result;if(p.complete&&h){var v=c(h,{mutationResult:n,queryName:f&&ev(f)||void 0,queryVariables:d});v&&i.push({result:v,dataId:"ROOT_QUERY",query:f,variables:d})}}})}if(i.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var c=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach(function(e){return t.write(e)});var a,s=e.update,u=!(ez(a=n)||"hasNext"in a&&"data"in a)||ez(n)&&!n.hasNext;if(s){if(!o){var c=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(n=(0,d.pi)((0,d.pi)({},n),{data:c.result}))&&delete n.incremental,"hasNext"in n&&delete n.hasNext)}u&&s(t,n,{context:e.context,variables:e.variables})}o||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return c.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(c).then(function(){return n})}return Promise.resolve(n)},e.prototype.markMutationOptimistic=function(e,t){var r=this,n="function"==typeof e?e(t.variables,{IGNORE:np}):e;return n!==np&&(this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,d.pi)((0,d.pi)({},t),{result:{data:n}}),e)}catch(e){!1!==globalThis.__DEV__&&p.kG.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(e,t,r).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:e&&eR(["client","export"],e,!0),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:eR(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:te([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:eb(eh(e)),asQuery:(0,d.pi)((0,d.pi)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,d.pi)((0,d.pi)({},e),{operation:"query"}):e})})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,d.pi)((0,d.pi)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,d.pi)((0,d.pi)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new nl(this),n=new ne({queryManager:this,queryInfo:r,options:e});return n.lastQuery=t,this.queries.set(n.queryId,r),r.init({document:t,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var r=this;return void 0===t&&(t=this.generateQueryId()),(0,p.kG)(e.query,28),(0,p.kG)("Document"===e.query.kind,29),(0,p.kG)(!e.returnPartialData,30),(0,p.kG)(!e.pollInterval,31),this.fetchQuery(t,(0,d.pi)((0,d.pi)({},e),{query:this.transform(e.query)})).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}
1),this.cancelPendingFetches((0,p._K)(32)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=r7.Ie.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,n=new Map,i=new Set;return Array.isArray(e)&&e.forEach(function(e){"string"==typeof e?n.set(e,!1):(0,K.s)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)?n.set(t.transform(e),!1):(0,K.s)(e)&&e.query&&i.add(e)}),this.queries.forEach(function(t,i){var o=t.observableQuery,a=t.document;if(o){if("all"===e){r.set(i,o);return}var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&n.has(s)||a&&n.has(a))&&(r.set(i,o),s&&n.set(s,!0),a&&n.set(a,!0))}}),i.size&&i.forEach(function(e){var n=(0,r2.X)("legacyOneTimeQuery"),i=t.getQuery(n).init({document:e.query,variables:e.variables}),o=new ne({queryManager:t,queryInfo:i,options:(0,d.pi)((0,d.pi)({},e),{fetchPolicy:"network-only"})});(0,p.kG)(o.queryId===n),i.setObservableQuery(o),r.set(n,o)}),!1!==globalThis.__DEV__&&n.size&&n.forEach(function(e,t){e||!1===globalThis.__DEV__||p.kG.warn("string"==typeof t?33:34,t)}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,i){var o=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=void 0===i?"none":i,a=e.variables,s=e.context,u=void 0===s?{}:s;r=this.transform(r),a=this.getVariables(r,a);var c=function(e){return t.getObservableFromLink(r,u,e).map(function(i){"no-cache"!==n&&(nf(i,o)&&t.cache.write({query:r,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=r0(i),s=(0,eF.ls)(i);if(a||s){var u={};if(a&&(u.graphQLErrors=i.errors),s&&(u.protocolErrors=i.extensions[eF.YG]),"none"===o||s)throw new eF.cA(u)}return"ignore"===o&&delete i.errors,i})};if(this.getDocumentInfo(r).hasClientExports){var l=this.localState.addExportedVariables(r,a,u).then(c);return new W(function(e){var t=null;return l.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return c(a)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n){var i,o,a=this;void 0===n&&(n=null!==(i=null==t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var s=this.getDocumentInfo(e),u=s.serverQuery,c=s.clientQuery;if(u){var l=this.inFlightLinkObservables,f=this.link,p={query:u,variables:r,operationName:ev(u)||void 0,context:this.prepareContext((0,d.pi)((0,d.pi)({},t),{forceFetch:!n}))};if(t=p.context,n){var h=e6(u),v=ee(r),y=l.lookup(h,v);if(!(o=y.observable)){var g=new r9([rH(f,p)]);o=y.observable=g,g.beforeNext(function(){l.remove(h,v)})}}else o=new r9([rH(f,p)])}else o=new r9([W.of({data:{}})]),t=this.prepareContext(t);return c&&(o=rZ(o,function(e){return a.localState.runResolvers({document:c,remoteResult:e,context:t,variables:r})})),o},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return rZ(this.getObservableFromLink(i,r.context,r.variables),function(o){var a=r1(o),s=a.length>0;if(n>=e.lastRequestId){if(s&&"none"===r.errorPolicy)throw e.markError(new eF.cA({graphQLErrors:a}));e.markResult(o,i,r,t),e.markReady()}var u={data:o.data,loading:!1,networkStatus:r7.Ie.ready};return s&&"ignore"!==r.errorPolicy&&(u.errors=a,u.networkStatus=r7.Ie.error),u},function(t){var r=(0,eF.MS)(t)?t:new eF.cA({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i,o,a=this;void 0===r&&(r=r7.Ie.loading),void 0===n&&(n=t.query);var s=this.getVariables(n,t.variables),u=this.getQuery(e),c=this.defaultOptions.watchQuery,l=t.fetchPolicy,f=void 0===l?c&&c.fetchPolicy||"cache-first":l,d=t.errorPolicy,p=void 0===d?c&&c.errorPolicy||"none":d,h=t.returnPartialData,v=t.notifyOnNetworkStatusChange,y=t.context,g=Object.assign({},t,{query:n,variables:s,fetchPolicy:f,errorPolicy:p,returnPartialData:void 0!==h&&h,notifyOnNetworkStatusChange:void 0!==v&&v,context:void 0===y?{}:y}),m=function(e){g.variables=e;var n=a.fetchQueryByPolicy(u,g,r);return"standby"!==g.fetchPolicy&&n.sources.length>0&&u.observableQuery&&u.observableQuery.applyNextFetchPolicy("after-fetch",t),n},b=function(){return a.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,function(e){b(),setTimeout(function(){return i.cancel(e)})}),this.getDocumentInfo(g.query).hasClientExports)i=new r9(this.localState.addExportedVariables(g.query,g.variables,g.context).then(m).then(function(e){return e.sources})),o=!0;else{var _=m(g.variables);o=_.fromLink,i=new r9(_.sources)}return i.promise.then(b,b),{concast:i,fromLink:o}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?(0,r2.X)("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;
1n&&this.getObservableQueries(n).forEach(function(e,r){c.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})});var l=new Map;return r&&this.cache.batch({update:r,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof nl&&e.watcher.observableQuery;if(n){if(u){c.delete(n.queryId);var i=u(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==u&&c.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),c.size&&c.forEach(function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;if(u){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}n=u(i,a,o)}u&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),l},e.prototype.fetchQueryByPolicy=function(e,t,r){var n=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,u=t.errorPolicy,c=t.returnPartialData,l=t.context,f=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:i,variables:o,networkStatus:r});var h=function(){return e.getDiff()},v=function(t,r){void 0===r&&(r=e.networkStatus||r7.Ie.loading);var a=t.result;!1===globalThis.__DEV__||c||(0,tG.D)(a,{})||nn(t.missing);var s=function(e){return W.of((0,d.pi)({data:e,loading:(0,r7.Oj)(r),networkStatus:r},t.complete?null:{partial:!0}))};return a&&n.getDocumentInfo(i).hasForcedResolvers?n.localState.runResolvers({document:i,remoteResult:{data:a},context:l,variables:o,onlyRunForcedResolvers:!0}).then(function(e){return s(e.data||void 0)}):"none"===u&&r===r7.Ie.refetch&&Array.isArray(t.missing)?s(void 0):s(a)},y="no-cache"===a?0:r===r7.Ie.refetch&&"merge"!==s?1:2,g=function(){return n.getResultsFromLink(e,y,{query:i,variables:o,context:l,fetchPolicy:a,errorPolicy:u})},m=f&&"number"==typeof p&&p!==r&&(0,r7.Oj)(r);switch(a){default:case"cache-first":var b=h();if(b.complete)return{fromLink:!1,sources:[v(b,e.markReady())]};if(c||m)return{fromLink:!0,sources:[v(b),g()]};return{fromLink:!0,sources:[g()]};case"cache-and-network":var b=h();if(b.complete||c||m)return{fromLink:!0,sources:[v(b),g()]};return{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[v(h(),e.markReady())]};case"network-only":if(m)return{fromLink:!0,sources:[v(h()),g()]};return{fromLink:!0,sources:[g()]};case"no-cache":if(m)return{fromLink:!0,sources:[v(e.getDiff()),g()]};return{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new nl(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,d.pi)((0,d.pi)((0,d.pi)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),nv=r(4012),ny=!1,ng=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,p._K)(15);var r=e.uri,n=e.credentials,i=e.headers,o=e.cache,a=e.documentTransform,s=e.ssrMode,u=void 0!==s&&s,c=e.ssrForceFetchDelay,l=void 0===c?0:c,f=e.connectToDevTools,d=void 0===f?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:f,h=e.queryDeduplication,v=void 0===h||h,y=e.defaultOptions,g=e.defaultContext,m=e.assumeImmutableResults,b=void 0===m?o.assumeImmutableResults:m,_=e.resolvers,w=e.typeDefs,S=e.fragmentMatcher,E=e.name,O=e.version,k=e.link;k||(k=r?new rY({uri:r,credentials:n,headers:i}):eE.empty()),this.link=k,this.cache=o,this.disableNetworkFetches=u||l>0,this.queryDeduplication=v,this.defaultOptions=y||Object.create(null),this.typeDefs=w,l&&setTimeout(function(){return t.disableNetworkFetches=!1},l),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.bind(this),this.version=rX.i,this.localState=new na({cache:o,client:this,resolvers:_,fragmentMatcher:S}),this.queryManager=new nh({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:g,documentTransform:a,queryDeduplication:v,ssrMode:u,clientAwareness:{name:E,version:O},localState:this.localState,assumeImmutableResults:b,onBroadcast:d?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),d&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("object"==typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this}ny||!1===globalThis.__DEV__||(ny=!0,setTimeout(function(){if("undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__&&/^(https?|file):$/.test(window.location.protocol)){var e=window.navigator,t=e&&e.userAgent,r=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1!==globalThis.__DEV__&&p.kG.log("Download the Apollo DevTools for a better development experience: %s",r)}},1e4))},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform}
1,enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,nv.J)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,d.pi)((0,d.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,nv.J)(this.defaultOptions.query,e)),(0,p.kG)("cache-and-network"!==e.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,d.pi)((0,d.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,nv.J)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){return this.cache.watchFragment(e)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return rH(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var i=Promise.all(n);return i.queries=r,i.results=n,i.catch(function(e){!1!==globalThis.__DEV__&&p.kG.debug(17,e)}),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(ng.prototype.getMemoryInternals=Z.su);var nm=function(e){return(0,d._T)(e,nb)},nb=["edges","pageInfo"];let n_=new ng({link:ti({uri:"".concat(k.Z.apiUrl,"/graphql")}),cache:new rJ({typePolicies:{Query:{fields:{posts:(void 0===a&&(a=!1),{keyArgs:a,read:function(e,t){var r=t.canRead,n=t.readField;if(!e)return e;var i=[],o="",a="";
1e.edges.forEach(function(e){r(n("node",e))&&(i.push(e),e.cursor&&(o=o||e.cursor||"",a=e.cursor||a))}),i.length>1&&o===a&&(o="");var s=e.pageInfo||{},u=s.startCursor,c=s.endCursor;return(0,d.pi)((0,d.pi)({},nm(e)),{edges:i,pageInfo:(0,d.pi)((0,d.pi)({},e.pageInfo),{startCursor:u||o,endCursor:c||a})})},merge:function(e,t,r){var n=r.args,i=r.isReference,o=r.readField;if(e||(e={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}),!t)return e;var a=t.edges?t.edges.map(function(e){return i(e=(0,d.pi)({},e))&&(e.cursor=o("cursor",e)),e}):[];if(t.pageInfo){var s=t.pageInfo,u=s.startCursor,c=s.endCursor,l=a[0],f=a[a.length-1];l&&u&&(l.cursor=u),f&&c&&(f.cursor=c);var p=l&&l.cursor;p&&!u&&(t=eL(t,{pageInfo:{startCursor:p}}));var h=f&&f.cursor;h&&!c&&(t=eL(t,{pageInfo:{endCursor:h}}))}var v=e.edges,y=[];if(n&&n.after){var g=v.findIndex(function(e){return e.cursor===n.after});g>=0&&(v=v.slice(0,g+1))}else if(n&&n.before){var g=v.findIndex(function(e){return e.cursor===n.before});y=g<0?v:v.slice(g),v=[]}else t.edges&&(v=[]);var m=(0,d.ev)((0,d.ev)((0,d.ev)([],v,!0),a,!0),y,!0),b=(0,d.pi)((0,d.pi)({},t.pageInfo),e.pageInfo);if(t.pageInfo){var _=t.pageInfo,w=_.hasPreviousPage,S=_.hasNextPage,u=_.startCursor,c=_.endCursor;Object.assign(b,(0,d._T)(_,["hasPreviousPage","hasNextPage","startCursor","endCursor"])),v.length||(void 0!==w&&(b.hasPreviousPage=w),void 0===u||(b.startCursor=u)),y.length||(void 0!==S&&(b.hasNextPage=S),void 0===c||(b.endCursor=c))}return(0,d.pi)((0,d.pi)((0,d.pi)({},nm(e)),nm(t)),{edges:m,pageInfo:b})}})}}}})});var nw=r(9463);r(5650),b().start({apiKey:k.Z.bugsnagApiKey,appVersion:"1.11.0",plugins:[new(E())]});let nS=b().getPlugin("react").createErrorBoundary(l);var nE=function(e){let{Component:t,pageProps:r}=e;return(0,l.useEffect)(()=>{T();let e=e=>{e.reason instanceof Error?b().notify(e.reason):b().notify(Error("Unhandled rejection: "+e.reason))};return window.addEventListener("unhandledrejection",e),()=>{window.removeEventListener("unhandledrejection",e)}},[]),(0,c.jsxs)(nS,{children:[(0,c.jsx)(f.J$,{value:{revalidateOnFocus:!1},children:(0,c.jsx)(y,{client:n_,children:(0,c.jsx)(nw.I,{children:(0,c.jsx)(g.pm,{reCaptchaKey:k.Z.recaptchaSiteKey,children:(0,c.jsx)(t,{...r})})})})}),(0,c.jsx)(w(),{id:"leadfeeder",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"(function(ss,ex){ window.ldfdr=window.ldfdr||function(){(ldfdr._q=ldfdr._q||[]).push([].slice.call(arguments));}; (function(d,s){ fs=d.getElementsByTagName(s)[0]; function ce(src){ var cs=d.createElement(s); cs.src=src; cs.async=1; fs.parentNode.insertBefore(cs,fs); }; ce('https://sc.lfeeder.com/lftracker_v1_'+ss+(ex?'_'+ex:'')+'.js'); })(document,'script'); })('kn9Eq4R3oxJaRlvP');"}}),(0,c.jsx)(w(),{id:"brevo-sdk",src:"https://cdn.brevo.com/js/sdk-loader.js",strategy:"afterInteractive"}),(0,c.jsx)(w(),{id:"brevo-init",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:'window.Brevo = window.Brevo || []; Brevo.push(["init", { client_key: "jvdrjafcai9irnex05e7mb6k" }]);'}})]})}},5650:function(){},7663:function(e){!function(){var t={229:function(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!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)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u=[],c=!1,l=-1;function f(){c&&n&&(c=!1,n.length?u=n.concat(u):l=-1,u.length&&d())}function d(){if(!c){var e=s(f);c=!0;for(var t=u.length;t;){for(n=u,u=[];++l<t;)n&&n[l].run();l=-1,t=u.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 h(){}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];u.push(new p(e,t)),1!==u.length||c||s(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=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,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 o=r[e]={exports:{}},a=!0;try{t[e](o,o.exports,n),a=!1}finally{a&&delete r[e]}return o.exports}n.ab="//";var i=n(229);e.exports=i}()},4298:function(e,t,r){e.exports=r(3381)},9559:function(e,t){"use strict";
1Object.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],o=!(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)})),o&&(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},1638:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GA4=void 0;var n=u(r(6161)),i=u(r(9559)),o=["eventCategory","eventAction","eventLabel","eventValue","hitType"],a=["title","location"],s=["page","hitType"];function u(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={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function l(e){return(l="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 f(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(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){y(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 h(e,t){if(e){if("string"==typeof e)return v(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 v(e,t)}}function v(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 y(e,t,r){return(t=g(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==l(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l(t)?t:String(t)}var m=function(){var e;function t(){var e=this;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),y(this,"reset",function(){e.isInitialized=!1,e._testMode=!1,e._currentMeasurementId,e._hasLoadedGA=!1,e._isQueuing=!1,e._queueGtag=[]}),y(this,"_gtag",function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];e._testMode?e._queueGtag.push(r):e._isQueuing?e._queueGtag.push(r):n.default.apply(void 0,r)}),y(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}}),y(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,o,a,s=[],u=!0,c=!1;try{for(o=(r=r.call(e)).next;!(u=(n=o.call(r)).done)&&(s.push(n.value),2!==s.length);u=!0);}catch(e){c=!0,i=e}
1finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(r,2)||h(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],o=n[1];return t[i]?e[t[i]]=o:e[i]=o,e},{})}}),y(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,o=r.gtagOptions,a=r.nonce,s=r.testMode,u=void 0!==s&&s,c=r.gtagUrl;if(e._testMode=u,u||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))),o),t.gtagOptions);Object.keys(r).length?e._gtag("config",t.trackingId,r):e._gtag("config",t.trackingId)})),e.isInitialized=!0,!u){var l=f(e._queueGtag);for(e._queueGtag=[],e._isQueuing=!1;l.length;){var d=l.shift();e._gtag.apply(e,f(d)),"get"===d[0]&&(e._isQueuing=!0)}}}),y(this,"set",function(t){if(!t){console.warn("`fieldsObject` is required in .set()");return}if("object"!==l(t)){console.warn("Expected `fieldsObject` arg to be an Object");return}0===Object.keys(t).length&&console.warn("empty `fieldsObject` given to .set()"),e._gaCommand("set",t)}),y(this,"_gaCommandSendEvent",function(t,r,n,i,o){e._gtag("event",r,p(p({event_category:t,event_label:n,value:i},o&&{non_interaction:o.nonInteraction}),e._toGtagOptions(o)))}),y(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,f(r.slice(1)));else{var i=r[0],a=i.eventCategory,s=i.eventAction,u=i.eventLabel,l=i.eventValue,d=(i.hitType,c(i,o));e._gaCommandSendEvent(a,s,u,l,d)}}),y(this,"_gaCommandSendTiming",function(t,r,n,i){e._gtag("event","timing_complete",{name:r,value:n,event_category:t,event_label:i})}),y(this,"_gaCommandSendPageview",function(t,r){if(r&&Object.keys(r).length){var n=e._toGtagOptions(r),i=n.title,o=n.location,s=c(n,a);e._gtag("event","page_view",p(p(p(p({},t&&{page_path:t}),i&&{page_title:i}),o&&{page_location:o}),s))}else t?e._gtag("event","page_view",{page_path:t}):e._gtag("event","page_view")}),y(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,f(r.slice(1)));else{var i=r[0],o=i.page,a=(i.hitType,c(i,s));e._gaCommandSendPageview(o,a)}}),y(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,f(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))}}),y(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]=y({},r[0],r[1])),e._gtag("set",e._toGtagOptions(r[0]))}),y(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))}}),y(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,f(n))}}),e._isQueuing=!0}return e.ga}),y(this,"event",function(t,r){if("string"==typeof t)e._gtag("event",t,e._toGtagOptions(r));else{var n=t.action,o=t.category,a=t.label,s=t.value,u=t.nonInteraction,c=t.transport;if(!o||!n){console.warn("args.category AND args.action are required in event()");return}var l={hitType:"event",eventCategory:(0,i.default)(o),eventAction:(0,i.default)(n)};a&&(l.eventLabel=(0,i.default)(a)),void 0!==s&&("number"!=typeof s?console.warn("Expected `args.value` arg to be a Number."):l.eventValue=s),void 0!==u&&("boolean"!=typeof u?console.warn("`args.nonInteraction` must be a boolean."):l.nonInteraction=u),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`"),l.transport=c)),e._gaCommand("send",l)}}),y(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,g(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}();
1t.GA4=m;var b=new m;t.default=b},6161:function(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))}},9089:function(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.ZP=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=o(void 0);if(r&&r.has(e))return r.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=a?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(i,s,u):i[s]=e[s]}return i.default=e,r&&r.set(e,i),i}(r(1638));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}i.GA4;var a=i.default;t.ZP=a},259:function(e,t,r){"use strict";r.d(t,{pm:function(){return d},xX:function(){return p}});var n,i=r(7294),o=r(3454),a=function(){return(a=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)},s=function(e){var t;e?function(e){if(e)for(;e.lastChild;)e.lastChild.remove()}("string"==typeof e?document.getElementById(e):e):(t=document.querySelector(".grecaptcha-badge"))&&t.parentNode&&document.body.removeChild(t.parentNode)},u=function(e,t){s(t),window.___grecaptcha_cfg=void 0;var r,n=document.querySelector("#"+e);n&&n.remove(),(r=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))&&r.remove()},c=function(e){var t=e.render,r=e.onLoadCallbackName,n=e.language,i=e.onLoad,o=e.useRecaptchaNet,a=e.useEnterprise,s=e.scriptProps,u=void 0===s?{}:s,c=u.nonce,l=void 0===c?"":c,f=u.defer,d=u.async,p=u.id,h=u.appendTo,v=(void 0===p?"":p)||"google-recaptcha-v3";if(document.querySelector("#"+v))i();else{var y,g="https://www."+((y={useEnterprise:a,useRecaptchaNet:o}).useRecaptchaNet?"recaptcha.net":"google.com")+"/recaptcha/"+(y.useEnterprise?"enterprise.js":"api.js"),m=document.createElement("script");m.id=v,m.src=g+"?render="+t+("explicit"===t?"&onload="+r:"")+(n?"&hl="+n:""),l&&(m.nonce=l),m.defer=!!(void 0!==f&&f),m.async=!!(void 0!==d&&d),m.onload=i,("body"===h?document.body:document.getElementsByTagName("head")[0]).appendChild(m)}},l=function(e){void 0===o||o.env,console.warn(e)};(n||(n={})).SCRIPT_NOT_AVAILABLE="Recaptcha script is not available";var f=(0,i.createContext)({executeRecaptcha:function(){throw Error("GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider")}});function d(e){var t=e.reCaptchaKey,r=e.useEnterprise,o=void 0!==r&&r,s=e.useRecaptchaNet,d=void 0!==s&&s,p=e.scriptProps,h=e.language,v=e.container,y=e.children,g=(0,i.useState)(null),m=g[0],b=g[1],_=(0,i.useRef)(t),w=JSON.stringify(p),S=JSON.stringify(null==v?void 0:v.parameters);(0,i.useEffect)(function(){if(t){var e=(null==p?void 0:p.id)||"google-recaptcha-v3",r=(null==p?void 0:p.onLoadCallbackName)||"onRecaptchaLoadCallback";return window[r]=function(){var e=o?window.grecaptcha.enterprise:window.grecaptcha,r=a({badge:"inline",size:"invisible",sitekey:t},(null==v?void 0:v.parameters)||{});_.current=e.render(null==v?void 0:v.element,r)},c({render:(null==v?void 0:v.element)?"explicit":t,onLoadCallbackName:r,useEnterprise:o,useRecaptchaNet:d,scriptProps:p,language:h,onLoad:function(){if(window&&window.grecaptcha){var e=o?window.grecaptcha.enterprise:window.grecaptcha;e.ready(function(){b(e)})}else l("<GoogleRecaptchaProvider /> "+n.SCRIPT_NOT_AVAILABLE)},onError:function(){l("Error loading google recaptcha script")}}),function(){u(e,null==v?void 0:v.element)}}l("<GoogleReCaptchaProvider /> recaptcha key not provided")},[o,d,w,S,h,t,null==v?void 0:v.element]);var E=(0,i.useCallback)(function(e){if(!m||!m.execute)throw Error("<GoogleReCaptchaProvider /> Google Recaptcha has not been loaded");return m.execute(_.current,{action:e})},[m,_]),O=(0,i.useMemo)(function(){return{executeRecaptcha:m?E:void 0,container:null==v?void 0:v.element}},[E,m,null==v?void 0:v.element]);return i.createElement(f.Provider,{value:O},y)}f.Consumer;var p=function(){return(0,i.useContext)(f)};function h(e,t){return e(t={exports:{}},t.exports),t.exports}var v="function"==typeof Symbol&&Symbol.for,y=v?Symbol.for("react.element"):60103,g=v?Symbol.for("react.portal"):60106,m=v?Symbol.for("react.fragment"):60107,b=v?Symbol.for("react.strict_mode"):60108,_=v?Symbol.for("react.profiler"):60114,
1w=v?Symbol.for("react.provider"):60109,S=v?Symbol.for("react.context"):60110,E=v?Symbol.for("react.async_mode"):60111,O=v?Symbol.for("react.concurrent_mode"):60111,k=v?Symbol.for("react.forward_ref"):60112,T=v?Symbol.for("react.suspense"):60113,I=v?Symbol.for("react.suspense_list"):60120,x=v?Symbol.for("react.memo"):60115,D=v?Symbol.for("react.lazy"):60116,j=v?Symbol.for("react.block"):60121,R=v?Symbol.for("react.fundamental"):60117,N=v?Symbol.for("react.responder"):60118,C=v?Symbol.for("react.scope"):60119;function P(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case y:switch(e=e.type){case E:case O:case m:case _:case b:case T:return e;default:switch(e=e&&e.$$typeof){case S:case k:case D:case x:case w:return e;default:return t}}case g:return t}}}function A(e){return P(e)===O}var F={AsyncMode:E,ConcurrentMode:O,ContextConsumer:S,ContextProvider:w,Element:y,ForwardRef:k,Fragment:m,Lazy:D,Memo:x,Portal:g,Profiler:_,StrictMode:b,Suspense:T,isAsyncMode:function(e){return A(e)||P(e)===E},isConcurrentMode:A,isContextConsumer:function(e){return P(e)===S},isContextProvider:function(e){return P(e)===w},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===y},isForwardRef:function(e){return P(e)===k},isFragment:function(e){return P(e)===m},isLazy:function(e){return P(e)===D},isMemo:function(e){return P(e)===x},isPortal:function(e){return P(e)===g},isProfiler:function(e){return P(e)===_},isStrictMode:function(e){return P(e)===b},isSuspense:function(e){return P(e)===T},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===m||e===O||e===_||e===b||e===T||e===I||"object"==typeof e&&null!==e&&(e.$$typeof===D||e.$$typeof===x||e.$$typeof===w||e.$$typeof===S||e.$$typeof===k||e.$$typeof===R||e.$$typeof===N||e.$$typeof===C||e.$$typeof===j)},typeOf:P},M=h(function(e,t){}),q=(M.AsyncMode,M.ConcurrentMode,M.ContextConsumer,M.ContextProvider,M.Element,M.ForwardRef,M.Fragment,M.Lazy,M.Memo,M.Portal,M.Profiler,M.StrictMode,M.Suspense,M.isAsyncMode,M.isConcurrentMode,M.isContextConsumer,M.isContextProvider,M.isElement,M.isForwardRef,M.isFragment,M.isLazy,M.isMemo,M.isPortal,M.isProfiler,M.isStrictMode,M.isSuspense,M.isValidElementType,M.typeOf,h(function(e){e.exports=F})),L={};L[q.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},L[q.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0}},3914:function(e,t,r){"use strict";e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,r(7294))},3250:function(e,t,r){"use strict";var n=r(7294),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,s=n.useLayoutEffect,u=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,l=n[1];return s(function(){i.value=r,i.getSnapshot=t,c(i)&&l({inst:i})},[e,r,t]),a(function(){return c(i)&&l({inst:i}),e(function(){c(i)&&l({inst:i})})},[e]),u(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},1688:function(e,t,r){"use strict";e.exports=r(3250)},1644:function(e,t,r){"use strict";var n,i;function o(e){return!!e&&e<7}r.d(t,{Ie:function(){return n},Oj:function(){return o}}),(i=n||(n={}))[i.loading=1]="loading",i[i.setVariables=2]="setVariables",i[i.fetchMore=3]="fetchMore",i[i.refetch=4]="refetch",i[i.poll=6]="poll",i[i.ready=7]="ready",i[i.error=8]="error"},990:function(e,t,r){"use strict";r.d(t,{MS:function(){return s},YG:function(){return o},cA:function(){return c},ls:function(){return a}});var n=r(7582);r(8287);var i=r(3154),o=Symbol();function a(e){return!!e.extensions&&Array.isArray(e.extensions[o])}function s(e){return e.hasOwnProperty("graphQLErrors")}var u=function(e){var t=(0,n.ev)((0,n.ev)((0,n.ev)([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(e){return(0,i.s)(e)&&e.message||"Error message not found."}).join("\n")},c=function(e){function t(r){var n=r.graphQLErrors,i=r.protocolErrors,o=r.clientErrors,a=r.networkError,s=r.errorMessage,c=r.extraInfo,l=e.call(this,s)||this;return l.name="ApolloError",l.graphQLErrors=n||[],l.protocolErrors=i||[],l.clientErrors=o||[],l.networkError=a||null,l.message=s||u(l),l.extraInfo=c,l.__proto__=t.prototype,l}return(0,n.ZT)(t,e),t}(Error)},5317:function(e,t,r){"use strict";r.d(t,{K:function(){return u}});
1var n,i=r(3914),o=r(320),a=r(8287),s=o.aS?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function u(){(0,a.kG)("createContext"in(n||(n=r.t(i,2))),45);var e=i.createContext[s];return e||(Object.defineProperty(i.createContext,s,{value:e=i.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}},8991:function(e,t,r){"use strict";r.d(t,{L:function(){return u},s:function(){return s}});var n=r(9869),i=r(2379),o=new WeakSet;function a(e){!(e.size<=(e.max||-1))&&(o.has(e)||(o.add(e),setTimeout(function(){e.clean(),o.delete(e)},100)))}var s=function(e,t){var r=new n.k(e,t);return r.set=function(e,t){var r=n.k.prototype.set.call(this,e,t);return a(this),r},r},u=function(e,t){var r=new i.e(e,t);return r.set=function(e,t){var r=i.e.prototype.set.call(this,e,t);return a(this),r},r}},8244:function(e,t,r){"use strict";r.d(t,{Kb:function(){return c},q4:function(){return u},su:function(){return s},zP:function(){return a}});var n=r(7582),i=r(6331),o={};function a(e,t){o[e]=t}var s=!1!==globalThis.__DEV__?function(){var e,t,r,a,s;if(!(!1!==globalThis.__DEV__))throw Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(e){var t=e[0],r=e[1];return[t,i.Q[t]||r]})),sizes:(0,n.pi)({print:null===(e=o.print)||void 0===e?void 0:e.call(o),parser:null===(t=o.parser)||void 0===t?void 0:t.call(o),canonicalStringify:null===(r=o.canonicalStringify)||void 0===r?void 0:r.call(o),links:function e(t){var r;return t?(0,n.ev)((0,n.ev)([null===(r=null==t?void 0:t.getMemoryInternals)||void 0===r?void 0:r.call(t)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(d):[]}(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:p(this.queryManager.documentTransform)}},null===(s=(a=this.cache).getMemoryInternals)||void 0===s?void 0:s.call(a))}}:void 0,u=!1!==globalThis.__DEV__?function(){var e=this.config.fragments;return(0,n.pi)((0,n.pi)({},l.apply(this)),{addTypenameDocumentTransform:p(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:f(this.storeReader.executeSelectionSet),executeSubSelectedArray:f(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:f(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:f(null==e?void 0:e.findFragmentSpreads),lookup:f(null==e?void 0:e.lookup),transform:f(null==e?void 0:e.transform)}})}:void 0,c=!1!==globalThis.__DEV__?l:void 0;function l(){return{cache:{fragmentQueryDocuments:f(this.getFragmentDoc)}}}function f(e){return e&&"dirtyKey"in e?e.size:void 0}function d(e){return null!=e}function p(e){return(function e(t){return t?(0,n.ev)((0,n.ev)([f(null==t?void 0:t.performWork)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(d):[]})(e).map(function(e){return{cache:e}})}},6331:function(e,t,r){"use strict";r.d(t,{Q:function(){return a}});var n=r(7582),i=r(8287),o=Symbol.for("apollo.cacheSize"),a=(0,n.pi)({},i.CO[o])},1436:function(e,t,r){"use strict";r.d(t,{O:function(){return i},k:function(){return n}});var n=Array.isArray;function i(e){return Array.isArray(e)&&e.length>0}},320:function(e,t,r){"use strict";r.d(t,{DN:function(){return s},JC:function(){return l},aS:function(){return a},mr:function(){return i},sy:function(){return o}});var n=r(8287),i="function"==typeof WeakMap&&!(0,n.wY)(function(){return"ReactNative"==navigator.product&&!global.HermesInternal}),o="function"==typeof WeakSet,a="function"==typeof Symbol&&"function"==typeof Symbol.for,s=a&&Symbol.asyncIterator,u="function"==typeof(0,n.wY)(function(){return window.document.createElement}),c=(0,n.wY)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,l=u&&!c},3712:function(e,t,r){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];void 0!==n&&(r[t]=n)})}),r}r.d(t,{o:function(){return n}})},897:function(e,t,r){"use strict";r.d(t,{X:function(){return i}});var n=new Map;function i(e){var t=n.get(e)||1;return n.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},8702:function(e,t,r){"use strict";r.d(t,{J:function(){return i}});var n=r(3154);function i(e){if(!1!==globalThis.__DEV__){var t;
1(t=new Set([e])).forEach(function(e){(0,n.s)(e)&&function(e){if(!1!==globalThis.__DEV__&&!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(function(r){(0,n.s)(e[r])&&t.add(e[r])})})}return e}},4012:function(e,t,r){"use strict";r.d(t,{J:function(){return o}});var n=r(7582),i=r(3712);function o(e,t){return(0,i.o)(e,t,t.variables&&{variables:(0,i.o)((0,n.pi)((0,n.pi)({},e&&e.variables),t.variables))})}},3154:function(e,t,r){"use strict";function n(e){return null!==e&&"object"==typeof e}r.d(t,{s:function(){return n}})},3887:function(e,t,r){"use strict";r.d(t,{v:function(){return i}});var n=r(897);function i(e,t){void 0===t&&(t=0);var r=(0,n.X)("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?r:t},t).split(JSON.stringify(r)).join("<undefined>")}},8287:function(e,t,r){"use strict";r.d(t,{CO:function(){return v},kG:function(){return m},wY:function(){return h},_K:function(){return b}});var n,i=r(7582),o="Invariant Violation",a=Object.setPrototypeOf,s=void 0===a?function(e,t){return e.__proto__=t,e}:a,u=function(e){function t(r){void 0===r&&(r=o);var n=e.call(this,"number"==typeof r?o+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=o,s(n,t.prototype),n}return(0,i.ZT)(t,e),t}(Error);function c(e,t){if(!e)throw new u(t)}var l=["debug","log","warn","error","silent"],f=l.indexOf("log");function d(e){return function(){if(l.indexOf(e)>=f)return(console[e]||console.log).apply(console,arguments)}}(n=c||(c={})).debug=d("debug"),n.log=d("log"),n.warn=d("warn"),n.error=d("error");var p=r(9379);function h(e){try{return e()}catch(e){}}var v=h(function(){return globalThis})||h(function(){return window})||h(function(){return self})||h(function(){return global})||h(function(){return h.constructor("return this")()}),y=r(3887);function g(e){return function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if("number"==typeof t){var i=t;(t=S(i))||(t=E(i,r),r=[])}e.apply(void 0,[t].concat(r))}}var m=Object.assign(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];e||c(e,S(t,r)||E(t,r))},{debug:g(c.debug),log:g(c.log),warn:g(c.warn),error:g(c.error)});function b(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new u(S(e,t)||E(e,t))}var _=Symbol.for("ApolloErrorMessageHandler_"+p.i);function w(e){return"string"==typeof e?e:(0,y.v)(e,2).slice(0,1e3)}function S(e,t){if(void 0===t&&(t=[]),e)return v[_]&&v[_](e,t.map(w))}function E(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:p.i,message:e,args:t.map(w)})))}},9379:function(e,t,r){"use strict";r.d(t,{i:function(){return n}});var n="3.10.5"},2379:function(e,t,r){"use strict";function n(){}r.d(t,{e:function(){return i}});class i{constructor(e=1/0,t=n){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)}}},9869:function(e,t,r){"use strict";function n(){}r.d(t,{k:function(){return s}});let i="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},o="undefined"!=typeof WeakMap?WeakMap:Map,a="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:n,unregister:n}};class s{constructor(e=1/0,t=n){this.max=e,this.dispose=t,this.map=new o,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 i(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new a(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))}}},20:function(e,t,r){"use strict";r.d(t,{D:function(){return s}});let{toString:n,hasOwnProperty:i}=Object.prototype,o=Function.prototype.toString,a=new Map;function s(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(f(t,r))return!0;let n=u(t),o=u(r),a=n.length;if(a!==o.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 o=n[i];if(!e(t[o],r[o]))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(f(t,r))return!0;let n=t.entries(),i="[object Map]"===a;for(;;){let t=n.next();if(t.done)break;let[o,a]=t.value;if(!r.has(o)||i&&!e(a,r.get(o)))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=o.call(t);if(e!==o.call(r))return!1;return!function(e,t){let r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(e,l)}}return!1}(e,t)}finally{a.clear()}}function u(e){return Object.keys(e).filter(c,e)}function c(e){return void 0!==this[e]}t.Z=s;let l="{ [native code] }";function f(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}},7826:function(e,t,r){"use strict";function n(e,t){if(!e)throw Error(t)}r.d(t,{a:function(){return n}})},5821:function(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))return function(t,r){if(0===t.length)return"[]";if(r.length>2)return"[Array]";let n=Math.min(10,t.length),i=t.length-n,o=[];for(let i=0;i<n;++i)o.push(e(t[i],r));return 1===i?o.push("... 1 more item"):i>1&&o.push(`... ${i} more items`),"["+o.join(", ")+"]"}(t,n);return function(t,r){let n=Object.entries(t);return 0===n.length?"{}":r.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}(t)+"]":"{ "+n.map(([t,n])=>t+": "+e(n,r)).join(", ")+" }"}(t,n)}(t,r);default:return String(t)}}(e,[])}r.d(t,{X:function(){return n}})},2380:function(e,t,r){"use strict";var n,i;r.d(t,{UG:function(){return c},WU:function(){return a},Ye:function(){return o},h8:function(){return s},ku:function(){return n}});class o{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 a{constructor(e,t,r,n,i,o){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=o,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 s={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:[],Float
1Value:[],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"]},u=new Set(Object.keys(s));function c(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&u.has(t)}(i=n||(n={})).QUERY="query",i.MUTATION="mutation",i.SUBSCRIPTION="subscription"},7392:function(e,t,r){"use strict";r.d(t,{LZ:function(){return o},wv:function(){return i}});var n=r(8297);function i(e){var t,r;let i=Number.MAX_SAFE_INTEGER,o=null,a=-1;for(let t=0;t<e.length;++t){let s=e[t],u=function(e){let t=0;for(;t<e.length&&(0,n.FD)(e.charCodeAt(t));)++t;return t}(s);u!==s.length&&(o=null!==(r=o)&&void 0!==r?r:t,a=t,0!==t&&u<i&&(i=u))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!==(t=o)&&void 0!==t?t:0,a+1)}function o(e,t){let r=e.replace(/"""/g,'\\"""'),i=r.split(/\r\n|[\n\r]/g),o=1===i.length,a=i.length>1&&i.slice(1).every(e=>0===e.length||(0,n.FD)(e.charCodeAt(0))),s=r.endsWith('\\"""'),u=e.endsWith('"')&&!s,c=e.endsWith("\\"),l=u||c,f=!(null!=t&&t.minimize)&&(!o||e.length>70||l||a||s),d="",p=o&&(0,n.FD)(e.charCodeAt(0));return(f&&!p||a)&&(d+="\n"),d+=r,(f||l)&&(d+="\n"),'"""'+d+'"""'}},8297:function(e,t,r){"use strict";function n(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function a(e){return o(e)||95===e}function s(e){return o(e)||i(e)||95===e}r.d(t,{FD:function(){return n},HQ:function(){return s},LQ:function(){return a},X1:function(){return i}})},7359:function(e,t,r){"use strict";var n,i;r.d(t,{h:function(){return n}}),(i=n||(n={})).NAME="Name",i.DOCUMENT="Document",i.OPERATION_DEFINITION="OperationDefinition",i.VARIABLE_DEFINITION="VariableDefinition",i.SELECTION_SET="SelectionSet",i.FIELD="Field",i.ARGUMENT="Argument",i.FRAGMENT_SPREAD="FragmentSpread",i.INLINE_FRAGMENT="InlineFragment",i.FRAGMENT_DEFINITION="FragmentDefinition",i.VARIABLE="Variable",i.INT="IntValue",i.FLOAT="FloatValue",i.STRING="StringValue",i.BOOLEAN="BooleanValue",i.NULL="NullValue",i.ENUM="EnumValue",i.LIST="ListValue",i.OBJECT="ObjectValue",i.OBJECT_FIELD="ObjectField",i.DIRECTIVE="Directive",i.NAMED_TYPE="NamedType",i.LIST_TYPE="ListType",i.NON_NULL_TYPE="NonNullType",i.SCHEMA_DEFINITION="SchemaDefinition",i.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",i.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",i.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",i.FIELD_DEFINITION="FieldDefinition",i.INPUT_VALUE_DEFINITION="InputValueDefinition",i.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",i.UNION_TYPE_DEFINITION="UnionTypeDefinition",i.ENUM_TYPE_DEFINITION="EnumTypeDefinition",i.ENUM_VALUE_DEFINITION="EnumValueDefinition",i.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",i.DIRECTIVE_DEFINITION="DirectiveDefinition",i.SCHEMA_EXTENSION="SchemaExtension",i.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",i.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",i.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",i.UNION_TYPE_EXTENSION="UnionTypeExtension",i.ENUM_TYPE_EXTENSION="EnumTypeExtension",i.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"},1758:function(e,t,r){"use strict";let n;r.d(t,{J$:function(){return ee},ZP:function(){return et}});var i=r(7294),o=r(1688);let a=()=>{},s=a(),u=Object,c=e=>e===s,l=e=>"function"==typeof e,f=(e,t)=>({...e,...t}),d=e=>l(e.then),p=new WeakMap,h=0,v=e=>{let t,r;let n=typeof e,i=e&&e.constructor,o=i==Date;if(u(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=p.get(e))return t;if(t=++h+"~",p.set(e,t),i==Array){for(r=0,t="@";r<e.length;r++)t+=v(e[r])+",";p.set(e,t)}if(i==u){t="#";
1let n=u.keys(e).sort();for(;!c(r=n.pop());)c(e[r])||(t+=r+":"+v(e[r])+",");p.set(e,t)}}return t},y=new WeakMap,g={},m={},b="undefined",_=typeof window!=b,w=typeof document!=b,S=()=>_&&typeof window.requestAnimationFrame!=b,E=(e,t)=>{let r=y.get(e);return[()=>!c(t)&&e.get(t)||g,n=>{if(!c(t)){let i=e.get(t);t in m||(m[t]=i),r[5](t,f(i,n),i||g)}},r[6],()=>!c(t)&&t in m?m[t]:!c(t)&&e.get(t)||g]},O=!0,[k,T]=_&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[a,a],I={initFocus:e=>(w&&document.addEventListener("visibilitychange",e),k("focus",e),()=>{w&&document.removeEventListener("visibilitychange",e),T("focus",e)}),initReconnect:e=>{let t=()=>{O=!0,e()},r=()=>{O=!1};return k("online",t),k("offline",r),()=>{T("online",t),T("offline",r)}}},x=!i.useId,D=!_||"Deno"in window,j=e=>S()?window.requestAnimationFrame(e):setTimeout(e,1),R=D?i.useEffect:i.useLayoutEffect,N="undefined"!=typeof navigator&&navigator.connection,C=!D&&N&&(["slow-2g","2g"].includes(N.effectiveType)||N.saveData),P=e=>{if(l(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?v(e):"",t]},A=0,F=()=>++A;var M={ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function q(...e){let[t,r,n,i]=e,o=f({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),a=o.populateCache,u=o.rollbackOnError,p=o.optimisticData,h=e=>"function"==typeof u?u(e):!1!==u,v=o.throwOnError;if(l(r)){let e=[];for(let n of t.keys())!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n);return Promise.all(e.map(g))}return g(r);async function g(r){let i;let[u]=P(r);if(!u)return;let[f,g]=E(t,u),[m,b,_,w]=y.get(t),S=()=>{let e=m[u];return(l(o.revalidate)?o.revalidate(f().data,r):!1!==o.revalidate)&&(delete _[u],delete w[u],e&&e[0])?e[0](2).then(()=>f().data):f().data};if(e.length<3)return S();let O=n,k=F();b[u]=[k,0];let T=!c(p),I=f(),x=I.data,D=I._c,j=c(D)?x:D;if(T&&g({data:p=l(p)?p(j,x):p,_c:j}),l(O))try{O=O(j)}catch(e){i=e}if(O&&d(O)){if(O=await O.catch(e=>{i=e}),k!==b[u][0]){if(i)throw i;return O}i&&T&&h(i)&&(a=!0,g({data:j,_c:s}))}if(a&&!i&&(l(a)?g({data:a(O,j),error:s,_c:s}):g({data:O,error:s,_c:s})),b[u][1]=F(),Promise.resolve(S()).then(()=>{g({_c:s})}),i){if(v)throw i;return}return O}}let L=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},V=(e,t)=>{if(!y.has(e)){let r=f(I,t),n={},i=q.bind(s,e),o=a,u={},c=(e,t)=>{let r=u[e]||[];return u[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},l=(t,r,n)=>{e.set(t,r);let i=u[t];if(i)for(let e of i)e(r,n)},d=()=>{if(!y.has(e)&&(y.set(e,[n,{},{},{},i,l,c]),!D)){let t=r.initFocus(setTimeout.bind(s,L.bind(s,n,0))),i=r.initReconnect(setTimeout.bind(s,L.bind(s,n,1)));o=()=>{t&&t(),i&&i(),y.delete(e)}}};return d(),[e,i,d,o]}return[e,y.get(e)[4]]},[Q,B]=V(new Map),z=f({onLoadingSlow:a,onSuccess:a,onError:a,onErrorRetry:(e,t,r,n,i)=>{let o=r.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;(c(o)||!(a>o))&&setTimeout(n,s,i)},onDiscarded:a,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:C?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:C?5e3:3e3,compare:(e,t)=>v(e)==v(t),isPaused:()=>!1,cache:Q,mutate:B,fallback:{}},{isOnline:()=>O,isVisible:()=>{let e=w&&document.visibilityState;return c(e)||"hidden"!==e}}),G=(e,t)=>{let r=f(e,t);if(t){let{use:n,fallback:i}=e,{use:o,fallback:a}=t;n&&o&&(r.use=n.concat(o)),i&&a&&(r.fallback=f(i,a))}return r},U=(0,i.createContext)({}),W=_&&window.__SWR_DEVTOOLS_USE__,K=W?window.__SWR_DEVTOOLS_USE__:[],$=e=>l(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],J=()=>f(z,(0,i.useContext)(U)),H=K.concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let[n]=P(t),[,,,i]=y.get(Q);if(n.startsWith("$inf$"))return r(...e);let o=i[n];return c(o)?r(...e):(delete i[n],o)});return e(t,i,n)}),X=(e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}};W&&(window.__SWR_DEVTOOLS_REACT__=i);let Y=i.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),Z={dedupe:!0},ee=u.defineProperty(e=>{let{value:t}=e,r=(0,i.useContext)(U),n=l(t),o=(0,i.useMemo)(()=>n?t(r):t,[n,r,t]),a=(0,i.useMemo)(()=>n?o:G(r,o),[n,r,o]),u=o&&o.provider,c=(0,i.useRef)(s);u&&!c.current&&(c.current=V(u(a.cache||Q),o));let d=c.current;
1return d&&(a.cache=d[0],a.mutate=d[1]),R(()=>{if(d)return d[2]&&d[2](),d[3]},[]),(0,i.createElement)(U.Provider,f(e,{value:a}))},"defaultValue",{value:z}),et=(n=(e,t,r)=>{let{cache:n,compare:a,suspense:u,fallbackData:d,revalidateOnMount:p,revalidateIfStale:h,refreshInterval:v,refreshWhenHidden:g,refreshWhenOffline:m,keepPreviousData:b}=r,[_,w,S,O]=y.get(n),[k,T]=P(e),I=(0,i.useRef)(!1),N=(0,i.useRef)(!1),C=(0,i.useRef)(k),A=(0,i.useRef)(t),L=(0,i.useRef)(r),V=()=>L.current,Q=()=>V().isVisible()&&V().isOnline(),[B,z,G,U]=E(n,k),W=(0,i.useRef)({}).current,K=c(d)?r.fallback[k]:d,$=(e,t)=>{for(let r in W)if("data"===r){if(!a(e[r],t[r])&&(!c(e[r])||!a(ea,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},J=(0,i.useMemo)(()=>{let e=!!k&&!!t&&(c(p)?!V().isPaused()&&!u&&(!!c(h)||h):p),r=t=>{let r=f(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=B(),i=U(),o=r(n),a=n===i?o:r(i),s=o;return[()=>{let e=r(B());return $(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>a]},[n,k]),H=(0,o.useSyncExternalStore)((0,i.useCallback)(e=>G(k,(t,r)=>{$(r,t)||e()}),[n,k]),J[0],J[1]),ee=!I.current,et=_[k]&&_[k].length>0,er=H.data,en=c(er)?K:er,ei=H.error,eo=(0,i.useRef)(en),ea=b?c(er)?eo.current:er:en,es=(!et||!!c(ei))&&(ee&&!c(p)?p:!V().isPaused()&&(u?!c(en)&&h:c(en)||h)),eu=!!(k&&t&&ee&&es),ec=c(H.isValidating)?eu:H.isValidating,el=c(H.isLoading)?eu:H.isLoading,ef=(0,i.useCallback)(async e=>{let t,n;let i=A.current;if(!k||!i||N.current||V().isPaused())return!1;let o=!0,u=e||{},f=!S[k]||!u.dedupe,d=()=>x?!N.current&&k===C.current&&I.current:k===C.current,p={isValidating:!1,isLoading:!1},h=()=>{z(p)},v=()=>{let e=S[k];e&&e[1]===n&&delete S[k]},y={isValidating:!0};c(B().data)&&(y.isLoading=!0);try{if(f&&(z(y),r.loadingTimeout&&c(B().data)&&setTimeout(()=>{o&&d()&&V().onLoadingSlow(k,r)},r.loadingTimeout),S[k]=[i(T),F()]),[t,n]=S[k],t=await t,f&&setTimeout(v,r.dedupingInterval),!S[k]||S[k][1]!==n)return f&&d()&&V().onDiscarded(k),!1;p.error=s;let e=w[k];if(!c(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return h(),f&&d()&&V().onDiscarded(k),!1;let u=B().data;p.data=a(u,t)?u:t,f&&d()&&V().onSuccess(t,k,r)}catch(r){v();let e=V(),{shouldRetryOnError:t}=e;!e.isPaused()&&(p.error=r,f&&d()&&(e.onError(r,k,e),(!0===t||l(t)&&t(r))&&(!V().revalidateOnFocus||!V().revalidateOnReconnect||Q())&&e.onErrorRetry(r,k,e,e=>{let t=_[k];t&&t[0]&&t[0](M.ERROR_REVALIDATE_EVENT,e)},{retryCount:(u.retryCount||0)+1,dedupe:!0})))}return o=!1,h(),!0},[k,n]),ed=(0,i.useCallback)((...e)=>q(n,C.current,...e),[]);if(R(()=>{A.current=t,L.current=r,c(er)||(eo.current=er)}),R(()=>{if(!k)return;let e=ef.bind(s,Z),t=0,r=X(k,_,(r,n={})=>{if(r==M.FOCUS_EVENT){let r=Date.now();V().revalidateOnFocus&&r>t&&Q()&&(t=r+V().focusThrottleInterval,e())}else if(r==M.RECONNECT_EVENT)V().revalidateOnReconnect&&Q()&&e();else if(r==M.MUTATE_EVENT)return ef();else if(r==M.ERROR_REVALIDATE_EVENT)return ef(n)});return N.current=!1,C.current=k,I.current=!0,z({_k:T}),es&&(c(en)||D?e():j(e)),()=>{N.current=!0,r()}},[k]),R(()=>{let e;function t(){let t=l(v)?v(B().data):v;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!B().error&&(g||V().isVisible())&&(m||V().isOnline())?ef(Z).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,g,m,k]),(0,i.useDebugValue)(ea),u&&c(en)&&k){if(!x&&D)throw Error("Fallback data is required when using suspense in SSR.");A.current=t,L.current=r,N.current=!1;let e=O[k];if(c(e)||Y(ed(e)),c(ei)){let e=ef(Z);c(ea)||(e.status="fulfilled",e.value=!0),Y(e)}else throw ei}return{mutate:ed,get data(){return W.data=!0,ea},get error(){return W.error=!0,ei},get isValidating(){return W.isValidating=!0,ec},get isLoading(){return W.isLoading=!0,el}}},function(...e){let t=J(),[r,i,o]=$(e),a=G(t,o),s=n,{use:u}=a,c=(u||[]).concat(H);for(let e=c.length;e--;)s=c[e](s);return s(r,i||a.fetcher||null,a)})},7582:function(e,t,r){"use strict";r.d(t,{Jh:function(){return u},ZT:function(){return i},_T:function(){return a},ev:function(){return c},mG:function(){return s},pi:function(){return o}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]}
1)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 o=function(){return(o=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 s(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})}function u(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function c(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;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"==typeof SuppressedError&&SuppressedError}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(6840),t(3079)}),_N_E=e.O()}]); 2//# sourceMappingURL=_app-92b363d9e9716f0a.js.map
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.