(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[544],{6200:function(r,t,n){"use strict";var e=this&&this.__assign||function(){return(e=Object.assign||function(r){for(var t,n=1,e=arguments.length;n0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]t.indexOf(e)&&(n[e]=r[e]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,e=Object.getOwnPropertySymbols(r);ot.indexOf(e[o])&&Object.prototype.propertyIsEnumerable.call(r,e[o])&&(n[e[o]]=r[e[o]]);return n};Object.defineProperty(t,"__esModule",{value:!0}),t.withSuperJSONPage=t.deserializeProps=t.withSuperJSONProps=void 0;var u=n(8679),s=n(67294),c=n(84419);function f(r){var t=r._superjson,n=a(r,["_superjson"]);return c.default.deserialize({json:n,meta:t})}t.withSuperJSONProps=function(r,t){return void 0===t&&(t=[]),function(){for(var n=[],a=0;a0)&&!(e=i.next()).done;)a.push(e.value)}catch(r){o={error:r}}finally{try{e&&!e.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function c(r,t){Object.entries(r).forEach(function(r){var n=s(r,2),e=n[0];return t(n[1],e)})}function f(r,t){return -1!==r.indexOf(t)}function l(r,t){for(var n=0;n0)&&!(e=i.next()).done;)a.push(e.value)}catch(r){o={error:r}}finally{try{e&&!e.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},I=function(r,t){for(var n=0,e=t.length,o=r.length;n0?"Infinity":"-Infinity"},Number),_(function(r){return 0===r&&1/r==-1/0},"number",function(){return"-0"},Number),_(function(r){return r instanceof URL},"URL",function(r){return r.toString()},function(r){return new URL(r)})];function z(r,t,n,e){return{isApplicable:r,annotation:t,transform:n,untransform:e}}var T=z(function(r,t){return!!b(r)&&!!t.symbolRegistry.getIdentifier(r)},function(r,t){return["symbol",t.symbolRegistry.getIdentifier(r)]},function(r){return r.description},function(r,t,n){var e=n.symbolRegistry.getValue(t[1]);if(!e)throw Error("Trying to deserialize unknown symbol");return e}),R=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(r,t){return r[t.name]=t,r},{}),x=z(function(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)},function(r){return["typed-array",r.constructor.name]},function(r){return I([],k(r))},function(r,t){var n=R[t[1]];if(!n)throw Error("Trying to deserialize unknown typed array");return new n(r)});function N(r,t){return null!=r&&!!r.constructor&&!!t.classRegistry.getIdentifier(r.constructor)}var V=z(N,function(r,t){return["class",t.classRegistry.getIdentifier(r.constructor)]},function(r,t){var n=t.classRegistry.getAllowedProps(r.constructor);if(!n)return S({},r);var e={};return n.forEach(function(t){e[t]=r[t]}),e},function(r,t,n){var e=n.classRegistry.getValue(t[1]);if(!e)throw Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(e.prototype),r)}),C=z(function(r,t){return!!t.customTransformerRegistry.findApplicable(r)},function(r,t){return["custom",t.customTransformerRegistry.findApplicable(r).name]},function(r,t){return t.customTransformerRegistry.findApplicable(r).serialize(r)},function(r,t,n){var e=n.customTransformerRegistry.findByName(t[1]);if(!e)throw Error("Trying to deserialize unknown custom value");return e.deserialize(r)}),B=[V,T,C,x],U=function(r,t){var n=l(B,function(n){return n.isApplicable(r,t)});if(n)return{value:n.transform(r,t),type:n.annotation(r,t)};var e=l(A,function(n){return n.isApplicable(r,t)});if(e)return{value:e.transform(r,t),type:e.annotation}},M={};A.forEach(function(r){M[r.annotation]=r});var J=function(r,t,n){if(d(t))switch(t[0]){case"symbol":return T.untransform(r,t,n);case"class":return V.untransform(r,t,n);case"custom":return C.untransform(r,t,n);case"typed-array":return x.untransform(r,t,n);default:throw Error("Unknown transformation: "+t)}else{var e=M[t];if(!e)throw Error("Unknown transformation: "+t);return e.untransform(r,n)}},K=function(r,t){for(var n=r.keys();t>0;)n.next(),t--;return n.next().value};function D(r){if(f(r,"__proto__"))throw Error("__proto__ is not allowed as a property");if(f(r,"prototype"))throw Error("prototype is not allowed as a property");if(f(r,"constructor"))throw Error("constructor is not allowed as a property")}var q=function(r,t){D(t);for(var n=0;n0)&&!(e=i.next()).done;)a.push(e.value)}catch(r){o={error:r}}finally{try{e&&!e.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},G=function(r,t){for(var n=0,e=t.length,o=r.length;n0)&&!(e=i.next()).done;)a.push(e.value)}catch(r){o={error:r}}finally{try{e&&!e.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Z=function(r,t){for(var n=0,e=t.length,o=r.length;nr(t,n)):!function(r){if("Object"!==Q(r))return!1;let t=Object.getPrototypeOf(r);return!!t&&t.constructor===Object&&t===Object.prototype}(t)?t:[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)].reduce((e,o)=>{if(W(n.props)&&!n.props.includes(o))return e;let i=r(t[o],n);return function(r,t,n,e,o){let i=({}).propertyIsEnumerable.call(e,t)?"enumerable":"nonenumerable";"enumerable"===i&&(r[t]=n),o&&"nonenumerable"===i&&Object.defineProperty(r,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(e,o,i,t,n.nonenumerable),e},{})}(o);return(null==i?void 0:i.values)&&(t=a,n=i.values,e=this,function r(t,n,e){if(void 0===e&&(e=[]),t){if(!d(t)){c(t,function(t,o){return r(t,n,G(G([],F(e)),F(P(o))))});return}var o=F(t,2),i=o[0],a=o[1];a&&c(a,function(t,o){r(t,n,G(G([],F(e)),F(P(o))))}),n(i,e)}}(n,function(r,n){t=L(t,n,function(t){return J(t,r,e)})}),a=t),(null==i?void 0:i.referentialEqualities)&&(a=function(r,t){function n(t,n){var e=q(r,P(n));t.map(P).forEach(function(t){r=L(r,t,function(){return e})})}if(d(t)){var e=F(t,2),o=e[0],i=e[1];o.forEach(function(t){r=L(r,P(t),function(){return r})}),i&&c(i,n)}else c(t,n);return r}(a,i.referentialEqualities)),a},r.prototype.stringify=function(r){return JSON.stringify(this.serialize(r))},r.prototype.parse=function(r){return this.deserialize(JSON.parse(r))},r.prototype.registerClass=function(r,t){this.classRegistry.register(r,t)},r.prototype.registerSymbol=function(r,t){this.symbolRegistry.register(r,t)},r.prototype.registerCustom=function(r,t){this.customTransformerRegistry.register(X({name:t},r))},r.prototype.allowErrorProps=function(){for(var r,t=[],n=0;n