1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9525],{1474:(e,t,r)=>{"use strict";r.d(t,{Hh:()=>ed});var n,i,o=r(71450),a="4.6.2";function s(e,t){return new Promise(function(r){return setTimeout(r,e,t)})}function u(e){return!!e&&"function"==typeof e.then}function c(e,t){try{var r=e();u(r)?r.then(function(e){return t(!0,e)},function(e){return t(!1,e)}):t(!0,r)}catch(e){t(!1,e)}}function l(e,t,r){return void 0===r&&(r=16),(0,o.sH)(this,void 0,void 0,function(){var n,i,a,s;return(0,o.YH)(this,function(o){switch(o.label){case 0:n=Array(e.length),i=Date.now(),a=0,o.label=1;case 1:if(!(a<e.length))return[3,4];if(n[a]=t(e[a],a),!((s=Date.now())>=i+r))return[3,3];return i=s,[4,new Promise(function(e){var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(null)})];case 2:o.sent(),o.label=3;case 3:return++a,[3,1];case 4:return[2,n]}})})}function f(e){return e.then(void 0,function(){}),e}function d(e){return parseInt(e)}function p(e){return parseFloat(e)}function h(e,t){return"number"==typeof e&&isNaN(e)?t:e}function v(e){return e.reduce(function(e,t){return e+ +!!t},0)}function m(e,t){if(void 0===t&&(t=1),Math.abs(t)>=1)return Math.round(e/t)*t;var r=1/t;return Math.round(e*r)/r}function y(e,t){var r,n,i=e[0]>>>16,o=65535&e[0],a=e[1]>>>16,s=65535&e[1],u=t[0]>>>16,c=65535&t[0],l=t[1]>>>16,f=65535&t[1],d=0,p=0;r=0+((n=0+(s+f))>>>16),n&=65535,r+=a+l,p+=r>>>16,r&=65535,p+=o+c,d+=p>>>16,p&=65535,d+=i+u,d&=65535,e[0]=d<<16|p,e[1]=r<<16|n}function g(e,t){var r,n,i=e[0]>>>16,o=65535&e[0],a=e[1]>>>16,s=65535&e[1],u=t[0]>>>16,c=65535&t[0],l=t[1]>>>16,f=65535&t[1],d=0,p=0;r=0+((n=0+s*f)>>>16),n&=65535,r+=a*f,p+=r>>>16,r&=65535,r+=s*l,p+=r>>>16,r&=65535,p+=o*f,d+=p>>>16,p&=65535,p+=a*l,d+=p>>>16,p&=65535,p+=s*c,d+=p>>>16,p&=65535,d+=i*f+o*l+a*c+s*u,d&=65535,e[0]=d<<16|p,e[1]=r<<16|n}function b(e,t){var r=e[0];32==(t%=64)?(e[0]=e[1],e[1]=r):t<32?(e[0]=r<<t|e[1]>>>32-t,e[1]=e[1]<<t|r>>>32-t):(t-=32,e[0]=e[1]<<t|r>>>32-t,e[1]=r<<t|e[1]>>>32-t)}function w(e,t){0!=(t%=64)&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<<t):(e[0]=e[1]<<t-32,e[1]=0))}function k(e,t){e[0]^=t[0],e[1]^=t[1]}var S=[0xff51afd7,0xed558ccd],C=[0xc4ceb9fe,0x1a85ec53];function x(e){var t=[0,e[0]>>>1];k(e,t),g(e,S),t[1]=e[0]>>>1,k(e,t),g(e,C),t[1]=e[0]>>>1,k(e,t)}var E=[0x87c37b91,0x114253d5],_=[0x4cf5ad43,0x2745937f],T=[0,5],O=[0,0x52dce729],I=[0,0x38495ab5];function R(){var e=window,t=navigator;return v(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function P(){var e=window,t=navigator;return v(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,0===(t.vendor||"").indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function D(){var e=window;return v(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===navigator.vendor.indexOf("Apple"),"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function L(){var e=window,t=e.HTMLElement,r=e.Document;return v(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),r&&"pointerLockElement"in r.prototype])>=4}function F(){var e,t=window;return e=t.print,/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))&&"[object WebPageNamespace]"===String(t.browser)}function M(){var e,t,r=window;return v(["buildID"in navigator,"MozAppearance"in(null!=(t=null==(e=document.documentElement)?void 0:e.style)?t:{}),"onmozfullscreenchange"in r,"mozInnerScreenX"in r,"CSSMozDocumentRule"in r,"CanvasCaptureMediaStream"in r])>=4}function A(){var e=window,t=navigator,r=e.CSS,n=e.HTMLButtonElement;return v([!("getStorageUpdates"in t),n&&"popover"in n.prototype,"CSSCounterStyleRule"in e,r.supports("font-size-adjust: ex-height 0.5"),r.supports("text-transform: full-width")])>=4}function V(){var e=P(),t=M(),r=window,n=navigator,i="connection";return e?v([!("SharedWorker"in r),n[i]&&"ontypechange"in n[i],!("sinkId"in new Audio)])>=2:!!t&&v(["onorientationchange"in r,"orientation"in r,/android/i.test(n.appVersion)])>=2}function j(e){var t=Error(e);return t.name=e,t}function q(e,t,r){var n,i,a;return void 0===r&&(r=50),(0,o.sH)(this,void 0,void 0,function(){var u,c;return(0,o.YH)(this,function(o){switch(o.label){case 0:u=document,o.label=1;case 1:if(u.body)return[3,3];return[4,s(r)];case 2:return o.sent(),[3,1];case 3:c=u.createElement("iframe"),o.label=4;case 4:return o.trys.push([4,,10,11]),[4,new Promise(function(e,r){var n=!1,i=function(){n=!0,e(
1)};c.onload=i,c.onerror=function(e){n=!0,r(e)};var o=c.style;o.setProperty("display","block","important"),o.position="absolute",o.top="0",o.left="0",o.visibility="hidden",t&&"srcdoc"in c?c.srcdoc=t:c.src="about:blank",u.body.appendChild(c);var a=function(){var e,t;n||((null==(t=null==(e=c.contentWindow)?void 0:e.document)?void 0:t.readyState)==="complete"?i():setTimeout(a,10))};a()})];case 5:o.sent(),o.label=6;case 6:if(null==(i=null==(n=c.contentWindow)?void 0:n.document)?void 0:i.body)return[3,8];return[4,s(r)];case 7:return o.sent(),[3,6];case 8:return[4,e(c,c.contentWindow)];case 9:return[2,o.sent()];case 10:return null==(a=c.parentNode)||a.removeChild(c),[7];case 11:return[2]}})})}var N=["monospace","sans-serif","serif"],Q=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function W(e){return e.toDataURL()}function H(){var e=screen;return[h(p(e.availTop),null),h(p(e.width)-p(e.availWidth)-h(p(e.availLeft),0),null),h(p(e.height)-p(e.availHeight)-h(p(e.availTop),0),null),h(p(e.availLeft),null)]}function z(e){for(var t=0;t<4;++t)if(e[t])return!1;return!0}function B(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function G(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function Y(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}function U(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function Z(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function J(e){return matchMedia("(prefers-reduced-transparency: ".concat(e,")")).matches}function X(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var K=Math,$=function(){return 0},ee={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},et=function(){for(var e=window;;){var t=e.parent;if(!t||t===e)return!1;try{if(t.location.origin!==e.location.origin)return!0}catch(e){if(e instanceof Error&&"SecurityError"===e.name)return!0;throw e}e=t}},er=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),en=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),ei=["FRAGMENT_SHADER","VERTEX_SHADER"],eo=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],ea="WEBGL_debug_renderer_info";function es(e){if(e.webgl)return e.webgl.context;var t,r=document.createElement("canvas");r.addEventListener("webglCreateContextError",function(){return t=void 0});for(var n=0,i=["webgl","experimental-webgl"];n<i.length;n++){var o=i[n];try{t=r.getContext(o)}catch(e){}if(t)break}return e.webgl={context:t},t}function eu(e){return Object.keys(e.__proto__).filter(ec)}function ec(e){return"string"==typeof e&&!e.match(/[^A-Z0-9_x]/)}function el(e){return"function"==typeof e.getParameter}var ef={fonts:function(){var e=this;return q(function(t,r){var n=r.document;return(0,o.sH)(e,void 0,void 0,function(){var e,t,r,i,a,s,u,c,l;return(0,o.YH)(this,function(o){for((e=n.body).style.fontSize="48px",(t=n.createElement("div")).style.setProperty("visibility","hidden","important"),r={},i={},a=function(e){var r=n.createElement("span"),i=r.style;return i.position="absolute",i.top="0",i.left="0",i.fontFamily=e,r.textContent="mmMwWLliI0O&1",t.appendChild(r),r},s=function(){for(var e={},t=function(t){e[t]=N.map(function(e){return a("'".concat(t,"',").concat(e))})},r=0;r<Q.length;r++)t(Q[r]);return e},u=N.map(a),c=s(),e.appendChild(t),l=0;l<N.length;l++)r[N[l]]=u[l].offsetWidth,i[N[l]]=u[l].offsetHeight;return[2,Q.filter(function(e){var t;return t=c[e],N.some(function(e,n){return t[n].offsetWidth!==r[e]||t[n].offsetHeight!==i[e]})})]})})})},domBlockers:function(e){var t=(void 0===e?{}:e).debug;return(0,o.sH)(this,void 0,void 0,function(){var e,r,n,i,a;return(0,o.YH)(this,function(u){switch(u.label){case 0:var c;if(!(D()||V()))return[2,void 0];return r=Object.keys(e={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',(c=atob)("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",c("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",c("LnNwb25zb3JpdA=="),".ylamainos",c("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),c("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZH
1BlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",c("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",c("LmhlYWRlci1ibG9ja2VkLWFk"),c("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",c("I2FkXzMwMFgyNTA="),c("I2Jhbm5lcmZsb2F0MjI="),c("I2NhbXBhaWduLWJhbm5lcg=="),c("I0FkLUNvbnRlbnQ=")],adGuardChinese:[c("LlppX2FkX2FfSA=="),c("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",c("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),c("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",c("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",c("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",c("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),c("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),c("LmFkZ29vZ2xl"),c("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[c("YW1wLWF1dG8tYWRz"),c("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",c("I2FkX2ludmlld19hcmVh")],adGuardRussian:[c("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),c("LnJlY2xhbWE="),'div[id^="smi2adblock"]',c("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[c("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),c("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",c("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),c("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),c("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",c("I3Jla2xhbWk="),c("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),c("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),c("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[c("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",c("LndpZGdldF9wb19hZHNfd2lkZ2V0"),c("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",c("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[c("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),c("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",c("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",c("I3Jla2xhbW5pLWJveA=="),c("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",c("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[c("I2FkdmVydGVudGll"),c("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",c("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",c("LnNwb25zb3JsaW5rZ3J1ZW4="),c("I3dlcmJ1bmdza3k="),c("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),c("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[c("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",c("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),c("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),c("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[c("LnJla2xhbW9zX3RhcnBhcw=="),c("LnJla2xhbW9zX251b3JvZG9z"),c("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),c("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),c("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[c("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[c("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),c("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiX
1Q=="),"article.category-samarbete",c("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[c("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),c("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),c("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",c("LmFkX19tYWlu"),c("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[c("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[c("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),c("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[c("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),c("I2xpdmVyZUFkV3JhcHBlcg=="),c("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),c("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[c("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",c("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),c("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),c("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[c("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),c("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),c("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",c("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),c("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),c("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiX
1Q=="),c("ZGl2I3NrYXBpZWNfYWQ=")],ro:[c("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),c("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),c("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),c("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[c("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),c("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),c("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",c("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),c("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",c("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}),[4,function(e){var t;return(0,o.sH)(this,void 0,void 0,function(){var r,n,i,a,u,c,l;return(0,o.YH)(this,function(o){switch(o.label){case 0:for(n=(r=document).createElement("div"),i=Array(e.length),a={},B(n),u=0;u<e.length;++u)"DIALOG"===(c=function(e){for(var t=function(e){for(var t,r,n="Unexpected syntax '".concat(e,"'"),i=/^\s*([a-z-]*)(.*)$/i.exec(e),o=i[1]||void 0,a={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(e,t){a[e]=a[e]||[],a[e].push(t)};;){var c=s.exec(i[2]);if(!c)break;var l=c[0];switch(l[0]){case".":u("class",l.slice(1));break;case"#":u("id",l.slice(1));break;case"[":var f=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(l);if(f)u(f[1],null!=(r=null!=(t=f[4])?t:f[5])?r:"");else throw Error(n);break;default:throw Error(n)}}return[o,a]}(e),r=t[0],n=t[1],i=document.createElement(null!=r?r:"div"),o=0,a=Object.keys(n);o<a.length;o++){var s=a[o],u=n[s].join(" ");"style"===s?function(e,t){for(var r=0,n=t.split(";");r<n.length;r++){var i=n[r],o=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(i);if(o){var a=o[1],s=o[2],u=o[4];e.setProperty(a,s,u||"")}}}(i.style,u):i.setAttribute(s,u)}return i}(e[u])).tagName&&c.show(),B(l=r.createElement("div")),l.appendChild(c),n.appendChild(l),i[u]=c;o.label=1;case 1:if(r.body)return[3,3];return[4,s(50)];case 2:return o.sent(),[3,1];case 3:r.body.appendChild(n);try{for(u=0;u<e.length;++u)i[u].offsetParent||(a[e[u]]=!0)}finally{null==(t=n.parentNode)||t.removeChild(n)}return[2,a]}})})}((a=[]).concat.apply(a,r.map(function(t){return e[t]})))];case 1:return n=u.sent(),t&&function(e,t){for(var r="DOM blockers debug:\n```",n=0,i=Object.keys(e);n<i.length;n++){var o=i[n];r+="\n".concat(o,":");for(var a=0,s=e[o];a<s.length;a++){var u=s[a];r+="\n ".concat(t[u]?"\uD83D\uDEAB":"â¡ï¸"," ").concat(u)}}console.log("".concat(r,"\n```"))}(e,n),(i=r.filter(function(t){var r=e[t];return v(r.map(function(e){return n[e]}))>.6*r.length})).sort(),[2,i]}})})},fontPreferences:function(){var e,t;return e=function(e,t){for(var r={},n={},i=0,o=Object.keys(ee);i<o.length;i++){var a=o[i],s=ee[a],u=s[0],c=void 0===u?{}:u,l=s[1],f=void 0===l?"mmMwWLliI0fiflO&1":l,d=e.createElement("span");d.textContent=f,d.style.whiteSpace="nowrap";for(var p=0,h=Object.keys(c);p<h.length;p++){var v=h[p],m=c[v];void 0!==m&&(d.style[v]=m)}r[a]=d,t.append(e.createElement("br"),d)}for(var y=0,g=Object.keys(ee);y<g.length;y++){var a=g[y];n[a]=r[a].getBoundingClientRect().width}return n},void 0===t&&(t=4e3),q(function(r,n){var i=n.document,a=i.body,s=a.style;s.width="".concat(t,"px"),s.webkitTextSizeAdjust=s.textSizeAdjust="none",P()?a.style.zoom="".concat(1/n.devicePixelRatio):D()&&(a.style.zoom="reset");var u=i.createElement("div");return u.textContent=(0,o.fX)([],Array(t/20|0),!0).map(function(){return"word"}).join(" "),a.appendChild(u),e(i,a)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')},audio:function(){var e,t,r,n,i,o;return D()&&A()&&F()||P()&&(e=navigator,t=window,v(["srLatency"in(r=Audio.prototype),"srChannelCount"in r,"devicePosture"in e,(n=t.visualViewport)&&"segments"in n,"getTextInformation"in Image.prototype])>=3)&&(o=(i=window).URLPattern,v(["union"in Set.prototype,"Iterator"in i,o&&"hasRegExpGroups"in o.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3)?-4:function(){var e,t,r,n=window,i=n.OfflineAudioContext||n.webkitOfflineAudioContext;if(!i)return -2;if(D()&&!L()&&!(v(["DOMRectList"in(e=window),"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3))return -1;var o=new i(1,5e3,44100),a=o.createOscillator();a.type="triangle",a.frequency.value=1e4;var s=o.createDynamicsCompressor();s.threshold.value=-50,s.knee.value=40,s.ratio.value=12,s.attack.value=0,s.release.value=.25,a.connect(s),s.connect(o.destination),a.start(0);var c=(t=o,r=function(){},[new Promise(function(e,n){var i=!1,o=0,a=0;t.oncomplete=function(t){return e(t.renderedBuffer)};var s=function(){setTimeout(function(){return n(j("timeout"))},Math.min(500,a+5e3-Date.now()))},c=function(){try{var e=t.startRendering();switch(u(e)&&f(e),t.state){case"running":a=Date.now(),i&&s();break;case"suspended":!document.hidden&&o++,i&&o>=3?n(j("suspended")):setTimeout(c,500)}}catch(e){n(e)}};c(),r=function(){!i&&(i=!0,a>0&&s())}}),r]),l=c[0],d=c[1],p=f(l.then(function(e){for(var t=e.getChannelData(0).subarray(4500),r=0,n=0;n<t.length;++n)r+=Math.abs(t[n]);return r},function(e){if("timeout"===e.name||"suspended"===e.name)return -3;throw e}));return function(){return d(),p}}()},screenFrame:function(){var e=this;if(D()&&A()&&F())return function(){return Promise.resolve(void 0)};var t=function(){var e=this;if(void 0===i){var t=function(){var e=H();z(e)?i=setTimeout(t,2500):(n=e,i=void 0)};t()}return function(){return(0,o.sH)(e,void 0,void 0,function(){var e;return(0,o.YH)(this,function(t){switch(t.label){case 0:var r,i;if(!z(e=H()))return[3,2];if(n)return[2,(0,o.fX)([],n,!0)];if(!((r=document).fullscreenElement||r.msFullscreenElement||r.mozFullScreenElement||r.webkitFullscreenElement))return[3,2];return[4,((i=document).exitFullscreen||i.msExitFullscreen||i.moz
1CancelFullScreen||i.webkitExitFullscreen).call(i)];case 1:t.sent(),e=H(),t.label=2;case 2:return z(e)||(n=e),[2,e]}})})}}();return function(){return(0,o.sH)(e,void 0,void 0,function(){var e,r;return(0,o.YH)(this,function(n){switch(n.label){case 0:return[4,t()];case 1:return e=n.sent(),[2,[(r=function(e){return null===e?null:m(e,10)})(e[0]),r(e[1]),r(e[2]),r(e[3])]]}})})}},canvas:function(){var e,t,r,n,i,o,a,s,u,c,l,f,d,p,h,v,m;return e=D()&&A()&&F(),o=!1,s=(a=((t=document.createElement("canvas")).width=1,t.height=1,[t,t.getContext("2d")]))[0],u=a[1],(c=s,u&&c.toDataURL)?((l=u).rect(0,0,10,10),l.rect(2,2,6,6),o=!l.isPointInPath(5,5,"evenodd"),e?n=i="skipped":(n=(f=s,d=u,p=f,h=d,p.width=240,p.height=60,h.textBaseline="alphabetic",h.fillStyle="#f60",h.fillRect(100,1,62,20),h.fillStyle="#069",h.font='11pt "Times New Roman"',v="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835)),h.fillText(v,2,15),h.fillStyle="rgba(102, 204, 0, 0.2)",h.font="18pt Arial",h.fillText(v,4,45),r=(m=W(f))!==W(f)?["unstable","unstable"]:(function(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(var r=0,n=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];r<n.length;r++){var i=n[r],o=i[0],a=i[1],s=i[2];t.fillStyle=o,t.beginPath(),t.arc(a,s,40,0,2*Math.PI,!0),t.closePath(),t.fill()}t.fillStyle="#f9c",t.arc(60,60,60,0,2*Math.PI,!0),t.arc(60,60,20,0,2*Math.PI,!0),t.fill("evenodd")}(f,d),[W(f),m]))[0],i=r[1])):n=i="unsupported",{winding:o,geometry:n,text:i}},osCpu:function(){return navigator.oscpu},languages:function(){var e,t=navigator,r=[],n=t.language||t.userLanguage||t.browserLanguage||t.systemLanguage;if(void 0!==n&&r.push([n]),Array.isArray(t.languages))P()&&v([!("MediaSettingsRange"in(e=window)),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3||r.push(t.languages);else if("string"==typeof t.languages){var i=t.languages;i&&r.push(i.split(","))}return r},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return h(p(navigator.deviceMemory),void 0)},screenResolution:function(){if(!(D()&&A()&&F())){var e,t,r;return e=screen,(r=[(t=function(e){return h(d(e),null)})(e.width),t(e.height)]).sort().reverse(),r}},hardwareConcurrency:function(){return h(d(navigator.hardwareConcurrency),void 0)},timezone:function(){var e,t,r=null==(t=window.Intl)?void 0:t.DateTimeFormat;if(r){var n=new r().resolvedOptions().timeZone;if(n)return n}var i=-Math.max(p(new Date(e=new Date().getFullYear(),0,1).getTimezoneOffset()),p(new Date(e,6,1).getTimezoneOffset()));return"UTC".concat(i>=0?"+":"").concat(i)},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){var e,t;if(!(R()||v(["msWriteProfilerMark"in(e=window),"MSStream"in e,"msLaunchUri"in(t=navigator),"msSaveBlob"in t])>=3&&!R()))try{return!!window.indexedDB}catch(e){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var e=navigator.platform;return"MacIntel"===e&&D()&&!L()?!function(){if("iPad"===navigator.platform)return!0;var e=screen,t=e.width/e.height;return v(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}()?"iPhone":"iPad":e},plugins:function(){var e=navigator.plugins;if(e){for(var t=[],r=0;r<e.length;++r){var n=e[r];if(n){for(var i=[],o=0;o<n.length;++o){var a=n[o];i.push({type:a.type,suffixes:a.suffixes})}t.push({name:n.name,description:n.description,mimeTypes:i})}}return t}},touchSupport:function(){var e,t=navigator,r=0;void 0!==t.maxTouchPoints?r=d(t.maxTouchPoints):void 0!==t.msMaxTouchPoints&&(r=t.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return{maxTouchPoints:r,touchEvent:e,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var e=[],t=0,r=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];t<r.length;t++){var n=r[t],i=window[n];i&&"object"==typeof i&&e.push(n)}return e.sort()},cookiesEnabled:function(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var t=-1!==e.cookie.indexOf("cookietest=");return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch(e){return!1}},colorGamut:function(){for(var e=0,t=["rec2020","p3","srgb"];e<t.length;e++){var r=t[e];if(matchMedia("(color-gamut: ".concat(r,")")).matches)return r}},invertedColors:function(){return!!G("inverted")||!G("none")&&void 0},forcedColors:function(){return!!Y("active")||!Y("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=100;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw Error("Too high value")}},contrast:function(){return U("no-preference")?0:U("high")||U("more")?1:U("low")||U("less")?-1:U("forced")?10:void 0},reducedMotion:function(){return!!Z("reduce")||!Z("no-preference")&&void 0},reducedTransparency:function(){return!!J("reduce")||!J("no-preference")&&void 0},hdr:function(){return!!X("high")||!X("standard")&&void 0},math:function(){var e=K.acos||$,t=K.acosh||$,r=K.asin||$,n=K.asinh||$,i=K.atanh||$,o=K.atan||$,a=K.sin||$,s=K.sinh||$,u=K.cos||$,c=K.cosh||$,l=K.tan||$,f=K.tanh||$,d=K.exp||$,p=K.expm1||$,h=K.log1p||$;return{acos:e(.12312423423423424),acosh:t(1e308),acoshPf:K.log(1e154+K.sqrt(1e154*1e154-1)),asin:r(.12312423423423424),asinh:n(1),asinhPf:K.log(1+K.sqrt(2)),atanh:i(.5),atanhPf:K.log(3)/2,atan:o(.5),sin:a(-1e300),sinh:s(1),sinhPf:K.exp(1)-1/K.exp(1)/2,cos:u(10.000000000123),cosh:c(1),coshPf:(K.exp(1)+1/K.exp(1))/2,tan:l(-1e300),tanh:f(1),tanhPf:(K.exp(2)-1)/(K.exp(2)+1),exp:d(1),expm1:p(1),expm1Pf:K.exp(1)-1,log1p:h(10),log1pPf:K.log(11),powPI:K.pow(K.PI,-100)}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]},applePay:function(){var e=window.ApplePaySession;if("function"!=typeof(null==e?void 0:e.canMakePayments))return -1;if(et())return -3;try{return+!!e.canMakePayments()}catch(e){var t=e;if(t instanceof Error&&"InvalidAccessError"===t.name&&/\bfrom\b.*\binsecure\b/i.test(t.message))return -2;throw t}},privateClickMeasurement:function(){var e,t=document.createElement("a"),r=null!=(e=t.attributionSourceId)?e:t.attributionsourceid;return void 0===r?void 0:String(r)},audioBaseLatency:function(){if(!(V()||D()))return -2;if(!window.AudioContext)return -1;var e=new AudioContext().baseLatency;return null==e?-1:isFinite(e)?e:-3},dateTimeLocale:function(){if(!window.Intl)return -1;var e=window.Intl.DateTimeFormat;if(!e)return -2;var t=e().resolvedOptions().locale;return t||""===t?t:-3},webGlBasics:function(e){var t,r,n,i,o,a,s=es(e.cache);
1if(!s)return -1;if(!el(s))return -2;var u=M()?null:s.getExtension(ea);return{version:(null==(t=s.getParameter(s.VERSION))?void 0:t.toString())||"",vendor:(null==(r=s.getParameter(s.VENDOR))?void 0:r.toString())||"",vendorUnmasked:u?null==(n=s.getParameter(u.UNMASKED_VENDOR_WEBGL))?void 0:n.toString():"",renderer:(null==(i=s.getParameter(s.RENDERER))?void 0:i.toString())||"",rendererUnmasked:u?null==(o=s.getParameter(u.UNMASKED_RENDERER_WEBGL))?void 0:o.toString():"",shadingLanguageVersion:(null==(a=s.getParameter(s.SHADING_LANGUAGE_VERSION))?void 0:a.toString())||""}},webGlExtensions:function(e){var t=es(e.cache);if(!t)return -1;if(!el(t))return -2;var r=t.getSupportedExtensions(),n=t.getContextAttributes(),i=[],o=[],a=[],s=[],u=[];if(n)for(var c=0,l=Object.keys(n);c<l.length;c++){var f=l[c];o.push("".concat(f,"=").concat(n[f]))}for(var d=eu(t),p=0;p<d.length;p++){var h=d[p],v=t[h];a.push("".concat(h,"=").concat(v).concat(er.has(v)?"=".concat(t.getParameter(v)):""))}if(r)for(var m=0;m<r.length;m++){var y=r[m];if(!(y===ea&&M()||"WEBGL_polygon_mode"===y&&(P()||D()))){var g=t.getExtension(y);if(!g){i.push(y);continue}for(var b=0,w=eu(g);b<w.length;b++){var h=w[b],v=g[h];s.push("".concat(h,"=").concat(v).concat(en.has(v)?"=".concat(t.getParameter(v)):""))}}}for(var k=0;k<ei.length;k++)for(var S=ei[k],C=0;C<eo.length;C++){var x=eo[C],E=function(e,t,r){var n=e.getShaderPrecisionFormat(e[t],e[r]);return n?[n.rangeMin,n.rangeMax,n.precision]:[]}(t,S,x);u.push("".concat(S,".").concat(x,"=").concat(E.join(",")))}return s.sort(),a.sort(),{contextAttributes:o,parameters:a,shaderPrecisions:u,extensions:r,extensionParameters:s,unsupportedExtensions:i}}};function ed(e){var t;return void 0===e&&(e={}),(0,o.sH)(this,void 0,void 0,function(){var r,n;return(0,o.YH)(this,function(i){var u,d,p,h,v,S,C,R,P,M,j,q;switch(i.label){case 0:return(null==(t=e.monitoring)||t)&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(a,"/npm-monitoring"),!0),e.send()}catch(e){console.error(e)}}(),r=e.delayFallback,n=e.debug,[4,(void 0===(u=r)&&(u=50),d=u,p=2*u,(h=window.requestIdleCallback)?new Promise(function(e){return h.call(window,function(){return e()},{timeout:p})}):s(Math.min(d,p)))];case 1:return i.sent(),v={cache:{},debug:n},S=[],P=f(l(R=Object.keys(ef).filter(function(e){return!function(e,t){for(var r=0,n=e.length;r<n;++r)if(e[r]===t)return!0;return!1}(S,e)}),function(e){var t,r;return t=ef[e],r=f(new Promise(function(e){var r=Date.now();c(t.bind(null,v),function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=Date.now()-r;if(!t[0])return e(function(){return{error:t[1],duration:i}});var o=t[1];if("function"!=typeof o)return e(function(){return{value:o,duration:i}});e(function(){return new Promise(function(e){var t=Date.now();c(o,function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=i+Date.now()-t;if(!r[0])return e({error:r[1],duration:o});e({value:r[1],duration:o})})})})})})),function(){return r.then(function(e){return e()})}},void 0)),[2,(M=function(){return(0,o.sH)(this,void 0,void 0,function(){var e,t,r;return(0,o.YH)(this,function(n){switch(n.label){case 0:return[4,P];case 1:return[4,l(n.sent(),function(e){return f(e())},C)];case 2:return[4,Promise.all(n.sent())];case 3:for(r=0,e=n.sent(),t={};r<R.length;++r)t[R[r]]=e[r];return[2,t]}})})},j=n,q=Date.now(),{get:function(e){return(0,o.sH)(this,void 0,void 0,function(){var t,r,n;return(0,o.YH)(this,function(i){switch(i.label){case 0:return t=Date.now(),[4,M()];case 1:var s,u,c,l;return n={get visitorId(){return void 0===l&&(l=function(e,t){var r,n=function(e){for(var t=new Uint8Array(e.length),r=0;r<e.length;r++){var n=e.charCodeAt(r);if(n>127)return new TextEncoder().encode(e);t[r]=n}return t}(e);t=t||0;var i=[0,n.length],o=i[1]%16,a=i[1]-o,s=[0,t],u=[0,t],c=[0,0],l=[0,0];for(r=0;r<a;r+=16)c[0]=n[r+4]|n[r+5]<<8|n[r+6]<<16|n[r+7]<<24,c[1]=n[r]|n[r+1]<<8|n[r+2]<<16|n[r+3]<<24,l[0]=n[r+12]|n[r+13]<<8|n[r+14]<<16|n[r+15]<<24,l[1]=n[r+8]|n[r+9]<<8|n[r+10]<<16|n[r+11]<<24,g(c,E),b(c,31),g(c,_),k(s,c),b(s,27),y(s,u),g(s,T),y(s,O),g(l,_),b(l,33),g(l,E),k(u,l),b(u,31),y(u,s),g(u,T),y(u,I);c[0]=0,c[1]=0,l[0]=0,l[1]=0;var f=[0,0];switch(o){case 15:f[1]=n[r+14],w(f,48),k(l,f);case 14:f[1]=n[r+13],w(f,40),k(l,f);case 13:f[1]=n[r+12],w(f,32),k(l,f);case 12:f[1]=n[r+11],w(f,24),k(l,f);case 11:f[1]=n[r+10],w(f,16),k(l,f);case 10:f[1]=n[r+9],w(f,8),k(l,f);case 9:f[1]=n[r+8],k(l,f),g(l,_),b(l,33),g(l,E),k(u,l);case 8:f[1]=n[r+7],w(f,56),k(c,f);case 7:f[1]=n[r+6],w(f,48),k(c,f);case 6:f[1]=n[r+5],w(f,40),k(c,f);case 5:f[1]=n[r+4],w(f,32),k(c,f);case 4:f[1]=n[r+3],w(f,24),k(c,f);case 3:f[1]=n[r+2],w(f,16),k(c,f);case 2:f[1]=n[r+1],w(f,8),k(c,f);case 1:f[1]=n[r],k(c,f),g(c,E),b(c,31),g(c,_),k(s,c)}return k(s,i),k(u,i),y(s,u),y(u,s),x(s),x(u),y(s,u),y(u,s),("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)+("00000000"+(u[0]>>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)}(function(e){for(var t="",r=0,n=Object.keys(e).sort();r<n.length;r++){var i=n[r],o=e[i],a="error"in o?"error":JSON.stringify(o.value);t+="".concat(t?"|":"").concat(i.replace(/([:|\\])/g,"\\$1"),":").concat(a)}return t}(this.components))),l},set visitorId(visitorId){l=visitorId},confidence:(c=m(.99+.01*(u=function(e){if(V())return .4;if(D())return L()&&!(A()&&F())?.5:.3;var t="value"in e.platform?e.platform.value:"";return/^Win/.test(t)?.6:/^Mac/.test(t)?.5:.7}(s=r=i.sent())),1e-4),{score:u,comment:"$ if upgrade to Pro: https://fpjs.dev/pro".replace(/\$/g,"".concat(c))}),components:s,version:a},(j||(null==e?void 0:e.debug))&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(n.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(t-q,"\nvisitorId: ").concat(n.visitorId,"\ncomponents: ").concat(JSON.stringify(r,function(e,t){if(t instanceof Error){var r;return(0,o.Cl)({name:t.name,message:t.message,stack:null==(r=t.stack)?void 0:r.split("\n")},t)}return t},2),"\n```")),[2,n]}})})}})]}})})}},2066:(e,t,r)=>{"use strict";function n(){return"undefined"!=typeof window}function i(e){return s(e)?(e.nodeName||"").toLowerCase():"#document"}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){var t;return null==(t=(s(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function s(e){return!!n()&&(e instanceof Node||e instanceof o(e).Node)}function u(e){return!!n()&&(e instanceof Element||e instanceof o(e).Element)}function c(e){return!!n()&&(e instanceof HTMLElement||e instanceof o(e).HTMLElement)}function l(e){return!!n()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}r.d(t,{$4:()=>T,CP:()=>_,L9:()=>E,Lv:()=>h,Tc:()=>S,Tf:()=>m,ZU:()=>d,_m:()=>O,ep:()=>a,eu:()=>x,gJ:()=>k,mq:()=>i,sQ:()=>w,sb:()=>c,v9:()=>function e(t,r,n){var i;void 0===r&&(r=[]),void 0===n&&(n=!0);let a=function e(t){let r=T(t);return x(r)?t.ownerDocument?t.ownerDocument.body:t.body:c(r)&&d(r)?r:e(r)}(t),s=a===(null==(i=t.ownerDocument)?void 0:i.body),u=o(a);if(s){let t=O(u);
1return r.concat(u,u.visualViewport||[],d(a)?a:[],t&&n?e(t):[])}return r.concat(a,e(a,[],n))},vq:()=>u,zk:()=>o});let f=new Set(["inline","contents"]);function d(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=E(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!f.has(i)}let p=new Set(["table","td","th"]);function h(e){return p.has(i(e))}let v=[":popover-open",":modal"];function m(e){return v.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let y=["transform","translate","scale","rotate","perspective"],g=["transform","translate","scale","rotate","perspective","filter"],b=["paint","layout","strict","content"];function w(e){let t=S(),r=u(e)?E(e):e;return y.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||g.some(e=>(r.willChange||"").includes(e))||b.some(e=>(r.contain||"").includes(e))}function k(e){let t=T(e);for(;c(t)&&!x(t);){if(w(t))return t;if(m(t))break;t=T(t)}return null}function S(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let C=new Set(["html","body","#document"]);function x(e){return C.has(i(e))}function E(e){return o(e).getComputedStyle(e)}function _(e){return u(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function T(e){if("html"===i(e))return e;let t=e.assignedSlot||e.parentNode||l(e)&&e.host||a(e);return l(t)?t.host:t}function O(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},3538:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(12115),i=r(85986),o=r(91553),a=r(53182);function s({disabled:e=!1}={}){let t=(0,n.useRef)(null),[r,u]=(0,n.useState)(!1),c=(0,o.L)(),l=(0,a._)(()=>{t.current=null,u(!1),c.dispose()}),f=(0,a._)(e=>{if(c.dispose(),null===t.current){t.current=e.currentTarget,u(!0);{let r=(0,i.TW)(e.currentTarget);c.addEventListener(r,"pointerup",l,!1),c.addEventListener(r,"pointermove",e=>{if(t.current){var r,n;let i,o;u((i=e.width/2,o=e.height/2,r={top:e.clientY-o,right:e.clientX+i,bottom:e.clientY+o,left:e.clientX-i},n=t.current.getBoundingClientRect(),!(!r||!n||r.right<n.left||r.left>n.right||r.bottom<n.top||r.top>n.bottom)))}},!1),c.addEventListener(r,"pointercancel",l,!1)}}});return{pressed:r,pressProps:e?{}:{onPointerDown:f,onPointerUp:l,onClick:l}}}},4651:e=>{e.exports=function(e){return e!=e}},5325:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(12115);function i(){let e=(0,n.useRef)(new Map),t=(0,n.useCallback)((t,r,n,i)=>{let o=(null==i?void 0:i.once)?(...t)=>{e.current.delete(n),n(...t)}:n;e.current.set(n,{type:r,eventTarget:t,fn:o,options:i}),t.addEventListener(r,o,i)},[]),r=(0,n.useCallback)((t,r,n,i)=>{var o;let a=(null==(o=e.current.get(n))?void 0:o.fn)||n;t.removeEventListener(r,a,i),e.current.delete(n)},[]),i=(0,n.useCallback)(()=>{e.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]);return(0,n.useEffect)(()=>i,[i]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:i}}},5379:(e,t,r)=>{"use strict";r.d(t,{N:()=>u});var n=r(12115),i=(e,t,r,n,i,o,a,s)=>{let u=document.documentElement,c=["light","dark"];function l(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,n=r&&o?i.map(e=>o[e]||e):i;r?(u.classList.remove(...n),u.classList.add(o&&o[t]?o[t]:t)):u.setAttribute(e,t)}),r=t,s&&c.includes(r)&&(u.style.colorScheme=r)}if(n)l(n);else try{let e=localStorage.getItem(t)||r,n=a&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;l(n)}catch(e){}},o=["light","dark"],a="(prefers-color-scheme: dark)",s=n.createContext(void 0),u=e=>n.useContext(s)?n.createElement(n.Fragment,null,e.children):n.createElement(l,{...e}),c=["light","dark"],l=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:i=!0,storageKey:u="theme",themes:l=c,defaultTheme:v=r?"system":"light",attribute:m="data-theme",value:y,children:g,nonce:b,scriptProps:w})=>{let[k,S]=n.useState(()=>d(u,v)),[C,x]=n.useState(()=>"system"===k?h():k),E=y?Object.values(y):l,_=n.useCallback(e=>{let n=e;if(!n)return;"system"===e&&r&&(n=h());let a=y?y[n]:n,s=t?p(b):null,u=document.documentElement,c=e=>{"class"===e?(u.classList.remove(...E),a&&u.classList.add(a)):e.startsWith("data-")&&(a?u.setAttribute(e,a):u.removeAttribute(e))};if(Array.isArray(m)?m.forEach(c):c(m),i){let e=o.includes(v)?v:null,t=o.includes(n)?n:e;u.style.colorScheme=t}null==s||s()},[b]),T=n.useCallback(e=>{let t="function"==typeof e?e(k):e;S(t);try{localStorage.setItem(u,t)}catch(e){}},[k]),O=n.useCallback(t=>{x(h(t)),"system"===k&&r&&!e&&_("system")},[k,e]);n.useEffect(()=>{let e=window.matchMedia(a);
1return e.addListener(O),O(e),()=>e.removeListener(O)},[O]),n.useEffect(()=>{let e=e=>{e.key===u&&(e.newValue?S(e.newValue):T(v))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[T]),n.useEffect(()=>{_(null!=e?e:k)},[e,k]);let I=n.useMemo(()=>({theme:k,setTheme:T,forcedTheme:e,resolvedTheme:"system"===k?C:k,themes:r?[...l,"system"]:l,systemTheme:r?C:void 0}),[k,T,e,C,r,l]);return n.createElement(s.Provider,{value:I},n.createElement(f,{forcedTheme:e,storageKey:u,attribute:m,enableSystem:r,enableColorScheme:i,defaultTheme:v,value:y,themes:l,nonce:b,scriptProps:w}),g)},f=n.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:o,enableColorScheme:a,defaultTheme:s,value:u,themes:c,nonce:l,scriptProps:f})=>{let d=JSON.stringify([r,t,s,e,c,u,o,a]).slice(1,-1);return n.createElement("script",{...f,suppressHydrationWarning:!0,nonce:"",dangerouslySetInnerHTML:{__html:`(${i.toString()})(${d})`}})}),d=(e,t)=>{let r;try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t},p=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},h=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")},8725:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(12115);let i=function(e){var t=(0,n.createContext)(void 0);return[function(){var e=(0,n.useContext)(t);if(null==e)throw Error("useStateContext must be used inside a StateProvider.");return e},function(r){var i,o=r.children,a=r.initialValue;return i={value:(0,n.useState)(void 0!==a?a:e)},(0,n.createElement)(t.Provider,i,o)},t]}},10038:(e,t,r)=>{"use strict";r.d(t,{HQ:()=>s,JG:()=>a,ct:()=>o});var n=r(71450),i=r(20622);function o(e,t){var r=t,o=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw(0,i.vA)(74,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&o.push(e)}),void 0===r&&((0,i.V1)(1===o.length,75,o.length),r=o[0].name.value),(0,n.Cl)((0,n.Cl)({},e),{definitions:(0,n.fX)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function a(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function s(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return(0,i.V1)(n,76,r),n||null;default:return null}}},10208:(e,t,r)=>{"use strict";r.d(t,{B1:()=>I,C0:()=>d,Dz:()=>g,Jx:()=>s,LI:()=>o,PG:()=>h,RI:()=>a,Sg:()=>p,T9:()=>i,TV:()=>y,WJ:()=>w,_3:()=>f,bV:()=>T,jk:()=>n,lP:()=>_,nI:()=>O,qE:()=>l,sq:()=>v,w7:()=>b});let n=Math.min,i=Math.max,o=Math.round,a=Math.floor,s=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function l(e,t,r){return i(e,n(t,r))}function f(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function v(e){return"y"===e?"height":"width"}let m=new Set(["top","bottom"]);function y(e){return m.has(d(e))?"y":"x"}function g(e){return h(y(e))}function b(e,t,r){void 0===r&&(r=!1);let n=p(e),i=g(e),o=v(i),a="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=T(a)),[a,T(a)]}function w(e){let t=T(e);return[k(e),t,k(t)]}function k(e){return e.replace(/start|end/g,e=>c[e])}let S=["left","right"],C=["right","left"],x=["top","bottom"],E=["bottom","top"];function _(e,t,r,n){let i=p(e),o=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?C:S;return t?S:C;case"left":case"right":return t?x:E;default:return[]}}(d(e),"start"===r,n);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(k)))),o}function T(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function O(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function I(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}},10248:(e,t,r)=>{"use strict";r.d(t,{P:()=>T});var n=r(71450),i=r(22180),o=r(20622),a=r(83931),s=r(97056),u=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=(0,o.vA)(40,t,e.message);throw n.parseError=e,n}return r},c=function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")},l=r(81186);function f(e){var t={next:function(){return e.read()}};return l.uJ&&(t[Symbol.asyncIterator]=function(){return this}),t}var d=function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},p=r(59794),h=r(66260),v=Object.prototype.hasOwnProperty;function m(e,t){e.status>=300&&d(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}var y=function(e){if(!e&&"undefined"==typeof fetch)throw(0,o.vA)(38)},g=r(74742),b={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},w=function(e,t){return t(e)};function k(e){return new s.c(function(t){t.error(e)})}
1var S=r(50424),C=r(42527),x=r(53537),E=(0,o.no)(function(){return fetch}),_=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,_=e.fetch,T=e.print,O=void 0===T?w:T,I=e.includeExtensions,R=e.preserveHeaderCase,P=e.useGETForQueries,D=e.includeUnusedVariables,L=void 0!==D&&D,F=(0,n.Tt)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&y(_||E);var M={http:{includeExtensions:I,preserveHeaderCase:R},options:F.fetchOptions,credentials:F.credentials,headers:F.headers};return new i.C(function(e){var t,i,y,w,T,I,R=c(e,r),D=e.getContext(),F={};if(D.clientAwareness){var A=D.clientAwareness,V=A.name,j=A.version;V&&(F["apollographql-client-name"]=V),j&&(F["apollographql-client-version"]=j)}var q=(0,n.Cl)((0,n.Cl)({},F),D.headers),N={http:D.http,options:D.fetchOptions,credentials:D.credentials,headers:q};if((0,a.d8)(["client"],e.query)){var Q=(0,C.er)(e.query);if(!Q)return k(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=Q}var W=function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o={},a={};r.forEach(function(e){o=(0,n.Cl)((0,n.Cl)((0,n.Cl)({},o),e.options),{headers:(0,n.Cl)((0,n.Cl)({},o.headers),e.headers)}),e.credentials&&(o.credentials=e.credentials),a=(0,n.Cl)((0,n.Cl)({},a),e.http)}),o.headers&&(o.headers=function(e,t){if(!t){var r=Object.create(null);
1return Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]=e[t]}),r}var n=Object.create(null);Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}});var i=Object.create(null);return Object.keys(n).forEach(function(e){i[n[e].originalName]=n[e].value}),i}(o.headers,a.preserveHeaderCase));var s=e.operationName,u=e.extensions,c=e.variables,l=e.query,f={operationName:s,variables:c};return a.includeExtensions&&(f.extensions=u),a.includeQuery&&(f.query=t(l,g.y)),{options:o,body:f}}(e,O,b,M,N),H=W.options,z=W.body;z.variables&&!L&&(t=z.variables,i=e.query,y=(0,n.Cl)({},t),w=new Set(Object.keys(t)),(0,S.YR)(i,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&w.delete(e.name.value)}}),w.forEach(function(e){delete y[e]}),z.variables=y),H.signal||"undefined"==typeof AbortController||(H.signal=(I=new AbortController).signal);var B="OperationDefinition"===(T=(0,x.Vn)(e.query)).kind&&"subscription"===T.operation,G=(0,a.d8)(["defer"],e.query);if(P&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(H.method="GET"),G||B){H.headers=H.headers||{};var Y="multipart/mixed;";B&&G&&!1!==globalThis.__DEV__&&o.V1.warn(39),B?Y+="boundary=graphql;subscriptionSpec=1.0,application/json":G&&(Y+="deferSpec=20220824,application/json"),H.headers.accept=Y}if("GET"===H.method){var U=function(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=u(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=u(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",o)}var a="",s=e,c=e.indexOf("#");-1!==c&&(a=e.substr(c),s=e.substr(0,c));var l=-1===s.indexOf("?")?"?":"&";return{newURI:s+l+r.join("&")+a}}(R,z),Z=U.newURI,J=U.parseError;if(J)return k(J);R=Z}else try{H.body=u(z,"Payload")}catch(e){return k(e)}return new s.c(function(t){var r=_||(0,o.no)(function(){return fetch})||E,i=t.next.bind(t);return r(R,H).then(function(t){e.setContext({response:t});var r,o=null==(r=t.headers)?void 0:r.get("content-type");return null!==o&&/^multipart\/mixed/i.test(o)?function(e,t){return(0,n.sH)(this,void 0,void 0,function(){var r,i,o,a,s,u,c,d,v,y,g,b,w,k,S,C,x,E,_,T,O,I,R;return(0,n.YH)(this,function(P){switch(P.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),i=null==(R=e.headers)?void 0:R.get("content-type"),o="boundary=",a=(null==i?void 0:i.includes(o))?null==i?void 0:i.substring((null==i?void 0:i.indexOf(o))+o.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",s="\r\n--".concat(a),u="",c=function(e){var t,r,n,i,o,a,s=e;if(e.body&&(s=e.body),t=s,l.uJ&&t[Symbol.asyncIterator])return n=s[Symbol.asyncIterator](),(r={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},r;if(s.getReader)return f(s.getReader());if(s.stream)return f(s.stream().getReader());if(s.arrayBuffer)return i=s.arrayBuffer(),o=!1,a={next:function(){return o?Promise.resolve({value:void 0,done:!0}):(o=!0,new Promise(function(e,t){i.then(function(t){e({value:t,done:!1})}).catch(t)}))}},l.uJ&&(a[Symbol.asyncIterator]=function(){return this}),a;if(s.pipe)return function(e){var t=null,r=null,n=!1,i=[],o=[];function a(e){if(!r){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){r=e,o.slice().forEach(function(t){t[1](e)}),t&&t()}function u(){n=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",u),e.removeListener("finish",u),e.removeListener("close",u)},e.on("data",a),e.on("error",s),e.on("end",u),e.on("finish",u),e.on("close",u);var c={next:function(){return new Promise(function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void o.push([e,t])})}};return l.uJ&&(c[Symbol.asyncIterator]=function(){return this}),c}(s);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),d=!0,P.label=1;case 1:if(!d)return[3,3];return[4,c.next()];case 2:for(y=(v=P.sent()).value,g=v.done,b="string"==typeof y?y:r.decode(y),w=u.length-s.length+1,d=!g,u+=b,k=u.indexOf(s,w);k>-1;){if(S=void 0,S=(O=[u.slice(0,k),u.slice(k+s.length)])[0],u=O[1],C=S.indexOf("\r\n\r\n"),(x=function(e){var t={};return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(S.slice(0,C))["content-type"])&&-1===x.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");
1if(E=S.slice(C)){if(Object.keys(_=m(e,E)).length>1||"data"in _||"incremental"in _||"errors"in _||"payload"in _)if((0,h.Nw)(_)){if(T={},"payload"in _){if(1===Object.keys(_).length&&null===_.payload)return[2];T=(0,n.Cl)({},_.payload)}"errors"in _&&(T=(0,n.Cl)((0,n.Cl)({},T),{extensions:(0,n.Cl)((0,n.Cl)({},"extensions"in T?T.extensions:null),((I={})[p.K$]=_.errors,I))})),t(T)}else t(_);else if(1===Object.keys(_).length&&"hasNext"in _&&!_.hasNext)return[2]}k=u.indexOf(s)}return[3,1];case 3:return[2]}})})}(t,i):(function(t){return t.text().then(function(e){return m(t,e)}).then(function(r){return Array.isArray(r)||v.call(r,"data")||v.call(r,"errors")||d(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),r})})(t).then(i)}).then(function(){I=void 0,t.complete()}).catch(function(e){I=void 0,e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}),function(){I&&I.abort()}})})},T=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,_(t).request)||this;return r.options=t,r}return(0,n.C6)(t,e),t}(i.C)},10592:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)},a=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){var c=[s,u];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(6===c[0]&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},u=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};Object.defineProperty(t,"__esModule",{value:!0}),t.hasCookie=t.deleteCookie=t.setCookie=t.getCookie=t.getCookies=void 0;var c=r(68080),l=r(36463),f=function(e){if((0,l.isClientSide)(e))throw Error("You are trying to access cookies on the client side. Please, use the client-side import with `cookies-next/client` instead.")},d=function(e){return!!e&&"getAll"in e&&"set"in e&&"function"==typeof e.getAll&&"function"==typeof e.set},p=function(e){return!!(null==e?void 0:e.req)&&"cookies"in e.req&&d(e.req.cookies)||!!(null==e?void 0:e.res)&&"cookies"in e.res&&d(e.res.cookies)||!!e&&"cookies"in e&&"function"==typeof e.cookies},h=function(e){var t={};
1return e.getAll().forEach(function(e){var r=e.name,n=e.value;t[r]=n}),t},v=function(e){return a(void 0,void 0,void 0,function(){var t,r;return s(this,function(n){switch(n.label){case 0:if(f(e),!p(e))return[3,2];if(e.req)return[2,h(e.req.cookies)];if(e.res)return[2,h(e.res.cookies)];if(!e.cookies)return[3,2];return t=h,[4,e.cookies()];case 1:return[2,t.apply(void 0,[n.sent()])];case 2:if((null==e?void 0:e.req)&&(r=e.req),null==r?void 0:r.cookies)return[2,r.cookies];if(null==r?void 0:r.headers.cookie)return[2,(0,c.parse)(r.headers.cookie)];return[2,{}]}})})};t.getCookies=v,t.getCookie=function(e,t){return a(void 0,void 0,void 0,function(){var r;return s(this,function(n){switch(n.label){case 0:return f(t),[4,v(t)];case 1:if(void 0===(r=n.sent()[e]))return[2,void 0];return[2,(0,l.decode)(r)]}})})};var m=function(e,t,r){return a(void 0,void 0,void 0,function(){var i,o,a,d,h,v,m,y,g,b,w,k,S,C,x;return s(this,function(s){switch(s.label){case 0:if(f(r),!p(r))return[3,3];if(i=r.req,o=r.res,a=r.cookies,d=u(r,["req","res","cookies"]),h=n({name:e,value:(0,l.stringify)(t)},d),i&&i.cookies.set(h),o&&o.cookies.set(h),!a)return[3,2];return[4,a()];case 1:s.sent().set(h),s.label=2;case 2:return[2];case 3:return v={},r&&(b=(g=r).req,w=g.res,k=u(g,["req","res"]),m=b,y=w,v=k),S=(0,c.serialize)(e,(0,l.stringify)(t),n({path:"/"},v)),y&&m&&(Array.isArray(C=y.getHeader("Set-Cookie"))||(C=C?[String(C)]:[]),y.setHeader("Set-Cookie",C.concat(S)),m&&m.cookies&&(x=m.cookies,""===t?delete x[e]:x[e]=(0,l.stringify)(t)),m&&m.headers&&m.headers.cookie&&(x=(0,c.parse)(m.headers.cookie),""===t?delete x[e]:x[e]=(0,l.stringify)(t),m.headers.cookie=Object.entries(x).reduce(function(e,t){return e.concat("".concat(t[0],"=").concat(t[1],";"))},""))),[2]}})})};t.setCookie=m,t.deleteCookie=function(e,t){return a(void 0,void 0,void 0,function(){return s(this,function(r){return f(t),[2,m(e,"",n(n({},t),{maxAge:-1}))]})})},t.hasCookie=function(e,t){return a(void 0,void 0,void 0,function(){return s(this,function(r){switch(r.label){case 0:if(f(t),!e)return[2,!1];return[4,v(t)];case 1:return[2,r.sent().hasOwnProperty(e)]}})})},o(r(99819),t)},18683:(e,t,r)=>{var n=r(29887),i=r(4651),o=r(23719);e.exports=function(e,t,r){return t==t?o(e,t,r):n(e,i,r)}},20861:(e,t,r)=>{"use strict";r.d(t,{ll:()=>_,rD:()=>D,__:()=>T,UU:()=>R,cY:()=>O,BN:()=>I,Ej:()=>P});var n=r(10208);function i(e,t,r){let i,{reference:o,floating:a}=e,s=(0,n.TV)(t),u=(0,n.Dz)(t),c=(0,n.sq)(u),l=(0,n.C0)(t),f="y"===s,d=o.x+o.width/2-a.width/2,p=o.y+o.height/2-a.height/2,h=o[c]/2-a[c]/2;switch(l){case"top":i={x:d,y:o.y-a.height};break;case"bottom":i={x:d,y:o.y+o.height};break;case"right":i={x:o.x+o.width,y:p};break;case"left":i={x:o.x-a.width,y:p};break;default:i={x:o.x,y:o.y}}switch((0,n.Sg)(t)){case"start":i[u]-=h*(r&&f?-1:1);break;case"end":i[u]+=h*(r&&f?-1:1)}return i}let o=async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,u=a.filter(Boolean),c=await (null==s.isRTL?void 0:s.isRTL(t)),l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=i(l,n,c),p=n,h={},v=0;for(let r=0;r<u.length;r++){let{name:a,fn:m}=u[r],{x:y,y:g,data:b,reset:w}=await m({x:f,y:d,initialPlacement:n,placement:p,strategy:o,middlewareData:h,rects:l,platform:s,elements:{reference:e,floating:t}});f=null!=y?y:f,d=null!=g?g:d,h={...h,[a]:{...h[a],...b}},w&&v<=50&&(v++,"object"==typeof w&&(w.placement&&(p=w.placement),w.rects&&(l=!0===w.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:f,y:d}=i(l,p,c)),r=-1)}return{x:f,y:d,placement:p,strategy:o,middlewareData:h}};async function a(e,t){var r;void 0===t&&(t={});let{x:i,y:o,platform:a,rects:s,elements:u,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=(0,n._3)(t,e),v=(0,n.nI)(h),m=u[p?"floating"===d?"reference":"floating":d],y=(0,n.B1)(await a.getClippingRect({element:null==(r=await (null==a.isElement?void 0:a.isElement(m)))||r?m:m.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(u.floating)),boundary:l,rootBoundary:f,strategy:c})),g="floating"===d?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await (null==a.getOffsetParent?void 0:a.getOffsetParent(u.floating)),w=await (null==a.isElement?void 0:a.isElement(b))&&await (null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},k=(0,n.B1)(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:g,offsetParent:b,strategy:c}):g);return{top:(y.top-k.top+v.top)/w.y,bottom:(k.bottom-y.bottom+v.bottom)/w.y,left:(y.left-k.left+v.left)/w.x,right:(k.right-y.right+v.right)/w.x}}let s=new Set(["left","top"]);async function u(e,t){let{placement:r,platform:i,elements:o}=e,a=await (null==i.isRTL?void 0:i.isRTL(o.floating)),u=(0,n.C0)(r),c=(0,n.Sg)(r),l="y"===(0,n.TV)(r),f=s.has(u)?-1:1,d=a&&l?-1:1,p=(0,n._3)(t,e),{mainAxis:h,crossAxis:v,alignmentAxis:m}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}
1:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&"number"==typeof m&&(v="end"===c?-1*m:m),l?{x:v*d,y:h*f}:{x:h*f,y:v*d}}var c=r(2066);function l(e){let t=(0,c.L9)(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,o=(0,c.sb)(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:i,u=(0,n.LI)(r)!==a||(0,n.LI)(i)!==s;return u&&(r=a,i=s),{width:r,height:i,$:u}}function f(e){return(0,c.vq)(e)?e:e.contextElement}function d(e){let t=f(e);if(!(0,c.sb)(t))return(0,n.Jx)(1);let r=t.getBoundingClientRect(),{width:i,height:o,$:a}=l(t),s=(a?(0,n.LI)(r.width):r.width)/i,u=(a?(0,n.LI)(r.height):r.height)/o;return s&&Number.isFinite(s)||(s=1),u&&Number.isFinite(u)||(u=1),{x:s,y:u}}let p=(0,n.Jx)(0);function h(e){let t=(0,c.zk)(e);return(0,c.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:p}function v(e,t,r,i){var o;void 0===t&&(t=!1),void 0===r&&(r=!1);let a=e.getBoundingClientRect(),s=f(e),u=(0,n.Jx)(1);t&&(i?(0,c.vq)(i)&&(u=d(i)):u=d(e));let l=(void 0===(o=r)&&(o=!1),i&&(!o||i===(0,c.zk)(s))&&o)?h(s):(0,n.Jx)(0),p=(a.left+l.x)/u.x,v=(a.top+l.y)/u.y,m=a.width/u.x,y=a.height/u.y;if(s){let e=(0,c.zk)(s),t=i&&(0,c.vq)(i)?(0,c.zk)(i):i,r=e,n=(0,c._m)(r);for(;n&&i&&t!==r;){let e=d(n),t=n.getBoundingClientRect(),i=(0,c.L9)(n),o=t.left+(n.clientLeft+parseFloat(i.paddingLeft))*e.x,a=t.top+(n.clientTop+parseFloat(i.paddingTop))*e.y;p*=e.x,v*=e.y,m*=e.x,y*=e.y,p+=o,v+=a,r=(0,c.zk)(n),n=(0,c._m)(r)}}return(0,n.B1)({width:m,height:y,x:p,y:v})}function m(e,t){let r=(0,c.CP)(e).scrollLeft;return t?t.left+r:v((0,c.ep)(e)).left+r}function y(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-m(e,r),y:r.top+t.scrollTop}}let g=new Set(["absolute","fixed"]);function b(e,t,r){let i;if("viewport"===t)i=function(e,t){let r=(0,c.zk)(e),n=(0,c.ep)(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,u=0;if(i){o=i.width,a=i.height;let e=(0,c.Tc)();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,u=i.offsetTop)}let l=m(n);if(l<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,a=Math.abs(n.clientWidth-t.clientWidth-i);a<=25&&(o-=a)}else l<=25&&(o+=l);return{width:o,height:a,x:s,y:u}}(e,r);else if("document"===t)i=function(e){let t=(0,c.ep)(e),r=(0,c.CP)(e),i=e.ownerDocument.body,o=(0,n.T9)(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=(0,n.T9)(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+m(e),u=-r.scrollTop;return"rtl"===(0,c.L9)(i).direction&&(s+=(0,n.T9)(t.clientWidth,i.clientWidth)-o),{width:o,height:a,x:s,y:u}}((0,c.ep)(e));else if((0,c.vq)(t))i=function(e,t){let r=v(e,!0,"fixed"===t),i=r.top+e.clientTop,o=r.left+e.clientLeft,a=(0,c.sb)(e)?d(e):(0,n.Jx)(1),s=e.clientWidth*a.x,u=e.clientHeight*a.y;return{width:s,height:u,x:o*a.x,y:i*a.y}}(t,r);else{let r=h(e);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return(0,n.B1)(i)}function w(e){return"static"===(0,c.L9)(e).position}function k(e,t){if(!(0,c.sb)(e)||"fixed"===(0,c.L9)(e).position)return null;if(t)return t(e);let r=e.offsetParent;return(0,c.ep)(e)===r&&(r=r.ownerDocument.body),r}function S(e,t){let r=(0,c.zk)(e);if((0,c.Tf)(e))return r;if(!(0,c.sb)(e)){let t=(0,c.$4)(e);for(;t&&!(0,c.eu)(t);){if((0,c.vq)(t)&&!w(t))return t;t=(0,c.$4)(t)}return r}let n=k(e,t);for(;n&&(0,c.Lv)(n)&&w(n);)n=k(n,t);return n&&(0,c.eu)(n)&&w(n)&&!(0,c.sQ)(n)?r:n||(0,c.gJ)(e)||r}let C=async function(e){let t=this.getOffsetParent||S,r=this.getDimensions,i=await r(e.floating);return{reference:function(e,t,r){let i=(0,c.sb)(t),o=(0,c.ep)(t),a="fixed"===r,s=v(e,!0,a,t),u={scrollLeft:0,scrollTop:0},l=(0,n.Jx)(0);if(i||!i&&!a)if(("body"!==(0,c.mq)(t)||(0,c.ZU)(o))&&(u=(0,c.CP)(t)),i){let e=v(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=m(o));a&&!i&&o&&(l.x=m(o));let f=!o||i||a?(0,n.Jx)(0):y(o,u);return{x:s.left+u.scrollLeft-l.x-f.x,y:s.top+u.scrollTop-l.y-f.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},x={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:i,strategy:o}=e,a="fixed"===o,s=(0,c.ep)(i),u=!!t&&(0,c.Tf)(t.floating);if(i===s||u&&a)return r;let l={scrollLeft:0,scrollTop:0},f=(0,n.Jx)(1),p=(0,n.Jx)(0),h=(0,c.sb)(i);if((h||!h&&!a)&&(("body"!==(0,c.mq)(i)||(0,c.ZU)(s))&&(l=(0,c.CP)(i)),(0,c.sb)(i))){let e=v(i);f=d(i),p.x=e.x+i.clientLeft,p.y=e.y+i.clientTop}let m=!s||h||a?(0,n.Jx)(0):y(s,l);return{width:r.width*f.x,height:r.height*f.y,x:r.x*f.x-l.scrollLeft*f.x+p.x+m.x,y:r.y*f.y-l.scrollTop*f.y+p.y+m.y}},getDocumentElement:c.ep,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:i,strategy:o}=e,a=[..."clippingAncestors"===r?(0,c.Tf)(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=(0,c.v9)(e,[],!1).filter(e=>(0,c.vq)(e)&&"body"!==(0,c.mq)(e)),i=null,o="fixed"===(0,c.L9)(e).position,a=o?(0,c.$4)(e):e;for(;(0,c.vq)(a)&&!(0,c.eu)(a);){let t=(0,c.L9)(a),r=(0,c.sQ)(a);r||"fixed"!==t.position||(i=null),(o?!r&&!i:!r&&"static"===t.position&&!!i&&g.has(i.position)||(0,c.ZU)(a)&&!r&&function e(t,r){let n=(0,c.$4)(t);return!(n===r||!(0,c.vq)(n)||(0,c.eu)(n))&&("fixed"===(0,c.L9)(n).position||e(n,r))}(e,a))?n=n.filter(e=>e!==a):i=t,a=(0,c.$4)(a)}return t.set(e,n),n}(t,this._c):[].concat(r),i],s=a[0],u=a.reduce((e,r)=>{let i=b(t,r,o);return e.top=(0,n.T9)(i.top,e.top),e.right=(0,n.jk)(i.right,e.right),e.bottom=(0,n.jk)(i.bottom,e.bottom),e.left=(0,n.T9)(i.left,e.left),e},b(t,s,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:S,getElementRects:C,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=l(e);return{width:t,height:r}},getScale:d,isElement:c.vq,isRTL:function(e){return"rtl"===(0,c.L9)(e).direction}};function E(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}
1function _(e,t,r,i){let o;void 0===i&&(i={});let{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:d=!1}=i,p=f(e),h=a||s?[...p?(0,c.v9)(p):[],...(0,c.v9)(t)]:[];h.forEach(e=>{a&&e.addEventListener("scroll",r,{passive:!0}),s&&e.addEventListener("resize",r)});let m=p&&l?function(e,t){let r,i=null,o=(0,c.ep)(e);function a(){var e;clearTimeout(r),null==(e=i)||e.disconnect(),i=null}return!function s(u,c){void 0===u&&(u=!1),void 0===c&&(c=1),a();let l=e.getBoundingClientRect(),{left:f,top:d,width:p,height:h}=l;if(u||t(),!p||!h)return;let v=(0,n.RI)(d),m=(0,n.RI)(o.clientWidth-(f+p)),y={rootMargin:-v+"px "+-m+"px "+-(0,n.RI)(o.clientHeight-(d+h))+"px "+-(0,n.RI)(f)+"px",threshold:(0,n.T9)(0,(0,n.jk)(1,c))||1},g=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!g)return s();n?s(!1,n):r=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==n||E(l,e.getBoundingClientRect())||s(),g=!1}try{i=new IntersectionObserver(b,{...y,root:o.ownerDocument})}catch(e){i=new IntersectionObserver(b,y)}i.observe(e)}(!0),a}(p,r):null,y=-1,g=null;u&&(g=new ResizeObserver(e=>{let[n]=e;n&&n.target===p&&g&&(g.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),r()}),p&&!d&&g.observe(p),g.observe(t));let b=d?v(e):null;return d&&function t(){let n=v(e);b&&!E(b,n)&&r(),b=n,o=requestAnimationFrame(t)}(),r(),()=>{var e;h.forEach(e=>{a&&e.removeEventListener("scroll",r),s&&e.removeEventListener("resize",r)}),null==m||m(),null==(e=g)||e.disconnect(),g=null,d&&cancelAnimationFrame(o)}}let T=a,O=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:i,y:o,placement:a,middlewareData:s}=t,c=await u(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:i+c.x,y:o+c.y,data:{...c,placement:a}}}}},I=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:i,placement:o}=t,{mainAxis:s=!0,crossAxis:u=!1,limiter:c={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=(0,n._3)(e,t),f={x:r,y:i},d=await a(t,l),p=(0,n.TV)((0,n.C0)(o)),h=(0,n.PG)(p),v=f[h],m=f[p];if(s){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",r=v+d[e],i=v-d[t];v=(0,n.qE)(r,v,i)}
1if(u){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",r=m+d[e],i=m-d[t];m=(0,n.qE)(r,m,i)}let y=c.fn({...t,[h]:v,[p]:m});return{...y,data:{x:y.x-r,y:y.y-i,enabled:{[h]:s,[p]:u}}}}}},R=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,i,o,s,u;let{placement:c,middlewareData:l,rects:f,initialPlacement:d,platform:p,elements:h}=t,{mainAxis:v=!0,crossAxis:m=!0,fallbackPlacements:y,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:w=!0,...k}=(0,n._3)(e,t);if(null!=(r=l.arrow)&&r.alignmentOffset)return{};let S=(0,n.C0)(c),C=(0,n.TV)(d),x=(0,n.C0)(d)===d,E=await (null==p.isRTL?void 0:p.isRTL(h.floating)),_=y||(x||!w?[(0,n.bV)(d)]:(0,n.WJ)(d)),T="none"!==b;!y&&T&&_.push(...(0,n.lP)(d,w,b,E));let O=[d,..._],I=await a(t,k),R=[],P=(null==(i=l.flip)?void 0:i.overflows)||[];if(v&&R.push(I[S]),m){let e=(0,n.w7)(c,f,E);R.push(I[e[0]],I[e[1]])}if(P=[...P,{placement:c,overflows:R}],!R.every(e=>e<=0)){let e=((null==(o=l.flip)?void 0:o.index)||0)+1,t=O[e];if(t&&("alignment"!==m||C===(0,n.TV)(t)||P.every(e=>(0,n.TV)(e.placement)!==C||e.overflows[0]>0)))return{data:{index:e,overflows:P},reset:{placement:t}};let r=null==(s=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:s.placement;if(!r)switch(g){case"bestFit":{let e=null==(u=P.filter(e=>{if(T){let t=(0,n.TV)(e.placement);return t===C||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:u[0];e&&(r=e);break}case"initialPlacement":r=d}if(c!==r)return{reset:{placement:r}}}return{}}}},P=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,i;let o,s,{placement:u,rects:c,platform:l,elements:f}=t,{apply:d=()=>{},...p}=(0,n._3)(e,t),h=await a(t,p),v=(0,n.C0)(u),m=(0,n.Sg)(u),y="y"===(0,n.TV)(u),{width:g,height:b}=c.floating;"top"===v||"bottom"===v?(o=v,s=m===(await (null==l.isRTL?void 0:l.isRTL(f.floating))?"start":"end")?"left":"right"):(s=v,o="end"===m?"top":"bottom");let w=b-h.top-h.bottom,k=g-h.left-h.right,S=(0,n.jk)(b-h[o],w),C=(0,n.jk)(g-h[s],k),x=!t.middlewareData.shift,E=S,_=C;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(_=k),null!=(i=t.middlewareData.shift)&&i.enabled.y&&(E=w),x&&!m){let e=(0,n.T9)(h.left,0),t=(0,n.T9)(h.right,0),r=(0,n.T9)(h.top,0),i=(0,n.T9)(h.bottom,0);y?_=g-2*(0!==e||0!==t?e+t:(0,n.T9)(h.left,h.right)):E=b-2*(0!==r||0!==i?r+i:(0,n.T9)(h.top,h.bottom))}await d({...t,availableWidth:_,availableHeight:E});let T=await l.getDimensions(f.floating);return g!==T.width||b!==T.height?{reset:{rects:!0}}:{}}}},D=(e,t,r)=>{let n=new Map,i={platform:x,...r},a={...i.platform,_c:n};return o(e,t,{...i,platform:a})}},22180:(e,t,r)=>{"use strict";r.d(t,{C:()=>l});var n=r(20622),i=r(97056),o=r(71450),a=r(53537);function s(e,t){return t?t(e):i.c.of()}function u(e){return"function"==typeof e?new l(e):e}function c(e){return e.request.length<=1}var l=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return i.c.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(u).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var o=u(r),a=u(n||new e(s));return Object.assign(new e(c(o)&&c(a)?function(e){return t(e)?o.request(e)||i.c.of():a.request(e)||i.c.of()}:function(e,r){return t(e)?o.request(e,r)||i.c.of():a.request(e,r)||i.c.of()}),{left:o,right:a})},e.execute=function(e,t){var r,s,u,c,l;return e.request((u=t.context,(s={variables:(r=function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];if(0>t.indexOf(o))throw(0,n.vA)(44,o)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(s.operationName="string"!=typeof s.query?(0,a.n4)(s.query)||void 0:""),c=s,l=(0,o.Cl)({},u),Object.defineProperty(c,"setContext",{enumerable:!1,value:function(e){l="function"==typeof e?(0,o.Cl)((0,o.Cl)({},l),e(l)):(0,o.Cl)((0,o.Cl)({},l),e)}}),Object.defineProperty(c,"getContext",{enumerable:!1,value:function(){return(0,o.Cl)({},l)}}
1),c))||i.c.of()},e.concat=function(t,r){var o=u(t);if(c(o))return!1!==globalThis.__DEV__&&n.V1.warn(36,o),o;var a=u(r);return Object.assign(new e(c(a)?function(e){return o.request(e,function(e){return a.request(e)||i.c.of()})||i.c.of()}:function(e,t){return o.request(e,function(e){return a.request(e,t)||i.c.of()})||i.c.of()}),{left:o,right:a})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(s)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,n.vA)(37)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},23719:e=>{e.exports=function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1}},26455:(e,t,r)=>{"use strict";r.d(t,{M:()=>f});var n=r(5325),i=r(54309),o=r(48958),a=r(12115);let s=!1,u=0;function c(e){"touch"===e.pointerType&&(s=!0,setTimeout(()=>{s=!1},50))}function l(){if("undefined"!=typeof document)return 0===u&&"undefined"!=typeof PointerEvent&&document.addEventListener("pointerup",c),u++,()=>{--u>0||"undefined"!=typeof PointerEvent&&document.removeEventListener("pointerup",c)}}function f(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:u,isDisabled:c}=e,[f,d]=(0,a.useState)(!1),p=(0,a.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,a.useEffect)(l,[]);let{addGlobalListener:h,removeAllGlobalListeners:v}=(0,n.A)(),{hoverProps:m,triggerHoverEnd:y}=(0,a.useMemo)(()=>{let e=(e,t)=>{let n=p.target;p.pointerType="",p.target=null,"touch"!==t&&p.isHovered&&n&&(p.isHovered=!1,v(),u&&u({type:"hoverend",target:n,pointerType:t}),r&&r(!1),d(!1))},n={};return"undefined"!=typeof PointerEvent&&(n.onPointerEnter=n=>{s&&"mouse"===n.pointerType||((n,a)=>{if(p.pointerType=a,c||"touch"===a||p.isHovered||!n.currentTarget.contains(n.target))return;p.isHovered=!0;let s=n.currentTarget;p.target=s,h((0,i.TW)(n.target),"pointerover",t=>{p.isHovered&&p.target&&!(0,o.sD)(p.target,t.target)&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:s,pointerType:a}),r&&r(!0),d(!0)})(n,n.pointerType)},n.onPointerLeave=t=>{!c&&t.currentTarget.contains(t.target)&&e(t,t.pointerType)}),{hoverProps:n,triggerHoverEnd:e}},[t,r,u,c,p,h,v]);return(0,a.useEffect)(()=>{c&&y({currentTarget:p.target},p.pointerType)},[c]),{hoverProps:m,isHovered:f}}},26810:(e,t,r)=>{var n=r(51483);e.exports=function(){return n.Date.now()}},27642:(e,t,r)=>{"use strict";let n;r.d(t,{Ri:()=>rf,TO:()=>rp,D9:()=>rd,dk:()=>tX});var i=r(22180),o=r(71450),a=r(20622),s=r(44),u=r(66278);let c=null,l={},f=1;function d(e){try{return e()}catch(e){}}let p="@wry/context:Slot",h=d(()=>globalThis)||d(()=>global)||Object.create(null),v=h[p]||Array[p]||function(e){try{Object.defineProperty(h,p,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",f++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=c;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===l)break;return e!==c&&(c.slots[this.id]=t),!0}return c&&(c.slots[this.id]=l),!1}getValue(){if(this.hasValue())return c.slots[this.id]}withValue(e,t,r,n){let i={__proto__:null,[this.id]:e},o=c;c={parent:o,slots:i};try{return t.apply(n,r)}finally{c=o}}static bind(e){let t=c;return function(){let r=c;try{return c=t,e.apply(this,arguments)}finally{c=r}}}static noContext(e,t,r){if(!c)return e.apply(r,t);{let n=c;try{return c=null,e.apply(r,t)}finally{c=n}}}}),{bind:m,noContext:y}=v,g=new v,{hasOwnProperty:b}=Object.prototype,w=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function k(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let S=[];function C(e,t){if(!e)throw Error(t||"assertion failure")}function x(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function E(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class _{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++_.count}peek(){if(1===this.value.length&&!I(this))return T(this),this.value[0]}recompute(e){var t,r,n;return C(!this.recomputing,"already recomputing"),T(this),I(this)?(t=this,r=e,F(t),g.withValue(t,O,[t,r]),function(e,t){if("function"==typeof e.subscribe)try{k(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(t,r)&&((n=t).dirty=!1,I(n)||function(e){R(e,D)}(n)),E(t.value)):E(this.value)}setDirty(){var e;this.dirty||(this.dirty=!0,e=this,R(e,P),k(this))}dispose(){this.setDirty(),F(this),R(this,(e,t)=>{e.setDirty(),M(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=S.pop()||new Set),this.deps.add(e)}
1forgetDeps(){this.deps&&(w(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),S.push(this.deps),this.deps=null)}}function T(e){let t=g.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),I(e)?P(t,e):D(t,e),t}function O(e,t){let r;e.recomputing=!0;let{normalizeResult:n}=e;n&&1===e.value.length&&(r=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!x(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function I(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}_.count=0;function R(e,t){let r=e.parents.size;if(r){let n=w(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function P(e,t){C(e.childValues.has(t)),C(I(t));let r=!I(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=S.pop()||new Set;e.dirtyChildren.add(t),r&&R(e,P)}function D(e,t){C(e.childValues.has(t)),C(!I(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):x(r,t.value)||e.setDirty(),L(e,t),I(e)||R(e,D)}function L(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(S.length<100&&S.push(r),e.dirtyChildren=null))}function F(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{M(e,r)}),e.forgetDeps(),C(null===e.dirtyChildren)}function M(e,t){t.parents.delete(e),e.childValues.delete(t),L(e,t)}let A={setDirty:!0,dispose:!0,forget:!0};function V(e){let t=new Map,r=e&&e.subscribe;function n(e){let n=g.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(k(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){let n=t.get(e);if(n){let i=r&&b.call(A,r)?r:"setDirty";w(n).forEach(e=>e[i]()),t.delete(e),k(n)}},n}function j(...e){return(n||(n=new s.b("function"==typeof WeakMap))).lookupArray(e)}let q=new Set;function N(e,{max:t=65536,keyArgs:r,makeCacheKey:n=j,normalizeResult:i,subscribe:o,cache:a=u.C}=Object.create(null)){let s="function"==typeof a?new a(t,e=>e.dispose()):a,c=function(){let t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=s.get(t);a||(s.set(t,a=new _(e)),a.normalizeResult=i,a.subscribe=o,a.forget=()=>s.delete(t));let u=a.recompute(Array.prototype.slice.call(arguments));return s.set(t,a),q.add(s),g.hasValue()||(q.forEach(e=>e.clean()),q.clear()),u};function l(e){let t=e&&s.get(e);t&&t.setDirty()}function f(e){let t=e&&s.get(e);if(t)return t.peek()}function d(e){return!!e&&s.delete(e)}return Object.defineProperty(c,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:o,cache:s}),c.dirtyKey=l,c.dirty=function(){l(n.apply(null,arguments))},c.peekKey=f,c.peek=function(){return f(n.apply(null,arguments))},c.forgetKey=d,c.forget=function(){return d(n.apply(null,arguments))},c.makeCacheKey=n,c.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(c)}var Q=r(88924),W=r(10038),H=r(12477),z=r(97056),B=r(28363),G=r(55137),Y=r(70554),U=r(53537),Z=r(83931),J=r(37979);function X(e,t,r,n){var i=t.data,a=(0,o.Tt)(t,["data"]),s=r.data,u=(0,o.Tt)(r,["data"]);return(0,Q.A)(a,u)&&function e(t,r,n,i){if(r===n)return!0;var o=new Set;return t.selections.every(function(t){if(o.has(t)||(o.add(t),!(0,Z.MS)(t,i.variables)||K(t)))return!0;if((0,J.dt)(t)){var a=(0,J.ue)(t),s=r&&r[a],u=n&&n[a],c=t.selectionSet;if(!c)return(0,Q.A)(s,u);var l=Array.isArray(s),f=Array.isArray(u);if(l!==f)return!1;if(l&&f){var d=s.length;if(u.length!==d)return!1;for(var p=0;p<d;++p)if(!e(c,s[p],u[p],i))return!1;return!0}return e(c,s,u,i)}var h=(0,W.HQ)(t,i.fragmentMap);if(h)return!!K(h)||e(h.selectionSet,r,n,i)})}((0,U.Vn)(e).selectionSet,i,s,{fragmentMap:(0,W.JG)((0,U.zK)(e)),variables:n})}function K(e){return!!e.directives&&e.directives.some($)}function $(e){return"nonreactive"===e.name.value}var ee=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=N(W.ct,{max:H.v["cache.fragmentQueryDocuments"]||1e3,cache:G.l})}return e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,o.Cl)((0,o.Cl)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t,r=this,n=e.fragment,i=e.fragmentName,a=e.from,s=e.optimistic,u=(0,o.Tt)(e,["fragment","fragmentName","from","optimistic"]),c=this.getFragmentDoc(n,i),l=(0,o.Cl)((0,o.Cl)({},u),{returnPartialData:!0,id:"string"==typeof a?a:this.identify(a),query:c,optimistic:void 0===s||s});return new z.c(function(e){return r.watch((0,o.Cl)((0,o.Cl)({},l),{immediate:!0,callback:function(r){if(!(t&&X(c,{data:null==t?void 0:t.result},{data:r.result}))){var n={data:r.result,complete:!!r.complete};r.missing&&(n.missing=(0,B.IM)(r.missing.map(function(e){return e.missing}))),t=r,e.next(n)}}}))})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,o.Cl)((0,o.Cl)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=(0,o.Tt)(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,i=e.fragmentName,a=(0,o.Tt)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(n,i),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var n=r.readQuery(e),i=t(n);return null==i?n:(r.writeQuery((0,o.Cl)((0,o.Cl)({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var n=r.readFragment(e),i=t(n);return null==i?n:(r.writeFragment((0,o.Cl)((0,o.Cl)({},e),{data:i})),i)}})},e}();!1!==globalThis.__DEV__&&(ee.prototype.getMemoryInternals=Y.tQ);var et=function(e){function t(r,n,i,o){var a,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var u=s.path.length-1;u>=0;--u)(a={})[s.path[u]]=s.missing,s.missing=a}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,o.C6)(t,e),t}(Error),er=r(81186);function en(e){return e}var ei=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=er.En?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(en,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),Object.assign(new e(function(e){return(t(e)?r:n).transformDocument(e)},{cache:!1}),{left:r,right:n})},e.prototype.resetCache=function(){var t=this;if(this.cached){var r=new s.b(er.et);this.performWork=N(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return(0,a.V1)(Array.isArray(n),69),r.lookupArray(n)},max:H.v["documentTransform.cache"],cache:G.l})}},e.prototype.performWork=function(e){return(0,U.sw)(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var r=this;return Object.assign(new e(function(e){return t.transformDocument(r.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}(),eo=r(42527),ea=r(78764),es=r(74742),eu=r(11619),ec=r(11464),el=r(64716),ef=r(25433),ed=r(83557),ep=Object.prototype.hasOwnProperty;function eh(e){return null==e}function ev(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=eh(n)?eh(i)?void 0:{_id:i}:{id:n}),eh(n)&&!eh(i)&&(n=i),!eh(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var em={dataIdFromObject:ev,addTypename:!0,resultCaching:!0,canonizeResults:!1};function ey(e){var t=e.canonizeResults;return void 0===t?em.canonizeResults:t}var eg=/^[_a-z][_0-9a-z]*/i;function eb(e){var t=e.match(eg);return t?t[0]:e}function ew(e){return(0,ef.U)(e)&&!(0,J.A_)(e)&&!(0,ed.c)(e)}function ek(e,t){var r=(0,W.JG)((0,U.zK)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var eS=Object.create(null),eC=function(){return eS},ex=Object.create(null),eE=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,el.G)((0,J.A_)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,J.A_)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,J.WU)(e);if((0,J.A_)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,J.WU)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,o.Cl)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),ep.call(this.data,e)){var r=this.data[e];if(r&&ep.call(r,t))return r[t]}return"__typename"===t&&ep.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof eO?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),ep.call(this.data,e))?this.data[e]:this instanceof eO?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;(0,J.A_)(e)&&(e=e.__ref),(0,J.A_)(t)&&(t=t.__ref);
1var i="string"==typeof e?this.lookup(r=e):e,o="string"==typeof t?this.lookup(r=t):t;if(o){(0,a.V1)("string"==typeof r,1);var s=new B.ZI(eR).merge(i,o);if(this.data[r]=s,s!==i&&(delete this.refs[r],this.group.caching)){var u=Object.create(null);i||(u.__exists=1),Object.keys(o).forEach(function(e){if(!i||i[e]!==s[e]){u[e]=1;var t=eb(e);t===e||n.policies.hasKeyArgs(s.__typename,t)||(u[t]=1),void 0!==s[e]||n instanceof eO||delete s[e]}}),u.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete u.__typename,Object.keys(u).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),s=!1,u=!0,c={DELETE:eS,INVALIDATE:ex,isReference:J.A_,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,J.WU)(e)}:t,{store:r})}};if(Object.keys(n).forEach(function(l){var f=eb(l),d=n[l];if(void 0!==d){var p="function"==typeof t?t:t[l]||t[f];if(p){var h=p===eC?eS:p((0,el.G)(d),(0,o.Cl)((0,o.Cl)({},c),{fieldName:f,storeFieldName:l,storage:r.getStorage(e,l)}));if(h===ex)r.group.dirty(e,l);else if(h===eS&&(h=void 0),h!==d&&(i[l]=h,s=!0,d=h,!1!==globalThis.__DEV__)){var v=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&a.V1.warn(2,e),!0};if((0,J.A_)(h))v(h);else if(Array.isArray(h))for(var m=!1,y=void 0,g=0,b=h;g<b.length;g++){var w=b[g];if((0,J.A_)(w)){if(m=!0,v(w))break}else"object"==typeof w&&w&&r.policies.identify(w)[0]&&(y=w);if(m&&void 0!==y){!1!==globalThis.__DEV__&&a.V1.warn(3,y);break}}}}void 0!==d&&(u=!1)}}),s)return this.merge(e,i),u&&(this instanceof eO?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=eC,n):eC)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(ep.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof eO&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){ep.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&ep.call(e,r)||t.delete(r)}),e){var r=e.__META,n=(0,o.Tt)(e,["__META"]);Object.keys(n).forEach(function(e){t.merge(e,n[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof eO?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){ep.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof eO;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!ep.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){(0,J.A_)(e)&&(t[e.__ref]=!0),(0,ef.U)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,ef.U)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),e_=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?V():null,this.keyMaker=new s.b(er.et)}
1,e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=eb(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function eT(e,t){eP(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,o=e.call(this,r,new e_(void 0===n||n))||this;return o.stump=new eI(o),o.storageTrie=new s.b(er.et),i&&o.replace(i),o}return(0,o.C6)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(eE||(eE={}));var eO=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return(0,o.C6)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){(0,Q.L)(n[r],i[r])||t.group.dirty(e,r)}
1):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,o.Cl)((0,o.Cl)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return ep.call(this.data,t)?(0,o.Cl)((0,o.Cl)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(eE),eI=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new e_(t.group.caching,t.group))||this}return(0,o.C6)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(eO);function eR(e,t,r){var n=e[r],i=t[r];return(0,Q.L)(n,i)?n:i}function eP(e){return!!(e instanceof eE&&e.group.caching)}var eD=function(){function e(){this.known=new(er.En?WeakSet:Set),this.pool=new s.b(er.et),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,ef.U)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,ef.U)(e)){var t=(0,ef.U)(e)?(0,ed.c)(e)?e.slice(0):(0,o.Cl)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,ef.U)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var n=e.map(this.admit,this),i=this.pool.lookupArray(n);return i.array||(this.known.add(i.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var o=Object.getPrototypeOf(e),a=[o],s=this.sortedKeys(e);a.push(s.json);var u=a.length;s.sorted.forEach(function(r){a.push(t.admit(e[r]))});var i=this.pool.lookupArray(a);if(!i.object){var c=i.object=Object.create(o);this.known.add(c),s.sorted.forEach(function(e,t){c[e]=a[u+t]}),!1!==globalThis.__DEV__&&Object.freeze(c)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}();function eL(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var eF=function(){function e(e){var t=this;this.knownResults=new(er.et?WeakMap:Map),this.config=(0,ec.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:ey(e)}),this.canon=e.canon||new eD,this.executeSelectionSet=N(function(e){var r,n=e.context.canonizeResults,i=eL(e);i[3]=!n;var a=(r=t.executeSelectionSet).peek.apply(r,i);return a?n?(0,o.Cl)((0,o.Cl)({},a),{result:t.canon.admit(a.result)}):a:(eT(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||H.v["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:eL,makeCacheKey:function(e,t,r,n){if(eP(r.store))return r.store.makeCacheKey(e,(0,J.A_)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=N(function(e){return eT(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||H.v["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(eP(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new eD},e.prototype.diffQueryAgainstStore=function(e){var t,r=e.store,n=e.query,i=e.rootId,a=e.variables,s=e.returnPartialData,u=e.canonizeResults,c=void 0===u?this.config.canonizeResults:u,l=this.config.cache.policies;a=(0,o.Cl)((0,o.Cl)({},(0,U.wY)((0,U.AT)(n))),a);var f=(0,J.WU)(void 0===i?"ROOT_QUERY":i),d=this.executeSelectionSet({selectionSet:(0,U.Vn)(n).selectionSet,objectOrReference:f,enclosingRef:f,context:(0,o.Cl)({store:r,query:n,policies:l,variables:a,varString:(0,ea.M)(a),canonizeResults:c},ek(n,this.config.fragments))});if(d.missing&&(t=[new et(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(d.missing),d.missing,n,a)],!(void 0===s||s)))throw t[0];return{result:d.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,r,n){if(eP(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,r=this,n=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,s=e.context;if((0,J.A_)(i)&&!s.policies.rootTypenamesById[i.__ref]&&!s.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var u=s.variables,c=s.policies,l=s.store.getFieldValue(i,"__typename"),f=[],d=new B.ZI;function p(e,r){var n;return e.missing&&(t=d.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof l&&!c.rootIdsByTypename[l]&&f.push({__typename:l});var h=new Set(n.selections);h.forEach(function(e){var n,v;if((0,Z.MS)(e,u))if((0,J.dt)(e)){var m=c.readField({fieldName:e.n
1ame.value,field:e,variables:s.variables,from:i},s),y=(0,J.ue)(e);void 0===m?eo.XY.added(e)||(t=d.merge(t,((n={})[y]="Can't find field '".concat(e.name.value,"' on ").concat((0,J.A_)(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),n))):(0,ed.c)(m)?m.length>0&&(m=p(r.executeSubSelectedArray({field:e,array:m,enclosingRef:o,context:s}),y)):e.selectionSet?null!=m&&(m=p(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:m,enclosingRef:(0,J.A_)(m)?m:o,context:s}),y)):s.canonizeResults&&(m=r.canon.pass(m)),void 0!==m&&f.push(((v={})[y]=m,v))}else{var g=(0,W.HQ)(e,s.lookupFragment);if(!g&&e.kind===eu.b.FRAGMENT_SPREAD)throw(0,a.vA)(9,e.name.value);g&&c.fragmentMatches(g,l)&&g.selectionSet.selections.forEach(h.add,h)}});var v={result:(0,B.IM)(f),missing:t},m=s.canonizeResults?this.canon.admit(v):(0,el.G)(v);return m.result&&this.knownResults.set(m.result,n),m},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.enclosingRef,s=e.context,u=new B.ZI;function c(e,r){var n;return e.missing&&(t=u.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(s.store.canRead)),i=i.map(function(e,t){return null===e?null:(0,ed.c)(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:o,context:s}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,J.A_)(e)?e:o,context:s}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(r){(0,ef.U)(r)&&((0,a.V1)(!(0,J.A_)(r),10,(0,J.A_)(r)?e.get(r.__ref,"__typename"):r&&r.__typename,t.name.value),Object.values(r).forEach(n.add,n))})}}(s.store,n,e),e)}),{result:s.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),eM=Object.prototype.toString;function eA(e,t){switch(eM.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach(function(e,n){r[n]=eA(e,t)}),r;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var n=Object.create(Object.getPrototypeOf(e));return t.set(e,n),Object.keys(e).forEach(function(r){n[r]=eA(e[r],t)}),n;default:return e}}var eV=r(69451),ej=new v,eq=new WeakMap;function eN(e){var t=eq.get(e);return t||eq.set(e,t={vars:new Set,dep:V()}),t}function eQ(e){eN(e).vars.forEach(function(t){return t.forgetCache(e)})}function eW(e){var t=new Set,r=new Set,n=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(e){var t;eN(e).dep.dirty(n),(t=e).broadcastWatches&&t.broadcastWatches()});var a=Array.from(r);r.clear(),a.forEach(function(t){return t(e)})}}else{var s=ej.getValue();s&&(i(s),eN(s).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var i=n.attachCache=function(e){return t.add(e),eN(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}var eH=Object.create(null);function ez(e){var t=JSON.stringify(e);return eH[t]||(eH[t]=Object.create(null))}function eB(e){var t=ez(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},i=r.keyObject=eY(e,function(e){var i=eZ(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&ep.call(t,e[0])&&(i=eZ(t,e,eU)),(0,a.V1)(void 0!==i,4,e.join("."),t),i});return"".concat(r.typename,":").concat(JSON.stringify(i))})}function eG(e){var t=ez(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,a=JSON.stringify(eY(e,function(e){var r=e[0],o=r.charAt(0);if("@"===o){if(n&&(0,ed.E)(n.directives)){var a=r.slice(1),s=n.directives.find(function(e){return e.name.value===a}),u=s&&(0,J.MB)(s,i);return u&&eZ(u,e.slice(1))}return}if("$"===o){var c=r.slice(1);if(i&&ep.call(i,c)){var l=e.slice(0);return l[0]=c,eZ(i,l)}return}if(t)return eZ(t,e)}));return(t||"{}"!==a)&&(o+=":"+a),o})}function eY(e,t){var r=new B.ZI;return(function e(t){var r=ez(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,o){(0,ed.c)(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),(0,ed.c)(t[o+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce(function(e,n){var i,o=t(n);if(void 0!==o){for(var a=n.length-1;a>=0;--a)(i={})[n[a]]=o,o=i;e=r.merge(e,o)}return e},Object.create(null))}function eU(e,t){return e[t]}function eZ(e,t,r){return r=r||eU,function e(t){return(0,ef.U)(t)?(0,ed.c)(t)?t.map(e):eY(Object.keys(t).sort(),function(e){return eZ(t,e)}):t}(t.reduce(function e(t,n){return(0,ed.c)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}
1function eJ(e){return void 0!==e.args?e.args:e.field?(0,J.MB)(e.field,e.variables):null}var eX=function(){},eK=function(e,t){return t.fieldName},e$=function(e,t,r){return(0,r.mergeObjects)(e,t)},e0=function(e,t){return t},e1=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,o.Cl)({dataIdFromObject:ev},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,n,i=this,a=t&&(t.typename||(null==(r=t.storeObject)?void 0:r.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var s=t&&t.storeObject||e,u=(0,o.Cl)((0,o.Cl)({},t),{typename:a,storeObject:s,readField:t&&t.readField||function(){var e=e3(arguments,s);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),c=a&&this.getTypePolicy(a),l=c&&c.keyFn||this.config.dataIdFromObject;l;){var f=l((0,o.Cl)((0,o.Cl)({},e),s),u);if((0,ed.c)(f))l=eB(f);else{n=f;break}}return n=n?String(n):void 0,u.keyObject?[n,u.keyObject]:[n]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var n=e[r],i=n.queryType,a=n.mutationType,s=n.subscriptionType,u=(0,o.Tt)(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),ep.call(t.toBeAdded,r)?t.toBeAdded[r].push(u):t.toBeAdded[r]=[u]})},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?e$:!1===t?e0:e.merge}a(n,t.merge),n.keyFn=!1===i?eX:(0,ed.c)(i)?eB(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEach(function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;n.keyFn=!1===s?eK:(0,ed.c)(s)?eG(s):"function"==typeof s?s:n.keyFn,"function"==typeof u&&(n.read=u),a(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||eK)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,a.V1)(!n||n===e,5,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(eg);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!ep.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(r,i){if(r.test(e)){var o=t.supertypeMap.get(i);o&&o.forEach(function(e){return n.add(e)})}})),n&&n.size&&n.forEach(function(e){var n=t.getTypePolicy(e),i=n.fields;Object.assign(r,(0,o.Tt)(n,["fields"])),Object.assign(r.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(r){t.updateTypePolicy(e,r)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(t,!0),u=[s],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>u.indexOf(t)&&u.push(t)},l=!!(r&&this.fuzzySubtypes.size),f=!1,d=0;d<u.length;++d){var p=u[d];
1if(p.has(o))return s.has(o)||(f&&!1!==globalThis.__DEV__&&a.V1.warn(6,t,o),s.add(o)),!0;p.forEach(c),l&&d===u.length-1&&function e(t,r,n){return!!(0,ef.U)(r)&&((0,ed.c)(r)?r.every(function(r){return e(t,r,n)}):t.selections.every(function(t){if((0,J.dt)(t)&&(0,Z.MS)(t,n)){var i=(0,J.ue)(t);return ep.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))}(e.selectionSet,r,n)&&(l=!1,f=!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&c(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n,!1),o=i&&i.keyFn;if(o&&r)for(var a={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=eJ(e);o;){var u=o(s,a);if((0,ed.c)(u))o=eG(u);else{t=u||n;break}}return(void 0===t&&(t=e.field?(0,J.Ii)(e.field,e.variables):(0,J.o5)(n,eJ(e))),!1===t)?n:n===eb(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),o=eb(i),a=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,o,!1),u=s&&s.read;if(u){var c=e2(this,r,e,t,t.store.getStorage((0,J.A_)(r)?r.__ref:r,i));return ej.withValue(this.cache,u,[a,c])}return a}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var o=r.field,a=r.typename,s=r.merge;return s===e$?e5(n.store)(e,t):s===e0?t:(n.overwrite&&(e=void 0),s(e,t,e2(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function e2(e,t,r,n,i){var o=e.getStoreFieldName(r),a=eb(o),s=r.variables||n.variables,u=n.store,c=u.toReference,l=u.canRead;return{args:eJ(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:J.A_,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(e3(arguments,t,s),n)},mergeObjects:e5(n.store)}}function e3(e,t,r){var n,i=e[0],s=e[1],u=e.length;return"string"==typeof i?n={fieldName:i,from:u>1?s:t}:(n=(0,o.Cl)({},i),ep.call(n,"from")||(n.from=t)),!1!==globalThis.__DEV__&&void 0===n.from&&!1!==globalThis.__DEV__&&a.V1.warn(7,(0,eV.p)(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function e5(e){return function(t,r){if((0,ed.c)(t)||(0,ed.c)(r))throw(0,a.vA)(8);if((0,ef.U)(t)&&(0,ef.U)(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if((0,J.A_)(t)&&ew(r))return e.merge(t.__ref,r),t;if(ew(t)&&(0,J.A_)(r))return e.merge(t,r.__ref),r;if(ew(t)&&ew(r))return(0,o.Cl)((0,o.Cl)({},t),r)}return r}}function e9(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:(0,o.Cl)((0,o.Cl)({},e),{clientOnly:t,deferred:r})),i}var e4=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,n=t.query,i=t.result,s=t.dataId,u=t.variables,c=t.overwrite,l=(0,U.Vu)(n),f=new B.ZI;u=(0,o.Cl)((0,o.Cl)({},(0,U.wY)(l)),u);var d=(0,o.Cl)((0,o.Cl)({store:e,written:Object.create(null),merge:function(e,t){return f.merge(e,t)},variables:u,varString:(0,ea.M)(u)},ek(n,this.fragments)),{overwrite:!!c,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),p=this.processSelectionSet({result:i||Object.create(null),dataId:s,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:d});if(!(0,J.A_)(p))throw(0,a.vA)(11,i);return d.incomingById.forEach(function(t,n){var i=t.storeObject,s=t.mergeTree,u=t.fieldNodeSet,c=(0,J.WU)(n);if(s&&s.map.size){var l=r.applyMerges(s,c,i,d);if((0,J.A_)(l))return;i=l}if(!1!==globalThis.__DEV__&&!d.overwrite){var f=Object.create(null);u.forEach(function(e){e.selectionSet&&(f[e.name.value]=!0)});var p=function(e){var t=s&&s.map.get(e);return!!(t&&t.info&&t.info.merge)};
1Object.keys(i).forEach(function(e){!0!==f[eb(e)]||p(e)||function(e,t,r,n){var i=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},s=i(e);if(s){var u=i(t);if(!(!u||(0,J.A_)(s)||(0,Q.L)(s,u)||Object.keys(s).every(function(e){return void 0!==n.getFieldValue(u,e)}))){var c=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),l=eb(r),f="".concat(c,".").concat(l);if(!tt.has(f)){tt.add(f);var d=[];(0,ed.c)(s)||(0,ed.c)(u)||[s,u].forEach(function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||d.includes(t)||d.push(t)}),!1!==globalThis.__DEV__&&a.V1.warn(14,l,c,d.length?"either ensure all objects of type "+d.join(" and ")+" have an ID or a custom merge function, or ":"",f,(0,o.Cl)({},s),(0,o.Cl)({},u))}}}}(c,i,e,d.store)})}e.merge(n,i)}),e.retain(p.__ref),p},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,s=e.context,u=e.mergeTree,c=this.cache.policies,l=Object.create(null),f=r&&c.rootTypenamesById[r]||(0,J.D$)(n,i,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof f&&(l.__typename=f);var d=function(){var e=e3(arguments,l,s.variables);if((0,J.A_)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var r=c.readField((0,o.Cl)((0,o.Cl)({},e),{from:t.storeObject}),s);if(void 0!==r)return r}}return c.readField(e,s)},p=new Set;this.flattenFields(i,n,s,f).forEach(function(e,r){var i,o=n[(0,J.ue)(r)];if(p.add(r),void 0!==o){var s=c.getStoreFieldName({typename:f,fieldName:r.name.value,field:r,variables:e.variables}),h=e8(u,s),v=t.processFieldValue(o,r,r.selectionSet?e9(e,!1,!1):e,h),m=void 0;r.selectionSet&&((0,J.A_)(v)||ew(v))&&(m=d("__typename",v));var y=c.getMergeFunction(f,r.name.value,m);y?h.info={field:r,typename:f,merge:y}:te(u,s),l=e.merge(l,((i={})[s]=v,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||eo.XY.added(r)||c.getReadFunction(f,r.name.value)||!1===globalThis.__DEV__||a.V1.error(12,(0,J.ue)(r),n)});try{var h=c.identify(n,{typename:f,selectionSet:i,fragmentMap:s.fragmentMap,storeObject:l,readField:d}),v=h[0],m=h[1];r=r||v,m&&(l=s.merge(l,m))}catch(e){if(!r)throw e}if("string"==typeof r){var y=(0,J.WU)(r),g=s.written[r]||(s.written[r]=[]);if(g.indexOf(i)>=0||(g.push(i),this.reader&&this.reader.isFresh(n,y,i,s)))return y;var b=s.incomingById.get(r);return b?(b.storeObject=s.merge(b.storeObject,l),b.mergeTree=function e(t,r){if(t===r||!r||e7(r))return t;if(!t||e7(t))return r;var n=t.info&&r.info?(0,o.Cl)((0,o.Cl)({},t.info),r.info):t.info||r.info,i=t.map.size&&r.map.size,a={info:n,map:i?new Map:t.map.size?t.map:r.map};if(i){var s=new Set(r.map.keys());t.map.forEach(function(t,n){a.map.set(n,e(t,r.map.get(n))),s.delete(n)}),s.forEach(function(n){a.map.set(n,e(r.map.get(n),t.map.get(n)))})}return a}(b.mergeTree,u),p.forEach(function(e){return b.fieldNodeSet.add(e)})):s.incomingById.set(r,{storeObject:l,mergeTree:e7(u)?void 0:u,fieldNodeSet:p}),y}return l},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,ed.c)(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,r,e8(n,o));return te(n,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?eA(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,J.D$)(t,e,r.fragmentMap));var i=new Map,o=this.cache.policies,u=new s.b(!1);return!function e(s,c){var l=u.lookup(s,c.clientOnly,c.deferred);l.visited||(l.visited=!0,s.selections.forEach(function(s){if((0,Z.MS)(s,r.variables)){var u=c.clientOnly,l=c.deferred;if(!(u&&l)&&(0,ed.E)(s.directives)&&s.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(u=!0),"defer"===t){var n=(0,J.MB)(e,r.variables);n&&!1===n.if||(l=!0)}}),(0,J.dt)(s)){var f=i.get(s);f&&(u=u&&f.clientOnly,l=l&&f.deferred),i.set(s,e9(r,u,l))}else{var d=(0,W.HQ)(s,r.lookupFragment);if(!d&&s.kind===eu.b.FRAGMENT_SPREAD)throw(0,a.vA)(13,s.name.value);d&&o.fragmentMatches(d,n,t,r.variables)&&e(d.selectionSet,e9(r,u,l))}}}))}(e,r),i},e.prototype.applyMerges=function(e,t,r,n,i){var s=this;if(e.map.size&&!(0,J.A_)(r)){var u,c,l=!(0,ed.c)(r)&&((0,J.A_)(t)||ew(t))?t:void 0,f=r;l&&!i&&(i=[(0,J.A_)(l)?l.__ref:l]);var d=function(e,t){return(0,ed.c)(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};
1e.map.forEach(function(e,t){var r=d(l,t),o=d(f,t);if(void 0!==o){i&&i.push(t);var u=s.applyMerges(e,r,o,n,i);u!==o&&(c=c||new Map).set(t,u),i&&(0,a.V1)(i.pop()===t)}}),c&&(r=(0,ed.c)(f)?f.slice(0):(0,o.Cl)({},f),c.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(u=n.store).getStorage.apply(u,i)):r},e}(),e6=[];function e8(e,t){var r=e.map;return r.has(t)||r.set(t,e6.pop()||{map:new Map}),r.get(t)}function e7(e){return!e||!(e.info||e.map.size)}function te(e,t){var r=e.map,n=r.get(t);n&&e7(n)&&(e6.push(n),r.delete(t))}var tt=new Set,tr=function(e){function t(t){void 0===t&&(t={});var r,n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new ei(eo.XY),n.assumeImmutableResults=!0,n.makeVar=eW,n.txCount=0,r=t,n.config=(0,ec.o)(em,r),n.addTypename=!!n.config.addTypename,n.policies=new e1({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,o.C6)(t,e),t.prototype.init=function(){var e=this.data=new eE.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new e4(this,this.storeReader=new eF({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:ey(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=N(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize||H.v["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(eP(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,(0,ea.M)({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,o.Cl)((0,o.Cl)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof et)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(ep.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,o.Cl)((0,o.Cl)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,r=this;return this.watches.size||(t=this,eN(t).vars.forEach(function(e){return e.attachCache(t)})),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){r.watches.delete(e)&&!r.watches.size&&eQ(r),r.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){ea.M.reset(),es.y.reset(),this.addTypenameTransform.resetCache(),null==(t=this.config.fragments)||t.resetCaches();var t,r=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),r},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,J.A_)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&a.V1.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(ep.call(e,"id"))return!1;e=(0,o.Cl)((0,o.Cl)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),ea.M.reset(),e&&e.discardWatches?(this.watches.forEac
1h(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),eQ(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,n=e.update,i=e.optimistic,a=void 0===i||i,s=e.removeOptimistic,u=e.onWatchUpdated,c=function(e){var i=r.data,o=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=i,r.optimisticData=o}},l=new Set;return u&&!this.txCount&&this.broadcastWatches((0,o.Cl)((0,o.Cl)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,c):!1===a?c(this.data):c(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),u&&l.size?(this.broadcastWatches((0,o.Cl)((0,o.Cl)({},e),{onWatchUpdated:function(e,t){var r=u.call(this,e,t);return!1!==r&&l.delete(e),r}})),l.size&&l.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,n,r)))&&(r&&(0,Q.L)(r.result,n.result)||e.callback(e.lastDiff=n,r))},t}(ee);!1!==globalThis.__DEV__&&(tr.prototype.getMemoryInternals=Y.cM);var tn=r(80207),ti=i.C.execute,to=r(97410),ta=r(10248),ts=r(66260);function tu(e,t,r){return new z.c(function(n){var i={then:function(e){return new Promise(function(t){return t(e())})}};function o(e,t){return function(r){if(e){var o=function(){return n.closed?0:e(r)};i=i.then(o,o).then(function(e){return n.next(e)},function(e){return n.error(e)})}else n[t](r)}}var a={next:o(t,"next"),error:o(r,"error"),complete:function(){i.then(function(){return n.complete()})}},s=e.subscribe(a);return function(){return s.unsubscribe()}})}function tc(e){var t=tl(e);return(0,ed.E)(t)}function tl(e){var t=(0,ed.E)(e.errors)?e.errors.slice(0):[];return(0,ts.ST)(e)&&(0,ed.E)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var tf=r(61491);function td(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}function tp(e){function t(t){Object.defineProperty(e,t,{value:z.c})}return er.ol&&Symbol.species&&t(Symbol.species),t("@@species"),e}function th(e){return e&&"function"==typeof e.then}var tv=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),td(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),td(r.observers,"error",e))},complete:function(){var e=r.sub,t=r.sources;if(null!==e){var n=(void 0===t?[]:t).shift();n?th(n)?n.then(function(e){return r.sub=e.subscribe(r.handlers)},r.handlers.error):r.sub=n.subscribe(r.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),td(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.error(e)},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new z.c(t)]),th(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,o.C6)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach(function(r){return r(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},t}(z.c);tp(tv);var tm=r(59794),ty=r(24982),tg=Object.assign,tb=Object.hasOwnProperty,tw=function(e){function t(t){var r=t.queryManager,n=t.queryInfo,i=t.options,a=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=tS)}catch(e){}var r=!a.observers.size;a.observers.add(e);var n=a.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(n.result),r&&a.reobserve().catch(function(){}),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=n,a.queryManager=r,a.waitForOwnResult=tx(i.fetchPolicy),a.isTornDown=!1,a.subscribeToMore=a.subscribeToMore.bind(a);var s=r.defaultOptions.watchQuery,u=(void 0===s?{}
1:s).fetchPolicy,c=void 0===u?"cache-first":u,l=i.fetchPolicy,f=void 0===l?c:l,d=i.initialFetchPolicy,p=void 0===d?"standby"===f?c:f:d;a.options=(0,o.Cl)((0,o.Cl)({},i),{initialFetchPolicy:p,fetchPolicy:f}),a.queryId=n.queryId||r.generateQueryId();var h=(0,U.Vu)(a.query);return a.queryName=h&&h.name&&h.name.value,a}return(0,o.C6)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||ty.pT.ready,n=(0,o.Cl)((0,o.Cl)({},t),{loading:(0,ty.bi)(r),networkStatus:r}),i=this.options.fetchPolicy,a=void 0===i?"cache-first":i;if(tx(a)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var s=this.queryInfo.getDiff();(s.complete||this.options.returnPartialData)&&(n.data=s.result),(0,Q.L)(n.data,{})&&(n.data=void 0),s.complete?(delete n.partial,s.complete&&n.networkStatus===ty.pT.loading&&("cache-first"===a||"cache-only"===a)&&(n.networkStatus=ty.pT.ready,n.loading=!1)):n.partial=!0,!1===globalThis.__DEV__||s.complete||this.options.partialRefetch||n.loading||n.data||n.error||tC(s.missing)}return e&&this.updateLastResult(n),n},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!X(this.query,this.last.result,e,this.variables):!(0,Q.L)(this.last.result,e))||t&&!(0,Q.L)(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,Q.L)(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0},n=this.options.fetchPolicy;if("cache-and-network"===n?r.fetchPolicy=n:"no-cache"===n?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",!1!==globalThis.__DEV__&&e&&tb.call(e,"variables")){var i=(0,U.AT)(this.query),s=i.variableDefinitions;s&&s.some(function(e){return"variables"===e.variable.name.value})||!1===globalThis.__DEV__||a.V1.warn(20,e,(null==(t=i.name)?void 0:t.value)||i)}return e&&!(0,Q.L)(this.options.variables,e)&&(r.variables=this.options.variables=(0,o.Cl)((0,o.Cl)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,ty.pT.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,o.Cl)((0,o.Cl)({},e.query?e:(0,o.Cl)((0,o.Cl)((0,o.Cl)((0,o.Cl)({},this.options),{query:this.options.query}),e),{variables:(0,o.Cl)((0,o.Cl)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});r.query=this.transformDocument(r.query);var n=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):r.query;var i=this.queryInfo,s=i.networkStatus;i.networkStatus=ty.pT.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var u=new Set,c=null==e?void 0:e.updateQuery,l="no-cache"!==this.options.fetchPolicy;return l||(0,a.V1)(c,21),this.queryManager.fetchQuery(n,r,ty.pT.fetch
1More).then(function(a){if(t.queryManager.removeQuery(n),i.networkStatus===ty.pT.fetchMore&&(i.networkStatus=s),l)t.queryManager.cache.batch({update:function(n){var i=e.updateQuery;i?n.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return i(e,{fetchMoreResult:a.data,variables:r.variables})}):n.writeQuery({query:r.query,variables:r.variables,data:a.data})},onWatchUpdated:function(e){u.add(e.query)}});else{var f=t.getLast("result"),d=c(f.data,{fetchMoreResult:a.data,variables:r.variables});t.reportResult((0,o.Cl)((0,o.Cl)({},f),{data:d}),t.variables)}return a}).finally(function(){l&&!u.has(t.query)&&tk(t)})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery(function(e,t){return n(e,{subscriptionData:r,variables:t.variables})})},error:function(t){if(e.onError)return void e.onError(t);!1!==globalThis.__DEV__&&a.V1.error(22,t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=(0,ec.o)(this.options,e||{});tg(this.options,t)},t.prototype.setVariables=function(e){return(0,Q.L)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},ty.pT.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,r=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,o=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:o}):"variables-changed"===e?t.fetchPolicy=o:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,r){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t,r)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(!r||!this.hasObservers()){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==r){(0,a.V1)(r,23),(t||(this.pollingInfo={})).interval=r;var n=function(){var t,r;e.pollingInfo&&((0,ty.bi)(e.queryInfo.networkStatus)||(null==(r=(t=e.options).skipPollAttempt)?void 0:r.call(t))?i():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},ty.pT.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};i()}}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var r=this.getLastError();return r&&this.last&&!(0,Q.L)(t,this.last.variables)&&(r=void 0),this.last=(0,o.Cl)({result:this.queryManager.assumeImmutableResults?e:eA(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var n=t===ty.pT.refetch||t===ty.pT.fetchMore||t===ty.pT.poll,i=this.options.variables,a=this.options.fetchPolicy,s=(0,ec.o)(this.options,e||{}),u=n?s:tg(this.options,s),c=this.transformDocument(u.query);this.lastQuery=c,!n&&(this.updatePolling(),e&&e.variables&&!(0,Q.L)(e.variables,i)&&"standby"!==u.fetchPolicy&&(u.fetchPolicy===a||"function"==typeof u.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",u),void 0===t&&(t=ty.pT.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=tx(u.fetchPolicy));var l=function(){r.concast===p&&(r.waitForOwnResult=!1)},f=u.variables&&(0,o.Cl)({},u.variables),d=this.fetch(u,t,c),p=d.concast,h=d.fromLink,v={next:function(e){(0,Q.L)(r.variables,f)&&(l(),r.reportResult(e,f))},error:function(e){(0,Q.L)(r.variables,f)&&((0,tm.Mn)(e)||(e=new tm.K4({networkError:e})),l(),r.reportError(e,f))}};return n||!h&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=p,this.observer=v),p.addObserver(v),p},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.last;this.resetLastResults();var n=this.subscribe.apply(this,e);return this.last=r,n},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError(),n=this.isDifferentFromLastResult(e,t);(r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(r||n)&&td(this.observers,"next",e)},t.prototype.reportError=function(e,t){var r=(0,o.Cl)((0,o.Cl)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:ty.pT.error,loading:!1});this.updateLastResult(r,t),td(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t}(z.c);function tk(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,t){return(this.nextFetchPolicy=n,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(e,t):r}}):e.reobserve()}function tS(e){!1!==globalThis.__DEV__&&a.V1.error(24,e.message,e.stack)}function tC(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&a.V1.debug(25,e)}function tx(e){return"network-only"===e||"no-cache"===e||"standby"===e}tp(tw);var tE=new(er.et?WeakMap:Map);function t_(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return tE.set(e,(tE.get(e)+1)%1e15),r.apply(this,arguments)})}function tT(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var tO=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;tE.has(r)||(tE.set(r,0),t_(r,"evict"),t_(r,"modify"),t_(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||ty.pT.loading;return this.variables&&this.networkStatus!==ty.pT.loading&&!(0,Q.L)(this.variables,e.variables)&&(t=ty.pT.setVariables),(0,Q.L)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){tT(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&(0,Q.L)(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(e);return this.updateLastDiff(r,e),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null==(t=this.observableQuery)?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r=this,n=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&(null==(t=this.observableQuery)?void 0:t.getLastError()))&&(this.updateLastDiff(e),this.dirty||(0,Q.L)(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return r.notify()},0))))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():tk(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;
1tT(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,ty.bi)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var n=(0,o.Cl)((0,o.Cl)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,Q.L)(n,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=n))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===tE.get(this.cache)&&(0,Q.L)(t,r.variables)&&(0,Q.L)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,o=new B.ZI,a=(0,ed.E)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,ed.E)(e.incremental)){var s=(0,ts.bd)(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=o.merge(u.result,e.data)}this.graphQLErrors=a,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(tI(e,r.errorPolicy)?this.cache.performTransaction(function(o){if(i.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:tE.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var a=i.getDiffOptions(r.variables),s=o.diff(a);!i.stopped&&(0,Q.L)(i.variables,r.variables)&&i.updateWatch(r.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=ty.pT.ready},e.prototype.markError=function(e){return this.networkStatus=ty.pT.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function tI(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!tc(e);return!n&&r&&e.data&&(n=!0),n}var tR=r(83502),tP=Object.prototype.hasOwnProperty,tD=Object.create(null),tL=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new tR.A(H.v["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new s.b(!1);var r=new ei(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults;var n=e.documentTransform;this.documentTransform=n?r.concat(n).concat(r):r,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches((0,a.vA)(26))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,o.sH)(this,arguments,void 0,function(e){var t,r,n,i,s,u,c,l=e.mutation,f=e.variables,d=e.optimisticResponse,p=e.updateQueries,h=e.refetchQueries,v=void 0===h?[]:h,m=e.awaitRefetchQueries,y=void 0!==m&&m,g=e.update,b=e.onQueryUpdated,w=e.fetchPolicy,k=void 0===w?(null==(u=this.defaultOptions.mutate)?void 0:u.fetchPolicy)||"network-only":w,S=e.errorPolicy,C=void 0===S?(null==(c=this.defaultOptions.mutate)?void 0:c.errorPolicy)||"none":S,x=e.keepRootFields,E=e.context;return(0,o.YH)(this,function(e){switch(e.label){case 0:if((0,a.V1)(l,27),(0,a.V1)("network-only"===k||"no-cache"===k,28),t=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),r=this.getDocumentInfo(l).hasClientExports,f=this.getVariables(l,f),!r)return[3,2];return[4,this.localState.addExportedVariables(l,f,E)];case 1:f=e.sent(),e.label=2;case 2:return n=this.mutationStore&&(this.mutationStore[t]={mutation:l,variables:f,loading:!0,error:null}),i=d&&this.markMutationOptimistic(d,{mutationId:t,document:l,variables:f,fetchPolicy:k,errorPolicy:C,context:E,updateQueries:p,update:g,keepRootFields:x}),this.broadcastQueries(),s=this,[2,new Promise(function(e,r){return tu(s.getObservableFromLink(l,(0,o.Cl)((0,o.Cl)({},E),{optimisticResponse:i?d:void 0}),f,{},!1),function(e){if(tc(e)&&"none"===C)throw new tm.K4({graphQLErrors:tl(e)});n&&(n.loading=!1,n.error=null);var r=(0,o.Cl)({},e);return"function"==typeof v&&(v=v(r)),"ignore"===C&&tc(r)&&delete r.errors,s.markMutationResult({mutationId:t,result:r,document:l,variables:f,fetchPolicy:k,errorPolicy:C,context:E,update:g,updateQueries:p,awaitRefetchQueries:y,refetchQueries:v,removeOptimistic:i?t:void 0,onQueryUpdated:b,keepRootFields:x})}).subscribe({next:function(t){s.broadcastQueries(),"hasNext"in t&&!1!==t.hasNext||e(t)},error:function(e){n&&(n.loading=!1,n.error=e),i&&s.cache.removeOptimistic(t),s.broadcastQueries(),r(e instanceof tm.K4?e:new tm.K4({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var n=e.result,i=[],a="no-cache"===e.fetchPolicy;if(!a&&tI(n,e.errorPolicy)){if((0,ts.ST)(n)||i.push({result:n.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,ts.ST)(n)&&(0,ed.E)(n.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}
1),u=void 0;s.result&&(u=(0,ts.bd)(s.result,n)),void 0!==u&&(n.data=u,i.push({result:u,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(e,o){var a=e.observableQuery,s=a&&a.queryName;if(s&&tP.call(c,s)){var u=c[s],l=r.queries.get(o),f=l.document,d=l.variables,p=t.diff({query:f,variables:d,returnPartialData:!0,optimistic:!1}),h=p.result;if(p.complete&&h){var v=u(h,{mutationResult:n,queryName:f&&(0,U.n4)(f)||void 0,queryVariables:d});v&&i.push({result:v,dataId:"ROOT_QUERY",query:f,variables:d})}}})}if(i.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(t){a||i.forEach(function(e){return t.write(e)});var s=e.update,u=!(0,ts.YX)(n)||(0,ts.ST)(n)&&!n.hasNext;if(s){if(!a){var c=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(n=(0,o.Cl)((0,o.Cl)({},n),{data:c.result}))&&delete n.incremental,"hasNext"in n&&delete n.hasNext)}u&&s(t,n,{context:e.context,variables:e.variables})}a||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return l.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then(function(){return n})}return Promise.resolve(n)},e.prototype.markMutationOptimistic=function(e,t){var r=this,n="function"==typeof e?e(t.variables,{IGNORE:tD}):e;return n!==tD&&(this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,o.Cl)((0,o.Cl)({},t),{result:{data:n}}),e)}catch(e){!1!==globalThis.__DEV__&&a.V1.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(e,t,r).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:(0,Z.f2)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,Z.d8)(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,eo.iz)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:(0,U.wY)((0,U.Vu)(e)),asQuery:(0,o.Cl)((0,o.Cl)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,o.Cl)((0,o.Cl)({},e),{operation:"query"}):e})})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,o.Cl)((0,o.Cl)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,o.Cl)((0,o.Cl)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new tO(this),n=new tw({queryManager:this,queryInfo:r,options:e});return n.lastQuery=t,this.queries.set(n.queryId,r),r.init({document:t,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var r=this;return void 0===t&&(t=this.generateQueryId()),(0,a.V1)(e.query,29),(0,a.V1)("Document"===e.query.kind,30),(0,a.V1)(!e.returnPartialData,31),(0,a.V1)(!e.pollInterval,32),this.fetchQuery(t,(0,o.Cl)((0,o.Cl)({},e),{query:this.transform(e.query)})).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}
1),this.cancelPendingFetches((0,a.vA)(33)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=ty.pT.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,n=new Map,i=new Set;return Array.isArray(e)&&e.forEach(function(e){"string"==typeof e?n.set(e,!1):(0,J.Kc)(e)?n.set(t.transform(e),!1):(0,ef.U)(e)&&e.query&&i.add(e)}),this.queries.forEach(function(t,i){var o=t.observableQuery,a=t.document;if(o){if("all"===e)return void r.set(i,o);var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&n.has(s)||a&&n.has(a))&&(r.set(i,o),s&&n.set(s,!0),a&&n.set(a,!0))}}),i.size&&i.forEach(function(e){var n=(0,tf.v)("legacyOneTimeQuery"),i=t.getQuery(n).init({document:e.query,variables:e.variables}),s=new tw({queryManager:t,queryInfo:i,options:(0,o.Cl)((0,o.Cl)({},e),{fetchPolicy:"network-only"})});(0,a.V1)(s.queryId===n),i.setObservableQuery(s),r.set(n,s)}),!1!==globalThis.__DEV__&&n.size&&n.forEach(function(e,t){e||!1===globalThis.__DEV__||a.V1.warn("string"==typeof t?34:35,t)}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,i){var o=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=void 0===i?"none":i,a=e.variables,s=e.context,u=void 0===s?{}:s,c=e.extensions,l=void 0===c?{}:c;r=this.transform(r),a=this.getVariables(r,a);var f=function(e){return t.getObservableFromLink(r,u,e,l).map(function(i){"no-cache"!==n&&(tI(i,o)&&t.cache.write({query:r,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=tc(i),s=(0,tm.uR)(i);if(a||s){var u={};if(a&&(u.graphQLErrors=i.errors),s&&(u.protocolErrors=i.extensions[tm.K$]),"none"===o||s)throw new tm.K4(u)}return"ignore"===o&&delete i.errors,i})};if(this.getDocumentInfo(r).hasClientExports){var d=this.localState.addExportedVariables(r,a,u).then(f);return new z.c(function(e){var t=null;return d.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return f(a)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n,i){var a,s,u=this;void 0===i&&(i=null!=(a=null==t?void 0:t.queryDeduplication)?a:this.queryDeduplication);var c=this.getDocumentInfo(e),l=c.serverQuery,f=c.clientQuery;if(l){var d=this.inFlightLinkObservables,p=this.link,h={query:l,variables:r,operationName:(0,U.n4)(l)||void 0,context:this.prepareContext((0,o.Cl)((0,o.Cl)({},t),{forceFetch:!i})),extensions:n};if(t=h.context,i){var v=(0,es.y)(l),m=(0,ea.M)(r),y=d.lookup(v,m);if(!(s=y.observable)){var g=new tv([ti(p,h)]);s=y.observable=g,g.beforeNext(function(){d.remove(v,m)})}}else s=new tv([ti(p,h)])}else s=new tv([z.c.of({data:{}})]),t=this.prepareContext(t);return f&&(s=tu(s,function(e){return u.localState.runResolvers({document:f,remoteResult:e,context:t,variables:r})})),s},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return tu(this.getObservableFromLink(i,r.context,r.variables),function(o){var a=tl(o),s=a.length>0,u=r.errorPolicy;if(n>
1=e.lastRequestId){if(s&&"none"===u)throw e.markError(new tm.K4({graphQLErrors:a}));e.markResult(o,i,r,t),e.markReady()}var c={data:o.data,loading:!1,networkStatus:ty.pT.ready};return s&&"none"===u&&(c.data=void 0),s&&"ignore"!==u&&(c.errors=a,c.networkStatus=ty.pT.error),c},function(t){var r=(0,tm.Mn)(t)?t:new tm.K4({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i,o,a=this;void 0===r&&(r=ty.pT.loading),void 0===n&&(n=t.query);var s=this.getVariables(n,t.variables),u=this.getQuery(e),c=this.defaultOptions.watchQuery,l=t.fetchPolicy,f=void 0===l?c&&c.fetchPolicy||"cache-first":l,d=t.errorPolicy,p=void 0===d?c&&c.errorPolicy||"none":d,h=t.returnPartialData,v=t.notifyOnNetworkStatusChange,m=t.context,y=Object.assign({},t,{query:n,variables:s,fetchPolicy:f,errorPolicy:p,returnPartialData:void 0!==h&&h,notifyOnNetworkStatusChange:void 0!==v&&v,context:void 0===m?{}:m}),g=function(e){y.variables=e;var n=a.fetchQueryByPolicy(u,y,r);return"standby"!==y.fetchPolicy&&n.sources.length>0&&u.observableQuery&&u.observableQuery.applyNextFetchPolicy("after-fetch",t),n},b=function(){return a.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,function(e){b(),setTimeout(function(){return i.cancel(e)})}),this.getDocumentInfo(y.query).hasClientExports)i=new tv(this.localState.addExportedVariables(y.query,y.variables,y.context).then(g).then(function(e){return e.sources})),o=!0;else{var w=g(y.variables);o=w.fromLink,i=new tv(w.sources)}return i.promise.then(b,b),{concast:i,fromLink:o}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?(0,tf.v)("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;n&&this.getObservableQueries(n).forEach(function(e,r){c.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})});var l=new Map;return r&&this.cache.batch({update:r,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof tO&&e.watcher.observableQuery;if(n){if(u){c.delete(n.queryId);var i=u(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==u&&c.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),c.size&&c.forEach(function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;if(u){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}n=u(i,a,o)}u&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),l},e.prototype.fetchQueryByPolicy=function(e,t,r){var n=this,i=t.query,a=t.variables,s=t.fetchPolicy,u=t.refetchWritePolicy,c=t.errorPolicy,l=t.returnPartialData,f=t.context,d=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:i,variables:a,networkStatus:r});var h=function(){return e.getDiff()},v=function(t,r){void 0===r&&(r=e.networkStatus||ty.pT.loading);var s=t.result;!1===globalThis.__DEV__||l||(0,Q.L)(s,{})||tC(t.missing);var u=function(e){return z.c.of((0,o.Cl)({data:e,loading:(0,ty.bi)(r),networkStatus:r},t.complete?null:{partial:!0}))};return s&&n.getDocumentInfo(i).hasForcedResolvers?n.localState.runResolvers({document:i,remoteResult:{data:s},context:f,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return u(e.data||void 0)}):"none"===c&&r===ty.pT.refetch&&Array.isArray(t.missing)?u(void 0):u(s)},m="no-cache"===s?0:r===ty.pT.refetch&&"merge"!==u?1:2,y=function(){return n.getResultsFromLink(e,m,{query:i,variables:a,context:f,fetchPolicy:s,errorPolicy:c})},g=d&&"number"==typeof p&&p!==r&&(0,ty.bi)(r);switch(s){default:case"cache-first":var b=h();if(b.complete)return{fromLink:!1,sources:[v(b,e.markReady())]};if(l||g)return{fromLink:!0,sources:[v(b),y()]};return{fromLink:!0,sources:[y()]};case"cache-and-network":var b=h();if(b.complete||l||g)return{fromLink:!0,sources:[v(b),y()]};return{fromLink:!0,sources:[y()]};case"cache-only":return{fromLink:!1,sources:[v(h(),e.markReady())]};case"network-only":if(g)return{fromLink:!0,sources:[v(h()),y()]};return{fromLink:!0,sources:[y()]};case"no-cache":if(g)return{fromLink:!0,sources:[v(e.getDiff()),y()]};return{fromLink:!0,sources:[y()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new tO(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,o.Cl)((0,o.Cl)((0,o.Cl)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),tF=r(50424);function tM(e){return e.kind===eu.b.FIELD||e.kind===eu.b.FRAGMENT_SPREAD||e.kind===eu.b.INLINE_FRAGMENT}var tA=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,B.D9)(t.resolvers,e)}):this.resolvers=(0,B.D9)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return(0,o.sH)(this,arguments,void 0,function(e){var t=e.document,r=e.remoteResult,n=e.context,i=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,o.YH)(this,function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,s).then(function(e){return(0,o.Cl)((0,o.Cl)({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,Z.d8)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,eo.er)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,o.Cl)((0,o.Cl)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,o.sH)(this,arguments,void 0,function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,o.YH)(this,function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,o.Cl)((0,o.Cl)({},t),e.exportedVariables)})]:[2,(0,o.Cl)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,tF.YR)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return tF.sP}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,eo.zc)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,o.sH)(this,arguments,void 0,function(e,t,r,n,i,a){var s,u,c,l,f,d,p,h,v,m;return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===a&&(a=!1),(0,o.YH)(this,function(y){return s=(0,U.Vn)(e),u=(0,U.zK)(e),c=(0,W.JG)(u),l=this.collectSelectionsToResolve(s,c),d=(f=s.operation)?f.charAt(0).toUpperCase()+f.slice(1):"Query",p=this,h=p.cache,v=p.client,m={fragmentMap:c,context:(0,o.Cl)((0,o.Cl)({},r),{cache:h,client:v}),variables:n,fragmentMatcher:i,defaultOperationType:d,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,!1,t,m).then(function(e){return{result:e,exportedVariables:m.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,n){return(0,o.sH)(this,void 0,void 0,function(){var i,s,u,c,l,f=this;return(0,o.YH)(this,function(d){return i=n.fragmentMap,s=n.context,u=n.variables,c=[r],l=function(e){return(0,o.sH)(f,void 0,void 0,function(){var l,f;return(0,o.YH)(this,function(o){return(t||n.selectionsToResolve.has(e))&&(0,Z.MS)(e,u)?(0,J.dt)(e)?[2,this.resolveField(e,t,r,n).then(function(t){var r;void 0!==t&&c.push(((r={}
1)[(0,J.ue)(e)]=t,r))})]:((0,J.kd)(e)?l=e:(l=i[e.name.value],(0,a.V1)(l,18,e.name.value)),l&&l.typeCondition&&(f=l.typeCondition.name.value,n.fragmentMatcher(r,f,s)))?[2,this.resolveSelectionSet(l.selectionSet,t,r,n).then(function(e){c.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(l)).then(function(){return(0,B.IM)(c)})]})})},e.prototype.resolveField=function(e,t,r,n){return(0,o.sH)(this,void 0,void 0,function(){var i,a,s,u,c,l,f,d,p,h=this;return(0,o.YH)(this,function(o){return r?(i=n.variables,u=(a=e.name.value)!==(s=(0,J.ue)(e)),l=Promise.resolve(c=r[s]||r[a]),(!n.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(f=r.__typename||n.defaultOperationType,(d=this.resolvers&&this.resolvers[f])&&(p=d[u?a:s])&&(l=Promise.resolve(ej.withValue(this.cache,p,[r,(0,J.MB)(e,i),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,l.then(function(r){if(void 0===r&&(r=c),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=r)})}),!e.selectionSet||null==r)return r;var i,o,a=null!=(o=null==(i=e.directives)?void 0:i.some(function(e){return"client"===e.name.value}))&&o;return Array.isArray(r)?h.resolveSubSelectedArray(e,t||a,r,n):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t||a,r,n):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(i){if(!n.has(i)){var o=new Set;n.set(i,o),(0,tF.YR)(i,{Directive:function(e,t,n,i,a){"client"===e.name.value&&a.forEach(function(e){r(e)&&tM(e)&&o.add(e)})},FragmentSpread:function(n,i,s,u,c){var l=t[n.name.value];(0,a.V1)(l,19,n.name.value);var f=e(l);f.size>0&&(c.forEach(function(e){r(e)&&tM(e)&&o.add(e)}),o.add(n),f.forEach(function(e){o.add(e)}))}})}return n.get(i)}(e)},e}(),tV=r(90209),tj=!1,tq=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,a.vA)(15);var r=e.uri,n=e.credentials,s=e.headers,u=e.cache,c=e.documentTransform,l=e.ssrMode,f=void 0!==l&&l,d=e.ssrForceFetchDelay,p=void 0===d?0:d,h=e.connectToDevTools,v=e.queryDeduplication,m=void 0===v||v,y=e.defaultOptions,g=e.defaultContext,b=e.assumeImmutableResults,w=void 0===b?u.assumeImmutableResults:b,k=e.resolvers,S=e.typeDefs,C=e.fragmentMatcher,x=e.name,E=e.version,_=e.devtools,T=e.link;T||(T=r?new ta.P({uri:r,credentials:n,headers:s}):i.C.empty()),this.link=T,this.cache=u,this.disableNetworkFetches=f||p>0,this.queryDeduplication=m,this.defaultOptions=y||Object.create(null),this.typeDefs=S,this.devtoolsConfig=(0,o.Cl)((0,o.Cl)({},_),{enabled:(null==_?void 0:_.enabled)||h}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),p&&setTimeout(function(){return t.disableNetworkFetches=!1},p),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=to.r,this.localState=new tA({cache:u,client:this,resolvers:k,fragmentMatcher:C}),this.queryManager=new tL({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:g,documentTransform:c,queryDeduplication:m,ssrMode:f,clientAwareness:{name:x,version:E},localState:this.localState,assumeImmutableResults:w,onBroadcast:this.devtoolsConfig.enabled?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("undefined"!=typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!tj&&!1!==globalThis.__DEV__&&(tj=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,r=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1!==globalThis.__DEV__&&a.V1.log("Download the Apollo DevTools for a better development experience: %s",r)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform}
1,enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,tV.l)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,o.Cl)((0,o.Cl)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,tV.l)(this.defaultOptions.query,e)),(0,a.V1)("cache-and-network"!==e.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,o.Cl)((0,o.Cl)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,tV.l)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){return this.cache.watchFragment(e)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return ti(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var i=Promise.all(n);return i.queries=r,i.results=n,i.catch(function(e){!1!==globalThis.__DEV__&&a.V1.debug(17,e)}),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(tq.prototype.getMemoryInternals=Y.ep);var tN=r(30561),tQ=r(12115),tW=r(85004),tH=r(35067),tz=r(414),tB=r(82855),tG=r(4932),tY=function(e){var t=e.client,r=e.children,n=(0,tG.l)(),i=tB.useContext(n),s=tB.useMemo(function(){return(0,o.Cl)((0,o.Cl)({},i),{client:t||i.client})},[i,t]);return(0,a.V1)(s.client,47),tB.createElement(n.Provider,{value:s},r)},tU=class extends i.C{maxDelay;constructor(e){super(),this.maxDelay=e.cutoffDelay}request(e,t){let r,n;if(!t)throw Error("This is not a terminal link!");let i=(0,Z.d8)(["defer"],e.query),o=t(e);if(!i)return o;let a=this.maxDelay;return new z.c(e=>
1{let t=o.subscribe({next:e=>{r?(r.data&&"incremental"in e?r.data=(0,ts.bd)(r.data,e):e.data&&(r.data=e.data),e.errors&&(r.errors=[...r.errors||[],...e.errors||[]]),e.extensions&&(r.extensions={...r.extensions,...e.extensions})):r=e,a?n||(n=setTimeout(i,a)):i()},error:t=>{n&&clearTimeout(n),e.error(t)},complete:()=>{n&&(clearTimeout(n),i()),e.complete()}});function i(){e.next(r),e.complete(),t.unsubscribe()}return function(){clearTimeout(n),t.unsubscribe()}})}};function tZ(e,t){return e.arguments?.find(e=>e.name.value===t)?.value}var tJ=class extends i.C{stripDirectives=[];constructor(e){super(),!1!==e.stripDefer&&this.stripDirectives.push("defer")}request(e,t){if(!t)throw Error("This is not a terminal link!");let{query:r}=e,n=r;return null===(n=(0,eo.iz)(this.stripDirectives.map(e=>({test(t){let r="Directive"===t.kind&&t.name.value===e,n=tZ(t,"label");return n?.kind==="StringValue"&&n.value.startsWith("SsrDontStrip")&&(r=!1),r},remove:!0})).concat({test(e){if("Directive"!==e.kind)return!1;let t=tZ(e,"label");return t?.kind==="StringValue"&&t.value.startsWith("SsrStrip")},remove:!0}),n))?z.c.of({}):(e.query=n,t(e))}},tX=class extends i.C{constructor(e={}){super(i.C.from([new tJ({stripDefer:e.stripDefer}),new tU({cutoffDelay:e.cutoffDelay||0})]).request)}},tK={pkg:"@apollo/client-react-streaming"},t$=Symbol.for("apollo.source_package"),t0=class extends tr{static info=tK;[t$];constructor(e){super(e);let t=this.constructor.info;this[t$]=`${t.pkg}:InMemoryCache`}},t1=(0,tQ.createContext)(null),t2={};function t3(e){return{...e,query:(0,tn.J1)((0,es.y)((0,tn.J1)(e.query)))}}function t5(e){let t,r,n=(0,tz.m)();(r="__transportedQueryRef"in e)&&([e,t]=function(e,t){let r=t3(e.options),n=[r.query,(0,ea.M)(r.variables),e.queryKey];return!0===e.__transportedQueryRef&&(e.__transportedQueryRef=(0,tW.Qh)((0,tH.B)(t).getQueryRef(n,()=>t.watchQuery(r)))),[e.__transportedQueryRef,n]}(e,n)),(0,tW.Ru)(e);let i=(0,tW.Fd)(e);return(0,tQ.useEffect)(()=>{r&&t&&i.disposed&&(0,tH.B)(n).add(t,i)}),(0,tQ.useEffect)(()=>{if(r)return i.softRetain()},[r,i]),e}var t9={useFragment:e=>t4(e,["data","complete","missing"]),useQuery:e=>t4(e,["data","loading","networkStatus","called"]),useSuspenseQuery:e=>t4(e,["data","networkStatus"]),useReadQuery:e=>t4(t=>e(t5(t)),["data","networkStatus"]),useQueryRefHandlers:e=>t4(t=>e(t5(t)),[])};function t4(e,t){return(...r)=>{let n=e(...r);if(0==t.length)return n;let i=function(e){let t=(0,tQ.useContext)(t1);if(!t)throw Error("useTransportValue must be used within a streaming-specific ApolloProvider");let r=t.useStaticValueRef(e),n=(0,tQ.useSyncExternalStore)(()=>()=>{},()=>0,()=>r.current===t2?0:+!(0,Q.L)(e,r.current));return 0===n&&(r.current=t2),1===n?r.current:e}((0,tQ.useMemo)(()=>{let e={};for(let r of t)e[r]=n[r];return e},[n]));return(0,tQ.useMemo)(()=>({...n,...i}),[n,i])}}function t6(e,t,r){if(e[t$]!==`${t.pkg}:${r}`)throw Error(`When using \`${r}\` in streaming SSR, you must use the \`${r}\` export provided by \`"${t.pkg}"\`.`)}function t8(e){return e.queryManager}var t7=Symbol.for("apollo.hook.wrappers"),re=class extends tq{static info=tK;[t$];constructor(e){let t=[];"ssrMode"in e&&(delete e.ssrMode,t.push("The `ssrMode` option is not supported in %s. Please remove it from your %s constructor options.")),"ssrForceFetchDelay"in e&&(delete e.ssrForceFetchDelay,t.push("The `ssrForceFetchDelay` option is not supported in %s. Please remove it from your %s constructor options.")),super(e);let r=this.constructor.info;for(let e of(this[t$]=`${r.pkg}:ApolloClient`,t))console.warn(e,r.pkg,"ApolloClient");t6(this.cache,r,"InMemoryCache")}},rt=class extends re{constructor(e){super(e),this.onQueryStarted=this.onQueryStarted.bind(this),t8(this)[t7]=t9}simulatedStreamingQueries=new Map;transportedQueryOptions=new Map;identifyUniqueQuery(e){let t=this.documentTransform.transformDocument(e.query),{serverQuery:r}=t8(this).getDocumentInfo(t);if(!r)throw Error("could not identify unique query");let n=(0,ea.M)(e.variables||{}),i=[(0,es.y)(r),n];return{cacheKey:JSON.stringify(i),cacheKeyArr:i}}onQueryStarted({options:e,id:t}){let r=t3(e),{cacheKey:n,cacheKeyArr:i}=this.identifyUniqueQuery(r);this.transportedQueryOptions.set(t,r);let o=t8(this);if(!o.inFlightLinkObservables.peekArray(i)?.observable){let e,a,s=()=>{o.fetchCancelFns.get(n)===a&&o.fetchCancelFns.delete(n),o.inFlightLinkObservables.removeArray(i),this.simulatedStreamingQueries.get(t)===e&&this.simulatedStreamingQueries.delete(t)},u=new Promise((n,i)=>{this.simulatedStreamingQueries.set(t,e={resolve:n,reject:i,options:r})});u.then(s,s);let c=new z.c(e=>{u.then(t=>{e.next(t),e.complete()}).catch(t=>{e.error(t)})});o.inFlightLinkObservables.lookupArray(i).observable=c,o.fetchCancelFns.set(n,a=e=>{let{reject:r}=this.simulatedStreamingQueries.get(t)??{};r&&r(e),s()})}}onQueryProgress=e=>{let t=this.simulatedStreamingQueries.get(e.id);if("data"===e.type){t?.resolve?.({data:e.result.data});let r=this.transportedQueryOptions.get(e.id);r&&this.cache.writeQuery({query:r.query,data:e.result.data,variables:r.variables})}else"error"===e.type?(t&&(this.simulatedStreamingQueries.delete(e.id),tN.V1.debug("Query failed on server, rerunning in browser:",t.options),this.rerunSimulatedQuery(t)),this.transportedQueryOptions.delete(e.id)):"c
1omplete"===e.type&&this.transportedQueryOptions.delete(e.id)};rerunSimulatedQueries=()=>{for(let[e,t]of this.simulatedStreamingQueries)this.simulatedStreamingQueries.delete(e),tN.V1.debug("streaming connection closed before server query could be fully transported, rerunning:",t.options),this.rerunSimulatedQuery(t)};rerunSimulatedQuery=e=>{let t=t8(this),r=t.generateQueryId();t.fetchQuery(r,{...e.options,query:t.transform(e.options.query),context:{...e.options.context,queryDeduplication:!1}}).finally(()=>t.stopQuery(r)).then(e.resolve,e.reject)}},rr=class extends rt{},rn=class extends rr{},ri=Symbol.for("ApolloClientSingleton"),ro=Symbol.for("ApolloSSRDataTransport"),ra=Symbol.for("apollo.hookRehydrationCache");function rs(e){return e}var ru={},rc=r(20063),rl={pkg:"@apollo/experimental-nextjs-app-support",client:"ApolloClient",cache:"InMemoryCache"},rf=class extends rn{static info=rl},rd=class extends t0{static info=rl},rp=function(e){let t=({makeClient:r,children:n,...i})=>{let o=(0,tQ.useRef)(void 0);return o.current||(o.current=window[ri]??=r(),t6(o.current,t.info,"ApolloClient")),tQ.createElement(tY,{client:o.current},tQ.createElement(e,{onQueryEvent:e=>"started"===e.type?o.current.onQueryStarted(e):o.current.onQueryProgress(e),rerunSimulatedQueries:o.current.rerunSimulatedQueries,registerDispatchRequestStarted:o.current.watchQueryQueue?.register,...i},n))};return t.info=tK,t}((({reviveFromStream:e=rs})=>function({children:t,onQueryEvent:r,rerunSimulatedQueries:n}){let i=(0,tQ.useRef)(window[ra]??={});!function({onQueryEvent:e,onRehydrate:t,revive:r}){var n=n=>{let i=r(n);for(let r of(tN.V1.debug("received data from the server:",i),t(i.rehydrate),i.events))e(r)};let i=window[ro]||[];Array.isArray(i)&&(window[ro]={push:(...e)=>{for(let t of e)n(t)}},window[ro].push(...i))}({onQueryEvent:r,onRehydrate(e){Object.assign(i.current,e)},revive:e}),(0,tQ.useEffect)(()=>{if("complete"!==document.readyState)return window.addEventListener("load",n,{once:!0}),()=>window.removeEventListener("load",n);n()},[n]);let o=(0,tQ.useCallback)(function(e){let t=(0,tQ.useId)(),r=i.current,n=(0,tQ.useRef)(ru);return n.current===ru&&(r&&t in r?(n.current=r[t],delete r[t]):n.current=e),n},[]);return tQ.createElement(t1.Provider,{value:(0,tQ.useMemo)(()=>({useStaticValueRef:o}),[o])},t)})({useInsertHtml(){let e=(0,tQ.useContext)(rc.ServerInsertedHTMLContext);return e||(()=>{})}}));rp.info=rl},28363:(e,t,r)=>{"use strict";r.d(t,{D9:()=>a,IM:()=>s,ZI:()=>c});var n=r(71450),i=r(25433),o=Object.prototype.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)}function s(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new c,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var u=function(e,t,r){return this.merge(e[r],t[r])},c=function(){function e(e){void 0===e&&(e=u),this.reconciler=e,this.isObject=i.U,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];return(0,i.U)(t)&&(0,i.U)(e)?(Object.keys(t).forEach(function(i){if(o.call(e,i)){var s=e[i];if(t[i]!==s){var u=r.reconciler.apply(r,(0,n.fX)([e,t,i],a,!1));u!==s&&((e=r.shallowCopyForMerge(e))[i]=u)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,i.U)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,n.Cl)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}()},36099:(e,t,r)=>{var n=r(18683);e.exports=function(e,t){for(var r=e.length;r--&&n(t,e[r],0)>-1;);return r}},36463:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRenderPhase=t.isClientSide=t.decode=t.stringify=void 0,t.stringify=function(e){try{if("string"==typeof e)return e;return JSON.stringify(e)}catch(t){return e}},t.decode=function(e){return e?e.replace(/(%[0-9A-Z]{2}
1)+/g,decodeURIComponent):e},t.isClientSide=function(e){return!(null==e?void 0:e.req)&&!(null==e?void 0:e.res)&&!(e&&"cookies"in e&&(null==e?void 0:e.cookies))},t.getRenderPhase=function(){return"undefined"==typeof window?"server":"client"}},37979:(e,t,r)=>{"use strict";r.d(t,{A_:()=>u,D$:()=>function e(t,r,n){for(var i,a=0,s=r.selections;a<s.length;a++){var u=s[a];if(y(u)){if("__typename"===u.name.value)return t[m(u)]}else i?i.push(u):i=[u]}if("string"==typeof t.__typename)return t.__typename;if(i)for(var c=0,l=i;c<l.length;c++){var u=l[c],f=e(t,(0,o.HQ)(u,n).selectionSet,n);if("string"==typeof f)return f}},Ii:()=>f,J:()=>l,Kc:()=>c,MB:()=>v,WU:()=>s,dt:()=>y,kd:()=>g,o5:()=>h,ue:()=>m});var n=r(20622),i=r(25433),o=r(10038),a=r(78764);function s(e){return{__ref:String(e)}}function u(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function c(e){return(0,i.U)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function l(e,t,r,i){if("IntValue"===r.kind||"FloatValue"===r.kind)e[t.value]=Number(r.value);else if("BooleanValue"===r.kind||"StringValue"===r.kind)e[t.value]=r.value;else if("ObjectValue"===r.kind){var o={};r.fields.map(function(e){return l(o,e.name,e.value,i)}),e[t.value]=o}else if("Variable"===r.kind){var a=(i||{})[r.name.value];e[t.value]=a}else if("ListValue"===r.kind)e[t.value]=r.values.map(function(e){var r={};return l(r,t,e,i),r[t.value]});else if("EnumValue"===r.kind)e[t.value]=r.value;else if("NullValue"===r.kind)e[t.value]=null;else throw(0,n.vA)(85,t.value,r.kind)}function f(e,t){var r=null;e.directives&&(r={},e.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(n){var i=n.name,o=n.value;return l(r[e.name.value],i,o,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){var r=e.name,i=e.value;return l(n,r,i,t)})),h(e.name.value,n,r)}var d=["connection","include","skip","client","rest","export","nonreactive"],p=a.M,h=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key)if(!r.connection.filter||!(r.connection.filter.length>0))return r.connection.key;else{var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(e){i[e]=t[e]}),"".concat(r.connection.key,"(").concat(p(i),")")}var o=e;if(t){var a=p(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(e){-1===d.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(p(r[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=p;return p=e,t}});function v(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return l(r,e.name,e.value,t)}),r}return null}function m(e){return e.alias?e.alias.value:e.name.value}function y(e){return"Field"===e.kind}function g(e){return"InlineFragment"===e.kind}},38208:e=>{e.exports=function(e){return e.split("")}},42527:(e,t,r)=>{"use strict";r.d(t,{XY:()=>h,er:()=>m,iz:()=>p,zc:()=>v});var n=r(71450),i=r(20622),o=r(11619),a=r(50424),s=r(53537),u=r(37979),c=r(10038),l=r(83557),f={kind:o.b.FIELD,name:{kind:o.b.NAME,value:"__typename"}};function d(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function p(e,t){(0,s.sw)(t);for(var r,u,f,p=d(""),h=d(""),v=function(e){for(var t=0,r=void 0;t<e.length&&(r=e[t]);++t)if(!(0,l.c)(r)){if(r.kind===o.b.OPERATION_DEFINITION)return p(r.name&&r.name.value);if(r.kind===o.b.FRAGMENT_DEFINITION)return h(r.name.value)}return!1!==globalThis.__DEV__&&i.V1.error(86),null},m=0,y=t.definitions.length-1;y>=0;--y)t.definitions[y].kind===o.b.OPERATION_DEFINITION&&++m;var g=(r=new Map,u=new Map,e.forEach(function(e){e&&(e.name?r.set(e.name,e):e.test&&u.set(e.test,e))}),function(e){var t=r.get(e.name.value);return!t&&u.size&&u.forEach(function(r,n){n(e)&&(t=r)}),t}),b=function(e){return(0,l.E)(e)&&e.map(g).some(function(e){return e&&e.remove})},w=new Map,k=!1,S={enter:function(e){if(b(e.directives))return k=!0,null}},C=(0,a.YR)(t,{Field:S,InlineFragment:S,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var o=v(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(b(e.directives))return k=!0,null;var o=v(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){w.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===w.get(JSON.stringify(n))?e:m>0&&e.selectionSet.selections.every(function(e){return e.kind===o.b.FIELD&&"__typename"===e.name.value})?(h(e.name.value).removed=!0,k=!0,null):void 0}},Directive:{leave:function(e){if(g(e))return k=!0,null}}});if(!k)return t;var x=function(e){return!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){x(h(t)).transitiveVars.forEac
1h(function(t){e.transitiveVars.add(t)})})),e},E=new Set;C.definitions.forEach(function(e){e.kind===o.b.OPERATION_DEFINITION?x(p(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){E.add(e)}):e.kind!==o.b.FRAGMENT_DEFINITION||0!==m||h(e.name.value).removed||E.add(e.name.value)}),E.forEach(function(e){x(h(e)).fragmentSpreads.forEach(function(e){E.add(e)})});var _={enter:function(e){var t;if(t=e.name.value,!E.has(t)||h(t).removed)return null}};return f=(0,a.YR)(C,{FragmentSpread:_,FragmentDefinition:_,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=x(p(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,n.Cl)((0,n.Cl)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}),!function e(t,r){return!t||t.selectionSet.selections.every(function(t){return t.kind===o.b.FRAGMENT_SPREAD&&e(r[t.name.value],r)})}((0,s.Vu)(f)||(0,s.E4)(f),(0,c.JG)((0,s.zK)(f)))?f:null}var h=Object.assign(function(e){return(0,a.YR)(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==o.b.OPERATION_DEFINITION){var i=e.selections;if(!(!i||i.some(function(e){return(0,u.dt)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,u.dt)(r)&&r.directives&&r.directives.some(function(e){return"export"===e.name.value})))return(0,n.Cl)((0,n.Cl)({},e),{selections:(0,n.fX)((0,n.fX)([],i,!0),[f],!1)})}}}})},{added:function(e){return e===f}});function v(e){return"query"===(0,s.Vn)(e).operation?e:(0,a.YR)(e,{OperationDefinition:{enter:function(e){return(0,n.Cl)((0,n.Cl)({},e),{operation:"query"})}}})}function m(e){return(0,s.sw)(e),p([{test:function(e){return"client"===e.name.value},remove:!0}],e)}},46429:(e,t,r)=>{"use strict";r.d(t,{Wx:()=>c});var n=r(12115),i=Object.defineProperty,o=new Map,a=new WeakMap,s=0,u=void 0;function c({threshold:e,delay:t,trackVisibility:r,rootMargin:i,root:l,triggerOnce:f,skip:d,initialInView:p,fallbackInView:h,onChange:v}={}){var m;let[y,g]=n.useState(null),b=n.useRef(v),[w,k]=n.useState({inView:!!p,entry:void 0});b.current=v,n.useEffect(()=>{let n;if(!d&&y)return n=function(e,t,r={},n=u){if(void 0===window.IntersectionObserver&&void 0!==n){let i=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}let{id:i,observer:c,elements:l}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var r;return`${t}_${"root"===t?!(r=e.root)?"0":(a.has(r)||(s+=1,a.set(r,s.toString())),a.get(r)):e[t]}`}).toString(),r=o.get(t);if(!r){let n,i=new Map,a=new IntersectionObserver(t=>{t.forEach(t=>{var r;let o=t.isIntersecting&&n.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),null==(r=i.get(t.target))||r.forEach(e=>{e(o,t)})})},e);n=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:a,elements:i},o.set(t,r)}return r}(r),f=l.get(e)||[];return l.has(e)||l.set(e,f),f.push(t),c.observe(e),function(){f.splice(f.indexOf(t),1),0===f.length&&(l.delete(e),c.unobserve(e)),0===l.size&&(c.disconnect(),o.delete(i))}}(y,(e,t)=>{k({inView:e,entry:t}),b.current&&b.current(e,t),t.isIntersecting&&f&&n&&(n(),n=void 0)},{root:l,rootMargin:i,threshold:e,trackVisibility:r,delay:t},h),()=>{n&&n()}},[Array.isArray(e)?e.toString():e,y,l,i,f,d,r,h,t]);let S=null==(m=w.entry)?void 0:m.target,C=n.useRef(void 0);y||!S||f||d||C.current===S||(C.current=S,k({inView:!!p,entry:void 0}));let x=[g,w.inView,w.entry];return x.ref=x[0],x.inView=x[1],x.entry=x[2],x}n.Component},48958:(e,t,r)=>{"use strict";r.d(t,{bq:()=>i,wt:()=>o,sD:()=>n}),r(54309);function n(e,t){return!!t&&!!e&&e.contains(t)}let i=(e=document)=>e.activeElement;function o(e){return e.target}},51114:(e,t,r)=>{"use strict";r.d(t,{W1:()=>ex,IU:()=>ek,Dr:()=>eC,c:()=>eS});var n=r(93551),i=r(26455),o=r(12115),a=r(47650),s=r(3538),u=r(91553),c=r(15110),l=r(79802);function f(e){if(null===e)return{width:0,height:0};let{width:t,height:r}=e.getBoundingClientRect();return{width:t,height:r}}var d=r(53182),p=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(p||{}),h=r(88476),v=r(76598),m=r(71691),y=r(59032),g=r(20797),b=r(50025),w=r(62418),k=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(k||{});let S={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}};
1var C=r(99900),x=r(59879),E=r(80490),_=r(17342);let T=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function O(e){var t,r;let n=null!=(t=e.innerText)?t:"",i=e.cloneNode(!0);if(!b.sb(i))return n;let o=!1;for(let e of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),o=!0;let a=o?null!=(r=i.innerText)?r:"":n;return T.test(a)&&(a=a.replace(T,"")),a}function I(e){return[e.screenX,e.screenY]}var R=r(22369),P=r(85986),D=r(16424),L=r(88334),F=r(20861);let M=(0,o.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});M.displayName="FloatingContext";let A=(0,o.createContext)(null);function V({children:e,enabled:t=!0}){var r,n,i,a,s,u;let c,f,p,[h,v]=(0,o.useState)(null),[m,y]=(0,o.useState)(0),g=(0,o.useRef)(null),[w,k]=(0,o.useState)(null);r=w,(0,l.s)(()=>{if(!r)return;let e=new MutationObserver(()=>{let e=window.getComputedStyle(r).maxHeight,t=parseFloat(e);if(isNaN(t))return;let n=parseInt(e);isNaN(n)||t!==n&&(r.style.maxHeight=`${Math.ceil(t)}px`)});return e.observe(r,{attributes:!0,attributeFilter:["style"]}),()=>{e.disconnect()}},[r]);let S=t&&null!==h&&null!==w,{to:C="bottom",gap:x=0,offset:E=0,padding:_=0,inner:T}=(n=h,i=w,c=j(null!=(a=null==n?void 0:n.gap)?a:"var(--anchor-gap, 0)",i),f=j(null!=(s=null==n?void 0:n.offset)?s:"var(--anchor-offset, 0)",i),p=j(null!=(u=null==n?void 0:n.padding)?u:"var(--anchor-padding, 0)",i),{...n,gap:c,offset:f,padding:p}),[O,I="center"]=C.split(" ");(0,l.s)(()=>{S&&y(0)},[S]);let{refs:R,floatingStyles:P,context:V}=(0,D.we)({open:S,placement:"selection"===O?"center"===I?"bottom":`bottom-${I}`:"center"===I?`${O}`:`${O}-${I}`,strategy:"absolute",transform:!1,middleware:[(0,L.cY)({mainAxis:"selection"===O?0:x,crossAxis:E}),(0,L.BN)({padding:_}),"selection"!==O&&(0,L.UU)({padding:_}),"selection"===O&&T?(0,D.vW)({...T,padding:_,overflowRef:g,offset:m,minItemsVisible:4,referenceOverflowThreshold:_,onFallbackChange(e){var t,r;if(!e)return;let n=V.elements.floating;if(!n)return;let i=parseFloat(getComputedStyle(n).scrollPaddingBottom)||0,o=Math.min(4,n.childElementCount),a=0,s=0;for(let e of null!=(r=null==(t=V.elements.floating)?void 0:t.childNodes)?r:[])if(b.sb(e)){let t=e.offsetTop,r=t+e.clientHeight+i,u=n.scrollTop,c=u+n.clientHeight;if(t>=u&&r<=c)o--;else{s=Math.max(0,Math.min(r,c)-Math.max(t,u)),a=e.clientHeight;break}}o>=1&&y(e=>{let t=a*o-s+i;return e>=t?e:t})}}):null,(0,L.Ej)({padding:_,apply({availableWidth:e,availableHeight:t,elements:r}){Object.assign(r.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:F.ll}),[q=O,N=I]=V.placement.split("-");"selection"===O&&(q="selection");let Q=(0,o.useMemo)(()=>({anchor:[q,N].filter(Boolean).join(" ")}),[q,N]),W=(0,D.Zx)(V,{overflowRef:g,onChange:y}),{getReferenceProps:H,getFloatingProps:z}=(0,D.bv)([W]),B=(0,d._)(e=>{k(e),R.setFloating(e)});return o.createElement(A.Provider,{value:v},o.createElement(M.Provider,{value:{setFloating:B,setReference:R.setReference,styles:P,getReferenceProps:H,getFloatingProps:z,slot:Q}},e))}function j(e,t,r){let n=(0,u.L)(),i=(0,d._)((e,t)=>{if(null==e)return[r,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[r,null];let i=q(e,t);return[i,r=>{let o=function e(t){let r=/var\((.*)\)/.exec(t);if(r){let t=r[1].indexOf(",");if(-1===t)return[r[1]];let n=r[1].slice(0,t).trim(),i=r[1].slice(t+1).trim();return i?[n,...e(i)]:[n]}return[]}(e);{let a=o.map(e=>window.getComputedStyle(t).getPropertyValue(e));n.requestAnimationFrame(function s(){n.nextFrame(s);let u=!1;for(let[e,r]of o.entries()){let n=window.getComputedStyle(t).getPropertyValue(r);if(a[e]!==n){a[e]=n,u=!0;break}}if(!u)return;let c=q(e,t);i!==c&&(r(c),i=c)})}return n.dispose}]}return[r,null]}),a=(0,o.useMemo)(()=>i(e,t)[0],[e,t]),[s=a,c]=(0,o.useState)();return(0,l.s)(()=>{let[r,n]=i(e,t);if(c(r),n)return n(c)},[e,t]),s}function q(e,t){let r=document.createElement("div");t.appendChild(r),r.style.setProperty("margin-top","0px","important"),r.style.setProperty("margin-top",e,"important");let n=parseFloat(window.getComputedStyle(r).marginTop)||0;return t.removeChild(r),n}
1A.displayName="PlacementContext";var N=r(55668),Q=r(47396),W=r(15714),H=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(H||{});function z(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),i=null!=n?n:-1;switch(e.focus){case 0:for(let e=0;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 1:-1===i&&(i=r.length);for(let e=i-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 2:for(let e=i+1;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 3:for(let e=r.length-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 4:for(let n=0;n<r.length;++n)if(t.resolveId(r[n],n,r)===e.id)return n;return n;case 5:return null;default:throw Error("Unexpected object: "+e)}}var B=r(99795),G=r(20536),Y=r(69159),U=r(49221),Z=r(88499),J=r(57865);let X=(0,o.createContext)(void 0),K=(0,o.createContext)(null);function $(){let e=(0,o.useContext)(K);if(null===e){let e=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,$),e}return e}function ee({inherit:e=!1}={}){var t,r,n;let i,a=i=null!=(n=null==(r=(0,o.useContext)(K))?void 0:r.value)?n:void 0,[s,u]=(0,o.useState)([]),c=e?[a,...s].filter(Boolean):s;return[c.length>0?c.join(" "):void 0,(0,o.useMemo)(()=>function(e){let t=(0,d._)(e=>(u(t=>[...t,e]),()=>u(t=>{let r=t.slice(),n=r.indexOf(e);return -1!==n&&r.splice(n,1),r}))),r=(0,o.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return o.createElement(K.Provider,{value:r},e.children)},[u])]}K.displayName="LabelContext",Object.assign((0,Y.FX)(function(e,t){var r;let n=(0,o.useId)(),i=$(),a=(0,o.useContext)(X),s=(0,J._)(),{id:u=`headlessui-label-${n}`,htmlFor:c=null!=a?a:null==(r=i.props)?void 0:r.htmlFor,passive:f=!1,...p}=e,h=(0,_.P)(t);(0,l.s)(()=>i.register(u),[u,i.register]);let v=(0,d._)(e=>{let t=e.currentTarget;if(!(e.target!==e.currentTarget&&b.H5(e.target))&&(b.kS(t)&&e.preventDefault(),i.props&&"onClick"in i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),b.kS(t))){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let r=e.getAttribute("aria-disabled");if("true"===r||""===r)return;(b.A3(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),m=(0,E._)({...i.slot,disabled:s||!1}),y={ref:h,...i.props,id:u,htmlFor:c,onClick:v};return f&&("onClick"in y&&(delete y.htmlFor,delete y.onClick),"onClick"in p&&delete p.onClick),(0,Y.Ci)()({ourProps:y,theirProps:p,slot:m,defaultTag:c?"label":"div",name:i.name||"Label"})}),{});var et=r(75663),er=r(40762);let en={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function ei(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}var eo=Object.defineProperty,ea=(e,t,r)=>(((e,t,r)=>t in e?eo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),r),es=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(es||{}),eu=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(eu||{}),ec=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItems=5]="RegisterItems",e[e.UnregisterItems=6]="UnregisterItems",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e[e.SortItems=9]="SortItems",e[e.MarkButtonAsMoved=10]="MarkButtonAsMoved",e))(ec||{});function el(e,t=e=>e){let r=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,n=(0,B.wl)(t(e.items.slice()),e=>e.dataRef.current.domRef.current),i=r?n.indexOf(r):null;return -1===i&&(i=null),{items:n,activeItemIndex:i}}let ef={1(e){if(1===e.menuState)return e;let t=e.buttonElement?en.Tracked(ei(e.buttonElement)):e.buttonPositionState;return{...e,activeItemIndex:null,pendingFocus:{focus:H.Nothing},menuState:1,buttonPositionState:t}},0:(e,t)=>0===e.menuState?e:{...e,__demoMode:!1,pendingFocus:t.focus,menuState:0,buttonPositionState:en.Idle},2:(e,t)=>{var r,n,i,o,a;if(1===e.menuState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(r=t.trigger)?r:1,__demoMode:!1};if(t.focus===H.Nothing)return{...s,activeItemIndex:null};if(t.focus===H.Specific)return{...s,activeItemIndex:e.items.findIndex(e=>e.id===t.id)};if(t.focus===H.Previous){let r=e.activeItemIndex;if(null!==r){let o=e.items[r].dataRef.current.domRef,a=z(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==a){let t=e.items[a].dataRef.current.domRef;if((null==(n=o.current)?void 0:n.previousElementSibling)===t.current||(null==(i=t.current)?void 0:i.previousElementSibling)===null)return{...s,activeItemIndex:a}}}}else if(t.focus===H.Next){let r=e.activeItemIndex;if(null!==r){let n=e.items[r].dataRef.current.domRef,i=z(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==i){let t=e.items[i].dataRef.current.domRef;if((null==(o=n.current)?void 0:o.nextElementSibling)===t.current||(null==(a=t.current)?void 0:a.nextElementSibling)===null)return{...s,activeItemIndex:i}}}}let u=el(e),c=z(t,{resolveItems:()=>u.items,resolveActiveIndex:()=>u.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...u,activeItemIndex:c}},3:(e,t)=>
1{let r=+(""===e.searchQuery),n=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+r).concat(e.items.slice(0,e.activeItemIndex+r)):e.items).find(e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))&&!e.dataRef.current.disabled}),o=i?e.items.indexOf(i):-1;return -1===o||o===e.activeItemIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeItemIndex:o,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let r=e.items.concat(t.items.map(e=>e)),n=e.activeItemIndex;return e.pendingFocus.focus!==H.Nothing&&(n=z(e.pendingFocus,{resolveItems:()=>r,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),{...e,items:r,activeItemIndex:n,pendingFocus:{focus:H.Nothing},pendingShouldSort:!0}},6:(e,t)=>{let r=e.items,n=[],i=new Set(t.items);for(let[e,t]of r.entries())if(i.has(t.id)&&(n.push(e),i.delete(t.id),0===i.size))break;if(n.length>0)for(let e of(r=r.slice(),n.reverse()))r.splice(e,1);return{...e,items:r,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element},9:e=>e.pendingShouldSort?{...e,...el(e),pendingShouldSort:!1}:e,10:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:en.Moved}};class ed extends er.u5{constructor(e){super(e),ea(this,"actions",{registerItem:(0,er.vA)(()=>{let e=[],t=new Set;return[(r,n)=>{t.has(n)||(t.add(n),e.push({id:r,dataRef:n}))},()=>(t.clear(),this.send({type:5,items:e.splice(0)}))]}),unregisterItem:(0,er.vA)(()=>{let e=[];return[t=>e.push(t),()=>this.send({type:6,items:e.splice(0)})]})}),ea(this,"selectors",{activeDescendantId(e){var t;let r=e.activeItemIndex,n=e.items;return null===r||null==(t=n[r])?void 0:t.id},isActive(e,t){var r;let n=e.activeItemIndex,i=e.items;return null!==n&&(null==(r=i[n])?void 0:r.id)===t},shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.menuState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(5,()=>{this.disposables.requestAnimationFrame(()=>{this.send({type:9})})});{let e=this.state.id,t=Q.D.get(null);this.disposables.add(t.on(Q.Q.Push,r=>{t.selectors.isTop(r,e)||0!==this.state.menuState||this.send({type:1})})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.buttonElement&&(e.dispose(),e.add(function(e,t,r){let n=(0,c.e)();if("Tracked"===t.kind){let i=function(){o!==ei(e)&&(n.dispose(),r())},{position:o}=t,a=new ResizeObserver(i);a.observe(e),n.add(()=>a.disconnect()),n.addEventListener(window,"scroll",i,{passive:!0}),n.addEventListener(window,"resize",i)}return()=>n.dispose()}(t.buttonElement,t.buttonPositionState,()=>{this.send({type:10})})))})})}static new({id:e,__demoMode:t=!1}){return new ed({id:e,__demoMode:t,menuState:+!t,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1,pendingShouldSort:!1,pendingFocus:{focus:H.Nothing},buttonPositionState:en.Idle})}reduce(e,t){return(0,G.Y)(t.type,ef,e,t)}}var ep=r(19390);let eh=(0,o.createContext)(null);function ev(e){let t=(0,o.useContext)(eh);if(null===t){let t=Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,em),t}return t}function em({id:e,__demoMode:t=!1}){let r=(0,o.useMemo)(()=>ed.new({id:e,__demoMode:t}),[]);return(0,ep.X)(()=>r.dispose()),r}let ey=o.Fragment,eg=Y.Ac.RenderStrategy|Y.Ac.Static,eb=o.Fragment,ew=(0,Y.FX)(function(e,t){let r=(0,o.useId)(),{__demoMode:n=!1,...i}=e,a=em({id:r,__demoMode:n}),[s,u,c]=(0,W.y)(a,e=>[e.menuState,e.itemsElement,e.buttonElement]),l=(0,_.P)(t),f=Q.D.get(null),p=(0,W.y)(f,(0,o.useCallback)(e=>f.selectors.isTop(e,r),[f,r]));(0,y.j)(p,[c,u],(e,t)=>{var r;a.send({type:ec.CloseMenu}),(0,B.Bm)(t,B.MZ.Loose)||(e.preventDefault(),null==(r=a.state.buttonElement)||r.focus())});let h=(0,d._)(()=>{a.send({type:ec.CloseMenu})}),v=(0,E._)({open:s===es.Open,close:h}),m=(0,Y.Ci)();return o.createElement(V,null,o.createElement(eh.Provider,{value:a},o.createElement(N.El,{value:(0,G.Y)(s,{[es.Open]:N.Uw.Open,[es.Closed]:N.Uw.Closed})},m({ourProps:{ref:l},theirProps:i,slot:v,defaultTag:ey,name:"Menu"}))))}),ek=(0,Y.FX)(function(e,t){var r;let u,c=ev("Menu.Button"),l=(0,o.useId)(),{id:f=`headlessui-menu-button-${l}`,disabled:v=!1,autoFocus:m=!1,...y}=e,g=(0,o.useRef)(null),k=(0,o.useContext)(M).getReferenceProps,x=(0,_.P)(t,g,(0,o.useContext)(M).setReference,(0,d._)(e=>c.send({type:ec.SetButtonElement,element:e}))),T=(0,d._)(e=>{switch(e.key){case Z.D.Space:case Z.D.Enter:case Z.D.ArrowDown:e.preventDefault(),e.stopPropagation(),c.send({type:ec.OpenMenu,focus:{focus:H.First}});break;case Z.D.ArrowUp:e.preventDefault(),e.stopPropagation(),c.send({type:ec.OpenMenu,focus:{focus:H.Last}})}}),O=(0,d._)(e=>{e.key===Z.D.Space&&e.preventDefault()}),[I,R,P]=(0,W.y)(c,e=>[e.menuState,e.buttonElement,e.itemsElement]);!function(e,{trigger:t,action:r,close:n,select:i}){let a=(0,o.useRef)(null),s=(0,o.useRef)(null),u=(0,o.useRef)(null);(0,w.z)(e&&null!==t,"pointerdown",e=>{b.Ll(null==e?void 0:e.target)&&null!=t&&t.contains(e.target)&&(s.current=e.x,u.current=e.y,a.current=e.timeStamp)}),(0,w.z)(e&&null!==t,"pointerup",e=>{var t,o;let c=a.current;if(null===c||(a.current=null,!b.Lk(e.target))||5>Math.abs(e.x-(null!=(t=s.current)?t:e.x))&&5>
1Math.abs(e.y-(null!=(o=u.current)?o:e.y)))return;let l=r(e);switch(l.kind){case 0:return;case 1:e.timeStamp-c>200&&(i(l.target),n());break;case 2:n()}},{capture:!0})}(I===es.Open,{trigger:R,action:(0,o.useCallback)(e=>{if(null!=R&&R.contains(e.target))return S.Ignore;let t=e.target.closest('[role="menuitem"]:not([data-disabled])');return b.sb(t)?S.Select(t):null!=P&&P.contains(e.target)?S.Ignore:S.Close},[R,P]),close:(0,o.useCallback)(()=>c.send({type:ec.CloseMenu}),[]),select:(0,o.useCallback)(e=>e.click(),[])});let D=(r=e=>{var t;v||(I===es.Open?((0,a.flushSync)(()=>c.send({type:ec.CloseMenu})),null==(t=g.current)||t.focus({preventScroll:!0})):(e.preventDefault(),c.send({type:ec.OpenMenu,focus:{focus:H.Nothing},trigger:eu.Pointer})))},u=(0,o.useRef)(null),{onPointerDown:(0,d._)(e=>{u.current=e.pointerType,(0,h.l)(e.currentTarget)||"mouse"!==e.pointerType||e.button!==p.Left||(e.preventDefault(),r(e))}),onClick:(0,d._)(e=>{"mouse"!==u.current&&((0,h.l)(e.currentTarget)||r(e))})}),{isFocusVisible:L,focusProps:F}=(0,n.o)({autoFocus:m}),{isHovered:A,hoverProps:V}=(0,i.M)({isDisabled:v}),{pressed:j,pressProps:q}=(0,s.Z)({disabled:v}),N=(0,E._)({open:I===es.Open,active:j||I===es.Open,disabled:v,hover:A,focus:L,autofocus:m}),Q=(0,Y.v6)(k(),{ref:x,id:f,type:(0,C.c)(e,g.current),"aria-haspopup":"menu","aria-controls":null==P?void 0:P.id,"aria-expanded":I===es.Open,disabled:v||void 0,autoFocus:m,onKeyDown:T,onKeyUp:O},D,F,V,q);return(0,Y.Ci)()({ourProps:Q,theirProps:y,slot:N,defaultTag:"button",name:"Menu.Button"})}),eS=(0,Y.FX)(function(e,t){let r=(0,o.useId)(),{id:n=`headlessui-menu-items-${r}`,anchor:i,portal:s=!1,modal:p=!0,transition:h=!1,...y}=e,b=(0,o.useMemo)(()=>i?"string"==typeof i?{to:i}:i:null,[i]),w=ev("Menu.Items"),[k,S]=function(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,o.useContext)(A),r=(0,o.useMemo)(()=>e,[JSON.stringify(e,(e,t)=>{var r;return null!=(r=null==t?void 0:t.outerHTML)?r:t})]);(0,l.s)(()=>{null==t||t(null!=r?r:null)},[t,r]);let n=(0,o.useContext)(M);return(0,o.useMemo)(()=>[n.setFloating,e?n.styles:{}],[n.setFloating,e,n.styles])}(b),C=function(){let{getFloatingProps:e,slot:t}=(0,o.useContext)(M);return(0,o.useCallback)((...r)=>Object.assign({},e(...r),{"data-anchor":t.anchor}),[e,t])}(),[T,O]=(0,o.useState)(null),I=(0,_.P)(t,b?k:null,(0,d._)(e=>w.send({type:ec.SetItemsElement,element:e})),O),[D,L]=(0,W.y)(w,e=>[e.menuState,e.buttonElement]),F=(0,g.g)(L),V=(0,g.g)(T);b&&(s=!0);let j=(0,N.O_)(),[q,Q]=(0,R.p)(h,T,null!==j?(j&N.Uw.Open)===N.Uw.Open:D===es.Open);(0,m.O)(q,L,()=>{w.send({type:ec.CloseMenu})});let z=(0,W.y)(w,e=>e.__demoMode),G=!z&&p&&D===es.Open;(0,x.K)(G,V);let U=!z&&p&&D===es.Open;(0,v.v)(U,{allowed:(0,o.useCallback)(()=>[L,T],[L,T])});let J=!(0,W.y)(w,w.selectors.didButtonMove)&&q;(0,o.useEffect)(()=>{T&&D===es.Open&&((0,P.X7)(T)||T.focus({preventScroll:!0}))},[D,T]),function(e,{container:t,accept:r,walk:n}){let i=(0,o.useRef)(r),a=(0,o.useRef)(n);(0,o.useEffect)(()=>{i.current=r,a.current=n},[r,n]),(0,l.s)(()=>{if(!t||!e)return;let r=(0,P.TW)(t);if(!r)return;let n=i.current,o=a.current,s=Object.assign(e=>n(e),{acceptNode:n}),u=r.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,s,!1);for(;u.nextNode();)o(u.currentNode)},[t,e,i,a])}(D===es.Open,{container:T,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let X=(0,u.L)(),K=(0,d._)(e=>{var t,r,n;switch(X.dispose(),e.key){case Z.D.Space:if(""!==w.state.searchQuery)return e.preventDefault(),e.stopPropagation(),w.send({type:ec.Search,value:e.key});case Z.D.Enter:if(e.preventDefault(),e.stopPropagation(),null!==w.state.activeItemIndex){let{dataRef:e}=w.state.items[w.state.activeItemIndex];null==(r=null==(t=e.current)?void 0:t.domRef.current)||r.click()}w.send({type:ec.CloseMenu}),(0,B.Fh)(w.state.buttonElement);break;case Z.D.ArrowDown:return e.preventDefault(),e.stopPropagation(),w.send({type:ec.GoToItem,focus:H.Next});case Z.D.ArrowUp:return e.preventDefault(),e.stopPropagation(),w.send({type:ec.GoToItem,focus:H.Previous});case Z.D.Home:case Z.D.PageUp:return e.preventDefault(),e.stopPropagation(),w.send({type:ec.GoToItem,focus:H.First});case Z.D.End:case Z.D.PageDown:return e.preventDefault(),e.stopPropagation(),w.send({type:ec.GoToItem,focus:H.Last});case Z.D.Escape:e.preventDefault(),e.stopPropagation(),(0,a.flushSync)(()=>w.send({type:ec.CloseMenu})),null==(n=w.state.buttonElement)||n.focus({preventScroll:!0});break;case Z.D.Tab:e.preventDefault(),e.stopPropagation(),(0,a.flushSync)(()=>w.send({type:ec.CloseMenu})),(0,B.p9)(w.state.buttonElement,e.shiftKey?B.BD.Previous:B.BD.Next);break;
1default:1===e.key.length&&(w.send({type:ec.Search,value:e.key}),X.setTimeout(()=>w.send({type:ec.ClearSearch}),350))}}),$=(0,d._)(e=>{e.key===Z.D.Space&&e.preventDefault()}),ee=(0,E._)({open:D===es.Open}),er=(0,Y.v6)(b?C():{},{"aria-activedescendant":(0,W.y)(w,w.selectors.activeDescendantId),"aria-labelledby":(0,W.y)(w,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),id:n,onKeyDown:K,onKeyUp:$,role:"menu",tabIndex:D===es.Open?0:void 0,ref:I,style:{...y.style,...S,"--button-width":function(e,t,r=!1){let[n,i]=(0,o.useState)(()=>f(t));return(0,l.s)(()=>{if(!t||!e)return;let r=(0,c.e)();return r.requestAnimationFrame(function e(){r.requestAnimationFrame(e),i(e=>{let r=f(t);return r.width===e.width&&r.height===e.height?e:r})}),()=>{r.dispose()}},[t,e]),r?{width:`${n.width}px`,height:`${n.height}px`}:n}(q,L,!0).width},...(0,R.B)(Q)}),en=(0,Y.Ci)();return o.createElement(et.ZL,{enabled:!!s&&(e.static||q),ownerDocument:F},en({ourProps:er,theirProps:y,slot:ee,defaultTag:"div",features:eg,visible:J,name:"Menu.Items"}))}),eC=(0,Y.FX)(function(e,t){let r,n,i,a=(0,o.useId)(),{id:s=`headlessui-menu-item-${a}`,disabled:u=!1,...f}=e,p=ev("Menu.Item"),h=(0,W.y)(p,e=>p.selectors.isActive(e,s)),v=(0,o.useRef)(null),m=(0,_.P)(t,v),y=(0,W.y)(p,e=>p.selectors.shouldScrollIntoView(e,s));(0,l.s)(()=>{if(y)return(0,c.e)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=v.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[y,v]);let g=(r=(0,o.useRef)(""),n=(0,o.useRef)(""),(0,d._)(()=>{let e=v.current;if(!e)return"";let t=e.innerText;if(r.current===t)return n.current;let i=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let e=r.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():O(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return O(e).trim()})(e).trim().toLowerCase();return r.current=t,n.current=i,i})),b=(0,o.useRef)({disabled:u,domRef:v,get textValue(){return g()}});(0,l.s)(()=>{b.current.disabled=u},[b,u]),(0,l.s)(()=>(p.actions.registerItem(s,b),()=>p.actions.unregisterItem(s)),[b,s]);let w=(0,d._)(()=>{p.send({type:ec.CloseMenu})}),k=(0,d._)(e=>{if(u)return e.preventDefault();p.send({type:ec.CloseMenu}),(0,B.Fh)(p.state.buttonElement)}),S=(0,d._)(()=>{if(u)return p.send({type:ec.GoToItem,focus:H.Nothing});p.send({type:ec.GoToItem,focus:H.Specific,id:s})}),C=(i=(0,o.useRef)([-1,-1]),{wasMoved(e){let t=I(e);return(i.current[0]!==t[0]||i.current[1]!==t[1])&&(i.current=t,!0)},update(e){i.current=I(e)}}),x=(0,d._)(e=>C.update(e)),T=(0,d._)(e=>{C.wasMoved(e)&&(u||h||p.send({type:ec.GoToItem,focus:H.Specific,id:s,trigger:eu.Pointer}))}),R=(0,d._)(e=>{C.wasMoved(e)&&(u||h&&p.state.activationTrigger===eu.Pointer&&p.send({type:ec.GoToItem,focus:H.Nothing}))}),[P,D]=ee(),[L,F]=(0,U.rU)(),M=(0,E._)({active:h,focus:h,disabled:u,close:w}),A=(0,Y.Ci)();return o.createElement(D,null,o.createElement(F,null,A({ourProps:{id:s,ref:m,role:"menuitem",tabIndex:!0===u?void 0:-1,"aria-disabled":!0===u||void 0,"aria-labelledby":P,"aria-describedby":L,disabled:void 0,onClick:k,onFocus:S,onPointerEnter:x,onMouseEnter:x,onPointerMove:T,onMouseMove:T,onPointerLeave:R,onMouseLeave:R},theirProps:f,slot:M,defaultTag:eb,name:"Menu.Item"})))}),ex=Object.assign(ew,{Button:ek,Items:eS,Item:eC,Section:(0,Y.FX)(function(e,t){let[r,n]=ee(),i=(0,Y.Ci)();return o.createElement(n,null,i({ourProps:{ref:t,"aria-labelledby":r,role:"group"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Section"}))}),Heading:(0,Y.FX)(function(e,t){let r=(0,o.useId)(),{id:n=`headlessui-menu-heading-${r}`,...i}=e,a=$();(0,l.s)(()=>a.register(n),[n,a.register]);let s={id:n,ref:t,role:"presentation",...a.props};return(0,Y.Ci)()({ourProps:s,theirProps:i,slot:{},defaultTag:"header",name:"Menu.Heading"})}),Separator:(0,Y.FX)(function(e,t){return(0,Y.Ci)()({ourProps:{ref:t,role:"separator"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Separator"})})})},52166:(e,t,r)=>{"use strict";r.d(t,{EN:()=>M,_q:()=>L,kS:()=>F});var n,i=r(93551),o=r(26455),a=r(12115),s=r(3538),u=r(53182),c=r(99900),l=r(80490),f=r(17342),d=r(22369),p=r(84931),h=r(55668),v=r(88476),m=r(50025),y=r(20536),g=r(85986),b=r(69159);let w=null!=(n=a.startTransition)?n:function(e){e()};var k=r(88499),S=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(S||{}),C=(e=>(e[e.ToggleDisclosure=0]="ToggleDisclosure",e[e.CloseDisclosure=1]="CloseDisclosure",e[e.SetButtonId=2]="SetButtonId",e[e.SetPanelId=3]="SetPanelId",e[e.SetButtonElement=4]="SetButtonElement",e[e.SetPanelElement=5]="SetPanelElement",e))(C||{});let x={0:e=>({...e,disclosureState:(0,y.Y)(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>
1e.panelId===t.panelId?e:{...e,panelId:t.panelId},4:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},5:(e,t)=>e.panelElement===t.element?e:{...e,panelElement:t.element}},E=(0,a.createContext)(null);function _(e){let t=(0,a.useContext)(E);if(null===t){let t=Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,_),t}return t}E.displayName="DisclosureContext";let T=(0,a.createContext)(null);T.displayName="DisclosureAPIContext";let O=(0,a.createContext)(null);function I(e,t){return(0,y.Y)(t.type,x,e,t)}O.displayName="DisclosurePanelContext";let R=a.Fragment,P=b.Ac.RenderStrategy|b.Ac.Static,D=(0,b.FX)(function(e,t){let{defaultOpen:r=!1,...n}=e,i=(0,a.useRef)(null),o=(0,f.P)(t,(0,f.a)(e=>{i.current=e},void 0===e.as||(0,b.zv)(e.as))),s=(0,a.useReducer)(I,{disclosureState:+!r,buttonElement:null,panelElement:null,buttonId:null,panelId:null}),[{disclosureState:c,buttonId:d},v]=s,w=(0,u._)(e=>{v({type:1});let t=(0,g.TW)(i.current);if(!t||!d)return;let r=e?m.Lk(e)?e:"current"in e&&m.Lk(e.current)?e.current:t.getElementById(d):t.getElementById(d);null==r||r.focus()}),k=(0,a.useMemo)(()=>({close:w}),[w]),S=(0,l._)({open:0===c,close:w}),C=(0,b.Ci)();return a.createElement(E.Provider,{value:s},a.createElement(T.Provider,{value:k},a.createElement(p.e,{value:w},a.createElement(h.El,{value:(0,y.Y)(c,{0:h.Uw.Open,1:h.Uw.Closed})},C({ourProps:{ref:o},theirProps:n,slot:S,defaultTag:R,name:"Disclosure"})))))}),L=(0,b.FX)(function(e,t){let r=(0,a.useId)(),{id:n=`headlessui-disclosure-button-${r}`,disabled:d=!1,autoFocus:p=!1,...h}=e,[m,y]=_("Disclosure.Button"),g=(0,a.useContext)(O),w=null!==g&&g===m.panelId,S=(0,a.useRef)(null),C=(0,f.P)(S,t,(0,u._)(e=>{if(!w)return y({type:4,element:e})}));(0,a.useEffect)(()=>{if(!w)return y({type:2,buttonId:n}),()=>{y({type:2,buttonId:null})}},[n,y,w]);let x=(0,u._)(e=>{var t;if(w){if(1===m.disclosureState)return;switch(e.key){case k.D.Space:case k.D.Enter:e.preventDefault(),e.stopPropagation(),y({type:0}),null==(t=m.buttonElement)||t.focus()}}else switch(e.key){case k.D.Space:case k.D.Enter:e.preventDefault(),e.stopPropagation(),y({type:0})}}),E=(0,u._)(e=>{e.key===k.D.Space&&e.preventDefault()}),T=(0,u._)(e=>{var t;(0,v.l)(e.currentTarget)||d||(w?(y({type:0}),null==(t=m.buttonElement)||t.focus()):y({type:0}))}),{isFocusVisible:I,focusProps:R}=(0,i.o)({autoFocus:p}),{isHovered:P,hoverProps:D}=(0,o.M)({isDisabled:d}),{pressed:L,pressProps:F}=(0,s.Z)({disabled:d}),M=(0,l._)({open:0===m.disclosureState,hover:P,active:L,disabled:d,focus:I,autofocus:p}
1),A=(0,c.c)(e,m.buttonElement),V=w?(0,b.v6)({ref:C,type:A,disabled:d||void 0,autoFocus:p,onKeyDown:x,onClick:T},R,D,F):(0,b.v6)({ref:C,id:n,type:A,"aria-expanded":0===m.disclosureState,"aria-controls":m.panelElement?m.panelId:void 0,disabled:d||void 0,autoFocus:p,onKeyDown:x,onKeyUp:E,onClick:T},R,D,F);return(0,b.Ci)()({ourProps:V,theirProps:h,slot:M,defaultTag:"button",name:"Disclosure.Button"})}),F=(0,b.FX)(function(e,t){let r=(0,a.useId)(),{id:n=`headlessui-disclosure-panel-${r}`,transition:i=!1,...o}=e,[s,c]=_("Disclosure.Panel"),{close:p}=function e(t){let r=(0,a.useContext)(T);if(null===r){let r=Error(`<${t} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,e),r}return r}("Disclosure.Panel"),[v,m]=(0,a.useState)(null),y=(0,f.P)(t,(0,u._)(e=>{w(()=>c({type:5,element:e}))}),m);(0,a.useEffect)(()=>(c({type:3,panelId:n}),()=>{c({type:3,panelId:null})}),[n,c]);let g=(0,h.O_)(),[k,S]=(0,d.p)(i,v,null!==g?(g&h.Uw.Open)===h.Uw.Open:0===s.disclosureState),C=(0,l._)({open:0===s.disclosureState,close:p}),x={ref:y,id:n,...(0,d.B)(S)},E=(0,b.Ci)();return a.createElement(h.$x,null,a.createElement(O.Provider,{value:s.panelId},E({ourProps:x,theirProps:o,slot:C,defaultTag:"div",features:P,visible:k,name:"Disclosure.Panel"})))}),M=Object.assign(D,{Button:L,Panel:F})},52188:(e,t,r)=>{var n=r(18683);e.exports=function(e,t){for(var r=-1,i=e.length;++r<i&&n(t,e[r],0)>-1;);return r}},53404:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.useCookiesNext=t.useDeleteCookie=t.useGetCookie=t.useSetCookie=t.useHasCookie=t.useGetCookies=t.hasCookie=t.deleteCookie=t.setCookie=t.getCookie=t.getCookies=void 0;var a=r(68080),s=r(36463),u=r(12115),c=function(e){if(!(0,s.isClientSide)(e))throw Error("You are trying to access cookies on the server side. Please, use the server-side import with `cookies-next/server` instead.")},l=function(e){if(c(e),"server"!==(0,s.getRenderPhase)()){for(var t={},r=document.cookie?document.cookie.split("; "):[],n=0,i=r.length;n<i;n++){var o=r[n].split("="),a=o.slice(1).join("=");t[o[0]]=a}return t}};t.getCookies=l;var f=function(e,t){c(t);var r=l(t),n=null==r?void 0:r[e];if(void 0!==n)return(0,s.decode)(n)};t.getCookie=f;var d=function(e,t,r){if(c(r),"server"!==(0,s.getRenderPhase)()){var i=(0,a.serialize)(e,(0,s.stringify)(t),n({path:"/"},r||{}));document.cookie=i}};t.setCookie=d;var p=function(e,t){c(t),d(e,"",n(n({},t),{maxAge:-1}))};t.deleteCookie=p;var h=function(e,t){if(c(t),!e)return!1;var r=l(t);return!!r&&Object.prototype.hasOwnProperty.call(r,e)};t.hasCookie=h;var v=function(e){var t=(0,u.useState)(!1),r=t[0],n=t[1];return(0,u.useEffect)(function(){n(!0)},[]),r?e:function(){}},m=function(){return v(l)};t.useGetCookies=m;var y=function(){return v(f)};t.useGetCookie=y;var g=function(){return v(h)};t.useHasCookie=g;var b=function(){return v(d)};t.useSetCookie=b;var w=function(){return v(p)};t.useDeleteCookie=w,t.useCookiesNext=function(){return{getCookies:m(),getCookie:y(),hasCookie:g(),setCookie:b(),deleteCookie:w()}},o(r(99819),t)},53537:(e,t,r)=>{"use strict";r.d(t,{AT:()=>c,E4:()=>l,Vn:()=>f,Vu:()=>a,n4:()=>s,sw:()=>o,wY:()=>d,zK:()=>u});var n=r(20622),i=r(37979);function o(e){(0,n.V1)(e&&"Document"===e.kind,77);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw(0,n.vA)(78,e.kind);return e});return(0,n.V1)(t.length<=1,79,t.length),e}function a(e){return o(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function s(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function u(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function c(e){var t=a(e);return(0,n.V1)(t&&"query"===t.operation,80),t}function l(e){(0,n.V1)("Document"===e.kind,81),(0,n.V1)(e.definitions.length<=1,82);var t=e.definitions[0];return(0,n.V1)("FragmentDefinition"===t.kind,83),t}function f(e){o(e);for(var t,r=0,i=e.definitions;r<i.length;r++){var a=i[r];if("OperationDefinition"===a.kind){var s=a.operation;if("query"===s||"mutation"===s||"subscription"===s)return a}"FragmentDefinition"!==a.kind||t||(t=a)}if(t)return t;throw(0,n.vA)(84)}function d(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&(0,i.J)(t,e.variable.name,e.defaultValue)}),t}},53957:(e,t,r)=>{"use strict";r.d(t,{o:()=>a});var n=r(71450),i=r(22180),o=r(97056);function a(e){return new i.C(function(t,r){var i=(0,n.Tt)(t,[]);return new o.c(function(n){var o,a=!1;return Promise.resolve(i).then(function(r){return e(r,t.getContext())}).then(t.setContext).then(function(){a||(o=r(t).subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}))}).catch(n.error.bind(n)),function(){a=!0,o&&o.unsubscribe()}})})}},54309:(e,t,r)=>{"use strict";r.d(t,{Ng:()=>o,TW:()=>n,mD:()=>i});let n=e=>{var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document},i=e=>e&&"window"in e&&e.window===e?e:n(e).defaultView||window;function o(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&"number"==typeof e.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}},57716:e=>{var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},58325:(e,t,r)=>{"use strict";r.d(t,{A:()=>
1o});var n=r(12115),i=r(93683);let o=function(e,t,r){if(!i.Bd)return[t,i.lQ,i.lQ];if(!e)throw Error("useLocalStorage key may not be falsy");var o=r?r.raw?function(e){return e}:r.deserializer:JSON.parse,a=(0,n.useRef)(function(e){try{var n=r?r.raw?String:r.serializer:JSON.stringify,i=localStorage.getItem(e);if(null!==i)return o(i);return t&&localStorage.setItem(e,n(t)),t}catch(e){return t}}),s=(0,n.useState)(function(){return a.current(e)}),u=s[0],c=s[1];(0,n.useLayoutEffect)(function(){return c(a.current(e))},[e]);var l=(0,n.useCallback)(function(t){try{var n="function"==typeof t?t(u):t;if(void 0===n)return;var i=void 0;i=r?r.raw?"string"==typeof n?n:JSON.stringify(n):r.serializer?r.serializer(n):JSON.stringify(n):JSON.stringify(n),localStorage.setItem(e,i),c(o(i))}catch(e){}},[e,c]);return[u,l,(0,n.useCallback)(function(){try{localStorage.removeItem(e),c(void 0)}catch(e){}},[e,c])]}},62692:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.useCookiesNext=t.useDeleteCookie=t.useGetCookie=t.useSetCookie=t.useHasCookie=t.useGetCookies=t.hasCookie=t.deleteCookie=t.setCookie=t.getCookie=t.getCookies=void 0;var o=r(53404),a=r(10592);i(r(99819),t);var s=r(36463);t.getCookies=function(e){return(0,s.isClientSide)(e)?o.getCookies(e):a.getCookies(e)},t.getCookie=function(e,t){return(0,s.isClientSide)(t)?o.getCookie(e,t):a.getCookie(e,t)},t.setCookie=function(e,t,r){return(0,s.isClientSide)(r)?o.setCookie(e,t,r):a.setCookie(e,t,r)},t.deleteCookie=function(e,t){return(0,s.isClientSide)(t)?o.deleteCookie(e,t):a.deleteCookie(e,t)},t.hasCookie=function(e,t){return(0,s.isClientSide)(t)?o.hasCookie(e,t):a.hasCookie(e,t)};var u=r(53404);Object.defineProperty(t,"useGetCookies",{enumerable:!0,get:function(){return u.useGetCookies}}),Object.defineProperty(t,"useHasCookie",{enumerable:!0,get:function(){return u.useHasCookie}}),Object.defineProperty(t,"useSetCookie",{enumerable:!0,get:function(){return u.useSetCookie}}),Object.defineProperty(t,"useGetCookie",{enumerable:!0,get:function(){return u.useGetCookie}}),Object.defineProperty(t,"useDeleteCookie",{enumerable:!0,get:function(){return u.useDeleteCookie}}),Object.defineProperty(t,"useCookiesNext",{enumerable:!0,get:function(){return u.useCookiesNext}})},66260:(e,t,r)=>{"use strict";r.d(t,{Nw:()=>u,ST:()=>a,YX:()=>s,bd:()=>c});var n=r(25433),i=r(83557),o=r(28363);function a(e){return"incremental"in e}function s(e){return a(e)||"hasNext"in e&&"data"in e}function u(e){return(0,n.U)(e)&&"payload"in e}function c(e,t){var r=e,n=new o.ZI;return a(t)&&(0,i.E)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var a=i[o],s=isNaN(+a)?{}:[];s[a]=t,t=s}r=n.merge(r,t)}),r}},68080:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseCookie=c,t.parse=c,t.stringifyCookie=function(e,t){let i=t?.encode||encodeURIComponent,o=[];for(let t of Object.keys(e)){let a=e[t];if(void 0===a)continue;if(!r.test(t))throw TypeError(`cookie name is invalid: ${t}`);let s=i(a);if(!n.test(s))throw TypeError(`cookie val is invalid: ${a}`);o.push(`${t}=${s}`)}return o.join("; ")},t.stringifySetCookie=l,t.serialize=l,t.parseSetCookie=function(e,t){let r=t?.decode||h,n=e.length,i=f(e,0,n),o=d(e,0,i),s=-1===o?{name:"",value:r(p(e,0,i))}:{name:p(e,0,o),value:r(p(e,o+1,i))},u=i+1;for(;u<n;){let t=f(e,u,n),r=d(e,u,t),i=-1===r?p(e,u,t):p(e,u,r),o=-1===r?void 0:p(e,r+1,t);switch(i.toLowerCase()){case"httponly":s.httpOnly=!0;break;case"secure":s.secure=!0;break;case"partitioned":s.partitioned=!0;break;case"domain":s.domain=o;break;case"path":s.path=o;break;case"max-age":o&&a.test(o)&&(s.maxAge=Number(o));break;case"expires":if(!o)break;let c=new Date(o);Number.isFinite(c.valueOf())&&(s.expires=c);break;case"priority":if(!o)break;let l=o.toLowerCase();("low"===l||"medium"===l||"high"===l)&&(s.priority=l);break;case"samesite":if(!o)break;let h=o.toLowerCase();("lax"===h||"strict"===h||"none"===h)&&(s.sameSite=h)}u=t+1}return s},t.stringifySetCookie=l,t.serialize=l;let r=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/,a=/^-?\d+$/,s=Object.prototype.toString,u=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function c(e,t){let r=new u,n=e.length;if(n<2)return r;let i=t?.decode||h,o=0;do{let t=d(e,o,n);if(-1===t)break;let a=f(e,o,n);if(t>a){o=e.lastIndexOf(";",t-1)+1;continue}let s=p(e,o,t);void 0===r[s]&&(r[s]=i(p(e,t+1,a))),o=a+1}while(o<n);return r}function l(e,t,a){let u="object"==typeof e?e:{...a,name:e,value:String(t)},c=("object"==typeof t?t:a)?.encode||encodeURIComponent;
1if(!r.test(u.name))throw TypeError(`argument name is invalid: ${u.name}`);let l=u.value?c(u.value):"";if(!n.test(l))throw TypeError(`argument val is invalid: ${u.value}`);let f=u.name+"="+l;if(void 0!==u.maxAge){if(!Number.isInteger(u.maxAge))throw TypeError(`option maxAge is invalid: ${u.maxAge}`);f+="; Max-Age="+u.maxAge}if(u.domain){if(!i.test(u.domain))throw TypeError(`option domain is invalid: ${u.domain}`);f+="; Domain="+u.domain}if(u.path){if(!o.test(u.path))throw TypeError(`option path is invalid: ${u.path}`);f+="; Path="+u.path}if(u.expires){var d;if(d=u.expires,"[object Date]"!==s.call(d)||!Number.isFinite(u.expires.valueOf()))throw TypeError(`option expires is invalid: ${u.expires}`);f+="; Expires="+u.expires.toUTCString()}if(u.httpOnly&&(f+="; HttpOnly"),u.secure&&(f+="; Secure"),u.partitioned&&(f+="; Partitioned"),u.priority)switch("string"==typeof u.priority?u.priority.toLowerCase():void 0){case"low":f+="; Priority=Low";break;case"medium":f+="; Priority=Medium";break;case"high":f+="; Priority=High";break;
1default:throw TypeError(`option priority is invalid: ${u.priority}`)}if(u.sameSite)switch("string"==typeof u.sameSite?u.sameSite.toLowerCase():u.sameSite){case!0:case"strict":f+="; SameSite=Strict";break;case"lax":f+="; SameSite=Lax";break;case"none":f+="; SameSite=None";break;default:throw TypeError(`option sameSite is invalid: ${u.sameSite}`)}return f}function f(e,t,r){let n=e.indexOf(";",t);return -1===n?r:n}function d(e,t,r){let n=e.indexOf("=",t);return n<r?n:-1}function p(e,t,r){let n=t,i=r;do{let t=e.charCodeAt(n);if(32!==t&&9!==t)break}while(++n<i);for(;i>n;){let t=e.charCodeAt(i-1);if(32!==t&&9!==t)break;i--}return e.slice(n,i)}function h(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}},69096:e=>{e.exports=function(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}},71624:(e,t,r)=>{var n=r(38208),i=r(57716),o=r(79608);e.exports=function(e){return i(e)?o(e):n(e)}},73473:(e,t,r)=>{"use strict";function n(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:r}=e;return t+"/"+r}).join(" "):navigator.userAgent}r.d(t,{$t:()=>n})},79608:e=>{var t="\ud800-\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\ud83c[\udffb-\udfff]",i="[^"+t+"]",o="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",s="(?:"+r+"|"+n+")?",u="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[i,o,a].join("|")+")"+u+s+")*",l=RegExp(n+"(?="+n+")|"+("(?:"+[i+r+"?",r,o,a,"["+t+"]"].join("|"))+")"+(u+s+c),"g");e.exports=function(e){return e.match(l)||[]}},83693:(e,t,r)=>{var n=r(26745),i=r(26810),o=r(41982),a=Math.max,s=Math.min;e.exports=function(e,t,r){var u,c,l,f,d,p,h=0,v=!1,m=!1,y=!0;if("function"!=typeof e)throw TypeError("Expected a function");function g(t){var r=u,n=c;return u=c=void 0,h=t,f=e.apply(n,r)}function b(e){var r=e-p,n=e-h;return void 0===p||r>=t||r<0||m&&n>=l}function w(){var e,r,n,o=i();if(b(o))return k(o);d=setTimeout(w,(e=o-p,r=o-h,n=t-e,m?s(n,l-r):n))}function k(e){return(d=void 0,y&&u)?g(e):(u=c=void 0,f)}function S(){var e,r=i(),n=b(r);if(u=arguments,c=this,p=r,n){if(void 0===d)return h=e=p,d=setTimeout(w,t),v?g(e):f;if(m)return clearTimeout(d),d=setTimeout(w,t),g(p)}return void 0===d&&(d=setTimeout(w,t)),f}return t=o(t)||0,n(r)&&(v=!!r.leading,l=(m="maxWait"in r)?a(o(r.maxWait)||0,t):l,y="trailing"in r?!!r.trailing:y),S.cancel=function(){void 0!==d&&clearTimeout(d),h=0,u=p=c=d=void 0},S.flush=function(){return void 0===d?f:k(i())},S}},83931:(e,t,r)=>{"use strict";r.d(t,{MS:()=>o,d8:()=>a,f2:()=>s});var n=r(20622),i=r(50424);function o(e,t){var r,i,o=e.directives;return!o||!o.length||(i=[],(r=o)&&r.length&&r.forEach(function(e){if("skip"===(t=e.name.value)||"include"===t){var t,r=e.arguments,o=e.name.value;(0,n.V1)(r&&1===r.length,71,o);var a=r[0];(0,n.V1)(a.name&&"if"===a.name.value,72,o);var s=a.value;(0,n.V1)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),73,o),i.push({directive:e,ifArgument:a})}}),i).every(function(e){var r=e.directive,i=e.ifArgument,o=!1;return"Variable"===i.value.kind?(o=t&&t[i.value.name.value],(0,n.V1)(void 0!==o,70,r.name.value)):o=i.value.value,"skip"===r.name.value?!o:o})}function a(e,t,r){var n=new Set(e),o=n.size;return(0,i.YR)(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return i.sP}}),r?!n.size:n.size<o}function s(e){return e&&a(["client","export"],e,!0)}},88334:(e,t,r)=>{"use strict";r.d(t,{BN:()=>p,Ej:()=>v,UU:()=>h,cY:()=>d,we:()=>f});var n=r(20861),i=r(12115),o=r(47650),a="undefined"!=typeof document?i.useLayoutEffect:function(){};function s(e,t){let r,n,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!s(e[n],t[n]))return!1;return!0}if((r=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];if(("_owner"!==r||!e.$$typeof)&&!s(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function u(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function c(e,t){let r=u(e);return Math.round(t*r)/r}function l(e){let t=i.useRef(e);return a(()=>{t.current=e}),t}function f(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:f=[],platform:d,elements:{reference:p,floating:h}={},transform:v=!0,whileElementsMounted:m,open:y}=e,[g,b]=i.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[w,k]=i.useState(f);s(w,f)||k(f);let[S,C]=i.useState(null),[x,E]=i.useState(null),_=i.useCallback(e=>
1{e!==R.current&&(R.current=e,C(e))},[]),T=i.useCallback(e=>{e!==P.current&&(P.current=e,E(e))},[]),O=p||S,I=h||x,R=i.useRef(null),P=i.useRef(null),D=i.useRef(g),L=null!=m,F=l(m),M=l(d),A=l(y),V=i.useCallback(()=>{if(!R.current||!P.current)return;let e={placement:t,strategy:r,middleware:w};M.current&&(e.platform=M.current),(0,n.rD)(R.current,P.current,e).then(e=>{let t={...e,isPositioned:!1!==A.current};j.current&&!s(D.current,t)&&(D.current=t,o.flushSync(()=>{b(t)}))})},[w,t,r,M,A]);a(()=>{!1===y&&D.current.isPositioned&&(D.current.isPositioned=!1,b(e=>({...e,isPositioned:!1})))},[y]);let j=i.useRef(!1);a(()=>(j.current=!0,()=>{j.current=!1}),[]),a(()=>{if(O&&(R.current=O),I&&(P.current=I),O&&I){if(F.current)return F.current(O,I,V);V()}},[O,I,V,F,L]);let q=i.useMemo(()=>({reference:R,floating:P,setReference:_,setFloating:T}),[_,T]),N=i.useMemo(()=>({reference:O,floating:I}),[O,I]),Q=i.useMemo(()=>{let e={position:r,left:0,top:0};if(!N.floating)return e;let t=c(N.floating,g.x),n=c(N.floating,g.y);return v?{...e,transform:"translate("+t+"px, "+n+"px)",...u(N.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,v,N.floating,g.x,g.y]);return i.useMemo(()=>({...g,update:V,refs:q,elements:N,floatingStyles:Q}),[g,V,q,N,Q])}let d=(e,t)=>({...(0,n.cY)(e),options:[e,t]}),p=(e,t)=>({...(0,n.BN)(e),options:[e,t]}),h=(e,t)=>({...(0,n.UU)(e),options:[e,t]}),v=(e,t)=>
1({...(0,n.Ej)(e),options:[e,t]})},88476:(e,t,r)=>{"use strict";r.d(t,{l:()=>i});var n=r(50025);function i(e){let t=e.parentElement,r=null;for(;t&&!n.Er(t);)n.Jb(t)&&(r=t),t=t.parentElement;let i=(null==t?void 0:t.getAttribute("disabled"))==="";return!(i&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(n.Jb(t))return!1;t=t.previousElementSibling}return!0}(r))&&i}},90198:(e,t,r)=>{var n=r(50030),i=r(36862),o=r(95918),a=r(36099),s=r(52188),u=r(71624),c=r(32438);e.exports=function(e,t,r){if((e=c(e))&&(r||void 0===t))return i(e);if(!e||!(t=n(t)))return e;var l=u(e),f=u(t),d=s(l,f),p=a(l,f)+1;return o(l,d,p).join("")}},93551:(e,t,r)=>{"use strict";r.d(t,{o:()=>V});var n,i=r(12115);let o="undefined"!=typeof document?i.useLayoutEffect:()=>{},a=null!=(n=i.useInsertionEffect)?n:o;function s(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function u(e){let t=(0,i.useRef)({isFocused:!1,observer:null});o(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let r=function(e){let t=(0,i.useRef)(null);return a(()=>{t.current=e},[e]),(0,i.useCallback)((...e)=>{let r=t.current;return null==r?void 0:r(...e)},[])}(t=>{null==e||e(t)});return(0,i.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=e.target;n.addEventListener("focusout",e=>{t.current.isFocused=!1,n.disabled&&r(s(e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){var e;null==(e=t.current.observer)||e.disconnect();let r=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:r})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:r}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[r])}function c(e){var t;if("undefined"==typeof window||null==window.navigator)return!1;let r=null==(t=window.navigator.userAgentData)?void 0:t.brands;return Array.isArray(r)&&r.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function l(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null==(t=window.navigator.userAgentData)?void 0:t.platform)||window.navigator.platform)}function f(e){let t=null;return()=>(null==t&&(t=e()),t)}let d=f(function(){return l(/^Mac/i)}),p=f(function(){return l(/^iPhone/i)}),h=f(function(){return l(/^iPad/i)||d()&&navigator.maxTouchPoints>1}),v=f(function(){return p()||h()});f(function(){return d()||v()}),f(function(){return c(/AppleWebKit/i)&&!m()});let m=f(function(){return c(/Chrome/i)}),y=f(function(){return c(/Android/i)});f(function(){return c(/Firefox/i)});var g=r(54309);let b=null,w=new Set,k=new Map,S=!1,C=!1,x={Tab:!0,Escape:!0};function E(e,t){for(let r of w)r(e,t)}function _(e){S=!0,e.metaKey||!d()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(b="keyboard",E("keyboard",e))}
1function T(e){b="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(S=!0,E("pointer",e))}function O(e){(""===e.pointerType&&e.isTrusted||(y()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType))&&(S=!0,b="virtual")}function I(e){e.target!==window&&e.target!==document&&e.isTrusted&&(S||C||(b="virtual",E("virtual",e)),S=!1,C=!1)}function R(){S=!1,C=!0}function P(e){if("undefined"==typeof window||"undefined"==typeof document||k.get((0,g.mD)(e)))return;let t=(0,g.mD)(e),r=(0,g.TW)(e),n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){S=!0,n.apply(this,arguments)},r.addEventListener("keydown",_,!0),r.addEventListener("keyup",_,!0),r.addEventListener("click",O,!0),t.addEventListener("focus",I,!0),t.addEventListener("blur",R,!1),"undefined"!=typeof PointerEvent&&(r.addEventListener("pointerdown",T,!0),r.addEventListener("pointermove",T,!0),r.addEventListener("pointerup",T,!0)),t.addEventListener("beforeunload",()=>{D(e)},{once:!0}),k.set(t,{focus:n})}let D=(e,t)=>{let r=(0,g.mD)(e),n=(0,g.TW)(e);t&&n.removeEventListener("DOMContentLoaded",t),k.has(r)&&(r.HTMLElement.prototype.focus=k.get(r).focus,n.removeEventListener("keydown",_,!0),n.removeEventListener("keyup",_,!0),n.removeEventListener("click",O,!0),r.removeEventListener("focus",I,!0),r.removeEventListener("blur",R,!1),"undefined"!=typeof PointerEvent&&(n.removeEventListener("pointerdown",T,!0),n.removeEventListener("pointermove",T,!0),n.removeEventListener("pointerup",T,!0)),k.delete(r))};function L(){return"pointer"!==b}"undefined"!=typeof document&&function(e){let t,r=(0,g.TW)(void 0);"loading"!==r.readyState?P(void 0):(t=()=>{P(e)},r.addEventListener("DOMContentLoaded",t)),()=>D(e,t)}();let F=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);var M=r(48958),A=r(5325);function V(e={}){var t;let{autoFocus:r=!1,isTextInput:n,within:o}=e,a=(0,i.useRef)({isFocused:!1,isFocusVisible:r||L()}),[c,l]=(0,i.useState)(!1),[f,d]=(0,i.useState)(()=>a.current.isFocused&&a.current.isFocusVisible),p=(0,i.useCallback)(()=>d(a.current.isFocused&&a.current.isFocusVisible),[]),h=(0,i.useCallback)(e=>{a.current.isFocused=e,l(e),p()},[p]);t={isTextInput:n},P(),(0,i.useEffect)(()=>{let e=(e,r)=>{(function(e,t,r){let n=(0,g.TW)(null==r?void 0:r.target),i="undefined"!=typeof window?(0,g.mD)(null==r?void 0:r.target).HTMLInputElement:HTMLInputElement,o="undefined"!=typeof window?(0,g.mD)(null==r?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?(0,g.mD)(null==r?void 0:r.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?(0,g.mD)(null==r?void 0:r.target).KeyboardEvent:KeyboardEvent;return!((e=e||n.activeElement instanceof i&&!F.has(n.activeElement.type)||n.activeElement instanceof o||n.activeElement instanceof a&&n.activeElement.isContentEditable)&&"keyboard"===t&&r instanceof s&&!x[r.key])})(!!(null==t?void 0:t.isTextInput),e,r)&&(e=>{a.current.isFocusVisible=e,p()})(L())};return w.add(e),()=>{w.delete(e)}},[]);let{focusProps:v}=function(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e,a=(0,i.useCallback)(e=>{if(e.target===e.currentTarget)return n&&n(e),o&&o(!1),!0},[n,o]),s=u(a),c=(0,i.useCallback)(e=>{let t=(0,g.TW)(e.target),n=t?(0,M.bq)(t):(0,M.bq)();e.target===e.currentTarget&&n===(0,M.wt)(e.nativeEvent)&&(r&&r(e),o&&o(!0),s(e))},[o,r,s]);return{focusProps:{onFocus:!t&&(r||o||n)?c:void 0,onBlur:!t&&(n||o)?a:void 0}}}({isDisabled:o,onFocusChange:h}),{focusWithinProps:m}=function(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,a=(0,i.useRef)({isFocusWithin:!1}),{addGlobalListener:c,removeAllGlobalListeners:l}=(0,A.A)(),f=(0,i.useCallback)(e=>{e.currentTarget.contains(e.target)&&a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,l(),r&&r(e),o&&o(!1))},[r,o,a,l]),d=u(f),p=(0,i.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;let t=(0,g.TW)(e.target),r=(0,M.bq)(t);if(!a.current.isFocusWithin&&r===(0,M.wt)(e.nativeEvent)){n&&n(e),o&&o(!0),a.current.isFocusWithin=!0,d(e);let r=e.currentTarget;c(t,"focus",e=>{if(a.current.isFocusWithin&&!(0,M.sD)(r,e.target)){let n=new t.defaultView.FocusEvent("blur",{relatedTarget:e.target});Object.defineProperty(n,"target",{value:r}),Object.defineProperty(n,"currentTarget",{value:r}),f(s(n))}},{capture:!0})}},[n,o,d,c,f]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}
1:{focusWithinProps:{onFocus:p,onBlur:f}}}({isDisabled:!o,onFocusWithinChange:h});return{isFocused:c,isFocusVisible:f,focusProps:o?m:v}}},95918:(e,t,r)=>{var n=r(69096);e.exports=function(e,t,r){var i=e.length;return r=void 0===r?i:r,!t&&r>=i?e:n(e,t,r)}},97056:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}r.d(t,{c:()=>S});var a=function(){return"function"==typeof Symbol},s=function(e){return a()&&!!Symbol[e]},u=function(e){return s(e)?Symbol[e]:"@@"+e};a()&&!s("observable")&&(Symbol.observable=Symbol("observable"));var c=u("iterator"),l=u("observable"),f=u("species");function d(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw TypeError(r+" is not a function");return r}}function p(e){var t=e.constructor;return void 0!==t&&null===(t=t[f])&&(t=void 0),void 0!==t?t:S}function h(e){h.log?h.log(e):setTimeout(function(){throw e})}function v(e){Promise.resolve().then(function(){try{e()}catch(e){h(e)}})}function m(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=d(t,"unsubscribe");r&&r.call(t)}}catch(e){h(e)}}function y(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function g(e,t,r){e._state="running";var n=e._observer;try{var i=d(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(y(e),i)i.call(n,r);else throw r;break;case"complete":y(e),i&&i.call(n)}}catch(e){h(e)}"closed"===e._state?m(e):"running"===e._state&&(e._state="ready")}function b(e,t,r){if("closed"!==e._state){if("buffering"===e._state)return void e._queue.push({type:t,value:r});if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:r}],v(function(){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(g(e,t[r].type,t[r].value),"closed"!==e._state);++r);}});return}g(e,t,r)}}var w=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new k(this);try{this._cleanup=t.call(void 0,r)}catch(e){r.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(y(this),m(this))},o(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),k=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){b(this._subscription,"next",e)},t.error=function(e){b(this._subscription,"error",e)},t.complete=function(){b(this._subscription,"complete")},o(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),S=function(){function e(t){if(!(this instanceof e))throw TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new w(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(r,n){if("function"!=typeof e)return void n(TypeError(e+" is not a function"));function i(){o.unsubscribe(),r()}var o=t.subscribe({next:function(t){try{e(t,i)}catch(e){n(e),o.unsubscribe()}},error:n,complete:r})})},t.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(p(this))(function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(p(this))(function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=p(this),n=arguments.length>1,i=!1,o=arguments[1],a=o;return new r(function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(e){return r.error(e)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=p(this);return new i(function(t){var n,o=0;return!function e(a){n=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===r.length?(n=void 0,t.complete()):e(i.from(r[o++]
1))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=p(this);return new r(function(n){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return n.error(e)}var o=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[l]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var i=d(t,l);if(i){var o=i.call(t);if(Object(o)!==o)throw TypeError(o+" is not an object");return o instanceof S&&o.constructor===r?o:new r(function(e){return o.subscribe(e)})}if(s("iterator")&&(i=d(t,c)))return new r(function(e){v(function(){if(!e.closed){for(var r,o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}}(e))){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i.call(t));!(r=o()).done;){var a=r.value;if(e.next(a),e.closed)return}e.complete()}})});if(Array.isArray(t))return new r(function(e){v(function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}})});throw TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)(function(e){v(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})})},o(e,null,[{key:f,get:function(){return this}}]),e}();a()&&Object.defineProperty(S,Symbol("extensions"),{value:{symbol:l,hostReportError:h},configurable:!0})},99819:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},99900:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(12115);function i(e,t){return(0,n.useMemo)(()=>{var r;if(e.type)return e.type;let n=null!=(r=e.as)?r:"button";if("string"==typeof n&&"button"===n.toLowerCase()||(null==t?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.