bukazu-portal-react 3.8.2 → 3.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,8 +11,8 @@ import e,{useState as t,useEffect as r,createContext as n,useContext as i,Compon
11
11
  /* @__PURE__ */E.jsx("animate",{attributeName:"opacity",attributeType:"XML",values:"0.2; 1; .2",begin:"0.3s",dur:"0.6s",repeatCount:"indefinite"}),
12
12
  /* @__PURE__ */E.jsx("animate",{attributeName:"height",attributeType:"XML",values:"10; 20; 10",begin:"0.3s",dur:"0.6s",repeatCount:"indefinite"}),
13
13
  /* @__PURE__ */E.jsx("animate",{attributeName:"y",attributeType:"XML",values:"10; 5; 10",begin:"0.3s",dur:"0.6s",repeatCount:"indefinite"})]})]});var O=function(e,t){return(O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function T(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}O(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var D=function(){return D=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},D.apply(this,arguments)};function N(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function I(e,t,r,n){return new(r||(r=Promise))(function(i,a){function o(e){try{c(n.next(e))}catch(t){a(t)}}function s(e){try{c(n.throw(e))}catch(t){a(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,s)}c((n=n.apply(e,t||[])).next())})}function A(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(c){s=[6,c],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function C(e,t,r){if(r||2===arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}var P="Invariant Violation",F=Object.setPrototypeOf,R=void 0===F?function(e,t){return e.__proto__=t,e}:F,M=function(e){function t(r){void 0===r&&(r=P);var n=e.call(this,"number"==typeof r?P+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=P,R(n,t.prototype),n}return T(t,e),t}(Error);function $(e,t){if(!e)throw new M(t)}var L,q=["debug","log","warn","error","silent"],z=q.indexOf("log");function V(e){return function(){if(q.indexOf(e)>=z)return(console[e]||console.log).apply(console,arguments)}}(L=$||($={})).debug=V("debug"),L.log=V("log"),L.warn=V("warn"),L.error=V("error");var B="3.11.8";function U(e){try{return e()}catch(t){}}const Q=U(function(){return globalThis})||U(function(){return window})||U(function(){return self})||U(function(){return global})||U(function(){return U.constructor("return this")()});var W=/* @__PURE__ */new Map;function Y(e){var t=W.get(e)||1;return W.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function K(e,t){void 0===t&&(t=0);var r=Y("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?r:t},t).split(JSON.stringify(r)).join("<undefined>")}function H(e){return function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if("number"==typeof t){var i=t;(t=ee(i))||(t=te(i,r),r=[])}e.apply(void 0,[t].concat(r))}}var G=Object.assign(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];e||$(e,ee(t,r)||te(t,r))},{debug:H($.debug),log:H($.log),warn:H($.warn),error:H($.error)});function J(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new M(ee(e,t)||te(e,t))}var X=/* @__PURE__ */Symbol.for("ApolloErrorMessageHandler_"+B);function Z(e){if("string"==typeof e)return e;try{return K(e,2).slice(0,1e3)}catch(t){return"<non-serializable>"}}function ee(e,t){if(void 0===t&&(t=[]),e)return Q[X]&&Q[X](e,t.map(Z))}function te(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:B,message:e,args:t.map(Z)})))}function re(e,t){if(!Boolean(e))throw new Error(t)}function ne(e,t){if(!Boolean(e))throw new Error("Unexpected invariant triggered.")}const ie=/\r\n|[\n\r]/g;function ae(e,t){let r=0,n=1;for(const i of e.body.matchAll(ie)){if("number"==typeof i.index||ne(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function oe(e){return se(e.source,ae(e.source,e.start))}function se(e,t){const r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,s=1===t.line?r:0,c=t.column+s,u=`${e.name}:${o}:${c}\n`,l=n.split(/\r\n|[\n\r]/g),d=l[i];if(d.length>120){const e=Math.floor(c/80),t=c%80,r=[];for(let n=0;n<d.length;n+=80)r.push(d.slice(n,n+80));return u+ce([[`${o} |`,r[0]],...r.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",r[e+1]]])}return u+ce([[o-1+" |",l[i-1]],[`${o} |`,d],["|","^".padStart(c)],[`${o+1} |`,l[i+1]]])}function ce(e){const t=e.filter(([e,t])=>void 0!==t),r=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(r)+(t?" "+t:"")).join("\n")}class ue extends Error{constructor(e,...t){var r,n,i;const{nodes:a,source:o,positions:s,path:c,originalError:u,extensions:l}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=c?c:void 0,this.originalError=null!=u?u:void 0,this.nodes=le(Array.isArray(a)?a:a?[a]:void 0);const d=le(null===(r=this.nodes)||void 0===r?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=o?o:null==d||null===(n=d[0])||void 0===n?void 0:n.source,this.positions=null!=s?s:null==d?void 0:d.map(e=>e.start),this.locations=s&&o?s.map(e=>ae(o,e)):null==d?void 0:d.map(e=>ae(e.source,e.start));const p="object"==typeof(h=null==u?void 0:u.extensions)&&null!==h?null==u?void 0:u.extensions:void 0;var h;this.extensions=null!==(i=null!=l?l:p)&&void 0!==i?i:/* @__PURE__ */Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,ue):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+oe(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+se(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function le(e){return void 0===e||0===e.length?void 0:e}function de(e,t,r){return new ue(`Syntax Error: ${r}`,{source:e,positions:[t]})}class pe{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class he{constructor(e,t,r,n,i,a){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const fe={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},me=new Set(Object.keys(fe));function _e(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&me.has(t)}var ve,ye,ge,be,ke,we,xe,Se;function Ee(e){return 9===e||32===e}function je(e){return e>=48&&e<=57}function Oe(e){return e>=97&&e<=122||e>=65&&e<=90}function Te(e){return Oe(e)||95===e}function De(e){return Oe(e)||je(e)||95===e}function Ne(e){var t;let r=Number.MAX_SAFE_INTEGER,n=null,i=-1;for(let o=0;o<e.length;++o){var a;const t=e[o],s=Ie(t);s!==t.length&&(n=null!==(a=n)&&void 0!==a?a:o,i=o,0!==o&&s<r&&(r=s))}return e.map((e,t)=>0===t?e:e.slice(r)).slice(null!==(t=n)&&void 0!==t?t:0,i+1)}function Ie(e){let t=0;for(;t<e.length&&Ee(e.charCodeAt(t));)++t;return t}(ye=ve||(ve={})).QUERY="query",ye.MUTATION="mutation",ye.SUBSCRIPTION="subscription",(be=ge||(ge={})).QUERY="QUERY",be.MUTATION="MUTATION",be.SUBSCRIPTION="SUBSCRIPTION",be.FIELD="FIELD",be.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",be.FRAGMENT_SPREAD="FRAGMENT_SPREAD",be.INLINE_FRAGMENT="INLINE_FRAGMENT",be.VARIABLE_DEFINITION="VARIABLE_DEFINITION",be.SCHEMA="SCHEMA",be.SCALAR="SCALAR",be.OBJECT="OBJECT",be.FIELD_DEFINITION="FIELD_DEFINITION",be.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",be.INTERFACE="INTERFACE",be.UNION="UNION",be.ENUM="ENUM",be.ENUM_VALUE="ENUM_VALUE",be.INPUT_OBJECT="INPUT_OBJECT",be.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",(we=ke||(ke={})).NAME="Name",we.DOCUMENT="Document",we.OPERATION_DEFINITION="OperationDefinition",we.VARIABLE_DEFINITION="VariableDefinition",we.SELECTION_SET="SelectionSet",we.FIELD="Field",we.ARGUMENT="Argument",we.FRAGMENT_SPREAD="FragmentSpread",we.INLINE_FRAGMENT="InlineFragment",we.FRAGMENT_DEFINITION="FragmentDefinition",we.VARIABLE="Variable",we.INT="IntValue",we.FLOAT="FloatValue",we.STRING="StringValue",we.BOOLEAN="BooleanValue",we.NULL="NullValue",we.ENUM="EnumValue",we.LIST="ListValue",we.OBJECT="ObjectValue",we.OBJECT_FIELD="ObjectField",we.DIRECTIVE="Directive",we.NAMED_TYPE="NamedType",we.LIST_TYPE="ListType",we.NON_NULL_TYPE="NonNullType",we.SCHEMA_DEFINITION="SchemaDefinition",we.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",we.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",we.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",we.FIELD_DEFINITION="FieldDefinition",we.INPUT_VALUE_DEFINITION="InputValueDefinition",we.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",we.UNION_TYPE_DEFINITION="UnionTypeDefinition",we.ENUM_TYPE_DEFINITION="EnumTypeDefinition",we.ENUM_VALUE_DEFINITION="EnumValueDefinition",we.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",we.DIRECTIVE_DEFINITION="DirectiveDefinition",we.SCHEMA_EXTENSION="SchemaExtension",we.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",we.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",we.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",we.UNION_TYPE_EXTENSION="UnionTypeExtension",we.ENUM_TYPE_EXTENSION="EnumTypeExtension",we.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",(Se=xe||(xe={})).SOF="<SOF>",Se.EOF="<EOF>",Se.BANG="!",Se.DOLLAR="$",Se.AMP="&",Se.PAREN_L="(",Se.PAREN_R=")",Se.SPREAD="...",Se.COLON=":",Se.EQUALS="=",Se.AT="@",Se.BRACKET_L="[",Se.BRACKET_R="]",Se.BRACE_L="{",Se.PIPE="|",Se.BRACE_R="}",Se.NAME="Name",Se.INT="Int",Se.FLOAT="Float",Se.STRING="String",Se.BLOCK_STRING="BlockString",Se.COMMENT="Comment";class Ae{constructor(e){const t=new he(xe.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==xe.EOF)do{if(e.next)e=e.next;else{const t=Le(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===xe.COMMENT);return e}}function Ce(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Pe(e,t){return Fe(e.charCodeAt(t))&&Re(e.charCodeAt(t+1))}function Fe(e){return e>=55296&&e<=56319}function Re(e){return e>=56320&&e<=57343}function Me(e,t){const r=e.source.body.codePointAt(t);if(void 0===r)return xe.EOF;if(r>=32&&r<=126){const e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function $e(e,t,r,n,i){const a=e.line,o=1+r-e.lineStart;return new he(t,r,n,a,o,i)}function Le(e,t){const r=e.source.body,n=r.length;let i=t;for(;i<n;){const t=r.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===r.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return qe(e,i);case 33:return $e(e,xe.BANG,i,i+1);case 36:return $e(e,xe.DOLLAR,i,i+1);case 38:return $e(e,xe.AMP,i,i+1);case 40:return $e(e,xe.PAREN_L,i,i+1);case 41:return $e(e,xe.PAREN_R,i,i+1);case 46:if(46===r.charCodeAt(i+1)&&46===r.charCodeAt(i+2))return $e(e,xe.SPREAD,i,i+3);break;case 58:return $e(e,xe.COLON,i,i+1);case 61:return $e(e,xe.EQUALS,i,i+1);case 64:return $e(e,xe.AT,i,i+1);case 91:return $e(e,xe.BRACKET_L,i,i+1);case 93:return $e(e,xe.BRACKET_R,i,i+1);case 123:return $e(e,xe.BRACE_L,i,i+1);case 124:return $e(e,xe.PIPE,i,i+1);case 125:return $e(e,xe.BRACE_R,i,i+1);case 34:return 34===r.charCodeAt(i+1)&&34===r.charCodeAt(i+2)?He(e,i):Be(e,i)}if(je(t)||45===t)return ze(e,i,t);if(Te(t))return Ge(e,i);throw de(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":Ce(t)||Pe(r,i)?`Unexpected character: ${Me(e,i)}.`:`Invalid character: ${Me(e,i)}.`)}return $e(e,xe.EOF,n,n)}function qe(e,t){const r=e.source.body,n=r.length;let i=t+1;for(;i<n;){const e=r.charCodeAt(i);if(10===e||13===e)break;if(Ce(e))++i;else{if(!Pe(r,i))break;i+=2}}return $e(e,xe.COMMENT,t,i,r.slice(t+1,i))}function ze(e,t,r){const n=e.source.body;let i=t,a=r,o=!1;if(45===a&&(a=n.charCodeAt(++i)),48===a){if(a=n.charCodeAt(++i),je(a))throw de(e.source,i,`Invalid number, unexpected digit after 0: ${Me(e,i)}.`)}else i=Ve(e,i,a),a=n.charCodeAt(i);if(46===a&&(o=!0,a=n.charCodeAt(++i),i=Ve(e,i,a),a=n.charCodeAt(i)),69!==a&&101!==a||(o=!0,a=n.charCodeAt(++i),43!==a&&45!==a||(a=n.charCodeAt(++i)),i=Ve(e,i,a),a=n.charCodeAt(i)),46===a||Te(a))throw de(e.source,i,`Invalid number, expected digit but got: ${Me(e,i)}.`);return $e(e,o?xe.FLOAT:xe.INT,t,i,n.slice(t,i))}function Ve(e,t,r){if(!je(r))throw de(e.source,t,`Invalid number, expected digit but got: ${Me(e,t)}.`);const n=e.source.body;let i=t+1;for(;je(n.charCodeAt(i));)++i;return i}function Be(e,t){const r=e.source.body,n=r.length;let i=t+1,a=i,o="";for(;i<n;){const n=r.charCodeAt(i);if(34===n)return o+=r.slice(a,i),$e(e,xe.STRING,t,i+1,o);if(92===n){o+=r.slice(a,i);const t=117===r.charCodeAt(i+1)?123===r.charCodeAt(i+2)?Ue(e,i):Qe(e,i):Ke(e,i);o+=t.value,i+=t.size,a=i;continue}if(10===n||13===n)break;if(Ce(n))++i;else{if(!Pe(r,i))throw de(e.source,i,`Invalid character within String: ${Me(e,i)}.`);i+=2}}throw de(e.source,i,"Unterminated string.")}function Ue(e,t){const r=e.source.body;let n=0,i=3;for(;i<12;){const e=r.charCodeAt(t+i++);if(125===e){if(i<5||!Ce(n))break;return{value:String.fromCodePoint(n),size:i}}if(n=n<<4|Ye(e),n<0)break}throw de(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+i)}".`)}function Qe(e,t){const r=e.source.body,n=We(r,t+2);if(Ce(n))return{value:String.fromCodePoint(n),size:6};if(Fe(n)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){const e=We(r,t+8);if(Re(e))return{value:String.fromCodePoint(n,e),size:12}}throw de(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}function We(e,t){return Ye(e.charCodeAt(t))<<12|Ye(e.charCodeAt(t+1))<<8|Ye(e.charCodeAt(t+2))<<4|Ye(e.charCodeAt(t+3))}function Ye(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Ke(e,t){const r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw de(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function He(e,t){const r=e.source.body,n=r.length;let i=e.lineStart,a=t+3,o=a,s="";const c=[];for(;a<n;){const n=r.charCodeAt(a);if(34===n&&34===r.charCodeAt(a+1)&&34===r.charCodeAt(a+2)){s+=r.slice(o,a),c.push(s);const n=$e(e,xe.BLOCK_STRING,t,a+3,Ne(c).join("\n"));return e.line+=c.length-1,e.lineStart=i,n}if(92!==n||34!==r.charCodeAt(a+1)||34!==r.charCodeAt(a+2)||34!==r.charCodeAt(a+3))if(10!==n&&13!==n)if(Ce(n))++a;else{if(!Pe(r,a))throw de(e.source,a,`Invalid character within String: ${Me(e,a)}.`);a+=2}else s+=r.slice(o,a),c.push(s),13===n&&10===r.charCodeAt(a+1)?a+=2:++a,s="",o=a,i=a;else s+=r.slice(o,a),o=a+1,a+=4}throw de(e.source,a,"Unterminated string.")}function Ge(e,t){const r=e.source.body,n=r.length;let i=t+1;for(;i<n;){if(!De(r.charCodeAt(i)))break;++i}return $e(e,xe.NAME,t,i,r.slice(t,i))}function Je(e){return Xe(e,[])}function Xe(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:Xe(t,r)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const r=Math.min(10,e.length),n=e.length-r,i=[];for(let a=0;a<r;++a)i.push(Xe(e[a],t));1===n?i.push("... 1 more item"):n>1&&i.push(`... ${n} more items`);return"["+i.join(", ")+"]"}(e,r);return function(e,t){const r=Object.entries(e);if(0===r.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const n=r.map(([e,r])=>e+": "+Xe(r,t));return"{ "+n.join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}const Ze=globalThis.process&&"production"===process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var r;const n=t.prototype[Symbol.toStringTag];if(n===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(r=e.constructor)||void 0===r?void 0:r.name)){const t=Je(e);throw new Error(`Cannot use ${n} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class et{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||re(!1,`Body must be a string. Received: ${Je(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||re(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||re(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}let tt=class{constructor(e,t={}){const r=function(e){return Ze(e,et)}(e)?e:new et(e);this._lexer=new Ae(r),this._options=t,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(xe.NAME);return this.node(e,{kind:ke.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:ke.DOCUMENT,definitions:this.many(xe.SOF,this.parseDefinition,xe.EOF)})}parseDefinition(){if(this.peek(xe.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===xe.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw de(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(xe.BRACE_L))return this.node(e,{kind:ke.OPERATION_DEFINITION,operation:ve.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let r;return this.peek(xe.NAME)&&(r=this.parseName()),this.node(e,{kind:ke.OPERATION_DEFINITION,operation:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(xe.NAME);switch(e.value){case"query":return ve.QUERY;case"mutation":return ve.MUTATION;case"subscription":return ve.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(xe.PAREN_L,this.parseVariableDefinition,xe.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:ke.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(xe.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(xe.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(xe.DOLLAR),this.node(e,{kind:ke.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:ke.SELECTION_SET,selections:this.many(xe.BRACE_L,this.parseSelection,xe.BRACE_R)})}parseSelection(){return this.peek(xe.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let r,n;return this.expectOptionalToken(xe.COLON)?(r=t,n=this.parseName()):n=t,this.node(e,{kind:ke.FIELD,alias:r,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(xe.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(xe.PAREN_L,t,xe.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,r=this.parseName();return this.expectToken(xe.COLON),this.node(t,{kind:ke.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(xe.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(xe.NAME)?this.node(e,{kind:ke.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:ke.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:ke.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:ke.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case xe.BRACKET_L:return this.parseList(e);case xe.BRACE_L:return this.parseObject(e);case xe.INT:return this.advanceLexer(),this.node(t,{kind:ke.INT,value:t.value});case xe.FLOAT:return this.advanceLexer(),this.node(t,{kind:ke.FLOAT,value:t.value});case xe.STRING:case xe.BLOCK_STRING:return this.parseStringLiteral();case xe.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:ke.BOOLEAN,value:!0});case"false":return this.node(t,{kind:ke.BOOLEAN,value:!1});case"null":return this.node(t,{kind:ke.NULL});default:return this.node(t,{kind:ke.ENUM,value:t.value})}case xe.DOLLAR:if(e){if(this.expectToken(xe.DOLLAR),this._lexer.token.kind===xe.NAME){const e=this._lexer.token.value;throw de(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:ke.STRING,value:e.value,block:e.kind===xe.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:ke.LIST,values:this.any(xe.BRACKET_L,()=>this.parseValueLiteral(e),xe.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:ke.OBJECT,fields:this.any(xe.BRACE_L,()=>this.parseObjectField(e),xe.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,r=this.parseName();return this.expectToken(xe.COLON),this.node(t,{kind:ke.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(xe.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(xe.AT),this.node(t,{kind:ke.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(xe.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(xe.BRACKET_R),t=this.node(e,{kind:ke.LIST_TYPE,type:r})}else t=this.parseNamedType();return this.expectOptionalToken(xe.BANG)?this.node(e,{kind:ke.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:ke.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(xe.STRING)||this.peek(xe.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.many(xe.BRACE_L,this.parseOperationTypeDefinition,xe.BRACE_R);return this.node(e,{kind:ke.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(xe.COLON);const r=this.parseNamedType();return this.node(e,{kind:ke.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:ke.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:ke.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(xe.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(xe.BRACE_L,this.parseFieldDefinition,xe.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(xe.COLON);const i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:ke.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:a})}parseArgumentDefs(){return this.optionalMany(xe.PAREN_L,this.parseInputValueDef,xe.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken(xe.COLON);const n=this.parseTypeReference();let i;this.expectOptionalToken(xe.EQUALS)&&(i=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(e,{kind:ke.INPUT_VALUE_DEFINITION,description:t,name:r,type:n,defaultValue:i,directives:a})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:ke.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:a})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:ke.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(xe.EQUALS)?this.delimitedMany(xe.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:ke.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(xe.BRACE_L,this.parseEnumValueDefinition,xe.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:ke.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw de(this._lexer.source,this._lexer.token.start,`${rt(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:ke.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(xe.BRACE_L,this.parseInputValueDef,xe.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===xe.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),r=this.optionalMany(xe.BRACE_L,this.parseOperationTypeDefinition,xe.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:ke.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:ke.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:ke.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:ke.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:ke.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:ke.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:ke.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(xe.AT);const r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(e,{kind:ke.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:a})}parseDirectiveLocations(){return this.delimitedMany(xe.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(ge,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new pe(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw de(this._lexer.source,t.start,`Expected ${nt(e)}, found ${rt(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==xe.NAME||t.value!==e)throw de(this._lexer.source,t.start,`Expected "${e}", found ${rt(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===xe.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return de(this._lexer.source,t.start,`Unexpected ${rt(t)}.`)}any(e,t,r){this.expectToken(e);const n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);const n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);const r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==xe.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw de(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}};function rt(e){const t=e.value;return nt(e.kind)+(null!=t?` "${t}"`:"")}function nt(e){return function(e){return e===xe.BANG||e===xe.DOLLAR||e===xe.AMP||e===xe.PAREN_L||e===xe.PAREN_R||e===xe.SPREAD||e===xe.COLON||e===xe.EQUALS||e===xe.AT||e===xe.BRACKET_L||e===xe.BRACKET_R||e===xe.BRACE_L||e===xe.PIPE||e===xe.BRACE_R}(e)?`"${e}"`:e}const it=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function at(e){return ot[e.charCodeAt(0)]}const ot=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],st=Object.freeze({});function ct(e,t,r=fe){const n=/* @__PURE__ */new Map;for(const v of Object.values(ke))n.set(v,ut(t,v));let i,a,o,s=Array.isArray(e),c=[e],u=-1,l=[],d=e;const p=[],h=[];do{u++;const e=u===c.length,v=e&&0!==l.length;if(e){if(a=0===h.length?void 0:p[p.length-1],d=o,o=h.pop(),v)if(s){d=d.slice();let e=0;for(const[t,r]of l){const n=t-e;null===r?(d.splice(n,1),e++):d[n]=r}}else{d={...d};for(const[e,t]of l)d[e]=t}u=i.index,c=i.keys,l=i.edits,s=i.inArray,i=i.prev}else if(o){if(a=s?u:c[u],d=o[a],null==d)continue;p.push(a)}let y;if(!Array.isArray(d)){var f,m;_e(d)||re(!1,`Invalid AST Node: ${Je(d)}.`);const r=e?null===(f=n.get(d.kind))||void 0===f?void 0:f.leave:null===(m=n.get(d.kind))||void 0===m?void 0:m.enter;if(y=null==r?void 0:r.call(t,d,a,o,p,h),y===st)break;if(!1===y){if(!e){p.pop();continue}}else if(void 0!==y&&(l.push([a,y]),!e)){if(!_e(y)){p.pop();continue}d=y}}var _;if(void 0===y&&v&&l.push([a,d]),e)p.pop();else i={inArray:s,index:u,keys:c,edits:l,prev:i},s=Array.isArray(d),c=s?d:null!==(_=r[d.kind])&&void 0!==_?_:[],u=-1,l=[],o&&h.push(o),o=d}while(void 0!==i);return 0!==l.length?l[l.length-1][1]:e}function ut(e,t){const r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}const lt={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>dt(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=ht("(",dt(e.variableDefinitions,", "),")"),r=dt([e.operation,dt([e.name,t]),dt(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+ht(" = ",r)+ht(" ",dt(n," "))},SelectionSet:{leave:({selections:e})=>pt(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){const a=ht("",e,": ")+t;let o=a+ht("(",dt(r,", "),")");return o.length>80&&(o=a+ht("(\n",ft(dt(r,"\n")),"\n)")),dt([o,dt(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+ht(" ",dt(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>dt(["...",ht("on ",e),dt(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${ht("(",dt(r,", "),")")} on ${t} ${ht("",dt(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e){const t=e.replace(/"""/g,'\\"""'),r=t.split(/\r\n|[\n\r]/g),n=1===r.length,i=r.length>1&&r.slice(1).every(e=>0===e.length||Ee(e.charCodeAt(0))),a=t.endsWith('\\"""'),o=e.endsWith('"')&&!a,s=e.endsWith("\\"),c=o||s,u=!n||e.length>70||c||i||a;let l="";const d=n&&Ee(e.charCodeAt(0));return(u&&!d||i)&&(l+="\n"),l+=t,(u||c)&&(l+="\n"),'"""'+l+'"""'}(e):`"${e.replace(it,at)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+dt(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+dt(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+ht("(",dt(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>ht("",e,"\n")+dt(["schema",dt(t," "),pt(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>ht("",e,"\n")+dt(["scalar",t,dt(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>ht("",e,"\n")+dt(["type",t,ht("implements ",dt(r," & ")),dt(n," "),pt(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>ht("",e,"\n")+t+(mt(r)?ht("(\n",ft(dt(r,"\n")),"\n)"):ht("(",dt(r,", "),")"))+": "+n+ht(" ",dt(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>ht("",e,"\n")+dt([t+": "+r,ht("= ",n),dt(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>ht("",e,"\n")+dt(["interface",t,ht("implements ",dt(r," & ")),dt(n," "),pt(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>ht("",e,"\n")+dt(["union",t,dt(r," "),ht("= ",dt(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>ht("",e,"\n")+dt(["enum",t,dt(r," "),pt(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>ht("",e,"\n")+dt([t,dt(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>ht("",e,"\n")+dt(["input",t,dt(r," "),pt(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>ht("",e,"\n")+"directive @"+t+(mt(r)?ht("(\n",ft(dt(r,"\n")),"\n)"):ht("(",dt(r,", "),")"))+(n?" repeatable":"")+" on "+dt(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>dt(["extend schema",dt(e," "),pt(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>dt(["extend scalar",e,dt(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>dt(["extend type",e,ht("implements ",dt(t," & ")),dt(r," "),pt(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>dt(["extend interface",e,ht("implements ",dt(t," & ")),dt(r," "),pt(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>dt(["extend union",e,dt(t," "),ht("= ",dt(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>dt(["extend enum",e,dt(t," "),pt(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>dt(["extend input",e,dt(t," "),pt(r)]," ")}};function dt(e,t=""){var r;return null!==(r=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==r?r:""}function pt(e){return ht("{\n",ft(dt(e,"\n")),"\n}")}function ht(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function ft(e){return ht(" ",e.replace(/\n/g,"\n "))}function mt(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}function _t(e){return e.kind===ke.FIELD||e.kind===ke.FRAGMENT_SPREAD||e.kind===ke.INLINE_FRAGMENT}function vt(e,t){var r=e.directives;return!r||!r.length||function(e){var t=[];e&&e.length&&e.forEach(function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var r=e.arguments,n=e.name.value;G(r&&1===r.length,71,n);var i=r[0];G(i.name&&"if"===i.name.value,72,n);var a=i.value;G(a&&("Variable"===a.kind||"BooleanValue"===a.kind),73,n),t.push({directive:e,ifArgument:i})}});return t}(r).every(function(e){var r=e.directive,n=e.ifArgument,i=!1;return"Variable"===n.value.kind?(i=t&&t[n.value.name.value],G(void 0!==i,70,r.name.value)):i=n.value.value,"skip"===r.name.value?!i:i})}function yt(e,t,r){var n=new Set(e),i=n.size;return ct(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return st}}),r?!n.size:n.size<i}function gt(e){return e&&yt(["client","export"],e,!0)}const bt=()=>/* @__PURE__ */Object.create(null),{forEach:kt,slice:wt}=Array.prototype,{hasOwnProperty:xt}=Object.prototype;let St=class e{constructor(e=!0,t=bt){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return kt.call(e,e=>t=t.getChildTrie(e)),xt.call(t,"data")?t.data:t.data=this.makeData(wt.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){const n=t.mapFor(e[r],!1);t=n&&n.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){const r=e[0],n=this.mapFor(r,!1),i=n&&n.get(r);i&&(t=i.removeArray(wt.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||n.delete(r))}else t=this.data,delete this.data;return t}getChildTrie(t){const r=this.mapFor(t,!0);let n=r.get(t);return n||r.set(t,n=new e(this.weakness,this.makeData)),n}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=/* @__PURE__ */new WeakMap:void 0):this.strong||(t?this.strong=/* @__PURE__ */new Map:void 0)}};var Et="ReactNative"==U(function(){return navigator.product}),jt="function"==typeof WeakMap&&!(Et&&!global.HermesInternal),Ot="function"==typeof WeakSet,Tt="function"==typeof Symbol&&"function"==typeof Symbol.for,Dt=Tt&&Symbol.asyncIterator,Nt="function"==typeof U(function(){return window.document.createElement}),It=U(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,At=(Nt||Et)&&!It;function Ct(e){return null!==e&&"object"==typeof e}function Pt(e,t){var r=t,n=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw J(74,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&n.push(e)}),void 0===r&&(G(1===n.length,75,n.length),r=n[0].name.value),D(D({},e),{definitions:C([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function Ft(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function Rt(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return G(n,76,r),n||null;default:return null}}function Mt(){}class $t{constructor(e=1/0,t=Mt){this.max=e,this.dispose=t,this.map=/* @__PURE__ */new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}function Lt(){}const qt=Lt,zt="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},Vt="undefined"!=typeof WeakMap?WeakMap:Map,Bt="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:Lt,unregister:Lt}};class Ut{constructor(e=1/0,t=qt){this.max=e,this.dispose=t,this.map=new Vt,this.newest=null,this.oldest=null,this.unfinalizedNodes=/* @__PURE__ */new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){const t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);const r=t.key;delete t.key,t.keyRef=new zt(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new Bt(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(e,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){const t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var Qt=/* @__PURE__ */new WeakSet;function Wt(e){e.size<=(e.max||-1)||Qt.has(e)||(Qt.add(e),setTimeout(function(){e.clean(),Qt.delete(e)},100))}var Yt=function(e,t){var r=new Ut(e,t);return r.set=function(e,t){var r=Ut.prototype.set.call(this,e,t);return Wt(this),r},r},Kt=function(e,t){var r=new $t(e,t);return r.set=function(e,t){var r=$t.prototype.set.call(this,e,t);return Wt(this),r},r},Ht=D({},Q[/* @__PURE__ */Symbol.for("apollo.cacheSize")]),Gt={};function Jt(e,t){Gt[e]=t}var Xt=!1!==globalThis.__DEV__?function(){var e,t,r,n,i;if(!1===globalThis.__DEV__)throw new Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(e){var t=e[0],r=e[1];return[t,Ht[t]||r]})),sizes:D({print:null===(e=Gt.print)||void 0===e?void 0:e.call(Gt),parser:null===(t=Gt.parser)||void 0===t?void 0:t.call(Gt),canonicalStringify:null===(r=Gt.canonicalStringify)||void 0===r?void 0:r.call(Gt),links:or(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:ir(this.queryManager.documentTransform)}},null===(i=(n=this.cache).getMemoryInternals)||void 0===i?void 0:i.call(n))}}:void 0,Zt=!1!==globalThis.__DEV__?function(){var e=this.config.fragments;return D(D({},tr.apply(this)),{addTypenameDocumentTransform:ir(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:rr(this.storeReader.executeSelectionSet),executeSubSelectedArray:rr(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:rr(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:rr(null==e?void 0:e.findFragmentSpreads),lookup:rr(null==e?void 0:e.lookup),transform:rr(null==e?void 0:e.transform)}})}:void 0,er=!1!==globalThis.__DEV__?tr:void 0;function tr(){return{cache:{fragmentQueryDocuments:rr(this.getFragmentDoc)}}}function rr(e){return function(e){return!!e&&"dirtyKey"in e}(e)?e.size:void 0}function nr(e){return null!=e}function ir(e){return ar(e).map(function(e){return{cache:e}})}function ar(e){return e?C(C([rr(null==e?void 0:e.performWork)],ar(null==e?void 0:e.left),!0),ar(null==e?void 0:e.right),!0).filter(nr):[]}function or(e){var t;return e?C(C([null===(t=null==e?void 0:e.getMemoryInternals)||void 0===t?void 0:t.call(e)],or(null==e?void 0:e.left),!0),or(null==e?void 0:e.right),!0).filter(nr):[]}var sr,cr=Object.assign(function(e){return JSON.stringify(e,ur)},{reset:function(){sr=new Kt(Ht.canonicalStringify||1e3)}});function ur(e,t){if(t&&"object"==typeof t){var r=Object.getPrototypeOf(t);if(r===Object.prototype||null===r){var n=Object.keys(t);if(n.every(lr))return t;var i=JSON.stringify(n),a=sr.get(i);if(!a){n.sort();var o=JSON.stringify(n);a=sr.get(o)||n,sr.set(i,a),sr.set(o,a)}var s=Object.create(r);return a.forEach(function(e){s[e]=t[e]}),s}}return t}function lr(e,t,r){return 0===t||r[t-1]<=e}function dr(e){return{__ref:String(e)}}function pr(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function hr(e,t,r,n){if(function(e){return"IntValue"===e.kind}(r)||function(e){return"FloatValue"===e.kind}(r))e[t.value]=Number(r.value);else if(function(e){return"BooleanValue"===e.kind}(r)||function(e){return"StringValue"===e.kind}(r))e[t.value]=r.value;else if(function(e){return"ObjectValue"===e.kind}(r)){var i={};r.fields.map(function(e){return hr(i,e.name,e.value,n)}),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(r)){var a=(n||{})[r.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map(function(e){var r={};return hr(r,t,e,n),r[t.value]});else if(function(e){return"EnumValue"===e.kind}(r))e[t.value]=r.value;else{if(!function(e){return"NullValue"===e.kind}(r))throw J(85,t.value,r.kind);e[t.value]=null}}!1!==globalThis.__DEV__&&Jt("canonicalStringify",function(){return sr.size}),cr.reset();var fr=["connection","include","skip","client","rest","export","nonreactive"],mr=cr,_r=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(e){i[e]=t[e]}),"".concat(r.connection.key,"(").concat(mr(i),")")}return r.connection.key}var a=e;if(t){var o=mr(t);a+="(".concat(o,")")}return r&&Object.keys(r).forEach(function(e){-1===fr.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?a+="@".concat(e,"(").concat(mr(r[e]),")"):a+="@".concat(e))}),a},{setStringify:function(e){var t=mr;return mr=e,t}});function vr(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){var n=e.name,i=e.value;return hr(r,n,i,t)}),r}return null}function yr(e){return e.alias?e.alias.value:e.name.value}function gr(e,t,r){for(var n,i=0,a=t.selections;i<a.length;i++){if(br(c=a[i])){if("__typename"===c.name.value)return e[yr(c)]}else n?n.push(c):n=[c]}if("string"==typeof e.__typename)return e.__typename;if(n)for(var o=0,s=n;o<s.length;o++){var c,u=gr(e,Rt(c=s[o],r).selectionSet,r);if("string"==typeof u)return u}}function br(e){return"Field"===e.kind}function kr(e){G(e&&"Document"===e.kind,77);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw J(78,e.kind);return e});return G(t.length<=1,79,t.length),e}function wr(e){return kr(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function xr(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function Sr(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function Er(e){var t=wr(e);return G(t&&"query"===t.operation,80),t}function jr(e){var t;kr(e);for(var r=0,n=e.definitions;r<n.length;r++){var i=n[r];if("OperationDefinition"===i.kind){var a=i.operation;if("query"===a||"mutation"===a||"subscription"===a)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw J(84)}function Or(e){var t=/* @__PURE__ */Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&hr(t,e.variable.name,e.defaultValue)}),t}const Tr=()=>/* @__PURE__ */Object.create(null),{forEach:Dr,slice:Nr}=Array.prototype,{hasOwnProperty:Ir}=Object.prototype;class Ar{constructor(e=!0,t=Tr){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return Dr.call(e,e=>t=t.getChildTrie(e)),Ir.call(t,"data")?t.data:t.data=this.makeData(Nr.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){const n=this.weakness&&Cr(e[r])?t.weak:t.strong;t=n&&n.get(e[r])}return t&&t.data}getChildTrie(e){const t=this.weakness&&Cr(e)?this.weak||(this.weak=/* @__PURE__ */new WeakMap):this.strong||(this.strong=/* @__PURE__ */new Map);let r=t.get(e);return r||t.set(e,r=new Ar(this.weakness,this.makeData)),r}}function Cr(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}let Pr=null;const Fr={};let Rr=1;function Mr(e){try{return e()}catch(t){}}const $r="@wry/context:Slot",Lr=Mr(()=>globalThis)||Mr(()=>global)||
14
- /* @__PURE__ */Object.create(null),qr=Lr[$r]||Array[$r]||function(e){try{Object.defineProperty(Lr,$r,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",Rr++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=Pr;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===Fr)break;return e!==Pr&&(Pr.slots[this.id]=t),!0}return Pr&&(Pr.slots[this.id]=Fr),!1}getValue(){if(this.hasValue())return Pr.slots[this.id]}withValue(e,t,r,n){const i={__proto__:null,[this.id]:e},a=Pr;Pr={parent:a,slots:i};try{return t.apply(n,r)}finally{Pr=a}}static bind(e){const t=Pr;return function(){const r=Pr;try{return Pr=t,e.apply(this,arguments)}finally{Pr=r}}}static noContext(e,t,r){if(!Pr)return e.apply(r,t);{const n=Pr;try{return Pr=null,e.apply(r,t)}finally{Pr=n}}}}),{bind:zr,noContext:Vr}=qr,Br=new qr,{hasOwnProperty:Ur}=Object.prototype,Qr=Array.from||function(e){const t=[];return e.forEach(e=>t.push(e)),t};function Wr(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const Yr=[];function Kr(e,t){if(!e)throw new Error(t||"assertion failure")}function Hr(e,t){const r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function Gr(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function Jr(e){return e.slice(0)}class Xr{constructor(e){this.fn=e,this.parents=/* @__PURE__ */new Set,this.childValues=/* @__PURE__ */new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Xr.count}peek(){if(1===this.value.length&&!tn(this))return Zr(this),this.value[0]}recompute(e){return Kr(!this.recomputing,"already recomputing"),Zr(this),tn(this)?function(e,t){un(e),Br.withValue(e,en,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{Wr(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(r){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,tn(e))return;nn(e)}(e);return Gr(e.value)}(this,e):Gr(this.value)}setDirty(){this.dirty||(this.dirty=!0,rn(this),Wr(this))}dispose(){this.setDirty(),un(this),an(this,(e,t)=>{e.setDirty(),ln(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=Yr.pop()||/* @__PURE__ */new Set),this.deps.add(e)}forgetDeps(){this.deps&&(Qr(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),Yr.push(this.deps),this.deps=null)}}function Zr(e){const t=Br.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),tn(e)?on(t,e):sn(t,e),t}function en(e,t){e.recomputing=!0;const{normalizeResult:r}=e;let n;r&&1===e.value.length&&(n=Jr(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),r&&n&&!Hr(n,e.value))try{e.value[0]=r(e.value[0],n[0])}catch(i){}}catch(a){e.value[1]=a}e.recomputing=!1}function tn(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function rn(e){an(e,on)}function nn(e){an(e,sn)}function an(e,t){const r=e.parents.size;if(r){const n=Qr(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function on(e,t){Kr(e.childValues.has(t)),Kr(tn(t));const r=!tn(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=Yr.pop()||/* @__PURE__ */new Set;e.dirtyChildren.add(t),r&&rn(e)}function sn(e,t){Kr(e.childValues.has(t)),Kr(!tn(t));const r=e.childValues.get(t);0===r.length?e.childValues.set(t,Jr(t.value)):Hr(r,t.value)||e.setDirty(),cn(e,t),tn(e)||nn(e)}function cn(e,t){const r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(Yr.length<100&&Yr.push(r),e.dirtyChildren=null))}function un(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{ln(e,r)}),e.forgetDeps(),Kr(null===e.dirtyChildren)}function ln(e,t){t.parents.delete(e),e.childValues.delete(t),cn(e,t)}Xr.count=0;const dn={setDirty:!0,dispose:!0,forget:!0};function pn(e){const t=/* @__PURE__ */new Map;function r(e){const r=Br.getValue();if(r){let n=t.get(e);n||t.set(e,n=/* @__PURE__ */new Set),r.dependOn(n)}}return r.dirty=function(e,r){const n=t.get(e);if(n){const i=r&&Ur.call(dn,r)?r:"setDirty";Qr(n).forEach(e=>e[i]()),t.delete(e),Wr(n)}},r}let hn;function fn(...e){return(hn||(hn=new Ar("function"==typeof WeakMap))).lookupArray(e)}const mn=/* @__PURE__ */new Set;function _n(e,{max:t=Math.pow(2,16),keyArgs:r,makeCacheKey:n=fn,normalizeResult:i,subscribe:a,cache:o=$t}=/* @__PURE__ */Object.create(null)){const s="function"==typeof o?new o(t,e=>e.dispose()):o,c=function(){const t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let o=s.get(t);o||(s.set(t,o=new Xr(e)),o.normalizeResult=i,o.subscribe=a,o.forget=()=>s.delete(t));const c=o.recompute(Array.prototype.slice.call(arguments));return s.set(t,o),mn.add(s),Br.hasValue()||(mn.forEach(e=>e.clean()),mn.clear()),c};function u(e){const t=e&&s.get(e);t&&t.setDirty()}function l(e){const t=e&&s.get(e);if(t)return t.peek()}function d(e){return!!e&&s.delete(e)}return Object.defineProperty(c,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:a,cache:s}),c.dirtyKey=u,c.dirty=function(){u(n.apply(null,arguments))},c.peekKey=l,c.peek=function(){return l(n.apply(null,arguments))},c.forgetKey=d,c.forget=function(){return d(n.apply(null,arguments))},c.makeCacheKey=n,c.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(c)}function vn(e){return e}var yn,gn=function(){function e(e,t){void 0===t&&(t=/* @__PURE__ */Object.create(null)),this.resultCache=Ot?/* @__PURE__ */new WeakSet:/* @__PURE__ */new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(vn,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),Object.assign(new e(function(e){return(t(e)?r:n).transformDocument(e)},{cache:!1}),{left:r,right:n})},e.prototype.resetCache=function(){var t=this;if(this.cached){var r=new St(jt);this.performWork=_n(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return G(Array.isArray(n),69),r.lookupArray(n)},max:Ht["documentTransform.cache"],cache:Ut})}},e.prototype.performWork=function(e){return kr(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var r=this;return Object.assign(new e(function(e){return t.transformDocument(r.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}(),bn=Object.assign(function(e){var t=yn.get(e);return t||(t=function(e){return ct(e,lt)}(e),yn.set(e,t)),t},{reset:function(){yn=new Yt(Ht.print||2e3)}});bn.reset(),!1!==globalThis.__DEV__&&Jt("print",function(){return yn?yn.size:0});var kn=Array.isArray;function wn(e){return Array.isArray(e)&&e.length>0}var xn={kind:ke.FIELD,name:{kind:ke.NAME,value:"__typename"}};function Sn(e,t){return!e||e.selectionSet.selections.every(function(e){return e.kind===ke.FRAGMENT_SPREAD&&Sn(t[e.name.value],t)})}function En(e){return Sn(wr(e)||function(e){G("Document"===e.kind,81),G(e.definitions.length<=1,82);var t=e.definitions[0];return G("FragmentDefinition"===t.kind,83),t}(e),Ft(Sr(e)))?null:e}function jn(e){var t=/* @__PURE__ */new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:/* @__PURE__ */new Set,fragmentSpreads:/* @__PURE__ */new Set}),n}}function On(e,t){kr(t);for(var r=jn(""),n=jn(""),i=function(e){for(var t=0,i=void 0;t<e.length&&(i=e[t]);++t)if(!kn(i)){if(i.kind===ke.OPERATION_DEFINITION)return r(i.name&&i.name.value);if(i.kind===ke.FRAGMENT_DEFINITION)return n(i.name.value)}return!1!==globalThis.__DEV__&&G.error(86),null},a=0,o=t.definitions.length-1;o>=0;--o)t.definitions[o].kind===ke.OPERATION_DEFINITION&&++a;var s,c,u,l=(s=e,c=/* @__PURE__ */new Map,u=/* @__PURE__ */new Map,s.forEach(function(e){e&&(e.name?c.set(e.name,e):e.test&&u.set(e.test,e))}),function(e){var t=c.get(e.name.value);return!t&&u.size&&u.forEach(function(r,n){n(e)&&(t=r)}),t}),d=function(e){return wn(e)&&e.map(l).some(function(e){return e&&e.remove})},p=/* @__PURE__ */new Map,h=!1,f={enter:function(e){if(d(e.directives))return h=!0,null}},m=ct(t,{Field:f,InlineFragment:f,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,a){var o=i(a);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,a){if(d(e.directives))return h=!0,null;var o=i(a);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){p.set(JSON.stringify(n),e)},leave:function(e,t,r,i){return e===p.get(JSON.stringify(i))?e:a>0&&e.selectionSet.selections.every(function(e){return e.kind===ke.FIELD&&"__typename"===e.name.value})?(n(e.name.value).removed=!0,h=!0,null):void 0}},Directive:{leave:function(e){if(l(e))return h=!0,null}}});if(!h)return t;var _=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){_(n(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},v=/* @__PURE__ */new Set;m.definitions.forEach(function(e){e.kind===ke.OPERATION_DEFINITION?_(r(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){v.add(e)}):e.kind!==ke.FRAGMENT_DEFINITION||0!==a||n(e.name.value).removed||v.add(e.name.value)}),v.forEach(function(e){_(n(e)).fragmentSpreads.forEach(function(e){v.add(e)})});var y={enter:function(e){if(t=e.name.value,!v.has(t)||n(t).removed)return null;var t}};return En(ct(m,{FragmentSpread:y,FragmentDefinition:y,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=_(r(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return D(D({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))}var Tn=Object.assign(function(e){return ct(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==ke.OPERATION_DEFINITION){var n=e.selections;if(n)if(!n.some(function(e){return br(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))})){var i=r;if(!(br(i)&&i.directives&&i.directives.some(function(e){return"export"===e.name.value})))return D(D({},e),{selections:C(C([],n,!0),[xn],!1)})}}}}})},{added:function(e){return e===xn}});function Dn(e){return"query"===jr(e).operation?e:ct(e,{OperationDefinition:{enter:function(e){return D(D({},e),{operation:"query"})}}})}function Nn(e){return kr(e),On([{test:function(e){return"client"===e.name.value},remove:!0}],e)}var In=Object.prototype.hasOwnProperty;function An(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Cn(e)}function Cn(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new Fn,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var Pn=function(e,t,r){return this.merge(e[r],t[r])},Fn=function(){function e(e){void 0===e&&(e=Pn),this.reconciler=e,this.isObject=Ct,this.pastCopies=/* @__PURE__ */new Set}return e.prototype.merge=function(e,t){for(var r=this,n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return Ct(t)&&Ct(e)?(Object.keys(t).forEach(function(i){if(In.call(e,i)){var a=e[i];if(t[i]!==a){var o=r.reconciler.apply(r,C([e,t,i],n,!1));o!==a&&((e=r.shallowCopyForMerge(e))[i]=o)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return Ct(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):D({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}();function Rn(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Mn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mn(e,t)}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Mn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ln(e,t,r){return t&&$n(e.prototype,t),r&&$n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var qn=function(){return"function"==typeof Symbol},zn=function(e){return qn()&&Boolean(Symbol[e])},Vn=function(e){return zn(e)?Symbol[e]:"@@"+e};qn()&&!zn("observable")&&(Symbol.observable=/* @__PURE__ */Symbol("observable"));var Bn=Vn("iterator"),Un=Vn("observable"),Qn=Vn("species");function Wn(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw new TypeError(r+" is not a function");return r}}function Yn(e){var t=e.constructor;return void 0!==t&&null===(t=t[Qn])&&(t=void 0),void 0!==t?t:ri}function Kn(e){Kn.log?Kn.log(e):setTimeout(function(){throw e})}function Hn(e){Promise.resolve().then(function(){try{e()}catch(t){Kn(t)}})}function Gn(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=Wn(t,"unsubscribe");r&&r.call(t)}}catch(n){Kn(n)}}function Jn(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function Xn(e,t,r){e._state="running";var n=e._observer;try{var i=Wn(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(Jn(e),!i)throw r;i.call(n,r);break;case"complete":Jn(e),i&&i.call(n)}}catch(a){Kn(a)}"closed"===e._state?Gn(e):"running"===e._state&&(e._state="ready")}function Zn(e,t,r){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:r}],void Hn(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(Xn(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)})):void Xn(e,t,r);e._queue.push({type:t,value:r})}}var ei=/* @__PURE__ */function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new ti(this);try{this._cleanup=t.call(void 0,r)}catch(n){r.error(n)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(Jn(this),Gn(this))},Ln(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),ti=/* @__PURE__ */function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){Zn(this._subscription,"next",e)},t.error=function(e){Zn(this._subscription,"error",e)},t.complete=function(){Zn(this._subscription,"complete")},Ln(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),ri=/* @__PURE__ */function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new ei(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(r,n){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,a)}catch(r){n(r),i.unsubscribe()}},error:n,complete:r});else n(new TypeError(e+" is not a function"));function a(){i.unsubscribe(),r()}})},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(Yn(this))(function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(n){return r.error(n)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(Yn(this))(function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(n){return r.error(n)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=Yn(this),n=arguments.length>1,i=!1,a=arguments[1];return new r(function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(s){return r.error(s)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=Yn(this);return new i(function(t){var n,a=0;return function e(o){n=o.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){a===r.length?(n=void 0,t.complete()):e(i.from(r[a++]))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=Yn(this);return new r(function(n){var i=[],a=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(s){return n.error(s)}var a=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(a);e>=0&&i.splice(e,1),o()}});i.push(a)},error:function(e){n.error(e)},complete:function(){o()}});function o(){a.closed&&0===i.length&&n.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),a.unsubscribe()}})},t[Un]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var n=Wn(t,Un);if(n){var i=n.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return function(e){return e instanceof ri}(i)&&i.constructor===r?i:new r(function(e){return i.subscribe(e)})}if(zn("iterator")&&(n=Wn(t,Bn)))return new r(function(e){Hn(function(){if(!e.closed){for(var r,i=Rn(n.call(t));!(r=i()).done;){var a=r.value;if(e.next(a),e.closed)return}e.complete()}})});if(Array.isArray(t))return new r(function(e){Hn(function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}})});throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)(function(e){Hn(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})})},Ln(e,null,[{key:Qn,get:function(){return this}}]),e}();qn()&&Object.defineProperty(ri,/* @__PURE__ */Symbol("extensions"),{value:{symbol:Un,hostReportError:Kn},configurable:!0}),function(e){var t,r=e.Symbol;if("function"==typeof r)if(r.observable)t=r.observable;else{t="function"==typeof r.for?r.for("https://github.com/benlesh/symbol-observable"):r("https://github.com/benlesh/symbol-observable");try{r.observable=t}catch(n){}}else t="@@observable"}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")());var ni=ri.prototype,ii="@@observable";ni[ii]||(ni[ii]=function(){return this});var ai=Object.prototype.toString;function oi(e){return si(e)}function si(e,t){switch(ai.call(e)){case"[object Array]":if((t=t||/* @__PURE__ */new Map).has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach(function(e,n){r[n]=si(e,t)}),r;case"[object Object]":if((t=t||/* @__PURE__ */new Map).has(e))return t.get(e);var n=Object.create(Object.getPrototypeOf(e));return t.set(e,n),Object.keys(e).forEach(function(r){n[r]=si(e[r],t)}),n;default:return e}}function ci(e){var t=/* @__PURE__ */new Set([e]);return t.forEach(function(e){Ct(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(r){Ct(e[r])&&t.add(e[r])})}),e}function ui(e){return!1!==globalThis.__DEV__&&ci(e),e}function li(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}function di(e,t,r){return new ri(function(n){var i={then:function(e){return new Promise(function(t){return t(e())})}};function a(e,t){return function(r){if(e){var a=function(){return n.closed?0:e(r)};i=i.then(a,a).then(function(e){return n.next(e)},function(e){return n.error(e)})}else n[t](r)}}var o={next:a(t,"next"),error:a(r,"error"),complete:function(){i.then(function(){return n.complete()})}},s=e.subscribe(o);return function(){return s.unsubscribe()}})}function pi(e){function t(t){Object.defineProperty(e,t,{value:ri})}return Tt&&Symbol.species&&t(Symbol.species),t("@@species"),e}function hi(e){return e&&"function"==typeof e.then}var fi=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=/* @__PURE__ */new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),li(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),li(r.observers,"error",e))},complete:function(){var e=r,t=e.sub,n=e.sources;if(null!==t){var i=(void 0===n?[]:n).shift();i?hi(i)?i.then(function(e){return r.sub=e.subscribe(r.handlers)},r.handlers.error):r.sub=i.subscribe(r.handlers):(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),li(r.observers,"complete"))}}},r.nextResultListeners=/* @__PURE__ */new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.error(e)},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new ri(t)]),hi(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return T(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=/* @__PURE__ */new Set,r.forEach(function(r){return r(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},t}(ri);function mi(e){return"incremental"in e}function _i(e){return Ct(e)&&"payload"in e}function vi(e,t){var r=e,n=new Fn;return mi(t)&&wn(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,a=i.length-1;a>=0;--a){var o=i[a],s=!isNaN(+o)?[]:{};s[o]=t,t=s}r=n.merge(r,t)}),r}function yi(e){return wn(gi(e))}function gi(e){var t=wn(e.errors)?e.errors.slice(0):[];return mi(e)&&wn(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}function bi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=/* @__PURE__ */Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];void 0!==n&&(r[t]=n)})}),r}function ki(e,t){return bi(e,t,t.variables&&{variables:bi(D(D({},e&&e.variables),t.variables))})}function wi(e){return new ri(function(t){t.error(e)})}pi(fi);var xi=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n};function Si(e,t){return t?t(e):ri.of()}function Ei(e){return"function"==typeof e?new Oi(e):e}function ji(e){return e.request.length<=1}var Oi=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return ri.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(Ei).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var i,a=Ei(r),o=Ei(n||new e(Si));return i=ji(a)&&ji(o)?new e(function(e){return t(e)?a.request(e)||ri.of():o.request(e)||ri.of()}):new e(function(e,r){return t(e)?a.request(e,r)||ri.of():o.request(e,r)||ri.of()}),Object.assign(i,{left:a,right:o})},e.execute=function(e,t){return e.request(function(e,t){var r=D({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r=D(D({},r),"function"==typeof e?e(r):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return D({},r)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?xr(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(t.indexOf(i)<0)throw J(44,i)}return e}(t))))||ri.of()},e.concat=function(t,r){var n=Ei(t);if(ji(n))return!1!==globalThis.__DEV__&&G.warn(36,n),n;var i,a=Ei(r);return i=ji(a)?new e(function(e){return n.request(e,function(e){return a.request(e)||ri.of()})||ri.of()}):new e(function(e,t){return n.request(e,function(e){return a.request(e,t)||ri.of()})||ri.of()}),Object.assign(i,{left:n,right:a})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(Si)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw J(37)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),Ti=Oi.execute;function Di(e){var t=null,r=null,n=!1,i=[],a=[];function o(e){if(!r){if(a.length){var t=a.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){r=e,a.slice().forEach(function(t){t[1](e)}),!t||t()}function c(){n=!0,a.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),!t||t()}t=function(){t=null,e.removeListener("data",o),e.removeListener("error",s),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",o),e.on("error",s),e.on("end",c),e.on("finish",c),e.on("close",c);var u={next:function(){return new Promise(function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void a.push([e,t])})}};return Dt&&(u[Symbol.asyncIterator]=function(){return this}),u}function Ni(e){var t={next:function(){return e.read()}};return Dt&&(t[Symbol.asyncIterator]=function(){return this}),t}function Ii(e){var t,r,n=e;if(e.body&&(n=e.body),function(e){return!(!Dt||!e[Symbol.asyncIterator])}(n))return r=n[Symbol.asyncIterator](),(t={next:function(){return r.next()}})[Symbol.asyncIterator]=function(){return this},t;if(function(e){return!!e.getReader}(n))return Ni(n.getReader());if(function(e){return!!e.stream}(n))return Ni(n.stream().getReader());if(function(e){return!!e.arrayBuffer}(n))return function(e){var t=!1,r={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise(function(t,r){e.then(function(e){t({value:e,done:!1})}).catch(r)}))}};return Dt&&(r[Symbol.asyncIterator]=function(){return this}),r}(n.arrayBuffer());if(function(e){return!!e.pipe}(n))return Di(n);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var Ai=/* @__PURE__ */Symbol();function Ci(e){return e.hasOwnProperty("graphQLErrors")}var Pi=function(e){function t(r){var n,i,a=r.graphQLErrors,o=r.protocolErrors,s=r.clientErrors,c=r.networkError,u=r.errorMessage,l=r.extraInfo,d=e.call(this,u)||this;return d.name="ApolloError",d.graphQLErrors=a||[],d.protocolErrors=o||[],d.clientErrors=s||[],d.networkError=c||null,d.message=u||(i=C(C(C([],(n=d).graphQLErrors,!0),n.clientErrors,!0),n.protocolErrors,!0),n.networkError&&i.push(n.networkError),i.map(function(e){return Ct(e)&&e.message||"Error message not found."}).join("\n")),d.extraInfo=l,d.cause=C(C(C([c],a||[],!0),o||[],!0),s||[],!0).find(function(e){return!!e})||null,d.__proto__=t.prototype,d}return T(t,e),t}(Error),Fi=Object.prototype.hasOwnProperty;function Ri(e){var t={};return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}function Mi(e,t){if(e.status>=300){xi(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(n){var r=n;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}var $i=function(e,t){var r;try{r=JSON.stringify(e)}catch(i){var n=J(40,t,i.message);throw n.parseError=i,n}return r},Li={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},qi=function(e,t){return t(e)};function zi(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i={},a={};r.forEach(function(e){i=D(D(D({},i),e.options),{headers:D(D({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),a=D(D({},a),e.http)}),i.headers&&(i.headers=function(e,t){if(!t){var r={};return Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]=e[t]}),r}var n={};Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}});var i={};return Object.keys(n).forEach(function(e){i[n[e].originalName]=n[e].value}),i}(i.headers,a.preserveHeaderCase));var o=e.operationName,s=e.extensions,c=e.variables,u=e.query,l={operationName:o,variables:c};return a.includeExtensions&&(l.extensions=s),a.includeQuery&&(l.query=t(u,bn)),{options:i,body:l}}var Vi=U(function(){return fetch}),Bi=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,n=e.fetch,i=e.print,a=void 0===i?qi:i,o=e.includeExtensions,s=e.preserveHeaderCase,c=e.useGETForQueries,u=e.includeUnusedVariables,l=void 0!==u&&u,d=N(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&function(e){if(!e&&"undefined"==typeof fetch)throw J(38)}(n||Vi);var p={http:{includeExtensions:o,preserveHeaderCase:s},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new Oi(function(e){var t=function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")}(e,r),i=e.getContext(),o={};if(i.clientAwareness){var s=i.clientAwareness,u=s.name,d=s.version;u&&(o["apollographql-client-name"]=u),d&&(o["apollographql-client-version"]=d)}var h=D(D({},o),i.headers),f={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:h};if(yt(["client"],e.query)){var m=Nn(e.query);if(!m)return wi(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=m}var _,v,y,g,b,k=zi(e,a,Li,p,f),w=k.options,x=k.body;x.variables&&!l&&(x.variables=(_=x.variables,v=e.query,y=D({},_),g=new Set(Object.keys(_)),ct(v,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&g.delete(e.name.value)}}),g.forEach(function(e){delete y[e]}),y)),w.signal||"undefined"==typeof AbortController||(b=new AbortController,w.signal=b.signal);var S,E="OperationDefinition"===(S=jr(e.query)).kind&&"subscription"===S.operation,j=yt(["defer"],e.query);if(c&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(w.method="GET"),j||E){w.headers=w.headers||{};var O="multipart/mixed;";E&&j&&!1!==globalThis.__DEV__&&G.warn(39),E?O+="boundary=graphql;subscriptionSpec=1.0,application/json":j&&(O+="deferSpec=20220824,application/json"),w.headers.accept=O}if("GET"===w.method){var T=function(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=$i(t.variables,"Variables map")}catch(C){return{parseError:C}}n("variables",i)}if(t.extensions){var a=void 0;try{a=$i(t.extensions,"Extensions map")}catch(C){return{parseError:C}}n("extensions",a)}var o="",s=e,c=e.indexOf("#");-1!==c&&(o=e.substr(c),s=e.substr(0,c));var u=-1===s.indexOf("?")?"?":"&";return{newURI:s+u+r.join("&")+o}}(t,x),N=T.newURI,C=T.parseError;if(C)return wi(C);t=N}else try{w.body=$i(x,"Payload")}catch(P){return wi(P)}return new ri(function(r){var i=n||U(function(){return fetch})||Vi,a=r.next.bind(r);return i(t,w).then(function(t){var r;e.setContext({response:t});var n,i=null===(r=t.headers)||void 0===r?void 0:r.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?function(e,t){return I(this,void 0,void 0,function(){var r,n,i,a,o,s,c,u,l,d,p,h,f,m,_,v,y,g,b,k,w,x,S,E;return A(this,function(j){switch(j.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),n=null===(E=e.headers)||void 0===E?void 0:E.get("content-type"),i="boundary=",a=(null==n?void 0:n.includes(i))?null==n?void 0:n.substring((null==n?void 0:n.indexOf(i))+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",o="\r\n--".concat(a),s="",c=Ii(e),u=!0,j.label=1;case 1:return u?[4,c.next()]:[3,3];case 2:for(l=j.sent(),d=l.value,p=l.done,h="string"==typeof d?d:r.decode(d),f=s.length-o.length+1,u=!p,m=(s+=h).indexOf(o,f);m>-1;){if(_=void 0,x=[s.slice(0,m),s.slice(m+o.length)],s=x[1],v=(_=x[0]).indexOf("\r\n\r\n"),y=Ri(_.slice(0,v)),(g=y["content-type"])&&-1===g.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(b=_.slice(v))if(k=Mi(e,b),Object.keys(k).length>1||"data"in k||"incremental"in k||"errors"in k||"payload"in k)if(_i(k)){if(w={},"payload"in k){if(1===Object.keys(k).length&&null===k.payload)return[2];w=D({},k.payload)}"errors"in k&&(w=D(D({},w),{extensions:D(D({},"extensions"in w?w.extensions:null),(S={},S[Ai]=k.errors,S))})),t(w)}else t(k);else if(1===Object.keys(k).length&&"hasNext"in k&&!k.hasNext)return[2];m=s.indexOf(o)}return[3,1];case 3:return[2]}})})}(t,a):(n=e,function(e){return e.text().then(function(t){return Mi(e,t)}).then(function(t){return Array.isArray(t)||Fi.call(t,"data")||Fi.call(t,"errors")||xi(e,t,"Server response was missing for query '".concat(Array.isArray(n)?n.map(function(e){return e.operationName}):n.operationName,"'.")),t})})(t).then(a)}).then(function(){b=void 0,r.complete()}).catch(function(e){b=void 0,function(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(e,r)}),function(){b&&b.abort()}})})},Ui=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,Bi(t).request)||this;return r.options=t,r}return T(t,e),t}(Oi);const{toString:Qi,hasOwnProperty:Wi}=Object.prototype,Yi=Function.prototype.toString,Ki=/* @__PURE__ */new Map;function Hi(e,t){try{return Gi(e,t)}finally{Ki.clear()}}function Gi(e,t){if(e===t)return!0;const r=Qi.call(e);if(r!==Qi.call(t))return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(ea(e,t))return!0;const r=Ji(e),n=Ji(t),i=r.length;if(i!==n.length)return!1;for(let e=0;e<i;++e)if(!Wi.call(t,r[e]))return!1;for(let a=0;a<i;++a){const n=r[a];if(!Gi(e[n],t[n]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e===+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(ea(e,t))return!0;const n=e.entries(),i="[object Map]"===r;for(;;){const e=n.next();if(e.done)break;const[r,a]=e.value;if(!t.has(r))return!1;if(i&&!Gi(a,t.get(r)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let r=e.byteLength;if(r===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const r=Yi.call(e);return r===Yi.call(t)&&!function(e,t){const r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(r,Zi)}}return!1}function Ji(e){return Object.keys(e).filter(Xi,e)}function Xi(e){return void 0!==this[e]}const Zi="{ [native code] }";function ea(e,t){let r=Ki.get(e);if(r){if(r.has(t))return!0}else Ki.set(e,r=/* @__PURE__ */new Set);return r.add(t),!1}function ta(e,t,r,n){var i=t.data,a=N(t,["data"]),o=r.data;return Hi(a,N(r,["data"]))&&ra(jr(e).selectionSet,i,o,{fragmentMap:Ft(Sr(e)),variables:n})}function ra(e,t,r,n){if(t===r)return!0;var i=/* @__PURE__ */new Set;return e.selections.every(function(e){if(i.has(e))return!0;if(i.add(e),!vt(e,n.variables))return!0;if(na(e))return!0;if(br(e)){var a=yr(e),o=t&&t[a],s=r&&r[a],c=e.selectionSet;if(!c)return Hi(o,s);var u=Array.isArray(o),l=Array.isArray(s);if(u!==l)return!1;if(u&&l){var d=o.length;if(s.length!==d)return!1;for(var p=0;p<d;++p)if(!ra(c,o[p],s[p],n))return!1;return!0}return ra(c,o,s,n)}var h=Rt(e,n.fragmentMap);return h?!!na(h)||ra(h.selectionSet,t,r,n):void 0})}function na(e){return!!e.directives&&e.directives.some(ia)}function ia(e){return"nonreactive"===e.name.value}var aa=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=_n(Pt,{max:Ht["cache.fragmentQueryDocuments"]||1e3,cache:Ut})}return e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(D(D({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t,r=this,n=e.fragment,i=e.fragmentName,a=e.from,o=e.optimistic,s=void 0===o||o,c=N(e,["fragment","fragmentName","from","optimistic"]),u=this.getFragmentDoc(n,i),l=D(D({},c),{returnPartialData:!0,id:void 0===a||"string"==typeof a?a:this.identify(a),query:u,optimistic:s});return new ri(function(e){return r.watch(D(D({},l),{immediate:!0,callback:function(r){if(!t||!ta(u,{data:null==t?void 0:t.result},{data:r.result})){var n={data:r.result,complete:!!r.complete};r.missing&&(n.missing=Cn(r.missing.map(function(e){return e.missing}))),t=r,e.next(n)}}}))})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(D(D({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=N(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,i=e.fragmentName,a=N(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(n,i),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var n=r.readQuery(e),i=t(n);return null==i?n:(r.writeQuery(D(D({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var n=r.readFragment(e),i=t(n);return null==i?n:(r.writeFragment(D(D({},e),{data:i})),i)}})},e}();!1!==globalThis.__DEV__&&(aa.prototype.getMemoryInternals=er);var oa=function(e){function t(r,n,i,a){var o,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=a,Array.isArray(s.path)){s.missing=s.message;for(var c=s.path.length-1;c>=0;--c)s.missing=((o={})[s.path[c]]=s.missing,o)}else s.missing=s.path;return s.__proto__=t.prototype,s}return T(t,e),t}(Error),sa=Object.prototype.hasOwnProperty;function ca(e){return null==e}function ua(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=ca(n)?ca(i)?void 0:{_id:i}:{id:n}),ca(n)&&!ca(i)&&(n=i),!ca(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var la={dataIdFromObject:ua,addTypename:!0,resultCaching:!0,canonizeResults:!1};function da(e){var t=e.canonizeResults;return void 0===t?la.canonizeResults:t}var pa=/^[_a-z][_0-9a-z]*/i;function ha(e){var t=e.match(pa);return t?t[0]:e}function fa(e,t,r){return!!Ct(t)&&(kn(t)?t.every(function(t){return fa(e,t,r)}):e.selections.every(function(e){if(br(e)&&vt(e,r)){var n=yr(e);return sa.call(t,n)&&(!e.selectionSet||fa(e.selectionSet,t[n],r))}return!0}))}function ma(e){return Ct(e)&&!pr(e)&&!kn(e)}function _a(e,t){var r=Ft(Sr(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var va,ya,ga=/* @__PURE__ */Object.create(null),ba=function(){return ga},ka=/* @__PURE__ */Object.create(null),wa=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=/* @__PURE__ */Object.create(null),this.rootIds=/* @__PURE__ */Object.create(null),this.refs=/* @__PURE__ */Object.create(null),this.getFieldValue=function(e,t){return ui(pr(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return pr(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return dr(e);if(pr(e))return e;var n=r.policies.identify(e)[0];if(n){var i=dr(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return D({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),sa.call(this.data,e)){var r=this.data[e];if(r&&sa.call(r,t))return r[t]}return"__typename"===t&&sa.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof ja?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),sa.call(this.data,e)?this.data[e]:this instanceof ja?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?/* @__PURE__ */Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;pr(e)&&(e=e.__ref),pr(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(r=e):e,a="string"==typeof t?this.lookup(r=t):t;if(a){G("string"==typeof r,1);var o=new Fn(Ta).merge(i,a);if(this.data[r]=o,o!==i&&(delete this.refs[r],this.group.caching)){var s=/* @__PURE__ */Object.create(null);i||(s.__exists=1),Object.keys(a).forEach(function(e){if(!i||i[e]!==o[e]){s[e]=1;var t=ha(e);t===e||n.policies.hasKeyArgs(o.__typename,t)||(s[t]=1),void 0!==o[e]||n instanceof ja||delete o[e]}}),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[r]!==o.__typename||delete s.__typename,Object.keys(s).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=/* @__PURE__ */Object.create(null),a=!1,o=!0,s={DELETE:ga,INVALIDATE:ka,isReference:pr,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||dr(e)}:t,{store:r})}};if(Object.keys(n).forEach(function(c){var u=ha(c),l=n[c];if(void 0!==l){var d="function"==typeof t?t:t[c]||t[u];if(d){var p=d===ba?ga:d(ui(l),D(D({},s),{fieldName:u,storeFieldName:c,storage:r.getStorage(e,c)}));if(p===ka)r.group.dirty(e,c);else if(p===ga&&(p=void 0),p!==l&&(i[c]=p,a=!0,l=p,!1!==globalThis.__DEV__)){var h=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&G.warn(2,e),!0};if(pr(p))h(p);else if(Array.isArray(p))for(var f=!1,m=void 0,_=0,v=p;_<v.length;_++){var y=v[_];if(pr(y)){if(f=!0,h(y))break}else if("object"==typeof y&&y)r.policies.identify(y)[0]&&(m=y);if(f&&void 0!==m){!1!==globalThis.__DEV__&&G.warn(3,m);break}}}}void 0!==l&&(o=!1)}}),a)return this.merge(e,i),o&&(this instanceof ja?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var a=this.getFieldValue(i,"__typename"),o=t&&r?this.policies.getStoreFieldName({typename:a,fieldName:t,args:r}):t;return this.modify(e,o?((n={})[o]=ba,n):ba)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(sa.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof ja&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){sa.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&sa.call(e,r)||t.delete(r)}),e){var r=e.__META,n=N(e,["__META"]);Object.keys(n).forEach(function(e){t.merge(e,n[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=/* @__PURE__ */new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof ja?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){sa.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof ja;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!sa.call(this.refs,e)){var t=this.refs[e]=/* @__PURE__ */Object.create(null),r=this.data[e];if(!r)return t;var n=/* @__PURE__ */new Set([r]);n.forEach(function(e){pr(e)&&(t[e.__ref]=!0),Ct(e)&&Object.keys(e).forEach(function(t){var r=e[t];Ct(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),xa=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?pn():null,this.keyMaker=new St(jt)},e.prototype.depend=function(e,t){if(this.d){this.d(Sa(e,t));var r=ha(t);r!==t&&this.d(Sa(e,r)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(Sa(e,t),"__exists"===t?"forget":"setDirty")},e}();function Sa(e,t){return t+"#"+e}function Ea(e,t){Da(e)&&e.group.depend(t,"__exists")}va=wa||(wa={}),ya=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=void 0===n||n,a=t.seed,o=e.call(this,r,new xa(i))||this;return o.stump=new Oa(o),o.storageTrie=new St(jt),a&&o.replace(a),o}return T(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(va),va.Root=ya;var ja=function(e){function t(t,r,n,i){var a=e.call(this,r.policies,i)||this;return a.id=t,a.parent=r,a.replay=n,a.group=i,n(a),a}return T(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){Hi(n[r],i[r])||t.group.dirty(e,r)}):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return D(D({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return sa.call(this.data,t)?D(D({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(wa),Oa=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new xa(t.group.caching,t.group))||this}return T(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(ja);function Ta(e,t,r){var n=e[r],i=t[r];return Hi(n,i)?n:i}function Da(e){return!!(e instanceof wa&&e.group.caching)}var Na=function(){function e(){this.known=new(Ot?WeakSet:Set),this.pool=new St(jt),this.passes=/* @__PURE__ */new WeakMap,this.keysByJSON=/* @__PURE__ */new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return Ct(e)&&this.known.has(e)},e.prototype.pass=function(e){if(Ct(e)){var t=function(e){return Ct(e)?kn(e)?e.slice(0):D({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(Ct(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var n=e.map(this.admit,this);return(s=this.pool.lookupArray(n)).array||(this.known.add(s.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),a=[i],o=this.sortedKeys(e);a.push(o.json);var s,c=a.length;if(o.sorted.forEach(function(r){a.push(t.admit(e[r]))}),!(s=this.pool.lookupArray(a)).object){var u=s.object=Object.create(i);this.known.add(u),o.sorted.forEach(function(e,t){u[e]=a[c+t]}),!1!==globalThis.__DEV__&&Object.freeze(u)}return s.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}();function Ia(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Aa=function(){function e(e){var t=this;this.knownResults=new(jt?WeakMap:Map),this.config=bi(e,{addTypename:!1!==e.addTypename,canonizeResults:da(e)}),this.canon=e.canon||new Na,this.executeSelectionSet=_n(function(e){var r,n=e.context.canonizeResults,i=Ia(e);i[3]=!n;var a=(r=t.executeSelectionSet).peek.apply(r,i);return a?n?D(D({},a),{result:t.canon.admit(a.result)}):a:(Ea(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||Ht["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:Ia,makeCacheKey:function(e,t,r,n){if(Da(r.store))return r.store.makeCacheKey(e,pr(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=_n(function(e){return Ea(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||Ht["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(Da(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Na},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.rootId,i=void 0===n?"ROOT_QUERY":n,a=e.variables,o=e.returnPartialData,s=void 0===o||o,c=e.canonizeResults,u=void 0===c?this.config.canonizeResults:c,l=this.config.cache.policies;a=D(D({},Or(Er(r))),a);var d,p=dr(i),h=this.executeSelectionSet({selectionSet:jr(r).selectionSet,objectOrReference:p,enclosingRef:p,context:D({store:t,query:r,policies:l,variables:a,varString:cr(a),canonizeResults:u},_a(r,this.config.fragments))});if(h.missing&&(d=[new oa(Ca(h.missing),h.missing,r,a)],!s))throw d[0];return{result:h.result,complete:!d,missing:d}},e.prototype.isFresh=function(e,t,r,n){if(Da(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,r=e.selectionSet,n=e.objectOrReference,i=e.enclosingRef,a=e.context;if(pr(n)&&!a.policies.rootTypenamesById[n.__ref]&&!a.store.has(n.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(n.__ref," object")};var o,s=a.variables,c=a.policies,u=a.store.getFieldValue(n,"__typename"),l=[],d=new Fn;function p(e,t){var r;return e.missing&&(o=d.merge(o,((r={})[t]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof u&&!c.rootIdsByTypename[u]&&l.push({__typename:u});var h=new Set(r.selections);h.forEach(function(e){var r,f;if(vt(e,s))if(br(e)){var m=c.readField({fieldName:e.name.value,field:e,variables:a.variables,from:n},a),_=yr(e);void 0===m?Tn.added(e)||(o=d.merge(o,((r={})[_]="Can't find field '".concat(e.name.value,"' on ").concat(pr(n)?n.__ref+" object":"object "+JSON.stringify(n,null,2)),r))):kn(m)?m.length>0&&(m=p(t.executeSubSelectedArray({field:e,array:m,enclosingRef:i,context:a}),_)):e.selectionSet?null!=m&&(m=p(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:m,enclosingRef:pr(m)?m:i,context:a}),_)):a.canonizeResults&&(m=t.canon.pass(m)),void 0!==m&&l.push(((f={})[_]=m,f))}else{var v=Rt(e,a.lookupFragment);if(!v&&e.kind===ke.FRAGMENT_SPREAD)throw J(9,e.name.value);v&&c.fragmentMatches(v,u)&&v.selectionSet.selections.forEach(h.add,h)}});var f={result:Cn(l),missing:o},m=a.canonizeResults?this.canon.admit(f):ui(f);return m.result&&this.knownResults.set(m.result,r),m},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,a=e.enclosingRef,o=e.context,s=new Fn;function c(e,r){var n;return e.missing&&(t=s.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(o.store.canRead)),i=i.map(function(e,t){return null===e?null:kn(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:a,context:o}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:pr(e)?e:a,context:o}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=/* @__PURE__ */new Set([r]);n.forEach(function(r){Ct(r)&&(G(!pr(r),10,function(e,t){return pr(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,r),t.name.value),Object.values(r).forEach(n.add,n))})}}(o.store,n,e),e)}),{result:o.canonizeResults?this.canon.admit(i):i,missing:t}},e}();function Ca(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(Iy){return Iy}}var Pa=new qr,Fa=/* @__PURE__ */new WeakMap;function Ra(e){var t=Fa.get(e);return t||Fa.set(e,t={vars:/* @__PURE__ */new Set,dep:pn()}),t}function Ma(e){Ra(e).vars.forEach(function(t){return t.forgetCache(e)})}function $a(e){var t=/* @__PURE__ */new Set,r=/* @__PURE__ */new Set,n=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(function(e){Ra(e).dep.dirty(n),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)});var o=Array.from(r);r.clear(),o.forEach(function(t){return t(e)})}}else{var s=Pa.getValue();s&&(i(s),Ra(s).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var i=n.attachCache=function(e){return t.add(e),Ra(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}var La=/* @__PURE__ */Object.create(null);function qa(e){var t=JSON.stringify(e);return La[t]||(La[t]=/* @__PURE__ */Object.create(null))}function za(e){var t=qa(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},i=r.keyObject=Ba(e,function(e){var i=Wa(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&sa.call(t,e[0])&&(i=Wa(t,e,Qa)),G(void 0!==i,4,e.join("."),t),i});return"".concat(r.typename,":").concat(JSON.stringify(i))})}function Va(e){var t=qa(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,a=r.fieldName,o=Ba(e,function(e){var r=e[0],a=r.charAt(0);if("@"!==a)if("$"!==a){if(t)return Wa(t,e)}else{var o=r.slice(1);if(i&&sa.call(i,o)){var s=e.slice(0);return s[0]=o,Wa(i,s)}}else if(n&&wn(n.directives)){var c=r.slice(1),u=n.directives.find(function(e){return e.name.value===c}),l=u&&vr(u,i);return l&&Wa(l,e.slice(1))}}),s=JSON.stringify(o);return(t||"{}"!==s)&&(a+=":"+s),a})}function Ba(e,t){var r=new Fn;return Ua(e).reduce(function(e,n){var i,a=t(n);if(void 0!==a){for(var o=n.length-1;o>=0;--o)(i={})[n[o]]=a,a=i;e=r.merge(e,a)}return e},/* @__PURE__ */Object.create(null))}function Ua(e){var t=qa(e);if(!t.paths){var r=t.paths=[],n=[];e.forEach(function(t,i){kn(t)?(Ua(t).forEach(function(e){return r.push(n.concat(e))}),n.length=0):(n.push(t),kn(e[i+1])||(r.push(n.slice(0)),n.length=0))})}return t.paths}function Qa(e,t){return e[t]}function Wa(e,t,r){return r=r||Qa,Ya(t.reduce(function e(t,n){return kn(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}function Ya(e){return Ct(e)?kn(e)?e.map(Ya):Ba(Object.keys(e).sort(),function(t){return Wa(e,t)}):e}function Ka(e){return void 0!==e.args?e.args:e.field?vr(e.field,e.variables):null}var Ha=function(){},Ga=function(e,t){return t.fieldName},Ja=function(e,t,r){return(0,r.mergeObjects)(e,t)},Xa=function(e,t){return t},Za=function(){function e(e){this.config=e,this.typePolicies=/* @__PURE__ */Object.create(null),this.toBeAdded=/* @__PURE__ */Object.create(null),this.supertypeMap=/* @__PURE__ */new Map,this.fuzzySubtypes=/* @__PURE__ */new Map,this.rootIdsByTypename=/* @__PURE__ */Object.create(null),this.rootTypenamesById=/* @__PURE__ */Object.create(null),this.usingPossibleTypes=!1,this.config=D({dataIdFromObject:ua},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,n=this,i=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a,o=t&&t.storeObject||e,s=D(D({},t),{typename:i,storeObject:o,readField:t&&t.readField||function(){var e=to(arguments,o);return n.readField(e,{store:n.cache.data,variables:e.variables})}}),c=i&&this.getTypePolicy(i),u=c&&c.keyFn||this.config.dataIdFromObject;u;){var l=u(D(D({},e),o),s);if(!kn(l)){a=l;break}u=za(l)}return a=a?String(a):void 0,s.keyObject?[a,s.keyObject]:[a]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var n=e[r],i=n.queryType,a=n.mutationType,o=n.subscriptionType,s=N(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),o&&t.setRootTypename("Subscription",r),sa.call(t.toBeAdded,r)?t.toBeAdded[r].push(s):t.toBeAdded[r]=[s]})},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,a=t.fields;function o(e,t){e.merge="function"==typeof t?t:!0===t?Ja:!1===t?Xa:e.merge}o(n,t.merge),n.keyFn=!1===i?Ha:kn(i)?za(i):"function"==typeof i?i:n.keyFn,a&&Object.keys(a).forEach(function(t){var n=r.getFieldPolicy(e,t,!0),i=a[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,c=i.read,u=i.merge;n.keyFn=!1===s?Ga:kn(s)?Va(s):"function"==typeof s?s:n.keyFn,"function"==typeof c&&(n.read=c),o(n,u)}n.read&&n.merge&&(n.keyFn=n.keyFn||Ga)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&(G(!n||n===e,5,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(pa);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!sa.call(this.typePolicies,e)){var r=this.typePolicies[e]=/* @__PURE__ */Object.create(null);r.fields=/* @__PURE__ */Object.create(null);var n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(r,i){if(r.test(e)){var a=t.supertypeMap.get(i);a&&a.forEach(function(e){return n.add(e)})}})),n&&n.size&&n.forEach(function(e){var n=t.getTypePolicy(e),i=n.fields,a=N(n,["fields"]);Object.assign(r,a),Object.assign(r.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(r){t.updateTypePolicy(e,r)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=/* @__PURE__ */Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=/* @__PURE__ */new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var o=this.getSupertypeSet(t,!0),s=[o],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},u=!(!r||!this.fuzzySubtypes.size),l=!1,d=0;d<s.length;++d){var p=s[d];if(p.has(a))return o.has(a)||(l&&!1!==globalThis.__DEV__&&G.warn(6,t,a),o.add(a)),!0;p.forEach(c),u&&d===s.length-1&&fa(e.selectionSet,r,n)&&(u=!1,l=!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&c(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!(!r||!r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n,!1),a=i&&i.keyFn;if(a&&r)for(var o={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=Ka(e);a;){var c=a(s,o);if(!kn(c)){t=c||n;break}a=Va(c)}return void 0===t&&(t=e.field?function(e,t){var r=null;e.directives&&(r={},e.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(n){var i=n.name,a=n.value;return hr(r[e.name.value],i,a,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){var r=e.name,i=e.value;return hr(n,r,i,t)})),_r(e.name.value,n,r)}(e.field,e.variables):_r(n,Ka(e))),!1===t?n:n===ha(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),a=ha(i),o=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,a,!1),c=s&&s.read;if(c){var u=eo(this,r,e,t,t.store.getStorage(pr(r)?r.__ref:r,i));return Pa.withValue(this.cache,c,[o,u])}return o}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var a=r.field,o=r.typename,s=r.merge;return s===Ja?ro(n.store)(e,t):s===Xa?t:(n.overwrite&&(e=void 0),s(e,t,eo(this,void 0,{typename:o,fieldName:a.name.value,field:a,variables:n.variables},n,i||/* @__PURE__ */Object.create(null))))},e}();function eo(e,t,r,n,i){var a=e.getStoreFieldName(r),o=ha(a),s=r.variables||n.variables,c=n.store,u=c.toReference,l=c.canRead;return{args:Ka(r),field:r.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:pr,toReference:u,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(to(arguments,t,s),n)},mergeObjects:ro(n.store)}}function to(e,t,r){var n,i=e[0],a=e[1],o=e.length;return"string"==typeof i?n={fieldName:i,from:o>1?a:t}:(n=D({},i),sa.call(n,"from")||(n.from=t)),!1!==globalThis.__DEV__&&void 0===n.from&&!1!==globalThis.__DEV__&&G.warn(7,K(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function ro(e){return function(t,r){if(kn(t)||kn(r))throw J(8);if(Ct(t)&&Ct(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if(pr(t)&&ma(r))return e.merge(t.__ref,r),t;if(ma(t)&&pr(r))return e.merge(t,r.__ref),r;if(ma(t)&&ma(r))return D(D({},t),r)}return r}}function no(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:D(D({},e),{clientOnly:t,deferred:r})),i}var io=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,n=t.query,i=t.result,a=t.dataId,o=t.variables,s=t.overwrite,c=wr(n),u=new Fn;o=D(D({},Or(c)),o);var l=D(D({store:e,written:/* @__PURE__ */Object.create(null),merge:function(e,t){return u.merge(e,t)},variables:o,varString:cr(o)},_a(n,this.fragments)),{overwrite:!!s,incomingById:/* @__PURE__ */new Map,clientOnly:!1,deferred:!1,flavors:/* @__PURE__ */new Map}),d=this.processSelectionSet({result:i||/* @__PURE__ */Object.create(null),dataId:a,selectionSet:c.selectionSet,mergeTree:{map:/* @__PURE__ */new Map},context:l});if(!pr(d))throw J(11,i);return l.incomingById.forEach(function(t,n){var i=t.storeObject,a=t.mergeTree,o=t.fieldNodeSet,s=dr(n);if(a&&a.map.size){var c=r.applyMerges(a,s,i,l);if(pr(c))return;i=c}if(!1!==globalThis.__DEV__&&!l.overwrite){var u=/* @__PURE__ */Object.create(null);o.forEach(function(e){e.selectionSet&&(u[e.name.value]=!0)});Object.keys(i).forEach(function(e){(function(e){return!0===u[ha(e)]})(e)&&!function(e){var t=a&&a.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,r,n){var i=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},a=i(e);if(!a)return;var o=i(t);if(!o)return;if(pr(a))return;if(Hi(a,o))return;if(Object.keys(a).every(function(e){return void 0!==n.getFieldValue(o,e)}))return;var s=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),c=ha(r),u="".concat(s,".").concat(c);if(lo.has(u))return;lo.add(u);var l=[];kn(a)||kn(o)||[a,o].forEach(function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||l.includes(t)||l.push(t)});!1!==globalThis.__DEV__&&G.warn(14,c,s,l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"",u,D({},a),D({},o))}(s,i,e,l.store)})}e.merge(n,i)}),e.retain(d.__ref),d},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,a=e.context,o=e.mergeTree,s=this.cache.policies,c=/* @__PURE__ */Object.create(null),u=r&&s.rootTypenamesById[r]||gr(n,i,a.fragmentMap)||r&&a.store.get(r,"__typename");"string"==typeof u&&(c.__typename=u);var l=function(){var e=to(arguments,c,a.variables);if(pr(e.from)){var t=a.incomingById.get(e.from.__ref);if(t){var r=s.readField(D(D({},e),{from:t.storeObject}),a);if(void 0!==r)return r}}return s.readField(e,a)},d=/* @__PURE__ */new Set;this.flattenFields(i,n,a,u).forEach(function(e,r){var i,a=yr(r),p=n[a];if(d.add(r),void 0!==p){var h=s.getStoreFieldName({typename:u,fieldName:r.name.value,field:r,variables:e.variables}),f=oo(o,h),m=t.processFieldValue(p,r,r.selectionSet?no(e,!1,!1):e,f),_=void 0;r.selectionSet&&(pr(m)||ma(m))&&(_=l("__typename",m));var v=s.getMergeFunction(u,r.name.value,_);v?f.info={field:r,typename:u,merge:v}:uo(o,h),c=e.merge(c,((i={})[h]=m,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||Tn.added(r)||s.getReadFunction(u,r.name.value)||!1!==globalThis.__DEV__&&G.error(12,yr(r),n)});try{var p=s.identify(n,{typename:u,selectionSet:i,fragmentMap:a.fragmentMap,storeObject:c,readField:l}),h=p[0],f=p[1];r=r||h,f&&(c=a.merge(c,f))}catch(y){if(!r)throw y}if("string"==typeof r){var m=dr(r),_=a.written[r]||(a.written[r]=[]);if(_.indexOf(i)>=0)return m;if(_.push(i),this.reader&&this.reader.isFresh(n,m,i,a))return m;var v=a.incomingById.get(r);return v?(v.storeObject=a.merge(v.storeObject,c),v.mergeTree=so(v.mergeTree,o),d.forEach(function(e){return v.fieldNodeSet.add(e)})):a.incomingById.set(r,{storeObject:c,mergeTree:co(o)?void 0:o,fieldNodeSet:d}),m}return c},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?kn(e)?e.map(function(e,a){var o=i.processFieldValue(e,t,r,oo(n,a));return uo(n,a),o}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?oi(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=gr(t,e,r.fragmentMap));var i=/* @__PURE__ */new Map,a=this.cache.policies,o=new St(!1);return function e(s,c){var u=o.lookup(s,c.clientOnly,c.deferred);u.visited||(u.visited=!0,s.selections.forEach(function(o){if(vt(o,r.variables)){var s=c.clientOnly,u=c.deferred;if(s&&u||!wn(o.directives)||o.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var n=vr(e,r.variables);n&&!1===n.if||(u=!0)}}),br(o)){var l=i.get(o);l&&(s=s&&l.clientOnly,u=u&&l.deferred),i.set(o,no(r,s,u))}else{var d=Rt(o,r.lookupFragment);if(!d&&o.kind===ke.FRAGMENT_SPREAD)throw J(13,o.name.value);d&&a.fragmentMatches(d,n,t,r.variables)&&e(d.selectionSet,no(r,s,u))}}}))}(e,r),i},e.prototype.applyMerges=function(e,t,r,n,i){var a,o=this;if(e.map.size&&!pr(r)){var s,c=kn(r)||!pr(t)&&!ma(t)?void 0:t,u=r;c&&!i&&(i=[pr(c)?c.__ref:c]);var l=function(e,t){return kn(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var r=l(c,t),a=l(u,t);if(void 0!==a){i&&i.push(t);var d=o.applyMerges(e,r,a,n,i);d!==a&&(s=s||/* @__PURE__ */new Map).set(t,d),i&&G(i.pop()===t)}}),s&&(r=kn(u)?u.slice(0):D({},u),s.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(a=n.store).getStorage.apply(a,i)):r},e}(),ao=[];function oo(e,t){var r=e.map;return r.has(t)||r.set(t,ao.pop()||{map:/* @__PURE__ */new Map}),r.get(t)}function so(e,t){if(e===t||!t||co(t))return e;if(!e||co(e))return t;var r=e.info&&t.info?D(D({},e.info),t.info):e.info||t.info,n=e.map.size&&t.map.size,i={info:r,map:n?/* @__PURE__ */new Map:e.map.size?e.map:t.map};if(n){var a=new Set(t.map.keys());e.map.forEach(function(e,r){i.map.set(r,so(e,t.map.get(r))),a.delete(r)}),a.forEach(function(r){i.map.set(r,so(t.map.get(r),e.map.get(r)))})}return i}function co(e){return!e||!(e.info||e.map.size)}function uo(e,t){var r=e.map,n=r.get(t);n&&co(n)&&(ao.push(n),r.delete(t))}var lo=/* @__PURE__ */new Set;var po,ho,fo=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=/* @__PURE__ */new Set,r.addTypenameTransform=new gn(Tn),r.assumeImmutableResults=!0,r.makeVar=$a,r.txCount=0,r.config=function(e){return bi(la,e)}(t),r.addTypename=!!r.config.addTypename,r.policies=new Za({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return T(t,e),t.prototype.init=function(){var e=this.data=new wa.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new io(this,this.storeReader=new Aa({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:da(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=_n(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize||Ht["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(Da(r)){var n=e.optimistic,i=e.id,a=e.variables;return r.makeCacheKey(e.query,e.callback,cr({optimistic:n,id:i,variables:a}))}}}),
15
- /* @__PURE__ */new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,r=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(D(D({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r})).result||null}catch(n){if(n instanceof oa)return null;throw n}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(sa.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(D(D({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,r=this;return this.watches.size||Ra(t=this).vars.forEach(function(e){return e.attachCache(t)}),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){r.watches.delete(e)&&!r.watches.size&&Ma(r),r.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){var t;cr.reset(),bn.reset(),this.addTypenameTransform.resetCache(),null===(t=this.config.fragments)||void 0===t||t.resetCaches();var r=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),r},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(pr(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(t){!1!==globalThis.__DEV__&&G.warn(t)}},t.prototype.evict=function(e){if(!e.id){if(sa.call(e,"id"))return!1;e=D(D({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),cr.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),Ma(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,n=e.update,i=e.optimistic,a=void 0===i||i,o=e.removeOptimistic,s=e.onWatchUpdated,c=function(e){var i=r,a=i.data,o=i.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=a,r.optimisticData=o}},u=/* @__PURE__ */new Set;return s&&!this.txCount&&this.broadcastWatches(D(D({},e),{onWatchUpdated:function(e){return u.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,c):!1===a?c(this.data):c(),"string"==typeof o&&(this.optimisticData=this.optimisticData.removeLayer(o)),s&&u.size?(this.broadcastWatches(D(D({},e),{onWatchUpdated:function(e,t){var r=s.call(this,e,t);return!1!==r&&u.delete(e),r}})),u.size&&u.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,n,r))||r&&Hi(r.result,n.result)||e.callback(e.lastDiff=n,r)},t}(aa);function mo(e){return!!e&&e<7}!1!==globalThis.__DEV__&&(fo.prototype.getMemoryInternals=Zt),(ho=po||(po={}))[ho.loading=1]="loading",ho[ho.setVariables=2]="setVariables",ho[ho.fetchMore=3]="fetchMore",ho[ho.refetch=4]="refetch",ho[ho.poll=6]="poll",ho[ho.ready=7]="ready",ho[ho.error=8]="error";var _o=Object.assign,vo=Object.hasOwnProperty,yo=function(e){function t(t){var r=t.queryManager,n=t.queryInfo,i=t.options,a=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=bo)}catch(i){}var r=!a.observers.size;a.observers.add(e);var n=a.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(n.result),r&&a.reobserve().catch(function(){}),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=/* @__PURE__ */new Set,a.subscriptions=/* @__PURE__ */new Set,a.queryInfo=n,a.queryManager=r,a.waitForOwnResult=wo(i.fetchPolicy),a.isTornDown=!1,a.subscribeToMore=a.subscribeToMore.bind(a);var o=r.defaultOptions.watchQuery,s=(void 0===o?{}:o).fetchPolicy,c=void 0===s?"cache-first":s,u=i.fetchPolicy,l=void 0===u?c:u,d=i.initialFetchPolicy,p=void 0===d?"standby"===l?c:l:d;a.options=D(D({},i),{initialFetchPolicy:p,fetchPolicy:l}),a.queryId=n.queryId||r.generateQueryId();var h=wr(a.query);return a.queryName=h&&h.name&&h.name.value,a}return T(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||po.ready,n=D(D({},t),{loading:mo(r),networkStatus:r}),i=this.options.fetchPolicy,a=void 0===i?"cache-first":i;if(wo(a)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var o=this.queryInfo.getDiff();(o.complete||this.options.returnPartialData)&&(n.data=o.result),Hi(n.data,{})&&(n.data=void 0),o.complete?(delete n.partial,!o.complete||n.networkStatus!==po.loading||"cache-first"!==a&&"cache-only"!==a||(n.networkStatus=po.ready,n.loading=!1)):n.partial=!0,!1===globalThis.__DEV__||o.complete||this.options.partialRefetch||n.loading||n.data||n.error||ko(o.missing)}return e&&this.updateLastResult(n),n},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||((this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!ta(this.query,this.last.result,e,this.variables):!Hi(this.last.result,e))||t&&!Hi(this.last.variables,t))},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||Hi(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0},n=this.options.fetchPolicy;if(r.fetchPolicy="cache-and-network"===n?n:"no-cache"===n?"no-cache":"network-only",!1!==globalThis.__DEV__&&e&&vo.call(e,"variables")){var i=Er(this.query),a=i.variableDefinitions;a&&a.some(function(e){return"variables"===e.variable.name.value})||!1!==globalThis.__DEV__&&G.warn(20,e,(null===(t=i.name)||void 0===t?void 0:t.value)||i)}return e&&!Hi(this.options.variables,e)&&(r.variables=this.options.variables=D(D({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,po.refetch)},t.prototype.fetchMore=function(e){var t=this,r=D(D({},e.query?e:D(D(D(D({},this.options),{query:this.options.query}),e),{variables:D(D({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});r.query=this.transformDocument(r.query);var n=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):r.query;var i=this.queryInfo,a=i.networkStatus;i.networkStatus=po.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var o=/* @__PURE__ */new Set,s=null==e?void 0:e.updateQuery,c="no-cache"!==this.options.fetchPolicy;return c||G(s,21),this.queryManager.fetchQuery(n,r,po.fetchMore).then(function(u){if(t.queryManager.removeQuery(n),i.networkStatus===po.fetchMore&&(i.networkStatus=a),c)t.queryManager.cache.batch({update:function(n){var i=e.updateQuery;i?n.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return i(e,{fetchMoreResult:u.data,variables:r.variables})}):n.writeQuery({query:r.query,variables:r.variables,data:u.data})},onWatchUpdated:function(e){o.add(e.query)}});else{var l=t.getLast("result"),d=s(l.data,{fetchMoreResult:u.data,variables:r.variables});t.reportResult(D(D({},l),{data:d}),t.variables)}return u}).finally(function(){c&&!o.has(t.query)&&go(t)})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery(function(e,t){var i=t.variables;return n(e,{subscriptionData:r,variables:i})})},error:function(t){e.onError?e.onError(t):!1!==globalThis.__DEV__&&G.error(22,t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=bi(this.options,e||{});_o(this.options,t)},t.prototype.setVariables=function(e){return Hi(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},po.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,r=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,a=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:a}):t.fetchPolicy="variables-changed"===e?a:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,r){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t,r)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(r&&this.hasObservers()){if(!t||t.interval!==r){G(r,23),(t||(this.pollingInfo={})).interval=r;var n=function(){var t,r;e.pollingInfo&&(mo(e.queryInfo.networkStatus)||(null===(r=(t=e.options).skipPollAttempt)||void 0===r?void 0:r.call(t))?i():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},po.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var r=this.getLastError();return r&&this.last&&!Hi(t,this.last.variables)&&(r=void 0),this.last=D({result:this.queryManager.assumeImmutableResults?e:oi(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var n=t===po.refetch||t===po.fetchMore||t===po.poll,i=this.options.variables,a=this.options.fetchPolicy,o=bi(this.options,e||{}),s=n?o:_o(this.options,o),c=this.transformDocument(s.query);this.lastQuery=c,n||(this.updatePolling(),!e||!e.variables||Hi(e.variables,i)||"standby"===s.fetchPolicy||s.fetchPolicy!==a&&"function"!=typeof s.nextFetchPolicy||(this.applyNextFetchPolicy("variables-changed",s),void 0===t&&(t=po.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=wo(s.fetchPolicy));var u=function(){r.concast===p&&(r.waitForOwnResult=!1)},l=s.variables&&D({},s.variables),d=this.fetch(s,t,c),p=d.concast,h=d.fromLink,f={next:function(e){Hi(r.variables,l)&&(u(),r.reportResult(e,l))},error:function(e){Hi(r.variables,l)&&(Ci(e)||(e=new Pi({networkError:e})),u(),r.reportError(e,l))}};return n||!h&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=p,this.observer=f),p.addObserver(f),p},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.last;this.resetLastResults();var n=this.subscribe.apply(this,e);return this.last=r,n},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError(),n=this.isDifferentFromLastResult(e,t);(r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(r||n)&&li(this.observers,"next",e)},t.prototype.reportError=function(e,t){var r=D(D({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:po.error,loading:!1});this.updateLastResult(r,t),li(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t}(ri);function go(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,t){return this.nextFetchPolicy=n,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(e,t):r}}):e.reobserve()}function bo(e){!1!==globalThis.__DEV__&&G.error(24,e.message,e.stack)}function ko(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&G.debug(25,e)}function wo(e){return"network-only"===e||"no-cache"===e||"standby"===e}pi(yo);var xo=new(jt?WeakMap:Map);function So(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return xo.set(e,(xo.get(e)+1)%1e15),r.apply(this,arguments)})}function Eo(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var jo=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=/* @__PURE__ */new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;xo.has(r)||(xo.set(r,0),So(r,"evict"),So(r,"modify"),So(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||po.loading;return this.variables&&this.networkStatus!==po.loading&&!Hi(this.variables,e.variables)&&(t=po.setVariables),Hi(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){Eo(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&Hi(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(e);return this.updateLastDiff(r,e),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r=this,n=this.lastDiff&&this.lastDiff.diff;e&&!e.complete&&(null===(t=this.observableQuery)||void 0===t?void 0:t.getLastError())||(this.updateLastDiff(e),this.dirty||Hi(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return r.notify()},0))))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():go(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;Eo(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(mo(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var n=D(D({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&Hi(n,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=n))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===xo.get(this.cache)&&Hi(t,r.variables)&&Hi(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,a=new Fn,o=wn(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&wn(e.incremental)){var s=vi(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var c=this.getDiff();e.data=a.merge(c.result,e.data)}this.graphQLErrors=o,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(Oo(e,r.errorPolicy)?this.cache.performTransaction(function(a){if(i.shouldWrite(e,r.variables))a.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:xo.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete)return void(e.data=i.lastDiff.diff.result);var o=i.getDiffOptions(r.variables),s=a.diff(o);!i.stopped&&Hi(i.variables,r.variables)&&i.updateWatch(r.variables),i.updateLastDiff(s,o),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=po.ready},e.prototype.markError=function(e){return this.networkStatus=po.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function Oo(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!yi(e);return!n&&r&&e.data&&(n=!0),n}var To=Object.prototype.hasOwnProperty,Do=/* @__PURE__ */Object.create(null),No=function(){function e(e){var t=this;this.clientAwareness={},this.queries=/* @__PURE__ */new Map,this.fetchCancelFns=/* @__PURE__ */new Map,this.transformCache=new Yt(Ht["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new St(!1);var r=new gn(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults;var n=e.documentTransform;this.documentTransform=n?r.concat(n).concat(r):r,this.defaultContext=e.defaultContext||/* @__PURE__ */Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=/* @__PURE__ */Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(J(26))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return I(this,arguments,void 0,function(e){var t,r,n,i,a,o,s,c=e.mutation,u=e.variables,l=e.optimisticResponse,d=e.updateQueries,p=e.refetchQueries,h=void 0===p?[]:p,f=e.awaitRefetchQueries,m=void 0!==f&&f,_=e.update,v=e.onQueryUpdated,y=e.fetchPolicy,g=void 0===y?(null===(o=this.defaultOptions.mutate)||void 0===o?void 0:o.fetchPolicy)||"network-only":y,b=e.errorPolicy,k=void 0===b?(null===(s=this.defaultOptions.mutate)||void 0===s?void 0:s.errorPolicy)||"none":b,w=e.keepRootFields,x=e.context;return A(this,function(e){switch(e.label){case 0:return G(c,27),G("network-only"===g||"no-cache"===g,28),t=this.generateMutationId(),c=this.cache.transformForLink(this.transform(c)),r=this.getDocumentInfo(c).hasClientExports,u=this.getVariables(c,u),r?[4,this.localState.addExportedVariables(c,u,x)]:[3,2];case 1:u=e.sent(),e.label=2;case 2:return n=this.mutationStore&&(this.mutationStore[t]={mutation:c,variables:u,loading:!0,error:null}),i=l&&this.markMutationOptimistic(l,{mutationId:t,document:c,variables:u,fetchPolicy:g,errorPolicy:k,context:x,updateQueries:d,update:_,keepRootFields:w}),this.broadcastQueries(),a=this,[2,new Promise(function(e,r){return di(a.getObservableFromLink(c,D(D({},x),{optimisticResponse:i?l:void 0}),u,{},!1),function(e){if(yi(e)&&"none"===k)throw new Pi({graphQLErrors:gi(e)});n&&(n.loading=!1,n.error=null);var r=D({},e);return"function"==typeof h&&(h=h(r)),"ignore"===k&&yi(r)&&delete r.errors,a.markMutationResult({mutationId:t,result:r,document:c,variables:u,fetchPolicy:g,errorPolicy:k,context:x,update:_,updateQueries:d,awaitRefetchQueries:m,refetchQueries:h,removeOptimistic:i?t:void 0,onQueryUpdated:v,keepRootFields:w})}).subscribe({next:function(t){a.broadcastQueries(),"hasNext"in t&&!1!==t.hasNext||e(t)},error:function(e){n&&(n.loading=!1,n.error=e),i&&a.cache.removeOptimistic(t),a.broadcastQueries(),r(e instanceof Pi?e:new Pi({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var n=e.result,i=[],a="no-cache"===e.fetchPolicy;if(!a&&Oo(n,e.errorPolicy)){if(mi(n)||i.push({result:n.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),mi(n)&&wn(n.incremental)){var o=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),s=void 0;o.result&&(s=vi(o.result,n)),void 0!==s&&(n.data=s,i.push({result:s,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(e,a){var o=e.observableQuery,s=o&&o.queryName;if(s&&To.call(c,s)){var u=c[s],l=r.queries.get(a),d=l.document,p=l.variables,h=t.diff({query:d,variables:p,returnPartialData:!0,optimistic:!1}),f=h.result;if(h.complete&&f){var m=u(f,{mutationResult:n,queryName:d&&xr(d)||void 0,queryVariables:p});m&&i.push({result:m,dataId:"ROOT_QUERY",query:d,variables:p})}}})}if(i.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var u=[];if(this.refetchQueries({updateCache:function(t){a||i.forEach(function(e){return t.write(e)});var o,s=e.update,c=!(mi(o=n)||function(e){return"hasNext"in e&&"data"in e}(o))||mi(n)&&!n.hasNext;if(s){if(!a){var u=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});u.complete&&("incremental"in(n=D(D({},n),{data:u.result}))&&delete n.incremental,"hasNext"in n&&delete n.hasNext)}c&&s(t,n,{context:e.context,variables:e.variables})}a||e.keepRootFields||!c||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return u.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(u).then(function(){return n})}return Promise.resolve(n)},e.prototype.markMutationOptimistic=function(e,t){var r=this,n="function"==typeof e?e(t.variables,{IGNORE:Do}):e;return n!==Do&&(this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult(D(D({},t),{result:{data:n}}),e)}catch(i){!1!==globalThis.__DEV__&&G.error(i)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(e,t,r).concast.promise},e.prototype.getQueryStore=function(){var e=/* @__PURE__ */Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:gt(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:yt(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:On([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:Or(wr(e)),asQuery:D(D({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?D(D({},e),{operation:"query"}):e})})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return D(D({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=D(D({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new jo(this),n=new yo({queryManager:this,queryInfo:r,options:e});return n.lastQuery=t,this.queries.set(n.queryId,r),r.init({document:t,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var r=this;return void 0===t&&(t=this.generateQueryId()),G(e.query,29),G("Document"===e.query.kind,30),G(!e.returnPartialData,31),G(!e.pollInterval,32),this.fetchQuery(t,D(D({},e),{query:this.transform(e.query)})).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(J(33)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=po.loading:e.stop()}),this.mutationStore&&(this.mutationStore=/* @__PURE__ */Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=/* @__PURE__ */new Map,n=/* @__PURE__ */new Map,i=/* @__PURE__ */new Set;return Array.isArray(e)&&e.forEach(function(e){var r;"string"==typeof e?n.set(e,!1):Ct(r=e)&&"Document"===r.kind&&Array.isArray(r.definitions)?n.set(t.transform(e),!1):Ct(e)&&e.query&&i.add(e)}),this.queries.forEach(function(t,i){var a=t.observableQuery,o=t.document;if(a){if("all"===e)return void r.set(i,a);var s=a.queryName;if("standby"===a.options.fetchPolicy||"active"===e&&!a.hasObservers())return;("active"===e||s&&n.has(s)||o&&n.has(o))&&(r.set(i,a),s&&n.set(s,!0),o&&n.set(o,!0))}}),i.size&&i.forEach(function(e){var n=Y("legacyOneTimeQuery"),i=t.getQuery(n).init({document:e.query,variables:e.variables}),a=new yo({queryManager:t,queryInfo:i,options:D(D({},e),{fetchPolicy:"network-only"})});G(a.queryId===n),i.setObservableQuery(a),r.set(n,a)}),!1!==globalThis.__DEV__&&n.size&&n.forEach(function(e,t){e||!1!==globalThis.__DEV__&&G.warn("string"==typeof t?34:35,t)}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,i){var a=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==a&&"cache-only"!==a)&&r.push(n.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,a=void 0===i?"none":i,o=e.variables,s=e.context,c=void 0===s?{}:s,u=e.extensions,l=void 0===u?{}:u;r=this.transform(r),o=this.getVariables(r,o);var d=function(e){return t.getObservableFromLink(r,c,e,l).map(function(i){"no-cache"!==n&&(Oo(i,a)&&t.cache.write({query:r,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var o=yi(i),s=function(e){return!!e.extensions&&Array.isArray(e.extensions[Ai])}(i);if(o||s){var c={};if(o&&(c.graphQLErrors=i.errors),s&&(c.protocolErrors=i.extensions[Ai]),"none"===a||s)throw new Pi(c)}return"ignore"===a&&delete i.errors,i})};if(this.getDocumentInfo(r).hasClientExports){var p=this.localState.addExportedVariables(r,o,c).then(d);return new ri(function(e){var t=null;return p.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return d(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n,i){var a,o,s=this;void 0===i&&(i=null!==(a=null==t?void 0:t.queryDeduplication)&&void 0!==a?a:this.queryDeduplication);var c=this.getDocumentInfo(e),u=c.serverQuery,l=c.clientQuery;if(u){var d=this.inFlightLinkObservables,p=this.link,h={query:u,variables:r,operationName:xr(u)||void 0,context:this.prepareContext(D(D({},t),{forceFetch:!i})),extensions:n};if(t=h.context,i){var f=bn(u),m=cr(r),_=d.lookup(f,m);if(!(o=_.observable)){var v=new fi([Ti(p,h)]);o=_.observable=v,v.beforeNext(function(){d.remove(f,m)})}}else o=new fi([Ti(p,h)])}else o=new fi([ri.of({data:{}})]),t=this.prepareContext(t);return l&&(o=di(o,function(e){return s.localState.runResolvers({document:l,remoteResult:e,context:t,variables:r})})),o},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return di(this.getObservableFromLink(i,r.context,r.variables),function(a){var o=gi(a),s=o.length>0,c=r.errorPolicy;if(n>=e.lastRequestId){if(s&&"none"===c)throw e.markError(new Pi({graphQLErrors:o}));e.markResult(a,i,r,t),e.markReady()}var u={data:a.data,loading:!1,networkStatus:po.ready};return s&&"none"===c&&(u.data=void 0),s&&"ignore"!==c&&(u.errors=o,u.networkStatus=po.error),u},function(t){var r=Ci(t)?t:new Pi({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i=this;void 0===r&&(r=po.loading),void 0===n&&(n=t.query);var a,o,s=this.getVariables(n,t.variables),c=this.getQuery(e),u=this.defaultOptions.watchQuery,l=t.fetchPolicy,d=void 0===l?u&&u.fetchPolicy||"cache-first":l,p=t.errorPolicy,h=void 0===p?u&&u.errorPolicy||"none":p,f=t.returnPartialData,m=void 0!==f&&f,_=t.notifyOnNetworkStatusChange,v=void 0!==_&&_,y=t.context,g=void 0===y?{}:y,b=Object.assign({},t,{query:n,variables:s,fetchPolicy:d,errorPolicy:h,returnPartialData:m,notifyOnNetworkStatusChange:v,context:g}),k=function(e){b.variables=e;var n=i.fetchQueryByPolicy(c,b,r);return"standby"!==b.fetchPolicy&&n.sources.length>0&&c.observableQuery&&c.observableQuery.applyNextFetchPolicy("after-fetch",t),n},w=function(){return i.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,function(e){w(),setTimeout(function(){return a.cancel(e)})}),this.getDocumentInfo(b.query).hasClientExports)a=new fi(this.localState.addExportedVariables(b.query,b.variables,b.context).then(k).then(function(e){return e.sources})),o=!0;else{var x=k(b.variables);o=x.fromLink,a=new fi(x.sources)}return a.promise.then(w,w),{concast:a,fromLink:o}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,a=void 0!==i&&i,o=e.removeOptimistic,s=void 0===o?a?Y("refetchQueries"):void 0:o,c=e.onQueryUpdated,u=/* @__PURE__ */new Map;n&&this.getObservableQueries(n).forEach(function(e,r){u.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})});var l=/* @__PURE__ */new Map;return r&&this.cache.batch({update:r,optimistic:a&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof jo&&e.watcher.observableQuery;if(n){if(c){u.delete(n.queryId);var i=c(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==c&&u.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),u.size&&u.forEach(function(e,r){var n,i=e.oq,a=e.lastDiff,o=e.diff;if(c){if(!o){var s=i.queryInfo;s.reset(),o=s.getDiff()}n=c(i,o,a)}c&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),l},e.prototype.fetchQueryByPolicy=function(e,t,r){var n=this,i=t.query,a=t.variables,o=t.fetchPolicy,s=t.refetchWritePolicy,c=t.errorPolicy,u=t.returnPartialData,l=t.context,d=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:i,variables:a,networkStatus:r});var h=function(){return e.getDiff()},f=function(t,r){void 0===r&&(r=e.networkStatus||po.loading);var o=t.result;!1===globalThis.__DEV__||u||Hi(o,{})||ko(t.missing);var s=function(e){return ri.of(D({data:e,loading:mo(r),networkStatus:r},t.complete?null:{partial:!0}))};return o&&n.getDocumentInfo(i).hasForcedResolvers?n.localState.runResolvers({document:i,remoteResult:{data:o},context:l,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return s(e.data||void 0)}):"none"===c&&r===po.refetch&&Array.isArray(t.missing)?s(void 0):s(o)},m="no-cache"===o?0:r===po.refetch&&"merge"!==s?1:2,_=function(){return n.getResultsFromLink(e,m,{query:i,variables:a,context:l,fetchPolicy:o,errorPolicy:c})},v=d&&"number"==typeof p&&p!==r&&mo(r);switch(o){default:case"cache-first":return(y=h()).complete?{fromLink:!1,sources:[f(y,e.markReady())]}:u||v?{fromLink:!0,sources:[f(y),_()]}:{fromLink:!0,sources:[_()]};case"cache-and-network":var y;return(y=h()).complete||u||v?{fromLink:!0,sources:[f(y),_()]}:{fromLink:!0,sources:[_()]};case"cache-only":return{fromLink:!1,sources:[f(h(),e.markReady())]};case"network-only":return v?{fromLink:!0,sources:[f(h()),_()]}:{fromLink:!0,sources:[_()]};case"no-cache":return v?{fromLink:!0,sources:[f(e.getDiff()),_()]}:{fromLink:!0,sources:[_()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new jo(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return D(D(D({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),Io=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=/* @__PURE__ */new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=An(t.resolvers,e)}):this.resolvers=An(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return I(this,arguments,void 0,function(e){var t=e.document,r=e.remoteResult,n=e.context,i=e.variables,a=e.onlyRunForcedResolvers,o=void 0!==a&&a;return A(this,function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,o).then(function(e){return D(D({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return yt(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return Nn(e)},e.prototype.prepareContext=function(e){var t=this.cache;return D(D({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return I(this,arguments,void 0,function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),A(this,function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return D(D({},t),e.exportedVariables)})]:[2,D({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return ct(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return st}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Dn(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return I(this,arguments,void 0,function(e,t,r,n,i,a){var o,s,c,u,l,d,p,h,f,m;return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===a&&(a=!1),A(this,function(_){return o=jr(e),s=Sr(e),c=Ft(s),u=this.collectSelectionsToResolve(o,c),l=o.operation,d=l?l.charAt(0).toUpperCase()+l.slice(1):"Query",h=(p=this).cache,f=p.client,m={fragmentMap:c,context:D(D({},r),{cache:h,client:f}),variables:n,fragmentMatcher:i,defaultOperationType:d,exportedVariables:{},selectionsToResolve:u,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(o.selectionSet,false,t,m).then(function(e){return{result:e,exportedVariables:m.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,n){return I(this,void 0,void 0,function(){var i,a,o,s,c,u=this;return A(this,function(l){return i=n.fragmentMap,a=n.context,o=n.variables,s=[r],c=function(e){return I(u,void 0,void 0,function(){var c,u;return A(this,function(l){return(t||n.selectionsToResolve.has(e))&&vt(e,o)?br(e)?[2,this.resolveField(e,t,r,n).then(function(t){var r;void 0!==t&&s.push(((r={})[yr(e)]=t,r))})]:(!function(e){return"InlineFragment"===e.kind}(e)?(c=i[e.name.value],G(c,18,e.name.value)):c=e,c&&c.typeCondition&&(u=c.typeCondition.name.value,n.fragmentMatcher(r,u,a))?[2,this.resolveSelectionSet(c.selectionSet,t,r,n).then(function(e){s.push(e)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(c)).then(function(){return Cn(s)})]})})},e.prototype.resolveField=function(e,t,r,n){return I(this,void 0,void 0,function(){var i,a,o,s,c,u,l,d,p,h=this;return A(this,function(f){return r?(i=n.variables,a=e.name.value,o=yr(e),s=a!==o,c=r[o]||r[a],u=Promise.resolve(c),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(l=r.__typename||n.defaultOperationType,(d=this.resolvers&&this.resolvers[l])&&(p=d[s?a:o])&&(u=Promise.resolve(Pa.withValue(this.cache,p,[r,vr(e,i),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,u.then(function(r){var i,a;if(void 0===r&&(r=c),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=r)})}),!e.selectionSet)return r;if(null==r)return r;var o=null!==(a=null===(i=e.directives)||void 0===i?void 0:i.some(function(e){return"client"===e.name.value}))&&void 0!==a&&a;return Array.isArray(r)?h.resolveSubSelectedArray(e,t||o,r,n):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t||o,r,n):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(i){if(!n.has(i)){var a=/* @__PURE__ */new Set;n.set(i,a),ct(i,{Directive:function(e,t,n,i,o){"client"===e.name.value&&o.forEach(function(e){r(e)&&_t(e)&&a.add(e)})},FragmentSpread:function(n,i,o,s,c){var u=t[n.name.value];G(u,19,n.name.value);var l=e(u);l.size>0&&(c.forEach(function(e){r(e)&&_t(e)&&a.add(e)}),a.add(n),l.forEach(function(e){a.add(e)}))}})}return n.get(i)}(e)},e}(),Ao=!1,Co=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw J(15);var r=e.uri,n=e.credentials,i=e.headers,a=e.cache,o=e.documentTransform,s=e.ssrMode,c=void 0!==s&&s,u=e.ssrForceFetchDelay,l=void 0===u?0:u,d=e.connectToDevTools,p=e.queryDeduplication,h=void 0===p||p,f=e.defaultOptions,m=e.defaultContext,_=e.assumeImmutableResults,v=void 0===_?a.assumeImmutableResults:_,y=e.resolvers,g=e.typeDefs,b=e.fragmentMatcher,k=e.name,w=e.version,x=e.devtools,S=e.link;S||(S=r?new Ui({uri:r,credentials:n,headers:i}):Oi.empty()),this.link=S,this.cache=a,this.disableNetworkFetches=c||l>0,this.queryDeduplication=h,this.defaultOptions=f||/* @__PURE__ */Object.create(null),this.typeDefs=g,this.devtoolsConfig=D(D({},x),{enabled:(null==x?void 0:x.enabled)||d}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),l&&setTimeout(function(){return t.disableNetworkFetches=!1},l),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=B,this.localState=new Io({cache:a,client:this,resolvers:y,fragmentMatcher:b}),this.queryManager=new No({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:m,documentTransform:o,queryDeduplication:h,ssrMode:c,clientAwareness:{name:k,version:w},localState:this.localState,assumeImmutableResults:v,onBroadcast:this.devtoolsConfig.enabled?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("undefined"!=typeof window){var e=window,t=/* @__PURE__ */Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,Ao||!1===globalThis.__DEV__||(Ao=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,r=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1!==globalThis.__DEV__&&G.log("Download the Apollo DevTools for a better development experience: %s",r)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=ki(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=D(D({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=ki(this.defaultOptions.query,e)),G("cache-and-network"!==e.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=D(D({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=ki(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){return this.cache.watchFragment(e)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Ti(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var i=Promise.all(n);return i.queries=r,i.results=n,i.catch(function(e){!1!==globalThis.__DEV__&&G.debug(17,e)}),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(Co.prototype.getMemoryInternals=Xt);var Po=/* @__PURE__ */new Map,Fo=/* @__PURE__ */new Map,Ro=!1;function Mo(e){return e.replace(/[\s,]+/g," ").trim()}function $o(e){var t=/* @__PURE__ */new Set,r=[];return e.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,i=Mo((o=e.loc).source.body.substring(o.start,o.end)),a=Fo.get(n);a&&!a.has(i)||a||Fo.set(n,a=/* @__PURE__ */new Set),a.add(i),t.has(i)||(t.add(i),r.push(e))}else r.push(e);var o}),D(D({},e),{definitions:r})}function Lo(e){var t=Mo(e);if(!Po.has(t)){var r=function(e,t){const r=new tt(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}(e,{experimentalFragmentVariables:Ro,allowLegacyFragmentVariables:Ro});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");Po.set(t,function(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(r){var n=e[r];n&&"object"==typeof n&&t.add(n)})});var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}($o(r)))}return Po.get(t)}function qo(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach(function(t,r){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[r+1]}),Lo(n)}var zo,Vo=qo,Bo=function(){Po.clear(),Fo.clear()},Uo=function(){0},Qo=function(){Ro=!0},Wo=function(){Ro=!1};(zo=qo||(qo={})).gql=Vo,zo.resetCaches=Bo,zo.disableFragmentWarnings=Uo,zo.enableExperimentalFragmentVariables=Qo,zo.disableExperimentalFragmentVariables=Wo,qo.default=qo;var Yo,Ko={exports:{}};var Ho,Go=(Yo||(Yo=1,(Ho=Ko).exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,Ho.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Ho.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(Ho.exports,e)),Ko.exports);const Jo=/* @__PURE__ */_({__proto__:null,default:/* @__PURE__ */v(Go)},[Go]);var Xo=Tt?/* @__PURE__ */Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function Zo(){G("createContext"in Jo,46);var e=Go.createContext[Xo];return e||(Object.defineProperty(Go.createContext,Xo,{value:e=Go.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}var es=function(e){var t=e.client,r=e.children,n=Zo(),i=Go.useContext(n),a=Go.useMemo(function(){return D(D({},i),{client:t||i.client})},[i,t]);return G(a.client,47),Go.createElement(n.Provider,{value:a},r)};function ts(e){var t=Go.useContext(Zo()),r=e||t.client;return G(!!r,50),r}var rs,ns,is,as=!1,os=Jo.useSyncExternalStore||function(e,t,r){var n=t();!1===globalThis.__DEV__||as||n===t()||(as=!0,!1!==globalThis.__DEV__&&G.error(60));var i=Go.useState({inst:{value:n,getSnapshot:t}}),a=i[0].inst,o=i[1];return At?Go.useLayoutEffect(function(){Object.assign(a,{value:n,getSnapshot:t}),ss(a)&&o({inst:a})},[e,n,t]):Object.assign(a,{value:n,getSnapshot:t}),Go.useEffect(function(){return ss(a)&&o({inst:a}),e(function(){ss(a)&&o({inst:a})})},[e]),n};function ss(e){var t=e.value,r=e.getSnapshot;try{return t!==r()}catch(n){return!0}}function cs(e){var t;switch(e){case rs.Query:t="Query";break;case rs.Mutation:t="Mutation";break;case rs.Subscription:t="Subscription"}return t}function us(e){is||(is=new Yt(Ht.parser||1e3));var t,r,n=is.get(e);if(n)return n;G(!!e&&!!e.kind,62,e);for(var i=[],a=[],o=[],s=[],c=0,u=e.definitions;c<u.length;c++){var l=u[c];if("FragmentDefinition"!==l.kind){if("OperationDefinition"===l.kind)switch(l.operation){case"query":a.push(l);break;case"mutation":o.push(l);break;case"subscription":s.push(l)}}else i.push(l)}G(!i.length||a.length||o.length||s.length,63),G(a.length+o.length+s.length<=1,64,e,a.length,s.length,o.length),r=a.length?rs.Query:rs.Mutation,a.length||o.length||(r=rs.Subscription);var d=a.length?a:o.length?o:s;G(1===d.length,65,e,d.length);var p=d[0];t=p.variableDefinitions||[];var h={name:p.name&&"Name"===p.name.kind?p.name.value:"data",type:r,variables:t};return is.set(e,h),h}function ls(e,t){var r=us(e),n=cs(t),i=cs(r.type);G(r.type===t,66,n,n,i)}(ns=rs||(rs={}))[ns.Query=0]="Query",ns[ns.Mutation=1]="Mutation",ns[ns.Subscription=2]="Subscription",us.resetCache=function(){is=void 0},!1!==globalThis.__DEV__&&Jt("parser",function(){return is?is.size:0});var ds=Nt?Go.useLayoutEffect:Go.useEffect,ps=/* @__PURE__ */Symbol.for("apollo.hook.wrappers");var hs=Object.prototype.hasOwnProperty;function fs(){}var ms=/* @__PURE__ */Symbol();function _s(e,t){return void 0===t&&(t=/* @__PURE__ */Object.create(null)),(r="useQuery",n=vs,i=ts(t&&t.client),a=i.queryManager,o=a&&a[ps],(s=o&&o[r])?s(n):n)(e,t);var r,n,i,a,o,s}function vs(e,t){var r=function(e,t){var r=ts(t.client),n=Go.useContext(Zo()).renderPromises,i=!!n,a=r.disableNetworkFetches,o=!1!==t.ssr&&!t.skip,s=t.partialRefetch,c=function(e,t,r,n){void 0===r&&(r={});var i=r.skip;r.ssr,r.onCompleted,r.onError;var a=r.defaultOptions,o=N(r,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(r){var s=Object.assign(o,{query:t});return!n||"network-only"!==s.fetchPolicy&&"cache-and-network"!==s.fetchPolicy||(s.fetchPolicy="cache-first"),s.variables||(s.variables={}),i?(s.initialFetchPolicy=s.initialFetchPolicy||s.fetchPolicy||ks(a,e.defaultOptions),s.fetchPolicy="standby"):s.fetchPolicy||(s.fetchPolicy=(null==r?void 0:r.options.initialFetchPolicy)||ks(a,e.defaultOptions)),s}}(r,e,t,i),u=function(e,t,r,n,i){function a(a){var o;return ls(t,rs.Query),{client:e,query:t,observable:n&&n.getSSRObservable(i())||e.watchQuery(ys(void 0,e,r,i())),resultData:{previousData:null===(o=null==a?void 0:a.resultData.current)||void 0===o?void 0:o.data}}}var o=Go.useState(a),s=o[0],c=o[1];function u(e){var t,r;Object.assign(s.observable,((t={})[ms]=e,t));var n=s.resultData;c(D(D({},s),{query:e.query,resultData:Object.assign(n,{previousData:(null===(r=n.current)||void 0===r?void 0:r.data)||n.previousData,current:void 0})}))}if(e!==s.client||t!==s.query){var l=a(s);return c(l),[l,u]}return[s,u]}(r,e,t,n,c),l=u[0],d=l.observable,p=l.resultData,h=u[1],f=c(d);!function(e,t,r,n,i){var a;t[ms]&&!Hi(t[ms],i)&&(t.reobserve(ys(t,r,n,i)),e.previousData=(null===(a=e.current)||void 0===a?void 0:a.data)||e.previousData,e.current=void 0);t[ms]=i}(p,d,r,t,f);var m=Go.useMemo(function(){return function(e){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}(d)},[d]);!function(e,t,r){t&&r&&(t.registerSSRObservable(e),e.getCurrentResult().loading&&t.addObservableQueryPromise(e))}(d,n,o);var _=function(e,t,r,n,i,a,o,s,c){var u=Go.useRef(c);Go.useEffect(function(){u.current=c});var l=!s&&!a||!1!==n.ssr||n.skip?n.skip||"standby"===i.fetchPolicy?Ss:void 0:xs,d=e.previousData,p=Go.useMemo(function(){return l&&ws(l,d,t,r)},[r,t,l,d]);return os(Go.useCallback(function(n){if(s)return function(){};var i=function(){var i=e.current,a=t.getCurrentResult();i&&i.loading===a.loading&&i.networkStatus===a.networkStatus&&Hi(i.data,a.data)||gs(a,e,t,r,o,n,u.current)},a=function(s){if(c.current.unsubscribe(),c.current=t.resubscribeAfterError(i,a),!hs.call(s,"graphQLErrors"))throw s;var l=e.current;(!l||l&&l.loading||!Hi(s,l.error))&&gs({data:l&&l.data,error:s,loading:!1,networkStatus:po.error},e,t,r,o,n,u.current)},c={current:t.subscribe(i,a)};return function(){setTimeout(function(){return c.current.unsubscribe()})}},[a,s,t,e,o,r]),function(){return p||bs(e,t,u.current,o,r)},function(){return p||bs(e,t,u.current,o,r)})}(p,d,r,t,f,a,s,i,{onCompleted:t.onCompleted||fs,onError:t.onError||fs});return{result:_,obsQueryFields:m,observable:d,resultData:p,client:r,onQueryExecuted:h}}(e,t),n=r.result,i=r.obsQueryFields;return Go.useMemo(function(){return D(D({},n),i)},[n,i])}function ys(e,t,r,n){var i=[],a=t.defaultOptions.watchQuery;return a&&i.push(a),r.defaultOptions&&i.push(r.defaultOptions),i.push(bi(e&&e.options,n)),i.reduce(ki)}function gs(e,t,r,n,i,a,o){var s=t.current;s&&s.data&&(t.previousData=s.data),!e.error&&wn(e.errors)&&(e.error=new Pi({graphQLErrors:e.errors})),t.current=ws(function(e,t,r){if(e.partial&&r&&!e.loading&&(!e.data||0===Object.keys(e.data).length)&&"cache-only"!==t.options.fetchPolicy)return t.refetch(),D(D({},e),{loading:!0,networkStatus:po.refetch});return e}(e,r,i),t.previousData,r,n),a(),function(e,t,r){if(!e.loading){var n=function(e){return wn(e.errors)?new Pi({graphQLErrors:e.errors}):e.error}(e);Promise.resolve().then(function(){n?r.onError(n):e.data&&t!==e.networkStatus&&e.networkStatus===po.ready&&r.onCompleted(e.data)}).catch(function(e){!1!==globalThis.__DEV__&&G.warn(e)})}}(e,null==s?void 0:s.networkStatus,o)}function bs(e,t,r,n,i){return e.current||gs(t.getCurrentResult(),e,t,i,n,function(){},r),e.current}function ks(e,t){var r;return(null==e?void 0:e.fetchPolicy)||(null===(r=null==t?void 0:t.watchQuery)||void 0===r?void 0:r.fetchPolicy)||"cache-first"}function ws(e,t,r,n){var i=e.data;e.partial;var a=N(e,["data","partial"]);return D(D({data:i},a),{client:n,observable:r,variables:r.variables,called:e!==xs&&e!==Ss,previousData:t})}var xs=ui({loading:!0,data:void 0,error:void 0,networkStatus:po.loading}),Ss=ui({loading:!1,data:void 0,error:void 0,networkStatus:po.ready});function Es(e,t){var r=ts(void 0);ls(e,rs.Mutation);var n=Go.useState({called:!1,loading:!1,client:r}),i=n[0],a=n[1],o=Go.useRef({result:i,mutationId:0,isMounted:!0,client:r,mutation:e,options:t});ds(function(){Object.assign(o.current,{client:r,options:t,mutation:e})});var s=Go.useCallback(function(e){void 0===e&&(e={});var t=o.current,r=t.options,n=t.mutation,i=D(D({},r),{mutation:n}),s=e.client||o.current.client;o.current.result.loading||i.ignoreResults||!o.current.isMounted||a(o.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:s});var c=++o.current.mutationId,u=ki(i,e);return s.mutate(u).then(function(t){var r,n,i=t.data,l=t.errors,d=l&&l.length>0?new Pi({graphQLErrors:l}):void 0,p=e.onError||(null===(r=o.current.options)||void 0===r?void 0:r.onError);if(d&&p&&p(d,u),c===o.current.mutationId&&!u.ignoreResults){var h={called:!0,loading:!1,data:i,error:d,client:s};o.current.isMounted&&!Hi(o.current.result,h)&&a(o.current.result=h)}var f=e.onCompleted||(null===(n=o.current.options)||void 0===n?void 0:n.onCompleted);return d||null==f||f(t.data,u),t}).catch(function(t){var r;if(c===o.current.mutationId&&o.current.isMounted){var n={loading:!1,error:t,data:void 0,called:!0,client:s};Hi(o.current.result,n)||a(o.current.result=n)}var i=e.onError||(null===(r=o.current.options)||void 0===r?void 0:r.onError);if(i)return i(t,u),{data:void 0,errors:t};throw t})},[]),c=Go.useCallback(function(){if(o.current.isMounted){var e={called:!1,loading:!1,client:o.current.client};Object.assign(o.current,{mutationId:0,result:e}),a(e)}},[]);return Go.useEffect(function(){var e=o.current;return e.isMounted=!0,function(){e.isMounted=!1}},[]),[s,D({reset:c},i)]}const js=qo`
14
+ /* @__PURE__ */Object.create(null),qr=Lr[$r]||Array[$r]||function(e){try{Object.defineProperty(Lr,$r,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",Rr++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=Pr;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===Fr)break;return e!==Pr&&(Pr.slots[this.id]=t),!0}return Pr&&(Pr.slots[this.id]=Fr),!1}getValue(){if(this.hasValue())return Pr.slots[this.id]}withValue(e,t,r,n){const i={__proto__:null,[this.id]:e},a=Pr;Pr={parent:a,slots:i};try{return t.apply(n,r)}finally{Pr=a}}static bind(e){const t=Pr;return function(){const r=Pr;try{return Pr=t,e.apply(this,arguments)}finally{Pr=r}}}static noContext(e,t,r){if(!Pr)return e.apply(r,t);{const n=Pr;try{return Pr=null,e.apply(r,t)}finally{Pr=n}}}}),{bind:zr,noContext:Vr}=qr,Br=new qr,{hasOwnProperty:Ur}=Object.prototype,Qr=Array.from||function(e){const t=[];return e.forEach(e=>t.push(e)),t};function Wr(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const Yr=[];function Kr(e,t){if(!e)throw new Error(t||"assertion failure")}function Hr(e,t){const r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function Gr(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function Jr(e){return e.slice(0)}class Xr{constructor(e){this.fn=e,this.parents=/* @__PURE__ */new Set,this.childValues=/* @__PURE__ */new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Xr.count}peek(){if(1===this.value.length&&!tn(this))return Zr(this),this.value[0]}recompute(e){return Kr(!this.recomputing,"already recomputing"),Zr(this),tn(this)?function(e,t){un(e),Br.withValue(e,en,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{Wr(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(r){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,tn(e))return;nn(e)}(e);return Gr(e.value)}(this,e):Gr(this.value)}setDirty(){this.dirty||(this.dirty=!0,rn(this),Wr(this))}dispose(){this.setDirty(),un(this),an(this,(e,t)=>{e.setDirty(),ln(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=Yr.pop()||/* @__PURE__ */new Set),this.deps.add(e)}forgetDeps(){this.deps&&(Qr(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),Yr.push(this.deps),this.deps=null)}}function Zr(e){const t=Br.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),tn(e)?on(t,e):sn(t,e),t}function en(e,t){e.recomputing=!0;const{normalizeResult:r}=e;let n;r&&1===e.value.length&&(n=Jr(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),r&&n&&!Hr(n,e.value))try{e.value[0]=r(e.value[0],n[0])}catch(i){}}catch(a){e.value[1]=a}e.recomputing=!1}function tn(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function rn(e){an(e,on)}function nn(e){an(e,sn)}function an(e,t){const r=e.parents.size;if(r){const n=Qr(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function on(e,t){Kr(e.childValues.has(t)),Kr(tn(t));const r=!tn(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=Yr.pop()||/* @__PURE__ */new Set;e.dirtyChildren.add(t),r&&rn(e)}function sn(e,t){Kr(e.childValues.has(t)),Kr(!tn(t));const r=e.childValues.get(t);0===r.length?e.childValues.set(t,Jr(t.value)):Hr(r,t.value)||e.setDirty(),cn(e,t),tn(e)||nn(e)}function cn(e,t){const r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(Yr.length<100&&Yr.push(r),e.dirtyChildren=null))}function un(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{ln(e,r)}),e.forgetDeps(),Kr(null===e.dirtyChildren)}function ln(e,t){t.parents.delete(e),e.childValues.delete(t),cn(e,t)}Xr.count=0;const dn={setDirty:!0,dispose:!0,forget:!0};function pn(e){const t=/* @__PURE__ */new Map;function r(e){const r=Br.getValue();if(r){let n=t.get(e);n||t.set(e,n=/* @__PURE__ */new Set),r.dependOn(n)}}return r.dirty=function(e,r){const n=t.get(e);if(n){const i=r&&Ur.call(dn,r)?r:"setDirty";Qr(n).forEach(e=>e[i]()),t.delete(e),Wr(n)}},r}let hn;function fn(...e){return(hn||(hn=new Ar("function"==typeof WeakMap))).lookupArray(e)}const mn=/* @__PURE__ */new Set;function _n(e,{max:t=Math.pow(2,16),keyArgs:r,makeCacheKey:n=fn,normalizeResult:i,subscribe:a,cache:o=$t}=/* @__PURE__ */Object.create(null)){const s="function"==typeof o?new o(t,e=>e.dispose()):o,c=function(){const t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let o=s.get(t);o||(s.set(t,o=new Xr(e)),o.normalizeResult=i,o.subscribe=a,o.forget=()=>s.delete(t));const c=o.recompute(Array.prototype.slice.call(arguments));return s.set(t,o),mn.add(s),Br.hasValue()||(mn.forEach(e=>e.clean()),mn.clear()),c};function u(e){const t=e&&s.get(e);t&&t.setDirty()}function l(e){const t=e&&s.get(e);if(t)return t.peek()}function d(e){return!!e&&s.delete(e)}return Object.defineProperty(c,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:a,cache:s}),c.dirtyKey=u,c.dirty=function(){u(n.apply(null,arguments))},c.peekKey=l,c.peek=function(){return l(n.apply(null,arguments))},c.forgetKey=d,c.forget=function(){return d(n.apply(null,arguments))},c.makeCacheKey=n,c.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(c)}function vn(e){return e}var yn,gn=function(){function e(e,t){void 0===t&&(t=/* @__PURE__ */Object.create(null)),this.resultCache=Ot?/* @__PURE__ */new WeakSet:/* @__PURE__ */new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(vn,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),Object.assign(new e(function(e){return(t(e)?r:n).transformDocument(e)},{cache:!1}),{left:r,right:n})},e.prototype.resetCache=function(){var t=this;if(this.cached){var r=new St(jt);this.performWork=_n(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return G(Array.isArray(n),69),r.lookupArray(n)},max:Ht["documentTransform.cache"],cache:Ut})}},e.prototype.performWork=function(e){return kr(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var r=this;return Object.assign(new e(function(e){return t.transformDocument(r.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}(),bn=Object.assign(function(e){var t=yn.get(e);return t||(t=function(e){return ct(e,lt)}(e),yn.set(e,t)),t},{reset:function(){yn=new Yt(Ht.print||2e3)}});bn.reset(),!1!==globalThis.__DEV__&&Jt("print",function(){return yn?yn.size:0});var kn=Array.isArray;function wn(e){return Array.isArray(e)&&e.length>0}var xn={kind:ke.FIELD,name:{kind:ke.NAME,value:"__typename"}};function Sn(e,t){return!e||e.selectionSet.selections.every(function(e){return e.kind===ke.FRAGMENT_SPREAD&&Sn(t[e.name.value],t)})}function En(e){return Sn(wr(e)||function(e){G("Document"===e.kind,81),G(e.definitions.length<=1,82);var t=e.definitions[0];return G("FragmentDefinition"===t.kind,83),t}(e),Ft(Sr(e)))?null:e}function jn(e){var t=/* @__PURE__ */new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:/* @__PURE__ */new Set,fragmentSpreads:/* @__PURE__ */new Set}),n}}function On(e,t){kr(t);for(var r=jn(""),n=jn(""),i=function(e){for(var t=0,i=void 0;t<e.length&&(i=e[t]);++t)if(!kn(i)){if(i.kind===ke.OPERATION_DEFINITION)return r(i.name&&i.name.value);if(i.kind===ke.FRAGMENT_DEFINITION)return n(i.name.value)}return!1!==globalThis.__DEV__&&G.error(86),null},a=0,o=t.definitions.length-1;o>=0;--o)t.definitions[o].kind===ke.OPERATION_DEFINITION&&++a;var s,c,u,l=(s=e,c=/* @__PURE__ */new Map,u=/* @__PURE__ */new Map,s.forEach(function(e){e&&(e.name?c.set(e.name,e):e.test&&u.set(e.test,e))}),function(e){var t=c.get(e.name.value);return!t&&u.size&&u.forEach(function(r,n){n(e)&&(t=r)}),t}),d=function(e){return wn(e)&&e.map(l).some(function(e){return e&&e.remove})},p=/* @__PURE__ */new Map,h=!1,f={enter:function(e){if(d(e.directives))return h=!0,null}},m=ct(t,{Field:f,InlineFragment:f,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,a){var o=i(a);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,a){if(d(e.directives))return h=!0,null;var o=i(a);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){p.set(JSON.stringify(n),e)},leave:function(e,t,r,i){return e===p.get(JSON.stringify(i))?e:a>0&&e.selectionSet.selections.every(function(e){return e.kind===ke.FIELD&&"__typename"===e.name.value})?(n(e.name.value).removed=!0,h=!0,null):void 0}},Directive:{leave:function(e){if(l(e))return h=!0,null}}});if(!h)return t;var _=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){_(n(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},v=/* @__PURE__ */new Set;m.definitions.forEach(function(e){e.kind===ke.OPERATION_DEFINITION?_(r(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){v.add(e)}):e.kind!==ke.FRAGMENT_DEFINITION||0!==a||n(e.name.value).removed||v.add(e.name.value)}),v.forEach(function(e){_(n(e)).fragmentSpreads.forEach(function(e){v.add(e)})});var y={enter:function(e){if(t=e.name.value,!v.has(t)||n(t).removed)return null;var t}};return En(ct(m,{FragmentSpread:y,FragmentDefinition:y,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=_(r(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return D(D({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))}var Tn=Object.assign(function(e){return ct(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==ke.OPERATION_DEFINITION){var n=e.selections;if(n)if(!n.some(function(e){return br(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))})){var i=r;if(!(br(i)&&i.directives&&i.directives.some(function(e){return"export"===e.name.value})))return D(D({},e),{selections:C(C([],n,!0),[xn],!1)})}}}}})},{added:function(e){return e===xn}});function Dn(e){return"query"===jr(e).operation?e:ct(e,{OperationDefinition:{enter:function(e){return D(D({},e),{operation:"query"})}}})}function Nn(e){return kr(e),On([{test:function(e){return"client"===e.name.value},remove:!0}],e)}var In=Object.prototype.hasOwnProperty;function An(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Cn(e)}function Cn(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new Fn,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var Pn=function(e,t,r){return this.merge(e[r],t[r])},Fn=function(){function e(e){void 0===e&&(e=Pn),this.reconciler=e,this.isObject=Ct,this.pastCopies=/* @__PURE__ */new Set}return e.prototype.merge=function(e,t){for(var r=this,n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return Ct(t)&&Ct(e)?(Object.keys(t).forEach(function(i){if(In.call(e,i)){var a=e[i];if(t[i]!==a){var o=r.reconciler.apply(r,C([e,t,i],n,!1));o!==a&&((e=r.shallowCopyForMerge(e))[i]=o)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return Ct(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):D({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}();function Rn(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Mn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mn(e,t)}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Mn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ln(e,t,r){return t&&$n(e.prototype,t),r&&$n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var qn=function(){return"function"==typeof Symbol},zn=function(e){return qn()&&Boolean(Symbol[e])},Vn=function(e){return zn(e)?Symbol[e]:"@@"+e};qn()&&!zn("observable")&&(Symbol.observable=/* @__PURE__ */Symbol("observable"));var Bn=Vn("iterator"),Un=Vn("observable"),Qn=Vn("species");function Wn(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw new TypeError(r+" is not a function");return r}}function Yn(e){var t=e.constructor;return void 0!==t&&null===(t=t[Qn])&&(t=void 0),void 0!==t?t:ri}function Kn(e){Kn.log?Kn.log(e):setTimeout(function(){throw e})}function Hn(e){Promise.resolve().then(function(){try{e()}catch(t){Kn(t)}})}function Gn(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=Wn(t,"unsubscribe");r&&r.call(t)}}catch(n){Kn(n)}}function Jn(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function Xn(e,t,r){e._state="running";var n=e._observer;try{var i=Wn(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(Jn(e),!i)throw r;i.call(n,r);break;case"complete":Jn(e),i&&i.call(n)}}catch(a){Kn(a)}"closed"===e._state?Gn(e):"running"===e._state&&(e._state="ready")}function Zn(e,t,r){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:r}],void Hn(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(Xn(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)})):void Xn(e,t,r);e._queue.push({type:t,value:r})}}var ei=/* @__PURE__ */function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new ti(this);try{this._cleanup=t.call(void 0,r)}catch(n){r.error(n)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(Jn(this),Gn(this))},Ln(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),ti=/* @__PURE__ */function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){Zn(this._subscription,"next",e)},t.error=function(e){Zn(this._subscription,"error",e)},t.complete=function(){Zn(this._subscription,"complete")},Ln(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),ri=/* @__PURE__ */function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new ei(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(r,n){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,a)}catch(r){n(r),i.unsubscribe()}},error:n,complete:r});else n(new TypeError(e+" is not a function"));function a(){i.unsubscribe(),r()}})},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(Yn(this))(function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(n){return r.error(n)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(Yn(this))(function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(n){return r.error(n)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=Yn(this),n=arguments.length>1,i=!1,a=arguments[1];return new r(function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(s){return r.error(s)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=Yn(this);return new i(function(t){var n,a=0;return function e(o){n=o.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){a===r.length?(n=void 0,t.complete()):e(i.from(r[a++]))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=Yn(this);return new r(function(n){var i=[],a=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(s){return n.error(s)}var a=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(a);e>=0&&i.splice(e,1),o()}});i.push(a)},error:function(e){n.error(e)},complete:function(){o()}});function o(){a.closed&&0===i.length&&n.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),a.unsubscribe()}})},t[Un]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var n=Wn(t,Un);if(n){var i=n.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return function(e){return e instanceof ri}(i)&&i.constructor===r?i:new r(function(e){return i.subscribe(e)})}if(zn("iterator")&&(n=Wn(t,Bn)))return new r(function(e){Hn(function(){if(!e.closed){for(var r,i=Rn(n.call(t));!(r=i()).done;){var a=r.value;if(e.next(a),e.closed)return}e.complete()}})});if(Array.isArray(t))return new r(function(e){Hn(function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}})});throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)(function(e){Hn(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})})},Ln(e,null,[{key:Qn,get:function(){return this}}]),e}();qn()&&Object.defineProperty(ri,/* @__PURE__ */Symbol("extensions"),{value:{symbol:Un,hostReportError:Kn},configurable:!0}),function(e){var t,r=e.Symbol;if("function"==typeof r)if(r.observable)t=r.observable;else{t="function"==typeof r.for?r.for("https://github.com/benlesh/symbol-observable"):r("https://github.com/benlesh/symbol-observable");try{r.observable=t}catch(n){}}else t="@@observable"}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")());var ni=ri.prototype,ii="@@observable";ni[ii]||(ni[ii]=function(){return this});var ai=Object.prototype.toString;function oi(e){return si(e)}function si(e,t){switch(ai.call(e)){case"[object Array]":if((t=t||/* @__PURE__ */new Map).has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach(function(e,n){r[n]=si(e,t)}),r;case"[object Object]":if((t=t||/* @__PURE__ */new Map).has(e))return t.get(e);var n=Object.create(Object.getPrototypeOf(e));return t.set(e,n),Object.keys(e).forEach(function(r){n[r]=si(e[r],t)}),n;default:return e}}function ci(e){var t=/* @__PURE__ */new Set([e]);return t.forEach(function(e){Ct(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(r){Ct(e[r])&&t.add(e[r])})}),e}function ui(e){return!1!==globalThis.__DEV__&&ci(e),e}function li(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}function di(e,t,r){return new ri(function(n){var i={then:function(e){return new Promise(function(t){return t(e())})}};function a(e,t){return function(r){if(e){var a=function(){return n.closed?0:e(r)};i=i.then(a,a).then(function(e){return n.next(e)},function(e){return n.error(e)})}else n[t](r)}}var o={next:a(t,"next"),error:a(r,"error"),complete:function(){i.then(function(){return n.complete()})}},s=e.subscribe(o);return function(){return s.unsubscribe()}})}function pi(e){function t(t){Object.defineProperty(e,t,{value:ri})}return Tt&&Symbol.species&&t(Symbol.species),t("@@species"),e}function hi(e){return e&&"function"==typeof e.then}var fi=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=/* @__PURE__ */new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),li(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),li(r.observers,"error",e))},complete:function(){var e=r,t=e.sub,n=e.sources;if(null!==t){var i=(void 0===n?[]:n).shift();i?hi(i)?i.then(function(e){return r.sub=e.subscribe(r.handlers)},r.handlers.error):r.sub=i.subscribe(r.handlers):(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),li(r.observers,"complete"))}}},r.nextResultListeners=/* @__PURE__ */new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.error(e)},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new ri(t)]),hi(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return T(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=/* @__PURE__ */new Set,r.forEach(function(r){return r(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},t}(ri);function mi(e){return"incremental"in e}function _i(e){return Ct(e)&&"payload"in e}function vi(e,t){var r=e,n=new Fn;return mi(t)&&wn(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,a=i.length-1;a>=0;--a){var o=i[a],s=!isNaN(+o)?[]:{};s[o]=t,t=s}r=n.merge(r,t)}),r}function yi(e){return wn(gi(e))}function gi(e){var t=wn(e.errors)?e.errors.slice(0):[];return mi(e)&&wn(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}function bi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=/* @__PURE__ */Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];void 0!==n&&(r[t]=n)})}),r}function ki(e,t){return bi(e,t,t.variables&&{variables:bi(D(D({},e&&e.variables),t.variables))})}function wi(e){return new ri(function(t){t.error(e)})}pi(fi);var xi=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n};function Si(e,t){return t?t(e):ri.of()}function Ei(e){return"function"==typeof e?new Oi(e):e}function ji(e){return e.request.length<=1}var Oi=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return ri.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(Ei).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var i,a=Ei(r),o=Ei(n||new e(Si));return i=ji(a)&&ji(o)?new e(function(e){return t(e)?a.request(e)||ri.of():o.request(e)||ri.of()}):new e(function(e,r){return t(e)?a.request(e,r)||ri.of():o.request(e,r)||ri.of()}),Object.assign(i,{left:a,right:o})},e.execute=function(e,t){return e.request(function(e,t){var r=D({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r=D(D({},r),"function"==typeof e?e(r):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return D({},r)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?xr(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(t.indexOf(i)<0)throw J(44,i)}return e}(t))))||ri.of()},e.concat=function(t,r){var n=Ei(t);if(ji(n))return!1!==globalThis.__DEV__&&G.warn(36,n),n;var i,a=Ei(r);return i=ji(a)?new e(function(e){return n.request(e,function(e){return a.request(e)||ri.of()})||ri.of()}):new e(function(e,t){return n.request(e,function(e){return a.request(e,t)||ri.of()})||ri.of()}),Object.assign(i,{left:n,right:a})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(Si)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw J(37)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),Ti=Oi.from,Di=Oi.execute;function Ni(e){var t=null,r=null,n=!1,i=[],a=[];function o(e){if(!r){if(a.length){var t=a.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){r=e,a.slice().forEach(function(t){t[1](e)}),!t||t()}function c(){n=!0,a.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),!t||t()}t=function(){t=null,e.removeListener("data",o),e.removeListener("error",s),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",o),e.on("error",s),e.on("end",c),e.on("finish",c),e.on("close",c);var u={next:function(){return new Promise(function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void a.push([e,t])})}};return Dt&&(u[Symbol.asyncIterator]=function(){return this}),u}function Ii(e){var t={next:function(){return e.read()}};return Dt&&(t[Symbol.asyncIterator]=function(){return this}),t}function Ai(e){var t,r,n=e;if(e.body&&(n=e.body),function(e){return!(!Dt||!e[Symbol.asyncIterator])}(n))return r=n[Symbol.asyncIterator](),(t={next:function(){return r.next()}})[Symbol.asyncIterator]=function(){return this},t;if(function(e){return!!e.getReader}(n))return Ii(n.getReader());if(function(e){return!!e.stream}(n))return Ii(n.stream().getReader());if(function(e){return!!e.arrayBuffer}(n))return function(e){var t=!1,r={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise(function(t,r){e.then(function(e){t({value:e,done:!1})}).catch(r)}))}};return Dt&&(r[Symbol.asyncIterator]=function(){return this}),r}(n.arrayBuffer());if(function(e){return!!e.pipe}(n))return Ni(n);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var Ci=/* @__PURE__ */Symbol();function Pi(e){return e.hasOwnProperty("graphQLErrors")}var Fi=function(e){function t(r){var n,i,a=r.graphQLErrors,o=r.protocolErrors,s=r.clientErrors,c=r.networkError,u=r.errorMessage,l=r.extraInfo,d=e.call(this,u)||this;return d.name="ApolloError",d.graphQLErrors=a||[],d.protocolErrors=o||[],d.clientErrors=s||[],d.networkError=c||null,d.message=u||(i=C(C(C([],(n=d).graphQLErrors,!0),n.clientErrors,!0),n.protocolErrors,!0),n.networkError&&i.push(n.networkError),i.map(function(e){return Ct(e)&&e.message||"Error message not found."}).join("\n")),d.extraInfo=l,d.cause=C(C(C([c],a||[],!0),o||[],!0),s||[],!0).find(function(e){return!!e})||null,d.__proto__=t.prototype,d}return T(t,e),t}(Error),Ri=Object.prototype.hasOwnProperty;function Mi(e){var t={};return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}function $i(e,t){if(e.status>=300){xi(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(n){var r=n;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}var Li=function(e,t){var r;try{r=JSON.stringify(e)}catch(i){var n=J(40,t,i.message);throw n.parseError=i,n}return r},qi={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},zi=function(e,t){return t(e)};function Vi(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i={},a={};r.forEach(function(e){i=D(D(D({},i),e.options),{headers:D(D({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),a=D(D({},a),e.http)}),i.headers&&(i.headers=function(e,t){if(!t){var r={};return Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]=e[t]}),r}var n={};Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}});var i={};return Object.keys(n).forEach(function(e){i[n[e].originalName]=n[e].value}),i}(i.headers,a.preserveHeaderCase));var o=e.operationName,s=e.extensions,c=e.variables,u=e.query,l={operationName:o,variables:c};return a.includeExtensions&&(l.extensions=s),a.includeQuery&&(l.query=t(u,bn)),{options:i,body:l}}var Bi=U(function(){return fetch}),Ui=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,n=e.fetch,i=e.print,a=void 0===i?zi:i,o=e.includeExtensions,s=e.preserveHeaderCase,c=e.useGETForQueries,u=e.includeUnusedVariables,l=void 0!==u&&u,d=N(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&function(e){if(!e&&"undefined"==typeof fetch)throw J(38)}(n||Bi);var p={http:{includeExtensions:o,preserveHeaderCase:s},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new Oi(function(e){var t=function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")}(e,r),i=e.getContext(),o={};if(i.clientAwareness){var s=i.clientAwareness,u=s.name,d=s.version;u&&(o["apollographql-client-name"]=u),d&&(o["apollographql-client-version"]=d)}var h=D(D({},o),i.headers),f={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:h};if(yt(["client"],e.query)){var m=Nn(e.query);if(!m)return wi(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=m}var _,v,y,g,b,k=Vi(e,a,qi,p,f),w=k.options,x=k.body;x.variables&&!l&&(x.variables=(_=x.variables,v=e.query,y=D({},_),g=new Set(Object.keys(_)),ct(v,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&g.delete(e.name.value)}}),g.forEach(function(e){delete y[e]}),y)),w.signal||"undefined"==typeof AbortController||(b=new AbortController,w.signal=b.signal);var S,E="OperationDefinition"===(S=jr(e.query)).kind&&"subscription"===S.operation,j=yt(["defer"],e.query);if(c&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(w.method="GET"),j||E){w.headers=w.headers||{};var O="multipart/mixed;";E&&j&&!1!==globalThis.__DEV__&&G.warn(39),E?O+="boundary=graphql;subscriptionSpec=1.0,application/json":j&&(O+="deferSpec=20220824,application/json"),w.headers.accept=O}if("GET"===w.method){var T=function(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=Li(t.variables,"Variables map")}catch(C){return{parseError:C}}n("variables",i)}if(t.extensions){var a=void 0;try{a=Li(t.extensions,"Extensions map")}catch(C){return{parseError:C}}n("extensions",a)}var o="",s=e,c=e.indexOf("#");-1!==c&&(o=e.substr(c),s=e.substr(0,c));var u=-1===s.indexOf("?")?"?":"&";return{newURI:s+u+r.join("&")+o}}(t,x),N=T.newURI,C=T.parseError;if(C)return wi(C);t=N}else try{w.body=Li(x,"Payload")}catch(P){return wi(P)}return new ri(function(r){var i=n||U(function(){return fetch})||Bi,a=r.next.bind(r);return i(t,w).then(function(t){var r;e.setContext({response:t});var n,i=null===(r=t.headers)||void 0===r?void 0:r.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?function(e,t){return I(this,void 0,void 0,function(){var r,n,i,a,o,s,c,u,l,d,p,h,f,m,_,v,y,g,b,k,w,x,S,E;return A(this,function(j){switch(j.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),n=null===(E=e.headers)||void 0===E?void 0:E.get("content-type"),i="boundary=",a=(null==n?void 0:n.includes(i))?null==n?void 0:n.substring((null==n?void 0:n.indexOf(i))+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",o="\r\n--".concat(a),s="",c=Ai(e),u=!0,j.label=1;case 1:return u?[4,c.next()]:[3,3];case 2:for(l=j.sent(),d=l.value,p=l.done,h="string"==typeof d?d:r.decode(d),f=s.length-o.length+1,u=!p,m=(s+=h).indexOf(o,f);m>-1;){if(_=void 0,x=[s.slice(0,m),s.slice(m+o.length)],s=x[1],v=(_=x[0]).indexOf("\r\n\r\n"),y=Mi(_.slice(0,v)),(g=y["content-type"])&&-1===g.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(b=_.slice(v))if(k=$i(e,b),Object.keys(k).length>1||"data"in k||"incremental"in k||"errors"in k||"payload"in k)if(_i(k)){if(w={},"payload"in k){if(1===Object.keys(k).length&&null===k.payload)return[2];w=D({},k.payload)}"errors"in k&&(w=D(D({},w),{extensions:D(D({},"extensions"in w?w.extensions:null),(S={},S[Ci]=k.errors,S))})),t(w)}else t(k);else if(1===Object.keys(k).length&&"hasNext"in k&&!k.hasNext)return[2];m=s.indexOf(o)}return[3,1];case 3:return[2]}})})}(t,a):(n=e,function(e){return e.text().then(function(t){return $i(e,t)}).then(function(t){return Array.isArray(t)||Ri.call(t,"data")||Ri.call(t,"errors")||xi(e,t,"Server response was missing for query '".concat(Array.isArray(n)?n.map(function(e){return e.operationName}):n.operationName,"'.")),t})})(t).then(a)}).then(function(){b=void 0,r.complete()}).catch(function(e){b=void 0,function(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(e,r)}),function(){b&&b.abort()}})})},Qi=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,Ui(t).request)||this;return r.options=t,r}return T(t,e),t}(Oi);const{toString:Wi,hasOwnProperty:Yi}=Object.prototype,Ki=Function.prototype.toString,Hi=/* @__PURE__ */new Map;function Gi(e,t){try{return Ji(e,t)}finally{Hi.clear()}}function Ji(e,t){if(e===t)return!0;const r=Wi.call(e);if(r!==Wi.call(t))return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(ta(e,t))return!0;const r=Xi(e),n=Xi(t),i=r.length;if(i!==n.length)return!1;for(let e=0;e<i;++e)if(!Yi.call(t,r[e]))return!1;for(let a=0;a<i;++a){const n=r[a];if(!Ji(e[n],t[n]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e===+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(ta(e,t))return!0;const n=e.entries(),i="[object Map]"===r;for(;;){const e=n.next();if(e.done)break;const[r,a]=e.value;if(!t.has(r))return!1;if(i&&!Ji(a,t.get(r)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let r=e.byteLength;if(r===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const r=Ki.call(e);return r===Ki.call(t)&&!function(e,t){const r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(r,ea)}}return!1}function Xi(e){return Object.keys(e).filter(Zi,e)}function Zi(e){return void 0!==this[e]}const ea="{ [native code] }";function ta(e,t){let r=Hi.get(e);if(r){if(r.has(t))return!0}else Hi.set(e,r=/* @__PURE__ */new Set);return r.add(t),!1}function ra(e,t,r,n){var i=t.data,a=N(t,["data"]),o=r.data;return Gi(a,N(r,["data"]))&&na(jr(e).selectionSet,i,o,{fragmentMap:Ft(Sr(e)),variables:n})}function na(e,t,r,n){if(t===r)return!0;var i=/* @__PURE__ */new Set;return e.selections.every(function(e){if(i.has(e))return!0;if(i.add(e),!vt(e,n.variables))return!0;if(ia(e))return!0;if(br(e)){var a=yr(e),o=t&&t[a],s=r&&r[a],c=e.selectionSet;if(!c)return Gi(o,s);var u=Array.isArray(o),l=Array.isArray(s);if(u!==l)return!1;if(u&&l){var d=o.length;if(s.length!==d)return!1;for(var p=0;p<d;++p)if(!na(c,o[p],s[p],n))return!1;return!0}return na(c,o,s,n)}var h=Rt(e,n.fragmentMap);return h?!!ia(h)||na(h.selectionSet,t,r,n):void 0})}function ia(e){return!!e.directives&&e.directives.some(aa)}function aa(e){return"nonreactive"===e.name.value}var oa=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=_n(Pt,{max:Ht["cache.fragmentQueryDocuments"]||1e3,cache:Ut})}return e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(D(D({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t,r=this,n=e.fragment,i=e.fragmentName,a=e.from,o=e.optimistic,s=void 0===o||o,c=N(e,["fragment","fragmentName","from","optimistic"]),u=this.getFragmentDoc(n,i),l=D(D({},c),{returnPartialData:!0,id:void 0===a||"string"==typeof a?a:this.identify(a),query:u,optimistic:s});return new ri(function(e){return r.watch(D(D({},l),{immediate:!0,callback:function(r){if(!t||!ra(u,{data:null==t?void 0:t.result},{data:r.result})){var n={data:r.result,complete:!!r.complete};r.missing&&(n.missing=Cn(r.missing.map(function(e){return e.missing}))),t=r,e.next(n)}}}))})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(D(D({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=N(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,i=e.fragmentName,a=N(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(n,i),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var n=r.readQuery(e),i=t(n);return null==i?n:(r.writeQuery(D(D({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var n=r.readFragment(e),i=t(n);return null==i?n:(r.writeFragment(D(D({},e),{data:i})),i)}})},e}();!1!==globalThis.__DEV__&&(oa.prototype.getMemoryInternals=er);var sa=function(e){function t(r,n,i,a){var o,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=a,Array.isArray(s.path)){s.missing=s.message;for(var c=s.path.length-1;c>=0;--c)s.missing=((o={})[s.path[c]]=s.missing,o)}else s.missing=s.path;return s.__proto__=t.prototype,s}return T(t,e),t}(Error),ca=Object.prototype.hasOwnProperty;function ua(e){return null==e}function la(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=ua(n)?ua(i)?void 0:{_id:i}:{id:n}),ua(n)&&!ua(i)&&(n=i),!ua(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var da={dataIdFromObject:la,addTypename:!0,resultCaching:!0,canonizeResults:!1};function pa(e){var t=e.canonizeResults;return void 0===t?da.canonizeResults:t}var ha=/^[_a-z][_0-9a-z]*/i;function fa(e){var t=e.match(ha);return t?t[0]:e}function ma(e,t,r){return!!Ct(t)&&(kn(t)?t.every(function(t){return ma(e,t,r)}):e.selections.every(function(e){if(br(e)&&vt(e,r)){var n=yr(e);return ca.call(t,n)&&(!e.selectionSet||ma(e.selectionSet,t[n],r))}return!0}))}function _a(e){return Ct(e)&&!pr(e)&&!kn(e)}function va(e,t){var r=Ft(Sr(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var ya,ga,ba=/* @__PURE__ */Object.create(null),ka=function(){return ba},wa=/* @__PURE__ */Object.create(null),xa=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=/* @__PURE__ */Object.create(null),this.rootIds=/* @__PURE__ */Object.create(null),this.refs=/* @__PURE__ */Object.create(null),this.getFieldValue=function(e,t){return ui(pr(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return pr(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return dr(e);if(pr(e))return e;var n=r.policies.identify(e)[0];if(n){var i=dr(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return D({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),ca.call(this.data,e)){var r=this.data[e];if(r&&ca.call(r,t))return r[t]}return"__typename"===t&&ca.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof Oa?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),ca.call(this.data,e)?this.data[e]:this instanceof Oa?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?/* @__PURE__ */Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;pr(e)&&(e=e.__ref),pr(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(r=e):e,a="string"==typeof t?this.lookup(r=t):t;if(a){G("string"==typeof r,1);var o=new Fn(Da).merge(i,a);if(this.data[r]=o,o!==i&&(delete this.refs[r],this.group.caching)){var s=/* @__PURE__ */Object.create(null);i||(s.__exists=1),Object.keys(a).forEach(function(e){if(!i||i[e]!==o[e]){s[e]=1;var t=fa(e);t===e||n.policies.hasKeyArgs(o.__typename,t)||(s[t]=1),void 0!==o[e]||n instanceof Oa||delete o[e]}}),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[r]!==o.__typename||delete s.__typename,Object.keys(s).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=/* @__PURE__ */Object.create(null),a=!1,o=!0,s={DELETE:ba,INVALIDATE:wa,isReference:pr,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||dr(e)}:t,{store:r})}};if(Object.keys(n).forEach(function(c){var u=fa(c),l=n[c];if(void 0!==l){var d="function"==typeof t?t:t[c]||t[u];if(d){var p=d===ka?ba:d(ui(l),D(D({},s),{fieldName:u,storeFieldName:c,storage:r.getStorage(e,c)}));if(p===wa)r.group.dirty(e,c);else if(p===ba&&(p=void 0),p!==l&&(i[c]=p,a=!0,l=p,!1!==globalThis.__DEV__)){var h=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&G.warn(2,e),!0};if(pr(p))h(p);else if(Array.isArray(p))for(var f=!1,m=void 0,_=0,v=p;_<v.length;_++){var y=v[_];if(pr(y)){if(f=!0,h(y))break}else if("object"==typeof y&&y)r.policies.identify(y)[0]&&(m=y);if(f&&void 0!==m){!1!==globalThis.__DEV__&&G.warn(3,m);break}}}}void 0!==l&&(o=!1)}}),a)return this.merge(e,i),o&&(this instanceof Oa?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var a=this.getFieldValue(i,"__typename"),o=t&&r?this.policies.getStoreFieldName({typename:a,fieldName:t,args:r}):t;return this.modify(e,o?((n={})[o]=ka,n):ka)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(ca.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof Oa&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){ca.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&ca.call(e,r)||t.delete(r)}),e){var r=e.__META,n=N(e,["__META"]);Object.keys(n).forEach(function(e){t.merge(e,n[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=/* @__PURE__ */new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof Oa?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){ca.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof Oa;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!ca.call(this.refs,e)){var t=this.refs[e]=/* @__PURE__ */Object.create(null),r=this.data[e];if(!r)return t;var n=/* @__PURE__ */new Set([r]);n.forEach(function(e){pr(e)&&(t[e.__ref]=!0),Ct(e)&&Object.keys(e).forEach(function(t){var r=e[t];Ct(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),Sa=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?pn():null,this.keyMaker=new St(jt)},e.prototype.depend=function(e,t){if(this.d){this.d(Ea(e,t));var r=fa(t);r!==t&&this.d(Ea(e,r)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(Ea(e,t),"__exists"===t?"forget":"setDirty")},e}();function Ea(e,t){return t+"#"+e}function ja(e,t){Na(e)&&e.group.depend(t,"__exists")}ya=xa||(xa={}),ga=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=void 0===n||n,a=t.seed,o=e.call(this,r,new Sa(i))||this;return o.stump=new Ta(o),o.storageTrie=new St(jt),a&&o.replace(a),o}return T(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(ya),ya.Root=ga;var Oa=function(e){function t(t,r,n,i){var a=e.call(this,r.policies,i)||this;return a.id=t,a.parent=r,a.replay=n,a.group=i,n(a),a}return T(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){Gi(n[r],i[r])||t.group.dirty(e,r)}):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return D(D({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return ca.call(this.data,t)?D(D({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(xa),Ta=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new Sa(t.group.caching,t.group))||this}return T(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(Oa);function Da(e,t,r){var n=e[r],i=t[r];return Gi(n,i)?n:i}function Na(e){return!!(e instanceof xa&&e.group.caching)}var Ia=function(){function e(){this.known=new(Ot?WeakSet:Set),this.pool=new St(jt),this.passes=/* @__PURE__ */new WeakMap,this.keysByJSON=/* @__PURE__ */new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return Ct(e)&&this.known.has(e)},e.prototype.pass=function(e){if(Ct(e)){var t=function(e){return Ct(e)?kn(e)?e.slice(0):D({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(Ct(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var n=e.map(this.admit,this);return(s=this.pool.lookupArray(n)).array||(this.known.add(s.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),a=[i],o=this.sortedKeys(e);a.push(o.json);var s,c=a.length;if(o.sorted.forEach(function(r){a.push(t.admit(e[r]))}),!(s=this.pool.lookupArray(a)).object){var u=s.object=Object.create(i);this.known.add(u),o.sorted.forEach(function(e,t){u[e]=a[c+t]}),!1!==globalThis.__DEV__&&Object.freeze(u)}return s.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}();function Aa(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Ca=function(){function e(e){var t=this;this.knownResults=new(jt?WeakMap:Map),this.config=bi(e,{addTypename:!1!==e.addTypename,canonizeResults:pa(e)}),this.canon=e.canon||new Ia,this.executeSelectionSet=_n(function(e){var r,n=e.context.canonizeResults,i=Aa(e);i[3]=!n;var a=(r=t.executeSelectionSet).peek.apply(r,i);return a?n?D(D({},a),{result:t.canon.admit(a.result)}):a:(ja(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||Ht["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:Aa,makeCacheKey:function(e,t,r,n){if(Na(r.store))return r.store.makeCacheKey(e,pr(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=_n(function(e){return ja(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||Ht["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(Na(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Ia},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.rootId,i=void 0===n?"ROOT_QUERY":n,a=e.variables,o=e.returnPartialData,s=void 0===o||o,c=e.canonizeResults,u=void 0===c?this.config.canonizeResults:c,l=this.config.cache.policies;a=D(D({},Or(Er(r))),a);var d,p=dr(i),h=this.executeSelectionSet({selectionSet:jr(r).selectionSet,objectOrReference:p,enclosingRef:p,context:D({store:t,query:r,policies:l,variables:a,varString:cr(a),canonizeResults:u},va(r,this.config.fragments))});if(h.missing&&(d=[new sa(Pa(h.missing),h.missing,r,a)],!s))throw d[0];return{result:h.result,complete:!d,missing:d}},e.prototype.isFresh=function(e,t,r,n){if(Na(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,r=e.selectionSet,n=e.objectOrReference,i=e.enclosingRef,a=e.context;if(pr(n)&&!a.policies.rootTypenamesById[n.__ref]&&!a.store.has(n.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(n.__ref," object")};var o,s=a.variables,c=a.policies,u=a.store.getFieldValue(n,"__typename"),l=[],d=new Fn;function p(e,t){var r;return e.missing&&(o=d.merge(o,((r={})[t]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof u&&!c.rootIdsByTypename[u]&&l.push({__typename:u});var h=new Set(r.selections);h.forEach(function(e){var r,f;if(vt(e,s))if(br(e)){var m=c.readField({fieldName:e.name.value,field:e,variables:a.variables,from:n},a),_=yr(e);void 0===m?Tn.added(e)||(o=d.merge(o,((r={})[_]="Can't find field '".concat(e.name.value,"' on ").concat(pr(n)?n.__ref+" object":"object "+JSON.stringify(n,null,2)),r))):kn(m)?m.length>0&&(m=p(t.executeSubSelectedArray({field:e,array:m,enclosingRef:i,context:a}),_)):e.selectionSet?null!=m&&(m=p(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:m,enclosingRef:pr(m)?m:i,context:a}),_)):a.canonizeResults&&(m=t.canon.pass(m)),void 0!==m&&l.push(((f={})[_]=m,f))}else{var v=Rt(e,a.lookupFragment);if(!v&&e.kind===ke.FRAGMENT_SPREAD)throw J(9,e.name.value);v&&c.fragmentMatches(v,u)&&v.selectionSet.selections.forEach(h.add,h)}});var f={result:Cn(l),missing:o},m=a.canonizeResults?this.canon.admit(f):ui(f);return m.result&&this.knownResults.set(m.result,r),m},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,a=e.enclosingRef,o=e.context,s=new Fn;function c(e,r){var n;return e.missing&&(t=s.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(o.store.canRead)),i=i.map(function(e,t){return null===e?null:kn(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:a,context:o}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:pr(e)?e:a,context:o}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=/* @__PURE__ */new Set([r]);n.forEach(function(r){Ct(r)&&(G(!pr(r),10,function(e,t){return pr(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,r),t.name.value),Object.values(r).forEach(n.add,n))})}}(o.store,n,e),e)}),{result:o.canonizeResults?this.canon.admit(i):i,missing:t}},e}();function Pa(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(Ay){return Ay}}var Fa=new qr,Ra=/* @__PURE__ */new WeakMap;function Ma(e){var t=Ra.get(e);return t||Ra.set(e,t={vars:/* @__PURE__ */new Set,dep:pn()}),t}function $a(e){Ma(e).vars.forEach(function(t){return t.forgetCache(e)})}function La(e){var t=/* @__PURE__ */new Set,r=/* @__PURE__ */new Set,n=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(function(e){Ma(e).dep.dirty(n),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)});var o=Array.from(r);r.clear(),o.forEach(function(t){return t(e)})}}else{var s=Fa.getValue();s&&(i(s),Ma(s).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var i=n.attachCache=function(e){return t.add(e),Ma(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}var qa=/* @__PURE__ */Object.create(null);function za(e){var t=JSON.stringify(e);return qa[t]||(qa[t]=/* @__PURE__ */Object.create(null))}function Va(e){var t=za(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},i=r.keyObject=Ua(e,function(e){var i=Ya(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&ca.call(t,e[0])&&(i=Ya(t,e,Wa)),G(void 0!==i,4,e.join("."),t),i});return"".concat(r.typename,":").concat(JSON.stringify(i))})}function Ba(e){var t=za(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,a=r.fieldName,o=Ua(e,function(e){var r=e[0],a=r.charAt(0);if("@"!==a)if("$"!==a){if(t)return Ya(t,e)}else{var o=r.slice(1);if(i&&ca.call(i,o)){var s=e.slice(0);return s[0]=o,Ya(i,s)}}else if(n&&wn(n.directives)){var c=r.slice(1),u=n.directives.find(function(e){return e.name.value===c}),l=u&&vr(u,i);return l&&Ya(l,e.slice(1))}}),s=JSON.stringify(o);return(t||"{}"!==s)&&(a+=":"+s),a})}function Ua(e,t){var r=new Fn;return Qa(e).reduce(function(e,n){var i,a=t(n);if(void 0!==a){for(var o=n.length-1;o>=0;--o)(i={})[n[o]]=a,a=i;e=r.merge(e,a)}return e},/* @__PURE__ */Object.create(null))}function Qa(e){var t=za(e);if(!t.paths){var r=t.paths=[],n=[];e.forEach(function(t,i){kn(t)?(Qa(t).forEach(function(e){return r.push(n.concat(e))}),n.length=0):(n.push(t),kn(e[i+1])||(r.push(n.slice(0)),n.length=0))})}return t.paths}function Wa(e,t){return e[t]}function Ya(e,t,r){return r=r||Wa,Ka(t.reduce(function e(t,n){return kn(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}function Ka(e){return Ct(e)?kn(e)?e.map(Ka):Ua(Object.keys(e).sort(),function(t){return Ya(e,t)}):e}function Ha(e){return void 0!==e.args?e.args:e.field?vr(e.field,e.variables):null}var Ga=function(){},Ja=function(e,t){return t.fieldName},Xa=function(e,t,r){return(0,r.mergeObjects)(e,t)},Za=function(e,t){return t},eo=function(){function e(e){this.config=e,this.typePolicies=/* @__PURE__ */Object.create(null),this.toBeAdded=/* @__PURE__ */Object.create(null),this.supertypeMap=/* @__PURE__ */new Map,this.fuzzySubtypes=/* @__PURE__ */new Map,this.rootIdsByTypename=/* @__PURE__ */Object.create(null),this.rootTypenamesById=/* @__PURE__ */Object.create(null),this.usingPossibleTypes=!1,this.config=D({dataIdFromObject:la},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,n=this,i=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a,o=t&&t.storeObject||e,s=D(D({},t),{typename:i,storeObject:o,readField:t&&t.readField||function(){var e=ro(arguments,o);return n.readField(e,{store:n.cache.data,variables:e.variables})}}),c=i&&this.getTypePolicy(i),u=c&&c.keyFn||this.config.dataIdFromObject;u;){var l=u(D(D({},e),o),s);if(!kn(l)){a=l;break}u=Va(l)}return a=a?String(a):void 0,s.keyObject?[a,s.keyObject]:[a]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var n=e[r],i=n.queryType,a=n.mutationType,o=n.subscriptionType,s=N(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),o&&t.setRootTypename("Subscription",r),ca.call(t.toBeAdded,r)?t.toBeAdded[r].push(s):t.toBeAdded[r]=[s]})},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,a=t.fields;function o(e,t){e.merge="function"==typeof t?t:!0===t?Xa:!1===t?Za:e.merge}o(n,t.merge),n.keyFn=!1===i?Ga:kn(i)?Va(i):"function"==typeof i?i:n.keyFn,a&&Object.keys(a).forEach(function(t){var n=r.getFieldPolicy(e,t,!0),i=a[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,c=i.read,u=i.merge;n.keyFn=!1===s?Ja:kn(s)?Ba(s):"function"==typeof s?s:n.keyFn,"function"==typeof c&&(n.read=c),o(n,u)}n.read&&n.merge&&(n.keyFn=n.keyFn||Ja)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&(G(!n||n===e,5,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(ha);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!ca.call(this.typePolicies,e)){var r=this.typePolicies[e]=/* @__PURE__ */Object.create(null);r.fields=/* @__PURE__ */Object.create(null);var n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(r,i){if(r.test(e)){var a=t.supertypeMap.get(i);a&&a.forEach(function(e){return n.add(e)})}})),n&&n.size&&n.forEach(function(e){var n=t.getTypePolicy(e),i=n.fields,a=N(n,["fields"]);Object.assign(r,a),Object.assign(r.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(r){t.updateTypePolicy(e,r)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=/* @__PURE__ */Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=/* @__PURE__ */new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var o=this.getSupertypeSet(t,!0),s=[o],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},u=!(!r||!this.fuzzySubtypes.size),l=!1,d=0;d<s.length;++d){var p=s[d];if(p.has(a))return o.has(a)||(l&&!1!==globalThis.__DEV__&&G.warn(6,t,a),o.add(a)),!0;p.forEach(c),u&&d===s.length-1&&ma(e.selectionSet,r,n)&&(u=!1,l=!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&c(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!(!r||!r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n,!1),a=i&&i.keyFn;if(a&&r)for(var o={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=Ha(e);a;){var c=a(s,o);if(!kn(c)){t=c||n;break}a=Ba(c)}return void 0===t&&(t=e.field?function(e,t){var r=null;e.directives&&(r={},e.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(n){var i=n.name,a=n.value;return hr(r[e.name.value],i,a,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){var r=e.name,i=e.value;return hr(n,r,i,t)})),_r(e.name.value,n,r)}(e.field,e.variables):_r(n,Ha(e))),!1===t?n:n===fa(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),a=fa(i),o=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,a,!1),c=s&&s.read;if(c){var u=to(this,r,e,t,t.store.getStorage(pr(r)?r.__ref:r,i));return Fa.withValue(this.cache,c,[o,u])}return o}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var a=r.field,o=r.typename,s=r.merge;return s===Xa?no(n.store)(e,t):s===Za?t:(n.overwrite&&(e=void 0),s(e,t,to(this,void 0,{typename:o,fieldName:a.name.value,field:a,variables:n.variables},n,i||/* @__PURE__ */Object.create(null))))},e}();function to(e,t,r,n,i){var a=e.getStoreFieldName(r),o=fa(a),s=r.variables||n.variables,c=n.store,u=c.toReference,l=c.canRead;return{args:Ha(r),field:r.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:pr,toReference:u,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(ro(arguments,t,s),n)},mergeObjects:no(n.store)}}function ro(e,t,r){var n,i=e[0],a=e[1],o=e.length;return"string"==typeof i?n={fieldName:i,from:o>1?a:t}:(n=D({},i),ca.call(n,"from")||(n.from=t)),!1!==globalThis.__DEV__&&void 0===n.from&&!1!==globalThis.__DEV__&&G.warn(7,K(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function no(e){return function(t,r){if(kn(t)||kn(r))throw J(8);if(Ct(t)&&Ct(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if(pr(t)&&_a(r))return e.merge(t.__ref,r),t;if(_a(t)&&pr(r))return e.merge(t,r.__ref),r;if(_a(t)&&_a(r))return D(D({},t),r)}return r}}function io(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:D(D({},e),{clientOnly:t,deferred:r})),i}var ao=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,n=t.query,i=t.result,a=t.dataId,o=t.variables,s=t.overwrite,c=wr(n),u=new Fn;o=D(D({},Or(c)),o);var l=D(D({store:e,written:/* @__PURE__ */Object.create(null),merge:function(e,t){return u.merge(e,t)},variables:o,varString:cr(o)},va(n,this.fragments)),{overwrite:!!s,incomingById:/* @__PURE__ */new Map,clientOnly:!1,deferred:!1,flavors:/* @__PURE__ */new Map}),d=this.processSelectionSet({result:i||/* @__PURE__ */Object.create(null),dataId:a,selectionSet:c.selectionSet,mergeTree:{map:/* @__PURE__ */new Map},context:l});if(!pr(d))throw J(11,i);return l.incomingById.forEach(function(t,n){var i=t.storeObject,a=t.mergeTree,o=t.fieldNodeSet,s=dr(n);if(a&&a.map.size){var c=r.applyMerges(a,s,i,l);if(pr(c))return;i=c}if(!1!==globalThis.__DEV__&&!l.overwrite){var u=/* @__PURE__ */Object.create(null);o.forEach(function(e){e.selectionSet&&(u[e.name.value]=!0)});Object.keys(i).forEach(function(e){(function(e){return!0===u[fa(e)]})(e)&&!function(e){var t=a&&a.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,r,n){var i=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},a=i(e);if(!a)return;var o=i(t);if(!o)return;if(pr(a))return;if(Gi(a,o))return;if(Object.keys(a).every(function(e){return void 0!==n.getFieldValue(o,e)}))return;var s=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),c=fa(r),u="".concat(s,".").concat(c);if(po.has(u))return;po.add(u);var l=[];kn(a)||kn(o)||[a,o].forEach(function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||l.includes(t)||l.push(t)});!1!==globalThis.__DEV__&&G.warn(14,c,s,l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"",u,D({},a),D({},o))}(s,i,e,l.store)})}e.merge(n,i)}),e.retain(d.__ref),d},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,a=e.context,o=e.mergeTree,s=this.cache.policies,c=/* @__PURE__ */Object.create(null),u=r&&s.rootTypenamesById[r]||gr(n,i,a.fragmentMap)||r&&a.store.get(r,"__typename");"string"==typeof u&&(c.__typename=u);var l=function(){var e=ro(arguments,c,a.variables);if(pr(e.from)){var t=a.incomingById.get(e.from.__ref);if(t){var r=s.readField(D(D({},e),{from:t.storeObject}),a);if(void 0!==r)return r}}return s.readField(e,a)},d=/* @__PURE__ */new Set;this.flattenFields(i,n,a,u).forEach(function(e,r){var i,a=yr(r),p=n[a];if(d.add(r),void 0!==p){var h=s.getStoreFieldName({typename:u,fieldName:r.name.value,field:r,variables:e.variables}),f=so(o,h),m=t.processFieldValue(p,r,r.selectionSet?io(e,!1,!1):e,f),_=void 0;r.selectionSet&&(pr(m)||_a(m))&&(_=l("__typename",m));var v=s.getMergeFunction(u,r.name.value,_);v?f.info={field:r,typename:u,merge:v}:lo(o,h),c=e.merge(c,((i={})[h]=m,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||Tn.added(r)||s.getReadFunction(u,r.name.value)||!1!==globalThis.__DEV__&&G.error(12,yr(r),n)});try{var p=s.identify(n,{typename:u,selectionSet:i,fragmentMap:a.fragmentMap,storeObject:c,readField:l}),h=p[0],f=p[1];r=r||h,f&&(c=a.merge(c,f))}catch(y){if(!r)throw y}if("string"==typeof r){var m=dr(r),_=a.written[r]||(a.written[r]=[]);if(_.indexOf(i)>=0)return m;if(_.push(i),this.reader&&this.reader.isFresh(n,m,i,a))return m;var v=a.incomingById.get(r);return v?(v.storeObject=a.merge(v.storeObject,c),v.mergeTree=co(v.mergeTree,o),d.forEach(function(e){return v.fieldNodeSet.add(e)})):a.incomingById.set(r,{storeObject:c,mergeTree:uo(o)?void 0:o,fieldNodeSet:d}),m}return c},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?kn(e)?e.map(function(e,a){var o=i.processFieldValue(e,t,r,so(n,a));return lo(n,a),o}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?oi(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=gr(t,e,r.fragmentMap));var i=/* @__PURE__ */new Map,a=this.cache.policies,o=new St(!1);return function e(s,c){var u=o.lookup(s,c.clientOnly,c.deferred);u.visited||(u.visited=!0,s.selections.forEach(function(o){if(vt(o,r.variables)){var s=c.clientOnly,u=c.deferred;if(s&&u||!wn(o.directives)||o.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var n=vr(e,r.variables);n&&!1===n.if||(u=!0)}}),br(o)){var l=i.get(o);l&&(s=s&&l.clientOnly,u=u&&l.deferred),i.set(o,io(r,s,u))}else{var d=Rt(o,r.lookupFragment);if(!d&&o.kind===ke.FRAGMENT_SPREAD)throw J(13,o.name.value);d&&a.fragmentMatches(d,n,t,r.variables)&&e(d.selectionSet,io(r,s,u))}}}))}(e,r),i},e.prototype.applyMerges=function(e,t,r,n,i){var a,o=this;if(e.map.size&&!pr(r)){var s,c=kn(r)||!pr(t)&&!_a(t)?void 0:t,u=r;c&&!i&&(i=[pr(c)?c.__ref:c]);var l=function(e,t){return kn(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var r=l(c,t),a=l(u,t);if(void 0!==a){i&&i.push(t);var d=o.applyMerges(e,r,a,n,i);d!==a&&(s=s||/* @__PURE__ */new Map).set(t,d),i&&G(i.pop()===t)}}),s&&(r=kn(u)?u.slice(0):D({},u),s.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(a=n.store).getStorage.apply(a,i)):r},e}(),oo=[];function so(e,t){var r=e.map;return r.has(t)||r.set(t,oo.pop()||{map:/* @__PURE__ */new Map}),r.get(t)}function co(e,t){if(e===t||!t||uo(t))return e;if(!e||uo(e))return t;var r=e.info&&t.info?D(D({},e.info),t.info):e.info||t.info,n=e.map.size&&t.map.size,i={info:r,map:n?/* @__PURE__ */new Map:e.map.size?e.map:t.map};if(n){var a=new Set(t.map.keys());e.map.forEach(function(e,r){i.map.set(r,co(e,t.map.get(r))),a.delete(r)}),a.forEach(function(r){i.map.set(r,co(t.map.get(r),e.map.get(r)))})}return i}function uo(e){return!e||!(e.info||e.map.size)}function lo(e,t){var r=e.map,n=r.get(t);n&&uo(n)&&(oo.push(n),r.delete(t))}var po=/* @__PURE__ */new Set;var ho,fo,mo=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=/* @__PURE__ */new Set,r.addTypenameTransform=new gn(Tn),r.assumeImmutableResults=!0,r.makeVar=La,r.txCount=0,r.config=function(e){return bi(da,e)}(t),r.addTypename=!!r.config.addTypename,r.policies=new eo({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return T(t,e),t.prototype.init=function(){var e=this.data=new xa.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new ao(this,this.storeReader=new Ca({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:pa(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=_n(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize||Ht["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(Na(r)){var n=e.optimistic,i=e.id,a=e.variables;return r.makeCacheKey(e.query,e.callback,cr({optimistic:n,id:i,variables:a}))}}}),
15
+ /* @__PURE__ */new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,r=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(D(D({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r})).result||null}catch(n){if(n instanceof sa)return null;throw n}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(ca.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(D(D({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,r=this;return this.watches.size||Ma(t=this).vars.forEach(function(e){return e.attachCache(t)}),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){r.watches.delete(e)&&!r.watches.size&&$a(r),r.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){var t;cr.reset(),bn.reset(),this.addTypenameTransform.resetCache(),null===(t=this.config.fragments)||void 0===t||t.resetCaches();var r=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),r},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(pr(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(t){!1!==globalThis.__DEV__&&G.warn(t)}},t.prototype.evict=function(e){if(!e.id){if(ca.call(e,"id"))return!1;e=D(D({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),cr.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),$a(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,n=e.update,i=e.optimistic,a=void 0===i||i,o=e.removeOptimistic,s=e.onWatchUpdated,c=function(e){var i=r,a=i.data,o=i.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=a,r.optimisticData=o}},u=/* @__PURE__ */new Set;return s&&!this.txCount&&this.broadcastWatches(D(D({},e),{onWatchUpdated:function(e){return u.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,c):!1===a?c(this.data):c(),"string"==typeof o&&(this.optimisticData=this.optimisticData.removeLayer(o)),s&&u.size?(this.broadcastWatches(D(D({},e),{onWatchUpdated:function(e,t){var r=s.call(this,e,t);return!1!==r&&u.delete(e),r}})),u.size&&u.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,n,r))||r&&Gi(r.result,n.result)||e.callback(e.lastDiff=n,r)},t}(oa);function _o(e){return!!e&&e<7}!1!==globalThis.__DEV__&&(mo.prototype.getMemoryInternals=Zt),(fo=ho||(ho={}))[fo.loading=1]="loading",fo[fo.setVariables=2]="setVariables",fo[fo.fetchMore=3]="fetchMore",fo[fo.refetch=4]="refetch",fo[fo.poll=6]="poll",fo[fo.ready=7]="ready",fo[fo.error=8]="error";var vo=Object.assign,yo=Object.hasOwnProperty,go=function(e){function t(t){var r=t.queryManager,n=t.queryInfo,i=t.options,a=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=ko)}catch(i){}var r=!a.observers.size;a.observers.add(e);var n=a.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(n.result),r&&a.reobserve().catch(function(){}),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=/* @__PURE__ */new Set,a.subscriptions=/* @__PURE__ */new Set,a.queryInfo=n,a.queryManager=r,a.waitForOwnResult=xo(i.fetchPolicy),a.isTornDown=!1,a.subscribeToMore=a.subscribeToMore.bind(a);var o=r.defaultOptions.watchQuery,s=(void 0===o?{}:o).fetchPolicy,c=void 0===s?"cache-first":s,u=i.fetchPolicy,l=void 0===u?c:u,d=i.initialFetchPolicy,p=void 0===d?"standby"===l?c:l:d;a.options=D(D({},i),{initialFetchPolicy:p,fetchPolicy:l}),a.queryId=n.queryId||r.generateQueryId();var h=wr(a.query);return a.queryName=h&&h.name&&h.name.value,a}return T(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||ho.ready,n=D(D({},t),{loading:_o(r),networkStatus:r}),i=this.options.fetchPolicy,a=void 0===i?"cache-first":i;if(xo(a)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var o=this.queryInfo.getDiff();(o.complete||this.options.returnPartialData)&&(n.data=o.result),Gi(n.data,{})&&(n.data=void 0),o.complete?(delete n.partial,!o.complete||n.networkStatus!==ho.loading||"cache-first"!==a&&"cache-only"!==a||(n.networkStatus=ho.ready,n.loading=!1)):n.partial=!0,!1===globalThis.__DEV__||o.complete||this.options.partialRefetch||n.loading||n.data||n.error||wo(o.missing)}return e&&this.updateLastResult(n),n},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||((this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!ra(this.query,this.last.result,e,this.variables):!Gi(this.last.result,e))||t&&!Gi(this.last.variables,t))},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||Gi(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0},n=this.options.fetchPolicy;if(r.fetchPolicy="cache-and-network"===n?n:"no-cache"===n?"no-cache":"network-only",!1!==globalThis.__DEV__&&e&&yo.call(e,"variables")){var i=Er(this.query),a=i.variableDefinitions;a&&a.some(function(e){return"variables"===e.variable.name.value})||!1!==globalThis.__DEV__&&G.warn(20,e,(null===(t=i.name)||void 0===t?void 0:t.value)||i)}return e&&!Gi(this.options.variables,e)&&(r.variables=this.options.variables=D(D({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,ho.refetch)},t.prototype.fetchMore=function(e){var t=this,r=D(D({},e.query?e:D(D(D(D({},this.options),{query:this.options.query}),e),{variables:D(D({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});r.query=this.transformDocument(r.query);var n=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):r.query;var i=this.queryInfo,a=i.networkStatus;i.networkStatus=ho.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var o=/* @__PURE__ */new Set,s=null==e?void 0:e.updateQuery,c="no-cache"!==this.options.fetchPolicy;return c||G(s,21),this.queryManager.fetchQuery(n,r,ho.fetchMore).then(function(u){if(t.queryManager.removeQuery(n),i.networkStatus===ho.fetchMore&&(i.networkStatus=a),c)t.queryManager.cache.batch({update:function(n){var i=e.updateQuery;i?n.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return i(e,{fetchMoreResult:u.data,variables:r.variables})}):n.writeQuery({query:r.query,variables:r.variables,data:u.data})},onWatchUpdated:function(e){o.add(e.query)}});else{var l=t.getLast("result"),d=s(l.data,{fetchMoreResult:u.data,variables:r.variables});t.reportResult(D(D({},l),{data:d}),t.variables)}return u}).finally(function(){c&&!o.has(t.query)&&bo(t)})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery(function(e,t){var i=t.variables;return n(e,{subscriptionData:r,variables:i})})},error:function(t){e.onError?e.onError(t):!1!==globalThis.__DEV__&&G.error(22,t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=bi(this.options,e||{});vo(this.options,t)},t.prototype.setVariables=function(e){return Gi(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},ho.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,r=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,a=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:a}):t.fetchPolicy="variables-changed"===e?a:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,r){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t,r)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(r&&this.hasObservers()){if(!t||t.interval!==r){G(r,23),(t||(this.pollingInfo={})).interval=r;var n=function(){var t,r;e.pollingInfo&&(_o(e.queryInfo.networkStatus)||(null===(r=(t=e.options).skipPollAttempt)||void 0===r?void 0:r.call(t))?i():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},ho.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var r=this.getLastError();return r&&this.last&&!Gi(t,this.last.variables)&&(r=void 0),this.last=D({result:this.queryManager.assumeImmutableResults?e:oi(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var n=t===ho.refetch||t===ho.fetchMore||t===ho.poll,i=this.options.variables,a=this.options.fetchPolicy,o=bi(this.options,e||{}),s=n?o:vo(this.options,o),c=this.transformDocument(s.query);this.lastQuery=c,n||(this.updatePolling(),!e||!e.variables||Gi(e.variables,i)||"standby"===s.fetchPolicy||s.fetchPolicy!==a&&"function"!=typeof s.nextFetchPolicy||(this.applyNextFetchPolicy("variables-changed",s),void 0===t&&(t=ho.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=xo(s.fetchPolicy));var u=function(){r.concast===p&&(r.waitForOwnResult=!1)},l=s.variables&&D({},s.variables),d=this.fetch(s,t,c),p=d.concast,h=d.fromLink,f={next:function(e){Gi(r.variables,l)&&(u(),r.reportResult(e,l))},error:function(e){Gi(r.variables,l)&&(Pi(e)||(e=new Fi({networkError:e})),u(),r.reportError(e,l))}};return n||!h&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=p,this.observer=f),p.addObserver(f),p},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.last;this.resetLastResults();var n=this.subscribe.apply(this,e);return this.last=r,n},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError(),n=this.isDifferentFromLastResult(e,t);(r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(r||n)&&li(this.observers,"next",e)},t.prototype.reportError=function(e,t){var r=D(D({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:ho.error,loading:!1});this.updateLastResult(r,t),li(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t}(ri);function bo(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,t){return this.nextFetchPolicy=n,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(e,t):r}}):e.reobserve()}function ko(e){!1!==globalThis.__DEV__&&G.error(24,e.message,e.stack)}function wo(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&G.debug(25,e)}function xo(e){return"network-only"===e||"no-cache"===e||"standby"===e}pi(go);var So=new(jt?WeakMap:Map);function Eo(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return So.set(e,(So.get(e)+1)%1e15),r.apply(this,arguments)})}function jo(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Oo=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=/* @__PURE__ */new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;So.has(r)||(So.set(r,0),Eo(r,"evict"),Eo(r,"modify"),Eo(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||ho.loading;return this.variables&&this.networkStatus!==ho.loading&&!Gi(this.variables,e.variables)&&(t=ho.setVariables),Gi(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){jo(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&Gi(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(e);return this.updateLastDiff(r,e),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r=this,n=this.lastDiff&&this.lastDiff.diff;e&&!e.complete&&(null===(t=this.observableQuery)||void 0===t?void 0:t.getLastError())||(this.updateLastDiff(e),this.dirty||Gi(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return r.notify()},0))))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():bo(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;jo(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(_o(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var n=D(D({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&Gi(n,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=n))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===So.get(this.cache)&&Gi(t,r.variables)&&Gi(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,a=new Fn,o=wn(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&wn(e.incremental)){var s=vi(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var c=this.getDiff();e.data=a.merge(c.result,e.data)}this.graphQLErrors=o,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(To(e,r.errorPolicy)?this.cache.performTransaction(function(a){if(i.shouldWrite(e,r.variables))a.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:So.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete)return void(e.data=i.lastDiff.diff.result);var o=i.getDiffOptions(r.variables),s=a.diff(o);!i.stopped&&Gi(i.variables,r.variables)&&i.updateWatch(r.variables),i.updateLastDiff(s,o),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=ho.ready},e.prototype.markError=function(e){return this.networkStatus=ho.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function To(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!yi(e);return!n&&r&&e.data&&(n=!0),n}var Do=Object.prototype.hasOwnProperty,No=/* @__PURE__ */Object.create(null),Io=function(){function e(e){var t=this;this.clientAwareness={},this.queries=/* @__PURE__ */new Map,this.fetchCancelFns=/* @__PURE__ */new Map,this.transformCache=new Yt(Ht["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new St(!1);var r=new gn(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults;var n=e.documentTransform;this.documentTransform=n?r.concat(n).concat(r):r,this.defaultContext=e.defaultContext||/* @__PURE__ */Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=/* @__PURE__ */Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(J(26))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return I(this,arguments,void 0,function(e){var t,r,n,i,a,o,s,c=e.mutation,u=e.variables,l=e.optimisticResponse,d=e.updateQueries,p=e.refetchQueries,h=void 0===p?[]:p,f=e.awaitRefetchQueries,m=void 0!==f&&f,_=e.update,v=e.onQueryUpdated,y=e.fetchPolicy,g=void 0===y?(null===(o=this.defaultOptions.mutate)||void 0===o?void 0:o.fetchPolicy)||"network-only":y,b=e.errorPolicy,k=void 0===b?(null===(s=this.defaultOptions.mutate)||void 0===s?void 0:s.errorPolicy)||"none":b,w=e.keepRootFields,x=e.context;return A(this,function(e){switch(e.label){case 0:return G(c,27),G("network-only"===g||"no-cache"===g,28),t=this.generateMutationId(),c=this.cache.transformForLink(this.transform(c)),r=this.getDocumentInfo(c).hasClientExports,u=this.getVariables(c,u),r?[4,this.localState.addExportedVariables(c,u,x)]:[3,2];case 1:u=e.sent(),e.label=2;case 2:return n=this.mutationStore&&(this.mutationStore[t]={mutation:c,variables:u,loading:!0,error:null}),i=l&&this.markMutationOptimistic(l,{mutationId:t,document:c,variables:u,fetchPolicy:g,errorPolicy:k,context:x,updateQueries:d,update:_,keepRootFields:w}),this.broadcastQueries(),a=this,[2,new Promise(function(e,r){return di(a.getObservableFromLink(c,D(D({},x),{optimisticResponse:i?l:void 0}),u,{},!1),function(e){if(yi(e)&&"none"===k)throw new Fi({graphQLErrors:gi(e)});n&&(n.loading=!1,n.error=null);var r=D({},e);return"function"==typeof h&&(h=h(r)),"ignore"===k&&yi(r)&&delete r.errors,a.markMutationResult({mutationId:t,result:r,document:c,variables:u,fetchPolicy:g,errorPolicy:k,context:x,update:_,updateQueries:d,awaitRefetchQueries:m,refetchQueries:h,removeOptimistic:i?t:void 0,onQueryUpdated:v,keepRootFields:w})}).subscribe({next:function(t){a.broadcastQueries(),"hasNext"in t&&!1!==t.hasNext||e(t)},error:function(e){n&&(n.loading=!1,n.error=e),i&&a.cache.removeOptimistic(t),a.broadcastQueries(),r(e instanceof Fi?e:new Fi({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var n=e.result,i=[],a="no-cache"===e.fetchPolicy;if(!a&&To(n,e.errorPolicy)){if(mi(n)||i.push({result:n.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),mi(n)&&wn(n.incremental)){var o=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),s=void 0;o.result&&(s=vi(o.result,n)),void 0!==s&&(n.data=s,i.push({result:s,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(e,a){var o=e.observableQuery,s=o&&o.queryName;if(s&&Do.call(c,s)){var u=c[s],l=r.queries.get(a),d=l.document,p=l.variables,h=t.diff({query:d,variables:p,returnPartialData:!0,optimistic:!1}),f=h.result;if(h.complete&&f){var m=u(f,{mutationResult:n,queryName:d&&xr(d)||void 0,queryVariables:p});m&&i.push({result:m,dataId:"ROOT_QUERY",query:d,variables:p})}}})}if(i.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var u=[];if(this.refetchQueries({updateCache:function(t){a||i.forEach(function(e){return t.write(e)});var o,s=e.update,c=!(mi(o=n)||function(e){return"hasNext"in e&&"data"in e}(o))||mi(n)&&!n.hasNext;if(s){if(!a){var u=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});u.complete&&("incremental"in(n=D(D({},n),{data:u.result}))&&delete n.incremental,"hasNext"in n&&delete n.hasNext)}c&&s(t,n,{context:e.context,variables:e.variables})}a||e.keepRootFields||!c||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return u.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(u).then(function(){return n})}return Promise.resolve(n)},e.prototype.markMutationOptimistic=function(e,t){var r=this,n="function"==typeof e?e(t.variables,{IGNORE:No}):e;return n!==No&&(this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult(D(D({},t),{result:{data:n}}),e)}catch(i){!1!==globalThis.__DEV__&&G.error(i)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(e,t,r).concast.promise},e.prototype.getQueryStore=function(){var e=/* @__PURE__ */Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:gt(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:yt(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:On([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:Or(wr(e)),asQuery:D(D({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?D(D({},e),{operation:"query"}):e})})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return D(D({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=D(D({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new Oo(this),n=new go({queryManager:this,queryInfo:r,options:e});return n.lastQuery=t,this.queries.set(n.queryId,r),r.init({document:t,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var r=this;return void 0===t&&(t=this.generateQueryId()),G(e.query,29),G("Document"===e.query.kind,30),G(!e.returnPartialData,31),G(!e.pollInterval,32),this.fetchQuery(t,D(D({},e),{query:this.transform(e.query)})).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(J(33)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=ho.loading:e.stop()}),this.mutationStore&&(this.mutationStore=/* @__PURE__ */Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=/* @__PURE__ */new Map,n=/* @__PURE__ */new Map,i=/* @__PURE__ */new Set;return Array.isArray(e)&&e.forEach(function(e){var r;"string"==typeof e?n.set(e,!1):Ct(r=e)&&"Document"===r.kind&&Array.isArray(r.definitions)?n.set(t.transform(e),!1):Ct(e)&&e.query&&i.add(e)}),this.queries.forEach(function(t,i){var a=t.observableQuery,o=t.document;if(a){if("all"===e)return void r.set(i,a);var s=a.queryName;if("standby"===a.options.fetchPolicy||"active"===e&&!a.hasObservers())return;("active"===e||s&&n.has(s)||o&&n.has(o))&&(r.set(i,a),s&&n.set(s,!0),o&&n.set(o,!0))}}),i.size&&i.forEach(function(e){var n=Y("legacyOneTimeQuery"),i=t.getQuery(n).init({document:e.query,variables:e.variables}),a=new go({queryManager:t,queryInfo:i,options:D(D({},e),{fetchPolicy:"network-only"})});G(a.queryId===n),i.setObservableQuery(a),r.set(n,a)}),!1!==globalThis.__DEV__&&n.size&&n.forEach(function(e,t){e||!1!==globalThis.__DEV__&&G.warn("string"==typeof t?34:35,t)}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,i){var a=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==a&&"cache-only"!==a)&&r.push(n.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,a=void 0===i?"none":i,o=e.variables,s=e.context,c=void 0===s?{}:s,u=e.extensions,l=void 0===u?{}:u;r=this.transform(r),o=this.getVariables(r,o);var d=function(e){return t.getObservableFromLink(r,c,e,l).map(function(i){"no-cache"!==n&&(To(i,a)&&t.cache.write({query:r,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var o=yi(i),s=function(e){return!!e.extensions&&Array.isArray(e.extensions[Ci])}(i);if(o||s){var c={};if(o&&(c.graphQLErrors=i.errors),s&&(c.protocolErrors=i.extensions[Ci]),"none"===a||s)throw new Fi(c)}return"ignore"===a&&delete i.errors,i})};if(this.getDocumentInfo(r).hasClientExports){var p=this.localState.addExportedVariables(r,o,c).then(d);return new ri(function(e){var t=null;return p.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return d(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n,i){var a,o,s=this;void 0===i&&(i=null!==(a=null==t?void 0:t.queryDeduplication)&&void 0!==a?a:this.queryDeduplication);var c=this.getDocumentInfo(e),u=c.serverQuery,l=c.clientQuery;if(u){var d=this.inFlightLinkObservables,p=this.link,h={query:u,variables:r,operationName:xr(u)||void 0,context:this.prepareContext(D(D({},t),{forceFetch:!i})),extensions:n};if(t=h.context,i){var f=bn(u),m=cr(r),_=d.lookup(f,m);if(!(o=_.observable)){var v=new fi([Di(p,h)]);o=_.observable=v,v.beforeNext(function(){d.remove(f,m)})}}else o=new fi([Di(p,h)])}else o=new fi([ri.of({data:{}})]),t=this.prepareContext(t);return l&&(o=di(o,function(e){return s.localState.runResolvers({document:l,remoteResult:e,context:t,variables:r})})),o},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return di(this.getObservableFromLink(i,r.context,r.variables),function(a){var o=gi(a),s=o.length>0,c=r.errorPolicy;if(n>=e.lastRequestId){if(s&&"none"===c)throw e.markError(new Fi({graphQLErrors:o}));e.markResult(a,i,r,t),e.markReady()}var u={data:a.data,loading:!1,networkStatus:ho.ready};return s&&"none"===c&&(u.data=void 0),s&&"ignore"!==c&&(u.errors=o,u.networkStatus=ho.error),u},function(t){var r=Pi(t)?t:new Fi({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i=this;void 0===r&&(r=ho.loading),void 0===n&&(n=t.query);var a,o,s=this.getVariables(n,t.variables),c=this.getQuery(e),u=this.defaultOptions.watchQuery,l=t.fetchPolicy,d=void 0===l?u&&u.fetchPolicy||"cache-first":l,p=t.errorPolicy,h=void 0===p?u&&u.errorPolicy||"none":p,f=t.returnPartialData,m=void 0!==f&&f,_=t.notifyOnNetworkStatusChange,v=void 0!==_&&_,y=t.context,g=void 0===y?{}:y,b=Object.assign({},t,{query:n,variables:s,fetchPolicy:d,errorPolicy:h,returnPartialData:m,notifyOnNetworkStatusChange:v,context:g}),k=function(e){b.variables=e;var n=i.fetchQueryByPolicy(c,b,r);return"standby"!==b.fetchPolicy&&n.sources.length>0&&c.observableQuery&&c.observableQuery.applyNextFetchPolicy("after-fetch",t),n},w=function(){return i.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,function(e){w(),setTimeout(function(){return a.cancel(e)})}),this.getDocumentInfo(b.query).hasClientExports)a=new fi(this.localState.addExportedVariables(b.query,b.variables,b.context).then(k).then(function(e){return e.sources})),o=!0;else{var x=k(b.variables);o=x.fromLink,a=new fi(x.sources)}return a.promise.then(w,w),{concast:a,fromLink:o}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,a=void 0!==i&&i,o=e.removeOptimistic,s=void 0===o?a?Y("refetchQueries"):void 0:o,c=e.onQueryUpdated,u=/* @__PURE__ */new Map;n&&this.getObservableQueries(n).forEach(function(e,r){u.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})});var l=/* @__PURE__ */new Map;return r&&this.cache.batch({update:r,optimistic:a&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof Oo&&e.watcher.observableQuery;if(n){if(c){u.delete(n.queryId);var i=c(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==c&&u.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),u.size&&u.forEach(function(e,r){var n,i=e.oq,a=e.lastDiff,o=e.diff;if(c){if(!o){var s=i.queryInfo;s.reset(),o=s.getDiff()}n=c(i,o,a)}c&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),l},e.prototype.fetchQueryByPolicy=function(e,t,r){var n=this,i=t.query,a=t.variables,o=t.fetchPolicy,s=t.refetchWritePolicy,c=t.errorPolicy,u=t.returnPartialData,l=t.context,d=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:i,variables:a,networkStatus:r});var h=function(){return e.getDiff()},f=function(t,r){void 0===r&&(r=e.networkStatus||ho.loading);var o=t.result;!1===globalThis.__DEV__||u||Gi(o,{})||wo(t.missing);var s=function(e){return ri.of(D({data:e,loading:_o(r),networkStatus:r},t.complete?null:{partial:!0}))};return o&&n.getDocumentInfo(i).hasForcedResolvers?n.localState.runResolvers({document:i,remoteResult:{data:o},context:l,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return s(e.data||void 0)}):"none"===c&&r===ho.refetch&&Array.isArray(t.missing)?s(void 0):s(o)},m="no-cache"===o?0:r===ho.refetch&&"merge"!==s?1:2,_=function(){return n.getResultsFromLink(e,m,{query:i,variables:a,context:l,fetchPolicy:o,errorPolicy:c})},v=d&&"number"==typeof p&&p!==r&&_o(r);switch(o){default:case"cache-first":return(y=h()).complete?{fromLink:!1,sources:[f(y,e.markReady())]}:u||v?{fromLink:!0,sources:[f(y),_()]}:{fromLink:!0,sources:[_()]};case"cache-and-network":var y;return(y=h()).complete||u||v?{fromLink:!0,sources:[f(y),_()]}:{fromLink:!0,sources:[_()]};case"cache-only":return{fromLink:!1,sources:[f(h(),e.markReady())]};case"network-only":return v?{fromLink:!0,sources:[f(h()),_()]}:{fromLink:!0,sources:[_()]};case"no-cache":return v?{fromLink:!0,sources:[f(e.getDiff()),_()]}:{fromLink:!0,sources:[_()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Oo(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return D(D(D({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),Ao=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=/* @__PURE__ */new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=An(t.resolvers,e)}):this.resolvers=An(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return I(this,arguments,void 0,function(e){var t=e.document,r=e.remoteResult,n=e.context,i=e.variables,a=e.onlyRunForcedResolvers,o=void 0!==a&&a;return A(this,function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,o).then(function(e){return D(D({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return yt(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return Nn(e)},e.prototype.prepareContext=function(e){var t=this.cache;return D(D({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return I(this,arguments,void 0,function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),A(this,function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return D(D({},t),e.exportedVariables)})]:[2,D({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return ct(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return st}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Dn(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return I(this,arguments,void 0,function(e,t,r,n,i,a){var o,s,c,u,l,d,p,h,f,m;return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===a&&(a=!1),A(this,function(_){return o=jr(e),s=Sr(e),c=Ft(s),u=this.collectSelectionsToResolve(o,c),l=o.operation,d=l?l.charAt(0).toUpperCase()+l.slice(1):"Query",h=(p=this).cache,f=p.client,m={fragmentMap:c,context:D(D({},r),{cache:h,client:f}),variables:n,fragmentMatcher:i,defaultOperationType:d,exportedVariables:{},selectionsToResolve:u,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(o.selectionSet,false,t,m).then(function(e){return{result:e,exportedVariables:m.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,n){return I(this,void 0,void 0,function(){var i,a,o,s,c,u=this;return A(this,function(l){return i=n.fragmentMap,a=n.context,o=n.variables,s=[r],c=function(e){return I(u,void 0,void 0,function(){var c,u;return A(this,function(l){return(t||n.selectionsToResolve.has(e))&&vt(e,o)?br(e)?[2,this.resolveField(e,t,r,n).then(function(t){var r;void 0!==t&&s.push(((r={})[yr(e)]=t,r))})]:(!function(e){return"InlineFragment"===e.kind}(e)?(c=i[e.name.value],G(c,18,e.name.value)):c=e,c&&c.typeCondition&&(u=c.typeCondition.name.value,n.fragmentMatcher(r,u,a))?[2,this.resolveSelectionSet(c.selectionSet,t,r,n).then(function(e){s.push(e)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(c)).then(function(){return Cn(s)})]})})},e.prototype.resolveField=function(e,t,r,n){return I(this,void 0,void 0,function(){var i,a,o,s,c,u,l,d,p,h=this;return A(this,function(f){return r?(i=n.variables,a=e.name.value,o=yr(e),s=a!==o,c=r[o]||r[a],u=Promise.resolve(c),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(l=r.__typename||n.defaultOperationType,(d=this.resolvers&&this.resolvers[l])&&(p=d[s?a:o])&&(u=Promise.resolve(Fa.withValue(this.cache,p,[r,vr(e,i),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,u.then(function(r){var i,a;if(void 0===r&&(r=c),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=r)})}),!e.selectionSet)return r;if(null==r)return r;var o=null!==(a=null===(i=e.directives)||void 0===i?void 0:i.some(function(e){return"client"===e.name.value}))&&void 0!==a&&a;return Array.isArray(r)?h.resolveSubSelectedArray(e,t||o,r,n):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t||o,r,n):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(i){if(!n.has(i)){var a=/* @__PURE__ */new Set;n.set(i,a),ct(i,{Directive:function(e,t,n,i,o){"client"===e.name.value&&o.forEach(function(e){r(e)&&_t(e)&&a.add(e)})},FragmentSpread:function(n,i,o,s,c){var u=t[n.name.value];G(u,19,n.name.value);var l=e(u);l.size>0&&(c.forEach(function(e){r(e)&&_t(e)&&a.add(e)}),a.add(n),l.forEach(function(e){a.add(e)}))}})}return n.get(i)}(e)},e}(),Co=!1,Po=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw J(15);var r=e.uri,n=e.credentials,i=e.headers,a=e.cache,o=e.documentTransform,s=e.ssrMode,c=void 0!==s&&s,u=e.ssrForceFetchDelay,l=void 0===u?0:u,d=e.connectToDevTools,p=e.queryDeduplication,h=void 0===p||p,f=e.defaultOptions,m=e.defaultContext,_=e.assumeImmutableResults,v=void 0===_?a.assumeImmutableResults:_,y=e.resolvers,g=e.typeDefs,b=e.fragmentMatcher,k=e.name,w=e.version,x=e.devtools,S=e.link;S||(S=r?new Qi({uri:r,credentials:n,headers:i}):Oi.empty()),this.link=S,this.cache=a,this.disableNetworkFetches=c||l>0,this.queryDeduplication=h,this.defaultOptions=f||/* @__PURE__ */Object.create(null),this.typeDefs=g,this.devtoolsConfig=D(D({},x),{enabled:(null==x?void 0:x.enabled)||d}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),l&&setTimeout(function(){return t.disableNetworkFetches=!1},l),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=B,this.localState=new Ao({cache:a,client:this,resolvers:y,fragmentMatcher:b}),this.queryManager=new Io({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:m,documentTransform:o,queryDeduplication:h,ssrMode:c,clientAwareness:{name:k,version:w},localState:this.localState,assumeImmutableResults:v,onBroadcast:this.devtoolsConfig.enabled?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("undefined"!=typeof window){var e=window,t=/* @__PURE__ */Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,Co||!1===globalThis.__DEV__||(Co=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,r=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1!==globalThis.__DEV__&&G.log("Download the Apollo DevTools for a better development experience: %s",r)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=ki(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=D(D({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=ki(this.defaultOptions.query,e)),G("cache-and-network"!==e.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=D(D({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=ki(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){return this.cache.watchFragment(e)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Di(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var i=Promise.all(n);return i.queries=r,i.results=n,i.catch(function(e){!1!==globalThis.__DEV__&&G.debug(17,e)}),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(Po.prototype.getMemoryInternals=Xt);var Fo=/* @__PURE__ */new Map,Ro=/* @__PURE__ */new Map,Mo=!1;function $o(e){return e.replace(/[\s,]+/g," ").trim()}function Lo(e){var t=/* @__PURE__ */new Set,r=[];return e.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,i=$o((o=e.loc).source.body.substring(o.start,o.end)),a=Ro.get(n);a&&!a.has(i)||a||Ro.set(n,a=/* @__PURE__ */new Set),a.add(i),t.has(i)||(t.add(i),r.push(e))}else r.push(e);var o}),D(D({},e),{definitions:r})}function qo(e){var t=$o(e);if(!Fo.has(t)){var r=function(e,t){const r=new tt(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}(e,{experimentalFragmentVariables:Mo,allowLegacyFragmentVariables:Mo});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");Fo.set(t,function(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(r){var n=e[r];n&&"object"==typeof n&&t.add(n)})});var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}(Lo(r)))}return Fo.get(t)}function zo(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach(function(t,r){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[r+1]}),qo(n)}var Vo,Bo=zo,Uo=function(){Fo.clear(),Ro.clear()},Qo=function(){0},Wo=function(){Mo=!0},Yo=function(){Mo=!1};(Vo=zo||(zo={})).gql=Bo,Vo.resetCaches=Uo,Vo.disableFragmentWarnings=Qo,Vo.enableExperimentalFragmentVariables=Wo,Vo.disableExperimentalFragmentVariables=Yo,zo.default=zo;var Ko,Ho={exports:{}};var Go,Jo=(Ko||(Ko=1,(Go=Ho).exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,Go.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Go.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(Go.exports,e)),Ho.exports);const Xo=/* @__PURE__ */_({__proto__:null,default:/* @__PURE__ */v(Jo)},[Jo]);var Zo=Tt?/* @__PURE__ */Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function es(){G("createContext"in Xo,46);var e=Jo.createContext[Zo];return e||(Object.defineProperty(Jo.createContext,Zo,{value:e=Jo.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}var ts=function(e){var t=e.client,r=e.children,n=es(),i=Jo.useContext(n),a=Jo.useMemo(function(){return D(D({},i),{client:t||i.client})},[i,t]);return G(a.client,47),Jo.createElement(n.Provider,{value:a},r)};function rs(e){var t=Jo.useContext(es()),r=e||t.client;return G(!!r,50),r}var ns,is,as,os=!1,ss=Xo.useSyncExternalStore||function(e,t,r){var n=t();!1===globalThis.__DEV__||os||n===t()||(os=!0,!1!==globalThis.__DEV__&&G.error(60));var i=Jo.useState({inst:{value:n,getSnapshot:t}}),a=i[0].inst,o=i[1];return At?Jo.useLayoutEffect(function(){Object.assign(a,{value:n,getSnapshot:t}),cs(a)&&o({inst:a})},[e,n,t]):Object.assign(a,{value:n,getSnapshot:t}),Jo.useEffect(function(){return cs(a)&&o({inst:a}),e(function(){cs(a)&&o({inst:a})})},[e]),n};function cs(e){var t=e.value,r=e.getSnapshot;try{return t!==r()}catch(n){return!0}}function us(e){var t;switch(e){case ns.Query:t="Query";break;case ns.Mutation:t="Mutation";break;case ns.Subscription:t="Subscription"}return t}function ls(e){as||(as=new Yt(Ht.parser||1e3));var t,r,n=as.get(e);if(n)return n;G(!!e&&!!e.kind,62,e);for(var i=[],a=[],o=[],s=[],c=0,u=e.definitions;c<u.length;c++){var l=u[c];if("FragmentDefinition"!==l.kind){if("OperationDefinition"===l.kind)switch(l.operation){case"query":a.push(l);break;case"mutation":o.push(l);break;case"subscription":s.push(l)}}else i.push(l)}G(!i.length||a.length||o.length||s.length,63),G(a.length+o.length+s.length<=1,64,e,a.length,s.length,o.length),r=a.length?ns.Query:ns.Mutation,a.length||o.length||(r=ns.Subscription);var d=a.length?a:o.length?o:s;G(1===d.length,65,e,d.length);var p=d[0];t=p.variableDefinitions||[];var h={name:p.name&&"Name"===p.name.kind?p.name.value:"data",type:r,variables:t};return as.set(e,h),h}function ds(e,t){var r=ls(e),n=us(t),i=us(r.type);G(r.type===t,66,n,n,i)}(is=ns||(ns={}))[is.Query=0]="Query",is[is.Mutation=1]="Mutation",is[is.Subscription=2]="Subscription",ls.resetCache=function(){as=void 0},!1!==globalThis.__DEV__&&Jt("parser",function(){return as?as.size:0});var ps=Nt?Jo.useLayoutEffect:Jo.useEffect,hs=/* @__PURE__ */Symbol.for("apollo.hook.wrappers");var fs=Object.prototype.hasOwnProperty;function ms(){}var _s=/* @__PURE__ */Symbol();function vs(e,t){return void 0===t&&(t=/* @__PURE__ */Object.create(null)),(r="useQuery",n=ys,i=rs(t&&t.client),a=i.queryManager,o=a&&a[hs],(s=o&&o[r])?s(n):n)(e,t);var r,n,i,a,o,s}function ys(e,t){var r=function(e,t){var r=rs(t.client),n=Jo.useContext(es()).renderPromises,i=!!n,a=r.disableNetworkFetches,o=!1!==t.ssr&&!t.skip,s=t.partialRefetch,c=function(e,t,r,n){void 0===r&&(r={});var i=r.skip;r.ssr,r.onCompleted,r.onError;var a=r.defaultOptions,o=N(r,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(r){var s=Object.assign(o,{query:t});return!n||"network-only"!==s.fetchPolicy&&"cache-and-network"!==s.fetchPolicy||(s.fetchPolicy="cache-first"),s.variables||(s.variables={}),i?(s.initialFetchPolicy=s.initialFetchPolicy||s.fetchPolicy||ws(a,e.defaultOptions),s.fetchPolicy="standby"):s.fetchPolicy||(s.fetchPolicy=(null==r?void 0:r.options.initialFetchPolicy)||ws(a,e.defaultOptions)),s}}(r,e,t,i),u=function(e,t,r,n,i){function a(a){var o;return ds(t,ns.Query),{client:e,query:t,observable:n&&n.getSSRObservable(i())||e.watchQuery(gs(void 0,e,r,i())),resultData:{previousData:null===(o=null==a?void 0:a.resultData.current)||void 0===o?void 0:o.data}}}var o=Jo.useState(a),s=o[0],c=o[1];function u(e){var t,r;Object.assign(s.observable,((t={})[_s]=e,t));var n=s.resultData;c(D(D({},s),{query:e.query,resultData:Object.assign(n,{previousData:(null===(r=n.current)||void 0===r?void 0:r.data)||n.previousData,current:void 0})}))}if(e!==s.client||t!==s.query){var l=a(s);return c(l),[l,u]}return[s,u]}(r,e,t,n,c),l=u[0],d=l.observable,p=l.resultData,h=u[1],f=c(d);!function(e,t,r,n,i){var a;t[_s]&&!Gi(t[_s],i)&&(t.reobserve(gs(t,r,n,i)),e.previousData=(null===(a=e.current)||void 0===a?void 0:a.data)||e.previousData,e.current=void 0);t[_s]=i}(p,d,r,t,f);var m=Jo.useMemo(function(){return function(e){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}(d)},[d]);!function(e,t,r){t&&r&&(t.registerSSRObservable(e),e.getCurrentResult().loading&&t.addObservableQueryPromise(e))}(d,n,o);var _=function(e,t,r,n,i,a,o,s,c){var u=Jo.useRef(c);Jo.useEffect(function(){u.current=c});var l=!s&&!a||!1!==n.ssr||n.skip?n.skip||"standby"===i.fetchPolicy?Es:void 0:Ss,d=e.previousData,p=Jo.useMemo(function(){return l&&xs(l,d,t,r)},[r,t,l,d]);return ss(Jo.useCallback(function(n){if(s)return function(){};var i=function(){var i=e.current,a=t.getCurrentResult();i&&i.loading===a.loading&&i.networkStatus===a.networkStatus&&Gi(i.data,a.data)||bs(a,e,t,r,o,n,u.current)},a=function(s){if(c.current.unsubscribe(),c.current=t.resubscribeAfterError(i,a),!fs.call(s,"graphQLErrors"))throw s;var l=e.current;(!l||l&&l.loading||!Gi(s,l.error))&&bs({data:l&&l.data,error:s,loading:!1,networkStatus:ho.error},e,t,r,o,n,u.current)},c={current:t.subscribe(i,a)};return function(){setTimeout(function(){return c.current.unsubscribe()})}},[a,s,t,e,o,r]),function(){return p||ks(e,t,u.current,o,r)},function(){return p||ks(e,t,u.current,o,r)})}(p,d,r,t,f,a,s,i,{onCompleted:t.onCompleted||ms,onError:t.onError||ms});return{result:_,obsQueryFields:m,observable:d,resultData:p,client:r,onQueryExecuted:h}}(e,t),n=r.result,i=r.obsQueryFields;return Jo.useMemo(function(){return D(D({},n),i)},[n,i])}function gs(e,t,r,n){var i=[],a=t.defaultOptions.watchQuery;return a&&i.push(a),r.defaultOptions&&i.push(r.defaultOptions),i.push(bi(e&&e.options,n)),i.reduce(ki)}function bs(e,t,r,n,i,a,o){var s=t.current;s&&s.data&&(t.previousData=s.data),!e.error&&wn(e.errors)&&(e.error=new Fi({graphQLErrors:e.errors})),t.current=xs(function(e,t,r){if(e.partial&&r&&!e.loading&&(!e.data||0===Object.keys(e.data).length)&&"cache-only"!==t.options.fetchPolicy)return t.refetch(),D(D({},e),{loading:!0,networkStatus:ho.refetch});return e}(e,r,i),t.previousData,r,n),a(),function(e,t,r){if(!e.loading){var n=function(e){return wn(e.errors)?new Fi({graphQLErrors:e.errors}):e.error}(e);Promise.resolve().then(function(){n?r.onError(n):e.data&&t!==e.networkStatus&&e.networkStatus===ho.ready&&r.onCompleted(e.data)}).catch(function(e){!1!==globalThis.__DEV__&&G.warn(e)})}}(e,null==s?void 0:s.networkStatus,o)}function ks(e,t,r,n,i){return e.current||bs(t.getCurrentResult(),e,t,i,n,function(){},r),e.current}function ws(e,t){var r;return(null==e?void 0:e.fetchPolicy)||(null===(r=null==t?void 0:t.watchQuery)||void 0===r?void 0:r.fetchPolicy)||"cache-first"}function xs(e,t,r,n){var i=e.data;e.partial;var a=N(e,["data","partial"]);return D(D({data:i},a),{client:n,observable:r,variables:r.variables,called:e!==Ss&&e!==Es,previousData:t})}var Ss=ui({loading:!0,data:void 0,error:void 0,networkStatus:ho.loading}),Es=ui({loading:!1,data:void 0,error:void 0,networkStatus:ho.ready});function js(e,t){var r=rs(void 0);ds(e,ns.Mutation);var n=Jo.useState({called:!1,loading:!1,client:r}),i=n[0],a=n[1],o=Jo.useRef({result:i,mutationId:0,isMounted:!0,client:r,mutation:e,options:t});ps(function(){Object.assign(o.current,{client:r,options:t,mutation:e})});var s=Jo.useCallback(function(e){void 0===e&&(e={});var t=o.current,r=t.options,n=t.mutation,i=D(D({},r),{mutation:n}),s=e.client||o.current.client;o.current.result.loading||i.ignoreResults||!o.current.isMounted||a(o.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:s});var c=++o.current.mutationId,u=ki(i,e);return s.mutate(u).then(function(t){var r,n,i=t.data,l=t.errors,d=l&&l.length>0?new Fi({graphQLErrors:l}):void 0,p=e.onError||(null===(r=o.current.options)||void 0===r?void 0:r.onError);if(d&&p&&p(d,u),c===o.current.mutationId&&!u.ignoreResults){var h={called:!0,loading:!1,data:i,error:d,client:s};o.current.isMounted&&!Gi(o.current.result,h)&&a(o.current.result=h)}var f=e.onCompleted||(null===(n=o.current.options)||void 0===n?void 0:n.onCompleted);return d||null==f||f(t.data,u),t}).catch(function(t){var r;if(c===o.current.mutationId&&o.current.isMounted){var n={loading:!1,error:t,data:void 0,called:!0,client:s};Gi(o.current.result,n)||a(o.current.result=n)}var i=e.onError||(null===(r=o.current.options)||void 0===r?void 0:r.onError);if(i)return i(t,u),{data:void 0,errors:t};throw t})},[]),c=Jo.useCallback(function(){if(o.current.isMounted){var e={called:!1,loading:!1,client:o.current.client};Object.assign(o.current,{mutationId:0,result:e}),a(e)}},[]);return Jo.useEffect(function(){var e=o.current;return e.isMounted=!0,function(){e.isMounted=!1}},[]),[s,D({reset:c},i)]}const Os=zo`
16
16
  fragment HouseSearchResultFields on PortalSiteHouse {
17
17
  id
18
18
  name
@@ -28,7 +28,7 @@ import e,{useState as t,useEffect as r,createContext as n,useContext as i,Compon
28
28
  minimum_week_price
29
29
  rating
30
30
  }
31
- `,Os=qo`
31
+ `,Ts=zo`
32
32
  fragment BookingFormLabelFields on PortalSite {
33
33
  first_name_label
34
34
  preposition_label
@@ -51,7 +51,7 @@ import e,{useState as t,useEffect as r,createContext as n,useContext as i,Compon
51
51
  form_submit_text
52
52
  form_submit_button_text
53
53
  }
54
- `,Ts=qo`
54
+ `,Ds=zo`
55
55
  fragment BookingFormConfigurationFields on PortalSitesBookingFormConfiguration {
56
56
  adultsFromAge
57
57
  babiesAllowed
@@ -71,7 +71,7 @@ import e,{useState as t,useEffect as r,createContext as n,useContext as i,Compon
71
71
  showMonthsAmount
72
72
  showMonthsInARowAmount
73
73
  }
74
- `,Ds=qo`
74
+ `,Ns=zo`
75
75
  query PortalSiteBaseQuery($id: ID!) {
76
76
  PortalSite(id: $id) {
77
77
  id
@@ -88,7 +88,7 @@ import e,{useState as t,useEffect as r,createContext as n,useContext as i,Compon
88
88
  }
89
89
  }
90
90
  }
91
- `,Ns=qo`
91
+ `,Is=zo`
92
92
  query PortalSiteSearchQuery($id: ID!) {
93
93
  PortalSite(id: $id) {
94
94
  id
@@ -142,7 +142,7 @@ import e,{useState as t,useEffect as r,createContext as n,useContext as i,Compon
142
142
  properties_label
143
143
  }
144
144
  }
145
- `,Is=qo`
145
+ `,As=zo`
146
146
  query PortalSiteHousesQuery(
147
147
  $id: ID!
148
148
  $house_id: String!
@@ -179,9 +179,9 @@ import e,{useState as t,useEffect as r,createContext as n,useContext as i,Compon
179
179
  discount_ends_at
180
180
  }
181
181
  }
182
- `,As=qo`
183
- ${Os}
182
+ `,Cs=zo`
184
183
  ${Ts}
184
+ ${Ds}
185
185
  query BookingFormQuery(
186
186
  $portalCode: ID!
187
187
  $objectCode: String!
@@ -222,7 +222,7 @@ import e,{useState as t,useEffect as r,createContext as n,useContext as i,Compon
222
222
  }
223
223
  }
224
224
  }
225
- `,Cs=qo`
225
+ `,Ps=zo`
226
226
  mutation CreateBooking(
227
227
  $first_name: String!
228
228
  $preposition: String
@@ -298,8 +298,8 @@ import e,{useState as t,useEffect as r,createContext as n,useContext as i,Compon
298
298
  booking_nr
299
299
  }
300
300
  }
301
- `,Ps=qo`
302
- ${Ts}
301
+ `,Fs=zo`
302
+ ${Ds}
303
303
  query PortalSiteSingleHouseQuery($portalCode: ID!, $objectCode: String!) {
304
304
  PortalSite(id: $portalCode) {
305
305
  id
@@ -320,8 +320,8 @@ import e,{useState as t,useEffect as r,createContext as n,useContext as i,Compon
320
320
  }
321
321
  }
322
322
  }
323
- `,Fs=qo`
324
- ${js}
323
+ `,Rs=zo`
324
+ ${Os}
325
325
  query PortalSiteHousesQuery(
326
326
  $id: ID!
327
327
  $country_id: ID
@@ -360,8 +360,8 @@ import e,{useState as t,useEffect as r,createContext as n,useContext as i,Compon
360
360
  }
361
361
  }
362
362
  }
363
- `,Rs=qo`
364
- ${js}
363
+ `,Ms=zo`
364
+ ${Os}
365
365
  query PortalSiteHousesQuery(
366
366
  $id: ID!
367
367
  $country_id: ID
@@ -402,7 +402,7 @@ import e,{useState as t,useEffect as r,createContext as n,useContext as i,Compon
402
402
  }
403
403
  }
404
404
  }
405
- `,Ms=qo`
405
+ `,$s=zo`
406
406
  query PortalSiteHouseCountQuery(
407
407
  $id: ID!
408
408
  $country_id: ID
@@ -436,7 +436,7 @@ import e,{useState as t,useEffect as r,createContext as n,useContext as i,Compon
436
436
  }
437
437
  }
438
438
  }
439
- `,$s=qo`
439
+ `,Ls=zo`
440
440
  query BookingPriceTotalQuery(
441
441
  $id: ID!
442
442
  $house_id: String!
@@ -464,7 +464,7 @@ import e,{useState as t,useEffect as r,createContext as n,useContext as i,Compon
464
464
  }
465
465
  }
466
466
  }
467
- `,Ls=qo`
467
+ `,qs=zo`
468
468
  query BookingPriceQuery(
469
469
  $portalCode: ID!
470
470
  $objectCode: String!
@@ -484,7 +484,7 @@ import e,{useState as t,useEffect as r,createContext as n,useContext as i,Compon
484
484
  }
485
485
  }
486
486
  }
487
- `,qs=qo`
487
+ `,zs=zo`
488
488
  query ReviewPortalSiteQuery($id: ID!, $house_id: String!) {
489
489
  PortalSite(id: $id) {
490
490
  houses(house_code: $house_id) {
@@ -507,7 +507,7 @@ import e,{useState as t,useEffect as r,createContext as n,useContext as i,Compon
507
507
  }
508
508
  }
509
509
  }
510
- `,zs=qo`
510
+ `,Vs=zo`
511
511
  mutation CheckDiscountCode($code: String!, $house_code: String!) {
512
512
  checkDiscountCode(code: $code, house_code: $house_code) {
513
513
  name
@@ -516,278 +516,277 @@ import e,{useState as t,useEffect as r,createContext as n,useContext as i,Compon
516
516
  price
517
517
  }
518
518
  }
519
- `;function Vs({filters:e,field:t,options:r,onChange:n,value:i}){const a=e.countries,o=e=>{i===e.target.value?s(null):s(e.target.value)},s=e=>{n(t.id,e)};return["cities","regions"].includes(t.id)?/* @__PURE__ */E.jsx("ul",{className:"radioList",children:r.map(e=>/* @__PURE__ */E.jsxs("li",{className:"bu-list-item "+(a&&!a.includes(e.country_id)?"bu-disabled":"bu-open"),children:[
519
+ `;function Bs({filters:e,field:t,options:r,onChange:n,value:i}){const a=e.countries,o=e=>{i===e.target.value?s(null):s(e.target.value)},s=e=>{n(t.id,e)};return["cities","regions"].includes(t.id)?/* @__PURE__ */E.jsx("ul",{className:"radioList",children:r.map(e=>/* @__PURE__ */E.jsxs("li",{className:"bu-list-item "+(a&&!a.includes(e.country_id)?"bu-disabled":"bu-open"),children:[
520
520
  /* @__PURE__ */E.jsx("input",{name:t.id,type:"checkbox",id:e.id,value:e.id,disabled:!!a&&!a.includes(e.country_id),checked:i===e.id,onBlur:s,onChange:s}),
521
521
  /* @__PURE__ */E.jsx("label",{htmlFor:e.id,children:e.name})]},e.id))}):/* @__PURE__ */E.jsx("ul",{className:"radioList",children:r.map(e=>/* @__PURE__ */E.jsxs("li",{className:"bu-list-item bu-open",children:[
522
522
  /* @__PURE__ */E.jsx("input",{name:t.id,type:"checkbox",id:e.id,value:e.id,checked:i===e.id,onBlur:s,onChange:o}),
523
- /* @__PURE__ */E.jsx("label",{htmlFor:e.id,children:e.name})]},e.id))})}function Bs(e){return Array.from({length:e+1},(e,t)=>t)}const Us=[{label:"Land",id:"countries",type:"select",required:!1,mandatory:!0,options:["select","list","radio","text"]}];function Qs({options:e,field:t,filters:r,value:n,onChange:i}){const a=e=>{i(t.id,e.currentTarget.value)},o=r.countries,s=Array.isArray(r.regions)?r.regions:[r.regions].filter(e=>String(e).trim());return e&&["countries","cities","regions"].includes(t.id)?/* @__PURE__ */E.jsxs("select",{name:t.id,onBlur:a,onChange:a,value:n,children:[
523
+ /* @__PURE__ */E.jsx("label",{htmlFor:e.id,children:e.name})]},e.id))})}function Us(e){return Array.from({length:e+1},(e,t)=>t)}const Qs=[{label:"Land",id:"countries",type:"select",required:!1,mandatory:!0,options:["select","list","radio","text"]}];function Ws({options:e,field:t,filters:r,value:n,onChange:i}){const a=e=>{i(t.id,e.currentTarget.value)},o=r.countries,s=Array.isArray(r.regions)?r.regions:[r.regions].filter(e=>String(e).trim());return e&&["countries","cities","regions"].includes(t.id)?/* @__PURE__ */E.jsxs("select",{name:t.id,onBlur:a,onChange:a,value:n,children:[
524
524
  /* @__PURE__ */E.jsx("option",{value:""}),e.map(e=>{let r=!1;return["cities","regions"].includes(t.id)&&(o&&!o.includes(e.country_id)&&(r=!0),"cities"===t.id&&(!1!=!s.length||s.includes(e.region)||(r=!0))),/* @__PURE__ */E.jsx("option",{value:e.id,id:e.region,disabled:r,hidden:r,children:e.name},e.id)})]}):/* @__PURE__ */E.jsxs("select",{name:t.id,onBlur:a,onChange:a,value:n,children:[
525
525
  /* @__PURE__ */E.jsx("option",{value:""}),e.map(e=>{let t=!1;/* @__PURE__ */
526
- return E.jsx("option",{value:e,disabled:t,hidden:t,children:e},e)})]})}function Ws({PortalSite:e,filters:t,onChange:r}){const n=t.properties||[];let i=e.options.filtersForm.categories,a=[];const o=e=>{const t=Number(e.currentTarget.value);if(n.includes(t)){let e=n.indexOf(t);n.splice(e,1)}else n.push(t);r("properties",n)};return e.categories.map(e=>{i.includes(e.id)&&a.push(
526
+ return E.jsx("option",{value:e,disabled:t,hidden:t,children:e},e)})]})}function Ys({PortalSite:e,filters:t,onChange:r}){const n=t.properties||[];let i=e.options.filtersForm.categories,a=[];const o=e=>{const t=Number(e.currentTarget.value);if(n.includes(t)){let e=n.indexOf(t);n.splice(e,1)}else n.push(t);r("properties",n)};return e.categories.map(e=>{i.includes(e.id)&&a.push(
527
527
  /* @__PURE__ */E.jsxs("div",{className:"bu-properties",children:[
528
528
  /* @__PURE__ */E.jsx("strong",{children:e.name}),
529
529
  /* @__PURE__ */E.jsx("ul",{children:e.properties.map(e=>/* @__PURE__ */E.jsx("li",{children:/* @__PURE__ */E.jsxs("label",{htmlFor:e.id.toString(),children:[
530
- /* @__PURE__ */E.jsx("input",{type:"checkbox",id:e.id.toString(),value:e.id,checked:n.includes(e.id),onChange:o}),e.name]})},e.id))})]},e.id))}),a}function Ys({options:e,filters:t,onChange:r,field:n}){const i=t.countries,a=e=>{r(n.id,e.currentTarget.value)};/* @__PURE__ */
530
+ /* @__PURE__ */E.jsx("input",{type:"checkbox",id:e.id.toString(),value:e.id,checked:n.includes(e.id),onChange:o}),e.name]})},e.id))})]},e.id))}),a}function Ks({options:e,filters:t,onChange:r,field:n}){const i=t.countries,a=e=>{r(n.id,e.currentTarget.value)};/* @__PURE__ */
531
531
  return E.jsx("ul",{className:"radioList",children:e.map(e=>/* @__PURE__ */E.jsxs("li",{className:"bu-list-item "+(i&&!i.includes(e.country_id)?"bu-disabled":""),children:[
532
532
  /* @__PURE__ */E.jsx("input",{name:n.id,type:"radio",id:e.id||e,value:e.id||e,disabled:!!i&&!i.includes(e.country_id),onBlur:a,onChange:a}),
533
- /* @__PURE__ */E.jsx("label",{htmlFor:e.id||e,children:e.name||e})]},e.id||e))})}function Ks({value:e,onChange:t,field:r}){const n=e&&""!==e?e:"";/* @__PURE__ */
534
- return E.jsx("input",{type:"date",id:r.id,name:r.id,value:n,onChange:e=>{t(r.id,e.target.value)}})}function Hs({PortalSite:e,field:t,value:r,onChange:n}){/* @__PURE__ */
535
- return E.jsx("input",{value:r,type:"number",min:"0",max:"persons_min"===t.id?e.max_persons:e[t.id],onBlur:e=>{n(t.id,e.currentTarget.value)}})}function Gs({PortalSite:e,field:t,filters:r,value:n,onFilterChange:i}){let a=[];a=["countries","cities","regions"].includes(t.id)?e[t.id]:"persons_min"===t.id||"persons_max"===t.id?Bs(e.max_persons):"bedrooms_min"===t.id?Bs(e.max_bedrooms):"bathrooms_min"===t.id?Bs(e.max_bathrooms):"weekprice_max"===t.id?function(e){let t=Math.ceil(e/100);return Array.from({length:t+1},(e,t)=>100*t)}(e.max_weekprice):Bs(e[t.id]);let o={options:a,field:t,filters:r,value:n};return"properties"===t.id?/* @__PURE__ */E.jsx(Ws,{PortalSite:e,filters:r,onChange:i}):"select"===t.type?/* @__PURE__ */E.jsx(Qs,{...o,onChange:i}):"list"===t.type?/* @__PURE__ */E.jsx(Vs,{...o,onChange:i}):"radio"===t.type?/* @__PURE__ */E.jsx(Ys,{...o,onChange:i}):"number"===t.type?/* @__PURE__ */E.jsx(Hs,{PortalSite:e,field:t,value:n,onChange:i}):"date"===t.type?/* @__PURE__ */E.jsx(Ks,{field:t,value:n,onChange:i}):/* @__PURE__ */E.jsx("input",{value:n,onBlur:e=>{i(t.id,e.target.value)}})}const Js=()=>/* @__PURE__ */E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 100",enableBackground:"new 0 0 100 100",xmlSpace:"preserve",height:"16px",children:/* @__PURE__ */E.jsx("path",{fill:"#000000",stroke:"2",d:"M77,53.752c0,0.012,0,0.022,0,0.034c0,14.92-12.019,27.058-26.938,27.058 c-14.92,0-26.948-12.138-26.948-27.058C23.114,38.961,35,26.889,50,26.738v4.942c0,2.84,2.54,2.913,3.947,1.647l10.354-7.714 c0,0,1.128-0.942,1.128-1.979c0-1.089-1.147-1.979-1.147-1.979L53.95,13.941C52.543,12.675,50,12.749,50,15.588v5.149 c-18,0.151-32.826,14.915-32.826,33.048c0,18.229,14.686,33.058,32.914,33.058C68.314,86.844,83,72.015,83,53.786 c0-0.012,0-0.022,0-0.034c0,0,0-3.375-3.037-3.375C77.109,50.376,77,53.752,77,53.752z"})}),Xs={next:"Next",previous:"Previous",view_details:"View details",price:"Price",calculate:"Next",book:"Book",booked:"Booked",booking:"Booking",last_minute_discount:"Last minute discount",discount:"Discount",option:"Option",choose_for_option:"Make a short reservation for this period ",included_in_price:"including",rent_price:"Rental price",extra_costs_included:"Extra costs included",optional_costs:"Extra options",price_after_discount:"Rental price incl. discount",booking_from_til:"Booking dates",total:"Total",stay_details:"Travel group",babies:"Babies",babies_from:"(up to the age of {babies})",adults:"Adults",adults_from:"(from the age of {age})","camper_spot.arrival_date":"Arrival date","camper_spot.departure_date":"Departure date","camper_spot.arrival":"Arrival","camper_spot.departure":"Departure","camping_place.arrival_date":"Arrival date","camping_place.departure_date":"Departure date","camping_place.arrival":"Arrival","camping_place.departure":"Departure","bnb.arrival_date":"Arrival date","bnb.departure_date":"Departure date","bnb.arrival":"Arrival","bnb.departure":"Departure","hotelroom.arrival_date":"Arrival date","hotelroom.departure_date":"Departure date","hotelroom.arrival":"Arrival","hotelroom.departure":"Departure",children:"Children",children_from:"(from {from} to {til} years inclusive)","house.arrival_date":"Arrival date","house.departure_date":"Departure date","house.arrival":"Arrival","house.departure":"Departure","group_accommodation.arrival_date":"Arrival date","group_accommodation.departure_date":"Departure date","group_accommodation.arrival":"Arrival","group_accommodation.departure":"Departure","tent.arrival_date":"Arrival date","tent.departure_date":"Departure date","tent.arrival":"Arrival","tent.departure":"Departure",extra_costs_bookable:"Extra options",costs_on_site:"Additional costs on the spot:",insurances:"Insurances",at_least_1_adult:"Choose at least 1 adult.",max_persons_reached:"Too many people have been selected.",personal_details:"Your information",required:"This field is required.",cancel_insurance_all_risk:"All Risk",cancel_insurance_normal:"Standard",none:"None",cancel_insurance:"Cancellation insurance",insurance_costs:"Insurance Costs",choose:"Choose",yes:"Yes",booking_details:"Booking details",based_on_one_person:"Based on {persons} persons",return_to_calendar:"Back to calendar",close:"Close",cancel_insurance_normal_long:"Short-term Cancellation Insurance ",cancel_insurance_normal_desc:"If you booked a wonderful holiday, cancellation insurance should not be missing! Your booked holiday cannot continue, or you have to go home unexpectedly halfway through the holiday due to, for example, a severe illness. The cancellation insurance of RecreatieVerzekeringen is ideal because it applies before departure and during your holiday.",cancel_insurance_more_insured:"More are insured than you think.",cancel_insurance_more_insured_desc:"Did you know that you can rely on cancellation insurance during pregnancy, a new job, or divorce? Many people expect cancellation insurance to be valid only in the event of illness or death.",cancel_insurance_important:"Important",cancel_insurance_important_message:"For optimal cancellation insurance coverage, you must take it out within seven days after booking the holiday.",cancel_insurance_for_whom:"For whom?",cancel_insurance_for_whom_explain:"This insurance is for a maximum of 4 families or 9 travel companions (no family members).",cancel_insurance_questions:"Frequently Asked Questions",cancel_insurance_questions_explain_1:"Click ",cancel_insurance_questions_explain_link:"here",cancel_insurance_questions_explain_2:" to find the Frequently Asked Questions.",show_terms:"Show conditions",terms:"Terms",remark:"Remark","9persons_9addresses":"The Insurance will pay for up to 9 persons, who live at 9 different addresses,",or:"or","9persons_4addresses":"The insurance pays out for an unlimited number of people who live at a maximum of 4 different addresses.",poliscosts:"Policy fee",poliscosts_are:"The cost for an insurance policy is a one-time charge of € 6,95. No matter if you have one or two insuran",youwillrecieve:"You will receive the insurance terms separate from you booking confirmation per email. The insurance starts as soon as the (first) payment has been made.",thank_you_for_your_request:"Thank you very much for your request.",we_sent_confirmation_check_email:"A copy of your request has been sent to your e-mail address. If you have not received any mail from us, it may be that it is in your spam box.",something_went_wrong_please_try_again:"Oops, something went wrong, please try again later.",persons:"persons",bedrooms:"bedrooms",minimum_week_price:"min. weekly price",no_results:"No results",agree_with:"Clicking 'Book' creates a payment obligation when my booking is accepted. I agree to the ",option_is_free:"An option is free of charge and without obligation.",discount_reason:"Reason discount.",results:"results",bathrooms:"bathrooms",you_need_to_give_reason:"You must indicate a valid discount reason","camper.arrival_date":"Start date","camper.departure_date":"End date","camper.arrival":"Start date","camper.departure":"End date","boat.arrival_date":"Start date","boat.departure_date":"End date","boat.arrival":"Start date","boat.departure":"End date","caravan.arrival_date":"Arrival date","caravan.departure_date":"Departure date","caravan.arrival":"Arrival","caravan.departure":"Departure",filters:"Filters",comply_insurance_card:"I agree that the cancellation insurance insurance card will be digitally issued to me. I receive this card with my booking confirmation.","house.you_picked_arrival_date":"Your arrival date is","house.pick_your_departure_in_the_calendar":"Select a departure date","house.you_picked_departure_date":"Your departure date is","house.pick_your_arrivaldate_in_the_calendar":"Choose an arrival date","group_accommodation.you_picked_arrival_date":"Your arrival date is","group_accommodation.pick_your_departure_in_the_calendar":"Select a departure date","group_accommodation.you_picked_departure_date":"Your departure date is","group_accommodation.pick_your_arrivaldate_in_the_calendar":"Choose an arrival date","tent.you_picked_arrival_date":"Your arrival date is","tent.pick_your_departure_in_the_calendar":"Select a departure date","tent.you_picked_departure_date":"Your departure date is","tent.pick_your_arrivaldate_in_the_calendar":"Choose an arrival date","camper.you_picked_arrival_date":"Your pickup date is","camper.pick_your_departure_in_the_calendar":"Select a return date","camper.you_picked_departure_date":"Your return date is","camper.pick_your_arrivaldate_in_the_calendar":"Choose a pickup date","boat.you_picked_arrival_date":"Your pickup date is","boat.pick_your_departure_in_the_calendar":"Select a return date","boat.you_picked_departure_date":"Your return date is","boat.pick_your_arrivaldate_in_the_calendar":"Choose a pickup date","bnb.you_picked_arrival_date":"Your arrival date is","bnb.pick_your_departure_in_the_calendar":"Select a departure date","bnb.you_picked_departure_date":"Your departure date is","bnb.pick_your_arrivaldate_in_the_calendar":"Choose an arrival date","caravan.you_picked_arrival_date":"Your pickup date is","caravan.pick_your_departure_in_the_calendar":"Select a return date","caravan.you_picked_departure_date":"Your return date is","caravan.pick_your_arrivaldate_in_the_calendar":"Choose a pickup date","camper_spot.you_picked_arrival_date":"Your arrival date is","camper_spot.pick_your_departure_in_the_calendar":"Select a departure date","camper_spot.you_picked_departure_date":"Your departure date is","camper_spot.pick_your_arrivaldate_in_the_calendar":"Choose an arrival date","camping_place.you_picked_arrival_date":"Your arrival date is","camping_place.pick_your_departure_in_the_calendar":"Select a departure date","camping_place.you_picked_departure_date":"Your departure date is","camping_place.pick_your_arrivaldate_in_the_calendar":"Choose an arrival date","hotelroom.you_picked_arrival_date":"Your arrival date is","hotelroom.pick_your_departure_in_the_calendar":"Select a departure date","hotelroom.you_picked_departure_date":"Your departure date is","hotelroom.pick_your_arrivaldate_in_the_calendar":"Choose an arrival date","house_boat.you_picked_arrival_date":"Your pickup date is","house_boat.pick_your_departure_in_the_calendar":"Select a return date","house_boat.you_picked_departure_date":"Your return date is","house_boat.pick_your_arrivaldate_in_the_calendar":"Choose a pickup date",no:"No",no_house_found:"No object found for this combination of PortalCode and ObjectCode",insurance_company_needs_date_of_birth:"A date of birth is required for taking out insurance","extra_fields.date_of_birth":"Date of birth",no_discount_code_found:"No discount found with entered code",discount_code:"Discount code",minimum_nights:"At least {minimum} nights",can_only_take_insurance_in_de_be_nl:"You can only take out insurance if you live in the Netherlands, Germany or Belgium.",price_from:"Price from",reviews:"Reviews",reviews_note_link:"BUKAZU Booking System maintains independent reviews. These reviews are collected after guests stay in the accommodation. There is verification of the combination of booking number and email address."},Zs={next:"Volgende",previous:"Vorige",view_details:"Bekijk details",price:"Prijs",calculate:"Volgende",book:"Boeken",booked:"Geboekt",booking:"Boeking",last_minute_discount:"Last minute korting",discount:"Korting",option:"Optie",choose_for_option:"Neem een optie op deze periode",included_in_price:"inclusief",rent_price:"Huurprijs",extra_costs_included:"Extra kosten inbegrepen",optional_costs:"Extra opties",price_after_discount:"Huurprijs incl. korting",booking_from_til:"Boekingsdata:",total:"Totaal",stay_details:"Reisgezelschap",babies:"Baby's",babies_from:"(t/m {babies} jaar)",adults:"Volwassenen",adults_from:"(vanaf {age} jaar)","camper_spot.arrival_date":"Aankomstdatum","camper_spot.departure_date":"Vertrekdatum","camper_spot.arrival":"Aankomst","camper_spot.departure":"Vertrek","camping_place.arrival_date":"Aankomstdatum","camping_place.departure_date":"Vertrekdatum","camping_place.arrival":"Aankomst","camping_place.departure":"Vertrek","bnb.arrival_date":"Aankomstdatum","bnb.departure_date":"Vertrekdatum","bnb.arrival":"Aankomst","bnb.departure":"Vertrek","hotelroom.arrival_date":"Aankomstdatum","hotelroom.departure_date":"Vertrekdatum","hotelroom.arrival":"Aankomst","hotelroom.departure":"Vertrek",children:"Kinderen",children_from:"({from} t/m {til} jaar)","house.arrival_date":"Aankomstdatum","house.departure_date":"Vertrekdatum","house.arrival":"Aankomst","house.departure":"Vertrek ","group_accommodation.arrival_date":"Aankomstdatum","group_accommodation.departure_date":"Vertrekdatum","group_accommodation.arrival":"Aankomst","group_accommodation.departure":"Vertrek ",extra_costs_bookable:"Extra opties",costs_on_site:"Bijkomende kosten ter plaatse:",insurances:"Verzekeringen",at_least_1_adult:"Kies minstens 1 volwassene.",max_persons_reached:"Er zijn te veel personen geselecteerd.",personal_details:"Uw gegevens",required:"Dit veld is verplicht.",cancel_insurance_all_risk:"All Risk",cancel_insurance_normal:"Normaal",none:"Geen",cancel_insurance:"Annuleringsverzekering",insurance_costs:"Poliskosten",choose:"Kies",yes:"Ja",booking_details:"Boekingsgegevens",based_on_one_person:"Gebaseerd op {persons} personen",return_to_calendar:"Terug naar de kalender",close:"Sluiten",cancel_insurance_normal_long:"Kortlopende Annuleringsverzekering",cancel_insurance_normal_desc:"Je hebt een prachtige vakantie geboekt, dan mag een annuleringsverzekering niet ontbreken! Het kan gebeuren dat je geboekte vakantie niet door kan gaan, of dat je halverwege de vakantie onverwachts naar huis moet door bijvoorbeeld een ernstige ziekte. De annuleringsverzekering van RecreatieVerzekeringen is ideaal, deze geldt namelijk niet alleen voor je vertrek, maar ook tijdens de vakantie.",cancel_insurance_more_insured:"Er is meer verzekerd dan je denkt",cancel_insurance_more_insured_desc:"Wist je dat bij zwangerschap, een nieuwe baan of scheiding je een beroep kunt doen op een annuleringsverzekering? Veel mensen verwachten dat een annuleringsverzekering alleen geldig is bij ziekte of overlijden.",cancel_insurance_important:"Belangrijk",cancel_insurance_important_message:"Voor een optimale dekking van je annuleringsverzekering is het belangrijk dat je deze afsluit binnen 7 dagen na het boeken van de vakantie.",cancel_insurance_for_whom:"Voor wie?",cancel_insurance_for_whom_explain:"Deze verzekering is voor maximaal 4 gezinnen of 9 reisgenoten (geen gezinsleden)",cancel_insurance_questions:"Veelgestelde vragen",cancel_insurance_questions_explain_link:"hier",cancel_insurance_questions_explain_1:"Klik ",cancel_insurance_questions_explain_2:" om de veelgestelde vragen te vinden.",show_terms:"Bekijk de voorwaarden",terms:"Voorwaarden",reviews_note_link:"BUKAZU Boekingssysteem houdt onafhankelijk reviews bij. Deze reviews zijn verzameld na het verblijf van de gasten in de accommodatie. Er is controle op de combinatie boekingsnummer en e-mailadres.",reviews_note:"De getoonde reviews zijn gecontroleerd op echtheid en voldoen aan de richtlijnen van de ACM. De reviews zijn verzameld na het verblijf van de gasten in de accommodatie. Er is controle op de combinatie boekingsnummer en e-mailadres.",remark:"Opmerking","9persons_9addresses":"De verzekering keert uit voor maximaal 9 personen die op 9 verschillende adressen wonen,",or:"of","9persons_4addresses":"De verzekering keert uit voor een onbeperkt aantal personen die op maximaal 4 verschillende adressen wonen.",poliscosts:"Poliskosten",poliscosts_are:"De kosten voor het opmaken van een verzekeringspolis zijn eenmalig € 6,95. Ongeacht of u 1 of meerdere verzekeringen heeft afgesloten.",youwillrecieve:"U ontvangt aansluitend op uw boekingsbevestiging de verzekeringspapieren per email toegestuurd. De verzekering treedt in werking zodra u de (aan)betaling gedaan heeft.",thank_you_for_your_request:"Hartelijk dank voor uw boekings/optie-aanvraag.",we_sent_confirmation_check_email:"Een kopie van uw aanvraag is naar uw e-mailadres verstuurd. Als u geen mail van ons ontvangen hebt, kan het zijn dat deze in uw spambox zit. ",something_went_wrong_please_try_again:"Oeps, er is iets mis gegaan, probeert u het later nogmaals.",persons:"personen",bedrooms:"slaapkamers",minimum_week_price:"min. weekprijs",no_results:"Geen resultaten",agree_with:"Door op 'Boeken' te klikken, ontstaat een betaalverplichting wanneer mijn boeking wordt geaccepteerd. Ik ga akkoord met de",option_is_free:"Een optie is kosteloos en vrijblijvend.",discount_reason:"Reden korting.",results:"resultaten",bathrooms:"badkamers",you_need_to_give_reason:"U dient een geldige kortingsreden aan te geven","camper.arrival_date":"Ophaaldatum","camper.departure_date":"Inleverdatum","camper.arrival":"Ophalen","camper.departure":"Inleveren","boat.arrival_date":"Ophaaldatum","boat.departure_date":"Inleverdatum","boat.arrival":"Ophalen","boat.departure":"Inleveren","caravan.arrival_date":"Aankomstdatum","caravan.departure_date":"Vertrekdatum","caravan.arrival":"Aankomst","caravan.departure":"Vertrek ","tent.arrival_date":"Aankomstdatum","tent.departure_date":"Vertrekdatum","tent.arrival":"Aankomst","tent.departure":"Vertrek ",filters:"Filters",comply_insurance_card:"Ik ga ermee akkoord dat de verzekeringskaart van de annuleringsverzekering digitaal aan mij verstrekt wordt. Ik ontvang deze bij mijn boekingsbevestiging.","house.you_picked_arrival_date":"Uw aankomstdatum is","house.pick_your_departure_in_the_calendar":"Kies een vertrekdatum","house.you_picked_departure_date":"Uw vertrekdatum is","house.pick_your_arrivaldate_in_the_calendar":"Kies een aankomstdatum","group_accommodation.you_picked_arrival_date":"Uw aankomstdatum is","group_accommodation.pick_your_departure_in_the_calendar":"Kies een vertrekdatum","group_accommodation.you_picked_departure_date":"Uw vertrekdatum is","group_accommodation.pick_your_arrivaldate_in_the_calendar":"Kies een aankomstdatum","tent.you_picked_arrival_date":"Uw aankomstdatum is","tent.pick_your_departure_in_the_calendar":"Kies een vertrekdatum","tent.you_picked_departure_date":"Uw vertrekdatum is","tent.pick_your_arrivaldate_in_the_calendar":"Kies een aankomstdatum","camper.you_picked_arrival_date":"Uw ophaaldatum is","camper.pick_your_departure_in_the_calendar":"Kies een inleverdatum","camper.you_picked_departure_date":"Uw inleverdatum is","camper.pick_your_arrivaldate_in_the_calendar":"Kies een ophaaldatum","boat.you_picked_arrival_date":"Uw ophaaldatum is","boat.pick_your_departure_in_the_calendar":"Kies een inleverdatum","boat.you_picked_departure_date":"Uw inleverdatum is","boat.pick_your_arrivaldate_in_the_calendar":"Kies een ophaaldatum","bnb.you_picked_arrival_date":"Uw aankomstdatum is","bnb.pick_your_departure_in_the_calendar":"Kies een vertrekdatum","bnb.you_picked_departure_date":"Uw vertrekdatum is","bnb.pick_your_arrivaldate_in_the_calendar":"Kies een aankomstdatum","caravan.you_picked_arrival_date":"Uw ophaaldatum is","caravan.pick_your_departure_in_the_calendar":"Kies een inleverdatum","caravan.you_picked_departure_date":"Uw inleverdatum is","caravan.pick_your_arrivaldate_in_the_calendar":"Kies een ophaaldatum","camper_spot.you_picked_arrival_date":"Uw aankomstdatum is","camper_spot.pick_your_departure_in_the_calendar":"Kies een vertrekdatum","camper_spot.you_picked_departure_date":"Uw vertrekdatum is","camper_spot.pick_your_arrivaldate_in_the_calendar":"Kies een aankomstdatum","camping_place.you_picked_arrival_date":"Uw aankomstdatum is","camping_place.pick_your_departure_in_the_calendar":"Kies een vertrekdatum","camping_place.you_picked_departure_date":"Uw vertrekdatum is","camping_place.pick_your_arrivaldate_in_the_calendar":"Kies een aankomstdatum","hotelroom.you_picked_arrival_date":"Uw aankomstdatum is","hotelroom.pick_your_departure_in_the_calendar":"Kies een vertrekdatum","hotelroom.you_picked_departure_date":"Uw vertrekdatum is","hotelroom.pick_your_arrivaldate_in_the_calendar":"Kies een aankomstdatum","house_boat.you_picked_arrival_date":"Uw ophaaldatum is","house_boat.pick_your_departure_in_the_calendar":"Kies een inleverdatum","house_boat.you_picked_departure_date":"Uw inleverdatum is","house_boat.pick_your_arrivaldate_in_the_calendar":"Kies een ophaaldatum",no:"Nee",no_house_found:"Geen object gevonden voor deze combinatie van Portal-code en Object-code",insurance_company_needs_date_of_birth:"Voor het afsluiten van een verzekering is een geboortedatum verplicht","extra_fields.date_of_birth":"Geboortedatum",no_discount_code_found:"Geen korting gevonden met ingegeven code",discount_code:"Kortingscode",minimum_nights:"Minstens {minimum} nachten",can_only_take_insurance_in_de_be_nl:"U kunt alleen een verzekering afsluiten, wanneer u woont in Nederland, Duitsland of België.",price_from:"Prijs vanaf",reviews:"Reviews"},ec={next:"Nächste",previous:"Vorherige",view_details:"Details anzeigen",reviews_note:"",price:"Preis",calculate:"Nächst",book:"Buchen",booked:"Gebucht",booking:"Buchung",last_minute_discount:"Last Minute Rabatt",option:"Option",choose_for_option:"Machen Sie eine kostenlose Option",included_in_price:"inklusive",rent_price:"Mietpreis",discount:"Rabatt",extra_costs_included:"Nebenkosten enthalten",optional_costs:"Zusätzliche Optionen",price_after_discount:"Mietpreis inkl. Rabatt",booking_from_til:"Buchungsdaten",total:"Gesamt",stay_details:"Reisegruppe",babies:"Babys",babies_from:"(bis einschl. {babies} Jahre)",adults:"Erwachsene",adults_from:"(ab {age} Jahre)","camper_spot.arrival_date":"Anreisedatum","camper_spot.departure_date":"Abreisedatum","camper_spot.arrival":"Ankunft","camper_spot.departure":"Abreise","camping_place.arrival_date":"Anreisedatum","camping_place.departure_date":"Abreisedatum","camping_place.arrival":"Ankunft","camping_place.departure":"Abreise","bnb.arrival_date":"Anreisedatum","bnb.departure_date":"Abreisedatum","bnb.arrival":"Ankunft","bnb.departure":"Abreise","hotelroom.arrival_date":"Anreisedatum","hotelroom.departure_date":"Abreisedatum","hotelroom.arrival":"Ankunft","hotelroom.departure":"Abreise",children:"Kinder",children_from:"(von {from} bis einschl. {til} Jahre)","house.arrival_date":"Anreisedatum","house.departure_date":"Abreisedatum","house.arrival":"Ankunft","house.departure":"Abreise","group_accommodation.arrival_date":"Anreisedatum","group_accommodation.departure_date":"Abreisedatum","group_accommodation.arrival":"Ankunft","group_accommodation.departure":"Abreise","tent.arrival_date":"Anreisedatum","tent.departure_date":"Abreisedatum","tent.arrival":"Ankunft","tent.departure":"Abreise",extra_costs_bookable:"Zusätzliche Optionen",costs_on_site:"Zusätzliche Kosten vor Ort:",insurances:"Versicherungen",at_least_1_adult:"Wählen Sie mindestens einen Erwachsenen aus.",max_persons_reached:"Es wurden zu viele Personen ausgewählt.",personal_details:"Ihre Daten",required:"Dieses Feld wird benötigt.",cancel_insurance_all_risk:"Allrisk",cancel_insurance_normal:"Standard",none:"Keine",cancel_insurance:"Reiserücktrittsversicherung",insurance_costs:"Policekosten",choose:"Wählen",yes:"Ja",booking_details:"Buchungsdetails",based_on_one_person:"Basierend auf {persons} Personen",return_to_calendar:"Zurück zum Kalender",close:"Schließen",cancel_insurance_normal_long:"Kurzfristige Reiserücktrittsversicherung",cancel_insurance_normal_desc:"Sie haben einen tollen Urlaub gebucht, dann darf eine Reiserücktrittsversicherung nicht fehlen! Es kann sein, dass Ihr gebuchter Urlaub nicht stattfinden kann oder dass Sie z. B. wegen einer schweren Krankheit mitten im Urlaub nach Hause fahren müssen. Die Reiserücktrittsversicherung von RecreatieVerzekeringen ist ideal, denn sie gilt nicht nur vor der Abreise, sondern auch während Ihres Urlaubs.",cancel_insurance_more_insured:"Es ist mehr versichert als Sie denken",cancel_insurance_more_insured_desc:"Wussten Sie, dass eine Reiserücktrittsversicherung auch im Falle einer Schwangerschaft, eines neuen Jobs oder einer Scheidung greift? Viele Leute erwarten, dass eine Reiserücktrittsversicherung nur bei Krankheit oder Tod gilt.",cancel_insurance_important:"Wichtig!",cancel_insurance_important_message:"Für eine optimale Deckung durch ihre Reiserücktrittsversicherung ist es wichtig, dass Sie diese innerhalb von 7 Tagen nach Ihrer Reisebuchung abschließen.",cancel_insurance_for_whom:"Für wen?",cancel_insurance_for_whom_explain:"Diese Versicherung gilt für bis zu 4 Familien oder 9 Mitreisende (keine Familienmitglieder).",cancel_insurance_questions:"Häufig gestellte Fragen ",cancel_insurance_questions_explain_1:"Klicken Sie ",cancel_insurance_questions_explain_link:"hier",cancel_insurance_questions_explain_2:" für die häufig gestellte Fragen.",show_terms:"Siehe Bedingungen",terms:"Bedingungen",remark:"Anmerkung","9persons_9addresses":"Die Versicherung ist gültig für maximal 9 Personen, die am 9 verschiedene Adressen wohnen,",or:"oder","9persons_4addresses":"Die Versicherung ist gültig für eine unbegrenzte Anzahl von Personen, die an maximal 4 verschiedenen Adressen wohnen.",poliscosts:"Police Kosten",poliscosts_are:"Es gibt einmalig € 6,95 Police-Kosten für die Bearbeitung der Versicherungen. Egal ob Sie 1 oder mehrere Versicherungen abschließen.",youwillrecieve:"Sie erhalten nach der Buchungsbestätigung im Anschluss an Ihre Buchung die Versicherungsbedingungen per E-Mail. Die Versicherung tritt mit der Ihrer Anzahlung in Kraft.",thank_you_for_your_request:"Vielen Dank für Ihre Buchungs/Options-Anfrage.",we_sent_confirmation_check_email:"Eine Kopie Ihrer Anfrage wurde an Ihre E-Mail-Adresse gesendet. Wenn Sie keine E-Mail von uns erhalten haben, befindet sich diese möglicherweise in Ihrer Spam-Box.",something_went_wrong_please_try_again:"Ups, es ist ein Fehler aufgetreten. Bitte versuchen Sie es später erneut.",persons:"Personen",bedrooms:"Schlafzimmer",minimum_week_price:"min. Wochenpreis",no_results:"Keine Ergebnisse",agree_with:'Wenn ich auf "Buchen" klicke, entsteht eine Zahlungsverpflichtung, wenn meine Buchung akzeptiert wird. Ich akzeptiere die',option_is_free:"Eine Option ist kostenlos und unverbindlich.",discount_reason:"Grund für Rabatt",results:"Ergebnisse",bathrooms:"Badezimmer",you_need_to_give_reason:"Sie müssen einen gültigen Rabattgrund angeben","camper.arrival_date":"Abholdatum","camper.departure_date":"Rückgabedatum","camper.arrival":"Abholen","camper.departure":"Rückgabe","boat.arrival_date":"Abholdatum","boat.departure_date":"Rückgabedatum","boat.arrival":"Abholen","boat.departure":"Rückgabe","caravan.arrival_date":"Anreisedatum","caravan.departure_date":"Abreisedatum","caravan.arrival":"Ankunft","caravan.departure":"Abreise",filters:"Filter",comply_insurance_card:"Ich bin damit einverstanden, dass die Versicherungskarte der Reiserücktrittsversicherung digital ausgestellt wird. Ich erhalte diese mit meiner Buchungsbestätigung.","house.you_picked_arrival_date":"Ihre Ankunft ist","house.pick_your_departure_in_the_calendar":"Wählen Sie ein Abreisedatum","house.you_picked_departure_date":"Ihr Abreisedatum ist","house.pick_your_arrivaldate_in_the_calendar":"Wählen Sie das Ankunftsdatum","group_accommodation.you_picked_arrival_date":"Ihre Ankunft ist","group_accommodation.pick_your_departure_in_the_calendar":"Wählen Sie ein Abreisedatum","group_accommodation.you_picked_departure_date":"Ihr Abreisedatum ist","group_accommodation.pick_your_arrivaldate_in_the_calendar":"Wählen Sie das Ankunftsdatum","tent.you_picked_arrival_date":"Ihre Ankunft ist","tent.pick_your_departure_in_the_calendar":"Wählen Sie ein Abreisedatum","tent.you_picked_departure_date":"Ihr Abreisedatum ist","tent.pick_your_arrivaldate_in_the_calendar":"Wählen Sie das Ankunftsdatum","camper.you_picked_arrival_date":"Ihr Abholdatum ist","camper.pick_your_departure_in_the_calendar":"Wählen Sie ein Rückgabedatum","camper.you_picked_departure_date":"Ihr Rückgabedatum ist","camper.pick_your_arrivaldate_in_the_calendar":"Wählen Sie einen Abholtermin","boat.you_picked_arrival_date":"Ihr Abholdatum ist","boat.pick_your_departure_in_the_calendar":"Wählen Sie ein Rückgabedatum","boat.you_picked_departure_date":"Ihr Rückgabedatum ist","boat.pick_your_arrivaldate_in_the_calendar":"Wählen Sie einen Abholtermin","bnb.you_picked_arrival_date":"Ihre Ankunft ist","bnb.pick_your_departure_in_the_calendar":"Wählen Sie ein Abreisedatum","bnb.you_picked_departure_date":"Ihr Abreisedatum ist","bnb.pick_your_arrivaldate_in_the_calendar":"Wählen Sie das Ankunftsdatum","caravan.you_picked_arrival_date":"Ihr Abholdatum ist","caravan.pick_your_departure_in_the_calendar":"Wählen Sie ein Rückgabedatum","caravan.you_picked_departure_date":"Ihr Rückgabedatum ist","caravan.pick_your_arrivaldate_in_the_calendar":"Wählen Sie einen Abholtermin","camper_spot.you_picked_arrival_date":"Ihre Ankunft ist","camper_spot.pick_your_departure_in_the_calendar":"Wählen Sie ein Abreisedatum","camper_spot.you_picked_departure_date":"Ihr Abreisedatum ist","camper_spot.pick_your_arrivaldate_in_the_calendar":"Wählen Sie das Ankunftsdatum","camping_place.you_picked_arrival_date":"Ihre Ankunft ist","camping_place.pick_your_departure_in_the_calendar":"Wählen Sie ein Abreisedatum","camping_place.you_picked_departure_date":"Ihr Abreisedatum ist","camping_place.pick_your_arrivaldate_in_the_calendar":"Wählen Sie das Ankunftsdatum","hotelroom.you_picked_arrival_date":"Ihre Ankunft ist","hotelroom.pick_your_departure_in_the_calendar":"Wählen Sie ein Abreisedatum","hotelroom.you_picked_departure_date":"Ihr Abreisedatum ist","hotelroom.pick_your_arrivaldate_in_the_calendar":"Wählen Sie das Ankunftsdatum","house_boat.you_picked_arrival_date":"Ihr Abholdatum ist","house_boat.pick_your_departure_in_the_calendar":"Wählen Sie ein Rückgabedatum","house_boat.you_picked_departure_date":"Ihr Rückgabedatum ist","house_boat.pick_your_arrivaldate_in_the_calendar":"Wählen Sie einen Abholtermin",no:"Nein",insurance_company_needs_date_of_birth:"Für den Abschluss einer Versicherung wird ein Geburtsdatum benötigt","extra_fields.date_of_birth":"Geburtsdatum",no_discount_code_found:"Kein Rabatt mit eingegebenem Code gefunden",discount_code:"Rabatt-Code",minimum_nights:"Mindestens {minimum} Nächte",can_only_take_insurance_in_de_be_nl:"Sie können sich nur versichern, wenn Sie in den Niederlanden, Deutschland oder Belgien wohnen.",price_from:"Preis von",reviews:"Bewertungen",reviews_note_link:"Das BUKAZU Buchungssystem unterhält unabhängige Bewertungen. Diese Bewertungen werden nach dem Aufenthalt der Gäste in der Unterkunft gesammelt. Es gibt eine Überprüfung der Kombination von Buchungsnummer und E-Mail-Adresse."},tc={en:Xs,nl:Zs,de:ec,fr:{next:"Suivant",previous:"Précédent",view_details:"Voir les détails",price:"Prix",calculate:"Suivante",book:"Réserver",booked:"Réservé",booking:"Réservation",last_minute_discount:"Réduction de dernière minute",option:"Option",choose_for_option:"Prendre une option pour cette période",included_in_price:"frais",rent_price:"Prix de location",discount:"Réduction",extra_costs_included:"Frais supplémentaires inclus",optional_costs:"Options supplémentaires",price_after_discount:"Prix de location incl.",booking_from_til:"Dates de réservation",total:"Total",stay_details:"Composition du groupe",babies:"Nombre de bébés",babies_from:"(jusqu'a {babies} ans)",adults:"Nombre d'adults",adults_from:"(à partir de {age} ans)","camper_spot.arrival_date":"Date d'arrivée","camper_spot.departure_date":"Date de départ","camper_spot.arrival":"Arrivée","camper_spot.departure":"Départ","camping_place.arrival_date":"Date d'arrivée","camping_place.departure_date":"Date de départ","camping_place.arrival":"Arrivée","camping_place.departure":"Départ","bnb.arrival_date":"Date d'arrivée","bnb.departure_date":"Date de départ","bnb.arrival":"Arrivée","bnb.departure":"Départ","hotelroom.arrival_date":"Date d'arrivée","hotelroom.departure_date":"Date de départ","hotelroom.arrival":"Arrivée","hotelroom.departure":"Départ",children:"Nombre d'enfants",children_from:"(de {from} à {til} ans)","house.arrival_date":"Date d'arrivée","house.departure_date":"Date de départ","house.arrival":"Arrivée","house.departure":"Départ","group_accommodation.arrival_date":"Date d'arrivée","group_accommodation.departure_date":"Date de départ","group_accommodation.arrival":"Arrivée","group_accommodation.departure":"Départ","tent.arrival_date":"Date d'arrivée","tent.departure_date":"Date de départ","tent.arrival":"Arrivée","tent.departure":"Départ",extra_costs_bookable:"Options supplémentaires",costs_on_site:"Frais supplémentaires sur place:",insurances:"Insurances",at_least_1_adult:"Choisissez au moins 1 adulte.",max_persons_reached:"Trop de personnes ont été sélectionnées.",personal_details:"Vos données",required:"Ce champ est requis.",cancel_insurance_all_risk:"All Risk",cancel_insurance_normal:"Standard",none:"None",cancel_insurance:"Cancellation insurance",insurance_costs:"Insurance Costs",choose:"Choose",yes:"Yes",booking_details:"Détails de la réservation",based_on_one_person:"Base {persons} personnes",return_to_calendar:"Retour au calendrier",close:"Fermer",cancel_insurance_normal_long:"Short-term Cancellation Insurance ",cancel_insurance_normal_desc:"If you booked a wonderful holiday, cancellation insurance should not be missing! Your booked holiday cannot continue, or you have to go home unexpectedly halfway through the holiday due to, for example, a severe illness. The cancellation insurance of RecreatieVerzekeringen is ideal because it applies before departure and during your holiday.",cancel_insurance_more_insured:"More are insured than you think.",cancel_insurance_more_insured_desc:"Did you know that you can rely on cancellation insurance during pregnancy, a new job, or divorce? Many people expect cancellation insurance to be valid only in the event of illness or death.",cancel_insurance_important:"Important",cancel_insurance_important_message:"For optimal cancellation insurance coverage, you must take it out within seven days after booking the holiday.",cancel_insurance_for_whom:"For whom?",cancel_insurance_for_whom_explain:"This insurance is for a maximum of 4 families or 9 travel companions (no family members).",cancel_insurance_questions:"Frequently Asked Questions",cancel_insurance_questions_explain_1:"Click ",cancel_insurance_questions_explain_link:"here",cancel_insurance_questions_explain_2:" to find the Frequently Asked Questions.",show_terms:"Show conditions",terms:"Terms",remark:"Remarque","9persons_9addresses":"The Insurance will pay for up to 9 persons, who live at 9 different addresses,",or:"or","9persons_4addresses":"The insurance pays out for an unlimited number of people who live at a maximum of 4 different addresses.",poliscosts:"Policy fee",poliscosts_are:"The cost for an insurance policy is a one-time charge of € 6,95. No matter if you have one or two insuran",youwillrecieve:"You will receive the insurance terms separate from you booking confirmation per email. The insurance starts as soon as the (first) payment has been made.",thank_you_for_your_request:"Merci beaucoup pour votre demande.",we_sent_confirmation_check_email:"Une copie de votre demande a été envoyée à votre adresse e-mail. Si vous n'avez pas reçu de courrier de notre part, il se peut qu'il soit dans votre boîte de courrier indésirable.",something_went_wrong_please_try_again:"Oups, quelque chose s'est mal passé, veuillez réessayer plus tard.",persons:"Personnes",bedrooms:"chambres a coucher",minimum_week_price:"min. prix hebdomadaire",no_results:"Aucun résultat",agree_with:'ELe fait de cliquer sur "Réserver" crée une obligation de paiement lorsque ma réservation est acceptée. J\'accepte',option_is_free:"Une option est gratuite et sans engagement.",discount_reason:"Raison réduction.",results:"résultats",bathrooms:"salle de bain",you_need_to_give_reason:"Debe indicar un motivo de descuento válido.","camper.arrival_date":"Date de collecte","camper.departure_date":"Date de retour","camper.arrival":"Ramasser","camper.departure":"Remettre","boat.arrival_date":"Date de collecte","boat.departure_date":"Date de retour","boat.arrival":"Ramasser","boat.departure":"Remettre","caravan.arrival_date":"Date d'arrivée","caravan.departure_date":"Date de départ","caravan.arrival":"Arrivée","caravan.departure":"Départ",filters:"Les filtres",comply_insurance_card:"Je conviens que la carte d’assurance annulation me sera délivrée numériquement. Je reçois ceci avec ma confirmation de réservation.","house.you_picked_arrival_date":"Votre date d'arrivée est","house.pick_your_departure_in_the_calendar":"Sélectionnez une date de départ","house.you_picked_departure_date":"Votre date de départ est","house.pick_your_arrivaldate_in_the_calendar":"Choisissez une date d'arrivée","group_accommodation.you_picked_arrival_date":"Votre date d'arrivée est","group_accommodation.pick_your_departure_in_the_calendar":"Sélectionnez une date de départ","group_accommodation.you_picked_departure_date":"Votre date de départ est","group_accommodation.pick_your_arrivaldate_in_the_calendar":"Choisissez une date d'arrivée","tent.you_picked_arrival_date":"Votre date d'arrivée est","tent.pick_your_departure_in_the_calendar":"Sélectionnez une date de départ","tent.you_picked_departure_date":"Votre date de départ est","tent.pick_your_arrivaldate_in_the_calendar":"Choisissez une date d'arrivée","camper.you_picked_arrival_date":"Votre date pick-up est","camper.pick_your_departure_in_the_calendar":"Sélectionnez une date de retour","camper.you_picked_departure_date":"Votre date de retour est","camper.pick_your_arrivaldate_in_the_calendar":"Choisissez une date de pick-up","boat.you_picked_arrival_date":"Your pickup date is","boat.pick_your_departure_in_the_calendar":"Select a return date","boat.you_picked_departure_date":"Your return date is","boat.pick_your_arrivaldate_in_the_calendar":"Choose a pickup date","bnb.you_picked_arrival_date":"Votre date d'arrivée est","bnb.pick_your_departure_in_the_calendar":"Sélectionnez une date de départ","bnb.you_picked_departure_date":"Votre date de départ est","bnb.pick_your_arrivaldate_in_the_calendar":"Choisissez une date d'arrivée","caravan.you_picked_arrival_date":"Votre date pick-up est","caravan.pick_your_departure_in_the_calendar":"Sélectionnez une date de retour","caravan.you_picked_departure_date":"Votre date de retour est","caravan.pick_your_arrivaldate_in_the_calendar":"Choisissez une date de pick-up","camper_spot.you_picked_arrival_date":"Votre date d'arrivée est","camper_spot.pick_your_departure_in_the_calendar":"Sélectionnez une date de départ","camper_spot.you_picked_departure_date":"Votre date de départ est","camper_spot.pick_your_arrivaldate_in_the_calendar":"Choisissez une date d'arrivée","camping_place.you_picked_arrival_date":"Votre date d'arrivée est","camping_place.pick_your_departure_in_the_calendar":"Sélectionnez une date de départ","camping_place.you_picked_departure_date":"Votre date de départ est","camping_place.pick_your_arrivaldate_in_the_calendar":"Choisissez une date d'arrivée","hotelroom.you_picked_arrival_date":"Votre date d'arrivée est","hotelroom.pick_your_departure_in_the_calendar":"Sélectionnez une date de départ","hotelroom.you_picked_departure_date":"Votre date de départ est","hotelroom.pick_your_arrivaldate_in_the_calendar":"Choisissez une date d'arrivée","house_boat.you_picked_arrival_date":"Votre date pick-up est","house_boat.pick_your_departure_in_the_calendar":"Sélectionnez une date de retour","house_boat.you_picked_departure_date":"Votre date de retour est","house_boat.pick_your_arrivaldate_in_the_calendar":"Choisissez une date de pick-up",no:"Non",minimum_nights:"Au moins {minimum} nuits",can_only_take_insurance_in_de_be_nl:"Vous ne pouvez souscrire une assurance que si vous résidez aux Pays-Bas, en Allemagne ou en Belgique.",price_from:"Le prix de",reviews:"Critiques",reviews_note_link:"Le système de réservation BUKAZU conserve des avis indépendants. Ces avis sont recueillis après que les clients ont séjourné dans le logement. La combinaison du numéro de réservation et de l'adresse électronique est vérifiée."},es:{next:"Siguiente",previous:"Anterior",view_details:"Ver detalles",price:"Precio",calculate:"Próximo",book:"Reservar",booked:"Reservado",booking:"Reserva",last_minute_discount:"Descuento de ultimo minuto",option:"Opción",choose_for_option:"Tome una opción para este período",included_in_price:"Incluido",rent_price:"Precio de alquiler",discount:"Reducción",extra_costs_included:"Costes extras incluidos",optional_costs:"Opciones extra",price_after_discount:"Precio de alquiler con descuento.",booking_from_til:"Fechas de reserva",total:"Total",stay_details:"Grupo de viaje",babies:"Numero de bebes",babies_from:"(hasta {babies} años)",adults:"Numero de adultos",adults_from:"(a partir de {age} años)","camper_spot.arrival_date":"Fecha de llegada","camper_spot.departure_date":"Fecha de salida","camper_spot.arrival":"Llegada","camper_spot.departure":"Salida","camping_place.arrival_date":"Fecha de llegada","camping_place.departure_date":"Fecha de salida","camping_place.arrival":"Llegada","camping_place.departure":"Salida","bnb.arrival_date":"Fecha de llegada","bnb.departure_date":"Fecha de salida","bnb.arrival":"Llegada","bnb.departure":"Salida","hotelroom.arrival_date":"Fecha de llegada","hotelroom.departure_date":"Fecha de salida","hotelroom.arrival":"Llegada","hotelroom.departure":"Salida",children:"Numero de niños",children_from:"(de {from} a {til} años)","house.arrival_date":"Fecha de llegada","house.departure_date":"Fecha de salida","house.arrival":"llegada","house.departure":"Salida","group_accommodation.arrival_date":"Fecha de llegada","group_accommodation.departure_date":"Fecha de salida","group_accommodation.arrival":"llegada","group_accommodation.departure":"Salida","tent.arrival_date":"Fecha de llegada","tent.departure_date":"Fecha de salida","tent.arrival":"llegada","tent.departure":"Salida",extra_costs_bookable:"Opciones extra",costs_on_site:"Costos adicionales en el lugar:",insurances:"Insurances",at_least_1_adult:"Elige al menos 1 adulto.",max_persons_reached:"Demasiadas personas han sido seleccionadas.",personal_details:"Tus datos",required:"Este campo es requerido.",cancel_insurance_all_risk:"All Risk",cancel_insurance_normal:"Standard",none:"None",cancel_insurance:"Cancellation insurance",insurance_costs:"Insurance Costs",choose:"Choose",yes:"Yes",booking_details:"Detalles de la reserva",based_on_one_person:"Basado en {persons} personas",return_to_calendar:"Volver al calendario",close:"Cerrar",cancel_insurance_normal_long:"Short-term Cancellation Insurance ",cancel_insurance_normal_desc:"If you booked a wonderful holiday, cancellation insurance should not be missing! Your booked holiday cannot continue, or you have to go home unexpectedly halfway through the holiday due to, for example, a severe illness. The cancellation insurance of RecreatieVerzekeringen is ideal because it applies before departure and during your holiday.",cancel_insurance_more_insured:"More are insured than you think.",cancel_insurance_more_insured_desc:"Did you know that you can rely on cancellation insurance during pregnancy, a new job, or divorce? Many people expect cancellation insurance to be valid only in the event of illness or death.",cancel_insurance_important:"Important",cancel_insurance_important_message:"For optimal cancellation insurance coverage, you must take it out within seven days after booking the holiday.",cancel_insurance_for_whom:"For whom?",cancel_insurance_for_whom_explain:"This insurance is for a maximum of 4 families or 9 travel companions (no family members).",cancel_insurance_questions:"Frequently Asked Questions",cancel_insurance_questions_explain_1:"Click ",cancel_insurance_questions_explain_link:"here",cancel_insurance_questions_explain_2:" to find the Frequently Asked Questions.",show_terms:"Show conditions",terms:"Terms",remark:"Observación","9persons_9addresses":"The Insurance will pay for up to 9 persons, who live at 9 different addresses,",or:"or","9persons_4addresses":"The insurance pays out for an unlimited number of people who live at a maximum of 4 different addresses.",poliscosts:"Policy fee",poliscosts_are:"The cost for an insurance policy is a one-time charge of € 6,95. No matter if you have one or two insuran",youwillrecieve:"You will receive the insurance terms separate from you booking confirmation per email. The insurance starts as soon as the (first) payment has been made.",thank_you_for_your_request:"Muchas gracias por su solicitud.",we_sent_confirmation_check_email:"Se ha enviado una copia de su solicitud a su dirección de correo electrónico. Si no ha recibido ningún correo de nuestra parte, es posible que esté en su buzón de correo no deseado.",something_went_wrong_please_try_again:"Vaya, algo salió mal, inténtalo de nuevo más tarde.",persons:"personas",bedrooms:"dormitorios",minimum_week_price:"min. precio semanal",no_results:"Sin resultados",agree_with:'Al hacer clic en "Reservar" se crea una obligación de pago cuando se acepta mi reserva. Acepto ',option_is_free:"Esta opción es gratuita",discount_reason:"Razón de descuento.",results:"resultados",bathrooms:"baños",you_need_to_give_reason:"Vous devez indiquer un motif de réduction valide","camper.arrival_date":"Fecha de recogida","camper.departure_date":"Fecha de regreso","camper.arrival":"Recoger","camper.departure":"Entregar","boat.arrival_date":"Fecha de recogida","boat.departure_date":"Fecha de regreso","boat.arrival":"Recoger","boat.departure":"Entregar","caravan.arrival_date":"Fecha de llegada","caravan.departure_date":"Fecha de salida","caravan.arrival":"llegada","caravan.departure":"Salida",filters:"Filtros",comply_insurance_card:"Estoy de acuerdo en que la tarjeta de seguro de cancelación será emitida digitalmente para mí. Recibo esto con mi confirmación de reserva.","house.you_picked_arrival_date":"Su fecha de llegada es","house.pick_your_departure_in_the_calendar":"Seleccione una fecha de salida","house.you_picked_departure_date":"Su fecha de salida es","house.pick_your_arrivaldate_in_the_calendar":"Elija una fecha de llegada","group_accommodation.you_picked_arrival_date":"Su fecha de llegada es","group_accommodation.pick_your_departure_in_the_calendar":"Seleccione una fecha de salida","group_accommodation.you_picked_departure_date":"Su fecha de salida es","group_accommodation.pick_your_arrivaldate_in_the_calendar":"Elija una fecha de llegada","tent.you_picked_arrival_date":"Su fecha de llegada es","tent.pick_your_departure_in_the_calendar":"Seleccione una fecha de salida","tent.you_picked_departure_date":"Su fecha de salida es","tent.pick_your_arrivaldate_in_the_calendar":"Elija una fecha de llegada","camper.you_picked_arrival_date":"Su fecha de recogida es","camper.pick_your_departure_in_the_calendar":"Seleccione una fecha de regreso","camper.you_picked_departure_date":"Su fecha de retorno es","camper.pick_your_arrivaldate_in_the_calendar":"Elija una fecha de recogida","boat.you_picked_arrival_date":"Your pickup date is","boat.pick_your_departure_in_the_calendar":"Select a return date","boat.you_picked_departure_date":"Your return date is","boat.pick_your_arrivaldate_in_the_calendar":"Choose a pickup date","bnb.you_picked_arrival_date":"Su fecha de llegada es","bnb.pick_your_departure_in_the_calendar":"Seleccione una fecha de salida","bnb.you_picked_departure_date":"Su fecha de salida es","bnb.pick_your_arrivaldate_in_the_calendar":"Elija una fecha de llegada","caravan.you_picked_arrival_date":"Su fecha de recogida es","caravan.pick_your_departure_in_the_calendar":"Seleccione una fecha de regreso","caravan.you_picked_departure_date":"Su fecha de retorno es","caravan.pick_your_arrivaldate_in_the_calendar":"Elija una fecha de recogida","camper_spot.you_picked_arrival_date":"Su fecha de llegada es","camper_spot.pick_your_departure_in_the_calendar":"Seleccione una fecha de salida","camper_spot.you_picked_departure_date":"Su fecha de salida es","camper_spot.pick_your_arrivaldate_in_the_calendar":"Elija una fecha de llegada","camping_place.you_picked_arrival_date":"Su fecha de llegada es","camping_place.pick_your_departure_in_the_calendar":"Seleccione una fecha de salida","camping_place.you_picked_departure_date":"Su fecha de salida es","camping_place.pick_your_arrivaldate_in_the_calendar":"Elija una fecha de llegada","hotelroom.you_picked_arrival_date":"Su fecha de llegada es","hotelroom.pick_your_departure_in_the_calendar":"Seleccione una fecha de salida","hotelroom.you_picked_departure_date":"Su fecha de salida es","hotelroom.pick_your_arrivaldate_in_the_calendar":"Elija una fecha de llegada","house_boat.you_picked_arrival_date":"Su fecha de recogida es","house_boat.pick_your_departure_in_the_calendar":"Seleccione una fecha de regreso","house_boat.you_picked_departure_date":"Su fecha de retorno es","house_boat.pick_your_arrivaldate_in_the_calendar":"Elija una fecha de recogida",no:"No",minimum_nights:"Al menos {minimum} noches",can_only_take_insurance_in_de_be_nl:"Solo puede contratar un seguro si vive en los Países Bajos, Alemania o Bélgica.",price_from:"Precio de",reviews:"Comentarios",reviews_note_link:"BUKAZU Booking System mantiene opiniones independientes. Estas opiniones se recogen después de la estancia de los huéspedes en el alojamiento. Se verifica la combinación del número de reserva y la dirección de correo electrónico."},it:{next:"Prossimo",previous:"Precedente",view_details:"Visualizza dettagli",price:"Prezzo",calculate:"Prossimo",book:"Prenotare",booked:"Prenotato",booking:"Prenotazione",last_minute_discount:"Sconto last minute",option:"Opzione",choose_for_option:"Prendi un'opzione per questo periodo",included_in_price:"compreso",rent_price:"Prezzo di affitto",discount:"Riduzione",extra_costs_included:"Costi aggiuntivi inclusi",optional_costs:"Opzioni extra",price_after_discount:"Prezzo di affitto incluso sconto",booking_from_til:"Date di prenotazione",total:"Total",stay_details:"Gruppo di viaggio",babies:"Numero di bambini",babies_from:"(fino a {babies} anni)",adults:"Numero di adulti",adults_from:"(dai {age} anni)","camper_spot.arrival_date":"Data di arrivo","camper_spot.departure_date":"Data di partenza","camper_spot.arrival":"Arrivo","camper_spot.departure":"Partenza","camping_place.arrival_date":"Data di arrivo","camping_place.departure_date":"Data di partenza","camping_place.arrival":"Arrivo","camping_place.departure":"Partenza","bnb.arrival_date":"Data di arrivo","bnb.departure_date":"Data di partenza","bnb.arrival":"Arrivo","bnb.departure":"Partenza","hotelroom.arrival_date":"Data di arrivo","hotelroom.departure_date":"Data di partenza","hotelroom.arrival":"Arrivo","hotelroom.departure":"Partenza",children:"Numero di bambini",children_from:"(da {from} a {til} anni)","house.arrival_date":"Data di arrivo","house.departure_date":"Data di partenza","house.arrival":"Arrivo","house.departure":"Partenza","tent.arrival_date":"Data di arrivo","tent.departure_date":"Data di partenza","tent.arrival":"Arrivo","tent.departure":"Partenza",extra_costs_bookable:"Opzioni extra",costs_on_site:"Possibili costi aggiuntivi sul posto:",insurances:"Insurances",at_least_1_adult:"Scegli almeno 1 adulto.",max_persons_reached:"Sono state selezionate troppe persone.",personal_details:"I tuoi dati",required:"Questo campo è obbligatorio.",cancel_insurance_all_risk:"All Risk",cancel_insurance_normal:"Standard",none:"None",cancel_insurance:"Cancellation insurance",insurance_costs:"Insurance Costs",choose:"Choose",yes:"Yes",booking_details:"Dettagli della prenotazione",based_on_one_person:"Basato su {persons} persone",return_to_calendar:"Ritorna al calendario",close:"Vicino",cancel_insurance_normal_long:"Short-term Cancellation Insurance ",cancel_insurance_normal_desc:"If you booked a wonderful holiday, cancellation insurance should not be missing! Your booked holiday cannot continue, or you have to go home unexpectedly halfway through the holiday due to, for example, a severe illness. The cancellation insurance of RecreatieVerzekeringen is ideal because it applies before departure and during your holiday.",cancel_insurance_more_insured:"More are insured than you think.",cancel_insurance_more_insured_desc:"Did you know that you can rely on cancellation insurance during pregnancy, a new job, or divorce? Many people expect cancellation insurance to be valid only in the event of illness or death.",cancel_insurance_important:"Important",cancel_insurance_important_message:"For optimal cancellation insurance coverage, you must take it out within seven days after booking the holiday.",cancel_insurance_for_whom:"For whom?",cancel_insurance_for_whom_explain:"This insurance is for a maximum of 4 families or 9 travel companions (no family members).",cancel_insurance_questions:"Frequently Asked Questions",cancel_insurance_questions_explain_1:"Click ",cancel_insurance_questions_explain_link:"here",cancel_insurance_questions_explain_2:" to find the Frequently Asked Questions.",show_terms:"Show conditions",terms:"Terms",remark:"Osservazione","9persons_9addresses":"The Insurance will pay for up to 9 persons, who live at 9 different addresses,",or:"or","9persons_4addresses":"The insurance pays out for an unlimited number of people who live at a maximum of 4 different addresses.",poliscosts:"Policy fee",poliscosts_are:"The cost for an insurance policy is a one-time charge of € 6,95. No matter if you have one or two insuran",youwillrecieve:"You will receive the insurance terms separate from you booking confirmation per email. The insurance starts as soon as the (first) payment has been made.",thank_you_for_your_request:"Grazie mille per la tua richiesta.",we_sent_confirmation_check_email:"Una copia della tua richiesta è stata inviata al tuo indirizzo e-mail. Se non hai ricevuto alcuna posta da noi, potrebbe essere che sia nella tua casella di spam.",something_went_wrong_please_try_again:"Oops, qualcosa è andato storto, ti preghiamo di riprovare più tardi.",persons:"persone",bedrooms:"camere da letto",minimum_week_price:"prezzo settimanale minimo",no_results:"Nessun risultato",agree_with:'Facendo clic su "Prenota" si crea un obbligo di pagamento quando la mia prenotazione viene accettata. Accetto i termini e le ',option_is_free:" L'opzione è gratuita e senza impegno",discount_reason:"Sconto di ragione.",results:"risultati",bathrooms:"bagni",you_need_to_give_reason:"Devi indicare un motivo di sconto valido","camper.arrival_date":"Data di ritiro","camper.departure_date":"Data di ritorno","camper.arrival":"Pick up","camper.departure":"Mano dentro","boat.arrival_date":"Data di ritiro","boat.departure_date":"Data di ritorno","boat.arrival":"Pick up","boat.departure":"Mano dentro","caravan.arrival_date":"Data di arrivo","caravan.departure_date":"Data di partenza","caravan.arrival":"Arrivo","caravan.departure":"Partenza",filters:"Filtri",comply_insurance_card:"Sono d'accordo che la carta di assicurazione di annullamento verrà emessa in digitale. Lo ricevo con la mia conferma di prenotazione.","house.you_picked_arrival_date":"La vostra data di arrivo è","house.pick_your_departure_in_the_calendar":"Selezionare una data di partenza","house.you_picked_departure_date":"La data di partenza è","house.pick_your_arrivaldate_in_the_calendar":"Scegliere una data di arrivo","group_accommodation.you_picked_arrival_date":"La vostra data di arrivo è","group_accommodation.pick_your_departure_in_the_calendar":"Selezionare una data di partenza","group_accommodation.you_picked_departure_date":"La data di partenza è","group_accommodation.pick_your_arrivaldate_in_the_calendar":"Scegliere una data di arrivo","tent.you_picked_arrival_date":"La vostra data di arrivo è","tent.pick_your_departure_in_the_calendar":"Selezionare una data di partenza","tent.you_picked_departure_date":"La data di partenza è","tent.pick_your_arrivaldate_in_the_calendar":"Scegliere una data di arrivo","camper.you_picked_arrival_date":"La vostra data di ritiro è","camper.pick_your_departure_in_the_calendar":"Seleziona una data di ritorno","camper.you_picked_departure_date":"La data di ritorno è","camper.pick_your_arrivaldate_in_the_calendar":"Scegli una data di ritiro","boat.you_picked_arrival_date":"Your pickup date is","boat.pick_your_departure_in_the_calendar":"Select a return date","boat.you_picked_departure_date":"Your return date is","boat.pick_your_arrivaldate_in_the_calendar":"Choose a pickup date","bnb.you_picked_arrival_date":"La vostra data di arrivo è","bnb.pick_your_departure_in_the_calendar":"Selezionare una data di partenza","bnb.you_picked_departure_date":"La data di partenza è","bnb.pick_your_arrivaldate_in_the_calendar":"Scegliere una data di arrivo","caravan.you_picked_arrival_date":"La vostra data di ritiro è","caravan.pick_your_departure_in_the_calendar":"Seleziona una data di ritorno","caravan.you_picked_departure_date":"La data di ritorno è","caravan.pick_your_arrivaldate_in_the_calendar":"Scegli una data di ritiro","camper_spot.you_picked_arrival_date":"La vostra data di arrivo è","camper_spot.pick_your_departure_in_the_calendar":"Selezionare una data di partenza","camper_spot.you_picked_departure_date":"La data di partenza è","camper_spot.pick_your_arrivaldate_in_the_calendar":"Scegliere una data di arrivo","camping_place.you_picked_arrival_date":"La vostra data di arrivo è","camping_place.pick_your_departure_in_the_calendar":"Selezionare una data di partenza","camping_place.you_picked_departure_date":"La data di partenza è","camping_place.pick_your_arrivaldate_in_the_calendar":"Scegliere una data di arrivo","hotelroom.you_picked_arrival_date":"La vostra data di arrivo è","hotelroom.pick_your_departure_in_the_calendar":"Selezionare una data di partenza","hotelroom.you_picked_departure_date":"La data di partenza è","hotelroom.pick_your_arrivaldate_in_the_calendar":"Scegliere una data di arrivo","house_boat.you_picked_arrival_date":"La vostra data di ritiro è","house_boat.pick_your_departure_in_the_calendar":"Seleziona una data di ritorno","house_boat.you_picked_departure_date":"La data di ritorno è","house_boat.pick_your_arrivaldate_in_the_calendar":"Scegli una data di ritiro",no:"No",minimum_nights:"Almeno {minimum} notti",can_only_take_insurance_in_de_be_nl:"Puoi stipulare un'assicurazione solo se vivi nei Paesi Bassi, in Germania o in Belgio.",price_from:"Prezzo da",reviews:"Recensioni",reviews_note_link:"Il sistema di prenotazione BUKAZU mantiene recensioni indipendenti. Queste recensioni vengono raccolte dopo il soggiorno degli ospiti nella struttura. Viene verificata la combinazione di numero di prenotazione e indirizzo e-mail."}};function rc(e,t){const r="undefined"!=typeof window&&window.__localeId__||"en";let n=(tc[r]||tc.en)[e]||e;return t&&Object.entries(t).forEach(([e,t])=>{n=n.replace(new RegExp(`\\{${e}\\}`,"g"),String(t))}),n}function nc(e,t){const r="undefined"!=typeof window&&window.__localeId__||"en";return new Intl.NumberFormat(r,t).format(e)}function ic({filters:e,onFilterChange:r,PortalSite:n,options:i}){function a(t,n){let i=e;i[t]=n,r(i)}const[o,s]=t(!1),c=i.searchFields||Us;let u=i.filtersForm&&i.filtersForm.fixedMobile?"fixed-mobile":null,l=i.filtersForm?i.filtersForm.show?`filters filters-${i.filtersForm.location}`:"filters-hidden":"filters",d=o&&"showOnMobile";/* @__PURE__ */
533
+ /* @__PURE__ */E.jsx("label",{htmlFor:e.id||e,children:e.name||e})]},e.id||e))})}function Hs({value:e,onChange:t,field:r}){const n=e&&""!==e?e:"";/* @__PURE__ */
534
+ return E.jsx("input",{type:"date",id:r.id,name:r.id,value:n,onChange:e=>{t(r.id,e.target.value)}})}function Gs({PortalSite:e,field:t,value:r,onChange:n}){/* @__PURE__ */
535
+ return E.jsx("input",{value:r,type:"number",min:"0",max:"persons_min"===t.id?e.max_persons:e[t.id],onBlur:e=>{n(t.id,e.currentTarget.value)}})}function Js({PortalSite:e,field:t,filters:r,value:n,onFilterChange:i}){let a=[];a=["countries","cities","regions"].includes(t.id)?e[t.id]:"persons_min"===t.id||"persons_max"===t.id?Us(e.max_persons):"bedrooms_min"===t.id?Us(e.max_bedrooms):"bathrooms_min"===t.id?Us(e.max_bathrooms):"weekprice_max"===t.id?function(e){let t=Math.ceil(e/100);return Array.from({length:t+1},(e,t)=>100*t)}(e.max_weekprice):Us(e[t.id]);let o={options:a,field:t,filters:r,value:n};return"properties"===t.id?/* @__PURE__ */E.jsx(Ys,{PortalSite:e,filters:r,onChange:i}):"select"===t.type?/* @__PURE__ */E.jsx(Ws,{...o,onChange:i}):"list"===t.type?/* @__PURE__ */E.jsx(Bs,{...o,onChange:i}):"radio"===t.type?/* @__PURE__ */E.jsx(Ks,{...o,onChange:i}):"number"===t.type?/* @__PURE__ */E.jsx(Gs,{PortalSite:e,field:t,value:n,onChange:i}):"date"===t.type?/* @__PURE__ */E.jsx(Hs,{field:t,value:n,onChange:i}):/* @__PURE__ */E.jsx("input",{value:n,onBlur:e=>{i(t.id,e.target.value)}})}const Xs=()=>/* @__PURE__ */E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 100",enableBackground:"new 0 0 100 100",xmlSpace:"preserve",height:"16px",children:/* @__PURE__ */E.jsx("path",{fill:"#000000",stroke:"2",d:"M77,53.752c0,0.012,0,0.022,0,0.034c0,14.92-12.019,27.058-26.938,27.058 c-14.92,0-26.948-12.138-26.948-27.058C23.114,38.961,35,26.889,50,26.738v4.942c0,2.84,2.54,2.913,3.947,1.647l10.354-7.714 c0,0,1.128-0.942,1.128-1.979c0-1.089-1.147-1.979-1.147-1.979L53.95,13.941C52.543,12.675,50,12.749,50,15.588v5.149 c-18,0.151-32.826,14.915-32.826,33.048c0,18.229,14.686,33.058,32.914,33.058C68.314,86.844,83,72.015,83,53.786 c0-0.012,0-0.022,0-0.034c0,0,0-3.375-3.037-3.375C77.109,50.376,77,53.752,77,53.752z"})}),Zs={next:"Next",previous:"Previous",view_details:"View details",price:"Price",calculate:"Next",book:"Book",booked:"Booked",booking:"Booking",last_minute_discount:"Last minute discount",discount:"Discount",option:"Option",choose_for_option:"Make a short reservation for this period ",included_in_price:"including",rent_price:"Rental price",extra_costs_included:"Extra costs included",optional_costs:"Extra options",price_after_discount:"Rental price incl. discount",booking_from_til:"Booking dates",total:"Total",stay_details:"Travel group",babies:"Babies",babies_from:"(up to the age of {babies})",adults:"Adults",adults_from:"(from the age of {age})","camper_spot.arrival_date":"Arrival date","camper_spot.departure_date":"Departure date","camper_spot.arrival":"Arrival","camper_spot.departure":"Departure","camping_place.arrival_date":"Arrival date","camping_place.departure_date":"Departure date","camping_place.arrival":"Arrival","camping_place.departure":"Departure","bnb.arrival_date":"Arrival date","bnb.departure_date":"Departure date","bnb.arrival":"Arrival","bnb.departure":"Departure","hotelroom.arrival_date":"Arrival date","hotelroom.departure_date":"Departure date","hotelroom.arrival":"Arrival","hotelroom.departure":"Departure",children:"Children",children_from:"(from {from} to {til} years inclusive)","house.arrival_date":"Arrival date","house.departure_date":"Departure date","house.arrival":"Arrival","house.departure":"Departure","group_accommodation.arrival_date":"Arrival date","group_accommodation.departure_date":"Departure date","group_accommodation.arrival":"Arrival","group_accommodation.departure":"Departure","tent.arrival_date":"Arrival date","tent.departure_date":"Departure date","tent.arrival":"Arrival","tent.departure":"Departure",extra_costs_bookable:"Extra options",costs_on_site:"Additional costs on the spot:",insurances:"Insurances",at_least_1_adult:"Choose at least 1 adult.",max_persons_reached:"Too many people have been selected.",personal_details:"Your information",required:"This field is required.",cancel_insurance_all_risk:"All Risk",cancel_insurance_normal:"Standard",none:"None",cancel_insurance:"Cancellation insurance",insurance_costs:"Insurance Costs",choose:"Choose",yes:"Yes",booking_details:"Booking details",based_on_one_person:"Based on {persons} persons",return_to_calendar:"Back to calendar",close:"Close",cancel_insurance_normal_long:"Short-term Cancellation Insurance ",cancel_insurance_normal_desc:"If you booked a wonderful holiday, cancellation insurance should not be missing! Your booked holiday cannot continue, or you have to go home unexpectedly halfway through the holiday due to, for example, a severe illness. The cancellation insurance of RecreatieVerzekeringen is ideal because it applies before departure and during your holiday.",cancel_insurance_more_insured:"More are insured than you think.",cancel_insurance_more_insured_desc:"Did you know that you can rely on cancellation insurance during pregnancy, a new job, or divorce? Many people expect cancellation insurance to be valid only in the event of illness or death.",cancel_insurance_important:"Important",cancel_insurance_important_message:"For optimal cancellation insurance coverage, you must take it out within seven days after booking the holiday.",cancel_insurance_for_whom:"For whom?",cancel_insurance_for_whom_explain:"This insurance is for a maximum of 4 families or 9 travel companions (no family members).",cancel_insurance_questions:"Frequently Asked Questions",cancel_insurance_questions_explain_1:"Click ",cancel_insurance_questions_explain_link:"here",cancel_insurance_questions_explain_2:" to find the Frequently Asked Questions.",show_terms:"Show conditions",terms:"Terms",remark:"Remark","9persons_9addresses":"The Insurance will pay for up to 9 persons, who live at 9 different addresses,",or:"or","9persons_4addresses":"The insurance pays out for an unlimited number of people who live at a maximum of 4 different addresses.",poliscosts:"Policy fee",poliscosts_are:"The cost for an insurance policy is a one-time charge of € 6,95. No matter if you have one or two insuran",youwillrecieve:"You will receive the insurance terms separate from you booking confirmation per email. The insurance starts as soon as the (first) payment has been made.",thank_you_for_your_request:"Thank you very much for your request.",we_sent_confirmation_check_email:"A copy of your request has been sent to your e-mail address. If you have not received any mail from us, it may be that it is in your spam box.",something_went_wrong_please_try_again:"Oops, something went wrong, please try again later.",persons:"persons",bedrooms:"bedrooms",minimum_week_price:"min. weekly price",no_results:"No results",agree_with:"Clicking 'Book' creates a payment obligation when my booking is accepted. I agree to the ",option_is_free:"An option is free of charge and without obligation.",discount_reason:"Reason discount.",results:"results",bathrooms:"bathrooms",you_need_to_give_reason:"You must indicate a valid discount reason","camper.arrival_date":"Start date","camper.departure_date":"End date","camper.arrival":"Start date","camper.departure":"End date","boat.arrival_date":"Start date","boat.departure_date":"End date","boat.arrival":"Start date","boat.departure":"End date","caravan.arrival_date":"Arrival date","caravan.departure_date":"Departure date","caravan.arrival":"Arrival","caravan.departure":"Departure",filters:"Filters",comply_insurance_card:"I agree that the cancellation insurance insurance card will be digitally issued to me. I receive this card with my booking confirmation.","house.you_picked_arrival_date":"Your arrival date is","house.pick_your_departure_in_the_calendar":"Select a departure date","house.you_picked_departure_date":"Your departure date is","house.pick_your_arrivaldate_in_the_calendar":"Choose an arrival date","group_accommodation.you_picked_arrival_date":"Your arrival date is","group_accommodation.pick_your_departure_in_the_calendar":"Select a departure date","group_accommodation.you_picked_departure_date":"Your departure date is","group_accommodation.pick_your_arrivaldate_in_the_calendar":"Choose an arrival date","tent.you_picked_arrival_date":"Your arrival date is","tent.pick_your_departure_in_the_calendar":"Select a departure date","tent.you_picked_departure_date":"Your departure date is","tent.pick_your_arrivaldate_in_the_calendar":"Choose an arrival date","camper.you_picked_arrival_date":"Your pickup date is","camper.pick_your_departure_in_the_calendar":"Select a return date","camper.you_picked_departure_date":"Your return date is","camper.pick_your_arrivaldate_in_the_calendar":"Choose a pickup date","boat.you_picked_arrival_date":"Your pickup date is","boat.pick_your_departure_in_the_calendar":"Select a return date","boat.you_picked_departure_date":"Your return date is","boat.pick_your_arrivaldate_in_the_calendar":"Choose a pickup date","bnb.you_picked_arrival_date":"Your arrival date is","bnb.pick_your_departure_in_the_calendar":"Select a departure date","bnb.you_picked_departure_date":"Your departure date is","bnb.pick_your_arrivaldate_in_the_calendar":"Choose an arrival date","caravan.you_picked_arrival_date":"Your pickup date is","caravan.pick_your_departure_in_the_calendar":"Select a return date","caravan.you_picked_departure_date":"Your return date is","caravan.pick_your_arrivaldate_in_the_calendar":"Choose a pickup date","camper_spot.you_picked_arrival_date":"Your arrival date is","camper_spot.pick_your_departure_in_the_calendar":"Select a departure date","camper_spot.you_picked_departure_date":"Your departure date is","camper_spot.pick_your_arrivaldate_in_the_calendar":"Choose an arrival date","camping_place.you_picked_arrival_date":"Your arrival date is","camping_place.pick_your_departure_in_the_calendar":"Select a departure date","camping_place.you_picked_departure_date":"Your departure date is","camping_place.pick_your_arrivaldate_in_the_calendar":"Choose an arrival date","hotelroom.you_picked_arrival_date":"Your arrival date is","hotelroom.pick_your_departure_in_the_calendar":"Select a departure date","hotelroom.you_picked_departure_date":"Your departure date is","hotelroom.pick_your_arrivaldate_in_the_calendar":"Choose an arrival date","house_boat.you_picked_arrival_date":"Your pickup date is","house_boat.pick_your_departure_in_the_calendar":"Select a return date","house_boat.you_picked_departure_date":"Your return date is","house_boat.pick_your_arrivaldate_in_the_calendar":"Choose a pickup date",no:"No",no_house_found:"No object found for this combination of PortalCode and ObjectCode",insurance_company_needs_date_of_birth:"A date of birth is required for taking out insurance","extra_fields.date_of_birth":"Date of birth",no_discount_code_found:"No discount found with entered code",discount_code:"Discount code",minimum_nights:"At least {minimum} nights",can_only_take_insurance_in_de_be_nl:"You can only take out insurance if you live in the Netherlands, Germany or Belgium.",price_from:"Price from",reviews:"Reviews",reviews_note_link:"BUKAZU Booking System maintains independent reviews. These reviews are collected after guests stay in the accommodation. There is verification of the combination of booking number and email address."},ec={next:"Volgende",previous:"Vorige",view_details:"Bekijk details",price:"Prijs",calculate:"Volgende",book:"Boeken",booked:"Geboekt",booking:"Boeking",last_minute_discount:"Last minute korting",discount:"Korting",option:"Optie",choose_for_option:"Neem een optie op deze periode",included_in_price:"inclusief",rent_price:"Huurprijs",extra_costs_included:"Extra kosten inbegrepen",optional_costs:"Extra opties",price_after_discount:"Huurprijs incl. korting",booking_from_til:"Boekingsdata:",total:"Totaal",stay_details:"Reisgezelschap",babies:"Baby's",babies_from:"(t/m {babies} jaar)",adults:"Volwassenen",adults_from:"(vanaf {age} jaar)","camper_spot.arrival_date":"Aankomstdatum","camper_spot.departure_date":"Vertrekdatum","camper_spot.arrival":"Aankomst","camper_spot.departure":"Vertrek","camping_place.arrival_date":"Aankomstdatum","camping_place.departure_date":"Vertrekdatum","camping_place.arrival":"Aankomst","camping_place.departure":"Vertrek","bnb.arrival_date":"Aankomstdatum","bnb.departure_date":"Vertrekdatum","bnb.arrival":"Aankomst","bnb.departure":"Vertrek","hotelroom.arrival_date":"Aankomstdatum","hotelroom.departure_date":"Vertrekdatum","hotelroom.arrival":"Aankomst","hotelroom.departure":"Vertrek",children:"Kinderen",children_from:"({from} t/m {til} jaar)","house.arrival_date":"Aankomstdatum","house.departure_date":"Vertrekdatum","house.arrival":"Aankomst","house.departure":"Vertrek ","group_accommodation.arrival_date":"Aankomstdatum","group_accommodation.departure_date":"Vertrekdatum","group_accommodation.arrival":"Aankomst","group_accommodation.departure":"Vertrek ",extra_costs_bookable:"Extra opties",costs_on_site:"Bijkomende kosten ter plaatse:",insurances:"Verzekeringen",at_least_1_adult:"Kies minstens 1 volwassene.",max_persons_reached:"Er zijn te veel personen geselecteerd.",personal_details:"Uw gegevens",required:"Dit veld is verplicht.",cancel_insurance_all_risk:"All Risk",cancel_insurance_normal:"Normaal",none:"Geen",cancel_insurance:"Annuleringsverzekering",insurance_costs:"Poliskosten",choose:"Kies",yes:"Ja",booking_details:"Boekingsgegevens",based_on_one_person:"Gebaseerd op {persons} personen",return_to_calendar:"Terug naar de kalender",close:"Sluiten",cancel_insurance_normal_long:"Kortlopende Annuleringsverzekering",cancel_insurance_normal_desc:"Je hebt een prachtige vakantie geboekt, dan mag een annuleringsverzekering niet ontbreken! Het kan gebeuren dat je geboekte vakantie niet door kan gaan, of dat je halverwege de vakantie onverwachts naar huis moet door bijvoorbeeld een ernstige ziekte. De annuleringsverzekering van RecreatieVerzekeringen is ideaal, deze geldt namelijk niet alleen voor je vertrek, maar ook tijdens de vakantie.",cancel_insurance_more_insured:"Er is meer verzekerd dan je denkt",cancel_insurance_more_insured_desc:"Wist je dat bij zwangerschap, een nieuwe baan of scheiding je een beroep kunt doen op een annuleringsverzekering? Veel mensen verwachten dat een annuleringsverzekering alleen geldig is bij ziekte of overlijden.",cancel_insurance_important:"Belangrijk",cancel_insurance_important_message:"Voor een optimale dekking van je annuleringsverzekering is het belangrijk dat je deze afsluit binnen 7 dagen na het boeken van de vakantie.",cancel_insurance_for_whom:"Voor wie?",cancel_insurance_for_whom_explain:"Deze verzekering is voor maximaal 4 gezinnen of 9 reisgenoten (geen gezinsleden)",cancel_insurance_questions:"Veelgestelde vragen",cancel_insurance_questions_explain_link:"hier",cancel_insurance_questions_explain_1:"Klik ",cancel_insurance_questions_explain_2:" om de veelgestelde vragen te vinden.",show_terms:"Bekijk de voorwaarden",terms:"Voorwaarden",reviews_note_link:"BUKAZU Boekingssysteem houdt onafhankelijk reviews bij. Deze reviews zijn verzameld na het verblijf van de gasten in de accommodatie. Er is controle op de combinatie boekingsnummer en e-mailadres.",reviews_note:"De getoonde reviews zijn gecontroleerd op echtheid en voldoen aan de richtlijnen van de ACM. De reviews zijn verzameld na het verblijf van de gasten in de accommodatie. Er is controle op de combinatie boekingsnummer en e-mailadres.",remark:"Opmerking","9persons_9addresses":"De verzekering keert uit voor maximaal 9 personen die op 9 verschillende adressen wonen,",or:"of","9persons_4addresses":"De verzekering keert uit voor een onbeperkt aantal personen die op maximaal 4 verschillende adressen wonen.",poliscosts:"Poliskosten",poliscosts_are:"De kosten voor het opmaken van een verzekeringspolis zijn eenmalig € 6,95. Ongeacht of u 1 of meerdere verzekeringen heeft afgesloten.",youwillrecieve:"U ontvangt aansluitend op uw boekingsbevestiging de verzekeringspapieren per email toegestuurd. De verzekering treedt in werking zodra u de (aan)betaling gedaan heeft.",thank_you_for_your_request:"Hartelijk dank voor uw boekings/optie-aanvraag.",we_sent_confirmation_check_email:"Een kopie van uw aanvraag is naar uw e-mailadres verstuurd. Als u geen mail van ons ontvangen hebt, kan het zijn dat deze in uw spambox zit. ",something_went_wrong_please_try_again:"Oeps, er is iets mis gegaan, probeert u het later nogmaals.",persons:"personen",bedrooms:"slaapkamers",minimum_week_price:"min. weekprijs",no_results:"Geen resultaten",agree_with:"Door op 'Boeken' te klikken, ontstaat een betaalverplichting wanneer mijn boeking wordt geaccepteerd. Ik ga akkoord met de",option_is_free:"Een optie is kosteloos en vrijblijvend.",discount_reason:"Reden korting.",results:"resultaten",bathrooms:"badkamers",you_need_to_give_reason:"U dient een geldige kortingsreden aan te geven","camper.arrival_date":"Ophaaldatum","camper.departure_date":"Inleverdatum","camper.arrival":"Ophalen","camper.departure":"Inleveren","boat.arrival_date":"Ophaaldatum","boat.departure_date":"Inleverdatum","boat.arrival":"Ophalen","boat.departure":"Inleveren","caravan.arrival_date":"Aankomstdatum","caravan.departure_date":"Vertrekdatum","caravan.arrival":"Aankomst","caravan.departure":"Vertrek ","tent.arrival_date":"Aankomstdatum","tent.departure_date":"Vertrekdatum","tent.arrival":"Aankomst","tent.departure":"Vertrek ",filters:"Filters",comply_insurance_card:"Ik ga ermee akkoord dat de verzekeringskaart van de annuleringsverzekering digitaal aan mij verstrekt wordt. Ik ontvang deze bij mijn boekingsbevestiging.","house.you_picked_arrival_date":"Uw aankomstdatum is","house.pick_your_departure_in_the_calendar":"Kies een vertrekdatum","house.you_picked_departure_date":"Uw vertrekdatum is","house.pick_your_arrivaldate_in_the_calendar":"Kies een aankomstdatum","group_accommodation.you_picked_arrival_date":"Uw aankomstdatum is","group_accommodation.pick_your_departure_in_the_calendar":"Kies een vertrekdatum","group_accommodation.you_picked_departure_date":"Uw vertrekdatum is","group_accommodation.pick_your_arrivaldate_in_the_calendar":"Kies een aankomstdatum","tent.you_picked_arrival_date":"Uw aankomstdatum is","tent.pick_your_departure_in_the_calendar":"Kies een vertrekdatum","tent.you_picked_departure_date":"Uw vertrekdatum is","tent.pick_your_arrivaldate_in_the_calendar":"Kies een aankomstdatum","camper.you_picked_arrival_date":"Uw ophaaldatum is","camper.pick_your_departure_in_the_calendar":"Kies een inleverdatum","camper.you_picked_departure_date":"Uw inleverdatum is","camper.pick_your_arrivaldate_in_the_calendar":"Kies een ophaaldatum","boat.you_picked_arrival_date":"Uw ophaaldatum is","boat.pick_your_departure_in_the_calendar":"Kies een inleverdatum","boat.you_picked_departure_date":"Uw inleverdatum is","boat.pick_your_arrivaldate_in_the_calendar":"Kies een ophaaldatum","bnb.you_picked_arrival_date":"Uw aankomstdatum is","bnb.pick_your_departure_in_the_calendar":"Kies een vertrekdatum","bnb.you_picked_departure_date":"Uw vertrekdatum is","bnb.pick_your_arrivaldate_in_the_calendar":"Kies een aankomstdatum","caravan.you_picked_arrival_date":"Uw ophaaldatum is","caravan.pick_your_departure_in_the_calendar":"Kies een inleverdatum","caravan.you_picked_departure_date":"Uw inleverdatum is","caravan.pick_your_arrivaldate_in_the_calendar":"Kies een ophaaldatum","camper_spot.you_picked_arrival_date":"Uw aankomstdatum is","camper_spot.pick_your_departure_in_the_calendar":"Kies een vertrekdatum","camper_spot.you_picked_departure_date":"Uw vertrekdatum is","camper_spot.pick_your_arrivaldate_in_the_calendar":"Kies een aankomstdatum","camping_place.you_picked_arrival_date":"Uw aankomstdatum is","camping_place.pick_your_departure_in_the_calendar":"Kies een vertrekdatum","camping_place.you_picked_departure_date":"Uw vertrekdatum is","camping_place.pick_your_arrivaldate_in_the_calendar":"Kies een aankomstdatum","hotelroom.you_picked_arrival_date":"Uw aankomstdatum is","hotelroom.pick_your_departure_in_the_calendar":"Kies een vertrekdatum","hotelroom.you_picked_departure_date":"Uw vertrekdatum is","hotelroom.pick_your_arrivaldate_in_the_calendar":"Kies een aankomstdatum","house_boat.you_picked_arrival_date":"Uw ophaaldatum is","house_boat.pick_your_departure_in_the_calendar":"Kies een inleverdatum","house_boat.you_picked_departure_date":"Uw inleverdatum is","house_boat.pick_your_arrivaldate_in_the_calendar":"Kies een ophaaldatum",no:"Nee",no_house_found:"Geen object gevonden voor deze combinatie van Portal-code en Object-code",insurance_company_needs_date_of_birth:"Voor het afsluiten van een verzekering is een geboortedatum verplicht","extra_fields.date_of_birth":"Geboortedatum",no_discount_code_found:"Geen korting gevonden met ingegeven code",discount_code:"Kortingscode",minimum_nights:"Minstens {minimum} nachten",can_only_take_insurance_in_de_be_nl:"U kunt alleen een verzekering afsluiten, wanneer u woont in Nederland, Duitsland of België.",price_from:"Prijs vanaf",reviews:"Reviews"},tc={next:"Nächste",previous:"Vorherige",view_details:"Details anzeigen",reviews_note:"",price:"Preis",calculate:"Nächst",book:"Buchen",booked:"Gebucht",booking:"Buchung",last_minute_discount:"Last Minute Rabatt",option:"Option",choose_for_option:"Machen Sie eine kostenlose Option",included_in_price:"inklusive",rent_price:"Mietpreis",discount:"Rabatt",extra_costs_included:"Nebenkosten enthalten",optional_costs:"Zusätzliche Optionen",price_after_discount:"Mietpreis inkl. Rabatt",booking_from_til:"Buchungsdaten",total:"Gesamt",stay_details:"Reisegruppe",babies:"Babys",babies_from:"(bis einschl. {babies} Jahre)",adults:"Erwachsene",adults_from:"(ab {age} Jahre)","camper_spot.arrival_date":"Anreisedatum","camper_spot.departure_date":"Abreisedatum","camper_spot.arrival":"Ankunft","camper_spot.departure":"Abreise","camping_place.arrival_date":"Anreisedatum","camping_place.departure_date":"Abreisedatum","camping_place.arrival":"Ankunft","camping_place.departure":"Abreise","bnb.arrival_date":"Anreisedatum","bnb.departure_date":"Abreisedatum","bnb.arrival":"Ankunft","bnb.departure":"Abreise","hotelroom.arrival_date":"Anreisedatum","hotelroom.departure_date":"Abreisedatum","hotelroom.arrival":"Ankunft","hotelroom.departure":"Abreise",children:"Kinder",children_from:"(von {from} bis einschl. {til} Jahre)","house.arrival_date":"Anreisedatum","house.departure_date":"Abreisedatum","house.arrival":"Ankunft","house.departure":"Abreise","group_accommodation.arrival_date":"Anreisedatum","group_accommodation.departure_date":"Abreisedatum","group_accommodation.arrival":"Ankunft","group_accommodation.departure":"Abreise","tent.arrival_date":"Anreisedatum","tent.departure_date":"Abreisedatum","tent.arrival":"Ankunft","tent.departure":"Abreise",extra_costs_bookable:"Zusätzliche Optionen",costs_on_site:"Zusätzliche Kosten vor Ort:",insurances:"Versicherungen",at_least_1_adult:"Wählen Sie mindestens einen Erwachsenen aus.",max_persons_reached:"Es wurden zu viele Personen ausgewählt.",personal_details:"Ihre Daten",required:"Dieses Feld wird benötigt.",cancel_insurance_all_risk:"Allrisk",cancel_insurance_normal:"Standard",none:"Keine",cancel_insurance:"Reiserücktrittsversicherung",insurance_costs:"Policekosten",choose:"Wählen",yes:"Ja",booking_details:"Buchungsdetails",based_on_one_person:"Basierend auf {persons} Personen",return_to_calendar:"Zurück zum Kalender",close:"Schließen",cancel_insurance_normal_long:"Kurzfristige Reiserücktrittsversicherung",cancel_insurance_normal_desc:"Sie haben einen tollen Urlaub gebucht, dann darf eine Reiserücktrittsversicherung nicht fehlen! Es kann sein, dass Ihr gebuchter Urlaub nicht stattfinden kann oder dass Sie z. B. wegen einer schweren Krankheit mitten im Urlaub nach Hause fahren müssen. Die Reiserücktrittsversicherung von RecreatieVerzekeringen ist ideal, denn sie gilt nicht nur vor der Abreise, sondern auch während Ihres Urlaubs.",cancel_insurance_more_insured:"Es ist mehr versichert als Sie denken",cancel_insurance_more_insured_desc:"Wussten Sie, dass eine Reiserücktrittsversicherung auch im Falle einer Schwangerschaft, eines neuen Jobs oder einer Scheidung greift? Viele Leute erwarten, dass eine Reiserücktrittsversicherung nur bei Krankheit oder Tod gilt.",cancel_insurance_important:"Wichtig!",cancel_insurance_important_message:"Für eine optimale Deckung durch ihre Reiserücktrittsversicherung ist es wichtig, dass Sie diese innerhalb von 7 Tagen nach Ihrer Reisebuchung abschließen.",cancel_insurance_for_whom:"Für wen?",cancel_insurance_for_whom_explain:"Diese Versicherung gilt für bis zu 4 Familien oder 9 Mitreisende (keine Familienmitglieder).",cancel_insurance_questions:"Häufig gestellte Fragen ",cancel_insurance_questions_explain_1:"Klicken Sie ",cancel_insurance_questions_explain_link:"hier",cancel_insurance_questions_explain_2:" für die häufig gestellte Fragen.",show_terms:"Siehe Bedingungen",terms:"Bedingungen",remark:"Anmerkung","9persons_9addresses":"Die Versicherung ist gültig für maximal 9 Personen, die am 9 verschiedene Adressen wohnen,",or:"oder","9persons_4addresses":"Die Versicherung ist gültig für eine unbegrenzte Anzahl von Personen, die an maximal 4 verschiedenen Adressen wohnen.",poliscosts:"Police Kosten",poliscosts_are:"Es gibt einmalig € 6,95 Police-Kosten für die Bearbeitung der Versicherungen. Egal ob Sie 1 oder mehrere Versicherungen abschließen.",youwillrecieve:"Sie erhalten nach der Buchungsbestätigung im Anschluss an Ihre Buchung die Versicherungsbedingungen per E-Mail. Die Versicherung tritt mit der Ihrer Anzahlung in Kraft.",thank_you_for_your_request:"Vielen Dank für Ihre Buchungs/Options-Anfrage.",we_sent_confirmation_check_email:"Eine Kopie Ihrer Anfrage wurde an Ihre E-Mail-Adresse gesendet. Wenn Sie keine E-Mail von uns erhalten haben, befindet sich diese möglicherweise in Ihrer Spam-Box.",something_went_wrong_please_try_again:"Ups, es ist ein Fehler aufgetreten. Bitte versuchen Sie es später erneut.",persons:"Personen",bedrooms:"Schlafzimmer",minimum_week_price:"min. Wochenpreis",no_results:"Keine Ergebnisse",agree_with:'Wenn ich auf "Buchen" klicke, entsteht eine Zahlungsverpflichtung, wenn meine Buchung akzeptiert wird. Ich akzeptiere die',option_is_free:"Eine Option ist kostenlos und unverbindlich.",discount_reason:"Grund für Rabatt",results:"Ergebnisse",bathrooms:"Badezimmer",you_need_to_give_reason:"Sie müssen einen gültigen Rabattgrund angeben","camper.arrival_date":"Abholdatum","camper.departure_date":"Rückgabedatum","camper.arrival":"Abholen","camper.departure":"Rückgabe","boat.arrival_date":"Abholdatum","boat.departure_date":"Rückgabedatum","boat.arrival":"Abholen","boat.departure":"Rückgabe","caravan.arrival_date":"Anreisedatum","caravan.departure_date":"Abreisedatum","caravan.arrival":"Ankunft","caravan.departure":"Abreise",filters:"Filter",comply_insurance_card:"Ich bin damit einverstanden, dass die Versicherungskarte der Reiserücktrittsversicherung digital ausgestellt wird. Ich erhalte diese mit meiner Buchungsbestätigung.","house.you_picked_arrival_date":"Ihre Ankunft ist","house.pick_your_departure_in_the_calendar":"Wählen Sie ein Abreisedatum","house.you_picked_departure_date":"Ihr Abreisedatum ist","house.pick_your_arrivaldate_in_the_calendar":"Wählen Sie das Ankunftsdatum","group_accommodation.you_picked_arrival_date":"Ihre Ankunft ist","group_accommodation.pick_your_departure_in_the_calendar":"Wählen Sie ein Abreisedatum","group_accommodation.you_picked_departure_date":"Ihr Abreisedatum ist","group_accommodation.pick_your_arrivaldate_in_the_calendar":"Wählen Sie das Ankunftsdatum","tent.you_picked_arrival_date":"Ihre Ankunft ist","tent.pick_your_departure_in_the_calendar":"Wählen Sie ein Abreisedatum","tent.you_picked_departure_date":"Ihr Abreisedatum ist","tent.pick_your_arrivaldate_in_the_calendar":"Wählen Sie das Ankunftsdatum","camper.you_picked_arrival_date":"Ihr Abholdatum ist","camper.pick_your_departure_in_the_calendar":"Wählen Sie ein Rückgabedatum","camper.you_picked_departure_date":"Ihr Rückgabedatum ist","camper.pick_your_arrivaldate_in_the_calendar":"Wählen Sie einen Abholtermin","boat.you_picked_arrival_date":"Ihr Abholdatum ist","boat.pick_your_departure_in_the_calendar":"Wählen Sie ein Rückgabedatum","boat.you_picked_departure_date":"Ihr Rückgabedatum ist","boat.pick_your_arrivaldate_in_the_calendar":"Wählen Sie einen Abholtermin","bnb.you_picked_arrival_date":"Ihre Ankunft ist","bnb.pick_your_departure_in_the_calendar":"Wählen Sie ein Abreisedatum","bnb.you_picked_departure_date":"Ihr Abreisedatum ist","bnb.pick_your_arrivaldate_in_the_calendar":"Wählen Sie das Ankunftsdatum","caravan.you_picked_arrival_date":"Ihr Abholdatum ist","caravan.pick_your_departure_in_the_calendar":"Wählen Sie ein Rückgabedatum","caravan.you_picked_departure_date":"Ihr Rückgabedatum ist","caravan.pick_your_arrivaldate_in_the_calendar":"Wählen Sie einen Abholtermin","camper_spot.you_picked_arrival_date":"Ihre Ankunft ist","camper_spot.pick_your_departure_in_the_calendar":"Wählen Sie ein Abreisedatum","camper_spot.you_picked_departure_date":"Ihr Abreisedatum ist","camper_spot.pick_your_arrivaldate_in_the_calendar":"Wählen Sie das Ankunftsdatum","camping_place.you_picked_arrival_date":"Ihre Ankunft ist","camping_place.pick_your_departure_in_the_calendar":"Wählen Sie ein Abreisedatum","camping_place.you_picked_departure_date":"Ihr Abreisedatum ist","camping_place.pick_your_arrivaldate_in_the_calendar":"Wählen Sie das Ankunftsdatum","hotelroom.you_picked_arrival_date":"Ihre Ankunft ist","hotelroom.pick_your_departure_in_the_calendar":"Wählen Sie ein Abreisedatum","hotelroom.you_picked_departure_date":"Ihr Abreisedatum ist","hotelroom.pick_your_arrivaldate_in_the_calendar":"Wählen Sie das Ankunftsdatum","house_boat.you_picked_arrival_date":"Ihr Abholdatum ist","house_boat.pick_your_departure_in_the_calendar":"Wählen Sie ein Rückgabedatum","house_boat.you_picked_departure_date":"Ihr Rückgabedatum ist","house_boat.pick_your_arrivaldate_in_the_calendar":"Wählen Sie einen Abholtermin",no:"Nein",insurance_company_needs_date_of_birth:"Für den Abschluss einer Versicherung wird ein Geburtsdatum benötigt","extra_fields.date_of_birth":"Geburtsdatum",no_discount_code_found:"Kein Rabatt mit eingegebenem Code gefunden",discount_code:"Rabatt-Code",minimum_nights:"Mindestens {minimum} Nächte",can_only_take_insurance_in_de_be_nl:"Sie können sich nur versichern, wenn Sie in den Niederlanden, Deutschland oder Belgien wohnen.",price_from:"Preis von",reviews:"Bewertungen",reviews_note_link:"Das BUKAZU Buchungssystem unterhält unabhängige Bewertungen. Diese Bewertungen werden nach dem Aufenthalt der Gäste in der Unterkunft gesammelt. Es gibt eine Überprüfung der Kombination von Buchungsnummer und E-Mail-Adresse."},rc={en:Zs,nl:ec,de:tc,fr:{next:"Suivant",previous:"Précédent",view_details:"Voir les détails",price:"Prix",calculate:"Suivante",book:"Réserver",booked:"Réservé",booking:"Réservation",last_minute_discount:"Réduction de dernière minute",option:"Option",choose_for_option:"Prendre une option pour cette période",included_in_price:"frais",rent_price:"Prix de location",discount:"Réduction",extra_costs_included:"Frais supplémentaires inclus",optional_costs:"Options supplémentaires",price_after_discount:"Prix de location incl.",booking_from_til:"Dates de réservation",total:"Total",stay_details:"Composition du groupe",babies:"Nombre de bébés",babies_from:"(jusqu'a {babies} ans)",adults:"Nombre d'adults",adults_from:"(à partir de {age} ans)","camper_spot.arrival_date":"Date d'arrivée","camper_spot.departure_date":"Date de départ","camper_spot.arrival":"Arrivée","camper_spot.departure":"Départ","camping_place.arrival_date":"Date d'arrivée","camping_place.departure_date":"Date de départ","camping_place.arrival":"Arrivée","camping_place.departure":"Départ","bnb.arrival_date":"Date d'arrivée","bnb.departure_date":"Date de départ","bnb.arrival":"Arrivée","bnb.departure":"Départ","hotelroom.arrival_date":"Date d'arrivée","hotelroom.departure_date":"Date de départ","hotelroom.arrival":"Arrivée","hotelroom.departure":"Départ",children:"Nombre d'enfants",children_from:"(de {from} à {til} ans)","house.arrival_date":"Date d'arrivée","house.departure_date":"Date de départ","house.arrival":"Arrivée","house.departure":"Départ","group_accommodation.arrival_date":"Date d'arrivée","group_accommodation.departure_date":"Date de départ","group_accommodation.arrival":"Arrivée","group_accommodation.departure":"Départ","tent.arrival_date":"Date d'arrivée","tent.departure_date":"Date de départ","tent.arrival":"Arrivée","tent.departure":"Départ",extra_costs_bookable:"Options supplémentaires",costs_on_site:"Frais supplémentaires sur place:",insurances:"Insurances",at_least_1_adult:"Choisissez au moins 1 adulte.",max_persons_reached:"Trop de personnes ont été sélectionnées.",personal_details:"Vos données",required:"Ce champ est requis.",cancel_insurance_all_risk:"All Risk",cancel_insurance_normal:"Standard",none:"None",cancel_insurance:"Cancellation insurance",insurance_costs:"Insurance Costs",choose:"Choose",yes:"Yes",booking_details:"Détails de la réservation",based_on_one_person:"Base {persons} personnes",return_to_calendar:"Retour au calendrier",close:"Fermer",cancel_insurance_normal_long:"Short-term Cancellation Insurance ",cancel_insurance_normal_desc:"If you booked a wonderful holiday, cancellation insurance should not be missing! Your booked holiday cannot continue, or you have to go home unexpectedly halfway through the holiday due to, for example, a severe illness. The cancellation insurance of RecreatieVerzekeringen is ideal because it applies before departure and during your holiday.",cancel_insurance_more_insured:"More are insured than you think.",cancel_insurance_more_insured_desc:"Did you know that you can rely on cancellation insurance during pregnancy, a new job, or divorce? Many people expect cancellation insurance to be valid only in the event of illness or death.",cancel_insurance_important:"Important",cancel_insurance_important_message:"For optimal cancellation insurance coverage, you must take it out within seven days after booking the holiday.",cancel_insurance_for_whom:"For whom?",cancel_insurance_for_whom_explain:"This insurance is for a maximum of 4 families or 9 travel companions (no family members).",cancel_insurance_questions:"Frequently Asked Questions",cancel_insurance_questions_explain_1:"Click ",cancel_insurance_questions_explain_link:"here",cancel_insurance_questions_explain_2:" to find the Frequently Asked Questions.",show_terms:"Show conditions",terms:"Terms",remark:"Remarque","9persons_9addresses":"The Insurance will pay for up to 9 persons, who live at 9 different addresses,",or:"or","9persons_4addresses":"The insurance pays out for an unlimited number of people who live at a maximum of 4 different addresses.",poliscosts:"Policy fee",poliscosts_are:"The cost for an insurance policy is a one-time charge of € 6,95. No matter if you have one or two insuran",youwillrecieve:"You will receive the insurance terms separate from you booking confirmation per email. The insurance starts as soon as the (first) payment has been made.",thank_you_for_your_request:"Merci beaucoup pour votre demande.",we_sent_confirmation_check_email:"Une copie de votre demande a été envoyée à votre adresse e-mail. Si vous n'avez pas reçu de courrier de notre part, il se peut qu'il soit dans votre boîte de courrier indésirable.",something_went_wrong_please_try_again:"Oups, quelque chose s'est mal passé, veuillez réessayer plus tard.",persons:"Personnes",bedrooms:"chambres a coucher",minimum_week_price:"min. prix hebdomadaire",no_results:"Aucun résultat",agree_with:'ELe fait de cliquer sur "Réserver" crée une obligation de paiement lorsque ma réservation est acceptée. J\'accepte',option_is_free:"Une option est gratuite et sans engagement.",discount_reason:"Raison réduction.",results:"résultats",bathrooms:"salle de bain",you_need_to_give_reason:"Debe indicar un motivo de descuento válido.","camper.arrival_date":"Date de collecte","camper.departure_date":"Date de retour","camper.arrival":"Ramasser","camper.departure":"Remettre","boat.arrival_date":"Date de collecte","boat.departure_date":"Date de retour","boat.arrival":"Ramasser","boat.departure":"Remettre","caravan.arrival_date":"Date d'arrivée","caravan.departure_date":"Date de départ","caravan.arrival":"Arrivée","caravan.departure":"Départ",filters:"Les filtres",comply_insurance_card:"Je conviens que la carte d’assurance annulation me sera délivrée numériquement. Je reçois ceci avec ma confirmation de réservation.","house.you_picked_arrival_date":"Votre date d'arrivée est","house.pick_your_departure_in_the_calendar":"Sélectionnez une date de départ","house.you_picked_departure_date":"Votre date de départ est","house.pick_your_arrivaldate_in_the_calendar":"Choisissez une date d'arrivée","group_accommodation.you_picked_arrival_date":"Votre date d'arrivée est","group_accommodation.pick_your_departure_in_the_calendar":"Sélectionnez une date de départ","group_accommodation.you_picked_departure_date":"Votre date de départ est","group_accommodation.pick_your_arrivaldate_in_the_calendar":"Choisissez une date d'arrivée","tent.you_picked_arrival_date":"Votre date d'arrivée est","tent.pick_your_departure_in_the_calendar":"Sélectionnez une date de départ","tent.you_picked_departure_date":"Votre date de départ est","tent.pick_your_arrivaldate_in_the_calendar":"Choisissez une date d'arrivée","camper.you_picked_arrival_date":"Votre date pick-up est","camper.pick_your_departure_in_the_calendar":"Sélectionnez une date de retour","camper.you_picked_departure_date":"Votre date de retour est","camper.pick_your_arrivaldate_in_the_calendar":"Choisissez une date de pick-up","boat.you_picked_arrival_date":"Your pickup date is","boat.pick_your_departure_in_the_calendar":"Select a return date","boat.you_picked_departure_date":"Your return date is","boat.pick_your_arrivaldate_in_the_calendar":"Choose a pickup date","bnb.you_picked_arrival_date":"Votre date d'arrivée est","bnb.pick_your_departure_in_the_calendar":"Sélectionnez une date de départ","bnb.you_picked_departure_date":"Votre date de départ est","bnb.pick_your_arrivaldate_in_the_calendar":"Choisissez une date d'arrivée","caravan.you_picked_arrival_date":"Votre date pick-up est","caravan.pick_your_departure_in_the_calendar":"Sélectionnez une date de retour","caravan.you_picked_departure_date":"Votre date de retour est","caravan.pick_your_arrivaldate_in_the_calendar":"Choisissez une date de pick-up","camper_spot.you_picked_arrival_date":"Votre date d'arrivée est","camper_spot.pick_your_departure_in_the_calendar":"Sélectionnez une date de départ","camper_spot.you_picked_departure_date":"Votre date de départ est","camper_spot.pick_your_arrivaldate_in_the_calendar":"Choisissez une date d'arrivée","camping_place.you_picked_arrival_date":"Votre date d'arrivée est","camping_place.pick_your_departure_in_the_calendar":"Sélectionnez une date de départ","camping_place.you_picked_departure_date":"Votre date de départ est","camping_place.pick_your_arrivaldate_in_the_calendar":"Choisissez une date d'arrivée","hotelroom.you_picked_arrival_date":"Votre date d'arrivée est","hotelroom.pick_your_departure_in_the_calendar":"Sélectionnez une date de départ","hotelroom.you_picked_departure_date":"Votre date de départ est","hotelroom.pick_your_arrivaldate_in_the_calendar":"Choisissez une date d'arrivée","house_boat.you_picked_arrival_date":"Votre date pick-up est","house_boat.pick_your_departure_in_the_calendar":"Sélectionnez une date de retour","house_boat.you_picked_departure_date":"Votre date de retour est","house_boat.pick_your_arrivaldate_in_the_calendar":"Choisissez une date de pick-up",no:"Non",minimum_nights:"Au moins {minimum} nuits",can_only_take_insurance_in_de_be_nl:"Vous ne pouvez souscrire une assurance que si vous résidez aux Pays-Bas, en Allemagne ou en Belgique.",price_from:"Le prix de",reviews:"Critiques",reviews_note_link:"Le système de réservation BUKAZU conserve des avis indépendants. Ces avis sont recueillis après que les clients ont séjourné dans le logement. La combinaison du numéro de réservation et de l'adresse électronique est vérifiée."},es:{next:"Siguiente",previous:"Anterior",view_details:"Ver detalles",price:"Precio",calculate:"Próximo",book:"Reservar",booked:"Reservado",booking:"Reserva",last_minute_discount:"Descuento de ultimo minuto",option:"Opción",choose_for_option:"Tome una opción para este período",included_in_price:"Incluido",rent_price:"Precio de alquiler",discount:"Reducción",extra_costs_included:"Costes extras incluidos",optional_costs:"Opciones extra",price_after_discount:"Precio de alquiler con descuento.",booking_from_til:"Fechas de reserva",total:"Total",stay_details:"Grupo de viaje",babies:"Numero de bebes",babies_from:"(hasta {babies} años)",adults:"Numero de adultos",adults_from:"(a partir de {age} años)","camper_spot.arrival_date":"Fecha de llegada","camper_spot.departure_date":"Fecha de salida","camper_spot.arrival":"Llegada","camper_spot.departure":"Salida","camping_place.arrival_date":"Fecha de llegada","camping_place.departure_date":"Fecha de salida","camping_place.arrival":"Llegada","camping_place.departure":"Salida","bnb.arrival_date":"Fecha de llegada","bnb.departure_date":"Fecha de salida","bnb.arrival":"Llegada","bnb.departure":"Salida","hotelroom.arrival_date":"Fecha de llegada","hotelroom.departure_date":"Fecha de salida","hotelroom.arrival":"Llegada","hotelroom.departure":"Salida",children:"Numero de niños",children_from:"(de {from} a {til} años)","house.arrival_date":"Fecha de llegada","house.departure_date":"Fecha de salida","house.arrival":"llegada","house.departure":"Salida","group_accommodation.arrival_date":"Fecha de llegada","group_accommodation.departure_date":"Fecha de salida","group_accommodation.arrival":"llegada","group_accommodation.departure":"Salida","tent.arrival_date":"Fecha de llegada","tent.departure_date":"Fecha de salida","tent.arrival":"llegada","tent.departure":"Salida",extra_costs_bookable:"Opciones extra",costs_on_site:"Costos adicionales en el lugar:",insurances:"Insurances",at_least_1_adult:"Elige al menos 1 adulto.",max_persons_reached:"Demasiadas personas han sido seleccionadas.",personal_details:"Tus datos",required:"Este campo es requerido.",cancel_insurance_all_risk:"All Risk",cancel_insurance_normal:"Standard",none:"None",cancel_insurance:"Cancellation insurance",insurance_costs:"Insurance Costs",choose:"Choose",yes:"Yes",booking_details:"Detalles de la reserva",based_on_one_person:"Basado en {persons} personas",return_to_calendar:"Volver al calendario",close:"Cerrar",cancel_insurance_normal_long:"Short-term Cancellation Insurance ",cancel_insurance_normal_desc:"If you booked a wonderful holiday, cancellation insurance should not be missing! Your booked holiday cannot continue, or you have to go home unexpectedly halfway through the holiday due to, for example, a severe illness. The cancellation insurance of RecreatieVerzekeringen is ideal because it applies before departure and during your holiday.",cancel_insurance_more_insured:"More are insured than you think.",cancel_insurance_more_insured_desc:"Did you know that you can rely on cancellation insurance during pregnancy, a new job, or divorce? Many people expect cancellation insurance to be valid only in the event of illness or death.",cancel_insurance_important:"Important",cancel_insurance_important_message:"For optimal cancellation insurance coverage, you must take it out within seven days after booking the holiday.",cancel_insurance_for_whom:"For whom?",cancel_insurance_for_whom_explain:"This insurance is for a maximum of 4 families or 9 travel companions (no family members).",cancel_insurance_questions:"Frequently Asked Questions",cancel_insurance_questions_explain_1:"Click ",cancel_insurance_questions_explain_link:"here",cancel_insurance_questions_explain_2:" to find the Frequently Asked Questions.",show_terms:"Show conditions",terms:"Terms",remark:"Observación","9persons_9addresses":"The Insurance will pay for up to 9 persons, who live at 9 different addresses,",or:"or","9persons_4addresses":"The insurance pays out for an unlimited number of people who live at a maximum of 4 different addresses.",poliscosts:"Policy fee",poliscosts_are:"The cost for an insurance policy is a one-time charge of € 6,95. No matter if you have one or two insuran",youwillrecieve:"You will receive the insurance terms separate from you booking confirmation per email. The insurance starts as soon as the (first) payment has been made.",thank_you_for_your_request:"Muchas gracias por su solicitud.",we_sent_confirmation_check_email:"Se ha enviado una copia de su solicitud a su dirección de correo electrónico. Si no ha recibido ningún correo de nuestra parte, es posible que esté en su buzón de correo no deseado.",something_went_wrong_please_try_again:"Vaya, algo salió mal, inténtalo de nuevo más tarde.",persons:"personas",bedrooms:"dormitorios",minimum_week_price:"min. precio semanal",no_results:"Sin resultados",agree_with:'Al hacer clic en "Reservar" se crea una obligación de pago cuando se acepta mi reserva. Acepto ',option_is_free:"Esta opción es gratuita",discount_reason:"Razón de descuento.",results:"resultados",bathrooms:"baños",you_need_to_give_reason:"Vous devez indiquer un motif de réduction valide","camper.arrival_date":"Fecha de recogida","camper.departure_date":"Fecha de regreso","camper.arrival":"Recoger","camper.departure":"Entregar","boat.arrival_date":"Fecha de recogida","boat.departure_date":"Fecha de regreso","boat.arrival":"Recoger","boat.departure":"Entregar","caravan.arrival_date":"Fecha de llegada","caravan.departure_date":"Fecha de salida","caravan.arrival":"llegada","caravan.departure":"Salida",filters:"Filtros",comply_insurance_card:"Estoy de acuerdo en que la tarjeta de seguro de cancelación será emitida digitalmente para mí. Recibo esto con mi confirmación de reserva.","house.you_picked_arrival_date":"Su fecha de llegada es","house.pick_your_departure_in_the_calendar":"Seleccione una fecha de salida","house.you_picked_departure_date":"Su fecha de salida es","house.pick_your_arrivaldate_in_the_calendar":"Elija una fecha de llegada","group_accommodation.you_picked_arrival_date":"Su fecha de llegada es","group_accommodation.pick_your_departure_in_the_calendar":"Seleccione una fecha de salida","group_accommodation.you_picked_departure_date":"Su fecha de salida es","group_accommodation.pick_your_arrivaldate_in_the_calendar":"Elija una fecha de llegada","tent.you_picked_arrival_date":"Su fecha de llegada es","tent.pick_your_departure_in_the_calendar":"Seleccione una fecha de salida","tent.you_picked_departure_date":"Su fecha de salida es","tent.pick_your_arrivaldate_in_the_calendar":"Elija una fecha de llegada","camper.you_picked_arrival_date":"Su fecha de recogida es","camper.pick_your_departure_in_the_calendar":"Seleccione una fecha de regreso","camper.you_picked_departure_date":"Su fecha de retorno es","camper.pick_your_arrivaldate_in_the_calendar":"Elija una fecha de recogida","boat.you_picked_arrival_date":"Your pickup date is","boat.pick_your_departure_in_the_calendar":"Select a return date","boat.you_picked_departure_date":"Your return date is","boat.pick_your_arrivaldate_in_the_calendar":"Choose a pickup date","bnb.you_picked_arrival_date":"Su fecha de llegada es","bnb.pick_your_departure_in_the_calendar":"Seleccione una fecha de salida","bnb.you_picked_departure_date":"Su fecha de salida es","bnb.pick_your_arrivaldate_in_the_calendar":"Elija una fecha de llegada","caravan.you_picked_arrival_date":"Su fecha de recogida es","caravan.pick_your_departure_in_the_calendar":"Seleccione una fecha de regreso","caravan.you_picked_departure_date":"Su fecha de retorno es","caravan.pick_your_arrivaldate_in_the_calendar":"Elija una fecha de recogida","camper_spot.you_picked_arrival_date":"Su fecha de llegada es","camper_spot.pick_your_departure_in_the_calendar":"Seleccione una fecha de salida","camper_spot.you_picked_departure_date":"Su fecha de salida es","camper_spot.pick_your_arrivaldate_in_the_calendar":"Elija una fecha de llegada","camping_place.you_picked_arrival_date":"Su fecha de llegada es","camping_place.pick_your_departure_in_the_calendar":"Seleccione una fecha de salida","camping_place.you_picked_departure_date":"Su fecha de salida es","camping_place.pick_your_arrivaldate_in_the_calendar":"Elija una fecha de llegada","hotelroom.you_picked_arrival_date":"Su fecha de llegada es","hotelroom.pick_your_departure_in_the_calendar":"Seleccione una fecha de salida","hotelroom.you_picked_departure_date":"Su fecha de salida es","hotelroom.pick_your_arrivaldate_in_the_calendar":"Elija una fecha de llegada","house_boat.you_picked_arrival_date":"Su fecha de recogida es","house_boat.pick_your_departure_in_the_calendar":"Seleccione una fecha de regreso","house_boat.you_picked_departure_date":"Su fecha de retorno es","house_boat.pick_your_arrivaldate_in_the_calendar":"Elija una fecha de recogida",no:"No",minimum_nights:"Al menos {minimum} noches",can_only_take_insurance_in_de_be_nl:"Solo puede contratar un seguro si vive en los Países Bajos, Alemania o Bélgica.",price_from:"Precio de",reviews:"Comentarios",reviews_note_link:"BUKAZU Booking System mantiene opiniones independientes. Estas opiniones se recogen después de la estancia de los huéspedes en el alojamiento. Se verifica la combinación del número de reserva y la dirección de correo electrónico."},it:{next:"Prossimo",previous:"Precedente",view_details:"Visualizza dettagli",price:"Prezzo",calculate:"Prossimo",book:"Prenotare",booked:"Prenotato",booking:"Prenotazione",last_minute_discount:"Sconto last minute",option:"Opzione",choose_for_option:"Prendi un'opzione per questo periodo",included_in_price:"compreso",rent_price:"Prezzo di affitto",discount:"Riduzione",extra_costs_included:"Costi aggiuntivi inclusi",optional_costs:"Opzioni extra",price_after_discount:"Prezzo di affitto incluso sconto",booking_from_til:"Date di prenotazione",total:"Total",stay_details:"Gruppo di viaggio",babies:"Numero di bambini",babies_from:"(fino a {babies} anni)",adults:"Numero di adulti",adults_from:"(dai {age} anni)","camper_spot.arrival_date":"Data di arrivo","camper_spot.departure_date":"Data di partenza","camper_spot.arrival":"Arrivo","camper_spot.departure":"Partenza","camping_place.arrival_date":"Data di arrivo","camping_place.departure_date":"Data di partenza","camping_place.arrival":"Arrivo","camping_place.departure":"Partenza","bnb.arrival_date":"Data di arrivo","bnb.departure_date":"Data di partenza","bnb.arrival":"Arrivo","bnb.departure":"Partenza","hotelroom.arrival_date":"Data di arrivo","hotelroom.departure_date":"Data di partenza","hotelroom.arrival":"Arrivo","hotelroom.departure":"Partenza",children:"Numero di bambini",children_from:"(da {from} a {til} anni)","house.arrival_date":"Data di arrivo","house.departure_date":"Data di partenza","house.arrival":"Arrivo","house.departure":"Partenza","tent.arrival_date":"Data di arrivo","tent.departure_date":"Data di partenza","tent.arrival":"Arrivo","tent.departure":"Partenza",extra_costs_bookable:"Opzioni extra",costs_on_site:"Possibili costi aggiuntivi sul posto:",insurances:"Insurances",at_least_1_adult:"Scegli almeno 1 adulto.",max_persons_reached:"Sono state selezionate troppe persone.",personal_details:"I tuoi dati",required:"Questo campo è obbligatorio.",cancel_insurance_all_risk:"All Risk",cancel_insurance_normal:"Standard",none:"None",cancel_insurance:"Cancellation insurance",insurance_costs:"Insurance Costs",choose:"Choose",yes:"Yes",booking_details:"Dettagli della prenotazione",based_on_one_person:"Basato su {persons} persone",return_to_calendar:"Ritorna al calendario",close:"Vicino",cancel_insurance_normal_long:"Short-term Cancellation Insurance ",cancel_insurance_normal_desc:"If you booked a wonderful holiday, cancellation insurance should not be missing! Your booked holiday cannot continue, or you have to go home unexpectedly halfway through the holiday due to, for example, a severe illness. The cancellation insurance of RecreatieVerzekeringen is ideal because it applies before departure and during your holiday.",cancel_insurance_more_insured:"More are insured than you think.",cancel_insurance_more_insured_desc:"Did you know that you can rely on cancellation insurance during pregnancy, a new job, or divorce? Many people expect cancellation insurance to be valid only in the event of illness or death.",cancel_insurance_important:"Important",cancel_insurance_important_message:"For optimal cancellation insurance coverage, you must take it out within seven days after booking the holiday.",cancel_insurance_for_whom:"For whom?",cancel_insurance_for_whom_explain:"This insurance is for a maximum of 4 families or 9 travel companions (no family members).",cancel_insurance_questions:"Frequently Asked Questions",cancel_insurance_questions_explain_1:"Click ",cancel_insurance_questions_explain_link:"here",cancel_insurance_questions_explain_2:" to find the Frequently Asked Questions.",show_terms:"Show conditions",terms:"Terms",remark:"Osservazione","9persons_9addresses":"The Insurance will pay for up to 9 persons, who live at 9 different addresses,",or:"or","9persons_4addresses":"The insurance pays out for an unlimited number of people who live at a maximum of 4 different addresses.",poliscosts:"Policy fee",poliscosts_are:"The cost for an insurance policy is a one-time charge of € 6,95. No matter if you have one or two insuran",youwillrecieve:"You will receive the insurance terms separate from you booking confirmation per email. The insurance starts as soon as the (first) payment has been made.",thank_you_for_your_request:"Grazie mille per la tua richiesta.",we_sent_confirmation_check_email:"Una copia della tua richiesta è stata inviata al tuo indirizzo e-mail. Se non hai ricevuto alcuna posta da noi, potrebbe essere che sia nella tua casella di spam.",something_went_wrong_please_try_again:"Oops, qualcosa è andato storto, ti preghiamo di riprovare più tardi.",persons:"persone",bedrooms:"camere da letto",minimum_week_price:"prezzo settimanale minimo",no_results:"Nessun risultato",agree_with:'Facendo clic su "Prenota" si crea un obbligo di pagamento quando la mia prenotazione viene accettata. Accetto i termini e le ',option_is_free:" L'opzione è gratuita e senza impegno",discount_reason:"Sconto di ragione.",results:"risultati",bathrooms:"bagni",you_need_to_give_reason:"Devi indicare un motivo di sconto valido","camper.arrival_date":"Data di ritiro","camper.departure_date":"Data di ritorno","camper.arrival":"Pick up","camper.departure":"Mano dentro","boat.arrival_date":"Data di ritiro","boat.departure_date":"Data di ritorno","boat.arrival":"Pick up","boat.departure":"Mano dentro","caravan.arrival_date":"Data di arrivo","caravan.departure_date":"Data di partenza","caravan.arrival":"Arrivo","caravan.departure":"Partenza",filters:"Filtri",comply_insurance_card:"Sono d'accordo che la carta di assicurazione di annullamento verrà emessa in digitale. Lo ricevo con la mia conferma di prenotazione.","house.you_picked_arrival_date":"La vostra data di arrivo è","house.pick_your_departure_in_the_calendar":"Selezionare una data di partenza","house.you_picked_departure_date":"La data di partenza è","house.pick_your_arrivaldate_in_the_calendar":"Scegliere una data di arrivo","group_accommodation.you_picked_arrival_date":"La vostra data di arrivo è","group_accommodation.pick_your_departure_in_the_calendar":"Selezionare una data di partenza","group_accommodation.you_picked_departure_date":"La data di partenza è","group_accommodation.pick_your_arrivaldate_in_the_calendar":"Scegliere una data di arrivo","tent.you_picked_arrival_date":"La vostra data di arrivo è","tent.pick_your_departure_in_the_calendar":"Selezionare una data di partenza","tent.you_picked_departure_date":"La data di partenza è","tent.pick_your_arrivaldate_in_the_calendar":"Scegliere una data di arrivo","camper.you_picked_arrival_date":"La vostra data di ritiro è","camper.pick_your_departure_in_the_calendar":"Seleziona una data di ritorno","camper.you_picked_departure_date":"La data di ritorno è","camper.pick_your_arrivaldate_in_the_calendar":"Scegli una data di ritiro","boat.you_picked_arrival_date":"Your pickup date is","boat.pick_your_departure_in_the_calendar":"Select a return date","boat.you_picked_departure_date":"Your return date is","boat.pick_your_arrivaldate_in_the_calendar":"Choose a pickup date","bnb.you_picked_arrival_date":"La vostra data di arrivo è","bnb.pick_your_departure_in_the_calendar":"Selezionare una data di partenza","bnb.you_picked_departure_date":"La data di partenza è","bnb.pick_your_arrivaldate_in_the_calendar":"Scegliere una data di arrivo","caravan.you_picked_arrival_date":"La vostra data di ritiro è","caravan.pick_your_departure_in_the_calendar":"Seleziona una data di ritorno","caravan.you_picked_departure_date":"La data di ritorno è","caravan.pick_your_arrivaldate_in_the_calendar":"Scegli una data di ritiro","camper_spot.you_picked_arrival_date":"La vostra data di arrivo è","camper_spot.pick_your_departure_in_the_calendar":"Selezionare una data di partenza","camper_spot.you_picked_departure_date":"La data di partenza è","camper_spot.pick_your_arrivaldate_in_the_calendar":"Scegliere una data di arrivo","camping_place.you_picked_arrival_date":"La vostra data di arrivo è","camping_place.pick_your_departure_in_the_calendar":"Selezionare una data di partenza","camping_place.you_picked_departure_date":"La data di partenza è","camping_place.pick_your_arrivaldate_in_the_calendar":"Scegliere una data di arrivo","hotelroom.you_picked_arrival_date":"La vostra data di arrivo è","hotelroom.pick_your_departure_in_the_calendar":"Selezionare una data di partenza","hotelroom.you_picked_departure_date":"La data di partenza è","hotelroom.pick_your_arrivaldate_in_the_calendar":"Scegliere una data di arrivo","house_boat.you_picked_arrival_date":"La vostra data di ritiro è","house_boat.pick_your_departure_in_the_calendar":"Seleziona una data di ritorno","house_boat.you_picked_departure_date":"La data di ritorno è","house_boat.pick_your_arrivaldate_in_the_calendar":"Scegli una data di ritiro",no:"No",minimum_nights:"Almeno {minimum} notti",can_only_take_insurance_in_de_be_nl:"Puoi stipulare un'assicurazione solo se vivi nei Paesi Bassi, in Germania o in Belgio.",price_from:"Prezzo da",reviews:"Recensioni",reviews_note_link:"Il sistema di prenotazione BUKAZU mantiene recensioni indipendenti. Queste recensioni vengono raccolte dopo il soggiorno degli ospiti nella struttura. Viene verificata la combinazione di numero di prenotazione e indirizzo e-mail."}};function nc(e,t){const r="undefined"!=typeof window&&window.__localeId__||"en";let n=(rc[r]||rc.en)[e]||e;return t&&Object.entries(t).forEach(([e,t])=>{n=n.replace(new RegExp(`\\{${e}\\}`,"g"),String(t))}),n}function ic(e,t){const r="undefined"!=typeof window&&window.__localeId__||"en";return new Intl.NumberFormat(r,t).format(e)}function ac({filters:e,onFilterChange:r,PortalSite:n,options:i}){function a(t,n){let i=e;i[t]=n,r(i)}const[o,s]=t(!1),c=i.searchFields||Qs;let u=i.filtersForm&&i.filtersForm.fixedMobile?"fixed-mobile":null,l=i.filtersForm?i.filtersForm.show?`filters filters-${i.filtersForm.location}`:"filters-hidden":"filters",d=o&&"showOnMobile";/* @__PURE__ */
536
536
  return E.jsxs(E.Fragment,{children:[
537
- /* @__PURE__ */E.jsx("button",{className:`filters-button ${u}`,onClick:()=>s(!o),children:rc("filters")}),
537
+ /* @__PURE__ */E.jsx("button",{className:`filters-button ${u}`,onClick:()=>s(!o),children:nc("filters")}),
538
538
  /* @__PURE__ */E.jsxs("div",{className:`${l} ${u} ${d}`,children:[
539
- /* @__PURE__ */E.jsx("button",{onClick:()=>{let e={};for(var t in e)e[t]="";r(e)},className:"filters-reload",children:/* @__PURE__ */E.jsx(Js,{})}),c.map(t=>/* @__PURE__ */E.jsxs("div",{className:"bu-field",id:t.id,children:[
539
+ /* @__PURE__ */E.jsx("button",{onClick:()=>{let e={};for(var t in e)e[t]="";r(e)},className:"filters-reload",children:/* @__PURE__ */E.jsx(Xs,{})}),c.map(t=>/* @__PURE__ */E.jsxs("div",{className:"bu-field",id:t.id,children:[
540
540
  /* @__PURE__ */E.jsx("label",{style:{width:"100%",display:"block"},htmlFor:t.id,children:n[`${t.id}_label`]}),
541
- /* @__PURE__ */E.jsx(Gs,{field:t,PortalSite:n,filters:e,value:e[t.id],onFilterChange:a})]},t.id))]})]})}const ac=6048e5,oc=/* @__PURE__ */Symbol.for("constructDateFrom");function sc(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&oc in e?e[oc](t):e instanceof Date?new e.constructor(t):new Date(t)}function cc(e,t){return sc(t||e,e)}function uc(e,t,r){const n=cc(e,r?.in);return isNaN(t)?sc(r?.in||e,NaN):t?(n.setDate(n.getDate()+t),n):n}function lc(e,t,r){const n=cc(e,r?.in);if(isNaN(t))return sc(e,NaN);if(!t)return n;const i=n.getDate(),a=sc(e,n.getTime());a.setMonth(n.getMonth()+t+1,0);return i>=a.getDate()?a:(n.setFullYear(a.getFullYear(),a.getMonth(),i),n)}let dc={};function pc(){return dc}function hc(e,t){const r=pc(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=cc(e,t?.in),a=i.getDay(),o=(a<n?7:0)+a-n;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function fc(e,t){return hc(e,{...t,weekStartsOn:1})}function mc(e,t){const r=cc(e,t?.in),n=r.getFullYear(),i=sc(r,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);const a=fc(i),o=sc(r,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const s=fc(o);return r.getTime()>=a.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function _c(e){const t=cc(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function vc(e,...t){const r=sc.bind(null,e||t.find(e=>"object"==typeof e));return t.map(r)}function yc(e,t){const r=cc(e,t?.in);return r.setHours(0,0,0,0),r}function gc(e,t,r){const[n,i]=vc(r?.in,e,t),a=yc(n),o=yc(i),s=+a-_c(a),c=+o-_c(o);return Math.round((s-c)/864e5)}function bc(e,t,r){const[n,i]=vc(r?.in,e,t);return+yc(n)===+yc(i)}function kc(e){return!(!((t=e)instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))&&"number"!=typeof e||isNaN(+cc(e)));var t}function wc(e,t){const r=cc(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function xc(e,t){const r=cc(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function Sc(e,t){const r=pc(),n=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=cc(e,t?.in),a=i.getDay(),o=6+(a<n?-7:0)-(a-n);return i.setDate(i.getDate()+o),i.setHours(23,59,59,999),i}const Ec={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},jc=(e,t,r)=>{let n;const i=Ec[e];return n="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Oc(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Tc={date:Oc({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Oc({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Oc({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Dc={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Nc=(e,t,r,n)=>Dc[e];function Ic(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,i=r?.width?String(r.width):t;n=e.formattingValues[i]||e.formattingValues[t]}else{const t=e.defaultWidth,i=r?.width?String(r.width):e.defaultWidth;n=e.values[i]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}const Ac={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:Ic({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Ic({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ic({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Ic({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Ic({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Cc(e){return(t,r={})=>{const n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r;return}(s,e=>e.test(o)):function(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r;return}(s,e=>e.test(o));let u;u=e.valueCallback?e.valueCallback(c):c,u=r.valueCallback?r.valueCallback(u):u;return{value:u,rest:t.slice(o.length)}}}function Pc(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const i=n[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=r.valueCallback?r.valueCallback(o):o;return{value:o,rest:t.slice(i.length)}}}const Fc={ordinalNumber:Pc({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:Cc({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Cc({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:Cc({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Cc({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Cc({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},Rc={code:"en-US",formatDistance:jc,formatLong:Tc,formatRelative:Nc,localize:Ac,match:Fc,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Mc(e,t){const r=cc(e,t?.in),n=gc(r,function(e,t){const r=cc(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}(r));return n+1}function $c(e,t){const r=cc(e,t?.in),n=+fc(r)-+function(e,t){const r=mc(e,t),n=sc(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),fc(n)}(r);return Math.round(n/ac)+1}function Lc(e,t){const r=cc(e,t?.in),n=r.getFullYear(),i=pc(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=sc(t?.in||e,0);o.setFullYear(n+1,0,a),o.setHours(0,0,0,0);const s=hc(o,t),c=sc(t?.in||e,0);c.setFullYear(n,0,a),c.setHours(0,0,0,0);const u=hc(c,t);return+r>=+s?n+1:+r>=+u?n:n-1}function qc(e,t){const r=cc(e,t?.in),n=+hc(r,t)-+function(e,t){const r=pc(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=Lc(e,t),a=sc(t?.in||e,0);return a.setFullYear(i,0,n),a.setHours(0,0,0,0),hc(a,t)}(r,t);return Math.round(n/ac)+1}function zc(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Vc={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return zc("yy"===t?n%100:n,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):zc(r+1,2)},d:(e,t)=>zc(e.getDate(),t.length),a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>zc(e.getHours()%12||12,t.length),H:(e,t)=>zc(e.getHours(),t.length),m:(e,t)=>zc(e.getMinutes(),t.length),s:(e,t)=>zc(e.getSeconds(),t.length),S(e,t){const r=t.length,n=e.getMilliseconds();return zc(Math.trunc(n*Math.pow(10,r-3)),t.length)}},Bc="midnight",Uc="noon",Qc="morning",Wc="afternoon",Yc="evening",Kc="night",Hc={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){const t=e.getFullYear(),n=t>0?t:1-t;return r.ordinalNumber(n,{unit:"year"})}return Vc.y(e,t)},Y:function(e,t,r,n){const i=Lc(e,n),a=i>0?i:1-i;if("YY"===t){return zc(a%100,2)}return"Yo"===t?r.ordinalNumber(a,{unit:"year"}):zc(a,t.length)},R:function(e,t){return zc(mc(e),t.length)},u:function(e,t){return zc(e.getFullYear(),t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return zc(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return zc(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return Vc.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return zc(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const i=qc(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):zc(i,t.length)},I:function(e,t,r){const n=$c(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):zc(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):Vc.d(e,t)},D:function(e,t,r){const n=Mc(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):zc(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const i=e.getDay(),a=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return zc(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const i=e.getDay(),a=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return zc(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return zc(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let i;switch(i=12===n?Uc:0===n?Bc:n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let i;switch(i=n>=17?Yc:n>=12?Wc:n>=4?Qc:Kc,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return Vc.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):Vc.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):zc(n,t.length)},k:function(e,t,r){let n=e.getHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):zc(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Vc.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Vc.s(e,t)},S:function(e,t){return Vc.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return Jc(n);case"XXXX":case"XX":return Xc(n);default:return Xc(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return Jc(n);case"xxxx":case"xx":return Xc(n);default:return Xc(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Gc(n,":");default:return"GMT"+Xc(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Gc(n,":");default:return"GMT"+Xc(n,":")}},t:function(e,t,r){return zc(Math.trunc(+e/1e3),t.length)},T:function(e,t,r){return zc(+e,t.length)}};function Gc(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=Math.trunc(n/60),a=n%60;return 0===a?r+String(i):r+String(i)+t+zc(a,2)}function Jc(e,t){if(e%60==0){return(e>0?"-":"+")+zc(Math.abs(e)/60,2)}return Xc(e,t)}function Xc(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+zc(Math.trunc(n/60),2)+t+zc(n%60,2)}const Zc=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},eu=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},tu={p:eu,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return Zc(e,t);let a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",Zc(n,t)).replace("{{time}}",eu(i,t))}},ru=/^D+$/,nu=/^Y+$/,iu=["D","DD","YY","YYYY"];function au(e){return ru.test(e)}function ou(e){return nu.test(e)}function su(e,t,r){const n=function(e,t,r){const n="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(iu.includes(e))throw new RangeError(n)}const cu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,uu=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,lu=/^'([^]*?)'?$/,du=/''/g,pu=/[a-zA-Z]/;function hu(e,t,r){const n=pc(),i=r?.locale??n.locale??Rc,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=cc(e,r?.in);if(!kc(s))throw new RangeError("Invalid time value");let c=t.match(uu).map(e=>{const t=e[0];if("p"===t||"P"===t){return(0,tu[t])(e,i.formatLong)}return e}).join("").match(cu).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:fu(e)};if(Hc[t])return{isToken:!0,value:e};if(t.match(pu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));const u={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(n=>{if(!n.isToken)return n.value;const a=n.value;(!r?.useAdditionalWeekYearTokens&&ou(a)||!r?.useAdditionalDayOfYearTokens&&au(a))&&su(a,t,String(e));return(0,Hc[a[0]])(s,a,i.localize,u)}).join("")}function fu(e){const t=e.match(lu);return t?t[1].replace(du,"'"):e}function mu(e,t){return+cc(e)>+cc(t)}function _u(e,t){return+cc(e)<+cc(t)}class vu{subPriority=0;validate(e,t){return!0}}class yu extends vu{constructor(e,t,r,n,i){super(),this.value=e,this.validateValue=t,this.setValue=r,this.priority=n,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,r){return this.setValue(e,t,this.value,r)}}class gu extends vu{priority=10;subPriority=-1;constructor(e,t){super(),this.context=e||(e=>sc(t,e))}set(e,t){return t.timestampIsSet?e:sc(e,function(e,t){const r=function(e){return"function"==typeof e&&e.prototype?.constructor===e}(t)?new t(0):sc(t,0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),r.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),r}(e,this.context))}}class bu{run(e,t,r,n){const i=this.parse(e,t,r,n);return i?{setter:new yu(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,r){return!0}}const ku=/^(1[0-2]|0?\d)/,wu=/^(3[0-1]|[0-2]?\d)/,xu=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Su=/^(5[0-3]|[0-4]?\d)/,Eu=/^(2[0-3]|[0-1]?\d)/,ju=/^(2[0-4]|[0-1]?\d)/,Ou=/^(1[0-1]|0?\d)/,Tu=/^(1[0-2]|0?\d)/,Du=/^[0-5]?\d/,Nu=/^[0-5]?\d/,Iu=/^\d/,Au=/^\d{1,2}/,Cu=/^\d{1,3}/,Pu=/^\d{1,4}/,Fu=/^-?\d+/,Ru=/^-?\d/,Mu=/^-?\d{1,2}/,$u=/^-?\d{1,3}/,Lu=/^-?\d{1,4}/,qu=/^([+-])(\d{2})(\d{2})?|Z/,zu=/^([+-])(\d{2})(\d{2})|Z/,Vu=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Bu=/^([+-])(\d{2}):(\d{2})|Z/,Uu=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Qu(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Wu(e,t){const r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function Yu(e,t){const r=t.match(e);if(!r)return null;if("Z"===r[0])return{value:0,rest:t.slice(1)};return{value:("+"===r[1]?1:-1)*(36e5*(r[2]?parseInt(r[2],10):0)+6e4*(r[3]?parseInt(r[3],10):0)+1e3*(r[5]?parseInt(r[5],10):0)),rest:t.slice(r[0].length)}}function Ku(e){return Wu(Fu,e)}function Hu(e,t){switch(e){case 1:return Wu(Iu,t);case 2:return Wu(Au,t);case 3:return Wu(Cu,t);case 4:return Wu(Pu,t);default:return Wu(new RegExp("^\\d{1,"+e+"}"),t)}}function Gu(e,t){switch(e){case 1:return Wu(Ru,t);case 2:return Wu(Mu,t);case 3:return Wu($u,t);case 4:return Wu(Lu,t);default:return Wu(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Ju(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Xu(e,t){const r=t>0,n=r?t:1-t;let i;if(n<=50)i=e||100;else{const t=n+50;i=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return r?i:1-i}function Zu(e){return e%400==0||e%4==0&&e%100!=0}const el=[31,28,31,30,31,30,31,31,30,31,30,31],tl=[31,29,31,30,31,30,31,31,30,31,30,31];function rl(e,t,r){const n=pc(),i=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=cc(e,r?.in),o=a.getDay(),s=7-i;return uc(a,t<0||t>6?t-(o+s)%7:((t%7+7)%7+s)%7-(o+s)%7,r)}function nl(e,t,r){const n=cc(e,r?.in),i=function(e,t){const r=cc(e,t?.in).getDay();return 0===r?7:r}(n,r);return uc(n,t-i,r)}const il={G:new class extends bu{priority=140;parse(e,t,r){switch(t){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}set(e,t,r){return t.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]},y:new class extends bu{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,r){const n=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return Qu(Hu(4,e),n);case"yo":return Qu(r.ordinalNumber(e,{unit:"year"}),n);default:return Qu(Hu(t.length,e),n)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r){const n=e.getFullYear();if(r.isTwoDigitYear){const t=Xu(r.year,n);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const i="era"in t&&1!==t.era?1-r.year:r.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}},Y:new class extends bu{priority=130;parse(e,t,r){const n=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return Qu(Hu(4,e),n);case"Yo":return Qu(r.ordinalNumber(e,{unit:"year"}),n);default:return Qu(Hu(t.length,e),n)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r,n){const i=Lc(e,n);if(r.isTwoDigitYear){const t=Xu(r.year,i);return e.setFullYear(t,0,n.firstWeekContainsDate),e.setHours(0,0,0,0),hc(e,n)}const a="era"in t&&1!==t.era?1-r.year:r.year;return e.setFullYear(a,0,n.firstWeekContainsDate),e.setHours(0,0,0,0),hc(e,n)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends bu{priority=130;parse(e,t){return Gu("R"===t?4:t.length,e)}set(e,t,r){const n=sc(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),fc(n)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends bu{priority=130;parse(e,t){return Gu("u"===t?4:t.length,e)}set(e,t,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends bu{priority=120;parse(e,t,r){switch(t){case"Q":case"QQ":return Hu(t.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth(3*(r-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends bu{priority=120;parse(e,t,r){switch(t){case"q":case"qq":return Hu(t.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth(3*(r-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends bu{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,r){const n=e=>e-1;switch(t){case"M":return Qu(Wu(ku,e),n);case"MM":return Qu(Hu(2,e),n);case"Mo":return Qu(r.ordinalNumber(e,{unit:"month"}),n);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}},L:new class extends bu{priority=110;parse(e,t,r){const n=e=>e-1;switch(t){case"L":return Qu(Wu(ku,e),n);case"LL":return Qu(Hu(2,e),n);case"Lo":return Qu(r.ordinalNumber(e,{unit:"month"}),n);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends bu{priority=100;parse(e,t,r){switch(t){case"w":return Wu(Su,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return Hu(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r,n){return hc(function(e,t,r){const n=cc(e,r?.in),i=qc(n,r)-t;return n.setDate(n.getDate()-7*i),cc(n,r?.in)}(e,r,n),n)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends bu{priority=100;parse(e,t,r){switch(t){case"I":return Wu(Su,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return Hu(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r){return fc(function(e,t,r){const n=cc(e,r?.in),i=$c(n,r)-t;return n.setDate(n.getDate()-7*i),n}(e,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends bu{priority=90;subPriority=1;parse(e,t,r){switch(t){case"d":return Wu(wu,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return Hu(t.length,e)}}validate(e,t){const r=Zu(e.getFullYear()),n=e.getMonth();return r?t>=1&&t<=tl[n]:t>=1&&t<=el[n]}set(e,t,r){return e.setDate(r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends bu{priority=90;subpriority=1;parse(e,t,r){switch(t){case"D":case"DD":return Wu(xu,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return Hu(t.length,e)}}validate(e,t){return Zu(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends bu{priority=90;parse(e,t,r){switch(t){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,n){return(e=rl(e,r,n)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends bu{priority=90;parse(e,t,r,n){const i=e=>{const t=7*Math.floor((e-1)/7);return(e+n.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return Qu(Hu(t.length,e),i);case"eo":return Qu(r.ordinalNumber(e,{unit:"day"}),i);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,n){return(e=rl(e,r,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends bu{priority=90;parse(e,t,r,n){const i=e=>{const t=7*Math.floor((e-1)/7);return(e+n.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return Qu(Hu(t.length,e),i);case"co":return Qu(r.ordinalNumber(e,{unit:"day"}),i);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,n){return(e=rl(e,r,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends bu{priority=90;parse(e,t,r){const n=e=>0===e?7:e;switch(t){case"i":case"ii":return Hu(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return Qu(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n);case"iiiii":return Qu(r.day(e,{width:"narrow",context:"formatting"}),n);case"iiiiii":return Qu(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n);default:return Qu(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n)}}validate(e,t){return t>=1&&t<=7}set(e,t,r){return(e=nl(e,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends bu{priority=80;parse(e,t,r){switch(t){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(Ju(r),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends bu{priority=80;parse(e,t,r){switch(t){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(Ju(r),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends bu{priority=80;parse(e,t,r){switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(Ju(r),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends bu{priority=70;parse(e,t,r){switch(t){case"h":return Wu(Tu,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return Hu(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,r){const n=e.getHours()>=12;return n&&r<12?e.setHours(r+12,0,0,0):n||12!==r?e.setHours(r,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]},H:new class extends bu{priority=70;parse(e,t,r){switch(t){case"H":return Wu(Eu,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return Hu(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,r){return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends bu{priority=70;parse(e,t,r){switch(t){case"K":return Wu(Ou,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return Hu(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]},k:new class extends bu{priority=70;parse(e,t,r){switch(t){case"k":return Wu(ju,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return Hu(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,r){const n=r<=24?r%24:r;return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends bu{priority=60;parse(e,t,r){switch(t){case"m":return Wu(Du,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return Hu(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setMinutes(r,0,0),e}incompatibleTokens=["t","T"]},s:new class extends bu{priority=50;parse(e,t,r){switch(t){case"s":return Wu(Nu,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return Hu(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setSeconds(r,0),e}incompatibleTokens=["t","T"]},S:new class extends bu{priority=30;parse(e,t){return Qu(Hu(t.length,e),e=>Math.trunc(e*Math.pow(10,3-t.length)))}set(e,t,r){return e.setMilliseconds(r),e}incompatibleTokens=["t","T"]},X:new class extends bu{priority=10;parse(e,t){switch(t){case"X":return Yu(qu,e);case"XX":return Yu(zu,e);case"XXXX":return Yu(Vu,e);case"XXXXX":return Yu(Uu,e);default:return Yu(Bu,e)}}set(e,t,r){return t.timestampIsSet?e:sc(e,e.getTime()-_c(e)-r)}incompatibleTokens=["t","T","x"]},x:new class extends bu{priority=10;parse(e,t){switch(t){case"x":return Yu(qu,e);case"xx":return Yu(zu,e);case"xxxx":return Yu(Vu,e);case"xxxxx":return Yu(Uu,e);default:return Yu(Bu,e)}}set(e,t,r){return t.timestampIsSet?e:sc(e,e.getTime()-_c(e)-r)}incompatibleTokens=["t","T","X"]},t:new class extends bu{priority=40;parse(e){return Ku(e)}set(e,t,r){return[sc(e,1e3*r),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends bu{priority=20;parse(e){return Ku(e)}set(e,t,r){return[sc(e,r),{timestampIsSet:!0}]}incompatibleTokens="*"}},al=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ol=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,sl=/^'([^]*?)'?$/,cl=/''/g,ul=/\S/,ll=/[a-zA-Z]/;function dl(e,t,r,n){const i=()=>sc(r,NaN),a=Object.assign({},pc()),o=a.locale??Rc,s={firstWeekContainsDate:a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,weekStartsOn:a.weekStartsOn??a.locale?.options?.weekStartsOn??0,locale:o},c=[new gu(n?.in,r)],u=t.match(ol).map(e=>{const t=e[0];if(t in tu){return(0,tu[t])(e,o.formatLong)}return e}).join("").match(al),l=[];for(let f of u){ou(f)&&su(f,t,e),au(f)&&su(f,t,e);const r=f[0],n=il[r];if(n){const{incompatibleTokens:t}=n;if(Array.isArray(t)){const e=l.find(e=>t.includes(e.token)||e.token===r);if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${f}\` at the same time`)}else if("*"===n.incompatibleTokens&&l.length>0)throw new RangeError(`The format string mustn't contain \`${f}\` and any other token at the same time`);l.push({token:r,fullToken:f});const a=n.run(e,f,o.match,s);if(!a)return i();c.push(a.setter),e=a.rest}else{if(r.match(ll))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");if("''"===f?f="'":"'"===r&&(f=pl(f)),0!==e.indexOf(f))return i();e=e.slice(f.length)}}if(e.length>0&&ul.test(e))return i();const d=c.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,r)=>r.indexOf(e)===t).map(e=>c.filter(t=>t.priority===e).sort((e,t)=>t.subPriority-e.subPriority)).map(e=>e[0]);let p=cc(r,n?.in);if(isNaN(+p))return i();const h={};for(const f of d){if(!f.validate(p,s))return i();const e=f.set(p,h,s);Array.isArray(e)?(p=e[0],Object.assign(h,e[1])):p=e}return p}function pl(e){return e.match(sl)[1].replace(cl,"'")}function hl(e,t,r){return uc(e,-1,r)}function fl(e,t,r){return function(e,t,r){return lc(e,12*t,r)}(e,-18,r)}function ml({result:e,options:t}){let r=t||{};/* @__PURE__ */
541
+ /* @__PURE__ */E.jsx(Js,{field:t,PortalSite:n,filters:e,value:e[t.id],onFilterChange:a})]},t.id))]})]})}const oc=6048e5,sc=/* @__PURE__ */Symbol.for("constructDateFrom");function cc(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&sc in e?e[sc](t):e instanceof Date?new e.constructor(t):new Date(t)}function uc(e,t){return cc(t||e,e)}function lc(e,t,r){const n=uc(e,r?.in);return isNaN(t)?cc(r?.in||e,NaN):t?(n.setDate(n.getDate()+t),n):n}function dc(e,t,r){const n=uc(e,r?.in);if(isNaN(t))return cc(e,NaN);if(!t)return n;const i=n.getDate(),a=cc(e,n.getTime());a.setMonth(n.getMonth()+t+1,0);return i>=a.getDate()?a:(n.setFullYear(a.getFullYear(),a.getMonth(),i),n)}let pc={};function hc(){return pc}function fc(e,t){const r=hc(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=uc(e,t?.in),a=i.getDay(),o=(a<n?7:0)+a-n;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function mc(e,t){return fc(e,{...t,weekStartsOn:1})}function _c(e,t){const r=uc(e,t?.in),n=r.getFullYear(),i=cc(r,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);const a=mc(i),o=cc(r,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const s=mc(o);return r.getTime()>=a.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function vc(e){const t=uc(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function yc(e,...t){const r=cc.bind(null,e||t.find(e=>"object"==typeof e));return t.map(r)}function gc(e,t){const r=uc(e,t?.in);return r.setHours(0,0,0,0),r}function bc(e,t,r){const[n,i]=yc(r?.in,e,t),a=gc(n),o=gc(i),s=+a-vc(a),c=+o-vc(o);return Math.round((s-c)/864e5)}function kc(e,t,r){const[n,i]=yc(r?.in,e,t);return+gc(n)===+gc(i)}function wc(e){return!(!((t=e)instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))&&"number"!=typeof e||isNaN(+uc(e)));var t}function xc(e,t){const r=uc(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function Sc(e,t){const r=uc(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function Ec(e,t){const r=hc(),n=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=uc(e,t?.in),a=i.getDay(),o=6+(a<n?-7:0)-(a-n);return i.setDate(i.getDate()+o),i.setHours(23,59,59,999),i}const jc={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Oc=(e,t,r)=>{let n;const i=jc[e];return n="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Tc(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Dc={date:Tc({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Tc({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Tc({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Nc={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ic=(e,t,r,n)=>Nc[e];function Ac(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,i=r?.width?String(r.width):t;n=e.formattingValues[i]||e.formattingValues[t]}else{const t=e.defaultWidth,i=r?.width?String(r.width):e.defaultWidth;n=e.values[i]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}const Cc={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:Ac({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Ac({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ac({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Ac({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Ac({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Pc(e){return(t,r={})=>{const n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r;return}(s,e=>e.test(o)):function(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r;return}(s,e=>e.test(o));let u;u=e.valueCallback?e.valueCallback(c):c,u=r.valueCallback?r.valueCallback(u):u;return{value:u,rest:t.slice(o.length)}}}function Fc(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const i=n[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=r.valueCallback?r.valueCallback(o):o;return{value:o,rest:t.slice(i.length)}}}const Rc={ordinalNumber:Fc({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:Pc({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Pc({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:Pc({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Pc({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Pc({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},Mc={code:"en-US",formatDistance:Oc,formatLong:Dc,formatRelative:Ic,localize:Cc,match:Rc,options:{weekStartsOn:0,firstWeekContainsDate:1}};function $c(e,t){const r=uc(e,t?.in),n=bc(r,function(e,t){const r=uc(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}(r));return n+1}function Lc(e,t){const r=uc(e,t?.in),n=+mc(r)-+function(e,t){const r=_c(e,t),n=cc(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),mc(n)}(r);return Math.round(n/oc)+1}function qc(e,t){const r=uc(e,t?.in),n=r.getFullYear(),i=hc(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=cc(t?.in||e,0);o.setFullYear(n+1,0,a),o.setHours(0,0,0,0);const s=fc(o,t),c=cc(t?.in||e,0);c.setFullYear(n,0,a),c.setHours(0,0,0,0);const u=fc(c,t);return+r>=+s?n+1:+r>=+u?n:n-1}function zc(e,t){const r=uc(e,t?.in),n=+fc(r,t)-+function(e,t){const r=hc(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=qc(e,t),a=cc(t?.in||e,0);return a.setFullYear(i,0,n),a.setHours(0,0,0,0),fc(a,t)}(r,t);return Math.round(n/oc)+1}function Vc(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Bc={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return Vc("yy"===t?n%100:n,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):Vc(r+1,2)},d:(e,t)=>Vc(e.getDate(),t.length),a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>Vc(e.getHours()%12||12,t.length),H:(e,t)=>Vc(e.getHours(),t.length),m:(e,t)=>Vc(e.getMinutes(),t.length),s:(e,t)=>Vc(e.getSeconds(),t.length),S(e,t){const r=t.length,n=e.getMilliseconds();return Vc(Math.trunc(n*Math.pow(10,r-3)),t.length)}},Uc="midnight",Qc="noon",Wc="morning",Yc="afternoon",Kc="evening",Hc="night",Gc={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){const t=e.getFullYear(),n=t>0?t:1-t;return r.ordinalNumber(n,{unit:"year"})}return Bc.y(e,t)},Y:function(e,t,r,n){const i=qc(e,n),a=i>0?i:1-i;if("YY"===t){return Vc(a%100,2)}return"Yo"===t?r.ordinalNumber(a,{unit:"year"}):Vc(a,t.length)},R:function(e,t){return Vc(_c(e),t.length)},u:function(e,t){return Vc(e.getFullYear(),t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Vc(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Vc(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return Bc.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return Vc(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const i=zc(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):Vc(i,t.length)},I:function(e,t,r){const n=Lc(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):Vc(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):Bc.d(e,t)},D:function(e,t,r){const n=$c(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):Vc(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const i=e.getDay(),a=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Vc(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const i=e.getDay(),a=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Vc(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return Vc(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let i;switch(i=12===n?Qc:0===n?Uc:n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let i;switch(i=n>=17?Kc:n>=12?Yc:n>=4?Wc:Hc,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return Bc.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):Bc.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):Vc(n,t.length)},k:function(e,t,r){let n=e.getHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):Vc(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Bc.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Bc.s(e,t)},S:function(e,t){return Bc.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return Xc(n);case"XXXX":case"XX":return Zc(n);default:return Zc(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return Xc(n);case"xxxx":case"xx":return Zc(n);default:return Zc(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Jc(n,":");default:return"GMT"+Zc(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Jc(n,":");default:return"GMT"+Zc(n,":")}},t:function(e,t,r){return Vc(Math.trunc(+e/1e3),t.length)},T:function(e,t,r){return Vc(+e,t.length)}};function Jc(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=Math.trunc(n/60),a=n%60;return 0===a?r+String(i):r+String(i)+t+Vc(a,2)}function Xc(e,t){if(e%60==0){return(e>0?"-":"+")+Vc(Math.abs(e)/60,2)}return Zc(e,t)}function Zc(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+Vc(Math.trunc(n/60),2)+t+Vc(n%60,2)}const eu=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},tu=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},ru={p:tu,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return eu(e,t);let a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",eu(n,t)).replace("{{time}}",tu(i,t))}},nu=/^D+$/,iu=/^Y+$/,au=["D","DD","YY","YYYY"];function ou(e){return nu.test(e)}function su(e){return iu.test(e)}function cu(e,t,r){const n=function(e,t,r){const n="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(au.includes(e))throw new RangeError(n)}const uu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,lu=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,du=/^'([^]*?)'?$/,pu=/''/g,hu=/[a-zA-Z]/;function fu(e,t,r){const n=hc(),i=r?.locale??n.locale??Mc,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=uc(e,r?.in);if(!wc(s))throw new RangeError("Invalid time value");let c=t.match(lu).map(e=>{const t=e[0];if("p"===t||"P"===t){return(0,ru[t])(e,i.formatLong)}return e}).join("").match(uu).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:mu(e)};if(Gc[t])return{isToken:!0,value:e};if(t.match(hu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));const u={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(n=>{if(!n.isToken)return n.value;const a=n.value;(!r?.useAdditionalWeekYearTokens&&su(a)||!r?.useAdditionalDayOfYearTokens&&ou(a))&&cu(a,t,String(e));return(0,Gc[a[0]])(s,a,i.localize,u)}).join("")}function mu(e){const t=e.match(du);return t?t[1].replace(pu,"'"):e}function _u(e,t){return+uc(e)>+uc(t)}function vu(e,t){return+uc(e)<+uc(t)}class yu{subPriority=0;validate(e,t){return!0}}class gu extends yu{constructor(e,t,r,n,i){super(),this.value=e,this.validateValue=t,this.setValue=r,this.priority=n,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,r){return this.setValue(e,t,this.value,r)}}class bu extends yu{priority=10;subPriority=-1;constructor(e,t){super(),this.context=e||(e=>cc(t,e))}set(e,t){return t.timestampIsSet?e:cc(e,function(e,t){const r=function(e){return"function"==typeof e&&e.prototype?.constructor===e}(t)?new t(0):cc(t,0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),r.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),r}(e,this.context))}}class ku{run(e,t,r,n){const i=this.parse(e,t,r,n);return i?{setter:new gu(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,r){return!0}}const wu=/^(1[0-2]|0?\d)/,xu=/^(3[0-1]|[0-2]?\d)/,Su=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Eu=/^(5[0-3]|[0-4]?\d)/,ju=/^(2[0-3]|[0-1]?\d)/,Ou=/^(2[0-4]|[0-1]?\d)/,Tu=/^(1[0-1]|0?\d)/,Du=/^(1[0-2]|0?\d)/,Nu=/^[0-5]?\d/,Iu=/^[0-5]?\d/,Au=/^\d/,Cu=/^\d{1,2}/,Pu=/^\d{1,3}/,Fu=/^\d{1,4}/,Ru=/^-?\d+/,Mu=/^-?\d/,$u=/^-?\d{1,2}/,Lu=/^-?\d{1,3}/,qu=/^-?\d{1,4}/,zu=/^([+-])(\d{2})(\d{2})?|Z/,Vu=/^([+-])(\d{2})(\d{2})|Z/,Bu=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Uu=/^([+-])(\d{2}):(\d{2})|Z/,Qu=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Wu(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Yu(e,t){const r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function Ku(e,t){const r=t.match(e);if(!r)return null;if("Z"===r[0])return{value:0,rest:t.slice(1)};return{value:("+"===r[1]?1:-1)*(36e5*(r[2]?parseInt(r[2],10):0)+6e4*(r[3]?parseInt(r[3],10):0)+1e3*(r[5]?parseInt(r[5],10):0)),rest:t.slice(r[0].length)}}function Hu(e){return Yu(Ru,e)}function Gu(e,t){switch(e){case 1:return Yu(Au,t);case 2:return Yu(Cu,t);case 3:return Yu(Pu,t);case 4:return Yu(Fu,t);default:return Yu(new RegExp("^\\d{1,"+e+"}"),t)}}function Ju(e,t){switch(e){case 1:return Yu(Mu,t);case 2:return Yu($u,t);case 3:return Yu(Lu,t);case 4:return Yu(qu,t);default:return Yu(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Xu(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Zu(e,t){const r=t>0,n=r?t:1-t;let i;if(n<=50)i=e||100;else{const t=n+50;i=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return r?i:1-i}function el(e){return e%400==0||e%4==0&&e%100!=0}const tl=[31,28,31,30,31,30,31,31,30,31,30,31],rl=[31,29,31,30,31,30,31,31,30,31,30,31];function nl(e,t,r){const n=hc(),i=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=uc(e,r?.in),o=a.getDay(),s=7-i;return lc(a,t<0||t>6?t-(o+s)%7:((t%7+7)%7+s)%7-(o+s)%7,r)}function il(e,t,r){const n=uc(e,r?.in),i=function(e,t){const r=uc(e,t?.in).getDay();return 0===r?7:r}(n,r);return lc(n,t-i,r)}const al={G:new class extends ku{priority=140;parse(e,t,r){switch(t){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}set(e,t,r){return t.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]},y:new class extends ku{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,r){const n=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return Wu(Gu(4,e),n);case"yo":return Wu(r.ordinalNumber(e,{unit:"year"}),n);default:return Wu(Gu(t.length,e),n)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r){const n=e.getFullYear();if(r.isTwoDigitYear){const t=Zu(r.year,n);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const i="era"in t&&1!==t.era?1-r.year:r.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}},Y:new class extends ku{priority=130;parse(e,t,r){const n=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return Wu(Gu(4,e),n);case"Yo":return Wu(r.ordinalNumber(e,{unit:"year"}),n);default:return Wu(Gu(t.length,e),n)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r,n){const i=qc(e,n);if(r.isTwoDigitYear){const t=Zu(r.year,i);return e.setFullYear(t,0,n.firstWeekContainsDate),e.setHours(0,0,0,0),fc(e,n)}const a="era"in t&&1!==t.era?1-r.year:r.year;return e.setFullYear(a,0,n.firstWeekContainsDate),e.setHours(0,0,0,0),fc(e,n)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends ku{priority=130;parse(e,t){return Ju("R"===t?4:t.length,e)}set(e,t,r){const n=cc(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),mc(n)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends ku{priority=130;parse(e,t){return Ju("u"===t?4:t.length,e)}set(e,t,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends ku{priority=120;parse(e,t,r){switch(t){case"Q":case"QQ":return Gu(t.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth(3*(r-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends ku{priority=120;parse(e,t,r){switch(t){case"q":case"qq":return Gu(t.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth(3*(r-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends ku{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,r){const n=e=>e-1;switch(t){case"M":return Wu(Yu(wu,e),n);case"MM":return Wu(Gu(2,e),n);case"Mo":return Wu(r.ordinalNumber(e,{unit:"month"}),n);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}},L:new class extends ku{priority=110;parse(e,t,r){const n=e=>e-1;switch(t){case"L":return Wu(Yu(wu,e),n);case"LL":return Wu(Gu(2,e),n);case"Lo":return Wu(r.ordinalNumber(e,{unit:"month"}),n);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends ku{priority=100;parse(e,t,r){switch(t){case"w":return Yu(Eu,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return Gu(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r,n){return fc(function(e,t,r){const n=uc(e,r?.in),i=zc(n,r)-t;return n.setDate(n.getDate()-7*i),uc(n,r?.in)}(e,r,n),n)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends ku{priority=100;parse(e,t,r){switch(t){case"I":return Yu(Eu,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return Gu(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r){return mc(function(e,t,r){const n=uc(e,r?.in),i=Lc(n,r)-t;return n.setDate(n.getDate()-7*i),n}(e,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends ku{priority=90;subPriority=1;parse(e,t,r){switch(t){case"d":return Yu(xu,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return Gu(t.length,e)}}validate(e,t){const r=el(e.getFullYear()),n=e.getMonth();return r?t>=1&&t<=rl[n]:t>=1&&t<=tl[n]}set(e,t,r){return e.setDate(r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends ku{priority=90;subpriority=1;parse(e,t,r){switch(t){case"D":case"DD":return Yu(Su,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return Gu(t.length,e)}}validate(e,t){return el(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends ku{priority=90;parse(e,t,r){switch(t){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,n){return(e=nl(e,r,n)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends ku{priority=90;parse(e,t,r,n){const i=e=>{const t=7*Math.floor((e-1)/7);return(e+n.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return Wu(Gu(t.length,e),i);case"eo":return Wu(r.ordinalNumber(e,{unit:"day"}),i);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,n){return(e=nl(e,r,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends ku{priority=90;parse(e,t,r,n){const i=e=>{const t=7*Math.floor((e-1)/7);return(e+n.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return Wu(Gu(t.length,e),i);case"co":return Wu(r.ordinalNumber(e,{unit:"day"}),i);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,n){return(e=nl(e,r,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends ku{priority=90;parse(e,t,r){const n=e=>0===e?7:e;switch(t){case"i":case"ii":return Gu(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return Wu(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n);case"iiiii":return Wu(r.day(e,{width:"narrow",context:"formatting"}),n);case"iiiiii":return Wu(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n);default:return Wu(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n)}}validate(e,t){return t>=1&&t<=7}set(e,t,r){return(e=il(e,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends ku{priority=80;parse(e,t,r){switch(t){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(Xu(r),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends ku{priority=80;parse(e,t,r){switch(t){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(Xu(r),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends ku{priority=80;parse(e,t,r){switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(Xu(r),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends ku{priority=70;parse(e,t,r){switch(t){case"h":return Yu(Du,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return Gu(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,r){const n=e.getHours()>=12;return n&&r<12?e.setHours(r+12,0,0,0):n||12!==r?e.setHours(r,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]},H:new class extends ku{priority=70;parse(e,t,r){switch(t){case"H":return Yu(ju,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return Gu(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,r){return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends ku{priority=70;parse(e,t,r){switch(t){case"K":return Yu(Tu,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return Gu(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]},k:new class extends ku{priority=70;parse(e,t,r){switch(t){case"k":return Yu(Ou,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return Gu(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,r){const n=r<=24?r%24:r;return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends ku{priority=60;parse(e,t,r){switch(t){case"m":return Yu(Nu,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return Gu(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setMinutes(r,0,0),e}incompatibleTokens=["t","T"]},s:new class extends ku{priority=50;parse(e,t,r){switch(t){case"s":return Yu(Iu,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return Gu(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setSeconds(r,0),e}incompatibleTokens=["t","T"]},S:new class extends ku{priority=30;parse(e,t){return Wu(Gu(t.length,e),e=>Math.trunc(e*Math.pow(10,3-t.length)))}set(e,t,r){return e.setMilliseconds(r),e}incompatibleTokens=["t","T"]},X:new class extends ku{priority=10;parse(e,t){switch(t){case"X":return Ku(zu,e);case"XX":return Ku(Vu,e);case"XXXX":return Ku(Bu,e);case"XXXXX":return Ku(Qu,e);default:return Ku(Uu,e)}}set(e,t,r){return t.timestampIsSet?e:cc(e,e.getTime()-vc(e)-r)}incompatibleTokens=["t","T","x"]},x:new class extends ku{priority=10;parse(e,t){switch(t){case"x":return Ku(zu,e);case"xx":return Ku(Vu,e);case"xxxx":return Ku(Bu,e);case"xxxxx":return Ku(Qu,e);default:return Ku(Uu,e)}}set(e,t,r){return t.timestampIsSet?e:cc(e,e.getTime()-vc(e)-r)}incompatibleTokens=["t","T","X"]},t:new class extends ku{priority=40;parse(e){return Hu(e)}set(e,t,r){return[cc(e,1e3*r),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends ku{priority=20;parse(e){return Hu(e)}set(e,t,r){return[cc(e,r),{timestampIsSet:!0}]}incompatibleTokens="*"}},ol=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,sl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,cl=/^'([^]*?)'?$/,ul=/''/g,ll=/\S/,dl=/[a-zA-Z]/;function pl(e,t,r,n){const i=()=>cc(r,NaN),a=Object.assign({},hc()),o=a.locale??Mc,s={firstWeekContainsDate:a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,weekStartsOn:a.weekStartsOn??a.locale?.options?.weekStartsOn??0,locale:o},c=[new bu(n?.in,r)],u=t.match(sl).map(e=>{const t=e[0];if(t in ru){return(0,ru[t])(e,o.formatLong)}return e}).join("").match(ol),l=[];for(let f of u){su(f)&&cu(f,t,e),ou(f)&&cu(f,t,e);const r=f[0],n=al[r];if(n){const{incompatibleTokens:t}=n;if(Array.isArray(t)){const e=l.find(e=>t.includes(e.token)||e.token===r);if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${f}\` at the same time`)}else if("*"===n.incompatibleTokens&&l.length>0)throw new RangeError(`The format string mustn't contain \`${f}\` and any other token at the same time`);l.push({token:r,fullToken:f});const a=n.run(e,f,o.match,s);if(!a)return i();c.push(a.setter),e=a.rest}else{if(r.match(dl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");if("''"===f?f="'":"'"===r&&(f=hl(f)),0!==e.indexOf(f))return i();e=e.slice(f.length)}}if(e.length>0&&ll.test(e))return i();const d=c.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,r)=>r.indexOf(e)===t).map(e=>c.filter(t=>t.priority===e).sort((e,t)=>t.subPriority-e.subPriority)).map(e=>e[0]);let p=uc(r,n?.in);if(isNaN(+p))return i();const h={};for(const f of d){if(!f.validate(p,s))return i();const e=f.set(p,h,s);Array.isArray(e)?(p=e[0],Object.assign(h,e[1])):p=e}return p}function hl(e){return e.match(cl)[1].replace(ul,"'")}function fl(e,t,r){return lc(e,-1,r)}function ml(e,t,r){return function(e,t,r){return dc(e,12*t,r)}(e,-18,r)}function _l({result:e,options:t}){let r=t||{};/* @__PURE__ */
542
542
  return E.jsx("a",{className:"bukazu-result bu_card",href:e.house_url,children:/* @__PURE__ */E.jsxs("div",{className:"bukazu-result-inner",children:[
543
543
  /* @__PURE__ */E.jsx("div",{className:"image-holder",children:/* @__PURE__ */E.jsx("img",{src:e.image_url,alt:e.name})}),
544
544
  /* @__PURE__ */E.jsxs("div",{className:"result",children:[
545
545
  /* @__PURE__ */E.jsx("div",{className:"result-title",children:e.name}),
546
546
  /* @__PURE__ */E.jsxs("div",{className:"result-place",children:[r.showCity&&/* @__PURE__ */E.jsxs("span",{children:[e.city,", "]}),r.showRegion&&/* @__PURE__ */E.jsxs("span",{children:[e.province,", "]}),r.showCountry&&/* @__PURE__ */E.jsx("span",{children:e.country_name})]}),
547
547
  /* @__PURE__ */E.jsx("div",{className:"result-description",dangerouslySetInnerHTML:{__html:e.description}}),
548
- /* @__PURE__ */E.jsxs("div",{className:"result-details",children:[r.showPersons&&/* @__PURE__ */E.jsxs("div",{children:[e.persons," ",rc("persons")]}),r.showBedrooms&&/* @__PURE__ */E.jsxs("div",{children:[e.bedrooms," ",rc("bedrooms")]}),r.showBathrooms&&/* @__PURE__ */E.jsxs("div",{children:[e.bathrooms," ",rc("bathrooms")]})]}),r.showRating&&e.rating&&/* @__PURE__ */E.jsx("div",{className:"result-rating bu_card",children:/* @__PURE__ */E.jsx("div",{className:"result-rating-inner",children:e.rating.toFixed(1)})}),r.showPrice&&/* @__PURE__ */E.jsx("div",{className:"result-price",children:e.booking_price?/* @__PURE__ */E.jsxs(E.Fragment,{children:[rc("price_from"),
549
- /* @__PURE__ */E.jsxs("span",{className:"price",children:["€"," ",nc(e.booking_price.total_price,{minimumFractionDigits:0,maximumFractionDigits:0})]})]}):/* @__PURE__ */E.jsxs(E.Fragment,{children:[rc("minimum_week_price"),
550
- /* @__PURE__ */E.jsxs("span",{className:"price",children:["€"," ",nc(e.minimum_week_price,{minimumFractionDigits:0,maximumFractionDigits:0})]})]})}),
551
- /* @__PURE__ */E.jsx("div",{className:"result-button",children:rc("view_details")})]})]})})}function _l({onPageChange:e,variables:t,activePage:r,limit:n}){const{loading:i,error:a,data:o}=_s(Ms,{variables:t});if(i)/* @__PURE__ */
548
+ /* @__PURE__ */E.jsxs("div",{className:"result-details",children:[r.showPersons&&/* @__PURE__ */E.jsxs("div",{children:[e.persons," ",nc("persons")]}),r.showBedrooms&&/* @__PURE__ */E.jsxs("div",{children:[e.bedrooms," ",nc("bedrooms")]}),r.showBathrooms&&/* @__PURE__ */E.jsxs("div",{children:[e.bathrooms," ",nc("bathrooms")]})]}),r.showRating&&e.rating&&/* @__PURE__ */E.jsx("div",{className:"result-rating bu_card",children:/* @__PURE__ */E.jsx("div",{className:"result-rating-inner",children:e.rating.toFixed(1)})}),r.showPrice&&/* @__PURE__ */E.jsx("div",{className:"result-price",children:e.booking_price?/* @__PURE__ */E.jsxs(E.Fragment,{children:[nc("price_from"),
549
+ /* @__PURE__ */E.jsxs("span",{className:"price",children:["€"," ",ic(e.booking_price.total_price,{minimumFractionDigits:0,maximumFractionDigits:0})]})]}):/* @__PURE__ */E.jsxs(E.Fragment,{children:[nc("minimum_week_price"),
550
+ /* @__PURE__ */E.jsxs("span",{className:"price",children:["€"," ",ic(e.minimum_week_price,{minimumFractionDigits:0,maximumFractionDigits:0})]})]})}),
551
+ /* @__PURE__ */E.jsx("div",{className:"result-button",children:nc("view_details")})]})]})})}function vl({onPageChange:e,variables:t,activePage:r,limit:n}){const{loading:i,error:a,data:o}=vs($s,{variables:t});if(i)/* @__PURE__ */
552
552
  return E.jsx("div",{style:{width:"100%",display:"flex",justifyContent:"center"},children:/* @__PURE__ */E.jsx(j,{})});if(a)/* @__PURE__ */
553
553
  return E.jsx("div",{children:"Error"});const s=o.PortalSite.houses,c=n>0?Math.ceil(s.length/n):0,u=function(e,t){if(t<=7)return Array.from({length:t},(e,t)=>t);const r=Math.floor(2.5);let n=Math.max(1,e-r),i=n+5-1;i>=t-1&&(i=t-2,n=i-5+1);const a=[0];n>1&&a.push("...");for(let o=n;o<=i;o++)a.push(o);return i<t-2&&a.push("..."),a.push(t-1),a}(r,c);/* @__PURE__ */
554
554
  return E.jsxs("div",{className:"bu-paginator",children:[
555
- /* @__PURE__ */E.jsxs("div",{children:[s.length," ",rc("results")]}),c>1&&/* @__PURE__ */E.jsxs("ul",{className:"bu-pagination",children:[
556
- /* @__PURE__ */E.jsx("li",{className:0===r?"disabled":"",children:/* @__PURE__ */E.jsx("button",{disabled:0===r,onClick:()=>e(r-1),"aria-label":rc("previous"),children:"<"})}),u.map((t,n)=>"..."===t?/* @__PURE__ */E.jsx("li",{children:/* @__PURE__ */E.jsx("span",{"aria-label":"More pages",children:"..."})},`break-${n}`):/* @__PURE__ */E.jsx("li",{className:t===r?"selected":"",children:/* @__PURE__ */E.jsx("button",{"data-page-button":!0,onClick:()=>e(t),"aria-current":t===r?"page":void 0,children:t+1})},t)),
557
- /* @__PURE__ */E.jsx("li",{className:r===c-1?"disabled":"",children:/* @__PURE__ */E.jsx("button",{disabled:r===c-1,onClick:()=>e(r+1),"aria-label":rc("next"),children:">"})})]})]})}function vl({children:e,buttonText:r,show:n=!1}){const[i,a]=t(n);return i?/* @__PURE__ */E.jsx("div",{className:"bukazu-modal-container",children:/* @__PURE__ */E.jsxs("div",{className:"bukazu-modal-container-inner",children:[
555
+ /* @__PURE__ */E.jsxs("div",{children:[s.length," ",nc("results")]}),c>1&&/* @__PURE__ */E.jsxs("ul",{className:"bu-pagination",children:[
556
+ /* @__PURE__ */E.jsx("li",{className:0===r?"disabled":"",children:/* @__PURE__ */E.jsx("button",{disabled:0===r,onClick:()=>e(r-1),"aria-label":nc("previous"),children:"<"})}),u.map((t,n)=>"..."===t?/* @__PURE__ */E.jsx("li",{children:/* @__PURE__ */E.jsx("span",{"aria-label":"More pages",children:"..."})},`break-${n}`):/* @__PURE__ */E.jsx("li",{className:t===r?"selected":"",children:/* @__PURE__ */E.jsx("button",{"data-page-button":!0,onClick:()=>e(t),"aria-current":t===r?"page":void 0,children:t+1})},t)),
557
+ /* @__PURE__ */E.jsx("li",{className:r===c-1?"disabled":"",children:/* @__PURE__ */E.jsx("button",{disabled:r===c-1,onClick:()=>e(r+1),"aria-label":nc("next"),children:">"})})]})]})}function yl({children:e,buttonText:r,show:n=!1}){const[i,a]=t(n);return i?/* @__PURE__ */E.jsx("div",{className:"bukazu-modal-container",children:/* @__PURE__ */E.jsxs("div",{className:"bukazu-modal-container-inner",children:[
558
558
  /* @__PURE__ */E.jsx("div",{className:"bukazu-modal-escape",onClick:()=>a(!1)}),
559
559
  /* @__PURE__ */E.jsxs("div",{className:"bukazu-modal",children:[
560
560
  /* @__PURE__ */E.jsx("div",{className:"bukazu-modal-content",children:e}),
561
- /* @__PURE__ */E.jsx("div",{className:"bukazu-modal-footer",children:/* @__PURE__ */E.jsx("a",{onClick:()=>a(!1),children:rc("close")})})]})]})}):/* @__PURE__ */E.jsx("a",{className:"info-button",onClick:()=>a(!0),children:r})}const yl="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,gl=globalThis,bl="10.45.0";function kl(){return wl(gl),gl}function wl(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||bl,t[bl]=t[bl]||{}}function xl(e,t,r=gl){const n=r.__SENTRY__=r.__SENTRY__||{},i=n[bl]=n[bl]||{};return i[e]||(i[e]=t())}const Sl=["debug","info","warn","error","log","assert","trace"],El={};function jl(e){if(!("console"in gl))return e();const t=gl.console,r={},n=Object.keys(El);n.forEach(e=>{const n=El[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}function Ol(){return Dl().enabled}function Tl(e,...t){yl&&Ol()&&jl(()=>{gl.console[e](`Sentry Logger [${e}]:`,...t)})}function Dl(){return yl?xl("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const Nl={enable:function(){Dl().enabled=!0},disable:function(){Dl().enabled=!1},isEnabled:Ol,log:function(...e){Tl("log",...e)},warn:function(...e){Tl("warn",...e)},error:function(...e){Tl("error",...e)}},Il="?",Al=/\(error: (.*)\)/,Cl=/captureMessage|captureException/;function Pl(...e){const t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,r=0,n=0)=>{const i=[],a=e.split("\n");for(let o=r;o<a.length;o++){let e=a[o];e.length>1024&&(e=e.slice(0,1024));const r=Al.test(e)?e.replace(Al,"$1"):e;if(!r.match(/\S*Error: /)){for(const e of t){const t=e(r);if(t){i.push(t);break}}if(i.length>=50+n)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(Fl(t).function||"")&&t.pop();t.reverse(),Cl.test(Fl(t).function||"")&&(t.pop(),Cl.test(Fl(t).function||"")&&t.pop());return t.slice(0,50).map(e=>({...e,filename:e.filename||Fl(t).filename,function:e.function||Il}))}(i.slice(n))}}function Fl(e){return e[e.length-1]||{}}const Rl="<anonymous>";function Ml(e){try{return e&&"function"==typeof e&&e.name||Rl}catch{return Rl}}function $l(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}function Ll(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const ql={},zl={};function Vl(e,t){ql[e]=ql[e]||[],ql[e].push(t)}function Bl(e,t){if(!zl[e]){zl[e]=!0;try{t()}catch(r){yl&&Nl.error(`Error while instrumenting ${e}`,r)}}}function Ul(e,t){const r=e&&ql[e];if(r)for(const i of r)try{i(t)}catch(n){yl&&Nl.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Ml(i)}\nError:`,n)}}let Ql=null;function Wl(){Ql=gl.onerror,gl.onerror=function(e,t,r,n,i){return Ul("error",{column:n,error:i,line:r,msg:e,url:t}),!!Ql&&Ql.apply(this,arguments)},gl.onerror.__SENTRY_INSTRUMENTED__=!0}let Yl=null;function Kl(){Yl=gl.onunhandledrejection,gl.onunhandledrejection=function(e){return Ul("unhandledrejection",e),!Yl||Yl.apply(this,arguments)},gl.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Hl=Object.prototype.toString;function Gl(e){switch(Hl.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return od(e,Error)}}function Jl(e,t){return Hl.call(e)===`[object ${t}]`}function Xl(e){return Jl(e,"ErrorEvent")}function Zl(e){return Jl(e,"DOMError")}function ed(e){return Jl(e,"String")}function td(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function rd(e){return null===e||td(e)||"object"!=typeof e&&"function"!=typeof e}function nd(e){return Jl(e,"Object")}function id(e){return"undefined"!=typeof Event&&od(e,Event)}function ad(e){return Boolean(e?.then&&"function"==typeof e.then)}function od(e,t){try{return e instanceof t}catch{return!1}}function sd(e){return!("object"!=typeof e||null===e||!(e.__isVue||e._isVue||e.__v_isVNode))}function cd(e){return"undefined"!=typeof Request&&od(e,Request)}const ud=gl;function ld(e,t={}){if(!e)return"<unknown>";try{let r=e;const n=5,i=[];let a=0,o=0;const s=" > ",c=s.length;let u;const l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&a++<n&&(u=dd(r,l),!("html"===u||a>1&&o+i.length*c+u.length>=d));)i.push(u),o+=u.length,r=r.parentNode;return i.reverse().join(s)}catch{return"<unknown>"}}function dd(e,t){const r=e,n=[];if(!r?.tagName)return"";if(ud.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}n.push(r.tagName.toLowerCase());const i=t?.length?t.filter(e=>r.getAttribute(e)).map(e=>[e,r.getAttribute(e)]):null;if(i?.length)i.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{r.id&&n.push(`#${r.id}`);const e=r.className;if(e&&ed(e)){const t=e.split(/\s+/);for(const e of t)n.push(`.${e}`)}}for(const a of["aria-label","type","name","title","alt"]){const e=r.getAttribute(a);e&&n.push(`[${a}="${e}"]`)}return n.join("")}function pd(){try{return ud.document.location.href}catch{return""}}function hd(e,t,r){if(!(t in e))return;const n=e[t];if("function"!=typeof n)return;const i=r(n);"function"==typeof i&&md(i,n);try{e[t]=i}catch{yl&&Nl.log(`Failed to replace method "${t}" in object`,e)}}function fd(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{yl&&Nl.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function md(e,t){try{const r=t.prototype||{};e.prototype=t.prototype=r,fd(e,"__sentry_original__",t)}catch{}}function _d(e){return e.__sentry_original__}function vd(e){if(Gl(e))return{message:e.message,name:e.name,stack:e.stack,...gd(e)};if(id(e)){const t={type:e.type,target:yd(e.target),currentTarget:yd(e.currentTarget),...gd(e)};return"undefined"!=typeof CustomEvent&&od(e,CustomEvent)&&(t.detail=e.detail),t}return e}function yd(e){try{return t=e,"undefined"!=typeof Element&&od(t,Element)?ld(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}var t}function gd(e){return"object"==typeof e&&null!==e?Object.fromEntries(Object.entries(e)):{}}let bd,kd;function wd(e){if(void 0!==bd)return bd?bd(e):e();const t=/* @__PURE__ */Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),r=gl;return t in r&&"function"==typeof r[t]?(bd=r[t],bd(e)):(bd=null,e())}function xd(){return wd(()=>Math.random())}function Sd(){return wd(()=>Date.now())}function Ed(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function jd(e,t){if(!Array.isArray(e))return"";const r=[];for(let n=0;n<e.length;n++){const t=e[n];try{sd(t)?r.push(Ll(t)):r.push(String(t))}catch{r.push("[value cannot be serialized]")}}return r.join(t)}function Od(e,t,r=!1){return!!ed(e)&&(Jl(t,"RegExp")?t.test(e):!!ed(t)&&(r?e===t:e.includes(t)))}function Td(e,t=[],r=!1){return t.some(t=>Od(e,t,r))}function Dd(e=function(){const e=gl;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return wd(()=>e.randomUUID()).replace(/-/g,"")}catch{}return kd||(kd="10000000100040008000100000000000"),kd.replace(/[018]/g,e=>(e^(16*xd()&15)>>e/4).toString(16))}function Nd(e){return e.exception?.values?.[0]}function Id(e){const{message:t,event_id:r}=e;if(t)return t;const n=Nd(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function Ad(e,t,r){const n=e.exception=e.exception||{},i=n.values=n.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function Cd(e,t){const r=Nd(e);if(!r)return;const n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){const e={...n?.data,...t.data};r.mechanism.data=e}}function Pd(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{fd(e,"__sentry_captured__",!0)}catch{}return!1}function Fd(){return Sd()/1e3}let Rd;function Md(){return(Rd??(Rd=function(){const{performance:e}=gl;if(!e?.now||!e.timeOrigin)return Fd;const t=e.timeOrigin;return()=>(t+wd(()=>e.now()))/1e3}()))()}function $d(e){const t=Md(),r={sid:Dd(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}(r)};return e&&Ld(r,e),r}function Ld(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Md(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Dd()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function qd(e,t,r=2){if(!t||"object"!=typeof t||r<=0)return t;if(e&&0===Object.keys(t).length)return e;const n={...e};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=qd(n[i],t[i],r-1));return n}function zd(){return Dd()}function Vd(){return Dd().substring(16)}const Bd="_sentrySpan";function Ud(e,t){t?fd(e,Bd,t):delete e[Bd]}function Qd(e){return e[Bd]}class Wd{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:zd(),sampleRand:xd()}}clone(){const e=new Wd;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,Ud(e,Qd(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Ld(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,r=t instanceof Wd?t.getScopeData():nd(t)?e:void 0,{tags:n,attributes:i,extra:a,user:o,contexts:s,level:c,fingerprint:u=[],propagationContext:l,conversationId:d}=r||{};return this._tags={...this._tags,...n},this._attributes={...this._attributes,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,Ud(this,void 0),this._attachments=[],this.setPropagationContext({traceId:zd(),sampleRand:xd()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const r="number"==typeof t?t:100;if(r<=0)return this;const n={timestamp:Fd(),...e,message:e.message?Ed(e.message,2048):e.message};return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Qd(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=qd(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const r=t?.event_id||Dd();if(!this._client)return yl&&Nl.warn("No client configured on scope - will not capture exception!"),r;const n=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:r},this),r}captureMessage(e,t,r){const n=r?.event_id||Dd();if(!this._client)return yl&&Nl.warn("No client configured on scope - will not capture message!"),n;const i=r?.syntheticException??new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...r,event_id:n},this),n}captureEvent(e,t){const r=e.event_id||t?.event_id||Dd();return this._client?(this._client.captureEvent(e,{...t,event_id:r},this),r):(yl&&Nl.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}class Yd{constructor(e,t){let r,n;r=e||new Wd,n=t||new Wd,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){const t=this._pushScope();let r;try{r=e(t)}catch(n){throw this._popScope(),n}return ad(r)?r.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function Kd(){const e=wl(kl());return e.stack=e.stack||new Yd(xl("defaultCurrentScope",()=>new Wd),xl("defaultIsolationScope",()=>new Wd))}function Hd(e){return Kd().withScope(e)}function Gd(e,t){const r=Kd();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function Jd(e){return Kd().withScope(()=>e(Kd().getIsolationScope()))}function Xd(e){const t=wl(e);return t.acs?t.acs:{withIsolationScope:Jd,withScope:Hd,withSetScope:Gd,withSetIsolationScope:(e,t)=>Jd(t),getCurrentScope:()=>Kd().getScope(),getIsolationScope:()=>Kd().getIsolationScope()}}function Zd(){return Xd(kl()).getCurrentScope()}function ep(){return Xd(kl()).getIsolationScope()}function tp(){return Zd().getClient()}function rp(e){const t=e.getPropagationContext(),{traceId:r,parentSpanId:n,propagationSpanId:i}=t,a={trace_id:r,span_id:i||Vd()};return n&&(a.parent_span_id=n),a}const np="sentry.profile_id",ip="sentry.exclusive_time";function ap(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}function op(e){const t=e;return{scope:t._sentryScope,isolationScope:ap(t._sentryIsolationScope)}}const sp="sentry-";function cp(e){const t=function(e){if(!e||!ed(e)&&!Array.isArray(e))return;if(Array.isArray(e))return e.reduce((e,t)=>{const r=up(t);return Object.entries(r).forEach(([t,r])=>{e[t]=r}),e},{});return up(e)}(e);if(!t)return;const r=Object.entries(t).reduce((e,[t,r])=>{if(t.startsWith(sp)){e[t.slice(7)]=r}return e},{});return Object.keys(r).length>0?r:void 0}function up(e){return e.split(",").map(e=>{const t=e.indexOf("=");if(-1===t)return[];return[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,r])=>(t&&r&&(e[t]=r),e),{})}const lp=/^o(\d+)\./,dp=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function pp(e,t=!1){const{host:r,path:n,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:""}@${r}${a?`:${a}`:""}/${n?`${n}/`:n}${o}`}function hp(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function fp(e){const t=e.getOptions(),{host:r}=e.getDsn()||{};let n;return t.orgId?n=String(t.orgId):r&&(n=function(e){const t=e.match(lp);return t?.[1]}(r)),n}function mp(e){const t="string"==typeof e?function(e){const t=dp.exec(e);if(!t)return void jl(()=>{});const[r,n,i="",a="",o="",s=""]=t.slice(1);let c="",u=s;const l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const e=u.match(/^\d+/);e&&(u=e[0])}return hp({host:a,pass:i,path:c,projectId:u,port:o,protocol:r,publicKey:n})}(e):hp(e);if(t&&function(e){if(!yl)return!0;const{port:t,projectId:r,protocol:n}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(Nl.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(r.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(n)?t&&isNaN(parseInt(t,10))&&(Nl.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(Nl.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),1):(Nl.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),1)))}(t))return t}let _p=!1;function vp(e){const{spanId:t,traceId:r,isRemote:n}=e.spanContext(),i=n?t:kp(e).parent_span_id,a=op(e).scope;return{parent_span_id:i,span_id:n?a?.getPropagationContext().propagationSpanId||Vd():t,trace_id:r}}function yp(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:r,...n},attributes:i})=>({span_id:e,trace_id:t,sampled:1===r,attributes:i,...n})):void 0}function gp(e){return"number"==typeof e?bp(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?bp(e.getTime()):Md()}function bp(e){return e>9999999999?e/1e3:e}function kp(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();const{spanId:t,traceId:r}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:n,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{span_id:t,trace_id:r,data:n,description:a,parent_span_id:"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0,start_timestamp:gp(i),timestamp:gp(o)||void 0,status:wp(s),op:n["sentry.op"],origin:n["sentry.origin"],links:yp(c)}}return{span_id:t,trace_id:r,start_timestamp:0,data:{}}}function wp(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"internal_error"}function xp(e){return e._sentryRootSpan||e}function Sp(){_p||(jl(()=>{}),_p=!0)}function Ep(e){Nl.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function jp(e,t){if(!t?.length||!e.description)return!1;for(const r of t){if(Tp(r)){if(Od(e.description,r))return yl&&Ep(e),!0;continue}if(!r.name&&!r.op)continue;const t=!r.name||Od(e.description,r.name),n=!r.op||e.op&&Od(e.op,r.op);if(t&&n)return yl&&Ep(e),!0}return!1}function Op(e,t){const r=t.parent_span_id,n=t.span_id;if(r)for(const i of e)i.parent_span_id===n&&(i.parent_span_id=r)}function Tp(e){return"string"==typeof e||e instanceof RegExp}const Dp="production";function Np(e,t){const r=t.getOptions(),{publicKey:n}=t.getDsn()||{},i={environment:r.environment||Dp,release:r.release,public_key:n,trace_id:e,org_id:fp(t)};return t.emit("createDsc",i),i}function Ip(e){const t=tp();if(!t)return{};const r=xp(e),n=kp(r),i=n.data,a=r.spanContext().traceState,o=a?.get("sentry.sample_rate")??i["sentry.sample_rate"]??i["sentry.previous_trace_sample_rate"];function s(e){return"number"!=typeof o&&"string"!=typeof o||(e.sample_rate=`${o}`),e}const c=r._frozenDsc;if(c)return s(c);const u=a?.get("sentry.dsc"),l=u&&cp(u);if(l)return s(l);const d=Np(e.spanContext().traceId,t),p=i["sentry.source"],h=n.description;return"url"!==p&&h&&(d.transaction=h),function(){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=tp()?.getOptions();return!(!e||null==e.tracesSampleRate&&!e.tracesSampler)}()&&(d.sampled=String(function(e){const{traceFlags:t}=e.spanContext();return 1===t}(r)),d.sample_rand=a?.get("sentry.sample_rand")??op(r).scope?.getPropagationContext().sampleRand.toString()),s(d),t.emit("createDsc",d,r),d}function Ap(e,t=100,r=1/0){try{return Pp("",e,t,r)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function Cp(e,t=3,r=102400){const n=Ap(e,t);return i=n,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>r?Cp(e,t-1,r):n;var i}function Pp(e,t,r=1/0,n=1/0,i=function(){const e=/* @__PURE__ */new WeakSet;function t(t){return!!e.has(t)||(e.add(t),!1)}function r(t){e.delete(t)}return[t,r]}()){const[a,o]=i;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const s=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(sd(t))return Ll(t);if(nd(r=t)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r)return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${Ml(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=function(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}var r}(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:r;if(0===c)return s.replace("object ","");if(a(t))return"[Circular ~]";const u=t;if(u&&"function"==typeof u.toJSON)try{return Pp("",u.toJSON(),c-1,n,i)}catch{}const l=Array.isArray(t)?[]:{};let d=0;const p=vd(t);for(const h in p){if(!Object.prototype.hasOwnProperty.call(p,h))continue;if(d>=n){l[h]="[MaxProperties ~]";break}const e=p[h];l[h]=Pp(h,e,c-1,n,i),d++}return o(t),l}function Fp(e,t=[]){return[e,t]}function Rp(e,t){const[r,n]=e;return[r,[...n,t]]}function Mp(e,t){const r=e[1];for(const n of r){if(t(n,n[0].type))return!0}return!1}function $p(e){const t=wl(gl);return t.encodePolyfill?t.encodePolyfill(e):(new TextEncoder).encode(e)}function Lp(e){const[t,r]=e;let n=JSON.stringify(t);function i(e){"string"==typeof n?n="string"==typeof e?n+e:[$p(n),e]:n.push("string"==typeof e?$p(e):e)}for(const a of r){const[e,t]=a;if(i(`\n${JSON.stringify(e)}\n`),"string"==typeof t||t instanceof Uint8Array)i(t);else{let e;try{e=JSON.stringify(t)}catch{e=JSON.stringify(Ap(t))}i(e)}}return"string"==typeof n?n:function(e){const t=e.reduce((e,t)=>e+t.length,0),r=new Uint8Array(t);let n=0;for(const i of e)r.set(i,n),n+=i.length;return r}(n)}function qp(e){const t="string"==typeof e.data?$p(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const zp={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function Vp(e){return function(e){return e in zp}(e)?zp[e]:e}function Bp(e){if(!e?.sdk)return;const{name:t,version:r}=e.sdk;return{name:t,version:r}}function Up(e,t,r,n){const i=Bp(r),a=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){if(!t)return e;const r=e.sdk||{};e.sdk={...r,name:r.name||t.name,version:r.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0}}(e,r?.sdk);const o=function(e,t,r,n){const i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:/* @__PURE__ */(new Date).toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:pp(n)},...i&&{trace:i}}}(e,i,n,t);delete e.sdkProcessingMetadata;return Fp(o,[[{type:a},e]])}function Qp(e){return new Yp(t=>{t(e)})}function Wp(e){return new Yp((t,r)=>{r(e)})}class Yp{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new Yp((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(i){n(i)}else r(t)},e=>{if(t)try{r(t(e))}catch(i){n(i)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new Yp((t,r)=>{let n,i;return this.then(t=>{i=!1,n=t,e&&e()},t=>{i=!0,n=t,e&&e()}).then(()=>{i?r(n):t(n)})})}_executeHandlers(){if(0===this._state)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){const t=(e,t)=>{0===this._state&&(ad(t)?t.then(r,n):(this._state=e,this._value=t,this._executeHandlers()))},r=e=>{t(1,e)},n=e=>{t(2,e)};try{e(r,n)}catch(i){n(i)}}}function Kp(e,t,r,n=0){try{const i=Hp(t,r,e,n);return ad(i)?i:Qp(i)}catch(i){return Wp(i)}}function Hp(e,t,r,n){const i=r[n];if(!e||!i)return e;const a=i({...e},t);return yl&&null===a&&Nl.log(`Event processor "${i.id||"?"}" dropped event`),ad(a)?a.then(e=>Hp(e,t,r,n+1)):Hp(a,t,r,n+1)}let Gp,Jp,Xp,Zp;function eh(e,t){const{fingerprint:r,span:n,breadcrumbs:i,sdkProcessingMetadata:a}=t;!function(e,t){const{extra:r,tags:n,user:i,contexts:a,level:o,transactionName:s}=t;Object.keys(r).length&&(e.extra={...r,...e.extra});Object.keys(n).length&&(e.tags={...n,...e.tags});Object.keys(i).length&&(e.user={...i,...e.user});Object.keys(a).length&&(e.contexts={...a,...e.contexts});o&&(e.level=o);s&&"transaction"!==e.type&&(e.transaction=s)}(e,t),n&&function(e,t){e.contexts={trace:vp(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Ip(t),...e.sdkProcessingMetadata};const r=xp(t),n=kp(r).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,n),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint.length||delete e.fingerprint}(e,r),function(e,t){const r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}(e,i),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,a)}function th(e,t){const{extra:r,tags:n,attributes:i,user:a,contexts:o,level:s,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:l,eventProcessors:d,attachments:p,propagationContext:h,transactionName:f,span:m}=t;rh(e,"extra",r),rh(e,"tags",n),rh(e,"attributes",i),rh(e,"user",a),rh(e,"contexts",o),e.sdkProcessingMetadata=qd(e.sdkProcessingMetadata,c,2),s&&(e.level=s),f&&(e.transactionName=f),m&&(e.span=m),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...h}}function rh(e,t,r){e[t]=qd(e[t],r,1)}function nh(e,t){const r=xl("globalScope",()=>new Wd).getScopeData();return e&&th(r,e.getScopeData()),t&&th(r,t.getScopeData()),r}function ih(e,t,r,n,i,a){const{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||r.event_id||Dd(),timestamp:t.timestamp||Fd()},u=r.integrations||e.integrations.map(e=>e.name);!function(e,t){const{environment:r,release:n,dist:i,maxValueLength:a}=t;e.environment=e.environment||r||Dp,!e.release&&n&&(e.release=n);!e.dist&&i&&(e.dist=i);const o=e.request;o?.url&&a&&(o.url=Ed(o.url,a));a&&e.exception?.values?.forEach(e=>{e.value&&(e.value=Ed(e.value,a))})}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,u),i&&i.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){const r=function(e){const t=gl._sentryDebugIds,r=gl._debugIds;if(!t&&!r)return{};const n=t?Object.keys(t):[],i=r?Object.keys(r):[];if(Zp&&n.length===Jp&&i.length===Xp)return Zp;Jp=n.length,Xp=i.length,Zp={},Gp||(Gp={});const a=(t,r)=>{for(const n of t){const t=r[n],i=Gp?.[n];if(i&&Zp&&t)Zp[i[0]]=t,Gp&&(Gp[n]=[i[0],t]);else if(t){const r=e(n);for(let e=r.length-1;e>=0;e--){const i=r[e],a=i?.filename;if(a&&Zp&&Gp){Zp[a]=t,Gp[n]=[a,t];break}}}}};return t&&a(n,t),r&&a(i,r),Zp}(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=r[e.filename])})})}(c,e.stackParser);const l=function(e,t){if(!t)return e;const r=e?e.clone():new Wd;return r.update(t),r}(n,r.captureContext);r.mechanism&&Cd(c,r.mechanism);const d=i?i.getEventProcessors():[],p=nh(a,l),h=[...r.attachments||[],...p.attachments];h.length&&(r.attachments=h),eh(c,p);const f=[...d,...p.eventProcessors];return(r.data&&!0===r.data.__sentry__?Qp(c):Kp(f,c,r)).then(e=>(e&&function(e){const t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const r=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof o&&o>0?function(e,t,r){if(!e)return null;const n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:Ap(e.data,t,r)}}))},...e.user&&{user:Ap(e.user,t,r)},...e.contexts&&{contexts:Ap(e.contexts,t,r)},...e.extra&&{extra:Ap(e.extra,t,r)}};e.contexts?.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=Ap(e.contexts.trace.data,t,r)));e.spans&&(n.spans=e.spans.map(e=>({...e,...e.data&&{data:Ap(e.data,t,r)}})));e.contexts?.flags&&n.contexts&&(n.contexts.flags=Ap(e.contexts.flags,3,r));return n}(e,o,s):e))}function ah(e,t){return Zd().captureException(e,void 0)}function oh(e,t){return Zd().captureEvent(e,t)}function sh(e,t){ep().setTag(e,t)}function ch(e){const t=ep(),{user:r}=nh(t,Zd()),{userAgent:n}=gl.navigator||{},i=$d({user:r,...n&&{userAgent:n},...e}),a=t.getSession();return"ok"===a?.status&&Ld(a,{status:"exited"}),uh(),t.setSession(i),i}function uh(){const e=ep(),t=Zd().getSession()||e.getSession();t&&function(e){let t={};"ok"===e.status&&(t={status:"exited"}),Ld(e,t)}(t),lh(),e.setSession()}function lh(){const e=ep(),t=tp(),r=e.getSession();r&&t&&t.captureSession(r)}function dh(e=!1){e?uh():lh()}function ph(e,t,r){return t||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){const r={sentry_version:"7"};return e.publicKey&&(r.sentry_key=e.publicKey),t&&(r.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(r).toString()}(e,r)}`}const hh=[];function fh(e){const t=e.defaultIntegrations||[],r=e.integrations;let n;if(t.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(r))n=[...t,...r];else if("function"==typeof r){const e=r(t);n=Array.isArray(e)?e:[e]}else n=t;return function(e){const t={};return e.forEach(e=>{const{name:r}=e,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)}),Object.values(t)}(n)}function mh(e,t){for(const r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function _h(e,t,r){if(r[t.name])yl&&Nl.log(`Integration skipped because it was already installed: ${t.name}`);else{if(r[t.name]=t,hh.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),hh.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if("function"==typeof t.processEvent){const r=t.processEvent.bind(t),n=Object.assign((t,n)=>r(t,n,e),{id:t.name});e.addEventProcessor(n)}yl&&Nl.log(`Integration installed: ${t.name}`)}}function vh(e,t){const r=t??function(e){return yh().get(e)}(e)??[];if(0===r.length)return;const n=e.getOptions(),i=function(e,t,r,n){const i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(i.dsn=pp(n)),Fp(i,[(a=e,[{type:"log",item_count:a.length,content_type:"application/vnd.sentry.items.log+json"},{items:a}])]);var a}(r,n._metadata,n.tunnel,e.getDsn());yh().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function yh(){return xl("clientToLogBufferMap",()=>/* @__PURE__ */new WeakMap)}function gh(e,t){const r=t??function(e){return bh().get(e)}(e)??[];if(0===r.length)return;const n=e.getOptions(),i=function(e,t,r,n){const i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(i.dsn=pp(n)),Fp(i,[(a=e,[{type:"trace_metric",item_count:a.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:a}])]);var a}(r,n._metadata,n.tunnel,e.getDsn());bh().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(i)}function bh(){return xl("clientToMetricBufferMap",()=>/* @__PURE__ */new WeakMap)}function kh(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}const wh=/* @__PURE__ */Symbol.for("SentryBufferFullError");function xh(e=100){const t=/* @__PURE__ */new Set;function r(e){t.delete(e)}return{get $(){return Array.from(t)},add:function(n){if(!(t.size<e))return Wp(wh);const i=n();return t.add(i),i.then(()=>r(i),()=>r(i)),i},drain:function(e){if(!t.size)return Qp(!0);const r=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return r;const n=[r,new Promise(t=>kh(setTimeout(()=>t(!1),e)))];return Promise.race(n)}}}function Sh(e,{statusCode:t,headers:r},n=Sd()){const i={...e},a=r?.["x-sentry-rate-limits"],o=r?.["retry-after"];if(a)for(const s of a.trim().split(",")){const[e,t,,,r]=s.split(":",5),a=parseInt(e,10),o=1e3*(isNaN(a)?60:a);if(t)for(const s of t.split(";"))"metric_bucket"===s&&r&&!r.split(";").includes("custom")||(i[s]=n+o);else i.all=n+o}else o?i.all=n+function(e,t=Sd()){const r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;const n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}(o,n):429===t&&(i.all=n+6e4);return i}function Eh(e,t,r=xh(e.bufferSize||64)){let n={};return{send:function(i){const a=[];if(Mp(i,(t,r)=>{const i=Vp(r);!function(e,t,r=Sd()){return function(e,t){return e[t]||e.all||0}(e,t)>r}(n,i)?a.push(t):e.recordDroppedEvent("ratelimit_backoff",i)}),0===a.length)return Promise.resolve({});const o=Fp(i[0],a),s=t=>{!function(e,t){return Mp(e,(e,r)=>t.includes(r))}(o,["client_report"])?Mp(o,(r,n)=>{e.recordDroppedEvent(t,Vp(n))}):yl&&Nl.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`)};return r.add(()=>t({body:Lp(o)}).then(e=>413===e.statusCode?(yl&&Nl.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),s("send_error"),e):(yl&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&Nl.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=Sh(n,e),e),e=>{throw s("network_error"),yl&&Nl.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===wh)return yl&&Nl.error("Skipped sending event because buffer is full."),s("queue_overflow"),Promise.resolve({});throw e})},flush:e=>r.drain(e)}}function jh(e){const t=[];e.message&&t.push(e.message);try{const r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch{}return t}const Oh="Not capturing exception because it's already been captured.",Th="Discarded session because of missing or non-string release",Dh=/* @__PURE__ */Symbol.for("SentryInternalError"),Nh=/* @__PURE__ */Symbol.for("SentryDoNotSendEventError");function Ih(e){return{message:e,[Dh]:!0}}function Ah(e){return{message:e,[Nh]:!0}}function Ch(e){return!!e&&"object"==typeof e&&Dh in e}function Ph(e){return!!e&&"object"==typeof e&&Nh in e}function Fh(e,t,r,n,i){let a,o=0,s=!1;e.on(r,()=>{o=0,clearTimeout(a),s=!1}),e.on(t,t=>{o+=n(t),o>=8e5?i(e):s||(s=!0,a=kh(setTimeout(()=>{i(e)},5e3)))}),e.on("flush",()=>{i(e)})}class Rh{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=xh(e.transportOptions?.bufferSize??64),e.dsn?this._dsn=mp(e.dsn):yl&&Nl.warn("No DSN provided, client will not send events."),this._dsn){const t=ph(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&Fh(this,"afterCaptureLog","flushLogs",zh,vh);(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&Fh(this,"afterCaptureMetric","flushMetrics",qh,gh)}captureException(e,t,r){const n=Dd();if(Pd(e))return yl&&Nl.log(Oh),n;const i={event_id:n,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,r)).then(e=>e),"error"),i.event_id}captureMessage(e,t,r,n){const i={event_id:Dd(),...r},a=td(e)?e:String(e),o=rd(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,n)),o?"unknown":"error"),i.event_id}captureEvent(e,t,r){const n=Dd();if(t?.originalException&&Pd(t.originalException))return yl&&Nl.log(Oh),n;const i={event_id:n,...t},a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,s=a.capturedSpanIsolationScope,c=Mh(e.type);return this._process(()=>this._captureEvent(e,i,o||r,s),c),i.event_id}captureSession(e){this.sendSession(e),Ld(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const t=this._transport;if(!t)return!0;this.emit("flush");const r=await this._isClientDoneProcessing(e),n=await t.flush(e);return r&&n}async close(e){vh(this);const t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];_h(this,e,this._integrations),t||mh(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=Up(e,this._dsn,this._options._metadata,this._options.tunnel);for(const n of t.attachments||[])r=Rp(r,qp(n));this.sendEnvelope(r).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){const{release:t,environment:r=Dp}=this._options;if("aggregates"in e){const n=e.attrs||{};if(!n.release&&!t)return void(yl&&Nl.warn(Th));n.release=n.release||t,n.environment=n.environment||r,e.attrs=n}else{if(!e.release&&!t)return void(yl&&Nl.warn(Th));e.release=e.release||t,e.environment=e.environment||r}this.emit("beforeSendSession",e);const n=function(e,t,r,n){const i=Bp(r);return Fp({sent_at:/* @__PURE__ */(new Date).toISOString(),...i&&{sdk:i},...!!n&&t&&{dsn:pp(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){const n=`${e}:${t}`;yl&&Nl.log(`Recording outcome: "${n}"${r>1?` (${r} times)`:""}`),this._outcomes[n]=(this._outcomes[n]||0)+r}}on(e,t){const r=this._hooks[e]=this._hooks[e]||/* @__PURE__ */new Set,n=(...e)=>t(...e);return r.add(n),()=>{r.delete(n)}}emit(e,...t){const r=this._hooks[e];r&&r.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(t){return yl&&Nl.error("Error while sending envelope:",t),{}}return yl&&Nl.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const r={};return t.forEach(t=>{t&&_h(e,t,r)}),r}(this,e),mh(this,e)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1;const i=t.exception?.values;if(i){n=!0,r=!1;for(const e of i)if(!1===e.mechanism?.handled){r=!0;break}}const a="ok"===e.status;(a&&0===e.errors||a&&r)&&(Ld(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n){const i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a?.length&&(t.integrations=a),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),ih(i,e,t,r,this,n).then(e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...rp(r)},...e.contexts};const n=function(e,t){const r=t.getPropagationContext();return r.dsc||Np(r.traceId,e)}(this,r);return e.sdkProcessingMetadata={dynamicSamplingContext:n,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},r=Zd(),n=ep()){return yl&&$h(e)&&Nl.log(`Captured error event \`${jh(e)[0]||"<unknown>"}\``),this._processEvent(e,t,r,n).then(e=>e.event_id,e=>{yl&&(Ph(e)?Nl.log(e.message):Ch(e)?Nl.warn(e.message):Nl.warn(e))})}_processEvent(e,t,r,n){const i=this.getOptions(),{sampleRate:a}=i,o=Lh(e),s=$h(e),c=`before send for type \`${e.type||"error"}\``,u=void 0===a?void 0:function(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;return"number"!=typeof t||isNaN(t)||t<0||t>1?void 0:t}(a);if(s&&"number"==typeof u&&xd()>u)return this.recordDroppedEvent("sample_rate","error"),Wp(Ah(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));const l=Mh(e.type);return this._prepareEvent(e,t,r,n).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",l),Ah("An event processor returned `null`, will not send event.");if(!0===t.data?.__sentry__)return e;const r=function(e,t,r,n){const{beforeSend:i,beforeSendTransaction:a,beforeSendSpan:o,ignoreSpans:s}=t;let c=r;if($h(c)&&i)return i(c,n);if(Lh(c)){if(o||s){const t=function(e){const{trace_id:t,parent_span_id:r,span_id:n,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:r,span_id:n??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:a,profile_id:o?.[np],exclusive_time:o?.[ip],measurements:e.measurements,is_segment:!0}}(c);if(s?.length&&jp(t,s))return null;if(o){const e=o(t);e?c=qd(r,{type:"transaction",timestamp:(u=e).timestamp,start_timestamp:u.start_timestamp,transaction:u.description,contexts:{trace:{trace_id:u.trace_id,span_id:u.span_id,parent_span_id:u.parent_span_id,op:u.op,status:u.status,origin:u.origin,data:{...u.data,...u.profile_id&&{[np]:u.profile_id},...u.exclusive_time&&{[ip]:u.exclusive_time}}}},measurements:u.measurements}):Sp()}if(c.spans){const t=[],r=c.spans;for(const e of r)if(s?.length&&jp(e,s))Op(r,e);else if(o){const r=o(e);r?t.push(r):(Sp(),t.push(e))}else t.push(e);const n=c.spans.length-t.length;n&&e.recordDroppedEvent("before_send","span",n),c.spans=t}}if(a){if(c.spans){const e=c.spans.length;c.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(c,n)}}var u;return c}(this,i,e,t);return function(e,t){const r=`${t} must return \`null\` or a valid event.`;if(ad(e))return e.then(e=>{if(!nd(e)&&null!==e)throw Ih(r);return e},e=>{throw Ih(`${t} rejected with ${e}`)});if(!nd(e)&&null!==e)throw Ih(r);return e}(r,c)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",l),o){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw Ah(`${c} returned \`null\`, will not send event.`)}const a=r.getSession()||n.getSession();if(s&&a&&this._updateSessionFromEvent(a,i),o){const e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const u=i.transaction_info;if(o&&u&&i.transaction!==e.transaction){const e="custom";i.transaction_info={...u,source:e}}return this.sendEvent(i,t),i}).then(null,e=>{if(Ph(e)||Ch(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),Ih(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===wh&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{const[r,n]=e.split(":");return{reason:r,category:n,quantity:t}})}_flushOutcomes(){yl&&Nl.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(yl&&Nl.log("No outcomes to send"));if(!this._dsn)return void(yl&&Nl.log("No dsn provided, will not send outcomes"));yl&&Nl.log("Sending outcomes:",e);const t=(r=e,Fp((n=this._options.tunnel&&pp(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:Fd(),discarded_events:r}]]));var r,n;this.sendEnvelope(t)}}function Mh(e){return"replay_event"===e?"replay":e||"error"}function $h(e){return void 0===e.type}function Lh(e){return"transaction"===e.type}function qh(e){let t=0;return e.name&&(t+=2*e.name.length),t+=8,t+Vh(e.attributes)}function zh(e){let t=0;return e.message&&(t+=2*e.message.length),t+Vh(e.attributes)}function Vh(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*Bh(e[0]):rd(e)?t+=Bh(e):t+=100}),t}function Bh(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:"boolean"==typeof e?4:0}function Uh(e){return function(e){return Gl(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__}(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function Qh(e,t){!0===t.debug&&(yl?Nl.enable():jl(()=>{}));Zd().update(t.initialScope);const r=new e(t);return function(e){Zd().setClient(e)}(r),r.init(),r}function Wh(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function Yh(e){"aggregates"in e?void 0===e.attrs?.ip_address&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}const Kh=100;function Hh(e,t){const r=tp(),n=ep();if(!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:a=Kh}=r.getOptions();if(a<=0)return;const o={timestamp:Fd(),...e},s=i?jl(()=>i(o,t)):o;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,t),n.addBreadcrumb(s,a))}let Gh;const Jh=/* @__PURE__ */new WeakMap,Xh=()=>({name:"FunctionToString",setupOnce(){Gh=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=_d(this),r=Jh.has(tp())&&void 0!==t?t:this;return Gh.apply(r,e)}}catch{}},setup(e){Jh.set(e,!0)}}),Zh=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],ef=(e={})=>{let t;return{name:"EventFilters",setup(r){const n=r.getOptions();t=rf(e,n)},processEvent(r,n,i){if(!t){const r=i.getOptions();t=rf(e,r)}return function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;const r=e.transaction;return!!r&&Td(r,t)}(e,t.ignoreTransactions))return yl&&Nl.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Id(e)}`),!0}else{if(function(e,t){if(!t?.length)return!1;return jh(e).some(e=>Td(e,t))}(e,t.ignoreErrors))return yl&&Nl.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Id(e)}`),!0;if(function(e){if(!e.exception?.values?.length)return!1;return!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)}(e))return yl&&Nl.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${Id(e)}`),!0;if(function(e,t){if(!t?.length)return!1;const r=nf(e);return!!r&&Td(r,t)}(e,t.denyUrls))return yl&&Nl.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Id(e)}.\nUrl: ${nf(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;const r=nf(e);return!r||Td(r,t)}(e,t.allowUrls))return yl&&Nl.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Id(e)}.\nUrl: ${nf(e)}`),!0}return!1}(r,t)?null:r}}},tf=(e={})=>({...ef(e),name:"InboundFilters"});function rf(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Zh],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function nf(e){try{const t=[...e.exception?.values??[]].reverse().find(e=>void 0===e.mechanism?.parent_id&&e.stacktrace?.frames?.length),r=t?.stacktrace?.frames;return r?function(e=[]){for(let t=e.length-1;t>=0;t--){const r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(r):null}catch{return yl&&Nl.error(`Cannot extract url for event ${Id(e)}`),null}}function af(e,t,r,n,i,a){if(!i.exception?.values||!a||!od(a.originalException,Error))return;const o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=of(e,t,n,a.originalException,r,i.exception.values,o,0))}function of(e,t,r,n,i,a,o,s){if(a.length>=r+1)return a;let c=[...a];if(od(n[i],Error)){cf(o,s,n);const a=e(t,n[i]),u=c.length;uf(a,i,u,s),c=of(e,t,r,n[i],i,[a,...c],a,u)}return sf(n)&&n.errors.forEach((a,u)=>{if(od(a,Error)){cf(o,s,n);const l=e(t,a),d=c.length;uf(l,`errors[${u}]`,d,s),c=of(e,t,r,a,i,[l,...c],l,d)}}),c}function sf(e){return Array.isArray(e.errors)}function cf(e,t,r){e.mechanism={handled:!0,type:"auto.core.linked_errors",...sf(r)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function uf(e,t,r,n){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}function lf(){"console"in gl&&Sl.forEach(function(e){e in gl.console&&hd(gl.console,e,function(t){return El[e]=t,function(...t){Ul("console",{args:t,level:e});const r=El[e];r?.apply(gl.console,t)}})})}function df(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const pf=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const r=e.message,n=t.message;if(!r&&!n)return!1;if(r&&!n||!r&&n)return!1;if(r!==n)return!1;if(!ff(e,t))return!1;if(!hf(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const r=mf(t),n=mf(e);if(!r||!n)return!1;if(r.type!==n.type||r.value!==n.value)return!1;if(!ff(e,t))return!1;if(!hf(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return yl&&Nl.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function hf(e,t){let r=$l(e),n=$l(t);if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++){const e=n[i],t=r[i];if(e.filename!==t.filename||e.lineno!==t.lineno||e.colno!==t.colno||e.function!==t.function)return!1}return!0}function ff(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return!(r.join("")!==n.join(""))}catch{return!1}}function mf(e){return e.exception?.values?.[0]}const _f=()=>({name:"ConversationId",setup(e){e.on("spanStart",e=>{const t=Zd().getScopeData(),r=ep().getScopeData(),n=t.conversationId||r.conversationId;n&&e.setAttribute("gen_ai.conversation.id",n)})}});function vf(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}const yf=gl;function gf(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function bf(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in yf))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(gf(yf.fetch))return!0;let e=!1;const t=yf.document;if(t&&"function"==typeof t.createElement)try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=gf(r.contentWindow.fetch)),t.head.removeChild(r)}catch(r){yl&&Nl.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return e}function kf(e,t){const r="fetch";Vl(r,e),Bl(r,()=>function(e,t=!1){if(t&&!bf())return;hd(gl,"fetch",function(e){return function(...t){const r=new Error,{method:n,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,r]=e;return{url:xf(t),method:wf(r,"method")?String(r.method).toUpperCase():cd(t)&&wf(t,"method")?String(t.method).toUpperCase():"GET"}}const t=e[0];return{url:xf(t),method:wf(t,"method")?String(t.method).toUpperCase():"GET"}}(t),a={args:t,fetchData:{method:n,url:i},startTimestamp:1e3*Md(),virtualError:r,headers:Sf(t)};return Ul("fetch",{...a}),e.apply(gl,t).then(async e=>(Ul("fetch",{...a,endTimestamp:1e3*Md(),response:e}),e),e=>{Ul("fetch",{...a,endTimestamp:1e3*Md(),error:e}),Gl(e)&&void 0===e.stack&&(e.stack=r.stack,fd(e,"framesToPop",1));const t=tp(),n=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==n&&e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{const t=new URL(a.fetchData.url).host;"always"===n?e.message=`${e.message} (${t})`:fd(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}(0,t))}function wf(e,t){return!!e&&"object"==typeof e&&!!e[t]}function xf(e){return"string"==typeof e?e:e?wf(e,"url")?e.url:e.toString?e.toString():"":""}function Sf(e){const[t,r]=e;try{if("object"==typeof r&&null!==r&&"headers"in r&&r.headers)return new Headers(r.headers);if(cd(t))return new Headers(t.headers)}catch{}}const Ef=gl;let jf=0;function Of(){return jf>0}function Tf(e,t={}){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(_d(e))return e}catch{return e}const r=function(...r){try{const n=r.map(e=>Tf(e,t));return e.apply(this,n)}catch(n){throw jf++,setTimeout(()=>{jf--}),function(...e){const t=Xd(kl());if(2===e.length){const[r,n]=e;return r?t.withSetScope(r,n):t.withScope(n)}t.withScope(e[0])}(e=>{e.addEventProcessor(e=>(t.mechanism&&(Ad(e,void 0),Cd(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),ah(n)}),n}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}md(r,e),fd(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch{}return r}function Df(e,t){const r=Af(e,t),n={type:Ff(t),value:Rf(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function Nf(e,t,r,n){const i=tp(),a=i?.getOptions().normalizeDepth,o=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const r=e[t];if(r instanceof Error)return r}return}(t),s={__serialized__:Cp(t,a)};if(o)return{exception:{values:[Df(e,o)]},extra:s};const c={exception:{values:[{type:id(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:Lf(t,{isUnhandledRejection:n})}]},extra:s};if(r){const t=Af(e,r);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}function If(e,t){return{exception:{values:[Df(e,t)]}}}function Af(e,t){const r=t.stacktrace||t.stack||"",n=function(e){if(e&&Cf.test(e.message))return 1;return 0}(t),i=function(e){if("number"==typeof e.framesToPop)return e.framesToPop;return 0}(t);try{return e(r,n,i)}catch{}return[]}const Cf=/Minified React error #\d+;/i;function Pf(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function Ff(e){const t=e?.name;if(!t&&Pf(e)){return e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception"}return t}function Rf(e){const t=e?.message;return Pf(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?Uh(t.error):Uh(e):"No error message"}function Mf(e,t,r,n,i){let a;if(Xl(t)&&t.error){return If(e,t.error)}if(Zl(t)||Jl(t,"DOMException")){const i=t;if("stack"in t)a=If(e,t);else{const t=i.name||(Zl(i)?"DOMError":"DOMException"),o=i.message?`${t}: ${i.message}`:t;a=$f(e,o,r,n),Ad(a,o)}return"code"in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}if(Gl(t))return If(e,t);if(nd(t)||id(t)){return a=Nf(e,t,r,i),Cd(a,{synthetic:!0}),a}return a=$f(e,t,r,n),Ad(a,`${t}`),Cd(a,{synthetic:!0}),a}function $f(e,t,r,n){const i={};if(n&&r){const n=Af(e,r);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]}),Cd(i,{synthetic:!0})}if(td(t)){const{__sentry_template_string__:e,__sentry_template_values__:r}=t;return i.logentry={message:e,params:r},i}return i.message=t,i}function Lf(e,{isUnhandledRejection:t}){const r=function(e){const t=Object.keys(vd(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}(e),n=t?"promise rejection":"exception";if(Xl(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if(id(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e)}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${r}`}class qf extends Rh{constructor(e){const t=(r=e,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Ef.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...r});var r;!function(e,t,r=[t],n="npm"){const i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=r.map(e=>({name:`${n}:@sentry/${e}`,version:bl})),i.version=bl)}(t,"browser",["browser"],Ef.SENTRY_SDK_SOURCE||"npm"),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?"auto":"never",...t._metadata.sdk.settings}),super(t);const{sendDefaultPii:n,sendClientReports:i,enableLogs:a,_experiments:o,enableMetrics:s}=this._options,c=s??o?.enableMetrics??!0;Ef.document&&(i||a||c)&&Ef.document.addEventListener("visibilitychange",()=>{"hidden"===Ef.document.visibilityState&&(i&&this._flushOutcomes(),a&&vh(this),c&&gh(this))}),n&&this.on("beforeSendSession",Yh)}eventFromException(e,t){return function(e,t,r,n){const i=Mf(e,t,r?.syntheticException||void 0,n);return Cd(i),i.level="error",r?.event_id&&(i.event_id=r.event_id),Qp(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return function(e,t,r="info",n,i){const a=$f(e,t,n?.syntheticException||void 0,i);return a.level=r,n?.event_id&&(a.event_id=n.event_id),Qp(a)}(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,n)}}const zf="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Vf=gl;let Bf,Uf,Qf,Wf;function Yf(){if(!Vf.document)return;const e=Ul.bind(null,"dom"),t=Kf(e,!0);Vf.document.addEventListener("click",t,!1),Vf.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const r=Vf,n=r[t]?.prototype;n?.hasOwnProperty?.("addEventListener")&&(hd(n,"addEventListener",function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{const n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=n[r]=n[r]||{refCount:0};if(!a.handler){const n=Kf(e);a.handler=n,t.call(this,r,n,i)}a.refCount++}catch{}return t.call(this,r,n,i)}}),hd(n,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{const r=this.__sentry_instrumentation_handlers__||{},i=r[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,n),i.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,r,n)}}))})}function Kf(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;const n=function(e){try{return e.target}catch{return null}}(r);if(function(e,t){return"keypress"===e&&(!t?.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(r.type,n))return;fd(r,"_sentryCaptured",!0),n&&!n._sentryId&&fd(n,"_sentryId",Dd());const i="keypress"===r.type?"input":r.type;if(!function(e){if(e.type!==Uf)return!1;try{if(!e.target||e.target._sentryId!==Qf)return!1}catch{}return!0}(r)){e({event:r,name:i,global:t}),Uf=r.type,Qf=n?n._sentryId:void 0}clearTimeout(Bf),Bf=Vf.setTimeout(()=>{Qf=void 0,Uf=void 0},1e3)}}function Hf(e){const t="history";Vl(t,e),Bl(t,Gf)}function Gf(){function e(e){return function(...t){const r=t.length>2?t[2]:void 0;if(r){const n=Wf,i=function(e){try{return new URL(e,Vf.location.origin).toString()}catch{return e}}(String(r));if(Wf=i,n===i)return e.apply(this,t);Ul("history",{from:n,to:i})}return e.apply(this,t)}}Vf.addEventListener("popstate",()=>{const e=Vf.location.href,t=Wf;if(Wf=e,t===e)return;Ul("history",{from:t,to:e})}),"history"in yf&&yf.history&&(hd(Vf.history,"pushState",e),hd(Vf.history,"replaceState",e))}const Jf={};const Xf="__sentry_xhr_v3__";function Zf(){if(!Vf.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){const n=new Error,i=1e3*Md(),a=ed(r[0])?r[0].toUpperCase():void 0,o=function(e){if(ed(e))return e;try{return e.toString()}catch{}return}(r[1]);if(!a||!o)return e.apply(t,r);t[Xf]={method:a,url:o,request_headers:{}},"POST"===a&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const s=()=>{const e=t[Xf];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}Ul("xhr",{endTimestamp:1e3*Md(),startTimestamp:i,xhr:t,virtualError:n})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(s(),e.apply(t,r))}):t.addEventListener("readystatechange",s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){const[n,i]=r,a=t[Xf];return a&&ed(n)&&ed(i)&&(a.request_headers[n.toLowerCase()]=i),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){const n=t[Xf];if(!n)return e.apply(t,r);void 0!==r[0]&&(n.body=r[0]);return Ul("xhr",{startTimestamp:1e3*Md(),xhr:t}),e.apply(t,r)}})}function em(e,t=function(e){const t=Jf[e];if(t)return t;let r=Vf[e];if(gf(r))return Jf[e]=r.bind(Vf);const n=Vf.document;if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const i=t.contentWindow;i?.[e]&&(r=i[e]),n.head.removeChild(t)}catch(i){zf&&Nl.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i)}return r?Jf[e]=r.bind(Vf):r}("fetch")){let r=0,n=0;return Eh(e,async function(i){const a=i.body.length;r+=a,n++;const o={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};try{const r=await t(e.url,o);return{statusCode:r.status,headers:{"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")}}}catch(s){throw Jf["fetch"]=void 0,s}finally{r-=a,n--}},xh(e.bufferSize||40))}const tm="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function rm(e,t,r,n){const i={filename:e,function:"<anonymous>"===t?Il:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==n&&(i.colno=n),i}const nm=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,im=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,am=/\((\S*)(?::(\d+))(?::(\d+))\)/,om=/at (.+?) ?\(data:(.+?),/,sm=[30,e=>{const t=e.match(om);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const r=nm.exec(e);if(r){const[,e,t,n]=r;return rm(e,Il,+t,+n)}const n=im.exec(e);if(n){if(0===n[2]?.indexOf("eval")){const e=am.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}const[e,t]=pm(n[1]||Il,n[2]);return rm(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],cm=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,um=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,lm=[50,e=>{const t=cm.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=um.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||Il;return[r,e]=pm(r,e),rm(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],dm=Pl(...[sm,lm]),pm=(e,t)=>{const r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:Il,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},hm=1024,fm=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var r;t.console&&function(e){const t="console";Vl(t,e),Bl(t,lf)}(function(e){return function(t){if(tp()!==e)return;const r={category:"console",data:{arguments:t.args,logger:"console"},level:df(t.level),message:jd(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${jd(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}Hh(r,{input:t.args,level:t.level})}}(e)),t.dom&&(r=function(e,t){return function(r){if(tp()!==e)return;let n,i,a="object"==typeof t?t.serializeAttribute:void 0,o="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;o&&o>hm&&(tm&&Nl.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`),o=hm),"string"==typeof a&&(a=[a]);try{const e=r.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;n=ld(t,{keyAttrs:a,maxStringLength:o}),i=function(e){if(!ud.HTMLElement)return null;let t=e;for(let r=0;r<5;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}(t)}catch{n="<unknown>"}if(0===n.length)return;const s={category:`ui.${r.name}`,message:n};i&&(s.data={"ui.component_name":i}),Hh(s,{event:r.event,name:r.name,global:r.global})}}(e,t.dom),Vl("dom",r),Bl("dom",Yf)),t.xhr&&function(e){Vl("xhr",e),Bl("xhr",Zf)}(function(e){return function(t){if(tp()!==e)return;const{startTimestamp:r,endTimestamp:n}=t,i=t.xhr[Xf];if(!r||!n||!i)return;const{method:a,url:o,status_code:s,body:c}=i,u={method:a,url:o,status_code:s},l={xhr:t.xhr,input:c,startTimestamp:r,endTimestamp:n},d={category:"xhr",data:u,type:"http",level:vf(s)};e.emit("beforeOutgoingRequestBreadcrumb",d,l),Hh(d,l)}}(e)),t.fetch&&kf(function(e){return function(t){if(tp()!==e)return;const{startTimestamp:r,endTimestamp:n}=t;if(n&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.fetchData.method,t.fetchData.url,t.error){const i=t.fetchData,a={data:t.error,input:t.args,startTimestamp:r,endTimestamp:n},o={category:"fetch",data:i,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",o,a),Hh(o,a)}else{const i=t.response,a={...t.fetchData,status_code:i?.status};t.fetchData.request_body_size,t.fetchData.response_body_size;const o={input:t.args,response:i,startTimestamp:r,endTimestamp:n},s={category:"fetch",data:a,type:"http",level:vf(a.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",s,o),Hh(s,o)}}}(e)),t.history&&Hf(function(e){return function(t){if(tp()!==e)return;let r=t.from,n=t.to;const i=Wh(Ef.location.href);let a=r?Wh(r):void 0;const o=Wh(n);a?.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),Hh({category:"navigation",data:{from:r,to:n}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){tp()===e&&Hh({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Id(t)},{event:t})}}(e))}}};const mm=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],_m=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&hd(Ef,"setTimeout",vm),t.setInterval&&hd(Ef,"setInterval",vm),t.requestAnimationFrame&&hd(Ef,"requestAnimationFrame",ym),t.XMLHttpRequest&&"XMLHttpRequest"in Ef&&hd(XMLHttpRequest.prototype,"send",gm);const e=t.eventTarget;if(e){(Array.isArray(e)?e:mm).forEach(e=>function(e,t){const r=Ef,n=r[e]?.prototype;if(!n?.hasOwnProperty?.("addEventListener"))return;hd(n,"addEventListener",function(r){return function(n,i,a){try{"function"==typeof i.handleEvent&&(i.handleEvent=Tf(i.handleEvent,{mechanism:{data:{handler:Ml(i),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&function(e,t,r){e&&"object"==typeof e&&"removeEventListener"in e&&"function"==typeof e.removeEventListener&&e.removeEventListener(t,r)}(this,n,i),r.apply(this,[n,Tf(i,{mechanism:{data:{handler:Ml(i),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),hd(n,"removeEventListener",function(e){return function(t,r,n){try{const i=r.__sentry_wrapped__;i&&e.call(this,t,i,n)}catch{}return e.call(this,t,r,n)}})}(e,t))}}}};function vm(e){return function(...t){const r=t[0];return t[0]=Tf(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Ml(e)}`}}),e.apply(this,t)}}function ym(e){return function(t){return e.apply(this,[Tf(t,{mechanism:{data:{handler:Ml(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function gm(e){return function(...t){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&hd(r,e,function(t){const r={mechanism:{data:{handler:Ml(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},n=_d(t);return n&&(r.mechanism.data.handler=Ml(n)),Tf(t,r)})}),e.apply(this,t)}}const bm=(e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===Ef.document)return void(tm&&Nl.warn("Using the `browserSessionIntegration` in non-browser environments is not supported."));ch({ignoreDuration:!0}),dh();const e=ep();let r=e.getUser();e.addScopeListener(e=>{const t=e.getUser();r?.id===t?.id&&r?.ip_address===t?.ip_address||(dh(),r=t)}),"route"===t&&Hf(({from:e,to:t})=>{e!==t&&(ch({ignoreDuration:!0}),dh())})}}},km=()=>({name:"CultureContext",preprocessEvent(e){const t=function(){try{const e=Ef.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})}});const wm=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){!function(e){const t="error";Vl(t,e),Bl(t,Wl)}(t=>{const{stackParser:r,attachStacktrace:n}=Sm();if(tp()!==e||Of())return;const{msg:i,url:a,line:o,column:s,error:c}=t,u=function(e,t,r,n){const i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[],u=n,l=r,d=function(e){if(!ed(e)||0===e.length)return;if(e.startsWith("data:"))return`<${function(e,t=!0){if(e.startsWith("data:")){const r=e.match(/^data:([^;,]+)/),n=r?r[1]:"text/plain",i=e.includes(";base64,"),a=e.indexOf(",");let o="";if(t&&-1!==a){const t=e.slice(a+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${n}${i?",base64":""}${o?`,${o}`:""}`}return e}(e,!1)}>`;return e}(t)??pd();0===c.length&&c.push({colno:u,filename:d,function:Il,in_app:!0,lineno:l});return e}(Mf(r,c||i,void 0,n,!1),a,o,s);u.level="error",oh(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}(e),xm("onerror")),t.onunhandledrejection&&(!function(e){!function(e){const t="unhandledrejection";Vl(t,e),Bl(t,Kl)}(t=>{const{stackParser:r,attachStacktrace:n}=Sm();if(tp()!==e||Of())return;const i=function(e){if(rd(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(t),a=rd(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:Mf(r,i,void 0,n,!0);a.level="error",oh(a,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}(e),xm("onunhandledrejection"))}}};function xm(e){tm&&Nl.log(`Global Handler attached: ${e}`)}function Sm(){const e=tp();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Em=()=>({name:"HttpContext",preprocessEvent(e){if(!Ef.navigator&&!Ef.location&&!Ef.document)return;const t=function(){const e=pd(),{referrer:t}=Ef.document||{},{userAgent:r}=Ef.navigator||{};return{url:e,headers:{...t&&{Referer:t},...r&&{"User-Agent":r}}}}(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}}}),jm=(e={})=>{const t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,i){af(Df,i.getOptions().stackParser,r,t,e,n)}}};function Om(){return!!function(){if(void 0===Ef.window)return!1;const e=Ef;if(e.nw)return!1;const t=e.chrome||e.browser;if(!t?.runtime?.id)return!1;const r=pd(),n=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(Ef===Ef.top&&n.some(e=>r.startsWith(`${e}://`)))}()&&(tm&&jl(()=>{}),!0)}function Tm(e={}){const t=!e.skipBrowserExtensionCheck&&Om();let r=null==e.defaultIntegrations?[tf(),Xh(),_f(),_m(),fm(),wm(),jm(),pf(),Em(),km(),bm()]:e.defaultIntegrations;const n={...e,enabled:!t&&e.enabled,stackParser:(i=e.stackParser||dm,Array.isArray(i)?Pl(...i):i),integrations:fh({integrations:e.integrations,defaultIntegrations:r}),transport:e.transport||em};var i;return Qh(qf,n)}function Dm(e){const t="undefined"!=typeof window?window.location.href:void 0;sh("portal_code",e.portalCode),sh("object_code",e.objectCode??""),sh("locale",e.locale??""),function(e,t){ep().setContext(e,t)}("bukazu",{portal_code:e.portalCode,object_code:e.objectCode??null,locale:e.locale??null,url:t??null})}function Nm(e){ah(e)}function Im(e){!function(e,t){const r=t;Zd().captureMessage(e,r,void 0)}(e,"error")}const Am=/* @__PURE__ */new WeakSet;function Cm(e,t=!1){Am.has(e.errors)||(Am.add(e.errors),Nm(e.errors));const r=/* @__PURE__ */E.jsxs("div",{className:"bukazu-error-message",children:[
562
- /* @__PURE__ */E.jsx("h2",{children:rc("something_went_wrong_please_try_again")}),
563
- /* @__PURE__ */E.jsx("ul",{children:e.errors.graphQLErrors.map(e=>/* @__PURE__ */E.jsx("li",{children:e.message},e.message))})]});return 1==t?/* @__PURE__ */E.jsx(vl,{show:!0,children:r}):r}const Pm=e=>"[object Object]"===Object.prototype.toString.call(e),Fm={code:"en-GB",formatDistance:jc,formatLong:{date:Oc({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:Oc({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Oc({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:Nc,localize:Ac,match:Fc,options:{weekStartsOn:1,firstWeekContainsDate:4}},Rm={en:Fm};function Mm(e,t){const r="undefined"!=typeof window?window.__localeId__:void 0;return hu(e,t,{locale:r&&Rm[r]||Rm.en||Fm})}function $m(e){return dl(e,"yyyy-MM-dd",/* @__PURE__ */new Date)}const Lm="EEEE dd MMMM yyyy",qm=n({locale:"nl",portalCode:"",objectCode:""});function zm({filters:e,PortalSite:t,limit:r,skip:n,onPageChange:a,activePage:o}){const{portalCode:s}=i(qm);let c=null,u=!1;e.departure_date&&e.arrival_date?(c=gc($m(e.departure_date),$m(e.arrival_date)),u=!0):e.arrival_date&&(c=1);let l=e.properties||[];l=l.map(e=>JSON.stringify(e));let d=l.join(","),p={id:s,country_id:e.countries||null,region_id:e.regions||null,city_id:e.cities,persons_min:Number(e.persons_min)||null,persons_max:Number(e.persons_max)||null,bedrooms_min:Number(e.bedrooms_min),bathrooms_min:Number(e.bathrooms_min),arrival_date:e.arrival_date,starts_at:e.arrival_date,ends_at:e.departure_date,no_nights:Number(c)||null,extra_search:e.extra_search,properties:d,weekprice_max:Number(e.weekprice_max)||null,limit:r,skip:n};const{loading:h,error:f,data:m}=_s(u?Rs:Fs,{variables:p});if(h)/* @__PURE__ */
561
+ /* @__PURE__ */E.jsx("div",{className:"bukazu-modal-footer",children:/* @__PURE__ */E.jsx("a",{onClick:()=>a(!1),children:nc("close")})})]})]})}):/* @__PURE__ */E.jsx("a",{className:"info-button",onClick:()=>a(!0),children:r})}const gl="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,bl=globalThis,kl="10.45.0";function wl(){return xl(bl),bl}function xl(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||kl,t[kl]=t[kl]||{}}function Sl(e,t,r=bl){const n=r.__SENTRY__=r.__SENTRY__||{},i=n[kl]=n[kl]||{};return i[e]||(i[e]=t())}const El=["debug","info","warn","error","log","assert","trace"],jl={};function Ol(e){if(!("console"in bl))return e();const t=bl.console,r={},n=Object.keys(jl);n.forEach(e=>{const n=jl[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}function Tl(){return Nl().enabled}function Dl(e,...t){gl&&Tl()&&Ol(()=>{bl.console[e](`Sentry Logger [${e}]:`,...t)})}function Nl(){return gl?Sl("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const Il={enable:function(){Nl().enabled=!0},disable:function(){Nl().enabled=!1},isEnabled:Tl,log:function(...e){Dl("log",...e)},warn:function(...e){Dl("warn",...e)},error:function(...e){Dl("error",...e)}},Al="?",Cl=/\(error: (.*)\)/,Pl=/captureMessage|captureException/;function Fl(...e){const t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,r=0,n=0)=>{const i=[],a=e.split("\n");for(let o=r;o<a.length;o++){let e=a[o];e.length>1024&&(e=e.slice(0,1024));const r=Cl.test(e)?e.replace(Cl,"$1"):e;if(!r.match(/\S*Error: /)){for(const e of t){const t=e(r);if(t){i.push(t);break}}if(i.length>=50+n)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(Rl(t).function||"")&&t.pop();t.reverse(),Pl.test(Rl(t).function||"")&&(t.pop(),Pl.test(Rl(t).function||"")&&t.pop());return t.slice(0,50).map(e=>({...e,filename:e.filename||Rl(t).filename,function:e.function||Al}))}(i.slice(n))}}function Rl(e){return e[e.length-1]||{}}const Ml="<anonymous>";function $l(e){try{return e&&"function"==typeof e&&e.name||Ml}catch{return Ml}}function Ll(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}function ql(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const zl={},Vl={};function Bl(e,t){zl[e]=zl[e]||[],zl[e].push(t)}function Ul(e,t){if(!Vl[e]){Vl[e]=!0;try{t()}catch(r){gl&&Il.error(`Error while instrumenting ${e}`,r)}}}function Ql(e,t){const r=e&&zl[e];if(r)for(const i of r)try{i(t)}catch(n){gl&&Il.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${$l(i)}\nError:`,n)}}let Wl=null;function Yl(){Wl=bl.onerror,bl.onerror=function(e,t,r,n,i){return Ql("error",{column:n,error:i,line:r,msg:e,url:t}),!!Wl&&Wl.apply(this,arguments)},bl.onerror.__SENTRY_INSTRUMENTED__=!0}let Kl=null;function Hl(){Kl=bl.onunhandledrejection,bl.onunhandledrejection=function(e){return Ql("unhandledrejection",e),!Kl||Kl.apply(this,arguments)},bl.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Gl=Object.prototype.toString;function Jl(e){switch(Gl.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return sd(e,Error)}}function Xl(e,t){return Gl.call(e)===`[object ${t}]`}function Zl(e){return Xl(e,"ErrorEvent")}function ed(e){return Xl(e,"DOMError")}function td(e){return Xl(e,"String")}function rd(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function nd(e){return null===e||rd(e)||"object"!=typeof e&&"function"!=typeof e}function id(e){return Xl(e,"Object")}function ad(e){return"undefined"!=typeof Event&&sd(e,Event)}function od(e){return Boolean(e?.then&&"function"==typeof e.then)}function sd(e,t){try{return e instanceof t}catch{return!1}}function cd(e){return!("object"!=typeof e||null===e||!(e.__isVue||e._isVue||e.__v_isVNode))}function ud(e){return"undefined"!=typeof Request&&sd(e,Request)}const ld=bl;function dd(e,t={}){if(!e)return"<unknown>";try{let r=e;const n=5,i=[];let a=0,o=0;const s=" > ",c=s.length;let u;const l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&a++<n&&(u=pd(r,l),!("html"===u||a>1&&o+i.length*c+u.length>=d));)i.push(u),o+=u.length,r=r.parentNode;return i.reverse().join(s)}catch{return"<unknown>"}}function pd(e,t){const r=e,n=[];if(!r?.tagName)return"";if(ld.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}n.push(r.tagName.toLowerCase());const i=t?.length?t.filter(e=>r.getAttribute(e)).map(e=>[e,r.getAttribute(e)]):null;if(i?.length)i.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{r.id&&n.push(`#${r.id}`);const e=r.className;if(e&&td(e)){const t=e.split(/\s+/);for(const e of t)n.push(`.${e}`)}}for(const a of["aria-label","type","name","title","alt"]){const e=r.getAttribute(a);e&&n.push(`[${a}="${e}"]`)}return n.join("")}function hd(){try{return ld.document.location.href}catch{return""}}function fd(e,t,r){if(!(t in e))return;const n=e[t];if("function"!=typeof n)return;const i=r(n);"function"==typeof i&&_d(i,n);try{e[t]=i}catch{gl&&Il.log(`Failed to replace method "${t}" in object`,e)}}function md(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{gl&&Il.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function _d(e,t){try{const r=t.prototype||{};e.prototype=t.prototype=r,md(e,"__sentry_original__",t)}catch{}}function vd(e){return e.__sentry_original__}function yd(e){if(Jl(e))return{message:e.message,name:e.name,stack:e.stack,...bd(e)};if(ad(e)){const t={type:e.type,target:gd(e.target),currentTarget:gd(e.currentTarget),...bd(e)};return"undefined"!=typeof CustomEvent&&sd(e,CustomEvent)&&(t.detail=e.detail),t}return e}function gd(e){try{return t=e,"undefined"!=typeof Element&&sd(t,Element)?dd(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}var t}function bd(e){return"object"==typeof e&&null!==e?Object.fromEntries(Object.entries(e)):{}}let kd,wd;function xd(e){if(void 0!==kd)return kd?kd(e):e();const t=/* @__PURE__ */Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),r=bl;return t in r&&"function"==typeof r[t]?(kd=r[t],kd(e)):(kd=null,e())}function Sd(){return xd(()=>Math.random())}function Ed(){return xd(()=>Date.now())}function jd(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function Od(e,t){if(!Array.isArray(e))return"";const r=[];for(let n=0;n<e.length;n++){const t=e[n];try{cd(t)?r.push(ql(t)):r.push(String(t))}catch{r.push("[value cannot be serialized]")}}return r.join(t)}function Td(e,t,r=!1){return!!td(e)&&(Xl(t,"RegExp")?t.test(e):!!td(t)&&(r?e===t:e.includes(t)))}function Dd(e,t=[],r=!1){return t.some(t=>Td(e,t,r))}function Nd(e=function(){const e=bl;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return xd(()=>e.randomUUID()).replace(/-/g,"")}catch{}return wd||(wd="10000000100040008000100000000000"),wd.replace(/[018]/g,e=>(e^(16*Sd()&15)>>e/4).toString(16))}function Id(e){return e.exception?.values?.[0]}function Ad(e){const{message:t,event_id:r}=e;if(t)return t;const n=Id(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function Cd(e,t,r){const n=e.exception=e.exception||{},i=n.values=n.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function Pd(e,t){const r=Id(e);if(!r)return;const n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){const e={...n?.data,...t.data};r.mechanism.data=e}}function Fd(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{md(e,"__sentry_captured__",!0)}catch{}return!1}function Rd(){return Ed()/1e3}let Md;function $d(){return(Md??(Md=function(){const{performance:e}=bl;if(!e?.now||!e.timeOrigin)return Rd;const t=e.timeOrigin;return()=>(t+xd(()=>e.now()))/1e3}()))()}function Ld(e){const t=$d(),r={sid:Nd(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}(r)};return e&&qd(r,e),r}function qd(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||$d(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Nd()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function zd(e,t,r=2){if(!t||"object"!=typeof t||r<=0)return t;if(e&&0===Object.keys(t).length)return e;const n={...e};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=zd(n[i],t[i],r-1));return n}function Vd(){return Nd()}function Bd(){return Nd().substring(16)}const Ud="_sentrySpan";function Qd(e,t){t?md(e,Ud,t):delete e[Ud]}function Wd(e){return e[Ud]}class Yd{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Vd(),sampleRand:Sd()}}clone(){const e=new Yd;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,Qd(e,Wd(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&qd(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,r=t instanceof Yd?t.getScopeData():id(t)?e:void 0,{tags:n,attributes:i,extra:a,user:o,contexts:s,level:c,fingerprint:u=[],propagationContext:l,conversationId:d}=r||{};return this._tags={...this._tags,...n},this._attributes={...this._attributes,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,Qd(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Vd(),sampleRand:Sd()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const r="number"==typeof t?t:100;if(r<=0)return this;const n={timestamp:Rd(),...e,message:e.message?jd(e.message,2048):e.message};return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Wd(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=zd(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const r=t?.event_id||Nd();if(!this._client)return gl&&Il.warn("No client configured on scope - will not capture exception!"),r;const n=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:r},this),r}captureMessage(e,t,r){const n=r?.event_id||Nd();if(!this._client)return gl&&Il.warn("No client configured on scope - will not capture message!"),n;const i=r?.syntheticException??new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...r,event_id:n},this),n}captureEvent(e,t){const r=e.event_id||t?.event_id||Nd();return this._client?(this._client.captureEvent(e,{...t,event_id:r},this),r):(gl&&Il.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}class Kd{constructor(e,t){let r,n;r=e||new Yd,n=t||new Yd,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){const t=this._pushScope();let r;try{r=e(t)}catch(n){throw this._popScope(),n}return od(r)?r.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function Hd(){const e=xl(wl());return e.stack=e.stack||new Kd(Sl("defaultCurrentScope",()=>new Yd),Sl("defaultIsolationScope",()=>new Yd))}function Gd(e){return Hd().withScope(e)}function Jd(e,t){const r=Hd();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function Xd(e){return Hd().withScope(()=>e(Hd().getIsolationScope()))}function Zd(e){const t=xl(e);return t.acs?t.acs:{withIsolationScope:Xd,withScope:Gd,withSetScope:Jd,withSetIsolationScope:(e,t)=>Xd(t),getCurrentScope:()=>Hd().getScope(),getIsolationScope:()=>Hd().getIsolationScope()}}function ep(){return Zd(wl()).getCurrentScope()}function tp(){return Zd(wl()).getIsolationScope()}function rp(){return ep().getClient()}function np(e){const t=e.getPropagationContext(),{traceId:r,parentSpanId:n,propagationSpanId:i}=t,a={trace_id:r,span_id:i||Bd()};return n&&(a.parent_span_id=n),a}const ip="sentry.profile_id",ap="sentry.exclusive_time";function op(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}function sp(e){const t=e;return{scope:t._sentryScope,isolationScope:op(t._sentryIsolationScope)}}const cp="sentry-";function up(e){const t=function(e){if(!e||!td(e)&&!Array.isArray(e))return;if(Array.isArray(e))return e.reduce((e,t)=>{const r=lp(t);return Object.entries(r).forEach(([t,r])=>{e[t]=r}),e},{});return lp(e)}(e);if(!t)return;const r=Object.entries(t).reduce((e,[t,r])=>{if(t.startsWith(cp)){e[t.slice(7)]=r}return e},{});return Object.keys(r).length>0?r:void 0}function lp(e){return e.split(",").map(e=>{const t=e.indexOf("=");if(-1===t)return[];return[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,r])=>(t&&r&&(e[t]=r),e),{})}const dp=/^o(\d+)\./,pp=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function hp(e,t=!1){const{host:r,path:n,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:""}@${r}${a?`:${a}`:""}/${n?`${n}/`:n}${o}`}function fp(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function mp(e){const t=e.getOptions(),{host:r}=e.getDsn()||{};let n;return t.orgId?n=String(t.orgId):r&&(n=function(e){const t=e.match(dp);return t?.[1]}(r)),n}function _p(e){const t="string"==typeof e?function(e){const t=pp.exec(e);if(!t)return void Ol(()=>{});const[r,n,i="",a="",o="",s=""]=t.slice(1);let c="",u=s;const l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const e=u.match(/^\d+/);e&&(u=e[0])}return fp({host:a,pass:i,path:c,projectId:u,port:o,protocol:r,publicKey:n})}(e):fp(e);if(t&&function(e){if(!gl)return!0;const{port:t,projectId:r,protocol:n}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(Il.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(r.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(n)?t&&isNaN(parseInt(t,10))&&(Il.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(Il.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),1):(Il.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),1)))}(t))return t}let vp=!1;function yp(e){const{spanId:t,traceId:r,isRemote:n}=e.spanContext(),i=n?t:wp(e).parent_span_id,a=sp(e).scope;return{parent_span_id:i,span_id:n?a?.getPropagationContext().propagationSpanId||Bd():t,trace_id:r}}function gp(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:r,...n},attributes:i})=>({span_id:e,trace_id:t,sampled:1===r,attributes:i,...n})):void 0}function bp(e){return"number"==typeof e?kp(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?kp(e.getTime()):$d()}function kp(e){return e>9999999999?e/1e3:e}function wp(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();const{spanId:t,traceId:r}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:n,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{span_id:t,trace_id:r,data:n,description:a,parent_span_id:"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0,start_timestamp:bp(i),timestamp:bp(o)||void 0,status:xp(s),op:n["sentry.op"],origin:n["sentry.origin"],links:gp(c)}}return{span_id:t,trace_id:r,start_timestamp:0,data:{}}}function xp(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"internal_error"}function Sp(e){return e._sentryRootSpan||e}function Ep(){vp||(Ol(()=>{}),vp=!0)}function jp(e){Il.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Op(e,t){if(!t?.length||!e.description)return!1;for(const r of t){if(Dp(r)){if(Td(e.description,r))return gl&&jp(e),!0;continue}if(!r.name&&!r.op)continue;const t=!r.name||Td(e.description,r.name),n=!r.op||e.op&&Td(e.op,r.op);if(t&&n)return gl&&jp(e),!0}return!1}function Tp(e,t){const r=t.parent_span_id,n=t.span_id;if(r)for(const i of e)i.parent_span_id===n&&(i.parent_span_id=r)}function Dp(e){return"string"==typeof e||e instanceof RegExp}const Np="production";function Ip(e,t){const r=t.getOptions(),{publicKey:n}=t.getDsn()||{},i={environment:r.environment||Np,release:r.release,public_key:n,trace_id:e,org_id:mp(t)};return t.emit("createDsc",i),i}function Ap(e){const t=rp();if(!t)return{};const r=Sp(e),n=wp(r),i=n.data,a=r.spanContext().traceState,o=a?.get("sentry.sample_rate")??i["sentry.sample_rate"]??i["sentry.previous_trace_sample_rate"];function s(e){return"number"!=typeof o&&"string"!=typeof o||(e.sample_rate=`${o}`),e}const c=r._frozenDsc;if(c)return s(c);const u=a?.get("sentry.dsc"),l=u&&up(u);if(l)return s(l);const d=Ip(e.spanContext().traceId,t),p=i["sentry.source"],h=n.description;return"url"!==p&&h&&(d.transaction=h),function(){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=rp()?.getOptions();return!(!e||null==e.tracesSampleRate&&!e.tracesSampler)}()&&(d.sampled=String(function(e){const{traceFlags:t}=e.spanContext();return 1===t}(r)),d.sample_rand=a?.get("sentry.sample_rand")??sp(r).scope?.getPropagationContext().sampleRand.toString()),s(d),t.emit("createDsc",d,r),d}function Cp(e,t=100,r=1/0){try{return Fp("",e,t,r)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function Pp(e,t=3,r=102400){const n=Cp(e,t);return i=n,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>r?Pp(e,t-1,r):n;var i}function Fp(e,t,r=1/0,n=1/0,i=function(){const e=/* @__PURE__ */new WeakSet;function t(t){return!!e.has(t)||(e.add(t),!1)}function r(t){e.delete(t)}return[t,r]}()){const[a,o]=i;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const s=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(cd(t))return ql(t);if(id(r=t)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r)return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${$l(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=function(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}var r}(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:r;if(0===c)return s.replace("object ","");if(a(t))return"[Circular ~]";const u=t;if(u&&"function"==typeof u.toJSON)try{return Fp("",u.toJSON(),c-1,n,i)}catch{}const l=Array.isArray(t)?[]:{};let d=0;const p=yd(t);for(const h in p){if(!Object.prototype.hasOwnProperty.call(p,h))continue;if(d>=n){l[h]="[MaxProperties ~]";break}const e=p[h];l[h]=Fp(h,e,c-1,n,i),d++}return o(t),l}function Rp(e,t=[]){return[e,t]}function Mp(e,t){const[r,n]=e;return[r,[...n,t]]}function $p(e,t){const r=e[1];for(const n of r){if(t(n,n[0].type))return!0}return!1}function Lp(e){const t=xl(bl);return t.encodePolyfill?t.encodePolyfill(e):(new TextEncoder).encode(e)}function qp(e){const[t,r]=e;let n=JSON.stringify(t);function i(e){"string"==typeof n?n="string"==typeof e?n+e:[Lp(n),e]:n.push("string"==typeof e?Lp(e):e)}for(const a of r){const[e,t]=a;if(i(`\n${JSON.stringify(e)}\n`),"string"==typeof t||t instanceof Uint8Array)i(t);else{let e;try{e=JSON.stringify(t)}catch{e=JSON.stringify(Cp(t))}i(e)}}return"string"==typeof n?n:function(e){const t=e.reduce((e,t)=>e+t.length,0),r=new Uint8Array(t);let n=0;for(const i of e)r.set(i,n),n+=i.length;return r}(n)}function zp(e){const t="string"==typeof e.data?Lp(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const Vp={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function Bp(e){return function(e){return e in Vp}(e)?Vp[e]:e}function Up(e){if(!e?.sdk)return;const{name:t,version:r}=e.sdk;return{name:t,version:r}}function Qp(e,t,r,n){const i=Up(r),a=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){if(!t)return e;const r=e.sdk||{};e.sdk={...r,name:r.name||t.name,version:r.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0}}(e,r?.sdk);const o=function(e,t,r,n){const i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:/* @__PURE__ */(new Date).toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:hp(n)},...i&&{trace:i}}}(e,i,n,t);delete e.sdkProcessingMetadata;return Rp(o,[[{type:a},e]])}function Wp(e){return new Kp(t=>{t(e)})}function Yp(e){return new Kp((t,r)=>{r(e)})}class Kp{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new Kp((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(i){n(i)}else r(t)},e=>{if(t)try{r(t(e))}catch(i){n(i)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new Kp((t,r)=>{let n,i;return this.then(t=>{i=!1,n=t,e&&e()},t=>{i=!0,n=t,e&&e()}).then(()=>{i?r(n):t(n)})})}_executeHandlers(){if(0===this._state)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){const t=(e,t)=>{0===this._state&&(od(t)?t.then(r,n):(this._state=e,this._value=t,this._executeHandlers()))},r=e=>{t(1,e)},n=e=>{t(2,e)};try{e(r,n)}catch(i){n(i)}}}function Hp(e,t,r,n=0){try{const i=Gp(t,r,e,n);return od(i)?i:Wp(i)}catch(i){return Yp(i)}}function Gp(e,t,r,n){const i=r[n];if(!e||!i)return e;const a=i({...e},t);return gl&&null===a&&Il.log(`Event processor "${i.id||"?"}" dropped event`),od(a)?a.then(e=>Gp(e,t,r,n+1)):Gp(a,t,r,n+1)}let Jp,Xp,Zp,eh;function th(e,t){const{fingerprint:r,span:n,breadcrumbs:i,sdkProcessingMetadata:a}=t;!function(e,t){const{extra:r,tags:n,user:i,contexts:a,level:o,transactionName:s}=t;Object.keys(r).length&&(e.extra={...r,...e.extra});Object.keys(n).length&&(e.tags={...n,...e.tags});Object.keys(i).length&&(e.user={...i,...e.user});Object.keys(a).length&&(e.contexts={...a,...e.contexts});o&&(e.level=o);s&&"transaction"!==e.type&&(e.transaction=s)}(e,t),n&&function(e,t){e.contexts={trace:yp(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Ap(t),...e.sdkProcessingMetadata};const r=Sp(t),n=wp(r).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,n),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint.length||delete e.fingerprint}(e,r),function(e,t){const r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}(e,i),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,a)}function rh(e,t){const{extra:r,tags:n,attributes:i,user:a,contexts:o,level:s,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:l,eventProcessors:d,attachments:p,propagationContext:h,transactionName:f,span:m}=t;nh(e,"extra",r),nh(e,"tags",n),nh(e,"attributes",i),nh(e,"user",a),nh(e,"contexts",o),e.sdkProcessingMetadata=zd(e.sdkProcessingMetadata,c,2),s&&(e.level=s),f&&(e.transactionName=f),m&&(e.span=m),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...h}}function nh(e,t,r){e[t]=zd(e[t],r,1)}function ih(e,t){const r=Sl("globalScope",()=>new Yd).getScopeData();return e&&rh(r,e.getScopeData()),t&&rh(r,t.getScopeData()),r}function ah(e,t,r,n,i,a){const{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||r.event_id||Nd(),timestamp:t.timestamp||Rd()},u=r.integrations||e.integrations.map(e=>e.name);!function(e,t){const{environment:r,release:n,dist:i,maxValueLength:a}=t;e.environment=e.environment||r||Np,!e.release&&n&&(e.release=n);!e.dist&&i&&(e.dist=i);const o=e.request;o?.url&&a&&(o.url=jd(o.url,a));a&&e.exception?.values?.forEach(e=>{e.value&&(e.value=jd(e.value,a))})}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,u),i&&i.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){const r=function(e){const t=bl._sentryDebugIds,r=bl._debugIds;if(!t&&!r)return{};const n=t?Object.keys(t):[],i=r?Object.keys(r):[];if(eh&&n.length===Xp&&i.length===Zp)return eh;Xp=n.length,Zp=i.length,eh={},Jp||(Jp={});const a=(t,r)=>{for(const n of t){const t=r[n],i=Jp?.[n];if(i&&eh&&t)eh[i[0]]=t,Jp&&(Jp[n]=[i[0],t]);else if(t){const r=e(n);for(let e=r.length-1;e>=0;e--){const i=r[e],a=i?.filename;if(a&&eh&&Jp){eh[a]=t,Jp[n]=[a,t];break}}}}};return t&&a(n,t),r&&a(i,r),eh}(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=r[e.filename])})})}(c,e.stackParser);const l=function(e,t){if(!t)return e;const r=e?e.clone():new Yd;return r.update(t),r}(n,r.captureContext);r.mechanism&&Pd(c,r.mechanism);const d=i?i.getEventProcessors():[],p=ih(a,l),h=[...r.attachments||[],...p.attachments];h.length&&(r.attachments=h),th(c,p);const f=[...d,...p.eventProcessors];return(r.data&&!0===r.data.__sentry__?Wp(c):Hp(f,c,r)).then(e=>(e&&function(e){const t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const r=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof o&&o>0?function(e,t,r){if(!e)return null;const n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:Cp(e.data,t,r)}}))},...e.user&&{user:Cp(e.user,t,r)},...e.contexts&&{contexts:Cp(e.contexts,t,r)},...e.extra&&{extra:Cp(e.extra,t,r)}};e.contexts?.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=Cp(e.contexts.trace.data,t,r)));e.spans&&(n.spans=e.spans.map(e=>({...e,...e.data&&{data:Cp(e.data,t,r)}})));e.contexts?.flags&&n.contexts&&(n.contexts.flags=Cp(e.contexts.flags,3,r));return n}(e,o,s):e))}function oh(e,t){return ep().captureException(e,void 0)}function sh(e,t){return ep().captureEvent(e,t)}function ch(e,t){tp().setTag(e,t)}function uh(e){const t=tp(),{user:r}=ih(t,ep()),{userAgent:n}=bl.navigator||{},i=Ld({user:r,...n&&{userAgent:n},...e}),a=t.getSession();return"ok"===a?.status&&qd(a,{status:"exited"}),lh(),t.setSession(i),i}function lh(){const e=tp(),t=ep().getSession()||e.getSession();t&&function(e){let t={};"ok"===e.status&&(t={status:"exited"}),qd(e,t)}(t),dh(),e.setSession()}function dh(){const e=tp(),t=rp(),r=e.getSession();r&&t&&t.captureSession(r)}function ph(e=!1){e?lh():dh()}function hh(e,t,r){return t||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){const r={sentry_version:"7"};return e.publicKey&&(r.sentry_key=e.publicKey),t&&(r.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(r).toString()}(e,r)}`}const fh=[];function mh(e){const t=e.defaultIntegrations||[],r=e.integrations;let n;if(t.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(r))n=[...t,...r];else if("function"==typeof r){const e=r(t);n=Array.isArray(e)?e:[e]}else n=t;return function(e){const t={};return e.forEach(e=>{const{name:r}=e,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)}),Object.values(t)}(n)}function _h(e,t){for(const r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function vh(e,t,r){if(r[t.name])gl&&Il.log(`Integration skipped because it was already installed: ${t.name}`);else{if(r[t.name]=t,fh.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),fh.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if("function"==typeof t.processEvent){const r=t.processEvent.bind(t),n=Object.assign((t,n)=>r(t,n,e),{id:t.name});e.addEventProcessor(n)}gl&&Il.log(`Integration installed: ${t.name}`)}}function yh(e,t){const r=t??function(e){return gh().get(e)}(e)??[];if(0===r.length)return;const n=e.getOptions(),i=function(e,t,r,n){const i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(i.dsn=hp(n)),Rp(i,[(a=e,[{type:"log",item_count:a.length,content_type:"application/vnd.sentry.items.log+json"},{items:a}])]);var a}(r,n._metadata,n.tunnel,e.getDsn());gh().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function gh(){return Sl("clientToLogBufferMap",()=>/* @__PURE__ */new WeakMap)}function bh(e,t){const r=t??function(e){return kh().get(e)}(e)??[];if(0===r.length)return;const n=e.getOptions(),i=function(e,t,r,n){const i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(i.dsn=hp(n)),Rp(i,[(a=e,[{type:"trace_metric",item_count:a.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:a}])]);var a}(r,n._metadata,n.tunnel,e.getDsn());kh().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(i)}function kh(){return Sl("clientToMetricBufferMap",()=>/* @__PURE__ */new WeakMap)}function wh(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}const xh=/* @__PURE__ */Symbol.for("SentryBufferFullError");function Sh(e=100){const t=/* @__PURE__ */new Set;function r(e){t.delete(e)}return{get $(){return Array.from(t)},add:function(n){if(!(t.size<e))return Yp(xh);const i=n();return t.add(i),i.then(()=>r(i),()=>r(i)),i},drain:function(e){if(!t.size)return Wp(!0);const r=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return r;const n=[r,new Promise(t=>wh(setTimeout(()=>t(!1),e)))];return Promise.race(n)}}}function Eh(e,{statusCode:t,headers:r},n=Ed()){const i={...e},a=r?.["x-sentry-rate-limits"],o=r?.["retry-after"];if(a)for(const s of a.trim().split(",")){const[e,t,,,r]=s.split(":",5),a=parseInt(e,10),o=1e3*(isNaN(a)?60:a);if(t)for(const s of t.split(";"))"metric_bucket"===s&&r&&!r.split(";").includes("custom")||(i[s]=n+o);else i.all=n+o}else o?i.all=n+function(e,t=Ed()){const r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;const n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}(o,n):429===t&&(i.all=n+6e4);return i}function jh(e,t,r=Sh(e.bufferSize||64)){let n={};return{send:function(i){const a=[];if($p(i,(t,r)=>{const i=Bp(r);!function(e,t,r=Ed()){return function(e,t){return e[t]||e.all||0}(e,t)>r}(n,i)?a.push(t):e.recordDroppedEvent("ratelimit_backoff",i)}),0===a.length)return Promise.resolve({});const o=Rp(i[0],a),s=t=>{!function(e,t){return $p(e,(e,r)=>t.includes(r))}(o,["client_report"])?$p(o,(r,n)=>{e.recordDroppedEvent(t,Bp(n))}):gl&&Il.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`)};return r.add(()=>t({body:qp(o)}).then(e=>413===e.statusCode?(gl&&Il.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),s("send_error"),e):(gl&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&Il.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=Eh(n,e),e),e=>{throw s("network_error"),gl&&Il.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===xh)return gl&&Il.error("Skipped sending event because buffer is full."),s("queue_overflow"),Promise.resolve({});throw e})},flush:e=>r.drain(e)}}function Oh(e){const t=[];e.message&&t.push(e.message);try{const r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch{}return t}const Th="Not capturing exception because it's already been captured.",Dh="Discarded session because of missing or non-string release",Nh=/* @__PURE__ */Symbol.for("SentryInternalError"),Ih=/* @__PURE__ */Symbol.for("SentryDoNotSendEventError");function Ah(e){return{message:e,[Nh]:!0}}function Ch(e){return{message:e,[Ih]:!0}}function Ph(e){return!!e&&"object"==typeof e&&Nh in e}function Fh(e){return!!e&&"object"==typeof e&&Ih in e}function Rh(e,t,r,n,i){let a,o=0,s=!1;e.on(r,()=>{o=0,clearTimeout(a),s=!1}),e.on(t,t=>{o+=n(t),o>=8e5?i(e):s||(s=!0,a=wh(setTimeout(()=>{i(e)},5e3)))}),e.on("flush",()=>{i(e)})}class Mh{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Sh(e.transportOptions?.bufferSize??64),e.dsn?this._dsn=_p(e.dsn):gl&&Il.warn("No DSN provided, client will not send events."),this._dsn){const t=hh(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&Rh(this,"afterCaptureLog","flushLogs",Vh,yh);(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&Rh(this,"afterCaptureMetric","flushMetrics",zh,bh)}captureException(e,t,r){const n=Nd();if(Fd(e))return gl&&Il.log(Th),n;const i={event_id:n,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,r)).then(e=>e),"error"),i.event_id}captureMessage(e,t,r,n){const i={event_id:Nd(),...r},a=rd(e)?e:String(e),o=nd(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,n)),o?"unknown":"error"),i.event_id}captureEvent(e,t,r){const n=Nd();if(t?.originalException&&Fd(t.originalException))return gl&&Il.log(Th),n;const i={event_id:n,...t},a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,s=a.capturedSpanIsolationScope,c=$h(e.type);return this._process(()=>this._captureEvent(e,i,o||r,s),c),i.event_id}captureSession(e){this.sendSession(e),qd(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const t=this._transport;if(!t)return!0;this.emit("flush");const r=await this._isClientDoneProcessing(e),n=await t.flush(e);return r&&n}async close(e){yh(this);const t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];vh(this,e,this._integrations),t||_h(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=Qp(e,this._dsn,this._options._metadata,this._options.tunnel);for(const n of t.attachments||[])r=Mp(r,zp(n));this.sendEnvelope(r).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){const{release:t,environment:r=Np}=this._options;if("aggregates"in e){const n=e.attrs||{};if(!n.release&&!t)return void(gl&&Il.warn(Dh));n.release=n.release||t,n.environment=n.environment||r,e.attrs=n}else{if(!e.release&&!t)return void(gl&&Il.warn(Dh));e.release=e.release||t,e.environment=e.environment||r}this.emit("beforeSendSession",e);const n=function(e,t,r,n){const i=Up(r);return Rp({sent_at:/* @__PURE__ */(new Date).toISOString(),...i&&{sdk:i},...!!n&&t&&{dsn:hp(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){const n=`${e}:${t}`;gl&&Il.log(`Recording outcome: "${n}"${r>1?` (${r} times)`:""}`),this._outcomes[n]=(this._outcomes[n]||0)+r}}on(e,t){const r=this._hooks[e]=this._hooks[e]||/* @__PURE__ */new Set,n=(...e)=>t(...e);return r.add(n),()=>{r.delete(n)}}emit(e,...t){const r=this._hooks[e];r&&r.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(t){return gl&&Il.error("Error while sending envelope:",t),{}}return gl&&Il.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const r={};return t.forEach(t=>{t&&vh(e,t,r)}),r}(this,e),_h(this,e)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1;const i=t.exception?.values;if(i){n=!0,r=!1;for(const e of i)if(!1===e.mechanism?.handled){r=!0;break}}const a="ok"===e.status;(a&&0===e.errors||a&&r)&&(qd(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n){const i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a?.length&&(t.integrations=a),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),ah(i,e,t,r,this,n).then(e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...np(r)},...e.contexts};const n=function(e,t){const r=t.getPropagationContext();return r.dsc||Ip(r.traceId,e)}(this,r);return e.sdkProcessingMetadata={dynamicSamplingContext:n,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},r=ep(),n=tp()){return gl&&Lh(e)&&Il.log(`Captured error event \`${Oh(e)[0]||"<unknown>"}\``),this._processEvent(e,t,r,n).then(e=>e.event_id,e=>{gl&&(Fh(e)?Il.log(e.message):Ph(e)?Il.warn(e.message):Il.warn(e))})}_processEvent(e,t,r,n){const i=this.getOptions(),{sampleRate:a}=i,o=qh(e),s=Lh(e),c=`before send for type \`${e.type||"error"}\``,u=void 0===a?void 0:function(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;return"number"!=typeof t||isNaN(t)||t<0||t>1?void 0:t}(a);if(s&&"number"==typeof u&&Sd()>u)return this.recordDroppedEvent("sample_rate","error"),Yp(Ch(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));const l=$h(e.type);return this._prepareEvent(e,t,r,n).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",l),Ch("An event processor returned `null`, will not send event.");if(!0===t.data?.__sentry__)return e;const r=function(e,t,r,n){const{beforeSend:i,beforeSendTransaction:a,beforeSendSpan:o,ignoreSpans:s}=t;let c=r;if(Lh(c)&&i)return i(c,n);if(qh(c)){if(o||s){const t=function(e){const{trace_id:t,parent_span_id:r,span_id:n,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:r,span_id:n??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:a,profile_id:o?.[ip],exclusive_time:o?.[ap],measurements:e.measurements,is_segment:!0}}(c);if(s?.length&&Op(t,s))return null;if(o){const e=o(t);e?c=zd(r,{type:"transaction",timestamp:(u=e).timestamp,start_timestamp:u.start_timestamp,transaction:u.description,contexts:{trace:{trace_id:u.trace_id,span_id:u.span_id,parent_span_id:u.parent_span_id,op:u.op,status:u.status,origin:u.origin,data:{...u.data,...u.profile_id&&{[ip]:u.profile_id},...u.exclusive_time&&{[ap]:u.exclusive_time}}}},measurements:u.measurements}):Ep()}if(c.spans){const t=[],r=c.spans;for(const e of r)if(s?.length&&Op(e,s))Tp(r,e);else if(o){const r=o(e);r?t.push(r):(Ep(),t.push(e))}else t.push(e);const n=c.spans.length-t.length;n&&e.recordDroppedEvent("before_send","span",n),c.spans=t}}if(a){if(c.spans){const e=c.spans.length;c.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(c,n)}}var u;return c}(this,i,e,t);return function(e,t){const r=`${t} must return \`null\` or a valid event.`;if(od(e))return e.then(e=>{if(!id(e)&&null!==e)throw Ah(r);return e},e=>{throw Ah(`${t} rejected with ${e}`)});if(!id(e)&&null!==e)throw Ah(r);return e}(r,c)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",l),o){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw Ch(`${c} returned \`null\`, will not send event.`)}const a=r.getSession()||n.getSession();if(s&&a&&this._updateSessionFromEvent(a,i),o){const e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const u=i.transaction_info;if(o&&u&&i.transaction!==e.transaction){const e="custom";i.transaction_info={...u,source:e}}return this.sendEvent(i,t),i}).then(null,e=>{if(Fh(e)||Ph(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),Ah(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===xh&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{const[r,n]=e.split(":");return{reason:r,category:n,quantity:t}})}_flushOutcomes(){gl&&Il.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(gl&&Il.log("No outcomes to send"));if(!this._dsn)return void(gl&&Il.log("No dsn provided, will not send outcomes"));gl&&Il.log("Sending outcomes:",e);const t=(r=e,Rp((n=this._options.tunnel&&hp(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:Rd(),discarded_events:r}]]));var r,n;this.sendEnvelope(t)}}function $h(e){return"replay_event"===e?"replay":e||"error"}function Lh(e){return void 0===e.type}function qh(e){return"transaction"===e.type}function zh(e){let t=0;return e.name&&(t+=2*e.name.length),t+=8,t+Bh(e.attributes)}function Vh(e){let t=0;return e.message&&(t+=2*e.message.length),t+Bh(e.attributes)}function Bh(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*Uh(e[0]):nd(e)?t+=Uh(e):t+=100}),t}function Uh(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:"boolean"==typeof e?4:0}function Qh(e){return function(e){return Jl(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__}(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function Wh(e,t){!0===t.debug&&(gl?Il.enable():Ol(()=>{}));ep().update(t.initialScope);const r=new e(t);return function(e){ep().setClient(e)}(r),r.init(),r}function Yh(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function Kh(e){"aggregates"in e?void 0===e.attrs?.ip_address&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}const Hh=100;function Gh(e,t){const r=rp(),n=tp();if(!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:a=Hh}=r.getOptions();if(a<=0)return;const o={timestamp:Rd(),...e},s=i?Ol(()=>i(o,t)):o;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,t),n.addBreadcrumb(s,a))}let Jh;const Xh=/* @__PURE__ */new WeakMap,Zh=()=>({name:"FunctionToString",setupOnce(){Jh=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=vd(this),r=Xh.has(rp())&&void 0!==t?t:this;return Jh.apply(r,e)}}catch{}},setup(e){Xh.set(e,!0)}}),ef=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],tf=(e={})=>{let t;return{name:"EventFilters",setup(r){const n=r.getOptions();t=nf(e,n)},processEvent(r,n,i){if(!t){const r=i.getOptions();t=nf(e,r)}return function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;const r=e.transaction;return!!r&&Dd(r,t)}(e,t.ignoreTransactions))return gl&&Il.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Ad(e)}`),!0}else{if(function(e,t){if(!t?.length)return!1;return Oh(e).some(e=>Dd(e,t))}(e,t.ignoreErrors))return gl&&Il.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Ad(e)}`),!0;if(function(e){if(!e.exception?.values?.length)return!1;return!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)}(e))return gl&&Il.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${Ad(e)}`),!0;if(function(e,t){if(!t?.length)return!1;const r=af(e);return!!r&&Dd(r,t)}(e,t.denyUrls))return gl&&Il.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Ad(e)}.\nUrl: ${af(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;const r=af(e);return!r||Dd(r,t)}(e,t.allowUrls))return gl&&Il.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Ad(e)}.\nUrl: ${af(e)}`),!0}return!1}(r,t)?null:r}}},rf=(e={})=>({...tf(e),name:"InboundFilters"});function nf(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:ef],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function af(e){try{const t=[...e.exception?.values??[]].reverse().find(e=>void 0===e.mechanism?.parent_id&&e.stacktrace?.frames?.length),r=t?.stacktrace?.frames;return r?function(e=[]){for(let t=e.length-1;t>=0;t--){const r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(r):null}catch{return gl&&Il.error(`Cannot extract url for event ${Ad(e)}`),null}}function of(e,t,r,n,i,a){if(!i.exception?.values||!a||!sd(a.originalException,Error))return;const o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=sf(e,t,n,a.originalException,r,i.exception.values,o,0))}function sf(e,t,r,n,i,a,o,s){if(a.length>=r+1)return a;let c=[...a];if(sd(n[i],Error)){uf(o,s,n);const a=e(t,n[i]),u=c.length;lf(a,i,u,s),c=sf(e,t,r,n[i],i,[a,...c],a,u)}return cf(n)&&n.errors.forEach((a,u)=>{if(sd(a,Error)){uf(o,s,n);const l=e(t,a),d=c.length;lf(l,`errors[${u}]`,d,s),c=sf(e,t,r,a,i,[l,...c],l,d)}}),c}function cf(e){return Array.isArray(e.errors)}function uf(e,t,r){e.mechanism={handled:!0,type:"auto.core.linked_errors",...cf(r)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function lf(e,t,r,n){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}function df(){"console"in bl&&El.forEach(function(e){e in bl.console&&fd(bl.console,e,function(t){return jl[e]=t,function(...t){Ql("console",{args:t,level:e});const r=jl[e];r?.apply(bl.console,t)}})})}function pf(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const hf=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const r=e.message,n=t.message;if(!r&&!n)return!1;if(r&&!n||!r&&n)return!1;if(r!==n)return!1;if(!mf(e,t))return!1;if(!ff(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const r=_f(t),n=_f(e);if(!r||!n)return!1;if(r.type!==n.type||r.value!==n.value)return!1;if(!mf(e,t))return!1;if(!ff(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return gl&&Il.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function ff(e,t){let r=Ll(e),n=Ll(t);if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++){const e=n[i],t=r[i];if(e.filename!==t.filename||e.lineno!==t.lineno||e.colno!==t.colno||e.function!==t.function)return!1}return!0}function mf(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return!(r.join("")!==n.join(""))}catch{return!1}}function _f(e){return e.exception?.values?.[0]}const vf=()=>({name:"ConversationId",setup(e){e.on("spanStart",e=>{const t=ep().getScopeData(),r=tp().getScopeData(),n=t.conversationId||r.conversationId;n&&e.setAttribute("gen_ai.conversation.id",n)})}});function yf(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}const gf=bl;function bf(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function kf(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in gf))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(bf(gf.fetch))return!0;let e=!1;const t=gf.document;if(t&&"function"==typeof t.createElement)try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=bf(r.contentWindow.fetch)),t.head.removeChild(r)}catch(r){gl&&Il.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return e}function wf(e,t){const r="fetch";Bl(r,e),Ul(r,()=>function(e,t=!1){if(t&&!kf())return;fd(bl,"fetch",function(e){return function(...t){const r=new Error,{method:n,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,r]=e;return{url:Sf(t),method:xf(r,"method")?String(r.method).toUpperCase():ud(t)&&xf(t,"method")?String(t.method).toUpperCase():"GET"}}const t=e[0];return{url:Sf(t),method:xf(t,"method")?String(t.method).toUpperCase():"GET"}}(t),a={args:t,fetchData:{method:n,url:i},startTimestamp:1e3*$d(),virtualError:r,headers:Ef(t)};return Ql("fetch",{...a}),e.apply(bl,t).then(async e=>(Ql("fetch",{...a,endTimestamp:1e3*$d(),response:e}),e),e=>{Ql("fetch",{...a,endTimestamp:1e3*$d(),error:e}),Jl(e)&&void 0===e.stack&&(e.stack=r.stack,md(e,"framesToPop",1));const t=rp(),n=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==n&&e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{const t=new URL(a.fetchData.url).host;"always"===n?e.message=`${e.message} (${t})`:md(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}(0,t))}function xf(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Sf(e){return"string"==typeof e?e:e?xf(e,"url")?e.url:e.toString?e.toString():"":""}function Ef(e){const[t,r]=e;try{if("object"==typeof r&&null!==r&&"headers"in r&&r.headers)return new Headers(r.headers);if(ud(t))return new Headers(t.headers)}catch{}}const jf=bl;let Of=0;function Tf(){return Of>0}function Df(e,t={}){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(vd(e))return e}catch{return e}const r=function(...r){try{const n=r.map(e=>Df(e,t));return e.apply(this,n)}catch(n){throw Of++,setTimeout(()=>{Of--}),function(...e){const t=Zd(wl());if(2===e.length){const[r,n]=e;return r?t.withSetScope(r,n):t.withScope(n)}t.withScope(e[0])}(e=>{e.addEventProcessor(e=>(t.mechanism&&(Cd(e,void 0),Pd(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),oh(n)}),n}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}_d(r,e),md(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch{}return r}function Nf(e,t){const r=Cf(e,t),n={type:Rf(t),value:Mf(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function If(e,t,r,n){const i=rp(),a=i?.getOptions().normalizeDepth,o=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const r=e[t];if(r instanceof Error)return r}return}(t),s={__serialized__:Pp(t,a)};if(o)return{exception:{values:[Nf(e,o)]},extra:s};const c={exception:{values:[{type:ad(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:qf(t,{isUnhandledRejection:n})}]},extra:s};if(r){const t=Cf(e,r);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}function Af(e,t){return{exception:{values:[Nf(e,t)]}}}function Cf(e,t){const r=t.stacktrace||t.stack||"",n=function(e){if(e&&Pf.test(e.message))return 1;return 0}(t),i=function(e){if("number"==typeof e.framesToPop)return e.framesToPop;return 0}(t);try{return e(r,n,i)}catch{}return[]}const Pf=/Minified React error #\d+;/i;function Ff(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function Rf(e){const t=e?.name;if(!t&&Ff(e)){return e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception"}return t}function Mf(e){const t=e?.message;return Ff(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?Qh(t.error):Qh(e):"No error message"}function $f(e,t,r,n,i){let a;if(Zl(t)&&t.error){return Af(e,t.error)}if(ed(t)||Xl(t,"DOMException")){const i=t;if("stack"in t)a=Af(e,t);else{const t=i.name||(ed(i)?"DOMError":"DOMException"),o=i.message?`${t}: ${i.message}`:t;a=Lf(e,o,r,n),Cd(a,o)}return"code"in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}if(Jl(t))return Af(e,t);if(id(t)||ad(t)){return a=If(e,t,r,i),Pd(a,{synthetic:!0}),a}return a=Lf(e,t,r,n),Cd(a,`${t}`),Pd(a,{synthetic:!0}),a}function Lf(e,t,r,n){const i={};if(n&&r){const n=Cf(e,r);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]}),Pd(i,{synthetic:!0})}if(rd(t)){const{__sentry_template_string__:e,__sentry_template_values__:r}=t;return i.logentry={message:e,params:r},i}return i.message=t,i}function qf(e,{isUnhandledRejection:t}){const r=function(e){const t=Object.keys(yd(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}(e),n=t?"promise rejection":"exception";if(Zl(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if(ad(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e)}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${r}`}class zf extends Mh{constructor(e){const t=(r=e,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:jf.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...r});var r;!function(e,t,r=[t],n="npm"){const i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=r.map(e=>({name:`${n}:@sentry/${e}`,version:kl})),i.version=kl)}(t,"browser",["browser"],jf.SENTRY_SDK_SOURCE||"npm"),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?"auto":"never",...t._metadata.sdk.settings}),super(t);const{sendDefaultPii:n,sendClientReports:i,enableLogs:a,_experiments:o,enableMetrics:s}=this._options,c=s??o?.enableMetrics??!0;jf.document&&(i||a||c)&&jf.document.addEventListener("visibilitychange",()=>{"hidden"===jf.document.visibilityState&&(i&&this._flushOutcomes(),a&&yh(this),c&&bh(this))}),n&&this.on("beforeSendSession",Kh)}eventFromException(e,t){return function(e,t,r,n){const i=$f(e,t,r?.syntheticException||void 0,n);return Pd(i),i.level="error",r?.event_id&&(i.event_id=r.event_id),Wp(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return function(e,t,r="info",n,i){const a=Lf(e,t,n?.syntheticException||void 0,i);return a.level=r,n?.event_id&&(a.event_id=n.event_id),Wp(a)}(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,n)}}const Vf="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Bf=bl;let Uf,Qf,Wf,Yf;function Kf(){if(!Bf.document)return;const e=Ql.bind(null,"dom"),t=Hf(e,!0);Bf.document.addEventListener("click",t,!1),Bf.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const r=Bf,n=r[t]?.prototype;n?.hasOwnProperty?.("addEventListener")&&(fd(n,"addEventListener",function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{const n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=n[r]=n[r]||{refCount:0};if(!a.handler){const n=Hf(e);a.handler=n,t.call(this,r,n,i)}a.refCount++}catch{}return t.call(this,r,n,i)}}),fd(n,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{const r=this.__sentry_instrumentation_handlers__||{},i=r[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,n),i.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,r,n)}}))})}function Hf(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;const n=function(e){try{return e.target}catch{return null}}(r);if(function(e,t){return"keypress"===e&&(!t?.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(r.type,n))return;md(r,"_sentryCaptured",!0),n&&!n._sentryId&&md(n,"_sentryId",Nd());const i="keypress"===r.type?"input":r.type;if(!function(e){if(e.type!==Qf)return!1;try{if(!e.target||e.target._sentryId!==Wf)return!1}catch{}return!0}(r)){e({event:r,name:i,global:t}),Qf=r.type,Wf=n?n._sentryId:void 0}clearTimeout(Uf),Uf=Bf.setTimeout(()=>{Wf=void 0,Qf=void 0},1e3)}}function Gf(e){const t="history";Bl(t,e),Ul(t,Jf)}function Jf(){function e(e){return function(...t){const r=t.length>2?t[2]:void 0;if(r){const n=Yf,i=function(e){try{return new URL(e,Bf.location.origin).toString()}catch{return e}}(String(r));if(Yf=i,n===i)return e.apply(this,t);Ql("history",{from:n,to:i})}return e.apply(this,t)}}Bf.addEventListener("popstate",()=>{const e=Bf.location.href,t=Yf;if(Yf=e,t===e)return;Ql("history",{from:t,to:e})}),"history"in gf&&gf.history&&(fd(Bf.history,"pushState",e),fd(Bf.history,"replaceState",e))}const Xf={};const Zf="__sentry_xhr_v3__";function em(){if(!Bf.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){const n=new Error,i=1e3*$d(),a=td(r[0])?r[0].toUpperCase():void 0,o=function(e){if(td(e))return e;try{return e.toString()}catch{}return}(r[1]);if(!a||!o)return e.apply(t,r);t[Zf]={method:a,url:o,request_headers:{}},"POST"===a&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const s=()=>{const e=t[Zf];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}Ql("xhr",{endTimestamp:1e3*$d(),startTimestamp:i,xhr:t,virtualError:n})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(s(),e.apply(t,r))}):t.addEventListener("readystatechange",s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){const[n,i]=r,a=t[Zf];return a&&td(n)&&td(i)&&(a.request_headers[n.toLowerCase()]=i),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){const n=t[Zf];if(!n)return e.apply(t,r);void 0!==r[0]&&(n.body=r[0]);return Ql("xhr",{startTimestamp:1e3*$d(),xhr:t}),e.apply(t,r)}})}function tm(e,t=function(e){const t=Xf[e];if(t)return t;let r=Bf[e];if(bf(r))return Xf[e]=r.bind(Bf);const n=Bf.document;if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const i=t.contentWindow;i?.[e]&&(r=i[e]),n.head.removeChild(t)}catch(i){Vf&&Il.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i)}return r?Xf[e]=r.bind(Bf):r}("fetch")){let r=0,n=0;return jh(e,async function(i){const a=i.body.length;r+=a,n++;const o={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};try{const r=await t(e.url,o);return{statusCode:r.status,headers:{"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")}}}catch(s){throw Xf["fetch"]=void 0,s}finally{r-=a,n--}},Sh(e.bufferSize||40))}const rm="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function nm(e,t,r,n){const i={filename:e,function:"<anonymous>"===t?Al:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==n&&(i.colno=n),i}const im=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,am=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,om=/\((\S*)(?::(\d+))(?::(\d+))\)/,sm=/at (.+?) ?\(data:(.+?),/,cm=[30,e=>{const t=e.match(sm);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const r=im.exec(e);if(r){const[,e,t,n]=r;return nm(e,Al,+t,+n)}const n=am.exec(e);if(n){if(0===n[2]?.indexOf("eval")){const e=om.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}const[e,t]=hm(n[1]||Al,n[2]);return nm(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],um=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,lm=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,dm=[50,e=>{const t=um.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=lm.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||Al;return[r,e]=hm(r,e),nm(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],pm=Fl(...[cm,dm]),hm=(e,t)=>{const r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:Al,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},fm=1024,mm=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var r;t.console&&function(e){const t="console";Bl(t,e),Ul(t,df)}(function(e){return function(t){if(rp()!==e)return;const r={category:"console",data:{arguments:t.args,logger:"console"},level:pf(t.level),message:Od(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${Od(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}Gh(r,{input:t.args,level:t.level})}}(e)),t.dom&&(r=function(e,t){return function(r){if(rp()!==e)return;let n,i,a="object"==typeof t?t.serializeAttribute:void 0,o="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;o&&o>fm&&(rm&&Il.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`),o=fm),"string"==typeof a&&(a=[a]);try{const e=r.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;n=dd(t,{keyAttrs:a,maxStringLength:o}),i=function(e){if(!ld.HTMLElement)return null;let t=e;for(let r=0;r<5;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}(t)}catch{n="<unknown>"}if(0===n.length)return;const s={category:`ui.${r.name}`,message:n};i&&(s.data={"ui.component_name":i}),Gh(s,{event:r.event,name:r.name,global:r.global})}}(e,t.dom),Bl("dom",r),Ul("dom",Kf)),t.xhr&&function(e){Bl("xhr",e),Ul("xhr",em)}(function(e){return function(t){if(rp()!==e)return;const{startTimestamp:r,endTimestamp:n}=t,i=t.xhr[Zf];if(!r||!n||!i)return;const{method:a,url:o,status_code:s,body:c}=i,u={method:a,url:o,status_code:s},l={xhr:t.xhr,input:c,startTimestamp:r,endTimestamp:n},d={category:"xhr",data:u,type:"http",level:yf(s)};e.emit("beforeOutgoingRequestBreadcrumb",d,l),Gh(d,l)}}(e)),t.fetch&&wf(function(e){return function(t){if(rp()!==e)return;const{startTimestamp:r,endTimestamp:n}=t;if(n&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.fetchData.method,t.fetchData.url,t.error){const i=t.fetchData,a={data:t.error,input:t.args,startTimestamp:r,endTimestamp:n},o={category:"fetch",data:i,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",o,a),Gh(o,a)}else{const i=t.response,a={...t.fetchData,status_code:i?.status};t.fetchData.request_body_size,t.fetchData.response_body_size;const o={input:t.args,response:i,startTimestamp:r,endTimestamp:n},s={category:"fetch",data:a,type:"http",level:yf(a.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",s,o),Gh(s,o)}}}(e)),t.history&&Gf(function(e){return function(t){if(rp()!==e)return;let r=t.from,n=t.to;const i=Yh(jf.location.href);let a=r?Yh(r):void 0;const o=Yh(n);a?.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),Gh({category:"navigation",data:{from:r,to:n}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){rp()===e&&Gh({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Ad(t)},{event:t})}}(e))}}};const _m=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],vm=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&fd(jf,"setTimeout",ym),t.setInterval&&fd(jf,"setInterval",ym),t.requestAnimationFrame&&fd(jf,"requestAnimationFrame",gm),t.XMLHttpRequest&&"XMLHttpRequest"in jf&&fd(XMLHttpRequest.prototype,"send",bm);const e=t.eventTarget;if(e){(Array.isArray(e)?e:_m).forEach(e=>function(e,t){const r=jf,n=r[e]?.prototype;if(!n?.hasOwnProperty?.("addEventListener"))return;fd(n,"addEventListener",function(r){return function(n,i,a){try{"function"==typeof i.handleEvent&&(i.handleEvent=Df(i.handleEvent,{mechanism:{data:{handler:$l(i),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&function(e,t,r){e&&"object"==typeof e&&"removeEventListener"in e&&"function"==typeof e.removeEventListener&&e.removeEventListener(t,r)}(this,n,i),r.apply(this,[n,Df(i,{mechanism:{data:{handler:$l(i),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),fd(n,"removeEventListener",function(e){return function(t,r,n){try{const i=r.__sentry_wrapped__;i&&e.call(this,t,i,n)}catch{}return e.call(this,t,r,n)}})}(e,t))}}}};function ym(e){return function(...t){const r=t[0];return t[0]=Df(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${$l(e)}`}}),e.apply(this,t)}}function gm(e){return function(t){return e.apply(this,[Df(t,{mechanism:{data:{handler:$l(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function bm(e){return function(...t){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&fd(r,e,function(t){const r={mechanism:{data:{handler:$l(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},n=vd(t);return n&&(r.mechanism.data.handler=$l(n)),Df(t,r)})}),e.apply(this,t)}}const km=(e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===jf.document)return void(rm&&Il.warn("Using the `browserSessionIntegration` in non-browser environments is not supported."));uh({ignoreDuration:!0}),ph();const e=tp();let r=e.getUser();e.addScopeListener(e=>{const t=e.getUser();r?.id===t?.id&&r?.ip_address===t?.ip_address||(ph(),r=t)}),"route"===t&&Gf(({from:e,to:t})=>{e!==t&&(uh({ignoreDuration:!0}),ph())})}}},wm=()=>({name:"CultureContext",preprocessEvent(e){const t=function(){try{const e=jf.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})}});const xm=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){!function(e){const t="error";Bl(t,e),Ul(t,Yl)}(t=>{const{stackParser:r,attachStacktrace:n}=Em();if(rp()!==e||Tf())return;const{msg:i,url:a,line:o,column:s,error:c}=t,u=function(e,t,r,n){const i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[],u=n,l=r,d=function(e){if(!td(e)||0===e.length)return;if(e.startsWith("data:"))return`<${function(e,t=!0){if(e.startsWith("data:")){const r=e.match(/^data:([^;,]+)/),n=r?r[1]:"text/plain",i=e.includes(";base64,"),a=e.indexOf(",");let o="";if(t&&-1!==a){const t=e.slice(a+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${n}${i?",base64":""}${o?`,${o}`:""}`}return e}(e,!1)}>`;return e}(t)??hd();0===c.length&&c.push({colno:u,filename:d,function:Al,in_app:!0,lineno:l});return e}($f(r,c||i,void 0,n,!1),a,o,s);u.level="error",sh(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}(e),Sm("onerror")),t.onunhandledrejection&&(!function(e){!function(e){const t="unhandledrejection";Bl(t,e),Ul(t,Hl)}(t=>{const{stackParser:r,attachStacktrace:n}=Em();if(rp()!==e||Tf())return;const i=function(e){if(nd(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(t),a=nd(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:$f(r,i,void 0,n,!0);a.level="error",sh(a,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}(e),Sm("onunhandledrejection"))}}};function Sm(e){rm&&Il.log(`Global Handler attached: ${e}`)}function Em(){const e=rp();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const jm=()=>({name:"HttpContext",preprocessEvent(e){if(!jf.navigator&&!jf.location&&!jf.document)return;const t=function(){const e=hd(),{referrer:t}=jf.document||{},{userAgent:r}=jf.navigator||{};return{url:e,headers:{...t&&{Referer:t},...r&&{"User-Agent":r}}}}(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}}}),Om=(e={})=>{const t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,i){of(Nf,i.getOptions().stackParser,r,t,e,n)}}};function Tm(){return!!function(){if(void 0===jf.window)return!1;const e=jf;if(e.nw)return!1;const t=e.chrome||e.browser;if(!t?.runtime?.id)return!1;const r=hd(),n=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(jf===jf.top&&n.some(e=>r.startsWith(`${e}://`)))}()&&(rm&&Ol(()=>{}),!0)}function Dm(e={}){const t=!e.skipBrowserExtensionCheck&&Tm();let r=null==e.defaultIntegrations?[rf(),Zh(),vf(),vm(),mm(),xm(),Om(),hf(),jm(),wm(),km()]:e.defaultIntegrations;const n={...e,enabled:!t&&e.enabled,stackParser:(i=e.stackParser||pm,Array.isArray(i)?Fl(...i):i),integrations:mh({integrations:e.integrations,defaultIntegrations:r}),transport:e.transport||tm};var i;return Wh(zf,n)}function Nm(e){const t="undefined"!=typeof window?window.location.href:void 0;ch("portal_code",e.portalCode),ch("object_code",e.objectCode??""),ch("locale",e.locale??""),function(e,t){tp().setContext(e,t)}("bukazu",{portal_code:e.portalCode,object_code:e.objectCode??null,locale:e.locale??null,url:t??null})}function Im(e){oh(e)}function Am(e){!function(e,t){const r=t;ep().captureMessage(e,r,void 0)}(e,"error")}const Cm=/* @__PURE__ */new WeakSet;function Pm(e,t=!1){Cm.has(e.errors)||(Cm.add(e.errors),Im(e.errors));const r=/* @__PURE__ */E.jsxs("div",{className:"bukazu-error-message",children:[
562
+ /* @__PURE__ */E.jsx("h2",{children:nc("something_went_wrong_please_try_again")}),
563
+ /* @__PURE__ */E.jsx("ul",{children:e.errors.graphQLErrors.map(e=>/* @__PURE__ */E.jsx("li",{children:e.message},e.message))})]});return 1==t?/* @__PURE__ */E.jsx(yl,{show:!0,children:r}):r}const Fm=e=>"[object Object]"===Object.prototype.toString.call(e),Rm={code:"en-GB",formatDistance:Oc,formatLong:{date:Tc({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:Tc({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Tc({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:Ic,localize:Cc,match:Rc,options:{weekStartsOn:1,firstWeekContainsDate:4}},Mm={en:Rm};function $m(e,t){const r="undefined"!=typeof window?window.__localeId__:void 0;return fu(e,t,{locale:r&&Mm[r]||Mm.en||Rm})}function Lm(e){return pl(e,"yyyy-MM-dd",/* @__PURE__ */new Date)}const qm="EEEE dd MMMM yyyy",zm=n({locale:"nl",portalCode:"",objectCode:""});function Vm({filters:e,PortalSite:t,limit:r,skip:n,onPageChange:a,activePage:o}){const{portalCode:s}=i(zm);let c=null,u=!1;e.departure_date&&e.arrival_date?(c=bc(Lm(e.departure_date),Lm(e.arrival_date)),u=!0):e.arrival_date&&(c=1);let l=e.properties||[];l=l.map(e=>JSON.stringify(e));let d=l.join(","),p={id:s,country_id:e.countries||null,region_id:e.regions||null,city_id:e.cities,persons_min:Number(e.persons_min)||null,persons_max:Number(e.persons_max)||null,bedrooms_min:Number(e.bedrooms_min),bathrooms_min:Number(e.bathrooms_min),arrival_date:e.arrival_date,starts_at:e.arrival_date,ends_at:e.departure_date,no_nights:Number(c)||null,extra_search:e.extra_search,properties:d,weekprice_max:Number(e.weekprice_max)||null,limit:r,skip:n};const{loading:h,error:f,data:m}=vs(u?Ms:Rs,{variables:p});if(h)/* @__PURE__ */
564
564
  return E.jsx("div",{children:/* @__PURE__ */E.jsx(j,{})});if(f)/* @__PURE__ */
565
- return E.jsx("div",{children:/* @__PURE__ */E.jsx(Cm,{errors:f})});const _=/* @__PURE__ */E.jsx(_l,{variables:p,activePage:o,limit:r,onPageChange:a}),v=m.PortalSite.houses;/* @__PURE__ */
566
- return E.jsxs("div",{id:"results",className:t.options.filtersForm?t.options.filtersForm.mode:"",children:[_,0===v.length?/* @__PURE__ */E.jsx("div",{className:"bu-noresults",children:rc("no_results")}):null,v.map(e=>/* @__PURE__ */E.jsx(ml,{result:e,options:t.options.filtersForm},e.id)),_]})}async function Vm(e){const t=Bm("bu_portal_session"),r={...e,url:window.location.href,session_identifier:t};fetch("https://api.bukazu.com/tracking",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(e=>e.text()).then(e=>{!function(e,t,r){const n=/* @__PURE__ */new Date;n.setTime(n.getTime()+24*r*60*60*1e3);let i="expires="+n.toUTCString();document.cookie=e+"="+t+";"+i+";path=/"}("bu_portal_session",e,14)})}function Bm(e){let t=e+"=",r=decodeURIComponent(document.cookie).split(";");for(let n=0;n<r.length;n++){let e=r[n];for(;" "==e.charAt(0);)e=e.substring(1);if(0==e.indexOf(t))return e.substring(t.length,e.length)}return""}class Um extends a{constructor(e){super(e);let t=this.props.options.filtersForm?Number(this.props.options.filtersForm.no_results):20;this.state={filters:this.props.filters||{},activePage:1,limit:t,skip:0},this.onFilterChange=this.onFilterChange.bind(this),this.pageChange=this.pageChange.bind(this)}componentDidMount(){let e=localStorage.getItem("bukazuFilters"),t=localStorage.getItem("bukazuActivePage");e&&this.setState({filters:JSON.parse(e)}),t&&this.pageChange(parseInt(t)||0)}onFilterChange(e){let t=e;this.setState({filters:t}),localStorage.setItem("bukazuFilters",JSON.stringify(t)),this.pageChange(0)}pageChange(e){const{limit:t}=this.state;let r=e*t;localStorage.setItem("bukazuActivePage",e.toString()),this.setState({activePage:e,skip:r})}render(){const{filters:e,activePage:t,limit:r,skip:n}=this.state,{options:i,PortalSite:a,locale:o}=this.props;return Vm({portal_code:a.portal_code,interaction_type:"search_view",locale:o}),/* @__PURE__ */E.jsxs("div",{id:"search-page",className:i.filtersForm?"right"===i.filtersForm.location?"bu-reverse":"top"===i.filtersForm.location?"bu-column":"":"",children:[
567
- /* @__PURE__ */E.jsx(ic,{PortalSite:a,filters:e,onFilterChange:this.onFilterChange,options:i}),
568
- /* @__PURE__ */E.jsx(zm,{PortalSite:a,filters:e,activePage:t,onPageChange:this.pageChange,skip:n,limit:r})]})}}var Qm=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Wm}(e)}(e)};var Wm="function"==typeof Symbol&&Symbol.for?/* @__PURE__ */Symbol.for("react.element"):60103;function Ym(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Hm((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function Km(e,t,r){return e.concat(t).map(function(e){return Ym(e,r)})}function Hm(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||Km,r.isMergeableObject=r.isMergeableObject||Qm;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):function(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(t){n[t]=Ym(e[t],r)}),Object.keys(t).forEach(function(i){r.isMergeableObject(t[i])&&e[i]?n[i]=Hm(e[i],t[i],r):n[i]=Ym(t[i],r)}),n}(e,t,r):Ym(t,r)}Hm.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return Hm(e,r,t)},{})};var Gm=Hm,Jm="object"==typeof global&&global&&global.Object===Object&&global,Xm="object"==typeof self&&self&&self.Object===Object&&self,Zm=Jm||Xm||Function("return this")(),e_=Zm.Symbol,t_=Object.prototype,r_=t_.hasOwnProperty,n_=t_.toString,i_=e_?e_.toStringTag:void 0;var a_=Object.prototype.toString;var o_=e_?e_.toStringTag:void 0;function s_(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o_&&o_ in Object(e)?function(e){var t=r_.call(e,i_),r=e[i_];try{e[i_]=void 0;var n=!0}catch(a){}var i=n_.call(e);return n&&(t?e[i_]=r:delete e[i_]),i}(e):function(e){return a_.call(e)}(e)}function c_(e,t){return function(r){return e(t(r))}}var u_=c_(Object.getPrototypeOf,Object);function l_(e){return null!=e&&"object"==typeof e}var d_=Function.prototype,p_=Object.prototype,h_=d_.toString,f_=p_.hasOwnProperty,m_=h_.call(Object);function __(e){if(!l_(e)||"[object Object]"!=s_(e))return!1;var t=u_(e);if(null===t)return!0;var r=f_.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&h_.call(r)==m_}function v_(e,t){return e===t||e!=e&&t!=t}function y_(e,t){for(var r=e.length;r--;)if(v_(e[r][0],t))return r;return-1}var g_=Array.prototype.splice;function b_(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function k_(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}b_.prototype.clear=function(){this.__data__=[],this.size=0},b_.prototype.delete=function(e){var t=this.__data__,r=y_(t,e);return!(r<0)&&(r==t.length-1?t.pop():g_.call(t,r,1),--this.size,!0)},b_.prototype.get=function(e){var t=this.__data__,r=y_(t,e);return r<0?void 0:t[r][1]},b_.prototype.has=function(e){return y_(this.__data__,e)>-1},b_.prototype.set=function(e,t){var r=this.__data__,n=y_(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function w_(e){if(!k_(e))return!1;var t=s_(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var x_,S_=Zm["__core-js_shared__"],E_=(x_=/[^.]+$/.exec(S_&&S_.keys&&S_.keys.IE_PROTO||""))?"Symbol(src)_1."+x_:"";var j_=Function.prototype.toString;function O_(e){if(null!=e){try{return j_.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var T_=/^\[object .+?Constructor\]$/,D_=Function.prototype,N_=Object.prototype,I_=D_.toString,A_=N_.hasOwnProperty,C_=RegExp("^"+I_.call(A_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function P_(e){return!(!k_(e)||(t=e,E_&&E_ in t))&&(w_(e)?C_:T_).test(O_(e));var t}function F_(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return P_(r)?r:void 0}var R_=F_(Zm,"Map"),M_=F_(Object,"create");var $_=Object.prototype.hasOwnProperty;var L_=Object.prototype.hasOwnProperty;function q_(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function z_(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function V_(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}q_.prototype.clear=function(){this.__data__=M_?M_(null):{},this.size=0},q_.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},q_.prototype.get=function(e){var t=this.__data__;if(M_){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return $_.call(t,e)?t[e]:void 0},q_.prototype.has=function(e){var t=this.__data__;return M_?void 0!==t[e]:L_.call(t,e)},q_.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=M_&&void 0===t?"__lodash_hash_undefined__":t,this},V_.prototype.clear=function(){this.size=0,this.__data__={hash:new q_,map:new(R_||b_),string:new q_}},V_.prototype.delete=function(e){var t=z_(this,e).delete(e);return this.size-=t?1:0,t},V_.prototype.get=function(e){return z_(this,e).get(e)},V_.prototype.has=function(e){return z_(this,e).has(e)},V_.prototype.set=function(e,t){var r=z_(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function B_(e){var t=this.__data__=new b_(e);this.size=t.size}B_.prototype.clear=function(){this.__data__=new b_,this.size=0},B_.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},B_.prototype.get=function(e){return this.__data__.get(e)},B_.prototype.has=function(e){return this.__data__.has(e)},B_.prototype.set=function(e,t){var r=this.__data__;if(r instanceof b_){var n=r.__data__;if(!R_||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new V_(n)}return r.set(e,t),this.size=r.size,this};var U_=function(){try{var e=F_(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();function Q_(e,t,r){"__proto__"==t&&U_?U_(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var W_=Object.prototype.hasOwnProperty;function Y_(e,t,r){var n=e[t];W_.call(e,t)&&v_(n,r)&&(void 0!==r||t in e)||Q_(e,t,r)}function K_(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],c=void 0;void 0===c&&(c=e[s]),i?Q_(r,s,c):Y_(r,s,c)}return r}function H_(e){return l_(e)&&"[object Arguments]"==s_(e)}var G_=Object.prototype,J_=G_.hasOwnProperty,X_=G_.propertyIsEnumerable,Z_=H_(/* @__PURE__ */function(){return arguments}())?H_:function(e){return l_(e)&&J_.call(e,"callee")&&!X_.call(e,"callee")},ev=Array.isArray;var tv="object"==typeof exports&&exports&&!exports.nodeType&&exports,rv=tv&&"object"==typeof module&&module&&!module.nodeType&&module,nv=rv&&rv.exports===tv?Zm.Buffer:void 0,iv=(nv?nv.isBuffer:void 0)||function(){return!1},av=/^(?:0|[1-9]\d*)$/;function ov(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&av.test(e))&&e>-1&&e%1==0&&e<t}function sv(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var cv={};function uv(e){return function(t){return e(t)}}cv["[object Float32Array]"]=cv["[object Float64Array]"]=cv["[object Int8Array]"]=cv["[object Int16Array]"]=cv["[object Int32Array]"]=cv["[object Uint8Array]"]=cv["[object Uint8ClampedArray]"]=cv["[object Uint16Array]"]=cv["[object Uint32Array]"]=!0,cv["[object Arguments]"]=cv["[object Array]"]=cv["[object ArrayBuffer]"]=cv["[object Boolean]"]=cv["[object DataView]"]=cv["[object Date]"]=cv["[object Error]"]=cv["[object Function]"]=cv["[object Map]"]=cv["[object Number]"]=cv["[object Object]"]=cv["[object RegExp]"]=cv["[object Set]"]=cv["[object String]"]=cv["[object WeakMap]"]=!1;var lv="object"==typeof exports&&exports&&!exports.nodeType&&exports,dv=lv&&"object"==typeof module&&module&&!module.nodeType&&module,pv=dv&&dv.exports===lv&&Jm.process,hv=function(){try{var e=dv&&dv.require&&dv.require("util").types;return e||pv&&pv.binding&&pv.binding("util")}catch(t){}}(),fv=hv&&hv.isTypedArray,mv=fv?uv(fv):function(e){return l_(e)&&sv(e.length)&&!!cv[s_(e)]},_v=Object.prototype.hasOwnProperty;function vv(e,t){var r=ev(e),n=!r&&Z_(e),i=!r&&!n&&iv(e),a=!r&&!n&&!i&&mv(e),o=r||n||i||a,s=o?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=s.length;for(var u in e)!t&&!_v.call(e,u)||o&&("length"==u||i&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ov(u,c))||s.push(u);return s}var yv=Object.prototype;function gv(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||yv)}var bv=c_(Object.keys,Object),kv=Object.prototype.hasOwnProperty;function wv(e){return null!=e&&sv(e.length)&&!w_(e)}function xv(e){return wv(e)?vv(e):function(e){if(!gv(e))return bv(e);var t=[];for(var r in Object(e))kv.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}var Sv=Object.prototype.hasOwnProperty;function Ev(e){if(!k_(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=gv(e),r=[];for(var n in e)("constructor"!=n||!t&&Sv.call(e,n))&&r.push(n);return r}function jv(e){return wv(e)?vv(e,!0):Ev(e)}var Ov="object"==typeof exports&&exports&&!exports.nodeType&&exports,Tv=Ov&&"object"==typeof module&&module&&!module.nodeType&&module,Dv=Tv&&Tv.exports===Ov?Zm.Buffer:void 0,Nv=Dv?Dv.allocUnsafe:void 0;function Iv(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function Av(){return[]}var Cv=Object.prototype.propertyIsEnumerable,Pv=Object.getOwnPropertySymbols,Fv=Pv?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}(Pv(e),function(t){return Cv.call(e,t)}))}:Av;function Rv(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var Mv=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Rv(t,Fv(e)),e=u_(e);return t}:Av;function $v(e,t,r){var n=t(e);return ev(e)?n:Rv(n,r(e))}function Lv(e){return $v(e,xv,Fv)}function qv(e){return $v(e,jv,Mv)}var zv=F_(Zm,"DataView"),Vv=F_(Zm,"Promise"),Bv=F_(Zm,"Set"),Uv=F_(Zm,"WeakMap"),Qv="[object Map]",Wv="[object Promise]",Yv="[object Set]",Kv="[object WeakMap]",Hv="[object DataView]",Gv=O_(zv),Jv=O_(R_),Xv=O_(Vv),Zv=O_(Bv),ey=O_(Uv),ty=s_;(zv&&ty(new zv(new ArrayBuffer(1)))!=Hv||R_&&ty(new R_)!=Qv||Vv&&ty(Vv.resolve())!=Wv||Bv&&ty(new Bv)!=Yv||Uv&&ty(new Uv)!=Kv)&&(ty=function(e){var t=s_(e),r="[object Object]"==t?e.constructor:void 0,n=r?O_(r):"";if(n)switch(n){case Gv:return Hv;case Jv:return Qv;case Xv:return Wv;case Zv:return Yv;case ey:return Kv}return t});var ry=Object.prototype.hasOwnProperty;var ny=Zm.Uint8Array;function iy(e){var t=new e.constructor(e.byteLength);return new ny(t).set(new ny(e)),t}var ay=/\w*$/;var oy=e_?e_.prototype:void 0,sy=oy?oy.valueOf:void 0;function cy(e,t,r){var n,i,a,o=e.constructor;switch(t){case"[object ArrayBuffer]":return iy(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return function(e,t){var r=t?iy(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var r=t?iy(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,r);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return(a=new(i=e).constructor(i.source,ay.exec(i))).lastIndex=i.lastIndex,a;case"[object Symbol]":return n=e,sy?Object(sy.call(n)):{}}}var uy=Object.create,ly=/* @__PURE__ */function(){function e(){}return function(t){if(!k_(t))return{};if(uy)return uy(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var dy=hv&&hv.isMap,py=dy?uv(dy):function(e){return l_(e)&&"[object Map]"==ty(e)};var hy=hv&&hv.isSet,fy=hy?uv(hy):function(e){return l_(e)&&"[object Set]"==ty(e)},my="[object Arguments]",_y="[object Function]",vy="[object Object]",yy={};function gy(e,t,r,n,i,a){var o,s=1&t,c=2&t,u=4&t;if(void 0!==o)return o;if(!k_(e))return e;var l=ev(e);if(l){if(o=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&ry.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!s)return Iv(e,o)}else{var d=ty(e),p=d==_y||"[object GeneratorFunction]"==d;if(iv(e))return function(e,t){if(t)return e.slice();var r=e.length,n=Nv?Nv(r):new e.constructor(r);return e.copy(n),n}(e,s);if(d==vy||d==my||p&&!i){if(o=c||p?{}:function(e){return"function"!=typeof e.constructor||gv(e)?{}:ly(u_(e))}(e),!s)return c?function(e,t){return K_(e,Mv(e),t)}(e,function(e,t){return e&&K_(t,jv(t),e)}(o,e)):function(e,t){return K_(e,Fv(e),t)}(e,function(e,t){return e&&K_(t,xv(t),e)}(o,e))}else{if(!yy[d])return i?e:{};o=cy(e,d,s)}}a||(a=new B_);var h=a.get(e);if(h)return h;a.set(e,o),fy(e)?e.forEach(function(n){o.add(gy(n,t,r,n,e,a))}):py(e)&&e.forEach(function(n,i){o.set(i,gy(n,t,r,i,e,a))});var f=l?void 0:(u?c?qv:Lv:c?jv:xv)(e);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(f||e,function(n,i){f&&(n=e[i=n]),Y_(o,i,gy(n,t,r,i,e,a))}),o}yy[my]=yy["[object Array]"]=yy["[object ArrayBuffer]"]=yy["[object DataView]"]=yy["[object Boolean]"]=yy["[object Date]"]=yy["[object Float32Array]"]=yy["[object Float64Array]"]=yy["[object Int8Array]"]=yy["[object Int16Array]"]=yy["[object Int32Array]"]=yy["[object Map]"]=yy["[object Number]"]=yy[vy]=yy["[object RegExp]"]=yy["[object Set]"]=yy["[object String]"]=yy["[object Symbol]"]=yy["[object Uint8Array]"]=yy["[object Uint8ClampedArray]"]=yy["[object Uint16Array]"]=yy["[object Uint32Array]"]=!0,yy["[object Error]"]=yy[_y]=yy["[object WeakMap]"]=!1;var by,ky;function wy(e){return gy(e,5)}const xy=/* @__PURE__ */v(function(){if(ky)return by;ky=1;var e=Array.isArray,t=Object.keys,r=Object.prototype.hasOwnProperty,n="undefined"!=typeof Element;function i(a,o){if(a===o)return!0;if(a&&o&&"object"==typeof a&&"object"==typeof o){var s,c,u,l=e(a),d=e(o);if(l&&d){if((c=a.length)!=o.length)return!1;for(s=c;0!==s--;)if(!i(a[s],o[s]))return!1;return!0}if(l!=d)return!1;var p=a instanceof Date,h=o instanceof Date;if(p!=h)return!1;if(p&&h)return a.getTime()==o.getTime();var f=a instanceof RegExp,m=o instanceof RegExp;if(f!=m)return!1;if(f&&m)return a.toString()==o.toString();var _=t(a);if((c=_.length)!==t(o).length)return!1;for(s=c;0!==s--;)if(!r.call(o,_[s]))return!1;if(n&&a instanceof Element&&o instanceof Element)return a===o;for(s=c;0!==s--;)if(!("_owner"===(u=_[s])&&a.$$typeof||i(a[u],o[u])))return!1;return!0}return a!=a&&o!=o}return by=function(e,t){try{return i(e,t)}catch(r){if(r.message&&r.message.match(/stack|recursion/i)||-2146828260===r.number)return!1;throw r}}}());var Sy="production"===process.env.NODE_ENV;function Ey(e,t){if(!Sy){var r="Warning: "+t;try{throw Error(r)}catch(n){}}}function jy(e){return gy(e,4)}function Oy(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function Ty(e){return"symbol"==typeof e||l_(e)&&"[object Symbol]"==s_(e)}function Dy(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(Dy.Cache||V_),r}Dy.Cache=V_;var Ny,Iy,Ay,Cy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Py=/\\(\\)?/g,Fy=(Ny=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Cy,function(e,r,n,i){t.push(n?i.replace(Py,"$1"):r||e)}),t},Iy=Dy(Ny,function(e){return 500===Ay.size&&Ay.clear(),e}),Ay=Iy.cache,Iy);function Ry(e){if("string"==typeof e||Ty(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var My=e_?e_.prototype:void 0,$y=My?My.toString:void 0;function Ly(e){if("string"==typeof e)return e;if(ev(e))return Oy(e,Ly)+"";if(Ty(e))return $y?$y.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function qy(e){return ev(e)?Oy(e,Ry):Ty(e)?[e]:Iv(Fy(function(e){return null==e?"":Ly(e)}(e)))}var zy,Vy={exports:{}},By={};var Uy,Qy,Wy,Yy,Ky={};function Hy(){return Qy||(Qy=1,"production"===process.env.NODE_ENV?Vy.exports=function(){if(zy)return By;zy=1;var e="function"==typeof Symbol&&Symbol.for,t=e?/* @__PURE__ */Symbol.for("react.element"):60103,r=e?/* @__PURE__ */Symbol.for("react.portal"):60106,n=e?/* @__PURE__ */Symbol.for("react.fragment"):60107,i=e?/* @__PURE__ */Symbol.for("react.strict_mode"):60108,a=e?/* @__PURE__ */Symbol.for("react.profiler"):60114,o=e?/* @__PURE__ */Symbol.for("react.provider"):60109,s=e?/* @__PURE__ */Symbol.for("react.context"):60110,c=e?/* @__PURE__ */Symbol.for("react.async_mode"):60111,u=e?/* @__PURE__ */Symbol.for("react.concurrent_mode"):60111,l=e?/* @__PURE__ */Symbol.for("react.forward_ref"):60112,d=e?/* @__PURE__ */Symbol.for("react.suspense"):60113,p=e?/* @__PURE__ */Symbol.for("react.suspense_list"):60120,h=e?/* @__PURE__ */Symbol.for("react.memo"):60115,f=e?/* @__PURE__ */Symbol.for("react.lazy"):60116,m=e?/* @__PURE__ */Symbol.for("react.block"):60121,_=e?/* @__PURE__ */Symbol.for("react.fundamental"):60117,v=e?/* @__PURE__ */Symbol.for("react.responder"):60118,y=e?/* @__PURE__ */Symbol.for("react.scope"):60119;function g(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case c:case u:case n:case a:case i:case d:return e;default:switch(e=e&&e.$$typeof){case s:case l:case f:case h:case o:return e;default:return p}}case r:return p}}}function b(e){return g(e)===u}return By.AsyncMode=c,By.ConcurrentMode=u,By.ContextConsumer=s,By.ContextProvider=o,By.Element=t,By.ForwardRef=l,By.Fragment=n,By.Lazy=f,By.Memo=h,By.Portal=r,By.Profiler=a,By.StrictMode=i,By.Suspense=d,By.isAsyncMode=function(e){return b(e)||g(e)===c},By.isConcurrentMode=b,By.isContextConsumer=function(e){return g(e)===s},By.isContextProvider=function(e){return g(e)===o},By.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},By.isForwardRef=function(e){return g(e)===l},By.isFragment=function(e){return g(e)===n},By.isLazy=function(e){return g(e)===f},By.isMemo=function(e){return g(e)===h},By.isPortal=function(e){return g(e)===r},By.isProfiler=function(e){return g(e)===a},By.isStrictMode=function(e){return g(e)===i},By.isSuspense=function(e){return g(e)===d},By.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===u||e===a||e===i||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===o||e.$$typeof===s||e.$$typeof===l||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},By.typeOf=g,By}():Vy.exports=(Uy||(Uy=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?/* @__PURE__ */Symbol.for("react.element"):60103,r=e?/* @__PURE__ */Symbol.for("react.portal"):60106,n=e?/* @__PURE__ */Symbol.for("react.fragment"):60107,i=e?/* @__PURE__ */Symbol.for("react.strict_mode"):60108,a=e?/* @__PURE__ */Symbol.for("react.profiler"):60114,o=e?/* @__PURE__ */Symbol.for("react.provider"):60109,s=e?/* @__PURE__ */Symbol.for("react.context"):60110,c=e?/* @__PURE__ */Symbol.for("react.async_mode"):60111,u=e?/* @__PURE__ */Symbol.for("react.concurrent_mode"):60111,l=e?/* @__PURE__ */Symbol.for("react.forward_ref"):60112,d=e?/* @__PURE__ */Symbol.for("react.suspense"):60113,p=e?/* @__PURE__ */Symbol.for("react.suspense_list"):60120,h=e?/* @__PURE__ */Symbol.for("react.memo"):60115,f=e?/* @__PURE__ */Symbol.for("react.lazy"):60116,m=e?/* @__PURE__ */Symbol.for("react.block"):60121,_=e?/* @__PURE__ */Symbol.for("react.fundamental"):60117,v=e?/* @__PURE__ */Symbol.for("react.responder"):60118,y=e?/* @__PURE__ */Symbol.for("react.scope"):60119;function g(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var m=e.type;switch(m){case c:case u:case n:case a:case i:case d:return m;default:var _=m&&m.$$typeof;switch(_){case s:case l:case f:case h:case o:return _;default:return p}}case r:return p}}}var b=c,k=u,w=s,x=o,S=t,E=l,j=n,O=f,T=h,D=r,N=a,I=i,A=d,C=!1;function P(e){return g(e)===u}Ky.AsyncMode=b,Ky.ConcurrentMode=k,Ky.ContextConsumer=w,Ky.ContextProvider=x,Ky.Element=S,Ky.ForwardRef=E,Ky.Fragment=j,Ky.Lazy=O,Ky.Memo=T,Ky.Portal=D,Ky.Profiler=N,Ky.StrictMode=I,Ky.Suspense=A,Ky.isAsyncMode=function(e){return C||(C=!0),P(e)||g(e)===c},Ky.isConcurrentMode=P,Ky.isContextConsumer=function(e){return g(e)===s},Ky.isContextProvider=function(e){return g(e)===o},Ky.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ky.isForwardRef=function(e){return g(e)===l},Ky.isFragment=function(e){return g(e)===n},Ky.isLazy=function(e){return g(e)===f},Ky.isMemo=function(e){return g(e)===h},Ky.isPortal=function(e){return g(e)===r},Ky.isProfiler=function(e){return g(e)===a},Ky.isStrictMode=function(e){return g(e)===i},Ky.isSuspense=function(e){return g(e)===d},Ky.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===u||e===a||e===i||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===o||e.$$typeof===s||e.$$typeof===l||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},Ky.typeOf=g}()),Ky)),Vy.exports}function Gy(){return Gy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gy.apply(this,arguments)}function Jy(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}!function(){if(Yy)return Wy;Yy=1;var e=Hy(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function a(r){return e.isMemo(r)?n:i[r.$$typeof]||t}i[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[e.Memo]=n;var o=Object.defineProperty,s=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,l=Object.getPrototypeOf,d=Object.prototype;Wy=function e(t,n,i){if("string"!=typeof n){if(d){var p=l(n);p&&p!==d&&e(t,p,i)}var h=s(n);c&&(h=h.concat(c(n)));for(var f=a(t),m=a(n),_=0;_<h.length;++_){var v=h[_];if(!(r[v]||i&&i[v]||m&&m[v]||f&&f[v])){var y=u(n,v);try{o(t,v,y)}catch(g){}}}}return t}}();var Xy=/* @__PURE__ */n(void 0);Xy.displayName="FormikContext";var Zy=Xy.Provider;function eg(){var e=i(Xy);return e||("production"!==process.env.NODE_ENV?Ey(0,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):Ey()),e}Xy.Consumer;var tg=function(e){return"function"==typeof e},rg=function(e){return null!==e&&"object"==typeof e},ng=function(e){return String(Math.floor(Number(e)))===e},ig=function(e){return"[object String]"===Object.prototype.toString.call(e)},ag=function(e){return 0===c.count(e)},og=function(e){return rg(e)&&tg(e.then)};function sg(e,t,r,n){void 0===n&&(n=0);for(var i=qy(t);e&&n<i.length;)e=e[i[n++]];return n===i.length||e?void 0===e?r:e:r}function cg(e,t,r){for(var n=jy(e),i=n,a=0,o=qy(t);a<o.length-1;a++){var s=o[a],c=sg(e,o.slice(0,a+1));if(c&&(rg(c)||Array.isArray(c)))i=i[s]=jy(c);else{var u=o[a+1];i=i[s]=ng(u)&&Number(u)>=0?[]:{}}}return(0===a?e:i)[o[a]]===r?e:(void 0===r?delete i[o[a]]:i[o[a]]=r,0===a&&void 0===r&&delete n[o[a]],n)}function ug(e,t,r,n){void 0===r&&(r=/* @__PURE__ */new WeakMap),void 0===n&&(n={});for(var i=0,a=Object.keys(e);i<a.length;i++){var o=a[i],s=e[o];rg(s)?r.get(s)||(r.set(s,!0),n[o]=Array.isArray(s)?[]:{},ug(s,t,r,n[o])):n[o]=t}return n}var lg={},dg={};function pg(e){var n=e.validateOnChange,i=void 0===n||n,a=e.validateOnBlur,o=void 0===a||a,s=e.validateOnMount,c=void 0!==s&&s,u=e.isInitialValid,h=e.enableReinitialize,f=void 0!==h&&h,m=e.onSubmit,_=Jy(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),v=Gy({validateOnChange:i,validateOnBlur:o,validateOnMount:c,onSubmit:m},_),y=l(v.initialValues),g=l(v.initialErrors||lg),b=l(v.initialTouched||dg),k=l(v.initialStatus),w=l(!1),x=l({});"production"!==process.env.NODE_ENV&&r(function(){void 0!==u&&("production"!==process.env.NODE_ENV?Ey(0,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):Ey())},[]),r(function(){return w.current=!0,function(){w.current=!1}},[]);var S=t(0)[1],E=l({values:wy(v.initialValues),errors:wy(v.initialErrors)||lg,touched:wy(v.initialTouched)||dg,status:wy(v.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),j=E.current,O=d(function(e){var t=E.current;E.current=function(e,t){switch(t.type){case"SET_VALUES":return Gy({},e,{values:t.payload});case"SET_TOUCHED":return Gy({},e,{touched:t.payload});case"SET_ERRORS":return xy(e.errors,t.payload)?e:Gy({},e,{errors:t.payload});case"SET_STATUS":return Gy({},e,{status:t.payload});case"SET_ISSUBMITTING":return Gy({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Gy({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Gy({},e,{values:cg(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Gy({},e,{touched:cg(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Gy({},e,{errors:cg(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Gy({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Gy({},e,{touched:ug(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Gy({},e,{isSubmitting:!1});default:return e}}(t,e),t!==E.current&&S(function(e){return e+1})},[]),T=d(function(e,t){return new Promise(function(r,n){var i=v.validate(e,t);null==i?r(lg):og(i)?i.then(function(e){r(e||lg)},function(e){process.env.NODE_ENV,n(e)}):r(i)})},[v.validate]),D=d(function(e,t){var r=v.validationSchema,n=tg(r)?r(t):r,i=t&&n.validateAt?n.validateAt(t,e):function(e,t,r){void 0===r&&(r=!1);var n=mg(e);return t[r?"validateSync":"validate"](n,{abortEarly:!1,context:n})}(e,n);return new Promise(function(e,t){i.then(function(){e(lg)},function(r){"ValidationError"===r.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return cg(t,e.path,e.message);var r=e.inner,n=Array.isArray(r),i=0;for(r=n?r:r[Symbol.iterator]();;){var a;if(n){if(i>=r.length)break;a=r[i++]}else{if((i=r.next()).done)break;a=i.value}var o=a;sg(t,o.path)||(t=cg(t,o.path,o.message))}}return t}(r)):(process.env.NODE_ENV,t(r))})})},[v.validationSchema]),N=d(function(e,t){return new Promise(function(r){return r(x.current[e].validate(t))})},[]),I=d(function(e){var t=Object.keys(x.current).filter(function(e){return tg(x.current[e].validate)}),r=t.length>0?t.map(function(t){return N(t,sg(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(r).then(function(e){return e.reduce(function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=cg(e,t[n],r)),e},{})})},[N]),A=d(function(e){return Promise.all([I(e),v.validationSchema?D(e):{},v.validate?T(e):{}]).then(function(e){var t=e[0],r=e[1],n=e[2];return Gm.all([t,r,n],{arrayMerge:_g})})},[v.validate,v.validationSchema,I,T,D]),C=yg(function(e){return void 0===e&&(e=j.values),O({type:"SET_ISVALIDATING",payload:!0}),A(e).then(function(e){return w.current&&(O({type:"SET_ISVALIDATING",payload:!1}),O({type:"SET_ERRORS",payload:e})),e})});r(function(){c&&!0===w.current&&xy(y.current,v.initialValues)&&C(y.current)},[c,C]);var P=d(function(e){var t=e&&e.values?e.values:y.current,r=e&&e.errors?e.errors:g.current?g.current:v.initialErrors||{},n=e&&e.touched?e.touched:b.current?b.current:v.initialTouched||{},i=e&&e.status?e.status:k.current?k.current:v.initialStatus;y.current=t,g.current=r,b.current=n,k.current=i;var a=function(){O({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(v.onReset){var o=v.onReset(j.values,Z);og(o)?o.then(a):a()}else a()},[v.initialErrors,v.initialStatus,v.initialTouched,v.onReset]);r(function(){!0!==w.current||xy(y.current,v.initialValues)||f&&(y.current=v.initialValues,P(),c&&C(y.current))},[f,v.initialValues,P,c,C]),r(function(){f&&!0===w.current&&!xy(g.current,v.initialErrors)&&(g.current=v.initialErrors||lg,O({type:"SET_ERRORS",payload:v.initialErrors||lg}))},[f,v.initialErrors]),r(function(){f&&!0===w.current&&!xy(b.current,v.initialTouched)&&(b.current=v.initialTouched||dg,O({type:"SET_TOUCHED",payload:v.initialTouched||dg}))},[f,v.initialTouched]),r(function(){f&&!0===w.current&&!xy(k.current,v.initialStatus)&&(k.current=v.initialStatus,O({type:"SET_STATUS",payload:v.initialStatus}))},[f,v.initialStatus,v.initialTouched]);var F=yg(function(e){if(x.current[e]&&tg(x.current[e].validate)){var t=sg(j.values,e),r=x.current[e].validate(t);return og(r)?(O({type:"SET_ISVALIDATING",payload:!0}),r.then(function(e){return e}).then(function(t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),O({type:"SET_ISVALIDATING",payload:!1})})):(O({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return v.validationSchema?(O({type:"SET_ISVALIDATING",payload:!0}),D(j.values,e).then(function(e){return e}).then(function(t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:sg(t,e)}}),O({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),R=d(function(e,t){var r=t.validate;x.current[e]={validate:r}},[]),M=d(function(e){delete x.current[e]},[]),$=yg(function(e,t){return O({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?C(j.values):Promise.resolve()}),L=d(function(e){O({type:"SET_ERRORS",payload:e})},[]),q=yg(function(e,t){var r=tg(e)?e(j.values):e;return O({type:"SET_VALUES",payload:r}),(void 0===t?i:t)?C(r):Promise.resolve()}),z=d(function(e,t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),V=yg(function(e,t,r){var n=tg(t)?t(sg(j.values,e)):t;return O({type:"SET_FIELD_VALUE",payload:{field:e,value:n}}),(void 0===r?i:r)?C(cg(j.values,e,n)):Promise.resolve()}),B=d(function(e,t){var r,n=t,i=e;if(!ig(e)){e.persist&&e.persist();var a=e.target?e.target:e.currentTarget,o=a.type,s=a.name,c=a.id,u=a.value,l=a.checked,d=a.outerHTML,p=a.options,h=a.multiple;(n=t||(s||c))||"production"===process.env.NODE_ENV||fg({htmlContent:d,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),i=/number|range/.test(o)?(r=parseFloat(u),isNaN(r)?"":r):/checkbox/.test(o)?function(e,t,r){if("boolean"==typeof e)return Boolean(t);var n=[],i=!1,a=-1;if(Array.isArray(e))n=e,i=(a=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return Boolean(t);if(t&&r&&!i)return n.concat(r);if(!i)return n;return n.slice(0,a).concat(n.slice(a+1))}(sg(j.values,n),l,u):p&&h?function(e){return Array.from(e).filter(function(e){return e.selected}).map(function(e){return e.value})}(p):u}n&&V(n,i)},[V,j.values]),U=yg(function(e){if(ig(e))return function(t){return B(t,e)};B(e)}),Q=yg(function(e,t,r){return void 0===t&&(t=!0),O({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?o:r)?C(j.values):Promise.resolve()}),W=d(function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,i=r.id,a=r.outerHTML,o=t||(n||i);o||"production"===process.env.NODE_ENV||fg({htmlContent:a,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),Q(o,!0)},[Q]),Y=yg(function(e){if(ig(e))return function(t){return W(t,e)};W(e)}),K=d(function(e){tg(e)?O({type:"SET_FORMIK_STATE",payload:e}):O({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),H=d(function(e){O({type:"SET_STATUS",payload:e})},[]),G=d(function(e){O({type:"SET_ISSUBMITTING",payload:e})},[]),J=yg(function(){return O({type:"SUBMIT_ATTEMPT"}),C().then(function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var r;try{if(void 0===(r=ee()))return}catch(n){throw n}return Promise.resolve(r).then(function(e){return w.current&&O({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(w.current)throw O({type:"SUBMIT_FAILURE"}),e})}if(w.current&&(O({type:"SUBMIT_FAILURE"}),t))throw e})}),X=yg(function(e){if(e&&e.preventDefault&&tg(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&tg(e.stopPropagation)&&e.stopPropagation(),"production"!==process.env.NODE_ENV&&"undefined"!=typeof document){var t=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}();null!==t&&t instanceof HTMLButtonElement&&(t.attributes&&t.attributes.getNamedItem("type")||("production"!==process.env.NODE_ENV?Ey(0,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):Ey()))}J().catch(function(e){})}),Z={resetForm:P,validateForm:C,validateField:F,setErrors:L,setFieldError:z,setFieldTouched:Q,setFieldValue:V,setStatus:H,setSubmitting:G,setTouched:$,setValues:q,setFormikState:K,submitForm:J},ee=yg(function(){return m(j.values,Z)}),te=yg(function(e){e&&e.preventDefault&&tg(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&tg(e.stopPropagation)&&e.stopPropagation(),P()}),re=d(function(e){return{value:sg(j.values,e),error:sg(j.errors,e),touched:!!sg(j.touched,e),initialValue:sg(y.current,e),initialTouched:!!sg(b.current,e),initialError:sg(g.current,e)}},[j.errors,j.touched,j.values]),ne=d(function(e){return{setValue:function(t,r){return V(e,t,r)},setTouched:function(t,r){return Q(e,t,r)},setError:function(t){return z(e,t)}}},[V,Q,z]),ie=d(function(e){var t=rg(e),r=t?e.name:e,n=sg(j.values,r),i={name:r,value:n,onChange:U,onBlur:Y};if(t){var a=e.type,o=e.value,s=e.as,c=e.multiple;"checkbox"===a?void 0===o?i.checked=!!n:(i.checked=!(!Array.isArray(n)||!~n.indexOf(o)),i.value=o):"radio"===a?(i.checked=n===o,i.value=o):"select"===s&&c&&(i.value=i.value||[],i.multiple=!0)}return i},[Y,U,j.values]),ae=p(function(){return!xy(y.current,j.values)},[y.current,j.values]),oe=p(function(){return void 0!==u?ae?j.errors&&0===Object.keys(j.errors).length:!1!==u&&tg(u)?u(v):u:j.errors&&0===Object.keys(j.errors).length},[u,ae,j.errors,v]);return Gy({},j,{initialValues:y.current,initialErrors:g.current,initialTouched:b.current,initialStatus:k.current,handleBlur:Y,handleChange:U,handleReset:te,handleSubmit:X,resetForm:P,setErrors:L,setFormikState:K,setFieldTouched:Q,setFieldValue:V,setFieldError:z,setStatus:H,setSubmitting:G,setTouched:$,setValues:q,submitForm:J,validateForm:C,validateField:F,isValid:oe,dirty:ae,unregisterField:M,registerField:R,getFieldProps:ie,getFieldMeta:re,getFieldHelpers:ne,validateOnBlur:o,validateOnChange:i,validateOnMount:c})}function hg(e){var t=pg(e),n=e.component,i=e.children,a=e.render,u=e.innerRef;return o(u,function(){return t}),"production"!==process.env.NODE_ENV&&r(function(){e.render&&("production"!==process.env.NODE_ENV?Ey(0,"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>"):Ey())},[]),s(Zy,{value:t},n?s(n,t):a?a(t):i?tg(i)?i(t):ag(i)?null:c.only(i):null)}function fg(e){e.htmlContent,e.documentationAnchorLink,e.handlerName}function mg(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);!0===Array.isArray(e[n])?t[n]=e[n].map(function(e){return!0===Array.isArray(e)||__(e)?mg(e):""!==e?e:void 0}):__(e[n])?t[n]=mg(e[n]):t[n]=""!==e[n]?e[n]:void 0}return t}function _g(e,t,r){var n=e.slice();return t.forEach(function(t,i){if(void 0===n[i]){var a=!1!==r.clone&&r.isMergeableObject(t);n[i]=a?Gm(Array.isArray(t)?[]:{},t,r):t}else r.isMergeableObject(t)?n[i]=Gm(e[i],t,r):-1===e.indexOf(t)&&n.push(t)}),n}var vg="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?h:r;function yg(e){var t=l(e);return vg(function(){t.current=e}),d(function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current.apply(void 0,r)},[])}function gg(e){var t=e.validate,n=e.name,i=e.render,a=e.children,o=e.as,c=e.component,u=e.className,l=Jy(e,["validate","name","render","children","as","component","className"]),d=Jy(eg(),["validate","validationSchema"]);"production"!==process.env.NODE_ENV&&r(function(){i&&("production"!==process.env.NODE_ENV?Ey(0,'<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name="'+n+'" render={({field, form}) => ...} /> with <Field name="'+n+'">{({field, form, meta}) => ...}</Field>'):Ey()),o&&a&&tg(a)&&("production"!==process.env.NODE_ENV?Ey(0,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):Ey()),c&&a&&tg(a)&&("production"!==process.env.NODE_ENV?Ey(0,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):Ey()),i&&a&&!ag(a)&&("production"!==process.env.NODE_ENV?Ey(0,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):Ey())},[]);var p=d.registerField,h=d.unregisterField;r(function(){return p(n,{validate:t}),function(){h(n)}},[p,h,n,t]);var f=d.getFieldProps(Gy({name:n},l)),m=d.getFieldMeta(n),_={field:f,form:d};if(i)return i(Gy({},_,{meta:m}));if(tg(a))return a(Gy({},_,{meta:m}));if(c){if("string"==typeof c){var v=l.innerRef,y=Jy(l,["innerRef"]);return s(c,Gy({ref:v},f,y,{className:u}),a)}return s(c,Gy({field:f,form:d},l,{className:u}),a)}var g=o||"input";if("string"==typeof g){var b=l.innerRef,k=Jy(l,["innerRef"]);return s(g,Gy({ref:b},f,k,{className:u}),a)}return s(g,Gy({},f,l,{className:u}),a)}var bg=/* @__PURE__ */u(function(e,t){var r=e.action,n=Jy(e,["action"]),i=null!=r?r:"#",a=eg(),o=a.handleReset,c=a.handleSubmit;return s("form",Gy({onSubmit:c,ref:t,onReset:o,action:i},n))});bg.displayName="Form";const kg=({height:e="16px",width:t="16px"})=>/* @__PURE__ */E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 100",enableBackground:"new 0 0 100 100",xmlSpace:"preserve",style:{height:e,width:t},children:[
565
+ return E.jsx("div",{children:/* @__PURE__ */E.jsx(Pm,{errors:f})});const _=/* @__PURE__ */E.jsx(vl,{variables:p,activePage:o,limit:r,onPageChange:a}),v=m.PortalSite.houses;/* @__PURE__ */
566
+ return E.jsxs("div",{id:"results",className:t.options.filtersForm?t.options.filtersForm.mode:"",children:[_,0===v.length?/* @__PURE__ */E.jsx("div",{className:"bu-noresults",children:nc("no_results")}):null,v.map(e=>/* @__PURE__ */E.jsx(_l,{result:e,options:t.options.filtersForm},e.id)),_]})}async function Bm(e){const t=Um("bu_portal_session"),r={...e,url:window.location.href,session_identifier:t};fetch("https://api.bukazu.com/tracking",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(e=>e.text()).then(e=>{!function(e,t,r){const n=/* @__PURE__ */new Date;n.setTime(n.getTime()+24*r*60*60*1e3);let i="expires="+n.toUTCString();document.cookie=e+"="+t+";"+i+";path=/"}("bu_portal_session",e,14)})}function Um(e){let t=e+"=",r=decodeURIComponent(document.cookie).split(";");for(let n=0;n<r.length;n++){let e=r[n];for(;" "==e.charAt(0);)e=e.substring(1);if(0==e.indexOf(t))return e.substring(t.length,e.length)}return""}class Qm extends a{constructor(e){super(e);let t=this.props.options.filtersForm?Number(this.props.options.filtersForm.no_results):20;this.state={filters:this.props.filters||{},activePage:1,limit:t,skip:0},this.onFilterChange=this.onFilterChange.bind(this),this.pageChange=this.pageChange.bind(this)}componentDidMount(){let e=localStorage.getItem("bukazuFilters"),t=localStorage.getItem("bukazuActivePage");e&&this.setState({filters:JSON.parse(e)}),t&&this.pageChange(parseInt(t)||0)}onFilterChange(e){let t=e;this.setState({filters:t}),localStorage.setItem("bukazuFilters",JSON.stringify(t)),this.pageChange(0)}pageChange(e){const{limit:t}=this.state;let r=e*t;localStorage.setItem("bukazuActivePage",e.toString()),this.setState({activePage:e,skip:r})}render(){const{filters:e,activePage:t,limit:r,skip:n}=this.state,{options:i,PortalSite:a,locale:o}=this.props;return Bm({portal_code:a.portal_code,interaction_type:"search_view",locale:o}),/* @__PURE__ */E.jsxs("div",{id:"search-page",className:i.filtersForm?"right"===i.filtersForm.location?"bu-reverse":"top"===i.filtersForm.location?"bu-column":"":"",children:[
567
+ /* @__PURE__ */E.jsx(ac,{PortalSite:a,filters:e,onFilterChange:this.onFilterChange,options:i}),
568
+ /* @__PURE__ */E.jsx(Vm,{PortalSite:a,filters:e,activePage:t,onPageChange:this.pageChange,skip:n,limit:r})]})}}var Wm=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Ym}(e)}(e)};var Ym="function"==typeof Symbol&&Symbol.for?/* @__PURE__ */Symbol.for("react.element"):60103;function Km(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Gm((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function Hm(e,t,r){return e.concat(t).map(function(e){return Km(e,r)})}function Gm(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||Hm,r.isMergeableObject=r.isMergeableObject||Wm;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):function(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(t){n[t]=Km(e[t],r)}),Object.keys(t).forEach(function(i){r.isMergeableObject(t[i])&&e[i]?n[i]=Gm(e[i],t[i],r):n[i]=Km(t[i],r)}),n}(e,t,r):Km(t,r)}Gm.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return Gm(e,r,t)},{})};var Jm=Gm,Xm="object"==typeof global&&global&&global.Object===Object&&global,Zm="object"==typeof self&&self&&self.Object===Object&&self,e_=Xm||Zm||Function("return this")(),t_=e_.Symbol,r_=Object.prototype,n_=r_.hasOwnProperty,i_=r_.toString,a_=t_?t_.toStringTag:void 0;var o_=Object.prototype.toString;var s_=t_?t_.toStringTag:void 0;function c_(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s_&&s_ in Object(e)?function(e){var t=n_.call(e,a_),r=e[a_];try{e[a_]=void 0;var n=!0}catch(a){}var i=i_.call(e);return n&&(t?e[a_]=r:delete e[a_]),i}(e):function(e){return o_.call(e)}(e)}function u_(e,t){return function(r){return e(t(r))}}var l_=u_(Object.getPrototypeOf,Object);function d_(e){return null!=e&&"object"==typeof e}var p_=Function.prototype,h_=Object.prototype,f_=p_.toString,m_=h_.hasOwnProperty,__=f_.call(Object);function v_(e){if(!d_(e)||"[object Object]"!=c_(e))return!1;var t=l_(e);if(null===t)return!0;var r=m_.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&f_.call(r)==__}function y_(e,t){return e===t||e!=e&&t!=t}function g_(e,t){for(var r=e.length;r--;)if(y_(e[r][0],t))return r;return-1}var b_=Array.prototype.splice;function k_(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function w_(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}k_.prototype.clear=function(){this.__data__=[],this.size=0},k_.prototype.delete=function(e){var t=this.__data__,r=g_(t,e);return!(r<0)&&(r==t.length-1?t.pop():b_.call(t,r,1),--this.size,!0)},k_.prototype.get=function(e){var t=this.__data__,r=g_(t,e);return r<0?void 0:t[r][1]},k_.prototype.has=function(e){return g_(this.__data__,e)>-1},k_.prototype.set=function(e,t){var r=this.__data__,n=g_(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function x_(e){if(!w_(e))return!1;var t=c_(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var S_,E_=e_["__core-js_shared__"],j_=(S_=/[^.]+$/.exec(E_&&E_.keys&&E_.keys.IE_PROTO||""))?"Symbol(src)_1."+S_:"";var O_=Function.prototype.toString;function T_(e){if(null!=e){try{return O_.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var D_=/^\[object .+?Constructor\]$/,N_=Function.prototype,I_=Object.prototype,A_=N_.toString,C_=I_.hasOwnProperty,P_=RegExp("^"+A_.call(C_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function F_(e){return!(!w_(e)||(t=e,j_&&j_ in t))&&(x_(e)?P_:D_).test(T_(e));var t}function R_(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return F_(r)?r:void 0}var M_=R_(e_,"Map"),$_=R_(Object,"create");var L_=Object.prototype.hasOwnProperty;var q_=Object.prototype.hasOwnProperty;function z_(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function V_(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function B_(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}z_.prototype.clear=function(){this.__data__=$_?$_(null):{},this.size=0},z_.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},z_.prototype.get=function(e){var t=this.__data__;if($_){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return L_.call(t,e)?t[e]:void 0},z_.prototype.has=function(e){var t=this.__data__;return $_?void 0!==t[e]:q_.call(t,e)},z_.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=$_&&void 0===t?"__lodash_hash_undefined__":t,this},B_.prototype.clear=function(){this.size=0,this.__data__={hash:new z_,map:new(M_||k_),string:new z_}},B_.prototype.delete=function(e){var t=V_(this,e).delete(e);return this.size-=t?1:0,t},B_.prototype.get=function(e){return V_(this,e).get(e)},B_.prototype.has=function(e){return V_(this,e).has(e)},B_.prototype.set=function(e,t){var r=V_(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function U_(e){var t=this.__data__=new k_(e);this.size=t.size}U_.prototype.clear=function(){this.__data__=new k_,this.size=0},U_.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},U_.prototype.get=function(e){return this.__data__.get(e)},U_.prototype.has=function(e){return this.__data__.has(e)},U_.prototype.set=function(e,t){var r=this.__data__;if(r instanceof k_){var n=r.__data__;if(!M_||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new B_(n)}return r.set(e,t),this.size=r.size,this};var Q_=function(){try{var e=R_(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();function W_(e,t,r){"__proto__"==t&&Q_?Q_(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Y_=Object.prototype.hasOwnProperty;function K_(e,t,r){var n=e[t];Y_.call(e,t)&&y_(n,r)&&(void 0!==r||t in e)||W_(e,t,r)}function H_(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],c=void 0;void 0===c&&(c=e[s]),i?W_(r,s,c):K_(r,s,c)}return r}function G_(e){return d_(e)&&"[object Arguments]"==c_(e)}var J_=Object.prototype,X_=J_.hasOwnProperty,Z_=J_.propertyIsEnumerable,ev=G_(/* @__PURE__ */function(){return arguments}())?G_:function(e){return d_(e)&&X_.call(e,"callee")&&!Z_.call(e,"callee")},tv=Array.isArray;var rv="object"==typeof exports&&exports&&!exports.nodeType&&exports,nv=rv&&"object"==typeof module&&module&&!module.nodeType&&module,iv=nv&&nv.exports===rv?e_.Buffer:void 0,av=(iv?iv.isBuffer:void 0)||function(){return!1},ov=/^(?:0|[1-9]\d*)$/;function sv(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&ov.test(e))&&e>-1&&e%1==0&&e<t}function cv(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var uv={};function lv(e){return function(t){return e(t)}}uv["[object Float32Array]"]=uv["[object Float64Array]"]=uv["[object Int8Array]"]=uv["[object Int16Array]"]=uv["[object Int32Array]"]=uv["[object Uint8Array]"]=uv["[object Uint8ClampedArray]"]=uv["[object Uint16Array]"]=uv["[object Uint32Array]"]=!0,uv["[object Arguments]"]=uv["[object Array]"]=uv["[object ArrayBuffer]"]=uv["[object Boolean]"]=uv["[object DataView]"]=uv["[object Date]"]=uv["[object Error]"]=uv["[object Function]"]=uv["[object Map]"]=uv["[object Number]"]=uv["[object Object]"]=uv["[object RegExp]"]=uv["[object Set]"]=uv["[object String]"]=uv["[object WeakMap]"]=!1;var dv="object"==typeof exports&&exports&&!exports.nodeType&&exports,pv=dv&&"object"==typeof module&&module&&!module.nodeType&&module,hv=pv&&pv.exports===dv&&Xm.process,fv=function(){try{var e=pv&&pv.require&&pv.require("util").types;return e||hv&&hv.binding&&hv.binding("util")}catch(t){}}(),mv=fv&&fv.isTypedArray,_v=mv?lv(mv):function(e){return d_(e)&&cv(e.length)&&!!uv[c_(e)]},vv=Object.prototype.hasOwnProperty;function yv(e,t){var r=tv(e),n=!r&&ev(e),i=!r&&!n&&av(e),a=!r&&!n&&!i&&_v(e),o=r||n||i||a,s=o?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=s.length;for(var u in e)!t&&!vv.call(e,u)||o&&("length"==u||i&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||sv(u,c))||s.push(u);return s}var gv=Object.prototype;function bv(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||gv)}var kv=u_(Object.keys,Object),wv=Object.prototype.hasOwnProperty;function xv(e){return null!=e&&cv(e.length)&&!x_(e)}function Sv(e){return xv(e)?yv(e):function(e){if(!bv(e))return kv(e);var t=[];for(var r in Object(e))wv.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}var Ev=Object.prototype.hasOwnProperty;function jv(e){if(!w_(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=bv(e),r=[];for(var n in e)("constructor"!=n||!t&&Ev.call(e,n))&&r.push(n);return r}function Ov(e){return xv(e)?yv(e,!0):jv(e)}var Tv="object"==typeof exports&&exports&&!exports.nodeType&&exports,Dv=Tv&&"object"==typeof module&&module&&!module.nodeType&&module,Nv=Dv&&Dv.exports===Tv?e_.Buffer:void 0,Iv=Nv?Nv.allocUnsafe:void 0;function Av(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function Cv(){return[]}var Pv=Object.prototype.propertyIsEnumerable,Fv=Object.getOwnPropertySymbols,Rv=Fv?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}(Fv(e),function(t){return Pv.call(e,t)}))}:Cv;function Mv(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var $v=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Mv(t,Rv(e)),e=l_(e);return t}:Cv;function Lv(e,t,r){var n=t(e);return tv(e)?n:Mv(n,r(e))}function qv(e){return Lv(e,Sv,Rv)}function zv(e){return Lv(e,Ov,$v)}var Vv=R_(e_,"DataView"),Bv=R_(e_,"Promise"),Uv=R_(e_,"Set"),Qv=R_(e_,"WeakMap"),Wv="[object Map]",Yv="[object Promise]",Kv="[object Set]",Hv="[object WeakMap]",Gv="[object DataView]",Jv=T_(Vv),Xv=T_(M_),Zv=T_(Bv),ey=T_(Uv),ty=T_(Qv),ry=c_;(Vv&&ry(new Vv(new ArrayBuffer(1)))!=Gv||M_&&ry(new M_)!=Wv||Bv&&ry(Bv.resolve())!=Yv||Uv&&ry(new Uv)!=Kv||Qv&&ry(new Qv)!=Hv)&&(ry=function(e){var t=c_(e),r="[object Object]"==t?e.constructor:void 0,n=r?T_(r):"";if(n)switch(n){case Jv:return Gv;case Xv:return Wv;case Zv:return Yv;case ey:return Kv;case ty:return Hv}return t});var ny=Object.prototype.hasOwnProperty;var iy=e_.Uint8Array;function ay(e){var t=new e.constructor(e.byteLength);return new iy(t).set(new iy(e)),t}var oy=/\w*$/;var sy=t_?t_.prototype:void 0,cy=sy?sy.valueOf:void 0;function uy(e,t,r){var n,i,a,o=e.constructor;switch(t){case"[object ArrayBuffer]":return ay(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return function(e,t){var r=t?ay(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var r=t?ay(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,r);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return(a=new(i=e).constructor(i.source,oy.exec(i))).lastIndex=i.lastIndex,a;case"[object Symbol]":return n=e,cy?Object(cy.call(n)):{}}}var ly=Object.create,dy=/* @__PURE__ */function(){function e(){}return function(t){if(!w_(t))return{};if(ly)return ly(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var py=fv&&fv.isMap,hy=py?lv(py):function(e){return d_(e)&&"[object Map]"==ry(e)};var fy=fv&&fv.isSet,my=fy?lv(fy):function(e){return d_(e)&&"[object Set]"==ry(e)},_y="[object Arguments]",vy="[object Function]",yy="[object Object]",gy={};function by(e,t,r,n,i,a){var o,s=1&t,c=2&t,u=4&t;if(void 0!==o)return o;if(!w_(e))return e;var l=tv(e);if(l){if(o=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&ny.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!s)return Av(e,o)}else{var d=ry(e),p=d==vy||"[object GeneratorFunction]"==d;if(av(e))return function(e,t){if(t)return e.slice();var r=e.length,n=Iv?Iv(r):new e.constructor(r);return e.copy(n),n}(e,s);if(d==yy||d==_y||p&&!i){if(o=c||p?{}:function(e){return"function"!=typeof e.constructor||bv(e)?{}:dy(l_(e))}(e),!s)return c?function(e,t){return H_(e,$v(e),t)}(e,function(e,t){return e&&H_(t,Ov(t),e)}(o,e)):function(e,t){return H_(e,Rv(e),t)}(e,function(e,t){return e&&H_(t,Sv(t),e)}(o,e))}else{if(!gy[d])return i?e:{};o=uy(e,d,s)}}a||(a=new U_);var h=a.get(e);if(h)return h;a.set(e,o),my(e)?e.forEach(function(n){o.add(by(n,t,r,n,e,a))}):hy(e)&&e.forEach(function(n,i){o.set(i,by(n,t,r,i,e,a))});var f=l?void 0:(u?c?zv:qv:c?Ov:Sv)(e);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(f||e,function(n,i){f&&(n=e[i=n]),K_(o,i,by(n,t,r,i,e,a))}),o}gy[_y]=gy["[object Array]"]=gy["[object ArrayBuffer]"]=gy["[object DataView]"]=gy["[object Boolean]"]=gy["[object Date]"]=gy["[object Float32Array]"]=gy["[object Float64Array]"]=gy["[object Int8Array]"]=gy["[object Int16Array]"]=gy["[object Int32Array]"]=gy["[object Map]"]=gy["[object Number]"]=gy[yy]=gy["[object RegExp]"]=gy["[object Set]"]=gy["[object String]"]=gy["[object Symbol]"]=gy["[object Uint8Array]"]=gy["[object Uint8ClampedArray]"]=gy["[object Uint16Array]"]=gy["[object Uint32Array]"]=!0,gy["[object Error]"]=gy[vy]=gy["[object WeakMap]"]=!1;var ky,wy;function xy(e){return by(e,5)}const Sy=/* @__PURE__ */v(function(){if(wy)return ky;wy=1;var e=Array.isArray,t=Object.keys,r=Object.prototype.hasOwnProperty,n="undefined"!=typeof Element;function i(a,o){if(a===o)return!0;if(a&&o&&"object"==typeof a&&"object"==typeof o){var s,c,u,l=e(a),d=e(o);if(l&&d){if((c=a.length)!=o.length)return!1;for(s=c;0!==s--;)if(!i(a[s],o[s]))return!1;return!0}if(l!=d)return!1;var p=a instanceof Date,h=o instanceof Date;if(p!=h)return!1;if(p&&h)return a.getTime()==o.getTime();var f=a instanceof RegExp,m=o instanceof RegExp;if(f!=m)return!1;if(f&&m)return a.toString()==o.toString();var _=t(a);if((c=_.length)!==t(o).length)return!1;for(s=c;0!==s--;)if(!r.call(o,_[s]))return!1;if(n&&a instanceof Element&&o instanceof Element)return a===o;for(s=c;0!==s--;)if(!("_owner"===(u=_[s])&&a.$$typeof||i(a[u],o[u])))return!1;return!0}return a!=a&&o!=o}return ky=function(e,t){try{return i(e,t)}catch(r){if(r.message&&r.message.match(/stack|recursion/i)||-2146828260===r.number)return!1;throw r}}}());var Ey="production"===process.env.NODE_ENV;function jy(e,t){if(!Ey){var r="Warning: "+t;try{throw Error(r)}catch(n){}}}function Oy(e){return by(e,4)}function Ty(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function Dy(e){return"symbol"==typeof e||d_(e)&&"[object Symbol]"==c_(e)}function Ny(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(Ny.Cache||B_),r}Ny.Cache=B_;var Iy,Ay,Cy,Py=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fy=/\\(\\)?/g,Ry=(Iy=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Py,function(e,r,n,i){t.push(n?i.replace(Fy,"$1"):r||e)}),t},Ay=Ny(Iy,function(e){return 500===Cy.size&&Cy.clear(),e}),Cy=Ay.cache,Ay);function My(e){if("string"==typeof e||Dy(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var $y=t_?t_.prototype:void 0,Ly=$y?$y.toString:void 0;function qy(e){if("string"==typeof e)return e;if(tv(e))return Ty(e,qy)+"";if(Dy(e))return Ly?Ly.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function zy(e){return tv(e)?Ty(e,My):Dy(e)?[e]:Av(Ry(function(e){return null==e?"":qy(e)}(e)))}var Vy,By={exports:{}},Uy={};var Qy,Wy,Yy,Ky,Hy={};function Gy(){return Wy||(Wy=1,"production"===process.env.NODE_ENV?By.exports=function(){if(Vy)return Uy;Vy=1;var e="function"==typeof Symbol&&Symbol.for,t=e?/* @__PURE__ */Symbol.for("react.element"):60103,r=e?/* @__PURE__ */Symbol.for("react.portal"):60106,n=e?/* @__PURE__ */Symbol.for("react.fragment"):60107,i=e?/* @__PURE__ */Symbol.for("react.strict_mode"):60108,a=e?/* @__PURE__ */Symbol.for("react.profiler"):60114,o=e?/* @__PURE__ */Symbol.for("react.provider"):60109,s=e?/* @__PURE__ */Symbol.for("react.context"):60110,c=e?/* @__PURE__ */Symbol.for("react.async_mode"):60111,u=e?/* @__PURE__ */Symbol.for("react.concurrent_mode"):60111,l=e?/* @__PURE__ */Symbol.for("react.forward_ref"):60112,d=e?/* @__PURE__ */Symbol.for("react.suspense"):60113,p=e?/* @__PURE__ */Symbol.for("react.suspense_list"):60120,h=e?/* @__PURE__ */Symbol.for("react.memo"):60115,f=e?/* @__PURE__ */Symbol.for("react.lazy"):60116,m=e?/* @__PURE__ */Symbol.for("react.block"):60121,_=e?/* @__PURE__ */Symbol.for("react.fundamental"):60117,v=e?/* @__PURE__ */Symbol.for("react.responder"):60118,y=e?/* @__PURE__ */Symbol.for("react.scope"):60119;function g(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case c:case u:case n:case a:case i:case d:return e;default:switch(e=e&&e.$$typeof){case s:case l:case f:case h:case o:return e;default:return p}}case r:return p}}}function b(e){return g(e)===u}return Uy.AsyncMode=c,Uy.ConcurrentMode=u,Uy.ContextConsumer=s,Uy.ContextProvider=o,Uy.Element=t,Uy.ForwardRef=l,Uy.Fragment=n,Uy.Lazy=f,Uy.Memo=h,Uy.Portal=r,Uy.Profiler=a,Uy.StrictMode=i,Uy.Suspense=d,Uy.isAsyncMode=function(e){return b(e)||g(e)===c},Uy.isConcurrentMode=b,Uy.isContextConsumer=function(e){return g(e)===s},Uy.isContextProvider=function(e){return g(e)===o},Uy.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Uy.isForwardRef=function(e){return g(e)===l},Uy.isFragment=function(e){return g(e)===n},Uy.isLazy=function(e){return g(e)===f},Uy.isMemo=function(e){return g(e)===h},Uy.isPortal=function(e){return g(e)===r},Uy.isProfiler=function(e){return g(e)===a},Uy.isStrictMode=function(e){return g(e)===i},Uy.isSuspense=function(e){return g(e)===d},Uy.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===u||e===a||e===i||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===o||e.$$typeof===s||e.$$typeof===l||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},Uy.typeOf=g,Uy}():By.exports=(Qy||(Qy=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?/* @__PURE__ */Symbol.for("react.element"):60103,r=e?/* @__PURE__ */Symbol.for("react.portal"):60106,n=e?/* @__PURE__ */Symbol.for("react.fragment"):60107,i=e?/* @__PURE__ */Symbol.for("react.strict_mode"):60108,a=e?/* @__PURE__ */Symbol.for("react.profiler"):60114,o=e?/* @__PURE__ */Symbol.for("react.provider"):60109,s=e?/* @__PURE__ */Symbol.for("react.context"):60110,c=e?/* @__PURE__ */Symbol.for("react.async_mode"):60111,u=e?/* @__PURE__ */Symbol.for("react.concurrent_mode"):60111,l=e?/* @__PURE__ */Symbol.for("react.forward_ref"):60112,d=e?/* @__PURE__ */Symbol.for("react.suspense"):60113,p=e?/* @__PURE__ */Symbol.for("react.suspense_list"):60120,h=e?/* @__PURE__ */Symbol.for("react.memo"):60115,f=e?/* @__PURE__ */Symbol.for("react.lazy"):60116,m=e?/* @__PURE__ */Symbol.for("react.block"):60121,_=e?/* @__PURE__ */Symbol.for("react.fundamental"):60117,v=e?/* @__PURE__ */Symbol.for("react.responder"):60118,y=e?/* @__PURE__ */Symbol.for("react.scope"):60119;function g(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var m=e.type;switch(m){case c:case u:case n:case a:case i:case d:return m;default:var _=m&&m.$$typeof;switch(_){case s:case l:case f:case h:case o:return _;default:return p}}case r:return p}}}var b=c,k=u,w=s,x=o,S=t,E=l,j=n,O=f,T=h,D=r,N=a,I=i,A=d,C=!1;function P(e){return g(e)===u}Hy.AsyncMode=b,Hy.ConcurrentMode=k,Hy.ContextConsumer=w,Hy.ContextProvider=x,Hy.Element=S,Hy.ForwardRef=E,Hy.Fragment=j,Hy.Lazy=O,Hy.Memo=T,Hy.Portal=D,Hy.Profiler=N,Hy.StrictMode=I,Hy.Suspense=A,Hy.isAsyncMode=function(e){return C||(C=!0),P(e)||g(e)===c},Hy.isConcurrentMode=P,Hy.isContextConsumer=function(e){return g(e)===s},Hy.isContextProvider=function(e){return g(e)===o},Hy.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Hy.isForwardRef=function(e){return g(e)===l},Hy.isFragment=function(e){return g(e)===n},Hy.isLazy=function(e){return g(e)===f},Hy.isMemo=function(e){return g(e)===h},Hy.isPortal=function(e){return g(e)===r},Hy.isProfiler=function(e){return g(e)===a},Hy.isStrictMode=function(e){return g(e)===i},Hy.isSuspense=function(e){return g(e)===d},Hy.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===u||e===a||e===i||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===o||e.$$typeof===s||e.$$typeof===l||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},Hy.typeOf=g}()),Hy)),By.exports}function Jy(){return Jy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jy.apply(this,arguments)}function Xy(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}!function(){if(Ky)return Yy;Ky=1;var e=Gy(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function a(r){return e.isMemo(r)?n:i[r.$$typeof]||t}i[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[e.Memo]=n;var o=Object.defineProperty,s=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,l=Object.getPrototypeOf,d=Object.prototype;Yy=function e(t,n,i){if("string"!=typeof n){if(d){var p=l(n);p&&p!==d&&e(t,p,i)}var h=s(n);c&&(h=h.concat(c(n)));for(var f=a(t),m=a(n),_=0;_<h.length;++_){var v=h[_];if(!(r[v]||i&&i[v]||m&&m[v]||f&&f[v])){var y=u(n,v);try{o(t,v,y)}catch(g){}}}}return t}}();var Zy=/* @__PURE__ */n(void 0);Zy.displayName="FormikContext";var eg=Zy.Provider;function tg(){var e=i(Zy);return e||("production"!==process.env.NODE_ENV?jy(0,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):jy()),e}Zy.Consumer;var rg=function(e){return"function"==typeof e},ng=function(e){return null!==e&&"object"==typeof e},ig=function(e){return String(Math.floor(Number(e)))===e},ag=function(e){return"[object String]"===Object.prototype.toString.call(e)},og=function(e){return 0===c.count(e)},sg=function(e){return ng(e)&&rg(e.then)};function cg(e,t,r,n){void 0===n&&(n=0);for(var i=zy(t);e&&n<i.length;)e=e[i[n++]];return n===i.length||e?void 0===e?r:e:r}function ug(e,t,r){for(var n=Oy(e),i=n,a=0,o=zy(t);a<o.length-1;a++){var s=o[a],c=cg(e,o.slice(0,a+1));if(c&&(ng(c)||Array.isArray(c)))i=i[s]=Oy(c);else{var u=o[a+1];i=i[s]=ig(u)&&Number(u)>=0?[]:{}}}return(0===a?e:i)[o[a]]===r?e:(void 0===r?delete i[o[a]]:i[o[a]]=r,0===a&&void 0===r&&delete n[o[a]],n)}function lg(e,t,r,n){void 0===r&&(r=/* @__PURE__ */new WeakMap),void 0===n&&(n={});for(var i=0,a=Object.keys(e);i<a.length;i++){var o=a[i],s=e[o];ng(s)?r.get(s)||(r.set(s,!0),n[o]=Array.isArray(s)?[]:{},lg(s,t,r,n[o])):n[o]=t}return n}var dg={},pg={};function hg(e){var n=e.validateOnChange,i=void 0===n||n,a=e.validateOnBlur,o=void 0===a||a,s=e.validateOnMount,c=void 0!==s&&s,u=e.isInitialValid,h=e.enableReinitialize,f=void 0!==h&&h,m=e.onSubmit,_=Xy(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),v=Jy({validateOnChange:i,validateOnBlur:o,validateOnMount:c,onSubmit:m},_),y=l(v.initialValues),g=l(v.initialErrors||dg),b=l(v.initialTouched||pg),k=l(v.initialStatus),w=l(!1),x=l({});"production"!==process.env.NODE_ENV&&r(function(){void 0!==u&&("production"!==process.env.NODE_ENV?jy(0,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):jy())},[]),r(function(){return w.current=!0,function(){w.current=!1}},[]);var S=t(0)[1],E=l({values:xy(v.initialValues),errors:xy(v.initialErrors)||dg,touched:xy(v.initialTouched)||pg,status:xy(v.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),j=E.current,O=d(function(e){var t=E.current;E.current=function(e,t){switch(t.type){case"SET_VALUES":return Jy({},e,{values:t.payload});case"SET_TOUCHED":return Jy({},e,{touched:t.payload});case"SET_ERRORS":return Sy(e.errors,t.payload)?e:Jy({},e,{errors:t.payload});case"SET_STATUS":return Jy({},e,{status:t.payload});case"SET_ISSUBMITTING":return Jy({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Jy({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Jy({},e,{values:ug(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Jy({},e,{touched:ug(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Jy({},e,{errors:ug(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Jy({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Jy({},e,{touched:lg(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Jy({},e,{isSubmitting:!1});default:return e}}(t,e),t!==E.current&&S(function(e){return e+1})},[]),T=d(function(e,t){return new Promise(function(r,n){var i=v.validate(e,t);null==i?r(dg):sg(i)?i.then(function(e){r(e||dg)},function(e){process.env.NODE_ENV,n(e)}):r(i)})},[v.validate]),D=d(function(e,t){var r=v.validationSchema,n=rg(r)?r(t):r,i=t&&n.validateAt?n.validateAt(t,e):function(e,t,r){void 0===r&&(r=!1);var n=_g(e);return t[r?"validateSync":"validate"](n,{abortEarly:!1,context:n})}(e,n);return new Promise(function(e,t){i.then(function(){e(dg)},function(r){"ValidationError"===r.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return ug(t,e.path,e.message);var r=e.inner,n=Array.isArray(r),i=0;for(r=n?r:r[Symbol.iterator]();;){var a;if(n){if(i>=r.length)break;a=r[i++]}else{if((i=r.next()).done)break;a=i.value}var o=a;cg(t,o.path)||(t=ug(t,o.path,o.message))}}return t}(r)):(process.env.NODE_ENV,t(r))})})},[v.validationSchema]),N=d(function(e,t){return new Promise(function(r){return r(x.current[e].validate(t))})},[]),I=d(function(e){var t=Object.keys(x.current).filter(function(e){return rg(x.current[e].validate)}),r=t.length>0?t.map(function(t){return N(t,cg(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(r).then(function(e){return e.reduce(function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=ug(e,t[n],r)),e},{})})},[N]),A=d(function(e){return Promise.all([I(e),v.validationSchema?D(e):{},v.validate?T(e):{}]).then(function(e){var t=e[0],r=e[1],n=e[2];return Jm.all([t,r,n],{arrayMerge:vg})})},[v.validate,v.validationSchema,I,T,D]),C=gg(function(e){return void 0===e&&(e=j.values),O({type:"SET_ISVALIDATING",payload:!0}),A(e).then(function(e){return w.current&&(O({type:"SET_ISVALIDATING",payload:!1}),O({type:"SET_ERRORS",payload:e})),e})});r(function(){c&&!0===w.current&&Sy(y.current,v.initialValues)&&C(y.current)},[c,C]);var P=d(function(e){var t=e&&e.values?e.values:y.current,r=e&&e.errors?e.errors:g.current?g.current:v.initialErrors||{},n=e&&e.touched?e.touched:b.current?b.current:v.initialTouched||{},i=e&&e.status?e.status:k.current?k.current:v.initialStatus;y.current=t,g.current=r,b.current=n,k.current=i;var a=function(){O({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(v.onReset){var o=v.onReset(j.values,Z);sg(o)?o.then(a):a()}else a()},[v.initialErrors,v.initialStatus,v.initialTouched,v.onReset]);r(function(){!0!==w.current||Sy(y.current,v.initialValues)||f&&(y.current=v.initialValues,P(),c&&C(y.current))},[f,v.initialValues,P,c,C]),r(function(){f&&!0===w.current&&!Sy(g.current,v.initialErrors)&&(g.current=v.initialErrors||dg,O({type:"SET_ERRORS",payload:v.initialErrors||dg}))},[f,v.initialErrors]),r(function(){f&&!0===w.current&&!Sy(b.current,v.initialTouched)&&(b.current=v.initialTouched||pg,O({type:"SET_TOUCHED",payload:v.initialTouched||pg}))},[f,v.initialTouched]),r(function(){f&&!0===w.current&&!Sy(k.current,v.initialStatus)&&(k.current=v.initialStatus,O({type:"SET_STATUS",payload:v.initialStatus}))},[f,v.initialStatus,v.initialTouched]);var F=gg(function(e){if(x.current[e]&&rg(x.current[e].validate)){var t=cg(j.values,e),r=x.current[e].validate(t);return sg(r)?(O({type:"SET_ISVALIDATING",payload:!0}),r.then(function(e){return e}).then(function(t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),O({type:"SET_ISVALIDATING",payload:!1})})):(O({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return v.validationSchema?(O({type:"SET_ISVALIDATING",payload:!0}),D(j.values,e).then(function(e){return e}).then(function(t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:cg(t,e)}}),O({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),R=d(function(e,t){var r=t.validate;x.current[e]={validate:r}},[]),M=d(function(e){delete x.current[e]},[]),$=gg(function(e,t){return O({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?C(j.values):Promise.resolve()}),L=d(function(e){O({type:"SET_ERRORS",payload:e})},[]),q=gg(function(e,t){var r=rg(e)?e(j.values):e;return O({type:"SET_VALUES",payload:r}),(void 0===t?i:t)?C(r):Promise.resolve()}),z=d(function(e,t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),V=gg(function(e,t,r){var n=rg(t)?t(cg(j.values,e)):t;return O({type:"SET_FIELD_VALUE",payload:{field:e,value:n}}),(void 0===r?i:r)?C(ug(j.values,e,n)):Promise.resolve()}),B=d(function(e,t){var r,n=t,i=e;if(!ag(e)){e.persist&&e.persist();var a=e.target?e.target:e.currentTarget,o=a.type,s=a.name,c=a.id,u=a.value,l=a.checked,d=a.outerHTML,p=a.options,h=a.multiple;(n=t||(s||c))||"production"===process.env.NODE_ENV||mg({htmlContent:d,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),i=/number|range/.test(o)?(r=parseFloat(u),isNaN(r)?"":r):/checkbox/.test(o)?function(e,t,r){if("boolean"==typeof e)return Boolean(t);var n=[],i=!1,a=-1;if(Array.isArray(e))n=e,i=(a=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return Boolean(t);if(t&&r&&!i)return n.concat(r);if(!i)return n;return n.slice(0,a).concat(n.slice(a+1))}(cg(j.values,n),l,u):p&&h?function(e){return Array.from(e).filter(function(e){return e.selected}).map(function(e){return e.value})}(p):u}n&&V(n,i)},[V,j.values]),U=gg(function(e){if(ag(e))return function(t){return B(t,e)};B(e)}),Q=gg(function(e,t,r){return void 0===t&&(t=!0),O({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?o:r)?C(j.values):Promise.resolve()}),W=d(function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,i=r.id,a=r.outerHTML,o=t||(n||i);o||"production"===process.env.NODE_ENV||mg({htmlContent:a,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),Q(o,!0)},[Q]),Y=gg(function(e){if(ag(e))return function(t){return W(t,e)};W(e)}),K=d(function(e){rg(e)?O({type:"SET_FORMIK_STATE",payload:e}):O({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),H=d(function(e){O({type:"SET_STATUS",payload:e})},[]),G=d(function(e){O({type:"SET_ISSUBMITTING",payload:e})},[]),J=gg(function(){return O({type:"SUBMIT_ATTEMPT"}),C().then(function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var r;try{if(void 0===(r=ee()))return}catch(n){throw n}return Promise.resolve(r).then(function(e){return w.current&&O({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(w.current)throw O({type:"SUBMIT_FAILURE"}),e})}if(w.current&&(O({type:"SUBMIT_FAILURE"}),t))throw e})}),X=gg(function(e){if(e&&e.preventDefault&&rg(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&rg(e.stopPropagation)&&e.stopPropagation(),"production"!==process.env.NODE_ENV&&"undefined"!=typeof document){var t=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}();null!==t&&t instanceof HTMLButtonElement&&(t.attributes&&t.attributes.getNamedItem("type")||("production"!==process.env.NODE_ENV?jy(0,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):jy()))}J().catch(function(e){})}),Z={resetForm:P,validateForm:C,validateField:F,setErrors:L,setFieldError:z,setFieldTouched:Q,setFieldValue:V,setStatus:H,setSubmitting:G,setTouched:$,setValues:q,setFormikState:K,submitForm:J},ee=gg(function(){return m(j.values,Z)}),te=gg(function(e){e&&e.preventDefault&&rg(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&rg(e.stopPropagation)&&e.stopPropagation(),P()}),re=d(function(e){return{value:cg(j.values,e),error:cg(j.errors,e),touched:!!cg(j.touched,e),initialValue:cg(y.current,e),initialTouched:!!cg(b.current,e),initialError:cg(g.current,e)}},[j.errors,j.touched,j.values]),ne=d(function(e){return{setValue:function(t,r){return V(e,t,r)},setTouched:function(t,r){return Q(e,t,r)},setError:function(t){return z(e,t)}}},[V,Q,z]),ie=d(function(e){var t=ng(e),r=t?e.name:e,n=cg(j.values,r),i={name:r,value:n,onChange:U,onBlur:Y};if(t){var a=e.type,o=e.value,s=e.as,c=e.multiple;"checkbox"===a?void 0===o?i.checked=!!n:(i.checked=!(!Array.isArray(n)||!~n.indexOf(o)),i.value=o):"radio"===a?(i.checked=n===o,i.value=o):"select"===s&&c&&(i.value=i.value||[],i.multiple=!0)}return i},[Y,U,j.values]),ae=p(function(){return!Sy(y.current,j.values)},[y.current,j.values]),oe=p(function(){return void 0!==u?ae?j.errors&&0===Object.keys(j.errors).length:!1!==u&&rg(u)?u(v):u:j.errors&&0===Object.keys(j.errors).length},[u,ae,j.errors,v]);return Jy({},j,{initialValues:y.current,initialErrors:g.current,initialTouched:b.current,initialStatus:k.current,handleBlur:Y,handleChange:U,handleReset:te,handleSubmit:X,resetForm:P,setErrors:L,setFormikState:K,setFieldTouched:Q,setFieldValue:V,setFieldError:z,setStatus:H,setSubmitting:G,setTouched:$,setValues:q,submitForm:J,validateForm:C,validateField:F,isValid:oe,dirty:ae,unregisterField:M,registerField:R,getFieldProps:ie,getFieldMeta:re,getFieldHelpers:ne,validateOnBlur:o,validateOnChange:i,validateOnMount:c})}function fg(e){var t=hg(e),n=e.component,i=e.children,a=e.render,u=e.innerRef;return o(u,function(){return t}),"production"!==process.env.NODE_ENV&&r(function(){e.render&&("production"!==process.env.NODE_ENV?jy(0,"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>"):jy())},[]),s(eg,{value:t},n?s(n,t):a?a(t):i?rg(i)?i(t):og(i)?null:c.only(i):null)}function mg(e){e.htmlContent,e.documentationAnchorLink,e.handlerName}function _g(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);!0===Array.isArray(e[n])?t[n]=e[n].map(function(e){return!0===Array.isArray(e)||v_(e)?_g(e):""!==e?e:void 0}):v_(e[n])?t[n]=_g(e[n]):t[n]=""!==e[n]?e[n]:void 0}return t}function vg(e,t,r){var n=e.slice();return t.forEach(function(t,i){if(void 0===n[i]){var a=!1!==r.clone&&r.isMergeableObject(t);n[i]=a?Jm(Array.isArray(t)?[]:{},t,r):t}else r.isMergeableObject(t)?n[i]=Jm(e[i],t,r):-1===e.indexOf(t)&&n.push(t)}),n}var yg="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?h:r;function gg(e){var t=l(e);return yg(function(){t.current=e}),d(function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current.apply(void 0,r)},[])}function bg(e){var t=e.validate,n=e.name,i=e.render,a=e.children,o=e.as,c=e.component,u=e.className,l=Xy(e,["validate","name","render","children","as","component","className"]),d=Xy(tg(),["validate","validationSchema"]);"production"!==process.env.NODE_ENV&&r(function(){i&&("production"!==process.env.NODE_ENV?jy(0,'<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name="'+n+'" render={({field, form}) => ...} /> with <Field name="'+n+'">{({field, form, meta}) => ...}</Field>'):jy()),o&&a&&rg(a)&&("production"!==process.env.NODE_ENV?jy(0,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):jy()),c&&a&&rg(a)&&("production"!==process.env.NODE_ENV?jy(0,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):jy()),i&&a&&!og(a)&&("production"!==process.env.NODE_ENV?jy(0,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):jy())},[]);var p=d.registerField,h=d.unregisterField;r(function(){return p(n,{validate:t}),function(){h(n)}},[p,h,n,t]);var f=d.getFieldProps(Jy({name:n},l)),m=d.getFieldMeta(n),_={field:f,form:d};if(i)return i(Jy({},_,{meta:m}));if(rg(a))return a(Jy({},_,{meta:m}));if(c){if("string"==typeof c){var v=l.innerRef,y=Xy(l,["innerRef"]);return s(c,Jy({ref:v},f,y,{className:u}),a)}return s(c,Jy({field:f,form:d},l,{className:u}),a)}var g=o||"input";if("string"==typeof g){var b=l.innerRef,k=Xy(l,["innerRef"]);return s(g,Jy({ref:b},f,k,{className:u}),a)}return s(g,Jy({},f,l,{className:u}),a)}var kg=/* @__PURE__ */u(function(e,t){var r=e.action,n=Xy(e,["action"]),i=null!=r?r:"#",a=tg(),o=a.handleReset,c=a.handleSubmit;return s("form",Jy({onSubmit:c,ref:t,onReset:o,action:i},n))});kg.displayName="Form";const wg=({height:e="16px",width:t="16px"})=>/* @__PURE__ */E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 100",enableBackground:"new 0 0 100 100",xmlSpace:"preserve",style:{height:e,width:t},children:[
569
569
  /* @__PURE__ */E.jsx("path",{d:"M50,5c24.813,0,45,20.187,45,45c0,24.813-20.187,45-45,45C25.187,95,5,74.813,5,50C5,25.187,25.187,5,50,5 M50,0C22.386,0,0,22.386,0,50c0,27.614,22.386,50,50,50c27.614,0,50-22.386,50-50C100,22.386,77.614,0,50,0L50,0z"}),
570
570
  /* @__PURE__ */E.jsx("circle",{cx:"50",cy:"29.546",r:"4.934"}),
571
- /* @__PURE__ */E.jsx("rect",{x:"46.5",y:"41.21",width:"7",height:"34.179"})]}),wg=()=>{const{locale:e}=i(qm);/* @__PURE__ */
571
+ /* @__PURE__ */E.jsx("rect",{x:"46.5",y:"41.21",width:"7",height:"34.179"})]}),xg=()=>{const{locale:e}=i(zm);/* @__PURE__ */
572
572
  return E.jsxs(E.Fragment,{children:[
573
- /* @__PURE__ */E.jsx("h2",{children:rc("cancel_insurance_normal_long")}),
574
- /* @__PURE__ */E.jsx("p",{children:rc("cancel_insurance_normal_desc")}),
575
- /* @__PURE__ */E.jsx("h3",{children:rc("cancel_insurance_more_insured")}),
576
- /* @__PURE__ */E.jsx("p",{children:rc("cancel_insurance_more_insured_desc")}),
577
- /* @__PURE__ */E.jsx("h3",{children:rc("cancel_insurance_important")}),
578
- /* @__PURE__ */E.jsx("p",{children:rc("cancel_insurance_important_message")}),
579
- /* @__PURE__ */E.jsx("h3",{children:rc("cancel_insurance_for_whom")}),
580
- /* @__PURE__ */E.jsx("p",{children:rc("cancel_insurance_for_whom_explain")}),
581
- /* @__PURE__ */E.jsx("h3",{children:rc("cancel_insurance_questions")}),
582
- /* @__PURE__ */E.jsxs("p",{children:[rc("cancel_insurance_questions_explain_1"),
583
- /* @__PURE__ */E.jsx("a",{href:{nl:"https://recreatieverzekeringen.nl/veelgestelde-vragen",de:"https://recreatieverzekeringen.nl/de/haufig-gestellte-fragen",en:"https://recreatieverzekeringen.nl/en/frequently-asked-questions",fr:"https://recreatieverzekeringen.nl/en/frequently-asked-questions",es:"https://recreatieverzekeringen.nl/en/frequently-asked-questions",it:"https://recreatieverzekeringen.nl/en/frequently-asked-questions"}[e],target:"_blank",children:rc("cancel_insurance_questions_explain_link")}),rc("cancel_insurance_questions_explain_2")]}),
584
- /* @__PURE__ */E.jsx("h3",{children:rc("terms")}),
585
- /* @__PURE__ */E.jsx("a",{href:`https://api.bukazu.com/files/${e}/insurance.pdf`,target:"_blank",rel:"noopener noreferrer",children:rc("show_terms")})]})};function xg(e){return Array.apply(null,{length:e+1}).map(Number.call,Number)}function Sg(e,t){for(var r=(t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),n=0,i=r.length;n<i;++n){var a=r[n];if(!(a in e))return;e=e[a]}return e}function Eg(e,t){/* @__PURE__ */
586
- return E.jsx("option",{value:t,children:rc(e)})}function jg({label:e,description:t,count:r=0,...n}){const i=xg(r);/* @__PURE__ */
587
- return E.jsx(gg,{name:n.name,children:({field:r,meta:a})=>/* @__PURE__ */E.jsxs("div",{className:"form-row inline",id:`bukazu_form_${n.name}`,children:[
588
- /* @__PURE__ */E.jsx("label",{htmlFor:n.name,children:rc(e)}),
589
- /* @__PURE__ */E.jsx("select",{...r,...n,children:i.map(e=>/* @__PURE__ */E.jsx("option",{value:e,children:e},e))}),t,a.touched&&a.error&&/* @__PURE__ */E.jsx("div",{className:"error-message bu-error-message",children:a.error})]})})}function Og({label:e,description:t,name:r,inline:n}){/* @__PURE__ */
590
- return E.jsx(gg,{name:r,children:({field:r,meta:i})=>{const{value:a,name:o}=r,s=a&&""!==a?a:"";/* @__PURE__ */
573
+ /* @__PURE__ */E.jsx("h2",{children:nc("cancel_insurance_normal_long")}),
574
+ /* @__PURE__ */E.jsx("p",{children:nc("cancel_insurance_normal_desc")}),
575
+ /* @__PURE__ */E.jsx("h3",{children:nc("cancel_insurance_more_insured")}),
576
+ /* @__PURE__ */E.jsx("p",{children:nc("cancel_insurance_more_insured_desc")}),
577
+ /* @__PURE__ */E.jsx("h3",{children:nc("cancel_insurance_important")}),
578
+ /* @__PURE__ */E.jsx("p",{children:nc("cancel_insurance_important_message")}),
579
+ /* @__PURE__ */E.jsx("h3",{children:nc("cancel_insurance_for_whom")}),
580
+ /* @__PURE__ */E.jsx("p",{children:nc("cancel_insurance_for_whom_explain")}),
581
+ /* @__PURE__ */E.jsx("h3",{children:nc("cancel_insurance_questions")}),
582
+ /* @__PURE__ */E.jsxs("p",{children:[nc("cancel_insurance_questions_explain_1"),
583
+ /* @__PURE__ */E.jsx("a",{href:{nl:"https://recreatieverzekeringen.nl/veelgestelde-vragen",de:"https://recreatieverzekeringen.nl/de/haufig-gestellte-fragen",en:"https://recreatieverzekeringen.nl/en/frequently-asked-questions",fr:"https://recreatieverzekeringen.nl/en/frequently-asked-questions",es:"https://recreatieverzekeringen.nl/en/frequently-asked-questions",it:"https://recreatieverzekeringen.nl/en/frequently-asked-questions"}[e],target:"_blank",children:nc("cancel_insurance_questions_explain_link")}),nc("cancel_insurance_questions_explain_2")]}),
584
+ /* @__PURE__ */E.jsx("h3",{children:nc("terms")}),
585
+ /* @__PURE__ */E.jsx("a",{href:`https://api.bukazu.com/files/${e}/insurance.pdf`,target:"_blank",rel:"noopener noreferrer",children:nc("show_terms")})]})};function Sg(e){return Array.apply(null,{length:e+1}).map(Number.call,Number)}function Eg(e,t){for(var r=(t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),n=0,i=r.length;n<i;++n){var a=r[n];if(!(a in e))return;e=e[a]}return e}function jg(e,t){/* @__PURE__ */
586
+ return E.jsx("option",{value:t,children:nc(e)})}function Og({label:e,description:t,count:r=0,...n}){const i=Sg(r);/* @__PURE__ */
587
+ return E.jsx(bg,{name:n.name,children:({field:r,meta:a})=>/* @__PURE__ */E.jsxs("div",{className:"form-row inline",id:`bukazu_form_${n.name}`,children:[
588
+ /* @__PURE__ */E.jsx("label",{htmlFor:n.name,children:nc(e)}),
589
+ /* @__PURE__ */E.jsx("select",{...r,...n,children:i.map(e=>/* @__PURE__ */E.jsx("option",{value:e,children:e},e))}),t,a.touched&&a.error&&/* @__PURE__ */E.jsx("div",{className:"error-message bu-error-message",children:a.error})]})})}function Tg({label:e,description:t,name:r,inline:n}){/* @__PURE__ */
590
+ return E.jsx(bg,{name:r,children:({field:r,meta:i})=>{const{value:a,name:o}=r,s=a&&""!==a?a:"";/* @__PURE__ */
591
591
  return E.jsxs("div",{className:`form-row ${n&&"inline"}`,id:`bukazu_form_${o}`,children:[
592
- /* @__PURE__ */E.jsx("label",{htmlFor:o,children:rc(e)}),
592
+ /* @__PURE__ */E.jsx("label",{htmlFor:o,children:nc(e)}),
593
593
  /* @__PURE__ */E.jsx("input",{type:"date",className:"bukazu-date-picker",id:o,name:o,value:s,onChange:r.onChange}),
594
- /* @__PURE__ */E.jsx("span",{className:"bu-input-description",children:t}),i.touched&&i.error&&/* @__PURE__ */E.jsx("div",{className:"error-message bu-error-message",children:i.error})]})}})}function Tg(e){if(e.cancel_insurance)/* @__PURE__ */
594
+ /* @__PURE__ */E.jsx("span",{className:"bu-input-description",children:t}),i.touched&&i.error&&/* @__PURE__ */E.jsx("div",{className:"error-message bu-error-message",children:i.error})]})}})}function Dg(e){if(e.cancel_insurance)/* @__PURE__ */
595
595
  return E.jsxs("div",{className:"form-row inline",children:[
596
- /* @__PURE__ */E.jsx("label",{htmlFor:"cancel_insurance",children:rc("cancel_insurance")}),
597
- /* @__PURE__ */E.jsxs(gg,{component:"select",name:"cancel_insurance",required:!0,children:[Eg("choose",""),Eg("cancel_insurance_normal","1"),Eg("none","0")]}),
598
- /* @__PURE__ */E.jsx(vl,{buttonText:/* @__PURE__ */E.jsx(kg,{}),children:/* @__PURE__ */E.jsx(wg,{})})]})}Og.defaultValues={inline:!0};const Dg=({house:e,values:t})=>e.cancel_insurance?/* @__PURE__ */E.jsxs("div",{className:"form-section bup-16",id:"insurances",children:[
599
- /* @__PURE__ */E.jsx("h2",{children:rc("insurances")}),Tg(e),t.cancel_insurance&&"0"!==t.cancel_insurance&&/* @__PURE__ */E.jsx(Og,{label:"extra_fields.date_of_birth",name:"extra_fields.date_of_birth",required:!0,inline:!1,description:rc("insurance_company_needs_date_of_birth")})]}):/* @__PURE__ */E.jsx("div",{});function Ng({house:e}){const[t,{loading:r,error:n,data:i}]=Es(zs);/* @__PURE__ */
596
+ /* @__PURE__ */E.jsx("label",{htmlFor:"cancel_insurance",children:nc("cancel_insurance")}),
597
+ /* @__PURE__ */E.jsxs(bg,{component:"select",name:"cancel_insurance",required:!0,children:[jg("choose",""),jg("cancel_insurance_normal","1"),jg("none","0")]}),
598
+ /* @__PURE__ */E.jsx(yl,{buttonText:/* @__PURE__ */E.jsx(wg,{}),children:/* @__PURE__ */E.jsx(xg,{})})]})}Tg.defaultValues={inline:!0};const Ng=({house:e,values:t})=>e.cancel_insurance?/* @__PURE__ */E.jsxs("div",{className:"form-section bup-16",id:"insurances",children:[
599
+ /* @__PURE__ */E.jsx("h2",{children:nc("insurances")}),Dg(e),t.cancel_insurance&&"0"!==t.cancel_insurance&&/* @__PURE__ */E.jsx(Tg,{label:"extra_fields.date_of_birth",name:"extra_fields.date_of_birth",required:!0,inline:!1,description:nc("insurance_company_needs_date_of_birth")})]}):/* @__PURE__ */E.jsx("div",{});function Ig({house:e}){const[t,{loading:r,error:n,data:i}]=js(Vs);/* @__PURE__ */
600
600
  return E.jsxs("div",{className:"form-row inline",children:[
601
- /* @__PURE__ */E.jsx("label",{htmlFor:"discount_code",children:rc("discount_code")}),
602
- /* @__PURE__ */E.jsx(gg,{name:"discount_code",children:({field:r,form:n})=>/* @__PURE__ */E.jsx("input",{...r,onChange:i=>{t({variables:{code:i.target.value,house_code:e.code}}),n.setFieldValue(r.name,i.target.value)}})}),r&&/* @__PURE__ */E.jsx("div",{className:"bu_discount_code",children:"Loading..."}),n&&/* @__PURE__ */E.jsx("div",{className:"bu_discount_code",children:rc("no_discount_code_found")}),i&&/* @__PURE__ */E.jsxs("div",{className:"bu_discount_code",children:[
603
- /* @__PURE__ */E.jsx("div",{children:i.checkDiscountCode.name}),i.checkDiscountCode.use_price?/* @__PURE__ */E.jsxs("div",{children:["€ ",i.checkDiscountCode.price]}):/* @__PURE__ */E.jsxs("div",{children:[i.checkDiscountCode.percentage,"%"]})]})]})}const Ig=({errors:e,house:t,bookingFormConfiguration:r,values:n})=>{if(t.discounts&&"0"!==t.discounts||r.showDiscountCode){const i=t.discounts?t.discounts.split(","):[];/* @__PURE__ */
601
+ /* @__PURE__ */E.jsx("label",{htmlFor:"discount_code",children:nc("discount_code")}),
602
+ /* @__PURE__ */E.jsx(bg,{name:"discount_code",children:({field:r,form:n})=>/* @__PURE__ */E.jsx("input",{...r,onChange:i=>{t({variables:{code:i.target.value,house_code:e.code}}),n.setFieldValue(r.name,i.target.value)}})}),r&&/* @__PURE__ */E.jsx("div",{className:"bu_discount_code",children:"Loading..."}),n&&/* @__PURE__ */E.jsx("div",{className:"bu_discount_code",children:nc("no_discount_code_found")}),i&&/* @__PURE__ */E.jsxs("div",{className:"bu_discount_code",children:[
603
+ /* @__PURE__ */E.jsx("div",{children:i.checkDiscountCode.name}),i.checkDiscountCode.use_price?/* @__PURE__ */E.jsxs("div",{children:["€ ",i.checkDiscountCode.price]}):/* @__PURE__ */E.jsxs("div",{children:[i.checkDiscountCode.percentage,"%"]})]})]})}const Ag=({errors:e,house:t,bookingFormConfiguration:r,values:n})=>{if(t.discounts&&"0"!==t.discounts||r.showDiscountCode){const i=t.discounts?t.discounts.split(","):[];/* @__PURE__ */
604
604
  return E.jsxs("div",{className:"form-section bup-16",children:[t.discounts&&"0"!==t.discounts&&/* @__PURE__ */E.jsxs(E.Fragment,{children:[
605
605
  /* @__PURE__ */E.jsxs("div",{className:"form-row inline",children:[
606
- /* @__PURE__ */E.jsx("label",{htmlFor:"discount",children:rc("discount")}),
607
- /* @__PURE__ */E.jsx(gg,{component:"select",name:"discount",children:i.map(e=>/* @__PURE__ */E.jsxs("option",{value:e,children:[e,"%"]},e))})]}),
606
+ /* @__PURE__ */E.jsx("label",{htmlFor:"discount",children:nc("discount")}),
607
+ /* @__PURE__ */E.jsx(bg,{component:"select",name:"discount",children:i.map(e=>/* @__PURE__ */E.jsxs("option",{value:e,children:[e,"%"]},e))})]}),
608
608
  /* @__PURE__ */E.jsxs("div",{className:"form-row inline",children:[
609
- /* @__PURE__ */E.jsx("label",{htmlFor:"discount_reason",children:rc("discount_reason")}),
610
- /* @__PURE__ */E.jsx(gg,{name:"discount_reason"}),e.discount_reason&&/* @__PURE__ */E.jsx("div",{className:"error-message bu-error-message",children:e.discount_reason})]}),
611
- /* @__PURE__ */E.jsx("div",{children:/* @__PURE__ */E.jsx("i",{style:{fontSize:14},children:t.discounts_info})})]}),r.showDiscountCode&&/* @__PURE__ */E.jsx(Ng,{errors:e,house:t,values:n})]})}return null},Ag=({error:e})=>e?/* @__PURE__ */E.jsx("div",{className:"input-feedback",children:e}):null,Cg=({field:{name:e,value:t,onChange:r,onBlur:n},id:i,label:a,...o})=>/* @__PURE__ */E.jsxs("div",{children:[
609
+ /* @__PURE__ */E.jsx("label",{htmlFor:"discount_reason",children:nc("discount_reason")}),
610
+ /* @__PURE__ */E.jsx(bg,{name:"discount_reason"}),e.discount_reason&&/* @__PURE__ */E.jsx("div",{className:"error-message bu-error-message",children:e.discount_reason})]}),
611
+ /* @__PURE__ */E.jsx("div",{children:/* @__PURE__ */E.jsx("i",{style:{fontSize:14},children:t.discounts_info})})]}),r.showDiscountCode&&/* @__PURE__ */E.jsx(Ig,{errors:e,house:t,values:n})]})}return null},Cg=({error:e})=>e?/* @__PURE__ */E.jsx("div",{className:"input-feedback",children:e}):null,Pg=({field:{name:e,value:t,onChange:r,onBlur:n},id:i,label:a,...o})=>/* @__PURE__ */E.jsxs("div",{children:[
612
612
  /* @__PURE__ */E.jsx("input",{name:e,id:i,type:"radio",value:i,checked:i===t,onChange:r,onBlur:n,className:"radio-button",...o}),
613
- /* @__PURE__ */E.jsx("label",{htmlFor:i,children:a})]}),Pg=({error:e,touched:t,label:r,className:n,children:i})=>/* @__PURE__ */E.jsxs("div",{className:n,children:[
614
- /* @__PURE__ */E.jsx("div",{className:"legend",children:r}),i,t&&/* @__PURE__ */E.jsx(Ag,{error:e})]});function Fg({house:e}){/* @__PURE__ */
615
- return E.jsx(E.Fragment,{children:e.allow_option&&/* @__PURE__ */E.jsx("div",{children:/* @__PURE__ */E.jsxs(Pg,{id:"is_option",className:"booking_option",children:[
616
- /* @__PURE__ */E.jsx(gg,{component:Cg,name:"is_option",id:"true",disabled:!e.allow_option,label:rc("option")}),
617
- /* @__PURE__ */E.jsx(gg,{component:Cg,name:"is_option",id:"false",label:rc("booking")})]})})})}function Rg({description:e}){let t=/* @__PURE__ */E.jsx("span",{});return e&&(t=/* @__PURE__ */E.jsx("span",{style:{padding:"0 0 0 8px"},children:/* @__PURE__ */E.jsx(vl,{buttonText:/* @__PURE__ */E.jsx(kg,{}),children:/* @__PURE__ */E.jsx("p",{children:e})})})),t}function Mg({name:e,amount:t,description:r,method_name:n,formatName:i,forceMethod:a}){/* @__PURE__ */
613
+ /* @__PURE__ */E.jsx("label",{htmlFor:i,children:a})]}),Fg=({error:e,touched:t,label:r,className:n,children:i})=>/* @__PURE__ */E.jsxs("div",{className:n,children:[
614
+ /* @__PURE__ */E.jsx("div",{className:"legend",children:r}),i,t&&/* @__PURE__ */E.jsx(Cg,{error:e})]});function Rg({house:e}){/* @__PURE__ */
615
+ return E.jsx(E.Fragment,{children:e.allow_option&&/* @__PURE__ */E.jsx("div",{children:/* @__PURE__ */E.jsxs(Fg,{id:"is_option",className:"booking_option",children:[
616
+ /* @__PURE__ */E.jsx(bg,{component:Pg,name:"is_option",id:"true",disabled:!e.allow_option,label:nc("option")}),
617
+ /* @__PURE__ */E.jsx(bg,{component:Pg,name:"is_option",id:"false",label:nc("booking")})]})})})}function Mg({description:e}){let t=/* @__PURE__ */E.jsx("span",{});return e&&(t=/* @__PURE__ */E.jsx("span",{style:{padding:"0 0 0 8px"},children:/* @__PURE__ */E.jsx(yl,{buttonText:/* @__PURE__ */E.jsx(wg,{}),children:/* @__PURE__ */E.jsx("p",{children:e})})})),t}function $g({name:e,amount:t,description:r,method_name:n,formatName:i,forceMethod:a}){/* @__PURE__ */
618
618
  return E.jsxs("tr",{children:[
619
- /* @__PURE__ */E.jsxs("td",{children:[i?rc(e):e,r&&/* @__PURE__ */E.jsxs(E.Fragment,{children:[" ",
620
- /* @__PURE__ */E.jsx(Rg,{description:r})]})]}),
621
- /* @__PURE__ */E.jsx("td",{className:"price",children:t&&t>0?/* @__PURE__ */E.jsxs(E.Fragment,{children:["€"," ",nc(t,{minimumFractionDigits:2,maximumFractionDigits:2}),a&&/* @__PURE__ */E.jsxs(E.Fragment,{children:[" ",n]})]}):/* @__PURE__ */E.jsx(E.Fragment,{children:n})})]})}function $g({prices:e}){const{insurances:t,required_costs:r}=e.total_costs,{not_on_site:n}=r;/* @__PURE__ */
619
+ /* @__PURE__ */E.jsxs("td",{children:[i?nc(e):e,r&&/* @__PURE__ */E.jsxs(E.Fragment,{children:[" ",
620
+ /* @__PURE__ */E.jsx(Mg,{description:r})]})]}),
621
+ /* @__PURE__ */E.jsx("td",{className:"price",children:t&&t>0?/* @__PURE__ */E.jsxs(E.Fragment,{children:["€"," ",ic(t,{minimumFractionDigits:2,maximumFractionDigits:2}),a&&/* @__PURE__ */E.jsxs(E.Fragment,{children:[" ",n]})]}):/* @__PURE__ */E.jsx(E.Fragment,{children:n})})]})}function Lg({prices:e}){const{insurances:t,required_costs:r}=e.total_costs,{not_on_site:n}=r;/* @__PURE__ */
622
622
  return E.jsx("div",{className:"costs-section",children:/* @__PURE__ */E.jsx("table",{children:/* @__PURE__ */E.jsxs("tbody",{children:[t&&/* @__PURE__ */E.jsx(E.Fragment,{children:Object.keys(t).map(e=>{if(t[e]>0)/* @__PURE__ */
623
- return E.jsx(Mg,{name:e,formatName:!0,amount:t[e]},e)})}),e.required_house_costs.map(e=>{if(!e.on_site&&"0120"!==e.gl)return"none"===e.method?/* @__PURE__ */E.jsx(Mg,{...e},e.id):0===e.amount?null:/* @__PURE__ */E.jsx(Mg,{...e,amount:n?.find(t=>t.id==e.id).amount},e.id)})]})})})}function Lg({prices:e}){const{rent_price:t,discount:r,discounted_price:n}=e;/* @__PURE__ */
623
+ return E.jsx($g,{name:e,formatName:!0,amount:t[e]},e)})}),e.required_house_costs.map(e=>{if(!e.on_site&&"0120"!==e.gl)return"none"===e.method?/* @__PURE__ */E.jsx($g,{...e},e.id):0===e.amount?null:/* @__PURE__ */E.jsx($g,{...e,amount:n?.find(t=>t.id==e.id).amount},e.id)})]})})})}function qg({prices:e}){const{rent_price:t,discount:r,discounted_price:n}=e;/* @__PURE__ */
624
624
  return E.jsx("div",{className:"costs-section",children:/* @__PURE__ */E.jsx("table",{children:/* @__PURE__ */E.jsxs("tbody",{children:[
625
- /* @__PURE__ */E.jsx(Mg,{name:"rent_price",formatName:!0,amount:t}),r>0?/* @__PURE__ */E.jsxs(E.Fragment,{children:[
626
- /* @__PURE__ */E.jsx(Mg,{name:"discount",formatName:!0,amount:r}),
627
- /* @__PURE__ */E.jsx(Mg,{name:"price_after_discount",formatName:!0,amount:n})]}):null]})})})}function qg({prices:e}){const{optional_costs:t}=e.total_costs,{not_on_site:r}=t;/* @__PURE__ */
625
+ /* @__PURE__ */E.jsx($g,{name:"rent_price",formatName:!0,amount:t}),r>0?/* @__PURE__ */E.jsxs(E.Fragment,{children:[
626
+ /* @__PURE__ */E.jsx($g,{name:"discount",formatName:!0,amount:r}),
627
+ /* @__PURE__ */E.jsx($g,{name:"price_after_discount",formatName:!0,amount:n})]}):null]})})})}function zg({prices:e}){const{optional_costs:t}=e.total_costs,{not_on_site:r}=t;/* @__PURE__ */
628
628
  return E.jsx("div",{className:"costs-section",children:/* @__PURE__ */E.jsx("table",{children:/* @__PURE__ */E.jsx("tbody",{children:e.optional_house_costs.map(e=>{if(!e.on_site&&"0120"!==e.gl){if("none"===e.method)/* @__PURE__ */
629
- return E.jsx(Mg,{...e},e.id);if("on_site"===e.method){if(r.find(t=>t.id==e.id).nr_of_items>0)/* @__PURE__ */
630
- return E.jsx(Mg,{...e,amount:e.amount,forceMethod:!0},e.id)}else{let t=r.find(t=>t.id==e.id).amount;if(t>0)/* @__PURE__ */
631
- return E.jsx(Mg,{...e,amount:t},e.id)}}})})})})}function zg({prices:e}){const{optional_costs:t}=e.total_costs,{on_site:r}=t;/* @__PURE__ */
629
+ return E.jsx($g,{...e},e.id);if("on_site"===e.method){if(r.find(t=>t.id==e.id).nr_of_items>0)/* @__PURE__ */
630
+ return E.jsx($g,{...e,amount:e.amount,forceMethod:!0},e.id)}else{let t=r.find(t=>t.id==e.id).amount;if(t>0)/* @__PURE__ */
631
+ return E.jsx($g,{...e,amount:t},e.id)}}})})})})}function Vg({prices:e}){const{optional_costs:t}=e.total_costs,{on_site:r}=t;/* @__PURE__ */
632
632
  return E.jsx(E.Fragment,{children:e.optional_house_costs.map(e=>{if(e.on_site&&"0120"!==e.gl){if("none"===e.method)/* @__PURE__ */
633
- return E.jsx(Mg,{...e},e.id);if("on_site"===e.method){if(r?.find(t=>t.id==e.id).nr_of_items>0)/* @__PURE__ */
634
- return E.jsx(Mg,{...e,amount:e.amount,forceMethod:!0},e.id)}else{let t=r?.find(t=>t.id==e.id).amount;if(t>0)/* @__PURE__ */
635
- return E.jsx(Mg,{...e,amount:t},e.id)}}})})}function Vg({prices:e}){const{required_costs:t}=e.total_costs,{on_site:r}=t;/* @__PURE__ */
633
+ return E.jsx($g,{...e},e.id);if("on_site"===e.method){if(r?.find(t=>t.id==e.id).nr_of_items>0)/* @__PURE__ */
634
+ return E.jsx($g,{...e,amount:e.amount,forceMethod:!0},e.id)}else{let t=r?.find(t=>t.id==e.id).amount;if(t>0)/* @__PURE__ */
635
+ return E.jsx($g,{...e,amount:t},e.id)}}})})}function Bg({prices:e}){const{required_costs:t}=e.total_costs,{on_site:r}=t;/* @__PURE__ */
636
636
  return E.jsxs("div",{className:"costs-section",children:[
637
- /* @__PURE__ */E.jsx("strong",{children:rc("costs_on_site")}),
637
+ /* @__PURE__ */E.jsx("strong",{children:nc("costs_on_site")}),
638
638
  /* @__PURE__ */E.jsx("table",{children:/* @__PURE__ */E.jsxs("tbody",{children:[e.required_house_costs.map(e=>{if(e.on_site&&"0120"!==e.gl){if("none"===e.method)/* @__PURE__ */
639
- return E.jsx(Mg,{...e},e.id);{let t=r.find(t=>t.id==e.id)?.amount;/* @__PURE__ */
640
- return E.jsx(Mg,{...e,amount:t},e.id)}}}),
641
- /* @__PURE__ */E.jsx(zg,{prices:e})]})})]})}function Bg({children:e}){/* @__PURE__ */
642
- return E.jsx("div",{className:"costs-section",children:/* @__PURE__ */E.jsx("table",{children:/* @__PURE__ */E.jsx("tbody",{children:e})})})}function Ug({prices:e}){/* @__PURE__ */
639
+ return E.jsx($g,{...e},e.id);{let t=r.find(t=>t.id==e.id)?.amount;/* @__PURE__ */
640
+ return E.jsx($g,{...e,amount:t},e.id)}}}),
641
+ /* @__PURE__ */E.jsx(Vg,{prices:e})]})})]})}function Ug({children:e}){/* @__PURE__ */
642
+ return E.jsx("div",{className:"costs-section",children:/* @__PURE__ */E.jsx("table",{children:/* @__PURE__ */E.jsx("tbody",{children:e})})})}function Qg({prices:e}){/* @__PURE__ */
643
643
  return E.jsxs(E.Fragment,{children:[
644
- /* @__PURE__ */E.jsx(Bg,{children:/* @__PURE__ */E.jsxs("tr",{children:[
645
- /* @__PURE__ */E.jsx("th",{style:{textAlign:"left",testTransform:"capitalize"},children:rc("total")}),
646
- /* @__PURE__ */E.jsxs("th",{className:"price",style:{fontSize:18},children:["€"," ",nc(e.total_costs.sub_total,{minimumFractionDigits:2,maximumFractionDigits:2})]})]})}),
647
- /* @__PURE__ */E.jsxs(Bg,{children:[
648
- /* @__PURE__ */E.jsx(Qg,{cost_array:e.required_house_costs,price_array:e.total_costs.required_costs.on_site}),
649
- /* @__PURE__ */E.jsx(Qg,{cost_array:e.required_house_costs,price_array:e.total_costs.required_costs.not_on_site}),
650
- /* @__PURE__ */E.jsx(Qg,{cost_array:e.optional_house_costs,price_array:e.total_costs.optional_costs.on_site}),
651
- /* @__PURE__ */E.jsx(Qg,{cost_array:e.optional_house_costs,price_array:e.total_costs.optional_costs.not_on_site})]}),
652
- /* @__PURE__ */E.jsx(Bg,{children:/* @__PURE__ */E.jsxs("tr",{children:[
653
- /* @__PURE__ */E.jsx("th",{style:{textAlign:"left",testTransform:"capitalize"},children:rc("total")}),
654
- /* @__PURE__ */E.jsxs("td",{className:"price",children:["€"," ",nc(e.total_costs.total_price,{minimumFractionDigits:2,maximumFractionDigits:2})]})]})})]})}function Qg({cost_array:e,price_array:t}){/* @__PURE__ */
644
+ /* @__PURE__ */E.jsx(Ug,{children:/* @__PURE__ */E.jsxs("tr",{children:[
645
+ /* @__PURE__ */E.jsx("th",{style:{textAlign:"left",testTransform:"capitalize"},children:nc("total")}),
646
+ /* @__PURE__ */E.jsxs("th",{className:"price",style:{fontSize:18},children:["€"," ",ic(e.total_costs.sub_total,{minimumFractionDigits:2,maximumFractionDigits:2})]})]})}),
647
+ /* @__PURE__ */E.jsxs(Ug,{children:[
648
+ /* @__PURE__ */E.jsx(Wg,{cost_array:e.required_house_costs,price_array:e.total_costs.required_costs.on_site}),
649
+ /* @__PURE__ */E.jsx(Wg,{cost_array:e.required_house_costs,price_array:e.total_costs.required_costs.not_on_site}),
650
+ /* @__PURE__ */E.jsx(Wg,{cost_array:e.optional_house_costs,price_array:e.total_costs.optional_costs.on_site}),
651
+ /* @__PURE__ */E.jsx(Wg,{cost_array:e.optional_house_costs,price_array:e.total_costs.optional_costs.not_on_site})]}),
652
+ /* @__PURE__ */E.jsx(Ug,{children:/* @__PURE__ */E.jsxs("tr",{children:[
653
+ /* @__PURE__ */E.jsx("th",{style:{textAlign:"left",testTransform:"capitalize"},children:nc("total")}),
654
+ /* @__PURE__ */E.jsxs("td",{className:"price",children:["€"," ",ic(e.total_costs.total_price,{minimumFractionDigits:2,maximumFractionDigits:2})]})]})})]})}function Wg({cost_array:e,price_array:t}){/* @__PURE__ */
655
655
  return E.jsx(E.Fragment,{children:e.map(e=>{let r=t.find(t=>t.id==e.id);if("0120"===e.gl&&r?.amount>0)/* @__PURE__ */
656
- return E.jsx(Mg,{...e,amount:r.amount},e.id)})})}function Wg({values:e,house:t}){let r=Number(e.babies)-Number(t.babies_extra);r<0&&(r=0);const n=Number(e.children)+Number(e.adults)+r,{portalCode:a,objectCode:o}=i(qm),{loading:s,error:c,data:u}=_s($s,{variables:{id:a,persons:n,house_id:o,starts_at:JSON.stringify(e.arrivalDate.date),ends_at:JSON.stringify(e.departureDate.date),costs:JSON.stringify(e.costs),discount:Number(e.discount),discount_code:e.discount_code,cancel_insurance:Number(e.cancel_insurance)},fetchPolicy:"network-only"});if(s)return"Loading...";if(c)/* @__PURE__ */
656
+ return E.jsx($g,{...e,amount:r.amount},e.id)})})}function Yg({values:e,house:t}){let r=Number(e.babies)-Number(t.babies_extra);r<0&&(r=0);const n=Number(e.children)+Number(e.adults)+r,{portalCode:a,objectCode:o}=i(zm),{loading:s,error:c,data:u}=vs(Ls,{variables:{id:a,persons:n,house_id:o,starts_at:JSON.stringify(e.arrivalDate.date),ends_at:JSON.stringify(e.departureDate.date),costs:JSON.stringify(e.costs),discount:Number(e.discount),discount_code:e.discount_code,cancel_insurance:Number(e.cancel_insurance)},fetchPolicy:"network-only"});if(s)return"Loading...";if(c)/* @__PURE__ */
657
657
  return E.jsx("div",{children:JSON.stringify(c)});const l=u.PortalSite.houses[0].booking_price;/* @__PURE__ */
658
658
  return E.jsxs(E.Fragment,{children:[
659
- /* @__PURE__ */E.jsx(Lg,{prices:l}),
660
- /* @__PURE__ */E.jsx($g,{prices:l}),
661
659
  /* @__PURE__ */E.jsx(qg,{prices:l}),
662
- /* @__PURE__ */E.jsx(Vg,{prices:l}),
663
- /* @__PURE__ */E.jsx(Ug,{prices:l})]})}Mg.defaultValues={formatName:!1,forceMethod:!1};class Yg{constructor(e,t){this.house=e,this.values=t,this.t={formatMessage:(e,t)=>rc(e.id,t)}}updateValues(e){this.values=e}render(){const{arrivalDate:e,departureDate:t}=this.values,r=document.createDocumentFragment(),n=document.createElement("h2");n.textContent=this.t.formatMessage({id:"booking_details"}),r.appendChild(n);const i=document.createElement("div");i.className="house-details";const a=document.createElement("div");if(a.textContent=this.house.name,i.appendChild(a),this.house.image_url){const e=document.createElement("img");e.src=this.house.image_url,e.alt="",i.appendChild(e)}const o=document.createElement("table"),s=document.createElement("tbody"),c=document.createElement("tr"),u=document.createElement("th");u.textContent=this.t.formatMessage({id:`${this.house.house_type}.arrival`});const l=document.createElement("td");l.className="price",l.textContent=Mm($m(e.date),Lm);const d=document.createElement("td");d.textContent=`${e.arrival_time_from} - ${e.arrival_time_to}`,c.append(u,l,d);const p=document.createElement("tr"),h=document.createElement("th");h.textContent=this.t.formatMessage({id:`${this.house.house_type}.departure`});const f=document.createElement("td");f.className="price",f.textContent=Mm($m(t.date),Lm);const m=document.createElement("td");m.textContent=t.departure_time,p.append(h,f,m),s.append(c,p),o.appendChild(s),i.appendChild(o),r.appendChild(i);const _=document.createElement("div");return _.appendChild(r),_}}function Kg({values:e,house:t}){const n=l(null),i=l(null);return n.current||(n.current=new Yg(t,e)),r(()=>{if(n.current&&(n.current.updateValues(e),i.current)){for(;i.current.firstChild;)i.current.removeChild(i.current.firstChild);i.current.appendChild(n.current.render())}},[e,t]),/* @__PURE__ */E.jsxs("div",{children:[
660
+ /* @__PURE__ */E.jsx(Lg,{prices:l}),
661
+ /* @__PURE__ */E.jsx(zg,{prices:l}),
662
+ /* @__PURE__ */E.jsx(Bg,{prices:l}),
663
+ /* @__PURE__ */E.jsx(Qg,{prices:l})]})}$g.defaultValues={formatName:!1,forceMethod:!1};class Kg{constructor(e,t){this.house=e,this.values=t,this.t={formatMessage:(e,t)=>nc(e.id,t)}}updateValues(e){this.values=e}render(){const{arrivalDate:e,departureDate:t}=this.values,r=document.createDocumentFragment(),n=document.createElement("h2");n.textContent=this.t.formatMessage({id:"booking_details"}),r.appendChild(n);const i=document.createElement("div");i.className="house-details";const a=document.createElement("div");if(a.textContent=this.house.name,i.appendChild(a),this.house.image_url){const e=document.createElement("img");e.src=this.house.image_url,e.alt="",i.appendChild(e)}const o=document.createElement("table"),s=document.createElement("tbody"),c=document.createElement("tr"),u=document.createElement("th");u.textContent=this.t.formatMessage({id:`${this.house.house_type}.arrival`});const l=document.createElement("td");l.className="price",l.textContent=$m(Lm(e.date),qm);const d=document.createElement("td");d.textContent=`${e.arrival_time_from} - ${e.arrival_time_to}`,c.append(u,l,d);const p=document.createElement("tr"),h=document.createElement("th");h.textContent=this.t.formatMessage({id:`${this.house.house_type}.departure`});const f=document.createElement("td");f.className="price",f.textContent=$m(Lm(t.date),qm);const m=document.createElement("td");m.textContent=t.departure_time,p.append(h,f,m),s.append(c,p),o.appendChild(s),i.appendChild(o),r.appendChild(i);const _=document.createElement("div");return _.appendChild(r),_}}function Hg({values:e,house:t}){const n=l(null),i=l(null);return n.current||(n.current=new Kg(t,e)),r(()=>{if(n.current&&(n.current.updateValues(e),i.current)){for(;i.current.firstChild;)i.current.removeChild(i.current.firstChild);i.current.appendChild(n.current.render())}},[e,t]),/* @__PURE__ */E.jsxs("div",{children:[
664
664
  /* @__PURE__ */E.jsx("div",{ref:i}),
665
- /* @__PURE__ */E.jsx(Fg,{house:t}),
666
- /* @__PURE__ */E.jsx(Wg,{values:e,house:t})]})}const Hg=[{id:"first_name",label:"Voornaam",type:"text",options:["text"],required:!0,placeholder:""},{id:"preposition",label:"Tussenvoegsel",type:"text",options:["text"],required:!1,placeholder:""},{id:"last_name",label:"Achternaam",type:"text",options:["text"],required:!0,mandatory:!0,placeholder:""},{id:"address",label:"Adres",type:"text",options:["text"],required:!0,placeholder:""},{id:"house_number",label:"Huisnummer",type:"text",options:["text"],required:!0,placeholder:""},{id:"zipcode",label:"Postcode",type:"text",options:["text"],required:!0,placeholder:""},{id:"city",label:"Plaats",type:"text",options:["text"],required:!0,placeholder:""},{id:"country",label:"Land",type:"select",options:["select"],required:!0,mandatory:!0,placeholder:""},{id:"email",label:"E-mail",type:"email",options:["email"],required:!0,mandatory:!0,placeholder:""},{id:"phone_mobile",label:"Mobiel telefoonnummer",type:"text",options:["text"],required:!1,placeholder:""},{id:"phone",label:"Telefoonnummer",type:"text",options:["text"],required:!0,placeholder:""},{id:"comment",label:"Opmerking",type:"textarea",options:["textarea"],required:!1,rows:10}],Gg=()=>/* @__PURE__ */E.jsxs("div",{className:"success-message",children:[
665
+ /* @__PURE__ */E.jsx(Rg,{house:t}),
666
+ /* @__PURE__ */E.jsx(Yg,{values:e,house:t})]})}const Gg=[{id:"first_name",label:"Voornaam",type:"text",options:["text"],required:!0,placeholder:""},{id:"preposition",label:"Tussenvoegsel",type:"text",options:["text"],required:!1,placeholder:""},{id:"last_name",label:"Achternaam",type:"text",options:["text"],required:!0,mandatory:!0,placeholder:""},{id:"address",label:"Adres",type:"text",options:["text"],required:!0,placeholder:""},{id:"house_number",label:"Huisnummer",type:"text",options:["text"],required:!0,placeholder:""},{id:"zipcode",label:"Postcode",type:"text",options:["text"],required:!0,placeholder:""},{id:"city",label:"Plaats",type:"text",options:["text"],required:!0,placeholder:""},{id:"country",label:"Land",type:"select",options:["select"],required:!0,mandatory:!0,placeholder:""},{id:"email",label:"E-mail",type:"email",options:["email"],required:!0,mandatory:!0,placeholder:""},{id:"phone_mobile",label:"Mobiel telefoonnummer",type:"text",options:["text"],required:!1,placeholder:""},{id:"phone",label:"Telefoonnummer",type:"text",options:["text"],required:!0,placeholder:""},{id:"comment",label:"Opmerking",type:"textarea",options:["textarea"],required:!1,rows:10}],Jg=()=>/* @__PURE__ */E.jsxs("div",{className:"success-message",children:[
667
667
  /* @__PURE__ */E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 125",style:{enableBackground:"new 0 0 100 100;",fill:"green",height:"150px"},xmlSpace:"preserve",children:/* @__PURE__ */E.jsx("path",{d:"M50,5C25.2,5,5,25.1,5,50c0,24.8,20.2,45,45,45s45-20.2,45-45C95,25.1,74.8,5,50,5z M72.7,38.2L44.2,66.7 c-0.4,0.4-0.9,0.6-1.4,0.6s-1-0.2-1.4-0.6l-14-14c-0.8-0.8-0.8-2,0-2.8c0.8-0.8,2-0.8,2.8,0l12.6,12.6l27.1-27.1 c0.8-0.8,2-0.8,2.8,0C73.5,36.1,73.5,37.4,72.7,38.2z"})}),
668
- /* @__PURE__ */E.jsx("h3",{children:rc("thank_you_for_your_request")}),
669
- /* @__PURE__ */E.jsx("p",{children:rc("we_sent_confirmation_check_email")})]}),Jg=["en","nl","de","fr","es","it"];const Xg=/* @__PURE__ */new Map;async function Zg(e){const t=function(e){return Jg.includes(e)}(e)?e:"en";if(Xg.has(t))return Xg.get(t);let r;switch(t){case"nl":r=(await import("./nl-BsUk8M6x.js")).default;break;case"de":r=(await import("./de-BGGl358_.js")).default;break;case"fr":r=(await import("./fr-8IzuJgoz.js")).default;break;case"es":r=(await import("./es-BkbS9Kfx.js")).default;break;case"it":r=(await import("./it-Dj6mAg7q.js")).default;break;default:r=(await import("./en-DhW17As5.js")).default}return Xg.set(t,r),r}function eb(e){return("string"==typeof e||"number"==typeof e)&&(!isNaN(e)&&(0|(t=parseFloat(e)))===t);var t}function tb({bookingFields:e,errors:n,touched:i,PortalSite:a,values:o}){const[s,c]=t([]),[u,l]=t(!0);r(()=>{let e=!0;const t="undefined"!=typeof window&&window.__localeId__||"en";return(async()=>{try{const r=await Zg(t);e&&c(r)}catch{}finally{e&&l(!1)}})(),()=>{e=!1}},[]);let d=[...e];const p=["address","house_number","zipcode","city"];return"1"!==o.cancel_insurance&&"2"!==o.cancel_insurance||p.forEach(t=>{const r=Hg.find(e=>e.id===t);if(!r)return;let n=e.findIndex(e=>e.id===t);-1!==n?d[n]=r:d.push(r)}),/* @__PURE__ */E.jsxs("div",{className:"form-section bup-16",children:[
670
- /* @__PURE__ */E.jsx("h2",{children:rc("personal_details")}),d.map(e=>{if("telephone"===e.id&&(e.id="phonenumber"),"booking_field"===e.type||eb(e.id)){const t=a.booking_fields?.find(t=>t.id===e.id);return t?/* @__PURE__ */E.jsxs("div",{className:"form-row",children:[
668
+ /* @__PURE__ */E.jsx("h3",{children:nc("thank_you_for_your_request")}),
669
+ /* @__PURE__ */E.jsx("p",{children:nc("we_sent_confirmation_check_email")})]}),Xg=["en","nl","de","fr","es","it"];const Zg=/* @__PURE__ */new Map;async function eb(e){const t=function(e){return Xg.includes(e)}(e)?e:"en";if(Zg.has(t))return Zg.get(t);let r;switch(t){case"nl":r=(await import("./nl-BsUk8M6x.js")).default;break;case"de":r=(await import("./de-BGGl358_.js")).default;break;case"fr":r=(await import("./fr-8IzuJgoz.js")).default;break;case"es":r=(await import("./es-BkbS9Kfx.js")).default;break;case"it":r=(await import("./it-Dj6mAg7q.js")).default;break;default:r=(await import("./en-DhW17As5.js")).default}return Zg.set(t,r),r}function tb(e){return("string"==typeof e||"number"==typeof e)&&(!isNaN(e)&&(0|(t=parseFloat(e)))===t);var t}function rb({bookingFields:e,errors:n,touched:i,PortalSite:a,values:o}){const[s,c]=t([]),[u,l]=t(!0);r(()=>{let e=!0;const t="undefined"!=typeof window&&window.__localeId__||"en";return(async()=>{try{const r=await eb(t);e&&c(r)}catch{}finally{e&&l(!1)}})(),()=>{e=!1}},[]);let d=[...e];const p=["address","house_number","zipcode","city"];return"1"!==o.cancel_insurance&&"2"!==o.cancel_insurance||p.forEach(t=>{const r=Gg.find(e=>e.id===t);if(!r)return;let n=e.findIndex(e=>e.id===t);-1!==n?d[n]=r:d.push(r)}),/* @__PURE__ */E.jsxs("div",{className:"form-section bup-16",children:[
670
+ /* @__PURE__ */E.jsx("h2",{children:nc("personal_details")}),d.map(e=>{if("telephone"===e.id&&(e.id="phonenumber"),"booking_field"===e.type||tb(e.id)){const t=a.booking_fields?.find(t=>t.id===e.id);return t?/* @__PURE__ */E.jsxs("div",{className:"form-row",children:[
671
671
  /* @__PURE__ */E.jsxs("label",{htmlFor:`extra_fields.booking_field_${t.id}`,children:[t.label," ",e.required&&/* @__PURE__ */E.jsx("span",{children:"*"})]}),
672
- /* @__PURE__ */E.jsx(gg,{onKeyPress:e=>{13===e.which&&e.preventDefault()},id:`extra_fields.booking_field_${t.id}`,type:"text"===t.field_type?"input":t.field_type,component:"text"===t.field_type?"input":t.field_type,name:`extra_fields.booking_field_${t.id}`}),n[e.id]&&(i.extra_fields&&i.extra_fields[`booking_field_${t.id}`]||i[e.id])&&/* @__PURE__ */E.jsx("div",{className:"error-message bu-error-message",children:n[e.id]})]},t.id):null}return"country"===e.id?/* @__PURE__ */E.jsxs("div",{className:"form-row",children:[
672
+ /* @__PURE__ */E.jsx(bg,{onKeyPress:e=>{13===e.which&&e.preventDefault()},id:`extra_fields.booking_field_${t.id}`,type:"text"===t.field_type?"input":t.field_type,component:"text"===t.field_type?"input":t.field_type,name:`extra_fields.booking_field_${t.id}`}),n[e.id]&&(i.extra_fields&&i.extra_fields[`booking_field_${t.id}`]||i[e.id])&&/* @__PURE__ */E.jsx("div",{className:"error-message bu-error-message",children:n[e.id]})]},t.id):null}return"country"===e.id?/* @__PURE__ */E.jsxs("div",{className:"form-row",children:[
673
673
  /* @__PURE__ */E.jsxs("label",{htmlFor:e.id,children:[a[`${e.id}_label`]," ",e.required&&/* @__PURE__ */E.jsx("span",{children:"*"})]}),
674
- /* @__PURE__ */E.jsx(gg,{component:"select",name:e.id,disabled:u,children:s.map(e=>/* @__PURE__ */E.jsx("option",{value:e.alpha2,children:e.name},e.alpha2))}),n[e.id]&&/* @__PURE__ */E.jsx("div",{className:"error-message bu-error-message",children:n[e.id]})]},e.id):"date"===e.type?/* @__PURE__ */E.jsx("div",{className:"form-row",children:/* @__PURE__ */E.jsx(Og,{name:e.id,label:e.id,inline:!1})},e.id):/* @__PURE__ */E.jsxs("div",{className:"form-row",children:[
674
+ /* @__PURE__ */E.jsx(bg,{component:"select",name:e.id,disabled:u,children:s.map(e=>/* @__PURE__ */E.jsx("option",{value:e.alpha2,children:e.name},e.alpha2))}),n[e.id]&&/* @__PURE__ */E.jsx("div",{className:"error-message bu-error-message",children:n[e.id]})]},e.id):"date"===e.type?/* @__PURE__ */E.jsx("div",{className:"form-row",children:/* @__PURE__ */E.jsx(Tg,{name:e.id,label:e.id,inline:!1})},e.id):/* @__PURE__ */E.jsxs("div",{className:"form-row",children:[
675
675
  /* @__PURE__ */E.jsxs("label",{htmlFor:e.id,children:[a[`${e.id.replace(/\./g,"_")}_label`]," ",e.required&&/* @__PURE__ */E.jsx("span",{children:"*"})]}),
676
- /* @__PURE__ */E.jsx(gg,{type:e.type,name:e.id,onKeyPress:e=>{13===e.which&&e.preventDefault()}}),n[e.id]&&i[e.id]&&/* @__PURE__ */E.jsx("div",{className:"error-message bu-error-message",children:n[e.id]})]},e.id)})]})}function rb({costs:e}){return 0===e.length?null:/* @__PURE__ */E.jsxs("div",{className:"form-section bup-16 optional_house_costs",children:[
677
- /* @__PURE__ */E.jsx("h2",{children:rc("extra_costs_bookable")}),
676
+ /* @__PURE__ */E.jsx(bg,{type:e.type,name:e.id,onKeyPress:e=>{13===e.which&&e.preventDefault()}}),n[e.id]&&i[e.id]&&/* @__PURE__ */E.jsx("div",{className:"error-message bu-error-message",children:n[e.id]})]},e.id)})]})}function nb({costs:e}){return 0===e.length?null:/* @__PURE__ */E.jsxs("div",{className:"form-section bup-16 optional_house_costs",children:[
677
+ /* @__PURE__ */E.jsx("h2",{children:nc("extra_costs_bookable")}),
678
678
  /* @__PURE__ */E.jsx("div",{children:e.map(e=>!["none","total"].includes(e.method)&&e.max_available>0?1===e.max_available?/* @__PURE__ */E.jsxs("div",{className:"form-row inline",children:[
679
679
  /* @__PURE__ */E.jsx("label",{htmlFor:e.id,children:e.name}),
680
- /* @__PURE__ */E.jsxs(gg,{component:"select",name:`costs[${e.id}]`,children:[
681
- /* @__PURE__ */E.jsx("option",{value:0,children:rc("no")}),
682
- /* @__PURE__ */E.jsx("option",{value:1,children:rc("yes")})]}),
683
- /* @__PURE__ */E.jsxs("div",{className:"price_per",children:["€"," ",nc(e.amount,{minimumFractionDigits:2,maximumFractionDigits:2})," ",e.method_name]}),
684
- /* @__PURE__ */E.jsx("div",{children:e.description?/* @__PURE__ */E.jsx("div",{children:/* @__PURE__ */E.jsx(vl,{buttonText:/* @__PURE__ */E.jsx(kg,{}),children:/* @__PURE__ */E.jsx("p",{children:e.description})})}):null})]},e.id):/* @__PURE__ */E.jsxs("div",{className:"form-row inline",children:[
680
+ /* @__PURE__ */E.jsxs(bg,{component:"select",name:`costs[${e.id}]`,children:[
681
+ /* @__PURE__ */E.jsx("option",{value:0,children:nc("no")}),
682
+ /* @__PURE__ */E.jsx("option",{value:1,children:nc("yes")})]}),
683
+ /* @__PURE__ */E.jsxs("div",{className:"price_per",children:["€"," ",ic(e.amount,{minimumFractionDigits:2,maximumFractionDigits:2})," ",e.method_name]}),
684
+ /* @__PURE__ */E.jsx("div",{children:e.description?/* @__PURE__ */E.jsx("div",{children:/* @__PURE__ */E.jsx(yl,{buttonText:/* @__PURE__ */E.jsx(wg,{}),children:/* @__PURE__ */E.jsx("p",{children:e.description})})}):null})]},e.id):/* @__PURE__ */E.jsxs("div",{className:"form-row inline",children:[
685
685
  /* @__PURE__ */E.jsx("label",{htmlFor:e.id,children:e.name}),
686
- /* @__PURE__ */E.jsx(gg,{component:"select",name:`costs[${e.id}]`,children:xg(e.max_available).map(e=>/* @__PURE__ */E.jsx("option",{value:e,children:e},e))}),
687
- /* @__PURE__ */E.jsxs("div",{className:"price_per",children:["€"," ",nc(e.amount,{minimumFractionDigits:2,maximumFractionDigits:2})," ",e.method_name]}),
688
- /* @__PURE__ */E.jsx("div",{children:e.description?/* @__PURE__ */E.jsx("div",{children:/* @__PURE__ */E.jsx(vl,{buttonText:/* @__PURE__ */E.jsx(kg,{}),children:/* @__PURE__ */E.jsx("p",{children:e.description})})}):null})]},e.id):"")})]})}function nb({bookingFormConfiguration:e,house:t}){/* @__PURE__ */
686
+ /* @__PURE__ */E.jsx(bg,{component:"select",name:`costs[${e.id}]`,children:Sg(e.max_available).map(e=>/* @__PURE__ */E.jsx("option",{value:e,children:e},e))}),
687
+ /* @__PURE__ */E.jsxs("div",{className:"price_per",children:["€"," ",ic(e.amount,{minimumFractionDigits:2,maximumFractionDigits:2})," ",e.method_name]}),
688
+ /* @__PURE__ */E.jsx("div",{children:e.description?/* @__PURE__ */E.jsx("div",{children:/* @__PURE__ */E.jsx(yl,{buttonText:/* @__PURE__ */E.jsx(wg,{}),children:/* @__PURE__ */E.jsx("p",{children:e.description})})}):null})]},e.id):"")})]})}function ib({bookingFormConfiguration:e,house:t}){/* @__PURE__ */
689
689
  return E.jsxs(E.Fragment,{children:[
690
- /* @__PURE__ */E.jsx(jg,{name:"adults",label:"adults",count:t.persons,description:/* @__PURE__ */E.jsx("div",{className:"age-description",children:rc("adults_from",{age:e.adultsFromAge})})}),e.childrenAllowed?/* @__PURE__ */E.jsx(jg,{name:"children",label:"children",count:t.persons-1,description:/* @__PURE__ */E.jsx("div",{className:"age-description",children:rc("children_from",{from:e.childrenFromAge,til:e.childrenTillAge})})}):null,e.babiesAllowed?/* @__PURE__ */E.jsx(jg,{name:"babies",label:"babies",count:t.persons-1,description:/* @__PURE__ */E.jsx("div",{className:"age-description",children:rc("babies_from",{babies:e.babiesTillAge})})}):null]})}function ib(e,t,r){const{babies_extra:n,persons:i}=t;let a={},o=Number(e.babies)-Number(n);o<0&&(o=0),e.persons=Number(e.children)+Number(e.adults)+o;for(let c of r)if(c.required)if(eb(c.id)){const t=Sg(e,`extra_fields.booking_field_${c.id}`);t&&""!==t||(a[c.id]=rc("required"))}else{const t=Sg(e,c.id);t&&""!==t||(a[c.id]=rc("required"))}var s;return e.adults<1&&i>0&&(a.adults=rc("at_least_1_adult")),Number(e.discount)>0&&!e.discount_reason&&(a.discount_reason=rc("you_need_to_give_reason")),e.persons>i&&(a.max_persons=rc("max_persons_reached")),0!==e.cancel_insurance&&(s=e.extra_fields?.date_of_birth,mu(new Date(s),fl(/* @__PURE__ */new Date)))&&(a["extra_fields.date_of_birth"]=rc("at_least_18y_old"),a.insurances=rc("at_least_18y_old")),a}const ab={selectedDate:null,arrivalDate:null,departureDate:null,bookingStarted:!1,persons:0},ob=n(ab),sb=n(ub);function cb({children:e}){const[t,r]=f(ub,ab);/* @__PURE__ */
691
- return E.jsx(ob.Provider,{value:t,children:/* @__PURE__ */E.jsx(sb.Provider,{value:r,children:e})})}function ub(e,t){switch(t.type){case"clicked":{const{day:r,house:n}=t,{selectedDate:i,arrivalDate:a}=e,o=$m(r.date),s=n.persons>2?2:n.persons;return r.departure&&i&&a&&mu(o,i)&&gc(o,i)<=n.max_nights&&gc(o,i)>=a.min_nights&&gc(o,i)<=a.max_nights?{...e,departureDate:r}:r.arrival?{bookingStarted:!1,selectedDate:o,arrivalDate:r,departureDate:null,persons:s}:e}case"reset":return ab;case"start":return{...e,bookingStarted:!0,persons:t.persons};case"return":return{...e,bookingStarted:!1};default:throw Error("Unknown action: "+t.type)}}function lb({house:e,PortalSite:t}){const{persons:r,arrivalDate:n,departureDate:a}=i(ob),{locale:o,portalCode:s,objectCode:c}=i(qm),u=i(sb),{options:l}=t,d=t.bookingFormConfiguration,p=l.bookingFields||Hg,h=e.booking_price;let f={};for(const i of h.optional_house_costs)f[i.id]="0";const[m,{loading:_,error:v,data:y,reset:g}]=Es(Cs),b=function(e){let t={};return e.map(e=>{t[e.id]=""}),t}(p),k=function(){const e=Bm("bu_portal_session");return""===e?null:e}();/* @__PURE__ */
692
- return E.jsx(hg,{validate:t=>ib(t,e,p),initialValues:{...b,arrivalDate:n,departureDate:a,is_option:"false",costs:f,adults:r,children:0,babies:0,persons:r,discount:0,country:"nl"},onSubmit:(e,{setSubmitting:t})=>{let r={...e,is_option:JSON.parse(e.is_option),house_code:c,portal_code:s,comment:e.comment||"",language:o,country:e.country.toUpperCase(),adults:Number(e.adults),children:Number(e.children)||0,babies:Number(e.babies)||0,discount:Number(e.discount)||0,cancel_insurance:Number(e.cancel_insurance)||0,arrival_date:e.arrivalDate.date,departure_date:e.departureDate.date,costs:JSON.stringify(e.costs),extra_fields:JSON.stringify(e.extra_fields),sessionIdentifier:k};m({variables:r}).then(()=>{const e={nl:"redirectUrlNl",en:"redirectUrlEn",de:"redirectUrlDe",fr:"redirectUrlFr",es:"redirectUrlEs",it:"redirectUrlIt"}[o],t=e?d[e]:void 0;t&&""!==t?window.location=t:d.redirectUrl&&""!==d.redirectUrl?window.location=d.redirectUrl:setTimeout(()=>{u({type:"return"})},15e3)})},children:({errors:r,touched:n,values:i,status:a,isSubmitting:o})=>/* @__PURE__ */E.jsxs(bg,{className:"form",children:[_&&/* @__PURE__ */E.jsx("div",{className:"return-message",children:"Creating booking..."}),v&&/* @__PURE__ */E.jsx(vl,{show:!0,onClose:g,children:/* @__PURE__ */E.jsx(Cm,{errors:v,modal:!0})}),y&&/* @__PURE__ */E.jsx(vl,{show:!0,children:/* @__PURE__ */E.jsx(Gg,{})}),
690
+ /* @__PURE__ */E.jsx(Og,{name:"adults",label:"adults",count:t.persons,description:/* @__PURE__ */E.jsx("div",{className:"age-description",children:nc("adults_from",{age:e.adultsFromAge})})}),e.childrenAllowed?/* @__PURE__ */E.jsx(Og,{name:"children",label:"children",count:t.persons-1,description:/* @__PURE__ */E.jsx("div",{className:"age-description",children:nc("children_from",{from:e.childrenFromAge,til:e.childrenTillAge})})}):null,e.babiesAllowed?/* @__PURE__ */E.jsx(Og,{name:"babies",label:"babies",count:t.persons-1,description:/* @__PURE__ */E.jsx("div",{className:"age-description",children:nc("babies_from",{babies:e.babiesTillAge})})}):null]})}function ab(e,t,r){const{babies_extra:n,persons:i}=t;let a={},o=Number(e.babies)-Number(n);o<0&&(o=0),e.persons=Number(e.children)+Number(e.adults)+o;for(let c of r)if(c.required)if(tb(c.id)){const t=Eg(e,`extra_fields.booking_field_${c.id}`);t&&""!==t||(a[c.id]=nc("required"))}else{const t=Eg(e,c.id);t&&""!==t||(a[c.id]=nc("required"))}var s;return e.adults<1&&i>0&&(a.adults=nc("at_least_1_adult")),Number(e.discount)>0&&!e.discount_reason&&(a.discount_reason=nc("you_need_to_give_reason")),e.persons>i&&(a.max_persons=nc("max_persons_reached")),0!==e.cancel_insurance&&(s=e.extra_fields?.date_of_birth,_u(new Date(s),ml(/* @__PURE__ */new Date)))&&(a["extra_fields.date_of_birth"]=nc("at_least_18y_old"),a.insurances=nc("at_least_18y_old")),a}const ob={selectedDate:null,arrivalDate:null,departureDate:null,bookingStarted:!1,persons:0},sb=n(ob),cb=n(lb);function ub({children:e}){const[t,r]=f(lb,ob);/* @__PURE__ */
691
+ return E.jsx(sb.Provider,{value:t,children:/* @__PURE__ */E.jsx(cb.Provider,{value:r,children:e})})}function lb(e,t){switch(t.type){case"clicked":{const{day:r,house:n}=t,{selectedDate:i,arrivalDate:a}=e,o=Lm(r.date),s=n.persons>2?2:n.persons;return r.departure&&i&&a&&_u(o,i)&&bc(o,i)<=n.max_nights&&bc(o,i)>=a.min_nights&&bc(o,i)<=a.max_nights?{...e,departureDate:r}:r.arrival?{bookingStarted:!1,selectedDate:o,arrivalDate:r,departureDate:null,persons:s}:e}case"reset":return ob;case"start":return{...e,bookingStarted:!0,persons:t.persons};case"return":return{...e,bookingStarted:!1};default:throw Error("Unknown action: "+t.type)}}function db({house:e,PortalSite:t}){const{persons:r,arrivalDate:n,departureDate:a}=i(sb),{locale:o,portalCode:s,objectCode:c}=i(zm),u=i(cb),{options:l}=t,d=t.bookingFormConfiguration,p=l.bookingFields||Gg,h=e.booking_price;let f={};for(const i of h.optional_house_costs)f[i.id]="0";const[m,{loading:_,error:v,data:y,reset:g}]=js(Ps),b=function(e){let t={};return e.map(e=>{t[e.id]=""}),t}(p),k=function(){const e=Um("bu_portal_session");return""===e?null:e}();/* @__PURE__ */
692
+ return E.jsx(fg,{validate:t=>ab(t,e,p),initialValues:{...b,arrivalDate:n,departureDate:a,is_option:"false",costs:f,adults:r,children:0,babies:0,persons:r,discount:0,country:"nl"},onSubmit:(e,{setSubmitting:t})=>{let r={...e,is_option:JSON.parse(e.is_option),house_code:c,portal_code:s,comment:e.comment||"",language:o,country:e.country.toUpperCase(),adults:Number(e.adults),children:Number(e.children)||0,babies:Number(e.babies)||0,discount:Number(e.discount)||0,cancel_insurance:Number(e.cancel_insurance)||0,arrival_date:e.arrivalDate.date,departure_date:e.departureDate.date,costs:JSON.stringify(e.costs),extra_fields:JSON.stringify(e.extra_fields),sessionIdentifier:k};m({variables:r}).then(()=>{const e={nl:"redirectUrlNl",en:"redirectUrlEn",de:"redirectUrlDe",fr:"redirectUrlFr",es:"redirectUrlEs",it:"redirectUrlIt"}[o],t=e?d[e]:void 0;t&&""!==t?window.location=t:d.redirectUrl&&""!==d.redirectUrl?window.location=d.redirectUrl:setTimeout(()=>{u({type:"return"})},15e3)})},children:({errors:r,touched:n,values:i,status:a,isSubmitting:o})=>/* @__PURE__ */E.jsxs(kg,{className:"form",children:[_&&/* @__PURE__ */E.jsx("div",{className:"return-message",children:"Creating booking..."}),v&&/* @__PURE__ */E.jsx(yl,{show:!0,onClose:g,children:/* @__PURE__ */E.jsx(Pm,{errors:v,modal:!0})}),y&&/* @__PURE__ */E.jsx(yl,{show:!0,children:/* @__PURE__ */E.jsx(Jg,{})}),
693
693
  /* @__PURE__ */E.jsxs("div",{className:"form-content",children:[
694
694
  /* @__PURE__ */E.jsxs("div",{className:"form-section bup-16",children:[
695
- /* @__PURE__ */E.jsx("a",{className:"return-link",role:"link",tabIndex:0,onClick:()=>{u({type:"return"})},children:rc("return_to_calendar")}),
696
- /* @__PURE__ */E.jsx("h2",{children:rc("stay_details")}),
697
- /* @__PURE__ */E.jsx(nb,{bookingFormConfiguration:d,house:e}),r.max_persons&&/* @__PURE__ */E.jsx("div",{className:"error-message bu-error-message persons",children:r.max_persons})]}),
698
- /* @__PURE__ */E.jsx(Ig,{errors:r,house:e,bookingFormConfiguration:d,values:i}),
699
- /* @__PURE__ */E.jsx(Dg,{house:e,values:i}),
700
- /* @__PURE__ */E.jsx(rb,{costs:h.optional_house_costs}),
701
- /* @__PURE__ */E.jsx(tb,{bookingFields:p,errors:r,touched:n,PortalSite:t,values:i})]}),
695
+ /* @__PURE__ */E.jsx("a",{className:"return-link",role:"link",tabIndex:0,onClick:()=>{u({type:"return"})},children:nc("return_to_calendar")}),
696
+ /* @__PURE__ */E.jsx("h2",{children:nc("stay_details")}),
697
+ /* @__PURE__ */E.jsx(ib,{bookingFormConfiguration:d,house:e}),r.max_persons&&/* @__PURE__ */E.jsx("div",{className:"error-message bu-error-message persons",children:r.max_persons})]}),
698
+ /* @__PURE__ */E.jsx(Ag,{errors:r,house:e,bookingFormConfiguration:d,values:i}),
699
+ /* @__PURE__ */E.jsx(Ng,{house:e,values:i}),
700
+ /* @__PURE__ */E.jsx(nb,{costs:h.optional_house_costs}),
701
+ /* @__PURE__ */E.jsx(rb,{bookingFields:p,errors:r,touched:n,PortalSite:t,values:i})]}),
702
702
  /* @__PURE__ */E.jsxs("div",{className:"form-sum bup-16",children:[
703
- /* @__PURE__ */E.jsx(Kg,{house:e,values:i}),a&&a.msg&&/* @__PURE__ */E.jsx("div",{children:a.msg}),
703
+ /* @__PURE__ */E.jsx(Hg,{house:e,values:i}),a&&a.msg&&/* @__PURE__ */E.jsx("div",{children:a.msg}),
704
704
  /* @__PURE__ */E.jsxs("div",{className:"terms",children:[t.form_submit_text," ",
705
- /* @__PURE__ */E.jsx(vl,{buttonText:rc("terms"),children:/* @__PURE__ */E.jsx("div",{style:{width:"90vh",height:"90vh"},children:/* @__PURE__ */E.jsx("iframe",{src:e.rental_terms,width:"100%",height:"100%",title:"Terms"})})}),e.allow_option&&/* @__PURE__ */E.jsxs("span",{children:[", ",rc("option_is_free")]})]}),[1,2].includes(Number(i.cancel_insurance))?/* @__PURE__ */E.jsx("div",{className:"terms",children:rc("comply_insurance_card")}):null,
706
- /* @__PURE__ */E.jsx("button",{className:"bu-calendar-button",type:"submit",disabled:o,children:t.form_submit_button_text})]})]})})}function db(){const{portalCode:e,objectCode:t,locale:r}=i(qm),{arrivalDate:n,departureDate:a}=i(ob),{data:o,loading:s,error:c}=_s(As,{variables:{portalCode:e,objectCode:t,starts_at:n.date,ends_at:a.date}});if(s)/* @__PURE__ */
705
+ /* @__PURE__ */E.jsx(yl,{buttonText:nc("terms"),children:/* @__PURE__ */E.jsx("div",{style:{width:"90vh",height:"90vh"},children:/* @__PURE__ */E.jsx("iframe",{src:e.rental_terms,width:"100%",height:"100%",title:"Terms"})})}),e.allow_option&&/* @__PURE__ */E.jsxs("span",{children:[", ",nc("option_is_free")]})]}),[1,2].includes(Number(i.cancel_insurance))?/* @__PURE__ */E.jsx("div",{className:"terms",children:nc("comply_insurance_card")}):null,
706
+ /* @__PURE__ */E.jsx("button",{className:"bu-calendar-button",type:"submit",disabled:o,children:t.form_submit_button_text})]})]})})}function pb(){const{portalCode:e,objectCode:t,locale:r}=i(zm),{arrivalDate:n,departureDate:a}=i(sb),{data:o,loading:s,error:c}=vs(Cs,{variables:{portalCode:e,objectCode:t,starts_at:n.date,ends_at:a.date}});if(s)/* @__PURE__ */
707
707
  return E.jsx("div",{children:/* @__PURE__ */E.jsx(j,{})});if(c)/* @__PURE__ */
708
- return E.jsx("div",{children:"Error"});const u=o.PortalSite.houses[0];return Vm({house_code:t,portal_code:e,locale:r,interaction_type:"booking_started",interaction_data:{arrival_date:n.date,departure_date:a.date}}),/* @__PURE__ */E.jsx(lb,{house:u,PortalSite:o.PortalSite})}const pb=()=>/* @__PURE__ */E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 100 100",x:"0px",y:"0px",children:[
708
+ return E.jsx("div",{children:"Error"});const u=o.PortalSite.houses[0];return Bm({house_code:t,portal_code:e,locale:r,interaction_type:"booking_started",interaction_data:{arrival_date:n.date,departure_date:a.date}}),/* @__PURE__ */E.jsx(db,{house:u,PortalSite:o.PortalSite})}const hb=()=>/* @__PURE__ */E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 100 100",x:"0px",y:"0px",children:[
709
709
  /* @__PURE__ */E.jsx("title",{children:"Forward"}),
710
- /* @__PURE__ */E.jsx("path",{d:"M97.64,44.1,64.72,11.18a8.06,8.06,0,1,0-11.4,11.39L72.78,42H8.06a8.06,8.06,0,0,0,0,16.12H72.6L53.32,77.43a8.06,8.06,0,0,0,11.4,11.39L97.64,55.9A8,8,0,0,0,100,50.2a1.27,1.27,0,0,0,0-.2,1.41,1.41,0,0,0,0-.2A8.07,8.07,0,0,0,97.64,44.1Z"})]});function hb({changeMonth:e,currentMonth:t,numberOfMonths:r}){const n=i(sb);/* @__PURE__ */
710
+ /* @__PURE__ */E.jsx("path",{d:"M97.64,44.1,64.72,11.18a8.06,8.06,0,1,0-11.4,11.39L72.78,42H8.06a8.06,8.06,0,0,0,0,16.12H72.6L53.32,77.43a8.06,8.06,0,0,0,11.4,11.39L97.64,55.9A8,8,0,0,0,100,50.2a1.27,1.27,0,0,0,0-.2,1.41,1.41,0,0,0,0-.2A8.07,8.07,0,0,0,97.64,44.1Z"})]});function fb({changeMonth:e,currentMonth:t,numberOfMonths:r}){const n=i(cb);/* @__PURE__ */
711
711
  return E.jsxs("div",{className:"calendars-header bu-grid bu-grid-cols-3",children:[
712
- /* @__PURE__ */E.jsx("div",{className:"bu-calendar-col bup-8",style:{textAlign:"center"},onClick:function(){var n;e(lc(t,-r,n))},tabIndex:0,role:"button",children:/* @__PURE__ */E.jsx("div",{className:"icon bu-rounded bu-hover-bright",children:/* @__PURE__ */E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",x:"0px",y:"0px",enableBackground:"new 0 0 100 100",viewBox:"0 0 100 125",xmlSpace:"preserve",children:/* @__PURE__ */E.jsx("path",{d:"M2.4,44.1l32.9-32.9c3.1-3.1,8.2-3.1,11.4,0c1.6,1.6,2.4,3.6,2.4,5.7c0,2.1-0.8,4.1-2.4,5.7L27.2,42h64.7 c2.2,0,4.2,0.9,5.7,2.4c1.5,1.5,2.4,3.5,2.4,5.7c0,4.4-3.6,8.1-8.1,8.1H27.4l19.3,19.3c1.6,1.6,2.4,3.6,2.4,5.7s-0.8,4.1-2.4,5.7 c-3.1,3.1-8.3,3.1-11.4,0L2.4,55.9C0.8,54.3,0,52.3,0,50.2c0-0.1,0-0.1,0-0.2c0-0.1,0-0.1,0-0.2C0,47.7,0.8,45.7,2.4,44.1z"})})})}),
713
- /* @__PURE__ */E.jsx("div",{className:"bu-calendar-col bup-8",onClick:()=>{n({type:"reset"})},style:{textAlign:"center"},tabIndex:0,role:"button",children:/* @__PURE__ */E.jsx("div",{className:"icon bu-rounded bu-hover-bright",children:/* @__PURE__ */E.jsx(Js,{})})}),
714
- /* @__PURE__ */E.jsx("div",{className:"bu-calendar-col bup-8 bup-x16",onClick:function(){e(lc(t,r))},style:{textAlign:"center"},tabIndex:0,role:"button",children:/* @__PURE__ */E.jsx("div",{className:"icon bu-rounded bu-hover-bright",children:/* @__PURE__ */E.jsx(pb,{})})})]})}function fb({house:e}){const{departureDate:t,arrivalDate:r}=i(ob);return t?.date?/* @__PURE__ */E.jsxs("div",{className:"bup-16 bu-bold",children:[rc(`${e.house_type}.you_picked_arrival_date`),":"," ",Mm($m(r.date),Lm),
715
- /* @__PURE__ */E.jsx("br",{}),rc(`${e.house_type}.you_picked_departure_date`),": ",Mm($m(t.date),Lm)]}):r?.date?/* @__PURE__ */E.jsxs("div",{className:"bup-16 bu-bold",children:[rc(`${e.house_type}.you_picked_arrival_date`),":"," ",Mm($m(r.date),Lm),
716
- /* @__PURE__ */E.jsx("br",{}),rc(`${e.house_type}.pick_your_departure_in_the_calendar`),
717
- /* @__PURE__ */E.jsx("br",{}),rc("minimum_nights",{minimum:r.min_nights})]}):/* @__PURE__ */E.jsx("div",{className:"bup-16 bu-bold",children:rc(`${e.house_type}.pick_your_arrivaldate_in_the_calendar`)})}function mb({house:e}){/* @__PURE__ */
712
+ /* @__PURE__ */E.jsx("div",{className:"bu-calendar-col bup-8",style:{textAlign:"center"},onClick:function(){var n;e(dc(t,-r,n))},tabIndex:0,role:"button",children:/* @__PURE__ */E.jsx("div",{className:"icon bu-rounded bu-hover-bright",children:/* @__PURE__ */E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",x:"0px",y:"0px",enableBackground:"new 0 0 100 100",viewBox:"0 0 100 125",xmlSpace:"preserve",children:/* @__PURE__ */E.jsx("path",{d:"M2.4,44.1l32.9-32.9c3.1-3.1,8.2-3.1,11.4,0c1.6,1.6,2.4,3.6,2.4,5.7c0,2.1-0.8,4.1-2.4,5.7L27.2,42h64.7 c2.2,0,4.2,0.9,5.7,2.4c1.5,1.5,2.4,3.5,2.4,5.7c0,4.4-3.6,8.1-8.1,8.1H27.4l19.3,19.3c1.6,1.6,2.4,3.6,2.4,5.7s-0.8,4.1-2.4,5.7 c-3.1,3.1-8.3,3.1-11.4,0L2.4,55.9C0.8,54.3,0,52.3,0,50.2c0-0.1,0-0.1,0-0.2c0-0.1,0-0.1,0-0.2C0,47.7,0.8,45.7,2.4,44.1z"})})})}),
713
+ /* @__PURE__ */E.jsx("div",{className:"bu-calendar-col bup-8",onClick:()=>{n({type:"reset"})},style:{textAlign:"center"},tabIndex:0,role:"button",children:/* @__PURE__ */E.jsx("div",{className:"icon bu-rounded bu-hover-bright",children:/* @__PURE__ */E.jsx(Xs,{})})}),
714
+ /* @__PURE__ */E.jsx("div",{className:"bu-calendar-col bup-8 bup-x16",onClick:function(){e(dc(t,r))},style:{textAlign:"center"},tabIndex:0,role:"button",children:/* @__PURE__ */E.jsx("div",{className:"icon bu-rounded bu-hover-bright",children:/* @__PURE__ */E.jsx(hb,{})})})]})}function mb({house:e}){const{departureDate:t,arrivalDate:r}=i(sb);return t?.date?/* @__PURE__ */E.jsxs("div",{className:"bup-16 bu-bold",children:[nc(`${e.house_type}.you_picked_arrival_date`),":"," ",$m(Lm(r.date),qm),
715
+ /* @__PURE__ */E.jsx("br",{}),nc(`${e.house_type}.you_picked_departure_date`),": ",$m(Lm(t.date),qm)]}):r?.date?/* @__PURE__ */E.jsxs("div",{className:"bup-16 bu-bold",children:[nc(`${e.house_type}.you_picked_arrival_date`),":"," ",$m(Lm(r.date),qm),
716
+ /* @__PURE__ */E.jsx("br",{}),nc(`${e.house_type}.pick_your_departure_in_the_calendar`),
717
+ /* @__PURE__ */E.jsx("br",{}),nc("minimum_nights",{minimum:r.min_nights})]}):/* @__PURE__ */E.jsx("div",{className:"bup-16 bu-bold",children:nc(`${e.house_type}.pick_your_arrivaldate_in_the_calendar`)})}function _b({house:e}){/* @__PURE__ */
718
718
  return E.jsxs("div",{className:"legend",children:[
719
719
  /* @__PURE__ */E.jsxs("div",{children:[
720
- /* @__PURE__ */E.jsx("span",{className:"legend-field arrival"}),rc(`${e.house_type}.arrival_date`)]}),
720
+ /* @__PURE__ */E.jsx("span",{className:"legend-field arrival"}),nc(`${e.house_type}.arrival_date`)]}),
721
721
  /* @__PURE__ */E.jsxs("div",{children:[
722
- /* @__PURE__ */E.jsx("span",{className:"legend-field booked"}),rc("booked")]}),
722
+ /* @__PURE__ */E.jsx("span",{className:"legend-field booked"}),nc("booked")]}),
723
723
  /* @__PURE__ */E.jsxs("div",{children:[
724
- /* @__PURE__ */E.jsx("span",{className:"legend-field departure"}),rc(`${e.house_type}.departure_date`)]}),
724
+ /* @__PURE__ */E.jsx("span",{className:"legend-field departure"}),nc(`${e.house_type}.departure_date`)]}),
725
725
  /* @__PURE__ */E.jsxs("div",{children:[
726
- /* @__PURE__ */E.jsx("span",{className:"legend-field last_minute_discount"}),rc("discount")]})]})}const _b=({month:e})=>/* @__PURE__ */E.jsx("div",{className:"bu-bold bup-4",children:/* @__PURE__ */E.jsx("div",{className:"bu-calendar-col bu-text-center",children:/* @__PURE__ */E.jsx("span",{children:Mm(e,"MMMM yyyy")})})});function vb({day:e,monthStart:t,buDate:r,prevBooked:n,dates:i,house:a,discounts:o}){const{selectedDate:s,departureDate:c,arrivalDate:u}=i,l=/* @__PURE__ */new Date,d=["bu-grid","bu-center","bu-rounded-half","bu-h-42","bu-w-42"];if(!function(e,t,r){const[n,i]=vc(r?.in,e,t);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()}(e,t))return d.push("disabled"),d.join(" ");if(r&&(r.arrival&&mu(e,hl(l))&&0!==r.max_nights?0===n?.max_nights?d.push("departure-arrival","bu-hover-bright"):d.push("arrival","bu-hover-bright"):0===r.max_nights?void 0!==n&&0!==n.max_nights?d.push("booked-departure","bu-hover-bright"):d.push("booked"):r.max_nights>0&&(void 0===n||0===n.max_nights)&&!r.arrival&&d.push("booked")),s){bc(e,s)&&d.push("selected");const t=gc(e,s),i=t>=(u?.min_nights??0),o=t<=a.max_nights&&t<=(u?.max_nights??0);r.departure&&mu(e,s)&&i&&o&&void 0!==n&&0!==n.max_nights&&d.push("departure")}if(c&&s){const t=$m(c.date);mu(e,s)&&_u(e,t)&&d.push("selected"),bc(e,t)&&d.push("selected")}const p=gc(e,l),h=p<=a.last_minute_days&&p>0,f=o.find(t=>_u(hl($m(t.discount_starts_at)),e)&&mu(uc($m(t.discount_ends_at),1),e));return(h||f||r.special_offer>0)&&d.push("discount"),d.join(" ")}function yb({availabilities:e,month:t,discounts:r,house:n}){const a=i(sb),o=i(ob),s=xc(t),c=wc(s),u=hc(s),l=Sc(c),d=[];let p=[],h=u;for(;h<=l;){for(let t=0;t<7;t++){let t=Mm(h,"yyyy-MM-dd"),i=Mm(hl(h),"yyyy-MM-dd"),c=e.find(e=>e.date===t);const u=e.find(e=>e.date===i),l=c;p.push(
727
- /* @__PURE__ */E.jsx("div",{className:vb({day:h,monthStart:s,discounts:r,buDate:c,prevBooked:u,house:n,dates:o}),role:"button",tabIndex:0,onClick:()=>{_u(dl(l.date,"yyyy-MM-dd",/* @__PURE__ */new Date),
728
- /* @__PURE__ */new Date)||a({type:"clicked",day:l,house:n})},children:/* @__PURE__ */E.jsx("span",{children:Mm(h,"d")})},c.date)),h=uc(h,1)}d.push(p),p=[]}/* @__PURE__ */
729
- return E.jsx("div",{className:"bu-grid bu-grid-cols-7",children:d})}function gb({month:e}){let t=[],r=hc(e);for(let n=0;n<7;n++)t.push(
730
- /* @__PURE__ */E.jsx("div",{className:"bu-calendar-col bu-text-center",children:Mm(uc(r,n),"E")},n));/* @__PURE__ */
731
- return E.jsx("div",{className:"bu-grid bu-grid-cols-7",children:t})}function bb({count:e,currentMonth:t,house:r}){const{portalCode:n,objectCode:a}=i(qm);let o=lc(t,e),s=xc(o),c=wc(o);const u={id:n,house_id:a,starts_at:hc(s),ends_at:Sc(c)},{loading:l,error:d,data:p}=_s(Is,{variables:u});if(l)/* @__PURE__ */
726
+ /* @__PURE__ */E.jsx("span",{className:"legend-field last_minute_discount"}),nc("discount")]})]})}const vb=({month:e})=>/* @__PURE__ */E.jsx("div",{className:"bu-bold bup-4",children:/* @__PURE__ */E.jsx("div",{className:"bu-calendar-col bu-text-center",children:/* @__PURE__ */E.jsx("span",{children:$m(e,"MMMM yyyy")})})});function yb({day:e,monthStart:t,buDate:r,prevBooked:n,dates:i,house:a,discounts:o}){const{selectedDate:s,departureDate:c,arrivalDate:u}=i,l=/* @__PURE__ */new Date,d=["bu-grid","bu-center","bu-rounded-half","bu-h-42","bu-w-42"];if(!function(e,t,r){const[n,i]=yc(r?.in,e,t);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()}(e,t))return d.push("disabled"),d.join(" ");if(r&&(r.arrival&&_u(e,fl(l))&&0!==r.max_nights?0===n?.max_nights?d.push("departure-arrival","bu-hover-bright"):d.push("arrival","bu-hover-bright"):0===r.max_nights?void 0!==n&&0!==n.max_nights?d.push("booked-departure","bu-hover-bright"):d.push("booked"):r.max_nights>0&&(void 0===n||0===n.max_nights)&&!r.arrival&&d.push("booked")),s){kc(e,s)&&d.push("selected");const t=bc(e,s),i=t>=(u?.min_nights??0),o=t<=a.max_nights&&t<=(u?.max_nights??0);r.departure&&_u(e,s)&&i&&o&&void 0!==n&&0!==n.max_nights&&d.push("departure")}if(c&&s){const t=Lm(c.date);_u(e,s)&&vu(e,t)&&d.push("selected"),kc(e,t)&&d.push("selected")}const p=bc(e,l),h=p<=a.last_minute_days&&p>0,f=o.find(t=>vu(fl(Lm(t.discount_starts_at)),e)&&_u(lc(Lm(t.discount_ends_at),1),e));return(h||f||r.special_offer>0)&&d.push("discount"),d.join(" ")}function gb({availabilities:e,month:t,discounts:r,house:n}){const a=i(cb),o=i(sb),s=Sc(t),c=xc(s),u=fc(s),l=Ec(c),d=[];let p=[],h=u;for(;h<=l;){for(let t=0;t<7;t++){let t=$m(h,"yyyy-MM-dd"),i=$m(fl(h),"yyyy-MM-dd"),c=e.find(e=>e.date===t);const u=e.find(e=>e.date===i),l=c;p.push(
727
+ /* @__PURE__ */E.jsx("div",{className:yb({day:h,monthStart:s,discounts:r,buDate:c,prevBooked:u,house:n,dates:o}),role:"button",tabIndex:0,onClick:()=>{vu(pl(l.date,"yyyy-MM-dd",/* @__PURE__ */new Date),
728
+ /* @__PURE__ */new Date)||a({type:"clicked",day:l,house:n})},children:/* @__PURE__ */E.jsx("span",{children:$m(h,"d")})},c.date)),h=lc(h,1)}d.push(p),p=[]}/* @__PURE__ */
729
+ return E.jsx("div",{className:"bu-grid bu-grid-cols-7",children:d})}function bb({month:e}){let t=[],r=fc(e);for(let n=0;n<7;n++)t.push(
730
+ /* @__PURE__ */E.jsx("div",{className:"bu-calendar-col bu-text-center",children:$m(lc(r,n),"E")},n));/* @__PURE__ */
731
+ return E.jsx("div",{className:"bu-grid bu-grid-cols-7",children:t})}function kb({count:e,currentMonth:t,house:r}){const{portalCode:n,objectCode:a}=i(zm);let o=dc(t,e),s=Sc(o),c=xc(o);const u={id:n,house_id:a,starts_at:fc(s),ends_at:Ec(c)},{loading:l,error:d,data:p}=vs(As,{variables:u});if(l)/* @__PURE__ */
732
732
  return E.jsx("div",{children:/* @__PURE__ */E.jsx(j,{})});if(d)/* @__PURE__ */
733
733
  return E.jsx("div",{children:"Error"});const h=p.PortalSite.houses[0].availabilities,f=p.Discounts;/* @__PURE__ */
734
734
  return E.jsxs("div",{className:"bu-calendar calendar bup-16",children:[
735
- /* @__PURE__ */E.jsx(_b,{month:o}),
736
- /* @__PURE__ */E.jsx(gb,{month:o}),
737
- /* @__PURE__ */E.jsx(yb,{availabilities:h,discounts:f,month:o,house:r})]},o)}function kb({numberOfMonthsInARow:e,currentMonth:t,numberOfMonths:r,house:n}){let i=[];for(let a=0;a<r;a++)i.push(
738
- /* @__PURE__ */E.jsx(bb,{house:n,currentMonth:t,count:a},hu(lc(t,a),"MM-yyyy")));/* @__PURE__ */
739
- return E.jsx("div",{className:`bu-grid bu-grid-cols-${e||2} bu-gap-16`,children:i})}function wb({persons:e,variables:t}){const{portalCode:r,objectCode:n}=i(qm),{loading:a,error:o,data:s}=_s(Ls,{variables:{...t,persons:e,portalCode:r,objectCode:n}});if(a)/* @__PURE__ */
735
+ /* @__PURE__ */E.jsx(vb,{month:o}),
736
+ /* @__PURE__ */E.jsx(bb,{month:o}),
737
+ /* @__PURE__ */E.jsx(gb,{availabilities:h,discounts:f,month:o,house:r})]},o)}function wb({numberOfMonthsInARow:e,currentMonth:t,numberOfMonths:r,house:n}){let i=[];for(let a=0;a<r;a++)i.push(
738
+ /* @__PURE__ */E.jsx(kb,{house:n,currentMonth:t,count:a},fu(dc(t,a),"MM-yyyy")));/* @__PURE__ */
739
+ return E.jsx("div",{className:`bu-grid bu-grid-cols-${e||2} bu-gap-16`,children:i})}function xb({persons:e,variables:t}){const{portalCode:r,objectCode:n}=i(zm),{loading:a,error:o,data:s}=vs(qs,{variables:{...t,persons:e,portalCode:r,objectCode:n}});if(a)/* @__PURE__ */
740
740
  return E.jsx("div",{className:"price-overview--build bup-16",children:/* @__PURE__ */E.jsx(j,{})});if(o)/* @__PURE__ */
741
- return E.jsx("div",{className:"price-overview--build bup-16",children:/* @__PURE__ */E.jsx(Cm,{errors:o})});const c=s.PortalSite.houses[0].booking_price;/* @__PURE__ */
741
+ return E.jsx("div",{className:"price-overview--build bup-16",children:/* @__PURE__ */E.jsx(Pm,{errors:o})});const c=s.PortalSite.houses[0].booking_price;/* @__PURE__ */
742
742
  return E.jsx(E.Fragment,{children:/* @__PURE__ */E.jsxs("div",{className:"price-overview--book",children:[
743
- /* @__PURE__ */E.jsxs("div",{className:"price",children:["€"," ",nc(Math.round(c.total_price),{minimumFractionDigits:2,maximumFractionDigits:2})]}),
744
- /* @__PURE__ */E.jsx("div",{children:/* @__PURE__ */E.jsx("i",{children:rc("based_on_one_person",{persons:e})})})]})})}const xb=Lm;function Sb({house:e}){const r=e.persons>2?2:e.persons,[n,a]=t(r),{arrivalDate:o,departureDate:s}=i(ob),c=i(sb);let u=xg(e.persons);/* @__PURE__ */
743
+ /* @__PURE__ */E.jsxs("div",{className:"price",children:["€"," ",ic(Math.round(c.total_price),{minimumFractionDigits:2,maximumFractionDigits:2})]}),
744
+ /* @__PURE__ */E.jsx("div",{children:/* @__PURE__ */E.jsx("i",{children:nc("based_on_one_person",{persons:e})})})]})})}const Sb=qm;function Eb({house:e}){const r=e.persons>2?2:e.persons,[n,a]=t(r),{arrivalDate:o,departureDate:s}=i(sb),c=i(cb);let u=Sg(e.persons);/* @__PURE__ */
745
745
  return E.jsxs("div",{className:"calendar--picker",children:[
746
746
  /* @__PURE__ */E.jsxs("div",{className:"calendar--picker--date",children:[
747
- /* @__PURE__ */E.jsx("span",{className:"name",children:rc(`${e.house_type}.arrival`)}),
748
- /* @__PURE__ */E.jsx("span",{className:"detail",children:o?.date?/* @__PURE__ */E.jsx("span",{children:Mm($m(o?.date),xb)}):rc(`${e.house_type}.pick_your_arrivaldate_in_the_calendar`)})]}),
747
+ /* @__PURE__ */E.jsx("span",{className:"name",children:nc(`${e.house_type}.arrival`)}),
748
+ /* @__PURE__ */E.jsx("span",{className:"detail",children:o?.date?/* @__PURE__ */E.jsx("span",{children:$m(Lm(o?.date),Sb)}):nc(`${e.house_type}.pick_your_arrivaldate_in_the_calendar`)})]}),
749
749
  /* @__PURE__ */E.jsxs("div",{className:"calendar--picker--date",children:[
750
- /* @__PURE__ */E.jsx("span",{className:"name",children:rc(`${e.house_type}.departure`)}),
751
- /* @__PURE__ */E.jsx("span",{className:"detail",children:s?.date?/* @__PURE__ */E.jsx("span",{children:Mm($m(s?.date),xb)}):/* @__PURE__ */E.jsxs("div",{children:[
752
- /* @__PURE__ */E.jsx("div",{children:rc(`${e.house_type}.pick_your_departure_in_the_calendar`)}),o&&rc("minimum_nights",{minimum:o?.min_nights})]})})]}),
753
- /* @__PURE__ */E.jsx("div",{className:"calendar--picker--date",children:/* @__PURE__ */E.jsx("span",{className:"detail",children:/* @__PURE__ */E.jsx("select",{className:"calendar--picker--persons",value:n,onChange:e=>{a(e.target.value)},children:u.map(e=>/* @__PURE__ */E.jsxs("option",{value:e,children:[e," ",rc("persons")]},e))})})}),
754
- /* @__PURE__ */E.jsx("div",{className:"calendar--picker--date",children:o&&s&&/* @__PURE__ */E.jsx(wb,{persons:parseInt(n),variables:{starts_at:o?.date,ends_at:s?.date}})}),
755
- /* @__PURE__ */E.jsx("button",{className:"button",disabled:!o||!s,onClick:()=>{o&&s&&c({type:"start",persons:n})},children:rc("calculate")})]})}function Eb({house:e}){/* @__PURE__ */
756
- return E.jsx("div",{className:"price-overview bup-16",children:/* @__PURE__ */E.jsx(Sb,{house:e})})}function jb({numberOfMonths:e,house:r,numberOfMonthsInARow:n}){const[i,a]=t(/* @__PURE__ */new Date);/* @__PURE__ */
750
+ /* @__PURE__ */E.jsx("span",{className:"name",children:nc(`${e.house_type}.departure`)}),
751
+ /* @__PURE__ */E.jsx("span",{className:"detail",children:s?.date?/* @__PURE__ */E.jsx("span",{children:$m(Lm(s?.date),Sb)}):/* @__PURE__ */E.jsxs("div",{children:[
752
+ /* @__PURE__ */E.jsx("div",{children:nc(`${e.house_type}.pick_your_departure_in_the_calendar`)}),o&&nc("minimum_nights",{minimum:o?.min_nights})]})})]}),
753
+ /* @__PURE__ */E.jsx("div",{className:"calendar--picker--date",children:/* @__PURE__ */E.jsx("span",{className:"detail",children:/* @__PURE__ */E.jsx("select",{className:"calendar--picker--persons",value:n,onChange:e=>{a(e.target.value)},children:u.map(e=>/* @__PURE__ */E.jsxs("option",{value:e,children:[e," ",nc("persons")]},e))})})}),
754
+ /* @__PURE__ */E.jsx("div",{className:"calendar--picker--date",children:o&&s&&/* @__PURE__ */E.jsx(xb,{persons:parseInt(n),variables:{starts_at:o?.date,ends_at:s?.date}})}),
755
+ /* @__PURE__ */E.jsx("button",{className:"button",disabled:!o||!s,onClick:()=>{o&&s&&c({type:"start",persons:n})},children:nc("calculate")})]})}function jb({house:e}){/* @__PURE__ */
756
+ return E.jsx("div",{className:"price-overview bup-16",children:/* @__PURE__ */E.jsx(Eb,{house:e})})}function Ob({numberOfMonths:e,house:r,numberOfMonthsInARow:n}){const[i,a]=t(/* @__PURE__ */new Date);/* @__PURE__ */
757
757
  return E.jsxs("div",{className:"calendar-container ",children:[
758
- /* @__PURE__ */E.jsx(Eb,{house:r}),
758
+ /* @__PURE__ */E.jsx(jb,{house:r}),
759
759
  /* @__PURE__ */E.jsxs("div",{className:"calendar-section",children:[
760
- /* @__PURE__ */E.jsx(hb,{changeMonth:a,currentMonth:i,numberOfMonths:e}),
761
- /* @__PURE__ */E.jsx(kb,{house:r,numberOfMonths:e,numberOfMonthsInARow:n,currentMonth:i}),
762
- /* @__PURE__ */E.jsx(mb,{house:r}),
763
- /* @__PURE__ */E.jsx(fb,{house:r})]})]})}function Ob(){const{portalCode:e,objectCode:t,locale:r}=i(qm),{loading:n,error:a,data:o}=_s(Ps,{variables:{portalCode:e,objectCode:t}});if(Vm({house_code:t,portal_code:e,interaction_type:"calendar_view",locale:r}),n)/* @__PURE__ */
760
+ /* @__PURE__ */E.jsx(fb,{changeMonth:a,currentMonth:i,numberOfMonths:e}),
761
+ /* @__PURE__ */E.jsx(wb,{house:r,numberOfMonths:e,numberOfMonthsInARow:n,currentMonth:i}),
762
+ /* @__PURE__ */E.jsx(_b,{house:r}),
763
+ /* @__PURE__ */E.jsx(mb,{house:r})]})]})}function Tb(){const{portalCode:e,objectCode:t,locale:r}=i(zm),{loading:n,error:a,data:o}=vs(Fs,{variables:{portalCode:e,objectCode:t}});if(Bm({house_code:t,portal_code:e,interaction_type:"calendar_view",locale:r}),n)/* @__PURE__ */
764
764
  return E.jsx("div",{children:/* @__PURE__ */E.jsx(j,{})});if(a)/* @__PURE__ */
765
- return E.jsx("div",{children:/* @__PURE__ */E.jsx(Cm,{errors:a})});const s=o.PortalSite,c=s.houses,u=s.bookingFormConfiguration.showMonthsAmount,l=s.bookingFormConfiguration.showMonthsInARow;/* @__PURE__ */
766
- return E.jsxs("div",{id:"calendar-container",children:[0===c.length&&/* @__PURE__ */E.jsx("div",{children:rc("no_house_found")}),c.map(e=>/* @__PURE__ */E.jsxs("div",{children:[
765
+ return E.jsx("div",{children:/* @__PURE__ */E.jsx(Pm,{errors:a})});const s=o.PortalSite,c=s.houses,u=s.bookingFormConfiguration.showMonthsAmount,l=s.bookingFormConfiguration.showMonthsInARow;/* @__PURE__ */
766
+ return E.jsxs("div",{id:"calendar-container",children:[0===c.length&&/* @__PURE__ */E.jsx("div",{children:nc("no_house_found")}),c.map(e=>/* @__PURE__ */E.jsxs("div",{children:[
767
767
  /* @__PURE__ */E.jsx("div",{className:"bup-16",children:e.name}),
768
- /* @__PURE__ */E.jsx(jb,{numberOfMonths:u,numberOfMonthsInARow:l,house:e})]},e.id))]})}function Tb(){const{bookingStarted:e}=i(ob);return e?/* @__PURE__ */E.jsx(db,{}):/* @__PURE__ */E.jsx(Ob,{})}function Db(){/* @__PURE__ */
769
- return E.jsx(cb,{children:/* @__PURE__ */E.jsx(Tb,{})})}function Nb({rating:e,name:t}){let r="low";return e>7?r="best":e>6?r="good":e>4&&(r="medium"),/* @__PURE__ */E.jsxs("div",{className:"bu_score",children:[e&&/* @__PURE__ */E.jsx("div",{className:`bu_score__rating bu_card ${r}`,children:e.toFixed(1)}),
770
- /* @__PURE__ */E.jsx("div",{children:t})]})}const Ib=m(function({review:e}){/* @__PURE__ */
768
+ /* @__PURE__ */E.jsx(Ob,{numberOfMonths:u,numberOfMonthsInARow:l,house:e})]},e.id))]})}function Db(){const{bookingStarted:e}=i(sb);return e?/* @__PURE__ */E.jsx(pb,{}):/* @__PURE__ */E.jsx(Tb,{})}function Nb(){/* @__PURE__ */
769
+ return E.jsx(ub,{children:/* @__PURE__ */E.jsx(Db,{})})}function Ib({rating:e,name:t}){let r="low";return e>7?r="best":e>6?r="good":e>4&&(r="medium"),/* @__PURE__ */E.jsxs("div",{className:"bu_score",children:[e&&/* @__PURE__ */E.jsx("div",{className:`bu_score__rating bu_card ${r}`,children:e.toFixed(1)}),
770
+ /* @__PURE__ */E.jsx("div",{children:t})]})}const Ab=m(function({review:e}){/* @__PURE__ */
771
771
  return E.jsxs("div",{className:"bu_single_review bup-16 bu_card",children:[
772
772
  /* @__PURE__ */E.jsxs("div",{className:"bu_review_summary",children:[
773
- /* @__PURE__ */E.jsx(Nb,{rating:e.score}),
773
+ /* @__PURE__ */E.jsx(Ib,{rating:e.score}),
774
774
  /* @__PURE__ */E.jsxs("div",{className:"bu_review_summary__date_name",children:[
775
775
  /* @__PURE__ */E.jsxs("div",{children:[e.createdAt,", "]}),
776
776
  /* @__PURE__ */E.jsx("div",{className:"bu_review_summary__name",children:e.name})]})]}),
777
777
  /* @__PURE__ */E.jsx("blockquote",{className:"bu_review",children:e.review}),
778
- /* @__PURE__ */E.jsx("div",{className:"bu_criteria",children:e.reviewCriteria.map(e=>/* @__PURE__ */E.jsx(Nb,{rating:e.score,name:e.name},e.id))})]})});function Ab(){/* @__PURE__ */
779
- return E.jsx("div",{className:"bu_reviews__note",children:/* @__PURE__ */E.jsx("a",{href:"https://www.bukazu.com",target:"_blank",rel:"noopener noreferrer",children:rc("reviews_note_link")})})}function Cb(){const{objectCode:e,portalCode:t}=i(qm),{data:r,error:n,loading:a}=_s(qs,{variables:{id:t,house_id:e}});if(a)/* @__PURE__ */
780
- return E.jsx("div",{children:/* @__PURE__ */E.jsx(j,{})});if(n)/* @__PURE__ */return E.jsx(Cm,{errors:n});const o=r.PortalSite.houses[0],s=o.reviews;/* @__PURE__ */
778
+ /* @__PURE__ */E.jsx("div",{className:"bu_criteria",children:e.reviewCriteria.map(e=>/* @__PURE__ */E.jsx(Ib,{rating:e.score,name:e.name},e.id))})]})});function Cb(){/* @__PURE__ */
779
+ return E.jsx("div",{className:"bu_reviews__note",children:/* @__PURE__ */E.jsx("a",{href:"https://www.bukazu.com",target:"_blank",rel:"noopener noreferrer",children:nc("reviews_note_link")})})}function Pb(){const{objectCode:e,portalCode:t}=i(zm),{data:r,error:n,loading:a}=vs(zs,{variables:{id:t,house_id:e}});if(a)/* @__PURE__ */
780
+ return E.jsx("div",{children:/* @__PURE__ */E.jsx(j,{})});if(n)/* @__PURE__ */return E.jsx(Pm,{errors:n});const o=r.PortalSite.houses[0],s=o.reviews;/* @__PURE__ */
781
781
  return E.jsxs("div",{className:"bu_reviews bup-16",children:[
782
782
  /* @__PURE__ */E.jsxs("div",{className:"bu_reviews__overview bup-16 bu_card",children:[
783
- /* @__PURE__ */E.jsx(Nb,{rating:o.rating}),
784
- /* @__PURE__ */E.jsxs("div",{className:"bu_reviews__overview__number",children:[o.scoreAmount," ",rc("reviews")]})]}),s.map(e=>/* @__PURE__ */E.jsx(Ib,{review:e},e.id)),
785
- /* @__PURE__ */E.jsx(Ab,{})]})}const Pb={nl:{url:"http://bukazu.com/veiligheid",label:"Beveiligd en mogelijk gemaakt door BUKAZU"},en:{url:"http://bukazu.com/en/security",label:"Secured and made possible by BUKAZU"},de:{url:"http://bukazu.com/de/sicherheit",label:"Gesichert und ermöglicht durch BUKAZU"},fr:{url:"http://bukazu.com/fr/securite",label:"Sécurisé et rendu possible par BUKAZU"},es:{url:"http://bukazu.com/es/seguridad",label:"Asegurado y hecho posible por BUKAZU"},it:{url:"http://bukazu.com/it/sicurezza",label:"Protetto e reso possibile da BUKAZU"}};function Fb(e){const{url:t,label:r}=Object.prototype.hasOwnProperty.call(Pb,e)?Pb[e]:Pb.en;return`<div class="bu-safe-booking"><a href="${t}" class="bu-safe-booking-link"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve" width="16px" height="16px" class="bu-safe-booking-icon"><path d="M75.98,41.62h-2.47L73.5,29.31C73.49,15.9,62.58,4.99,49.17,5C35.76,5.01,24.85,15.92,24.86,29.33l0.02,12.31H24 c-4.61,0.01-8.35,3.75-8.34,8.36v36.65c0,4.61,3.75,8.35,8.36,8.35L76,94.97c4.61,0,8.35-3.74,8.34-8.35V49.96 C84.34,45.35,80.59,41.62,75.98,41.62z M33.84,41.64l-0.02-12.31c0-8.47,6.88-15.36,15.35-15.37c8.47,0,15.36,6.89,15.36,15.35 l0.02,12.31L33.84,41.64z" /></svg>${r}</a></div>`}class Rb extends e.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){Nm(e)}render(){return this.state.hasError?/* @__PURE__ */E.jsx("h1",{children:"Something went wrong."}):this.props.children}}function Mb({pageType:e,locale:t,filters:r={}}){const{portalCode:n,objectCode:a}=i(qm),o=!a,{loading:s,error:c,data:u}=_s(Ds,{variables:{id:n},skip:o}),{loading:l,error:d,data:p}=_s(Ns,{variables:{id:n},skip:!o}),h=o?d:c;if(o?l:s)/* @__PURE__ */
783
+ /* @__PURE__ */E.jsx(Ib,{rating:o.rating}),
784
+ /* @__PURE__ */E.jsxs("div",{className:"bu_reviews__overview__number",children:[o.scoreAmount," ",nc("reviews")]})]}),s.map(e=>/* @__PURE__ */E.jsx(Ab,{review:e},e.id)),
785
+ /* @__PURE__ */E.jsx(Cb,{})]})}const Fb={nl:{url:"http://bukazu.com/veiligheid",label:"Beveiligd en mogelijk gemaakt door BUKAZU"},en:{url:"http://bukazu.com/en/security",label:"Secured and made possible by BUKAZU"},de:{url:"http://bukazu.com/de/sicherheit",label:"Gesichert und ermöglicht durch BUKAZU"},fr:{url:"http://bukazu.com/fr/securite",label:"Sécurisé et rendu possible par BUKAZU"},es:{url:"http://bukazu.com/es/seguridad",label:"Asegurado y hecho posible por BUKAZU"},it:{url:"http://bukazu.com/it/sicurezza",label:"Protetto e reso possibile da BUKAZU"}};function Rb(e){const{url:t,label:r}=Object.prototype.hasOwnProperty.call(Fb,e)?Fb[e]:Fb.en;return`<div class="bu-safe-booking"><a href="${t}" class="bu-safe-booking-link"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve" width="16px" height="16px" class="bu-safe-booking-icon"><path d="M75.98,41.62h-2.47L73.5,29.31C73.49,15.9,62.58,4.99,49.17,5C35.76,5.01,24.85,15.92,24.86,29.33l0.02,12.31H24 c-4.61,0.01-8.35,3.75-8.34,8.36v36.65c0,4.61,3.75,8.35,8.36,8.35L76,94.97c4.61,0,8.35-3.74,8.34-8.35V49.96 C84.34,45.35,80.59,41.62,75.98,41.62z M33.84,41.64l-0.02-12.31c0-8.47,6.88-15.36,15.35-15.37c8.47,0,15.36,6.89,15.36,15.35 l0.02,12.31L33.84,41.64z" /></svg>${r}</a></div>`}class Mb extends e.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){Im(e)}render(){return this.state.hasError?/* @__PURE__ */E.jsx("h1",{children:"Something went wrong."}):this.props.children}}function $b({pageType:e,locale:t,filters:r={}}){const{portalCode:n,objectCode:a}=i(zm),o=!a,{loading:s,error:c,data:u}=vs(Ns,{variables:{id:n},skip:o}),{loading:l,error:d,data:p}=vs(Is,{variables:{id:n},skip:!o}),h=o?d:c;if(o?l:s)/* @__PURE__ */
786
786
  return E.jsx(j,{});if(h)/* @__PURE__ */
787
- return E.jsx(Cm,{errors:{...h}});const f=o?p?.PortalSite??null:u?.PortalSite??null;if(!f)/* @__PURE__ */
788
- return E.jsx(j,{});let m=f.options;const _=f.colorsConfiguration,v=document.documentElement;let y;return v.style.setProperty("--bukazu-discount",_.discount),v.style.setProperty("--bukazu-cell",_.cell),v.style.setProperty("--bukazu-arrival",_.arrival),v.style.setProperty("--bukazu-booked",_.booked),v.style.setProperty("--bukazu-departure",_.departure),v.style.setProperty("--bukazu-button",_.button),v.style.setProperty("--bukazu-button_cta",_.buttonCta),y=a&&null!==a&&"reviews"!==e?/* @__PURE__ */E.jsxs(Rb,{children:[
789
- /* @__PURE__ */E.jsx(Db,{}),
790
- /* @__PURE__ */E.jsx("div",{dangerouslySetInnerHTML:{__html:Fb(t)}})]}):a&&null!==a&&"reviews"===e?/* @__PURE__ */E.jsx(Cb,{}):/* @__PURE__ */E.jsx(Um,{PortalSite:f,locale:t,options:m,filters:r}),/* @__PURE__ */E.jsx(E.Fragment,{children:y})}function $b({portalCode:e,objectCode:t,pageType:n,locale:i,filters:a,api_url:o="https://api.bukazu.com/graphql",sentryDsn:s}){const c=i??"en";r(()=>{var r;s&&(r=s,void 0===tp()&&Tm({dsn:r})),Dm({portalCode:e,objectCode:t,locale:c})},[s,e,t,c]),r(()=>{window.__localeId__=c,async function(e){if(!Rm[e])try{switch(e){case"nl":{const{nl:e}=await import("./nl-kV2lKzrD.js");Rm.nl=e;break}case"de":{const{de:e}=await import("./de-D8tQxwM0.js");Rm.de=e;break}case"fr":{const{fr:e}=await import("./fr-Bg6SLGPI.js");Rm.fr=e;break}case"it":{const{it:e}=await import("./it-D2xZLsNx.js");Rm.it=e;break}case"es":{const{es:e}=await import("./es-D927eata.js");Rm.es=e;break}default:return}}catch(t){}}(c)},[c]);const u=function({portalCode:e,pageType:t,locale:n,filters:i}){let a=[];if(!e){let e="No portal code is specified, so portal is not working";a.push(e)}if(t&&"reviews"!==t){let e=`'${t}' is not a valid page`;a.push(e)}n&&(["nl","de","en","fr","it","es"].includes(n)||a.push("Invalid locale")),i&&Pm(i);const o=JSON.stringify(a);return r(()=>{a.forEach(e=>Im(e))},[o]),0!==a.length&&/* @__PURE__ */E.jsxs("div",{children:[
787
+ return E.jsx(Pm,{errors:{...h}});const f=o?p?.PortalSite??null:u?.PortalSite??null;if(!f)/* @__PURE__ */
788
+ return E.jsx(j,{});let m=f.options;const _=f.colorsConfiguration,v=document.documentElement;let y;return v.style.setProperty("--bukazu-discount",_.discount),v.style.setProperty("--bukazu-cell",_.cell),v.style.setProperty("--bukazu-arrival",_.arrival),v.style.setProperty("--bukazu-booked",_.booked),v.style.setProperty("--bukazu-departure",_.departure),v.style.setProperty("--bukazu-button",_.button),v.style.setProperty("--bukazu-button_cta",_.buttonCta),y=a&&null!==a&&"reviews"!==e?/* @__PURE__ */E.jsxs(Mb,{children:[
789
+ /* @__PURE__ */E.jsx(Nb,{}),
790
+ /* @__PURE__ */E.jsx("div",{dangerouslySetInnerHTML:{__html:Rb(t)}})]}):a&&null!==a&&"reviews"===e?/* @__PURE__ */E.jsx(Pb,{}):/* @__PURE__ */E.jsx(Qm,{PortalSite:f,locale:t,options:m,filters:r}),/* @__PURE__ */E.jsx(E.Fragment,{children:y})}var Lb=function(){function e(e,t,r,n,i){var a=this;this.observer=e,this.operation=t,this.forward=r,this.delayFor=n,this.retryIf=i,this.retryCount=0,this.currentSubscription=null,this.onError=function(e){return I(a,void 0,void 0,function(){return A(this,function(t){switch(t.label){case 0:return this.retryCount+=1,[4,this.retryIf(this.retryCount,this.operation,e)];case 1:return t.sent()?(this.scheduleRetry(this.delayFor(this.retryCount,this.operation,e)),[2]):(this.observer.error(e),[2])}})})},this.try()}return e.prototype.cancel=function(){this.currentSubscription&&this.currentSubscription.unsubscribe(),clearTimeout(this.timerId),this.timerId=void 0,this.currentSubscription=null},e.prototype.try=function(){this.currentSubscription=this.forward(this.operation).subscribe({next:this.observer.next.bind(this.observer),error:this.onError,complete:this.observer.complete.bind(this.observer)})},e.prototype.scheduleRetry=function(e){var t=this;if(this.timerId)throw new Error("RetryLink BUG! Encountered overlapping retries");this.timerId=setTimeout(function(){t.timerId=void 0,t.try()},e)},e}(),qb=function(e){function t(t){var r=e.call(this)||this,n=t||{},i=n.attempts,a=n.delay;return r.delayFor="function"==typeof a?a:function(e){var t=e||{},r=t.initial,n=void 0===r?300:r,i=t.jitter,a=void 0===i||i,o=t.max,s=void 0===o?1/0:o,c=a?n:n/2;return function(e){var t=Math.min(s,c*Math.pow(2,e));return a&&(t=Math.random()*t),t}}(a),r.retryIf="function"==typeof i?i:function(e){var t=e||{},r=t.retryIf,n=t.max,i=void 0===n?5:n;return function(e,t,n){return!(e>=i)&&(r?r(n,t):!!n)}}(i),r}return T(t,e),t.prototype.request=function(e,t){var r=this;return new ri(function(n){var i=new Lb(n,e,t,r.delayFor,r.retryIf);return function(){i.cancel()}})},t}(Oi);function zb({portalCode:e,objectCode:t,pageType:n,locale:i,filters:a,api_url:o="https://api.bukazu.com/graphql",sentryDsn:s}){const c=i??"en";r(()=>{var r;s&&(r=s,void 0===rp()&&Dm({dsn:r})),Nm({portalCode:e,objectCode:t,locale:c})},[s,e,t,c]),r(()=>{window.__localeId__=c,async function(e){if(!Mm[e])try{switch(e){case"nl":{const{nl:e}=await import("./nl-Cl_ufqUS.js");Mm.nl=e;break}case"de":{const{de:e}=await import("./de-D35AIr3H.js");Mm.de=e;break}case"fr":{const{fr:e}=await import("./fr-DIC8wjlE.js");Mm.fr=e;break}case"it":{const{it:e}=await import("./it-LJtcK9j8.js");Mm.it=e;break}case"es":{const{es:e}=await import("./es-B_-24igA.js");Mm.es=e;break}default:return}}catch(t){}}(c)},[c]);const u=function({portalCode:e,pageType:t,locale:n,filters:i}){let a=[];if(!e){let e="No portal code is specified, so portal is not working";a.push(e)}if(t&&"reviews"!==t){let e=`'${t}' is not a valid page`;a.push(e)}n&&(["nl","de","en","fr","it","es"].includes(n)||a.push("Invalid locale")),i&&Fm(i);const o=JSON.stringify(a);return r(()=>{a.forEach(e=>Am(e))},[o]),0!==a.length&&/* @__PURE__ */E.jsxs("div",{children:[
791
791
  /* @__PURE__ */E.jsx("h2",{children:"Something went wrong please try again "}),
792
- /* @__PURE__ */E.jsx("ul",{children:a.map(e=>/* @__PURE__ */E.jsx("li",{children:e},e))})]})}({portalCode:e,pageType:n,locale:c,filters:a});if(u)return u;const l=new Co({uri:o,cache:new fo,headers:{locale:c},defaultOptions:{watchQuery:{fetchPolicy:"cache-and-network"}}});/* @__PURE__ */
793
- return E.jsx(es,{client:l,children:/* @__PURE__ */E.jsx(qm.Provider,{value:{portalCode:e,objectCode:t,locale:c},children:/* @__PURE__ */E.jsx("div",{className:"bu-portal",children:/* @__PURE__ */E.jsx(Mb,{pageType:n,locale:c,filters:a})})})})}export{$b as P,Ic as a,Oc as b,Cc as c,Pc as d,vc as n,hc as s};
792
+ /* @__PURE__ */E.jsx("ul",{children:a.map(e=>/* @__PURE__ */E.jsx("li",{children:e},e))})]})}({portalCode:e,pageType:n,locale:c,filters:a}),l=p(()=>function(e,t){const r=new Qi({uri:e,headers:{locale:t}}),n=new qb({delay:{initial:300,jitter:!0},attempts:{max:5,retryIf:e=>{const t=e.networkError;if(!t)return!1;const r=t.statusCode;return"number"!=typeof r||408===r||429===r||r>=500&&r<600}}});return new Po({link:Ti([n,r]),cache:new mo,defaultOptions:{watchQuery:{fetchPolicy:"cache-and-network"}}})}(o,c),[o,c]);return u||/* @__PURE__ */E.jsx(ts,{client:l,children:/* @__PURE__ */E.jsx(zm.Provider,{value:{portalCode:e,objectCode:t,locale:c},children:/* @__PURE__ */E.jsx("div",{className:"bu-portal",children:/* @__PURE__ */E.jsx($b,{pageType:n,locale:c,filters:a})})})})}export{zb as P,Ac as a,Tc as b,Pc as c,Fc as d,yc as n,fc as s};