var x0=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var lT=x0((dT,dc)=>{function N0(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function D0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Th={exports:{}},Za={},Ch={exports:{}},K={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var fo=Symbol.for("react.element"),I0=Symbol.for("react.portal"),L0=Symbol.for("react.fragment"),R0=Symbol.for("react.strict_mode"),P0=Symbol.for("react.profiler"),A0=Symbol.for("react.provider"),M0=Symbol.for("react.context"),F0=Symbol.for("react.forward_ref"),j0=Symbol.for("react.suspense"),B0=Symbol.for("react.memo"),z0=Symbol.for("react.lazy"),Vf=Symbol.iterator;function U0(e){return e===null||typeof e!="object"?null:(e=Vf&&e[Vf]||e["@@iterator"],typeof e=="function"?e:null)}var xh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Nh=Object.assign,Dh={};function Jr(e,t,n){this.props=e,this.context=t,this.refs=Dh,this.updater=n||xh}Jr.prototype.isReactComponent={};Jr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Jr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ih(){}Ih.prototype=Jr.prototype;function pc(e,t,n){this.props=e,this.context=t,this.refs=Dh,this.updater=n||xh}var hc=pc.prototype=new Ih;hc.constructor=pc;Nh(hc,Jr.prototype);hc.isPureReactComponent=!0;var Kf=Array.isArray,Lh=Object.prototype.hasOwnProperty,vc={current:null},Rh={key:!0,ref:!0,__self:!0,__source:!0};function Ph(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)Lh.call(t,r)&&!Rh.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,z=D[Q];if(0>>1;Qi(Le,F))Gei(Co,Le)?(D[Q]=Co,D[Ge]=F,Q=Ge):(D[Q]=Le,D[Z]=F,Q=Z);else if(Gei(Co,F))D[Q]=Co,D[Ge]=F,Q=Ge;else break e}}return I}function i(D,I){var F=D.sortIndex-I.sortIndex;return F!==0?F:D.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var u=[],l=[],c=1,f=null,d=3,v=!1,g=!1,m=!1,S=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(D){for(var I=n(l);I!==null;){if(I.callback===null)r(l);else if(I.startTime<=D)r(l),I.sortIndex=I.expirationTime,t(u,I);else break;I=n(l)}}function E(D){if(m=!1,y(D),!g)if(n(u)!==null)g=!0,B(b);else{var I=n(l);I!==null&&re(E,I.startTime-D)}}function b(D,I){g=!1,m&&(m=!1,p(T),T=-1),v=!0;var F=d;try{for(y(I),f=n(u);f!==null&&(!(f.expirationTime>I)||D&&!G());){var Q=f.callback;if(typeof Q=="function"){f.callback=null,d=f.priorityLevel;var z=Q(f.expirationTime<=I);I=e.unstable_now(),typeof z=="function"?f.callback=z:f===n(u)&&r(u),y(I)}else r(u);f=n(u)}if(f!==null)var H=!0;else{var Z=n(l);Z!==null&&re(E,Z.startTime-I),H=!1}return H}finally{f=null,d=F,v=!1}}var _=!1,O=null,T=-1,$=5,j=-1;function G(){return!(e.unstable_now()-j<$)}function ke(){if(O!==null){var D=e.unstable_now();j=D;var I=!0;try{I=O(!0,D)}finally{I?gt():(_=!1,O=null)}}else _=!1}var gt;if(typeof h=="function")gt=function(){h(ke)};else if(typeof MessageChannel<"u"){var N=new MessageChannel,k=N.port2;N.port1.onmessage=ke,gt=function(){k.postMessage(null)}}else gt=function(){S(ke,0)};function B(D){O=D,_||(_=!0,gt())}function re(D,I){T=S(function(){D(e.unstable_now())},I)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_continueExecution=function(){g||v||(g=!0,B(b))},e.unstable_forceFrameRate=function(D){0>D||125Q?(D.sortIndex=F,t(l,D),n(u)===null&&D===n(l)&&(m?(p(T),T=-1):m=!0,re(E,F-Q))):(D.sortIndex=z,t(u,D),g||v||(g=!0,B(b))),D},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(D){var I=d;return function(){var F=d;d=I;try{return D.apply(this,arguments)}finally{d=F}}}})(Bh);jh.exports=Bh;var J0=jh.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var zh=M,st=J0;function x(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bu=Object.prototype.hasOwnProperty,Z0=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Wf={},qf={};function eg(e){return Bu.call(qf,e)?!0:Bu.call(Wf,e)?!1:Z0.test(e)?qf[e]=!0:(Wf[e]=!0,!1)}function tg(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ng(e,t,n,r){if(t===null||typeof t>"u"||tg(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function qe(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Fe[e]=new qe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Fe[t]=new qe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Fe[e]=new qe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Fe[e]=new qe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Fe[e]=new qe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Fe[e]=new qe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Fe[e]=new qe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Fe[e]=new qe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Fe[e]=new qe(e,5,!1,e.toLowerCase(),null,!1,!1)});var mc=/[\-:]([a-z])/g;function gc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(mc,gc);Fe[t]=new qe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(mc,gc);Fe[t]=new qe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(mc,gc);Fe[t]=new qe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Fe[e]=new qe(e,1,!1,e.toLowerCase(),null,!1,!1)});Fe.xlinkHref=new qe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Fe[e]=new qe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ec(e,t,n,r){var i=Fe.hasOwnProperty(t)?Fe[t]:null;(i!==null?i.type!==0:r||!(2s||i[a]!==o[s]){var u=` `+i[a].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=a&&0<=s);break}}}finally{Xs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ei(e):""}function rg(e){switch(e.tag){case 5:return Ei(e.type);case 16:return Ei("Lazy");case 13:return Ei("Suspense");case 19:return Ei("SuspenseList");case 0:case 2:case 15:return e=Js(e.type,!1),e;case 11:return e=Js(e.type.render,!1),e;case 1:return e=Js(e.type,!0),e;default:return""}}function Qu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case pr:return"Fragment";case dr:return"Portal";case zu:return"Profiler";case Sc:return"StrictMode";case Uu:return"Suspense";case $u:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qh:return(e.displayName||"Context")+".Consumer";case $h:return(e._context.displayName||"Context")+".Provider";case wc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _c:return t=e.displayName||null,t!==null?t:Qu(e.type)||"Memo";case on:t=e._payload,e=e._init;try{return Qu(e(t))}catch{}}return null}function ig(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qu(t);case 8:return t===Sc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Kh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function og(e){var t=Kh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Do(e){e._valueTracker||(e._valueTracker=og(e))}function Hh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Kh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Sa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Vu(e,t){var n=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Yf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=kn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Wh(e,t){t=t.checked,t!=null&&Ec(e,"checked",t,!1)}function Ku(e,t){Wh(e,t);var n=kn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Hu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Hu(e,t.type,kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Hu(e,t,n){(t!=="number"||Sa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Si=Array.isArray;function Cr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Io.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ji(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ki={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ag=["Webkit","ms","Moz","O"];Object.keys(ki).forEach(function(e){ag.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ki[t]=ki[e]})});function Xh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ki.hasOwnProperty(e)&&ki[e]?(""+t).trim():t+"px"}function Jh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Xh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var sg=ve({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Gu(e,t){if(t){if(sg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(x(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(x(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(x(61))}if(t.style!=null&&typeof t.style!="object")throw Error(x(62))}}function Yu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xu=null;function Oc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ju=null,xr=null,Nr=null;function ed(e){if(e=vo(e)){if(typeof Ju!="function")throw Error(x(280));var t=e.stateNode;t&&(t=is(t),Ju(e.stateNode,e.type,t))}}function Zh(e){xr?Nr?Nr.push(e):Nr=[e]:xr=e}function ev(){if(xr){var e=xr,t=Nr;if(Nr=xr=null,ed(e),t)for(e=0;e>>=0,e===0?32:31-(gg(e)/Eg|0)|0}var Lo=64,Ro=4194304;function wi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ka(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=wi(s):(o&=a,o!==0&&(r=wi(o)))}else a=n&~i,a!==0?r=wi(a):o!==0&&(r=wi(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function po(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-bt(t),e[t]=n}function Og(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ti),ld=String.fromCharCode(32),cd=!1;function Sv(e,t){switch(e){case"keyup":return Xg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var hr=!1;function Zg(e,t){switch(e){case"compositionend":return wv(t);case"keypress":return t.which!==32?null:(cd=!0,ld);case"textInput":return e=t.data,e===ld&&cd?null:e;default:return null}}function eE(e,t){if(hr)return e==="compositionend"||!Ic&&Sv(e,t)?(e=gv(),ea=xc=dn=null,hr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=hd(n)}}function bv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tv(){for(var e=window,t=Sa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Sa(e.document)}return t}function Lc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function lE(e){var t=Tv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&bv(n.ownerDocument.documentElement,n)){if(r!==null&&Lc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=vd(n,o);var a=vd(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,vr=null,il=null,xi=null,ol=!1;function yd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ol||vr==null||vr!==Sa(r)||(r=vr,"selectionStart"in r&&Lc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),xi&&Vi(xi,r)||(xi=r,r=Ca(il,"onSelect"),0gr||(e.current=fl[gr],fl[gr]=null,gr--)}function oe(e,t){gr++,fl[gr]=e.current,e.current=t}var bn={},Qe=Ln(bn),Je=Ln(!1),Hn=bn;function zr(e,t){var n=e.type.contextTypes;if(!n)return bn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ze(e){return e=e.childContextTypes,e!=null}function Na(){ue(Je),ue(Qe)}function Od(e,t,n){if(Qe.current!==bn)throw Error(x(168));oe(Qe,t),oe(Je,n)}function Av(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(x(108,ig(e)||"Unknown",i));return ve({},n,r)}function Da(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||bn,Hn=Qe.current,oe(Qe,e),oe(Je,Je.current),!0}function kd(e,t,n){var r=e.stateNode;if(!r)throw Error(x(169));n?(e=Av(e,t,Hn),r.__reactInternalMemoizedMergedChildContext=e,ue(Je),ue(Qe),oe(Qe,e)):ue(Je),oe(Je,n)}var Ut=null,os=!1,du=!1;function Mv(e){Ut===null?Ut=[e]:Ut.push(e)}function wE(e){os=!0,Mv(e)}function Rn(){if(!du&&Ut!==null){du=!0;var e=0,t=ee;try{var n=Ut;for(ee=1;e>=a,i-=a,$t=1<<32-bt(t)+i|n<T?($=O,O=null):$=O.sibling;var j=d(p,O,y[T],E);if(j===null){O===null&&(O=$);break}e&&O&&j.alternate===null&&t(p,O),h=o(j,h,T),_===null?b=j:_.sibling=j,_=j,O=$}if(T===y.length)return n(p,O),ce&&An(p,T),b;if(O===null){for(;TT?($=O,O=null):$=O.sibling;var G=d(p,O,j.value,E);if(G===null){O===null&&(O=$);break}e&&O&&G.alternate===null&&t(p,O),h=o(G,h,T),_===null?b=G:_.sibling=G,_=G,O=$}if(j.done)return n(p,O),ce&&An(p,T),b;if(O===null){for(;!j.done;T++,j=y.next())j=f(p,j.value,E),j!==null&&(h=o(j,h,T),_===null?b=j:_.sibling=j,_=j);return ce&&An(p,T),b}for(O=r(p,O);!j.done;T++,j=y.next())j=v(O,p,T,j.value,E),j!==null&&(e&&j.alternate!==null&&O.delete(j.key===null?T:j.key),h=o(j,h,T),_===null?b=j:_.sibling=j,_=j);return e&&O.forEach(function(ke){return t(p,ke)}),ce&&An(p,T),b}function S(p,h,y,E){if(typeof y=="object"&&y!==null&&y.type===pr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case No:e:{for(var b=y.key,_=h;_!==null;){if(_.key===b){if(b=y.type,b===pr){if(_.tag===7){n(p,_.sibling),h=i(_,y.props.children),h.return=p,p=h;break e}}else if(_.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===on&&Id(b)===_.type){n(p,_.sibling),h=i(_,y.props),h.ref=li(p,_,y),h.return=p,p=h;break e}n(p,_);break}else t(p,_);_=_.sibling}y.type===pr?(h=Vn(y.props.children,p.mode,E,y.key),h.return=p,p=h):(E=ua(y.type,y.key,y.props,null,p.mode,E),E.ref=li(p,h,y),E.return=p,p=E)}return a(p);case dr:e:{for(_=y.key;h!==null;){if(h.key===_)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(p,h.sibling),h=i(h,y.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=Su(y,p.mode,E),h.return=p,p=h}return a(p);case on:return _=y._init,S(p,h,_(y._payload),E)}if(Si(y))return g(p,h,y,E);if(ii(y))return m(p,h,y,E);zo(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,y),h.return=p,p=h):(n(p,h),h=Eu(y,p.mode,E),h.return=p,p=h),a(p)):n(p,h)}return S}var $r=Vv(!0),Kv=Vv(!1),yo={},Mt=Ln(yo),qi=Ln(yo),Gi=Ln(yo);function Un(e){if(e===yo)throw Error(x(174));return e}function Uc(e,t){switch(oe(Gi,t),oe(qi,e),oe(Mt,yo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:qu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=qu(t,e)}ue(Mt),oe(Mt,t)}function Qr(){ue(Mt),ue(qi),ue(Gi)}function Hv(e){Un(Gi.current);var t=Un(Mt.current),n=qu(t,e.type);t!==n&&(oe(qi,e),oe(Mt,n))}function $c(e){qi.current===e&&(ue(Mt),ue(qi))}var de=Ln(0);function Ma(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var pu=[];function Qc(){for(var e=0;en?n:4,e(!0);var r=hu.transition;hu.transition={};try{e(!1),t()}finally{ee=n,hu.transition=r}}function uy(){return yt().memoizedState}function bE(e,t,n){var r=Sn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ly(e))cy(t,n);else if(n=zv(e,t,n,r),n!==null){var i=Ke();Tt(n,e,r,i),fy(n,t,r)}}function TE(e,t,n){var r=Sn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ly(e))cy(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,xt(s,a)){var u=t.interleaved;u===null?(i.next=i,Bc(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=zv(e,t,i,r),n!==null&&(i=Ke(),Tt(n,e,r,i),fy(n,t,r))}}function ly(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function cy(e,t){Ni=Fa=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bc(e,n)}}var ja={readContext:vt,useCallback:je,useContext:je,useEffect:je,useImperativeHandle:je,useInsertionEffect:je,useLayoutEffect:je,useMemo:je,useReducer:je,useRef:je,useState:je,useDebugValue:je,useDeferredValue:je,useTransition:je,useMutableSource:je,useSyncExternalStore:je,useId:je,unstable_isNewReconciler:!1},CE={readContext:vt,useCallback:function(e,t){return Dt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:Rd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ia(4194308,4,ry.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ia(4194308,4,e,t)},useInsertionEffect:function(e,t){return ia(4,2,e,t)},useMemo:function(e,t){var n=Dt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Dt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=bE.bind(null,pe,e),[r.memoizedState,e]},useRef:function(e){var t=Dt();return e={current:e},t.memoizedState=e},useState:Ld,useDebugValue:qc,useDeferredValue:function(e){return Dt().memoizedState=e},useTransition:function(){var e=Ld(!1),t=e[0];return e=kE.bind(null,e[1]),Dt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=pe,i=Dt();if(ce){if(n===void 0)throw Error(x(407));n=n()}else{if(n=t(),De===null)throw Error(x(349));qn&30||Gv(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Rd(Xv.bind(null,r,o,e),[e]),r.flags|=2048,Ji(9,Yv.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Dt(),t=De.identifierPrefix;if(ce){var n=Qt,r=$t;n=(r&~(1<<32-bt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Rt]=t,e[Wi]=r,Sy(e,t,!1,!1),t.stateNode=e;e:{switch(a=Yu(n,r),n){case"dialog":ae("cancel",e),ae("close",e),i=r;break;case"iframe":case"object":case"embed":ae("load",e),i=r;break;case"video":case"audio":for(i=0;i<_i.length;i++)ae(_i[i],e);i=r;break;case"source":ae("error",e),i=r;break;case"img":case"image":case"link":ae("error",e),ae("load",e),i=r;break;case"details":ae("toggle",e),i=r;break;case"input":Yf(e,r),i=Vu(e,r),ae("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ve({},r,{value:void 0}),ae("invalid",e);break;case"textarea":Jf(e,r),i=Wu(e,r),ae("invalid",e);break;default:i=r}Gu(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var u=s[o];o==="style"?Jh(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Yh(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&ji(e,u):typeof u=="number"&&ji(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Fi.hasOwnProperty(o)?u!=null&&o==="onScroll"&&ae("scroll",e):u!=null&&Ec(e,o,u,a))}switch(n){case"input":Do(e),Xf(e,r,!1);break;case"textarea":Do(e),Zf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+kn(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Cr(e,!!r.multiple,o,!1):r.defaultValue!=null&&Cr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=xa)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Be(t),null;case 6:if(e&&t.stateNode!=null)_y(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(x(166));if(n=Un(Gi.current),Un(Mt.current),Bo(t)){if(r=t.stateNode,n=t.memoizedProps,r[Rt]=t,(o=r.nodeValue!==n)&&(e=ot,e!==null))switch(e.tag){case 3:jo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&jo(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Rt]=t,t.stateNode=r}return Be(t),null;case 13:if(ue(de),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ce&&it!==null&&t.mode&1&&!(t.flags&128))Bv(),Ur(),t.flags|=98560,o=!1;else if(o=Bo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(x(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(x(317));o[Rt]=t}else Ur(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Be(t),o=!1}else Ot!==null&&(Dl(Ot),Ot=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||de.current&1?Te===0&&(Te=3):tf())),t.updateQueue!==null&&(t.flags|=4),Be(t),null);case 4:return Qr(),_l(e,t),e===null&&Ki(t.stateNode.containerInfo),Be(t),null;case 10:return jc(t.type._context),Be(t),null;case 17:return Ze(t.type)&&Na(),Be(t),null;case 19:if(ue(de),o=t.memoizedState,o===null)return Be(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)ci(o,!1);else{if(Te!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Ma(e),a!==null){for(t.flags|=128,ci(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return oe(de,de.current&1|2),t.child}e=e.sibling}o.tail!==null&&Se()>Kr&&(t.flags|=128,r=!0,ci(o,!1),t.lanes=4194304)}else{if(!r)if(e=Ma(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ci(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!ce)return Be(t),null}else 2*Se()-o.renderingStartTime>Kr&&n!==1073741824&&(t.flags|=128,r=!0,ci(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Se(),t.sibling=null,n=de.current,oe(de,r?n&1|2:n&1),t):(Be(t),null);case 22:case 23:return ef(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?nt&1073741824&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),null;case 24:return null;case 25:return null}throw Error(x(156,t.tag))}function AE(e,t){switch(Pc(t),t.tag){case 1:return Ze(t.type)&&Na(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qr(),ue(Je),ue(Qe),Qc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return $c(t),null;case 13:if(ue(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(x(340));Ur()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ue(de),null;case 4:return Qr(),null;case 10:return jc(t.type._context),null;case 22:case 23:return ef(),null;case 24:return null;default:return null}}var $o=!1,$e=!1,ME=typeof WeakSet=="function"?WeakSet:Set,L=null;function _r(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ge(e,t,r)}else n.current=null}function Ol(e,t,n){try{n()}catch(r){ge(e,t,r)}}var $d=!1;function FE(e,t){if(al=ba,e=Tv(),Lc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,u=-1,l=0,c=0,f=e,d=null;t:for(;;){for(var v;f!==n||i!==0&&f.nodeType!==3||(s=a+i),f!==o||r!==0&&f.nodeType!==3||(u=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(v=f.firstChild)!==null;)d=f,f=v;for(;;){if(f===e)break t;if(d===n&&++l===i&&(s=a),d===o&&++c===r&&(u=a),(v=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=v}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(sl={focusedElem:e,selectionRange:n},ba=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var m=g.memoizedProps,S=g.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?m:wt(t.type,m),S);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch(E){ge(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return g=$d,$d=!1,g}function Di(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Ol(t,n,o)}i=i.next}while(i!==r)}}function us(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function kl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Oy(e){var t=e.alternate;t!==null&&(e.alternate=null,Oy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rt],delete t[Wi],delete t[cl],delete t[EE],delete t[SE])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ky(e){return e.tag===5||e.tag===3||e.tag===4}function Qd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ky(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function bl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=xa));else if(r!==4&&(e=e.child,e!==null))for(bl(e,t,n),e=e.sibling;e!==null;)bl(e,t,n),e=e.sibling}function Tl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Tl(e,t,n),e=e.sibling;e!==null;)Tl(e,t,n),e=e.sibling}var Pe=null,_t=!1;function tn(e,t,n){for(n=n.child;n!==null;)by(e,t,n),n=n.sibling}function by(e,t,n){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(es,n)}catch{}switch(n.tag){case 5:$e||_r(n,t);case 6:var r=Pe,i=_t;Pe=null,tn(e,t,n),Pe=r,_t=i,Pe!==null&&(_t?(e=Pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Pe.removeChild(n.stateNode));break;case 18:Pe!==null&&(_t?(e=Pe,n=n.stateNode,e.nodeType===8?fu(e.parentNode,n):e.nodeType===1&&fu(e,n),$i(e)):fu(Pe,n.stateNode));break;case 4:r=Pe,i=_t,Pe=n.stateNode.containerInfo,_t=!0,tn(e,t,n),Pe=r,_t=i;break;case 0:case 11:case 14:case 15:if(!$e&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Ol(n,t,a),i=i.next}while(i!==r)}tn(e,t,n);break;case 1:if(!$e&&(_r(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ge(n,t,s)}tn(e,t,n);break;case 21:tn(e,t,n);break;case 22:n.mode&1?($e=(r=$e)||n.memoizedState!==null,tn(e,t,n),$e=r):tn(e,t,n);break;default:tn(e,t,n)}}function Vd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ME),t.forEach(function(r){var i=HE.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Et(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=Se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*BE(r/1960))-r,10e?16:e,pn===null)var r=!1;else{if(e=pn,pn=null,Ua=0,q&6)throw Error(x(331));var i=q;for(q|=4,L=e.current;L!==null;){var o=L,a=o.child;if(L.flags&16){var s=o.deletions;if(s!==null){for(var u=0;uSe()-Jc?Qn(e,0):Xc|=n),et(e,t)}function Ry(e,t){t===0&&(e.mode&1?(t=Ro,Ro<<=1,!(Ro&130023424)&&(Ro=4194304)):t=1);var n=Ke();e=Gt(e,t),e!==null&&(po(e,t,n),et(e,n))}function KE(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ry(e,n)}function HE(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(x(314))}r!==null&&r.delete(t),Ry(e,n)}var Py;Py=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Je.current)Xe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Xe=!1,RE(e,t,n);Xe=!!(e.flags&131072)}else Xe=!1,ce&&t.flags&1048576&&Fv(t,La,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;oa(e,t),e=t.pendingProps;var i=zr(t,Qe.current);Ir(t,n),i=Kc(null,t,r,e,i,n);var o=Hc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ze(r)?(o=!0,Da(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,zc(t),i.updater=as,t.stateNode=i,i._reactInternals=t,yl(t,r,e,n),t=El(null,t,r,!0,o,n)):(t.tag=0,ce&&o&&Rc(t),Ve(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(oa(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=qE(r),e=wt(r,e),i){case 0:t=gl(null,t,r,e,n);break e;case 1:t=Bd(null,t,r,e,n);break e;case 11:t=Fd(null,t,r,e,n);break e;case 14:t=jd(null,t,r,wt(r.type,e),n);break e}throw Error(x(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wt(r,i),gl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wt(r,i),Bd(e,t,r,i,n);case 3:e:{if(my(t),e===null)throw Error(x(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Uv(e,t),Aa(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Vr(Error(x(423)),t),t=zd(e,t,r,n,i);break e}else if(r!==i){i=Vr(Error(x(424)),t),t=zd(e,t,r,n,i);break e}else for(it=mn(t.stateNode.containerInfo.firstChild),ot=t,ce=!0,Ot=null,n=Kv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ur(),r===i){t=Yt(e,t,n);break e}Ve(e,t,r,n)}t=t.child}return t;case 5:return Hv(t),e===null&&pl(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,ul(r,i)?a=null:o!==null&&ul(r,o)&&(t.flags|=32),yy(e,t),Ve(e,t,a,n),t.child;case 6:return e===null&&pl(t),null;case 13:return gy(e,t,n);case 4:return Uc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$r(t,null,r,n):Ve(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wt(r,i),Fd(e,t,r,i,n);case 7:return Ve(e,t,t.pendingProps,n),t.child;case 8:return Ve(e,t,t.pendingProps.children,n),t.child;case 12:return Ve(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,oe(Ra,r._currentValue),r._currentValue=a,o!==null)if(xt(o.value,a)){if(o.children===i.children&&!Je.current){t=Yt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=Vt(-1,n&-n),u.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),hl(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(x(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),hl(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Ve(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ir(t,n),i=vt(i),r=r(i),t.flags|=1,Ve(e,t,r,n),t.child;case 14:return r=t.type,i=wt(r,t.pendingProps),i=wt(r.type,i),jd(e,t,r,i,n);case 15:return hy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wt(r,i),oa(e,t),t.tag=1,Ze(r)?(e=!0,Da(t)):e=!1,Ir(t,n),Qv(t,r,i),yl(t,r,i,n),El(null,t,r,!0,e,n);case 19:return Ey(e,t,n);case 22:return vy(e,t,n)}throw Error(x(156,t.tag))};function Ay(e,t){return sv(e,t)}function WE(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,n,r){return new WE(e,t,n,r)}function nf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qE(e){if(typeof e=="function")return nf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===wc)return 11;if(e===_c)return 14}return 2}function wn(e,t){var n=e.alternate;return n===null?(n=pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ua(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")nf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case pr:return Vn(n.children,i,o,t);case Sc:a=8,i|=8;break;case zu:return e=pt(12,n,t,i|2),e.elementType=zu,e.lanes=o,e;case Uu:return e=pt(13,n,t,i),e.elementType=Uu,e.lanes=o,e;case $u:return e=pt(19,n,t,i),e.elementType=$u,e.lanes=o,e;case Vh:return cs(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $h:a=10;break e;case Qh:a=9;break e;case wc:a=11;break e;case _c:a=14;break e;case on:a=16,r=null;break e}throw Error(x(130,e==null?e:typeof e,""))}return t=pt(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Vn(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function cs(e,t,n,r){return e=pt(22,e,r,t),e.elementType=Vh,e.lanes=n,e.stateNode={isHidden:!1},e}function Eu(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function Su(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function GE(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=eu(0),this.expirationTimes=eu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eu(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function rf(e,t,n,r,i,o,a,s,u){return e=new GE(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=pt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zc(o),e}function YE(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(By)}catch(e){console.error(e)}}By(),Fh.exports=ut;var t1=Fh.exports,Jd=t1;ju.createRoot=Jd.createRoot,ju.hydrateRoot=Jd.hydrateRoot;const n1="_poster_lpfg2_1",r1="_content_lpfg2_6",Zd={poster:n1,content:r1};var Il=function(e,t){return Il=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Il(e,t)};function en(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Il(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var w=function(){return w=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=a1){var t=console[e]||console.log;return t.apply(console,arguments)}}}(function(e){e.debug=Ko("debug"),e.log=Ko("log"),e.warn=Ko("warn"),e.error=Ko("error")})(jn||(jn={}));var uf="3.8.4";function kt(e){try{return e()}catch{}}const tp=kt(function(){return globalThis})||kt(function(){return window})||kt(function(){return self})||kt(function(){return global})||kt(function(){return kt.constructor("return this")()});var np=new Map;function Rl(e){var t=np.get(e)||1;return np.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function $y(e,t){t===void 0&&(t=0);var n=Rl("stringifyForDisplay");return JSON.stringify(e,function(r,i){return i===void 0?n:i},t).split(JSON.stringify(n)).join("")}function Ho(e){return function(t){for(var n=[],r=1;r=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function c1(e){return Qy(e.source,Pl(e.source,e.start))}function Qy(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=t.line===1?n:0,u=t.column+s,l=`${e.name}:${a}:${u} `,c=r.split(/\r\n|[\n\r]/g),f=c[i];if(f.length>120){const d=Math.floor(u/80),v=u%80,g=[];for(let m=0;m["|",m]),["|","^".padStart(v)],["|",g[d+1]]])}return l+ip([[`${a-1} |`,c[i-1]],[`${a} |`,f],["|","^".padStart(u)],[`${a+1} |`,c[i+1]]])}function ip(e){const t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(` `)}function f1(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class cf extends Error{constructor(t,...n){var r,i,o;const{nodes:a,source:s,positions:u,path:l,originalError:c,extensions:f}=f1(n);super(t),this.name="GraphQLError",this.path=l??void 0,this.originalError=c??void 0,this.nodes=op(Array.isArray(a)?a:a?[a]:void 0);const d=op((r=this.nodes)===null||r===void 0?void 0:r.map(g=>g.loc).filter(g=>g!=null));this.source=s??(d==null||(i=d[0])===null||i===void 0?void 0:i.source),this.positions=u??(d==null?void 0:d.map(g=>g.start)),this.locations=u&&s?u.map(g=>Pl(s,g)):d==null?void 0:d.map(g=>Pl(g.source,g.start));const v=s1(c==null?void 0:c.extensions)?c==null?void 0:c.extensions:void 0;this.extensions=(o=f??v)!==null&&o!==void 0?o: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}}),c!=null&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,cf):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+=` `+c1(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=` `+Qy(this.source,n);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function op(e){return e===void 0||e.length===0?void 0:e}function Ne(e,t,n){return new cf(`Syntax Error: ${n}`,{source:e,positions:[t]})}class d1{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class Vy{constructor(t,n,r,i,o,a){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=o,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 Ky={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"]},p1=new Set(Object.keys(Ky));function ap(e){const t=e==null?void 0:e.kind;return typeof t=="string"&&p1.has(t)}var kr;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(kr||(kr={}));var Al;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Al||(Al={}));var P;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(P||(P={}));function Ml(e){return e===9||e===32}function eo(e){return e>=48&&e<=57}function Hy(e){return e>=97&&e<=122||e>=65&&e<=90}function Wy(e){return Hy(e)||e===95}function h1(e){return Hy(e)||eo(e)||e===95}function v1(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let a=0;as===0?a:a.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function y1(e){let t=0;for(;t1&&r.slice(1).every(v=>v.length===0||Ml(v.charCodeAt(0))),a=n.endsWith('\\"""'),s=e.endsWith('"')&&!a,u=e.endsWith("\\"),l=s||u,c=!(t!=null&&t.minimize)&&(!i||e.length>70||l||o||a);let f="";const d=i&&Ml(e.charCodeAt(0));return(c&&!d||o)&&(f+=` `),f+=n,(c||l)&&(f+=` `),'"""'+f+'"""'}var C;(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(C||(C={}));class g1{constructor(t){const n=new Vy(C.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==C.EOF)do if(t.next)t=t.next;else{const n=S1(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===C.COMMENT);return t}}function E1(e){return e===C.BANG||e===C.DOLLAR||e===C.AMP||e===C.PAREN_L||e===C.PAREN_R||e===C.SPREAD||e===C.COLON||e===C.EQUALS||e===C.AT||e===C.BRACKET_L||e===C.BRACKET_R||e===C.BRACE_L||e===C.PIPE||e===C.BRACE_R}function ti(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function vs(e,t){return qy(e.charCodeAt(t))&&Gy(e.charCodeAt(t+1))}function qy(e){return e>=55296&&e<=56319}function Gy(e){return e>=56320&&e<=57343}function Xn(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return C.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function we(e,t,n,r,i){const o=e.line,a=1+n-e.lineStart;return new Vy(t,n,r,o,a,i)}function S1(e,t){const n=e.source.body,r=n.length;let i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function T1(e,t){const n=e.source.body;switch(n.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:` `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Ne(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function C1(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,a=o,s="";const u=[];for(;oYy?"["+P1(e)+"]":"{ "+n.map(([i,o])=>i+": "+ys(o,t)).join(", ")+" }"}function R1(e,t){if(e.length===0)return"[]";if(t.length>Yy)return"[Array]";const n=Math.min(N1,e.length),r=e.length-n,i=[];for(let o=0;o1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function P1(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}const A1=globalThis.process?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;const i=n.prototype[Symbol.toStringTag],o=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===o){const a=ff(t);throw new Error(`Cannot use ${i} "${a}" from another module or realm. Ensure that there is only one instance of "graphql" in the node_modules directory. If different versions of "graphql" are the dependencies of other relied on modules, use "resolutions" to ensure only one version is installed. https://yarnpkg.com/en/docs/selective-version-resolutions Duplicate "graphql" modules cannot be used at the same time since different versions may have different capabilities and behavior. The data from one version used in the function from another could produce confusing and spurious results.`)}}return!1};class Xy{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||la(!1,`Body must be a string. Received: ${ff(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||la(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||la(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function M1(e){return A1(e,Xy)}function F1(e,t){return new j1(e,t).parseDocument()}class j1{constructor(t,n={}){const r=M1(t)?t:new Xy(t);this._lexer=new g1(r),this._options=n,this._tokenCounter=0}parseName(){const t=this.expectToken(C.NAME);return this.node(t,{kind:P.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:P.DOCUMENT,definitions:this.many(C.SOF,this.parseDefinition,C.EOF)})}parseDefinition(){if(this.peek(C.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===C.NAME){switch(n.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(t)throw Ne(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(C.BRACE_L))return this.node(t,{kind:P.OPERATION_DEFINITION,operation:kr.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let r;return this.peek(C.NAME)&&(r=this.parseName()),this.node(t,{kind:P.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(C.NAME);switch(t.value){case"query":return kr.QUERY;case"mutation":return kr.MUTATION;case"subscription":return kr.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(C.PAREN_L,this.parseVariableDefinition,C.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:P.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(C.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(C.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(C.DOLLAR),this.node(t,{kind:P.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:P.SELECTION_SET,selections:this.many(C.BRACE_L,this.parseSelection,C.BRACE_R)})}parseSelection(){return this.peek(C.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let r,i;return this.expectOptionalToken(C.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:P.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(C.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(C.PAREN_L,n,C.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,r=this.parseName();return this.expectToken(C.COLON),this.node(n,{kind:P.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(C.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(C.NAME)?this.node(t,{kind:P.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:P.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:P.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:P.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const n=this._lexer.token;switch(n.kind){case C.BRACKET_L:return this.parseList(t);case C.BRACE_L:return this.parseObject(t);case C.INT:return this.advanceLexer(),this.node(n,{kind:P.INT,value:n.value});case C.FLOAT:return this.advanceLexer(),this.node(n,{kind:P.FLOAT,value:n.value});case C.STRING:case C.BLOCK_STRING:return this.parseStringLiteral();case C.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:P.BOOLEAN,value:!0});case"false":return this.node(n,{kind:P.BOOLEAN,value:!1});case"null":return this.node(n,{kind:P.NULL});default:return this.node(n,{kind:P.ENUM,value:n.value})}case C.DOLLAR:if(t)if(this.expectToken(C.DOLLAR),this._lexer.token.kind===C.NAME){const r=this._lexer.token.value;throw Ne(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:P.STRING,value:t.value,block:t.kind===C.BLOCK_STRING})}parseList(t){const n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:P.LIST,values:this.any(C.BRACKET_L,n,C.BRACKET_R)})}parseObject(t){const n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:P.OBJECT,fields:this.any(C.BRACE_L,n,C.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,r=this.parseName();return this.expectToken(C.COLON),this.node(n,{kind:P.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(C.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(C.AT),this.node(n,{kind:P.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(C.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(C.BRACKET_R),n=this.node(t,{kind:P.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(C.BANG)?this.node(t,{kind:P.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:P.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(C.STRING)||this.peek(C.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),i=this.many(C.BRACE_L,this.parseOperationTypeDefinition,C.BRACE_R);return this.node(t,{kind:P.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(C.COLON);const r=this.parseNamedType();return this.node(t,{kind:P.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:P.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:P.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(C.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(C.BRACE_L,this.parseFieldDefinition,C.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(C.COLON);const o=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(t,{kind:P.FIELD_DEFINITION,description:n,name:r,arguments:i,type:o,directives:a})}parseArgumentDefs(){return this.optionalMany(C.PAREN_L,this.parseInputValueDef,C.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(C.COLON);const i=this.parseTypeReference();let o;this.expectOptionalToken(C.EQUALS)&&(o=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(t,{kind:P.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:o,directives:a})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:P.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:a})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:P.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(C.EQUALS)?this.delimitedMany(C.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:P.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(C.BRACE_L,this.parseEnumValueDefinition,C.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:P.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Ne(this._lexer.source,this._lexer.token.start,`${Wo(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:P.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(C.BRACE_L,this.parseInputValueDef,C.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===C.NAME)switch(t.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(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.optionalMany(C.BRACE_L,this.parseOperationTypeDefinition,C.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:P.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:P.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:P.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:P.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:P.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:P.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:P.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(C.AT);const r=this.parseName(),i=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(t,{kind:P.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:o,locations:a})}parseDirectiveLocations(){return this.delimitedMany(C.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(Al,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new d1(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){const n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw Ne(this._lexer.source,n.start,`Expected ${Jy(t)}, found ${Wo(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const n=this._lexer.token;if(n.kind===C.NAME&&n.value===t)this.advanceLexer();else throw Ne(this._lexer.source,n.start,`Expected "${t}", found ${Wo(n)}.`)}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===C.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const n=t??this._lexer.token;return Ne(this._lexer.source,n.start,`Unexpected ${Wo(n)}.`)}any(t,n,r){this.expectToken(t);const i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);const r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){const{maxTokens:t}=this._options,n=this._lexer.advance();if(t!==void 0&&n.kind!==C.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw Ne(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function Wo(e){const t=e.value;return Jy(e.kind)+(t!=null?` "${t}"`:"")}function Jy(e){return E1(e)?`"${e}"`:e}function B1(e){return`"${e.replace(z1,U1)}"`}const z1=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function U1(e){return $1[e.charCodeAt(0)]}const $1=["\\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"],df=Object.freeze({});function Xt(e,t,n=Ky){const r=new Map;for(const p of Object.values(P))r.set(p,Q1(t,p));let i,o=Array.isArray(e),a=[e],s=-1,u=[],l=e,c,f;const d=[],v=[];do{s++;const p=s===a.length,h=p&&u.length!==0;if(p){if(c=v.length===0?void 0:d[d.length-1],l=f,f=v.pop(),h)if(o){l=l.slice();let E=0;for(const[b,_]of u){const O=b-E;_===null?(l.splice(O,1),E++):l[O]=_}}else{l=Object.defineProperties({},Object.getOwnPropertyDescriptors(l));for(const[E,b]of u)l[E]=b}s=i.index,a=i.keys,u=i.edits,o=i.inArray,i=i.prev}else if(f){if(c=o?s:a[s],l=f[c],l==null)continue;d.push(c)}let y;if(!Array.isArray(l)){var g,m;ap(l)||la(!1,`Invalid AST Node: ${ff(l)}.`);const E=p?(g=r.get(l.kind))===null||g===void 0?void 0:g.leave:(m=r.get(l.kind))===null||m===void 0?void 0:m.enter;if(y=E==null?void 0:E.call(t,l,c,f,d,v),y===df)break;if(y===!1){if(!p){d.pop();continue}}else if(y!==void 0&&(u.push([c,y]),!p))if(ap(y))l=y;else{d.pop();continue}}if(y===void 0&&h&&u.push([c,l]),p)d.pop();else{var S;i={inArray:o,index:s,keys:a,edits:u,prev:i},o=Array.isArray(l),a=o?l:(S=n[l.kind])!==null&&S!==void 0?S:[],s=-1,u=[],f&&v.push(f),f=l}}while(i!==void 0);return u.length!==0?u[u.length-1][1]:e}function Q1(e,t){const n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function V1(e){return Xt(e,H1)}const K1=80,H1={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>A(e.definitions,` `)},OperationDefinition:{leave(e){const t=V("(",A(e.variableDefinitions,", "),")"),n=A([e.operation,A([e.name,t]),A(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+V(" = ",n)+V(" ",A(r," "))},SelectionSet:{leave:({selections:e})=>St(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=V("",e,": ")+t;let a=o+V("(",A(n,", "),")");return a.length>K1&&(a=o+V(`( `,ca(A(n,` `)),` )`)),A([a,A(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+V(" ",A(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>A(["...",V("on ",e),A(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${V("(",A(n,", "),")")} on ${t} ${V("",A(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?m1(e):B1(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+A(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+A(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+V("(",A(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>V("",e,` `)+A(["schema",A(t," "),St(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>V("",e,` `)+A(["scalar",t,A(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>V("",e,` `)+A(["type",t,V("implements ",A(n," & ")),A(r," "),St(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>V("",e,` `)+t+(up(n)?V(`( `,ca(A(n,` `)),` )`):V("(",A(n,", "),")"))+": "+r+V(" ",A(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>V("",e,` `)+A([t+": "+n,V("= ",r),A(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>V("",e,` `)+A(["interface",t,V("implements ",A(n," & ")),A(r," "),St(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>V("",e,` `)+A(["union",t,A(n," "),V("= ",A(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>V("",e,` `)+A(["enum",t,A(n," "),St(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>V("",e,` `)+A([t,A(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>V("",e,` `)+A(["input",t,A(n," "),St(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>V("",e,` `)+"directive @"+t+(up(n)?V(`( `,ca(A(n,` `)),` )`):V("(",A(n,", "),")"))+(r?" repeatable":"")+" on "+A(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>A(["extend schema",A(e," "),St(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>A(["extend scalar",e,A(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>A(["extend type",e,V("implements ",A(t," & ")),A(n," "),St(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>A(["extend interface",e,V("implements ",A(t," & ")),A(n," "),St(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>A(["extend union",e,A(t," "),V("= ",A(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>A(["extend enum",e,A(t," "),St(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>A(["extend input",e,A(t," "),St(n)]," ")}};function A(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function St(e){return V(`{ `,ca(A(e,` `)),` }`)}function V(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function ca(e){return V(" ",e.replace(/\n/g,` `))}function up(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` `)))!==null&&t!==void 0?t:!1}function lp(e){return e.kind===P.FIELD||e.kind===P.FRAGMENT_SPREAD||e.kind===P.INLINE_FRAGMENT}function mo(e,t){var n=e.directives;return!n||!n.length?!0:G1(n).every(function(r){var i=r.directive,o=r.ifArgument,a=!1;return o.value.kind==="Variable"?(a=t&&t[o.value.name.value],U(a!==void 0,64,i.name.value)):a=o.value.value,i.name.value==="skip"?!a:a})}function to(e,t,n){var r=new Set(e),i=r.size;return Xt(t,{Directive:function(o){if(r.delete(o.name.value)&&(!n||!r.size))return df}}),n?!r.size:r.sizeObject.create(null),{forEach:X1,slice:J1}=Array.prototype,{hasOwnProperty:Z1}=Object.prototype;class Pn{constructor(t=!0,n=Y1){this.weakness=t,this.makeData=n}lookup(...t){return this.lookupArray(t)}lookupArray(t){let n=this;return X1.call(t,r=>n=n.getChildTrie(r)),Z1.call(n,"data")?n.data:n.data=this.makeData(J1.call(t))}peek(...t){return this.peekArray(t)}peekArray(t){let n=this;for(let r=0,i=t.length;n&&r=0})||!1,nS=eS&&!tS;function fe(e){return e!==null&&typeof e=="object"}function rS(e,t){var n=t,r=[];e.definitions.forEach(function(o){if(o.kind==="OperationDefinition")throw He(68,o.operation,o.name?" named '".concat(o.name.value,"'"):"");o.kind==="FragmentDefinition"&&r.push(o)}),typeof n>"u"&&(U(r.length===1,69,r.length),n=r[0].name.value);var i=w(w({},e),{definitions:_n([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)});return i}function gs(e){e===void 0&&(e=[]);var t={};return e.forEach(function(n){t[n.name.value]=n}),t}function Es(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{var n=e.name.value;if(typeof t=="function")return t(n);var r=t&&t[n];return U(r,70,n),r||null}default:return null}}function Rr(e){return{__ref:String(e)}}function ne(e){return!!(e&&typeof e=="object"&&typeof e.__ref=="string")}function iS(e){return fe(e)&&e.kind==="Document"&&Array.isArray(e.definitions)}function oS(e){return e.kind==="StringValue"}function aS(e){return e.kind==="BooleanValue"}function sS(e){return e.kind==="IntValue"}function uS(e){return e.kind==="FloatValue"}function lS(e){return e.kind==="Variable"}function cS(e){return e.kind==="ObjectValue"}function fS(e){return e.kind==="ListValue"}function dS(e){return e.kind==="EnumValue"}function pS(e){return e.kind==="NullValue"}function Hr(e,t,n,r){if(sS(n)||uS(n))e[t.value]=Number(n.value);else if(aS(n)||oS(n))e[t.value]=n.value;else if(cS(n)){var i={};n.fields.map(function(a){return Hr(i,a.name,a.value,r)}),e[t.value]=i}else if(lS(n)){var o=(r||{})[n.name.value];e[t.value]=o}else if(fS(n))e[t.value]=n.values.map(function(a){var s={};return Hr(s,t,a,r),s[t.value]});else if(dS(n))e[t.value]=n.value;else if(pS(n))e[t.value]=null;else throw He(79,t.value,n.kind)}function hS(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(i){n[i.name.value]={},i.arguments&&i.arguments.forEach(function(o){var a=o.name,s=o.value;return Hr(n[i.name.value],a,s,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(i){var o=i.name,a=i.value;return Hr(r,o,a,t)})),hf(e.name.value,r,n)}var vS=["connection","include","skip","client","rest","export","nonreactive"],hf=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key)if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(s){i[s]=t[s]}),"".concat(n.connection.key,"(").concat(di(i),")")}else return n.connection.key;var o=e;if(t){var a=di(t);o+="(".concat(a,")")}return n&&Object.keys(n).forEach(function(s){vS.indexOf(s)===-1&&(n[s]&&Object.keys(n[s]).length?o+="@".concat(s,"(").concat(di(n[s]),")"):o+="@".concat(s))}),o},{setStringify:function(e){var t=di;return di=e,t}}),di=function(t){return JSON.stringify(t,yS)};function yS(e,t){return fe(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(n,r){return n[r]=t[r],n},{})),t}function Ss(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(r){var i=r.name,o=r.value;return Hr(n,i,o,t)}),n}return null}function Tn(e){return e.alias?e.alias.value:e.name.value}function Fl(e,t,n){for(var r,i=0,o=t.selections;i0}var fp={kind:P.FIELD,name:{kind:P.NAME,value:"__typename"}};function rm(e,t){return!e||e.selectionSet.selections.every(function(n){return n.kind===P.FRAGMENT_SPREAD&&rm(t[n.name.value],t)})}function SS(e){return rm(Eo(e)||gS(e),gs(ws(e)))?null:e}function wS(e){var t=new Map,n=new Map;return e.forEach(function(r){r&&(r.name?t.set(r.name,r):r.test&&n.set(r.test,r))}),function(r){var i=t.get(r.name.value);return!i&&n.size&&n.forEach(function(o,a){a(r)&&(i=o)}),i}}function dp(e){var t=new Map;return function(r){r===void 0&&(r=e);var i=t.get(r);return i||t.set(r,i={variables:new Set,fragmentSpreads:new Set}),i}}function im(e,t){go(t);for(var n=dp(""),r=dp(""),i=function(p){for(var h=0,y=void 0;h=0;--a)t.definitions[a].kind===P.OPERATION_DEFINITION&&++o;var s=wS(e),u=function(p){return mt(p)&&p.map(s).some(function(h){return h&&h.remove})},l=new Map,c=!1,f={enter:function(p){if(u(p.directives))return c=!0,null}},d=Xt(t,{Field:f,InlineFragment:f,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(p,h,y,E,b){var _=i(b);_&&_.variables.add(p.name.value)}},FragmentSpread:{enter:function(p,h,y,E,b){if(u(p.directives))return c=!0,null;var _=i(b);_&&_.fragmentSpreads.add(p.name.value)}},FragmentDefinition:{enter:function(p,h,y,E){l.set(JSON.stringify(E),p)},leave:function(p,h,y,E){var b=l.get(JSON.stringify(E));if(p===b)return p;if(o>0&&p.selectionSet.selections.every(function(_){return _.kind===P.FIELD&&_.name.value==="__typename"}))return r(p.name.value).removed=!0,c=!0,null}},Directive:{leave:function(p){if(s(p))return c=!0,null}}});if(!c)return t;var v=function(p){return p.transitiveVars||(p.transitiveVars=new Set(p.variables),p.removed||p.fragmentSpreads.forEach(function(h){v(r(h)).transitiveVars.forEach(function(y){p.transitiveVars.add(y)})})),p},g=new Set;d.definitions.forEach(function(p){p.kind===P.OPERATION_DEFINITION?v(n(p.name&&p.name.value)).fragmentSpreads.forEach(function(h){g.add(h)}):p.kind===P.FRAGMENT_DEFINITION&&o===0&&!r(p.name.value).removed&&g.add(p.name.value)}),g.forEach(function(p){v(r(p)).fragmentSpreads.forEach(function(h){g.add(h)})});var m=function(p){return!!(!g.has(p)||r(p).removed)},S={enter:function(p){if(m(p.name.value))return null}};return SS(Xt(d,{FragmentSpread:S,FragmentDefinition:S,OperationDefinition:{leave:function(p){if(p.variableDefinitions){var h=v(n(p.name&&p.name.value)).transitiveVars;if(h.size1)for(var r=new xn,i=1;i=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TS(e,t){if(e){if(typeof e=="string")return hp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hp(e,t)}}function hp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,s=!1,u=arguments[1],l=u;return new o(function(c){return i.subscribe({next:function(f){var d=!s;if(s=!0,!d||a)try{l=r(l,f)}catch(v){return c.error(v)}else l=f},error:function(f){c.error(f)},complete:function(){if(!s&&!a)return c.error(new TypeError("Cannot reduce an empty sequence"));c.next(l),c.complete()}})})},t.concat=function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a=0&&s.splice(d,1),l()}});s.push(f)},error:function(c){a.error(c)},complete:function(){l()}});function l(){u.closed&&s.length===0&&a.complete()}return function(){s.forEach(function(c){return c.unsubscribe()}),u.unsubscribe()}})},t[Bl]=function(){return this},e.from=function(r){var i=typeof this=="function"?this:e;if(r==null)throw new TypeError(r+" is not an object");var o=Va(r,Bl);if(o){var a=o.call(r);if(Object(a)!==a)throw new TypeError(a+" is not an object");return xS(a)&&a.constructor===i?a:new i(function(s){return a.subscribe(s)})}if(Sf("iterator")&&(o=Va(r,CS),o))return new i(function(s){fa(function(){if(!s.closed){for(var u=bS(o.call(r)),l;!(l=u()).done;){var c=l.value;if(s.next(c),s.closed)return}s.complete()}})});if(Array.isArray(r))return new i(function(s){fa(function(){if(!s.closed){for(var u=0;u=0;--s){var u=a[s],l=!isNaN(+u),c=l?[]:{};c[u]=o,o=c}n=r.merge(n,o)}),n}function da(e){var t=$l(e);return mt(t)}function $l(e){var t=mt(e.errors)?e.errors.slice(0):[];return Pr(e)&&mt(e.incremental)&&e.incremental.forEach(function(n){n.errors&&t.push.apply(t,n.errors)}),t}function Jn(){for(var e=[],t=0;t-1;){if(p=void 0,T=[u.slice(0,S),u.slice(S+s.length)],p=T[0],u=T[1],h=p.indexOf(`\r \r `),y=rw(p.slice(0,h)),E=y["content-type"],E&&E.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(b=p.slice(h),b){if(_=dm(e,b),Object.keys(_).length>1||"data"in _||"incremental"in _||"errors"in _||"payload"in _)jS(_)?(O={},"payload"in _&&(O=w({},_.payload)),"errors"in _&&(O=w(w({},O),{extensions:w(w({},"extensions"in O?O.extensions:null),($={},$[_f]=_.errors,$))})),t(O)):t(_);else if(Object.keys(_).length===1&&"hasNext"in _&&!_.hasNext)return[2]}S=u.indexOf(s)}return[3,1];case 3:return[2]}})})}function rw(e){var t={};return e.split(` `).forEach(function(n){var r=n.indexOf(":");if(r>-1){var i=n.slice(0,r).trim().toLowerCase(),o=n.slice(r+1).trim();t[i]=o}}),t}function dm(e,t){if(e.status>=300){var n=function(){try{return JSON.parse(t)}catch{return t}};Ql(e,n(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(i){var r=i;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function iw(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function ow(e){return function(t){return t.text().then(function(n){return dm(t,n)}).then(function(n){return t.status>=300&&Ql(t,n,"Response not successful: Received status code ".concat(t.status)),!Array.isArray(n)&&!wp.call(n,"data")&&!wp.call(n,"errors")&&Ql(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(r){return r.operationName}):e.operationName,"'.")),n})}}var Kl=function(e,t){var n;try{n=JSON.stringify(e)}catch(i){var r=He(37,t,i.message);throw r.parseError=i,r}return n},aw={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},sw={accept:"*/*","content-type":"application/json"},uw={method:"POST"},lw={http:aw,headers:sw,options:uw},cw=function(e,t){return t(e)};function fw(e,t){for(var n=[],r=2;r"u")throw He(35)},hw=function(e,t){var n=e.getContext(),r=n.uri;return r||(typeof t=="function"?t(e):t||"/graphql")};function vw(e,t){var n=[],r=function(f,d){n.push("".concat(f,"=").concat(encodeURIComponent(d)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=Kl(t.variables,"Variables map")}catch(f){return{parseError:f}}r("variables",i)}if(t.extensions){var o=void 0;try{o=Kl(t.extensions,"Extensions map")}catch(f){return{parseError:f}}r("extensions",o)}var a="",s=e,u=e.indexOf("#");u!==-1&&(a=e.substr(u),s=e.substr(0,u));var l=s.indexOf("?")===-1?"?":"&",c=s+l+n.join("&")+a;return{newURI:c}}var _p=kt(function(){return fetch}),yw=function(e){e===void 0&&(e={});var t=e.uri,n=t===void 0?"/graphql":t,r=e.fetch,i=e.print,o=i===void 0?cw:i,a=e.includeExtensions,s=e.preserveHeaderCase,u=e.useGETForQueries,l=e.includeUnusedVariables,c=l===void 0?!1:l,f=jt(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&pw(r||_p);var d={http:{includeExtensions:a,preserveHeaderCase:s},options:f.fetchOptions,credentials:f.credentials,headers:f.headers};return new wo(function(v){var g=hw(v,n),m=v.getContext(),S={};if(m.clientAwareness){var p=m.clientAwareness,h=p.name,y=p.version;h&&(S["apollographql-client-name"]=h),y&&(S["apollographql-client-version"]=y)}var E=w(w({},S),m.headers),b={http:m.http,options:m.fetchOptions,credentials:m.credentials,headers:E};if(to(["client"],v.query)){var _=om(v.query);if(!_)return bu(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`."));v.query=_}var O=fw(v,o,lw,d,b),T=O.options,$=O.body;$.variables&&!c&&($.variables=$S($.variables,v.query));var j;!T.signal&&typeof AbortController<"u"&&(j=new AbortController,T.signal=j.signal);var G=function(I){return I.kind==="OperationDefinition"&&I.operation==="mutation"},ke=function(I){return I.kind==="OperationDefinition"&&I.operation==="subscription"},gt=ke(So(v.query)),N=to(["defer"],v.query);if(u&&!v.query.definitions.some(G)&&(T.method="GET"),N||gt){T.headers=T.headers||{};var k="multipart/mixed;";gt&&N&&globalThis.__DEV__!==!1&&U.warn(36),gt?k+="boundary=graphql;subscriptionSpec=1.0,application/json":N&&(k+="deferSpec=20220824,application/json"),T.headers.accept=k}if(T.method==="GET"){var B=vw(g,$),re=B.newURI,D=B.parseError;if(D)return bu(D);g=re}else try{T.body=Kl($,"Payload")}catch(I){return bu(I)}return new se(function(I){var F=r||kt(function(){return fetch})||_p,Q=I.next.bind(I);return F(g,T).then(function(z){var H;v.setContext({response:z});var Z=(H=z.headers)===null||H===void 0?void 0:H.get("content-type");return Z!==null&&/^multipart\/mixed/i.test(Z)?nw(z,Q):ow(v)(z).then(Q)}).then(function(){j=void 0,I.complete()}).catch(function(z){j=void 0,iw(z,I)}),function(){j&&j.abort()}})})},mw=function(e){en(t,e);function t(n){n===void 0&&(n={});var r=e.call(this,yw(n).request)||this;return r.options=n,r}return t}(wo);const{toString:Op,hasOwnProperty:gw}=Object.prototype,kp=Function.prototype.toString,Hl=new Map;function ie(e,t){try{return Wl(e,t)}finally{Hl.clear()}}function Wl(e,t){if(e===t)return!0;const n=Op.call(e),r=Op.call(t);if(n!==r)return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(Tp(e,t))return!0;const i=bp(e),o=bp(t),a=i.length;if(a!==o.length)return!1;for(let s=0;s=0&&e.indexOf(t,n)===n}function Tp(e,t){let n=Hl.get(e);if(n){if(n.has(t))return!0}else Hl.set(e,n=new Set);return n.add(t),!1}function _w(){}class Ow{constructor(t=1/0,n=_w){this.max=t,this.dispose=n,this.map=new Map,this.newest=null,this.oldest=null}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{older:r,newer:i}=n;i&&(i.older=r),r&&(r.newer=i),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=i)}return n}set(t,n){let r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(t,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(t){const n=this.map.get(t);return n?(n===this.newest&&(this.newest=n.older),n===this.oldest&&(this.oldest=n.newer),n.newer&&(n.newer.older=n.older),n.older&&(n.older.newer=n.newer),this.map.delete(t),this.dispose(n.value,t),!0):!1}}let Re=null;const Cp={};let kw=1;const bw=()=>class{constructor(){this.id=["slot",kw++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=Re;t;t=t.parent)if(this.id in t.slots){const n=t.slots[this.id];if(n===Cp)break;return t!==Re&&(Re.slots[this.id]=n),!0}return Re&&(Re.slots[this.id]=Cp),!1}getValue(){if(this.hasValue())return Re.slots[this.id]}withValue(t,n,r,i){const o={__proto__:null,[this.id]:t},a=Re;Re={parent:a,slots:o};try{return n.apply(i,r)}finally{Re=a}}static bind(t){const n=Re;return function(){const r=Re;try{return Re=n,t.apply(this,arguments)}finally{Re=r}}}static noContext(t,n,r){if(Re){const i=Re;try{return Re=null,t.apply(r,n)}finally{Re=i}}else return t.apply(r,n)}};function xp(e){try{return e()}catch{}}const Tu="@wry/context:Slot",Tw=xp(()=>globalThis)||xp(()=>global)||Object.create(null),Np=Tw,pm=Np[Tu]||Array[Tu]||function(e){try{Object.defineProperty(Np,Tu,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(bw()),_s=new pm,{hasOwnProperty:Cw}=Object.prototype,Of=Array.from||function(e){const t=[];return e.forEach(n=>t.push(n)),t};function Ka(e){const{unsubscribe:t}=e;typeof t=="function"&&(e.unsubscribe=void 0,t())}const ro=[],xw=100;function qr(e,t){if(!e)throw new Error(t||"assertion failure")}function Nw(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function hm(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function Dw(e){return e.slice(0)}class Os{constructor(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Os.count}peek(){if(this.value.length===1&&!Nn(this))return Dp(this),this.value[0]}recompute(t){return qr(!this.recomputing,"already recomputing"),Dp(this),Nn(this)?Iw(this,t):hm(this.value)}setDirty(){this.dirty||(this.dirty=!0,this.value.length=0,vm(this),Ka(this))}dispose(){this.setDirty(),Sm(this),kf(this,(t,n)=>{t.setDirty(),wm(t,this)})}forget(){this.dispose()}dependOn(t){t.add(this),this.deps||(this.deps=ro.pop()||new Set),this.deps.add(t)}forgetDeps(){this.deps&&(Of(this.deps).forEach(t=>t.delete(this)),this.deps.clear(),ro.push(this.deps),this.deps=null)}}Os.count=0;function Dp(e){const t=_s.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Nn(e)?mm(t,e):gm(t,e),t}function Iw(e,t){return Sm(e),_s.withValue(e,Lw,[e,t]),Pw(e,t)&&Rw(e),hm(e.value)}function Lw(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(n){e.value[1]=n}e.recomputing=!1}function Nn(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function Rw(e){e.dirty=!1,!Nn(e)&&ym(e)}function vm(e){kf(e,mm)}function ym(e){kf(e,gm)}function kf(e,t){const n=e.parents.size;if(n){const r=Of(e.parents);for(let i=0;i0&&e.childValues.forEach((t,n)=>{wm(e,n)}),e.forgetDeps(),qr(e.dirtyChildren===null)}function wm(e,t){t.parents.delete(e),e.childValues.delete(t),Em(e,t)}function Pw(e,t){if(typeof e.subscribe=="function")try{Ka(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}const Aw={setDirty:!0,dispose:!0,forget:!0};function _m(e){const t=new Map,n=e&&e.subscribe;function r(i){const o=_s.getValue();if(o){let a=t.get(i);a||t.set(i,a=new Set),o.dependOn(a),typeof n=="function"&&(Ka(a),a.unsubscribe=n(i))}}return r.dirty=function(o,a){const s=t.get(o);if(s){const u=a&&Cw.call(Aw,a)?a:"setDirty";Of(s).forEach(l=>l[u]()),t.delete(o),Ka(s)}},r}let Ip;function Mw(...e){return(Ip||(Ip=new Pn(typeof WeakMap=="function"))).lookupArray(e)}const Cu=new Set;function Ha(e,{max:t=Math.pow(2,16),makeCacheKey:n=Mw,keyArgs:r,subscribe:i}=Object.create(null)){const o=new Ow(t,c=>c.dispose()),a=function(){const c=n.apply(null,r?r.apply(null,arguments):arguments);if(c===void 0)return e.apply(null,arguments);let f=o.get(c);f||(o.set(c,f=new Os(e)),f.subscribe=i,f.forget=()=>o.delete(c));const d=f.recompute(Array.prototype.slice.call(arguments));return o.set(c,f),Cu.add(o),_s.hasValue()||(Cu.forEach(v=>v.clean()),Cu.clear()),d};Object.defineProperty(a,"size",{get(){return o.map.size},configurable:!1,enumerable:!1}),Object.freeze(a.options={max:t,makeCacheKey:n,keyArgs:r,subscribe:i});function s(c){const f=o.get(c);f&&f.setDirty()}a.dirtyKey=s,a.dirty=function(){s(n.apply(null,arguments))};function u(c){const f=o.get(c);if(f)return f.peek()}a.peekKey=u,a.peek=function(){return u(n.apply(null,arguments))};function l(c){return o.delete(c)}return a.forgetKey=l,a.forget=function(){return l(n.apply(null,arguments))},a.makeCacheKey=n,a.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(a)}var Fw=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=Ha(rS)}return e.prototype.batch=function(t){var n=this,r=typeof t.optimistic=="string"?t.optimistic:t.optimistic===!1?null:void 0,i;return this.performTransaction(function(){return i=t.update(n)},r),i},e.prototype.recordOptimisticTransaction=function(t,n){this.performTransaction(t,n)},e.prototype.transformDocument=function(t){return t},e.prototype.transformForLink=function(t){return t},e.prototype.identify=function(t){},e.prototype.gc=function(){return[]},e.prototype.modify=function(t){return!1},e.prototype.readQuery=function(t,n){return n===void 0&&(n=!!t.optimistic),this.read(w(w({},t),{rootId:t.id||"ROOT_QUERY",optimistic:n}))},e.prototype.readFragment=function(t,n){return n===void 0&&(n=!!t.optimistic),this.read(w(w({},t),{query:this.getFragmentDoc(t.fragment,t.fragmentName),rootId:t.id,optimistic:n}))},e.prototype.writeQuery=function(t){var n=t.id,r=t.data,i=jt(t,["id","data"]);return this.write(Object.assign(i,{dataId:n||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(t){var n=t.id,r=t.data,i=t.fragment,o=t.fragmentName,a=jt(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(i,o),dataId:n,result:r}))},e.prototype.updateQuery=function(t,n){return this.batch({update:function(r){var i=r.readQuery(t),o=n(i);return o==null?i:(r.writeQuery(w(w({},t),{data:o})),o)}})},e.prototype.updateFragment=function(t,n){return this.batch({update:function(r){var i=r.readFragment(t),o=n(i);return o==null?i:(r.writeFragment(w(w({},t),{data:o})),o)}})},e}(),Om=function(e){en(t,e);function t(n,r,i,o){var a,s=e.call(this,n)||this;if(s.message=n,s.path=r,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var u=s.path.length-1;u>=0;--u)s.missing=(a={},a[s.path[u]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return t}(Error),Ce=Object.prototype.hasOwnProperty;function vi(e){return e==null}function km(e,t){var n=e.__typename,r=e.id,i=e._id;if(typeof n=="string"&&(t&&(t.keyObject=vi(r)?vi(i)?void 0:{_id:i}:{id:r}),vi(r)&&!vi(i)&&(r=i),!vi(r)))return"".concat(n,":").concat(typeof r=="number"||typeof r=="string"?r:JSON.stringify(r))}var bm={dataIdFromObject:km,addTypename:!0,resultCaching:!0,canonizeResults:!1};function jw(e){return Jn(bm,e)}function Tm(e){var t=e.canonizeResults;return t===void 0?bm.canonizeResults:t}function Bw(e,t){return ne(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var Cm=/^[_a-z][_0-9a-z]*/i;function Dn(e){var t=e.match(Cm);return t?t[0]:e}function ql(e,t,n){return fe(t)?Ee(t)?t.every(function(r){return ql(e,r,n)}):e.selections.every(function(r){if(Cn(r)&&mo(r,n)){var i=Tn(r);return Ce.call(t,i)&&(!r.selectionSet||ql(r.selectionSet,t[i],n))}return!0}):!1}function br(e){return fe(e)&&!ne(e)&&!Ee(e)}function zw(){return new xn}function xm(e,t){var n=gs(ws(e));return{fragmentMap:n,lookupFragment:function(r){var i=n[r];return!i&&t&&(i=t.lookup(r)),i||null}}}var ha=Object.create(null),xu=function(){return ha},Lp=Object.create(null),io=function(){function e(t,n){var r=this;this.policies=t,this.group=n,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(i,o){return no(ne(i)?r.get(i.__ref,o):i&&i[o])},this.canRead=function(i){return ne(i)?r.has(i.__ref):typeof i=="object"},this.toReference=function(i,o){if(typeof i=="string")return Rr(i);if(ne(i))return i;var a=r.policies.identify(i)[0];if(a){var s=Rr(a);return o&&r.merge(a,i),s}}}return e.prototype.toObject=function(){return w({},this.data)},e.prototype.has=function(t){return this.lookup(t,!0)!==void 0},e.prototype.get=function(t,n){if(this.group.depend(t,n),Ce.call(this.data,t)){var r=this.data[t];if(r&&Ce.call(r,n))return r[n]}if(n==="__typename"&&Ce.call(this.policies.rootTypenamesById,t))return this.policies.rootTypenamesById[t];if(this instanceof nn)return this.parent.get(t,n)},e.prototype.lookup=function(t,n){if(n&&this.group.depend(t,"__exists"),Ce.call(this.data,t))return this.data[t];if(this instanceof nn)return this.parent.lookup(t,n);if(this.policies.rootTypenamesById[t])return Object.create(null)},e.prototype.merge=function(t,n){var r=this,i;ne(t)&&(t=t.__ref),ne(n)&&(n=n.__ref);var o=typeof t=="string"?this.lookup(i=t):t,a=typeof n=="string"?this.lookup(i=n):n;if(a){U(typeof i=="string",1);var s=new xn($w).merge(o,a);if(this.data[i]=s,s!==o&&(delete this.refs[i],this.group.caching)){var u=Object.create(null);o||(u.__exists=1),Object.keys(a).forEach(function(l){if(!o||o[l]!==s[l]){u[l]=1;var c=Dn(l);c!==l&&!r.policies.hasKeyArgs(s.__typename,c)&&(u[c]=1),s[l]===void 0&&!(r instanceof nn)&&delete s[l]}}),u.__typename&&!(o&&o.__typename)&&this.policies.rootTypenamesById[i]===s.__typename&&delete u.__typename,Object.keys(u).forEach(function(l){return r.group.dirty(i,l)})}}},e.prototype.modify=function(t,n){var r=this,i=this.lookup(t);if(i){var o=Object.create(null),a=!1,s=!0,u={DELETE:ha,INVALIDATE:Lp,isReference:ne,toReference:this.toReference,canRead:this.canRead,readField:function(l,c){return r.policies.readField(typeof l=="string"?{fieldName:l,from:c||Rr(t)}:l,{store:r})}};if(Object.keys(i).forEach(function(l){var c=Dn(l),f=i[l];if(f!==void 0){var d=typeof n=="function"?n:n[l]||n[c];if(d){var v=d===xu?ha:d(no(f),w(w({},u),{fieldName:c,storeFieldName:l,storage:r.getStorage(t,l)}));v===Lp?r.group.dirty(t,l):(v===ha&&(v=void 0),v!==f&&(o[l]=v,a=!0,f=v))}f!==void 0&&(s=!1)}}),a)return this.merge(t,o),s&&(this instanceof nn?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1},e.prototype.delete=function(t,n,r){var i,o=this.lookup(t);if(o){var a=this.getFieldValue(o,"__typename"),s=n&&r?this.policies.getStoreFieldName({typename:a,fieldName:n,args:r}):n;return this.modify(t,s?(i={},i[s]=xu,i):xu)}return!1},e.prototype.evict=function(t,n){var r=!1;return t.id&&(Ce.call(this.data,t.id)&&(r=this.delete(t.id,t.fieldName,t.args)),this instanceof nn&&this!==n&&(r=this.parent.evict(t,n)||r),(t.fieldName||r)&&this.group.dirty(t.id,t.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var t=this,n=this.toObject(),r=[];return this.getRootIdSet().forEach(function(i){Ce.call(t.policies.rootTypenamesById,i)||r.push(i)}),r.length&&(n.__META={extraRootIds:r.sort()}),n},e.prototype.replace=function(t){var n=this;if(Object.keys(this.data).forEach(function(o){t&&Ce.call(t,o)||n.delete(o)}),t){var r=t.__META,i=jt(t,["__META"]);Object.keys(i).forEach(function(o){n.merge(o,i[o])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},e.prototype.release=function(t){if(this.rootIds[t]>0){var n=--this.rootIds[t];return n||delete this.rootIds[t],n}return 0},e.prototype.getRootIdSet=function(t){return t===void 0&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof nn?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},e.prototype.gc=function(){var t=this,n=this.getRootIdSet(),r=this.toObject();n.forEach(function(a){Ce.call(r,a)&&(Object.keys(t.findChildRefIds(a)).forEach(n.add,n),delete r[a])});var i=Object.keys(r);if(i.length){for(var o=this;o instanceof nn;)o=o.parent;i.forEach(function(a){return o.delete(a)})}return i},e.prototype.findChildRefIds=function(t){if(!Ce.call(this.refs,t)){var n=this.refs[t]=Object.create(null),r=this.data[t];if(!r)return n;var i=new Set([r]);i.forEach(function(o){ne(o)&&(n[o.__ref]=!0),fe(o)&&Object.keys(o).forEach(function(a){var s=o[a];fe(s)&&i.add(s)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),Nm=function(){function e(t,n){n===void 0&&(n=null),this.caching=t,this.parent=n,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?_m():null,this.keyMaker=new Pn(Bt)},e.prototype.depend=function(t,n){if(this.d){this.d(Nu(t,n));var r=Dn(n);r!==n&&this.d(Nu(t,r)),this.parent&&this.parent.depend(t,n)}},e.prototype.dirty=function(t,n){this.d&&this.d.dirty(Nu(t,n),n==="__exists"?"forget":"setDirty")},e}();function Nu(e,t){return t+"#"+e}function Rp(e,t){Pi(e)&&e.group.depend(t,"__exists")}(function(e){var t=function(n){en(r,n);function r(i){var o=i.policies,a=i.resultCaching,s=a===void 0?!0:a,u=i.seed,l=n.call(this,o,new Nm(s))||this;return l.stump=new Uw(l),l.storageTrie=new Pn(Bt),u&&l.replace(u),l}return r.prototype.addLayer=function(i,o){return this.stump.addLayer(i,o)},r.prototype.removeLayer=function(){return this},r.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},r}(e);e.Root=t})(io||(io={}));var nn=function(e){en(t,e);function t(n,r,i,o){var a=e.call(this,r.policies,o)||this;return a.id=n,a.parent=r,a.replay=i,a.group=o,i(a),a}return t.prototype.addLayer=function(n,r){return new t(n,this,r,this.group)},t.prototype.removeLayer=function(n){var r=this,i=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(o){var a=r.data[o],s=i.lookup(o);s?a?a!==s&&Object.keys(a).forEach(function(u){ie(a[u],s[u])||r.group.dirty(o,u)}):(r.group.dirty(o,"__exists"),Object.keys(s).forEach(function(u){r.group.dirty(o,u)})):r.delete(o)}),i):i===this.parent?this:i.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return w(w({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(n){var r=this.parent.findChildRefIds(n);return Ce.call(this.data,n)?w(w({},r),e.prototype.findChildRefIds.call(this,n)):r},t.prototype.getStorage=function(){for(var n=this.parent;n.parent;)n=n.parent;return n.getStorage.apply(n,arguments)},t}(io),Uw=function(e){en(t,e);function t(n){return e.call(this,"EntityStore.Stump",n,function(){},new Nm(n.group.caching,n.group))||this}return t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(nn);function $w(e,t,n){var r=e[n],i=t[n];return ie(r,i)?r:i}function Pi(e){return!!(e instanceof io&&e.group.caching)}function Qw(e){return fe(e)?Ee(e)?e.slice(0):w({__proto__:Object.getPrototypeOf(e)},e):e}var Gl=function(){function e(){this.known=new(Zy?WeakSet:Set),this.pool=new Pn(Bt),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(t){return fe(t)&&this.known.has(t)},e.prototype.pass=function(t){if(fe(t)){var n=Qw(t);return this.passes.set(n,t),n}return t},e.prototype.admit=function(t){var n=this;if(fe(t)){var r=this.passes.get(t);if(r)return r;var i=Object.getPrototypeOf(t);switch(i){case Array.prototype:{if(this.known.has(t))return t;var o=t.map(this.admit,this),a=this.pool.lookupArray(o);return a.array||(this.known.add(a.array=o),globalThis.__DEV__!==!1&&Object.freeze(o)),a.array}case null:case Object.prototype:{if(this.known.has(t))return t;var s=Object.getPrototypeOf(t),u=[s],l=this.sortedKeys(t);u.push(l.json);var c=u.length;l.sorted.forEach(function(v){u.push(n.admit(t[v]))});var a=this.pool.lookupArray(u);if(!a.object){var f=a.object=Object.create(s);this.known.add(f),l.sorted.forEach(function(v,g){f[v]=u[c+g]}),globalThis.__DEV__!==!1&&Object.freeze(f)}return a.object}}}return t},e.prototype.sortedKeys=function(t){var n=Object.keys(t),r=this.pool.lookupArray(n);if(!r.keys){n.sort();var i=JSON.stringify(n);(r.keys=this.keysByJSON.get(i))||this.keysByJSON.set(i,r.keys={sorted:n,json:i})}return r.keys},e}(),Kn=Object.assign(function(e){if(fe(e)){Yl===void 0&&Pp();var t=Yl.admit(e),n=Xl.get(t);return n===void 0&&Xl.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)},{reset:Pp}),Yl,Xl;function Pp(){Yl=new Gl,Xl=new(Bt?WeakMap:Map)}function Ap(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Vw=function(){function e(t){var n=this;this.knownResults=new(Bt?WeakMap:Map),this.config=Jn(t,{addTypename:t.addTypename!==!1,canonizeResults:Tm(t)}),this.canon=t.canon||new Gl,this.executeSelectionSet=Ha(function(r){var i,o=r.context.canonizeResults,a=Ap(r);a[3]=!o;var s=(i=n.executeSelectionSet).peek.apply(i,a);return s?o?w(w({},s),{result:n.canon.admit(s.result)}):s:(Rp(r.context.store,r.enclosingRef.__ref),n.execSelectionSetImpl(r))},{max:this.config.resultCacheMaxSize,keyArgs:Ap,makeCacheKey:function(r,i,o,a){if(Pi(o.store))return o.store.makeCacheKey(r,ne(i)?i.__ref:i,o.varString,a)}}),this.executeSubSelectedArray=Ha(function(r){return Rp(r.context.store,r.enclosingRef.__ref),n.execSubSelectedArrayImpl(r)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(r){var i=r.field,o=r.array,a=r.context;if(Pi(a.store))return a.store.makeCacheKey(i,o,a.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Gl},e.prototype.diffQueryAgainstStore=function(t){var n=t.store,r=t.query,i=t.rootId,o=i===void 0?"ROOT_QUERY":i,a=t.variables,s=t.returnPartialData,u=s===void 0?!0:s,l=t.canonizeResults,c=l===void 0?this.config.canonizeResults:l,f=this.config.cache.policies;a=w(w({},vf(em(r))),a);var d=Rr(o),v=this.executeSelectionSet({selectionSet:So(r).selectionSet,objectOrReference:d,enclosingRef:d,context:w({store:n,query:r,policies:f,variables:a,varString:Kn(a),canonizeResults:c},xm(r,this.config.fragments))}),g;if(v.missing&&(g=[new Om(Kw(v.missing),v.missing,r,a)],!u))throw g[0];return{result:v.result,complete:!g,missing:g}},e.prototype.isFresh=function(t,n,r,i){if(Pi(i.store)&&this.knownResults.get(t)===r){var o=this.executeSelectionSet.peek(r,n,i,this.canon.isKnown(t));if(o&&t===o.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(t){var n=this,r=t.selectionSet,i=t.objectOrReference,o=t.enclosingRef,a=t.context;if(ne(i)&&!a.policies.rootTypenamesById[i.__ref]&&!a.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var s=a.variables,u=a.policies,l=a.store,c=l.getFieldValue(i,"__typename"),f=[],d,v=new xn;this.config.addTypename&&typeof c=="string"&&!u.rootIdsByTypename[c]&&f.push({__typename:c});function g(y,E){var b;return y.missing&&(d=v.merge(d,(b={},b[E]=y.missing,b))),y.result}var m=new Set(r.selections);m.forEach(function(y){var E,b;if(mo(y,s))if(Cn(y)){var _=u.readField({fieldName:y.name.value,field:y,variables:a.variables,from:i},a),O=Tn(y);_===void 0?yf.added(y)||(d=v.merge(d,(E={},E[O]="Can't find field '".concat(y.name.value,"' on ").concat(ne(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),E))):Ee(_)?_=g(n.executeSubSelectedArray({field:y,array:_,enclosingRef:o,context:a}),O):y.selectionSet?_!=null&&(_=g(n.executeSelectionSet({selectionSet:y.selectionSet,objectOrReference:_,enclosingRef:ne(_)?_:o,context:a}),O)):a.canonizeResults&&(_=n.canon.pass(_)),_!==void 0&&f.push((b={},b[O]=_,b))}else{var T=Es(y,a.lookupFragment);if(!T&&y.kind===P.FRAGMENT_SPREAD)throw He(7,y.name.value);T&&u.fragmentMatches(T,c)&&T.selectionSet.selections.forEach(m.add,m)}});var S=mf(f),p={result:S,missing:d},h=a.canonizeResults?this.canon.admit(p):no(p);return h.result&&this.knownResults.set(h.result,r),h},e.prototype.execSubSelectedArrayImpl=function(t){var n=this,r=t.field,i=t.array,o=t.enclosingRef,a=t.context,s,u=new xn;function l(c,f){var d;return c.missing&&(s=u.merge(s,(d={},d[f]=c.missing,d))),c.result}return r.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map(function(c,f){return c===null?null:Ee(c)?l(n.executeSubSelectedArray({field:r,array:c,enclosingRef:o,context:a}),f):r.selectionSet?l(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:c,enclosingRef:ne(c)?c:o,context:a}),f):(globalThis.__DEV__!==!1&&Hw(a.store,r,c),c)}),{result:a.canonizeResults?this.canon.admit(i):i,missing:s}},e}();function Kw(e){try{JSON.stringify(e,function(t,n){if(typeof n=="string")throw n;return n})}catch(t){return t}}function Hw(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(i){fe(i)&&(U(!ne(i),8,Bw(e,i),t.name.value),Object.values(i).forEach(r.add,r))})}}var bf=new pm,Mp=new WeakMap;function Ai(e){var t=Mp.get(e);return t||Mp.set(e,t={vars:new Set,dep:_m()}),t}function Fp(e){Ai(e).vars.forEach(function(t){return t.forgetCache(e)})}function Ww(e){Ai(e).vars.forEach(function(t){return t.attachCache(e)})}function qw(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(u){Ai(u).dep.dirty(r),Gw(u)});var a=Array.from(n);n.clear(),a.forEach(function(u){return u(e)})}}else{var s=bf.getValue();s&&(i(s),Ai(s).dep(r))}return e};r.onNextChange=function(o){return n.add(o),function(){n.delete(o)}};var i=r.attachCache=function(o){return t.add(o),Ai(o).vars.add(r),r};return r.forgetCache=function(o){return t.delete(o)},r}function Gw(e){e.broadcastWatches&&e.broadcastWatches()}var jp=Object.create(null);function Tf(e){var t=JSON.stringify(e);return jp[t]||(jp[t]=Object.create(null))}function Bp(e){var t=Tf(e);return t.keyFieldsFn||(t.keyFieldsFn=function(n,r){var i=function(a,s){return r.readField(s,a)},o=r.keyObject=Cf(e,function(a){var s=Ar(r.storeObject,a,i);return s===void 0&&n!==r.storeObject&&Ce.call(n,a[0])&&(s=Ar(n,a,Im)),U(s!==void 0,2,a.join("."),n),s});return"".concat(r.typename,":").concat(JSON.stringify(o))})}function zp(e){var t=Tf(e);return t.keyArgsFn||(t.keyArgsFn=function(n,r){var i=r.field,o=r.variables,a=r.fieldName,s=Cf(e,function(l){var c=l[0],f=c.charAt(0);if(f==="@"){if(i&&mt(i.directives)){var d=c.slice(1),v=i.directives.find(function(p){return p.name.value===d}),g=v&&Ss(v,o);return g&&Ar(g,l.slice(1))}return}if(f==="$"){var m=c.slice(1);if(o&&Ce.call(o,m)){var S=l.slice(0);return S[0]=m,Ar(o,S)}return}if(n)return Ar(n,l)}),u=JSON.stringify(s);return(n||u!=="{}")&&(a+=":"+u),a})}function Cf(e,t){var n=new xn;return Dm(e).reduce(function(r,i){var o,a=t(i);if(a!==void 0){for(var s=i.length-1;s>=0;--s)a=(o={},o[i[s]]=a,o);r=n.merge(r,a)}return r},Object.create(null))}function Dm(e){var t=Tf(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(i,o){Ee(i)?(Dm(i).forEach(function(a){return n.push(r.concat(a))}),r.length=0):(r.push(i),Ee(e[o+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function Im(e,t){return e[t]}function Ar(e,t,n){return n=n||Im,Lm(t.reduce(function r(i,o){return Ee(i)?i.map(function(a){return r(a,o)}):i&&n(i,o)},e))}function Lm(e){return fe(e)?Ee(e)?e.map(Lm):Cf(Object.keys(e).sort(),function(t){return Ar(e,t)}):e}hf.setStringify(Kn);function Jl(e){return e.args!==void 0?e.args:e.field?Ss(e.field,e.variables):null}var Yw=function(){},Up=function(e,t){return t.fieldName},$p=function(e,t,n){var r=n.mergeObjects;return r(e,t)},Qp=function(e,t){return t},Xw=function(){function e(t){this.config=t,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=w({dataIdFromObject:km},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return e.prototype.identify=function(t,n){var r,i=this,o=n&&(n.typename||((r=n.storeObject)===null||r===void 0?void 0:r.__typename))||t.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a=n&&n.storeObject||t,s=w(w({},n),{typename:o,storeObject:a,readField:n&&n.readField||function(){var d=xf(arguments,a);return i.readField(d,{store:i.cache.data,variables:d.variables})}}),u,l=o&&this.getTypePolicy(o),c=l&&l.keyFn||this.config.dataIdFromObject;c;){var f=c(w(w({},t),a),s);if(Ee(f))c=Bp(f);else{u=f;break}}return u=u?String(u):void 0,s.keyObject?[u,s.keyObject]:[u]},e.prototype.addTypePolicies=function(t){var n=this;Object.keys(t).forEach(function(r){var i=t[r],o=i.queryType,a=i.mutationType,s=i.subscriptionType,u=jt(i,["queryType","mutationType","subscriptionType"]);o&&n.setRootTypename("Query",r),a&&n.setRootTypename("Mutation",r),s&&n.setRootTypename("Subscription",r),Ce.call(n.toBeAdded,r)?n.toBeAdded[r].push(u):n.toBeAdded[r]=[u]})},e.prototype.updateTypePolicy=function(t,n){var r=this,i=this.getTypePolicy(t),o=n.keyFields,a=n.fields;function s(u,l){u.merge=typeof l=="function"?l:l===!0?$p:l===!1?Qp:u.merge}s(i,n.merge),i.keyFn=o===!1?Yw:Ee(o)?Bp(o):typeof o=="function"?o:i.keyFn,a&&Object.keys(a).forEach(function(u){var l=r.getFieldPolicy(t,u,!0),c=a[u];if(typeof c=="function")l.read=c;else{var f=c.keyArgs,d=c.read,v=c.merge;l.keyFn=f===!1?Up:Ee(f)?zp(f):typeof f=="function"?f:l.keyFn,typeof d=="function"&&(l.read=d),s(l,v)}l.read&&l.merge&&(l.keyFn=l.keyFn||Up)})},e.prototype.setRootTypename=function(t,n){n===void 0&&(n=t);var r="ROOT_"+t.toUpperCase(),i=this.rootTypenamesById[r];n!==i&&(U(!i||i===t,3,t),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[n]=r,this.rootTypenamesById[r]=n)},e.prototype.addPossibleTypes=function(t){var n=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(r){n.getSupertypeSet(r,!0),t[r].forEach(function(i){n.getSupertypeSet(i,!0).add(r);var o=i.match(Cm);(!o||o[0]!==i)&&n.fuzzySubtypes.set(i,new RegExp(i))})})},e.prototype.getTypePolicy=function(t){var n=this;if(!Ce.call(this.typePolicies,t)){var r=this.typePolicies[t]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(t);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(t,!0),this.fuzzySubtypes.forEach(function(a,s){if(a.test(t)){var u=n.supertypeMap.get(s);u&&u.forEach(function(l){return i.add(l)})}})),i&&i.size&&i.forEach(function(a){var s=n.getTypePolicy(a),u=s.fields,l=jt(s,["fields"]);Object.assign(r,l),Object.assign(r.fields,u)})}var o=this.toBeAdded[t];return o&&o.length&&o.splice(0).forEach(function(a){n.updateTypePolicy(t,a)}),this.typePolicies[t]},e.prototype.getFieldPolicy=function(t,n,r){if(t){var i=this.getTypePolicy(t).fields;return i[n]||r&&(i[n]=Object.create(null))}},e.prototype.getSupertypeSet=function(t,n){var r=this.supertypeMap.get(t);return!r&&n&&this.supertypeMap.set(t,r=new Set),r},e.prototype.fragmentMatches=function(t,n,r,i){var o=this;if(!t.typeCondition)return!0;if(!n)return!1;var a=t.typeCondition.name.value;if(n===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var s=this.getSupertypeSet(n,!0),u=[s],l=function(g){var m=o.getSupertypeSet(g,!1);m&&m.size&&u.indexOf(m)<0&&u.push(m)},c=!!(r&&this.fuzzySubtypes.size),f=!1,d=0;d1?i:t}:(a=w({},r),Ce.call(a,"from")||(a.from=t)),globalThis.__DEV__!==!1&&a.from===void 0&&globalThis.__DEV__!==!1&&U.warn(5,$y(Array.from(e))),a.variables===void 0&&(a.variables=n),a}function Rm(e){return function(n,r){if(Ee(n)||Ee(r))throw He(6);if(fe(n)&&fe(r)){var i=e.getFieldValue(n,"__typename"),o=e.getFieldValue(r,"__typename"),a=i&&o&&i!==o;if(a)return r;if(ne(n)&&br(r))return e.merge(n.__ref,r),n;if(br(n)&&ne(r))return e.merge(n,r.__ref),r;if(br(n)&&br(r))return w(w({},n),r)}return r}}function Du(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:w(w({},e),{clientOnly:t,deferred:n})),i}var Jw=function(){function e(t,n,r){this.cache=t,this.reader=n,this.fragments=r}return e.prototype.writeToStore=function(t,n){var r=this,i=n.query,o=n.result,a=n.dataId,s=n.variables,u=n.overwrite,l=Eo(i),c=zw();s=w(w({},vf(l)),s);var f=w(w({store:t,written:Object.create(null),merge:function(v,g){return c.merge(v,g)},variables:s,varString:Kn(s)},xm(i,this.fragments)),{overwrite:!!u,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:o||Object.create(null),dataId:a,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:f});if(!ne(d))throw He(9,o);return f.incomingById.forEach(function(v,g){var m=v.storeObject,S=v.mergeTree,p=v.fieldNodeSet,h=Rr(g);if(S&&S.map.size){var y=r.applyMerges(S,h,m,f);if(ne(y))return;m=y}if(globalThis.__DEV__!==!1&&!f.overwrite){var E=Object.create(null);p.forEach(function(O){O.selectionSet&&(E[O.name.value]=!0)});var b=function(O){return E[Dn(O)]===!0},_=function(O){var T=S&&S.map.get(O);return!!(T&&T.info&&T.info.merge)};Object.keys(m).forEach(function(O){b(O)&&!_(O)&&Zw(h,m,O,f.store)})}t.merge(g,m)}),t.retain(d.__ref),d},e.prototype.processSelectionSet=function(t){var n=this,r=t.dataId,i=t.result,o=t.selectionSet,a=t.context,s=t.mergeTree,u=this.cache.policies,l=Object.create(null),c=r&&u.rootTypenamesById[r]||Fl(i,o,a.fragmentMap)||r&&a.store.get(r,"__typename");typeof c=="string"&&(l.__typename=c);var f=function(){var y=xf(arguments,l,a.variables);if(ne(y.from)){var E=a.incomingById.get(y.from.__ref);if(E){var b=u.readField(w(w({},y),{from:E.storeObject}),a);if(b!==void 0)return b}}return u.readField(y,a)},d=new Set;this.flattenFields(o,i,a,c).forEach(function(y,E){var b,_=Tn(E),O=i[_];if(d.add(E),O!==void 0){var T=u.getStoreFieldName({typename:c,fieldName:E.name.value,field:E,variables:y.variables}),$=Kp(s,T),j=n.processFieldValue(O,E,E.selectionSet?Du(y,!1,!1):y,$),G=void 0;E.selectionSet&&(ne(j)||br(j))&&(G=f("__typename",j));var ke=u.getMergeFunction(c,E.name.value,G);ke?$.info={field:E,typename:c,merge:ke}:Hp(s,T),l=y.merge(l,(b={},b[T]=j,b))}else globalThis.__DEV__!==!1&&!y.clientOnly&&!y.deferred&&!yf.added(E)&&!u.getReadFunction(c,E.name.value)&&globalThis.__DEV__!==!1&&U.error(10,Tn(E),i)});try{var v=u.identify(i,{typename:c,selectionSet:o,fragmentMap:a.fragmentMap,storeObject:l,readField:f}),g=v[0],m=v[1];r=r||g,m&&(l=a.merge(l,m))}catch(y){if(!r)throw y}if(typeof r=="string"){var S=Rr(r),p=a.written[r]||(a.written[r]=[]);if(p.indexOf(o)>=0||(p.push(o),this.reader&&this.reader.isFresh(i,S,o,a)))return S;var h=a.incomingById.get(r);return h?(h.storeObject=a.merge(h.storeObject,l),h.mergeTree=Zl(h.mergeTree,s),d.forEach(function(y){return h.fieldNodeSet.add(y)})):a.incomingById.set(r,{storeObject:l,mergeTree:Wa(s)?void 0:s,fieldNodeSet:d}),S}return l},e.prototype.processFieldValue=function(t,n,r,i){var o=this;return!n.selectionSet||t===null?globalThis.__DEV__!==!1?lm(t):t:Ee(t)?t.map(function(a,s){var u=o.processFieldValue(a,n,r,Kp(i,s));return Hp(i,s),u}):this.processSelectionSet({result:t,selectionSet:n.selectionSet,context:r,mergeTree:i})},e.prototype.flattenFields=function(t,n,r,i){i===void 0&&(i=Fl(n,t,r.fragmentMap));var o=new Map,a=this.cache.policies,s=new Pn(!1);return function u(l,c){var f=s.lookup(l,c.clientOnly,c.deferred);f.visited||(f.visited=!0,l.selections.forEach(function(d){if(mo(d,r.variables)){var v=c.clientOnly,g=c.deferred;if(!(v&&g)&&mt(d.directives)&&d.directives.forEach(function(p){var h=p.name.value;if(h==="client"&&(v=!0),h==="defer"){var y=Ss(p,r.variables);(!y||y.if!==!1)&&(g=!0)}}),Cn(d)){var m=o.get(d);m&&(v=v&&m.clientOnly,g=g&&m.deferred),o.set(d,Du(r,v,g))}else{var S=Es(d,r.lookupFragment);if(!S&&d.kind===P.FRAGMENT_SPREAD)throw He(11,d.name.value);S&&a.fragmentMatches(S,i,n,r.variables)&&u(S.selectionSet,Du(r,v,g))}}}))}(t,r),o},e.prototype.applyMerges=function(t,n,r,i,o){var a,s=this;if(t.map.size&&!ne(r)){var u=!Ee(r)&&(ne(n)||br(n))?n:void 0,l=r;u&&!o&&(o=[ne(u)?u.__ref:u]);var c,f=function(d,v){return Ee(d)?typeof v=="number"?d[v]:void 0:i.store.getFieldValue(d,String(v))};t.map.forEach(function(d,v){var g=f(u,v),m=f(l,v);if(m!==void 0){o&&o.push(v);var S=s.applyMerges(d,g,m,i,o);S!==m&&(c=c||new Map,c.set(v,S)),o&&U(o.pop()===v)}}),c&&(r=Ee(l)?l.slice(0):w({},l),c.forEach(function(d,v){r[v]=d}))}return t.info?this.cache.policies.runMergeFunction(n,r,t.info,i,o&&(a=i.store).getStorage.apply(a,o)):r},e}(),Pm=[];function Kp(e,t){var n=e.map;return n.has(t)||n.set(t,Pm.pop()||{map:new Map}),n.get(t)}function Zl(e,t){if(e===t||!t||Wa(t))return e;if(!e||Wa(e))return t;var n=e.info&&t.info?w(w({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i=r?new Map:e.map.size?e.map:t.map,o={info:n,map:i};if(r){var a=new Set(t.map.keys());e.map.forEach(function(s,u){o.map.set(u,Zl(s,t.map.get(u))),a.delete(u)}),a.forEach(function(s){o.map.set(s,Zl(t.map.get(s),e.map.get(s)))})}return o}function Wa(e){return!e||!(e.info||e.map.size)}function Hp(e,t){var n=e.map,r=n.get(t);r&&Wa(r)&&(Pm.push(r),n.delete(t))}var Wp=new Set;function Zw(e,t,n,r){var i=function(f){var d=r.getFieldValue(f,n);return typeof d=="object"&&d},o=i(e);if(o){var a=i(t);if(a&&!ne(o)&&!ie(o,a)&&!Object.keys(o).every(function(f){return r.getFieldValue(a,f)!==void 0})){var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),u=Dn(n),l="".concat(s,".").concat(u);if(!Wp.has(l)){Wp.add(l);var c=[];!Ee(o)&&!Ee(a)&&[o,a].forEach(function(f){var d=r.getFieldValue(f,"__typename");typeof d=="string"&&!c.includes(d)&&c.push(d)}),globalThis.__DEV__!==!1&&U.warn(12,u,s,c.length?"either ensure all objects of type "+c.join(" and ")+" have an ID or a custom merge function, or ":"",l,o,a)}}}}var e_=function(e){en(t,e);function t(n){n===void 0&&(n={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new tm(yf),r.assumeImmutableResults=!0,r.makeVar=qw,r.txCount=0,r.config=jw(n),r.addTypename=!!r.config.addTypename,r.policies=new Xw({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return t.prototype.init=function(){var n=this.data=new io.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()},t.prototype.resetResultCache=function(n){var r=this,i=this.storeReader,o=this.config.fragments;this.storeWriter=new Jw(this,this.storeReader=new Vw({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Tm(this.config),canon:n?void 0:i&&i.canon,fragments:o}),o),this.maybeBroadcastWatch=Ha(function(a,s){return r.broadcastWatch(a,s)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(a){var s=a.optimistic?r.optimisticData:r.data;if(Pi(s)){var u=a.optimistic,l=a.id,c=a.variables;return s.makeCacheKey(a.query,a.callback,Kn({optimistic:u,id:l,variables:c}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(a){return a.resetCaching()})},t.prototype.restore=function(n){return this.init(),n&&this.data.replace(n),this},t.prototype.extract=function(n){return n===void 0&&(n=!1),(n?this.optimisticData:this.data).extract()},t.prototype.read=function(n){var r=n.returnPartialData,i=r===void 0?!1:r;try{return this.storeReader.diffQueryAgainstStore(w(w({},n),{store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result||null}catch(o){if(o instanceof Om)return null;throw o}},t.prototype.write=function(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.modify=function(n){if(Ce.call(n,"id")&&!n.id)return!1;var r=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,r.modify(n.id||"ROOT_QUERY",n.fields)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.diff=function(n){return this.storeReader.diffQueryAgainstStore(w(w({},n),{store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(n){var r=this;return this.watches.size||Ww(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),function(){r.watches.delete(n)&&!r.watches.size&&Fp(r),r.maybeBroadcastWatch.forget(n)}},t.prototype.gc=function(n){Kn.reset();var r=this.optimisticData.gc();return n&&!this.txCount&&(n.resetResultCache?this.resetResultCache(n.resetResultIdentities):n.resetResultIdentities&&this.storeReader.resetCanon()),r},t.prototype.retain=function(n,r){return(r?this.optimisticData:this.data).retain(n)},t.prototype.release=function(n,r){return(r?this.optimisticData:this.data).release(n)},t.prototype.identify=function(n){if(ne(n))return n.__ref;try{return this.policies.identify(n)[0]}catch(r){globalThis.__DEV__!==!1&&U.warn(r)}},t.prototype.evict=function(n){if(!n.id){if(Ce.call(n,"id"))return!1;n=w(w({},n),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.reset=function(n){var r=this;return this.init(),Kn.reset(),n&&n.discardWatches?(this.watches.forEach(function(i){return r.maybeBroadcastWatch.forget(i)}),this.watches.clear(),Fp(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(n){var r=this.optimisticData.removeLayer(n);r!==this.optimisticData&&(this.optimisticData=r,this.broadcastWatches())},t.prototype.batch=function(n){var r=this,i=n.update,o=n.optimistic,a=o===void 0?!0:o,s=n.removeOptimistic,u=n.onWatchUpdated,l,c=function(d){var v=r,g=v.data,m=v.optimisticData;++r.txCount,d&&(r.data=r.optimisticData=d);try{return l=i(r)}finally{--r.txCount,r.data=g,r.optimisticData=m}},f=new Set;return u&&!this.txCount&&this.broadcastWatches(w(w({},n),{onWatchUpdated:function(d){return f.add(d),!1}})),typeof a=="string"?this.optimisticData=this.optimisticData.addLayer(a,c):a===!1?c(this.data):c(),typeof s=="string"&&(this.optimisticData=this.optimisticData.removeLayer(s)),u&&f.size?(this.broadcastWatches(w(w({},n),{onWatchUpdated:function(d,v){var g=u.call(this,d,v);return g!==!1&&f.delete(d),g}})),f.size&&f.forEach(function(d){return r.maybeBroadcastWatch.dirty(d)})):this.broadcastWatches(n),l},t.prototype.performTransaction=function(n,r){return this.batch({update:n,optimistic:r||r!==null})},t.prototype.transformDocument=function(n){return this.addTypenameToDocument(this.addFragmentsToDocument(n))},t.prototype.broadcastWatches=function(n){var r=this;this.txCount||this.watches.forEach(function(i){return r.maybeBroadcastWatch(i,n)})},t.prototype.addFragmentsToDocument=function(n){var r=this.config.fragments;return r?r.transform(n):n},t.prototype.addTypenameToDocument=function(n){return this.addTypename?this.addTypenameTransform.transformDocument(n):n},t.prototype.broadcastWatch=function(n,r){var i=n.lastDiff,o=this.diff(n);r&&(n.optimistic&&typeof r.optimistic=="string"&&(o.fromOptimisticTransaction=!0),r.onWatchUpdated&&r.onWatchUpdated.call(this,n,o,i)===!1)||(!i||!ie(i.result,o.result))&&n.callback(n.lastDiff=o,i)},t}(Fw),W;(function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"})(W||(W={}));function oo(e){return e?e<7:!1}function t_(e,t,n,r){var i=t.data,o=jt(t,["data"]),a=n.data,s=jt(n,["data"]);return ie(o,s)&&va(So(e).selectionSet,i,a,{fragmentMap:gs(ws(e)),variables:r})}function va(e,t,n,r){if(t===n)return!0;var i=new Set;return e.selections.every(function(o){if(i.has(o)||(i.add(o),!mo(o,r.variables))||qp(o))return!0;if(Cn(o)){var a=Tn(o),s=t&&t[a],u=n&&n[a],l=o.selectionSet;if(!l)return ie(s,u);var c=Array.isArray(s),f=Array.isArray(u);if(c!==f)return!1;if(c&&f){var d=s.length;if(u.length!==d)return!1;for(var v=0;v0},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(n){return n.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(n){return this.queryManager.transform(n)},t}(se);cm(ec);function Am(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return n==="cache-and-network"||n==="network-only"?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=r,typeof r=="function"?r.apply(this,arguments):n}}):e.reobserve()}function i_(e){globalThis.__DEV__!==!1&&U.error(21,e.message,e.stack)}function Mm(e){globalThis.__DEV__!==!1&&e&&globalThis.__DEV__!==!1&&U.debug(22,e)}function Iu(e){return e==="network-only"||e==="no-cache"||e==="standby"}var Fm=function(){function e(t){var n=t.cache,r=t.client,i=t.resolvers,o=t.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=n,r&&(this.client=r),i&&this.addResolvers(i),o&&this.setFragmentMatcher(o)}return e.prototype.addResolvers=function(t){var n=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(r){n.resolvers=pp(n.resolvers,r)}):this.resolvers=pp(this.resolvers,t)},e.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(t){var n=t.document,r=t.remoteResult,i=t.context,o=t.variables,a=t.onlyRunForcedResolvers,s=a===void 0?!1:a;return sn(this,void 0,void 0,function(){return un(this,function(u){return n?[2,this.resolveDocument(n,r.data,i,o,this.fragmentMatcher,s).then(function(l){return w(w({},r),{data:l.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(t){return to(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return om(t)},e.prototype.prepareContext=function(t){var n=this.cache;return w(w({},t),{cache:n,getCacheKey:function(r){return n.identify(r)}})},e.prototype.addExportedVariables=function(t,n,r){return n===void 0&&(n={}),r===void 0&&(r={}),sn(this,void 0,void 0,function(){return un(this,function(i){return t?[2,this.resolveDocument(t,this.buildRootValueFromCache(t,n)||{},this.prepareContext(r),n).then(function(o){return w(w({},n),o.exportedVariables)})]:[2,w({},n)]})})},e.prototype.shouldForceResolvers=function(t){var n=!1;return Xt(t,{Directive:{enter:function(r){if(r.name.value==="client"&&r.arguments&&(n=r.arguments.some(function(i){return i.name.value==="always"&&i.value.kind==="BooleanValue"&&i.value.value===!0}),n))return df}}}),n},e.prototype.buildRootValueFromCache=function(t,n){return this.cache.diff({query:_S(t),variables:n,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,n,r,i,o,a){return r===void 0&&(r={}),i===void 0&&(i={}),o===void 0&&(o=function(){return!0}),a===void 0&&(a=!1),sn(this,void 0,void 0,function(){var s,u,l,c,f,d,v,g,m,S,p;return un(this,function(h){return s=So(t),u=ws(t),l=gs(u),c=this.collectSelectionsToResolve(s,l),f=s.operation,d=f?f.charAt(0).toUpperCase()+f.slice(1):"Query",v=this,g=v.cache,m=v.client,S={fragmentMap:l,context:w(w({},r),{cache:g,client:m}),variables:i,fragmentMatcher:o,defaultOperationType:d,exportedVariables:{},selectionsToResolve:c,onlyRunForcedResolvers:a},p=!1,[2,this.resolveSelectionSet(s.selectionSet,p,n,S).then(function(y){return{result:y,exportedVariables:S.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,n,r,i){return sn(this,void 0,void 0,function(){var o,a,s,u,l,c=this;return un(this,function(f){return o=i.fragmentMap,a=i.context,s=i.variables,u=[r],l=function(d){return sn(c,void 0,void 0,function(){var v,g;return un(this,function(m){return!n&&!i.selectionsToResolve.has(d)?[2]:mo(d,s)?Cn(d)?[2,this.resolveField(d,n,r,i).then(function(S){var p;typeof S<"u"&&u.push((p={},p[Tn(d)]=S,p))})]:(mS(d)?v=d:(v=o[d.name.value],U(v,16,d.name.value)),v&&v.typeCondition&&(g=v.typeCondition.name.value,i.fragmentMatcher(r,g,a))?[2,this.resolveSelectionSet(v.selectionSet,n,r,i).then(function(S){u.push(S)})]:[2]):[2]})})},[2,Promise.all(t.selections.map(l)).then(function(){return mf(u)})]})})},e.prototype.resolveField=function(t,n,r,i){return sn(this,void 0,void 0,function(){var o,a,s,u,l,c,f,d,v,g=this;return un(this,function(m){return r?(o=i.variables,a=t.name.value,s=Tn(t),u=a!==s,l=r[s]||r[a],c=Promise.resolve(l),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(f=r.__typename||i.defaultOperationType,d=this.resolvers&&this.resolvers[f],d&&(v=d[u?a:s],v&&(c=Promise.resolve(bf.withValue(this.cache,v,[r,Ss(t,o),i.context,{field:t,fragmentMap:i.fragmentMap}]))))),[2,c.then(function(S){var p,h;if(S===void 0&&(S=l),t.directives&&t.directives.forEach(function(E){E.name.value==="export"&&E.arguments&&E.arguments.forEach(function(b){b.name.value==="as"&&b.value.kind==="StringValue"&&(i.exportedVariables[b.value.value]=S)})}),!t.selectionSet||S==null)return S;var y=(h=(p=t.directives)===null||p===void 0?void 0:p.some(function(E){return E.name.value==="client"}))!==null&&h!==void 0?h:!1;if(Array.isArray(S))return g.resolveSubSelectedArray(t,n||y,S,i);if(t.selectionSet)return g.resolveSelectionSet(t.selectionSet,n||y,S,i)})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(t,n,r,i){var o=this;return Promise.all(r.map(function(a){if(a===null)return null;if(Array.isArray(a))return o.resolveSubSelectedArray(t,n,a,i);if(t.selectionSet)return o.resolveSelectionSet(t.selectionSet,n,a,i)}))},e.prototype.collectSelectionsToResolve=function(t,n){var r=function(a){return!Array.isArray(a)},i=this.selectionsToResolveCache;function o(a){if(!i.has(a)){var s=new Set;i.set(a,s),Xt(a,{Directive:function(u,l,c,f,d){u.name.value==="client"&&d.forEach(function(v){r(v)&&lp(v)&&s.add(v)})},FragmentSpread:function(u,l,c,f,d){var v=n[u.name.value];U(v,17,u.name.value);var g=o(v);g.size>0&&(d.forEach(function(m){r(m)&&lp(m)&&s.add(m)}),s.add(u),g.forEach(function(m){s.add(m)}))}})}return i.get(a)}return o(t)},e}(),Tr=new(Bt?WeakMap:Map);function Lu(e,t){var n=e[t];typeof n=="function"&&(e[t]=function(){return Tr.set(e,(Tr.get(e)+1)%1e15),n.apply(this,arguments)})}function Yp(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Ru=function(){function e(t,n){n===void 0&&(n=t.generateQueryId()),this.queryId=n,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=t.cache;Tr.has(r)||(Tr.set(r,0),Lu(r,"evict"),Lu(r,"modify"),Lu(r,"reset"))}return e.prototype.init=function(t){var n=t.networkStatus||W.loading;return this.variables&&this.networkStatus!==W.loading&&!ie(this.variables,t.variables)&&(n=W.setVariables),ie(t.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:n}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},e.prototype.reset=function(){Yp(this),this.dirty=!1},e.prototype.getDiff=function(){var t=this.getDiffOptions();if(this.lastDiff&&ie(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var n=this.observableQuery;if(n&&n.options.fetchPolicy==="no-cache")return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(t,n){this.lastDiff=t?{diff:t,options:n||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(t){var n;return t===void 0&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:(n=this.observableQuery)===null||n===void 0?void 0:n.options.canonizeResults}},e.prototype.setDiff=function(t){var n=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(t),!this.dirty&&!ie(r&&r.result,t&&t.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return n.notify()},0)))},e.prototype.setObservableQuery=function(t){var n=this;t!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=t,t?(t.queryInfo=this,this.listeners.add(this.oqListener=function(){var r=n.getDiff();r.fromOptimisticTransaction?t.observe():Am(t)})):delete this.oqListener)},e.prototype.notify=function(){var t=this;Yp(this),this.shouldNotify()&&this.listeners.forEach(function(n){return n(t)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(oo(this.networkStatus)&&this.observableQuery){var t=this.observableQuery.options.fetchPolicy;if(t!=="cache-only"&&t!=="cache-and-network")return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach(function(n){return n.unsubscribe()});var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(t){var n=this;t===void 0&&(t=this.variables);var r=this.observableQuery;if(!(r&&r.options.fetchPolicy==="no-cache")){var i=w(w({},this.getDiffOptions(t)),{watcher:this,callback:function(o){return n.setDiff(o)}});(!this.lastWatch||!ie(i,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(t,n){var r=this.lastWrite;return!(r&&r.dmCount===Tr.get(this.cache)&&ie(n,r.variables)&&ie(t.data,r.result.data))},e.prototype.markResult=function(t,n,r,i){var o=this,a=new xn,s=mt(t.errors)?t.errors.slice(0):[];if(this.reset(),"incremental"in t&&mt(t.incremental)){var u=fm(this.getDiff().result,t);t.data=u}else if("hasNext"in t&&t.hasNext){var l=this.getDiff();t.data=a.merge(l.result,t.data)}this.graphQLErrors=s,r.fetchPolicy==="no-cache"?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(r.variables)):i!==0&&(tc(t,r.errorPolicy)?this.cache.performTransaction(function(c){if(o.shouldWrite(t,r.variables))c.writeQuery({query:n,data:t.data,variables:r.variables,overwrite:i===1}),o.lastWrite={result:t,variables:r.variables,dmCount:Tr.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete){t.data=o.lastDiff.diff.result;return}var f=o.getDiffOptions(r.variables),d=c.diff(f);!o.stopped&&ie(o.variables,r.variables)&&o.updateWatch(r.variables),o.updateLastDiff(d,f),d.complete&&(t.data=d.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=W.ready},e.prototype.markError=function(t){return this.networkStatus=W.error,this.lastWrite=void 0,this.reset(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},e}();function tc(e,t){t===void 0&&(t="none");var n=t==="ignore"||t==="all",r=!da(e);return!r&&n&&e.data&&(r=!0),r}var o_=Object.prototype.hasOwnProperty,a_=function(){function e(t){var n=this,r=t.cache,i=t.link,o=t.defaultOptions,a=t.documentTransform,s=t.queryDeduplication,u=s===void 0?!1:s,l=t.onBroadcast,c=t.ssrMode,f=c===void 0?!1:c,d=t.clientAwareness,v=d===void 0?{}:d,g=t.localState,m=t.assumeImmutableResults,S=m===void 0?!!r.assumeImmutableResults:m;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Bt?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map;var p=new tm(function(h){return n.cache.transformDocument(h)},{cache:!1});this.cache=r,this.link=i,this.defaultOptions=o||Object.create(null),this.queryDeduplication=u,this.clientAwareness=v,this.localState=g||new Fm({cache:r}),this.ssrMode=f,this.assumeImmutableResults=S,this.documentTransform=a?p.concat(a).concat(p):p,(this.onBroadcast=l)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var t=this;this.queries.forEach(function(n,r){t.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(He(23))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(n){return n(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){var n,r,i=t.mutation,o=t.variables,a=t.optimisticResponse,s=t.updateQueries,u=t.refetchQueries,l=u===void 0?[]:u,c=t.awaitRefetchQueries,f=c===void 0?!1:c,d=t.update,v=t.onQueryUpdated,g=t.fetchPolicy,m=g===void 0?((n=this.defaultOptions.mutate)===null||n===void 0?void 0:n.fetchPolicy)||"network-only":g,S=t.errorPolicy,p=S===void 0?((r=this.defaultOptions.mutate)===null||r===void 0?void 0:r.errorPolicy)||"none":S,h=t.keepRootFields,y=t.context;return sn(this,void 0,void 0,function(){var E,b,_,O;return un(this,function(T){switch(T.label){case 0:return U(i,24),U(m==="network-only"||m==="no-cache",25),E=this.generateMutationId(),i=this.cache.transformForLink(this.transform(i)),b=this.getDocumentInfo(i).hasClientExports,o=this.getVariables(i,o),b?[4,this.localState.addExportedVariables(i,o,y)]:[3,2];case 1:o=T.sent(),T.label=2;case 2:return _=this.mutationStore&&(this.mutationStore[E]={mutation:i,variables:o,loading:!0,error:null}),a&&this.markMutationOptimistic(a,{mutationId:E,document:i,variables:o,fetchPolicy:m,errorPolicy:p,context:y,updateQueries:s,update:d,keepRootFields:h}),this.broadcastQueries(),O=this,[2,new Promise(function($,j){return ku(O.getObservableFromLink(i,w(w({},y),{optimisticResponse:a}),o,!1),function(G){if(da(G)&&p==="none")throw new ln({graphQLErrors:$l(G)});_&&(_.loading=!1,_.error=null);var ke=w({},G);return typeof l=="function"&&(l=l(ke)),p==="ignore"&&da(ke)&&delete ke.errors,O.markMutationResult({mutationId:E,result:ke,document:i,variables:o,fetchPolicy:m,errorPolicy:p,context:y,update:d,updateQueries:s,awaitRefetchQueries:f,refetchQueries:l,removeOptimistic:a?E:void 0,onQueryUpdated:v,keepRootFields:h})}).subscribe({next:function(G){O.broadcastQueries(),(!("hasNext"in G)||G.hasNext===!1)&&$(G)},error:function(G){_&&(_.loading=!1,_.error=G),a&&O.cache.removeOptimistic(E),O.broadcastQueries(),j(G instanceof ln?G:new ln({networkError:G}))}})})]}})})},e.prototype.markMutationResult=function(t,n){var r=this;n===void 0&&(n=this.cache);var i=t.result,o=[],a=t.fetchPolicy==="no-cache";if(!a&&tc(i,t.errorPolicy)){if(Pr(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),Pr(i)&&mt(i.incremental)){var s=n.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}),u=void 0;s.result&&(u=fm(s.result,i)),typeof u<"u"&&(i.data=u,o.push({result:u,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var l=t.updateQueries;l&&this.queries.forEach(function(f,d){var v=f.observableQuery,g=v&&v.queryName;if(!(!g||!o_.call(l,g))){var m=l[g],S=r.queries.get(d),p=S.document,h=S.variables,y=n.diff({query:p,variables:h,returnPartialData:!0,optimistic:!1}),E=y.result,b=y.complete;if(b&&E){var _=m(E,{mutationResult:i,queryName:p&&jl(p)||void 0,queryVariables:h});_&&o.push({result:_,dataId:"ROOT_QUERY",query:p,variables:h})}}})}if(o.length>0||t.refetchQueries||t.update||t.onQueryUpdated||t.removeOptimistic){var c=[];if(this.refetchQueries({updateCache:function(f){a||o.forEach(function(m){return f.write(m)});var d=t.update,v=!FS(i)||Pr(i)&&!i.hasNext;if(d){if(!a){var g=f.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});g.complete&&(i=w(w({},i),{data:g.result}),"incremental"in i&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}v&&d(f,i,{context:t.context,variables:t.variables})}!a&&!t.keepRootFields&&v&&f.modify({id:"ROOT_MUTATION",fields:function(m,S){var p=S.fieldName,h=S.DELETE;return p==="__typename"?m:h}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(f){return c.push(f)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(c).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(t,n){var r=this,i=typeof t=="function"?t(n.variables):t;return this.cache.recordOptimisticTransaction(function(o){try{r.markMutationResult(w(w({},n),{result:{data:i}}),o)}catch(a){globalThis.__DEV__!==!1&&U.error(a)}},n.mutationId)},e.prototype.fetchQuery=function(t,n,r){return this.fetchConcastWithInfo(t,n,r).concast.promise},e.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach(function(n,r){t[r]={variables:n.variables,networkStatus:n.networkStatus,networkError:n.networkError,graphQLErrors:n.graphQLErrors}}),t},e.prototype.resetErrors=function(t){var n=this.queries.get(t);n&&(n.networkError=void 0,n.graphQLErrors=[])},e.prototype.transform=function(t){return this.documentTransform.transformDocument(t)},e.prototype.getDocumentInfo=function(t){var n=this.transformCache;if(!n.has(t)){var r={hasClientExports:W1(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:to(["nonreactive"],t),clientQuery:this.localState.clientQuery(t),serverQuery:im([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],t),defaultVars:vf(Eo(t)),asQuery:w(w({},t),{definitions:t.definitions.map(function(i){return i.kind==="OperationDefinition"&&i.operation!=="query"?w(w({},i),{operation:"query"}):i})})};n.set(t,r)}return n.get(t)},e.prototype.getVariables=function(t,n){return w(w({},this.getDocumentInfo(t).defaultVars),n)},e.prototype.watchQuery=function(t){var n=this.transform(t.query);t=w(w({},t),{variables:this.getVariables(n,t.variables)}),typeof t.notifyOnNetworkStatusChange>"u"&&(t.notifyOnNetworkStatusChange=!1);var r=new Ru(this),i=new ec({queryManager:this,queryInfo:r,options:t});return i.lastQuery=n,this.queries.set(i.queryId,r),r.init({document:n,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(t,n){var r=this;return n===void 0&&(n=this.generateQueryId()),U(t.query,26),U(t.query.kind==="Document",27),U(!t.returnPartialData,28),U(!t.pollInterval,29),this.fetchQuery(n,w(w({},t),{query:this.transform(t.query)})).finally(function(){return r.stopQuery(n)})},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(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(t){var n=this.queries.get(t);n&&n.stop()},e.prototype.clearStore=function(t){return t===void 0&&(t={discardWatches:!0}),this.cancelPendingFetches(He(30)),this.queries.forEach(function(n){n.observableQuery?n.networkStatus=W.loading:n.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},e.prototype.getObservableQueries=function(t){var n=this;t===void 0&&(t="active");var r=new Map,i=new Map,o=new Set;return Array.isArray(t)&&t.forEach(function(a){typeof a=="string"?i.set(a,!1):iS(a)?i.set(n.transform(a),!1):fe(a)&&a.query&&o.add(a)}),this.queries.forEach(function(a,s){var u=a.observableQuery,l=a.document;if(u){if(t==="all"){r.set(s,u);return}var c=u.queryName,f=u.options.fetchPolicy;if(f==="standby"||t==="active"&&!u.hasObservers())return;(t==="active"||c&&i.has(c)||l&&i.has(l))&&(r.set(s,u),c&&i.set(c,!0),l&&i.set(l,!0))}}),o.size&&o.forEach(function(a){var s=Rl("legacyOneTimeQuery"),u=n.getQuery(s).init({document:a.query,variables:a.variables}),l=new ec({queryManager:n,queryInfo:u,options:w(w({},a),{fetchPolicy:"network-only"})});U(l.queryId===s),u.setObservableQuery(l),r.set(s,l)}),globalThis.__DEV__!==!1&&i.size&&i.forEach(function(a,s){a||globalThis.__DEV__!==!1&&U.warn(typeof s=="string"?31:32,s)}),r},e.prototype.reFetchObservableQueries=function(t){var n=this;t===void 0&&(t=!1);var r=[];return this.getObservableQueries(t?"all":"active").forEach(function(i,o){var a=i.options.fetchPolicy;i.resetLastResults(),(t||a!=="standby"&&a!=="cache-only")&&r.push(i.refetch()),n.getQuery(o).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(t){this.getQuery(t.queryId).setObservableQuery(t)},e.prototype.startGraphQLSubscription=function(t){var n=this,r=t.query,i=t.fetchPolicy,o=t.errorPolicy,a=o===void 0?"none":o,s=t.variables,u=t.context,l=u===void 0?{}:u;r=this.transform(r),s=this.getVariables(r,s);var c=function(d){return n.getObservableFromLink(r,l,d).map(function(v){i!=="no-cache"&&(tc(v,a)&&n.cache.write({query:r,result:v.data,dataId:"ROOT_SUBSCRIPTION",variables:d}),n.broadcastQueries());var g=da(v),m=ZS(v);if(g||m){var S={};if(g&&(S.graphQLErrors=v.errors),m&&(S.protocolErrors=v.extensions[_f]),a==="none"||m)throw new ln(S)}return a==="ignore"&&delete v.errors,v})};if(this.getDocumentInfo(r).hasClientExports){var f=this.localState.addExportedVariables(r,s,l).then(c);return new se(function(d){var v=null;return f.then(function(g){return v=g.subscribe(d)},d.error),function(){return v&&v.unsubscribe()}})}return c(s)},e.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},e.prototype.removeQuery=function(t){this.fetchCancelFns.delete(t),this.queries.has(t)&&(this.getQuery(t).stop(),this.queries.delete(t))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(t){return t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(t,n,r,i){var o=this,a;i===void 0&&(i=(a=n==null?void 0:n.queryDeduplication)!==null&&a!==void 0?a:this.queryDeduplication);var s,u=this.getDocumentInfo(t),l=u.serverQuery,c=u.clientQuery;if(l){var f=this,d=f.inFlightLinkObservables,v=f.link,g={query:l,variables:r,operationName:jl(l)||void 0,context:this.prepareContext(w(w({},n),{forceFetch:!i}))};if(n=g.context,i){var m=nm(l),S=d.get(m)||new Map;d.set(m,S);var p=Kn(r);if(s=S.get(p),!s){var h=new cr([Vl(v,g)]);S.set(p,s=h),h.beforeNext(function(){S.delete(p)&&S.size<1&&d.delete(m)})}}else s=new cr([Vl(v,g)])}else s=new cr([se.of({data:{}})]),n=this.prepareContext(n);return c&&(s=ku(s,function(y){return o.localState.runResolvers({document:c,remoteResult:y,context:n,variables:r})})),s},e.prototype.getResultsFromLink=function(t,n,r){var i=t.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(r.query);return ku(this.getObservableFromLink(o,r.context,r.variables),function(a){var s=$l(a),u=s.length>0;if(i>=t.lastRequestId){if(u&&r.errorPolicy==="none")throw t.markError(new ln({graphQLErrors:s}));t.markResult(a,o,r,n),t.markReady()}var l={data:a.data,loading:!1,networkStatus:W.ready};return u&&r.errorPolicy!=="ignore"&&(l.errors=s,l.networkStatus=W.error),l},function(a){var s=ew(a)?a:new ln({networkError:a});throw i>=t.lastRequestId&&t.markError(s),s})},e.prototype.fetchConcastWithInfo=function(t,n,r){var i=this;r===void 0&&(r=W.loading);var o=n.query,a=this.getVariables(o,n.variables),s=this.getQuery(t),u=this.defaultOptions.watchQuery,l=n.fetchPolicy,c=l===void 0?u&&u.fetchPolicy||"cache-first":l,f=n.errorPolicy,d=f===void 0?u&&u.errorPolicy||"none":f,v=n.returnPartialData,g=v===void 0?!1:v,m=n.notifyOnNetworkStatusChange,S=m===void 0?!1:m,p=n.context,h=p===void 0?{}:p,y=Object.assign({},n,{query:o,variables:a,fetchPolicy:c,errorPolicy:d,returnPartialData:g,notifyOnNetworkStatusChange:S,context:h}),E=function($){y.variables=$;var j=i.fetchQueryByPolicy(s,y,r);return y.fetchPolicy!=="standby"&&j.sources.length>0&&s.observableQuery&&s.observableQuery.applyNextFetchPolicy("after-fetch",n),j},b=function(){return i.fetchCancelFns.delete(t)};this.fetchCancelFns.set(t,function($){b(),setTimeout(function(){return _.cancel($)})});var _,O;if(this.getDocumentInfo(y.query).hasClientExports)_=new cr(this.localState.addExportedVariables(y.query,y.variables,y.context).then(E).then(function($){return $.sources})),O=!0;else{var T=E(y.variables);O=T.fromLink,_=new cr(T.sources)}return _.promise.then(b,b),{concast:_,fromLink:O}},e.prototype.refetchQueries=function(t){var n=this,r=t.updateCache,i=t.include,o=t.optimistic,a=o===void 0?!1:o,s=t.removeOptimistic,u=s===void 0?a?Rl("refetchQueries"):void 0:s,l=t.onQueryUpdated,c=new Map;i&&this.getObservableQueries(i).forEach(function(d,v){c.set(v,{oq:d,lastDiff:n.getQuery(v).getDiff()})});var f=new Map;return r&&this.cache.batch({update:r,optimistic:a&&u||!1,removeOptimistic:u,onWatchUpdated:function(d,v,g){var m=d.watcher instanceof Ru&&d.watcher.observableQuery;if(m){if(l){c.delete(m.queryId);var S=l(m,v,g);return S===!0&&(S=m.refetch()),S!==!1&&f.set(m,S),S}l!==null&&c.set(m.queryId,{oq:m,lastDiff:g,diff:v})}}}),c.size&&c.forEach(function(d,v){var g=d.oq,m=d.lastDiff,S=d.diff,p;if(l){if(!S){var h=g.queryInfo;h.reset(),S=h.getDiff()}p=l(g,S,m)}(!l||p===!0)&&(p=g.refetch()),p!==!1&&f.set(g,p),v.indexOf("legacyOneTimeQuery")>=0&&n.stopQueryNoBroadcast(v)}),u&&this.cache.removeOptimistic(u),f},e.prototype.fetchQueryByPolicy=function(t,n,r){var i=this,o=n.query,a=n.variables,s=n.fetchPolicy,u=n.refetchWritePolicy,l=n.errorPolicy,c=n.returnPartialData,f=n.context,d=n.notifyOnNetworkStatusChange,v=t.networkStatus;t.init({document:o,variables:a,networkStatus:r});var g=function(){return t.getDiff()},m=function(E,b){b===void 0&&(b=t.networkStatus||W.loading);var _=E.result;globalThis.__DEV__!==!1&&!c&&!ie(_,{})&&Mm(E.missing);var O=function(T){return se.of(w({data:T,loading:oo(b),networkStatus:b},E.complete?null:{partial:!0}))};return _&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:_},context:f,variables:a,onlyRunForcedResolvers:!0}).then(function(T){return O(T.data||void 0)}):l==="none"&&b===W.refetch&&Array.isArray(E.missing)?O(void 0):O(_)},S=s==="no-cache"?0:r===W.refetch&&u!=="merge"?1:2,p=function(){return i.getResultsFromLink(t,S,{query:o,variables:a,context:f,fetchPolicy:s,errorPolicy:l})},h=d&&typeof v=="number"&&v!==r&&oo(r);switch(s){default:case"cache-first":{var y=g();return y.complete?{fromLink:!1,sources:[m(y,t.markReady())]}:c||h?{fromLink:!0,sources:[m(y),p()]}:{fromLink:!0,sources:[p()]}}case"cache-and-network":{var y=g();return y.complete||c||h?{fromLink:!0,sources:[m(y),p()]}:{fromLink:!0,sources:[p()]}}case"cache-only":return{fromLink:!1,sources:[m(g(),t.markReady())]};case"network-only":return h?{fromLink:!0,sources:[m(g()),p()]}:{fromLink:!0,sources:[p()]};case"no-cache":return h?{fromLink:!0,sources:[m(t.getDiff()),p()]}:{fromLink:!0,sources:[p()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new Ru(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){t===void 0&&(t={});var n=this.localState.prepareContext(t);return w(w({},n),{clientAwareness:this.clientAwareness})},e}(),Xp=!1,s_=function(){function e(t){var n=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw He(13);var r=t.uri,i=t.credentials,o=t.headers,a=t.cache,s=t.documentTransform,u=t.ssrMode,l=u===void 0?!1:u,c=t.ssrForceFetchDelay,f=c===void 0?0:c,d=t.connectToDevTools,v=d===void 0?typeof window=="object"&&!window.__APOLLO_CLIENT__&&globalThis.__DEV__!==!1:d,g=t.queryDeduplication,m=g===void 0?!0:g,S=t.defaultOptions,p=t.assumeImmutableResults,h=p===void 0?a.assumeImmutableResults:p,y=t.resolvers,E=t.typeDefs,b=t.fragmentMatcher,_=t.name,O=t.version,T=t.link;T||(T=r?new mw({uri:r,credentials:i,headers:o}):wo.empty()),this.link=T,this.cache=a,this.disableNetworkFetches=l||f>0,this.queryDeduplication=m,this.defaultOptions=S||Object.create(null),this.typeDefs=E,f&&setTimeout(function(){return n.disableNetworkFetches=!1},f),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=uf,this.localState=new Fm({cache:a,client:this,resolvers:y,fragmentMatcher:b}),this.queryManager=new a_({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:s,queryDeduplication:m,ssrMode:l,clientAwareness:{name:_,version:O},localState:this.localState,assumeImmutableResults:h,onBroadcast:v?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0}),v&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if(typeof window=="object"){var t=window,n=Symbol.for("apollo.devtools");(t[n]=t[n]||[]).push(this),t.__APOLLO_CLIENT__=this}!Xp&&globalThis.__DEV__!==!1&&(Xp=!0,setTimeout(function(){if(typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var r=window.navigator,i=r&&r.userAgent,o=void 0;typeof i=="string"&&(i.indexOf("Chrome/")>-1?o="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":i.indexOf("Firefox/")>-1&&(o="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),o&&globalThis.__DEV__!==!1&&U.log("Download the Apollo DevTools for a better development experience: %s",o)}},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(t){return this.defaultOptions.watchQuery&&(t=pa(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&(t.fetchPolicy==="network-only"||t.fetchPolicy==="cache-and-network")&&(t=w(w({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},e.prototype.query=function(t){return this.defaultOptions.query&&(t=pa(this.defaultOptions.query,t)),U(t.fetchPolicy!=="cache-and-network",14),this.disableNetworkFetches&&t.fetchPolicy==="network-only"&&(t=w(w({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},e.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=pa(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},e.prototype.subscribe=function(t){return this.queryManager.startGraphQLSubscription(t)},e.prototype.readQuery=function(t,n){return n===void 0&&(n=!1),this.cache.readQuery(t,n)},e.prototype.readFragment=function(t,n){return n===void 0&&(n=!1),this.cache.readFragment(t,n)},e.prototype.writeQuery=function(t){var n=this.cache.writeQuery(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n},e.prototype.writeFragment=function(t){var n=this.cache.writeFragment(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n},e.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},e.prototype.__requestRaw=function(t){return Vl(this.link,t)},e.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(n){return n()}))}).then(function(){return t.reFetchObservableQueries()})},e.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(n){return n()}))})},e.prototype.onResetStore=function(t){var n=this;return this.resetStoreCallbacks.push(t),function(){n.resetStoreCallbacks=n.resetStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.onClearStore=function(t){var n=this;return this.clearStoreCallbacks.push(t),function(){n.clearStoreCallbacks=n.clearStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},e.prototype.refetchQueries=function(t){var n=this.queryManager.refetchQueries(t),r=[],i=[];n.forEach(function(a,s){r.push(s),i.push(a)});var o=Promise.all(i);return o.queries=r,o.results=i,o.catch(function(a){globalThis.__DEV__!==!1&&U.debug(15,a)}),o},e.prototype.getObservableQueries=function(t){return t===void 0&&(t="active"),this.queryManager.getObservableQueries(t)},e.prototype.extract=function(t){return this.cache.extract(t)},e.prototype.restore=function(t){return this.cache.restore(t)},e.prototype.addResolvers=function(t){this.localState.addResolvers(t)},e.prototype.setResolvers=function(t){this.localState.setResolvers(t)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},e.prototype.setLink=function(t){this.link=this.queryManager.link=t},e}(),qa=function(){return qa=Object.assign||function(t){for(var n,r=1,i=arguments.length;r"u")throw new Error(t)}function A_(){return Math.random().toString(36).substr(2,8)}function ih(e,t){return{usr:e.state,key:e.key,idx:t}}function oc(e,t,n,r){return n===void 0&&(n=null),ao({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ts(t):t,{state:n,key:t&&t.key||r||A_()})}function Ya(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ts(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function M_(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=$n.Pop,u=null,l=c();l==null&&(l=0,a.replaceState(ao({},a.state,{idx:l}),""));function c(){return(a.state||{idx:null}).idx}function f(){s=$n.Pop;let S=c(),p=S==null?null:S-l;l=S,u&&u({action:s,location:m.location,delta:p})}function d(S,p){s=$n.Push;let h=oc(m.location,S,p);n&&n(h,S),l=c()+1;let y=ih(h,l),E=m.createHref(h);try{a.pushState(y,"",E)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;i.location.assign(E)}o&&u&&u({action:s,location:m.location,delta:1})}function v(S,p){s=$n.Replace;let h=oc(m.location,S,p);n&&n(h,S),l=c();let y=ih(h,l),E=m.createHref(h);a.replaceState(y,"",E),o&&u&&u({action:s,location:m.location,delta:0})}function g(S){let p=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof S=="string"?S:Ya(S);return Ct(p,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,p)}let m={get action(){return s},get location(){return e(i,a)},listen(S){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(rh,f),u=S,()=>{i.removeEventListener(rh,f),u=null}},createHref(S){return t(i,S)},createURL:g,encodeLocation(S){let p=g(S);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:d,replace:v,go(S){return a.go(S)}};return m}var oh;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(oh||(oh={}));function Hm(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function F_(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ts(e):e;return{pathname:n?n.startsWith("/")?n:j_(n,t):t,search:B_(r),hash:z_(i)}}function j_(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Au(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Wm(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function qm(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ts(e):(i=ao({},e),Ct(!i.pathname||!i.pathname.includes("?"),Au("?","pathname","search",i)),Ct(!i.pathname||!i.pathname.includes("#"),Au("#","pathname","hash",i)),Ct(!i.search||!i.search.includes("#"),Au("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(r||a==null)s=n;else{let f=t.length-1;if(a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}s=f>=0?t[f]:"/"}let u=F_(i,s),l=a&&a!=="/"&&a.endsWith("/"),c=(o||a===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(l||c)&&(u.pathname+="/"),u}const Gm=e=>e.join("/").replace(/\/\/+/g,"/"),B_=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,z_=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Ym=["post","put","patch","delete"];new Set(Ym);const U_=["get",...Ym];new Set(U_);/** * React Router v6.12.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;tu.pathnameBase)),a=M.useRef(!1);return Jm(()=>{a.current=!0}),M.useCallback(function(u,l){if(l===void 0&&(l={}),!a.current)return;if(typeof u=="number"){n.go(u);return}let c=qm(u,JSON.parse(o),i,l.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Gm([t,c.pathname])),(l.replace?n.replace:n.push)(c,l.state,l)},[t,n,o,i,e])}function Zm(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=M.useContext(Cs),{pathname:i}=Ns(),o=JSON.stringify(Wm(r).map(a=>a.pathnameBase));return M.useMemo(()=>qm(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}var sc;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(sc||(sc={}));var uc;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(uc||(uc={}));function K_(e){let t=M.useContext(Xm);return t||Ct(!1),t}function H_(e){let t=M.useContext(Cs);return t||Ct(!1),t}function W_(e){let t=H_(),n=t.matches[t.matches.length-1];return n.route.id||Ct(!1),n.route.id}function q_(){let{router:e}=K_(sc.UseNavigateStable),t=W_(uc.UseNavigateStable),n=M.useRef(!1);return Jm(()=>{n.current=!0}),M.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,ac({fromRouteId:t},o)))},[e,t])}function G_(e){let{basename:t="/",children:n=null,location:r,navigationType:i=$n.Pop,navigator:o,static:a=!1}=e;xs()&&Ct(!1);let s=t.replace(/^\/*/,"/"),u=M.useMemo(()=>({basename:s,navigator:o,static:a}),[s,o,a]);typeof r=="string"&&(r=Ts(r));let{pathname:l="/",search:c="",hash:f="",state:d=null,key:v="default"}=r,g=M.useMemo(()=>{let m=Hm(l,s);return m==null?null:{location:{pathname:m,search:c,hash:f,state:d,key:v},navigationType:i}},[s,l,c,f,d,v,i]);return g==null?null:M.createElement(Oo.Provider,{value:u},M.createElement(If.Provider,{children:n,value:g}))}var ah;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(ah||(ah={}));new Promise(()=>{});/** * React Router DOM v6.12.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function lc(){return lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function X_(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function J_(e,t){return e.button===0&&(!t||t==="_self")&&!X_(e)}const Z_=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],sh="startTransition";function eO(e){let{basename:t,children:n,window:r}=e,i=M.useRef();i.current==null&&(i.current=P_({window:r,v5Compat:!0}));let o=i.current,[a,s]=M.useState({action:o.action,location:o.location}),u=M.useCallback(l=>{sh in jr?jr[sh](()=>s(l)):s(l)},[s]);return M.useLayoutEffect(()=>o.listen(u),[o,u]),M.createElement(G_,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o})}const tO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",nO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,e0=M.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:u,to:l,preventScrollReset:c}=t,f=Y_(t,Z_),{basename:d}=M.useContext(Oo),v,g=!1;if(typeof l=="string"&&nO.test(l)&&(v=l,tO))try{let h=new URL(window.location.href),y=l.startsWith("//")?new URL(h.protocol+l):new URL(l),E=Hm(y.pathname,d);y.origin===h.origin&&E!=null?l=E+y.search+y.hash:g=!0}catch{}let m=$_(l,{relative:i}),S=rO(l,{replace:a,state:s,target:u,preventScrollReset:c,relative:i});function p(h){r&&r(h),h.defaultPrevented||S(h)}return M.createElement("a",lc({},f,{href:v||m,onClick:g||o?r:p,ref:n,target:u}))});var uh;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(uh||(uh={}));var lh;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(lh||(lh={}));function rO(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a}=t===void 0?{}:t,s=Q_(),u=Ns(),l=Zm(e,{relative:a});return M.useCallback(c=>{if(J_(c,n)){c.preventDefault();let f=r!==void 0?r:Ya(u)===Ya(l);s(e,{replace:f,state:i,preventScrollReset:o,relative:a})}},[u,s,l,r,i,n,e,o,a])}const rn=({text:e,link:t,style:n})=>R.jsx("div",{className:R_.link,children:R.jsx(e0,{style:n,to:t,children:e})}),t0=({json:e,url:t,images:n,entries:r})=>{const i=new Map;if(n!==void 0)for(const u of n)i.set(u.sys.id,u);const o=new Map;if(r!==void 0)for(const u of r)o.set(u.sys.id,u);const a=t.startsWith("tym/"),s=t=="tym";return Um.documentToReactComponents(e,{renderText:u=>u.split(` `).reduce((l,c,f)=>[...l,f>0&&R.jsx("br",{},f),c],new Array),renderNode:{[rc.BLOCKS.EMBEDDED_ASSET]:u=>{const l=i.get(u.data.target.sys.id);return R.jsx("img",{src:`${l.url}`,alt:l.title,style:{maxWidth:"min(100% - 2rem, 30rem)",margin:"0 auto",width:a?"17.5rem":""}})},[rc.BLOCKS.EMBEDDED_ENTRY]:u=>{const l=o.get(u.data.target.sys.id);return R.jsxs("div",{style:{width:s?"17.5rem":"",display:s?"inline-block":""},children:[l.nhledovObrzek&&R.jsx("a",{href:l.url,children:R.jsx("img",{style:{maxWidth:"100%",maxHeight:"20rem",display:"block"},src:l.nhledovObrzek.url})}),R.jsx(rn,{style:{marginTop:"1rem",marginBottom:"1rem",display:"block",textAlign:"center"},text:l.title,link:l.url})]})}}})},iO=({url:e})=>{var o,a;const{data:t}=zm(Zn`{ landingPageCollection(limit: 1, where: {url: "${e}"}) { items { title content { json links { entries { block { sys { id } ... on LandingPage { title url nhledovObrzek { url } } } } assets { block { sys { id } url title width height description } } } } } } }`);if(!t)return R.jsx(R.Fragment,{});const n=(o=t.landingPageCollection.items[0])==null?void 0:o.content,r=(a=t.landingPageCollection.items[0])==null?void 0:a.title,i=R.jsxs("div",{style:{backgroundColor:"#ffe6b8",padding:"1rem"},children:["Naše webové stránky jsou v rekonstrukci, děkujeme za trpělivost. V případě dotazů prosím kontaktuje hlavního vedoucího ",R.jsx("b",{children:"Karla Košnara"})," ","na emailové adrese ",R.jsx("b",{children:"karel.kosnar (zavináč) gmail.com"})," nebo na telefonu ",R.jsx("b",{children:"608 906 987"}),"."]});return n==null||r===void 0?R.jsxs("div",{className:Zd.content,children:[i,R.jsx("h1",{children:"Stránka nenalezena"})]}):R.jsx(R.Fragment,{children:R.jsxs("div",{className:Zd.content,children:[i,R.jsx("h1",{children:r}),R.jsx(t0,{json:n.json,images:n.links.assets.block,entries:n.links.entries.block,url:e})]})})},oO="_title_1arxy_1",aO="_buttonsWrapper_1arxy_6",sO="_headerImage_1arxy_25",Go={title:oO,buttonsWrapper:aO,headerImage:sO},ch=()=>R.jsxs(R.Fragment,{children:[R.jsxs("div",{className:Go.MainNav,children:[R.jsxs("div",{className:Go.title,children:[R.jsx(e0,{to:"/",children:"Dětský jógový stanový tábor ve Střílkách"}),R.jsx("p",{style:{fontSize:"1rem",padding:0,margin:0},children:"Tradice od roku 2003"})]}),R.jsx("img",{className:Go.headerImage,src:"/tabor.jpg"})]}),R.jsxs("nav",{className:Go.buttonsWrapper,children:[R.jsx(rn,{text:"Přihláška",link:"/prihlaska"}),R.jsx(rn,{text:"Tábor 2024",link:"/tajemny-pripad-v-egypte"}),R.jsx(rn,{text:"Filozofie",link:"/filozofie"}),R.jsx(rn,{text:"Tým",link:"/tym"}),R.jsx(rn,{text:"Minulé tábory",link:"/minule-tabory"}),R.jsx(rn,{text:"Zpěvník",link:"/zpevnik"}),R.jsx(rn,{text:"Kontakt",link:"/kontakt"})]})]}),uO="_innerWrapper_wp17l_1",lO="_row_wp17l_14",cO="_img_wp17l_18",fO="_imgWrapper_wp17l_23",dO="_textWrapper_wp17l_27",pO="_block_wp17l_31",hO="_textButton_wp17l_35",Fn={innerWrapper:uO,row:lO,img:cO,imgWrapper:fO,textWrapper:dO,block:pO,textButton:hO},vO=({src:e,text:t,title:n,buttonText:r,url:i})=>R.jsx("div",{className:Fn.row,children:R.jsxs("div",{className:Fn.innerWrapper,children:[R.jsx("div",{className:Fn.imgWrapper,children:R.jsx("img",{src:e,className:Fn.img})}),R.jsxs("div",{className:Fn.textWrapper,children:[R.jsx("h2",{children:n}),R.jsx(t0,{json:t,url:i}),r&&R.jsx("a",{className:Fn.textButton,href:i,children:r})]})]})}),yO=()=>{const{data:e}=zm(Zn`{ landingPageCollection(limit: 4, where: {zobrazitNaHlavniStrance: true}) { items { title shrnutiNaHlavniStrance { json } nhledovObrzek { url } poradiNaHlavniStrance textTlacitkaSOdkazem zobrazitTlacitkoSOdkazem url content { json links { assets { block { sys { id } url title width height description } } } } } } }`);return e?R.jsx("div",{className:Fn.outerWrapper,children:e.landingPageCollection.items.map(t=>t).sort((t,n)=>t.poradiNaHlavniStrance-n.poradiNaHlavniStrance).map(t=>R.jsx(vO,{buttonText:t.zobrazitTlacitkoSOdkazem?t.textTlacitkaSOdkazem:void 0,url:t.url,title:t.title,src:t.nhledovObrzek.url,text:t.shrnutiNaHlavniStrance.json}))}):R.jsx(R.Fragment,{})};function mO(){const t=Ns().pathname.slice(1);return t===""?R.jsxs(R.Fragment,{children:[R.jsx(ch,{}),R.jsx(yO,{})]}):R.jsxs(R.Fragment,{children:[R.jsx(ch,{}),R.jsx(iO,{url:t})]})}function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=n0(e[n])}),t}function Ht(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return fr(e)&&fr(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(fr(t[i])&&i in e&&fr(e[i])?r[i]=Ht(e[i],t[i],n):n.clone?r[i]=fr(t[i])?n0(t[i]):t[i]:r[i]=t[i])}),r}function Gr(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n{if(r.toString().match(/^(components|slots)$/))n[r]={...e[r],...n[r]};else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]={...o},Object.keys(i).forEach(a=>{n[r][a]=i0(i[a],o[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function gO(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}function EO(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ae(ni,--tt):0,Yr--,_e===10&&(Yr=1,Is--),_e}function at(){return _e=tt2||uo(_e)>3?"":" "}function LO(e,t){for(;--t&&at()&&!(_e<48||_e>102||_e>57&&_e<65||_e>70&&_e<97););return ko(e,ma()+(t<6&&Ft()==32&&at()==32))}function fc(e){for(;at();)switch(_e){case e:return tt;case 34:case 39:e!==34&&e!==39&&fc(_e);break;case 40:e===41&&fc(e);break;case 92:at();break}return tt}function RO(e,t){for(;at()&&e+_e!==47+10;)if(e+_e===42+42&&Ft()===47)break;return"/*"+ko(t,tt-1)+"*"+Ds(e===47?e:at())}function PO(e){for(;!uo(Ft());)at();return ko(e,tt)}function AO(e){return c0(Ea("",null,null,null,[""],e=l0(e),0,[0],e))}function Ea(e,t,n,r,i,o,a,s,u){for(var l=0,c=0,f=a,d=0,v=0,g=0,m=1,S=1,p=1,h=0,y="",E=i,b=o,_=r,O=y;S;)switch(g=h,h=at()){case 40:if(g!=108&&Ae(O,f-1)==58){cc(O+=X(ga(h),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:O+=ga(h);break;case 9:case 10:case 13:case 32:O+=IO(g);break;case 92:O+=LO(ma()-1,7);continue;case 47:switch(Ft()){case 42:case 47:Yo(MO(RO(at(),ma()),t,n),u);break;default:O+="/"}break;case 123*m:s[l++]=It(O)*p;case 125*m:case 59:case 0:switch(h){case 0:case 125:S=0;case 59+c:p==-1&&(O=X(O,/\f/g,"")),v>0&&It(O)-f&&Yo(v>32?dh(O+";",r,n,f-1):dh(X(O," ","")+";",r,n,f-2),u);break;case 59:O+=";";default:if(Yo(_=fh(O,t,n,l,c,i,s,y,E=[],b=[],f),o),h===123)if(c===0)Ea(O,t,_,_,E,o,f,s,b);else switch(d===99&&Ae(O,3)===110?100:d){case 100:case 108:case 109:case 115:Ea(e,_,_,r&&Yo(fh(e,_,_,0,0,i,s,y,i,E=[],f),b),i,b,f,s,r?E:b);break;default:Ea(O,_,_,_,[""],b,0,s,b)}}l=c=v=0,m=p=1,y=O="",f=a;break;case 58:f=1+It(O),v=g;default:if(m<1){if(h==123)--m;else if(h==125&&m++==0&&DO()==125)continue}switch(O+=Ds(h),h*m){case 38:p=c>0?1:(O+="\f",-1);break;case 44:s[l++]=(It(O)-1)*p,p=1;break;case 64:Ft()===45&&(O+=ga(at())),d=Ft(),c=f=It(y=O+=PO(ma())),h++;break;case 45:g===45&&It(O)==2&&(m=0)}}return o}function fh(e,t,n,r,i,o,a,s,u,l,c){for(var f=i-1,d=i===0?o:[""],v=Pf(d),g=0,m=0,S=0;g0?d[p]+" "+h:X(h,/&\f/g,d[p])))&&(u[S++]=y);return Ls(e,t,n,i===0?Lf:s,u,l,c)}function MO(e,t,n){return Ls(e,t,n,o0,Ds(NO()),so(e,2,-2),0)}function dh(e,t,n,r){return Ls(e,t,n,Rf,so(e,0,r),so(e,r+1,-1),r)}function Mr(e,t){for(var n="",r=Pf(e),i=0;i6)switch(Ae(e,t+1)){case 109:if(Ae(e,t+4)!==45)break;case 102:return X(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+Xa+(Ae(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cc(e,"stretch")?f0(X(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ae(e,t+1)!==115)break;case 6444:switch(Ae(e,It(e)-3-(~cc(e,"!important")&&10))){case 107:return X(e,":",":"+Y)+e;case 101:return X(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Y+(Ae(e,14)===45?"inline-":"")+"box$3$1"+Y+"$2$3$1"+ze+"$2box$3")+e}break;case 5936:switch(Ae(e,t+11)){case 114:return Y+e+ze+X(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+ze+X(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+ze+X(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Y+e+ze+e+e}return e}var KO=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Rf:t.return=f0(t.value,t.length);break;case a0:return Mr([mi(t,{value:X(t.value,"@","@"+Y)})],i);case Lf:if(t.length)return xO(t.props,function(o){switch(CO(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mr([mi(t,{props:[X(o,/:(read-\w+)/,":"+Xa+"$1")]})],i);case"::placeholder":return Mr([mi(t,{props:[X(o,/:(plac\w+)/,":"+Y+"input-$1")]}),mi(t,{props:[X(o,/:(plac\w+)/,":"+Xa+"$1")]}),mi(t,{props:[X(o,/:(plac\w+)/,ze+"input-$1")]})],i)}return""})}},HO=[KO],WO=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var S=m.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||HO,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var S=m.getAttribute("data-emotion").split(" "),p=1;p=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ak={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},sk=/[A-Z]|^ms/g,uk=/_EMO_([^_]+?)_([^]*?)_EMO_/g,y0=function(t){return t.charCodeAt(1)===45},hh=function(t){return t!=null&&typeof t!="boolean"},Mu=gO(function(e){return y0(e)?e:e.replace(sk,"-$&").toLowerCase()}),vh=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(uk,function(r,i,o){return Lt={name:i,styles:o,next:Lt},i})}return ak[t]!==1&&!y0(t)&&typeof n=="number"&&n!==0?n+"px":n};function lo(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Lt={name:n.name,styles:n.styles,next:Lt},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Lt={name:r.name,styles:r.styles,next:Lt},r=r.next;var i=n.styles+";";return i}return lk(e,t,n)}case"function":{if(e!==void 0){var o=Lt,a=n(e);return Lt=o,lo(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function lk(e,t,n){var r="";if(Array.isArray(n))for(var i=0;it(hk(i)?n:i):t;return R.jsx(pk,{styles:r})}function ri(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}const yk=["values","unit","step"],mk=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>he({},n,{[r.key]:r.val}),{})};function gk(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=ri(e,yk),o=mk(t),a=Object.keys(o);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function u(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-r/100}${n})`}function l(d,v){const g=a.indexOf(v);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:v)-r/100}${n})`}function c(d){return a.indexOf(d)+1`@media (min-width:${jf[e]}px)`};function Jt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||gh;return t.reduce((a,s,u)=>(a[o.up(o.keys[u])]=n(t[u]),a),{})}if(typeof t=="object"){const o=r.breakpoints||gh;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||jf).indexOf(s)!==-1){const u=o.up(s);a[u]=n(t[s],s)}else{const u=s;a[u]=t[u]}return a},{})}return n(t)}function wk(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function _k(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Qs(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Ja(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Qs(e,n)||r,t&&(i=t(i,r,e)),i}function J(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],u=a.theme,l=Qs(u,r)||{};return Jt(a,s,f=>{let d=Ja(l,i,f);return f===d&&typeof f=="string"&&(d=Ja(l,i,`${t}${f==="default"?"":r0(f)}`,f)),n===!1?d:{[n]:d}})};return o.propTypes={},o.filterProps=[t],o}function Ok(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const kk={m:"margin",p:"padding"},bk={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Eh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Tk=Ok(e=>{if(e.length>2)if(Eh[e])e=Eh[e];else return[e];const[t,n]=e.split(""),r=kk[t],i=bk[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),Bf=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],zf=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Bf,...zf];function bo(e,t,n,r){var i;const o=(i=Qs(e,t,!1))!=null?i:n;return typeof o=="number"?a=>typeof a=="string"?a:o*a:Array.isArray(o)?a=>typeof a=="string"?a:o[a]:typeof o=="function"?o:()=>{}}function E0(e){return bo(e,"spacing",8)}function To(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function Ck(e,t){return n=>e.reduce((r,i)=>(r[i]=To(t,n),r),{})}function xk(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=Tk(n),o=Ck(i,r),a=e[n];return Jt(e,a,o)}function S0(e,t){const n=E0(e.theme);return Object.keys(e).map(r=>xk(e,t,r,n)).reduce(Mi,{})}function ye(e){return S0(e,Bf)}ye.propTypes={};ye.filterProps=Bf;function me(e){return S0(e,zf)}me.propTypes={};me.filterProps=zf;function Nk(e=8){if(e.mui)return e;const t=E0({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function Vs(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?Mi(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Pt(e){return typeof e!="number"?e:`${e}px solid`}const Dk=J({prop:"border",themeKey:"borders",transform:Pt}),Ik=J({prop:"borderTop",themeKey:"borders",transform:Pt}),Lk=J({prop:"borderRight",themeKey:"borders",transform:Pt}),Rk=J({prop:"borderBottom",themeKey:"borders",transform:Pt}),Pk=J({prop:"borderLeft",themeKey:"borders",transform:Pt}),Ak=J({prop:"borderColor",themeKey:"palette"}),Mk=J({prop:"borderTopColor",themeKey:"palette"}),Fk=J({prop:"borderRightColor",themeKey:"palette"}),jk=J({prop:"borderBottomColor",themeKey:"palette"}),Bk=J({prop:"borderLeftColor",themeKey:"palette"}),Ks=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=bo(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:To(t,r)});return Jt(e,e.borderRadius,n)}return null};Ks.propTypes={};Ks.filterProps=["borderRadius"];Vs(Dk,Ik,Lk,Rk,Pk,Ak,Mk,Fk,jk,Bk,Ks);const Hs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=bo(e.theme,"spacing",8),n=r=>({gap:To(t,r)});return Jt(e,e.gap,n)}return null};Hs.propTypes={};Hs.filterProps=["gap"];const Ws=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=bo(e.theme,"spacing",8),n=r=>({columnGap:To(t,r)});return Jt(e,e.columnGap,n)}return null};Ws.propTypes={};Ws.filterProps=["columnGap"];const qs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=bo(e.theme,"spacing",8),n=r=>({rowGap:To(t,r)});return Jt(e,e.rowGap,n)}return null};qs.propTypes={};qs.filterProps=["rowGap"];const zk=J({prop:"gridColumn"}),Uk=J({prop:"gridRow"}),$k=J({prop:"gridAutoFlow"}),Qk=J({prop:"gridAutoColumns"}),Vk=J({prop:"gridAutoRows"}),Kk=J({prop:"gridTemplateColumns"}),Hk=J({prop:"gridTemplateRows"}),Wk=J({prop:"gridTemplateAreas"}),qk=J({prop:"gridArea"});Vs(Hs,Ws,qs,zk,Uk,$k,Qk,Vk,Kk,Hk,Wk,qk);function Fr(e,t){return t==="grey"?t:e}const Gk=J({prop:"color",themeKey:"palette",transform:Fr}),Yk=J({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fr}),Xk=J({prop:"backgroundColor",themeKey:"palette",transform:Fr});Vs(Gk,Yk,Xk);function rt(e){return e<=1&&e!==0?`${e*100}%`:e}const Jk=J({prop:"width",transform:rt}),Uf=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i,o;return{maxWidth:((r=e.theme)==null||(i=r.breakpoints)==null||(o=i.values)==null?void 0:o[n])||jf[n]||rt(n)}};return Jt(e,e.maxWidth,t)}return null};Uf.filterProps=["maxWidth"];const Zk=J({prop:"minWidth",transform:rt}),eb=J({prop:"height",transform:rt}),tb=J({prop:"maxHeight",transform:rt}),nb=J({prop:"minHeight",transform:rt});J({prop:"size",cssProperty:"width",transform:rt});J({prop:"size",cssProperty:"height",transform:rt});const rb=J({prop:"boxSizing"});Vs(Jk,Uf,Zk,eb,tb,nb,rb);const ib={border:{themeKey:"borders",transform:Pt},borderTop:{themeKey:"borders",transform:Pt},borderRight:{themeKey:"borders",transform:Pt},borderBottom:{themeKey:"borders",transform:Pt},borderLeft:{themeKey:"borders",transform:Pt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ks},color:{themeKey:"palette",transform:Fr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fr},backgroundColor:{themeKey:"palette",transform:Fr},p:{style:me},pt:{style:me},pr:{style:me},pb:{style:me},pl:{style:me},px:{style:me},py:{style:me},padding:{style:me},paddingTop:{style:me},paddingRight:{style:me},paddingBottom:{style:me},paddingLeft:{style:me},paddingX:{style:me},paddingY:{style:me},paddingInline:{style:me},paddingInlineStart:{style:me},paddingInlineEnd:{style:me},paddingBlock:{style:me},paddingBlockStart:{style:me},paddingBlockEnd:{style:me},m:{style:ye},mt:{style:ye},mr:{style:ye},mb:{style:ye},ml:{style:ye},mx:{style:ye},my:{style:ye},margin:{style:ye},marginTop:{style:ye},marginRight:{style:ye},marginBottom:{style:ye},marginLeft:{style:ye},marginX:{style:ye},marginY:{style:ye},marginInline:{style:ye},marginInlineStart:{style:ye},marginInlineEnd:{style:ye},marginBlock:{style:ye},marginBlockStart:{style:ye},marginBlockEnd:{style:ye},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Hs},rowGap:{style:qs},columnGap:{style:Ws},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:rt},maxWidth:{style:Uf},minWidth:{transform:rt},height:{transform:rt},maxHeight:{transform:rt},minHeight:{transform:rt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},$f=ib;function ob(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function ab(e,t){return typeof e=="function"?e(t):e}function sb(){function e(n,r,i,o){const a={[n]:r,theme:i},s=o[n];if(!s)return{[n]:r};const{cssProperty:u=n,themeKey:l,transform:c,style:f}=s;if(r==null)return null;if(l==="typography"&&r==="inherit")return{[n]:r};const d=Qs(i,l)||{};return f?f(a):Jt(a,r,g=>{let m=Ja(d,c,g);return g===m&&typeof g=="string"&&(m=Ja(d,c,`${n}${g==="default"?"":r0(g)}`,g)),u===!1?m:{[u]:m}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=(r=o.unstable_sxConfig)!=null?r:$f;function s(u){let l=u;if(typeof u=="function")l=u(o);else if(typeof u!="object")return u;if(!l)return null;const c=wk(o.breakpoints),f=Object.keys(c);let d=c;return Object.keys(l).forEach(v=>{const g=ab(l[v],o);if(g!=null)if(typeof g=="object")if(a[v])d=Mi(d,e(v,g,o,a));else{const m=Jt({theme:o},g,S=>({[v]:S}));ob(m,g)?d[v]=t({sx:g,theme:o}):d=Mi(d,m)}else d=Mi(d,e(v,g,o,a))}),_k(f,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const w0=sb();w0.filterProps=["sx"];const _0=w0,ub=["breakpoints","palette","spacing","shape"];function O0(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=ri(e,ub),s=gk(n),u=Nk(i);let l=Ht({breakpoints:s,direction:"ltr",components:{},palette:he({mode:"light"},r),spacing:u,shape:he({},Sk,o)},a);return l=t.reduce((c,f)=>Ht(c,f),l),l.unstable_sxConfig=he({},$f,a==null?void 0:a.unstable_sxConfig),l.unstable_sx=function(f){return _0({sx:f,theme:this})},l}function lb(e){return Object.keys(e).length===0}function cb(e=null){const t=M.useContext(g0);return!t||lb(t)?e:t}const fb=O0();function k0(e=fb){return cb(e)}function db({styles:e,themeId:t,defaultTheme:n={}}){const r=k0(n),i=typeof e=="function"?e(t&&r[t]||r):e;return R.jsx(vk,{styles:i})}function pb(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:i0(t.components[n].defaultProps,r)}function hb({props:e,name:t,defaultTheme:n,themeId:r}){let i=k0(n);return r&&(i=i[r]||i),pb({theme:i,name:t,props:e})}function b0(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function vb(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Xr(e){if(e.type)return e;if(e.charAt(0)==="#")return Xr(vb(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Gr(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(Gr(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function Qf(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function yb(e){e=Xr(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(l,c=(l+n/30)%12)=>i-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),Qf({type:s,values:u})}function Sh(e){e=Xr(e);let t=e.type==="hsl"||e.type==="hsla"?Xr(yb(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function mb(e,t){const n=Sh(e),r=Sh(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function gb(e,t){if(e=Xr(e),t=b0(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Qf(e)}function Eb(e,t){if(e=Xr(e),t=b0(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Qf(e)}function Sb(e,t){return he({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const wb={black:"#000",white:"#fff"},co=wb,_b={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Ob=_b,kb={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ir=kb,bb={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},or=bb,Tb={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},gi=Tb,Cb={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},ar=Cb,xb={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},sr=xb,Nb={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},ur=Nb,Db=["mode","contrastThreshold","tonalOffset"],wh={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:co.white,default:co.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Fu={text:{primary:co.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:co.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function _h(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Eb(e.main,i):t==="dark"&&(e.dark=gb(e.main,o)))}function Ib(e="light"){return e==="dark"?{main:ar[200],light:ar[50],dark:ar[400]}:{main:ar[700],light:ar[400],dark:ar[800]}}function Lb(e="light"){return e==="dark"?{main:ir[200],light:ir[50],dark:ir[400]}:{main:ir[500],light:ir[300],dark:ir[700]}}function Rb(e="light"){return e==="dark"?{main:or[500],light:or[300],dark:or[700]}:{main:or[700],light:or[400],dark:or[800]}}function Pb(e="light"){return e==="dark"?{main:sr[400],light:sr[300],dark:sr[700]}:{main:sr[700],light:sr[500],dark:sr[900]}}function Ab(e="light"){return e==="dark"?{main:ur[400],light:ur[300],dark:ur[700]}:{main:ur[800],light:ur[500],dark:ur[900]}}function Mb(e="light"){return e==="dark"?{main:gi[400],light:gi[300],dark:gi[700]}:{main:"#ed6c02",light:gi[500],dark:gi[900]}}function Fb(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=ri(e,Db),o=e.primary||Ib(t),a=e.secondary||Lb(t),s=e.error||Rb(t),u=e.info||Pb(t),l=e.success||Ab(t),c=e.warning||Mb(t);function f(m){return mb(m,Fu.text.primary)>=n?Fu.text.primary:wh.text.primary}const d=({color:m,name:S,mainShade:p=500,lightShade:h=300,darkShade:y=700})=>{if(m=he({},m),!m.main&&m[p]&&(m.main=m[p]),!m.hasOwnProperty("main"))throw new Error(Gr(11,S?` (${S})`:"",p));if(typeof m.main!="string")throw new Error(Gr(12,S?` (${S})`:"",JSON.stringify(m.main)));return _h(m,"light",h,r),_h(m,"dark",y,r),m.contrastText||(m.contrastText=f(m.main)),m},v={dark:Fu,light:wh};return Ht(he({common:he({},co),mode:t,primary:d({color:o,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:u,name:"info"}),success:d({color:l,name:"success"}),grey:Ob,contrastThreshold:n,getContrastText:f,augmentColor:d,tonalOffset:r},v[t]),i)}const jb=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Bb(e){return Math.round(e*1e5)/1e5}const Oh={textTransform:"uppercase"},kh='"Roboto", "Helvetica", "Arial", sans-serif';function zb(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=kh,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:c,pxToRem:f}=n,d=ri(n,jb),v=i/14,g=f||(p=>`${p/l*v}rem`),m=(p,h,y,E,b)=>he({fontFamily:r,fontWeight:p,fontSize:g(h),lineHeight:y},r===kh?{letterSpacing:`${Bb(E/h)}em`}:{},b,c),S={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,Oh),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Oh),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ht(he({htmlFontSize:l,pxToRem:g,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:u},S),d,{clone:!1})}const Ub=.2,$b=.14,Qb=.12;function le(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ub})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${$b})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Qb})`].join(",")}const Vb=["none",le(0,2,1,-1,0,1,1,0,0,1,3,0),le(0,3,1,-2,0,2,2,0,0,1,5,0),le(0,3,3,-2,0,3,4,0,0,1,8,0),le(0,2,4,-1,0,4,5,0,0,1,10,0),le(0,3,5,-1,0,5,8,0,0,1,14,0),le(0,3,5,-1,0,6,10,0,0,1,18,0),le(0,4,5,-2,0,7,10,1,0,2,16,1),le(0,5,5,-3,0,8,10,1,0,3,14,2),le(0,5,6,-3,0,9,12,1,0,3,16,2),le(0,6,6,-3,0,10,14,1,0,4,18,3),le(0,6,7,-4,0,11,15,1,0,4,20,3),le(0,7,8,-4,0,12,17,2,0,5,22,4),le(0,7,8,-4,0,13,19,2,0,5,24,4),le(0,7,9,-4,0,14,21,2,0,5,26,4),le(0,8,9,-5,0,15,22,2,0,6,28,5),le(0,8,10,-5,0,16,24,2,0,6,30,5),le(0,8,11,-5,0,17,26,2,0,6,32,5),le(0,9,11,-5,0,18,28,2,0,7,34,6),le(0,9,12,-6,0,19,29,2,0,7,36,6),le(0,10,13,-6,0,20,31,3,0,8,38,7),le(0,10,13,-6,0,21,33,3,0,8,40,7),le(0,10,14,-6,0,22,35,3,0,8,42,7),le(0,11,14,-7,0,23,36,3,0,9,44,8),le(0,11,15,-7,0,24,38,3,0,9,46,8)],Kb=Vb,Hb=["duration","easing","delay"],Wb={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},qb={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function bh(e){return`${Math.round(e)}ms`}function Gb(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Yb(e){const t=he({},Wb,e.easing),n=he({},qb,e.duration);return he({getAutoHeightDuration:Gb,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:u=0}=o;return ri(o,Hb),(Array.isArray(i)?i:[i]).map(l=>`${l} ${typeof a=="string"?a:bh(a)} ${s} ${typeof u=="string"?u:bh(u)}`).join(",")}},e,{easing:t,duration:n})}const Xb={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Jb=Xb,Zb=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function eT(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=ri(e,Zb);if(e.vars)throw new Error(Gr(18));const s=Fb(r),u=O0(e);let l=Ht(u,{mixins:Sb(u.breakpoints,n),palette:s,shadows:Kb.slice(),typography:zb(s,o),transitions:Yb(i),zIndex:he({},Jb)});return l=Ht(l,a),l=t.reduce((c,f)=>Ht(c,f),l),l.unstable_sxConfig=he({},$f,a==null?void 0:a.unstable_sxConfig),l.unstable_sx=function(f){return _0({sx:f,theme:this})},l}const tT=eT(),T0=tT,C0="$$material";function nT({props:e,name:t}){return hb({props:e,name:t,defaultTheme:T0,themeId:C0})}function rT(e){return R.jsx(db,he({},e,{defaultTheme:T0,themeId:C0}))}const iT=(e,t)=>he({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),oT=e=>he({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),aT=(e,t=!1)=>{var n,r;const i={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,u])=>{var l;i[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=u.palette)==null?void 0:l.mode}});let o=he({html:iT(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:he({margin:0},oT(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},i);const a=(n=e.components)==null||(r=n.MuiCssBaseline)==null?void 0:r.styleOverrides;return a&&(o=[o,a]),o};function sT(e){const t=nT({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return R.jsxs(M.Fragment,{children:[R.jsx(rT,{styles:i=>aT(i,r)}),n]})}const uT=new s_({uri:"https://graphql.contentful.com/content/v1/spaces/ddn5evy552ly/",cache:new e_,headers:{Authorization:"Bearer VhiyzEkxrxNUIj2Th75Fm98eA6tFmtaqzIthKfiY6Ck"}});ju.createRoot(document.getElementById("root")).render(R.jsxs(Ah.StrictMode,{children:[R.jsx(sT,{}),R.jsx(y_,{client:uT,children:R.jsx(eO,{children:R.jsx(mO,{})})})]}))});export default lT();