PageSourceSearch

https://aifilms.ai/_next/static/chunks/df56464876d46c45.js

js aifilms.ai collected 2026-10-06 07:39:19 UTC 218,290 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,99648,(t,e,r)=>{t.e,e.exports=(()=>{var t,e;return t={276:function(){!function(t){"use strict";t.console||(t.console={});for(var e,r,n=t.console,i=function(){},o=["memory"],s="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");e=o.pop();)n[e]||(n[e]={});for(;r=s.pop();)n[r]||(n[r]=i)}("undefined"==typeof window?this:window)},180:function(t,e,r){var n,i,o;!function(s,a){"use strict";i=[r(124)],void 0===(o="function"==typeof(n=function(t){var e=/(^|@)\S+:\d+/,r=/^\s*at .*(\S+:\d+|\(native\))/m,n=/^(eval@)?(\[native code])?$/;return{parse:function(t){if(void 0!==t.stacktrace||void 0!==t["opera#sourceloc"])return this.parseOpera(t);if(t.stack&&t.stack.match(r))return this.parseV8OrIE(t);if(t.stack)return this.parseFFOrSafari(t);throw Error("Cannot parse given Error object")},extractLocation:function(t){if(-1===t.indexOf(":"))return[t];var e=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/[()]/g,""));return[e[1],e[2]||void 0,e[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(t){return!!t.match(r)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var r=e.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 t({functionName:i.join(" ")||void 0,fileName:["eval","<anonymous>"].indexOf(o[0])>-1?void 0:o[0],lineNumber:o[1],columnNumber:o[2],source:e})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(t){return!t.match(n)},this).map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new t({functionName:e});var r=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(r),i=n&&n[1]?n[1]:void 0,o=this.extractLocation(e.replace(r,""));return new t({functionName:i,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:e})},this)},parseOpera:function(t){return!t.stacktrace||t.message.indexOf("\n")>-1&&t.message.split("\n").length>t.stacktrace.split("\n").length?this.parseOpera9(t):t.stack?this.parseOpera11(t):this.parseOpera10(t)},parseOpera9:function(e){for(var r=/Line (\d+).*script (?:in )?(\S+)/i,n=e.message.split("\n"),i=[],o=2,s=n.length;o<s;o+=2){var a=r.exec(n[o]);a&&i.push(new t({fileName:a[2],lineNumber:a[1],source:n[o]}))}return i},parseOpera10:function(e){for(var r=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,n=e.stacktrace.split("\n"),i=[],o=0,s=n.length;o<s;o+=2){var a=r.exec(n[o]);a&&i.push(new t({functionName:a[3]||void 0,fileName:a[2],lineNumber:a[1],source:n[o]}))}return i},parseOpera11:function(r){return r.stack.split("\n").filter(function(t){return!!t.match(e)&&!t.match(/^Error created at/)},this).map(function(e){var r,n=e.split("@"),i=this.extractLocation(n.pop()),o=n.shift()||"",s=o.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return o.match(/\(([^)]*)\)/)&&(r=o.replace(/^[^(]+\(([^)]*)\)$/,"$1")),new t({functionName:s,args:void 0===r||"[arguments not available]"===r?void 0:r.split(","),fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:e})},this)}}})?n.apply(e,i):n)||(t.exports=o)}()},124:function(t,e){var r,n,i;!function(o,s){"use strict";n=[],void 0===(i="function"==typeof(r=function(){function t(t){return t.charAt(0).toUpperCase()+t.substring(1)}function e(t){return function(){return this[t]}}var r=["isConstructor","isEval","isNative","isToplevel"],n=["columnNumber","lineNumber"],i=["fileName","functionName","source"],o=r.concat(n,i,["args"],["evalOrigin"]);function s(e){if(e)for(var r=0;r<o.length;r++)void 0!==e[o[r]]&&this["set"+t(o[r])](e[o[r]])}s.prototype={getArgs:function(){return this.args},setArgs:function(t){if("[object Array]"!==Object.prototype.toString.call(t))throw TypeError("Args must be an Array");this.args=t},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(t){if(t instanceof s)this.evalOrigin=t;else{if(!(t instanceof Object))throw TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new s(t)}},toString:function(){var t=this.getFileName()||"",e=this.getLineNumber()||"",r=this.getColumnNumber()||"",n=this.getFunctionName()||"";return this.getIsEval()?t?"[eval] ("+t+":"+e+":"+r+")":"[eval]:"+e+":"+r:n?n+" ("+t+":"+e+":"+r+")":t+":"+e+":"+r}},s.fromString=function(t){var e=t.indexOf("("),r=t.lastIndexOf(")"),n=t.substring(0,e),i=t.substring(e+1,r).split(","),o=t.substring(r+1);if(0===o.indexOf("@"))var a=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(o,""),u=a[
11],l=a[2],c=a[3];return new s({functionName:n,args:i||void 0,fileName:u,lineNumber:l||void 0,columnNumber:c||void 0})};for(var a=0;a<r.length;a++)s.prototype["get"+t(r[a])]=e(r[a]),s.prototype["set"+t(r[a])]=function(t){return function(e){this[t]=!!e}}(r[a]);for(var u=0;u<n.length;u++)s.prototype["get"+t(n[u])]=e(n[u]),s.prototype["set"+t(n[u])]=function(t){return function(e){if(!(!isNaN(parseFloat(e))&&isFinite(e)))throw TypeError(t+" must be a Number");this[t]=Number(e)}}(n[u]);for(var l=0;l<i.length;l++)s.prototype["get"+t(i[l])]=e(i[l]),s.prototype["set"+t(i[l])]=function(t){return function(e){this[t]=String(e)}}(i[l]);return s})?r.apply(e,n):r)||(t.exports=i)}()},815:(t,e,r)=>{"use strict";var n=r(702),i=r(817),o={hostname:"api.rollbar.com",path:"/api/1/item/",search:null,version:"1",protocol:"https:",port:443};function s(t,e,r,n,i){this.options=t,this.transport=e,this.url=r,this.truncation=n,this.jsonBackup=i,this.accessToken=t.accessToken,this.transportOptions=a(t,r)}function a(t,e){return i.getTransportFromOptions(t,o,e)}s.prototype.postItem=function(t,e){var r=i.transportOptions(this.transportOptions,"POST"),n=i.buildPayload(this.accessToken,t,this.jsonBackup),o=this;setTimeout(function(){o.transport.post(o.accessToken,r,n,e)},0)},s.prototype.buildJsonPayload=function(t,e){var r,o=i.buildPayload(this.accessToken,t,this.jsonBackup);return(r=this.truncation?this.truncation.truncate(o):n.stringify(o)).error?(e&&e(r.error),null):r.value},s.prototype.postJsonPayload=function(t,e){var r=i.transportOptions(this.transportOptions,"POST");this.transport.postJsonPayload(this.accessToken,r,t,e)},s.prototype.configure=function(t){var e=this.oldOptions;return this.options=n.merge(e,t),this.transportOptions=a(this.options,this.url),void 0!==this.options.accessToken&&(this.accessToken=this.options.accessToken),this},t.exports=s},817:(t,e,r)=>{"use strict";var n=r(702);t.exports={buildPayload:function(t,e,r){if(!n.isType(e.context,"string")){var i=n.stringify(e.context,r);i.error?e.context="Error: could not serialize 'context'":e.context=i.value||"",e.context.length>255&&(e.context=e.context.substr(0,255))}return{access_token:t,data:e}},getTransportFromOptions:function(t,e,r){var n,i,o=e.hostname,s=e.protocol,a=e.port,u=e.path,l=e.search,c=t.timeout,p=(n="undefined"!=typeof window&&window||"undefined"!=typeof self&&self,i=t.defaultTransport||"xhr",void 0===n.fetch&&(i="xhr"),void 0===n.XMLHttpRequest&&(i="fetch"),i),d=t.proxy;if(t.endpoint){var f=r.parse(t.endpoint);o=f.hostname,s=f.protocol,a=f.port,u=f.pathname,l=f.search}return{timeout:c,hostname:o,protocol:s,port:a,path:u,search:l,proxy:d,transport:p}},transportOptions:function(t,e){var r=t.protocol||"https:",n=t.port||("http:"===r?80:"https:"===r?443:void 0),i=t.hostname,o=t.path,s=t.timeout,a=t.transport;return t.search&&(o+=t.search),t.proxy&&(o=r+"//"+i+o,i=t.proxy.host||t.proxy.hostname,n=t.proxy.port,r=t.proxy.protocol||r),{timeout:s,protocol:r,hostname:i,path:o,port:n,method:e,transport:a}},appendPathToPath:function(t,e){var r=/\/$/.test(t),n=/^\//.test(e);return r&&n?e=e.substring(1):r||n||(e="/"+e),t+e}}},409:(t,e,r)=>{"use strict";var n=r(343),i="undefined"!=typeof window&&window._rollbarConfig,o=i&&i.globalAlias||"Rollbar",s="undefined"!=typeof window&&window[o]&&"function"==typeof window[o].shimId&&void 0!==window[o].shimId();if("undefined"==typeof window||window._rollbarStartTime||(window._rollbarStartTime=(new Date).getTime()),!s&&i){var a=new n(i);window[o]=a}else"undefined"!=typeof window?(window.rollbar=n,window._rollbarDidLoad=!0):"undefined"!=typeof self&&(self.rollbar=n,self._rollbarDidLoad=!0);t.exports=n},403:(t,e,r)=>{"use strict";var n=r(562),i=r(702),o=r(815),s=r(802),a=r(349),u=r(477),l=r(509),c=r(860),p=r(417),d=r(172),f=r(61),h=r(303);function m(t,e){this.options=i.handleOptions(E,t,null,s),this.options._configuredOptions=t;var r,a=this.components.telemeter,h=this.components.instrumenter,m=this.components.polyfillJSON;this.wrapGlobals=this.components.wrapGlobals,this.scrub=this.components.scrub;var y=this.components.truncation,g=new u(y),b=new o(this.options,g,l,y);a&&(this.telemeter=new a(this.options)),this.client=e||new n(this.options,b,s,this.telemeter,"browser");var x=w(),O="undefined"!=typeof document&&document;this.isChrome=x.chrome&&x.chrome.runtime,this.anonymousErrorsPending=0,r=this.client.notifier,r.addTransform(c.handleDomException).addTransform(c.handleItemWithError).addTransform(c.ensureItemHasSomethingToSay).addTransform(c.addBaseInfo).addTransform(c.addRequestInfo(x)).addTransform(c.addClientInfo(x)).addTransform(c.addPluginInfo(x)).addTransform(c.addBody).addTransform(p.addMessageWithError).addTransform(p.addTelemetryData).addTransform(p.addConfigToPayload).addTransform(c.addScrubber(this.scrub)).addTransform(p.addPayloadOptions).addTransform(p.userTransform(s)).addTransform(p.addConfiguredOptions).addTransform(p.addDiagnosticKeys).addTransform(p.itemToPayload),this.client.queue.addPredicate(f.checkLevel).addPredicate(d.checkIgnore).addPredicate(f.userCheckIgnore(s)).addPredicate(f.urlIsNotBlockListed(s)).addPredicate(f.urlIsSafeListed(s)).addPredicate(f.messageIsIgnored(s)),this.setupUnhandledCapture(),h&&(this.instrumenter=new h(this.options,this.client.telemeter,this,x,O),this.instrumenter.instrument()),i.setupJSON(m),this.rollbar=this}var y=null;function g(t){var e="Rollbar is not initialized";s.error(e),t&&t(Error(e))}function b(t){for(var e=0,r=t.length;e<r;++e)if(i.isFunction(t[e]))return t[e]}function w(){return"undefined"!=typeof window&&window||"undefined"!=typeof self&&self}m.init=function(t,e){return y?y.global(t).configure(t):y=new m(t,e)},m.prototype.components={},m.setComponents=function(t){m.prototype.components=t},m.prototype.global=function(t){return this.client.global(t),this},m.global=function(t){if(y)return y.global(t);g()},m.prototype.configure=function(t,e){var r=this.options,n={};return e&&(n={payload:e}),this.options=i.handleOptions(r,t,n,s),this.options._configuredOptions=i.handleOptions(r._configuredOptions,t,n),this.client.configure(this.options,e),this.instrumenter&&this.instrumenter.configure(this.options),this.setupUnhandledCapture(),this},m.configure=function(t,e){if(y)return y.configure(t,e);g()},m.prototype.lastError=function(){return this.client.lastError},m.lastError=function(){if(y)return y.lastError();g()},m.prototype.log=function(){var t=this._createItem(arguments),e=t.uuid;return this.client.log(t),{uuid:e}},m.log=function(){if(y)return y.log.apply(y,arguments);g(b(arguments))},m.prototype.debug=function(){var t=this._createItem(arguments),e=t.uuid;return this.client.debug(t),{uuid:e}},m.debug=function(){if(y)return y.debug.apply(y,arguments);g(b(arguments))},m.prototype.info=function(){var t=this._createItem(arguments),e=t.uuid;return this.client.info(t),{uuid:e}},m.info=function(){if(y)return y.info.apply(y,arguments);g(b(arguments))},m.prototype.warn=function(){var t=this._createItem(arguments),e=t.uuid;return this.client.warn(t),{uuid:e}},m.warn=function(){if(y)return y.warn.apply(y,arguments);g(b(arguments))},m.prototype.warning=function(){var t=this._createItem(arguments),e=t.uuid;return this.client.warning(t),{uuid:e}},m.warning=function(){if(y)return y.warning.apply(y,arguments);g(b(arguments))},m.prototype.error=function(){var t=this._createItem(arguments),e=t.uuid;return this.client.error(t),{uuid:e}},m.error=function(){if(y)return y.error.apply(y,arguments);g(b(arguments))},m.prototype.critical=function(){var t=this._createItem(arguments),e=t.uuid;return this.client.critical(t),{uuid:e}},m.critical=function(){if(y)return y.critical.apply(y,arguments);g(b(arguments))},m.prototype.buildJsonPayload=function(t){return this.client.buildJsonPayload(t)},m.buildJsonPayload=function(){if(y)return y.buildJsonPayload.apply(y,arguments);g()},m.prototype.sendJsonPayload=function(t){return this.client.sendJsonPayload(t)},m.sendJsonPayload=function(){if(y)return y.sendJsonPayload.apply(y,arguments);g()},m.prototype.setupUnhandledCapture=function(){var t=w();this.unhandledExceptionsInitialized||(this.options.captureUncaught||this.options.handleUncaughtExceptions)&&(a.captureUncaughtExceptions(t,this),this.wrapGlobals&&this.options.wrapGlobalEventHandlers&&this.wrapGlobals(t,this),this.unhandledExceptionsInitialized=!0),this.unhandledRejectionsInitialized||(this.options.captureUnhandledRejections||this.options.handleUnhandledRejections)&&(a.captureUnhandledRejections(t,this),this.unhandledRejectionsInitialized=!0)}
1,m.prototype.handleUncaughtException=function(t,e,r,n,o,s){if(this.options.captureUncaught||this.options.handleUncaughtExceptions){if(this.options.inspectAnonymousErrors&&this.isChrome&&null===o&&""===e)return"anonymous";var a,u=i.makeUnhandledStackInfo(t,e,r,n,o,"onerror","uncaught exception",h);i.isError(o)?(a=this._createItem([t,o,s]))._unhandledStackInfo=u:i.isError(e)?(a=this._createItem([t,e,s]))._unhandledStackInfo=u:(a=this._createItem([t,s])).stackInfo=u,a.level=this.options.uncaughtErrorLevel,a._isUncaught=!0,this.client.log(a)}},m.prototype.handleAnonymousErrors=function(){if(this.options.inspectAnonymousErrors&&this.isChrome){var t=this;try{Error.prepareStackTrace=function(e,r){if(t.options.inspectAnonymousErrors&&t.anonymousErrorsPending){if(t.anonymousErrorsPending-=1,!e)return;e._isAnonymous=!0,t.handleUncaughtException(e.message,null,null,null,e)}return e.stack}}catch(t){this.options.inspectAnonymousErrors=!1,this.error("anonymous error handler failed",t)}}},m.prototype.handleUnhandledRejection=function(t,e){if(this.options.captureUnhandledRejections||this.options.handleUnhandledRejections){var r="unhandled rejection was null or undefined!";if(t)if(t.message)r=t.message;else{var n=i.stringify(t);n.value&&(r=n.value)}var o,s=t&&t._rollbarContext||e&&e._rollbarContext;i.isError(t)?o=this._createItem([r,t,s]):(o=this._createItem([r,t,s])).stackInfo=i.makeUnhandledStackInfo(r,"",0,0,null,"unhandledrejection","",h),o.level=this.options.uncaughtErrorLevel,o._isUncaught=!0,o._originalArgs=o._originalArgs||[],o._originalArgs.push(e),this.client.log(o)}},m.prototype.wrap=function(t,e,r){try{var n;if(n=i.isFunction(e)?e:function(){return e||{}},!i.isFunction(t)||t._isWrap)return t;if(!t._rollbar_wrapped&&(t._rollbar_wrapped=function(){r&&i.isFunction(r)&&r.apply(this,arguments);try{return t.apply(this,arguments)}catch(r){var e=r;throw e&&window._rollbarWrappedError!==e&&(i.isType(e,"string")&&(e=new String(e)),e._rollbarContext=n()||{},e._rollbarContext._wrappedSource=t.toString(),window._rollbarWrappedError=e),e}},t._rollbar_wrapped._isWrap=!0,t.hasOwnProperty))for(var o in t)t.hasOwnProperty(o)&&"_rollbar_wrapped"!==o&&(t._rollbar_wrapped[o]=t[o]);return t._rollbar_wrapped}catch(e){return t}},m.wrap=function(t,e){if(y)return y.wrap(t,e);g()},m.prototype.captureEvent=function(){var t=i.createTelemetryEvent(arguments);return this.client.captureEvent(t.type,t.metadata,t.level)},m.captureEvent=function(){if(y)return y.captureEvent.apply(y,arguments);g()},m.prototype.captureDomContentLoaded=function(t,e){return e||(e=new Date),this.client.captureDomContentLoaded(e)},m.prototype.captureLoad=function(t,e){return e||(e=new Date),this.client.captureLoad(e)},m.prototype.loadFull=function(){s.info("Unexpected Rollbar.loadFull() called on a Notifier instance. This can happen when Rollbar is loaded multiple times.")},m.prototype._createItem=function(t){return i.createItem(t,s,this)};var x=r(948),O=r(677),E={version:x.version,scrubFields:O.scrubFields,logLevel:x.logLevel,reportLevel:x.reportLevel,uncaughtErrorLevel:x.uncaughtErrorLevel,endpoint:x.endpoint,verbose:!1,enabled:!0,transmit:!0,sendConfig:!1,includeItemsInTelemetry:!0,captureIp:!0,inspectAnonymousErrors:!0,ignoreDuplicateErrors:!0,wrapGlobalEventHandlers:!1};t.exports=m},677:t=>{"use strict";t.exports={scrubFields:["pw","pass","passwd","password","secret","confirm_password","confirmPassword","password_confirmation","passwordConfirmation","access_token","accessToken","X-Rollbar-Access-Token","secret_key","secretKey","secretToken","cc-number","card number","cardnumber","cardnum","ccnum","ccnumber","cc num","creditcardnumber","credit card number","newcreditcardnumber","new credit card","creditcardno","credit card no","card#","card #","cc-csc","cvc","cvc2","cvv2","ccv2","security code","card verification","name on credit card","name on card","nameoncard","cardholder","card holder","name des karteninhabers","ccname","card type","cardtype","cc type","cctype","payment type","expiration date","expirationdate","expdate","cc-exp","ccmonth","ccyear"]}},616:t=>{"use strict";
1t.exports={ieVersion:function(){var t;if("undefined"==typeof document)return t;for(var e=3,r=document.createElement("div"),n=r.getElementsByTagName("i");r.innerHTML="<!--[if gt IE "+ ++e+"]><i></i><![endif]-->",n[0];);return e>4?e:t}}},300:t=>{"use strict";function e(t){return(t.getAttribute("type")||"").toLowerCase()}function r(t){if(!t||!t.tagName)return"";var e=[t.tagName];t.id&&e.push("#"+t.id),t.classes&&e.push("."+t.classes.join("."));for(var r=0;r<t.attributes.length;r++)e.push("["+t.attributes[r].key+'="'+t.attributes[r].value+'"]');return e.join("")}function n(t){if(!t||!t.tagName)return null;var e,r,n,i,o={};o.tagName=t.tagName.toLowerCase(),t.id&&(o.id=t.id),(e=t.className)&&"string"==typeof e&&(o.classes=e.split(/\s+/));var s=["type","name","title","alt"];for(o.attributes=[],i=0;i<s.length;i++)r=s[i],(n=t.getAttribute(r))&&o.attributes.push({key:r,value:n});return o}t.exports={describeElement:n,descriptionToString:r,elementArrayToString:function(t){for(var e,n,i=[],o=0,s=t.length-1;s>=0;s--){if(e=r(t[s]),n=o+3*i.length+e.length,s<t.length-1&&n>=83){i.unshift("...");break}i.unshift(e),o+=e.length}return i.join(" > ")},treeToArray:function(t){for(var e,r=[],i=0;t&&i<5&&"html"!==(e=n(t)).tagName;i++)r.unshift(e),t=t.parentNode;return r},getElementFromEvent:function(t,e){return t.target?t.target:e&&e.elementFromPoint?e.elementFromPoint(t.clientX,t.clientY):void 0},isDescribedElement:function(t,r,n){if(t.tagName.toLowerCase()!==r.toLowerCase())return!1;if(!n)return!0;t=e(t);for(var i=0;i<n.length;i++)if(n[i]===t)return!0;return!1},getElementType:e}},349:t=>{"use strict";t.exports={captureUncaughtExceptions:function(t,e,r){if(t){if("function"==typeof e._rollbarOldOnError)n=e._rollbarOldOnError;else if(t.onerror){for(n=t.onerror;n._rollbarOldOnError;)n=n._rollbarOldOnError;e._rollbarOldOnError=n}e.handleAnonymousErrors();var n,i=function(){var r,i,o=Array.prototype.slice.call(arguments,0);r=n,t._rollbarWrappedError&&(o[4]||(o[4]=t._rollbarWrappedError),o[5]||(o[5]=t._rollbarWrappedError._rollbarContext),t._rollbarWrappedError=null),i=e.handleUncaughtException.apply(e,o),r&&r.apply(t,o),"anonymous"===i&&(e.anonymousErrorsPending+=1)};r&&(i._rollbarOldOnError=n),t.onerror=i}},captureUnhandledRejections:function(t,e,r){if(t){"function"==typeof t._rollbarURH&&t._rollbarURH.belongsToShim&&t.removeEventListener("unhandledrejection",t._rollbarURH);var n=function(t){var r,n,i;try{r=t.reason}catch(t){r=void 0}try{n=t.promise}catch(t){n="[unhandledrejection] error getting `promise` from event"}try{i=t.detail,!r&&i&&(r=i.reason,n=i.promise)}catch(t){}r||(r="[unhandledrejection] error getting `reason` from event"),e&&e.handleUnhandledRejection&&e.handleUnhandledRejection(r,n)};n.belongsToShim=r,t._rollbarURH=n,t.addEventListener("unhandledrejection",n)}}}},802:(t,e,r)=>{"use strict";r(276);var n=r(616),i=r(702);t.exports={error:function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("Rollbar:"),8>=n.ieVersion()?console.error(i.formatArgsAsString(t)):console.error.apply(console,t)},info:function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("Rollbar:"),8>=n.ieVersion()?console.info(i.formatArgsAsString(t)):console.info.apply(console,t)},log:function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("Rollbar:"),8>=n.ieVersion()?console.log(i.formatArgsAsString(t)):console.log.apply(console,t)}}},172:(t,e,r)=>{"use strict";var n=r(702);t.exports={checkIgnore:function(t,e){return!n.get(e,"plugins.jquery.ignoreAjaxErrors")||!n.get(t,"body.message.extra.isAjax")}}},343:(t,e,r)=>{"use strict";var n=r(403),i=r(773),o=r(568),s=r(876),a=r(965),u=r(369),l=r(473);n.setComponents({telemeter:i,instrumenter:o,polyfillJSON:s,wrapGlobals:a,scrub:u,truncation:l}),t.exports=n},568:(t,e,r)=>{"use strict";var n=r(702),i=r(650),o=r(297),s=r(369),a=r(509),u=r(300),l={network:!0,networkResponseHeaders:!1,networkResponseBody:!1,networkRequestHeaders:!1,networkRequestBody:!1,networkErrorOnHttp5xx:!1,networkErrorOnHttp4xx:!1,networkErrorOnHttp0:!1,log:!0,dom:!0,navigation:!0,connectivity:!0,contentSecurityPolicy:!0,errorOnContentSecurityPolicy:!1};function c(t,e){for(var r;t[e].length;)(r=t[e].shift())[0][r[1]]=r[2]}function p(t,e,r,i,o){this.options=t;var s=t.autoInstrument;!1===t.enabled||!1===s?this.autoInstrument={}:(n.isType(s,"object")||(s=l),this.autoInstrument=n.merge(l,s)),this.scrubTelemetryInputs=!!t.scrubTelemetryInputs,this.telemetryScrubber=t.telemetryScrubber,this.defaultValueScrubber=function(t){for(var e=[],r=0;r<t.length;++r)e.push(RegExp(t[r],"i"));return function(t){var r=function(t){if(!t||!t.attributes)return null;for(var e=t.attributes,r=0;r<e.length;++r)if("name"===e[r].key)return e[r].value;return null}(t);if(!r)return!1;for(var n=0;n<e.length;++n)if(e[n].test(r))return!0;return!1}}(t.scrubFields),this.telemeter=e,this.rollbar=r,this.diagnostic=r.client.notifier.diagnostic,this._window=i||{},this._document=o||{},this.replacements={network:[],log:[],navigation:[],connectivity:[]},this.eventRemovers={dom:[],connectivity:[],contentsecuritypolicy:[]},this._location=this._window.location,this._lastHref=this._location&&this._location.href}function d(t){return"undefined"!=typeof URL&&t instanceof URL}
1p.prototype.configure=function(t){this.options=n.merge(this.options,t);var e=t.autoInstrument,r=n.merge(this.autoInstrument);!1===t.enabled||!1===e?this.autoInstrument={}:(n.isType(e,"object")||(e=l),this.autoInstrument=n.merge(l,e)),this.instrument(r),void 0!==t.scrubTelemetryInputs&&(this.scrubTelemetryInputs=!!t.scrubTelemetryInputs),void 0!==t.telemetryScrubber&&(this.telemetryScrubber=t.telemetryScrubber)},p.prototype.instrument=function(t){!this.autoInstrument.network||t&&t.network?!this.autoInstrument.network&&t&&t.network&&this.deinstrumentNetwork():this.instrumentNetwork(),!this.autoInstrument.log||t&&t.log?!this.autoInstrument.log&&t&&t.log&&this.deinstrumentConsole():this.instrumentConsole(),!this.autoInstrument.dom||t&&t.dom?!this.autoInstrument.dom&&t&&t.dom&&this.deinstrumentDom():this.instrumentDom(),!this.autoInstrument.navigation||t&&t.navigation?!this.autoInstrument.navigation&&t&&t.navigation&&this.deinstrumentNavigation():this.instrumentNavigation(),!this.autoInstrument.connectivity||t&&t.connectivity?!this.autoInstrument.connectivity&&t&&t.connectivity&&this.deinstrumentConnectivity():this.instrumentConnectivity(),!this.autoInstrument.contentSecurityPolicy||t&&t.contentSecurityPolicy?!this.autoInstrument.contentSecurityPolicy&&t&&t.contentSecurityPolicy&&this.deinstrumentContentSecurityPolicy():this.instrumentContentSecurityPolicy()},p.prototype.deinstrumentNetwork=function(){c(this.replacements,"network")},p.prototype.instrumentNetwork=function(){var t=this;function e(e,r){e in r&&n.isFunction(r[e])&&o(r,e,function(e){return t.rollbar.wrap(e)})}if("XMLHttpRequest"in this._window){var r=this._window.XMLHttpRequest.prototype;o(r,"open",function(t){return function(e,r){var i=d(r);return(n.isType(r,"string")||i)&&(r=i?r.toString():r,this.__rollbar_xhr?(this.__rollbar_xhr.method=e,this.__rollbar_xhr.url=r,this.__rollbar_xhr.status_code=null,this.__rollbar_xhr.start_time_ms=n.now(),this.__rollbar_xhr.end_time_ms=null):this.__rollbar_xhr={method:e,url:r,status_code:null,start_time_ms:n.now(),end_time_ms:null}),t.apply(this,arguments)}},this.replacements,"network"),o(r,"setRequestHeader",function(e){return function(r,i){return this.__rollbar_xhr||(this.__rollbar_xhr={}),n.isType(r,"string")&&n.isType(i,"string")&&(t.autoInstrument.networkRequestHeaders&&(this.__rollbar_xhr.request_headers||(this.__rollbar_xhr.request_headers={}),this.__rollbar_xhr.request_headers[r]=i),"content-type"===r.toLowerCase()&&(this.__rollbar_xhr.request_content_type=i)),e.apply(this,arguments)}},this.replacements,"network"),o(r,"send",function(r){return function(i){var s=this;function a(){if(s.__rollbar_xhr&&(null===s.__rollbar_xhr.status_code&&(s.__rollbar_xhr.status_code=0,t.autoInstrument.networkRequestBody&&(s.__rollbar_xhr.request=i),s.__rollbar_event=t.captureNetwork(s.__rollbar_xhr,"xhr",void 0)),s.readyState<2&&(s.__rollbar_xhr.start_time_ms=n.now()),s.readyState>3)){s.__rollbar_xhr.end_time_ms=n.now();var e=null;if(s.__rollbar_xhr.response_content_type=s.getResponseHeader("Content-Type"),t.autoInstrument.networkResponseHeaders){var r=t.autoInstrument.networkResponseHeaders;e={};try{if(!0===r){var o=s.getAllResponseHeaders();if(o){var a,u,l,c,p=o.trim().split(/[\r\n]+/);for(u=0;u<p.length;u++)a=(l=p[u].split(": ")).shift(),c=l.join(": "),e[a]=c}}else for(u=0;u<r.length;u++)e[a=r[u]]=s.getResponseHeader(a)}catch(t){}}var d=null;if(t.autoInstrument.networkResponseBody)try{d=s.responseText}catch(t){}var f=null;(d||e)&&(f={},d&&(t.isJsonContentType(s.__rollbar_xhr.response_content_type)?f.body=t.scrubJson(d):f.body=d),e&&(f.headers=e)),f&&(s.__rollbar_xhr.response=f);try{var h=s.status;h=1223===h?204:h,s.__rollbar_xhr.status_code=h,s.__rollbar_event.level=t.telemeter.levelFromStatus(h),t.errorOnHttpStatus(s.__rollbar_xhr)}catch(t){}}}return e("onload",s),e("onerror",s),e("onprogress",s),"onreadystatechange"in s&&n.isFunction(s.onreadystatechange)?o(s,"onreadystatechange",function(e){return t.rollbar.wrap(e,void 0,a)}):s.onreadystatechange=a,s.__rollbar_xhr&&t.trackHttpErrors()&&(s.__rollbar_xhr.stack=Error().stack),r.apply(this,arguments)}},this.replacements,"network")}"fetch"in this._window&&o(this._window,"fetch",function(e){return function(r,o){for(var s=Array(arguments.length),a=0,u=s.length;a<u;a++)s[a]=arguments[a];var l,c=s[0],p="GET",f=d(c);n.isType(c,"string")||f?l=f?c.toString():c:c&&(l=c.url,c.method&&(p=c.method)),s[1]&&s[1].method&&(p=s[1].method);var h={method:p,url:l,status_code:null,start_time_ms:n.now(),end_time_ms:null};if(s[1]&&s[1].headers){var m=i(s[1].headers);h.request_content_type=m.get("Content-Type"),t.autoInstrument.networkRequestHeaders&&(h.request_headers=t.fetchHeaders(m,t.autoInstrument.networkRequestHeaders))}return t.autoInstrument.networkRequestBody&&(s[1]&&s[1].body?h.request=s[1].body:s[0]&&!n.isType(s[0],"string")&&s[0].body&&(h.request=s[0].body)),t.captureNetwork(h,"fetch",void 0),t.trackHttpErrors()&&(h.stack=Error().stack),e.apply(this,s).then(function(e){h.end_time_ms=n.now(),h.status_code=e.status,h.response_content_type=e.headers.get("Content-Type");var r=null;t.autoInstrument.networkResponseHeaders&&(r=t.fetchHeaders(e.headers,t.autoInstrument.networkResponseHeaders));var i=null;return t.autoInstrument.networkResponseBody&&"function"==typeof e.text&&(i=e.clone().text()),(r||i)&&(h.response={},i&&("function"==typeof i.then?i.then(function(e){e&&t.isJsonContentType(h.response_content_type)?h.response.body=t.scrubJson(e):h.response.body=e}):h.response.body=i),r&&(h.response.headers=r)),t.errorOnHttpStatus(h),e})}},this.replacements,"network")},p.prototype.captureNetwork=function(t,e,r){return t.request&&this.isJsonContentType(t.request_content_type)&&(t.request=this.scrubJson(t.request)),this.telemeter.captureNetwork(t,e,r)},p.prototype.isJsonContentType=function(t){return!!(t&&n.isType(t,"string")&&t.toLowerCase().includes("json"))},p.prototype.scrubJson=function(t){return JSON.stringify(s(JSON.parse(t),this.options.scrubFields))},p.prototype.fetchHeaders=function(t,e){var r,n={};try{if(!0===e){if("function"==typeof t.entries)for(var i=t.entries(),o=i.next();!o.done;)n[o.value[0]]=o.value[1],o=i.next()}else for(r=0;r<e.length;r++){var s=e[r];n[s]=t.get(s)}}catch(t){}return n},p.prototype.trackHttpErrors=function(){return this.autoInstrument.networkErrorOnHttp5xx||this.autoInstrument.networkErrorOnHttp4xx||this.autoInstrument.networkErrorOnHttp0},p.prototype.errorOnHttpStatus=function(t){var e=t.status_code;if(e>=500&&this.autoInstrument.networkErrorOnHttp5xx||e>=400&&this.autoInstrument.networkErrorOnHttp4xx||0===e&&this.autoInstrument.networkErrorOnHttp0){var r=Error("HTTP request failed with Status "+e);r.stack=t.stack,this.rollbar.error(r,{skipFrames:1})}},p.prototype.deinstrumentConsole=function(){if("console"in this._window&&this._window.console.log)for(var t;this.replacements.log.length;)t=this.replacements.log.shift(),this._window.console[t[0]]=t[1]},p.prototype.instrumentConsole=function(){if("console"in this._window&&this._window.console.log){var t=this,e=this._window.console,r=["debug","info","warn","error","log"];try{for(var i=0,o=r.length;i<o;i++)!function(r){var i=e[r],o="warn"===r?"warning":r;e[r]=function(){var r=Array.prototype.slice.call(arguments),s=n.formatArgsAsString(r);t.telemeter.captureLog(s,o),i&&Function.prototype.apply.call(i,e,r)},t.replacements.log.push([r,i])}(r[i])}catch(t){this.diagnostic.instrumentConsole={error:t.message}}}},p.prototype.deinstrumentDom=function(){("addEventListener"in this._window||"attachEvent"in this._window)&&this.removeListeners("dom")},p.prototype.instrumentDom=function(){if("addEventListener"in this._window||"attachEvent"in this._window){var t=this.handleClick.bind(this),e=this.handleBlur.bind(this);this.addListener("dom",this._window,"click","onclick",t,!0),this.addListener("dom",this._window,"blur","onfocusout",e,!0)}},p.prototype.handleClick=function(t){try{var e=u.getElementFromEvent(t,this._document),r=e&&e.tagName,n=u.isDescribedElement(e,"a")||u.isDescribedElement(e,"button");r&&(n||u.isDescribedElement(e,"input",["button","submit"]))?this.captureDomEvent("click",e):u.isDescribedElement(e,"input",["checkbox","radio"])&&this.captureDomEvent("input",e,e.value,e.checked)}catch(t){}},p.prototype.handleBlur=function(t){try{var e=u.getElementFromEvent(t,this._document);e&&e.tagName&&(u.isDescribedElement(e,"textarea")?this.captureDomEvent("input",e,e.value):u.isDescribedElement(e,"select")&&e.options&&e.options.length?this.handleSelectInputChanged(e):u.isDescribedElement(e,"input")&&!u.isDescribedElement(e,"input",["button","submit","hidden","checkbox","radio"])&&this.captureDomEvent("input",e,e.value))}catch(t){}},p.prototype.handleSelectInputChanged=function(t){if(t.multiple)for(var e=0;e<t.options.length;e++)t.options[e].selected&&this.captureDomEvent("input",t,t.options[e].value);else t.selectedIndex>=0&&t.options[t.selectedIndex]&&this.captureDomEvent("input",t,t.options[t.selectedIndex].value)},p.prototype.captureDomEvent=function(t,e,r,n){if(void 0!==r)if(this.scrubTelemetryInputs||"password"===u.getElementType(e))r="[scrubbed]";else{var i=u.describeElement(e);this.telemetryScrubber?this.telemetryScrubber(i)&&(r="[scrubbed]"):this.defaultValueScrubber(i)&&(r="[scrubbed]")}var o=u.elementArrayToString(u.treeToArray(e));this.telemeter.captureDom(t,o,r,n)},p.prototype.deinstrumentNavigation=function(){var t=this._window.chrome;!(t&&t.app&&t.app.runtime)&&this._window.history&&this._window.history.pushState&&c(this.replacements,"navigation")},p.prototype.instrumentNavigation=function(){var t=this._window.chrome;if(!(t&&t.app&&t.app.runtime)&&this._window.history&&this._window.history.pushState){var e=this;o(this._window,"onpopstate",function(t){return function(){var r=e._location.href;e.handleUrlChange(e._lastHref,r),t&&t.apply(this,arguments)}},this.replacements,"navigation"),o(this._window.history,"pushState",function(t){return function(){var r=arguments.length>2?arguments[2]:void 0;return r&&e.handleUrlChange(e._lastHref,r+""),t.apply(this,arguments)}},this.replacements,"navigation")}},p.prototype.handleUrlChange=function(t,e){var r=a.parse(this._location.href),n=a.parse(e),i=a.parse(t);this._lastHref=e,r.protocol===n.protocol&&r.host===n.host&&(e=n.path+(n.hash||"")),r.protocol===i.protocol&&r.host===i.host&&(t=i.path+(i.hash||"")),this.telemeter.captureNavigation(t,e)},p.prototype.deinstrumentConnectivity=function(){("addEventListener"in this._window||"body"in this._document)&&(this._window.addEventListener?this.removeListeners("connectivity"):c(this.replacements,"connectivity"))},p.prototype.instrumentConnectivity=function(){if("addEventListener"in this._window||"body"in this._document)if(this._window.addEventListener)this.addListener("connectivity",this._window,"online",void 0,(function(){this.telemeter.captureConnectivityChange("online")}).bind(this),!0),this.addListener("connectivity",this._window,"offline",void 0,(function(){this.telemeter.captureConnectivityChange("offline")}).bind(this),!0);else{var t=this;o(this._document.body,"ononline",function(e){return function(){t.telemeter.captureConnectivityChange("online"),e&&e.apply(this,arguments)}},this.replacements,"connectivity"),o(this._document.body,"onoffline",function(e){return function(){t.telemeter.captureConnectivityChange("offline"),e&&e.apply(this,arguments)}},this.replacements,"connectivity")}},p.prototype.handleCspEvent=function(t){var e="Security Policy Violation: blockedURI: "+t.blockedURI+", violatedDirective: "+t.violatedDirective+", effectiveDirective: "+t.effectiveDirective+", ";t.sourceFile&&(e+="location: "+t.sourceFile+", line: "+t.lineNumber+", col: "+t.columnNumber+", "),e+="originalPolicy: "+t.originalPolicy,this.telemeter.captureLog(e,"error"),this.handleCspError(e)},p.prototype.handleCspError=function(t){this.autoInstrument.errorOnContentSecurityPolicy&&this.rollbar.error(t)},p.prototype.deinstrumentContentSecurityPolicy=function(){"addEventListener"in this._document&&this.removeListeners("contentsecuritypolicy")},p.prototype.instrumentContentSecurityPolicy=function(){if("addEventListener"in this._document){var t=this.handleCspEvent.bind(this);this.addListener("contentsecuritypolicy",this._document,"securitypolicyviolation",null,t,!1)}},p.prototype.addListener=function(t,e,r,n,i,o){e.addEventListener?(e.addEventListener(r,i,o),this.eventRemovers[t].push(function(){e.removeEventListener(r,i,o)})):n&&(e.attachEvent(n,i),this.eventRemovers[t].push(function(){e.detachEvent(n,i)}))},p.prototype.removeListeners=function(t){for(;this.eventRemovers[t].length;)this.eventRemovers[t].shift()()},t.exports=p},860:(t,e,r)=>{"use strict";var n=r(702),i=r(303),o=r(802);function s(t,e,r){var i=t.message,o=t.custom;i||(i="Item sent with null or missing arguments.");var s={body:i};
1o&&(s.extra=n.merge(o)),n.set(t,"data.body",{message:s}),r(null,t)}function a(t){var e=t.stackInfo.stack;return e&&0===e.length&&t._unhandledStackInfo&&t._unhandledStackInfo.stack&&(e=t._unhandledStackInfo.stack),e}function u(t,e,r){var o,s,u,c,p,d,f,h,m=t&&t.data.description,y=t&&t.custom,g=a(t),b=i.guessErrorClass(e.message),w={exception:{class:l(e,b[0],r),message:b[1]}};if(m&&(w.exception.description=m),g){for(0===g.length&&(w.exception.stack=e.rawStack,w.exception.raw=String(e.rawException)),w.frames=[],f=0;f<g.length;++f)s={filename:(o=g[f]).url?n.sanitizeUrl(o.url):"(unknown)",lineno:o.line||null,method:o.func&&"?"!==o.func?o.func:"[anonymous]",colno:o.column},r.sendFrameUrl&&(s.url=o.url),s.method&&s.method.endsWith&&s.method.endsWith("_rollbar_wrapped")||(u=c=p=null,(d=o.context?o.context.length:0)&&(h=Math.floor(d/2),c=o.context.slice(0,h),u=o.context[h],p=o.context.slice(h)),u&&(s.code=u),(c||p)&&(s.context={},c&&c.length&&(s.context.pre=c),p&&p.length&&(s.context.post=p)),o.args&&(s.args=o.args),w.frames.push(s));w.frames.reverse(),y&&(w.extra=n.merge(y))}return w}function l(t,e,r){return t.name?t.name:r.guessErrorClass?e:"(unknown)"}t.exports={handleDomException:function(t,e,r){if(t.err&&"DOMException"===i.Stack(t.err).name){var n=Error();n.name=t.err.name,n.message=t.err.message,n.stack=t.err.stack,n.nested=t.err,t.err=n}r(null,t)},handleItemWithError:function(t,e,r){if(t.data=t.data||{},t.err)try{t.stackInfo=t.err._savedStackTrace||i.parse(t.err,t.skipFrames),e.addErrorContext&&function(t){var e=[],r=t.err;for(e.push(r);r.nested||r.cause;)r=r.nested||r.cause,e.push(r);n.addErrorContext(t,e)}(t)}catch(e){o.error("Error while parsing the error object.",e);try{t.message=t.err.message||t.err.description||t.message||String(t.err)}catch(e){t.message=String(t.err)||String(e)}delete t.err}r(null,t)},ensureItemHasSomethingToSay:function(t,e,r){t.message||t.stackInfo||t.custom||r(Error("No message, stack info, or custom data"),null),r(null,t)},addBaseInfo:function(t,e,r){var i=e.payload&&e.payload.environment||e.environment;
1t.data=n.merge(t.data,{environment:i,level:t.level,endpoint:e.endpoint,platform:"browser",framework:"browser-js",language:"javascript",server:{},uuid:t.uuid,notifier:{name:"rollbar-browser-js",version:e.version},custom:t.custom}),r(null,t)},addRequestInfo:function(t){return function(e,r,i){var o={};t&&t.location&&(o.url=t.location.href,o.query_string=t.location.search);var s="$remote_ip";r.captureIp?!0!==r.captureIp&&(s+="_anonymize"):s=null,s&&(o.user_ip=s),Object.keys(o).length>0&&n.set(e,"data.request",o),i(null,e)}},addClientInfo:function(t){return function(e,r,i){if(!t)return i(null,e);var o=t.navigator||{},s=t.screen||{};n.set(e,"data.client",{runtime_ms:e.timestamp-t._rollbarStartTime,timestamp:Math.round(e.timestamp/1e3),javascript:{browser:o.userAgent,language:o.language,cookie_enabled:o.cookieEnabled,screen:{width:s.width,height:s.height}}}),i(null,e)}},addPluginInfo:function(t){return function(e,r,i){if(!t||!t.navigator)return i(null,e);for(var o,s=[],a=t.navigator.plugins||[],u=0,l=a.length;u<l;++u)o=a[u],s.push({name:o.name,description:o.description});n.set(e,"data.client.javascript.plugins",s),i(null,e)}},addBody:function(t,e,r){t.stackInfo?t.stackInfo.traceChain?function(t,e,r){for(var i=t.stackInfo.traceChain,o=[],s=i.length,a=0;a<s;a++){var l=u(t,i[a],e);o.push(l)}n.set(t,"data.body",{trace_chain:o}),r(null,t)}(t,e,r):function(t,e,r){if(a(t)){var o=u(t,t.stackInfo,e);n.set(t,"data.body",{trace:o}),r(null,t)}else{var c=t.stackInfo,p=i.guessErrorClass(c.message);t.message=l(c,p[0],e)+": "+p[1],s(t,0,r)}}(t,e,r):s(t,0,r)},addScrubber:function(t){return function(e,r,n){if(t){var i=r.scrubFields||[],o=r.scrubPaths||[];e.data=t(e.data,i,o)}n(null,e)}}}},477:(t,e,r)=>{"use strict";var n=r(702),i=r(656),o=r(86);function s(t){this.truncation=t}s.prototype.get=function(t,e,r,i,o){i&&n.isFunction(i)||(i=function(){}),n.addParamsAndAccessTokenToPath(t,e,r);var s=n.formatUrl(e);this._makeZoneRequest(t,s,"GET",null,i,o,e.timeout,e.transport)},s.prototype.post=function(t,e,r,i,o){if(i&&n.isFunction(i)||(i=function(){}),!r)return i(Error("Cannot send empty request"));if((s=this.truncation?this.truncation.truncate(r):n.stringify(r)).error)return i(s.error);var s,a=s.value,u=n.formatUrl(e);this._makeZoneRequest(t,u,"POST",a,i,o,e.timeout,e.transport)},s.prototype.postJsonPayload=function(t,e,r,i,o){i&&n.isFunction(i)||(i=function(){});var s=n.formatUrl(e);this._makeZoneRequest(t,s,"POST",r,i,o,e.timeout,e.transport)},s.prototype._makeZoneRequest=function(){var t="undefined"!=typeof window&&window||void 0!==i&&i,e=t&&t.Zone&&t.Zone.current,r=Array.prototype.slice.call(arguments);if(e&&"angular"===e._name){var n=e._parent,i=this;n.run(function(){i._makeRequest.apply(void 0,r)})}else this._makeRequest.apply(void 0,r)},s.prototype._makeRequest=function(t,e,r,n,s,a,u,l){if("undefined"!=typeof RollbarProxy)return void(new RollbarProxy).sendJsonPayload(n,function(t){},function(t){s(Error(t))});"fetch"===l?i(t,e,r,n,s,u):o(t,e,r,n,s,a,u)},t.exports=s},656:(t,e,r)=>{"use strict";var n=r(802),i=r(702);t.exports=function(t,e,r,o,s,a){var u,l;i.isFiniteNumber(a)&&(u=new AbortController,l=setTimeout(function(){u.abort()},a)),fetch(e,{method:r,headers:{"Content-Type":"application/json","X-Rollbar-Access-Token":t,signal:u&&u.signal},body:o}).then(function(t){return l&&clearTimeout(l),t.json()}).then(function(t){s(null,t)}).catch(function(t){n.error(t.message),s(t)})}},86:(t,e,r)=>{"use strict";var n=r(702),i=r(802);function o(t,e){var r=Error(t);return r.code=e||"ENOTFOUND",r}t.exports=function(t,e,r,s,a,u,l){var c;if(!(c=u?u():function(){var t,e,r=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],n=r.length;for(e=0;e<n;e++)try{t=r[e]();break}catch(t){}return t}()))return a(Error("No way to send a request"));try{try{var p=function(){try{if(p&&4===c.readyState){p=void 0;var t,e=n.jsonParse(c.responseText);if(c&&c.status&&200===c.status)return void a(e.error,e.value);if(c&&n.isType(c.status,"number")&&c.status>=400&&c.status<600){if(403===c.status){var r=e.value&&e.value.message;i.error(r)}a(Error(String(c.status)))}else a(o("XHR response had no status code (likely connection failure)"))}}catch(e){t=e&&e.stack?e:Error(e),a(t)}};c.open(r,e,!0),c.setRequestHeader&&(c.setRequestHeader("Content-Type","application/json"),c.setRequestHeader("X-Rollbar-Access-Token",t)),n.isFiniteNumber(l)&&(c.timeout=l),c.onreadystatechange=p,c.send(s)}catch(t){if("undefined"!=typeof XDomainRequest){if(!window||!window.location)return a(Error("No window available during request, unknown environment"));"http:"===window.location.href.substring(0,5)&&"https"===e.substring(0,5)&&(e="http"+e.substring(5));var d=new XDomainRequest;d.onprogress=function(){},d.ontimeout=function(){a(o("Request timed out","ETIMEDOUT"))},d.onerror=function(){a(Error("Error during request"))},d.onload=function(){var t=n.jsonParse(d.responseText);a(t.error,t.value)},d.open(r,e,!0),d.send(s)}else a(Error("Cannot find a method to transport a request"))}}catch(t){a(t)}}},509:t=>{"use strict";
1t.exports={parse:function(t){var e,r,n={protocol:null,auth:null,host:null,path:null,hash:null,href:t,hostname:null,port:null,pathname:null,search:null,query:null};if(-1!==(e=t.indexOf("//"))?(n.protocol=t.substring(0,e),r=e+2):r=0,-1!==(e=t.indexOf("@",r))&&(n.auth=t.substring(r,e),r=e+1),-1===(e=t.indexOf("/",r))){if(-1===(e=t.indexOf("?",r)))return -1===(e=t.indexOf("#",r))?n.host=t.substring(r):(n.host=t.substring(r,e),n.hash=t.substring(e)),n.hostname=n.host.split(":")[0],n.port=n.host.split(":")[1],n.port&&(n.port=parseInt(n.port,10)),n;n.host=t.substring(r,e),n.hostname=n.host.split(":")[0],n.port=n.host.split(":")[1],n.port&&(n.port=parseInt(n.port,10)),r=e}else n.host=t.substring(r,e),n.hostname=n.host.split(":")[0],n.port=n.host.split(":")[1],n.port&&(n.port=parseInt(n.port,10)),r=e;if(-1===(e=t.indexOf("#",r))?n.path=t.substring(r):(n.path=t.substring(r,e),n.hash=t.substring(e)),n.path){var i=n.path.split("?");n.pathname=i[0],n.query=i[1],n.search=n.query?"?"+n.query:null}return n}}},965:t=>{"use strict";t.exports=function(t,e,r){if(t){var n,i,o="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".split(",");for(n=0;n<o.length;++n)t[i=o[n]]&&t[i].prototype&&function(t,e,r){if(e.hasOwnProperty&&e.hasOwnProperty("addEventListener")){for(var n=e.addEventListener;n._rollbarOldAdd&&n.belongsToShim;)n=n._rollbarOldAdd;var i=function(e,r,i){n.call(this,e,t.wrap(r),i)};i._rollbarOldAdd=n,i.belongsToShim=r,e.addEventListener=i;for(var o=e.removeEventListener;o._rollbarOldRemove&&o.belongsToShim;)o=o._rollbarOldRemove;var s=function(t,e,r){o.call(this,t,e&&e._rollbar_wrapped||e,r)};s._rollbarOldRemove=o,s.belongsToShim=r,e.removeEventListener=s}}(e,t[i].prototype,r)}}},948:t=>{"use strict";t.exports={version:"2.26.4",endpoint:"api.rollbar.com/api/1/item/",logLevel:"debug",reportLevel:"debug",uncaughtErrorLevel:"error",maxItems:0,itemsPerMin:60}},303:(t,e,r)=>{"use strict";var n=r(180),i=RegExp("^(([a-zA-Z0-9-_$ ]*): *)?(Uncaught )?([a-zA-Z0-9-_$ ]*): ");function o(t){var e={};return e._stackFrame=t,e.url=t.fileName,e.line=t.lineNumber,e.func=t.functionName,e.column=t.columnNumber,e.args=t.args,e.context=null,e}function s(t,e){var r,i;return{stack:function(){var r=[];e=e||0;try{r=n.parse(t)}catch(t){r=[]}for(var i=[],s=e;s<r.length;s++)i.push(new o(r[s]));return i}(),message:t.message,name:(r=t.name&&t.name.length&&t.name,i=t.constructor.name&&t.constructor.name.length&&t.constructor.name,r&&i?"Error"===r?i:r:r||i),rawStack:t.stack,rawException:t}}t.exports={guessFunctionName:function(){return"?"},guessErrorClass:function(t){if(!t||!t.match)return["Unknown error. There was no error message to display.",""];var e=t.match(i),r="(unknown)";return e&&(r=e[e.length-1],t=(t=t.replace((e[e.length-2]||"")+r+":","")).replace(/(^[\s]+|[\s]+$)/g,"")),[r,t]},gatherContext:function(){return null},parse:function(t,e){var r=t;if(r.nested||r.cause){for(var n=[];r;)n.push(new s(r,e)),r=r.nested||r.cause,e=0;return n[0].traceChain=n,n[0]}return new s(r,e)},Stack:s,Frame:o}},420:t=>{"use strict";var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=function(t){if(!t||"[object Object]"!==r.call(t))return!1;var n,i=e.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&e.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!i&&!o)return!1;for(n in t);return void 0===n||e.call(t,n)};t.exports=function t(){var e,r,i,o,s,a={},u=null,l=arguments.length;for(e=0;e<l;e++)if(null!=(u=arguments[e]))for(s in u)r=a[s],a!==(i=u[s])&&(i&&n(i)?(o=r&&n(r)?r:{},a[s]=t(o,i)):void 0!==i&&(a[s]=i));return a}},314:(t,e,r)=>{"use strict";var n=r(702);function i(t,e){this.queue=t,this.options=e,this.transforms=[],this.diagnostic={}}i.prototype.configure=function(t){this.queue&&this.queue.configure(t);var e=this.options;
1return this.options=n.merge(e,t),this},i.prototype.addTransform=function(t){return n.isFunction(t)&&this.transforms.push(t),this},i.prototype.log=function(t,e){if(e&&n.isFunction(e)||(e=function(){}),!this.options.enabled)return e(Error("Rollbar is not enabled"));this.queue.addPendingItem(t);var r=t.err;this._applyTransforms(t,(function(n,i){if(n)return this.queue.removePendingItem(t),e(n,null);this.queue.addItem(i,e,r,t)}).bind(this))},i.prototype._applyTransforms=function(t,e){var r=-1,n=this.transforms.length,i=this.transforms,o=this.options,s=function(t,a){t?e(t,null):++r!==n?i[r](a,o,s):e(null,a)};s(null,t)},t.exports=i},61:(t,e,r)=>{"use strict";var n=r(702);function i(t,e,r,i){var o,s,a=!1;"blocklist"===r&&(a=!0);try{if(o=a?e.hostBlockList:e.hostSafeList,s=n.get(t,"body.trace_chain")||[n.get(t,"body.trace")],!o||0===o.length||0===s.length||!s[0])return!a;for(var u=s.length,l=0;l<u;l++)if(function(t,e,r){if(!t)return!r;var i,o=t.frames;if(!o||0===o.length)return!r;for(var s=e.length,a=o.length,u=0;u<a;u++){if(i=o[u].filename,!n.isType(i,"string"))return!r;for(var l=0;l<s;l++)if(new RegExp(e[l]).test(i))return!0}return!1}(s[l],o,a))return!0}catch(t){a?e.hostBlockList=null:e.hostSafeList=null;var c=a?"hostBlockList":"hostSafeList";return i.error("Error while reading your configuration's "+c+" option. Removing custom "+c+".",t),!a}return!1}t.exports={checkLevel:function(t,e){var r=t.level,i=n.LEVELS[r]||0,o=e.reportLevel;return!(i<(n.LEVELS[o]||0))},userCheckIgnore:function(t){return function(e,r){var i=!!e._isUncaught;delete e._isUncaught;var o=e._originalArgs;delete e._originalArgs;try{n.isFunction(r.onSendCallback)&&r.onSendCallback(i,o,e)}catch(e){r.onSendCallback=null,t.error("Error while calling onSendCallback, removing",e)}try{if(n.isFunction(r.checkIgnore)&&r.checkIgnore(i,o,e))return!1}catch(e){r.checkIgnore=null,t.error("Error while calling custom checkIgnore(), removing",e)}return!0}},urlIsNotBlockListed:function(t){return function(e,r){return!i(e,r,"blocklist",t)}},urlIsSafeListed:function(t){return function(e,r){return i(e,r,"safelist",t)}},messageIsIgnored:function(t){return function(e,r){var i,o,s,a,u,l;try{if(!(s=r.ignoredMessages)||0===s.length||(l=function(t){var e=t.body,r=[];if(e.trace_chain)for(var i=e.trace_chain,o=0;o<i.length;o++){var s=i[o];r.push(n.get(s,"exception.message"))}return e.trace&&r.push(n.get(e,"trace.exception.message")),e.message&&r.push(n.get(e,"message.body")),r}(e),0===l.length))return!0;for(a=s.length,i=0;i<a;i++)for(u=RegExp(s[i],"gi"),o=0;o<l.length;o++)if(u.test(l[o]))return!1}catch(e){r.ignoredMessages=null,t.error("Error while reading your configuration's ignoredMessages option. Removing custom ignoredMessages.")}return!0}}}},358:(t,e,r)=>{"use strict";var n=r(702);function i(t,e,r,n){this.rateLimiter=t,this.api=e,this.logger=r,this.options=n,this.predicates=[],this.pendingItems=[],this.pendingRequests=[],this.retryQueue=[],this.retryHandle=null,this.waitCallback=null,this.waitIntervalID=null}i.prototype.configure=function(t){this.api&&this.api.configure(t);var e=this.options;return this.options=n.merge(e,t),this},i.prototype.addPredicate=function(t){return n.isFunction(t)&&this.predicates.push(t),this},i.prototype.addPendingItem=function(t){this.pendingItems.push(t)},i.prototype.removePendingItem=function(t){var e=this.pendingItems.indexOf(t);-1!==e&&this.pendingItems.splice(e,1)},i.prototype.addItem=function(t,e,r,i){e&&n.isFunction(e)||(e=function(){});var o=this._applyPredicates(t);if(o.stop)return this.removePendingItem(i),void e(o.err);if(this._maybeLog(t,r),this.removePendingItem(i),this.options.transmit){this.pendingRequests.push(t);try{this._makeApiRequest(t,(function(r,n){this._dequeuePendingRequest(t),e(r,n)}).bind(this))}catch(r){this._dequeuePendingRequest(t),e(r)}}else e(Error("Transmit disabled"))},i.prototype.wait=function(t){n.isFunction(t)&&(this.waitCallback=t,this._maybeCallWait()||(this.waitIntervalID&&(this.waitIntervalID=clearInterval(this.waitIntervalID)),this.waitIntervalID=setInterval((function(){this._maybeCallWait()}).bind(this),500)))},i.prototype._applyPredicates=function(t){for(var e=null,r=0,n=this.predicates.length;r<n;r++)if(!(e=this.predicates[r](t,this.options))||void 0!==e.err)return{stop:!0,err:e.err};return{stop:!1,err:null}},i.prototype._makeApiRequest=function(t,e){var r=this.rateLimiter.shouldSe
1nd(t);r.shouldSend?this.api.postItem(t,(function(r,n){r?this._maybeRetry(r,t,e):e(r,n)}).bind(this)):r.error?e(r.error):this.api.postItem(r.payload,e)};var o=["ECONNRESET","ENOTFOUND","ESOCKETTIMEDOUT","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH","EPIPE","EAI_AGAIN"];i.prototype._maybeRetry=function(t,e,r){var i=!1;if(this.options.retryInterval){for(var s=0,a=o.length;s<a;s++)if(t.code===o[s]){i=!0;break}i&&n.isFiniteNumber(this.options.maxRetries)&&(e.retries=e.retries?e.retries+1:1,e.retries>this.options.maxRetries&&(i=!1))}i?this._retryApiRequest(e,r):r(t)},i.prototype._retryApiRequest=function(t,e){this.retryQueue.push({item:t,callback:e}),this.retryHandle||(this.retryHandle=setInterval((function(){for(;this.retryQueue.length;){var t=this.retryQueue.shift();this._makeApiRequest(t.item,t.callback)}}).bind(this),this.options.retryInterval))},i.prototype._dequeuePendingRequest=function(t){var e=this.pendingRequests.indexOf(t);-1!==e&&(this.pendingRequests.splice(e,1),this._maybeCallWait())},i.prototype._maybeLog=function(t,e){if(this.logger&&this.options.verbose){var r=e;if(r=(r=r||n.get(t,"body.trace.exception.message"))||n.get(t,"body.trace_chain.0.exception.message"))return void this.logger.error(r);(r=n.get(t,"body.message.body"))&&this.logger.log(r)}},i.prototype._maybeCallWait=function(){return!(!n.isFunction(this.waitCallback)||0!==this.pendingItems.length||0!==this.pendingRequests.length||(this.waitIntervalID&&(this.waitIntervalID=clearInterval(this.waitIntervalID)),this.waitCallback(),0))},t.exports=i},790:(t,e,r)=>{"use strict";var n=r(702);function i(t){this.startTime=n.now(),this.counter=0,this.perMinCounter=0,this.platform=null,this.platformOptions={},this.configureGlobal(t)}function o(t,e,r){return!t.ignoreRateLimit&&e>=1&&r>e}function s(t,e,r,n,i,o,s){var a,u=null;return r&&(r=Error(r)),r||n||(a={body:{message:{body:s?"item per minute limit reached, ignoring errors until timeout":"maxItems has been hit, ignoring errors until reset.",extra:{maxItems:i,itemsPerMinute:o}}},language:"javascript",environment:e.environment||e.payload&&e.payload.environment,notifier:{version:e.notifier&&e.notifier.version||e.version}},"browser"===t?(a.platform="browser",a.framework="browser-js",a.notifier.name="rollbar-browser-js"):"server"===t?(a.framework=e.framework||"node-js",a.notifier.name=e.notifier.name):"react-native"===t&&(a.framework=e.framework||"react-native",a.notifier.name=e.notifier.name),u=a),{error:r,shouldSend:n,payload:u}}i.globalSettings={startTime:n.now(),maxItems:void 0,itemsPerMinute:void 0},i.prototype.configureGlobal=function(t){void 0!==t.startTime&&(i.globalSettings.startTime=t.startTime),void 0!==t.maxItems&&(i.globalSettings.maxItems=t.maxItems),void 0!==t.itemsPerMinute&&(i.globalSettings.itemsPerMinute=t.itemsPerMinute)},i.prototype.shouldSend=function(t,e){var r=(e=e||n.now())-this.startTime;(r<0||r>=6e4)&&(this.startTime=e,this.perMinCounter=0);var a=i.globalSettings.maxItems,u=i.globalSettings.itemsPerMinute;if(o(t,a,this.counter))return s(this.platform,this.platformOptions,a+" max items reached",!1);if(o(t,u,this.perMinCounter))return s(this.platform,this.platformOptions,u+" items per minute reached",!1);this.counter++,this.perMinCounter++;var l=!o(t,a,this.counter),c=l;return l=l&&!o(t,u,this.perMinCounter),s(this.platform,this.platformOptions,null,l,a,u,c)},i.prototype.setPlatformOptions=function(t,e){this.platform=t,this.platformOptions=e},t.exports=i},562:(t,e,r)=>{"use strict";var n=r(790),i=r(358),o=r(314),s=r(702);function a(t,e,r,n,c){this.options=s.merge(t),this.logger=r,a.rateLimiter.configureGlobal(this.options),a.rateLimiter.setPlatformOptions(c,this.options),this.api=e,this.queue=new i(a.rateLimiter,e,r,this.options);var p=this.options.tracer||null;l(p)?(this.tracer=p,this.options.tracer="opentracing-tracer-enabled",this.options._configuredOptions.tracer="opentracing-tracer-enabled"):this.tracer=null,this.notifier=new o(this.queue,this.options),this.telemeter=n,u(t),this.lastError=null,this.lastErrorHash="none"}function u(t){t.stackTraceLimit&&(Error.stackTraceLimit=t.stackTraceLimit)}function l(t){if(!t||!t.scope||"function"!=typeof t.scope)return!1;var e=t.scope();return!(!e||!e.active||"function"!=typeof e.active)}a.rateLimiter=new n({maxItems:0,itemsPerMinute:60}),a.prototype.global=function(t){return a.rateLimiter.configureGlobal(t),this},a.prototype.configure=function(t,e){var r=this.options,n={};e&&(n={payload:e}
1),this.options=s.merge(r,t,n);var i=this.options.tracer||null;return l(i)?(this.tracer=i,this.options.tracer="opentracing-tracer-enabled",this.options._configuredOptions.tracer="opentracing-tracer-enabled"):this.tracer=null,this.notifier&&this.notifier.configure(this.options),this.telemeter&&this.telemeter.configure(this.options),u(t),this.global(this.options),l(t.tracer)&&(this.tracer=t.tracer),this},a.prototype.log=function(t){var e=this._defaultLogLevel();return this._log(e,t)},a.prototype.debug=function(t){this._log("debug",t)},a.prototype.info=function(t){this._log("info",t)},a.prototype.warn=function(t){this._log("warning",t)},a.prototype.warning=function(t){this._log("warning",t)},a.prototype.error=function(t){this._log("error",t)},a.prototype.critical=function(t){this._log("critical",t)},a.prototype.wait=function(t){this.queue.wait(t)},a.prototype.captureEvent=function(t,e,r){return this.telemeter&&this.telemeter.captureEvent(t,e,r)},a.prototype.captureDomContentLoaded=function(t){return this.telemeter&&this.telemeter.captureDomContentLoaded(t)},a.prototype.captureLoad=function(t){return this.telemeter&&this.telemeter.captureLoad(t)},a.prototype.buildJsonPayload=function(t){return this.api.buildJsonPayload(t)},a.prototype.sendJsonPayload=function(t){this.api.postJsonPayload(t)},a.prototype._log=function(t,e){var r;if(e.callback&&(r=e.callback,delete e.callback),this.options.ignoreDuplicateErrors&&this._sameAsLastError(e)){if(r){var n=Error("ignored identical item");n.item=e,r(n)}}else try{this._addTracingInfo(e),e.level=e.level||t,this.telemeter&&this.telemeter._captureRollbarItem(e),e.telemetryEvents=this.telemeter&&this.telemeter.copyEvents()||[],this.notifier.log(e,r)}catch(t){r&&r(t),this.logger.error(t)}},a.prototype._defaultLogLevel=function(){return this.options.logLevel||"debug"},a.prototype._sameAsLastError=function(t){if(!t._isUncaught)return!1;var e=(t.message||"")+"::"+((t.err||{}).stack||String(t.err));return this.lastErrorHash===e||(this.lastError=t.err,this.lastErrorHash=e,!1)},a.prototype._addTracingInfo=function(t){if(this.tracer){var e=this.tracer.scope().active();if(function(t){if(!t||!t.context||"function"!=typeof t.context)return!1;var e=t.context();return!!(e&&e.toSpanId&&e.toTraceId&&"function"==typeof e.toSpanId&&"function"==typeof e.toTraceId)}(e)){e.setTag("rollbar.error_uuid",t.uuid),e.setTag("rollbar.has_error",!0),e.setTag("error",!0),e.setTag("rollbar.item_url","https://rollbar.com/item/uuid/?uuid=".concat(t.uuid)),e.setTag("rollbar.occurrence_url","https://rollbar.com/occurrence/uuid/?uuid=".concat(t.uuid));var r=e.context().toSpanId(),n=e.context().toTraceId();t.custom?(t.custom.opentracing_span_id=r,t.custom.opentracing_trace_id=n):t.custom={opentracing_span_id:r,opentracing_trace_id:n}}}},t.exports=a},369:(t,e,r)=>{"use strict";var n=r(702),i=r(267);t.exports=function(t,e,r){if(e=e||[],r)for(var o=0;o<r.length;++o)!function(t,e){var r=e.split("."),i=r.length-1;try{for(var o=0;o<=i;++o)o<i?t=t[r[o]]:t[r[o]]=n.redact()}catch(t){}}(t,r[o]);var s=function(t){for(var e=[],r=0;r<t.length;++r)e.push(RegExp("^\\[?(%5[bB])?"+t[r]+"\\[?(%5[bB])?\\]?(%5[dD])?$","i"));return e}(e),a=function(t){for(var e=[],r=0;r<t.length;++r)e.push(RegExp("(\\[?(%5[bB])?"+t[r]+"\\[?(%5[bB])?\\]?(%5[dD])?=)([^&\\n]+)","igm"));return e}(e);function u(t,e){return e+n.redact()}return i(t,function t(e,r,o){var l=function(t,e){var r;for(r=0;r<s.length;++r)if(s[r].test(t)){e=n.redact();break}return e}(e,r);return l===r?n.isType(r,"object")||n.isType(r,"array")?i(r,t,o):function(t){var e;if(n.isType(t,"string"))for(e=0;e<a.length;++e)t=t.replace(a[e],u);return t}(l):l})}},773:(t,e,r)=>{"use strict";var n=r(702);function i(t){this.queue=[],this.options=n.merge(t);var e=this.options.maxTelemetryEvents||100;this.maxQueueSize=Math.max(0,Math.min(e,100))}i.prototype.configure=function(t){var e=this.options;this.options=n.merge(e,t);var r=Math.max(0,Math.min(this.options.maxTelemetryEvents||100,100)),i=0;this.queue.length>r&&(i=this.queue.length-r),this.maxQueueSize=r,this.queue.splice(0,i)},i.prototype.copyEvents=function(){var t=Array.prototype.slice.call(this.queue,0);if(n.isFunction(this.options.filterTelemetry))try{for(var e=t.length;e--;)this.options.filterTelemetry(t[e])&&t.splice(e,1)}catch(t){this.options.filterTelemetry=null}return t},i.prototype.capture=function(t,e,r,i,o){var s={level:r||({error:"error",manual:"info"})[t]||"info",type:t,timestamp_ms:o||n.now(),body:e,source:"client"};i&&(s.uuid=i);try{if(n.isFunction(this.options.filterTelemetry)&&this.options.filterTelemetry(s))return!1}catch(t){this.options.filterTelemetry=null}return this.push(s),s},i.prototype.captureEvent=function(t,e,r,n){return this.capture(t,e,r,n)},i.prototype.captureError=function(t,e,r,n){var i={message:t.message||String(t)};return t.stack&&(i.stack=t.stack),this.capture("error",i,e,r,n)},i.prototype.captureLog=function(t,e,r,n){return this.capture("log",{message:t},e,r,n)},i.prototype.captureNetwork=function(t,e,r,n){e=e||"xhr",t.subtype=t.subtype||e,n&&(t.request=n);var i=this.levelFromStatus(t.status_code);return this.capture("network",t,i,r)},i.prototype.levelFromStatus=function(t){return t>=200&&t<400?"info":0===t||t>=400?"error":"info"},i.prototype.captureDom=function(t,e,r,n,i){var o={subtype:t,element:e};return void 0!==r&&(o.value=r),void 0!==n&&(o.checked=n),this.capture("dom",o,"info",i)},i.prototype.captureNavigation=function(t,e,r){return this.capture("navigation",{from:t,to:e},"info",r)},i.prototype.captureDomContentLoaded=function(t){return this.capture("navigation",{subtype:"DOMContentLoaded"},"info",void 0,t&&t.getTime())},i.prototype.captureLoad=function(t){return this.capture("navigation",{subtype:"load"},"info",void 0,t&&t.getTime())},i.prototype.captureConnectivityChange=function(t,e){return this.captureNetwork({change:t},"connectivity",e)},i.prototype._captureRollbarItem=function(t){if(this.options.includeItems
1InTelemetry)return t.err?this.captureError(t.err,t.level,t.uuid,t.timestamp):t.message?this.captureLog(t.message,t.level,t.uuid,t.timestamp):t.custom?this.capture("log",t.custom,t.level,t.uuid,t.timestamp):void 0},i.prototype.push=function(t){this.queue.push(t),this.queue.length>this.maxQueueSize&&this.queue.shift()},t.exports=i},417:(t,e,r)=>{"use strict";var n=r(702);function i(t,e){n.isFunction(t[e])&&(t[e]=t[e].toString())}t.exports={itemToPayload:function(t,e,r){var n=t.data;t._isUncaught&&(n._isUncaught=!0),t._originalArgs&&(n._originalArgs=t._originalArgs),r(null,n)},addPayloadOptions:function(t,e,r){var i=e.payload||{};i.body&&delete i.body,t.data=n.merge(t.data,i),r(null,t)},addTelemetryData:function(t,e,r){t.telemetryEvents&&n.set(t,"data.body.telemetry",t.telemetryEvents),r(null,t)},addMessageWithError:function(t,e,r){if(t.message){var i="data.body.trace_chain.0",o=n.get(t,i);if(o||(i="data.body.trace",o=n.get(t,i)),o){if(!o.exception||!o.exception.description)return n.set(t,i+".exception.description",t.message),void r(null,t);var s=n.get(t,i+".extra")||{}
1,a=n.merge(s,{message:t.message});n.set(t,i+".extra",a)}r(null,t)}else r(null,t)},userTransform:function(t){return function(e,r,i){var o=n.merge(e),s=null;try{n.isFunction(r.transform)&&(s=r.transform(o.data,e))}catch(n){return r.transform=null,t.error("Error while calling custom transform() function. Removing custom transform().",n),void i(null,e)}n.isPromise(s)?s.then(function(t){t&&(o.data=t),i(null,o)},function(t){i(t,e)}):i(null,o)}},addConfigToPayload:function(t,e,r){if(!e.sendConfig)return r(null,t);var i=n.get(t,"data.custom")||{};i._rollbarConfig=e,t.data.custom=i,r(null,t)},addConfiguredOptions:function(t,e,r){var n=e._configuredOptions;i(n,"transform"),i(n,"checkIgnore"),i(n,"onSendCallback"),delete n.accessToken,t.data.notifier.configured_options=n,r(null,t)},addDiagnosticKeys:function(t,e,r){var i=n.merge(t.notifier.client.notifier.diagnostic,t.diagnostic);if(n.get(t,"err._isAnonymous")&&(i.is_anonymous=!0),t._isUncaught&&(i.is_uncaught=t._isUncaught),t.err)try{i.raw_error={message:t.err.message,name:t.err.name,constructor_name:t.err.constructor&&t.err.constructor.name,filename:t.err.fileName,line:t.err.lineNumber,column:t.err.columnNumber,stack:t.err.stack}}catch(t){i.raw_error={failed:String(t)}}t.data.notifier.diagnostic=n.merge(t.data.notifier.diagnostic,i),r(null,t)}}},473:(t,e,r)=>{"use strict";var n=r(702),i=r(267);function o(t,e){return[t,n.stringify(t,e)]}function s(t,e){var r=t.length;return r>2*e?t.slice(0,e).concat(t.slice(r-e)):t}function a(t,e,r){r=void 0===r?30:r;var i,o=t.data.body;if(o.trace_chain)for(var a=o.trace_chain,u=0;u<a.length;u++)i=s(i=a[u].frames,r),a[u].frames=i;else o.trace&&(i=s(i=o.trace.frames,r),o.trace.frames=i);return[t,n.stringify(t,e)]}function u(t,e){return e&&e.length>t?e.slice(0,t-3).concat("..."):e}function l(t,e,r){return[e=i(e,function e(r,o,s){switch(n.typeName(o)){case"string":return u(t,o);case"object":case"array":return i(o,e,s);default:return o}}),n.stringify(e,r)]}function c(t){return t.exception&&(delete t.exception.description,t.exception.message=u(255,t.exception.message)),t.frames=s(t.frames,1),t}function p(t,e){var r=t.data.body;if(r.trace_chain)for(var i=r.trace_chain,o=0;o<i.length;o++)i[o]=c(i[o]);else r.trace&&(r.trace=c(r.trace));return[t,n.stringify(t,e)]}t.exports={truncate:function(t,e,r){r=void 0===r?524288:r;for(var i,s,u,c,d,f=[o,a,l.bind(null,1024),l.bind(null,512),l.bind(null,256),p];(u=f.shift())&&(t=(c=u(t,e))[0],!(d=c[1]).error&&(i=d.value,s=r,n.maxByteSize(i)>s)););return d},raw:o,truncateFrames:a,truncateStrings:l,maybeTruncateValue:u}},702:(t,e,r)=>{"use strict";var n=r(420),i={};function o(t,e){return e===s(t)}function s(t){var e=typeof t;return"object"!==e?e:t?t instanceof Error?"error":({}).toString.call(t).match(/\s([a-zA-Z]+)/)[1].toLowerCase():"null"}function a(t){return o(t,"function")}function u(t){var e=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return l(t)&&e.test(t)}function l(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function c(){var t=g();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var r=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?r:7&r|8).toString(16)})}var p={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};function d(t,e){var r,n;try{r=i.stringify(t)}catch(i){if(e&&a(e))try{r=e(t)}catch(t){n=t}else n=i}return{error:n,value:r}}function f(t){return function t(e,r){var n,i,a,u={};try{for(i in e)(n=e[i])&&(o(n,"object")||o(n,"array"))?r.includes(n)?u[i]="Removed circular reference: "+s(n):((a=r.slice()).push(n),u[i]=t(n,a)):u[i]=n}catch(t){u="Failed cloning custom data: "+t.message}return u}(t,[t])}var h=["log","network","dom","navigation","error","manual"],m=["critical","error","warning","info","debug"];function y(t,e){for(var r=0;r<t.length;++r)if(t[r]===e)return!0;return!1}function g(){return Date.now?+Date.now():+new Date}t.exports={addParamsAndAccessTokenToPath:function(t,e,r){(r=r||{}).access_token=t;var n,i=[];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&i.push([n,r[n]].join("="));var o="?"+i.sort().join("&");(e=e||{}).path=e.path||"";var s,a=e.path.indexOf("?"),u=e.path.indexOf("#");-1!==a&&(-1===u||u>a)?(s=e.path,e.path=s.substring(0,a)+o+"&"+s.substring(a+1)):-1!==u?(s=e.path,e.path=s.substring(0,u)+o+s.substring(u)):e.path=e.path+o},createItem:function(t,e,r,n,i){for(var o,a,u,l,p,d,h,m=[],y=[],b=0,w=t.length;b<w;++b){var x=s(h=t[b]);switch(y.push(x),x){case"undefined":break;case"string":a?m.push(h):a=h;break;
1case"function":p=function(t,e){return function(r,n){try{e(r,n)}catch(e){t.error(e)}}}(e,h);break;case"date":m.push(h);break;case"error":case"domexception":case"exception":u?m.push(h):u=h;break;case"object":case"array":if(h instanceof Error||"undefined"!=typeof DOMException&&h instanceof DOMException){u?m.push(h):u=h;break}if(n&&"object"===x&&!d){for(var O=0,E=n.length;O<E;++O)if(void 0!==h[n[O]]){d=h;break}if(d)break}l?m.push(h):l=h;break;default:if(h instanceof Error||"undefined"!=typeof DOMException&&h instanceof DOMException){u?m.push(h):u=h;break}m.push(h)}}l&&(l=f(l)),m.length>0&&(l||(l=f({})),l.extraArgs=f(m));var k={message:a,err:u,custom:l,timestamp:g(),callback:p,notifier:r,diagnostic:{},uuid:c()};return(o=l)&&void 0!==o.level&&(k.level=o.level,delete o.level),o&&void 0!==o.skipFrames&&(k.skipFrames=o.skipFrames,delete o.skipFrames),n&&d&&(k.request=d),i&&(k.lambdaContext=i),k._originalArgs=t,k.diagnostic.original_arg_types=y,k},addErrorContext:function(t,e){var r=t.data.custom||{},i=!1;try{for(var o=0;o<e.length;++o)e[o].hasOwnProperty("rollbarContext")&&(r=n(r,f(e[o].rollbarContext)),i=!0);i&&(t.data.custom=r)}catch(e){t.diagnostic.error_context="Failed: "+e.message}},createTelemetryEvent:function(t){for(var e,r,n,i,o=0,a=t.length;o<a;++o)switch(s(i=t[o])){case"string":!e&&y(h,i)?e=i:!n&&y(m,i)&&(n=i);break;case"object":r=i}return{type:e||"manual",metadata:r||{},level:n}},filterIp:function(t,e){if(t&&t.user_ip&&!0!==e){var r,n=t.user_ip;if(e)try{if(-1!==n.indexOf("."))(r=n.split(".")).pop(),r.push("0"),n=r.join(".");else if(-1!==n.indexOf(":")){if((r=n.split(":")).length>2){var i=r.slice(0,3),o=i[2].indexOf("/");-1!==o&&(i[2]=i[2].substring(0,o)),n=i.concat("0000:0000:0000:0000:0000").join(":")}}else n=null}catch(t){n=null}else n=null;t.user_ip=n}},formatArgsAsString:function(t){var e,r,n,i=[];for(e=0,r=t.length;e<r;++e){switch(s(n=t[e])){case"object":(n=(n=d(n)).error||n.value).length>500&&(n=n.substr(0,497)+"...");break;case"null":n="null";break;case"undefined":n="undefined";break;case"symbol":n=n.toString()}i.push(n)}return i.join(" ")},formatUrl:function(t,e){if((e=e||t.protocol)||!t.port||(80===t.port?e="http:":443===t.port&&(e="https:")),e=e||"https:",!t.hostname)return null;var r=e+"//"+t.hostname;return t.port&&(r=r+":"+t.port),t.path&&(r+=t.path),r},get:function(t,e){if(t){var r=e.split("."),n=t;try{for(var i=0,o=r.length;i<o;++i)n=n[r[i]]}catch(t){n=void 0}return n}},handleOptions:function(t,e,r,i){var o,s=n(t,e,r);return(o=s).hostWhiteList&&!o.hostSafeList&&(o.hostSafeList=o.hostWhiteList,o.hostWhiteList=void 0,i&&i.log("hostWhiteList is deprecated. Use hostSafeList.")),o.hostBlackList&&!o.hostBlockList&&(o.hostBlockList=o.hostBlackList,o.hostBlackList=void 0,i&&i.log("hostBlackList is deprecated. Use hostBlockList.")),s=o,!e||e.overwriteScrubFields||e.scrubFields&&(s.scrubFields=(t.scrubFields||[]).concat(e.scrubFields)),s},isError:function(t){return o(t,"error")||o(t,"exception")},isFiniteNumber:function(t){return Number.isFinite(t)},isFunction:a,isIterable:function(t){var e=s(t);return"object"===e||"array"===e},isNativeFunction:u,isObject:l,isString:function(t){return"string"==typeof t||t instanceof String},isType:o,isPromise:function(t){return l(t)&&o(t.then,"function")},jsonParse:function(t){var e,r;try{e=i.parse(t)}catch(t){r=t}return{error:r,value:e}},LEVELS:{debug:0,info:1,warning:2,error:3,critical:4},makeUnhandledStackInfo:function(t,e,r,n,i,o,s,a){var u={url:e||"",line:r,column:n};u.func=a.guessFunctionName(u.url,u.line),u.context=a.gatherContext(u.url,u.line);var l="undefined"!=typeof document&&document&&document.location&&document.location.href,c="undefined"!=typeof window&&window&&window.navigator&&window.navigator.userAgent;return{mode:o,message:i?String(i):t||s,url:l,stack:[u],useragent:c}},merge:n,now:g,redact:function(){return"********"},RollbarJSON:i,sanitizeUrl:function(t){var e=function(t){if(o(t,"string")){for(var e=p.parser[p.strictMode?"strict":"loose"].exec(t),r={},n=0,i=p.key.length;n<i;++n)r[p.key[n]]=e[n]||"";return r[p.q.name]={},r[p.key[12]].replace(p.q.parser,function(t,e,n){e&&(r[p.q.name][e]=n)}),r}}(t);return e?(""===e.anchor&&(e.source=e.source.replace("#","")),t=e.source.replace("?"+e.query,"")):"(unknown)"},set:function(t,e,r){if(t){var n=e.split("."),i=n.length;if(!(i<1))if(1!==i)try{for(var o=t[n[0]]||{},s=o,a=1;a<i-1;++a)o[n[a]]=o[n[a]]||{},o=o[n[a]];o[n[i-1]]=r,t[n[0]]=s}catch(t){return}else t[n[0]]=r}},setupJSON:function(t){a(i.stringify)&&a(i.parse)||(o(JSON,"undefined")||(t?(u(JSON.stringify)&&(i.stringify=JSON.stringify),u(JSON.parse)&&(i.parse=JSON.parse)):(a(JSON.stringify)&&(i.stringify=JSON.stringify),a(JSON.parse)&&(i.parse=JSON.parse))),a(i.stringify)&&a(i.parse)||t&&t(i))},stringify:d,maxByteSize:function(t){for(var e=0,r=t.length,n=0;n<r;n++){var i=t.charCodeAt(n);
1i<128?e+=1:i<2048?e+=2:i<65536&&(e+=3)}return e},typeName:s,uuid4:c}},650:t=>{"use strict";function e(t){return"string"!=typeof t&&(t=String(t)),t.toLowerCase()}function r(t){this.map={},t instanceof r?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}r.prototype.append=function(t,r){t=e(t),"string"!=typeof(n=r)&&(n=String(n)),r=n;var n,i=this.map[t];this.map[t]=i?i+", "+r:r},r.prototype.get=function(t){return t=e(t),this.has(t)?this.map[t]:null},r.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},r.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},r.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),{next:function(){var e=t.shift();return{done:void 0===e,value:e}}}},t.exports=function(t){return"undefined"==typeof Headers?new r(t):new Headers(t)}},876:(t,e,r)=>{"use strict";t.exports=r(708)},297:t=>{"use strict";t.exports=function(t,e,r,n,i){var o=t[e];t[e]=r(o),n&&n[i].push([t,e,o])}},267:(t,e,r)=>{"use strict";var n=r(702);t.exports=function(t,e,r){var i,o,s,a,u=n.isType(t,"object"),l=n.isType(t,"array"),c=[];if(r=r||{obj:[],mapped:[]},u){if(a=r.obj.indexOf(t),u&&-1!==a)return r.mapped[a]||r.obj[a];r.obj.push(t),a=r.obj.length-1}if(u)for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&c.push(i);else if(l)for(s=0;s<t.length;++s)c.push(s);var p=u?{}:[],d=!0;for(s=0;s<c.length;++s)o=t[i=c[s]],p[i]=e(i,o,r),d=d&&p[i]===t[i];return u&&!d&&(r.mapped[a]=p),d?t:p}},708:t=>{t.exports=function(t){var e,r,n,i,o,s,a,u,l,c,p,d,f,h=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function m(t){return t<10?"0"+t:t}function y(){return this.valueOf()}function g(t){return h.lastIndex=0,h.test(t)?'"'+t.replace(h,function(t){var e=n[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+m(this.getUTCMonth()+1)+"-"+m(this.getUTCDate())+"T"+m(this.getUTCHours())+":"+m(this.getUTCMinutes())+":"+m(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=y,Number.prototype.toJSON=y,String.prototype.toJSON=y),"function"!=typeof t.stringify&&(n={"\b":"\\b","	":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t.stringify=function(t,n,o){var s;if(e="",r="","number"==typeof o)for(s=0;s<o;s+=1)r+=" ";else"string"==typeof o&&(r=o);if(i=n,n&&"function"!=typeof n&&("object"!=typeof n||"number"!=typeof n.length))throw Error("JSON.stringify");return function t(n,o){var s,a,u,l,c,p=e,d=o[n];switch(d&&"object"==typeof d&&"function"==typeof d.toJSON&&(d=d.toJSON(n)),"function"==typeof i&&(d=i.call(o,n,d)),typeof d){case"string":return g(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(e+=r,c=[],"[object Array]"===Object.prototype.toString.apply(d)){for(l=d.length,s=0;s<l;s+=1)c[s]=t(s,d)||"null";return u=0===c.length?"[]":e?"[\n"+e+c.join(",\n"+e)+"\n"+p+"]":"["+c.join(",")+"]",e=p,u}if(i&&"object"==typeof i)for(l=i.length,s=0;s<l;s+=1)"string"==typeof i[s]&&(u=t(a=i[s],d))&&c.push(g(a)+(e?": ":":")+u);else for(a in d)Object.prototype.hasOwnProperty.call(d,a)&&(u=t(a,d))&&c.push(g(a)+(e?": ":":")+u);return u=0===c.length?"{}":e?"{\n"+e+c.join(",\n"+e)+"\n"+p+"}":"{"+c.join(",")+"}",e=p,u}}("",{"":t})}),"function"!=typeof t.parse&&(c={"\\":"\\",'"':'"',"/":"/",t:"	",n:"\n",r:"\r",f:"\f",b:"\b"},p={go:function(){o="ok"},firstokey:function(){u=l,o="colon"},okey:function(){u=l,o="colon"},ovalue:function(){o="ocomma"},firstavalue:function(){o="acomma"},avalue:function(){o="acomma"}},d={go:function(){o="ok"},ovalue:function(){o="ocomma"},firstavalue:function(){o="acomma"},avalue:function(){o="acomma"}},f={"{":{go:function(){s.push({state:"ok"}),a={},o="firstokey"},ovalue:function(){s.push({container:a,state:"ocomma",key:u}),a={},o="firstokey"},firstavalue:function(){s.push({container:a,state:"acomma"}),a={},o="firstokey"},avalue:function(){s.push({container:a,state:"acomma"}),a={},o="firstokey"}},"}":{firstokey:function(){var t=s.pop();l=a,a=t.container,u=t.key,o=t.state},ocomma:function(){var t=s.pop();a[u]=l,l=a,a=t.container,u=t.key,o=t.state}},"[":{go:function(){s.push({state:"ok"}),a=[],o="firstavalue"},ovalue:function(){s.push({container:a,state:"ocomma",key:u}),a=[],o="firstavalue"},firstavalue:function(){s.push({container:a,state:"acomma"}),a=[],o="firstavalue"},avalue:function(){s.push({container:a,state:"acomma"}),a=[],o="firstavalue"}},"]":{firstavalue:function(){var t=s.pop();l=a,a=t.container,u=t.key,o=t.state},acomma:function(){var t=s.pop();a.push(l),l=a,a=t.container,u=t.key,o=t.state}},":":{colon:function(){if(Object.hasOwnProperty.call(a,u))throw SyntaxError("Duplicate key '"+u+'"');o="ovalue"}},",":{ocomma:function(){a[u]=l,o="okey"},acomma:function(){a.push(l),o="avalue"}},true:{go:function(){l=!0,o="ok"},ovalue:function(){l=!0,o="ocomma"},firstavalue:function(){l=!0,o="acomma"},avalue:function(){l=!0,o="acomma"}},false:{go:function(){l=!1,o="ok"},ovalue:function(){l=!1,o="ocomma"},firstavalue:function(){l=!1,o="acomma"},avalue:function(){l=!1,o="acomma"}},null:{go:function(){l=null,o="ok"},ovalue:function(){l=null,o="ocomma"},firstavalue:function(){l=null,o="acomma"},avalue:function(){l=null,o="acomma"}}},t.parse=function(t,e){var r,n=/^[\u0020\t\n\r]*(?:([,:\[\]{}]|true|false|null)|(-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)|"((?:[^\r\n\t\\\"]|\\(?:["\\\/trnfb]|u[0-9a-fA-F]{4}))*)")/;o="go",s=[];try{for(;r=n.exec(t);)r[1]?f[r[1]][o]():r[2]?(l=+r[2],d[o]()):(l=r[3].replace(/\\(?:u(.{4})|([^u]))/g,function(t,e,r){return e?String.fromCharCode(parseInt(e,16)):c[r]}),p[o]()),t=t.slice(r[0].length)}catch(t){o=t}if("ok"!==o||/[^\u0020\t\n\r]/.test(t))throw o instanceof SyntaxError?o:SyntaxError("JSON");return"function"==typeof e?function t(r,n){var i,o,s=r[n];if(s&&"object"==typeof s)for(i in l)Object.prototype.hasOwnProperty.call(s,i)&&(void 0!==(o=t(s,i))?s[i]=o:delete s[i]);return e.call(r,n,s)}({"":l},""):l})}}},e={},function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n].call(o.exports,o,o.exports,r),o.exports}(409)})()},87660,28597,27020,t=>{"use strict";let e;t.s(["SnackbarProvider",()=>eH,"useSnackbar",()=>eB],87660);var r,n,i,o,s,a,u,l,c,p,d,f,h,m,y,g,b,w,x,O,E,k,_,S,P,j,C,T,I,R,M,D,q,A,L,N,F,U,Q,W,H,B,z,V,K,J,G,$,X,Z,Y,tt,te,tr,tn,ti,to,ts,ta,tu,tl,tc,tp,td,tf,th,tm,ty,tv,tg,tb,tw,tx,tO,tE,tk,t_,tS,tP,tj,tC,tT,tI,tR,tM,tD,tq,tA,tL,tN=t.i(50461),tF=t.i(91788),tU=t.i(30943);let tQ=function(){for(var t,e,r=0,n="";r<arguments.length;)(t=arguments[r++])&&(e=function t(e){var r,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(n=t(e[r]))&&(i&&(i+=" "),i+=n);else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}(t))&&(n&&(n+=" "),n+=e);return n},tW={data:""},tH=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,tB=/\/\*[^]*?\*\/|  +/g,tz=/\n+/g,tV=(t,e)=>{let r="",n="",i="";for(let o in t){let s=t[o];"@"==o[0]?"i"==o[1]?r=o+" "+s+";":n+="f"==o[1]?tV(s,o):o+"{"+tV(s,"k"==o[1]?"":e)+"}":"object"==typeof s?n+=tV(s,e?e.replace(/([^,])+/g,t=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,e=>/&/.test(e)?e.replace(/&/g,t):t?t+" "+e:e)):o):null!=s&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=tV.p?tV.p(o,s):o+":"+s+";")}return r+(e&&i?e+"{"+i+"}":i)+n},tK={},tJ=t=>{if("object"==typeof t){let e="";for(let r in t)e+=r+tJ(t[r]);return e}return t};function tG(t){let e,r,n,i=this||{},o=t.call?t(i.p):t;return((t,e,r,n,i)=>{var o,s,a,u;let l=tJ(t),c=tK[l]||(tK[l]=(t=>{let e=0,r=11;for(;e<t.length;)r=101*r+t.charCodeAt(e++)>>>0;return"go"+r})(l));if(!tK[c]){let e=l!==t?t:(t=>{let e,r,n=[{}];for(;e=tH.exec(t.replace(tB,""));)e[4]?n.shift():e[3]?(r=e[3].replace(tz," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][e[1]]=e[2].replace(tz," ").trim();return n[0]})(t);tK[c]=tV(i?{["@keyframes "+c]:e}:e,r?"":"."+c)}let p=r&&tK.g?tK.g:null;return r&&(tK.g=tK[c]),o=tK[c],s=e,a=n,(u=p)?s.data=s.data.replace(u,o):-1===s.data.indexOf(o)&&(s.data=a?o+s.data:s.data+o),c}
1)(o.unshift?o.raw?(e=[].slice.call(arguments,1),r=i.p,o.reduce((t,n,i)=>{let o=e[i];if(o&&o.call){let t=o(r),e=t&&t.props&&t.props.className||/^go/.test(t)&&t;o=e?"."+e:t&&"object"==typeof t?t.props?"":tV(t,""):!1===t?"":t}return t+n+(null==o?"":o)},"")):o.reduce((t,e)=>Object.assign(t,e&&e.call?e(i.p):e),{}):o,(n=i.target,"object"==typeof window?((n?n.querySelector("#_goober"):window._goober)||Object.assign((n||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:n||tW),i.g,i.o,i.k)}function t$(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function tX(t,e,r){return e&&t$(t.prototype,e),r&&t$(t,r),t}function tZ(){return(tZ=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function tY(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function t0(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}function t1(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}tG.bind({g:1}),tG.bind({k:1});var t2=function(){return""},t7=tF.default.createContext({enqueueSnackbar:t2,closeSnackbar:t2}),t3={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},t5=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},t4=function(t){return""+t5(t.vertical)+t5(t.horizontal)},t6=function(t){return!!t||0===t},t8="unmounted",t9="exited",et="entering",ee="entered",er="exiting",en=function(t){function e(e){var r,n=t.call(this,e)||this,i=e.appear;return n.appearStatus=null,e.in?i?(r=t9,n.appearStatus=et):r=ee:r=e.unmountOnExit||e.mountOnEnter?t8:t9,n.state={status:r},n.nextCallback=null,n}tY(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===t8?{status:t9}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(t){var e=null;if(t!==this.props){var r=this.state.status;this.props.in?r!==et&&r!==ee&&(e=et):(r===et||r===ee)&&(e=er)}this.updateStatus(!1,e)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var t=this.props.timeout,e=t,r=t;return null!=t&&"number"!=typeof t&&"string"!=typeof t&&(r=t.exit,e=t.enter),{exit:r,enter:e}},r.updateStatus=function(t,e){void 0===t&&(t=!1),null!==e?(this.cancelNextCallback(),e===et?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&this.state.status===t9&&this.setState({status:t8})},r.performEnter=function(t){var e=this,r=this.props.enter,n=this.getTimeouts();if(!t&&!r)return void this.safeSetState({status:ee},function(){e.props.onEntered&&e.props.onEntered(e.node,t)});this.props.onEnter&&this.props.onEnter(this.node,t),this.safeSetState({status:et},function(){e.props.onEntering&&e.props.onEntering(e.node,t),e.onTransitionEnd(n.enter,function(){e.safeSetState({status:ee},function(){e.props.onEntered&&e.props.onEntered(e.node,t)})})})},r.performExit=function(){var t=this,e=this.props.exit,r=this.getTimeouts();if(!e)return void this.safeSetState({status:t9},function(){t.props.onExited&&t.props.onExited(t.node)});this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:er},function(){t.props.onExiting&&t.props.onExiting(t.node),t.onTransitionEnd(r.exit,function(){t.safeSetState({status:t9},function(){t.props.onExited&&t.props.onExited(t.node)})})})},r.cancelNextCallback=function(){null!==this.nextCallback&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},r.setNextCallback=function(t){var e=this,r=!0;return this.nextCallback=function(){r&&(r=!1,e.nextCallback=null,t())},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(t,e){this.setNextCallback(e);var r=null==t&&!this.props.addEndListener;if(!this.node||r)return void setTimeout(this.nextCallback,0);this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)},r.render=function(){var t=this.state.status;if(t===t8)return null;var e=this.props;return(0,e.children)(t,t0(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},tX(e,[{key:"node",get:function(){var t,e=null==(t=this.props.nodeRef)?void 0:t.current;if(!e)throw Error("notistack - Custom snackbar is not refForwarding");return e}}]),e}(tF.default.Component);function ei(){}function eo(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function es(t,e){return(0,tF.useMemo)(function(){return null==t&&null==e?null:function(r){eo(t,r),eo(e,r)}},[t,e])}function ea(t){var e=t.timeout,r=t.style,n=void 0===r?{}:r,i=t.mode;return{duration:"object"==typeof e?e[i]||0:e,easing:n.transitionTimingFunction,delay:n.transitionDelay}}en.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter
1:!0,exit:!0,onEnter:ei,onEntering:ei,onEntered:ei,onExit:ei,onExiting:ei,onExited:ei};var eu={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},el=function(t){t.scrollTop=t.scrollTop},ec=function(t){return Math.round(t)+"ms"};function ep(t,e){void 0===t&&(t=["all"]);var r=e||{},n=r.duration,i=void 0===n?300:n,o=r.easing,s=void 0===o?eu.easeInOut:o,a=r.delay,u=void 0===a?0:a;return(Array.isArray(t)?t:[t]).map(function(t){return t+" "+("string"==typeof i?i:ec(i))+" "+s+" "+("string"==typeof u?u:ec(u))}).join(",")}function ed(t){return(t&&t.ownerDocument||document).defaultView||window}function ef(t,e){if(e){var r=function(t,e){var r,n=e.getBoundingClientRect(),i=ed(e);if(e.fakeTransform)r=e.fakeTransform;else{var o=i.getComputedStyle(e);r=o.getPropertyValue("-webkit-transform")||o.getPropertyValue("transform")}var s=0,a=0;if(r&&"none"!==r&&"string"==typeof r){var u=r.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),a=parseInt(u[5],10)}switch(t){case"left":return"translateX("+(i.innerWidth+s-n.left)+"px)";case"right":return"translateX(-"+(n.left+n.width-s)+"px)";case"up":return"translateY("+(i.innerHeight+a-n.top)+"px)";default:return"translateY(-"+(n.top+n.height-a)+"px)"}}(t,e);r&&(e.style.webkitTransform=r,e.style.transform=r)}}var eh=(0,tF.forwardRef)(function(t,e){var r=t.children,n=t.direction,i=void 0===n?"down":n,o=t.in,s=t.style,a=t.timeout,u=void 0===a?0:a,l=t.onEnter,c=t.onEntered,p=t.onExit,d=t.onExited,f=t0(t,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),h=(0,tF.useRef)(null),m=es(r.ref,h),y=es(m,e),g=(0,tF.useCallback)(function(){h.current&&ef(i,h.current)},[i]);return(0,tF.useEffect)(function(){if(!o&&"down"!==i&&"right"!==i){var t=function(t,e){var r;function n(){for(var n=this,i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];clearTimeout(r),r=setTimeout(function(){t.apply(n,o)},e)}return void 0===e&&(e=166),n.clear=function(){clearTimeout(r)},n}(function(){h.current&&ef(i,h.current)}),e=ed(h.current);return e.addEventListener("resize",t),function(){t.clear(),e.removeEventListener("resize",t)}}},[i,o]),(0,tF.useEffect)(function(){o||g()},[o,g]),(0,tF.createElement)(en,Object.assign({appear:!0,nodeRef:h,onEnter:function(t,e){ef(i,t),el(t),l&&l(t,e)},onEntered:c,onEntering:function(t){var e=(null==s?void 0:s.transitionTimingFunction)||eu.easeOut,r=ea({timeout:u,mode:"enter",style:tZ({},s,{transitionTimingFunction:e})});t.style.webkitTransition=ep("-webkit-transform",r),t.style.transition=ep("transform",r),t.style.webkitTransform="none",t.style.transform="none"},onExit:function(t){var e=(null==s?void 0:s.transitionTimingFunction)||eu.sharp,r=ea({timeout:u,mode:"exit",style:tZ({},s,{transitionTimingFunction:e})});t.style.webkitTransition=ep("-webkit-transform",r),t.style.transition=ep("transform",r),ef(i,t),p&&p(t)},onExited:function(t){t.style.webkitTransition="",t.style.transition="",d&&d(t)},in:o,timeout:u},f),function(t,e){return(0,tF.cloneElement)(r,tZ({ref:y,style:tZ({visibility:"exited"!==t||o?void 0:"hidden"},s,{},r.props.style)},e))})});eh.displayName="Slide";var em=function(t){return tF.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},t))},ey={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:tF.default.createElement(function(){return tF.default.createElement(em,null,tF.default.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n        10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},null),warning:tF.default.createElement(function(){return tF.default.createElement(em,null,tF.default.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},null),error:tF.default.createElement(function(){return tF.default.createElement(em,null,tF.default.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n        6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n        13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},null),info:tF.default.createElement(function(){return tF.default.createElement(em,null,tF.default.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n        0 22,12A10,10 0 0,0 12,2Z"}))},null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:eh,transitionDuration:{enter:225,exit:195}},ev=function(t,e){var r=function(t){return"number"==typeof t||null===t};return r(t)?t:r(e)?e:ey.autoHideDuration},eg=function(t,e){var r=function(t,e){return e.some(function(e){return typeof t===e})};return r(t,["string","number"])?t:r(t,["object"])?tZ({},ey.transitionDuration,{},r(e,["object"])&&e,{},t):r(e,["string","number"])?e:r(e,["object"])?tZ({},ey.transitionDuration,{},e):ey.transitionDuration};function eb(t){return Object.entries(t).reduce(function(t,e){var r,n=e[0],i=e[1];return tZ({},t,((r={})[n]=tG(i),r))},{})}var ew={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},ex=eb({root:{height:0},entered:{height:"auto"}}),eO=(0,tF.forwardRef)(function(t,e){var r=t.children,n=t.in,i=t.onExited,o=(0,tF.useRef)(null),s=(0,tF.useRef)(null),a=es(e,s),u=function(){return o.current?o.current.clientHeight:0};return(0,tF.createElement)(en,{in:n,unmountOnExit:!0,onEnter:function(t){t.style.height="0px"},onEntered:function(t){t.style.height="auto"},onEntering:function(t){var e=u(),r=ea({timeout:175,mode:"enter"}),n=r.duration,i=r.easing;t.style.transitionDuration="string"==typeof n?n:n+"ms",t.style.height=e+"px",t.style.transitionTimingFunction=i||""},onExit:function(t){t.style.height=u()+"px"},onExited:i,onExiting:function(t){el(t);var e=ea({timeout:175,mode:"exit"}),r=e.duration,n=e.easing;t.style.transitionDuration="string"==typeof r?r:r+"ms",t.style.height="0px",t.style.transitionTimingFunction=n||""},nodeRef:s,timeout:175},function(t,e){return(0,tF.createElement)("div",Object.assign({ref:a,className:tQ(ex.root,"entered"===t&&ex.entered),style:tZ({pointerEvents:"all",overflow:"hidden",minHeight:"0px",transition:ep("height")},"entered"===t&&{overflow:"visible"},{},"exited"===t&&!n&&{visibility:"hidden"})},e),(0,tF.createElement)("div",{ref:o,className:ew.CollapseWrapper,style:{display:"flex",width:"100%"}},r))})});eO.displayName="Collapse";
1var eE={right:"left",left:"right",bottom:"up",top:"down"},ek=function(t){void 0===t&&(t={});var e={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(t).filter(function(t){return!e[t]}).reduce(function(e,r){var n;return tZ({},e,((n={})[r]=t[r],n))},{})},e_=function(){};function eS(t,e){return t.reduce(function(t,r){return null==r?t:function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];var s=[].concat(i);e&&-1===s.indexOf(e)&&s.push(e),t.apply(this,s),r.apply(this,s)}},e_)}var eP="undefined"!=typeof window?tF.useLayoutEffect:tF.useEffect;function ej(t){var e=(0,tF.useRef)(t);return eP(function(){e.current=t}),(0,tF.useCallback)(function(){return e.current.apply(void 0,arguments)},[])}var eC=(0,tF.forwardRef)(function(t,e){var r=t.children,n=t.className,i=t.autoHideDuration,o=t.disableWindowBlurListener,s=void 0!==o&&o,a=t.onClose,u=t.id,l=t.open,c=t.SnackbarProps,p=void 0===c?{}:c,d=(0,tF.useRef)(),f=ej(function(){a&&a.apply(void 0,arguments)}),h=ej(function(t){a&&null!=t&&(d.current&&clearTimeout(d.current),d.current=setTimeout(function(){f(null,"timeout",u)},t))});(0,tF.useEffect)(function(){return l&&h(i),function(){d.current&&clearTimeout(d.current)}},[l,i,h]);var m=function(){d.current&&clearTimeout(d.current)},y=(0,tF.useCallback)(function(){null!=i&&h(.5*i)},[i,h]);return(0,tF.useEffect)(function(){if(!s&&l)return window.addEventListener("focus",y),window.addEventListener("blur",m),function(){window.removeEventListener("focus",y),window.removeEventListener("blur",m)}},[s,y,l]),(0,tF.createElement)("div",Object.assign({ref:e},p,{className:tQ(ew.Snackbar,n),onMouseEnter:function(t){p.onMouseEnter&&p.onMouseEnter(t),m()},onMouseLeave:function(t){p.onMouseLeave&&p.onMouseLeave(t),y()}}),r)});eC.displayName="Snackbar";var eT=eb({root:((i={display:"flex",flexWrap:"wrap",flexGrow:1})[t3.upSm]={flexGrow:"initial",minWidth:"288px"},i)}),eI=(0,tF.forwardRef)(function(t,e){var r=t.className,n=t0(t,["className"]);return tF.default.createElement("div",Object.assign({ref:e,className:tQ(eT.root,r)},n))});eI.displayName="SnackbarContent";var eR=eb({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),eM="notistack-snackbar",eD=(0,tF.forwardRef)(function(t,e){var r=t.id,n=t.message,i=t.action,o=t.iconVariant,s=t.variant,a=t.hideIconVariant,u=t.style,l=t.className,c=o[s],p=i;return"function"==typeof p&&(p=p(r)),tF.default.createElement(eI,{ref:e,role:"alert","aria-describedby":eM,style:u,className:tQ(ew.MuiContent,ew.MuiContentVariant(s),eR.root,eR[s],l,!a&&c&&eR.lessPadding)},tF.default.createElement("div",{id:eM,className:eR.message},a?null:c,n),p&&tF.default.createElement("div",{className:eR.action},p))});eD.displayName="MaterialDesignContent";var eq=(0,tF.memo)(eD),eA=eb({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),eL=function(t){var e,r=(0,tF.useRef)(),n=(0,tF.useState)(!0),i=n[0],o=n[1],s=eS([t.snack.onClose,t.onClose]),a=(0,tF.useCallback)(function(){r.current=setTimeout(function(){o(function(t){return!t})},125)},[]);(0,tF.useEffect)(function(){return function(){r.current&&clearTimeout(r.current)}},[]);var u=t.snack,l=t.classes,c=t.Component,p=(0,tF.useMemo)(function(){return ek(l)},[l]),d=u.open,f=u.SnackbarProps,h=u.TransitionComponent,m=u.TransitionProps,y=u.transitionDuration,g=u.disableWindowBlurListener,b=u.content,w=t0(u,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),x=tZ({direction:"center"!==(e=w.anchorOrigin).horizontal?eE[e.horizontal]:eE[e.vertical],timeout:y},m),O=b;"function"==typeof O&&(O=O(w.id,w.message));var E=["onEnter","onEntered","onExit","onExited"].reduce(function(e,r){var n;return tZ({},e,((n={})[r]=eS([t.snack[r],t[r]],w.id),n))},{});return tF.default.createElement(eO,{in:i,onExited:E.onExited},tF.default.createElement(eC,{open:d,id:w.id,disableWindowBlurListener:g,autoHideDuration:w.autoHideDuration,className:tQ(eA.wrappedRoot,p.root,p["anchorOrigin"+t4(w.anch
1orOrigin)]),SnackbarProps:f,onClose:s},tF.default.createElement(h,Object.assign({},x,{appear:!0,in:d,onExit:E.onExit,onExited:a,onEnter:E.onEnter,onEntered:eS([E.onEntered,function(){t.snack.requestClose&&s(null,"instructed",t.snack.id)}],w.id)}),O||tF.default.createElement(void 0===c?eq:c,Object.assign({},w)))))},eN={view:{default:20,dense:4},snackbar:{default:6,dense:2}},eF="."+ew.CollapseWrapper,eU=eb({root:((o={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:ep(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"})[eF]={padding:eN.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},o.maxWidth="calc(100% - "+2*eN.view.default+"px)",o[t3.downXs]={width:"100%",maxWidth:"calc(100% - 32px)"},o),rootDense:((s={})[eF]={padding:eN.snackbar.dense+"px 0px"},s),top:{top:eN.view.default-eN.snackbar.default+"px",flexDirection:"column"},bottom:{bottom:eN.view.default-eN.snackbar.default+"px",flexDirection:"column-reverse"},left:((a={left:eN.view.default+"px"})[t3.upSm]={alignItems:"flex-start"},a[t3.downXs]={left:"16px"},a),right:((u={right:eN.view.default+"px"})[t3.upSm]={alignItems:"flex-end"},u[t3.downXs]={right:"16px"},u),center:((l={left:"50%",transform:"translateX(-50%)"})[t3.upSm]={alignItems:"center"},l)}),eQ=(0,tF.memo)(function(t){var e=t.classes,r=void 0===e?{}:e,n=t.anchorOrigin,i=t.dense,o=t.children,s=tQ(ew.SnackbarContainer,eU[n.vertical],eU[n.horizontal],eU.root,r.containerRoot,r["containerAnchorOrigin"+t4(n)],i&&eU.rootDense);return tF.default.createElement("div",{className:s},o)}),eW=function(t){return!("string"==typeof t||(0,tF.isValidElement)(t))},eH=function(t){function e(e){var r;return(r=t.call(this,e)||this).enqueueSnackbar=function(t,e){if(void 0===e&&(e={}),null==t)throw Error("enqueueSnackbar called with invalid argument");var n,i=eW(t)?t:e,o=eW(t)?t.message:t,s=i.key,a=i.preventDuplicate,u=t0(i,["key","preventDuplicate"]),l=t6(s),c=l?s:new Date().getTime()+Math.random(),p=(n=r.props,function(t,e){return(void 0===e&&(e=!1),e)?tZ({},ey[t],{},n[t],{},u[t]):"autoHideDuration"===t?ev(u.autoHideDuration,n.autoHideDuration):"transitionDuration"===t?eg(u.transitionDuration,n.transitionDuration):u[t]||n[t]||ey[t]}),d=tZ({id:c},u,{message:o,open:!0,entered:!1,requestClose:!1,persist:p("persist"),action:p("action"),content:p("content"),variant:p("variant"),anchorOrigin:p("anchorOrigin"),disableWindowBlurListener:p("disableWindowBlurListener"),autoHideDuration:p("autoHideDuration"),hideIconVariant:p("hideIconVariant"),TransitionComponent:p("TransitionComponent"),transitionDuration:p("transitionDuration"),TransitionProps:p("TransitionProps",!0),iconVariant:p("iconVariant",!0),style:p("style",!0),SnackbarProps:p("SnackbarProps",!0),className:tQ(r.props.className,u.className)});return d.persist&&(d.autoHideDuration=void 0),r.setState(function(t){if(void 0===a&&r.props.preventDuplicate||a){var e=function(t){return l?t.id===c:t.message===o},n=t.queue.findIndex(e)>-1,i=t.snacks.findIndex(e)>-1;if(n||i)return t}return r.handleDisplaySnack(tZ({},t,{queue:[].concat(t.queue,[d])}))}),c},r.handleDisplaySnack=function(t){return t.snacks.length>=r.maxSnack?r.handleDismissOldest(t):r.processQueue(t)},r.processQueue=function(t){var e=t.queue,r=t.snacks;return e.length>0?tZ({},t,{snacks:[].concat(r,[e[0]]),queue:e.slice(1,e.length)}):t},r.handleDismissOldest=function(t){if(t.snacks.some(function(t){return!t.open||t.requestClose}))return t;var e=!1,n=!1;t.snacks.reduce(function(t,e){return t+(e.open&&e.persist?1:0)},0)===r.maxSnack&&(n=!0);var i=t.snacks.map(function(t){return e||t.persist&&!n?tZ({},t):(e=!0,t.entered)?(t.onClose&&t.onClose(null,"maxsnack",t.id),r.props.onClose&&r.props.onClose(null,"maxsnack",t.id),tZ({},t,{open:!1})):tZ({},t,{requestClose:!0})});return tZ({},t,{snacks:i})},r.handleEnteredSnack=function(t,e,n){if(!t6(n))throw Error("handleEnteredSnack Cannot be called with undefined key");r.setState(function(t){return{snacks:t.snacks.map(function(t){return t.id===n?tZ({},t,{entered:!0}):tZ({},t)})}})},r.handleCloseSnack=function(t,e,n){r.props.onClose&&r.props.onClose(t,e,n);var i=void 0===n;r.setState(function(t){var e=t.snacks,r=t.queue;return{snacks:e.map(function(t){return i||t.id===n?t.entered?tZ({},t,{open:!1}):tZ({},t,{requestClose:!0}):tZ({},t)}),queue:r.filter(function(t){return t.id!==n})}})},r.closeSnackbar=function(t){var e=r.state.snacks.find(function(e){return e.id===t});t6(t)&&e&&e.onClose&&e.onClose(null,"instructed",t),r.handleCloseSnack(null,"instructed",t)},r.handleExitedSnack=function(t,e){if(!t6(e))throw Error("handleExitedSnack Cannot be called with undefined key");r.setState(function(t){var n=r.processQueue(tZ({},t,{snacks:t.snacks.filter(function(t){return t.id!==e})}));return 0===n.queue.length?n:r.handleDismissOldest(n)})},r.enqueueSnackbar,r.closeSnackbar,r.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:r.enqueueSnackbar.bind(t1(r)),closeSnackbar:r.closeSnackbar.bind(t1(r))}},r}return tY(e,t),e.prototype.render=function(){var t=this,e=this.state.contextValue,r=this.props,n=r.domRoot,i=r.children,o=r.dense,s=void 0!==o&&o,a=r.Components,u=void 0===a?{}:a,l=r.classes,c=this.state.snacks.reduce(function(t,e){var r,n=t4(e.anchorOrigin),i=t[n]||[];return tZ({},t,((r={})[n]=[].concat(i,[e]),r))},{}),p=Object.keys(c).map(function(e){var r=c[e],n=r[0];return tF.default.createElement(eQ,{key:e,dense:s,anchorOrigin:n.anchorOrigin,classes:l},r.map(function(e){return tF.default.createElement(eL,{key:e.id,snack:e,classes:l,Component:u[e.variant],onClose:t.handleCloseSnack,onEnter:t.props.onEnter,onExit:t.props.onExit,onExited:eS([t.handleExitedSnack,t.props.onExited],e.id),onEntered:eS([t.handleEnteredSnack,t.props.onEntered],e.id)})}))});return tF.default.createElement(t7.Provider,{value:e},i,n?(0,tU.createPortal)(p,n):p)},tX(e,[{key:"maxSnack",get:function(){return this.props.maxSnack||ey.maxSnack}}]),e}(tF.Component),eB=function(){return(0,tF.useContext)(t7)};t.s(["configureClientRollbar",()=>e$],28597);var ez=t.i(99648);
1let eV=tN.default.env.NEXT_PUBLIC_APP_VERSION||"1.0.0",eK=tN.default.env.ROLLBAR_SERVER_TOKEN||"",eJ={captureUncaught:!1,captureUnhandledRejections:!1,environment:"production",codeVersion:eV,scrubFields:[],captureIp:!0,captureEmail:!0,captureUsername:!0,captureDeviceInfo:!0},eG=["exited","the worker has exited","worker has exited","Error: the worker has exited","AbortError","Failed to fetch"];function e$(){if(!window._rollbarConfigured){let t=new ez.default({accessToken:"855bc14f79e742fa803d207574988e420162ce05ebab848af7e00f794960dafe9253b71f3d0dbcba2e5a470e2990dd5d",payload:{client:{javascript:{source_map_enabled:!0,code_version:eV}}},ignoredMessages:eG,...eJ});return window._rollbarConfigured=!0,t}return null}new ez.default({accessToken:eK,...eJ}),t.s(["trpc",()=>o9],27020);var eX=Object.create,eZ=Object.defineProperty,eY=Object.getOwnPropertyDescriptor,e0=Object.getOwnPropertyNames,e1=Object.getPrototypeOf,e2=Object.prototype.hasOwnProperty,e7=(t,e)=>function(){return e||(0,t[e0(t)[0]])((e={exports:{}}).exports,e),e.exports},e3=(t,e,r)=>(r=null!=t?eX(e1(t)):{},((t,e,r,n)=>{if(e&&"object"==typeof e||"function"==typeof e)for(var i,o=e0(e),s=0,a=o.length;s<a;s++)i=o[s],e2.call(t,i)||i===r||eZ(t,i,{get:(t=>e[t]).bind(null,i),enumerable:!(n=eY(e,i))||n.enumerable});return t})(!e&&t&&t.__esModule?r:eZ(r,"default",{value:t,enumerable:!0}),t)),e5=e7({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(t,e){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}}),e4=e7({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(t,e){var r=e5().default;e.exports=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},e.exports.__esModule=!0,e.exports.default=e.exports}}),e6=e7({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(t,e){var r=e5().default,n=e4();e.exports=function(t){var e=n(t,"string");return"symbol"==r(e)?e:e+""},e.exports.__esModule=!0,e.exports.default=e.exports}}),e8=e7({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(t,e){var r=e6();e.exports=function(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},e.exports.__esModule=!0,e.exports.default=e.exports}}),e9=e7({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(t,e){var r=e8();function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}e.exports=function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?n(Object(i),!0).forEach(function(e){r(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t},e.exports.__esModule=!0,e.exports.default=e.exports}});function rt(t){let e={subscribe(e){let r=null,n=!1,i=!1,o=!1;function s(){if(null===r){o=!0;return}!i&&(i=!0,"function"==typeof r?r():r&&r.unsubscribe())}return r=t({next(t){var r;n||null==(r=e.next)||r.call(e,t)},error(t){var r;n||(n=!0,null==(r=e.error)||r.call(e,t),s())},complete(){var t;n||(n=!0,null==(t=e.complete)||t.call(e),s())}}),o&&s(),{unsubscribe:s}},pipe(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.reduce(re,e)}};return e}function re(t,e){return e(t)}let rr={INTERNAL_SERVER_ERROR:-32603,BAD_GATEWAY:-32603,SERVICE_UNAVAILABLE:-32603,GATEWAY_TIMEOUT:-32603};function rn(t){return!!t&&!Array.isArray(t)&&"object"==typeof t}rr.BAD_GATEWAY,rr.SERVICE_UNAVAILABLE,rr.GATEWAY_TIMEOUT,rr.INTERNAL_SERVER_ERROR;let ri="function"==typeof Symbol&&!!Symbol.asyncIterator;function ro(t){return ri&&rn(t)&&Symbol.asyncIterator in t}
1var rs=e3(e8(),1),ra=e3(e9(),1),ru=class t extends Error{static from(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e instanceof ru?(r.meta&&(e.meta=(0,ra.default)((0,ra.default)({},e.meta),r.meta)),e):rn(e)&&rn(e.error)&&"number"==typeof e.error.code&&"string"==typeof e.error.message?new t(e.error.message,(0,ra.default)((0,ra.default)({},r),{},{result:e})):new t("string"==typeof e?e:rn(e)&&"string"==typeof e.message?e.message:"Unknown error",(0,ra.default)((0,ra.default)({},r),{},{cause:e}))}constructor(e,r){var n,i;let o=null==r?void 0:r.cause;super(e,{cause:o}),(0,rs.default)(this,"cause",void 0),(0,rs.default)(this,"shape",void 0),(0,rs.default)(this,"data",void 0),(0,rs.default)(this,"meta",void 0),this.meta=null==r?void 0:r.meta,this.cause=o,this.shape=null==r||null==(n=r.result)?void 0:n.error,this.data=null==r||null==(i=r.result)?void 0:i.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,t.prototype)}};function rl(t){return t?"input"in t?t:{input:t,output:t}:{input:{serialize:t=>t,deserialize:t=>t},output:{serialize:t=>t,deserialize:t=>t}}}var rc=e3(e9());let rp={query:"GET",mutation:"POST",subscription:"PATCH"};function rd(t){return"input"in t?t.transformer.input.serialize(t.input):function(t){let e={};for(let r=0;r<t.length;r++){let n=t[r];e[r]=n}return e}(t.inputs.map(e=>t.transformer.input.serialize(e)))}let rf=t=>{let e=t.url.split("?"),r=e[0].replace(/\/$/,"")+"/"+t.path,n=[];if(e[1]&&n.push(e[1]),"inputs"in t&&n.push("batch=1"),"query"===t.type||"subscription"===t.type){let e=rd(t);void 0!==e&&"POST"!==t.methodOverride&&n.push("input=".concat(encodeURIComponent(JSON.stringify(e))))}return n.length&&(r+="?"+n.join("&")),r},rh=t=>{if("query"===t.type&&"POST"!==t.methodOverride)return;let e=rd(t);return void 0!==e?JSON.stringify(e):void 0};var rm=class extends Error{constructor(){let t="AbortError";super(t),this.name=t,this.message=t}};async function ry(t){var e,r,n=t.signal;if(null==n?void 0:n.aborted){if(null==(r=n.throwIfAborted)||r.call(n),"undefined"!=typeof DOMException)throw new DOMException("AbortError","AbortError");throw new rm}let i=t.getUrl(t),o=t.getBody(t),s=null!=(e=t.methodOverride)?e:rp[t.type],a=await (async()=>{let e=await t.headers();return Symbol.iterator in e?Object.fromEntries(e):e})(),u=(0,rc.default)((0,rc.default)((0,rc.default)({},t.contentTypeHeader&&"GET"!==s?{"content-type":t.contentTypeHeader}:{}),t.trpcAcceptHeader?{"trpc-accept":t.trpcAcceptHeader}:void 0),a);return(function(t){if(t)return t;if("undefined"!=typeof window&&"function"==typeof window.fetch)return window.fetch;if("undefined"!=typeof globalThis&&"function"==typeof globalThis.fetch)return globalThis.fetch;throw Error("No fetch implementation found")})(t.fetch)(i,{method:s,signal:t.signal,body:o,headers:u})}async function rv(t){let e={},r=await ry(t);e.response=r;let n=await r.json();return e.responseJSON=n,{json:n,meta:e}}var rg=Object.create,rb=Object.defineProperty,rw=Object.getOwnPropertyDescriptor,rx=Object.getOwnPropertyNames,rO=Object.getPrototypeOf,rE=Object.prototype.hasOwnProperty,rk=(t,e)=>function(){return e||(0,t[rx(t)[0]])((e={exports:{}}).exports,e),e.exports},r_=(t,e,r)=>(r=null!=t?rg(rO(t)):{},((t,e,r,n)=>{if(e&&"object"==typeof e||"function"==typeof e)for(var i,o=rx(e),s=0,a=o.length;s<a;s++)i=o[s],rE.call(t,i)||i===r||rb(t,i,{get:(t=>e[t]).bind(null,i),enumerable:!(n=rw(e,i))||n.enumerable});return t})(!e&&t&&t.__esModule?r:rb(r,"default",{value:t,enumerable:!0}),t));let rS=()=>{},rP=t=>{Object.freeze&&Object.freeze(t)},rj=t=>(function t(e,r,n){let i=r.join(".");return null!=n[i]||(n[i]=new Proxy(rS,{get(i,o){if("string"==typeof o&&"then"!==o)return t(e,[...r,o],n)},apply(t,n,i){let o=r[r.length-1],s={args:i,path:r};return"call"===o?s={args:i.length>=2?[i[1]]:[],path:r.slice(0,-1)}:"apply"===o&&(s={args:i.length>=2?i[1]:[],path:r.slice(0,-1)}),rP(s.args),rP(s.path),e(s)}})),n[i]})(t,[],Object.create(null)),rC=t=>new Proxy(rS,{get(e,r){if("then"!==r)return t(r)}});var rT=rk({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(t,e){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}}),rI=rk({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(t,e){var r=rT().default;e.exports=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},e.exports.__esModule=!0,e.exports.default=e.exports}}),rR=rk({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(t,e){var r=rT().default,n=rI();e.exports=function(t){var e=n(t,"string");return"symbol"==r(e)?e:e+""},e.exports.__esModule=!0,e.exports.default=e.exports}}),rM=rk({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/
1defineProperty.js"(t,e){var r=rR();e.exports=function(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},e.exports.__esModule=!0,e.exports.default=e.exports}}),rD=rk({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(t,e){var r=rM();function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}e.exports=function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?n(Object(i),!0).forEach(function(e){r(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t},e.exports.__esModule=!0,e.exports.default=e.exports}});r_(rD(),1),r_(rM(),1);var rq=r_(rD(),1),rA=class extends Error{constructor(){super("Unable to transform response from server")}};r_(rD(),1),Symbol();var rL=e3(e9(),1);e3(e9(),1),Symbol(),e3(e9(),1);let rN=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return"function"==typeof t?t(...r):t};async function rF(t){let e=await rN(t.url);if(!t.connectionParams)return e;let r=e.includes("?")?"&":"?";return e+"".concat(r,"connectionParams=1")}async function rU(t){return JSON.stringify({method:"connectionParams",data:await rN(t)})}e3(e8(),1),e3(e8(),1);var rQ=e3(e8(),1),rW=class t{get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var e=this;if(e.openPromise)return e.openPromise;e.id=++t.connectCount;let r=rF(e.urlOptions).then(t=>new e.WebSocketPonyfill(t));e.openPromise=r.then(async t=>{e.ws=t,t.addEventListener("message",function(t){let{data:e}=t;"PING"===e&&this.send("PONG")}),e.keepAliveOpts.enabled&&function(t,e){let r,n,{intervalMs:i,pongTimeoutMs:o}=e;function s(){r=setTimeout(()=>{t.send("PING"),n=setTimeout(()=>{t.close()},o)},i)}t.addEventListener("open",s),t.addEventListener("message",t=>{let{data:e}=t;clearTimeout(r),s(),"PONG"===e&&(clearTimeout(n),clearTimeout(r),s())}),t.addEventListener("close",()=>{clearTimeout(r),clearTimeout(n)})}(t,e.keepAliveOpts),t.addEventListener("close",()=>{e.ws===t&&(e.ws=null)}),await function(t){let e,r,{promise:n,resolve:i,reject:o}={promise:new Promise((t,n)=>{e=t,r=n}),resolve:e,reject:r};return t.addEventListener("open",()=>{t.removeEventListener("error",o),i()}),t.addEventListener("error",o),n}(t),e.urlOptions.connectionParams&&t.send(await rU(e.urlOptions.connectionParams))});try{await e.openPromise}finally{e.openPromise=null}}async close(){var t;try{await this.openPromise}finally{null==(t=this.ws)||t.close()}}constructor(e){var r;if((0,rQ.default)(this,"id",++t.connectCount),(0,rQ.default)(this,"WebSocketPonyfill",void 0),(0,rQ.default)(this,"urlOptions",void 0),(0,rQ.default)(this,"keepAliveOpts",void 0),(0,rQ.default)(this,"wsObservable",function(t){let e=null,r=[],n=rt(t=>(void 0!==e&&t.next(e),r.push(t),()=>{r.splice(r.indexOf(t),1)}));return n.next=t=>{if(e!==t)for(let n of(e=t,r))n.next(t)},n.get=()=>e,n}(0)),(0,rQ.default)(this,"openPromise",null),this.WebSocketPonyfill=null!=(r=e.WebSocketPonyfill)?r:WebSocket,!this.WebSocketPonyfill)throw Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=e.urlOptions,this.keepAliveOpts=e.keepAlive}};(0,rQ.default)(rW,"connectCount",0),e3(e8(),1),e3(e9(),1),r_(rD(),1);var rH=r_(rM(),1);let rB=new WeakMap,rz=()=>{};e=Symbol.toStringTag;var rV=class t{subscribe(){let t,e,{settlement:r}=this;if(null===r){var n;let r,i;if(null===this.subscribers)throw Error("Unpromise settled but still has subscribers");let o={promise:new Promise((t,e)=>{r=t,i=e}),resolve:r,reject:i};this.subscribers=(n=this.subscribers,[...n,o]),t=o.promise,e=()=>{null!==this.subscribers&&(this.subscribers=function(t,e){let r=t.indexOf(e);if(-1!==r)return[...t.slice(0,r),...t.slice(r+1)];return t}(this.subscribers,o))}}else{let{status:n}=r;t="fulfilled"===n?Promise.resolve(r.value):Promise.reject(r.reason),e=rz}return Object.assign(t,{unsubscribe:e})}then(t,e){let r=this.subscribe(),{unsubscribe:n}=r;return Object.assign(r.then(t,e),{unsubscribe:n})}catch(t){let e=this.subscribe(),{unsubscribe:r}=e;return Object.assign(e.catch(t),{unsubscribe:r})}finally(t){let e=this.subscribe(),{unsubscribe:r}=e;return Object.assign(e.finally(t),{unsubscribe:r})}static proxy(e){let r=t.getSubscribablePromise(e);return void 0!==r?r:t.createSubscribablePromise(e)}static createSubscribablePromise(e){let r=new t(e);return rB.set(e,r),rB.set(r,r),r}static getSubscribablePromise(t){return rB.get(t)}static resolve(e){let r="object"==typeof e&&null!==e&&"then"in e&&"function"==typeof e.then?e:Promise.resolve(e);return t.proxy(r).subscribe()}static async any(e){let r=(Array.isArray(e)?e:[...e]).map(t.resolve);try{return await Promise.any(r)}finally{r.forEach(t=>{let{unsubscribe:e}=t;e()})}}static async race(e){let r=(Array.isArray(e)?e:[...e]).map(t.resolve);try{return await Promise.race(r)}finally{r.forEach(t=>{let{unsubscribe:e}=t;e()})}}static async raceReferences(t){let e=t.map(rK);try{return await Promise.race(e)}finally{for(let t of e)t.unsubscribe()}}constructor(t){(0,rH.default)(this,"promise",void 0),(0,rH.default)(this,"subscribers",[]),(0,rH.default)(this,"settlement",null),(0,rH.default)(this,e,"Unpromise"),"function"==typeof t?this.promise=new Promise(t):this.promise=t;let r=this.promise.then(t=>{let{subscribers:e}=this;this.subscribers=null,this.settlement={status:"fulfilled",value:t}
1,null==e||e.forEach(e=>{let{resolve:r}=e;r(t)})});"catch"in r&&r.catch(t=>{let{subscribers:e}=this;this.subscribers=null,this.settlement={status:"rejected",reason:t},null==e||e.forEach(e=>{let{reject:r}=e;r(t)})})}};function rK(t){return rV.proxy(t).then(()=>[t])}null!=(c=Symbol).dispose||(c.dispose=Symbol()),null!=(p=Symbol).asyncDispose||(p.asyncDispose=Symbol()),Symbol();var rJ=rk({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(t,e){e.exports=function(){var t="function"==typeof SuppressedError?SuppressedError:function(t,e){var r=Error();return r.name="SuppressedError",r.error=t,r.suppressed=e,r},e={},r=[];function n(t,e){if(null!=e){if(Object(e)!==e)throw TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(t)var n=e[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(void 0===n&&(n=e[Symbol.dispose||Symbol.for("Symbol.dispose")],t))var i=n;if("function"!=typeof n)throw TypeError("Object is not disposable.");i&&(n=function(){try{i.call(e)}catch(t){return Promise.reject(t)}}),r.push({v:e,d:n,a:t})}else t&&r.push({d:e,a:t});return e}return{e,u:n.bind(null,!1),a:n.bind(null,!0),d:function(){var n,i=this.e,o=0;function s(){for(;n=r.pop();)try{if(!n.a&&1===o)return o=0,r.push(n),Promise.resolve().then(s);if(n.d){var t=n.d.call(n.v);if(n.a)return o|=2,Promise.resolve(t).then(s,a)}else o|=1}catch(t){return a(t)}if(1===o)return i!==e?Promise.reject(i):Promise.resolve();if(i!==e)throw i}function a(r){return i=i!==e?new t(r,i):r,s()}return s()}}},e.exports.__esModule=!0,e.exports.default=e.exports}}),rG=rk({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(t,e){e.exports=function(t,e){this.v=t,this.k=e},e.exports.__esModule=!0,e.exports.default=e.exports}}),r$=rk({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(t,e){var r=rG();e.exports=function(t){return new r(t,0)},e.exports.__esModule=!0,e.exports.default=e.exports}}),rX=rk({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(t,e){var r=rG();function n(t){var e,n;function i(e,n){try{var s=t[e](n),a=s.value,u=a instanceof r;Promise.resolve(u?a.v:a).then(function(r){if(u){var n="return"===e?"return":"next";if(!a.k||r.done)return i(n,r);r=t[n](r).value}o(s.done?"return":"normal",r)},function(t){i("throw",t)})}catch(t){o("throw",t)}}function o(t,r){switch(t){case"return":e.resolve({value:r,done:!0});break;case"throw":e.reject(r);break;default:e.resolve({value:r,done:!1})}(e=e.next)?i(e.key,e.arg):n=null}this._invoke=function(t,r){return new Promise(function(o,s){var a={key:t,arg:r,resolve:o,reject:s,next:null};n?n=n.next=a:(e=n=a,i(t,r))})},"function"!=typeof t.return&&(this.return=void 0)}n.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},n.prototype.next=function(t){return this._invoke("next",t)},n.prototype.throw=function(t){return this._invoke("throw",t)},n.prototype.return=function(t){return this._invoke("return",t)},e.exports=function(t){return function(){return new n(t.apply(this,arguments))}},e.exports.__esModule=!0,e.exports.default=e.exports}});r_(rJ(),1),r_(r$(),1),r_(rX(),1),r_(rJ(),1),r_(r$(),1),r_(rX(),1),r_(rJ(),1),r_(r$(),1),r_(rX(),1),Symbol("ping");var rZ=rk({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(t,e){function r(t){function e(t){if(Object(t)!==t)return Promise.reject(TypeError(t+" is not an object."));var e=t.done;return Promise.resolve(t.value).then(function(t){return{value:t,done:e}})}return(r=function(t){this.s=t,this.n=t.next}).prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(t){var r=this.s.return;return void 0===r?Promise.resolve({value:t,done:!0}):e(r.apply(this.s,arguments))},throw:function(t){var r=this.s.return;return void 0===r?Promise.reject(t):e(r.apply(this.s,arguments))}},new r(t)}e.exports=function(t){var e,n,i,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,i=Symbol.iterator);o--;){if(n&&null!=(e=t[n]))return e.call(t);if(i&&null!=(e=t[i]))return new r(e.call(t));n="@@asyncIterator",i="@@iterator"}throw TypeError("Object is not async iterable")},e.exports.__esModule=!0,e.exports.default=e.exports}});r_(r$(),1),r_(rX(),1),r_(rJ(),1),r_(rZ(),1);var rY=rk({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncGeneratorDelegate.js"(t,e){var r=rG();e.exports=function(t){var e={},n=!1;function i(e,i){return n=!0,{done:!1,value:new r(i=new Promise(function(r){r(t[e](i))}),1)}}return e["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},e.next=function(t){return n?(n=!1,t):i("next",t)},"function"==typeof t.throw&&(e.throw=function(t){if(n)throw n=!1,t;return i("throw",t)}
1),"function"==typeof t.return&&(e.return=function(t){return n?(n=!1,t):i("return",t)}),e},e.exports.__esModule=!0,e.exports.default=e.exports}});r_(rZ(),1),r_(r$(),1),r_(rX(),1),r_(rY(),1),r_(rJ(),1),r_(rX(),1),r_(rD(),1);var r0=e3(e8(),1),r1=e3(e9(),1),r2=class{$request(t){var e,r;return(r={links:this.links,op:(0,r1.default)((0,r1.default)({},t),{},{context:null!=(e=t.context)?e:{},id:++this.requestId})},rt(t=>(function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.op,i=r.links[e];if(!i)throw Error("No more links to execute - did you forget to add an ending link?");return i({op:n,next:r=>t(e+1,r)})})().subscribe(t))).pipe(t=>{let e=0,r=null,n=[];return rt(i=>(e++,n.push(i),r||(r=t.subscribe({next(t){for(let r of n){var e;null==(e=r.next)||e.call(r,t)}},error(t){for(let r of n){var e;null==(e=r.error)||e.call(r,t)}},complete(){for(let e of n){var t;null==(t=e.complete)||t.call(e)}}})),{unsubscribe(){if(0==--e&&r){let t=r;r=null,t.unsubscribe()}let t=n.findIndex(t=>t===i);t>-1&&n.splice(t,1)}}))})}async requestAsPromise(t){try{let e=this.$request(t);return(await function(t){let e=new AbortController;return new Promise((r,n)=>{let i=!1;function o(){i||(i=!0,s.unsubscribe())}e.signal.addEventListener("abort",()=>{n(e.signal.reason)});let s=t.subscribe({next(t){i=!0,r(t),o()},error(t){n(t)},complete(){e.abort(),o()}})})}(e)).result.data}catch(t){throw ru.from(t)}}query(t,e,r){return this.requestAsPromise({type:"query",path:t,input:e,context:null==r?void 0:r.context,signal:null==r?void 0:r.signal})}mutation(t,e,r){return this.requestAsPromise({type:"mutation",path:t,input:e,context:null==r?void 0:r.context,signal:null==r?void 0:r.signal})}subscription(t,e,r){return this.$request({type:"subscription",path:t,input:e,context:r.context,signal:r.signal}).subscribe({next(t){var e,n,i,o;switch(t.result.type){case"state":null==(e=r.onConnectionStateChange)||e.call(r,t.result);break;case"started":null==(n=r.onStarted)||n.call(r,{context:t.context});break;case"stopped":null==(i=r.onStopped)||i.call(r);break;case"data":case void 0:null==(o=r.onData)||o.call(r,t.result.data)}},error(t){var e;null==(e=r.onError)||e.call(r,t)},complete(){var t;null==(t=r.onComplete)||t.call(r)}})}constructor(t){(0,r0.default)(this,"links",void 0),(0,r0.default)(this,"runtime",void 0),(0,r0.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=t.links.map(t=>t(this.runtime))}};let r7=Symbol.for("trpc_untypedClient"),r3={query:"query",mutate:"mutation",subscribe:"subscription"};function r5(t){let e=rj(e=>{let{path:r,args:n}=e,i=[...r],o=r3[i.pop()],s=i.join(".");return t[o](s,...n)});return rC(r=>r===r7?t:e[r])}function r4(t){return r5(new r2(t))}e3(e9(),1),e3(e9(),1),e3(e7({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(t,e){function r(t){function e(t){if(Object(t)!==t)return Promise.reject(TypeError(t+" is not an object."));var e=t.done;return Promise.resolve(t.value).then(function(t){return{value:t,done:e}})}return(r=function(t){this.s=t,this.n=t.next}).prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(t){var r=this.s.return;return void 0===r?Promise.resolve({value:t,done:!0}):e(r.apply(this.s,arguments))},throw:function(t){var r=this.s.return;return void 0===r?Promise.reject(t):e(r.apply(this.s,arguments))}},new r(t)}e.exports=function(t){var e,n,i,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,i=Symbol.iterator);o--;){if(n&&null!=(e=t[n]))return e.call(t);if(i&&null!=(e=t[i]))return new r(e.call(t));n="@@asyncIterator",i="@@iterator"}throw TypeError("Object is not async iterable")},e.exports.__esModule=!0,e.exports.default=e.exports}})(),1),e3(e9(),1);var r6=e7({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(t,e){e.exports=function(){var t="function"==typeof SuppressedError?SuppressedError:function(t,e){var r=Error();return r.name="SuppressedError",r.error=t,r.suppressed=e,r},e={},r=[];function n(t,e){if(null!=e){if(Object(e)!==e)throw TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(t)var n=e[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(void 0===n&&(n=e[Symbol.dispose||Symbol.for("Symbol.dispose")],t))var i=n;
1if("function"!=typeof n)throw TypeError("Object is not disposable.");i&&(n=function(){try{i.call(e)}catch(t){return Promise.reject(t)}}),r.push({v:e,d:n,a:t})}else t&&r.push({d:e,a:t});return e}return{e,u:n.bind(null,!1),a:n.bind(null,!0),d:function(){var n,i=this.e,o=0;function s(){for(;n=r.pop();)try{if(!n.a&&1===o)return o=0,r.push(n),Promise.resolve().then(s);if(n.d){var t=n.d.call(n.v);if(n.a)return o|=2,Promise.resolve(t).then(s,a)}else o|=1}catch(t){return a(t)}if(1===o)return i!==e?Promise.reject(i):Promise.resolve();if(i!==e)throw i}function a(r){return i=i!==e?new t(r,i):r,s()}return s()}}},e.exports.__esModule=!0,e.exports.default=e.exports}}),r8=e7({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(t,e){e.exports=function(t,e){this.v=t,this.k=e},e.exports.__esModule=!0,e.exports.default=e.exports}}),r9=e7({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(t,e){var r=r8();e.exports=function(t){return new r(t,0)},e.exports.__esModule=!0,e.exports.default=e.exports}}),nt=e7({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(t,e){var r=r8();function n(t){var e,n;function i(e,n){try{var s=t[e](n),a=s.value,u=a instanceof r;Promise.resolve(u?a.v:a).then(function(r){if(u){var n="return"===e?"return":"next";if(!a.k||r.done)return i(n,r);r=t[n](r).value}o(s.done?"return":"normal",r)},function(t){i("throw",t)})}catch(t){o("throw",t)}}function o(t,r){switch(t){case"return":e.resolve({value:r,done:!0});break;case"throw":e.reject(r);break;default:e.resolve({value:r,done:!1})}(e=e.next)?i(e.key,e.arg):n=null}this._invoke=function(t,r){return new Promise(function(o,s){var a={key:t,arg:r,resolve:o,reject:s,next:null};n?n=n.next=a:(e=n=a,i(t,r))})},"function"!=typeof t.return&&(this.return=void 0)}n.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},n.prototype.next=function(t){return this._invoke("next",t)},n.prototype.throw=function(t){return this._invoke("throw",t)},n.prototype.return=function(t){return this._invoke("return",t)},e.exports=function(t){return function(){return new n(t.apply(this,arguments))}},e.exports.__esModule=!0,e.exports.default=e.exports}});e3(r6(),1),e3(r9(),1),e3(nt(),1),e3(e9(),1);var ne=Object.create,nr=Object.defineProperty,nn=Object.getOwnPropertyDescriptor,ni=Object.getOwnPropertyNames,no=Object.getPrototypeOf,ns=Object.prototype.hasOwnProperty,na=(t,e)=>function(){return e||(0,t[ni(t)[0]])((e={exports:{}}).exports,e),e.exports},nu=na({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(t,e){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}}),nl=na({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(t,e){var r=nu().default;e.exports=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},e.exports.__esModule=!0,e.exports.default=e.exports}}),nc=na({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(t,e){var r=nu().default,n=nl();e.exports=function(t){var e=n(t,"string");return"symbol"==r(e)?e:e+""},e.exports.__esModule=!0,e.exports.default=e.exports}}),np=na({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(t,e){var r=nc();e.exports=function(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},e.exports.__esModule=!0,e.exports.default=e.exports}}),nd=na({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(t,e){var r=np();function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}e.exports=function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?n(Object(i),!0).forEach(function(e){r(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t},e.exports.__esModule=!0,e.exports.default=e.exports}});function nf(t,e,r){if(!e.has(t))throw TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function nh(t,e){var r=nf(t,e,"get");return r.get?r.get.call(t):r.value}function nm(t,e){if(e.has(t))throw TypeError("Cannot initialize the same private elements twice on an object")}function ny(t,e,r){nm(t,e),e.set(t,r)}function nv(t,e,r){var n=nf(t,e,"set");if(n.set)n.set.call(t,r);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=r}return r}var ng={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},nb=new(d=new WeakMap,f=new WeakMap,class{setTimeoutProvider(t){nv(this,d,t)}setTimeout(t,e){return nh(this,d).setTimeout(t,e)}clearTimeout(t){nh(this,d).clearTimeout(t)}setInterval(t,e){return nh(this,d).setInterval(t,e)}clearInterval(t){nh(this,d).clearInterval(t)}constructor(){ny(this,d,{writable:!0,value:ng}),ny(this,f,{writable:!0,value:!1})}}),nw="undefined"==typeof window||"Deno"in globalThis;function nx(){}function nO(t){return"number"==typeof t&&t>=0&&t!==1/0}function nE(t,e){return Math.max(t+(e||0)-Date.now(),0)}function nk(t,e){return"function"==typeof t?t(e):t}function n_(t,e){return"function"==typeof t?t(e):t}function nS(t,e){let{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:s,stale:a}=t;if(s){if(n){if(e.queryHash!==nj(s,e.options))return!1}else if(!nT(e.queryKey,s))return!1}if("all"!==r){let t=e.isActive();if("active"===r&&!t||"inactive"===r&&t)return!1}return("boolean"!=typeof a||e.isStale()===a)&&(!i||i===e.state.fetchStatus)&&(!o||!!o(e))}function nP(t,e){let{exact:r,status:n,predicate:i,mutationKey:o}=t;if(o){if(!e.options.mutationKey)return!1;if(r){if(nC(e.options.mutationKey)!==nC(o))return!1}else if(!nT(e.options.mutationKey,o))return!1}return(!n||e.state.status===n)&&(!i||!!i(e))}function nj(t,e){return((null==e?void 0:e.queryKeyHashFn)||nC)(t)}function nC(t){return JSON.stringify(t,(t,e)=>nq(e)?Object.keys(e).sort().reduce((t,r)=>(t[r]=e[r],t),{}):e)}function nT(t,e){return t===e||typeof t==typeof e&&!!t&&!!e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).every(r=>nT(t[r],e[r]))}var nI=Object.prototype.hasOwnProperty;function nR(t,e){if(t===e)return t;let r=nD(t)&&nD(e);if(!r&&!(nq(t)&&nq(e)))return e;let n=(r?t:Object.keys(t)).length,i=r?e:Object.keys(e),o=i.length,s=r?Array(o):{},a=0;for(let u=0;u<o;u++){let o=r?u:i[u],l=t[o],c=e[o];if(l===c){s[o]=l,(r?u<n:nI.call(t,o))&&a++;continue}if(null===l||null===c||"object"!=typeof l||"object"!=typeof c){s[o]=c;continue}let p=nR(l,c);s[o]=p,p===l&&a++}return n===o&&a===n?t:s}function nM(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(let r in t)if(t[r]!==e[r])return!1;return!0}function nD(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function nq(t){if(!nA(t))return!1;let e=t.constructor;if(void 0===e)return!0;let r=e.prototype;return!!nA(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(t)===Object.prototype}function nA(t){return"[object Object]"===Object.prototype.toString.call(t)}function nL(t,e,r){return"function"==typeof r.structuralSharing?r.structuralSharing(t,e):!1!==r.structuralSharing?nR(t,e):e}function nN(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=[...t,e];return r&&n.length>r?n.slice(1):n}function nF(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=[e,...t];return r&&n.length>r?n.slice(0,-1):n}var nU=Symbol();function nQ(t,e){return!t.queryFn&&(null==e?void 0:e.initialPromise)?()=>e.initialPromise:t.queryFn&&t.queryFn!==nU?t.queryFn:()=>Promise.reject(Error("Missing queryFn: '".concat(t.queryHash,"'")))}function nW(t,e){return"function"==typeof t?t(...e):!!t}function nH(){let t,e,r=new Promise((r,n)=>{t=r,e=n});function n(t){Object.assign(r,t),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=e=>{n({status:"fulfilled",value:e}),t(e)},r.reject=t=>{n({status:"rejected",reason:t}),e(t)},r}function nB(t){return t}function nz(t,e,r){var n,i,o,s;if("object"!=typeof e||null===e)return;let a=t.getMutationCache(),u=t.getQueryCache(),l=null!=(s=null!=(o=null==r||null==(n=r.defaultOptions)?void 0:n.deserializeData)?o:null==(i=t.getDefaultOptions().hydrate)?void 0:i.deserializeData)?s:nB,c=e.mutations||[],p=e.queries||[];
1c.forEach(e=>{var n,i;let{state:o,...s}=e;a.build(t,{...null==(n=t.getDefaultOptions().hydrate)?void 0:n.mutations,...null==r||null==(i=r.defaultOptions)?void 0:i.mutations,...s},o)}),p.forEach(e=>{let{queryKey:n,state:i,queryHash:o,meta:s,promise:a,dehydratedAt:c}=e,p=a?function(t){var e;let r;if(null==(e=t.then(t=>(r=t,t),nx))||e.catch(nx),void 0!==r)return{data:r}}(a):void 0,d=void 0===i.data?null==p?void 0:p.data:i.data,f=void 0===d?d:l(d),h=u.get(o),m=(null==h?void 0:h.state.status)==="pending",y=(null==h?void 0:h.state.fetchStatus)==="fetching";if(h){let t=p&&void 0!==c&&c>h.state.dataUpdatedAt;if(i.dataUpdatedAt>h.state.dataUpdatedAt||t){let{fetchStatus:t,...e}=i;h.setState({...e,data:f})}}else{var g,b;h=u.build(t,{...null==(g=t.getDefaultOptions().hydrate)?void 0:g.queries,...null==r||null==(b=r.defaultOptions)?void 0:b.queries,queryKey:n,queryHash:o,meta:s},{...i,data:f,fetchStatus:"idle",status:void 0!==f?"success":i.status})}a&&!m&&!y&&(void 0===c||c>h.state.dataUpdatedAt)&&h.fetch(void 0,{initialPromise:Promise.resolve(a).then(l)})})}var nV=t.i(91398),nK=tF.createContext(void 0),nJ=t=>{let e=tF.useContext(nK);if(t)return t;if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},nG=t=>{let{client:e,children:r}=t;return tF.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,nV.jsx)(nK.Provider,{value:e,children:r})},n$=t=>{let{children:e,options:r={},state:n,queryClient:i}=t,o=nJ(i),s=tF.useRef(r);s.current=r;let a=tF.useMemo(()=>{if(n){if("object"!=typeof n)return;let t=o.getQueryCache(),e=n.queries||[],r=[],i=[];for(let n of e){let e=t.get(n.queryHash);e?(n.state.dataUpdatedAt>e.state.dataUpdatedAt||n.promise&&"pending"!==e.state.status&&"fetching"!==e.state.fetchStatus&&void 0!==n.dehydratedAt&&n.dehydratedAt>e.state.dataUpdatedAt)&&i.push(n):r.push(n)}if(r.length>0&&nz(o,{queries:r},s.current),i.length>0)return i}},[o,n]);return tF.useEffect(()=>{a&&nz(o,{queries:a},s.current)},[o,a]),e},nX=Object.create,nZ=Object.defineProperty,nY=Object.getOwnPropertyDescriptor,n0=Object.getOwnPropertyNames,n1=Object.getPrototypeOf,n2=Object.prototype.hasOwnProperty,n7=(t,e)=>function(){return e||(0,t[n0(t)[0]])((e={exports:{}}).exports,e),e.exports},n3=(t,e,r)=>(r=null!=t?nX(n1(t)):{},((t,e,r,n)=>{if(e&&"object"==typeof e||"function"==typeof e)for(var i,o=n0(e),s=0,a=o.length;s<a;s++)i=o[s],n2.call(t,i)||i===r||nZ(t,i,{get:(t=>e[t]).bind(null,i),enumerable:!(n=nY(e,i))||n.enumerable});return t})(!e&&t&&t.__esModule?r:nZ(r,"default",{value:t,enumerable:!0}),t)),n5=n7({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(t,e){e.exports=function(t,e){if(null==t)return{};var r={};for(var n in t)if(({}).hasOwnProperty.call(t,n)){if(e.includes(n))continue;r[n]=t[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}}),n4=n7({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(t,e){var r=n5();e.exports=function(t,e){if(null==t)return{};var n,i,o=r(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)n=s[i],e.includes(n)||({}).propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o},e.exports.__esModule=!0,e.exports.default=e.exports}}),n6=n7({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(t,e){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}}),n8=n7({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(t,e){var r=n6().default;e.exports=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},e.exports.__esModule=!0,e.exports.default=e.exports}}),n9=n7({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(t,e){var r=n6().default,n=n8();e.exports=function(t){var e=n(t,"string");return"symbol"==r(e)?e:e+""},e.exports.__esModule=!0,e.exports.default=e.exports}}),it=n7({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/
1defineProperty.js"(t,e){var r=n9();e.exports=function(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},e.exports.__esModule=!0,e.exports.default=e.exports}}),ie=n7({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(t,e){var r=it();function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}e.exports=function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?n(Object(i),!0).forEach(function(e){r(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t},e.exports.__esModule=!0,e.exports.default=e.exports}}),ir=n3(n4(),1),ii=n3(ie(),1);let io=["cursor","direction"];function is(t,e,r){let n=t.flatMap(t=>t.split("."));if(!e&&(!r||"any"===r))return n.length?[n]:[];if("infinite"===r&&rn(e)&&("direction"in e||"cursor"in e)){let{cursor:t,direction:r}=e;return[n,{input:(0,ir.default)(e,io),type:"infinite"}]}return[n,(0,ii.default)((0,ii.default)({},void 0!==e&&e!==nU&&{input:e}),r&&"any"!==r&&{type:r})]}function ia(t){return is(t,void 0,"any")}function iu(t,e){var r=nf(t,e,"update");if(r.set){if(!r.get)throw TypeError("attempted to read set only private field");return"__destrWrapper"in r||(r.__destrWrapper={set value(v){r.set.call(t,v)},get value(){return r.get.call(t)}}),r.__destrWrapper}if(!r.writable)throw TypeError("attempted to set read only private field");return r}function il(t,e,r){if(!e.has(t))throw TypeError("attempted to get private field on non-instance");return r}function ic(t,e){nm(t,e),e.add(t)}var ip=function(t){setTimeout(t,0)},id=function(){let t=[],e=0,r=t=>{t()},n=t=>{t()},i=ip,o=n=>{e?t.push(n):i(()=>{r(n)})};return{batch:o=>{let s;e++;try{s=o()}finally{--e||(()=>{let e=t;t=[],e.length&&i(()=>{n(()=>{e.forEach(t=>{r(t)})})})})()}return s},batchCalls:t=>function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];o(()=>{t(...r)})},schedule:o,setNotifyFunction:t=>{r=t},setBatchNotifyFunction:t=>{n=t},setScheduler:t=>{i=t}}}(),ih=class{subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}},im=new(h=new WeakMap,m=new WeakMap,y=new WeakMap,class extends ih{onSubscribe(){nh(this,m)||this.setEventListener(nh(this,y))}onUnsubscribe(){var t;this.hasListeners()||(null==(t=nh(this,m))||t.call(this),nv(this,m,void 0))}setEventListener(t){var e;nv(this,y,t),null==(e=nh(this,m))||e.call(this),nv(this,m,t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()}))}setFocused(t){nh(this,h)!==t&&(nv(this,h,t),this.onFocus())}onFocus(){let t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){var t;return"boolean"==typeof nh(this,h)?nh(this,h):(null==(t=globalThis.document)?void 0:t.visibilityState)!=="hidden"}constructor(){super(),ny(this,h,{writable:!0,value:void 0}),ny(this,m,{writable:!0,value:void 0}),ny(this,y,{writable:!0,value:void 0}),nv(this,y,t=>{if(!nw&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}})}}),iy=new(g=new WeakMap,b=new WeakMap,w=new WeakMap,class extends ih{onSubscribe(){nh(this,b)||this.setEventListener(nh(this,w))}onUnsubscribe(){var t;this.hasListeners()||(null==(t=nh(this,b))||t.call(this),nv(this,b,void 0))}setEventListener(t){var e;nv(this,w,t),null==(e=nh(this,b))||e.call(this),nv(this,b,t(this.setOnline.bind(this)))}setOnline(t){nh(this,g)!==t&&(nv(this,g,t),this.listeners.forEach(e=>{e(t)}))}isOnline(){return nh(this,g)}constructor(){super(),ny(this,g,{writable:!0,value:!0}),ny(this,b,{writable:!0,value:void 0}),ny(this,w,{writable:!0,value:void 0}),nv(this,w,t=>{if(!nw&&window.addEventListener){let e=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",r)}}})}});function iv(t){return Math.min(1e3*2**t,3e4)}function ig(t){return(null!=t?t:"online")!=="online"||iy.isOnline()}
1var ib=class extends Error{constructor(t){super("CancelledError"),this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent}};function iw(t){let e,r=!1,n=0,i=nH(),o=()=>im.isFocused()&&("always"===t.networkMode||iy.isOnline())&&t.canRun(),s=()=>ig(t.networkMode)&&t.canRun(),a=t=>{"pending"===i.status&&(null==e||e(),i.resolve(t))},u=t=>{"pending"===i.status&&(null==e||e(),i.reject(t))},l=()=>new Promise(r=>{var n;e=t=>{("pending"!==i.status||o())&&r(t)},null==(n=t.onPause)||n.call(t)}).then(()=>{if(e=void 0,"pending"===i.status){var r;null==(r=t.onContinue)||r.call(t)}}),c=()=>{let e;if("pending"!==i.status)return;let s=0===n?t.initialPromise:void 0;try{e=null!=s?s:t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(a).catch(e=>{var s,a,p;if("pending"!==i.status)return;let d=null!=(a=t.retry)?a:3*!nw,f=null!=(p=t.retryDelay)?p:iv,h="function"==typeof f?f(n,e):f,m=!0===d||"number"==typeof d&&n<d||"function"==typeof d&&d(n,e);if(r||!m)return void u(e);n++,null==(s=t.onFail)||s.call(t,n,e),new Promise(t=>{nb.setTimeout(t,h)}).then(()=>o()?void 0:l()).then(()=>{r?u(e):c()})})};return{promise:i,status:()=>i.status,cancel:e=>{if("pending"===i.status){var r;let n=new ib(e);u(n),null==(r=t.onCancel)||r.call(t,n)}},continue:()=>(null==e||e(),i),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:s,start:()=>(s()?c():l().then(c),i)}}var ix=(x=new WeakMap,class{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),nO(this.gcTime)&&nv(this,x,nb.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,null!=t?t:nw?1/0:3e5)}clearGcTimeout(){nh(this,x)&&(nb.clearTimeout(nh(this,x)),nv(this,x,void 0))}constructor(){ny(this,x,{writable:!0,value:void 0})}}),iO=(O=new WeakMap,E=new WeakMap,k=new WeakMap,_=new WeakMap,S=new WeakMap,P=new WeakMap,j=new WeakMap,C=new WeakSet,class extends ix{get meta(){return this.options.meta}get promise(){var t;return null==(t=nh(this,S))?void 0:t.promise}setOptions(t){if(this.options={...nh(this,P),...t},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let t=ik(this.options);void 0!==t.data&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),nv(this,O,t))}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||nh(this,k).remove(this)}setData(t,e){let r=nL(this.state.data,t,this.options);return il(this,C,i_).call(this,{data:r,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt,manual:null==e?void 0:e.manual}),r}setState(t,e){il(this,C,i_).call(this,{type:"setState",state:t,setStateOptions:e})}cancel(t){var e,r;let n=null==(e=nh(this,S))?void 0:e.promise;return null==(r=nh(this,S))||r.cancel(t),n?n.then(nx).catch(nx):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(nh(this,O))}isActive(){return this.observers.some(t=>!1!==n_(t.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===nU||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(t=>"static"===nk(t.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return void 0===this.state.data||"static"!==t&&(!!this.state.isInvalidated||!nE(this.state.dataUpdatedAt,t))}onFocus(){var t;let e=this.observers.find(t=>t.shouldFetchOnWindowFocus());null==e||e.refetch({cancelRefetch:!1}),null==(t=nh(this,S))||t.continue()}onOnline(){var t;let e=this.observers.find(t=>t.shouldFetchOnReconnect());null==e||e.refetch({cancelRefetch:!1}),null==(t=nh(this,S))||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),nh(this,k).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(nh(this,S)&&(nh(this,j)?nh(this,S).cancel({revert:!0}):nh(this,S).cancelRetry()),this.scheduleGc()),nh(this,k).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||il(this,C,i_).call(this,{type:"invalidate"})}async fetch(t,e){var r,n,i,o,s,a,u,l,c,p,d,f;if("idle"!==this.state.fetchStatus&&(null==(r=nh(this,S))?void 0:r.status())!=="rejected"){if(void 0!==this.state.data&&(null==e?void 0:e.cancelRefetch))this.cancel({silent:!0});else if(nh(this,S))return nh(this,S).continueRetry(),nh(this,S).promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let h=new AbortController,m=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(nv(this,j,!0),h.signal)}
1)},y=()=>{let t=nQ(this.options,e),r=(()=>{let t={client:nh(this,_),queryKey:this.queryKey,meta:this.meta};return m(t),t})();return(nv(this,j,!1),this.options.persister)?this.options.persister(t,r,this):t(r)},g=(()=>{let t={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:nh(this,_),state:this.state,fetchFn:y};return m(t),t})();null==(n=this.options.behavior)||n.onFetch(g,this),nv(this,E,this.state),("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(i=g.fetchOptions)?void 0:i.meta))&&il(this,C,i_).call(this,{type:"fetch",meta:null==(o=g.fetchOptions)?void 0:o.meta}),nv(this,S,iw({initialPromise:null==e?void 0:e.initialPromise,fn:g.fetchFn,onCancel:t=>{t instanceof ib&&t.revert&&this.setState({...nh(this,E),fetchStatus:"idle"}),h.abort()},onFail:(t,e)=>{il(this,C,i_).call(this,{type:"failed",failureCount:t,error:e})},onPause:()=>{il(this,C,i_).call(this,{type:"pause"})},onContinue:()=>{il(this,C,i_).call(this,{type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0}));try{let t=await nh(this,S).start();if(void 0===t)throw Error("".concat(this.queryHash," data is undefined"));return this.setData(t),null==(s=(a=nh(this,k).config).onSuccess)||s.call(a,t,this),null==(u=(l=nh(this,k).config).onSettled)||u.call(l,t,this.state.error,this),t}catch(t){if(t instanceof ib){if(t.silent)return nh(this,S).promise;else if(t.revert){if(void 0===this.state.data)throw t;return this.state.data}}throw il(this,C,i_).call(this,{type:"error",error:t}),null==(c=(p=nh(this,k).config).onError)||c.call(p,t,this),null==(d=(f=nh(this,k).config).onSettled)||d.call(f,this.state.data,t,this),t}finally{this.scheduleGc()}}constructor(t){var e;super(),ic(this,C),ny(this,O,{writable:!0,value:void 0}),ny(this,E,{writable:!0,value:void 0}),ny(this,k,{writable:!0,value:void 0}),ny(this,_,{writable:!0,value:void 0}),ny(this,S,{writable:!0,value:void 0}),ny(this,P,{writable:!0,value:void 0}),ny(this,j,{writable:!0,value:void 0}),nv(this,j,!1),nv(this,P,t.defaultOptions),this.setOptions(t.options),this.observers=[],nv(this,_,t.client),nv(this,k,nh(this,_).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,nv(this,O,ik(this.options)),this.state=null!=(e=t.state)?e:nh(this,O),this.scheduleGc()}});function iE(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ig(e.networkMode)?"fetching":"paused",...void 0===t&&{error:null,status:"pending"}}}function ik(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,r=void 0!==e,n=r?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}function i_(t){let e=e=>{var r,n;switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,...iE(e.data,this.options),fetchMeta:null!=(r=t.meta)?r:null};case"success":let i={...e,data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(n=t.dataUpdatedAt)?n:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return nv(this,E,t.manual?i:void 0),i;case"error":let o=t.error;return{...e,error:o,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}};this.state=e(this.state),id.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate()}),nh(this,k).notify({query:this,type:"updated",action:t})})}var iS=(T=new WeakMap,class extends ih{build(t,e,r){var n;let i=e.queryKey,o=null!=(n=e.queryHash)?n:nj(i,e),s=this.get(o);return s||(s=new iO({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(e),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){nh(this,T).has(t.queryHash)||(nh(this,T).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){let e=nh(this,T).get(t.queryHash);
1e&&(t.destroy(),e===t&&nh(this,T).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){id.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return nh(this,T).get(t)}getAll(){return[...nh(this,T).values()]}find(t){let e={exact:!0,...t};return this.getAll().find(t=>nS(e,t))}findAll(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.getAll();return Object.keys(t).length>0?e.filter(e=>nS(t,e)):e}notify(t){id.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){id.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){id.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}constructor(t={}){super(),ny(this,T,{writable:!0,value:void 0}),this.config=t,nv(this,T,new Map)}}),iP=(I=new WeakMap,R=new WeakMap,M=new WeakMap,D=new WeakMap,q=new WeakSet,class extends ix{setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){nh(this,R).includes(t)||(nh(this,R).push(t),this.clearGcTimeout(),nh(this,M).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){nv(this,R,nh(this,R).filter(e=>e!==t)),this.scheduleGc(),nh(this,M).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){nh(this,R).length||("pending"===this.state.status?this.scheduleGc():nh(this,M).remove(this))}continue(){var t,e;return null!=(e=null==(t=nh(this,D))?void 0:t.continue())?e:this.execute(this.state.variables)}async execute(t){var e,r,n,i,o,s,a,u,l,c,p,d,f,h,m,y,g,b,w,x,O;let E=()=>{il(this,q,iC).call(this,{type:"continue"})},k={client:nh(this,I),meta:this.options.meta,mutationKey:this.options.mutationKey};nv(this,D,iw({fn:()=>this.options.mutationFn?this.options.mutationFn(t,k):Promise.reject(Error("No mutationFn found")),onFail:(t,e)=>{il(this,q,iC).call(this,{type:"failed",failureCount:t,error:e})},onPause:()=>{il(this,q,iC).call(this,{type:"pause"})},onContinue:E,retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>nh(this,M).canRun(this)}));let _="pending"===this.state.status,S=!nh(this,D).canStart();try{if(_)E();else{il(this,q,iC).call(this,{type:"pending",variables:t,isPaused:S}),await (null==(c=(p=nh(this,M).config).onMutate)?void 0:c.call(p,t,this,k));let e=await (null==(d=(f=this.options).onMutate)?void 0:d.call(f,t,k));e!==this.state.context&&il(this,q,iC).call(this,{type:"pending",context:e,variables:t,isPaused:S})}let e=await nh(this,D).start();return await (null==(r=(n=nh(this,M).config).onSuccess)?void 0:r.call(n,e,t,this.state.context,this,k)),await (null==(i=(o=this.options).onSuccess)?void 0:i.call(o,e,t,this.state.context,k)),await (null==(s=(a=nh(this,M).config).onSettled)?void 0:s.call(a,e,null,this.state.variables,this.state.context,this,k)),await (null==(u=(l=this.options).onSettled)?void 0:u.call(l,e,null,t,this.state.context,k)),il(this,q,iC).call(this,{type:"success",data:e}),e}catch(e){try{throw await (null==(h=(m=nh(this,M).config).onError)?void 0:h.call(m,e,t,this.state.context,this,k)),await (null==(y=(g=this.options).onError)?void 0:y.call(g,e,t,this.state.context,k)),await (null==(b=(w=nh(this,M).config).onSettled)?void 0:b.call(w,void 0,e,this.state.variables,this.state.context,this,k)),await (null==(x=(O=this.options).onSettled)?void 0:x.call(O,void 0,e,t,this.state.context,k)),e}finally{il(this,q,iC).call(this,{type:"error",error:e})}}finally{nh(this,M).runNext(this)}}constructor(t){super(),ic(this,q),ny(this,I,{writable:!0,value:void 0}),ny(this,R,{writable:!0,value:void 0}),ny(this,M,{writable:!0,value:void 0}),ny(this,D,{writable:!0,value:void 0}),nv(this,I,t.client),this.mutationId=t.mutationId,nv(this,M,t.mutationCache),nv(this,R,[]),this.state=t.state||ij(),this.setOptions(t.options),this.scheduleGc()}});function ij(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}function iC(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};
1case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),id.batch(()=>{nh(this,R).forEach(e=>{e.onMutationUpdate(t)}),nh(this,M).notify({mutation:this,type:"updated",action:t})})}var iT=(A=new WeakMap,L=new WeakMap,N=new WeakMap,class extends ih{build(t,e,r){let n=new iP({client:t,mutationCache:this,mutationId:++iu(this,N).value,options:t.defaultMutationOptions(e),state:r});return this.add(n),n}add(t){nh(this,A).add(t);let e=iI(t);if("string"==typeof e){let r=nh(this,L).get(e);r?r.push(t):nh(this,L).set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(nh(this,A).delete(t)){let e=iI(t);if("string"==typeof e){let r=nh(this,L).get(e);if(r)if(r.length>1){let e=r.indexOf(t);-1!==e&&r.splice(e,1)}else r[0]===t&&nh(this,L).delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){let e=iI(t);if("string"!=typeof e)return!0;{let r=nh(this,L).get(e),n=null==r?void 0:r.find(t=>"pending"===t.state.status);return!n||n===t}}runNext(t){let e=iI(t);if("string"!=typeof e)return Promise.resolve();{var r,n;let i=null==(r=nh(this,L).get(e))?void 0:r.find(e=>
1e!==t&&e.state.isPaused);return null!=(n=null==i?void 0:i.continue())?n:Promise.resolve()}}clear(){id.batch(()=>{nh(this,A).forEach(t=>{this.notify({type:"removed",mutation:t})}),nh(this,A).clear(),nh(this,L).clear()})}getAll(){return Array.from(nh(this,A))}find(t){let e={exact:!0,...t};return this.getAll().find(t=>nP(e,t))}findAll(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getAll().filter(e=>nP(t,e))}notify(t){id.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){let t=this.getAll().filter(t=>t.state.isPaused);return id.batch(()=>Promise.all(t.map(t=>t.continue().catch(nx))))}constructor(t={}){super(),ny(this,A,{writable:!0,value:void 0}),ny(this,L,{writable:!0,value:void 0}),ny(this,N,{writable:!0,value:void 0}),this.config=t,nv(this,A,new Set),nv(this,L,new Map),nv(this,N,0)}});function iI(t){var e;return null==(e=t.options.scope)?void 0:e.id}function iR(t){return{onFetch:(e,r)=>{var n,i,o,s,a;let u=e.options,l=null==(o=e.fetchOptions)||null==(i=o.meta)||null==(n=i.fetchMore)?void 0:n.direction,c=(null==(s=e.state.data)?void 0:s.pages)||[],p=(null==(a=e.state.data)?void 0:a.pageParams)||[],d={pages:[],pageParams:[]},f=0,h=async()=>{let r=!1,n=nQ(e.options,e.fetchOptions),i=async(t,i,o)=>{if(r)return Promise.reject();if(null==i&&t.pages.length)return Promise.resolve(t);let s=(()=>{let t={client:e.client,queryKey:e.queryKey,pageParam:i,direction:o?"backward":"forward",meta:e.options.meta};return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(e.signal.aborted?r=!0:e.signal.addEventListener("abort",()=>{r=!0}),e.signal)}),t})(),a=await n(s),{maxPages:u}=e.options,l=o?nF:nN;return{pages:l(t.pages,a,u),pageParams:l(t.pageParams,i,u)}};if(l&&c.length){let t="backward"===l,e={pages:c,pageParams:p},r=(t?iD:iM)(u,e);d=await i(e,r,t)}else{let e=null!=t?t:c.length;do{var o;let t=0===f?null!=(o=p[0])?o:u.initialPageParam:iM(u,d);if(f>0&&null==t)break;d=await i(d,t),f++}while(f<e)}return d};e.options.persister?e.fetchFn=()=>{var t,n;return null==(t=(n=e.options).persister)?void 0:t.call(n,h,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r)}:e.fetchFn=h}}}function iM(t,e){let{pages:r,pageParams:n}=e,i=r.length-1;return r.length>0?t.getNextPageParam(r[i],r,n[i],n):void 0}function iD(t,e){var r;let{pages:n,pageParams:i}=e;return n.length>0?null==(r=t.getPreviousPageParam)?void 0:r.call(t,n[0],n,i[0],i):void 0}var iq=(F=new WeakMap,U=new WeakMap,Q=new WeakMap,W=new WeakMap,H=new WeakMap,B=new WeakMap,z=new WeakMap,V=new WeakMap,class{mount(){iu(this,B).value++,1===nh(this,B)&&(nv(this,z,im.subscribe(async t=>{t&&(await this.resumePausedMutations(),nh(this,F).onFocus())})),nv(this,V,iy.subscribe(async t=>{t&&(await this.resumePausedMutations(),nh(this,F).onOnline())})))}unmount(){var t,e;iu(this,B).value--,0===nh(this,B)&&(null==(t=nh(this,z))||t.call(this),nv(this,z,void 0),null==(e=nh(this,V))||e.call(this),nv(this,V,void 0))}isFetching(t){return nh(this,F).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return nh(this,U).findAll({...t,status:"pending"}).length}getQueryData(t){var e;let r=this.defaultQueryOptions({queryKey:t});return null==(e=nh(this,F).get(r.queryHash))?void 0:e.state.data}ensureQueryData(t){let e=this.defaultQueryOptions(t),r=nh(this,F).build(this,e),n=r.state.data;return void 0===n?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(nk(e.staleTime,r))&&this.prefetchQuery(e),Promise.resolve(n))}getQueriesData(t){return nh(this,F).findAll(t).map(t=>{let{queryKey:e,state:r}=t;return[e,r.data]})}setQueryData(t,e,r){let n=this.defaultQueryOptions({queryKey:t}),i=nh(this,F).get(n.queryHash),o=null==i?void 0:i.state.data,s="function"==typeof e?e(o):e;if(void 0!==s)return nh(this,F).build(this,n).setData(s,{...r,manual:!0})}setQueriesData(t,e,r){return id.batch(()=>nh(this,F).findAll(t).map(t=>{let{queryKey:n}=t;return[n,this.setQueryData(n,e,r)]}))}getQueryState(t){var e;let r=this.defaultQueryOptions({queryKey:t});return null==(e=nh(this,F).get(r.queryHash))?void 0:e.state}removeQueries(t){let e=nh(this,F);id.batch(()=>{e.findAll(t).forEach(t=>{e.remove(t)})})}resetQueries(t,e){let r=nh(this,F);return id.batch(()=>(r.findAll(t).forEach(t=>{t.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={revert:!0,...e};return Promise.all(id.batch(()=>nh(this,F).findAll(t).map(t=>t.cancel(r)))).then(nx).catch(nx)}invalidateQueries(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return id.batch(()=>{var r,n;return(nh(this,F).findAll(t).forEach(t=>{t.invalidate()}),(null==t?void 0:t.refetchType)==="none")?Promise.resolve():this.refetchQueries({...t,type:null!=(n=null!=(r=null==t?void 0:t.refetchType)?r:null==t?void 0:t.type)?n:"active"},e)})}refetchQueries(t){var e;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={...r,cancelRefetch:null==(e=r.cancelRefetch)||e};return Promise.all(id.batch(()=>nh(this,F).findAll(t).filter(t=>!t.isDisabled()&&!t.isStatic()).map(t=>{let e=t.fetch(void 0,n);return n.throwOnError||(e=e.catch(nx)),"paused"===t.state.fetchStatus?Promise.resolve():e}))).then(nx)}fetchQuery(t){let e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);let r=nh(this,F).build(this,e);return r.isStaleByTime(nk(e.staleTime,r))?r.fetch(e):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(nx).catch(nx)}fetchInfiniteQuery(t){return t.behavior=iR(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(nx).catch(nx)}ensureInfiniteQueryData(t){return t.behavior=iR(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return iy.isOnline()?nh(this,U).resumePausedMutations():Promise.resolve()}getQueryCache(){return nh(this,F)}getMutationCache(){return nh(this,U)}getDefaultOptions(){return nh(this,Q)}setDefaultOptions(t){nv(this,Q,t)}setQueryDefaults(t,e){nh(this,W).set(nC(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){let e=[...nh(this,W).values()],r={};
1return e.forEach(e=>{nT(t,e.queryKey)&&Object.assign(r,e.defaultOptions)}),r}setMutationDefaults(t,e){nh(this,H).set(nC(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){let e=[...nh(this,H).values()],r={};return e.forEach(e=>{nT(t,e.mutationKey)&&Object.assign(r,e.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;let e={...nh(this,Q).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=nj(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===nU&&(e.enabled=!1),e}defaultMutationOptions(t){return(null==t?void 0:t._defaulted)?t:{...nh(this,Q).mutations,...(null==t?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){nh(this,F).clear(),nh(this,U).clear()}constructor(t={}){ny(this,F,{writable:!0,value:void 0}),ny(this,U,{writable:!0,value:void 0}),ny(this,Q,{writable:!0,value:void 0}),ny(this,W,{writable:!0,value:void 0}),ny(this,H,{writable:!0,value:void 0}),ny(this,B,{writable:!0,value:void 0}),ny(this,z,{writable:!0,value:void 0}),ny(this,V,{writable:!0,value:void 0}),nv(this,F,t.queryCache||new iS),nv(this,U,t.mutationCache||new iT),nv(this,Q,t.defaultOptions||{}),nv(this,W,new Map),nv(this,H,new Map),nv(this,B,0)}}),iA=(K=new WeakMap,J=new WeakMap,G=new WeakMap,$=new WeakMap,X=new WeakMap,Z=new WeakMap,Y=new WeakMap,tt=new WeakMap,te=new WeakMap,tr=new WeakMap,tn=new WeakMap,ti=new WeakMap,to=new WeakMap,ts=new WeakMap,ta=new WeakMap,tu=new WeakSet,tl=new WeakSet,tc=new WeakSet,tp=new WeakSet,td=new WeakSet,tf=new WeakSet,th=new WeakSet,tm=new WeakSet,ty=new WeakSet,class extends ih{bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(nh(this,J).addObserver(this),iL(nh(this,J),this.options)?il(this,tu,iQ).call(this):this.updateResult(),il(this,td,iz).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return iN(nh(this,J),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return iN(nh(this,J),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,il(this,tf,iV).call(this),il(this,th,iK).call(this),nh(this,J).removeObserver(this)}setOptions(t){let e=this.options,r=nh(this,J);if(this.options=nh(this,K).defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof n_(this.options.enabled,nh(this,J)))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");il(this,tm,iJ).call(this),nh(this,J).setOptions(this.options),e._defaulted&&!nM(this.options,e)&&nh(this,K).getQueryCache().notify({type:"observerOptionsUpdated",query:nh(this,J),observer:this});let n=this.hasListeners();n&&iF(nh(this,J),r,this.options,e)&&il(this,tu,iQ).call(this),this.updateResult(),n&&(nh(this,J)!==r||n_(this.options.enabled,nh(this,J))!==n_(e.enabled,nh(this,J))||nk(this.options.staleTime,nh(this,J))!==nk(e.staleTime,nh(this,J)))&&il(this,tl,iW).call(this);let i=il(this,tc,iH).call(this);n&&(nh(this,J)!==r||n_(this.options.enabled,nh(this,J))!==n_(e.enabled,nh(this,J))||i!==nh(this,ts))&&il(this,tp,iB).call(this,i)}getOptimisticResult(t){var e,r;let n=nh(this,K).getQueryCache().build(nh(this,K),t),i=this.createResult(n,t);return e=this,r=i,nM(e.getCurrentResult(),r)||(nv(this,$,i),nv(this,Z,this.options),nv(this,X,nh(this,J).state)),i}getCurrentResult(){return nh(this,$)}trackResult(t,e){return new Proxy(t,{get:(t,r)=>(this.trackProp(r),null==e||e(r),"promise"!==r||this.options.experimental_prefetchInRender||"pending"!==nh(this,Y).status||nh(this,Y).reject(Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(t,r))})}trackProp(t){nh(this,ta).add(t)}getCurrentQuery(){return nh(this,J)}refetch(){let{...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.fetch({...t})}fetchOptimistic(t){let e=nh(this,K).defaultQueryOptions(t),r=nh(this,K).getQueryCache().build(nh(this,K),e);return r.fetch().then(()=>this.createResult(r,e))}fetch(t){var e;return il(this,tu,iQ).call(this,{...t,cancelRefetch:null==(e=t.cancelRefetch)||e}).then(()=>(this.updateResult(),nh(this,$)))}createResult(t,e){let r,n=nh(this,J),i=this.options,o=nh(this,$),s=nh(this,X),a=nh(this,Z),u=t!==n?t.state:nh(this,G),{state:l}=t,c={...l},p=!1;if(e._optimisticResults){let r=this.hasListeners(),o=!r&&iL(t,e),s=r&&iF(t,n,e,i);(o||s)&&(c={...c,...iE(l.data,t.options)}),"isRestoring"===e._optimisticResults&&(c.fetchStatus="idle")}let{error:d,errorUpdatedAt:f,status:h}=c;r=c.data;let m=!1;if(void 0!==e.placeholderData&&void 0===r&&"pending"===h){let t;if((null==o?void 0:o.isPlaceholderData)&&e.placeholderData===(null==a?void 0:a.placeholderData))t=o.data,m=!0;else{var y;t="function"==typeof e.placeholderData?e.placeholderData(null==(y=nh(this,tn))?void 0:y.state.data,nh(this,tn)):e.placeholderData}void 0!==t&&(h="success",r=nL(null==o?void 0:o.data,t,e),p=!0)}if(e.select&&void 0!==r&&!m)if(o&&r===(null==s?void 0:s.data)&&e.select===nh(this,te))r=nh(this,tr);else try{nv(this,te,e.select),r=e.select(r),r=nL(null==o?void 0:o.data,r,e),nv(this,tr,r),nv(this,tt,null)}catch(t){nv(this,tt,t)}nh(this,tt)&&(d=nh(this,tt),r=nh(this,tr),f=Date.now(),h="error");let g="fetching"===c.fetchStatus,b="pending"===h,w="error"===h,x=b&&g,O=void 0!==r,E={status:h,fetchStatus:c.fetchStatus,isPending:b,isSuccess:"success"===h,isError:w,isInitialLoading:x,isLoading:x,data:r,dataUpdatedAt:c.dataUpdatedAt,error:d,errorUpdatedAt:f,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdate
1Count:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:g,isRefetching:g&&!b,isLoadingError:w&&!O,isPaused:"paused"===c.fetchStatus,isPlaceholderData:p,isRefetchError:w&&O,isStale:iU(t,e),refetch:this.refetch,promise:nh(this,Y),isEnabled:!1!==n_(e.enabled,t)};if(this.options.experimental_prefetchInRender){let e=t=>{"error"===E.status?t.reject(E.error):void 0!==E.data&&t.resolve(E.data)},r=()=>{e(nv(this,Y,E.promise=nH()))},i=nh(this,Y);switch(i.status){case"pending":t.queryHash===n.queryHash&&e(i);break;case"fulfilled":("error"===E.status||E.data!==i.value)&&r();break;case"rejected":("error"!==E.status||E.error!==i.reason)&&r()}}return E}updateResult(){let t=nh(this,$),e=this.createResult(nh(this,J),this.options);if(nv(this,X,nh(this,J).state),nv(this,Z,this.options),void 0!==nh(this,X).data&&nv(this,tn,nh(this,J)),nM(e,t))return;nv(this,$,e);let r=()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!nh(this,ta).size)return!0;let n=new Set(null!=r?r:nh(this,ta));return this.options.throwOnError&&n.add("error"),Object.keys(nh(this,$)).some(e=>nh(this,$)[e]!==t[e]&&n.has(e))};il(this,ty,iG).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&il(this,td,iz).call(this)}constructor(t,e){super(),ic(this,tu),ic(this,tl),ic(this,tc),ic(this,tp),ic(this,td),ic(this,tf),ic(this,th),ic(this,tm),ic(this,ty),ny(this,K,{writable:!0,value:void 0}),ny(this,J,{writable:!0,value:void 0}),ny(this,G,{writable:!0,value:void 0}),ny(this,$,{writable:!0,value:void 0}),ny(this,X,{writable:!0,value:void 0}),ny(this,Z,{writable:!0,value:void 0}),ny(this,Y,{writable:!0,value:void 0}),ny(this,tt,{writable:!0,value:void 0}),ny(this,te,{writable:!0,value:void 0}),ny(this,tr,{writable:!0,value:void 0}),ny(this,tn,{writable:!0,value:void 0}),ny(this,ti,{writable:!0,value:void 0}),ny(this,to,{writable:!0,value:void 0}),ny(this,ts,{writable:!0,value:void 0}),ny(this,ta,{writable:!0,value:new Set}),this.options=e,nv(this,K,t),nv(this,tt,null),nv(this,Y,nH()),this.bindMethods(),this.setOptions(e)}});function iL(t,e){return!1!==n_(e.enabled,t)&&void 0===t.state.data&&("error"!==t.state.status||!1!==e.retryOnMount)||void 0!==t.state.data&&iN(t,e,e.refetchOnMount)}function iN(t,e,r){if(!1!==n_(e.enabled,t)&&"static"!==nk(e.staleTime,t)){let n="function"==typeof r?r(t):r;return"always"===n||!1!==n&&iU(t,e)}return!1}function iF(t,e,r,n){return(t!==e||!1===n_(n.enabled,t))&&(!r.suspense||"error"!==t.state.status)&&iU(t,r)}function iU(t,e){return!1!==n_(e.enabled,t)&&t.isStaleByTime(nk(e.staleTime,t))}function iQ(t){il(this,tm,iJ).call(this);let e=nh(this,J).fetch(this.options,t);return(null==t?void 0:t.throwOnError)||(e=e.catch(nx)),e}function iW(){il(this,tf,iV).call(this);let t=nk(this.options.staleTime,nh(this,J));if(nw||nh(this,$).isStale||!nO(t))return;let e=nE(nh(this,$).dataUpdatedAt,t);nv(this,ti,nb.setTimeout(()=>{nh(this,$).isStale||this.updateResult()},e+1))}function iH(){var t;return null!=(t="function"==typeof this.options.refetchInterval?this.options.refetchInterval(nh(this,J)):this.options.refetchInterval)&&t}function iB(t){il(this,th,iK).call(this),nv(this,ts,t),!nw&&!1!==n_(this.options.enabled,nh(this,J))&&nO(nh(this,ts))&&0!==nh(this,ts)&&nv(this,to,nb.setInterval(()=>{(this.options.refetchIntervalInBackground||im.isFocused())&&il(this,tu,iQ).call(this)},nh(this,ts)))}function iz(){il(this,tl,iW).call(this),il(this,tp,iB).call(this,il(this,tc,iH).call(this))}function iV(){nh(this,ti)&&(nb.clearTimeout(nh(this,ti)),nv(this,ti,void 0))}function iK(){nh(this,to)&&(nb.clearInterval(nh(this,to)),nv(this,to,void 0))}function iJ(){let t=nh(this,K).getQueryCache().build(nh(this,K),this.options);if(t===nh(this,J))return;let e=nh(this,J);nv(this,J,t),nv(this,G,t.state),this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))}function iG(t){id.batch(()=>{t.listeners&&this.listeners.forEach(t=>{t(nh(this,$))}),nh(this,K).getQueryCache().notify({query:nh(this,J),type:"observerResultsUpdated"})})}var i$=class extends iA{bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t){super.setOptions({...t,behavior:iR()})}getOptimisticResult(t){return t.behavior=iR(),super.getOptimisticResult(t)}
1fetchNextPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"backward"}}})}createResult(t,e){var r,n,i,o;let{state:s}=t,a=super.createResult(t,e),{isFetching:u,isRefetching:l,isError:c,isRefetchError:p}=a,d=null==(n=s.fetchMeta)||null==(r=n.fetchMore)?void 0:r.direction,f=c&&"forward"===d,h=u&&"forward"===d,m=c&&"backward"===d,y=u&&"backward"===d;return{...a,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:!!(i=s.data)&&null!=iM(e,i),hasPreviousPage:!!(o=s.data)&&!!e.getPreviousPageParam&&null!=iD(e,o),isFetchNextPageError:f,isFetchingNextPage:h,isFetchPreviousPageError:m,isFetchingPreviousPage:y,isRefetchError:p&&!f&&!m,isRefetching:l&&!h&&!y}}constructor(t,e){super(t,e)}},iX=tF.createContext(function(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}()),iZ=()=>tF.useContext(iX),iY=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&!e.isReset()&&(t.retryOnMount=!1)},i0=t=>{tF.useEffect(()=>{t.clearReset()},[t])},i1=t=>{let{result:e,errorResetBoundary:r,throwOnError:n,query:i,suspense:o}=t;return e.isError&&!r.isReset()&&!e.isFetching&&i&&(o&&void 0===e.data||nW(n,[e.error,i]))},i2=tF.createContext(!1),i7=()=>tF.useContext(i2);i2.Provider;var i3=(t,e)=>void 0===e.state.data,i5=t=>{if(t.suspense){let e=t=>"static"===t?t:Math.max(null!=t?t:1e3,1e3),r=t.staleTime;t.staleTime="function"==typeof r?function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return e(r(...n))}:e(r),"number"==typeof t.gcTime&&(t.gcTime=Math.max(t.gcTime,1e3))}},i4=(t,e)=>t.isLoading&&t.isFetching&&!e,i6=(t,e)=>(null==t?void 0:t.suspense)&&e.isPending,i8=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()});function i9(t,e,r){var n,i,o,s,a;let u=i7(),l=iZ(),c=nJ(r),p=c.defaultQueryOptions(t);null==(i=c.getDefaultOptions().queries)||null==(n=i._experimental_beforeQuery)||n.call(i,p),p._optimisticResults=u?"isRestoring":"optimistic",i5(p),iY(p,l),i0(l);let d=!c.getQueryCache().get(p.queryHash),[f]=tF.useState(()=>new e(c,p)),h=f.getOptimisticResult(p),m=!u&&!1!==t.subscribed;if(tF.useSyncExternalStore(tF.useCallback(t=>{let e=m?f.subscribe(id.batchCalls(t)):nx;return f.updateResult(),e},[f,m]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),tF.useEffect(()=>{f.setOptions(p)},[p,f]),i6(p,h))throw i8(p,f,l);if(i1({result:h,errorResetBoundary:l,throwOnError:p.throwOnError,query:c.getQueryCache().get(p.queryHash),suspense:p.suspense}))throw h.error;if(null==(s=c.getDefaultOptions().queries)||null==(o=s._experimental_afterQuery)||o.call(s,p,h),p.experimental_prefetchInRender&&!nw&&i4(h,u)){let t=d?i8(p,f,l):null==(a=c.getQueryCache().get(p.queryHash))?void 0:a.promise;null==t||t.catch(nx).finally(()=>{f.updateResult()})}return p.notifyOnChangeProps?h:f.trackResult(h)}var ot=(tv=new WeakMap,tg=new WeakMap,tb=new WeakMap,tw=new WeakMap,tx=new WeakSet,tO=new WeakSet,class extends ih{bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;let r=this.options;this.options=nh(this,tv).defaultMutationOptions(t),nM(this.options,r)||nh(this,tv).getMutationCache().notify({type:"observerOptionsUpdated",mutation:nh(this,tb),observer:this}),(null==r?void 0:r.mutationKey)&&this.options.mutationKey&&nC(r.mutationKey)!==nC(this.options.mutationKey)?this.reset():(null==(e=nh(this,tb))?void 0:e.state.status)==="pending"&&nh(this,tb).setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=nh(this,tb))||t.removeObserver(this)}}onMutationUpdate(t){il(this,tx,oe).call(this),il(this,tO,or).call(this,t)}getCurrentResult(){return nh(this,tg)}reset(){var t;null==(t=nh(this,tb))||t.removeObserver(this),nv(this,tb,void 0),il(this,tx,oe).call(this),il(this,tO,or).call(this)}mutate(t,e){var r;return nv(this,tw,e),null==(r=nh(this,tb))||r.removeObserver(this),nv(this,tb,nh(this,tv).getMutationCache().build(nh(this,tv),this.options)),nh(this,tb).addObserver(this),nh(this,tb).execute(t)}constructor(t,e){super(),ic(this,tx),ic(this,tO),ny(this,tv,{writable:!0,value:void 0}),ny(this,tg,{writable:!0,value:void 0}),ny(this,tb,{writable:!0,value:void 0}),ny(this,tw,{writable:!0,value:void 0}),nv(this,tv,t),this.setOptions(e),this.bindMethods(),il(this,tx,oe).call(this)}});function oe(){var t,e;let r=null!=(e=null==(t=nh(this,tb))?void 0:t.state)?e:ij();nv(this,tg,{...r,isPending:"pending"===r.status,isSuccess:"success"===r.status,isError:"error"===r.status,isIdle:"idle"===r.status,mutate:this.mutate,reset:this.reset})}function or(t){id.batch(()=>
1{if(nh(this,tw)&&this.hasListeners()){var e,r,n,i,o,s,a,u;let l=nh(this,tg).variables,c=nh(this,tg).context,p={client:nh(this,tv),meta:this.options.meta,mutationKey:this.options.mutationKey};(null==t?void 0:t.type)==="success"?(null==(e=(r=nh(this,tw)).onSuccess)||e.call(r,t.data,l,c,p),null==(n=(i=nh(this,tw)).onSettled)||n.call(i,t.data,null,l,c,p)):(null==t?void 0:t.type)==="error"&&(null==(o=(s=nh(this,tw)).onError)||o.call(s,t.error,l,c,p),null==(a=(u=nh(this,tw)).onSettled)||a.call(u,void 0,t.error,l,c,p))}this.listeners.forEach(t=>{t(nh(this,tg))})})}function on(t,e){let r=new Set(e);return t.filter(t=>!r.has(t))}var oi=(tE=new WeakMap,tk=new WeakMap,t_=new WeakMap,tS=new WeakMap,tP=new WeakMap,tj=new WeakMap,tC=new WeakMap,tT=new WeakMap,tI=new WeakMap,tR=new WeakSet,tM=new WeakSet,tD=new WeakSet,tq=new WeakSet,tA=new WeakSet,class extends ih{onSubscribe(){1===this.listeners.size&&nh(this,tP).forEach(t=>{t.subscribe(e=>{il(this,tq,ou).call(this,t,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,nh(this,tP).forEach(t=>{t.destroy()})}setQueries(t,e){nv(this,t_,t),nv(this,tS,e),id.batch(()=>{let t=nh(this,tP),e=il(this,tD,oa).call(this,nh(this,t_));nv(this,tI,e),e.forEach(t=>t.observer.setOptions(t.defaultedQueryOptions));let r=e.map(t=>t.observer),n=r.map(t=>t.getCurrentResult()),i=t.length!==r.length,o=r.some((e,r)=>e!==t[r]),s=i||o,a=!!s||n.some((t,e)=>{let r=nh(this,tk)[e];return!r||!nM(t,r)});(s||a)&&(s&&nv(this,tP,r),nv(this,tk,n),this.hasListeners()&&(s&&(on(t,r).forEach(t=>{t.destroy()}),on(r,t).forEach(t=>{t.subscribe(e=>{il(this,tq,ou).call(this,t,e)})})),il(this,tA,ol).call(this)))})}getCurrentResult(){return nh(this,tk)}getQueries(){return nh(this,tP).map(t=>t.getCurrentQuery())}getObservers(){return nh(this,tP)}getOptimisticResult(t,e){let r=il(this,tD,oa).call(this,t),n=r.map(t=>t.observer.getOptimisticResult(t.defaultedQueryOptions));return[n,t=>il(this,tM,os).call(this,null!=t?t:n,e),()=>il(this,tR,oo).call(this,n,r)]}constructor(t,e,r){super(),ic(this,tR),ic(this,tM),ic(this,tD),ic(this,tq),ic(this,tA),ny(this,tE,{writable:!0,value:void 0}),ny(this,tk,{writable:!0,value:void 0}),ny(this,t_,{writable:!0,value:void 0}),ny(this,tS,{writable:!0,value:void 0}),ny(this,tP,{writable:!0,value:void 0}),ny(this,tj,{writable:!0,value:void 0}),ny(this,tC,{writable:!0,value:void 0}),ny(this,tT,{writable:!0,value:void 0}),ny(this,tI,{writable:!0,value:[]}),nv(this,tE,t),nv(this,tS,r),nv(this,t_,[]),nv(this,tP,[]),nv(this,tk,[]),this.setQueries(e)}});function oo(t,e){return e.map((r,n)=>{let i=t[n];return r.defaultedQueryOptions.notifyOnChangeProps?i:r.observer.trackResult(i,t=>{e.forEach(e=>{e.observer.trackProp(t)})})})}function os(t,e){return e?(nh(this,tj)&&nh(this,tk)===nh(this,tT)&&e===nh(this,tC)||(nv(this,tC,e),nv(this,tT,nh(this,tk)),nv(this,tj,nR(nh(this,tj),e(t)))),nh(this,tj)):t}function oa(t){let e=new Map(nh(this,tP).map(t=>[t.options.queryHash,t])),r=[];return t.forEach(t=>{let n=nh(this,tE).defaultQueryOptions(t),i=e.get(n.queryHash);i?r.push({defaultedQueryOptions:n,observer:i}):r.push({defaultedQueryOptions:n,observer:new iA(nh(this,tE),n)})}),r}function ou(t,e){let r=nh(this,tP).indexOf(t);-1!==r&&(nv(this,tk,function(t,e,r){let n=t.slice(0);return n[e]=r,n}(nh(this,tk),r,e)),il(this,tA,ol).call(this))}function ol(){if(this.hasListeners()){var t;let e=nh(this,tj),r=il(this,tR,oo).call(this,nh(this,tk),nh(this,tI));e!==il(this,tM,os).call(this,r,null==(t=nh(this,tS))?void 0:t.combine)&&id.batch(()=>{this.listeners.forEach(t=>{t(nh(this,tk))})})}}function oc(t,e){let{queries:r,...n}=t,i=nJ(e),o=i7(),s=iZ(),a=tF.useMemo(()=>r.map(t=>{let e=i.defaultQueryOptions(t);return e._optimisticResults=o?"isRestoring":"optimistic",e}),[r,i,o]);a.forEach(t=>{i5(t),iY(t,s)}),i0(s);let[u]=tF.useState(()=>new oi(i,a,n)),[l,c,p]=u.getOptimisticResult(a,n.combine),d=!o&&!1!==n.subscribed;tF.useSyncExternalStore(tF.useCallback(t=>d?u.subscribe(id.batchCalls(t)):nx,[u,d]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),tF.useEffect(()=>{u.setQueries(a,n)},[a,n,u]);let f=l.some((t,e)=>i6(a[e],t))?l.flatMap((t,e)=>{let r=a[e];if(r){let e=new iA(i,r);if(i6(r,t))return i8(r,e,s);i4(t,o)&&i8(r,e,s)}return[]}):[];if(f.length>0)throw Promise.all(f);let h=l.find((t,e)=>{let r=a[e];return r&&i1({result:t,errorResetBoundary:s,throwOnError:r.throwOnError,query:i.getQueryCache().get(r.queryHash),suspense:r.suspense})});if(null==h?void 0:h.error)throw h.error;return c(p())}let op=["client","ssrContext","ssrState","abortOnUnmount"],od=null==(tL=tF.createContext)?void 0:tL.call(tF,null);var of=n3(ie(),1);function oh(t){let e=t instanceof r2?t:t[r7];return rj(t=>{let r=t.path,n=r.join("."),[i,o]=t.args;return(0,of.default)({queryKey:is(r,i,"query"),queryFn:()=>e.query(n,i,null==o?void 0:o.trpc)},o)})}var om=n3(ie(),1);function oy(t,e,r){var n,i;let o=t[0],s=null==(n=t[1])?void 0:n.input;return r&&(s=(0,om.default)((0,om.default)((0,om.default)({},null!=(i=s)?i:{}),r.pageParam?{cursor:r.pageParam}:{}),{},{direction:r.direction})),[o.join("."),s,null==e?void 0:e.trpc]}var ov=n3(n7({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(t,e){function r(t){function e(t){if(Object(t)!==t)return Promise.reject(TypeError(t+" is not an object."));var e=t.done;return Promise.resolve(t.value).then(function(t){return{value:t,done:e}})}return(r=function(t){this.s=t,this.n=t.next}).prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(t){var r=this.s.return;return void 0===r?Promise.resolve({value:t,done:!0}):e(r.apply(this.s,arguments))},throw:function(t){var r=this.s.return;return void 0===r?Promise.reject(t):e(r.apply(this.s,arguments))}},new r(t)}e.exports=function(t){var e,n,i,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,i=Symbol.iterator);o--;){if(n&&null!=(e=t[n]))return e.call(t);if(i&&null!=(e=t[i]))return new r(e.call(t));n="@@asyncIterator",i="@@iterator"}throw TypeError("Object is not async iterable")},e.exports.__esModule=!0,e.exports.default=e.exports}})(),1);function og(t){return{path:t.path.join(".")}}function ob(t){let e=og(t);return tF.useMemo(()=>e,[e])}async function ow(t,e,r){let n=e.getQueryCache().build(e,{queryKey:r});n.setState({data:[],status:"success"});let i=[];var o=!1,s=!1;try{for(var a,u,l=(0,ov.default)(t);o=!(u=await l.next()).done;o=!1){let t=u.value;i.push(t),n.setState({data:[...i]})}}catch(t){s=!0,a=t}finally{try{o&&null!=l.return&&await l.return()}finally{if(s)throw a}}return i}var ox=n3(ie(),1),oO=n3(ie());let oE=(t,e)=>new Proxy(t,{get:(t,r)=>(e(r),t[r])});function ok(t){var e,r,n;let i=null!=(e=null==t||null==(r=t.overrides)||null==(r=r.useMutation)?void 0:r.onSuccess)?e:t=>t.originalFn(),o=null!=(n=null==t?void 0:t.context)?n:od;function s(){let t=tF.useContext(o);if(!t)throw Error("Unable to find tRPC Context. Did you forget to wrap your Ap
1p inside `withTRPC` HoC?");return t}function a(t,e){var r;let{queryClient:n,ssrState:i}=s();return i&&"mounted"!==i&&(null==(r=n.getQueryCache().find({queryKey:t}))?void 0:r.state.status)==="error"?(0,oO.default)({retryOnMount:!1},e):e}let u={data:void 0,error:null,status:"idle"},l={data:void 0,error:null,status:"connecting"};return{Provider:t=>{var e;let{abortOnUnmount:r=!1,queryClient:n,ssrContext:i}=t,[s,a]=tF.useState(null!=(e=t.ssrState)&&e),u=t.client instanceof r2?t.client:t.client[r7],l=tF.useMemo(()=>(function(t){let{client:e,queryClient:r}=t,n=e instanceof r2?e:e[r7];return{infiniteQueryOptions:(t,e,r)=>{var i,o;let s=(null==(i=e[1])?void 0:i.input)===nU,a=async t=>{var i;let o=(0,ox.default)((0,ox.default)({},r),{},{trpc:(0,ox.default)((0,ox.default)({},null==r?void 0:r.trpc),(null==r||null==(i=r.trpc)?void 0:i.abortOnUnmount)?{signal:t.signal}:{signal:null})});return await n.query(...oy(e,o,{direction:t.direction,pageParam:t.pageParam}))};return Object.assign((0,ox.default)((0,ox.default)({},r),{},{initialData:null==r?void 0:r.initialData,queryKey:e,queryFn:s?nU:a,initialPageParam:null!=(o=null==r?void 0:r.initialCursor)?o:null}),{trpc:og({path:t})})},queryOptions:(t,e,i)=>{var o;let s=(null==(o=e[1])?void 0:o.input)===nU,a=async t=>{var o;let s=(0,ox.default)((0,ox.default)({},i),{},{trpc:(0,ox.default)((0,ox.default)({},null==i?void 0:i.trpc),(null==i||null==(o=i.trpc)?void 0:o.abortOnUnmount)?{signal:t.signal}:{signal:null})}),a=await n.query(...oy(e,s));return ro(a)?ow(a,r,e):a};return Object.assign((0,ox.default)((0,ox.default)({},i),{},{initialData:null==i?void 0:i.initialData,queryKey:e,queryFn:s?nU:a}),{trpc:og({path:t})})},fetchQuery:(t,e)=>r.fetchQuery((0,ox.default)((0,ox.default)({},e),{},{queryKey:t,queryFn:()=>n.query(...oy(t,e))})),fetchInfiniteQuery:(t,e)=>{var i;return r.fetchInfiniteQuery((0,ox.default)((0,ox.default)({},e),{},{queryKey:t,queryFn:r=>{let{pageParam:i,direction:o}=r;return n.query(...oy(t,e,{pageParam:i,direction:o}))},initialPageParam:null!=(i=null==e?void 0:e.initialCursor)?i:null}))},prefetchQuery:(t,e)=>r.prefetchQuery((0,ox.default)((0,ox.default)({},e),{},{queryKey:t,queryFn:()=>n.query(...oy(t,e))})),prefetchInfiniteQuery:(t,e)=>{var i;return r.prefetchInfiniteQuery((0,ox.default)((0,ox.default)({},e),{},{queryKey:t,queryFn:r=>{let{pageParam:i,direction:o}=r;return n.query(...oy(t,e,{pageParam:i,direction:o}))},initialPageParam:null!=(i=null==e?void 0:e.initialCursor)?i:null}))},ensureQueryData:(t,e)=>r.ensureQueryData((0,ox.default)((0,ox.default)({},e),{},{queryKey:t,queryFn:()=>n.query(...oy(t,e))})),invalidateQueries:(t,e,n)=>r.invalidateQueries((0,ox.default)((0,ox.default)({},e),{},{queryKey:t}),n),resetQueries:(t,e,n)=>r.resetQueries((0,ox.default)((0,ox.default)({},e),{},{queryKey:t}),n),refetchQueries:(t,e,n)=>r.refetchQueries((0,ox.default)((0,ox.default)({},e),{},{queryKey:t}),n),cancelQuery:(t,e)=>r.cancelQueries({queryKey:t},e),setQueryData:(t,e,n)=>r.setQueryData(t,e,n),setQueriesData:(t,e,n,i)=>r.setQueriesData((0,ox.default)((0,ox.default)({},e),{},{queryKey:t}),n,i),getQueryData:t=>r.getQueryData(t),setInfiniteQueryData:(t,e,n)=>r.setQueryData(t,e,n),getInfiniteQueryData:t=>r.getQueryData(t),setMutationDefaults:(e,i)=>{let o=e[0];return r.setMutationDefaults(e,"function"==typeof i?i({canonicalMutationFn:e=>n.mutation(...oy([o,{input:e}],t))}):i)},getMutationDefaults:t=>r.getMutationDefaults(t),isMutating:t=>r.isMutating((0,ox.default)((0,ox.default)({},t),{},{exact:!0}))}})({client:u,queryClient:n}),[u,n]),c=tF.useMemo(()=>(0,oO.default)({abortOnUnmount:r,queryClient:n,client:u,ssrContext:null!=i?i:null,ssrState:s},l),[r,u,l,n,i,s]);return tF.useEffect(()=>{a(t=>!!t&&"mounted")},[]),(0,nV.jsx)(o.Provider,{value:c,children:t.children})},createClient:r4,useContext:s,useUtils:s,useQuery:function(e,r,n){var i,o,u,l,c;let{abortOnUnmount:p,client:d,ssrState:f,queryClient:h,prefetchQuery:m}=s(),y=is(e,r,"query"),g=h.getQueryDefaults(y),b=r===nU;"undefined"!=typeof window||"prepass"!==f||(null==n||null==(i=n.trpc)?void 0:i.ssr)===!1||(null!=(o=null==n?void 0:n.enabled)?o:null==g?void 0:g.enabled)===!1||b||h.getQueryCache().find({queryKey:y})||m(y,n);let w=a(y,(0,oO.default)((0,oO.default)({},g),n)),x=null!=(u=null!=(l=null==n||null==(c=n.trpc)?void 0:c.abortOnUnmount)?l:null==t?void 0:t.abortOnUnmount)?u:p,O=i9((0,oO.default)((0,oO.default)({},w),{},{queryKey:y,queryFn:b?r:async t=>{let e=(0,oO.default)((0,oO.default)({},w),{},{trpc:(0,oO.default)((0,oO.default)({},null==w?void 0:w.trpc),x?{signal:t.signal}:{signal:null})}),r=await d.query(...oy(y,e));return ro(r)?ow(r,h,y):r}}),iA,h);return O.trpc=ob({path:e}),O},usePrefetchQuery:function(e,r,n){var i,o,a;let u=s(),l=is(e,r,"query"),c=r===nU,p=null!=(i=null!=(o=null==n||null==(a=n.trpc)?void 0:a.abortOnUnmount)?o:null==t?void 0:t.abortOnUnmount)?i:u.abortOnUnmount;!function(t,e){let r=nJ(void 0);r.getQueryState(t.queryKey)||r.prefetchQuery(t)}((0,oO.default)((0,oO.default)({},n),{},{queryKey:l,queryFn:c?r:t=>{let e={trpc:(0,oO.default)((0,oO.default)({},null==n?void 0:n.trpc),p?{signal:t.signal}:{})};return u.client.query(...oy(l,e))}}))},useSuspenseQuery:function(e,r,n){var i,o,a,u,l;let c=s(),p=is(e,r,"query"),d=null!=(i=null!=(o=null==n||null==(a=n.trpc)?void 0:a.abortOnUnmount)?o:null==t?void 0:t.abortOnUnmount)?i:c.abortOnUnmount,f=(u=(0,oO.default)((0,oO.default)({},n),{},{queryKey:p,queryFn:t=>{let e=(0,oO.default)((0,oO.default)({},n),{},{trpc:(0,oO.default)((0,oO.default)({},null==n?void 0:n.trpc),d?{signal:t.signal}:{signal:null})});return c.client.query(...oy(p,e))}}),l=c.queryClient,i9({...u,enabled:!0,suspense:!0,throwOnError:i3,placeholderData:void 0},iA,l));return f.trpc=ob({path:e}),[f.data,f]},useQueries:(t,e)=>{let{ssrState:r,queryClient:n,prefetchQuery:i,client:o}=s(),a=t(oh(o));if("undefined"==typeof window&&"prepass"===r)for(let t of a){var u;(null==(u=t.trpc)?void 0:u.ssr)===!1||n.getQueryCache().find({queryKey:t.queryKey})||i(t.queryKey,t)}return oc({queries:a.map(t=>(0,oO.default)((0,oO.default)({},t),{},{queryKey:t.queryKey}
1)),combine:null==e?void 0:e.combine},n)},useSuspenseQueries:t=>{var e;let{queryClient:r,client:n}=s(),i=(e={queries:t(oh(n)).map(t=>(0,oO.default)((0,oO.default)({},t),{},{queryFn:t.queryFn,queryKey:t.queryKey}))},oc({...e,queries:e.queries.map(t=>({...t,suspense:!0,throwOnError:i3,enabled:!0,placeholderData:void 0}))},r));return[i.map(t=>t.data),i]},useMutation:function(t,e){let{client:r,queryClient:n}=s(),o=ia(t),a=n.defaultMutationOptions(n.getMutationDefaults(o)),u=function(t,e){let r=nJ(e),[n]=tF.useState(()=>new ot(r,t));tF.useEffect(()=>{n.setOptions(t)},[n,t]);let i=tF.useSyncExternalStore(tF.useCallback(t=>n.subscribe(id.batchCalls(t)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=tF.useCallback((t,e)=>{n.mutate(t,e).catch(nx)},[n]);if(i.error&&nW(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}((0,oO.default)((0,oO.default)({},e),{},{mutationKey:o,mutationFn:n=>r.mutation(...oy([t,{input:n}],e)),onSuccess(){for(var t,r,o=arguments.length,s=Array(o),u=0;u<o;u++)s[u]=arguments[u];return i({originalFn:()=>{var t,r,n;return null!=(t=null==e||null==(r=e.onSuccess)?void 0:r.call(e,...s))?t:null==a||null==(n=a.onSuccess)?void 0:n.call(a,...s)},queryClient:n,meta:null!=(t=null!=(r=null==e?void 0:e.meta)?r:null==a?void 0:a.meta)?t:{}})}}),n);return u.trpc=ob({path:t}),u},useSubscription:function(t,e,r){var n;let i=null!=(n=null==r?void 0:r.enabled)?n:e!==nU,o=nC(is(t,e,"any")),{client:a}=s(),c=tF.useRef(r);tF.useEffect(()=>{c.current=r});let[p]=tF.useState(new Set([])),d=tF.useCallback(t=>{p.add(t)},[p]),f=tF.useRef(null),h=tF.useCallback(t=>{let e=y.current,r=y.current=t(e),n=!1;for(let t of p)if(e[t]!==r[t]){n=!0;break}n&&b(oE(r,d))},[d,p]),m=tF.useCallback(()=>{var r;if(null==(r=f.current)||r.unsubscribe(),!i)return void h(()=>(0,oO.default)((0,oO.default)({},u),{},{reset:m}));h(()=>(0,oO.default)((0,oO.default)({},l),{},{reset:m})),f.current=a.subscription(t.join("."),null!=e?e:void 0,{onStarted:()=>{var t,e;null==(t=(e=c.current).onStarted)||t.call(e),h(t=>(0,oO.default)((0,oO.default)({},t),{},{status:"pending",error:null}))},onData:t=>{var e,r;null==(e=(r=c.current).onData)||e.call(r,t),h(e=>(0,oO.default)((0,oO.default)({},e),{},{status:"pending",data:t,error:null}))},onError:t=>{var e,r;null==(e=(r=c.current).onError)||e.call(r,t),h(e=>(0,oO.default)((0,oO.default)({},e),{},{status:"error",error:t}))},onConnectionStateChange:t=>{h(e=>{switch(t.state){case"idle":return(0,oO.default)((0,oO.default)({},e),{},{status:t.state,error:null,data:void 0});case"connecting":return(0,oO.default)((0,oO.default)({},e),{},{error:t.error,status:t.state});case"pending":return e}})},onComplete:()=>{var t,e;null==(t=(e=c.current).onComplete)||t.call(e),h(t=>(0,oO.default)((0,oO.default)({},t),{},{status:"idle",error:null,data:void 0}))}})},[a,o,i,h]);tF.useEffect(()=>(m(),()=>{var t;null==(t=f.current)||t.unsubscribe()}),[m]);let y=tF.useRef(i?(0,oO.default)((0,oO.default)({},l),{},{reset:m}):(0,oO.default)((0,oO.default)({},u),{},{reset:m})),[g,b]=tF.useState(oE(y.current,d));return g},useInfiniteQuery:function(t,e,r){var n,i,o,u,l;let{client:c,ssrState:p,prefetchInfiniteQuery:d,queryClient:f,abortOnUnmount:h}=s(),m=is(t,e,"infinite"),y=f.getQueryDefaults(m),g=e===nU;"undefined"!=typeof window||"prepass"!==p||(null==r||null==(n=r.trpc)?void 0:n.ssr)===!1||(null!=(i=null==r?void 0:r.enabled)?i:null==y?void 0:y.enabled)===!1||g||f.getQueryCache().find({queryKey:m})||d(m,(0,oO.default)((0,oO.default)({},y),r));let b=a(m,(0,oO.default)((0,oO.default)({},y),r)),w=null!=(o=null==r||null==(u=r.trpc)?void 0:u.abortOnUnmount)?o:h,x=i9((0,oO.default)((0,oO.default)({},b),{},{initialPageParam:null!=(l=r.initialCursor)?l:null,persister:r.persister,queryKey:m,queryFn:g?e:t=>{var e;let n=(0,oO.default)((0,oO.default)({},b),{},{trpc:(0,oO.default)((0,oO.default)({},null==b?void 0:b.trpc),w?{signal:t.signal}:{signal:null})});return c.query(...oy(m,n,{pageParam:null!=(e=t.pageParam)?e:r.initialCursor,direction:t.direction}))}}),i$,f);return x.trpc=ob({path:t}),x},usePrefetchInfiniteQuery:function(t,e,r){var n,i,o;let u=s(),l=is(t,e,"infinite"),c=u.queryClient.getQueryDefaults(l),p=e===nU,d=a(l,(0,oO.default)((0,oO.default)({},c),r)),f=null!=(n=null==r||null==(i=r.trpc)?void 0:i.abortOnUnmount)?n:u.abortOnUnmount;!function(t,e){let r=nJ(void 0);r.getQueryState(t.queryKey)||r.prefetchInfiniteQuery(t)}((0,oO.default)((0,oO.default)({},r),{},{initialPageParam:null!=(o=r.initialCursor)?o:null,queryKey:l,queryFn:p?e:t=>{var e;let n=(0,oO.default)((0,oO.default)({},d),{},{trpc:(0,oO.default)((0,oO.default)({},null==d?void 0:d.trpc),f?{signal:t.signal}:{})});return u.client.query(...oy(l,n,{pageParam:null!=(e=t.pageParam)?e:r.initialCursor,direction:t.direction}))}}))},useSuspenseInfiniteQuery:function(t,e,r){var n,i,o,u,l;let c=s(),p=is(t,e,"infinite"),d=c.queryClient.getQueryDefaults(p),f=a(p,(0,oO.default)((0,oO.default)({},d),r)),h=null!=(n=null==r||null==(i=r.trpc)?void 0:i.abortOnUnmount)?n:c.abortOnUnmount,m=(u=(0,oO.default)((0,oO.default)({},r),{},{initialPageParam:null!=(o=r.initialCursor)?o:null,queryKey:p,queryFn:t=>{var e;let n=(0,oO.default)((0,oO.default)({},f),{},{trpc:(0,oO.default)((0,oO.default)({},null==f?void 0:f.trpc),h?{signal:t.signal}:{})});return c.client.query(...oy(p,n,{pageParam:null!=(e=t.pageParam)?e:r.initialCursor,direction:t.direction}))}}),l=c.queryClient,i9({...u,enabled:!0,suspense:!0,throwOnError:i3},i$,l));return m.trpc=ob({path:t}),[m.data,m]}}}var o_=((t,e,r)=>(r=null!=t?ne(no(t)):{},((t,e,r,n)=>{if(e&&"object"==typeof e||"function"==typeof e)for(var i,o=ni(e),s=0,a=o.length;s<a;s++)i=o[s],ns.call(t,i)||i===r||nr(t,i,{get:(t=>e[t]).bind(null,i),enumerable:!(n=nn(e,i))||n.enumerable});return t})(!e&&t&&t.__esModule?r:nr(r,"default",{value:t,enumerable:!0}),t)))(nd());class oS{set(t,e){this.keyToValue.set(t,e),this.valueToKey.set(e,t)}getByKey(t){return this.keyToValue.get(t)}getByValue(t){return this.valueToKey.get(t)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}constructor(){this.keyToValue=new Map,this.valueToKey=new Map}}class oP{register(t,e){this.kv.getByValue(t)||(e||(e=this.generateIdentifier(t)),this.kv.set(e,t))}clear(){this.kv.clear()}getIdentifier(t){return this.kv.getByValue(t)}getValue(t){return this.kv.getByKey(t)}constructor(t){this.generateIdentifier=t,this.kv=new oS}}class oj extends oP{register(t,e){"object"==typeof e?(e.allowProps&&this.classToAllowedProps.set(t,e.allowProps),super.register(t,e.identifier)):super.register(t,e)}getAllowedProps(t){return this.classToAllowedProps.get(t)}constructor(){super(t=>
1t.name),this.classToAllowedProps=new Map}}function oC(t,e){Object.entries(t).forEach(t=>{let[r,n]=t;return e(n,r)})}function oT(t,e){return -1!==t.indexOf(e)}function oI(t,e){for(let r=0;r<t.length;r++){let n=t[r];if(e(n))return n}}class oR{register(t){this.transfomers[t.name]=t}findApplicable(t){return function(t,e){let r=function(t){if("values"in Object)return Object.values(t);let e=[];for(let r in t)t.hasOwnProperty(r)&&e.push(t[r]);return e}(t);if("find"in r)return r.find(e);for(let t=0;t<r.length;t++){let n=r[t];if(e(n))return n}}(this.transfomers,e=>e.isApplicable(t))}findByName(t){return this.transfomers[t]}constructor(){this.transfomers={}}}let oM=t=>void 0===t,oD=t=>"object"==typeof t&&null!==t&&t!==Object.prototype&&(null===Object.getPrototypeOf(t)||Object.getPrototypeOf(t)===Object.prototype),oq=t=>oD(t)&&0===Object.keys(t).length,oA=t=>Array.isArray(t),oL=t=>t instanceof Map,oN=t=>t instanceof Set,oF=t=>"Symbol"===Object.prototype.toString.call(t).slice(8,-1),oU=t=>"number"==typeof t&&isNaN(t),oQ=t=>t.replace(/\./g,"\\."),oW=t=>t.map(String).map(oQ).join("."),oH=t=>{let e=[],r="";for(let n=0;n<t.length;n++){let i=t.charAt(n);if("\\"===i&&"."===t.charAt(n+1)){r+=".",n++;continue}if("."===i){e.push(r),r="";
1continue}r+=i}let n=r;return e.push(n),e};function oB(t,e,r,n){return{isApplicable:t,annotation:e,transform:r,untransform:n}}let oz=[oB(oM,"undefined",()=>null,()=>void 0),oB(t=>"bigint"==typeof t,"bigint",t=>t.toString(),t=>"undefined"!=typeof BigInt?BigInt(t):(console.error("Please add a BigInt polyfill."),t)),oB(t=>t instanceof Date&&!isNaN(t.valueOf()),"Date",t=>t.toISOString(),t=>new Date(t)),oB(t=>t instanceof Error,"Error",(t,e)=>{let r={name:t.name,message:t.message};return e.allowedErrorProps.forEach(e=>{r[e]=t[e]}),r},(t,e)=>{let r=Error(t.message);return r.name=t.name,r.stack=t.stack,e.allowedErrorProps.forEach(e=>{r[e]=t[e]}),r}),oB(t=>t instanceof RegExp,"regexp",t=>""+t,t=>new RegExp(t.slice(1,t.lastIndexOf("/")),t.slice(t.lastIndexOf("/")+1))),oB(oN,"set",t=>[...t.values()],t=>new Set(t)),oB(oL,"map",t=>[...t.entries()],t=>new Map(t)),oB(t=>oU(t)||(t=>t===1/0||t===-1/0)(t),"number",t=>oU(t)?"NaN":t>0?"Infinity":"-Infinity",Number),oB(t=>0===t&&1/t==-1/0,"number",()=>"-0",Number),oB(t=>t instanceof URL,"URL",t=>t.toString(),t=>new URL(t))];function oV(t,e,r,n){return{isApplicable:t,annotation:e,transform:r,untransform:n}}let oK=oV((t,e)=>!!oF(t)&&!!e.symbolRegistry.getIdentifier(t),(t,e)=>["symbol",e.symbolRegistry.getIdentifier(t)],t=>t.description,(t,e,r)=>{let n=r.symbolRegistry.getValue(e[1]);if(!n)throw Error("Trying to deserialize unknown symbol");return n}),oJ=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((t,e)=>(t[e.name]=e,t),{}),oG=oV(t=>ArrayBuffer.isView(t)&&!(t instanceof DataView),t=>["typed-array",t.constructor.name],t=>[...t],(t,e)=>{let r=oJ[e[1]];if(!r)throw Error("Trying to deserialize unknown typed array");return new r(t)});function o$(t,e){return null!=t&&!!t.constructor&&!!e.classRegistry.getIdentifier(t.constructor)}let oX=oV(o$,(t,e)=>["class",e.classRegistry.getIdentifier(t.constructor)],(t,e)=>{let r=e.classRegistry.getAllowedProps(t.constructor);if(!r)return{...t};let n={};return r.forEach(e=>{n[e]=t[e]}),n},(t,e,r)=>{let n=r.classRegistry.getValue(e[1]);if(!n)throw Error("Trying to deserialize unknown class '".concat(e[1],"' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564"));return Object.assign(Object.create(n.prototype),t)}),oZ=oV((t,e)=>!!e.customTransformerRegistry.findApplicable(t),(t,e)=>["custom",e.customTransformerRegistry.findApplicable(t).name],(t,e)=>e.customTransformerRegistry.findApplicable(t).serialize(t),(t,e,r)=>{let n=r.customTransformerRegistry.findByName(e[1]);if(!n)throw Error("Trying to deserialize unknown custom value");return n.deserialize(t)}),oY=[oX,oK,oZ,oG],o0=(t,e)=>{let r=oI(oY,r=>r.isApplicable(t,e));if(r)return{value:r.transform(t,e),type:r.annotation(t,e)};let n=oI(oz,r=>r.isApplicable(t,e));if(n)return{value:n.transform(t,e),type:n.annotation}},o1={};oz.forEach(t=>{o1[t.annotation]=t});let o2=(t,e)=>{if(e>t.size)throw Error("index out of bounds");let r=t.keys();for(;e>0;)r.next(),e--;return r.next().value};function o7(t){if(oT(t,"__proto__"))throw Error("__proto__ is not allowed as a property");if(oT(t,"prototype"))throw Error("prototype is not allowed as a property");if(oT(t,"constructor"))throw Error("constructor is not allowed as a property")}let o3=(t,e,r)=>{if(o7(e),0===e.length)return r(t);let n=t;for(let t=0;t<e.length-1;t++){let r=e[t];if(oA(n))n=n[+r];else if(oD(n))n=n[r];else if(oN(n))n=o2(n,+r);else if(oL(n)){if(t===e.length-2)break;let i=+r,o=0==+e[++t]?"key":"value",s=o2(n,i);switch(o){case"key":n=s;break;case"value":n=n.get(s)}}}let i=e[e.length-1];if(oA(n)?n[+i]=r(n[+i]):oD(n)&&(n[i]=r(n[i])),oN(n)){let t=o2(n,+i),e=r(t);t!==e&&(n.delete(t),n.add(e))}if(oL(n)){let t=o2(n,+e[e.length-2]);switch(0==+i?"key":"value"){case"key":{let e=r(t);n.set(e,n.get(t)),e!==t&&n.delete(t);break}case"value":n.set(t,r(n.get(t)))}}return t},o5=function(t,e,r,n){var i,o;let s,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:new Map,c="boolean"==typeof(i=t)||null===i||oM(i)||"number"==typeof(s=i)&&!isNaN(s)||"string"==typeof i||oF(i);if(!c){let r=e.get(t);r?r.push(a):e.set(t,[a]);let i=l.get(t);if(i)return n?{transformedValue:null}:i}if(!(oD(t)||oA(t)||oL(t)||oN(t)||o$(t,r))){let e=o0(t,r),n=e?{transformedValue:e.value,annotations:[e.type]}:{transformedValue:t};return c||l.set(t,n),n}if(oT(u,t))return{transformedValue:null};let p=o0(t,r),d=null!=(o=null==p?void 0:p.value)?o:t,f=oA(d)?[]:{},h={};oC(d,(i,o)=>
1{if("__proto__"===o||"constructor"===o||"prototype"===o)throw Error("Detected property ".concat(o,". This is a prototype pollution risk, please remove it from your object."));let s=o5(i,e,r,n,[...a,o],[...u,t],l);f[o]=s.transformedValue,oA(s.annotations)?h[o]=s.annotations:oD(s.annotations)&&oC(s.annotations,(t,e)=>{h[oQ(o)+"."+e]=t})});let m=oq(h)?{transformedValue:f,annotations:p?[p.type]:void 0}:{transformedValue:f,annotations:p?[p.type,h]:h};return c||l.set(t,m),m};function o4(t){return Object.prototype.toString.call(t).slice(8,-1)}function o6(t){return"Array"===o4(t)}r=function(t){return"Null"===o4(t)},n=function(t){return"Undefined"===o4(t)};class o8{serialize(t){let e=new Map,r=o5(t,e,this,this.dedupe),n={json:r.transformedValue};r.annotations&&(n.meta={...n.meta,values:r.annotations});let i=function(t,e){let r,n={};return(t.forEach(t=>{if(t.length<=1)return;e||(t=t.map(t=>t.map(String)).sort((t,e)=>t.length-e.length));let[i,...o]=t;0===i.length?r=o.map(oW):n[oW(i)]=o.map(oW)}),r)?oq(n)?[r]:[r,n]:oq(n)?void 0:n}(e,this.dedupe);return i&&(n.meta={...n.meta,referentialEqualities:i}),n}deserialize(t){var e,r,n;let{json:i,meta:o}=t,s=function t(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o6(e)?e.map(e=>t(e,r)):!function(t){if("Object"!==o4(t))return!1;let e=Object.getPrototypeOf(t);return!!e&&e.constructor===Object&&e===Object.prototype}(e)?e:[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce((n,i)=>{if(o6(r.props)&&!r.props.includes(i))return n;let o=t(e[i],r);var s=r.nonenumerable;let a=({}).propertyIsEnumerable.call(e,i)?"enumerable":"nonenumerable";return"enumerable"===a&&(n[i]=o),s&&"nonenumerable"===a&&Object.defineProperty(n,i,{value:o,enumerable:!1,writable:!0,configurable:!0}),n},{})}(i);return(null==o?void 0:o.values)&&(e=s,r=o.values,n=this,function t(e,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return;if(!oA(e))return void oC(e,(e,i)=>t(e,r,[...n,...oH(i)]));let[i,o]=e;o&&oC(o,(e,i)=>{t(e,r,[...n,...oH(i)])}),r(i,n)}(r,(t,r)=>{e=o3(e,r,e=>((t,e,r)=>{if(oA(e))switch(e[0]){case"symbol":return oK.untransform(t,e,r);case"class":return oX.untransform(t,e,r);case"custom":return oZ.untransform(t,e,r);case"typed-array":return oG.untransform(t,e,r);default:throw Error("Unknown transformation: "+e)}{let n=o1[e];if(!n)throw Error("Unknown transformation: "+e);return n.untransform(t,r)}})(e,t,n))}),s=e),(null==o?void 0:o.referentialEqualities)&&(s=function(t,e){function r(e,r){let n=((t,e)=>{o7(e);for(let r=0;r<e.length;r++){let n=e[r];if(oN(t))t=o2(t,+n);else if(oL(t)){let i=+n,o=0==+e[++r]?"key":"value",s=o2(t,i);switch(o){case"key":t=s;break;case"value":t=t.get(s)}}else t=t[n]}return t})(t,oH(r));e.map(oH).forEach(e=>{t=o3(t,e,()=>n)})}if(oA(e)){let[n,i]=e;n.forEach(e=>{t=o3(t,oH(e),()=>t)}),i&&oC(i,r)}else oC(e,r);return t}(s,o.referentialEqualities)),s}stringify(t){return JSON.stringify(this.serialize(t))}parse(t){return this.deserialize(JSON.parse(t))}registerClass(t,e){this.classRegistry.register(t,e)}registerSymbol(t,e){this.symbolRegistry.register(t,e)}registerCustom(t,e){this.customTransformerRegistry.register({name:e,...t})}allowErrorProps(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];this.allowedErrorProps.push(...e)}constructor({dedupe:t=!1}={}){this.classRegistry=new oj,this.symbolRegistry=new oP(t=>{var e;return null!=(e=t.description)?e:""}),this.customTransformerRegistry=new oR,this.allowedErrorProps=[],this.dedupe=t}}o8.defaultInstance=new o8,o8.serialize=o8.defaultInstance.serialize.bind(o8.defaultInstance),o8.deserialize=o8.defaultInstance.deserialize.bind(o8.defaultInstance),o8.stringify=o8.defaultInstance.stringify.bind(o8.defaultInstance),o8.parse=o8.defaultInstance.parse.bind(o8.defaultInstance),o8.registerClass=o8.defaultInstance.registerClass.bind(o8.defaultInstance),o8.registerSymbol=o8.defaultInstance.registerSymbol.bind(o8.defaultInstance),o8.registerCustom=o8.defaultInstance.registerCustom.bind(o8.defaultInstance),o8.allowErrorProps=o8.defaultInstance.allowErrorProps.bind(o8.defaultInstance),o8.serialize,o8.deserialize,o8.stringify,o8.parse,o8.registerClass,o8.registerCustom,o8.registerSymbol,o8.allowErrorProps;let o9=function(t){let e=ok(t),r=function(t){let{config:e}=t,r=rl(t.transformer);return n=>{var i,o;let s=ok(t),a=i=>{var o,a;let[u]=(0,tF.useState)(()=>{var r;if(i.trpc)return i.trpc;let n=e({}),o=null!=(r=n.queryClient)?r:new iq(n.queryClientConfig),a=s.createClient(n);return{abortOnUnmount:n.abortOnUnmount,queryClient:o,trpcClient:a,ssrState:!!t.ssr&&"mounting",ssrContext:null}}),{queryClient:l,trpcClient:c,ssrState:p,ssrContext:d}=u,f=null==(o=i.pageProps)?void 0:o.trpcState,h=tF.default.useMemo(()=>f?r.input.deserialize(f):f,[f]);return(0,nV.jsx)(s.Provider,{abortOnUnmount:null!=(a=u.abortOnUnmount)&&a,client:c,queryClient:l,ssrState:p,ssrContext:d,children:(0,nV.jsx)(nG,{client:l,children:(0,nV.jsx)(n$,{state:h,children:(0,nV.jsx)(n,(0,o_.default)({},i))})})})};t.ssr?t.ssrPrepass({parent:t,AppOrPage:n,WithTRPC:a}):n.getInitialProps&&(a.getInitialProps=async t=>{var e;let r,i=!!t.Component,o={},s=await n.getInitialProps(t),a=i?null!=(e=s.pageProps)?e:{}:s;return r=o=(0,o_.default)((0,o_.default)({},a),o),i?{pageProps:r}:r});let u=null!=(i=null!=(o=n.displayName)?o:n.name)?i:"Component";return a.displayName="withTRPC(".concat(u,")"),a}}(t),n=rj(t=>{var r;let{path:n,args:i}=t,o=[...n],s=o.pop();if("useMutation"===s)return e[s](o,...i);if("_def"===s)return{path:o};let[a,...u]=i,l=null!=(r=u[0])?r:{};return e[s](o,a,l)});return rC(t=>"useContext"===t||"useUtils"===t?()=>{let t=e.useUtils();return(0,tF.useMemo)(()=>(function(t){let e=r5(t.client),r=rj(e=>{let r=[...e.path],n=r.pop(),i=[...e.args],o=i.shift(),s=is(r,o,(t=>{switch(t){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invali
1date":case"refetch":case"reset":return"any"}})(n));return({infiniteQueryOptions:()=>t.infiniteQueryOptions(r,s,i[0]),queryOptions:()=>t.queryOptions(r,s,...i),fetch:()=>t.fetchQuery(s,...i),fetchInfinite:()=>t.fetchInfiniteQuery(s,i[0]),prefetch:()=>t.prefetchQuery(s,...i),prefetchInfinite:()=>t.prefetchInfiniteQuery(s,i[0]),ensureData:()=>t.ensureQueryData(s,...i),invalidate:()=>t.invalidateQueries(s,...i),reset:()=>t.resetQueries(s,...i),refetch:()=>t.refetchQueries(s,...i),cancel:()=>t.cancelQuery(s,...i),setData:()=>{t.setQueryData(s,i[0],i[1])},setQueriesData:()=>t.setQueriesData(s,i[0],i[1],i[2]),setInfiniteData:()=>{t.setInfiniteQueryData(s,i[0],i[1])},getData:()=>t.getQueryData(s),getInfiniteData:()=>t.getInfiniteQueryData(s),setMutationDefaults:()=>t.setMutationDefaults(ia(r),o),getMutationDefaults:()=>t.getMutationDefaults(ia(r)),isMutating:()=>t.isMutating({mutationKey:ia(r)})})[n]()});return rC(n=>"client"===n?e:op.includes(n)?t[n]:r[n])})(t),[t])}:"useQueries"===t?e.useQueries:"useSuspenseQueries"===t?e.useSuspenseQueries:"withTRPC"===t?r:n[t])}({config:()=>({links:[function(t){let e={url:t.url.toString(),fetch:t.fetch,transformer:rl(t.transformer),methodOverride:t.methodOverride};return()=>r=>{let{op:n}=r;return rt(r=>{let i,{path:o,input:s,type:a}=n;if("subscription"===a)throw Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");return(t=>{if("input"in t){var e;let{input:r}=t;if(r instanceof FormData){if("mutation"!==t.type&&"POST"!==t.methodOverride)throw Error("FormData is only supported for mutations");return rv((0,rL.default)((0,rL.default)({},t),{},{contentTypeHeader:void 0,getUrl:rf,getBody:()=>r}))}if((e=r)instanceof Uint8Array||e instanceof Blob){if("mutation"!==t.type&&"POST"!==t.methodOverride)throw Error("Octet type input is only supported for mutations");return rv((0,rL.default)((0,rL.default)({},t),{},{contentTypeHeader:"application/octet-stream",getUrl:rf,getBody:()=>r}))}}return rv((0,rc.default)((0,rc.default)({},t),{},{contentTypeHeader:"application/json",getUrl:rf,getBody:rh}))})((0,rL.default)((0,rL.default)({},e),{},{type:a,path:o,input:s,signal:n.signal,headers:()=>t.headers?"function"==typeof t.headers?t.headers({op:n}):t.headers:{}})).then(t=>{i=t.meta;let n=function(t,e){let r;try{r=function(t,e){if("error"in t){let r=e.deserialize(t.error);return{ok:!1,error:(0,rq.default)((0,rq.default)({},t),{},{error:r})}}return{ok:!0,result:(0,rq.default)((0,rq.default)({},t.result),(!t.result.type||"data"===t.result.type)&&{type:"data",data:e.deserialize(t.result.data)})}}(t,e)}catch(t){throw new rA}if(!r.ok&&(!rn(r.error.error)||"number"!=typeof r.error.error.code)||r.ok&&!rn(r.result))throw new rA;return r}(t.json,e.transformer.output);if(!n.ok)return void r.error(ru.from(n.error,{meta:i}));r.next({context:t.meta,result:n.result}),r.complete()}).catch(t=>{r.error(ru.from(t,{meta:i}))}),()=>{}})}}({url:"".concat("","/api/trpc"),transformer:o8})]}),ssr:!1,transformer:o8})}]);

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.